@nebula.js/cli-serve 4.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eHub.js +1 -1
- package/dist/eRender.js +1 -1
- package/package.json +8 -8
package/dist/eHub.js
CHANGED
|
@@ -99,4 +99,4 @@
|
|
|
99
99
|
animation: ${0} 1.4s linear infinite;
|
|
100
100
|
`),ic))),sc=(0,xt.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),ac=(0,xt.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,Ut.Z)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>(0,_t.Z)({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&Qo(tc||(tc=nc`
|
|
101
101
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
102
|
-
`),oc))),lc=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:r=!1,size:s=40,style:a,thickness:l=3.6,value:c=0,variant:d="indeterminate"}=n,u=(0,vt.Z)(n,Yl),h=(0,_t.Z)({},n,{color:o,disableShrink:r,size:s,thickness:l,value:c,variant:d}),g=(e=>{const{classes:t,variant:n,color:i,disableShrink:o}=e,r={root:["root",n,`color${(0,Ut.Z)(i)}`],svg:["svg"],circle:["circle",`circle${(0,Ut.Z)(n)}`,o&&"circleDisableShrink"]};return(0,Ct.Z)(r,Ql,t)})(h),p={},m={},f={};if("determinate"===d){const e=2*Math.PI*((44-l)/2);p.strokeDasharray=e.toFixed(3),f["aria-valuenow"]=Math.round(c),p.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return(0,Nt.jsx)(rc,(0,_t.Z)({className:(0,bt.Z)(g.root,i),style:(0,_t.Z)({width:s,height:s},m,a),ownerState:h,ref:t,role:"progressbar"},f,u,{children:(0,Nt.jsx)(sc,{className:g.svg,ownerState:h,viewBox:"22 22 44 44",children:(0,Nt.jsx)(ac,{className:g.circle,style:p,ownerState:h,cx:44,cy:44,r:(44-l)/2,fill:"none",strokeWidth:l})})}))})),cc=lc,dc=()=>{const e=K(),t=U(),{info:i,glob:o,treatAsDesktop:r}=mt(),{loading:s,appList:a}=(({glob:e,info:t})=>{const i=K(),{setInfo:o,setActiveStep:r}=mt(),[s,a]=(0,n.useState)(),[l,c]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{r(1),st().then((e=>{o(e)}))}),[]),(0,n.useEffect)((()=>{if(s?.length)return;c(!0);const t=new URLSearchParams(window.location.search);t.get("qlik-client-id")&&!t.get("shouldFetchAppList")&&(async()=>{const{isAuthorized:e}=await(await fetch("/isAuthorized")).json();return{isAuthorized:e}})().then((({isAuthorized:e})=>{if(e){const e=new URL(window.location.href);e.search.includes("shouldFetchAppList")||e.searchParams.append("shouldFetchAppList",!0),i(decodeURIComponent(`${e.pathname}${e.search}`))}})),(t.get("shouldFetchAppList")?(async()=>await(await fetch("/apps")).json()||[])():e?.getDocList())?.then((e=>{a(e),e&&c(!1)}))}),[window.location.search,c,t,e]),{appList:s,loading:l}})({glob:o,info:i});return n.createElement(xo,null,n.createElement(zr,{variant:"h5",gutterBottom:!0},"Select an app"),s&&n.createElement(cc,{"data-testid":"loading",size:32}),!s&&a&&!a.length&&n.createElement(zr,{component:"span"},"No apps found!"),a&&a.length>0&&n.createElement(Es,null,a.map((o=>n.createElement(js,{button:!0,component:"a",key:o.qDocId,onClick:()=>(({navigate:e,location:t,targetApp:n,info:i})=>{const{search:o}=t,r=`${i.enigma.secure?"wss":"ws"}://${"localhost"===i.enigma.host?`${i.enigma.host}:${i.enigma.port}`:i.enigma.host}/app/${encodeURIComponent(n)}`;e(`/dev/${o.replace(i.engineUrl,r)}`.replace("&shouldFetchAppList=true",""))})({info:i,navigate:e,location:t,targetApp:r?o.qDocName:o.qDocId})},n.createElement(Qs,{primary:o.qTitle,secondary:o.qDocId}))))))};s(16595);const uc=({initial:e="en-US",fallback:t="en-US"}={})=>{const n=function({initial:e="en-US",fallback:t="en-US"}={}){const n={};let i=e;return{language:e=>(e&&(i=e),i),add:e=>{const{id:t,locale:i}=e;Object.keys(i).forEach((e=>{n[e]||(n[e]={}),n[e][t]=i[e]}))},get(e,o){let r;return r=n[i]&&void 0!==n[i][e]?n[i][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?((e="",t=[])=>{const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,((e,t)=>void 0!==n[t]?n[t]:e))})(r,o):r}}}({initial:e,fallback:t});return{translator:n}},hc=JSON.parse('{"Cancel":{"id":"Cancel","locale":{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},"CurrentSelections_All":{"id":"CurrentSelections.All","locale":{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},"CurrentSelections_Of":{"id":"CurrentSelections.Of","locale":{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},"Listbox_Dismiss":{"id":"Listbox.Dismiss","locale":{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},"Listbox_DrillDown":{"id":"Listbox.DrillDown","locale":{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},"Listbox_ItemsOverflow":{"id":"Listbox.ItemsOverflow","locale":{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},"Listbox_Lock":{"id":"Listbox.Lock","locale":{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},"Listbox_NoMatchesForYourTerms":{"id":"Listbox.NoMatchesForYourTerms","locale":{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},"Listbox_ResultFilterLabel":{"id":"Listbox.ResultFilterLabel","locale":{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},"Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu":{"id":"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu","locale":{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},"Listbox_ScreenReader_SelectionMenu_WithAccSelMenu":{"id":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu","locale":{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},"Listbox_ScreenReaderInstructions":{"id":"Listbox.ScreenReaderInstructions","locale":{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L\'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L\'attivazione degli elementi sottostanti causerà l\'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},"Listbox_Search":{"id":"Listbox.Search","locale":{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},"Listbox_Search_ScreenReaderInstructions":{"id":"Listbox.Search.ScreenReaderInstructions","locale":{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},"Listbox_Unlock":{"id":"Listbox.Unlock","locale":{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},"Menu_More":{"id":"Menu.More","locale":{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},"Navigate_Back":{"id":"Navigate.Back","locale":{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},"Navigate_Forward":{"id":"Navigate.Forward","locale":{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},"OK":{"id":"OK","locale":{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},"Object_Listbox_Alternative":{"id":"Object.Listbox.Alternative","locale":{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},"Object_Listbox_Excluded":{"id":"Object.Listbox.Excluded","locale":{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},"Object_Listbox_ExcludedLock":{"id":"Object.Listbox.ExcludedLock","locale":{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},"Object_Listbox_Locked":{"id":"Object.Listbox.Locked","locale":{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},"Object_Listbox_Optional":{"id":"Object.Listbox.Optional","locale":{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},"Object_Listbox_Selected":{"id":"Object.Listbox.Selected","locale":{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},"Object_Listbox_SelectedExcluded":{"id":"Object.Listbox.SelectedExcluded","locale":{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},"Object_Update_Active":{"id":"Object.Update.Active","locale":{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},"Object_Update_Cancelled":{"id":"Object.Update.Cancelled","locale":{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},"Retry":{"id":"Retry","locale":{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},"ScreenReader_ManySelected":{"id":"ScreenReader.ManySelected","locale":{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},"ScreenReader_OneSelected":{"id":"ScreenReader.OneSelected","locale":{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},"ScreenReader_ZeroSelected":{"id":"ScreenReader.ZeroSelected","locale":{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n\'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},"Selection_Cancel":{"id":"Selection.Cancel","locale":{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},"Selection_Clear":{"id":"Selection.Clear","locale":{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},"Selection_ClearAll":{"id":"Selection.ClearAll","locale":{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},"Selection_ClearAllStates":{"id":"Selection.ClearAllStates","locale":{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},"Selection_Confirm":{"id":"Selection.Confirm","locale":{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},"Selection_Menu":{"id":"Selection.Menu","locale":{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":"Меню \\"Выборка\\"","sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},"Selection_SelectAll":{"id":"Selection.SelectAll","locale":{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},"Selection_SelectAlternative":{"id":"Selection.SelectAlternative","locale":{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},"Selection_SelectExcluded":{"id":"Selection.SelectExcluded","locale":{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},"Selection_SelectPossible":{"id":"Selection.SelectPossible","locale":{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},"SelectionToolbar_ClickToUnlock":{"id":"SelectionToolbar.ClickToUnlock","locale":{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},"Visualization_Incomplete":{"id":"Visualization.Incomplete","locale":{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},"Visualization_Incomplete_Dimensions":{"id":"Visualization.Incomplete.Dimensions","locale":{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},"Visualization_Incomplete_Measures":{"id":"Visualization.Incomplete.Measures","locale":{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},"Visualization_Invalid_Dimension":{"id":"Visualization.Invalid.Dimension","locale":{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},"Visualization_Invalid_Measure":{"id":"Visualization.Invalid.Measure","locale":{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},"Visualization_LayoutError":{"id":"Visualization.LayoutError","locale":{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},"Visualization_UnfulfilledCalculationCondition":{"id":"Visualization.UnfulfilledCalculationCondition","locale":{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}}');var gc=s(25476),pc=s.n(gc);function mc(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function fc(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function vc(){}var _c=.7,bc=1/_c,Cc="\\s*([+-]?\\d+)\\s*",yc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Sc=/^#([0-9a-f]{3,8})$/,xc=new RegExp(`^rgb\\(${Cc},${Cc},${Cc}\\)$`),Lc=new RegExp(`^rgb\\(${wc},${wc},${wc}\\)$`),kc=new RegExp(`^rgba\\(${Cc},${Cc},${Cc},${yc}\\)$`),Ec=new RegExp(`^rgba\\(${wc},${wc},${wc},${yc}\\)$`),Nc=new RegExp(`^hsl\\(${yc},${wc},${wc}\\)$`),Dc=new RegExp(`^hsla\\(${yc},${wc},${wc},${yc}\\)$`),Ic={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 Rc(){return this.rgb().formatHex()}function Tc(){return this.rgb().formatRgb()}function Oc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Sc.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?qc(t):3===n?new Pc(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ac(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ac(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=xc.exec(e))?new Pc(t[1],t[2],t[3],1):(t=Lc.exec(e))?new Pc(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=kc.exec(e))?Ac(t[1],t[2],t[3],t[4]):(t=Ec.exec(e))?Ac(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Nc.exec(e))?Hc(t[1],t[2]/100,t[3]/100,1):(t=Dc.exec(e))?Hc(t[1],t[2]/100,t[3]/100,t[4]):Ic.hasOwnProperty(e)?qc(Ic[e]):"transparent"===e?new Pc(NaN,NaN,NaN,0):null}function qc(e){return new Pc(e>>16&255,e>>8&255,255&e,1)}function Ac(e,t,n,i){return i<=0&&(e=t=n=NaN),new Pc(e,t,n,i)}function Mc(e,t,n,i){return 1===arguments.length?((o=e)instanceof vc||(o=Oc(o)),o?new Pc((o=o.rgb()).r,o.g,o.b,o.opacity):new Pc):new Pc(e,t,n,null==i?1:i);var o}function Pc(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function Fc(){return`#${zc(this.r)}${zc(this.g)}${zc(this.b)}`}function Bc(){const e=Wc(this.opacity);return`${1===e?"rgb(":"rgba("}${Vc(this.r)}, ${Vc(this.g)}, ${Vc(this.b)}${1===e?")":`, ${e})`}`}function Wc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vc(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zc(e){return((e=Vc(e))<16?"0":"")+e.toString(16)}function Hc(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Uc(e,t,n,i)}function jc(e){if(e instanceof Uc)return new Uc(e.h,e.s,e.l,e.opacity);if(e instanceof vc||(e=Oc(e)),!e)return new Uc;if(e instanceof Uc)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2;return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new Uc(s,a,l,e.opacity)}function Uc(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function $c(e){return(e=(e||0)%360)<0?e+360:e}function Kc(e){return Math.max(0,Math.min(1,e||0))}function Gc(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}mc(vc,Oc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Rc,formatHex:Rc,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return jc(this).formatHsl()},formatRgb:Tc,toString:Tc}),mc(Pc,Mc,fc(vc,{brighter(e){return e=null==e?bc:Math.pow(bc,e),new Pc(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?_c:Math.pow(_c,e),new Pc(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pc(Vc(this.r),Vc(this.g),Vc(this.b),Wc(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:Fc,formatHex:Fc,formatHex8:function(){return`#${zc(this.r)}${zc(this.g)}${zc(this.b)}${zc(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Bc,toString:Bc})),mc(Uc,(function(e,t,n,i){return 1===arguments.length?jc(e):new Uc(e,t,n,null==i?1:i)}),fc(vc,{brighter(e){return e=null==e?bc:Math.pow(bc,e),new Uc(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?_c:Math.pow(_c,e),new Uc(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,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new Pc(Gc(e>=240?e-240:e+120,o,i),Gc(e,o,i),Gc(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Uc($c(this.h),Kc(this.s),Kc(this.l),Wc(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=Wc(this.opacity);return`${1===e?"hsl(":"hsla("}${$c(this.h)}, ${100*Kc(this.s)}%, ${100*Kc(this.l)}%${1===e?")":`, ${e})`}`}}));var Zc=s(34415),Qc=s.n(Zc);const Yc=JSON.parse('{"fontSize":"13px","fontFamily":"\'Source Sans Pro\', \'Arial\', \'sans-serif\'","backgroundColor":"transparent","dataColors":{"primaryColor":"#26a0a7","othersColor":"#a5a5a5","errorColor":"#ff4444","nullColor":"#d2d2d2"},"scales":[{"name":"Sequential Gradient","translation":"properties.colorScheme.sequential","type":"gradient","propertyValue":"sg","scale":["#26a0a7","#c7ea8b"]},{"name":"Sequential Classes","translation":"properties.colorScheme.sequentialC","propertyValue":"sc","type":"class","scale":["#26a0a7","#c7ea8b"]},{"name":"Diverging gradient","translation":"properties.colorScheme.diverging","propertyValue":"dg","type":"gradient","scale":["#26a0a7","#c3ea8c","#ec983d"]},{"name":"Diverging Classes","translation":"properties.colorScheme.divergingC","propertyValue":"dc","type":"class","scale":["#26a0a7","#c3ea8c","#ec983d"]}],"palettes":{"data":[{"name":"12 Colors","translation":"properties.colorNumberOfColors.12","propertyValue":"12","type":"pyramid","scale":[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],"ui":[{"name":"Palette","colors":["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}}'),Xc=JSON.parse('{"_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"}'),Jc=JSON.parse('{"_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"}'),ed=JSON.parse('{"object":{"listBox":{"backgroundColor":"#ffffff","title":{"main":{"color":"#404040","fontSize":"14px","fontWeight":"bold"}},"content":{"color":"#404040","fontSize":"12px"}}}}'),td=class{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Oc(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([Oc(e),Oc(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 i=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(i);o=o===i?o-1:o;const r=this.colorParts[t][o],s=r[0],a=r[1];if(e===this.min)return a;if(e===this.max)return s;const l=function(e,t,n){return Mc(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))}(s,a,i-o);return l}};function nd(e,t,n){const i=.25+(t+1)/n*.25,o=.5-i;return o+e/1*(.5+i-o)}function id(e,t,n){const i=[],o=new td(t);i.push(e[0]),n||i.push(e[0]);let r=1;for(;r<e.length-1;r++)i.push(e[r]),i.push(e[r]);i.push(e[r]),n||i.push(e[r]);for(let e=0;e<i.length;e+=2)o.addColorPart(i[e],i[e+1]);return o}function od(e,t,n){const i=[];for(let o=0;o<t+1;o++){let r;switch(t){case 0:r=e.getColor(.5);break;default:{const i=nd(1/t*o,t,n);r=e.getColor(i);break}}i.push(Oc(r).formatHex())}return i}function rd(e,t){const n=[];let i,o;if(e){let r=e.length;for(;r>=0;){for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat(e)),i.pop(),o--;e.pop(),r--}}else for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat()),i.pop(),o--;return n}function sd(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 ad(e,t){const n=e.split(".");return{getStyle:(e,i)=>function(e,t,n,i){let o;return o=rd(""===e?null:e.split("."),n),function(e,t,n){const i=t.split(".");for(let t=0;t<e.length;t++){const o=sd(n,[...e[t],...i]);if(void 0!==o)return o}}(o,t,i)}(e,i,n.concat(),t)}}function ld(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?ld(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function cd(e){const t=Oc(e).rgb(),{r:n,g:i,b:o}=t,[r,s,a]=[n,i,o].map((e=>e/255)),[l,c,d]=[r,s,a].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*l+.7152*c+.0722*d).toFixed(5)}ad.resolveRawTheme=e=>{const t=Qc()(!0,{},e);return ld(t,t._variables),t.scales&&function(e,t="#d2d2d2"){e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const i=id(e,n,!0),o=id(od(i,t-1,t),n,!1),r=[null];for(let e=0;e<t;e++)r.push(od(o,e,t));return r}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}(t.scales,t.dataColors&&t.dataColors.nullColor),t};const dd=1e3;function ud(){let e,t,n,i={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor:(...e)=>t.uiColor(...e),getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(i[t]||(i[t]=ad(t,e)),i[t].getStyle(n,o)),validateColor(...e){const t=e[0];let n;if("string"==typeof t&&(n=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(t))){const e=parseInt(n[1],10)/255;return`rgba(${parseInt(n[2],10)},${parseInt(n[3],10)},${parseInt(n[4],10)},${e})`}const i=Oc(...e);return i?i.toString():void 0}},r={setTheme(r,s){e=function(e,t){const n="dark"===e.type?Jc:Xc;let i=ed;!1!==e._inherit&&"false"!==e._inherit||(i={});const o=Qc()(!0,{},Yc,n,i),r=Qc()(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return r.palettes.data&&r.palettes.data.length||(r.palettes.data=o.palettes.data),r.palettes.ui&&r.palettes.ui.length||(r.palettes.ui=o.palettes.ui),r.scales&&r.scales.length||(r.scales=o.scales),t(r)}(r,ad.resolveRawTheme),i={},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 a=o.getStyle("","","color"),l=cd(a);n=function(e=["#333333","#ffffff"]){let t={},n=0;const i=e.map(cd);return{getBestContrastColor(o){if(!t[o]){n>dd&&(t={},n=0);const r=cd(o),s=i.map((e=>{return t=r,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),a=e[s.indexOf(Math.max(...s))];t[o]=a,n++}return t[o]}}}([a,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>s}};return Object.keys(pc().prototype).forEach((e=>{o[e]=pc().prototype[e]})),pc().init(o),r.setTheme({},"light"),{externalAPI:o,internalAPI:r}}const hd=n.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null}),gd=(e={},t=(()=>{}))=>{const i=e,o=[],r={get:e=>i[e],set:(e,n)=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);return i[e]=n,t({type:"SET",value:n}),n},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);i[e]=null},dispatch:e=>{o.forEach((t=>t(e?{}:i)))}};return[()=>{const[,e]=(0,n.useState)(i);return(0,n.useEffect)((()=>(o.push(e),()=>{const t=o.indexOf(e);o.splice(t,1)})),[e]),[r]},r]},[pd,md]=gd({}),[fd,vd]=gd({}),[_d,bd]=gd({}),[Cd,yd]=gd({});function wd(e){if(!e.session)return[];const[t]=pd(),i=e?e.id:null;let o=t.get(i);return(0,n.useEffect)((()=>{e&&!o&&(o=function({app:e}){const t=`${e.id}`,n=async(e=!0)=>{const n=yd.get(t);n&&(await n.endSelections(e),yd.clear(t),bd.get(n.id).emit("deactivated"))},i={begin:async(i,o,r=!0)=>{if(i===yd.get(t))return;n(r),yd.set(t,i);const s=Array.isArray(o)?o:[o],a=async n=>{try{await i.beginSelections(s),yd.set(t,i)}catch(i){6003!==i.code||n?yd.clear(t):(await e.abortModal(r),a(!0))}};await a()},end:n};return vd.set(t,i),{model:e,isInModal:()=>!!yd.get(t),isModal:e=>e?yd.get(t)===e:!!yd.get(t),forward:()=>i.end().then((()=>e.forward())),back:()=>i.end().then((()=>e.back())),clear:()=>i.end().then((()=>e.clearAll())),clearField:(t,n="$")=>i.end().then((()=>e.getField(t,n).then((e=>e.clear()))))}}({app:e}),t.set(i,o),t.dispatch(!0))}),[e]),[o]}const Sd={active:!0,select:!0,passive:!0,edit:!1};function xd(e){const t={},n={},i=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const i={};return Object.keys(t).forEach((e=>{i[e]=!t[e]})),i}(e);Object.keys(Sd).forEach((e=>{void 0!==i[e]?(t[e]=i[e],n[e]=!i[e]):(t[e]=Sd[e],n[e]=!Sd[e])})),e.constraints=n,e.interactions=t}const Ld=(0,n.forwardRef)((({initialContext:e,app:t,renderCallback:i},o)=>{const[r]=wd(t),[s,a]=(0,n.useState)(e),[l,c]=(0,n.useState)(),{theme:d}=(0,n.useMemo)((()=>({theme:Ri(l)})),[l]),[u,h]=(0,n.useState)([]);return(0,n.useEffect)((()=>{i&&i()}),[]),(0,n.useImperativeHandle)(o,(()=>({setComps(e){h([...e])},setMuiThemeName:c,setContext:e=>a((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>r})),[]),n.createElement(hi,{injectFirst:!0},n.createElement(dn,{theme:d},n.createElement(hd.Provider,{value:s},u)))})),[kd,Ed]=gd({}),[Nd,Dd]=gd({}),[Id,Rd]=gd({}),[Td,Od]=gd({}),[qd,Ad]=gd({}),[,Md]=gd({}),Pd=({type:e,value:t})=>{const n=Md.get(t.id);Md.set(t.id,{});const i=()=>{Dd.clear(t.id),Ad.set(t.id,{}),Ad.dispatch(!0)},o=()=>{t.removeListener("changed",i),Ed.clear(t.id),Dd.clear(t.id),Rd.clear(t.id),Od.clear(t.id),Ad.clear(t.id),Md.clear(t.id)};return"SET"===e&&(n||(t.on("changed",i),t.once("closed",(()=>{o()})))),o},[Fd,Bd]=gd({},Pd);function Wd(e,t,...i){const o=t?`${t.id}/${JSON.stringify(e)}`:null,[r]=Fd(),[s]=Id(),[a,l]=(0,n.useState)();let c;return o&&(c=s.get(o)),(0,n.useEffect)((()=>{t&&(async()=>{if(!c){const n=t.createSessionObject(e);c=n,s.set(o,c)}const n=await c;r.set(o,n),l(n)})()}),[t,...i]),[a]}const Vd={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function zd(e){return Wd(Vd,e)}const Hd=(e,t)=>{const{rpcResultStore:n,key:i,method:o}=t;let r;switch(t.type){case"INVALID":r={...e,valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1};break;case"VALID":r={result:{...t.result},invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":r={...e,invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1};break;default:throw new Error("Undefined action")}let s=n.get(i);return s||(s={}),s[o]=r,n.set(i,s),r};function jd(e,t){const i=e?`${e.id}`:null,[o]=kd(),[r,s]=(0,n.useReducer)(Hd,i?o.get(i):null),[a]=qd(),[l]=Nd();let c;i&&(c=l.get(i),c||(c={},l.set(i,c)));const d=async n=>{let r=c[t];(!r||r&&r.rpcRetry)&&(r={rpc:e[t](),rpcRetry:!1},c[t]=r,s({type:"INVALID",method:t,key:i,model:e,rpcResultStore:o,canCancel:!0}));try{const n=await r.rpc;s({type:"VALID",result:n,key:i,method:t,model:e,rpcResultStore:o})}catch(e){15!==e.code||n||(r.rpcRetry||(r.rpcRetry=!0),d(!0))}},u={cancel:async()=>{const n=e.session.getObjectApi({handle:-1});await n.cancelRequest(c[t].rpc.requestId),s({type:"CANCELLED",key:i,method:t,model:e,rpcResultStore:o})},retry:()=>{c[t].rpcRetry=!0,d()}};return(0,n.useEffect)((()=>{e&&d()}),[e,a.get(e&&e.id),i,t]),[r&&r.result,{validating:r&&r.validating,canCancel:r&&r.canCancel,canRetry:r&&r.canRetry},u]}function Ud(e){return jd(e,"getLayout")}function $d(e){return jd(e,"getAppLayout")}function Kd(){const[e,t]=(0,n.useState)(),[i,o]=(0,n.useState)(),r=(0,n.useCallback)((e=>{e&&t(e)}),[]),s=()=>{const{left:t,top:n,width:i,height:r}=e.getBoundingClientRect();o({left:t,top:n,width:i,height:r})};return(0,n.useLayoutEffect)((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(s);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}}}),[e]),[r,i,e]}const Gd=e=>Cs((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)),Zd=e=>Cs((e=>({...e,shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}))(e)),Qd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Yd(e){return`scale(${e}, ${e**2})`}const Xd={entering:{opacity:1,transform:Yd(1)},entered:{opacity:1,transform:"none"}},Jd="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),eu=n.forwardRef((function(e,t){const{addEndListener:i,appear:o=!0,children:r,easing:s,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:u,onExited:h,onExiting:g,style:p,timeout:m="auto",TransitionComponent:f=ss}=e,v=(0,vt.Z)(e,Qd),_=n.useRef(),b=n.useRef(),C=Yt(),y=n.useRef(null),w=(0,To.Z)(y,r.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},x=S(d),L=S(((e,t)=>{ls(e);const{duration:n,delay:i,easing:o}=cs({style:p,timeout:m,easing:s},{mode:"enter"});let r;"auto"===m?(r=C.transitions.getAutoHeightDuration(e.clientHeight),b.current=r):r=n,e.style.transition=[C.transitions.create("opacity",{duration:r,delay:i}),C.transitions.create("transform",{duration:Jd?r:.666*r,delay:i,easing:o})].join(","),l&&l(e,t)})),k=S(c),E=S(g),N=S((e=>{const{duration:t,delay:n,easing:i}=cs({style:p,timeout:m,easing:s},{mode:"exit"});let o;"auto"===m?(o=C.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[C.transitions.create("opacity",{duration:o,delay:n}),C.transitions.create("transform",{duration:Jd?o:.666*o,delay:Jd?n:n||.333*o,easing:i})].join(","),e.style.opacity=0,e.style.transform=Yd(.75),u&&u(e)})),D=S(h);return n.useEffect((()=>()=>{clearTimeout(_.current)}),[]),(0,Nt.jsx)(f,(0,_t.Z)({appear:o,in:a,nodeRef:y,onEnter:L,onEntered:k,onEntering:x,onExit:N,onExited:D,onExiting:E,addEndListener:e=>{"auto"===m&&(_.current=setTimeout(e,b.current||0)),i&&i(y.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>n.cloneElement(r,(0,_t.Z)({style:(0,_t.Z)({opacity:0,transform:Yd(.75),visibility:"exited"!==e||a?void 0:"hidden"},Xd[e],p,r.props.style),ref:w},t))}))}));eu.muiSupportAuto=!0;const tu=eu;var nu=s(67653),iu=s(69781),ou=s(24784),ru=s(44068);const su=n.forwardRef((function(e,t){const{children:i,container:o,disablePortal:r=!1}=e,[s,a]=n.useState(null),l=(0,ta.Z)(n.isValidElement(i)?i.ref:null,t);if((0,sl.Z)((()=>{r||a(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,r]),(0,sl.Z)((()=>{if(s&&!r)return(0,ru.Z)(t,s),()=>{(0,ru.Z)(t,null)}}),[t,s,r]),r){if(n.isValidElement(i)){const e={ref:l};return n.cloneElement(i,e)}return(0,Nt.jsx)(n.Fragment,{children:i})}return(0,Nt.jsx)(n.Fragment,{children:s?Xr.createPortal(i,s):s})}));function au(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function lu(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function cu(e){return parseInt((0,ol.Z)(e).getComputedStyle(e).paddingRight,10)||0}function du(e,t,n,i,o){const r=[t,n,...i];[].forEach.call(e.children,(e=>{const t=-1===r.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&lu(e,o)}))}function uu(e,t){let n=-1;return e.some(((e,i)=>!!t(e)&&(n=i,!0))),n}const hu=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function gu(e){const t=[],n=[];return Array.from(e.querySelectorAll(hu)).forEach(((e,i)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:i,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function pu(){return!0}const mu=function(e){const{children:t,disableAutoFocus:i=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:s=gu,isEnabled:a=pu,open:l}=e,c=n.useRef(!1),d=n.useRef(null),u=n.useRef(null),h=n.useRef(null),g=n.useRef(null),p=n.useRef(!1),m=n.useRef(null),f=(0,ta.Z)(t.ref,m),v=n.useRef(null);n.useEffect((()=>{l&&m.current&&(p.current=!i)}),[i,l]),n.useEffect((()=>{if(!l||!m.current)return;const e=(0,nu.Z)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{r||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}}),[l]),n.useEffect((()=>{if(!l||!m.current)return;const e=(0,nu.Z)(m.current),t=t=>{const{current:n}=m;if(null!==n)if(e.hasFocus()&&!o&&a()&&!c.current){if(!n.contains(e.activeElement)){if(t&&g.current!==t.target||e.activeElement!==g.current)g.current=null;else if(null!==g.current)return;if(!p.current)return;let o=[];if(e.activeElement!==d.current&&e.activeElement!==u.current||(o=s(m.current)),o.length>0){var i,r;const e=Boolean((null==(i=v.current)?void 0:i.shiftKey)&&"Tab"===(null==(r=v.current)?void 0:r.key)),t=o[0],n=o[o.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}else c.current=!1},n=t=>{v.current=t,!o&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[i,o,r,a,l,s]);const _=e=>{null===h.current&&(h.current=e.relatedTarget),p.current=!0};return(0,Nt.jsxs)(n.Fragment,{children:[(0,Nt.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:d,"data-testid":"sentinelStart"}),n.cloneElement(t,{ref:f,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),p.current=!0,g.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,Nt.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:u,"data-testid":"sentinelEnd"})]})};function fu(e){return(0,kt.Z)("MuiModal",e)}(0,Lt.Z)("MuiModal",["root","hidden","backdrop"]);const vu={disableDefaultClasses:!1},_u=n.createContext(vu);function bu(e){const{disableDefaultClasses:t}=n.useContext(_u);return n=>t?"":e(n)}const Cu=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],yu=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&lu(e.modalRef,!1);const i=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);du(t,e.mount,e.modalRef,i,!0);const o=uu(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:i}),n)}mount(e,t){const n=uu(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[n];i.restore||(i.restore=function(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,nu.Z)(e);return t.body===e?(0,ol.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){const e=au((0,nu.Z)(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${cu(i)+e}px`;const t=(0,nu.Z)(i).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${cu(t)+e}px`}))}let e;if(i.parentNode instanceof DocumentFragment)e=(0,nu.Z)(i).body;else{const t=i.parentElement,n=(0,ol.Z)(i);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:i}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}(i,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const i=uu(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&lu(e.modalRef,t),du(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&lu(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},wu=n.forwardRef((function(e,t){var i,o;const{children:r,closeAfterTransition:s=!1,container:a,disableAutoFocus:l=!1,disableEnforceFocus:c=!1,disableEscapeKeyDown:d=!1,disablePortal:u=!1,disableRestoreFocus:h=!1,disableScrollLock:g=!1,hideBackdrop:p=!1,keepMounted:m=!1,manager:f=yu,onBackdropClick:v,onClose:_,onKeyDown:b,open:C,onTransitionEnter:y,onTransitionExited:w,slotProps:S={},slots:x={}}=e,L=ea(e,Cu),k=f,[E,N]=n.useState(!C),D=n.useRef({}),I=n.useRef(null),R=n.useRef(null),T=(0,ta.Z)(R,t),O=function(e){return!!e&&e.props.hasOwnProperty("in")}(r),q=null==(i=e["aria-hidden"])||i,A=()=>(D.current.modalRef=R.current,D.current.mountNode=I.current,D.current),M=()=>{k.mount(A(),{disableScrollLock:g}),R.current&&(R.current.scrollTop=0)},P=(0,iu.Z)((()=>{const e=function(e){return"function"==typeof e?e():e}(a)||(0,nu.Z)(I.current).body;k.add(A(),e),R.current&&M()})),F=n.useCallback((()=>k.isTopModal(A())),[k]),B=(0,iu.Z)((e=>{I.current=e,e&&R.current&&(C&&F()?M():lu(R.current,q))})),W=n.useCallback((()=>{k.remove(A(),q)}),[k,q]);n.useEffect((()=>()=>{W()}),[W]),n.useEffect((()=>{C?P():O&&s||W()}),[C,W,O,s,P]);const V=Js({},e,{closeAfterTransition:s,disableAutoFocus:l,disableEnforceFocus:c,disableEscapeKeyDown:d,disablePortal:u,disableRestoreFocus:h,disableScrollLock:g,exited:E,hideBackdrop:p,keepMounted:m}),z=(e=>{const{open:t,exited:n}=e,i={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,Ct.Z)(i,bu(fu))})(V),H={};void 0===r.props.tabIndex&&(H.tabIndex="-1"),O&&(H.onEnter=(0,ou.Z)((()=>{N(!1),y&&y()}),r.props.onEnter),H.onExited=(0,ou.Z)((()=>{N(!0),w&&w(),s&&W()}),r.props.onExited));const j=null!=(o=x.root)?o:"div",U=la({elementType:j,externalSlotProps:S.root,externalForwardedProps:L,additionalProps:{ref:T,role:"presentation",onKeyDown:e=>{b&&b(e),"Escape"===e.key&&F()&&(d||(e.stopPropagation(),_&&_(e,"escapeKeyDown")))}},className:z.root,ownerState:V}),$=x.backdrop,K=la({elementType:$,externalSlotProps:S.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(v&&v(e),_&&_(e,"backdropClick"))},open:C},className:z.backdrop,ownerState:V});return m||C||O&&!E?(0,Nt.jsx)(su,{ref:B,container:a,disablePortal:u,children:(0,Nt.jsxs)(j,Js({},U,{children:[!p&&$?(0,Nt.jsx)($,Js({},K)):null,(0,Nt.jsx)(mu,{disableEnforceFocus:c,disableAutoFocus:l,disableRestoreFocus:h,isEnabled:F,open:C,children:n.cloneElement(r,H)})]}))}):null})),Su=wu,xu=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Lu={entering:{opacity:1},entered:{opacity:1}},ku=n.forwardRef((function(e,t){const i=Yt(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:r,appear:s=!0,children:a,easing:l,in:c,onEnter:d,onEntered:u,onEntering:h,onExit:g,onExited:p,onExiting:m,style:f,timeout:v=o,TransitionComponent:_=ss}=e,b=(0,vt.Z)(e,xu),C=n.useRef(null),y=(0,To.Z)(C,a.ref,t),w=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},S=w(h),x=w(((e,t)=>{ls(e);const n=cs({style:f,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=i.transitions.create("opacity",n),e.style.transition=i.transitions.create("opacity",n),d&&d(e,t)})),L=w(u),k=w(m),E=w((e=>{const t=cs({style:f,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=i.transitions.create("opacity",t),e.style.transition=i.transitions.create("opacity",t),g&&g(e)})),N=w(p);return(0,Nt.jsx)(_,(0,_t.Z)({appear:s,in:c,nodeRef:C,onEnter:x,onEntered:L,onEntering:S,onExit:E,onExited:N,onExiting:k,addEndListener:e=>{r&&r(C.current,e)},timeout:v},b,{children:(e,t)=>n.cloneElement(a,(0,_t.Z)({style:(0,_t.Z)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},Lu[e],f,a.props.style),ref:y},t))}))})),Eu=ku;function Nu(e){return(0,kt.Z)("MuiBackdrop",e)}(0,Lt.Z)("MuiBackdrop",["root","invisible"]);const Du=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Iu=(0,xt.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,_t.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),Ru=n.forwardRef((function(e,t){var n,i,o;const r=(0,St.Z)({props:e,name:"MuiBackdrop"}),{children:s,className:a,component:l="div",components:c={},componentsProps:d={},invisible:u=!1,open:h,slotProps:g={},slots:p={},TransitionComponent:m=Eu,transitionDuration:f}=r,v=(0,vt.Z)(r,Du),_=(0,_t.Z)({},r,{component:l,invisible:u}),b=(e=>{const{classes:t,invisible:n}=e,i={root:["root",n&&"invisible"]};return(0,Ct.Z)(i,Nu,t)})(_),C=null!=(n=g.root)?n:d.root;return(0,Nt.jsx)(m,(0,_t.Z)({in:h,timeout:f},v,{children:(0,Nt.jsx)(Iu,(0,_t.Z)({"aria-hidden":!0},C,{as:null!=(i=null!=(o=p.root)?o:c.Root)?i:l,className:(0,bt.Z)(b.root,a,null==C?void 0:C.className),ownerState:(0,_t.Z)({},_,null==C?void 0:C.ownerState),classes:b,ref:t,children:s}))}))})),Tu=Ru,Ou=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],qu=(0,xt.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,_t.Z)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Au=(0,xt.ZP)(Tu,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Mu=n.forwardRef((function(e,t){var i,o,r,s,a,l;const c=(0,St.Z)({name:"MuiModal",props:e}),{BackdropComponent:d=Au,BackdropProps:u,classes:h,className:g,closeAfterTransition:p=!1,children:m,container:f,component:v,components:_={},componentsProps:b={},disableAutoFocus:C=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:w=!1,disablePortal:S=!1,disableRestoreFocus:x=!1,disableScrollLock:L=!1,hideBackdrop:k=!1,keepMounted:E=!1,onBackdropClick:N,onClose:D,open:I,slotProps:R,slots:T,theme:O}=c,q=(0,vt.Z)(c,Ou),[A,M]=n.useState(!0),P={container:f,closeAfterTransition:p,disableAutoFocus:C,disableEnforceFocus:y,disableEscapeKeyDown:w,disablePortal:S,disableRestoreFocus:x,disableScrollLock:L,hideBackdrop:k,keepMounted:E,onBackdropClick:N,onClose:D,open:I},F=(0,_t.Z)({},c,P,{exited:A}),B=null!=(i=null!=(o=null==T?void 0:T.root)?o:_.Root)?i:qu,W=null!=(r=null!=(s=null==T?void 0:T.backdrop)?s:_.Backdrop)?r:d,V=null!=(a=null==R?void 0:R.root)?a:b.root,z=null!=(l=null==R?void 0:R.backdrop)?l:b.backdrop;return(0,Nt.jsx)(Su,(0,_t.Z)({slots:{root:B,backdrop:W},slotProps:{root:()=>(0,_t.Z)({},sa(V,F),!Ns(B)&&{as:v,theme:O},{className:(0,bt.Z)(g,null==V?void 0:V.className,null==h?void 0:h.root,!F.open&&F.exited&&(null==h?void 0:h.hidden))}),backdrop:()=>(0,_t.Z)({},u,sa(z,F),{className:(0,bt.Z)(null==z?void 0:z.className,null==h?void 0:h.backdrop)})},onTransitionEnter:()=>M(!1),onTransitionExited:()=>M(!0),ref:t},q,P,{children:m}))})),Pu=Mu,Fu=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Bu(e){return(0,kt.Z)("MuiPaper",e)}(0,Lt.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Wu=["className","component","elevation","square","variant"],Vu=(0,xt.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return(0,_t.Z)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,_t.Z)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,Ro.Fq)("#fff",Fu(t.elevation))}, ${(0,Ro.Fq)("#fff",Fu(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),zu=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiPaper"}),{className:i,component:o="div",elevation:r=1,square:s=!1,variant:a="elevation"}=n,l=(0,vt.Z)(n,Wu),c=(0,_t.Z)({},n,{component:o,elevation:r,square:s,variant:a}),d=(e=>{const{square:t,elevation:n,variant:i,classes:o}=e,r={root:["root",i,!t&&"rounded","elevation"===i&&`elevation${n}`]};return(0,Ct.Z)(r,Bu,o)})(c);return(0,Nt.jsx)(Vu,(0,_t.Z)({as:o,ownerState:c,className:(0,bt.Z)(d.root,i),ref:t},l))})),Hu=zu;function ju(e){return(0,kt.Z)("MuiPopover",e)}(0,Lt.Z)("MuiPopover",["root","paper"]);const Uu=["onEntering"],$u=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function Ku(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Gu(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Zu(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Qu(e){return"function"==typeof e?e():e}const Yu=(0,xt.ZP)(Pu,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xu=(0,xt.ZP)(Hu,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Ju=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiPopover"}),{action:o,anchorEl:r,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:d,container:u,elevation:h=8,marginThreshold:g=16,open:p,PaperProps:m={},transformOrigin:f={vertical:"top",horizontal:"left"},TransitionComponent:v=tu,transitionDuration:_="auto",TransitionProps:{onEntering:b}={}}=i,C=(0,vt.Z)(i.TransitionProps,Uu),y=(0,vt.Z)(i,$u),w=n.useRef(),S=(0,To.Z)(w,m.ref),x=(0,_t.Z)({},i,{anchorOrigin:s,anchorReference:l,elevation:h,marginThreshold:g,PaperProps:m,transformOrigin:f,TransitionComponent:v,transitionDuration:_,TransitionProps:C}),L=(e=>{const{classes:t}=e;return(0,Ct.Z)({root:["root"],paper:["paper"]},ju,t)})(x),k=n.useCallback((()=>{if("anchorPosition"===l)return a;const e=Qu(r),t=(e&&1===e.nodeType?e:(0,Ea.Z)(w.current).body).getBoundingClientRect();return{top:t.top+Ku(t,s.vertical),left:t.left+Gu(t,s.horizontal)}}),[r,s.horizontal,s.vertical,a,l]),E=n.useCallback((e=>({vertical:Ku(e,f.vertical),horizontal:Gu(e,f.horizontal)})),[f.horizontal,f.vertical]),N=n.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=E(t);if("none"===l)return{top:null,left:null,transformOrigin:Zu(n)};const i=k();let o=i.top-n.vertical,s=i.left-n.horizontal;const a=o+t.height,c=s+t.width,d=(0,pa.Z)(Qu(r)),u=d.innerHeight-g,h=d.innerWidth-g;if(o<g){const e=o-g;o-=e,n.vertical+=e}else if(a>u){const e=a-u;o-=e,n.vertical+=e}if(s<g){const e=s-g;s-=e,n.horizontal+=e}else if(c>h){const e=c-h;s-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(s)}px`,transformOrigin:Zu(n)}}),[r,l,k,E,g]),[D,I]=n.useState(p),R=n.useCallback((()=>{const e=w.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)}),[N]);n.useEffect((()=>{p&&R()})),n.useImperativeHandle(o,(()=>p?{updatePosition:()=>{R()}}:null),[p,R]),n.useEffect((()=>{if(!p)return;const e=(0,ca.Z)((()=>{R()})),t=(0,pa.Z)(r);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[r,p,R]);let T=_;"auto"!==_||v.muiSupportAuto||(T=void 0);const O=u||(r?(0,Ea.Z)(Qu(r)).body:void 0);return(0,Nt.jsx)(Yu,(0,_t.Z)({BackdropProps:{invisible:!0},className:(0,bt.Z)(L.root,d),container:O,open:p,ref:t,ownerState:x},y,{children:(0,Nt.jsx)(v,(0,_t.Z)({appear:!0,in:p,onEntering:(e,t)=>{b&&b(e,t),R()},onExited:()=>{I(!1)},timeout:T},C,{children:(0,Nt.jsx)(Xu,(0,_t.Z)({elevation:h},m,{ref:S,className:(0,bt.Z)(L.paper,m.className)},D?void 0:{style:(0,_t.Z)({},m.style,{opacity:0})},{ownerState:x,children:c}))}))}))})),eh=Ju;var th=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),nh=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};const ih=function(e){function t(){var e,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=Array(o),s=0;s<o;s++)r[s]=arguments[s];return n=i=nh(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;i._lastRenderedStartIndex=t,i._lastRenderedStopIndex=n,i._ensureRowsLoaded(t,n)},i._setRef=function(e){i._listRef=e},nh(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),th(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,i=n.isItemLoaded,o=n.itemCount,r=n.minimumBatchSize,s=void 0===r?10:r,a=n.threshold,l=void 0===a?15:a,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,i=e.minimumBatchSize,o=e.stopIndex,r=[],s=null,a=null,l=e.startIndex;l<=o;l++)t(l)?null!==a&&(r.push(s,a),s=a=null):(a=l,null===s&&(s=l));if(null!==a){for(var c=Math.min(Math.max(a,s+i-1),n-1),d=a+1;d<=c&&!t(d);d++)a=d;r.push(s,a)}if(r.length)for(;r[1]-r[0]+1<i&&r[0]>0;){var u=r[0]-1;if(t(u))break;r[0]=u}return r}({isItemLoaded:i,itemCount:o,minimumBatchSize:s,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,i=function(i){var o=e[i],r=e[i+1],s=n(o,r);null!=s&&s.then((function(){if(!((e={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:r}).startIndex>e.lastRenderedStopIndex||e.stopIndex<e.lastRenderedStartIndex)){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())}var e}))},o=0;o<e.length;o+=2)i(o)}}]),t}(n.PureComponent),oh=["S","XS"],rh=e=>e.reduce(((e,t)=>e.concat(t)));async function sh({selections:e,elemNumbers:t,toggle:n,isSingleSelect:i}){if(0===t.length)return!1;let o=!1;if(!t.some((e=>Number.isNaN(e)))){const r=t;try{o=!1!==await e.select({method:"selectListObjectValues",params:["/qListObjectDef",r,n]})}catch{o=!1}o||(i?e.cancel():e.clear())}return o}const ah="RowColumn",lh={row:`${ah}-row`,rowBorderBottom:`${ah}-rowBorderBottom`,column:`${ah}-column`,fieldRoot:`${ah}-fieldRoot`,cell:`${ah}-cell`,labelText:`${ah}-labelText`,labelDense:`${ah}-labelDense`,highlighted:`${ah}-highlighted`,checkboxLabel:`${ah}-checkboxLabel`,icon:`${ah}-icon`,S:`${ah}-S`,XS:`${ah}-XS`,A:`${ah}-A`,X:`${ah}-X`,frequencyCount:`${ah}-frequencyCount`,barContainer:`${ah}-barContainer`,bar:`${ah}-bar`,barSelected:`${ah}-barSelected`,barWithCheckbox:`${ah}-barWithCheckbox`,barSelectedWithCheckbox:`${ah}-barSelectedWithCheckbox`,excludedTextWithCheckbox:`${ah}-excludedTextWithCheckbox`},ch=`.${lh.fieldRoot}`,dh=e=>!(e?.metaKey||e?.ctrlKey);const uh=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]}),hh=e=>Cs(uh(e)),gh=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,ph=e=>e?"A"===e.qState:null,mh=({cell:e,checkboxes:t})=>(ph(e)||gh(e))&&t,fh=9,vh=80,_h=10,bh=150,Ch=40,yh=56,wh=20,Sh=e=>e.filter((e=>!!e)).join(" ").trim(),xh=e=>e||"-",Lh=({theme:e})=>({background:e.palette.selected.main,color:e.palette.selected.mainContrastText,"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder}`,outline:"none"},"& $cell":{paddingRight:0}}),kh={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Eh=(0,xt.ZP)("div",{shouldForwardProp:e=>!["flexBasisProp","isGridMode","isGridCol","dense","frequencyWidth","direction"].includes(e)})((({theme:e,flexBasisProp:t,isGridMode:n,isGridCol:i,dense:o,frequencyWidth:r,direction:s})=>({"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"}},[`& .${lh.row}`]:{flexWrap:"nowrap",color:e.listBox?.content?.color??e.palette.text.primary},[`& .${lh.rowBorderBottom}`]:{borderBottom:i?"none":`1px solid ${e.palette.divider}`,borderLeft:i?`1px solid ${e.palette.divider}`:"none"},[`& .${lh.column}`]:{flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`,color:e.listBox?.content?.color??e.palette.text.primary},[`& .${lh.cell}`]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:`${fh}px`,paddingRight:0},[`& .${lh.labelText}`]:{flexBasis:t,lineHeight:"16px",userSelect:"none",paddingRight:"1px",...kh,fontSize:e.listBox?.content?.fontSize,fontFamily:e.listBox?.content?.fontFamily},[`& .${lh.labelDense}`]:{fontSize:12},[`& .${lh.highlighted}`]:{backgroundColor:"#FFC72A"},[`& .${lh.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":{...kh,display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"}},[`& .${lh.icon}`]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24},[`& .${lh.S}`]:{...Lh({theme:e}),border:n?"none":void 0},[`& .${lh.XS}`]:{...Lh({theme:e}),background:e.palette.selected.excluded,color:e.palette.selected.excludedContrastText,border:n?"none":void 0},[`& .${lh.A}`]:{background:e.palette.selected.alternative,color:e.palette.selected.alternativeContrastText,border:n?"none":void 0},[`& .${lh.X}`]:{background:e.palette.selected.excluded,color:e.palette.selected.excludedContrastText,border:n?"none":void 0},[`& .${lh.frequencyCount}`]:{justifyContent:"flex-end",...kh,flex:`0 1 ${r}px`,textAlign:"rtl"===s?"left":"right",paddingLeft:"2px"},[`&.${lh.barContainer}`]:{height:"100%",display:"flex",alignItems:"center"},[`& .${lh.bar}`]:{height:o?"16px":"20px",position:"absolute",zIndex:"-1",alignSelf:"center",left:4,width:"calc(100% - 8px)",display:"flex",alignItems:"center","& .bar-filled":{border:"1px solid",borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},[`& .${lh.barSelected}`]:{zIndex:"0","& .bar-filled":{opacity:"30%",background:e.palette.background.lighter}},[`& .${lh.barWithCheckbox}`]:{left:"rtl"===s?4:29,width:"calc(100% - 33px)"},[`& .${lh.barSelectedWithCheckbox}`]:{"& .bar-filled":{background:"#BFE5D0",borderColor:"#BFE5D0"}},[`& .${lh.excludedTextWithCheckbox}`]:{color:"#828282",fontStyle:"italic"}}))),Nh=n.memo(Eh);function Dh(e){return(0,kt.Z)("MuiFormControlLabel",e)}const Ih=(0,Lt.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Rh=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Th=(0,xt.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ih.label}`]:t.label},t.root,t[`labelPlacement${(0,Ut.Z)(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,_t.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ih.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Ih.label}`]:{[`&.${Ih.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Oh=(0,xt.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Ih.error}`]:{color:(e.vars||e).palette.error.main}}))),qh=n.forwardRef((function(e,t){var i,o;const r=(0,St.Z)({props:e,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:d,label:u,labelPlacement:h="end",required:g,slotProps:p={}}=r,m=(0,vt.Z)(r,Rh),f=Ya(),v=null!=(i=null!=c?c:l.props.disabled)?i:null==f?void 0:f.disabled,_=null!=g?g:l.props.required,b={disabled:v,required:_};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==r[e]&&(b[e]=r[e])}));const C=Xa({props:r,muiFormControl:f,states:["error"]}),y=(0,_t.Z)({},r,{disabled:v,labelPlacement:h,required:_,error:C.error}),w=(e=>{const{classes:t,disabled:n,labelPlacement:i,error:o,required:r}=e,s={root:["root",n&&"disabled",`labelPlacement${(0,Ut.Z)(i)}`,o&&"error",r&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,Ct.Z)(s,Dh,t)})(y),S=null!=(o=p.typography)?o:a.typography;let x=u;return null==x||x.type===zr||d||(x=(0,Nt.jsx)(zr,(0,_t.Z)({component:"span"},S,{className:(0,bt.Z)(w.label,null==S?void 0:S.className),children:x}))),(0,Nt.jsxs)(Th,(0,_t.Z)({className:(0,bt.Z)(w.root,s),ownerState:y,ref:t},m,{children:[n.cloneElement(l,b),x,_&&(0,Nt.jsxs)(Oh,{ownerState:y,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}))})),Ah=qh;var Mh=s(66055);function Ph(e){return(0,kt.Z)("PrivateSwitchBase",e)}(0,Lt.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Fh=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Bh=(0,xt.ZP)(vr)((({ownerState:e})=>(0,_t.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Wh=(0,xt.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Vh=n.forwardRef((function(e,t){const{autoFocus:n,checked:i,checkedIcon:o,className:r,defaultChecked:s,disabled:a,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:u,inputProps:h,inputRef:g,name:p,onBlur:m,onChange:f,onFocus:v,readOnly:_,required:b=!1,tabIndex:C,type:y,value:w}=e,S=(0,vt.Z)(e,Fh),[x,L]=(0,Mh.Z)({controlled:i,default:Boolean(s),name:"SwitchBase",state:"checked"}),k=Ya();let E=a;k&&void 0===E&&(E=k.disabled);const N="checkbox"===y||"radio"===y,D=(0,_t.Z)({},e,{checked:x,disabled:E,disableFocusRipple:l,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:i,edge:o}=e,r={root:["root",n&&"checked",i&&"disabled",o&&`edge${(0,Ut.Z)(o)}`],input:["input"]};return(0,Ct.Z)(r,Ph,t)})(D);return(0,Nt.jsxs)(Bh,(0,_t.Z)({component:"span",className:(0,bt.Z)(I.root,r),centerRipple:!0,focusRipple:!l,disabled:E,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),k&&k.onFocus&&k.onFocus(e)},onBlur:e=>{m&&m(e),k&&k.onBlur&&k.onBlur(e)},ownerState:D,ref:t},S,{children:[(0,Nt.jsx)(Wh,(0,_t.Z)({autoFocus:n,checked:i,defaultChecked:s,className:I.input,disabled:E,id:N?u:void 0,name:p,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;L(t),f&&f(e,t)},readOnly:_,ref:g,required:b,ownerState:D,tabIndex:C,type:y},"checkbox"===y&&void 0===w?{}:{value:w},h)),x?o:d]}))})),zh=Vh,Hh=(0,no.Z)((0,Nt.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),jh=(0,no.Z)((0,Nt.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Uh=(0,no.Z)((0,Nt.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function $h(e){return(0,kt.Z)("MuiCheckbox",e)}const Kh=(0,Lt.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),Gh=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Zh=(0,xt.ZP)(zh,{shouldForwardProp:e=>(0,xt.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${(0,Ut.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,_t.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ro.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Kh.checked}, &.${Kh.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Kh.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Qh=(0,Nt.jsx)(jh,{}),Yh=(0,Nt.jsx)(Hh,{}),Xh=(0,Nt.jsx)(Uh,{}),Jh=n.forwardRef((function(e,t){var i,o;const r=(0,St.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:s=Qh,color:a="primary",icon:l=Yh,indeterminate:c=!1,indeterminateIcon:d=Xh,inputProps:u,size:h="medium",className:g}=r,p=(0,vt.Z)(r,Gh),m=c?d:l,f=c?d:s,v=(0,_t.Z)({},r,{color:a,indeterminate:c,size:h}),_=(e=>{const{classes:t,indeterminate:n,color:i}=e,o={root:["root",n&&"indeterminate",`color${(0,Ut.Z)(i)}`]},r=(0,Ct.Z)(o,$h,t);return(0,_t.Z)({},t,r)})(v);return(0,Nt.jsx)(Zh,(0,_t.Z)({type:"checkbox",inputProps:(0,_t.Z)({"data-indeterminate":c},u),icon:n.cloneElement(m,{fontSize:null!=(i=m.props.fontSize)?i:h}),checkedIcon:n.cloneElement(f,{fontSize:null!=(o=f.props.fontSize)?o:h}),ownerState:v,ref:t,className:(0,bt.Z)(_.root,g)},p,{classes:_}))})),eg=Jh,tg="ListBoxCheckbox",ng={cbIcon:`${tg}-cbIcon`,cbIconChecked:`${tg}-cbIconChecked`,cbIconExcluded:`${tg}-cbIconExcluded`,cbIconAlternative:`${tg}-cbIconAlternative`,checkbox:`${tg}-checkbox`,dense:`${tg}-dense`},ig=(0,xt.ZP)(eg)((({theme:e})=>({[`& .${ng.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"},[`& .${ng.cbIconChecked}`]:{borderRadius:3,backgroundColor:e.palette.selected.main,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},[`& .${ng.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.palette.selected.excluded},[`& .${ng.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.palette.selected.alternative},[`&.${ng.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${ng.dense}`]:{padding:"4px 8px"}}))),og=(e,t=!0,i=!1)=>n.createElement("span",{className:e.cbIcon},i&&n.createElement("span",{className:t&&i?e.cbIconExcluded:""}));function rg({onChange:e,checked:t,label:i,dense:o,excluded:r,showGray:s=!0,dataN:a}){return n.createElement(ig,{edge:"start",onChange:e,checked:t,disableRipple:!0,className:[ng.checkbox,o&&ng.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":i,"data-n":a},name:i,icon:og(ng,s,r),checkedIcon:n.createElement("span",{className:ng.cbIconChecked})})}const sg=(0,no.Z)((0,Nt.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),ag=(0,no.Z)((0,Nt.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),lg=(0,xt.ZP)("span")({position:"relative",display:"flex"}),cg=(0,xt.ZP)(sg)({transform:"scale(1)"}),dg=(0,xt.ZP)(ag)((({theme:e,ownerState:t})=>(0,_t.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}))),ug=function(e){const{checked:t=!1,classes:n={},fontSize:i}=e,o=(0,_t.Z)({},e,{checked:t});return(0,Nt.jsxs)(lg,{className:n.root,ownerState:o,children:[(0,Nt.jsx)(cg,{fontSize:i,className:n.background,ownerState:o}),(0,Nt.jsx)(dg,{fontSize:i,className:n.dot,ownerState:o})]})};var hg=s(80062);const gg=n.createContext(void 0);function pg(e){return(0,kt.Z)("MuiRadio",e)}const mg=(0,Lt.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),fg=["checked","checkedIcon","color","icon","name","onChange","size","className"],vg=(0,xt.ZP)(zh,{shouldForwardProp:e=>(0,xt.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,Ut.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,_t.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ro.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${mg.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${mg.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),_g=(0,Nt.jsx)(ug,{checked:!0}),bg=(0,Nt.jsx)(ug,{}),Cg=n.forwardRef((function(e,t){var i,o;const r=(0,St.Z)({props:e,name:"MuiRadio"}),{checked:s,checkedIcon:a=_g,color:l="primary",icon:c=bg,name:d,onChange:u,size:h="medium",className:g}=r,p=(0,vt.Z)(r,fg),m=(0,_t.Z)({},r,{color:l,size:h}),f=(e=>{const{classes:t,color:n}=e,i={root:["root",`color${(0,Ut.Z)(n)}`]};return(0,_t.Z)({},t,(0,Ct.Z)(i,pg,t))})(m),v=n.useContext(gg);let _=s;const b=(0,hg.Z)(u,v&&v.onChange);let C=d;var y,w;return v&&(void 0===_&&(y=v.value,_="object"==typeof(w=r.value)&&null!==w?y===w:String(y)===String(w)),void 0===C&&(C=v.name)),(0,Nt.jsx)(vg,(0,_t.Z)({type:"radio",icon:n.cloneElement(c,{fontSize:null!=(i=bg.props.fontSize)?i:h}),checkedIcon:n.cloneElement(a,{fontSize:null!=(o=_g.props.fontSize)?o:h}),ownerState:m,classes:f,name:C,checked:_,onChange:b,ref:t,className:(0,bt.Z)(f.root,g)},p))})),yg=Cg,wg="ListBoxRadioButton",Sg={denseRadioButton:`${wg}-denseRadioButton`,radioButton:`${wg}-radioButton`},xg=(0,xt.ZP)(yg)((({theme:e,checked:t})=>({[`&.${Sg.radioButton}`]:{right:"5px",color:t?e.palette.selected.main:e.palette.main}})));function Lg({onChange:e,checked:t,label:i,dense:o,dataN:r}){return n.createElement(xg,{checked:t,onChange:e,value:i,name:i,className:Sg.radioButton,inputProps:{"data-n":r},style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}const kg=function({label:e,color:t,dense:i,showGray:o=!0,checkboxes:r,cell:s,valueTextAlign:a}){return n.createElement(zr,{component:"span",variant:"body2",className:Sh([lh.labelText,i&&lh.labelDense,o&&mh({cell:s,checkboxes:r})&&lh.excludedTextWithCheckbox]),color:t,align:a,dir:"auto"},n.createElement("span",null,e))},Eg=function({label:e,color:t,dense:i,showGray:o,checkboxes:r,cell:s,valueTextAlign:a}){return"string"==typeof e?n.createElement(kg,{label:e,color:t,dense:i,showGray:o,checkboxes:r,cell:s,valueTextAlign:a}):e},Ng=function({onChange:e,label:t,color:i,qElemNumber:o,isSelected:r,dense:s,cell:a,isGridCol:l,showGray:c,isSingleSelect:d,checkboxes:u,valueTextAlign:h}){const g=n.createElement(rg,{onChange:e,label:t,checked:r,dense:s,excluded:gh(a),isGridCol:l,showGray:c,dataN:o}),p=n.createElement(Lg,{onChange:e,label:t,checked:r,dense:s,dataN:o});return n.createElement(Ah,{color:i,control:d?p:g,className:lh.checkboxLabel,label:n.createElement(Eg,{label:t,color:i,dense:s,showGray:c,checkboxes:u,cell:a,valueTextAlign:h}),key:o})};function Dg({labels:e,dense:t,showGray:i,checkboxes:o}){const r=e.map((([e,t],i)=>n.createElement("span",{id:i,className:t?lh.highlighted:""},e)));return n.createElement(kg,{label:r,dense:t,showGray:i,checkboxes:o})}const Ig=function({onChange:e,labels:t,checkboxes:i,dense:o,showGray:r,color:s,qElemNumber:a,isSelected:l,cell:c,isGridCol:d,isSingleSelect:u,valueTextAlign:h}){const g=n.createElement(Dg,{labels:t,dense:o,showGray:r,checkboxes:i});return i?n.createElement(Ng,{onChange:e,label:g,color:s,qElemNumber:a,isSelected:l,dense:o,cell:c,isGridCol:d,showGray:r,isSingleSelect:u,checkboxes:i,valueTextAlign:h}):g};function Rg({onChange:e,label:t,color:i,qElemNumber:o,isSelected:r,dense:s,cell:a,isGridCol:l,showGray:c,isSingleSelect:d,checkboxes:u,valueTextAlign:h}){return u?n.createElement(Ng,{onChange:e,label:t,color:i,qElemNumber:o,isSelected:r,dense:s,cell:a,isGridCol:l,showGray:c,isSingleSelect:d,checkboxes:u,valueTextAlign:h}):n.createElement(kg,{label:t,color:i,dense:s,showGray:!0,checkboxes:u,cell:a,valueTextAlign:h})}const Tg=n.memo(Rg),Og=function({qFrequency:e,histogram:t,checkboxes:i,isSelected:o,frequencyMax:r}){if(!e||!t||"-"===xh(e))return;const s=(({qFrequency:e,frequencyMax:t})=>{const n=String(e),i="%"===n.substring(n.length-1),o=parseFloat(i?n:e);return`${i?o:o/t*100}%`})({qFrequency:e,checkboxes:i,frequencyMax:r});return n.createElement(Hi,{className:Sh([lh.bar,i&&lh.barWithCheckbox,o&&(i?lh.barSelectedWithCheckbox:lh.barSelected)])},n.createElement(Hi,{className:"bar-filled",width:s}))},qg=function({cell:e,checkboxes:t,dense:i,showGray:o}){const r=xh(e?.qFrequency);return n.createElement(Ar,{item:!0,style:{display:"flex",alignItems:"center"},className:lh.frequencyCount,"aria-label":r},n.createElement(zr,{noWrap:!0,color:"inherit",variant:"body2",className:Sh([i&&lh.labelDense,lh.labelText,o&&mh({cell:e,checkboxes:t})&&lh.excludedTextWithCheckbox])},r))};function Ag({dataLayout:e,layoutOrder:t,itemPadding:n}){if("singleColumn"===e)return{height:"100%",width:"100%"};switch(t){case"row":case"column":return{height:`calc(100% - ${n}px)`,width:`calc(100% - ${2*n}px)`,position:"absolute",left:4};default:return{}}}const Mg=(0,xt.ZP)(Ar,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction"].includes(e)})((({dataLayout:e,layoutOrder:t,itemPadding:n,cellPaddingRight:i,direction:o})=>{const r="padding"+("rtl"===o?"Left":"Right");return{[`&.${lh.fieldRoot}`]:{...Ag({dataLayout:e,layoutOrder:t,itemPadding:n}),[r]:i?"8px":void 0}}})),Pg={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 Fg({layout:e}){const{translator:t}=(0,n.useContext)(hd),{qStateCounts:i={}}=e?.qListObject?.qDimensionInfo||{},o=i.qSelected+i.qSelectedExcluded+i.qLocked+i.qLockedExcluded;let r;switch(o){case 0:r="ScreenReader.ZeroSelected";break;case 1:r="ScreenReader.OneSelected";break;default:r="ScreenReader.ManySelected"}const s=t.get(r,[o]);return n.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},s)}const Bg=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===Bg.ARROW_UP||e===Bg.ARROW_DOWN||e===Bg.ARROW_LEFT||e===Bg.ARROW_RIGHT}),Wg=Bg,Vg=e=>+e.getAttribute("data-n"),zg=e=>{const t=e?.querySelector(".search input");return t?.focus(),t},Hg=e=>{const t=e?.querySelector(".value.last-focused, .value.selector, .value");return t?.setAttribute("tabIndex",0),t?.focus(),t},jg=function({index:e,rowIndex:t,columnIndex:i,style:o,data:r}){const{onChange:s,onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onTouchStart:u,onTouchEnd:h,pages:g,isLocked:p,column:m=!1,checkboxes:f=!1,textAlign:v,direction:_,layoutOptions:b={},freqIsAllowed:C,isSingleSelect:y,actions:w,frequencyMax:S="",histogram:x=!1,keyboard:L,showGray:k=!0,showTick:E=!0,columnCount:N=1,rowCount:D=1,dataOffset:I,focusListItems:R,listCount:T,itemPadding:O,frequencyWidth:q,translator:A,showSearch:M,isModal:P}=r,{dense:F=!1,dataLayout:B="singleColumn",layoutOrder:W}=b;let V,z;const H={max:null,currentIndex:null};if("number"==typeof t&&"number"==typeof i){"row"===W?(V=t*N+i,H.max=D,H.currentIndex=t):(V=i*D+t,H.max=N,H.currentIndex=i);const e=0;z={...o,left:e+(0===i?o.left:Number(o.left)+i*e),top:0===t?o.top:Number(o.top)+t*e}}else V=e,H.max=T,H.currentIndex=e,z={...o};V+=I;const[j,U]=(0,n.useState)(null);(0,n.useEffect)((()=>{null!==j&&(0===H.currentIndex&&R.first&&(j.focus(),R.setFirst(!1)),H.currentIndex===H.max-1&&R.last&&(j.focus(),R.setLast(!1)))}),[j,R.first,R.last]);const $=(0,n.useCallback)(function({select:e,selectAll:t,onCtrlF:n,confirm:i,cancel:o,setScrollPosition:r,focusListItems:s,keyboard:a,isModal:l,rowCount:c,columnCount:d,rowIndex:u,columnIndex:h,layoutOrder:g}){const p=(e,t,n=!1)=>{if(e===Wg.ARROW_LEFT||e===Wg.ARROW_RIGHT||"number"!=typeof u||"number"!=typeof h){const e=t?.parentElement[n?"nextElementSibling":"previousElementSibling"];return e?.querySelector("[role]")}const i=t?.parentElement.parentElement,o=i?.childElementCount;if(o){const n=(({rowIndex:e,columnIndex:t,rowCount:n,columnCount:i,layoutOrder:o,keyCode:r,numCells:s})=>{const a=e=>{let t;return"row"===o?(t=s%i,e<t?n:n-1):(t=s%n,e<i-1?n:t)};let l=e,c=t;if(r===Wg.ARROW_DOWN)if(e>=a(t)-1){if(t===i-1)return-1;l=0,c=t+1}else l=e+1;else if(0===e){if(0===t)return-1;l=a(t-1)-1,c=t-1}else l=e-1;if("row"===o)return l*i+c;const d=s%n;return 0===d||l<d?l*i+c:(l-d)*(i-1)+c+d*i})({rowIndex:u,columnIndex:h,rowCount:c,columnCount:d,layoutOrder:g,keyCode:e,numCells:o}),i=t?.parentElement.parentElement.children[n];return i?.querySelector("[role]")}};let m=!1;const f=e=>{m=e};return c=>{let d;const{currentTarget:u,nativeEvent:h}=c,{keyCode:g,shiftKey:v=!1,ctrlKey:_=!1,metaKey:b=!1}=h;switch(g){case Wg.TAB:{const e=u.closest(".listbox-container"),t=l();if(u.classList.add("last-focused"),v){zg(e)||(t?a.focusSelection():a.blur(!0));break}t?a.focusSelection():(u.blur(),a.blur());break}case Wg.SHIFT:f(!0);break;case Wg.SPACE:e([Vg(u)],!1,c);break;case Wg.ARROW_DOWN:case Wg.ARROW_RIGHT:d=p(g,u,!0),v&&d&&(m&&(e([Vg(u)],!0),f(!1)),e([Vg(d)],!0));break;case Wg.ARROW_UP:case Wg.ARROW_LEFT:d=p(g,u,!1),v&&d&&(m&&(e([Vg(u)],!0),f(!1)),e([Vg(d)],!0));break;case Wg.ENTER:i();break;case Wg.ESCAPE:if(!l())return;o();break;case Wg.HOME:if(s.setFirst(!0),_){r?.("overflowStart");break}r?.("start");break;case Wg.END:if(s.setLast(!0),_){r?.("overflowEnd");break}r?.("end");break;case Wg.A:if(_||b){t();break}return;case Wg.F:if(_||b){n();break}return;default:return}d&&d.focus(),c.preventDefault(),c.stopPropagation()}}({...w,focusListItems:R,keyboard:L,isModal:P,rowCount:D,columnCount:N,rowIndex:t,columnIndex:i,layoutOrder:W}),[w,L?.innerTabStops,D,N,t,i,W]),K=(0,n.useMemo)((()=>function({pages:e,cellIndex:t}){let n;const i=e.filter((e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight))[0];if(i){const e=i.qArea;t>=e.qTop&&t<e.qTop+e.qHeight&&([n]=i.qMatrix[t-e.qTop])}return n}({pages:g,cellIndex:V})),[g,V]),G="S"===K?.qState||"XS"===K?.qState||"L"===K?.qState||"XL"===K?.qState,Z=(0,n.useMemo)((()=>(({column:e,histogram:t,checkboxes:n,cell:i,showGray:o})=>{const r=[e?lh.column:lh.row];return t||r.push(lh.rowBorderBottom),i?(n||("XS"===i.qState?r.push(o?lh.XS:lh.S):"S"===i.qState||"L"===i.qState?r.push(lh.S):o&&ph(i)?r.push(lh.A):o&&gh(i)&&r.push(lh.X)),r):[]})({column:m,histogram:x,checkboxes:f,cell:K,showGray:k})),[K?.qState,x,F,f]),Q=(0,n.useCallback)((e=>{e.preventDefault()}),[f]);if(!K)return null;const Y=!["NaN",void 0].includes(K?.qNum);let X;X=!v||v.auto?Y?"rtl"===_?"left":"right":{rtl:"right",ltr:"left"}[_]:v?.align||"left";const J="grid"===B&&"column"===W,ee=K?.qText??"";let te;K.qHighlightRanges?.qRanges?.length&&(te=function(e,t){if(!t.length)return[];const n=t.reduce(((n,i,o)=>{const r=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t,n=0){const{qCharPos:i,qCharCount:o}=t,r=[];return i>n&&r.push([e.slice(n,i),!1]),r.push([e.slice(i,i+o),!0]),r}(e,i,r));const s=o===t.length-1,a=t[o].qCharPos+t[o].qCharCount;return s&&a<e.length&&n.push([e.slice(a),!1]),n}),[]);return n}(ee,K.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[]));const ne={alignItems:"center",display:"flex",fontSize:"8px"},ie={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"rtl"===_?8:f?0:void 0,paddingRight:f?0:"rtl"===_?8:0,justifyContent:X},oe=0===e,re=f?"auto":"max-content",se=G&&p,ae=!f&&G&&!p,le=!f&&E,ce=f||!E,de=function({translator:e,label:t,qState:n,isSelected:i,currentIndex:o,maxIndex:r,showSearch:s}){const a=Pg[n],l=e.get(a),c=[];if(i){const t=s?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=e.get(t);c.push(n)}const d=`${t} ${l}`,u=e.get("CurrentSelections.Of",[o+1,r+1]);return c.unshift(d,u),c.join(". ").trim()}({translator:A,label:ee,qState:K.qState,currentIndex:H.currentIndex,maxIndex:H.max,showSearch:M});return n.createElement(Nh,{className:lh.barContainer,flexBasisProp:re,style:z,isGridCol:J,isGridMode:"grid"===B,dense:F,frequencyWidth:q,direction:_,"data-testid":"listbox.item"},n.createElement(Mg,{role:"row","aria-label":de,"aria-selected":G,"aria-setsize":H.max,"aria-rowindex":H.currentIndex,ref:U,container:!0,dataLayout:B,cellPaddingRight:ce,layoutOrder:W,itemPadding:O,gap:0,className:Sh(["value",...Z]),classes:{root:lh.fieldRoot},onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onKeyDown:$,onTouchStart:u,onTouchEnd:h,onContextMenu:Q,tabIndex:oe&&L.innerTabStops?0:-1,"data-n":K?.qElemNumber,direction:_},K?.qFrequency&&n.createElement(Og,{qFrequency:K?.qFrequency,histogram:x,checkboxes:f,isSelected:G,frequencyMax:S}),n.createElement(Ar,{item:!0,style:ie,className:Sh([lh.cell,lh.selectedCell]),title:`${ee}`},te?n.createElement(Ig,{onChange:s,labels:te,checkboxes:f,dense:F,showGray:k,color:"inherit",qElemNumber:K.qElemNumber,isSelected:G,cell:K,isGridCol:J,isSingleSelect:y,valueTextAlign:X}):n.createElement(Tg,{onChange:s,label:ee,color:"inherit",qElemNumber:K.qElemNumber,isSelected:G,dense:F,cell:K,isGridCol:J,showGray:k,isSingleSelect:y,checkboxes:f,valueTextAlign:X})),C&&n.createElement(qg,{cell:K,checkboxes:f,dense:F,showGray:k}),le&&n.createElement(Ar,{item:!0,className:lh.icon},se&&n.createElement(Gd,{style:ne,size:"small"}),ae&&n.createElement(hh,{style:ne,size:"small"}))))};var Ug=s(49241),$g=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Kg(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((i=e[n])===(o=t[n])||$g(i)&&$g(o)))return!1;var i,o;return!0}const Gg=function(e,t){var n;void 0===t&&(t=Kg);var i,o=[],r=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return r&&n===this&&t(s,o)||(i=e.apply(this,s),r=!0,n=this,o=s),i}};var Zg="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Qg(e){cancelAnimationFrame(e.id)}function Yg(e,t){var n=Zg(),i={id:requestAnimationFrame((function o(){Zg()-n>=t?e.call(null):i.id=requestAnimationFrame(o)}))};return i}var Xg=-1;function Jg(e){if(void 0===e&&(e=!1),-1===Xg||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Xg=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Xg}var ep=null;function tp(e){if(void 0===e&&(e=!1),null===ep||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var i=document.createElement("div"),o=i.style;return o.width="100px",o.height="100px",t.appendChild(i),document.body.appendChild(t),t.scrollLeft>0?ep="positive-descending":(t.scrollLeft=1,ep=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ep}return ep}var np=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function ip(e){var t,i=e.getColumnOffset,o=e.getColumnStartIndexForOffset,r=e.getColumnStopIndexForStartIndex,s=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,c=e.getOffsetForColumnAndAlignment,d=e.getOffsetForRowAndAlignment,u=e.getRowHeight,h=e.getRowOffset,g=e.getRowStartIndexForOffset,p=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,Po(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Po(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Gg((function(e,t,i,o,r,s,a,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:i,overscanRowStopIndex:o,visibleColumnStartIndex:r,visibleColumnStopIndex:s,visibleRowStartIndex:a,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=Gg((function(e,t,i,o,r){return n.props.onScroll({horizontalScrollDirection:i,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,r=n.props,a=r.columnWidth,l=r.direction,c=r.rowHeight,d=n._getItemStyleCache(f&&a,f&&l,f&&c),g=e+":"+t;if(d.hasOwnProperty(g))o=d[g];else{var p=i(n.props,t,n._instanceProps),m="rtl"===l;d[g]=o={position:"absolute",left:m?void 0:p,right:m?p:void 0,top:h(n.props,e,n._instanceProps),height:u(n.props,e,n._instanceProps),width:s(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=Gg((function(e,t,n){return{}})),n._onScroll=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.clientWidth,r=t.scrollLeft,s=t.scrollTop,a=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===r&&e.scrollTop===s)return null;var t=n.props.direction,c=r;if("rtl"===t)switch(tp()){case"negative":c=-r;break;case"positive-descending":c=l-o-r}c=Math.max(0,Math.min(c,l-o));var d=Math.max(0,Math.min(s,a-i));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<r?"forward":"backward",scrollLeft:c,scrollTop:d,verticalScrollDirection:e.scrollTop<s?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&Qg(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Yg(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}Bo(t,e),t.getDerivedStateFromProps=function(e,t){return op(e,t),v(e),null};var _=t.prototype;return _.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)},_.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,i=e.columnIndex,o=e.rowIndex,r=this.props,s=r.columnCount,u=r.height,h=r.rowCount,g=r.width,p=this.state,m=p.scrollLeft,f=p.scrollTop,v=Jg();void 0!==i&&(i=Math.max(0,Math.min(i,s-1))),void 0!==o&&(o=Math.max(0,Math.min(o,h-1)));var _=a(this.props,this._instanceProps),b=l(this.props,this._instanceProps)>g?v:0,C=_>u?v:0;this.scrollTo({scrollLeft:void 0!==i?c(this.props,i,n,m,this._instanceProps,C):m,scrollTop:void 0!==o?d(this.props,o,n,f,this._instanceProps,b):f})},_.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var i=this._outerRef;"number"==typeof t&&(i.scrollLeft=t),"number"==typeof n&&(i.scrollTop=n)}this._callPropsCallbacks()},_.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,i=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(tp()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var r=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-r-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,i)}this._callPropsCallbacks()},_.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Qg(this._resetIsScrollingTimeoutId)},_.render=function(){var e=this.props,t=e.children,i=e.className,o=e.columnCount,r=e.direction,s=e.height,c=e.innerRef,d=e.innerElementType,u=e.innerTagName,h=e.itemData,g=e.itemKey,p=void 0===g?np:g,m=e.outerElementType,f=e.outerTagName,v=e.rowCount,_=e.style,b=e.useIsScrolling,C=e.width,y=this.state.isScrolling,w=this._getHorizontalRangeToRender(),S=w[0],x=w[1],L=this._getVerticalRangeToRender(),k=L[0],E=L[1],N=[];if(o>0&&v)for(var D=k;D<=E;D++)for(var I=S;I<=x;I++)N.push((0,n.createElement)(t,{columnIndex:I,data:h,isScrolling:b?y:void 0,key:p({columnIndex:I,data:h,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,I)}));var R=a(this.props,this._instanceProps),T=l(this.props,this._instanceProps);return(0,n.createElement)(m||f||"div",{className:i,onScroll:this._onScroll,ref:this._outerRefSetter,style:Mo({position:"relative",height:s,width:C,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},_)},(0,n.createElement)(d||u||"div",{children:N,ref:c,style:{height:R,pointerEvents:y?"none":void 0,width:T}}))},_._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,i=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var r=this._getHorizontalRangeToRender(),s=r[0],a=r[1],l=r[2],c=r[3],d=this._getVerticalRangeToRender(),u=d[0],h=d[1],g=d[2],p=d[3];this._callOnItemsRendered(s,a,u,h,l,c,g,p)}if("function"==typeof i){var m=this.state,f=m.horizontalScrollDirection,v=m.scrollLeft,_=m.scrollTop,b=m.scrollUpdateWasRequested,C=m.verticalScrollDirection;this._callOnScroll(v,_,f,C,b)}},_._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,s=e.overscanCount,a=e.rowCount,l=this.state,c=l.horizontalScrollDirection,d=l.isScrolling,u=l.scrollLeft,h=n||i||s||1;if(0===t||0===a)return[0,0,0,0];var g=o(this.props,u,this._instanceProps),p=r(this.props,g,u,this._instanceProps),m=d&&"backward"!==c?1:Math.max(1,h),f=d&&"forward"!==c?1:Math.max(1,h);return[Math.max(0,g-m),Math.max(0,Math.min(t-1,p+f)),g,p]},_._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,i=e.overscanRowCount,o=e.overscanRowsCount,r=e.rowCount,s=this.state,a=s.isScrolling,l=s.verticalScrollDirection,c=s.scrollTop,d=i||o||n||1;if(0===t||0===r)return[0,0,0,0];var u=g(this.props,c,this._instanceProps),h=p(this.props,u,c,this._instanceProps),m=a&&"backward"!==l?1:Math.max(1,d),f=a&&"forward"!==l?1:Math.max(1,d);return[Math.max(0,u-m),Math.max(0,Math.min(r-1,h+f)),u,h]},t}(n.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var op=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},rp=function(e,t){return e};function sp(e){var t,i=e.getItemOffset,o=e.getEstimatedTotalSize,r=e.getItemSize,s=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=c(n.props,Po(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Po(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Gg((function(e,t,i,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:i,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=Gg((function(e,t,i){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,s=o.direction,a=o.itemSize,l=o.layout,c=n._getItemStyleCache(d&&a,d&&l,d&&s);if(c.hasOwnProperty(e))t=c[e];else{var u=i(n.props,e,n._instanceProps),h=r(n.props,e,n._instanceProps),g="horizontal"===s||"horizontal"===l,p="rtl"===s,m=g?u:0;c[e]=t={position:"absolute",left:p?void 0:m,right:p?m:void 0,top:g?0:u,height:g?"100%":h,width:g?h:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=Gg((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,i=t.clientWidth,o=t.scrollLeft,r=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,s=o;if("rtl"===t)switch(tp()){case"negative":s=-o;break;case"positive-descending":s=r-i-o}return s=Math.max(0,Math.min(s,r-i)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:s,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.scrollHeight,r=t.scrollTop;n.setState((function(e){if(e.scrollOffset===r)return null;var t=Math.max(0,Math.min(r,o-i));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&Qg(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Yg(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Bo(t,e),t.getDerivedStateFromProps=function(e,t){return ap(e,t),u(e),null};var h=t.prototype;return h.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},h.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,i=n.itemCount,o=n.layout,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,i-1));var a=0;if(this._outerRef){var l=this._outerRef;a="vertical"===o?l.scrollWidth>l.clientWidth?Jg():0:l.scrollHeight>l.clientHeight?Jg():0}this.scrollTo(s(this.props,e,t,r,this._instanceProps,a))},h.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,i=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===i?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},h.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,i=this.state,o=i.scrollOffset;if(i.scrollUpdateWasRequested&&null!=this._outerRef){var r=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(tp()){case"negative":r.scrollLeft=-o;break;case"positive-ascending":r.scrollLeft=o;break;default:var s=r.clientWidth,a=r.scrollWidth;r.scrollLeft=a-s-o}else r.scrollLeft=o;else r.scrollTop=o}this._callPropsCallbacks()},h.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Qg(this._resetIsScrollingTimeoutId)},h.render=function(){var e=this.props,t=e.children,i=e.className,r=e.direction,s=e.height,a=e.innerRef,l=e.innerElementType,c=e.innerTagName,d=e.itemCount,u=e.itemData,h=e.itemKey,g=void 0===h?rp:h,p=e.layout,m=e.outerElementType,f=e.outerTagName,v=e.style,_=e.useIsScrolling,b=e.width,C=this.state.isScrolling,y="horizontal"===r||"horizontal"===p,w=y?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),x=S[0],L=S[1],k=[];if(d>0)for(var E=x;E<=L;E++)k.push((0,n.createElement)(t,{data:u,key:g(E,u),index:E,isScrolling:_?C:void 0,style:this._getItemStyle(E)}));var N=o(this.props,this._instanceProps);return(0,n.createElement)(m||f||"div",{className:i,onScroll:w,ref:this._outerRefSetter,style:Mo({position:"relative",height:s,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},v)},(0,n.createElement)(l||c||"div",{children:k,ref:a,style:{height:y?"100%":N,pointerEvents:C?"none":void 0,width:y?N:"100%"}}))},h._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],i=e[2],o=e[3];this._callOnItemsRendered(t,n,i,o)}if("function"==typeof this.props.onScroll){var r=this.state,s=r.scrollDirection,a=r.scrollOffset,l=r.scrollUpdateWasRequested;this._callOnScroll(s,a,l)}},h._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,i=this.state,o=i.isScrolling,r=i.scrollDirection,s=i.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,s,this._instanceProps),d=l(this.props,c,s,this._instanceProps),u=o&&"backward"!==r?1:Math.max(1,n),h=o&&"forward"!==r?1:Math.max(1,n);return[Math.max(0,c-u),Math.max(0,Math.min(t-1,d+h)),c,d]},t}(n.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var ap=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},lp=ip({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,i,o,r){var s=e.columnCount,a=e.columnWidth,l=e.width,c=Math.max(0,s*a-l),d=Math.min(c,t*a),u=Math.max(0,t*a-l+r+a);switch("smart"===n&&(n=i>=u-l&&i<=d+l?"auto":"center"),n){case"start":return d;case"end":return u;case"center":var h=Math.round(u+(d-u)/2);return h<Math.ceil(l/2)?0:h>c+Math.floor(l/2)?c:h;default:return i>=u&&i<=d?i:u>d||i<u?u:d}},getOffsetForRowAndAlignment:function(e,t,n,i,o,r){var s=e.rowHeight,a=e.height,l=e.rowCount,c=Math.max(0,l*s-a),d=Math.min(c,t*s),u=Math.max(0,t*s-a+r+s);switch("smart"===n&&(n=i>=u-a&&i<=d+a?"auto":"center"),n){case"start":return d;case"end":return u;case"center":var h=Math.round(u+(d-u)/2);return h<Math.ceil(a/2)?0:h>c+Math.floor(a/2)?c:h;default:return i>=u&&i<=d?i:u>d||i<u?u:d}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,i=e.columnCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var i=e.columnWidth,o=e.columnCount,r=e.width,s=t*i,a=Math.ceil((r+n-s)/i);return Math.max(0,Math.min(o-1,t+a-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,i=e.rowCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var i=e.rowHeight,o=e.rowCount,r=e.height,s=t*i,a=Math.ceil((r+n-s)/i);return Math.max(0,Math.min(o-1,t+a-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),cp=sp({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,i,o,r){var s=e.direction,a=e.height,l=e.itemCount,c=e.itemSize,d=e.layout,u=e.width,h="horizontal"===s||"horizontal"===d?u:a,g=Math.max(0,l*c-h),p=Math.min(g,t*c),m=Math.max(0,t*c-h+c+r);switch("smart"===n&&(n=i>=m-h&&i<=p+h?"auto":"center"),n){case"start":return p;case"end":return m;case"center":var f=Math.round(m+(p-m)/2);return f<Math.ceil(h/2)?0:f>g+Math.floor(h/2)?g:f;default:return i>=m&&i<=p?i:i<m?m:p}},getStartIndexForOffset:function(e,t){var n=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/i)))},getStopIndexForStartIndex:function(e,t,n){var i=e.direction,o=e.height,r=e.itemCount,s=e.itemSize,a=e.layout,l=e.width,c=t*s,d="horizontal"===i||"horizontal"===a?l:o,u=Math.ceil((d+n-c)/s);return Math.max(0,Math.min(r-1,t+u-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const dp="#BBB",up="#f1f1f1",hp={styledScrollbars:"ListBox-styledScrollbars"},gp=(e,t)=>void 0!==e?.visibleRowStopIndex||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,pp=(e,t)=>void 0!==e?.visibleRowStartIndex||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,mp=(e,t,n,i)=>e===t*n+i+n;function fp({renderProps:e,layoutOptions:t,maxCount:n,columnCount:i,rowCount:o,overflowDisclaimer:r,qCardinal:s,dataOffset:a}){const l="column"===t?.layoutOrder&&"singleColumn"!==t.dataLayout,c=gp(e,l),d=l?n.column:n.row,u=(l?i:o)>=d,h=mp(s,c,l?o:i,a),g=!!a&&pp(e,l),p=u&&!h&&c>=d-1||g||r.state.show;r.set(p)}function vp(){return vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},vp.apply(this,arguments)}const{StyledFixedSizeList:_p,StyledFixedSizeGrid:bp}=function(){const e=e=>({scrollbarColor:`${dp} ${up}`,overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:up},"&::-webkit-scrollbar-thumb":{backgroundColor:dp,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:(0,Ug.Z)(cp,{shouldForwardProp:e=>"scrollDisabled"!==e})((({scrollDisabled:t})=>({[`&.${hp.styledScrollbars}`]:e(t)}))),StyledFixedSizeGrid:(0,Ug.Z)(lp,{shouldForwardProp:e=>"scrollDisabled"!==e})((({scrollDisabled:t})=>({[`&.${hp.styledScrollbars}`]:e(t)})))}}();const Cp=e=>{const t=(0,n.useMemo)((()=>"text"in e?e:{}),[e]);return(0,n.useMemo)((()=>((e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();return n.font=t,Array.isArray(e)?Math.max(...e.map((e=>n.measureText(e).width))):n.measureText(e).width})(t.text,t.font||"14px Source Sans Pro")),[t.text,t.font])};function yp(e){if(!e)return"";const t=e.qListObject.qDimensionInfo.qApprMaxGlyphCount;let n="";for(let e=0;e<t;e++)n+="M";return n}const wp=({pages:e=[],minimumBatchSize:t,count:n})=>{const i=e.some((e=>e.qArea.qHeight<t)),o=Math.max(...e.map((e=>e.qArea.qTop+e.qArea.qHeight)));return i?o:n},[Sp,xp]=gd({});function Lp(e){const t=`${e.id}`,[n]=Sp();return{setStoreValue:(e,i)=>n.set(`${t}/${e}`,i),getStoreValue:e=>n.get(`${t}/${e}`)}}function kp(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ep(e){return e instanceof kp(e).Element||e instanceof Element}function Np(e){return e instanceof kp(e).HTMLElement||e instanceof HTMLElement}function Dp(e){return"undefined"!=typeof ShadowRoot&&(e instanceof kp(e).ShadowRoot||e instanceof ShadowRoot)}var Ip=Math.max,Rp=Math.min,Tp=Math.round;function Op(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function qp(){return!/^((?!chrome|android).)*safari/i.test(Op())}function Ap(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=1,r=1;t&&Np(e)&&(o=e.offsetWidth>0&&Tp(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Tp(i.height)/e.offsetHeight||1);var s=(Ep(e)?kp(e):window).visualViewport,a=!qp()&&n,l=(i.left+(a&&s?s.offsetLeft:0))/o,c=(i.top+(a&&s?s.offsetTop:0))/r,d=i.width/o,u=i.height/r;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function Mp(e){var t=kp(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Pp(e){return e?(e.nodeName||"").toLowerCase():null}function Fp(e){return((Ep(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bp(e){return Ap(Fp(e)).left+Mp(e).scrollLeft}function Wp(e){return kp(e).getComputedStyle(e)}function Vp(e){var t=Wp(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function zp(e,t,n){void 0===n&&(n=!1);var i=Np(t),o=Np(t)&&function(e){var t=e.getBoundingClientRect(),n=Tp(t.width)/e.offsetWidth||1,i=Tp(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),r=Fp(t),s=Ap(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==Pp(t)||Vp(r))&&(a=function(e){return e!==kp(e)&&Np(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Mp(e);var t}(t)),Np(t)?((l=Ap(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=Bp(r))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Hp(e){var t=Ap(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function jp(e){return"html"===Pp(e)?e:e.assignedSlot||e.parentNode||(Dp(e)?e.host:null)||Fp(e)}function Up(e){return["html","body","#document"].indexOf(Pp(e))>=0?e.ownerDocument.body:Np(e)&&Vp(e)?e:Up(jp(e))}function $p(e,t){var n;void 0===t&&(t=[]);var i=Up(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),r=kp(i),s=o?[r].concat(r.visualViewport||[],Vp(i)?i:[]):i,a=t.concat(s);return o?a:a.concat($p(jp(s)))}function Kp(e){return["table","td","th"].indexOf(Pp(e))>=0}function Gp(e){return Np(e)&&"fixed"!==Wp(e).position?e.offsetParent:null}function Zp(e){for(var t=kp(e),n=Gp(e);n&&Kp(n)&&"static"===Wp(n).position;)n=Gp(n);return n&&("html"===Pp(n)||"body"===Pp(n)&&"static"===Wp(n).position)?t:n||function(e){var t=/firefox/i.test(Op());if(/Trident/i.test(Op())&&Np(e)&&"fixed"===Wp(e).position)return null;var n=jp(e);for(Dp(n)&&(n=n.host);Np(n)&&["html","body"].indexOf(Pp(n))<0;){var i=Wp(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var Qp="top",Yp="bottom",Xp="right",Jp="left",em="auto",tm=[Qp,Yp,Xp,Jp],nm="start",im="end",om="viewport",rm="popper",sm=tm.reduce((function(e,t){return e.concat([t+"-"+nm,t+"-"+im])}),[]),am=[].concat(tm,[em]).reduce((function(e,t){return e.concat([t,t+"-"+nm,t+"-"+im])}),[]),lm=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function cm(e){var t=new Map,n=new Set,i=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&o(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),i}var dm={placement:"bottom",modifiers:[],strategy:"absolute"};function um(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function hm(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,r=void 0===o?dm:o;return function(e,t,n){void 0===n&&(n=r);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},dm,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;u(),a.options=Object.assign({},r,a.options,o),a.scrollParents={reference:Ep(e)?$p(e):e.contextElement?$p(e.contextElement):[],popper:$p(t)};var s,c,h=function(e){var t=cm(e);return lm.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(i,a.options.modifiers),c=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=h.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var r=o({state:a,name:t,instance:d,options:i});l.push(r||function(){})}})),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(um(t,n)){a.rects={reference:zp(t,Zp(n),"fixed"===a.options.strategy),popper:Hp(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var o=a.orderedModifiers[i],r=o.fn,s=o.options,l=void 0===s?{}:s,u=o.name;"function"==typeof r&&(a=r({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(e){d.forceUpdate(),e(a)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){u(),c=!0}};if(!um(e,t))return d;function u(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var gm={passive:!0};function pm(e){return e.split("-")[0]}function mm(e){return e.split("-")[1]}function fm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vm(e){var t,n=e.reference,i=e.element,o=e.placement,r=o?pm(o):null,s=o?mm(o):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case Qp:t={x:a,y:n.y-i.height};break;case Yp:t={x:a,y:n.y+n.height};break;case Xp:t={x:n.x+n.width,y:l};break;case Jp:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?fm(r):null;if(null!=c){var d="y"===c?"height":"width";switch(s){case nm:t[c]=t[c]-(n[d]/2-i[d]/2);break;case im:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}var _m={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bm(e){var t,n=e.popper,i=e.popperRect,o=e.placement,r=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,h=s.x,g=void 0===h?0:h,p=s.y,m=void 0===p?0:p,f="function"==typeof d?d({x:g,y:m}):{x:g,y:m};g=f.x,m=f.y;var v=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),b=Jp,C=Qp,y=window;if(c){var w=Zp(n),S="clientHeight",x="clientWidth";w===kp(n)&&"static"!==Wp(w=Fp(n)).position&&"absolute"===a&&(S="scrollHeight",x="scrollWidth"),(o===Qp||(o===Jp||o===Xp)&&r===im)&&(C=Yp,m-=(u&&w===y&&y.visualViewport?y.visualViewport.height:w[S])-i.height,m*=l?1:-1),o!==Jp&&(o!==Qp&&o!==Yp||r!==im)||(b=Xp,g-=(u&&w===y&&y.visualViewport?y.visualViewport.width:w[x])-i.width,g*=l?1:-1)}var L,k=Object.assign({position:a},c&&_m),E=!0===d?function(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:Tp(n*o)/o||0,y:Tp(i*o)/o||0}}({x:g,y:m},kp(n)):{x:g,y:m};return g=E.x,m=E.y,l?Object.assign({},k,((L={})[C]=_?"0":"",L[b]=v?"0":"",L.transform=(y.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",L)):Object.assign({},k,((t={})[C]=_?m+"px":"",t[b]=v?g+"px":"",t.transform="",t))}const Cm={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},o=t.elements[e];Np(o)&&Pp(o)&&(Object.assign(o.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],o=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Np(i)&&Pp(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};var ym={left:"right",right:"left",bottom:"top",top:"bottom"};function wm(e){return e.replace(/left|right|bottom|top/g,(function(e){return ym[e]}))}var Sm={start:"end",end:"start"};function xm(e){return e.replace(/start|end/g,(function(e){return Sm[e]}))}function Lm(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Dp(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function km(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Em(e,t,n){return t===om?km(function(e,t){var n=kp(e),i=Fp(e),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var c=qp();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+Bp(e),y:l}}(e,n)):Ep(t)?function(e,t){var n=Ap(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):km(function(e){var t,n=Fp(e),i=Mp(e),o=null==(t=e.ownerDocument)?void 0:t.body,r=Ip(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ip(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+Bp(e),l=-i.scrollTop;return"rtl"===Wp(o||n).direction&&(a+=Ip(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}(Fp(e)))}function Nm(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Dm(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Im(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=void 0===i?e.placement:i,r=n.strategy,s=void 0===r?e.strategy:r,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,d=void 0===c?om:c,u=n.elementContext,h=void 0===u?rm:u,g=n.altBoundary,p=void 0!==g&&g,m=n.padding,f=void 0===m?0:m,v=Nm("number"!=typeof f?f:Dm(f,tm)),_=h===rm?"reference":rm,b=e.rects.popper,C=e.elements[p?_:h],y=function(e,t,n,i){var o="clippingParents"===t?function(e){var t=$p(jp(e)),n=["absolute","fixed"].indexOf(Wp(e).position)>=0&&Np(e)?Zp(e):e;return Ep(n)?t.filter((function(e){return Ep(e)&&Lm(e,n)&&"body"!==Pp(e)})):[]}(e):[].concat(t),r=[].concat(o,[n]),s=r[0],a=r.reduce((function(t,n){var o=Em(e,n,i);return t.top=Ip(o.top,t.top),t.right=Rp(o.right,t.right),t.bottom=Rp(o.bottom,t.bottom),t.left=Ip(o.left,t.left),t}),Em(e,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Ep(C)?C:C.contextElement||Fp(e.elements.popper),l,d,s),w=Ap(e.elements.reference),S=vm({reference:w,element:b,strategy:"absolute",placement:o}),x=km(Object.assign({},b,S)),L=h===rm?x:w,k={top:y.top-L.top+v.top,bottom:L.bottom-y.bottom+v.bottom,left:y.left-L.left+v.left,right:L.right-y.right+v.right},E=e.modifiersData.offset;if(h===rm&&E){var N=E[o];Object.keys(k).forEach((function(e){var t=[Xp,Yp].indexOf(e)>=0?1:-1,n=[Qp,Yp].indexOf(e)>=0?"y":"x";k[e]+=N[n]*t}))}return k}function Rm(e,t,n){return Ip(e,Rp(t,n))}function Tm(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Om(e){return[Qp,Xp,Yp,Jp].some((function(t){return e[t]>=0}))}var qm=hm({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,r=void 0===o||o,s=i.resize,a=void 0===s||s,l=kp(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",n.update,gm)})),a&&l.addEventListener("resize",n.update,gm),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",n.update,gm)})),a&&l.removeEventListener("resize",n.update,gm)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=vm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:pm(t.placement),variation:mm(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,bm(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,bm(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Cm,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.offset,r=void 0===o?[0,0]:o,s=am.reduce((function(e,n){return e[n]=function(e,t,n){var i=pm(e),o=[Jp,Qp].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[Jp,Xp].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,r),e}),{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,p=void 0===g||g,m=n.allowedAutoPlacements,f=t.options.placement,v=pm(f),_=l||(v!==f&&p?function(e){if(pm(e)===em)return[];var t=wm(e);return[xm(e),t,xm(t)]}(f):[wm(f)]),b=[f].concat(_).reduce((function(e,n){return e.concat(pm(n)===em?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?am:l,d=mm(i),u=d?a?sm:sm.filter((function(e){return mm(e)===d})):tm,h=u.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=u);var g=h.reduce((function(t,n){return t[n]=Im(e,{placement:n,boundary:o,rootBoundary:r,padding:s})[pm(n)],t}),{});return Object.keys(g).sort((function(e,t){return g[e]-g[t]}))}(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),C=t.rects.reference,y=t.rects.popper,w=new Map,S=!0,x=b[0],L=0;L<b.length;L++){var k=b[L],E=pm(k),N=mm(k)===nm,D=[Qp,Yp].indexOf(E)>=0,I=D?"width":"height",R=Im(t,{placement:k,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),T=D?N?Xp:Jp:N?Yp:Qp;C[I]>y[I]&&(T=wm(T));var O=wm(T),q=[];if(r&&q.push(R[E]<=0),a&&q.push(R[T]<=0,R[O]<=0),q.every((function(e){return e}))){x=k,S=!1;break}w.set(k,q)}if(S)for(var A=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},M=p?3:1;M>0&&"break"!==A(M);M--);t.placement!==x&&(t.modifiersData[i]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,g=void 0===h||h,p=n.tetherOffset,m=void 0===p?0:p,f=Im(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=pm(t.placement),_=mm(t.placement),b=!_,C=fm(v),y="x"===C?"y":"x",w=t.modifiersData.popperOffsets,S=t.rects.reference,x=t.rects.popper,L="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(w){if(r){var D,I="y"===C?Qp:Jp,R="y"===C?Yp:Xp,T="y"===C?"height":"width",O=w[C],q=O+f[I],A=O-f[R],M=g?-x[T]/2:0,P=_===nm?S[T]:x[T],F=_===nm?-x[T]:-S[T],B=t.elements.arrow,W=g&&B?Hp(B):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=V[I],H=V[R],j=Rm(0,S[T],W[T]),U=b?S[T]/2-M-j-z-k.mainAxis:P-j-z-k.mainAxis,$=b?-S[T]/2+M+j+H+k.mainAxis:F+j+H+k.mainAxis,K=t.elements.arrow&&Zp(t.elements.arrow),G=K?"y"===C?K.clientTop||0:K.clientLeft||0:0,Z=null!=(D=null==E?void 0:E[C])?D:0,Q=O+$-Z,Y=Rm(g?Rp(q,O+U-Z-G):q,O,g?Ip(A,Q):A);w[C]=Y,N[C]=Y-O}if(a){var X,J="x"===C?Qp:Jp,ee="x"===C?Yp:Xp,te=w[y],ne="y"===y?"height":"width",ie=te+f[J],oe=te-f[ee],re=-1!==[Qp,Jp].indexOf(v),se=null!=(X=null==E?void 0:E[y])?X:0,ae=re?ie:te-S[ne]-x[ne]-se+k.altAxis,le=re?te+S[ne]+x[ne]-se-k.altAxis:oe,ce=g&&re?function(e,t,n){var i=Rm(e,t,n);return i>n?n:i}(ae,te,le):Rm(g?ae:ie,te,g?le:oe);w[y]=ce,N[y]=ce-te}t.modifiersData[i]=N}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,o=e.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=pm(n.placement),l=fm(a),c=[Jp,Xp].indexOf(a)>=0?"height":"width";if(r&&s){var d=function(e,t){return Nm("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Dm(e,tm))}(o.padding,n),u=Hp(r),h="y"===l?Qp:Jp,g="y"===l?Yp:Xp,p=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],f=Zp(r),v=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,_=p/2-m/2,b=d[h],C=v-u[c]-d[g],y=v/2-u[c]/2+_,w=Rm(b,y,C),S=l;n.modifiersData[i]=((t={})[S]=w,t.centerOffset=w-y,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&Lm(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,r=t.modifiersData.preventOverflow,s=Im(t,{elementContext:"reference"}),a=Im(t,{altBoundary:!0}),l=Tm(s,i),c=Tm(a,o,r),d=Om(l),u=Om(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}}]});function Am(e){return(0,kt.Z)("MuiPopper",e)}(0,Lt.Z)("MuiPopper",["root"]);const Mm=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Pm=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Fm(e){return"function"==typeof e?e():e}const Bm={},Wm=n.forwardRef((function(e,t){var i;const{anchorEl:o,children:r,direction:s,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:u,popperRef:h,slotProps:g={},slots:p={},TransitionProps:m}=e,f=ea(e,Mm),v=n.useRef(null),_=(0,ta.Z)(v,t),b=n.useRef(null),C=(0,ta.Z)(b,h),y=n.useRef(C);(0,sl.Z)((()=>{y.current=C}),[C]),n.useImperativeHandle(h,(()=>b.current),[]);const w=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(d,s),[S,x]=n.useState(w),[L,k]=n.useState(Fm(o));n.useEffect((()=>{b.current&&b.current.forceUpdate()})),n.useEffect((()=>{o&&k(Fm(o))}),[o]),(0,sl.Z)((()=>{if(!L||!c)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{x(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=qm(L,v.current,Js({placement:w},u,{modifiers:e}));return y.current(t),()=>{t.destroy(),y.current(null)}}),[L,a,l,c,u,w]);const E={placement:S};null!==m&&(E.TransitionProps=m);const N=(0,Ct.Z)({root:["root"]},bu(Am)),D=null!=(i=p.root)?i:"div",I=la({elementType:D,externalSlotProps:g.root,externalForwardedProps:f,additionalProps:{role:"tooltip",ref:_},ownerState:e,className:N.root});return(0,Nt.jsx)(D,Js({},I,{children:"function"==typeof r?r(E):r}))})),Vm=n.forwardRef((function(e,t){const{anchorEl:i,children:o,container:r,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:u="bottom",popperOptions:h=Bm,popperRef:g,style:p,transition:m=!1,slotProps:f={},slots:v={}}=e,_=ea(e,Pm),[b,C]=n.useState(!0);if(!l&&!d&&(!m||b))return null;let y;if(r)y=r;else if(i){const e=Fm(i);y=e&&void 0!==e.nodeType?(0,nu.Z)(e).body:(0,nu.Z)(null).body}const w=d||!l||m&&!b?void 0:"none",S=m?{in:d,onEnter:()=>{C(!1)},onExited:()=>{C(!0)}}:void 0;return(0,Nt.jsx)(su,{disablePortal:a,container:y,children:(0,Nt.jsx)(Wm,Js({anchorEl:i,direction:s,disablePortal:a,modifiers:c,ref:t,open:m?!b:d,placement:u,popperOptions:h,popperRef:g,slotProps:f,slots:v},_,{style:Js({position:"fixed",top:0,left:0,display:w},p),TransitionProps:S,children:o}))})})),zm=Vm,Hm=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],jm=(0,xt.ZP)(zm,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Um=n.forwardRef((function(e,t){var n;const i=(0,rn.Z)(),o=(0,St.Z)({props:e,name:"MuiPopper"}),{anchorEl:r,component:s,components:a,componentsProps:l,container:c,disablePortal:d,keepMounted:u,modifiers:h,open:g,placement:p,popperOptions:m,popperRef:f,transition:v,slots:_,slotProps:b}=o,C=(0,vt.Z)(o,Hm),y=null!=(n=null==_?void 0:_.root)?n:null==a?void 0:a.Root,w=(0,_t.Z)({anchorEl:r,container:c,disablePortal:d,keepMounted:u,modifiers:h,open:g,placement:p,popperOptions:m,popperRef:f,transition:v},C);return(0,Nt.jsx)(jm,(0,_t.Z)({as:s,direction:null==i?void 0:i.direction,slots:{root:y},slotProps:null!=b?b:l},w,{ref:t}))}));var $m=s(13212);function Km(e){return(0,kt.Z)("MuiTooltip",e)}const Gm=(0,Lt.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Zm=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],Qm=(0,xt.ZP)(Um,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>(0,_t.Z)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Gm.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Gm.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Gm.arrow}`]:(0,_t.Z)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Gm.arrow}`]:(0,_t.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),Ym=(0,xt.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,Ut.Z)(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>(0,_t.Z)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,Ro.Fq)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(16/14,Math.round(114285.71428571428)/1e5+"em"),fontWeight:e.typography.fontWeightRegular},{[`.${Gm.popper}[data-popper-placement*="left"] &`]:(0,_t.Z)({transformOrigin:"right center"},t.isRtl?(0,_t.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,_t.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Gm.popper}[data-popper-placement*="right"] &`]:(0,_t.Z)({transformOrigin:"left center"},t.isRtl?(0,_t.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,_t.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Gm.popper}[data-popper-placement*="top"] &`]:(0,_t.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Gm.popper}[data-popper-placement*="bottom"] &`]:(0,_t.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})}))),Xm=(0,xt.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,Ro.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Jm=!1,ef=null,tf={x:0,y:0};function nf(e,t){return n=>{t&&t(n),e(n)}}const of=n.forwardRef((function(e,t){var i,o,r,s,a,l,c,d,u,h,g,p,m,f,v,_,b,C,y;const w=(0,St.Z)({props:e,name:"MuiTooltip"}),{arrow:S=!1,children:x,components:L={},componentsProps:k={},describeChild:E=!1,disableFocusListener:N=!1,disableHoverListener:D=!1,disableInteractive:I=!1,disableTouchListener:R=!1,enterDelay:T=100,enterNextDelay:O=0,enterTouchDelay:q=700,followCursor:A=!1,id:M,leaveDelay:P=0,leaveTouchDelay:F=1500,onClose:B,onOpen:W,open:V,placement:z="bottom",PopperComponent:H,PopperProps:j={},slotProps:U={},slots:$={},title:K,TransitionComponent:G=tu,TransitionProps:Z}=w,Q=(0,vt.Z)(w,Zm),Y=Yt(),X="rtl"===Y.direction,[J,ee]=n.useState(),[te,ne]=n.useState(null),ie=n.useRef(!1),oe=I||A,re=n.useRef(),se=n.useRef(),ae=n.useRef(),le=n.useRef(),[ce,de]=(0,Mh.Z)({controlled:V,default:!1,name:"Tooltip",state:"open"});let ue=ce;const he=(0,$m.Z)(M),ge=n.useRef(),pe=n.useCallback((()=>{void 0!==ge.current&&(document.body.style.WebkitUserSelect=ge.current,ge.current=void 0),clearTimeout(le.current)}),[]);n.useEffect((()=>()=>{clearTimeout(re.current),clearTimeout(se.current),clearTimeout(ae.current),pe()}),[pe]);const me=e=>{clearTimeout(ef),Jm=!0,de(!0),W&&!ue&&W(e)},fe=(0,Oo.Z)((e=>{clearTimeout(ef),ef=setTimeout((()=>{Jm=!1}),800+P),de(!1),B&&ue&&B(e),clearTimeout(re.current),re.current=setTimeout((()=>{ie.current=!1}),Y.transitions.duration.shortest)})),ve=e=>{ie.current&&"touchstart"!==e.type||(J&&J.removeAttribute("title"),clearTimeout(se.current),clearTimeout(ae.current),T||Jm&&O?se.current=setTimeout((()=>{me(e)}),Jm?O:T):me(e))},_e=e=>{clearTimeout(se.current),clearTimeout(ae.current),ae.current=setTimeout((()=>{fe(e)}),P)},{isFocusVisibleRef:be,onBlur:Ce,onFocus:ye,ref:we}=(0,qo.Z)(),[,Se]=n.useState(!1),xe=e=>{Ce(e),!1===be.current&&(Se(!1),_e(e))},Le=e=>{J||ee(e.currentTarget),ye(e),!0===be.current&&(Se(!0),ve(e))},ke=e=>{ie.current=!0;const t=x.props;t.onTouchStart&&t.onTouchStart(e)},Ee=ve,Ne=_e;n.useEffect((()=>{if(ue)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||fe(e)}}),[fe,ue]);const De=(0,To.Z)(x.ref,we,ee,t);K||0===K||(ue=!1);const Ie=n.useRef(),Re={},Te="string"==typeof K;E?(Re.title=ue||!Te||D?null:K,Re["aria-describedby"]=ue?he:null):(Re["aria-label"]=Te?K:null,Re["aria-labelledby"]=ue&&!Te?he:null);const Oe=(0,_t.Z)({},Re,Q,x.props,{className:(0,bt.Z)(Q.className,x.props.className),onTouchStart:ke,ref:De},A?{onMouseMove:e=>{const t=x.props;t.onMouseMove&&t.onMouseMove(e),tf={x:e.clientX,y:e.clientY},Ie.current&&Ie.current.update()}}:{}),qe={};R||(Oe.onTouchStart=e=>{ke(e),clearTimeout(ae.current),clearTimeout(re.current),pe(),ge.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",le.current=setTimeout((()=>{document.body.style.WebkitUserSelect=ge.current,ve(e)}),q)},Oe.onTouchEnd=e=>{x.props.onTouchEnd&&x.props.onTouchEnd(e),pe(),clearTimeout(ae.current),ae.current=setTimeout((()=>{fe(e)}),F)}),D||(Oe.onMouseOver=nf(Ee,Oe.onMouseOver),Oe.onMouseLeave=nf(Ne,Oe.onMouseLeave),oe||(qe.onMouseOver=Ee,qe.onMouseLeave=Ne)),N||(Oe.onFocus=nf(Le,Oe.onFocus),Oe.onBlur=nf(xe,Oe.onBlur),oe||(qe.onFocus=Le,qe.onBlur=xe));const Ae=n.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(te),options:{element:te,padding:4}}];return null!=(e=j.popperOptions)&&e.modifiers&&(t=t.concat(j.popperOptions.modifiers)),(0,_t.Z)({},j.popperOptions,{modifiers:t})}),[te,j]),Me=(0,_t.Z)({},w,{isRtl:X,arrow:S,disableInteractive:oe,placement:z,PopperComponentProp:H,touch:ie.current}),Pe=(e=>{const{classes:t,disableInteractive:n,arrow:i,touch:o,placement:r}=e,s={popper:["popper",!n&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",o&&"touch",`tooltipPlacement${(0,Ut.Z)(r.split("-")[0])}`],arrow:["arrow"]};return(0,Ct.Z)(s,Km,t)})(Me),Fe=null!=(i=null!=(o=$.popper)?o:L.Popper)?i:Qm,Be=null!=(r=null!=(s=null!=(a=$.transition)?a:L.Transition)?s:G)?r:tu,We=null!=(l=null!=(c=$.tooltip)?c:L.Tooltip)?l:Ym,Ve=null!=(d=null!=(u=$.arrow)?u:L.Arrow)?d:Xm,ze=na(Fe,(0,_t.Z)({},j,null!=(h=U.popper)?h:k.popper,{className:(0,bt.Z)(Pe.popper,null==j?void 0:j.className,null==(g=null!=(p=U.popper)?p:k.popper)?void 0:g.className)}),Me),He=na(Be,(0,_t.Z)({},Z,null!=(m=U.transition)?m:k.transition),Me),je=na(We,(0,_t.Z)({},null!=(f=U.tooltip)?f:k.tooltip,{className:(0,bt.Z)(Pe.tooltip,null==(v=null!=(_=U.tooltip)?_:k.tooltip)?void 0:v.className)}),Me),Ue=na(Ve,(0,_t.Z)({},null!=(b=U.arrow)?b:k.arrow,{className:(0,bt.Z)(Pe.arrow,null==(C=null!=(y=U.arrow)?y:k.arrow)?void 0:C.className)}),Me);return(0,Nt.jsxs)(n.Fragment,{children:[n.cloneElement(x,Oe),(0,Nt.jsx)(Fe,(0,_t.Z)({as:null!=H?H:Um,placement:z,anchorEl:A?{getBoundingClientRect:()=>({top:tf.y,left:tf.x,right:tf.x,bottom:tf.y,width:0,height:0})}:J,popperRef:Ie,open:!!J&&ue,id:he,transition:!0},qe,ze,{popperOptions:Ae,children:({TransitionProps:e})=>(0,Nt.jsx)(Be,(0,_t.Z)({timeout:Y.transitions.duration.shorter},e,He,{children:(0,Nt.jsxs)(We,(0,_t.Z)({},je,{children:[K,S?(0,Nt.jsx)(Ve,(0,_t.Z)({},Ue,{ref:ne})):null]}))}))}))]})})),rf=of,sf=(0,xt.ZP)(zr,{shouldForwardProp:e=>!["width","dense"].includes(e)})((({width:e,dense:t})=>({minWidth:`${e}px`,textAlign:"center",fontSize:t?"12px":"14px",...t&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:e}})));function af({width:e,text:t,dense:i,tooltip:o}){const{translator:r}=(0,n.useContext)(hd);return n.createElement(rf,{title:o?r.get(t):""},n.createElement(sf,{width:e,dense:i,component:"div",variant:"body1",py:"12px"},r.get(t)))}var lf=s(79246);const cf=(0,xt.ZP)(Hu)((({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t}))),df=(0,xt.ZP)("div")((()=>({paddingLeft:"6px",flexGrow:1}))),uf=(0,xt.ZP)("div")((({dense:e})=>({display:"flex",alignItems:e?"center":"flex-start"}))),hf=(0,xt.ZP)(lf.Z)((()=>({fontSize:"14px"})));function gf({text:e,dismiss:t,dense:i,parentWidth:o=0}){const r="function"==typeof t,s=i?370:282,a=Math.max(o/2-s/2,0),l=Math.min(s,o)-42,c=i&&o<s;return n.createElement(cf,{left:a,style:{maxWidth:s}},n.createElement(df,null,n.createElement(af,{text:e,dense:i,width:l,tooltip:c})),n.createElement(uf,{dense:i},r&&n.createElement(Sr,{"aria-label":"close",onClick:()=>t()},n.createElement(hf,null))))}const pf=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t,mf=80;function ff({itemWidth:e,layout:t,frequencyMode:n}){const i=e>mf,{frequencyEnabled:o=!1}=t?.qListObject||{},r=!["none",void 0].includes(n);return!(!i||!r&&!o)}const vf=e=>{const t=(e=>e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:`[${e.replace(/\]/g,"]]")}]`:e)(e);return`Max(AGGR(Count(${t}), ${t}))`},_f=(e,t)=>{const i=(e=>"fetch"===e?.frequencyMax)(t),[o,r]=(0,n.useState)(),[s,a]=(0,n.useState)(i);return(0,n.useEffect)((()=>{i&&(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,i=n.qGroupFieldDefs[n.qGroupPos],o=vf(i);return(await t.evaluateEx(o)).qNumber})(t,e);r(n),a(!1)})()}),[i&&t]),{frequencyMax:i?o:t?.frequencyMax,awaitingFrequencyMax:s}},bf=100,Cf=(0,xt.ZP)("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function yf({model:e,app:t,constraints:i,layout:o,selections:r,selectionState:s,direction:a,checkboxes:l,height:c,width:d,frequencyMode:u,update:h,fetchStart:g,postProcessPages:p,calculatePagesHeight:m=!1,keyboard:f={},showGray:v=!0,scrollState:_,selectDisabled:b=(()=>!1),keyScroll:C={state:{},reset:()=>{}},currentScrollIndex:y={set:()=>{}},renderedCallback:w,onCtrlF:S,showSearch:x,isModal:L}){const{translator:k}=(0,n.useContext)(hd),[E,N]=(0,n.useState)(!1),D=!(!o||!o.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:I=l,histogram:R}=o??{},T=(0,n.useRef)(null),O=(0,n.useRef)({queue:[],validPages:!1,dataOffset:0}),q=(0,n.useRef)({pages:[]}),{frequencyMax:A,awaitingFrequencyMax:M}=_f(t,o),{isLoadingData:P,...F}=function({local:e,loaderRef:t,model:i,fetchStart:o,scrollTimeout:r,postProcessPages:s,listData:a}){const[l,c]=(0,n.useState)(!1),[d,u]=(0,n.useState)([]);let[h]=(0,n.useState)(0);const g=(n,l)=>{const d=e.current.dataOffset;e.current.queue.push({start:n+d,stop:l+d});const g=!!t.current&&t.current._listRef&&t.current._listRef.state.isScrolling;return e.current.queue.length>10&&e.current.queue.shift(),clearTimeout(e.current.timeout),c(!0),new Promise((t=>{e.current.timeout=setTimeout((()=>{const n=e.current.queue.slice(-1)[0],r=i.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 i=s?s(n):n;e.current.validPages=!0,a.current.pages=i,u(i),c(!1),t()}));o&&o(r)}),g?r:0)}))};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(h=e),g)},pages:d,isLoading:l}}({local:O,loaderRef:T,model:e,fetchStart:g,scrollTimeout:0,postProcessPages:p,listData:q}),{setStoreValue:B}=Lp(e),W=(0,n.useCallback)(F.loadMoreItems,[o]),[V,z]=(0,n.useState)({show:!1,dismissed:!1}),[H,j]=(0,n.useState)([]);F?.pages&&s.update({setPages:j,pages:F.pages,isSingleSelect:D,selectDisabled:b,layout:o});const U=o?.qListObject.qDimensionInfo.qCardinal;(F?.pages.length&&!M||0===U)&&w?.();const $=(0,n.useCallback)((e=>{if(!H?.length||!O.current.validPages)return!1;O.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=H.filter((e=>t(e)))[0];return n&&t(n)}),[o,H]),{interactionEvents:K,select:G}=function({selectionState:e,selections:t,checkboxes:i=!1,doc:o=document,loaderRef:r}){const s=(0,n.useRef)({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});(0,n.useEffect)((()=>{if(!r.current?._listRef?._outerRef)return;const e=e=>e.preventDefault(),t=e=>e.preventDefault(),n=e=>e.preventDefault(),i=r.current._listRef._outerRef;return i.addEventListener("gesturestart",e),i.addEventListener("gesturechange",t),i.addEventListener("gestureend",n),()=>{i.removeEventListener("gesturestart",e),i.removeEventListener("gesturechange",t),i.removeEventListener("gestureend",n)}}),[r.current?._listRef?._outerRef]);const a=()=>(e.setSelectableValuesUpdating(),sh({selections:t,elemNumbers:s.current.elemNumbers,isSingleSelect:e.isSingleSelect,toggle:s.current.toggle})),l=(t,n)=>function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:i}=function(e,t){let n=1/0,i=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,i=o>i?o:i})),{min:n,max:i}}(e,t);return t.slice(n,i+1)}([t,n],function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}))));return rh(t)}(e.enginePages)),c=t=>{const{startElemNumber:n}=s.current;if(n===t)return;const i=l(s.current.startElemNumber,t);e.updateItems(i,!0,s.current.elemNumbers)},d=(0,n.useCallback)((t=>{if(e.selectDisabled())return;const n=+t.target.getAttribute("data-n"),i=!e.isSingleSelect&&dh(t.nativeEvent);s.current.elemNumbers=[n],s.current.toggle=i,i||e.clearItemStates(!0),e.updateItem(n),s.current.active=!1,a()}),[]),u=(0,n.useCallback)((t=>{if(0!==t.button||e.selectDisabled())return;const n=+t.currentTarget.getAttribute("data-n"),i=!e.isSingleSelect&&dh(t);s.current.isRange=!1,s.current.startElemNumber=n,s.current.elemNumbers=[n],s.current.toggle=i,s.current.active=!0,i||e.clearItemStates(!0),e.updateItem(n),e.isSingleSelect&&(s.current.active=!1,a()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(t,t.currentTarget)}),[]),h=(0,n.useCallback)((e=>{if(0===e.button&&s.current.active){if(s.current.active=!1,s.current.isRange){const t=+e.currentTarget.getAttribute("data-n");c(t)}a()}}),[]),g=(0,n.useCallback)((e=>{0===e.button&&s.current.active&&(s.current.active=!1,a())}),[]),p=(0,n.useCallback)((t=>{if(!s.current.active)return;s.current.isRange||(s.current.isRange=!0,e.isSelected(s.current.startElemNumber)||(e.updateItem(s.current.startElemNumber,!0),s.current.elemNumbers=[]));const n=+t.currentTarget.getAttribute("data-n");c(n)}),[]),m=(0,n.useCallback)((t=>{if(s.current.active||s.current.isRange||e.isSingleSelect||t.touches.length<=1)return;if(t.touches.length>2)return void a();const n=Number(t.touches[0].target?.closest(ch)?.getAttribute("data-n")),i=Number(t.touches[1].target?.closest(ch)?.getAttribute("data-n"));Number.isNaN(n)||Number.isNaN(n)?a():(s.current.active=!0,l(n,i).length<7&&(s.current.touchRangeSmall=!0),s.current.elemNumbers=[],s.current.touchElemNumbers=[n,i])}),[]),f=(0,n.useCallback)((()=>{if(2!==s.current.touchElemNumbers.length)return;if(s.current.touchRangeSmall)return s.current.touchRangeSmall=!1,s.current.touchElemNumbers=[],void(s.current.active=!1);const[e,t]=s.current.touchElemNumbers;s.current.startElemNumber=e,c(t),s.current.touchElemNumbers=[],s.current.active=!1,s.current.toggle=!0,a()}),[]);(0,n.useEffect)((()=>(o.addEventListener("mouseup",g),()=>{o.removeEventListener("mouseup",g)})),[g]),(0,n.useEffect)((()=>{const n=()=>{e.clearItemStates(!1)},i=()=>{e.clearItemStates(!0),e.triggerStateChanged()};return t.on("clearItemStates",n),t.on("deactivated",n),t.on("cleared",i),()=>{t.removeListener("clearItemStates",n),t.removeListener("deactivated",n),t.removeListener("cleared",i)}}),[t]);const v={};return i?Object.assign(v,{onChange:d}):Object.assign(v,{onMouseUp:h,onMouseDown:u,onMouseEnter:p,onTouchStart:m,onTouchEnd:f}),{interactionEvents:v,select:(n=[],i=!1,o=void 0)=>{const r=!e.isSingleSelect&&dh(o?.nativeEvent);r||e.clearItemStates(!0);const s=[];return e.updateItems(n,i,s),e.setSelectableValuesUpdating(),sh({selections:t,elemNumbers:i?s:n,isSingleSelect:e.isSingleSelect,toggle:r})}}}({selectionState:s,selections:r,checkboxes:I,doc:document,loaderRef:T}),{layoutOptions:Z={}}=o||{};let Q=!0;Z.dataLayout&&(Q="singleColumn"===Z.dataLayout||"row"===Z?.layoutOrder);const Y="grid"===Z?.dataLayout,X=e=>{const t={...Q?{rowIndex:e}:{columnIndex:e}},n=Y?t:e;T.current._listRef.scrollToItem(n)},J=()=>{if(O.current.queue=[],O.current.validPages=!1,T.current){T.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===C.state.scrollPosition;if(o&&o.qSelectionInfo.qInSelections||e)return void(e&&C.reset());O.current.dataOffset=0,X(0)}};h&&h.call(null,J),(0,n.useEffect)((()=>{_&&!E&&T.current&&(T.current._listRef.scrollToItem(_.initScrollPos),N(!0))}),[T.current]),(0,n.useEffect)((()=>{J()}),[o,O.current.dataOffset]);const ee=Cp({text:yp(o),font:"14px Source sans pro"});let te=bf;const ne="grid"!==Z.dataLayout,ie=o?.qListObject.qSize?.qcy,oe=function({pages:e,minimumBatchSize:t,count:n,calculatePagesHeight:i=!1}){return(e?.length&&i?wp({pages:e,minimumBatchSize:t,count:n}):n)||0}({pages:H,minimumBatchSize:te,count:ie,calculatePagesHeight:m,layoutOptions:Z,model:e});let re=ff({itemWidth:d,layout:o,frequencyMode:u});const se=function({layout:e,width:t,height:n,listCount:i,count:o,textWidth:r,freqIsAllowed:s,checkboxes:a}){const{layoutOptions:l={}}=e||{},{layoutOrder:c,maxVisibleRows:d={},maxVisibleColumns:u,dense:h,dataLayout:g}=l,p=s?Ch:0,m=a?wh:0;let f=yh+p+m;!a&&f>=vh&&(f+=wh);let v,_,b,C,y=r+18+p+m;!a&&y>=vh&&(y+=wh),y=Math.min(bh,Math.max(y,f));const w="grid"===g;let S=h?20:w?32:29;w&&(S+=4);const x=n??8*S;if(c){let e=t;"row"===c?(v={overflowX:"hidden"},e+=8,({rowCount:C,columnWidth:b,columnCount:_}=function({maxVisibleColumns:e,listCount:t,containerWidth:n,columnAutoWidth:i,itemMinWidth:o}){const r=e?.maxColumns||3,s=n-_h;let a;const l=Math.min(t,Math.max(1,Math.round(s/Math.max(o,i))));a=!1!==e?.auto?l:Math.min(t,r,l);const c=s/a;return{rowCount:Math.ceil(t/a),columnWidth:c,columnCount:a}}({maxVisibleColumns:u,listCount:i,containerWidth:e,columnAutoWidth:y,itemMinWidth:f}))):(v={overflowY:"hidden"},({rowCount:C,columnWidth:b,columnCount:_}=function({maxVisibleRows:e,itemHeight:t,listCount:n,listHeight:i,columnAutoWidth:o,containerWidth:r,itemMinWidth:s}){let a;const l=e?.maxRows||3,c=Math.floor(i/t);a=!1!==e.auto?c:Math.min(n,l,c);const d=Math.ceil(n/a);return{columnWidth:Math.max(o,r/d,s),columnCount:d,rowCount:a}}({maxVisibleRows:d,itemHeight:S,listCount:i,listHeight:x,columnAutoWidth:y,containerWidth:e,itemMinWidth:f})))}_=("singleColumn"===g?1:_)||1,C=("singleColumn"===g?o:C)||i;const L=l.dense?838e3:577e3;C=Math.min(C,L);const k=Math.floor(3355e4/b);_=Math.min(_,k)||1;const E=C*_,N=Math.min(i,E);return{columnCount:_,columnWidth:b,rowCount:C,overflowStyling:v,itemHeight:S,listHeight:x,scrollBarWidth:_h,count:o,listCount:N,maxCount:{row:L,column:k},itemPadding:4,frequencyWidth:Ch}}({layout:o,width:d,height:c,listCount:oe,count:ie,textWidth:ee,freqIsAllowed:re,checkboxes:I});se.columnWidth&&(re=ff({itemWidth:se.columnWidth,layout:o,frequencyMode:u}));const{listCount:ae}=se;B("listCount",ae);const le=e=>{const{scrollIndex:t,offset:n,triggerRerender:i}=function({position:e,isRow:t,sizes:n,layout:i,offset:o}){let r,s=!1,a=o??0;switch(e){case"start":r=0;break;case"end":r=t?n.rowCount:n.columnCount;break;case"overflowStart":a=0,r=0,s=!0;break;case"overflowEnd":a=pf(i,n.listCount),r=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:r,offset:a,triggerRerender:s}}({position:e,isRow:Q,sizes:se,layout:o,offset:O.current.dataOffset});O.current.dataOffset=n,i&&s.triggerStateChanged(),X(t)};(0,n.useEffect)((()=>{const e=C.state;e.up?X(y.state.start-e.up):e.down?X(y.state.stop+e.down):e.scrollPosition&&le(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&C.reset()}),[C.state.up,C.state.down,C.state.scrollPosition]);const{textAlign:ce}=o?.qListObject.qDimensionInfo||{},[de,ue]=(0,n.useState)({first:!1,last:!1}),{List:he,Grid:ge}=function({layout:e,width:t,checkboxes:i,local:o,isVertical:r,pages:s,selectDisabled:a,interactionEvents:l,frequencyMode:c,histogram:d,isSingleSelect:u,select:h,selectAll:g,onCtrlF:p,textAlign:m,selections:f,keyboard:v,showGray:_,scrollState:b,direction:C,sizes:y,listCount:w,overflowDisclaimer:S,setScrollPosition:x,focusListItems:L,setCurrentScrollIndex:k,constraints:E,frequencyMax:N,freqIsAllowed:D,translator:I,showSearch:R,isModal:T}){const{layoutOptions:O={}}=e||{},{columnWidth:q,itemPadding:A,listHeight:M,itemHeight:P,rowCount:F,columnCount:B,frequencyWidth:W}=y||{},V=("grid"===O.dataLayout?q:t)>vh,z={direction:"rtl"===C?"rtl":"ltr",useIsScrolling:!0,className:hp.styledScrollbars},H=e?.qListObject.qDimensionInfo.qLocked,j={isLocked:H,column:!r,pages:s,...H||a()?{}:l,checkboxes:i,layoutOptions:O,frequencyMode:c,freqIsAllowed:D,isSingleSelect:u,textAlign:m,itemPadding:A,frequencyWidth:W,actions:{select:h,confirm:()=>f?.confirm.call(f),cancel:()=>f?.cancel.call(f),setScrollPosition:x,selectAll:g,onCtrlF:p},frequencyMax:N,histogram:d,keyboard:v,showGray:_,showTick:V,dataOffset:o.current.dataOffset,focusListItems:L,direction:C,translator:I,showSearch:R,isModal:T};return{List:({onItemsRendered:i,ref:r})=>(o.current.listRef=r,n.createElement(_p,vp({},z,{dataTestid:"fixed-size-list",scrollDisabled:E?.active,height:M,width:t,itemCount:w,itemData:{...j,listCount:w},itemSize:P,onItemsRendered:t=>{k({start:t.visibleStartIndex,stop:t.visibleStopIndex}),b&&b.setScrollPos(t.visibleStopIndex),fp({renderProps:t,layoutOptions:O,maxCount:y.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:S,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),i({...t})},ref:r}),jg)),Grid:({onItemsRendered:i,ref:r})=>{const{overflowStyling:s,scrollBarWidth:a}=y,{layoutOrder:l}=O||{},c=Math.min(M,F*P+a);return o.current.listRef=r,n.createElement(bp,vp({},z,{dataTestid:"fixed-size-grid",scrollDisabled:E?.active,height:c,width:t,columnCount:B,columnWidth:q,rowCount:F,rowHeight:P,style:{...s},itemData:{...j,column:void 0,columnCount:B,rowCount:F},onItemsRendered:t=>{const n="row"===l;k({start:n?t.visibleRowStartIndex:t.visibleColumnStartIndex,stop:n?t.visibleRowStopIndex:t.visibleColumnStopIndex});const r=function(e){const{renderProps:t,scrollState:n,layoutOrder:i,rowCount:o,columnCount:r}=e,{overscanRowStartIndex:s,overscanRowStopIndex:a,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:d}=t;let u,h,g,p;return n&&n.setScrollPos(d),"column"===i?(u=l*o,h=s,g=c*o,p=a):(u=l,h=s*r,g=c,p=a*r),{visibleStartIndex:u+h,visibleStopIndex:g+p}}({renderProps:t,scrollState:b,layoutOrder:l,rowCount:F,columnCount:B});fp({renderProps:t,layoutOptions:O,maxCount:y.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:S,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),i(r)},ref:r}),jg)}}}({direction:a,layout:o,height:c,width:d,checkboxes:I,frequencyMode:u,histogram:R,keyboard:f,showGray:v,interactionEvents:K,select:G,selectAll:()=>{s.clearItemStates(!1),e.selectListObjectAll("/qListObjectDef")},onCtrlF:S,textAlign:ce,isVertical:ne,pages:H,selectDisabled:b,isSingleSelect:D,selections:r,scrollState:_,local:O,sizes:se,listCount:ae,overflowDisclaimer:{state:V,set:e=>z((t=>({...t,show:e})))},setScrollPosition:le,focusListItems:{first:de.first,setFirst:e=>ue((t=>({...t,first:e}))),last:de.last,setLast:e=>ue((t=>({...t,last:e})))},setCurrentScrollIndex:y.set,constraints:i,frequencyMax:A,freqIsAllowed:re,translator:k,showSearch:x,isModal:L}),{columnWidth:pe,listHeight:me,itemHeight:fe}=se||{};return ne||(te=function({width:e,columnWidth:t,listHeight:n,itemHeight:i}){return Math.ceil(e/t)*Math.ceil(n/i)*2}({width:d,columnWidth:pe,listHeight:me,itemHeight:fe})),n.createElement(Cf,null,n.createElement(Fg,{className:"screenReaderOnly",layout:o}),!ae&&U>0&&n.createElement(af,{width:d,text:"Listbox.NoMatchesForYourTerms"}),n.createElement(ih,{isItemLoaded:$,itemCount:ae||1,loadMoreItems:W.with({minimumBatchSize:te}),threshold:0,minimumBatchSize:te,ref:T,role:"grid"},ne?he:ge),V.show&&!V.dismissed&&n.createElement(gf,{text:"Listbox.ItemsOverflow",dismiss:()=>z((e=>({...e,dismissed:!0}))),parentWidth:T?.current?._listRef?.props?.width,dense:Z?.dense}))}const wf=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"}}]}),Sf=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"}}]}),xf=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"}}]}),Lf=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"}}]}),kf=({layout:e,model:t,translator:n,selectionState:i,isDirectQuery:o=!1})=>e.qListObject.qDimensionInfo.qIsOneAndOnlyOne?[]:[{key:"selectAll",type:"menu-icon-button",label:n.get("Selection.SelectAll"),getSvgIconShape:wf,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{i.clearItemStates(!1),t.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:n.get("Selection.SelectPossible"),getSvgIconShape:xf,enabled:()=>["qOption"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{i.clearItemStates(!1),t.selectListObjectPossible("/qListObjectDef")}},!o&&{key:"selectAlternative",type:"menu-icon-button",label:n.get("Selection.SelectAlternative"),getSvgIconShape:Sf,enabled:()=>["qAlternative"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{i.clearItemStates(!1),t.selectListObjectAlternative("/qListObjectDef")}},!o&&{key:"selectExcluded",type:"menu-icon-button",label:n.get("Selection.SelectExcluded"),getSvgIconShape:Lf,enabled:()=>["qAlternative","qExcluded"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{i.clearItemStates(!1),t.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean);function Ef(e){return(0,kt.Z)("MuiDivider",e)}const Nf=(0,Lt.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Df=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],If=(0,xt.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,_t.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,Ro.Fq)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>(0,_t.Z)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>(0,_t.Z)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>(0,_t.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>(0,_t.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Rf=(0,xt.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,_t.Z)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Tf=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiDivider"}),{absolute:i=!1,children:o,className:r,component:s=(o?"div":"hr"),flexItem:a=!1,light:l=!1,orientation:c="horizontal",role:d=("hr"!==s?"separator":void 0),textAlign:u="center",variant:h="fullWidth"}=n,g=(0,vt.Z)(n,Df),p=(0,_t.Z)({},n,{absolute:i,component:s,flexItem:a,light:l,orientation:c,role:d,textAlign:u,variant:h}),m=(e=>{const{absolute:t,children:n,classes:i,flexItem:o,light:r,orientation:s,textAlign:a,variant:l}=e,c={root:["root",t&&"absolute",l,r&&"light","vertical"===s&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]};return(0,Ct.Z)(c,Ef,i)})(p);return(0,Nt.jsx)(If,(0,_t.Z)({as:s,className:(0,bt.Z)(m.root,r),role:d,ref:t,ownerState:p},g,{children:o?(0,Nt.jsx)(Rf,{className:m.wrapper,ownerState:p,children:o}):null}))})),Of=Tf,qf=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 Af(e){const t=Yt(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,i="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:i}}const Mf={className:"njs-cell-action"},Pf=n.forwardRef((({ariaExpanded:e=!1,item:t,addAnchor:i=!1},o)=>{const r=Yt(),{hidden:s,disabled:a,style:l,hasSvgIconShape:c}=Af(t);if(s)return null;const d=Number.parseInt(r.spacing(.5),10),u=t.keyboardAction||t.action,h=u?e=>["Enter"].includes(e.key)&&u():null,g=u?e=>[" ","Spacebar"].includes(e.key)&&u():null,p=`actions-toolbar-${t.key}`;return n.createElement(Sr,{ref:i?null:o,title:t.label,onClick:t.action,onKeyDown:h,onKeyUp:g,disabled:a,style:l,className:[Mf.className,p].join(" "),size:"large",disableRipple:!0,"aria-expanded":e,"aria-controls":"moreMenuList","data-testid":p},c&&Cs(t.getSvgIconShape()),i&&n.createElement("div",{ref:o,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),Ff=Pf,Bf=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"}}]}),Wf=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"}}]}),Vf=e=>Cs(Wf(e));function zf(e){return(0,kt.Z)("MuiListItemIcon",e)}const Hf=(0,Lt.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);function jf(e){return(0,kt.Z)("MuiMenuItem",e)}const Uf=(0,Lt.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),$f=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Kf=(0,xt.ZP)(vr,{shouldForwardProp:e=>(0,xt.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,_t.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Uf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Ro.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Uf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Ro.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Uf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Ro.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Ro.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Uf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Uf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Nf.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Nf.inset}`]:{marginLeft:52},[`& .${$s.root}`]:{marginTop:0,marginBottom:0},[`& .${$s.inset}`]:{paddingLeft:36},[`& .${Hf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,_t.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Hf.root} svg`]:{fontSize:"1.25rem"}})))),Gf=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:r="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:u,className:h}=i,g=(0,vt.Z)(i,$f),p=n.useContext(ws),m=n.useMemo((()=>({dense:s||p.dense||!1,disableGutters:l})),[p.dense,s,l]),f=n.useRef(null);(0,Is.Z)((()=>{o&&f.current&&f.current.focus()}),[o]);const v=(0,_t.Z)({},i,{dense:m.dense,divider:a,disableGutters:l}),_=(e=>{const{disabled:t,dense:n,divider:i,disableGutters:o,selected:r,classes:s}=e,a={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",i&&"divider",r&&"selected"]},l=(0,Ct.Z)(a,jf,s);return(0,_t.Z)({},s,l)})(i),b=(0,To.Z)(f,t);let C;return i.disabled||(C=void 0!==u?u:-1),(0,Nt.jsx)(ws.Provider,{value:m,children:(0,Nt.jsx)(Kf,(0,_t.Z)({ref:b,role:d,tabIndex:C,component:r,focusVisibleClassName:(0,bt.Z)(_.focusVisible,c),className:(0,bt.Z)(_.root,h)},g,{ownerState:v,classes:_}))})})),Zf=Gf,Qf=["className"],Yf=(0,xt.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,_t.Z)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Xf=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiListItemIcon"}),{className:o}=i,r=(0,vt.Z)(i,Qf),s=n.useContext(ws),a=(0,_t.Z)({},i,{alignItems:s.alignItems}),l=(e=>{const{alignItems:t,classes:n}=e,i={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,Ct.Z)(i,zf,n)})(a);return(0,Nt.jsx)(Yf,(0,_t.Z)({className:(0,bt.Z)(l.root,o),ownerState:a,ref:t},r))})),Jf=Xf,ev=au,tv=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function nv(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function iv(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ov(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function rv(e,t,n,i,o,r){let s=!1,a=o(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!i&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&ov(a,r)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}const sv=n.forwardRef((function(e,t){const{actions:i,autoFocus:o=!1,autoFocusItem:r=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:u="selectedMenu"}=e,h=(0,vt.Z)(e,tv),g=n.useRef(null),p=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,Is.Z)((()=>{o&&g.current.focus()}),[o]),n.useImperativeHandle(i,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&n){const n=`${ev((0,Ea.Z)(e))}px`;g.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,g.current.style.width=`calc(100% + ${n})`}return g.current}})),[]);const m=(0,To.Z)(g,t);let f=-1;n.Children.forEach(s,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===f)&&(f=t),f===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(f+=1,f>=s.length&&(f=-1)))}));const v=n.Children.map(s,((e,t)=>{if(t===f){const t={};return r&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),n.cloneElement(e,t)}return e}));return(0,Nt.jsx)(Es,(0,_t.Z)({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=g.current,n=e.key,i=(0,Ea.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),rv(t,i,c,l,nv);else if("ArrowUp"===n)e.preventDefault(),rv(t,i,c,l,iv);else if("Home"===n)e.preventDefault(),rv(t,null,c,l,nv);else if("End"===n)e.preventDefault(),rv(t,null,c,l,iv);else if(1===n.length){const o=p.current,r=n.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&r!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(r);const a=i&&!o.repeating&&ov(i,o);o.previousKeyMatched&&(a||rv(t,i,!1,l,nv,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:o?0:-1},h,{children:v}))})),av=sv;function lv(){return lv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},lv.apply(this,arguments)}const cv="More-icon",dv=(0,xt.ZP)(eh)((({theme:e})=>({pointerEvents:"none",[`& .${cv}`]:{color:e.palette.text.primary}})));function uv({item:e,autoFocus:t,onActionClick:i=(()=>{})}){const{hidden:o,disabled:r,hasSvgIconShape:s}=Af(e);return o?null:n.createElement(Zf,{autoFocus:t,title:e.label,onClick:()=>{e.action(),i()},disabled:r,tabindex:"0"},s&&n.createElement(Jf,{className:cv},Cs(e.getSvgIconShape())),n.createElement(zr,{noWrap:!0},e.label))}const hv=n.forwardRef((({actions:e=[],show:t=!0,alignTo:i,popoverProps:o={},popoverPaperStyle:r={},onCloseOrActionClick:s=(()=>{})},a)=>{const l=e.length>0,c=e.findIndex((e=>!e.disabled));return l&&n.createElement(dv,lv({},o,{onClose:s,ref:a,open:t,anchorEl:i.current,getContentAnchorEl:null,container:i.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:"njs-action-toolbar-more"}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:{pointerEvents:"auto",maxWidth:"250px",...r}}}),n.createElement(av,{id:"moreMenuList"},e.map(((e,t)=>n.createElement(uv,{key:t,item:e,autoFocus:t===c,onActionClick:s})))))})),gv="ActionsToolbar",pv={item:`${gv}-item`,itemSpacing:`${gv}-itemSpacing`,firstItemSpacing:`${gv}-firstItemSpacing`,lastItemSpacing:`${gv}-lastItemSpacing`},mv=(0,xt.ZP)(eh)((({theme:e})=>({[`& .${pv.itemSpacing}`]:{padding:e.spacing(0,.5)},[`& .${pv.firstItemSpacing}`]:{padding:e.spacing(0,.5,0,0)},[`& .${pv.lastItemSpacing}`]:{padding:e.spacing(0,0,0,.5)}}))),fv=n.forwardRef((({className:e,ariaExpanded:t=!1,actions:i=[],first:o=!1,last:r=!1,addAnchor:s=!1,isRtl:a=!1},l)=>i.length>0?n.createElement(Ar,{item:!0,container:!0,gap:0,flexDirection:a?"row-reverse":"row",wrap:"nowrap",className:e},i.map(((e,a)=>{let c=[];const d=o&&0===a,u=r&&i.length-1===a;return d&&!u&&(c=[pv.firstItemSpacing,pv.item]),u&&!d&&(c=[...c,pv.lastItemSpacing,pv.item]),d||u||0!==c.length||(c=[pv.itemSpacing,pv.item]),n.createElement(Ar,{item:!0,key:e.key,className:c.join(" ").trim()},n.createElement(Ff,{ariaExpanded:t,key:e.key,item:e,ref:0===a?l:null,addAnchor:s}))}))):null)),vv={pointerEvents:"none"},_v={vertical:"bottom",horizontal:"right"},bv=function({show:e=!0,actions:t=[],maxItems:i=3,selections:o={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:r={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:s={show:!1,anchorEl:null},focusHandler:a=null,actionsRefMock:l=null,direction:c="ltr"}){const d=function({api:e,onConfirm:t=(()=>{}),onCancel:i=(()=>{}),onKeyDeactivate:o=(()=>{})}){const{translator:r}=(0,n.useContext)(hd);return[{key:"clear",type:"icon-button",label:r.get("Selection.Clear"),enabled:()=>e.canClear(),action:()=>e.clear(),getSvgIconShape:Wf},{key:"cancel",type:"icon-button",label:r.get("Selection.Cancel"),enabled:()=>e.canCancel(),action:()=>{i(),e.cancel()},keyboardAction:()=>{o(),i(),e.cancel()},getSvgIconShape:Bf},{key:"confirm",type:"icon-button",label:r.get("Selection.Confirm"),enabled:()=>e.canConfirm(),action:()=>{t(),e.confirm()},keyboardAction:()=>{o(),t(),e.confirm()},getSvgIconShape:uh}]}(o),{translator:u,keyboardNavigation:h}=(0,n.useContext)(hd),[g,p]=(0,n.useState)(!1),m={vertical:7,horizontal:(s.anchorEl?.clientWidth??0)-7},f=(0,n.useRef)(),v=(0,n.useRef)(),_=Yt(),b=(0,n.useMemo)((()=>({margin:_.spacing(.5,0)}))),C=e=>{const t=f.current||l;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},y=(0,n.useMemo)((()=>function({keyboardNavigation:e,focusHandler:t,getEnabledButton:n,selections:i}){return o=>{const{target:r,nativeEvent:s}=o,{keyCode:a}=s;switch(a){case Wg.ARROW_LEFT:case Wg.ARROW_DOWN:case Wg.ARROW_RIGHT:case Wg.ARROW_UP:if(r.classList.contains("njs-cell-action")){const e=(e=>{const t=e.closest("#actions-toolbar"),n=t?.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)})(r);(e=>{const t=document.querySelector("#actions-toolbar"),n=t?.querySelectorAll(".njs-cell-action");n.length&&n[Math.min(Math.max(0,e),n.length-1)].focus()})([Wg.ARROW_LEFT,Wg.ARROW_DOWN].includes(a)?e-1:e+1)}o.stopPropagation(),o.preventDefault();break;case Wg.SPACE:o.preventDefault();break;case Wg.TAB:e&&t?.refocusContent&&(o.shiftKey&&n(!1)===o.target||!o.shiftKey&&n(!0)===o.target)&&(o.preventDefault(),o.stopPropagation(),t.refocusContent());break;case Wg.ESCAPE:i&&(i.onCancel(),i.api.cancel(),o.preventDefault(),o.stopPropagation())}}}({keyboardNavigation:h,focusHandler:a,getEnabledButton:C,selections:o})),[h,a,C,o]);(0,n.useEffect)((()=>()=>{p(!1)}),[s.show,e,o.show]),(0,n.useEffect)((()=>{a&&(a.on("focus_toolbar_first",(()=>{const e=C(!1);e&&e.focus()})),a.on("focus_toolbar_last",(()=>{const e=C(!0);e&&e.focus()})))}),[]);let w=r.enabled,S=r.actions;const x=r.alignTo||v,L=t.filter((e=>!e.hidden));if(L.length>i){const e=L.splice(-(L.length-i)-1);w=!0,S=[...e,...r.actions]}if(!o.show&&0===L.length)return null;const k={key:"more",label:u.get("Menu.More"),getSvgIconShape:qf,hidden:!1,active:g,enabled:()=>w,action:()=>p(!g)},E=L.length>0,N=S.length>0,D=E&&o.show||N&&o.show,I="rtl"===c,R=n.createElement(Ar,{ref:f,onKeyDown:y,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:I?"row-reverse":"row"}},E&&n.createElement(fv,{actions:L,first:!0,last:!N&&!o.show}),N&&n.createElement(fv,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:v,ariaExpanded:g,actions:[k],first:!E,last:!o.show,addAnchor:!0}),D&&n.createElement(Ar,{item:!0,className:pv.itemSpacing,style:b},n.createElement(Of,{orientation:"vertical"})),o.show&&n.createElement(fv,{className:"actions-toolbar-default-actions",actions:d,first:!E&&!N,last:!0,isRtl:I}),g&&n.createElement(hv,{show:g,actions:S,alignTo:x,popoverProps:r.popoverProps,popoverPaperStyle:r.popoverPaperStyle,onCloseOrActionClick:()=>{p(!1)}}));return s.show?n.createElement(mv,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:s.show,anchorEl:s.anchorEl,anchorOrigin:m,transformOrigin:_v,hideBackdrop:!0,style:vv,PaperProps:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:"njs-action-toolbar-popover",style:{pointerEvents:"auto",padding:_.spacing(.8)}}},R):e&&R};function Cv(e){return(0,kt.Z)("MuiInputAdornment",e)}const yv=(0,Lt.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var wv;const Sv=["children","className","component","disablePointerEvents","disableTypography","position","variant"],xv=(0,xt.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,Ut.Z)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,_t.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${yv.positionStart}&:not(.${yv.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),Lv=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiInputAdornment"}),{children:o,className:r,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d}=i,u=(0,vt.Z)(i,Sv),h=Ya()||{};let g=d;d&&h.variant,h&&!g&&(g=h.variant);const p=(0,_t.Z)({},i,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:g}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:i,position:o,size:r,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${(0,Ut.Z)(o)}`,s,i&&"hiddenLabel",r&&`size${(0,Ut.Z)(r)}`]};return(0,Ct.Z)(a,Cv,t)})(p);return(0,Nt.jsx)(Qa.Provider,{value:null,children:(0,Nt.jsx)(xv,(0,_t.Z)({as:s,ownerState:p,className:(0,bt.Z)(m.root,r),ref:t},u,{children:"string"!=typeof o||l?(0,Nt.jsxs)(n.Fragment,{children:["start"===c?wv||(wv=(0,Nt.jsx)("span",{className:"notranslate",children:""})):null,o]}):(0,Nt.jsx)(zr,{color:"text.secondary",children:o})}))})})),kv=Lv,Ev=e=>Cs((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)),Nv="/qListObjectDef",Dv="**",Iv=(0,xt.ZP)(kv)((({theme:e})=>({color:e.listBox?.content?.color}))),Rv=(0,xt.ZP)(Rl)((({theme:e})=>({color:e.listBox?.content?.color,display:"flex"})));function Tv({selections:e,selectionState:t,model:i,keyboard:o,dense:r=!1,visible:s=!0,autoFocus:a=!0,wildCardSearch:l=!1,searchEnabled:c,direction:d,hide:u}){const{translator:h}=(0,n.useContext)(hd),[g,p]=(0,n.useState)(""),[m,f]=(0,n.useState)(!1),v=(0,n.useRef)(),_=Yt(),{getStoreValue:b}=Lp(i),C="rtl"===d,y=C?"right":"left",w=async()=>{if(e.isModal())try{await i.abortListObjectSearch(Nv)}finally{p("")}};(0,n.useEffect)((()=>{s||w()}),[s]),(0,n.useEffect)((()=>(e.on("deactivated",w),()=>{e.removeListener&&e.removeListener("deactivated",w)})),[]),(0,n.useEffect)((()=>{if(m&&v.current){const e=g.length-1;v.current.setSelectionRange(e,e),f(!1)}}),[m,v.current]);function S(e){const t=e?.querySelector(".last-focused")||e?.querySelector('[role="row"]:first-child');t.setAttribute("tabIndex",0),t?.focus()}return s&&!1!==c?n.createElement(Rv,{startAdornment:n.createElement(Iv,{position:"start"},n.createElement(Ev,{size:r?"small":"normal"})),className:"search",sx:[{border:"none",fontSize:14,borderRadius:0,backgroundColor:"transparent","& fieldset":{border:`1px solid ${_.palette.divider}`,borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"},paddingLeft:`${fh}px`},r&&{fontSize:12,paddingLeft:_.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}},{flexDirection:C?"row-reverse":"row"}],inputRef:v,size:"small",fullWidth:!0,placeholder:h.get("Listbox.Search"),value:g,onFocus:()=>{l&&(p(Dv),f(!0)),e.isModal()||e.begin(["/qListObjectDef"])},onChange:async e=>(p(e.target.value),e.target.value.length?i.searchListObjectFor(Nv,e.target.value):w()),onKeyDown:async n=>{const{currentTarget:r}=n,s=r.closest(".listbox-container");switch(n.key){case"Enter":(async()=>{let n;await i.searchListObjectFor(Nv,g)&&g.length&&b("listCount")>0&&(n=i.acceptListObjectSearch(Nv,!0),e.selectionsMade=!0,t.clearItemStates(!1),p(""))})();break;case"Escape":S(s),e.isActive()&&e.cancel();break;case"Tab":n.shiftKey?o.focusSelection():(S(s),s?.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")})));break;case"f":case"F":if(!n.ctrlKey&&!n.metaKey)return;u&&(u(),S(s));break;default:return}n.preventDefault(),n.stopPropagation()},autoFocus:a,inputProps:{tabIndex:o.innerTabStops?0:-1,style:{textAlign:`${y}`},"data-testid":"search-input-field"}}):null}function Ov(e){return Object.keys(pc().prototype).forEach((t=>{e[t]=pc().prototype[t]})),pc().init(e),e}const qv=({appSelections:e,appModal:t,model:n})=>{let i,o=!1,r=!1;const s={id:n.id,setLayout(e){i=e},begin(e){const i=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",i),i.isPrevented()?Promise.resolve():(o=!0,this.emit("activated"),t.begin(n,e,!0))},clear(){return r=!1,this.emit("cleared"),i.qListObject?n.clearSelections("/qListObjectDef"):n.resetMadeSelections()},confirm(){return r=!1,o=!1,this.emit("confirmed"),this.emit("deactivated"),t.end(!0)},cancel(){return r=!1,o=!1,this.emit("canceled"),this.emit("deactivated"),t.end(!1)},async select(t){const i=this.begin([t.params[0]]);if(!e.isModal())return!1;await i;const o=await n[t.method](...t.params);return r="resetMadeSelections"!==t.method,!!o||(n.resetMadeSelections(),!1)},canClear:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked&&!i.qListObject.qDimensionInfo.qIsOneAndOnlyOne:r,canConfirm:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked:r,canCancel:()=>!(i&&i.qListObject&&i.qListObject.qDimensionInfo&&i.qListObject.qDimensionInfo.qLocked),isActive:()=>o,isModal:()=>e.isModal(n),goModal:e=>t.begin(n,e,!1),noModal:(e=!1)=>t.end(e)};return Ov(s),s},Av=({elements:e,objectSelections:t,options:n={}})=>{const i=function({elements:e,handleClickOutside:t}){return n=>{if(!document.contains(n.target))return;const i=e.map((e=>"string"==typeof e?document.querySelector(e):e?.current)).filter((e=>!!e&&!!document.contains(e)));i.length&&!i.some((e=>e.contains(n.target)))&&t(n)}}({elements:e,handleClickOutside:()=>t.confirm.call(t)});return{activateClickOut(){document.addEventListener("mousedown",i),n?.onSelectionActivated?.()},deactivateClickOut(){document.removeEventListener("mousedown",i),n?.onSelectionDeactivated?.()}}};function Mv(e,t,i,o){const r=Array.isArray(i)?i:[i],[s]=wd(e),[a]=Ud(t),l=t?t.id:null,[c]=fd(),[d]=_d(),u=c.get(e.id);let h=d.get(l);return(0,n.useEffect)((()=>{s&&t&&!h&&(h=qv({appSelections:s,appModal:u,model:t}),d.set(l,h),d.dispatch(!0))}),[s,t]),(0,n.useEffect)((()=>{if(!h)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=Av({elements:r,objectSelections:h,options:o});return h.addListener("activated",e),h.addListener("deactivated",t),()=>{h.isActive()&&h.confirm(),h.removeListener("activated",e),h.removeListener("deactivated",t)}}),[h]),(0,n.useEffect)((()=>{h&&h.setLayout(a)}),[h,a]),[h]}function Pv(){const e={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,update({setPages:t,pages:n,isSingleSelect:i,selectDisabled:o,layout:r}){this.setPages=t;const s=this.lastRowCount===r.qListObject.qSize.qcy,a=this.lastApprMaxGlyphCount===r.qListObject.qDimensionInfo.qApprMaxGlyphCount;s&&a||(this.lastRowCount=r.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=r.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==n&&void 0!==n&&(e.enginePages=n??[],e.selectedInEngine=function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!oh.includes(n)&&t.qElemNumber;var n})).filter((e=>!1!==e))));return rh(t)}(n),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=i,e.selectDisabled=o,e.isDimCalculated=r?.qListObject?.qDimensionInfo?.qIsCalculated??!1},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:i}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===i?"XS":"S":"S"===i||"XS"===i?"A":i:i},updateItemNoEvents(t,n,i){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(i?.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages:t=>t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,i=e.getState(n);return[{...n,qState:i},...t.slice(1)]}));return{...t,qMatrix:n}})),updateItem(t,n,i){e.updateItemNoEvents(t,n,i),e.triggerStateChanged()},updateItems(t,n,i){t.forEach((t=>{e.updateItemNoEvents(t,n,i)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}};return e}const Fv=(e,t,n=void 0)=>e?.[t]??n;function Bv({alignTo:e,anchorOrigin:t={vertical:"bottom",horizontal:"center"},transformOrigin:i={vertical:"top",horizontal:"center"},show:o,close:r,app:s,fieldName:a,stateName:l="$",autoFocus:c}){const d=Boolean(a?.qLibraryId),u=o&&Boolean(e.current),[h,g]=(0,n.useState)(0),p=Yt(),m=(0,n.useRef)(),[f]=Wd({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:l,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:d?void 0:[a]},qLibraryId:d?a.qLibraryId:void 0}},s,a,l),v=(0,n.useCallback)((()=>{f.lock("/qListObjectDef")}),[f]),_=(0,n.useCallback)((()=>{f.unlock("/qListObjectDef")}),[f]),{translator:b}=(0,n.useContext)(hd),C=(0,n.useRef)(),y=(0,n.useRef)(),[w]=Mv(s,f,y),[S]=Ud(f),[x]=(0,n.useState)((()=>Pv()));if((0,n.useEffect)((()=>{w&&u&&(w.isModal(f)||w.goModal("/qListObjectDef"))}),[w,u]),!f||!S||!b)return null;const L=!0===S.qListObject.qDimensionInfo.qLocked,k=(e,t)=>{const n="escapeKeyDown"!==t;w.noModal(n),r()},E=kf({layout:S,model:f,translator:b,selectionState:x}),N=function(e){const t=e?.qListObject.qDimensionInfo.qStateCounts||{};return Fv(t,"qSelected",0)+Fv(t,"qSelectedExcluded",0)+Fv(t,"qLocked",0)+Fv(t,"qLockedExcluded",0)>0}(S);return n.createElement(eh,{open:u,onClose:k,anchorEl:e.current,anchorOrigin:t,transformOrigin:i,PaperProps:{style:{minWidth:"250px"}}},n.createElement(Ar,{container:!0,direction:"column",gap:0,ref:y},n.createElement(Ar,{item:!0,container:!0,style:{padding:p.spacing(1)}},n.createElement(Ar,{item:!0},L?n.createElement(Sr,{onClick:_,disabled:!L,size:"large"},n.createElement(Gd,{title:b.get("Listbox.Unlock")})):n.createElement(Sr,{onClick:v,disabled:!N,size:"large"},n.createElement(Zd,{title:b.get("Listbox.Lock")}))),n.createElement(Ar,{item:!0,xs:!0}),n.createElement(Ar,{item:!0},n.createElement(bv,{more:{enabled:!L,actions:E,alignTo:C,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:w,onConfirm:k,onCancel:()=>k(0,"escapeKeyDown")}}))),n.createElement(Ar,{item:!0,xs:!0},n.createElement("div",{ref:C}),n.createElement(Ar,{item:!0,ref:m},n.createElement(Tv,{visible:!0,model:f,listCount:h,selections:w,selectionState:x,keyboard:{enabled:!1},autoFocus:c??!0})),n.createElement(yf,{model:f,app:s,layout:S,selections:w,selectionState:x,direction:"ltr",onSetListCount:e=>g(e),onCtrlF:()=>{const e=m.current.querySelector("input");e?.focus()}}))))}function Wv({field:e,api:t,stateIx:i=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:r=null,onClose:s=(()=>{})}){const{translator:a}=(0,n.useContext)(hd),l=r||(0,n.useRef)(),c=Yt(),[d,u]=(0,n.useState)(!1),h=()=>{u(!1),s()},g=e.selections[i];void 0===g.qTotal&&(g.qTotal=0);const p=g.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},m=(p.qSelected+p.qLocked)/g.qTotal,f=p.qAlternative/g.qTotal,v=(p.qExcluded+p.qLockedExcluded+p.qSelectedExcluded)/g.qTotal,_=p.qSelected+p.qSelectedExcluded+p.qLocked+p.qLockedExcluded,b=0===_&&0===g.qTotal;let C="";g.qTotal===_&&g.qTotal>1?C=a.get("CurrentSelections.All"):_>1&&g.qTotal?C=a.get("CurrentSelections.Of",[_,g.qTotal]):g.qSelectedFieldSelectionInfo&&(C=g.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==e.states[i]&&(C=`${e.states[i]}: ${C}`);const y=[{color:c.palette.selected.main,ratio:m},{color:c.palette.selected.alternative,ratio:f},{color:c.palette.selected.excluded,ratio:v}];y.forEach(((e,t)=>{e.offset=t?y[t-1].offset+y[t-1].ratio:0}));let w=null,S=null,x=null,L=null;return r||(w=n.createElement(Ar,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:g.qLocked?"0.3":""}},n.createElement(zr,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},g.qField),n.createElement(zr,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},C)),g.qLocked?S=n.createElement(Ar,{item:!0},n.createElement(Sr,{size:"large"},n.createElement(Gd,null))):g.qOneAndOnlyOne||(S=n.createElement(Ar,{item:!0},n.createElement(Sr,{title:a.get("Selection.Clear"),onClick:n=>{n.stopPropagation(),t.clearField(g.qField,e.states[i])},size:"large"},n.createElement(ys,null)))),x=n.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===b&&y.map((e=>n.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}})))),L=n.createElement(Ar,{container:!0,gap:1,ref:l,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&(e=>{e.currentTarget.contains(e.target)&&u(!d)})||null},w,S,x,d&&n.createElement(Bv,{alignTo:l,show:d,close:h,app:t.model,fieldName:g.qField,stateName:e.states[i]}))),r?n.createElement(Bv,{alignTo:l,show:!0,close:h,app:t.model,fieldName:g.qField,stateName:e.states[i]}):L}const Vv=e=>{const t=n.useRef({});return n.useEffect((()=>{t.current=e})),t.current};function zv(e){return(0,kt.Z)("MuiBadge",e)}const Hv=(0,Lt.Z)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),jv=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Uv=(0,xt.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),$v=(0,xt.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${(0,Ut.Z)(n.anchorOrigin.vertical)}${(0,Ut.Z)(n.anchorOrigin.horizontal)}${(0,Ut.Z)(n.overlap)}`],"default"!==n.color&&t[`color${(0,Ut.Z)(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>(0,_t.Z)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Hv.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Hv.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Hv.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Hv.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Hv.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Hv.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Hv.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Hv.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),Kv=n.forwardRef((function(e,t){var n,i,o,r,s,a;const l=(0,St.Z)({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:d,component:u,components:h={},componentsProps:g={},children:p,overlap:m="rectangular",color:f="default",invisible:v=!1,max:_=99,badgeContent:b,slots:C,slotProps:y,showZero:w=!1,variant:S="standard"}=l,x=(0,vt.Z)(l,jv),{badgeContent:L,invisible:k,max:E,displayValue:N}=function(e){const{badgeContent:t,invisible:n=!1,max:i=99,showZero:o=!1}=e,r=Vv({badgeContent:t,max:i});let s=n;!1!==n||0!==t||o||(s=!0);const{badgeContent:a,max:l=i}=s?r:e;return{badgeContent:a,invisible:s,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}}({max:_,invisible:v,badgeContent:b,showZero:w}),D=Vv({anchorOrigin:c,color:f,overlap:m,variant:S,badgeContent:b}),I=k||null==L&&"dot"!==S,{color:R=f,overlap:T=m,anchorOrigin:O=c,variant:q=S}=I?D:l,A="dot"!==q?N:void 0,M=(0,_t.Z)({},l,{badgeContent:L,invisible:I,max:E,displayValue:A,showZero:w,anchorOrigin:O,color:R,overlap:T,variant:q}),P=(e=>{const{color:t,anchorOrigin:n,invisible:i,overlap:o,variant:r,classes:s={}}=e,a={root:["root"],badge:["badge",r,i&&"invisible",`anchorOrigin${(0,Ut.Z)(n.vertical)}${(0,Ut.Z)(n.horizontal)}`,`anchorOrigin${(0,Ut.Z)(n.vertical)}${(0,Ut.Z)(n.horizontal)}${(0,Ut.Z)(o)}`,`overlap${(0,Ut.Z)(o)}`,"default"!==t&&`color${(0,Ut.Z)(t)}`]};return(0,Ct.Z)(a,zv,s)})(M),F=null!=(n=null!=(i=null==C?void 0:C.root)?i:h.Root)?n:Uv,B=null!=(o=null!=(r=null==C?void 0:C.badge)?r:h.Badge)?o:$v,W=null!=(s=null==y?void 0:y.root)?s:g.root,V=null!=(a=null==y?void 0:y.badge)?a:g.badge,z=la({elementType:F,externalSlotProps:W,externalForwardedProps:x,additionalProps:{ref:t,as:u},ownerState:M,className:(0,bt.Z)(null==W?void 0:W.className,P.root,d)}),H=la({elementType:B,externalSlotProps:V,ownerState:M,className:(0,bt.Z)(P.badge,null==V?void 0:V.className)});return(0,Nt.jsxs)(F,(0,_t.Z)({},z,{children:[p,(0,Nt.jsx)(B,(0,_t.Z)({},H,{children:A}))]}))})),Gv=Kv,Zv=e=>Cs((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)),Qv={item:"MultiState-item"},Yv=(0,xt.ZP)(Ar)((({theme:e})=>({[`&.${Qv.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"}})));function Xv({field:e,api:t,moreAlignTo:i=null,onClose:o=(()=>{})}){const[r,s]=(0,n.useState)(!!i),[a,l]=(0,n.useState)(-1),[c,d]=(0,n.useState)(i?i.current:null),u=i||(0,n.useRef)(),{translator:h}=(0,n.useContext)(hd),g=h.get("Selection.ClearAllStates"),p=()=>{l(-1),o()};let m=null;i||(m=n.createElement(n.Fragment,null,n.createElement(Ar,{item:!0,xs:!0,zeroMinWidth:!0},n.createElement(Gv,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length},n.createElement(zr,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},e.name))),n.createElement(Ar,{item:!0},n.createElement("div",{style:{width:"12px"}})),n.createElement(Ar,{item:!0},n.createElement(Sr,{size:"large"},n.createElement(Zv,null)))));const f=n.createElement(Es,{dense:!0},n.createElement(js,{title:g,onClick:()=>{e.states.forEach((n=>t.clearField(e.name,n)))}},n.createElement(Wl,{variant:"contained",fullWidth:!0},g)),e.states.map(((i,o)=>n.createElement(js,{key:o,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),l(t)})(e,o)},n.createElement(Hi,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},n.createElement(Wv,{field:e,api:t,stateIx:o,skipHandleShowListBoxPopover:!0})))))),v=n.createElement(eh,{open:r,onClose:()=>{s(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},f),_=i?v:n.createElement(Yv,{container:!0,gap:0,className:Qv.item,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),u.current=e.currentTarget,s(!r))}},m,r&&v,a>-1&&n.createElement(Bv,{alignTo:u,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}));return i&&a>-1?n.createElement(Bv,{alignTo:u,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}):_}const Jv="More",e_={item:`${Jv}-item`,badge:`${Jv}-badge`},t_=(0,xt.ZP)(Ar)((({theme:e})=>({[`&.${e_.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${e_.badge}`]:{padding:e.spacing(0,1)}})));function n_({items:e=[],api:t}){const i=Yt(),[o,r]=(0,n.useState)(!1),[s,a]=(0,n.useState)(-1),[l,c]=(0,n.useState)(null),d=(0,n.useRef)(),u=()=>{a(-1)};let h=null;return s>-1&&(h=e[s].states.length>1?n.createElement(Xv,{field:e[s],api:t,moreAlignTo:d,onClose:u}):n.createElement(Wv,{field:e[s],api:t,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:u})),n.createElement(t_,{container:!0,gap:0,className:e_.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),d.current=e.currentTarget,r(!o))}},n.createElement(Ar,{item:!0},n.createElement(Hi,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},n.createElement(zr,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",e.length))),n.createElement(Ar,{item:!0},n.createElement(Sr,{size:"large"},n.createElement(Zv,null))),o&&n.createElement(eh,{open:o,onClose:()=>{r(!1)},anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},n.createElement(Es,{dense:!0},e.map(((e,i)=>n.createElement(js,{key:i,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),r(!1),a(t)})(e,i)},n.createElement(Hi,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?n.createElement(Xv,{field:e,api:t}):n.createElement(Wv,{field:e,api:t}))))))),h)}const i_=120,o_=72;function r_(e,t,n="$"){e.qSelections.forEach((e=>{const i=e.qField,o=t[i]=t[i]||{name:i,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))}))}function s_({api:e,app:t}){const i=Yt(),[o]=zd(t),[r]=Ud(o),[s,a]=(0,n.useState)({items:[],more:[]}),[l]=Cd(),[c,d]=Kd(),[u,h]=(0,n.useState)(0);return(0,n.useEffect)((()=>{if(!d)return;const{width:e}=d,t=Math.floor(e)-o_,n=Math.floor(t/i_);h(n)}),[d]),(0,n.useEffect)((()=>{if(!(t&&o&&r&&u))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&r_(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>r_(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(r);a((n=>{const i=e;if((()=>{const e=l.get(t.id);return e&&"njsListbox"===e.genericType})()&&i.length+1===n.items.length){const e=n.items.filter((e=>!1===i.some((t=>e.name===t.name))))[0],{qField:t}=e.selections[0];e.selections=[{qField:t}];const o=n.items.indexOf(e);i.splice(o,0,e)}let o=[];return u<i.length&&(o=i.splice(u-i.length)),{items:i,more:o}}))}),[t,o,r,e.isInModal(),u]),n.createElement(Ar,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},s.items.map((t=>n.createElement(Ar,{item:!0,key:`${t.states.join("::")}::${t.name}`,style:{position:"relative",maxWidth:"240px",minWidth:`${i_}px`,background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},t.states.length>1?n.createElement(Xv,{field:t,api:e}):n.createElement(Wv,{field:t,api:e})))),s.more.length>0&&n.createElement(Ar,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:`${o_}px`,background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},n.createElement(n_,{items:s.more,api:e})))}const a_=e=>Cs((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)),l_=e=>Cs((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)),c_=(e,t,n)=>{const i=[...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(i)}],!0)};function d_({api:e,app:t}){const{translator:i}=(0,n.useContext)(hd),[o]=function(e){const[t]=zd(e),[i]=Ud(t),[o]=$d(e),[r,s]=(0,n.useState)(null);return(0,n.useEffect)((()=>{o&&t&&i&&c_(t,i,o)}),[o,t,i]),(0,n.useEffect)((()=>{if(!i)return;let e=!1,t=!1,n=!1;[i,...i.alternateStates||[]].forEach((i=>{e=e||i.qSelectionObject&&i.qSelectionObject.qBackCount>0,t=t||i.qSelectionObject&&i.qSelectionObject.qForwardCount>0,n=n||(i.qSelectionObject&&i.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),s({canGoBack:e,canGoForward:t,canClear:n})}),[i]),[r,t,i]}(t);return n.createElement(Ar,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},n.createElement(Ar,{item:!0},n.createElement(Sr,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:i.get("Navigate.Back"),onClick:()=>e.back(),size:"large"},n.createElement(a_,null))),n.createElement(Ar,{item:!0},n.createElement(Sr,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:i.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large"},n.createElement(l_,null))),n.createElement(Ar,{item:!0},n.createElement(Sr,{disabled:!o||!o.canClear,title:i.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large"},n.createElement(Vf,null))))}const u_=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function h_([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function g_(){return u_.map(h_).join("")}function p_({app:e}){const t=Yt(),[i]=wd(e);return i?n.createElement(Ar,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:t.palette.background.paper,minHeight:"40px"}},n.createElement(Ar,{item:!0,style:{borderRight:`1px solid ${t.palette.divider}`}},n.createElement(d_,{api:i,app:e})),n.createElement(Ar,{item:!0,xs:!0,style:{backgroundColor:t.palette.background.darker,overflow:"hidden"}},n.createElement(s_,{api:i,app:e}))):null}var m_,f_="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==s.g?s.g:{};let v_;v_="undefined"!=typeof window?window:"undefined"!=typeof self?self:f_;let __=null,b_=null;const C_=v_.clearTimeout,y_=v_.setTimeout,w_=v_.cancelAnimationFrame||v_.mozCancelAnimationFrame||v_.webkitCancelAnimationFrame,S_=v_.requestAnimationFrame||v_.mozRequestAnimationFrame||v_.webkitRequestAnimationFrame;function x_(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}null==w_||null==S_?(__=C_,b_=function(e){return y_(e,20)}):(__=function([e,t]){w_(e),C_(t)},b_=function(e){const t=S_((function(){C_(n),e()})),n=y_((function(){w_(t),e()}),20);return[t,n]}),m_={createDetectElementResize:function(e){let t,n,i,o,r,s,a;const l="undefined"!=typeof document&&document.attachEvent;if(!l){s=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,i=t.lastElementChild,o=n.firstElementChild;i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},r=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},a=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;s(this),this.__resizeRAF__&&__(this.__resizeRAF__),this.__resizeRAF__=b_((function(){r(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";i="animationstart";const c="Webkit Moz O ms".split(" ");let d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),u="";{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"]){u=c[n],l="-"+u.toLowerCase()+"-",i=d[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(r,c){if(l)r.attachEvent("onresize",c);else{if(!r.__resizeTriggers__){const l=r.ownerDocument,c=v_.getComputedStyle(r);c&&"static"===c.position&&(r.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const i=(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%; }',r=n.head||n.getElementsByTagName("head")[0],s=n.createElement("style");s.id="detectElementResize",s.type="text/css",null!=e&&s.setAttribute("nonce",e),s.styleSheet?s.styleSheet.cssText=i:s.appendChild(n.createTextNode(i)),r.appendChild(s)}}(l),r.__resizeLast__={},r.__resizeListeners__=[],(r.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const d=l.createElement("div");d.className="expand-trigger",d.appendChild(l.createElement("div"));const u=l.createElement("div");u.className="contract-trigger",r.__resizeTriggers__.appendChild(d),r.__resizeTriggers__.appendChild(u),r.appendChild(r.__resizeTriggers__),s(r),r.addEventListener("scroll",a,!0),i&&(r.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&s(r)},r.__resizeTriggers__.addEventListener(i,r.__resizeTriggers__.__animationListener__))}r.__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",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(i,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}};class L_ extends n.Component{constructor(...e){super(...e),x_(this,"state",{height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0}),x_(this,"_autoSizer",null),x_(this,"_detectElementResize",null),x_(this,"_parentNode",null),x_(this,"_resizeObserver",null),x_(this,"_onResize",(()=>{const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){var i,o,r,s;const a=window.getComputedStyle(this._parentNode)||{},l=parseInt(null!==(i=a.paddingLeft)&&void 0!==i?i:"0",10),c=parseInt(null!==(o=a.paddingRight)&&void 0!==o?o:"0",10),d=parseInt(null!==(r=a.paddingTop)&&void 0!==r?r:"0",10),u=parseInt(null!==(s=a.paddingBottom)&&void 0!==s?s:"0",10),h=this._parentNode.getBoundingClientRect(),g=h.height-d-u,p=h.width-l-c,m=this._parentNode.offsetHeight-d-u,f=this._parentNode.offsetWidth-l-c;(e||this.state.height===m&&this.state.scaledHeight===g)&&(t||this.state.width===f&&this.state.scaledWidth===p)||(this.setState({height:m,width:f,scaledHeight:g,scaledWidth:p}),"function"==typeof n&&n({height:m,scaledHeight:g,scaledWidth:p,width:f}))}})),x_(this,"_setRef",(e=>{this._autoSizer=e}))}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,null!=this._parentNode&&("undefined"!=typeof ResizeObserver?(this._resizeObserver=new ResizeObserver((()=>{setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=(0,m_.createDetectElementResize)(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:e,defaultHeight:t,defaultWidth:i,disableHeight:o,disableWidth:r,nonce:s,onResize:a,style:l,tagName:c="div",...d}=this.props,{height:u,scaledHeight:h,scaledWidth:g,width:p}=this.state,m={overflow:"visible"},f={};let v=!1;return o||(0===u&&(v=!0),m.height=0,f.height=u,f.scaledHeight=h),r||(0===p&&(v=!0),m.width=0,f.width=p,f.scaledWidth=g),(0,n.createElement)(c,{ref:this._setRef,style:{...m,...l},...d},!v&&e(f))}}x_(L_,"defaultProps",{onResize:()=>{},disableHeight:!1,disableWidth:!1,style:{}});var k_=L_;const E_=e=>Cs((e=>({...e,shapes:[{type:"path",attrs:{d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"}}]}))(e));function N_(e){e?.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function D_(e){return e?.closest(".njs-cell")||e?.closest(".qv-gridcell")}function I_({keyboard:e,hovering:t,updateKeyScroll:n,containerRef:i,currentScrollIndex:o,isModal:r,constraints:s}){return{handleKeyDown:t=>{const{keyCode:n,shiftKey:o=!1}=t.nativeEvent,s=()=>{t.stopPropagation(),t.preventDefault()};if(!e.enabled)return;const a=t.currentTarget.closest(".listbox-container"),l=r();switch(n){case Wg.TAB:if(l)o?Hg(a)||zg(a):zg(a)||Hg(a);else{if(!o)break;e.blur(!0)}s();break;case Wg.ENTER:case Wg.SPACE:if(!t.target.classList.contains("listbox-container"))break;e.focus(),s();break;case Wg.ESCAPE:(t=>{const{currentTarget:n,target:o}=t,r=o.classList.contains("listbox-container"),s=D_(n.closest(".listbox-container")),a=1===s?.querySelectorAll(".listbox-container").length;if(r||a)e.blur(!0);else{N_(i.current),n.classList.add("last-focused"),e.blur();const t=n.closest(".listbox-container");t.setAttribute("tabIndex",-1),t?.focus()}})(t)}},handleOnMouseEnter:()=>{(()=>{const e=s?.select||s?.active,t=r();return e||t})()||(t.current=!0)},handleOnMouseLeave:()=>{t.current&&(t.current=!1)},globalKeyDown:e=>{if(!t.current)return;const{keyCode:i,ctrlKey:r=!1,shiftKey:s=!1}=e;switch(i){case Wg.ARROW_UP:n({up:1});break;case Wg.ARROW_DOWN:n({down:1});break;case Wg.PAGE_UP:n({up:o.stop-o.start});break;case Wg.PAGE_DOWN:n({down:o.stop-o.start});break;case Wg.HOME:n({scrollPosition:r&&s?"overflowStart":"start"});break;case Wg.END:n({scrollPosition:r&&s?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const R_=(0,xt.ZP)("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function T_({text:e}){const{translator:t}=(0,n.useContext)(hd);return n.createElement(R_,null,t.get(e))}function O_(){return O_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},O_.apply(this,arguments)}const q_="ListBoxInline",A_={listBoxHeader:`${q_}-listBoxHeader`,screenReaderOnly:`${q_}-screenReaderOnly`,listboxWrapper:`${q_}-listboxWrapper`},M_=(0,xt.ZP)(Ar,{shouldForwardProp:e=>!["containerPadding","isGridMode"].includes(e)})((({theme:e,containerPadding:t,isGridMode:n})=>({backgroundColor:e.listBox?.backgroundColor??e.palette.background.default,[`& .${A_.listBoxHeader}`]:{alignSelf:"center",display:"flex"},[`& .${A_.screenReaderOnly}`]:{position:"absolute",height:0,width:0,overflow:"hidden"},[`& .${A_.listboxWrapper}`]:{padding:t},"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus ::-webkit-scrollbar-track":{boxShadow:n?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}}))),P_=(0,xt.ZP)(zr)((({theme:e})=>({color:e.listBox?.title?.main?.color,fontSize:e.listBox?.title?.main?.fontSize,fontFamily:e.listBox?.title?.main?.fontFamily,fontWeight:e.listBox?.title?.main?.fontWeight||"bold"})));function F_({options:e,layout:t}){const{app:i,direction:o,frequencyMode:r,checkboxes:s,search:a=!0,focusSearch:l=!1,rangeSelect:c=!0,model:d,selections:u,update:h,fetchStart:g,selectDisabled:p=(()=>!1),postProcessPages:m,calculatePagesHeight:f,showGray:v=!0,scrollState:_,renderedCallback:b,toolbar:C=!0,isPopover:y=!1}=e,w=Yt(),S=(0,n.useCallback)((()=>{d.unlock("/qListObjectDef")}),[d]),{translator:x,keyboardNavigation:L,themeApi:k,constraints:E}=(0,n.useContext)(hd);w.listBox=(e=>{const t=(t,n)=>e.getStyle("object.listBox",t,n);return{backgroundColor:t("","backgroundColor"),title:{main:{color:t("title.main","color"),fontSize:t("title.main","fontSize"),fontFamily:t("title.main","fontFamily"),fontWeight:t("title.main","fontWeight")}},content:{color:t("content","color"),fontSize:t("content","fontSize"),fontFamily:t("content","fontFamily")}}})(k);const N=function({appLayout:e}){return!!e?.qIsDirectQueryMode}({appLayout:i?.layout}),D=(0,n.useRef)(),[I,R]=Kd(),[T,O]=(()=>{const[e,t]=(0,n.useState)({}),i=(0,n.useCallback)((e=>{t({current:e})}),[t]);return[e,i]})(),[q,A]=(0,n.useState)(!1),[M,P]=(0,n.useState)(!1),F=(0,n.useRef)(!1),[B,W]=(0,n.useState)({down:0,up:0,scrollPosition:""}),V=e=>W((t=>({...t,...e}))),[z,H]=(0,n.useState)({start:0,stop:0}),[j]=wd(i),U=(0,n.useRef)(null),[$]=(0,n.useState)((()=>Pv())),K=function({containerRef:e,enabled:t}){const[i,o]=(0,n.useState)(!1);return{enabled:t,active:i,innerTabStops:!t||i,blur(n){if(!t)return;o(!1);const i=D_(e.current)||e.current?.parentElement;var r;r=e.current,r?.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),N_(e.current),n&&i&&(i.setAttribute("tabIndex",0),i.focus())},focus(){if(!t)return;o(!0);const n=e.current,i=n?.querySelector(".search input"),r=n?.querySelector(".value.last-focused"),s=n?.querySelector(".value.selector, .value"),a=n?.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),l=i||r||s||a;l?.setAttribute("tabIndex",0),l?.focus()},focusSelection(){const e=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm");e?.setAttribute("tabIndex",0),e?.focus()}}}({containerRef:D,enabled:L}),G=(0,n.useCallback)((()=>(({app:e,appSelections:t})=>e.isInModalSelection?.()??t.isInModal())({app:i,appSelections:j})),[i,j]),Z=t?.qListObject.qDimensionInfo.qError,Q=Z&&E.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[Y,X]=(0,n.useState)(!1),{handleKeyDown:J,handleOnMouseEnter:ee,handleOnMouseLeave:te,globalKeyDown:ne}=(0,n.useMemo)((()=>I_({keyboard:K,hovering:F,updateKeyScroll:V,containerRef:D,currentScrollIndex:z,app:i,appSelections:j,constraints:E,isModal:G})),[K,F,V,D,z,i,j,E,G]),ie=C&&(""===t?.title||!1===t?.showTitle)&&!y,oe=C&&""!==t?.title&&!1!==t?.showTitle||y;(0,n.useEffect)((()=>(document.addEventListener("keydown",ne),()=>{document.removeEventListener("keydown",ne)})),[ne]),(0,n.useEffect)((()=>{const e=()=>{A(!0)},t=()=>{A(!1),"toggle"===a&&P(!1)};return y&&(u.isActive()||(u.begin("/qListObjectDef"),u.on("activated",e),u.on("deactivated",t)),A(y)),u&&(u.isModal()||(u.on("activated",e),u.on("deactivated",t)),A(u.isActive())),()=>{u&&u.removeListener&&(u.removeListener("activated",e),u.removeListener("deactivated",t))}}),[u,y]),(0,n.useEffect)((()=>{if(T&&T.current&&(a&&l||"toggle"===a&&M)){const e=T.current.querySelector("input");e&&e.focus()}}),[T&&T.current,M,a,l]);const{wildCardSearch:re,searchEnabled:se,layoutOptions:ae={}}=t??{},le=!1!==se&&"toggle"===a,ce=!0===t?.qListObject?.qDimensionInfo?.qLocked,de=ce||le,ue="H"===t?.qListObject?.qDimensionInfo?.qGrouping,he=de||ue,ge=(de?28:0)+(ue?19:0);if((0,n.useEffect)((()=>{if(!U.current||!R)return;const e=function({containerRect:e,titleRef:t,iconsWidth:n}){return!!(e.width<(t?.current?.clientWidth??0)+n+16+128||t?.current?.scrollWidth>t?.current?.offsetWidth)}({containerRect:R,titleRef:U,iconsWidth:ge});X(e)}),[U.current,R]),!d||!t||!x)return null;const pe="rtl"===o,me=kf({layout:t,model:d,translator:x,selectionState:$,isDirectQuery:N}),fe=(!0===a||"toggle"===a&&M)&&!p()&&!1!==se,ve=ae.dense??!1,_e=oe?49+(fe?ve?27:40:0)+(ve?39:49):0,be=()=>{P(!M)},Ce=()=>{if("toggle"===a)be();else{const e=T.current.querySelector("input");e?.focus()}},ye=e=>function({isDetached:e,showToolbar:t,containerRef:n,isLocked:i,listboxSelectionToolbarItems:o,selections:r,keyboard:s}){return{show:t&&!e,popover:{show:t&&e,anchorEl:n.current},more:{enabled:!i,actions:o,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:t,api:r,onConfirm:()=>{s?.focus()},onCancel:()=>{s?.focus()}}}}({isDetached:!y&&e,showToolbar:q,containerRef:D,isLocked:ce,listboxSelectionToolbarItems:me,selections:u,keyboard:K}),we=fe&&"toggle"===a,Se=fh-(de?7:0),xe=pe?fh-(he?7:0):0,Le="grid"===ae?.dataLayout;let ke;Le&&(ke="row"===ae.layoutOrder?"2px 4px":"2px 6px 2px 4px");const Ee=E?.active?n.createElement(Ev,{title:x.get("Listbox.Search"),size:"large",style:{fontSize:"12px",padding:"7px"}}):n.createElement(Sr,{onClick:be,tabIndex:-1,title:x.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},n.createElement(Ev,{style:{fontSize:"12px"}})),Ne=p()?n.createElement(Gd,{size:"large",style:{fontSize:"12px",padding:"7px"}}):n.createElement(Sr,{title:x.get("SelectionToolbar.ClickToUnlock"),tabIndex:-1,onClick:S,size:"large"},n.createElement(Gd,{disableRipple:!0,style:{fontSize:"12px"}}));return n.createElement(n.Fragment,null,ie&&n.createElement(bv,O_({direction:o},ye(!0))),n.createElement(M_,{className:"listbox-container",container:!0,tabIndex:K.enabled?-1:void 0,direction:"column",gap:0,containerPadding:ke,style:{height:"100%",minHeight:`${_e}px`,flexFlow:"column nowrap"},onKeyDown:J,onMouseEnter:ee,onMouseLeave:te,ref:e=>{D.current=e,I(e)},isGridMode:Le},oe&&n.createElement(Ar,{item:!0,container:!0,minHeight:32,flexDirection:pe?"row-reverse":"row",marginY:1,paddingLeft:`${Se}px`,paddingRight:`${xe}px`,wrap:"nowrap"},he&&n.createElement(Ar,{item:!0,container:!0,alignItems:"center",width:ge},ce?Ne:le&&Ee,ue&&n.createElement(E_,{tabIndex:-1,title:x.get("Listbox.DrillDown"),size:"large",style:{fontSize:"12px"}})),n.createElement(Ar,{item:!0,xs:!0,minWidth:0,justifyContent:pe?"flex-end":"flex-start",className:A_.listBoxHeader},n.createElement(P_,{variant:"h6",noWrap:!0,ref:U,title:t.title},t.title)),n.createElement(Ar,{item:!0},n.createElement(bv,O_({direction:o},ye(Y))))),n.createElement(Ar,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:"50px"},role:"region","aria-label":x.get("Listbox.ResultFilterLabel")},n.createElement(Ar,{item:!0,ref:O},n.createElement("div",{className:A_.screenReaderOnly},x.get("Listbox.Search.ScreenReaderInstructions")),n.createElement(Tv,{selections:u,selectionState:$,model:d,dense:ve,keyboard:K,visible:fe,search:a,autoFocus:we,wildCardSearch:re,searchEnabled:se,direction:o,hide:le&&be})),n.createElement(Ar,{item:!0,xs:!0,className:A_.listboxWrapper},n.createElement("div",{className:A_.screenReaderOnly},x.get("Listbox.ScreenReaderInstructions")),Z?n.createElement(T_,{text:Q}):n.createElement(k_,null,(({height:e,width:a})=>n.createElement(yf,{model:d,app:i,constraints:E,layout:t,selections:u,selectionState:$,direction:o,frequencyMode:r,rangeSelect:c,checkboxes:s,height:e,width:a,update:h,fetchStart:g,postProcessPages:m,calculatePagesHeight:f,selectDisabled:p,keyboard:K,showGray:v,scrollState:_,keyScroll:{state:B,reset:()=>W({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:z,set:H},renderedCallback:b,onCtrlF:Ce,isModal:G})))))))}const B_=n.memo(F_),W_=function({options:e={}}){const{model:t}=e,[i]=Ud(t);return n.createElement(B_,{options:e,layout:i})},V_={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""},z_=(e={})=>{const{__DO_NOT_USE__:t={},...n}=e;return{...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,...t}};function H_({app:e,fieldIdentifier:t,qId:i,stateName:o,element:r,options:s,renderedCallback:a}){const{isExistingObject:l,hasExternalSelectionsApi:c}=function({qId:e,options:t}){return{isExistingObject:!(!e&&!t.sessionModel),hasExternalSelectionsApi:!!t.selectionsApi}}({qId:i,options:s}),[d,u]=(0,n.useState)(0);(0,n.useEffect)((()=>{if(d)throw new Error("Source or selection Api can not change after a listbox has been mounted");u(d+1)}),[l,c]);const h=l?function({app:e,qId:t,options:i={}}){const[o,r]=(0,n.useState)(),[s]=Fd(),{sessionModel:a}=i,l=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(i).filter((e=>l.includes(e)));if(c.length)throw new Error(`Option "${c.join(", ")}" is not applicable for existing objects.`);return(0,n.useEffect)((()=>{a?r(a):async function(){const n=s.get(t);if(n)r(n);else{const n=await e.getObject(t);s.set(n.id,n),n.once("closed",(()=>{s.clear(n.id)})),r(n)}}()}),[]),o}({app:e,qId:i,options:s}):function({app:e,fieldIdentifier:t,stateName:i,options:o={}}){const[r,s]=(0,n.useState)(""),[a,l]=(0,n.useState)(!0),[c,d]=(0,n.useState)(),[u,h]=(0,n.useState)(),g=o.title??u;(0,n.useEffect)((()=>{const n=o.histogram||"N"!==o.frequencyMode;t.qLibraryId&&n?async function(){try{const n=await e.getDimension(t.qLibraryId),i=await n.getLayout();h(i.qDim.title),"N"===i.qDim.qGrouping?s(i.qDim.qFieldDefs?i.qDim.qFieldDefs[0]:""):s({multiFieldDim:!0}),l(!1)}catch(e){throw l(!1),s({failedToFetchFieldDef:!0}),new Error(`Disabling frequency count and histogram: ${e&&e.message}`)}}():(l(!1),h(t))}),[]);const{dense:p,checkboxes:m,listLayout:f,properties:v={}}=o;let{frequencyMode:_,histogram:b=!1}=o;switch(r&&r.failedToFetchFieldDef&&(b=!1,_="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(_):_="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(_):_="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(_):_="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(_):_="R";break;default:_="N"}const C={dense:p};"horizontal"===f&&(C.dataLayout="grid",C.layoutOrder="column",C.maxVisibleColumns={auto:!0},C.maxVisibleRows={auto:!1,maxRows:1});const y=(0,n.useRef)();y.current||(y.current=g_());const w=Qc()(!0,{},V_,{qInfo:{qId:y.current},qListObjectDef:{qStateName:i,qFrequencyMode:b&&"N"===_?"V":_},histogram:b,checkboxes:m,layoutOptions:C,title:g});let S;if(Qc()(!0,w,v),t.qLibraryId?(w.qListObjectDef.qLibraryId=t.qLibraryId,S=t.qLibraryId):(w.qListObjectDef.qDef.qFieldDefs=[t],S=t),"P"!==_&&b)if(r?.multiFieldDim)w.frequencyMax="fetch";else{const e=t.qLibraryId?r:S;w.frequencyMax={qValueExpression:vf(e)}}const[x]=Wd(w,a?null:e,S,i);return(0,n.useEffect)((()=>{x&&d(x)}),[x]),c}({app:e,fieldIdentifier:t,stateName:o,options:s}),g=(0,n.useRef)(r),p=c?s.selectionsApi:Mv(e,h,[g,".njs-action-toolbar-more",".njs-action-toolbar-popover"],s)[0],m=(0,n.useMemo)((()=>({...s,selections:p,model:h,app:e,renderedCallback:a})),[s,p,h,e]);return p&&h?n.createElement(W_,{options:m}):null}const j_={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function U_({app:e,fieldIdentifier:t,stateName:i,element:o,options:r={}}){const[s,a]=(0,n.useState)(!!r.show);return n.createElement(Bv,{show:s,app:e,alignTo:{current:o},anchorOrigin:r.anchorOrigin,transformOrigin:r.transformOrigin,close:()=>{a(!1),r.onPopoverClose&&r.onPopoverClose()},fieldName:t,stateName:i,autoFocus:r.autoFocus})}function $_(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function K_(e,t){let n=0;for(let i=0;i<e.length;++i)e[i]>t?--e[i]:e[i]===t&&(n=i);return e.splice(n,1),n}const G_=e=>({qDef:{qFieldDefs:[e]}}),Z_=e=>({qDef:{qDef:e}});function Q_({dc:e,def:t,properties:n}){e.qDimensions=e.qDimensions||[],e.qMeasures=e.qMeasures||[],e.qInterColumnSortOrder=e.qInterColumnSortOrder||[],e.qInitialDataFetch=e.qInitialDataFetch||[],e.qColumnOrder=e.qColumnOrder||[],e.qExpansionState=e.qExpansionState||[];const i=n,o={dimensions:()=>e.qDimensions,measures:()=>e.qMeasures,addDimension(n){const r="string"==typeof n?G_(n):{...n,qDef:n.qDef||{}};return r.qDef.cId=r.qDef.cId||g_(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],e.qDimensions.length<o.maxDimensions()?(e.qDimensions.push(r),$_(e.qInterColumnSortOrder,e.qDimensions.length-1),t.dimensions.added(r,i)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qDimensions.push(r)),r},removeDimension(n){const o=e.qDimensions.splice(n,1)[0];return K_(e.qInterColumnSortOrder,n),t.dimensions.removed(o,i,n),o},addMeasure(n){const r="string"==typeof n?Z_(n):{...n,qDef:n.qDef||{}};r.qDef.cId=r.qDef.cId||g_(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],e.qMeasures.length<o.maxMeasures()?(e.qMeasures.push(r),$_(e.qInterColumnSortOrder,e.qDimensions.length+e.qMeasures.length-1),t.measures.added(r,i)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qMeasures.push(r))},removeMeasure(n){const o=e.qMeasures.splice(n,1)[0];K_(e.qInterColumnSortOrder,e.qDimensions.length+n),t.measures.removed(o,i,n)},maxDimensions:()=>t.dimensions.max(e.qMeasures.length),maxMeasures:()=>t.measures.max(e.qDimensions.length),canAddDimension:()=>e.qDimensions.length<o.maxDimensions(),canAddMeasure:()=>e.qMeasures.length<o.maxMeasures()};return o}const Y_=e=>({qDef:{qFieldDefs:[e]}});function X_({dc:e,def:t,properties:n}){e.qInitialDataFetch=e.qInitialDataFetch||[];const i=n,o={dimensions:()=>e.qLibraryId||e.qDef&&e.qDef.qFieldDefs&&0!==e.qDef.qFieldDefs.length?[e]:[],measures:()=>[],addDimension(n){const o="string"==typeof n?Y_(n):{...n,qDef:n.qDef||{}};return o.qDef.cId=o.qDef.cId||g_(),o.qDef.qSortCriterias=e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(o).forEach((t=>{e[t]=o[t]})),t.dimensions.added(o,i),o},removeDimension(n){const o=e;return delete e.qDef,delete e.qLibraryId,t.dimensions.removed(o,i,n),o},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===o.dimensions().length,canAddMeasure:()=>!1};return o}const J_=e=>{let t;var n;return t="string"==typeof e?Qc()(!0,{},V_,{qListObjectDef:(n=e,{qDef:{qFieldDefs:[n]}})}):e.qListObjectDef?Qc()(!0,{},V_,e):Qc()(!0,{},V_,{qListObjectDef:e}),t};function eb({children:e,halo:t}){return{async addDimension(n){const i=J_(n),o=i.qListObjectDef;if(o.qDef.cId=o.qDef.cId||g_(),!i.title)if(o.qLibraryId){const e=await t.app.getDimension(o.qLibraryId),n=await e.getProperties();n.qDim.qLabelExpression?i.title={qStringExpression:{qExpr:n.qDim.qLabelExpression}}:i.title=n.qDim.title}else i.title=o.qDef.title||o.qDef.qFieldLabels?.[0]||o.qDef.qFieldDefs?.[0];e.push({qProperty:i,qChildren:[]})},addMeasure(){}}}function tb(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 nb({sn:e,properties:t,fields:n,children:i},o){if(!n.length)return;const r=e.qae.data.targets[0];if(!r)return void console.warn("Attempting to add fields to an object without a specified data target");const{propertyPath:s}=r,a=s.split("/");let l=t;for(let e=0;e<a.length;e++){const t=a[e];l=t?l[t]:l}const c=function(e){return e.match("/qListObjectDef")?X_:e.match("/qChildListDef")?eb:Q_}(s),d=c({dc:l,def:r,properties:t,children:i,halo:o});for(let e=0;e<n.length;++e){const t=n[e];"measure"===tb(t)?await d.addMeasure(t):await d.addDimension(t)}}const ib={getValue:(e,t,n)=>{if(null==e||null==t)return n;const i=t.split(".");let o=e;for(let e=0;e<i.length;++e){const t=i[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 i=t.split("."),o=i[i.length-1];let r=e;for(let e=0;e<i.length-1;++e){const t=i[e];void 0!==r[t]&&null!==r[t]||(r[t]=Number.isNaN(+i[e+1])?{}:[]),r=r[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?r[o]=n:delete r[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object},ob=function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let i=0;i<t.length;i++){const o=e.indexOf(t[i]);if(n>o)return!1;n=o}return!0}return!1},rb=function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},sb=function(e,t){let n,i=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(i=n);return e.splice(i,1),i},ab=2**53-1;function lb(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function cb(e,t){const n=Qc()(!0,{},t,e);return ib.getValue(n,"qOtherTotalSpec.qOtherCounted")||ib.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),ib.getValue(n,"qOtherTotalSpec.qOtherLimit")||ib.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function db(e,t){return Qc()(!0,{},t,e)}function ub(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}const hb={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===ib.getValue(e,t)&&ib.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:lb,importCommonProperties:function(e,t,n){const i="masterobject"===ib.getValue(t,"properties.qInfo.qType")?"masterobject":ib.getValue(n,"qInfo.qType");ib.setValue(e,"qInfo.qType",i),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,i){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=i},createDefaultDimension:cb,createDefaultMeasure:db,resolveValue:ub,getHypercubePath:function(e){const t=ib.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({exportFormat:e,newHyperCubeDef:t}){const n=e.data[0],i=t.qDimensions.length+t.qMeasures.length;t.qInterColumnSortOrder=n.interColumnSortOrder.concat();let o=t.qInterColumnSortOrder.length;if(o!==i)for(t.qLayoutExclude&&(t.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());o!==i;)o<i?(rb(t.qInterColumnSortOrder,o),++o):(--o,sb(t.qInterColumnSortOrder,o))},createNewProperties:function({exportFormat:e,initialProperties:t,hypercubePath:n}){let i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(e.properties).forEach((o=>{"qLayoutExclude"===o?e.properties[o].quarantine&&(i.qLayoutExclude.quarantine=Qc()(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&n?ib.setValue(i,`${n}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||lb(o)?i[o]=e.properties[o]:i.qLayoutExclude.disabled[o]=e.properties[o]})),i=Qc()(!0,{},t,i),null===i.components&&(i.components=[]),i},getMaxMinDimensionMeasure:function({exportFormat:e,dataDefinition:t={}}){const n=e.data[0],i=t.dimensions||{max:0},o=t.measures||{max:0},r=ub(o.max,n.dimensions.length,ab),s=ub(o.min,n.dimensions.length,0);return{maxDimensions:ub(i.max,r,ab),minDimensions:ub(i.min,s,0),maxMeasures:r,minMeasures:s}},shouldInitLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o}){const r=e.data[0];return r.dimensions.length>t&&t>0||r.measures.length>i&&i>0||r.excludedDimensions.length>0&&r.dimensions.length+r.excludedDimensions.length>n||r.excludedMeasures.length>0&&r.measures.length+r.excludedMeasures.length>o||!i&&r.measures.length>0||!t&&r.dimensions.length>0},initLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o,newHyperCubeDef:r}){const s=e.data[0];r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.qHyperCubeDef||(r.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>t&&t>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!t&&s.dimensions.length&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function({exportFormat:e,maxDimensions:t,minDimensions:n,newHyperCubeDef:i,defaultDimension:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.dimensions.length;++s)i.qDimensions.length<t?i.qDimensions.push(cb(r.dimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(cb(r.dimensions[s],o));else if(r.dimensions.length)for(s=0;s<r.dimensions.length;++s)i.qLayoutExclude.qHyperCubeDef.qDimensions.push(cb(r.dimensions[s],o));if(r.excludedDimensions.length)for(s=0;s<r.excludedDimensions.length;++s)i.qDimensions.length<n?i.qDimensions.push(cb(r.excludedDimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(cb(r.excludedDimensions[s],o))},addDefaultMeasures:function({exportFormat:e,maxMeasures:t,minMeasures:n,newHyperCubeDef:i,defaultMeasure:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.measures.length;++s)i.qMeasures.length<t?i.qMeasures.push(db(r.measures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(db(r.measures[s],o));else if(r.measures.length)for(s=0;s<r.measures.length;++s)i.qLayoutExclude.qHyperCubeDef.qMeasures.push(db(r.measures[s],o));if(r.excludedMeasures.length)for(s=0;s<r.excludedMeasures.length;++s)i.qMeasures.length<n?i.qMeasures.push(db(r.excludedMeasures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(db(r.excludedMeasures[s],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.dimensions&&"function"==typeof t.dimensions.added){const i=ib.getValue(e,n||"").qHyperCubeDef,o=[...i.qDimensions];i.qDimensions=[],o.forEach((n=>{i.qDimensions.push(n),t.dimensions.added(n,e)}))}},updateMeasuresOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.measures&&"function"==typeof t.measures.added){const i=ib.getValue(e,n||"").qHyperCubeDef,o=[...i.qMeasures];i.qMeasures=[],o.forEach((n=>{i.qMeasures.push(n),t.measures.added(n,e)}))}}},gb={exportProperties:e=>function({propertyTree:e,hypercubePath:t}){const n=function(e=1){const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),i=e.qProperty,o=ib.getValue(i,t||""),r=o.qHyperCubeDef,s=n.data[0];if(r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),s.dimensions.push(...r.qDimensions),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qDimensions&&s.excludedDimensions.push(...r.qLayoutExclude.qHyperCubeDef.qDimensions),s.measures.push(...r.qMeasures),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qMeasures&&s.excludedMeasures.push(...r.qLayoutExclude.qHyperCubeDef.qMeasures),s.interColumnSortOrder=r.qInterColumnSortOrder.concat(),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();ob(e,s.interColumnSortOrder)&&(s.interColumnSortOrder=e)}return delete r.qLayoutExclude,Object.keys(i).forEach((e=>{n.properties[e]=i[e]})),t&&(n.properties.qHyperCubeDef=o.qHyperCubeDef,delete o.qHyperCubeDef),i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.disabled&&(Object.keys(i.qLayoutExclude.disabled).forEach((e=>{n.properties.hasOwnProperty(e)||(n.properties[e]=i.qLayoutExclude.disabled[e])})),delete i.qLayoutExclude.disabled),i.qLayoutExclude.changed&&(hb.restoreChangedProperties(i),delete i.qLayoutExclude.changed),i.qLayoutExclude.quarantine&&!ib.isEmpty(i.qLayoutExclude.quarantine)||delete i.qLayoutExclude,n}(e),importProperties:e=>function({exportFormat:e,initialProperties:t={},dataDefinition:n={},defaultPropertyValues:i={},hypercubePath:o}){const r={qChildren:[]},s=hb.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),a=ib.getValue(t,o||"").qHyperCubeDef,l=ib.getValue(s,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h}=hb.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:n}),{defaultDimension:g=hb.getDefaultDimension(),defaultMeasure:p=hb.getDefaultMeasure()}=i;return l.qDimensions.length=0,l.qMeasures.length=0,hb.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h})&&hb.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h,newHyperCubeDef:l}),hb.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:d,newHyperCubeDef:l,defaultDimension:g}),hb.addDefaultMeasures({exportFormat:e,maxMeasures:u,minMeasures:h,newHyperCubeDef:l,defaultMeasure:p}),hb.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:l}),hb.copyPropertyIfExist("qMaxStackedCells",a,l),hb.copyPropertyIfExist("qNoOfLeftDims",a,l),hb.copyPropertyOrSetDefault("qInitialDataFetch",a,l,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),hb.copyPropertyOrSetDefault("qMode",a,l,"S"),hb.copyPropertyOrSetDefault("qReductionMode",a,l,"N"),hb.copyPropertyOrSetDefault("qSortbyYValue",a,l),hb.copyPropertyOrSetDefault("qIndentMode",a,l),hb.copyPropertyOrSetDefault("qShowTotalsAbove",a,l),hb.importCommonProperties(s,e,t),hb.updateDimensionsOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),hb.updateMeasuresOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),r.qProperty=s,r}(e)},pb=e=>ib.getValue(e,"data.targets.0.propertyPath"),mb=async({halo:e,model:t,cellRef:n,newType:i})=>{const o=await t.getFullPropertyTree(),r=n.current.getQae(),s=(e=>e.exportProperties?e.exportProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return gb.exportProperties})(pb(e)))(r),a=await(async({halo:e,name:t,version:n})=>{const{types:i}=e;return await i.get({name:t,version:n}).supernova()})({halo:e,name:i}),l=a.qae;return(e=>e.importProperties?e.importProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return gb.importProperties})(pb(e)))(l)({exportFormat:s({propertyTree:o,hypercubePath:hb.getHypercubePath(r)}),initialProperties:{qInfo:{qType:i},visualization:i,...ib.getValue(l,"properties.initial",{})},dataDefinition:ib.getValue(l,"data.targets.0.",{}),hypercubePath:hb.getHypercubePath(l)})},fb={hypercube:gb};function vb(e){return(0,kt.Z)("MuiIcon",e)}(0,Lt.Z)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _b=["baseClassName","className","color","component","fontSize"],bb=(0,xt.ZP)("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,Ut.Z)(n.color)}`],t[`fontSize${(0,Ut.Z)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]}))),Cb=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiIcon"}),{baseClassName:i="material-icons",className:o,color:r="inherit",component:s="span",fontSize:a="medium"}=n,l=(0,vt.Z)(n,_b),c=(0,_t.Z)({},n,{baseClassName:i,color:r,component:s,fontSize:a}),d=(e=>{const{color:t,fontSize:n,classes:i}=e,o={root:["root","inherit"!==t&&`color${(0,Ut.Z)(t)}`,`fontSize${(0,Ut.Z)(n)}`]};return(0,Ct.Z)(o,vb,i)})(c);return(0,Nt.jsx)(bb,(0,_t.Z)({as:s,className:(0,bt.Z)(i,"notranslate",d.root,o),ownerState:c,"aria-hidden":!0,ref:t},l))}));Cb.muiName="Icon";const yb=Cb,wb=e=>Cs((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 Sb({d:e}){const t=Yt();let i="inherit",o=t.palette.success.main;e.missing?o=t.palette.warning.main:e.error&&(i="error",o=t.palette.error.main);const r={color:o},s=n.createElement(zr,{style:{lineHeight:"30px",paddingRight:t.spacing(1)}},n.createElement(yb,null,e.missing||e.error?n.createElement(wb,{style:r}):n.createElement(hh,{style:r})));return n.createElement(Ar,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},n.createElement(Ar,{item:!0},s),n.createElement(Ar,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},n.createElement(zr,{noWrap:!0,component:"p"},n.createElement(zr,{component:"span",variant:"subtitle2",color:i},e.description),n.createElement(zr,{component:"span"}," "),n.createElement(zr,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400}},e.label))))}function xb({data:e}){const t=Yt();return n.createElement(Ar,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},e.map(((e,i)=>{const o=e.descriptions.map(((e,t)=>n.createElement(Sb,{d:e,key:t})));return o.length>0&&n.createElement(Ar,{container:!0,item:!0,key:i,direction:"column",style:{paddingBottom:t.spacing(2)}},n.createElement(zr,{noWrap:!0,key:i,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function Lb({title:e="Error",message:t="",data:i=[]}){return n.createElement(Ar,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},n.createElement(Ar,{item:!0},n.createElement(wb,{style:{fontSize:"38px"}})),n.createElement(Ar,{item:!0},n.createElement(zr,{variant:"h6",align:"center","data-tid":"error-title"},e)),n.createElement(Ar,{item:!0},n.createElement(zr,{variant:"subtitle1",align:"center","data-tid":"error-message"},t)),n.createElement(xb,{data:i}))}function kb(){return kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},kb.apply(this,arguments)}const Eb="Progress",Nb={root:`${Eb}-root`,front:`${Eb}-front`,back:`${Eb}-back`},Db=(0,xt.ZP)("div")((({theme:e})=>({[`&.${Nb.root}`]:{position:"relative",display:"inline-block"},[`& .${Nb.front}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${Nb.back}`]:{color:e.palette.divider}}))),Ib={small:16,medium:32,large:64,xlarge:128};function Rb({size:e="medium",...t}){const i=Ib[e];return n.createElement(Db,{className:Nb.root},n.createElement(cc,kb({variant:"determinate",value:100,className:Nb.back,size:i,thickness:3},t)),n.createElement(cc,kb({variant:"indeterminate",disableShrink:!0,className:Nb.front,size:i,thickness:3},t)))}function Tb(){return Tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Tb.apply(this,arguments)}const Ob={stripes:"LongRunningQuery-stripes"},qb=(0,xt.ZP)(Ar)((()=>({[`& .${Ob.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 Ab({cancel:e,translator:t,...i}){return n.createElement(n.Fragment,null,n.createElement(qb,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},n.createElement(Ar,{item:!0},n.createElement(Rb,null)),n.createElement(Ar,{item:!0},n.createElement(zr,{variant:"h6",align:"center","data-tid":"update-active"},t.get("Object.Update.Active")))),n.createElement(Ar,Tb({item:!0},i),n.createElement(Wl,{variant:"contained",onClick:e},t.get("Cancel"))))}function Mb({retry:e,translator:t,...i}){return n.createElement(n.Fragment,null,n.createElement(Ar,{item:!0},n.createElement(wb,{style:{fontSize:"38px"}})),n.createElement(Ar,{item:!0},n.createElement(zr,{variant:"h6",align:"center","data-tid":"update-cancelled"},t.get("Object.Update.Cancelled"))),n.createElement(Ar,{item:!0},n.createElement(Wl,Tb({variant:"contained",onClick:e},i),t.get("Retry"))))}function Pb({canCancel:e,canRetry:t,api:i}){const{translator:o}=(0,n.useContext)(hd);return n.createElement(Ar,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:Ob.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},e&&n.createElement(Ab,{cancel:i.cancel,translator:o,className:Ob.cancel}),t&&n.createElement(Mb,{retry:i.retry,translator:o,className:Ob.retry}))}function Fb(){return n.createElement(Ar,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n.createElement(Rb,{size:"large"}))}const Bb="Header",Wb={containerStyle:`${Bb}-containerStyle`,containerTitleStyle:`${Bb}-containerTitleStyle`},Vb=(0,xt.ZP)(Ar)((({theme:e})=>({[`&.${Wb.containerStyle}`]:{flexGrow:0},[`&.${Wb.containerTitleStyle}`]:{paddingBottom:e.spacing(1)}}))),zb=function({layout:e,sn:t,anchorEl:i,hovering:o,focusHandler:r,titleStyles:s={}}){const a=e.showTitles&&!!e.title,l=e.showTitles&&!!e.subtitle,c=e.qSelectionInfo&&e.qSelectionInfo.qInSelections,[d,u]=(0,n.useState)([]),[h,g]=Kd(),[p,m]=(0,n.useState)(!1);(0,n.useEffect)((()=>{t&&t.component&&t.component.isHooked&&t.component.observeActions((e=>{u([...e,...t&&t.selectionToolbar&&t.selectionToolbar.items||[]])}))}),[t]),(0,n.useEffect)((()=>{if(!g)return;const{width:e}=g;m(e<221)}),[g]);const f=a||l,v=[Wb.containerStyle,...f?[Wb.containerTitleStyle]:[]],_=(o||c)&&(p||!f),b=f&&!_&&!p,C=n.createElement(bv,{show:b,selections:{show:c,api:t.component.selections,onKeyDeactivate:r.refocusContent},actions:d,popover:{show:_,anchorEl:i},focusHandler:r});return n.createElement(Vb,{ref:h,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},n.createElement(Ar,{item:!0,zeroMinWidth:!0,xs:!0},n.createElement(Ar,{container:!0,wrap:"nowrap",direction:"column"},a&&n.createElement(zr,{variant:"h6",noWrap:!0,className:"njs-cell-title",style:s.main},e.title),l&&n.createElement(zr,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title",style:s.subTitle},e.subtitle))),n.createElement(Ar,{item:!0},C))},Hb="Footer-itemStyle",jb=(0,xt.ZP)(Ar)((({theme:e})=>({[`& .${Hb}`]:{minWidth:0,paddingTop:e.spacing(1)}}))),Ub=function({layout:e,titleStyles:t={}}){return e&&e.showTitles&&e.footnote?n.createElement(jb,{container:!0},n.createElement(Ar,{item:!0,className:Hb},n.createElement(zr,{noWrap:!0,variant:"body2",className:"njs-cell-footer",style:t.footer},e.footnote))):null};class $b{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 Kb=function({sn:e,snOptions:t,snPlugins:i,layout:o,appLayout:r,halo:s}){const{component:a}=e,{theme:l,language:c,constraints:d,interactions:u,keyboardNavigation:h}=(0,n.useContext)(hd),[g]=(0,n.useState)((()=>new $b)),[p,m]=(0,n.useState)(!1),[f,v]=(0,n.useState)(0),[_,b,C]=Kd(),[y,w]=(0,n.useState)(null),S=(0,n.useCallback)((e=>{e&&w(e)}),[]);return(0,n.useEffect)((()=>{if(y)return a.created({options:t}),a.mounted(y),m(!0),()=>{g.stop(),a.willUnmount()}}),[y,a]),(0,n.useEffect)((()=>{p&&y&&b&&(!a.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||g.schedule((()=>{const n=[];return d.passive||n.push("passive"),d.active||n.push("interact"),d.select||n.push("select"),d.edit||n.push("edit"),s.app&&s.app.session&&n.push("fetch"),Promise.resolve(a.render({layout:o,options:t,plugins:i,embed:s.public.nebbie,context:{constraints:d,interactions:u,theme:s.public.theme,appLayout:r,keyboardNavigation:h,...a.isHooked?{}:{logicalSize:e.logicalSize({layout:o}),localeInfo:(r||{}).qLocaleInfo,permissions:n}}})).then((e=>{!1!==e&&(0===f&&"function"==typeof t.onInitialRender&&t.onInitialRender.call(null),v(f+1))}))})))}),[b,t,i,y,C,o,r,l,c,d,u,p,h]),n.createElement("div",{ref:_,"data-render-count":f,style:{position:"relative",height:"100%"},className:"njs-viz"},n.createElement("div",{ref:S,style:{position:"absolute",width:"100%",height:"100%"}}))},Gb={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Zb={"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 Qb(e,t){const n=e?.bgImage;if(n){let i="";"media"!==n.mode&&"media"!==e.useImage||(i=n?.mediaUrl?.qStaticContentUrl?.qUrl?decodeURIComponent(n.mediaUrl.qStaticContentUrl.qUrl):void 0,i=function(e,t){return t?function(e){let t,n,i,o;return e?.session?.config?(t=e.session.config,n=new URL(t.url),o="wss:"===n.protocol,i=o?"https://":"http://",i+n.host):""}(e)+t:void 0}(t,i)),"expression"===n.mode&&(i=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const o=function(e){let t="center center";return e?.bgImage?.position&&(t=Zb[e.bgImage.position]),t}(e),r=function(e){let t=Gb.originalSize;return e?.bgImage?.sizing&&(t=Gb[e.bgImage.sizing]),t}(e);return i?{url:i,pos:o,size:r}:void 0}}function Yb(e,t,n){const i=e?.bgColor;return i&&t?i.useExpression?t.validateColor(i.colorExpression):i.color&&"none"!==i.color.color?t.getColorPickerColor(i.color,!0):void 0:t&&n?t.getStyle(`object.${n}`,"","backgroundColor"):t?t.getStyle("","","backgroundColor"):void 0}function Xb(e,t,n,i){const o=e?.title?.[t]||{},r=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(o.fontStyle,t);return{fontFamily:o.fontFamily||n.getStyle(`object.${i}`,`title.${t}`,"fontFamily"),color:o.color&&"none"!==o.color.color?n.getColorPickerColor(o.color,!0):n.getStyle(`object.${i}`,t,"color"),fontWeight:r.includes("bold")?"bold":"normal",fontStyle:r.includes("italic")?"italic":"normal",textDecoration:r.includes("underline")?"underline":"initial"}}const Jb=(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: ${t.type}`)}};function eC({delay:e=750}){const[t,i]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{const t=setTimeout((()=>i(!0)),e);return()=>clearTimeout(t)}),[]),t?n.createElement(Fb,null):null}const tC=e=>!e.qError||7005===e.qError.qErrorCode,nC=(e,t,n,i,o)=>[...Array(e).keys()].map((e=>{const r=!(!t||!t[e]),s=r&&t[e].qError&&7005===t[e].qError.qErrorCode,a=r&&!s&&t[e].qError,l=s&&t[e].qCalcCondMsg,c=`${a?i:s?l||o:r&&t[e].qFallbackTitle||""}`,d=n(e);return{description:d?`${d}${c.length?":":""}`:null,label:c,missing:t&&!r&&!a&&e>=t.length||s,error:a}})),iC=e=>e&&(Array.isArray(e)?e:[e])||[],oC=(e,t,n,i)=>{const o=i.dimensions.min(),r=i.measures.min(),s=i.resolveLayout(t);return{reqDimErrors:nC(o,iC(s.qDimensionInfo||s.qItems),(e=>i.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:nC(r,iC(s.qMeasureInfo),(e=>i.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},rC=(0,n.forwardRef)((({halo:e,model:t,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s,currentId:a,emitter:l},c)=>{const{app:d,types:u}=e,{nebbie:h}=e.public,{theme:g,translator:p,language:m,keyboardNavigation:f,disableCellPadding:v=!1}=(0,n.useContext)(hd),_=Yt(),[b,C,y]=Kd(),[w,S]=(0,n.useReducer)(Jb,{loading:!1,loaded:!1,longRunningQuery:!1,error:(x=r)?{title:x.message}:null,sn:null,visualization:null});var x;const[L,{validating:k,canCancel:E,canRetry:N},D]=Ud(t),[I]=$d(d),[R,T,O]=Kd(),[q,A]=(0,n.useState)(i),[M,P]=(0,n.useState)(o),F=`njs-cell-${a}`,[B]=Mv(d,t,[`#${F}`,".njs-action-toolbar-popover"]),[W,V]=(0,n.useState)(!1),z=(0,n.useRef)({enter:null,leave:null}),[H,j]=(0,n.useState)(void 0),[U,$]=(0,n.useState)(void 0),[K,G]=(0,n.useState)(void 0),Z=(0,n.useRef)({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});(0,n.useEffect)((()=>{Ov(Z.current)}),[]),(0,n.useEffect)((()=>{if(L&&e.public.theme){const t=L.components?L.components.find((e=>"general"===e.key)):null;G({main:Xb(t,"main",e.public.theme,L.visualization),footer:Xb(t,"footer",e.public.theme,L.visualization),subTitle:Xb(t,"subTitle",e.public.theme,L.visualization)}),j(Yb(t,e.public.theme,L.visualization)),$(Qb(t,e.app))}}),[L,e.public.theme,e.app,g]),Z.current.blurCallback=t=>{e.root.toggleFocusOfCells(),t&&O&&O.focus()},Z.current.refocusContent=()=>{w.sn.component&&"function"==typeof w.sn.component.focus&&w.sn.component.focus()},(0,n.useEffect)((()=>{if(r||!I||!L)return;if(w.visualization===L.visualization&&w.sn)return void(async e=>{const[n,i]=await(async(e,t,{targets:n},i)=>{const{hasUnfulfilledErrors:o,aggMinD:r,aggMinM:s,hasLayoutErrors:a,layoutErrors:l}=((e,t,n)=>{let i=!1,o=0,r=0,s=!1,a=!1;const l=[];for(let c=0;c<t.length;++c){const d=t[c],u=d.dimensions.min(),h=d.measures.min(),g=d.resolveLayout(n),p=iC(g.qDimensionInfo||g.qItems).filter(tC),m=iC(g.qMeasureInfo).filter(tC);if(o+=u,r+=h,(p.length<u||m.length<h)&&(i=!0),g.qError){s=!0,a=7005===g.qError.qErrorCode;const t=a&&g.qCalcCondMsg?g.qCalcCondMsg:a?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:i,aggMinD:o,aggMinM:r,hasLayoutErrors:s,layoutErrors:l}})(e,n,t),c=[],d=[];let u=null;for(let r=0;r<n.length;++r){const s=n[r];if(!a&&o){const n=u||await i.getProperties();u=n;const o=oC(e,t,n,s);c.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const h=c.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Dimensions",[h,r]),p=d.filter((e=>!(e.missing||e.error))).length,m=e.get("Visualization.Incomplete.Measures",[p,s]),f=[{title:g,descriptions:[...c]},{title:m,descriptions:[...d]}],v=a?l:f;return[a||o,{title:a?l[0].title:e.get("Visualization.Incomplete"),data:v}]})(p,L,e.generator.qae.data,t);S(n?{type:"ERROR",error:i}:{type:"RENDER"}),(({sn:e,layout:t,model:n})=>{const i=e&&e.component&&e.component.selections;if(i&&i.id&&n.id&&i.id===n.id){if(t&&t.qSelectionInfo&&t.qSelectionInfo.qInSelections&&!i.isModal()){const{targets:t}=e.generator.qae.data,n=t[0].propertyPath;i.goModal(n)}t.qSelectionInfo&&t.qSelectionInfo.qInSelections||i.isModal()&&i.noModal()}})({sn:w.sn,layout:L,model:t})})(w.sn);const e=u.getSupportedVersion(L.visualization,L.version);return(async(e,n)=>{S({type:"LOADING"});const i=await(async({dispatch:e,types:t,visualization:n,version:i,model:o,app:r,selections:s,nebbie:a,focusHandler:l,emitter:c})=>{try{const e=await(async({types:e,name:t,version:n})=>await e.get({name:t,version:n}).supernova())({types:t,name:n,version:i});return e.create({model:o,app:r,selections:s,nebbie:a,focusHandler:l,emitter:c})}catch(t){e(i?{type:"ERROR",error:{title:t.message}}:{type:"ERROR",error:{title:`Could not find a version of '${n}' that supports current object version. Did you forget to register ${n}?`}})}})({dispatch:S,types:u,visualization:e,version:n,model:t,app:d,selections:B,nebbie:h,focusHandler:Z.current,emitter:l});i&&(S({type:"LOADED",sn:i,visualization:e}),s())})(L.visualization,e),()=>{}}),[u,w.sn,t,B,L,I,m]),(0,n.useEffect)((()=>{if(!k)return;const e=setTimeout((()=>S({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[k]),(0,n.useImperativeHandle)(c,(()=>({getQae:()=>w.sn.generator.qae,toggleFocus(e){"function"==typeof w.sn.component.focus&&(e?w.sn.component.focus():w.sn.component.blur())},setSnOptions:A,setSnPlugins:P,async takeSnapshot(){const{width:e,height:t}=C;let n=JSON.parse(JSON.stringify(L));return"function"==typeof w.sn.component.setSnapshotData&&(n=await w.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:p.language(),theme:_.name,appLayout:I,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof e.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const t=await this.takeSnapshot();return e.config.snapshot.capture(t)}})),[w.sn,T,C,L,_.name,I]);let Q=null;return w.loading&&!w.longRunningQuery?Q=n.createElement(eC,null):w.error?Q=n.createElement(Lb,w.error):w.loaded&&(Q=n.createElement(Kb,{key:L.visualization,sn:w.sn,halo:e,snOptions:q,snPlugins:M,layout:L,appLayout:I})),n.createElement(Hu,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:H||"unset",backgroundImage:U&&U.url?`url(${U.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:U&&U.size,backgroundPosition:U&&U.pos},elevation:0,square:!0,className:"njs-cell",ref:b,id:F,onMouseEnter:()=>{z.current.leave&&clearTimeout(z.current.leave),z.enter||(z.current.enter=setTimeout((()=>{V(!0),z.current.enter=null}),250))},onMouseLeave:()=>{z.current.enter&&clearTimeout(z.current.enter),z.current.leave||(z.current.leave=setTimeout((()=>{V(!1),z.current.leave=null}),750))}},n.createElement(Ar,{container:!0,direction:"column",gap:0,style:{position:"relative",width:"100%",height:"100%",...v?{}:{padding:_.spacing(1)},...w.longRunningQuery?{opacity:"0.3"}:{}}},y&&L&&w.sn&&n.createElement(zb,{layout:L,sn:w.sn,anchorEl:y,hovering:W,focusHandler:Z.current,titleStyles:K}," "),n.createElement(Ar,{tabIndex:f?0:-1,onKeyDown:f?t=>{["Enter"," ","Spacebar"].includes(t.key)&&e.root.toggleFocusOfCells(a)}:null,item:!0,xs:!0,style:{height:"100%"},ref:R},Q),n.createElement(Ub,{layout:L,titleStyles:K})),w.longRunningQuery&&n.createElement(Pb,{canCancel:E,canRetry:N,api:D}))}));function sC(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function aC(e="/",t,n){const i=[];return Object.keys(t).forEach((o=>{const r=t[o];var s,a;"object"!=typeof n[o]||"object"!=typeof r||Array.isArray(r)?(s=r,a=n[o],(sC(s)&&sC(a)?JSON.stringify(s)===JSON.stringify(a):!Array.isArray(s)&&!Array.isArray(a)&&s===a)||i.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])})):i.push(...aC(`${e}${o}/`,t[o],n[o]))})),i}function lC(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 "${e.info.name}" has no "fn" function`)}))}const cC=()=>{};async function dC(e,t,i,o,r=(async()=>{})){const s=function({model:e,halo:t,initialError:i,onDestroy:o=(async()=>{})}={}){let r=cC,s=null,a=null,l=null;const c=new Promise((e=>{l=e}));let d={},u=[];const h=new(pc()),g={id:e.id,model:e,async destroy(){await o(),r(),r=cC},async convertTo(n,i=!0){const o=await mb({halo:t,model:e,cellRef:s,newType:n});return i&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},addListener(e,t){h.addListener(e,t)},removeListener(e,t){h.removeListener(e,t)},__DO_NOT_USE__:{mount(o){if(a)throw new Error("Already mounted");return a=o,[r,s]=function({halo:e,element:t,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,emitter:a,initialError:l}){const{root:c}=e,d=n.createRef(),u=g_(),h=Xr.createPortal(n.createElement(rC,{ref:d,halo:e,model:i,currentId:u,initialSnOptions:o,initialSnPlugins:r,initialError:l,onMount:s,emitter:a}),t,u),g=()=>{c.remove(h),i.removeListener("closed",g)};return i.on("closed",g),c.add(h),c.addCell(u,d),[g,d]}({halo:t,element:o,model:e,initialSnOptions:d,initialSnPlugins:u,initialError:i,onMount:l,emitter:h}),c},async applyProperties(t){const n=aC("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{a?(async()=>{await c,s.current.setSnOptions({...d,...e})})():d={...d,...e}})(e)},plugins(e){(async e=>{lC(e),a?(async()=>{await c,s.current.setSnPlugins(e)})():u=e})(e)},exportImage:()=>s.current.exportImage(),takeSnapshot:()=>s.current.takeSnapshot(),getModel:()=>e}};return g}({model:e,halo:i,initialError:o,onDestroy:r});return t.options&&s.__DO_NOT_USE__.options(t.options),t.plugins&&s.__DO_NOT_USE__.plugins(t.plugins),t.element&&await s.__DO_NOT_USE__.mount(t.element),s}async function uC({type:e,version:t,fields:n,properties:i,extendProperties:o},r,s){let a={};const l=[];try{const s=r.types.get({name:e,version:t});a=await s.initialProperties(i,o);const c=await s.supernova();n&&await nb({sn:c,properties:a,fields:n,children:l},r),i&&c&&c.qae.properties.onChange&&c.qae.properties.onChange.call({},a)}catch(t){a=s?null:{qInfo:{qType:e},visualization:e}}if(!s){const e=await r.app.createObject(a);return l.length>0&&await e.setFullPropertyTree({qProperty:a,qChildren:l}),Bd.set(e.id,e),e}return a}const hC=function({model:e,halo:t,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s}){const{root:a}=t,[l]=Ud(e),{theme:c}=(0,n.useContext)(hd),[d,u]=(0,n.useState)([]),[h,g]=(0,n.useState)(void 0),[p,m]=(0,n.useState)(void 0),[f,v]=(0,n.useState)("");(0,n.useEffect)((()=>{if(l){const e=JSON.stringify(l.cells);if(e===f)return;v(e);const i=async()=>{d.forEach((e=>{a.removeCell(e.currentId)}));const e=l.cells,i=await Promise.all(e.map((async e=>{let i;const o=new Promise((e=>{i=e})),r=d.find((t=>t.id===e.name));if(r)return r.bounds=e.bounds,delete r.mountedPromise,r;const s=await async function({id:e,options:t,plugins:n,element:i},o){const r=`${e}`;let s=Od.get(r);s||(s=o.app.getObject(e),Od.set(r,s));const a=await s;return Bd.set(r,a),dC(a,{options:t,plugins:n,element:i},o)}({id:e.name},t);return{model:s.model,id:e.name,bounds:e.bounds,cellRef:n.createRef(),currentId:g_(),mounted:i,mountedPromise:o}})));i.forEach((e=>a.addCell(e.currentId,e.cellRef))),u(i)};i()}}),[l]);const _=(0,n.useMemo)((()=>d?d.map((e=>function(e,t,i,o,r,s){const{x:a,y:l,width:c,height:d}=e.bounds;return n.createElement("div",{style:{left:`${a}%`,top:`${l}%`,width:`${c}%`,height:`${d}%`,position:"absolute"}},n.createElement(rC,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s}))}(e,t,i,o,r,e.mounted))):[]),[d]);(0,n.useEffect)((()=>{const e=l?.components?l.components.find((e=>"general"===e.key)):null;g(Yb(e,t.public.theme)),m(Qb(e,t.app))}),[l,t.public.theme,t.app,c]);const b=!l||Number.isNaN(l.height)?"100%":`${Number(l.height)}%`,C=d.map((e=>e.mountedPromise));return C.filter((e=>!!e)).length&&Promise.all(C).then((()=>{s()})),n.createElement("div",{className:"njs-sheet",style:{width:"100%",height:b,position:"relative",backgroundColor:h,backgroundImage:p&&p.url?`url(${p.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:p&&p.size,backgroundPosition:p&&p.pos}},_)},gC=()=>{};async function pC({id:e,options:t,plugins:i,element:o},r){const s=`${e}`;let a=Od.get(s);a||(a=r.app.getObject(e),Od.set(s,a));const l=await a;return Bd.set(s,l),"sheet"===l.genericType?async function(e,t,i,o,r=(async()=>{})){const s=function({model:e,halo:t,initialError:i,onDestroy:o=(async()=>{})}={}){let r=gC,s=null,a=null,l=null;const c=new Promise((e=>{l=e}));let d={},u=[];const h={id:e.id,model:e,async destroy(){await o(),r(),r=gC},__DO_NOT_USE__:{mount(o){if(a)throw new Error("Already mounted");return a=o,[r,s]=function({halo:e,element:t,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,initialError:a}){const{root:l}=e,c=n.createRef(),d=Xr.createPortal(n.createElement(hC,{ref:c,halo:e,model:i,initialSnOptions:o,initialSnPlugins:r,initialError:a,onMount:s}),t,i.id),u=()=>{l.remove(d),i.removeListener("closed",u)};return i.on("closed",u),l.add(d),[u,c]}({halo:t,element:o,model:e,initialSnOptions:d,initialSnPlugins:u,initialError:i,onMount:l}),c},async applyProperties(t){const n=aC("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{a?(async()=>{await c,s.current.setSnOptions({...d,...e})})():d={...d,...e}})(e)},plugins(e){(async e=>{lC(e),a?(async()=>{await c,s.current.setSnPlugins(e)})():u=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return h}({model:e,halo:i,initialError:void 0,onDestroy:r});return t.options&&s.__DO_NOT_USE__.options(t.options),t.plugins&&s.__DO_NOT_USE__.plugins(t.plugins),t.element&&await s.__DO_NOT_USE__.mount(t.element),s}(l,{options:t,plugins:i,element:o},r):dC(l,{options:t,plugins:i,element:o},r)}function mC(e={}){return{isEnabled:t=>!0===e[t]}}const fC=Qc().bind(null,!0),vC={},{isArray:_C}=Array;function bC(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function CC(e){return void 0===e}function yC(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function wC(e,t){const n=t.substring(1).split("/").slice(0,-1);let i;return n.forEach(((t,o)=>{if(o===n.length)return;i=+t;const r=isNaN(i)?{}:[];e[i||t]=CC(e[i||t])?r:e[t],e=e[i||t]})),e}function SC(e,t){let n=!0;if(bC(e)&&bC(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((i=>{SC(e[i],t[i])||(n=!1)})),n);if(_C(e)&&_C(t)){if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n+=1)if(!SC(e[n],t[n]))return!1;return!0}return e===t}vC.generate=function(e,t,n){n=n||"";let i=[];return Object.keys(t).forEach((o=>{const r=function(e){return e?fC({},{val:e}).val:e}(t[o]),s=e[o],a=`${n}/${o}`;SC(r,s)||yC(t,o)||(CC(s)?i.push({op:"add",path:a,value:r}):bC(r)&&bC(s)?i=i.concat(vC.generate(s,r,a)):_C(r)&&_C(s)?i=i.concat(function(e,t,n){let i=[];const o=e.slice();let r=-1;function s(e,t,n){if(e[n]&&CC(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,i=e.length;n<i;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(SC(t,o))return i;if(!CC(t[0])&&CC(t[0].qInfo))return i.push({op:"replace",path:n,value:t}),i;for(let e=o.length-1;e>=0;e-=1)r=s(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===r?(i.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):i=i.concat(vC.generate(o[e],t[r],`${n}/${e}`));for(let e=0,a=t.length;e<a;e+=1)r=s(o,t[e].qInfo&&t[e].qInfo.qId),-1===r?(i.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):r!==e&&(i.push({op:"move",path:`${n}/${e}`,from:`${n}/${r}`}),o.splice(e,0,o.splice(r,1)[0]));return i}(s,r,a)):i.push({op:"replace",path:`${n}/${o}`,value:r}))})),Object.keys(e).forEach((o=>{CC(t[o])&&!yC(e,o)&&i.push({op:"remove",path:`${n}/${o}`})})),i},vC.apply=function(e,t){t.forEach((t=>{let n=wC(e,t.path),i=t.path.split("/").splice(-1)[0],o=i&&isNaN(+i)?n[i]:n[+i]||n;const r=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(_C(n))"-"===i&&(i=n.length),n.splice(+i,"add"===t.op?0:1,t.value);else if(_C(o)&&_C(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(bC(o)&&bC(t.value))s=o,Object.keys(s).forEach((e=>{Object.getOwnPropertyDescriptor(s,e).configurable&&!yC(s,e)&&delete s[e]})),fC(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[i]=t.value}else if("move"===t.op){const o=wC(e,t.from);_C(n)?n.splice(+i,0,o.splice(+r,1)[0]):(n[i]=o[r],delete o[r])}else"remove"===t.op&&(_C(n)?n.splice(+i,1):delete n[i]);var s}))},vC.clone=function(e){return fC({},e)},vC.createPatch=function(e,t,n){const i={op:e.toLowerCase(),path:n};return"move"===i.op?i.from=t:void 0!==t&&(i.value=t),i},vC.updateObject=function(e,t){Object.keys(e).length?vC.apply(e,vC.generate(e,t)):fC(e,t)};const xC=vC,LC=e=>t=>{const n=(i={...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(pc().prototype).forEach((e=>{i[e]=pc().prototype[e]})),pc().init(i),i);var i;return n};let kC,EC;function NC(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 DC(e,{explicitResize:t=!1}={}){e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null}}}function IC(e){TC(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 RC(e){if(e.__hooks.obsolete)return Promise.resolve();EC=-1,kC=e;let t=-1;kC.__hooks.initiated&&(t=kC.__hooks.list.length);try{kC.fn.call(null)}catch(e){console.error(e)}kC.__hooks.initiated=!0,t>-1&&t!==kC.__hooks.list.length&&console.error("Detected a change in the order of hooks called.");const n=kC.__hooks;return MC(kC),EC=void 0,kC=void 0,n.chain.promise||(n.chain.promise=new Promise((e=>{n.chain.resolve=e}))),function(e){TC(e.pendingLayoutEffects)}(n),function(e){e.macro||(e.macro=requestAnimationFrame((()=>{!function(e){TC(e.pendingEffects),e.macro=null,function(e){e.pendingPromises.length||e.micro||e.macro||(e.chain.promise=null,e.chain.resolve(!e.waitForData))}(e)}(e)})))}(n),n.chain.promise}function TC(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 OC(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 qC(e,t,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function AC(e){return e.__hooks.imperativeHandle}function MC(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function PC(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,MC(e))}function FC(e){if(void 0===kC)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=kC.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function BC(e){return FC(++EC),kC.context[e]}function WC(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function VC(e){return{__hooked:!0,fn:e,initiate:DC,run:RC,teardown:IC,runSnaps:OC,runMenu:qC,focus:vy,blur:_y,observeActions:PC,getImperativeHandle:AC,updateRectOnNextRun:WC}}function zC(e){const t=FC(++EC);if(!t.value){t.component=kC;const n=e=>{if(t.component.__hooks.obsolete)throw new Error("Calling setState on an unmounted component is a no-op and indicates a memory leak in your component.");const n="function"==typeof e?e(t.value[0]):e;var i;n!==t.value[0]&&(t.value[0]=n,(i=t.component).__hooks.micro||(i.__hooks.micro=setTimeout((()=>{i.__hooks.micro=null,RC(i)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function HC(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=FC(++EC);NC(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===kC.__hooks.pendingEffects.indexOf(n)&&kC.__hooks.pendingEffects.push(n))}function jC(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=FC(++EC);NC(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],kC.__hooks.pendingLayoutEffects.push(n))}function UC(e,t){t||console.warn("useMemo called without dependencies.");const n=FC(++EC);return NC(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function $C(e,t){const[n,i]=zC((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=FC(++EC);return o.component||(o.component=kC),jC((()=>{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(),i({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),i({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[n.resolved,n.rejected]}function KC(){return BC("element")}function GC(){const e=KC(),t=kC.__hooks.resizer,[n,i]=zC((()=>{const{left:t,top:n,width:i,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:i,height:o}}));return t.current=n,-1===t.setters.indexOf(i)&&t.setters.push(i),t.update&&t.resize&&(t.update=!1,t.resize()),jC((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:i,width:o,height:r}=e.getBoundingClientRect(),s=t.current;s.width===o&&s.height===r&&s.left===n&&s.top===i||t.setters.forEach((e=>e({left:n,top:i,width:o,height:r})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let i=new ResizeObserver(n);return i.observe(e),()=>{i.unobserve(e),i.disconnect(e),i=null,t.resize=void 0}}}),[e]),n}function ZC(){return BC("layout")}function QC(){const e=BC("layout"),[t]=zC({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function YC(){return BC("appLayout")}function XC(){const e=BC("model");return e&&e.session?e:void 0}function JC(){const e=BC("app");return e&&e.session?e:void 0}function ey(){const e=BC("global");return e&&e.session?e:void 0}function ty(){return BC("selections")}function ny(){return BC("theme")}function iy(){return BC("nebbie")}function oy(){return BC("translator")}function ry(){return BC("deviceType")}function sy(){return BC("plugins")}function ay(e,t){const[n]=zC({action(){n._config.action.call(null)}});return n.component||(n.component=kC,kC.__hooks.actions.list.push(n)),UC((()=>{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 ly(){return console.warn("useContraints has been deprecated, please change to useInteractions instead. Note that interactions uses inverted values compared to contraints."),BC("constraints")}function cy(){return BC("interactions")}function dy(){return BC("options")}function uy(e,t){const n=FC(++EC);if(!n.imperative){if(kC.__hooks.imperativeHandle)throw new Error("useImperativeHandle already used.");n.imperative=!0}if(NC(n.value?n.value[0]:void 0,t)){const i=e();n.value=[t,i],kC.__hooks.imperativeHandle=i}}function hy(e){const t=FC(++EC);t.value||(t.value=1,kC.__hooks.snaps.push(t)),t.fn=e}function gy(e){const t=FC(++EC);t.value||(t.value=1,kC.__hooks.menus.push(t)),t.fn=e}function py(){FC(++EC);const e=kC.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function my(){return BC("emitter")}function fy(){const e=BC("keyboardNavigation"),t=BC("focusHandler");if(!kC.__hooks.accessibility.exitFunction){const e=function(e=!1){const n=this.__hooks.accessibility;n.enabled&&n.active&&(_y(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(kC);kC.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),vy(this))}.bind(kC);kC.__hooks.accessibility.focusFunction=n;const i=function(e=!1){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(kC);kC.__hooks.accessibility.focusSelectionFunction=i}const n=kC.__hooks.accessibility.focusFunction,i=kC.__hooks.accessibility.exitFunction,o=kC.__hooks.accessibility.focusSelectionFunction,[r,s]=zC({active:!1,enabled:e,blur:i,focus:n,focusSelection:o});return kC.__hooks.accessibility.setter=s,kC.__hooks.accessibility.enabled=e,HC((()=>s({active:!1,enabled:e,blur:i,focus:n,focusSelection:o})),[e]),r}function vy(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 _y(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 by={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},Cy=Object.keys(by),yy=e=>(Object.keys(pc().prototype).forEach((t=>{e[t]=pc().prototype[t]})),pc().init(e),e);function wy(e,t,n){"function"==typeof e.component&&(e.component=VC(e.component));const[i,o]=e.component&&e.component.__hooked?function(e,t,n){e.component.run!==RC&&console.warn("Detected multiple supernova modules, this might cause problems.");const i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const r={},s=["appLayout","constraints","interactions"],a={},l={};t.model&&t.model.session||(a.select=!0,a.edit=!0,l.select=!1,l.edit=!1);const c={context:{model:t.model,app:t.app,global:i,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:a,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 i=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(i=!0)})),i&&(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)}s.forEach((e=>{const i=t.context;if(i&&Object.prototype.hasOwnProperty.call(i,e)){let t=JSON.stringify(i[e]);"constraints"===e&&(t=JSON.stringify({...i[e],...a})),"interactions"===e&&(t=JSON.stringify({...i[e],...l})),t!==r[e]&&(n=!0,r[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==r.themeName&&(n=!0,r.themeName=this.context.theme.name()),this.context.translator.language()!==r.language&&(n=!0,r.language=c.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n){return e.component.runMenu(this,t,n)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return s.forEach((e=>{r[e]=JSON.stringify(c.context[e])})),r.themeName=c.context.theme?c.context.theme.name():void 0,r.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):function(e,t){console.warn("Obsolete API - time to get hooked!");const n={...by};yy(n);const i={emit(...e){n.emit(...e)}};Object.keys(e.component||{}).forEach((t=>{-1!==Cy.indexOf(t)?n[t]=e.component[t].bind(i):i[t]=e.component[t]}));const o=function({sn:e,component:t}){const n={},i=[],o=LC(t);return((e.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=o(e);n[e.key]=t,i.push(t)})),(e.definition.actions||[]).forEach((e=>{const t=o(e);n[e.key]=t})),{actions:n,selectionToolbarItems:i,destroy(){i.length=0}}}({sn:e,component:i}),r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(i,{model:t.model,app:t.app,global:r,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}(e,t),r=[];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(...n){return e.qae.properties.onChange.call({model:t.model},...n),t.model.__snInterceptor.setProperties.call(this,...n)},t.model.applyPatches=function(n,i){const o=i?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const r=xC.clone(o),s=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));xC.apply(o,s),e.qae.properties.onChange.call({model:t.model},o);const a=xC.generate(r,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,a,i)}))},t.model.__snInterceptor.teardown=()=>{t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor},r.push(t.model.__snInterceptor.teardown)),{generator:e,component:i,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){r.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const Sy=()=>{};function xy(e,t){return void 0===e?()=>t:()=>e}function Ly(e){const t=e||{};return{min:"function"==typeof t.min?t.min:xy(t.min,0),max:"function"==typeof t.max?t.max:xy(t.max,1e3),added:t.added||t.add||Sy,description:t.description||Sy,moved:t.moved||t.move||Sy,removed:t.removed||t.remove||Sy,replaced:t.replaced||t.replace||Sy,isDefined:()=>!!e}}const ky=(e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o};function Ey(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 ${e} at ${t}. Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef`)}return{propertyPath:t,layoutPath:n,resolveLayout:e=>ky(e,n,{}),dimensions:Ly(e.dimensions),measures:Ly(e.measures)}}function Ny(e={}){let t,n=e.properties||{};return e.properties&&(e.properties.initial||e.properties.onChange)&&(n=e.properties.initial,t=e.properties.onChange),{properties:{initial:n,onChange:t},data:{targets:((e.data||{}).targets||[]).map(Ey)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function Dy(e,t){let n;n="function"==typeof e?e(t):e;const i={qae:Ny(n.qae),component:n.component||{},create:e=>wy(i,e,t),definition:{}};return Object.keys(n).forEach((e=>{i[e]||(i.definition[e]=n[e])})),i}var Iy=s(82103);const Ry={};function Ty(e,t){const n={};let i=null;return{get:e=>n[e],register:(o,r)=>{if(n[o])throw new Error(`Supernova '${e}@${o}' already registered.`);n[o]=function(e,t,n={}){let i,o;const{meta:r}=n,s={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&r&&r.deps&&r.deps.properties)||(0,Iy.satisfies)(e,r.deps.properties),supernova:()=>async function(e,t,{config:n},i){const o=`${e}__${t}`;if(!Ry[o]){const r=`${e}${t&&` v${t}`||""}`;if(i&&"function"!=typeof i)throw new Error(`load of visualization '${r}' is not a fuction, wrap load promise in function`);const s=(i||n.load)({name:e,version:t}),a=Promise.resolve(s);Ry[o]=a.then((e=>{if(!e)throw new Error(`load() of visualization '${r}' resolved to an invalid object`);return e})).catch((e=>{throw console.warn(e),new Error(`Failed to load visualization: '${r}'`)}))}return Ry[o]}(s.name,s.version,t,n.load).then((e=>(i=i||Dy(e,t.public.galaxy),o=JSON.stringify(i.qae.properties.initial),i))),initialProperties(e,t=!1){return this.supernova().then((()=>{const n={qInfo:{qType:s.name},visualization:s.name,version:s.version,showTitles:!0,...JSON.parse(o)};return t?(Qc()(!0,n,e),n):{...n,...e}}))}};return s}({name:e,version:o},t,r),i=null},getMatchingVersionFromProperties:e=>{var t;i||(t=Object.keys(n),i=[...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=i.length-1;t>=0;t--)if(n[i[t]].supportsPropertiesVersion(e))return i[t];return null},versions:n}}const Oy={context:({},{theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1}),load:()=>{},types:[],themes:[],anything:{},snapshot:{get:async e=>{const t=await fetch(`/njs/snapshot/${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()))}},qy=(e={},t={})=>({...e,...t}),Ay=(e=[],t=[])=>[...e,...t].filter(((e,t,n)=>n.indexOf(e)===t)),My=function e(t={}){const o=function(e){const t=uc({initial:e});return Object.keys(hc).forEach((e=>{t.translator.add(hc[e])})),{translator:t.translator}}(t.context.language);function r(e,s){if(s)return r.createConfiguration(s)(e);let a={...t.context,translator:o.translator};const[l]=function({app:e,context:t}){let o;const r=new Promise((e=>{o=e})),s=n.createRef(),a=document.createElement("div");a.style.display="none",a.setAttribute("data-nebulajs-version","4.0.1"),a.setAttribute("data-app-id",e.id),document.body.appendChild(a),t&&xd(t),i.createRoot(a).render(n.createElement(Ld,{ref:s,app:e,initialContext:t,renderCallback:o}));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 r,c.push(e),s.current.setComps(c)})()},remove(e){(async()=>{await r;const t=c.indexOf(e);-1!==t&&c.splice(t,1),s.current.setComps(c)})()},setMuiThemeName(e){(async()=>{await r,s.current.setMuiThemeName(e)})()},context(e){(async()=>{await r,e&&xd(e),s.current.setContext(e)})()},getAppSelections:async()=>(await r,s.current.getAppSelections())},s,r]}({app:e,context:a}),c=function({themes:e=[],loadTheme:t,root:n}={}){const i=ud();return{setTheme:async o=>{let r=e.filter((e=>e.id===o))[0],s="dark"===o?"dark":"light";if(!r&&t&&(r={load:t}),r&&r.load)try{const e=await Promise.race([r.load(o),(a=5e3,l={__timedOut:!0},new Promise((e=>{setTimeout((()=>e(l)),a)})))]);e.__timedOut?console.warn(`Timeout when loading theme '${o}'`):(s="dark"===e.type?"dark":"light",i.internalAPI.setTheme(e,o),n.setMuiThemeName(s))}catch(e){console.error(e)}else i.internalAPI.setTheme({type:s},o),n.setMuiThemeName(s);var a,l},externalAPI:i.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:l});a.themeApi=c.externalAPI;const d={galaxy:{translator:o.translator,flags:mC(t.flags),deviceType:(g=t.context.deviceType,"auto"!==g?g: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"),anything:t.anything},theme:c.externalAPI,translator:o.translator,nebbie:null},u={app:e,root:l,config:t,public:d,context:a,types:null},h=function({halo:e,parent:t}){const n={},i=t||{get:()=>{}};return{register:(t,i)=>{n[t.name]||(n[t.name]=Ty(t.name,e)),n[t.name].register(t.version,i)},getSupportedVersion:(e,t)=>n[e]?n[e].getMatchingVersionFromProperties(t):null,get(e){const{name:t}=e;let{version:o}=e;if(n[t]){if(!n[t].versions[o]){const e=Object.keys(n[t].versions)[0];console.warn(`Version ${o} of ${t} is not registered. Falling back to version ${e}`),o=e}}else console.warn(`Visualization ${t} is not registered. Adding it now.`),this.register({name:t,version:o});return n[t].get(o)||i.get(e)},getList:()=>Object.keys(n).map((e=>({name:e,versions:Object.keys(n[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{n[e]&&(n[e]=void 0),function(e){Object.keys(Ry).forEach((t=>{t.split("__")[0]===e&&(Ry[t]=void 0)}))}(e)}}}({halo:u});var g;t.types.forEach((e=>h.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let p=c.setTheme(t.context.theme),m=null,f=null;const v={render:async e=>(await p,e.id?pC(e,u):async function({type:e,version:t,fields:n,properties:i,options:o,plugins:r,element:s,extendProperties:a},l){let c={};const d=[];let u;try{const o=l.types.get({name:e,version:t});c=await o.initialProperties(i,a);const r=await o.supernova();n&&await nb({sn:r,properties:c,fields:n,children:d},l),i&&r&&r.qae.properties.onChange&&r.qae.properties.onChange.call({},c)}catch(t){u=t,c={qInfo:{qType:e},visualization:e}}const h=await l.app.createSessionObject(c);d.length>0&&await h.setFullPropertyTree({qProperty:c,qChildren:d}),Bd.set(h.id,h);const g=(e=>{const t=Pd({type:"SET",value:e});return()=>{t(),Bd.clear(e.id)}})(h);return dC(h,{options:o,plugins:r,element:s},l,u,(async()=>{await l.app.destroySessionObject(h.id),g()}))}(e,u)),create:async e=>uC(e,u,!1),generateProperties:async e=>uC(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:o.translator},t.theme&&(p=c.setTheme(t.theme),await p),t.language&&u.public.translator.language(t.language),l.context(a))},selections:async()=>(m||(m={mount(t){f?console.error("Already mounted"):(f=function({element:e,app:t}){return Xr.createPortal(n.createElement(p_,{app:t}),e,g_())}({element:t,app:e}),l.add(f))},unmount(){f&&(l.remove(f),f=null)}}),m),field:async t=>{let i;const o="string"==typeof t?t:t.qLibraryId;if(t.qId)i=t.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const r={fieldName:o,async mount(s,a={}){if(!s)throw new Error(`Element for ${o||i} not provided`);if(this._instance)throw new Error(`Field or object ${o||i} already mounted`);const c=()=>r.emit("selectionActivated"),d=()=>r.emit("selectionDeactivated");return new Promise((o=>{this._instance=function({element:e,app:t,fieldIdentifier:i,qId:o,stateName:r="$",options:s={},renderedCallback:a}){return Xr.createPortal(n.createElement(H_,{app:t,element:e,fieldIdentifier:i,qId:o,stateName:r,options:s,renderedCallback:a}),e,g_())}({element:s,app:e,fieldIdentifier:t,qId:i,options:z_({onSelectionActivated:c,onSelectionDeactivated:d,...a}),stateName:a.stateName||"$",renderedCallback:o}),l.add(this._instance)}))},unmount(){this._instance&&(l.remove(this._instance),this._instance=null)}};return Ov(r),r},getRegisteredTypes:h.getList,__DO_NOT_USE__:{types:h,popover(t,i,o){v._popoverInstance&&(l.remove(v._popoverInstance),v._popoverInstance=null);const r=((e={})=>{const t={...j_};return Qc()(!0,t,e),t})({onPopoverClose:()=>v.emit("fieldPopoverClose"),...o});v._popoverInstance=n.createElement(U_,{element:t,key:g_(),app:e,fieldIdentifier:i,options:r,stateName:o.stateName||"$"}),l.add(v._popoverInstance)}}};return u.public.nebbie=v,u.types=h,Ov(v),v}return r.createConfiguration=n=>e(((e,t)=>({context:qy(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:{...t.snapshot||e.snapshot},types:Ay(e.types,t.types),themes:Ay(e.themes,t.themes),flags:qy(e.flags,t.flags),anything:qy(e.anything,t.anything)}))(t,n)),r.config=t,r}(Oy),Py=function(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}},Fy=globalThis.crypto||{getRandomValues:()=>123456},By=function(){return e=>{const t=Qc()({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^Fy.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}`;const n=t._mock;let i=t;return n&&(delete t._mock,i=Qc()({},t,n)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(i),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId,...t})}},Wy=(e,{args:t=[],defaultValue:n}={})=>"function"==typeof e?e(...t):void 0!==e?e:n,Vy=(e,{defaultValue:t,async:n=!0,delay:i=0}={})=>(...o)=>{const r=Wy(e,{defaultValue:t,args:o});return n?new Promise((e=>{setTimeout((()=>e(r)),i)})):r},zy=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function Hy(e){return!zy.includes(e)}function jy(e){const t=Wy(e.getLayout);return t.qInfo&&t.qInfo.qId}function Uy(e,t){let n=jy(e);const{delay:i}=t,{id:o,session:r,...s}=e;if(o&&n&&o!==n)throw new Error(`Generic object has multiple IDs, qInfo.qId: ${n}, id: ${o}`);return n=n||o||"object - "+ +Date.now(),{[n]:{id:n,session:Wy(r,{defaultValue:!0}),on:()=>{},once:()=>{},...Object.entries(s).reduce(((e,[t,n])=>({...e,[t]:Vy(n,{async:Hy(t),delay:i})})),{}),genericType:e.type}}}function $y(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!jy(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}const Ky=function(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach($y);const n=function(e,t){return e.reduce(((e,n)=>({...e,...Uy(n,t)})),{})}(e,t);return async e=>Promise.resolve(n[e])},Gy=function(){return()=>Promise.resolve({id:"app-layout"})},Zy={fromGenericObjects:(e,t={})=>function(e,t={}){const n=new Py,i=new By,o=new Ky(e,t),r=new Gy,s={id:"app - "+ +Date.now(),session:n,createSessionObject:i,getObject:o,getAppLayout:r};return Promise.resolve(s)}(e,t)},Qy=Zy,Yy={generator:Dy,hook:VC,theme:ud,locale:uc};var Xy=s(32981),Jy=s(16254),ew=s(26613),tw=s(82665),nw=s(70200);function iw(e){return(0,kt.Z)("MuiToolbar",e)}(0,Lt.Z)("MuiToolbar",["root","gutters","regular","dense"]);const ow=["className","component","disableGutters","variant"],rw=(0,xt.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,_t.Z)({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),sw=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:r=!1,variant:s="regular"}=n,a=(0,vt.Z)(n,ow),l=(0,_t.Z)({},n,{component:o,disableGutters:r,variant:s}),c=(e=>{const{classes:t,disableGutters:n,variant:i}=e,o={root:["root",!n&&"gutters",i]};return(0,Ct.Z)(o,iw,t)})(l);return(0,Nt.jsx)(rw,(0,_t.Z)({as:o,className:(0,bt.Z)(c.root,i),ref:t,ownerState:l},a))})),aw=sw;function lw(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}function cw(e){return(0,kt.Z)("MuiToggleButtonGroup",e)}const dw=(0,Lt.Z)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical"]),uw=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],hw=(0,xt.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${dw.grouped}`]:t.grouped},{[`& .${dw.grouped}`]:t[`grouped${(0,Ut.Z)(n.orientation)}`]},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})((({ownerState:e,theme:t})=>(0,_t.Z)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${dw.grouped}`]:(0,_t.Z)({},"horizontal"===e.orientation?{"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0},[`&.${dw.selected} + .${dw.grouped}.${dw.selected}`]:{borderLeft:0,marginLeft:0}}:{"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`&.${dw.selected} + .${dw.grouped}.${dw.selected}`]:{borderTop:0,marginTop:0}})}))),gw=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiToggleButtonGroup"}),{children:o,className:r,color:s="standard",disabled:a=!1,exclusive:l=!1,fullWidth:c=!1,onChange:d,orientation:u="horizontal",size:h="medium",value:g}=i,p=(0,vt.Z)(i,uw),m=(0,_t.Z)({},i,{disabled:a,fullWidth:c,orientation:u,size:h}),f=(e=>{const{classes:t,orientation:n,fullWidth:i,disabled:o}=e,r={root:["root","vertical"===n&&"vertical",i&&"fullWidth"],grouped:["grouped",`grouped${(0,Ut.Z)(n)}`,o&&"disabled"]};return(0,Ct.Z)(r,cw,t)})(m),v=(e,t)=>{if(!d)return;const n=g&&g.indexOf(t);let i;g&&n>=0?(i=g.slice(),i.splice(n,1)):i=g?g.concat(t):[t],d(e,i)},_=(e,t)=>{d&&d(e,g===t?null:t)};return(0,Nt.jsx)(hw,(0,_t.Z)({role:"group",className:(0,bt.Z)(f.root,r),ref:t,ownerState:m},p,{children:n.Children.map(o,(e=>n.isValidElement(e)?n.cloneElement(e,{className:(0,bt.Z)(f.grouped,e.props.className),onChange:l?_:v,selected:void 0===e.props.selected?lw(e.props.value,g):e.props.selected,size:e.props.size||h,fullWidth:c,color:e.props.color||s,disabled:e.props.disabled||a}):null))}))})),pw=gw;function mw(e){return(0,kt.Z)("MuiToggleButton",e)}const fw=(0,Lt.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),vw=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],_w=(0,xt.ZP)(vr,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${(0,Ut.Z)(n.size)}`]]}})((({theme:e,ownerState:t})=>{let n,i="standard"===t.color?e.palette.text.primary:e.palette[t.color].main;return e.vars&&(i="standard"===t.color?e.vars.palette.text.primary:e.vars.palette[t.color].main,n="standard"===t.color?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),(0,_t.Z)({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${fw.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ro.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fw.selected}`]:{color:i,backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:(0,Ro.Fq)(i,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${n} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Ro.Fq)(i,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:(0,Ro.Fq)(i,e.palette.action.selectedOpacity)}}}},"small"===t.size&&{padding:7,fontSize:e.typography.pxToRem(13)},"large"===t.size&&{padding:15,fontSize:e.typography.pxToRem(15)})})),bw=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiToggleButton"}),{children:i,className:o,color:r="standard",disabled:s=!1,disableFocusRipple:a=!1,fullWidth:l=!1,onChange:c,onClick:d,selected:u,size:h="medium",value:g}=n,p=(0,vt.Z)(n,vw),m=(0,_t.Z)({},n,{color:r,disabled:s,disableFocusRipple:a,fullWidth:l,size:h}),f=(e=>{const{classes:t,fullWidth:n,selected:i,disabled:o,size:r,color:s}=e,a={root:["root",i&&"selected",o&&"disabled",n&&"fullWidth",`size${(0,Ut.Z)(r)}`,s]};return(0,Ct.Z)(a,mw,t)})(m);return(0,Nt.jsx)(_w,(0,_t.Z)({className:(0,bt.Z)(f.root,o),disabled:s,focusRipple:!a,ref:t,onClick:e=>{d&&(d(e,g),e.defaultPrevented)||c&&c(e,g)},onChange:c,value:g,ownerState:m,"aria-pressed":u},p,{children:i}))})),Cw=bw;function yw(e){return(0,kt.Z)("MuiMenu",e)}(0,Lt.Z)("MuiMenu",["root","paper","list"]);const ww=["onEntering"],Sw=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],xw={vertical:"top",horizontal:"right"},Lw={vertical:"top",horizontal:"left"},kw=(0,xt.ZP)(eh,{shouldForwardProp:e=>(0,xt.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ew=(0,xt.ZP)(Hu,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Nw=(0,xt.ZP)(av,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Dw=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:r,disableAutoFocusItem:s=!1,MenuListProps:a={},onClose:l,open:c,PaperProps:d={},PopoverClasses:u,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:p="selectedMenu"}=i,m=(0,vt.Z)(i.TransitionProps,ww),f=(0,vt.Z)(i,Sw),v=Yt(),_="rtl"===v.direction,b=(0,_t.Z)({},i,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:a,onEntering:g,PaperProps:d,transitionDuration:h,TransitionProps:m,variant:p}),C=(e=>{const{classes:t}=e;return(0,Ct.Z)({root:["root"],paper:["paper"],list:["list"]},yw,t)})(b),y=o&&!s&&c,w=n.useRef(null);let S=-1;return n.Children.map(r,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===p&&e.props.selected||-1===S)&&(S=t))})),(0,Nt.jsx)(kw,(0,_t.Z)({onClose:l,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?xw:Lw,PaperProps:(0,_t.Z)({as:Ew},d,{classes:(0,_t.Z)({},d.classes,{root:C.paper})}),className:C.root,open:c,ref:t,transitionDuration:h,TransitionProps:(0,_t.Z)({onEntering:(e,t)=>{w.current&&w.current.adjustStyleForScrollbar(e,v),g&&g(e,t)}},m),ownerState:b},f,{classes:u,children:(0,Nt.jsx)(Nw,(0,_t.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),l&&l(e,"tabKeyDown"))},actions:w,autoFocus:o&&(-1===S||s),autoFocusItem:y,variant:p},a,{className:(0,bt.Z)(C.list,a.className),children:r}))}))})),Iw=Dw,Rw=new Map,Tw=[],Ow=Tw.map,qw=Tw.some,Aw=Tw.hasOwnProperty,Mw=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,Pw=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,Fw=/(?:\.[^/]*|\/)$/;class Bw extends Error{constructor(e){super(e)}}function Ww(e){const t=Mw.exec(e);return t&&{name:t[1],version:t[2],path:t[3]}}function Vw(e){const t=new Map,n=o(null);function i(e){if("string"!=typeof e)return e;let n=t.get(e);return n||t.set(e,n=new Promise(((t,n)=>{const i=document.createElement("script");i.onload=()=>{try{t(Tw.pop()(o(e)))}catch(e){n(new Bw("invalid module"))}i.remove()},i.onerror=()=>{n(new Bw("unable to load module")),i.remove()},i.async=!0,i.src=e,window.define=Uw,document.head.appendChild(i)}))),n}function o(t){return n=>Promise.resolve(e(n,t)).then(i)}function r(e){return arguments.length>1?Promise.all(Ow.call(arguments,n)).then(zw):n(e)}return r.alias=function(t){return Vw(((n,i)=>n in t&&(i=null,"string"!=typeof(n=t[n]))?n:e(n,i)))},r.resolve=e,r}function zw(e){const t={};for(const n of e)for(const e in n)Aw.call(n,e)&&(null==n[e]?Object.defineProperty(t,e,{get:Hw(n,e)}):t[e]=n[e]);return t}function Hw(e,t){return()=>e[t]}function jw(e){return"exports"==(e+="")||"module"===e}function Uw(e,t,n){const i=arguments.length;i<2?(n=e,t=[]):i<3&&(n=t,t="string"==typeof e?[]:e),Tw.push(qw.call(t,jw)?e=>{const i={},o={exports:i};return Promise.all(Ow.call(t,(t=>"exports"==(t+="")?i:"module"===t?o:e(t)))).then((e=>(n.apply(null,e),o.exports)))}:e=>Promise.all(Ow.call(t,e)).then((e=>"function"==typeof n?n.apply(null,e):n)))}Bw.prototype.name=Bw.name,Vw(function(e="https://cdn.jsdelivr.net/npm/",t=["unpkg","jsdelivr","browser","main"]){if(!/\/$/.test(e))throw new Error("origin lacks trailing slash");function n(t){const n=`${e}${t.name}${t.version?`@${t.version}`:""}/package.json`;let i=Rw.get(n);return i||Rw.set(n,i=fetch(n).then((e=>{if(!e.ok)throw new Bw("unable to load package.json");return e.redirected&&!Rw.has(e.url)&&Rw.set(e.url,i),e.json()}))),i}return async function(i,o){if(i.startsWith(e)&&(i=i.substring(e.length)),/^(\w+:)|\/\//i.test(i))return i;if(/^[.]{0,2}\//i.test(i))return new URL(i,null==o?location:o).href;if(!i.length||/^[\s._]/.test(i)||/\s$/.test(i))throw new Bw("illegal name");const r=Ww(i);if(!r)return`${e}${i}`;if(!r.version&&null!=o&&o.startsWith(e)){const t=await n(Ww(o.substring(e.length)));r.version=t.dependencies&&t.dependencies[r.name]||t.peerDependencies&&t.peerDependencies[r.name]}if(r.path&&!Fw.test(r.path)&&(r.path+=".js"),r.path&&r.version&&Pw.test(r.version))return`${e}${r.name}@${r.version}/${r.path}`;const s=await n(r);return`${e}${s.name}@${s.version}/${r.path||function(e){for(const n of t){let t=e[n];if("string"==typeof t)return t.startsWith("./")&&(t=t.slice(2)),Fw.test(t)?t:`${t}.js`}}(s)||"index.js"}`}}()),Uw.amd={};const $w=(t,n)=>{const i=n?e=>e:e=>`/pkg/${encodeURIComponent(e)}`;return Vw((async e=>i(e))).alias({"@nebula.js/stardust":e})(n||t)},Kw={};function Gw(e){const[t]=Fd(),n=t.get(e),[i,...o]=jd(n,"getProperties");return[i,e=>n.setProperties(e),...o]}window.onHotChange=(e,t)=>(Kw[e]||(Kw[e]=[]),Kw[e].push(t),window[e]&&t(),()=>{const n=Kw[e].indexOf(t);Kw[e].splice(n,1)});const Zw=n.createContext(),Qw=e=>({qDef:{qFieldDefs:[e]}});function Yw({dc:e,def:t,properties:n,dimensions:i}){const o=n,r={dimensions:()=>i,measures:()=>[],addDimension(n){const i="string"==typeof n?Qw(n):{...n,qDef:n.qDef||{}};return i.qDef.cId=i.qDef.cId||g_(),i.qDef.qSortCriterias=e&&e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],t.dimensions.added(i,o),i},removeDimension(e){const n=i[e];return t.dimensions.removed(n,o,e),n},maxDimensions(){const{max:e}=t.dimensions||{};return("function"==typeof e?e():e)||0},maxMeasures:()=>0,canAddDimension:()=>r.dimensions().length<r.maxDimensions(),canAddMeasure:()=>!1};return r}const Xw={qInfo:{qType:"DimensionList",qId:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{labelExpression:"/qDimension/qLabelExpression",title:"/qMetaDef/title"}}},Jw={qInfo:{qType:"MeasureList",qId:"MeasureList"},qMeasureListDef:{qType:"measure",qData:{labelExpression:"/qMeasure/qLabelExpression",title:"/qMetaDef/title"}}};function eS(e,t="dimension"){const n="dimension"===t?Xw:Jw,[i]=Wd(n,e),[o]=Ud(i);return[o&&(o.qDimensionList||o.qMeasureList).qItems||[]]}function tS(e){return(0,kt.Z)("MuiListSubheader",e)}(0,Lt.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const nS=["className","color","component","disableGutters","disableSticky","inset"],iS=(0,xt.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,Ut.Z)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,_t.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),oS=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiListSubheader"}),{className:i,color:o="default",component:r="li",disableGutters:s=!1,disableSticky:a=!1,inset:l=!1}=n,c=(0,vt.Z)(n,nS),d=(0,_t.Z)({},n,{color:o,component:r,disableGutters:s,disableSticky:a,inset:l}),u=(e=>{const{classes:t,color:n,disableGutters:i,inset:o,disableSticky:r}=e,s={root:["root","default"!==n&&`color${(0,Ut.Z)(n)}`,!i&&"gutters",o&&"inset",!r&&"sticky"]};return(0,Ct.Z)(s,tS,t)})(d);return(0,Nt.jsx)(iS,(0,_t.Z)({as:r,className:(0,bt.Z)(u.root,i),ref:t,ownerState:d},c))}));oS.muiSkipListHighlight=!0;const rS=oS;var sS=s(25138),aS=s.n(sS),lS=s(18258),cS=s.n(lS),dS=s(38866),uS=s(44526),hS=s(7833);function gS(e){return(0,kt.Z)("MuiInput",e)}const pS=(0,_t.Z)({},el,(0,Lt.Z)("MuiInput",["root","underline","input"])),mS=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],fS=(0,xt.ZP)(yl,{shouldForwardProp:e=>(0,xt.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bl(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,_t.Z)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${pS.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pS.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${pS.disabled}, .${pS.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${pS.disabled}:before`]:{borderBottomStyle:"dotted"}})})),vS=(0,xt.ZP)(wl,{name:"MuiInput",slot:"Input",overridesResolver:Cl})({}),_S=n.forwardRef((function(e,t){var n,i,o,r;const s=(0,St.Z)({props:e,name:"MuiInput"}),{disableUnderline:a,components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:u="input",multiline:h=!1,slotProps:g,slots:p={},type:m="text"}=s,f=(0,vt.Z)(s,mS),v=(e=>{const{classes:t,disableUnderline:n}=e,i={root:["root",!n&&"underline"],input:["input"]},o=(0,Ct.Z)(i,gS,t);return(0,_t.Z)({},t,o)})(s),_={root:{ownerState:{disableUnderline:a}}},b=(null!=g?g:c)?(0,Ai.Z)(null!=g?g:c,_):_,C=null!=(n=null!=(i=p.root)?i:l.Root)?n:fS,y=null!=(o=null!=(r=p.input)?r:l.Input)?o:vS;return(0,Nt.jsx)(Ll,(0,_t.Z)({slots:{root:C,input:y},slotProps:b,fullWidth:d,inputComponent:u,multiline:h,ref:t,type:m},f,{classes:v}))}));_S.muiName="Input";const bS=_S;function CS(e){return(0,kt.Z)("MuiFilledInput",e)}const yS=(0,_t.Z)({},el,(0,Lt.Z)("MuiFilledInput",["root","underline","input"])),wS=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],SS=(0,xt.ZP)(yl,{shouldForwardProp:e=>(0,xt.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bl(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const i="light"===e.palette.mode,o=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,_t.Z)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${yS.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${yS.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${yS.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${yS.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${yS.disabled}, .${yS.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${yS.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,_t.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),xS=(0,xt.ZP)(wl,{name:"MuiFilledInput",slot:"Input",overridesResolver:Cl})((({theme:e,ownerState:t})=>(0,_t.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),LS=n.forwardRef((function(e,t){var n,i,o,r;const s=(0,St.Z)({props:e,name:"MuiFilledInput"}),{components:a={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:u=!1,slotProps:h,slots:g={},type:p="text"}=s,m=(0,vt.Z)(s,wS),f=(0,_t.Z)({},s,{fullWidth:c,inputComponent:d,multiline:u,type:p}),v=(e=>{const{classes:t,disableUnderline:n}=e,i={root:["root",!n&&"underline"],input:["input"]},o=(0,Ct.Z)(i,CS,t);return(0,_t.Z)({},t,o)})(s),_={root:{ownerState:f},input:{ownerState:f}},b=(null!=h?h:l)?(0,Ai.Z)(null!=h?h:l,_):_,C=null!=(n=null!=(i=g.root)?i:a.Root)?n:SS,y=null!=(o=null!=(r=g.input)?r:a.Input)?o:xS;return(0,Nt.jsx)(Ll,(0,_t.Z)({slots:{root:C,input:y},componentsProps:b,fullWidth:c,inputComponent:d,multiline:u,ref:t,type:p},m,{classes:v}))}));LS.muiName="Input";const kS=LS;function ES(e){return(0,kt.Z)("MuiFormLabel",e)}const NS=(0,Lt.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),DS=["children","className","color","component","disabled","error","filled","focused","required"],IS=(0,xt.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,_t.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,_t.Z)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${NS.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${NS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${NS.error}`]:{color:(e.vars||e).palette.error.main}}))),RS=(0,xt.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${NS.error}`]:{color:(e.vars||e).palette.error.main}}))),TS=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiFormLabel"}),{children:i,className:o,component:r="label"}=n,s=(0,vt.Z)(n,DS),a=Xa({props:n,muiFormControl:Ya(),states:["color","required","focused","disabled","error","filled"]}),l=(0,_t.Z)({},n,{color:a.color||"primary",component:r,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,color:n,focused:i,disabled:o,error:r,filled:s,required:a}=e,l={root:["root",`color${(0,Ut.Z)(n)}`,o&&"disabled",r&&"error",s&&"filled",i&&"focused",a&&"required"],asterisk:["asterisk",r&&"error"]};return(0,Ct.Z)(l,ES,t)})(l);return(0,Nt.jsxs)(IS,(0,_t.Z)({as:r,ownerState:l,className:(0,bt.Z)(c.root,o),ref:t},s,{children:[i,a.required&&(0,Nt.jsxs)(RS,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))})),OS=TS;function qS(e){return(0,kt.Z)("MuiInputLabel",e)}(0,Lt.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const AS=["disableAnimation","margin","shrink","variant","className"],MS=(0,xt.ZP)(OS,{shouldForwardProp:e=>(0,xt.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${NS.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,_t.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,_t.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,_t.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,_t.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),PS=n.forwardRef((function(e,t){const n=(0,St.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,shrink:o,className:r}=n,s=(0,vt.Z)(n,AS),a=Ya();let l=o;void 0===l&&a&&(l=a.filled||a.focused||a.adornedStart);const c=Xa({props:n,muiFormControl:a,states:["size","variant","required"]}),d=(0,_t.Z)({},n,{disableAnimation:i,formControl:a,shrink:l,size:c.size,variant:c.variant,required:c.required}),u=(e=>{const{classes:t,formControl:n,size:i,shrink:o,disableAnimation:r,variant:s,required:a}=e,l={root:["root",n&&"formControl",!r&&"animated",o&&"shrink","small"===i&&"sizeSmall",s],asterisk:[a&&"asterisk"]},c=(0,Ct.Z)(l,qS,t);return(0,_t.Z)({},t,c)})(d);return(0,Nt.jsx)(MS,(0,_t.Z)({"data-shrink":l,ownerState:d,ref:t,className:(0,bt.Z)(u.root,r)},s,{classes:u}))})),FS=PS;function BS(e){return(0,kt.Z)("MuiFormControl",e)}(0,Lt.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const WS=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],VS=(0,xt.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,_t.Z)({},t.root,t[`margin${(0,Ut.Z)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,_t.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),zS=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiFormControl"}),{children:o,className:r,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:u=!1,hiddenLabel:h=!1,margin:g="none",required:p=!1,size:m="medium",variant:f="outlined"}=i,v=(0,vt.Z)(i,WS),_=(0,_t.Z)({},i,{color:s,component:a,disabled:l,error:c,fullWidth:u,hiddenLabel:h,margin:g,required:p,size:m,variant:f}),b=(e=>{const{classes:t,margin:n,fullWidth:i}=e,o={root:["root","none"!==n&&`margin${(0,Ut.Z)(n)}`,i&&"fullWidth"]};return(0,Ct.Z)(o,BS,t)})(_),[C,y]=n.useState((()=>{let e=!1;return o&&n.Children.forEach(o,(t=>{if(!(0,Ds.Z)(t,["Input","Select"]))return;const n=(0,Ds.Z)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[w,S]=n.useState((()=>{let e=!1;return o&&n.Children.forEach(o,(t=>{(0,Ds.Z)(t,["Input","Select"])&&(vl(t.props,!0)||vl(t.props.inputProps,!0))&&(e=!0)})),e})),[x,L]=n.useState(!1);l&&x&&L(!1);const k=void 0===d||l?x:d;let E;const N=n.useMemo((()=>({adornedStart:C,setAdornedStart:y,color:s,disabled:l,error:c,filled:w,focused:k,fullWidth:u,hiddenLabel:h,size:m,onBlur:()=>{L(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{L(!0)},registerEffect:E,required:p,variant:f})),[C,s,l,c,w,k,u,h,E,p,m,f]);return(0,Nt.jsx)(Qa.Provider,{value:N,children:(0,Nt.jsx)(VS,(0,_t.Z)({as:a,ownerState:_,className:(0,bt.Z)(b.root,r),ref:t},v,{children:o}))})})),HS=zS;function jS(e){return(0,kt.Z)("MuiFormHelperText",e)}const US=(0,Lt.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var $S;const KS=["children","className","component","disabled","error","filled","focused","margin","required","variant"],GS=(0,xt.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,Ut.Z)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,_t.Z)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${US.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${US.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),ZS=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiFormHelperText"}),{children:i,className:o,component:r="p"}=n,s=(0,vt.Z)(n,KS),a=Xa({props:n,muiFormControl:Ya(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,_t.Z)({},n,{component:r,contained:"filled"===a.variant||"outlined"===a.variant,variant:a.variant,size:a.size,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,contained:n,size:i,disabled:o,error:r,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",r&&"error",i&&`size${(0,Ut.Z)(i)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return(0,Ct.Z)(c,jS,t)})(l);return(0,Nt.jsx)(GS,(0,_t.Z)({as:r,ownerState:l,className:(0,bt.Z)(c.root,o),ref:t},s,{children:" "===i?$S||($S=(0,Nt.jsx)("span",{className:"notranslate",children:""})):i}))})),QS=ZS;function YS(e){return(0,kt.Z)("MuiNativeSelect",e)}const XS=(0,Lt.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),JS=["className","disabled","error","IconComponent","inputRef","variant"],ex=({ownerState:e,theme:t})=>(0,_t.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,_t.Z)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${XS.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),tx=(0,xt.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:xt.FO,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${XS.multiple}`]:t.multiple}]}})(ex),nx=({ownerState:e,theme:t})=>(0,_t.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${XS.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),ix=(0,xt.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Ut.Z)(n.variant)}`],n.open&&t.iconOpen]}})(nx),ox=n.forwardRef((function(e,t){const{className:i,disabled:o,error:r,IconComponent:s,inputRef:a,variant:l="standard"}=e,c=(0,vt.Z)(e,JS),d=(0,_t.Z)({},e,{disabled:o,variant:l,error:r}),u=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r,error:s}=e,a={select:["select",n,i&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${(0,Ut.Z)(n)}`,r&&"iconOpen",i&&"disabled"]};return(0,Ct.Z)(a,YS,t)})(d);return(0,Nt.jsxs)(n.Fragment,{children:[(0,Nt.jsx)(tx,(0,_t.Z)({ownerState:d,className:(0,bt.Z)(u.select,i),disabled:o,ref:a||t},c)),e.multiple?null:(0,Nt.jsx)(ix,{as:s,ownerState:d,className:u.icon})]})})),rx=ox;function sx(e){return(0,kt.Z)("MuiSelect",e)}const ax=(0,Lt.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var lx;const cx=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],dx=(0,xt.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ax.select}`]:t.select},{[`&.${ax.select}`]:t[n.variant]},{[`&.${ax.error}`]:t.error},{[`&.${ax.multiple}`]:t.multiple}]}})(ex,{[`&.${ax.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ux=(0,xt.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Ut.Z)(n.variant)}`],n.open&&t.iconOpen]}})(nx),hx=(0,xt.ZP)("input",{shouldForwardProp:e=>(0,xt.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function gx(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function px(e){return null==e||"string"==typeof e&&!e.trim()}const mx=n.forwardRef((function(e,t){const{"aria-describedby":i,"aria-label":o,autoFocus:r,autoWidth:s,children:a,className:l,defaultOpen:c,defaultValue:d,disabled:u,displayEmpty:h,error:g=!1,IconComponent:p,inputRef:m,labelId:f,MenuProps:v={},multiple:_,name:b,onBlur:C,onChange:y,onClose:w,onFocus:S,onOpen:x,open:L,readOnly:k,renderValue:E,SelectDisplayProps:N={},tabIndex:D,value:I,variant:R="standard"}=e,T=(0,vt.Z)(e,cx),[O,q]=(0,Mh.Z)({controlled:I,default:d,name:"Select"}),[A,M]=(0,Mh.Z)({controlled:L,default:c,name:"Select"}),P=n.useRef(null),F=n.useRef(null),[B,W]=n.useState(null),{current:V}=n.useRef(null!=L),[z,H]=n.useState(),j=(0,To.Z)(t,m),U=n.useCallback((e=>{F.current=e,e&&W(e)}),[]),$=null==B?void 0:B.parentNode;n.useImperativeHandle(j,(()=>({focus:()=>{F.current.focus()},node:P.current,value:O})),[O]),n.useEffect((()=>{c&&A&&B&&!V&&(H(s?null:$.clientWidth),F.current.focus())}),[B,s]),n.useEffect((()=>{r&&F.current.focus()}),[r]),n.useEffect((()=>{if(!f)return;const e=(0,Ea.Z)(F.current).getElementById(f);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[f]);const K=(e,t)=>{e?x&&x(t):w&&w(t),V||(H(s?null:$.clientWidth),M(e))},G=n.Children.toArray(a),Z=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(_){n=Array.isArray(O)?O.slice():[];const t=O.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),O!==n&&(q(n),y)){const i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:b}}),y(o,e)}_||K(!1,t)}},Q=null!==B&&A;let Y,X;delete T["aria-invalid"];const J=[];let ee=!1,te=!1;(vl({value:O})||h)&&(E?Y=E(O):ee=!0);const ne=G.map((e=>{if(!n.isValidElement(e))return null;let t;if(_){if(!Array.isArray(O))throw new Error((0,il.Z)(2));t=O.some((t=>gx(t,e.props.value))),t&&ee&&J.push(e.props.children)}else t=gx(O,e.props.value),t&&ee&&(X=e.props.children);return t&&(te=!0),n.cloneElement(e,{"aria-selected":t?"true":"false",onClick:Z(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ee&&(Y=_?0===J.length?null:J.reduce(((e,t,n)=>(e.push(t),n<J.length-1&&e.push(", "),e)),[]):X);let ie,oe=z;!s&&V&&B&&(oe=$.clientWidth),ie=void 0!==D?D:u?null:0;const re=N.id||(b?`mui-component-select-${b}`:void 0),se=(0,_t.Z)({},e,{variant:R,value:O,open:Q,error:g}),ae=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r,error:s}=e,a={select:["select",n,i&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${(0,Ut.Z)(n)}`,r&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return(0,Ct.Z)(a,sx,t)})(se);return(0,Nt.jsxs)(n.Fragment,{children:[(0,Nt.jsx)(dx,(0,_t.Z)({ref:U,tabIndex:ie,role:"button","aria-disabled":u?"true":void 0,"aria-expanded":Q?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[f,re].filter(Boolean).join(" ")||void 0,"aria-describedby":i,onKeyDown:e=>{k||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),K(!0,e))},onMouseDown:u||k?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),K(!0,e))},onBlur:e=>{!Q&&C&&(Object.defineProperty(e,"target",{writable:!0,value:{value:O,name:b}}),C(e))},onFocus:S},N,{ownerState:se,className:(0,bt.Z)(N.className,ae.select,l),id:re,children:px(Y)?lx||(lx=(0,Nt.jsx)("span",{className:"notranslate",children:""})):Y})),(0,Nt.jsx)(hx,(0,_t.Z)({"aria-invalid":g,value:Array.isArray(O)?O.join(","):O,name:b,ref:P,"aria-hidden":!0,onChange:e=>{const t=G.map((e=>e.props.value)).indexOf(e.target.value);if(-1===t)return;const n=G[t];q(n.props.value),y&&y(e,n)},tabIndex:-1,disabled:u,className:ae.nativeInput,autoFocus:r,ownerState:se},T)),(0,Nt.jsx)(ux,{as:p,className:ae.icon,ownerState:se}),(0,Nt.jsx)(Iw,(0,_t.Z)({id:`menu-${b||""}`,anchorEl:$,open:Q,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:(0,_t.Z)({"aria-labelledby":f,role:"listbox",disableListWrap:!0},v.MenuListProps),PaperProps:(0,_t.Z)({},v.PaperProps,{style:(0,_t.Z)({minWidth:oe},null!=v.PaperProps?v.PaperProps.style:null)}),children:ne}))]})})),fx=mx,vx=(0,no.Z)((0,Nt.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),_x=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],bx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,xt.FO)(e)&&"variant"!==e,slot:"Root"},Cx=(0,xt.ZP)(bS,bx)(""),yx=(0,xt.ZP)(Rl,bx)(""),wx=(0,xt.ZP)(kS,bx)(""),Sx=n.forwardRef((function(e,t){const i=(0,St.Z)({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:r,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=vx,id:u,input:h,inputProps:g,label:p,labelId:m,MenuProps:f,multiple:v=!1,native:_=!1,onClose:b,onOpen:C,open:y,renderValue:w,SelectDisplayProps:S,variant:x="outlined"}=i,L=(0,vt.Z)(i,_x),k=_?rx:fx,E=Xa({props:i,muiFormControl:Ya(),states:["variant","error"]}),N=E.variant||x,D=(0,_t.Z)({},i,{variant:N,classes:s}),I=(e=>{const{classes:t}=e;return t})(D),R=h||{standard:(0,Nt.jsx)(Cx,{ownerState:D}),outlined:(0,Nt.jsx)(yx,{label:p,ownerState:D}),filled:(0,Nt.jsx)(wx,{ownerState:D})}[N],T=(0,To.Z)(t,R.ref);return(0,Nt.jsx)(n.Fragment,{children:n.cloneElement(R,(0,_t.Z)({inputComponent:k,inputProps:(0,_t.Z)({children:r,error:E.error,IconComponent:d,variant:N,type:void 0,multiple:v},_?{id:u}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:f,onClose:b,onOpen:C,open:y,renderValue:w,SelectDisplayProps:(0,_t.Z)({id:u},S)},g,{classes:g?(0,Ai.Z)(I,g.classes):I},h?h.props.inputProps:{})},v&&_&&"outlined"===N?{notched:!0}:{},{ref:T,className:(0,bt.Z)(R.props.className,a)},!h&&{variant:N},L))})}));Sx.muiName="Select";const xx=Sx;function Lx(e){return(0,kt.Z)("MuiTextField",e)}(0,Lt.Z)("MuiTextField",["root"]);const kx=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ex={standard:bS,filled:kS,outlined:Rl},Nx=(0,xt.ZP)(HS,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dx=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:r,className:s,color:a="primary",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:u,fullWidth:h=!1,helperText:g,id:p,InputLabelProps:m,inputProps:f,InputProps:v,inputRef:_,label:b,maxRows:C,minRows:y,multiline:w=!1,name:S,onBlur:x,onChange:L,onClick:k,onFocus:E,placeholder:N,required:D=!1,rows:I,select:R=!1,SelectProps:T,type:O,value:q,variant:A="outlined"}=n,M=(0,vt.Z)(n,kx),P=(0,_t.Z)({},n,{autoFocus:o,color:a,disabled:c,error:d,fullWidth:h,multiline:w,required:D,select:R,variant:A}),F=(e=>{const{classes:t}=e;return(0,Ct.Z)({root:["root"]},Lx,t)})(P),B={};"outlined"===A&&(m&&void 0!==m.shrink&&(B.notched=m.shrink),B.label=b),R&&(T&&T.native||(B.id=void 0),B["aria-describedby"]=void 0);const W=(0,hS.Z)(p),V=g&&W?`${W}-helper-text`:void 0,z=b&&W?`${W}-label`:void 0,H=Ex[A],j=(0,Nt.jsx)(H,(0,_t.Z)({"aria-describedby":V,autoComplete:i,autoFocus:o,defaultValue:l,fullWidth:h,multiline:w,name:S,rows:I,maxRows:C,minRows:y,type:O,value:q,id:W,inputRef:_,onBlur:x,onChange:L,onFocus:E,onClick:k,placeholder:N,inputProps:f},B,v));return(0,Nt.jsxs)(Nx,(0,_t.Z)({className:(0,bt.Z)(F.root,s),disabled:c,error:d,fullWidth:h,ref:t,required:D,color:a,variant:A,ownerState:P},M,{children:[null!=b&&""!==b&&(0,Nt.jsx)(FS,(0,_t.Z)({htmlFor:W,id:z},m,{children:b})),R?(0,Nt.jsx)(xx,(0,_t.Z)({"aria-describedby":V,id:W,labelId:z,value:q,input:j},T,{children:r})):j,g&&(0,Nt.jsx)(QS,(0,_t.Z)({id:V},u,{children:g}))]}))})),Ix=Dx,Rx="Search",Tx={gridContainer:`${Rx}-gridContainer`,gridItem:`${Rx}-gridItem`},Ox=(0,xt.ZP)(Ar)((({theme:e})=>({[`& .${Tx.gridContainer}`]:{padding:e.spacing(0,1,0,1)},[`& .${Tx.gridItem}`]:{padding:e.spacing(0,1,0,1)}})));function qx({onChange:e=(()=>{}),onEnter:t=(()=>{}),onEscape:i=(()=>{})}){const[o,r]=(0,n.useState)("");return n.createElement(Ox,{className:Tx.gridContainer,item:!0,container:!0,direction:"row",alignItems:"center"},n.createElement(Ar,{item:!0},n.createElement(Ev,null)),n.createElement(Ar,{className:Tx.gridItem,item:!0,xs:!0},n.createElement(Ix,{fullWidth:!0,autoFocus:!0,placeholder:"Search",value:o,onChange:t=>{r(t.target.value),e(t.target.value)},onKeyDown:e=>{switch(e.key){case"Enter":t(),r("");break;case"Escape":i()}}})))}function Ax({field:e,onSelect:t,sub:i,parts:o}){return n.createElement(js,{button:!0,onClick:()=>t(e.qName),"data-key":e.qName},n.createElement(Qs,null,o.map(((e,t)=>n.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))),i&&n.createElement(dS.Z,{fontSize:"small"}))}function Mx({item:e,onSelect:t,parts:i}){return n.createElement(js,{button:!0,onClick:()=>t(e.qInfo),"data-key":e.qInfo.qId},n.createElement(Qs,null,i.map(((e,t)=>n.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))))}function Px({aggr:e,field:t,onSelect:i}){return n.createElement(js,{button:!0,onClick:()=>i(e),"data-key":e},n.createElement(Qs,null,`${e}(${t})`))}function Fx({app:e,onSelect:t,title:i="",type:o="dimension",searchTerm:r=""}){const[s]=eS(e,o),a=(0,n.useMemo)((()=>s.slice().sort(((e,t)=>e.qData.title.toLowerCase().localeCompare(t.qData.title.toLowerCase())))),[s]);return s.length>0?n.createElement(n.Fragment,null,n.createElement(rS,{component:"div",style:{backgroundColor:"inherit"}},i),a.map((e=>{const i=cS()(e.qData.title,r),o=aS()(e.qData.title,i);return r&&0===i.length?null:n.createElement(Mx,{key:e.qInfo.qId,item:e,onSelect:t,parts:o})}))):null}function Bx({alignTo:e,show:t,close:i,onSelected:o,type:r}){const s=(0,n.useContext)(Zw),[a,l]=(0,n.useState)(null),[c,d]=(0,n.useState)(""),u=Yt(),[h]=Wd({qInfo:{qType:"FieldList",qId:"FieldList"},qFieldListDef:{qShowDerivedFelds:!1,qShowHidden:!1,qShowSemantic:!0,qShowSrcTables:!0,qShowSystem:!1}},s),[g]=Ud(h),p=(0,n.useMemo)((()=>(g&&g.qFieldList.qItems||[]).slice().sort(((e,t)=>e.qName.toLowerCase().localeCompare(t.qName.toLowerCase())))),[g]),m=e=>{e&&e.qId?(o(e),i()):"measure"===r?l(e):(o({field:e}),i())},f=e=>{o({field:a,aggregation:e}),i()};return n.createElement(eh,{open:t,onClose:i,anchorEl:e.current,marginThreshold:16,elevation:3,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px",maxHeight:"300px",background:u.palette.background.lightest}}},!a&&n.createElement(qx,{onChange:d}),a&&n.createElement(Es,{dense:!0,component:"nav"},n.createElement(js,{button:!0,onClick:()=>l(null)},n.createElement(Jf,null,n.createElement(uS.Z,null)),n.createElement(Qs,null,"Back")),n.createElement(Of,null),n.createElement(rS,{component:"div"},"Aggregation"),["sum","count","avg","min","max"].map((e=>n.createElement(Px,{key:e,aggr:e,field:a,onSelect:f})))),!a&&p.length>0&&n.createElement(Es,{dense:!0,component:"nav",style:{background:u.palette.background.lightest}},n.createElement(Fx,{app:s,onSelect:m,type:r,title:"measure"===r?"Measures":"Dimensions",searchTerm:c}),n.createElement(rS,{component:"div",style:{backgroundColor:"inherit"}},"Fields"),p.map((e=>{const t=cS()(e.qName,c),i=aS()(e.qName,t);return c&&0===t.length?null:n.createElement(Ax,{key:e.qName,field:e,onSelect:m,sub:"measure"===r,parts:i})}))))}const Wx=({field:e,libraryItems:t})=>{if(e.qLibraryId){const n=t.filter((t=>t.qInfo.qId===e.qLibraryId))[0];return n?n.qData.title:"!!!"}return e.qDef&&e.qDef.qFieldDefs?e.qDef.qFieldDefs[0]:e.qDef&&e.qDef.qDef?e.qDef.qDef:"???"};function Vx({items:e,type:t="dimension",label:i="",addLabel:o="Add",onAdded:r,onRemoved:s,canAdd:a=!0}){const[l,c]=(0,n.useState)(!1),d=(0,n.useRef)(null),u=(0,n.useContext)(Zw),[h]=eS(u,t);return n.createElement("div",null,n.createElement(zr,{variant:"overline"},i),n.createElement(Es,{dense:!0},e.map(((e,i)=>n.createElement(js,{disableGutters:!0,key:e.qDef&&e.qDef.cId||i},n.createElement(Qs,null,n.createElement(Wx,{field:e,libraryItems:h,type:t})),n.createElement(Fs,null,n.createElement(Sr,{onClick:()=>{s(i)},size:"large"},n.createElement(ys,null))))))),n.createElement(Wl,{variant:"contained",fullWidth:!0,onClick:()=>{c(!l)},ref:d,disabled:!a},o),l&&n.createElement(Bx,{alignTo:d,show:l,close:()=>c(!1),onSelected:e=>{e.qId?r(e):e&&r("dimension"===t?e.field:`${e.aggregation||"sum"}([${e.field}])`)},type:t}))}const zx=(e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o};function Hx({setProperties:e,target:t,properties:i}){const[o,r]=(0,n.useState)([]),s=t.dimensions&&t.dimensions.max&&t.dimensions.max()>1?Yw:X_,a=t.propertyPath.match("/qHyperCube")?Q_:s,l=zx(i,t.propertyPath),c=(0,n.useMemo)((()=>a({def:t,dc:l,properties:i,dimensions:o})),[l,t,i,o]);return n.createElement("div",{style:{width:"100%"}},n.createElement(zr,{color:"textSecondary",style:{fontFamily:"Monaco, monospace",fontSize:"0.7rem"}},t.propertyPath),n.createElement(Vx,{key:"dimensions",onAdded:t=>{const n="object"==typeof t?{qLibraryId:t.qId}:t,s=c.addDimension(n);e(i).then((()=>{r([...o,s])}))},onRemoved:t=>{c.removeDimension(t),e(i).then((()=>{r([...o.slice(0,t),...o.slice(t+1)])}))},canAdd:c.canAddDimension(),items:c.dimensions(),type:"dimension",label:"Dimensions",addLabel:"Add dimension"}),n.createElement(Vx,{key:"measures",onAdded:t=>{c.addMeasure("object"==typeof t?{qLibraryId:t.qId}:t),e(i)},onRemoved:t=>{c.removeMeasure(t),e(i)},canAdd:c.canAddMeasure(),items:c.measures(),type:"measure",label:"Measures",addLabel:"Add measures"}))}function jx({setProperties:e,sn:t,properties:i}){if(!t)return null;const{targets:o}=t.qae.data;return o.length?n.createElement(Es,null,o.map((t=>n.createElement(js,{key:t.propertyPath,divider:!0,disableGutters:!0},n.createElement(Hx,{target:t,properties:i,setProperties:e}))))):n.createElement(zr,null,"No data targets found")}const Ux=n.createContext({});function $x(e){return(0,kt.Z)("MuiAccordion",e)}const Kx=(0,Lt.Z)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),Gx=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],Zx=(0,xt.ZP)(Hu,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Kx.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${Kx.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${Kx.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),(({theme:e,ownerState:t})=>(0,_t.Z)({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${Kx.expanded}`]:{margin:"16px 0"}}))),Qx=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiAccordion"}),{children:o,className:r,defaultExpanded:s=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:d,square:u=!1,TransitionComponent:h=fs,TransitionProps:g}=i,p=(0,vt.Z)(i,Gx),[m,f]=(0,Mh.Z)({controlled:c,default:s,name:"Accordion",state:"expanded"}),v=n.useCallback((e=>{f(!m),d&&d(e,!m)}),[m,d,f]),[_,...b]=n.Children.toArray(o),C=n.useMemo((()=>({expanded:m,disabled:a,disableGutters:l,toggle:v})),[m,a,l,v]),y=(0,_t.Z)({},i,{square:u,disabled:a,disableGutters:l,expanded:m}),w=(e=>{const{classes:t,square:n,expanded:i,disabled:o,disableGutters:r}=e,s={root:["root",!n&&"rounded",i&&"expanded",o&&"disabled",!r&&"gutters"],region:["region"]};return(0,Ct.Z)(s,$x,t)})(y);return(0,Nt.jsxs)(Zx,(0,_t.Z)({className:(0,bt.Z)(w.root,r),ref:t,ownerState:y,square:u},p,{children:[(0,Nt.jsx)(Ux.Provider,{value:C,children:_}),(0,Nt.jsx)(h,(0,_t.Z)({in:m,timeout:"auto"},g,{children:(0,Nt.jsx)("div",{"aria-labelledby":_.props.id,id:_.props["aria-controls"],role:"region",className:w.region,children:b})}))]}))})),Yx=Qx;function Xx(e){return(0,kt.Z)("MuiAccordionSummary",e)}const Jx=(0,Lt.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),eL=["children","className","expandIcon","focusVisibleClassName","onClick"],tL=(0,xt.ZP)(vr,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return(0,_t.Z)({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${Jx.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Jx.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Jx.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${Jx.expanded}`]:{minHeight:64}})})),nL=(0,xt.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>(0,_t.Z)({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Jx.expanded}`]:{margin:"20px 0"}}))),iL=(0,xt.ZP)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${Jx.expanded}`]:{transform:"rotate(180deg)"}}))),oL=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiAccordionSummary"}),{children:o,className:r,expandIcon:s,focusVisibleClassName:a,onClick:l}=i,c=(0,vt.Z)(i,eL),{disabled:d=!1,disableGutters:u,expanded:h,toggle:g}=n.useContext(Ux),p=(0,_t.Z)({},i,{expanded:h,disabled:d,disableGutters:u}),m=(e=>{const{classes:t,expanded:n,disabled:i,disableGutters:o}=e,r={root:["root",n&&"expanded",i&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]};return(0,Ct.Z)(r,Xx,t)})(p);return(0,Nt.jsxs)(tL,(0,_t.Z)({focusRipple:!1,disableRipple:!0,disabled:d,component:"div","aria-expanded":h,className:(0,bt.Z)(m.root,r),focusVisibleClassName:(0,bt.Z)(m.focusVisible,a),onClick:e=>{g&&g(e),l&&l(e)},ref:t,ownerState:p},c,{children:[(0,Nt.jsx)(nL,{className:m.content,ownerState:p,children:o}),s&&(0,Nt.jsx)(iL,{className:m.expandIconWrapper,ownerState:p,children:s})]}))})),rL=oL;function sL(e){return(0,kt.Z)("MuiAccordionDetails",e)}(0,Lt.Z)("MuiAccordionDetails",["root"]);const aL=["className"],lL=(0,xt.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({padding:e.spacing(1,2,2)}))),cL=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiAccordionDetails"}),{className:i}=n,o=(0,vt.Z)(n,aL),r=n,s=(e=>{const{classes:t}=e;return(0,Ct.Z)({root:["root"]},sL,t)})(r);return(0,Nt.jsx)(lL,(0,_t.Z)({className:(0,bt.Z)(s.root,i),ref:t,ownerState:r},o))})),dL=cL;var uL=s(59579);let hL=null;const gL="AutoComponents",pL={summary:`${gL}-summary`,details:`${gL}-details`,root:`${gL}-root`},mL=(0,xt.ZP)(Ar)((({theme:e})=>({[`& .${pL.summary}`]:{padding:e.spacing(0,1),backgroundColor:e.palette.background.lighter,borderBottom:`1px solid ${e.palette.divider}`},[`& .${pL.details}`]:{padding:e.spacing(1)}}))),fL=(0,xt.ZP)(Yx)((({theme:e})=>({[`& .${pL.root}`]:{boxShadow:"none",marginLeft:-e.spacing(1),marginRight:-e.spacing(1),"&$expanded":{marginLeft:-e.spacing(1),marginRight:-e.spacing(1)}}}))),vL=(e,t)=>Array.isArray(e)?"array":CL&&"variable"===t&&"object"==typeof e&&"name"in e&&"value"in e?"variable":CL&&e&&"object"==typeof e&&"qStringExpression"in e?"expression":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"number"==typeof e?"number":e&&"object"==typeof e?"object":"unknown",_L={boolean:function({property:e,value:t,target:i,changed:o}){return n.createElement(Ah,{control:n.createElement(eg,{checked:t,onChange:t=>{i[e]=t.target.checked,o()}}),label:e,labelPlacement:"end"})},string:function({property:e,value:t,target:i,changed:o}){const[r,s]=(0,n.useState)(t);return n.createElement(Ix,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==t&&(i[e]=r,o())},label:e,value:r})},object:function({property:e,value:t,changed:i,app:o}){return n.createElement(fL,{square:!0,className:pL.root},n.createElement(rL,{expandIcon:n.createElement(uL.Z,null),className:pL.summary},n.createElement(zr,null,e)),n.createElement(dL,{className:pL.details},yL(t,i,o)))},number:function({property:e,value:t,target:i,changed:o}){const[r,s]=(0,n.useState)(+t);return n.createElement(Ix,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==t&&(i[e]=+r,o())},label:e,value:r})},expression:function({property:e,value:t,target:i,changed:o}){const r=t.qStringExpression&&t.qStringExpression.qExpr?t.qStringExpression.qExpr:"",[s,a]=(0,n.useState)(r);return n.createElement(Ix,{variant:"standard",InputProps:{startAdornment:n.createElement(kv,{position:"start"},"=")},fullWidth:!0,onChange:e=>{a(e.target.value)},onBlur:()=>{s!==t&&(i[e].qStringExpression={qExpr:`=${s}`},o())},label:e,value:s})},variable:function({property:e,value:t,target:i,changed:o,app:r}){const[s,a]=(0,n.useState)(t.name),[l,c]=(0,n.useState)([]);return(0,n.useEffect)((()=>{!async function(){const e=await async function(e){return hL||(hL=await e.createSessionObject({qInfo:{qType:"VariableList"},qVariableListDef:{qType:"variable",qShowReserved:!1,qShowConfig:!1}})),(await hL.getLayout()).qVariableList.qItems.map((e=>({value:e.qName,label:e.qName.length>50?`${e.qName.slice(0,50)}...`:e.qName})))}(r);c(e)}()}),[]),0===l.length?n.createElement("em",null,"No variables in app"):n.createElement(HS,{size:"small",fullWidth:!0},n.createElement(xx,{onChange:t=>{a(t.target.value),i[e].name=t.target.value,i[e].value={qStringExpression:{qExpr:`[${t.target.value}]`}},o()},displayEmpty:!0,fullWidth:!0,value:s,renderValue:e=>0===e.length?n.createElement("em",null,"Select a variable"):e},l.map((e=>n.createElement(Zf,{key:e.value,value:e.value},e.label)))))}},bL=/^q[A-Z]/;let CL=!1;function yL(e,t,i,o){o&&o.PP_EXPRESSIONS&&(CL=!0);const r=Object.keys(e).map((t=>{if(-1!==["visualization","version"].indexOf(t))return!1;if(bL.test(t))return!1;const n=vL(e[t],t);return!!_L[n]&&{Component:_L[n],property:t,target:e,value:e[t],key:`${t}:${e[t]}`}})).filter(Boolean);return n.createElement(mL,{container:!0,direction:"column",gap:0,alignItems:"stretch"},r.map((o=>n.createElement(Ar,{item:!0,xs:!0,key:o.key,style:{width:"100%"}},n.createElement(o.Component,{key:o.key,app:i,property:o.property,value:o.value,target:e,changed:t})))))}function wL({viz:e,sn:t,isTemp:i,storage:o,flags:r}){const[s,a]=Gw(e.id),l=(0,n.useContext)(Zw),[c,d]=(0,n.useState)(!1!==o.get("readFromCache")),u=(0,n.useCallback)((()=>{a(s)}),[e,t,s]);return t&&e&&s?n.createElement("div",{style:{minWidth:"250px",padding:"8px"}},i&&n.createElement(n.Fragment,null,n.createElement(Ar,{item:!0,container:!0,alignItems:"center"},n.createElement(Ah,{control:n.createElement(eg,{checked:c,onChange:e=>{o.save("readFromCache",e.target.checked),d(e.target.checked)},value:"isReadFromCacheEnabled"}),label:"Enable property cache",labelPlacement:"end"})),n.createElement(Of,null)),n.createElement(jx,{properties:s,setProperties:a,sn:t}),yL(s,u,l,r)):null}function SL(e){return(0,kt.Z)("MuiDialog",e)}const xL=(0,Lt.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),LL=n.createContext({}),kL=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],EL=(0,xt.ZP)(Tu,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),NL=(0,xt.ZP)(Pu,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),DL=(0,xt.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,Ut.Z)(n.scroll)}`]]}})((({ownerState:e})=>(0,_t.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),IL=(0,xt.ZP)(Hu,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,Ut.Z)(n.scroll)}`],t[`paperWidth${(0,Ut.Z)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>(0,_t.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${xL.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${xL.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${xL.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),RL=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiDialog"}),o=Yt(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:d,className:u,disableEscapeKeyDown:h=!1,fullScreen:g=!1,fullWidth:p=!1,maxWidth:m="sm",onBackdropClick:f,onClose:v,open:_,PaperComponent:b=Hu,PaperProps:C={},scroll:y="paper",TransitionComponent:w=Eu,transitionDuration:S=r,TransitionProps:x}=i,L=(0,vt.Z)(i,kL),k=(0,_t.Z)({},i,{disableEscapeKeyDown:h,fullScreen:g,fullWidth:p,maxWidth:m,scroll:y}),E=(e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:o,fullScreen:r}=e,s={root:["root"],container:["container",`scroll${(0,Ut.Z)(n)}`],paper:["paper",`paperScroll${(0,Ut.Z)(n)}`,`paperWidth${(0,Ut.Z)(String(i))}`,o&&"paperFullWidth",r&&"paperFullScreen"]};return(0,Ct.Z)(s,SL,t)})(k),N=n.useRef(),D=(0,hS.Z)(a),I=n.useMemo((()=>({titleId:D})),[D]);return(0,Nt.jsx)(NL,(0,_t.Z)({className:(0,bt.Z)(E.root,u),closeAfterTransition:!0,components:{Backdrop:EL},componentsProps:{backdrop:(0,_t.Z)({transitionDuration:S,as:l},c)},disableEscapeKeyDown:h,onClose:v,open:_,ref:t,onClick:e=>{N.current&&(N.current=null,f&&f(e),v&&v(e,"backdropClick"))},ownerState:k},L,{children:(0,Nt.jsx)(w,(0,_t.Z)({appear:!0,in:_,timeout:S,role:"presentation"},x,{children:(0,Nt.jsx)(DL,{className:(0,bt.Z)(E.container),onMouseDown:e=>{N.current=e.target===e.currentTarget},ownerState:k,children:(0,Nt.jsx)(IL,(0,_t.Z)({as:b,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":D},C,{className:(0,bt.Z)(E.paper,C.className),ownerState:k,children:(0,Nt.jsx)(LL.Provider,{value:I,children:d})}))})}))}))})),TL=RL;function OL(e){return(0,kt.Z)("MuiDialogTitle",e)}const qL=(0,Lt.Z)("MuiDialogTitle",["root"]),AL=["className","id"],ML=(0,xt.ZP)(zr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),PL=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiDialogTitle"}),{className:o,id:r}=i,s=(0,vt.Z)(i,AL),a=i,l=(e=>{const{classes:t}=e;return(0,Ct.Z)({root:["root"]},OL,t)})(a),{titleId:c=r}=n.useContext(LL);return(0,Nt.jsx)(ML,(0,_t.Z)({component:"h2",className:(0,bt.Z)(l.root,o),ownerState:a,ref:t,variant:"h6",id:null!=r?r:c},s))})),FL=PL;function BL(e){return(0,kt.Z)("MuiDialogContent",e)}(0,Lt.Z)("MuiDialogContent",["root","dividers"]);const WL=["className","dividers"],VL=(0,xt.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>(0,_t.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${qL.root} + &`]:{paddingTop:0}}))),zL=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=n,r=(0,vt.Z)(n,WL),s=(0,_t.Z)({},n,{dividers:o}),a=(e=>{const{classes:t,dividers:n}=e,i={root:["root",n&&"dividers"]};return(0,Ct.Z)(i,BL,t)})(s);return(0,Nt.jsx)(VL,(0,_t.Z)({className:(0,bt.Z)(a.root,i),ownerState:s,ref:t},r))})),HL=zL;function jL(e){return(0,kt.Z)("MuiDialogActions",e)}(0,Lt.Z)("MuiDialogActions",["root","spacing"]);const UL=["className","disableSpacing"],$L=(0,xt.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,_t.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}))),KL=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=n,r=(0,vt.Z)(n,UL),s=(0,_t.Z)({},n,{disableSpacing:o}),a=(e=>{const{classes:t,disableSpacing:n}=e,i={root:["root",!n&&"spacing"]};return(0,Ct.Z)(i,jL,t)})(s);return(0,Nt.jsx)($L,(0,_t.Z)({className:(0,bt.Z)(a.root,i),ownerState:s,ref:t},r))})),GL=KL;var ZL=s(1599);function QL({model:e,show:t,close:i}){const[o,r]=(0,n.useState)(""),[s,a]=(0,n.useState)(null),[l,c]=(0,n.useState)([]),[d,u,h]=Kd(),g=Yt(),p=(0,n.useCallback)((()=>{l.length||e.setProperties(JSON.parse(s.getValue())).then(i)}));return(0,n.useEffect)((()=>{if(!t)return;const n=()=>{e&&t&&e.getProperties().then((e=>{t&&r(JSON.stringify(e||{},null,2))}))};return e.on("changed",n),n(),()=>{e&&e.removeListener("changed",n)}}),[e&&e.id,t]),(0,n.useEffect)((()=>{if(!(d&&h&&u&&o))return;const{left:e,top:t,width:n,height:i}=u;if(0===e&&0===t&&0===n&&0===i)return;const r=ZL.editor.create(h,{value:o,language:"json",scrollBeyondLastLine:!1,theme:"dark"===g.palette.mode?"vs-dark":"vs-light"});r.layout({width:u.width,height:u.height});const s=r.onDidChangeModelDecorations((()=>{const e=ZL.editor.getModelMarkers();c(e)}));return r.focus(),a(r),()=>{s.dispose();const e=r.getModel();e&&e.dispose(),r.dispose()}}),[h,u,o]),n.createElement(TL,{disableEscapeKeyDown:!0,open:t,scroll:"paper",maxWidth:"md",onClose:i,PaperProps:{style:{height:"80%",width:"80%"}}},n.createElement(FL,null,"Modify object properties"),n.createElement(HL,{dividers:!0},n.createElement("div",{ref:d,style:{overflow:"hidden",height:"100%"}})),n.createElement(GL,null,n.createElement(Wl,{variant:"contained",onClick:i},"Cancel"),n.createElement(Wl,{variant:"contained",onClick:p,disabled:l.length>0},"Confirm")))}const YL=n.createContext({currentThemeName:null,activeViz:null,setActiveViz:()=>{},expandedObject:null,setExpandedObject:()=>{}}),XL=n.createContext();function JL({id:e,onLoad:t}){const i=(0,n.useContext)(XL),o=(0,n.useRef)();return(0,n.useEffect)((()=>{const n=i.render({id:e,element:o.current});return n.then((e=>{t(e,o.current)})),()=>{n.then((e=>{e.destroy()}))}}),[e]),n.createElement("div",{ref:o,style:{height:"100%",backgroundColor:"white"}})}const ek="Cell",tk={secondaryIcon:`${ek}-secondaryIcon`,drop:`${ek}-drop`},nk=(0,xt.ZP)(Ar)((({theme:e})=>({[`& .${tk.secondaryIcon}`]:{color:e.palette.text.secondary},[`& .${tk.drop}`]:{boxShadow:e.shadows[1],borderRadius:`${e.shape.borderRadius}px`}})));function ik({id:e,expandable:t,minHeight:i}){const o=(0,n.useContext)(Zw),[r,s]=(0,n.useState)(null),[a,l]=(0,n.useState)(!1),[c,d]=(0,n.useState)(null),{currentThemeName:u,activeViz:h,setActiveViz:g,setExpandedObject:p,expandedObject:m}=(0,n.useContext)(YL),f=m===e,v=(0,n.useRef)();(0,n.useEffect)((()=>{const t=o.getObject(e).then((e=>(s(e),e)));return()=>{t.then((e=>e.emit("close")))}}),[e]);const[_,b]=(0,n.useState)(!1),C=(0,n.useCallback)((()=>{b(!1)}),[]),y=(0,n.useCallback)(((e,t)=>{v.current={viz:e,el:t},d(e)}),[e]),w=(0,n.useCallback)(((e=!1)=>{if(v.current)if(e)l(!0),v.current.viz.__DO_NOT_USE__.exportImage().then((e=>{e&&e.url&&window.open(e.url),l(!1)}));else{const e=v.current.el.getBoundingClientRect();v.current.viz.__DO_NOT_USE__.takeSnapshot().then((t=>{fetch("/njs/snapshot",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),window.open(`/render?snapshot=${t.key}`,"snapshot",`height=${Math.round(e.height)},width=${Math.round(e.width)}`)}))}}),[r,u]),S=!f&&v.current&&h&&h===v.current.viz?{boxShadow:"0px 0px 4px 2px rgba(0,100,200,0.85)"}:{},x=h===c;return n.createElement(nk,{container:!0,direction:"column",style:{minHeight:i,height:"100%",position:"relative"}},n.createElement(Ar,{item:!0},n.createElement(aw,{variant:"dense",disableGutters:!0,style:{padding:"0 0px",opacity:1}},n.createElement(QL,{model:r,show:_,close:C}),n.createElement(Sr,{title:"Modify object properties",className:tk.secondaryIcon,disabled:!r,onClick:()=>b(!0),size:"large"},Cs({size:"medium",viewBox:"0 0 16 16",shapes:[{type:"path",attrs:{d:"M14,8 C14,8.2 14,8.4 14,8.6 L16,9.6 L15.4,11.4 L13.2,11 C13,11.3 12.8,11.7 12.5,12 L13.6,14 L12,15 L10.4,13.4 C10,13.5 9.7,13.7 9.3,13.8 L9,16 L7,16 L6.7,13.8 C6.3,13.7 5.9,13.6 5.6,13.4 L4,15 L2.4,13.9 L3.5,11.9 C3.2,11.6 3,11.3 2.8,10.9 L0.6,11.3 L0,9.6 L2,8.6 C2,8.4 2,8.2 2,8 C2,7.8 2,7.6 2,7.4 L0,6.4 L0.6,4.6 L2.8,5 C3,4.7 3.2,4.3 3.5,4 L2.4,2 L4,1 L5.6,2.6 C6,2.4 6.3,2.3 6.7,2.2 L7,0 L9,0 L9.3,2.2 C9.7,2.3 10.1,2.4 10.4,2.6 L12,1 L13.6,2.1 L12.5,4.1 C12.8,4.4 13,4.7 13.2,5.1 L15.4,4.7 L16,6.4 L14,7.4 C14,7.6 14,7.8 14,8 Z M8,11 C9.7,11 11,9.7 11,8 C11,6.3 9.7,5 8,5 C6.3,5 5,6.3 5,8 C5,9.7 6.3,11 8,11 Z"}}]})),n.createElement(Sr,{title:"Open in single render view",className:tk.secondaryIcon,disabled:!r,href:r?`${document.location.href.replace(/\/dev\//,"/render/")}${window.location.search?"&":"?"}object=${r.id}&theme=${u}&language=en-US`:"",target:"_blank",size:"large"},Cs({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})),n.createElement(Sr,{title:"Take and render as snapshot",className:tk.secondaryIcon,disabled:!r,onClick:()=>w(),size:"large"},Cs({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"}}]})),a?n.createElement(cc,{size:24}):n.createElement(Sr,{title:"Export as image",className:tk.secondaryIcon,disabled:!r,onClick:()=>w(!0),size:"large"},Cs({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}}]})),n.createElement(Ar,{item:!0,xs:!0}),t&&n.createElement(Sr,{title:"Edit",className:tk.secondaryIcon,disabled:!c||x,onClick:()=>g(c),size:"large"},Cs({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}}]})),t&&n.createElement(Sr,{title:"Expand",disabled:!r||!c,className:tk.secondaryIcon,onClick:()=>{f?p(null):(p(e),g(c))},size:"large"},Cs({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:f?"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z":"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}}]})))),n.createElement(Ar,{item:!0,xs:!0,style:{...S},className:tk.drop},n.createElement(JL,{id:e,onLoad:y})))}function ok({info:e,storage:t,uid:i}){const o=(0,n.useContext)(XL),{activeViz:r,setActiveViz:s}=(0,n.useContext)(YL),[a]=Gw(i);return(0,n.useEffect)((()=>{if(!i)return;const n=o.render({type:e.supernova.name,properties:{...!1!==t.get("readFromCache")?t.props(e.supernova.name):{},qInfo:{qId:i,qType:e.supernova.name}}});return n.then((e=>{s(e)})),()=>{n.then((e=>e.destroy()))}}),[i]),(0,n.useEffect)((()=>{a&&t.props(e.supernova.name,a)}),[a]),r&&r.id===i?n.createElement(Ar,{item:!0,container:!0,justifyContent:"center",style:{height:"100%"}},n.createElement(Ar,{item:!0,xs:!0},n.createElement(ik,{id:i}))):null}function rk({types:e,cache:t}){const i=(0,n.useContext)(Zw),[o]=$d(i),[r,s]=(0,n.useState)(null),{expandedObject:a}=(0,n.useContext)(YL);if((0,n.useEffect)((()=>{i.getObjects({qTypes:e,qData:{title:"/qMetaDef/title"}}).then((e=>{s(e.slice(0,20))}))}),[o,e.join(":")]),!r)return null;const l=a?r.filter((e=>e.qInfo.qId===a)):r;return n.createElement(Ar,{container:!0,justifyContent:"center",gap:a?0:2,style:{height:a?"100%":void 0}},l[0]?l.map((e=>n.createElement(Ar,{item:!0,xs:12,md:a?12:6,lg:a?12:4,key:`${e.qInfo.qId}::${t}`},n.createElement(ik,{id:e.qInfo.qId,expandable:!0,minHeight:600})))):n.createElement(Ar,{item:!0},n.createElement("div",null,n.createElement(zr,{display:"inline"},"Could not find any components with "),n.createElement(zr,{display:"inline"},n.createElement("code",null,`qType: "${e[0]}"`)),n.createElement(zr,{display:"inline"}," in the current app"))))}const sk=["en-US","it-IT","zh-CN","zh-TW","ko-KR","de-DE","sv-SE","es-ES","pt-BR","ja-JP","fr-FR","nl-NL","tr-TR","pl-PL","ru-RU"],ak=["select","active","passive"];function lk(e){return{select:-1!==e.indexOf("select"),active:-1!==e.indexOf("active"),passive:-1!==e.indexOf("passive"),edit:-1!==e.indexOf("edit")}}function ck(){const e=(0,n.useRef)(),t=K(),{info:i}=lt(),{waiting:o,app:r}=(({info:e})=>{const[t,i]=(0,n.useState)(null),[o,r]=(0,n.useState)(!0);(0,n.useEffect)((()=>{r(!0),e&&s().then((e=>i(e))).catch((e=>console.log(e))).finally((()=>r(!1)))}),[e]);const s=async()=>{try{const{clientId:t,webIntegrationId:n,enigma:i=null,enigma:{host:o}={}}=e;let r="";if(n){const t=await at({webIntegrationId:n,host:o});r=await t.generateWebsocketUrl(e?.enigma.appId)}else if(t){const{webSocketUrl:t}=await(await fetch(`/getSocketUrl/${e?.enigma.appId}`)).json();r=t}else r=ve().buildUrl(i);return(await pe().create({schema:me,url:r}).open()).openDoc(e?.enigma.appId)}catch(e){throw new Error("Failed to open app!")}};return{waiting:o,app:t,setApp:i}})({info:i}),s=(0,n.useMemo)((()=>ht(r)),[r]),[a,l]=(0,n.useState)(null),[c,d]=(0,n.useState)(null),[u,h]=(0,n.useState)(null),[g,p]=(0,n.useState)(s.get("themeName")),[m,f]=(0,n.useState)(s.get("language")||"en-US"),[v,_]=(0,n.useState)("light"),[b,C]=(0,n.useState)(ak),[y,w]=(0,n.useState)(!0===s.get("objectListMode")),S=(0,n.useRef)(null),[x,L]=(0,n.useState)(),[k,E]=n.useState(null),[N,D]=n.useState(null),[I,R]=(0,n.useState)(!1),[T,O]=(0,n.useState)(null),q=Array.isArray(i?.themes)&&i.themes.length?["light","dark",...i.themes]:[],A=(0,n.useMemo)((()=>Ri(v)),[v]),M=(0,n.useMemo)((()=>({currentThemeName:g,activeViz:a,setActiveViz:l,expandedObject:c,setExpandedObject:d})),[a,c,g]);(0,n.useEffect)((()=>{(async()=>{i&&(await function(e){const t=()=>{$w(e.supernova.name,e.supernova.url).then((t=>{var n;window[e.supernova.name]=t,n=e.supernova.name,Kw[n]&&Kw[n].forEach((e=>e()))}))};if(e.sock.port&&(new WebSocket(`ws://localhost:${e.sock.port}`).onmessage=()=>{t()}),t(),e.types){const t=e.types.map((e=>$w(e.name,e.url).then((t=>{window[e.name]=t}))));return Promise.all(t)}return Promise.resolve()}(i),R(!0))})()}),[i]),(0,n.useEffect)((()=>{if(o||!I)return;const e=My(r,{context:{theme:g,language:m,interactions:lk(b),keyboardNavigation:i?.keyboardNavigation},load:e=>Promise.resolve(window[e.name]),flags:i?.flags,themes:i?.themes?i?.themes.map((e=>({id:e,load:()=>fetch(`/theme/${e}`).then((e=>e.json())).then((e=>(_("dark"===e.type?"dark":"light"),e)))}))):null});e.__DO_NOT_USE__.types.register(i?.supernova),i?.types&&i?.types.forEach((t=>{e.__DO_NOT_USE__.types.register(t)})),O(e)}),[r,i,o,I]),(0,n.useLayoutEffect)((()=>{T&&(T.context({theme:g}),"light"!==g&&"dark"!==g||_(g))}),[T,g]),(0,n.useEffect)((()=>{T&&(T.selections().then((e=>e.mount(S.current))),window.onHotChange(i?.supernova.name,(()=>{T.__DO_NOT_USE__.types.clearFromCache(i?.supernova.name),T.__DO_NOT_USE__.types.register(i?.supernova),P(),T.__DO_NOT_USE__.types.get({name:i?.supernova.name}).supernova().then(h)})),P())}),[T,i]),(0,n.useEffect)((()=>{const t=()=>{r&&r.destroySessionObject(e.current)};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[r]);const P=()=>{window[i?.supernova.name]&&(e.current=String(Date.now()),L(e.current))};return n.createElement(Zw.Provider,{value:r},n.createElement(hi,{injectFirst:!0},n.createElement(dn,{theme:A},n.createElement(XL.Provider,{value:T},n.createElement(Ar,{container:!0,wrap:"nowrap",direction:"column",style:{background:A.palette.background.darkest,height:"100%"},gap:0},n.createElement(Ar,{item:!0},n.createElement(aw,{variant:"dense",style:{background:A.palette.background.paper,boxShadow:A.shadows[1]}},n.createElement(Ar,{container:!0,gap:1},n.createElement(Ar,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},n.createElement(Ar,{item:!0},n.createElement("a",{href:"https://github.com/qlik-oss/nebula.js",target:"_blank",rel:"noopener noreferrer"},n.createElement("img",{src:"/assets/logo.svg",alt:"nebula.js logo",href:"https://github.com/qlik-oss/nebula.js",style:{height:"24px",position:"relative",top:"2px"}})))),n.createElement(Ar,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},n.createElement(Sr,{title:"Home",onClick:()=>t("/"),size:"large"},n.createElement(Xy.Z,{style:{verticalAlign:"middle"}}))),n.createElement(Ar,{item:!0,xs:!0,zeroMinWidth:!0},n.createElement(Ba,{value:y?1:0,onChange:(e,t)=>{const n=1===t;s.save("objectListMode",n),n&&(l(null),d(null)),w(n)},"aria-label":"Navigation"},n.createElement(Ua,{label:n.createElement(zr,null,"Create"),value:0}),n.createElement(Ua,{label:n.createElement(zr,null,"Edit"),value:1}))),n.createElement(Ar,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},n.createElement(Ar,{item:!0,gap:1},n.createElement(zr,null,"State:")),n.createElement(Ar,{item:!0,gap:2},n.createElement(pw,{size:"small",value:b,onChange:(e,t)=>{C(t),T&&T.context({interactions:lk(t)})},color:"primary"},n.createElement(Cw,{value:"select"},"Select"),n.createElement(Cw,{value:"active"},"Active"),n.createElement(Cw,{value:"passive"},"Passive"),n.createElement(Cw,{value:"edit"},"Edit"))),n.createElement(Ar,{item:!0},q.length?n.createElement(n.Fragment,null,n.createElement(Sr,{title:"Select theme",onClick:e=>E(e.currentTarget),size:"large"},n.createElement(Jy.Z,{fontSize:"small"})),n.createElement(Iw,{anchorEl:k,open:!!k,keepMounted:!0,onClose:()=>E(null)},q.map((e=>n.createElement(Zf,{key:e,selected:e===g,onClick:()=>(e=>{E(null),s.save("themeName",e),p(e)})(e)},e))))):n.createElement(Sr,{title:"Toggle light/dark mode",onClick:()=>{const e="dark"===g?"light":"dark";s.save("themeName",e),p(e)},size:"large"},"dark"===g?n.createElement(ew.Z,{fontSize:"small"}):n.createElement(tw.Z,{fontSize:"small"}))),n.createElement(Ar,{item:!0},n.createElement(Wl,{startIcon:n.createElement(nw.Z,null),title:"Select language",onClick:e=>D(e.currentTarget)},m),n.createElement(Iw,{anchorEl:N,open:!!N,keepMounted:!0,onClose:()=>D(null)},sk.map((e=>n.createElement(Zf,{key:e,selected:e===m,onClick:()=>{return t=e,D(null),s.save("language",t),f(t),void(T&&T.context({language:t}));var t}},e))))))))),n.createElement(Ar,{item:!0,style:{padding:A.spacing(1,1,0,1)}},n.createElement("div",{ref:S,style:{flex:"0 0 auto",boxShadow:A.shadows[1]}})),n.createElement(Ar,{item:!0,xs:!0,style:{overflowX:"hidden",overflowY:"auto",padding:A.spacing(0,1,1,1)}},n.createElement(YL.Provider,{value:M},u?n.createElement(Ar,{container:!0,wrap:"nowrap",style:{height:"100%"},gap:1},n.createElement(Ar,{item:!0,xs:!0,zeroMinWidth:!0},y?n.createElement(rk,{cache:x,types:[i?.supernova.name]}):n.createElement(ok,{info:i,storage:s,uid:x})),a&&n.createElement(Ar,{item:!0,style:{background:A.palette.background.paper,overflow:"hidden auto",marginTop:48,boxShadow:A.shadows[1],padding:0}},n.createElement(wL,{sn:u,viz:a,isTemp:!y,storage:s,flags:i?.flags}))):n.createElement(Ar,{container:!0,wrap:"nowrap",style:{paddingTop:"48px"},justifyContent:"center"},n.createElement(Ar,{item:!0},n.createElement(cc,null))))))))))}const dk=()=>n.createElement(he,null,n.createElement(ft,null,n.createElement(ce,null,n.createElement(ae,{element:n.createElement(Do,null)},n.createElement(ae,{path:"/",element:n.createElement(Zl,null)}),n.createElement(ae,{path:"/app-list",element:n.createElement(dc,null)})),n.createElement(ae,{path:"/dev",element:n.createElement(ck,null)}))));i.createRoot(document.querySelector("#app")).render(n.createElement(dk,null))})()})();
|
|
102
|
+
`),oc))),lc=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:r=!1,size:s=40,style:a,thickness:l=3.6,value:c=0,variant:d="indeterminate"}=n,u=(0,vt.Z)(n,Yl),h=(0,_t.Z)({},n,{color:o,disableShrink:r,size:s,thickness:l,value:c,variant:d}),g=(e=>{const{classes:t,variant:n,color:i,disableShrink:o}=e,r={root:["root",n,`color${(0,Ut.Z)(i)}`],svg:["svg"],circle:["circle",`circle${(0,Ut.Z)(n)}`,o&&"circleDisableShrink"]};return(0,Ct.Z)(r,Ql,t)})(h),p={},m={},f={};if("determinate"===d){const e=2*Math.PI*((44-l)/2);p.strokeDasharray=e.toFixed(3),f["aria-valuenow"]=Math.round(c),p.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return(0,Nt.jsx)(rc,(0,_t.Z)({className:(0,bt.Z)(g.root,i),style:(0,_t.Z)({width:s,height:s},m,a),ownerState:h,ref:t,role:"progressbar"},f,u,{children:(0,Nt.jsx)(sc,{className:g.svg,ownerState:h,viewBox:"22 22 44 44",children:(0,Nt.jsx)(ac,{className:g.circle,style:p,ownerState:h,cx:44,cy:44,r:(44-l)/2,fill:"none",strokeWidth:l})})}))})),cc=lc,dc=()=>{const e=K(),t=U(),{info:i,glob:o,treatAsDesktop:r}=mt(),{loading:s,appList:a}=(({glob:e,info:t})=>{const i=K(),{setInfo:o,setActiveStep:r}=mt(),[s,a]=(0,n.useState)(),[l,c]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{r(1),st().then((e=>{o(e)}))}),[]),(0,n.useEffect)((()=>{if(s?.length)return;c(!0);const t=new URLSearchParams(window.location.search);t.get("qlik-client-id")&&!t.get("shouldFetchAppList")&&(async()=>{const{isAuthorized:e}=await(await fetch("/isAuthorized")).json();return{isAuthorized:e}})().then((({isAuthorized:e})=>{if(e){const e=new URL(window.location.href);e.search.includes("shouldFetchAppList")||e.searchParams.append("shouldFetchAppList",!0),i(decodeURIComponent(`${e.pathname}${e.search}`))}})),(t.get("shouldFetchAppList")?(async()=>await(await fetch("/apps")).json()||[])():e?.getDocList())?.then((e=>{a(e),e&&c(!1)}))}),[window.location.search,c,t,e]),{appList:s,loading:l}})({glob:o,info:i});return n.createElement(xo,null,n.createElement(zr,{variant:"h5",gutterBottom:!0},"Select an app"),s&&n.createElement(cc,{"data-testid":"loading",size:32}),!s&&a&&!a.length&&n.createElement(zr,{component:"span"},"No apps found!"),a&&a.length>0&&n.createElement(Es,null,a.map((o=>n.createElement(js,{button:!0,component:"a",key:o.qDocId,onClick:()=>(({navigate:e,location:t,targetApp:n,info:i})=>{const{search:o}=t,r=`${i.enigma.secure?"wss":"ws"}://${"localhost"===i.enigma.host?`${i.enigma.host}:${i.enigma.port}`:i.enigma.host}/app/${encodeURIComponent(n)}`;e(`/dev/${o.replace(i.engineUrl,r)}`.replace("&shouldFetchAppList=true",""))})({info:i,navigate:e,location:t,targetApp:r?o.qDocName:o.qDocId})},n.createElement(Qs,{primary:o.qTitle,secondary:o.qDocId}))))))};s(16595);const uc=({initial:e="en-US",fallback:t="en-US"}={})=>{const n=function({initial:e="en-US",fallback:t="en-US"}={}){const n={};let i=e;return{language:e=>(e&&(i=e),i),add:e=>{const{id:t,locale:i}=e;Object.keys(i).forEach((e=>{n[e]||(n[e]={}),n[e][t]=i[e]}))},get(e,o){let r;return r=n[i]&&void 0!==n[i][e]?n[i][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?((e="",t=[])=>{const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,((e,t)=>void 0!==n[t]?n[t]:e))})(r,o):r}}}({initial:e,fallback:t});return{translator:n}},hc=JSON.parse('{"Cancel":{"id":"Cancel","locale":{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},"CurrentSelections_All":{"id":"CurrentSelections.All","locale":{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},"CurrentSelections_Of":{"id":"CurrentSelections.Of","locale":{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},"Listbox_Dismiss":{"id":"Listbox.Dismiss","locale":{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},"Listbox_DrillDown":{"id":"Listbox.DrillDown","locale":{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},"Listbox_ItemsOverflow":{"id":"Listbox.ItemsOverflow","locale":{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},"Listbox_Lock":{"id":"Listbox.Lock","locale":{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},"Listbox_NoMatchesForYourTerms":{"id":"Listbox.NoMatchesForYourTerms","locale":{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},"Listbox_ResultFilterLabel":{"id":"Listbox.ResultFilterLabel","locale":{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},"Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu":{"id":"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu","locale":{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},"Listbox_ScreenReader_SelectionMenu_WithAccSelMenu":{"id":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu","locale":{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},"Listbox_ScreenReaderInstructions":{"id":"Listbox.ScreenReaderInstructions","locale":{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L\'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L\'attivazione degli elementi sottostanti causerà l\'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},"Listbox_Search":{"id":"Listbox.Search","locale":{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},"Listbox_Search_ScreenReaderInstructions":{"id":"Listbox.Search.ScreenReaderInstructions","locale":{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},"Listbox_Unlock":{"id":"Listbox.Unlock","locale":{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},"Menu_More":{"id":"Menu.More","locale":{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},"Navigate_Back":{"id":"Navigate.Back","locale":{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},"Navigate_Forward":{"id":"Navigate.Forward","locale":{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},"OK":{"id":"OK","locale":{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},"Object_Listbox_Alternative":{"id":"Object.Listbox.Alternative","locale":{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},"Object_Listbox_Excluded":{"id":"Object.Listbox.Excluded","locale":{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},"Object_Listbox_ExcludedLock":{"id":"Object.Listbox.ExcludedLock","locale":{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},"Object_Listbox_Locked":{"id":"Object.Listbox.Locked","locale":{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},"Object_Listbox_Optional":{"id":"Object.Listbox.Optional","locale":{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},"Object_Listbox_Selected":{"id":"Object.Listbox.Selected","locale":{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},"Object_Listbox_SelectedExcluded":{"id":"Object.Listbox.SelectedExcluded","locale":{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},"Object_Update_Active":{"id":"Object.Update.Active","locale":{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},"Object_Update_Cancelled":{"id":"Object.Update.Cancelled","locale":{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},"Retry":{"id":"Retry","locale":{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},"ScreenReader_ManySelected":{"id":"ScreenReader.ManySelected","locale":{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},"ScreenReader_OneSelected":{"id":"ScreenReader.OneSelected","locale":{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},"ScreenReader_ZeroSelected":{"id":"ScreenReader.ZeroSelected","locale":{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n\'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},"Selection_Cancel":{"id":"Selection.Cancel","locale":{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},"Selection_Clear":{"id":"Selection.Clear","locale":{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},"Selection_ClearAll":{"id":"Selection.ClearAll","locale":{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},"Selection_ClearAllStates":{"id":"Selection.ClearAllStates","locale":{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},"Selection_Confirm":{"id":"Selection.Confirm","locale":{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},"Selection_Menu":{"id":"Selection.Menu","locale":{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":"Меню \\"Выборка\\"","sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},"Selection_SelectAll":{"id":"Selection.SelectAll","locale":{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},"Selection_SelectAlternative":{"id":"Selection.SelectAlternative","locale":{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},"Selection_SelectExcluded":{"id":"Selection.SelectExcluded","locale":{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},"Selection_SelectPossible":{"id":"Selection.SelectPossible","locale":{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},"SelectionToolbar_ClickToUnlock":{"id":"SelectionToolbar.ClickToUnlock","locale":{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},"Visualization_Incomplete":{"id":"Visualization.Incomplete","locale":{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},"Visualization_Incomplete_Dimensions":{"id":"Visualization.Incomplete.Dimensions","locale":{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},"Visualization_Incomplete_Measures":{"id":"Visualization.Incomplete.Measures","locale":{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},"Visualization_Invalid_Dimension":{"id":"Visualization.Invalid.Dimension","locale":{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},"Visualization_Invalid_Measure":{"id":"Visualization.Invalid.Measure","locale":{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},"Visualization_LayoutError":{"id":"Visualization.LayoutError","locale":{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},"Visualization_UnfulfilledCalculationCondition":{"id":"Visualization.UnfulfilledCalculationCondition","locale":{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}}');var gc=s(25476),pc=s.n(gc);function mc(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function fc(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function vc(){}var _c=.7,bc=1/_c,Cc="\\s*([+-]?\\d+)\\s*",yc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Sc=/^#([0-9a-f]{3,8})$/,xc=new RegExp(`^rgb\\(${Cc},${Cc},${Cc}\\)$`),Lc=new RegExp(`^rgb\\(${wc},${wc},${wc}\\)$`),kc=new RegExp(`^rgba\\(${Cc},${Cc},${Cc},${yc}\\)$`),Ec=new RegExp(`^rgba\\(${wc},${wc},${wc},${yc}\\)$`),Nc=new RegExp(`^hsl\\(${yc},${wc},${wc}\\)$`),Dc=new RegExp(`^hsla\\(${yc},${wc},${wc},${yc}\\)$`),Ic={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 Rc(){return this.rgb().formatHex()}function Tc(){return this.rgb().formatRgb()}function Oc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Sc.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?qc(t):3===n?new Pc(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ac(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ac(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=xc.exec(e))?new Pc(t[1],t[2],t[3],1):(t=Lc.exec(e))?new Pc(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=kc.exec(e))?Ac(t[1],t[2],t[3],t[4]):(t=Ec.exec(e))?Ac(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Nc.exec(e))?Hc(t[1],t[2]/100,t[3]/100,1):(t=Dc.exec(e))?Hc(t[1],t[2]/100,t[3]/100,t[4]):Ic.hasOwnProperty(e)?qc(Ic[e]):"transparent"===e?new Pc(NaN,NaN,NaN,0):null}function qc(e){return new Pc(e>>16&255,e>>8&255,255&e,1)}function Ac(e,t,n,i){return i<=0&&(e=t=n=NaN),new Pc(e,t,n,i)}function Mc(e,t,n,i){return 1===arguments.length?((o=e)instanceof vc||(o=Oc(o)),o?new Pc((o=o.rgb()).r,o.g,o.b,o.opacity):new Pc):new Pc(e,t,n,null==i?1:i);var o}function Pc(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function Fc(){return`#${zc(this.r)}${zc(this.g)}${zc(this.b)}`}function Bc(){const e=Wc(this.opacity);return`${1===e?"rgb(":"rgba("}${Vc(this.r)}, ${Vc(this.g)}, ${Vc(this.b)}${1===e?")":`, ${e})`}`}function Wc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vc(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zc(e){return((e=Vc(e))<16?"0":"")+e.toString(16)}function Hc(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Uc(e,t,n,i)}function jc(e){if(e instanceof Uc)return new Uc(e.h,e.s,e.l,e.opacity);if(e instanceof vc||(e=Oc(e)),!e)return new Uc;if(e instanceof Uc)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2;return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new Uc(s,a,l,e.opacity)}function Uc(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function $c(e){return(e=(e||0)%360)<0?e+360:e}function Kc(e){return Math.max(0,Math.min(1,e||0))}function Gc(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}mc(vc,Oc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Rc,formatHex:Rc,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return jc(this).formatHsl()},formatRgb:Tc,toString:Tc}),mc(Pc,Mc,fc(vc,{brighter(e){return e=null==e?bc:Math.pow(bc,e),new Pc(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?_c:Math.pow(_c,e),new Pc(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pc(Vc(this.r),Vc(this.g),Vc(this.b),Wc(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:Fc,formatHex:Fc,formatHex8:function(){return`#${zc(this.r)}${zc(this.g)}${zc(this.b)}${zc(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Bc,toString:Bc})),mc(Uc,(function(e,t,n,i){return 1===arguments.length?jc(e):new Uc(e,t,n,null==i?1:i)}),fc(vc,{brighter(e){return e=null==e?bc:Math.pow(bc,e),new Uc(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?_c:Math.pow(_c,e),new Uc(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,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new Pc(Gc(e>=240?e-240:e+120,o,i),Gc(e,o,i),Gc(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Uc($c(this.h),Kc(this.s),Kc(this.l),Wc(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=Wc(this.opacity);return`${1===e?"hsl(":"hsla("}${$c(this.h)}, ${100*Kc(this.s)}%, ${100*Kc(this.l)}%${1===e?")":`, ${e})`}`}}));var Zc=s(34415),Qc=s.n(Zc);const Yc=JSON.parse('{"fontSize":"13px","fontFamily":"\'Source Sans Pro\', \'Arial\', \'sans-serif\'","backgroundColor":"transparent","dataColors":{"primaryColor":"#26a0a7","othersColor":"#a5a5a5","errorColor":"#ff4444","nullColor":"#d2d2d2"},"scales":[{"name":"Sequential Gradient","translation":"properties.colorScheme.sequential","type":"gradient","propertyValue":"sg","scale":["#26a0a7","#c7ea8b"]},{"name":"Sequential Classes","translation":"properties.colorScheme.sequentialC","propertyValue":"sc","type":"class","scale":["#26a0a7","#c7ea8b"]},{"name":"Diverging gradient","translation":"properties.colorScheme.diverging","propertyValue":"dg","type":"gradient","scale":["#26a0a7","#c3ea8c","#ec983d"]},{"name":"Diverging Classes","translation":"properties.colorScheme.divergingC","propertyValue":"dc","type":"class","scale":["#26a0a7","#c3ea8c","#ec983d"]}],"palettes":{"data":[{"name":"12 Colors","translation":"properties.colorNumberOfColors.12","propertyValue":"12","type":"pyramid","scale":[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],"ui":[{"name":"Palette","colors":["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}}'),Xc=JSON.parse('{"_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"}'),Jc=JSON.parse('{"_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"}'),ed=JSON.parse('{"object":{"listBox":{"backgroundColor":"#ffffff","title":{"main":{"color":"#404040","fontSize":"14px","fontWeight":"bold"}},"content":{"color":"#404040","fontSize":"12px"}}}}'),td=class{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Oc(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([Oc(e),Oc(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 i=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(i);o=o===i?o-1:o;const r=this.colorParts[t][o],s=r[0],a=r[1];if(e===this.min)return a;if(e===this.max)return s;const l=function(e,t,n){return Mc(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))}(s,a,i-o);return l}};function nd(e,t,n){const i=.25+(t+1)/n*.25,o=.5-i;return o+e/1*(.5+i-o)}function id(e,t,n){const i=[],o=new td(t);i.push(e[0]),n||i.push(e[0]);let r=1;for(;r<e.length-1;r++)i.push(e[r]),i.push(e[r]);i.push(e[r]),n||i.push(e[r]);for(let e=0;e<i.length;e+=2)o.addColorPart(i[e],i[e+1]);return o}function od(e,t,n){const i=[];for(let o=0;o<t+1;o++){let r;switch(t){case 0:r=e.getColor(.5);break;default:{const i=nd(1/t*o,t,n);r=e.getColor(i);break}}i.push(Oc(r).formatHex())}return i}function rd(e,t){const n=[];let i,o;if(e){let r=e.length;for(;r>=0;){for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat(e)),i.pop(),o--;e.pop(),r--}}else for(i=t.slice(),o=i.length;o>=0;)n.push(i.concat()),i.pop(),o--;return n}function sd(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 ad(e,t){const n=e.split(".");return{getStyle:(e,i)=>function(e,t,n,i){let o;return o=rd(""===e?null:e.split("."),n),function(e,t,n){const i=t.split(".");for(let t=0;t<e.length;t++){const o=sd(n,[...e[t],...i]);if(void 0!==o)return o}}(o,t,i)}(e,i,n.concat(),t)}}function ld(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?ld(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function cd(e){const t=Oc(e).rgb(),{r:n,g:i,b:o}=t,[r,s,a]=[n,i,o].map((e=>e/255)),[l,c,d]=[r,s,a].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*l+.7152*c+.0722*d).toFixed(5)}ad.resolveRawTheme=e=>{const t=Qc()(!0,{},e);return ld(t,t._variables),t.scales&&function(e,t="#d2d2d2"){e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const i=id(e,n,!0),o=id(od(i,t-1,t),n,!1),r=[null];for(let e=0;e<t;e++)r.push(od(o,e,t));return r}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}(t.scales,t.dataColors&&t.dataColors.nullColor),t};const dd=1e3;function ud(){let e,t,n,i={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor:(...e)=>t.uiColor(...e),getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(i[t]||(i[t]=ad(t,e)),i[t].getStyle(n,o)),validateColor(...e){const t=e[0];let n;if("string"==typeof t&&(n=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(t))){const e=parseInt(n[1],10)/255;return`rgba(${parseInt(n[2],10)},${parseInt(n[3],10)},${parseInt(n[4],10)},${e})`}const i=Oc(...e);return i?i.toString():void 0}},r={setTheme(r,s){e=function(e,t){const n="dark"===e.type?Jc:Xc;let i=ed;!1!==e._inherit&&"false"!==e._inherit||(i={});const o=Qc()(!0,{},Yc,n,i),r=Qc()(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return r.palettes.data&&r.palettes.data.length||(r.palettes.data=o.palettes.data),r.palettes.ui&&r.palettes.ui.length||(r.palettes.ui=o.palettes.ui),r.scales&&r.scales.length||(r.scales=o.scales),t(r)}(r,ad.resolveRawTheme),i={},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 a=o.getStyle("","","color"),l=cd(a);n=function(e=["#333333","#ffffff"]){let t={},n=0;const i=e.map(cd);return{getBestContrastColor(o){if(!t[o]){n>dd&&(t={},n=0);const r=cd(o),s=i.map((e=>{return t=r,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),a=e[s.indexOf(Math.max(...s))];t[o]=a,n++}return t[o]}}}([a,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>s}};return Object.keys(pc().prototype).forEach((e=>{o[e]=pc().prototype[e]})),pc().init(o),r.setTheme({},"light"),{externalAPI:o,internalAPI:r}}const hd=n.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null}),gd=(e={},t=(()=>{}))=>{const i=e,o=[],r={get:e=>i[e],set:(e,n)=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);return i[e]=n,t({type:"SET",value:n}),n},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);i[e]=null},dispatch:e=>{o.forEach((t=>t(e?{}:i)))}};return[()=>{const[,e]=(0,n.useState)(i);return(0,n.useEffect)((()=>(o.push(e),()=>{const t=o.indexOf(e);o.splice(t,1)})),[e]),[r]},r]},[pd,md]=gd({}),[fd,vd]=gd({}),[_d,bd]=gd({}),[Cd,yd]=gd({});function wd(e){if(!e.session)return[];const[t]=pd(),i=e?e.id:null;let o=t.get(i);return(0,n.useEffect)((()=>{e&&!o&&(o=function({app:e}){const t=`${e.id}`,n=async(e=!0)=>{const n=yd.get(t);n&&(await n.endSelections(e),yd.clear(t),bd.get(n.id).emit("deactivated"))},i={begin:async(i,o,r=!0)=>{if(i===yd.get(t))return;n(r),yd.set(t,i);const s=Array.isArray(o)?o:[o],a=async n=>{try{await i.beginSelections(s),yd.set(t,i)}catch(i){6003!==i.code||n?yd.clear(t):(await e.abortModal(r),a(!0))}};await a()},end:n};return vd.set(t,i),{model:e,isInModal:()=>!!yd.get(t),isModal:e=>e?yd.get(t)===e:!!yd.get(t),forward:()=>i.end().then((()=>e.forward())),back:()=>i.end().then((()=>e.back())),clear:()=>i.end().then((()=>e.clearAll())),clearField:(t,n="$")=>i.end().then((()=>e.getField(t,n).then((e=>e.clear()))))}}({app:e}),t.set(i,o),t.dispatch(!0))}),[e]),[o]}const Sd={active:!0,select:!0,passive:!0,edit:!1};function xd(e){const t={},n={},i=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const i={};return Object.keys(t).forEach((e=>{i[e]=!t[e]})),i}(e);Object.keys(Sd).forEach((e=>{void 0!==i[e]?(t[e]=i[e],n[e]=!i[e]):(t[e]=Sd[e],n[e]=!Sd[e])})),e.constraints=n,e.interactions=t}const Ld=(0,n.forwardRef)((({initialContext:e,app:t,renderCallback:i},o)=>{const[r]=wd(t),[s,a]=(0,n.useState)(e),[l,c]=(0,n.useState)(),{theme:d}=(0,n.useMemo)((()=>({theme:Ri(l)})),[l]),[u,h]=(0,n.useState)([]);return(0,n.useEffect)((()=>{i&&i()}),[]),(0,n.useImperativeHandle)(o,(()=>({setComps(e){h([...e])},setMuiThemeName:c,setContext:e=>a((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>r})),[]),n.createElement(hi,{injectFirst:!0},n.createElement(dn,{theme:d},n.createElement(hd.Provider,{value:s},u)))})),[kd,Ed]=gd({}),[Nd,Dd]=gd({}),[Id,Rd]=gd({}),[Td,Od]=gd({}),[qd,Ad]=gd({}),[,Md]=gd({}),Pd=({type:e,value:t})=>{const n=Md.get(t.id);Md.set(t.id,{});const i=()=>{Dd.clear(t.id),Ad.set(t.id,{}),Ad.dispatch(!0)},o=()=>{t.removeListener("changed",i),Ed.clear(t.id),Dd.clear(t.id),Rd.clear(t.id),Od.clear(t.id),Ad.clear(t.id),Md.clear(t.id)};return"SET"===e&&(n||(t.on("changed",i),t.once("closed",(()=>{o()})))),o},[Fd,Bd]=gd({},Pd);function Wd(e,t,...i){const o=t?`${t.id}/${JSON.stringify(e)}`:null,[r]=Fd(),[s]=Id(),[a,l]=(0,n.useState)();let c;return o&&(c=s.get(o)),(0,n.useEffect)((()=>{t&&(async()=>{if(!c){const n=t.createSessionObject(e);c=n,s.set(o,c)}const n=await c;r.set(o,n),l(n)})()}),[t,...i]),[a]}const Vd={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function zd(e){return Wd(Vd,e)}const Hd=(e,t)=>{const{rpcResultStore:n,key:i,method:o}=t;let r;switch(t.type){case"INVALID":r={...e,valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1};break;case"VALID":r={result:{...t.result},invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":r={...e,invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1};break;default:throw new Error("Undefined action")}let s=n.get(i);return s||(s={}),s[o]=r,n.set(i,s),r};function jd(e,t){const i=e?`${e.id}`:null,[o]=kd(),[r,s]=(0,n.useReducer)(Hd,i?o.get(i):null),[a]=qd(),[l]=Nd();let c;i&&(c=l.get(i),c||(c={},l.set(i,c)));const d=async n=>{let r=c[t];(!r||r&&r.rpcRetry)&&(r={rpc:e[t](),rpcRetry:!1},c[t]=r,s({type:"INVALID",method:t,key:i,model:e,rpcResultStore:o,canCancel:!0}));try{const n=await r.rpc;s({type:"VALID",result:n,key:i,method:t,model:e,rpcResultStore:o})}catch(e){15!==e.code||n||(r.rpcRetry||(r.rpcRetry=!0),d(!0))}},u={cancel:async()=>{const n=e.session.getObjectApi({handle:-1});await n.cancelRequest(c[t].rpc.requestId),s({type:"CANCELLED",key:i,method:t,model:e,rpcResultStore:o})},retry:()=>{c[t].rpcRetry=!0,d()}};return(0,n.useEffect)((()=>{e&&d()}),[e,a.get(e&&e.id),i,t]),[r&&r.result,{validating:r&&r.validating,canCancel:r&&r.canCancel,canRetry:r&&r.canRetry},u]}function Ud(e){return jd(e,"getLayout")}function $d(e){return jd(e,"getAppLayout")}function Kd(){const[e,t]=(0,n.useState)(),[i,o]=(0,n.useState)(),r=(0,n.useCallback)((e=>{e&&t(e)}),[]),s=()=>{const{left:t,top:n,width:i,height:r}=e.getBoundingClientRect();o({left:t,top:n,width:i,height:r})};return(0,n.useLayoutEffect)((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(s);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}}}),[e]),[r,i,e]}const Gd=e=>Cs((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)),Zd=e=>Cs((e=>({...e,shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}))(e)),Qd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Yd(e){return`scale(${e}, ${e**2})`}const Xd={entering:{opacity:1,transform:Yd(1)},entered:{opacity:1,transform:"none"}},Jd="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),eu=n.forwardRef((function(e,t){const{addEndListener:i,appear:o=!0,children:r,easing:s,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:u,onExited:h,onExiting:g,style:p,timeout:m="auto",TransitionComponent:f=ss}=e,v=(0,vt.Z)(e,Qd),_=n.useRef(),b=n.useRef(),C=Yt(),y=n.useRef(null),w=(0,To.Z)(y,r.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},x=S(d),L=S(((e,t)=>{ls(e);const{duration:n,delay:i,easing:o}=cs({style:p,timeout:m,easing:s},{mode:"enter"});let r;"auto"===m?(r=C.transitions.getAutoHeightDuration(e.clientHeight),b.current=r):r=n,e.style.transition=[C.transitions.create("opacity",{duration:r,delay:i}),C.transitions.create("transform",{duration:Jd?r:.666*r,delay:i,easing:o})].join(","),l&&l(e,t)})),k=S(c),E=S(g),N=S((e=>{const{duration:t,delay:n,easing:i}=cs({style:p,timeout:m,easing:s},{mode:"exit"});let o;"auto"===m?(o=C.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[C.transitions.create("opacity",{duration:o,delay:n}),C.transitions.create("transform",{duration:Jd?o:.666*o,delay:Jd?n:n||.333*o,easing:i})].join(","),e.style.opacity=0,e.style.transform=Yd(.75),u&&u(e)})),D=S(h);return n.useEffect((()=>()=>{clearTimeout(_.current)}),[]),(0,Nt.jsx)(f,(0,_t.Z)({appear:o,in:a,nodeRef:y,onEnter:L,onEntered:k,onEntering:x,onExit:N,onExited:D,onExiting:E,addEndListener:e=>{"auto"===m&&(_.current=setTimeout(e,b.current||0)),i&&i(y.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>n.cloneElement(r,(0,_t.Z)({style:(0,_t.Z)({opacity:0,transform:Yd(.75),visibility:"exited"!==e||a?void 0:"hidden"},Xd[e],p,r.props.style),ref:w},t))}))}));eu.muiSupportAuto=!0;const tu=eu;var nu=s(67653),iu=s(69781),ou=s(24784),ru=s(44068);const su=n.forwardRef((function(e,t){const{children:i,container:o,disablePortal:r=!1}=e,[s,a]=n.useState(null),l=(0,ta.Z)(n.isValidElement(i)?i.ref:null,t);if((0,sl.Z)((()=>{r||a(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,r]),(0,sl.Z)((()=>{if(s&&!r)return(0,ru.Z)(t,s),()=>{(0,ru.Z)(t,null)}}),[t,s,r]),r){if(n.isValidElement(i)){const e={ref:l};return n.cloneElement(i,e)}return(0,Nt.jsx)(n.Fragment,{children:i})}return(0,Nt.jsx)(n.Fragment,{children:s?Xr.createPortal(i,s):s})}));function au(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function lu(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function cu(e){return parseInt((0,ol.Z)(e).getComputedStyle(e).paddingRight,10)||0}function du(e,t,n,i,o){const r=[t,n,...i];[].forEach.call(e.children,(e=>{const t=-1===r.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&lu(e,o)}))}function uu(e,t){let n=-1;return e.some(((e,i)=>!!t(e)&&(n=i,!0))),n}const hu=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function gu(e){const t=[],n=[];return Array.from(e.querySelectorAll(hu)).forEach(((e,i)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:i,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function pu(){return!0}const mu=function(e){const{children:t,disableAutoFocus:i=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:s=gu,isEnabled:a=pu,open:l}=e,c=n.useRef(!1),d=n.useRef(null),u=n.useRef(null),h=n.useRef(null),g=n.useRef(null),p=n.useRef(!1),m=n.useRef(null),f=(0,ta.Z)(t.ref,m),v=n.useRef(null);n.useEffect((()=>{l&&m.current&&(p.current=!i)}),[i,l]),n.useEffect((()=>{if(!l||!m.current)return;const e=(0,nu.Z)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{r||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}}),[l]),n.useEffect((()=>{if(!l||!m.current)return;const e=(0,nu.Z)(m.current),t=t=>{const{current:n}=m;if(null!==n)if(e.hasFocus()&&!o&&a()&&!c.current){if(!n.contains(e.activeElement)){if(t&&g.current!==t.target||e.activeElement!==g.current)g.current=null;else if(null!==g.current)return;if(!p.current)return;let o=[];if(e.activeElement!==d.current&&e.activeElement!==u.current||(o=s(m.current)),o.length>0){var i,r;const e=Boolean((null==(i=v.current)?void 0:i.shiftKey)&&"Tab"===(null==(r=v.current)?void 0:r.key)),t=o[0],n=o[o.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}else c.current=!1},n=t=>{v.current=t,!o&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const i=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(i),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[i,o,r,a,l,s]);const _=e=>{null===h.current&&(h.current=e.relatedTarget),p.current=!0};return(0,Nt.jsxs)(n.Fragment,{children:[(0,Nt.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:d,"data-testid":"sentinelStart"}),n.cloneElement(t,{ref:f,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),p.current=!0,g.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,Nt.jsx)("div",{tabIndex:l?0:-1,onFocus:_,ref:u,"data-testid":"sentinelEnd"})]})};function fu(e){return(0,kt.Z)("MuiModal",e)}(0,Lt.Z)("MuiModal",["root","hidden","backdrop"]);const vu={disableDefaultClasses:!1},_u=n.createContext(vu);function bu(e){const{disableDefaultClasses:t}=n.useContext(_u);return n=>t?"":e(n)}const Cu=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],yu=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&lu(e.modalRef,!1);const i=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);du(t,e.mount,e.modalRef,i,!0);const o=uu(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:i}),n)}mount(e,t){const n=uu(this.containers,(t=>-1!==t.modals.indexOf(e))),i=this.containers[n];i.restore||(i.restore=function(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,nu.Z)(e);return t.body===e?(0,ol.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){const e=au((0,nu.Z)(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${cu(i)+e}px`;const t=(0,nu.Z)(i).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${cu(t)+e}px`}))}let e;if(i.parentNode instanceof DocumentFragment)e=(0,nu.Z)(i).body;else{const t=i.parentElement,n=(0,ol.Z)(i);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:i}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}(i,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const i=uu(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&lu(e.modalRef,t),du(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&lu(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},wu=n.forwardRef((function(e,t){var i,o;const{children:r,closeAfterTransition:s=!1,container:a,disableAutoFocus:l=!1,disableEnforceFocus:c=!1,disableEscapeKeyDown:d=!1,disablePortal:u=!1,disableRestoreFocus:h=!1,disableScrollLock:g=!1,hideBackdrop:p=!1,keepMounted:m=!1,manager:f=yu,onBackdropClick:v,onClose:_,onKeyDown:b,open:C,onTransitionEnter:y,onTransitionExited:w,slotProps:S={},slots:x={}}=e,L=ea(e,Cu),k=f,[E,N]=n.useState(!C),D=n.useRef({}),I=n.useRef(null),R=n.useRef(null),T=(0,ta.Z)(R,t),O=function(e){return!!e&&e.props.hasOwnProperty("in")}(r),q=null==(i=e["aria-hidden"])||i,A=()=>(D.current.modalRef=R.current,D.current.mountNode=I.current,D.current),M=()=>{k.mount(A(),{disableScrollLock:g}),R.current&&(R.current.scrollTop=0)},P=(0,iu.Z)((()=>{const e=function(e){return"function"==typeof e?e():e}(a)||(0,nu.Z)(I.current).body;k.add(A(),e),R.current&&M()})),F=n.useCallback((()=>k.isTopModal(A())),[k]),B=(0,iu.Z)((e=>{I.current=e,e&&R.current&&(C&&F()?M():lu(R.current,q))})),W=n.useCallback((()=>{k.remove(A(),q)}),[k,q]);n.useEffect((()=>()=>{W()}),[W]),n.useEffect((()=>{C?P():O&&s||W()}),[C,W,O,s,P]);const V=Js({},e,{closeAfterTransition:s,disableAutoFocus:l,disableEnforceFocus:c,disableEscapeKeyDown:d,disablePortal:u,disableRestoreFocus:h,disableScrollLock:g,exited:E,hideBackdrop:p,keepMounted:m}),z=(e=>{const{open:t,exited:n}=e,i={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,Ct.Z)(i,bu(fu))})(V),H={};void 0===r.props.tabIndex&&(H.tabIndex="-1"),O&&(H.onEnter=(0,ou.Z)((()=>{N(!1),y&&y()}),r.props.onEnter),H.onExited=(0,ou.Z)((()=>{N(!0),w&&w(),s&&W()}),r.props.onExited));const j=null!=(o=x.root)?o:"div",U=la({elementType:j,externalSlotProps:S.root,externalForwardedProps:L,additionalProps:{ref:T,role:"presentation",onKeyDown:e=>{b&&b(e),"Escape"===e.key&&F()&&(d||(e.stopPropagation(),_&&_(e,"escapeKeyDown")))}},className:z.root,ownerState:V}),$=x.backdrop,K=la({elementType:$,externalSlotProps:S.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(v&&v(e),_&&_(e,"backdropClick"))},open:C},className:z.backdrop,ownerState:V});return m||C||O&&!E?(0,Nt.jsx)(su,{ref:B,container:a,disablePortal:u,children:(0,Nt.jsxs)(j,Js({},U,{children:[!p&&$?(0,Nt.jsx)($,Js({},K)):null,(0,Nt.jsx)(mu,{disableEnforceFocus:c,disableAutoFocus:l,disableRestoreFocus:h,isEnabled:F,open:C,children:n.cloneElement(r,H)})]}))}):null})),Su=wu,xu=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Lu={entering:{opacity:1},entered:{opacity:1}},ku=n.forwardRef((function(e,t){const i=Yt(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:r,appear:s=!0,children:a,easing:l,in:c,onEnter:d,onEntered:u,onEntering:h,onExit:g,onExited:p,onExiting:m,style:f,timeout:v=o,TransitionComponent:_=ss}=e,b=(0,vt.Z)(e,xu),C=n.useRef(null),y=(0,To.Z)(C,a.ref,t),w=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},S=w(h),x=w(((e,t)=>{ls(e);const n=cs({style:f,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=i.transitions.create("opacity",n),e.style.transition=i.transitions.create("opacity",n),d&&d(e,t)})),L=w(u),k=w(m),E=w((e=>{const t=cs({style:f,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=i.transitions.create("opacity",t),e.style.transition=i.transitions.create("opacity",t),g&&g(e)})),N=w(p);return(0,Nt.jsx)(_,(0,_t.Z)({appear:s,in:c,nodeRef:C,onEnter:x,onEntered:L,onEntering:S,onExit:E,onExited:N,onExiting:k,addEndListener:e=>{r&&r(C.current,e)},timeout:v},b,{children:(e,t)=>n.cloneElement(a,(0,_t.Z)({style:(0,_t.Z)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},Lu[e],f,a.props.style),ref:y},t))}))})),Eu=ku;function Nu(e){return(0,kt.Z)("MuiBackdrop",e)}(0,Lt.Z)("MuiBackdrop",["root","invisible"]);const Du=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Iu=(0,xt.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,_t.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),Ru=n.forwardRef((function(e,t){var n,i,o;const r=(0,St.Z)({props:e,name:"MuiBackdrop"}),{children:s,className:a,component:l="div",components:c={},componentsProps:d={},invisible:u=!1,open:h,slotProps:g={},slots:p={},TransitionComponent:m=Eu,transitionDuration:f}=r,v=(0,vt.Z)(r,Du),_=(0,_t.Z)({},r,{component:l,invisible:u}),b=(e=>{const{classes:t,invisible:n}=e,i={root:["root",n&&"invisible"]};return(0,Ct.Z)(i,Nu,t)})(_),C=null!=(n=g.root)?n:d.root;return(0,Nt.jsx)(m,(0,_t.Z)({in:h,timeout:f},v,{children:(0,Nt.jsx)(Iu,(0,_t.Z)({"aria-hidden":!0},C,{as:null!=(i=null!=(o=p.root)?o:c.Root)?i:l,className:(0,bt.Z)(b.root,a,null==C?void 0:C.className),ownerState:(0,_t.Z)({},_,null==C?void 0:C.ownerState),classes:b,ref:t,children:s}))}))})),Tu=Ru,Ou=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],qu=(0,xt.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,_t.Z)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Au=(0,xt.ZP)(Tu,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Mu=n.forwardRef((function(e,t){var i,o,r,s,a,l;const c=(0,St.Z)({name:"MuiModal",props:e}),{BackdropComponent:d=Au,BackdropProps:u,classes:h,className:g,closeAfterTransition:p=!1,children:m,container:f,component:v,components:_={},componentsProps:b={},disableAutoFocus:C=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:w=!1,disablePortal:S=!1,disableRestoreFocus:x=!1,disableScrollLock:L=!1,hideBackdrop:k=!1,keepMounted:E=!1,onBackdropClick:N,onClose:D,open:I,slotProps:R,slots:T,theme:O}=c,q=(0,vt.Z)(c,Ou),[A,M]=n.useState(!0),P={container:f,closeAfterTransition:p,disableAutoFocus:C,disableEnforceFocus:y,disableEscapeKeyDown:w,disablePortal:S,disableRestoreFocus:x,disableScrollLock:L,hideBackdrop:k,keepMounted:E,onBackdropClick:N,onClose:D,open:I},F=(0,_t.Z)({},c,P,{exited:A}),B=null!=(i=null!=(o=null==T?void 0:T.root)?o:_.Root)?i:qu,W=null!=(r=null!=(s=null==T?void 0:T.backdrop)?s:_.Backdrop)?r:d,V=null!=(a=null==R?void 0:R.root)?a:b.root,z=null!=(l=null==R?void 0:R.backdrop)?l:b.backdrop;return(0,Nt.jsx)(Su,(0,_t.Z)({slots:{root:B,backdrop:W},slotProps:{root:()=>(0,_t.Z)({},sa(V,F),!Ns(B)&&{as:v,theme:O},{className:(0,bt.Z)(g,null==V?void 0:V.className,null==h?void 0:h.root,!F.open&&F.exited&&(null==h?void 0:h.hidden))}),backdrop:()=>(0,_t.Z)({},u,sa(z,F),{className:(0,bt.Z)(null==z?void 0:z.className,null==h?void 0:h.backdrop)})},onTransitionEnter:()=>M(!1),onTransitionExited:()=>M(!0),ref:t},q,P,{children:m}))})),Pu=Mu,Fu=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Bu(e){return(0,kt.Z)("MuiPaper",e)}(0,Lt.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Wu=["className","component","elevation","square","variant"],Vu=(0,xt.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return(0,_t.Z)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,_t.Z)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,Ro.Fq)("#fff",Fu(t.elevation))}, ${(0,Ro.Fq)("#fff",Fu(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),zu=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiPaper"}),{className:i,component:o="div",elevation:r=1,square:s=!1,variant:a="elevation"}=n,l=(0,vt.Z)(n,Wu),c=(0,_t.Z)({},n,{component:o,elevation:r,square:s,variant:a}),d=(e=>{const{square:t,elevation:n,variant:i,classes:o}=e,r={root:["root",i,!t&&"rounded","elevation"===i&&`elevation${n}`]};return(0,Ct.Z)(r,Bu,o)})(c);return(0,Nt.jsx)(Vu,(0,_t.Z)({as:o,ownerState:c,className:(0,bt.Z)(d.root,i),ref:t},l))})),Hu=zu;function ju(e){return(0,kt.Z)("MuiPopover",e)}(0,Lt.Z)("MuiPopover",["root","paper"]);const Uu=["onEntering"],$u=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function Ku(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Gu(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Zu(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Qu(e){return"function"==typeof e?e():e}const Yu=(0,xt.ZP)(Pu,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xu=(0,xt.ZP)(Hu,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Ju=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiPopover"}),{action:o,anchorEl:r,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:d,container:u,elevation:h=8,marginThreshold:g=16,open:p,PaperProps:m={},transformOrigin:f={vertical:"top",horizontal:"left"},TransitionComponent:v=tu,transitionDuration:_="auto",TransitionProps:{onEntering:b}={}}=i,C=(0,vt.Z)(i.TransitionProps,Uu),y=(0,vt.Z)(i,$u),w=n.useRef(),S=(0,To.Z)(w,m.ref),x=(0,_t.Z)({},i,{anchorOrigin:s,anchorReference:l,elevation:h,marginThreshold:g,PaperProps:m,transformOrigin:f,TransitionComponent:v,transitionDuration:_,TransitionProps:C}),L=(e=>{const{classes:t}=e;return(0,Ct.Z)({root:["root"],paper:["paper"]},ju,t)})(x),k=n.useCallback((()=>{if("anchorPosition"===l)return a;const e=Qu(r),t=(e&&1===e.nodeType?e:(0,Ea.Z)(w.current).body).getBoundingClientRect();return{top:t.top+Ku(t,s.vertical),left:t.left+Gu(t,s.horizontal)}}),[r,s.horizontal,s.vertical,a,l]),E=n.useCallback((e=>({vertical:Ku(e,f.vertical),horizontal:Gu(e,f.horizontal)})),[f.horizontal,f.vertical]),N=n.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=E(t);if("none"===l)return{top:null,left:null,transformOrigin:Zu(n)};const i=k();let o=i.top-n.vertical,s=i.left-n.horizontal;const a=o+t.height,c=s+t.width,d=(0,pa.Z)(Qu(r)),u=d.innerHeight-g,h=d.innerWidth-g;if(o<g){const e=o-g;o-=e,n.vertical+=e}else if(a>u){const e=a-u;o-=e,n.vertical+=e}if(s<g){const e=s-g;s-=e,n.horizontal+=e}else if(c>h){const e=c-h;s-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(s)}px`,transformOrigin:Zu(n)}}),[r,l,k,E,g]),[D,I]=n.useState(p),R=n.useCallback((()=>{const e=w.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)}),[N]);n.useEffect((()=>{p&&R()})),n.useImperativeHandle(o,(()=>p?{updatePosition:()=>{R()}}:null),[p,R]),n.useEffect((()=>{if(!p)return;const e=(0,ca.Z)((()=>{R()})),t=(0,pa.Z)(r);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[r,p,R]);let T=_;"auto"!==_||v.muiSupportAuto||(T=void 0);const O=u||(r?(0,Ea.Z)(Qu(r)).body:void 0);return(0,Nt.jsx)(Yu,(0,_t.Z)({BackdropProps:{invisible:!0},className:(0,bt.Z)(L.root,d),container:O,open:p,ref:t,ownerState:x},y,{children:(0,Nt.jsx)(v,(0,_t.Z)({appear:!0,in:p,onEntering:(e,t)=>{b&&b(e,t),R()},onExited:()=>{I(!1)},timeout:T},C,{children:(0,Nt.jsx)(Xu,(0,_t.Z)({elevation:h},m,{ref:S,className:(0,bt.Z)(L.paper,m.className)},D?void 0:{style:(0,_t.Z)({},m.style,{opacity:0})},{ownerState:x,children:c}))}))}))})),eh=Ju;var th=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),nh=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};const ih=function(e){function t(){var e,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,r=Array(o),s=0;s<o;s++)r[s]=arguments[s];return n=i=nh(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r))),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;i._lastRenderedStartIndex=t,i._lastRenderedStopIndex=n,i._ensureRowsLoaded(t,n)},i._setRef=function(e){i._listRef=e},nh(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),th(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,i=n.isItemLoaded,o=n.itemCount,r=n.minimumBatchSize,s=void 0===r?10:r,a=n.threshold,l=void 0===a?15:a,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,i=e.minimumBatchSize,o=e.stopIndex,r=[],s=null,a=null,l=e.startIndex;l<=o;l++)t(l)?null!==a&&(r.push(s,a),s=a=null):(a=l,null===s&&(s=l));if(null!==a){for(var c=Math.min(Math.max(a,s+i-1),n-1),d=a+1;d<=c&&!t(d);d++)a=d;r.push(s,a)}if(r.length)for(;r[1]-r[0]+1<i&&r[0]>0;){var u=r[0]-1;if(t(u))break;r[0]=u}return r}({isItemLoaded:i,itemCount:o,minimumBatchSize:s,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,i=function(i){var o=e[i],r=e[i+1],s=n(o,r);null!=s&&s.then((function(){if(!((e={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:r}).startIndex>e.lastRenderedStopIndex||e.stopIndex<e.lastRenderedStartIndex)){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())}var e}))},o=0;o<e.length;o+=2)i(o)}}]),t}(n.PureComponent),oh=["S","XS"],rh=e=>e.reduce(((e,t)=>e.concat(t)));async function sh({selections:e,elemNumbers:t,toggle:n,isSingleSelect:i}){if(0===t.length)return!1;let o=!1;if(!t.some((e=>Number.isNaN(e)))){const r=t;try{o=!1!==await e.select({method:"selectListObjectValues",params:["/qListObjectDef",r,n]})}catch{o=!1}o||(i?e.cancel():e.clear())}return o}const ah="RowColumn",lh={row:`${ah}-row`,rowBorderBottom:`${ah}-rowBorderBottom`,column:`${ah}-column`,fieldRoot:`${ah}-fieldRoot`,cell:`${ah}-cell`,labelText:`${ah}-labelText`,labelDense:`${ah}-labelDense`,highlighted:`${ah}-highlighted`,checkboxLabel:`${ah}-checkboxLabel`,icon:`${ah}-icon`,S:`${ah}-S`,XS:`${ah}-XS`,A:`${ah}-A`,X:`${ah}-X`,frequencyCount:`${ah}-frequencyCount`,barContainer:`${ah}-barContainer`,bar:`${ah}-bar`,barSelected:`${ah}-barSelected`,barWithCheckbox:`${ah}-barWithCheckbox`,barSelectedWithCheckbox:`${ah}-barSelectedWithCheckbox`,excludedTextWithCheckbox:`${ah}-excludedTextWithCheckbox`},ch=`.${lh.fieldRoot}`,dh=e=>!(e?.metaKey||e?.ctrlKey);const uh=e=>({...e,shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]}),hh=e=>Cs(uh(e)),gh=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,ph=e=>e?"A"===e.qState:null,mh=({cell:e,checkboxes:t})=>(ph(e)||gh(e))&&t,fh=9,vh=80,_h=10,bh=150,Ch=40,yh=56,wh=20,Sh=e=>e.filter((e=>!!e)).join(" ").trim(),xh=e=>e||"-",Lh=({theme:e})=>({background:e.palette.selected.main,color:e.palette.selected.mainContrastText,"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder}`,outline:"none"},"& $cell":{paddingRight:0}}),kh={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Eh=(0,xt.ZP)("div",{shouldForwardProp:e=>!["flexBasisProp","isGridMode","isGridCol","dense","frequencyWidth","direction"].includes(e)})((({theme:e,flexBasisProp:t,isGridMode:n,isGridCol:i,dense:o,frequencyWidth:r,direction:s})=>({"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus-visible":{outline:"none"}},[`& .${lh.row}`]:{flexWrap:"nowrap",color:e.listBox?.content?.color??e.palette.text.primary},[`& .${lh.rowBorderBottom}`]:{borderBottom:i?"none":`1px solid ${e.palette.divider}`,borderLeft:i?`1px solid ${e.palette.divider}`:"none"},[`& .${lh.column}`]:{flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`,color:e.listBox?.content?.color??e.palette.text.primary},[`& .${lh.cell}`]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:`${fh}px`,paddingRight:0},[`& .${lh.labelText}`]:{flexBasis:t,lineHeight:"16px",userSelect:"none",paddingRight:"1px",...kh,fontSize:e.listBox?.content?.fontSize,fontFamily:e.listBox?.content?.fontFamily},[`& .${lh.labelDense}`]:{fontSize:12},[`& .${lh.highlighted}`]:{backgroundColor:"#FFC72A"},[`& .${lh.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":{...kh,display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"}},[`& .${lh.icon}`]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24},[`& .${lh.S}`]:{...Lh({theme:e}),border:n?"none":void 0},[`& .${lh.XS}`]:{...Lh({theme:e}),background:e.palette.selected.excluded,color:e.palette.selected.excludedContrastText,border:n?"none":void 0},[`& .${lh.A}`]:{background:e.palette.selected.alternative,color:e.palette.selected.alternativeContrastText,border:n?"none":void 0},[`& .${lh.X}`]:{background:e.palette.selected.excluded,color:e.palette.selected.excludedContrastText,border:n?"none":void 0},[`& .${lh.frequencyCount}`]:{justifyContent:"flex-end",...kh,flex:`0 1 ${r}px`,textAlign:"rtl"===s?"left":"right",paddingLeft:"2px"},[`&.${lh.barContainer}`]:{height:"100%",display:"flex",alignItems:"center"},[`& .${lh.bar}`]:{height:o?"16px":"20px",position:"absolute",zIndex:"-1",alignSelf:"center",left:4,width:"calc(100% - 8px)",display:"flex",alignItems:"center","& .bar-filled":{border:"1px solid",borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},[`& .${lh.barSelected}`]:{zIndex:"0","& .bar-filled":{opacity:"30%",background:e.palette.background.lighter}},[`& .${lh.barWithCheckbox}`]:{left:"rtl"===s?4:29,width:"calc(100% - 33px)"},[`& .${lh.barSelectedWithCheckbox}`]:{"& .bar-filled":{background:"#BFE5D0",borderColor:"#BFE5D0"}},[`& .${lh.excludedTextWithCheckbox}`]:{color:"#828282",fontStyle:"italic"}}))),Nh=n.memo(Eh);function Dh(e){return(0,kt.Z)("MuiFormControlLabel",e)}const Ih=(0,Lt.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Rh=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Th=(0,xt.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ih.label}`]:t.label},t.root,t[`labelPlacement${(0,Ut.Z)(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,_t.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ih.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Ih.label}`]:{[`&.${Ih.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Oh=(0,xt.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Ih.error}`]:{color:(e.vars||e).palette.error.main}}))),qh=n.forwardRef((function(e,t){var i,o;const r=(0,St.Z)({props:e,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:l,disabled:c,disableTypography:d,label:u,labelPlacement:h="end",required:g,slotProps:p={}}=r,m=(0,vt.Z)(r,Rh),f=Ya(),v=null!=(i=null!=c?c:l.props.disabled)?i:null==f?void 0:f.disabled,_=null!=g?g:l.props.required,b={disabled:v,required:_};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==r[e]&&(b[e]=r[e])}));const C=Xa({props:r,muiFormControl:f,states:["error"]}),y=(0,_t.Z)({},r,{disabled:v,labelPlacement:h,required:_,error:C.error}),w=(e=>{const{classes:t,disabled:n,labelPlacement:i,error:o,required:r}=e,s={root:["root",n&&"disabled",`labelPlacement${(0,Ut.Z)(i)}`,o&&"error",r&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,Ct.Z)(s,Dh,t)})(y),S=null!=(o=p.typography)?o:a.typography;let x=u;return null==x||x.type===zr||d||(x=(0,Nt.jsx)(zr,(0,_t.Z)({component:"span"},S,{className:(0,bt.Z)(w.label,null==S?void 0:S.className),children:x}))),(0,Nt.jsxs)(Th,(0,_t.Z)({className:(0,bt.Z)(w.root,s),ownerState:y,ref:t},m,{children:[n.cloneElement(l,b),x,_&&(0,Nt.jsxs)(Oh,{ownerState:y,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}))})),Ah=qh;var Mh=s(66055);function Ph(e){return(0,kt.Z)("PrivateSwitchBase",e)}(0,Lt.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Fh=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Bh=(0,xt.ZP)(vr)((({ownerState:e})=>(0,_t.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Wh=(0,xt.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Vh=n.forwardRef((function(e,t){const{autoFocus:n,checked:i,checkedIcon:o,className:r,defaultChecked:s,disabled:a,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:u,inputProps:h,inputRef:g,name:p,onBlur:m,onChange:f,onFocus:v,readOnly:_,required:b=!1,tabIndex:C,type:y,value:w}=e,S=(0,vt.Z)(e,Fh),[x,L]=(0,Mh.Z)({controlled:i,default:Boolean(s),name:"SwitchBase",state:"checked"}),k=Ya();let E=a;k&&void 0===E&&(E=k.disabled);const N="checkbox"===y||"radio"===y,D=(0,_t.Z)({},e,{checked:x,disabled:E,disableFocusRipple:l,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:i,edge:o}=e,r={root:["root",n&&"checked",i&&"disabled",o&&`edge${(0,Ut.Z)(o)}`],input:["input"]};return(0,Ct.Z)(r,Ph,t)})(D);return(0,Nt.jsxs)(Bh,(0,_t.Z)({component:"span",className:(0,bt.Z)(I.root,r),centerRipple:!0,focusRipple:!l,disabled:E,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),k&&k.onFocus&&k.onFocus(e)},onBlur:e=>{m&&m(e),k&&k.onBlur&&k.onBlur(e)},ownerState:D,ref:t},S,{children:[(0,Nt.jsx)(Wh,(0,_t.Z)({autoFocus:n,checked:i,defaultChecked:s,className:I.input,disabled:E,id:N?u:void 0,name:p,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;L(t),f&&f(e,t)},readOnly:_,ref:g,required:b,ownerState:D,tabIndex:C,type:y},"checkbox"===y&&void 0===w?{}:{value:w},h)),x?o:d]}))})),zh=Vh,Hh=(0,no.Z)((0,Nt.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),jh=(0,no.Z)((0,Nt.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Uh=(0,no.Z)((0,Nt.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function $h(e){return(0,kt.Z)("MuiCheckbox",e)}const Kh=(0,Lt.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),Gh=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Zh=(0,xt.ZP)(zh,{shouldForwardProp:e=>(0,xt.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${(0,Ut.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,_t.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ro.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Kh.checked}, &.${Kh.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Kh.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Qh=(0,Nt.jsx)(jh,{}),Yh=(0,Nt.jsx)(Hh,{}),Xh=(0,Nt.jsx)(Uh,{}),Jh=n.forwardRef((function(e,t){var i,o;const r=(0,St.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:s=Qh,color:a="primary",icon:l=Yh,indeterminate:c=!1,indeterminateIcon:d=Xh,inputProps:u,size:h="medium",className:g}=r,p=(0,vt.Z)(r,Gh),m=c?d:l,f=c?d:s,v=(0,_t.Z)({},r,{color:a,indeterminate:c,size:h}),_=(e=>{const{classes:t,indeterminate:n,color:i}=e,o={root:["root",n&&"indeterminate",`color${(0,Ut.Z)(i)}`]},r=(0,Ct.Z)(o,$h,t);return(0,_t.Z)({},t,r)})(v);return(0,Nt.jsx)(Zh,(0,_t.Z)({type:"checkbox",inputProps:(0,_t.Z)({"data-indeterminate":c},u),icon:n.cloneElement(m,{fontSize:null!=(i=m.props.fontSize)?i:h}),checkedIcon:n.cloneElement(f,{fontSize:null!=(o=f.props.fontSize)?o:h}),ownerState:v,ref:t,className:(0,bt.Z)(_.root,g)},p,{classes:_}))})),eg=Jh,tg="ListBoxCheckbox",ng={cbIcon:`${tg}-cbIcon`,cbIconChecked:`${tg}-cbIconChecked`,cbIconExcluded:`${tg}-cbIconExcluded`,cbIconAlternative:`${tg}-cbIconAlternative`,checkbox:`${tg}-checkbox`,dense:`${tg}-dense`},ig=(0,xt.ZP)(eg)((({theme:e})=>({[`& .${ng.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"},[`& .${ng.cbIconChecked}`]:{borderRadius:3,backgroundColor:e.palette.selected.main,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},[`& .${ng.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.palette.selected.excluded},[`& .${ng.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.palette.selected.alternative},[`&.${ng.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${ng.dense}`]:{padding:"4px 8px"}}))),og=(e,t=!0,i=!1)=>n.createElement("span",{className:e.cbIcon},i&&n.createElement("span",{className:t&&i?e.cbIconExcluded:""}));function rg({onChange:e,checked:t,label:i,dense:o,excluded:r,showGray:s=!0,dataN:a}){return n.createElement(ig,{edge:"start",onChange:e,checked:t,disableRipple:!0,className:[ng.checkbox,o&&ng.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":i,"data-n":a},name:i,icon:og(ng,s,r),checkedIcon:n.createElement("span",{className:ng.cbIconChecked})})}const sg=(0,no.Z)((0,Nt.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),ag=(0,no.Z)((0,Nt.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),lg=(0,xt.ZP)("span")({position:"relative",display:"flex"}),cg=(0,xt.ZP)(sg)({transform:"scale(1)"}),dg=(0,xt.ZP)(ag)((({theme:e,ownerState:t})=>(0,_t.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}))),ug=function(e){const{checked:t=!1,classes:n={},fontSize:i}=e,o=(0,_t.Z)({},e,{checked:t});return(0,Nt.jsxs)(lg,{className:n.root,ownerState:o,children:[(0,Nt.jsx)(cg,{fontSize:i,className:n.background,ownerState:o}),(0,Nt.jsx)(dg,{fontSize:i,className:n.dot,ownerState:o})]})};var hg=s(80062);const gg=n.createContext(void 0);function pg(e){return(0,kt.Z)("MuiRadio",e)}const mg=(0,Lt.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),fg=["checked","checkedIcon","color","icon","name","onChange","size","className"],vg=(0,xt.ZP)(zh,{shouldForwardProp:e=>(0,xt.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,Ut.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,_t.Z)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ro.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${mg.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${mg.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),_g=(0,Nt.jsx)(ug,{checked:!0}),bg=(0,Nt.jsx)(ug,{}),Cg=n.forwardRef((function(e,t){var i,o;const r=(0,St.Z)({props:e,name:"MuiRadio"}),{checked:s,checkedIcon:a=_g,color:l="primary",icon:c=bg,name:d,onChange:u,size:h="medium",className:g}=r,p=(0,vt.Z)(r,fg),m=(0,_t.Z)({},r,{color:l,size:h}),f=(e=>{const{classes:t,color:n}=e,i={root:["root",`color${(0,Ut.Z)(n)}`]};return(0,_t.Z)({},t,(0,Ct.Z)(i,pg,t))})(m),v=n.useContext(gg);let _=s;const b=(0,hg.Z)(u,v&&v.onChange);let C=d;var y,w;return v&&(void 0===_&&(y=v.value,_="object"==typeof(w=r.value)&&null!==w?y===w:String(y)===String(w)),void 0===C&&(C=v.name)),(0,Nt.jsx)(vg,(0,_t.Z)({type:"radio",icon:n.cloneElement(c,{fontSize:null!=(i=bg.props.fontSize)?i:h}),checkedIcon:n.cloneElement(a,{fontSize:null!=(o=_g.props.fontSize)?o:h}),ownerState:m,classes:f,name:C,checked:_,onChange:b,ref:t,className:(0,bt.Z)(f.root,g)},p))})),yg=Cg,wg="ListBoxRadioButton",Sg={denseRadioButton:`${wg}-denseRadioButton`,radioButton:`${wg}-radioButton`},xg=(0,xt.ZP)(yg)((({theme:e,checked:t})=>({[`&.${Sg.radioButton}`]:{right:"5px",color:t?e.palette.selected.main:e.palette.main}})));function Lg({onChange:e,checked:t,label:i,dense:o,dataN:r}){return n.createElement(xg,{checked:t,onChange:e,value:i,name:i,className:Sg.radioButton,inputProps:{"data-n":r},style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}const kg=function({label:e,color:t,dense:i,showGray:o=!0,checkboxes:r,cell:s,valueTextAlign:a}){return n.createElement(zr,{component:"span",variant:"body2",className:Sh([lh.labelText,i&&lh.labelDense,o&&mh({cell:s,checkboxes:r})&&lh.excludedTextWithCheckbox]),color:t,align:a,dir:"auto"},n.createElement("span",null,e))},Eg=function({label:e,color:t,dense:i,showGray:o,checkboxes:r,cell:s,valueTextAlign:a}){return"string"==typeof e?n.createElement(kg,{label:e,color:t,dense:i,showGray:o,checkboxes:r,cell:s,valueTextAlign:a}):e},Ng=function({onChange:e,label:t,color:i,qElemNumber:o,isSelected:r,dense:s,cell:a,isGridCol:l,showGray:c,isSingleSelect:d,checkboxes:u,valueTextAlign:h}){const g=n.createElement(rg,{onChange:e,label:t,checked:r,dense:s,excluded:gh(a),isGridCol:l,showGray:c,dataN:o}),p=n.createElement(Lg,{onChange:e,label:t,checked:r,dense:s,dataN:o});return n.createElement(Ah,{color:i,control:d?p:g,className:lh.checkboxLabel,label:n.createElement(Eg,{label:t,color:i,dense:s,showGray:c,checkboxes:u,cell:a,valueTextAlign:h}),key:o})};function Dg({labels:e,dense:t,showGray:i,checkboxes:o}){const r=e.map((([e,t],i)=>n.createElement("span",{id:i,className:t?lh.highlighted:""},e)));return n.createElement(kg,{label:r,dense:t,showGray:i,checkboxes:o})}const Ig=function({onChange:e,labels:t,checkboxes:i,dense:o,showGray:r,color:s,qElemNumber:a,isSelected:l,cell:c,isGridCol:d,isSingleSelect:u,valueTextAlign:h}){const g=n.createElement(Dg,{labels:t,dense:o,showGray:r,checkboxes:i});return i?n.createElement(Ng,{onChange:e,label:g,color:s,qElemNumber:a,isSelected:l,dense:o,cell:c,isGridCol:d,showGray:r,isSingleSelect:u,checkboxes:i,valueTextAlign:h}):g};function Rg({onChange:e,label:t,color:i,qElemNumber:o,isSelected:r,dense:s,cell:a,isGridCol:l,showGray:c,isSingleSelect:d,checkboxes:u,valueTextAlign:h}){return u?n.createElement(Ng,{onChange:e,label:t,color:i,qElemNumber:o,isSelected:r,dense:s,cell:a,isGridCol:l,showGray:c,isSingleSelect:d,checkboxes:u,valueTextAlign:h}):n.createElement(kg,{label:t,color:i,dense:s,showGray:!0,checkboxes:u,cell:a,valueTextAlign:h})}const Tg=n.memo(Rg),Og=function({qFrequency:e,histogram:t,checkboxes:i,isSelected:o,frequencyMax:r}){if(!e||!t||"-"===xh(e))return;const s=(({qFrequency:e,frequencyMax:t})=>{const n=String(e),i="%"===n.substring(n.length-1),o=parseFloat(i?n:e);return`${i?o:o/t*100}%`})({qFrequency:e,checkboxes:i,frequencyMax:r});return n.createElement(Hi,{className:Sh([lh.bar,i&&lh.barWithCheckbox,o&&(i?lh.barSelectedWithCheckbox:lh.barSelected)])},n.createElement(Hi,{className:"bar-filled",width:s}))},qg=function({cell:e,checkboxes:t,dense:i,showGray:o}){const r=xh(e?.qFrequency);return n.createElement(Ar,{item:!0,style:{display:"flex",alignItems:"center"},className:lh.frequencyCount,"aria-label":r},n.createElement(zr,{noWrap:!0,color:"inherit",variant:"body2",className:Sh([i&&lh.labelDense,lh.labelText,o&&mh({cell:e,checkboxes:t})&&lh.excludedTextWithCheckbox])},r))};function Ag({dataLayout:e,layoutOrder:t,itemPadding:n}){if("singleColumn"===e)return{height:"100%",width:"100%"};switch(t){case"row":case"column":return{height:`calc(100% - ${n}px)`,width:`calc(100% - ${2*n}px)`,position:"absolute",left:4};default:return{}}}const Mg=(0,xt.ZP)(Ar,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction"].includes(e)})((({dataLayout:e,layoutOrder:t,itemPadding:n,cellPaddingRight:i,direction:o})=>{const r="padding"+("rtl"===o?"Left":"Right");return{[`&.${lh.fieldRoot}`]:{...Ag({dataLayout:e,layoutOrder:t,itemPadding:n}),[r]:i?"8px":void 0}}})),Pg={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 Fg({layout:e}){const{translator:t}=(0,n.useContext)(hd),{qStateCounts:i={}}=e?.qListObject?.qDimensionInfo||{},o=i.qSelected+i.qSelectedExcluded+i.qLocked+i.qLockedExcluded;let r;switch(o){case 0:r="ScreenReader.ZeroSelected";break;case 1:r="ScreenReader.OneSelected";break;default:r="ScreenReader.ManySelected"}const s=t.get(r,[o]);return n.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},s)}const Bg=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===Bg.ARROW_UP||e===Bg.ARROW_DOWN||e===Bg.ARROW_LEFT||e===Bg.ARROW_RIGHT}),Wg=Bg,Vg=e=>+e.getAttribute("data-n"),zg=e=>{const t=e?.querySelector(".search input");return t?.focus(),t},Hg=e=>{const t=e?.querySelector(".value.last-focused, .value.selector, .value");return t?.setAttribute("tabIndex",0),t?.focus(),t},jg=function({index:e,rowIndex:t,columnIndex:i,style:o,data:r}){const{onChange:s,onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onTouchStart:u,onTouchEnd:h,pages:g,isLocked:p,column:m=!1,checkboxes:f=!1,textAlign:v,direction:_,layoutOptions:b={},freqIsAllowed:C,isSingleSelect:y,actions:w,frequencyMax:S="",histogram:x=!1,keyboard:L,showGray:k=!0,showTick:E=!0,columnCount:N=1,rowCount:D=1,dataOffset:I,focusListItems:R,listCount:T,itemPadding:O,frequencyWidth:q,translator:A,showSearch:M,isModal:P}=r,{dense:F=!1,dataLayout:B="singleColumn",layoutOrder:W}=b;let V,z;const H={max:null,currentIndex:null};if("number"==typeof t&&"number"==typeof i){"row"===W?(V=t*N+i,H.max=D,H.currentIndex=t):(V=i*D+t,H.max=N,H.currentIndex=i);const e=0;z={...o,left:e+(0===i?o.left:Number(o.left)+i*e),top:0===t?o.top:Number(o.top)+t*e}}else V=e,H.max=T,H.currentIndex=e,z={...o};V+=I;const[j,U]=(0,n.useState)(null);(0,n.useEffect)((()=>{null!==j&&(0===H.currentIndex&&R.first&&(j.focus(),R.setFirst(!1)),H.currentIndex===H.max-1&&R.last&&(j.focus(),R.setLast(!1)))}),[j,R.first,R.last]);const $=(0,n.useCallback)(function({select:e,selectAll:t,onCtrlF:n,confirm:i,cancel:o,setScrollPosition:r,focusListItems:s,keyboard:a,isModal:l,rowCount:c,columnCount:d,rowIndex:u,columnIndex:h,layoutOrder:g}){const p=(e,t,n=!1)=>{if(e===Wg.ARROW_LEFT||e===Wg.ARROW_RIGHT||"number"!=typeof u||"number"!=typeof h){const e=t?.parentElement[n?"nextElementSibling":"previousElementSibling"];return e?.querySelector("[role]")}const i=t?.parentElement.parentElement,o=i?.childElementCount;if(o){const n=(({rowIndex:e,columnIndex:t,rowCount:n,columnCount:i,layoutOrder:o,keyCode:r,numCells:s})=>{const a=e=>{let t;return"row"===o?(t=s%i,e<t?n:n-1):(t=s%n,e<i-1?n:t)};let l=e,c=t;if(r===Wg.ARROW_DOWN)if(e>=a(t)-1){if(t===i-1)return-1;l=0,c=t+1}else l=e+1;else if(0===e){if(0===t)return-1;l=a(t-1)-1,c=t-1}else l=e-1;if("row"===o)return l*i+c;const d=s%n;return 0===d||l<d?l*i+c:(l-d)*(i-1)+c+d*i})({rowIndex:u,columnIndex:h,rowCount:c,columnCount:d,layoutOrder:g,keyCode:e,numCells:o}),i=t?.parentElement.parentElement.children[n];return i?.querySelector("[role]")}};let m=!1;const f=e=>{m=e};return c=>{let d;const{currentTarget:u,nativeEvent:h}=c,{keyCode:g,shiftKey:v=!1,ctrlKey:_=!1,metaKey:b=!1}=h;switch(g){case Wg.TAB:{const e=u.closest(".listbox-container"),t=l();if(u.classList.add("last-focused"),v){zg(e)||(t?a.focusSelection():a.blur(!0));break}t?a.focusSelection():(u.blur(),a.blur());break}case Wg.SHIFT:f(!0);break;case Wg.SPACE:e([Vg(u)],!1,c);break;case Wg.ARROW_DOWN:case Wg.ARROW_RIGHT:d=p(g,u,!0),v&&d&&(m&&(e([Vg(u)],!0),f(!1)),e([Vg(d)],!0));break;case Wg.ARROW_UP:case Wg.ARROW_LEFT:d=p(g,u,!1),v&&d&&(m&&(e([Vg(u)],!0),f(!1)),e([Vg(d)],!0));break;case Wg.ENTER:i();break;case Wg.ESCAPE:if(!l())return;o();break;case Wg.HOME:if(s.setFirst(!0),_){r?.("overflowStart");break}r?.("start");break;case Wg.END:if(s.setLast(!0),_){r?.("overflowEnd");break}r?.("end");break;case Wg.A:if(_||b){t();break}return;case Wg.F:if(_||b){n();break}return;default:return}d&&d.focus(),c.preventDefault(),c.stopPropagation()}}({...w,focusListItems:R,keyboard:L,isModal:P,rowCount:D,columnCount:N,rowIndex:t,columnIndex:i,layoutOrder:W}),[w,L?.innerTabStops,D,N,t,i,W]),K=(0,n.useMemo)((()=>function({pages:e,cellIndex:t}){let n;const i=e.filter((e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight))[0];if(i){const e=i.qArea;t>=e.qTop&&t<e.qTop+e.qHeight&&([n]=i.qMatrix[t-e.qTop])}return n}({pages:g,cellIndex:V})),[g,V]),G="S"===K?.qState||"XS"===K?.qState||"L"===K?.qState||"XL"===K?.qState,Z=(0,n.useMemo)((()=>(({column:e,histogram:t,checkboxes:n,cell:i,showGray:o})=>{const r=[e?lh.column:lh.row];return t||r.push(lh.rowBorderBottom),i?(n||("XS"===i.qState?r.push(o?lh.XS:lh.S):"S"===i.qState||"L"===i.qState?r.push(lh.S):o&&ph(i)?r.push(lh.A):o&&gh(i)&&r.push(lh.X)),r):[]})({column:m,histogram:x,checkboxes:f,cell:K,showGray:k})),[K?.qState,x,F,f]),Q=(0,n.useCallback)((e=>{e.preventDefault()}),[f]);if(!K)return null;const Y=!["NaN",void 0].includes(K?.qNum);let X;X=!v||v.auto?Y?"rtl"===_?"left":"right":{rtl:"right",ltr:"left"}[_]:v?.align||"left";const J="grid"===B&&"column"===W,ee=K?.qText??"";let te;K.qHighlightRanges?.qRanges?.length&&(te=function(e,t){if(!t.length)return[];const n=t.reduce(((n,i,o)=>{const r=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t,n=0){const{qCharPos:i,qCharCount:o}=t,r=[];return i>n&&r.push([e.slice(n,i),!1]),r.push([e.slice(i,i+o),!0]),r}(e,i,r));const s=o===t.length-1,a=t[o].qCharPos+t[o].qCharCount;return s&&a<e.length&&n.push([e.slice(a),!1]),n}),[]);return n}(ee,K.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[]));const ne={alignItems:"center",display:"flex",fontSize:"8px"},ie={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"rtl"===_?8:f?0:void 0,paddingRight:f?0:"rtl"===_?8:0,justifyContent:X},oe=0===e,re=f?"auto":"max-content",se=G&&p,ae=!f&&G&&!p,le=!f&&E,ce=f||!E,de=function({translator:e,label:t,qState:n,isSelected:i,currentIndex:o,maxIndex:r,showSearch:s}){const a=Pg[n],l=e.get(a),c=[];if(i){const t=s?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=e.get(t);c.push(n)}const d=`${t} ${l}`,u=e.get("CurrentSelections.Of",[o+1,r+1]);return c.unshift(d,u),c.join(". ").trim()}({translator:A,label:ee,qState:K.qState,currentIndex:H.currentIndex,maxIndex:H.max,showSearch:M});return n.createElement(Nh,{className:lh.barContainer,flexBasisProp:re,style:z,isGridCol:J,isGridMode:"grid"===B,dense:F,frequencyWidth:q,direction:_,"data-testid":"listbox.item"},n.createElement(Mg,{role:"row","aria-label":de,"aria-selected":G,"aria-setsize":H.max,"aria-rowindex":H.currentIndex,ref:U,container:!0,dataLayout:B,cellPaddingRight:ce,layoutOrder:W,itemPadding:O,gap:0,className:Sh(["value",...Z]),classes:{root:lh.fieldRoot},onClick:a,onMouseDown:l,onMouseUp:c,onMouseEnter:d,onKeyDown:$,onTouchStart:u,onTouchEnd:h,onContextMenu:Q,tabIndex:oe&&L.innerTabStops?0:-1,"data-n":K?.qElemNumber,direction:_},K?.qFrequency&&n.createElement(Og,{qFrequency:K?.qFrequency,histogram:x,checkboxes:f,isSelected:G,frequencyMax:S}),n.createElement(Ar,{item:!0,style:ie,className:Sh([lh.cell,lh.selectedCell]),title:`${ee}`},te?n.createElement(Ig,{onChange:s,labels:te,checkboxes:f,dense:F,showGray:k,color:"inherit",qElemNumber:K.qElemNumber,isSelected:G,cell:K,isGridCol:J,isSingleSelect:y,valueTextAlign:X}):n.createElement(Tg,{onChange:s,label:ee,color:"inherit",qElemNumber:K.qElemNumber,isSelected:G,dense:F,cell:K,isGridCol:J,showGray:k,isSingleSelect:y,checkboxes:f,valueTextAlign:X})),C&&n.createElement(qg,{cell:K,checkboxes:f,dense:F,showGray:k}),le&&n.createElement(Ar,{item:!0,className:lh.icon},se&&n.createElement(Gd,{style:ne,size:"small"}),ae&&n.createElement(hh,{style:ne,size:"small"}))))};var Ug=s(49241),$g=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Kg(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((i=e[n])===(o=t[n])||$g(i)&&$g(o)))return!1;var i,o;return!0}const Gg=function(e,t){var n;void 0===t&&(t=Kg);var i,o=[],r=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return r&&n===this&&t(s,o)||(i=e.apply(this,s),r=!0,n=this,o=s),i}};var Zg="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Qg(e){cancelAnimationFrame(e.id)}function Yg(e,t){var n=Zg(),i={id:requestAnimationFrame((function o(){Zg()-n>=t?e.call(null):i.id=requestAnimationFrame(o)}))};return i}var Xg=-1;function Jg(e){if(void 0===e&&(e=!1),-1===Xg||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Xg=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Xg}var ep=null;function tp(e){if(void 0===e&&(e=!1),null===ep||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var i=document.createElement("div"),o=i.style;return o.width="100px",o.height="100px",t.appendChild(i),document.body.appendChild(t),t.scrollLeft>0?ep="positive-descending":(t.scrollLeft=1,ep=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ep}return ep}var np=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function ip(e){var t,i=e.getColumnOffset,o=e.getColumnStartIndexForOffset,r=e.getColumnStopIndexForStartIndex,s=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,c=e.getOffsetForColumnAndAlignment,d=e.getOffsetForRowAndAlignment,u=e.getRowHeight,h=e.getRowOffset,g=e.getRowStartIndexForOffset,p=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,Po(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Po(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Gg((function(e,t,i,o,r,s,a,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:i,overscanRowStopIndex:o,visibleColumnStartIndex:r,visibleColumnStopIndex:s,visibleRowStartIndex:a,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=Gg((function(e,t,i,o,r){return n.props.onScroll({horizontalScrollDirection:i,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,r=n.props,a=r.columnWidth,l=r.direction,c=r.rowHeight,d=n._getItemStyleCache(f&&a,f&&l,f&&c),g=e+":"+t;if(d.hasOwnProperty(g))o=d[g];else{var p=i(n.props,t,n._instanceProps),m="rtl"===l;d[g]=o={position:"absolute",left:m?void 0:p,right:m?p:void 0,top:h(n.props,e,n._instanceProps),height:u(n.props,e,n._instanceProps),width:s(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=Gg((function(e,t,n){return{}})),n._onScroll=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.clientWidth,r=t.scrollLeft,s=t.scrollTop,a=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===r&&e.scrollTop===s)return null;var t=n.props.direction,c=r;if("rtl"===t)switch(tp()){case"negative":c=-r;break;case"positive-descending":c=l-o-r}c=Math.max(0,Math.min(c,l-o));var d=Math.max(0,Math.min(s,a-i));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<r?"forward":"backward",scrollLeft:c,scrollTop:d,verticalScrollDirection:e.scrollTop<s?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&Qg(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Yg(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}Bo(t,e),t.getDerivedStateFromProps=function(e,t){return op(e,t),v(e),null};var _=t.prototype;return _.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)},_.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,i=e.columnIndex,o=e.rowIndex,r=this.props,s=r.columnCount,u=r.height,h=r.rowCount,g=r.width,p=this.state,m=p.scrollLeft,f=p.scrollTop,v=Jg();void 0!==i&&(i=Math.max(0,Math.min(i,s-1))),void 0!==o&&(o=Math.max(0,Math.min(o,h-1)));var _=a(this.props,this._instanceProps),b=l(this.props,this._instanceProps)>g?v:0,C=_>u?v:0;this.scrollTo({scrollLeft:void 0!==i?c(this.props,i,n,m,this._instanceProps,C):m,scrollTop:void 0!==o?d(this.props,o,n,f,this._instanceProps,b):f})},_.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var i=this._outerRef;"number"==typeof t&&(i.scrollLeft=t),"number"==typeof n&&(i.scrollTop=n)}this._callPropsCallbacks()},_.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,i=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(tp()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var r=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-r-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,i)}this._callPropsCallbacks()},_.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Qg(this._resetIsScrollingTimeoutId)},_.render=function(){var e=this.props,t=e.children,i=e.className,o=e.columnCount,r=e.direction,s=e.height,c=e.innerRef,d=e.innerElementType,u=e.innerTagName,h=e.itemData,g=e.itemKey,p=void 0===g?np:g,m=e.outerElementType,f=e.outerTagName,v=e.rowCount,_=e.style,b=e.useIsScrolling,C=e.width,y=this.state.isScrolling,w=this._getHorizontalRangeToRender(),S=w[0],x=w[1],L=this._getVerticalRangeToRender(),k=L[0],E=L[1],N=[];if(o>0&&v)for(var D=k;D<=E;D++)for(var I=S;I<=x;I++)N.push((0,n.createElement)(t,{columnIndex:I,data:h,isScrolling:b?y:void 0,key:p({columnIndex:I,data:h,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,I)}));var R=a(this.props,this._instanceProps),T=l(this.props,this._instanceProps);return(0,n.createElement)(m||f||"div",{className:i,onScroll:this._onScroll,ref:this._outerRefSetter,style:Mo({position:"relative",height:s,width:C,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},_)},(0,n.createElement)(d||u||"div",{children:N,ref:c,style:{height:R,pointerEvents:y?"none":void 0,width:T}}))},_._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,i=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var r=this._getHorizontalRangeToRender(),s=r[0],a=r[1],l=r[2],c=r[3],d=this._getVerticalRangeToRender(),u=d[0],h=d[1],g=d[2],p=d[3];this._callOnItemsRendered(s,a,u,h,l,c,g,p)}if("function"==typeof i){var m=this.state,f=m.horizontalScrollDirection,v=m.scrollLeft,_=m.scrollTop,b=m.scrollUpdateWasRequested,C=m.verticalScrollDirection;this._callOnScroll(v,_,f,C,b)}},_._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,s=e.overscanCount,a=e.rowCount,l=this.state,c=l.horizontalScrollDirection,d=l.isScrolling,u=l.scrollLeft,h=n||i||s||1;if(0===t||0===a)return[0,0,0,0];var g=o(this.props,u,this._instanceProps),p=r(this.props,g,u,this._instanceProps),m=d&&"backward"!==c?1:Math.max(1,h),f=d&&"forward"!==c?1:Math.max(1,h);return[Math.max(0,g-m),Math.max(0,Math.min(t-1,p+f)),g,p]},_._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,i=e.overscanRowCount,o=e.overscanRowsCount,r=e.rowCount,s=this.state,a=s.isScrolling,l=s.verticalScrollDirection,c=s.scrollTop,d=i||o||n||1;if(0===t||0===r)return[0,0,0,0];var u=g(this.props,c,this._instanceProps),h=p(this.props,u,c,this._instanceProps),m=a&&"backward"!==l?1:Math.max(1,d),f=a&&"forward"!==l?1:Math.max(1,d);return[Math.max(0,u-m),Math.max(0,Math.min(r-1,h+f)),u,h]},t}(n.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var op=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},rp=function(e,t){return e};function sp(e){var t,i=e.getItemOffset,o=e.getEstimatedTotalSize,r=e.getItemSize,s=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=c(n.props,Po(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Po(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Gg((function(e,t,i,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:i,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=Gg((function(e,t,i){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,s=o.direction,a=o.itemSize,l=o.layout,c=n._getItemStyleCache(d&&a,d&&l,d&&s);if(c.hasOwnProperty(e))t=c[e];else{var u=i(n.props,e,n._instanceProps),h=r(n.props,e,n._instanceProps),g="horizontal"===s||"horizontal"===l,p="rtl"===s,m=g?u:0;c[e]=t={position:"absolute",left:p?void 0:m,right:p?m:void 0,top:g?0:u,height:g?"100%":h,width:g?h:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=Gg((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,i=t.clientWidth,o=t.scrollLeft,r=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,s=o;if("rtl"===t)switch(tp()){case"negative":s=-o;break;case"positive-descending":s=r-i-o}return s=Math.max(0,Math.min(s,r-i)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:s,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,i=t.clientHeight,o=t.scrollHeight,r=t.scrollTop;n.setState((function(e){if(e.scrollOffset===r)return null;var t=Math.max(0,Math.min(r,o-i));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&Qg(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Yg(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Bo(t,e),t.getDerivedStateFromProps=function(e,t){return ap(e,t),u(e),null};var h=t.prototype;return h.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},h.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,i=n.itemCount,o=n.layout,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,i-1));var a=0;if(this._outerRef){var l=this._outerRef;a="vertical"===o?l.scrollWidth>l.clientWidth?Jg():0:l.scrollHeight>l.clientHeight?Jg():0}this.scrollTo(s(this.props,e,t,r,this._instanceProps,a))},h.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,i=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===i?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},h.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,i=this.state,o=i.scrollOffset;if(i.scrollUpdateWasRequested&&null!=this._outerRef){var r=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(tp()){case"negative":r.scrollLeft=-o;break;case"positive-ascending":r.scrollLeft=o;break;default:var s=r.clientWidth,a=r.scrollWidth;r.scrollLeft=a-s-o}else r.scrollLeft=o;else r.scrollTop=o}this._callPropsCallbacks()},h.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Qg(this._resetIsScrollingTimeoutId)},h.render=function(){var e=this.props,t=e.children,i=e.className,r=e.direction,s=e.height,a=e.innerRef,l=e.innerElementType,c=e.innerTagName,d=e.itemCount,u=e.itemData,h=e.itemKey,g=void 0===h?rp:h,p=e.layout,m=e.outerElementType,f=e.outerTagName,v=e.style,_=e.useIsScrolling,b=e.width,C=this.state.isScrolling,y="horizontal"===r||"horizontal"===p,w=y?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),x=S[0],L=S[1],k=[];if(d>0)for(var E=x;E<=L;E++)k.push((0,n.createElement)(t,{data:u,key:g(E,u),index:E,isScrolling:_?C:void 0,style:this._getItemStyle(E)}));var N=o(this.props,this._instanceProps);return(0,n.createElement)(m||f||"div",{className:i,onScroll:w,ref:this._outerRefSetter,style:Mo({position:"relative",height:s,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},v)},(0,n.createElement)(l||c||"div",{children:k,ref:a,style:{height:y?"100%":N,pointerEvents:C?"none":void 0,width:y?N:"100%"}}))},h._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],i=e[2],o=e[3];this._callOnItemsRendered(t,n,i,o)}if("function"==typeof this.props.onScroll){var r=this.state,s=r.scrollDirection,a=r.scrollOffset,l=r.scrollUpdateWasRequested;this._callOnScroll(s,a,l)}},h._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,i=this.state,o=i.isScrolling,r=i.scrollDirection,s=i.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,s,this._instanceProps),d=l(this.props,c,s,this._instanceProps),u=o&&"backward"!==r?1:Math.max(1,n),h=o&&"forward"!==r?1:Math.max(1,n);return[Math.max(0,c-u),Math.max(0,Math.min(t-1,d+h)),c,d]},t}(n.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var ap=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},lp=ip({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,i,o,r){var s=e.columnCount,a=e.columnWidth,l=e.width,c=Math.max(0,s*a-l),d=Math.min(c,t*a),u=Math.max(0,t*a-l+r+a);switch("smart"===n&&(n=i>=u-l&&i<=d+l?"auto":"center"),n){case"start":return d;case"end":return u;case"center":var h=Math.round(u+(d-u)/2);return h<Math.ceil(l/2)?0:h>c+Math.floor(l/2)?c:h;default:return i>=u&&i<=d?i:u>d||i<u?u:d}},getOffsetForRowAndAlignment:function(e,t,n,i,o,r){var s=e.rowHeight,a=e.height,l=e.rowCount,c=Math.max(0,l*s-a),d=Math.min(c,t*s),u=Math.max(0,t*s-a+r+s);switch("smart"===n&&(n=i>=u-a&&i<=d+a?"auto":"center"),n){case"start":return d;case"end":return u;case"center":var h=Math.round(u+(d-u)/2);return h<Math.ceil(a/2)?0:h>c+Math.floor(a/2)?c:h;default:return i>=u&&i<=d?i:u>d||i<u?u:d}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,i=e.columnCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var i=e.columnWidth,o=e.columnCount,r=e.width,s=t*i,a=Math.ceil((r+n-s)/i);return Math.max(0,Math.min(o-1,t+a-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,i=e.rowCount;return Math.max(0,Math.min(i-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var i=e.rowHeight,o=e.rowCount,r=e.height,s=t*i,a=Math.ceil((r+n-s)/i);return Math.max(0,Math.min(o-1,t+a-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),cp=sp({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,i,o,r){var s=e.direction,a=e.height,l=e.itemCount,c=e.itemSize,d=e.layout,u=e.width,h="horizontal"===s||"horizontal"===d?u:a,g=Math.max(0,l*c-h),p=Math.min(g,t*c),m=Math.max(0,t*c-h+c+r);switch("smart"===n&&(n=i>=m-h&&i<=p+h?"auto":"center"),n){case"start":return p;case"end":return m;case"center":var f=Math.round(m+(p-m)/2);return f<Math.ceil(h/2)?0:f>g+Math.floor(h/2)?g:f;default:return i>=m&&i<=p?i:i<m?m:p}},getStartIndexForOffset:function(e,t){var n=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/i)))},getStopIndexForStartIndex:function(e,t,n){var i=e.direction,o=e.height,r=e.itemCount,s=e.itemSize,a=e.layout,l=e.width,c=t*s,d="horizontal"===i||"horizontal"===a?l:o,u=Math.ceil((d+n-c)/s);return Math.max(0,Math.min(r-1,t+u-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const dp="#BBB",up="#f1f1f1",hp={styledScrollbars:"ListBox-styledScrollbars"},gp=(e,t)=>void 0!==e?.visibleRowStopIndex||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,pp=(e,t)=>void 0!==e?.visibleRowStartIndex||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,mp=(e,t,n,i)=>e===t*n+i+n;function fp({renderProps:e,layoutOptions:t,maxCount:n,columnCount:i,rowCount:o,overflowDisclaimer:r,qCardinal:s,dataOffset:a}){const l="column"===t?.layoutOrder&&"singleColumn"!==t.dataLayout,c=gp(e,l),d=l?n.column:n.row,u=(l?i:o)>=d,h=mp(s,c,l?o:i,a),g=!!a&&pp(e,l),p=u&&!h&&c>=d-1||g||r.state.show;r.set(p)}function vp(){return vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},vp.apply(this,arguments)}const{StyledFixedSizeList:_p,StyledFixedSizeGrid:bp}=function(){const e=e=>({scrollbarColor:`${dp} ${up}`,overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:up},"&::-webkit-scrollbar-thumb":{backgroundColor:dp,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:(0,Ug.Z)(cp,{shouldForwardProp:e=>"scrollDisabled"!==e})((({scrollDisabled:t})=>({[`&.${hp.styledScrollbars}`]:e(t)}))),StyledFixedSizeGrid:(0,Ug.Z)(lp,{shouldForwardProp:e=>"scrollDisabled"!==e})((({scrollDisabled:t})=>({[`&.${hp.styledScrollbars}`]:e(t)})))}}();const Cp=e=>{const t=(0,n.useMemo)((()=>"text"in e?e:{}),[e]);return(0,n.useMemo)((()=>((e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();return n.font=t,Array.isArray(e)?Math.max(...e.map((e=>n.measureText(e).width))):n.measureText(e).width})(t.text,t.font||"14px Source Sans Pro")),[t.text,t.font])};function yp(e){if(!e)return"";const t=e.qListObject.qDimensionInfo.qApprMaxGlyphCount;let n="";for(let e=0;e<t;e++)n+="M";return n}const wp=({pages:e=[],minimumBatchSize:t,count:n})=>{const i=e.some((e=>e.qArea.qHeight<t)),o=Math.max(...e.map((e=>e.qArea.qTop+e.qArea.qHeight)));return i?o:n},[Sp,xp]=gd({});function Lp(e){const t=`${e.id}`,[n]=Sp();return{setStoreValue:(e,i)=>n.set(`${t}/${e}`,i),getStoreValue:e=>n.get(`${t}/${e}`)}}function kp(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ep(e){return e instanceof kp(e).Element||e instanceof Element}function Np(e){return e instanceof kp(e).HTMLElement||e instanceof HTMLElement}function Dp(e){return"undefined"!=typeof ShadowRoot&&(e instanceof kp(e).ShadowRoot||e instanceof ShadowRoot)}var Ip=Math.max,Rp=Math.min,Tp=Math.round;function Op(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function qp(){return!/^((?!chrome|android).)*safari/i.test(Op())}function Ap(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=1,r=1;t&&Np(e)&&(o=e.offsetWidth>0&&Tp(i.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Tp(i.height)/e.offsetHeight||1);var s=(Ep(e)?kp(e):window).visualViewport,a=!qp()&&n,l=(i.left+(a&&s?s.offsetLeft:0))/o,c=(i.top+(a&&s?s.offsetTop:0))/r,d=i.width/o,u=i.height/r;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function Mp(e){var t=kp(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Pp(e){return e?(e.nodeName||"").toLowerCase():null}function Fp(e){return((Ep(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bp(e){return Ap(Fp(e)).left+Mp(e).scrollLeft}function Wp(e){return kp(e).getComputedStyle(e)}function Vp(e){var t=Wp(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function zp(e,t,n){void 0===n&&(n=!1);var i=Np(t),o=Np(t)&&function(e){var t=e.getBoundingClientRect(),n=Tp(t.width)/e.offsetWidth||1,i=Tp(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),r=Fp(t),s=Ap(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==Pp(t)||Vp(r))&&(a=function(e){return e!==kp(e)&&Np(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Mp(e);var t}(t)),Np(t)?((l=Ap(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=Bp(r))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Hp(e){var t=Ap(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function jp(e){return"html"===Pp(e)?e:e.assignedSlot||e.parentNode||(Dp(e)?e.host:null)||Fp(e)}function Up(e){return["html","body","#document"].indexOf(Pp(e))>=0?e.ownerDocument.body:Np(e)&&Vp(e)?e:Up(jp(e))}function $p(e,t){var n;void 0===t&&(t=[]);var i=Up(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),r=kp(i),s=o?[r].concat(r.visualViewport||[],Vp(i)?i:[]):i,a=t.concat(s);return o?a:a.concat($p(jp(s)))}function Kp(e){return["table","td","th"].indexOf(Pp(e))>=0}function Gp(e){return Np(e)&&"fixed"!==Wp(e).position?e.offsetParent:null}function Zp(e){for(var t=kp(e),n=Gp(e);n&&Kp(n)&&"static"===Wp(n).position;)n=Gp(n);return n&&("html"===Pp(n)||"body"===Pp(n)&&"static"===Wp(n).position)?t:n||function(e){var t=/firefox/i.test(Op());if(/Trident/i.test(Op())&&Np(e)&&"fixed"===Wp(e).position)return null;var n=jp(e);for(Dp(n)&&(n=n.host);Np(n)&&["html","body"].indexOf(Pp(n))<0;){var i=Wp(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var Qp="top",Yp="bottom",Xp="right",Jp="left",em="auto",tm=[Qp,Yp,Xp,Jp],nm="start",im="end",om="viewport",rm="popper",sm=tm.reduce((function(e,t){return e.concat([t+"-"+nm,t+"-"+im])}),[]),am=[].concat(tm,[em]).reduce((function(e,t){return e.concat([t,t+"-"+nm,t+"-"+im])}),[]),lm=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function cm(e){var t=new Map,n=new Set,i=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&o(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),i}var dm={placement:"bottom",modifiers:[],strategy:"absolute"};function um(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function hm(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,o=t.defaultOptions,r=void 0===o?dm:o;return function(e,t,n){void 0===n&&(n=r);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},dm,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;u(),a.options=Object.assign({},r,a.options,o),a.scrollParents={reference:Ep(e)?$p(e):e.contextElement?$p(e.contextElement):[],popper:$p(t)};var s,c,h=function(e){var t=cm(e);return lm.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(i,a.options.modifiers),c=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=h.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var r=o({state:a,name:t,instance:d,options:i});l.push(r||function(){})}})),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(um(t,n)){a.rects={reference:zp(t,Zp(n),"fixed"===a.options.strategy),popper:Hp(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var o=a.orderedModifiers[i],r=o.fn,s=o.options,l=void 0===s?{}:s,u=o.name;"function"==typeof r&&(a=r({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(e){d.forceUpdate(),e(a)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(o())}))}))),s}),destroy:function(){u(),c=!0}};if(!um(e,t))return d;function u(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var gm={passive:!0};function pm(e){return e.split("-")[0]}function mm(e){return e.split("-")[1]}function fm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vm(e){var t,n=e.reference,i=e.element,o=e.placement,r=o?pm(o):null,s=o?mm(o):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case Qp:t={x:a,y:n.y-i.height};break;case Yp:t={x:a,y:n.y+n.height};break;case Xp:t={x:n.x+n.width,y:l};break;case Jp:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=r?fm(r):null;if(null!=c){var d="y"===c?"height":"width";switch(s){case nm:t[c]=t[c]-(n[d]/2-i[d]/2);break;case im:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}var _m={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bm(e){var t,n=e.popper,i=e.popperRect,o=e.placement,r=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,h=s.x,g=void 0===h?0:h,p=s.y,m=void 0===p?0:p,f="function"==typeof d?d({x:g,y:m}):{x:g,y:m};g=f.x,m=f.y;var v=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),b=Jp,C=Qp,y=window;if(c){var w=Zp(n),S="clientHeight",x="clientWidth";w===kp(n)&&"static"!==Wp(w=Fp(n)).position&&"absolute"===a&&(S="scrollHeight",x="scrollWidth"),(o===Qp||(o===Jp||o===Xp)&&r===im)&&(C=Yp,m-=(u&&w===y&&y.visualViewport?y.visualViewport.height:w[S])-i.height,m*=l?1:-1),o!==Jp&&(o!==Qp&&o!==Yp||r!==im)||(b=Xp,g-=(u&&w===y&&y.visualViewport?y.visualViewport.width:w[x])-i.width,g*=l?1:-1)}var L,k=Object.assign({position:a},c&&_m),E=!0===d?function(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:Tp(n*o)/o||0,y:Tp(i*o)/o||0}}({x:g,y:m},kp(n)):{x:g,y:m};return g=E.x,m=E.y,l?Object.assign({},k,((L={})[C]=_?"0":"",L[b]=v?"0":"",L.transform=(y.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",L)):Object.assign({},k,((t={})[C]=_?m+"px":"",t[b]=v?g+"px":"",t.transform="",t))}const Cm={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},o=t.elements[e];Np(o)&&Pp(o)&&(Object.assign(o.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],o=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Np(i)&&Pp(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};var ym={left:"right",right:"left",bottom:"top",top:"bottom"};function wm(e){return e.replace(/left|right|bottom|top/g,(function(e){return ym[e]}))}var Sm={start:"end",end:"start"};function xm(e){return e.replace(/start|end/g,(function(e){return Sm[e]}))}function Lm(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Dp(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function km(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Em(e,t,n){return t===om?km(function(e,t){var n=kp(e),i=Fp(e),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var c=qp();(c||!c&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+Bp(e),y:l}}(e,n)):Ep(t)?function(e,t){var n=Ap(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):km(function(e){var t,n=Fp(e),i=Mp(e),o=null==(t=e.ownerDocument)?void 0:t.body,r=Ip(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ip(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+Bp(e),l=-i.scrollTop;return"rtl"===Wp(o||n).direction&&(a+=Ip(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}(Fp(e)))}function Nm(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Dm(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Im(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=void 0===i?e.placement:i,r=n.strategy,s=void 0===r?e.strategy:r,a=n.boundary,l=void 0===a?"clippingParents":a,c=n.rootBoundary,d=void 0===c?om:c,u=n.elementContext,h=void 0===u?rm:u,g=n.altBoundary,p=void 0!==g&&g,m=n.padding,f=void 0===m?0:m,v=Nm("number"!=typeof f?f:Dm(f,tm)),_=h===rm?"reference":rm,b=e.rects.popper,C=e.elements[p?_:h],y=function(e,t,n,i){var o="clippingParents"===t?function(e){var t=$p(jp(e)),n=["absolute","fixed"].indexOf(Wp(e).position)>=0&&Np(e)?Zp(e):e;return Ep(n)?t.filter((function(e){return Ep(e)&&Lm(e,n)&&"body"!==Pp(e)})):[]}(e):[].concat(t),r=[].concat(o,[n]),s=r[0],a=r.reduce((function(t,n){var o=Em(e,n,i);return t.top=Ip(o.top,t.top),t.right=Rp(o.right,t.right),t.bottom=Rp(o.bottom,t.bottom),t.left=Ip(o.left,t.left),t}),Em(e,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Ep(C)?C:C.contextElement||Fp(e.elements.popper),l,d,s),w=Ap(e.elements.reference),S=vm({reference:w,element:b,strategy:"absolute",placement:o}),x=km(Object.assign({},b,S)),L=h===rm?x:w,k={top:y.top-L.top+v.top,bottom:L.bottom-y.bottom+v.bottom,left:y.left-L.left+v.left,right:L.right-y.right+v.right},E=e.modifiersData.offset;if(h===rm&&E){var N=E[o];Object.keys(k).forEach((function(e){var t=[Xp,Yp].indexOf(e)>=0?1:-1,n=[Qp,Yp].indexOf(e)>=0?"y":"x";k[e]+=N[n]*t}))}return k}function Rm(e,t,n){return Ip(e,Rp(t,n))}function Tm(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Om(e){return[Qp,Xp,Yp,Jp].some((function(t){return e[t]>=0}))}var qm=hm({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,r=void 0===o||o,s=i.resize,a=void 0===s||s,l=kp(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach((function(e){e.addEventListener("scroll",n.update,gm)})),a&&l.addEventListener("resize",n.update,gm),function(){r&&c.forEach((function(e){e.removeEventListener("scroll",n.update,gm)})),a&&l.removeEventListener("resize",n.update,gm)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=vm({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,l=void 0===a||a,c={placement:pm(t.placement),variation:mm(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,bm(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,bm(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Cm,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.offset,r=void 0===o?[0,0]:o,s=am.reduce((function(e,n){return e[n]=function(e,t,n){var i=pm(e),o=[Jp,Qp].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[Jp,Xp].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,r),e}),{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,p=void 0===g||g,m=n.allowedAutoPlacements,f=t.options.placement,v=pm(f),_=l||(v!==f&&p?function(e){if(pm(e)===em)return[];var t=wm(e);return[xm(e),t,xm(t)]}(f):[wm(f)]),b=[f].concat(_).reduce((function(e,n){return e.concat(pm(n)===em?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?am:l,d=mm(i),u=d?a?sm:sm.filter((function(e){return mm(e)===d})):tm,h=u.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=u);var g=h.reduce((function(t,n){return t[n]=Im(e,{placement:n,boundary:o,rootBoundary:r,padding:s})[pm(n)],t}),{});return Object.keys(g).sort((function(e,t){return g[e]-g[t]}))}(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),C=t.rects.reference,y=t.rects.popper,w=new Map,S=!0,x=b[0],L=0;L<b.length;L++){var k=b[L],E=pm(k),N=mm(k)===nm,D=[Qp,Yp].indexOf(E)>=0,I=D?"width":"height",R=Im(t,{placement:k,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),T=D?N?Xp:Jp:N?Yp:Qp;C[I]>y[I]&&(T=wm(T));var O=wm(T),q=[];if(r&&q.push(R[E]<=0),a&&q.push(R[T]<=0,R[O]<=0),q.every((function(e){return e}))){x=k,S=!1;break}w.set(k,q)}if(S)for(var A=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},M=p?3:1;M>0&&"break"!==A(M);M--);t.placement!==x&&(t.modifiersData[i]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,g=void 0===h||h,p=n.tetherOffset,m=void 0===p?0:p,f=Im(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=pm(t.placement),_=mm(t.placement),b=!_,C=fm(v),y="x"===C?"y":"x",w=t.modifiersData.popperOffsets,S=t.rects.reference,x=t.rects.popper,L="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(w){if(r){var D,I="y"===C?Qp:Jp,R="y"===C?Yp:Xp,T="y"===C?"height":"width",O=w[C],q=O+f[I],A=O-f[R],M=g?-x[T]/2:0,P=_===nm?S[T]:x[T],F=_===nm?-x[T]:-S[T],B=t.elements.arrow,W=g&&B?Hp(B):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=V[I],H=V[R],j=Rm(0,S[T],W[T]),U=b?S[T]/2-M-j-z-k.mainAxis:P-j-z-k.mainAxis,$=b?-S[T]/2+M+j+H+k.mainAxis:F+j+H+k.mainAxis,K=t.elements.arrow&&Zp(t.elements.arrow),G=K?"y"===C?K.clientTop||0:K.clientLeft||0:0,Z=null!=(D=null==E?void 0:E[C])?D:0,Q=O+$-Z,Y=Rm(g?Rp(q,O+U-Z-G):q,O,g?Ip(A,Q):A);w[C]=Y,N[C]=Y-O}if(a){var X,J="x"===C?Qp:Jp,ee="x"===C?Yp:Xp,te=w[y],ne="y"===y?"height":"width",ie=te+f[J],oe=te-f[ee],re=-1!==[Qp,Jp].indexOf(v),se=null!=(X=null==E?void 0:E[y])?X:0,ae=re?ie:te-S[ne]-x[ne]-se+k.altAxis,le=re?te+S[ne]+x[ne]-se-k.altAxis:oe,ce=g&&re?function(e,t,n){var i=Rm(e,t,n);return i>n?n:i}(ae,te,le):Rm(g?ae:ie,te,g?le:oe);w[y]=ce,N[y]=ce-te}t.modifiersData[i]=N}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,o=e.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=pm(n.placement),l=fm(a),c=[Jp,Xp].indexOf(a)>=0?"height":"width";if(r&&s){var d=function(e,t){return Nm("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Dm(e,tm))}(o.padding,n),u=Hp(r),h="y"===l?Qp:Jp,g="y"===l?Yp:Xp,p=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],m=s[l]-n.rects.reference[l],f=Zp(r),v=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,_=p/2-m/2,b=d[h],C=v-u[c]-d[g],y=v/2-u[c]/2+_,w=Rm(b,y,C),S=l;n.modifiersData[i]=((t={})[S]=w,t.centerOffset=w-y,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&Lm(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,r=t.modifiersData.preventOverflow,s=Im(t,{elementContext:"reference"}),a=Im(t,{altBoundary:!0}),l=Tm(s,i),c=Tm(a,o,r),d=Om(l),u=Om(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}}]});function Am(e){return(0,kt.Z)("MuiPopper",e)}(0,Lt.Z)("MuiPopper",["root"]);const Mm=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Pm=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Fm(e){return"function"==typeof e?e():e}const Bm={},Wm=n.forwardRef((function(e,t){var i;const{anchorEl:o,children:r,direction:s,disablePortal:a,modifiers:l,open:c,placement:d,popperOptions:u,popperRef:h,slotProps:g={},slots:p={},TransitionProps:m}=e,f=ea(e,Mm),v=n.useRef(null),_=(0,ta.Z)(v,t),b=n.useRef(null),C=(0,ta.Z)(b,h),y=n.useRef(C);(0,sl.Z)((()=>{y.current=C}),[C]),n.useImperativeHandle(h,(()=>b.current),[]);const w=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(d,s),[S,x]=n.useState(w),[L,k]=n.useState(Fm(o));n.useEffect((()=>{b.current&&b.current.forceUpdate()})),n.useEffect((()=>{o&&k(Fm(o))}),[o]),(0,sl.Z)((()=>{if(!L||!c)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{x(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=qm(L,v.current,Js({placement:w},u,{modifiers:e}));return y.current(t),()=>{t.destroy(),y.current(null)}}),[L,a,l,c,u,w]);const E={placement:S};null!==m&&(E.TransitionProps=m);const N=(0,Ct.Z)({root:["root"]},bu(Am)),D=null!=(i=p.root)?i:"div",I=la({elementType:D,externalSlotProps:g.root,externalForwardedProps:f,additionalProps:{role:"tooltip",ref:_},ownerState:e,className:N.root});return(0,Nt.jsx)(D,Js({},I,{children:"function"==typeof r?r(E):r}))})),Vm=n.forwardRef((function(e,t){const{anchorEl:i,children:o,container:r,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:u="bottom",popperOptions:h=Bm,popperRef:g,style:p,transition:m=!1,slotProps:f={},slots:v={}}=e,_=ea(e,Pm),[b,C]=n.useState(!0);if(!l&&!d&&(!m||b))return null;let y;if(r)y=r;else if(i){const e=Fm(i);y=e&&void 0!==e.nodeType?(0,nu.Z)(e).body:(0,nu.Z)(null).body}const w=d||!l||m&&!b?void 0:"none",S=m?{in:d,onEnter:()=>{C(!1)},onExited:()=>{C(!0)}}:void 0;return(0,Nt.jsx)(su,{disablePortal:a,container:y,children:(0,Nt.jsx)(Wm,Js({anchorEl:i,direction:s,disablePortal:a,modifiers:c,ref:t,open:m?!b:d,placement:u,popperOptions:h,popperRef:g,slotProps:f,slots:v},_,{style:Js({position:"fixed",top:0,left:0,display:w},p),TransitionProps:S,children:o}))})})),zm=Vm,Hm=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],jm=(0,xt.ZP)(zm,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Um=n.forwardRef((function(e,t){var n;const i=(0,rn.Z)(),o=(0,St.Z)({props:e,name:"MuiPopper"}),{anchorEl:r,component:s,components:a,componentsProps:l,container:c,disablePortal:d,keepMounted:u,modifiers:h,open:g,placement:p,popperOptions:m,popperRef:f,transition:v,slots:_,slotProps:b}=o,C=(0,vt.Z)(o,Hm),y=null!=(n=null==_?void 0:_.root)?n:null==a?void 0:a.Root,w=(0,_t.Z)({anchorEl:r,container:c,disablePortal:d,keepMounted:u,modifiers:h,open:g,placement:p,popperOptions:m,popperRef:f,transition:v},C);return(0,Nt.jsx)(jm,(0,_t.Z)({as:s,direction:null==i?void 0:i.direction,slots:{root:y},slotProps:null!=b?b:l},w,{ref:t}))}));var $m=s(13212);function Km(e){return(0,kt.Z)("MuiTooltip",e)}const Gm=(0,Lt.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Zm=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],Qm=(0,xt.ZP)(Um,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>(0,_t.Z)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Gm.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Gm.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Gm.arrow}`]:(0,_t.Z)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Gm.arrow}`]:(0,_t.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),Ym=(0,xt.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,Ut.Z)(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>(0,_t.Z)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,Ro.Fq)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(16/14,Math.round(114285.71428571428)/1e5+"em"),fontWeight:e.typography.fontWeightRegular},{[`.${Gm.popper}[data-popper-placement*="left"] &`]:(0,_t.Z)({transformOrigin:"right center"},t.isRtl?(0,_t.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,_t.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Gm.popper}[data-popper-placement*="right"] &`]:(0,_t.Z)({transformOrigin:"left center"},t.isRtl?(0,_t.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,_t.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Gm.popper}[data-popper-placement*="top"] &`]:(0,_t.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Gm.popper}[data-popper-placement*="bottom"] &`]:(0,_t.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})}))),Xm=(0,xt.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,Ro.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Jm=!1,ef=null,tf={x:0,y:0};function nf(e,t){return n=>{t&&t(n),e(n)}}const of=n.forwardRef((function(e,t){var i,o,r,s,a,l,c,d,u,h,g,p,m,f,v,_,b,C,y;const w=(0,St.Z)({props:e,name:"MuiTooltip"}),{arrow:S=!1,children:x,components:L={},componentsProps:k={},describeChild:E=!1,disableFocusListener:N=!1,disableHoverListener:D=!1,disableInteractive:I=!1,disableTouchListener:R=!1,enterDelay:T=100,enterNextDelay:O=0,enterTouchDelay:q=700,followCursor:A=!1,id:M,leaveDelay:P=0,leaveTouchDelay:F=1500,onClose:B,onOpen:W,open:V,placement:z="bottom",PopperComponent:H,PopperProps:j={},slotProps:U={},slots:$={},title:K,TransitionComponent:G=tu,TransitionProps:Z}=w,Q=(0,vt.Z)(w,Zm),Y=Yt(),X="rtl"===Y.direction,[J,ee]=n.useState(),[te,ne]=n.useState(null),ie=n.useRef(!1),oe=I||A,re=n.useRef(),se=n.useRef(),ae=n.useRef(),le=n.useRef(),[ce,de]=(0,Mh.Z)({controlled:V,default:!1,name:"Tooltip",state:"open"});let ue=ce;const he=(0,$m.Z)(M),ge=n.useRef(),pe=n.useCallback((()=>{void 0!==ge.current&&(document.body.style.WebkitUserSelect=ge.current,ge.current=void 0),clearTimeout(le.current)}),[]);n.useEffect((()=>()=>{clearTimeout(re.current),clearTimeout(se.current),clearTimeout(ae.current),pe()}),[pe]);const me=e=>{clearTimeout(ef),Jm=!0,de(!0),W&&!ue&&W(e)},fe=(0,Oo.Z)((e=>{clearTimeout(ef),ef=setTimeout((()=>{Jm=!1}),800+P),de(!1),B&&ue&&B(e),clearTimeout(re.current),re.current=setTimeout((()=>{ie.current=!1}),Y.transitions.duration.shortest)})),ve=e=>{ie.current&&"touchstart"!==e.type||(J&&J.removeAttribute("title"),clearTimeout(se.current),clearTimeout(ae.current),T||Jm&&O?se.current=setTimeout((()=>{me(e)}),Jm?O:T):me(e))},_e=e=>{clearTimeout(se.current),clearTimeout(ae.current),ae.current=setTimeout((()=>{fe(e)}),P)},{isFocusVisibleRef:be,onBlur:Ce,onFocus:ye,ref:we}=(0,qo.Z)(),[,Se]=n.useState(!1),xe=e=>{Ce(e),!1===be.current&&(Se(!1),_e(e))},Le=e=>{J||ee(e.currentTarget),ye(e),!0===be.current&&(Se(!0),ve(e))},ke=e=>{ie.current=!0;const t=x.props;t.onTouchStart&&t.onTouchStart(e)},Ee=ve,Ne=_e;n.useEffect((()=>{if(ue)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||fe(e)}}),[fe,ue]);const De=(0,To.Z)(x.ref,we,ee,t);K||0===K||(ue=!1);const Ie=n.useRef(),Re={},Te="string"==typeof K;E?(Re.title=ue||!Te||D?null:K,Re["aria-describedby"]=ue?he:null):(Re["aria-label"]=Te?K:null,Re["aria-labelledby"]=ue&&!Te?he:null);const Oe=(0,_t.Z)({},Re,Q,x.props,{className:(0,bt.Z)(Q.className,x.props.className),onTouchStart:ke,ref:De},A?{onMouseMove:e=>{const t=x.props;t.onMouseMove&&t.onMouseMove(e),tf={x:e.clientX,y:e.clientY},Ie.current&&Ie.current.update()}}:{}),qe={};R||(Oe.onTouchStart=e=>{ke(e),clearTimeout(ae.current),clearTimeout(re.current),pe(),ge.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",le.current=setTimeout((()=>{document.body.style.WebkitUserSelect=ge.current,ve(e)}),q)},Oe.onTouchEnd=e=>{x.props.onTouchEnd&&x.props.onTouchEnd(e),pe(),clearTimeout(ae.current),ae.current=setTimeout((()=>{fe(e)}),F)}),D||(Oe.onMouseOver=nf(Ee,Oe.onMouseOver),Oe.onMouseLeave=nf(Ne,Oe.onMouseLeave),oe||(qe.onMouseOver=Ee,qe.onMouseLeave=Ne)),N||(Oe.onFocus=nf(Le,Oe.onFocus),Oe.onBlur=nf(xe,Oe.onBlur),oe||(qe.onFocus=Le,qe.onBlur=xe));const Ae=n.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(te),options:{element:te,padding:4}}];return null!=(e=j.popperOptions)&&e.modifiers&&(t=t.concat(j.popperOptions.modifiers)),(0,_t.Z)({},j.popperOptions,{modifiers:t})}),[te,j]),Me=(0,_t.Z)({},w,{isRtl:X,arrow:S,disableInteractive:oe,placement:z,PopperComponentProp:H,touch:ie.current}),Pe=(e=>{const{classes:t,disableInteractive:n,arrow:i,touch:o,placement:r}=e,s={popper:["popper",!n&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",o&&"touch",`tooltipPlacement${(0,Ut.Z)(r.split("-")[0])}`],arrow:["arrow"]};return(0,Ct.Z)(s,Km,t)})(Me),Fe=null!=(i=null!=(o=$.popper)?o:L.Popper)?i:Qm,Be=null!=(r=null!=(s=null!=(a=$.transition)?a:L.Transition)?s:G)?r:tu,We=null!=(l=null!=(c=$.tooltip)?c:L.Tooltip)?l:Ym,Ve=null!=(d=null!=(u=$.arrow)?u:L.Arrow)?d:Xm,ze=na(Fe,(0,_t.Z)({},j,null!=(h=U.popper)?h:k.popper,{className:(0,bt.Z)(Pe.popper,null==j?void 0:j.className,null==(g=null!=(p=U.popper)?p:k.popper)?void 0:g.className)}),Me),He=na(Be,(0,_t.Z)({},Z,null!=(m=U.transition)?m:k.transition),Me),je=na(We,(0,_t.Z)({},null!=(f=U.tooltip)?f:k.tooltip,{className:(0,bt.Z)(Pe.tooltip,null==(v=null!=(_=U.tooltip)?_:k.tooltip)?void 0:v.className)}),Me),Ue=na(Ve,(0,_t.Z)({},null!=(b=U.arrow)?b:k.arrow,{className:(0,bt.Z)(Pe.arrow,null==(C=null!=(y=U.arrow)?y:k.arrow)?void 0:C.className)}),Me);return(0,Nt.jsxs)(n.Fragment,{children:[n.cloneElement(x,Oe),(0,Nt.jsx)(Fe,(0,_t.Z)({as:null!=H?H:Um,placement:z,anchorEl:A?{getBoundingClientRect:()=>({top:tf.y,left:tf.x,right:tf.x,bottom:tf.y,width:0,height:0})}:J,popperRef:Ie,open:!!J&&ue,id:he,transition:!0},qe,ze,{popperOptions:Ae,children:({TransitionProps:e})=>(0,Nt.jsx)(Be,(0,_t.Z)({timeout:Y.transitions.duration.shorter},e,He,{children:(0,Nt.jsxs)(We,(0,_t.Z)({},je,{children:[K,S?(0,Nt.jsx)(Ve,(0,_t.Z)({},Ue,{ref:ne})):null]}))}))}))]})})),rf=of,sf=(0,xt.ZP)(zr,{shouldForwardProp:e=>!["width","dense"].includes(e)})((({width:e,dense:t})=>({minWidth:`${e}px`,textAlign:"center",fontSize:t?"12px":"14px",...t&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:e}})));function af({width:e,text:t,dense:i,tooltip:o}){const{translator:r}=(0,n.useContext)(hd);return n.createElement(rf,{title:o?r.get(t):""},n.createElement(sf,{width:e,dense:i,component:"div",variant:"body1",py:"12px"},r.get(t)))}var lf=s(79246);const cf=(0,xt.ZP)(Hu)((({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t}))),df=(0,xt.ZP)("div")((()=>({paddingLeft:"6px",flexGrow:1}))),uf=(0,xt.ZP)("div")((({dense:e})=>({display:"flex",alignItems:e?"center":"flex-start"}))),hf=(0,xt.ZP)(lf.Z)((()=>({fontSize:"14px"})));function gf({text:e,dismiss:t,dense:i,parentWidth:o=0}){const r="function"==typeof t,s=i?370:282,a=Math.max(o/2-s/2,0),l=Math.min(s,o)-42,c=i&&o<s;return n.createElement(cf,{left:a,style:{maxWidth:s}},n.createElement(df,null,n.createElement(af,{text:e,dense:i,width:l,tooltip:c})),n.createElement(uf,{dense:i},r&&n.createElement(Sr,{"aria-label":"close",onClick:()=>t()},n.createElement(hf,null))))}const pf=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t,mf=80;function ff({itemWidth:e,layout:t,frequencyMode:n}){const i=e>mf,{frequencyEnabled:o=!1}=t?.qListObject||{},r=!["none",void 0].includes(n);return!(!i||!r&&!o)}const vf=e=>{const t=(e=>e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:`[${e.replace(/\]/g,"]]")}]`:e)(e);return`Max(AGGR(Count(${t}), ${t}))`},_f=(e,t)=>{const i=(e=>"fetch"===e?.frequencyMax)(t),[o,r]=(0,n.useState)(),[s,a]=(0,n.useState)(i);return(0,n.useEffect)((()=>{i&&(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,i=n.qGroupFieldDefs[n.qGroupPos],o=vf(i);return(await t.evaluateEx(o)).qNumber})(t,e);r(n),a(!1)})()}),[i&&t]),{frequencyMax:i?o:t?.frequencyMax,awaitingFrequencyMax:s}},bf=100,Cf=(0,xt.ZP)("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function yf({model:e,app:t,constraints:i,layout:o,selections:r,selectionState:s,direction:a,checkboxes:l,height:c,width:d,frequencyMode:u,update:h,fetchStart:g,postProcessPages:p,calculatePagesHeight:m=!1,keyboard:f={},showGray:v=!0,scrollState:_,selectDisabled:b=(()=>!1),keyScroll:C={state:{},reset:()=>{}},currentScrollIndex:y={set:()=>{}},renderedCallback:w,onCtrlF:S,showSearch:x,isModal:L}){const{translator:k}=(0,n.useContext)(hd),[E,N]=(0,n.useState)(!1),D=!(!o||!o.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:I=l,histogram:R}=o??{},T=(0,n.useRef)(null),O=(0,n.useRef)({queue:[],validPages:!1,dataOffset:0}),q=(0,n.useRef)({pages:[]}),{frequencyMax:A,awaitingFrequencyMax:M}=_f(t,o),{isLoadingData:P,...F}=function({local:e,loaderRef:t,model:i,fetchStart:o,scrollTimeout:r,postProcessPages:s,listData:a}){const[l,c]=(0,n.useState)(!1),[d,u]=(0,n.useState)([]);let[h]=(0,n.useState)(0);const g=(n,l)=>{const d=e.current.dataOffset;e.current.queue.push({start:n+d,stop:l+d});const g=!!t.current&&t.current._listRef&&t.current._listRef.state.isScrolling;return e.current.queue.length>10&&e.current.queue.shift(),clearTimeout(e.current.timeout),c(!0),new Promise((t=>{e.current.timeout=setTimeout((()=>{const n=e.current.queue.slice(-1)[0],r=i.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 i=s?s(n):n;e.current.validPages=!0,a.current.pages=i,u(i),c(!1),t()}));o&&o(r)}),g?r:0)}))};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(h=e),g)},pages:d,isLoading:l}}({local:O,loaderRef:T,model:e,fetchStart:g,scrollTimeout:0,postProcessPages:p,listData:q}),{setStoreValue:B}=Lp(e),W=(0,n.useCallback)(F.loadMoreItems,[o]),[V,z]=(0,n.useState)({show:!1,dismissed:!1}),[H,j]=(0,n.useState)([]);F?.pages&&s.update({setPages:j,pages:F.pages,isSingleSelect:D,selectDisabled:b,layout:o});const U=o?.qListObject.qDimensionInfo.qCardinal;(F?.pages.length&&!M||0===U)&&w?.();const $=(0,n.useCallback)((e=>{if(!H?.length||!O.current.validPages)return!1;O.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=H.filter((e=>t(e)))[0];return n&&t(n)}),[o,H]),{interactionEvents:K,select:G}=function({selectionState:e,selections:t,checkboxes:i=!1,doc:o=document,loaderRef:r}){const s=(0,n.useRef)({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});(0,n.useEffect)((()=>{if(!r.current?._listRef?._outerRef)return;const e=e=>e.preventDefault(),t=e=>e.preventDefault(),n=e=>e.preventDefault(),i=r.current._listRef._outerRef;return i.addEventListener("gesturestart",e),i.addEventListener("gesturechange",t),i.addEventListener("gestureend",n),()=>{i.removeEventListener("gesturestart",e),i.removeEventListener("gesturechange",t),i.removeEventListener("gestureend",n)}}),[r.current?._listRef?._outerRef]);const a=()=>(e.setSelectableValuesUpdating(),sh({selections:t,elemNumbers:s.current.elemNumbers,isSingleSelect:e.isSingleSelect,toggle:s.current.toggle})),l=(t,n)=>function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:i}=function(e,t){let n=1/0,i=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,i=o>i?o:i})),{min:n,max:i}}(e,t);return t.slice(n,i+1)}([t,n],function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}))));return rh(t)}(e.enginePages)),c=t=>{const{startElemNumber:n}=s.current;if(n===t)return;const i=l(s.current.startElemNumber,t);e.updateItems(i,!0,s.current.elemNumbers)},d=(0,n.useCallback)((t=>{if(e.selectDisabled())return;const n=+t.target.getAttribute("data-n"),i=!e.isSingleSelect&&dh(t.nativeEvent);s.current.elemNumbers=[n],s.current.toggle=i,i||e.clearItemStates(!0),e.updateItem(n),s.current.active=!1,a()}),[]),u=(0,n.useCallback)((t=>{if(0!==t.button||e.selectDisabled())return;const n=+t.currentTarget.getAttribute("data-n"),i=!e.isSingleSelect&&dh(t);s.current.isRange=!1,s.current.startElemNumber=n,s.current.elemNumbers=[n],s.current.toggle=i,s.current.active=!0,i||e.clearItemStates(!0),e.updateItem(n),e.isSingleSelect&&(s.current.active=!1,a()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(t,t.currentTarget)}),[]),h=(0,n.useCallback)((e=>{if(0===e.button&&s.current.active){if(s.current.active=!1,s.current.isRange){const t=+e.currentTarget.getAttribute("data-n");c(t)}a()}}),[]),g=(0,n.useCallback)((e=>{0===e.button&&s.current.active&&(s.current.active=!1,a())}),[]),p=(0,n.useCallback)((t=>{if(!s.current.active)return;s.current.isRange||(s.current.isRange=!0,e.isSelected(s.current.startElemNumber)||(e.updateItem(s.current.startElemNumber,!0),s.current.elemNumbers=[]));const n=+t.currentTarget.getAttribute("data-n");c(n)}),[]),m=(0,n.useCallback)((t=>{if(s.current.active||s.current.isRange||e.isSingleSelect||t.touches.length<=1)return;if(t.touches.length>2)return void a();const n=Number(t.touches[0].target?.closest(ch)?.getAttribute("data-n")),i=Number(t.touches[1].target?.closest(ch)?.getAttribute("data-n"));Number.isNaN(n)||Number.isNaN(n)?a():(s.current.active=!0,l(n,i).length<7&&(s.current.touchRangeSmall=!0),s.current.elemNumbers=[],s.current.touchElemNumbers=[n,i])}),[]),f=(0,n.useCallback)((()=>{if(2!==s.current.touchElemNumbers.length)return;if(s.current.touchRangeSmall)return s.current.touchRangeSmall=!1,s.current.touchElemNumbers=[],void(s.current.active=!1);const[e,t]=s.current.touchElemNumbers;s.current.startElemNumber=e,c(t),s.current.touchElemNumbers=[],s.current.active=!1,s.current.toggle=!0,a()}),[]);(0,n.useEffect)((()=>(o.addEventListener("mouseup",g),()=>{o.removeEventListener("mouseup",g)})),[g]),(0,n.useEffect)((()=>{const n=()=>{e.clearItemStates(!1)},i=()=>{e.clearItemStates(!0),e.triggerStateChanged()};return t.on("clearItemStates",n),t.on("deactivated",n),t.on("cleared",i),()=>{t.removeListener("clearItemStates",n),t.removeListener("deactivated",n),t.removeListener("cleared",i)}}),[t]);const v={};return i?Object.assign(v,{onChange:d}):Object.assign(v,{onMouseUp:h,onMouseDown:u,onMouseEnter:p,onTouchStart:m,onTouchEnd:f}),{interactionEvents:v,select:(n=[],i=!1,o=void 0)=>{const r=!e.isSingleSelect&&dh(o?.nativeEvent);r||e.clearItemStates(!0);const s=[];return e.updateItems(n,i,s),e.setSelectableValuesUpdating(),sh({selections:t,elemNumbers:i?s:n,isSingleSelect:e.isSingleSelect,toggle:r})}}}({selectionState:s,selections:r,checkboxes:I,doc:document,loaderRef:T}),{layoutOptions:Z={}}=o||{};let Q=!0;Z.dataLayout&&(Q="singleColumn"===Z.dataLayout||"row"===Z?.layoutOrder);const Y="grid"===Z?.dataLayout,X=e=>{const t={...Q?{rowIndex:e}:{columnIndex:e}},n=Y?t:e;T.current._listRef.scrollToItem(n)},J=()=>{if(O.current.queue=[],O.current.validPages=!1,T.current){T.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===C.state.scrollPosition;if(o&&o.qSelectionInfo.qInSelections||e)return void(e&&C.reset());O.current.dataOffset=0,X(0)}};h&&h.call(null,J),(0,n.useEffect)((()=>{_&&!E&&T.current&&(T.current._listRef.scrollToItem(_.initScrollPos),N(!0))}),[T.current]),(0,n.useEffect)((()=>{J()}),[o,O.current.dataOffset]);const ee=Cp({text:yp(o),font:"14px Source sans pro"});let te=bf;const ne="grid"!==Z.dataLayout,ie=o?.qListObject.qSize?.qcy,oe=function({pages:e,minimumBatchSize:t,count:n,calculatePagesHeight:i=!1}){return(e?.length&&i?wp({pages:e,minimumBatchSize:t,count:n}):n)||0}({pages:H,minimumBatchSize:te,count:ie,calculatePagesHeight:m,layoutOptions:Z,model:e});let re=ff({itemWidth:d,layout:o,frequencyMode:u});const se=function({layout:e,width:t,height:n,listCount:i,count:o,textWidth:r,freqIsAllowed:s,checkboxes:a}){const{layoutOptions:l={}}=e||{},{layoutOrder:c,maxVisibleRows:d={},maxVisibleColumns:u,dense:h,dataLayout:g}=l,p=s?Ch:0,m=a?wh:0;let f=yh+p+m;!a&&f>=vh&&(f+=wh);let v,_,b,C,y=r+18+p+m;!a&&y>=vh&&(y+=wh),y=Math.min(bh,Math.max(y,f));const w="grid"===g;let S=h?20:w?32:29;w&&(S+=4);const x=n??8*S;if(c){let e=t;"row"===c?(v={overflowX:"hidden"},e+=8,({rowCount:C,columnWidth:b,columnCount:_}=function({maxVisibleColumns:e,listCount:t,containerWidth:n,columnAutoWidth:i,itemMinWidth:o}){const r=e?.maxColumns||3,s=n-_h;let a;const l=Math.min(t,Math.max(1,Math.round(s/Math.max(o,i))));a=!1!==e?.auto?l:Math.min(t,r,l);const c=s/a;return{rowCount:Math.ceil(t/a),columnWidth:c,columnCount:a}}({maxVisibleColumns:u,listCount:i,containerWidth:e,columnAutoWidth:y,itemMinWidth:f}))):(v={overflowY:"hidden"},({rowCount:C,columnWidth:b,columnCount:_}=function({maxVisibleRows:e,itemHeight:t,listCount:n,listHeight:i,columnAutoWidth:o,containerWidth:r,itemMinWidth:s}){let a;const l=e?.maxRows||3,c=Math.floor(i/t);a=!1!==e.auto?c:Math.min(n,l,c);const d=Math.ceil(n/a);return{columnWidth:Math.max(o,r/d,s),columnCount:d,rowCount:a}}({maxVisibleRows:d,itemHeight:S,listCount:i,listHeight:x,columnAutoWidth:y,containerWidth:e,itemMinWidth:f})))}_=("singleColumn"===g?1:_)||1,C=("singleColumn"===g?o:C)||i;const L=l.dense?838e3:577e3;C=Math.min(C,L);const k=Math.floor(3355e4/b);_=Math.min(_,k)||1;const E=C*_,N=Math.min(i,E);return{columnCount:_,columnWidth:b,rowCount:C,overflowStyling:v,itemHeight:S,listHeight:x,scrollBarWidth:_h,count:o,listCount:N,maxCount:{row:L,column:k},itemPadding:4,frequencyWidth:Ch}}({layout:o,width:d,height:c,listCount:oe,count:ie,textWidth:ee,freqIsAllowed:re,checkboxes:I});se.columnWidth&&(re=ff({itemWidth:se.columnWidth,layout:o,frequencyMode:u}));const{listCount:ae}=se;B("listCount",ae);const le=e=>{const{scrollIndex:t,offset:n,triggerRerender:i}=function({position:e,isRow:t,sizes:n,layout:i,offset:o}){let r,s=!1,a=o??0;switch(e){case"start":r=0;break;case"end":r=t?n.rowCount:n.columnCount;break;case"overflowStart":a=0,r=0,s=!0;break;case"overflowEnd":a=pf(i,n.listCount),r=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:r,offset:a,triggerRerender:s}}({position:e,isRow:Q,sizes:se,layout:o,offset:O.current.dataOffset});O.current.dataOffset=n,i&&s.triggerStateChanged(),X(t)};(0,n.useEffect)((()=>{const e=C.state;e.up?X(y.state.start-e.up):e.down?X(y.state.stop+e.down):e.scrollPosition&&le(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&C.reset()}),[C.state.up,C.state.down,C.state.scrollPosition]);const{textAlign:ce}=o?.qListObject.qDimensionInfo||{},[de,ue]=(0,n.useState)({first:!1,last:!1}),{List:he,Grid:ge}=function({layout:e,width:t,checkboxes:i,local:o,isVertical:r,pages:s,selectDisabled:a,interactionEvents:l,frequencyMode:c,histogram:d,isSingleSelect:u,select:h,selectAll:g,onCtrlF:p,textAlign:m,selections:f,keyboard:v,showGray:_,scrollState:b,direction:C,sizes:y,listCount:w,overflowDisclaimer:S,setScrollPosition:x,focusListItems:L,setCurrentScrollIndex:k,constraints:E,frequencyMax:N,freqIsAllowed:D,translator:I,showSearch:R,isModal:T}){const{layoutOptions:O={}}=e||{},{columnWidth:q,itemPadding:A,listHeight:M,itemHeight:P,rowCount:F,columnCount:B,frequencyWidth:W}=y||{},V=("grid"===O.dataLayout?q:t)>vh,z={direction:"rtl"===C?"rtl":"ltr",useIsScrolling:!0,className:hp.styledScrollbars},H=e?.qListObject.qDimensionInfo.qLocked,j={isLocked:H,column:!r,pages:s,...H||a()?{}:l,checkboxes:i,layoutOptions:O,frequencyMode:c,freqIsAllowed:D,isSingleSelect:u,textAlign:m,itemPadding:A,frequencyWidth:W,actions:{select:h,confirm:()=>f?.confirm.call(f),cancel:()=>f?.cancel.call(f),setScrollPosition:x,selectAll:g,onCtrlF:p},frequencyMax:N,histogram:d,keyboard:v,showGray:_,showTick:V,dataOffset:o.current.dataOffset,focusListItems:L,direction:C,translator:I,showSearch:R,isModal:T};return{List:({onItemsRendered:i,ref:r})=>(o.current.listRef=r,n.createElement(_p,vp({},z,{dataTestid:"fixed-size-list",scrollDisabled:E?.active,height:M,width:t,itemCount:w,itemData:{...j,listCount:w},itemSize:P,onItemsRendered:t=>{k({start:t.visibleStartIndex,stop:t.visibleStopIndex}),b&&b.setScrollPos(t.visibleStopIndex),fp({renderProps:t,layoutOptions:O,maxCount:y.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:S,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),i({...t})},ref:r}),jg)),Grid:({onItemsRendered:i,ref:r})=>{const{overflowStyling:s,scrollBarWidth:a}=y,{layoutOrder:l}=O||{},c=Math.min(M,F*P+a);return o.current.listRef=r,n.createElement(bp,vp({},z,{dataTestid:"fixed-size-grid",scrollDisabled:E?.active,height:c,width:t,columnCount:B,columnWidth:q,rowCount:F,rowHeight:P,style:{...s},itemData:{...j,column:void 0,columnCount:B,rowCount:F},onItemsRendered:t=>{const n="row"===l;k({start:n?t.visibleRowStartIndex:t.visibleColumnStartIndex,stop:n?t.visibleRowStopIndex:t.visibleColumnStopIndex});const r=function(e){const{renderProps:t,scrollState:n,layoutOrder:i,rowCount:o,columnCount:r}=e,{overscanRowStartIndex:s,overscanRowStopIndex:a,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:d}=t;let u,h,g,p;return n&&n.setScrollPos(d),"column"===i?(u=l*o,h=s,g=c*o,p=a):(u=l,h=s*r,g=c,p=a*r),{visibleStartIndex:u+h,visibleStopIndex:g+p}}({renderProps:t,scrollState:b,layoutOrder:l,rowCount:F,columnCount:B});fp({renderProps:t,layoutOptions:O,maxCount:y.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:S,qCardinal:e?.qListObject?.qDimensionInfo?.qCardinal,dataOffset:o.current.dataOffset}),i(r)},ref:r}),jg)}}}({direction:a,layout:o,height:c,width:d,checkboxes:I,frequencyMode:u,histogram:R,keyboard:f,showGray:v,interactionEvents:K,select:G,selectAll:()=>{s.clearItemStates(!1),e.selectListObjectAll("/qListObjectDef")},onCtrlF:S,textAlign:ce,isVertical:ne,pages:H,selectDisabled:b,isSingleSelect:D,selections:r,scrollState:_,local:O,sizes:se,listCount:ae,overflowDisclaimer:{state:V,set:e=>z((t=>({...t,show:e})))},setScrollPosition:le,focusListItems:{first:de.first,setFirst:e=>ue((t=>({...t,first:e}))),last:de.last,setLast:e=>ue((t=>({...t,last:e})))},setCurrentScrollIndex:y.set,constraints:i,frequencyMax:A,freqIsAllowed:re,translator:k,showSearch:x,isModal:L}),{columnWidth:pe,listHeight:me,itemHeight:fe}=se||{};return ne||(te=function({width:e,columnWidth:t,listHeight:n,itemHeight:i}){return Math.ceil(e/t)*Math.ceil(n/i)*2}({width:d,columnWidth:pe,listHeight:me,itemHeight:fe})),n.createElement(Cf,null,n.createElement(Fg,{className:"screenReaderOnly",layout:o}),!ae&&U>0&&n.createElement(af,{width:d,text:"Listbox.NoMatchesForYourTerms"}),n.createElement(ih,{isItemLoaded:$,itemCount:ae||1,loadMoreItems:W.with({minimumBatchSize:te}),threshold:0,minimumBatchSize:te,ref:T,role:"grid"},ne?he:ge),V.show&&!V.dismissed&&n.createElement(gf,{text:"Listbox.ItemsOverflow",dismiss:()=>z((e=>({...e,dismissed:!0}))),parentWidth:T?.current?._listRef?.props?.width,dense:Z?.dense}))}const wf=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"}}]}),Sf=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"}}]}),xf=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"}}]}),Lf=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"}}]}),kf=({layout:e,model:t,translator:n,selectionState:i,isDirectQuery:o=!1})=>e.qListObject.qDimensionInfo.qIsOneAndOnlyOne?[]:[{key:"selectAll",type:"menu-icon-button",label:n.get("Selection.SelectAll"),getSvgIconShape:wf,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{i.clearItemStates(!1),t.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:n.get("Selection.SelectPossible"),getSvgIconShape:xf,enabled:()=>["qOption"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{i.clearItemStates(!1),t.selectListObjectPossible("/qListObjectDef")}},!o&&{key:"selectAlternative",type:"menu-icon-button",label:n.get("Selection.SelectAlternative"),getSvgIconShape:Sf,enabled:()=>["qAlternative"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{i.clearItemStates(!1),t.selectListObjectAlternative("/qListObjectDef")}},!o&&{key:"selectExcluded",type:"menu-icon-button",label:n.get("Selection.SelectExcluded"),getSvgIconShape:Lf,enabled:()=>["qAlternative","qExcluded"].some((t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0)),action:()=>{i.clearItemStates(!1),t.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean);function Ef(e){return(0,kt.Z)("MuiDivider",e)}const Nf=(0,Lt.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Df=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],If=(0,xt.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,_t.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,Ro.Fq)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>(0,_t.Z)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>(0,_t.Z)({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>(0,_t.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>(0,_t.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Rf=(0,xt.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,_t.Z)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Tf=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiDivider"}),{absolute:i=!1,children:o,className:r,component:s=(o?"div":"hr"),flexItem:a=!1,light:l=!1,orientation:c="horizontal",role:d=("hr"!==s?"separator":void 0),textAlign:u="center",variant:h="fullWidth"}=n,g=(0,vt.Z)(n,Df),p=(0,_t.Z)({},n,{absolute:i,component:s,flexItem:a,light:l,orientation:c,role:d,textAlign:u,variant:h}),m=(e=>{const{absolute:t,children:n,classes:i,flexItem:o,light:r,orientation:s,textAlign:a,variant:l}=e,c={root:["root",t&&"absolute",l,r&&"light","vertical"===s&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===s&&"withChildrenVertical","right"===a&&"vertical"!==s&&"textAlignRight","left"===a&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]};return(0,Ct.Z)(c,Ef,i)})(p);return(0,Nt.jsx)(If,(0,_t.Z)({as:s,className:(0,bt.Z)(m.root,r),role:d,ref:t,ownerState:p},g,{children:o?(0,Nt.jsx)(Rf,{className:m.wrapper,ownerState:p,children:o}):null}))})),Of=Tf,qf=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 Af(e){const t=Yt(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,i="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:i}}const Mf={className:"njs-cell-action"},Pf=n.forwardRef((({ariaExpanded:e=!1,item:t,addAnchor:i=!1},o)=>{const r=Yt(),{hidden:s,disabled:a,style:l,hasSvgIconShape:c}=Af(t);if(s)return null;const d=Number.parseInt(r.spacing(.5),10),u=t.keyboardAction||t.action,h=u?e=>["Enter"].includes(e.key)&&u():null,g=u?e=>[" ","Spacebar"].includes(e.key)&&u():null,p=`actions-toolbar-${t.key}`;return n.createElement(Sr,{ref:i?null:o,title:t.label,onClick:t.action,onKeyDown:h,onKeyUp:g,disabled:a,style:l,className:[Mf.className,p].join(" "),size:"large",disableRipple:!0,"aria-expanded":e,"aria-controls":"moreMenuList","data-testid":p},c&&Cs(t.getSvgIconShape()),i&&n.createElement("div",{ref:o,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),Ff=Pf,Bf=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"}}]}),Wf=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"}}]}),Vf=e=>Cs(Wf(e));function zf(e){return(0,kt.Z)("MuiListItemIcon",e)}const Hf=(0,Lt.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);function jf(e){return(0,kt.Z)("MuiMenuItem",e)}const Uf=(0,Lt.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),$f=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Kf=(0,xt.ZP)(vr,{shouldForwardProp:e=>(0,xt.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,_t.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Uf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Ro.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Uf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,Ro.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Uf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Ro.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,Ro.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Uf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Uf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Nf.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Nf.inset}`]:{marginLeft:52},[`& .${$s.root}`]:{marginTop:0,marginBottom:0},[`& .${$s.inset}`]:{paddingLeft:36},[`& .${Hf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,_t.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Hf.root} svg`]:{fontSize:"1.25rem"}})))),Gf=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:r="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:u,className:h}=i,g=(0,vt.Z)(i,$f),p=n.useContext(ws),m=n.useMemo((()=>({dense:s||p.dense||!1,disableGutters:l})),[p.dense,s,l]),f=n.useRef(null);(0,Is.Z)((()=>{o&&f.current&&f.current.focus()}),[o]);const v=(0,_t.Z)({},i,{dense:m.dense,divider:a,disableGutters:l}),_=(e=>{const{disabled:t,dense:n,divider:i,disableGutters:o,selected:r,classes:s}=e,a={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",i&&"divider",r&&"selected"]},l=(0,Ct.Z)(a,jf,s);return(0,_t.Z)({},s,l)})(i),b=(0,To.Z)(f,t);let C;return i.disabled||(C=void 0!==u?u:-1),(0,Nt.jsx)(ws.Provider,{value:m,children:(0,Nt.jsx)(Kf,(0,_t.Z)({ref:b,role:d,tabIndex:C,component:r,focusVisibleClassName:(0,bt.Z)(_.focusVisible,c),className:(0,bt.Z)(_.root,h)},g,{ownerState:v,classes:_}))})})),Zf=Gf,Qf=["className"],Yf=(0,xt.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>(0,_t.Z)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Xf=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiListItemIcon"}),{className:o}=i,r=(0,vt.Z)(i,Qf),s=n.useContext(ws),a=(0,_t.Z)({},i,{alignItems:s.alignItems}),l=(e=>{const{alignItems:t,classes:n}=e,i={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,Ct.Z)(i,zf,n)})(a);return(0,Nt.jsx)(Yf,(0,_t.Z)({className:(0,bt.Z)(l.root,o),ownerState:a,ref:t},r))})),Jf=Xf,ev=au,tv=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function nv(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function iv(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ov(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function rv(e,t,n,i,o,r){let s=!1,a=o(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const t=!i&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&ov(a,r)&&!t)return a.focus(),!0;a=o(e,a,n)}return!1}const sv=n.forwardRef((function(e,t){const{actions:i,autoFocus:o=!1,autoFocusItem:r=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:u="selectedMenu"}=e,h=(0,vt.Z)(e,tv),g=n.useRef(null),p=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,Is.Z)((()=>{o&&g.current.focus()}),[o]),n.useImperativeHandle(i,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!g.current.style.width;if(e.clientHeight<g.current.clientHeight&&n){const n=`${ev((0,Ea.Z)(e))}px`;g.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,g.current.style.width=`calc(100% + ${n})`}return g.current}})),[]);const m=(0,To.Z)(g,t);let f=-1;n.Children.forEach(s,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===f)&&(f=t),f===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(f+=1,f>=s.length&&(f=-1)))}));const v=n.Children.map(s,((e,t)=>{if(t===f){const t={};return r&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),n.cloneElement(e,t)}return e}));return(0,Nt.jsx)(Es,(0,_t.Z)({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=g.current,n=e.key,i=(0,Ea.Z)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),rv(t,i,c,l,nv);else if("ArrowUp"===n)e.preventDefault(),rv(t,i,c,l,iv);else if("Home"===n)e.preventDefault(),rv(t,null,c,l,nv);else if("End"===n)e.preventDefault(),rv(t,null,c,l,iv);else if(1===n.length){const o=p.current,r=n.toLowerCase(),s=performance.now();o.keys.length>0&&(s-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&r!==o.keys[0]&&(o.repeating=!1)),o.lastTime=s,o.keys.push(r);const a=i&&!o.repeating&&ov(i,o);o.previousKeyMatched&&(a||rv(t,i,!1,l,nv,o))?e.preventDefault():o.previousKeyMatched=!1}d&&d(e)},tabIndex:o?0:-1},h,{children:v}))})),av=sv;function lv(){return lv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},lv.apply(this,arguments)}const cv="More-icon",dv=(0,xt.ZP)(eh)((({theme:e})=>({pointerEvents:"none",[`& .${cv}`]:{color:e.palette.text.primary}})));function uv({item:e,autoFocus:t,onActionClick:i=(()=>{})}){const{hidden:o,disabled:r,hasSvgIconShape:s}=Af(e);return o?null:n.createElement(Zf,{autoFocus:t,title:e.label,onClick:()=>{e.action(),i()},disabled:r,tabindex:"0"},s&&n.createElement(Jf,{className:cv},Cs(e.getSvgIconShape())),n.createElement(zr,{noWrap:!0},e.label))}const hv=n.forwardRef((({actions:e=[],show:t=!0,alignTo:i,popoverProps:o={},popoverPaperStyle:r={},onCloseOrActionClick:s=(()=>{})},a)=>{const l=e.length>0,c=e.findIndex((e=>!e.disabled));return l&&n.createElement(dv,lv({},o,{onClose:s,ref:a,open:t,anchorEl:i.current,getContentAnchorEl:null,container:i.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:"njs-action-toolbar-more"}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:{pointerEvents:"auto",maxWidth:"250px",...r}}}),n.createElement(av,{id:"moreMenuList"},e.map(((e,t)=>n.createElement(uv,{key:t,item:e,autoFocus:t===c,onActionClick:s})))))})),gv="ActionsToolbar",pv={item:`${gv}-item`,itemSpacing:`${gv}-itemSpacing`,firstItemSpacing:`${gv}-firstItemSpacing`,lastItemSpacing:`${gv}-lastItemSpacing`},mv=(0,xt.ZP)(eh)((({theme:e})=>({[`& .${pv.itemSpacing}`]:{padding:e.spacing(0,.5)},[`& .${pv.firstItemSpacing}`]:{padding:e.spacing(0,.5,0,0)},[`& .${pv.lastItemSpacing}`]:{padding:e.spacing(0,0,0,.5)}}))),fv=n.forwardRef((({className:e,ariaExpanded:t=!1,actions:i=[],first:o=!1,last:r=!1,addAnchor:s=!1,isRtl:a=!1},l)=>i.length>0?n.createElement(Ar,{item:!0,container:!0,gap:0,flexDirection:a?"row-reverse":"row",wrap:"nowrap",className:e},i.map(((e,a)=>{let c=[];const d=o&&0===a,u=r&&i.length-1===a;return d&&!u&&(c=[pv.firstItemSpacing,pv.item]),u&&!d&&(c=[...c,pv.lastItemSpacing,pv.item]),d||u||0!==c.length||(c=[pv.itemSpacing,pv.item]),n.createElement(Ar,{item:!0,key:e.key,className:c.join(" ").trim()},n.createElement(Ff,{ariaExpanded:t,key:e.key,item:e,ref:0===a?l:null,addAnchor:s}))}))):null)),vv={pointerEvents:"none"},_v={vertical:"bottom",horizontal:"right"},bv=function({show:e=!0,actions:t=[],maxItems:i=3,selections:o={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:r={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:s={show:!1,anchorEl:null},focusHandler:a=null,actionsRefMock:l=null,direction:c="ltr"}){const d=function({api:e,onConfirm:t=(()=>{}),onCancel:i=(()=>{}),onKeyDeactivate:o=(()=>{})}){const{translator:r}=(0,n.useContext)(hd);return[{key:"clear",type:"icon-button",label:r.get("Selection.Clear"),enabled:()=>e.canClear(),action:()=>e.clear(),getSvgIconShape:Wf},{key:"cancel",type:"icon-button",label:r.get("Selection.Cancel"),enabled:()=>e.canCancel(),action:()=>{i(),e.cancel()},keyboardAction:()=>{o(),i(),e.cancel()},getSvgIconShape:Bf},{key:"confirm",type:"icon-button",label:r.get("Selection.Confirm"),enabled:()=>e.canConfirm(),action:()=>{t(),e.confirm()},keyboardAction:()=>{o(),t(),e.confirm()},getSvgIconShape:uh}]}(o),{translator:u,keyboardNavigation:h}=(0,n.useContext)(hd),[g,p]=(0,n.useState)(!1),m={vertical:7,horizontal:(s.anchorEl?.clientWidth??0)-7},f=(0,n.useRef)(),v=(0,n.useRef)(),_=Yt(),b=(0,n.useMemo)((()=>({margin:_.spacing(.5,0)}))),C=e=>{const t=f.current||l;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},y=(0,n.useMemo)((()=>function({keyboardNavigation:e,focusHandler:t,getEnabledButton:n,selections:i}){return o=>{const{target:r,nativeEvent:s}=o,{keyCode:a}=s;switch(a){case Wg.ARROW_LEFT:case Wg.ARROW_DOWN:case Wg.ARROW_RIGHT:case Wg.ARROW_UP:if(r.classList.contains("njs-cell-action")){const e=(e=>{const t=e.closest("#actions-toolbar"),n=t?.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)})(r);(e=>{const t=document.querySelector("#actions-toolbar"),n=t?.querySelectorAll(".njs-cell-action");n.length&&n[Math.min(Math.max(0,e),n.length-1)].focus()})([Wg.ARROW_LEFT,Wg.ARROW_DOWN].includes(a)?e-1:e+1)}o.stopPropagation(),o.preventDefault();break;case Wg.SPACE:o.preventDefault();break;case Wg.TAB:e&&t?.refocusContent&&(o.shiftKey&&n(!1)===o.target||!o.shiftKey&&n(!0)===o.target)&&(o.preventDefault(),o.stopPropagation(),t.refocusContent());break;case Wg.ESCAPE:i&&(i.onCancel(),i.api.cancel(),o.preventDefault(),o.stopPropagation())}}}({keyboardNavigation:h,focusHandler:a,getEnabledButton:C,selections:o})),[h,a,C,o]);(0,n.useEffect)((()=>()=>{p(!1)}),[s.show,e,o.show]),(0,n.useEffect)((()=>{a&&(a.on("focus_toolbar_first",(()=>{const e=C(!1);e&&e.focus()})),a.on("focus_toolbar_last",(()=>{const e=C(!0);e&&e.focus()})))}),[]);let w=r.enabled,S=r.actions;const x=r.alignTo||v,L=t.filter((e=>!e.hidden));if(L.length>i){const e=L.splice(-(L.length-i)-1);w=!0,S=[...e,...r.actions]}if(!o.show&&0===L.length)return null;const k={key:"more",label:u.get("Menu.More"),getSvgIconShape:qf,hidden:!1,active:g,enabled:()=>w,action:()=>p(!g)},E=L.length>0,N=S.length>0,D=E&&o.show||N&&o.show,I="rtl"===c,R=n.createElement(Ar,{ref:f,onKeyDown:y,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:I?"row-reverse":"row"}},E&&n.createElement(fv,{actions:L,first:!0,last:!N&&!o.show}),N&&n.createElement(fv,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:v,ariaExpanded:g,actions:[k],first:!E,last:!o.show,addAnchor:!0}),D&&n.createElement(Ar,{item:!0,className:pv.itemSpacing,style:b},n.createElement(Of,{orientation:"vertical"})),o.show&&n.createElement(fv,{className:"actions-toolbar-default-actions",actions:d,first:!E&&!N,last:!0,isRtl:I}),g&&n.createElement(hv,{show:g,actions:S,alignTo:x,popoverProps:r.popoverProps,popoverPaperStyle:r.popoverPaperStyle,onCloseOrActionClick:()=>{p(!1)}}));return s.show?n.createElement(mv,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:s.show,anchorEl:s.anchorEl,anchorOrigin:m,transformOrigin:_v,hideBackdrop:!0,style:vv,PaperProps:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:"njs-action-toolbar-popover",style:{pointerEvents:"auto",padding:_.spacing(.8)}}},R):e&&R};function Cv(e){return(0,kt.Z)("MuiInputAdornment",e)}const yv=(0,Lt.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var wv;const Sv=["children","className","component","disablePointerEvents","disableTypography","position","variant"],xv=(0,xt.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,Ut.Z)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,_t.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${yv.positionStart}&:not(.${yv.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),Lv=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiInputAdornment"}),{children:o,className:r,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d}=i,u=(0,vt.Z)(i,Sv),h=Ya()||{};let g=d;d&&h.variant,h&&!g&&(g=h.variant);const p=(0,_t.Z)({},i,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:g}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:i,position:o,size:r,variant:s}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${(0,Ut.Z)(o)}`,s,i&&"hiddenLabel",r&&`size${(0,Ut.Z)(r)}`]};return(0,Ct.Z)(a,Cv,t)})(p);return(0,Nt.jsx)(Qa.Provider,{value:null,children:(0,Nt.jsx)(xv,(0,_t.Z)({as:s,ownerState:p,className:(0,bt.Z)(m.root,r),ref:t},u,{children:"string"!=typeof o||l?(0,Nt.jsxs)(n.Fragment,{children:["start"===c?wv||(wv=(0,Nt.jsx)("span",{className:"notranslate",children:""})):null,o]}):(0,Nt.jsx)(zr,{color:"text.secondary",children:o})}))})})),kv=Lv,Ev=e=>Cs((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)),Nv="/qListObjectDef",Dv="**",Iv=(0,xt.ZP)(kv)((({theme:e})=>({color:e.listBox?.content?.color}))),Rv=(0,xt.ZP)(Rl)((({theme:e})=>({color:e.listBox?.content?.color,display:"flex"})));function Tv({selections:e,selectionState:t,model:i,keyboard:o,dense:r=!1,visible:s=!0,autoFocus:a=!0,wildCardSearch:l=!1,searchEnabled:c,direction:d,hide:u}){const{translator:h}=(0,n.useContext)(hd),[g,p]=(0,n.useState)(""),[m,f]=(0,n.useState)(!1),v=(0,n.useRef)(),_=Yt(),{getStoreValue:b}=Lp(i),C="rtl"===d,y=C?"right":"left",w=async()=>{if(e.isModal())try{await i.abortListObjectSearch(Nv)}finally{p("")}};(0,n.useEffect)((()=>{s||w()}),[s]),(0,n.useEffect)((()=>(e.on("deactivated",w),()=>{e.removeListener&&e.removeListener("deactivated",w)})),[]),(0,n.useEffect)((()=>{if(m&&v.current){const e=g.length-1;v.current.setSelectionRange(e,e),f(!1)}}),[m,v.current]);function S(e){const t=e?.querySelector(".last-focused")||e?.querySelector('[role="row"]:first-child');t.setAttribute("tabIndex",0),t?.focus()}return s&&!1!==c?n.createElement(Rv,{startAdornment:n.createElement(Iv,{position:"start"},n.createElement(Ev,{size:r?"small":"normal"})),className:"search",sx:[{border:"none",fontSize:14,borderRadius:0,backgroundColor:"transparent","& fieldset":{border:`1px solid ${_.palette.divider}`,borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"},paddingLeft:`${fh}px`},r&&{fontSize:12,paddingLeft:_.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}},{flexDirection:C?"row-reverse":"row"}],inputRef:v,size:"small",fullWidth:!0,placeholder:h.get("Listbox.Search"),value:g,onFocus:()=>{l&&(p(Dv),f(!0)),e.isModal()||e.begin(["/qListObjectDef"])},onChange:async e=>(p(e.target.value),e.target.value.length?i.searchListObjectFor(Nv,e.target.value):w()),onKeyDown:async n=>{const{currentTarget:r}=n,s=r.closest(".listbox-container");switch(n.key){case"Enter":(async()=>{let n;await i.searchListObjectFor(Nv,g)&&g.length&&b("listCount")>0&&(n=i.acceptListObjectSearch(Nv,!0),e.selectionsMade=!0,t.clearItemStates(!1),p(""))})();break;case"Escape":S(s),e.isActive()&&e.cancel();break;case"Tab":n.shiftKey?o.focusSelection():(S(s),s?.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")})));break;case"f":case"F":if(!n.ctrlKey&&!n.metaKey)return;u&&(u(),S(s));break;default:return}n.preventDefault(),n.stopPropagation()},autoFocus:a,inputProps:{tabIndex:o.innerTabStops?0:-1,style:{textAlign:`${y}`},"data-testid":"search-input-field"}}):null}function Ov(e){return Object.keys(pc().prototype).forEach((t=>{e[t]=pc().prototype[t]})),pc().init(e),e}const qv=({appSelections:e,appModal:t,model:n})=>{let i,o=!1,r=!1;const s={id:n.id,setLayout(e){i=e},begin(e){const i=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",i),i.isPrevented()?Promise.resolve():(o=!0,this.emit("activated"),t.begin(n,e,!0))},clear(){return r=!1,this.emit("cleared"),i.qListObject?n.clearSelections("/qListObjectDef"):n.resetMadeSelections()},confirm(){return r=!1,o=!1,this.emit("confirmed"),this.emit("deactivated"),t.end(!0)},cancel(){return r=!1,o=!1,this.emit("canceled"),this.emit("deactivated"),t.end(!1)},async select(t){const i=this.begin([t.params[0]]);if(!e.isModal())return!1;await i;const o=await n[t.method](...t.params);return r="resetMadeSelections"!==t.method,!!o||(n.resetMadeSelections(),!1)},canClear:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked&&!i.qListObject.qDimensionInfo.qIsOneAndOnlyOne:r,canConfirm:()=>i&&i.qListObject&&i.qListObject.qDimensionInfo?!i.qListObject.qDimensionInfo.qLocked:r,canCancel:()=>!(i&&i.qListObject&&i.qListObject.qDimensionInfo&&i.qListObject.qDimensionInfo.qLocked),isActive:()=>o,isModal:()=>e.isModal(n),goModal:e=>t.begin(n,e,!1),noModal:(e=!1)=>t.end(e)};return Ov(s),s},Av=({elements:e,objectSelections:t,options:n={}})=>{const i=function({elements:e,handleClickOutside:t}){return n=>{if(!document.contains(n.target))return;const i=e.map((e=>"string"==typeof e?document.querySelector(e):e?.current)).filter((e=>!!e&&!!document.contains(e)));i.length&&!i.some((e=>e.contains(n.target)))&&t(n)}}({elements:e,handleClickOutside:()=>t.confirm.call(t)});return{activateClickOut(){document.addEventListener("mousedown",i),n?.onSelectionActivated?.()},deactivateClickOut(){document.removeEventListener("mousedown",i),n?.onSelectionDeactivated?.()}}};function Mv(e,t,i,o){const r=Array.isArray(i)?i:[i],[s]=wd(e),[a]=Ud(t),l=t?t.id:null,[c]=fd(),[d]=_d(),u=c.get(e.id);let h=d.get(l);return(0,n.useEffect)((()=>{s&&t&&!h&&(h=qv({appSelections:s,appModal:u,model:t}),d.set(l,h),d.dispatch(!0))}),[s,t]),(0,n.useEffect)((()=>{if(!h)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=Av({elements:r,objectSelections:h,options:o});return h.addListener("activated",e),h.addListener("deactivated",t),()=>{h.isActive()&&h.confirm(),h.removeListener("activated",e),h.removeListener("deactivated",t)}}),[h]),(0,n.useEffect)((()=>{h&&h.setLayout(a)}),[h,a]),[h]}function Pv(){const e={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,update({setPages:t,pages:n,isSingleSelect:i,selectDisabled:o,layout:r}){this.setPages=t;const s=this.lastRowCount===r.qListObject.qSize.qcy,a=this.lastApprMaxGlyphCount===r.qListObject.qDimensionInfo.qApprMaxGlyphCount;s&&a||(this.lastRowCount=r.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=r.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==n&&void 0!==n&&(e.enginePages=n??[],e.selectedInEngine=function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!oh.includes(n)&&t.qElemNumber;var n})).filter((e=>!1!==e))));return rh(t)}(n),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=i,e.selectDisabled=o,e.isDimCalculated=r?.qListObject?.qDimensionInfo?.qIsCalculated??!1},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:i}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===i?"XS":"S":"S"===i||"XS"===i?"A":i:i},updateItemNoEvents(t,n,i){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(i?.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages:t=>t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,i=e.getState(n);return[{...n,qState:i},...t.slice(1)]}));return{...t,qMatrix:n}})),updateItem(t,n,i){e.updateItemNoEvents(t,n,i),e.triggerStateChanged()},updateItems(t,n,i){t.forEach((t=>{e.updateItemNoEvents(t,n,i)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}};return e}const Fv=(e,t,n=void 0)=>e?.[t]??n;function Bv({alignTo:e,anchorOrigin:t={vertical:"bottom",horizontal:"center"},transformOrigin:i={vertical:"top",horizontal:"center"},show:o,close:r,app:s,fieldName:a,stateName:l="$",autoFocus:c}){const d=Boolean(a?.qLibraryId),u=o&&Boolean(e.current),[h,g]=(0,n.useState)(0),p=Yt(),m=(0,n.useRef)(),[f]=Wd({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:l,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:d?void 0:[a]},qLibraryId:d?a.qLibraryId:void 0}},s,a,l),v=(0,n.useCallback)((()=>{f.lock("/qListObjectDef")}),[f]),_=(0,n.useCallback)((()=>{f.unlock("/qListObjectDef")}),[f]),{translator:b}=(0,n.useContext)(hd),C=(0,n.useRef)(),y=(0,n.useRef)(),[w]=Mv(s,f,y),[S]=Ud(f),[x]=(0,n.useState)((()=>Pv()));if((0,n.useEffect)((()=>{w&&u&&(w.isModal(f)||w.goModal("/qListObjectDef"))}),[w,u]),!f||!S||!b)return null;const L=!0===S.qListObject.qDimensionInfo.qLocked,k=(e,t)=>{const n="escapeKeyDown"!==t;w.noModal(n),r()},E=kf({layout:S,model:f,translator:b,selectionState:x}),N=function(e){const t=e?.qListObject.qDimensionInfo.qStateCounts||{};return Fv(t,"qSelected",0)+Fv(t,"qSelectedExcluded",0)+Fv(t,"qLocked",0)+Fv(t,"qLockedExcluded",0)>0}(S);return n.createElement(eh,{open:u,onClose:k,anchorEl:e.current,anchorOrigin:t,transformOrigin:i,PaperProps:{style:{minWidth:"250px"}}},n.createElement(Ar,{container:!0,direction:"column",gap:0,ref:y},n.createElement(Ar,{item:!0,container:!0,style:{padding:p.spacing(1)}},n.createElement(Ar,{item:!0},L?n.createElement(Sr,{onClick:_,disabled:!L,size:"large"},n.createElement(Gd,{title:b.get("Listbox.Unlock")})):n.createElement(Sr,{onClick:v,disabled:!N,size:"large"},n.createElement(Zd,{title:b.get("Listbox.Lock")}))),n.createElement(Ar,{item:!0,xs:!0}),n.createElement(Ar,{item:!0},n.createElement(bv,{more:{enabled:!L,actions:E,alignTo:C,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:w,onConfirm:k,onCancel:()=>k(0,"escapeKeyDown")}}))),n.createElement(Ar,{item:!0,xs:!0},n.createElement("div",{ref:C}),n.createElement(Ar,{item:!0,ref:m},n.createElement(Tv,{visible:!0,model:f,listCount:h,selections:w,selectionState:x,keyboard:{enabled:!1},autoFocus:c??!0})),n.createElement(yf,{model:f,app:s,layout:S,selections:w,selectionState:x,direction:"ltr",onSetListCount:e=>g(e),onCtrlF:()=>{const e=m.current.querySelector("input");e?.focus()}}))))}function Wv({field:e,api:t,stateIx:i=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:r=null,onClose:s=(()=>{})}){const{translator:a}=(0,n.useContext)(hd),l=r||(0,n.useRef)(),c=Yt(),[d,u]=(0,n.useState)(!1),h=()=>{u(!1),s()},g=e.selections[i];void 0===g.qTotal&&(g.qTotal=0);const p=g.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},m=(p.qSelected+p.qLocked)/g.qTotal,f=p.qAlternative/g.qTotal,v=(p.qExcluded+p.qLockedExcluded+p.qSelectedExcluded)/g.qTotal,_=p.qSelected+p.qSelectedExcluded+p.qLocked+p.qLockedExcluded,b=0===_&&0===g.qTotal;let C="";g.qTotal===_&&g.qTotal>1?C=a.get("CurrentSelections.All"):_>1&&g.qTotal?C=a.get("CurrentSelections.Of",[_,g.qTotal]):g.qSelectedFieldSelectionInfo&&(C=g.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==e.states[i]&&(C=`${e.states[i]}: ${C}`);const y=[{color:c.palette.selected.main,ratio:m},{color:c.palette.selected.alternative,ratio:f},{color:c.palette.selected.excluded,ratio:v}];y.forEach(((e,t)=>{e.offset=t?y[t-1].offset+y[t-1].ratio:0}));let w=null,S=null,x=null,L=null;return r||(w=n.createElement(Ar,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:g.qLocked?"0.3":""}},n.createElement(zr,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},g.qField),n.createElement(zr,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},C)),g.qLocked?S=n.createElement(Ar,{item:!0},n.createElement(Sr,{size:"large"},n.createElement(Gd,null))):g.qOneAndOnlyOne||(S=n.createElement(Ar,{item:!0},n.createElement(Sr,{title:a.get("Selection.Clear"),onClick:n=>{n.stopPropagation(),t.clearField(g.qField,e.states[i])},size:"large"},n.createElement(ys,null)))),x=n.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===b&&y.map((e=>n.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}})))),L=n.createElement(Ar,{container:!0,gap:1,ref:l,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&(e=>{e.currentTarget.contains(e.target)&&u(!d)})||null},w,S,x,d&&n.createElement(Bv,{alignTo:l,show:d,close:h,app:t.model,fieldName:g.qField,stateName:e.states[i]}))),r?n.createElement(Bv,{alignTo:l,show:!0,close:h,app:t.model,fieldName:g.qField,stateName:e.states[i]}):L}const Vv=e=>{const t=n.useRef({});return n.useEffect((()=>{t.current=e})),t.current};function zv(e){return(0,kt.Z)("MuiBadge",e)}const Hv=(0,Lt.Z)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),jv=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Uv=(0,xt.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),$v=(0,xt.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${(0,Ut.Z)(n.anchorOrigin.vertical)}${(0,Ut.Z)(n.anchorOrigin.horizontal)}${(0,Ut.Z)(n.overlap)}`],"default"!==n.color&&t[`color${(0,Ut.Z)(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>(0,_t.Z)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Hv.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Hv.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Hv.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Hv.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Hv.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Hv.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Hv.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Hv.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),Kv=n.forwardRef((function(e,t){var n,i,o,r,s,a;const l=(0,St.Z)({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:d,component:u,components:h={},componentsProps:g={},children:p,overlap:m="rectangular",color:f="default",invisible:v=!1,max:_=99,badgeContent:b,slots:C,slotProps:y,showZero:w=!1,variant:S="standard"}=l,x=(0,vt.Z)(l,jv),{badgeContent:L,invisible:k,max:E,displayValue:N}=function(e){const{badgeContent:t,invisible:n=!1,max:i=99,showZero:o=!1}=e,r=Vv({badgeContent:t,max:i});let s=n;!1!==n||0!==t||o||(s=!0);const{badgeContent:a,max:l=i}=s?r:e;return{badgeContent:a,invisible:s,max:l,displayValue:a&&Number(a)>l?`${l}+`:a}}({max:_,invisible:v,badgeContent:b,showZero:w}),D=Vv({anchorOrigin:c,color:f,overlap:m,variant:S,badgeContent:b}),I=k||null==L&&"dot"!==S,{color:R=f,overlap:T=m,anchorOrigin:O=c,variant:q=S}=I?D:l,A="dot"!==q?N:void 0,M=(0,_t.Z)({},l,{badgeContent:L,invisible:I,max:E,displayValue:A,showZero:w,anchorOrigin:O,color:R,overlap:T,variant:q}),P=(e=>{const{color:t,anchorOrigin:n,invisible:i,overlap:o,variant:r,classes:s={}}=e,a={root:["root"],badge:["badge",r,i&&"invisible",`anchorOrigin${(0,Ut.Z)(n.vertical)}${(0,Ut.Z)(n.horizontal)}`,`anchorOrigin${(0,Ut.Z)(n.vertical)}${(0,Ut.Z)(n.horizontal)}${(0,Ut.Z)(o)}`,`overlap${(0,Ut.Z)(o)}`,"default"!==t&&`color${(0,Ut.Z)(t)}`]};return(0,Ct.Z)(a,zv,s)})(M),F=null!=(n=null!=(i=null==C?void 0:C.root)?i:h.Root)?n:Uv,B=null!=(o=null!=(r=null==C?void 0:C.badge)?r:h.Badge)?o:$v,W=null!=(s=null==y?void 0:y.root)?s:g.root,V=null!=(a=null==y?void 0:y.badge)?a:g.badge,z=la({elementType:F,externalSlotProps:W,externalForwardedProps:x,additionalProps:{ref:t,as:u},ownerState:M,className:(0,bt.Z)(null==W?void 0:W.className,P.root,d)}),H=la({elementType:B,externalSlotProps:V,ownerState:M,className:(0,bt.Z)(P.badge,null==V?void 0:V.className)});return(0,Nt.jsxs)(F,(0,_t.Z)({},z,{children:[p,(0,Nt.jsx)(B,(0,_t.Z)({},H,{children:A}))]}))})),Gv=Kv,Zv=e=>Cs((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)),Qv={item:"MultiState-item"},Yv=(0,xt.ZP)(Ar)((({theme:e})=>({[`&.${Qv.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"}})));function Xv({field:e,api:t,moreAlignTo:i=null,onClose:o=(()=>{})}){const[r,s]=(0,n.useState)(!!i),[a,l]=(0,n.useState)(-1),[c,d]=(0,n.useState)(i?i.current:null),u=i||(0,n.useRef)(),{translator:h}=(0,n.useContext)(hd),g=h.get("Selection.ClearAllStates"),p=()=>{l(-1),o()};let m=null;i||(m=n.createElement(n.Fragment,null,n.createElement(Ar,{item:!0,xs:!0,zeroMinWidth:!0},n.createElement(Gv,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length},n.createElement(zr,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},e.name))),n.createElement(Ar,{item:!0},n.createElement("div",{style:{width:"12px"}})),n.createElement(Ar,{item:!0},n.createElement(Sr,{size:"large"},n.createElement(Zv,null)))));const f=n.createElement(Es,{dense:!0},n.createElement(js,{title:g,onClick:()=>{e.states.forEach((n=>t.clearField(e.name,n)))}},n.createElement(Wl,{variant:"contained",fullWidth:!0},g)),e.states.map(((i,o)=>n.createElement(js,{key:o,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),l(t)})(e,o)},n.createElement(Hi,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},n.createElement(Wv,{field:e,api:t,stateIx:o,skipHandleShowListBoxPopover:!0})))))),v=n.createElement(eh,{open:r,onClose:()=>{s(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},f),_=i?v:n.createElement(Yv,{container:!0,gap:0,className:Qv.item,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),u.current=e.currentTarget,s(!r))}},m,r&&v,a>-1&&n.createElement(Bv,{alignTo:u,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}));return i&&a>-1?n.createElement(Bv,{alignTo:u,show:a>-1,close:p,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}):_}const Jv="More",e_={item:`${Jv}-item`,badge:`${Jv}-badge`},t_=(0,xt.ZP)(Ar)((({theme:e})=>({[`&.${e_.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${e_.badge}`]:{padding:e.spacing(0,1)}})));function n_({items:e=[],api:t}){const i=Yt(),[o,r]=(0,n.useState)(!1),[s,a]=(0,n.useState)(-1),[l,c]=(0,n.useState)(null),d=(0,n.useRef)(),u=()=>{a(-1)};let h=null;return s>-1&&(h=e[s].states.length>1?n.createElement(Xv,{field:e[s],api:t,moreAlignTo:d,onClose:u}):n.createElement(Wv,{field:e[s],api:t,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:u})),n.createElement(t_,{container:!0,gap:0,className:e_.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),d.current=e.currentTarget,r(!o))}},n.createElement(Ar,{item:!0},n.createElement(Hi,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},n.createElement(zr,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",e.length))),n.createElement(Ar,{item:!0},n.createElement(Sr,{size:"large"},n.createElement(Zv,null))),o&&n.createElement(eh,{open:o,onClose:()=>{r(!1)},anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},n.createElement(Es,{dense:!0},e.map(((e,i)=>n.createElement(js,{key:i,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),r(!1),a(t)})(e,i)},n.createElement(Hi,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?n.createElement(Xv,{field:e,api:t}):n.createElement(Wv,{field:e,api:t}))))))),h)}const i_=120,o_=72;function r_(e,t,n="$"){e.qSelections.forEach((e=>{const i=e.qField,o=t[i]=t[i]||{name:i,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))}))}function s_({api:e,app:t}){const i=Yt(),[o]=zd(t),[r]=Ud(o),[s,a]=(0,n.useState)({items:[],more:[]}),[l]=Cd(),[c,d]=Kd(),[u,h]=(0,n.useState)(0);return(0,n.useEffect)((()=>{if(!d)return;const{width:e}=d,t=Math.floor(e)-o_,n=Math.floor(t/i_);h(n)}),[d]),(0,n.useEffect)((()=>{if(!(t&&o&&r&&u))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&r_(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>r_(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(r);a((n=>{const i=e;if((()=>{const e=l.get(t.id);return e&&"njsListbox"===e.genericType})()&&i.length+1===n.items.length){const e=n.items.filter((e=>!1===i.some((t=>e.name===t.name))))[0],{qField:t}=e.selections[0];e.selections=[{qField:t}];const o=n.items.indexOf(e);i.splice(o,0,e)}let o=[];return u<i.length&&(o=i.splice(u-i.length)),{items:i,more:o}}))}),[t,o,r,e.isInModal(),u]),n.createElement(Ar,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},s.items.map((t=>n.createElement(Ar,{item:!0,key:`${t.states.join("::")}::${t.name}`,style:{position:"relative",maxWidth:"240px",minWidth:`${i_}px`,background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},t.states.length>1?n.createElement(Xv,{field:t,api:e}):n.createElement(Wv,{field:t,api:e})))),s.more.length>0&&n.createElement(Ar,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:`${o_}px`,background:i.palette.background.paper,borderRight:`1px solid ${i.palette.divider}`}},n.createElement(n_,{items:s.more,api:e})))}const a_=e=>Cs((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)),l_=e=>Cs((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)),c_=(e,t,n)=>{const i=[...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(i)}],!0)};function d_({api:e,app:t}){const{translator:i}=(0,n.useContext)(hd),[o]=function(e){const[t]=zd(e),[i]=Ud(t),[o]=$d(e),[r,s]=(0,n.useState)(null);return(0,n.useEffect)((()=>{o&&t&&i&&c_(t,i,o)}),[o,t,i]),(0,n.useEffect)((()=>{if(!i)return;let e=!1,t=!1,n=!1;[i,...i.alternateStates||[]].forEach((i=>{e=e||i.qSelectionObject&&i.qSelectionObject.qBackCount>0,t=t||i.qSelectionObject&&i.qSelectionObject.qForwardCount>0,n=n||(i.qSelectionObject&&i.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),s({canGoBack:e,canGoForward:t,canClear:n})}),[i]),[r,t,i]}(t);return n.createElement(Ar,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},n.createElement(Ar,{item:!0},n.createElement(Sr,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:i.get("Navigate.Back"),onClick:()=>e.back(),size:"large"},n.createElement(a_,null))),n.createElement(Ar,{item:!0},n.createElement(Sr,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:i.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large"},n.createElement(l_,null))),n.createElement(Ar,{item:!0},n.createElement(Sr,{disabled:!o||!o.canClear,title:i.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large"},n.createElement(Vf,null))))}const u_=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function h_([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function g_(){return u_.map(h_).join("")}function p_({app:e}){const t=Yt(),[i]=wd(e);return i?n.createElement(Ar,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:t.palette.background.paper,minHeight:"40px"}},n.createElement(Ar,{item:!0,style:{borderRight:`1px solid ${t.palette.divider}`}},n.createElement(d_,{api:i,app:e})),n.createElement(Ar,{item:!0,xs:!0,style:{backgroundColor:t.palette.background.darker,overflow:"hidden"}},n.createElement(s_,{api:i,app:e}))):null}var m_,f_="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==s.g?s.g:{};let v_;v_="undefined"!=typeof window?window:"undefined"!=typeof self?self:f_;let __=null,b_=null;const C_=v_.clearTimeout,y_=v_.setTimeout,w_=v_.cancelAnimationFrame||v_.mozCancelAnimationFrame||v_.webkitCancelAnimationFrame,S_=v_.requestAnimationFrame||v_.mozRequestAnimationFrame||v_.webkitRequestAnimationFrame;function x_(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}null==w_||null==S_?(__=C_,b_=function(e){return y_(e,20)}):(__=function([e,t]){w_(e),C_(t)},b_=function(e){const t=S_((function(){C_(n),e()})),n=y_((function(){w_(t),e()}),20);return[t,n]}),m_={createDetectElementResize:function(e){let t,n,i,o,r,s,a;const l="undefined"!=typeof document&&document.attachEvent;if(!l){s=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,i=t.lastElementChild,o=n.firstElementChild;i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},r=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},a=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;s(this),this.__resizeRAF__&&__(this.__resizeRAF__),this.__resizeRAF__=b_((function(){r(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";i="animationstart";const c="Webkit Moz O ms".split(" ");let d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),u="";{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"]){u=c[n],l="-"+u.toLowerCase()+"-",i=d[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(r,c){if(l)r.attachEvent("onresize",c);else{if(!r.__resizeTriggers__){const l=r.ownerDocument,c=v_.getComputedStyle(r);c&&"static"===c.position&&(r.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const i=(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%; }',r=n.head||n.getElementsByTagName("head")[0],s=n.createElement("style");s.id="detectElementResize",s.type="text/css",null!=e&&s.setAttribute("nonce",e),s.styleSheet?s.styleSheet.cssText=i:s.appendChild(n.createTextNode(i)),r.appendChild(s)}}(l),r.__resizeLast__={},r.__resizeListeners__=[],(r.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const d=l.createElement("div");d.className="expand-trigger",d.appendChild(l.createElement("div"));const u=l.createElement("div");u.className="contract-trigger",r.__resizeTriggers__.appendChild(d),r.__resizeTriggers__.appendChild(u),r.appendChild(r.__resizeTriggers__),s(r),r.addEventListener("scroll",a,!0),i&&(r.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&s(r)},r.__resizeTriggers__.addEventListener(i,r.__resizeTriggers__.__animationListener__))}r.__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",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(i,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}};class L_ extends n.Component{constructor(...e){super(...e),x_(this,"state",{height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0}),x_(this,"_autoSizer",null),x_(this,"_detectElementResize",null),x_(this,"_parentNode",null),x_(this,"_resizeObserver",null),x_(this,"_onResize",(()=>{const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){var i,o,r,s;const a=window.getComputedStyle(this._parentNode)||{},l=parseInt(null!==(i=a.paddingLeft)&&void 0!==i?i:"0",10),c=parseInt(null!==(o=a.paddingRight)&&void 0!==o?o:"0",10),d=parseInt(null!==(r=a.paddingTop)&&void 0!==r?r:"0",10),u=parseInt(null!==(s=a.paddingBottom)&&void 0!==s?s:"0",10),h=this._parentNode.getBoundingClientRect(),g=h.height-d-u,p=h.width-l-c,m=this._parentNode.offsetHeight-d-u,f=this._parentNode.offsetWidth-l-c;(e||this.state.height===m&&this.state.scaledHeight===g)&&(t||this.state.width===f&&this.state.scaledWidth===p)||(this.setState({height:m,width:f,scaledHeight:g,scaledWidth:p}),"function"==typeof n&&n({height:m,scaledHeight:g,scaledWidth:p,width:f}))}})),x_(this,"_setRef",(e=>{this._autoSizer=e}))}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,null!=this._parentNode&&("undefined"!=typeof ResizeObserver?(this._resizeObserver=new ResizeObserver((()=>{setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=(0,m_.createDetectElementResize)(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:e,defaultHeight:t,defaultWidth:i,disableHeight:o,disableWidth:r,nonce:s,onResize:a,style:l,tagName:c="div",...d}=this.props,{height:u,scaledHeight:h,scaledWidth:g,width:p}=this.state,m={overflow:"visible"},f={};let v=!1;return o||(0===u&&(v=!0),m.height=0,f.height=u,f.scaledHeight=h),r||(0===p&&(v=!0),m.width=0,f.width=p,f.scaledWidth=g),(0,n.createElement)(c,{ref:this._setRef,style:{...m,...l},...d},!v&&e(f))}}x_(L_,"defaultProps",{onResize:()=>{},disableHeight:!1,disableWidth:!1,style:{}});var k_=L_;const E_=e=>Cs((e=>({...e,shapes:[{type:"path",attrs:{d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"}}]}))(e));function N_(e){e?.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function D_(e){return e?.closest(".njs-cell")||e?.closest(".qv-gridcell")}function I_({keyboard:e,hovering:t,updateKeyScroll:n,containerRef:i,currentScrollIndex:o,isModal:r,constraints:s}){return{handleKeyDown:t=>{const{keyCode:n,shiftKey:o=!1}=t.nativeEvent,s=()=>{t.stopPropagation(),t.preventDefault()};if(!e.enabled)return;const a=t.currentTarget.closest(".listbox-container"),l=r();switch(n){case Wg.TAB:if(l)o?Hg(a)||zg(a):zg(a)||Hg(a);else{if(!o)break;e.blur(!0)}s();break;case Wg.ENTER:case Wg.SPACE:if(!t.target.classList.contains("listbox-container"))break;e.focus(),s();break;case Wg.ESCAPE:(t=>{const{currentTarget:n,target:o}=t,r=o.classList.contains("listbox-container"),s=D_(n.closest(".listbox-container")),a=1===s?.querySelectorAll(".listbox-container").length;if(r||a)e.blur(!0);else{N_(i.current),n.classList.add("last-focused"),e.blur();const t=n.closest(".listbox-container");t.setAttribute("tabIndex",-1),t?.focus()}})(t)}},handleOnMouseEnter:()=>{(()=>{const e=s?.select||s?.active,t=r();return e||t})()||(t.current=!0)},handleOnMouseLeave:()=>{t.current&&(t.current=!1)},globalKeyDown:e=>{if(!t.current)return;const{keyCode:i,ctrlKey:r=!1,shiftKey:s=!1}=e;switch(i){case Wg.ARROW_UP:n({up:1});break;case Wg.ARROW_DOWN:n({down:1});break;case Wg.PAGE_UP:n({up:o.stop-o.start});break;case Wg.PAGE_DOWN:n({down:o.stop-o.start});break;case Wg.HOME:n({scrollPosition:r&&s?"overflowStart":"start"});break;case Wg.END:n({scrollPosition:r&&s?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const R_=(0,xt.ZP)("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function T_({text:e}){const{translator:t}=(0,n.useContext)(hd);return n.createElement(R_,null,t.get(e))}function O_(){return O_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},O_.apply(this,arguments)}const q_="ListBoxInline",A_={listBoxHeader:`${q_}-listBoxHeader`,screenReaderOnly:`${q_}-screenReaderOnly`,listboxWrapper:`${q_}-listboxWrapper`},M_=(0,xt.ZP)(Ar,{shouldForwardProp:e=>!["containerPadding","isGridMode"].includes(e)})((({theme:e,containerPadding:t,isGridMode:n})=>({backgroundColor:e.listBox?.backgroundColor??e.palette.background.default,[`& .${A_.listBoxHeader}`]:{alignSelf:"center",display:"flex"},[`& .${A_.screenReaderOnly}`]:{position:"absolute",height:0,width:0,overflow:"hidden"},[`& .${A_.listboxWrapper}`]:{padding:t},"&:focus":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder} !important`},"&:focus ::-webkit-scrollbar-track":{boxShadow:n?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}}))),P_=(0,xt.ZP)(zr)((({theme:e})=>({color:e.listBox?.title?.main?.color,fontSize:e.listBox?.title?.main?.fontSize,fontFamily:e.listBox?.title?.main?.fontFamily,fontWeight:e.listBox?.title?.main?.fontWeight||"bold"})));function F_({options:e,layout:t}){const{app:i,direction:o,frequencyMode:r,checkboxes:s,search:a=!0,focusSearch:l=!1,rangeSelect:c=!0,model:d,selections:u,update:h,fetchStart:g,selectDisabled:p=(()=>!1),postProcessPages:m,calculatePagesHeight:f,showGray:v=!0,scrollState:_,renderedCallback:b,toolbar:C=!0,isPopover:y=!1}=e,w=Yt(),S=(0,n.useCallback)((()=>{d.unlock("/qListObjectDef")}),[d]),{translator:x,keyboardNavigation:L,themeApi:k,constraints:E}=(0,n.useContext)(hd);w.listBox=(e=>{const t=(t,n)=>e.getStyle("object.listBox",t,n);return{backgroundColor:t("","backgroundColor"),title:{main:{color:t("title.main","color"),fontSize:t("title.main","fontSize"),fontFamily:t("title.main","fontFamily"),fontWeight:t("title.main","fontWeight")}},content:{color:t("content","color"),fontSize:t("content","fontSize"),fontFamily:t("content","fontFamily")}}})(k);const N=function({appLayout:e}){return!!e?.qIsDirectQueryMode}({appLayout:i?.layout}),D=(0,n.useRef)(),[I,R]=Kd(),[T,O]=(()=>{const[e,t]=(0,n.useState)({}),i=(0,n.useCallback)((e=>{t({current:e})}),[t]);return[e,i]})(),[q,A]=(0,n.useState)(!1),[M,P]=(0,n.useState)(!1),F=(0,n.useRef)(!1),[B,W]=(0,n.useState)({down:0,up:0,scrollPosition:""}),V=e=>W((t=>({...t,...e}))),[z,H]=(0,n.useState)({start:0,stop:0}),[j]=wd(i),U=(0,n.useRef)(null),[$]=(0,n.useState)((()=>Pv())),K=function({containerRef:e,enabled:t}){const[i,o]=(0,n.useState)(!1);return{enabled:t,active:i,innerTabStops:!t||i,blur(n){if(!t)return;o(!1);const i=D_(e.current)||e.current?.parentElement;var r;r=e.current,r?.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),N_(e.current),n&&i&&(i.setAttribute("tabIndex",0),i.focus())},focus(){if(!t)return;o(!0);const n=e.current,i=n?.querySelector(".search input"),r=n?.querySelector(".value.last-focused"),s=n?.querySelector(".value.selector, .value"),a=n?.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),l=i||r||s||a;l?.setAttribute("tabIndex",0),l?.focus()},focusSelection(){const e=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm");e?.setAttribute("tabIndex",0),e?.focus()}}}({containerRef:D,enabled:L}),G=(0,n.useCallback)((()=>(({app:e,appSelections:t})=>e.isInModalSelection?.()??t.isInModal())({app:i,appSelections:j})),[i,j]),Z=t?.qListObject.qDimensionInfo.qError,Q=Z&&E.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[Y,X]=(0,n.useState)(!1),{handleKeyDown:J,handleOnMouseEnter:ee,handleOnMouseLeave:te,globalKeyDown:ne}=(0,n.useMemo)((()=>I_({keyboard:K,hovering:F,updateKeyScroll:V,containerRef:D,currentScrollIndex:z,app:i,appSelections:j,constraints:E,isModal:G})),[K,F,V,D,z,i,j,E,G]),ie=C&&(""===t?.title||!1===t?.showTitle)&&!y,oe=C&&""!==t?.title&&!1!==t?.showTitle||y;(0,n.useEffect)((()=>(document.addEventListener("keydown",ne),()=>{document.removeEventListener("keydown",ne)})),[ne]),(0,n.useEffect)((()=>{const e=()=>{A(!0)},t=()=>{A(!1),"toggle"===a&&P(!1)};return y&&(u.isActive()||(u.begin("/qListObjectDef"),u.on("activated",e),u.on("deactivated",t)),A(y)),u&&(u.isModal()||(u.on("activated",e),u.on("deactivated",t)),A(u.isActive())),()=>{u&&u.removeListener&&(u.removeListener("activated",e),u.removeListener("deactivated",t))}}),[u,y]),(0,n.useEffect)((()=>{if(T&&T.current&&(a&&l||"toggle"===a&&M)){const e=T.current.querySelector("input");e&&e.focus()}}),[T&&T.current,M,a,l]);const{wildCardSearch:re,searchEnabled:se,layoutOptions:ae={}}=t??{},le=!1!==se&&"toggle"===a,ce=!0===t?.qListObject?.qDimensionInfo?.qLocked,de=ce||le,ue="H"===t?.qListObject?.qDimensionInfo?.qGrouping,he=de||ue,ge=(de?28:0)+(ue?19:0);if((0,n.useEffect)((()=>{if(!U.current||!R)return;const e=function({containerRect:e,titleRef:t,iconsWidth:n}){return!!(e.width<(t?.current?.clientWidth??0)+n+16+128||t?.current?.scrollWidth>t?.current?.offsetWidth)}({containerRect:R,titleRef:U,iconsWidth:ge});X(e)}),[U.current,R]),!d||!t||!x)return null;const pe="rtl"===o,me=kf({layout:t,model:d,translator:x,selectionState:$,isDirectQuery:N}),fe=(!0===a||"toggle"===a&&M)&&!p()&&!1!==se,ve=ae.dense??!1,_e=oe?49+(fe?ve?27:40:0)+(ve?39:49):0,be=()=>{P(!M)},Ce=()=>{if("toggle"===a)be();else{const e=T.current.querySelector("input");e?.focus()}},ye=e=>function({isDetached:e,showToolbar:t,containerRef:n,isLocked:i,listboxSelectionToolbarItems:o,selections:r,keyboard:s}){return{show:t&&!e,popover:{show:t&&e,anchorEl:n.current},more:{enabled:!i,actions:o,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:t,api:r,onConfirm:()=>{s?.focus()},onCancel:()=>{s?.focus()}}}}({isDetached:!y&&e,showToolbar:q,containerRef:D,isLocked:ce,listboxSelectionToolbarItems:me,selections:u,keyboard:K}),we=fe&&"toggle"===a,Se=fh-(de?7:0),xe=pe?fh-(he?7:0):0,Le="grid"===ae?.dataLayout;let ke;Le&&(ke="row"===ae.layoutOrder?"2px 4px":"2px 6px 2px 4px");const Ee=E?.active?n.createElement(Ev,{title:x.get("Listbox.Search"),size:"large",style:{fontSize:"12px",padding:"7px"}}):n.createElement(Sr,{onClick:be,tabIndex:-1,title:x.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},n.createElement(Ev,{style:{fontSize:"12px"}})),Ne=p()?n.createElement(Gd,{size:"large",style:{fontSize:"12px",padding:"7px"}}):n.createElement(Sr,{title:x.get("SelectionToolbar.ClickToUnlock"),tabIndex:-1,onClick:S,size:"large"},n.createElement(Gd,{disableRipple:!0,style:{fontSize:"12px"}}));return n.createElement(n.Fragment,null,ie&&n.createElement(bv,O_({direction:o},ye(!0))),n.createElement(M_,{className:"listbox-container",container:!0,tabIndex:K.enabled?-1:void 0,direction:"column",gap:0,containerPadding:ke,style:{height:"100%",minHeight:`${_e}px`,flexFlow:"column nowrap"},onKeyDown:J,onMouseEnter:ee,onMouseLeave:te,ref:e=>{D.current=e,I(e)},isGridMode:Le},oe&&n.createElement(Ar,{item:!0,container:!0,minHeight:32,flexDirection:pe?"row-reverse":"row",marginY:1,paddingLeft:`${Se}px`,paddingRight:`${xe}px`,wrap:"nowrap"},he&&n.createElement(Ar,{item:!0,container:!0,alignItems:"center",width:ge},ce?Ne:le&&Ee,ue&&n.createElement(E_,{tabIndex:-1,title:x.get("Listbox.DrillDown"),size:"large",style:{fontSize:"12px"}})),n.createElement(Ar,{item:!0,xs:!0,minWidth:0,justifyContent:pe?"flex-end":"flex-start",className:A_.listBoxHeader},n.createElement(P_,{variant:"h6",noWrap:!0,ref:U,title:t.title},t.title)),n.createElement(Ar,{item:!0},n.createElement(bv,O_({direction:o},ye(Y))))),n.createElement(Ar,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:"50px"},role:"region","aria-label":x.get("Listbox.ResultFilterLabel")},n.createElement(Ar,{item:!0,ref:O},n.createElement("div",{className:A_.screenReaderOnly},x.get("Listbox.Search.ScreenReaderInstructions")),n.createElement(Tv,{selections:u,selectionState:$,model:d,dense:ve,keyboard:K,visible:fe,search:a,autoFocus:we,wildCardSearch:re,searchEnabled:se,direction:o,hide:le&&be})),n.createElement(Ar,{item:!0,xs:!0,className:A_.listboxWrapper},n.createElement("div",{className:A_.screenReaderOnly},x.get("Listbox.ScreenReaderInstructions")),Z?n.createElement(T_,{text:Q}):n.createElement(k_,null,(({height:e,width:a})=>n.createElement(yf,{model:d,app:i,constraints:E,layout:t,selections:u,selectionState:$,direction:o,frequencyMode:r,rangeSelect:c,checkboxes:s,height:e,width:a,update:h,fetchStart:g,postProcessPages:m,calculatePagesHeight:f,selectDisabled:p,keyboard:K,showGray:v,scrollState:_,keyScroll:{state:B,reset:()=>W({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:z,set:H},renderedCallback:b,onCtrlF:Ce,isModal:G})))))))}const B_=n.memo(F_),W_=function({options:e={}}){const{model:t}=e,[i]=Ud(t);return n.createElement(B_,{options:e,layout:i})},V_={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""},z_=(e={})=>{const{__DO_NOT_USE__:t={},...n}=e;return{...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,...t}};function H_({app:e,fieldIdentifier:t,qId:i,stateName:o,element:r,options:s,renderedCallback:a}){const{isExistingObject:l,hasExternalSelectionsApi:c}=function({qId:e,options:t}){return{isExistingObject:!(!e&&!t.sessionModel),hasExternalSelectionsApi:!!t.selectionsApi}}({qId:i,options:s}),[d,u]=(0,n.useState)(0);(0,n.useEffect)((()=>{if(d)throw new Error("Source or selection Api can not change after a listbox has been mounted");u(d+1)}),[l,c]);const h=l?function({app:e,qId:t,options:i={}}){const[o,r]=(0,n.useState)(),[s]=Fd(),{sessionModel:a}=i,l=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(i).filter((e=>l.includes(e)));if(c.length)throw new Error(`Option "${c.join(", ")}" is not applicable for existing objects.`);return(0,n.useEffect)((()=>{a?r(a):async function(){const n=s.get(t);if(n)r(n);else{const n=await e.getObject(t);s.set(n.id,n),n.once("closed",(()=>{s.clear(n.id)})),r(n)}}()}),[]),o}({app:e,qId:i,options:s}):function({app:e,fieldIdentifier:t,stateName:i,options:o={}}){const[r,s]=(0,n.useState)(""),[a,l]=(0,n.useState)(!0),[c,d]=(0,n.useState)(),[u,h]=(0,n.useState)(),g=o.title??u;(0,n.useEffect)((()=>{const n=o.histogram||"N"!==o.frequencyMode;t.qLibraryId&&n?async function(){try{const n=await e.getDimension(t.qLibraryId),i=await n.getLayout();h(i.qDim.title),"N"===i.qDim.qGrouping?s(i.qDim.qFieldDefs?i.qDim.qFieldDefs[0]:""):s({multiFieldDim:!0}),l(!1)}catch(e){throw l(!1),s({failedToFetchFieldDef:!0}),new Error(`Disabling frequency count and histogram: ${e&&e.message}`)}}():(l(!1),h(t))}),[]);const{dense:p,checkboxes:m,listLayout:f,properties:v={}}=o;let{frequencyMode:_,histogram:b=!1}=o;switch(r&&r.failedToFetchFieldDef&&(b=!1,_="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(_):_="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(_):_="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(_):_="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(_):_="R";break;default:_="N"}const C={dense:p};"horizontal"===f&&(C.dataLayout="grid",C.layoutOrder="column",C.maxVisibleColumns={auto:!0},C.maxVisibleRows={auto:!1,maxRows:1});const y=(0,n.useRef)();y.current||(y.current=g_());const w=Qc()(!0,{},V_,{qInfo:{qId:y.current},qListObjectDef:{qStateName:i,qFrequencyMode:b&&"N"===_?"V":_},histogram:b,checkboxes:m,layoutOptions:C,title:g});let S;if(Qc()(!0,w,v),t.qLibraryId?(w.qListObjectDef.qLibraryId=t.qLibraryId,S=t.qLibraryId):(w.qListObjectDef.qDef.qFieldDefs=[t],S=t),"P"!==_&&b)if(r?.multiFieldDim)w.frequencyMax="fetch";else{const e=t.qLibraryId?r:S;w.frequencyMax={qValueExpression:vf(e)}}const[x]=Wd(w,a?null:e,S,i);return(0,n.useEffect)((()=>{x&&d(x)}),[x]),c}({app:e,fieldIdentifier:t,stateName:o,options:s}),g=(0,n.useRef)(r),p=c?s.selectionsApi:Mv(e,h,[g,".njs-action-toolbar-more",".njs-action-toolbar-popover"],s)[0],m=(0,n.useMemo)((()=>({...s,selections:p,model:h,app:e,renderedCallback:a})),[s,p,h,e]);return p&&h?n.createElement(W_,{options:m}):null}const j_={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function U_({app:e,fieldIdentifier:t,stateName:i,element:o,options:r={}}){const[s,a]=(0,n.useState)(!!r.show);return n.createElement(Bv,{show:s,app:e,alignTo:{current:o},anchorOrigin:r.anchorOrigin,transformOrigin:r.transformOrigin,close:()=>{a(!1),r.onPopoverClose&&r.onPopoverClose()},fieldName:t,stateName:i,autoFocus:r.autoFocus})}function $_(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function K_(e,t){let n=0;for(let i=0;i<e.length;++i)e[i]>t?--e[i]:e[i]===t&&(n=i);return e.splice(n,1),n}const G_=e=>({qDef:{qFieldDefs:[e]}}),Z_=e=>({qDef:{qDef:e}});function Q_({dc:e,def:t,properties:n}){e.qDimensions=e.qDimensions||[],e.qMeasures=e.qMeasures||[],e.qInterColumnSortOrder=e.qInterColumnSortOrder||[],e.qInitialDataFetch=e.qInitialDataFetch||[],e.qColumnOrder=e.qColumnOrder||[],e.qExpansionState=e.qExpansionState||[];const i=n,o={dimensions:()=>e.qDimensions,measures:()=>e.qMeasures,addDimension(n){const r="string"==typeof n?G_(n):{...n,qDef:n.qDef||{}};return r.qDef.cId=r.qDef.cId||g_(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],e.qDimensions.length<o.maxDimensions()?(e.qDimensions.push(r),$_(e.qInterColumnSortOrder,e.qDimensions.length-1),t.dimensions.added(r,i)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qDimensions.push(r)),r},removeDimension(n){const o=e.qDimensions.splice(n,1)[0];return K_(e.qInterColumnSortOrder,n),t.dimensions.removed(o,i,n),o},addMeasure(n){const r="string"==typeof n?Z_(n):{...n,qDef:n.qDef||{}};r.qDef.cId=r.qDef.cId||g_(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],e.qMeasures.length<o.maxMeasures()?(e.qMeasures.push(r),$_(e.qInterColumnSortOrder,e.qDimensions.length+e.qMeasures.length-1),t.measures.added(r,i)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qMeasures.push(r))},removeMeasure(n){const o=e.qMeasures.splice(n,1)[0];K_(e.qInterColumnSortOrder,e.qDimensions.length+n),t.measures.removed(o,i,n)},maxDimensions:()=>t.dimensions.max(e.qMeasures.length),maxMeasures:()=>t.measures.max(e.qDimensions.length),canAddDimension:()=>e.qDimensions.length<o.maxDimensions(),canAddMeasure:()=>e.qMeasures.length<o.maxMeasures()};return o}const Y_=e=>({qDef:{qFieldDefs:[e]}});function X_({dc:e,def:t,properties:n}){e.qInitialDataFetch=e.qInitialDataFetch||[];const i=n,o={dimensions:()=>e.qLibraryId||e.qDef&&e.qDef.qFieldDefs&&0!==e.qDef.qFieldDefs.length?[e]:[],measures:()=>[],addDimension(n){const o="string"==typeof n?Y_(n):{...n,qDef:n.qDef||{}};return o.qDef.cId=o.qDef.cId||g_(),o.qDef.qSortCriterias=e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(o).forEach((t=>{e[t]=o[t]})),t.dimensions.added(o,i),o},removeDimension(n){const o=e;return delete e.qDef,delete e.qLibraryId,t.dimensions.removed(o,i,n),o},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===o.dimensions().length,canAddMeasure:()=>!1};return o}const J_=e=>{let t;var n;return t="string"==typeof e?Qc()(!0,{},V_,{qListObjectDef:(n=e,{qDef:{qFieldDefs:[n]}})}):e.qListObjectDef?Qc()(!0,{},V_,e):Qc()(!0,{},V_,{qListObjectDef:e}),t};function eb({children:e,halo:t}){return{async addDimension(n){const i=J_(n),o=i.qListObjectDef;if(o.qDef.cId=o.qDef.cId||g_(),!i.title)if(o.qLibraryId){const e=await t.app.getDimension(o.qLibraryId),n=await e.getProperties();n.qDim.qLabelExpression?i.title={qStringExpression:{qExpr:n.qDim.qLabelExpression}}:i.title=n.qDim.title}else i.title=o.qDef.title||o.qDef.qFieldLabels?.[0]||o.qDef.qFieldDefs?.[0];e.push({qProperty:i,qChildren:[]})},addMeasure(){}}}function tb(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 nb({sn:e,properties:t,fields:n,children:i},o){if(!n.length)return;const r=e.qae.data.targets[0];if(!r)return void console.warn("Attempting to add fields to an object without a specified data target");const{propertyPath:s}=r,a=s.split("/");let l=t;for(let e=0;e<a.length;e++){const t=a[e];l=t?l[t]:l}const c=function(e){return e.match("/qListObjectDef")?X_:e.match("/qChildListDef")?eb:Q_}(s),d=c({dc:l,def:r,properties:t,children:i,halo:o});for(let e=0;e<n.length;++e){const t=n[e];"measure"===tb(t)?await d.addMeasure(t):await d.addDimension(t)}}const ib={getValue:(e,t,n)=>{if(null==e||null==t)return n;const i=t.split(".");let o=e;for(let e=0;e<i.length;++e){const t=i[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 i=t.split("."),o=i[i.length-1];let r=e;for(let e=0;e<i.length-1;++e){const t=i[e];void 0!==r[t]&&null!==r[t]||(r[t]=Number.isNaN(+i[e+1])?{}:[]),r=r[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?r[o]=n:delete r[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object},ob=function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let i=0;i<t.length;i++){const o=e.indexOf(t[i]);if(n>o)return!1;n=o}return!0}return!1},rb=function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},sb=function(e,t){let n,i=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(i=n);return e.splice(i,1),i},ab=2**53-1;function lb(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function cb(e,t){const n=Qc()(!0,{},t,e);return ib.getValue(n,"qOtherTotalSpec.qOtherCounted")||ib.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),ib.getValue(n,"qOtherTotalSpec.qOtherLimit")||ib.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function db(e,t){return Qc()(!0,{},t,e)}function ub(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}const hb={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===ib.getValue(e,t)&&ib.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:lb,importCommonProperties:function(e,t,n){const i="masterobject"===ib.getValue(t,"properties.qInfo.qType")?"masterobject":ib.getValue(n,"qInfo.qType");ib.setValue(e,"qInfo.qType",i),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,i){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=i},createDefaultDimension:cb,createDefaultMeasure:db,resolveValue:ub,getHypercubePath:function(e){const t=ib.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({exportFormat:e,newHyperCubeDef:t}){const n=e.data[0],i=t.qDimensions.length+t.qMeasures.length;t.qInterColumnSortOrder=n.interColumnSortOrder.concat();let o=t.qInterColumnSortOrder.length;if(o!==i)for(t.qLayoutExclude&&(t.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());o!==i;)o<i?(rb(t.qInterColumnSortOrder,o),++o):(--o,sb(t.qInterColumnSortOrder,o))},createNewProperties:function({exportFormat:e,initialProperties:t,hypercubePath:n}){let i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(e.properties).forEach((o=>{"qLayoutExclude"===o?e.properties[o].quarantine&&(i.qLayoutExclude.quarantine=Qc()(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&n?ib.setValue(i,`${n}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||lb(o)?i[o]=e.properties[o]:i.qLayoutExclude.disabled[o]=e.properties[o]})),i=Qc()(!0,{},t,i),null===i.components&&(i.components=[]),i},getMaxMinDimensionMeasure:function({exportFormat:e,dataDefinition:t={}}){const n=e.data[0],i=t.dimensions||{max:0},o=t.measures||{max:0},r=ub(o.max,n.dimensions.length,ab),s=ub(o.min,n.dimensions.length,0);return{maxDimensions:ub(i.max,r,ab),minDimensions:ub(i.min,s,0),maxMeasures:r,minMeasures:s}},shouldInitLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o}){const r=e.data[0];return r.dimensions.length>t&&t>0||r.measures.length>i&&i>0||r.excludedDimensions.length>0&&r.dimensions.length+r.excludedDimensions.length>n||r.excludedMeasures.length>0&&r.measures.length+r.excludedMeasures.length>o||!i&&r.measures.length>0||!t&&r.dimensions.length>0},initLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:i,minMeasures:o,newHyperCubeDef:r}){const s=e.data[0];r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.qHyperCubeDef||(r.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>t&&t>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(r.qLayoutExclude.qHyperCubeDef.qMeasures||(r.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!t&&s.dimensions.length&&(r.qLayoutExclude.qHyperCubeDef.qDimensions||(r.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function({exportFormat:e,maxDimensions:t,minDimensions:n,newHyperCubeDef:i,defaultDimension:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.dimensions.length;++s)i.qDimensions.length<t?i.qDimensions.push(cb(r.dimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(cb(r.dimensions[s],o));else if(r.dimensions.length)for(s=0;s<r.dimensions.length;++s)i.qLayoutExclude.qHyperCubeDef.qDimensions.push(cb(r.dimensions[s],o));if(r.excludedDimensions.length)for(s=0;s<r.excludedDimensions.length;++s)i.qDimensions.length<n?i.qDimensions.push(cb(r.excludedDimensions[s],o)):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(cb(r.excludedDimensions[s],o))},addDefaultMeasures:function({exportFormat:e,maxMeasures:t,minMeasures:n,newHyperCubeDef:i,defaultMeasure:o}){const r=e.data[0];let s;if(t>0)for(s=0;s<r.measures.length;++s)i.qMeasures.length<t?i.qMeasures.push(db(r.measures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(db(r.measures[s],o));else if(r.measures.length)for(s=0;s<r.measures.length;++s)i.qLayoutExclude.qHyperCubeDef.qMeasures.push(db(r.measures[s],o));if(r.excludedMeasures.length)for(s=0;s<r.excludedMeasures.length;++s)i.qMeasures.length<n?i.qMeasures.push(db(r.excludedMeasures[s],o)):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(db(r.excludedMeasures[s],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.dimensions&&"function"==typeof t.dimensions.added){const i=ib.getValue(e,n||"").qHyperCubeDef,o=[...i.qDimensions];i.qDimensions=[],o.forEach((n=>{i.qDimensions.push(n),t.dimensions.added(n,e)}))}},updateMeasuresOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.measures&&"function"==typeof t.measures.added){const i=ib.getValue(e,n||"").qHyperCubeDef,o=[...i.qMeasures];i.qMeasures=[],o.forEach((n=>{i.qMeasures.push(n),t.measures.added(n,e)}))}}},gb={exportProperties:e=>function({propertyTree:e,hypercubePath:t}){const n=function(e=1){const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),i=e.qProperty,o=ib.getValue(i,t||""),r=o.qHyperCubeDef,s=n.data[0];if(r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),s.dimensions.push(...r.qDimensions),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qDimensions&&s.excludedDimensions.push(...r.qLayoutExclude.qHyperCubeDef.qDimensions),s.measures.push(...r.qMeasures),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qMeasures&&s.excludedMeasures.push(...r.qLayoutExclude.qHyperCubeDef.qMeasures),s.interColumnSortOrder=r.qInterColumnSortOrder.concat(),r.qLayoutExclude&&r.qLayoutExclude.qHyperCubeDef&&r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();ob(e,s.interColumnSortOrder)&&(s.interColumnSortOrder=e)}return delete r.qLayoutExclude,Object.keys(i).forEach((e=>{n.properties[e]=i[e]})),t&&(n.properties.qHyperCubeDef=o.qHyperCubeDef,delete o.qHyperCubeDef),i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.disabled&&(Object.keys(i.qLayoutExclude.disabled).forEach((e=>{n.properties.hasOwnProperty(e)||(n.properties[e]=i.qLayoutExclude.disabled[e])})),delete i.qLayoutExclude.disabled),i.qLayoutExclude.changed&&(hb.restoreChangedProperties(i),delete i.qLayoutExclude.changed),i.qLayoutExclude.quarantine&&!ib.isEmpty(i.qLayoutExclude.quarantine)||delete i.qLayoutExclude,n}(e),importProperties:e=>function({exportFormat:e,initialProperties:t={},dataDefinition:n={},defaultPropertyValues:i={},hypercubePath:o}){const r={qChildren:[]},s=hb.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),a=ib.getValue(t,o||"").qHyperCubeDef,l=ib.getValue(s,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h}=hb.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:n}),{defaultDimension:g=hb.getDefaultDimension(),defaultMeasure:p=hb.getDefaultMeasure()}=i;return l.qDimensions.length=0,l.qMeasures.length=0,hb.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h})&&hb.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:d,maxMeasures:u,minMeasures:h,newHyperCubeDef:l}),hb.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:d,newHyperCubeDef:l,defaultDimension:g}),hb.addDefaultMeasures({exportFormat:e,maxMeasures:u,minMeasures:h,newHyperCubeDef:l,defaultMeasure:p}),hb.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:l}),hb.copyPropertyIfExist("qMaxStackedCells",a,l),hb.copyPropertyIfExist("qNoOfLeftDims",a,l),hb.copyPropertyOrSetDefault("qInitialDataFetch",a,l,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),hb.copyPropertyOrSetDefault("qMode",a,l,"S"),hb.copyPropertyOrSetDefault("qReductionMode",a,l,"N"),hb.copyPropertyOrSetDefault("qSortbyYValue",a,l),hb.copyPropertyOrSetDefault("qIndentMode",a,l),hb.copyPropertyOrSetDefault("qShowTotalsAbove",a,l),hb.importCommonProperties(s,e,t),hb.updateDimensionsOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),hb.updateMeasuresOnAdded({newProperties:s,dataDefinition:n,hypercubePath:o}),r.qProperty=s,r}(e)},pb=e=>ib.getValue(e,"data.targets.0.propertyPath"),mb=async({halo:e,model:t,cellRef:n,newType:i})=>{const o=await t.getFullPropertyTree(),r=n.current.getQae(),s=(e=>e.exportProperties?e.exportProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return gb.exportProperties})(pb(e)))(r),a=await(async({halo:e,name:t,version:n})=>{const{types:i}=e;return await i.get({name:t,version:n}).supernova()})({halo:e,name:i}),l=a.qae;return(e=>e.importProperties?e.importProperties:(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return gb.importProperties})(pb(e)))(l)({exportFormat:s({propertyTree:o,hypercubePath:hb.getHypercubePath(r)}),initialProperties:{qInfo:{qType:i},visualization:i,...ib.getValue(l,"properties.initial",{})},dataDefinition:ib.getValue(l,"data.targets.0.",{}),hypercubePath:hb.getHypercubePath(l)})},fb={hypercube:gb};function vb(e){return(0,kt.Z)("MuiIcon",e)}(0,Lt.Z)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _b=["baseClassName","className","color","component","fontSize"],bb=(0,xt.ZP)("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,Ut.Z)(n.color)}`],t[`fontSize${(0,Ut.Z)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]}))),Cb=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiIcon"}),{baseClassName:i="material-icons",className:o,color:r="inherit",component:s="span",fontSize:a="medium"}=n,l=(0,vt.Z)(n,_b),c=(0,_t.Z)({},n,{baseClassName:i,color:r,component:s,fontSize:a}),d=(e=>{const{color:t,fontSize:n,classes:i}=e,o={root:["root","inherit"!==t&&`color${(0,Ut.Z)(t)}`,`fontSize${(0,Ut.Z)(n)}`]};return(0,Ct.Z)(o,vb,i)})(c);return(0,Nt.jsx)(bb,(0,_t.Z)({as:s,className:(0,bt.Z)(i,"notranslate",d.root,o),ownerState:c,"aria-hidden":!0,ref:t},l))}));Cb.muiName="Icon";const yb=Cb,wb=e=>Cs((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 Sb({d:e}){const t=Yt();let i="inherit",o=t.palette.success.main;e.missing?o=t.palette.warning.main:e.error&&(i="error",o=t.palette.error.main);const r={color:o},s=n.createElement(zr,{style:{lineHeight:"30px",paddingRight:t.spacing(1)}},n.createElement(yb,null,e.missing||e.error?n.createElement(wb,{style:r}):n.createElement(hh,{style:r})));return n.createElement(Ar,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},n.createElement(Ar,{item:!0},s),n.createElement(Ar,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},n.createElement(zr,{noWrap:!0,component:"p"},n.createElement(zr,{component:"span",variant:"subtitle2",color:i},e.description),n.createElement(zr,{component:"span"}," "),n.createElement(zr,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400}},e.label))))}function xb({data:e}){const t=Yt();return n.createElement(Ar,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},e.map(((e,i)=>{const o=e.descriptions.map(((e,t)=>n.createElement(Sb,{d:e,key:t})));return o.length>0&&n.createElement(Ar,{container:!0,item:!0,key:i,direction:"column",style:{paddingBottom:t.spacing(2)}},n.createElement(zr,{noWrap:!0,key:i,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function Lb({title:e="Error",message:t="",data:i=[]}){return n.createElement(Ar,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},n.createElement(Ar,{item:!0},n.createElement(wb,{style:{fontSize:"38px"}})),n.createElement(Ar,{item:!0},n.createElement(zr,{variant:"h6",align:"center","data-tid":"error-title"},e)),n.createElement(Ar,{item:!0},n.createElement(zr,{variant:"subtitle1",align:"center","data-tid":"error-message"},t)),n.createElement(xb,{data:i}))}function kb(){return kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},kb.apply(this,arguments)}const Eb="Progress",Nb={root:`${Eb}-root`,front:`${Eb}-front`,back:`${Eb}-back`},Db=(0,xt.ZP)("div")((({theme:e})=>({[`&.${Nb.root}`]:{position:"relative",display:"inline-block"},[`& .${Nb.front}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${Nb.back}`]:{color:e.palette.divider}}))),Ib={small:16,medium:32,large:64,xlarge:128};function Rb({size:e="medium",...t}){const i=Ib[e];return n.createElement(Db,{className:Nb.root},n.createElement(cc,kb({variant:"determinate",value:100,className:Nb.back,size:i,thickness:3},t)),n.createElement(cc,kb({variant:"indeterminate",disableShrink:!0,className:Nb.front,size:i,thickness:3},t)))}function Tb(){return Tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Tb.apply(this,arguments)}const Ob={stripes:"LongRunningQuery-stripes"},qb=(0,xt.ZP)(Ar)((()=>({[`& .${Ob.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 Ab({cancel:e,translator:t,...i}){return n.createElement(n.Fragment,null,n.createElement(qb,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},n.createElement(Ar,{item:!0},n.createElement(Rb,null)),n.createElement(Ar,{item:!0},n.createElement(zr,{variant:"h6",align:"center","data-tid":"update-active"},t.get("Object.Update.Active")))),n.createElement(Ar,Tb({item:!0},i),n.createElement(Wl,{variant:"contained",onClick:e},t.get("Cancel"))))}function Mb({retry:e,translator:t,...i}){return n.createElement(n.Fragment,null,n.createElement(Ar,{item:!0},n.createElement(wb,{style:{fontSize:"38px"}})),n.createElement(Ar,{item:!0},n.createElement(zr,{variant:"h6",align:"center","data-tid":"update-cancelled"},t.get("Object.Update.Cancelled"))),n.createElement(Ar,{item:!0},n.createElement(Wl,Tb({variant:"contained",onClick:e},i),t.get("Retry"))))}function Pb({canCancel:e,canRetry:t,api:i}){const{translator:o}=(0,n.useContext)(hd);return n.createElement(Ar,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:Ob.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},e&&n.createElement(Ab,{cancel:i.cancel,translator:o,className:Ob.cancel}),t&&n.createElement(Mb,{retry:i.retry,translator:o,className:Ob.retry}))}function Fb(){return n.createElement(Ar,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n.createElement(Rb,{size:"large"}))}const Bb="Header",Wb={containerStyle:`${Bb}-containerStyle`,containerTitleStyle:`${Bb}-containerTitleStyle`},Vb=(0,xt.ZP)(Ar)((({theme:e})=>({[`&.${Wb.containerStyle}`]:{flexGrow:0},[`&.${Wb.containerTitleStyle}`]:{paddingBottom:e.spacing(1)}}))),zb=function({layout:e,sn:t,anchorEl:i,hovering:o,focusHandler:r,titleStyles:s={}}){const a=e.showTitles&&!!e.title,l=e.showTitles&&!!e.subtitle,c=e.qSelectionInfo&&e.qSelectionInfo.qInSelections,[d,u]=(0,n.useState)([]),[h,g]=Kd(),[p,m]=(0,n.useState)(!1);(0,n.useEffect)((()=>{t&&t.component&&t.component.isHooked&&t.component.observeActions((e=>{u([...e,...t&&t.selectionToolbar&&t.selectionToolbar.items||[]])}))}),[t]),(0,n.useEffect)((()=>{if(!g)return;const{width:e}=g;m(e<221)}),[g]);const f=a||l,v=[Wb.containerStyle,...f?[Wb.containerTitleStyle]:[]],_=(o||c)&&(p||!f),b=f&&!_&&!p,C=n.createElement(bv,{show:b,selections:{show:c,api:t.component.selections,onKeyDeactivate:r.refocusContent},actions:d,popover:{show:_,anchorEl:i},focusHandler:r});return n.createElement(Vb,{ref:h,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},n.createElement(Ar,{item:!0,zeroMinWidth:!0,xs:!0},n.createElement(Ar,{container:!0,wrap:"nowrap",direction:"column"},a&&n.createElement(zr,{variant:"h6",noWrap:!0,className:"njs-cell-title",style:s.main},e.title),l&&n.createElement(zr,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title",style:s.subTitle},e.subtitle))),n.createElement(Ar,{item:!0},C))},Hb="Footer-itemStyle",jb=(0,xt.ZP)(Ar)((({theme:e})=>({[`& .${Hb}`]:{minWidth:0,paddingTop:e.spacing(1)}}))),Ub=function({layout:e,titleStyles:t={}}){return e&&e.showTitles&&e.footnote?n.createElement(jb,{container:!0},n.createElement(Ar,{item:!0,className:Hb},n.createElement(zr,{noWrap:!0,variant:"body2",className:"njs-cell-footer",style:t.footer},e.footnote))):null};class $b{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 Kb=function({sn:e,snOptions:t,snPlugins:i,layout:o,appLayout:r,halo:s}){const{component:a}=e,{theme:l,language:c,constraints:d,interactions:u,keyboardNavigation:h}=(0,n.useContext)(hd),[g]=(0,n.useState)((()=>new $b)),[p,m]=(0,n.useState)(!1),[f,v]=(0,n.useState)(0),[_,b,C]=Kd(),[y,w]=(0,n.useState)(null),S=(0,n.useCallback)((e=>{e&&w(e)}),[]);return(0,n.useEffect)((()=>{if(y)return a.created({options:t}),a.mounted(y),m(!0),()=>{g.stop(),a.willUnmount()}}),[y,a]),(0,n.useEffect)((()=>{p&&y&&b&&(!a.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||g.schedule((()=>{const n=[];return d.passive||n.push("passive"),d.active||n.push("interact"),d.select||n.push("select"),d.edit||n.push("edit"),s.app&&s.app.session&&n.push("fetch"),Promise.resolve(a.render({layout:o,options:t,plugins:i,embed:s.public.nebbie,context:{constraints:d,interactions:u,theme:s.public.theme,appLayout:r,keyboardNavigation:h,...a.isHooked?{}:{logicalSize:e.logicalSize({layout:o}),localeInfo:(r||{}).qLocaleInfo,permissions:n}}})).then((e=>{!1!==e&&(0===f&&"function"==typeof t.onInitialRender&&t.onInitialRender.call(null),v(f+1))}))})))}),[b,t,i,y,C,o,r,l,c,d,u,p,h]),n.createElement("div",{ref:_,"data-render-count":f,style:{position:"relative",height:"100%"},className:"njs-viz"},n.createElement("div",{ref:S,style:{position:"absolute",width:"100%",height:"100%"}}))},Gb={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Zb={"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 Qb(e,t){const n=e?.bgImage;if(n){let i="";"media"!==n.mode&&"media"!==e.useImage||(i=n?.mediaUrl?.qStaticContentUrl?.qUrl?decodeURIComponent(n.mediaUrl.qStaticContentUrl.qUrl):void 0,i=function(e,t){return t?function(e){let t,n,i,o;return e?.session?.config?(t=e.session.config,n=new URL(t.url),o="wss:"===n.protocol,i=o?"https://":"http://",i+n.host):""}(e)+t:void 0}(t,i)),"expression"===n.mode&&(i=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const o=function(e){let t="center center";return e?.bgImage?.position&&(t=Zb[e.bgImage.position]),t}(e),r=function(e){let t=Gb.originalSize;return e?.bgImage?.sizing&&(t=Gb[e.bgImage.sizing]),t}(e);return i?{url:i,pos:o,size:r}:void 0}}function Yb(e,t,n){const i=e?.bgColor;return i&&t?i.useExpression?t.validateColor(i.colorExpression):i.color&&"none"!==i.color.color?t.getColorPickerColor(i.color,!0):void 0:t&&n?t.getStyle(`object.${n}`,"","backgroundColor"):t?t.getStyle("","","backgroundColor"):void 0}function Xb(e,t,n,i){const o=e?.title?.[t]||{},r=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(o.fontStyle,t);return{fontFamily:o.fontFamily||n.getStyle(`object.${i}`,`title.${t}`,"fontFamily"),color:o.color&&"none"!==o.color.color?n.getColorPickerColor(o.color,!0):n.getStyle(`object.${i}`,t,"color"),fontWeight:r.includes("bold")?"bold":"normal",fontStyle:r.includes("italic")?"italic":"normal",textDecoration:r.includes("underline")?"underline":"initial"}}const Jb=(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: ${t.type}`)}};function eC({delay:e=750}){const[t,i]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{const t=setTimeout((()=>i(!0)),e);return()=>clearTimeout(t)}),[]),t?n.createElement(Fb,null):null}const tC=e=>!e.qError||7005===e.qError.qErrorCode,nC=(e,t,n,i,o)=>[...Array(e).keys()].map((e=>{const r=!(!t||!t[e]),s=r&&t[e].qError&&7005===t[e].qError.qErrorCode,a=r&&!s&&t[e].qError,l=s&&t[e].qCalcCondMsg,c=`${a?i:s?l||o:r&&t[e].qFallbackTitle||""}`,d=n(e);return{description:d?`${d}${c.length?":":""}`:null,label:c,missing:t&&!r&&!a&&e>=t.length||s,error:a}})),iC=e=>e&&(Array.isArray(e)?e:[e])||[],oC=(e,t,n,i)=>{const o=i.dimensions.min(),r=i.measures.min(),s=i.resolveLayout(t);return{reqDimErrors:nC(o,iC(s.qDimensionInfo||s.qItems),(e=>i.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:nC(r,iC(s.qMeasureInfo),(e=>i.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},rC=(0,n.forwardRef)((({halo:e,model:t,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s,currentId:a,emitter:l},c)=>{const{app:d,types:u}=e,{nebbie:h}=e.public,{theme:g,translator:p,language:m,keyboardNavigation:f,disableCellPadding:v=!1}=(0,n.useContext)(hd),_=Yt(),[b,C,y]=Kd(),[w,S]=(0,n.useReducer)(Jb,{loading:!1,loaded:!1,longRunningQuery:!1,error:(x=r)?{title:x.message}:null,sn:null,visualization:null});var x;const[L,{validating:k,canCancel:E,canRetry:N},D]=Ud(t),[I]=$d(d),[R,T,O]=Kd(),[q,A]=(0,n.useState)(i),[M,P]=(0,n.useState)(o),F=`njs-cell-${a}`,[B]=Mv(d,t,[`#${F}`,".njs-action-toolbar-popover"]),[W,V]=(0,n.useState)(!1),z=(0,n.useRef)({enter:null,leave:null}),[H,j]=(0,n.useState)(void 0),[U,$]=(0,n.useState)(void 0),[K,G]=(0,n.useState)(void 0),Z=(0,n.useRef)({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});(0,n.useEffect)((()=>{Ov(Z.current)}),[]),(0,n.useEffect)((()=>{if(L&&e.public.theme){const t=L.components?L.components.find((e=>"general"===e.key)):null;G({main:Xb(t,"main",e.public.theme,L.visualization),footer:Xb(t,"footer",e.public.theme,L.visualization),subTitle:Xb(t,"subTitle",e.public.theme,L.visualization)}),j(Yb(t,e.public.theme,L.visualization)),$(Qb(t,e.app))}}),[L,e.public.theme,e.app,g]),Z.current.blurCallback=t=>{e.root.toggleFocusOfCells(),t&&O&&O.focus()},Z.current.refocusContent=()=>{w.sn.component&&"function"==typeof w.sn.component.focus&&w.sn.component.focus()},(0,n.useEffect)((()=>{if(r||!I||!L)return;if(w.visualization===L.visualization&&w.sn)return void(async e=>{const[n,i]=await(async(e,t,{targets:n},i)=>{const{hasUnfulfilledErrors:o,aggMinD:r,aggMinM:s,hasLayoutErrors:a,layoutErrors:l}=((e,t,n)=>{let i=!1,o=0,r=0,s=!1,a=!1;const l=[];for(let c=0;c<t.length;++c){const d=t[c],u=d.dimensions.min(),h=d.measures.min(),g=d.resolveLayout(n),p=iC(g.qDimensionInfo||g.qItems).filter(tC),m=iC(g.qMeasureInfo).filter(tC);if(o+=u,r+=h,(p.length<u||m.length<h)&&(i=!0),g.qError){s=!0,a=7005===g.qError.qErrorCode;const t=a&&g.qCalcCondMsg?g.qCalcCondMsg:a?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:i,aggMinD:o,aggMinM:r,hasLayoutErrors:s,layoutErrors:l}})(e,n,t),c=[],d=[];let u=null;for(let r=0;r<n.length;++r){const s=n[r];if(!a&&o){const n=u||await i.getProperties();u=n;const o=oC(e,t,n,s);c.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const h=c.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Dimensions",[h,r]),p=d.filter((e=>!(e.missing||e.error))).length,m=e.get("Visualization.Incomplete.Measures",[p,s]),f=[{title:g,descriptions:[...c]},{title:m,descriptions:[...d]}],v=a?l:f;return[a||o,{title:a?l[0].title:e.get("Visualization.Incomplete"),data:v}]})(p,L,e.generator.qae.data,t);S(n?{type:"ERROR",error:i}:{type:"RENDER"}),(({sn:e,layout:t,model:n})=>{const i=e&&e.component&&e.component.selections;if(i&&i.id&&n.id&&i.id===n.id){if(t&&t.qSelectionInfo&&t.qSelectionInfo.qInSelections&&!i.isModal()){const{targets:t}=e.generator.qae.data,n=t[0].propertyPath;i.goModal(n)}t.qSelectionInfo&&t.qSelectionInfo.qInSelections||i.isModal()&&i.noModal()}})({sn:w.sn,layout:L,model:t})})(w.sn);const e=u.getSupportedVersion(L.visualization,L.version);return(async(e,n)=>{S({type:"LOADING"});const i=await(async({dispatch:e,types:t,visualization:n,version:i,model:o,app:r,selections:s,nebbie:a,focusHandler:l,emitter:c})=>{try{const e=await(async({types:e,name:t,version:n})=>await e.get({name:t,version:n}).supernova())({types:t,name:n,version:i});return e.create({model:o,app:r,selections:s,nebbie:a,focusHandler:l,emitter:c})}catch(t){e(i?{type:"ERROR",error:{title:t.message}}:{type:"ERROR",error:{title:`Could not find a version of '${n}' that supports current object version. Did you forget to register ${n}?`}})}})({dispatch:S,types:u,visualization:e,version:n,model:t,app:d,selections:B,nebbie:h,focusHandler:Z.current,emitter:l});i&&(S({type:"LOADED",sn:i,visualization:e}),s())})(L.visualization,e),()=>{}}),[u,w.sn,t,B,L,I,m]),(0,n.useEffect)((()=>{if(!k)return;const e=setTimeout((()=>S({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[k]),(0,n.useImperativeHandle)(c,(()=>({getQae:()=>w.sn.generator.qae,toggleFocus(e){"function"==typeof w.sn.component.focus&&(e?w.sn.component.focus():w.sn.component.blur())},setSnOptions:A,setSnPlugins:P,async takeSnapshot(){const{width:e,height:t}=C;let n=JSON.parse(JSON.stringify(L));return"function"==typeof w.sn.component.setSnapshotData&&(n=await w.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:p.language(),theme:_.name,appLayout:I,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof e.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const t=await this.takeSnapshot();return e.config.snapshot.capture(t)}})),[w.sn,T,C,L,_.name,I]);let Q=null;return w.loading&&!w.longRunningQuery?Q=n.createElement(eC,null):w.error?Q=n.createElement(Lb,w.error):w.loaded&&(Q=n.createElement(Kb,{key:L.visualization,sn:w.sn,halo:e,snOptions:q,snPlugins:M,layout:L,appLayout:I})),n.createElement(Hu,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:H||"unset",backgroundImage:U&&U.url?`url(${U.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:U&&U.size,backgroundPosition:U&&U.pos},elevation:0,square:!0,className:"njs-cell",ref:b,id:F,onMouseEnter:()=>{z.current.leave&&clearTimeout(z.current.leave),z.enter||(z.current.enter=setTimeout((()=>{V(!0),z.current.enter=null}),250))},onMouseLeave:()=>{z.current.enter&&clearTimeout(z.current.enter),z.current.leave||(z.current.leave=setTimeout((()=>{V(!1),z.current.leave=null}),750))}},n.createElement(Ar,{container:!0,direction:"column",gap:0,style:{position:"relative",width:"100%",height:"100%",...v?{}:{padding:_.spacing(1)},...w.longRunningQuery?{opacity:"0.3"}:{}}},y&&L&&w.sn&&n.createElement(zb,{layout:L,sn:w.sn,anchorEl:y,hovering:W,focusHandler:Z.current,titleStyles:K}," "),n.createElement(Ar,{tabIndex:f?0:-1,onKeyDown:f?t=>{["Enter"," ","Spacebar"].includes(t.key)&&e.root.toggleFocusOfCells(a)}:null,item:!0,xs:!0,style:{height:"100%"},ref:R},Q),n.createElement(Ub,{layout:L,titleStyles:K})),w.longRunningQuery&&n.createElement(Pb,{canCancel:E,canRetry:N,api:D}))}));function sC(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function aC(e="/",t,n){const i=[];return Object.keys(t).forEach((o=>{const r=t[o];var s,a;"object"!=typeof n[o]||"object"!=typeof r||Array.isArray(r)?(s=r,a=n[o],(sC(s)&&sC(a)?JSON.stringify(s)===JSON.stringify(a):!Array.isArray(s)&&!Array.isArray(a)&&s===a)||i.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])})):i.push(...aC(`${e}${o}/`,t[o],n[o]))})),i}function lC(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 "${e.info.name}" has no "fn" function`)}))}const cC=()=>{};async function dC(e,t,i,o,r=(async()=>{})){const s=function({model:e,halo:t,initialError:i,onDestroy:o=(async()=>{})}={}){let r=cC,s=null,a=null,l=null;const c=new Promise((e=>{l=e}));let d={},u=[];const h=new(pc()),g={id:e.id,model:e,async destroy(){await o(),r(),r=cC},async convertTo(n,i=!0){const o=await mb({halo:t,model:e,cellRef:s,newType:n});return i&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},addListener(e,t){h.addListener(e,t)},removeListener(e,t){h.removeListener(e,t)},__DO_NOT_USE__:{mount(o){if(a)throw new Error("Already mounted");return a=o,[r,s]=function({halo:e,element:t,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,emitter:a,initialError:l}){const{root:c}=e,d=n.createRef(),u=g_(),h=Xr.createPortal(n.createElement(rC,{ref:d,halo:e,model:i,currentId:u,initialSnOptions:o,initialSnPlugins:r,initialError:l,onMount:s,emitter:a}),t,u),g=()=>{c.remove(h),i.removeListener("closed",g)};return i.on("closed",g),c.add(h),c.addCell(u,d),[g,d]}({halo:t,element:o,model:e,initialSnOptions:d,initialSnPlugins:u,initialError:i,onMount:l,emitter:h}),c},async applyProperties(t){const n=aC("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{a?(async()=>{await c,s.current.setSnOptions({...d,...e})})():d={...d,...e}})(e)},plugins(e){(async e=>{lC(e),a?(async()=>{await c,s.current.setSnPlugins(e)})():u=e})(e)},exportImage:()=>s.current.exportImage(),takeSnapshot:()=>s.current.takeSnapshot(),getModel:()=>e}};return g}({model:e,halo:i,initialError:o,onDestroy:r});return t.options&&s.__DO_NOT_USE__.options(t.options),t.plugins&&s.__DO_NOT_USE__.plugins(t.plugins),t.element&&await s.__DO_NOT_USE__.mount(t.element),s}async function uC({type:e,version:t,fields:n,properties:i,extendProperties:o},r,s){let a={};const l=[];try{const s=r.types.get({name:e,version:t});a=await s.initialProperties(i,o);const c=await s.supernova();n&&await nb({sn:c,properties:a,fields:n,children:l},r),i&&c&&c.qae.properties.onChange&&c.qae.properties.onChange.call({},a)}catch(t){a=s?null:{qInfo:{qType:e},visualization:e}}if(!s){const e=await r.app.createObject(a);return l.length>0&&await e.setFullPropertyTree({qProperty:a,qChildren:l}),Bd.set(e.id,e),e}return a}const hC=function({model:e,halo:t,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s}){const{root:a}=t,[l]=Ud(e),{theme:c}=(0,n.useContext)(hd),[d,u]=(0,n.useState)([]),[h,g]=(0,n.useState)(void 0),[p,m]=(0,n.useState)(void 0),[f,v]=(0,n.useState)("");(0,n.useEffect)((()=>{if(l){const e=JSON.stringify(l.cells);if(e===f)return;v(e);const i=async()=>{d.forEach((e=>{a.removeCell(e.currentId)}));const e=l.cells,i=await Promise.all(e.map((async e=>{let i;const o=new Promise((e=>{i=e})),r=d.find((t=>t.id===e.name));if(r)return r.bounds=e.bounds,delete r.mountedPromise,r;const s=await async function({id:e,options:t,plugins:n,element:i},o){const r=`${e}`;let s=Od.get(r);s||(s=o.app.getObject(e),Od.set(r,s));const a=await s;return Bd.set(r,a),dC(a,{options:t,plugins:n,element:i},o)}({id:e.name},t);return{model:s.model,id:e.name,bounds:e.bounds,cellRef:n.createRef(),currentId:g_(),mounted:i,mountedPromise:o}})));i.forEach((e=>a.addCell(e.currentId,e.cellRef))),u(i)};i()}}),[l]);const _=(0,n.useMemo)((()=>d?d.map((e=>function(e,t,i,o,r,s){const{x:a,y:l,width:c,height:d}=e.bounds;return n.createElement("div",{style:{left:`${a}%`,top:`${l}%`,width:`${c}%`,height:`${d}%`,position:"absolute"}},n.createElement(rC,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:i,initialSnPlugins:o,initialError:r,onMount:s}))}(e,t,i,o,r,e.mounted))):[]),[d]);(0,n.useEffect)((()=>{const e=l?.components?l.components.find((e=>"general"===e.key)):null;g(Yb(e,t.public.theme)),m(Qb(e,t.app))}),[l,t.public.theme,t.app,c]);const b=!l||Number.isNaN(l.height)?"100%":`${Number(l.height)}%`,C=d.map((e=>e.mountedPromise));return C.filter((e=>!!e)).length&&Promise.all(C).then((()=>{s()})),n.createElement("div",{className:"njs-sheet",style:{width:"100%",height:b,position:"relative",backgroundColor:h,backgroundImage:p&&p.url?`url(${p.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:p&&p.size,backgroundPosition:p&&p.pos}},_)},gC=()=>{};async function pC({id:e,options:t,plugins:i,element:o},r){const s=`${e}`;let a=Od.get(s);a||(a=r.app.getObject(e),Od.set(s,a));const l=await a;return Bd.set(s,l),"sheet"===l.genericType?async function(e,t,i,o,r=(async()=>{})){const s=function({model:e,halo:t,initialError:i,onDestroy:o=(async()=>{})}={}){let r=gC,s=null,a=null,l=null;const c=new Promise((e=>{l=e}));let d={},u=[];const h={id:e.id,model:e,async destroy(){await o(),r(),r=gC},__DO_NOT_USE__:{mount(o){if(a)throw new Error("Already mounted");return a=o,[r,s]=function({halo:e,element:t,model:i,initialSnOptions:o,initialSnPlugins:r,onMount:s,initialError:a}){const{root:l}=e,c=n.createRef(),d=Xr.createPortal(n.createElement(hC,{ref:c,halo:e,model:i,initialSnOptions:o,initialSnPlugins:r,initialError:a,onMount:s}),t,i.id),u=()=>{l.remove(d),i.removeListener("closed",u)};return i.on("closed",u),l.add(d),[u,c]}({halo:t,element:o,model:e,initialSnOptions:d,initialSnPlugins:u,initialError:i,onMount:l}),c},async applyProperties(t){const n=aC("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{a?(async()=>{await c,s.current.setSnOptions({...d,...e})})():d={...d,...e}})(e)},plugins(e){(async e=>{lC(e),a?(async()=>{await c,s.current.setSnPlugins(e)})():u=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return h}({model:e,halo:i,initialError:void 0,onDestroy:r});return t.options&&s.__DO_NOT_USE__.options(t.options),t.plugins&&s.__DO_NOT_USE__.plugins(t.plugins),t.element&&await s.__DO_NOT_USE__.mount(t.element),s}(l,{options:t,plugins:i,element:o},r):dC(l,{options:t,plugins:i,element:o},r)}function mC(e={}){return{isEnabled:t=>!0===e[t]}}const fC=Qc().bind(null,!0),vC={},{isArray:_C}=Array;function bC(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function CC(e){return void 0===e}function yC(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function wC(e,t){const n=t.substring(1).split("/").slice(0,-1);let i;return n.forEach(((t,o)=>{if(o===n.length)return;i=+t;const r=isNaN(i)?{}:[];e[i||t]=CC(e[i||t])?r:e[t],e=e[i||t]})),e}function SC(e,t){let n=!0;if(bC(e)&&bC(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((i=>{SC(e[i],t[i])||(n=!1)})),n);if(_C(e)&&_C(t)){if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n+=1)if(!SC(e[n],t[n]))return!1;return!0}return e===t}vC.generate=function(e,t,n){n=n||"";let i=[];return Object.keys(t).forEach((o=>{const r=function(e){return e?fC({},{val:e}).val:e}(t[o]),s=e[o],a=`${n}/${o}`;SC(r,s)||yC(t,o)||(CC(s)?i.push({op:"add",path:a,value:r}):bC(r)&&bC(s)?i=i.concat(vC.generate(s,r,a)):_C(r)&&_C(s)?i=i.concat(function(e,t,n){let i=[];const o=e.slice();let r=-1;function s(e,t,n){if(e[n]&&CC(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,i=e.length;n<i;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(SC(t,o))return i;if(!CC(t[0])&&CC(t[0].qInfo))return i.push({op:"replace",path:n,value:t}),i;for(let e=o.length-1;e>=0;e-=1)r=s(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===r?(i.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):i=i.concat(vC.generate(o[e],t[r],`${n}/${e}`));for(let e=0,a=t.length;e<a;e+=1)r=s(o,t[e].qInfo&&t[e].qInfo.qId),-1===r?(i.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):r!==e&&(i.push({op:"move",path:`${n}/${e}`,from:`${n}/${r}`}),o.splice(e,0,o.splice(r,1)[0]));return i}(s,r,a)):i.push({op:"replace",path:`${n}/${o}`,value:r}))})),Object.keys(e).forEach((o=>{CC(t[o])&&!yC(e,o)&&i.push({op:"remove",path:`${n}/${o}`})})),i},vC.apply=function(e,t){t.forEach((t=>{let n=wC(e,t.path),i=t.path.split("/").splice(-1)[0],o=i&&isNaN(+i)?n[i]:n[+i]||n;const r=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(_C(n))"-"===i&&(i=n.length),n.splice(+i,"add"===t.op?0:1,t.value);else if(_C(o)&&_C(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(bC(o)&&bC(t.value))s=o,Object.keys(s).forEach((e=>{Object.getOwnPropertyDescriptor(s,e).configurable&&!yC(s,e)&&delete s[e]})),fC(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[i]=t.value}else if("move"===t.op){const o=wC(e,t.from);_C(n)?n.splice(+i,0,o.splice(+r,1)[0]):(n[i]=o[r],delete o[r])}else"remove"===t.op&&(_C(n)?n.splice(+i,1):delete n[i]);var s}))},vC.clone=function(e){return fC({},e)},vC.createPatch=function(e,t,n){const i={op:e.toLowerCase(),path:n};return"move"===i.op?i.from=t:void 0!==t&&(i.value=t),i},vC.updateObject=function(e,t){Object.keys(e).length?vC.apply(e,vC.generate(e,t)):fC(e,t)};const xC=vC,LC=e=>t=>{const n=(i={...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(pc().prototype).forEach((e=>{i[e]=pc().prototype[e]})),pc().init(i),i);var i;return n};let kC,EC;function NC(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 DC(e,{explicitResize:t=!1}={}){e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null}}}function IC(e){TC(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 RC(e){if(e.__hooks.obsolete)return Promise.resolve();EC=-1,kC=e;let t=-1;kC.__hooks.initiated&&(t=kC.__hooks.list.length);try{kC.fn.call(null)}catch(e){console.error(e)}kC.__hooks.initiated=!0,t>-1&&t!==kC.__hooks.list.length&&console.error("Detected a change in the order of hooks called.");const n=kC.__hooks;return MC(kC),EC=void 0,kC=void 0,n.chain.promise||(n.chain.promise=new Promise((e=>{n.chain.resolve=e}))),function(e){TC(e.pendingLayoutEffects)}(n),function(e){e.macro||(e.macro=requestAnimationFrame((()=>{!function(e){TC(e.pendingEffects),e.macro=null,function(e){e.pendingPromises.length||e.micro||e.macro||(e.chain.promise=null,e.chain.resolve(!e.waitForData))}(e)}(e)})))}(n),n.chain.promise}function TC(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 OC(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 qC(e,t,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function AC(e){return e.__hooks.imperativeHandle}function MC(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function PC(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,MC(e))}function FC(e){if(void 0===kC)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=kC.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function BC(e){return FC(++EC),kC.context[e]}function WC(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function VC(e){return{__hooked:!0,fn:e,initiate:DC,run:RC,teardown:IC,runSnaps:OC,runMenu:qC,focus:vy,blur:_y,observeActions:PC,getImperativeHandle:AC,updateRectOnNextRun:WC}}function zC(e){const t=FC(++EC);if(!t.value){t.component=kC;const n=e=>{if(t.component.__hooks.obsolete)throw new Error("Calling setState on an unmounted component is a no-op and indicates a memory leak in your component.");const n="function"==typeof e?e(t.value[0]):e;var i;n!==t.value[0]&&(t.value[0]=n,(i=t.component).__hooks.micro||(i.__hooks.micro=setTimeout((()=>{i.__hooks.micro=null,RC(i)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function HC(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=FC(++EC);NC(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===kC.__hooks.pendingEffects.indexOf(n)&&kC.__hooks.pendingEffects.push(n))}function jC(e,t){if(void 0!==t&&!Array.isArray(t))throw new Error("Invalid dependencies. Second argument must be an array.");const n=FC(++EC);NC(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],kC.__hooks.pendingLayoutEffects.push(n))}function UC(e,t){t||console.warn("useMemo called without dependencies.");const n=FC(++EC);return NC(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function $C(e,t){const[n,i]=zC((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=FC(++EC);return o.component||(o.component=kC),jC((()=>{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(),i({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),i({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[n.resolved,n.rejected]}function KC(){return BC("element")}function GC(){const e=KC(),t=kC.__hooks.resizer,[n,i]=zC((()=>{const{left:t,top:n,width:i,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:i,height:o}}));return t.current=n,-1===t.setters.indexOf(i)&&t.setters.push(i),t.update&&t.resize&&(t.update=!1,t.resize()),jC((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:i,width:o,height:r}=e.getBoundingClientRect(),s=t.current;s.width===o&&s.height===r&&s.left===n&&s.top===i||t.setters.forEach((e=>e({left:n,top:i,width:o,height:r})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let i=new ResizeObserver(n);return i.observe(e),()=>{i.unobserve(e),i.disconnect(e),i=null,t.resize=void 0}}}),[e]),n}function ZC(){return BC("layout")}function QC(){const e=BC("layout"),[t]=zC({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function YC(){return BC("appLayout")}function XC(){const e=BC("model");return e&&e.session?e:void 0}function JC(){const e=BC("app");return e&&e.session?e:void 0}function ey(){const e=BC("global");return e&&e.session?e:void 0}function ty(){return BC("selections")}function ny(){return BC("theme")}function iy(){return BC("nebbie")}function oy(){return BC("translator")}function ry(){return BC("deviceType")}function sy(){return BC("plugins")}function ay(e,t){const[n]=zC({action(){n._config.action.call(null)}});return n.component||(n.component=kC,kC.__hooks.actions.list.push(n)),UC((()=>{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 ly(){return console.warn("useContraints has been deprecated, please change to useInteractions instead. Note that interactions uses inverted values compared to contraints."),BC("constraints")}function cy(){return BC("interactions")}function dy(){return BC("options")}function uy(e,t){const n=FC(++EC);if(!n.imperative){if(kC.__hooks.imperativeHandle)throw new Error("useImperativeHandle already used.");n.imperative=!0}if(NC(n.value?n.value[0]:void 0,t)){const i=e();n.value=[t,i],kC.__hooks.imperativeHandle=i}}function hy(e){const t=FC(++EC);t.value||(t.value=1,kC.__hooks.snaps.push(t)),t.fn=e}function gy(e){const t=FC(++EC);t.value||(t.value=1,kC.__hooks.menus.push(t)),t.fn=e}function py(){FC(++EC);const e=kC.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function my(){return BC("emitter")}function fy(){const e=BC("keyboardNavigation"),t=BC("focusHandler");if(!kC.__hooks.accessibility.exitFunction){const e=function(e=!1){const n=this.__hooks.accessibility;n.enabled&&n.active&&(_y(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(kC);kC.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),vy(this))}.bind(kC);kC.__hooks.accessibility.focusFunction=n;const i=function(e=!1){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(kC);kC.__hooks.accessibility.focusSelectionFunction=i}const n=kC.__hooks.accessibility.focusFunction,i=kC.__hooks.accessibility.exitFunction,o=kC.__hooks.accessibility.focusSelectionFunction,[r,s]=zC({active:!1,enabled:e,blur:i,focus:n,focusSelection:o});return kC.__hooks.accessibility.setter=s,kC.__hooks.accessibility.enabled=e,HC((()=>s({active:!1,enabled:e,blur:i,focus:n,focusSelection:o})),[e]),r}function vy(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 _y(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 by={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},Cy=Object.keys(by),yy=e=>(Object.keys(pc().prototype).forEach((t=>{e[t]=pc().prototype[t]})),pc().init(e),e);function wy(e,t,n){"function"==typeof e.component&&(e.component=VC(e.component));const[i,o]=e.component&&e.component.__hooked?function(e,t,n){e.component.run!==RC&&console.warn("Detected multiple supernova modules, this might cause problems.");const i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const r={},s=["appLayout","constraints","interactions"],a={},l={};t.model&&t.model.session||(a.select=!0,a.edit=!0,l.select=!1,l.edit=!1);const c={context:{model:t.model,app:t.app,global:i,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:a,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 i=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(i=!0)})),i&&(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)}s.forEach((e=>{const i=t.context;if(i&&Object.prototype.hasOwnProperty.call(i,e)){let t=JSON.stringify(i[e]);"constraints"===e&&(t=JSON.stringify({...i[e],...a})),"interactions"===e&&(t=JSON.stringify({...i[e],...l})),t!==r[e]&&(n=!0,r[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==r.themeName&&(n=!0,r.themeName=this.context.theme.name()),this.context.translator.language()!==r.language&&(n=!0,r.language=c.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n){return e.component.runMenu(this,t,n)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return s.forEach((e=>{r[e]=JSON.stringify(c.context[e])})),r.themeName=c.context.theme?c.context.theme.name():void 0,r.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):function(e,t){console.warn("Obsolete API - time to get hooked!");const n={...by};yy(n);const i={emit(...e){n.emit(...e)}};Object.keys(e.component||{}).forEach((t=>{-1!==Cy.indexOf(t)?n[t]=e.component[t].bind(i):i[t]=e.component[t]}));const o=function({sn:e,component:t}){const n={},i=[],o=LC(t);return((e.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=o(e);n[e.key]=t,i.push(t)})),(e.definition.actions||[]).forEach((e=>{const t=o(e);n[e.key]=t})),{actions:n,selectionToolbarItems:i,destroy(){i.length=0}}}({sn:e,component:i}),r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(i,{model:t.model,app:t.app,global:r,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}(e,t),r=[];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(...n){return e.qae.properties.onChange.call({model:t.model},...n),t.model.__snInterceptor.setProperties.call(this,...n)},t.model.applyPatches=function(n,i){const o=i?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const r=xC.clone(o),s=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));xC.apply(o,s),e.qae.properties.onChange.call({model:t.model},o);const a=xC.generate(r,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,a,i)}))},t.model.__snInterceptor.teardown=()=>{t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor},r.push(t.model.__snInterceptor.teardown)),{generator:e,component:i,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){r.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const Sy=()=>{};function xy(e,t){return void 0===e?()=>t:()=>e}function Ly(e){const t=e||{};return{min:"function"==typeof t.min?t.min:xy(t.min,0),max:"function"==typeof t.max?t.max:xy(t.max,1e3),added:t.added||t.add||Sy,description:t.description||Sy,moved:t.moved||t.move||Sy,removed:t.removed||t.remove||Sy,replaced:t.replaced||t.replace||Sy,isDefined:()=>!!e}}const ky=(e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o};function Ey(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 ${e} at ${t}. Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef`)}return{propertyPath:t,layoutPath:n,resolveLayout:e=>ky(e,n,{}),dimensions:Ly(e.dimensions),measures:Ly(e.measures)}}function Ny(e={}){let t,n=e.properties||{};return e.properties&&(e.properties.initial||e.properties.onChange)&&(n=e.properties.initial,t=e.properties.onChange),{properties:{initial:n,onChange:t},data:{targets:((e.data||{}).targets||[]).map(Ey)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function Dy(e,t){let n;n="function"==typeof e?e(t):e;const i={qae:Ny(n.qae),component:n.component||{},create:e=>wy(i,e,t),definition:{}};return Object.keys(n).forEach((e=>{i[e]||(i.definition[e]=n[e])})),i}var Iy=s(82103);const Ry={};function Ty(e,t){const n={};let i=null;return{get:e=>n[e],register:(o,r)=>{if(n[o])throw new Error(`Supernova '${e}@${o}' already registered.`);n[o]=function(e,t,n={}){let i,o;const{meta:r}=n,s={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&r&&r.deps&&r.deps.properties)||(0,Iy.satisfies)(e,r.deps.properties),supernova:()=>async function(e,t,{config:n},i){const o=`${e}__${t}`;if(!Ry[o]){const r=`${e}${t&&` v${t}`||""}`;if(i&&"function"!=typeof i)throw new Error(`load of visualization '${r}' is not a fuction, wrap load promise in function`);const s=(i||n.load)({name:e,version:t}),a=Promise.resolve(s);Ry[o]=a.then((e=>{if(!e)throw new Error(`load() of visualization '${r}' resolved to an invalid object`);return e})).catch((e=>{throw console.warn(e),new Error(`Failed to load visualization: '${r}'`)}))}return Ry[o]}(s.name,s.version,t,n.load).then((e=>(i=i||Dy(e,t.public.galaxy),o=JSON.stringify(i.qae.properties.initial),i))),initialProperties(e,t=!1){return this.supernova().then((()=>{const n={qInfo:{qType:s.name},visualization:s.name,version:s.version,showTitles:!0,...JSON.parse(o)};return t?(Qc()(!0,n,e),n):{...n,...e}}))}};return s}({name:e,version:o},t,r),i=null},getMatchingVersionFromProperties:e=>{var t;i||(t=Object.keys(n),i=[...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=i.length-1;t>=0;t--)if(n[i[t]].supportsPropertiesVersion(e))return i[t];return null},versions:n}}const Oy={context:({},{theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1}),load:()=>{},types:[],themes:[],anything:{},snapshot:{get:async e=>{const t=await fetch(`/njs/snapshot/${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()))}},qy=(e={},t={})=>({...e,...t}),Ay=(e=[],t=[])=>[...e,...t].filter(((e,t,n)=>n.indexOf(e)===t)),My=function e(t={}){const o=function(e){const t=uc({initial:e});return Object.keys(hc).forEach((e=>{t.translator.add(hc[e])})),{translator:t.translator}}(t.context.language);function r(e,s){if(s)return r.createConfiguration(s)(e);let a={...t.context,translator:o.translator};const[l]=function({app:e,context:t}){let o;const r=new Promise((e=>{o=e})),s=n.createRef(),a=document.createElement("div");a.style.display="none",a.setAttribute("data-nebulajs-version","4.0.2"),a.setAttribute("data-app-id",e.id),document.body.appendChild(a),t&&xd(t),i.createRoot(a).render(n.createElement(Ld,{ref:s,app:e,initialContext:t,renderCallback:o}));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 r,c.push(e),s.current.setComps(c)})()},remove(e){(async()=>{await r;const t=c.indexOf(e);-1!==t&&c.splice(t,1),s.current.setComps(c)})()},setMuiThemeName(e){(async()=>{await r,s.current.setMuiThemeName(e)})()},context(e){(async()=>{await r,e&&xd(e),s.current.setContext(e)})()},getAppSelections:async()=>(await r,s.current.getAppSelections())},s,r]}({app:e,context:a}),c=function({themes:e=[],loadTheme:t,root:n}={}){const i=ud();return{setTheme:async o=>{let r=e.filter((e=>e.id===o))[0],s="dark"===o?"dark":"light";if(!r&&t&&(r={load:t}),r&&r.load)try{const e=await Promise.race([r.load(o),(a=5e3,l={__timedOut:!0},new Promise((e=>{setTimeout((()=>e(l)),a)})))]);e.__timedOut?console.warn(`Timeout when loading theme '${o}'`):(s="dark"===e.type?"dark":"light",i.internalAPI.setTheme(e,o),n.setMuiThemeName(s))}catch(e){console.error(e)}else i.internalAPI.setTheme({type:s},o),n.setMuiThemeName(s);var a,l},externalAPI:i.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:l});a.themeApi=c.externalAPI;const d={galaxy:{translator:o.translator,flags:mC(t.flags),deviceType:(g=t.context.deviceType,"auto"!==g?g: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"),anything:t.anything},theme:c.externalAPI,translator:o.translator,nebbie:null},u={app:e,root:l,config:t,public:d,context:a,types:null},h=function({halo:e,parent:t}){const n={},i=t||{get:()=>{}};return{register:(t,i)=>{n[t.name]||(n[t.name]=Ty(t.name,e)),n[t.name].register(t.version,i)},getSupportedVersion:(e,t)=>n[e]?n[e].getMatchingVersionFromProperties(t):null,get(e){const{name:t}=e;let{version:o}=e;if(n[t]){if(!n[t].versions[o]){const e=Object.keys(n[t].versions)[0];console.warn(`Version ${o} of ${t} is not registered. Falling back to version ${e}`),o=e}}else console.warn(`Visualization ${t} is not registered. Adding it now.`),this.register({name:t,version:o});return n[t].get(o)||i.get(e)},getList:()=>Object.keys(n).map((e=>({name:e,versions:Object.keys(n[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{n[e]&&(n[e]=void 0),function(e){Object.keys(Ry).forEach((t=>{t.split("__")[0]===e&&(Ry[t]=void 0)}))}(e)}}}({halo:u});var g;t.types.forEach((e=>h.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let p=c.setTheme(t.context.theme),m=null,f=null;const v={render:async e=>(await p,e.id?pC(e,u):async function({type:e,version:t,fields:n,properties:i,options:o,plugins:r,element:s,extendProperties:a},l){let c={};const d=[];let u;try{const o=l.types.get({name:e,version:t});c=await o.initialProperties(i,a);const r=await o.supernova();n&&await nb({sn:r,properties:c,fields:n,children:d},l),i&&r&&r.qae.properties.onChange&&r.qae.properties.onChange.call({},c)}catch(t){u=t,c={qInfo:{qType:e},visualization:e}}const h=await l.app.createSessionObject(c);d.length>0&&await h.setFullPropertyTree({qProperty:c,qChildren:d}),Bd.set(h.id,h);const g=(e=>{const t=Pd({type:"SET",value:e});return()=>{t(),Bd.clear(e.id)}})(h);return dC(h,{options:o,plugins:r,element:s},l,u,(async()=>{await l.app.destroySessionObject(h.id),g()}))}(e,u)),create:async e=>uC(e,u,!1),generateProperties:async e=>uC(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:o.translator},t.theme&&(p=c.setTheme(t.theme),await p),t.language&&u.public.translator.language(t.language),l.context(a))},selections:async()=>(m||(m={mount(t){f?console.error("Already mounted"):(f=function({element:e,app:t}){return Xr.createPortal(n.createElement(p_,{app:t}),e,g_())}({element:t,app:e}),l.add(f))},unmount(){f&&(l.remove(f),f=null)}}),m),field:async t=>{let i;const o="string"==typeof t?t:t.qLibraryId;if(t.qId)i=t.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const r={fieldName:o,async mount(s,a={}){if(!s)throw new Error(`Element for ${o||i} not provided`);if(this._instance)throw new Error(`Field or object ${o||i} already mounted`);const c=()=>r.emit("selectionActivated"),d=()=>r.emit("selectionDeactivated");return new Promise((o=>{this._instance=function({element:e,app:t,fieldIdentifier:i,qId:o,stateName:r="$",options:s={},renderedCallback:a}){return Xr.createPortal(n.createElement(H_,{app:t,element:e,fieldIdentifier:i,qId:o,stateName:r,options:s,renderedCallback:a}),e,g_())}({element:s,app:e,fieldIdentifier:t,qId:i,options:z_({onSelectionActivated:c,onSelectionDeactivated:d,...a}),stateName:a.stateName||"$",renderedCallback:o}),l.add(this._instance)}))},unmount(){this._instance&&(l.remove(this._instance),this._instance=null)}};return Ov(r),r},getRegisteredTypes:h.getList,__DO_NOT_USE__:{types:h,popover(t,i,o){v._popoverInstance&&(l.remove(v._popoverInstance),v._popoverInstance=null);const r=((e={})=>{const t={...j_};return Qc()(!0,t,e),t})({onPopoverClose:()=>v.emit("fieldPopoverClose"),...o});v._popoverInstance=n.createElement(U_,{element:t,key:g_(),app:e,fieldIdentifier:i,options:r,stateName:o.stateName||"$"}),l.add(v._popoverInstance)}}};return u.public.nebbie=v,u.types=h,Ov(v),v}return r.createConfiguration=n=>e(((e,t)=>({context:qy(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:{...t.snapshot||e.snapshot},types:Ay(e.types,t.types),themes:Ay(e.themes,t.themes),flags:qy(e.flags,t.flags),anything:qy(e.anything,t.anything)}))(t,n)),r.config=t,r}(Oy),Py=function(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}},Fy=globalThis.crypto||{getRandomValues:()=>123456},By=function(){return e=>{const t=Qc()({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^Fy.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}`;const n=t._mock;let i=t;return n&&(delete t._mock,i=Qc()({},t,n)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(i),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId,...t})}},Wy=(e,{args:t=[],defaultValue:n}={})=>"function"==typeof e?e(...t):void 0!==e?e:n,Vy=(e,{defaultValue:t,async:n=!0,delay:i=0}={})=>(...o)=>{const r=Wy(e,{defaultValue:t,args:o});return n?new Promise((e=>{setTimeout((()=>e(r)),i)})):r},zy=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function Hy(e){return!zy.includes(e)}function jy(e){const t=Wy(e.getLayout);return t.qInfo&&t.qInfo.qId}function Uy(e,t){let n=jy(e);const{delay:i}=t,{id:o,session:r,...s}=e;if(o&&n&&o!==n)throw new Error(`Generic object has multiple IDs, qInfo.qId: ${n}, id: ${o}`);return n=n||o||"object - "+ +Date.now(),{[n]:{id:n,session:Wy(r,{defaultValue:!0}),on:()=>{},once:()=>{},...Object.entries(s).reduce(((e,[t,n])=>({...e,[t]:Vy(n,{async:Hy(t),delay:i})})),{}),genericType:e.type}}}function $y(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!jy(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}const Ky=function(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach($y);const n=function(e,t){return e.reduce(((e,n)=>({...e,...Uy(n,t)})),{})}(e,t);return async e=>Promise.resolve(n[e])},Gy=function(){return()=>Promise.resolve({id:"app-layout"})},Zy={fromGenericObjects:(e,t={})=>function(e,t={}){const n=new Py,i=new By,o=new Ky(e,t),r=new Gy,s={id:"app - "+ +Date.now(),session:n,createSessionObject:i,getObject:o,getAppLayout:r};return Promise.resolve(s)}(e,t)},Qy=Zy,Yy={generator:Dy,hook:VC,theme:ud,locale:uc};var Xy=s(32981),Jy=s(16254),ew=s(26613),tw=s(82665),nw=s(70200);function iw(e){return(0,kt.Z)("MuiToolbar",e)}(0,Lt.Z)("MuiToolbar",["root","gutters","regular","dense"]);const ow=["className","component","disableGutters","variant"],rw=(0,xt.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,_t.Z)({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),sw=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:r=!1,variant:s="regular"}=n,a=(0,vt.Z)(n,ow),l=(0,_t.Z)({},n,{component:o,disableGutters:r,variant:s}),c=(e=>{const{classes:t,disableGutters:n,variant:i}=e,o={root:["root",!n&&"gutters",i]};return(0,Ct.Z)(o,iw,t)})(l);return(0,Nt.jsx)(rw,(0,_t.Z)({as:o,className:(0,bt.Z)(c.root,i),ref:t,ownerState:l},a))})),aw=sw;function lw(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}function cw(e){return(0,kt.Z)("MuiToggleButtonGroup",e)}const dw=(0,Lt.Z)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical"]),uw=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],hw=(0,xt.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${dw.grouped}`]:t.grouped},{[`& .${dw.grouped}`]:t[`grouped${(0,Ut.Z)(n.orientation)}`]},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})((({ownerState:e,theme:t})=>(0,_t.Z)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${dw.grouped}`]:(0,_t.Z)({},"horizontal"===e.orientation?{"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0},[`&.${dw.selected} + .${dw.grouped}.${dw.selected}`]:{borderLeft:0,marginLeft:0}}:{"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`&.${dw.selected} + .${dw.grouped}.${dw.selected}`]:{borderTop:0,marginTop:0}})}))),gw=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiToggleButtonGroup"}),{children:o,className:r,color:s="standard",disabled:a=!1,exclusive:l=!1,fullWidth:c=!1,onChange:d,orientation:u="horizontal",size:h="medium",value:g}=i,p=(0,vt.Z)(i,uw),m=(0,_t.Z)({},i,{disabled:a,fullWidth:c,orientation:u,size:h}),f=(e=>{const{classes:t,orientation:n,fullWidth:i,disabled:o}=e,r={root:["root","vertical"===n&&"vertical",i&&"fullWidth"],grouped:["grouped",`grouped${(0,Ut.Z)(n)}`,o&&"disabled"]};return(0,Ct.Z)(r,cw,t)})(m),v=(e,t)=>{if(!d)return;const n=g&&g.indexOf(t);let i;g&&n>=0?(i=g.slice(),i.splice(n,1)):i=g?g.concat(t):[t],d(e,i)},_=(e,t)=>{d&&d(e,g===t?null:t)};return(0,Nt.jsx)(hw,(0,_t.Z)({role:"group",className:(0,bt.Z)(f.root,r),ref:t,ownerState:m},p,{children:n.Children.map(o,(e=>n.isValidElement(e)?n.cloneElement(e,{className:(0,bt.Z)(f.grouped,e.props.className),onChange:l?_:v,selected:void 0===e.props.selected?lw(e.props.value,g):e.props.selected,size:e.props.size||h,fullWidth:c,color:e.props.color||s,disabled:e.props.disabled||a}):null))}))})),pw=gw;function mw(e){return(0,kt.Z)("MuiToggleButton",e)}const fw=(0,Lt.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),vw=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],_w=(0,xt.ZP)(vr,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${(0,Ut.Z)(n.size)}`]]}})((({theme:e,ownerState:t})=>{let n,i="standard"===t.color?e.palette.text.primary:e.palette[t.color].main;return e.vars&&(i="standard"===t.color?e.vars.palette.text.primary:e.vars.palette[t.color].main,n="standard"===t.color?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),(0,_t.Z)({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${fw.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,Ro.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fw.selected}`]:{color:i,backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:(0,Ro.Fq)(i,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${n} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,Ro.Fq)(i,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:(0,Ro.Fq)(i,e.palette.action.selectedOpacity)}}}},"small"===t.size&&{padding:7,fontSize:e.typography.pxToRem(13)},"large"===t.size&&{padding:15,fontSize:e.typography.pxToRem(15)})})),bw=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiToggleButton"}),{children:i,className:o,color:r="standard",disabled:s=!1,disableFocusRipple:a=!1,fullWidth:l=!1,onChange:c,onClick:d,selected:u,size:h="medium",value:g}=n,p=(0,vt.Z)(n,vw),m=(0,_t.Z)({},n,{color:r,disabled:s,disableFocusRipple:a,fullWidth:l,size:h}),f=(e=>{const{classes:t,fullWidth:n,selected:i,disabled:o,size:r,color:s}=e,a={root:["root",i&&"selected",o&&"disabled",n&&"fullWidth",`size${(0,Ut.Z)(r)}`,s]};return(0,Ct.Z)(a,mw,t)})(m);return(0,Nt.jsx)(_w,(0,_t.Z)({className:(0,bt.Z)(f.root,o),disabled:s,focusRipple:!a,ref:t,onClick:e=>{d&&(d(e,g),e.defaultPrevented)||c&&c(e,g)},onChange:c,value:g,ownerState:m,"aria-pressed":u},p,{children:i}))})),Cw=bw;function yw(e){return(0,kt.Z)("MuiMenu",e)}(0,Lt.Z)("MuiMenu",["root","paper","list"]);const ww=["onEntering"],Sw=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],xw={vertical:"top",horizontal:"right"},Lw={vertical:"top",horizontal:"left"},kw=(0,xt.ZP)(eh,{shouldForwardProp:e=>(0,xt.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ew=(0,xt.ZP)(Hu,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Nw=(0,xt.ZP)(av,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Dw=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:r,disableAutoFocusItem:s=!1,MenuListProps:a={},onClose:l,open:c,PaperProps:d={},PopoverClasses:u,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:p="selectedMenu"}=i,m=(0,vt.Z)(i.TransitionProps,ww),f=(0,vt.Z)(i,Sw),v=Yt(),_="rtl"===v.direction,b=(0,_t.Z)({},i,{autoFocus:o,disableAutoFocusItem:s,MenuListProps:a,onEntering:g,PaperProps:d,transitionDuration:h,TransitionProps:m,variant:p}),C=(e=>{const{classes:t}=e;return(0,Ct.Z)({root:["root"],paper:["paper"],list:["list"]},yw,t)})(b),y=o&&!s&&c,w=n.useRef(null);let S=-1;return n.Children.map(r,((e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===p&&e.props.selected||-1===S)&&(S=t))})),(0,Nt.jsx)(kw,(0,_t.Z)({onClose:l,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?xw:Lw,PaperProps:(0,_t.Z)({as:Ew},d,{classes:(0,_t.Z)({},d.classes,{root:C.paper})}),className:C.root,open:c,ref:t,transitionDuration:h,TransitionProps:(0,_t.Z)({onEntering:(e,t)=>{w.current&&w.current.adjustStyleForScrollbar(e,v),g&&g(e,t)}},m),ownerState:b},f,{classes:u,children:(0,Nt.jsx)(Nw,(0,_t.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),l&&l(e,"tabKeyDown"))},actions:w,autoFocus:o&&(-1===S||s),autoFocusItem:y,variant:p},a,{className:(0,bt.Z)(C.list,a.className),children:r}))}))})),Iw=Dw,Rw=new Map,Tw=[],Ow=Tw.map,qw=Tw.some,Aw=Tw.hasOwnProperty,Mw=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,Pw=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,Fw=/(?:\.[^/]*|\/)$/;class Bw extends Error{constructor(e){super(e)}}function Ww(e){const t=Mw.exec(e);return t&&{name:t[1],version:t[2],path:t[3]}}function Vw(e){const t=new Map,n=o(null);function i(e){if("string"!=typeof e)return e;let n=t.get(e);return n||t.set(e,n=new Promise(((t,n)=>{const i=document.createElement("script");i.onload=()=>{try{t(Tw.pop()(o(e)))}catch(e){n(new Bw("invalid module"))}i.remove()},i.onerror=()=>{n(new Bw("unable to load module")),i.remove()},i.async=!0,i.src=e,window.define=Uw,document.head.appendChild(i)}))),n}function o(t){return n=>Promise.resolve(e(n,t)).then(i)}function r(e){return arguments.length>1?Promise.all(Ow.call(arguments,n)).then(zw):n(e)}return r.alias=function(t){return Vw(((n,i)=>n in t&&(i=null,"string"!=typeof(n=t[n]))?n:e(n,i)))},r.resolve=e,r}function zw(e){const t={};for(const n of e)for(const e in n)Aw.call(n,e)&&(null==n[e]?Object.defineProperty(t,e,{get:Hw(n,e)}):t[e]=n[e]);return t}function Hw(e,t){return()=>e[t]}function jw(e){return"exports"==(e+="")||"module"===e}function Uw(e,t,n){const i=arguments.length;i<2?(n=e,t=[]):i<3&&(n=t,t="string"==typeof e?[]:e),Tw.push(qw.call(t,jw)?e=>{const i={},o={exports:i};return Promise.all(Ow.call(t,(t=>"exports"==(t+="")?i:"module"===t?o:e(t)))).then((e=>(n.apply(null,e),o.exports)))}:e=>Promise.all(Ow.call(t,e)).then((e=>"function"==typeof n?n.apply(null,e):n)))}Bw.prototype.name=Bw.name,Vw(function(e="https://cdn.jsdelivr.net/npm/",t=["unpkg","jsdelivr","browser","main"]){if(!/\/$/.test(e))throw new Error("origin lacks trailing slash");function n(t){const n=`${e}${t.name}${t.version?`@${t.version}`:""}/package.json`;let i=Rw.get(n);return i||Rw.set(n,i=fetch(n).then((e=>{if(!e.ok)throw new Bw("unable to load package.json");return e.redirected&&!Rw.has(e.url)&&Rw.set(e.url,i),e.json()}))),i}return async function(i,o){if(i.startsWith(e)&&(i=i.substring(e.length)),/^(\w+:)|\/\//i.test(i))return i;if(/^[.]{0,2}\//i.test(i))return new URL(i,null==o?location:o).href;if(!i.length||/^[\s._]/.test(i)||/\s$/.test(i))throw new Bw("illegal name");const r=Ww(i);if(!r)return`${e}${i}`;if(!r.version&&null!=o&&o.startsWith(e)){const t=await n(Ww(o.substring(e.length)));r.version=t.dependencies&&t.dependencies[r.name]||t.peerDependencies&&t.peerDependencies[r.name]}if(r.path&&!Fw.test(r.path)&&(r.path+=".js"),r.path&&r.version&&Pw.test(r.version))return`${e}${r.name}@${r.version}/${r.path}`;const s=await n(r);return`${e}${s.name}@${s.version}/${r.path||function(e){for(const n of t){let t=e[n];if("string"==typeof t)return t.startsWith("./")&&(t=t.slice(2)),Fw.test(t)?t:`${t}.js`}}(s)||"index.js"}`}}()),Uw.amd={};const $w=(t,n)=>{const i=n?e=>e:e=>`/pkg/${encodeURIComponent(e)}`;return Vw((async e=>i(e))).alias({"@nebula.js/stardust":e})(n||t)},Kw={};function Gw(e){const[t]=Fd(),n=t.get(e),[i,...o]=jd(n,"getProperties");return[i,e=>n.setProperties(e),...o]}window.onHotChange=(e,t)=>(Kw[e]||(Kw[e]=[]),Kw[e].push(t),window[e]&&t(),()=>{const n=Kw[e].indexOf(t);Kw[e].splice(n,1)});const Zw=n.createContext(),Qw=e=>({qDef:{qFieldDefs:[e]}});function Yw({dc:e,def:t,properties:n,dimensions:i}){const o=n,r={dimensions:()=>i,measures:()=>[],addDimension(n){const i="string"==typeof n?Qw(n):{...n,qDef:n.qDef||{}};return i.qDef.cId=i.qDef.cId||g_(),i.qDef.qSortCriterias=e&&e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],t.dimensions.added(i,o),i},removeDimension(e){const n=i[e];return t.dimensions.removed(n,o,e),n},maxDimensions(){const{max:e}=t.dimensions||{};return("function"==typeof e?e():e)||0},maxMeasures:()=>0,canAddDimension:()=>r.dimensions().length<r.maxDimensions(),canAddMeasure:()=>!1};return r}const Xw={qInfo:{qType:"DimensionList",qId:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{labelExpression:"/qDimension/qLabelExpression",title:"/qMetaDef/title"}}},Jw={qInfo:{qType:"MeasureList",qId:"MeasureList"},qMeasureListDef:{qType:"measure",qData:{labelExpression:"/qMeasure/qLabelExpression",title:"/qMetaDef/title"}}};function eS(e,t="dimension"){const n="dimension"===t?Xw:Jw,[i]=Wd(n,e),[o]=Ud(i);return[o&&(o.qDimensionList||o.qMeasureList).qItems||[]]}function tS(e){return(0,kt.Z)("MuiListSubheader",e)}(0,Lt.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const nS=["className","color","component","disableGutters","disableSticky","inset"],iS=(0,xt.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,Ut.Z)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,_t.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),oS=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiListSubheader"}),{className:i,color:o="default",component:r="li",disableGutters:s=!1,disableSticky:a=!1,inset:l=!1}=n,c=(0,vt.Z)(n,nS),d=(0,_t.Z)({},n,{color:o,component:r,disableGutters:s,disableSticky:a,inset:l}),u=(e=>{const{classes:t,color:n,disableGutters:i,inset:o,disableSticky:r}=e,s={root:["root","default"!==n&&`color${(0,Ut.Z)(n)}`,!i&&"gutters",o&&"inset",!r&&"sticky"]};return(0,Ct.Z)(s,tS,t)})(d);return(0,Nt.jsx)(iS,(0,_t.Z)({as:r,className:(0,bt.Z)(u.root,i),ref:t,ownerState:d},c))}));oS.muiSkipListHighlight=!0;const rS=oS;var sS=s(25138),aS=s.n(sS),lS=s(18258),cS=s.n(lS),dS=s(38866),uS=s(44526),hS=s(7833);function gS(e){return(0,kt.Z)("MuiInput",e)}const pS=(0,_t.Z)({},el,(0,Lt.Z)("MuiInput",["root","underline","input"])),mS=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],fS=(0,xt.ZP)(yl,{shouldForwardProp:e=>(0,xt.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bl(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),(0,_t.Z)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${pS.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pS.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${pS.disabled}, .${pS.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${pS.disabled}:before`]:{borderBottomStyle:"dotted"}})})),vS=(0,xt.ZP)(wl,{name:"MuiInput",slot:"Input",overridesResolver:Cl})({}),_S=n.forwardRef((function(e,t){var n,i,o,r;const s=(0,St.Z)({props:e,name:"MuiInput"}),{disableUnderline:a,components:l={},componentsProps:c,fullWidth:d=!1,inputComponent:u="input",multiline:h=!1,slotProps:g,slots:p={},type:m="text"}=s,f=(0,vt.Z)(s,mS),v=(e=>{const{classes:t,disableUnderline:n}=e,i={root:["root",!n&&"underline"],input:["input"]},o=(0,Ct.Z)(i,gS,t);return(0,_t.Z)({},t,o)})(s),_={root:{ownerState:{disableUnderline:a}}},b=(null!=g?g:c)?(0,Ai.Z)(null!=g?g:c,_):_,C=null!=(n=null!=(i=p.root)?i:l.Root)?n:fS,y=null!=(o=null!=(r=p.input)?r:l.Input)?o:vS;return(0,Nt.jsx)(Ll,(0,_t.Z)({slots:{root:C,input:y},slotProps:b,fullWidth:d,inputComponent:u,multiline:h,ref:t,type:m},f,{classes:v}))}));_S.muiName="Input";const bS=_S;function CS(e){return(0,kt.Z)("MuiFilledInput",e)}const yS=(0,_t.Z)({},el,(0,Lt.Z)("MuiFilledInput",["root","underline","input"])),wS=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],SS=(0,xt.ZP)(yl,{shouldForwardProp:e=>(0,xt.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bl(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const i="light"===e.palette.mode,o=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,_t.Z)({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${yS.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${yS.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${yS.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${yS.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${yS.disabled}, .${yS.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${yS.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,_t.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),xS=(0,xt.ZP)(wl,{name:"MuiFilledInput",slot:"Input",overridesResolver:Cl})((({theme:e,ownerState:t})=>(0,_t.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),LS=n.forwardRef((function(e,t){var n,i,o,r;const s=(0,St.Z)({props:e,name:"MuiFilledInput"}),{components:a={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:u=!1,slotProps:h,slots:g={},type:p="text"}=s,m=(0,vt.Z)(s,wS),f=(0,_t.Z)({},s,{fullWidth:c,inputComponent:d,multiline:u,type:p}),v=(e=>{const{classes:t,disableUnderline:n}=e,i={root:["root",!n&&"underline"],input:["input"]},o=(0,Ct.Z)(i,CS,t);return(0,_t.Z)({},t,o)})(s),_={root:{ownerState:f},input:{ownerState:f}},b=(null!=h?h:l)?(0,Ai.Z)(null!=h?h:l,_):_,C=null!=(n=null!=(i=g.root)?i:a.Root)?n:SS,y=null!=(o=null!=(r=g.input)?r:a.Input)?o:xS;return(0,Nt.jsx)(Ll,(0,_t.Z)({slots:{root:C,input:y},componentsProps:b,fullWidth:c,inputComponent:d,multiline:u,ref:t,type:p},m,{classes:v}))}));LS.muiName="Input";const kS=LS;function ES(e){return(0,kt.Z)("MuiFormLabel",e)}const NS=(0,Lt.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),DS=["children","className","color","component","disabled","error","filled","focused","required"],IS=(0,xt.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,_t.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,_t.Z)({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${NS.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${NS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${NS.error}`]:{color:(e.vars||e).palette.error.main}}))),RS=(0,xt.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${NS.error}`]:{color:(e.vars||e).palette.error.main}}))),TS=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiFormLabel"}),{children:i,className:o,component:r="label"}=n,s=(0,vt.Z)(n,DS),a=Xa({props:n,muiFormControl:Ya(),states:["color","required","focused","disabled","error","filled"]}),l=(0,_t.Z)({},n,{color:a.color||"primary",component:r,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,color:n,focused:i,disabled:o,error:r,filled:s,required:a}=e,l={root:["root",`color${(0,Ut.Z)(n)}`,o&&"disabled",r&&"error",s&&"filled",i&&"focused",a&&"required"],asterisk:["asterisk",r&&"error"]};return(0,Ct.Z)(l,ES,t)})(l);return(0,Nt.jsxs)(IS,(0,_t.Z)({as:r,ownerState:l,className:(0,bt.Z)(c.root,o),ref:t},s,{children:[i,a.required&&(0,Nt.jsxs)(RS,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))})),OS=TS;function qS(e){return(0,kt.Z)("MuiInputLabel",e)}(0,Lt.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const AS=["disableAnimation","margin","shrink","variant","className"],MS=(0,xt.ZP)(OS,{shouldForwardProp:e=>(0,xt.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${NS.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,_t.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,_t.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,_t.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,_t.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),PS=n.forwardRef((function(e,t){const n=(0,St.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,shrink:o,className:r}=n,s=(0,vt.Z)(n,AS),a=Ya();let l=o;void 0===l&&a&&(l=a.filled||a.focused||a.adornedStart);const c=Xa({props:n,muiFormControl:a,states:["size","variant","required"]}),d=(0,_t.Z)({},n,{disableAnimation:i,formControl:a,shrink:l,size:c.size,variant:c.variant,required:c.required}),u=(e=>{const{classes:t,formControl:n,size:i,shrink:o,disableAnimation:r,variant:s,required:a}=e,l={root:["root",n&&"formControl",!r&&"animated",o&&"shrink","small"===i&&"sizeSmall",s],asterisk:[a&&"asterisk"]},c=(0,Ct.Z)(l,qS,t);return(0,_t.Z)({},t,c)})(d);return(0,Nt.jsx)(MS,(0,_t.Z)({"data-shrink":l,ownerState:d,ref:t,className:(0,bt.Z)(u.root,r)},s,{classes:u}))})),FS=PS;function BS(e){return(0,kt.Z)("MuiFormControl",e)}(0,Lt.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const WS=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],VS=(0,xt.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,_t.Z)({},t.root,t[`margin${(0,Ut.Z)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,_t.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),zS=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiFormControl"}),{children:o,className:r,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:u=!1,hiddenLabel:h=!1,margin:g="none",required:p=!1,size:m="medium",variant:f="outlined"}=i,v=(0,vt.Z)(i,WS),_=(0,_t.Z)({},i,{color:s,component:a,disabled:l,error:c,fullWidth:u,hiddenLabel:h,margin:g,required:p,size:m,variant:f}),b=(e=>{const{classes:t,margin:n,fullWidth:i}=e,o={root:["root","none"!==n&&`margin${(0,Ut.Z)(n)}`,i&&"fullWidth"]};return(0,Ct.Z)(o,BS,t)})(_),[C,y]=n.useState((()=>{let e=!1;return o&&n.Children.forEach(o,(t=>{if(!(0,Ds.Z)(t,["Input","Select"]))return;const n=(0,Ds.Z)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[w,S]=n.useState((()=>{let e=!1;return o&&n.Children.forEach(o,(t=>{(0,Ds.Z)(t,["Input","Select"])&&(vl(t.props,!0)||vl(t.props.inputProps,!0))&&(e=!0)})),e})),[x,L]=n.useState(!1);l&&x&&L(!1);const k=void 0===d||l?x:d;let E;const N=n.useMemo((()=>({adornedStart:C,setAdornedStart:y,color:s,disabled:l,error:c,filled:w,focused:k,fullWidth:u,hiddenLabel:h,size:m,onBlur:()=>{L(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{L(!0)},registerEffect:E,required:p,variant:f})),[C,s,l,c,w,k,u,h,E,p,m,f]);return(0,Nt.jsx)(Qa.Provider,{value:N,children:(0,Nt.jsx)(VS,(0,_t.Z)({as:a,ownerState:_,className:(0,bt.Z)(b.root,r),ref:t},v,{children:o}))})})),HS=zS;function jS(e){return(0,kt.Z)("MuiFormHelperText",e)}const US=(0,Lt.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var $S;const KS=["children","className","component","disabled","error","filled","focused","margin","required","variant"],GS=(0,xt.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,Ut.Z)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,_t.Z)({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${US.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${US.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),ZS=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiFormHelperText"}),{children:i,className:o,component:r="p"}=n,s=(0,vt.Z)(n,KS),a=Xa({props:n,muiFormControl:Ya(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,_t.Z)({},n,{component:r,contained:"filled"===a.variant||"outlined"===a.variant,variant:a.variant,size:a.size,disabled:a.disabled,error:a.error,filled:a.filled,focused:a.focused,required:a.required}),c=(e=>{const{classes:t,contained:n,size:i,disabled:o,error:r,filled:s,focused:a,required:l}=e,c={root:["root",o&&"disabled",r&&"error",i&&`size${(0,Ut.Z)(i)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return(0,Ct.Z)(c,jS,t)})(l);return(0,Nt.jsx)(GS,(0,_t.Z)({as:r,ownerState:l,className:(0,bt.Z)(c.root,o),ref:t},s,{children:" "===i?$S||($S=(0,Nt.jsx)("span",{className:"notranslate",children:""})):i}))})),QS=ZS;function YS(e){return(0,kt.Z)("MuiNativeSelect",e)}const XS=(0,Lt.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),JS=["className","disabled","error","IconComponent","inputRef","variant"],ex=({ownerState:e,theme:t})=>(0,_t.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,_t.Z)({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${XS.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),tx=(0,xt.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:xt.FO,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${XS.multiple}`]:t.multiple}]}})(ex),nx=({ownerState:e,theme:t})=>(0,_t.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${XS.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),ix=(0,xt.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Ut.Z)(n.variant)}`],n.open&&t.iconOpen]}})(nx),ox=n.forwardRef((function(e,t){const{className:i,disabled:o,error:r,IconComponent:s,inputRef:a,variant:l="standard"}=e,c=(0,vt.Z)(e,JS),d=(0,_t.Z)({},e,{disabled:o,variant:l,error:r}),u=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r,error:s}=e,a={select:["select",n,i&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${(0,Ut.Z)(n)}`,r&&"iconOpen",i&&"disabled"]};return(0,Ct.Z)(a,YS,t)})(d);return(0,Nt.jsxs)(n.Fragment,{children:[(0,Nt.jsx)(tx,(0,_t.Z)({ownerState:d,className:(0,bt.Z)(u.select,i),disabled:o,ref:a||t},c)),e.multiple?null:(0,Nt.jsx)(ix,{as:s,ownerState:d,className:u.icon})]})})),rx=ox;function sx(e){return(0,kt.Z)("MuiSelect",e)}const ax=(0,Lt.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var lx;const cx=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],dx=(0,xt.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ax.select}`]:t.select},{[`&.${ax.select}`]:t[n.variant]},{[`&.${ax.error}`]:t.error},{[`&.${ax.multiple}`]:t.multiple}]}})(ex,{[`&.${ax.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ux=(0,xt.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,Ut.Z)(n.variant)}`],n.open&&t.iconOpen]}})(nx),hx=(0,xt.ZP)("input",{shouldForwardProp:e=>(0,xt.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function gx(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function px(e){return null==e||"string"==typeof e&&!e.trim()}const mx=n.forwardRef((function(e,t){const{"aria-describedby":i,"aria-label":o,autoFocus:r,autoWidth:s,children:a,className:l,defaultOpen:c,defaultValue:d,disabled:u,displayEmpty:h,error:g=!1,IconComponent:p,inputRef:m,labelId:f,MenuProps:v={},multiple:_,name:b,onBlur:C,onChange:y,onClose:w,onFocus:S,onOpen:x,open:L,readOnly:k,renderValue:E,SelectDisplayProps:N={},tabIndex:D,value:I,variant:R="standard"}=e,T=(0,vt.Z)(e,cx),[O,q]=(0,Mh.Z)({controlled:I,default:d,name:"Select"}),[A,M]=(0,Mh.Z)({controlled:L,default:c,name:"Select"}),P=n.useRef(null),F=n.useRef(null),[B,W]=n.useState(null),{current:V}=n.useRef(null!=L),[z,H]=n.useState(),j=(0,To.Z)(t,m),U=n.useCallback((e=>{F.current=e,e&&W(e)}),[]),$=null==B?void 0:B.parentNode;n.useImperativeHandle(j,(()=>({focus:()=>{F.current.focus()},node:P.current,value:O})),[O]),n.useEffect((()=>{c&&A&&B&&!V&&(H(s?null:$.clientWidth),F.current.focus())}),[B,s]),n.useEffect((()=>{r&&F.current.focus()}),[r]),n.useEffect((()=>{if(!f)return;const e=(0,Ea.Z)(F.current).getElementById(f);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[f]);const K=(e,t)=>{e?x&&x(t):w&&w(t),V||(H(s?null:$.clientWidth),M(e))},G=n.Children.toArray(a),Z=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(_){n=Array.isArray(O)?O.slice():[];const t=O.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),O!==n&&(q(n),y)){const i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:b}}),y(o,e)}_||K(!1,t)}},Q=null!==B&&A;let Y,X;delete T["aria-invalid"];const J=[];let ee=!1,te=!1;(vl({value:O})||h)&&(E?Y=E(O):ee=!0);const ne=G.map((e=>{if(!n.isValidElement(e))return null;let t;if(_){if(!Array.isArray(O))throw new Error((0,il.Z)(2));t=O.some((t=>gx(t,e.props.value))),t&&ee&&J.push(e.props.children)}else t=gx(O,e.props.value),t&&ee&&(X=e.props.children);return t&&(te=!0),n.cloneElement(e,{"aria-selected":t?"true":"false",onClick:Z(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ee&&(Y=_?0===J.length?null:J.reduce(((e,t,n)=>(e.push(t),n<J.length-1&&e.push(", "),e)),[]):X);let ie,oe=z;!s&&V&&B&&(oe=$.clientWidth),ie=void 0!==D?D:u?null:0;const re=N.id||(b?`mui-component-select-${b}`:void 0),se=(0,_t.Z)({},e,{variant:R,value:O,open:Q,error:g}),ae=(e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:r,error:s}=e,a={select:["select",n,i&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${(0,Ut.Z)(n)}`,r&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return(0,Ct.Z)(a,sx,t)})(se);return(0,Nt.jsxs)(n.Fragment,{children:[(0,Nt.jsx)(dx,(0,_t.Z)({ref:U,tabIndex:ie,role:"button","aria-disabled":u?"true":void 0,"aria-expanded":Q?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[f,re].filter(Boolean).join(" ")||void 0,"aria-describedby":i,onKeyDown:e=>{k||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),K(!0,e))},onMouseDown:u||k?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),K(!0,e))},onBlur:e=>{!Q&&C&&(Object.defineProperty(e,"target",{writable:!0,value:{value:O,name:b}}),C(e))},onFocus:S},N,{ownerState:se,className:(0,bt.Z)(N.className,ae.select,l),id:re,children:px(Y)?lx||(lx=(0,Nt.jsx)("span",{className:"notranslate",children:""})):Y})),(0,Nt.jsx)(hx,(0,_t.Z)({"aria-invalid":g,value:Array.isArray(O)?O.join(","):O,name:b,ref:P,"aria-hidden":!0,onChange:e=>{const t=G.map((e=>e.props.value)).indexOf(e.target.value);if(-1===t)return;const n=G[t];q(n.props.value),y&&y(e,n)},tabIndex:-1,disabled:u,className:ae.nativeInput,autoFocus:r,ownerState:se},T)),(0,Nt.jsx)(ux,{as:p,className:ae.icon,ownerState:se}),(0,Nt.jsx)(Iw,(0,_t.Z)({id:`menu-${b||""}`,anchorEl:$,open:Q,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:(0,_t.Z)({"aria-labelledby":f,role:"listbox",disableListWrap:!0},v.MenuListProps),PaperProps:(0,_t.Z)({},v.PaperProps,{style:(0,_t.Z)({minWidth:oe},null!=v.PaperProps?v.PaperProps.style:null)}),children:ne}))]})})),fx=mx,vx=(0,no.Z)((0,Nt.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),_x=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],bx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,xt.FO)(e)&&"variant"!==e,slot:"Root"},Cx=(0,xt.ZP)(bS,bx)(""),yx=(0,xt.ZP)(Rl,bx)(""),wx=(0,xt.ZP)(kS,bx)(""),Sx=n.forwardRef((function(e,t){const i=(0,St.Z)({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:r,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=vx,id:u,input:h,inputProps:g,label:p,labelId:m,MenuProps:f,multiple:v=!1,native:_=!1,onClose:b,onOpen:C,open:y,renderValue:w,SelectDisplayProps:S,variant:x="outlined"}=i,L=(0,vt.Z)(i,_x),k=_?rx:fx,E=Xa({props:i,muiFormControl:Ya(),states:["variant","error"]}),N=E.variant||x,D=(0,_t.Z)({},i,{variant:N,classes:s}),I=(e=>{const{classes:t}=e;return t})(D),R=h||{standard:(0,Nt.jsx)(Cx,{ownerState:D}),outlined:(0,Nt.jsx)(yx,{label:p,ownerState:D}),filled:(0,Nt.jsx)(wx,{ownerState:D})}[N],T=(0,To.Z)(t,R.ref);return(0,Nt.jsx)(n.Fragment,{children:n.cloneElement(R,(0,_t.Z)({inputComponent:k,inputProps:(0,_t.Z)({children:r,error:E.error,IconComponent:d,variant:N,type:void 0,multiple:v},_?{id:u}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:f,onClose:b,onOpen:C,open:y,renderValue:w,SelectDisplayProps:(0,_t.Z)({id:u},S)},g,{classes:g?(0,Ai.Z)(I,g.classes):I},h?h.props.inputProps:{})},v&&_&&"outlined"===N?{notched:!0}:{},{ref:T,className:(0,bt.Z)(R.props.className,a)},!h&&{variant:N},L))})}));Sx.muiName="Select";const xx=Sx;function Lx(e){return(0,kt.Z)("MuiTextField",e)}(0,Lt.Z)("MuiTextField",["root"]);const kx=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ex={standard:bS,filled:kS,outlined:Rl},Nx=(0,xt.ZP)(HS,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dx=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:r,className:s,color:a="primary",defaultValue:l,disabled:c=!1,error:d=!1,FormHelperTextProps:u,fullWidth:h=!1,helperText:g,id:p,InputLabelProps:m,inputProps:f,InputProps:v,inputRef:_,label:b,maxRows:C,minRows:y,multiline:w=!1,name:S,onBlur:x,onChange:L,onClick:k,onFocus:E,placeholder:N,required:D=!1,rows:I,select:R=!1,SelectProps:T,type:O,value:q,variant:A="outlined"}=n,M=(0,vt.Z)(n,kx),P=(0,_t.Z)({},n,{autoFocus:o,color:a,disabled:c,error:d,fullWidth:h,multiline:w,required:D,select:R,variant:A}),F=(e=>{const{classes:t}=e;return(0,Ct.Z)({root:["root"]},Lx,t)})(P),B={};"outlined"===A&&(m&&void 0!==m.shrink&&(B.notched=m.shrink),B.label=b),R&&(T&&T.native||(B.id=void 0),B["aria-describedby"]=void 0);const W=(0,hS.Z)(p),V=g&&W?`${W}-helper-text`:void 0,z=b&&W?`${W}-label`:void 0,H=Ex[A],j=(0,Nt.jsx)(H,(0,_t.Z)({"aria-describedby":V,autoComplete:i,autoFocus:o,defaultValue:l,fullWidth:h,multiline:w,name:S,rows:I,maxRows:C,minRows:y,type:O,value:q,id:W,inputRef:_,onBlur:x,onChange:L,onFocus:E,onClick:k,placeholder:N,inputProps:f},B,v));return(0,Nt.jsxs)(Nx,(0,_t.Z)({className:(0,bt.Z)(F.root,s),disabled:c,error:d,fullWidth:h,ref:t,required:D,color:a,variant:A,ownerState:P},M,{children:[null!=b&&""!==b&&(0,Nt.jsx)(FS,(0,_t.Z)({htmlFor:W,id:z},m,{children:b})),R?(0,Nt.jsx)(xx,(0,_t.Z)({"aria-describedby":V,id:W,labelId:z,value:q,input:j},T,{children:r})):j,g&&(0,Nt.jsx)(QS,(0,_t.Z)({id:V},u,{children:g}))]}))})),Ix=Dx,Rx="Search",Tx={gridContainer:`${Rx}-gridContainer`,gridItem:`${Rx}-gridItem`},Ox=(0,xt.ZP)(Ar)((({theme:e})=>({[`& .${Tx.gridContainer}`]:{padding:e.spacing(0,1,0,1)},[`& .${Tx.gridItem}`]:{padding:e.spacing(0,1,0,1)}})));function qx({onChange:e=(()=>{}),onEnter:t=(()=>{}),onEscape:i=(()=>{})}){const[o,r]=(0,n.useState)("");return n.createElement(Ox,{className:Tx.gridContainer,item:!0,container:!0,direction:"row",alignItems:"center"},n.createElement(Ar,{item:!0},n.createElement(Ev,null)),n.createElement(Ar,{className:Tx.gridItem,item:!0,xs:!0},n.createElement(Ix,{fullWidth:!0,autoFocus:!0,placeholder:"Search",value:o,onChange:t=>{r(t.target.value),e(t.target.value)},onKeyDown:e=>{switch(e.key){case"Enter":t(),r("");break;case"Escape":i()}}})))}function Ax({field:e,onSelect:t,sub:i,parts:o}){return n.createElement(js,{button:!0,onClick:()=>t(e.qName),"data-key":e.qName},n.createElement(Qs,null,o.map(((e,t)=>n.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))),i&&n.createElement(dS.Z,{fontSize:"small"}))}function Mx({item:e,onSelect:t,parts:i}){return n.createElement(js,{button:!0,onClick:()=>t(e.qInfo),"data-key":e.qInfo.qId},n.createElement(Qs,null,i.map(((e,t)=>n.createElement("span",{key:t,style:e.highlight?{flex:"0 1 auto",backgroundColor:"#FFC72A"}:{flex:"0 1 auto"}},e.text)))))}function Px({aggr:e,field:t,onSelect:i}){return n.createElement(js,{button:!0,onClick:()=>i(e),"data-key":e},n.createElement(Qs,null,`${e}(${t})`))}function Fx({app:e,onSelect:t,title:i="",type:o="dimension",searchTerm:r=""}){const[s]=eS(e,o),a=(0,n.useMemo)((()=>s.slice().sort(((e,t)=>e.qData.title.toLowerCase().localeCompare(t.qData.title.toLowerCase())))),[s]);return s.length>0?n.createElement(n.Fragment,null,n.createElement(rS,{component:"div",style:{backgroundColor:"inherit"}},i),a.map((e=>{const i=cS()(e.qData.title,r),o=aS()(e.qData.title,i);return r&&0===i.length?null:n.createElement(Mx,{key:e.qInfo.qId,item:e,onSelect:t,parts:o})}))):null}function Bx({alignTo:e,show:t,close:i,onSelected:o,type:r}){const s=(0,n.useContext)(Zw),[a,l]=(0,n.useState)(null),[c,d]=(0,n.useState)(""),u=Yt(),[h]=Wd({qInfo:{qType:"FieldList",qId:"FieldList"},qFieldListDef:{qShowDerivedFelds:!1,qShowHidden:!1,qShowSemantic:!0,qShowSrcTables:!0,qShowSystem:!1}},s),[g]=Ud(h),p=(0,n.useMemo)((()=>(g&&g.qFieldList.qItems||[]).slice().sort(((e,t)=>e.qName.toLowerCase().localeCompare(t.qName.toLowerCase())))),[g]),m=e=>{e&&e.qId?(o(e),i()):"measure"===r?l(e):(o({field:e}),i())},f=e=>{o({field:a,aggregation:e}),i()};return n.createElement(eh,{open:t,onClose:i,anchorEl:e.current,marginThreshold:16,elevation:3,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px",maxHeight:"300px",background:u.palette.background.lightest}}},!a&&n.createElement(qx,{onChange:d}),a&&n.createElement(Es,{dense:!0,component:"nav"},n.createElement(js,{button:!0,onClick:()=>l(null)},n.createElement(Jf,null,n.createElement(uS.Z,null)),n.createElement(Qs,null,"Back")),n.createElement(Of,null),n.createElement(rS,{component:"div"},"Aggregation"),["sum","count","avg","min","max"].map((e=>n.createElement(Px,{key:e,aggr:e,field:a,onSelect:f})))),!a&&p.length>0&&n.createElement(Es,{dense:!0,component:"nav",style:{background:u.palette.background.lightest}},n.createElement(Fx,{app:s,onSelect:m,type:r,title:"measure"===r?"Measures":"Dimensions",searchTerm:c}),n.createElement(rS,{component:"div",style:{backgroundColor:"inherit"}},"Fields"),p.map((e=>{const t=cS()(e.qName,c),i=aS()(e.qName,t);return c&&0===t.length?null:n.createElement(Ax,{key:e.qName,field:e,onSelect:m,sub:"measure"===r,parts:i})}))))}const Wx=({field:e,libraryItems:t})=>{if(e.qLibraryId){const n=t.filter((t=>t.qInfo.qId===e.qLibraryId))[0];return n?n.qData.title:"!!!"}return e.qDef&&e.qDef.qFieldDefs?e.qDef.qFieldDefs[0]:e.qDef&&e.qDef.qDef?e.qDef.qDef:"???"};function Vx({items:e,type:t="dimension",label:i="",addLabel:o="Add",onAdded:r,onRemoved:s,canAdd:a=!0}){const[l,c]=(0,n.useState)(!1),d=(0,n.useRef)(null),u=(0,n.useContext)(Zw),[h]=eS(u,t);return n.createElement("div",null,n.createElement(zr,{variant:"overline"},i),n.createElement(Es,{dense:!0},e.map(((e,i)=>n.createElement(js,{disableGutters:!0,key:e.qDef&&e.qDef.cId||i},n.createElement(Qs,null,n.createElement(Wx,{field:e,libraryItems:h,type:t})),n.createElement(Fs,null,n.createElement(Sr,{onClick:()=>{s(i)},size:"large"},n.createElement(ys,null))))))),n.createElement(Wl,{variant:"contained",fullWidth:!0,onClick:()=>{c(!l)},ref:d,disabled:!a},o),l&&n.createElement(Bx,{alignTo:d,show:l,close:()=>c(!1),onSelected:e=>{e.qId?r(e):e&&r("dimension"===t?e.field:`${e.aggregation||"sum"}([${e.field}])`)},type:t}))}const zx=(e,t,n)=>{const i=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<i.length;++e)if(""!==i[e]){if(void 0===o[i[e]])return n;o=o[i[e]]}return o};function Hx({setProperties:e,target:t,properties:i}){const[o,r]=(0,n.useState)([]),s=t.dimensions&&t.dimensions.max&&t.dimensions.max()>1?Yw:X_,a=t.propertyPath.match("/qHyperCube")?Q_:s,l=zx(i,t.propertyPath),c=(0,n.useMemo)((()=>a({def:t,dc:l,properties:i,dimensions:o})),[l,t,i,o]);return n.createElement("div",{style:{width:"100%"}},n.createElement(zr,{color:"textSecondary",style:{fontFamily:"Monaco, monospace",fontSize:"0.7rem"}},t.propertyPath),n.createElement(Vx,{key:"dimensions",onAdded:t=>{const n="object"==typeof t?{qLibraryId:t.qId}:t,s=c.addDimension(n);e(i).then((()=>{r([...o,s])}))},onRemoved:t=>{c.removeDimension(t),e(i).then((()=>{r([...o.slice(0,t),...o.slice(t+1)])}))},canAdd:c.canAddDimension(),items:c.dimensions(),type:"dimension",label:"Dimensions",addLabel:"Add dimension"}),n.createElement(Vx,{key:"measures",onAdded:t=>{c.addMeasure("object"==typeof t?{qLibraryId:t.qId}:t),e(i)},onRemoved:t=>{c.removeMeasure(t),e(i)},canAdd:c.canAddMeasure(),items:c.measures(),type:"measure",label:"Measures",addLabel:"Add measures"}))}function jx({setProperties:e,sn:t,properties:i}){if(!t)return null;const{targets:o}=t.qae.data;return o.length?n.createElement(Es,null,o.map((t=>n.createElement(js,{key:t.propertyPath,divider:!0,disableGutters:!0},n.createElement(Hx,{target:t,properties:i,setProperties:e}))))):n.createElement(zr,null,"No data targets found")}const Ux=n.createContext({});function $x(e){return(0,kt.Z)("MuiAccordion",e)}const Kx=(0,Lt.Z)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),Gx=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],Zx=(0,xt.ZP)(Hu,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Kx.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${Kx.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${Kx.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),(({theme:e,ownerState:t})=>(0,_t.Z)({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${Kx.expanded}`]:{margin:"16px 0"}}))),Qx=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiAccordion"}),{children:o,className:r,defaultExpanded:s=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:d,square:u=!1,TransitionComponent:h=fs,TransitionProps:g}=i,p=(0,vt.Z)(i,Gx),[m,f]=(0,Mh.Z)({controlled:c,default:s,name:"Accordion",state:"expanded"}),v=n.useCallback((e=>{f(!m),d&&d(e,!m)}),[m,d,f]),[_,...b]=n.Children.toArray(o),C=n.useMemo((()=>({expanded:m,disabled:a,disableGutters:l,toggle:v})),[m,a,l,v]),y=(0,_t.Z)({},i,{square:u,disabled:a,disableGutters:l,expanded:m}),w=(e=>{const{classes:t,square:n,expanded:i,disabled:o,disableGutters:r}=e,s={root:["root",!n&&"rounded",i&&"expanded",o&&"disabled",!r&&"gutters"],region:["region"]};return(0,Ct.Z)(s,$x,t)})(y);return(0,Nt.jsxs)(Zx,(0,_t.Z)({className:(0,bt.Z)(w.root,r),ref:t,ownerState:y,square:u},p,{children:[(0,Nt.jsx)(Ux.Provider,{value:C,children:_}),(0,Nt.jsx)(h,(0,_t.Z)({in:m,timeout:"auto"},g,{children:(0,Nt.jsx)("div",{"aria-labelledby":_.props.id,id:_.props["aria-controls"],role:"region",className:w.region,children:b})}))]}))})),Yx=Qx;function Xx(e){return(0,kt.Z)("MuiAccordionSummary",e)}const Jx=(0,Lt.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),eL=["children","className","expandIcon","focusVisibleClassName","onClick"],tL=(0,xt.ZP)(vr,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return(0,_t.Z)({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${Jx.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Jx.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Jx.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${Jx.expanded}`]:{minHeight:64}})})),nL=(0,xt.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>(0,_t.Z)({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Jx.expanded}`]:{margin:"20px 0"}}))),iL=(0,xt.ZP)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${Jx.expanded}`]:{transform:"rotate(180deg)"}}))),oL=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiAccordionSummary"}),{children:o,className:r,expandIcon:s,focusVisibleClassName:a,onClick:l}=i,c=(0,vt.Z)(i,eL),{disabled:d=!1,disableGutters:u,expanded:h,toggle:g}=n.useContext(Ux),p=(0,_t.Z)({},i,{expanded:h,disabled:d,disableGutters:u}),m=(e=>{const{classes:t,expanded:n,disabled:i,disableGutters:o}=e,r={root:["root",n&&"expanded",i&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]};return(0,Ct.Z)(r,Xx,t)})(p);return(0,Nt.jsxs)(tL,(0,_t.Z)({focusRipple:!1,disableRipple:!0,disabled:d,component:"div","aria-expanded":h,className:(0,bt.Z)(m.root,r),focusVisibleClassName:(0,bt.Z)(m.focusVisible,a),onClick:e=>{g&&g(e),l&&l(e)},ref:t,ownerState:p},c,{children:[(0,Nt.jsx)(nL,{className:m.content,ownerState:p,children:o}),s&&(0,Nt.jsx)(iL,{className:m.expandIconWrapper,ownerState:p,children:s})]}))})),rL=oL;function sL(e){return(0,kt.Z)("MuiAccordionDetails",e)}(0,Lt.Z)("MuiAccordionDetails",["root"]);const aL=["className"],lL=(0,xt.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({padding:e.spacing(1,2,2)}))),cL=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiAccordionDetails"}),{className:i}=n,o=(0,vt.Z)(n,aL),r=n,s=(e=>{const{classes:t}=e;return(0,Ct.Z)({root:["root"]},sL,t)})(r);return(0,Nt.jsx)(lL,(0,_t.Z)({className:(0,bt.Z)(s.root,i),ref:t,ownerState:r},o))})),dL=cL;var uL=s(59579);let hL=null;const gL="AutoComponents",pL={summary:`${gL}-summary`,details:`${gL}-details`,root:`${gL}-root`},mL=(0,xt.ZP)(Ar)((({theme:e})=>({[`& .${pL.summary}`]:{padding:e.spacing(0,1),backgroundColor:e.palette.background.lighter,borderBottom:`1px solid ${e.palette.divider}`},[`& .${pL.details}`]:{padding:e.spacing(1)}}))),fL=(0,xt.ZP)(Yx)((({theme:e})=>({[`& .${pL.root}`]:{boxShadow:"none",marginLeft:-e.spacing(1),marginRight:-e.spacing(1),"&$expanded":{marginLeft:-e.spacing(1),marginRight:-e.spacing(1)}}}))),vL=(e,t)=>Array.isArray(e)?"array":CL&&"variable"===t&&"object"==typeof e&&"name"in e&&"value"in e?"variable":CL&&e&&"object"==typeof e&&"qStringExpression"in e?"expression":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"number"==typeof e?"number":e&&"object"==typeof e?"object":"unknown",_L={boolean:function({property:e,value:t,target:i,changed:o}){return n.createElement(Ah,{control:n.createElement(eg,{checked:t,onChange:t=>{i[e]=t.target.checked,o()}}),label:e,labelPlacement:"end"})},string:function({property:e,value:t,target:i,changed:o}){const[r,s]=(0,n.useState)(t);return n.createElement(Ix,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==t&&(i[e]=r,o())},label:e,value:r})},object:function({property:e,value:t,changed:i,app:o}){return n.createElement(fL,{square:!0,className:pL.root},n.createElement(rL,{expandIcon:n.createElement(uL.Z,null),className:pL.summary},n.createElement(zr,null,e)),n.createElement(dL,{className:pL.details},yL(t,i,o)))},number:function({property:e,value:t,target:i,changed:o}){const[r,s]=(0,n.useState)(+t);return n.createElement(Ix,{variant:"standard",fullWidth:!0,onChange:e=>{s(e.target.value)},onBlur:()=>{r!==t&&(i[e]=+r,o())},label:e,value:r})},expression:function({property:e,value:t,target:i,changed:o}){const r=t.qStringExpression&&t.qStringExpression.qExpr?t.qStringExpression.qExpr:"",[s,a]=(0,n.useState)(r);return n.createElement(Ix,{variant:"standard",InputProps:{startAdornment:n.createElement(kv,{position:"start"},"=")},fullWidth:!0,onChange:e=>{a(e.target.value)},onBlur:()=>{s!==t&&(i[e].qStringExpression={qExpr:`=${s}`},o())},label:e,value:s})},variable:function({property:e,value:t,target:i,changed:o,app:r}){const[s,a]=(0,n.useState)(t.name),[l,c]=(0,n.useState)([]);return(0,n.useEffect)((()=>{!async function(){const e=await async function(e){return hL||(hL=await e.createSessionObject({qInfo:{qType:"VariableList"},qVariableListDef:{qType:"variable",qShowReserved:!1,qShowConfig:!1}})),(await hL.getLayout()).qVariableList.qItems.map((e=>({value:e.qName,label:e.qName.length>50?`${e.qName.slice(0,50)}...`:e.qName})))}(r);c(e)}()}),[]),0===l.length?n.createElement("em",null,"No variables in app"):n.createElement(HS,{size:"small",fullWidth:!0},n.createElement(xx,{onChange:t=>{a(t.target.value),i[e].name=t.target.value,i[e].value={qStringExpression:{qExpr:`[${t.target.value}]`}},o()},displayEmpty:!0,fullWidth:!0,value:s,renderValue:e=>0===e.length?n.createElement("em",null,"Select a variable"):e},l.map((e=>n.createElement(Zf,{key:e.value,value:e.value},e.label)))))}},bL=/^q[A-Z]/;let CL=!1;function yL(e,t,i,o){o&&o.PP_EXPRESSIONS&&(CL=!0);const r=Object.keys(e).map((t=>{if(-1!==["visualization","version"].indexOf(t))return!1;if(bL.test(t))return!1;const n=vL(e[t],t);return!!_L[n]&&{Component:_L[n],property:t,target:e,value:e[t],key:`${t}:${e[t]}`}})).filter(Boolean);return n.createElement(mL,{container:!0,direction:"column",gap:0,alignItems:"stretch"},r.map((o=>n.createElement(Ar,{item:!0,xs:!0,key:o.key,style:{width:"100%"}},n.createElement(o.Component,{key:o.key,app:i,property:o.property,value:o.value,target:e,changed:t})))))}function wL({viz:e,sn:t,isTemp:i,storage:o,flags:r}){const[s,a]=Gw(e.id),l=(0,n.useContext)(Zw),[c,d]=(0,n.useState)(!1!==o.get("readFromCache")),u=(0,n.useCallback)((()=>{a(s)}),[e,t,s]);return t&&e&&s?n.createElement("div",{style:{minWidth:"250px",padding:"8px"}},i&&n.createElement(n.Fragment,null,n.createElement(Ar,{item:!0,container:!0,alignItems:"center"},n.createElement(Ah,{control:n.createElement(eg,{checked:c,onChange:e=>{o.save("readFromCache",e.target.checked),d(e.target.checked)},value:"isReadFromCacheEnabled"}),label:"Enable property cache",labelPlacement:"end"})),n.createElement(Of,null)),n.createElement(jx,{properties:s,setProperties:a,sn:t}),yL(s,u,l,r)):null}function SL(e){return(0,kt.Z)("MuiDialog",e)}const xL=(0,Lt.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),LL=n.createContext({}),kL=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],EL=(0,xt.ZP)(Tu,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),NL=(0,xt.ZP)(Pu,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),DL=(0,xt.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,Ut.Z)(n.scroll)}`]]}})((({ownerState:e})=>(0,_t.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}))),IL=(0,xt.ZP)(Hu,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,Ut.Z)(n.scroll)}`],t[`paperWidth${(0,Ut.Z)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((({theme:e,ownerState:t})=>(0,_t.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${xL.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${xL.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${xL.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}))),RL=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiDialog"}),o=Yt(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:l,BackdropProps:c,children:d,className:u,disableEscapeKeyDown:h=!1,fullScreen:g=!1,fullWidth:p=!1,maxWidth:m="sm",onBackdropClick:f,onClose:v,open:_,PaperComponent:b=Hu,PaperProps:C={},scroll:y="paper",TransitionComponent:w=Eu,transitionDuration:S=r,TransitionProps:x}=i,L=(0,vt.Z)(i,kL),k=(0,_t.Z)({},i,{disableEscapeKeyDown:h,fullScreen:g,fullWidth:p,maxWidth:m,scroll:y}),E=(e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:o,fullScreen:r}=e,s={root:["root"],container:["container",`scroll${(0,Ut.Z)(n)}`],paper:["paper",`paperScroll${(0,Ut.Z)(n)}`,`paperWidth${(0,Ut.Z)(String(i))}`,o&&"paperFullWidth",r&&"paperFullScreen"]};return(0,Ct.Z)(s,SL,t)})(k),N=n.useRef(),D=(0,hS.Z)(a),I=n.useMemo((()=>({titleId:D})),[D]);return(0,Nt.jsx)(NL,(0,_t.Z)({className:(0,bt.Z)(E.root,u),closeAfterTransition:!0,components:{Backdrop:EL},componentsProps:{backdrop:(0,_t.Z)({transitionDuration:S,as:l},c)},disableEscapeKeyDown:h,onClose:v,open:_,ref:t,onClick:e=>{N.current&&(N.current=null,f&&f(e),v&&v(e,"backdropClick"))},ownerState:k},L,{children:(0,Nt.jsx)(w,(0,_t.Z)({appear:!0,in:_,timeout:S,role:"presentation"},x,{children:(0,Nt.jsx)(DL,{className:(0,bt.Z)(E.container),onMouseDown:e=>{N.current=e.target===e.currentTarget},ownerState:k,children:(0,Nt.jsx)(IL,(0,_t.Z)({as:b,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":D},C,{className:(0,bt.Z)(E.paper,C.className),ownerState:k,children:(0,Nt.jsx)(LL.Provider,{value:I,children:d})}))})}))}))})),TL=RL;function OL(e){return(0,kt.Z)("MuiDialogTitle",e)}const qL=(0,Lt.Z)("MuiDialogTitle",["root"]),AL=["className","id"],ML=(0,xt.ZP)(zr,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),PL=n.forwardRef((function(e,t){const i=(0,St.Z)({props:e,name:"MuiDialogTitle"}),{className:o,id:r}=i,s=(0,vt.Z)(i,AL),a=i,l=(e=>{const{classes:t}=e;return(0,Ct.Z)({root:["root"]},OL,t)})(a),{titleId:c=r}=n.useContext(LL);return(0,Nt.jsx)(ML,(0,_t.Z)({component:"h2",className:(0,bt.Z)(l.root,o),ownerState:a,ref:t,variant:"h6",id:null!=r?r:c},s))})),FL=PL;function BL(e){return(0,kt.Z)("MuiDialogContent",e)}(0,Lt.Z)("MuiDialogContent",["root","dividers"]);const WL=["className","dividers"],VL=(0,xt.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((({theme:e,ownerState:t})=>(0,_t.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${qL.root} + &`]:{paddingTop:0}}))),zL=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=n,r=(0,vt.Z)(n,WL),s=(0,_t.Z)({},n,{dividers:o}),a=(e=>{const{classes:t,dividers:n}=e,i={root:["root",n&&"dividers"]};return(0,Ct.Z)(i,BL,t)})(s);return(0,Nt.jsx)(VL,(0,_t.Z)({className:(0,bt.Z)(a.root,i),ownerState:s,ref:t},r))})),HL=zL;function jL(e){return(0,kt.Z)("MuiDialogActions",e)}(0,Lt.Z)("MuiDialogActions",["root","spacing"]);const UL=["className","disableSpacing"],$L=(0,xt.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>(0,_t.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}))),KL=n.forwardRef((function(e,t){const n=(0,St.Z)({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=n,r=(0,vt.Z)(n,UL),s=(0,_t.Z)({},n,{disableSpacing:o}),a=(e=>{const{classes:t,disableSpacing:n}=e,i={root:["root",!n&&"spacing"]};return(0,Ct.Z)(i,jL,t)})(s);return(0,Nt.jsx)($L,(0,_t.Z)({className:(0,bt.Z)(a.root,i),ownerState:s,ref:t},r))})),GL=KL;var ZL=s(1599);function QL({model:e,show:t,close:i}){const[o,r]=(0,n.useState)(""),[s,a]=(0,n.useState)(null),[l,c]=(0,n.useState)([]),[d,u,h]=Kd(),g=Yt(),p=(0,n.useCallback)((()=>{l.length||e.setProperties(JSON.parse(s.getValue())).then(i)}));return(0,n.useEffect)((()=>{if(!t)return;const n=()=>{e&&t&&e.getProperties().then((e=>{t&&r(JSON.stringify(e||{},null,2))}))};return e.on("changed",n),n(),()=>{e&&e.removeListener("changed",n)}}),[e&&e.id,t]),(0,n.useEffect)((()=>{if(!(d&&h&&u&&o))return;const{left:e,top:t,width:n,height:i}=u;if(0===e&&0===t&&0===n&&0===i)return;const r=ZL.editor.create(h,{value:o,language:"json",scrollBeyondLastLine:!1,theme:"dark"===g.palette.mode?"vs-dark":"vs-light"});r.layout({width:u.width,height:u.height});const s=r.onDidChangeModelDecorations((()=>{const e=ZL.editor.getModelMarkers();c(e)}));return r.focus(),a(r),()=>{s.dispose();const e=r.getModel();e&&e.dispose(),r.dispose()}}),[h,u,o]),n.createElement(TL,{disableEscapeKeyDown:!0,open:t,scroll:"paper",maxWidth:"md",onClose:i,PaperProps:{style:{height:"80%",width:"80%"}}},n.createElement(FL,null,"Modify object properties"),n.createElement(HL,{dividers:!0},n.createElement("div",{ref:d,style:{overflow:"hidden",height:"100%"}})),n.createElement(GL,null,n.createElement(Wl,{variant:"contained",onClick:i},"Cancel"),n.createElement(Wl,{variant:"contained",onClick:p,disabled:l.length>0},"Confirm")))}const YL=n.createContext({currentThemeName:null,activeViz:null,setActiveViz:()=>{},expandedObject:null,setExpandedObject:()=>{}}),XL=n.createContext();function JL({id:e,onLoad:t}){const i=(0,n.useContext)(XL),o=(0,n.useRef)();return(0,n.useEffect)((()=>{const n=i.render({id:e,element:o.current});return n.then((e=>{t(e,o.current)})),()=>{n.then((e=>{e.destroy()}))}}),[e]),n.createElement("div",{ref:o,style:{height:"100%",backgroundColor:"white"}})}const ek="Cell",tk={secondaryIcon:`${ek}-secondaryIcon`,drop:`${ek}-drop`},nk=(0,xt.ZP)(Ar)((({theme:e})=>({[`& .${tk.secondaryIcon}`]:{color:e.palette.text.secondary},[`& .${tk.drop}`]:{boxShadow:e.shadows[1],borderRadius:`${e.shape.borderRadius}px`}})));function ik({id:e,expandable:t,minHeight:i}){const o=(0,n.useContext)(Zw),[r,s]=(0,n.useState)(null),[a,l]=(0,n.useState)(!1),[c,d]=(0,n.useState)(null),{currentThemeName:u,activeViz:h,setActiveViz:g,setExpandedObject:p,expandedObject:m}=(0,n.useContext)(YL),f=m===e,v=(0,n.useRef)();(0,n.useEffect)((()=>{const t=o.getObject(e).then((e=>(s(e),e)));return()=>{t.then((e=>e.emit("close")))}}),[e]);const[_,b]=(0,n.useState)(!1),C=(0,n.useCallback)((()=>{b(!1)}),[]),y=(0,n.useCallback)(((e,t)=>{v.current={viz:e,el:t},d(e)}),[e]),w=(0,n.useCallback)(((e=!1)=>{if(v.current)if(e)l(!0),v.current.viz.__DO_NOT_USE__.exportImage().then((e=>{e&&e.url&&window.open(e.url),l(!1)}));else{const e=v.current.el.getBoundingClientRect();v.current.viz.__DO_NOT_USE__.takeSnapshot().then((t=>{fetch("/njs/snapshot",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),window.open(`/render?snapshot=${t.key}`,"snapshot",`height=${Math.round(e.height)},width=${Math.round(e.width)}`)}))}}),[r,u]),S=!f&&v.current&&h&&h===v.current.viz?{boxShadow:"0px 0px 4px 2px rgba(0,100,200,0.85)"}:{},x=h===c;return n.createElement(nk,{container:!0,direction:"column",style:{minHeight:i,height:"100%",position:"relative"}},n.createElement(Ar,{item:!0},n.createElement(aw,{variant:"dense",disableGutters:!0,style:{padding:"0 0px",opacity:1}},n.createElement(QL,{model:r,show:_,close:C}),n.createElement(Sr,{title:"Modify object properties",className:tk.secondaryIcon,disabled:!r,onClick:()=>b(!0),size:"large"},Cs({size:"medium",viewBox:"0 0 16 16",shapes:[{type:"path",attrs:{d:"M14,8 C14,8.2 14,8.4 14,8.6 L16,9.6 L15.4,11.4 L13.2,11 C13,11.3 12.8,11.7 12.5,12 L13.6,14 L12,15 L10.4,13.4 C10,13.5 9.7,13.7 9.3,13.8 L9,16 L7,16 L6.7,13.8 C6.3,13.7 5.9,13.6 5.6,13.4 L4,15 L2.4,13.9 L3.5,11.9 C3.2,11.6 3,11.3 2.8,10.9 L0.6,11.3 L0,9.6 L2,8.6 C2,8.4 2,8.2 2,8 C2,7.8 2,7.6 2,7.4 L0,6.4 L0.6,4.6 L2.8,5 C3,4.7 3.2,4.3 3.5,4 L2.4,2 L4,1 L5.6,2.6 C6,2.4 6.3,2.3 6.7,2.2 L7,0 L9,0 L9.3,2.2 C9.7,2.3 10.1,2.4 10.4,2.6 L12,1 L13.6,2.1 L12.5,4.1 C12.8,4.4 13,4.7 13.2,5.1 L15.4,4.7 L16,6.4 L14,7.4 C14,7.6 14,7.8 14,8 Z M8,11 C9.7,11 11,9.7 11,8 C11,6.3 9.7,5 8,5 C6.3,5 5,6.3 5,8 C5,9.7 6.3,11 8,11 Z"}}]})),n.createElement(Sr,{title:"Open in single render view",className:tk.secondaryIcon,disabled:!r,href:r?`${document.location.href.replace(/\/dev\//,"/render/")}${window.location.search?"&":"?"}object=${r.id}&theme=${u}&language=en-US`:"",target:"_blank",size:"large"},Cs({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})),n.createElement(Sr,{title:"Take and render as snapshot",className:tk.secondaryIcon,disabled:!r,onClick:()=>w(),size:"large"},Cs({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"}}]})),a?n.createElement(cc,{size:24}):n.createElement(Sr,{title:"Export as image",className:tk.secondaryIcon,disabled:!r,onClick:()=>w(!0),size:"large"},Cs({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}}]})),n.createElement(Ar,{item:!0,xs:!0}),t&&n.createElement(Sr,{title:"Edit",className:tk.secondaryIcon,disabled:!c||x,onClick:()=>g(c),size:"large"},Cs({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}}]})),t&&n.createElement(Sr,{title:"Expand",disabled:!r||!c,className:tk.secondaryIcon,onClick:()=>{f?p(null):(p(e),g(c))},size:"large"},Cs({size:"medium",viewBox:"0 0 24 24",shapes:[{type:"path",attrs:{d:f?"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z":"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}}]})))),n.createElement(Ar,{item:!0,xs:!0,style:{...S},className:tk.drop},n.createElement(JL,{id:e,onLoad:y})))}function ok({info:e,storage:t,uid:i}){const o=(0,n.useContext)(XL),{activeViz:r,setActiveViz:s}=(0,n.useContext)(YL),[a]=Gw(i);return(0,n.useEffect)((()=>{if(!i)return;const n=o.render({type:e.supernova.name,properties:{...!1!==t.get("readFromCache")?t.props(e.supernova.name):{},qInfo:{qId:i,qType:e.supernova.name}}});return n.then((e=>{s(e)})),()=>{n.then((e=>e.destroy()))}}),[i]),(0,n.useEffect)((()=>{a&&t.props(e.supernova.name,a)}),[a]),r&&r.id===i?n.createElement(Ar,{item:!0,container:!0,justifyContent:"center",style:{height:"100%"}},n.createElement(Ar,{item:!0,xs:!0},n.createElement(ik,{id:i}))):null}function rk({types:e,cache:t}){const i=(0,n.useContext)(Zw),[o]=$d(i),[r,s]=(0,n.useState)(null),{expandedObject:a}=(0,n.useContext)(YL);if((0,n.useEffect)((()=>{i.getObjects({qTypes:e,qData:{title:"/qMetaDef/title"}}).then((e=>{s(e.slice(0,20))}))}),[o,e.join(":")]),!r)return null;const l=a?r.filter((e=>e.qInfo.qId===a)):r;return n.createElement(Ar,{container:!0,justifyContent:"center",gap:a?0:2,style:{height:a?"100%":void 0}},l[0]?l.map((e=>n.createElement(Ar,{item:!0,xs:12,md:a?12:6,lg:a?12:4,key:`${e.qInfo.qId}::${t}`},n.createElement(ik,{id:e.qInfo.qId,expandable:!0,minHeight:600})))):n.createElement(Ar,{item:!0},n.createElement("div",null,n.createElement(zr,{display:"inline"},"Could not find any components with "),n.createElement(zr,{display:"inline"},n.createElement("code",null,`qType: "${e[0]}"`)),n.createElement(zr,{display:"inline"}," in the current app"))))}const sk=["en-US","it-IT","zh-CN","zh-TW","ko-KR","de-DE","sv-SE","es-ES","pt-BR","ja-JP","fr-FR","nl-NL","tr-TR","pl-PL","ru-RU"],ak=["select","active","passive"];function lk(e){return{select:-1!==e.indexOf("select"),active:-1!==e.indexOf("active"),passive:-1!==e.indexOf("passive"),edit:-1!==e.indexOf("edit")}}function ck(){const e=(0,n.useRef)(),t=K(),{info:i}=lt(),{waiting:o,app:r}=(({info:e})=>{const[t,i]=(0,n.useState)(null),[o,r]=(0,n.useState)(!0);(0,n.useEffect)((()=>{r(!0),e&&s().then((e=>i(e))).catch((e=>console.log(e))).finally((()=>r(!1)))}),[e]);const s=async()=>{try{const{clientId:t,webIntegrationId:n,enigma:i=null,enigma:{host:o}={}}=e;let r="";if(n){const t=await at({webIntegrationId:n,host:o});r=await t.generateWebsocketUrl(e?.enigma.appId)}else if(t){const{webSocketUrl:t}=await(await fetch(`/getSocketUrl/${e?.enigma.appId}`)).json();r=t}else r=ve().buildUrl(i);return(await pe().create({schema:me,url:r}).open()).openDoc(e?.enigma.appId)}catch(e){throw new Error("Failed to open app!")}};return{waiting:o,app:t,setApp:i}})({info:i}),s=(0,n.useMemo)((()=>ht(r)),[r]),[a,l]=(0,n.useState)(null),[c,d]=(0,n.useState)(null),[u,h]=(0,n.useState)(null),[g,p]=(0,n.useState)(s.get("themeName")),[m,f]=(0,n.useState)(s.get("language")||"en-US"),[v,_]=(0,n.useState)("light"),[b,C]=(0,n.useState)(ak),[y,w]=(0,n.useState)(!0===s.get("objectListMode")),S=(0,n.useRef)(null),[x,L]=(0,n.useState)(),[k,E]=n.useState(null),[N,D]=n.useState(null),[I,R]=(0,n.useState)(!1),[T,O]=(0,n.useState)(null),q=Array.isArray(i?.themes)&&i.themes.length?["light","dark",...i.themes]:[],A=(0,n.useMemo)((()=>Ri(v)),[v]),M=(0,n.useMemo)((()=>({currentThemeName:g,activeViz:a,setActiveViz:l,expandedObject:c,setExpandedObject:d})),[a,c,g]);(0,n.useEffect)((()=>{(async()=>{i&&(await function(e){const t=()=>{$w(e.supernova.name,e.supernova.url).then((t=>{var n;window[e.supernova.name]=t,n=e.supernova.name,Kw[n]&&Kw[n].forEach((e=>e()))}))};if(e.sock.port&&(new WebSocket(`ws://localhost:${e.sock.port}`).onmessage=()=>{t()}),t(),e.types){const t=e.types.map((e=>$w(e.name,e.url).then((t=>{window[e.name]=t}))));return Promise.all(t)}return Promise.resolve()}(i),R(!0))})()}),[i]),(0,n.useEffect)((()=>{if(o||!I)return;const e=My(r,{context:{theme:g,language:m,interactions:lk(b),keyboardNavigation:i?.keyboardNavigation},load:e=>Promise.resolve(window[e.name]),flags:i?.flags,themes:i?.themes?i?.themes.map((e=>({id:e,load:()=>fetch(`/theme/${e}`).then((e=>e.json())).then((e=>(_("dark"===e.type?"dark":"light"),e)))}))):null});e.__DO_NOT_USE__.types.register(i?.supernova),i?.types&&i?.types.forEach((t=>{e.__DO_NOT_USE__.types.register(t)})),O(e)}),[r,i,o,I]),(0,n.useLayoutEffect)((()=>{T&&(T.context({theme:g}),"light"!==g&&"dark"!==g||_(g))}),[T,g]),(0,n.useEffect)((()=>{T&&(T.selections().then((e=>e.mount(S.current))),window.onHotChange(i?.supernova.name,(()=>{T.__DO_NOT_USE__.types.clearFromCache(i?.supernova.name),T.__DO_NOT_USE__.types.register(i?.supernova),P(),T.__DO_NOT_USE__.types.get({name:i?.supernova.name}).supernova().then(h)})),P())}),[T,i]),(0,n.useEffect)((()=>{const t=()=>{r&&r.destroySessionObject(e.current)};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}}),[r]);const P=()=>{window[i?.supernova.name]&&(e.current=String(Date.now()),L(e.current))};return n.createElement(Zw.Provider,{value:r},n.createElement(hi,{injectFirst:!0},n.createElement(dn,{theme:A},n.createElement(XL.Provider,{value:T},n.createElement(Ar,{container:!0,wrap:"nowrap",direction:"column",style:{background:A.palette.background.darkest,height:"100%"},gap:0},n.createElement(Ar,{item:!0},n.createElement(aw,{variant:"dense",style:{background:A.palette.background.paper,boxShadow:A.shadows[1]}},n.createElement(Ar,{container:!0,gap:1},n.createElement(Ar,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},n.createElement(Ar,{item:!0},n.createElement("a",{href:"https://github.com/qlik-oss/nebula.js",target:"_blank",rel:"noopener noreferrer"},n.createElement("img",{src:"/assets/logo.svg",alt:"nebula.js logo",href:"https://github.com/qlik-oss/nebula.js",style:{height:"24px",position:"relative",top:"2px"}})))),n.createElement(Ar,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},n.createElement(Sr,{title:"Home",onClick:()=>t("/"),size:"large"},n.createElement(Xy.Z,{style:{verticalAlign:"middle"}}))),n.createElement(Ar,{item:!0,xs:!0,zeroMinWidth:!0},n.createElement(Ba,{value:y?1:0,onChange:(e,t)=>{const n=1===t;s.save("objectListMode",n),n&&(l(null),d(null)),w(n)},"aria-label":"Navigation"},n.createElement(Ua,{label:n.createElement(zr,null,"Create"),value:0}),n.createElement(Ua,{label:n.createElement(zr,null,"Edit"),value:1}))),n.createElement(Ar,{item:!0,container:!0,alignItems:"center",style:{width:"auto"}},n.createElement(Ar,{item:!0,gap:1},n.createElement(zr,null,"State:")),n.createElement(Ar,{item:!0,gap:2},n.createElement(pw,{size:"small",value:b,onChange:(e,t)=>{C(t),T&&T.context({interactions:lk(t)})},color:"primary"},n.createElement(Cw,{value:"select"},"Select"),n.createElement(Cw,{value:"active"},"Active"),n.createElement(Cw,{value:"passive"},"Passive"),n.createElement(Cw,{value:"edit"},"Edit"))),n.createElement(Ar,{item:!0},q.length?n.createElement(n.Fragment,null,n.createElement(Sr,{title:"Select theme",onClick:e=>E(e.currentTarget),size:"large"},n.createElement(Jy.Z,{fontSize:"small"})),n.createElement(Iw,{anchorEl:k,open:!!k,keepMounted:!0,onClose:()=>E(null)},q.map((e=>n.createElement(Zf,{key:e,selected:e===g,onClick:()=>(e=>{E(null),s.save("themeName",e),p(e)})(e)},e))))):n.createElement(Sr,{title:"Toggle light/dark mode",onClick:()=>{const e="dark"===g?"light":"dark";s.save("themeName",e),p(e)},size:"large"},"dark"===g?n.createElement(ew.Z,{fontSize:"small"}):n.createElement(tw.Z,{fontSize:"small"}))),n.createElement(Ar,{item:!0},n.createElement(Wl,{startIcon:n.createElement(nw.Z,null),title:"Select language",onClick:e=>D(e.currentTarget)},m),n.createElement(Iw,{anchorEl:N,open:!!N,keepMounted:!0,onClose:()=>D(null)},sk.map((e=>n.createElement(Zf,{key:e,selected:e===m,onClick:()=>{return t=e,D(null),s.save("language",t),f(t),void(T&&T.context({language:t}));var t}},e))))))))),n.createElement(Ar,{item:!0,style:{padding:A.spacing(1,1,0,1)}},n.createElement("div",{ref:S,style:{flex:"0 0 auto",boxShadow:A.shadows[1]}})),n.createElement(Ar,{item:!0,xs:!0,style:{overflowX:"hidden",overflowY:"auto",padding:A.spacing(0,1,1,1)}},n.createElement(YL.Provider,{value:M},u?n.createElement(Ar,{container:!0,wrap:"nowrap",style:{height:"100%"},gap:1},n.createElement(Ar,{item:!0,xs:!0,zeroMinWidth:!0},y?n.createElement(rk,{cache:x,types:[i?.supernova.name]}):n.createElement(ok,{info:i,storage:s,uid:x})),a&&n.createElement(Ar,{item:!0,style:{background:A.palette.background.paper,overflow:"hidden auto",marginTop:48,boxShadow:A.shadows[1],padding:0}},n.createElement(wL,{sn:u,viz:a,isTemp:!y,storage:s,flags:i?.flags}))):n.createElement(Ar,{container:!0,wrap:"nowrap",style:{paddingTop:"48px"},justifyContent:"center"},n.createElement(Ar,{item:!0},n.createElement(cc,null))))))))))}const dk=()=>n.createElement(he,null,n.createElement(ft,null,n.createElement(ce,null,n.createElement(ae,{element:n.createElement(Do,null)},n.createElement(ae,{path:"/",element:n.createElement(Zl,null)}),n.createElement(ae,{path:"/app-list",element:n.createElement(dc,null)})),n.createElement(ae,{path:"/dev",element:n.createElement(ck,null)}))));i.createRoot(document.querySelector("#app")).render(n.createElement(dk,null))})()})();
|