@finos/legend-application-repl-deployment 13.28.0 → 13.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,45 +1,45 @@
1
- (()=>{var e,t,n,o,r,i={48369:(e,t,n)=>{"use strict";const o=JSON.parse('{"rE":"11.0.4","XO":{"Z":"@finos/legend-logger-plugin-web-console"}}');var r,i=n(20938);class a{name;version;signature;uuid}class s{name;version;uuid=(0,i.A)();constructor(e,t){this.name=e,this.version=t}getName(){return this.name}getVersion(){return this.version}getSignature(){return`${this.getName()}@${this.getVersion()}`}getUUID(){return this.uuid}getInfo(){const e=new a;return e.name=this.getName(),e.version=this.getVersion(),e.signature=this.getSignature(),e.uuid=this.getUUID(),e}configure(e){return this}}class l{plugins=[];presets=[];usePlugins(e){return this.plugins=e,this}usePresets(e){return this.presets=e,this}configure(e){Object.keys(e).forEach((t=>{const n=e[t];this.presets.forEach((e=>{e.getName()===t&&e.configure(n)})),this.plugins.forEach((e=>{e.getName()===t&&e.configure(n)}))}))}install(){this.plugins.forEach((e=>e.install(this))),this.presets.forEach((e=>e.install(this)))}getInfo(){return{plugins:this.plugins.filter((e=>!this.getHiddenPluginNames().includes(e.getName()))).map((e=>e.getInfo())).sort(((e,t)=>e.name.localeCompare(t.name))),presets:this.presets.filter((e=>!this.getHiddenPresetNames().includes(e.getName()))).map((e=>e.getInfo())).sort(((e,t)=>e.name.localeCompare(t.name)))}}getHiddenPluginNames(){return[]}getHiddenPresetNames(){return[]}}!function(e){e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(r||(r={}));class c{channel;name;timestamp=Date.now();static create(e){const t=new c;return t.name=e,t}}class u extends s{level=r.DEBUG;setLevel(e){this.level=e}install(e){e.registerLoggerPlugin(this)}debug(e,...t){this.level<=r.DEBUG&&this._debug(e,...t)}info(e,...t){this.level<=r.INFO&&this._info(e,...t)}warn(e,...t){this.level<=r.WARN&&this._warn(e,...t)}error(e,...t){this.level<=r.ERROR&&this._error(e,...t)}}class d{loggers=[];registerPlugins(e){this.loggers=e}debug(e,...t){this.loggers.forEach((n=>n.debug(e,...t)))}info(e,...t){this.loggers.forEach((n=>n.info(e,...t)))}warn(e,...t){this.loggers.forEach((n=>n.warn(e,...t)))}error(e,...t){this.loggers.forEach((n=>n.error(e,...t)))}}const{debug:p,info:g,warn:m,error:h}=console;class f extends u{constructor(){super(o.XO.Z,o.rE)}_debug(e,...t){p(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_info(e,...t){g(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_warn(e,...t){m(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_error(e,...t){h(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}}var E=n(31085),C=n(25873),b=n(94417),v=n(84365);const _=()=>()=>{},T=e=>(0,b.A)(e,(e=>void 0!==e)),A=(e,t,n)=>P(e.at(t),n),S=(e,t,n=(e,t)=>e===t)=>{const o=e.findIndex((e=>n(e,t)));return-1!==o&&(e.splice(o,1),!0)};class N extends Error{uuid=(0,i.A)();constructor(e){super(),this.message=void 0===e||""===e?"(no error message)":e}get detail(){return this.message}}class y extends Error{constructor(e,t,n){if(super(n||(t instanceof Error?t.message:t)),this.name=e,t instanceof Error){const e=(this.message.match(/\n/g)??[]).length+1;this.stack=`${(this.stack??"").split("\n").slice(0,e+1).join("\n")}\nCaused by: ${t.stack}`}else"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack}}class x extends y{constructor(e){super("Illegal State Error [PLEASE NOTIFY DEVELOPER]",e)}}class I extends y{constructor(e,t){super("Unsupported Operation Error",e||t?`${e}${t?`\n${(e=>{const t=T({printFunctionName:!1,maxDepth:1});return(0,v.GP)(e,t).replace(/.*\s\{/g,"{").replace(/\[.*\]/g,(e=>["[Array]","[Function]"].includes(e)?e:"[Object]"))})(t)}`:""}`:void 0)}}function w(e){if(!(e instanceof Error))throw new x("Expected error to be thrown")}const k=e=>{try{return e()}catch{return}};class R extends y{constructor(e,t){super("Assertion Error",e,t)}}const O=e=>null==e,L=e=>null!=e;function F(e,t=""){if(null==e)throw new R(t||"Value is nullable")}const P=(e,t="")=>(F(e,t),e);function B(e,t,n=""){if(!(e instanceof t))throw new R(n||`Value is expected to be of type '${t.name}'`)}const D=(e,t,n="")=>(B(e,t,n),e);function j(e,t=""){return function(e,t=""){if(""===P(e,t))throw new R(t||"Expected string value to be non-empty")}(e,t),e}function M(e,t=""){if(!e)throw new R(t||"Expected predicate to be truthy")}const U=e=>"string"==typeof e,G=e=>"number"==typeof e&&!isNaN(e),V=e=>"boolean"==typeof e,H=e=>"object"==typeof e&&null!==e,W=(e,t="")=>(function(e,t=""){if(!U(e))throw new R(t||"Value is expected to be a string")}(e,t),e),$=(e,t="")=>(function(e,t=""){if(!G(e))throw new R(t||"Value is expected to be a number")}(e,t),e),z=(e,t="")=>(function(e,t=""){if(!V(e))throw new R(t||"Value is expected to be a boolean")}(e,t),e);var Y=n(66651),X=n(56046),K=n(6451),q=n(8041);const J=Y.v,Q="charset=utf-8";var Z,ee,te;!function(e){e.CONTENT_TYPE="Content-Type",e.ACCEPT="Accept"}(Z||(Z={})),function(e){e.APPLICATION_JSON="application/json",e.APPLICATION_XML="application/xml",e.APPLICATION_ZLIB="application/zlib",e.APPLICATION_XLSX="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",e.TEXT_PLAIN="text/plain",e.TEXT_HTML="text/html",e.TEXT_CSV="text/csv",e.ALL="*/*",e.MESSAGE_RFC822="message/rfc822"}(ee||(ee={})),function(e){e.GET="GET",e.PUT="PUT",e.POST="POST",e.DELETE="DELETE"}(te||(te={}));const ne={mode:"cors",credentials:"include",redirect:"follow"},oe=(e,t)=>{const n={};return e&&Object.entries(e).forEach((([e,t])=>{n[e]=t})),t&&Object.entries(t).forEach((([e,t])=>{n[e]=t})),n};class re extends Error{response;payload;constructor(e,t){super(),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.name="Network Client Error",this.response=e;const{status:n,statusText:o,url:r}=e,i=`Received response with status ${n} (${o}) for ${r}`;this.message=(t?(e=>{if(H(e))return U(e.message)?e.message:JSON.stringify(e);let t;try{t=JSON.parse(e)}catch{}return t&&U(t.message)?t.message:e})(t).substring(0,5e3):"")||i,this.payload=t}}const ie=async(e,t,n)=>{if(n?.preprocess?.(e),!e.ok){let t;try{t=await e.text(),t=JSON.parse(t)}catch{}return Promise.reject(new re(e,t))}if(n?.skipProcessing)return Promise.resolve(e);if(e.status===J.NO_CONTENT)return Promise.resolve(void 0);const o=t.headers.Accept;switch(o){case ee.APPLICATION_JSON:return e.json();case ee.TEXT_PLAIN:return e.text();default:return Promise.reject(new re(e,`Can't process response for request with Content-Type '${o}'`))}},ae=(e,t)=>{const n={};return n.Accept=ee.APPLICATION_JSON,e!==te.GET&&(n[Z.CONTENT_TYPE]=`${ee.APPLICATION_JSON};${Q}`),oe(n,t)};class se{options={};baseUrl;constructor(e){this.baseUrl=e?.baseUrl,this.options={...ne,...e?.options??{}}}async get(e,t={},n,o,r,i){return this.request(te.GET,e,void 0,t,n,o,r,i)}async put(e,t={},n={},o,r,i,a){return this.request(te.PUT,e,t,n,o,r,i,a)}async post(e,t={},n={},o,r,i,a){return this.request(te.POST,e,t,n,o,r,i,a)}async delete(e,t={},n={},o,r,i,a){return this.request(te.DELETE,e,t,n,o,r,i,a)}async request(e,t,n,o,r,i,a,s){const l=((e,t,n)=>{if(!e&&!k((()=>new URL(t))))throw new Error(`Can't build URL string: base URL is not specified and the provided URL '${t}' is not absolute`);const o=new URL(t,e);return n instanceof Object&&Object.entries(n).forEach((([e,t])=>{void 0!==t&&(Array.isArray(t)?t.filter(L).forEach((t=>o.searchParams.append(e,t.toString()))):o.searchParams.append(e,t.toString()))})),o.toString()})(this.baseUrl,t,i??{});let c;if((U(n)||H(n))&&a?.enableCompression&&(M(e!==te.GET," GET request should not have any request payload"),n=(e=>new Blob([(0,X.Kc)(H(e)?JSON.stringify(e):e)]))(n),r=oe(r,{[Z.CONTENT_TYPE]:`${ee.APPLICATION_ZLIB};${Q}`})),void 0!==n)if(U(n)||n instanceof Blob)c=n;else{if(!H(n))throw new R("Request body can only be either a 'string' or an 'object'");c=JSON.stringify(n)}const u={...this.options,...o,method:e,body:c,headers:ae(e,r)};return fetch(l,u).then((e=>0===e.status||e.status===J.UNAUTHORIZED?s?.autoReAuthenticateUrl?(e=>new Promise((t=>{const n="AUTO_AUTHENTICATION_IFRAME",o=document.getElementById(n);o?.remove();const r=document.createElement("iframe");r.id=n,r.src=e,r.style.display="none",r.addEventListener("load",(()=>{r.remove(),t()})),document.body.appendChild(r)})))(s.autoReAuthenticateUrl).then((()=>fetch(l,u))).then((e=>ie(e,u,s))):fetch(l,u).then((e=>ie(e,u,s))):ie(e,u,s))).catch((e=>(e=>e instanceof TypeError&&"Failed to fetch"===e.message)(e)?fetch(l,u).then((e=>ie(e,u,s))):Promise.reject(e)))}}const le=(e,t,n)=>{const o=new Blob([t],{type:n}),r=URL.createObjectURL(o),i=document.createElement("a");"string"==typeof i.download?(document.body.appendChild(i),i.download=e,i.href=r,i.click(),document.body.removeChild(i)):location.replace(r)},ce=(e,t=!1)=>t?K.A.parseUrl(e).query:K.A.parse(e),ue=(e,t)=>{const n=t[e];return n?decodeURIComponent(n):void 0};var de;!function(e){e.GENERIC_FAILURE="application.failure.generic",e.APPLICATION_SETUP__FAILURE="application.setup.failure",e.APPLICATION_LOAD__SUCCESS="application.load.success",e.APPLICATION_LOAD__FAILURE="application.load.failure",e.ILLEGAL_APPLICATION_STATE_OCCURRED="application.error.illegal-state",e.APPLICATION_CONFIGURATION__FAILURE="application.configuration.failure",e.IDENTITY_AUTO_FETCH__FAILURE="application.identity.auto-fetch.failure",e.DOCUMENTATION_FETCH__FAILURE="application.documentation.fetch.failure",e.DOCUMENTATION_LOAD__SKIP="application.documentation.load.skip",e.DOCUMENTATION_REQUIREMENT_CHECK__FAILURE="application.documentation.requirement-check.failure",e.CONTEXTUAL_DOCUMENTATION_LOAD__SKIP="application.virtual-assistant.contextual-documentation-load.skip",e.VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS="application.virtual-assistant.documentation-entry.access",e.TERMINAL_COMMAND_CONFIGURATION_CHECK__FAILURE="application.load.terminal-command.configuration-check.failure",e.COLOR_THEME_CONFIGURATION_CHECK__FAILURE="application.layout.color-theme.configuration-check.failure",e.SETTING_CONFIGURATION_CHECK__FAILURE="application.setting.configuration-check.failure",e.SETTING_RETRIVE_FAILURE="application.setting.retrieve.failure",e.USER_DATA_RETRIEVE_FAILURE="application.user-data.retrieve.failure",e.COMMAND_CENTER_REGISTRATION__FAILURE="application.command.registration.failure",e.APPLICATION_CONTEXT__ACCESS="application.context.access",e.APPLICATION_USAGE__INTERRUPT="application.usage.interrupt",e.NAVIGATION_BLOCKED="application.usage.navigation-blocked",e.APPLICATION_TELEMETRY_EVENT__FAILURE="application.telemetry-event.failure",e.DEBUG="development.debug"}(de||(de={}));var pe=n(97542);class ge{schema;deserializeNullAsUndefined;constructor(e,t){this.schema=e,this.deserializeNullAsUndefined=Boolean(t?.deserializeNullAsUndefined)}toJson(e){return(0,pe.lK)(this.schema,e)}fromJson(e){return(0,pe.iu)(this.schema,this.deserializeNullAsUndefined?(t=e,(0,b.A)(t,(e=>null!==e))):e);var t}}const me=e=>(0,pe.Ie)((t=>void 0===t?pe._Z:(0,pe.lK)(e,t)),(t=>(0,pe.iu)(e,t))),he=e=>(0,pe.Ie)((()=>e),(()=>e)),fe=(e,t,n)=>(0,pe.Ie)((t=>t?e(t):pe._Z),(e=>e?t(e):pe._Z),n),Ee=e=>(0,pe.Ie)((t=>t?(0,pe.lK)(e,t):pe._Z),(t=>t?(0,pe.iu)(e,t):pe._Z)),Ce=(e,t,n)=>Array.isArray(e)?e.map(t):n?.skipIfEmpty?pe._Z:[],be=(e,t,n)=>Array.isArray(e)?e.length?e.map((e=>t(e))):n?.skipIfEmpty?pe._Z:[]:pe._Z,ve=(e,t,n)=>fe((t=>be(t,(t=>e(t)),{skipIfEmpty:!0,INTERNAL__forceReturnEmptyInTest:n?.INTERNAL__forceReturnEmptyInTest})),(e=>Ce(e,(e=>t(e)),{skipIfEmpty:!1})));class _e{key;markdownText;title;text;url;related;static serialization=new ge((0,pe.PL)(_e,{markdownText:(0,pe.Ie)((e=>e),(e=>e.value?e:void 0)),related:(0,pe.lq)((0,pe.p_)((0,pe.MY)())),title:(0,pe.lq)((0,pe.MY)()),text:(0,pe.lq)((0,pe.MY)()),url:(0,pe.lq)((0,pe.MY)())}));static create(e,t){const n=_e.serialization.fromJson(e);return n.key=t,n}}var Te=n(66696);const Ae=e=>Object.entries(e).map((e=>({key:e[0],content:_e.create(e[1],e[0])})));class Se{url;links;docRegistry=new Map;contextualDocIndex=new Map;constructor(e){this.url=e.config.documentationUrl,this.links=e.config.documentationLinkEntries,e.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraKeyedDocumentationEntries?.()??[])).forEach((t=>{this.hasDocEntry(t.key)?e.logService.warn(c.create(de.DOCUMENTATION_LOAD__SKIP),t.key):this.docRegistry.set(t.key,t.content)})),e.config.keyedDocumentationEntries.forEach((e=>this.docRegistry.set(e.key,e.content)));const t=e.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraContextualDocumentationEntries?.()??[])),n=[];(0,Te.A)(e.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraRequiredDocumentationKeys?.()??[])).concat(t.map((e=>e.documentationKey)))).forEach((e=>{this.docRegistry.has(e)||n.push(e)})),n.length&&e.logService.warn(c.create(de.DOCUMENTATION_REQUIREMENT_CHECK__FAILURE),`Can't find corresponding documentation entry for keys:\n${n.map((e=>`- ${e}`)).join("\n")}`),t.forEach((t=>{if(this.hasContextualDocEntry(t.context))e.logService.warn(c.create(de.CONTEXTUAL_DOCUMENTATION_LOAD__SKIP),t.context);else{const e=this.getDocEntry(t.documentationKey);e&&this.contextualDocIndex.set(t.context,e)}})),e.config.contextualDocEntries.forEach((e=>{const t=this.getDocEntry(e.documentationKey);t&&this.contextualDocIndex.set(e.context,t)}))}getDocEntry(e){return this.docRegistry.get(e)}hasDocEntry(e){return this.docRegistry.has(e)}getContextualDocEntry(e){return this.contextualDocIndex.get(e)}hasContextualDocEntry(e){return this.contextualDocIndex.has(e)}getAllDocEntries(){return Array.from(this.docRegistry.values())}publishDocRegistry(){const e={};return this.docRegistry.forEach(((t,n)=>{e[n]=_e.serialization.toJson(t)})),e}publishContextualDocIndex(){const e={};return this.contextualDocIndex.forEach(((t,n)=>{e[n]=t.key})),e}}var Ne,ye,xe=n(83794);!function(e){e.INITIAL="INITIAL",e.IN_PROGRESS="IN_PROGRESS",e.SUCCEEDED="SUCEEDED",e.FAILED="FAILED"}(Ne||(Ne={}));class Ie{state;_message;_messageFormatter;constructor(){this.state=Ne.INITIAL}setMessage(e){this._message=e}setMessageFormatter(e){this._messageFormatter=e}reset(){return this.state=Ne.INITIAL,this}inProgress(){return this.state=Ne.IN_PROGRESS,this}fail(){return this.state=Ne.FAILED,this}pass(){return this.state=Ne.SUCCEEDED,this}complete(e=!0){return e?this.pass():this.fail(),this}sync(e){const t=e.exportData();this.state=t.state,this._message=t.message}exportData(){return{state:this.state,message:this._message}}get isInInitialState(){return this.state===Ne.INITIAL}get isInProgress(){return this.state===Ne.IN_PROGRESS}get hasFailed(){return this.state===Ne.FAILED}get hasSucceeded(){return this.state===Ne.SUCCEEDED}get message(){return this._message?this._messageFormatter?this._messageFormatter(this._message):this._message:void 0}get hasCompleted(){return this.hasFailed||this.hasSucceeded}static create(){return(0,xe.Gn)(new Ie,{state:xe.sH,_message:xe.sH,reset:xe.XI,inProgress:xe.XI,pass:xe.XI,fail:xe.XI,complete:xe.XI,setMessage:xe.XI,sync:xe.XI,isInInitialState:xe.EW,isInProgress:xe.EW,hasFailed:xe.EW,hasSucceeded:xe.EW,hasCompleted:xe.EW,message:xe.EW})}}!function(e){e.USER="user",e.ENV="env",e.RESULT="result",e.ERROR="error",e.HTTP_STATUS="status",e.HTTP_REQUEST_METHOD="method",e.HTTP_REQUEST_URL="url"}(ye||(ye={}));class we{traceEntries=[];setup(e){this.traceEntries=e}bootstrap(e){this.traceEntries.forEach((t=>{t.plugin.bootstrap(t.clientSpan,e)}))}reportSuccess(){this.traceEntries.forEach((e=>{e.plugin.concludeClientSpan(e.clientSpan,void 0)}))}reportError(e){this.traceEntries.forEach((t=>{t.plugin.concludeClientSpan(t.clientSpan,e)}))}close(){this.traceEntries.forEach((e=>{e.plugin.concludeServerSpan(e.serverSpan)}))}}class ke{plugins=[];registerPlugins(e){this.plugins=e}createTrace(e,t,n,o){const r=new we;return e&&r.setup(this.plugins.map((r=>{const i=r.createClientSpan(e);return{clientSpan:i,serverSpan:r.createServerSpan(i,t,n,o),plugin:r}}))),r}}const Re=n(37102).A;var Oe,Le;!function(e){e.STANDARD="standard",e.INCLUDE="include match",e.EXACT="exact match",e.INVERSE="excludes exact match"}(Oe||(Oe={}));class Fe{currentMode=Oe.STANDARD;onSearchModeChange;constructor(e){(0,xe.Gn)(this,{currentMode:xe.sH,isAdvancedSearchActive:xe.EW,setCurrentMode:xe.XI}),this.onSearchModeChange=e}get isAdvancedSearchActive(){return this.currentMode!==Oe.STANDARD}generateSearchText(e){switch(this.currentMode){case Oe.INCLUDE:return`'"${e}"`;case Oe.EXACT:return`="${e}"`;case Oe.INVERSE:return`!"${e}"`;default:return e}}setCurrentMode(e){this.currentMode=e,this.onSearchModeChange()}}!function(e){e.SEARCH="SEARCH",e.CONTEXTUAL_SUPPORT="CONTEXTUAL_SUPPORT"}(Le||(Le={}));class Pe{uuid=(0,i.A)();documentationKey;title;content;url;isOpen=!1;constructor(e){(0,xe.Gn)(this,{isOpen:xe.sH,setIsOpen:xe.XI}),this.documentationKey=e.key,this.title=j(e.title),this.content=e.markdownText??e.text,this.url=e.url}setIsOpen(e){this.isOpen=e}}class Be{uuid=(0,i.A)();context;title;content;url;related;constructor(e,t,n){this.context=e,this.title=t.title,this.content=t.markdownText??t.text,this.url=t.url,this.related=n}}const De=e=>Boolean(e.title&&(e.url??e.text??e.markdownText));class je{applicationStore;panelRenderingKey=(0,i.A)();isDisabled=!1;isHidden=!0;isOpen=!1;isPanelMaximized=!1;selectedTab=Le.SEARCH;currentDocumentationEntry;searchEngine;searchConfigurationState;searchState=Ie.create();searchText="";searchResults=[];showSearchConfigurationMenu=!1;isOverSearchLimit=!1;constructor(e){(0,xe.Gn)(this,{isDisabled:xe.sH,isHidden:xe.sH,isOpen:xe.sH,isPanelMaximized:xe.sH,panelRenderingKey:xe.sH,isOverSearchLimit:xe.sH,selectedTab:xe.sH,searchText:xe.sH,searchResults:xe.sH,currentDocumentationEntry:xe.sH,showSearchConfigurationMenu:xe.sH,currentContextualDocumentationEntry:xe.EW,setIsDisabled:xe.XI,setIsHidden:xe.XI,setIsOpen:xe.XI,setIsPanelMaximized:xe.XI,setSelectedTab:xe.XI,setSearchText:xe.XI,resetSearch:xe.XI,search:xe.XI,openDocumentationEntry:xe.XI,refreshPanelRendering:xe.XI,setShowSearchConfigurationMenu:xe.XI}),this.applicationStore=e,this.searchEngine=new Re(this.applicationStore.documentationService.getAllDocEntries().filter(De),{includeScore:!0,shouldSort:!0,ignoreLocation:!0,threshold:.2,keys:[{name:"title",weight:4},{name:"text",weight:1},{name:"markdownText.value",weight:1}],useExtendedSearch:!0}),this.searchConfigurationState=new Fe((()=>{this.search()}))}get currentContextualDocumentationEntry(){if(!this.applicationStore.navigationContextService.currentContext)return;const e=this.applicationStore.navigationContextService.currentContext.key,t=this.applicationStore.documentationService.getContextualDocEntry(e);return t?new Be(e,t,(t.related??[]).map((e=>this.applicationStore.documentationService.getDocEntry(e))).filter(L).filter(De).map((e=>new Pe(e)))):void 0}openDocumentationEntry(e){const t=this.applicationStore.documentationService.getDocEntry(e);t&&(this.setIsOpen(!0),this.setIsHidden(!1),this.currentDocumentationEntry=new Pe(t),this.currentDocumentationEntry.setIsOpen(!0),this.resetSearch())}openDocumentationEntryLink(e){const t=this.applicationStore.documentationService.getDocEntry(e);t&&((e=>De(e)&&Boolean(e.text??e.markdownText))(t)?this.openDocumentationEntry(t.key):t.url&&this.applicationStore.navigationService.navigator.visitAddress(t.url))}setIsDisabled(e){this.isDisabled=e}setIsHidden(e){this.isHidden=e}setIsPanelMaximized(e){this.isPanelMaximized=e}hideAssistant(){this.setIsHidden(!0),this.setIsOpen(!1)}toggleAssistant(){this.isHidden?this.setIsHidden(!1):this.hideAssistant()}setIsOpen(e){this.isOpen=e}setSelectedTab(e){this.selectedTab=e}refreshPanelRendering(){this.panelRenderingKey=(0,i.A)()}setSearchText(e){this.searchText=e}resetSearch(){this.searchText="",this.searchResults=[],this.searchState.complete()}search(){this.searchText?(this.currentDocumentationEntry=void 0,this.searchState.inProgress(),this.searchResults=Array.from(this.searchEngine.search(this.searchConfigurationState.generateSearchText(this.searchText),{limit:101}).values()).map((e=>new Pe(e.item))),this.searchResults.length>100?(this.isOverSearchLimit=!0,this.searchResults=this.searchResults.slice(0,100)):this.isOverSearchLimit=!1,this.searchState.complete()):this.searchResults=[]}setShowSearchConfigurationMenu(e){this.showSearchConfigurationMenu=e}}class Me{notifierPlugins=[];registerEventNotifierPlugins(e){this.notifierPlugins=e}notify(e,t){this.notifierPlugins.forEach((n=>n.notify(e,t)))}}class Ue{static logEvent_ApplicationInitializationSucceeded(e,t){e.logEvent(de.APPLICATION_LOAD__SUCCESS,{application:{name:t.config.appName,version:t.config.appVersion,env:t.config.env},browser:{userAgent:navigator.userAgent},screen:{height:window.screen.height,width:window.screen.width}})}static logEvent_ApplicationContextAccessed(e,t){e.logEvent(de.APPLICATION_CONTEXT__ACCESS,t)}static logEvent_VirtualAssistantDocumentationEntryAccessed(e,t){e.logEvent(de.VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS,t)}static logEvent_ApplicationUsageInterrupted(e){e.logEvent(de.APPLICATION_USAGE__INTERRUPT,{})}}class Ge{applicationStore;contextStack=[];constructor(e){(0,xe.Gn)(this,{contextStack:xe.sH,currentContext:xe.EW,push:xe.XI,pop:xe.XI}),this.applicationStore=e}get currentContext(){return this.contextStack.length?this.contextStack[this.contextStack.length-1]:void 0}push(e){const t=this.contextStack.filter((e=>!e.isTransient));if(t.find((t=>t.key===e.key)))throw new x(`Found multiple context '${e.key}' in application navigation context stack`);t.push(e),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraAccessEventLoggingApplicationContextKeys?.()??[])).includes(e.key)&&Ue.logEvent_ApplicationContextAccessed(this.applicationStore.telemetryService,{key:e.key}),this.contextStack=t}pop(e){const t=this.contextStack.find((t=>t.key===e.key));if(!t)return;const n=this.contextStack.indexOf(t);-1!==n&&(this.contextStack=this.contextStack.slice(0,n).filter((e=>!e.isTransient)))}}class Ve{applicationStore;commandRegistry=new Map;constructor(e){(0,xe.Gn)(this,{commandRegistry:xe.sH,registerCommand:xe.XI,deregisterCommand:xe.XI}),this.applicationStore=e}registerCommand(e){const t=e.key;this.commandRegistry.has(t)?this.applicationStore.logService.warn(c.create(de.COMMAND_CENTER_REGISTRATION__FAILURE),`Can't register command: command '${t}' is already registered`):this.commandRegistry.set(t,e)}deregisterCommand(e){this.commandRegistry.delete(e)}runCommand(e,t){const n=this.commandRegistry.get(e);return!(!n||n.trigger&&!n.trigger()||(n.action?.(t),0))}}class He{applicationStore;keyMap=new Map;commandKeyMap=new Map;isHotkeysBlocked=!1;constructor(e){(0,xe.Gn)(this,{keyMap:xe.sH,commandKeyMap:xe.sH,isHotkeysBlocked:xe.sH,addHotkey:xe.XI,blockGlobalHotkeys:xe.XI,unblockGlobalHotkeys:xe.XI}),this.applicationStore=e,this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraKeyedCommandConfigEntries?.()??[])).forEach((e=>{const t=[e.content.defaultKeyboardShortcut,...e.content.additionalKeyboardShortcuts??[]].filter(L);t.length?t.forEach((t=>this.addHotkey(e.key,t))):this.commandKeyMap.has(e.key)||this.commandKeyMap.set(e.key,[])}))}blockGlobalHotkeys(){this.isHotkeysBlocked=!0}unblockGlobalHotkeys(){this.isHotkeysBlocked=!1}addHotkey(e,t){this.commandKeyMap.set(e,[...this.commandKeyMap.get(e)??[],t]),this.keyMap.set(t,[...(this.keyMap.get(t)??[]).filter((t=>t!==e)),e])}dispatch(e){if(this.isHotkeysBlocked)return;const t=this.keyMap.get(e)??[];for(const e of t)if(this.applicationStore.commandService.runCommand(e))return}}var We=n(84594),$e=n(34462),ze=n(720),Ye=n(75974),Xe=n(90382);const Ke="yyyy-MM-dd'T'HH:mm:ss";var qe;!function(e){e.RESET="",e.BOLD="",e.DIM="",e.ITALIC="",e.UNDERLINE="",e.BLINKING="",e.STRIKETHROUGH="",e.BLACK="",e.RED="",e.GREEN="",e.YELLOW="",e.BLUE="",e.MAGENTA="",e.CYAN="",e.WHITE="",e.BRIGHT_BLACK="",e.BRIGHT_RED="",e.BRIGHT_GREEN="",e.BRIGHT_YELLOW="",e.BRIGHT_BLUE="",e.BRIGHT_MAGENTA="",e.BRIGHT_CYAN="",e.BRIGHT_WHITE="",e.DIMMED_BLACK="",e.DIMMED_RED="",e.DIMMED_GREEN="",e.DIMMED_YELLOW="",e.DIMMED_BLUE="",e.DIMMED_MAGENTA="",e.DIMMED_CYAN="",e.DIMMED_WHITE="",e.BLACK_BG="",e.RED_BG="",e.GREEN_BG="",e.YELLOW_BG="",e.BLUE_BG="",e.MAGENTA_BG="",e.CYAN_BG="",e.WHITE_BG="",e.BRIGHT_BLACK_BG="",e.BRIGHT_RED_BG="",e.BRIGHT_GREEN_BG="",e.BRIGHT_YELLOW_BG="",e.BRIGHT_BLUE_BG="",e.BRIGHT_MAGENTA_BG="",e.BRIGHT_CYAN_BG="",e.BRIGHT_WHITE_BG="",e.DIMMED_BLACK_BG="",e.DIMMED_RED_BG="",e.DIMMED_GREEN_BG="",e.DIMMED_YELLOW_BG="",e.DIMMED_BLUE_BG="",e.DIMMED_MAGENTA_BG="",e.DIMMED_CYAN_BG="",e.DIMMED_WHITE_BG=""}(qe||(qe={}));const Je=(e,t)=>`[${e};${t}H`;class Qe{searchInput;searchText="";useRegex=!1;matchWholeWord=!1;matchCaseSensitive=!1;resultCount;currentResultIndex;constructor(){(0,xe.Gn)(this,{searchText:xe.sH,useRegex:xe.sH,matchWholeWord:xe.sH,matchCaseSensitive:xe.sH,resultCount:xe.sH,currentResultIndex:xe.sH})}setSearchInput(e){this.searchInput=e}focus(){this.searchInput?.focus()}}class Ze{applicationStore;searchConfig=new Qe;constructor(e){(0,xe.Gn)(this,{setSearchText:xe.XI,setSearchRegex:xe.XI,setSearchWholeWord:xe.XI,setSearchCaseSensitive:xe.XI,setSearchResultCount:xe.XI,setSearchCurrentResultIndex:xe.XI}),this.applicationStore=e}setSearchText(e){this.searchConfig.searchText=e}setSearchRegex(e){this.searchConfig.useRegex=e}setSearchWholeWord(e){this.searchConfig.matchWholeWord=e}setSearchCaseSensitive(e){this.searchConfig.matchCaseSensitive=e}setSearchResultCount(e){this.searchConfig.resultCount=e}setSearchCurrentResultIndex(e){this.searchConfig.currentResultIndex=e}}class et extends Ze{preserveLog=!1;commandRegistry=new Map;constructor(e){super(e),(0,xe.Gn)(this,{preserveLog:xe.sH,setPreserveLog:xe.XI})}setPreserveLog(e){this.preserveLog=e}showHelp(){}showCommonANSIEscapeSequences(){}}var tt=n(29481);n(24404),n(41880);const nt=e=>e.length>=1?`${e[0].toUpperCase()}${e.substring(1,e.length)}`:e,ot=["a","an","the","but","by","nor","and","or","so","as","yet","for","in","nor","of","on","at","out","to","up"],rt=e=>(e??"").trim().replace(/\b(?:\w+)\b/gu,(e=>ot.includes(e.toLowerCase())?e.toLowerCase():nt(e))).replace(/^(?:\w+)\b/u,(e=>nt(e))).replace(/\b(?:\w+)$/u,(e=>nt(e)));var it;function at(e){return e.trim().split(" ").map((e=>{const t=e.split(/\b\+/),n=P(t.pop(),"Can't parse key binding: last part must be a non-modifier key");return{modifiers:t,key:n}}))}!function(e){e.TAB="Tab",e.CAPSLOCK="CapsLock",e.SHIFT="Shift",e.META="Meta",e.ALT="Alt",e.CONTROL="Control",e.SPACE="Space",e.ESC="Escape",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.ENTER="Enter",e.DELETE="Delete",e.BACKSPACE="Backspace",e.BACKQUOTE="Backquote"}(it||(it={}));const st=(e,t)=>t.key===e.code&&t.modifiers.every((t=>e.getModifierState(t)))&&![it.SHIFT,it.META,it.ALT,it.CONTROL].find((n=>t.key!==n&&e.getModifierState(n)&&!t.modifiers.includes(n))),lt=(e,t)=>st(e,P(at(t)[0]));function ct(e){const t=new Map;let n=null;return o=>{o instanceof KeyboardEvent&&((0,tt.A)(Object.values(e).flatMap((e=>e.combinations.map((t=>({combination:t,handler:e.handler}))))).filter((e=>e.combination.length)),(e=>e.combination)).forEach((e=>{const n=e.combination,r=at(e.combination);if(!r.length)return;const i=t.get(n)??r,a=P(i[0]);st(o,a)?i.length>1?t.set(n,i.slice(1)):(t.delete(n),e.handler(n,o)):o.getModifierState(o.key)||t.delete(n)})),n&&clearTimeout(n),n=setTimeout(t.clear.bind(t),1e3))}}var ut=n(48187),dt=n(12285),pt=n(97088),gt=n(34336),mt=n(22351);const ht=(0,ut.A)({transitions:{create:()=>"none"},components:{MuiButtonBase:{defaultProps:{disableRipple:!0}}}}),ft=e=>{const{children:t}=e;return(0,E.jsx)(dt.A,{injectFirst:!0,children:(0,E.jsx)(pt.A,{theme:ht,children:(0,E.jsx)(gt.$,{dateAdapter:mt.h,children:t})})})};var Et=n(49676),Ct=n(23432),bt=n(25150),vt=n(20306),_t=n(50692),Tt=n(96242),At=n(54357);const St=(e,t)=>{const n=e=>{const{children:n,className:o}=e;return(0,E.jsx)("div",{className:(0,At.$)(t,o),"data-testid":e["data-testid"],children:n})};return n.displayName=e,n},Nt=e=>{const{children:t,darkMode:n,className:o}=e;return(0,E.jsx)("div",{className:(0,At.$)("modal",{"modal--dark":n},o),children:t})},yt=e=>{const{title:t,icon:n,className:o}=e;return(0,E.jsxs)("div",{className:(0,At.$)("modal__title",o),children:[n&&(0,E.jsx)("div",{className:"modal__title__icon",children:n}),(0,E.jsx)("div",{className:"modal__title__label",children:rt(t)})]})},xt=e=>{const{title:t,children:n,className:o}=e;return!n&&t?(0,E.jsx)("div",{className:(0,At.$)("modal__header",o),children:(0,E.jsx)(yt,{title:t})}):(0,E.jsx)("div",{className:(0,At.$)("modal__header",o),children:n})},It=(St("ModalHeaderActions","modal__header__actions"),St("ModalBody","modal__body")),wt=St("ModalFooter","modal__footer");var kt,Rt;St("ModalFooterStatus","modal__footer__status"),function(e){e.STANDARD="STANDARD",e.CAUTION="CAUTION",e.ERROR="ERROR"}(kt||(kt={})),function(e){e.STANDARD="STANDARD",e.PROCEED_WITH_CAUTION="PROCEED_WITH_CAUTION",e.PROCEED="PROCEED"}(Rt||(Rt={}));class Ot{applicationStore;blockingAlertInfo;actionAlertInfo;constructor(e){(0,xe.Gn)(this,{blockingAlertInfo:xe.sH,actionAlertInfo:xe.sH,setBlockingAlert:xe.XI,setActionAlertInfo:xe.XI}),this.applicationStore=e}setBlockingAlert(e){e?this.applicationStore.keyboardShortcutsService.blockGlobalHotkeys():this.applicationStore.keyboardShortcutsService.unblockGlobalHotkeys(),this.blockingAlertInfo=e}setActionAlertInfo(e){this.actionAlertInfo&&e&&this.applicationStore.notificationService.notifyIllegalState("Action alert is stacked: new alert is invoked while another one is being displayed"),e?this.applicationStore.keyboardShortcutsService.blockGlobalHotkeys():this.applicationStore.keyboardShortcutsService.unblockGlobalHotkeys(),this.actionAlertInfo=e}}var Lt=n(14041);const Ft=(0,Lt.createContext)(void 0),Pt=()=>P((0,Lt.useContext)(Ft),"Can't find application store in context"),Bt=e=>{const{children:t,store:n}=e,o=(0,bt.iz)((()=>n));return(0,E.jsx)(Ft.Provider,{value:o,children:t})},Dt=e=>{switch(e){case Rt.PROCEED_WITH_CAUTION:return"btn--caution";case Rt.PROCEED:case Rt.STANDARD:default:return"btn--dark"}},jt=(0,bt.PA)((e=>{const{info:t}=e,n=Pt(),{title:o,message:r,prompt:i,type:a,onClose:s,onEnter:l,actions:c}=t,u=()=>{s?.(),n.alertService.setActionAlertInfo(void 0)};return(0,E.jsx)(Tt.A,{open:Boolean(n.alertService.actionAlertInfo),onClose:_,TransitionProps:{onEnter:()=>l?.()},children:(0,E.jsxs)("form",{onSubmit:e=>{e.preventDefault(),c.find((e=>e.default))?.handler?.(),u()},className:`modal search-modal modal--dark blocking-alert blocking-alert--${(a??kt.STANDARD).toLowerCase()}`,children:[o&&(0,E.jsx)(xt,{title:o}),(0,E.jsxs)(It,{children:[(0,E.jsx)("div",{className:"blocking-alert__summary-text",children:r}),(0,E.jsx)("div",{className:"blocking-alert__prompt-text",children:i})]}),(0,E.jsxs)(wt,{children:[c.map(((e,t)=>(0,E.jsx)("button",{type:e.default?"submit":"button",className:`btn btn--dark ${Dt(e.type??Rt.STANDARD)}`,onClick:t=>{t.preventDefault(),e.handler?.(),u()},autoFocus:Boolean(e.default),children:e.label},t))),!c.length&&(0,E.jsx)("button",{type:"button",className:"btn btn--dark blocking-alert__action--standard",onClick:u,children:"Cancel"})]})]})})})),Mt=(0,bt.PA)((()=>{const e=Pt().alertService.actionAlertInfo;return e?(0,E.jsx)(jt,{info:e}):null})),Ut=e=>{const{isLoading:t,className:n}=e,o=(0,Lt.useRef)(null);return(0,Lt.useEffect)((()=>{o.current&&(t?o.current.parentElement?.classList.add("panel-loading-indicator__container"):o.current.parentElement?.classList.remove("panel-loading-indicator__container"))}),[t]),(0,E.jsx)("div",{ref:o,className:(0,At.$)(n,"panel-loading-indicator"+(t?"":"--disabled"))})},Gt=(0,bt.PA)((()=>{const e=Pt(),t=e.alertService.blockingAlertInfo;return t?(0,E.jsx)(Tt.A,{open:Boolean(t),onClose:_,classes:{root:"blocking-alert__root-container",container:"blocking-alert__container"},children:(0,E.jsxs)(Nt,{darkMode:!e.layoutService.TEMPORARY__isLightColorThemeEnabled,className:"blocking-alert",children:[(0,E.jsx)(Ut,{isLoading:Boolean(t.showLoading)}),(0,E.jsxs)(It,{children:[(0,E.jsx)("div",{className:"blocking-alert__message",children:t.message}),t.prompt&&(0,E.jsx)("div",{className:"blocking-alert__message__prompt",children:t.prompt})]})]})}):null}));var Vt=n(94269),Ht=n(59896),Wt=n(86750),$t=n(87997),zt=n(56819);const Yt=Vt.RQJ,Xt=Ht.QRP,Kt=Wt.QCr,qt=Wt._Hm,Jt=Wt.Pcn,Qt=Wt.gZZ,Zt=Wt.__w,en=Wt.KSO,tn=Wt.UnJ,nn=Wt.A7C,on=Wt.BS8,rn=Wt.KRc,an=Wt.Su4,sn=Wt.kxO,ln=Wt.vq8,cn=Wt.GfC,un=Wt.SoL,dn=Wt.Wx3,pn=$t.f7n,gn=$t.Lun,mn=zt.oss,hn=zt.Br,fn=zt.YZI;var En=n(82801),Cn=n(98960);const bn=6e3;var vn;!function(e){e.ILEGAL_STATE="ILEGAL_STATE",e.ERROR="ERROR",e.WARNING="WARNING",e.SUCCESS="SUCCESS",e.INFO="INFO"}(vn||(vn={}));class _n{severity;message;actions;autoHideDuration;constructor(e,t,n,o){this.severity=e,this.message=t,this.actions=n,this.autoHideDuration=o}}class Tn{notification;constructor(){(0,xe.Gn)(this,{notification:xe.sH,setNotification:xe.XI,notify:xe.XI,notifySuccess:xe.XI,notifyWarning:xe.XI,notifyIllegalState:xe.XI,notifyError:xe.XI})}setNotification(e){this.notification=e}notify(e,t,n){this.setNotification(new _n(vn.INFO,e,t??[],null===n?void 0:n??bn))}notifySuccess(e,t,n){this.setNotification(new _n(vn.SUCCESS,e,t??[],null===n?void 0:n??bn))}notifyWarning(e,t,n){this.setNotification(new _n(vn.WARNING,e instanceof Error?e.message:e,t??[],null===n?void 0:n??bn))}notifyError(e,t){const n=this.getErrorMessage(e);n&&this.setNotification(new _n(vn.ERROR,n,t??[],void 0))}getErrorMessage(e){let t;return e instanceof N?t=e.detail:e instanceof Error?t=e.message:(M(U(e),"Can't display error"),t=e),t}notifyIllegalState(e,t,n){this.setNotification(new _n(vn.ILEGAL_STATE,U(e)?`[PLEASE NOTIFY DEVELOPER] ${e}`:e,t??[],null===n?void 0:n??bn))}notifyUnsupportedFeature(e){this.notifyWarning(`Unsupported feature: ${e}`)}notifyAndReturnAlternativeOnError=(e,t)=>{try{return e()}catch(e){return w(e),this.notifyIllegalState(e.message),t}}}const An=(0,bt.PA)((()=>{const e=Pt(),t=e.notificationService.notification,n=Boolean(t),o=t?.message??"",r=t?.severity??vn.INFO,[i,a]=(0,Lt.useState)(!1);let s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--info",children:(0,E.jsx)(Zt,{})});switch(r){case vn.ILEGAL_STATE:s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--error",children:(0,E.jsx)(rn,{})});break;case vn.ERROR:s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--error",children:(0,E.jsx)(qt,{})});break;case vn.WARNING:s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--warning",children:(0,E.jsx)(on,{})});break;case vn.SUCCESS:s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--success",children:(0,E.jsx)(nn,{})})}const l=()=>{e.notificationService.setNotification(void 0),a(!1)},c=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(o)));return(0,E.jsx)(En.A,{classes:{root:"notification",anchorOriginBottomRight:"notification__position"},anchorOrigin:{vertical:"bottom",horizontal:"right"},open:n,autoHideDuration:t?t.autoHideDuration??null:bn,onClose:(e,t)=>{"timeout"===t&&l()},children:(0,E.jsx)(Cn.A,{classes:{root:"notification__content",message:"notification__message",action:"notification__actions"},message:(0,E.jsxs)("div",{className:"notification__message__content",children:[s,(0,E.jsx)("div",{className:(0,At.$)("notification__message__content__text",{"notification__message__content__text--expanded":i}),onClick:c,title:"Click to Copy",children:o})]}),action:[(0,E.jsx)("button",{className:"notification__action",onClick:()=>a(!i),tabIndex:-1,title:i?"Collapse":"Expand",children:i?(0,E.jsx)(mn,{}):(0,E.jsx)(hn,{})},"expand"),(0,E.jsx)("button",{className:"notification__action",onClick:l,tabIndex:-1,title:"Dismiss",children:(0,E.jsx)(Kt,{})},"close")]})},"string"==typeof o||"number"==typeof o?o:"")}));var Sn=n(12436);const Nn=e=>{const{children:t,classes:n,...o}=e;return(0,E.jsx)(Sn.A,{classes:{...n??{},paper:"mui-menu__paper",list:"mui-menu__list"},transitionDuration:0,...o,children:e.children})},yn=e=>{const{className:t,children:n,menuProps:o,content:r,disabled:i,onClose:a,onOpen:s}=e,l=(0,Lt.useRef)(null),[c,u]=(0,Lt.useState)(!1),[d,p]=(0,Lt.useState)(),[g,m]=(0,Lt.useState)(0),[h,f]=(0,Lt.useState)(0),C=()=>{p(void 0),u(!1),f(0),m(0)},b=e=>{e.stopPropagation(),e.preventDefault(),C(),a?.()},v=e=>{if(e.stopPropagation(),e.preventDefault(),!i&&(s?.(),l.current)){const t=l.current.getBoundingClientRect(),n=t.left+(window.scrollX||document.documentElement.scrollLeft),o=t.top+(window.scrollY||document.documentElement.scrollTop),{clientX:r,clientY:i,target:s}=e,c=s;if(d!==c&&!(document.elementsFromPoint(r,i).some((e=>e===c))&&n<=r&&r<=n+t.width&&o<=i&&i<=o+t.height))return C(),void a?.();p(c),u(!0),f(i),m(r)}};return(0,E.jsxs)("div",{ref:l,className:t,onContextMenu:v,children:[n,(0,E.jsx)(Nn,{open:c,anchorPosition:{left:g,top:h},onClose:b,anchorReference:"anchorPosition",BackdropProps:{invisible:!0,onContextMenu:v},disableRestoreFocus:!0,transitionDuration:0,onClick:b,...o,children:c&&r},`${g}, ${h}`)]})},xn=(0,Lt.forwardRef)((function(e,t){const{className:n,children:o,...r}=e;return(0,E.jsx)("div",{ref:t,className:(0,At.$)("menu",n),...r,children:o})})),In=e=>{const{className:t,onClick:n,title:o,disabled:r,children:i,...a}=e;return(0,E.jsx)("button",{className:(0,At.$)("menu__item",t),disabled:Boolean(r),title:o,onClick:n,...a,children:i})};St("MenuContentDivider","menu__divider"),St("MenuContentItemIcon","menu__item__icon"),St("MenuContentItemLabel","menu__item__label");var wn=n(87062),kn=n(29163),Rn=n(30559);const On=e=>((0,Lt.useEffect)((()=>{Rn.A.initialize({startOnLoad:!0,theme:"dark"}),Rn.A.contentLoaded()}),[e.value]),(0,E.jsx)(wn.o,{className:(0,At.$)("markdown-content",e.className),remarkPlugins:[kn.A],components:e.components??{code:e=>{const{children:t,className:n,node:o,...r}=e,i=/language-(?<language>\w+)/.exec(n??"");return i?.groups?.language?(0,E.jsx)("code",{...r,className:(0,At.$)(i.groups.language),children:t}):(0,E.jsx)("code",{...r,className:n,children:t})}},children:e.value.value}));var Ln=n(49073),Fn=n(89463),Pn=(n(11097),n(53213)),Bn=n(65318),Dn=n(12777);function jn(...e){return(0,Ln.QP)((0,At.$)(e))}function Mn(e){const t=(0,Lt.useRef)(e?.skipOnMount),n=e?.refreshMode,o=e?.refreshRate??1e3,r=(0,Lt.useMemo)((()=>({leading:e?.refreshOptions?.leading,trailing:e?.refreshOptions?.trailing})),[e?.refreshOptions?.leading,e?.refreshOptions?.trailing]),[i,a]=(0,Lt.useState)({width:void 0,height:void 0}),s=(0,Lt.useRef)(null),l=(0,Lt.useMemo)((()=>e?.targetRef??s),[e?.targetRef]),c=e?.onResize,u=(0,Lt.useCallback)((e=>{t.current?t.current=!1:e.forEach((e=>{const t={width:e.contentRect.width,height:e.contentRect.height};a((n=>n.width===t.width&&n.height===t.height?n:(c?.({width:t.width,height:t.height,entry:e}),t)))}))}),[t,c]),d=(0,Lt.useMemo)((()=>{switch(n){case"debounce":return(0,Bn.A)(u,o,r);case"throttle":return(0,Dn.A)(u,o,r);default:return u}}),[u,n,o,r]);return(0,Lt.useEffect)((()=>{let e;return l.current?(e=new window.ResizeObserver(d),e.observe(l.current)):(c?.({width:void 0,height:void 0,entry:void 0}),a({width:void 0,height:void 0})),()=>{e?.disconnect(),"cancel"in d&&d.cancel()}}),[d,c,l]),{ref:l,...i}}const Un=e=>{const{children:t}=e,{ref:n,width:o,height:r}=Mn({refreshMode:"throttle",refreshRate:50,refreshOptions:{trailing:!0}}),[i,a]=(0,Lt.useState)(!1),{ref:s,width:l,height:c}=Mn({refreshMode:"throttle",refreshRate:50,refreshOptions:{trailing:!0}});return(0,Lt.useEffect)((()=>{a((l??0)>(o??0)+40&&(c??0)>(r??0)+40)}),[l,c,o,r]),(0,E.jsx)("div",{ref:s,className:"panel__content__blank",children:(0,E.jsx)("div",{ref:n,className:(0,At.$)("panel__content__blank__content",{"panel__content__blank__content--hide":!i}),children:t})})};var Gn=n(76367),Vn=n(14779),Hn=n(38347);const Wn=e=>{const{children:t,options:n,size:o,className:r,...i}=e,a=((e,t)=>{const n=[];for(let o=0;o<e.length;o+=t)n.push(e.slice(o,o+t));return n})(n,o);return(0,E.jsxs)("div",{className:(0,At.$)("mui-radio-group",r),children:[a.map(((e,t)=>(0,E.jsx)("div",{children:(0,E.jsx)(Gn.A,{className:"mui-radio-group__group",...i,children:e.map((e=>(0,E.jsx)(Vn.A,{className:"mui-radio-group__group__column",style:{width:100/o+"%"},value:e,control:(0,E.jsx)(Hn.A,{className:"mui-radio-group__group__item__radio-btn",classes:{checked:"mui-radio-group__group__item__radio-btn--checked"}}),label:(0,E.jsx)("div",{className:"mui-radio-group__group__item__label",children:e})},e)))})},t))),t]})};var $n=n(92895);const zn=e=>{const{children:t,...n}=e;return(0,E.jsx)($n.Ay,{classes:{paper:"mui-popover__paper"},transitionDuration:0,...n,children:e.children})};var Yn,Xn=n(64);!function(e){e.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX="question.how-to-use-advanced-search-syntax"}(Yn||(Yn={}));const Kn=(0,bt.PA)((e=>{const{entry:t}=e,n=Pt(),o=()=>{t.isOpen||Ue.logEvent_VirtualAssistantDocumentationEntryAccessed(n.telemetryService,{key:t.documentationKey}),t.setIsOpen(!t.isOpen)},r=n.guardUnhandledError((()=>n.clipboardService.copyTextToClipboard(t.documentationKey)));return(0,E.jsx)(yn,{className:"virtual-assistant__doc-entry",menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsx)(xn,{children:(0,E.jsx)(In,{onClick:r,children:"Copy Documentation Key"})}),children:(0,E.jsxs)("div",{className:"virtual-assistant__doc-entry",children:[(0,E.jsxs)("div",{className:"virtual-assistant__doc-entry__header",children:[(0,E.jsx)("button",{className:(0,At.$)("virtual-assistant__doc-entry__expand-icon",{"virtual-assistant__doc-entry__expand-icon--disabled":!t.content}),disabled:!t.content,tabIndex:-1,onClick:o,children:t.isOpen?(0,E.jsx)(mn,{}):(0,E.jsx)(fn,{})}),t.url?(0,E.jsx)("a",{className:"virtual-assistant__doc-entry__title virtual-assistant__doc-entry__title--link",rel:"noopener noreferrer",target:"_blank",href:t.url,onClick:()=>{Ue.logEvent_VirtualAssistantDocumentationEntryAccessed(n.telemetryService,{key:t.documentationKey})},title:"Click to see external documentation",children:t.title}):(0,E.jsx)("div",{className:"virtual-assistant__doc-entry__title",onClick:o,children:t.title})]}),t.isOpen&&t.content&&(0,E.jsx)("div",{className:"virtual-assistant__doc-entry__content",children:U(t.content)?(0,E.jsx)("div",{className:"virtual-assistant__doc-entry__content__text",children:t.content}):(0,E.jsx)(On,{className:"virtual-assistant__doc-entry__content__markdown-text",value:t.content})})]})})})),qn=(0,bt.PA)((()=>{const e=Pt(),t=e.assistantService.currentContextualDocumentationEntry,n=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(t?.context??""))),o=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(e.navigationContextService.currentContext?.key??""))),r=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(e.navigationContextService.contextStack.map((e=>e.key)).join(" > "))));return(0,E.jsxs)(yn,{className:"virtual-assistant__contextual-support",disabled:!t,menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsxs)(xn,{children:[(0,E.jsx)(In,{onClick:n,children:"Copy Context ID"}),(0,E.jsx)(In,{onClick:o,children:"Copy Current Context ID"}),(0,E.jsx)(In,{onClick:r,children:"Copy Context Stack"})]}),children:[t&&(0,E.jsxs)("div",{className:"virtual-assistant__contextual-support__content",children:[t.title&&(0,E.jsx)("div",{className:"virtual-assistant__contextual-support__title",children:t.title}),t.content&&(0,E.jsx)(E.Fragment,{children:U(t.content)?(0,E.jsx)("div",{className:"virtual-assistant__contextual-support__text",children:t.content}):(0,E.jsx)(On,{className:"virtual-assistant__contextual-support__markdown-text",value:t.content})}),t.related.length&&(0,E.jsxs)("div",{className:"virtual-assistant__contextual-support__relevant-entries",children:[(0,E.jsxs)("div",{className:"virtual-assistant__contextual-support__relevant-entries__title",children:["Related entries (",t.related.length,")"]}),t.related.map((e=>(0,E.jsx)(Kn,{entry:e},e.uuid)))]})]}),!t&&(0,E.jsx)(Un,{children:(0,E.jsxs)("div",{className:"virtual-assistant__panel__placeholder",children:[(0,E.jsx)(un,{className:"virtual-assistant__panel__placeholder__icon"}),(0,E.jsx)("div",{className:"virtual-assistant__panel__placeholder__message",children:"No contextual documentation found!"}),(0,E.jsx)("div",{className:"virtual-assistant__panel__placeholder__instruction",children:"Keep using the app. When contextual help is available, we will let you know!"})]})})]})})),Jn=(0,bt.PA)((()=>{const e=Pt(),t=(0,Lt.useRef)(null),n=e.assistantService,o=n.searchText,r=(0,Lt.useMemo)((()=>(0,Bn.A)((()=>n.search()),100)),[n]);return(0,Lt.useEffect)((()=>{t.current?.focus()}),[]),(0,E.jsxs)("div",{className:"virtual-assistant__search",children:[(0,E.jsxs)("div",{className:"virtual-assistant__search__header",children:[(0,E.jsx)("input",{ref:t,onClick:()=>{document.querySelectorAll('[role="dialog"]').length&&t.current!==document.activeElement&&n.refreshPanelRendering()},className:(0,At.$)("virtual-assistant__search__input input--dark",{"virtual-assistant__search__input--searching":o}),spellCheck:!1,onChange:e=>{n.setSearchText(e.target.value),r()},value:o,placeholder:"Ask me a question"}),o&&(0,E.jsx)("div",{className:"virtual-assistant__search__input__search__count",children:n.searchResults.length+(n.isOverSearchLimit?"+":"")}),(0,E.jsx)("button",{className:(0,At.$)("virtual-assistant__search__input__config__trigger",{"virtual-assistant__search__input__config__trigger--toggled":n.showSearchConfigurationMenu,"virtual-assistant__search__input__config__trigger--active":n.searchConfigurationState.isAdvancedSearchActive}),tabIndex:-1,onClick:()=>n.setShowSearchConfigurationMenu(!n.showSearchConfigurationMenu),title:(n.searchConfigurationState.isAdvancedSearchActive?"Advanced search is currently active\n":"")+"Click to toggle search config menu",children:(0,E.jsx)(Jt,{})}),o?(0,E.jsx)("button",{className:"virtual-assistant__search__input__clear-btn",tabIndex:-1,onClick:()=>{n.resetSearch(),n.currentDocumentationEntry=void 0,t.current?.focus()},title:"Clear",children:(0,E.jsx)(Kt,{})}):(0,E.jsx)("div",{className:"virtual-assistant__search__input__search__icon",children:(0,E.jsx)(en,{})})]}),(0,E.jsxs)("div",{className:"virtual-assistant__search__content",children:[(0,E.jsx)(Ut,{isLoading:n.searchState.isInProgress}),(0,E.jsx)("div",{className:(0,At.$)("virtual-assistant__search__input__config__panel",{"virtual-assistant__search__input__config__panel--toggled":n.showSearchConfigurationMenu}),children:(0,E.jsxs)("div",{className:"virtual-assistant__search__input__advanced-config__panel",children:[(0,E.jsxs)("div",{className:"virtual-assistant__search__input__advanced-config__panel__header__label",children:["search config",e.documentationService.hasDocEntry(Yn.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX)&&(0,E.jsx)("div",{onClick:()=>n.openDocumentationEntryLink(Yn.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX),title:"Click to see documentation",className:"virtual-assistant__search__input__advanced-config__panel__header__label__hint",children:(0,E.jsx)(Qt,{})})]}),(0,E.jsx)("div",{children:(0,E.jsx)(Wn,{value:n.searchConfigurationState.currentMode,onChange:e=>{const t=e.target.value;n.searchConfigurationState.setCurrentMode(t)},row:!1,options:[Oe.STANDARD,Oe.INCLUDE,Oe.EXACT,Oe.INVERSE],size:1})})]})}),n.currentDocumentationEntry&&(0,E.jsx)("div",{className:"virtual-assistant__search__results",children:(0,E.jsx)(Kn,{entry:n.currentDocumentationEntry},n.currentDocumentationEntry.uuid)}),!n.currentDocumentationEntry&&(0,E.jsxs)(E.Fragment,{children:[Boolean(n.searchResults.length)&&(0,E.jsx)("div",{className:"virtual-assistant__search__results",children:n.searchResults.map((e=>(0,E.jsx)(Kn,{entry:e},e.uuid)))}),o&&!n.searchResults.length&&(0,E.jsx)(Un,{children:(0,E.jsxs)("div",{className:"virtual-assistant__panel__placeholder",children:[(0,E.jsx)(dn,{className:"virtual-assistant__panel__placeholder__icon"}),(0,E.jsx)("div",{className:"virtual-assistant__panel__placeholder__message",children:"No result..."})]})}),!o&&!n.searchResults.length&&(0,E.jsx)(yn,{className:"virtual-assistant__character__container",menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsxs)(xn,{children:[(0,E.jsx)(In,{onClick:()=>{le(`documentation-registry_${(0,Xn.GP)(new Date(Date.now()),Ke)}.json`,JSON.stringify(e.documentationService.publishDocRegistry(),void 0,2),ee.APPLICATION_JSON)},children:"Download documentation registry"}),(0,E.jsx)(In,{onClick:()=>{le(`documentation-registry_${(0,Xn.GP)(new Date(Date.now()),Ke)}.json`,JSON.stringify(e.documentationService.publishContextualDocIndex(),void 0,2),ee.APPLICATION_JSON)},children:"Download contextual documentation mapping"})]}),children:(0,E.jsxs)("div",{className:"virtual-assistant__character",children:[(0,E.jsxs)("div",{className:"virtual-assistant__character__figure",children:[(0,E.jsx)(cn,{className:"virtual-assistant__character__hat"}),(0,E.jsx)(gn,{className:"virtual-assistant__character__glasses"}),(0,E.jsx)(pn,{className:"virtual-assistant__character__beard"})]}),(0,E.jsx)("div",{className:"virtual-assistant__character__greeting",children:"Bonjour, It's Pierre!"}),(0,E.jsx)("div",{className:"virtual-assistant__character__question",children:"How can I help today?"})]})})]})]})]})})),Qn=(0,bt.PA)((e=>{const{triggerElement:t}=e,n=Pt(),o=n.assistantService,r=o.currentContextualDocumentationEntry,i=o.selectedTab,a=n.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraVirtualAssistantViewConfigurations?.()??[])),s=a.find((e=>e.key===i));return(0,E.jsx)(zn,{open:o.isOpen,className:"virtual-assistant__panel__container",anchorEl:t,hideBackdrop:!0,PaperProps:{classes:{root:"virtual-assistant__panel__container__root"}},disableEnforceFocus:!0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"},children:(0,E.jsxs)("div",{className:(0,At.$)("virtual-assistant__panel",{"virtual-assistant__panel--maximized":o.isPanelMaximized}),tabIndex:0,onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),e.stopPropagation())},children:[(0,E.jsxs)("div",{className:"virtual-assistant__panel__header",children:[(0,E.jsxs)("div",{className:"virtual-assistant__panel__header__tabs",children:[(0,E.jsx)("div",{className:(0,At.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":i===Le.SEARCH}),onClick:()=>o.setSelectedTab(Le.SEARCH),title:"Search",children:(0,E.jsx)("div",{className:"virtual-assistant__panel__header__tab__content",children:(0,E.jsx)(en,{})})}),(0,E.jsx)("div",{className:(0,At.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":i===Le.CONTEXTUAL_SUPPORT}),onClick:()=>o.setSelectedTab(Le.CONTEXTUAL_SUPPORT),title:"Contextual Support",children:(0,E.jsxs)("div",{className:"virtual-assistant__panel__header__tab__content",children:[(0,E.jsx)(ln,{}),r&&(0,E.jsx)("div",{className:"virtual-assistant__panel__header__tab__indicator",title:"Contextual support available"})]})}),a.map((e=>(0,E.jsx)("div",{className:(0,At.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":i===e.key}),onClick:()=>{o.setSelectedTab(e.key),e.autoExpandOnOpen&&o.setIsPanelMaximized(!0)},title:e.title,children:(0,E.jsx)("div",{className:"virtual-assistant__panel__header__tab__content",children:e.icon??(0,E.jsx)(Qt,{})})},e.key)))]}),(0,E.jsxs)("div",{className:"virtual-assistant__panel__header__actions",children:[(0,E.jsx)("button",{className:"virtual-assistant__panel__header__action",tabIndex:-1,onClick:()=>o.setIsPanelMaximized(!o.isPanelMaximized),title:o.isPanelMaximized?"Minimize":"Maximize",children:o.isPanelMaximized?(0,E.jsx)(an,{}):(0,E.jsx)(sn,{})}),(0,E.jsx)("button",{className:"virtual-assistant__panel__header__action",tabIndex:-1,onClick:()=>o.setIsOpen(!1),title:"Close",children:(0,E.jsx)(Yt,{className:"virtual-assistant__panel__icon__close"})})]})]}),(0,E.jsxs)("div",{className:"virtual-assistant__panel__content",children:[i===Le.SEARCH&&(0,E.jsx)(Jn,{}),i===Le.CONTEXTUAL_SUPPORT&&(0,E.jsx)(qn,{}),s?.renderer()]})]})},o.panelRenderingKey)})),Zn=(0,bt.PA)((()=>{const[e,t]=(0,Lt.useState)(!1),[n,o]=(0,Lt.useState)((0,i.A)()),r=Pt(),a=(0,Lt.useRef)(null),s=r.assistantService,l=s.currentContextualDocumentationEntry,c=()=>{!s.isOpen&&l&&s.setSelectedTab(Le.CONTEXTUAL_SUPPORT),s.setIsOpen(!s.isOpen)};return(0,Lt.useEffect)((()=>{s.isHidden&&o((0,i.A)())}),[s.isHidden]),(0,E.jsx)(Fn,{bounds:"parent",onStart:()=>t(!0),onStop:()=>t(!1),nodeRef:a,handle:".virtual-assistant__station__drag-handle",children:(0,E.jsxs)("div",{className:"virtual-assistant",ref:a,children:[(0,E.jsxs)("div",{className:(0,At.$)("virtual-assistant__station",{"virtual-assistant__station--hidden":s.isHidden,"virtual-assistant__station--active":Boolean(l)}),children:[(0,E.jsx)("button",{className:"virtual-assistant__station__hide-button",title:"Hide assistant",onClick:()=>{r.assistantService.toggleAssistant()},children:(0,E.jsx)(tn,{})}),(0,E.jsx)("button",{className:"virtual-assistant__station__trigger",tabIndex:-1,onClick:c,title:s.isOpen?"Click to close assistant panel":(l?"Contextual support available.\n":"")+"Click to open Assistant...",children:(0,E.jsxs)("div",{className:"virtual-assistant__station__character",children:[(0,E.jsx)(cn,{className:"virtual-assistant__station__character__hat"}),(0,E.jsx)(gn,{className:"virtual-assistant__station__character__glasses"}),(0,E.jsx)(pn,{className:"virtual-assistant__station__character__beard"})]})}),(0,E.jsx)("div",{className:"virtual-assistant__station__label",onClick:c,children:"Assistant"}),(0,E.jsx)(yn,{className:(0,At.$)("virtual-assistant__station__drag-handle",{"virtual-assistant__station__drag-handle--dragging":e}),menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsxs)(xn,{children:[(0,E.jsx)(In,{onClick:()=>{s.setIsOpen(!1),o((0,i.A)())},children:"Reset Position"}),(0,E.jsx)(In,{onClick:()=>r.assistantService.hideAssistant(),children:"Hide Assistant"})]}),children:(0,E.jsx)("div",{className:"virtual-assistant__station__drag-handle__content",title:e?void 0:"Grab to drag assistant",children:(0,E.jsx)(Xt,{})})})]},l?.uuid??""),!e&&s.isOpen&&!s.isHidden&&a.current&&(0,E.jsx)(Qn,{triggerElement:a.current})]})},n)}));var eo;!function(e){e.TOP_LEVEL_CONTAINER="application.top-level-container",e.BACKDROP_CONTAINER="application.backdrop-container"}(eo||(eo={}));const to=["Meta+KeyP","Control+KeyP","Meta+KeyS","Control+KeyS","F8","F10","F11","Meta+Shift+KeyP","Control+Backquote","Control+Shift+KeyN","Control+Shift+KeyP","Meta+KeyB","Control+KeyB","F7","Alt+F7","Control+Shift+KeyB","Alt+KeyZ"],no=(e,t)=>{const n={};return e.forEach(((e,o)=>{e.length&&(n[o]={combinations:e,handler:t})})),n.INTERNAL__PLATFORM_NATIVE_KEYBOARD_COMMAND={combinations:to,handler:(e,t)=>{t.preventDefault()}},n},oo=e=>(0,E.jsx)("div",{className:"backdrop__container","data-elementid":e.elementId}),ro=(0,bt.PA)((e=>{const{children:t}=e,n=Pt(),o=no(n.keyboardShortcutsService.commandKeyMap,((e,t)=>{to.includes(e)&&t.preventDefault(),n.keyboardShortcutsService.dispatch(e)}));return(0,Lt.useEffect)((()=>{const e=ct(o);return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[o]),(0,Lt.useEffect)((()=>{const e=()=>{document.hidden&&(Ue.logEvent_ApplicationUsageInterrupted(n.telemetryService),n.timeService.recordUsageInterruption())};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}}),[n]),(0,E.jsxs)(ft,{children:[(0,E.jsx)(Gt,{}),(0,E.jsx)(Mt,{}),(0,E.jsx)(An,{}),(0,E.jsx)(Zn,{}),n.layoutService.showBackdrop&&(0,E.jsx)(Et.A,{container:n.layoutService.getElementByID(n.layoutService.backdropContainerElementID??eo.BACKDROP_CONTAINER)??null,children:(0,E.jsx)(Ct.A,{className:"backdrop",open:n.layoutService.showBackdrop})}),(0,E.jsx)(vt.Q,{backend:_t.t2,children:(0,E.jsxs)("div",{style:{height:"100%",width:"100%"},"data-elementid":eo.TOP_LEVEL_CONTAINER,onContextMenu:e=>{e.stopPropagation(),e.preventDefault()},children:[(0,E.jsx)(oo,{elementId:eo.BACKDROP_CONTAINER}),t]})})]})})),io=(0,bt.PA)((e=>{const{children:t}=e,n=Pt(),o=no(n.keyboardShortcutsService.commandKeyMap,((e,t)=>{to.includes(e)&&t.preventDefault(),n.keyboardShortcutsService.dispatch(e)}));return(0,Lt.useEffect)((()=>{const e=ct(o);return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[o]),(0,E.jsx)(ft,{children:(0,E.jsx)(vt.Q,{backend:_t.t2,children:(0,E.jsxs)("div",{style:{height:"100%",width:"100%"},"data-elementid":eo.TOP_LEVEL_CONTAINER,onContextMenu:e=>{e.stopPropagation(),e.preventDefault()},children:[(0,E.jsx)(oo,{elementId:eo.BACKDROP_CONTAINER}),t]})})})})),ao={foreground:"#cccccc",background:"#1e1e1e",cursor:"#cccccc",selectionBackground:"#264f78",black:"#000000",red:"#cd3131",green:"#0dbc79",yellow:"#e5e510",blue:"#2472c8",magenta:"#bc3fbc",cyan:"#11a8cd",white:"#e5e5e5",brightBlack:"#666666",brightRed:"#f14c4c",brightGreen:"#23d18b",brightYellow:"#f5f543",brightBlue:"#3b8eea",brightMagenta:"#d670d6",brightCyan:"#29b8db",brightWhite:"#e5e5e5"},so={matchOverviewRuler:"#d186167e",activeMatchColorOverviewRuler:"#A0A0A0CC",matchBackground:"#62331c",activeMatchBackground:"#515C6A"},lo=`\n${qe.BOLD}${qe.BRIGHT_BLUE}$purist${qe.RESET}\n${qe.BOLD}${qe.MAGENTA}❯${qe.RESET} `,co="❯ ";class uo{terminal;regex;handler;constructor(e,t,n){this.terminal=e,this.regex=t,this.handler=n}provideLinks(e,t){t(this.computeLink(e).map((e=>({range:e.range,text:e.text,activate:this.handler}))))}computeLink(e){const[t,n]=this.translateBufferLineToStringWithWrap(e-1),o=new RegExp(this.regex.source,`${this.regex.flags||""}g`);let r,i=-1;const a=[];for(;null!==(r=o.exec(t));){const e=r[0];if(!e)break;if(i=t.indexOf(e,i+1),o.lastIndex=i+e.length,i<0)break;a.push({text:e,range:{start:this.stringIndexToBufferPosition(i,n,!1),end:this.stringIndexToBufferPosition(i+e.length-1,n,!0)}})}return a}translateBufferLineToStringWithWrap(e){let t,n,o="";do{const t=this.terminal.buffer.active.getLine(e);if(!t)break;t.isWrapped&&e--,n=t.isWrapped}while(n);const r=e;do{const n=this.terminal.buffer.active.getLine(e+1);t=!!n&&n.isWrapped;const r=this.terminal.buffer.active.getLine(e);if(!r)break;o+=r.translateToString(!0).substring(0,this.terminal.cols),e++}while(t);return[o,r]}stringIndexToBufferPosition(e,t,n){const o=this.terminal.buffer.active.getNullCell();for(;e;){const r=this.terminal.buffer.active.getLine(t);if(!r)return{x:0,y:0};const i=r.length;let a=0;for(;a<i;){if(r.getCell(a,o),(e-=o.getChars().length)<0)return{x:a+(n?o.getWidth():1),y:t+1};a+=o.getWidth()}t++}return{x:1,y:t+1}}}class po extends et{instance;resizer;renderer;searcher;linkProvider;_TEMPORARY__onKeyListener;_TEMPORARY__onDataListener;command="";commandHistory=[];currentCommandSearchString="";commandHistoryNavigationIdx=void 0;isRunningCommand=!1;setupState=Ie.create();constructor(e){super(e),this.instance=new We.Terminal({allowProposedApi:!0,fontSize:12,letterSpacing:2,fontWeight:400,fontWeightBold:700,fontFamily:'"Roboto Mono", Menlo, Consolas, monospace',tabStopWidth:2,theme:ao,overviewRulerWidth:14,scrollback:1e5,convertEol:!0,scrollOnUserInput:!1}),this.resizer=new $e.FitAddon,this.searcher=new ze.SearchAddon,this.renderer=new Xe.WebglAddon}setup(e){if(this.setupState.hasCompleted)throw new x("Terminal is already set up");this.setupState.complete(),this.renderer.onContextLoss((()=>{this.renderer.dispose()})),this.instance.loadAddon(this.resizer),this.instance.loadAddon(this.searcher),this.instance.loadAddon(this.renderer),this.instance.loadAddon(new Ye.Unicode11Addon),this.instance.unicode.activeVersion="11",this.instance.attachCustomKeyEventHandler((e=>lt(e,"Control+KeyF")||lt(e,"Meta+KeyF")?(e.preventDefault(),e.stopPropagation(),this.searchConfig.focus(),!1):!(lt(e,"Control+KeyC")&&this.instance.hasSelection()||lt(e,"Control+KeyV")))),e?.webLinkProvider&&(this.linkProvider=this.instance.registerLinkProvider(new uo(this.instance,e.webLinkProvider.regex,e.webLinkProvider.handler))),(e?.commands??[]).forEach((e=>{[e.command,...e.aliases??[]].forEach((t=>{this.commandRegistry.has(t)?this.applicationStore.logService.warn(c.create(de.TERMINAL_COMMAND_CONFIGURATION_CHECK__FAILURE),`Found multiple duplicated terminal commands '${t}'`):this.commandRegistry.set(t,e)}))})),this.searcher.onDidChangeResults((e=>{this.setSearchResultCount(e.resultCount),this.setSearchCurrentResultIndex(e.resultIndex)})),this._TEMPORARY__onKeyListener=this.instance.onKey((({key:e,domEvent:t})=>{var n,o;if("ArrowUp"!==t.code)if("ArrowDown"!==t.code)if(this.commandHistoryNavigationIdx=void 0,"Enter"===t.code){if(this.command.trim()){const e=this.command,[t,...n]=e.replaceAll(/\s+/g," ").split(" ");if(this.addCommandToHistory(this.command),!t)return;const o=this.commandRegistry.get(t);if(!o)return void this.fail(`command not found: ${t}`);if(this.isRunningCommand)return;this.isRunningCommand=!0,o.handler(n.map((e=>e.trim())),t,e).catch((()=>{})).finally((()=>{this.isRunningCommand=!1,this.isFlushed||this.abort()}))}}else if(lt(t,"Control+KeyD")||lt(t,"Control+KeyC")&&!this.instance.hasSelection())this.abort();else if("Backspace"===t.code)this.deleteFromCommand(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!0):-1);else if("Delete"===t.code)this.deleteFromCommand(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!1):1);else if("ArrowLeft"===t.code){const e=this.computeCursorMovement(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!0):-1);this.instance.scrollLines(e.scroll),this.instance.write(e.seq)}else if("ArrowRight"===t.code){const e=this.computeCursorMovement(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!1):1);this.instance.scrollLines(e.scroll),this.instance.write(e.seq)}else e.match(/^[A-Za-z0-9!@#$%^&*()\-_=+"':;,.<>/?[\]{}|\\~` ]$/)?this.writeToCommand(e):(n=t,o=this.applicationStore,o.layoutService.getElementByID(eo.TOP_LEVEL_CONTAINER)?.dispatchEvent(new KeyboardEvent(n.type,n)));else void 0!==this.commandHistoryNavigationIdx&&this.setCommandFromHistory(0===this.commandHistoryNavigationIdx?void 0:this.commandHistoryNavigationIdx-1);else this.setCommandFromHistory(void 0!==this.commandHistoryNavigationIdx?this.commandHistoryNavigationIdx+1:0)})),this._TEMPORARY__onDataListener=this.instance.onData((e=>{e.length>1&&!e.startsWith("")&&this.writeToCommand(e.replaceAll(/[^A-Za-z0-9!@#$%^&*()\-_=+"':;,.<>/?[\]{}|\\~` ]/g,"").trimEnd())}))}getCommandRange(){const e=this.instance.buffer.active,t=this.instance.cols,n=`${co}${this.command}`,o=`${co}${this.command.substring(0,t-2)}${this.command.length<t-2?" ".repeat(t-this.command.length-2):""}`;let r=0,i=0;for(let n=e.baseY+e.cursorY;n>-1;--n){if(P(e.getLine(n)).translateToString()===o){r=n,i+=(n===e.baseY+e.cursorY?e.cursorX:t)-2;break}i+=n===e.baseY+e.cursorY?e.cursorX:t}return{startY:r,startX:2,endY:r+(n.length-n.length%t)/t,endX:n.length%t,cursorIdx:i}}computeCursorJumpMovement(e){const t=this.getCommandRange();let n,o=!1;if(e){for(let e=t.cursorIdx-1;e>-1;--e)if(this.command.charAt(e).match(/\w/))o||(o=!0);else if(o){n=t.cursorIdx-e-1;break}}else for(let e=t.cursorIdx+1;e<this.command.length;++e)if(this.command.charAt(e).match(/\w/))o||(o=!0);else if(o){n=e-t.cursorIdx-1;break}return void 0===n&&(n=e?t.cursorIdx:this.command.length-t.cursorIdx),e?-n:n}computeCursorMovement(e,t=!0){const n=this.instance.buffer.active,o=this.instance.cols,r=this.instance.rows,i=this.getCommandRange(),a=t?e<0?i.cursorIdx:this.command.length-i.cursorIdx:e,s=Math.min(Math.abs(e),a);let l=n.cursorX,c=n.cursorY,u=n.baseY+n.cursorY;e<0?(l=(o+(n.cursorX-s)%o)%o,c=n.cursorY-(s>n.cursorX?Math.ceil(s/o):0),u=c+n.baseY,c=Math.max(c,-1)):e>0&&(l=(n.cursorX+s)%o,c=n.cursorY+(n.cursorX+s>=o?Math.floor((n.cursorX+s)/o):0),u=c+n.baseY,c=Math.min(c,r-1));const d=u>n.viewportY+r?u-(n.viewportY+r):u<n.viewportY?u-n.viewportY:0;return{seq:Je(c+1,l+1),scroll:d}}writeToCommand(e){const t=this.getCommandRange(),n=this.command.slice(0,t.cursorIdx),o=this.command.slice(t.cursorIdx),r=this.computeCursorMovement(e.length,!1);this.instance.scrollLines(r.scroll),this.instance.write(e+o+r.seq),this.setCommand(n+e+o)}deleteFromCommand(e){const t=this.getCommandRange(),n=e<0?t.cursorIdx:this.command.length-t.cursorIdx,o=Math.min(Math.abs(e),n);let r,i,a;if(0===e)return;e<0?(r=this.command.slice(0,t.cursorIdx-o),i=this.command.slice(t.cursorIdx,this.command.length),a=-o):(r=this.command.slice(0,t.cursorIdx),i=this.command.slice(t.cursorIdx+o,this.command.length),a=0);const s=this.computeCursorMovement(a);this.instance.scrollLines(s.scroll),this.instance.write(Je(t.startY+1,t.startX+1)+r+i+" ".repeat(o)+s.seq),this.setCommand(r+i)}get isSetup(){return this.setupState.hasCompleted}isFocused(){return document.activeElement===this.instance.textarea}mount(e){if(!this.setupState.hasCompleted)throw new x("XTerm terminal has not been set up yet");this.instance.open(e)}dispose(){this.searcher.dispose(),this.resizer.dispose(),this.renderer.dispose(),this.linkProvider?.dispose(),this._TEMPORARY__onKeyListener?.dispose(),this._TEMPORARY__onDataListener?.dispose(),this.instance.dispose()}autoResize(){this.resizer.fit()}focus(){this.instance.focus()}addCommandToHistory(e){e!==this.commandHistory.at(0)&&this.commandHistory.unshift(e)}setCommandFromHistory(e){const t=void 0===e?this.currentCommandSearchString:this.commandHistory.filter((e=>e.startsWith(this.currentCommandSearchString))).at(e);if(void 0!==t){let n=this.getCommandRange();this.instance.write(Je(n.startY+1,n.startX+1)+t.padEnd(this.command.length)),this.command=t,n=this.getCommandRange(),this.instance.write(Je(n.endY+1,n.endX+1)),this.commandHistoryNavigationIdx=e}}setCommand(e){this.command=e,this.currentCommandSearchString=e,this.commandHistoryNavigationIdx=void 0}newCommand(){this.instance.write(lo),this.setCommand("")}newSystemCommand(e){this.isRunningCommand||(this.command&&(this.abort(),this.newCommand()),this.instance.write(`${qe.DIM}(system: ${e})\n${qe.RESET}`))}flushScreen(){this.instance.write("c"),this.instance.reset()}get isFlushed(){const e=this.instance.buffer.active;let t=!0;for(let n=e.baseY+e.cursorY;n>-1;--n){const o=P(e.getLine(n)).translateToString();if(o.trim()){t=o!==co;break}}return""===this.command&&t}clear(){this.flushScreen(),this.instance.scrollToTop(),this.newCommand()}resetANSIStyling(){this.instance.write(qe.RESET)}showHelp(){var e;this.resetANSIStyling(),this.instance.scrollToBottom(),this.isFlushed||this.isRunningCommand||this.abort(),this.instance.write((e=this.commandRegistry,`\n${qe.BRIGHT_BLACK}+-------------------------------------------------------+${qe.RESET}\n${qe.BRIGHT_BLACK}|${qe.RESET} ${qe.BRIGHT_GREEN}[@@]${qe.RESET} "Hi! Welcome to the HELP menu of Pure IDE" ${qe.BRIGHT_BLACK}|${qe.RESET}\n${qe.BRIGHT_BLACK}|${qe.RESET} ${qe.BRIGHT_GREEN}/|__|\\${qe.RESET} ${qe.BRIGHT_BLACK}|${qe.RESET}\n${qe.BRIGHT_BLACK}+--${qe.RESET} ${qe.BRIGHT_GREEN}d b${qe.RESET} ${qe.BRIGHT_BLACK}-----------------------------------------------+${qe.RESET}\n\nFollowing is the list of supported commands:\n\n${(0,tt.A)(Array.from(e.values()),(e=>e.command)).map((e=>`${qe.BRIGHT_GREEN}${e.command.padEnd(30)}${qe.RESET}${e.description}${e.aliases?.length?`\n${"".padEnd(30)}Aliases: ${e.aliases.join(", ")}`:""}\n${"".padEnd(30)}Usage: ${qe.DIM}${e.usage}${qe.RESET}`)).join("\n")}`)),this.abort()}showCommonANSIEscapeSequences(){this.resetANSIStyling(),this.instance.scrollToBottom(),this.isFlushed||this.isRunningCommand||this.abort(),this.instance.write(`\nCommon ANSI Escape Sequences for Styling:\n\n${Object.entries(qe).map((([e,t])=>`${t}${(e=>e?e.trim().match(/^[A-Z_]+$/)?rt(e.trim().replace(/_+/gu," ").toLowerCase()):nt(e.trim()).split(/(?<chunk>[A-Z][a-z]+|[0-9]+)/).map((e=>e.toUpperCase()===e?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).filter(Boolean).join(" ").replace(/_+/gu," ").replace(/\s+/gu," "):"")(e).padEnd(20)}${qe.RESET} ${t.replace("","\\u001b")}`)).join("\n")}`),this.abort()}abort(){this.resetANSIStyling(),this.instance.write("\n"),this.newCommand(),this.instance.scrollToBottom(),this.isRunningCommand=!1}fail(e,t){t?.systemCommand&&this.newSystemCommand(t.systemCommand),this.instance.write(`\n${e}`),this.abort()}output(e,t){this.resetANSIStyling(),t?.clear&&!this.preserveLog||!t?.systemCommand||this.newSystemCommand(t.systemCommand),!this.preserveLog&&t?.clear?this.flushScreen():(this.preserveLog||this.isRunningCommand)&&this.instance.write("\n"),this.instance.write(e),this.resetANSIStyling(),this.instance.write("\n"),this.instance.scrollToBottom(),this.newCommand()}search(e){this.searcher.findNext(e,{decorations:so,regex:this.searchConfig.useRegex,wholeWord:this.searchConfig.matchWholeWord,caseSensitive:this.searchConfig.matchCaseSensitive,incremental:!0})}clearSearch(){this.searcher.clearDecorations(),this.instance.clearSelection(),this.setSearchText(""),this.setSearchResultCount(void 0),this.setSearchCurrentResultIndex(void 0)}findPrevious(){this.searcher.findPrevious(this.searchConfig.searchText,{decorations:so,regex:this.searchConfig.useRegex,wholeWord:this.searchConfig.matchWholeWord,caseSensitive:this.searchConfig.matchCaseSensitive})}findNext(){this.searcher.findNext(this.searchConfig.searchText,{decorations:so,regex:this.searchConfig.useRegex,wholeWord:this.searchConfig.matchWholeWord,caseSensitive:this.searchConfig.matchCaseSensitive})}getContent(){const e=this.instance.buffer.active,t=[];for(let n=0;n<e.length;++n){const o=P(e.getLine(n));t.push(o.translateToString())}return t.join("\n").trimEnd()}copy(){this.instance.hasSelection()?this.applicationStore.clipboardService.copyTextToClipboard(this.instance.getSelection()).catch(this.applicationStore.alertUnhandledError):this.applicationStore.notificationService.notifyWarning("Ther terminal has no selection to copy")}copyAll(){this.applicationStore.clipboardService.copyTextToClipboard(this.getContent()).catch(this.applicationStore.alertUnhandledError)}}class go{applicationStore;terminal;constructor(e){this.applicationStore=e,this.terminal=new po(e)}}const mo="(unknown)";class ho{applicationStore;currentUser=mo;constructor(e){(0,xe.Gn)(this,{currentUser:xe.sH,setCurrentUser:xe.XI}),this.applicationStore=e}get isAnonymous(){return this.currentUser===mo}setCurrentUser(e){this.currentUser=e}}var fo,Eo=n(75992);class Co{get localStorage(){return P(window.localStorage,"'window.localStorage' object is not available in non-web environment")}setItem(e,t){this.localStorage.setItem(e,t)}getItem(e){return this.localStorage.getItem(e)}removeItem(e){this.localStorage.removeItem(e)}clear(){this.localStorage.clear()}hasItem(e){return this.localStorage.hasItem(e)}}class bo{storeIndex;storageService;data;constructor(e,t){this.storageService=e,this.storeIndex=t,this.data=this.storageService.getIndex(this.storeIndex)??{}}getValue(e){return this.data[e]}getNumericValue(e){const t=this.getValue(e);return void 0!==t?$(t):void 0}getStringValue(e){const t=this.getValue(e);return void 0!==t?W(t):void 0}getBooleanValue(e){const t=this.getValue(e);return void 0!==t?z(t):void 0}getObjectValue(e){const t=this.getValue(e);return void 0!==t?((e,t="")=>(function(e,t=""){if(!H(e))throw new R(t||"Value is expected to be a object")}(e,t),e))(t):void 0}hasValue(e){return L(this.data[e])}persistValue(e,t){void 0!==t?this.data[e]=t:delete this.data[e],this.storageService.updateIndex(this.storeIndex,this.data)}}class vo{applicationStore;storage;data;constructor(e){this.applicationStore=e,this.storage=new Co;const t=this.storage.getItem(e.config.applicationStorageKey);this.data=t?k((()=>JSON.parse(t)))??{}:{}}getIndex(e){return this.data[e]}updateIndex(e,t){(0,Eo.A)(t)?delete this.data[e]:this.data[e]=t,this.storage.setItem(this.applicationStore.config.applicationStorageKey,JSON.stringify(this.data))}}class _o{applicationStore;plugins=[];constructor(e){this.applicationStore=e}registerPlugins(e){this.plugins=e}setup(){const e={userId:this.applicationStore.identityService.currentUser,appName:this.applicationStore.config.appName,appEnv:this.applicationStore.config.env,appVersion:this.applicationStore.config.appVersion,appSessionId:this.applicationStore.uuid,appStartTime:this.applicationStore.timeService.timestamp};this.plugins.forEach((t=>t.setup(e)))}logEvent(e,t){this.plugins.forEach((n=>n.logEvent(e,t)))}}class To{timestamp=Date.now();interruptions=[];recordUsageInterruption(){this.interruptions.push(Date.now())}finalizeTimingsRecord(e,t){const n=e.elapsed,o=e.startTime,r=o+n,i={...t??{},...Object.fromEntries(e.records),total:n};let a=0;for(const e of this.interruptions)if(e>=o&&e<=r)a++;else if(e>r)break;return a>0?{...i,__numberOfInteruptions:a}:i}}!function(e){e.DEFAULT_DARK="default-dark",e.LEGACY_LIGHT="legacy-light",e.HIGH_CONTRAST_LIGHT="hc-light"}(fo||(fo={}));const Ao={name:"Default Dark (default)",key:fo.DEFAULT_DARK,TEMPORARY__globalCSSClassName:"theme__default-dark",colors:{"data-access-overview.chart.access-granted":"#6a9955","data-access-overview.chart.access-approved":"#007acc","data-access-overview.chart.access-requested":"#fbbc05","data-access-overview.chart.access-not-granted":"#ea4646","data-access-overview.chart.unsupported-access":"#2d2d2d"}},So={name:"Legacy Light",key:fo.LEGACY_LIGHT,TEMPORARY__globalCSSClassName:"theme__legacy-light"},No={name:"High-Contrast Light",key:fo.HIGH_CONTRAST_LIGHT,TEMPORARY__globalCSSClassName:"theme__hc-light",colors:{"data-access-overview.chart.access-granted":"#52a31d","data-access-overview.chart.access-approved":"#3d8df5","data-access-overview.chart.access-requested":"#f5c518","data-access-overview.chart.access-not-granted":"#fa5343","data-access-overview.chart.unsupported-access":"#e1e7ea"}};var yo;!function(e){e.COLOR_THEME="application.layout.colorTheme"}(yo||(yo={}));const xo={[yo.COLOR_THEME]:{defaultValue:fo.DEFAULT_DARK}};class Io{applicationStore;backdropContainerElementID;showBackdrop=!1;colorThemeRegistry=new Map;currentColorTheme;constructor(e){(0,xe.Gn)(this,{currentColorTheme:xe.sH.ref,TEMPORARY__isLightColorThemeEnabled:xe.EW,backdropContainerElementID:xe.sH,showBackdrop:xe.sH,setBackdropContainerElementID:xe.XI,setShowBackdrop:xe.XI,setColorTheme:xe.XI}),this.applicationStore=e,this.colorThemeRegistry.set(fo.DEFAULT_DARK,Ao),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraColorThemes?.()??[])).forEach((e=>{this.colorThemeRegistry.has(e.key)?this.applicationStore.logService.warn(c.create(de.COLOR_THEME_CONFIGURATION_CHECK__FAILURE),`Found duplicated color themes with key '${e.key}'`):this.colorThemeRegistry.set(e.key,e)}));const t=this.applicationStore.settingService.getStringValue(yo.COLOR_THEME)??fo.DEFAULT_DARK;this.currentColorTheme=P(this.colorThemeRegistry.get(t)),this.TEMPORARY__syncGlobalCSSClassName(this.currentColorTheme,void 0)}getElementByID(e){return document.querySelector(`[data-elementid='${e}']`)??void 0}setWindowTitle(e){document.title=e}setBackdropContainerElementID(e){this.backdropContainerElementID=e}setShowBackdrop(e){this.showBackdrop=e}get TEMPORARY__isLightColorThemeEnabled(){return this.currentColorTheme.key!==fo.DEFAULT_DARK}TEMPORARY__syncGlobalCSSClassName(e,t){t&&document.body.classList.remove(t.TEMPORARY__globalCSSClassName),document.body.classList.add(e.TEMPORARY__globalCSSClassName)}setColorTheme(e,t){const n=this.colorThemeRegistry.get(e);if(e===this.currentColorTheme.key||!n)return;const o=this.currentColorTheme;this.currentColorTheme=n,this.TEMPORARY__syncGlobalCSSClassName(n,o),t?.persist&&this.applicationStore.settingService.persistValue(yo.COLOR_THEME,e)}getColor(e){return this.currentColorTheme.colors?.[e]??P(this.colorThemeRegistry.get(fo.DEFAULT_DARK)).colors?.[e]??"transparent"}}class wo{applicationStore;constructor(e){this.applicationStore=e}async copyTextToClipboard(e,t){await navigator.clipboard.writeText(e).catch((e=>{this.applicationStore.notificationService.notifyError(e)})).finally((()=>{t?.notifySuccessMessage&&this.applicationStore.notificationService.notifySuccess(t.notifySuccessMessage)}))}}class ko{navigator;constructor(e){this.navigator=e}}var Ro=n(42853);class Oo{applicationStore;storage;registry=new Map;constructor(e){this.applicationStore=e,this.storage=new bo(this.applicationStore.storageService,"application-settings-storage"),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraSettingConfigurationEntries?.()??[])).forEach((e=>{this.registry.has(e.key)?this.applicationStore.logService.warn(c.create(de.SETTING_CONFIGURATION_CHECK__FAILURE),`Found duplicated setting with key '${e.key}'`):this.registry.set(e.key,e)}))}getNumericValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(void 0===t||G(t))return t;this.applicationStore.logService.warn(c.create(de.SETTING_RETRIVE_FAILURE),`Can't retrieve numeric value for setting '${e}'`)}getStringValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(void 0===t||U(t))return t;this.applicationStore.logService.warn(c.create(de.SETTING_RETRIVE_FAILURE),`Can't retrieve string value for setting '${e}'`)}getBooleanValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(void 0===t||V(t))return t;this.applicationStore.logService.warn(c.create(de.SETTING_RETRIVE_FAILURE),`Can't retrieve boolean value for setting '${e}'`)}getObjectValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(void 0===t||H(t))return t;this.applicationStore.logService.warn(c.create(de.SETTING_RETRIVE_FAILURE),`Can't retrieve object value for setting '${e}'`)}persistValue(e,t){const n=this.registry.get(e)?.defaultValue;this.storage.persistValue(e,void 0!==n&&(0,Ro.A)(n,t)?void 0:t)}}class Lo{goToLocation(e,t){throw new I("Navigator does not support this operation")}reload(e){throw new I("Navigator does not support this operation")}goToAddress(e,t){throw new I("Navigator does not support this operation")}visitAddress(e){throw new I("Navigator does not support this operation")}generateAddress(e){throw new I("Navigator does not support this operation")}updateCurrentLocation(e){throw new I("Navigator does not support this operation")}updateCurrentZone(e){throw new I("Navigator does not support this operation")}resetZone(){throw new I("Navigator does not support this operation")}getCurrentBaseAddress(e){throw new I("Navigator does not support this operation")}getCurrentAddress(){throw new I("Navigator does not support this operation")}getCurrentLocation(){throw new I("Navigator does not support this operation")}getCurrentLocationParameters(){throw new I("Navigator does not support this operation")}getCurrentLocationParameterValue(e){throw new I("Navigator does not support this operation")}getCurrentZone(){throw new I("Navigator does not support this operation")}blockNavigation(e,t,n){throw new I("Navigator does not support this operation")}unblockNavigation(){throw new I("Navigator does not support this operation")}get isNavigationBlocked(){throw new I("Navigator does not support this operation")}INTERNAL__internalizeTransientParameter(e){throw new I("Navigator does not support this operation")}}class Fo{applicationStore;storage;constructor(e){this.applicationStore=e,this.storage=new bo(this.applicationStore.storageService,"application-user-data-storage")}getNumericValue(e){const t=this.storage.getValue(e);if(void 0===t||G(t))return t;this.applicationStore.logService.warn(c.create(de.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve numeric value for user data '${e}'`)}getStringValue(e){const t=this.storage.getValue(e);if(void 0===t||U(t))return t;this.applicationStore.logService.warn(c.create(de.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve string value for user data '${e}'`)}getBooleanValue(e){const t=this.storage.getValue(e);if(void 0===t||V(t))return t;this.applicationStore.logService.warn(c.create(de.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve boolean value for user data '${e}'`)}getObjectValue(e){const t=this.storage.getValue(e);if(void 0===t||H(t))return t;this.applicationStore.logService.warn(c.create(de.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve object value for user data '${e}'`)}persistValue(e,t){this.storage.persistValue(e,t)}}const Po=e=>/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/.test(e);var Bo;!function(e){e.BUG_FIX="BUG_FIX",e.ENHANCEMENT="ENHANCEMENT"}(Bo||(Bo={}));const Do="application.lastOpenedVersion";class jo{applicationStore;releaseNotes;showCurrentReleaseModal=!0;showReleaseLog=!1;isConfigured=!1;constructor(e){(0,xe.Gn)(this,{showCurrentReleaseModal:xe.sH,showReleaseLog:xe.sH,isConfigured:xe.sH,setShowCurrentRelease:xe.XI,configure:xe.XI,setReleaseLog:xe.XI}),this.applicationStore=e}configure(e){this.isConfigured=!0,this.releaseNotes=(e=>e.map((e=>(j(e.version,"Release notes 'version' is missing"),e.notes?.map((e=>(j(e.type,"Release note 'type' is missing"),j(e.description,"Release note 'description' is missing"),e))),e))))(e)}setShowCurrentRelease(e){this.showCurrentReleaseModal=e}setReleaseLog(e){this.showReleaseLog=e}getViewedVersion(){return this.applicationStore.userDataService.getStringValue(Do)}updateViewedVersion(){this.applicationStore.userDataService.persistValue(Do,this.applicationStore.config.appVersion)}showVersion(e,t){const n=e.version;return!(!Po(n)||!Po(t)||1!==(o=t,n.localeCompare(o,void 0,{numeric:!0})));var o}showableVersions(){const e=this.getViewedVersion();if(e)return this.releaseNotes?.filter((t=>this.showVersion(t,e)))}}class Mo{uuid=(0,i.A)();extensionStates=[];config;pluginManager;initState=Ie.create();platform;timeService;logService;storageService;userDataService;settingService;alertService;notificationService;identityService;commandService;keyboardShortcutsService;layoutService;clipboardService;terminalService;navigationService;navigationContextService;documentationService;assistantService;releaseNotesService;eventService;telemetryService;tracerService;constructor(e,t){this.config=e,this.pluginManager=t,this.timeService=new To,this.logService=new d,this.logService.registerPlugins(t.getLoggerPlugins()),this.storageService=new vo(this),this.settingService=new Oo(this),this.userDataService=new Fo(this),this.alertService=new Ot(this),this.notificationService=new Tn,this.identityService=new ho(this),this.layoutService=new Io(this),this.clipboardService=new wo(this),this.terminalService=new go(this),this.commandService=new Ve(this),this.keyboardShortcutsService=new He(this),this.navigationService=new ko(new Lo),this.navigationContextService=new Ge(this),this.documentationService=new Se(this),this.assistantService=new je(this),this.releaseNotesService=new jo(this),this.eventService=new Me,this.eventService.registerEventNotifierPlugins(t.getEventNotifierPlugins()),this.telemetryService=new _o(this),this.telemetryService.registerPlugins(t.getTelemetryServicePlugins()),this.telemetryService.setup(),this.tracerService=new ke,this.tracerService.registerPlugins(t.getTracerServicePlugins()),this.extensionStates=this.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraApplicationExtensionStateBuilders?.()??[])).map((e=>e(this))).filter(L)}async initialize(e){if(this.initState.isInInitialState){this.initState.inProgress();try{if(this.platform)throw new x("Platform is already configured");this.platform=e,this.navigationService=new ko(e.getNavigator()),await e.initialize(),this.initState.pass()}catch(e){w(e),this.notificationService.notifyError(e),this.logService.error(c.create(de.APPLICATION_LOAD__FAILURE),"Failed to load Legend application"),this.initState.fail()}}else this.notificationService.notifyIllegalState("Application store is re-initialized")}alertUnhandledError=e=>{this.logUnhandledError(e),this.notificationService.notifyIllegalState(e.message)};logUnhandledError=e=>{this.logService.error(c.create(de.ILLEGAL_APPLICATION_STATE_OCCURRED),"Encountered unhandled error in component tree",e)};guardUnhandledError=e=>()=>{e().catch(this.alertUnhandledError)}}var Uo;!function(e){e.TAG_REQUEST="download-request",e.TAG_RESPONSE="download-response",e.STREAM_CLOSED="#stream-closed",e.STREAM_ABORTED="#stream-aborted"}(Uo||(Uo={}));class Go{}class Vo extends Go{debug(e,...t){console.debug(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}info(e,...t){console.info(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}warn(e,...t){console.warn(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}error(e,...t){console.error(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}}class Ho{config;logger;pluginManager;basePresets=[];basePlugins=[];baseAddress;pluginRegister;_isConfigured=!1;downloadHelperServiceWorkerPath;downloadHelper=!1;releaseNotes;constructor(e){this.pluginManager=e,this.logger=new Vo}setup(e){return this.baseAddress=j(e.baseAddress,"Can't setup application: 'baseAddress' is missing or empty"),this.pluginRegister=e.pluginRegister,this._isConfigured=!0,this}withBasePresets(e){return this.basePresets=e,this.withPresets([])}withBasePlugins(e){return this.basePlugins=e,this.withPlugins([])}withPresets(e){return this.pluginManager.usePresets([...this.basePresets,...e]),this}withPlugins(e){return this.pluginManager.usePlugins([...this.basePlugins,...e]),this}withDownloadHelper(e){return this.downloadHelper=!0,this.downloadHelperServiceWorkerPath=e,this}withReleaseNotes(e){return this.releaseNotes=e,this}setupApplicationStore(e){this.releaseNotes&&e.releaseNotesService.configure(this.releaseNotes)}async fetchApplicationConfiguration(){const e=new se;let t,n;try{t=await e.get(`${window.location.origin}${this.baseAddress}config.json`)}catch(e){w(e),this.logger.error(c.create(de.APPLICATION_CONFIGURATION__FAILURE),e)}F(t,"Can't fetch Legend application configuration");try{n=await e.get(`${window.location.origin}${this.baseAddress}version.json`)}catch(e){w(e),this.logger.error(c.create(de.APPLICATION_CONFIGURATION__FAILURE),e)}return F(n,"Can't fetch Legend application version"),[await this.configureApplication({configData:t,versionData:n,baseAddress:this.baseAddress}),t.extensions??{}]}async loadDocumentationRegistryData(e){const t={};await Promise.all([...e.documentationRegistryEntries,...this.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraDocumentationRegistryEntries?.()??[]))].map((async e=>{try{const n=new se(e.simple?{options:{credentials:"omit"}}:{}),o=await n.get(j(e.url,"Can't load documentation registry: 'url' field is missing or empty"));F(o.entries,"Can't load documentation registry data: 'entries' field is missing");const r=e.includes?.map((e=>new RegExp(`^${e.trim().replace(/[\^$\\.+?()[\]{}|]/g,"\\$&").replace(/\*/g,".*")}$`)));Object.entries(o.entries).forEach((([e,n])=>{r&&!r.some((t=>t.test(e)))||t[e]||(t[e]=n)}))}catch(e){w(e),this.logger.warn(c.create(de.DOCUMENTATION_FETCH__FAILURE),e)}}))),e.keyedDocumentationEntries=[...Ae(t),...e.keyedDocumentationEntries]}async start(){F(this._isConfigured,"Legend application has not been configured properly. Make sure to run setup() before start()");try{const[e,t]=await this.fetchApplicationConfiguration();this.config=e,this.pluginRegister?.(this.pluginManager,this.config),this.pluginManager.configure(t),this.pluginManager.install(),await Promise.all([this.loadDocumentationRegistryData(e)]);const n=new Mo(this.config,this.pluginManager);await Promise.all(this.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraApplicationSetups?.()??[])).map((e=>e(n)))),this.setupApplicationStore(n),await this.loadApplication(n),this.logger.info(c.create(de.APPLICATION_LOAD__SUCCESS),"Legend application loaded"),this.downloadHelper&&function(e){if("serviceWorker"in navigator){const t=e??"/ServiceWorker.js";navigator.serviceWorker.register(t).then((e=>{console.debug(`register service worker success with path: ${t}`,e)})).catch((e=>{console.debug(`register service worker error with path: ${t}`,e)}))}}(this.downloadHelperServiceWorkerPath)}catch(e){throw w(e),this.logger.error(c.create(de.APPLICATION_LOAD__FAILURE),"Failed to load Legend application"),e}}}const Wo="legend-application-root";class $o extends l{loggerPlugins=[];telemetryServicePlugins=[];tracerServicePlugins=[];eventNotifierPlugins=[];applicationPlugins=[];registerLoggerPlugin(e){this.loggerPlugins.push(e)}registerTelemetryServicePlugin(e){this.telemetryServicePlugins.push(e)}registerTracerServicePlugin(e){this.tracerServicePlugins.push(e)}registerEventNotifierPlugin(e){this.eventNotifierPlugins.push(e)}registerApplicationPlugin(e){this.applicationPlugins.push(e)}getLoggerPlugins(){return[...this.loggerPlugins]}getTelemetryServicePlugins(){return[...this.telemetryServicePlugins]}getTracerServicePlugins(){return[...this.tracerServicePlugins]}getEventNotifierPlugins(){return[...this.eventNotifierPlugins]}getApplicationPlugins(){return[...this.applicationPlugins]}}const zo=JSON.parse('{"rE":"16.0.25","XO":{"c":"@finos/legend-application-plugin-core"}}');class Yo extends s{}n(18850);class Xo extends Yo{static NAME=zo.XO.c;constructor(){super(Xo.NAME,zo.rE)}install(e){e.registerApplicationPlugin(this)}getExtraApplicationSetups(){return[async e=>{}]}getExtraColorThemes(){return[So,No]}getExtraSettingConfigurationEntries(){return e=xo,Object.entries(e).map((e=>({key:e[0],...e[1]})));var e}}class Ko{appName;baseAddress;env;applicationStorageKey;documentationUrl;documentationLinkEntries=[];documentationRegistryEntries=[];keyedDocumentationEntries=[];contextualDocEntries=[];appVersion;appVersionBuildTime;appVersionCommitId;constructor(e){var t,n;this.baseAddress=e.baseAddress,this.appName=j(e.configData.appName,"Can't configure application: 'appName' field is missing or empty"),this.env=j(e.configData.env,"Can't configure application: 'env' field is missing or empty"),this.applicationStorageKey=e.configData.application?.storageKey??this.getDefaultApplicationStorageKey(),this.documentationUrl=e.configData.documentation?.url,this.documentationLinkEntries=(t=e.configData.documentation?.links??{},Object.entries(t).map((e=>({key:j(e[0],"Documentation link 'key' is missing"),label:j(e[1].label,"Documentation link 'label' is missing"),url:j(e[1].url,"Documentation link 'url' is missing")})))),this.documentationRegistryEntries=e.configData.documentation?.registry??[],this.keyedDocumentationEntries=Ae(e.configData.documentation?.entries??{}),this.contextualDocEntries=(n=e.configData.documentation?.contextualEntries??{},Object.entries(n).map((e=>({context:e[0],documentationKey:e[1]})))),this.appVersion=P(e.versionData.version,"Can't collect application version: 'version' field is missing"),this.appVersionBuildTime=e.versionData.buildTime,this.appVersionCommitId=e.versionData.commitSHA}static resolveAbsoluteUrl(e){return e.trim().startsWith("/")?window.location.origin+e:e}}class qo extends Ko{replUrl;useDynamicREPLServer=!1;constructor(e){super(e),F(e.configData.repl,"Can't configure application: 'repl' field is missing"),this.replUrl=Ko.resolveAbsoluteUrl(j(e.configData.repl.url,"Can't configure application: 'repl.url' field is missing or empty")),void 0!==e.configData.repl.dynamic&&(this.useDynamicREPLServer=Boolean(e.configData.repl.dynamic))}getDefaultApplicationStorageKey(){return"legend-repl"}}var Jo,Qo=n(70621);function Zo(e){let t=e;for(;t.endsWith("/");)t=t.slice(0,-1);return t}class er{navigate;baseUrl;_isNavigationBlocked=!1;_forceBypassNavigationBlocking=!1;_blockCheckers=[];_beforeUnloadListener=e=>{this._forceBypassNavigationBlocking||this._blockCheckers.some((e=>e()))&&(e.returnValue="",e.preventDefault())};onBlock;onNativePlatformNavigationBlock;constructor(e,t){(0,xe.Gn)(this,{_isNavigationBlocked:xe.sH,isNavigationBlocked:xe.EW,blockNavigation:xe.XI,unblockNavigation:xe.XI}),this.navigate=e,this.baseUrl=t}get window(){return P(window,"Window object is not available in non-web environment")}goToLocation(e,t){t?.ignoreBlocking&&(this._forceBypassNavigationBlocking=!0);const n=()=>{this._forceBypassNavigationBlocking=!0,this.window.location.href=this.generateAddress(e)};!this._forceBypassNavigationBlocking&&this._blockCheckers.some((e=>e()))?this.onBlock?.(n):n()}reload(e){e?.ignoreBlocking&&(this._forceBypassNavigationBlocking=!0);const t=()=>{this._forceBypassNavigationBlocking=!0,this.window.location.reload()};!this._forceBypassNavigationBlocking&&this._blockCheckers.some((e=>e()))?this.onBlock?.(t):t()}goToAddress(e,t){t?.ignoreBlocking&&(this._forceBypassNavigationBlocking=!0);const n=()=>{this._forceBypassNavigationBlocking=!0,this.window.location.href=e};!this._forceBypassNavigationBlocking&&this._blockCheckers.some((e=>e()))?this.onBlock?.(n):n()}visitAddress(e){this.window.open(e,"_blank")}generateAddress(e){return this.window.location.origin+this.baseUrl+e}updateCurrentLocation(e){Promise.resolve(this.navigate(e)).catch((()=>{}))}updateCurrentZone(e){this.window.location.hash="#"+e}resetZone(){this.updateCurrentLocation(this.getCurrentLocation())}getCurrentBaseAddress(e){return e?.withAppRoot?this.generateAddress(""):this.window.location.origin}getCurrentAddress(){return this.window.location.href}getCurrentLocation(){return this.window.location.pathname.substring(this.baseUrl.length)}getCurrentLocationParameters(){const e={},t=ce((n=this.getCurrentAddress(),(0,q.J)(n)),!0);var n;return Object.keys(t).forEach((n=>{e[n]=ue(n,t)})),e}getCurrentLocationParameterValue(e){return this.getCurrentLocationParameters()[e]}getCurrentZone(){return this.window.location.hash.substring(1)}blockNavigation(e,t,n){this._isNavigationBlocked=!0,this.onBlock=t,this.onNativePlatformNavigationBlock=n,this.onNativePlatformNavigationBlock&&(this.window.history.pushState(null,"",this.getCurrentAddress()),this.window.onpopstate=()=>{this.window.history.forward(),this.onNativePlatformNavigationBlock?.()}),this._blockCheckers=e,this.window.removeEventListener("beforeunload",this._beforeUnloadListener),this.window.addEventListener("beforeunload",this._beforeUnloadListener)}unblockNavigation(){this._isNavigationBlocked=!1,this.onBlock=void 0,this.window.onpopstate=null,this._blockCheckers=[],this.window.removeEventListener("beforeunload",this._beforeUnloadListener)}get isNavigationBlocked(){return this._isNavigationBlocked}INTERNAL__internalizeTransientParameter(e){const t=this.getCurrentZone(),n=this.getCurrentLocationParameters();var o,r;delete n[e],this.updateCurrentLocation((o=this.getCurrentLocation(),r=(e=>{const t={};return Object.entries(e).forEach((([e,n])=>{n&&(t[e]=n.toString())})),K.A.stringify(t)})(n),r?`${o}?${r}`:o)),this.updateCurrentZone(t)}}class tr{applicationStore;constructor(e){this.applicationStore=e}async initialize(){}}!function(e){e.INITIAL_COLOR_THEME="initialColorTheme"}(Jo||(Jo={}));class nr extends tr{navigator;constructor(e,t){super(e),this.navigator=new er(t.navigate,t.baseUrl)}getNavigator(){return this.navigator}async initialize(){const e=this.applicationStore.navigationService.navigator.getCurrentLocationParameterValue(Jo.INITIAL_COLOR_THEME);e&&(this.applicationStore.layoutService.setColorTheme(e),this.applicationStore.navigationService.navigator.INTERNAL__internalizeTransientParameter(Jo.INITIAL_COLOR_THEME))}}const or=(0,Lt.createContext)(void 0),rr=({children:e,baseUrl:t})=>{const n=Pt(),o=(0,Qo.Zp)(),r=(0,bt.iz)((()=>new nr(n,{navigate:o,baseUrl:Zo(t)})));return(0,E.jsx)(or.Provider,{value:r,children:e})},ir=({children:e,baseUrl:t})=>(0,E.jsx)(Qo.Kd,{basename:Zo(t),children:(0,E.jsx)(rr,{baseUrl:t,children:e})});var ar=n(47262),sr=n(25314),lr=n(95236),cr=n(86251),ur=n(49787);const dr={AdvancedSettings:ur.teB,AlertError:Vt.Zt1,AlertInfo:Vt.$Mj,AlertSuccess:Vt.U4T,AlertWarning:Vt.vDk,Calculate:ur.FZE,Calendar:ur.rOy,CaretDown:ur.UgJ,CaretRight:ur.Izh,Checkbox:ar.Pvj,CheckboxSelected:ar.Kad,ChevronLeft:ur.h$A,ChevronRight:ur.klJ,ChevronDown:ur.ciu,CircleChecked:ur.Vor,CircledFailed:ur.Viv,Clipboard:ur.lP0,Code:ur.sAL,ClockEdit:ur.xNI,Cube:ur.keA,Debug:ur.$mE,Documentation:ur.KHb,DocumentationHint:Vt.Jzf,FilterAddOperator:ur.r2j,FilterRemoveOperator:ur.$9n,FilterGroupOperator:ur.auD,FilterNotOperator:ur.vem,FontBold:sr.ux7,FontCase:cr.tEi,FontItalic:sr.LPp,FontUnderline:sr.dgX,FontStrikethrough:sr.kKc,LetterCase:ur.XOD,Loader:ur.C5G,Menu:ur.Gb_,Note:ur.Jb_,Pin:zt.Cxm,Search:ur.PuI,Settings:ur.yRe,Table:ur.ZIs,TableColumn:ur.QKp,TableColumnOptions__Settings:ur.uRn,TableColumns:ur.N9Z,TableExtendedColumn:ur.w28,TableFilter:ur.XPy,TableFilterPlus:ur.VmB,TableFilterCode:ur.awR,TableGroupBy:ur.PAn,TableOptions:ur.v$W,TablePagination:sr.Hs5,TablePivot:ur.ba8,TablePlus:ur.ZQn,TableRemoveColumn:ur.F6Q,TableRow:ur.wV0,TableRowColumn:ur.QE3,TableScroll:lr.cfM,TableSort:ur.r9t,TextAlignLeft:lr.T4j,TextAlignCenter:lr.roG,TextAlignRight:lr.QHN,User:ur.aGB,Window:zt.PV7,X:zt.D9N,Warning:ur.fQM,WarningCircle:ur.Ajk,WordWrap:Vt.LkA};class pr{title;contentRenderer;window={};constructor(e,t){this.contentRenderer=t,this.title=e}}class gr{uuid=(0,i.A)();configuration;onClose;ownerId;specification;constructor(e,t,n){this.configuration=e,this.onClose=t,this.ownerId=n}setSpecification(e){this.specification=e}}const mr=50,hr={width:800,height:600,minWidth:300,minHeight:300,center:!0},fr={width:500,height:200,minWidth:200,minHeight:80,center:!0};class Er{layout;configuration;ownerId;window;constructor(e,t,n,o){(0,xe.Gn)(this,{window:xe.sH,isOpen:xe.EW,open:xe.XI,close:xe.XI}),this.layout=e,this.configuration=new pr(t,n),this.configuration.window=hr,this.ownerId=o}get isOpen(){return Boolean(this.window)}open(){this.window?this.layout.bringWindowFront(this.window):(this.window=new gr(this.configuration,(()=>(0,xe.h5)((()=>{this.window=void 0}))),this.ownerId),this.layout.newWindow(this.window,this.ownerId))}close(){this.window&&(this.layout.closeWindow(this.window),this.window=void 0)}}class Cr{windows=[];constructor(){(0,xe.Gn)(this,{windows:xe.sH,newWindow:xe.XI,bringWindowFront:xe.XI,closeWindow:xe.XI,closeWindows:xe.XI})}newDisplay(e,t,n,o){const r=new Er(this,e,t,o);return n&&(r.configuration.window=n),r}newWindow(e,t){e.ownerId=e.ownerId??t,this.windows.push(e)}bringWindowFront(e){this.windows.find((t=>t.uuid===e.uuid))&&(this.windows=this.windows.filter((t=>t.uuid!==e.uuid)),this.windows.push(e))}closeWindow(e){this.windows.find((t=>t.uuid===e.uuid))&&(this.windows=this.windows.filter((t=>t.uuid!==e.uuid)),e.onClose?.())}closeWindows(e){this.windows=this.windows.filter((t=>!e.find((e=>e.uuid===t.uuid)))),e.forEach((e=>e.onClose?.()))}}class br{uuid=(0,i.A)();manager;constructor(e){(0,xe.Gn)(this,{windows:xe.EW}),this.manager=e??new Cr}get windows(){return this.manager.windows.filter((e=>e.ownerId===this.uuid))}newDisplay(e,t,n){return this.manager.newDisplay(e,t,n,this.uuid)}newWindow(e){this.manager.newWindow(e,this.uuid)}bringWindowFront(e){this.manager.bringWindowFront(e)}closeWindow(e){this.manager.closeWindow(e)}dispose(){this.manager.closeWindows(this.windows)}}const vr=e=>{const{parent:t,layout:n,windowState:o}=e,r=o.configuration.window,[i,a]=(0,Lt.useState)((()=>{if(o.specification)return o.specification;const e=r.x??mr,n=r.y??mr,i=r.width??800,a=r.height??600,s=t?.current??document.body,{width:l,height:c}=s.getBoundingClientRect();if(r.center){const e=i+100>l?l-100:i,t=a+100>c?c-100:a;return{x:(l-e)/2,y:(c-t)/2,width:e,height:t}}const u=i+Math.abs(e)+mr>l?l-Math.abs(e)-mr:i,d=a+Math.abs(n)+mr>c?c-Math.abs(n)-mr:a,p={x:e<0?l-Math.abs(e)-u:e,y:n<0?c-Math.abs(n)-d:n,width:u,height:d};return o.setSpecification(p),p})),s=e=>{a(e),o.setSpecification(e)};return(0,E.jsx)(Pn.p,{className:"absolute z-10",handle:`.data-cube__window-${o.uuid}`,position:{x:i.x,y:i.y},size:{width:i.width,height:i.height},minWidth:r.minWidth??300,minHeight:r.minHeight??300,onDragStop:(e,t)=>{s({...i,x:t.x,y:t.y})},dragHandleClassName:`data-cube__window-${o.uuid}`,onResize:(e,t,n,o,r)=>{s({...r,width:n.offsetWidth,height:n.offsetHeight})},enableResizing:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},resizeHandleStyles:{top:{cursor:"ns-resize"},right:{cursor:"ew-resize"},bottom:{cursor:"ns-resize"},left:{cursor:"ew-resize"},topRight:{cursor:"nesw-resize",width:14,height:14,top:-7,right:-7},bottomRight:{cursor:"nwse-resize",width:14,height:14,bottom:-7,right:-7},bottomLeft:{cursor:"nesw-resize",width:14,height:14,bottom:-7,left:-7},topLeft:{cursor:"nwse-resize",width:14,height:14,top:-7,left:-7}},children:(0,E.jsxs)("div",{className:"h-full w-full border border-neutral-400 bg-neutral-200 shadow-xl",onMouseDown:()=>{n.bringWindowFront(o)},children:[(0,E.jsxs)("div",{className:jn(`data-cube__window-${o.uuid}`,"flex h-6 w-full select-none items-center justify-between border-b border-b-neutral-300 bg-white active:cursor-move"),children:[(0,E.jsx)("div",{className:"px-2",children:o.configuration.title}),(0,E.jsx)("button",{className:"flex h-[23px] w-6 items-center justify-center hover:bg-red-500 hover:text-white",onClick:()=>n.closeWindow(o),children:(0,E.jsx)(dr.X,{})})]}),(0,E.jsx)("div",{className:"h-[calc(100%_-_24px)] w-full overflow-auto",children:o.configuration.contentRenderer(o.configuration)})]})})},_r=(0,bt.PA)((e=>{const{layout:t}=e;return(0,E.jsx)(E.Fragment,{children:t.windows.map((e=>(0,E.jsx)(vr,{layout:t,windowState:e},e.uuid)))})}));var Tr=n(29179);const Ar="monaco-editor-overflow-widgets-root";function Sr(){return(0,E.jsx)("div",{id:Ar,className:"monaco-editor"})}var Nr=n(66813),yr=n(23993),xr=n(27802),Ir=n(15428),wr=n(21598),kr=n(99499),Rr=n(91937);const Or=e=>kr.sha1().update(e).digest("hex"),Lr=e=>Or(e.filter(L).map((e=>"string"==typeof e||"boolean"==typeof e||"number"==typeof e?Or(e):e.hashCode)).join(",")),Fr=(e,t)=>(M(H(e),"Can't hash non-object value"),Rr(e,t));var Pr,Br;(Br=Pr||(Pr={})).INTERNAL__UNKNOWN_ELEMENT="INTERNAL__UNKNOWN_ELEMENT",Br.INTERNAL__UNKNOWN_PACKAGEABLE_ELEMENT="INTERNAL__UNKNOWN_PACKAGEABLE_ELEMENT",Br.INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR="INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR",Br.PACKAGE="PACKAGE",Br.PACKAGEABLE_ELEMENT="PACKAGEABLE_ELEMENT",Br.PACKAGEABLE_ELEMENT_POINTER="PACKAGEABLE_ELEMENT_POINTER",Br.PROFILE="PROFILE",Br.TAG_POINTER="TAG_POINTER",Br.STEREOTYPE_POINTER="STEREOTYPE_POINTER",Br.TAGGED_VALUE="TAGGED_VALUE",Br.ENUMERATION="ENUMERATION",Br.ENUM_VALUE="ENUM_VALUE",Br.CLASS="CLASS",Br.PROPERTY="PROPERTY",Br.PROPERTY_DEFAULT_VALUE="PROPERTY_DEFAULT_VALUE",Br.PROPERTY_POINTER="PROPERTY_POINTER",Br.MULTIPLICITY="MULTIPLICITY",Br.CONSTRAINT="CONSTRAINT",Br.DERIVED_PROPERTY="DERIVED_PROPERTY",Br.ASSOCIATION="ASSOCIATION",Br.FUNCTION="FUNCTION",Br.MEASURE="MEASURE",Br.UNIT="UNIT",Br.FUNCTION_TEST_SUITE="FUNCTION_TEST_SUITE",Br.FUNCTION_TEST="FUNCTION_TEST",Br.FUNCTION_STORE_TEST_DATA="FUNCTION_STORE_TEST_DATA",Br.FUNCTION_PARAMETER_VALUE="FUNCTION_PARAMETER_VALUE",Br.FUNCTION_ACTIVATOR_POST_DEPLOYMENT_PROPERTIES="FUNCTION_ACTIVATOR_POST_DEPLOYMENT_PROPERTIES",Br.ASSERT_FAIL="ASSERT_FAIL",Br.ASSERT_PASS="ASSERT_PASS",Br.EQUAL_TO_JSON_ASSERT_FAIL="EQUAL_TO_JSON_ASSERT_FAIL",Br.EQUAL_TO="EQUAL_TO",Br.EQUAL_TO_JSON="EQUAL_TO_JSON",Br.EQUAL_TO_TDS="EQUAL_TO_TDS",Br.SECTION_INDEX="SECTION_INDEX",Br.SECTION="SECTION",Br.IMPORT_AWARE_CODE_SECTION="IMPORT_AWARE_CODE_SECTION",Br.DEFAULT_CODE_SECTION="DEFAULT_CODE_SECTION",Br.RAW_LAMBDA="RAW_LAMBDA",Br.RAW_VARIABLE="RAW_VARIABLE",Br.RAW_INSTANCE_VALUE="RAW_INSTANCE_VALUE",Br.BINDING_TRANSFORMER="BINDING_TRANSFORMER",Br.INTERNAL__UNKNOWN_VALUE_SPECIFICATION="INTERNAL__UNKNOWN_VALUE_SPECIFICATION",Br.INTERNAL__PROPAGATED_VALUE="INTERNAL__PROPAGATED_VALUE",Br.VARIABLE_EXPRESSION="VARIABLE_EXPRESSION",Br.EXPRESSION="EXPRESSION",Br.FUNCTION_EXPRESSION="FUNCTION_EXPRESSION",Br.SIMPLE_FUNCTION_EXPRESSION="SIMPLE_FUNCTION_EXPRESSION",Br.ABSTRACT_PROPERTY_EXPRESSION="ABSTRACT_PROPERTY_EXPRESSION",Br.INSTANCE_VALUE="INSTANCE_VALUE",Br.PRIMITIVE_INSTANCE_VALUE="PRIMITIVE_INSTANCE_VALUE",Br.ENUM_INSTANCE_VALUE="ENUM_INSTANCE_VALUE",Br.KEY_EXPRESSION_INSTANCE_VALUE="KEY_EXPRESSION_INSTANCE_VALUE",Br.KEY_EXPRESSION_VALUE="KEY_EXPRESSION_VALUE",Br.RUNTIME_INSTANCE_VALUE="RUNTIME_INSTANCE_VALUE",Br.PAIR_INSTANCE_VALUE="PAIR_INSTANCE_VALUE",Br.MAPPING_INSTANCE_VALUE="MAPPING_INSTANCE_VALUE",Br.PURE_LIST_INSTANCE_VALUE="PURE_LIST_INSTANCE_VALUE",Br.COLLECTION_INSTANCE_VALUE="COLLECTION_INSTANCE_VALUE",Br.LAMBDA_FUNCTION_INSTANCE_VALUE="LAMBDA_FUNCTION_INSTANCE_VALUE",Br.FUNCTION_TYPE="FUNCTION_TYPE",Br.LAMBDA_FUNCTION="LAMBDA_FUNCTION",Br.ALLOY_SERIALIZATION_CONFIG_INSTANCE_VALUE="ALLOY_SERIALIZATION_CONFIG_INSTANCE_VALUE",Br.ALLOY_SERIALIZATION_CONFIG="ALLOY_SERIALIZATION_CONFIG",Br.ROOT_GRAPH_FETCH_TREE="ROOT_GRAPH_FETCH_TREE",Br.PROPERTY_GRAPH_FETCH_TREE="PROPERTY_GRAPH_FETCH_TREE",Br.SUBTYPE_GRAPH_FETCH_TREE="SUBTYPE_GRAPH_FETCH_TREE",Br.SUBTYPE_GRAPH_FETCH_TREE_INSTANCE_VALUE="SUBTYPE_GRAPH_FETCH_TREE_INSTANCE_VALUE",Br.PROPERTY_GRAPH_FETCH_TREE_INSTANCE_VALUE="PROEPRTY_GRAPH_FETCH_TREE_INSTANCE_VALUE",Br.ROOT_GRAPH_FETCH_TREE_INSTANCE_VALUE="ROOT_GRAPH_FETCH_TREE_INSTANCE_VALUE",Br.RELATION_COL_SPEC_ARRAY="RELATION_COL_SPEC_ARRAY",Br.RELATION_COL_SPEC="RELATION_COL_SPEC",Br.INTERNAL__UNKNOWN_STORE="INTERNAL__UNKNOWN_STORE",Br.INTERNAL__UNKNOWN_CONNECTION="INTERNAL__UNKNOWN_CONNECTION",Br.INTERNAL__UNKNOWN_PROPERTY_MAPPING="INTERNAL__UNKNOWN_PROPERTY_MAPPING",Br.INTERNAL__UNKNOWN_CLASS_MAPPING="INTERNAL__UNKNOWN_CLASS_MAPPING",Br.INTERNAL__UNKNOWN_MAPPING_INCLUDE="INTERNAL__UNKNOWN_MAPPING_INCLUDE",Br.MAPPING="MAPPING",Br.MAPPING_INCLUDE_MAPPING="MAPPING_INCLUDE_MAPPING",Br.ASSOCIATION_IMPLEMENTATION="ASSOCIATION_IMPLEMENTATION",Br.RELATIONAL_ASSOCIATION_IMPLEMENTATION="RELATIONAL_ASSOCIATION_IMPLEMENTATION",Br.XSTORE_ASSOCIATION_IMPLEMENTATION="XSTORE_ASSOCIATION_IMPLEMENTATION",Br.ENUMERATION_MAPPING="ENUMERATION_MAPPING",Br.ENUM_VALUE_MAPPING="ENUM_VALUE_MAPPING",Br.SET_IMPLEMENTATION="SET_IMPLEMENTATION",Br.OPERATION_SET_IMPLEMENTATION="OPERATION_SET_IMPLEMENTATION",Br.PURE_INSTANCE_SET_IMPLEMENTATION="PURE_INSTANCE_SET_IMPLEMENTATION",Br.PROPERTY_MAPPING="PROPERTY_MAPPING",Br.LOCAL_MAPPING_PROPERTY="LOCAL_MAPPING_PROPERTY",Br.PURE_PROPERTY_MAPPING="PURE_PROPERTY_MAPPING",Br.XSTORE_PROPERTY_MAPPING="XSTORE_PROPERTY_MAPPING",Br.MAPPING_TEST_LEGACY="MAPPING_TEST_LEGACY",Br.MAPPING_TEST_SUITE="MAPPING_TEST_SUITE",Br.MAPPING_TEST="MAPPING_TEST",Br.STORE_TEST_DATA="STORE_TEST_DATA",Br.INPUT_DATA="INPUT_DATA",Br.FLAT_DATA_INPUT_DATA="FLAT_DATA_INPUT_DATA",Br.RELATIONAL_INPUT_DATA="RELATIONAL_INPUT_DATA",Br.OBJECT_INPUT_DATA="OBJECT_INPUT_DATA",Br.MAPPING_TEST_ASSERT="MAPPING_TEST_ASSERT",Br.EXPECTED_OUTPUT_MAPPING_TEST_ASSERT="EXPECTED_OUTPUT_MAPPING_TEST_ASSERT",Br.FILTER_MAPPING="FILTER_MAPPING",Br.COLUMN_MAPPING="COLUMN_MAPPING",Br.GROUP_BY_MAPPING="GROUP_BY_MAPPING",Br.RUNTIME="RUNTIME",Br.PACKAGEABLE_RUNTIME="PACKAGEABLE_RUNTIME",Br.ENGINE_RUNTIME="ENGINE_RUNTIME",Br.SINGLE_ENGINE_RUNTIME="SINGLE_ENGINE_RUNTIME",Br.LEGACY_RUNTIME="LEGACY_RUNTIME",Br.RUNTIME_POINTER="RUNTIME_POINTER",Br.STORE_CONNECTIONS="STORE_CONNECTIONS",Br.IDENTIFIED_CONNECTION="IDENTIFIED_CONNECTION",Br.PACKAGEABLE_CONNECTION="PACKAGEABLE_CONNECTION",Br.CONNECTION_POINTER="CONNECTION_POINTER",Br.XML_MODEL_CONNECTION="XML_MODEL_CONNECTION",Br.JSON_MODEL_CONNECTION="JSON_MODEL_CONNECTION",Br.MODEL_CHAIN_CONNECTION="MODEL_CHAIN_CONNECTION",Br.FLAT_DATA_CONNECTION="FLAT_DATA_CONNECTION",Br.AGGREGATION_AWARE_MAPPING="AGGREGATION_AWARE_MAPPING",Br.AGGREGATION_AWARE_SPECIFICATION="AGGREGATION_AWARE_SPECIFICATION",Br.AGGREGATION_AWARE_SET_IMPLEMENTATION_CONTAINER="AGGREGATION_AWARE_SET_IMPLEMENTATION_CONTAINER",Br.AGGREGATE_FUNCTION="AGGREGATE_FUNCTION",Br.GROUP_BY_FUNCTION="GROUP_BY_FUNCTION",Br.GENERATION_TREE="GENERATION_TREE",Br.GENERATION_TREE_NODE="GENERATION_TREE_NODE",Br.FILE_GENERATION="FILE_GENERATION",Br.CONFIGURATION_PROPERTY="CONFIGURATION_PROPERTY",Br.INTERNAL__UNKNOWN_EMBEDDED_DATA="INTERNAL__UNKNOWN_EMBEDDED_DATA",Br.EXTERNAL_FORMAT_DATA="EXTERNAL_FORMAT_DATA",Br.MODEL_STORE_DATA="MODEL_STORE_DATA",Br.MODEL_DATA="MODEL_DATA",Br.MODEL_EMBEDDED_DATA="MODEL_EMBEDDED_DATA",Br.MODEL_INSTANCE_DATA="MODEL_INSTANCE_DATA",Br.DATA_ELEMENT_REFERENCE="DATA_ELEMENT_REFERENCE",Br.DATA_ELEMENT="DATA_ELEMENT",Br.RELATIONAL_CSV_DATA="RELATIONAL_CSV_DATA",Br.RELATIONAL_TDS="RELATIONAL_TDS",Br.RELATIONAL_CSV_DATA_TABLE="RELATIONAL_CSV_DATA_TABLE",Br.BINDING="BINDING",Br.SCHEMA_SET="SCHEMA_SET",Br.SCHEMA="SCHEMA",Br.MODEL_UNIT="MODEL_UNIT",Br.URL_STREAM="URL_STREAM",Br.EXTERNAL_FORMAT_CONNECTION="EXTERNAL_FORMAT_CONNECTION",Br.SERVICE="SERVICE",Br.SERVICE_OWNER="SERVICE_OWNER",Br.SERVICE_PURE_EXECUTION="SERVICE_PURE_EXECUTION",Br.SERVICE_PURE_SINGLE_EXECUTION="SERVICE_PURE_SINGLE_EXECUTION",Br.SERVICE_KEYED_EXECUTION_PARAMETER="SERVICE_KEYED_EXECUTION_PARAMETER",Br.SERVICE_PURE_MULTI_EXECUTION="SERVICE_PURE_MULTI_EXECUTION",Br.SERVICE_TEST_CONTAINER="SERVICE_TEST_CONTAINER",Br.SERVICE_LEGACY_SINGLE_EXECUTION_TEST="SERVICE_LEGACY_SINGLE_EXECUTION_TEST",Br.SERVICE_LEGACY_KEYED_SINGLE_EXECUTION_TEST="SERVICE_LEGACY_KEYED_SINGLE_EXECUTION_TEST",Br.SERVICE_LEGACY_MULTI_EXECUTION_TEST="SERVICE_LEGACY_MULTI_EXECUTION_TEST",Br.SERVICE_CONNECTION_TEST_DATA="SERVICE_CONNECTION_TEST_DATA",Br.SERVICE_TEST_DATA="SERVICE_TEST_DATA",Br.SERVICE_TEST_SUITE="SERVICE_TEST_SUITE",Br.SERVICE_TEST="SERVICE_TEST",Br.SERVICE_PARAMETER_VALUE="SERVICE_PARAMETER_VALUE",Br.SERVICE_POST_VALIDATION="SERVICE_POST_VALIDATION",Br.SERVICE_POST_VALIDATION_ASSERTION="SERVICE_POST_VALIDATION_ASSERTION",Br.EXECUTION_ENVIRONMENT_INSTANCE="EXECUTION_ENVIRONMENT_INSTANCE",Br.SINGLE_EXECUTION_PARAMETER="SINGLE_EXECUTION_PARAMETER",Br.MULTI_EXECUTION_PARAMETER="MULTI_EXECUTION_PARAMETER",Br.RUNTIME_COMPONENTS="RUNTIME_COMPONENTS",Br.INTERNAL__UNKNOWN_DATASOURCE_SPECIFICATION="INTERNAL__UNKNOWN_DATASOURCE_SPECIFICATION",Br.INTERNAL__UNKNOWN_AUTHENTICATION_STRATEGY="INTERNAL__UNKNOWN_AUTHENTICATION_STRATEGY",Br.INTERNAL__UNKNOWN_POST_PROCESSOR="INTERNAL__UNKNOWN_POST_PROCESSOR",Br.DATABASE="DATABASE",Br.DATABASE_SCHEMA="DATABASE_SCHEMA",Br.DATABASE_JOIN="DATABASE_JOIN",Br.DATABASE_FILTER="DATABASE_FILTER",Br.DATBASE_VIEW="DATBASE_VIEW",Br.DATABASE_SCHEMA_TABLE="DATABASE_SCHEMA_TABLE",Br.DATABASE_SCHEMA_TABULARFUNCTION="DATABASE_SCHEMA_TABULARFUNCTION",Br.DATABASE_TABLE_COLUMN="DATABASE_TABLE_COLUMN",Br.RELATIONAL="RELATIONAL",Br.RELATIONAL_OPERATION_DYNA_FUNC="RELATIONAL_OPERATION_DYNA_FUNC",Br.RELATIONAL_OPERATION_ELEMENTS_WITH_JOINS="RELATIONAL_OPERATION_ELEMENTS_WITH_JOINS",Br.RELATIONAL_OPERATION_LITERAL="RELATIONAL_OPERATION_LITERAL",Br.RELATIONAL_OPERATION_LITERAL_LIST="RELATIONAL_OPERATION_LITERAL_LIST",Br.RELATIONAL_OPERATION_TABLE_ALIAS_COLUMN="RELATIONAL_OPERATION_TABLE_ALIAS_COLUMN",Br.RELATIONAL_OPERATION_TABLE_POINTER="RELATIONAL_OPERATION_TABLE_POINTER",Br.RELATIONAL_OPERATION_JOIN_POINTER="RELATIONAL_OPERATION_JOIN_POINTER",Br.RELATIONAL_DATATYPE_VARCHAR="RELATIONAL_DATATYPE_VARCHAR",Br.RELATIONAL_DATATYPE_CHAR="RELATIONAL_DATATYPE_CHAR",Br.RELATIONAL_DATATYPE_VARBINARY="RELATIONAL_DATATYPE_VARBINARY",Br.RELATIONAL_DATATYPE_BINARY="RELATIONAL_DATATYPE_BINARY",Br.RELATIONAL_DATATYPE_BIT="RELATIONAL_DATATYPE_BIT",Br.RELATIONAL_DATATYPE_INTEGER="RELATIONAL_DATATYPE_INTEGER",Br.RELATIONAL_DATATYPE_BIGINT="RELATIONAL_DATATYPE_BIGINT",Br.RELATIONAL_DATATYPE_SMALLINT="RELATIONAL_DATATYPE_SMALLINT",Br.RELATIONAL_DATATYPE_TINYINT="RELATIONAL_DATATYPE_TINYINT",Br.RELATIONAL_DATATYPE_NUMERIC="RELATIONAL_DATATYPE_NUMERIC",Br.RELATIONAL_DATATYPE_DECIMAL="RELATIONAL_DATATYPE_DECIMAL",Br.RELATIONAL_DATATYPE_DOUBLE="RELATIONAL_DATATYPE_DOUBLE",Br.RELATIONAL_DATATYPE_FLOAT="RELATIONAL_DATATYPE_FLOAT",Br.RELATIONAL_DATATYPE_REAL="RELATIONAL_DATATYPE_REAL",Br.RELATIONAL_DATATYPE_DATE="RELATIONAL_DATATYPE_DATE",Br.RELATIONAL_DATATYPE_TIMESTAMP="RELATIONAL_DATATYPE_TIMESTAMP",Br.RELATIONAL_DATATYPE_OTHER="RELATIONAL_DATATYPE_OTHER",Br.RELATIONAL_DATATYPE_SEMISTRUCTURED="RELATIONAL_DATATYPE_SEMISTRUCTURED",Br.RELATIONAL_DATATYPE_JSON="RELATIONAL_DATATYPE_JSON",Br.ROOT_RELATIONAL_INSTANCE_SET_IMPLEMENTATION="ROOT_RELATIONAL_INSTANCE_SET_IMPLEMENTATION",Br.RELATIONAL_INSTANCE_SET_IMPLEMENTATION="RELATIONAL_INSTANCE_SET_IMPLEMENTATION",Br.REALTIONAL_PROPERTY_MAPPING="REALTIONAL_PROPERTY_MAPPING",Br.EMBEDDED_REALTIONAL_PROPERTY_MAPPING="EMBEDDED_REALTIONAL_PROPERTY_MAPPING",Br.INLINE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING="INLINE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING",Br.OTHERWISE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING="OTHERWISE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING",Br.RELATION_FUNCTION_INSTANCE_SET_IMPLEMENTATION="RELATION_FUNCTION_INSTANCE_SET_IMPLEMENTATION",Br.RELATION_FUNCTION_PROPERTY_MAPPING="RELATION_FUNCTION_PROPERTY_MAPPING",Br.BUSINESS_MILESTONING="BUSINESS_MILESTONING",Br.BUSINESS_SNAPSHOT_MILESTONING="BUSINESS_SNAPSHOT_MILESTONING",Br.PROCESSING_MILESTONING="PROCESSING_MILESTONING",Br.RELATIONAL_DATABASE_CONNECTION="RELATIONAL_DATABASE_CONNECTION",Br.STATIC_DATASOURCE_SPECIFICATION="STATIC_DATASOURCE_SPECIFICATION",Br.LOCAL_H2_DATASOURCE_SPECIFICATION="LOCAL_H2_DATASOURCE_SPECIFICATION",Br.EMBEDDED_H2_DATASOURCE_SPECIFICATION="EMBEDDED_H2_DATASOURCE_SPECIFICATION",Br.SNOWFLAKE_DATASOURCE_SPECIFICATION="SNOWFLAKE_DATASOURCE_SPECIFICATION",Br.REDSHIFT_DATASOURCE_SPECIFICATION="REDSHIFT_DATASOURCE_SPECIFICATION",Br.BIGQUERY_DATASOURCE_SPECIFICATION="BIGQUERY_DATASOURCE_SPECIFICATION",Br.DATABRICKS_DATASOURCE_SPECIFICATION="DATABRICKS_DATASOURCE_SPECIFICATION",Br.SPANNER_DATASOURCE_SPECIFICATION="SPANNER_DATASOURCE_SPECIFICATION",Br.TRINO_DATASOURCE_SPECIFICATION="TRINO_DATASOURCE_SPECIFICATION",Br.DUCKDB_DATASOURCE_SPECIFICATION="DUCKDB_DATASOURCE_SPECIFICATION",Br.TRINO_SSL_SPECIFICATION="TRINO_SSL_SPECIFICATION",Br.DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY="DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY",Br.DEFAULT_H2_AUTHENTICATION_STRATEGY="DEFAULT_H2_AUTHENTICATION_STRATEGY",Br.TEST_AUTHENTICATION_STRATEGY="TEST_AUTHENTICATION_STRATEGY",Br.SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY="SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY",Br.API_TOKEN_AUTHENTICATION_STRATEGY="API_TOKEN_AUTHENTICATION_STRATEGY",Br.GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY="GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY",Br.USERNAME_PASSWORD_AUTHENTICATION_STRATEGY="USERNAME_PASSWORD_AUTHENTICATION_STRATEGY",Br.OAUTH_AUTHENTICATION_STRATEGY="OAUTH_AUTHENTICATION_STRATEGY",Br.GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY="GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY",Br.MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY="MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY",Br.TRINO_DELEGATED_KERBEROS_AUTHENTICATION_STRATEGY="TRINO_KEREBEROS_AUTHENTICATION_STRATEGY",Br.MAPPER_POST_PROCESSOR="MAPPER_POST_PROCESSOR",Br.SCHEMA_MAPPER="SCHEMA_MAPPER",Br.TABLE_MAPPER="TABLE_MAPPER",Br.FLAT_DATA="FLAT_DATA",Br.FLAT_DATA_SECTION="FLAT_DATA_SECTION",Br.FLAT_DATA_PROPERTY="FLAT_DATA_PROPERTY",Br.FLAT_DATA_ROOT_RECORD_TYPE="FLAT_DATA_ROOT_RECORD_TYPE",Br.FLAT_DATA_RECORD_TYPE="FLAT_DATA_RECORD_TYPE",Br.FLAT_DATA_RECORD_FIELD="FLAT_DATA_RECORD_FIELD",Br.FLAT_DATA_STRING="FLAT_DATA_STRING",Br.FLAT_DATA_BOOLEAN="FLAT_DATA_BOOLEAN",Br.FLAT_DATA_NUMBER="FLAT_DATA_NUMBER",Br.FLAT_DATA_INTEGER="FLAT_DATA_INTEGER",Br.FLAT_DATA_FLOAT="FLAT_DATA_FLOAT",Br.FLAT_DATA_DECIMAL="FLAT_DATA_DECIMAL",Br.FLAT_DATA_DATE="FLAT_DATA_DATE",Br.FLAT_DATA_DATE_TIME="FLAT_DATA_DATE_TIME",Br.FLAT_DATA_STRICT_DATE="FLAT_DATA_STRICT_DATE",Br.FLAT_DATA_INSTANCE_SET_IMPLEMENTATION="FLAT_DATA_INSTANCE_SET_IMPLEMENTATION",Br.FLAT_DATA_PROPERTY_MAPPING="FLAT_DATA_PROPERTY_MAPPING",Br.FLAT_DATA_ASSOCIATION_IMPLEMENTATION="FLAT_DATA_ASSOCIATION_IMPLEMENTATION",Br.FLAT_DATA_ASSOCIATION_PROPERTY_MAPPING="FLAT_DATA_ASSOCIATION_PROPERTY_MAPPING",Br.EMBEDDED_FLAT_DATA_PROPERTY_MAPPING="EMBEDDED_FLAT_DATA_PROPERTY_MAPPING",Br.FLAT_DATA_SECTION_POINTER="FLAT_DATA_SECTION_POINTER",Br.SNOWFLAKE_APP="SNOWFLAKE_APP",Br.HOSTED_SERVICE="HOSTED_SERVICE",Br.HOSTED_SERVICE_OWNER="HOSTED_SERVICE_OWNER",Br.RELATION_TYPE="RELATION_TYPE",Br.RELATION_COLUMN="RELATION_COLUMN";class Dr{lowerBound=0;upperBound;constructor(e,t){this.lowerBound=e,this.upperBound=t}get hashCode(){return Lr([Pr.MULTIPLICITY,this.lowerBound.toString(),this.upperBound?.toString()??""])}static ZERO=new Dr(0,0);static ZERO_ONE=new Dr(0,1);static ZERO_MANY=new Dr(0,void 0);static ONE=new Dr(1,1);static ONE_MANY=new Dr(1,void 0)}class jr{}class Mr extends jr{multiplicity=Dr.ONE}class Ur extends Mr{body=[];parameters=[];accept_ValueSpecificationVisitor(e){return e.visit_Lambda(this)}}const Gr="::";var Vr,Hr,Wr,$r,zr,Yr,Xr,Kr,qr;!function(e){e.CORE="CORE",e.MAIN="ROOT",e.MODEL_GENERATION="MODEL_GENERATION_ROOT",e.SYSTEM="SYSTEM_ROOT",e.PROJECT_DEPENDENCY_ROOT="PROJECT_DEPENDENCY_ROOT"}(Vr||(Vr={})),($r=Hr||(Hr={})).STRING="String",$r.BOOLEAN="Boolean",$r.BINARY="Binary",$r.NUMBER="Number",$r.INTEGER="Integer",$r.FLOAT="Float",$r.DECIMAL="Decimal",$r.DATE="Date",$r.STRICTDATE="StrictDate",$r.DATETIME="DateTime",$r.STRICTTIME="StrictTime",$r.LATESTDATE="LatestDate",$r.BYTE="Byte",function(e){e.Service_Test="serviceTest",e.Mapping_Test="mappingTest",e.Function_Test="functionTest"}(Wr||(Wr={})),function(e){e.ANY="meta::pure::metamodel::type::Any",e.NIL="meta::pure::metamodel::type::Nil",e.RELATION="meta::pure::metamodel::relation::Relation",e.PROFILE_DOC="meta::pure::profiles::doc",e.PROFILE_TEMPORAL="meta::pure::profiles::temporal",e.PROFILE="meta::pure::metamodel::extension::Profile",e.ENUMERATION="meta::pure::metamodel::type::Enumeration",e.MEASURE="meta::pure::metamodel::type::Measure",e.CLASS="meta::pure::metamodel::type::Class",e.ASSOCIATION="meta::pure::metamodel::relationship::Association",e.FUNCTION="meta::pure::metamodel::function::ConcreteFunctionDefinition",e.FLAT_DATA="meta::flatData::metamodel::FlatData",e.DATABASE="meta::relational::metamodel::Database",e.MAPPING="meta::pure::mapping::Mapping",e.SERVICE="meta::legend::service::metamodel::Service",e.CONNECTION="meta::pure::runtime::PackageableConnection",e.RUNTIME="meta::pure::runtime::PackageableRuntime",e.EXECUTION_ENVIRONMENT="meta::legend::service::metamodel::ExecutionEnvironmentInstance",e.FILE_GENERATION="meta::pure::generation::metamodel::GenerationConfiguration",e.GENERATION_SPECIFICATION="meta::pure::generation::metamodel::GenerationSpecification",e.SECTION_INDEX="meta::pure::metamodel::section::SectionIndex",e.DATA_ELEMENT="meta::pure::data::DataElement",e.SNOWFLAKE_APP="meta::external::function::activator::snowflakeApp::SnowflakeApp",e.HOSTED_SERVICE="meta::external::function::activator::hostedService::HostedService",e.TABULAR_RESULT="meta::pure::mapping::Result"}(zr||(zr={})),function(e){e.BUSINESS_TEMPORAL="businesstemporal",e.PROCESSING_TEMPORAL="processingtemporal",e.BITEMPORAL="bitemporal"}(Yr||(Yr={})),function(e){e.ALL_VERSIONS="AllVersions",e.ALL_VERSIONS_IN_RANGE="AllVersionsInRange"}(Xr||(Xr={})),function(e){e.CLASS="CLASS",e.STORE="STORE",e.MAPPING="MAPPING",e.RUNTIME="RUNTIME",e.FUNCTION="FUNCTION",e.FILE_GENERATION="FILE_GENERATION",e.SERVICE="SERVICE",e.DATA="DATA",e.ENUMERATION="ENUMERATION",e.ASSOCIATION="ASSOCIATION",e.BINDING="BINDING"}(Kr||(Kr={})),function(e){e.LET="meta::pure::functions::lang::letFunction",e.NEW="meta::pure::functions::meta::new",e.FROM="meta::pure::mapping::from"}(qr||(qr={}));const Jr="yyyy-MM-dd",Qr={transparent:"#00000000",black:"#000000",white:"#ffffff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}};var Zr,ei,ti,ni,oi,ri,ii,ai,si,li,ci,ui,di,pi,gi;!function(e){e.EXTEND="meta::pure::functions::relation::extend",e.FILTER="meta::pure::functions::relation::filter",e.GROUP_BY="meta::pure::functions::relation::groupBy",e.LIMIT="meta::pure::functions::relation::limit",e.PIVOT="meta::pure::functions::relation::pivot",e.SELECT="meta::pure::functions::relation::select",e.SLICE="meta::pure::functions::relation::slice",e.SORT="meta::pure::functions::relation::sort",e.OVER="meta::pure::functions::relation::over",e.CAST="meta::pure::functions::lang::cast",e.FROM="meta::pure::mapping::from",e.ASCENDING="meta::pure::functions::relation::ascending",e.DESCENDING="meta::pure::functions::relation::descending",e.ABS="meta::pure::functions::math::abs",e.AND="meta::pure::functions::boolean::and",e.OR="meta::pure::functions::boolean::or",e.NOT="meta::pure::functions::boolean::not",e.TO_LOWERCASE="meta::pure::functions::string::toLower",e.CONTAINS="meta::pure::functions::string::contains",e.ENDS_WITH="meta::pure::functions::string::endsWith",e.EQUAL="meta::pure::functions::boolean::equal",e.GREATER_THAN="meta::pure::functions::boolean::greaterThan",e.GREATER_THAN_OR_EQUAL="meta::pure::functions::boolean::greaterThanEqual",e.IN="meta::pure::functions::collection::in",e.IS_EMPTY="meta::pure::functions::collection::isEmpty",e.LESS_THAN="meta::pure::functions::boolean::lessThan",e.LESS_THAN_OR_EQUAL="meta::pure::functions::boolean::lessThanEqual",e.STARTS_WITH="meta::pure::functions::string::startsWith",e.AVERAGE="meta::pure::functions::math::average",e.COUNT="meta::pure::functions::collection::count",e.DISTINCT="meta::pure::functions::collection::distinct",e.FIRST="meta::pure::functions::collection::first",e.JOIN_STRINGS="meta::pure::functions::string::joinStrings",e.LAST="meta::pure::functions::collection::last",e.MAX="meta::pure::functions::collection::max",e.MIN="meta::pure::functions::collection::min",e.SUM="meta::pure::functions::math::sum",e.STANDARD_DEVIATION_POPULATION="meta::pure::functions::math::stdDevPopulation",e.STANDARD_DEVIATION_SAMPLE="meta::pure::functions::math::stdDevSample",e.UNIQUE_VALUE_ONLY="meta::pure::functions::collection::uniqueValueOnly",e.VARIANCE_POPULATION="meta::pure::functions::math::variancePopulation",e.VARIANCE_SAMPLE="meta::pure::functions::math::varianceSample"}(Zr||(Zr={})),function(e){e.BASIS_POINT="Basis Points (bp)",e.PERCENT="Percent (%)",e.THOUSANDS="Thousands (k)",e.MILLIONS="Millions (m)",e.BILLIONS="Billions (b)",e.TRILLIONS="Trillions (t)",e.AUTO="Auto (k/m/b/t)"}(ei||(ei={})),function(e){e.ARIAL="Arial",e.ROBOTO="Roboto",e.ROBOTO_CONDENSED="Roboto Condensed",e.TIMES_NEW_ROMAN="Times New Roman",e.GEORGIA="Georgia",e.ROBOTO_SERIF="Roboto Serif",e.JERBRAINS_MONO="Jetbrains Mono",e.ROBOTO_MONO="Roboto Mono",e.UBUNTU_MONO="Ubuntu Mono"}(ti||(ti={})),function(e){e.CENTER="center",e.LEFT="left",e.RIGHT="right"}(ni||(ni={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize"}(oi||(oi={})),function(e){e.SOLID="solid",e.DASHED="dashed",e.DOTTED="dotted",e.DOUBLE="double",e.WAVY="wavy"}(ri||(ri={})),function(e){e.MEASURE="Measure",e.DIMENSION="Dimension"}(ii||(ii={})),function(e){e.COLUMN="COLUMN",e.VOID="VOID"}(ai||(ai={})),function(e){e.SUM="sum",e.AVERAGE="avg",e.COUNT="count",e.MIN="min",e.MAX="max",e.UNIQUE="uniq",e.FIRST="first",e.LAST="last",e.VARIANCE_POPULATION="var",e.VARIANCE_SAMPLE="var_sample",e.STANDARD_DEVIATION_POPULATION="std",e.STANDARD_DEVIATION_SAMPLE="std_sample",e.JOIN_STRINGS="strjoin"}(si||(si={})),function(e){e.SUM="sum",e.AVERAGE="avg",e.MEDIAN="median",e.COUNT="count",e.MIN="min",e.MAX="max",e.VARIANCE_POPULATION="var",e.VARIANCE_SAMPLE="var_sample",e.STANDARD_DEVIATION_POPULATION="std",e.STANDARD_DEVIATION_SAMPLE="std_sample"}(li||(li={})),function(e){e.LESS_THAN="<",e.LESS_THAN_OR_EQUAL="<=",e.EQUAL="=",e.NOT_EQUAL="!=",e.GREATER_THAN=">",e.GREATER_THAN_OR_EQUAL=">=",e.IN="in",e.NOT_IN="not in",e.IS_NULL="is null",e.IS_NOT_NULL="is not null",e.EQUAL_CASE_INSENSITIVE="= (case-insensitive)",e.NOT_EQUAL_CASE_INSENSITIVE="!= (case-insensitive)",e.IN_CASE_INSENSITIVE="in (case-insensitive)",e.NOT_IN_CASE_INSENSITIVE="not in (case-insensitive)",e.CONTAIN="contains",e.CONTAIN_CASE_INSENSITIVE="contains (case-insensitive)",e.NOT_CONTAIN="does not contain",e.START_WITH="starts with",e.START_WITH_CASE_INSENSITIVE="starts with (case-insensitive)",e.NOT_START_WITH="does not start with",e.END_WITH="ends with",e.END_WITH_CASE_INSENSITIVE="ends with (case-insensitive)",e.NOT_END_WITH="does not end with",e.LESS_THAN_COLUMN="< value in column",e.LESS_THAN_OR_EQUAL_COLUMN="<= value in column",e.EQUAL_COLUMN="= value in column",e.EQUAL_CASE_INSENSITIVE_COLUMN="= (case-insensitive) value in column",e.NOT_EQUAL_COLUMN="!= value in column",e.NOT_EQUAL_CASE_INSENSITIVE_COLUMN="!= (case-insensitive) value in column",e.GREATER_THAN_COLUMN="> value in column",e.GREATER_THAN_OR_EQUAL_COLUMN=">= value in column"}(ci||(ci={})),function(e){e.AND="and",e.OR="or"}(ui||(ui={})),function(e){e.ASCENDING="Ascending",e.DESCENDING="Descending"}(di||(di={})),function(e){e.LEFT="Left",e.RIGHT="Right"}(pi||(pi={})),function(e){e.NUMBER="Numeric",e.TEXT="Text",e.DATE="Date",e.TIME="Time"}(gi||(gi={}));const mi="__|__",hi="__/__",fi="x",Ei="New Report",Ci=di.ASCENDING,bi=(di.ASCENDING,"[ROOT]"),vi="dataCube.linkLabel",_i=Qr.neutral[300],Ti="#d7e0eb",Ai=ti.ROBOTO,Si=!1,Ni=!1,yi=void 0,xi=!1,Ii=ni.LEFT,wi=Qr.black,ki=Qr.transparent,Ri=Qr.white,Oi=Qr.red[500],Li=Qr.neutral[400],Fi=Qr.blue[600],Pi="(None)";function Bi(e){switch(e){case Hr.STRING:return"";case Hr.BOOLEAN:return!1;case Hr.BYTE:return btoa("");case Hr.NUMBER:case Hr.DECIMAL:case Hr.FLOAT:case Hr.INTEGER:case Hr.BINARY:return 0;case Hr.DATE:case Hr.STRICTDATE:return(0,Xn.GP)(new Date(Date.now()),Jr);case Hr.DATETIME:return(0,Xn.GP)(new Date(Date.now()),"yyyy-MM-dd'T'HH:mm:ss");default:throw new I(`Can't generate value for type '${e}'`)}}function Di(e,t){return P(t.find((t=>t.operator===e)),`Can't find aggregate operation '${e}'`)}function ji(e){switch(e){case Hr.NUMBER:case Hr.INTEGER:case Hr.DECIMAL:case Hr.FLOAT:return gi.NUMBER;case Hr.DATE:case Hr.STRICTDATE:return gi.DATE;case Hr.DATETIME:return gi.TIME;case Hr.STRING:default:return gi.TEXT}}function Mi(e,t){return t.includes(ji(e))}function Ui(e){return[Hr.NUMBER,Hr.INTEGER,Hr.DECIMAL,Hr.FLOAT,Hr.DATE,Hr.STRICTDATE,Hr.DATETIME,Hr.STRING].includes(e)}function Gi(e){return e.includes(mi)}function Vi(e){if(!Gi(e))throw new x(`Column '${e}' is not a pivot result column`);return e.substring(e.lastIndexOf(mi)+5)}function Hi(e,t){return e?.find((e=>e.name===t))}function Wi(e){return{name:e.name,type:e.type}}const $i=(e,t)=>e.name.localeCompare(t.name);class zi{uuid=(0,i.A)();name;type;kind=ii.DIMENSION;displayName;decimals;displayCommas=!1;negativeNumberInParens=!1;numberScale;missingValueDisplayText;unit;fontFamily;fontSize;fontBold;fontItalic;fontUnderline;fontStrikethrough;fontCase;textAlign;normalForegroundColor;negativeForegroundColor;zeroForegroundColor;errorForegroundColor;normalBackgroundColor;negativeBackgroundColor;zeroBackgroundColor;errorBackgroundColor;isSelected=!0;hideFromView=!1;blur=!1;fixedWidth;minWidth;maxWidth;pinned;displayAsLink=!1;linkLabelParameter;aggregateOperator;aggregationParameters=[];excludedFromPivot=!0;pivotSortDirection;pivotStatisticColumnFunction;constructor(e,t){this.name=e,this.type=t}static serialization=new ge((0,pe.PL)(zi,{aggregateOperator:(0,pe.MY)(),aggregationParameters:(0,pe.p_)((0,pe.lS)()),blur:(0,pe.MY)(),decimals:(0,pe.lq)((0,pe.MY)()),displayAsLink:(0,pe.MY)(),displayCommas:(0,pe.MY)(),displayName:(0,pe.lq)((0,pe.MY)()),errorBackgroundColor:(0,pe.lq)((0,pe.MY)()),errorForegroundColor:(0,pe.lq)((0,pe.MY)()),excludedFromPivot:(0,pe.MY)(),fixedWidth:(0,pe.lq)((0,pe.MY)()),fontBold:(0,pe.lq)((0,pe.MY)()),fontCase:(0,pe.lq)((0,pe.MY)()),fontFamily:(0,pe.lq)((0,pe.MY)()),fontItalic:(0,pe.lq)((0,pe.MY)()),fontSize:(0,pe.lq)((0,pe.MY)()),fontStrikethrough:(0,pe.lq)((0,pe.MY)()),fontUnderline:(0,pe.lq)((0,pe.MY)()),hideFromView:(0,pe.MY)(),isSelected:(0,pe.MY)(),kind:(0,pe.MY)(),linkLabelParameter:(0,pe.lq)((0,pe.MY)()),maxWidth:(0,pe.lq)((0,pe.MY)()),minWidth:(0,pe.lq)((0,pe.MY)()),missingValueDisplayText:(0,pe.lq)((0,pe.MY)()),name:(0,pe.MY)(),negativeBackgroundColor:(0,pe.lq)((0,pe.MY)()),negativeForegroundColor:(0,pe.lq)((0,pe.MY)()),normalBackgroundColor:(0,pe.lq)((0,pe.MY)()),normalForegroundColor:(0,pe.lq)((0,pe.MY)()),negativeNumberInParens:(0,pe.MY)(),numberScale:(0,pe.lq)((0,pe.MY)()),pinned:(0,pe.lq)((0,pe.MY)()),pivotSortDirection:(0,pe.lq)((0,pe.MY)()),pivotStatisticColumnFunction:(0,pe.lq)((0,pe.MY)()),textAlign:(0,pe.lq)((0,pe.MY)()),type:(0,pe.MY)(),unit:(0,pe.lq)((0,pe.MY)()),zeroBackgroundColor:(0,pe.lq)((0,pe.MY)()),zeroForegroundColor:(0,pe.lq)((0,pe.MY)())}));serialize(){return zi.serialization.toJson(this)}}class Yi{expandedPaths=[];static serialization=new ge((0,pe.PL)(Yi,{expandedPaths:(0,pe.p_)((0,pe.MY)())}));serialize(){return Yi.serialization.toJson(this)}}class Xi{uuid=(0,i.A)();name=Ei;description;columns=[];showHorizontalGridLines=!1;showVerticalGridLines=!0;gridLineColor=_i;fontFamily=Ai;fontSize=11;fontBold=Si;fontItalic=Ni;fontUnderline=yi;fontStrikethrough=xi;fontCase=void 0;textAlign=Ii;normalForegroundColor=wi;negativeForegroundColor=Oi;zeroForegroundColor=Li;errorForegroundColor=Fi;normalBackgroundColor=ki;negativeBackgroundColor=ki;zeroBackgroundColor=ki;errorBackgroundColor=ki;alternateRows=!1;alternateRowsStandardMode=!0;alternateRowsColor=Ti;alternateRowsCount=1;showSelectionStats=!1;showWarningForTruncatedResult=!0;initialExpandLevel;showRootAggregation=!1;showLeafCount=!0;treeColumnSortDirection=Ci;pivotStatisticColumnName="Total";pivotStatisticColumnPlacement;pivotLayout=new Yi;static serialization=new ge((0,pe.PL)(Xi,{alternateRows:(0,pe.MY)(),alternateRowsColor:(0,pe.MY)(),alternateRowsCount:(0,pe.MY)(),alternateRowsStandardMode:(0,pe.MY)(),columns:(0,pe.p_)(me(zi.serialization.schema)),errorBackgroundColor:(0,pe.MY)(),errorForegroundColor:(0,pe.MY)(),description:(0,pe.lq)((0,pe.MY)()),fontBold:(0,pe.MY)(),fontCase:(0,pe.lq)((0,pe.MY)()),fontFamily:(0,pe.MY)(),fontItalic:(0,pe.MY)(),fontSize:(0,pe.MY)(),fontStrikethrough:(0,pe.MY)(),fontUnderline:(0,pe.lq)((0,pe.MY)()),gridLineColor:(0,pe.MY)(),initialExpandLevel:(0,pe.lq)((0,pe.MY)()),name:(0,pe.MY)(),negativeBackgroundColor:(0,pe.MY)(),negativeForegroundColor:(0,pe.MY)(),normalBackgroundColor:(0,pe.MY)(),normalForegroundColor:(0,pe.MY)(),pivotStatisticColumnName:(0,pe.MY)(),pivotStatisticColumnPlacement:(0,pe.lq)((0,pe.MY)()),pivotLayout:me(Yi.serialization.schema),showHorizontalGridLines:(0,pe.MY)(),showLeafCount:(0,pe.MY)(),showSelectionStats:(0,pe.MY)(),showRootAggregation:(0,pe.MY)(),showVerticalGridLines:(0,pe.MY)(),showWarningForTruncatedResult:(0,pe.MY)(),textAlign:(0,pe.MY)(),treeColumnSortDirection:(0,pe.MY)(),zeroBackgroundColor:(0,pe.MY)(),zeroForegroundColor:(0,pe.MY)()}));getColumn(e){return Hi(this.columns,e)}serialize(){return Xi.serialization.toJson(this)}clone(){return Xi.serialization.fromJson(Xi.serialization.toJson(this))}}class Ki extends jr{name;multiplicity;genericType;accept_ValueSpecificationVisitor(e){return e.visit_Variable(this)}}class qi extends jr{multiplicity=Dr.ONE}class Ji extends qi{class;property;parameters=[];accept_ValueSpecificationVisitor(e){return e.visit_AppliedProperty(this)}}var Qi=n(18492);const Zi=e=>P((0,Qi.A)(e.split(Gr))),ea=(e,t)=>Array.isArray(t)?t.some((t=>ea(e,t))):e===t||Zi(t)===e;class ta extends qi{function;fControl;parameters=[];accept_ValueSpecificationVisitor(e){return e.visit_AppliedFunction(this)}}class na extends jr{multiplicity=Dr.ONE_MANY;values=[];accept_ValueSpecificationVisitor(e){return e.visit_Collection(this)}}class oa extends jr{multiplicity=Dr.ONE}class ra extends oa{}class ia extends ra{value;accept_ValueSpecificationVisitor(e){return e.visit_CString(this)}}class aa extends ra{value;accept_ValueSpecificationVisitor(e){return e.visit_CBoolean(this)}}class sa extends ra{value;accept_ValueSpecificationVisitor(e){return e.visit_CDecimal(this)}}class la extends ra{value;accept_ValueSpecificationVisitor(e){return e.visit_CInteger(this)}}class ca extends ra{value;accept_ValueSpecificationVisitor(e){return e.visit_CFloat(this)}}class ua extends ra{}class da extends ua{value;accept_ValueSpecificationVisitor(e){return e.visit_CStrictDate(this)}}class pa extends ua{value;accept_ValueSpecificationVisitor(e){return e.visit_CDateTime(this)}}class ga extends ra{value;accept_ValueSpecificationVisitor(e){return e.visit_CStrictTime(this)}}class ma extends jr{multiplicity=Dr.ONE;fullPath;accept_ValueSpecificationVisitor(e){return e.visit_PackageableElementPtr(this)}}class ha extends jr{multiplicity=Dr.ONE;type;value;accept_ValueSpecificationVisitor(e){return e.visit_ClassInstance(this)}}class fa{name;type;function1;function2}class Ea{subTrees=[];subTypeTrees=[]}class Ca extends Ea{class;accept_GraphFetchTreeVisitor(e){return e.visit_RootGraphFetchTree(this)}get hashCode(){return Lr([Pr.ROOT_GRAPH_FETCH_TREE,Lr(this.subTrees),Lr(this.subTypeTrees),this.class])}}class ba{name;startType;path=[]}class va{mapFn;aggregateFn}class _a{first;second}class Ta{runtime}class Aa{executionContext}class Sa extends Ea{property;parameters=[];alias;subType;accept_GraphFetchTreeVisitor(e){return e.visit_PropertyGraphFetchTree(this)}get hashCode(){return Lr([Pr.PROPERTY_GRAPH_FETCH_TREE,Lr(this.subTrees),this.property,this.alias??"",this.subType??""])}}class Na extends Ea{subTypeClass;accept_GraphFetchTreeVisitor(e){return e.visit_SubTypeGraphFetchTree(this)}get hashCode(){return Lr([Pr.SUBTYPE_GRAPH_FETCH_TREE,Lr(this.subTrees),this.subTypeClass])}}class ya{includeType;typeKeyName;includeEnumType;removePropertiesWithNullValues;removePropertiesWithEmptySets;fullyQualifiedTypePath;includeObjectReference}class xa extends Mr{add;expression;key;accept_ValueSpecificationVisitor(e){return e.visit_KeyExpression(this)}}class Ia{values=[]}class wa{name;pmapFn;aggregateFn}class ka{name;columnFn}class Ra{column;direction}class Oa{function}class La{function;columnName}class Fa{colSpecs=[]}class Pa{path=[]}class Ba{package;name;get path(){return`${this.package}${Gr}${this.name}`}get hashCode(){return Lr([Pr.PACKAGEABLE_ELEMENT,this.path])}}const Da=new ge((0,pe.PL)(class{sourceId;startLine;startColumn;endLine;endColumn},{sourceId:(0,pe.MY)(),startLine:(0,pe.MY)(),startColumn:(0,pe.MY)(),endLine:(0,pe.MY)(),endColumn:(0,pe.MY)()}));class ja{package;name;sourceInformation;static serialization=new ge((0,pe.PL)(ja,{package:(0,pe.MY)(),name:(0,pe.MY)(),sourceInformation:Ee(Da.schema)}))}(0,pe.PL)(class{type;path;constructor(e,t){this.type=e,this.path=t}get hashCode(){return Lr([Pr.PACKAGEABLE_ELEMENT_POINTER,this.type??"",this.path])}},{path:(0,pe.MY)(),type:(0,pe.lq)((0,pe.MY)())});const Ma=(0,pe.PL)(Dr,{lowerBound:(0,pe.MY)(),upperBound:(0,pe.lq)((0,pe.MY)())}),Ua=((0,pe.PL)(class{profile;value;get hashCode(){return Lr([Pr.STEREOTYPE_POINTER,this.value,this.profile])}},{profile:(0,pe.MY)(),value:(0,pe.MY)()}),(0,pe.PL)(class{profile;value;get hashCode(){return Lr([Pr.TAG_POINTER,this.value,this.profile])}},{profile:(0,pe.MY)(),value:(0,pe.MY)()}));(0,pe.PL)(class{tag;value;get hashCode(){return Lr([Pr.TAGGED_VALUE,this.tag,this.value])}},{tag:me(Ua),value:(0,pe.MY)()});class Ga{}class Va extends Ga{property;parameters=[]}class Ha{}class Wa extends Ha{mappings=[];connectionStores=[];connections=[];get hashCode(){return Lr([Pr.ENGINE_RUNTIME,Lr(this.mappings),Lr(this.connectionStores),Lr(this.connections)])}}class $a extends Wa{get hashCode(){return Lr([Pr.SINGLE_ENGINE_RUNTIME,Lr(this.mappings),Lr(this.connectionStores),Lr(this.connections)])}}class za extends Ha{runtime;get hashCode(){return Lr([Pr.RUNTIME_POINTER,this.runtime])}}var Ya;!function(e){e.RUNTIME_POINTER="runtimePointer",e.LEGACY_RUNTIME="legacyRuntime",e.ENGINE_RUNTIME="engineRuntime",e.SINGLE_ENGINE_RUNTIME="localEngineRuntime"}(Ya||(Ya={}));const Xa=(0,pe.PL)(za,{_type:he(Ya.RUNTIME_POINTER),runtime:(0,pe.MY)()});(0,pe.PL)(class extends Ba{runtimeValue;get hashCode(){return Lr([Pr.PACKAGEABLE_RUNTIME,this.path,this.runtimeValue])}accept_PackageableElementVisitor(e){return e.visit_PackageableRuntime(this)}},{_type:he("runtime"),name:(0,pe.MY)(),package:(0,pe.MY)(),runtimeValue:(0,pe.Ie)((e=>{return(t=e)instanceof $a?(0,pe.lK)($a,t):(0,pe.lK)(Wa,t);var t}),(e=>{return(t=e)._type===Ya.SINGLE_ENGINE_RUNTIME?(0,pe.iu)($a,t):(0,pe.iu)(Wa,t);var t}))});class Ka{queryTimeOutInSeconds;enableConstraints}class qa extends Ka{useAnalytics;toFlowSetFunction}class Ja extends Ka{}class Qa extends jr{multiplicity=Dr.ONE;genericType;accept_ValueSpecificationVisitor(e){return e.visit_GenericTypeInstance(this)}}class Za{rawType;typeArguments=[];multiplicityArguments=[];typeVariableValues=[];get hashCode(){return this.rawType.hashCode}}class es extends ma{get hashCode(){return this.fullPath}}class ts{name;genericType;multiplicity;get hashCode(){return Lr([Pr.RELATION_TYPE,this.name,this.genericType])}}class ns{columns=[];get hashCode(){return Lr([Pr.RELATION_TYPE,Lr(this.columns)])}}const os=e=>{if(e.rawType instanceof es)return e.rawType.fullPath;throw new I("Can't extract type path from generic type")};function rs(e){const t=new Za,n=new es;return n.fullPath=e,t.rawType=n,t}function is(e){const t=new Za;return t.rawType=e,t}function as(e){const t=new ns;return t.columns=e,t}function ss(e,t){const n=new ts;return n.name=e,n.genericType=rs(t),n.multiplicity=Dr.ZERO_ONE,n}var ls;!function(e){e.PACKAGEABLE_TYPE="packageableType",e.RELATION_TYPE="relationType"}(ls||(ls={}));const cs=(0,pe.PL)(Za,{multiplicityArguments:(gs=e=>(0,pe.lK)(Ma,e),ms=e=>(0,pe.iu)(Ma,e),hs={INTERNAL__forceReturnEmptyInTest:!0},(0,pe.Ie)((e=>be(e,(e=>gs(e)),{skipIfEmpty:!0,INTERNAL__forceReturnEmptyInTest:hs?.INTERNAL__forceReturnEmptyInTest})),(e=>Ce(e,(e=>ms(e)),{skipIfEmpty:!1})))),rawType:(0,pe.Ie)((e=>function(e){if(e instanceof es)return(0,pe.lK)(us,e);if(e instanceof ns)return(0,pe.lK)(ps,e);throw new I("Can't serialize type",e)}(e)),(e=>function(e){switch(e._type){case ls.PACKAGEABLE_TYPE:return(0,pe.iu)(us,e);case ls.RELATION_TYPE:return(0,pe.iu)(ps,e);default:throw new I(`Can't deserialize type: '${e._type}'`)}}(e))),typeArguments:ve((e=>(0,pe.lK)(Za,e)),(e=>(0,pe.iu)(Za,e)),{INTERNAL__forceReturnEmptyInTest:!0}),typeVariableValues:ve((e=>pe._Z),(e=>pe._Z),{INTERNAL__forceReturnEmptyInTest:!0})}),us=(0,pe.PL)(es,{_type:he(ls.PACKAGEABLE_TYPE),fullPath:(0,pe.MY)()}),ds=(0,pe.PL)(ts,{genericType:(0,pe.Ie)((e=>(0,pe.lK)(cs,e)),(e=>Es(e)),{beforeDeserialize:function(e,t,n){void 0!==n.type&&void 0===n.genericType?e(null,n.type):e(null,n.genericType)}}),multiplicity:me(Ma),name:(0,pe.MY)()}),ps=(0,pe.PL)(ns,{_type:he(ls.RELATION_TYPE),columns:(0,pe.p_)(me(ds))});var gs,ms,hs;const fs=e=>{e.multiplicityArguments=[new Dr(1,void 0)];const t=new es;t.fullPath=zr.ANY;const n=new Za;n.rawType=t,e.typeArguments=[n]};function Es(e){let t;if(U(e)){t=new Za;const n=new es;n.fullPath=e,t.rawType=n,ea(e,zr.TABULAR_RESULT)&&fs(t)}else t=(0,pe.iu)(cs,e);const n=k((()=>os(t)));return n&&ea(n,zr.TABULAR_RESULT)&&!t.multiplicityArguments.length&&!t.typeArguments.length&&fs(t),t}var Cs,bs,vs,_s,Ts;!function(e){e.BASE_EXECUTION_CONTEXT="BaseExecutionContext",e.ANALYTICS_EXECUTION_CONTEXT="AnalyticsExecutionContext"}(Cs||(Cs={})),function(e){e.PROPERTY_PATH_ELEMENT="propertyPath"}(bs||(bs={})),function(e){e.PROPERTY_GRAPH_FETCH_TREE="propertyGraphFetchTree"}(vs||(vs={})),function(e){e.ROOT_GRAPH_FETCH_TREE="rootGraphFetchTree",e.SUBTYPE_GRAPH_FETCH_TREE="subTypeGraphFetchTree",e.PATH="path",e.AGGREGATE_VALUE="aggregateValue",e.EXECUTION_CONTEXT_INSTANCE="executionContextInstance",e.PAIR="pair",e.PURE_LIST="listInstance",e.RUNTIME_INSTANCE="runtimeInstance",e.SERIALIZATION_CONFIG="alloySerializationConfig",e.COL_SPEC="colSpec",e.COL_SPEC_ARRAY="colSpecArray",e.RELATION_STORE_ACCESSOR=">",e.TDS_AGGREGATE_VALUE="tdsAggregateValue",e.TDS_COLUMN_INFORMATION="tdsColumnInformation",e.TDS_SORT_INFORMATION="tdsSortInformation",e.TDS_OLAP_RANK="tdsOlapRank",e.TDS_OLAP_AGGREGATION="tdsOlapAggregation"}(_s||(_s={})),function(e){e.VARIABLE="var",e.LAMBDA="lambda",e.KEY_EXPRESSION="keyExpression",e.APPLIED_FUNCTION="func",e.APPLIED_PROPERTY="property",e.PACKAGEABLE_ELEMENT_PTR="packageableElementPtr",e.GENERIC_TYPE_INSTANCE="genericTypeInstance",e.ENUM_VALUE="enumValue",e.COLLECTION="collection",e.CINTEGER="integer",e.CDECIMAL="decimal",e.CSTRING="string",e.CBOOLEAN="boolean",e.CBYTEARRAY="byteArray",e.CFLOAT="float",e.CDATETIME="dateTime",e.CSTRICTDATE="strictDate",e.CSTRICTTIME="strictTime",e.CLATESTDATE="latestDate",e.CLASS_INSTANCE="classInstance",e.HACKED_CLASS="hackedClass",e.HACKED_UNIT="hackedUnit",e.UNIT_TYPE="unitType",e.PRIMITIVE_TYPE="primitiveType",e.CLASS="class",e.ENUM="enum",e.MAPPING_INSTANCE="mappingInstance"}(Ts||(Ts={}));const As=(0,pe.PL)(Ki,{_type:he(Ts.VARIABLE),genericType:fe((e=>(0,pe.lK)(cs,e)),(e=>Es(e)),{beforeDeserialize:function(e,t,n){void 0!==n.class&&void 0===n.genericType?e(null,n.class):e(null,n.genericType)}}),multiplicity:me(Ma),name:(0,pe.MY)()}),Ss=e=>(0,pe.PL)(Ur,{_type:he(Ts.LAMBDA),body:(0,pe.p_)((0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e)))),parameters:(0,pe.p_)(me(As))}),Ns=e=>(0,pe.PL)(xa,{_type:he(Ts.KEY_EXPRESSION),add:(0,pe.lq)((0,pe.MY)()),expression:(0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e))),key:(0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e)))}),ys=e=>(0,pe.PL)(ta,{_type:he(Ts.APPLIED_FUNCTION),function:(0,pe.MY)(),parameters:(0,pe.p_)((0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e))))}),xs=e=>(0,pe.PL)(Ji,{_type:he(Ts.APPLIED_PROPERTY),class:(0,pe.lq)((0,pe.MY)()),parameters:(0,pe.p_)((0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e)))),property:(0,pe.MY)()}),Is=e=>(0,pe.PL)(ma,{_type:he(Ts.PACKAGEABLE_ELEMENT_PTR),fullPath:(0,pe.MY)()}),ws=e=>(0,pe.PL)(Qa,{_type:he(Ts.GENERIC_TYPE_INSTANCE),genericType:(0,pe.Ie)((e=>(0,pe.lK)(cs,e)),(e=>Es(e)),{beforeDeserialize:function(e,t,n){void 0!==n.fullPath&&void 0===n.genericType?e(null,n.fullPath):e(null,n.genericType)}})}),ks=e=>{const t=new Qa;return U(e.unitType)?t.genericType=rs(e.unitType):t.genericType=rs(W(e.fullPath,"Can't deserialize hacked unit: either field 'fullPath' or 'unitType' must be a non-empty string")),t},Rs=e=>{const t=new Qa;return t.genericType=rs(W(e.fullPath,"Can't deserialize hacked class: field 'fullPath' must be a non-empty string")),t},Os=e=>(0,pe.PL)(na,{_type:he(Ts.COLLECTION),multiplicity:me(Ma),values:(0,pe.p_)((0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e))))}),Ls=(0,pe.PL)(class extends oa{fullPath;value;accept_ValueSpecificationVisitor(e){return e.visit_EnumValue(this)}},{_type:he(Ts.ENUM_VALUE),fullPath:(0,pe.MY)(),value:(0,pe.MY)()}),Fs=(0,pe.PL)(sa,{_type:he(Ts.CDECIMAL),value:(0,pe.MY)()}),Ps=(0,pe.PL)(la,{_type:he(Ts.CINTEGER),value:(0,pe.MY)()}),Bs=(0,pe.PL)(ia,{_type:he(Ts.CSTRING),value:(0,pe.MY)()}),Ds=(0,pe.PL)(ca,{_type:he(Ts.CFLOAT),value:(0,pe.MY)()}),js=(0,pe.PL)(pa,{_type:he(Ts.CDATETIME),value:(0,pe.MY)()}),Ms=(0,pe.PL)(ga,{_type:he(Ts.CSTRICTTIME),value:(0,pe.MY)()}),Us=(0,pe.PL)(da,{_type:he(Ts.CSTRICTDATE),value:(0,pe.MY)()}),Gs=(0,pe.PL)(class extends ua{accept_ValueSpecificationVisitor(e){return e.visit_CLatestDate(this)}},{_type:he(Ts.CLATESTDATE)}),Vs=(0,pe.PL)(aa,{_type:he(Ts.CBOOLEAN),value:(0,pe.MY)()}),Hs=(0,pe.PL)(class extends ra{value;accept_ValueSpecificationVisitor(e){return e.visit_CByteArray(this)}},{_type:he(Ts.CBYTEARRAY),value:(0,pe.MY)()}),Ws=(e,t,n)=>{if(Array.isArray(e.values)){if(0===e.values.length){const e=new na;return e.multiplicity=Dr.ZERO,e}return 1===e.values.length?n({...e,value:e.values[0]}):fl({...e,_type:Ts.COLLECTION},t)}return n(e)},$s=e=>(0,pe.PL)(ha,{_type:he(Ts.CLASS_INSTANCE),multiplicity:me(Ma),type:(0,pe.MY)(),value:(0,pe.Ie)((t=>function(e,t){if(e instanceof ba)return(0,pe.lK)(Ys(t),e);if(e instanceof Ca)return(0,pe.lK)(Xs(t),e);if(e instanceof Aa)return(0,pe.lK)(tl(t),e);if(e instanceof va)return(0,pe.lK)(nl(t),e);if(e instanceof _a)return(0,pe.lK)(ol(t),e);if(e instanceof Ia)return(0,pe.lK)(il(t),e);if(e instanceof Ta)return(0,pe.lK)(rl,e);if(e instanceof ya)return(0,pe.lK)(al,e);if(e instanceof wa)return(0,pe.lK)(sl(t),e);if(e instanceof ka)return(0,pe.lK)(ll(t),e);if(e instanceof La)return(0,pe.lK)(ml(t),e);if(e instanceof Oa)return(0,pe.lK)(gl(t),e);if(e instanceof Ra)return(0,pe.lK)(cl,e);if(e instanceof fa)return(0,pe.lK)(dl(t),e);if(e instanceof Fa)return(0,pe.lK)(pl(t),e);if(e instanceof Pa)return(0,pe.lK)(ul,e);const n=t.flatMap((e=>e.V1_getExtraClassInstanceValueProtocolSerializers?.()??[]));for(const o of n){const n=o(e,t);if(n)return n}throw new I("Can't serialize class instance value: no compatible serializer available from plugins",e)}(t,e)),((t,n)=>function(e,t,n){switch(t){case _s.PATH:return(0,pe.iu)(Ys(n),e);case _s.ROOT_GRAPH_FETCH_TREE:return(0,pe.iu)(Xs(n),e);case _s.AGGREGATE_VALUE:return(0,pe.iu)(nl(n),e);case _s.EXECUTION_CONTEXT_INSTANCE:return(0,pe.iu)(tl(n),e);case _s.PAIR:return(0,pe.iu)(ol(n),e);case _s.PURE_LIST:return(0,pe.iu)(il(n),e);case _s.RUNTIME_INSTANCE:return(0,pe.iu)(rl,e);case _s.SERIALIZATION_CONFIG:return(0,pe.iu)(al,e);case _s.TDS_AGGREGATE_VALUE:return(0,pe.iu)(sl(n),e);case _s.TDS_COLUMN_INFORMATION:return(0,pe.iu)(ll(n),e);case _s.TDS_OLAP_AGGREGATION:return(0,pe.iu)(ml(n),e);case _s.TDS_OLAP_RANK:return(0,pe.iu)(gl(n),e);case _s.TDS_SORT_INFORMATION:return(0,pe.iu)(cl,e);case _s.COL_SPEC:return(0,pe.iu)(dl(n),e);case _s.COL_SPEC_ARRAY:return(0,pe.iu)(pl(n),e);case _s.RELATION_STORE_ACCESSOR:return(0,pe.iu)(ul,e);default:{const o=n.flatMap((e=>e.V1_getExtraClassInstanceValueProtocolDeserializers?.()??[]));for(const r of o){const o=r(e,t,n);if(o)return o}throw new I(`Can't deserialize value specification of type '${e._type}': no compatible deserializer available from plugins`)}}}(t,n.json.type,e)))}),zs=e=>(0,pe.PL)(Va,{_type:he(bs.PROPERTY_PATH_ELEMENT),property:(0,pe.MY)(),parameters:(0,pe.p_)((0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e))))}),Ys=e=>(0,pe.PL)(ba,{_type:he(_s.PATH),name:(0,pe.MY)(),startType:(0,pe.MY)(),path:(0,pe.p_)((0,pe.Ie)((t=>function(e,t){return e instanceof Va?(0,pe.lK)(zs(t),e):pe._Z}(t,e)),(t=>function(e,t){return e._type===bs.PROPERTY_PATH_ELEMENT?(0,pe.iu)(zs(t),e):pe._Z}(t,e))))}),Xs=e=>(0,pe.PL)(Ca,{_type:he(_s.ROOT_GRAPH_FETCH_TREE),class:(0,pe.MY)(),subTrees:(0,pe.p_)((0,pe.Ie)((t=>Js(t,e)),(t=>Qs(t,e)))),subTypeTrees:(0,pe.p_)((0,pe.Ie)((t=>Js(t,e)),(t=>Qs(t,e))))}),Ks=e=>(0,pe.PL)(Sa,{_type:he(vs.PROPERTY_GRAPH_FETCH_TREE),alias:(0,pe.lq)((0,pe.MY)()),parameters:(0,pe.p_)((0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e)))),property:(0,pe.MY)(),subTrees:(0,pe.p_)((0,pe.Ie)((t=>Js(t,e)),(t=>Qs(t,e)))),subTypeTrees:(0,pe.p_)((0,pe.Ie)((t=>Js(t,e)),(t=>Qs(t,e)))),subType:(0,pe.lq)((0,pe.MY)())}),qs=e=>(0,pe.PL)(Na,{_type:he(_s.SUBTYPE_GRAPH_FETCH_TREE),subTrees:(0,pe.p_)((0,pe.Ie)((t=>Js(t,e)),(t=>Qs(t,e)))),subTypeClass:(0,pe.MY)()});function Js(e,t){const n=t.flatMap((e=>e.V1_getExtraGraphFetchProtocolSerializers?.()??[]));for(const o of n){const n=o(e,t);if(n)return n}if(e instanceof Sa)return(0,pe.lK)(Ks(t),e);if(e instanceof Ca)return(0,pe.lK)(Xs(t),e);if(e instanceof Na)return(0,pe.lK)(qs(t),e);throw new I("Can't serialize graph fetch tree: no compatible serializer available from plugins",e)}function Qs(e,t){switch(e._type){case vs.PROPERTY_GRAPH_FETCH_TREE:return(0,pe.iu)(Ks(t),e);case _s.ROOT_GRAPH_FETCH_TREE:return(0,pe.iu)(Xs(t),e);case _s.SUBTYPE_GRAPH_FETCH_TREE:return(0,pe.iu)(qs(t),e);default:{const n=t.flatMap((e=>e.V1_getExtraGraphFetchProtocolDeserializers?.()??[]));for(const o of n){const n=o(e,t);if(n)return n}throw new I(`Can't deserialize graph fetch tree node of type '${e._type}': no compatible deserializer available from plugins`)}}}const Zs=e=>(0,pe.PL)(qa,{_type:he(Cs.ANALYTICS_EXECUTION_CONTEXT),enableConstraints:(0,pe.lq)((0,pe.MY)()),queryTimeOutInSeconds:(0,pe.lq)((0,pe.MY)()),toFlowSetFunction:me(Ss(e)),useAnalytics:(0,pe.MY)()}),el=(0,pe.PL)(Ja,{_type:he(Cs.BASE_EXECUTION_CONTEXT),enableConstraints:(0,pe.lq)((0,pe.MY)()),queryTimeOutInSeconds:(0,pe.lq)((0,pe.MY)())}),tl=e=>(0,pe.PL)(Aa,{_type:he(_s.EXECUTION_CONTEXT_INSTANCE),executionContext:(0,pe.Ie)((t=>function(e,t){return e instanceof qa?(0,pe.lK)(Zs(t),e):e instanceof Ja?(0,pe.lK)(el,e):pe._Z}(t,e)),(t=>function(e,t){switch(e._type){case Cs.ANALYTICS_EXECUTION_CONTEXT:return(0,pe.iu)(Zs(t),e);case Cs.BASE_EXECUTION_CONTEXT:return(0,pe.iu)(el,e);default:return pe._Z}}(t,e)))}),nl=e=>(0,pe.PL)(va,{_type:he(_s.AGGREGATE_VALUE),mapFn:me(Ss(e)),aggregateFn:me(Ss(e))}),ol=e=>(0,pe.PL)(_a,{_type:he(_s.PAIR),first:(0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e))),second:(0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e)))}),rl=(0,pe.PL)(Ta,{_type:he(_s.RUNTIME_INSTANCE),runtime:(0,pe.Ie)((e=>(e=>{if(e instanceof Wa)return(0,pe.lK)(Wa,e);if(e instanceof za)return(0,pe.lK)(Xa,e);throw new I("Can't serialize runtime",e)})(e)),(e=>(0,pe.iu)(Wa,e)))}),il=e=>(0,pe.PL)(Ia,{_type:he(_s.PURE_LIST),values:(0,pe.p_)((0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e))))}),al=(0,pe.PL)(ya,{_type:he(_s.SERIALIZATION_CONFIG),includeType:(0,pe.lq)((0,pe.MY)()),typeKeyName:(0,pe.MY)(),includeEnumTypee:(0,pe.lq)((0,pe.MY)()),removePropertiesWithNullValuese:(0,pe.lq)((0,pe.MY)()),removePropertiesWithEmptySetse:(0,pe.lq)((0,pe.MY)()),fullyQualifiedTypePathe:(0,pe.lq)((0,pe.MY)()),includeObjectReferencee:(0,pe.lq)((0,pe.MY)())}),sl=e=>(0,pe.PL)(wa,{_type:he(_s.TDS_AGGREGATE_VALUE),name:(0,pe.MY)(),pmapFn:me(Ss(e)),aggregateFn:me(Ss(e))}),ll=e=>(0,pe.PL)(ka,{_type:he(_s.TDS_COLUMN_INFORMATION),name:(0,pe.MY)(),columnFn:me(Ss(e))}),cl=(0,pe.PL)(Ra,{_type:he(_s.TDS_SORT_INFORMATION),column:(0,pe.MY)(),direction:(0,pe.MY)()}),ul=(0,pe.PL)(Pa,{path:(0,pe.p_)((0,pe.MY)())}),dl=e=>(0,pe.PL)(fa,{function1:(0,pe.lq)(me(Ss(e))),function2:(0,pe.lq)(me(Ss(e))),name:(0,pe.MY)(),type:(0,pe.lq)((0,pe.MY)())}),pl=e=>(0,pe.PL)(Fa,{colSpecs:(0,pe.p_)(me(dl(e)))}),gl=e=>(0,pe.PL)(Oa,{_type:he(_s.TDS_OLAP_RANK),function:me(Ss(e))}),ml=e=>(0,pe.PL)(La,{_type:he(_s.TDS_OLAP_AGGREGATION),function:me(Ss(e)),columnName:(0,pe.MY)()});class hl{plugins=[];constructor(e){this.plugins=e}visit_INTERNAL__UnknownValueSpecfication(e){return e.content}visit_Variable(e){return(0,pe.lK)(As,e)}visit_Lambda(e){return(0,pe.lK)(Ss(this.plugins),e)}visit_KeyExpression(e){return(0,pe.lK)(Ns(this.plugins),e)}visit_PackageableElementPtr(e){return(0,pe.lK)(Is(),e)}visit_GenericTypeInstance(e){return(0,pe.lK)(ws(this.plugins),e)}visit_AppliedFunction(e){return(0,pe.lK)(ys(this.plugins),e)}visit_AppliedProperty(e){return(0,pe.lK)(xs(this.plugins),e)}visit_Collection(e){return(0,pe.lK)(Os(this.plugins),e)}visit_EnumValue(e){return(0,pe.lK)(Ls,e)}visit_CInteger(e){return(0,pe.lK)(Ps,e)}visit_CDecimal(e){return(0,pe.lK)(Fs,e)}visit_CString(e){return(0,pe.lK)(Bs,e)}visit_CBoolean(e){return(0,pe.lK)(Vs,e)}visit_CByteArray(e){return(0,pe.lK)(Hs,e)}visit_CFloat(e){return(0,pe.lK)(Ds,e)}visit_CDateTime(e){return(0,pe.lK)(js,e)}visit_CStrictDate(e){return(0,pe.lK)(Us,e)}visit_CStrictTime(e){return(0,pe.lK)(Ms,e)}visit_CLatestDate(e){return(0,pe.lK)(Gs,e)}visit_ClassInstance(e){return(0,pe.lK)($s(this.plugins),e)}}function fl(e,t){switch(e._type){case Ts.APPLIED_FUNCTION:return(0,pe.iu)(ys(t),e);case Ts.APPLIED_PROPERTY:return(0,pe.iu)(xs(t),e);case Ts.VARIABLE:return(0,pe.iu)(As,e);case Ts.LAMBDA:return(0,pe.iu)(Ss(t),e);case Ts.KEY_EXPRESSION:return(0,pe.iu)(Ns(t),e);case Ts.COLLECTION:return(0,pe.iu)(Os(t),e);case Ts.ENUM_VALUE:return(0,pe.iu)(Ls,e);case Ts.CBOOLEAN:return Ws(e,t,(e=>(0,pe.iu)(Vs,e)));case Ts.CBYTEARRAY:return Ws(e,t,(e=>(0,pe.iu)(Hs,e)));case Ts.CDATETIME:return Ws(e,t,(e=>(0,pe.iu)(js,e)));case Ts.CSTRICTTIME:return Ws(e,t,(e=>(0,pe.iu)(Ms,e)));case Ts.CDECIMAL:return Ws(e,t,(e=>(0,pe.iu)(Fs,e)));case Ts.CFLOAT:return Ws(e,t,(e=>(0,pe.iu)(Ds,e)));case Ts.CINTEGER:return Ws(e,t,(e=>(0,pe.iu)(Ps,e)));case Ts.CLATESTDATE:return Ws(e,t,(e=>(0,pe.iu)(Gs,e)));case Ts.CSTRICTDATE:return Ws(e,t,(e=>(0,pe.iu)(Us,e)));case Ts.CSTRING:if(Array.isArray(e.values)&&!e.values.length&&(n=e.multiplicity,H(n)&&"Object"===n.constructor.name)&&1===e.multiplicity.upperBound){const e=new ia;return e.value="",e}return Ws(e,t,(e=>(0,pe.iu)(Bs,e)));case Ts.CLASS_INSTANCE:return(0,pe.iu)($s(t),e);case _s.PAIR:case _s.AGGREGATE_VALUE:case _s.EXECUTION_CONTEXT_INSTANCE:case _s.PATH:case _s.ROOT_GRAPH_FETCH_TREE:case _s.PURE_LIST:case _s.RUNTIME_INSTANCE:case _s.SERIALIZATION_CONFIG:case _s.TDS_AGGREGATE_VALUE:case _s.TDS_COLUMN_INFORMATION:case _s.TDS_OLAP_AGGREGATION:case _s.TDS_OLAP_RANK:case _s.TDS_SORT_INFORMATION:return(0,pe.iu)($s(t),{_type:Ts.CLASS_INSTANCE,type:e._type,value:e});case Ts.HACKED_CLASS:return Rs(e);case Ts.UNIT_TYPE:case Ts.HACKED_UNIT:return ks(e);case Ts.PRIMITIVE_TYPE:case Ts.ENUM:case Ts.CLASS:case Ts.MAPPING_INSTANCE:case Ts.PACKAGEABLE_ELEMENT_PTR:return(0,pe.iu)(Is(),e);case Ts.GENERIC_TYPE_INSTANCE:return(0,pe.iu)(ws(t),e);default:throw new I(`Can't deserialize value specification of type '${e._type}'`)}var n}function El(e,t){return e.accept_ValueSpecificationVisitor(new hl(t))}function Cl(){const e=new Ki;return e.name=fi,e}function bl(e){const t=new Ji;return t.property=e,t.parameters.push(Cl()),t}function vl(e,t){const n=new Ur;return n.parameters=e,n.body=t,n}const _l=["meta::pure::metamodel","meta::pure::metamodel::type","meta::pure::metamodel::type::generics","meta::pure::metamodel::relationship","meta::pure::metamodel::valuespecification","meta::pure::metamodel::multiplicity","meta::pure::metamodel::function","meta::pure::metamodel::function::property","meta::pure::metamodel::extension","meta::pure::metamodel::import","meta::pure::functions::date","meta::pure::functions::string","meta::pure::functions::collection","meta::pure::functions::meta","meta::pure::functions::constraints","meta::pure::functions::lang","meta::pure::functions::boolean","meta::pure::functions::tools","meta::pure::functions::relation","meta::pure::functions::io","meta::pure::functions::math","meta::pure::functions::asserts","meta::pure::functions::test","meta::pure::functions::multiplicity","meta::pure::router","meta::pure::service","meta::pure::tds","meta::pure::tools","meta::pure::profiles"];function Tl(e){const t=(e=>{const t=e.lastIndexOf(Gr);return-1===t?void 0:e.substring(0,t)})(e);return t&&_l.includes(t)?Zi(e):e}function Al(e,t){const n=new ta;return n.function=Tl(e),n.parameters=t,n}function Sl(e){const t=new na;return t.multiplicity=new Dr(e.length,e.length),t.values=e,t}function Nl(e,t){const n=(e,t)=>(e.value=t,e);switch(e){case Hr.STRING:return n(new ia,W(t));case Hr.BOOLEAN:return n(new aa,z(t));case Hr.NUMBER:case Hr.DECIMAL:return n(new sa,$(t));case Hr.INTEGER:return n(new la,$(t));case Hr.FLOAT:return n(new ca,$(t));case Hr.DATE:case Hr.STRICTDATE:return n(new da,W(t));case Hr.DATETIME:return n(new pa,W(t));case Hr.STRICTTIME:return n(new ga,W(t));default:throw new I(`Can't build primitive value instance for unsupported type '${e}'`)}}function yl(e){const t=new ma;return t.fullPath=e,t}function xl(e,t){const n=new ha;return n.type=e,n.value=t,n}function Il(e,t,n,o){const r=new fa;return r.name=e,r.function1=t,r.function2=n,r.type=o,r}function wl(e){switch(e.type){case Hr.STRING:case Hr.BOOLEAN:case Hr.NUMBER:case Hr.DECIMAL:case Hr.INTEGER:case Hr.FLOAT:case Hr.DATE:case Hr.DATETIME:case Hr.STRICTDATE:case Hr.STRICTTIME:return Array.isArray(e.value)?Sl(e.value.map((t=>Nl(e.type,t)))):Nl(e.type,e.value);case ai.COLUMN:return bl(W(e.value));default:throw new I(`Can't build value instance for unsupported type '${e.type}'`)}}function kl(e){return Al(Tl(Zr.NOT),[e])}function Rl(e,t,n){return xl(_s.COL_SPEC,Il(e,t,n))}function Ol(e){const t=new Fa;return t.colSpecs=e,xl(_s.COL_SPEC_ARRAY,t)}function Ll(e){const t=Cl();return e.length?e:[Il("INTERNAL__filler_count_agg_column",vl([t],[t]),vl([t],[Al(Zr.COUNT,[t])]))]}function Fl(e,t,n){const o=Cl();return Il(e.name,vl([o],[bl(e.name)]),vl([o],[Al(Tl(t),[o,...(n??[]).map((e=>wl(e)))])]))}function Pl(e,t,n,o){return Ll(n.columns.filter((n=>n.isSelected&&n.kind===ii.MEASURE&&!Hi(e,n.name)&&!n.excludedFromPivot&&!Hi(t.data.groupExtendedColumns,n.name))).map((e=>{const t=o.find((t=>t.operator===e.aggregateOperator)),n=t?.buildAggregateColumnExpression(e);if(!n)throw new I(`Can't build aggregate column for unsupported operator '${e.aggregateOperator}'`);return n})))}function Bl(e){const t=new Qa;return t.genericType=rs(zr.RELATION),t.genericType.typeArguments=[is(as(e.map((e=>ss(e.name,e.type)))))],t}function Dl(e,t,n,o){const r=t.data.pivot;if(!r)return Ll(n.columns.filter((n=>n.isSelected&&!Hi(e,n.name)&&!Hi(t.data.groupExtendedColumns,n.name))).map((e=>{const t=o.find((t=>t.operator===e.aggregateOperator)),n=t?.buildAggregateColumnExpression(e);if(!n)throw new I(`Can't build aggregate column for unsupported operator '${e.aggregateOperator}'`);return n})));const i=r.castColumns.filter((e=>Gi(e.name))),a=r.castColumns.filter((e=>!Gi(e.name)));return Ll([...i.map((e=>{const t=Vi(e.name);return{...e,matchingColumnConfiguration:Hi(n.columns,t)}})).filter((e=>e.matchingColumnConfiguration)).map((e=>{const t=zi.serialization.fromJson(P(e.matchingColumnConfiguration).serialize());t.name=e.name;const n=o.find((e=>e.operator===t.aggregateOperator)),r=n?.buildAggregateColumnExpression(t);if(!r)throw new I(`Can't build aggregate column for unsupported operator '${t.aggregateOperator}'`);return r})),...a.filter((t=>!Hi(e,t.name))).map((e=>{const t=P(Hi(n.columns,e.name)),r=o.find((e=>e.operator===t.aggregateOperator)),i=r?.buildAggregateColumnExpression(t);if(!i)throw new I(`Can't build aggregate column for unsupported operator '${t.aggregateOperator}'`);return i}))])}function jl(e,t){if("groupOperator"in e){const n=e,o=n.groupOperator===ui.AND?Zr.AND:Zr.OR;let r=[];n.conditions.forEach((e=>{r.push(jl(e,t)),2===r.length&&(r=[Al(o,r)])}));const i=P(r[0]);return n.not?kl(i):i}{const n=e,o=t.find((e=>e.operator===n.operator)),r=o?.buildConditionExpression(n);if(!r)throw new I(`Can't build filter condition expression for unsupported operator '${n.operator}'`);return n.not?kl(r):r}}function Ml(e,t,n,o){const r=e.data,i=Xi.serialization.fromJson(r.configuration),a=[],s={},l=function(e,t){return(n,o)=>{switch(n){case"leafExtend":case"groupExtend":Array.isArray(o)&&(o.forEach((t=>e.push(t))),t[n]=o);break;default:t[n]=o,e.push(o)}}}(a,s);if(r.leafExtendedColumns.length&&l("leafExtend",r.leafExtendedColumns.map((e=>Al(Zr.EXTEND,[Ol([Il(e.name,D(n.deserializeValueSpecification(e.mapFn),Ur),e.reduceFn?D(n.deserializeValueSpecification(e.reduceFn),Ur):void 0)])])))),r.filter&&l("filter",Al(Zr.FILTER,[vl([Cl()],[jl(r.filter,n.filterOperations)])])),r.selectColumns.length&&l("select",Al(Zr.SELECT,[Ol(r.selectColumns.map((e=>Il(e.name))))])),r.pivot){const t=r.pivot;l("sort",Al(Zr.SORT,[Sl(r.pivot.columns.map((e=>Al(Hi(i.columns,e.name)?.pivotSortDirection===di.DESCENDING?Zr.DESCENDING:Zr.ASCENDING,[Rl(e.name)]))))])),l("pivot",Al(Zr.PIVOT,[Ol(t.columns.map((e=>Il(e.name)))),Ol(Pl(t.columns,e,i,n.aggregateOperations))])),t.castColumns.length&&l("pivotCast",Al(Zr.CAST,[Bl(t.castColumns)]))}if(r.groupBy){const t=r.groupBy;i.showRootAggregation&&o?.rootAggregation&&a.push((c=o.rootAggregation.columnName,Al(Zr.EXTEND,[Rl(c,vl([Cl()],[Nl(Hr.STRING,bi)]))]))),l("groupBy",Al(Zr.GROUP_BY,[Ol(t.columns.map((e=>Il(e.name)))),Ol(Dl(t.columns,e,i,n.aggregateOperations))])),l("groupBySort",Al(Zr.SORT,[Sl(t.columns.map((e=>Al(i.treeColumnSortDirection===di.ASCENDING?Zr.ASCENDING:Zr.DESCENDING,[Rl(e.name)]))))]))}var c;if(r.groupExtendedColumns.length&&l("groupExtend",r.groupExtendedColumns.map((e=>Al(Zr.EXTEND,[Ol([Il(e.name,D(n.deserializeValueSpecification(e.mapFn),Ur),e.reduceFn?D(n.deserializeValueSpecification(e.reduceFn),Ur):void 0)])])))),r.sortColumns.length&&l("sort",Al(Zr.SORT,[Sl(r.sortColumns.map((e=>Al(e.direction===di.ASCENDING?Zr.ASCENDING:Zr.DESCENDING,[Rl(e.name)]))))])),void 0!==r.limit&&l("limit",Al(Zr.LIMIT,[Nl(Hr.INTEGER,r.limit)])),o?.pagination&&a.push(Al(Zr.SLICE,[Nl(Hr.INTEGER,o.pagination.start),Nl(Hr.INTEGER,o.pagination.end)])),!o?.skipExecutionContext){const e=n.buildExecutionContext(t);e&&a.push(e)}if(o?.postProcessor?.(e,a,s,i,n),0===a.length)return t.query;for(let e=0;e<a.length;e++)A(a,e).parameters.unshift(0===e?t.query:A(a,e-1));return A(a,a.length-1)}var Ul,Gl;!function(e){e.V1_0_0="v1_0_0",e.VX_X_X="vX_X_X"}(Ul||(Ul={}));class Vl{columns=[];query}class Hl extends Vl{}function Wl(e){M(e.name===fi,`Can't process variable '${e.name}': expected variable name to be '${fi}'`)}function $l(e,t){return M(1===e.parameters.length,`Can't process property '${e.property}': expected exactly 1 parameter`),Wl(D(A(e.parameters,0),Ki,`Can't process property '${e.property}': failed to extract variable`)),t(e.property)}function zl(e,t,n,o){return M(e.parameters.length>=t+1,`Can't process ${Zi(e.function)}() expression: expected at least ${t+1} parameter(s)`),D(e.parameters[t],n,o??`Can't process ${Zi(e.function)}() expression: found unexpected type for parameter at index ${t}`)}function Yl(e,t){return D(zl(e,t,ha).value,fa,`Can't process ${Zi(e.function)}() expression: expected parameter at index ${t} to be a column specification`)}function Xl(e,t){return D(zl(e,t,ha).value,Fa,`Can't process ${Zi(e.function)}() expression: expected parameter at index ${t} to be a column specification list`)}function Kl(e,t){return M(1===e.body.length,`${t??"Can't process lambda"}: expected lambda body to have exactly 1 expression`),M(1===e.parameters.length,`${t??"Can't process lambda"}: expected lambda to have exactly 1 parameter`),Wl(A(e.parameters,0)),A(e.body,0)}function ql(e){return D(e.rawType,es,"Can't process generic type: failed to extract packageable type")}function Jl(e,t,n){if(e instanceof ra)return function(e){if(e instanceof ia)return{value:e.value,type:Hr.STRING};if(e instanceof aa)return{value:e.value,type:Hr.BOOLEAN};if(e instanceof sa)return{value:e.value,type:Hr.DECIMAL};if(e instanceof la)return{value:e.value,type:Hr.INTEGER};if(e instanceof ca)return{value:e.value,type:Hr.FLOAT};if(e instanceof da)return{value:e.value,type:Hr.STRICTDATE};if(e instanceof pa)return{value:e.value,type:Hr.DATETIME};if(e instanceof ga)return{value:e.value,type:Hr.STRICTTIME};throw new I("Can't process unsupported operation primitive value")}(e);if(e instanceof Ji){const o=$l(e,t);return n?.(o),{value:o.name,type:ai.COLUMN}}if(void 0===e)return{type:ai.VOID};throw new I("Can't process unsupported operation value")}function Ql(e,t){const n=new Set;e.forEach((e=>{if(n.has(e.name))throw new Error(t?.(e.name)??`Can't process expression: found duplicate columns '${e.name}'`);n.add(e.name)}))}function Zl(e,t,n){const o=Math.min(e.length,t.length);if(!o)return[];let r=-1;for(let n=0;n<o&&A(e,n).name===A(t,n).name&&A(e,n).type===A(t,n).type;n++)r=n;return n.filter((e=>e.split(hi).length<=r+1)).sort()}async function ec(e,t,n){const o=e.map((e=>{const t=Xl(e,0).colSpecs;return M(1===t.length,`Can't process extend() expression: expected 1 column specification, got ${t.length}`),A(t,0)})),r=function(e){return Al(Zr.CAST,[Nl(Hr.STRING,""),Bl(e)])}(t),i=o.map((e=>Al(Zr.EXTEND,[Ol([Il(e.name,P(e.function1,`Can't process extend() expression: expected a transformation function expression for column '${e.name}'`),e.function2)])])));for(let e=0;e<i.length;e++)A(i,e).parameters.unshift(0===e?r:A(i,e-1));const a=A(i,i.length-1);let s=[];try{s=(await n.getQueryRelationReturnType(vl([],[a]),new Hl)).columns}catch(e){throw w(e),new Error(`Can't process extend() expression: failed to retrieve type information for columns. Error: ${e.message}`)}return o.map((e=>({name:e.name,type:P(Hi(s,e.name),`Can't process extend() expression: failed to retrieve type information for column '${e.name}'`).type,mapFn:n.serializeValueSpecification(P(e.function1,`Can't process extend() expression: expected a transformation function expression for column '${e.name}'`)),reduceFn:e.function2?n.serializeValueSpecification(e.function2):void 0})))}function tc(e,t,n){if(!(e instanceof ta))throw new Error("Can't process filter() expression: expected a function expression");const o={groupOperator:ui.AND,conditions:[]};return ea(e.function,Zr.AND)?e.parameters.forEach((e=>{o.conditions.push(oc(e,t,n))})):ea(e.function,Zr.OR)?(o.groupOperator=ui.OR,e.parameters.forEach((e=>{o.conditions.push(oc(e,t,n))}))):o.conditions.push(oc(e,t,n)),o}function nc(e){return M(ea(e.function,Zr.NOT),"Can't process filter condition expression: failed to unwrap not() function"),M(1===e.parameters.length,"Can't process not() function: expected 1 parameter"),zl(e,0,ta)}function oc(e,t,n){if(!(e instanceof ta))throw new I("Can't process filter condition expression: expected a function expression");if(ea(e.function,[Zr.AND,Zr.OR]))return tc(e,t,n);for(const o of n){const n=o.buildConditionSnapshot(e,t);if(n)return n}if(ea(e.function,Zr.NOT)){const o=nc(e);for(const e of n){const n=e.buildConditionSnapshot(o,t);if(n)return n.not=!0,n}if(o instanceof ta&&ea(o.function,[Zr.AND,Zr.OR])){const e=tc(o,t,n);return e.not=!0,e}}throw new Error("Can't process filter condition: no matching operator found")}function rc(e,t,n){if(e)try{if(ea(e.function,t)){if(2!==e.parameters.length&&1!==e.parameters.length)return;let t;if(e.parameters[0]instanceof Ji&&(t=$l(e.parameters[0],n)),!t)return;const o=Jl(e.parameters[1],n,(e=>{if(ji(t.type)!==ji(e.type))throw new Error("Can't process filter condition: found incompatible columns")}));return{column:t,value:o}}}catch{return}}function ic(e,t,n){if(e)try{if(ea(e.function,t)){if(2!==e.parameters.length)return;const t=e.parameters[0];if(!(t instanceof ta&&ea(t.function,Zr.TO_LOWERCASE)))return;if(1!==t.parameters.length)return;let o;if(t.parameters[0]instanceof Ji&&(o=$l(t.parameters[0],n)),!o)return;const r=e.parameters[1];if(!(r instanceof ta&&ea(r.function,Zr.TO_LOWERCASE)))return;if(1!==r.parameters.length)return;const i=Jl(r.parameters[0],n,(e=>{if(ji(o.type)!==ji(e.type))throw new Error("Can't process filter condition: found incompatible columns")}));return{column:o,value:i}}}catch{return}}function ac(e,t,n){for(const o of n){const n=o.buildAggregateColumnSnapshot(e,t);if(n)return n}throw new Error(`Can't process aggregate column '${e.name}': no matching operator found`)}function sc(e,t,n){try{if(e.function1&&e.function2){const o=Kl(e.function1),r=Kl(e.function2);if(o instanceof Ji&&r instanceof ta&&r.parameters.length>=1&&ea(r.function,t)){const t=$l(o,n);return M(t.name===e.name,"Can't process aggregate column: column name must match mapper column name"),Wl(zl(r,0,Ki)),{column:t,paramterValues:r.parameters.slice(1).map((e=>Jl(e,n)))}}}}catch{return}}function lc(e,t){return zl(e,0,na,"Can't process sort() expression: expected parameter at index 0 to be a collection").values.map((e=>{const n=function(e,t){return B(e,ta,"Can't process function: found unexpected value specification type"),M(ea(e.function,Array.isArray(t)?t:[t]),`Can't process function: expected function to be one of [${(0,Te.A)((Array.isArray(t)?t:[t]).map(Zi)).join(", ")}]`),e}(e,[Zr.ASCENDING,Zr.DESCENDING]);return{...t(Yl(n,0).name),direction:ea(n.function,Zr.ASCENDING)?di.ASCENDING:di.DESCENDING}}))}function cc(e,t){return P(t.getColumn(e),`Can't find configuration for column '${e}'`)}!function(e){e.WHITESPACE="",e.KEYWORD="keyword",e.IDENTIFIER="identifier",e.OPERATOR="operator",e.DELIMITER="delimiter",e.PARSER="parser",e.NUMBER="number",e.DATE="date",e.COLOR="color",e.PACKAGE="package",e.STRING="string",e.COMMENT="comment",e.LANGUAGE_STRUCT="language-struct",e.MULTIPLICITY="multiplicity",e.GENERICS="generics",e.PROPERTY="property",e.PARAMETER="parameter",e.VARIABLE="variable",e.TYPE="type",e.INVALID="invalid"}(Gl||(Gl={}));const uc=(e,t,n,o)=>{const r=(e=>{const t=[];e.tokenColors.forEach((e=>{if(!e.settings)return;let n=[];n=U(e.scope)?e.scope.replace(/^[,]+/,"").replace(/[,]+$/,"").split(",").map((e=>e.trim())):Array.isArray(e.scope)?e.scope:[""];const o={};e.settings.foreground&&U(e.settings.foreground)&&(o.foreground=e.settings.foreground),e.settings.background&&U(e.settings.background)&&(o.background=e.settings.background),e.settings.fontStyle&&U(e.settings.fontStyle)&&(o.fontStyle=e.settings.fontStyle),n.forEach((e=>{if(L(e)||!Object.keys(o).length)return;const n={...o,token:e};t.push(n)}))}));const n={};return Object.entries(e.colors).forEach((([e,t])=>{Array.isArray(t)?t.length&&(n[e]=A(t,0)):n[e]=t})),{base:"vs-dark",inherit:!0,rules:t,colors:n}})(e);return{...r,base:t,colors:{...r.colors,...n},rules:[...r.rules,...o]}},dc=JSON.parse('{"name":"Solarized (dark)","tokenColors":[{"settings":{"foreground":"#839496"}},{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown"],"settings":{"foreground":"#839496"}},{"name":"Comment","scope":"comment","settings":{"fontStyle":"italic","foreground":"#586E75"}},{"name":"String","scope":"string","settings":{"foreground":"#2AA198"}},{"name":"Regexp","scope":"string.regexp","settings":{"foreground":"#DC322F"}},{"name":"Number","scope":"constant.numeric","settings":{"foreground":"#D33682"}},{"name":"Variable","scope":["variable.language","variable.other"],"settings":{"foreground":"#268BD2"}},{"name":"Keyword","scope":"keyword","settings":{"foreground":"#859900"}},{"name":"Storage","scope":"storage","settings":{"fontStyle":"bold","foreground":"#93A1A1"}},{"name":"Class name","scope":["entity.name.class","entity.name.type","entity.name.namespace","entity.name.scope-resolution"],"settings":{"fontStyle":"","foreground":"#CB4B16"}},{"name":"Function name","scope":"entity.name.function","settings":{"foreground":"#268BD2"}},{"name":"Variable start","scope":"punctuation.definition.variable","settings":{"foreground":"#859900"}},{"name":"Embedded code markers","scope":["punctuation.section.embedded.begin","punctuation.section.embedded.end"],"settings":{"foreground":"#DC322F"}},{"name":"Built-in constant","scope":["constant.language","meta.preprocessor"],"settings":{"foreground":"#B58900"}},{"name":"Support.construct","scope":["support.function.construct","keyword.other.new"],"settings":{"foreground":"#CB4B16"}},{"name":"User-defined constant","scope":["constant.character","constant.other"],"settings":{"foreground":"#CB4B16"}},{"name":"Inherited class","scope":"entity.other.inherited-class","settings":{"foreground":"#6C71C4"}},{"name":"Function argument","scope":"variable.parameter","settings":{}},{"name":"Tag name","scope":"entity.name.tag","settings":{"foreground":"#268BD2"}},{"name":"Tag start/end","scope":"punctuation.definition.tag","settings":{"foreground":"#586E75"}},{"name":"Tag attribute","scope":"entity.other.attribute-name","settings":{"foreground":"#93A1A1"}},{"name":"Library function","scope":"support.function","settings":{"foreground":"#268BD2"}},{"name":"Continuation","scope":"punctuation.separator.continuation","settings":{"foreground":"#DC322F"}},{"name":"Library constant","scope":["support.constant","support.variable"],"settings":{}},{"name":"Library class/type","scope":["support.type","support.class"],"settings":{"foreground":"#859900"}},{"name":"Library Exception","scope":"support.type.exception","settings":{"foreground":"#CB4B16"}},{"name":"Library variable","scope":"support.other.variable","settings":{}},{"name":"Invalid","scope":"invalid","settings":{"foreground":"#DC322F"}},{"name":"diff: header","scope":["meta.diff","meta.diff.header"],"settings":{"fontStyle":"italic","foreground":"#268BD2"}},{"name":"diff: deleted","scope":"markup.deleted","settings":{"fontStyle":"","foreground":"#DC322F"}},{"name":"diff: changed","scope":"markup.changed","settings":{"fontStyle":"","foreground":"#CB4B16"}},{"name":"diff: inserted","scope":"markup.inserted","settings":{"foreground":"#859900"}},{"name":"Markup Quote","scope":"markup.quote","settings":{"foreground":"#859900"}},{"name":"Markup Lists","scope":"markup.list","settings":{"foreground":"#B58900"}},{"name":"Markup Styling","scope":["markup.bold","markup.italic"],"settings":{"foreground":"#D33682"}},{"name":"Markup: Strong","scope":"markup.bold","settings":{"fontStyle":"bold"}},{"name":"Markup: Emphasis","scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"name":"Markup Inline","scope":"markup.inline.raw","settings":{"fontStyle":"","foreground":"#2AA198"}},{"name":"Markup Headings","scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#268BD2"}},{"name":"Markup Setext Header","scope":"markup.heading.setext","settings":{"fontStyle":"","foreground":"#268BD2"}}],"colors":{"focusBorder":"#2AA19899","selection.background":"#2AA19899","input.background":"#003847","input.foreground":"#93A1A1","input.placeholderForeground":"#93A1A1AA","inputOption.activeBorder":"#2AA19899","inputValidation.infoBorder":"#363b5f","inputValidation.infoBackground":"#052730","inputValidation.warningBackground":"#5d5938","inputValidation.warningBorder":"#9d8a5e","inputValidation.errorBackground":"#571b26","inputValidation.errorBorder":"#a92049","errorForeground":"#ffeaea","badge.background":"#047aa6","progressBar.background":"#047aa6","dropdown.background":"#00212B","dropdown.border":"#2AA19899","button.background":"#2AA19899","list.activeSelectionBackground":"#005A6F","quickInputList.focusBackground":"#005A6F","list.hoverBackground":"#004454AA","list.inactiveSelectionBackground":"#00445488","list.dropBackground":"#00445488","list.highlightForeground":"#1ebcc5","editor.background":"#002B36","editor.foreground":"#839496","editorWidget.background":"#00212B","editorCursor.foreground":"#D30102","editorWhitespace.foreground":"#93A1A180","editor.lineHighlightBackground":"#073642","editorLineNumber.activeForeground":"#949494","editor.selectionBackground":"#274642","minimap.selectionHighlight":"#274642","editorIndentGuide.background":"#93A1A180","editorIndentGuide.activeBackground":"#C3E1E180","editorHoverWidget.background":"#004052","editorMarkerNavigationError.background":"#AB395B","editorMarkerNavigationWarning.background":"#5B7E7A","editor.selectionHighlightBackground":"#005A6FAA","editor.wordHighlightBackground":"#004454AA","editor.wordHighlightStrongBackground":"#005A6FAA","editorBracketHighlight.foreground1":"#cdcdcdff","editorBracketHighlight.foreground2":"#b58900ff","editorBracketHighlight.foreground3":"#d33682ff","peekViewResult.background":"#00212B","peekViewEditor.background":"#10192c","peekViewTitle.background":"#00212B","peekView.border":"#2b2b4a","peekViewEditor.matchHighlightBackground":"#7744AA40","titleBar.activeBackground":"#002C39","editorGroup.border":"#00212B","editorGroup.dropBackground":"#2AA19844","editorGroupHeader.tabsBackground":"#004052","tab.activeForeground":"#d6dbdb","tab.activeBackground":"#002B37","tab.inactiveForeground":"#93A1A1","tab.inactiveBackground":"#004052","tab.border":"#003847","tab.lastPinnedBorder":"#2AA19844","activityBar.background":"#003847","panel.border":"#2b2b4a","sideBar.background":"#00212B","sideBarTitle.foreground":"#93A1A1","statusBar.foreground":"#93A1A1","statusBar.background":"#00212B","statusBar.debuggingBackground":"#00212B","statusBar.noFolderBackground":"#00212B","statusBarItem.remoteBackground":"#2AA19899","ports.iconRunningProcessForeground":"#369432","statusBarItem.prominentBackground":"#003847","statusBarItem.prominentHoverBackground":"#003847","debugToolBar.background":"#00212B","debugExceptionWidget.background":"#00212B","debugExceptionWidget.border":"#AB395B","pickerGroup.foreground":"#2AA19899","pickerGroup.border":"#2AA19899","terminal.ansiBlack":"#073642","terminal.ansiRed":"#dc322f","terminal.ansiGreen":"#859900","terminal.ansiYellow":"#b58900","terminal.ansiBlue":"#268bd2","terminal.ansiMagenta":"#d33682","terminal.ansiCyan":"#2aa198","terminal.ansiWhite":"#eee8d5","terminal.ansiBrightBlack":"#002b36","terminal.ansiBrightRed":"#cb4b16","terminal.ansiBrightGreen":"#586e75","terminal.ansiBrightYellow":"#657b83","terminal.ansiBrightBlue":"#839496","terminal.ansiBrightMagenta":"#6c71c4","terminal.ansiBrightCyan":"#93a1a1","terminal.ansiBrightWhite":"#fdf6e3"},"semanticHighlighting":true}'),pc=JSON.parse('{"name":"GitHub Dark","colors":{"focusBorder":"#005cc5","foreground":"#d1d5da","descriptionForeground":"#959da5","errorForeground":"#f97583","textLink.foreground":"#79b8ff","textLink.activeForeground":"#c8e1ff","textBlockQuote.background":"#24292e","textBlockQuote.border":"#444d56","textCodeBlock.background":"#2f363d","textPreformat.foreground":"#d1d5da","textSeparator.foreground":"#586069","button.background":"#176f2c","button.foreground":"#dcffe4","button.hoverBackground":"#22863a","button.secondaryBackground":"#444d56","button.secondaryForeground":"#fff","button.secondaryHoverBackground":"#586069","checkbox.background":"#444d56","checkbox.border":"#1b1f23","dropdown.background":"#2f363d","dropdown.border":"#1b1f23","dropdown.foreground":"#e1e4e8","dropdown.listBackground":"#24292e","input.background":"#2f363d","input.border":"#1b1f23","input.foreground":"#e1e4e8","input.placeholderForeground":"#959da5","badge.foreground":"#c8e1ff","badge.background":"#044289","progressBar.background":"#0366d6","titleBar.activeForeground":"#e1e4e8","titleBar.activeBackground":"#24292e","titleBar.inactiveForeground":"#959da5","titleBar.inactiveBackground":"#1f2428","titleBar.border":"#1b1f23","activityBar.foreground":"#e1e4e8","activityBar.inactiveForeground":"#6a737d","activityBar.background":"#24292e","activityBarBadge.foreground":"#fff","activityBarBadge.background":"#0366d6","activityBar.activeBorder":"#f9826c","activityBar.border":"#1b1f23","sideBar.foreground":"#d1d5da","sideBar.background":"#1f2428","sideBar.border":"#1b1f23","sideBarTitle.foreground":"#e1e4e8","sideBarSectionHeader.foreground":"#e1e4e8","sideBarSectionHeader.background":"#1f2428","sideBarSectionHeader.border":"#1b1f23","list.hoverForeground":"#e1e4e8","list.inactiveSelectionForeground":"#e1e4e8","list.activeSelectionForeground":"#e1e4e8","list.hoverBackground":"#282e34","list.inactiveSelectionBackground":"#282e34","list.activeSelectionBackground":"#39414a","list.inactiveFocusBackground":"#1d2d3e","list.focusBackground":"#044289","tree.indentGuidesStroke":"#2f363d","notificationCenterHeader.foreground":"#959da5","notificationCenterHeader.background":"#24292e","notifications.foreground":"#e1e4e8","notifications.background":"#2f363d","notifications.border":"#1b1f23","notificationsErrorIcon.foreground":"#ea4a5a","notificationsWarningIcon.foreground":"#ffab70","notificationsInfoIcon.foreground":"#79b8ff","pickerGroup.border":"#444d56","pickerGroup.foreground":"#e1e4e8","quickInput.background":"#24292e","quickInput.foreground":"#e1e4e8","statusBar.foreground":"#d1d5da","statusBar.background":"#24292e","statusBar.border":"#1b1f23","statusBar.noFolderBackground":"#24292e","statusBar.debuggingBackground":"#931c06","statusBar.debuggingForeground":"#fff","statusBarItem.prominentBackground":"#282e34","statusBarItem.remoteForeground":"#d1d5da","statusBarItem.remoteBackground":"#24292e","editorGroupHeader.tabsBackground":"#1f2428","editorGroupHeader.tabsBorder":"#1b1f23","editorGroup.border":"#1b1f23","tab.activeForeground":"#e1e4e8","tab.inactiveForeground":"#959da5","tab.inactiveBackground":"#1f2428","tab.activeBackground":"#24292e","tab.hoverBackground":"#24292e","tab.unfocusedHoverBackground":"#24292e","tab.border":"#1b1f23","tab.unfocusedActiveBorderTop":"#1b1f23","tab.activeBorder":"#24292e","tab.unfocusedActiveBorder":"#24292e","tab.activeBorderTop":"#f9826c","breadcrumb.foreground":"#959da5","breadcrumb.focusForeground":"#e1e4e8","breadcrumb.activeSelectionForeground":"#d1d5da","breadcrumbPicker.background":"#2b3036","editor.foreground":"#e1e4e8","editor.background":"#24292e","editorWidget.background":"#1f2428","editor.foldBackground":"#58606915","editor.lineHighlightBackground":"#2b3036","editorLineNumber.foreground":"#444d56","editorLineNumber.activeForeground":"#e1e4e8","editorIndentGuide.background":"#2f363d","editorIndentGuide.activeBackground":"#444d56","editorWhitespace.foreground":"#444d56","editorCursor.foreground":"#c8e1ff","editorError.foreground":"#f97583","editorWarning.foreground":"#ffea7f","editor.findMatchBackground":"#ffd33d44","editor.findMatchHighlightBackground":"#ffd33d22","editor.linkedEditingBackground":"#3392FF22","editor.inactiveSelectionBackground":"#3392FF22","editor.selectionBackground":"#3392FF44","editor.selectionHighlightBackground":"#17E5E633","editor.selectionHighlightBorder":"#17E5E600","editor.wordHighlightBackground":"#17E5E600","editor.wordHighlightStrongBackground":"#17E5E600","editor.wordHighlightBorder":"#17E5E699","editor.wordHighlightStrongBorder":"#17E5E666","editorBracketMatch.background":"#17E5E650","editorBracketMatch.border":"#17E5E600","editorGutter.modifiedBackground":"#2188ff","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#ea4a5a","diffEditor.insertedTextBackground":"#28a74530","diffEditor.removedTextBackground":"#d73a4930","scrollbar.shadow":"#0008","scrollbarSlider.background":"#6a737d33","scrollbarSlider.hoverBackground":"#6a737d44","scrollbarSlider.activeBackground":"#6a737d88","editorOverviewRuler.border":"#1b1f23","panel.background":"#1f2428","panel.border":"#1b1f23","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#e1e4e8","panelTitle.inactiveForeground":"#959da5","panelInput.border":"#2f363d","terminal.foreground":"#d1d5da","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#586069","terminalCursor.foreground":"#79b8ff","terminal.ansiBrightWhite":"#fafbfc","terminal.ansiWhite":"#d1d5da","terminal.ansiBrightBlack":"#959da5","terminal.ansiBlack":"#586069","terminal.ansiBlue":"#2188ff","terminal.ansiBrightBlue":"#79b8ff","terminal.ansiGreen":"#34d058","terminal.ansiBrightGreen":"#85e89d","terminal.ansiCyan":"#39c5cf","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiRed":"#ea4a5a","terminal.ansiBrightRed":"#f97583","terminal.ansiMagenta":"#b392f0","terminal.ansiBrightMagenta":"#b392f0","terminal.ansiYellow":"#ffea7f","terminal.ansiBrightYellow":"#ffea7f","editorBracketHighlight.foreground1":"#79b8ff","editorBracketHighlight.foreground2":"#ffab70","editorBracketHighlight.foreground3":"#b392f0","editorBracketHighlight.foreground4":"#79b8ff","editorBracketHighlight.foreground5":"#ffab70","editorBracketHighlight.foreground6":"#b392f0","gitDecoration.addedResourceForeground":"#34d058","gitDecoration.modifiedResourceForeground":"#79b8ff","gitDecoration.deletedResourceForeground":"#ea4a5a","gitDecoration.untrackedResourceForeground":"#34d058","gitDecoration.ignoredResourceForeground":"#6a737d","gitDecoration.conflictingResourceForeground":"#ffab70","gitDecoration.submoduleResourceForeground":"#6a737d","debugToolBar.background":"#2b3036","editor.stackFrameHighlightBackground":"#C6902625","editor.focusedStackFrameHighlightBackground":"#2b6a3033","peekViewEditor.matchHighlightBackground":"#ffd33d33","peekViewResult.matchHighlightBackground":"#ffd33d33","peekViewEditor.background":"#1f242888","peekViewResult.background":"#1f2428","settings.headerForeground":"#e1e4e8","settings.modifiedItemIndicator":"#0366d6","welcomePage.buttonBackground":"#2f363d","welcomePage.buttonHoverBackground":"#444d56"},"semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#79b8ff"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#b392f0"}},{"scope":"variable.parameter.function","settings":{"foreground":"#e1e4e8"}},{"scope":"entity.name.tag","settings":{"foreground":"#85e89d"}},{"scope":"keyword","settings":{"foreground":"#f97583"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#f97583"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#e1e4e8"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#9ecbff"}},{"scope":"support","settings":{"foreground":"#79b8ff"}},{"scope":"meta.property-name","settings":{"foreground":"#79b8ff"}},{"scope":"variable","settings":{"foreground":"#ffab70"}},{"scope":"variable.other","settings":{"foreground":"#e1e4e8"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"carriage-return","settings":{"fontStyle":"italic underline","background":"#f97583","foreground":"#24292e","content":"^M"}},{"scope":"message.error","settings":{"foreground":"#fdaeb7"}},{"scope":"string variable","settings":{"foreground":"#79b8ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#dbedff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#dbedff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#85e89d"}},{"scope":"support.constant","settings":{"foreground":"#79b8ff"}},{"scope":"support.variable","settings":{"foreground":"#79b8ff"}},{"scope":"meta.module-reference","settings":{"foreground":"#79b8ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ffab70"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"markup.quote","settings":{"foreground":"#85e89d"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#e1e4e8"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#e1e4e8"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#79b8ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#86181d","foreground":"#fdaeb7"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#144620","foreground":"#85e89d"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#c24e00","foreground":"#ffab70"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"foreground":"#2f363d","background":"#79b8ff"}},{"scope":"meta.diff.range","settings":{"foreground":"#b392f0","fontStyle":"bold"}},{"scope":"meta.diff.header","settings":{"foreground":"#79b8ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"meta.output","settings":{"foreground":"#79b8ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#d1d5da"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#fdaeb7"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#dbedff","fontStyle":"underline"}}]}'),gc=JSON.parse('{"name":"GitHub Dark Dimmed","colors":{"focusBorder":"#316dca","foreground":"#adbac7","descriptionForeground":"#768390","errorForeground":"#e5534b","textLink.foreground":"#539bf5","textLink.activeForeground":"#539bf5","textBlockQuote.background":"#1c2128","textBlockQuote.border":"#444c56","textCodeBlock.background":"#636e7b66","textPreformat.foreground":"#768390","textSeparator.foreground":"#373e47","icon.foreground":"#768390","keybindingLabel.foreground":"#adbac7","button.background":"#347d39","button.foreground":"#ffffff","button.hoverBackground":"#46954a","button.secondaryBackground":"#3d444d","button.secondaryForeground":"#adbac7","button.secondaryHoverBackground":"#444c56","checkbox.background":"#2d333b","checkbox.border":"#444c56","dropdown.background":"#2d333b","dropdown.border":"#444c56","dropdown.foreground":"#adbac7","dropdown.listBackground":"#2d333b","input.background":"#22272e","input.border":"#444c56","input.foreground":"#adbac7","input.placeholderForeground":"#636e7b","badge.foreground":"#cdd9e5","badge.background":"#316dca","progressBar.background":"#316dca","titleBar.activeForeground":"#768390","titleBar.activeBackground":"#22272e","titleBar.inactiveForeground":"#768390","titleBar.inactiveBackground":"#1c2128","titleBar.border":"#444c56","activityBar.foreground":"#adbac7","activityBar.inactiveForeground":"#768390","activityBar.background":"#22272e","activityBarBadge.foreground":"#cdd9e5","activityBarBadge.background":"#316dca","activityBar.activeBorder":"#ec775c","activityBar.border":"#444c56","sideBar.foreground":"#adbac7","sideBar.background":"#1c2128","sideBar.border":"#444c56","sideBarTitle.foreground":"#adbac7","sideBarSectionHeader.foreground":"#adbac7","sideBarSectionHeader.background":"#1c2128","sideBarSectionHeader.border":"#444c56","list.hoverForeground":"#adbac7","list.inactiveSelectionForeground":"#adbac7","list.activeSelectionForeground":"#adbac7","list.hoverBackground":"#636e7b1a","list.inactiveSelectionBackground":"#636e7b66","list.activeSelectionBackground":"#636e7b66","list.focusForeground":"#adbac7","list.focusBackground":"#4184e426","list.inactiveFocusBackground":"#4184e426","list.highlightForeground":"#539bf5","tree.indentGuidesStroke":"#373e47","notificationCenterHeader.foreground":"#768390","notificationCenterHeader.background":"#2d333b","notifications.foreground":"#adbac7","notifications.background":"#2d333b","notifications.border":"#444c56","notificationsErrorIcon.foreground":"#e5534b","notificationsWarningIcon.foreground":"#c69026","notificationsInfoIcon.foreground":"#539bf5","pickerGroup.border":"#444c56","pickerGroup.foreground":"#768390","quickInput.background":"#2d333b","quickInput.foreground":"#adbac7","statusBar.foreground":"#768390","statusBar.background":"#22272e","statusBar.border":"#444c56","statusBar.focusBorder":"#316dca80","statusBar.noFolderBackground":"#22272e","statusBar.debuggingForeground":"#cdd9e5","statusBar.debuggingBackground":"#c93c37","statusBarItem.prominentBackground":"#636e7b66","statusBarItem.remoteForeground":"#adbac7","statusBarItem.remoteBackground":"#444c56","statusBarItem.hoverBackground":"#adbac714","statusBarItem.activeBackground":"#adbac71f","statusBarItem.focusBorder":"#316dca","editorGroupHeader.tabsBackground":"#1c2128","editorGroupHeader.tabsBorder":"#444c56","editorGroup.border":"#444c56","tab.activeForeground":"#adbac7","tab.inactiveForeground":"#768390","tab.inactiveBackground":"#1c2128","tab.activeBackground":"#22272e","tab.hoverBackground":"#22272e","tab.unfocusedHoverBackground":"#636e7b1a","tab.border":"#444c56","tab.unfocusedActiveBorderTop":"#444c56","tab.activeBorder":"#22272e","tab.unfocusedActiveBorder":"#22272e","tab.activeBorderTop":"#ec775c","breadcrumb.foreground":"#768390","breadcrumb.focusForeground":"#adbac7","breadcrumb.activeSelectionForeground":"#768390","breadcrumbPicker.background":"#2d333b","editor.foreground":"#adbac7","editor.background":"#22272e","editorWidget.background":"#2d333b","editor.foldBackground":"#636e7b1a","editor.lineHighlightBackground":"#636e7b1a","editorLineNumber.foreground":"#636e7b","editorLineNumber.activeForeground":"#adbac7","editorIndentGuide.background":"#adbac71f","editorIndentGuide.activeBackground":"#adbac73d","editorWhitespace.foreground":"#545d68","editorCursor.foreground":"#539bf5","editor.findMatchBackground":"#966600","editor.findMatchHighlightBackground":"#eac55f80","editor.linkedEditingBackground":"#539bf512","editor.selectionHighlightBackground":"#57ab5a40","editor.wordHighlightBackground":"#636e7b80","editor.wordHighlightBorder":"#636e7b99","editor.wordHighlightStrongBackground":"#636e7b4d","editor.wordHighlightStrongBorder":"#636e7b99","editorBracketMatch.background":"#57ab5a40","editorBracketMatch.border":"#57ab5a99","editorInlayHint.background":"#76839033","editorInlayHint.foreground":"#768390","editorInlayHint.typeBackground":"#76839033","editorInlayHint.typeForeground":"#768390","editorInlayHint.paramBackground":"#76839033","editorInlayHint.paramForeground":"#768390","editorGutter.modifiedBackground":"#ae7c1466","editorGutter.addedBackground":"#46954a66","editorGutter.deletedBackground":"#e5534b66","diffEditor.insertedLineBackground":"#347d3926","diffEditor.insertedTextBackground":"#57ab5a4d","diffEditor.removedLineBackground":"#c93c3726","diffEditor.removedTextBackground":"#f470674d","scrollbar.shadow":"#545d6833","scrollbarSlider.background":"#76839033","scrollbarSlider.hoverBackground":"#7683903d","scrollbarSlider.activeBackground":"#76839047","editorOverviewRuler.border":"#1c2128","minimapSlider.background":"#76839033","minimapSlider.hoverBackground":"#7683903d","minimapSlider.activeBackground":"#76839047","panel.background":"#1c2128","panel.border":"#444c56","panelTitle.activeBorder":"#ec775c","panelTitle.activeForeground":"#adbac7","panelTitle.inactiveForeground":"#768390","panelInput.border":"#444c56","debugIcon.breakpointForeground":"#e5534b","debugConsole.infoForeground":"#768390","debugConsole.warningForeground":"#c69026","debugConsole.errorForeground":"#ff938a","debugConsole.sourceForeground":"#daaa3f","debugConsoleInputIcon.foreground":"#b083f0","debugTokenExpression.name":"#6cb6ff","debugTokenExpression.value":"#96d0ff","debugTokenExpression.string":"#96d0ff","debugTokenExpression.boolean":"#6bc46d","debugTokenExpression.number":"#6bc46d","debugTokenExpression.error":"#ff938a","symbolIcon.arrayForeground":"#e0823d","symbolIcon.booleanForeground":"#539bf5","symbolIcon.classForeground":"#e0823d","symbolIcon.colorForeground":"#6cb6ff","symbolIcon.constructorForeground":"#dcbdfb","symbolIcon.enumeratorForeground":"#e0823d","symbolIcon.enumeratorMemberForeground":"#539bf5","symbolIcon.eventForeground":"#636e7b","symbolIcon.fieldForeground":"#e0823d","symbolIcon.fileForeground":"#c69026","symbolIcon.folderForeground":"#c69026","symbolIcon.functionForeground":"#b083f0","symbolIcon.interfaceForeground":"#e0823d","symbolIcon.keyForeground":"#539bf5","symbolIcon.keywordForeground":"#f47067","symbolIcon.methodForeground":"#b083f0","symbolIcon.moduleForeground":"#f47067","symbolIcon.namespaceForeground":"#f47067","symbolIcon.nullForeground":"#539bf5","symbolIcon.numberForeground":"#57ab5a","symbolIcon.objectForeground":"#e0823d","symbolIcon.operatorForeground":"#6cb6ff","symbolIcon.packageForeground":"#e0823d","symbolIcon.propertyForeground":"#e0823d","symbolIcon.referenceForeground":"#539bf5","symbolIcon.snippetForeground":"#539bf5","symbolIcon.stringForeground":"#6cb6ff","symbolIcon.structForeground":"#e0823d","symbolIcon.textForeground":"#6cb6ff","symbolIcon.typeParameterForeground":"#6cb6ff","symbolIcon.unitForeground":"#539bf5","symbolIcon.variableForeground":"#e0823d","symbolIcon.constantForeground":["#b4f1b4","#8ddb8c","#6bc46d","#57ab5a","#46954a","#347d39","#2b6a30","#245829","#1b4721","#113417"],"terminal.foreground":"#adbac7","terminal.ansiBlack":"#545d68","terminal.ansiRed":"#f47067","terminal.ansiGreen":"#57ab5a","terminal.ansiYellow":"#c69026","terminal.ansiBlue":"#539bf5","terminal.ansiMagenta":"#b083f0","terminal.ansiCyan":"#39c5cf","terminal.ansiWhite":"#909dab","terminal.ansiBrightBlack":"#636e7b","terminal.ansiBrightRed":"#ff938a","terminal.ansiBrightGreen":"#6bc46d","terminal.ansiBrightYellow":"#daaa3f","terminal.ansiBrightBlue":"#6cb6ff","terminal.ansiBrightMagenta":"#dcbdfb","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiBrightWhite":"#cdd9e5","editorBracketHighlight.foreground1":"#6cb6ff","editorBracketHighlight.foreground2":"#6bc46d","editorBracketHighlight.foreground3":"#daaa3f","editorBracketHighlight.foreground4":"#ff938a","editorBracketHighlight.foreground5":"#fc8dc7","editorBracketHighlight.foreground6":"#dcbdfb","editorBracketHighlight.unexpectedBracket.foreground":"#768390","gitDecoration.addedResourceForeground":"#57ab5a","gitDecoration.modifiedResourceForeground":"#c69026","gitDecoration.deletedResourceForeground":"#e5534b","gitDecoration.untrackedResourceForeground":"#57ab5a","gitDecoration.ignoredResourceForeground":"#636e7b","gitDecoration.conflictingResourceForeground":"#cc6b2c","gitDecoration.submoduleResourceForeground":"#768390","debugToolBar.background":"#2d333b","editor.stackFrameHighlightBackground":"#ae7c1466","editor.focusedStackFrameHighlightBackground":"#46954a66","peekViewEditor.matchHighlightBackground":"#ae7c1466","peekViewResult.matchHighlightBackground":"#ae7c1466","peekViewEditor.background":"#636e7b1a","peekViewResult.background":"#22272e","settings.headerForeground":"#adbac7","settings.modifiedItemIndicator":"#ae7c1466","welcomePage.buttonBackground":"#373e47","welcomePage.buttonHoverBackground":"#444c56"},"semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#768390"}},{"scope":["constant.other.placeholder","constant.character"],"settings":{"foreground":"#f47067"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language","entity"],"settings":{"foreground":"#6cb6ff"}},{"scope":["entity.name","meta.export.default","meta.definition.variable"],"settings":{"foreground":"#f69d50"}},{"scope":["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.object.member","meta.embedded.expression"],"settings":{"foreground":"#adbac7"}},{"scope":"entity.name.function","settings":{"foreground":"#dcbdfb"}},{"scope":["entity.name.tag","support.class.component"],"settings":{"foreground":"#8ddb8c"}},{"scope":"keyword","settings":{"foreground":"#f47067"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#f47067"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#adbac7"}},{"scope":["string","string punctuation.section.embedded source"],"settings":{"foreground":"#96d0ff"}},{"scope":"support","settings":{"foreground":"#6cb6ff"}},{"scope":"meta.property-name","settings":{"foreground":"#6cb6ff"}},{"scope":"variable","settings":{"foreground":"#f69d50"}},{"scope":"variable.other","settings":{"foreground":"#adbac7"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"carriage-return","settings":{"fontStyle":"italic underline","background":"#f47067","foreground":"#cdd9e5","content":"^M"}},{"scope":"message.error","settings":{"foreground":"#ff938a"}},{"scope":"string variable","settings":{"foreground":"#6cb6ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#96d0ff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#96d0ff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#8ddb8c"}},{"scope":"support.constant","settings":{"foreground":"#6cb6ff"}},{"scope":"support.variable","settings":{"foreground":"#6cb6ff"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#8ddb8c"}},{"scope":"meta.module-reference","settings":{"foreground":"#6cb6ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#f69d50"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#6cb6ff"}},{"scope":"markup.quote","settings":{"foreground":"#8ddb8c"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#adbac7"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#adbac7"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#6cb6ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#5d0f12","foreground":"#ff938a"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#f47067"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#113417","foreground":"#8ddb8c"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#682d0f","foreground":"#f69d50"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"foreground":"#2d333b","background":"#6cb6ff"}},{"scope":"meta.diff.range","settings":{"foreground":"#dcbdfb","fontStyle":"bold"}},{"scope":"meta.diff.header","settings":{"foreground":"#6cb6ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#6cb6ff"}},{"scope":"meta.output","settings":{"foreground":"#6cb6ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#768390"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#ff938a"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#96d0ff"}}]}'),mc=JSON.parse('{"name":"GitHub Light Default","colors":{"focusBorder":"#0969da","foreground":"#1f2328","descriptionForeground":"#656d76","errorForeground":"#cf222e","textLink.foreground":"#0969da","textLink.activeForeground":"#0969da","textBlockQuote.background":"#f6f8fa","textBlockQuote.border":"#d0d7de","textCodeBlock.background":"#afb8c133","textPreformat.foreground":"#656d76","textSeparator.foreground":"#d8dee4","icon.foreground":"#656d76","keybindingLabel.foreground":"#1f2328","button.background":"#1f883d","button.foreground":"#ffffff","button.hoverBackground":"#1a7f37","button.secondaryBackground":"#ebecf0","button.secondaryForeground":"#24292f","button.secondaryHoverBackground":"#f3f4f6","checkbox.background":"#f6f8fa","checkbox.border":"#d0d7de","dropdown.background":"#ffffff","dropdown.border":"#d0d7de","dropdown.foreground":"#1f2328","dropdown.listBackground":"#ffffff","input.background":"#ffffff","input.border":"#d0d7de","input.foreground":"#1f2328","input.placeholderForeground":"#6e7781","badge.foreground":"#ffffff","badge.background":"#0969da","progressBar.background":"#0969da","titleBar.activeForeground":"#656d76","titleBar.activeBackground":"#ffffff","titleBar.inactiveForeground":"#656d76","titleBar.inactiveBackground":"#f6f8fa","titleBar.border":"#d0d7de","activityBar.foreground":"#1f2328","activityBar.inactiveForeground":"#656d76","activityBar.background":"#ffffff","activityBarBadge.foreground":"#ffffff","activityBarBadge.background":"#0969da","activityBar.activeBorder":"#fd8c73","activityBar.border":"#d0d7de","sideBar.foreground":"#1f2328","sideBar.background":"#f6f8fa","sideBar.border":"#d0d7de","sideBarTitle.foreground":"#1f2328","sideBarSectionHeader.foreground":"#1f2328","sideBarSectionHeader.background":"#f6f8fa","sideBarSectionHeader.border":"#d0d7de","list.hoverForeground":"#1f2328","list.inactiveSelectionForeground":"#1f2328","list.activeSelectionForeground":"#1f2328","list.hoverBackground":"#eaeef280","list.inactiveSelectionBackground":"#afb8c133","list.activeSelectionBackground":"#afb8c133","list.focusForeground":"#1f2328","list.focusBackground":"#ddf4ff","list.inactiveFocusBackground":"#ddf4ff","list.highlightForeground":"#0969da","tree.indentGuidesStroke":"#d8dee4","notificationCenterHeader.foreground":"#656d76","notificationCenterHeader.background":"#f6f8fa","notifications.foreground":"#1f2328","notifications.background":"#ffffff","notifications.border":"#d0d7de","notificationsErrorIcon.foreground":"#cf222e","notificationsWarningIcon.foreground":"#9a6700","notificationsInfoIcon.foreground":"#0969da","pickerGroup.border":"#d0d7de","pickerGroup.foreground":"#656d76","quickInput.background":"#ffffff","quickInput.foreground":"#1f2328","statusBar.foreground":"#656d76","statusBar.background":"#ffffff","statusBar.border":"#d0d7de","statusBar.focusBorder":"#0969da80","statusBar.noFolderBackground":"#ffffff","statusBar.debuggingForeground":"#ffffff","statusBar.debuggingBackground":"#cf222e","statusBarItem.prominentBackground":"#afb8c133","statusBarItem.remoteForeground":"#1f2328","statusBarItem.remoteBackground":"#eaeef2","statusBarItem.hoverBackground":"#1f232814","statusBarItem.activeBackground":"#1f23281f","statusBarItem.focusBorder":"#0969da","editorGroupHeader.tabsBackground":"#f6f8fa","editorGroupHeader.tabsBorder":"#d0d7de","editorGroup.border":"#d0d7de","tab.activeForeground":"#1f2328","tab.inactiveForeground":"#656d76","tab.inactiveBackground":"#f6f8fa","tab.activeBackground":"#ffffff","tab.hoverBackground":"#ffffff","tab.unfocusedHoverBackground":"#eaeef280","tab.border":"#d0d7de","tab.unfocusedActiveBorderTop":"#d0d7de","tab.activeBorder":"#ffffff","tab.unfocusedActiveBorder":"#ffffff","tab.activeBorderTop":"#fd8c73","breadcrumb.foreground":"#656d76","breadcrumb.focusForeground":"#1f2328","breadcrumb.activeSelectionForeground":"#656d76","breadcrumbPicker.background":"#ffffff","editor.foreground":"#1f2328","editor.background":"#ffffff","editorWidget.background":"#ffffff","editor.foldBackground":"#6e77811a","editor.lineHighlightBackground":"#eaeef280","editorLineNumber.foreground":"#8c959f","editorLineNumber.activeForeground":"#1f2328","editorIndentGuide.background":"#1f23281f","editorIndentGuide.activeBackground":"#1f23283d","editorWhitespace.foreground":"#afb8c1","editorCursor.foreground":"#0969da","editor.findMatchBackground":"#bf8700","editor.findMatchHighlightBackground":"#fae17d80","editor.linkedEditingBackground":"#0969da12","editor.selectionHighlightBackground":"#4ac26b40","editor.wordHighlightBackground":"#eaeef280","editor.wordHighlightBorder":"#afb8c199","editor.wordHighlightStrongBackground":"#afb8c14d","editor.wordHighlightStrongBorder":"#afb8c199","editorBracketMatch.background":"#4ac26b40","editorBracketMatch.border":"#4ac26b99","editorInlayHint.background":"#afb8c133","editorInlayHint.foreground":"#656d76","editorInlayHint.typeBackground":"#afb8c133","editorInlayHint.typeForeground":"#656d76","editorInlayHint.paramBackground":"#afb8c133","editorInlayHint.paramForeground":"#656d76","editorGutter.modifiedBackground":"#d4a72c66","editorGutter.addedBackground":"#4ac26b66","editorGutter.deletedBackground":"#ff818266","diffEditor.insertedLineBackground":"#aceebb4d","diffEditor.insertedTextBackground":"#6fdd8b80","diffEditor.removedLineBackground":"#ffcecb4d","diffEditor.removedTextBackground":"#ff818266","scrollbar.shadow":"#6e778133","scrollbarSlider.background":"#8c959f33","scrollbarSlider.hoverBackground":"#8c959f3d","scrollbarSlider.activeBackground":"#8c959f47","editorOverviewRuler.border":"#ffffff","minimapSlider.background":"#8c959f33","minimapSlider.hoverBackground":"#8c959f3d","minimapSlider.activeBackground":"#8c959f47","panel.background":"#f6f8fa","panel.border":"#d0d7de","panelTitle.activeBorder":"#fd8c73","panelTitle.activeForeground":"#1f2328","panelTitle.inactiveForeground":"#656d76","panelInput.border":"#d0d7de","debugIcon.breakpointForeground":"#cf222e","debugConsole.infoForeground":"#57606a","debugConsole.warningForeground":"#7d4e00","debugConsole.errorForeground":"#cf222e","debugConsole.sourceForeground":"#9a6700","debugConsoleInputIcon.foreground":"#6639ba","debugTokenExpression.name":"#0550ae","debugTokenExpression.value":"#0a3069","debugTokenExpression.string":"#0a3069","debugTokenExpression.boolean":"#116329","debugTokenExpression.number":"#116329","debugTokenExpression.error":"#a40e26","symbolIcon.arrayForeground":"#953800","symbolIcon.booleanForeground":"#0550ae","symbolIcon.classForeground":"#953800","symbolIcon.colorForeground":"#0a3069","symbolIcon.constructorForeground":"#3e1f79","symbolIcon.enumeratorForeground":"#953800","symbolIcon.enumeratorMemberForeground":"#0550ae","symbolIcon.eventForeground":"#57606a","symbolIcon.fieldForeground":"#953800","symbolIcon.fileForeground":"#7d4e00","symbolIcon.folderForeground":"#7d4e00","symbolIcon.functionForeground":"#6639ba","symbolIcon.interfaceForeground":"#953800","symbolIcon.keyForeground":"#0550ae","symbolIcon.keywordForeground":"#a40e26","symbolIcon.methodForeground":"#6639ba","symbolIcon.moduleForeground":"#a40e26","symbolIcon.namespaceForeground":"#a40e26","symbolIcon.nullForeground":"#0550ae","symbolIcon.numberForeground":"#116329","symbolIcon.objectForeground":"#953800","symbolIcon.operatorForeground":"#0a3069","symbolIcon.packageForeground":"#953800","symbolIcon.propertyForeground":"#953800","symbolIcon.referenceForeground":"#0550ae","symbolIcon.snippetForeground":"#0550ae","symbolIcon.stringForeground":"#0a3069","symbolIcon.structForeground":"#953800","symbolIcon.textForeground":"#0a3069","symbolIcon.typeParameterForeground":"#0a3069","symbolIcon.unitForeground":"#0550ae","symbolIcon.variableForeground":"#953800","symbolIcon.constantForeground":"#116329","terminal.foreground":"#1f2328","terminal.ansiBlack":"#24292f","terminal.ansiRed":"#cf222e","terminal.ansiGreen":"#116329","terminal.ansiYellow":"#4d2d00","terminal.ansiBlue":"#0969da","terminal.ansiMagenta":"#8250df","terminal.ansiCyan":"#1b7c83","terminal.ansiWhite":"#6e7781","terminal.ansiBrightBlack":"#57606a","terminal.ansiBrightRed":"#a40e26","terminal.ansiBrightGreen":"#1a7f37","terminal.ansiBrightYellow":"#633c01","terminal.ansiBrightBlue":"#218bff","terminal.ansiBrightMagenta":"#a475f9","terminal.ansiBrightCyan":"#3192aa","terminal.ansiBrightWhite":"#8c959f","editorBracketHighlight.foreground1":"#0969da","editorBracketHighlight.foreground2":"#1a7f37","editorBracketHighlight.foreground3":"#9a6700","editorBracketHighlight.foreground4":"#cf222e","editorBracketHighlight.foreground5":"#bf3989","editorBracketHighlight.foreground6":"#8250df","editorBracketHighlight.unexpectedBracket.foreground":"#656d76","gitDecoration.addedResourceForeground":"#1a7f37","gitDecoration.modifiedResourceForeground":"#9a6700","gitDecoration.deletedResourceForeground":"#cf222e","gitDecoration.untrackedResourceForeground":"#1a7f37","gitDecoration.ignoredResourceForeground":"#6e7781","gitDecoration.conflictingResourceForeground":"#bc4c00","gitDecoration.submoduleResourceForeground":"#656d76","debugToolBar.background":"#ffffff","editor.stackFrameHighlightBackground":"#d4a72c66","editor.focusedStackFrameHighlightBackground":"#4ac26b66","settings.headerForeground":"#1f2328","settings.modifiedItemIndicator":"#d4a72c66","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#f3f4f6"},"semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6e7781"}},{"scope":["constant.other.placeholder","constant.character"],"settings":{"foreground":"#cf222e"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language","entity"],"settings":{"foreground":"#0550ae"}},{"scope":["entity.name","meta.export.default","meta.definition.variable"],"settings":{"foreground":"#953800"}},{"scope":["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.object.member","meta.embedded.expression"],"settings":{"foreground":"#1f2328"}},{"scope":"entity.name.function","settings":{"foreground":"#8250df"}},{"scope":["entity.name.tag","support.class.component"],"settings":{"foreground":"#116329"}},{"scope":"keyword","settings":{"foreground":"#cf222e"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#cf222e"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#1f2328"}},{"scope":["string","string punctuation.section.embedded source"],"settings":{"foreground":"#0a3069"}},{"scope":"support","settings":{"foreground":"#0550ae"}},{"scope":"meta.property-name","settings":{"foreground":"#0550ae"}},{"scope":"variable","settings":{"foreground":"#953800"}},{"scope":"variable.other","settings":{"foreground":"#1f2328"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"carriage-return","settings":{"fontStyle":"italic underline","background":"#cf222e","foreground":"#f6f8fa","content":"^M"}},{"scope":"message.error","settings":{"foreground":"#82071e"}},{"scope":"string variable","settings":{"foreground":"#0550ae"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#0a3069"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#0a3069"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#116329"}},{"scope":"support.constant","settings":{"foreground":"#0550ae"}},{"scope":"support.variable","settings":{"foreground":"#0550ae"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#116329"}},{"scope":"meta.module-reference","settings":{"foreground":"#0550ae"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#953800"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#0550ae"}},{"scope":"markup.quote","settings":{"foreground":"#116329"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#1f2328"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#1f2328"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#0550ae"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffebe9","foreground":"#82071e"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#cf222e"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#dafbe1","foreground":"#116329"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffd8b5","foreground":"#953800"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"foreground":"#eaeef2","background":"#0550ae"}},{"scope":"meta.diff.range","settings":{"foreground":"#8250df","fontStyle":"bold"}},{"scope":"meta.diff.header","settings":{"foreground":"#0550ae"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#0550ae"}},{"scope":"meta.output","settings":{"foreground":"#0550ae"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#57606a"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#82071e"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#0a3069"}}]}'),hc=JSON.parse('{"name":"Material-Theme-Default","semanticHighlighting":true,"tokenColors":[{"name":"Global settings","settings":{"background":"#263238","foreground":"#EEFFFF"}},{"name":"String","scope":"string","settings":{"foreground":"#C3E88D"}},{"name":"Punctuation","scope":"punctuation, constant.other.symbol","settings":{"foreground":"#89DDFF"}},{"name":"String Escape","scope":"constant.character.escape, text.html constant.character.entity.named","settings":{"foreground":"#EEFFFF"}},{"name":"Boolean","scope":"constant.language.boolean","settings":{"foreground":"#ff9cac"}},{"name":"Number","scope":"constant.numeric","settings":{"foreground":"#F78C6C"}},{"name":"Variable","scope":"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments","settings":{"foreground":"#EEFFFF"}},{"name":"Other Keyword","scope":"keyword.other","settings":{"foreground":"#F78C6C"}},{"name":"Keyword","scope":"keyword, modifier, variable.language.this, support.type.object, constant.language","settings":{"foreground":"#89DDFF"}},{"name":"Function call","scope":"entity.name.function, support.function","settings":{"foreground":"#82AAFF"}},{"name":"Storage","scope":"storage.type, storage.modifier, storage.control","settings":{"foreground":"#C792EA"}},{"name":"Modules","scope":"support.module, support.node","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Type","scope":"support.type, constant.other.key","settings":{"foreground":"#FFCB6B"}},{"name":"Type","scope":"entity.name.type, entity.other.inherited-class, entity.other","settings":{"foreground":"#FFCB6B"}},{"name":"Comment","scope":"comment","settings":{"foreground":"#546E7A","fontStyle":"italic"}},{"name":"Comment","scope":"comment punctuation.definition.comment, string.quoted.docstring","settings":{"foreground":"#546E7A","fontStyle":"italic"}},{"name":"Punctuation","scope":"punctuation","settings":{"foreground":"#89DDFF"}},{"name":"Class","scope":"entity.name, entity.name.type.class, support.type, support.class, meta.use","settings":{"foreground":"#FFCB6B"}},{"name":"Class variable","scope":"variable.object.property, meta.field.declaration entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Class method","scope":"meta.definition.method entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Function definition","scope":"meta.function entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Template expression","scope":"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end","settings":{"foreground":"#89DDFF"}},{"name":"Reset embedded/template expression colors","scope":"meta.embedded, source.groovy.embedded, meta.template.expression","settings":{"foreground":"#EEFFFF"}},{"name":"YAML key","scope":"entity.name.tag.yaml","settings":{"foreground":"#f07178"}},{"name":"JSON key","scope":"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json","settings":{"foreground":"#f07178"}},{"name":"JSON constant","scope":"constant.language.json","settings":{"foreground":"#89DDFF"}},{"name":"CSS class","scope":"entity.other.attribute-name.class","settings":{"foreground":"#FFCB6B"}},{"name":"CSS ID","scope":"entity.other.attribute-name.id","settings":{"foreground":"#F78C6C"}},{"name":"CSS tag","scope":"source.css entity.name.tag","settings":{"foreground":"#FFCB6B"}},{"name":"CSS properties","scope":"support.type.property-name.css","settings":{"foreground":"#B2CCD6"}},{"name":"HTML tag outer","scope":"meta.tag, punctuation.definition.tag","settings":{"foreground":"#89DDFF"}},{"name":"HTML tag inner","scope":"entity.name.tag","settings":{"foreground":"#f07178"}},{"name":"HTML tag attribute","scope":"entity.other.attribute-name","settings":{"foreground":"#C792EA"}},{"name":"HTML entities","scope":"punctuation.definition.entity.html","settings":{"foreground":"#EEFFFF"}},{"name":"Markdown heading","scope":"markup.heading","settings":{"foreground":"#89DDFF"}},{"name":"Markdown link text","scope":"text.html.markdown meta.link.inline, meta.link.reference","settings":{"foreground":"#f07178"}},{"name":"Markdown list item","scope":"text.html.markdown beginning.punctuation.definition.list","settings":{"foreground":"#89DDFF"}},{"name":"Markdown italic","scope":"markup.italic","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Markdown bold","scope":"markup.bold","settings":{"foreground":"#f07178","fontStyle":"bold"}},{"name":"Markdown bold italic","scope":"markup.bold markup.italic, markup.italic markup.bold","settings":{"foreground":"#f07178","fontStyle":"italic bold"}},{"name":"Markdown code block","scope":"markup.fenced_code.block.markdown punctuation.definition.markdown","settings":{"foreground":"#C3E88D"}},{"name":"Markdown inline code","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#C3E88D"}},{"name":"INI property name","scope":"keyword.other.definition.ini","settings":{"foreground":"#f07178"}},{"name":"INI section title","scope":"entity.name.section.group-title.ini","settings":{"foreground":"#89DDFF"}},{"name":"C# class","scope":"source.cs meta.class.identifier storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# class method","scope":"source.cs meta.method.identifier entity.name.function","settings":{"foreground":"#f07178"}},{"name":"C# function call","scope":"source.cs meta.method-call meta.method, source.cs entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"C# type","scope":"source.cs storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# return type","scope":"source.cs meta.method.return-type","settings":{"foreground":"#FFCB6B"}},{"name":"C# preprocessor","scope":"source.cs meta.preprocessor","settings":{"foreground":"#546E7A"}},{"name":"C# namespace","scope":"source.cs entity.name.type.namespace","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Text","scope":"meta.jsx.children, SXNested","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Components name","scope":"support.class.component","settings":{"foreground":"#FFCB6B"}},{"name":"C-related Block Level Variables","scope":"source.cpp meta.block variable.other","settings":{"foreground":"#EEFFFF"}},{"name":"Member Access Meta","scope":"source.python meta.member.access.python","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"source.python meta.function-call.python, meta.function-call.arguments","settings":{"foreground":"#82AAFF"}},{"name":"Blocks","scope":"meta.block","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"entity.name.function.call","settings":{"foreground":"#82AAFF"}},{"name":"Namespaces","scope":"source.php support.other.namespace, source.php meta.use support.class","settings":{"foreground":"#EEFFFF"}},{"name":"Constant keywords","scope":"constant.keyword","settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Entity name","scope":"entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Global settings","settings":{"background":"#263238","foreground":"#EEFFFF"}},{"name":"Markup Deleted","scope":["markup.deleted"],"settings":{"foreground":"#f07178"}},{"name":"Markup Inserted","scope":["markup.inserted"],"settings":{"foreground":"#C3E88D"}},{"name":"Markup Underline","scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"name":"Keyword Control","scope":["keyword.control"],"settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Parameter","scope":["variable.parameter"],"settings":{"fontStyle":"italic"}},{"name":"Python - Self Parameter","scope":["variable.parameter.function.language.special.self.python"],"settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Python - Format Placeholder","scope":["constant.character.format.placeholder.other.python"],"settings":{"foreground":"#F78C6C"}},{"name":"Markdown - Blockquote","scope":["markup.quote"],"settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"name":"Markdown - Fenced Language","scope":["markup.fenced_code.block"],"settings":{"foreground":"#EEFFFF90"}},{"name":"Markdown - Blockquote Punctuation","scope":["punctuation.definition.quote"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 0","scope":["meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 1","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFCB6B"}},{"name":"JSON Key - Level 2","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#F78C6C"}},{"name":"JSON Key - Level 3","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#f07178"}},{"name":"JSON Key - Level 4","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#916b53"}},{"name":"JSON Key - Level 5","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#82AAFF"}},{"name":"JSON Key - Level 6","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 7","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 8","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C3E88D"}}],"colors":{"focusBorder":"#FFFFFF00","foreground":"#EEFFFF","button.background":"#80CBC420","button.foreground":"#ffffff","dropdown.background":"#263238","input.background":"#303C41","inputOption.activeBorder":"#EEFFFF30","list.activeSelectionBackground":"#263238","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#f0717880","list.focusBackground":"#EEFFFF20","list.focusForeground":"#EEFFFF","list.highlightForeground":"#80CBC4","list.hoverBackground":"#263238","list.inactiveSelectionBackground":"#00000030","activityBar.background":"#263238","activityBar.dropBackground":"#f0717880","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#00000030","badge.foreground":"#546E7A","sideBar.background":"#263238","sideBarSectionHeader.background":"#263238","editorGroup.dropBackground":"#f0717880","editorGroup.focusedEmptyBorder":"#f07178","editorGroupHeader.tabsBackground":"#263238","tab.border":"#263238","tab.activeBorder":"#80CBC4","tab.inactiveBackground":"#263238","tab.activeModifiedBorder":"#607a86","tab.inactiveModifiedBorder":"#904348","tab.unfocusedActiveModifiedBorder":"#c05a60","tab.unfocusedInactiveModifiedBorder":"#904348","editor.background":"#263238","editor.foreground":"#EEFFFF","editorLineNumber.foreground":"#37474F","editorLineNumber.activeForeground":"#607a86","editorCursor.foreground":"#FFCC00","editor.selectionBackground":"#80CBC420","editor.selectionHighlightBackground":"#FFCC0020","editor.wordHighlightBackground":"#ff9cac30","editor.wordHighlightStrongBackground":"#C3E88D30","editor.findMatchHighlight":"#EEFFFF","editor.findRangeHighlightBackground":"#FFCB6B30","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#FFFFFF0d","editorWhitespace.foreground":"#EEFFFF40","editorWidget.background":"#263238","editorHoverWidget.background":"#263238","editorMarkerNavigation.background":"#EEFFFF05","peekView.border":"#00000030","peekViewEditor.background":"#EEFFFF05","peekViewResult.background":"#EEFFFF05","peekViewTitle.background":"#EEFFFF05","panel.background":"#263238","panel.border":"#26323860","panelTitle.activeBorder":"#80CBC4","panelTitle.inactiveForeground":"#EEFFFF","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","statusBar.background":"#263238","statusBar.debuggingBackground":"#C792EA","statusBar.debuggingForeground":"#ffffff","statusBar.noFolderBackground":"#263238","statusBarItem.activeBackground":"#f0717880","statusBarItem.hoverBackground":"#546E7A20","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","titleBar.activeBackground":"#263238","pickerGroup.border":"#FFFFFF1a","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#82AAFF","terminal.ansiBrightBlack":"#546E7A","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#89DDFF","terminal.ansiBrightGreen":"#C3E88D","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#f07178","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#FFCB6B","terminal.ansiCyan":"#89DDFF","terminal.ansiGreen":"#C3E88D","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#f07178","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#FFCB6B","debugToolBar.background":"#263238","debugConsole.errorForeground":"#f07178","debugConsole.infoForeground":"#89DDFF","debugConsole.warningForeground":"#FFCB6B","selection.background":"#00000080","editorRuler.foreground":"#37474F","widget.shadow":"#00000030","scrollbar.shadow":"#00000030","editorLink.activeForeground":"#EEFFFF","progressBar.background":"#80CBC4","pickerGroup.foreground":"#80CBC4","tree.indentGuidesStroke":"#37474F","terminalCursor.foreground":"#FFCB6B","terminalCursor.background":"#000000","inputOption.activeBackground":"#EEFFFF30","textLink.foreground":"#80CBC4","textLink.activeForeground":"#EEFFFF","sideBar.foreground":"#607a86","sideBar.border":"#26323860","sideBarTitle.foreground":"#EEFFFF","sideBarSectionHeader.border":"#26323860","panel.dropBackground":"#EEFFFF","panelTitle.activeForeground":"#FFFFFF","editor.lineHighlightBackground":"#00000050","editor.findMatchBackground":"#000000","editor.findMatchHighlightBackground":"#00000050","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlightBorder":"#ffffff30","editorIndentGuide.background":"#37474F70","editorIndentGuide.activeBackground":"#37474F","editorGroup.border":"#00000030","editorGutter.modifiedBackground":"#82AAFF60","editorGutter.addedBackground":"#C3E88D60","editorGutter.deletedBackground":"#f0717860","activityBar.border":"#26323860","activityBar.foreground":"#EEFFFF","activityBar.activeBorder":"#80CBC4","extensionBadge.remoteForeground":"#EEFFFF","scrollbarSlider.background":"#EEFFFF20","scrollbarSlider.hoverBackground":"#EEFFFF10","scrollbarSlider.activeBackground":"#80CBC4","tab.unfocusedActiveBorder":"#546E7A","tab.activeForeground":"#FFFFFF","tab.inactiveForeground":"#607a86","tab.activeBackground":"#263238","tab.unfocusedActiveForeground":"#EEFFFF","editorWidget.resizeBorder":"#80CBC4","editorWidget.border":"#80CBC4","statusBar.border":"#26323860","statusBar.foreground":"#546E7A","editorBracketMatch.border":"#FFCC0050","editorBracketMatch.background":"#263238","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.border":"#263238","editorOverviewRuler.errorForeground":"#f0717840","editorOverviewRuler.infoForeground":"#82AAFF40","editorOverviewRuler.warningForeground":"#FFCB6B40","editorInfo.foreground":"#82AAFF70","editorWarning.foreground":"#FFCB6B70","editorError.foreground":"#f0717870","editorHoverWidget.border":"#FFFFFF10","titleBar.activeForeground":"#EEFFFF","titleBar.inactiveBackground":"#263238","titleBar.inactiveForeground":"#607a86","titleBar.border":"#26323860","input.foreground":"#EEFFFF","input.placeholderForeground":"#EEFFFF60","input.border":"#FFFFFF10","inputValidation.errorBorder":"#f07178","inputValidation.infoBorder":"#82AAFF","inputValidation.warningBorder":"#FFCB6B","dropdown.border":"#FFFFFF10","quickInput.background":"#263238","quickInput.foreground":"#607a86","list.hoverForeground":"#FFFFFF","list.inactiveSelectionForeground":"#80CBC4","quickInput.list.focusBackground":"#EEFFFF20","editorSuggestWidget.background":"#263238","editorSuggestWidget.foreground":"#EEFFFF","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#00000050","editorSuggestWidget.border":"#FFFFFF10","diffEditor.insertedTextBackground":"#89DDFF20","diffEditor.removedTextBackground":"#ff9cac20","notifications.background":"#263238","notifications.foreground":"#EEFFFF","notificationLink.foreground":"#80CBC4","extensionButton.prominentBackground":"#C3E88D90","extensionButton.prominentHoverBackground":"#C3E88D","extensionButton.prominentForeground":"#000000","peekViewEditorGutter.background":"#EEFFFF05","peekViewTitleDescription.foreground":"#EEFFFF60","peekViewResult.matchHighlightBackground":"#80CBC420","peekViewEditor.matchHighlightBackground":"#80CBC420","peekViewResult.selectionBackground":"#607a8670","gitDecoration.deletedResourceForeground":"#f0717890","gitDecoration.conflictingResourceForeground":"#FFCB6B90","gitDecoration.modifiedResourceForeground":"#82AAFF90","gitDecoration.untrackedResourceForeground":"#C3E88D90","gitDecoration.ignoredResourceForeground":"#607a8690","breadcrumb.background":"#263238","breadcrumb.foreground":"#607a86","breadcrumb.focusForeground":"#EEFFFF","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumbPicker.background":"#263238","menu.background":"#263238","menu.foreground":"#EEFFFF","menu.selectionBackground":"#00000050","menu.selectionForeground":"#80CBC4","menu.selectionBorder":"#00000030","menu.separatorBackground":"#EEFFFF","menubar.selectionBackground":"#00000030","menubar.selectionForeground":"#80CBC4","menubar.selectionBorder":"#00000030","settings.dropdownForeground":"#EEFFFF","settings.dropdownBackground":"#263238","settings.numberInputForeground":"#EEFFFF","settings.numberInputBackground":"#263238","settings.textInputForeground":"#EEFFFF","settings.textInputBackground":"#263238","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.checkboxBackground":"#263238","settings.checkboxForeground":"#EEFFFF","listFilterWidget.background":"#00000030","listFilterWidget.outline":"#00000030","listFilterWidget.noMatchesOutline":"#00000030"}}'),fc=JSON.parse('{"name":"Material-Theme-Darker","semanticHighlighting":true,"tokenColors":[{"name":"Global settings","settings":{"background":"#212121","foreground":"#EEFFFF"}},{"name":"String","scope":"string","settings":{"foreground":"#C3E88D"}},{"name":"Punctuation","scope":"punctuation, constant.other.symbol","settings":{"foreground":"#89DDFF"}},{"name":"String Escape","scope":"constant.character.escape, text.html constant.character.entity.named","settings":{"foreground":"#EEFFFF"}},{"name":"Boolean","scope":"constant.language.boolean","settings":{"foreground":"#ff9cac"}},{"name":"Number","scope":"constant.numeric","settings":{"foreground":"#F78C6C"}},{"name":"Variable","scope":"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments","settings":{"foreground":"#EEFFFF"}},{"name":"Other Keyword","scope":"keyword.other","settings":{"foreground":"#F78C6C"}},{"name":"Keyword","scope":"keyword, modifier, variable.language.this, support.type.object, constant.language","settings":{"foreground":"#89DDFF"}},{"name":"Function call","scope":"entity.name.function, support.function","settings":{"foreground":"#82AAFF"}},{"name":"Storage","scope":"storage.type, storage.modifier, storage.control","settings":{"foreground":"#C792EA"}},{"name":"Modules","scope":"support.module, support.node","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Type","scope":"support.type, constant.other.key","settings":{"foreground":"#FFCB6B"}},{"name":"Type","scope":"entity.name.type, entity.other.inherited-class, entity.other","settings":{"foreground":"#FFCB6B"}},{"name":"Comment","scope":"comment","settings":{"foreground":"#545454","fontStyle":"italic"}},{"name":"Comment","scope":"comment punctuation.definition.comment, string.quoted.docstring","settings":{"foreground":"#545454","fontStyle":"italic"}},{"name":"Punctuation","scope":"punctuation","settings":{"foreground":"#89DDFF"}},{"name":"Class","scope":"entity.name, entity.name.type.class, support.type, support.class, meta.use","settings":{"foreground":"#FFCB6B"}},{"name":"Class variable","scope":"variable.object.property, meta.field.declaration entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Class method","scope":"meta.definition.method entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Function definition","scope":"meta.function entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Template expression","scope":"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end","settings":{"foreground":"#89DDFF"}},{"name":"Reset embedded/template expression colors","scope":"meta.embedded, source.groovy.embedded, meta.template.expression","settings":{"foreground":"#EEFFFF"}},{"name":"YAML key","scope":"entity.name.tag.yaml","settings":{"foreground":"#f07178"}},{"name":"JSON key","scope":"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json","settings":{"foreground":"#f07178"}},{"name":"JSON constant","scope":"constant.language.json","settings":{"foreground":"#89DDFF"}},{"name":"CSS class","scope":"entity.other.attribute-name.class","settings":{"foreground":"#FFCB6B"}},{"name":"CSS ID","scope":"entity.other.attribute-name.id","settings":{"foreground":"#F78C6C"}},{"name":"CSS tag","scope":"source.css entity.name.tag","settings":{"foreground":"#FFCB6B"}},{"name":"CSS properties","scope":"support.type.property-name.css","settings":{"foreground":"#B2CCD6"}},{"name":"HTML tag outer","scope":"meta.tag, punctuation.definition.tag","settings":{"foreground":"#89DDFF"}},{"name":"HTML tag inner","scope":"entity.name.tag","settings":{"foreground":"#f07178"}},{"name":"HTML tag attribute","scope":"entity.other.attribute-name","settings":{"foreground":"#C792EA"}},{"name":"HTML entities","scope":"punctuation.definition.entity.html","settings":{"foreground":"#EEFFFF"}},{"name":"Markdown heading","scope":"markup.heading","settings":{"foreground":"#89DDFF"}},{"name":"Markdown link text","scope":"text.html.markdown meta.link.inline, meta.link.reference","settings":{"foreground":"#f07178"}},{"name":"Markdown list item","scope":"text.html.markdown beginning.punctuation.definition.list","settings":{"foreground":"#89DDFF"}},{"name":"Markdown italic","scope":"markup.italic","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Markdown bold","scope":"markup.bold","settings":{"foreground":"#f07178","fontStyle":"bold"}},{"name":"Markdown bold italic","scope":"markup.bold markup.italic, markup.italic markup.bold","settings":{"foreground":"#f07178","fontStyle":"italic bold"}},{"name":"Markdown code block","scope":"markup.fenced_code.block.markdown punctuation.definition.markdown","settings":{"foreground":"#C3E88D"}},{"name":"Markdown inline code","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#C3E88D"}},{"name":"INI property name","scope":"keyword.other.definition.ini","settings":{"foreground":"#f07178"}},{"name":"INI section title","scope":"entity.name.section.group-title.ini","settings":{"foreground":"#89DDFF"}},{"name":"C# class","scope":"source.cs meta.class.identifier storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# class method","scope":"source.cs meta.method.identifier entity.name.function","settings":{"foreground":"#f07178"}},{"name":"C# function call","scope":"source.cs meta.method-call meta.method, source.cs entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"C# type","scope":"source.cs storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# return type","scope":"source.cs meta.method.return-type","settings":{"foreground":"#FFCB6B"}},{"name":"C# preprocessor","scope":"source.cs meta.preprocessor","settings":{"foreground":"#545454"}},{"name":"C# namespace","scope":"source.cs entity.name.type.namespace","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Text","scope":"meta.jsx.children, SXNested","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Components name","scope":"support.class.component","settings":{"foreground":"#FFCB6B"}},{"name":"C-related Block Level Variables","scope":"source.cpp meta.block variable.other","settings":{"foreground":"#EEFFFF"}},{"name":"Member Access Meta","scope":"source.python meta.member.access.python","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"source.python meta.function-call.python, meta.function-call.arguments","settings":{"foreground":"#82AAFF"}},{"name":"Blocks","scope":"meta.block","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"entity.name.function.call","settings":{"foreground":"#82AAFF"}},{"name":"Namespaces","scope":"source.php support.other.namespace, source.php meta.use support.class","settings":{"foreground":"#EEFFFF"}},{"name":"Constant keywords","scope":"constant.keyword","settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Entity name","scope":"entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Global settings","settings":{"background":"#212121","foreground":"#EEFFFF"}},{"name":"Markup Deleted","scope":["markup.deleted"],"settings":{"foreground":"#f07178"}},{"name":"Markup Inserted","scope":["markup.inserted"],"settings":{"foreground":"#C3E88D"}},{"name":"Markup Underline","scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"name":"Keyword Control","scope":["keyword.control"],"settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Parameter","scope":["variable.parameter"],"settings":{"fontStyle":"italic"}},{"name":"Python - Self Parameter","scope":["variable.parameter.function.language.special.self.python"],"settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Python - Format Placeholder","scope":["constant.character.format.placeholder.other.python"],"settings":{"foreground":"#F78C6C"}},{"name":"Markdown - Blockquote","scope":["markup.quote"],"settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"name":"Markdown - Fenced Language","scope":["markup.fenced_code.block"],"settings":{"foreground":"#EEFFFF90"}},{"name":"Markdown - Blockquote Punctuation","scope":["punctuation.definition.quote"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 0","scope":["meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 1","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFCB6B"}},{"name":"JSON Key - Level 2","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#F78C6C"}},{"name":"JSON Key - Level 3","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#f07178"}},{"name":"JSON Key - Level 4","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#916b53"}},{"name":"JSON Key - Level 5","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#82AAFF"}},{"name":"JSON Key - Level 6","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 7","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 8","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C3E88D"}}],"colors":{"focusBorder":"#FFFFFF00","foreground":"#EEFFFF","button.background":"#61616150","button.foreground":"#ffffff","dropdown.background":"#212121","input.background":"#2B2B2B","inputOption.activeBorder":"#EEFFFF30","list.activeSelectionBackground":"#212121","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#f0717880","list.focusBackground":"#EEFFFF20","list.focusForeground":"#EEFFFF","list.highlightForeground":"#80CBC4","list.hoverBackground":"#212121","list.inactiveSelectionBackground":"#00000030","activityBar.background":"#212121","activityBar.dropBackground":"#f0717880","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#00000030","badge.foreground":"#545454","sideBar.background":"#212121","sideBarSectionHeader.background":"#212121","editorGroup.dropBackground":"#f0717880","editorGroup.focusedEmptyBorder":"#f07178","editorGroupHeader.tabsBackground":"#212121","tab.border":"#212121","tab.activeBorder":"#80CBC4","tab.inactiveBackground":"#212121","tab.activeModifiedBorder":"#616161","tab.inactiveModifiedBorder":"#904348","tab.unfocusedActiveModifiedBorder":"#c05a60","tab.unfocusedInactiveModifiedBorder":"#904348","editor.background":"#212121","editor.foreground":"#EEFFFF","editorLineNumber.foreground":"#424242","editorLineNumber.activeForeground":"#616161","editorCursor.foreground":"#FFCC00","editor.selectionBackground":"#61616150","editor.selectionHighlightBackground":"#FFCC0020","editor.wordHighlightBackground":"#ff9cac30","editor.wordHighlightStrongBackground":"#C3E88D30","editor.findMatchHighlight":"#EEFFFF","editor.findRangeHighlightBackground":"#FFCB6B30","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#FFFFFF0d","editorWhitespace.foreground":"#EEFFFF40","editorWidget.background":"#212121","editorHoverWidget.background":"#212121","editorMarkerNavigation.background":"#EEFFFF05","peekView.border":"#00000030","peekViewEditor.background":"#EEFFFF05","peekViewResult.background":"#EEFFFF05","peekViewTitle.background":"#EEFFFF05","panel.background":"#212121","panel.border":"#21212160","panelTitle.activeBorder":"#80CBC4","panelTitle.inactiveForeground":"#EEFFFF","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","statusBar.background":"#212121","statusBar.debuggingBackground":"#C792EA","statusBar.debuggingForeground":"#ffffff","statusBar.noFolderBackground":"#212121","statusBarItem.activeBackground":"#f0717880","statusBarItem.hoverBackground":"#54545420","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","titleBar.activeBackground":"#212121","pickerGroup.border":"#FFFFFF1a","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#82AAFF","terminal.ansiBrightBlack":"#545454","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#89DDFF","terminal.ansiBrightGreen":"#C3E88D","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#f07178","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#FFCB6B","terminal.ansiCyan":"#89DDFF","terminal.ansiGreen":"#C3E88D","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#f07178","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#FFCB6B","debugToolBar.background":"#212121","debugConsole.errorForeground":"#f07178","debugConsole.infoForeground":"#89DDFF","debugConsole.warningForeground":"#FFCB6B","selection.background":"#00000080","editorRuler.foreground":"#424242","widget.shadow":"#00000030","scrollbar.shadow":"#00000030","editorLink.activeForeground":"#EEFFFF","progressBar.background":"#80CBC4","pickerGroup.foreground":"#80CBC4","tree.indentGuidesStroke":"#424242","terminalCursor.foreground":"#FFCB6B","terminalCursor.background":"#000000","inputOption.activeBackground":"#EEFFFF30","textLink.foreground":"#80CBC4","textLink.activeForeground":"#EEFFFF","sideBar.foreground":"#616161","sideBar.border":"#21212160","sideBarTitle.foreground":"#EEFFFF","sideBarSectionHeader.border":"#21212160","panel.dropBackground":"#EEFFFF","panelTitle.activeForeground":"#FFFFFF","editor.lineHighlightBackground":"#00000050","editor.findMatchBackground":"#000000","editor.findMatchHighlightBackground":"#00000050","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlightBorder":"#ffffff30","editorIndentGuide.background":"#42424270","editorIndentGuide.activeBackground":"#424242","editorGroup.border":"#00000030","editorGutter.modifiedBackground":"#82AAFF60","editorGutter.addedBackground":"#C3E88D60","editorGutter.deletedBackground":"#f0717860","activityBar.border":"#21212160","activityBar.foreground":"#EEFFFF","activityBar.activeBorder":"#80CBC4","extensionBadge.remoteForeground":"#EEFFFF","scrollbarSlider.background":"#EEFFFF20","scrollbarSlider.hoverBackground":"#EEFFFF10","scrollbarSlider.activeBackground":"#80CBC4","tab.unfocusedActiveBorder":"#545454","tab.activeForeground":"#FFFFFF","tab.inactiveForeground":"#616161","tab.activeBackground":"#212121","tab.unfocusedActiveForeground":"#EEFFFF","editorWidget.resizeBorder":"#80CBC4","editorWidget.border":"#80CBC4","statusBar.border":"#21212160","statusBar.foreground":"#616161","editorBracketMatch.border":"#FFCC0050","editorBracketMatch.background":"#212121","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.border":"#212121","editorOverviewRuler.errorForeground":"#f0717840","editorOverviewRuler.infoForeground":"#82AAFF40","editorOverviewRuler.warningForeground":"#FFCB6B40","editorInfo.foreground":"#82AAFF70","editorWarning.foreground":"#FFCB6B70","editorError.foreground":"#f0717870","editorHoverWidget.border":"#FFFFFF10","titleBar.activeForeground":"#EEFFFF","titleBar.inactiveBackground":"#212121","titleBar.inactiveForeground":"#616161","titleBar.border":"#21212160","input.foreground":"#EEFFFF","input.placeholderForeground":"#EEFFFF60","input.border":"#FFFFFF10","inputValidation.errorBorder":"#f07178","inputValidation.infoBorder":"#82AAFF","inputValidation.warningBorder":"#FFCB6B","dropdown.border":"#FFFFFF10","quickInput.background":"#212121","quickInput.foreground":"#616161","list.hoverForeground":"#FFFFFF","list.inactiveSelectionForeground":"#80CBC4","quickInput.list.focusBackground":"#EEFFFF20","editorSuggestWidget.background":"#212121","editorSuggestWidget.foreground":"#EEFFFF","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#00000050","editorSuggestWidget.border":"#FFFFFF10","diffEditor.insertedTextBackground":"#89DDFF20","diffEditor.removedTextBackground":"#ff9cac20","notifications.background":"#212121","notifications.foreground":"#EEFFFF","notificationLink.foreground":"#80CBC4","extensionButton.prominentBackground":"#C3E88D90","extensionButton.prominentHoverBackground":"#C3E88D","extensionButton.prominentForeground":"#000000","peekViewEditorGutter.background":"#EEFFFF05","peekViewTitleDescription.foreground":"#EEFFFF60","peekViewResult.matchHighlightBackground":"#61616150","peekViewEditor.matchHighlightBackground":"#61616150","peekViewResult.selectionBackground":"#61616170","gitDecoration.deletedResourceForeground":"#f0717890","gitDecoration.conflictingResourceForeground":"#FFCB6B90","gitDecoration.modifiedResourceForeground":"#82AAFF90","gitDecoration.untrackedResourceForeground":"#C3E88D90","gitDecoration.ignoredResourceForeground":"#61616190","breadcrumb.background":"#212121","breadcrumb.foreground":"#616161","breadcrumb.focusForeground":"#EEFFFF","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumbPicker.background":"#212121","menu.background":"#212121","menu.foreground":"#EEFFFF","menu.selectionBackground":"#00000050","menu.selectionForeground":"#80CBC4","menu.selectionBorder":"#00000030","menu.separatorBackground":"#EEFFFF","menubar.selectionBackground":"#00000030","menubar.selectionForeground":"#80CBC4","menubar.selectionBorder":"#00000030","settings.dropdownForeground":"#EEFFFF","settings.dropdownBackground":"#212121","settings.numberInputForeground":"#EEFFFF","settings.numberInputBackground":"#212121","settings.textInputForeground":"#EEFFFF","settings.textInputBackground":"#212121","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.checkboxBackground":"#212121","settings.checkboxForeground":"#EEFFFF","listFilterWidget.background":"#00000030","listFilterWidget.outline":"#00000030","listFilterWidget.noMatchesOutline":"#00000030"}}'),Ec=JSON.parse('{"name":"One Dark Pro","type":"dark","semanticHighlighting":true,"semanticTokenColors":{"enumMember":{"foreground":"#56b6c2"},"variable.constant":{"foreground":"#d19a66"},"variable.defaultLibrary":{"foreground":"#e5c07b"},"variable:dart":{"foreground":"#d19a66"},"property:dart":{"foreground":"#d19a66"},"annotation:dart":{"foreground":"#d19a66"},"parameter.label:dart":{"foreground":"#abb2bf"},"macro":{"foreground":"#d19a66"},"tomlArrayKey":{"foreground":"#e5c07b"}},"tokenColors":[{"scope":"meta.embedded","settings":{"foreground":"#abb2bf"}},{"name":"unison punctuation","scope":"punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison","settings":{"foreground":"#e06c75"}},{"name":"haskell variable generic-type","scope":"variable.other.generic-type.haskell","settings":{"foreground":"#c678dd"}},{"name":"haskell storage type","scope":"storage.type.haskell","settings":{"foreground":"#d19a66"}},{"name":"support.variable.magic.python","scope":"support.variable.magic.python","settings":{"foreground":"#e06c75"}},{"name":"punctuation.separator.parameters.python","scope":"punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python","settings":{"foreground":"#abb2bf"}},{"name":"variable.parameter.function.language.special.self.python","scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"#e5c07b"}},{"name":"variable.parameter.function.language.special.cls.python","scope":"variable.parameter.function.language.special.cls.python","settings":{"foreground":"#e5c07b"}},{"name":"storage.modifier.lifetime.rust","scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#abb2bf"}},{"name":"support.function.std.rust","scope":"support.function.std.rust","settings":{"foreground":"#61afef"}},{"name":"entity.name.lifetime.rust","scope":"entity.name.lifetime.rust","settings":{"foreground":"#e5c07b"}},{"name":"variable.language.rust","scope":"variable.language.rust","settings":{"foreground":"#e06c75"}},{"name":"support.constant.edge","scope":"support.constant.edge","settings":{"foreground":"#c678dd"}},{"name":"regexp constant character-class","scope":"constant.other.character-class.regexp","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":["keyword.operator.word"],"settings":{"foreground":"#c678dd"}},{"name":"regexp operator.quantifier","scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d19a66"}},{"name":"Text","scope":"variable.parameter.function","settings":{"foreground":"#abb2bf"}},{"name":"Comment Markup Link","scope":"comment markup.link","settings":{"foreground":"#5c6370"}},{"name":"markup diff","scope":"markup.changed.diff","settings":{"foreground":"#e5c07b"}},{"name":"diff","scope":"meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff","settings":{"foreground":"#61afef"}},{"name":"inserted.diff","scope":"markup.inserted.diff","settings":{"foreground":"#98c379"}},{"name":"deleted.diff","scope":"markup.deleted.diff","settings":{"foreground":"#e06c75"}},{"name":"c++ function","scope":"meta.function.c,meta.function.cpp","settings":{"foreground":"#e06c75"}},{"name":"c++ block","scope":"punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c","settings":{"foreground":"#abb2bf"}},{"name":"js/ts punctuation separator key-value","scope":"punctuation.separator.key-value","settings":{"foreground":"#abb2bf"}},{"name":"js/ts import keyword","scope":"keyword.operator.expression.import","settings":{"foreground":"#61afef"}},{"name":"math js/ts","scope":"support.constant.math","settings":{"foreground":"#e5c07b"}},{"name":"math property js/ts","scope":"support.constant.property.math","settings":{"foreground":"#d19a66"}},{"name":"js/ts variable.other.constant","scope":"variable.other.constant","settings":{"foreground":"#e5c07b"}},{"name":"java type","scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"#e5c07b"}},{"name":"java source","scope":"source.java","settings":{"foreground":"#e06c75"}},{"name":"java modifier.import","scope":"punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java","settings":{"foreground":"#abb2bf"}},{"name":"java modifier.import","scope":"meta.method.java","settings":{"foreground":"#61afef"}},{"name":"java modifier.import","scope":"storage.modifier.import.java,storage.type.java,storage.type.generic.java","settings":{"foreground":"#e5c07b"}},{"name":"java instanceof","scope":"keyword.operator.instanceof.java","settings":{"foreground":"#c678dd"}},{"name":"java variable.name","scope":"meta.definition.variable.name.java","settings":{"foreground":"#e06c75"}},{"name":"operator logical","scope":"keyword.operator.logical","settings":{"foreground":"#56b6c2"}},{"name":"operator bitwise","scope":"keyword.operator.bitwise","settings":{"foreground":"#56b6c2"}},{"name":"operator channel","scope":"keyword.operator.channel","settings":{"foreground":"#56b6c2"}},{"name":"support.constant.property-value.scss","scope":"support.constant.property-value.scss,support.constant.property-value.css","settings":{"foreground":"#d19a66"}},{"name":"CSS/SCSS/LESS Operators","scope":"keyword.operator.css,keyword.operator.scss,keyword.operator.less","settings":{"foreground":"#56b6c2"}},{"name":"css color standard name","scope":"support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss","settings":{"foreground":"#d19a66"}},{"name":"css comma","scope":"punctuation.separator.list.comma.css","settings":{"foreground":"#abb2bf"}},{"name":"css attribute-name.id","scope":"support.constant.color.w3c-standard-color-name.css","settings":{"foreground":"#d19a66"}},{"name":"css property-name","scope":"support.type.vendored.property-name.css","settings":{"foreground":"#56b6c2"}},{"name":"js/ts module","scope":"support.module.node,support.type.object.module,support.module.node","settings":{"foreground":"#e5c07b"}},{"name":"entity.name.type.module","scope":"entity.name.type.module","settings":{"foreground":"#e5c07b"}},{"name":"js variable readwrite","scope":"variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node","settings":{"foreground":"#e06c75"}},{"name":"js/ts json","scope":"support.constant.json","settings":{"foreground":"#d19a66"}},{"name":"js/ts Keyword","scope":["keyword.operator.expression.instanceof","keyword.operator.new","keyword.operator.ternary","keyword.operator.optional","keyword.operator.expression.keyof"],"settings":{"foreground":"#c678dd"}},{"name":"js/ts console","scope":"support.type.object.console","settings":{"foreground":"#e06c75"}},{"name":"js/ts support.variable.property.process","scope":"support.variable.property.process","settings":{"foreground":"#d19a66"}},{"name":"js console function","scope":"entity.name.function,support.function.console","settings":{"foreground":"#61afef"}},{"name":"keyword.operator.misc.rust","scope":"keyword.operator.misc.rust","settings":{"foreground":"#abb2bf"}},{"name":"keyword.operator.sigil.rust","scope":"keyword.operator.sigil.rust","settings":{"foreground":"#c678dd"}},{"name":"operator","scope":"keyword.operator.delete","settings":{"foreground":"#c678dd"}},{"name":"js dom","scope":"support.type.object.dom","settings":{"foreground":"#56b6c2"}},{"name":"js dom variable","scope":"support.variable.dom,support.variable.property.dom","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":"keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational","settings":{"foreground":"#56b6c2"}},{"name":"C operator assignment","scope":"keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp","settings":{"foreground":"#c678dd"}},{"name":"Punctuation","scope":"punctuation.separator.delimiter","settings":{"foreground":"#abb2bf"}},{"name":"Other punctuation .c","scope":"punctuation.separator.c,punctuation.separator.cpp","settings":{"foreground":"#c678dd"}},{"name":"C type posix-reserved","scope":"support.type.posix-reserved.c,support.type.posix-reserved.cpp","settings":{"foreground":"#56b6c2"}},{"name":"keyword.operator.sizeof.c","scope":"keyword.operator.sizeof.c,keyword.operator.sizeof.cpp","settings":{"foreground":"#c678dd"}},{"name":"python parameter","scope":"variable.parameter.function.language.python","settings":{"foreground":"#d19a66"}},{"name":"python type","scope":"support.type.python","settings":{"foreground":"#56b6c2"}},{"name":"python logical","scope":"keyword.operator.logical.python","settings":{"foreground":"#c678dd"}},{"name":"pyCs","scope":"variable.parameter.function.python","settings":{"foreground":"#d19a66"}},{"name":"python block","scope":"punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python","settings":{"foreground":"#abb2bf"}},{"name":"python function-call.generic","scope":"meta.function-call.generic.python","settings":{"foreground":"#61afef"}},{"name":"python placeholder reset to normal string","scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#d19a66"}},{"name":"Operators","scope":"keyword.operator","settings":{"foreground":"#abb2bf"}},{"name":"Compound Assignment Operators","scope":"keyword.operator.assignment.compound","settings":{"foreground":"#c678dd"}},{"name":"Compound Assignment Operators js/ts","scope":"keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts","settings":{"foreground":"#56b6c2"}},{"name":"Keywords","scope":"keyword","settings":{"foreground":"#c678dd"}},{"name":"Namespaces","scope":"entity.name.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Variables","scope":"variable","settings":{"foreground":"#e06c75"}},{"name":"Variables","scope":"variable.c","settings":{"foreground":"#abb2bf"}},{"name":"Language variables","scope":"variable.language","settings":{"foreground":"#e5c07b"}},{"name":"Java Variables","scope":"token.variable.parameter.java","settings":{"foreground":"#abb2bf"}},{"name":"Java Imports","scope":"import.storage.java","settings":{"foreground":"#e5c07b"}},{"name":"Packages","scope":"token.package.keyword","settings":{"foreground":"#c678dd"}},{"name":"Packages","scope":"token.package","settings":{"foreground":"#abb2bf"}},{"name":"Functions","scope":["entity.name.function","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"#61afef"}},{"name":"Classes","scope":"entity.name.type.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Classes","scope":"support.class, entity.name.type.class","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"#e5c07b"}},{"name":"Class name php","scope":"variable.other.class.php","settings":{"foreground":"#e06c75"}},{"name":"Type Name","scope":"entity.name.type","settings":{"foreground":"#e5c07b"}},{"name":"Keyword Control","scope":"keyword.control","settings":{"foreground":"#c678dd"}},{"name":"Control Elements","scope":"control.elements, keyword.operator.less","settings":{"foreground":"#d19a66"}},{"name":"Methods","scope":"keyword.other.special-method","settings":{"foreground":"#61afef"}},{"name":"Storage","scope":"storage","settings":{"foreground":"#c678dd"}},{"name":"Storage JS TS","scope":"token.storage","settings":{"foreground":"#c678dd"}},{"name":"Source Js Keyword Operator Delete,source Js Keyword Operator In,source Js Keyword Operator Of,source Js Keyword Operator Instanceof,source Js Keyword Operator New,source Js Keyword Operator Typeof,source Js Keyword Operator Void","scope":"keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void","settings":{"foreground":"#c678dd"}},{"name":"Java Storage","scope":"token.storage.type.java","settings":{"foreground":"#e5c07b"}},{"name":"Support","scope":"support.function","settings":{"foreground":"#56b6c2"}},{"name":"Support type","scope":"support.type.property-name","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] toml support","scope":"support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml","settings":{"foreground":"#e06c75"}},{"name":"Support type","scope":"support.constant.property-value","settings":{"foreground":"#abb2bf"}},{"name":"Support type","scope":"support.constant.font-name","settings":{"foreground":"#d19a66"}},{"name":"Meta tag","scope":"meta.tag","settings":{"foreground":"#abb2bf"}},{"name":"Strings","scope":"string","settings":{"foreground":"#98c379"}},{"name":"Constant other symbol","scope":"constant.other.symbol","settings":{"foreground":"#56b6c2"}},{"name":"Integers","scope":"constant.numeric","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"constant","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"punctuation.definition.constant","settings":{"foreground":"#d19a66"}},{"name":"Tags","scope":"entity.name.tag","settings":{"foreground":"#e06c75"}},{"name":"Attributes","scope":"entity.other.attribute-name","settings":{"foreground":"#d19a66"}},{"name":"Attribute IDs","scope":"entity.other.attribute-name.id","settings":{"foreground":"#61afef"}},{"name":"Attribute class","scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#d19a66"}},{"name":"Selector","scope":"meta.selector","settings":{"foreground":"#c678dd"}},{"name":"Headings","scope":"markup.heading","settings":{"foreground":"#e06c75"}},{"name":"Headings","scope":"markup.heading punctuation.definition.heading, entity.name.section","settings":{"foreground":"#61afef"}},{"name":"Units","scope":"keyword.other.unit","settings":{"foreground":"#e06c75"}},{"name":"Bold","scope":"markup.bold,todo.bold","settings":{"foreground":"#d19a66"}},{"name":"Bold","scope":"punctuation.definition.bold","settings":{"foreground":"#e5c07b"}},{"name":"markup Italic","scope":"markup.italic, punctuation.definition.italic,todo.emphasis","settings":{"foreground":"#c678dd"}},{"name":"emphasis md","scope":"emphasis md","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown headings","scope":"entity.name.section.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown heading Punctuation Definition","scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#e06c75"}},{"name":"punctuation.definition.list.begin.markdown","scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown heading setext","scope":"markup.heading.setext","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Bold","scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#d19a66"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw punctuation","scope":"punctuation.definition.raw.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown List Punctuation Definition","scope":"punctuation.definition.list.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition String","scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","punctuation.definition.metadata.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"beginning.punctuation.definition.list.markdown","scope":["beginning.punctuation.definition.list.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Link","scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Underline Link/Image","scope":"markup.underline.link.markdown,markup.underline.link.image.markdown","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown Link Title/Description","scope":"string.other.link.title.markdown,string.other.link.description.markdown","settings":{"foreground":"#61afef"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw","scope":"markup.raw.monospace.asciidoc","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw Punctuation Definition","scope":"punctuation.definition.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc List Punctuation Definition","scope":"markup.list.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc underline link","scope":"markup.link.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Asciidoc link name","scope":"string.unquoted.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#61afef"}},{"name":"Regular Expressions","scope":"string.regexp","settings":{"foreground":"#56b6c2"}},{"name":"Embedded","scope":"punctuation.section.embedded, variable.interpolation","settings":{"foreground":"#e06c75"}},{"name":"Embedded","scope":"punctuation.section.embedded.begin,punctuation.section.embedded.end","settings":{"foreground":"#c678dd"}},{"name":"illegal","scope":"invalid.illegal","settings":{"foreground":"#ffffff"}},{"name":"illegal","scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"#abb2bf"}},{"scope":"invalid.illegal.unrecognized-tag.html","settings":{"foreground":"#e06c75"}},{"name":"Broken","scope":"invalid.broken","settings":{"foreground":"#ffffff"}},{"name":"Deprecated","scope":"invalid.deprecated","settings":{"foreground":"#ffffff"}},{"name":"html Deprecated","scope":"invalid.deprecated.entity.other.attribute-name.html","settings":{"foreground":"#d19a66"}},{"name":"Unimplemented","scope":"invalid.unimplemented","settings":{"foreground":"#ffffff"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json","scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json > Punctuation String","scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > Value Json > String Quoted Json,source Json Meta Structure Array Json > Value Json > String Quoted Json,source Json Meta Structure Dictionary Json > Value Json > String Quoted Json > Punctuation,source Json Meta Structure Array Json > Value Json > String Quoted Json > Punctuation","scope":"source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation","settings":{"foreground":"#98c379"}},{"name":"Source Json Meta Structure Dictionary Json > Constant Language Json,source Json Meta Structure Array Json > Constant Language Json","scope":"source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json","settings":{"foreground":"#56b6c2"}},{"name":"[VSCODE-CUSTOM] JSON Property Name","scope":"support.type.property-name.json","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] JSON Punctuation for Property Name","scope":"support.type.property-name.json punctuation","settings":{"foreground":"#e06c75"}},{"name":"laravel blade tag","scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"laravel blade @","scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"use statement for other classes","scope":"support.other.namespace.use.php,support.other.namespace.use-as.php,entity.other.alias.php,meta.interface.php","settings":{"foreground":"#e5c07b"}},{"name":"error suppression","scope":"keyword.operator.error-control.php","settings":{"foreground":"#c678dd"}},{"name":"php instanceof","scope":"keyword.operator.type.php","settings":{"foreground":"#c678dd"}},{"name":"style double quoted array index normal begin","scope":"punctuation.section.array.begin.php","settings":{"foreground":"#abb2bf"}},{"name":"style double quoted array index normal end","scope":"punctuation.section.array.end.php","settings":{"foreground":"#abb2bf"}},{"name":"php illegal.non-null-typehinted","scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"#f44747"}},{"name":"php types","scope":"storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php","settings":{"foreground":"#e5c07b"}},{"name":"php call-function","scope":"meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php","settings":{"foreground":"#61afef"}},{"name":"php function-resets","scope":"punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php","settings":{"foreground":"#abb2bf"}},{"name":"support php constants","scope":"support.constant.core.rust","settings":{"foreground":"#d19a66"}},{"name":"support php constants","scope":"support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php","settings":{"foreground":"#d19a66"}},{"name":"php goto","scope":"entity.name.goto-label.php,support.other.php","settings":{"foreground":"#61afef"}},{"name":"php logical/bitwise operator","scope":"keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php","settings":{"foreground":"#56b6c2"}},{"name":"php regexp operator","scope":"keyword.operator.regexp.php","settings":{"foreground":"#c678dd"}},{"name":"php comparison","scope":"keyword.operator.comparison.php","settings":{"foreground":"#56b6c2"}},{"name":"php heredoc/nowdoc","scope":"keyword.operator.heredoc.php,keyword.operator.nowdoc.php","settings":{"foreground":"#c678dd"}},{"name":"python function decorator @","scope":"meta.function.decorator.python","settings":{"foreground":"#61afef"}},{"name":"python function support","scope":"support.token.decorator.python,meta.function.decorator.identifier.python","settings":{"foreground":"#56b6c2"}},{"name":"parameter function js/ts","scope":"function.parameter","settings":{"foreground":"#abb2bf"}},{"name":"brace function","scope":"function.brace","settings":{"foreground":"#abb2bf"}},{"name":"parameter function ruby cs","scope":"function.parameter.ruby, function.parameter.cs","settings":{"foreground":"#abb2bf"}},{"name":"constant.language.symbol.ruby","scope":"constant.language.symbol.ruby","settings":{"foreground":"#56b6c2"}},{"name":"constant.language.symbol.hashkey.ruby","scope":"constant.language.symbol.hashkey.ruby","settings":{"foreground":"#56b6c2"}},{"name":"rgb-value","scope":"rgb-value","settings":{"foreground":"#56b6c2"}},{"name":"rgb value","scope":"inline-color-decoration rgb-value","settings":{"foreground":"#d19a66"}},{"name":"rgb value less","scope":"less rgb-value","settings":{"foreground":"#d19a66"}},{"name":"sass selector","scope":"selector.sass","settings":{"foreground":"#e06c75"}},{"name":"ts primitive/builtin types","scope":"support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx","settings":{"foreground":"#e5c07b"}},{"name":"block scope","scope":"block.scope.end,block.scope.begin","settings":{"foreground":"#abb2bf"}},{"name":"cs storage type","scope":"storage.type.cs","settings":{"foreground":"#e5c07b"}},{"name":"cs local variable","scope":"entity.name.variable.local.cs","settings":{"foreground":"#e06c75"}},{"scope":"token.info-token","settings":{"foreground":"#61afef"}},{"scope":"token.warn-token","settings":{"foreground":"#d19a66"}},{"scope":"token.error-token","settings":{"foreground":"#f44747"}},{"scope":"token.debug-token","settings":{"foreground":"#c678dd"}},{"name":"String interpolation","scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#c678dd"}},{"name":"Reset JavaScript string interpolation expression","scope":["meta.template.expression"],"settings":{"foreground":"#abb2bf"}},{"name":"Import module JS","scope":["keyword.operator.module"],"settings":{"foreground":"#c678dd"}},{"name":"js Flowtype","scope":["support.type.type.flowtype"],"settings":{"foreground":"#61afef"}},{"name":"js Flow","scope":["support.type.primitive"],"settings":{"foreground":"#e5c07b"}},{"name":"js class prop","scope":["meta.property.object"],"settings":{"foreground":"#e06c75"}},{"name":"js func parameter","scope":["variable.parameter.function.js"],"settings":{"foreground":"#e06c75"}},{"name":"js template literals begin","scope":["keyword.other.template.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals end","scope":["keyword.other.template.end"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces begin","scope":["keyword.other.substitution.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces end","scope":["keyword.other.substitution.end"],"settings":{"foreground":"#98c379"}},{"name":"js operator.assignment","scope":["keyword.operator.assignment"],"settings":{"foreground":"#56b6c2"}},{"name":"go operator","scope":["keyword.operator.assignment.go"],"settings":{"foreground":"#e5c07b"}},{"name":"go operator","scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"#c678dd"}},{"name":"Go package name","scope":["entity.name.package.go"],"settings":{"foreground":"#e5c07b"}},{"name":"elm prelude","scope":["support.type.prelude.elm"],"settings":{"foreground":"#56b6c2"}},{"name":"elm constant","scope":["support.constant.elm"],"settings":{"foreground":"#d19a66"}},{"name":"template literal","scope":["punctuation.quasi.element"],"settings":{"foreground":"#c678dd"}},{"name":"html/pug (jade) escaped characters and entities","scope":["constant.character.entity"],"settings":{"foreground":"#e06c75"}},{"name":"styling css pseudo-elements/classes to be able to differentiate from classes which are the same colour","scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#56b6c2"}},{"name":"Clojure globals","scope":["entity.global.clojure"],"settings":{"foreground":"#e5c07b"}},{"name":"Clojure symbols","scope":["meta.symbol.clojure"],"settings":{"foreground":"#e06c75"}},{"name":"Clojure constants","scope":["constant.keyword.clojure"],"settings":{"foreground":"#56b6c2"}},{"name":"CoffeeScript Function Argument","scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"#e06c75"}},{"name":"Ini Default Text","scope":["source.ini"],"settings":{"foreground":"#98c379"}},{"name":"Makefile prerequisities","scope":["meta.scope.prerequisites.makefile"],"settings":{"foreground":"#e06c75"}},{"name":"Makefile text colour","scope":["source.makefile"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy import names","scope":["storage.modifier.import.groovy"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy Methods","scope":["meta.method.groovy"],"settings":{"foreground":"#61afef"}},{"name":"Groovy Variables","scope":["meta.definition.variable.name.groovy"],"settings":{"foreground":"#e06c75"}},{"name":"Groovy Inheritance","scope":["meta.definition.class.inherited.classes.groovy"],"settings":{"foreground":"#98c379"}},{"name":"HLSL Semantic","scope":["support.variable.semantic.hlsl"],"settings":{"foreground":"#e5c07b"}},{"name":"HLSL Types","scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"#c678dd"}},{"name":"SQL Variables","scope":["text.variable","text.bracketed"],"settings":{"foreground":"#e06c75"}},{"name":"types","scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 1, keyword","scope":["entity.name.function.xi"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 2, callable","scope":["entity.name.class.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 3, property","scope":["constant.character.character-class.regexp.xi"],"settings":{"foreground":"#e06c75"}},{"name":"heading 4, type, class, interface","scope":["constant.regexp.xi"],"settings":{"foreground":"#c678dd"}},{"name":"heading 5, enums, preprocessor, constant, decorator","scope":["keyword.control.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 6, number","scope":["invalid.xi"],"settings":{"foreground":"#abb2bf"}},{"name":"string","scope":["beginning.punctuation.definition.quote.markdown.xi"],"settings":{"foreground":"#98c379"}},{"name":"comments","scope":["beginning.punctuation.definition.list.markdown.xi"],"settings":{"foreground":"#7f848e"}},{"name":"link","scope":["constant.character.xi"],"settings":{"foreground":"#61afef"}},{"name":"accent","scope":["accent.xi"],"settings":{"foreground":"#61afef"}},{"name":"wikiword","scope":["wikiword.xi"],"settings":{"foreground":"#d19a66"}},{"name":"language operators like \'+\', \'-\' etc","scope":["constant.other.color.rgb-value.xi"],"settings":{"foreground":"#ffffff"}},{"name":"elements to dim","scope":["punctuation.definition.tag.xi"],"settings":{"foreground":"#5c6370"}},{"name":"C++/C#","scope":["entity.name.label.cs","entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"#e5c07b"}},{"name":"Markdown underscore-style headers","scope":["entity.name.label.cs","markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"meta.brace.square","scope":[" meta.brace.square"],"settings":{"foreground":"#abb2bf"}},{"name":"Comments","scope":"comment, punctuation.definition.comment","settings":{"foreground":"#7f848e","fontStyle":"italic"}},{"name":"[VSCODE-CUSTOM] Markdown Quote","scope":"markup.quote.markdown","settings":{"foreground":"#5c6370"}},{"name":"punctuation.definition.block.sequence.item.yaml","scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#abb2bf"}},{"scope":["constant.language.symbol.elixir","constant.language.symbol.double-quoted.elixir"],"settings":{"foreground":"#56b6c2"}},{"scope":["entity.name.variable.parameter.cs"],"settings":{"foreground":"#e5c07b"}},{"scope":["entity.name.variable.field.cs"],"settings":{"foreground":"#e06c75"}},{"name":"Deleted","scope":"markup.deleted","settings":{"foreground":"#e06c75"}},{"name":"Inserted","scope":"markup.inserted","settings":{"foreground":"#98c379"}},{"name":"Underline","scope":"markup.underline","settings":{"fontStyle":"underline"}},{"name":"punctuation.section.embedded.begin.php","scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#BE5046"}},{"name":"support.other.namespace.php","scope":["support.other.namespace.php"],"settings":{"foreground":"#abb2bf"}},{"name":"variable.other.object","scope":["variable.other.object"],"settings":{"foreground":"#e5c07b"}},{"name":"variable.other.constant.property","scope":["variable.other.constant.property"],"settings":{"foreground":"#e06c75"}},{"name":"entity.other.inherited-class","scope":["entity.other.inherited-class"],"settings":{"foreground":"#e5c07b"}},{"name":"c variable readwrite","scope":"variable.other.readwrite.c","settings":{"foreground":"#e06c75"}},{"name":"php scope","scope":"entity.name.variable.parameter.php,punctuation.separator.colon.php,constant.other.php","settings":{"foreground":"#abb2bf"}},{"name":"Assembly","scope":["constant.numeric.decimal.asm.x86_64"],"settings":{"foreground":"#c678dd"}},{"scope":["support.other.parenthesis.regexp"],"settings":{"foreground":"#d19a66"}},{"scope":["constant.character.escape"],"settings":{"foreground":"#56b6c2"}},{"scope":["string.regexp"],"settings":{"foreground":"#e06c75"}},{"name":"js/ts italic","scope":"entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super","settings":{"fontStyle":"italic"}},{"name":"comment","scope":"comment.line.double-slash,comment.block.documentation","settings":{"fontStyle":"italic"}},{"name":"Python Keyword Control","scope":"keyword.control.import.python,keyword.control.flow.python,keyword.operator.logical.python","settings":{"fontStyle":"italic"}},{"name":"markup.italic.markdown","scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}}],"colors":{"activityBar.background":"#282c34","activityBar.foreground":"#d7dae0","activityBarBadge.background":"#4d78cc","activityBarBadge.foreground":"#f8fafd","badge.background":"#282c34","button.background":"#404754","button.secondaryBackground":"#30333d","button.secondaryForeground":"#c0bdbd","checkbox.border":"#404754","debugToolBar.background":"#21252b","descriptionForeground":"#abb2bf","diffEditor.insertedTextBackground":"#00809b33","dropdown.background":"#21252b","dropdown.border":"#21252b","editor.background":"#282c34","editor.findMatchBackground":"#42557b","editor.findMatchBorder":"#457dff","editor.findMatchHighlightBackground":"#6199ff2f","editor.foreground":"#abb2bf","editorBracketHighlight.foreground1":"#d19a66","editorBracketHighlight.foreground2":"#c678dd","editorBracketHighlight.foreground3":"#56b6c2","editorHoverWidget.highlightForeground":"#61afef","editorInlayHint.foreground":"#abb2bf","editorInlayHint.background":"#2c313c","editor.lineHighlightBackground":"#2c313c","editorLineNumber.activeForeground":"#abb2bf","editorGutter.addedBackground":"#109868","editorGutter.deletedBackground":"#9A353D","editorGutter.modifiedBackground":"#948B60","editorOverviewRuler.addedBackground":"#109868","editorOverviewRuler.deletedBackground":"#9A353D","editorOverviewRuler.modifiedBackground":"#948B60","editor.selectionBackground":"#67769660","editor.selectionHighlightBackground":"#ffffff10","editor.selectionHighlightBorder":"#dddddd","editor.wordHighlightBackground":"#d2e0ff2f","editor.wordHighlightBorder":"#7f848e","editor.wordHighlightStrongBackground":"#abb2bf26","editor.wordHighlightStrongBorder":"#7f848e","editorBracketMatch.background":"#515a6b","editorBracketMatch.border":"#515a6b","editorCursor.background":"#ffffffc9","editorCursor.foreground":"#528bff","editorError.foreground":"#c24038","editorGroup.background":"#181a1f","editorGroup.border":"#181a1f","editorGroupHeader.tabsBackground":"#21252b","editorHoverWidget.background":"#21252b","editorHoverWidget.border":"#181a1f","editorIndentGuide.activeBackground":"#c8c8c859","editorIndentGuide.background":"#3b4048","editorLineNumber.foreground":"#495162","editorMarkerNavigation.background":"#21252b","editorRuler.foreground":"#abb2bf26","editorSuggestWidget.background":"#21252b","editorSuggestWidget.border":"#181a1f","editorSuggestWidget.selectedBackground":"#2c313a","editorWarning.foreground":"#d19a66","editorWhitespace.foreground":"#ffffff1d","editorWidget.background":"#21252b","focusBorder":"#3e4452","gitDecoration.ignoredResourceForeground":"#636b78","input.background":"#1d1f23","input.foreground":"#abb2bf","list.activeSelectionBackground":"#2c313a","list.activeSelectionForeground":"#d7dae0","list.focusBackground":"#323842","list.focusForeground":"#f0f0f0","list.highlightForeground":"#ecebeb","list.hoverBackground":"#2c313a","list.hoverForeground":"#abb2bf","list.inactiveSelectionBackground":"#323842","list.inactiveSelectionForeground":"#d7dae0","list.warningForeground":"#d19a66","menu.foreground":"#abb2bf","menu.separatorBackground":"#343a45","minimapGutter.addedBackground":"#109868","minimapGutter.deletedBackground":"#9A353D","minimapGutter.modifiedBackground":"#948B60","panel.border":"#3e4452","panelSectionHeader.background":"#21252b","peekViewEditor.background":"#1b1d23","peekViewEditor.matchHighlightBackground":"#29244b","peekViewResult.background":"#22262b","scrollbar.shadow":"#23252c","scrollbarSlider.activeBackground":"#747d9180","scrollbarSlider.background":"#4e566660","scrollbarSlider.hoverBackground":"#5a637580","settings.focusedRowBackground":"#282c34","settings.headerForeground":"#fff","sideBar.background":"#21252b","sideBar.foreground":"#abb2bf","sideBarSectionHeader.background":"#282c34","sideBarSectionHeader.foreground":"#abb2bf","statusBar.background":"#21252b","statusBar.debuggingBackground":"#cc6633","statusBar.debuggingBorder":"#ff000000","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#9da5b4","statusBar.noFolderBackground":"#21252b","statusBarItem.remoteBackground":"#4d78cc","statusBarItem.remoteForeground":"#f8fafd","tab.activeBackground":"#282c34","tab.activeBorder":"#b4b4b4","tab.activeForeground":"#dcdcdc","tab.border":"#181a1f","tab.hoverBackground":"#323842","tab.inactiveBackground":"#21252b","tab.unfocusedHoverBackground":"#323842","terminal.ansiBlack":"#3f4451","terminal.ansiBlue":"#4aa5f0","terminal.ansiBrightBlack":"#4f5666","terminal.ansiBrightBlue":"#4dc4ff","terminal.ansiBrightCyan":"#4cd1e0","terminal.ansiBrightGreen":"#a5e075","terminal.ansiBrightMagenta":"#de73ff","terminal.ansiBrightRed":"#ff616e","terminal.ansiBrightWhite":"#e6e6e6","terminal.ansiBrightYellow":"#f0a45d","terminal.ansiCyan":"#42b3c2","terminal.ansiGreen":"#8cc265","terminal.ansiMagenta":"#c162de","terminal.ansiRed":"#e05561","terminal.ansiWhite":"#d7dae0","terminal.ansiYellow":"#d18f52","terminal.background":"#282c34","terminal.border":"#3e4452","terminal.foreground":"#abb2bf","terminal.selectionBackground":"#abb2bf30","textBlockQuote.background":"#2e3440","textBlockQuote.border":"#4b5362","textLink.foreground":"#61afef","textPreformat.foreground":"#d19a66","titleBar.activeBackground":"#282c34","titleBar.activeForeground":"#9da5b4","titleBar.inactiveBackground":"#21252b","titleBar.inactiveForeground":"#6b717d","tree.indentGuidesStroke":"#ffffff1d","walkThrough.embeddedEditorBackground":"#2e3440","welcomePage.buttonHoverBackground":"#404754"}}'),Cc=JSON.parse('{"name":"One Dark Pro","type":"dark","semanticHighlighting":true,"semanticTokenColors":{"enumMember":{"foreground":"#56b6c2"},"variable.constant":{"foreground":"#d19a66"},"variable.defaultLibrary":{"foreground":"#e5c07b"},"variable:dart":{"foreground":"#d19a66"},"property:dart":{"foreground":"#d19a66"},"annotation:dart":{"foreground":"#d19a66"},"parameter.label:dart":{"foreground":"#abb2bf"},"macro":{"foreground":"#d19a66"},"tomlArrayKey":{"foreground":"#e5c07b"}},"tokenColors":[{"scope":"meta.embedded","settings":{"foreground":"#abb2bf"}},{"name":"unison punctuation","scope":"punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison","settings":{"foreground":"#e06c75"}},{"name":"haskell variable generic-type","scope":"variable.other.generic-type.haskell","settings":{"foreground":"#c678dd"}},{"name":"haskell storage type","scope":"storage.type.haskell","settings":{"foreground":"#d19a66"}},{"name":"support.variable.magic.python","scope":"support.variable.magic.python","settings":{"foreground":"#e06c75"}},{"name":"punctuation.separator.parameters.python","scope":"punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python","settings":{"foreground":"#abb2bf"}},{"name":"variable.parameter.function.language.special.self.python","scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"#e5c07b"}},{"name":"variable.parameter.function.language.special.cls.python","scope":"variable.parameter.function.language.special.cls.python","settings":{"foreground":"#e5c07b"}},{"name":"storage.modifier.lifetime.rust","scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#abb2bf"}},{"name":"support.function.std.rust","scope":"support.function.std.rust","settings":{"foreground":"#61afef"}},{"name":"entity.name.lifetime.rust","scope":"entity.name.lifetime.rust","settings":{"foreground":"#e5c07b"}},{"name":"variable.language.rust","scope":"variable.language.rust","settings":{"foreground":"#e06c75"}},{"name":"support.constant.edge","scope":"support.constant.edge","settings":{"foreground":"#c678dd"}},{"name":"regexp constant character-class","scope":"constant.other.character-class.regexp","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":["keyword.operator.word"],"settings":{"foreground":"#c678dd"}},{"name":"regexp operator.quantifier","scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d19a66"}},{"name":"Text","scope":"variable.parameter.function","settings":{"foreground":"#abb2bf"}},{"name":"Comment Markup Link","scope":"comment markup.link","settings":{"foreground":"#5c6370"}},{"name":"markup diff","scope":"markup.changed.diff","settings":{"foreground":"#e5c07b"}},{"name":"diff","scope":"meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff","settings":{"foreground":"#61afef"}},{"name":"inserted.diff","scope":"markup.inserted.diff","settings":{"foreground":"#98c379"}},{"name":"deleted.diff","scope":"markup.deleted.diff","settings":{"foreground":"#e06c75"}},{"name":"c++ function","scope":"meta.function.c,meta.function.cpp","settings":{"foreground":"#e06c75"}},{"name":"c++ block","scope":"punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c","settings":{"foreground":"#abb2bf"}},{"name":"js/ts punctuation separator key-value","scope":"punctuation.separator.key-value","settings":{"foreground":"#abb2bf"}},{"name":"js/ts import keyword","scope":"keyword.operator.expression.import","settings":{"foreground":"#61afef"}},{"name":"math js/ts","scope":"support.constant.math","settings":{"foreground":"#e5c07b"}},{"name":"math property js/ts","scope":"support.constant.property.math","settings":{"foreground":"#d19a66"}},{"name":"js/ts variable.other.constant","scope":"variable.other.constant","settings":{"foreground":"#e5c07b"}},{"name":"java type","scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"#e5c07b"}},{"name":"java source","scope":"source.java","settings":{"foreground":"#e06c75"}},{"name":"java modifier.import","scope":"punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java","settings":{"foreground":"#abb2bf"}},{"name":"java modifier.import","scope":"meta.method.java","settings":{"foreground":"#61afef"}},{"name":"java modifier.import","scope":"storage.modifier.import.java,storage.type.java,storage.type.generic.java","settings":{"foreground":"#e5c07b"}},{"name":"java instanceof","scope":"keyword.operator.instanceof.java","settings":{"foreground":"#c678dd"}},{"name":"java variable.name","scope":"meta.definition.variable.name.java","settings":{"foreground":"#e06c75"}},{"name":"operator logical","scope":"keyword.operator.logical","settings":{"foreground":"#56b6c2"}},{"name":"operator bitwise","scope":"keyword.operator.bitwise","settings":{"foreground":"#56b6c2"}},{"name":"operator channel","scope":"keyword.operator.channel","settings":{"foreground":"#56b6c2"}},{"name":"support.constant.property-value.scss","scope":"support.constant.property-value.scss,support.constant.property-value.css","settings":{"foreground":"#d19a66"}},{"name":"CSS/SCSS/LESS Operators","scope":"keyword.operator.css,keyword.operator.scss,keyword.operator.less","settings":{"foreground":"#56b6c2"}},{"name":"css color standard name","scope":"support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss","settings":{"foreground":"#d19a66"}},{"name":"css comma","scope":"punctuation.separator.list.comma.css","settings":{"foreground":"#abb2bf"}},{"name":"css attribute-name.id","scope":"support.constant.color.w3c-standard-color-name.css","settings":{"foreground":"#d19a66"}},{"name":"css property-name","scope":"support.type.vendored.property-name.css","settings":{"foreground":"#56b6c2"}},{"name":"js/ts module","scope":"support.module.node,support.type.object.module,support.module.node","settings":{"foreground":"#e5c07b"}},{"name":"entity.name.type.module","scope":"entity.name.type.module","settings":{"foreground":"#e5c07b"}},{"name":"js variable readwrite","scope":"variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node","settings":{"foreground":"#e06c75"}},{"name":"js/ts json","scope":"support.constant.json","settings":{"foreground":"#d19a66"}},{"name":"js/ts Keyword","scope":["keyword.operator.expression.instanceof","keyword.operator.new","keyword.operator.ternary","keyword.operator.optional","keyword.operator.expression.keyof"],"settings":{"foreground":"#c678dd"}},{"name":"js/ts console","scope":"support.type.object.console","settings":{"foreground":"#e06c75"}},{"name":"js/ts support.variable.property.process","scope":"support.variable.property.process","settings":{"foreground":"#d19a66"}},{"name":"js console function","scope":"entity.name.function,support.function.console","settings":{"foreground":"#61afef"}},{"name":"keyword.operator.misc.rust","scope":"keyword.operator.misc.rust","settings":{"foreground":"#abb2bf"}},{"name":"keyword.operator.sigil.rust","scope":"keyword.operator.sigil.rust","settings":{"foreground":"#c678dd"}},{"name":"operator","scope":"keyword.operator.delete","settings":{"foreground":"#c678dd"}},{"name":"js dom","scope":"support.type.object.dom","settings":{"foreground":"#56b6c2"}},{"name":"js dom variable","scope":"support.variable.dom,support.variable.property.dom","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":"keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational","settings":{"foreground":"#56b6c2"}},{"name":"C operator assignment","scope":"keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp","settings":{"foreground":"#c678dd"}},{"name":"Punctuation","scope":"punctuation.separator.delimiter","settings":{"foreground":"#abb2bf"}},{"name":"Other punctuation .c","scope":"punctuation.separator.c,punctuation.separator.cpp","settings":{"foreground":"#c678dd"}},{"name":"C type posix-reserved","scope":"support.type.posix-reserved.c,support.type.posix-reserved.cpp","settings":{"foreground":"#56b6c2"}},{"name":"keyword.operator.sizeof.c","scope":"keyword.operator.sizeof.c,keyword.operator.sizeof.cpp","settings":{"foreground":"#c678dd"}},{"name":"python parameter","scope":"variable.parameter.function.language.python","settings":{"foreground":"#d19a66"}},{"name":"python type","scope":"support.type.python","settings":{"foreground":"#56b6c2"}},{"name":"python logical","scope":"keyword.operator.logical.python","settings":{"foreground":"#c678dd"}},{"name":"pyCs","scope":"variable.parameter.function.python","settings":{"foreground":"#d19a66"}},{"name":"python block","scope":"punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python","settings":{"foreground":"#abb2bf"}},{"name":"python function-call.generic","scope":"meta.function-call.generic.python","settings":{"foreground":"#61afef"}},{"name":"python placeholder reset to normal string","scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#d19a66"}},{"name":"Operators","scope":"keyword.operator","settings":{"foreground":"#abb2bf"}},{"name":"Compound Assignment Operators","scope":"keyword.operator.assignment.compound","settings":{"foreground":"#c678dd"}},{"name":"Compound Assignment Operators js/ts","scope":"keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts","settings":{"foreground":"#56b6c2"}},{"name":"Keywords","scope":"keyword","settings":{"foreground":"#c678dd"}},{"name":"Namespaces","scope":"entity.name.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Variables","scope":"variable","settings":{"foreground":"#e06c75"}},{"name":"Variables","scope":"variable.c","settings":{"foreground":"#abb2bf"}},{"name":"Language variables","scope":"variable.language","settings":{"foreground":"#e5c07b"}},{"name":"Java Variables","scope":"token.variable.parameter.java","settings":{"foreground":"#abb2bf"}},{"name":"Java Imports","scope":"import.storage.java","settings":{"foreground":"#e5c07b"}},{"name":"Packages","scope":"token.package.keyword","settings":{"foreground":"#c678dd"}},{"name":"Packages","scope":"token.package","settings":{"foreground":"#abb2bf"}},{"name":"Functions","scope":["entity.name.function","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"#61afef"}},{"name":"Classes","scope":"entity.name.type.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Classes","scope":"support.class, entity.name.type.class","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"#e5c07b"}},{"name":"Class name php","scope":"variable.other.class.php","settings":{"foreground":"#e06c75"}},{"name":"Type Name","scope":"entity.name.type","settings":{"foreground":"#e5c07b"}},{"name":"Keyword Control","scope":"keyword.control","settings":{"foreground":"#c678dd"}},{"name":"Control Elements","scope":"control.elements, keyword.operator.less","settings":{"foreground":"#d19a66"}},{"name":"Methods","scope":"keyword.other.special-method","settings":{"foreground":"#61afef"}},{"name":"Storage","scope":"storage","settings":{"foreground":"#c678dd"}},{"name":"Storage JS TS","scope":"token.storage","settings":{"foreground":"#c678dd"}},{"name":"Source Js Keyword Operator Delete,source Js Keyword Operator In,source Js Keyword Operator Of,source Js Keyword Operator Instanceof,source Js Keyword Operator New,source Js Keyword Operator Typeof,source Js Keyword Operator Void","scope":"keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void","settings":{"foreground":"#c678dd"}},{"name":"Java Storage","scope":"token.storage.type.java","settings":{"foreground":"#e5c07b"}},{"name":"Support","scope":"support.function","settings":{"foreground":"#56b6c2"}},{"name":"Support type","scope":"support.type.property-name","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] toml support","scope":"support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml","settings":{"foreground":"#e06c75"}},{"name":"Support type","scope":"support.constant.property-value","settings":{"foreground":"#abb2bf"}},{"name":"Support type","scope":"support.constant.font-name","settings":{"foreground":"#d19a66"}},{"name":"Meta tag","scope":"meta.tag","settings":{"foreground":"#abb2bf"}},{"name":"Strings","scope":"string","settings":{"foreground":"#98c379"}},{"name":"Constant other symbol","scope":"constant.other.symbol","settings":{"foreground":"#56b6c2"}},{"name":"Integers","scope":"constant.numeric","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"constant","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"punctuation.definition.constant","settings":{"foreground":"#d19a66"}},{"name":"Tags","scope":"entity.name.tag","settings":{"foreground":"#e06c75"}},{"name":"Attributes","scope":"entity.other.attribute-name","settings":{"foreground":"#d19a66"}},{"name":"Attribute IDs","scope":"entity.other.attribute-name.id","settings":{"foreground":"#61afef"}},{"name":"Attribute class","scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#d19a66"}},{"name":"Selector","scope":"meta.selector","settings":{"foreground":"#c678dd"}},{"name":"Headings","scope":"markup.heading","settings":{"foreground":"#e06c75"}},{"name":"Headings","scope":"markup.heading punctuation.definition.heading, entity.name.section","settings":{"foreground":"#61afef"}},{"name":"Units","scope":"keyword.other.unit","settings":{"foreground":"#e06c75"}},{"name":"Bold","scope":"markup.bold,todo.bold","settings":{"foreground":"#d19a66"}},{"name":"Bold","scope":"punctuation.definition.bold","settings":{"foreground":"#e5c07b"}},{"name":"markup Italic","scope":"markup.italic, punctuation.definition.italic,todo.emphasis","settings":{"foreground":"#c678dd"}},{"name":"emphasis md","scope":"emphasis md","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown headings","scope":"entity.name.section.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown heading Punctuation Definition","scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#e06c75"}},{"name":"punctuation.definition.list.begin.markdown","scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown heading setext","scope":"markup.heading.setext","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Bold","scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#d19a66"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw punctuation","scope":"punctuation.definition.raw.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown List Punctuation Definition","scope":"punctuation.definition.list.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition String","scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","punctuation.definition.metadata.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"beginning.punctuation.definition.list.markdown","scope":["beginning.punctuation.definition.list.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Link","scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Underline Link/Image","scope":"markup.underline.link.markdown,markup.underline.link.image.markdown","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown Link Title/Description","scope":"string.other.link.title.markdown,string.other.link.description.markdown","settings":{"foreground":"#61afef"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw","scope":"markup.raw.monospace.asciidoc","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw Punctuation Definition","scope":"punctuation.definition.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc List Punctuation Definition","scope":"markup.list.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc underline link","scope":"markup.link.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Asciidoc link name","scope":"string.unquoted.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#61afef"}},{"name":"Regular Expressions","scope":"string.regexp","settings":{"foreground":"#56b6c2"}},{"name":"Embedded","scope":"punctuation.section.embedded, variable.interpolation","settings":{"foreground":"#e06c75"}},{"name":"Embedded","scope":"punctuation.section.embedded.begin,punctuation.section.embedded.end","settings":{"foreground":"#c678dd"}},{"name":"illegal","scope":"invalid.illegal","settings":{"foreground":"#ffffff"}},{"name":"illegal","scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"#abb2bf"}},{"scope":"invalid.illegal.unrecognized-tag.html","settings":{"foreground":"#e06c75"}},{"name":"Broken","scope":"invalid.broken","settings":{"foreground":"#ffffff"}},{"name":"Deprecated","scope":"invalid.deprecated","settings":{"foreground":"#ffffff"}},{"name":"html Deprecated","scope":"invalid.deprecated.entity.other.attribute-name.html","settings":{"foreground":"#d19a66"}},{"name":"Unimplemented","scope":"invalid.unimplemented","settings":{"foreground":"#ffffff"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json","scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json > Punctuation String","scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > Value Json > String Quoted Json,source Json Meta Structure Array Json > Value Json > String Quoted Json,source Json Meta Structure Dictionary Json > Value Json > String Quoted Json > Punctuation,source Json Meta Structure Array Json > Value Json > String Quoted Json > Punctuation","scope":"source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation","settings":{"foreground":"#98c379"}},{"name":"Source Json Meta Structure Dictionary Json > Constant Language Json,source Json Meta Structure Array Json > Constant Language Json","scope":"source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json","settings":{"foreground":"#56b6c2"}},{"name":"[VSCODE-CUSTOM] JSON Property Name","scope":"support.type.property-name.json","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] JSON Punctuation for Property Name","scope":"support.type.property-name.json punctuation","settings":{"foreground":"#e06c75"}},{"name":"laravel blade tag","scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"laravel blade @","scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"use statement for other classes","scope":"support.other.namespace.use.php,support.other.namespace.use-as.php,entity.other.alias.php,meta.interface.php","settings":{"foreground":"#e5c07b"}},{"name":"error suppression","scope":"keyword.operator.error-control.php","settings":{"foreground":"#c678dd"}},{"name":"php instanceof","scope":"keyword.operator.type.php","settings":{"foreground":"#c678dd"}},{"name":"style double quoted array index normal begin","scope":"punctuation.section.array.begin.php","settings":{"foreground":"#abb2bf"}},{"name":"style double quoted array index normal end","scope":"punctuation.section.array.end.php","settings":{"foreground":"#abb2bf"}},{"name":"php illegal.non-null-typehinted","scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"#f44747"}},{"name":"php types","scope":"storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php","settings":{"foreground":"#e5c07b"}},{"name":"php call-function","scope":"meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php","settings":{"foreground":"#61afef"}},{"name":"php function-resets","scope":"punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php","settings":{"foreground":"#abb2bf"}},{"name":"support php constants","scope":"support.constant.core.rust","settings":{"foreground":"#d19a66"}},{"name":"support php constants","scope":"support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php","settings":{"foreground":"#d19a66"}},{"name":"php goto","scope":"entity.name.goto-label.php,support.other.php","settings":{"foreground":"#61afef"}},{"name":"php logical/bitwise operator","scope":"keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php","settings":{"foreground":"#56b6c2"}},{"name":"php regexp operator","scope":"keyword.operator.regexp.php","settings":{"foreground":"#c678dd"}},{"name":"php comparison","scope":"keyword.operator.comparison.php","settings":{"foreground":"#56b6c2"}},{"name":"php heredoc/nowdoc","scope":"keyword.operator.heredoc.php,keyword.operator.nowdoc.php","settings":{"foreground":"#c678dd"}},{"name":"python function decorator @","scope":"meta.function.decorator.python","settings":{"foreground":"#61afef"}},{"name":"python function support","scope":"support.token.decorator.python,meta.function.decorator.identifier.python","settings":{"foreground":"#56b6c2"}},{"name":"parameter function js/ts","scope":"function.parameter","settings":{"foreground":"#abb2bf"}},{"name":"brace function","scope":"function.brace","settings":{"foreground":"#abb2bf"}},{"name":"parameter function ruby cs","scope":"function.parameter.ruby, function.parameter.cs","settings":{"foreground":"#abb2bf"}},{"name":"constant.language.symbol.ruby","scope":"constant.language.symbol.ruby","settings":{"foreground":"#56b6c2"}},{"name":"constant.language.symbol.hashkey.ruby","scope":"constant.language.symbol.hashkey.ruby","settings":{"foreground":"#56b6c2"}},{"name":"rgb-value","scope":"rgb-value","settings":{"foreground":"#56b6c2"}},{"name":"rgb value","scope":"inline-color-decoration rgb-value","settings":{"foreground":"#d19a66"}},{"name":"rgb value less","scope":"less rgb-value","settings":{"foreground":"#d19a66"}},{"name":"sass selector","scope":"selector.sass","settings":{"foreground":"#e06c75"}},{"name":"ts primitive/builtin types","scope":"support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx","settings":{"foreground":"#e5c07b"}},{"name":"block scope","scope":"block.scope.end,block.scope.begin","settings":{"foreground":"#abb2bf"}},{"name":"cs storage type","scope":"storage.type.cs","settings":{"foreground":"#e5c07b"}},{"name":"cs local variable","scope":"entity.name.variable.local.cs","settings":{"foreground":"#e06c75"}},{"scope":"token.info-token","settings":{"foreground":"#61afef"}},{"scope":"token.warn-token","settings":{"foreground":"#d19a66"}},{"scope":"token.error-token","settings":{"foreground":"#f44747"}},{"scope":"token.debug-token","settings":{"foreground":"#c678dd"}},{"name":"String interpolation","scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#c678dd"}},{"name":"Reset JavaScript string interpolation expression","scope":["meta.template.expression"],"settings":{"foreground":"#abb2bf"}},{"name":"Import module JS","scope":["keyword.operator.module"],"settings":{"foreground":"#c678dd"}},{"name":"js Flowtype","scope":["support.type.type.flowtype"],"settings":{"foreground":"#61afef"}},{"name":"js Flow","scope":["support.type.primitive"],"settings":{"foreground":"#e5c07b"}},{"name":"js class prop","scope":["meta.property.object"],"settings":{"foreground":"#e06c75"}},{"name":"js func parameter","scope":["variable.parameter.function.js"],"settings":{"foreground":"#e06c75"}},{"name":"js template literals begin","scope":["keyword.other.template.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals end","scope":["keyword.other.template.end"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces begin","scope":["keyword.other.substitution.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces end","scope":["keyword.other.substitution.end"],"settings":{"foreground":"#98c379"}},{"name":"js operator.assignment","scope":["keyword.operator.assignment"],"settings":{"foreground":"#56b6c2"}},{"name":"go operator","scope":["keyword.operator.assignment.go"],"settings":{"foreground":"#e5c07b"}},{"name":"go operator","scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"#c678dd"}},{"name":"Go package name","scope":["entity.name.package.go"],"settings":{"foreground":"#e5c07b"}},{"name":"elm prelude","scope":["support.type.prelude.elm"],"settings":{"foreground":"#56b6c2"}},{"name":"elm constant","scope":["support.constant.elm"],"settings":{"foreground":"#d19a66"}},{"name":"template literal","scope":["punctuation.quasi.element"],"settings":{"foreground":"#c678dd"}},{"name":"html/pug (jade) escaped characters and entities","scope":["constant.character.entity"],"settings":{"foreground":"#e06c75"}},{"name":"styling css pseudo-elements/classes to be able to differentiate from classes which are the same colour","scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#56b6c2"}},{"name":"Clojure globals","scope":["entity.global.clojure"],"settings":{"foreground":"#e5c07b"}},{"name":"Clojure symbols","scope":["meta.symbol.clojure"],"settings":{"foreground":"#e06c75"}},{"name":"Clojure constants","scope":["constant.keyword.clojure"],"settings":{"foreground":"#56b6c2"}},{"name":"CoffeeScript Function Argument","scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"#e06c75"}},{"name":"Ini Default Text","scope":["source.ini"],"settings":{"foreground":"#98c379"}},{"name":"Makefile prerequisities","scope":["meta.scope.prerequisites.makefile"],"settings":{"foreground":"#e06c75"}},{"name":"Makefile text colour","scope":["source.makefile"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy import names","scope":["storage.modifier.import.groovy"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy Methods","scope":["meta.method.groovy"],"settings":{"foreground":"#61afef"}},{"name":"Groovy Variables","scope":["meta.definition.variable.name.groovy"],"settings":{"foreground":"#e06c75"}},{"name":"Groovy Inheritance","scope":["meta.definition.class.inherited.classes.groovy"],"settings":{"foreground":"#98c379"}},{"name":"HLSL Semantic","scope":["support.variable.semantic.hlsl"],"settings":{"foreground":"#e5c07b"}},{"name":"HLSL Types","scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"#c678dd"}},{"name":"SQL Variables","scope":["text.variable","text.bracketed"],"settings":{"foreground":"#e06c75"}},{"name":"types","scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 1, keyword","scope":["entity.name.function.xi"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 2, callable","scope":["entity.name.class.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 3, property","scope":["constant.character.character-class.regexp.xi"],"settings":{"foreground":"#e06c75"}},{"name":"heading 4, type, class, interface","scope":["constant.regexp.xi"],"settings":{"foreground":"#c678dd"}},{"name":"heading 5, enums, preprocessor, constant, decorator","scope":["keyword.control.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 6, number","scope":["invalid.xi"],"settings":{"foreground":"#abb2bf"}},{"name":"string","scope":["beginning.punctuation.definition.quote.markdown.xi"],"settings":{"foreground":"#98c379"}},{"name":"comments","scope":["beginning.punctuation.definition.list.markdown.xi"],"settings":{"foreground":"#7f848e"}},{"name":"link","scope":["constant.character.xi"],"settings":{"foreground":"#61afef"}},{"name":"accent","scope":["accent.xi"],"settings":{"foreground":"#61afef"}},{"name":"wikiword","scope":["wikiword.xi"],"settings":{"foreground":"#d19a66"}},{"name":"language operators like \'+\', \'-\' etc","scope":["constant.other.color.rgb-value.xi"],"settings":{"foreground":"#ffffff"}},{"name":"elements to dim","scope":["punctuation.definition.tag.xi"],"settings":{"foreground":"#5c6370"}},{"name":"C++/C#","scope":["entity.name.label.cs","entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"#e5c07b"}},{"name":"Markdown underscore-style headers","scope":["entity.name.label.cs","markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"meta.brace.square","scope":[" meta.brace.square"],"settings":{"foreground":"#abb2bf"}},{"name":"Comments","scope":"comment, punctuation.definition.comment","settings":{"foreground":"#7f848e"}},{"name":"[VSCODE-CUSTOM] Markdown Quote","scope":"markup.quote.markdown","settings":{"foreground":"#5c6370"}},{"name":"punctuation.definition.block.sequence.item.yaml","scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#abb2bf"}},{"scope":["constant.language.symbol.elixir","constant.language.symbol.double-quoted.elixir"],"settings":{"foreground":"#56b6c2"}},{"scope":["entity.name.variable.parameter.cs"],"settings":{"foreground":"#e5c07b"}},{"scope":["entity.name.variable.field.cs"],"settings":{"foreground":"#e06c75"}},{"name":"Deleted","scope":"markup.deleted","settings":{"foreground":"#e06c75"}},{"name":"Inserted","scope":"markup.inserted","settings":{"foreground":"#98c379"}},{"name":"Underline","scope":"markup.underline","settings":{"fontStyle":"underline"}},{"name":"punctuation.section.embedded.begin.php","scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#BE5046"}},{"name":"support.other.namespace.php","scope":["support.other.namespace.php"],"settings":{"foreground":"#abb2bf"}},{"name":"variable.other.object","scope":["variable.other.object"],"settings":{"foreground":"#e5c07b"}},{"name":"variable.other.constant.property","scope":["variable.other.constant.property"],"settings":{"foreground":"#e06c75"}},{"name":"entity.other.inherited-class","scope":["entity.other.inherited-class"],"settings":{"foreground":"#e5c07b"}},{"name":"c variable readwrite","scope":"variable.other.readwrite.c","settings":{"foreground":"#e06c75"}},{"name":"php scope","scope":"entity.name.variable.parameter.php,punctuation.separator.colon.php,constant.other.php","settings":{"foreground":"#abb2bf"}},{"name":"Assembly","scope":["constant.numeric.decimal.asm.x86_64"],"settings":{"foreground":"#c678dd"}},{"scope":["support.other.parenthesis.regexp"],"settings":{"foreground":"#d19a66"}},{"scope":["constant.character.escape"],"settings":{"foreground":"#56b6c2"}},{"scope":["string.regexp"],"settings":{"foreground":"#e06c75"}}],"colors":{"activityBar.background":"#23272e","activityBar.foreground":"#d7dae0","activityBarBadge.background":"#4d78cc","activityBarBadge.foreground":"#f8fafd","badge.background":"#23272e","button.background":"#404754","button.secondaryBackground":"#30333d","button.secondaryForeground":"#c0bdbd","checkbox.border":"#404754","debugToolBar.background":"#1e2227","descriptionForeground":"#abb2bf","diffEditor.insertedTextBackground":"#00809b33","dropdown.background":"#1e2227","dropdown.border":"#1e2227","editor.background":"#23272e","editor.findMatchBackground":"#42557b","editor.findMatchBorder":"#457dff","editor.findMatchHighlightBackground":"#6199ff2f","editor.foreground":"#abb2bf","editorBracketHighlight.foreground1":"#d19a66","editorBracketHighlight.foreground2":"#c678dd","editorBracketHighlight.foreground3":"#56b6c2","editorHoverWidget.highlightForeground":"#61afef","editorInlayHint.foreground":"#abb2bf","editorInlayHint.background":"#2c313c","editor.lineHighlightBackground":"#2c313c","editorLineNumber.activeForeground":"#abb2bf","editorGutter.addedBackground":"#109868","editorGutter.deletedBackground":"#9A353D","editorGutter.modifiedBackground":"#948B60","editorOverviewRuler.addedBackground":"#109868","editorOverviewRuler.deletedBackground":"#9A353D","editorOverviewRuler.modifiedBackground":"#948B60","editor.selectionBackground":"#67769660","editor.selectionHighlightBackground":"#ffffff10","editor.selectionHighlightBorder":"#dddddd","editor.wordHighlightBackground":"#d2e0ff2f","editor.wordHighlightBorder":"#7f848e","editor.wordHighlightStrongBackground":"#abb2bf26","editor.wordHighlightStrongBorder":"#7f848e","editorBracketMatch.background":"#515a6b","editorBracketMatch.border":"#515a6b","editorCursor.background":"#ffffffc9","editorCursor.foreground":"#528bff","editorError.foreground":"#c24038","editorGroup.background":"#181a1f","editorGroup.border":"#181a1f","editorGroupHeader.tabsBackground":"#1e2227","editorHoverWidget.background":"#1e2227","editorHoverWidget.border":"#181a1f","editorIndentGuide.activeBackground":"#c8c8c859","editorIndentGuide.background":"#3b4048","editorLineNumber.foreground":"#495162","editorMarkerNavigation.background":"#1e2227","editorRuler.foreground":"#abb2bf26","editorSuggestWidget.background":"#1e2227","editorSuggestWidget.border":"#181a1f","editorSuggestWidget.selectedBackground":"#2c313a","editorWarning.foreground":"#d19a66","editorWhitespace.foreground":"#ffffff1d","editorWidget.background":"#1e2227","focusBorder":"#3e4452","gitDecoration.ignoredResourceForeground":"#636b78","input.background":"#1d1f23","input.foreground":"#abb2bf","list.activeSelectionBackground":"#2c313a","list.activeSelectionForeground":"#d7dae0","list.focusBackground":"#323842","list.focusForeground":"#f0f0f0","list.highlightForeground":"#ecebeb","list.hoverBackground":"#2c313a","list.hoverForeground":"#abb2bf","list.inactiveSelectionBackground":"#323842","list.inactiveSelectionForeground":"#d7dae0","list.warningForeground":"#d19a66","menu.foreground":"#abb2bf","menu.separatorBackground":"#343a45","minimapGutter.addedBackground":"#109868","minimapGutter.deletedBackground":"#9A353D","minimapGutter.modifiedBackground":"#948B60","panel.border":"#3e4452","panelSectionHeader.background":"#1e2227","peekViewEditor.background":"#1b1d23","peekViewEditor.matchHighlightBackground":"#29244b","peekViewResult.background":"#22262b","scrollbar.shadow":"#23252c","scrollbarSlider.activeBackground":"#747d9180","scrollbarSlider.background":"#4e566660","scrollbarSlider.hoverBackground":"#5a637580","settings.focusedRowBackground":"#23272e","settings.headerForeground":"#fff","sideBar.background":"#1e2227","sideBar.foreground":"#abb2bf","sideBarSectionHeader.background":"#23272e","sideBarSectionHeader.foreground":"#abb2bf","statusBar.background":"#1e2227","statusBar.debuggingBackground":"#cc6633","statusBar.debuggingBorder":"#ff000000","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#9da5b4","statusBar.noFolderBackground":"#1e2227","statusBarItem.remoteBackground":"#4d78cc","statusBarItem.remoteForeground":"#f8fafd","tab.activeBackground":"#23272e","tab.activeBorder":"#b4b4b4","tab.activeForeground":"#dcdcdc","tab.border":"#181a1f","tab.hoverBackground":"#323842","tab.inactiveBackground":"#1e2227","tab.unfocusedHoverBackground":"#323842","terminal.ansiBlack":"#3f4451","terminal.ansiBlue":"#4aa5f0","terminal.ansiBrightBlack":"#4f5666","terminal.ansiBrightBlue":"#4dc4ff","terminal.ansiBrightCyan":"#4cd1e0","terminal.ansiBrightGreen":"#a5e075","terminal.ansiBrightMagenta":"#de73ff","terminal.ansiBrightRed":"#ff616e","terminal.ansiBrightWhite":"#e6e6e6","terminal.ansiBrightYellow":"#f0a45d","terminal.ansiCyan":"#42b3c2","terminal.ansiGreen":"#8cc265","terminal.ansiMagenta":"#c162de","terminal.ansiRed":"#e05561","terminal.ansiWhite":"#d7dae0","terminal.ansiYellow":"#d18f52","terminal.background":"#23272e","terminal.border":"#3e4452","terminal.foreground":"#abb2bf","terminal.selectionBackground":"#abb2bf30","textBlockQuote.background":"#2e3440","textBlockQuote.border":"#4b5362","textLink.foreground":"#61afef","textPreformat.foreground":"#d19a66","titleBar.activeBackground":"#23272e","titleBar.activeForeground":"#9da5b4","titleBar.inactiveBackground":"#1e2227","titleBar.inactiveForeground":"#6b717d","tree.indentGuidesStroke":"#ffffff1d","walkThrough.embeddedEditorBackground":"#2e3440","welcomePage.buttonHoverBackground":"#404754"}}'),bc=[{token:Gl.IDENTIFIER,foreground:"dcdcaa"},{token:Gl.NUMBER,foreground:"b5cea8"},{token:Gl.DATE,foreground:"b5cea8"},{token:Gl.COLOR,foreground:"b5cea8"},{token:Gl.PACKAGE,foreground:"808080"},{token:Gl.PARSER,foreground:"c586c0"},{token:Gl.LANGUAGE_STRUCT,foreground:"c586c0"},{token:Gl.MULTIPLICITY,foreground:"2d796b"},{token:Gl.GENERICS,foreground:"2d796b"},{token:Gl.PROPERTY,foreground:"9cdcfe"},{token:Gl.PARAMETER,foreground:"9cdcfe"},{token:Gl.VARIABLE,foreground:"4fc1ff"},{token:Gl.TYPE,foreground:"3dc9b0"},{token:`${Gl.STRING}.escape`,foreground:"d7ba7d"}];var vc,_c;(_c=vc||(vc={})).DEFAULT_DARK="default-dark",_c.GITHUB_LIGHT="github-light",_c.GITHUB_DARK="github-dark",_c.GITHUB_DARK_DIMMED="github-dark-dimmed",_c.SOLARIZED_DARK="solarized-dark",_c.ONE_DARK_PRO="one-dark-pro",_c.ONE_DARK_PRO_DARKER="one-dark-pro-darker",_c.MATERIAL_DEFAULT="material-default",_c.MATERIAL_DARKER="material-darker",_c.BUILT_IN__VSCODE_LIGHT="vs",_c.BUILT_IN__VSCODE_DARK="vs-dark",_c.BUILT_IN__VSCODE_HC_BLACK="hc-black",_c.BUILT_IN__VSCODE_HC_LIGHT="hc-light";const Tc={base:"vs-dark",inherit:!0,colors:{},rules:[...bc,{token:"string.sql",foreground:"ce9178"},{token:"white.sql",foreground:"d4d4d4"},{token:"identifier.sql",foreground:"d4d4d4"},{token:"operator.sql",foreground:"d4d4d4"}]},Ac=uc(dc,vc.BUILT_IN__VSCODE_DARK,{},[]),Sc=uc(pc,vc.BUILT_IN__VSCODE_DARK,{},[]),Nc=uc(mc,vc.BUILT_IN__VSCODE_LIGHT,{},[]),yc=uc(gc,vc.BUILT_IN__VSCODE_DARK,{},[]),xc=uc(hc,vc.BUILT_IN__VSCODE_DARK,{},[]),Ic=uc(fc,vc.BUILT_IN__VSCODE_DARK,{},[]),wc=uc(Ec,vc.BUILT_IN__VSCODE_DARK,{},[]),kc=uc(Cc,vc.BUILT_IN__VSCODE_DARK,{},[]),Rc="dummy_problem_marker_owner",Oc=(e,t,n)=>{Tr.editor.setModelMarkers(e,n??Rc,t.map((e=>({startLineNumber:e.startLineNumber,startColumn:e.startColumn,endLineNumber:e.endLineNumber,endColumn:e.endColumn+1,message:""===e.message?"(no error message)":e.message,severity:Tr.MarkerSeverity.Error}))))};var Lc;!function(e){e.TEXT="plaintext",e.PURE="pure",e.JSON="json",e.JAVA="java",e.MARKDOWN="markdown",e.SQL="sql",e.XML="xml",e.YAML="yaml",e.GRAPHQL="graphql"}(Lc||(Lc={}));var Fc=n(42787),Pc=n(41289),Bc=n(92824);function Dc(){const[e,t]=(0,Lt.useState)(null);return[e=>t(e.currentTarget),()=>t(null),{anchorEl:e,onClose:()=>t(null)},Boolean(e)]}function jc(e){const{menuProps:t,children:n,onClosed:o,onClose:r,anchorEl:i}=e,[a,s]=(0,Lt.useState)(!1);return(0,Lt.useEffect)((()=>{a&&!i&&o?.()}),[i,a,o]),i?(0,E.jsx)(Sn.A,{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},anchorEl:i,open:Boolean(i),slotProps:{root:{slotProps:{backdrop:{invisible:!0}}}},elevation:1,marginThreshold:0,transitionDuration:0,TransitionProps:{onEnter:()=>s(!0)},onClose:r,...t,children:n}):null}function Mc(e){return(0,E.jsx)(Bc.A,{...e,style:{cursor:"default"}})}var Uc=n(59389),Gc=n(20007);const Vc=(0,Lt.createContext)(void 0),Hc=Vc.Provider,Wc=()=>P((0,Lt.useContext)(Vc),"Can't find DataCube state in context");function $c(){return(0,E.jsx)("div",{className:"text-2xs ml-1 flex h-2.5 flex-shrink-0 select-none items-center rounded-md bg-sky-500 px-1 font-semibold leading-[10px] text-white",title:"Work In Progress",children:"WIP"})}function zc(){return(0,E.jsx)("div",{className:"text-2xs ml-1 select-none rounded-md bg-amber-500 px-1 py-0.5 font-semibold text-white",title:"Advanced: Becareful when using this feature!",children:"ADV"})}const Yc=(0,Lt.forwardRef)((function(e,t){const{className:n,compact:o,...r}=e;return(0,E.jsx)("button",{ref:t,...r,className:jn("flex h-6 min-w-20 items-center justify-center border border-neutral-400 bg-neutral-300 px-2.5 hover:brightness-95 disabled:cursor-not-allowed disabled:border-neutral-300 disabled:text-neutral-400 disabled:hover:brightness-100",{"h-5 text-sm":Boolean(o)},n)})})),Xc=(0,Lt.forwardRef)((function(e,t){const{min:n,max:o,step:r,value:i,setValue:a,isValid:s,isDecimal:l,defaultValue:c,disabled:u,className:d,...p}=e,[g,m]=(0,Lt.useState)(i??""),h=(0,Lt.useRef)(null),f=(0,Fc.A)(h,t);return(0,Lt.useEffect)((()=>{m(i??"")}),[i]),(0,E.jsx)("input",{className:jn("h-5 flex-shrink-0 border border-neutral-400 px-1.5 text-sm disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",d),ref:f,...p,inputMode:"numeric",type:"number",min:n,max:o,step:r,value:g,disabled:Boolean(u),onKeyDown:e=>{if("Escape"===e.code)h.current?.select();else if("ArrowUp"===e.code){if(e.preventDefault(),void 0!==i&&void 0!==r){const e=i+r;if(void 0!==n&&e<n||void 0!==o&&e>o)return;m(e.toString()),a(e)}}else if("ArrowDown"===e.code&&(e.preventDefault(),void 0!==i&&void 0!==r)){const e=i-r;if(void 0!==n&&e<n||void 0!==o&&e>o)return;m(e.toString()),a(e)}},onChange:e=>{const t=e.target.value;m(t);const r=l?Number(t):parseInt(t,10);isNaN(r)||U(t)&&!t||(void 0!==s?!s(r):void 0!==n&&r<n||void 0!==o&&r>o)||a(r)},onBlur:()=>{const e=l?Number(g):parseInt(g.toString(),10);isNaN(e)||U(g)&&!g||(void 0!==s?!s(e):void 0!==n&&e<n||void 0!==o&&e>o)?(a(c),m(c??"")):m(i??"")}})})),Kc=(0,Lt.forwardRef)((function(e,t){const{className:n,...o}=e,r=(0,Lt.useRef)(null),i=(0,Fc.A)(r,t);return(0,E.jsx)("input",{ref:i,className:jn("h-5 flex-shrink-0 border border-neutral-400 px-1.5 text-sm disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",n),onKeyDown:e=>{"Escape"===e.code&&r.current?.select()},...o})}));function qc(e){const{label:t,className:n,onChange:o,disabled:r,...i}=e;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Pc.A,{icon:(0,E.jsx)(dr.Checkbox,{}),checkedIcon:(0,E.jsx)(dr.CheckboxSelected,{}),disableRipple:!0,classes:{root:jn("p-0 text-neutral-600 [&_*]:stroke-[1.5px] -ml-[1px]",n),checked:"data-cube-editor-checkbox--checked",disabled:"data-cube-editor-checkbox--disabled"},onChange:o,disabled:r,...i}),Boolean(t)&&(0,E.jsx)("button",{className:"flex-shrink-0 pl-1 text-sm disabled:text-neutral-300",onClick:o,disabled:r,tabIndex:-1,children:t})]})}const Jc=(0,Lt.forwardRef)((function(e,t){const{children:n,className:o,open:r,showAsPlaceholder:i,...a}=e;return(0,E.jsxs)("button",{ref:t,className:jn("group flex h-5 flex-shrink-0 items-center justify-between border border-neutral-400 bg-white pl-1.5 text-sm disabled:select-none disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",{"border-sky-600":Boolean(r),"bg-sky-100":Boolean(r),"text-neutral-400":Boolean(i)},o),...a,children:[(0,E.jsx)("div",{className:"w-[calc(100%_-_12px)] overflow-hidden overflow-ellipsis whitespace-nowrap text-left",children:e.children}),(0,E.jsx)("div",{className:"flex h-full w-3 items-center justify-center text-neutral-500 group-disabled:text-neutral-400",children:(0,E.jsx)(dr.CaretDown,{})})]})}));function Qc(e){const{className:t,...n}=e;return(0,E.jsx)(jc,{...n,menuProps:{classes:{paper:"rounded-none mt-[1px]",list:jn("p-0 rounded-none border border-neutral-400 bg-white max-h-40 overflow-y-auto",t)}}})}function Zc(e){const{className:t,...n}=e;return(0,E.jsx)(Mc,{className:jn("flex h-5 w-full items-center px-1.5 text-sm hover:bg-neutral-100 focus:bg-sky-600 focus:text-white",t),...n})}function eu(){return(0,E.jsx)("div",{className:"my-0.5 h-[1px] w-full bg-neutral-200"})}function tu(e){const{onChange:t,onClose:n,defaultColor:o}=e,[r,i]=(0,Lt.useState)(e.color),a=()=>{t(0===(0,Uc.A)(r).alpha?Qr.transparent:r),n()};return(0,E.jsxs)("div",{className:"data-cube-color-picker rounded-none border border-neutral-400 bg-white",children:[(0,E.jsx)("div",{className:"p-2",children:(0,E.jsx)(Gc.dp,{color:r,onChange:i})}),(0,E.jsx)("div",{className:"flex justify-center px-2",children:["slate","neutral","red","orange","amber","yellow","lime","green","emerald","teal","sky","blue","indigo","violet","purple","fuchsia","pink","rose"].map((e=>(0,E.jsx)("div",{className:"mr-0.5 flex flex-col border-[0.5px] border-neutral-300 last:mr-0",children:[50,100,200,300,400,500,600,700,800,900,950].map((t=>(0,E.jsx)("button",{className:"h-3 w-3 flex-shrink-0",style:{background:Qr[e][t]},onClick:()=>{i(Qr[e][t])},onDoubleClick:()=>{i(Qr[e][t]),a()}},`${e}-${t}`)))},e)))}),(0,E.jsx)("div",{className:"flex justify-center px-2 pb-1 pt-0.5",children:(0,E.jsx)("div",{className:"flex",children:[Qr.transparent,"#000000","#aaaaaa","#dddddd","#ffffff","#ff4136","#ff851b","#ffdc00","#01ff70","#2ecc40","#3d9970","#39cccc","#7fdbff","#0074d9","#001f3f","#b10dc9","#f012be","#85144b"].map((e=>(0,E.jsx)("div",{className:jn("mr-0.5 border-[0.5px] border-neutral-300 last:mr-0",{"data-cube-color-picker--transparent border-neutral-400":e===Qr.transparent}),children:(0,E.jsx)("button",{className:"flex h-3 w-3 flex-shrink-0",style:{background:e},onClick:()=>{i(e)},onDoubleClick:()=>{i(e),a()}})},e)))})}),(0,E.jsx)("div",{className:"h-[1px] w-full bg-neutral-200"}),(0,E.jsxs)("div",{className:"flex h-6 items-center justify-between p-1",children:[(0,E.jsxs)("div",{className:"flex",children:[(0,E.jsx)("div",{className:"h-4 w-4 flex-shrink-0 rounded-sm border-[0.5px] border-neutral-300",style:{background:r}}),(0,E.jsx)(Gc.HC,{className:"ml-0.5 h-4 w-14 border border-neutral-400 px-1 text-sm",color:r,autoFocus:!0,tabIndex:0,onChange:i,prefix:"#",alpha:!0})]}),(0,E.jsxs)("div",{className:"flex",children:[(0,E.jsx)(Yc,{className:"h-4 w-9",onClick:()=>{n()},children:"Cancel"}),(0,E.jsx)(Yc,{className:"ml-1 h-4 w-9 text-xs",disabled:void 0===o,onClick:()=>{void 0!==o&&i(o)},children:"Reset"}),(0,E.jsx)(Yc,{className:"ml-1 h-4 w-9",onClick:()=>{a()},children:"OK"})]})]})]})}function nu(e){const{color:t,onChange:n,className:o,disabled:r,defaultColor:i}=e,[a,s]=(0,Lt.useState)(null);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("button",{className:jn("group h-5 w-10 border border-neutral-300 p-[1px] disabled:border-neutral-200",{"data-cube-color-picker--disabled":Boolean(r),"data-cube-color-picker--transparent":!r&&t===Qr.transparent},o),onClick:e=>{s(e.currentTarget)},disabled:r,children:(0,E.jsx)("div",{className:"h-full w-full group-disabled:hidden",style:{background:t}})}),Boolean(a)&&(0,E.jsx)(zn,{open:Boolean(a),anchorEl:a,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},onClose:()=>s(null),children:(0,E.jsx)(tu,{color:t,onChange:n,onClose:()=>s(null),defaultColor:i})})]})}const ou=({documentationKey:e,title:t,className:n})=>{const o=Wc(),r=o.documentationService,i=o.documentationService.getEntry(e);return i&&(i.url||r.shouldDisplayDocumentationEntry(i))?(0,E.jsx)("div",{onClick:t=>{t.preventDefault(),t.stopPropagation();const n=r.getEntry(e);n&&(r.shouldDisplayDocumentationEntry(n)?(o.documentationService.setCurrentEntry(n),o.documentationService.display.open()):n.url&&o.navigationService.openLink(n.url))},title:t??i.text??"Click to see documentation",className:jn("cursor-pointer text-xl text-sky-500",n),children:(0,E.jsx)(dr.DocumentationHint,{})}):null};function ru(e){const{message:t,type:n,text:o,actions:r=[],onClose:i}=e;return(0,E.jsxs)("div",{className:"h-full w-full",children:[(0,E.jsxs)("div",{className:jn("flex w-full overflow-auto p-6",{"h-[calc(100%_-_40px)]":0!==r.length,"h-full":!r.length}),children:[(0,E.jsxs)("div",{className:"mr-3",children:[n===su.ERROR&&(0,E.jsx)(dr.AlertError,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-red-500"}),n===su.INFO&&(0,E.jsx)(dr.AlertInfo,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-sky-500"}),n===su.SUCCESS&&(0,E.jsx)(dr.AlertSuccess,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-green-500"}),n===su.WARNING&&(0,E.jsx)(dr.AlertWarning,{className:"flex-shrink-0 stroke-[0.3px] text-[40px] text-amber-500"})]}),(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"whitespace-break-spaces text-lg",children:t}),(0,E.jsx)("div",{className:"mt-1 whitespace-break-spaces text-neutral-500",children:o})]})]}),0!==r.length&&(0,E.jsx)("div",{className:"flex h-10 items-center justify-end border border-t-neutral-300 px-2",children:r.map(((e,t)=>(0,E.jsx)(Yc,{className:"ml-2 first-of-type:ml-0",onClick:()=>{e.handler(),i?.()},autoFocus:0===t,children:e.label},t)))})]})}const iu="`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?";function au(e){const{editorModel:t,error:n,message:o,text:r}=e,i=(0,Lt.useRef)(null),[a,s]=(0,Lt.useState)();return(0,Lt.useEffect)((()=>{if(!a&&i.current){const e=i.current,n=document.getElementById(Ar),o=Tr.editor.create(e,{contextmenu:!1,copyWithSyntaxHighlighting:!1,fontSize:14,fontFamily:"Roboto Mono",fontLigatures:!0,fixedOverflowWidgets:!0,detectIndentation:!1,tabSize:2,"bracketPairColorization.enabled":!1,automaticLayout:!0,fontSize:12,language:Lc.PURE,theme:vc.GITHUB_LIGHT,wordSeparators:iu,fixedOverflowWidgets:!0,...L(n)?{overflowWidgetsDomNode:n}:{},readOnly:!0,renderValidationDecorations:"on"});o.setModel(t),s(o)}}),[a,t]),(0,Lt.useEffect)((()=>{n.sourceInformation&&(Oc(t,[{message:n.message,startLineNumber:n.sourceInformation.startLine,startColumn:n.sourceInformation.startColumn,endLineNumber:n.sourceInformation.endLine,endColumn:n.sourceInformation.endColumn}]),a&&((e,t)=>{e.hasTextFocus()||e.focus(),e.revealPositionInCenter(t,0),e.setPosition(t)})(a,{lineNumber:n.sourceInformation.startLine,column:n.sourceInformation.startColumn}))}),[a,t,n]),(0,Lt.useEffect)((()=>()=>{a&&a.dispose()}),[a]),(0,E.jsxs)("div",{className:"h-full w-full overflow-auto",children:[(0,E.jsxs)("div",{className:"flex w-full p-6 pb-2.5",children:[(0,E.jsx)("div",{className:"mr-3",children:(0,E.jsx)(dr.AlertError,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-red-500"})}),(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"whitespace-break-spaces text-lg",children:o}),(0,E.jsx)("div",{className:"mt-1 whitespace-break-spaces text-neutral-500",children:r})]})]}),(0,E.jsx)("div",{className:"h-60 justify-center border px-2",children:(0,E.jsx)("div",{className:"h-full w-full p-2 pt-1",children:(0,E.jsx)("div",{className:"relative h-full w-full border border-red-500",children:(0,E.jsx)("div",{className:"absolute left-0 top-0 h-full w-full overflow-hidden",ref:i})})})})]})}var su,lu;!function(e){e.ERROR="ERROR",e.INFO="INFO",e.SUCCESS="SUCCESS",e.WARNING="WARNING"}(su||(su={}));class cu{_logService;_layoutService;constructor(e,t){this._logService=e,this._layoutService=t}alert(e){const{message:t,type:n,text:o,actions:r,windowTitle:i,windowConfig:a}=e,s=new gr(new pr(i??"",(()=>(0,E.jsx)(ru,{type:n,message:t,text:o,actions:r,onClose:()=>this._layoutService.closeWindow(s)}))));s.configuration.window=a??fr,this._layoutService.newWindow(s)}alertError(e,t){const{message:n,text:o,actions:r,windowTitle:i,windowConfig:a}=t,s=new gr(new pr(i??"Error",(()=>(0,E.jsx)(ru,{type:su.ERROR,message:n,text:o,actions:r}))));s.configuration.window=a??fr,this._layoutService.newWindow(s)}alertUnhandledError(e){this._logService.logUnhandledError(e),this.alertError(e,{message:e.message})}alertCodeCheckError(e,t,n,o){const{message:r,text:a,windowTitle:s,windowConfig:l}=o;if(e.sourceInformation){e.sourceInformation.startColumn-=1===e.sourceInformation.startLine?n.length:0,e.sourceInformation.endColumn-=1===e.sourceInformation.endLine?n.length:0;const o=Tr.editor.createModel(t,Lc.PURE,Tr.Uri.file(`/${(0,i.A)()}.pure`)),c=o.getFullModelRange();(e.sourceInformation.startLine<1||1===e.sourceInformation.startLine&&e.sourceInformation.startColumn<1||e.sourceInformation.endLine>c.endLineNumber||e.sourceInformation.endLine===c.endLineNumber&&e.sourceInformation.endColumn>c.endColumn)&&(e.sourceInformation.startColumn=c.startColumn,e.sourceInformation.startLine=c.startLineNumber,e.sourceInformation.endColumn=c.endColumn,e.sourceInformation.endLine=c.endLineNumber);const u=new gr(new pr(s??"Error",(()=>(0,E.jsx)(au,{editorModel:o,error:e,message:r,text:a}))));u.configuration.window=l??{width:500,height:400,minWidth:300,minHeight:300,center:!0},this._layoutService.newWindow(u)}}}function uu(){const e=Cl();return Il(xu,vl([e],[e]),vl([e],[Al(Zr.COUNT,[e])]))}function du(e){return(t,n,o,r,i)=>{const a=function(e,t){return n=>{const o=t[n];o&&(Array.isArray(o)?o.forEach((t=>e.splice(e.indexOf(t),1))):e.splice(e.indexOf(o),1),t[n]=void 0)}}(n,o),s=t.data;if(o.groupBy){const l=P(s.groupBy);e.groupKeys.length&&n.splice(n.indexOf(o.groupBy),0,Al(Zr.FILTER,[vl([Cl()],[jl({conditions:e.groupKeys.map(((e,t)=>{const n=P(l.columns[t]);if(O(e)||e===Au)return{...n,operator:ci.IS_NULL,value:{type:ai.VOID}};const o={...n,operator:ci.EQUAL};switch(n.type){case Hr.BOOLEAN:return{...o,value:{type:Hr.BOOLEAN,value:"true"===e}};case Hr.INTEGER:return{...o,value:{type:n.type,value:parseInt(e,10)}};case Hr.NUMBER:case Hr.DECIMAL:case Hr.FLOAT:return{...o,value:{type:n.type,value:parseFloat(e)}};case Hr.STRING:case Hr.DATE:case Hr.DATETIME:case Hr.STRICTDATE:case Hr.STRICTTIME:default:return{...o,value:{type:n.type,value:e}}}})),groupOperator:ui.AND},i.filterOperations)])]));const c=[];if(function(e,t){if(e.pivot&&e.pivotCast){Xl(e.pivot,1).colSpecs.push(uu());const n=D(D(D(e.pivotCast.parameters[0],Qa).genericType.typeArguments[0],Za).rawType,ns),o=n.columns.map((e=>Il(e.name,void 0,void 0,os(e.genericType))));(0,Te.A)(o.filter((e=>Gi(e.name))).map((e=>e.name.substring(0,e.name.lastIndexOf(mi))))).map((e=>e+mi+xu)).forEach((e=>{n.columns.push(ss(e,Hr.INTEGER)),t.push(Il(e,void 0,void 0,Hr.INTEGER))}))}}(o,c),e.groupKeys.length<l.columns.length){const a=n.indexOf(o.groupBy),s=l.columns.slice(0,e.groupKeys.length+1),u=Al(Zr.GROUP_BY,[Ol(s.map((e=>Il(e.name)))),Ol([...Dl(s,t,r,i.aggregateOperations),...c.length?c.map((e=>function(e){const t=Cl();return Il(e,vl([t],[bl(e)]),vl([t],[Al(Zr.SUM,[t])]))}(e.name))):[uu()]])]);n[a]=u,o.groupBy=u,P(o.groupBySort).parameters[0]=Sl(s.map((e=>Al(r.treeColumnSortDirection===di.ASCENDING?Zr.ASCENDING:Zr.DESCENDING,[Rl(e.name)]))))}else a("groupBy"),a("groupBySort")}}}!function(e){e.EDITOR__MAX_HISTORY_STACK_SIZE="dataCube.editor.maxHistoryStackSize",e.DEBUGGER__ENABLE_DEBUG_MODE="dataCube.debugger.enableDebugMode",e.DEBUGGER__USE_DEV_CLIENT_PROTOCOL_VERSION="dataCube.debugger.useDevClientProtocolVersion",e.DEBUGGER__ACTION__RELOAD="dataCube.debugger.action.reload",e.GRID_CLIENT__ROW_BUFFER="dataCube.grid.rowBuffer",e.GRID_CLIENT__PURGE_CLOSED_ROW_NODES="dataCube.grid.purgeClosedRowNodes",e.GRID_CLIENT__SHOW_AUTO_ENABLE_CACHE_PERFORMANCE_WARNING="dataCube.grid.showAutoEnableCachePerformanceWarning",e.GRID_CLIENT__SHOW_CACHE_PERFORMANCE_WARNING="dataCube.grid.showCachePerformanceWarning",e.GRID_CLIENT__SUPPRESS_LARGE_DATASET_WARNING="dataCube.grid.suppressLargeDatasetWarning",e.GRID_CLIENT__ACTION__RETRY_FAILED_DATA_FETCHES="dataCube.grid.action.retryFailedDataFetches"}(lu||(lu={}));var pu,gu,mu=n(19994);!function(e){e.CSV="CSV",e.EXCEL="EXCEL",e.PLAIN_TEXT="PLAIN_TEXT",e.HTML="HTML",e.PDF="PDF"}(pu||(pu={})),function(e){e.ROOT="data-cube-grid.ag-theme-quartz",e.HIGHLIGHT_ROW="data-cube-grid__utility--highlight-row",e.SHOW_VERTICAL_GRID_LINES="data-cube-grid__utility--show-vertical-grid-lines",e.SHOW_HORIZONTAL_GRID_LINES="data-cube-grid__utility--show-horizontal-grid-lines",e.BLUR="data-cube-grid__utility--blur",e.FONT_FAMILY_PREFIX="data-cube-grid__utility--font-family-",e.FONT_SIZE_PREFIX="data-cube-grid__utility--font-size-",e.FONT_BOLD="data-cube-grid__utility--font-style-bold",e.FONT_ITALIC="data-cube-grid__utility--font-style-italic",e.FONT_UNDERLINE_PREFIX="data-cube-grid__utility--font-style-underline-",e.FONT_STRIKETHROUGH="data-cube-grid__utility--font-style-strikethrough",e.FONT_CASE_PREFIX="data-cube-grid__utility--font-style-case-",e.TEXT_ALIGN_PREFIX="data-cube-grid__utility--text-align-",e.TEXT_COLOR_PREFIX="data-cube-grid__utility--text-color-",e.BACKGROUND_COLOR_PREFIX="data-cube-grid__utility--background-color-",e.PIVOT_COLUMN_GROUP="data-cube-grid__utility--pivot-column-group",e.PIVOT_COLUMN_GROUP_PREFIX="data-cube-grid__utility--pivot-column-group-"}(gu||(gu={}));const hu=e=>`${gu.FONT_FAMILY_PREFIX}${e.replaceAll(" ","-")}`,fu=e=>`${gu.FONT_SIZE_PREFIX}${e}`,Eu=e=>`${gu.FONT_UNDERLINE_PREFIX}${e??"none"}`,Cu=e=>`${gu.FONT_CASE_PREFIX}${e??"none"}`,bu=e=>`${gu.TEXT_ALIGN_PREFIX}${e}`,vu=(e,t)=>`${gu.TEXT_COLOR_PREFIX}${t}-${e.substring(1)}`,_u=(e,t)=>`${gu.BACKGROUND_COLOR_PREFIX}${t}-${e.substring(1)}`,Tu=1e3,Au="__MISSING",Su="ag-Grid-AutoColumn",Nu="INTERNAL__rootAggregation",yu="INTERNAL__dataFetchManualTrigger",xu="count";var Iu,wu;function ku(e){const t=[];return e.forEachNode((e=>{e.data&&t.push(e.data)})),t}function Ru(e){const t=[];return e.forEachNodeAfterFilter((e=>{e.data&&t.push(e.data)})),t}function Ou(e,t){return Fr(T({configuration:{showRootAggregation:t.showRootAggregation,pivotStatisticColumnPlacement:t.pivotStatisticColumnPlacement,treeColumnSortDirection:t.treeColumnSortDirection,columns:t.columns.map((e=>({name:e.name,type:e.type,kind:e.kind,aggregateOperator:e.aggregateOperator,aggregationParameters:e.aggregationParameters,excludedFromPivot:e.excludedFromPivot,pivotSortDirection:e.pivotSortDirection,pivotStatisticColumnFunction:e.pivotStatisticColumnFunction}))).sort($i)},leafExtendedColumns:e.data.leafExtendedColumns,filter:e.data.filter,selectColumns:e.data.selectColumns.toSorted($i),groupExtendedColumns:e.data.groupExtendedColumns,limit:e.data.limit}))}!function(e){e.LEFT="left",e.RIGHT="right"}(Iu||(Iu={})),function(e){e.ASCENDING="asc",e.DESCENDING="desc"}(wu||(wu={}));class Lu{_view;_grid;rowCount=void 0;constructor(e,t){(0,xe.Gn)(this,{rowCount:xe.sH}),this._grid=e,this._view=t}async fetchRows(e){const t=this._view.taskService.newTask("Fetching data..."),n=P(this._grid.getLatestSnapshot()),o={startRow:e.request.startRow,endRow:e.request.endRow,rowGroupColumns:e.request.rowGroupCols.map((e=>e.id)),groupKeys:e.request.groupKeys.map((e=>e)),pivotColumns:e.request.pivotCols.map((e=>e.id)),sortColumns:e.request.sortModel.map((e=>({name:e.colId,direction:e.sort})))},r=0===o.groupKeys.length;let i=n;if(r){if(i=function(e,t){const n=t.clone(),o=Xi.serialization.fromJson(n.data.configuration),r=e.rowGroupColumns.filter((e=>e!==Nu));return n.data.selectColumns=(0,tt.A)([...n.data.selectColumns,...e.pivotColumns.map((e=>cc(e,o))),...r.map((e=>cc(e,o)))],(e=>e.name)).map(Wi),n.data.pivot=e.pivotColumns.length?{columns:e.pivotColumns.map((e=>Wi(cc(e,o)))),castColumns:t.data.pivot?.castColumns??[]}:void 0,n.data.groupBy=r.length?{columns:r.map((e=>Wi(cc(e,o))))}:void 0,n.data.sortColumns=e.sortColumns.filter((e=>![Su,Nu].includes(e.name))).map((e=>({name:e.name,type:cc(Gi(e.name)?Vi(e.name):e.name,o).type,direction:e.direction===wu.ASCENDING?di.ASCENDING:di.DESCENDING}))),o.pivotLayout.expandedPaths=Zl(t.data.groupBy?.columns??[],n.data.groupBy?.columns??[],o.pivotLayout.expandedPaths),!e.rowGroupColumns.includes(Nu)&&o.showRootAggregation&&(o.showRootAggregation=!1),n.data.configuration=o.serialize(),n}(o,n),(!this._grid.isPaginationEnabled||0===o.startRow)&&i.data.pivot)try{const e=await async function(e,t){if(!e.data.pivot)throw new x("Can't build cast columns collector query when no pivot is specified");const n=e.clone();P(n.data.pivot).castColumns=[],n.data.groupBy=void 0,n.data.groupExtendedColumns=[],n.data.sortColumns=[],n.data.limit=0;const o=Ml(n,t.source,t.engine);return(await t.engine.executeQuery(vl([],[o]),t.source,{debug:t.settingService.getBooleanValue(lu.DEBUGGER__ENABLE_DEBUG_MODE),clientVersion:t.settingService.getBooleanValue(lu.DEBUGGER__USE_DEV_CLIENT_PROTOCOL_VERSION)?Ul.VX_X_X:void 0})).result.builder.columns.map((e=>{const t=e.type;return{name:e.name,type:t===Hr.DECIMAL?Hr.FLOAT:t}}))}(i,this._view);i.data.pivot.castColumns=e,i.data.sortColumns=i.data.sortColumns.filter((t=>Hi([...e,...i.data.groupExtendedColumns],t.name)))}catch(n){return w(n),this._view.alertService.alertError(n,{message:`Query Validation Failure: Can't retrieve pivot results column metadata. ${n.message}`}),e.fail(),void this._view.taskService.endTask(t)}i.finalize(),i.hashCode!==n.hashCode&&(i.markAsPatchChange(),await this._grid.applySnapshot(i,n),this._grid.publishSnapshot(i))}const a=function(e,t,n,o,r){const i=t.clone();return Xi.serialization.fromJson(i.data.configuration).showRootAggregation&&(i.data.groupBy={columns:[{name:Nu,type:Hr.STRING},...i.data.groupBy?.columns??[]]}),Ml(i,n,o,{postProcessor:du(e),rootAggregation:{columnName:Nu},pagination:r&&void 0!==e.startRow&&void 0!==e.endRow?{start:e.startRow,end:e.endRow}:void 0})}(o,i,this._view.source,this._view.engine,this._grid.isPaginationEnabled);let s,l;try{s=await this._view.engine.executeQuery(vl([],[a]),this._view.source,{debug:this._view.settingService.getBooleanValue(lu.DEBUGGER__ENABLE_DEBUG_MODE),clientVersion:this._view.settingService.getBooleanValue(lu.DEBUGGER__USE_DEV_CLIENT_PROTOCOL_VERSION)?Ul.VX_X_X:void 0}),l=function(e,t){return e.rows.map(((n,o)=>{const r={},i=e.columns;return n.values.forEach(((n,o)=>{r[i[o]]=V(n)?String(n):L(n)?n:Au,t.data.pivot&&t.data.groupBy&&(r[xu]=Number((0,mu.czq)(e.columns.filter((e=>Gi(e)&&e.endsWith(xu))).map((e=>r[e]??0))).toString()))})),r}))}(s.result.result,i)}catch(n){return w(n),this._view.alertService.alertError(n,{message:`Data Fetch Failure: ${n.message}`}),this._view.taskService.endTask(t),void e.fail()}this._view.settingService.getBooleanValue(lu.DEBUGGER__ENABLE_DEBUG_MODE)&&this._view.engine.debugProcess("Execution",["Query",s.executedQuery],["Stats",`${l.length} rows, ${s.result.result.columns.length} columns`],["SQL",s.executedSQL],["SQL Execution Time",s.executionTime]),this._grid.isPaginationEnabled?(e.success({rowData:l}),r&&(0,xe.h5)((()=>{this.rowCount=(o.startRow??0)+l.length})),r&&0===o.startRow&&0===l.length?this._grid.client.showNoRowsOverlay():this._grid.client.hideOverlay()):(l.length>Tu&&(this._view.settingService.getBooleanValue(lu.GRID_CLIENT__SUPPRESS_LARGE_DATASET_WARNING)||this._view.alertService.alert({message:"Large dataset (>1000 rows) detected!",text:"Overall app performance can be impacted by large dataset due to longer query execution time and increased memory usage. At its limit, the engine can crash!\nTo boost performance, consider enabling pagination while working with large dataset.",type:su.WARNING,actions:[{label:"Enable Pagination",handler:()=>{this._grid.setPaginationEnabled(!0)}},{label:"Dismiss Warning",handler:()=>{this._view.settingService.updateValue(this._view.dataCube.api,lu.GRID_CLIENT__SUPPRESS_LARGE_DATASET_WARNING,!0)}}],windowConfig:{...fr,width:600,minWidth:300,minHeight:150}}),e.api.ensureIndexVisible(e.parentNode.rowIndex??0,"top")),e.success({rowData:l,rowCount:l.length}),r&&(0,xe.h5)((()=>{this.rowCount=l.length})),r&&0===l.length?this._grid.client.showNoRowsOverlay():this._grid.client.hideOverlay()),setTimeout((()=>{this._grid.client.autoSizeAllColumns()}),0),this._view.taskService.endTask(t)}getRows(e){this.fetchRows(e).catch((e=>{w(e),this._view.logService.logIllegalStateError("Error ocurred while fetching data for grid should have been handled gracefully",e)}))}}function Fu(e,t){switch(t){case ei.PERCENT:return{value:100*e,unit:"%"};case ei.BASIS_POINT:return{value:1e4*e,unit:"bp"};case ei.THOUSANDS:return{value:e/1e3,unit:"k"};case ei.MILLIONS:return{value:e/1e6,unit:"m"};case ei.BILLIONS:return{value:e/1e9,unit:"b"};case ei.TRILLIONS:return{value:e/1e12,unit:"t"};case ei.AUTO:return Fu(e,e>=1e12?ei.TRILLIONS:e>=1e9?ei.BILLIONS:e>=1e6?ei.MILLIONS:e>=1e3?ei.THOUSANDS:void 0);default:return{value:e,unit:void 0}}}function Pu(e){return e.node.failedLoad?(0,E.jsx)("span",{className:"inline-flex items-center",children:"#ERR"}):(0,E.jsxs)("span",{className:"inline-flex items-center",children:[(0,E.jsx)(dr.Loader,{className:"mr-1 animate-spin stroke-2"}),"Loading"]})}function Bu(e){const{column:t}=e;return ji(t.type)===gi.TEXT&&t.displayAsLink?function(e){var n;if(n=e.value,!Boolean(k((()=>new URL(n)))))return e.value;const o=e.value,r=ue(t.linkLabelParameter??vi,ce(o,!0));return(0,E.jsx)("a",{href:o,target:"_blank",rel:"noreferrer",className:"text-blue-600 underline",children:r??o})}:null}function Du(e){const{name:t,snapshot:n,column:o,configuration:r}=e,i=ji(o.type),a=o.fontFamily??r.fontFamily,s=o.fontSize??r.fontSize,l=o.fontBold??r.fontBold,c=o.fontItalic??r.fontItalic,u=o.fontStrikethrough??r.fontStrikethrough,d=o.fontUnderline??r.fontUnderline,p=o.fontCase??r.fontCase,g=o.textAlign??r.textAlign,m=o.normalForegroundColor??r.normalForegroundColor,h=o.normalBackgroundColor??r.normalBackgroundColor,f=o.negativeForegroundColor??r.negativeForegroundColor,E=o.negativeBackgroundColor??r.negativeBackgroundColor,C=o.zeroForegroundColor??r.zeroForegroundColor,b=o.zeroBackgroundColor??r.zeroBackgroundColor,v=o.errorForegroundColor??r.errorForegroundColor,_=o.errorBackgroundColor??r.errorBackgroundColor;return{cellDataType:!1,hide:o.hideFromView||!o.isSelected||Boolean(n.data.pivot&&!Hi(n.data.pivot.castColumns,t))&&!Hi(n.data.groupExtendedColumns,t),lockVisible:!o.isSelected||Boolean(n.data.pivot&&!Hi(n.data.pivot.castColumns,t))&&!Hi(n.data.groupExtendedColumns,t),pinned:void 0!==o.pinned?o.pinned===pi.RIGHT?Iu.RIGHT:Iu.LEFT:null,headerClass:Gi(t)?"pl-1 border border-neutral-300":"pl-1 border border-neutral-200",cellClassRules:{[hu(a)]:()=>!0,[fu(s)]:()=>!0,[gu.FONT_BOLD]:()=>l,[gu.FONT_ITALIC]:()=>c,[gu.FONT_STRIKETHROUGH]:()=>u,[Eu(d)]:()=>Boolean(d),[Cu(p)]:e=>i===gi.TEXT&&Boolean(p),[bu(g)]:()=>!0,[vu(m,"normal")]:()=>!0,[_u(h,"normal")]:()=>!0,[vu(C,"zero")]:e=>i===gi.NUMBER&&G(e.value)&&0===e.value,[_u(b,"zero")]:e=>i===gi.NUMBER&&G(e.value)&&0===e.value,[vu(f,"negative")]:e=>i===gi.NUMBER&&G(e.value)&&e.value<0,[_u(E,"negative")]:e=>i===gi.NUMBER&&G(e.value)&&e.value<0,[vu(v,"error")]:e=>Boolean(e.node.failedLoad),[_u(_,"error")]:e=>Boolean(e.node.failedLoad),[gu.BLUR]:()=>o.blur},valueFormatter:i===gi.NUMBER?e=>{const t=e.value;if(O(t)||t===Au)return o.missingValueDisplayText??"";const n=o.negativeNumberInParens&&t<0,r=Fu(t,o.numberScale),i=(n?Math.abs(r.value):r.value).toLocaleString(void 0,{useGrouping:o.displayCommas,...void 0!==o.decimals?{minimumFractionDigits:o.decimals,maximumFractionDigits:o.decimals}:{}});let a=(n?`(${i})`:i)+(r.unit?` ${r.unit}`:"");return o.unit&&(a=o.unit.startsWith("_")?`${o.unit.substring(1)}${a}`:`${a}${o.unit}`),a}:e=>e.value===Au?o.missingValueDisplayText??"":e.value,tooltipValueGetter:e=>L(e.value)&&e.value!==Au?`Value = ${""===e.value?"''":!0===e.value?"TRUE":!1===e.value?"FALSE":e.value}`:"Missing Value",cellRenderer:Bu(e)}}function ju(e,t){const n=t.fontFamily,o=t.fontSize,r=t.fontBold,i=t.fontItalic,a=t.fontStrikethrough,s=t.fontUnderline,l=t.fontCase,c=t.textAlign,u=t.normalForegroundColor,d=t.normalBackgroundColor;return{cellDataType:!1,hide:!e.data.groupBy,lockPosition:!0,lockPinned:!0,pinned:Iu.LEFT,cellClassRules:{[hu(n)]:()=>!0,[fu(o)]:()=>!0,[gu.FONT_BOLD]:()=>r,[gu.FONT_ITALIC]:()=>i,[gu.FONT_STRIKETHROUGH]:()=>a,[Eu(s)]:()=>Boolean(s),[Cu(l)]:e=>Boolean(l),[bu(c)]:()=>!0,[vu(u,"normal")]:()=>!0,[_u(d,"normal")]:()=>!0},tooltipValueGetter:e=>L(e.value)&&e.value!==Au?`Group Value = ${""===e.value?"''":!0===e.value?"TRUE":!1===e.value?"FALSE":e.value}`+(void 0!==e.data[xu]?` (${e.data[xu]})`:""):null}}function Mu(e){const{column:t}=e;return{resizable:void 0===t.fixedWidth,suppressAutoSize:void 0!==t.fixedWidth,suppressSizeToFit:void 0!==t.fixedWidth,width:t.fixedWidth,minWidth:Math.max(t.minWidth??50,50),maxWidth:t.maxWidth}}function Uu(e){const{name:t,snapshot:n}=e,o=n.data.sortColumns,r=Hi(o,t);return{sortable:!0,sort:r?r.direction===di.ASCENDING?wu.ASCENDING:wu.DESCENDING:null,sortIndex:r?o.indexOf(r):null}}function Gu(e){const{name:t,snapshot:n,column:o,configuration:r}=e,i=n.data,a=Hi(i.pivot?.columns,t),s=Hi(i.groupBy?.columns,t),l=Boolean(Hi(i.groupExtendedColumns,t)),c=!l&&s?i.groupBy?.columns.indexOf(s)??null:null;return{enableRowGroup:!l&&o.kind===ii.DIMENSION,rowGroup:!l&&Boolean(s),rowGroupIndex:null!==c?r.showRootAggregation?c+1:c:null,enablePivot:!l&&o.kind===ii.DIMENSION,pivot:!l&&Boolean(a),pivotIndex:!l&&a?i.pivot?.columns.indexOf(a)??null:null,aggFunc:l?null:o.aggregateOperator,enableValue:!1,allowedAggFuncs:[]}}function Vu(e){const t=e.grid;return{rowGroupPanelShow:"always",groupDisplayType:"singleColumn",suppressGroupChangesColumnVisibility:!0,suppressAggFuncInHeader:!0,getChildCount:e=>e[xu],alwaysMultiSort:!0,rowHeight:20,headerHeight:24,noRowsOverlayComponent:()=>(0,E.jsxs)("div",{className:"flex items-center border-[1.5px] border-neutral-300 p-2 font-medium text-neutral-400",children:[(0,E.jsx)("div",{children:(0,E.jsx)(dr.WarningCircle,{className:"mr-1 stroke-2 text-lg"})}),"0 rows"]}),loadingOverlayComponent:()=>(0,E.jsxs)("div",{className:"flex items-center border-[1.5px] border-neutral-300 p-2 font-medium text-neutral-400",children:[(0,E.jsx)("div",{children:(0,E.jsx)(dr.Loader,{className:"mr-1 animate-spin stroke-2 text-lg"})}),"Loading..."]}),onBodyScroll:e=>{const n=e.api.getDisplayedRowCount(),o=e.api.getVerticalPixelRange(),r=Math.max(1,Math.ceil(o.top/20)+1),i=Math.min(n,Math.floor(o.bottom/20));t.setScrollHintText(`${r}-${i}/${n}`),e.api.hidePopupMenu()},onBodyScrollEnd:()=>t.setScrollHintText(void 0),preventDefaultOnContextMenu:!0,columnMenu:"new",getContextMenuItems:e=>t.controller.menuBuilder?.(e,!1)??[],getMainMenuItems:e=>t.controller.menuBuilder?.(e,!0)??[],onColumnMenuVisibleChanged:e=>{if(!e.column){const t=document.querySelector(`.${gu.ROOT} .ag-popup .ag-menu`);t&&(t.style.display="none"),e.api.hidePopupMenu()}},autoSizePadding:10,autoSizeStrategy:{type:"fitCellContents"},tooltipShowDelay:1500,tooltipInteraction:!1,suppressDragLeaveHidesColumns:!0,suppressScrollOnNewData:!0,loadingCellRenderer:Pu,serverSideSortAllLevels:!0,cellSelection:!0,sideBar:{toolPanels:[{id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel",minWidth:200,width:200,toolPanelParams:{suppressValues:!0,suppressPivotMode:!0}}],position:"right"},allowDragFromColumnsToolPanel:!0,animateRows:!1,suppressColumnMoveAnimation:!0}}function Hu(e,t,n){const o=e.split(mi);if(!t.data.pivot||o.length>t.data.pivot.columns.length+1)return o.join(" / ");if(o.length===t.data.pivot.columns.length+1){const e=A(o,o.length-1),r=Hi(n.columns,e);return`Column = ${r?r.displayName?`${r.displayName} (${r.name})`:r.name:e} ~ [ ${t.data.pivot.columns.map(((e,t)=>`${Hi(n.columns,e.name)?.displayName??e.name} = ${o[t]}`)).join(", ")} ]`}return`[ ${t.data.pivot.columns.slice(0,o.length).map(((e,t)=>`${Hi(n.columns,e.name)?.displayName??e.name} = ${o[t]}`)).join(", ")} ]`}function Wu(e,t,n){const o=e.map((e=>({...e,values:e.name.split(mi)}))).filter((e=>e.values.length>1)),r=[];return o.forEach((e=>{const o=[];let i,a="";for(let r=0;r<e.values.length;r++){const s=A(e.values,r);if(a=""===a?A(e.values,r):`${a}${mi}${s}`,r!==e.values.length-1)o.push({groupId:a,children:[],suppressColumnsToolPanel:!0,headerName:s,headerTooltip:Hu(a,t,n)});else{const o=Hi(n.columns,s);if(o){const r={name:e.name,snapshot:t,column:o,configuration:n};i={headerName:o.displayName??o.name,colId:e.name,field:e.name,menuTabs:[],...Du(r),...Uu(r),...Mu(r),pinned:!1,lockPinned:!0,lockPosition:!0,suppressColumnsToolPanel:!0,headerTooltip:Hu(a,t,n)}}}}let s=r;o.forEach((e=>{const t=s.find((t=>"groupId"in t&&t.groupId===e.groupId));if(t)s=t.children;else{const t={...e,headerClass:`${gu.PIVOT_COLUMN_GROUP} ${gu.PIVOT_COLUMN_GROUP_PREFIX}${s.length%5}`};s.push(t),s=t.children}})),i&&(s.push(i),s.sort(((e,t)=>{const o=(e.colId?.split(mi)??[]).at(-1),r=o?Hi(n.columns,o):void 0,i=(t.colId?.split(mi)??[]).at(-1),a=i?Hi(n.columns,i):void 0;return(r?n.columns.indexOf(r):Number.MAX_VALUE)-(a?n.columns.indexOf(a):Number.MAX_VALUE)})))})),r}function $u(e,t){const n=t.columns.filter((t=>Hi(e.data.selectColumns,t.name)??Hi(e.data.groupExtendedColumns,t.name)));let o=[];return e.data.pivot&&(o=function(e,t,n){try{const o=[];for(const n of e){const e={...n,values:n.name.split(mi).slice(0,-1)};M(e.values.length===t.columns.length),o.push(e)}const r=t.columns.map((e=>n.getColumn(e.name))).filter(L);M(r.length===t.columns.length);for(let e=t.columns.length-1;e>=0;e--){const t=r[e]?.pivotSortDirection??di.ASCENDING;o.sort(((n,o)=>t===di.ASCENDING?A(n.values,e).localeCompare(A(o.values,e)):A(o.values,e).localeCompare(A(n.values,e))))}return o.map((e=>Wi(e)))}catch{return e}}(e.data.pivot.castColumns.filter((e=>Gi(e.name))),e.data.pivot,t)),[{colId:yu,hide:!0,enableValue:!1,allowedAggFuncs:[],enablePivot:!1,enableRowGroup:!1,filter:"agTextColumnFilter",suppressColumnsToolPanel:!0},...t.showRootAggregation?[{colId:Nu,headerName:"Root",field:Nu,hide:!0,enableValue:!1,allowedAggFuncs:[],enablePivot:!1,enableRowGroup:!1,suppressColumnsToolPanel:!0,rowGroup:!0,rowGroupIndex:0}]:[],...Wu(o,e,t),...n.map((n=>{const o={name:n.name,snapshot:e,column:n,configuration:t};return{headerName:n.displayName??n.name,headerTooltip:`Column = ${n.displayName?`${n.displayName} (${n.name})`:n.name}`,suppressSpanHeaderHeight:!0,colId:n.name,field:n.name,menuTabs:[],...Du(o),...Mu(o),...Uu(o),...Gu(o)}}))]}function zu(e,t){return`${Array.from(new Set([t[`${e}ForegroundColor`],...t.columns.map((t=>t[`${e}ForegroundColor`])).filter(L)]).values()).map((t=>`.${gu.ROOT} .${vu(t,e)}{color:${t};}`)).join("\n")}`}function Yu(e,t){return`${Array.from(new Set([t[`${e}BackgroundColor`],...t.columns.map((t=>t[`${e}BackgroundColor`])).filter(L)]).values()).map((t=>`.${gu.ROOT} .${_u(t,e)}{background-color:${t};}`)).join("\n")};`}console.error;const Xu=(0,bt.PA)((e=>{const{view:t}=e,n=t.grid,o=n.queryConfiguration;return(0,E.jsx)(Ir.mL,{styles:Ir.AH`
2
- .${gu.ROOT} {
1
+ (()=>{var e,t,n,o,r,i={50368:(e,t,n)=>{"use strict";const o=JSON.parse('{"rE":"11.0.5","XO":{"Z":"@finos/legend-logger-plugin-web-console"}}');var r,i=n(20938);class a{name;version;signature;uuid}class s{name;version;uuid=(0,i.A)();constructor(e,t){this.name=e,this.version=t}getName(){return this.name}getVersion(){return this.version}getSignature(){return`${this.getName()}@${this.getVersion()}`}getUUID(){return this.uuid}getInfo(){const e=new a;return e.name=this.getName(),e.version=this.getVersion(),e.signature=this.getSignature(),e.uuid=this.getUUID(),e}configure(e){return this}}class l{plugins=[];presets=[];usePlugins(e){return this.plugins=e,this}usePresets(e){return this.presets=e,this}configure(e){Object.keys(e).forEach((t=>{const n=e[t];this.presets.forEach((e=>{e.getName()===t&&e.configure(n)})),this.plugins.forEach((e=>{e.getName()===t&&e.configure(n)}))}))}install(){this.plugins.forEach((e=>e.install(this))),this.presets.forEach((e=>e.install(this)))}getInfo(){return{plugins:this.plugins.filter((e=>!this.getHiddenPluginNames().includes(e.getName()))).map((e=>e.getInfo())).sort(((e,t)=>e.name.localeCompare(t.name))),presets:this.presets.filter((e=>!this.getHiddenPresetNames().includes(e.getName()))).map((e=>e.getInfo())).sort(((e,t)=>e.name.localeCompare(t.name)))}}getHiddenPluginNames(){return[]}getHiddenPresetNames(){return[]}}!function(e){e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(r||(r={}));class c{channel;name;timestamp=Date.now();static create(e){const t=new c;return t.name=e,t}}class u extends s{level=r.DEBUG;setLevel(e){this.level=e}install(e){e.registerLoggerPlugin(this)}debug(e,...t){this.level<=r.DEBUG&&this._debug(e,...t)}info(e,...t){this.level<=r.INFO&&this._info(e,...t)}warn(e,...t){this.level<=r.WARN&&this._warn(e,...t)}error(e,...t){this.level<=r.ERROR&&this._error(e,...t)}}class d{loggers=[];registerPlugins(e){this.loggers=e}debug(e,...t){this.loggers.forEach((n=>n.debug(e,...t)))}info(e,...t){this.loggers.forEach((n=>n.info(e,...t)))}warn(e,...t){this.loggers.forEach((n=>n.warn(e,...t)))}error(e,...t){this.loggers.forEach((n=>n.error(e,...t)))}}const{debug:p,info:g,warn:m,error:h}=console;class f extends u{constructor(){super(o.XO.Z,o.rE)}_debug(e,...t){p(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_info(e,...t){g(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_warn(e,...t){m(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}_error(e,...t){h(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}}var E=n(31085),C=n(25873),b=n(94417),v=n(84365);const _=()=>()=>{},T=e=>(0,b.A)(e,(e=>void 0!==e)),N=(e,t,n)=>P(e.at(t),n),S=(e,t,n=(e,t)=>e===t)=>{const o=e.findIndex((e=>n(e,t)));return-1!==o&&(e.splice(o,1),!0)};class A extends Error{uuid=(0,i.A)();constructor(e){super(),this.message=void 0===e||""===e?"(no error message)":e}get detail(){return this.message}}class y extends Error{constructor(e,t,n){if(super(n||(t instanceof Error?t.message:t)),this.name=e,t instanceof Error){const e=(this.message.match(/\n/g)??[]).length+1;this.stack=`${(this.stack??"").split("\n").slice(0,e+1).join("\n")}\nCaused by: ${t.stack}`}else"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack}}class x extends y{constructor(e){super("Illegal State Error [PLEASE NOTIFY DEVELOPER]",e)}}class I extends y{constructor(e,t){super("Unsupported Operation Error",e||t?`${e}${t?`\n${(e=>{const t=T({printFunctionName:!1,maxDepth:1});return(0,v.GP)(e,t).replace(/.*\s\{/g,"{").replace(/\[.*\]/g,(e=>["[Array]","[Function]"].includes(e)?e:"[Object]"))})(t)}`:""}`:void 0)}}function w(e){if(!(e instanceof Error))throw new x("Expected error to be thrown")}const k=e=>{try{return e()}catch{return}};class R extends y{constructor(e,t){super("Assertion Error",e,t)}}const O=e=>null==e,L=e=>null!=e;function F(e,t=""){if(null==e)throw new R(t||"Value is nullable")}const P=(e,t="")=>(F(e,t),e);function B(e,t,n=""){if(!(e instanceof t))throw new R(n||`Value is expected to be of type '${t.name}'`)}const D=(e,t,n="")=>(B(e,t,n),e);function j(e,t=""){return function(e,t=""){if(""===P(e,t))throw new R(t||"Expected string value to be non-empty")}(e,t),e}function M(e,t=""){if(!e)throw new R(t||"Expected predicate to be truthy")}const U=e=>"string"==typeof e,G=e=>"number"==typeof e&&!isNaN(e),V=e=>"boolean"==typeof e,H=e=>"object"==typeof e&&null!==e,W=(e,t="")=>(function(e,t=""){if(!U(e))throw new R(t||"Value is expected to be a string")}(e,t),e),$=(e,t="")=>(function(e,t=""){if(!G(e))throw new R(t||"Value is expected to be a number")}(e,t),e),z=(e,t="")=>(function(e,t=""){if(!V(e))throw new R(t||"Value is expected to be a boolean")}(e,t),e);var Y=n(66651),X=n(56046),K=n(6451),q=n(8041);const J=Y.v,Q="charset=utf-8";var Z,ee,te;!function(e){e.CONTENT_TYPE="Content-Type",e.ACCEPT="Accept"}(Z||(Z={})),function(e){e.APPLICATION_JSON="application/json",e.APPLICATION_XML="application/xml",e.APPLICATION_ZLIB="application/zlib",e.APPLICATION_XLSX="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",e.TEXT_PLAIN="text/plain",e.TEXT_HTML="text/html",e.TEXT_CSV="text/csv",e.ALL="*/*",e.MESSAGE_RFC822="message/rfc822"}(ee||(ee={})),function(e){e.GET="GET",e.PUT="PUT",e.POST="POST",e.DELETE="DELETE"}(te||(te={}));const ne={mode:"cors",credentials:"include",redirect:"follow"},oe=(e,t)=>{const n={};return e&&Object.entries(e).forEach((([e,t])=>{n[e]=t})),t&&Object.entries(t).forEach((([e,t])=>{n[e]=t})),n};class re extends Error{response;payload;constructor(e,t){super(),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.name="Network Client Error",this.response=e;const{status:n,statusText:o,url:r}=e,i=`Received response with status ${n} (${o}) for ${r}`;this.message=(t?(e=>{if(H(e))return U(e.message)?e.message:JSON.stringify(e);let t;try{t=JSON.parse(e)}catch{}return t&&U(t.message)?t.message:e})(t).substring(0,5e3):"")||i,this.payload=t}}const ie=async(e,t,n)=>{if(n?.preprocess?.(e),!e.ok){let t;try{t=await e.text(),t=JSON.parse(t)}catch{}return Promise.reject(new re(e,t))}if(n?.skipProcessing)return Promise.resolve(e);if(e.status===J.NO_CONTENT)return Promise.resolve(void 0);const o=t.headers.Accept;switch(o){case ee.APPLICATION_JSON:return e.json();case ee.TEXT_PLAIN:return e.text();default:return Promise.reject(new re(e,`Can't process response for request with Content-Type '${o}'`))}},ae=(e,t)=>{const n={};return n.Accept=ee.APPLICATION_JSON,e!==te.GET&&(n[Z.CONTENT_TYPE]=`${ee.APPLICATION_JSON};${Q}`),oe(n,t)};class se{options={};baseUrl;constructor(e){this.baseUrl=e?.baseUrl,this.options={...ne,...e?.options??{}}}async get(e,t={},n,o,r,i){return this.request(te.GET,e,void 0,t,n,o,r,i)}async put(e,t={},n={},o,r,i,a){return this.request(te.PUT,e,t,n,o,r,i,a)}async post(e,t={},n={},o,r,i,a){return this.request(te.POST,e,t,n,o,r,i,a)}async delete(e,t={},n={},o,r,i,a){return this.request(te.DELETE,e,t,n,o,r,i,a)}async request(e,t,n,o,r,i,a,s){const l=((e,t,n)=>{if(!e&&!k((()=>new URL(t))))throw new Error(`Can't build URL string: base URL is not specified and the provided URL '${t}' is not absolute`);const o=new URL(t,e);return n instanceof Object&&Object.entries(n).forEach((([e,t])=>{void 0!==t&&(Array.isArray(t)?t.filter(L).forEach((t=>o.searchParams.append(e,t.toString()))):o.searchParams.append(e,t.toString()))})),o.toString()})(this.baseUrl,t,i??{});let c;if((U(n)||H(n))&&a?.enableCompression&&(M(e!==te.GET," GET request should not have any request payload"),n=(e=>new Blob([(0,X.Kc)(H(e)?JSON.stringify(e):e)]))(n),r=oe(r,{[Z.CONTENT_TYPE]:`${ee.APPLICATION_ZLIB};${Q}`})),void 0!==n)if(U(n)||n instanceof Blob)c=n;else{if(!H(n))throw new R("Request body can only be either a 'string' or an 'object'");c=JSON.stringify(n)}const u={...this.options,...o,method:e,body:c,headers:ae(e,r)};return fetch(l,u).then((e=>0===e.status||e.status===J.UNAUTHORIZED?s?.autoReAuthenticateUrl?(e=>new Promise((t=>{const n="AUTO_AUTHENTICATION_IFRAME",o=document.getElementById(n);o?.remove();const r=document.createElement("iframe");r.id=n,r.src=e,r.style.display="none",r.addEventListener("load",(()=>{r.remove(),t()})),document.body.appendChild(r)})))(s.autoReAuthenticateUrl).then((()=>fetch(l,u))).then((e=>ie(e,u,s))):fetch(l,u).then((e=>ie(e,u,s))):ie(e,u,s))).catch((e=>(e=>e instanceof TypeError&&"Failed to fetch"===e.message)(e)?fetch(l,u).then((e=>ie(e,u,s))):Promise.reject(e)))}}const le=(e,t,n)=>{const o=new Blob([t],{type:n}),r=URL.createObjectURL(o),i=document.createElement("a");"string"==typeof i.download?(document.body.appendChild(i),i.download=e,i.href=r,i.click(),document.body.removeChild(i)):location.replace(r)},ce=(e,t=!1)=>t?K.A.parseUrl(e).query:K.A.parse(e),ue=(e,t)=>{const n=t[e];return n?decodeURIComponent(n):void 0};var de;!function(e){e.GENERIC_FAILURE="application.failure.generic",e.APPLICATION_SETUP__FAILURE="application.setup.failure",e.APPLICATION_LOAD__SUCCESS="application.load.success",e.APPLICATION_LOAD__FAILURE="application.load.failure",e.ILLEGAL_APPLICATION_STATE_OCCURRED="application.error.illegal-state",e.APPLICATION_CONFIGURATION__FAILURE="application.configuration.failure",e.IDENTITY_AUTO_FETCH__FAILURE="application.identity.auto-fetch.failure",e.DOCUMENTATION_FETCH__FAILURE="application.documentation.fetch.failure",e.DOCUMENTATION_LOAD__SKIP="application.documentation.load.skip",e.DOCUMENTATION_REQUIREMENT_CHECK__FAILURE="application.documentation.requirement-check.failure",e.CONTEXTUAL_DOCUMENTATION_LOAD__SKIP="application.virtual-assistant.contextual-documentation-load.skip",e.VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS="application.virtual-assistant.documentation-entry.access",e.TERMINAL_COMMAND_CONFIGURATION_CHECK__FAILURE="application.load.terminal-command.configuration-check.failure",e.COLOR_THEME_CONFIGURATION_CHECK__FAILURE="application.layout.color-theme.configuration-check.failure",e.SETTING_CONFIGURATION_CHECK__FAILURE="application.setting.configuration-check.failure",e.SETTING_RETRIVE_FAILURE="application.setting.retrieve.failure",e.USER_DATA_RETRIEVE_FAILURE="application.user-data.retrieve.failure",e.COMMAND_CENTER_REGISTRATION__FAILURE="application.command.registration.failure",e.APPLICATION_CONTEXT__ACCESS="application.context.access",e.APPLICATION_USAGE__INTERRUPT="application.usage.interrupt",e.NAVIGATION_BLOCKED="application.usage.navigation-blocked",e.APPLICATION_TELEMETRY_EVENT__FAILURE="application.telemetry-event.failure",e.DEBUG="development.debug"}(de||(de={}));var pe=n(97542);class ge{schema;deserializeNullAsUndefined;constructor(e,t){this.schema=e,this.deserializeNullAsUndefined=Boolean(t?.deserializeNullAsUndefined)}toJson(e){return(0,pe.lK)(this.schema,e)}fromJson(e){return(0,pe.iu)(this.schema,this.deserializeNullAsUndefined?(t=e,(0,b.A)(t,(e=>null!==e))):e);var t}}const me=e=>(0,pe.Ie)((t=>void 0===t?pe._Z:(0,pe.lK)(e,t)),(t=>(0,pe.iu)(e,t))),he=e=>(0,pe.Ie)((()=>e),(()=>e)),fe=(e,t,n)=>(0,pe.Ie)((t=>t?e(t):pe._Z),(e=>e?t(e):pe._Z),n),Ee=e=>(0,pe.Ie)((t=>t?(0,pe.lK)(e,t):pe._Z),(t=>t?(0,pe.iu)(e,t):pe._Z)),Ce=(e,t,n)=>Array.isArray(e)?e.map(t):n?.skipIfEmpty?pe._Z:[],be=(e,t,n)=>Array.isArray(e)?e.length?e.map((e=>t(e))):n?.skipIfEmpty?pe._Z:[]:pe._Z,ve=(e,t,n)=>fe((t=>be(t,(t=>e(t)),{skipIfEmpty:!0,INTERNAL__forceReturnEmptyInTest:n?.INTERNAL__forceReturnEmptyInTest})),(e=>Ce(e,(e=>t(e)),{skipIfEmpty:!1})));class _e{key;markdownText;title;text;url;related;static serialization=new ge((0,pe.PL)(_e,{markdownText:(0,pe.Ie)((e=>e),(e=>e.value?e:void 0)),related:(0,pe.lq)((0,pe.p_)((0,pe.MY)())),title:(0,pe.lq)((0,pe.MY)()),text:(0,pe.lq)((0,pe.MY)()),url:(0,pe.lq)((0,pe.MY)())}));static create(e,t){const n=_e.serialization.fromJson(e);return n.key=t,n}}var Te=n(66696);const Ne=e=>Object.entries(e).map((e=>({key:e[0],content:_e.create(e[1],e[0])})));class Se{url;links;docRegistry=new Map;contextualDocIndex=new Map;constructor(e){this.url=e.config.documentationUrl,this.links=e.config.documentationLinkEntries,e.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraKeyedDocumentationEntries?.()??[])).forEach((t=>{this.hasDocEntry(t.key)?e.logService.warn(c.create(de.DOCUMENTATION_LOAD__SKIP),t.key):this.docRegistry.set(t.key,t.content)})),e.config.keyedDocumentationEntries.forEach((e=>this.docRegistry.set(e.key,e.content)));const t=e.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraContextualDocumentationEntries?.()??[])),n=[];(0,Te.A)(e.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraRequiredDocumentationKeys?.()??[])).concat(t.map((e=>e.documentationKey)))).forEach((e=>{this.docRegistry.has(e)||n.push(e)})),n.length&&e.logService.warn(c.create(de.DOCUMENTATION_REQUIREMENT_CHECK__FAILURE),`Can't find corresponding documentation entry for keys:\n${n.map((e=>`- ${e}`)).join("\n")}`),t.forEach((t=>{if(this.hasContextualDocEntry(t.context))e.logService.warn(c.create(de.CONTEXTUAL_DOCUMENTATION_LOAD__SKIP),t.context);else{const e=this.getDocEntry(t.documentationKey);e&&this.contextualDocIndex.set(t.context,e)}})),e.config.contextualDocEntries.forEach((e=>{const t=this.getDocEntry(e.documentationKey);t&&this.contextualDocIndex.set(e.context,t)}))}getDocEntry(e){return this.docRegistry.get(e)}hasDocEntry(e){return this.docRegistry.has(e)}getContextualDocEntry(e){return this.contextualDocIndex.get(e)}hasContextualDocEntry(e){return this.contextualDocIndex.has(e)}getAllDocEntries(){return Array.from(this.docRegistry.values())}publishDocRegistry(){const e={};return this.docRegistry.forEach(((t,n)=>{e[n]=_e.serialization.toJson(t)})),e}publishContextualDocIndex(){const e={};return this.contextualDocIndex.forEach(((t,n)=>{e[n]=t.key})),e}}var Ae,ye,xe=n(83794);!function(e){e.INITIAL="INITIAL",e.IN_PROGRESS="IN_PROGRESS",e.SUCCEEDED="SUCEEDED",e.FAILED="FAILED"}(Ae||(Ae={}));class Ie{state;_message;_messageFormatter;constructor(){this.state=Ae.INITIAL}setMessage(e){this._message=e}setMessageFormatter(e){this._messageFormatter=e}reset(){return this.state=Ae.INITIAL,this}inProgress(){return this.state=Ae.IN_PROGRESS,this}fail(){return this.state=Ae.FAILED,this}pass(){return this.state=Ae.SUCCEEDED,this}complete(e=!0){return e?this.pass():this.fail(),this}sync(e){const t=e.exportData();this.state=t.state,this._message=t.message}exportData(){return{state:this.state,message:this._message}}get isInInitialState(){return this.state===Ae.INITIAL}get isInProgress(){return this.state===Ae.IN_PROGRESS}get hasFailed(){return this.state===Ae.FAILED}get hasSucceeded(){return this.state===Ae.SUCCEEDED}get message(){return this._message?this._messageFormatter?this._messageFormatter(this._message):this._message:void 0}get hasCompleted(){return this.hasFailed||this.hasSucceeded}static create(){return(0,xe.Gn)(new Ie,{state:xe.sH,_message:xe.sH,reset:xe.XI,inProgress:xe.XI,pass:xe.XI,fail:xe.XI,complete:xe.XI,setMessage:xe.XI,sync:xe.XI,isInInitialState:xe.EW,isInProgress:xe.EW,hasFailed:xe.EW,hasSucceeded:xe.EW,hasCompleted:xe.EW,message:xe.EW})}}!function(e){e.USER="user",e.ENV="env",e.RESULT="result",e.ERROR="error",e.HTTP_STATUS="status",e.HTTP_REQUEST_METHOD="method",e.HTTP_REQUEST_URL="url"}(ye||(ye={}));class we{traceEntries=[];setup(e){this.traceEntries=e}bootstrap(e){this.traceEntries.forEach((t=>{t.plugin.bootstrap(t.clientSpan,e)}))}reportSuccess(){this.traceEntries.forEach((e=>{e.plugin.concludeClientSpan(e.clientSpan,void 0)}))}reportError(e){this.traceEntries.forEach((t=>{t.plugin.concludeClientSpan(t.clientSpan,e)}))}close(){this.traceEntries.forEach((e=>{e.plugin.concludeServerSpan(e.serverSpan)}))}}class ke{plugins=[];registerPlugins(e){this.plugins=e}createTrace(e,t,n,o){const r=new we;return e&&r.setup(this.plugins.map((r=>{const i=r.createClientSpan(e);return{clientSpan:i,serverSpan:r.createServerSpan(i,t,n,o),plugin:r}}))),r}}const Re=n(37102).A;var Oe,Le;!function(e){e.STANDARD="standard",e.INCLUDE="include match",e.EXACT="exact match",e.INVERSE="excludes exact match"}(Oe||(Oe={}));class Fe{currentMode=Oe.STANDARD;onSearchModeChange;constructor(e){(0,xe.Gn)(this,{currentMode:xe.sH,isAdvancedSearchActive:xe.EW,setCurrentMode:xe.XI}),this.onSearchModeChange=e}get isAdvancedSearchActive(){return this.currentMode!==Oe.STANDARD}generateSearchText(e){switch(this.currentMode){case Oe.INCLUDE:return`'"${e}"`;case Oe.EXACT:return`="${e}"`;case Oe.INVERSE:return`!"${e}"`;default:return e}}setCurrentMode(e){this.currentMode=e,this.onSearchModeChange()}}!function(e){e.SEARCH="SEARCH",e.CONTEXTUAL_SUPPORT="CONTEXTUAL_SUPPORT"}(Le||(Le={}));class Pe{uuid=(0,i.A)();documentationKey;title;content;url;isOpen=!1;constructor(e){(0,xe.Gn)(this,{isOpen:xe.sH,setIsOpen:xe.XI}),this.documentationKey=e.key,this.title=j(e.title),this.content=e.markdownText??e.text,this.url=e.url}setIsOpen(e){this.isOpen=e}}class Be{uuid=(0,i.A)();context;title;content;url;related;constructor(e,t,n){this.context=e,this.title=t.title,this.content=t.markdownText??t.text,this.url=t.url,this.related=n}}const De=e=>Boolean(e.title&&(e.url??e.text??e.markdownText));class je{applicationStore;panelRenderingKey=(0,i.A)();isDisabled=!1;isHidden=!0;isOpen=!1;isPanelMaximized=!1;selectedTab=Le.SEARCH;currentDocumentationEntry;searchEngine;searchConfigurationState;searchState=Ie.create();searchText="";searchResults=[];showSearchConfigurationMenu=!1;isOverSearchLimit=!1;constructor(e){(0,xe.Gn)(this,{isDisabled:xe.sH,isHidden:xe.sH,isOpen:xe.sH,isPanelMaximized:xe.sH,panelRenderingKey:xe.sH,isOverSearchLimit:xe.sH,selectedTab:xe.sH,searchText:xe.sH,searchResults:xe.sH,currentDocumentationEntry:xe.sH,showSearchConfigurationMenu:xe.sH,currentContextualDocumentationEntry:xe.EW,setIsDisabled:xe.XI,setIsHidden:xe.XI,setIsOpen:xe.XI,setIsPanelMaximized:xe.XI,setSelectedTab:xe.XI,setSearchText:xe.XI,resetSearch:xe.XI,search:xe.XI,openDocumentationEntry:xe.XI,refreshPanelRendering:xe.XI,setShowSearchConfigurationMenu:xe.XI}),this.applicationStore=e,this.searchEngine=new Re(this.applicationStore.documentationService.getAllDocEntries().filter(De),{includeScore:!0,shouldSort:!0,ignoreLocation:!0,threshold:.2,keys:[{name:"title",weight:4},{name:"text",weight:1},{name:"markdownText.value",weight:1}],useExtendedSearch:!0}),this.searchConfigurationState=new Fe((()=>{this.search()}))}get currentContextualDocumentationEntry(){if(!this.applicationStore.navigationContextService.currentContext)return;const e=this.applicationStore.navigationContextService.currentContext.key,t=this.applicationStore.documentationService.getContextualDocEntry(e);return t?new Be(e,t,(t.related??[]).map((e=>this.applicationStore.documentationService.getDocEntry(e))).filter(L).filter(De).map((e=>new Pe(e)))):void 0}openDocumentationEntry(e){const t=this.applicationStore.documentationService.getDocEntry(e);t&&(this.setIsOpen(!0),this.setIsHidden(!1),this.currentDocumentationEntry=new Pe(t),this.currentDocumentationEntry.setIsOpen(!0),this.resetSearch())}openDocumentationEntryLink(e){const t=this.applicationStore.documentationService.getDocEntry(e);t&&((e=>De(e)&&Boolean(e.text??e.markdownText))(t)?this.openDocumentationEntry(t.key):t.url&&this.applicationStore.navigationService.navigator.visitAddress(t.url))}setIsDisabled(e){this.isDisabled=e}setIsHidden(e){this.isHidden=e}setIsPanelMaximized(e){this.isPanelMaximized=e}hideAssistant(){this.setIsHidden(!0),this.setIsOpen(!1)}toggleAssistant(){this.isHidden?this.setIsHidden(!1):this.hideAssistant()}setIsOpen(e){this.isOpen=e}setSelectedTab(e){this.selectedTab=e}refreshPanelRendering(){this.panelRenderingKey=(0,i.A)()}setSearchText(e){this.searchText=e}resetSearch(){this.searchText="",this.searchResults=[],this.searchState.complete()}search(){this.searchText?(this.currentDocumentationEntry=void 0,this.searchState.inProgress(),this.searchResults=Array.from(this.searchEngine.search(this.searchConfigurationState.generateSearchText(this.searchText),{limit:101}).values()).map((e=>new Pe(e.item))),this.searchResults.length>100?(this.isOverSearchLimit=!0,this.searchResults=this.searchResults.slice(0,100)):this.isOverSearchLimit=!1,this.searchState.complete()):this.searchResults=[]}setShowSearchConfigurationMenu(e){this.showSearchConfigurationMenu=e}}class Me{notifierPlugins=[];registerEventNotifierPlugins(e){this.notifierPlugins=e}notify(e,t){this.notifierPlugins.forEach((n=>n.notify(e,t)))}}class Ue{static logEvent_ApplicationInitializationSucceeded(e,t){e.logEvent(de.APPLICATION_LOAD__SUCCESS,{application:{name:t.config.appName,version:t.config.appVersion,env:t.config.env},browser:{userAgent:navigator.userAgent},screen:{height:window.screen.height,width:window.screen.width}})}static logEvent_ApplicationContextAccessed(e,t){e.logEvent(de.APPLICATION_CONTEXT__ACCESS,t)}static logEvent_VirtualAssistantDocumentationEntryAccessed(e,t){e.logEvent(de.VIRTUAL_ASSISTANT_DOCUMENTATION_ENTRY__ACCESS,t)}static logEvent_ApplicationUsageInterrupted(e){e.logEvent(de.APPLICATION_USAGE__INTERRUPT,{})}}class Ge{applicationStore;contextStack=[];constructor(e){(0,xe.Gn)(this,{contextStack:xe.sH,currentContext:xe.EW,push:xe.XI,pop:xe.XI}),this.applicationStore=e}get currentContext(){return this.contextStack.length?this.contextStack[this.contextStack.length-1]:void 0}push(e){const t=this.contextStack.filter((e=>!e.isTransient));if(t.find((t=>t.key===e.key)))throw new x(`Found multiple context '${e.key}' in application navigation context stack`);t.push(e),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraAccessEventLoggingApplicationContextKeys?.()??[])).includes(e.key)&&Ue.logEvent_ApplicationContextAccessed(this.applicationStore.telemetryService,{key:e.key}),this.contextStack=t}pop(e){const t=this.contextStack.find((t=>t.key===e.key));if(!t)return;const n=this.contextStack.indexOf(t);-1!==n&&(this.contextStack=this.contextStack.slice(0,n).filter((e=>!e.isTransient)))}}class Ve{applicationStore;commandRegistry=new Map;constructor(e){(0,xe.Gn)(this,{commandRegistry:xe.sH,registerCommand:xe.XI,deregisterCommand:xe.XI}),this.applicationStore=e}registerCommand(e){const t=e.key;this.commandRegistry.has(t)?this.applicationStore.logService.warn(c.create(de.COMMAND_CENTER_REGISTRATION__FAILURE),`Can't register command: command '${t}' is already registered`):this.commandRegistry.set(t,e)}deregisterCommand(e){this.commandRegistry.delete(e)}runCommand(e,t){const n=this.commandRegistry.get(e);return!(!n||n.trigger&&!n.trigger()||(n.action?.(t),0))}}class He{applicationStore;keyMap=new Map;commandKeyMap=new Map;isHotkeysBlocked=!1;constructor(e){(0,xe.Gn)(this,{keyMap:xe.sH,commandKeyMap:xe.sH,isHotkeysBlocked:xe.sH,addHotkey:xe.XI,blockGlobalHotkeys:xe.XI,unblockGlobalHotkeys:xe.XI}),this.applicationStore=e,this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraKeyedCommandConfigEntries?.()??[])).forEach((e=>{const t=[e.content.defaultKeyboardShortcut,...e.content.additionalKeyboardShortcuts??[]].filter(L);t.length?t.forEach((t=>this.addHotkey(e.key,t))):this.commandKeyMap.has(e.key)||this.commandKeyMap.set(e.key,[])}))}blockGlobalHotkeys(){this.isHotkeysBlocked=!0}unblockGlobalHotkeys(){this.isHotkeysBlocked=!1}addHotkey(e,t){this.commandKeyMap.set(e,[...this.commandKeyMap.get(e)??[],t]),this.keyMap.set(t,[...(this.keyMap.get(t)??[]).filter((t=>t!==e)),e])}dispatch(e){if(this.isHotkeysBlocked)return;const t=this.keyMap.get(e)??[];for(const e of t)if(this.applicationStore.commandService.runCommand(e))return}}var We=n(84594),$e=n(34462),ze=n(720),Ye=n(75974),Xe=n(90382);const Ke="yyyy-MM-dd'T'HH:mm:ss";var qe;!function(e){e.RESET="",e.BOLD="",e.DIM="",e.ITALIC="",e.UNDERLINE="",e.BLINKING="",e.STRIKETHROUGH="",e.BLACK="",e.RED="",e.GREEN="",e.YELLOW="",e.BLUE="",e.MAGENTA="",e.CYAN="",e.WHITE="",e.BRIGHT_BLACK="",e.BRIGHT_RED="",e.BRIGHT_GREEN="",e.BRIGHT_YELLOW="",e.BRIGHT_BLUE="",e.BRIGHT_MAGENTA="",e.BRIGHT_CYAN="",e.BRIGHT_WHITE="",e.DIMMED_BLACK="",e.DIMMED_RED="",e.DIMMED_GREEN="",e.DIMMED_YELLOW="",e.DIMMED_BLUE="",e.DIMMED_MAGENTA="",e.DIMMED_CYAN="",e.DIMMED_WHITE="",e.BLACK_BG="",e.RED_BG="",e.GREEN_BG="",e.YELLOW_BG="",e.BLUE_BG="",e.MAGENTA_BG="",e.CYAN_BG="",e.WHITE_BG="",e.BRIGHT_BLACK_BG="",e.BRIGHT_RED_BG="",e.BRIGHT_GREEN_BG="",e.BRIGHT_YELLOW_BG="",e.BRIGHT_BLUE_BG="",e.BRIGHT_MAGENTA_BG="",e.BRIGHT_CYAN_BG="",e.BRIGHT_WHITE_BG="",e.DIMMED_BLACK_BG="",e.DIMMED_RED_BG="",e.DIMMED_GREEN_BG="",e.DIMMED_YELLOW_BG="",e.DIMMED_BLUE_BG="",e.DIMMED_MAGENTA_BG="",e.DIMMED_CYAN_BG="",e.DIMMED_WHITE_BG=""}(qe||(qe={}));const Je=(e,t)=>`[${e};${t}H`;class Qe{searchInput;searchText="";useRegex=!1;matchWholeWord=!1;matchCaseSensitive=!1;resultCount;currentResultIndex;constructor(){(0,xe.Gn)(this,{searchText:xe.sH,useRegex:xe.sH,matchWholeWord:xe.sH,matchCaseSensitive:xe.sH,resultCount:xe.sH,currentResultIndex:xe.sH})}setSearchInput(e){this.searchInput=e}focus(){this.searchInput?.focus()}}class Ze{applicationStore;searchConfig=new Qe;constructor(e){(0,xe.Gn)(this,{setSearchText:xe.XI,setSearchRegex:xe.XI,setSearchWholeWord:xe.XI,setSearchCaseSensitive:xe.XI,setSearchResultCount:xe.XI,setSearchCurrentResultIndex:xe.XI}),this.applicationStore=e}setSearchText(e){this.searchConfig.searchText=e}setSearchRegex(e){this.searchConfig.useRegex=e}setSearchWholeWord(e){this.searchConfig.matchWholeWord=e}setSearchCaseSensitive(e){this.searchConfig.matchCaseSensitive=e}setSearchResultCount(e){this.searchConfig.resultCount=e}setSearchCurrentResultIndex(e){this.searchConfig.currentResultIndex=e}}class et extends Ze{preserveLog=!1;commandRegistry=new Map;constructor(e){super(e),(0,xe.Gn)(this,{preserveLog:xe.sH,setPreserveLog:xe.XI})}setPreserveLog(e){this.preserveLog=e}showHelp(){}showCommonANSIEscapeSequences(){}}var tt=n(29481);n(24404),n(41880);const nt=e=>e.length>=1?`${e[0].toUpperCase()}${e.substring(1,e.length)}`:e,ot=["a","an","the","but","by","nor","and","or","so","as","yet","for","in","nor","of","on","at","out","to","up"],rt=e=>(e??"").trim().replace(/\b(?:\w+)\b/gu,(e=>ot.includes(e.toLowerCase())?e.toLowerCase():nt(e))).replace(/^(?:\w+)\b/u,(e=>nt(e))).replace(/\b(?:\w+)$/u,(e=>nt(e)));var it;function at(e){return e.trim().split(" ").map((e=>{const t=e.split(/\b\+/),n=P(t.pop(),"Can't parse key binding: last part must be a non-modifier key");return{modifiers:t,key:n}}))}!function(e){e.TAB="Tab",e.CAPSLOCK="CapsLock",e.SHIFT="Shift",e.META="Meta",e.ALT="Alt",e.CONTROL="Control",e.SPACE="Space",e.ESC="Escape",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.ENTER="Enter",e.DELETE="Delete",e.BACKSPACE="Backspace",e.BACKQUOTE="Backquote"}(it||(it={}));const st=(e,t)=>t.key===e.code&&t.modifiers.every((t=>e.getModifierState(t)))&&![it.SHIFT,it.META,it.ALT,it.CONTROL].find((n=>t.key!==n&&e.getModifierState(n)&&!t.modifiers.includes(n))),lt=(e,t)=>st(e,P(at(t)[0]));function ct(e){const t=new Map;let n=null;return o=>{o instanceof KeyboardEvent&&((0,tt.A)(Object.values(e).flatMap((e=>e.combinations.map((t=>({combination:t,handler:e.handler}))))).filter((e=>e.combination.length)),(e=>e.combination)).forEach((e=>{const n=e.combination,r=at(e.combination);if(!r.length)return;const i=t.get(n)??r,a=P(i[0]);st(o,a)?i.length>1?t.set(n,i.slice(1)):(t.delete(n),e.handler(n,o)):o.getModifierState(o.key)||t.delete(n)})),n&&clearTimeout(n),n=setTimeout(t.clear.bind(t),1e3))}}var ut=n(48187),dt=n(12285),pt=n(97088),gt=n(34336),mt=n(22351);const ht=(0,ut.A)({transitions:{create:()=>"none"},components:{MuiButtonBase:{defaultProps:{disableRipple:!0}}}}),ft=e=>{const{children:t}=e;return(0,E.jsx)(dt.A,{injectFirst:!0,children:(0,E.jsx)(pt.A,{theme:ht,children:(0,E.jsx)(gt.$,{dateAdapter:mt.h,children:t})})})};var Et=n(49676),Ct=n(23432),bt=n(25150),vt=n(20306),_t=n(50692),Tt=n(96242),Nt=n(54357);const St=(e,t)=>{const n=e=>{const{children:n,className:o}=e;return(0,E.jsx)("div",{className:(0,Nt.$)(t,o),"data-testid":e["data-testid"],children:n})};return n.displayName=e,n},At=e=>{const{children:t,darkMode:n,className:o}=e;return(0,E.jsx)("div",{className:(0,Nt.$)("modal",{"modal--dark":n},o),children:t})},yt=e=>{const{title:t,icon:n,className:o}=e;return(0,E.jsxs)("div",{className:(0,Nt.$)("modal__title",o),children:[n&&(0,E.jsx)("div",{className:"modal__title__icon",children:n}),(0,E.jsx)("div",{className:"modal__title__label",children:rt(t)})]})},xt=e=>{const{title:t,children:n,className:o}=e;return!n&&t?(0,E.jsx)("div",{className:(0,Nt.$)("modal__header",o),children:(0,E.jsx)(yt,{title:t})}):(0,E.jsx)("div",{className:(0,Nt.$)("modal__header",o),children:n})},It=(St("ModalHeaderActions","modal__header__actions"),St("ModalBody","modal__body")),wt=St("ModalFooter","modal__footer");var kt,Rt;St("ModalFooterStatus","modal__footer__status"),function(e){e.STANDARD="STANDARD",e.CAUTION="CAUTION",e.ERROR="ERROR"}(kt||(kt={})),function(e){e.STANDARD="STANDARD",e.PROCEED_WITH_CAUTION="PROCEED_WITH_CAUTION",e.PROCEED="PROCEED"}(Rt||(Rt={}));class Ot{applicationStore;blockingAlertInfo;actionAlertInfo;constructor(e){(0,xe.Gn)(this,{blockingAlertInfo:xe.sH,actionAlertInfo:xe.sH,setBlockingAlert:xe.XI,setActionAlertInfo:xe.XI}),this.applicationStore=e}setBlockingAlert(e){e?this.applicationStore.keyboardShortcutsService.blockGlobalHotkeys():this.applicationStore.keyboardShortcutsService.unblockGlobalHotkeys(),this.blockingAlertInfo=e}setActionAlertInfo(e){this.actionAlertInfo&&e&&this.applicationStore.notificationService.notifyIllegalState("Action alert is stacked: new alert is invoked while another one is being displayed"),e?this.applicationStore.keyboardShortcutsService.blockGlobalHotkeys():this.applicationStore.keyboardShortcutsService.unblockGlobalHotkeys(),this.actionAlertInfo=e}}var Lt=n(14041);const Ft=(0,Lt.createContext)(void 0),Pt=()=>P((0,Lt.useContext)(Ft),"Can't find application store in context"),Bt=e=>{const{children:t,store:n}=e,o=(0,bt.iz)((()=>n));return(0,E.jsx)(Ft.Provider,{value:o,children:t})},Dt=e=>{switch(e){case Rt.PROCEED_WITH_CAUTION:return"btn--caution";case Rt.PROCEED:case Rt.STANDARD:default:return"btn--dark"}},jt=(0,bt.PA)((e=>{const{info:t}=e,n=Pt(),{title:o,message:r,prompt:i,type:a,onClose:s,onEnter:l,actions:c}=t,u=()=>{s?.(),n.alertService.setActionAlertInfo(void 0)};return(0,E.jsx)(Tt.A,{open:Boolean(n.alertService.actionAlertInfo),onClose:_,TransitionProps:{onEnter:()=>l?.()},children:(0,E.jsxs)("form",{onSubmit:e=>{e.preventDefault(),c.find((e=>e.default))?.handler?.(),u()},className:`modal search-modal modal--dark blocking-alert blocking-alert--${(a??kt.STANDARD).toLowerCase()}`,children:[o&&(0,E.jsx)(xt,{title:o}),(0,E.jsxs)(It,{children:[(0,E.jsx)("div",{className:"blocking-alert__summary-text",children:r}),(0,E.jsx)("div",{className:"blocking-alert__prompt-text",children:i})]}),(0,E.jsxs)(wt,{children:[c.map(((e,t)=>(0,E.jsx)("button",{type:e.default?"submit":"button",className:`btn btn--dark ${Dt(e.type??Rt.STANDARD)}`,onClick:t=>{t.preventDefault(),e.handler?.(),u()},autoFocus:Boolean(e.default),children:e.label},t))),!c.length&&(0,E.jsx)("button",{type:"button",className:"btn btn--dark blocking-alert__action--standard",onClick:u,children:"Cancel"})]})]})})})),Mt=(0,bt.PA)((()=>{const e=Pt().alertService.actionAlertInfo;return e?(0,E.jsx)(jt,{info:e}):null})),Ut=e=>{const{isLoading:t,className:n}=e,o=(0,Lt.useRef)(null);return(0,Lt.useEffect)((()=>{o.current&&(t?o.current.parentElement?.classList.add("panel-loading-indicator__container"):o.current.parentElement?.classList.remove("panel-loading-indicator__container"))}),[t]),(0,E.jsx)("div",{ref:o,className:(0,Nt.$)(n,"panel-loading-indicator"+(t?"":"--disabled"))})},Gt=(0,bt.PA)((()=>{const e=Pt(),t=e.alertService.blockingAlertInfo;return t?(0,E.jsx)(Tt.A,{open:Boolean(t),onClose:_,classes:{root:"blocking-alert__root-container",container:"blocking-alert__container"},children:(0,E.jsxs)(At,{darkMode:!e.layoutService.TEMPORARY__isLightColorThemeEnabled,className:"blocking-alert",children:[(0,E.jsx)(Ut,{isLoading:Boolean(t.showLoading)}),(0,E.jsxs)(It,{children:[(0,E.jsx)("div",{className:"blocking-alert__message",children:t.message}),t.prompt&&(0,E.jsx)("div",{className:"blocking-alert__message__prompt",children:t.prompt})]})]})}):null}));var Vt=n(94269),Ht=n(59896),Wt=n(86750),$t=n(87997),zt=n(56819);const Yt=Vt.RQJ,Xt=Ht.QRP,Kt=Wt.QCr,qt=Wt._Hm,Jt=Wt.Pcn,Qt=Wt.gZZ,Zt=Wt.__w,en=Wt.KSO,tn=Wt.UnJ,nn=Wt.A7C,on=Wt.BS8,rn=Wt.KRc,an=Wt.Su4,sn=Wt.kxO,ln=Wt.vq8,cn=Wt.GfC,un=Wt.SoL,dn=Wt.Wx3,pn=$t.f7n,gn=$t.Lun,mn=zt.oss,hn=zt.Br,fn=zt.YZI;var En=n(82801),Cn=n(98960);const bn=6e3;var vn;!function(e){e.ILEGAL_STATE="ILEGAL_STATE",e.ERROR="ERROR",e.WARNING="WARNING",e.SUCCESS="SUCCESS",e.INFO="INFO"}(vn||(vn={}));class _n{severity;message;actions;autoHideDuration;constructor(e,t,n,o){this.severity=e,this.message=t,this.actions=n,this.autoHideDuration=o}}class Tn{notification;constructor(){(0,xe.Gn)(this,{notification:xe.sH,setNotification:xe.XI,notify:xe.XI,notifySuccess:xe.XI,notifyWarning:xe.XI,notifyIllegalState:xe.XI,notifyError:xe.XI})}setNotification(e){this.notification=e}notify(e,t,n){this.setNotification(new _n(vn.INFO,e,t??[],null===n?void 0:n??bn))}notifySuccess(e,t,n){this.setNotification(new _n(vn.SUCCESS,e,t??[],null===n?void 0:n??bn))}notifyWarning(e,t,n){this.setNotification(new _n(vn.WARNING,e instanceof Error?e.message:e,t??[],null===n?void 0:n??bn))}notifyError(e,t){const n=this.getErrorMessage(e);n&&this.setNotification(new _n(vn.ERROR,n,t??[],void 0))}getErrorMessage(e){let t;return e instanceof A?t=e.detail:e instanceof Error?t=e.message:(M(U(e),"Can't display error"),t=e),t}notifyIllegalState(e,t,n){this.setNotification(new _n(vn.ILEGAL_STATE,U(e)?`[PLEASE NOTIFY DEVELOPER] ${e}`:e,t??[],null===n?void 0:n??bn))}notifyUnsupportedFeature(e){this.notifyWarning(`Unsupported feature: ${e}`)}notifyAndReturnAlternativeOnError=(e,t)=>{try{return e()}catch(e){return w(e),this.notifyIllegalState(e.message),t}}}const Nn=(0,bt.PA)((()=>{const e=Pt(),t=e.notificationService.notification,n=Boolean(t),o=t?.message??"",r=t?.severity??vn.INFO,[i,a]=(0,Lt.useState)(!1);let s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--info",children:(0,E.jsx)(Zt,{})});switch(r){case vn.ILEGAL_STATE:s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--error",children:(0,E.jsx)(rn,{})});break;case vn.ERROR:s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--error",children:(0,E.jsx)(qt,{})});break;case vn.WARNING:s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--warning",children:(0,E.jsx)(on,{})});break;case vn.SUCCESS:s=(0,E.jsx)("div",{className:"notification__message__content__icon notification__message__content__icon--success",children:(0,E.jsx)(nn,{})})}const l=()=>{e.notificationService.setNotification(void 0),a(!1)},c=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(o)));return(0,E.jsx)(En.A,{classes:{root:"notification",anchorOriginBottomRight:"notification__position"},anchorOrigin:{vertical:"bottom",horizontal:"right"},open:n,autoHideDuration:t?t.autoHideDuration??null:bn,onClose:(e,t)=>{"timeout"===t&&l()},children:(0,E.jsx)(Cn.A,{classes:{root:"notification__content",message:"notification__message",action:"notification__actions"},message:(0,E.jsxs)("div",{className:"notification__message__content",children:[s,(0,E.jsx)("div",{className:(0,Nt.$)("notification__message__content__text",{"notification__message__content__text--expanded":i}),onClick:c,title:"Click to Copy",children:o})]}),action:[(0,E.jsx)("button",{className:"notification__action",onClick:()=>a(!i),tabIndex:-1,title:i?"Collapse":"Expand",children:i?(0,E.jsx)(mn,{}):(0,E.jsx)(hn,{})},"expand"),(0,E.jsx)("button",{className:"notification__action",onClick:l,tabIndex:-1,title:"Dismiss",children:(0,E.jsx)(Kt,{})},"close")]})},"string"==typeof o||"number"==typeof o?o:"")}));var Sn=n(12436);const An=e=>{const{children:t,classes:n,...o}=e;return(0,E.jsx)(Sn.A,{classes:{...n??{},paper:"mui-menu__paper",list:"mui-menu__list"},transitionDuration:0,...o,children:e.children})},yn=e=>{const{className:t,children:n,menuProps:o,content:r,disabled:i,onClose:a,onOpen:s}=e,l=(0,Lt.useRef)(null),[c,u]=(0,Lt.useState)(!1),[d,p]=(0,Lt.useState)(),[g,m]=(0,Lt.useState)(0),[h,f]=(0,Lt.useState)(0),C=()=>{p(void 0),u(!1),f(0),m(0)},b=e=>{e.stopPropagation(),e.preventDefault(),C(),a?.()},v=e=>{if(e.stopPropagation(),e.preventDefault(),!i&&(s?.(),l.current)){const t=l.current.getBoundingClientRect(),n=t.left+(window.scrollX||document.documentElement.scrollLeft),o=t.top+(window.scrollY||document.documentElement.scrollTop),{clientX:r,clientY:i,target:s}=e,c=s;if(d!==c&&!(document.elementsFromPoint(r,i).some((e=>e===c))&&n<=r&&r<=n+t.width&&o<=i&&i<=o+t.height))return C(),void a?.();p(c),u(!0),f(i),m(r)}};return(0,E.jsxs)("div",{ref:l,className:t,onContextMenu:v,children:[n,(0,E.jsx)(An,{open:c,anchorPosition:{left:g,top:h},onClose:b,anchorReference:"anchorPosition",BackdropProps:{invisible:!0,onContextMenu:v},disableRestoreFocus:!0,transitionDuration:0,onClick:b,...o,children:c&&r},`${g}, ${h}`)]})},xn=(0,Lt.forwardRef)((function(e,t){const{className:n,children:o,...r}=e;return(0,E.jsx)("div",{ref:t,className:(0,Nt.$)("menu",n),...r,children:o})})),In=e=>{const{className:t,onClick:n,title:o,disabled:r,children:i,...a}=e;return(0,E.jsx)("button",{className:(0,Nt.$)("menu__item",t),disabled:Boolean(r),title:o,onClick:n,...a,children:i})};St("MenuContentDivider","menu__divider"),St("MenuContentItemIcon","menu__item__icon"),St("MenuContentItemLabel","menu__item__label");var wn=n(87062),kn=n(29163),Rn=n(30559);const On=e=>((0,Lt.useEffect)((()=>{Rn.A.initialize({startOnLoad:!0,theme:"dark"}),Rn.A.contentLoaded()}),[e.value]),(0,E.jsx)(wn.o,{className:(0,Nt.$)("markdown-content",e.className),remarkPlugins:[kn.A],components:e.components??{code:e=>{const{children:t,className:n,node:o,...r}=e,i=/language-(?<language>\w+)/.exec(n??"");return i?.groups?.language?(0,E.jsx)("code",{...r,className:(0,Nt.$)(i.groups.language),children:t}):(0,E.jsx)("code",{...r,className:n,children:t})}},children:e.value.value}));var Ln=n(49073),Fn=n(89463),Pn=(n(11097),n(53213)),Bn=n(65318),Dn=n(12777);function jn(...e){return(0,Ln.QP)((0,Nt.$)(e))}function Mn(e){const t=(0,Lt.useRef)(e?.skipOnMount),n=e?.refreshMode,o=e?.refreshRate??1e3,r=(0,Lt.useMemo)((()=>({leading:e?.refreshOptions?.leading,trailing:e?.refreshOptions?.trailing})),[e?.refreshOptions?.leading,e?.refreshOptions?.trailing]),[i,a]=(0,Lt.useState)({width:void 0,height:void 0}),s=(0,Lt.useRef)(null),l=(0,Lt.useMemo)((()=>e?.targetRef??s),[e?.targetRef]),c=e?.onResize,u=(0,Lt.useCallback)((e=>{t.current?t.current=!1:e.forEach((e=>{const t={width:e.contentRect.width,height:e.contentRect.height};a((n=>n.width===t.width&&n.height===t.height?n:(c?.({width:t.width,height:t.height,entry:e}),t)))}))}),[t,c]),d=(0,Lt.useMemo)((()=>{switch(n){case"debounce":return(0,Bn.A)(u,o,r);case"throttle":return(0,Dn.A)(u,o,r);default:return u}}),[u,n,o,r]);return(0,Lt.useEffect)((()=>{let e;return l.current?(e=new window.ResizeObserver(d),e.observe(l.current)):(c?.({width:void 0,height:void 0,entry:void 0}),a({width:void 0,height:void 0})),()=>{e?.disconnect(),"cancel"in d&&d.cancel()}}),[d,c,l]),{ref:l,...i}}const Un=e=>{const{children:t}=e,{ref:n,width:o,height:r}=Mn({refreshMode:"throttle",refreshRate:50,refreshOptions:{trailing:!0}}),[i,a]=(0,Lt.useState)(!1),{ref:s,width:l,height:c}=Mn({refreshMode:"throttle",refreshRate:50,refreshOptions:{trailing:!0}});return(0,Lt.useEffect)((()=>{a((l??0)>(o??0)+40&&(c??0)>(r??0)+40)}),[l,c,o,r]),(0,E.jsx)("div",{ref:s,className:"panel__content__blank",children:(0,E.jsx)("div",{ref:n,className:(0,Nt.$)("panel__content__blank__content",{"panel__content__blank__content--hide":!i}),children:t})})};var Gn=n(76367),Vn=n(14779),Hn=n(38347);const Wn=e=>{const{children:t,options:n,size:o,className:r,...i}=e,a=((e,t)=>{const n=[];for(let o=0;o<e.length;o+=t)n.push(e.slice(o,o+t));return n})(n,o);return(0,E.jsxs)("div",{className:(0,Nt.$)("mui-radio-group",r),children:[a.map(((e,t)=>(0,E.jsx)("div",{children:(0,E.jsx)(Gn.A,{className:"mui-radio-group__group",...i,children:e.map((e=>(0,E.jsx)(Vn.A,{className:"mui-radio-group__group__column",style:{width:100/o+"%"},value:e,control:(0,E.jsx)(Hn.A,{className:"mui-radio-group__group__item__radio-btn",classes:{checked:"mui-radio-group__group__item__radio-btn--checked"}}),label:(0,E.jsx)("div",{className:"mui-radio-group__group__item__label",children:e})},e)))})},t))),t]})};var $n=n(92895);const zn=e=>{const{children:t,...n}=e;return(0,E.jsx)($n.Ay,{classes:{paper:"mui-popover__paper"},transitionDuration:0,...n,children:e.children})};var Yn,Xn=n(64);!function(e){e.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX="question.how-to-use-advanced-search-syntax"}(Yn||(Yn={}));const Kn=(0,bt.PA)((e=>{const{entry:t}=e,n=Pt(),o=()=>{t.isOpen||Ue.logEvent_VirtualAssistantDocumentationEntryAccessed(n.telemetryService,{key:t.documentationKey}),t.setIsOpen(!t.isOpen)},r=n.guardUnhandledError((()=>n.clipboardService.copyTextToClipboard(t.documentationKey)));return(0,E.jsx)(yn,{className:"virtual-assistant__doc-entry",menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsx)(xn,{children:(0,E.jsx)(In,{onClick:r,children:"Copy Documentation Key"})}),children:(0,E.jsxs)("div",{className:"virtual-assistant__doc-entry",children:[(0,E.jsxs)("div",{className:"virtual-assistant__doc-entry__header",children:[(0,E.jsx)("button",{className:(0,Nt.$)("virtual-assistant__doc-entry__expand-icon",{"virtual-assistant__doc-entry__expand-icon--disabled":!t.content}),disabled:!t.content,tabIndex:-1,onClick:o,children:t.isOpen?(0,E.jsx)(mn,{}):(0,E.jsx)(fn,{})}),t.url?(0,E.jsx)("a",{className:"virtual-assistant__doc-entry__title virtual-assistant__doc-entry__title--link",rel:"noopener noreferrer",target:"_blank",href:t.url,onClick:()=>{Ue.logEvent_VirtualAssistantDocumentationEntryAccessed(n.telemetryService,{key:t.documentationKey})},title:"Click to see external documentation",children:t.title}):(0,E.jsx)("div",{className:"virtual-assistant__doc-entry__title",onClick:o,children:t.title})]}),t.isOpen&&t.content&&(0,E.jsx)("div",{className:"virtual-assistant__doc-entry__content",children:U(t.content)?(0,E.jsx)("div",{className:"virtual-assistant__doc-entry__content__text",children:t.content}):(0,E.jsx)(On,{className:"virtual-assistant__doc-entry__content__markdown-text",value:t.content})})]})})})),qn=(0,bt.PA)((()=>{const e=Pt(),t=e.assistantService.currentContextualDocumentationEntry,n=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(t?.context??""))),o=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(e.navigationContextService.currentContext?.key??""))),r=e.guardUnhandledError((()=>e.clipboardService.copyTextToClipboard(e.navigationContextService.contextStack.map((e=>e.key)).join(" > "))));return(0,E.jsxs)(yn,{className:"virtual-assistant__contextual-support",disabled:!t,menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsxs)(xn,{children:[(0,E.jsx)(In,{onClick:n,children:"Copy Context ID"}),(0,E.jsx)(In,{onClick:o,children:"Copy Current Context ID"}),(0,E.jsx)(In,{onClick:r,children:"Copy Context Stack"})]}),children:[t&&(0,E.jsxs)("div",{className:"virtual-assistant__contextual-support__content",children:[t.title&&(0,E.jsx)("div",{className:"virtual-assistant__contextual-support__title",children:t.title}),t.content&&(0,E.jsx)(E.Fragment,{children:U(t.content)?(0,E.jsx)("div",{className:"virtual-assistant__contextual-support__text",children:t.content}):(0,E.jsx)(On,{className:"virtual-assistant__contextual-support__markdown-text",value:t.content})}),t.related.length&&(0,E.jsxs)("div",{className:"virtual-assistant__contextual-support__relevant-entries",children:[(0,E.jsxs)("div",{className:"virtual-assistant__contextual-support__relevant-entries__title",children:["Related entries (",t.related.length,")"]}),t.related.map((e=>(0,E.jsx)(Kn,{entry:e},e.uuid)))]})]}),!t&&(0,E.jsx)(Un,{children:(0,E.jsxs)("div",{className:"virtual-assistant__panel__placeholder",children:[(0,E.jsx)(un,{className:"virtual-assistant__panel__placeholder__icon"}),(0,E.jsx)("div",{className:"virtual-assistant__panel__placeholder__message",children:"No contextual documentation found!"}),(0,E.jsx)("div",{className:"virtual-assistant__panel__placeholder__instruction",children:"Keep using the app. When contextual help is available, we will let you know!"})]})})]})})),Jn=(0,bt.PA)((()=>{const e=Pt(),t=(0,Lt.useRef)(null),n=e.assistantService,o=n.searchText,r=(0,Lt.useMemo)((()=>(0,Bn.A)((()=>n.search()),100)),[n]);return(0,Lt.useEffect)((()=>{t.current?.focus()}),[]),(0,E.jsxs)("div",{className:"virtual-assistant__search",children:[(0,E.jsxs)("div",{className:"virtual-assistant__search__header",children:[(0,E.jsx)("input",{ref:t,onClick:()=>{document.querySelectorAll('[role="dialog"]').length&&t.current!==document.activeElement&&n.refreshPanelRendering()},className:(0,Nt.$)("virtual-assistant__search__input input--dark",{"virtual-assistant__search__input--searching":o}),spellCheck:!1,onChange:e=>{n.setSearchText(e.target.value),r()},value:o,placeholder:"Ask me a question"}),o&&(0,E.jsx)("div",{className:"virtual-assistant__search__input__search__count",children:n.searchResults.length+(n.isOverSearchLimit?"+":"")}),(0,E.jsx)("button",{className:(0,Nt.$)("virtual-assistant__search__input__config__trigger",{"virtual-assistant__search__input__config__trigger--toggled":n.showSearchConfigurationMenu,"virtual-assistant__search__input__config__trigger--active":n.searchConfigurationState.isAdvancedSearchActive}),tabIndex:-1,onClick:()=>n.setShowSearchConfigurationMenu(!n.showSearchConfigurationMenu),title:(n.searchConfigurationState.isAdvancedSearchActive?"Advanced search is currently active\n":"")+"Click to toggle search config menu",children:(0,E.jsx)(Jt,{})}),o?(0,E.jsx)("button",{className:"virtual-assistant__search__input__clear-btn",tabIndex:-1,onClick:()=>{n.resetSearch(),n.currentDocumentationEntry=void 0,t.current?.focus()},title:"Clear",children:(0,E.jsx)(Kt,{})}):(0,E.jsx)("div",{className:"virtual-assistant__search__input__search__icon",children:(0,E.jsx)(en,{})})]}),(0,E.jsxs)("div",{className:"virtual-assistant__search__content",children:[(0,E.jsx)(Ut,{isLoading:n.searchState.isInProgress}),(0,E.jsx)("div",{className:(0,Nt.$)("virtual-assistant__search__input__config__panel",{"virtual-assistant__search__input__config__panel--toggled":n.showSearchConfigurationMenu}),children:(0,E.jsxs)("div",{className:"virtual-assistant__search__input__advanced-config__panel",children:[(0,E.jsxs)("div",{className:"virtual-assistant__search__input__advanced-config__panel__header__label",children:["search config",e.documentationService.hasDocEntry(Yn.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX)&&(0,E.jsx)("div",{onClick:()=>n.openDocumentationEntryLink(Yn.QUESTION_HOW_TO_USE_ADVANCED_SEARCH_SYNTAX),title:"Click to see documentation",className:"virtual-assistant__search__input__advanced-config__panel__header__label__hint",children:(0,E.jsx)(Qt,{})})]}),(0,E.jsx)("div",{children:(0,E.jsx)(Wn,{value:n.searchConfigurationState.currentMode,onChange:e=>{const t=e.target.value;n.searchConfigurationState.setCurrentMode(t)},row:!1,options:[Oe.STANDARD,Oe.INCLUDE,Oe.EXACT,Oe.INVERSE],size:1})})]})}),n.currentDocumentationEntry&&(0,E.jsx)("div",{className:"virtual-assistant__search__results",children:(0,E.jsx)(Kn,{entry:n.currentDocumentationEntry},n.currentDocumentationEntry.uuid)}),!n.currentDocumentationEntry&&(0,E.jsxs)(E.Fragment,{children:[Boolean(n.searchResults.length)&&(0,E.jsx)("div",{className:"virtual-assistant__search__results",children:n.searchResults.map((e=>(0,E.jsx)(Kn,{entry:e},e.uuid)))}),o&&!n.searchResults.length&&(0,E.jsx)(Un,{children:(0,E.jsxs)("div",{className:"virtual-assistant__panel__placeholder",children:[(0,E.jsx)(dn,{className:"virtual-assistant__panel__placeholder__icon"}),(0,E.jsx)("div",{className:"virtual-assistant__panel__placeholder__message",children:"No result..."})]})}),!o&&!n.searchResults.length&&(0,E.jsx)(yn,{className:"virtual-assistant__character__container",menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsxs)(xn,{children:[(0,E.jsx)(In,{onClick:()=>{le(`documentation-registry_${(0,Xn.GP)(new Date(Date.now()),Ke)}.json`,JSON.stringify(e.documentationService.publishDocRegistry(),void 0,2),ee.APPLICATION_JSON)},children:"Download documentation registry"}),(0,E.jsx)(In,{onClick:()=>{le(`documentation-registry_${(0,Xn.GP)(new Date(Date.now()),Ke)}.json`,JSON.stringify(e.documentationService.publishContextualDocIndex(),void 0,2),ee.APPLICATION_JSON)},children:"Download contextual documentation mapping"})]}),children:(0,E.jsxs)("div",{className:"virtual-assistant__character",children:[(0,E.jsxs)("div",{className:"virtual-assistant__character__figure",children:[(0,E.jsx)(cn,{className:"virtual-assistant__character__hat"}),(0,E.jsx)(gn,{className:"virtual-assistant__character__glasses"}),(0,E.jsx)(pn,{className:"virtual-assistant__character__beard"})]}),(0,E.jsx)("div",{className:"virtual-assistant__character__greeting",children:"Bonjour, It's Pierre!"}),(0,E.jsx)("div",{className:"virtual-assistant__character__question",children:"How can I help today?"})]})})]})]})]})})),Qn=(0,bt.PA)((e=>{const{triggerElement:t}=e,n=Pt(),o=n.assistantService,r=o.currentContextualDocumentationEntry,i=o.selectedTab,a=n.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraVirtualAssistantViewConfigurations?.()??[])),s=a.find((e=>e.key===i));return(0,E.jsx)(zn,{open:o.isOpen,className:"virtual-assistant__panel__container",anchorEl:t,hideBackdrop:!0,PaperProps:{classes:{root:"virtual-assistant__panel__container__root"}},disableEnforceFocus:!0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"right"},children:(0,E.jsxs)("div",{className:(0,Nt.$)("virtual-assistant__panel",{"virtual-assistant__panel--maximized":o.isPanelMaximized}),tabIndex:0,onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),e.stopPropagation())},children:[(0,E.jsxs)("div",{className:"virtual-assistant__panel__header",children:[(0,E.jsxs)("div",{className:"virtual-assistant__panel__header__tabs",children:[(0,E.jsx)("div",{className:(0,Nt.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":i===Le.SEARCH}),onClick:()=>o.setSelectedTab(Le.SEARCH),title:"Search",children:(0,E.jsx)("div",{className:"virtual-assistant__panel__header__tab__content",children:(0,E.jsx)(en,{})})}),(0,E.jsx)("div",{className:(0,Nt.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":i===Le.CONTEXTUAL_SUPPORT}),onClick:()=>o.setSelectedTab(Le.CONTEXTUAL_SUPPORT),title:"Contextual Support",children:(0,E.jsxs)("div",{className:"virtual-assistant__panel__header__tab__content",children:[(0,E.jsx)(ln,{}),r&&(0,E.jsx)("div",{className:"virtual-assistant__panel__header__tab__indicator",title:"Contextual support available"})]})}),a.map((e=>(0,E.jsx)("div",{className:(0,Nt.$)("virtual-assistant__panel__header__tab",{"virtual-assistant__panel__header__tab--active":i===e.key}),onClick:()=>{o.setSelectedTab(e.key),e.autoExpandOnOpen&&o.setIsPanelMaximized(!0)},title:e.title,children:(0,E.jsx)("div",{className:"virtual-assistant__panel__header__tab__content",children:e.icon??(0,E.jsx)(Qt,{})})},e.key)))]}),(0,E.jsxs)("div",{className:"virtual-assistant__panel__header__actions",children:[(0,E.jsx)("button",{className:"virtual-assistant__panel__header__action",tabIndex:-1,onClick:()=>o.setIsPanelMaximized(!o.isPanelMaximized),title:o.isPanelMaximized?"Minimize":"Maximize",children:o.isPanelMaximized?(0,E.jsx)(an,{}):(0,E.jsx)(sn,{})}),(0,E.jsx)("button",{className:"virtual-assistant__panel__header__action",tabIndex:-1,onClick:()=>o.setIsOpen(!1),title:"Close",children:(0,E.jsx)(Yt,{className:"virtual-assistant__panel__icon__close"})})]})]}),(0,E.jsxs)("div",{className:"virtual-assistant__panel__content",children:[i===Le.SEARCH&&(0,E.jsx)(Jn,{}),i===Le.CONTEXTUAL_SUPPORT&&(0,E.jsx)(qn,{}),s?.renderer()]})]})},o.panelRenderingKey)})),Zn=(0,bt.PA)((()=>{const[e,t]=(0,Lt.useState)(!1),[n,o]=(0,Lt.useState)((0,i.A)()),r=Pt(),a=(0,Lt.useRef)(null),s=r.assistantService,l=s.currentContextualDocumentationEntry,c=()=>{!s.isOpen&&l&&s.setSelectedTab(Le.CONTEXTUAL_SUPPORT),s.setIsOpen(!s.isOpen)};return(0,Lt.useEffect)((()=>{s.isHidden&&o((0,i.A)())}),[s.isHidden]),(0,E.jsx)(Fn,{bounds:"parent",onStart:()=>t(!0),onStop:()=>t(!1),nodeRef:a,handle:".virtual-assistant__station__drag-handle",children:(0,E.jsxs)("div",{className:"virtual-assistant",ref:a,children:[(0,E.jsxs)("div",{className:(0,Nt.$)("virtual-assistant__station",{"virtual-assistant__station--hidden":s.isHidden,"virtual-assistant__station--active":Boolean(l)}),children:[(0,E.jsx)("button",{className:"virtual-assistant__station__hide-button",title:"Hide assistant",onClick:()=>{r.assistantService.toggleAssistant()},children:(0,E.jsx)(tn,{})}),(0,E.jsx)("button",{className:"virtual-assistant__station__trigger",tabIndex:-1,onClick:c,title:s.isOpen?"Click to close assistant panel":(l?"Contextual support available.\n":"")+"Click to open Assistant...",children:(0,E.jsxs)("div",{className:"virtual-assistant__station__character",children:[(0,E.jsx)(cn,{className:"virtual-assistant__station__character__hat"}),(0,E.jsx)(gn,{className:"virtual-assistant__station__character__glasses"}),(0,E.jsx)(pn,{className:"virtual-assistant__station__character__beard"})]})}),(0,E.jsx)("div",{className:"virtual-assistant__station__label",onClick:c,children:"Assistant"}),(0,E.jsx)(yn,{className:(0,Nt.$)("virtual-assistant__station__drag-handle",{"virtual-assistant__station__drag-handle--dragging":e}),menuProps:{elevation:7,classes:{root:"virtual-assistant__context-menu"}},content:(0,E.jsxs)(xn,{children:[(0,E.jsx)(In,{onClick:()=>{s.setIsOpen(!1),o((0,i.A)())},children:"Reset Position"}),(0,E.jsx)(In,{onClick:()=>r.assistantService.hideAssistant(),children:"Hide Assistant"})]}),children:(0,E.jsx)("div",{className:"virtual-assistant__station__drag-handle__content",title:e?void 0:"Grab to drag assistant",children:(0,E.jsx)(Xt,{})})})]},l?.uuid??""),!e&&s.isOpen&&!s.isHidden&&a.current&&(0,E.jsx)(Qn,{triggerElement:a.current})]})},n)}));var eo;!function(e){e.TOP_LEVEL_CONTAINER="application.top-level-container",e.BACKDROP_CONTAINER="application.backdrop-container"}(eo||(eo={}));const to=["Meta+KeyP","Control+KeyP","Meta+KeyS","Control+KeyS","F8","F10","F11","Meta+Shift+KeyP","Control+Backquote","Control+Shift+KeyN","Control+Shift+KeyP","Meta+KeyB","Control+KeyB","F7","Alt+F7","Control+Shift+KeyB","Alt+KeyZ"],no=(e,t)=>{const n={};return e.forEach(((e,o)=>{e.length&&(n[o]={combinations:e,handler:t})})),n.INTERNAL__PLATFORM_NATIVE_KEYBOARD_COMMAND={combinations:to,handler:(e,t)=>{t.preventDefault()}},n},oo=e=>(0,E.jsx)("div",{className:"backdrop__container","data-elementid":e.elementId}),ro=(0,bt.PA)((e=>{const{children:t}=e,n=Pt(),o=no(n.keyboardShortcutsService.commandKeyMap,((e,t)=>{to.includes(e)&&t.preventDefault(),n.keyboardShortcutsService.dispatch(e)}));return(0,Lt.useEffect)((()=>{const e=ct(o);return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[o]),(0,Lt.useEffect)((()=>{const e=()=>{document.hidden&&(Ue.logEvent_ApplicationUsageInterrupted(n.telemetryService),n.timeService.recordUsageInterruption())};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}}),[n]),(0,E.jsxs)(ft,{children:[(0,E.jsx)(Gt,{}),(0,E.jsx)(Mt,{}),(0,E.jsx)(Nn,{}),(0,E.jsx)(Zn,{}),n.layoutService.showBackdrop&&(0,E.jsx)(Et.A,{container:n.layoutService.getElementByID(n.layoutService.backdropContainerElementID??eo.BACKDROP_CONTAINER)??null,children:(0,E.jsx)(Ct.A,{className:"backdrop",open:n.layoutService.showBackdrop})}),(0,E.jsx)(vt.Q,{backend:_t.t2,children:(0,E.jsxs)("div",{style:{height:"100%",width:"100%"},"data-elementid":eo.TOP_LEVEL_CONTAINER,onContextMenu:e=>{e.stopPropagation(),e.preventDefault()},children:[(0,E.jsx)(oo,{elementId:eo.BACKDROP_CONTAINER}),t]})})]})})),io=(0,bt.PA)((e=>{const{children:t}=e,n=Pt(),o=no(n.keyboardShortcutsService.commandKeyMap,((e,t)=>{to.includes(e)&&t.preventDefault(),n.keyboardShortcutsService.dispatch(e)}));return(0,Lt.useEffect)((()=>{const e=ct(o);return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[o]),(0,E.jsx)(ft,{children:(0,E.jsx)(vt.Q,{backend:_t.t2,children:(0,E.jsxs)("div",{style:{height:"100%",width:"100%"},"data-elementid":eo.TOP_LEVEL_CONTAINER,onContextMenu:e=>{e.stopPropagation(),e.preventDefault()},children:[(0,E.jsx)(oo,{elementId:eo.BACKDROP_CONTAINER}),t]})})})})),ao={foreground:"#cccccc",background:"#1e1e1e",cursor:"#cccccc",selectionBackground:"#264f78",black:"#000000",red:"#cd3131",green:"#0dbc79",yellow:"#e5e510",blue:"#2472c8",magenta:"#bc3fbc",cyan:"#11a8cd",white:"#e5e5e5",brightBlack:"#666666",brightRed:"#f14c4c",brightGreen:"#23d18b",brightYellow:"#f5f543",brightBlue:"#3b8eea",brightMagenta:"#d670d6",brightCyan:"#29b8db",brightWhite:"#e5e5e5"},so={matchOverviewRuler:"#d186167e",activeMatchColorOverviewRuler:"#A0A0A0CC",matchBackground:"#62331c",activeMatchBackground:"#515C6A"},lo=`\n${qe.BOLD}${qe.BRIGHT_BLUE}$purist${qe.RESET}\n${qe.BOLD}${qe.MAGENTA}❯${qe.RESET} `,co="❯ ";class uo{terminal;regex;handler;constructor(e,t,n){this.terminal=e,this.regex=t,this.handler=n}provideLinks(e,t){t(this.computeLink(e).map((e=>({range:e.range,text:e.text,activate:this.handler}))))}computeLink(e){const[t,n]=this.translateBufferLineToStringWithWrap(e-1),o=new RegExp(this.regex.source,`${this.regex.flags||""}g`);let r,i=-1;const a=[];for(;null!==(r=o.exec(t));){const e=r[0];if(!e)break;if(i=t.indexOf(e,i+1),o.lastIndex=i+e.length,i<0)break;a.push({text:e,range:{start:this.stringIndexToBufferPosition(i,n,!1),end:this.stringIndexToBufferPosition(i+e.length-1,n,!0)}})}return a}translateBufferLineToStringWithWrap(e){let t,n,o="";do{const t=this.terminal.buffer.active.getLine(e);if(!t)break;t.isWrapped&&e--,n=t.isWrapped}while(n);const r=e;do{const n=this.terminal.buffer.active.getLine(e+1);t=!!n&&n.isWrapped;const r=this.terminal.buffer.active.getLine(e);if(!r)break;o+=r.translateToString(!0).substring(0,this.terminal.cols),e++}while(t);return[o,r]}stringIndexToBufferPosition(e,t,n){const o=this.terminal.buffer.active.getNullCell();for(;e;){const r=this.terminal.buffer.active.getLine(t);if(!r)return{x:0,y:0};const i=r.length;let a=0;for(;a<i;){if(r.getCell(a,o),(e-=o.getChars().length)<0)return{x:a+(n?o.getWidth():1),y:t+1};a+=o.getWidth()}t++}return{x:1,y:t+1}}}class po extends et{instance;resizer;renderer;searcher;linkProvider;_TEMPORARY__onKeyListener;_TEMPORARY__onDataListener;command="";commandHistory=[];currentCommandSearchString="";commandHistoryNavigationIdx=void 0;isRunningCommand=!1;setupState=Ie.create();constructor(e){super(e),this.instance=new We.Terminal({allowProposedApi:!0,fontSize:12,letterSpacing:2,fontWeight:400,fontWeightBold:700,fontFamily:'"Roboto Mono", Menlo, Consolas, monospace',tabStopWidth:2,theme:ao,overviewRulerWidth:14,scrollback:1e5,convertEol:!0,scrollOnUserInput:!1}),this.resizer=new $e.FitAddon,this.searcher=new ze.SearchAddon,this.renderer=new Xe.WebglAddon}setup(e){if(this.setupState.hasCompleted)throw new x("Terminal is already set up");this.setupState.complete(),this.renderer.onContextLoss((()=>{this.renderer.dispose()})),this.instance.loadAddon(this.resizer),this.instance.loadAddon(this.searcher),this.instance.loadAddon(this.renderer),this.instance.loadAddon(new Ye.Unicode11Addon),this.instance.unicode.activeVersion="11",this.instance.attachCustomKeyEventHandler((e=>lt(e,"Control+KeyF")||lt(e,"Meta+KeyF")?(e.preventDefault(),e.stopPropagation(),this.searchConfig.focus(),!1):!(lt(e,"Control+KeyC")&&this.instance.hasSelection()||lt(e,"Control+KeyV")))),e?.webLinkProvider&&(this.linkProvider=this.instance.registerLinkProvider(new uo(this.instance,e.webLinkProvider.regex,e.webLinkProvider.handler))),(e?.commands??[]).forEach((e=>{[e.command,...e.aliases??[]].forEach((t=>{this.commandRegistry.has(t)?this.applicationStore.logService.warn(c.create(de.TERMINAL_COMMAND_CONFIGURATION_CHECK__FAILURE),`Found multiple duplicated terminal commands '${t}'`):this.commandRegistry.set(t,e)}))})),this.searcher.onDidChangeResults((e=>{this.setSearchResultCount(e.resultCount),this.setSearchCurrentResultIndex(e.resultIndex)})),this._TEMPORARY__onKeyListener=this.instance.onKey((({key:e,domEvent:t})=>{var n,o;if("ArrowUp"!==t.code)if("ArrowDown"!==t.code)if(this.commandHistoryNavigationIdx=void 0,"Enter"===t.code){if(this.command.trim()){const e=this.command,[t,...n]=e.replaceAll(/\s+/g," ").split(" ");if(this.addCommandToHistory(this.command),!t)return;const o=this.commandRegistry.get(t);if(!o)return void this.fail(`command not found: ${t}`);if(this.isRunningCommand)return;this.isRunningCommand=!0,o.handler(n.map((e=>e.trim())),t,e).catch((()=>{})).finally((()=>{this.isRunningCommand=!1,this.isFlushed||this.abort()}))}}else if(lt(t,"Control+KeyD")||lt(t,"Control+KeyC")&&!this.instance.hasSelection())this.abort();else if("Backspace"===t.code)this.deleteFromCommand(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!0):-1);else if("Delete"===t.code)this.deleteFromCommand(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!1):1);else if("ArrowLeft"===t.code){const e=this.computeCursorMovement(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!0):-1);this.instance.scrollLines(e.scroll),this.instance.write(e.seq)}else if("ArrowRight"===t.code){const e=this.computeCursorMovement(t.altKey||t.ctrlKey?this.computeCursorJumpMovement(!1):1);this.instance.scrollLines(e.scroll),this.instance.write(e.seq)}else e.match(/^[A-Za-z0-9!@#$%^&*()\-_=+"':;,.<>/?[\]{}|\\~` ]$/)?this.writeToCommand(e):(n=t,o=this.applicationStore,o.layoutService.getElementByID(eo.TOP_LEVEL_CONTAINER)?.dispatchEvent(new KeyboardEvent(n.type,n)));else void 0!==this.commandHistoryNavigationIdx&&this.setCommandFromHistory(0===this.commandHistoryNavigationIdx?void 0:this.commandHistoryNavigationIdx-1);else this.setCommandFromHistory(void 0!==this.commandHistoryNavigationIdx?this.commandHistoryNavigationIdx+1:0)})),this._TEMPORARY__onDataListener=this.instance.onData((e=>{e.length>1&&!e.startsWith("")&&this.writeToCommand(e.replaceAll(/[^A-Za-z0-9!@#$%^&*()\-_=+"':;,.<>/?[\]{}|\\~` ]/g,"").trimEnd())}))}getCommandRange(){const e=this.instance.buffer.active,t=this.instance.cols,n=`${co}${this.command}`,o=`${co}${this.command.substring(0,t-2)}${this.command.length<t-2?" ".repeat(t-this.command.length-2):""}`;let r=0,i=0;for(let n=e.baseY+e.cursorY;n>-1;--n){if(P(e.getLine(n)).translateToString()===o){r=n,i+=(n===e.baseY+e.cursorY?e.cursorX:t)-2;break}i+=n===e.baseY+e.cursorY?e.cursorX:t}return{startY:r,startX:2,endY:r+(n.length-n.length%t)/t,endX:n.length%t,cursorIdx:i}}computeCursorJumpMovement(e){const t=this.getCommandRange();let n,o=!1;if(e){for(let e=t.cursorIdx-1;e>-1;--e)if(this.command.charAt(e).match(/\w/))o||(o=!0);else if(o){n=t.cursorIdx-e-1;break}}else for(let e=t.cursorIdx+1;e<this.command.length;++e)if(this.command.charAt(e).match(/\w/))o||(o=!0);else if(o){n=e-t.cursorIdx-1;break}return void 0===n&&(n=e?t.cursorIdx:this.command.length-t.cursorIdx),e?-n:n}computeCursorMovement(e,t=!0){const n=this.instance.buffer.active,o=this.instance.cols,r=this.instance.rows,i=this.getCommandRange(),a=t?e<0?i.cursorIdx:this.command.length-i.cursorIdx:e,s=Math.min(Math.abs(e),a);let l=n.cursorX,c=n.cursorY,u=n.baseY+n.cursorY;e<0?(l=(o+(n.cursorX-s)%o)%o,c=n.cursorY-(s>n.cursorX?Math.ceil(s/o):0),u=c+n.baseY,c=Math.max(c,-1)):e>0&&(l=(n.cursorX+s)%o,c=n.cursorY+(n.cursorX+s>=o?Math.floor((n.cursorX+s)/o):0),u=c+n.baseY,c=Math.min(c,r-1));const d=u>n.viewportY+r?u-(n.viewportY+r):u<n.viewportY?u-n.viewportY:0;return{seq:Je(c+1,l+1),scroll:d}}writeToCommand(e){const t=this.getCommandRange(),n=this.command.slice(0,t.cursorIdx),o=this.command.slice(t.cursorIdx),r=this.computeCursorMovement(e.length,!1);this.instance.scrollLines(r.scroll),this.instance.write(e+o+r.seq),this.setCommand(n+e+o)}deleteFromCommand(e){const t=this.getCommandRange(),n=e<0?t.cursorIdx:this.command.length-t.cursorIdx,o=Math.min(Math.abs(e),n);let r,i,a;if(0===e)return;e<0?(r=this.command.slice(0,t.cursorIdx-o),i=this.command.slice(t.cursorIdx,this.command.length),a=-o):(r=this.command.slice(0,t.cursorIdx),i=this.command.slice(t.cursorIdx+o,this.command.length),a=0);const s=this.computeCursorMovement(a);this.instance.scrollLines(s.scroll),this.instance.write(Je(t.startY+1,t.startX+1)+r+i+" ".repeat(o)+s.seq),this.setCommand(r+i)}get isSetup(){return this.setupState.hasCompleted}isFocused(){return document.activeElement===this.instance.textarea}mount(e){if(!this.setupState.hasCompleted)throw new x("XTerm terminal has not been set up yet");this.instance.open(e)}dispose(){this.searcher.dispose(),this.resizer.dispose(),this.renderer.dispose(),this.linkProvider?.dispose(),this._TEMPORARY__onKeyListener?.dispose(),this._TEMPORARY__onDataListener?.dispose(),this.instance.dispose()}autoResize(){this.resizer.fit()}focus(){this.instance.focus()}addCommandToHistory(e){e!==this.commandHistory.at(0)&&this.commandHistory.unshift(e)}setCommandFromHistory(e){const t=void 0===e?this.currentCommandSearchString:this.commandHistory.filter((e=>e.startsWith(this.currentCommandSearchString))).at(e);if(void 0!==t){let n=this.getCommandRange();this.instance.write(Je(n.startY+1,n.startX+1)+t.padEnd(this.command.length)),this.command=t,n=this.getCommandRange(),this.instance.write(Je(n.endY+1,n.endX+1)),this.commandHistoryNavigationIdx=e}}setCommand(e){this.command=e,this.currentCommandSearchString=e,this.commandHistoryNavigationIdx=void 0}newCommand(){this.instance.write(lo),this.setCommand("")}newSystemCommand(e){this.isRunningCommand||(this.command&&(this.abort(),this.newCommand()),this.instance.write(`${qe.DIM}(system: ${e})\n${qe.RESET}`))}flushScreen(){this.instance.write("c"),this.instance.reset()}get isFlushed(){const e=this.instance.buffer.active;let t=!0;for(let n=e.baseY+e.cursorY;n>-1;--n){const o=P(e.getLine(n)).translateToString();if(o.trim()){t=o!==co;break}}return""===this.command&&t}clear(){this.flushScreen(),this.instance.scrollToTop(),this.newCommand()}resetANSIStyling(){this.instance.write(qe.RESET)}showHelp(){var e;this.resetANSIStyling(),this.instance.scrollToBottom(),this.isFlushed||this.isRunningCommand||this.abort(),this.instance.write((e=this.commandRegistry,`\n${qe.BRIGHT_BLACK}+-------------------------------------------------------+${qe.RESET}\n${qe.BRIGHT_BLACK}|${qe.RESET} ${qe.BRIGHT_GREEN}[@@]${qe.RESET} "Hi! Welcome to the HELP menu of Pure IDE" ${qe.BRIGHT_BLACK}|${qe.RESET}\n${qe.BRIGHT_BLACK}|${qe.RESET} ${qe.BRIGHT_GREEN}/|__|\\${qe.RESET} ${qe.BRIGHT_BLACK}|${qe.RESET}\n${qe.BRIGHT_BLACK}+--${qe.RESET} ${qe.BRIGHT_GREEN}d b${qe.RESET} ${qe.BRIGHT_BLACK}-----------------------------------------------+${qe.RESET}\n\nFollowing is the list of supported commands:\n\n${(0,tt.A)(Array.from(e.values()),(e=>e.command)).map((e=>`${qe.BRIGHT_GREEN}${e.command.padEnd(30)}${qe.RESET}${e.description}${e.aliases?.length?`\n${"".padEnd(30)}Aliases: ${e.aliases.join(", ")}`:""}\n${"".padEnd(30)}Usage: ${qe.DIM}${e.usage}${qe.RESET}`)).join("\n")}`)),this.abort()}showCommonANSIEscapeSequences(){this.resetANSIStyling(),this.instance.scrollToBottom(),this.isFlushed||this.isRunningCommand||this.abort(),this.instance.write(`\nCommon ANSI Escape Sequences for Styling:\n\n${Object.entries(qe).map((([e,t])=>`${t}${(e=>e?e.trim().match(/^[A-Z_]+$/)?rt(e.trim().replace(/_+/gu," ").toLowerCase()):nt(e.trim()).split(/(?<chunk>[A-Z][a-z]+|[0-9]+)/).map((e=>e.toUpperCase()===e?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).filter(Boolean).join(" ").replace(/_+/gu," ").replace(/\s+/gu," "):"")(e).padEnd(20)}${qe.RESET} ${t.replace("","\\u001b")}`)).join("\n")}`),this.abort()}abort(){this.resetANSIStyling(),this.instance.write("\n"),this.newCommand(),this.instance.scrollToBottom(),this.isRunningCommand=!1}fail(e,t){t?.systemCommand&&this.newSystemCommand(t.systemCommand),this.instance.write(`\n${e}`),this.abort()}output(e,t){this.resetANSIStyling(),t?.clear&&!this.preserveLog||!t?.systemCommand||this.newSystemCommand(t.systemCommand),!this.preserveLog&&t?.clear?this.flushScreen():(this.preserveLog||this.isRunningCommand)&&this.instance.write("\n"),this.instance.write(e),this.resetANSIStyling(),this.instance.write("\n"),this.instance.scrollToBottom(),this.newCommand()}search(e){this.searcher.findNext(e,{decorations:so,regex:this.searchConfig.useRegex,wholeWord:this.searchConfig.matchWholeWord,caseSensitive:this.searchConfig.matchCaseSensitive,incremental:!0})}clearSearch(){this.searcher.clearDecorations(),this.instance.clearSelection(),this.setSearchText(""),this.setSearchResultCount(void 0),this.setSearchCurrentResultIndex(void 0)}findPrevious(){this.searcher.findPrevious(this.searchConfig.searchText,{decorations:so,regex:this.searchConfig.useRegex,wholeWord:this.searchConfig.matchWholeWord,caseSensitive:this.searchConfig.matchCaseSensitive})}findNext(){this.searcher.findNext(this.searchConfig.searchText,{decorations:so,regex:this.searchConfig.useRegex,wholeWord:this.searchConfig.matchWholeWord,caseSensitive:this.searchConfig.matchCaseSensitive})}getContent(){const e=this.instance.buffer.active,t=[];for(let n=0;n<e.length;++n){const o=P(e.getLine(n));t.push(o.translateToString())}return t.join("\n").trimEnd()}copy(){this.instance.hasSelection()?this.applicationStore.clipboardService.copyTextToClipboard(this.instance.getSelection()).catch(this.applicationStore.alertUnhandledError):this.applicationStore.notificationService.notifyWarning("Ther terminal has no selection to copy")}copyAll(){this.applicationStore.clipboardService.copyTextToClipboard(this.getContent()).catch(this.applicationStore.alertUnhandledError)}}class go{applicationStore;terminal;constructor(e){this.applicationStore=e,this.terminal=new po(e)}}const mo="(unknown)";class ho{applicationStore;currentUser=mo;constructor(e){(0,xe.Gn)(this,{currentUser:xe.sH,setCurrentUser:xe.XI}),this.applicationStore=e}get isAnonymous(){return this.currentUser===mo}setCurrentUser(e){this.currentUser=e}}var fo,Eo=n(75992);class Co{get localStorage(){return P(window.localStorage,"'window.localStorage' object is not available in non-web environment")}setItem(e,t){this.localStorage.setItem(e,t)}getItem(e){return this.localStorage.getItem(e)}removeItem(e){this.localStorage.removeItem(e)}clear(){this.localStorage.clear()}hasItem(e){return this.localStorage.hasItem(e)}}class bo{storeIndex;storageService;data;constructor(e,t){this.storageService=e,this.storeIndex=t,this.data=this.storageService.getIndex(this.storeIndex)??{}}getValue(e){return this.data[e]}getNumericValue(e){const t=this.getValue(e);return void 0!==t?$(t):void 0}getStringValue(e){const t=this.getValue(e);return void 0!==t?W(t):void 0}getBooleanValue(e){const t=this.getValue(e);return void 0!==t?z(t):void 0}getObjectValue(e){const t=this.getValue(e);return void 0!==t?((e,t="")=>(function(e,t=""){if(!H(e))throw new R(t||"Value is expected to be a object")}(e,t),e))(t):void 0}hasValue(e){return L(this.data[e])}persistValue(e,t){void 0!==t?this.data[e]=t:delete this.data[e],this.storageService.updateIndex(this.storeIndex,this.data)}}class vo{applicationStore;storage;data;constructor(e){this.applicationStore=e,this.storage=new Co;const t=this.storage.getItem(e.config.applicationStorageKey);this.data=t?k((()=>JSON.parse(t)))??{}:{}}getIndex(e){return this.data[e]}updateIndex(e,t){(0,Eo.A)(t)?delete this.data[e]:this.data[e]=t,this.storage.setItem(this.applicationStore.config.applicationStorageKey,JSON.stringify(this.data))}}class _o{applicationStore;plugins=[];constructor(e){this.applicationStore=e}registerPlugins(e){this.plugins=e}setup(){const e={userId:this.applicationStore.identityService.currentUser,appName:this.applicationStore.config.appName,appEnv:this.applicationStore.config.env,appVersion:this.applicationStore.config.appVersion,appSessionId:this.applicationStore.uuid,appStartTime:this.applicationStore.timeService.timestamp};this.plugins.forEach((t=>t.setup(e)))}logEvent(e,t){this.plugins.forEach((n=>n.logEvent(e,t)))}}class To{timestamp=Date.now();interruptions=[];recordUsageInterruption(){this.interruptions.push(Date.now())}finalizeTimingsRecord(e,t){const n=e.elapsed,o=e.startTime,r=o+n,i={...t??{},...Object.fromEntries(e.records),total:n};let a=0;for(const e of this.interruptions)if(e>=o&&e<=r)a++;else if(e>r)break;return a>0?{...i,__numberOfInteruptions:a}:i}}!function(e){e.DEFAULT_DARK="default-dark",e.LEGACY_LIGHT="legacy-light",e.HIGH_CONTRAST_LIGHT="hc-light"}(fo||(fo={}));const No={name:"Default Dark (default)",key:fo.DEFAULT_DARK,TEMPORARY__globalCSSClassName:"theme__default-dark",colors:{"data-access-overview.chart.access-granted":"#6a9955","data-access-overview.chart.access-approved":"#007acc","data-access-overview.chart.access-requested":"#fbbc05","data-access-overview.chart.access-not-granted":"#ea4646","data-access-overview.chart.unsupported-access":"#2d2d2d"}},So={name:"Legacy Light",key:fo.LEGACY_LIGHT,TEMPORARY__globalCSSClassName:"theme__legacy-light"},Ao={name:"High-Contrast Light",key:fo.HIGH_CONTRAST_LIGHT,TEMPORARY__globalCSSClassName:"theme__hc-light",colors:{"data-access-overview.chart.access-granted":"#52a31d","data-access-overview.chart.access-approved":"#3d8df5","data-access-overview.chart.access-requested":"#f5c518","data-access-overview.chart.access-not-granted":"#fa5343","data-access-overview.chart.unsupported-access":"#e1e7ea"}};var yo;!function(e){e.COLOR_THEME="application.layout.colorTheme"}(yo||(yo={}));const xo={[yo.COLOR_THEME]:{defaultValue:fo.DEFAULT_DARK}};class Io{applicationStore;backdropContainerElementID;showBackdrop=!1;colorThemeRegistry=new Map;currentColorTheme;constructor(e){(0,xe.Gn)(this,{currentColorTheme:xe.sH.ref,TEMPORARY__isLightColorThemeEnabled:xe.EW,backdropContainerElementID:xe.sH,showBackdrop:xe.sH,setBackdropContainerElementID:xe.XI,setShowBackdrop:xe.XI,setColorTheme:xe.XI}),this.applicationStore=e,this.colorThemeRegistry.set(fo.DEFAULT_DARK,No),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraColorThemes?.()??[])).forEach((e=>{this.colorThemeRegistry.has(e.key)?this.applicationStore.logService.warn(c.create(de.COLOR_THEME_CONFIGURATION_CHECK__FAILURE),`Found duplicated color themes with key '${e.key}'`):this.colorThemeRegistry.set(e.key,e)}));const t=this.applicationStore.settingService.getStringValue(yo.COLOR_THEME)??fo.DEFAULT_DARK;this.currentColorTheme=P(this.colorThemeRegistry.get(t)),this.TEMPORARY__syncGlobalCSSClassName(this.currentColorTheme,void 0)}getElementByID(e){return document.querySelector(`[data-elementid='${e}']`)??void 0}setWindowTitle(e){document.title=e}setBackdropContainerElementID(e){this.backdropContainerElementID=e}setShowBackdrop(e){this.showBackdrop=e}get TEMPORARY__isLightColorThemeEnabled(){return this.currentColorTheme.key!==fo.DEFAULT_DARK}TEMPORARY__syncGlobalCSSClassName(e,t){t&&document.body.classList.remove(t.TEMPORARY__globalCSSClassName),document.body.classList.add(e.TEMPORARY__globalCSSClassName)}setColorTheme(e,t){const n=this.colorThemeRegistry.get(e);if(e===this.currentColorTheme.key||!n)return;const o=this.currentColorTheme;this.currentColorTheme=n,this.TEMPORARY__syncGlobalCSSClassName(n,o),t?.persist&&this.applicationStore.settingService.persistValue(yo.COLOR_THEME,e)}getColor(e){return this.currentColorTheme.colors?.[e]??P(this.colorThemeRegistry.get(fo.DEFAULT_DARK)).colors?.[e]??"transparent"}}class wo{applicationStore;constructor(e){this.applicationStore=e}async copyTextToClipboard(e,t){await navigator.clipboard.writeText(e).catch((e=>{this.applicationStore.notificationService.notifyError(e)})).finally((()=>{t?.notifySuccessMessage&&this.applicationStore.notificationService.notifySuccess(t.notifySuccessMessage)}))}}class ko{navigator;constructor(e){this.navigator=e}}var Ro=n(42853);class Oo{applicationStore;storage;registry=new Map;constructor(e){this.applicationStore=e,this.storage=new bo(this.applicationStore.storageService,"application-settings-storage"),this.applicationStore.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraSettingConfigurationEntries?.()??[])).forEach((e=>{this.registry.has(e.key)?this.applicationStore.logService.warn(c.create(de.SETTING_CONFIGURATION_CHECK__FAILURE),`Found duplicated setting with key '${e.key}'`):this.registry.set(e.key,e)}))}getNumericValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(void 0===t||G(t))return t;this.applicationStore.logService.warn(c.create(de.SETTING_RETRIVE_FAILURE),`Can't retrieve numeric value for setting '${e}'`)}getStringValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(void 0===t||U(t))return t;this.applicationStore.logService.warn(c.create(de.SETTING_RETRIVE_FAILURE),`Can't retrieve string value for setting '${e}'`)}getBooleanValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(void 0===t||V(t))return t;this.applicationStore.logService.warn(c.create(de.SETTING_RETRIVE_FAILURE),`Can't retrieve boolean value for setting '${e}'`)}getObjectValue(e){const t=this.storage.getValue(e)??this.registry.get(e)?.defaultValue;if(void 0===t||H(t))return t;this.applicationStore.logService.warn(c.create(de.SETTING_RETRIVE_FAILURE),`Can't retrieve object value for setting '${e}'`)}persistValue(e,t){const n=this.registry.get(e)?.defaultValue;this.storage.persistValue(e,void 0!==n&&(0,Ro.A)(n,t)?void 0:t)}}class Lo{goToLocation(e,t){throw new I("Navigator does not support this operation")}reload(e){throw new I("Navigator does not support this operation")}goToAddress(e,t){throw new I("Navigator does not support this operation")}visitAddress(e){throw new I("Navigator does not support this operation")}generateAddress(e){throw new I("Navigator does not support this operation")}updateCurrentLocation(e){throw new I("Navigator does not support this operation")}updateCurrentZone(e){throw new I("Navigator does not support this operation")}resetZone(){throw new I("Navigator does not support this operation")}getCurrentBaseAddress(e){throw new I("Navigator does not support this operation")}getCurrentAddress(){throw new I("Navigator does not support this operation")}getCurrentLocation(){throw new I("Navigator does not support this operation")}getCurrentLocationParameters(){throw new I("Navigator does not support this operation")}getCurrentLocationParameterValue(e){throw new I("Navigator does not support this operation")}getCurrentZone(){throw new I("Navigator does not support this operation")}blockNavigation(e,t,n){throw new I("Navigator does not support this operation")}unblockNavigation(){throw new I("Navigator does not support this operation")}get isNavigationBlocked(){throw new I("Navigator does not support this operation")}INTERNAL__internalizeTransientParameter(e){throw new I("Navigator does not support this operation")}}class Fo{applicationStore;storage;constructor(e){this.applicationStore=e,this.storage=new bo(this.applicationStore.storageService,"application-user-data-storage")}getNumericValue(e){const t=this.storage.getValue(e);if(void 0===t||G(t))return t;this.applicationStore.logService.warn(c.create(de.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve numeric value for user data '${e}'`)}getStringValue(e){const t=this.storage.getValue(e);if(void 0===t||U(t))return t;this.applicationStore.logService.warn(c.create(de.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve string value for user data '${e}'`)}getBooleanValue(e){const t=this.storage.getValue(e);if(void 0===t||V(t))return t;this.applicationStore.logService.warn(c.create(de.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve boolean value for user data '${e}'`)}getObjectValue(e){const t=this.storage.getValue(e);if(void 0===t||H(t))return t;this.applicationStore.logService.warn(c.create(de.USER_DATA_RETRIEVE_FAILURE),`Can't retrieve object value for user data '${e}'`)}persistValue(e,t){this.storage.persistValue(e,t)}}const Po=e=>/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/.test(e);var Bo;!function(e){e.BUG_FIX="BUG_FIX",e.ENHANCEMENT="ENHANCEMENT"}(Bo||(Bo={}));const Do="application.lastOpenedVersion";class jo{applicationStore;releaseNotes;showCurrentReleaseModal=!0;showReleaseLog=!1;isConfigured=!1;constructor(e){(0,xe.Gn)(this,{showCurrentReleaseModal:xe.sH,showReleaseLog:xe.sH,isConfigured:xe.sH,setShowCurrentRelease:xe.XI,configure:xe.XI,setReleaseLog:xe.XI}),this.applicationStore=e}configure(e){this.isConfigured=!0,this.releaseNotes=(e=>e.map((e=>(j(e.version,"Release notes 'version' is missing"),e.notes?.map((e=>(j(e.type,"Release note 'type' is missing"),j(e.description,"Release note 'description' is missing"),e))),e))))(e)}setShowCurrentRelease(e){this.showCurrentReleaseModal=e}setReleaseLog(e){this.showReleaseLog=e}getViewedVersion(){return this.applicationStore.userDataService.getStringValue(Do)}updateViewedVersion(){this.applicationStore.userDataService.persistValue(Do,this.applicationStore.config.appVersion)}showVersion(e,t){const n=e.version;return!(!Po(n)||!Po(t)||1!==(o=t,n.localeCompare(o,void 0,{numeric:!0})));var o}showableVersions(){const e=this.getViewedVersion();if(e)return this.releaseNotes?.filter((t=>this.showVersion(t,e)))}}class Mo{uuid=(0,i.A)();extensionStates=[];config;pluginManager;initState=Ie.create();platform;timeService;logService;storageService;userDataService;settingService;alertService;notificationService;identityService;commandService;keyboardShortcutsService;layoutService;clipboardService;terminalService;navigationService;navigationContextService;documentationService;assistantService;releaseNotesService;eventService;telemetryService;tracerService;constructor(e,t){this.config=e,this.pluginManager=t,this.timeService=new To,this.logService=new d,this.logService.registerPlugins(t.getLoggerPlugins()),this.storageService=new vo(this),this.settingService=new Oo(this),this.userDataService=new Fo(this),this.alertService=new Ot(this),this.notificationService=new Tn,this.identityService=new ho(this),this.layoutService=new Io(this),this.clipboardService=new wo(this),this.terminalService=new go(this),this.commandService=new Ve(this),this.keyboardShortcutsService=new He(this),this.navigationService=new ko(new Lo),this.navigationContextService=new Ge(this),this.documentationService=new Se(this),this.assistantService=new je(this),this.releaseNotesService=new jo(this),this.eventService=new Me,this.eventService.registerEventNotifierPlugins(t.getEventNotifierPlugins()),this.telemetryService=new _o(this),this.telemetryService.registerPlugins(t.getTelemetryServicePlugins()),this.telemetryService.setup(),this.tracerService=new ke,this.tracerService.registerPlugins(t.getTracerServicePlugins()),this.extensionStates=this.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraApplicationExtensionStateBuilders?.()??[])).map((e=>e(this))).filter(L)}async initialize(e){if(this.initState.isInInitialState){this.initState.inProgress();try{if(this.platform)throw new x("Platform is already configured");this.platform=e,this.navigationService=new ko(e.getNavigator()),await e.initialize(),this.initState.pass()}catch(e){w(e),this.notificationService.notifyError(e),this.logService.error(c.create(de.APPLICATION_LOAD__FAILURE),"Failed to load Legend application"),this.initState.fail()}}else this.notificationService.notifyIllegalState("Application store is re-initialized")}alertUnhandledError=e=>{this.logUnhandledError(e),this.notificationService.notifyIllegalState(e.message)};logUnhandledError=e=>{this.logService.error(c.create(de.ILLEGAL_APPLICATION_STATE_OCCURRED),"Encountered unhandled error in component tree",e)};guardUnhandledError=e=>()=>{e().catch(this.alertUnhandledError)}}var Uo;!function(e){e.TAG_REQUEST="download-request",e.TAG_RESPONSE="download-response",e.STREAM_CLOSED="#stream-closed",e.STREAM_ABORTED="#stream-aborted"}(Uo||(Uo={}));class Go{}class Vo extends Go{debug(e,...t){console.debug(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}info(e,...t){console.info(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}warn(e,...t){console.warn(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}error(e,...t){console.error(`[${e.timestamp}] ${e.name} ${t.length?":":""}`,...t)}}class Ho{config;logger;pluginManager;basePresets=[];basePlugins=[];baseAddress;pluginRegister;_isConfigured=!1;downloadHelperServiceWorkerPath;downloadHelper=!1;releaseNotes;constructor(e){this.pluginManager=e,this.logger=new Vo}setup(e){return this.baseAddress=j(e.baseAddress,"Can't setup application: 'baseAddress' is missing or empty"),this.pluginRegister=e.pluginRegister,this._isConfigured=!0,this}withBasePresets(e){return this.basePresets=e,this.withPresets([])}withBasePlugins(e){return this.basePlugins=e,this.withPlugins([])}withPresets(e){return this.pluginManager.usePresets([...this.basePresets,...e]),this}withPlugins(e){return this.pluginManager.usePlugins([...this.basePlugins,...e]),this}withDownloadHelper(e){return this.downloadHelper=!0,this.downloadHelperServiceWorkerPath=e,this}withReleaseNotes(e){return this.releaseNotes=e,this}setupApplicationStore(e){this.releaseNotes&&e.releaseNotesService.configure(this.releaseNotes)}async fetchApplicationConfiguration(){const e=new se;let t,n;try{t=await e.get(`${window.location.origin}${this.baseAddress}config.json`)}catch(e){w(e),this.logger.error(c.create(de.APPLICATION_CONFIGURATION__FAILURE),e)}F(t,"Can't fetch Legend application configuration");try{n=await e.get(`${window.location.origin}${this.baseAddress}version.json`)}catch(e){w(e),this.logger.error(c.create(de.APPLICATION_CONFIGURATION__FAILURE),e)}return F(n,"Can't fetch Legend application version"),[await this.configureApplication({configData:t,versionData:n,baseAddress:this.baseAddress}),t.extensions??{}]}async loadDocumentationRegistryData(e){const t={};await Promise.all([...e.documentationRegistryEntries,...this.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraDocumentationRegistryEntries?.()??[]))].map((async e=>{try{const n=new se(e.simple?{options:{credentials:"omit"}}:{}),o=await n.get(j(e.url,"Can't load documentation registry: 'url' field is missing or empty"));F(o.entries,"Can't load documentation registry data: 'entries' field is missing");const r=e.includes?.map((e=>new RegExp(`^${e.trim().replace(/[\^$\\.+?()[\]{}|]/g,"\\$&").replace(/\*/g,".*")}$`)));Object.entries(o.entries).forEach((([e,n])=>{r&&!r.some((t=>t.test(e)))||t[e]||(t[e]=n)}))}catch(e){w(e),this.logger.warn(c.create(de.DOCUMENTATION_FETCH__FAILURE),e)}}))),e.keyedDocumentationEntries=[...Ne(t),...e.keyedDocumentationEntries]}async start(){F(this._isConfigured,"Legend application has not been configured properly. Make sure to run setup() before start()");try{const[e,t]=await this.fetchApplicationConfiguration();this.config=e,this.pluginRegister?.(this.pluginManager,this.config),this.pluginManager.configure(t),this.pluginManager.install(),await Promise.all([this.loadDocumentationRegistryData(e)]);const n=new Mo(this.config,this.pluginManager);await Promise.all(this.pluginManager.getApplicationPlugins().flatMap((e=>e.getExtraApplicationSetups?.()??[])).map((e=>e(n)))),this.setupApplicationStore(n),await this.loadApplication(n),this.logger.info(c.create(de.APPLICATION_LOAD__SUCCESS),"Legend application loaded"),this.downloadHelper&&function(e){if("serviceWorker"in navigator){const t=e??"/ServiceWorker.js";navigator.serviceWorker.register(t).then((e=>{console.debug(`register service worker success with path: ${t}`,e)})).catch((e=>{console.debug(`register service worker error with path: ${t}`,e)}))}}(this.downloadHelperServiceWorkerPath)}catch(e){throw w(e),this.logger.error(c.create(de.APPLICATION_LOAD__FAILURE),"Failed to load Legend application"),e}}}const Wo="legend-application-root";class $o extends l{loggerPlugins=[];telemetryServicePlugins=[];tracerServicePlugins=[];eventNotifierPlugins=[];applicationPlugins=[];registerLoggerPlugin(e){this.loggerPlugins.push(e)}registerTelemetryServicePlugin(e){this.telemetryServicePlugins.push(e)}registerTracerServicePlugin(e){this.tracerServicePlugins.push(e)}registerEventNotifierPlugin(e){this.eventNotifierPlugins.push(e)}registerApplicationPlugin(e){this.applicationPlugins.push(e)}getLoggerPlugins(){return[...this.loggerPlugins]}getTelemetryServicePlugins(){return[...this.telemetryServicePlugins]}getTracerServicePlugins(){return[...this.tracerServicePlugins]}getEventNotifierPlugins(){return[...this.eventNotifierPlugins]}getApplicationPlugins(){return[...this.applicationPlugins]}}const zo=JSON.parse('{"rE":"16.0.26","XO":{"c":"@finos/legend-application-plugin-core"}}');class Yo extends s{}n(18850);class Xo extends Yo{static NAME=zo.XO.c;constructor(){super(Xo.NAME,zo.rE)}install(e){e.registerApplicationPlugin(this)}getExtraApplicationSetups(){return[async e=>{}]}getExtraColorThemes(){return[So,Ao]}getExtraSettingConfigurationEntries(){return e=xo,Object.entries(e).map((e=>({key:e[0],...e[1]})));var e}}class Ko{appName;baseAddress;env;applicationStorageKey;documentationUrl;documentationLinkEntries=[];documentationRegistryEntries=[];keyedDocumentationEntries=[];contextualDocEntries=[];appVersion;appVersionBuildTime;appVersionCommitId;constructor(e){var t,n;this.baseAddress=e.baseAddress,this.appName=j(e.configData.appName,"Can't configure application: 'appName' field is missing or empty"),this.env=j(e.configData.env,"Can't configure application: 'env' field is missing or empty"),this.applicationStorageKey=e.configData.application?.storageKey??this.getDefaultApplicationStorageKey(),this.documentationUrl=e.configData.documentation?.url,this.documentationLinkEntries=(t=e.configData.documentation?.links??{},Object.entries(t).map((e=>({key:j(e[0],"Documentation link 'key' is missing"),label:j(e[1].label,"Documentation link 'label' is missing"),url:j(e[1].url,"Documentation link 'url' is missing")})))),this.documentationRegistryEntries=e.configData.documentation?.registry??[],this.keyedDocumentationEntries=Ne(e.configData.documentation?.entries??{}),this.contextualDocEntries=(n=e.configData.documentation?.contextualEntries??{},Object.entries(n).map((e=>({context:e[0],documentationKey:e[1]})))),this.appVersion=P(e.versionData.version,"Can't collect application version: 'version' field is missing"),this.appVersionBuildTime=e.versionData.buildTime,this.appVersionCommitId=e.versionData.commitSHA}static resolveAbsoluteUrl(e){return e.trim().startsWith("/")?window.location.origin+e:e}}class qo extends Ko{replUrl;useDynamicREPLServer=!1;constructor(e){super(e),F(e.configData.repl,"Can't configure application: 'repl' field is missing"),this.replUrl=Ko.resolveAbsoluteUrl(j(e.configData.repl.url,"Can't configure application: 'repl.url' field is missing or empty")),void 0!==e.configData.repl.dynamic&&(this.useDynamicREPLServer=Boolean(e.configData.repl.dynamic))}getDefaultApplicationStorageKey(){return"legend-repl"}}var Jo,Qo=n(70621);function Zo(e){let t=e;for(;t.endsWith("/");)t=t.slice(0,-1);return t}class er{navigate;baseUrl;_isNavigationBlocked=!1;_forceBypassNavigationBlocking=!1;_blockCheckers=[];_beforeUnloadListener=e=>{this._forceBypassNavigationBlocking||this._blockCheckers.some((e=>e()))&&(e.returnValue="",e.preventDefault())};onBlock;onNativePlatformNavigationBlock;constructor(e,t){(0,xe.Gn)(this,{_isNavigationBlocked:xe.sH,isNavigationBlocked:xe.EW,blockNavigation:xe.XI,unblockNavigation:xe.XI}),this.navigate=e,this.baseUrl=t}get window(){return P(window,"Window object is not available in non-web environment")}goToLocation(e,t){t?.ignoreBlocking&&(this._forceBypassNavigationBlocking=!0);const n=()=>{this._forceBypassNavigationBlocking=!0,this.window.location.href=this.generateAddress(e)};!this._forceBypassNavigationBlocking&&this._blockCheckers.some((e=>e()))?this.onBlock?.(n):n()}reload(e){e?.ignoreBlocking&&(this._forceBypassNavigationBlocking=!0);const t=()=>{this._forceBypassNavigationBlocking=!0,this.window.location.reload()};!this._forceBypassNavigationBlocking&&this._blockCheckers.some((e=>e()))?this.onBlock?.(t):t()}goToAddress(e,t){t?.ignoreBlocking&&(this._forceBypassNavigationBlocking=!0);const n=()=>{this._forceBypassNavigationBlocking=!0,this.window.location.href=e};!this._forceBypassNavigationBlocking&&this._blockCheckers.some((e=>e()))?this.onBlock?.(n):n()}visitAddress(e){this.window.open(e,"_blank")}generateAddress(e){return this.window.location.origin+this.baseUrl+e}updateCurrentLocation(e){Promise.resolve(this.navigate(e)).catch((()=>{}))}updateCurrentZone(e){this.window.location.hash="#"+e}resetZone(){this.updateCurrentLocation(this.getCurrentLocation())}getCurrentBaseAddress(e){return e?.withAppRoot?this.generateAddress(""):this.window.location.origin}getCurrentAddress(){return this.window.location.href}getCurrentLocation(){return this.window.location.pathname.substring(this.baseUrl.length)}getCurrentLocationParameters(){const e={},t=ce((n=this.getCurrentAddress(),(0,q.J)(n)),!0);var n;return Object.keys(t).forEach((n=>{e[n]=ue(n,t)})),e}getCurrentLocationParameterValue(e){return this.getCurrentLocationParameters()[e]}getCurrentZone(){return this.window.location.hash.substring(1)}blockNavigation(e,t,n){this._isNavigationBlocked=!0,this.onBlock=t,this.onNativePlatformNavigationBlock=n,this.onNativePlatformNavigationBlock&&(this.window.history.pushState(null,"",this.getCurrentAddress()),this.window.onpopstate=()=>{this.window.history.forward(),this.onNativePlatformNavigationBlock?.()}),this._blockCheckers=e,this.window.removeEventListener("beforeunload",this._beforeUnloadListener),this.window.addEventListener("beforeunload",this._beforeUnloadListener)}unblockNavigation(){this._isNavigationBlocked=!1,this.onBlock=void 0,this.window.onpopstate=null,this._blockCheckers=[],this.window.removeEventListener("beforeunload",this._beforeUnloadListener)}get isNavigationBlocked(){return this._isNavigationBlocked}INTERNAL__internalizeTransientParameter(e){const t=this.getCurrentZone(),n=this.getCurrentLocationParameters();var o,r;delete n[e],this.updateCurrentLocation((o=this.getCurrentLocation(),r=(e=>{const t={};return Object.entries(e).forEach((([e,n])=>{n&&(t[e]=n.toString())})),K.A.stringify(t)})(n),r?`${o}?${r}`:o)),this.updateCurrentZone(t)}}class tr{applicationStore;constructor(e){this.applicationStore=e}async initialize(){}}!function(e){e.INITIAL_COLOR_THEME="initialColorTheme"}(Jo||(Jo={}));class nr extends tr{navigator;constructor(e,t){super(e),this.navigator=new er(t.navigate,t.baseUrl)}getNavigator(){return this.navigator}async initialize(){const e=this.applicationStore.navigationService.navigator.getCurrentLocationParameterValue(Jo.INITIAL_COLOR_THEME);e&&(this.applicationStore.layoutService.setColorTheme(e),this.applicationStore.navigationService.navigator.INTERNAL__internalizeTransientParameter(Jo.INITIAL_COLOR_THEME))}}const or=(0,Lt.createContext)(void 0),rr=({children:e,baseUrl:t})=>{const n=Pt(),o=(0,Qo.Zp)(),r=(0,bt.iz)((()=>new nr(n,{navigate:o,baseUrl:Zo(t)})));return(0,E.jsx)(or.Provider,{value:r,children:e})},ir=({children:e,baseUrl:t})=>(0,E.jsx)(Qo.Kd,{basename:Zo(t),children:(0,E.jsx)(rr,{baseUrl:t,children:e})});var ar=n(47262),sr=n(25314),lr=n(95236),cr=n(86251),ur=n(49787);const dr={AdvancedSettings:ur.teB,AlertError:Vt.Zt1,AlertInfo:Vt.$Mj,AlertSuccess:Vt.U4T,AlertWarning:Vt.vDk,Calculate:ur.FZE,Calendar:ur.rOy,CaretDown:ur.UgJ,CaretRight:ur.Izh,Checkbox:ar.Pvj,CheckboxSelected:ar.Kad,ChevronLeft:ur.h$A,ChevronRight:ur.klJ,ChevronDown:ur.ciu,CircleChecked:ur.Vor,CircledFailed:ur.Viv,Clipboard:ur.lP0,Code:ur.sAL,ClockEdit:ur.xNI,Cube:ur.keA,Debug:ur.$mE,Documentation:ur.KHb,DocumentationHint:Vt.Jzf,FilterAddOperator:ur.r2j,FilterRemoveOperator:ur.$9n,FilterGroupOperator:ur.auD,FilterNotOperator:ur.vem,FontBold:sr.ux7,FontCase:cr.tEi,FontItalic:sr.LPp,FontUnderline:sr.dgX,FontStrikethrough:sr.kKc,LetterCase:ur.XOD,Loader:ur.C5G,Menu:ur.Gb_,Note:ur.Jb_,Pin:zt.Cxm,Search:ur.PuI,Settings:ur.yRe,Table:ur.ZIs,TableColumn:ur.QKp,TableColumnOptions__Settings:ur.uRn,TableColumns:ur.N9Z,TableExtendedColumn:ur.w28,TableFilter:ur.XPy,TableFilterPlus:ur.VmB,TableFilterCode:ur.awR,TableGroupBy:ur.PAn,TableOptions:ur.v$W,TablePagination:sr.Hs5,TablePivot:ur.ba8,TablePlus:ur.ZQn,TableRemoveColumn:ur.F6Q,TableRow:ur.wV0,TableRowColumn:ur.QE3,TableScroll:lr.cfM,TableSort:ur.r9t,TextAlignLeft:lr.T4j,TextAlignCenter:lr.roG,TextAlignRight:lr.QHN,User:ur.aGB,Window:zt.PV7,X:zt.D9N,Warning:ur.fQM,WarningCircle:ur.Ajk,WordWrap:Vt.LkA};class pr{title;contentRenderer;window={};constructor(e,t){this.contentRenderer=t,this.title=e}}class gr{uuid=(0,i.A)();configuration;onClose;ownerId;specification;constructor(e,t,n){this.configuration=e,this.onClose=t,this.ownerId=n}setSpecification(e){this.specification=e}}const mr=50,hr={width:800,height:600,minWidth:300,minHeight:300,center:!0},fr={width:500,height:200,minWidth:200,minHeight:80,center:!0};class Er{layout;configuration;ownerId;window;constructor(e,t,n,o){(0,xe.Gn)(this,{window:xe.sH,isOpen:xe.EW,open:xe.XI,close:xe.XI}),this.layout=e,this.configuration=new pr(t,n),this.configuration.window=hr,this.ownerId=o}get isOpen(){return Boolean(this.window)}open(){this.window?this.layout.bringWindowFront(this.window):(this.window=new gr(this.configuration,(()=>(0,xe.h5)((()=>{this.window=void 0}))),this.ownerId),this.layout.newWindow(this.window,this.ownerId))}close(){this.window&&(this.layout.closeWindow(this.window),this.window=void 0)}}class Cr{windows=[];constructor(){(0,xe.Gn)(this,{windows:xe.sH,newWindow:xe.XI,bringWindowFront:xe.XI,closeWindow:xe.XI,closeWindows:xe.XI})}newDisplay(e,t,n,o){const r=new Er(this,e,t,o);return n&&(r.configuration.window=n),r}newWindow(e,t){e.ownerId=e.ownerId??t,this.windows.push(e)}bringWindowFront(e){this.windows.find((t=>t.uuid===e.uuid))&&(this.windows=this.windows.filter((t=>t.uuid!==e.uuid)),this.windows.push(e))}closeWindow(e){this.windows.find((t=>t.uuid===e.uuid))&&(this.windows=this.windows.filter((t=>t.uuid!==e.uuid)),e.onClose?.())}closeWindows(e){this.windows=this.windows.filter((t=>!e.find((e=>e.uuid===t.uuid)))),e.forEach((e=>e.onClose?.()))}}class br{uuid=(0,i.A)();manager;constructor(e){(0,xe.Gn)(this,{windows:xe.EW}),this.manager=e??new Cr}get windows(){return this.manager.windows.filter((e=>e.ownerId===this.uuid))}newDisplay(e,t,n){return this.manager.newDisplay(e,t,n,this.uuid)}newWindow(e){this.manager.newWindow(e,this.uuid)}bringWindowFront(e){this.manager.bringWindowFront(e)}closeWindow(e){this.manager.closeWindow(e)}dispose(){this.manager.closeWindows(this.windows)}}const vr=e=>{const{parent:t,layout:n,windowState:o}=e,r=o.configuration.window,[i,a]=(0,Lt.useState)((()=>{if(o.specification)return o.specification;const e=r.x??mr,n=r.y??mr,i=r.width??800,a=r.height??600,s=t?.current??document.body,{width:l,height:c}=s.getBoundingClientRect();if(r.center){const e=i+100>l?l-100:i,t=a+100>c?c-100:a;return{x:(l-e)/2,y:(c-t)/2,width:e,height:t}}const u=i+Math.abs(e)+mr>l?l-Math.abs(e)-mr:i,d=a+Math.abs(n)+mr>c?c-Math.abs(n)-mr:a,p={x:e<0?l-Math.abs(e)-u:e,y:n<0?c-Math.abs(n)-d:n,width:u,height:d};return o.setSpecification(p),p})),s=e=>{a(e),o.setSpecification(e)};return(0,E.jsx)(Pn.p,{className:"absolute z-10",handle:`.data-cube__window-${o.uuid}`,position:{x:i.x,y:i.y},size:{width:i.width,height:i.height},minWidth:r.minWidth??300,minHeight:r.minHeight??300,onDragStop:(e,t)=>{s({...i,x:t.x,y:t.y})},dragHandleClassName:`data-cube__window-${o.uuid}`,onResize:(e,t,n,o,r)=>{s({...r,width:n.offsetWidth,height:n.offsetHeight})},enableResizing:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},resizeHandleStyles:{top:{cursor:"ns-resize"},right:{cursor:"ew-resize"},bottom:{cursor:"ns-resize"},left:{cursor:"ew-resize"},topRight:{cursor:"nesw-resize",width:14,height:14,top:-7,right:-7},bottomRight:{cursor:"nwse-resize",width:14,height:14,bottom:-7,right:-7},bottomLeft:{cursor:"nesw-resize",width:14,height:14,bottom:-7,left:-7},topLeft:{cursor:"nwse-resize",width:14,height:14,top:-7,left:-7}},children:(0,E.jsxs)("div",{className:"h-full w-full border border-neutral-400 bg-neutral-200 shadow-xl",onMouseDown:()=>{n.bringWindowFront(o)},children:[(0,E.jsxs)("div",{className:jn(`data-cube__window-${o.uuid}`,"flex h-6 w-full select-none items-center justify-between border-b border-b-neutral-300 bg-white active:cursor-move"),children:[(0,E.jsx)("div",{className:"px-2",children:o.configuration.title}),(0,E.jsx)("button",{className:"flex h-[23px] w-6 items-center justify-center hover:bg-red-500 hover:text-white",onClick:()=>n.closeWindow(o),children:(0,E.jsx)(dr.X,{})})]}),(0,E.jsx)("div",{className:"h-[calc(100%_-_24px)] w-full overflow-auto",children:o.configuration.contentRenderer(o.configuration)})]})})},_r=(0,bt.PA)((e=>{const{layout:t}=e;return(0,E.jsx)(E.Fragment,{children:t.windows.map((e=>(0,E.jsx)(vr,{layout:t,windowState:e},e.uuid)))})}));var Tr=n(29179);const Nr="monaco-editor-overflow-widgets-root";function Sr(){return(0,E.jsx)("div",{id:Nr,className:"monaco-editor"})}var Ar=n(66813),yr=n(23993),xr=n(27802),Ir=n(15428),wr=n(21598),kr=n(99499),Rr=n(91937);const Or=e=>kr.sha1().update(e).digest("hex"),Lr=e=>Or(e.filter(L).map((e=>"string"==typeof e||"boolean"==typeof e||"number"==typeof e?Or(e):e.hashCode)).join(",")),Fr=(e,t)=>(M(H(e),"Can't hash non-object value"),Rr(e,t));var Pr,Br;(Br=Pr||(Pr={})).INTERNAL__UNKNOWN_ELEMENT="INTERNAL__UNKNOWN_ELEMENT",Br.INTERNAL__UNKNOWN_PACKAGEABLE_ELEMENT="INTERNAL__UNKNOWN_PACKAGEABLE_ELEMENT",Br.INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR="INTERNAL__UNKNOWN_FUNCTION_ACTIVATOR",Br.PACKAGE="PACKAGE",Br.PACKAGEABLE_ELEMENT="PACKAGEABLE_ELEMENT",Br.PACKAGEABLE_ELEMENT_POINTER="PACKAGEABLE_ELEMENT_POINTER",Br.PROFILE="PROFILE",Br.TAG_POINTER="TAG_POINTER",Br.STEREOTYPE_POINTER="STEREOTYPE_POINTER",Br.TAGGED_VALUE="TAGGED_VALUE",Br.ENUMERATION="ENUMERATION",Br.ENUM_VALUE="ENUM_VALUE",Br.CLASS="CLASS",Br.PROPERTY="PROPERTY",Br.PROPERTY_DEFAULT_VALUE="PROPERTY_DEFAULT_VALUE",Br.PROPERTY_POINTER="PROPERTY_POINTER",Br.MULTIPLICITY="MULTIPLICITY",Br.CONSTRAINT="CONSTRAINT",Br.DERIVED_PROPERTY="DERIVED_PROPERTY",Br.ASSOCIATION="ASSOCIATION",Br.FUNCTION="FUNCTION",Br.MEASURE="MEASURE",Br.UNIT="UNIT",Br.FUNCTION_TEST_SUITE="FUNCTION_TEST_SUITE",Br.FUNCTION_TEST="FUNCTION_TEST",Br.FUNCTION_STORE_TEST_DATA="FUNCTION_STORE_TEST_DATA",Br.FUNCTION_PARAMETER_VALUE="FUNCTION_PARAMETER_VALUE",Br.FUNCTION_ACTIVATOR_POST_DEPLOYMENT_PROPERTIES="FUNCTION_ACTIVATOR_POST_DEPLOYMENT_PROPERTIES",Br.ASSERT_FAIL="ASSERT_FAIL",Br.ASSERT_PASS="ASSERT_PASS",Br.EQUAL_TO_JSON_ASSERT_FAIL="EQUAL_TO_JSON_ASSERT_FAIL",Br.EQUAL_TO="EQUAL_TO",Br.EQUAL_TO_JSON="EQUAL_TO_JSON",Br.EQUAL_TO_TDS="EQUAL_TO_TDS",Br.SECTION_INDEX="SECTION_INDEX",Br.SECTION="SECTION",Br.IMPORT_AWARE_CODE_SECTION="IMPORT_AWARE_CODE_SECTION",Br.DEFAULT_CODE_SECTION="DEFAULT_CODE_SECTION",Br.RAW_LAMBDA="RAW_LAMBDA",Br.RAW_VARIABLE="RAW_VARIABLE",Br.RAW_INSTANCE_VALUE="RAW_INSTANCE_VALUE",Br.BINDING_TRANSFORMER="BINDING_TRANSFORMER",Br.INTERNAL__UNKNOWN_VALUE_SPECIFICATION="INTERNAL__UNKNOWN_VALUE_SPECIFICATION",Br.INTERNAL__PROPAGATED_VALUE="INTERNAL__PROPAGATED_VALUE",Br.VARIABLE_EXPRESSION="VARIABLE_EXPRESSION",Br.EXPRESSION="EXPRESSION",Br.FUNCTION_EXPRESSION="FUNCTION_EXPRESSION",Br.SIMPLE_FUNCTION_EXPRESSION="SIMPLE_FUNCTION_EXPRESSION",Br.ABSTRACT_PROPERTY_EXPRESSION="ABSTRACT_PROPERTY_EXPRESSION",Br.INSTANCE_VALUE="INSTANCE_VALUE",Br.PRIMITIVE_INSTANCE_VALUE="PRIMITIVE_INSTANCE_VALUE",Br.ENUM_INSTANCE_VALUE="ENUM_INSTANCE_VALUE",Br.KEY_EXPRESSION_INSTANCE_VALUE="KEY_EXPRESSION_INSTANCE_VALUE",Br.KEY_EXPRESSION_VALUE="KEY_EXPRESSION_VALUE",Br.RUNTIME_INSTANCE_VALUE="RUNTIME_INSTANCE_VALUE",Br.PAIR_INSTANCE_VALUE="PAIR_INSTANCE_VALUE",Br.MAPPING_INSTANCE_VALUE="MAPPING_INSTANCE_VALUE",Br.PURE_LIST_INSTANCE_VALUE="PURE_LIST_INSTANCE_VALUE",Br.COLLECTION_INSTANCE_VALUE="COLLECTION_INSTANCE_VALUE",Br.LAMBDA_FUNCTION_INSTANCE_VALUE="LAMBDA_FUNCTION_INSTANCE_VALUE",Br.FUNCTION_TYPE="FUNCTION_TYPE",Br.LAMBDA_FUNCTION="LAMBDA_FUNCTION",Br.ALLOY_SERIALIZATION_CONFIG_INSTANCE_VALUE="ALLOY_SERIALIZATION_CONFIG_INSTANCE_VALUE",Br.ALLOY_SERIALIZATION_CONFIG="ALLOY_SERIALIZATION_CONFIG",Br.ROOT_GRAPH_FETCH_TREE="ROOT_GRAPH_FETCH_TREE",Br.PROPERTY_GRAPH_FETCH_TREE="PROPERTY_GRAPH_FETCH_TREE",Br.SUBTYPE_GRAPH_FETCH_TREE="SUBTYPE_GRAPH_FETCH_TREE",Br.SUBTYPE_GRAPH_FETCH_TREE_INSTANCE_VALUE="SUBTYPE_GRAPH_FETCH_TREE_INSTANCE_VALUE",Br.PROPERTY_GRAPH_FETCH_TREE_INSTANCE_VALUE="PROEPRTY_GRAPH_FETCH_TREE_INSTANCE_VALUE",Br.ROOT_GRAPH_FETCH_TREE_INSTANCE_VALUE="ROOT_GRAPH_FETCH_TREE_INSTANCE_VALUE",Br.RELATION_COL_SPEC_ARRAY="RELATION_COL_SPEC_ARRAY",Br.RELATION_COL_SPEC="RELATION_COL_SPEC",Br.INTERNAL__UNKNOWN_STORE="INTERNAL__UNKNOWN_STORE",Br.INTERNAL__UNKNOWN_CONNECTION="INTERNAL__UNKNOWN_CONNECTION",Br.INTERNAL__UNKNOWN_PROPERTY_MAPPING="INTERNAL__UNKNOWN_PROPERTY_MAPPING",Br.INTERNAL__UNKNOWN_CLASS_MAPPING="INTERNAL__UNKNOWN_CLASS_MAPPING",Br.INTERNAL__UNKNOWN_MAPPING_INCLUDE="INTERNAL__UNKNOWN_MAPPING_INCLUDE",Br.MAPPING="MAPPING",Br.MAPPING_INCLUDE_MAPPING="MAPPING_INCLUDE_MAPPING",Br.ASSOCIATION_IMPLEMENTATION="ASSOCIATION_IMPLEMENTATION",Br.RELATIONAL_ASSOCIATION_IMPLEMENTATION="RELATIONAL_ASSOCIATION_IMPLEMENTATION",Br.XSTORE_ASSOCIATION_IMPLEMENTATION="XSTORE_ASSOCIATION_IMPLEMENTATION",Br.ENUMERATION_MAPPING="ENUMERATION_MAPPING",Br.ENUM_VALUE_MAPPING="ENUM_VALUE_MAPPING",Br.SET_IMPLEMENTATION="SET_IMPLEMENTATION",Br.OPERATION_SET_IMPLEMENTATION="OPERATION_SET_IMPLEMENTATION",Br.PURE_INSTANCE_SET_IMPLEMENTATION="PURE_INSTANCE_SET_IMPLEMENTATION",Br.PROPERTY_MAPPING="PROPERTY_MAPPING",Br.LOCAL_MAPPING_PROPERTY="LOCAL_MAPPING_PROPERTY",Br.PURE_PROPERTY_MAPPING="PURE_PROPERTY_MAPPING",Br.XSTORE_PROPERTY_MAPPING="XSTORE_PROPERTY_MAPPING",Br.MAPPING_TEST_LEGACY="MAPPING_TEST_LEGACY",Br.MAPPING_TEST_SUITE="MAPPING_TEST_SUITE",Br.MAPPING_TEST="MAPPING_TEST",Br.STORE_TEST_DATA="STORE_TEST_DATA",Br.INPUT_DATA="INPUT_DATA",Br.FLAT_DATA_INPUT_DATA="FLAT_DATA_INPUT_DATA",Br.RELATIONAL_INPUT_DATA="RELATIONAL_INPUT_DATA",Br.OBJECT_INPUT_DATA="OBJECT_INPUT_DATA",Br.MAPPING_TEST_ASSERT="MAPPING_TEST_ASSERT",Br.EXPECTED_OUTPUT_MAPPING_TEST_ASSERT="EXPECTED_OUTPUT_MAPPING_TEST_ASSERT",Br.FILTER_MAPPING="FILTER_MAPPING",Br.COLUMN_MAPPING="COLUMN_MAPPING",Br.GROUP_BY_MAPPING="GROUP_BY_MAPPING",Br.RUNTIME="RUNTIME",Br.PACKAGEABLE_RUNTIME="PACKAGEABLE_RUNTIME",Br.ENGINE_RUNTIME="ENGINE_RUNTIME",Br.SINGLE_ENGINE_RUNTIME="SINGLE_ENGINE_RUNTIME",Br.LEGACY_RUNTIME="LEGACY_RUNTIME",Br.RUNTIME_POINTER="RUNTIME_POINTER",Br.STORE_CONNECTIONS="STORE_CONNECTIONS",Br.IDENTIFIED_CONNECTION="IDENTIFIED_CONNECTION",Br.PACKAGEABLE_CONNECTION="PACKAGEABLE_CONNECTION",Br.CONNECTION_POINTER="CONNECTION_POINTER",Br.XML_MODEL_CONNECTION="XML_MODEL_CONNECTION",Br.JSON_MODEL_CONNECTION="JSON_MODEL_CONNECTION",Br.MODEL_CHAIN_CONNECTION="MODEL_CHAIN_CONNECTION",Br.FLAT_DATA_CONNECTION="FLAT_DATA_CONNECTION",Br.AGGREGATION_AWARE_MAPPING="AGGREGATION_AWARE_MAPPING",Br.AGGREGATION_AWARE_SPECIFICATION="AGGREGATION_AWARE_SPECIFICATION",Br.AGGREGATION_AWARE_SET_IMPLEMENTATION_CONTAINER="AGGREGATION_AWARE_SET_IMPLEMENTATION_CONTAINER",Br.AGGREGATE_FUNCTION="AGGREGATE_FUNCTION",Br.GROUP_BY_FUNCTION="GROUP_BY_FUNCTION",Br.GENERATION_TREE="GENERATION_TREE",Br.GENERATION_TREE_NODE="GENERATION_TREE_NODE",Br.FILE_GENERATION="FILE_GENERATION",Br.CONFIGURATION_PROPERTY="CONFIGURATION_PROPERTY",Br.INTERNAL__UNKNOWN_EMBEDDED_DATA="INTERNAL__UNKNOWN_EMBEDDED_DATA",Br.EXTERNAL_FORMAT_DATA="EXTERNAL_FORMAT_DATA",Br.MODEL_STORE_DATA="MODEL_STORE_DATA",Br.MODEL_DATA="MODEL_DATA",Br.MODEL_EMBEDDED_DATA="MODEL_EMBEDDED_DATA",Br.MODEL_INSTANCE_DATA="MODEL_INSTANCE_DATA",Br.DATA_ELEMENT_REFERENCE="DATA_ELEMENT_REFERENCE",Br.DATA_ELEMENT="DATA_ELEMENT",Br.RELATIONAL_CSV_DATA="RELATIONAL_CSV_DATA",Br.RELATIONAL_TDS="RELATIONAL_TDS",Br.RELATIONAL_CSV_DATA_TABLE="RELATIONAL_CSV_DATA_TABLE",Br.BINDING="BINDING",Br.SCHEMA_SET="SCHEMA_SET",Br.SCHEMA="SCHEMA",Br.MODEL_UNIT="MODEL_UNIT",Br.URL_STREAM="URL_STREAM",Br.EXTERNAL_FORMAT_CONNECTION="EXTERNAL_FORMAT_CONNECTION",Br.SERVICE="SERVICE",Br.SERVICE_OWNER="SERVICE_OWNER",Br.SERVICE_PURE_EXECUTION="SERVICE_PURE_EXECUTION",Br.SERVICE_PURE_SINGLE_EXECUTION="SERVICE_PURE_SINGLE_EXECUTION",Br.SERVICE_KEYED_EXECUTION_PARAMETER="SERVICE_KEYED_EXECUTION_PARAMETER",Br.SERVICE_PURE_MULTI_EXECUTION="SERVICE_PURE_MULTI_EXECUTION",Br.SERVICE_TEST_CONTAINER="SERVICE_TEST_CONTAINER",Br.SERVICE_LEGACY_SINGLE_EXECUTION_TEST="SERVICE_LEGACY_SINGLE_EXECUTION_TEST",Br.SERVICE_LEGACY_KEYED_SINGLE_EXECUTION_TEST="SERVICE_LEGACY_KEYED_SINGLE_EXECUTION_TEST",Br.SERVICE_LEGACY_MULTI_EXECUTION_TEST="SERVICE_LEGACY_MULTI_EXECUTION_TEST",Br.SERVICE_CONNECTION_TEST_DATA="SERVICE_CONNECTION_TEST_DATA",Br.SERVICE_TEST_DATA="SERVICE_TEST_DATA",Br.SERVICE_TEST_SUITE="SERVICE_TEST_SUITE",Br.SERVICE_TEST="SERVICE_TEST",Br.SERVICE_PARAMETER_VALUE="SERVICE_PARAMETER_VALUE",Br.SERVICE_POST_VALIDATION="SERVICE_POST_VALIDATION",Br.SERVICE_POST_VALIDATION_ASSERTION="SERVICE_POST_VALIDATION_ASSERTION",Br.EXECUTION_ENVIRONMENT_INSTANCE="EXECUTION_ENVIRONMENT_INSTANCE",Br.SINGLE_EXECUTION_PARAMETER="SINGLE_EXECUTION_PARAMETER",Br.MULTI_EXECUTION_PARAMETER="MULTI_EXECUTION_PARAMETER",Br.RUNTIME_COMPONENTS="RUNTIME_COMPONENTS",Br.INTERNAL__UNKNOWN_DATASOURCE_SPECIFICATION="INTERNAL__UNKNOWN_DATASOURCE_SPECIFICATION",Br.INTERNAL__UNKNOWN_AUTHENTICATION_STRATEGY="INTERNAL__UNKNOWN_AUTHENTICATION_STRATEGY",Br.INTERNAL__UNKNOWN_POST_PROCESSOR="INTERNAL__UNKNOWN_POST_PROCESSOR",Br.DATABASE="DATABASE",Br.DATABASE_SCHEMA="DATABASE_SCHEMA",Br.DATABASE_JOIN="DATABASE_JOIN",Br.DATABASE_FILTER="DATABASE_FILTER",Br.DATBASE_VIEW="DATBASE_VIEW",Br.DATABASE_SCHEMA_TABLE="DATABASE_SCHEMA_TABLE",Br.DATABASE_SCHEMA_TABULARFUNCTION="DATABASE_SCHEMA_TABULARFUNCTION",Br.DATABASE_TABLE_COLUMN="DATABASE_TABLE_COLUMN",Br.RELATIONAL="RELATIONAL",Br.RELATIONAL_OPERATION_DYNA_FUNC="RELATIONAL_OPERATION_DYNA_FUNC",Br.RELATIONAL_OPERATION_ELEMENTS_WITH_JOINS="RELATIONAL_OPERATION_ELEMENTS_WITH_JOINS",Br.RELATIONAL_OPERATION_LITERAL="RELATIONAL_OPERATION_LITERAL",Br.RELATIONAL_OPERATION_LITERAL_LIST="RELATIONAL_OPERATION_LITERAL_LIST",Br.RELATIONAL_OPERATION_TABLE_ALIAS_COLUMN="RELATIONAL_OPERATION_TABLE_ALIAS_COLUMN",Br.RELATIONAL_OPERATION_TABLE_POINTER="RELATIONAL_OPERATION_TABLE_POINTER",Br.RELATIONAL_OPERATION_JOIN_POINTER="RELATIONAL_OPERATION_JOIN_POINTER",Br.RELATIONAL_DATATYPE_VARCHAR="RELATIONAL_DATATYPE_VARCHAR",Br.RELATIONAL_DATATYPE_CHAR="RELATIONAL_DATATYPE_CHAR",Br.RELATIONAL_DATATYPE_VARBINARY="RELATIONAL_DATATYPE_VARBINARY",Br.RELATIONAL_DATATYPE_BINARY="RELATIONAL_DATATYPE_BINARY",Br.RELATIONAL_DATATYPE_BIT="RELATIONAL_DATATYPE_BIT",Br.RELATIONAL_DATATYPE_INTEGER="RELATIONAL_DATATYPE_INTEGER",Br.RELATIONAL_DATATYPE_BIGINT="RELATIONAL_DATATYPE_BIGINT",Br.RELATIONAL_DATATYPE_SMALLINT="RELATIONAL_DATATYPE_SMALLINT",Br.RELATIONAL_DATATYPE_TINYINT="RELATIONAL_DATATYPE_TINYINT",Br.RELATIONAL_DATATYPE_NUMERIC="RELATIONAL_DATATYPE_NUMERIC",Br.RELATIONAL_DATATYPE_DECIMAL="RELATIONAL_DATATYPE_DECIMAL",Br.RELATIONAL_DATATYPE_DOUBLE="RELATIONAL_DATATYPE_DOUBLE",Br.RELATIONAL_DATATYPE_FLOAT="RELATIONAL_DATATYPE_FLOAT",Br.RELATIONAL_DATATYPE_REAL="RELATIONAL_DATATYPE_REAL",Br.RELATIONAL_DATATYPE_DATE="RELATIONAL_DATATYPE_DATE",Br.RELATIONAL_DATATYPE_TIMESTAMP="RELATIONAL_DATATYPE_TIMESTAMP",Br.RELATIONAL_DATATYPE_OTHER="RELATIONAL_DATATYPE_OTHER",Br.RELATIONAL_DATATYPE_SEMISTRUCTURED="RELATIONAL_DATATYPE_SEMISTRUCTURED",Br.RELATIONAL_DATATYPE_JSON="RELATIONAL_DATATYPE_JSON",Br.ROOT_RELATIONAL_INSTANCE_SET_IMPLEMENTATION="ROOT_RELATIONAL_INSTANCE_SET_IMPLEMENTATION",Br.RELATIONAL_INSTANCE_SET_IMPLEMENTATION="RELATIONAL_INSTANCE_SET_IMPLEMENTATION",Br.REALTIONAL_PROPERTY_MAPPING="REALTIONAL_PROPERTY_MAPPING",Br.EMBEDDED_REALTIONAL_PROPERTY_MAPPING="EMBEDDED_REALTIONAL_PROPERTY_MAPPING",Br.INLINE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING="INLINE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING",Br.OTHERWISE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING="OTHERWISE_EMBEDDED_REALTIONAL_PROPERTY_MAPPING",Br.RELATION_FUNCTION_INSTANCE_SET_IMPLEMENTATION="RELATION_FUNCTION_INSTANCE_SET_IMPLEMENTATION",Br.RELATION_FUNCTION_PROPERTY_MAPPING="RELATION_FUNCTION_PROPERTY_MAPPING",Br.BUSINESS_MILESTONING="BUSINESS_MILESTONING",Br.BUSINESS_SNAPSHOT_MILESTONING="BUSINESS_SNAPSHOT_MILESTONING",Br.PROCESSING_MILESTONING="PROCESSING_MILESTONING",Br.RELATIONAL_DATABASE_CONNECTION="RELATIONAL_DATABASE_CONNECTION",Br.STATIC_DATASOURCE_SPECIFICATION="STATIC_DATASOURCE_SPECIFICATION",Br.LOCAL_H2_DATASOURCE_SPECIFICATION="LOCAL_H2_DATASOURCE_SPECIFICATION",Br.EMBEDDED_H2_DATASOURCE_SPECIFICATION="EMBEDDED_H2_DATASOURCE_SPECIFICATION",Br.SNOWFLAKE_DATASOURCE_SPECIFICATION="SNOWFLAKE_DATASOURCE_SPECIFICATION",Br.REDSHIFT_DATASOURCE_SPECIFICATION="REDSHIFT_DATASOURCE_SPECIFICATION",Br.BIGQUERY_DATASOURCE_SPECIFICATION="BIGQUERY_DATASOURCE_SPECIFICATION",Br.DATABRICKS_DATASOURCE_SPECIFICATION="DATABRICKS_DATASOURCE_SPECIFICATION",Br.SPANNER_DATASOURCE_SPECIFICATION="SPANNER_DATASOURCE_SPECIFICATION",Br.TRINO_DATASOURCE_SPECIFICATION="TRINO_DATASOURCE_SPECIFICATION",Br.DUCKDB_DATASOURCE_SPECIFICATION="DUCKDB_DATASOURCE_SPECIFICATION",Br.TRINO_SSL_SPECIFICATION="TRINO_SSL_SPECIFICATION",Br.DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY="DELEGRATED_KEREBEROS_AUTHENTICATION_STRATEGY",Br.DEFAULT_H2_AUTHENTICATION_STRATEGY="DEFAULT_H2_AUTHENTICATION_STRATEGY",Br.TEST_AUTHENTICATION_STRATEGY="TEST_AUTHENTICATION_STRATEGY",Br.SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY="SNOWFLAKE_PUBLIC_AUTHENTICATION_STRATEGY",Br.API_TOKEN_AUTHENTICATION_STRATEGY="API_TOKEN_AUTHENTICATION_STRATEGY",Br.GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY="GCP_APPLICATION_DEFAULT_CREDENTIALS_AUTHENTICATION_STRATEGY",Br.USERNAME_PASSWORD_AUTHENTICATION_STRATEGY="USERNAME_PASSWORD_AUTHENTICATION_STRATEGY",Br.OAUTH_AUTHENTICATION_STRATEGY="OAUTH_AUTHENTICATION_STRATEGY",Br.GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY="GCP_WORKLOAD_IDENTITY_FEDERATION_AUTHENTICATION_STRATEGY",Br.MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY="MIDDLE_TIER_USERNAME_PASSWORD_AUTHENTICATION_STRATEGY",Br.TRINO_DELEGATED_KERBEROS_AUTHENTICATION_STRATEGY="TRINO_KEREBEROS_AUTHENTICATION_STRATEGY",Br.MAPPER_POST_PROCESSOR="MAPPER_POST_PROCESSOR",Br.SCHEMA_MAPPER="SCHEMA_MAPPER",Br.TABLE_MAPPER="TABLE_MAPPER",Br.FLAT_DATA="FLAT_DATA",Br.FLAT_DATA_SECTION="FLAT_DATA_SECTION",Br.FLAT_DATA_PROPERTY="FLAT_DATA_PROPERTY",Br.FLAT_DATA_ROOT_RECORD_TYPE="FLAT_DATA_ROOT_RECORD_TYPE",Br.FLAT_DATA_RECORD_TYPE="FLAT_DATA_RECORD_TYPE",Br.FLAT_DATA_RECORD_FIELD="FLAT_DATA_RECORD_FIELD",Br.FLAT_DATA_STRING="FLAT_DATA_STRING",Br.FLAT_DATA_BOOLEAN="FLAT_DATA_BOOLEAN",Br.FLAT_DATA_NUMBER="FLAT_DATA_NUMBER",Br.FLAT_DATA_INTEGER="FLAT_DATA_INTEGER",Br.FLAT_DATA_FLOAT="FLAT_DATA_FLOAT",Br.FLAT_DATA_DECIMAL="FLAT_DATA_DECIMAL",Br.FLAT_DATA_DATE="FLAT_DATA_DATE",Br.FLAT_DATA_DATE_TIME="FLAT_DATA_DATE_TIME",Br.FLAT_DATA_STRICT_DATE="FLAT_DATA_STRICT_DATE",Br.FLAT_DATA_INSTANCE_SET_IMPLEMENTATION="FLAT_DATA_INSTANCE_SET_IMPLEMENTATION",Br.FLAT_DATA_PROPERTY_MAPPING="FLAT_DATA_PROPERTY_MAPPING",Br.FLAT_DATA_ASSOCIATION_IMPLEMENTATION="FLAT_DATA_ASSOCIATION_IMPLEMENTATION",Br.FLAT_DATA_ASSOCIATION_PROPERTY_MAPPING="FLAT_DATA_ASSOCIATION_PROPERTY_MAPPING",Br.EMBEDDED_FLAT_DATA_PROPERTY_MAPPING="EMBEDDED_FLAT_DATA_PROPERTY_MAPPING",Br.FLAT_DATA_SECTION_POINTER="FLAT_DATA_SECTION_POINTER",Br.SNOWFLAKE_APP="SNOWFLAKE_APP",Br.HOSTED_SERVICE="HOSTED_SERVICE",Br.HOSTED_SERVICE_OWNER="HOSTED_SERVICE_OWNER",Br.RELATION_TYPE="RELATION_TYPE",Br.RELATION_COLUMN="RELATION_COLUMN";class Dr{lowerBound=0;upperBound;constructor(e,t){this.lowerBound=e,this.upperBound=t}get hashCode(){return Lr([Pr.MULTIPLICITY,this.lowerBound.toString(),this.upperBound?.toString()??""])}static ZERO=new Dr(0,0);static ZERO_ONE=new Dr(0,1);static ZERO_MANY=new Dr(0,void 0);static ONE=new Dr(1,1);static ONE_MANY=new Dr(1,void 0)}class jr{}class Mr extends jr{multiplicity=Dr.ONE}class Ur extends Mr{body=[];parameters=[];accept_ValueSpecificationVisitor(e){return e.visit_Lambda(this)}}const Gr="::";var Vr,Hr,Wr,$r,zr,Yr,Xr,Kr,qr;!function(e){e.CORE="CORE",e.MAIN="ROOT",e.MODEL_GENERATION="MODEL_GENERATION_ROOT",e.SYSTEM="SYSTEM_ROOT",e.PROJECT_DEPENDENCY_ROOT="PROJECT_DEPENDENCY_ROOT"}(Vr||(Vr={})),($r=Hr||(Hr={})).STRING="String",$r.BOOLEAN="Boolean",$r.BINARY="Binary",$r.NUMBER="Number",$r.INTEGER="Integer",$r.FLOAT="Float",$r.DECIMAL="Decimal",$r.DATE="Date",$r.STRICTDATE="StrictDate",$r.DATETIME="DateTime",$r.STRICTTIME="StrictTime",$r.LATESTDATE="LatestDate",$r.BYTE="Byte",function(e){e.Service_Test="serviceTest",e.Mapping_Test="mappingTest",e.Function_Test="functionTest"}(Wr||(Wr={})),function(e){e.ANY="meta::pure::metamodel::type::Any",e.NIL="meta::pure::metamodel::type::Nil",e.RELATION="meta::pure::metamodel::relation::Relation",e.PROFILE_DOC="meta::pure::profiles::doc",e.PROFILE_TEMPORAL="meta::pure::profiles::temporal",e.PROFILE="meta::pure::metamodel::extension::Profile",e.ENUMERATION="meta::pure::metamodel::type::Enumeration",e.MEASURE="meta::pure::metamodel::type::Measure",e.CLASS="meta::pure::metamodel::type::Class",e.ASSOCIATION="meta::pure::metamodel::relationship::Association",e.FUNCTION="meta::pure::metamodel::function::ConcreteFunctionDefinition",e.FLAT_DATA="meta::flatData::metamodel::FlatData",e.DATABASE="meta::relational::metamodel::Database",e.MAPPING="meta::pure::mapping::Mapping",e.SERVICE="meta::legend::service::metamodel::Service",e.CONNECTION="meta::pure::runtime::PackageableConnection",e.RUNTIME="meta::pure::runtime::PackageableRuntime",e.EXECUTION_ENVIRONMENT="meta::legend::service::metamodel::ExecutionEnvironmentInstance",e.FILE_GENERATION="meta::pure::generation::metamodel::GenerationConfiguration",e.GENERATION_SPECIFICATION="meta::pure::generation::metamodel::GenerationSpecification",e.SECTION_INDEX="meta::pure::metamodel::section::SectionIndex",e.DATA_ELEMENT="meta::pure::data::DataElement",e.SNOWFLAKE_APP="meta::external::function::activator::snowflakeApp::SnowflakeApp",e.HOSTED_SERVICE="meta::external::function::activator::hostedService::HostedService",e.TABULAR_RESULT="meta::pure::mapping::Result"}(zr||(zr={})),function(e){e.BUSINESS_TEMPORAL="businesstemporal",e.PROCESSING_TEMPORAL="processingtemporal",e.BITEMPORAL="bitemporal"}(Yr||(Yr={})),function(e){e.ALL_VERSIONS="AllVersions",e.ALL_VERSIONS_IN_RANGE="AllVersionsInRange"}(Xr||(Xr={})),function(e){e.CLASS="CLASS",e.STORE="STORE",e.MAPPING="MAPPING",e.RUNTIME="RUNTIME",e.FUNCTION="FUNCTION",e.FILE_GENERATION="FILE_GENERATION",e.SERVICE="SERVICE",e.DATA="DATA",e.ENUMERATION="ENUMERATION",e.ASSOCIATION="ASSOCIATION",e.BINDING="BINDING"}(Kr||(Kr={})),function(e){e.LET="meta::pure::functions::lang::letFunction",e.NEW="meta::pure::functions::meta::new",e.FROM="meta::pure::mapping::from"}(qr||(qr={}));const Jr="yyyy-MM-dd",Qr={transparent:"#00000000",black:"#000000",white:"#ffffff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}};var Zr,ei,ti,ni,oi,ri,ii,ai,si,li,ci,ui,di,pi,gi;!function(e){e.EXTEND="meta::pure::functions::relation::extend",e.FILTER="meta::pure::functions::relation::filter",e.GROUP_BY="meta::pure::functions::relation::groupBy",e.LIMIT="meta::pure::functions::relation::limit",e.PIVOT="meta::pure::functions::relation::pivot",e.SELECT="meta::pure::functions::relation::select",e.SLICE="meta::pure::functions::relation::slice",e.SORT="meta::pure::functions::relation::sort",e.OVER="meta::pure::functions::relation::over",e.CAST="meta::pure::functions::lang::cast",e.FROM="meta::pure::mapping::from",e.ASCENDING="meta::pure::functions::relation::ascending",e.DESCENDING="meta::pure::functions::relation::descending",e.ABS="meta::pure::functions::math::abs",e.AND="meta::pure::functions::boolean::and",e.OR="meta::pure::functions::boolean::or",e.NOT="meta::pure::functions::boolean::not",e.TO_LOWERCASE="meta::pure::functions::string::toLower",e.CONTAINS="meta::pure::functions::string::contains",e.ENDS_WITH="meta::pure::functions::string::endsWith",e.EQUAL="meta::pure::functions::boolean::equal",e.GREATER_THAN="meta::pure::functions::boolean::greaterThan",e.GREATER_THAN_OR_EQUAL="meta::pure::functions::boolean::greaterThanEqual",e.IN="meta::pure::functions::collection::in",e.IS_EMPTY="meta::pure::functions::collection::isEmpty",e.LESS_THAN="meta::pure::functions::boolean::lessThan",e.LESS_THAN_OR_EQUAL="meta::pure::functions::boolean::lessThanEqual",e.STARTS_WITH="meta::pure::functions::string::startsWith",e.AVERAGE="meta::pure::functions::math::average",e.COUNT="meta::pure::functions::collection::count",e.DISTINCT="meta::pure::functions::collection::distinct",e.FIRST="meta::pure::functions::collection::first",e.JOIN_STRINGS="meta::pure::functions::string::joinStrings",e.LAST="meta::pure::functions::collection::last",e.MAX="meta::pure::functions::collection::max",e.MIN="meta::pure::functions::collection::min",e.SUM="meta::pure::functions::math::sum",e.STANDARD_DEVIATION_POPULATION="meta::pure::functions::math::stdDevPopulation",e.STANDARD_DEVIATION_SAMPLE="meta::pure::functions::math::stdDevSample",e.UNIQUE_VALUE_ONLY="meta::pure::functions::collection::uniqueValueOnly",e.VARIANCE_POPULATION="meta::pure::functions::math::variancePopulation",e.VARIANCE_SAMPLE="meta::pure::functions::math::varianceSample"}(Zr||(Zr={})),function(e){e.BASIS_POINT="Basis Points (bp)",e.PERCENT="Percent (%)",e.THOUSANDS="Thousands (k)",e.MILLIONS="Millions (m)",e.BILLIONS="Billions (b)",e.TRILLIONS="Trillions (t)",e.AUTO="Auto (k/m/b/t)"}(ei||(ei={})),function(e){e.ARIAL="Arial",e.ROBOTO="Roboto",e.ROBOTO_CONDENSED="Roboto Condensed",e.TIMES_NEW_ROMAN="Times New Roman",e.GEORGIA="Georgia",e.ROBOTO_SERIF="Roboto Serif",e.JERBRAINS_MONO="Jetbrains Mono",e.ROBOTO_MONO="Roboto Mono",e.UBUNTU_MONO="Ubuntu Mono"}(ti||(ti={})),function(e){e.CENTER="center",e.LEFT="left",e.RIGHT="right"}(ni||(ni={})),function(e){e.LOWERCASE="lowercase",e.UPPERCASE="uppercase",e.CAPITALIZE="capitalize"}(oi||(oi={})),function(e){e.SOLID="solid",e.DASHED="dashed",e.DOTTED="dotted",e.DOUBLE="double",e.WAVY="wavy"}(ri||(ri={})),function(e){e.MEASURE="Measure",e.DIMENSION="Dimension"}(ii||(ii={})),function(e){e.COLUMN="COLUMN",e.VOID="VOID"}(ai||(ai={})),function(e){e.SUM="sum",e.AVERAGE="avg",e.COUNT="count",e.MIN="min",e.MAX="max",e.UNIQUE="uniq",e.FIRST="first",e.LAST="last",e.VARIANCE_POPULATION="var",e.VARIANCE_SAMPLE="var_sample",e.STANDARD_DEVIATION_POPULATION="std",e.STANDARD_DEVIATION_SAMPLE="std_sample",e.JOIN_STRINGS="strjoin"}(si||(si={})),function(e){e.SUM="sum",e.AVERAGE="avg",e.MEDIAN="median",e.COUNT="count",e.MIN="min",e.MAX="max",e.VARIANCE_POPULATION="var",e.VARIANCE_SAMPLE="var_sample",e.STANDARD_DEVIATION_POPULATION="std",e.STANDARD_DEVIATION_SAMPLE="std_sample"}(li||(li={})),function(e){e.LESS_THAN="<",e.LESS_THAN_OR_EQUAL="<=",e.EQUAL="=",e.NOT_EQUAL="!=",e.GREATER_THAN=">",e.GREATER_THAN_OR_EQUAL=">=",e.IN="in",e.NOT_IN="not in",e.IS_NULL="is null",e.IS_NOT_NULL="is not null",e.EQUAL_CASE_INSENSITIVE="= (case-insensitive)",e.NOT_EQUAL_CASE_INSENSITIVE="!= (case-insensitive)",e.IN_CASE_INSENSITIVE="in (case-insensitive)",e.NOT_IN_CASE_INSENSITIVE="not in (case-insensitive)",e.CONTAIN="contains",e.CONTAIN_CASE_INSENSITIVE="contains (case-insensitive)",e.NOT_CONTAIN="does not contain",e.START_WITH="starts with",e.START_WITH_CASE_INSENSITIVE="starts with (case-insensitive)",e.NOT_START_WITH="does not start with",e.END_WITH="ends with",e.END_WITH_CASE_INSENSITIVE="ends with (case-insensitive)",e.NOT_END_WITH="does not end with",e.LESS_THAN_COLUMN="< value in column",e.LESS_THAN_OR_EQUAL_COLUMN="<= value in column",e.EQUAL_COLUMN="= value in column",e.EQUAL_CASE_INSENSITIVE_COLUMN="= (case-insensitive) value in column",e.NOT_EQUAL_COLUMN="!= value in column",e.NOT_EQUAL_CASE_INSENSITIVE_COLUMN="!= (case-insensitive) value in column",e.GREATER_THAN_COLUMN="> value in column",e.GREATER_THAN_OR_EQUAL_COLUMN=">= value in column"}(ci||(ci={})),function(e){e.AND="and",e.OR="or"}(ui||(ui={})),function(e){e.ASCENDING="Ascending",e.DESCENDING="Descending"}(di||(di={})),function(e){e.LEFT="Left",e.RIGHT="Right"}(pi||(pi={})),function(e){e.NUMBER="Numeric",e.TEXT="Text",e.DATE="Date",e.TIME="Time"}(gi||(gi={}));const mi="__|__",hi="__/__",fi="x",Ei="New Report",Ci=di.ASCENDING,bi=(di.ASCENDING,"[ROOT]"),vi="dataCube.linkLabel",_i=Qr.neutral[300],Ti="#d7e0eb",Ni=ti.ROBOTO,Si=!1,Ai=!1,yi=void 0,xi=!1,Ii=ni.LEFT,wi=Qr.black,ki=Qr.transparent,Ri=Qr.white,Oi=Qr.red[500],Li=Qr.neutral[400],Fi=Qr.blue[600],Pi="(None)";function Bi(e){switch(e){case Hr.STRING:return"";case Hr.BOOLEAN:return!1;case Hr.BYTE:return btoa("");case Hr.NUMBER:case Hr.DECIMAL:case Hr.FLOAT:case Hr.INTEGER:case Hr.BINARY:return 0;case Hr.DATE:case Hr.STRICTDATE:return(0,Xn.GP)(new Date(Date.now()),Jr);case Hr.DATETIME:return(0,Xn.GP)(new Date(Date.now()),"yyyy-MM-dd'T'HH:mm:ss");default:throw new I(`Can't generate value for type '${e}'`)}}function Di(e,t){return P(t.find((t=>t.operator===e)),`Can't find aggregate operation '${e}'`)}function ji(e){switch(e){case Hr.NUMBER:case Hr.INTEGER:case Hr.DECIMAL:case Hr.FLOAT:return gi.NUMBER;case Hr.DATE:case Hr.STRICTDATE:return gi.DATE;case Hr.DATETIME:return gi.TIME;case Hr.STRING:default:return gi.TEXT}}function Mi(e,t){return t.includes(ji(e))}function Ui(e){return[Hr.NUMBER,Hr.INTEGER,Hr.DECIMAL,Hr.FLOAT,Hr.DATE,Hr.STRICTDATE,Hr.DATETIME,Hr.STRING].includes(e)}function Gi(e){return e.includes(mi)}function Vi(e){if(!Gi(e))throw new x(`Column '${e}' is not a pivot result column`);return e.substring(e.lastIndexOf(mi)+5)}function Hi(e,t){return e?.find((e=>e.name===t))}function Wi(e){return{name:e.name,type:e.type}}const $i=(e,t)=>e.name.localeCompare(t.name);class zi{uuid=(0,i.A)();name;type;kind=ii.DIMENSION;displayName;decimals;displayCommas=!1;negativeNumberInParens=!1;numberScale;missingValueDisplayText;unit;fontFamily;fontSize;fontBold;fontItalic;fontUnderline;fontStrikethrough;fontCase;textAlign;normalForegroundColor;negativeForegroundColor;zeroForegroundColor;errorForegroundColor;normalBackgroundColor;negativeBackgroundColor;zeroBackgroundColor;errorBackgroundColor;isSelected=!0;hideFromView=!1;blur=!1;fixedWidth;minWidth;maxWidth;pinned;displayAsLink=!1;linkLabelParameter;aggregateOperator;aggregationParameters=[];excludedFromPivot=!0;pivotSortDirection;pivotStatisticColumnFunction;constructor(e,t){this.name=e,this.type=t}static serialization=new ge((0,pe.PL)(zi,{aggregateOperator:(0,pe.MY)(),aggregationParameters:(0,pe.p_)((0,pe.lS)()),blur:(0,pe.MY)(),decimals:(0,pe.lq)((0,pe.MY)()),displayAsLink:(0,pe.MY)(),displayCommas:(0,pe.MY)(),displayName:(0,pe.lq)((0,pe.MY)()),errorBackgroundColor:(0,pe.lq)((0,pe.MY)()),errorForegroundColor:(0,pe.lq)((0,pe.MY)()),excludedFromPivot:(0,pe.MY)(),fixedWidth:(0,pe.lq)((0,pe.MY)()),fontBold:(0,pe.lq)((0,pe.MY)()),fontCase:(0,pe.lq)((0,pe.MY)()),fontFamily:(0,pe.lq)((0,pe.MY)()),fontItalic:(0,pe.lq)((0,pe.MY)()),fontSize:(0,pe.lq)((0,pe.MY)()),fontStrikethrough:(0,pe.lq)((0,pe.MY)()),fontUnderline:(0,pe.lq)((0,pe.MY)()),hideFromView:(0,pe.MY)(),isSelected:(0,pe.MY)(),kind:(0,pe.MY)(),linkLabelParameter:(0,pe.lq)((0,pe.MY)()),maxWidth:(0,pe.lq)((0,pe.MY)()),minWidth:(0,pe.lq)((0,pe.MY)()),missingValueDisplayText:(0,pe.lq)((0,pe.MY)()),name:(0,pe.MY)(),negativeBackgroundColor:(0,pe.lq)((0,pe.MY)()),negativeForegroundColor:(0,pe.lq)((0,pe.MY)()),normalBackgroundColor:(0,pe.lq)((0,pe.MY)()),normalForegroundColor:(0,pe.lq)((0,pe.MY)()),negativeNumberInParens:(0,pe.MY)(),numberScale:(0,pe.lq)((0,pe.MY)()),pinned:(0,pe.lq)((0,pe.MY)()),pivotSortDirection:(0,pe.lq)((0,pe.MY)()),pivotStatisticColumnFunction:(0,pe.lq)((0,pe.MY)()),textAlign:(0,pe.lq)((0,pe.MY)()),type:(0,pe.MY)(),unit:(0,pe.lq)((0,pe.MY)()),zeroBackgroundColor:(0,pe.lq)((0,pe.MY)()),zeroForegroundColor:(0,pe.lq)((0,pe.MY)())}));serialize(){return zi.serialization.toJson(this)}}class Yi{expandedPaths=[];static serialization=new ge((0,pe.PL)(Yi,{expandedPaths:(0,pe.p_)((0,pe.MY)())}));serialize(){return Yi.serialization.toJson(this)}}class Xi{uuid=(0,i.A)();name=Ei;description;columns=[];showHorizontalGridLines=!1;showVerticalGridLines=!0;gridLineColor=_i;fontFamily=Ni;fontSize=11;fontBold=Si;fontItalic=Ai;fontUnderline=yi;fontStrikethrough=xi;fontCase=void 0;textAlign=Ii;normalForegroundColor=wi;negativeForegroundColor=Oi;zeroForegroundColor=Li;errorForegroundColor=Fi;normalBackgroundColor=ki;negativeBackgroundColor=ki;zeroBackgroundColor=ki;errorBackgroundColor=ki;alternateRows=!1;alternateRowsStandardMode=!0;alternateRowsColor=Ti;alternateRowsCount=1;showSelectionStats=!1;showWarningForTruncatedResult=!0;initialExpandLevel;showRootAggregation=!1;showLeafCount=!0;treeColumnSortDirection=Ci;pivotStatisticColumnName="Total";pivotStatisticColumnPlacement;pivotLayout=new Yi;static serialization=new ge((0,pe.PL)(Xi,{alternateRows:(0,pe.MY)(),alternateRowsColor:(0,pe.MY)(),alternateRowsCount:(0,pe.MY)(),alternateRowsStandardMode:(0,pe.MY)(),columns:(0,pe.p_)(me(zi.serialization.schema)),errorBackgroundColor:(0,pe.MY)(),errorForegroundColor:(0,pe.MY)(),description:(0,pe.lq)((0,pe.MY)()),fontBold:(0,pe.MY)(),fontCase:(0,pe.lq)((0,pe.MY)()),fontFamily:(0,pe.MY)(),fontItalic:(0,pe.MY)(),fontSize:(0,pe.MY)(),fontStrikethrough:(0,pe.MY)(),fontUnderline:(0,pe.lq)((0,pe.MY)()),gridLineColor:(0,pe.MY)(),initialExpandLevel:(0,pe.lq)((0,pe.MY)()),name:(0,pe.MY)(),negativeBackgroundColor:(0,pe.MY)(),negativeForegroundColor:(0,pe.MY)(),normalBackgroundColor:(0,pe.MY)(),normalForegroundColor:(0,pe.MY)(),pivotStatisticColumnName:(0,pe.MY)(),pivotStatisticColumnPlacement:(0,pe.lq)((0,pe.MY)()),pivotLayout:me(Yi.serialization.schema),showHorizontalGridLines:(0,pe.MY)(),showLeafCount:(0,pe.MY)(),showSelectionStats:(0,pe.MY)(),showRootAggregation:(0,pe.MY)(),showVerticalGridLines:(0,pe.MY)(),showWarningForTruncatedResult:(0,pe.MY)(),textAlign:(0,pe.MY)(),treeColumnSortDirection:(0,pe.MY)(),zeroBackgroundColor:(0,pe.MY)(),zeroForegroundColor:(0,pe.MY)()}));getColumn(e){return Hi(this.columns,e)}serialize(){return Xi.serialization.toJson(this)}clone(){return Xi.serialization.fromJson(Xi.serialization.toJson(this))}}class Ki extends jr{name;multiplicity;genericType;accept_ValueSpecificationVisitor(e){return e.visit_Variable(this)}}class qi extends jr{multiplicity=Dr.ONE}class Ji extends qi{class;property;parameters=[];accept_ValueSpecificationVisitor(e){return e.visit_AppliedProperty(this)}}var Qi=n(18492);const Zi=e=>P((0,Qi.A)(e.split(Gr))),ea=(e,t)=>Array.isArray(t)?t.some((t=>ea(e,t))):e===t||Zi(t)===e;class ta extends qi{function;fControl;parameters=[];accept_ValueSpecificationVisitor(e){return e.visit_AppliedFunction(this)}}class na extends jr{multiplicity=Dr.ONE_MANY;values=[];accept_ValueSpecificationVisitor(e){return e.visit_Collection(this)}}class oa extends jr{multiplicity=Dr.ONE}class ra extends oa{}class ia extends ra{value;accept_ValueSpecificationVisitor(e){return e.visit_CString(this)}}class aa extends ra{value;accept_ValueSpecificationVisitor(e){return e.visit_CBoolean(this)}}class sa extends ra{value;accept_ValueSpecificationVisitor(e){return e.visit_CDecimal(this)}}class la extends ra{value;accept_ValueSpecificationVisitor(e){return e.visit_CInteger(this)}}class ca extends ra{value;accept_ValueSpecificationVisitor(e){return e.visit_CFloat(this)}}class ua extends ra{}class da extends ua{value;accept_ValueSpecificationVisitor(e){return e.visit_CStrictDate(this)}}class pa extends ua{value;accept_ValueSpecificationVisitor(e){return e.visit_CDateTime(this)}}class ga extends ra{value;accept_ValueSpecificationVisitor(e){return e.visit_CStrictTime(this)}}class ma extends jr{multiplicity=Dr.ONE;fullPath;accept_ValueSpecificationVisitor(e){return e.visit_PackageableElementPtr(this)}}class ha extends jr{multiplicity=Dr.ONE;type;value;accept_ValueSpecificationVisitor(e){return e.visit_ClassInstance(this)}}class fa{name;type;function1;function2}class Ea{subTrees=[];subTypeTrees=[]}class Ca extends Ea{class;accept_GraphFetchTreeVisitor(e){return e.visit_RootGraphFetchTree(this)}get hashCode(){return Lr([Pr.ROOT_GRAPH_FETCH_TREE,Lr(this.subTrees),Lr(this.subTypeTrees),this.class])}}class ba{name;startType;path=[]}class va{mapFn;aggregateFn}class _a{first;second}class Ta{runtime}class Na{executionContext}class Sa extends Ea{property;parameters=[];alias;subType;accept_GraphFetchTreeVisitor(e){return e.visit_PropertyGraphFetchTree(this)}get hashCode(){return Lr([Pr.PROPERTY_GRAPH_FETCH_TREE,Lr(this.subTrees),this.property,this.alias??"",this.subType??""])}}class Aa extends Ea{subTypeClass;accept_GraphFetchTreeVisitor(e){return e.visit_SubTypeGraphFetchTree(this)}get hashCode(){return Lr([Pr.SUBTYPE_GRAPH_FETCH_TREE,Lr(this.subTrees),this.subTypeClass])}}class ya{includeType;typeKeyName;includeEnumType;removePropertiesWithNullValues;removePropertiesWithEmptySets;fullyQualifiedTypePath;includeObjectReference}class xa extends Mr{add;expression;key;accept_ValueSpecificationVisitor(e){return e.visit_KeyExpression(this)}}class Ia{values=[]}class wa{name;pmapFn;aggregateFn}class ka{name;columnFn}class Ra{column;direction}class Oa{function}class La{function;columnName}class Fa{colSpecs=[]}class Pa{path=[]}class Ba{package;name;get path(){return`${this.package}${Gr}${this.name}`}get hashCode(){return Lr([Pr.PACKAGEABLE_ELEMENT,this.path])}}const Da=new ge((0,pe.PL)(class{sourceId;startLine;startColumn;endLine;endColumn},{sourceId:(0,pe.MY)(),startLine:(0,pe.MY)(),startColumn:(0,pe.MY)(),endLine:(0,pe.MY)(),endColumn:(0,pe.MY)()}));class ja{package;name;sourceInformation;static serialization=new ge((0,pe.PL)(ja,{package:(0,pe.MY)(),name:(0,pe.MY)(),sourceInformation:Ee(Da.schema)}))}(0,pe.PL)(class{type;path;constructor(e,t){this.type=e,this.path=t}get hashCode(){return Lr([Pr.PACKAGEABLE_ELEMENT_POINTER,this.type??"",this.path])}},{path:(0,pe.MY)(),type:(0,pe.lq)((0,pe.MY)())});const Ma=(0,pe.PL)(Dr,{lowerBound:(0,pe.MY)(),upperBound:(0,pe.lq)((0,pe.MY)())}),Ua=((0,pe.PL)(class{profile;value;get hashCode(){return Lr([Pr.STEREOTYPE_POINTER,this.value,this.profile])}},{profile:(0,pe.MY)(),value:(0,pe.MY)()}),(0,pe.PL)(class{profile;value;get hashCode(){return Lr([Pr.TAG_POINTER,this.value,this.profile])}},{profile:(0,pe.MY)(),value:(0,pe.MY)()}));(0,pe.PL)(class{tag;value;get hashCode(){return Lr([Pr.TAGGED_VALUE,this.tag,this.value])}},{tag:me(Ua),value:(0,pe.MY)()});class Ga{}class Va extends Ga{property;parameters=[]}class Ha{}class Wa extends Ha{mappings=[];connectionStores=[];connections=[];get hashCode(){return Lr([Pr.ENGINE_RUNTIME,Lr(this.mappings),Lr(this.connectionStores),Lr(this.connections)])}}class $a extends Wa{get hashCode(){return Lr([Pr.SINGLE_ENGINE_RUNTIME,Lr(this.mappings),Lr(this.connectionStores),Lr(this.connections)])}}class za extends Ha{runtime;get hashCode(){return Lr([Pr.RUNTIME_POINTER,this.runtime])}}var Ya;!function(e){e.RUNTIME_POINTER="runtimePointer",e.LEGACY_RUNTIME="legacyRuntime",e.ENGINE_RUNTIME="engineRuntime",e.SINGLE_ENGINE_RUNTIME="localEngineRuntime"}(Ya||(Ya={}));const Xa=(0,pe.PL)(za,{_type:he(Ya.RUNTIME_POINTER),runtime:(0,pe.MY)()});(0,pe.PL)(class extends Ba{runtimeValue;get hashCode(){return Lr([Pr.PACKAGEABLE_RUNTIME,this.path,this.runtimeValue])}accept_PackageableElementVisitor(e){return e.visit_PackageableRuntime(this)}},{_type:he("runtime"),name:(0,pe.MY)(),package:(0,pe.MY)(),runtimeValue:(0,pe.Ie)((e=>{return(t=e)instanceof $a?(0,pe.lK)($a,t):(0,pe.lK)(Wa,t);var t}),(e=>{return(t=e)._type===Ya.SINGLE_ENGINE_RUNTIME?(0,pe.iu)($a,t):(0,pe.iu)(Wa,t);var t}))});class Ka{queryTimeOutInSeconds;enableConstraints}class qa extends Ka{useAnalytics;toFlowSetFunction}class Ja extends Ka{}class Qa extends jr{multiplicity=Dr.ONE;genericType;accept_ValueSpecificationVisitor(e){return e.visit_GenericTypeInstance(this)}}class Za{rawType;typeArguments=[];multiplicityArguments=[];typeVariableValues=[];get hashCode(){return this.rawType.hashCode}}class es extends ma{get hashCode(){return this.fullPath}}class ts{name;genericType;multiplicity;get hashCode(){return Lr([Pr.RELATION_TYPE,this.name,this.genericType])}}class ns{columns=[];get hashCode(){return Lr([Pr.RELATION_TYPE,Lr(this.columns)])}}const os=e=>{if(e.rawType instanceof es)return e.rawType.fullPath;throw new I("Can't extract type path from generic type")};function rs(e){const t=new Za,n=new es;return n.fullPath=e,t.rawType=n,t}function is(e){const t=new Za;return t.rawType=e,t}function as(e){const t=new ns;return t.columns=e,t}function ss(e,t){const n=new ts;return n.name=e,n.genericType=rs(t),n.multiplicity=Dr.ZERO_ONE,n}var ls;!function(e){e.PACKAGEABLE_TYPE="packageableType",e.RELATION_TYPE="relationType"}(ls||(ls={}));const cs=(0,pe.PL)(Za,{multiplicityArguments:(gs=e=>(0,pe.lK)(Ma,e),ms=e=>(0,pe.iu)(Ma,e),hs={INTERNAL__forceReturnEmptyInTest:!0},(0,pe.Ie)((e=>be(e,(e=>gs(e)),{skipIfEmpty:!0,INTERNAL__forceReturnEmptyInTest:hs?.INTERNAL__forceReturnEmptyInTest})),(e=>Ce(e,(e=>ms(e)),{skipIfEmpty:!1})))),rawType:(0,pe.Ie)((e=>function(e){if(e instanceof es)return(0,pe.lK)(us,e);if(e instanceof ns)return(0,pe.lK)(ps,e);throw new I("Can't serialize type",e)}(e)),(e=>function(e){switch(e._type){case ls.PACKAGEABLE_TYPE:return(0,pe.iu)(us,e);case ls.RELATION_TYPE:return(0,pe.iu)(ps,e);default:throw new I(`Can't deserialize type: '${e._type}'`)}}(e))),typeArguments:ve((e=>(0,pe.lK)(Za,e)),(e=>(0,pe.iu)(Za,e)),{INTERNAL__forceReturnEmptyInTest:!0}),typeVariableValues:ve((e=>pe._Z),(e=>pe._Z),{INTERNAL__forceReturnEmptyInTest:!0})}),us=(0,pe.PL)(es,{_type:he(ls.PACKAGEABLE_TYPE),fullPath:(0,pe.MY)()}),ds=(0,pe.PL)(ts,{genericType:(0,pe.Ie)((e=>(0,pe.lK)(cs,e)),(e=>Es(e)),{beforeDeserialize:function(e,t,n){void 0!==n.type&&void 0===n.genericType?e(null,n.type):e(null,n.genericType)}}),multiplicity:me(Ma),name:(0,pe.MY)()}),ps=(0,pe.PL)(ns,{_type:he(ls.RELATION_TYPE),columns:(0,pe.p_)(me(ds))});var gs,ms,hs;const fs=e=>{e.multiplicityArguments=[new Dr(1,void 0)];const t=new es;t.fullPath=zr.ANY;const n=new Za;n.rawType=t,e.typeArguments=[n]};function Es(e){let t;if(U(e)){t=new Za;const n=new es;n.fullPath=e,t.rawType=n,ea(e,zr.TABULAR_RESULT)&&fs(t)}else t=(0,pe.iu)(cs,e);const n=k((()=>os(t)));return n&&ea(n,zr.TABULAR_RESULT)&&!t.multiplicityArguments.length&&!t.typeArguments.length&&fs(t),t}var Cs,bs,vs,_s,Ts;!function(e){e.BASE_EXECUTION_CONTEXT="BaseExecutionContext",e.ANALYTICS_EXECUTION_CONTEXT="AnalyticsExecutionContext"}(Cs||(Cs={})),function(e){e.PROPERTY_PATH_ELEMENT="propertyPath"}(bs||(bs={})),function(e){e.PROPERTY_GRAPH_FETCH_TREE="propertyGraphFetchTree"}(vs||(vs={})),function(e){e.ROOT_GRAPH_FETCH_TREE="rootGraphFetchTree",e.SUBTYPE_GRAPH_FETCH_TREE="subTypeGraphFetchTree",e.PATH="path",e.AGGREGATE_VALUE="aggregateValue",e.EXECUTION_CONTEXT_INSTANCE="executionContextInstance",e.PAIR="pair",e.PURE_LIST="listInstance",e.RUNTIME_INSTANCE="runtimeInstance",e.SERIALIZATION_CONFIG="alloySerializationConfig",e.COL_SPEC="colSpec",e.COL_SPEC_ARRAY="colSpecArray",e.RELATION_STORE_ACCESSOR=">",e.TDS_AGGREGATE_VALUE="tdsAggregateValue",e.TDS_COLUMN_INFORMATION="tdsColumnInformation",e.TDS_SORT_INFORMATION="tdsSortInformation",e.TDS_OLAP_RANK="tdsOlapRank",e.TDS_OLAP_AGGREGATION="tdsOlapAggregation"}(_s||(_s={})),function(e){e.VARIABLE="var",e.LAMBDA="lambda",e.KEY_EXPRESSION="keyExpression",e.APPLIED_FUNCTION="func",e.APPLIED_PROPERTY="property",e.PACKAGEABLE_ELEMENT_PTR="packageableElementPtr",e.GENERIC_TYPE_INSTANCE="genericTypeInstance",e.ENUM_VALUE="enumValue",e.COLLECTION="collection",e.CINTEGER="integer",e.CDECIMAL="decimal",e.CSTRING="string",e.CBOOLEAN="boolean",e.CBYTEARRAY="byteArray",e.CFLOAT="float",e.CDATETIME="dateTime",e.CSTRICTDATE="strictDate",e.CSTRICTTIME="strictTime",e.CLATESTDATE="latestDate",e.CLASS_INSTANCE="classInstance",e.HACKED_CLASS="hackedClass",e.HACKED_UNIT="hackedUnit",e.UNIT_TYPE="unitType",e.PRIMITIVE_TYPE="primitiveType",e.CLASS="class",e.ENUM="enum",e.MAPPING_INSTANCE="mappingInstance"}(Ts||(Ts={}));const Ns=(0,pe.PL)(Ki,{_type:he(Ts.VARIABLE),genericType:fe((e=>(0,pe.lK)(cs,e)),(e=>Es(e)),{beforeDeserialize:function(e,t,n){void 0!==n.class&&void 0===n.genericType?e(null,n.class):e(null,n.genericType)}}),multiplicity:me(Ma),name:(0,pe.MY)()}),Ss=e=>(0,pe.PL)(Ur,{_type:he(Ts.LAMBDA),body:(0,pe.p_)((0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e)))),parameters:(0,pe.p_)(me(Ns))}),As=e=>(0,pe.PL)(xa,{_type:he(Ts.KEY_EXPRESSION),add:(0,pe.lq)((0,pe.MY)()),expression:(0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e))),key:(0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e)))}),ys=e=>(0,pe.PL)(ta,{_type:he(Ts.APPLIED_FUNCTION),function:(0,pe.MY)(),parameters:(0,pe.p_)((0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e))))}),xs=e=>(0,pe.PL)(Ji,{_type:he(Ts.APPLIED_PROPERTY),class:(0,pe.lq)((0,pe.MY)()),parameters:(0,pe.p_)((0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e)))),property:(0,pe.MY)()}),Is=e=>(0,pe.PL)(ma,{_type:he(Ts.PACKAGEABLE_ELEMENT_PTR),fullPath:(0,pe.MY)()}),ws=e=>(0,pe.PL)(Qa,{_type:he(Ts.GENERIC_TYPE_INSTANCE),genericType:(0,pe.Ie)((e=>(0,pe.lK)(cs,e)),(e=>Es(e)),{beforeDeserialize:function(e,t,n){void 0!==n.fullPath&&void 0===n.genericType?e(null,n.fullPath):e(null,n.genericType)}})}),ks=e=>{const t=new Qa;return U(e.unitType)?t.genericType=rs(e.unitType):t.genericType=rs(W(e.fullPath,"Can't deserialize hacked unit: either field 'fullPath' or 'unitType' must be a non-empty string")),t},Rs=e=>{const t=new Qa;return t.genericType=rs(W(e.fullPath,"Can't deserialize hacked class: field 'fullPath' must be a non-empty string")),t},Os=e=>(0,pe.PL)(na,{_type:he(Ts.COLLECTION),multiplicity:me(Ma),values:(0,pe.p_)((0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e))))}),Ls=(0,pe.PL)(class extends oa{fullPath;value;accept_ValueSpecificationVisitor(e){return e.visit_EnumValue(this)}},{_type:he(Ts.ENUM_VALUE),fullPath:(0,pe.MY)(),value:(0,pe.MY)()}),Fs=(0,pe.PL)(sa,{_type:he(Ts.CDECIMAL),value:(0,pe.MY)()}),Ps=(0,pe.PL)(la,{_type:he(Ts.CINTEGER),value:(0,pe.MY)()}),Bs=(0,pe.PL)(ia,{_type:he(Ts.CSTRING),value:(0,pe.MY)()}),Ds=(0,pe.PL)(ca,{_type:he(Ts.CFLOAT),value:(0,pe.MY)()}),js=(0,pe.PL)(pa,{_type:he(Ts.CDATETIME),value:(0,pe.MY)()}),Ms=(0,pe.PL)(ga,{_type:he(Ts.CSTRICTTIME),value:(0,pe.MY)()}),Us=(0,pe.PL)(da,{_type:he(Ts.CSTRICTDATE),value:(0,pe.MY)()}),Gs=(0,pe.PL)(class extends ua{accept_ValueSpecificationVisitor(e){return e.visit_CLatestDate(this)}},{_type:he(Ts.CLATESTDATE)}),Vs=(0,pe.PL)(aa,{_type:he(Ts.CBOOLEAN),value:(0,pe.MY)()}),Hs=(0,pe.PL)(class extends ra{value;accept_ValueSpecificationVisitor(e){return e.visit_CByteArray(this)}},{_type:he(Ts.CBYTEARRAY),value:(0,pe.MY)()}),Ws=(e,t,n)=>{if(Array.isArray(e.values)){if(0===e.values.length){const e=new na;return e.multiplicity=Dr.ZERO,e}return 1===e.values.length?n({...e,value:e.values[0]}):fl({...e,_type:Ts.COLLECTION},t)}return n(e)},$s=e=>(0,pe.PL)(ha,{_type:he(Ts.CLASS_INSTANCE),multiplicity:me(Ma),type:(0,pe.MY)(),value:(0,pe.Ie)((t=>function(e,t){if(e instanceof ba)return(0,pe.lK)(Ys(t),e);if(e instanceof Ca)return(0,pe.lK)(Xs(t),e);if(e instanceof Na)return(0,pe.lK)(tl(t),e);if(e instanceof va)return(0,pe.lK)(nl(t),e);if(e instanceof _a)return(0,pe.lK)(ol(t),e);if(e instanceof Ia)return(0,pe.lK)(il(t),e);if(e instanceof Ta)return(0,pe.lK)(rl,e);if(e instanceof ya)return(0,pe.lK)(al,e);if(e instanceof wa)return(0,pe.lK)(sl(t),e);if(e instanceof ka)return(0,pe.lK)(ll(t),e);if(e instanceof La)return(0,pe.lK)(ml(t),e);if(e instanceof Oa)return(0,pe.lK)(gl(t),e);if(e instanceof Ra)return(0,pe.lK)(cl,e);if(e instanceof fa)return(0,pe.lK)(dl(t),e);if(e instanceof Fa)return(0,pe.lK)(pl(t),e);if(e instanceof Pa)return(0,pe.lK)(ul,e);const n=t.flatMap((e=>e.V1_getExtraClassInstanceValueProtocolSerializers?.()??[]));for(const o of n){const n=o(e,t);if(n)return n}throw new I("Can't serialize class instance value: no compatible serializer available from plugins",e)}(t,e)),((t,n)=>function(e,t,n){switch(t){case _s.PATH:return(0,pe.iu)(Ys(n),e);case _s.ROOT_GRAPH_FETCH_TREE:return(0,pe.iu)(Xs(n),e);case _s.AGGREGATE_VALUE:return(0,pe.iu)(nl(n),e);case _s.EXECUTION_CONTEXT_INSTANCE:return(0,pe.iu)(tl(n),e);case _s.PAIR:return(0,pe.iu)(ol(n),e);case _s.PURE_LIST:return(0,pe.iu)(il(n),e);case _s.RUNTIME_INSTANCE:return(0,pe.iu)(rl,e);case _s.SERIALIZATION_CONFIG:return(0,pe.iu)(al,e);case _s.TDS_AGGREGATE_VALUE:return(0,pe.iu)(sl(n),e);case _s.TDS_COLUMN_INFORMATION:return(0,pe.iu)(ll(n),e);case _s.TDS_OLAP_AGGREGATION:return(0,pe.iu)(ml(n),e);case _s.TDS_OLAP_RANK:return(0,pe.iu)(gl(n),e);case _s.TDS_SORT_INFORMATION:return(0,pe.iu)(cl,e);case _s.COL_SPEC:return(0,pe.iu)(dl(n),e);case _s.COL_SPEC_ARRAY:return(0,pe.iu)(pl(n),e);case _s.RELATION_STORE_ACCESSOR:return(0,pe.iu)(ul,e);default:{const o=n.flatMap((e=>e.V1_getExtraClassInstanceValueProtocolDeserializers?.()??[]));for(const r of o){const o=r(e,t,n);if(o)return o}throw new I(`Can't deserialize value specification of type '${e._type}': no compatible deserializer available from plugins`)}}}(t,n.json.type,e)))}),zs=e=>(0,pe.PL)(Va,{_type:he(bs.PROPERTY_PATH_ELEMENT),property:(0,pe.MY)(),parameters:(0,pe.p_)((0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e))))}),Ys=e=>(0,pe.PL)(ba,{_type:he(_s.PATH),name:(0,pe.MY)(),startType:(0,pe.MY)(),path:(0,pe.p_)((0,pe.Ie)((t=>function(e,t){return e instanceof Va?(0,pe.lK)(zs(t),e):pe._Z}(t,e)),(t=>function(e,t){return e._type===bs.PROPERTY_PATH_ELEMENT?(0,pe.iu)(zs(t),e):pe._Z}(t,e))))}),Xs=e=>(0,pe.PL)(Ca,{_type:he(_s.ROOT_GRAPH_FETCH_TREE),class:(0,pe.MY)(),subTrees:(0,pe.p_)((0,pe.Ie)((t=>Js(t,e)),(t=>Qs(t,e)))),subTypeTrees:(0,pe.p_)((0,pe.Ie)((t=>Js(t,e)),(t=>Qs(t,e))))}),Ks=e=>(0,pe.PL)(Sa,{_type:he(vs.PROPERTY_GRAPH_FETCH_TREE),alias:(0,pe.lq)((0,pe.MY)()),parameters:(0,pe.p_)((0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e)))),property:(0,pe.MY)(),subTrees:(0,pe.p_)((0,pe.Ie)((t=>Js(t,e)),(t=>Qs(t,e)))),subTypeTrees:(0,pe.p_)((0,pe.Ie)((t=>Js(t,e)),(t=>Qs(t,e)))),subType:(0,pe.lq)((0,pe.MY)())}),qs=e=>(0,pe.PL)(Aa,{_type:he(_s.SUBTYPE_GRAPH_FETCH_TREE),subTrees:(0,pe.p_)((0,pe.Ie)((t=>Js(t,e)),(t=>Qs(t,e)))),subTypeClass:(0,pe.MY)()});function Js(e,t){const n=t.flatMap((e=>e.V1_getExtraGraphFetchProtocolSerializers?.()??[]));for(const o of n){const n=o(e,t);if(n)return n}if(e instanceof Sa)return(0,pe.lK)(Ks(t),e);if(e instanceof Ca)return(0,pe.lK)(Xs(t),e);if(e instanceof Aa)return(0,pe.lK)(qs(t),e);throw new I("Can't serialize graph fetch tree: no compatible serializer available from plugins",e)}function Qs(e,t){switch(e._type){case vs.PROPERTY_GRAPH_FETCH_TREE:return(0,pe.iu)(Ks(t),e);case _s.ROOT_GRAPH_FETCH_TREE:return(0,pe.iu)(Xs(t),e);case _s.SUBTYPE_GRAPH_FETCH_TREE:return(0,pe.iu)(qs(t),e);default:{const n=t.flatMap((e=>e.V1_getExtraGraphFetchProtocolDeserializers?.()??[]));for(const o of n){const n=o(e,t);if(n)return n}throw new I(`Can't deserialize graph fetch tree node of type '${e._type}': no compatible deserializer available from plugins`)}}}const Zs=e=>(0,pe.PL)(qa,{_type:he(Cs.ANALYTICS_EXECUTION_CONTEXT),enableConstraints:(0,pe.lq)((0,pe.MY)()),queryTimeOutInSeconds:(0,pe.lq)((0,pe.MY)()),toFlowSetFunction:me(Ss(e)),useAnalytics:(0,pe.MY)()}),el=(0,pe.PL)(Ja,{_type:he(Cs.BASE_EXECUTION_CONTEXT),enableConstraints:(0,pe.lq)((0,pe.MY)()),queryTimeOutInSeconds:(0,pe.lq)((0,pe.MY)())}),tl=e=>(0,pe.PL)(Na,{_type:he(_s.EXECUTION_CONTEXT_INSTANCE),executionContext:(0,pe.Ie)((t=>function(e,t){return e instanceof qa?(0,pe.lK)(Zs(t),e):e instanceof Ja?(0,pe.lK)(el,e):pe._Z}(t,e)),(t=>function(e,t){switch(e._type){case Cs.ANALYTICS_EXECUTION_CONTEXT:return(0,pe.iu)(Zs(t),e);case Cs.BASE_EXECUTION_CONTEXT:return(0,pe.iu)(el,e);default:return pe._Z}}(t,e)))}),nl=e=>(0,pe.PL)(va,{_type:he(_s.AGGREGATE_VALUE),mapFn:me(Ss(e)),aggregateFn:me(Ss(e))}),ol=e=>(0,pe.PL)(_a,{_type:he(_s.PAIR),first:(0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e))),second:(0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e)))}),rl=(0,pe.PL)(Ta,{_type:he(_s.RUNTIME_INSTANCE),runtime:(0,pe.Ie)((e=>(e=>{if(e instanceof Wa)return(0,pe.lK)(Wa,e);if(e instanceof za)return(0,pe.lK)(Xa,e);throw new I("Can't serialize runtime",e)})(e)),(e=>(0,pe.iu)(Wa,e)))}),il=e=>(0,pe.PL)(Ia,{_type:he(_s.PURE_LIST),values:(0,pe.p_)((0,pe.Ie)((t=>El(t,e)),(t=>fl(t,e))))}),al=(0,pe.PL)(ya,{_type:he(_s.SERIALIZATION_CONFIG),includeType:(0,pe.lq)((0,pe.MY)()),typeKeyName:(0,pe.MY)(),includeEnumTypee:(0,pe.lq)((0,pe.MY)()),removePropertiesWithNullValuese:(0,pe.lq)((0,pe.MY)()),removePropertiesWithEmptySetse:(0,pe.lq)((0,pe.MY)()),fullyQualifiedTypePathe:(0,pe.lq)((0,pe.MY)()),includeObjectReferencee:(0,pe.lq)((0,pe.MY)())}),sl=e=>(0,pe.PL)(wa,{_type:he(_s.TDS_AGGREGATE_VALUE),name:(0,pe.MY)(),pmapFn:me(Ss(e)),aggregateFn:me(Ss(e))}),ll=e=>(0,pe.PL)(ka,{_type:he(_s.TDS_COLUMN_INFORMATION),name:(0,pe.MY)(),columnFn:me(Ss(e))}),cl=(0,pe.PL)(Ra,{_type:he(_s.TDS_SORT_INFORMATION),column:(0,pe.MY)(),direction:(0,pe.MY)()}),ul=(0,pe.PL)(Pa,{path:(0,pe.p_)((0,pe.MY)())}),dl=e=>(0,pe.PL)(fa,{function1:(0,pe.lq)(me(Ss(e))),function2:(0,pe.lq)(me(Ss(e))),name:(0,pe.MY)(),type:(0,pe.lq)((0,pe.MY)())}),pl=e=>(0,pe.PL)(Fa,{colSpecs:(0,pe.p_)(me(dl(e)))}),gl=e=>(0,pe.PL)(Oa,{_type:he(_s.TDS_OLAP_RANK),function:me(Ss(e))}),ml=e=>(0,pe.PL)(La,{_type:he(_s.TDS_OLAP_AGGREGATION),function:me(Ss(e)),columnName:(0,pe.MY)()});class hl{plugins=[];constructor(e){this.plugins=e}visit_INTERNAL__UnknownValueSpecfication(e){return e.content}visit_Variable(e){return(0,pe.lK)(Ns,e)}visit_Lambda(e){return(0,pe.lK)(Ss(this.plugins),e)}visit_KeyExpression(e){return(0,pe.lK)(As(this.plugins),e)}visit_PackageableElementPtr(e){return(0,pe.lK)(Is(),e)}visit_GenericTypeInstance(e){return(0,pe.lK)(ws(this.plugins),e)}visit_AppliedFunction(e){return(0,pe.lK)(ys(this.plugins),e)}visit_AppliedProperty(e){return(0,pe.lK)(xs(this.plugins),e)}visit_Collection(e){return(0,pe.lK)(Os(this.plugins),e)}visit_EnumValue(e){return(0,pe.lK)(Ls,e)}visit_CInteger(e){return(0,pe.lK)(Ps,e)}visit_CDecimal(e){return(0,pe.lK)(Fs,e)}visit_CString(e){return(0,pe.lK)(Bs,e)}visit_CBoolean(e){return(0,pe.lK)(Vs,e)}visit_CByteArray(e){return(0,pe.lK)(Hs,e)}visit_CFloat(e){return(0,pe.lK)(Ds,e)}visit_CDateTime(e){return(0,pe.lK)(js,e)}visit_CStrictDate(e){return(0,pe.lK)(Us,e)}visit_CStrictTime(e){return(0,pe.lK)(Ms,e)}visit_CLatestDate(e){return(0,pe.lK)(Gs,e)}visit_ClassInstance(e){return(0,pe.lK)($s(this.plugins),e)}}function fl(e,t){switch(e._type){case Ts.APPLIED_FUNCTION:return(0,pe.iu)(ys(t),e);case Ts.APPLIED_PROPERTY:return(0,pe.iu)(xs(t),e);case Ts.VARIABLE:return(0,pe.iu)(Ns,e);case Ts.LAMBDA:return(0,pe.iu)(Ss(t),e);case Ts.KEY_EXPRESSION:return(0,pe.iu)(As(t),e);case Ts.COLLECTION:return(0,pe.iu)(Os(t),e);case Ts.ENUM_VALUE:return(0,pe.iu)(Ls,e);case Ts.CBOOLEAN:return Ws(e,t,(e=>(0,pe.iu)(Vs,e)));case Ts.CBYTEARRAY:return Ws(e,t,(e=>(0,pe.iu)(Hs,e)));case Ts.CDATETIME:return Ws(e,t,(e=>(0,pe.iu)(js,e)));case Ts.CSTRICTTIME:return Ws(e,t,(e=>(0,pe.iu)(Ms,e)));case Ts.CDECIMAL:return Ws(e,t,(e=>(0,pe.iu)(Fs,e)));case Ts.CFLOAT:return Ws(e,t,(e=>(0,pe.iu)(Ds,e)));case Ts.CINTEGER:return Ws(e,t,(e=>(0,pe.iu)(Ps,e)));case Ts.CLATESTDATE:return Ws(e,t,(e=>(0,pe.iu)(Gs,e)));case Ts.CSTRICTDATE:return Ws(e,t,(e=>(0,pe.iu)(Us,e)));case Ts.CSTRING:if(Array.isArray(e.values)&&!e.values.length&&(n=e.multiplicity,H(n)&&"Object"===n.constructor.name)&&1===e.multiplicity.upperBound){const e=new ia;return e.value="",e}return Ws(e,t,(e=>(0,pe.iu)(Bs,e)));case Ts.CLASS_INSTANCE:return(0,pe.iu)($s(t),e);case _s.PAIR:case _s.AGGREGATE_VALUE:case _s.EXECUTION_CONTEXT_INSTANCE:case _s.PATH:case _s.ROOT_GRAPH_FETCH_TREE:case _s.PURE_LIST:case _s.RUNTIME_INSTANCE:case _s.SERIALIZATION_CONFIG:case _s.TDS_AGGREGATE_VALUE:case _s.TDS_COLUMN_INFORMATION:case _s.TDS_OLAP_AGGREGATION:case _s.TDS_OLAP_RANK:case _s.TDS_SORT_INFORMATION:return(0,pe.iu)($s(t),{_type:Ts.CLASS_INSTANCE,type:e._type,value:e});case Ts.HACKED_CLASS:return Rs(e);case Ts.UNIT_TYPE:case Ts.HACKED_UNIT:return ks(e);case Ts.PRIMITIVE_TYPE:case Ts.ENUM:case Ts.CLASS:case Ts.MAPPING_INSTANCE:case Ts.PACKAGEABLE_ELEMENT_PTR:return(0,pe.iu)(Is(),e);case Ts.GENERIC_TYPE_INSTANCE:return(0,pe.iu)(ws(t),e);default:throw new I(`Can't deserialize value specification of type '${e._type}'`)}var n}function El(e,t){return e.accept_ValueSpecificationVisitor(new hl(t))}function Cl(){const e=new Ki;return e.name=fi,e}function bl(e){const t=new Ji;return t.property=e,t.parameters.push(Cl()),t}function vl(e,t){const n=new Ur;return n.parameters=e,n.body=t,n}const _l=["meta::pure::metamodel","meta::pure::metamodel::type","meta::pure::metamodel::type::generics","meta::pure::metamodel::relationship","meta::pure::metamodel::valuespecification","meta::pure::metamodel::multiplicity","meta::pure::metamodel::function","meta::pure::metamodel::function::property","meta::pure::metamodel::extension","meta::pure::metamodel::import","meta::pure::functions::date","meta::pure::functions::string","meta::pure::functions::collection","meta::pure::functions::meta","meta::pure::functions::constraints","meta::pure::functions::lang","meta::pure::functions::boolean","meta::pure::functions::tools","meta::pure::functions::relation","meta::pure::functions::io","meta::pure::functions::math","meta::pure::functions::asserts","meta::pure::functions::test","meta::pure::functions::multiplicity","meta::pure::router","meta::pure::service","meta::pure::tds","meta::pure::tools","meta::pure::profiles"];function Tl(e){const t=(e=>{const t=e.lastIndexOf(Gr);return-1===t?void 0:e.substring(0,t)})(e);return t&&_l.includes(t)?Zi(e):e}function Nl(e,t){const n=new ta;return n.function=Tl(e),n.parameters=t,n}function Sl(e){const t=new na;return t.multiplicity=new Dr(e.length,e.length),t.values=e,t}function Al(e,t){const n=(e,t)=>(e.value=t,e);switch(e){case Hr.STRING:return n(new ia,W(t));case Hr.BOOLEAN:return n(new aa,z(t));case Hr.NUMBER:case Hr.DECIMAL:return n(new sa,$(t));case Hr.INTEGER:return n(new la,$(t));case Hr.FLOAT:return n(new ca,$(t));case Hr.DATE:case Hr.STRICTDATE:return n(new da,W(t));case Hr.DATETIME:return n(new pa,W(t));case Hr.STRICTTIME:return n(new ga,W(t));default:throw new I(`Can't build primitive value instance for unsupported type '${e}'`)}}function yl(e){const t=new ma;return t.fullPath=e,t}function xl(e,t){const n=new ha;return n.type=e,n.value=t,n}function Il(e,t,n,o){const r=new fa;return r.name=e,r.function1=t,r.function2=n,r.type=o,r}function wl(e){switch(e.type){case Hr.STRING:case Hr.BOOLEAN:case Hr.NUMBER:case Hr.DECIMAL:case Hr.INTEGER:case Hr.FLOAT:case Hr.DATE:case Hr.DATETIME:case Hr.STRICTDATE:case Hr.STRICTTIME:return Array.isArray(e.value)?Sl(e.value.map((t=>Al(e.type,t)))):Al(e.type,e.value);case ai.COLUMN:return bl(W(e.value));default:throw new I(`Can't build value instance for unsupported type '${e.type}'`)}}function kl(e){return Nl(Tl(Zr.NOT),[e])}function Rl(e,t,n){return xl(_s.COL_SPEC,Il(e,t,n))}function Ol(e){const t=new Fa;return t.colSpecs=e,xl(_s.COL_SPEC_ARRAY,t)}function Ll(e){const t=Cl();return e.length?e:[Il("INTERNAL__filler_count_agg_column",vl([t],[t]),vl([t],[Nl(Zr.COUNT,[t])]))]}function Fl(e,t,n){const o=Cl();return Il(e.name,vl([o],[bl(e.name)]),vl([o],[Nl(Tl(t),[o,...(n??[]).map((e=>wl(e)))])]))}function Pl(e,t,n,o){return Ll(n.columns.filter((n=>n.isSelected&&n.kind===ii.MEASURE&&!Hi(e,n.name)&&!n.excludedFromPivot&&!Hi(t.data.groupExtendedColumns,n.name))).map((e=>{const t=o.find((t=>t.operator===e.aggregateOperator)),n=t?.buildAggregateColumnExpression(e);if(!n)throw new I(`Can't build aggregate column for unsupported operator '${e.aggregateOperator}'`);return n})))}function Bl(e){const t=new Qa;return t.genericType=rs(zr.RELATION),t.genericType.typeArguments=[is(as(e.map((e=>ss(e.name,e.type)))))],t}function Dl(e,t,n,o){const r=t.data.pivot;if(!r)return Ll(n.columns.filter((n=>n.isSelected&&!Hi(e,n.name)&&!Hi(t.data.groupExtendedColumns,n.name))).map((e=>{const t=o.find((t=>t.operator===e.aggregateOperator)),n=t?.buildAggregateColumnExpression(e);if(!n)throw new I(`Can't build aggregate column for unsupported operator '${e.aggregateOperator}'`);return n})));const i=r.castColumns.filter((e=>Gi(e.name))),a=r.castColumns.filter((e=>!Gi(e.name)));return Ll([...i.map((e=>{const t=Vi(e.name);return{...e,matchingColumnConfiguration:Hi(n.columns,t)}})).filter((e=>e.matchingColumnConfiguration)).map((e=>{const t=zi.serialization.fromJson(P(e.matchingColumnConfiguration).serialize());t.name=e.name;const n=o.find((e=>e.operator===t.aggregateOperator)),r=n?.buildAggregateColumnExpression(t);if(!r)throw new I(`Can't build aggregate column for unsupported operator '${t.aggregateOperator}'`);return r})),...a.filter((t=>!Hi(e,t.name))).map((e=>{const t=P(Hi(n.columns,e.name)),r=o.find((e=>e.operator===t.aggregateOperator)),i=r?.buildAggregateColumnExpression(t);if(!i)throw new I(`Can't build aggregate column for unsupported operator '${t.aggregateOperator}'`);return i}))])}function jl(e,t){if("groupOperator"in e){const n=e,o=n.groupOperator===ui.AND?Zr.AND:Zr.OR;let r=[];n.conditions.forEach((e=>{r.push(jl(e,t)),2===r.length&&(r=[Nl(o,r)])}));const i=P(r[0]);return n.not?kl(i):i}{const n=e,o=t.find((e=>e.operator===n.operator)),r=o?.buildConditionExpression(n);if(!r)throw new I(`Can't build filter condition expression for unsupported operator '${n.operator}'`);return n.not?kl(r):r}}function Ml(e,t,n,o){const r=e.data,i=Xi.serialization.fromJson(r.configuration),a=[],s={},l=function(e,t){return(n,o)=>{switch(n){case"leafExtend":case"groupExtend":Array.isArray(o)&&(o.forEach((t=>e.push(t))),t[n]=o);break;default:t[n]=o,e.push(o)}}}(a,s);if(r.leafExtendedColumns.length&&l("leafExtend",r.leafExtendedColumns.map((e=>Nl(Zr.EXTEND,[Ol([Il(e.name,D(n.deserializeValueSpecification(e.mapFn),Ur),e.reduceFn?D(n.deserializeValueSpecification(e.reduceFn),Ur):void 0)])])))),r.filter&&l("filter",Nl(Zr.FILTER,[vl([Cl()],[jl(r.filter,n.filterOperations)])])),r.selectColumns.length&&l("select",Nl(Zr.SELECT,[Ol(r.selectColumns.map((e=>Il(e.name))))])),r.pivot){const t=r.pivot;l("sort",Nl(Zr.SORT,[Sl(r.pivot.columns.map((e=>Nl(Hi(i.columns,e.name)?.pivotSortDirection===di.DESCENDING?Zr.DESCENDING:Zr.ASCENDING,[Rl(e.name)]))))])),l("pivot",Nl(Zr.PIVOT,[Ol(t.columns.map((e=>Il(e.name)))),Ol(Pl(t.columns,e,i,n.aggregateOperations))])),t.castColumns.length&&l("pivotCast",Nl(Zr.CAST,[Bl(t.castColumns)]))}if(r.groupBy){const t=r.groupBy;i.showRootAggregation&&o?.rootAggregation&&a.push((c=o.rootAggregation.columnName,Nl(Zr.EXTEND,[Rl(c,vl([Cl()],[Al(Hr.STRING,bi)]))]))),l("groupBy",Nl(Zr.GROUP_BY,[Ol(t.columns.map((e=>Il(e.name)))),Ol(Dl(t.columns,e,i,n.aggregateOperations))])),l("groupBySort",Nl(Zr.SORT,[Sl(t.columns.map((e=>Nl(i.treeColumnSortDirection===di.ASCENDING?Zr.ASCENDING:Zr.DESCENDING,[Rl(e.name)]))))]))}var c;if(r.groupExtendedColumns.length&&l("groupExtend",r.groupExtendedColumns.map((e=>Nl(Zr.EXTEND,[Ol([Il(e.name,D(n.deserializeValueSpecification(e.mapFn),Ur),e.reduceFn?D(n.deserializeValueSpecification(e.reduceFn),Ur):void 0)])])))),r.sortColumns.length&&l("sort",Nl(Zr.SORT,[Sl(r.sortColumns.map((e=>Nl(e.direction===di.ASCENDING?Zr.ASCENDING:Zr.DESCENDING,[Rl(e.name)]))))])),void 0!==r.limit&&l("limit",Nl(Zr.LIMIT,[Al(Hr.INTEGER,r.limit)])),o?.pagination&&a.push(Nl(Zr.SLICE,[Al(Hr.INTEGER,o.pagination.start),Al(Hr.INTEGER,o.pagination.end)])),!o?.skipExecutionContext){const e=n.buildExecutionContext(t);e&&a.push(e)}if(o?.postProcessor?.(e,a,s,i,n),0===a.length)return t.query;for(let e=0;e<a.length;e++)N(a,e).parameters.unshift(0===e?t.query:N(a,e-1));return N(a,a.length-1)}var Ul,Gl;!function(e){e.V1_0_0="v1_0_0",e.VX_X_X="vX_X_X"}(Ul||(Ul={}));class Vl{columns=[];query}class Hl extends Vl{}function Wl(e){M(e.name===fi,`Can't process variable '${e.name}': expected variable name to be '${fi}'`)}function $l(e,t){return M(1===e.parameters.length,`Can't process property '${e.property}': expected exactly 1 parameter`),Wl(D(N(e.parameters,0),Ki,`Can't process property '${e.property}': failed to extract variable`)),t(e.property)}function zl(e,t,n,o){return M(e.parameters.length>=t+1,`Can't process ${Zi(e.function)}() expression: expected at least ${t+1} parameter(s)`),D(e.parameters[t],n,o??`Can't process ${Zi(e.function)}() expression: found unexpected type for parameter at index ${t}`)}function Yl(e,t){return D(zl(e,t,ha).value,fa,`Can't process ${Zi(e.function)}() expression: expected parameter at index ${t} to be a column specification`)}function Xl(e,t){return D(zl(e,t,ha).value,Fa,`Can't process ${Zi(e.function)}() expression: expected parameter at index ${t} to be a column specification list`)}function Kl(e,t){return M(1===e.body.length,`${t??"Can't process lambda"}: expected lambda body to have exactly 1 expression`),M(1===e.parameters.length,`${t??"Can't process lambda"}: expected lambda to have exactly 1 parameter`),Wl(N(e.parameters,0)),N(e.body,0)}function ql(e){return D(e.rawType,es,"Can't process generic type: failed to extract packageable type")}function Jl(e,t,n){if(e instanceof ra)return function(e){if(e instanceof ia)return{value:e.value,type:Hr.STRING};if(e instanceof aa)return{value:e.value,type:Hr.BOOLEAN};if(e instanceof sa)return{value:e.value,type:Hr.DECIMAL};if(e instanceof la)return{value:e.value,type:Hr.INTEGER};if(e instanceof ca)return{value:e.value,type:Hr.FLOAT};if(e instanceof da)return{value:e.value,type:Hr.STRICTDATE};if(e instanceof pa)return{value:e.value,type:Hr.DATETIME};if(e instanceof ga)return{value:e.value,type:Hr.STRICTTIME};throw new I("Can't process unsupported operation primitive value")}(e);if(e instanceof Ji){const o=$l(e,t);return n?.(o),{value:o.name,type:ai.COLUMN}}if(void 0===e)return{type:ai.VOID};throw new I("Can't process unsupported operation value")}function Ql(e,t){const n=new Set;e.forEach((e=>{if(n.has(e.name))throw new Error(t?.(e.name)??`Can't process expression: found duplicate columns '${e.name}'`);n.add(e.name)}))}function Zl(e,t,n){const o=Math.min(e.length,t.length);if(!o)return[];let r=-1;for(let n=0;n<o&&N(e,n).name===N(t,n).name&&N(e,n).type===N(t,n).type;n++)r=n;return n.filter((e=>e.split(hi).length<=r+1)).sort()}async function ec(e,t,n){const o=e.map((e=>{const t=Xl(e,0).colSpecs;return M(1===t.length,`Can't process extend() expression: expected 1 column specification, got ${t.length}`),N(t,0)})),r=function(e){return Nl(Zr.CAST,[Al(Hr.STRING,""),Bl(e)])}(t),i=o.map((e=>Nl(Zr.EXTEND,[Ol([Il(e.name,P(e.function1,`Can't process extend() expression: expected a transformation function expression for column '${e.name}'`),e.function2)])])));for(let e=0;e<i.length;e++)N(i,e).parameters.unshift(0===e?r:N(i,e-1));const a=N(i,i.length-1);let s=[];try{s=(await n.getQueryRelationReturnType(vl([],[a]),new Hl)).columns}catch(e){throw w(e),new Error(`Can't process extend() expression: failed to retrieve type information for columns. Error: ${e.message}`)}return o.map((e=>({name:e.name,type:P(Hi(s,e.name),`Can't process extend() expression: failed to retrieve type information for column '${e.name}'`).type,mapFn:n.serializeValueSpecification(P(e.function1,`Can't process extend() expression: expected a transformation function expression for column '${e.name}'`)),reduceFn:e.function2?n.serializeValueSpecification(e.function2):void 0})))}function tc(e,t,n){if(!(e instanceof ta))throw new Error("Can't process filter() expression: expected a function expression");const o={groupOperator:ui.AND,conditions:[]};return ea(e.function,Zr.AND)?e.parameters.forEach((e=>{o.conditions.push(oc(e,t,n))})):ea(e.function,Zr.OR)?(o.groupOperator=ui.OR,e.parameters.forEach((e=>{o.conditions.push(oc(e,t,n))}))):o.conditions.push(oc(e,t,n)),o}function nc(e){return M(ea(e.function,Zr.NOT),"Can't process filter condition expression: failed to unwrap not() function"),M(1===e.parameters.length,"Can't process not() function: expected 1 parameter"),zl(e,0,ta)}function oc(e,t,n){if(!(e instanceof ta))throw new I("Can't process filter condition expression: expected a function expression");if(ea(e.function,[Zr.AND,Zr.OR]))return tc(e,t,n);for(const o of n){const n=o.buildConditionSnapshot(e,t);if(n)return n}if(ea(e.function,Zr.NOT)){const o=nc(e);for(const e of n){const n=e.buildConditionSnapshot(o,t);if(n)return n.not=!0,n}if(o instanceof ta&&ea(o.function,[Zr.AND,Zr.OR])){const e=tc(o,t,n);return e.not=!0,e}}throw new Error("Can't process filter condition: no matching operator found")}function rc(e,t,n){if(e)try{if(ea(e.function,t)){if(2!==e.parameters.length&&1!==e.parameters.length)return;let t;if(e.parameters[0]instanceof Ji&&(t=$l(e.parameters[0],n)),!t)return;const o=Jl(e.parameters[1],n,(e=>{if(ji(t.type)!==ji(e.type))throw new Error("Can't process filter condition: found incompatible columns")}));return{column:t,value:o}}}catch{return}}function ic(e,t,n){if(e)try{if(ea(e.function,t)){if(2!==e.parameters.length)return;const t=e.parameters[0];if(!(t instanceof ta&&ea(t.function,Zr.TO_LOWERCASE)))return;if(1!==t.parameters.length)return;let o;if(t.parameters[0]instanceof Ji&&(o=$l(t.parameters[0],n)),!o)return;const r=e.parameters[1];if(!(r instanceof ta&&ea(r.function,Zr.TO_LOWERCASE)))return;if(1!==r.parameters.length)return;const i=Jl(r.parameters[0],n,(e=>{if(ji(o.type)!==ji(e.type))throw new Error("Can't process filter condition: found incompatible columns")}));return{column:o,value:i}}}catch{return}}function ac(e,t,n){for(const o of n){const n=o.buildAggregateColumnSnapshot(e,t);if(n)return n}throw new Error(`Can't process aggregate column '${e.name}': no matching operator found`)}function sc(e,t,n){try{if(e.function1&&e.function2){const o=Kl(e.function1),r=Kl(e.function2);if(o instanceof Ji&&r instanceof ta&&r.parameters.length>=1&&ea(r.function,t)){const t=$l(o,n);return M(t.name===e.name,"Can't process aggregate column: column name must match mapper column name"),Wl(zl(r,0,Ki)),{column:t,paramterValues:r.parameters.slice(1).map((e=>Jl(e,n)))}}}}catch{return}}function lc(e,t){return zl(e,0,na,"Can't process sort() expression: expected parameter at index 0 to be a collection").values.map((e=>{const n=function(e,t){return B(e,ta,"Can't process function: found unexpected value specification type"),M(ea(e.function,Array.isArray(t)?t:[t]),`Can't process function: expected function to be one of [${(0,Te.A)((Array.isArray(t)?t:[t]).map(Zi)).join(", ")}]`),e}(e,[Zr.ASCENDING,Zr.DESCENDING]);return{...t(Yl(n,0).name),direction:ea(n.function,Zr.ASCENDING)?di.ASCENDING:di.DESCENDING}}))}function cc(e,t){return P(t.getColumn(e),`Can't find configuration for column '${e}'`)}!function(e){e.WHITESPACE="",e.KEYWORD="keyword",e.IDENTIFIER="identifier",e.OPERATOR="operator",e.DELIMITER="delimiter",e.PARSER="parser",e.NUMBER="number",e.DATE="date",e.COLOR="color",e.PACKAGE="package",e.STRING="string",e.COMMENT="comment",e.LANGUAGE_STRUCT="language-struct",e.MULTIPLICITY="multiplicity",e.GENERICS="generics",e.PROPERTY="property",e.PARAMETER="parameter",e.VARIABLE="variable",e.TYPE="type",e.INVALID="invalid"}(Gl||(Gl={}));const uc=(e,t,n,o)=>{const r=(e=>{const t=[];e.tokenColors.forEach((e=>{if(!e.settings)return;let n=[];n=U(e.scope)?e.scope.replace(/^[,]+/,"").replace(/[,]+$/,"").split(",").map((e=>e.trim())):Array.isArray(e.scope)?e.scope:[""];const o={};e.settings.foreground&&U(e.settings.foreground)&&(o.foreground=e.settings.foreground),e.settings.background&&U(e.settings.background)&&(o.background=e.settings.background),e.settings.fontStyle&&U(e.settings.fontStyle)&&(o.fontStyle=e.settings.fontStyle),n.forEach((e=>{if(L(e)||!Object.keys(o).length)return;const n={...o,token:e};t.push(n)}))}));const n={};return Object.entries(e.colors).forEach((([e,t])=>{Array.isArray(t)?t.length&&(n[e]=N(t,0)):n[e]=t})),{base:"vs-dark",inherit:!0,rules:t,colors:n}})(e);return{...r,base:t,colors:{...r.colors,...n},rules:[...r.rules,...o]}},dc=JSON.parse('{"name":"Solarized (dark)","tokenColors":[{"settings":{"foreground":"#839496"}},{"scope":["meta.embedded","source.groovy.embedded","string meta.image.inline.markdown"],"settings":{"foreground":"#839496"}},{"name":"Comment","scope":"comment","settings":{"fontStyle":"italic","foreground":"#586E75"}},{"name":"String","scope":"string","settings":{"foreground":"#2AA198"}},{"name":"Regexp","scope":"string.regexp","settings":{"foreground":"#DC322F"}},{"name":"Number","scope":"constant.numeric","settings":{"foreground":"#D33682"}},{"name":"Variable","scope":["variable.language","variable.other"],"settings":{"foreground":"#268BD2"}},{"name":"Keyword","scope":"keyword","settings":{"foreground":"#859900"}},{"name":"Storage","scope":"storage","settings":{"fontStyle":"bold","foreground":"#93A1A1"}},{"name":"Class name","scope":["entity.name.class","entity.name.type","entity.name.namespace","entity.name.scope-resolution"],"settings":{"fontStyle":"","foreground":"#CB4B16"}},{"name":"Function name","scope":"entity.name.function","settings":{"foreground":"#268BD2"}},{"name":"Variable start","scope":"punctuation.definition.variable","settings":{"foreground":"#859900"}},{"name":"Embedded code markers","scope":["punctuation.section.embedded.begin","punctuation.section.embedded.end"],"settings":{"foreground":"#DC322F"}},{"name":"Built-in constant","scope":["constant.language","meta.preprocessor"],"settings":{"foreground":"#B58900"}},{"name":"Support.construct","scope":["support.function.construct","keyword.other.new"],"settings":{"foreground":"#CB4B16"}},{"name":"User-defined constant","scope":["constant.character","constant.other"],"settings":{"foreground":"#CB4B16"}},{"name":"Inherited class","scope":"entity.other.inherited-class","settings":{"foreground":"#6C71C4"}},{"name":"Function argument","scope":"variable.parameter","settings":{}},{"name":"Tag name","scope":"entity.name.tag","settings":{"foreground":"#268BD2"}},{"name":"Tag start/end","scope":"punctuation.definition.tag","settings":{"foreground":"#586E75"}},{"name":"Tag attribute","scope":"entity.other.attribute-name","settings":{"foreground":"#93A1A1"}},{"name":"Library function","scope":"support.function","settings":{"foreground":"#268BD2"}},{"name":"Continuation","scope":"punctuation.separator.continuation","settings":{"foreground":"#DC322F"}},{"name":"Library constant","scope":["support.constant","support.variable"],"settings":{}},{"name":"Library class/type","scope":["support.type","support.class"],"settings":{"foreground":"#859900"}},{"name":"Library Exception","scope":"support.type.exception","settings":{"foreground":"#CB4B16"}},{"name":"Library variable","scope":"support.other.variable","settings":{}},{"name":"Invalid","scope":"invalid","settings":{"foreground":"#DC322F"}},{"name":"diff: header","scope":["meta.diff","meta.diff.header"],"settings":{"fontStyle":"italic","foreground":"#268BD2"}},{"name":"diff: deleted","scope":"markup.deleted","settings":{"fontStyle":"","foreground":"#DC322F"}},{"name":"diff: changed","scope":"markup.changed","settings":{"fontStyle":"","foreground":"#CB4B16"}},{"name":"diff: inserted","scope":"markup.inserted","settings":{"foreground":"#859900"}},{"name":"Markup Quote","scope":"markup.quote","settings":{"foreground":"#859900"}},{"name":"Markup Lists","scope":"markup.list","settings":{"foreground":"#B58900"}},{"name":"Markup Styling","scope":["markup.bold","markup.italic"],"settings":{"foreground":"#D33682"}},{"name":"Markup: Strong","scope":"markup.bold","settings":{"fontStyle":"bold"}},{"name":"Markup: Emphasis","scope":"markup.italic","settings":{"fontStyle":"italic"}},{"scope":"markup.strikethrough","settings":{"fontStyle":"strikethrough"}},{"name":"Markup Inline","scope":"markup.inline.raw","settings":{"fontStyle":"","foreground":"#2AA198"}},{"name":"Markup Headings","scope":"markup.heading","settings":{"fontStyle":"bold","foreground":"#268BD2"}},{"name":"Markup Setext Header","scope":"markup.heading.setext","settings":{"fontStyle":"","foreground":"#268BD2"}}],"colors":{"focusBorder":"#2AA19899","selection.background":"#2AA19899","input.background":"#003847","input.foreground":"#93A1A1","input.placeholderForeground":"#93A1A1AA","inputOption.activeBorder":"#2AA19899","inputValidation.infoBorder":"#363b5f","inputValidation.infoBackground":"#052730","inputValidation.warningBackground":"#5d5938","inputValidation.warningBorder":"#9d8a5e","inputValidation.errorBackground":"#571b26","inputValidation.errorBorder":"#a92049","errorForeground":"#ffeaea","badge.background":"#047aa6","progressBar.background":"#047aa6","dropdown.background":"#00212B","dropdown.border":"#2AA19899","button.background":"#2AA19899","list.activeSelectionBackground":"#005A6F","quickInputList.focusBackground":"#005A6F","list.hoverBackground":"#004454AA","list.inactiveSelectionBackground":"#00445488","list.dropBackground":"#00445488","list.highlightForeground":"#1ebcc5","editor.background":"#002B36","editor.foreground":"#839496","editorWidget.background":"#00212B","editorCursor.foreground":"#D30102","editorWhitespace.foreground":"#93A1A180","editor.lineHighlightBackground":"#073642","editorLineNumber.activeForeground":"#949494","editor.selectionBackground":"#274642","minimap.selectionHighlight":"#274642","editorIndentGuide.background":"#93A1A180","editorIndentGuide.activeBackground":"#C3E1E180","editorHoverWidget.background":"#004052","editorMarkerNavigationError.background":"#AB395B","editorMarkerNavigationWarning.background":"#5B7E7A","editor.selectionHighlightBackground":"#005A6FAA","editor.wordHighlightBackground":"#004454AA","editor.wordHighlightStrongBackground":"#005A6FAA","editorBracketHighlight.foreground1":"#cdcdcdff","editorBracketHighlight.foreground2":"#b58900ff","editorBracketHighlight.foreground3":"#d33682ff","peekViewResult.background":"#00212B","peekViewEditor.background":"#10192c","peekViewTitle.background":"#00212B","peekView.border":"#2b2b4a","peekViewEditor.matchHighlightBackground":"#7744AA40","titleBar.activeBackground":"#002C39","editorGroup.border":"#00212B","editorGroup.dropBackground":"#2AA19844","editorGroupHeader.tabsBackground":"#004052","tab.activeForeground":"#d6dbdb","tab.activeBackground":"#002B37","tab.inactiveForeground":"#93A1A1","tab.inactiveBackground":"#004052","tab.border":"#003847","tab.lastPinnedBorder":"#2AA19844","activityBar.background":"#003847","panel.border":"#2b2b4a","sideBar.background":"#00212B","sideBarTitle.foreground":"#93A1A1","statusBar.foreground":"#93A1A1","statusBar.background":"#00212B","statusBar.debuggingBackground":"#00212B","statusBar.noFolderBackground":"#00212B","statusBarItem.remoteBackground":"#2AA19899","ports.iconRunningProcessForeground":"#369432","statusBarItem.prominentBackground":"#003847","statusBarItem.prominentHoverBackground":"#003847","debugToolBar.background":"#00212B","debugExceptionWidget.background":"#00212B","debugExceptionWidget.border":"#AB395B","pickerGroup.foreground":"#2AA19899","pickerGroup.border":"#2AA19899","terminal.ansiBlack":"#073642","terminal.ansiRed":"#dc322f","terminal.ansiGreen":"#859900","terminal.ansiYellow":"#b58900","terminal.ansiBlue":"#268bd2","terminal.ansiMagenta":"#d33682","terminal.ansiCyan":"#2aa198","terminal.ansiWhite":"#eee8d5","terminal.ansiBrightBlack":"#002b36","terminal.ansiBrightRed":"#cb4b16","terminal.ansiBrightGreen":"#586e75","terminal.ansiBrightYellow":"#657b83","terminal.ansiBrightBlue":"#839496","terminal.ansiBrightMagenta":"#6c71c4","terminal.ansiBrightCyan":"#93a1a1","terminal.ansiBrightWhite":"#fdf6e3"},"semanticHighlighting":true}'),pc=JSON.parse('{"name":"GitHub Dark","colors":{"focusBorder":"#005cc5","foreground":"#d1d5da","descriptionForeground":"#959da5","errorForeground":"#f97583","textLink.foreground":"#79b8ff","textLink.activeForeground":"#c8e1ff","textBlockQuote.background":"#24292e","textBlockQuote.border":"#444d56","textCodeBlock.background":"#2f363d","textPreformat.foreground":"#d1d5da","textSeparator.foreground":"#586069","button.background":"#176f2c","button.foreground":"#dcffe4","button.hoverBackground":"#22863a","button.secondaryBackground":"#444d56","button.secondaryForeground":"#fff","button.secondaryHoverBackground":"#586069","checkbox.background":"#444d56","checkbox.border":"#1b1f23","dropdown.background":"#2f363d","dropdown.border":"#1b1f23","dropdown.foreground":"#e1e4e8","dropdown.listBackground":"#24292e","input.background":"#2f363d","input.border":"#1b1f23","input.foreground":"#e1e4e8","input.placeholderForeground":"#959da5","badge.foreground":"#c8e1ff","badge.background":"#044289","progressBar.background":"#0366d6","titleBar.activeForeground":"#e1e4e8","titleBar.activeBackground":"#24292e","titleBar.inactiveForeground":"#959da5","titleBar.inactiveBackground":"#1f2428","titleBar.border":"#1b1f23","activityBar.foreground":"#e1e4e8","activityBar.inactiveForeground":"#6a737d","activityBar.background":"#24292e","activityBarBadge.foreground":"#fff","activityBarBadge.background":"#0366d6","activityBar.activeBorder":"#f9826c","activityBar.border":"#1b1f23","sideBar.foreground":"#d1d5da","sideBar.background":"#1f2428","sideBar.border":"#1b1f23","sideBarTitle.foreground":"#e1e4e8","sideBarSectionHeader.foreground":"#e1e4e8","sideBarSectionHeader.background":"#1f2428","sideBarSectionHeader.border":"#1b1f23","list.hoverForeground":"#e1e4e8","list.inactiveSelectionForeground":"#e1e4e8","list.activeSelectionForeground":"#e1e4e8","list.hoverBackground":"#282e34","list.inactiveSelectionBackground":"#282e34","list.activeSelectionBackground":"#39414a","list.inactiveFocusBackground":"#1d2d3e","list.focusBackground":"#044289","tree.indentGuidesStroke":"#2f363d","notificationCenterHeader.foreground":"#959da5","notificationCenterHeader.background":"#24292e","notifications.foreground":"#e1e4e8","notifications.background":"#2f363d","notifications.border":"#1b1f23","notificationsErrorIcon.foreground":"#ea4a5a","notificationsWarningIcon.foreground":"#ffab70","notificationsInfoIcon.foreground":"#79b8ff","pickerGroup.border":"#444d56","pickerGroup.foreground":"#e1e4e8","quickInput.background":"#24292e","quickInput.foreground":"#e1e4e8","statusBar.foreground":"#d1d5da","statusBar.background":"#24292e","statusBar.border":"#1b1f23","statusBar.noFolderBackground":"#24292e","statusBar.debuggingBackground":"#931c06","statusBar.debuggingForeground":"#fff","statusBarItem.prominentBackground":"#282e34","statusBarItem.remoteForeground":"#d1d5da","statusBarItem.remoteBackground":"#24292e","editorGroupHeader.tabsBackground":"#1f2428","editorGroupHeader.tabsBorder":"#1b1f23","editorGroup.border":"#1b1f23","tab.activeForeground":"#e1e4e8","tab.inactiveForeground":"#959da5","tab.inactiveBackground":"#1f2428","tab.activeBackground":"#24292e","tab.hoverBackground":"#24292e","tab.unfocusedHoverBackground":"#24292e","tab.border":"#1b1f23","tab.unfocusedActiveBorderTop":"#1b1f23","tab.activeBorder":"#24292e","tab.unfocusedActiveBorder":"#24292e","tab.activeBorderTop":"#f9826c","breadcrumb.foreground":"#959da5","breadcrumb.focusForeground":"#e1e4e8","breadcrumb.activeSelectionForeground":"#d1d5da","breadcrumbPicker.background":"#2b3036","editor.foreground":"#e1e4e8","editor.background":"#24292e","editorWidget.background":"#1f2428","editor.foldBackground":"#58606915","editor.lineHighlightBackground":"#2b3036","editorLineNumber.foreground":"#444d56","editorLineNumber.activeForeground":"#e1e4e8","editorIndentGuide.background":"#2f363d","editorIndentGuide.activeBackground":"#444d56","editorWhitespace.foreground":"#444d56","editorCursor.foreground":"#c8e1ff","editorError.foreground":"#f97583","editorWarning.foreground":"#ffea7f","editor.findMatchBackground":"#ffd33d44","editor.findMatchHighlightBackground":"#ffd33d22","editor.linkedEditingBackground":"#3392FF22","editor.inactiveSelectionBackground":"#3392FF22","editor.selectionBackground":"#3392FF44","editor.selectionHighlightBackground":"#17E5E633","editor.selectionHighlightBorder":"#17E5E600","editor.wordHighlightBackground":"#17E5E600","editor.wordHighlightStrongBackground":"#17E5E600","editor.wordHighlightBorder":"#17E5E699","editor.wordHighlightStrongBorder":"#17E5E666","editorBracketMatch.background":"#17E5E650","editorBracketMatch.border":"#17E5E600","editorGutter.modifiedBackground":"#2188ff","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#ea4a5a","diffEditor.insertedTextBackground":"#28a74530","diffEditor.removedTextBackground":"#d73a4930","scrollbar.shadow":"#0008","scrollbarSlider.background":"#6a737d33","scrollbarSlider.hoverBackground":"#6a737d44","scrollbarSlider.activeBackground":"#6a737d88","editorOverviewRuler.border":"#1b1f23","panel.background":"#1f2428","panel.border":"#1b1f23","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#e1e4e8","panelTitle.inactiveForeground":"#959da5","panelInput.border":"#2f363d","terminal.foreground":"#d1d5da","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#586069","terminalCursor.foreground":"#79b8ff","terminal.ansiBrightWhite":"#fafbfc","terminal.ansiWhite":"#d1d5da","terminal.ansiBrightBlack":"#959da5","terminal.ansiBlack":"#586069","terminal.ansiBlue":"#2188ff","terminal.ansiBrightBlue":"#79b8ff","terminal.ansiGreen":"#34d058","terminal.ansiBrightGreen":"#85e89d","terminal.ansiCyan":"#39c5cf","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiRed":"#ea4a5a","terminal.ansiBrightRed":"#f97583","terminal.ansiMagenta":"#b392f0","terminal.ansiBrightMagenta":"#b392f0","terminal.ansiYellow":"#ffea7f","terminal.ansiBrightYellow":"#ffea7f","editorBracketHighlight.foreground1":"#79b8ff","editorBracketHighlight.foreground2":"#ffab70","editorBracketHighlight.foreground3":"#b392f0","editorBracketHighlight.foreground4":"#79b8ff","editorBracketHighlight.foreground5":"#ffab70","editorBracketHighlight.foreground6":"#b392f0","gitDecoration.addedResourceForeground":"#34d058","gitDecoration.modifiedResourceForeground":"#79b8ff","gitDecoration.deletedResourceForeground":"#ea4a5a","gitDecoration.untrackedResourceForeground":"#34d058","gitDecoration.ignoredResourceForeground":"#6a737d","gitDecoration.conflictingResourceForeground":"#ffab70","gitDecoration.submoduleResourceForeground":"#6a737d","debugToolBar.background":"#2b3036","editor.stackFrameHighlightBackground":"#C6902625","editor.focusedStackFrameHighlightBackground":"#2b6a3033","peekViewEditor.matchHighlightBackground":"#ffd33d33","peekViewResult.matchHighlightBackground":"#ffd33d33","peekViewEditor.background":"#1f242888","peekViewResult.background":"#1f2428","settings.headerForeground":"#e1e4e8","settings.modifiedItemIndicator":"#0366d6","welcomePage.buttonBackground":"#2f363d","welcomePage.buttonHoverBackground":"#444d56"},"semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#79b8ff"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#b392f0"}},{"scope":"variable.parameter.function","settings":{"foreground":"#e1e4e8"}},{"scope":"entity.name.tag","settings":{"foreground":"#85e89d"}},{"scope":"keyword","settings":{"foreground":"#f97583"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#f97583"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#e1e4e8"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#9ecbff"}},{"scope":"support","settings":{"foreground":"#79b8ff"}},{"scope":"meta.property-name","settings":{"foreground":"#79b8ff"}},{"scope":"variable","settings":{"foreground":"#ffab70"}},{"scope":"variable.other","settings":{"foreground":"#e1e4e8"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"carriage-return","settings":{"fontStyle":"italic underline","background":"#f97583","foreground":"#24292e","content":"^M"}},{"scope":"message.error","settings":{"foreground":"#fdaeb7"}},{"scope":"string variable","settings":{"foreground":"#79b8ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#dbedff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#dbedff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#85e89d"}},{"scope":"support.constant","settings":{"foreground":"#79b8ff"}},{"scope":"support.variable","settings":{"foreground":"#79b8ff"}},{"scope":"meta.module-reference","settings":{"foreground":"#79b8ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ffab70"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"markup.quote","settings":{"foreground":"#85e89d"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#e1e4e8"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#e1e4e8"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#79b8ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#86181d","foreground":"#fdaeb7"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#144620","foreground":"#85e89d"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#c24e00","foreground":"#ffab70"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"foreground":"#2f363d","background":"#79b8ff"}},{"scope":"meta.diff.range","settings":{"foreground":"#b392f0","fontStyle":"bold"}},{"scope":"meta.diff.header","settings":{"foreground":"#79b8ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"meta.output","settings":{"foreground":"#79b8ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#d1d5da"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#fdaeb7"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#dbedff","fontStyle":"underline"}}]}'),gc=JSON.parse('{"name":"GitHub Dark Dimmed","colors":{"focusBorder":"#316dca","foreground":"#adbac7","descriptionForeground":"#768390","errorForeground":"#e5534b","textLink.foreground":"#539bf5","textLink.activeForeground":"#539bf5","textBlockQuote.background":"#1c2128","textBlockQuote.border":"#444c56","textCodeBlock.background":"#636e7b66","textPreformat.foreground":"#768390","textSeparator.foreground":"#373e47","icon.foreground":"#768390","keybindingLabel.foreground":"#adbac7","button.background":"#347d39","button.foreground":"#ffffff","button.hoverBackground":"#46954a","button.secondaryBackground":"#3d444d","button.secondaryForeground":"#adbac7","button.secondaryHoverBackground":"#444c56","checkbox.background":"#2d333b","checkbox.border":"#444c56","dropdown.background":"#2d333b","dropdown.border":"#444c56","dropdown.foreground":"#adbac7","dropdown.listBackground":"#2d333b","input.background":"#22272e","input.border":"#444c56","input.foreground":"#adbac7","input.placeholderForeground":"#636e7b","badge.foreground":"#cdd9e5","badge.background":"#316dca","progressBar.background":"#316dca","titleBar.activeForeground":"#768390","titleBar.activeBackground":"#22272e","titleBar.inactiveForeground":"#768390","titleBar.inactiveBackground":"#1c2128","titleBar.border":"#444c56","activityBar.foreground":"#adbac7","activityBar.inactiveForeground":"#768390","activityBar.background":"#22272e","activityBarBadge.foreground":"#cdd9e5","activityBarBadge.background":"#316dca","activityBar.activeBorder":"#ec775c","activityBar.border":"#444c56","sideBar.foreground":"#adbac7","sideBar.background":"#1c2128","sideBar.border":"#444c56","sideBarTitle.foreground":"#adbac7","sideBarSectionHeader.foreground":"#adbac7","sideBarSectionHeader.background":"#1c2128","sideBarSectionHeader.border":"#444c56","list.hoverForeground":"#adbac7","list.inactiveSelectionForeground":"#adbac7","list.activeSelectionForeground":"#adbac7","list.hoverBackground":"#636e7b1a","list.inactiveSelectionBackground":"#636e7b66","list.activeSelectionBackground":"#636e7b66","list.focusForeground":"#adbac7","list.focusBackground":"#4184e426","list.inactiveFocusBackground":"#4184e426","list.highlightForeground":"#539bf5","tree.indentGuidesStroke":"#373e47","notificationCenterHeader.foreground":"#768390","notificationCenterHeader.background":"#2d333b","notifications.foreground":"#adbac7","notifications.background":"#2d333b","notifications.border":"#444c56","notificationsErrorIcon.foreground":"#e5534b","notificationsWarningIcon.foreground":"#c69026","notificationsInfoIcon.foreground":"#539bf5","pickerGroup.border":"#444c56","pickerGroup.foreground":"#768390","quickInput.background":"#2d333b","quickInput.foreground":"#adbac7","statusBar.foreground":"#768390","statusBar.background":"#22272e","statusBar.border":"#444c56","statusBar.focusBorder":"#316dca80","statusBar.noFolderBackground":"#22272e","statusBar.debuggingForeground":"#cdd9e5","statusBar.debuggingBackground":"#c93c37","statusBarItem.prominentBackground":"#636e7b66","statusBarItem.remoteForeground":"#adbac7","statusBarItem.remoteBackground":"#444c56","statusBarItem.hoverBackground":"#adbac714","statusBarItem.activeBackground":"#adbac71f","statusBarItem.focusBorder":"#316dca","editorGroupHeader.tabsBackground":"#1c2128","editorGroupHeader.tabsBorder":"#444c56","editorGroup.border":"#444c56","tab.activeForeground":"#adbac7","tab.inactiveForeground":"#768390","tab.inactiveBackground":"#1c2128","tab.activeBackground":"#22272e","tab.hoverBackground":"#22272e","tab.unfocusedHoverBackground":"#636e7b1a","tab.border":"#444c56","tab.unfocusedActiveBorderTop":"#444c56","tab.activeBorder":"#22272e","tab.unfocusedActiveBorder":"#22272e","tab.activeBorderTop":"#ec775c","breadcrumb.foreground":"#768390","breadcrumb.focusForeground":"#adbac7","breadcrumb.activeSelectionForeground":"#768390","breadcrumbPicker.background":"#2d333b","editor.foreground":"#adbac7","editor.background":"#22272e","editorWidget.background":"#2d333b","editor.foldBackground":"#636e7b1a","editor.lineHighlightBackground":"#636e7b1a","editorLineNumber.foreground":"#636e7b","editorLineNumber.activeForeground":"#adbac7","editorIndentGuide.background":"#adbac71f","editorIndentGuide.activeBackground":"#adbac73d","editorWhitespace.foreground":"#545d68","editorCursor.foreground":"#539bf5","editor.findMatchBackground":"#966600","editor.findMatchHighlightBackground":"#eac55f80","editor.linkedEditingBackground":"#539bf512","editor.selectionHighlightBackground":"#57ab5a40","editor.wordHighlightBackground":"#636e7b80","editor.wordHighlightBorder":"#636e7b99","editor.wordHighlightStrongBackground":"#636e7b4d","editor.wordHighlightStrongBorder":"#636e7b99","editorBracketMatch.background":"#57ab5a40","editorBracketMatch.border":"#57ab5a99","editorInlayHint.background":"#76839033","editorInlayHint.foreground":"#768390","editorInlayHint.typeBackground":"#76839033","editorInlayHint.typeForeground":"#768390","editorInlayHint.paramBackground":"#76839033","editorInlayHint.paramForeground":"#768390","editorGutter.modifiedBackground":"#ae7c1466","editorGutter.addedBackground":"#46954a66","editorGutter.deletedBackground":"#e5534b66","diffEditor.insertedLineBackground":"#347d3926","diffEditor.insertedTextBackground":"#57ab5a4d","diffEditor.removedLineBackground":"#c93c3726","diffEditor.removedTextBackground":"#f470674d","scrollbar.shadow":"#545d6833","scrollbarSlider.background":"#76839033","scrollbarSlider.hoverBackground":"#7683903d","scrollbarSlider.activeBackground":"#76839047","editorOverviewRuler.border":"#1c2128","minimapSlider.background":"#76839033","minimapSlider.hoverBackground":"#7683903d","minimapSlider.activeBackground":"#76839047","panel.background":"#1c2128","panel.border":"#444c56","panelTitle.activeBorder":"#ec775c","panelTitle.activeForeground":"#adbac7","panelTitle.inactiveForeground":"#768390","panelInput.border":"#444c56","debugIcon.breakpointForeground":"#e5534b","debugConsole.infoForeground":"#768390","debugConsole.warningForeground":"#c69026","debugConsole.errorForeground":"#ff938a","debugConsole.sourceForeground":"#daaa3f","debugConsoleInputIcon.foreground":"#b083f0","debugTokenExpression.name":"#6cb6ff","debugTokenExpression.value":"#96d0ff","debugTokenExpression.string":"#96d0ff","debugTokenExpression.boolean":"#6bc46d","debugTokenExpression.number":"#6bc46d","debugTokenExpression.error":"#ff938a","symbolIcon.arrayForeground":"#e0823d","symbolIcon.booleanForeground":"#539bf5","symbolIcon.classForeground":"#e0823d","symbolIcon.colorForeground":"#6cb6ff","symbolIcon.constructorForeground":"#dcbdfb","symbolIcon.enumeratorForeground":"#e0823d","symbolIcon.enumeratorMemberForeground":"#539bf5","symbolIcon.eventForeground":"#636e7b","symbolIcon.fieldForeground":"#e0823d","symbolIcon.fileForeground":"#c69026","symbolIcon.folderForeground":"#c69026","symbolIcon.functionForeground":"#b083f0","symbolIcon.interfaceForeground":"#e0823d","symbolIcon.keyForeground":"#539bf5","symbolIcon.keywordForeground":"#f47067","symbolIcon.methodForeground":"#b083f0","symbolIcon.moduleForeground":"#f47067","symbolIcon.namespaceForeground":"#f47067","symbolIcon.nullForeground":"#539bf5","symbolIcon.numberForeground":"#57ab5a","symbolIcon.objectForeground":"#e0823d","symbolIcon.operatorForeground":"#6cb6ff","symbolIcon.packageForeground":"#e0823d","symbolIcon.propertyForeground":"#e0823d","symbolIcon.referenceForeground":"#539bf5","symbolIcon.snippetForeground":"#539bf5","symbolIcon.stringForeground":"#6cb6ff","symbolIcon.structForeground":"#e0823d","symbolIcon.textForeground":"#6cb6ff","symbolIcon.typeParameterForeground":"#6cb6ff","symbolIcon.unitForeground":"#539bf5","symbolIcon.variableForeground":"#e0823d","symbolIcon.constantForeground":["#b4f1b4","#8ddb8c","#6bc46d","#57ab5a","#46954a","#347d39","#2b6a30","#245829","#1b4721","#113417"],"terminal.foreground":"#adbac7","terminal.ansiBlack":"#545d68","terminal.ansiRed":"#f47067","terminal.ansiGreen":"#57ab5a","terminal.ansiYellow":"#c69026","terminal.ansiBlue":"#539bf5","terminal.ansiMagenta":"#b083f0","terminal.ansiCyan":"#39c5cf","terminal.ansiWhite":"#909dab","terminal.ansiBrightBlack":"#636e7b","terminal.ansiBrightRed":"#ff938a","terminal.ansiBrightGreen":"#6bc46d","terminal.ansiBrightYellow":"#daaa3f","terminal.ansiBrightBlue":"#6cb6ff","terminal.ansiBrightMagenta":"#dcbdfb","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiBrightWhite":"#cdd9e5","editorBracketHighlight.foreground1":"#6cb6ff","editorBracketHighlight.foreground2":"#6bc46d","editorBracketHighlight.foreground3":"#daaa3f","editorBracketHighlight.foreground4":"#ff938a","editorBracketHighlight.foreground5":"#fc8dc7","editorBracketHighlight.foreground6":"#dcbdfb","editorBracketHighlight.unexpectedBracket.foreground":"#768390","gitDecoration.addedResourceForeground":"#57ab5a","gitDecoration.modifiedResourceForeground":"#c69026","gitDecoration.deletedResourceForeground":"#e5534b","gitDecoration.untrackedResourceForeground":"#57ab5a","gitDecoration.ignoredResourceForeground":"#636e7b","gitDecoration.conflictingResourceForeground":"#cc6b2c","gitDecoration.submoduleResourceForeground":"#768390","debugToolBar.background":"#2d333b","editor.stackFrameHighlightBackground":"#ae7c1466","editor.focusedStackFrameHighlightBackground":"#46954a66","peekViewEditor.matchHighlightBackground":"#ae7c1466","peekViewResult.matchHighlightBackground":"#ae7c1466","peekViewEditor.background":"#636e7b1a","peekViewResult.background":"#22272e","settings.headerForeground":"#adbac7","settings.modifiedItemIndicator":"#ae7c1466","welcomePage.buttonBackground":"#373e47","welcomePage.buttonHoverBackground":"#444c56"},"semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#768390"}},{"scope":["constant.other.placeholder","constant.character"],"settings":{"foreground":"#f47067"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language","entity"],"settings":{"foreground":"#6cb6ff"}},{"scope":["entity.name","meta.export.default","meta.definition.variable"],"settings":{"foreground":"#f69d50"}},{"scope":["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.object.member","meta.embedded.expression"],"settings":{"foreground":"#adbac7"}},{"scope":"entity.name.function","settings":{"foreground":"#dcbdfb"}},{"scope":["entity.name.tag","support.class.component"],"settings":{"foreground":"#8ddb8c"}},{"scope":"keyword","settings":{"foreground":"#f47067"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#f47067"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#adbac7"}},{"scope":["string","string punctuation.section.embedded source"],"settings":{"foreground":"#96d0ff"}},{"scope":"support","settings":{"foreground":"#6cb6ff"}},{"scope":"meta.property-name","settings":{"foreground":"#6cb6ff"}},{"scope":"variable","settings":{"foreground":"#f69d50"}},{"scope":"variable.other","settings":{"foreground":"#adbac7"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#ff938a"}},{"scope":"carriage-return","settings":{"fontStyle":"italic underline","background":"#f47067","foreground":"#cdd9e5","content":"^M"}},{"scope":"message.error","settings":{"foreground":"#ff938a"}},{"scope":"string variable","settings":{"foreground":"#6cb6ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#96d0ff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#96d0ff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#8ddb8c"}},{"scope":"support.constant","settings":{"foreground":"#6cb6ff"}},{"scope":"support.variable","settings":{"foreground":"#6cb6ff"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#8ddb8c"}},{"scope":"meta.module-reference","settings":{"foreground":"#6cb6ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#f69d50"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#6cb6ff"}},{"scope":"markup.quote","settings":{"foreground":"#8ddb8c"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#adbac7"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#adbac7"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#6cb6ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#5d0f12","foreground":"#ff938a"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#f47067"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#113417","foreground":"#8ddb8c"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#682d0f","foreground":"#f69d50"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"foreground":"#2d333b","background":"#6cb6ff"}},{"scope":"meta.diff.range","settings":{"foreground":"#dcbdfb","fontStyle":"bold"}},{"scope":"meta.diff.header","settings":{"foreground":"#6cb6ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#6cb6ff"}},{"scope":"meta.output","settings":{"foreground":"#6cb6ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#768390"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#ff938a"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#96d0ff"}}]}'),mc=JSON.parse('{"name":"GitHub Light Default","colors":{"focusBorder":"#0969da","foreground":"#1f2328","descriptionForeground":"#656d76","errorForeground":"#cf222e","textLink.foreground":"#0969da","textLink.activeForeground":"#0969da","textBlockQuote.background":"#f6f8fa","textBlockQuote.border":"#d0d7de","textCodeBlock.background":"#afb8c133","textPreformat.foreground":"#656d76","textSeparator.foreground":"#d8dee4","icon.foreground":"#656d76","keybindingLabel.foreground":"#1f2328","button.background":"#1f883d","button.foreground":"#ffffff","button.hoverBackground":"#1a7f37","button.secondaryBackground":"#ebecf0","button.secondaryForeground":"#24292f","button.secondaryHoverBackground":"#f3f4f6","checkbox.background":"#f6f8fa","checkbox.border":"#d0d7de","dropdown.background":"#ffffff","dropdown.border":"#d0d7de","dropdown.foreground":"#1f2328","dropdown.listBackground":"#ffffff","input.background":"#ffffff","input.border":"#d0d7de","input.foreground":"#1f2328","input.placeholderForeground":"#6e7781","badge.foreground":"#ffffff","badge.background":"#0969da","progressBar.background":"#0969da","titleBar.activeForeground":"#656d76","titleBar.activeBackground":"#ffffff","titleBar.inactiveForeground":"#656d76","titleBar.inactiveBackground":"#f6f8fa","titleBar.border":"#d0d7de","activityBar.foreground":"#1f2328","activityBar.inactiveForeground":"#656d76","activityBar.background":"#ffffff","activityBarBadge.foreground":"#ffffff","activityBarBadge.background":"#0969da","activityBar.activeBorder":"#fd8c73","activityBar.border":"#d0d7de","sideBar.foreground":"#1f2328","sideBar.background":"#f6f8fa","sideBar.border":"#d0d7de","sideBarTitle.foreground":"#1f2328","sideBarSectionHeader.foreground":"#1f2328","sideBarSectionHeader.background":"#f6f8fa","sideBarSectionHeader.border":"#d0d7de","list.hoverForeground":"#1f2328","list.inactiveSelectionForeground":"#1f2328","list.activeSelectionForeground":"#1f2328","list.hoverBackground":"#eaeef280","list.inactiveSelectionBackground":"#afb8c133","list.activeSelectionBackground":"#afb8c133","list.focusForeground":"#1f2328","list.focusBackground":"#ddf4ff","list.inactiveFocusBackground":"#ddf4ff","list.highlightForeground":"#0969da","tree.indentGuidesStroke":"#d8dee4","notificationCenterHeader.foreground":"#656d76","notificationCenterHeader.background":"#f6f8fa","notifications.foreground":"#1f2328","notifications.background":"#ffffff","notifications.border":"#d0d7de","notificationsErrorIcon.foreground":"#cf222e","notificationsWarningIcon.foreground":"#9a6700","notificationsInfoIcon.foreground":"#0969da","pickerGroup.border":"#d0d7de","pickerGroup.foreground":"#656d76","quickInput.background":"#ffffff","quickInput.foreground":"#1f2328","statusBar.foreground":"#656d76","statusBar.background":"#ffffff","statusBar.border":"#d0d7de","statusBar.focusBorder":"#0969da80","statusBar.noFolderBackground":"#ffffff","statusBar.debuggingForeground":"#ffffff","statusBar.debuggingBackground":"#cf222e","statusBarItem.prominentBackground":"#afb8c133","statusBarItem.remoteForeground":"#1f2328","statusBarItem.remoteBackground":"#eaeef2","statusBarItem.hoverBackground":"#1f232814","statusBarItem.activeBackground":"#1f23281f","statusBarItem.focusBorder":"#0969da","editorGroupHeader.tabsBackground":"#f6f8fa","editorGroupHeader.tabsBorder":"#d0d7de","editorGroup.border":"#d0d7de","tab.activeForeground":"#1f2328","tab.inactiveForeground":"#656d76","tab.inactiveBackground":"#f6f8fa","tab.activeBackground":"#ffffff","tab.hoverBackground":"#ffffff","tab.unfocusedHoverBackground":"#eaeef280","tab.border":"#d0d7de","tab.unfocusedActiveBorderTop":"#d0d7de","tab.activeBorder":"#ffffff","tab.unfocusedActiveBorder":"#ffffff","tab.activeBorderTop":"#fd8c73","breadcrumb.foreground":"#656d76","breadcrumb.focusForeground":"#1f2328","breadcrumb.activeSelectionForeground":"#656d76","breadcrumbPicker.background":"#ffffff","editor.foreground":"#1f2328","editor.background":"#ffffff","editorWidget.background":"#ffffff","editor.foldBackground":"#6e77811a","editor.lineHighlightBackground":"#eaeef280","editorLineNumber.foreground":"#8c959f","editorLineNumber.activeForeground":"#1f2328","editorIndentGuide.background":"#1f23281f","editorIndentGuide.activeBackground":"#1f23283d","editorWhitespace.foreground":"#afb8c1","editorCursor.foreground":"#0969da","editor.findMatchBackground":"#bf8700","editor.findMatchHighlightBackground":"#fae17d80","editor.linkedEditingBackground":"#0969da12","editor.selectionHighlightBackground":"#4ac26b40","editor.wordHighlightBackground":"#eaeef280","editor.wordHighlightBorder":"#afb8c199","editor.wordHighlightStrongBackground":"#afb8c14d","editor.wordHighlightStrongBorder":"#afb8c199","editorBracketMatch.background":"#4ac26b40","editorBracketMatch.border":"#4ac26b99","editorInlayHint.background":"#afb8c133","editorInlayHint.foreground":"#656d76","editorInlayHint.typeBackground":"#afb8c133","editorInlayHint.typeForeground":"#656d76","editorInlayHint.paramBackground":"#afb8c133","editorInlayHint.paramForeground":"#656d76","editorGutter.modifiedBackground":"#d4a72c66","editorGutter.addedBackground":"#4ac26b66","editorGutter.deletedBackground":"#ff818266","diffEditor.insertedLineBackground":"#aceebb4d","diffEditor.insertedTextBackground":"#6fdd8b80","diffEditor.removedLineBackground":"#ffcecb4d","diffEditor.removedTextBackground":"#ff818266","scrollbar.shadow":"#6e778133","scrollbarSlider.background":"#8c959f33","scrollbarSlider.hoverBackground":"#8c959f3d","scrollbarSlider.activeBackground":"#8c959f47","editorOverviewRuler.border":"#ffffff","minimapSlider.background":"#8c959f33","minimapSlider.hoverBackground":"#8c959f3d","minimapSlider.activeBackground":"#8c959f47","panel.background":"#f6f8fa","panel.border":"#d0d7de","panelTitle.activeBorder":"#fd8c73","panelTitle.activeForeground":"#1f2328","panelTitle.inactiveForeground":"#656d76","panelInput.border":"#d0d7de","debugIcon.breakpointForeground":"#cf222e","debugConsole.infoForeground":"#57606a","debugConsole.warningForeground":"#7d4e00","debugConsole.errorForeground":"#cf222e","debugConsole.sourceForeground":"#9a6700","debugConsoleInputIcon.foreground":"#6639ba","debugTokenExpression.name":"#0550ae","debugTokenExpression.value":"#0a3069","debugTokenExpression.string":"#0a3069","debugTokenExpression.boolean":"#116329","debugTokenExpression.number":"#116329","debugTokenExpression.error":"#a40e26","symbolIcon.arrayForeground":"#953800","symbolIcon.booleanForeground":"#0550ae","symbolIcon.classForeground":"#953800","symbolIcon.colorForeground":"#0a3069","symbolIcon.constructorForeground":"#3e1f79","symbolIcon.enumeratorForeground":"#953800","symbolIcon.enumeratorMemberForeground":"#0550ae","symbolIcon.eventForeground":"#57606a","symbolIcon.fieldForeground":"#953800","symbolIcon.fileForeground":"#7d4e00","symbolIcon.folderForeground":"#7d4e00","symbolIcon.functionForeground":"#6639ba","symbolIcon.interfaceForeground":"#953800","symbolIcon.keyForeground":"#0550ae","symbolIcon.keywordForeground":"#a40e26","symbolIcon.methodForeground":"#6639ba","symbolIcon.moduleForeground":"#a40e26","symbolIcon.namespaceForeground":"#a40e26","symbolIcon.nullForeground":"#0550ae","symbolIcon.numberForeground":"#116329","symbolIcon.objectForeground":"#953800","symbolIcon.operatorForeground":"#0a3069","symbolIcon.packageForeground":"#953800","symbolIcon.propertyForeground":"#953800","symbolIcon.referenceForeground":"#0550ae","symbolIcon.snippetForeground":"#0550ae","symbolIcon.stringForeground":"#0a3069","symbolIcon.structForeground":"#953800","symbolIcon.textForeground":"#0a3069","symbolIcon.typeParameterForeground":"#0a3069","symbolIcon.unitForeground":"#0550ae","symbolIcon.variableForeground":"#953800","symbolIcon.constantForeground":"#116329","terminal.foreground":"#1f2328","terminal.ansiBlack":"#24292f","terminal.ansiRed":"#cf222e","terminal.ansiGreen":"#116329","terminal.ansiYellow":"#4d2d00","terminal.ansiBlue":"#0969da","terminal.ansiMagenta":"#8250df","terminal.ansiCyan":"#1b7c83","terminal.ansiWhite":"#6e7781","terminal.ansiBrightBlack":"#57606a","terminal.ansiBrightRed":"#a40e26","terminal.ansiBrightGreen":"#1a7f37","terminal.ansiBrightYellow":"#633c01","terminal.ansiBrightBlue":"#218bff","terminal.ansiBrightMagenta":"#a475f9","terminal.ansiBrightCyan":"#3192aa","terminal.ansiBrightWhite":"#8c959f","editorBracketHighlight.foreground1":"#0969da","editorBracketHighlight.foreground2":"#1a7f37","editorBracketHighlight.foreground3":"#9a6700","editorBracketHighlight.foreground4":"#cf222e","editorBracketHighlight.foreground5":"#bf3989","editorBracketHighlight.foreground6":"#8250df","editorBracketHighlight.unexpectedBracket.foreground":"#656d76","gitDecoration.addedResourceForeground":"#1a7f37","gitDecoration.modifiedResourceForeground":"#9a6700","gitDecoration.deletedResourceForeground":"#cf222e","gitDecoration.untrackedResourceForeground":"#1a7f37","gitDecoration.ignoredResourceForeground":"#6e7781","gitDecoration.conflictingResourceForeground":"#bc4c00","gitDecoration.submoduleResourceForeground":"#656d76","debugToolBar.background":"#ffffff","editor.stackFrameHighlightBackground":"#d4a72c66","editor.focusedStackFrameHighlightBackground":"#4ac26b66","settings.headerForeground":"#1f2328","settings.modifiedItemIndicator":"#d4a72c66","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#f3f4f6"},"semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6e7781"}},{"scope":["constant.other.placeholder","constant.character"],"settings":{"foreground":"#cf222e"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language","entity"],"settings":{"foreground":"#0550ae"}},{"scope":["entity.name","meta.export.default","meta.definition.variable"],"settings":{"foreground":"#953800"}},{"scope":["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.object.member","meta.embedded.expression"],"settings":{"foreground":"#1f2328"}},{"scope":"entity.name.function","settings":{"foreground":"#8250df"}},{"scope":["entity.name.tag","support.class.component"],"settings":{"foreground":"#116329"}},{"scope":"keyword","settings":{"foreground":"#cf222e"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#cf222e"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#1f2328"}},{"scope":["string","string punctuation.section.embedded source"],"settings":{"foreground":"#0a3069"}},{"scope":"support","settings":{"foreground":"#0550ae"}},{"scope":"meta.property-name","settings":{"foreground":"#0550ae"}},{"scope":"variable","settings":{"foreground":"#953800"}},{"scope":"variable.other","settings":{"foreground":"#1f2328"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"carriage-return","settings":{"fontStyle":"italic underline","background":"#cf222e","foreground":"#f6f8fa","content":"^M"}},{"scope":"message.error","settings":{"foreground":"#82071e"}},{"scope":"string variable","settings":{"foreground":"#0550ae"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#0a3069"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#0a3069"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#116329"}},{"scope":"support.constant","settings":{"foreground":"#0550ae"}},{"scope":"support.variable","settings":{"foreground":"#0550ae"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#116329"}},{"scope":"meta.module-reference","settings":{"foreground":"#0550ae"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#953800"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#0550ae"}},{"scope":"markup.quote","settings":{"foreground":"#116329"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#1f2328"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#1f2328"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#0550ae"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffebe9","foreground":"#82071e"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#cf222e"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#dafbe1","foreground":"#116329"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffd8b5","foreground":"#953800"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"foreground":"#eaeef2","background":"#0550ae"}},{"scope":"meta.diff.range","settings":{"foreground":"#8250df","fontStyle":"bold"}},{"scope":"meta.diff.header","settings":{"foreground":"#0550ae"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#0550ae"}},{"scope":"meta.output","settings":{"foreground":"#0550ae"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#57606a"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#82071e"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#0a3069"}}]}'),hc=JSON.parse('{"name":"Material-Theme-Default","semanticHighlighting":true,"tokenColors":[{"name":"Global settings","settings":{"background":"#263238","foreground":"#EEFFFF"}},{"name":"String","scope":"string","settings":{"foreground":"#C3E88D"}},{"name":"Punctuation","scope":"punctuation, constant.other.symbol","settings":{"foreground":"#89DDFF"}},{"name":"String Escape","scope":"constant.character.escape, text.html constant.character.entity.named","settings":{"foreground":"#EEFFFF"}},{"name":"Boolean","scope":"constant.language.boolean","settings":{"foreground":"#ff9cac"}},{"name":"Number","scope":"constant.numeric","settings":{"foreground":"#F78C6C"}},{"name":"Variable","scope":"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments","settings":{"foreground":"#EEFFFF"}},{"name":"Other Keyword","scope":"keyword.other","settings":{"foreground":"#F78C6C"}},{"name":"Keyword","scope":"keyword, modifier, variable.language.this, support.type.object, constant.language","settings":{"foreground":"#89DDFF"}},{"name":"Function call","scope":"entity.name.function, support.function","settings":{"foreground":"#82AAFF"}},{"name":"Storage","scope":"storage.type, storage.modifier, storage.control","settings":{"foreground":"#C792EA"}},{"name":"Modules","scope":"support.module, support.node","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Type","scope":"support.type, constant.other.key","settings":{"foreground":"#FFCB6B"}},{"name":"Type","scope":"entity.name.type, entity.other.inherited-class, entity.other","settings":{"foreground":"#FFCB6B"}},{"name":"Comment","scope":"comment","settings":{"foreground":"#546E7A","fontStyle":"italic"}},{"name":"Comment","scope":"comment punctuation.definition.comment, string.quoted.docstring","settings":{"foreground":"#546E7A","fontStyle":"italic"}},{"name":"Punctuation","scope":"punctuation","settings":{"foreground":"#89DDFF"}},{"name":"Class","scope":"entity.name, entity.name.type.class, support.type, support.class, meta.use","settings":{"foreground":"#FFCB6B"}},{"name":"Class variable","scope":"variable.object.property, meta.field.declaration entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Class method","scope":"meta.definition.method entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Function definition","scope":"meta.function entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Template expression","scope":"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end","settings":{"foreground":"#89DDFF"}},{"name":"Reset embedded/template expression colors","scope":"meta.embedded, source.groovy.embedded, meta.template.expression","settings":{"foreground":"#EEFFFF"}},{"name":"YAML key","scope":"entity.name.tag.yaml","settings":{"foreground":"#f07178"}},{"name":"JSON key","scope":"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json","settings":{"foreground":"#f07178"}},{"name":"JSON constant","scope":"constant.language.json","settings":{"foreground":"#89DDFF"}},{"name":"CSS class","scope":"entity.other.attribute-name.class","settings":{"foreground":"#FFCB6B"}},{"name":"CSS ID","scope":"entity.other.attribute-name.id","settings":{"foreground":"#F78C6C"}},{"name":"CSS tag","scope":"source.css entity.name.tag","settings":{"foreground":"#FFCB6B"}},{"name":"CSS properties","scope":"support.type.property-name.css","settings":{"foreground":"#B2CCD6"}},{"name":"HTML tag outer","scope":"meta.tag, punctuation.definition.tag","settings":{"foreground":"#89DDFF"}},{"name":"HTML tag inner","scope":"entity.name.tag","settings":{"foreground":"#f07178"}},{"name":"HTML tag attribute","scope":"entity.other.attribute-name","settings":{"foreground":"#C792EA"}},{"name":"HTML entities","scope":"punctuation.definition.entity.html","settings":{"foreground":"#EEFFFF"}},{"name":"Markdown heading","scope":"markup.heading","settings":{"foreground":"#89DDFF"}},{"name":"Markdown link text","scope":"text.html.markdown meta.link.inline, meta.link.reference","settings":{"foreground":"#f07178"}},{"name":"Markdown list item","scope":"text.html.markdown beginning.punctuation.definition.list","settings":{"foreground":"#89DDFF"}},{"name":"Markdown italic","scope":"markup.italic","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Markdown bold","scope":"markup.bold","settings":{"foreground":"#f07178","fontStyle":"bold"}},{"name":"Markdown bold italic","scope":"markup.bold markup.italic, markup.italic markup.bold","settings":{"foreground":"#f07178","fontStyle":"italic bold"}},{"name":"Markdown code block","scope":"markup.fenced_code.block.markdown punctuation.definition.markdown","settings":{"foreground":"#C3E88D"}},{"name":"Markdown inline code","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#C3E88D"}},{"name":"INI property name","scope":"keyword.other.definition.ini","settings":{"foreground":"#f07178"}},{"name":"INI section title","scope":"entity.name.section.group-title.ini","settings":{"foreground":"#89DDFF"}},{"name":"C# class","scope":"source.cs meta.class.identifier storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# class method","scope":"source.cs meta.method.identifier entity.name.function","settings":{"foreground":"#f07178"}},{"name":"C# function call","scope":"source.cs meta.method-call meta.method, source.cs entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"C# type","scope":"source.cs storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# return type","scope":"source.cs meta.method.return-type","settings":{"foreground":"#FFCB6B"}},{"name":"C# preprocessor","scope":"source.cs meta.preprocessor","settings":{"foreground":"#546E7A"}},{"name":"C# namespace","scope":"source.cs entity.name.type.namespace","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Text","scope":"meta.jsx.children, SXNested","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Components name","scope":"support.class.component","settings":{"foreground":"#FFCB6B"}},{"name":"C-related Block Level Variables","scope":"source.cpp meta.block variable.other","settings":{"foreground":"#EEFFFF"}},{"name":"Member Access Meta","scope":"source.python meta.member.access.python","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"source.python meta.function-call.python, meta.function-call.arguments","settings":{"foreground":"#82AAFF"}},{"name":"Blocks","scope":"meta.block","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"entity.name.function.call","settings":{"foreground":"#82AAFF"}},{"name":"Namespaces","scope":"source.php support.other.namespace, source.php meta.use support.class","settings":{"foreground":"#EEFFFF"}},{"name":"Constant keywords","scope":"constant.keyword","settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Entity name","scope":"entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Global settings","settings":{"background":"#263238","foreground":"#EEFFFF"}},{"name":"Markup Deleted","scope":["markup.deleted"],"settings":{"foreground":"#f07178"}},{"name":"Markup Inserted","scope":["markup.inserted"],"settings":{"foreground":"#C3E88D"}},{"name":"Markup Underline","scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"name":"Keyword Control","scope":["keyword.control"],"settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Parameter","scope":["variable.parameter"],"settings":{"fontStyle":"italic"}},{"name":"Python - Self Parameter","scope":["variable.parameter.function.language.special.self.python"],"settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Python - Format Placeholder","scope":["constant.character.format.placeholder.other.python"],"settings":{"foreground":"#F78C6C"}},{"name":"Markdown - Blockquote","scope":["markup.quote"],"settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"name":"Markdown - Fenced Language","scope":["markup.fenced_code.block"],"settings":{"foreground":"#EEFFFF90"}},{"name":"Markdown - Blockquote Punctuation","scope":["punctuation.definition.quote"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 0","scope":["meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 1","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFCB6B"}},{"name":"JSON Key - Level 2","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#F78C6C"}},{"name":"JSON Key - Level 3","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#f07178"}},{"name":"JSON Key - Level 4","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#916b53"}},{"name":"JSON Key - Level 5","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#82AAFF"}},{"name":"JSON Key - Level 6","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 7","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 8","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C3E88D"}}],"colors":{"focusBorder":"#FFFFFF00","foreground":"#EEFFFF","button.background":"#80CBC420","button.foreground":"#ffffff","dropdown.background":"#263238","input.background":"#303C41","inputOption.activeBorder":"#EEFFFF30","list.activeSelectionBackground":"#263238","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#f0717880","list.focusBackground":"#EEFFFF20","list.focusForeground":"#EEFFFF","list.highlightForeground":"#80CBC4","list.hoverBackground":"#263238","list.inactiveSelectionBackground":"#00000030","activityBar.background":"#263238","activityBar.dropBackground":"#f0717880","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#00000030","badge.foreground":"#546E7A","sideBar.background":"#263238","sideBarSectionHeader.background":"#263238","editorGroup.dropBackground":"#f0717880","editorGroup.focusedEmptyBorder":"#f07178","editorGroupHeader.tabsBackground":"#263238","tab.border":"#263238","tab.activeBorder":"#80CBC4","tab.inactiveBackground":"#263238","tab.activeModifiedBorder":"#607a86","tab.inactiveModifiedBorder":"#904348","tab.unfocusedActiveModifiedBorder":"#c05a60","tab.unfocusedInactiveModifiedBorder":"#904348","editor.background":"#263238","editor.foreground":"#EEFFFF","editorLineNumber.foreground":"#37474F","editorLineNumber.activeForeground":"#607a86","editorCursor.foreground":"#FFCC00","editor.selectionBackground":"#80CBC420","editor.selectionHighlightBackground":"#FFCC0020","editor.wordHighlightBackground":"#ff9cac30","editor.wordHighlightStrongBackground":"#C3E88D30","editor.findMatchHighlight":"#EEFFFF","editor.findRangeHighlightBackground":"#FFCB6B30","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#FFFFFF0d","editorWhitespace.foreground":"#EEFFFF40","editorWidget.background":"#263238","editorHoverWidget.background":"#263238","editorMarkerNavigation.background":"#EEFFFF05","peekView.border":"#00000030","peekViewEditor.background":"#EEFFFF05","peekViewResult.background":"#EEFFFF05","peekViewTitle.background":"#EEFFFF05","panel.background":"#263238","panel.border":"#26323860","panelTitle.activeBorder":"#80CBC4","panelTitle.inactiveForeground":"#EEFFFF","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","statusBar.background":"#263238","statusBar.debuggingBackground":"#C792EA","statusBar.debuggingForeground":"#ffffff","statusBar.noFolderBackground":"#263238","statusBarItem.activeBackground":"#f0717880","statusBarItem.hoverBackground":"#546E7A20","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","titleBar.activeBackground":"#263238","pickerGroup.border":"#FFFFFF1a","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#82AAFF","terminal.ansiBrightBlack":"#546E7A","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#89DDFF","terminal.ansiBrightGreen":"#C3E88D","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#f07178","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#FFCB6B","terminal.ansiCyan":"#89DDFF","terminal.ansiGreen":"#C3E88D","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#f07178","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#FFCB6B","debugToolBar.background":"#263238","debugConsole.errorForeground":"#f07178","debugConsole.infoForeground":"#89DDFF","debugConsole.warningForeground":"#FFCB6B","selection.background":"#00000080","editorRuler.foreground":"#37474F","widget.shadow":"#00000030","scrollbar.shadow":"#00000030","editorLink.activeForeground":"#EEFFFF","progressBar.background":"#80CBC4","pickerGroup.foreground":"#80CBC4","tree.indentGuidesStroke":"#37474F","terminalCursor.foreground":"#FFCB6B","terminalCursor.background":"#000000","inputOption.activeBackground":"#EEFFFF30","textLink.foreground":"#80CBC4","textLink.activeForeground":"#EEFFFF","sideBar.foreground":"#607a86","sideBar.border":"#26323860","sideBarTitle.foreground":"#EEFFFF","sideBarSectionHeader.border":"#26323860","panel.dropBackground":"#EEFFFF","panelTitle.activeForeground":"#FFFFFF","editor.lineHighlightBackground":"#00000050","editor.findMatchBackground":"#000000","editor.findMatchHighlightBackground":"#00000050","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlightBorder":"#ffffff30","editorIndentGuide.background":"#37474F70","editorIndentGuide.activeBackground":"#37474F","editorGroup.border":"#00000030","editorGutter.modifiedBackground":"#82AAFF60","editorGutter.addedBackground":"#C3E88D60","editorGutter.deletedBackground":"#f0717860","activityBar.border":"#26323860","activityBar.foreground":"#EEFFFF","activityBar.activeBorder":"#80CBC4","extensionBadge.remoteForeground":"#EEFFFF","scrollbarSlider.background":"#EEFFFF20","scrollbarSlider.hoverBackground":"#EEFFFF10","scrollbarSlider.activeBackground":"#80CBC4","tab.unfocusedActiveBorder":"#546E7A","tab.activeForeground":"#FFFFFF","tab.inactiveForeground":"#607a86","tab.activeBackground":"#263238","tab.unfocusedActiveForeground":"#EEFFFF","editorWidget.resizeBorder":"#80CBC4","editorWidget.border":"#80CBC4","statusBar.border":"#26323860","statusBar.foreground":"#546E7A","editorBracketMatch.border":"#FFCC0050","editorBracketMatch.background":"#263238","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.border":"#263238","editorOverviewRuler.errorForeground":"#f0717840","editorOverviewRuler.infoForeground":"#82AAFF40","editorOverviewRuler.warningForeground":"#FFCB6B40","editorInfo.foreground":"#82AAFF70","editorWarning.foreground":"#FFCB6B70","editorError.foreground":"#f0717870","editorHoverWidget.border":"#FFFFFF10","titleBar.activeForeground":"#EEFFFF","titleBar.inactiveBackground":"#263238","titleBar.inactiveForeground":"#607a86","titleBar.border":"#26323860","input.foreground":"#EEFFFF","input.placeholderForeground":"#EEFFFF60","input.border":"#FFFFFF10","inputValidation.errorBorder":"#f07178","inputValidation.infoBorder":"#82AAFF","inputValidation.warningBorder":"#FFCB6B","dropdown.border":"#FFFFFF10","quickInput.background":"#263238","quickInput.foreground":"#607a86","list.hoverForeground":"#FFFFFF","list.inactiveSelectionForeground":"#80CBC4","quickInput.list.focusBackground":"#EEFFFF20","editorSuggestWidget.background":"#263238","editorSuggestWidget.foreground":"#EEFFFF","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#00000050","editorSuggestWidget.border":"#FFFFFF10","diffEditor.insertedTextBackground":"#89DDFF20","diffEditor.removedTextBackground":"#ff9cac20","notifications.background":"#263238","notifications.foreground":"#EEFFFF","notificationLink.foreground":"#80CBC4","extensionButton.prominentBackground":"#C3E88D90","extensionButton.prominentHoverBackground":"#C3E88D","extensionButton.prominentForeground":"#000000","peekViewEditorGutter.background":"#EEFFFF05","peekViewTitleDescription.foreground":"#EEFFFF60","peekViewResult.matchHighlightBackground":"#80CBC420","peekViewEditor.matchHighlightBackground":"#80CBC420","peekViewResult.selectionBackground":"#607a8670","gitDecoration.deletedResourceForeground":"#f0717890","gitDecoration.conflictingResourceForeground":"#FFCB6B90","gitDecoration.modifiedResourceForeground":"#82AAFF90","gitDecoration.untrackedResourceForeground":"#C3E88D90","gitDecoration.ignoredResourceForeground":"#607a8690","breadcrumb.background":"#263238","breadcrumb.foreground":"#607a86","breadcrumb.focusForeground":"#EEFFFF","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumbPicker.background":"#263238","menu.background":"#263238","menu.foreground":"#EEFFFF","menu.selectionBackground":"#00000050","menu.selectionForeground":"#80CBC4","menu.selectionBorder":"#00000030","menu.separatorBackground":"#EEFFFF","menubar.selectionBackground":"#00000030","menubar.selectionForeground":"#80CBC4","menubar.selectionBorder":"#00000030","settings.dropdownForeground":"#EEFFFF","settings.dropdownBackground":"#263238","settings.numberInputForeground":"#EEFFFF","settings.numberInputBackground":"#263238","settings.textInputForeground":"#EEFFFF","settings.textInputBackground":"#263238","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.checkboxBackground":"#263238","settings.checkboxForeground":"#EEFFFF","listFilterWidget.background":"#00000030","listFilterWidget.outline":"#00000030","listFilterWidget.noMatchesOutline":"#00000030"}}'),fc=JSON.parse('{"name":"Material-Theme-Darker","semanticHighlighting":true,"tokenColors":[{"name":"Global settings","settings":{"background":"#212121","foreground":"#EEFFFF"}},{"name":"String","scope":"string","settings":{"foreground":"#C3E88D"}},{"name":"Punctuation","scope":"punctuation, constant.other.symbol","settings":{"foreground":"#89DDFF"}},{"name":"String Escape","scope":"constant.character.escape, text.html constant.character.entity.named","settings":{"foreground":"#EEFFFF"}},{"name":"Boolean","scope":"constant.language.boolean","settings":{"foreground":"#ff9cac"}},{"name":"Number","scope":"constant.numeric","settings":{"foreground":"#F78C6C"}},{"name":"Variable","scope":"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments","settings":{"foreground":"#EEFFFF"}},{"name":"Other Keyword","scope":"keyword.other","settings":{"foreground":"#F78C6C"}},{"name":"Keyword","scope":"keyword, modifier, variable.language.this, support.type.object, constant.language","settings":{"foreground":"#89DDFF"}},{"name":"Function call","scope":"entity.name.function, support.function","settings":{"foreground":"#82AAFF"}},{"name":"Storage","scope":"storage.type, storage.modifier, storage.control","settings":{"foreground":"#C792EA"}},{"name":"Modules","scope":"support.module, support.node","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Type","scope":"support.type, constant.other.key","settings":{"foreground":"#FFCB6B"}},{"name":"Type","scope":"entity.name.type, entity.other.inherited-class, entity.other","settings":{"foreground":"#FFCB6B"}},{"name":"Comment","scope":"comment","settings":{"foreground":"#545454","fontStyle":"italic"}},{"name":"Comment","scope":"comment punctuation.definition.comment, string.quoted.docstring","settings":{"foreground":"#545454","fontStyle":"italic"}},{"name":"Punctuation","scope":"punctuation","settings":{"foreground":"#89DDFF"}},{"name":"Class","scope":"entity.name, entity.name.type.class, support.type, support.class, meta.use","settings":{"foreground":"#FFCB6B"}},{"name":"Class variable","scope":"variable.object.property, meta.field.declaration entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Class method","scope":"meta.definition.method entity.name.function","settings":{"foreground":"#f07178"}},{"name":"Function definition","scope":"meta.function entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Template expression","scope":"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end","settings":{"foreground":"#89DDFF"}},{"name":"Reset embedded/template expression colors","scope":"meta.embedded, source.groovy.embedded, meta.template.expression","settings":{"foreground":"#EEFFFF"}},{"name":"YAML key","scope":"entity.name.tag.yaml","settings":{"foreground":"#f07178"}},{"name":"JSON key","scope":"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json","settings":{"foreground":"#f07178"}},{"name":"JSON constant","scope":"constant.language.json","settings":{"foreground":"#89DDFF"}},{"name":"CSS class","scope":"entity.other.attribute-name.class","settings":{"foreground":"#FFCB6B"}},{"name":"CSS ID","scope":"entity.other.attribute-name.id","settings":{"foreground":"#F78C6C"}},{"name":"CSS tag","scope":"source.css entity.name.tag","settings":{"foreground":"#FFCB6B"}},{"name":"CSS properties","scope":"support.type.property-name.css","settings":{"foreground":"#B2CCD6"}},{"name":"HTML tag outer","scope":"meta.tag, punctuation.definition.tag","settings":{"foreground":"#89DDFF"}},{"name":"HTML tag inner","scope":"entity.name.tag","settings":{"foreground":"#f07178"}},{"name":"HTML tag attribute","scope":"entity.other.attribute-name","settings":{"foreground":"#C792EA"}},{"name":"HTML entities","scope":"punctuation.definition.entity.html","settings":{"foreground":"#EEFFFF"}},{"name":"Markdown heading","scope":"markup.heading","settings":{"foreground":"#89DDFF"}},{"name":"Markdown link text","scope":"text.html.markdown meta.link.inline, meta.link.reference","settings":{"foreground":"#f07178"}},{"name":"Markdown list item","scope":"text.html.markdown beginning.punctuation.definition.list","settings":{"foreground":"#89DDFF"}},{"name":"Markdown italic","scope":"markup.italic","settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Markdown bold","scope":"markup.bold","settings":{"foreground":"#f07178","fontStyle":"bold"}},{"name":"Markdown bold italic","scope":"markup.bold markup.italic, markup.italic markup.bold","settings":{"foreground":"#f07178","fontStyle":"italic bold"}},{"name":"Markdown code block","scope":"markup.fenced_code.block.markdown punctuation.definition.markdown","settings":{"foreground":"#C3E88D"}},{"name":"Markdown inline code","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#C3E88D"}},{"name":"INI property name","scope":"keyword.other.definition.ini","settings":{"foreground":"#f07178"}},{"name":"INI section title","scope":"entity.name.section.group-title.ini","settings":{"foreground":"#89DDFF"}},{"name":"C# class","scope":"source.cs meta.class.identifier storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# class method","scope":"source.cs meta.method.identifier entity.name.function","settings":{"foreground":"#f07178"}},{"name":"C# function call","scope":"source.cs meta.method-call meta.method, source.cs entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"C# type","scope":"source.cs storage.type","settings":{"foreground":"#FFCB6B"}},{"name":"C# return type","scope":"source.cs meta.method.return-type","settings":{"foreground":"#FFCB6B"}},{"name":"C# preprocessor","scope":"source.cs meta.preprocessor","settings":{"foreground":"#545454"}},{"name":"C# namespace","scope":"source.cs entity.name.type.namespace","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Text","scope":"meta.jsx.children, SXNested","settings":{"foreground":"#EEFFFF"}},{"name":"JSX Components name","scope":"support.class.component","settings":{"foreground":"#FFCB6B"}},{"name":"C-related Block Level Variables","scope":"source.cpp meta.block variable.other","settings":{"foreground":"#EEFFFF"}},{"name":"Member Access Meta","scope":"source.python meta.member.access.python","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"source.python meta.function-call.python, meta.function-call.arguments","settings":{"foreground":"#82AAFF"}},{"name":"Blocks","scope":"meta.block","settings":{"foreground":"#f07178"}},{"name":"Function Call","scope":"entity.name.function.call","settings":{"foreground":"#82AAFF"}},{"name":"Namespaces","scope":"source.php support.other.namespace, source.php meta.use support.class","settings":{"foreground":"#EEFFFF"}},{"name":"Constant keywords","scope":"constant.keyword","settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Entity name","scope":"entity.name.function","settings":{"foreground":"#82AAFF"}},{"name":"Global settings","settings":{"background":"#212121","foreground":"#EEFFFF"}},{"name":"Markup Deleted","scope":["markup.deleted"],"settings":{"foreground":"#f07178"}},{"name":"Markup Inserted","scope":["markup.inserted"],"settings":{"foreground":"#C3E88D"}},{"name":"Markup Underline","scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"name":"Keyword Control","scope":["keyword.control"],"settings":{"foreground":"#89DDFF","fontStyle":"italic"}},{"name":"Parameter","scope":["variable.parameter"],"settings":{"fontStyle":"italic"}},{"name":"Python - Self Parameter","scope":["variable.parameter.function.language.special.self.python"],"settings":{"foreground":"#f07178","fontStyle":"italic"}},{"name":"Python - Format Placeholder","scope":["constant.character.format.placeholder.other.python"],"settings":{"foreground":"#F78C6C"}},{"name":"Markdown - Blockquote","scope":["markup.quote"],"settings":{"fontStyle":"italic","foreground":"#89DDFF"}},{"name":"Markdown - Fenced Language","scope":["markup.fenced_code.block"],"settings":{"foreground":"#EEFFFF90"}},{"name":"Markdown - Blockquote Punctuation","scope":["punctuation.definition.quote"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 0","scope":["meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 1","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#FFCB6B"}},{"name":"JSON Key - Level 2","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#F78C6C"}},{"name":"JSON Key - Level 3","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#f07178"}},{"name":"JSON Key - Level 4","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#916b53"}},{"name":"JSON Key - Level 5","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#82AAFF"}},{"name":"JSON Key - Level 6","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#ff9cac"}},{"name":"JSON Key - Level 7","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C792EA"}},{"name":"JSON Key - Level 8","scope":["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],"settings":{"foreground":"#C3E88D"}}],"colors":{"focusBorder":"#FFFFFF00","foreground":"#EEFFFF","button.background":"#61616150","button.foreground":"#ffffff","dropdown.background":"#212121","input.background":"#2B2B2B","inputOption.activeBorder":"#EEFFFF30","list.activeSelectionBackground":"#212121","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#f0717880","list.focusBackground":"#EEFFFF20","list.focusForeground":"#EEFFFF","list.highlightForeground":"#80CBC4","list.hoverBackground":"#212121","list.inactiveSelectionBackground":"#00000030","activityBar.background":"#212121","activityBar.dropBackground":"#f0717880","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#00000030","badge.foreground":"#545454","sideBar.background":"#212121","sideBarSectionHeader.background":"#212121","editorGroup.dropBackground":"#f0717880","editorGroup.focusedEmptyBorder":"#f07178","editorGroupHeader.tabsBackground":"#212121","tab.border":"#212121","tab.activeBorder":"#80CBC4","tab.inactiveBackground":"#212121","tab.activeModifiedBorder":"#616161","tab.inactiveModifiedBorder":"#904348","tab.unfocusedActiveModifiedBorder":"#c05a60","tab.unfocusedInactiveModifiedBorder":"#904348","editor.background":"#212121","editor.foreground":"#EEFFFF","editorLineNumber.foreground":"#424242","editorLineNumber.activeForeground":"#616161","editorCursor.foreground":"#FFCC00","editor.selectionBackground":"#61616150","editor.selectionHighlightBackground":"#FFCC0020","editor.wordHighlightBackground":"#ff9cac30","editor.wordHighlightStrongBackground":"#C3E88D30","editor.findMatchHighlight":"#EEFFFF","editor.findRangeHighlightBackground":"#FFCB6B30","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#FFFFFF0d","editorWhitespace.foreground":"#EEFFFF40","editorWidget.background":"#212121","editorHoverWidget.background":"#212121","editorMarkerNavigation.background":"#EEFFFF05","peekView.border":"#00000030","peekViewEditor.background":"#EEFFFF05","peekViewResult.background":"#EEFFFF05","peekViewTitle.background":"#EEFFFF05","panel.background":"#212121","panel.border":"#21212160","panelTitle.activeBorder":"#80CBC4","panelTitle.inactiveForeground":"#EEFFFF","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","statusBar.background":"#212121","statusBar.debuggingBackground":"#C792EA","statusBar.debuggingForeground":"#ffffff","statusBar.noFolderBackground":"#212121","statusBarItem.activeBackground":"#f0717880","statusBarItem.hoverBackground":"#54545420","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","titleBar.activeBackground":"#212121","pickerGroup.border":"#FFFFFF1a","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#82AAFF","terminal.ansiBrightBlack":"#545454","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#89DDFF","terminal.ansiBrightGreen":"#C3E88D","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#f07178","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#FFCB6B","terminal.ansiCyan":"#89DDFF","terminal.ansiGreen":"#C3E88D","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#f07178","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#FFCB6B","debugToolBar.background":"#212121","debugConsole.errorForeground":"#f07178","debugConsole.infoForeground":"#89DDFF","debugConsole.warningForeground":"#FFCB6B","selection.background":"#00000080","editorRuler.foreground":"#424242","widget.shadow":"#00000030","scrollbar.shadow":"#00000030","editorLink.activeForeground":"#EEFFFF","progressBar.background":"#80CBC4","pickerGroup.foreground":"#80CBC4","tree.indentGuidesStroke":"#424242","terminalCursor.foreground":"#FFCB6B","terminalCursor.background":"#000000","inputOption.activeBackground":"#EEFFFF30","textLink.foreground":"#80CBC4","textLink.activeForeground":"#EEFFFF","sideBar.foreground":"#616161","sideBar.border":"#21212160","sideBarTitle.foreground":"#EEFFFF","sideBarSectionHeader.border":"#21212160","panel.dropBackground":"#EEFFFF","panelTitle.activeForeground":"#FFFFFF","editor.lineHighlightBackground":"#00000050","editor.findMatchBackground":"#000000","editor.findMatchHighlightBackground":"#00000050","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlightBorder":"#ffffff30","editorIndentGuide.background":"#42424270","editorIndentGuide.activeBackground":"#424242","editorGroup.border":"#00000030","editorGutter.modifiedBackground":"#82AAFF60","editorGutter.addedBackground":"#C3E88D60","editorGutter.deletedBackground":"#f0717860","activityBar.border":"#21212160","activityBar.foreground":"#EEFFFF","activityBar.activeBorder":"#80CBC4","extensionBadge.remoteForeground":"#EEFFFF","scrollbarSlider.background":"#EEFFFF20","scrollbarSlider.hoverBackground":"#EEFFFF10","scrollbarSlider.activeBackground":"#80CBC4","tab.unfocusedActiveBorder":"#545454","tab.activeForeground":"#FFFFFF","tab.inactiveForeground":"#616161","tab.activeBackground":"#212121","tab.unfocusedActiveForeground":"#EEFFFF","editorWidget.resizeBorder":"#80CBC4","editorWidget.border":"#80CBC4","statusBar.border":"#21212160","statusBar.foreground":"#616161","editorBracketMatch.border":"#FFCC0050","editorBracketMatch.background":"#212121","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.border":"#212121","editorOverviewRuler.errorForeground":"#f0717840","editorOverviewRuler.infoForeground":"#82AAFF40","editorOverviewRuler.warningForeground":"#FFCB6B40","editorInfo.foreground":"#82AAFF70","editorWarning.foreground":"#FFCB6B70","editorError.foreground":"#f0717870","editorHoverWidget.border":"#FFFFFF10","titleBar.activeForeground":"#EEFFFF","titleBar.inactiveBackground":"#212121","titleBar.inactiveForeground":"#616161","titleBar.border":"#21212160","input.foreground":"#EEFFFF","input.placeholderForeground":"#EEFFFF60","input.border":"#FFFFFF10","inputValidation.errorBorder":"#f07178","inputValidation.infoBorder":"#82AAFF","inputValidation.warningBorder":"#FFCB6B","dropdown.border":"#FFFFFF10","quickInput.background":"#212121","quickInput.foreground":"#616161","list.hoverForeground":"#FFFFFF","list.inactiveSelectionForeground":"#80CBC4","quickInput.list.focusBackground":"#EEFFFF20","editorSuggestWidget.background":"#212121","editorSuggestWidget.foreground":"#EEFFFF","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#00000050","editorSuggestWidget.border":"#FFFFFF10","diffEditor.insertedTextBackground":"#89DDFF20","diffEditor.removedTextBackground":"#ff9cac20","notifications.background":"#212121","notifications.foreground":"#EEFFFF","notificationLink.foreground":"#80CBC4","extensionButton.prominentBackground":"#C3E88D90","extensionButton.prominentHoverBackground":"#C3E88D","extensionButton.prominentForeground":"#000000","peekViewEditorGutter.background":"#EEFFFF05","peekViewTitleDescription.foreground":"#EEFFFF60","peekViewResult.matchHighlightBackground":"#61616150","peekViewEditor.matchHighlightBackground":"#61616150","peekViewResult.selectionBackground":"#61616170","gitDecoration.deletedResourceForeground":"#f0717890","gitDecoration.conflictingResourceForeground":"#FFCB6B90","gitDecoration.modifiedResourceForeground":"#82AAFF90","gitDecoration.untrackedResourceForeground":"#C3E88D90","gitDecoration.ignoredResourceForeground":"#61616190","breadcrumb.background":"#212121","breadcrumb.foreground":"#616161","breadcrumb.focusForeground":"#EEFFFF","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumbPicker.background":"#212121","menu.background":"#212121","menu.foreground":"#EEFFFF","menu.selectionBackground":"#00000050","menu.selectionForeground":"#80CBC4","menu.selectionBorder":"#00000030","menu.separatorBackground":"#EEFFFF","menubar.selectionBackground":"#00000030","menubar.selectionForeground":"#80CBC4","menubar.selectionBorder":"#00000030","settings.dropdownForeground":"#EEFFFF","settings.dropdownBackground":"#212121","settings.numberInputForeground":"#EEFFFF","settings.numberInputBackground":"#212121","settings.textInputForeground":"#EEFFFF","settings.textInputBackground":"#212121","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.checkboxBackground":"#212121","settings.checkboxForeground":"#EEFFFF","listFilterWidget.background":"#00000030","listFilterWidget.outline":"#00000030","listFilterWidget.noMatchesOutline":"#00000030"}}'),Ec=JSON.parse('{"name":"One Dark Pro","type":"dark","semanticHighlighting":true,"semanticTokenColors":{"enumMember":{"foreground":"#56b6c2"},"variable.constant":{"foreground":"#d19a66"},"variable.defaultLibrary":{"foreground":"#e5c07b"},"variable:dart":{"foreground":"#d19a66"},"property:dart":{"foreground":"#d19a66"},"annotation:dart":{"foreground":"#d19a66"},"parameter.label:dart":{"foreground":"#abb2bf"},"macro":{"foreground":"#d19a66"},"tomlArrayKey":{"foreground":"#e5c07b"}},"tokenColors":[{"scope":"meta.embedded","settings":{"foreground":"#abb2bf"}},{"name":"unison punctuation","scope":"punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison","settings":{"foreground":"#e06c75"}},{"name":"haskell variable generic-type","scope":"variable.other.generic-type.haskell","settings":{"foreground":"#c678dd"}},{"name":"haskell storage type","scope":"storage.type.haskell","settings":{"foreground":"#d19a66"}},{"name":"support.variable.magic.python","scope":"support.variable.magic.python","settings":{"foreground":"#e06c75"}},{"name":"punctuation.separator.parameters.python","scope":"punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python","settings":{"foreground":"#abb2bf"}},{"name":"variable.parameter.function.language.special.self.python","scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"#e5c07b"}},{"name":"variable.parameter.function.language.special.cls.python","scope":"variable.parameter.function.language.special.cls.python","settings":{"foreground":"#e5c07b"}},{"name":"storage.modifier.lifetime.rust","scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#abb2bf"}},{"name":"support.function.std.rust","scope":"support.function.std.rust","settings":{"foreground":"#61afef"}},{"name":"entity.name.lifetime.rust","scope":"entity.name.lifetime.rust","settings":{"foreground":"#e5c07b"}},{"name":"variable.language.rust","scope":"variable.language.rust","settings":{"foreground":"#e06c75"}},{"name":"support.constant.edge","scope":"support.constant.edge","settings":{"foreground":"#c678dd"}},{"name":"regexp constant character-class","scope":"constant.other.character-class.regexp","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":["keyword.operator.word"],"settings":{"foreground":"#c678dd"}},{"name":"regexp operator.quantifier","scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d19a66"}},{"name":"Text","scope":"variable.parameter.function","settings":{"foreground":"#abb2bf"}},{"name":"Comment Markup Link","scope":"comment markup.link","settings":{"foreground":"#5c6370"}},{"name":"markup diff","scope":"markup.changed.diff","settings":{"foreground":"#e5c07b"}},{"name":"diff","scope":"meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff","settings":{"foreground":"#61afef"}},{"name":"inserted.diff","scope":"markup.inserted.diff","settings":{"foreground":"#98c379"}},{"name":"deleted.diff","scope":"markup.deleted.diff","settings":{"foreground":"#e06c75"}},{"name":"c++ function","scope":"meta.function.c,meta.function.cpp","settings":{"foreground":"#e06c75"}},{"name":"c++ block","scope":"punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c","settings":{"foreground":"#abb2bf"}},{"name":"js/ts punctuation separator key-value","scope":"punctuation.separator.key-value","settings":{"foreground":"#abb2bf"}},{"name":"js/ts import keyword","scope":"keyword.operator.expression.import","settings":{"foreground":"#61afef"}},{"name":"math js/ts","scope":"support.constant.math","settings":{"foreground":"#e5c07b"}},{"name":"math property js/ts","scope":"support.constant.property.math","settings":{"foreground":"#d19a66"}},{"name":"js/ts variable.other.constant","scope":"variable.other.constant","settings":{"foreground":"#e5c07b"}},{"name":"java type","scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"#e5c07b"}},{"name":"java source","scope":"source.java","settings":{"foreground":"#e06c75"}},{"name":"java modifier.import","scope":"punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java","settings":{"foreground":"#abb2bf"}},{"name":"java modifier.import","scope":"meta.method.java","settings":{"foreground":"#61afef"}},{"name":"java modifier.import","scope":"storage.modifier.import.java,storage.type.java,storage.type.generic.java","settings":{"foreground":"#e5c07b"}},{"name":"java instanceof","scope":"keyword.operator.instanceof.java","settings":{"foreground":"#c678dd"}},{"name":"java variable.name","scope":"meta.definition.variable.name.java","settings":{"foreground":"#e06c75"}},{"name":"operator logical","scope":"keyword.operator.logical","settings":{"foreground":"#56b6c2"}},{"name":"operator bitwise","scope":"keyword.operator.bitwise","settings":{"foreground":"#56b6c2"}},{"name":"operator channel","scope":"keyword.operator.channel","settings":{"foreground":"#56b6c2"}},{"name":"support.constant.property-value.scss","scope":"support.constant.property-value.scss,support.constant.property-value.css","settings":{"foreground":"#d19a66"}},{"name":"CSS/SCSS/LESS Operators","scope":"keyword.operator.css,keyword.operator.scss,keyword.operator.less","settings":{"foreground":"#56b6c2"}},{"name":"css color standard name","scope":"support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss","settings":{"foreground":"#d19a66"}},{"name":"css comma","scope":"punctuation.separator.list.comma.css","settings":{"foreground":"#abb2bf"}},{"name":"css attribute-name.id","scope":"support.constant.color.w3c-standard-color-name.css","settings":{"foreground":"#d19a66"}},{"name":"css property-name","scope":"support.type.vendored.property-name.css","settings":{"foreground":"#56b6c2"}},{"name":"js/ts module","scope":"support.module.node,support.type.object.module,support.module.node","settings":{"foreground":"#e5c07b"}},{"name":"entity.name.type.module","scope":"entity.name.type.module","settings":{"foreground":"#e5c07b"}},{"name":"js variable readwrite","scope":"variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node","settings":{"foreground":"#e06c75"}},{"name":"js/ts json","scope":"support.constant.json","settings":{"foreground":"#d19a66"}},{"name":"js/ts Keyword","scope":["keyword.operator.expression.instanceof","keyword.operator.new","keyword.operator.ternary","keyword.operator.optional","keyword.operator.expression.keyof"],"settings":{"foreground":"#c678dd"}},{"name":"js/ts console","scope":"support.type.object.console","settings":{"foreground":"#e06c75"}},{"name":"js/ts support.variable.property.process","scope":"support.variable.property.process","settings":{"foreground":"#d19a66"}},{"name":"js console function","scope":"entity.name.function,support.function.console","settings":{"foreground":"#61afef"}},{"name":"keyword.operator.misc.rust","scope":"keyword.operator.misc.rust","settings":{"foreground":"#abb2bf"}},{"name":"keyword.operator.sigil.rust","scope":"keyword.operator.sigil.rust","settings":{"foreground":"#c678dd"}},{"name":"operator","scope":"keyword.operator.delete","settings":{"foreground":"#c678dd"}},{"name":"js dom","scope":"support.type.object.dom","settings":{"foreground":"#56b6c2"}},{"name":"js dom variable","scope":"support.variable.dom,support.variable.property.dom","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":"keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational","settings":{"foreground":"#56b6c2"}},{"name":"C operator assignment","scope":"keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp","settings":{"foreground":"#c678dd"}},{"name":"Punctuation","scope":"punctuation.separator.delimiter","settings":{"foreground":"#abb2bf"}},{"name":"Other punctuation .c","scope":"punctuation.separator.c,punctuation.separator.cpp","settings":{"foreground":"#c678dd"}},{"name":"C type posix-reserved","scope":"support.type.posix-reserved.c,support.type.posix-reserved.cpp","settings":{"foreground":"#56b6c2"}},{"name":"keyword.operator.sizeof.c","scope":"keyword.operator.sizeof.c,keyword.operator.sizeof.cpp","settings":{"foreground":"#c678dd"}},{"name":"python parameter","scope":"variable.parameter.function.language.python","settings":{"foreground":"#d19a66"}},{"name":"python type","scope":"support.type.python","settings":{"foreground":"#56b6c2"}},{"name":"python logical","scope":"keyword.operator.logical.python","settings":{"foreground":"#c678dd"}},{"name":"pyCs","scope":"variable.parameter.function.python","settings":{"foreground":"#d19a66"}},{"name":"python block","scope":"punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python","settings":{"foreground":"#abb2bf"}},{"name":"python function-call.generic","scope":"meta.function-call.generic.python","settings":{"foreground":"#61afef"}},{"name":"python placeholder reset to normal string","scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#d19a66"}},{"name":"Operators","scope":"keyword.operator","settings":{"foreground":"#abb2bf"}},{"name":"Compound Assignment Operators","scope":"keyword.operator.assignment.compound","settings":{"foreground":"#c678dd"}},{"name":"Compound Assignment Operators js/ts","scope":"keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts","settings":{"foreground":"#56b6c2"}},{"name":"Keywords","scope":"keyword","settings":{"foreground":"#c678dd"}},{"name":"Namespaces","scope":"entity.name.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Variables","scope":"variable","settings":{"foreground":"#e06c75"}},{"name":"Variables","scope":"variable.c","settings":{"foreground":"#abb2bf"}},{"name":"Language variables","scope":"variable.language","settings":{"foreground":"#e5c07b"}},{"name":"Java Variables","scope":"token.variable.parameter.java","settings":{"foreground":"#abb2bf"}},{"name":"Java Imports","scope":"import.storage.java","settings":{"foreground":"#e5c07b"}},{"name":"Packages","scope":"token.package.keyword","settings":{"foreground":"#c678dd"}},{"name":"Packages","scope":"token.package","settings":{"foreground":"#abb2bf"}},{"name":"Functions","scope":["entity.name.function","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"#61afef"}},{"name":"Classes","scope":"entity.name.type.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Classes","scope":"support.class, entity.name.type.class","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"#e5c07b"}},{"name":"Class name php","scope":"variable.other.class.php","settings":{"foreground":"#e06c75"}},{"name":"Type Name","scope":"entity.name.type","settings":{"foreground":"#e5c07b"}},{"name":"Keyword Control","scope":"keyword.control","settings":{"foreground":"#c678dd"}},{"name":"Control Elements","scope":"control.elements, keyword.operator.less","settings":{"foreground":"#d19a66"}},{"name":"Methods","scope":"keyword.other.special-method","settings":{"foreground":"#61afef"}},{"name":"Storage","scope":"storage","settings":{"foreground":"#c678dd"}},{"name":"Storage JS TS","scope":"token.storage","settings":{"foreground":"#c678dd"}},{"name":"Source Js Keyword Operator Delete,source Js Keyword Operator In,source Js Keyword Operator Of,source Js Keyword Operator Instanceof,source Js Keyword Operator New,source Js Keyword Operator Typeof,source Js Keyword Operator Void","scope":"keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void","settings":{"foreground":"#c678dd"}},{"name":"Java Storage","scope":"token.storage.type.java","settings":{"foreground":"#e5c07b"}},{"name":"Support","scope":"support.function","settings":{"foreground":"#56b6c2"}},{"name":"Support type","scope":"support.type.property-name","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] toml support","scope":"support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml","settings":{"foreground":"#e06c75"}},{"name":"Support type","scope":"support.constant.property-value","settings":{"foreground":"#abb2bf"}},{"name":"Support type","scope":"support.constant.font-name","settings":{"foreground":"#d19a66"}},{"name":"Meta tag","scope":"meta.tag","settings":{"foreground":"#abb2bf"}},{"name":"Strings","scope":"string","settings":{"foreground":"#98c379"}},{"name":"Constant other symbol","scope":"constant.other.symbol","settings":{"foreground":"#56b6c2"}},{"name":"Integers","scope":"constant.numeric","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"constant","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"punctuation.definition.constant","settings":{"foreground":"#d19a66"}},{"name":"Tags","scope":"entity.name.tag","settings":{"foreground":"#e06c75"}},{"name":"Attributes","scope":"entity.other.attribute-name","settings":{"foreground":"#d19a66"}},{"name":"Attribute IDs","scope":"entity.other.attribute-name.id","settings":{"foreground":"#61afef"}},{"name":"Attribute class","scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#d19a66"}},{"name":"Selector","scope":"meta.selector","settings":{"foreground":"#c678dd"}},{"name":"Headings","scope":"markup.heading","settings":{"foreground":"#e06c75"}},{"name":"Headings","scope":"markup.heading punctuation.definition.heading, entity.name.section","settings":{"foreground":"#61afef"}},{"name":"Units","scope":"keyword.other.unit","settings":{"foreground":"#e06c75"}},{"name":"Bold","scope":"markup.bold,todo.bold","settings":{"foreground":"#d19a66"}},{"name":"Bold","scope":"punctuation.definition.bold","settings":{"foreground":"#e5c07b"}},{"name":"markup Italic","scope":"markup.italic, punctuation.definition.italic,todo.emphasis","settings":{"foreground":"#c678dd"}},{"name":"emphasis md","scope":"emphasis md","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown headings","scope":"entity.name.section.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown heading Punctuation Definition","scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#e06c75"}},{"name":"punctuation.definition.list.begin.markdown","scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown heading setext","scope":"markup.heading.setext","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Bold","scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#d19a66"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw punctuation","scope":"punctuation.definition.raw.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown List Punctuation Definition","scope":"punctuation.definition.list.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition String","scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","punctuation.definition.metadata.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"beginning.punctuation.definition.list.markdown","scope":["beginning.punctuation.definition.list.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Link","scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Underline Link/Image","scope":"markup.underline.link.markdown,markup.underline.link.image.markdown","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown Link Title/Description","scope":"string.other.link.title.markdown,string.other.link.description.markdown","settings":{"foreground":"#61afef"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw","scope":"markup.raw.monospace.asciidoc","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw Punctuation Definition","scope":"punctuation.definition.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc List Punctuation Definition","scope":"markup.list.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc underline link","scope":"markup.link.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Asciidoc link name","scope":"string.unquoted.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#61afef"}},{"name":"Regular Expressions","scope":"string.regexp","settings":{"foreground":"#56b6c2"}},{"name":"Embedded","scope":"punctuation.section.embedded, variable.interpolation","settings":{"foreground":"#e06c75"}},{"name":"Embedded","scope":"punctuation.section.embedded.begin,punctuation.section.embedded.end","settings":{"foreground":"#c678dd"}},{"name":"illegal","scope":"invalid.illegal","settings":{"foreground":"#ffffff"}},{"name":"illegal","scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"#abb2bf"}},{"scope":"invalid.illegal.unrecognized-tag.html","settings":{"foreground":"#e06c75"}},{"name":"Broken","scope":"invalid.broken","settings":{"foreground":"#ffffff"}},{"name":"Deprecated","scope":"invalid.deprecated","settings":{"foreground":"#ffffff"}},{"name":"html Deprecated","scope":"invalid.deprecated.entity.other.attribute-name.html","settings":{"foreground":"#d19a66"}},{"name":"Unimplemented","scope":"invalid.unimplemented","settings":{"foreground":"#ffffff"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json","scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json > Punctuation String","scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > Value Json > String Quoted Json,source Json Meta Structure Array Json > Value Json > String Quoted Json,source Json Meta Structure Dictionary Json > Value Json > String Quoted Json > Punctuation,source Json Meta Structure Array Json > Value Json > String Quoted Json > Punctuation","scope":"source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation","settings":{"foreground":"#98c379"}},{"name":"Source Json Meta Structure Dictionary Json > Constant Language Json,source Json Meta Structure Array Json > Constant Language Json","scope":"source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json","settings":{"foreground":"#56b6c2"}},{"name":"[VSCODE-CUSTOM] JSON Property Name","scope":"support.type.property-name.json","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] JSON Punctuation for Property Name","scope":"support.type.property-name.json punctuation","settings":{"foreground":"#e06c75"}},{"name":"laravel blade tag","scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"laravel blade @","scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"use statement for other classes","scope":"support.other.namespace.use.php,support.other.namespace.use-as.php,entity.other.alias.php,meta.interface.php","settings":{"foreground":"#e5c07b"}},{"name":"error suppression","scope":"keyword.operator.error-control.php","settings":{"foreground":"#c678dd"}},{"name":"php instanceof","scope":"keyword.operator.type.php","settings":{"foreground":"#c678dd"}},{"name":"style double quoted array index normal begin","scope":"punctuation.section.array.begin.php","settings":{"foreground":"#abb2bf"}},{"name":"style double quoted array index normal end","scope":"punctuation.section.array.end.php","settings":{"foreground":"#abb2bf"}},{"name":"php illegal.non-null-typehinted","scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"#f44747"}},{"name":"php types","scope":"storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php","settings":{"foreground":"#e5c07b"}},{"name":"php call-function","scope":"meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php","settings":{"foreground":"#61afef"}},{"name":"php function-resets","scope":"punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php","settings":{"foreground":"#abb2bf"}},{"name":"support php constants","scope":"support.constant.core.rust","settings":{"foreground":"#d19a66"}},{"name":"support php constants","scope":"support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php","settings":{"foreground":"#d19a66"}},{"name":"php goto","scope":"entity.name.goto-label.php,support.other.php","settings":{"foreground":"#61afef"}},{"name":"php logical/bitwise operator","scope":"keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php","settings":{"foreground":"#56b6c2"}},{"name":"php regexp operator","scope":"keyword.operator.regexp.php","settings":{"foreground":"#c678dd"}},{"name":"php comparison","scope":"keyword.operator.comparison.php","settings":{"foreground":"#56b6c2"}},{"name":"php heredoc/nowdoc","scope":"keyword.operator.heredoc.php,keyword.operator.nowdoc.php","settings":{"foreground":"#c678dd"}},{"name":"python function decorator @","scope":"meta.function.decorator.python","settings":{"foreground":"#61afef"}},{"name":"python function support","scope":"support.token.decorator.python,meta.function.decorator.identifier.python","settings":{"foreground":"#56b6c2"}},{"name":"parameter function js/ts","scope":"function.parameter","settings":{"foreground":"#abb2bf"}},{"name":"brace function","scope":"function.brace","settings":{"foreground":"#abb2bf"}},{"name":"parameter function ruby cs","scope":"function.parameter.ruby, function.parameter.cs","settings":{"foreground":"#abb2bf"}},{"name":"constant.language.symbol.ruby","scope":"constant.language.symbol.ruby","settings":{"foreground":"#56b6c2"}},{"name":"constant.language.symbol.hashkey.ruby","scope":"constant.language.symbol.hashkey.ruby","settings":{"foreground":"#56b6c2"}},{"name":"rgb-value","scope":"rgb-value","settings":{"foreground":"#56b6c2"}},{"name":"rgb value","scope":"inline-color-decoration rgb-value","settings":{"foreground":"#d19a66"}},{"name":"rgb value less","scope":"less rgb-value","settings":{"foreground":"#d19a66"}},{"name":"sass selector","scope":"selector.sass","settings":{"foreground":"#e06c75"}},{"name":"ts primitive/builtin types","scope":"support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx","settings":{"foreground":"#e5c07b"}},{"name":"block scope","scope":"block.scope.end,block.scope.begin","settings":{"foreground":"#abb2bf"}},{"name":"cs storage type","scope":"storage.type.cs","settings":{"foreground":"#e5c07b"}},{"name":"cs local variable","scope":"entity.name.variable.local.cs","settings":{"foreground":"#e06c75"}},{"scope":"token.info-token","settings":{"foreground":"#61afef"}},{"scope":"token.warn-token","settings":{"foreground":"#d19a66"}},{"scope":"token.error-token","settings":{"foreground":"#f44747"}},{"scope":"token.debug-token","settings":{"foreground":"#c678dd"}},{"name":"String interpolation","scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#c678dd"}},{"name":"Reset JavaScript string interpolation expression","scope":["meta.template.expression"],"settings":{"foreground":"#abb2bf"}},{"name":"Import module JS","scope":["keyword.operator.module"],"settings":{"foreground":"#c678dd"}},{"name":"js Flowtype","scope":["support.type.type.flowtype"],"settings":{"foreground":"#61afef"}},{"name":"js Flow","scope":["support.type.primitive"],"settings":{"foreground":"#e5c07b"}},{"name":"js class prop","scope":["meta.property.object"],"settings":{"foreground":"#e06c75"}},{"name":"js func parameter","scope":["variable.parameter.function.js"],"settings":{"foreground":"#e06c75"}},{"name":"js template literals begin","scope":["keyword.other.template.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals end","scope":["keyword.other.template.end"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces begin","scope":["keyword.other.substitution.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces end","scope":["keyword.other.substitution.end"],"settings":{"foreground":"#98c379"}},{"name":"js operator.assignment","scope":["keyword.operator.assignment"],"settings":{"foreground":"#56b6c2"}},{"name":"go operator","scope":["keyword.operator.assignment.go"],"settings":{"foreground":"#e5c07b"}},{"name":"go operator","scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"#c678dd"}},{"name":"Go package name","scope":["entity.name.package.go"],"settings":{"foreground":"#e5c07b"}},{"name":"elm prelude","scope":["support.type.prelude.elm"],"settings":{"foreground":"#56b6c2"}},{"name":"elm constant","scope":["support.constant.elm"],"settings":{"foreground":"#d19a66"}},{"name":"template literal","scope":["punctuation.quasi.element"],"settings":{"foreground":"#c678dd"}},{"name":"html/pug (jade) escaped characters and entities","scope":["constant.character.entity"],"settings":{"foreground":"#e06c75"}},{"name":"styling css pseudo-elements/classes to be able to differentiate from classes which are the same colour","scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#56b6c2"}},{"name":"Clojure globals","scope":["entity.global.clojure"],"settings":{"foreground":"#e5c07b"}},{"name":"Clojure symbols","scope":["meta.symbol.clojure"],"settings":{"foreground":"#e06c75"}},{"name":"Clojure constants","scope":["constant.keyword.clojure"],"settings":{"foreground":"#56b6c2"}},{"name":"CoffeeScript Function Argument","scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"#e06c75"}},{"name":"Ini Default Text","scope":["source.ini"],"settings":{"foreground":"#98c379"}},{"name":"Makefile prerequisities","scope":["meta.scope.prerequisites.makefile"],"settings":{"foreground":"#e06c75"}},{"name":"Makefile text colour","scope":["source.makefile"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy import names","scope":["storage.modifier.import.groovy"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy Methods","scope":["meta.method.groovy"],"settings":{"foreground":"#61afef"}},{"name":"Groovy Variables","scope":["meta.definition.variable.name.groovy"],"settings":{"foreground":"#e06c75"}},{"name":"Groovy Inheritance","scope":["meta.definition.class.inherited.classes.groovy"],"settings":{"foreground":"#98c379"}},{"name":"HLSL Semantic","scope":["support.variable.semantic.hlsl"],"settings":{"foreground":"#e5c07b"}},{"name":"HLSL Types","scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"#c678dd"}},{"name":"SQL Variables","scope":["text.variable","text.bracketed"],"settings":{"foreground":"#e06c75"}},{"name":"types","scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 1, keyword","scope":["entity.name.function.xi"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 2, callable","scope":["entity.name.class.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 3, property","scope":["constant.character.character-class.regexp.xi"],"settings":{"foreground":"#e06c75"}},{"name":"heading 4, type, class, interface","scope":["constant.regexp.xi"],"settings":{"foreground":"#c678dd"}},{"name":"heading 5, enums, preprocessor, constant, decorator","scope":["keyword.control.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 6, number","scope":["invalid.xi"],"settings":{"foreground":"#abb2bf"}},{"name":"string","scope":["beginning.punctuation.definition.quote.markdown.xi"],"settings":{"foreground":"#98c379"}},{"name":"comments","scope":["beginning.punctuation.definition.list.markdown.xi"],"settings":{"foreground":"#7f848e"}},{"name":"link","scope":["constant.character.xi"],"settings":{"foreground":"#61afef"}},{"name":"accent","scope":["accent.xi"],"settings":{"foreground":"#61afef"}},{"name":"wikiword","scope":["wikiword.xi"],"settings":{"foreground":"#d19a66"}},{"name":"language operators like \'+\', \'-\' etc","scope":["constant.other.color.rgb-value.xi"],"settings":{"foreground":"#ffffff"}},{"name":"elements to dim","scope":["punctuation.definition.tag.xi"],"settings":{"foreground":"#5c6370"}},{"name":"C++/C#","scope":["entity.name.label.cs","entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"#e5c07b"}},{"name":"Markdown underscore-style headers","scope":["entity.name.label.cs","markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"meta.brace.square","scope":[" meta.brace.square"],"settings":{"foreground":"#abb2bf"}},{"name":"Comments","scope":"comment, punctuation.definition.comment","settings":{"foreground":"#7f848e","fontStyle":"italic"}},{"name":"[VSCODE-CUSTOM] Markdown Quote","scope":"markup.quote.markdown","settings":{"foreground":"#5c6370"}},{"name":"punctuation.definition.block.sequence.item.yaml","scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#abb2bf"}},{"scope":["constant.language.symbol.elixir","constant.language.symbol.double-quoted.elixir"],"settings":{"foreground":"#56b6c2"}},{"scope":["entity.name.variable.parameter.cs"],"settings":{"foreground":"#e5c07b"}},{"scope":["entity.name.variable.field.cs"],"settings":{"foreground":"#e06c75"}},{"name":"Deleted","scope":"markup.deleted","settings":{"foreground":"#e06c75"}},{"name":"Inserted","scope":"markup.inserted","settings":{"foreground":"#98c379"}},{"name":"Underline","scope":"markup.underline","settings":{"fontStyle":"underline"}},{"name":"punctuation.section.embedded.begin.php","scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#BE5046"}},{"name":"support.other.namespace.php","scope":["support.other.namespace.php"],"settings":{"foreground":"#abb2bf"}},{"name":"variable.other.object","scope":["variable.other.object"],"settings":{"foreground":"#e5c07b"}},{"name":"variable.other.constant.property","scope":["variable.other.constant.property"],"settings":{"foreground":"#e06c75"}},{"name":"entity.other.inherited-class","scope":["entity.other.inherited-class"],"settings":{"foreground":"#e5c07b"}},{"name":"c variable readwrite","scope":"variable.other.readwrite.c","settings":{"foreground":"#e06c75"}},{"name":"php scope","scope":"entity.name.variable.parameter.php,punctuation.separator.colon.php,constant.other.php","settings":{"foreground":"#abb2bf"}},{"name":"Assembly","scope":["constant.numeric.decimal.asm.x86_64"],"settings":{"foreground":"#c678dd"}},{"scope":["support.other.parenthesis.regexp"],"settings":{"foreground":"#d19a66"}},{"scope":["constant.character.escape"],"settings":{"foreground":"#56b6c2"}},{"scope":["string.regexp"],"settings":{"foreground":"#e06c75"}},{"name":"js/ts italic","scope":"entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super","settings":{"fontStyle":"italic"}},{"name":"comment","scope":"comment.line.double-slash,comment.block.documentation","settings":{"fontStyle":"italic"}},{"name":"Python Keyword Control","scope":"keyword.control.import.python,keyword.control.flow.python,keyword.operator.logical.python","settings":{"fontStyle":"italic"}},{"name":"markup.italic.markdown","scope":"markup.italic.markdown","settings":{"fontStyle":"italic"}}],"colors":{"activityBar.background":"#282c34","activityBar.foreground":"#d7dae0","activityBarBadge.background":"#4d78cc","activityBarBadge.foreground":"#f8fafd","badge.background":"#282c34","button.background":"#404754","button.secondaryBackground":"#30333d","button.secondaryForeground":"#c0bdbd","checkbox.border":"#404754","debugToolBar.background":"#21252b","descriptionForeground":"#abb2bf","diffEditor.insertedTextBackground":"#00809b33","dropdown.background":"#21252b","dropdown.border":"#21252b","editor.background":"#282c34","editor.findMatchBackground":"#42557b","editor.findMatchBorder":"#457dff","editor.findMatchHighlightBackground":"#6199ff2f","editor.foreground":"#abb2bf","editorBracketHighlight.foreground1":"#d19a66","editorBracketHighlight.foreground2":"#c678dd","editorBracketHighlight.foreground3":"#56b6c2","editorHoverWidget.highlightForeground":"#61afef","editorInlayHint.foreground":"#abb2bf","editorInlayHint.background":"#2c313c","editor.lineHighlightBackground":"#2c313c","editorLineNumber.activeForeground":"#abb2bf","editorGutter.addedBackground":"#109868","editorGutter.deletedBackground":"#9A353D","editorGutter.modifiedBackground":"#948B60","editorOverviewRuler.addedBackground":"#109868","editorOverviewRuler.deletedBackground":"#9A353D","editorOverviewRuler.modifiedBackground":"#948B60","editor.selectionBackground":"#67769660","editor.selectionHighlightBackground":"#ffffff10","editor.selectionHighlightBorder":"#dddddd","editor.wordHighlightBackground":"#d2e0ff2f","editor.wordHighlightBorder":"#7f848e","editor.wordHighlightStrongBackground":"#abb2bf26","editor.wordHighlightStrongBorder":"#7f848e","editorBracketMatch.background":"#515a6b","editorBracketMatch.border":"#515a6b","editorCursor.background":"#ffffffc9","editorCursor.foreground":"#528bff","editorError.foreground":"#c24038","editorGroup.background":"#181a1f","editorGroup.border":"#181a1f","editorGroupHeader.tabsBackground":"#21252b","editorHoverWidget.background":"#21252b","editorHoverWidget.border":"#181a1f","editorIndentGuide.activeBackground":"#c8c8c859","editorIndentGuide.background":"#3b4048","editorLineNumber.foreground":"#495162","editorMarkerNavigation.background":"#21252b","editorRuler.foreground":"#abb2bf26","editorSuggestWidget.background":"#21252b","editorSuggestWidget.border":"#181a1f","editorSuggestWidget.selectedBackground":"#2c313a","editorWarning.foreground":"#d19a66","editorWhitespace.foreground":"#ffffff1d","editorWidget.background":"#21252b","focusBorder":"#3e4452","gitDecoration.ignoredResourceForeground":"#636b78","input.background":"#1d1f23","input.foreground":"#abb2bf","list.activeSelectionBackground":"#2c313a","list.activeSelectionForeground":"#d7dae0","list.focusBackground":"#323842","list.focusForeground":"#f0f0f0","list.highlightForeground":"#ecebeb","list.hoverBackground":"#2c313a","list.hoverForeground":"#abb2bf","list.inactiveSelectionBackground":"#323842","list.inactiveSelectionForeground":"#d7dae0","list.warningForeground":"#d19a66","menu.foreground":"#abb2bf","menu.separatorBackground":"#343a45","minimapGutter.addedBackground":"#109868","minimapGutter.deletedBackground":"#9A353D","minimapGutter.modifiedBackground":"#948B60","panel.border":"#3e4452","panelSectionHeader.background":"#21252b","peekViewEditor.background":"#1b1d23","peekViewEditor.matchHighlightBackground":"#29244b","peekViewResult.background":"#22262b","scrollbar.shadow":"#23252c","scrollbarSlider.activeBackground":"#747d9180","scrollbarSlider.background":"#4e566660","scrollbarSlider.hoverBackground":"#5a637580","settings.focusedRowBackground":"#282c34","settings.headerForeground":"#fff","sideBar.background":"#21252b","sideBar.foreground":"#abb2bf","sideBarSectionHeader.background":"#282c34","sideBarSectionHeader.foreground":"#abb2bf","statusBar.background":"#21252b","statusBar.debuggingBackground":"#cc6633","statusBar.debuggingBorder":"#ff000000","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#9da5b4","statusBar.noFolderBackground":"#21252b","statusBarItem.remoteBackground":"#4d78cc","statusBarItem.remoteForeground":"#f8fafd","tab.activeBackground":"#282c34","tab.activeBorder":"#b4b4b4","tab.activeForeground":"#dcdcdc","tab.border":"#181a1f","tab.hoverBackground":"#323842","tab.inactiveBackground":"#21252b","tab.unfocusedHoverBackground":"#323842","terminal.ansiBlack":"#3f4451","terminal.ansiBlue":"#4aa5f0","terminal.ansiBrightBlack":"#4f5666","terminal.ansiBrightBlue":"#4dc4ff","terminal.ansiBrightCyan":"#4cd1e0","terminal.ansiBrightGreen":"#a5e075","terminal.ansiBrightMagenta":"#de73ff","terminal.ansiBrightRed":"#ff616e","terminal.ansiBrightWhite":"#e6e6e6","terminal.ansiBrightYellow":"#f0a45d","terminal.ansiCyan":"#42b3c2","terminal.ansiGreen":"#8cc265","terminal.ansiMagenta":"#c162de","terminal.ansiRed":"#e05561","terminal.ansiWhite":"#d7dae0","terminal.ansiYellow":"#d18f52","terminal.background":"#282c34","terminal.border":"#3e4452","terminal.foreground":"#abb2bf","terminal.selectionBackground":"#abb2bf30","textBlockQuote.background":"#2e3440","textBlockQuote.border":"#4b5362","textLink.foreground":"#61afef","textPreformat.foreground":"#d19a66","titleBar.activeBackground":"#282c34","titleBar.activeForeground":"#9da5b4","titleBar.inactiveBackground":"#21252b","titleBar.inactiveForeground":"#6b717d","tree.indentGuidesStroke":"#ffffff1d","walkThrough.embeddedEditorBackground":"#2e3440","welcomePage.buttonHoverBackground":"#404754"}}'),Cc=JSON.parse('{"name":"One Dark Pro","type":"dark","semanticHighlighting":true,"semanticTokenColors":{"enumMember":{"foreground":"#56b6c2"},"variable.constant":{"foreground":"#d19a66"},"variable.defaultLibrary":{"foreground":"#e5c07b"},"variable:dart":{"foreground":"#d19a66"},"property:dart":{"foreground":"#d19a66"},"annotation:dart":{"foreground":"#d19a66"},"parameter.label:dart":{"foreground":"#abb2bf"},"macro":{"foreground":"#d19a66"},"tomlArrayKey":{"foreground":"#e5c07b"}},"tokenColors":[{"scope":"meta.embedded","settings":{"foreground":"#abb2bf"}},{"name":"unison punctuation","scope":"punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison","settings":{"foreground":"#e06c75"}},{"name":"haskell variable generic-type","scope":"variable.other.generic-type.haskell","settings":{"foreground":"#c678dd"}},{"name":"haskell storage type","scope":"storage.type.haskell","settings":{"foreground":"#d19a66"}},{"name":"support.variable.magic.python","scope":"support.variable.magic.python","settings":{"foreground":"#e06c75"}},{"name":"punctuation.separator.parameters.python","scope":"punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python","settings":{"foreground":"#abb2bf"}},{"name":"variable.parameter.function.language.special.self.python","scope":"variable.parameter.function.language.special.self.python","settings":{"foreground":"#e5c07b"}},{"name":"variable.parameter.function.language.special.cls.python","scope":"variable.parameter.function.language.special.cls.python","settings":{"foreground":"#e5c07b"}},{"name":"storage.modifier.lifetime.rust","scope":"storage.modifier.lifetime.rust","settings":{"foreground":"#abb2bf"}},{"name":"support.function.std.rust","scope":"support.function.std.rust","settings":{"foreground":"#61afef"}},{"name":"entity.name.lifetime.rust","scope":"entity.name.lifetime.rust","settings":{"foreground":"#e5c07b"}},{"name":"variable.language.rust","scope":"variable.language.rust","settings":{"foreground":"#e06c75"}},{"name":"support.constant.edge","scope":"support.constant.edge","settings":{"foreground":"#c678dd"}},{"name":"regexp constant character-class","scope":"constant.other.character-class.regexp","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":["keyword.operator.word"],"settings":{"foreground":"#c678dd"}},{"name":"regexp operator.quantifier","scope":"keyword.operator.quantifier.regexp","settings":{"foreground":"#d19a66"}},{"name":"Text","scope":"variable.parameter.function","settings":{"foreground":"#abb2bf"}},{"name":"Comment Markup Link","scope":"comment markup.link","settings":{"foreground":"#5c6370"}},{"name":"markup diff","scope":"markup.changed.diff","settings":{"foreground":"#e5c07b"}},{"name":"diff","scope":"meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff","settings":{"foreground":"#61afef"}},{"name":"inserted.diff","scope":"markup.inserted.diff","settings":{"foreground":"#98c379"}},{"name":"deleted.diff","scope":"markup.deleted.diff","settings":{"foreground":"#e06c75"}},{"name":"c++ function","scope":"meta.function.c,meta.function.cpp","settings":{"foreground":"#e06c75"}},{"name":"c++ block","scope":"punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c","settings":{"foreground":"#abb2bf"}},{"name":"js/ts punctuation separator key-value","scope":"punctuation.separator.key-value","settings":{"foreground":"#abb2bf"}},{"name":"js/ts import keyword","scope":"keyword.operator.expression.import","settings":{"foreground":"#61afef"}},{"name":"math js/ts","scope":"support.constant.math","settings":{"foreground":"#e5c07b"}},{"name":"math property js/ts","scope":"support.constant.property.math","settings":{"foreground":"#d19a66"}},{"name":"js/ts variable.other.constant","scope":"variable.other.constant","settings":{"foreground":"#e5c07b"}},{"name":"java type","scope":["storage.type.annotation.java","storage.type.object.array.java"],"settings":{"foreground":"#e5c07b"}},{"name":"java source","scope":"source.java","settings":{"foreground":"#e06c75"}},{"name":"java modifier.import","scope":"punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java","settings":{"foreground":"#abb2bf"}},{"name":"java modifier.import","scope":"meta.method.java","settings":{"foreground":"#61afef"}},{"name":"java modifier.import","scope":"storage.modifier.import.java,storage.type.java,storage.type.generic.java","settings":{"foreground":"#e5c07b"}},{"name":"java instanceof","scope":"keyword.operator.instanceof.java","settings":{"foreground":"#c678dd"}},{"name":"java variable.name","scope":"meta.definition.variable.name.java","settings":{"foreground":"#e06c75"}},{"name":"operator logical","scope":"keyword.operator.logical","settings":{"foreground":"#56b6c2"}},{"name":"operator bitwise","scope":"keyword.operator.bitwise","settings":{"foreground":"#56b6c2"}},{"name":"operator channel","scope":"keyword.operator.channel","settings":{"foreground":"#56b6c2"}},{"name":"support.constant.property-value.scss","scope":"support.constant.property-value.scss,support.constant.property-value.css","settings":{"foreground":"#d19a66"}},{"name":"CSS/SCSS/LESS Operators","scope":"keyword.operator.css,keyword.operator.scss,keyword.operator.less","settings":{"foreground":"#56b6c2"}},{"name":"css color standard name","scope":"support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss","settings":{"foreground":"#d19a66"}},{"name":"css comma","scope":"punctuation.separator.list.comma.css","settings":{"foreground":"#abb2bf"}},{"name":"css attribute-name.id","scope":"support.constant.color.w3c-standard-color-name.css","settings":{"foreground":"#d19a66"}},{"name":"css property-name","scope":"support.type.vendored.property-name.css","settings":{"foreground":"#56b6c2"}},{"name":"js/ts module","scope":"support.module.node,support.type.object.module,support.module.node","settings":{"foreground":"#e5c07b"}},{"name":"entity.name.type.module","scope":"entity.name.type.module","settings":{"foreground":"#e5c07b"}},{"name":"js variable readwrite","scope":"variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node","settings":{"foreground":"#e06c75"}},{"name":"js/ts json","scope":"support.constant.json","settings":{"foreground":"#d19a66"}},{"name":"js/ts Keyword","scope":["keyword.operator.expression.instanceof","keyword.operator.new","keyword.operator.ternary","keyword.operator.optional","keyword.operator.expression.keyof"],"settings":{"foreground":"#c678dd"}},{"name":"js/ts console","scope":"support.type.object.console","settings":{"foreground":"#e06c75"}},{"name":"js/ts support.variable.property.process","scope":"support.variable.property.process","settings":{"foreground":"#d19a66"}},{"name":"js console function","scope":"entity.name.function,support.function.console","settings":{"foreground":"#61afef"}},{"name":"keyword.operator.misc.rust","scope":"keyword.operator.misc.rust","settings":{"foreground":"#abb2bf"}},{"name":"keyword.operator.sigil.rust","scope":"keyword.operator.sigil.rust","settings":{"foreground":"#c678dd"}},{"name":"operator","scope":"keyword.operator.delete","settings":{"foreground":"#c678dd"}},{"name":"js dom","scope":"support.type.object.dom","settings":{"foreground":"#56b6c2"}},{"name":"js dom variable","scope":"support.variable.dom,support.variable.property.dom","settings":{"foreground":"#e06c75"}},{"name":"keyword.operator","scope":"keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational","settings":{"foreground":"#56b6c2"}},{"name":"C operator assignment","scope":"keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp","settings":{"foreground":"#c678dd"}},{"name":"Punctuation","scope":"punctuation.separator.delimiter","settings":{"foreground":"#abb2bf"}},{"name":"Other punctuation .c","scope":"punctuation.separator.c,punctuation.separator.cpp","settings":{"foreground":"#c678dd"}},{"name":"C type posix-reserved","scope":"support.type.posix-reserved.c,support.type.posix-reserved.cpp","settings":{"foreground":"#56b6c2"}},{"name":"keyword.operator.sizeof.c","scope":"keyword.operator.sizeof.c,keyword.operator.sizeof.cpp","settings":{"foreground":"#c678dd"}},{"name":"python parameter","scope":"variable.parameter.function.language.python","settings":{"foreground":"#d19a66"}},{"name":"python type","scope":"support.type.python","settings":{"foreground":"#56b6c2"}},{"name":"python logical","scope":"keyword.operator.logical.python","settings":{"foreground":"#c678dd"}},{"name":"pyCs","scope":"variable.parameter.function.python","settings":{"foreground":"#d19a66"}},{"name":"python block","scope":"punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python","settings":{"foreground":"#abb2bf"}},{"name":"python function-call.generic","scope":"meta.function-call.generic.python","settings":{"foreground":"#61afef"}},{"name":"python placeholder reset to normal string","scope":"constant.character.format.placeholder.other.python","settings":{"foreground":"#d19a66"}},{"name":"Operators","scope":"keyword.operator","settings":{"foreground":"#abb2bf"}},{"name":"Compound Assignment Operators","scope":"keyword.operator.assignment.compound","settings":{"foreground":"#c678dd"}},{"name":"Compound Assignment Operators js/ts","scope":"keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts","settings":{"foreground":"#56b6c2"}},{"name":"Keywords","scope":"keyword","settings":{"foreground":"#c678dd"}},{"name":"Namespaces","scope":"entity.name.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Variables","scope":"variable","settings":{"foreground":"#e06c75"}},{"name":"Variables","scope":"variable.c","settings":{"foreground":"#abb2bf"}},{"name":"Language variables","scope":"variable.language","settings":{"foreground":"#e5c07b"}},{"name":"Java Variables","scope":"token.variable.parameter.java","settings":{"foreground":"#abb2bf"}},{"name":"Java Imports","scope":"import.storage.java","settings":{"foreground":"#e5c07b"}},{"name":"Packages","scope":"token.package.keyword","settings":{"foreground":"#c678dd"}},{"name":"Packages","scope":"token.package","settings":{"foreground":"#abb2bf"}},{"name":"Functions","scope":["entity.name.function","meta.require","support.function.any-method","variable.function"],"settings":{"foreground":"#61afef"}},{"name":"Classes","scope":"entity.name.type.namespace","settings":{"foreground":"#e5c07b"}},{"name":"Classes","scope":"support.class, entity.name.type.class","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":"entity.name.class.identifier.namespace.type","settings":{"foreground":"#e5c07b"}},{"name":"Class name","scope":["entity.name.class","variable.other.class.js","variable.other.class.ts"],"settings":{"foreground":"#e5c07b"}},{"name":"Class name php","scope":"variable.other.class.php","settings":{"foreground":"#e06c75"}},{"name":"Type Name","scope":"entity.name.type","settings":{"foreground":"#e5c07b"}},{"name":"Keyword Control","scope":"keyword.control","settings":{"foreground":"#c678dd"}},{"name":"Control Elements","scope":"control.elements, keyword.operator.less","settings":{"foreground":"#d19a66"}},{"name":"Methods","scope":"keyword.other.special-method","settings":{"foreground":"#61afef"}},{"name":"Storage","scope":"storage","settings":{"foreground":"#c678dd"}},{"name":"Storage JS TS","scope":"token.storage","settings":{"foreground":"#c678dd"}},{"name":"Source Js Keyword Operator Delete,source Js Keyword Operator In,source Js Keyword Operator Of,source Js Keyword Operator Instanceof,source Js Keyword Operator New,source Js Keyword Operator Typeof,source Js Keyword Operator Void","scope":"keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void","settings":{"foreground":"#c678dd"}},{"name":"Java Storage","scope":"token.storage.type.java","settings":{"foreground":"#e5c07b"}},{"name":"Support","scope":"support.function","settings":{"foreground":"#56b6c2"}},{"name":"Support type","scope":"support.type.property-name","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] toml support","scope":"support.type.property-name.toml, support.type.property-name.table.toml, support.type.property-name.array.toml","settings":{"foreground":"#e06c75"}},{"name":"Support type","scope":"support.constant.property-value","settings":{"foreground":"#abb2bf"}},{"name":"Support type","scope":"support.constant.font-name","settings":{"foreground":"#d19a66"}},{"name":"Meta tag","scope":"meta.tag","settings":{"foreground":"#abb2bf"}},{"name":"Strings","scope":"string","settings":{"foreground":"#98c379"}},{"name":"Constant other symbol","scope":"constant.other.symbol","settings":{"foreground":"#56b6c2"}},{"name":"Integers","scope":"constant.numeric","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"constant","settings":{"foreground":"#d19a66"}},{"name":"Constants","scope":"punctuation.definition.constant","settings":{"foreground":"#d19a66"}},{"name":"Tags","scope":"entity.name.tag","settings":{"foreground":"#e06c75"}},{"name":"Attributes","scope":"entity.other.attribute-name","settings":{"foreground":"#d19a66"}},{"name":"Attribute IDs","scope":"entity.other.attribute-name.id","settings":{"foreground":"#61afef"}},{"name":"Attribute class","scope":"entity.other.attribute-name.class.css","settings":{"foreground":"#d19a66"}},{"name":"Selector","scope":"meta.selector","settings":{"foreground":"#c678dd"}},{"name":"Headings","scope":"markup.heading","settings":{"foreground":"#e06c75"}},{"name":"Headings","scope":"markup.heading punctuation.definition.heading, entity.name.section","settings":{"foreground":"#61afef"}},{"name":"Units","scope":"keyword.other.unit","settings":{"foreground":"#e06c75"}},{"name":"Bold","scope":"markup.bold,todo.bold","settings":{"foreground":"#d19a66"}},{"name":"Bold","scope":"punctuation.definition.bold","settings":{"foreground":"#e5c07b"}},{"name":"markup Italic","scope":"markup.italic, punctuation.definition.italic,todo.emphasis","settings":{"foreground":"#c678dd"}},{"name":"emphasis md","scope":"emphasis md","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown headings","scope":"entity.name.section.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown heading Punctuation Definition","scope":"punctuation.definition.heading.markdown","settings":{"foreground":"#e06c75"}},{"name":"punctuation.definition.list.begin.markdown","scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown heading setext","scope":"markup.heading.setext","settings":{"foreground":"#abb2bf"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Bold","scope":"punctuation.definition.bold.markdown","settings":{"foreground":"#d19a66"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw","scope":"markup.inline.raw.string.markdown","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Markdown Inline Raw punctuation","scope":"punctuation.definition.raw.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown List Punctuation Definition","scope":"punctuation.definition.list.markdown","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition String","scope":["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","punctuation.definition.metadata.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"beginning.punctuation.definition.list.markdown","scope":["beginning.punctuation.definition.list.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Punctuation Definition Link","scope":"punctuation.definition.metadata.markdown","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] Markdown Underline Link/Image","scope":"markup.underline.link.markdown,markup.underline.link.image.markdown","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Markdown Link Title/Description","scope":"string.other.link.title.markdown,string.other.link.description.markdown","settings":{"foreground":"#61afef"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw","scope":"markup.raw.monospace.asciidoc","settings":{"foreground":"#98c379"}},{"name":"[VSCODE-CUSTOM] Asciidoc Inline Raw Punctuation Definition","scope":"punctuation.definition.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc List Punctuation Definition","scope":"markup.list.asciidoc","settings":{"foreground":"#e5c07b"}},{"name":"[VSCODE-CUSTOM] Asciidoc underline link","scope":"markup.link.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#c678dd"}},{"name":"[VSCODE-CUSTOM] Asciidoc link name","scope":"string.unquoted.asciidoc,markup.other.url.asciidoc","settings":{"foreground":"#61afef"}},{"name":"Regular Expressions","scope":"string.regexp","settings":{"foreground":"#56b6c2"}},{"name":"Embedded","scope":"punctuation.section.embedded, variable.interpolation","settings":{"foreground":"#e06c75"}},{"name":"Embedded","scope":"punctuation.section.embedded.begin,punctuation.section.embedded.end","settings":{"foreground":"#c678dd"}},{"name":"illegal","scope":"invalid.illegal","settings":{"foreground":"#ffffff"}},{"name":"illegal","scope":"invalid.illegal.bad-ampersand.html","settings":{"foreground":"#abb2bf"}},{"scope":"invalid.illegal.unrecognized-tag.html","settings":{"foreground":"#e06c75"}},{"name":"Broken","scope":"invalid.broken","settings":{"foreground":"#ffffff"}},{"name":"Deprecated","scope":"invalid.deprecated","settings":{"foreground":"#ffffff"}},{"name":"html Deprecated","scope":"invalid.deprecated.entity.other.attribute-name.html","settings":{"foreground":"#d19a66"}},{"name":"Unimplemented","scope":"invalid.unimplemented","settings":{"foreground":"#ffffff"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json","scope":"source.json meta.structure.dictionary.json > string.quoted.json","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > String Quoted Json > Punctuation String","scope":"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string","settings":{"foreground":"#e06c75"}},{"name":"Source Json Meta Structure Dictionary Json > Value Json > String Quoted Json,source Json Meta Structure Array Json > Value Json > String Quoted Json,source Json Meta Structure Dictionary Json > Value Json > String Quoted Json > Punctuation,source Json Meta Structure Array Json > Value Json > String Quoted Json > Punctuation","scope":"source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation","settings":{"foreground":"#98c379"}},{"name":"Source Json Meta Structure Dictionary Json > Constant Language Json,source Json Meta Structure Array Json > Constant Language Json","scope":"source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json","settings":{"foreground":"#56b6c2"}},{"name":"[VSCODE-CUSTOM] JSON Property Name","scope":"support.type.property-name.json","settings":{"foreground":"#e06c75"}},{"name":"[VSCODE-CUSTOM] JSON Punctuation for Property Name","scope":"support.type.property-name.json punctuation","settings":{"foreground":"#e06c75"}},{"name":"laravel blade tag","scope":"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"laravel blade @","scope":"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade","settings":{"foreground":"#c678dd"}},{"name":"use statement for other classes","scope":"support.other.namespace.use.php,support.other.namespace.use-as.php,entity.other.alias.php,meta.interface.php","settings":{"foreground":"#e5c07b"}},{"name":"error suppression","scope":"keyword.operator.error-control.php","settings":{"foreground":"#c678dd"}},{"name":"php instanceof","scope":"keyword.operator.type.php","settings":{"foreground":"#c678dd"}},{"name":"style double quoted array index normal begin","scope":"punctuation.section.array.begin.php","settings":{"foreground":"#abb2bf"}},{"name":"style double quoted array index normal end","scope":"punctuation.section.array.end.php","settings":{"foreground":"#abb2bf"}},{"name":"php illegal.non-null-typehinted","scope":"invalid.illegal.non-null-typehinted.php","settings":{"foreground":"#f44747"}},{"name":"php types","scope":"storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php","settings":{"foreground":"#e5c07b"}},{"name":"php call-function","scope":"meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php","settings":{"foreground":"#61afef"}},{"name":"php function-resets","scope":"punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php","settings":{"foreground":"#abb2bf"}},{"name":"support php constants","scope":"support.constant.core.rust","settings":{"foreground":"#d19a66"}},{"name":"support php constants","scope":"support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php","settings":{"foreground":"#d19a66"}},{"name":"php goto","scope":"entity.name.goto-label.php,support.other.php","settings":{"foreground":"#61afef"}},{"name":"php logical/bitwise operator","scope":"keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php","settings":{"foreground":"#56b6c2"}},{"name":"php regexp operator","scope":"keyword.operator.regexp.php","settings":{"foreground":"#c678dd"}},{"name":"php comparison","scope":"keyword.operator.comparison.php","settings":{"foreground":"#56b6c2"}},{"name":"php heredoc/nowdoc","scope":"keyword.operator.heredoc.php,keyword.operator.nowdoc.php","settings":{"foreground":"#c678dd"}},{"name":"python function decorator @","scope":"meta.function.decorator.python","settings":{"foreground":"#61afef"}},{"name":"python function support","scope":"support.token.decorator.python,meta.function.decorator.identifier.python","settings":{"foreground":"#56b6c2"}},{"name":"parameter function js/ts","scope":"function.parameter","settings":{"foreground":"#abb2bf"}},{"name":"brace function","scope":"function.brace","settings":{"foreground":"#abb2bf"}},{"name":"parameter function ruby cs","scope":"function.parameter.ruby, function.parameter.cs","settings":{"foreground":"#abb2bf"}},{"name":"constant.language.symbol.ruby","scope":"constant.language.symbol.ruby","settings":{"foreground":"#56b6c2"}},{"name":"constant.language.symbol.hashkey.ruby","scope":"constant.language.symbol.hashkey.ruby","settings":{"foreground":"#56b6c2"}},{"name":"rgb-value","scope":"rgb-value","settings":{"foreground":"#56b6c2"}},{"name":"rgb value","scope":"inline-color-decoration rgb-value","settings":{"foreground":"#d19a66"}},{"name":"rgb value less","scope":"less rgb-value","settings":{"foreground":"#d19a66"}},{"name":"sass selector","scope":"selector.sass","settings":{"foreground":"#e06c75"}},{"name":"ts primitive/builtin types","scope":"support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx","settings":{"foreground":"#e5c07b"}},{"name":"block scope","scope":"block.scope.end,block.scope.begin","settings":{"foreground":"#abb2bf"}},{"name":"cs storage type","scope":"storage.type.cs","settings":{"foreground":"#e5c07b"}},{"name":"cs local variable","scope":"entity.name.variable.local.cs","settings":{"foreground":"#e06c75"}},{"scope":"token.info-token","settings":{"foreground":"#61afef"}},{"scope":"token.warn-token","settings":{"foreground":"#d19a66"}},{"scope":"token.error-token","settings":{"foreground":"#f44747"}},{"scope":"token.debug-token","settings":{"foreground":"#c678dd"}},{"name":"String interpolation","scope":["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],"settings":{"foreground":"#c678dd"}},{"name":"Reset JavaScript string interpolation expression","scope":["meta.template.expression"],"settings":{"foreground":"#abb2bf"}},{"name":"Import module JS","scope":["keyword.operator.module"],"settings":{"foreground":"#c678dd"}},{"name":"js Flowtype","scope":["support.type.type.flowtype"],"settings":{"foreground":"#61afef"}},{"name":"js Flow","scope":["support.type.primitive"],"settings":{"foreground":"#e5c07b"}},{"name":"js class prop","scope":["meta.property.object"],"settings":{"foreground":"#e06c75"}},{"name":"js func parameter","scope":["variable.parameter.function.js"],"settings":{"foreground":"#e06c75"}},{"name":"js template literals begin","scope":["keyword.other.template.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals end","scope":["keyword.other.template.end"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces begin","scope":["keyword.other.substitution.begin"],"settings":{"foreground":"#98c379"}},{"name":"js template literals variable braces end","scope":["keyword.other.substitution.end"],"settings":{"foreground":"#98c379"}},{"name":"js operator.assignment","scope":["keyword.operator.assignment"],"settings":{"foreground":"#56b6c2"}},{"name":"go operator","scope":["keyword.operator.assignment.go"],"settings":{"foreground":"#e5c07b"}},{"name":"go operator","scope":["keyword.operator.arithmetic.go","keyword.operator.address.go"],"settings":{"foreground":"#c678dd"}},{"name":"Go package name","scope":["entity.name.package.go"],"settings":{"foreground":"#e5c07b"}},{"name":"elm prelude","scope":["support.type.prelude.elm"],"settings":{"foreground":"#56b6c2"}},{"name":"elm constant","scope":["support.constant.elm"],"settings":{"foreground":"#d19a66"}},{"name":"template literal","scope":["punctuation.quasi.element"],"settings":{"foreground":"#c678dd"}},{"name":"html/pug (jade) escaped characters and entities","scope":["constant.character.entity"],"settings":{"foreground":"#e06c75"}},{"name":"styling css pseudo-elements/classes to be able to differentiate from classes which are the same colour","scope":["entity.other.attribute-name.pseudo-element","entity.other.attribute-name.pseudo-class"],"settings":{"foreground":"#56b6c2"}},{"name":"Clojure globals","scope":["entity.global.clojure"],"settings":{"foreground":"#e5c07b"}},{"name":"Clojure symbols","scope":["meta.symbol.clojure"],"settings":{"foreground":"#e06c75"}},{"name":"Clojure constants","scope":["constant.keyword.clojure"],"settings":{"foreground":"#56b6c2"}},{"name":"CoffeeScript Function Argument","scope":["meta.arguments.coffee","variable.parameter.function.coffee"],"settings":{"foreground":"#e06c75"}},{"name":"Ini Default Text","scope":["source.ini"],"settings":{"foreground":"#98c379"}},{"name":"Makefile prerequisities","scope":["meta.scope.prerequisites.makefile"],"settings":{"foreground":"#e06c75"}},{"name":"Makefile text colour","scope":["source.makefile"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy import names","scope":["storage.modifier.import.groovy"],"settings":{"foreground":"#e5c07b"}},{"name":"Groovy Methods","scope":["meta.method.groovy"],"settings":{"foreground":"#61afef"}},{"name":"Groovy Variables","scope":["meta.definition.variable.name.groovy"],"settings":{"foreground":"#e06c75"}},{"name":"Groovy Inheritance","scope":["meta.definition.class.inherited.classes.groovy"],"settings":{"foreground":"#98c379"}},{"name":"HLSL Semantic","scope":["support.variable.semantic.hlsl"],"settings":{"foreground":"#e5c07b"}},{"name":"HLSL Types","scope":["support.type.texture.hlsl","support.type.sampler.hlsl","support.type.object.hlsl","support.type.object.rw.hlsl","support.type.fx.hlsl","support.type.object.hlsl"],"settings":{"foreground":"#c678dd"}},{"name":"SQL Variables","scope":["text.variable","text.bracketed"],"settings":{"foreground":"#e06c75"}},{"name":"types","scope":["support.type.swift","support.type.vb.asp"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 1, keyword","scope":["entity.name.function.xi"],"settings":{"foreground":"#e5c07b"}},{"name":"heading 2, callable","scope":["entity.name.class.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 3, property","scope":["constant.character.character-class.regexp.xi"],"settings":{"foreground":"#e06c75"}},{"name":"heading 4, type, class, interface","scope":["constant.regexp.xi"],"settings":{"foreground":"#c678dd"}},{"name":"heading 5, enums, preprocessor, constant, decorator","scope":["keyword.control.xi"],"settings":{"foreground":"#56b6c2"}},{"name":"heading 6, number","scope":["invalid.xi"],"settings":{"foreground":"#abb2bf"}},{"name":"string","scope":["beginning.punctuation.definition.quote.markdown.xi"],"settings":{"foreground":"#98c379"}},{"name":"comments","scope":["beginning.punctuation.definition.list.markdown.xi"],"settings":{"foreground":"#7f848e"}},{"name":"link","scope":["constant.character.xi"],"settings":{"foreground":"#61afef"}},{"name":"accent","scope":["accent.xi"],"settings":{"foreground":"#61afef"}},{"name":"wikiword","scope":["wikiword.xi"],"settings":{"foreground":"#d19a66"}},{"name":"language operators like \'+\', \'-\' etc","scope":["constant.other.color.rgb-value.xi"],"settings":{"foreground":"#ffffff"}},{"name":"elements to dim","scope":["punctuation.definition.tag.xi"],"settings":{"foreground":"#5c6370"}},{"name":"C++/C#","scope":["entity.name.label.cs","entity.name.scope-resolution.function.call","entity.name.scope-resolution.function.definition"],"settings":{"foreground":"#e5c07b"}},{"name":"Markdown underscore-style headers","scope":["entity.name.label.cs","markup.heading.setext.1.markdown","markup.heading.setext.2.markdown"],"settings":{"foreground":"#e06c75"}},{"name":"meta.brace.square","scope":[" meta.brace.square"],"settings":{"foreground":"#abb2bf"}},{"name":"Comments","scope":"comment, punctuation.definition.comment","settings":{"foreground":"#7f848e"}},{"name":"[VSCODE-CUSTOM] Markdown Quote","scope":"markup.quote.markdown","settings":{"foreground":"#5c6370"}},{"name":"punctuation.definition.block.sequence.item.yaml","scope":"punctuation.definition.block.sequence.item.yaml","settings":{"foreground":"#abb2bf"}},{"scope":["constant.language.symbol.elixir","constant.language.symbol.double-quoted.elixir"],"settings":{"foreground":"#56b6c2"}},{"scope":["entity.name.variable.parameter.cs"],"settings":{"foreground":"#e5c07b"}},{"scope":["entity.name.variable.field.cs"],"settings":{"foreground":"#e06c75"}},{"name":"Deleted","scope":"markup.deleted","settings":{"foreground":"#e06c75"}},{"name":"Inserted","scope":"markup.inserted","settings":{"foreground":"#98c379"}},{"name":"Underline","scope":"markup.underline","settings":{"fontStyle":"underline"}},{"name":"punctuation.section.embedded.begin.php","scope":["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],"settings":{"foreground":"#BE5046"}},{"name":"support.other.namespace.php","scope":["support.other.namespace.php"],"settings":{"foreground":"#abb2bf"}},{"name":"variable.other.object","scope":["variable.other.object"],"settings":{"foreground":"#e5c07b"}},{"name":"variable.other.constant.property","scope":["variable.other.constant.property"],"settings":{"foreground":"#e06c75"}},{"name":"entity.other.inherited-class","scope":["entity.other.inherited-class"],"settings":{"foreground":"#e5c07b"}},{"name":"c variable readwrite","scope":"variable.other.readwrite.c","settings":{"foreground":"#e06c75"}},{"name":"php scope","scope":"entity.name.variable.parameter.php,punctuation.separator.colon.php,constant.other.php","settings":{"foreground":"#abb2bf"}},{"name":"Assembly","scope":["constant.numeric.decimal.asm.x86_64"],"settings":{"foreground":"#c678dd"}},{"scope":["support.other.parenthesis.regexp"],"settings":{"foreground":"#d19a66"}},{"scope":["constant.character.escape"],"settings":{"foreground":"#56b6c2"}},{"scope":["string.regexp"],"settings":{"foreground":"#e06c75"}}],"colors":{"activityBar.background":"#23272e","activityBar.foreground":"#d7dae0","activityBarBadge.background":"#4d78cc","activityBarBadge.foreground":"#f8fafd","badge.background":"#23272e","button.background":"#404754","button.secondaryBackground":"#30333d","button.secondaryForeground":"#c0bdbd","checkbox.border":"#404754","debugToolBar.background":"#1e2227","descriptionForeground":"#abb2bf","diffEditor.insertedTextBackground":"#00809b33","dropdown.background":"#1e2227","dropdown.border":"#1e2227","editor.background":"#23272e","editor.findMatchBackground":"#42557b","editor.findMatchBorder":"#457dff","editor.findMatchHighlightBackground":"#6199ff2f","editor.foreground":"#abb2bf","editorBracketHighlight.foreground1":"#d19a66","editorBracketHighlight.foreground2":"#c678dd","editorBracketHighlight.foreground3":"#56b6c2","editorHoverWidget.highlightForeground":"#61afef","editorInlayHint.foreground":"#abb2bf","editorInlayHint.background":"#2c313c","editor.lineHighlightBackground":"#2c313c","editorLineNumber.activeForeground":"#abb2bf","editorGutter.addedBackground":"#109868","editorGutter.deletedBackground":"#9A353D","editorGutter.modifiedBackground":"#948B60","editorOverviewRuler.addedBackground":"#109868","editorOverviewRuler.deletedBackground":"#9A353D","editorOverviewRuler.modifiedBackground":"#948B60","editor.selectionBackground":"#67769660","editor.selectionHighlightBackground":"#ffffff10","editor.selectionHighlightBorder":"#dddddd","editor.wordHighlightBackground":"#d2e0ff2f","editor.wordHighlightBorder":"#7f848e","editor.wordHighlightStrongBackground":"#abb2bf26","editor.wordHighlightStrongBorder":"#7f848e","editorBracketMatch.background":"#515a6b","editorBracketMatch.border":"#515a6b","editorCursor.background":"#ffffffc9","editorCursor.foreground":"#528bff","editorError.foreground":"#c24038","editorGroup.background":"#181a1f","editorGroup.border":"#181a1f","editorGroupHeader.tabsBackground":"#1e2227","editorHoverWidget.background":"#1e2227","editorHoverWidget.border":"#181a1f","editorIndentGuide.activeBackground":"#c8c8c859","editorIndentGuide.background":"#3b4048","editorLineNumber.foreground":"#495162","editorMarkerNavigation.background":"#1e2227","editorRuler.foreground":"#abb2bf26","editorSuggestWidget.background":"#1e2227","editorSuggestWidget.border":"#181a1f","editorSuggestWidget.selectedBackground":"#2c313a","editorWarning.foreground":"#d19a66","editorWhitespace.foreground":"#ffffff1d","editorWidget.background":"#1e2227","focusBorder":"#3e4452","gitDecoration.ignoredResourceForeground":"#636b78","input.background":"#1d1f23","input.foreground":"#abb2bf","list.activeSelectionBackground":"#2c313a","list.activeSelectionForeground":"#d7dae0","list.focusBackground":"#323842","list.focusForeground":"#f0f0f0","list.highlightForeground":"#ecebeb","list.hoverBackground":"#2c313a","list.hoverForeground":"#abb2bf","list.inactiveSelectionBackground":"#323842","list.inactiveSelectionForeground":"#d7dae0","list.warningForeground":"#d19a66","menu.foreground":"#abb2bf","menu.separatorBackground":"#343a45","minimapGutter.addedBackground":"#109868","minimapGutter.deletedBackground":"#9A353D","minimapGutter.modifiedBackground":"#948B60","panel.border":"#3e4452","panelSectionHeader.background":"#1e2227","peekViewEditor.background":"#1b1d23","peekViewEditor.matchHighlightBackground":"#29244b","peekViewResult.background":"#22262b","scrollbar.shadow":"#23252c","scrollbarSlider.activeBackground":"#747d9180","scrollbarSlider.background":"#4e566660","scrollbarSlider.hoverBackground":"#5a637580","settings.focusedRowBackground":"#23272e","settings.headerForeground":"#fff","sideBar.background":"#1e2227","sideBar.foreground":"#abb2bf","sideBarSectionHeader.background":"#23272e","sideBarSectionHeader.foreground":"#abb2bf","statusBar.background":"#1e2227","statusBar.debuggingBackground":"#cc6633","statusBar.debuggingBorder":"#ff000000","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#9da5b4","statusBar.noFolderBackground":"#1e2227","statusBarItem.remoteBackground":"#4d78cc","statusBarItem.remoteForeground":"#f8fafd","tab.activeBackground":"#23272e","tab.activeBorder":"#b4b4b4","tab.activeForeground":"#dcdcdc","tab.border":"#181a1f","tab.hoverBackground":"#323842","tab.inactiveBackground":"#1e2227","tab.unfocusedHoverBackground":"#323842","terminal.ansiBlack":"#3f4451","terminal.ansiBlue":"#4aa5f0","terminal.ansiBrightBlack":"#4f5666","terminal.ansiBrightBlue":"#4dc4ff","terminal.ansiBrightCyan":"#4cd1e0","terminal.ansiBrightGreen":"#a5e075","terminal.ansiBrightMagenta":"#de73ff","terminal.ansiBrightRed":"#ff616e","terminal.ansiBrightWhite":"#e6e6e6","terminal.ansiBrightYellow":"#f0a45d","terminal.ansiCyan":"#42b3c2","terminal.ansiGreen":"#8cc265","terminal.ansiMagenta":"#c162de","terminal.ansiRed":"#e05561","terminal.ansiWhite":"#d7dae0","terminal.ansiYellow":"#d18f52","terminal.background":"#23272e","terminal.border":"#3e4452","terminal.foreground":"#abb2bf","terminal.selectionBackground":"#abb2bf30","textBlockQuote.background":"#2e3440","textBlockQuote.border":"#4b5362","textLink.foreground":"#61afef","textPreformat.foreground":"#d19a66","titleBar.activeBackground":"#23272e","titleBar.activeForeground":"#9da5b4","titleBar.inactiveBackground":"#1e2227","titleBar.inactiveForeground":"#6b717d","tree.indentGuidesStroke":"#ffffff1d","walkThrough.embeddedEditorBackground":"#2e3440","welcomePage.buttonHoverBackground":"#404754"}}'),bc=[{token:Gl.IDENTIFIER,foreground:"dcdcaa"},{token:Gl.NUMBER,foreground:"b5cea8"},{token:Gl.DATE,foreground:"b5cea8"},{token:Gl.COLOR,foreground:"b5cea8"},{token:Gl.PACKAGE,foreground:"808080"},{token:Gl.PARSER,foreground:"c586c0"},{token:Gl.LANGUAGE_STRUCT,foreground:"c586c0"},{token:Gl.MULTIPLICITY,foreground:"2d796b"},{token:Gl.GENERICS,foreground:"2d796b"},{token:Gl.PROPERTY,foreground:"9cdcfe"},{token:Gl.PARAMETER,foreground:"9cdcfe"},{token:Gl.VARIABLE,foreground:"4fc1ff"},{token:Gl.TYPE,foreground:"3dc9b0"},{token:`${Gl.STRING}.escape`,foreground:"d7ba7d"}];var vc;!function(e){e.DEFAULT_DARK="default-dark",e.GITHUB_LIGHT="github-light",e.GITHUB_DARK="github-dark",e.GITHUB_DARK_DIMMED="github-dark-dimmed",e.SOLARIZED_DARK="solarized-dark",e.ONE_DARK_PRO="one-dark-pro",e.ONE_DARK_PRO_DARKER="one-dark-pro-darker",e.MATERIAL_DEFAULT="material-default",e.MATERIAL_DARKER="material-darker",e.BUILT_IN__VSCODE_LIGHT="vs",e.BUILT_IN__VSCODE_DARK="vs-dark",e.BUILT_IN__VSCODE_HC_BLACK="hc-black",e.BUILT_IN__VSCODE_HC_LIGHT="hc-light"}(vc||(vc={}));const _c={base:"vs-dark",inherit:!0,colors:{},rules:[...bc,{token:"string.sql",foreground:"ce9178"},{token:"white.sql",foreground:"d4d4d4"},{token:"identifier.sql",foreground:"d4d4d4"},{token:"operator.sql",foreground:"d4d4d4"}]},Tc=uc(dc,vc.BUILT_IN__VSCODE_DARK,{},[]),Nc=uc(pc,vc.BUILT_IN__VSCODE_DARK,{},[]),Sc=uc(mc,vc.BUILT_IN__VSCODE_LIGHT,{},[]),Ac=uc(gc,vc.BUILT_IN__VSCODE_DARK,{},[]),yc=uc(hc,vc.BUILT_IN__VSCODE_DARK,{},[]),xc=uc(fc,vc.BUILT_IN__VSCODE_DARK,{},[]),Ic=uc(Ec,vc.BUILT_IN__VSCODE_DARK,{},[]),wc=uc(Cc,vc.BUILT_IN__VSCODE_DARK,{},[]),kc=e=>e.getModel()?.getValue(Tr.editor.EndOfLinePreference.LF)??"",Rc="dummy_problem_marker_owner",Oc=(e,t,n)=>{Tr.editor.setModelMarkers(e,n??Rc,t.map((e=>({startLineNumber:e.startLineNumber,startColumn:e.startColumn,endLineNumber:e.endLineNumber,endColumn:e.endColumn+1,message:""===e.message?"(no error message)":e.message,severity:Tr.MarkerSeverity.Error}))))},Lc=e=>{Tr.editor.removeAllMarkers(e??Rc)};var Fc;!function(e){e.TEXT="plaintext",e.PURE="pure",e.JSON="json",e.JAVA="java",e.MARKDOWN="markdown",e.SQL="sql",e.XML="xml",e.YAML="yaml",e.GRAPHQL="graphql"}(Fc||(Fc={}));var Pc=n(42787),Bc=n(41289),Dc=n(92824);function jc(){const[e,t]=(0,Lt.useState)(null);return[e=>t(e.currentTarget),()=>t(null),{anchorEl:e,onClose:()=>t(null)},Boolean(e)]}function Mc(e){const{menuProps:t,children:n,onClosed:o,onClose:r,anchorEl:i}=e,[a,s]=(0,Lt.useState)(!1);return(0,Lt.useEffect)((()=>{a&&!i&&o?.()}),[i,a,o]),i?(0,E.jsx)(Sn.A,{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},anchorEl:i,open:Boolean(i),slotProps:{root:{slotProps:{backdrop:{invisible:!0}}}},elevation:1,marginThreshold:0,transitionDuration:0,TransitionProps:{onEnter:()=>s(!0)},onClose:r,...t,children:n}):null}function Uc(e){return(0,E.jsx)(Dc.A,{...e,style:{cursor:"default"}})}var Gc=n(59389),Vc=n(20007);const Hc=(0,Lt.createContext)(void 0),Wc=Hc.Provider,$c=()=>P((0,Lt.useContext)(Hc),"Can't find DataCube state in context");function zc(){return(0,E.jsx)("div",{className:"text-2xs ml-1 flex h-2.5 flex-shrink-0 select-none items-center rounded-md bg-sky-500 px-1 font-semibold leading-[10px] text-white",title:"Work In Progress",children:"WIP"})}function Yc(){return(0,E.jsx)("div",{className:"text-2xs ml-1 select-none rounded-md bg-amber-500 px-1 py-0.5 font-semibold text-white",title:"Advanced: Becareful when using this feature!",children:"ADV"})}const Xc=(0,Lt.forwardRef)((function(e,t){const{className:n,compact:o,...r}=e;return(0,E.jsx)("button",{ref:t,...r,className:jn("flex h-6 min-w-20 items-center justify-center border border-neutral-400 bg-neutral-300 px-2.5 hover:brightness-95 disabled:cursor-not-allowed disabled:border-neutral-300 disabled:text-neutral-400 disabled:hover:brightness-100",{"h-5 text-sm":Boolean(o)},n)})})),Kc=(0,Lt.forwardRef)((function(e,t){const{min:n,max:o,step:r,value:i,setValue:a,isValid:s,isDecimal:l,defaultValue:c,disabled:u,className:d,...p}=e,[g,m]=(0,Lt.useState)(i??""),h=(0,Lt.useRef)(null),f=(0,Pc.A)(h,t);return(0,Lt.useEffect)((()=>{m(i??"")}),[i]),(0,E.jsx)("input",{className:jn("h-5 flex-shrink-0 border border-neutral-400 px-1.5 text-sm disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",d),ref:f,...p,inputMode:"numeric",type:"number",min:n,max:o,step:r,value:g,disabled:Boolean(u),onKeyDown:e=>{if("Escape"===e.code)h.current?.select();else if("ArrowUp"===e.code){if(e.preventDefault(),void 0!==i&&void 0!==r){const e=i+r;if(void 0!==n&&e<n||void 0!==o&&e>o)return;m(e.toString()),a(e)}}else if("ArrowDown"===e.code&&(e.preventDefault(),void 0!==i&&void 0!==r)){const e=i-r;if(void 0!==n&&e<n||void 0!==o&&e>o)return;m(e.toString()),a(e)}},onChange:e=>{const t=e.target.value;m(t);const r=l?Number(t):parseInt(t,10);isNaN(r)||U(t)&&!t||(void 0!==s?!s(r):void 0!==n&&r<n||void 0!==o&&r>o)||a(r)},onBlur:()=>{const e=l?Number(g):parseInt(g.toString(),10);isNaN(e)||U(g)&&!g||(void 0!==s?!s(e):void 0!==n&&e<n||void 0!==o&&e>o)?(a(c),m(c??"")):m(i??"")}})})),qc=(0,Lt.forwardRef)((function(e,t){const{className:n,...o}=e,r=(0,Lt.useRef)(null),i=(0,Pc.A)(r,t);return(0,E.jsx)("input",{ref:i,className:jn("h-5 flex-shrink-0 border border-neutral-400 px-1.5 text-sm disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",n),onKeyDown:e=>{"Escape"===e.code&&r.current?.select()},...o})}));function Jc(e){const{label:t,className:n,onChange:o,disabled:r,...i}=e;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Bc.A,{icon:(0,E.jsx)(dr.Checkbox,{}),checkedIcon:(0,E.jsx)(dr.CheckboxSelected,{}),disableRipple:!0,classes:{root:jn("p-0 text-neutral-600 [&_*]:stroke-[1.5px] -ml-[1px]",n),checked:"data-cube-editor-checkbox--checked",disabled:"data-cube-editor-checkbox--disabled"},onChange:o,disabled:r,...i}),Boolean(t)&&(0,E.jsx)("button",{className:"flex-shrink-0 pl-1 text-sm disabled:text-neutral-300",onClick:o,disabled:r,tabIndex:-1,children:t})]})}const Qc=(0,Lt.forwardRef)((function(e,t){const{children:n,className:o,open:r,showAsPlaceholder:i,...a}=e;return(0,E.jsxs)("button",{ref:t,className:jn("group flex h-5 flex-shrink-0 items-center justify-between border border-neutral-400 bg-white pl-1.5 text-sm disabled:select-none disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",{"border-sky-600":Boolean(r),"bg-sky-100":Boolean(r),"text-neutral-400":Boolean(i)},o),...a,children:[(0,E.jsx)("div",{className:"w-[calc(100%_-_12px)] overflow-hidden overflow-ellipsis whitespace-nowrap text-left",children:e.children}),(0,E.jsx)("div",{className:"flex h-full w-3 items-center justify-center text-neutral-500 group-disabled:text-neutral-400",children:(0,E.jsx)(dr.CaretDown,{})})]})}));function Zc(e){const{className:t,...n}=e;return(0,E.jsx)(Mc,{...n,menuProps:{classes:{paper:"rounded-none mt-[1px]",list:jn("p-0 rounded-none border border-neutral-400 bg-white max-h-40 overflow-y-auto",t)}}})}function eu(e){const{className:t,...n}=e;return(0,E.jsx)(Uc,{className:jn("flex h-5 w-full items-center px-1.5 text-sm hover:bg-neutral-100 focus:bg-sky-600 focus:text-white",t),...n})}function tu(){return(0,E.jsx)("div",{className:"my-0.5 h-[1px] w-full bg-neutral-200"})}function nu(e){const{onChange:t,onClose:n,defaultColor:o}=e,[r,i]=(0,Lt.useState)(e.color),a=()=>{t(0===(0,Gc.A)(r).alpha?Qr.transparent:r),n()};return(0,E.jsxs)("div",{className:"data-cube-color-picker rounded-none border border-neutral-400 bg-white",children:[(0,E.jsx)("div",{className:"p-2",children:(0,E.jsx)(Vc.dp,{color:r,onChange:i})}),(0,E.jsx)("div",{className:"flex justify-center px-2",children:["slate","neutral","red","orange","amber","yellow","lime","green","emerald","teal","sky","blue","indigo","violet","purple","fuchsia","pink","rose"].map((e=>(0,E.jsx)("div",{className:"mr-0.5 flex flex-col border-[0.5px] border-neutral-300 last:mr-0",children:[50,100,200,300,400,500,600,700,800,900,950].map((t=>(0,E.jsx)("button",{className:"h-3 w-3 flex-shrink-0",style:{background:Qr[e][t]},onClick:()=>{i(Qr[e][t])},onDoubleClick:()=>{i(Qr[e][t]),a()}},`${e}-${t}`)))},e)))}),(0,E.jsx)("div",{className:"flex justify-center px-2 pb-1 pt-0.5",children:(0,E.jsx)("div",{className:"flex",children:[Qr.transparent,"#000000","#aaaaaa","#dddddd","#ffffff","#ff4136","#ff851b","#ffdc00","#01ff70","#2ecc40","#3d9970","#39cccc","#7fdbff","#0074d9","#001f3f","#b10dc9","#f012be","#85144b"].map((e=>(0,E.jsx)("div",{className:jn("mr-0.5 border-[0.5px] border-neutral-300 last:mr-0",{"data-cube-color-picker--transparent border-neutral-400":e===Qr.transparent}),children:(0,E.jsx)("button",{className:"flex h-3 w-3 flex-shrink-0",style:{background:e},onClick:()=>{i(e)},onDoubleClick:()=>{i(e),a()}})},e)))})}),(0,E.jsx)("div",{className:"h-[1px] w-full bg-neutral-200"}),(0,E.jsxs)("div",{className:"flex h-6 items-center justify-between p-1",children:[(0,E.jsxs)("div",{className:"flex",children:[(0,E.jsx)("div",{className:"h-4 w-4 flex-shrink-0 rounded-sm border-[0.5px] border-neutral-300",style:{background:r}}),(0,E.jsx)(Vc.HC,{className:"ml-0.5 h-4 w-14 border border-neutral-400 px-1 text-sm",color:r,autoFocus:!0,tabIndex:0,onChange:i,prefix:"#",alpha:!0})]}),(0,E.jsxs)("div",{className:"flex",children:[(0,E.jsx)(Xc,{className:"h-4 w-9",onClick:()=>{n()},children:"Cancel"}),(0,E.jsx)(Xc,{className:"ml-1 h-4 w-9 text-xs",disabled:void 0===o,onClick:()=>{void 0!==o&&i(o)},children:"Reset"}),(0,E.jsx)(Xc,{className:"ml-1 h-4 w-9",onClick:()=>{a()},children:"OK"})]})]})]})}function ou(e){const{color:t,onChange:n,className:o,disabled:r,defaultColor:i}=e,[a,s]=(0,Lt.useState)(null);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("button",{className:jn("group h-5 w-10 border border-neutral-300 p-[1px] disabled:border-neutral-200",{"data-cube-color-picker--disabled":Boolean(r),"data-cube-color-picker--transparent":!r&&t===Qr.transparent},o),onClick:e=>{s(e.currentTarget)},disabled:r,children:(0,E.jsx)("div",{className:"h-full w-full group-disabled:hidden",style:{background:t}})}),Boolean(a)&&(0,E.jsx)(zn,{open:Boolean(a),anchorEl:a,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},onClose:()=>s(null),children:(0,E.jsx)(nu,{color:t,onChange:n,onClose:()=>s(null),defaultColor:i})})]})}const ru=({documentationKey:e,title:t,className:n})=>{const o=$c(),r=o.documentationService,i=o.documentationService.getEntry(e);return i&&(i.url||r.shouldDisplayDocumentationEntry(i))?(0,E.jsx)("div",{onClick:t=>{t.preventDefault(),t.stopPropagation();const n=r.getEntry(e);n&&(r.shouldDisplayDocumentationEntry(n)?(o.documentationService.setCurrentEntry(n),o.documentationService.display.open()):n.url&&o.navigationService.openLink(n.url))},title:t??i.text??"Click to see documentation",className:jn("cursor-pointer text-xl text-sky-500",n),children:(0,E.jsx)(dr.DocumentationHint,{})}):null},iu=e=>{const{value:t,updateValue:n,language:o,title:r,isReadOnly:i,hideMinimap:a,hideGutter:s,hidePadding:l,hideActionBar:c,lineToScroll:u,extraEditorOptions:d,error:p}=e,[g,m]=(0,Lt.useState)(),[h,f]=(0,Lt.useState)(!1),C=(0,Lt.useRef)(void 0),b=t.replace(/\r/g,""),v=(0,Lt.useRef)(null);if((0,Lt.useEffect)((()=>{if(!g&&v.current){const e=v.current,t=Tr.editor.create(e,{contextmenu:!1,copyWithSyntaxHighlighting:!1,fontSize:14,fontFamily:"Roboto Mono",fontLigatures:!0,fixedOverflowWidgets:!0,detectIndentation:!1,tabSize:2,"bracketPairColorization.enabled":!1,automaticLayout:!0,fontSize:12,theme:vc.GITHUB_LIGHT,glyphMargin:!l,padding:l?{top:0,bottom:0}:{top:20,bottom:20},formatOnType:!0,formatOnPaste:!0});m(t)}}),[l,g]),(0,Lt.useEffect)((()=>{if(g){(e=>{const t=e.getValue();e.updateOptions({lineNumbersMinChars:Math.max(Math.floor(Math.log10(t.split(/\r\n|\r|\n/g).length))+3,5)})})(g);const e=g.getModel();e&&Tr.editor.setModelLanguage(e,o)}}),[g,o]),(0,Lt.useEffect)((()=>{g&&void 0!==u&&g.revealLineInCenter(u)}),[g,u]),g){C.current?.dispose(),C.current=g.onDidChangeModelContent((()=>{const e=kc(g);e!==b&&n?.(e)})),kc(g)!==b&&g.setValue(b),g.updateOptions({readOnly:Boolean(i),minimap:{enabled:!a},...s?{glyphMargin:!l,folding:!1,lineNumbers:"off",lineDecorationsWidth:0}:{},...d??{}});const e=g.getModel();e&&(p?.sourceInformation?Oc(e,[{message:p.message,startLineNumber:p.sourceInformation.startLine,startColumn:p.sourceInformation.startColumn,endLineNumber:p.sourceInformation.endLine,endColumn:p.sourceInformation.endColumn}]):Lc())}return(0,Lt.useEffect)((()=>()=>{g&&(g.dispose(),C.current?.dispose())}),[g]),(0,E.jsxs)("div",{className:"h-full w-full border border-neutral-200",children:[!c&&(0,E.jsxs)("div",{className:"flex h-5 w-full items-center justify-between border-b border-neutral-200 bg-white",children:[(0,E.jsx)("div",{className:"pl-1 text-sm text-neutral-500",children:r??""}),(0,E.jsx)("button",{tabIndex:-1,className:jn("flex aspect-square h-5 items-center justify-center text-neutral-400 hover:text-neutral-600",{"text-neutral-600":h}),onClick:()=>{const e=!h;f(e),g?.updateOptions({wordWrap:e?"on":"off"})},title:`[${h?"on":"off"}] Toggle word wrap`,children:(0,E.jsx)(dr.WordWrap,{})})]}),(0,E.jsx)("div",{className:jn("relative h-full w-full",{"code-editor__content--padding":!l,"h-[calc(100%_-_20px)]":!c}),children:(0,E.jsx)("div",{className:"absolute left-0 top-0 h-full w-full overflow-hidden",ref:v})})]})};function au(e){const{message:t,type:n,text:o,actions:r=[],onClose:i}=e;return(0,E.jsxs)("div",{className:"h-full w-full",children:[(0,E.jsxs)("div",{className:jn("flex w-full overflow-auto p-6",{"h-[calc(100%_-_40px)]":0!==r.length,"h-full":!r.length}),children:[(0,E.jsxs)("div",{className:"mr-3",children:[n===uu.ERROR&&(0,E.jsx)(dr.AlertError,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-red-500"}),n===uu.INFO&&(0,E.jsx)(dr.AlertInfo,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-sky-500"}),n===uu.SUCCESS&&(0,E.jsx)(dr.AlertSuccess,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-green-500"}),n===uu.WARNING&&(0,E.jsx)(dr.AlertWarning,{className:"flex-shrink-0 stroke-[0.3px] text-[40px] text-amber-500"})]}),(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"whitespace-break-spaces text-lg",children:t}),(0,E.jsx)("div",{className:"mt-1 whitespace-break-spaces text-neutral-500",children:o})]})]}),0!==r.length&&(0,E.jsx)("div",{className:"flex h-10 items-center justify-end border border-t-neutral-300 px-2",children:r.map(((e,t)=>(0,E.jsx)(Xc,{className:"ml-2 first-of-type:ml-0",onClick:()=>{e.handler(),i?.()},autoFocus:0===t,children:e.label},t)))})]})}const su="`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?";function lu(e){const{editorModel:t,error:n,message:o,text:r}=e,i=(0,Lt.useRef)(null),[a,s]=(0,Lt.useState)();return(0,Lt.useEffect)((()=>{if(!a&&i.current){const e=i.current,n=document.getElementById(Nr),o=Tr.editor.create(e,{contextmenu:!1,copyWithSyntaxHighlighting:!1,fontSize:14,fontFamily:"Roboto Mono",fontLigatures:!0,fixedOverflowWidgets:!0,detectIndentation:!1,tabSize:2,"bracketPairColorization.enabled":!1,automaticLayout:!0,fontSize:12,language:Fc.PURE,theme:vc.GITHUB_LIGHT,wordSeparators:su,fixedOverflowWidgets:!0,...L(n)?{overflowWidgetsDomNode:n}:{},readOnly:!0,renderValidationDecorations:"on"});o.setModel(t),s(o)}}),[a,t]),(0,Lt.useEffect)((()=>{n.sourceInformation&&(Oc(t,[{message:n.message,startLineNumber:n.sourceInformation.startLine,startColumn:n.sourceInformation.startColumn,endLineNumber:n.sourceInformation.endLine,endColumn:n.sourceInformation.endColumn}]),a&&((e,t)=>{e.hasTextFocus()||e.focus(),e.revealPositionInCenter(t,0),e.setPosition(t)})(a,{lineNumber:n.sourceInformation.startLine,column:n.sourceInformation.startColumn}))}),[a,t,n]),(0,Lt.useEffect)((()=>()=>{a&&a.dispose()}),[a]),(0,E.jsxs)("div",{className:"h-full w-full overflow-auto",children:[(0,E.jsxs)("div",{className:"flex w-full p-6 pb-2.5",children:[(0,E.jsx)("div",{className:"mr-3",children:(0,E.jsx)(dr.AlertError,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-red-500"})}),(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"whitespace-break-spaces text-lg",children:o}),(0,E.jsx)("div",{className:"mt-1 whitespace-break-spaces text-neutral-500",children:r})]})]}),(0,E.jsx)("div",{className:"h-60 justify-center border px-2",children:(0,E.jsx)("div",{className:"h-full w-full p-2 pt-1",children:(0,E.jsx)("div",{className:"relative h-full w-full border border-red-500",children:(0,E.jsx)("div",{className:"absolute left-0 top-0 h-full w-full overflow-hidden",ref:i})})})})]})}function cu(e){const{error:t,message:n,text:o,onClose:r}=e,[i,a]=(0,Lt.useState)(!1),s=t.queryCode,l=t.executeInput;let c;return void 0!==l&&void 0!==s?c="Check the execute input and the query code below to debug or report issue":void 0!==s?c="Check the query code below to debug or report issue":void 0!==l&&(c="Check the execute input below to debug or report issue"),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"h-[calc(100%_-_40px)] w-full pt-2",children:(0,E.jsxs)("div",{className:"h-full w-full overflow-auto",children:[(0,E.jsxs)("div",{className:"flex w-full p-6 pb-4",children:[(0,E.jsx)("div",{className:"mr-3",children:(0,E.jsx)(dr.AlertError,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-red-500"})}),(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"whitespace-break-spaces text-lg",children:n}),(0,E.jsx)("div",{className:"mt-1 whitespace-break-spaces text-neutral-500",children:o})]})]}),i&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"h-[1px] w-full bg-neutral-300"}),void 0!==c&&(0,E.jsx)("div",{className:"pl-5 pt-1",children:c}),void 0!==s&&(0,E.jsx)("div",{className:"h-40 justify-center px-4 pt-1",children:(0,E.jsx)("div",{className:"h-full w-full",children:(0,E.jsx)(iu,{value:s,isReadOnly:!0,title:"Query Code",language:Fc.PURE,hidePadding:!0})})}),void 0!==l&&(0,E.jsx)("div",{className:"h-40 justify-center px-4 pt-1",children:(0,E.jsx)("div",{className:"h-full w-full",children:(0,E.jsx)(iu,{value:JSON.stringify(l,null,2),isReadOnly:!0,title:"Execute Input",language:Fc.JSON,hidePadding:!0})})})]})]})}),(0,E.jsxs)("div",{className:"flex h-10 items-center justify-between border border-t-neutral-300 px-2",children:[(0,E.jsx)("div",{className:"flex h-full items-center pl-1",children:(0,E.jsx)(Jc,{label:"Show debug info?",checked:i,onChange:()=>a(!i)})}),(0,E.jsxs)("div",{className:"flex",children:[(0,E.jsx)(Xc,{onClick:r,children:"OK"}),i&&(0,E.jsx)(Xc,{className:"ml-2",onClick:()=>le(`DEBUG__ExecuteInput__${(0,Xn.GP)(new Date(Date.now()),"yyyy-MM-dd'T'HH:mm:ssxxxx")}.json`,JSON.stringify(l,null,2),ee.APPLICATION_JSON),children:"Download Execute Input"})]})]})]})}var uu,du,pu;(pu=uu||(uu={})).ERROR="ERROR",pu.INFO="INFO",pu.SUCCESS="SUCCESS",pu.WARNING="WARNING";class gu{_logService;_layoutService;constructor(e,t){this._logService=e,this._layoutService=t}alert(e){const{message:t,type:n,text:o,actions:r,windowTitle:i,windowConfig:a}=e,s=new gr(new pr(i??"",(()=>(0,E.jsx)(au,{type:n,message:t,text:o,actions:r,onClose:()=>this._layoutService.closeWindow(s)}))));s.configuration.window=a??fr,this._layoutService.newWindow(s)}alertError(e,t){const{message:n,text:o,actions:r,windowTitle:i,windowConfig:a}=t,s=new gr(new pr(i??"Error",(()=>(0,E.jsx)(au,{type:uu.ERROR,message:n,text:o,actions:r}))));s.configuration.window=a??fr,this._layoutService.newWindow(s)}alertUnhandledError(e){this._logService.logUnhandledError(e),this.alertError(e,{message:e.message})}alertCodeCheckError(e,t,n,o){const{message:r,text:a,windowTitle:s,windowConfig:l}=o;if(e.sourceInformation){e.sourceInformation.startColumn-=1===e.sourceInformation.startLine?n.length:0,e.sourceInformation.endColumn-=1===e.sourceInformation.endLine?n.length:0;const o=Tr.editor.createModel(t,Fc.PURE,Tr.Uri.file(`/${(0,i.A)()}.pure`)),c=o.getFullModelRange();(e.sourceInformation.startLine<1||1===e.sourceInformation.startLine&&e.sourceInformation.startColumn<1||e.sourceInformation.endLine>c.endLineNumber||e.sourceInformation.endLine===c.endLineNumber&&e.sourceInformation.endColumn>c.endColumn)&&(e.sourceInformation.startColumn=c.startColumn,e.sourceInformation.startLine=c.startLineNumber,e.sourceInformation.endColumn=c.endColumn,e.sourceInformation.endLine=c.endLineNumber);const u=new gr(new pr(s??"Error",(()=>(0,E.jsx)(lu,{editorModel:o,error:e,message:r,text:a}))));u.configuration.window=l??{width:500,height:400,minWidth:300,minHeight:300,center:!0},this._layoutService.newWindow(u)}}alertExecutionError(e,t){const{message:n,text:o,windowTitle:r,windowConfig:i}=t,a=new gr(new pr(r??"Error",(()=>(0,E.jsx)(cu,{error:e,message:n,text:o,onClose:()=>this._layoutService.closeWindow(a)}))));a.configuration.window=i??{width:600,height:250,minWidth:500,minHeight:200,center:!0},this._layoutService.newWindow(a)}}function mu(){const e=Cl();return Il(yd,vl([e],[e]),vl([e],[Nl(Zr.COUNT,[e])]))}function hu(e){return(t,n,o,r,i)=>{const a=function(e,t){return n=>{const o=t[n];o&&(Array.isArray(o)?o.forEach((t=>e.splice(e.indexOf(t),1))):e.splice(e.indexOf(o),1),t[n]=void 0)}}(n,o),s=t.data;if(o.groupBy){const l=P(s.groupBy);e.groupKeys.length&&n.splice(n.indexOf(o.groupBy),0,Nl(Zr.FILTER,[vl([Cl()],[jl({conditions:e.groupKeys.map(((e,t)=>{const n=P(l.columns[t]);if(O(e)||e===Td)return{...n,operator:ci.IS_NULL,value:{type:ai.VOID}};const o={...n,operator:ci.EQUAL};switch(n.type){case Hr.BOOLEAN:return{...o,value:{type:Hr.BOOLEAN,value:"true"===e}};case Hr.INTEGER:return{...o,value:{type:n.type,value:parseInt(e,10)}};case Hr.NUMBER:case Hr.DECIMAL:case Hr.FLOAT:return{...o,value:{type:n.type,value:parseFloat(e)}};case Hr.STRING:case Hr.DATE:case Hr.DATETIME:case Hr.STRICTDATE:case Hr.STRICTTIME:default:return{...o,value:{type:n.type,value:e}}}})),groupOperator:ui.AND},i.filterOperations)])]));const c=[];if(function(e,t){if(e.pivot&&e.pivotCast){Xl(e.pivot,1).colSpecs.push(mu());const n=D(D(D(e.pivotCast.parameters[0],Qa).genericType.typeArguments[0],Za).rawType,ns),o=n.columns.map((e=>Il(e.name,void 0,void 0,os(e.genericType))));(0,Te.A)(o.filter((e=>Gi(e.name))).map((e=>e.name.substring(0,e.name.lastIndexOf(mi))))).map((e=>e+mi+yd)).forEach((e=>{n.columns.push(ss(e,Hr.INTEGER)),t.push(Il(e,void 0,void 0,Hr.INTEGER))}))}}(o,c),e.groupKeys.length<l.columns.length){const a=n.indexOf(o.groupBy),s=l.columns.slice(0,e.groupKeys.length+1),u=Nl(Zr.GROUP_BY,[Ol(s.map((e=>Il(e.name)))),Ol([...Dl(s,t,r,i.aggregateOperations),...c.length?c.map((e=>function(e){const t=Cl();return Il(e,vl([t],[bl(e)]),vl([t],[Nl(Zr.SUM,[t])]))}(e.name))):[mu()]])]);n[a]=u,o.groupBy=u,P(o.groupBySort).parameters[0]=Sl(s.map((e=>Nl(r.treeColumnSortDirection===di.ASCENDING?Zr.ASCENDING:Zr.DESCENDING,[Rl(e.name)]))))}else a("groupBy"),a("groupBySort")}}}!function(e){e.EDITOR__MAX_HISTORY_STACK_SIZE="dataCube.editor.maxHistoryStackSize",e.DEBUGGER__ENABLE_DEBUG_MODE="dataCube.debugger.enableDebugMode",e.DEBUGGER__USE_DEV_CLIENT_PROTOCOL_VERSION="dataCube.debugger.useDevClientProtocolVersion",e.DEBUGGER__ACTION__RELOAD="dataCube.debugger.action.reload",e.GRID_CLIENT__ROW_BUFFER="dataCube.grid.rowBuffer",e.GRID_CLIENT__PURGE_CLOSED_ROW_NODES="dataCube.grid.purgeClosedRowNodes",e.GRID_CLIENT__SHOW_AUTO_ENABLE_CACHE_PERFORMANCE_WARNING="dataCube.grid.showAutoEnableCachePerformanceWarning",e.GRID_CLIENT__SHOW_CACHE_PERFORMANCE_WARNING="dataCube.grid.showCachePerformanceWarning",e.GRID_CLIENT__SUPPRESS_LARGE_DATASET_WARNING="dataCube.grid.suppressLargeDatasetWarning",e.GRID_CLIENT__ACTION__RETRY_FAILED_DATA_FETCHES="dataCube.grid.action.retryFailedDataFetches"}(du||(du={}));class fu{_finalizeAggregateColumnSnapshot(e){if(!e)return;const{column:t,paramterValues:n}=e;return this.isCompatibleWithColumn(t)&&this.isCompatibleWithParameterValues(n)?{...t,operator:this.operator,parameterValues:n}:void 0}}class Eu extends fu{get label(){return"sum"}get textLabel(){return"sum"}get description(){return"sum"}get operator(){return si.SUM}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.SUM,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.SUM)}}class Cu extends fu{get label(){return"avg"}get textLabel(){return"average"}get description(){return"average"}get operator(){return si.AVERAGE}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.AVERAGE,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.AVERAGE)}}class bu extends fu{get label(){return"count"}get textLabel(){return"count"}get description(){return"count"}get operator(){return si.COUNT}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.COUNT,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.COUNT)}}class vu extends fu{get label(){return"min"}get textLabel(){return"min"}get description(){return"min"}get operator(){return si.MIN}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.MIN,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.MIN)}}class _u extends fu{get label(){return"max"}get textLabel(){return"max"}get description(){return"max"}get operator(){return si.MAX}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.MAX,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.MAX)}}class Tu extends fu{get label(){return"uniq"}get textLabel(){return"unique value"}get description(){return"unique value"}get operator(){return si.UNIQUE}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.UNIQUE_VALUE_ONLY,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.UNIQUE_VALUE_ONLY)}}class Nu extends fu{get label(){return"first"}get textLabel(){return"first"}get description(){return"first"}get operator(){return si.FIRST}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.FIRST,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.FIRST)}}class Su extends fu{get label(){return"last"}get textLabel(){return"last"}get description(){return"last"}get operator(){return si.LAST}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.LAST,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.LAST)}}class Au extends fu{get label(){return"var"}get textLabel(){return"variance (population)"}get description(){return"variance (population)"}get operator(){return si.VARIANCE_POPULATION}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.VARIANCE_POPULATION,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.VARIANCE_POPULATION)}}class yu extends fu{get label(){return"var (sample)"}get textLabel(){return"variance (sample)"}get description(){return"variance (sample)"}get operator(){return si.VARIANCE_SAMPLE}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.VARIANCE_SAMPLE,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.VARIANCE_SAMPLE)}}class xu extends fu{get label(){return"std"}get textLabel(){return"standard deviation (population)"}get description(){return"standard deviation (population)"}get operator(){return si.STANDARD_DEVIATION_POPULATION}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.STANDARD_DEVIATION_POPULATION,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.STANDARD_DEVIATION_POPULATION)}}class Iu extends fu{get label(){return"std (sample)"}get textLabel(){return"standard deviation (sample)"}get description(){return"standard deviation (sample)"}get operator(){return si.STANDARD_DEVIATION_SAMPLE}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.STANDARD_DEVIATION_SAMPLE,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.STANDARD_DEVIATION_SAMPLE)}}class wu extends fu{get label(){return"strjoin"}get textLabel(){return"join strings"}get description(){return"join strings"}get operator(){return si.JOIN_STRINGS}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithParameterValues(e){return 1===e.length&&void 0!==e[0]&&Mi(e[0].type,[gi.TEXT])&&!Array.isArray(e[0].value)&&U(e[0].value)}generateDefaultParameterValues(e){return[{type:Hr.STRING,value:""}]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.JOIN_STRINGS,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.JOIN_STRINGS,e.aggregationParameters)}}class ku{_finalizeConditionSnapshot(e){if(!e)return;const{column:t,value:n}=e;return this.isCompatibleWithColumn(t)&&this.isCompatibleWithValue(n)?{...t,operator:this.operator,value:n}:void 0}}class Ru extends ku{get label(){return"="}get textLabel(){return"="}get description(){return"equals"}get operator(){return ci.EQUAL}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.EQUAL,t))}buildConditionExpression(e){return Nl(Tl(Zr.EQUAL),[bl(e.name),wl(e.value)])}}class Ou extends ku{get label(){return"<="}get textLabel(){return"<="}get description(){return"is less than or equals"}get operator(){return ci.LESS_THAN_OR_EQUAL}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.LESS_THAN_OR_EQUAL,t))}buildConditionExpression(e){return Nl(Tl(Zr.LESS_THAN_OR_EQUAL),[bl(e.name),wl(e.value)])}}class Lu extends ku{get label(){return"<"}get textLabel(){return"<"}get description(){return"is less than"}get operator(){return ci.LESS_THAN}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.LESS_THAN,t))}buildConditionExpression(e){return Nl(Tl(Zr.LESS_THAN),[bl(e.name),wl(e.value)])}}class Fu extends ku{get label(){return">="}get textLabel(){return">="}get description(){return"is greater than or equals"}get operator(){return ci.GREATER_THAN_OR_EQUAL}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.GREATER_THAN_OR_EQUAL,t))}buildConditionExpression(e){return Nl(Tl(Zr.GREATER_THAN_OR_EQUAL),[bl(e.name),wl(e.value)])}}class Pu extends ku{get label(){return">"}get textLabel(){return">"}get description(){return"is greater than"}get operator(){return ci.GREATER_THAN}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.GREATER_THAN,t))}buildConditionExpression(e){return Nl(Tl(Zr.GREATER_THAN),[bl(e.name),wl(e.value)])}}class Bu extends ku{get label(){return"!="}get textLabel(){return"!="}get description(){return"does not equal"}get operator(){return ci.NOT_EQUAL}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(k((()=>nc(e))),Zr.EQUAL,t))}buildConditionExpression(e){return kl(Nl(Tl(Zr.EQUAL),[bl(e.name),wl(e.value)]))}}class Du extends ku{get label(){return"= value in column"}get textLabel(){return"= value in column"}get description(){return"equals to value in column"}get operator(){return ci.EQUAL_COLUMN}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&e.type===ai.COLUMN&&U(e.value)}generateDefaultValue(e){return{type:ai.COLUMN,value:e.name}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.EQUAL,t))}buildConditionExpression(e){return Nl(Tl(Zr.EQUAL),[bl(e.name),wl(e.value)])}}class ju extends ku{get label(){return"= (case-insensitive)"}get textLabel(){return"= (case-insensitive)"}get description(){return"equals (case-insensitive)"}get operator(){return ci.EQUAL_CASE_INSENSITIVE}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(ic(e,Zr.EQUAL,t))}buildConditionExpression(e){return Nl(Tl(Zr.EQUAL),[Nl(Tl(Zr.TO_LOWERCASE),[bl(e.name)]),Nl(Tl(Zr.TO_LOWERCASE),[wl(e.value)])])}}class Mu extends ku{get label(){return"!= (case-insensitive)"}get textLabel(){return"!= (case-insensitive)"}get description(){return"does not equal (case-insensitive)"}get operator(){return ci.NOT_EQUAL_CASE_INSENSITIVE}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(ic(k((()=>nc(e))),Zr.EQUAL,t))}buildConditionExpression(e){return kl(Nl(Tl(Zr.EQUAL),[Nl(Tl(Zr.TO_LOWERCASE),[bl(e.name)]),Nl(Tl(Zr.TO_LOWERCASE),[wl(e.value)])]))}}class Uu extends ku{get label(){return"= (case-insensitive) value in column"}get textLabel(){return"= (case-insensitive) value in column"}get description(){return"equals to (case-insensitive) value in column"}get operator(){return ci.EQUAL_CASE_INSENSITIVE_COLUMN}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&e.type===ai.COLUMN&&U(e.value)}generateDefaultValue(e){return{type:ai.COLUMN,value:e.name}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(ic(e,Zr.EQUAL,t))}buildConditionExpression(e){return Nl(Tl(Zr.EQUAL),[Nl(Tl(Zr.TO_LOWERCASE),[bl(e.name)]),Nl(Tl(Zr.TO_LOWERCASE),[wl(e.value)])])}}class Gu extends ku{get label(){return"!= (case-insensitive) value in column"}get textLabel(){return"!= (case-insensitive) value in column"}get description(){return"does not equal (case-insensitive) value in column"}get operator(){return ci.NOT_EQUAL_CASE_INSENSITIVE_COLUMN}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&e.type===ai.COLUMN&&U(e.value)}generateDefaultValue(e){return{type:ai.COLUMN,value:e.name}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(ic(k((()=>nc(e))),Zr.EQUAL,t))}buildConditionExpression(e){return kl(Nl(Tl(Zr.EQUAL),[Nl(Tl(Zr.TO_LOWERCASE),[bl(e.name)]),Nl(Tl(Zr.TO_LOWERCASE),[wl(e.value)])]))}}class Vu extends ku{get label(){return"!= value in column"}get textLabel(){return"!= value in column"}get description(){return"does not equal value in column"}get operator(){return ci.NOT_EQUAL_COLUMN}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&e.type===ai.COLUMN&&U(e.value)}generateDefaultValue(e){return{type:ai.COLUMN,value:e.name}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(k((()=>nc(e))),Zr.EQUAL,t))}buildConditionExpression(e){return kl(Nl(Tl(Zr.EQUAL),[bl(e.name),wl(e.value)]))}}class Hu extends ku{get label(){return"< value in column"}get textLabel(){return"< value in column"}get description(){return"is less than value in column"}get operator(){return ci.LESS_THAN_COLUMN}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&e.type===ai.COLUMN&&U(e.value)}generateDefaultValue(e){return{type:ai.COLUMN,value:e.name}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.LESS_THAN,t))}buildConditionExpression(e){return Nl(Tl(Zr.LESS_THAN),[bl(e.name),wl(e.value)])}}class Wu extends ku{get label(){return"<= value in column"}get textLabel(){return"<= value in column"}get description(){return"is less than or equals value in column"}get operator(){return ci.LESS_THAN_OR_EQUAL_COLUMN}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&e.type===ai.COLUMN&&U(e.value)}generateDefaultValue(e){return{type:ai.COLUMN,value:e.name}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.LESS_THAN_OR_EQUAL,t))}buildConditionExpression(e){return Nl(Tl(Zr.LESS_THAN_OR_EQUAL),[bl(e.name),wl(e.value)])}}class $u extends ku{get label(){return"> value in column"}get textLabel(){return"> value in column"}get description(){return"is greater than value in column"}get operator(){return ci.GREATER_THAN_COLUMN}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&e.type===ai.COLUMN&&U(e.value)}generateDefaultValue(e){return{type:ai.COLUMN,value:e.name}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.GREATER_THAN,t))}buildConditionExpression(e){return Nl(Tl(Zr.GREATER_THAN),[bl(e.name),wl(e.value)])}}class zu extends ku{get label(){return">= value in column"}get textLabel(){return">= value in column"}get description(){return"is greater than or equals value in column"}get operator(){return ci.GREATER_THAN_OR_EQUAL_COLUMN}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&e.type===ai.COLUMN&&U(e.value)}generateDefaultValue(e){return{type:ai.COLUMN,value:e.name}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.GREATER_THAN_OR_EQUAL,t))}buildConditionExpression(e){return Nl(Tl(Zr.GREATER_THAN_OR_EQUAL),[bl(e.name),wl(e.value)])}}class Yu extends ku{get label(){return"contains"}get textLabel(){return"contains"}get description(){return"contains"}get operator(){return ci.CONTAIN}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.CONTAINS,t))}buildConditionExpression(e){return Nl(Tl(Zr.CONTAINS),[bl(e.name),wl(e.value)])}}class Xu extends ku{get label(){return"contains (case-insensitive)"}get textLabel(){return"contains (case-insensitive)"}get description(){return"contains (case-insensitive)"}get operator(){return ci.CONTAIN_CASE_INSENSITIVE}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(ic(e,Zr.CONTAINS,t))}buildConditionExpression(e){return Nl(Tl(Zr.CONTAINS),[Nl(Tl(Zr.TO_LOWERCASE),[bl(e.name)]),Nl(Tl(Zr.TO_LOWERCASE),[wl(e.value)])])}}class Ku extends ku{get label(){return"does not contain"}get textLabel(){return"!contains"}get description(){return"does not contain"}get operator(){return ci.NOT_CONTAIN}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(k((()=>nc(e))),Zr.CONTAINS,t))}buildConditionExpression(e){return kl(Nl(Tl(Zr.CONTAINS),[bl(e.name),wl(e.value)]))}}class qu extends ku{get label(){return"starts with"}get textLabel(){return"startsWith"}get description(){return"starts with"}get operator(){return ci.START_WITH}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.STARTS_WITH,t))}buildConditionExpression(e){return Nl(Tl(Zr.STARTS_WITH),[bl(e.name),wl(e.value)])}}class Ju extends ku{get label(){return"starts with (case-insensitive)"}get textLabel(){return"startsWith (case-insensitive)"}get description(){return"starts with (case-insensitive)"}get operator(){return ci.START_WITH_CASE_INSENSITIVE}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(ic(e,Zr.STARTS_WITH,t))}buildConditionExpression(e){return Nl(Tl(Zr.STARTS_WITH),[Nl(Tl(Zr.TO_LOWERCASE),[bl(e.name)]),Nl(Tl(Zr.TO_LOWERCASE),[wl(e.value)])])}}class Qu extends ku{get label(){return"doest not start with"}get textLabel(){return"!startsWith"}get description(){return"does not start with"}get operator(){return ci.NOT_START_WITH}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(k((()=>nc(e))),Zr.STARTS_WITH,t))}buildConditionExpression(e){return kl(Nl(Tl(Zr.STARTS_WITH),[bl(e.name),wl(e.value)]))}}class Zu extends ku{get label(){return"ends with"}get textLabel(){return"!endsWith"}get description(){return"ends with"}get operator(){return ci.END_WITH}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.ENDS_WITH,t))}buildConditionExpression(e){return Nl(Tl(Zr.ENDS_WITH),[bl(e.name),wl(e.value)])}}class ed extends ku{get label(){return"ends with (case-insensitive)"}get textLabel(){return"endsWith (case-insensitive)"}get description(){return"ends with (case-insensitive)"}get operator(){return ci.END_WITH_CASE_INSENSITIVE}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(ic(e,Zr.ENDS_WITH,t))}buildConditionExpression(e){return Nl(Tl(Zr.ENDS_WITH),[Nl(Tl(Zr.TO_LOWERCASE),[bl(e.name)]),Nl(Tl(Zr.TO_LOWERCASE),[wl(e.value)])])}}class td extends ku{get label(){return"does not end with"}get textLabel(){return"!endsWith"}get description(){return"does not end with"}get operator(){return ci.NOT_END_WITH}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(k((()=>nc(e))),Zr.ENDS_WITH,t))}buildConditionExpression(e){return kl(Nl(Tl(Zr.ENDS_WITH),[bl(e.name),wl(e.value)]))}}class nd extends ku{get label(){return"is null"}get textLabel(){return"= NULL"}get description(){return"is NULL"}get operator(){return ci.IS_NULL}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0===e.value&&e.type===ai.VOID}generateDefaultValue(e){return{type:ai.VOID}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.IS_EMPTY,t))}buildConditionExpression(e){return Nl(Tl(Zr.IS_EMPTY),[bl(e.name)])}}class od extends ku{get label(){return"is not null"}get textLabel(){return"!= NULL"}get description(){return"is not NULL"}get operator(){return ci.IS_NOT_NULL}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0===e.value&&e.type===ai.VOID}generateDefaultValue(e){return{type:ai.VOID}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(k((()=>nc(e))),Zr.IS_EMPTY,t))}buildConditionExpression(e){return kl(Nl(Tl(Zr.IS_EMPTY),[bl(e.name)]))}}class rd{uuid=(0,i.A)();data;_isPatchChange=!1;_finalized=!1;_hashCode;constructor(e){this.data={configuration:e,sourceColumns:[],leafExtendedColumns:[],selectColumns:[],filter:void 0,groupBy:void 0,pivot:void 0,groupExtendedColumns:[],sortColumns:[],limit:void 0}}static create(e){return new rd(e)}markAsPatchChange(){this._isPatchChange=!0}isPatchChange(){return this._isPatchChange}isFinalized(){return this._finalized}finalize(){return this._finalized||(this._hashCode=Fr(T(this.data)),this._finalized=!0),this}get hashCode(){if(!this._finalized||!this._hashCode)throw new x("Snapshot is not finalized");return this._hashCode}clone(){const e=new rd({});return e.data=JSON.parse(JSON.stringify(this.data)),e}INTERNAL__fullClone(){const e=new rd({});return e.uuid=this.uuid,e.data=JSON.parse(JSON.stringify(this.data)),e._isPatchChange=this._isPatchChange,e._finalized=this._finalized,e._hashCode=this._hashCode,e}serialize(){const e=this.clone();return{uuid:e.uuid,data:e.data,_isPatchChange:e._isPatchChange,_finalized:e._finalized,_hashCode:e._hashCode}}}class id{autoEnableCache;static serialization=new ge((0,pe.PL)(id,{autoEnableCache:(0,pe.lq)((0,pe.MY)())}))}class ad{query;configuration;source;options;static serialization=new ge((0,pe.PL)(ad,{configuration:me(Xi.serialization.schema),options:(0,pe.lq)(me(id.serialization.schema)),query:(0,pe.MY)(),source:(0,pe.lS)()}))}function sd(e,t){const{name:n,type:o}=e,r=new zi(n,o);switch(o){case Hr.NUMBER:case Hr.INTEGER:case Hr.DECIMAL:case Hr.FLOAT:r.kind=ii.MEASURE,r.decimals=o===Hr.INTEGER?0:2,r.displayCommas=!0,r.negativeNumberInParens=!0,r.textAlign=ni.RIGHT,r.excludedFromPivot=!1,r.aggregateOperator=si.SUM,r.pivotStatisticColumnFunction=si.SUM;break;default:r.kind=ii.DIMENSION,r.excludedFromPivot=!0,r.aggregateOperator=si.UNIQUE}if(t){const{snapshot:e,groupByAggColumns:o,pivotAggColumns:i,pivotSortColumns:a}=t,s=e.data;if(r.isSelected=Boolean(Hi(s.groupExtendedColumns,n)??Hi(s.selectColumns,n)),s.groupBy??s.pivot){const e=Hi(o,n),t=Hi(i,n);(Hi(s.pivot?.columns??[],n)??Hi(s.groupBy?.columns??[],n))&&(r.kind=ii.DIMENSION,r.excludedFromPivot=!0);const l=e??t;if(l&&(r.aggregateOperator=l.operator,r.aggregationParameters=l.parameterValues),s.pivot&&(r.excludedFromPivot=!t),s.pivot){const e=Hi(a,n);e&&(r.pivotSortDirection=e.direction)}}}return r}function ld(e){const{snapshot:t,groupBySortColumns:n}=e,o=t.data,r=new Xi,i=[...o.selectColumns,...o.groupExtendedColumns,...[...o.sourceColumns,...o.leafExtendedColumns].filter((e=>!Hi(o.selectColumns,e.name)))];return r.columns=i.map((t=>sd(t,e))),n?.length&&(r.treeColumnSortDirection=N(n,0).direction),r}class cd extends Error{executeInput;queryCode}class ud{filterOperations=[new Lu,new Ou,new Ru,new Bu,new Fu,new Pu,new nd,new od,new ju,new Mu,new Yu,new Xu,new Ku,new qu,new Ju,new Qu,new Zu,new ed,new td,new Hu,new Wu,new Du,new Vu,new Uu,new Gu,new $u,new zu];aggregateOperations=[new Eu,new Cu,new bu,new vu,new _u,new Tu,new Nu,new Su,new Au,new yu,new xu,new Iu,new wu];getFilterOperation(e){return t=e,n=this.filterOperations,P(n.find((e=>e.operator===t)),`Can't find filter operation '${t}'`);var t,n}getAggregateOperation(e){return Di(e,this.aggregateOperations)}deserializeValueSpecification(e){return fl(e,[])}serializeValueSpecification(e){return El(e,[])}async getPartialQueryCode(e,t){const n=new Hl;return n.query=Al(Hr.STRING,""),(await this.getValueSpecificationCode(Ml(e,n,this,{skipExecutionContext:!0}),t)).substring(4)}async generateBaseSpecification(e){const t=await this.processSource(e),n=new ad;var o;n.source=e,n.query=await this.getValueSpecificationCode((o=t.columns,Nl(Zr.SELECT,[Ol(o.map((e=>Il(e.name))))])));const r=rd.create({});r.data.sourceColumns=t.columns.map(Wi),r.data.selectColumns=t.columns.map(Wi);const i=ld({snapshot:r});return n.configuration=i,n}async initializeCache(e,t){}async disposeCache(e){}logDebug(e,...t){}debugProcess(e,...t){}logInfo(e,...t){}logWarning(e,...t){}logError(e,...t){}logUnhandledError(e){}logIllegalStateError(e,t){}getDocumentationEntry(e){}openLink(e){}sendTelemetry(e,t){}}var dd,pd,gd=n(19994);!function(e){e.CSV="CSV",e.EXCEL="EXCEL",e.PLAIN_TEXT="PLAIN_TEXT",e.HTML="HTML",e.PDF="PDF"}(dd||(dd={})),function(e){e.ROOT="data-cube-grid.ag-theme-quartz",e.HIGHLIGHT_ROW="data-cube-grid__utility--highlight-row",e.SHOW_VERTICAL_GRID_LINES="data-cube-grid__utility--show-vertical-grid-lines",e.SHOW_HORIZONTAL_GRID_LINES="data-cube-grid__utility--show-horizontal-grid-lines",e.BLUR="data-cube-grid__utility--blur",e.FONT_FAMILY_PREFIX="data-cube-grid__utility--font-family-",e.FONT_SIZE_PREFIX="data-cube-grid__utility--font-size-",e.FONT_BOLD="data-cube-grid__utility--font-style-bold",e.FONT_ITALIC="data-cube-grid__utility--font-style-italic",e.FONT_UNDERLINE_PREFIX="data-cube-grid__utility--font-style-underline-",e.FONT_STRIKETHROUGH="data-cube-grid__utility--font-style-strikethrough",e.FONT_CASE_PREFIX="data-cube-grid__utility--font-style-case-",e.TEXT_ALIGN_PREFIX="data-cube-grid__utility--text-align-",e.TEXT_COLOR_PREFIX="data-cube-grid__utility--text-color-",e.BACKGROUND_COLOR_PREFIX="data-cube-grid__utility--background-color-",e.PIVOT_COLUMN_GROUP="data-cube-grid__utility--pivot-column-group",e.PIVOT_COLUMN_GROUP_PREFIX="data-cube-grid__utility--pivot-column-group-"}(pd||(pd={}));const md=e=>`${pd.FONT_FAMILY_PREFIX}${e.replaceAll(" ","-")}`,hd=e=>`${pd.FONT_SIZE_PREFIX}${e}`,fd=e=>`${pd.FONT_UNDERLINE_PREFIX}${e??"none"}`,Ed=e=>`${pd.FONT_CASE_PREFIX}${e??"none"}`,Cd=e=>`${pd.TEXT_ALIGN_PREFIX}${e}`,bd=(e,t)=>`${pd.TEXT_COLOR_PREFIX}${t}-${e.substring(1)}`,vd=(e,t)=>`${pd.BACKGROUND_COLOR_PREFIX}${t}-${e.substring(1)}`,_d=1e3,Td="__MISSING",Nd="ag-Grid-AutoColumn",Sd="INTERNAL__rootAggregation",Ad="INTERNAL__dataFetchManualTrigger",yd="count";var xd,Id;function wd(e){const t=[];return e.forEachNode((e=>{e.data&&t.push(e.data)})),t}function kd(e){const t=[];return e.forEachNodeAfterFilter((e=>{e.data&&t.push(e.data)})),t}function Rd(e,t){return Fr(T({configuration:{showRootAggregation:t.showRootAggregation,pivotStatisticColumnPlacement:t.pivotStatisticColumnPlacement,treeColumnSortDirection:t.treeColumnSortDirection,columns:t.columns.map((e=>({name:e.name,type:e.type,kind:e.kind,aggregateOperator:e.aggregateOperator,aggregationParameters:e.aggregationParameters,excludedFromPivot:e.excludedFromPivot,pivotSortDirection:e.pivotSortDirection,pivotStatisticColumnFunction:e.pivotStatisticColumnFunction}))).sort($i)},leafExtendedColumns:e.data.leafExtendedColumns,filter:e.data.filter,selectColumns:e.data.selectColumns.toSorted($i),groupExtendedColumns:e.data.groupExtendedColumns,limit:e.data.limit}))}!function(e){e.LEFT="left",e.RIGHT="right"}(xd||(xd={})),function(e){e.ASCENDING="asc",e.DESCENDING="desc"}(Id||(Id={}));class Od{_view;_grid;rowCount=void 0;constructor(e,t){(0,xe.Gn)(this,{rowCount:xe.sH}),this._grid=e,this._view=t}async fetchRows(e){const t=this._view.taskService.newTask("Fetching data..."),n=P(this._grid.getLatestSnapshot()),o={startRow:e.request.startRow,endRow:e.request.endRow,rowGroupColumns:e.request.rowGroupCols.map((e=>e.id)),groupKeys:e.request.groupKeys.map((e=>e)),pivotColumns:e.request.pivotCols.map((e=>e.id)),sortColumns:e.request.sortModel.map((e=>({name:e.colId,direction:e.sort})))},r=0===o.groupKeys.length;let i=n;if(r){if(i=function(e,t){const n=t.clone(),o=Xi.serialization.fromJson(n.data.configuration),r=e.rowGroupColumns.filter((e=>e!==Sd));return n.data.selectColumns=(0,tt.A)([...n.data.selectColumns,...e.pivotColumns.map((e=>cc(e,o))),...r.map((e=>cc(e,o)))],(e=>e.name)).map(Wi),n.data.pivot=e.pivotColumns.length?{columns:e.pivotColumns.map((e=>Wi(cc(e,o)))),castColumns:t.data.pivot?.castColumns??[]}:void 0,n.data.groupBy=r.length?{columns:r.map((e=>Wi(cc(e,o))))}:void 0,n.data.sortColumns=e.sortColumns.filter((e=>![Nd,Sd].includes(e.name))).map((e=>({name:e.name,type:cc(Gi(e.name)?Vi(e.name):e.name,o).type,direction:e.direction===Id.ASCENDING?di.ASCENDING:di.DESCENDING}))),o.pivotLayout.expandedPaths=Zl(t.data.groupBy?.columns??[],n.data.groupBy?.columns??[],o.pivotLayout.expandedPaths),!e.rowGroupColumns.includes(Sd)&&o.showRootAggregation&&(o.showRootAggregation=!1),n.data.configuration=o.serialize(),n}(o,n),(!this._grid.isPaginationEnabled||0===o.startRow)&&i.data.pivot)try{const e=await async function(e,t){if(!e.data.pivot)throw new x("Can't build cast columns collector query when no pivot is specified");const n=e.clone();P(n.data.pivot).castColumns=[],n.data.groupBy=void 0,n.data.groupExtendedColumns=[],n.data.sortColumns=[],n.data.limit=0;const o=Ml(n,t.source,t.engine);return(await t.engine.executeQuery(vl([],[o]),t.source,{debug:t.settingService.getBooleanValue(du.DEBUGGER__ENABLE_DEBUG_MODE),clientVersion:t.settingService.getBooleanValue(du.DEBUGGER__USE_DEV_CLIENT_PROTOCOL_VERSION)?Ul.VX_X_X:void 0})).result.builder.columns.map((e=>{const t=e.type;return{name:e.name,type:t===Hr.DECIMAL?Hr.FLOAT:t}}))}(i,this._view);i.data.pivot.castColumns=e,i.data.sortColumns=i.data.sortColumns.filter((t=>Hi([...e,...i.data.groupExtendedColumns],t.name)))}catch(n){return w(n),n instanceof cd?this._view.alertService.alertExecutionError(n,{message:"Query Validation Failure: Can't retrieve pivot results column metadata.",text:`Error: ${n.message}`}):this._view.alertService.alertError(n,{message:`Query Validation Failure: Can't retrieve pivot results column metadata. ${n.message}`}),e.fail(),void this._view.taskService.endTask(t)}i.finalize(),i.hashCode!==n.hashCode&&(i.markAsPatchChange(),await this._grid.applySnapshot(i,n),this._grid.publishSnapshot(i))}const a=function(e,t,n,o,r){const i=t.clone();return Xi.serialization.fromJson(i.data.configuration).showRootAggregation&&(i.data.groupBy={columns:[{name:Sd,type:Hr.STRING},...i.data.groupBy?.columns??[]]}),Ml(i,n,o,{postProcessor:hu(e),rootAggregation:{columnName:Sd},pagination:r&&void 0!==e.startRow&&void 0!==e.endRow?{start:e.startRow,end:e.endRow}:void 0})}(o,i,this._view.source,this._view.engine,this._grid.isPaginationEnabled);let s,l;try{s=await this._view.engine.executeQuery(vl([],[a]),this._view.source,{debug:this._view.settingService.getBooleanValue(du.DEBUGGER__ENABLE_DEBUG_MODE),clientVersion:this._view.settingService.getBooleanValue(du.DEBUGGER__USE_DEV_CLIENT_PROTOCOL_VERSION)?Ul.VX_X_X:void 0}),l=function(e,t){return e.rows.map(((n,o)=>{const r={},i=e.columns;return n.values.forEach(((n,o)=>{r[i[o]]=V(n)?String(n):L(n)?n:Td,t.data.pivot&&t.data.groupBy&&(r[yd]=Number((0,gd.czq)(e.columns.filter((e=>Gi(e)&&e.endsWith(yd))).map((e=>r[e]??0))).toString()))})),r}))}(s.result.result,i)}catch(n){return w(n),n instanceof cd?this._view.alertService.alertExecutionError(n,{message:"Data Fetch Failure: Can't execute query.",text:`Error: ${n.message}`}):this._view.alertService.alertError(n,{message:`Data Fetch Failure: ${n.message}`}),this._view.taskService.endTask(t),void e.fail()}this._view.settingService.getBooleanValue(du.DEBUGGER__ENABLE_DEBUG_MODE)&&this._view.engine.debugProcess("Execution",["Query",s.executedQuery],["Stats",`${l.length} rows, ${s.result.result.columns.length} columns`],["SQL",s.executedSQL],["SQL Execution Time",s.executionTime]),this._grid.isPaginationEnabled?(e.success({rowData:l}),r&&(0,xe.h5)((()=>{this.rowCount=(o.startRow??0)+l.length})),r&&0===o.startRow&&0===l.length?this._grid.client.showNoRowsOverlay():this._grid.client.hideOverlay()):(l.length>_d&&(this._view.settingService.getBooleanValue(du.GRID_CLIENT__SUPPRESS_LARGE_DATASET_WARNING)||this._view.alertService.alert({message:"Large dataset (>1000 rows) detected!",text:"Overall app performance can be impacted by large dataset due to longer query execution time and increased memory usage. At its limit, the engine can crash!\nTo boost performance, consider enabling pagination while working with large dataset.",type:uu.WARNING,actions:[{label:"Enable Pagination",handler:()=>{this._grid.setPaginationEnabled(!0)}},{label:"Dismiss Warning",handler:()=>{this._view.settingService.updateValue(this._view.dataCube.api,du.GRID_CLIENT__SUPPRESS_LARGE_DATASET_WARNING,!0)}}],windowConfig:{...fr,width:600,minWidth:300,minHeight:150}}),e.api.ensureIndexVisible(e.parentNode.rowIndex??0,"top")),e.success({rowData:l,rowCount:l.length}),r&&(0,xe.h5)((()=>{this.rowCount=l.length})),r&&0===l.length?this._grid.client.showNoRowsOverlay():this._grid.client.hideOverlay()),setTimeout((()=>{this._grid.client.autoSizeAllColumns()}),0),this._view.taskService.endTask(t)}getRows(e){this.fetchRows(e).catch((e=>{w(e),this._view.logService.logIllegalStateError("Error ocurred while fetching data for grid should have been handled gracefully",e)}))}}function Ld(e,t){switch(t){case ei.PERCENT:return{value:100*e,unit:"%"};case ei.BASIS_POINT:return{value:1e4*e,unit:"bp"};case ei.THOUSANDS:return{value:e/1e3,unit:"k"};case ei.MILLIONS:return{value:e/1e6,unit:"m"};case ei.BILLIONS:return{value:e/1e9,unit:"b"};case ei.TRILLIONS:return{value:e/1e12,unit:"t"};case ei.AUTO:return Ld(e,e>=1e12?ei.TRILLIONS:e>=1e9?ei.BILLIONS:e>=1e6?ei.MILLIONS:e>=1e3?ei.THOUSANDS:void 0);default:return{value:e,unit:void 0}}}function Fd(e){return e.node.failedLoad?(0,E.jsx)("span",{className:"inline-flex items-center",children:"#ERR"}):(0,E.jsxs)("span",{className:"inline-flex items-center",children:[(0,E.jsx)(dr.Loader,{className:"mr-1 animate-spin stroke-2"}),"Loading"]})}function Pd(e){const{column:t}=e;return ji(t.type)===gi.TEXT&&t.displayAsLink?function(e){var n;if(n=e.value,!Boolean(k((()=>new URL(n)))))return e.value;const o=e.value,r=ue(t.linkLabelParameter??vi,ce(o,!0));return(0,E.jsx)("a",{href:o,target:"_blank",rel:"noreferrer",className:"text-blue-600 underline",children:r??o})}:null}function Bd(e){const{name:t,snapshot:n,column:o,configuration:r}=e,i=ji(o.type),a=o.fontFamily??r.fontFamily,s=o.fontSize??r.fontSize,l=o.fontBold??r.fontBold,c=o.fontItalic??r.fontItalic,u=o.fontStrikethrough??r.fontStrikethrough,d=o.fontUnderline??r.fontUnderline,p=o.fontCase??r.fontCase,g=o.textAlign??r.textAlign,m=o.normalForegroundColor??r.normalForegroundColor,h=o.normalBackgroundColor??r.normalBackgroundColor,f=o.negativeForegroundColor??r.negativeForegroundColor,E=o.negativeBackgroundColor??r.negativeBackgroundColor,C=o.zeroForegroundColor??r.zeroForegroundColor,b=o.zeroBackgroundColor??r.zeroBackgroundColor,v=o.errorForegroundColor??r.errorForegroundColor,_=o.errorBackgroundColor??r.errorBackgroundColor;return{cellDataType:!1,hide:o.hideFromView||!o.isSelected||Boolean(n.data.pivot&&!Hi(n.data.pivot.castColumns,t))&&!Hi(n.data.groupExtendedColumns,t),lockVisible:!o.isSelected||Boolean(n.data.pivot&&!Hi(n.data.pivot.castColumns,t))&&!Hi(n.data.groupExtendedColumns,t),pinned:void 0!==o.pinned?o.pinned===pi.RIGHT?xd.RIGHT:xd.LEFT:null,headerClass:Gi(t)?"pl-1 border border-neutral-300":"pl-1 border border-neutral-200",cellClassRules:{[md(a)]:()=>!0,[hd(s)]:()=>!0,[pd.FONT_BOLD]:()=>l,[pd.FONT_ITALIC]:()=>c,[pd.FONT_STRIKETHROUGH]:()=>u,[fd(d)]:()=>Boolean(d),[Ed(p)]:e=>i===gi.TEXT&&Boolean(p),[Cd(g)]:()=>!0,[bd(m,"normal")]:()=>!0,[vd(h,"normal")]:()=>!0,[bd(C,"zero")]:e=>i===gi.NUMBER&&G(e.value)&&0===e.value,[vd(b,"zero")]:e=>i===gi.NUMBER&&G(e.value)&&0===e.value,[bd(f,"negative")]:e=>i===gi.NUMBER&&G(e.value)&&e.value<0,[vd(E,"negative")]:e=>i===gi.NUMBER&&G(e.value)&&e.value<0,[bd(v,"error")]:e=>Boolean(e.node.failedLoad),[vd(_,"error")]:e=>Boolean(e.node.failedLoad),[pd.BLUR]:()=>o.blur},valueFormatter:i===gi.NUMBER?e=>{const t=e.value;if(O(t)||t===Td)return o.missingValueDisplayText??"";const n=o.negativeNumberInParens&&t<0,r=Ld(t,o.numberScale),i=(n?Math.abs(r.value):r.value).toLocaleString(void 0,{useGrouping:o.displayCommas,...void 0!==o.decimals?{minimumFractionDigits:o.decimals,maximumFractionDigits:o.decimals}:{}});let a=(n?`(${i})`:i)+(r.unit?` ${r.unit}`:"");return o.unit&&(a=o.unit.startsWith("_")?`${o.unit.substring(1)}${a}`:`${a}${o.unit}`),a}:e=>e.value===Td?o.missingValueDisplayText??"":e.value,tooltipValueGetter:e=>L(e.value)&&e.value!==Td?`Value = ${""===e.value?"''":!0===e.value?"TRUE":!1===e.value?"FALSE":e.value}`:"Missing Value",cellRenderer:Pd(e)}}function Dd(e,t){const n=t.fontFamily,o=t.fontSize,r=t.fontBold,i=t.fontItalic,a=t.fontStrikethrough,s=t.fontUnderline,l=t.fontCase,c=t.textAlign,u=t.normalForegroundColor,d=t.normalBackgroundColor;return{cellDataType:!1,hide:!e.data.groupBy,lockPosition:!0,lockPinned:!0,pinned:xd.LEFT,cellClassRules:{[md(n)]:()=>!0,[hd(o)]:()=>!0,[pd.FONT_BOLD]:()=>r,[pd.FONT_ITALIC]:()=>i,[pd.FONT_STRIKETHROUGH]:()=>a,[fd(s)]:()=>Boolean(s),[Ed(l)]:e=>Boolean(l),[Cd(c)]:()=>!0,[bd(u,"normal")]:()=>!0,[vd(d,"normal")]:()=>!0},tooltipValueGetter:e=>L(e.value)&&e.value!==Td?`Group Value = ${""===e.value?"''":!0===e.value?"TRUE":!1===e.value?"FALSE":e.value}`+(void 0!==e.data[yd]?` (${e.data[yd]})`:""):null}}function jd(e){const{column:t}=e;return{resizable:void 0===t.fixedWidth,suppressAutoSize:void 0!==t.fixedWidth,suppressSizeToFit:void 0!==t.fixedWidth,width:t.fixedWidth,minWidth:Math.max(t.minWidth??50,50),maxWidth:t.maxWidth}}function Md(e){const{name:t,snapshot:n}=e,o=n.data.sortColumns,r=Hi(o,t);return{sortable:!0,sort:r?r.direction===di.ASCENDING?Id.ASCENDING:Id.DESCENDING:null,sortIndex:r?o.indexOf(r):null}}function Ud(e){const{name:t,snapshot:n,column:o,configuration:r}=e,i=n.data,a=Hi(i.pivot?.columns,t),s=Hi(i.groupBy?.columns,t),l=Boolean(Hi(i.groupExtendedColumns,t)),c=!l&&s?i.groupBy?.columns.indexOf(s)??null:null;return{enableRowGroup:!l&&o.kind===ii.DIMENSION,rowGroup:!l&&Boolean(s),rowGroupIndex:null!==c?r.showRootAggregation?c+1:c:null,enablePivot:!l&&o.kind===ii.DIMENSION,pivot:!l&&Boolean(a),pivotIndex:!l&&a?i.pivot?.columns.indexOf(a)??null:null,aggFunc:l?null:o.aggregateOperator,enableValue:!1,allowedAggFuncs:[]}}function Gd(e){const t=e.grid;return{rowGroupPanelShow:"always",groupDisplayType:"singleColumn",suppressGroupChangesColumnVisibility:!0,suppressAggFuncInHeader:!0,getChildCount:e=>e[yd],alwaysMultiSort:!0,rowHeight:20,headerHeight:24,noRowsOverlayComponent:()=>(0,E.jsxs)("div",{className:"flex items-center border-[1.5px] border-neutral-300 p-2 font-medium text-neutral-400",children:[(0,E.jsx)("div",{children:(0,E.jsx)(dr.WarningCircle,{className:"mr-1 stroke-2 text-lg"})}),"0 rows"]}),loadingOverlayComponent:()=>(0,E.jsxs)("div",{className:"flex items-center border-[1.5px] border-neutral-300 p-2 font-medium text-neutral-400",children:[(0,E.jsx)("div",{children:(0,E.jsx)(dr.Loader,{className:"mr-1 animate-spin stroke-2 text-lg"})}),"Loading..."]}),onBodyScroll:e=>{const n=e.api.getDisplayedRowCount(),o=e.api.getVerticalPixelRange(),r=Math.max(1,Math.ceil(o.top/20)+1),i=Math.min(n,Math.floor(o.bottom/20));t.setScrollHintText(`${r}-${i}/${n}`),e.api.hidePopupMenu()},onBodyScrollEnd:()=>t.setScrollHintText(void 0),preventDefaultOnContextMenu:!0,columnMenu:"new",getContextMenuItems:e=>t.controller.menuBuilder?.(e,!1)??[],getMainMenuItems:e=>t.controller.menuBuilder?.(e,!0)??[],onColumnMenuVisibleChanged:e=>{if(!e.column){const t=document.querySelector(`.${pd.ROOT} .ag-popup .ag-menu`);t&&(t.style.display="none"),e.api.hidePopupMenu()}},autoSizePadding:10,autoSizeStrategy:{type:"fitCellContents"},tooltipShowDelay:1500,tooltipInteraction:!1,suppressDragLeaveHidesColumns:!0,suppressScrollOnNewData:!0,loadingCellRenderer:Fd,serverSideSortAllLevels:!0,cellSelection:!0,sideBar:{toolPanels:[{id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel",minWidth:200,width:200,toolPanelParams:{suppressValues:!0,suppressPivotMode:!0}}],position:"right"},allowDragFromColumnsToolPanel:!0,animateRows:!1,suppressColumnMoveAnimation:!0}}function Vd(e,t,n){const o=e.split(mi);if(!t.data.pivot||o.length>t.data.pivot.columns.length+1)return o.join(" / ");if(o.length===t.data.pivot.columns.length+1){const e=N(o,o.length-1),r=Hi(n.columns,e);return`Column = ${r?r.displayName?`${r.displayName} (${r.name})`:r.name:e} ~ [ ${t.data.pivot.columns.map(((e,t)=>`${Hi(n.columns,e.name)?.displayName??e.name} = ${o[t]}`)).join(", ")} ]`}return`[ ${t.data.pivot.columns.slice(0,o.length).map(((e,t)=>`${Hi(n.columns,e.name)?.displayName??e.name} = ${o[t]}`)).join(", ")} ]`}function Hd(e,t,n){const o=e.map((e=>({...e,values:e.name.split(mi)}))).filter((e=>e.values.length>1)),r=[];return o.forEach((e=>{const o=[];let i,a="";for(let r=0;r<e.values.length;r++){const s=N(e.values,r);if(a=""===a?N(e.values,r):`${a}${mi}${s}`,r!==e.values.length-1)o.push({groupId:a,children:[],suppressColumnsToolPanel:!0,headerName:s,headerTooltip:Vd(a,t,n)});else{const o=Hi(n.columns,s);if(o){const r={name:e.name,snapshot:t,column:o,configuration:n};i={headerName:o.displayName??o.name,colId:e.name,field:e.name,menuTabs:[],...Bd(r),...Md(r),...jd(r),pinned:!1,lockPinned:!0,lockPosition:!0,suppressColumnsToolPanel:!0,headerTooltip:Vd(a,t,n)}}}}let s=r;o.forEach((e=>{const t=s.find((t=>"groupId"in t&&t.groupId===e.groupId));if(t)s=t.children;else{const t={...e,headerClass:`${pd.PIVOT_COLUMN_GROUP} ${pd.PIVOT_COLUMN_GROUP_PREFIX}${s.length%5}`};s.push(t),s=t.children}})),i&&(s.push(i),s.sort(((e,t)=>{const o=(e.colId?.split(mi)??[]).at(-1),r=o?Hi(n.columns,o):void 0,i=(t.colId?.split(mi)??[]).at(-1),a=i?Hi(n.columns,i):void 0;return(r?n.columns.indexOf(r):Number.MAX_VALUE)-(a?n.columns.indexOf(a):Number.MAX_VALUE)})))})),r}function Wd(e,t){const n=t.columns.filter((t=>Hi(e.data.selectColumns,t.name)??Hi(e.data.groupExtendedColumns,t.name)));let o=[];return e.data.pivot&&(o=function(e,t,n){try{const o=[];for(const n of e){const e={...n,values:n.name.split(mi).slice(0,-1)};M(e.values.length===t.columns.length),o.push(e)}const r=t.columns.map((e=>n.getColumn(e.name))).filter(L);M(r.length===t.columns.length);for(let e=t.columns.length-1;e>=0;e--){const t=r[e]?.pivotSortDirection??di.ASCENDING;o.sort(((n,o)=>t===di.ASCENDING?N(n.values,e).localeCompare(N(o.values,e)):N(o.values,e).localeCompare(N(n.values,e))))}return o.map((e=>Wi(e)))}catch{return e}}(e.data.pivot.castColumns.filter((e=>Gi(e.name))),e.data.pivot,t)),[{colId:Ad,hide:!0,enableValue:!1,allowedAggFuncs:[],enablePivot:!1,enableRowGroup:!1,filter:"agTextColumnFilter",suppressColumnsToolPanel:!0},...t.showRootAggregation?[{colId:Sd,headerName:"Root",field:Sd,hide:!0,enableValue:!1,allowedAggFuncs:[],enablePivot:!1,enableRowGroup:!1,suppressColumnsToolPanel:!0,rowGroup:!0,rowGroupIndex:0}]:[],...Hd(o,e,t),...n.map((n=>{const o={name:n.name,snapshot:e,column:n,configuration:t};return{headerName:n.displayName??n.name,headerTooltip:`Column = ${n.displayName?`${n.displayName} (${n.name})`:n.name}`,suppressSpanHeaderHeight:!0,colId:n.name,field:n.name,menuTabs:[],...Bd(o),...jd(o),...Md(o),...Ud(o)}}))]}function $d(e,t){return`${Array.from(new Set([t[`${e}ForegroundColor`],...t.columns.map((t=>t[`${e}ForegroundColor`])).filter(L)]).values()).map((t=>`.${pd.ROOT} .${bd(t,e)}{color:${t};}`)).join("\n")}`}function zd(e,t){return`${Array.from(new Set([t[`${e}BackgroundColor`],...t.columns.map((t=>t[`${e}BackgroundColor`])).filter(L)]).values()).map((t=>`.${pd.ROOT} .${vd(t,e)}{background-color:${t};}`)).join("\n")};`}console.error;const Yd=(0,bt.PA)((e=>{const{view:t}=e,n=t.grid,o=n.queryConfiguration;return(0,E.jsx)(Ir.mL,{styles:Ir.AH`
2
+ .${pd.ROOT} {
3
3
  --ag-odd-row-background-color: ${n.queryConfiguration.alternateRowsStandardMode&&!n.queryConfiguration.alternateRows?Ti:Ri};
4
4
  --ag-cell-horizontal-border: ${n.queryConfiguration.showVerticalGridLines?`1px solid\n ${n.queryConfiguration.gridLineColor}`:"none"};
5
5
  --ag-row-border-color: ${n.queryConfiguration.showHorizontalGridLines?n.queryConfiguration.gridLineColor:"transparent"};
6
6
  }
7
- .${gu.ROOT}
8
- .${gu.HIGHLIGHT_ROW} {
7
+ .${pd.ROOT}
8
+ .${pd.HIGHLIGHT_ROW} {
9
9
  background-color: ${n.queryConfiguration.alternateRows?n.queryConfiguration.alternateRowsColor:Ri};
10
10
  }
11
- ${[ti.ARIAL,ti.ROBOTO,ti.ROBOTO_CONDENSED].map((e=>`.${gu.ROOT} .${hu(e)}{font-family:${e},sans-serif;}`)).join("\n")}
12
- ${[ti.GEORGIA,ti.ROBOTO_SERIF,ti.TIMES_NEW_ROMAN].map((e=>`.${gu.ROOT} .${hu(e)}{font-family:${e},serif;}`)).join("\n")}
13
- ${[ti.JERBRAINS_MONO,ti.ROBOTO_MONO,ti.UBUNTU_MONO].map((e=>`.${gu.ROOT} .${hu(e)}{font-family:${e},monospace;}`)).join("\n")}
14
- .${gu.FONT_BOLD} {
11
+ ${[ti.ARIAL,ti.ROBOTO,ti.ROBOTO_CONDENSED].map((e=>`.${pd.ROOT} .${md(e)}{font-family:${e},sans-serif;}`)).join("\n")}
12
+ ${[ti.GEORGIA,ti.ROBOTO_SERIF,ti.TIMES_NEW_ROMAN].map((e=>`.${pd.ROOT} .${md(e)}{font-family:${e},serif;}`)).join("\n")}
13
+ ${[ti.JERBRAINS_MONO,ti.ROBOTO_MONO,ti.UBUNTU_MONO].map((e=>`.${pd.ROOT} .${md(e)}{font-family:${e},monospace;}`)).join("\n")}
14
+ .${pd.FONT_BOLD} {
15
15
  font-weight: 700;
16
16
  }
17
- ${[4,5,6,7,8,9,10,11,12,14,16,18,20,22,24,26,28,32,36,48,72].map((e=>`.${gu.ROOT} .${fu(e)}{font-size:${e}px;}`)).join("\n")}
18
- .${gu.ROOT}
19
- .${gu.FONT_ITALIC} {
17
+ ${[4,5,6,7,8,9,10,11,12,14,16,18,20,22,24,26,28,32,36,48,72].map((e=>`.${pd.ROOT} .${hd(e)}{font-size:${e}px;}`)).join("\n")}
18
+ .${pd.ROOT}
19
+ .${pd.FONT_ITALIC} {
20
20
  font-style: italic;
21
21
  }
22
- ${[ri.SOLID,ri.DASHED,ri.DOTTED,ri.DOUBLE,ri.WAVY].map((e=>`.${gu.ROOT} .${Eu(e)}{text-decoration:underline ${e};}`)).join("\n")}
23
- .${gu.ROOT} .${gu.FONT_STRIKETHROUGH} {
22
+ ${[ri.SOLID,ri.DASHED,ri.DOTTED,ri.DOUBLE,ri.WAVY].map((e=>`.${pd.ROOT} .${fd(e)}{text-decoration:underline ${e};}`)).join("\n")}
23
+ .${pd.ROOT} .${pd.FONT_STRIKETHROUGH} {
24
24
  text-decoration: line-through;
25
25
  }
26
- ${[oi.LOWERCASE,oi.UPPERCASE,oi.CAPITALIZE].map((e=>`.${gu.ROOT} .${Cu(e)}{text-transform:${e};}`)).join("\n")}
27
- ${[ni.LEFT,ni.CENTER,ni.RIGHT].map((e=>`.${gu.ROOT} .${bu(e)}{text-align:${e};}`)).join("\n")};
28
- ${Yu("normal",o)}
29
- ${Yu("zero",o)}
30
- ${Yu("negative",o)}
31
- ${Yu("error",o)}
32
- ${zu("normal",o)}
33
- ${zu("zero",o)}
34
- ${zu("negative",o)}
35
- ${zu("error",o)}
36
- .${gu.ROOT}
37
- .${gu.BLUR} {
26
+ ${[oi.LOWERCASE,oi.UPPERCASE,oi.CAPITALIZE].map((e=>`.${pd.ROOT} .${Ed(e)}{text-transform:${e};}`)).join("\n")}
27
+ ${[ni.LEFT,ni.CENTER,ni.RIGHT].map((e=>`.${pd.ROOT} .${Cd(e)}{text-align:${e};}`)).join("\n")};
28
+ ${zd("normal",o)}
29
+ ${zd("zero",o)}
30
+ ${zd("negative",o)}
31
+ ${zd("error",o)}
32
+ ${$d("normal",o)}
33
+ ${$d("zero",o)}
34
+ ${$d("negative",o)}
35
+ ${$d("error",o)}
36
+ .${pd.ROOT}
37
+ .${pd.BLUR} {
38
38
  filter: blur(3px);
39
39
  }
40
- .${gu.ROOT}
41
- .${gu.BLUR}:hover {
40
+ .${pd.ROOT}
41
+ .${pd.BLUR}:hover {
42
42
  filter: none;
43
43
  }
44
- `})})),Ku=(0,bt.PA)((e=>{const{view:t}=e,n=t.grid.scrollHintText,o=document.querySelector(".data-cube-grid .ag-side-bar"),r=document.querySelector(".data-cube-grid .ag-body-vertical-scroll");return(0,E.jsxs)("div",{className:"absolute -top-10 flex items-center rounded-sm border border-neutral-300 bg-neutral-100 p-1 pr-2 text-neutral-500 shadow-sm",style:{right:(null!==o?o.getBoundingClientRect().width+6:10)+(null!==r?r.getBoundingClientRect().width:0)},children:[(0,E.jsx)(dr.TableScroll,{className:"text-lg"}),(0,E.jsx)("div",{className:"ml-1 font-mono text-sm",children:n??""})]})})),qu=(0,bt.PA)((e=>{const{view:t}=e,n=Wc(),o=t.grid;return(0,E.jsxs)("div",{className:"relative flex h-5 w-full select-none justify-between border-b border-neutral-200 bg-neutral-100",children:[Boolean(o.scrollHintText)&&(0,E.jsx)(Ku,{view:t}),(0,E.jsx)("div",{}),(0,E.jsxs)("div",{className:"flex h-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full items-center px-2 font-mono text-sm text-neutral-500",children:o.clientDataSource.rowCount?`Rows: ${o.clientDataSource.rowCount}`:""}),void 0!==o.rowLimit&&o.queryConfiguration.showWarningForTruncatedResult&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"h-3 w-[1px] bg-neutral-200"}),(0,E.jsxs)("div",{className:"flex h-full items-center px-2 text-orange-500",children:[(0,E.jsx)(dr.Warning,{className:"stroke-[3px]"}),(0,E.jsx)("div",{className:"ml-1 text-sm font-semibold",children:`Results truncated to fit within row limit (${o.rowLimit})`})]})]}),(0,E.jsx)("div",{className:"h-3 w-[1px] bg-neutral-200"}),(0,E.jsxs)("button",{className:"flex h-full items-center p-2",onClick:()=>{o.setPaginationEnabled(!o.isPaginationEnabled)},children:[(0,E.jsx)(wr.A,{checked:o.isPaginationEnabled,classes:{root:"p-0 w-6 h-5 flex items-center",input:"w-2",checked:"!translate-x-2 ease-in-out duration-100 transition",thumb:jn("w-2 h-2",{"bg-sky-600":o.isPaginationEnabled,"bg-neutral-500":!o.isPaginationEnabled}),switchBase:"p-0.5 mt-1 translate-x-0 ease-in-out duration-100 transition",track:jn("h-3 w-5 border",{"!bg-sky-100 border-sky-600":o.isPaginationEnabled,"!bg-neutral-100 border-neutral-500":!o.isPaginationEnabled})},disableRipple:!0,disableFocusRipple:!0}),(0,E.jsx)("div",{className:jn("text-sm",{"text-sky-600":o.isPaginationEnabled,"text-neutral-500":!o.isPaginationEnabled}),children:"Pagination"})]}),t.dataCube.options?.enableCache&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"h-3 w-[1px] bg-neutral-200"}),(0,E.jsxs)("button",{className:"flex h-full items-center p-2",onClick:()=>{o.setCachingEnabled(!o.isCachingEnabled).catch((e=>n.alertService.alertUnhandledError(e)))},children:[(0,E.jsx)(wr.A,{checked:o.isCachingEnabled,classes:{root:"p-0 w-6 h-5 flex items-center",input:"w-2",checked:"!translate-x-2 ease-in-out duration-100 transition",thumb:jn("w-2 h-2",{"bg-sky-600":o.isCachingEnabled,"bg-neutral-500":!o.isCachingEnabled}),switchBase:"p-0.5 mt-1 translate-x-0 ease-in-out duration-100 transition",track:jn("h-3 w-5 border",{"!bg-sky-100 border-sky-600":o.isCachingEnabled,"!bg-neutral-100 border-neutral-500":!o.isCachingEnabled})},disableRipple:!0,disableFocusRipple:!0,disabled:t.processCacheState.isInProgress,title:t.processCacheState.isInProgress?"Processing cache...":""}),(0,E.jsxs)("div",{className:jn("flex items-center text-sm",{"text-sky-600":o.isCachingEnabled,"text-neutral-500":!o.isCachingEnabled}),children:["Cache ",(0,E.jsx)($c,{})]})]})]})]})]})})),Ju=(0,bt.PA)((e=>{const{view:t}=e,n=t.grid;return(0,E.jsx)("div",{className:"relative h-[calc(100%_-_20px)] w-full",children:(0,E.jsx)(xr.W6,{theme:"legacy",className:"data-cube-grid ag-theme-quartz",rowModelType:"serverSide",serverSideDatasource:n.clientDataSource,context:{view:t},onGridReady:e=>{n.configureClient(e.api)},modules:[Nr.JKr,yr.fKx],...Vu(t)})})})),Qu=(0,bt.PA)((e=>{const{view:t}=e;return(0,E.jsxs)("div",{className:"h-[calc(100%_-_48px)] w-full",children:[(0,E.jsx)(Xu,{view:t}),(0,E.jsx)(Ju,{view:t}),(0,E.jsx)(qu,{view:t})]})}));var Zu=n(16481);const ed=(0,bt.PA)((e=>{const{view:t,taskManager:n}=e,o=t?.taskService.tasks??n?.tasks;return(0,E.jsxs)("div",{className:"flex h-5 w-full justify-between bg-neutral-100",children:[(0,E.jsxs)("div",{className:"flex",children:[(0,E.jsxs)("button",{className:"flex items-center px-2 text-sky-600 hover:text-sky-700 disabled:text-neutral-400",onClick:()=>t?.editor.display.open(),disabled:!t,children:[(0,E.jsx)(dr.Settings,{className:"text-xl"}),(0,E.jsx)("div",{className:"pl-0.5 underline",children:"Properties"})]}),(0,E.jsx)("div",{className:"flex",children:(0,E.jsxs)("button",{className:"flex items-center text-sky-600 hover:text-sky-700 disabled:text-neutral-400",onClick:()=>{t?.filter.display.open()},disabled:!t,children:[(0,E.jsx)(dr.TableFilter,{className:"text-lg"}),(0,E.jsx)("div",{className:"pl-0.5 underline",children:"Filter"})]})})]}),(0,E.jsx)("div",{className:"flex items-center px-2",children:(0,E.jsx)("div",{className:"flex h-3.5 w-48 border-[0.5px] border-neutral-300",title:void 0!==o&&o.length>0?o.length>1?o.map(((e,t)=>`Task ${t+1}/${o.length}: ${e.description}`)).join("\n"):A(o,0).description:void 0,children:void 0!==o&&o.length>0&&(0,E.jsx)(Zu.A,{classes:{root:"h-3.5 w-full bg-transparent",bar1Indeterminate:"bg-green-500",bar2Indeterminate:"bg-green-500"},variant:"indeterminate"})})})]})}));var td;!function(e){e.SEPARATOR="separator"}(td||(td={}));const nd=(0,bt.PA)((e=>{const{children:t,title:n,menuItems:o,getMenuItems:r}=e,[i,a,s]=Dc(),[l,c]=(0,Lt.useState)([...o??[]]);return(0,E.jsxs)("div",{className:"flex h-7 justify-between bg-neutral-100",children:[(0,E.jsxs)("div",{className:"flex items-center overflow-hidden pl-1 pr-2 text-lg font-medium",children:[(0,E.jsx)(dr.Cube,{className:"mr-1 h-4 w-4 flex-shrink-0"}),(0,E.jsx)("div",{className:"text-ellipsis whitespace-nowrap",children:n})]}),(0,E.jsxs)("div",{className:"flex",children:[t,(0,E.jsx)("button",{className:"flex aspect-square h-full flex-shrink-0 items-center justify-center text-lg disabled:text-neutral-400",onClick:e=>{const t=r?.()??[];t.length&&t.unshift(td.SEPARATOR),c([...o??[],...t]),i(e)},disabled:!o?.length,children:(0,E.jsx)(dr.Menu,{})}),(0,E.jsx)(jc,{...s,menuProps:{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},classes:{paper:"rounded-none mt-[1px]",list:"w-40 p-0 rounded-none border border-neutral-400 bg-white overflow-y-auto py-0.5"}},children:l.map(((e,t)=>H(e)?(0,E.jsx)(Mc,{className:"flex h-[22px] w-full items-center px-2.5 text-base hover:bg-neutral-100 focus:bg-neutral-100",onClick:()=>{e.action(),a()},disabled:Boolean(e.disabled),children:e.label},t):e===td.SEPARATOR?(0,E.jsx)("div",{className:"my-1 h-[1px] w-full bg-neutral-200"},t):null))})]})]})})),od=e=>{const{message:t,prompt:n}=e;return(0,E.jsxs)("div",{className:"flex h-full w-full overflow-auto p-5",children:[(0,E.jsx)("div",{className:"mr-3",children:(0,E.jsx)(dr.AlertError,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-red-500"})}),(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"whitespace-break-spaces text-lg",children:t}),(0,E.jsx)("div",{className:"mt-1 whitespace-break-spaces text-neutral-500",children:n})]})]})},rd=(0,bt.PA)((e=>{const{children:t,taskManager:n}=e;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"h-[calc(100%_-_48px)] w-full border border-x-0 border-neutral-200 bg-neutral-50",children:t??null}),(0,E.jsx)(ed,{taskManager:n})]})})),id=(0,bt.PA)((e=>{const{children:t,title:n,menuItems:o,headerContent:r,layoutManager:i,taskManager:a}=e;return(0,E.jsxs)("div",{className:"data-cube relative flex h-full w-full flex-col bg-white",children:[(0,E.jsx)(nd,{title:n,menuItems:o,children:r??null}),(0,E.jsx)(rd,{taskManager:a,children:t}),i?(0,E.jsx)(_r,{layout:i}):null]})})),ad=(0,bt.PA)((e=>{const{view:t}=e;return(0,Lt.useEffect)((()=>()=>t.dispose()),[t]),t.initializeState.hasFailed?(0,E.jsx)(rd,{children:(0,E.jsx)(od,{message:"Initialization Failure",prompt:"Resolve the issue and reload."})}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Qu,{view:t}),(0,E.jsx)(ed,{view:t})]})}));var sd=n(61005);class ld{_engine;_settingService;_snapshotService;_latestSnapshot;constructor(e,t,n){this._engine=e,this._settingService=t,this._snapshotService=n}getLatestSnapshot(){return this._latestSnapshot}async receiveSnapshot(e){const t=this._latestSnapshot;this._latestSnapshot=e,await this.applySnapshot(e.INTERNAL__fullClone(),t)}publishSnapshot(e){const t=this._latestSnapshot;this._latestSnapshot=e,this._settingService.getBooleanValue(lu.DEBUGGER__ENABLE_DEBUG_MODE)&&this._engine.debugProcess("New Snapshot",["Publisher",this.getSnapshotSubscriberName()],["Snapshot",e.serialize()],["Previous Snapshot",t?.serialize()],["Diff",(0,sd.A)(t??{},e)]),this._snapshotService.broadcastSnapshot(e)}}class cd{_logService;_settingService;_subscribers=[];_snapshots=[];_pointer=-1;_historySize;constructor(e,t){(0,xe.Gn)(this,{_snapshots:xe.sH.struct,_pointer:xe.sH,canUndo:xe.EW,canRedo:xe.EW,undo:xe.XI,redo:xe.XI,adjustHistorySize:xe.XI,broadcastSnapshot:xe.XI}),this._logService=e,this._settingService=t,this._historySize=Math.max(this._settingService.getNumericValue(lu.EDITOR__MAX_HISTORY_STACK_SIZE),10)}registerSubscriber(e){if(this._subscribers.find((t=>t.getSnapshotSubscriberName()===e.getSnapshotSubscriberName())))throw new x(`Subscriber with name '${e.getSnapshotSubscriberName()}' already exists`);this._subscribers.push(e)}propagateSnapshot(e){this._subscribers.forEach((t=>{const n=t.getLatestSnapshot();n?.uuid!==e.uuid&&t.receiveSnapshot(e).catch((e=>{w(e),this._logService.logIllegalStateError("Error occured while subscribers receiving and applying new snapshot should be handled gracefully",e)}))}))}getCurrentSnapshot(){return A(this._snapshots,this._pointer)}getHistory(e){return e?.full?[...this._snapshots]:this._snapshots.slice(0,this._pointer+1)}get canUndo(){return this._pointer>0}get canRedo(){return this._pointer<this._snapshots.length-1}undo(){this._pointer=Math.max(this._pointer-1,0),this.propagateSnapshot(this.getCurrentSnapshot())}redo(){this._pointer=Math.min(this._pointer+1,this._snapshots.length-1),this.propagateSnapshot(this.getCurrentSnapshot())}adjustHistorySize(e){let t=e;e<=10&&(this._logService.logIllegalStateError(`Can't adjust history size to ${e}: value must be greator than 10`),t=Math.max(e,10));const n=this.getHistory();n.length>t?(this._snapshots=n.slice(-t),this._pointer=Math.min(Math.max(this._pointer-(n.length-t),0),n.length-1)):(this._snapshots=n,this._pointer=n.length-1),this._historySize=t}broadcastSnapshot(e){e.isFinalized()?(this._snapshots=[...this._snapshots.slice(0,this._pointer+1),e],this._pointer+=1,this.adjustHistorySize(this._historySize),this.propagateSnapshot(e)):this._logService.logIllegalStateError("Snapshot must be finalized before broadcasting")}}function ud({name:e,subMenu:t,checked:n}){return(0,xr.sd)({configureDefaults:()=>!0}),(0,E.jsxs)("div",{children:[(0,E.jsx)("span",{className:"ag-menu-option-part ag-menu-option-icon"}),(0,E.jsxs)("span",{className:"ag-menu-option-part ag-menu-option-text !inline-flex items-center",children:[(0,E.jsx)("span",{className:"opacity-50",children:e}),(0,E.jsx)($c,{})]}),(0,E.jsx)("span",{className:"ag-menu-option-part ag-menu-option-shortcut"}),(0,E.jsx)("span",{className:"ag-menu-option-part ag-menu-option-popup-pointer select-none",children:t&&(0,E.jsx)("span",{className:"ag-icon ag-icon-small-right"})})]})}var dd=n(43322);class pd{uuid=(0,i.A)();parent;not=!1;constructor(e,t){(0,xe.Gn)(this,{parent:xe.sH,setParent:xe.XI,not:xe.sH,setNot:xe.XI}),this.parent=e,this.not=Boolean(t)}setNot(e){this.not=e}setParent(e){this.parent=e}}class gd extends pd{column;operation;value;constructor(e,t,n,o,r){super(e,r),(0,xe.Gn)(this,{column:xe.sH,setColumn:xe.XI,operation:xe.sH,setOperation:xe.XI,value:xe.sH.ref,setValue:xe.XI,updateValue:xe.XI}),this.column=t,this.operation=n,this.setValue(o)}setColumn(e){this.column=e}setOperation(e){this.operation=e}setValue(e){this.value=(0,xe.AT)(e)?e:(0,xe.Gn)(e,{value:xe.sH})}updateValue(e){this.value.value=e}}class md extends pd{children=[];operation=ui.AND;constructor(e,t,n){super(e,n),(0,xe.Gn)(this,{children:xe.sH,removeChild:xe.XI,addChild:xe.XI,operation:xe.sH,setOperation:xe.XI}),this.operation=t}setOperation(e){this.operation=e}removeChild(e){S(this.children,e)&&e.setParent(void 0)}addChild(e,t){this.children.includes(e)||(void 0!==t?(t=Math.max(0,Math.min(t,this.children.length)),this.children.splice(t,0,e)):this.children.push(e),e.setParent(this))}}function hd(e){return{groupOperator:e.operation,not:e.not,conditions:e.children.map((e=>{if(e instanceof gd)return{name:e.column.name,type:e.column.type,operator:e.operation.operator,value:(0,dd.A)(e.value),not:e.not};if(e instanceof md)return hd(e);throw new x("Unknown filter node")}))}}function fd(e,t,n,o){const r=new md(t,e.groupOperator===ui.AND?ui.AND:ui.OR,e.not);return e.conditions.forEach((e=>{let t;t="groupOperator"in e?fd(e,r,n,o):new gd(r,{name:e.name,type:e.type},o(e.operator),e.value,e.not),r.addChild(t),n.set(t.uuid,t)})),n.set(r.uuid,r),r}class Ed{name;type;constructor(e,t){this.name=e,this.type=t}}class Cd{_editor;selectedColumns=[];availableColumnsSearchText="";selectedColumnsSearchText="";onChange;constructor(e,t){(0,xe.Gn)(this,{availableColumns:xe.EW,availableColumnsForDisplay:xe.EW,selectedColumnsForDisplay:xe.EW,selectedColumns:xe.sH,setSelectedColumns:xe.XI,availableColumnsSearchText:xe.sH,setAvailableColumnsSearchText:xe.XI,selectedColumnsSearchText:xe.sH,setSelectedColumnsSearchText:xe.XI}),this._editor=e,this.onChange=t?.onChange}get availableColumnsForDisplay(){return this.availableColumns.filter((e=>!Hi(this.selectedColumns,e.name))).sort($i)}get selectedColumnsForDisplay(){return this.selectedColumns}setSelectedColumns(e){this.selectedColumns=e.map((e=>this.cloneColumn(e))),this.onChange?.(this)}setAvailableColumnsSearchText(e){this.availableColumnsSearchText=e}setSelectedColumnsSearchText(e){this.selectedColumnsSearchText=e}getColumn(e){return P(Hi(this.availableColumns,e),`Can't find column '${e}'`)}}class bd extends Ed{onChange;direction;constructor(e,t,n,o){super(e,t),(0,xe.Gn)(this,{direction:xe.sH,setDirection:xe.XI}),this.direction=n,this.onChange=o}setDirection(e){this.direction=e,this.onChange?.()}}class vd extends Cd{cloneColumn(e){return new bd(e.name,e.type,e.direction)}get availableColumns(){return(0,tt.A)([...this._editor.horizontalPivots.selector.selectedColumns.length?[...this._editor.horizontalPivots.pivotResultColumns,...[...this._editor.columns.selector.selectedColumns,...this._editor.verticalPivots.selector.selectedColumns].filter((e=>this._editor.columnProperties.getColumnConfiguration(e.name).kind===ii.DIMENSION&&!Hi(this._editor.horizontalPivots.selector.selectedColumns,e.name)))]:[...this._editor.columns.selector.selectedColumns,...this._editor.verticalPivots.selector.selectedColumns],...this._editor.groupExtendColumns],(e=>e.name)).map((e=>new bd(e.name,e.type,di.ASCENDING)))}}class _d{selector;constructor(e){this.selector=new vd(e)}adaptPropagatedChanges(){this.selector.setSelectedColumns(this.selector.selectedColumns.filter((e=>Hi(this.selector.availableColumns,e.name))))}applySnaphot(e,t){this.selector.setSelectedColumns(e.data.sortColumns.map((e=>{const t=this.selector.getColumn(e.name);return new bd(t.name,t.type,e.direction)})))}buildSnapshot(e,t){e.data.sortColumns=this.selector.selectedColumns.map((e=>({...Wi(e),direction:e.direction})))}}class Td extends zi{dataType;aggregateOperation;static create(e,t,n){const o=Object.assign(new Td("",""),zi.serialization.fromJson(e));return o.dataType=ji(o.type),o.aggregateOperation=Di(o.aggregateOperator,n),(0,xe.Gn)(o,{kind:xe.sH,setKind:xe.XI,displayName:xe.sH,setDisplayName:xe.XI,decimals:xe.sH,setDecimals:xe.XI,displayCommas:xe.sH,setDisplayCommas:xe.XI,negativeNumberInParens:xe.sH,setNegativeNumberInParens:xe.XI,numberScale:xe.sH,setNumberScale:xe.XI,missingValueDisplayText:xe.sH,setMissingValueDisplayText:xe.XI,unit:xe.sH,setUnit:xe.XI,fontFamily:xe.sH,setFontFamily:xe.XI,fontSize:xe.sH,setFontSize:xe.XI,fontBold:xe.sH,setFontBold:xe.XI,fontItalic:xe.sH,setFontItalic:xe.XI,fontUnderline:xe.sH,setFontUnderline:xe.XI,fontStrikethrough:xe.sH,setFontStrikethrough:xe.XI,fontCase:xe.sH,setFontCase:xe.XI,textAlign:xe.sH,setTextAlign:xe.XI,normalForegroundColor:xe.sH,setNormalForegroundColor:xe.XI,negativeForegroundColor:xe.sH,setNegativeForegroundColor:xe.XI,zeroForegroundColor:xe.sH,setZeroForegroundColor:xe.XI,errorForegroundColor:xe.sH,setErrorForegroundColor:xe.XI,normalBackgroundColor:xe.sH,setNormalBackgroundColor:xe.XI,negativeBackgroundColor:xe.sH,setNegativeBackgroundColor:xe.XI,zeroBackgroundColor:xe.sH,setZeroBackgroundColor:xe.XI,errorBackgroundColor:xe.sH,setErrorBackgroundColor:xe.XI,isSelected:xe.sH,setIsSelected:xe.XI,hideFromView:xe.sH,setHideFromView:xe.XI,blur:xe.sH,setBlur:xe.XI,fixedWidth:xe.sH,setFixedWidth:xe.XI,minWidth:xe.sH,setMinWidth:xe.XI,maxWidth:xe.sH,setMaxWidth:xe.XI,pinned:xe.sH,setPinned:xe.XI,displayAsLink:xe.sH,setDisplayAsLink:xe.XI,linkLabelParameter:xe.sH,setLinkLabelParameter:xe.XI,isUsingDefaultStyling:xe.EW,useDefaultStyling:xe.XI,aggregateOperator:xe.sH,aggregateOperation:xe.sH,setAggregateOperation:xe.XI,aggregationParameters:xe.sH,setAggregationParameters:xe.XI,excludedFromPivot:xe.sH,setExcludedFromPivot:xe.XI,pivotSortDirection:xe.sH,setPivotSortDirection:xe.XI,pivotStatisticColumnFunction:xe.sH,setPivotStatisticColumnFunction:xe.XI}),o}get isUsingDefaultStyling(){return void 0===this.fontFamily&&void 0===this.fontSize&&void 0===this.fontBold&&void 0===this.fontItalic&&void 0===this.fontUnderline&&void 0===this.fontStrikethrough&&void 0===this.textAlign&&void 0===this.normalForegroundColor&&void 0===this.negativeForegroundColor&&void 0===this.zeroForegroundColor&&void 0===this.errorForegroundColor&&void 0===this.normalBackgroundColor&&void 0===this.negativeBackgroundColor&&void 0===this.zeroBackgroundColor&&void 0===this.errorBackgroundColor}useDefaultStyling(){this.fontFamily=void 0,this.fontSize=void 0,this.fontBold=void 0,this.fontItalic=void 0,this.fontUnderline=void 0,this.fontStrikethrough=void 0,this.textAlign=void 0,this.normalForegroundColor=void 0,this.negativeForegroundColor=void 0,this.zeroForegroundColor=void 0,this.errorForegroundColor=void 0,this.normalBackgroundColor=void 0,this.negativeBackgroundColor=void 0,this.zeroBackgroundColor=void 0,this.errorBackgroundColor=void 0}setKind(e){this.kind=e}setDisplayName(e){this.displayName=e}setDecimals(e){this.decimals=e}setDisplayCommas(e){this.displayCommas=e}setNegativeNumberInParens(e){this.negativeNumberInParens=e}setNumberScale(e){this.numberScale=e}setMissingValueDisplayText(e){this.missingValueDisplayText=e}setUnit(e){this.unit=e}setFontFamily(e){this.fontFamily=e}setFontSize(e){this.fontSize=e}setFontBold(e){this.fontBold=e}setFontItalic(e){this.fontItalic=e}setFontUnderline(e){this.fontUnderline=e}setFontStrikethrough(e){this.fontStrikethrough=e}setFontCase(e){this.fontCase=e}setTextAlign(e){this.textAlign=e}setNormalForegroundColor(e){this.normalForegroundColor=e}setNegativeForegroundColor(e){this.negativeForegroundColor=e}setZeroForegroundColor(e){this.zeroForegroundColor=e}setErrorForegroundColor(e){this.errorForegroundColor=e}setNormalBackgroundColor(e){this.normalBackgroundColor=e}setNegativeBackgroundColor(e){this.negativeBackgroundColor=e}setZeroBackgroundColor(e){this.zeroBackgroundColor=e}setErrorBackgroundColor(e){this.errorBackgroundColor=e}setIsSelected(e){this.isSelected=e}setHideFromView(e){this.hideFromView=e}setBlur(e){this.blur=e}setFixedWidth(e){this.fixedWidth=e}setMinWidth(e){this.minWidth=e}setMaxWidth(e){this.maxWidth=e}setPinned(e){this.pinned=e}setDisplayAsLink(e){this.displayAsLink=e}setLinkLabelParameter(e){this.linkLabelParameter=e}setAggregateOperation(e){this.aggregateOperation=e,this.aggregateOperator=e.operator}setAggregationParameters(e){this.aggregationParameters=e}setExcludedFromPivot(e){this.excludedFromPivot=e}setPivotSortDirection(e){this.pivotSortDirection=e}setPivotStatisticColumnFunction(e){this.pivotStatisticColumnFunction=e}}class Ad extends Yi{static create(e){const t=Object.assign(new Ad,Yi.serialization.fromJson(e));return(0,xe.Gn)(t,{expandedPaths:xe.sH,setExpandedPaths:xe.XI}),t}setExpandedPaths(e){this.expandedPaths=e}}class Sd extends Xi{static create(e){const t=Object.assign(new Sd,Xi.serialization.fromJson(e));return t.columns=[],(0,xe.Gn)(t,{name:xe.sH,setName:xe.XI,description:xe.sH,setDescription:xe.XI,showHorizontalGridLines:xe.sH,setShowHorizontalGridLines:xe.XI,showVerticalGridLines:xe.sH,setShowVerticalGridLines:xe.XI,gridLineColor:xe.sH,setGridLineColor:xe.XI,fontFamily:xe.sH,setFontFamily:xe.XI,fontSize:xe.sH,setFontSize:xe.XI,fontBold:xe.sH,setFontBold:xe.XI,fontItalic:xe.sH,setFontItalic:xe.XI,fontUnderline:xe.sH,setFontUnderline:xe.XI,fontStrikethrough:xe.sH,setFontStrikethrough:xe.XI,fontCase:xe.sH,setFontCase:xe.XI,textAlign:xe.sH,setTextAlign:xe.XI,normalForegroundColor:xe.sH,setNormalForegroundColor:xe.XI,negativeForegroundColor:xe.sH,setNegativeForegroundColor:xe.XI,zeroForegroundColor:xe.sH,setZeroForegroundColor:xe.XI,errorForegroundColor:xe.sH,setErrorForegroundColor:xe.XI,normalBackgroundColor:xe.sH,setNormalBackgroundColor:xe.XI,negativeBackgroundColor:xe.sH,setNegativeBackgroundColor:xe.XI,zeroBackgroundColor:xe.sH,setZeroBackgroundColor:xe.XI,errorBackgroundColor:xe.sH,setErrorBackgroundColor:xe.XI,alternateRows:xe.sH,setAlternateRows:xe.XI,alternateRowsColor:xe.sH,setAlternateRowsColor:xe.XI,alternateRowsCount:xe.sH,setAlternateRowsCount:xe.XI,alternateRowsStandardMode:xe.sH,setAlternateRowsStandardMode:xe.XI,showSelectionStats:xe.sH,setShowSelectionStats:xe.XI,showWarningForTruncatedResult:xe.sH,setShowWarningForTruncatedResult:xe.XI,initialExpandLevel:xe.sH,setInitialExpandLevel:xe.XI,showRootAggregation:xe.sH,setShowRootAggregation:xe.XI,showLeafCount:xe.sH,setShowLeafCount:xe.XI,treeColumnSortDirection:xe.sH,setTreeColumnSortDirection:xe.XI,pivotStatisticColumnName:xe.sH,setPivotStatisticColumnName:xe.XI,pivotStatisticColumnPlacement:xe.sH,setPivotStatisticColumnPlacement:xe.XI,isUsingDefaultStyling:xe.EW,useDefaultStyling:xe.XI}),t}get isUsingDefaultStyling(){return this.fontFamily===Ai&&11===this.fontSize&&this.fontBold===Si&&this.fontItalic===Ni&&this.fontUnderline===yi&&this.fontStrikethrough===xi&&this.textAlign===Ii&&this.normalForegroundColor===wi&&this.negativeForegroundColor===Oi&&this.zeroForegroundColor===Li&&this.errorForegroundColor===Fi&&this.normalBackgroundColor===ki&&this.negativeBackgroundColor===ki&&this.zeroBackgroundColor===ki&&this.errorBackgroundColor===ki}useDefaultStyling(){this.fontFamily=Ai,this.fontSize=11,this.fontBold=Si,this.fontItalic=Ni,this.fontUnderline=yi,this.fontStrikethrough=xi,this.textAlign=Ii,this.normalForegroundColor=wi,this.negativeForegroundColor=Oi,this.zeroForegroundColor=Li,this.errorForegroundColor=Fi,this.normalBackgroundColor=ki,this.negativeBackgroundColor=ki,this.zeroBackgroundColor=ki,this.errorBackgroundColor=ki}setName(e){this.name=e}setDescription(e){this.description=e}setShowHorizontalGridLines(e){this.showHorizontalGridLines=e}setShowVerticalGridLines(e){this.showVerticalGridLines=e}setGridLineColor(e){this.gridLineColor=e}setFontFamily(e){this.fontFamily=e}setFontSize(e){this.fontSize=e}setFontBold(e){this.fontBold=e}setFontItalic(e){this.fontItalic=e}setFontUnderline(e){this.fontUnderline=e}setFontStrikethrough(e){this.fontStrikethrough=e}setFontCase(e){this.fontCase=e}setTextAlign(e){this.textAlign=e}setNormalForegroundColor(e){this.normalForegroundColor=e}setNegativeForegroundColor(e){this.negativeForegroundColor=e}setZeroForegroundColor(e){this.zeroForegroundColor=e}setErrorForegroundColor(e){this.errorForegroundColor=e}setNormalBackgroundColor(e){this.normalBackgroundColor=e}setNegativeBackgroundColor(e){this.negativeBackgroundColor=e}setZeroBackgroundColor(e){this.zeroBackgroundColor=e}setErrorBackgroundColor(e){this.errorBackgroundColor=e}setAlternateRows(e){this.alternateRows=e}setAlternateRowsColor(e){this.alternateRowsColor=e}setAlternateRowsCount(e){this.alternateRowsCount=e}setAlternateRowsStandardMode(e){this.alternateRowsStandardMode=e}setShowSelectionStats(e){this.showSelectionStats=e}setShowWarningForTruncatedResult(e){this.showWarningForTruncatedResult=e}setInitialExpandLevel(e){this.initialExpandLevel=e}setShowRootAggregation(e){this.showRootAggregation=e}setShowLeafCount(e){this.showLeafCount=e}setTreeColumnSortDirection(e){this.treeColumnSortDirection=e}setPivotStatisticColumnPlacement(e){this.pivotStatisticColumnPlacement=e}setPivotStatisticColumnName(e){this.pivotStatisticColumnName=e}setExpandedPaths(e){this.pivotLayout.expandedPaths=e}}class Nd{limit=void 0;configuration=new Sd;constructor(e){(0,xe.Gn)(this,{configuration:xe.sH,limit:xe.sH,setLimit:xe.XI,applySnaphot:xe.XI})}setLimit(e){this.limit=e}applySnaphot(e,t){this.setLimit(void 0!==e.data.limit&&e.data.limit>=0?e.data.limit:void 0),this.configuration=Sd.create(e.data.configuration)}buildSnapshot(e,t){const n=e.data;n.limit=void 0===this.limit||this.limit<0?void 0:this.limit,n.configuration=this.configuration.serialize()}}class yd{_view;columns=[];selectedColumnName;showAdvancedSettings=!1;constructor(e){(0,xe.Gn)(this,{columns:xe.sH,setColumns:xe.XI,selectedColumnName:xe.sH,setSelectedColumnName:xe.XI,selectedColumn:xe.EW,showAdvancedSettings:xe.sH,setShowAdvancedSettings:xe.XI,applySnaphot:xe.XI}),this._view=e.view}getColumnConfiguration(e){return P(Hi(this.columns,e),`Can't find configuration for column '${e}'`)}setColumns(e){this.columns=e}setSelectedColumnName(e){this.selectedColumnName=e}get selectedColumn(){return Hi(this.columns,this.selectedColumnName)}setShowAdvancedSettings(e){this.showAdvancedSettings=e}applySnaphot(e,t){this.setColumns(e.data.configuration.columns.map((t=>Td.create(t,e,this._view.engine.aggregateOperations)))),!this.selectedColumn&&this.columns.length&&this.setSelectedColumnName(A(this.columns,0).name)}buildSnapshot(e,t){e.data.configuration={...e.data.configuration,columns:this.columns.map((e=>e.serialize()))}}}class xd extends Cd{showHiddenColumns=!1;constructor(e,t){super(e,t),(0,xe.Gn)(this,{availableColumnsForDisplay:xe.$Z,selectedColumnsForDisplay:xe.$Z,showHiddenColumns:xe.sH,setShowHiddenColumns:xe.XI})}cloneColumn(e){return new Ed(e.name,e.type)}get availableColumns(){return[...this._editor.sourceColumns,...this._editor.leafExtendColumns,...this._editor.groupExtendColumns].map((e=>new Ed(e.name,e.type)))}get availableColumnsForDisplay(){return super.availableColumnsForDisplay.filter((e=>this.showHiddenColumns||!this._editor.columnProperties.getColumnConfiguration(e.name).hideFromView))}get selectedColumnsForDisplay(){return super.selectedColumnsForDisplay.filter((e=>this.showHiddenColumns||!this._editor.columnProperties.getColumnConfiguration(e.name).hideFromView))}setShowHiddenColumns(e){this.showHiddenColumns=e}}class Id{_editor;selector;constructor(e){(0,xe.Gn)(this,{applySnaphot:xe.XI}),this._editor=e,this.selector=new xd(e,{onChange:e=>{const t=e.selectedColumns.map((e=>this._editor.columnProperties.getColumnConfiguration(e.name))),n=this._editor.columnProperties.columns.filter((e=>!t.includes(e)));t.forEach((e=>e.setIsSelected(!0))),n.forEach((e=>e.setIsSelected(!1))),this._editor.columnProperties.setColumns([...t,...n])}})}propagateChanges(){this._editor.sorts.adaptPropagatedChanges()}applySnaphot(e,t){this.selector.setSelectedColumns(this._editor.columnProperties.columns.filter((e=>e.isSelected)).map((e=>{const t=this.selector.getColumn(e.name);return new Ed(t.name,t.type)})))}buildSnapshot(e,t){this.propagateChanges(),e.data.selectColumns=this.selector.selectedColumns.filter((e=>!Hi(this._editor.groupExtendColumns,e.name))).map(Wi)}}class wd extends Cd{cloneColumn(e){return new Ed(e.name,e.type)}get availableColumns(){return this._editor.columnProperties.columns.filter((e=>e.kind===ii.DIMENSION&&!Hi(this._editor.groupExtendColumns,e.name)&&!Hi(this._editor.horizontalPivots.selector.selectedColumns,e.name))).map((e=>new Ed(e.name,e.type)))}}class kd{selector;constructor(e){this.selector=new wd(e)}adaptPropagatedChanges(){this.selector.setSelectedColumns(this.selector.selectedColumns.filter((e=>Hi(this.selector.availableColumns,e.name))))}applySnaphot(e,t){this.selector.setSelectedColumns((e.data.groupBy?.columns??[]).map((e=>new Ed(e.name,e.type))))}buildSnapshot(e,t){e.data.groupBy=this.selector.selectedColumns.length?{columns:this.selector.selectedColumns.map(Wi)}:void 0,e.data.selectColumns=(0,tt.A)([...e.data.selectColumns,...this.selector.selectedColumns],(e=>e.name)).map(Wi)}}function Rd(){return{modules:[Nr.JKr],className:"ag-theme-quartz",animateRows:!1,getRowId:e=>e.data.name,editType:"fullRow",rowDragMultiRow:!0,rowDragEntireRow:!0,rowSelection:{mode:"multiRow",checkboxes:!0,headerCheckbox:!0,enableClickSelection:!0},selectionColumnDef:{width:40,headerClass:"!pl-[23px]",cellClass:"!pl-1.5",rowDrag:!0,rowDragText:(e,t)=>t>1?`${t} columns`:(e.rowNode?.data).name,sortable:!1,resizable:!1,suppressHeaderMenuButton:!0},suppressMoveWhenRowDragging:!0,rowHeight:20,headerHeight:20,suppressRowHoverHighlight:!1,noRowsOverlayComponent:e=>e.api.getQuickFilter()?(0,E.jsxs)("div",{className:"flex items-center border-[1.5px] border-neutral-300 p-2 font-semibold text-neutral-400",children:[(0,E.jsx)("div",{children:(0,E.jsx)(dr.WarningCircle,{className:"mr-1 text-lg"})}),"No match found"]}):e.noColumnsSelectedRenderer?e.noColumnsSelectedRenderer():(0,E.jsx)("div",{}),onModelUpdated:e=>{0===e.api.getDisplayedRowCount()?e.api.showNoRowsOverlay():e.api.hideOverlay()}}}const Od=(0,bt.PA)((function(e){const{selector:t,gridApi:n,scope:o}=e;return(0,E.jsxs)("div",{className:"flex items-center justify-center rounded-lg bg-neutral-500 px-1 py-0.5 font-mono text-xs font-bold text-white",children:[`${Ru(n).length}/${"available"===o?t.availableColumnsForDisplay.length:t.selectedColumnsForDisplay.length}`,(0,E.jsx)("span",{className:"hidden",children:"available"===o?t.availableColumnsSearchText:t.selectedColumnsSearchText})]})})),Ld=(0,bt.PA)((function(e){const{selector:t,columnLabelRenderer:n,columnActionRenderer:o,noColumnsSelectedRenderer:r}=e,[i,a]=(0,Lt.useState)([]),[s,l]=(0,Lt.useState)([]),[c,u]=(0,Lt.useState)(null),[d,p]=(0,Lt.useState)(null),g=(0,Lt.useRef)(null),m=(0,Lt.useRef)(null),h=(0,Lt.useCallback)((e=>{t.setSelectedColumns(ku(e.api))}),[t]),f=(0,Lt.useCallback)((e=>{const n=e.nodes.map((e=>e.data)).filter(L);t.setSelectedColumns(t.selectedColumns.filter((e=>!n.includes(e))))}),[t]),C=(0,Lt.useCallback)((e=>{-1!==e.overIndex&&t.setSelectedColumns(ku(e.api))}),[t]);return(0,Lt.useEffect)((()=>{if(!c||!d)return;const e=d.getRowDropZoneParams({onDragStop:e=>{h(e),c.clearFocusedCell()}});e&&(c.removeRowDropZone(e),c.addRowDropZone(e));const t=c.getRowDropZoneParams({onDragStop:e=>{f(e),d.clearFocusedCell()}});t&&(d.removeRowDropZone(t),d.addRowDropZone(t))}),[c,d,h,f]),(0,E.jsxs)("div",{className:"data-cube-column-selector flex h-full w-full",children:[(0,E.jsxs)("div",{className:"h-full w-[calc(50%_-_20px)]",children:[(0,E.jsx)("div",{className:"flex h-5 items-center text-sm",children:"Available columns:"}),(0,E.jsxs)("div",{className:"h-[calc(100%_-_20px)] rounded-sm border border-neutral-200",children:[(0,E.jsxs)("div",{className:"relative h-6 border-b border-neutral-200",children:[(0,E.jsx)("input",{className:"h-full w-full pl-10 pr-6 placeholder-neutral-400",ref:g,placeholder:"Click here to search...",value:t.availableColumnsSearchText,onChange:e=>t.setAvailableColumnsSearchText(e.target.value),onKeyDown:e=>{"Escape"===e.code&&(e.stopPropagation(),g.current?.select(),t.setAvailableColumnsSearchText(""))}}),(0,E.jsx)("div",{className:"absolute left-0 top-0 flex h-6 w-10 items-center justify-center",children:(0,E.jsx)(dr.Search,{className:"stroke-[3px] text-lg text-neutral-500"})}),(0,E.jsx)("button",{className:"absolute right-0 top-0 flex h-6 w-6 items-center justify-center text-neutral-500 disabled:text-neutral-300",disabled:!t.availableColumnsSearchText,title:"Clear search [Esc]",onClick:()=>{t.setAvailableColumnsSearchText(""),g.current?.focus()},children:(0,E.jsx)(dr.X,{className:"text-lg"})})]}),(0,E.jsx)("div",{className:"h-[calc(100%_-_24px)]",children:(0,E.jsx)(xr.W6,{theme:"legacy",...Rd(),rowDragManaged:!1,onGridReady:e=>u(e.api),onSelectionChanged:e=>{a(e.api.getSelectedNodes().map((e=>e.data)).filter(L))},quickFilterText:t.availableColumnsSearchText,rowData:t.availableColumnsForDisplay,columnDefs:[{field:"name",colId:"name",flex:1,minWidth:100,filter:!0,sortable:!1,resizable:!1,suppressHeaderMenuButton:!0,getQuickFilterText:e=>e.value,headerComponent:e=>(0,E.jsxs)("button",{title:"Double-click to add all columns",className:"flex h-full w-full items-center justify-between pl-0.5",onDoubleClick:()=>{const n=Ru(e.api);t.setSelectedColumns([...t.selectedColumns,...n]),e.api.clearFocusedCell()},children:[(0,E.jsx)("div",{children:"[All Columns]"}),(0,E.jsx)(Od,{selector:t,gridApi:e.api,scope:"available"})]}),cellRenderer:e=>{const r=e.data;return r?(0,E.jsxs)("div",{className:"flex h-full w-full cursor-pointer items-center",title:`[${r.name}]\nDouble-click to add column`,onDoubleClick:()=>{t.setSelectedColumns([...t.selectedColumns,r]),e.api.clearFocusedCell()},children:[n?.({selector:t,column:r})??(0,E.jsx)("div",{className:"h-full flex-1 items-center overflow-hidden overflow-ellipsis whitespace-nowrap pl-2",children:r.name}),(0,E.jsx)("div",{className:"flex h-full",children:o?.({selector:t,column:r})??null})]}):null}}]})})]})]}),(0,E.jsx)("div",{className:"flex h-full w-10 items-center justify-center",children:(0,E.jsxs)("div",{className:"flex flex-col",children:[(0,E.jsx)("button",{className:"flex items-center justify-center rounded-sm border border-neutral-300 bg-neutral-100 text-neutral-500 hover:bg-neutral-200 disabled:bg-neutral-200 disabled:text-neutral-400",title:"Add selected columns",onClick:()=>{if(!c)return;const e=Ru(c),n=i.filter((t=>e.includes(t)));t.setSelectedColumns([...t.selectedColumns,...n]),c.clearFocusedCell()},disabled:0===i.length,children:(0,E.jsx)(dr.ChevronRight,{className:"text-2xl"})}),(0,E.jsx)("button",{className:"mt-2 flex items-center justify-center rounded-sm border border-neutral-300 bg-neutral-100 text-neutral-500 hover:bg-neutral-200 disabled:bg-neutral-200 disabled:text-neutral-400",title:"Remove selected columns",onClick:()=>{if(!d)return;const e=Ru(d),n=s.filter((t=>e.includes(t)));t.setSelectedColumns(t.selectedColumns.filter((e=>!n.includes(e)))),d.clearFocusedCell()},disabled:0===s.length,children:(0,E.jsx)(dr.ChevronLeft,{className:"text-2xl"})})]})}),(0,E.jsxs)("div",{className:"h-full w-[calc(50%_-_20px)]",children:[(0,E.jsx)("div",{className:"flex h-5 items-center text-sm",children:"Selected columns:"}),(0,E.jsxs)("div",{className:"h-[calc(100%_-_20px)] rounded-sm border border-neutral-200",children:[(0,E.jsxs)("div",{className:"relative h-6 border-b border-neutral-200",children:[(0,E.jsx)("input",{className:"h-full w-full pl-10 placeholder-neutral-400",ref:m,placeholder:"Click here to search...",value:t.selectedColumnsSearchText,onChange:e=>t.setSelectedColumnsSearchText(e.target.value),onKeyDown:e=>{"Escape"===e.code&&(e.stopPropagation(),t.setSelectedColumnsSearchText(""))}}),(0,E.jsx)("div",{className:"absolute left-0 top-0 flex h-6 w-10 items-center justify-center",children:(0,E.jsx)(dr.Search,{className:"stroke-[3px] text-lg text-neutral-500"})}),(0,E.jsx)("button",{className:"absolute right-0 top-0 flex h-6 w-6 items-center justify-center text-neutral-500 disabled:text-neutral-300",disabled:!t.selectedColumnsSearchText,title:"Clear search [Esc]",onClick:()=>{t.setSelectedColumnsSearchText(""),m.current?.focus()},children:(0,E.jsx)(dr.X,{className:"text-lg"})})]}),(0,E.jsx)("div",{className:"h-[calc(100%_-_24px)]",children:(0,E.jsx)(xr.W6,{theme:"legacy",...Rd(),rowDragManaged:!0,onRowDragEnd:C,onGridReady:e=>p(e.api),onSelectionChanged:e=>{l(e.api.getSelectedNodes().map((e=>e.data)).filter(L))},quickFilterText:t.selectedColumnsSearchText,noRowsOverlayComponentParams:{noColumnsSelectedRenderer:r},rowData:t.selectedColumnsForDisplay,columnDefs:[{field:"name",colId:"name",flex:1,minWidth:100,filter:!0,sortable:!1,resizable:!1,suppressHeaderMenuButton:!0,getQuickFilterText:e=>e.value,headerComponent:e=>(0,E.jsxs)("button",{title:"Double-click to remove all columns",className:"flex h-full w-full items-center justify-between pl-0.5",onDoubleClick:()=>{const n=Ru(e.api);t.setSelectedColumns(t.selectedColumns.filter((e=>!n.includes(e)))),e.api.clearFocusedCell()},children:[(0,E.jsx)("div",{children:"[All Columns]"}),(0,E.jsx)(Od,{selector:t,gridApi:e.api,scope:"selected"})]}),cellRenderer:e=>{const r=e.data;return r?(0,E.jsxs)("div",{className:"flex h-full w-full cursor-pointer items-center",title:`[${r.name}]\nDouble-click to add column`,onDoubleClick:()=>{t.setSelectedColumns(t.selectedColumns.filter((e=>e!==r))),e.api.clearFocusedCell()},children:[n?.({selector:t,column:r})??(0,E.jsx)("div",{className:"h-full flex-1 items-center overflow-hidden overflow-ellipsis whitespace-nowrap pl-2",children:r.name}),(0,E.jsx)("div",{className:"flex h-full",children:o?.({selector:t,column:r})??null})]}):null}}]})})]})]})]})})),Fd=(0,bt.PA)((e=>{const{column:t}=e,[n,o,r,i]=Dc();return(0,E.jsxs)("div",{className:"group relative flex h-full items-center",children:[!i&&(0,E.jsx)("div",{className:"flex h-[18px] w-32 items-center border border-transparent px-2 text-sm text-neutral-400 group-hover:invisible",children:t.direction}),i&&(0,E.jsxs)("div",{className:"flex h-[18px] w-32 items-center justify-between border border-sky-600 bg-sky-50 pl-2 pr-0.5 text-sm",children:[(0,E.jsx)("div",{children:t.direction}),(0,E.jsx)("div",{children:(0,E.jsx)(dr.CaretDown,{})})]}),(0,E.jsxs)("button",{className:"invisible absolute right-0 z-10 flex h-[18px] w-32 items-center justify-between border border-neutral-400 pl-2 pr-0.5 text-sm text-neutral-700 group-hover:visible",onClickCapture:e=>{e.stopPropagation(),n(e)},onClick:e=>e.stopPropagation(),children:[(0,E.jsx)("div",{children:t.direction}),(0,E.jsx)("div",{children:(0,E.jsx)(dr.CaretDown,{})})]}),(0,E.jsx)(Qc,{className:"w-32",...r,children:[di.ASCENDING,di.DESCENDING].map((e=>(0,E.jsx)(Zc,{onClick:()=>{t.setDirection(e),o()},autoFocus:t.direction===e,children:e},e)))})]})})),Pd=(0,bt.PA)((e=>{const{column:t}=e;return(0,E.jsx)("div",{className:"h-full flex-1 items-center overflow-hidden overflow-ellipsis whitespace-nowrap pl-2",children:t.name.split(mi).join(" / ")})})),Bd=(0,bt.PA)((e=>{const{view:t}=e,n=t.editor.sorts;return(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(dr.TableSort,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Sorts"})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsx)(Ld,{selector:n.selector,columnLabelRenderer:e=>(0,E.jsx)(Pd,{...e}),columnActionRenderer:e=>(0,E.jsx)(Fd,{...e})})})]})}));var Dd;!function(e){e.EXTENDED_COLUMN_LEVELS="data-cube.extended-column.levels",e.GRID_CONFIGURATION_ROW_LIMIT="data-cube.grid-configuration.row-limit",e.COLUMN_CONFIGURATION_KIND="data-cube.column-configuration.kind",e.COLUMN_CONFIGURATION_UNIT="data-cube.column-configuration.unit",e.COLUMN_CONFIGURATION_DISPLAY_AS_LINK="data-cube.column-configuration.display-value-as-link",e.COLUMN_CONFIGURATION_MISSING_VALUE_FORMAT="data-cube.column-configuration.missing-value-format"}(Dd||(Dd={}));const jd=(0,bt.PA)((e=>{const{view:t}=e,n=t.editor.generalProperties,o=n.configuration,[r,i,a,s]=Dc(),[l,c,u,d]=Dc(),[p,g,m,h]=Dc(),[f,C,b,v]=Dc(),[_,T,A]=Dc(),[S,N,y]=Dc();return(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(dr.TableOptions,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"General Properties"})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsxs)("div",{className:"h-full w-full py-2",children:[(0,E.jsxs)("div",{className:"flex h-6 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Report Title:"}),(0,E.jsx)(Kc,{className:"h-6 w-96 text-lg font-semibold",value:o.name,onChange:e=>{o.setName(e.target.value)}})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Tree Column:"}),(0,E.jsx)(qc,{label:"Show root aggregation",checked:o.showRootAggregation,onChange:()=>o.setShowRootAggregation(!o.showRootAggregation)}),(0,E.jsx)(qc,{className:"ml-3",label:"Show leaf count",checked:o.showLeafCount,onChange:()=>o.setShowLeafCount(!o.showLeafCount)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm"}),(0,E.jsx)("div",{className:"mr-1 flex h-full flex-shrink-0 items-center text-sm",children:"Sort:"}),(0,E.jsx)(Jc,{className:"w-20",onClick:r,open:s,children:o.treeColumnSortDirection}),(0,E.jsx)(Qc,{className:"w-20",...a,children:[di.ASCENDING,di.DESCENDING].map((e=>(0,E.jsx)(Zc,{onClick:()=>{o.setTreeColumnSortDirection(e),i()},autoFocus:e===o.treeColumnSortDirection,children:e},e)))}),(0,E.jsx)("div",{className:"ml-3 mr-1 flex h-full flex-shrink-0 items-center text-sm",children:"Initially expand to level:"}),(0,E.jsx)(Jc,{className:"w-16",onClick:l,open:d,showAsPlaceholder:void 0===o.initialExpandLevel,children:o.initialExpandLevel??Pi}),(0,E.jsx)(Qc,{className:"w-16",...u,children:[void 0,1,2,3,4,5,6,7,8].map((e=>(0,E.jsx)(Zc,{onClick:()=>{o.setInitialExpandLevel(e),c()},autoFocus:e===o.initialExpandLevel,children:e??Pi},e??"")))})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsxs)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:["Row Limit:",(0,E.jsx)(ou,{className:"ml-1",documentationKey:Dd.GRID_CONFIGURATION_ROW_LIMIT})]}),(0,E.jsx)(Xc,{className:"w-16 text-sm",value:n.limit,min:0,step:1,defaultValue:void 0,placeholder:Pi,setValue:e=>n.setLimit(e)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm"}),(0,E.jsx)(qc,{label:"Display warning when truncated",checked:o.showWarningForTruncatedResult,onChange:()=>o.setShowWarningForTruncatedResult(!o.showWarningForTruncatedResult)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Show Selection Stats?"}),(0,E.jsx)(qc,{checked:o.showSelectionStats,onChange:()=>o.setShowSelectionStats(!o.showSelectionStats),disabled:!0}),(0,E.jsx)($c,{})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Show Lines?"}),(0,E.jsx)(qc,{label:"Horizontal",checked:o.showHorizontalGridLines,onChange:()=>o.setShowHorizontalGridLines(!o.showHorizontalGridLines)}),(0,E.jsx)(qc,{className:"ml-3",label:"Vertical",checked:o.showVerticalGridLines,onChange:()=>o.setShowVerticalGridLines(!o.showVerticalGridLines)}),(0,E.jsx)("div",{className:"ml-3 mr-1 flex h-full flex-shrink-0 items-center text-sm",children:"Color:"}),(0,E.jsx)(nu,{color:o.gridLineColor,defaultColor:_i,onChange:e=>o.setGridLineColor(e)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Hightlight Rows:"}),(0,E.jsx)(qc,{label:"Standard mode",checked:o.alternateRowsStandardMode,onChange:()=>{o.alternateRowsStandardMode?o.setAlternateRowsStandardMode(!1):(o.setAlternateRowsStandardMode(!0),o.setAlternateRows(!1))}}),(0,E.jsx)(qc,{className:"ml-3",checked:o.alternateRows,onChange:()=>{o.alternateRows?o.setAlternateRows(!1):(o.setAlternateRows(!0),o.setAlternateRowsStandardMode(!1))}}),(0,E.jsx)("div",{className:"ml-1 mr-1 flex h-full flex-shrink-0 items-center text-sm",children:"Custom: Alternate color:"}),(0,E.jsx)(nu,{disabled:!o.alternateRows,color:o.alternateRowsColor,defaultColor:Ti,onChange:e=>o.setAlternateRowsColor(e)}),(0,E.jsx)("div",{className:"ml-1 flex h-full flex-shrink-0 items-center text-sm",children:"every:"}),(0,E.jsx)(Xc,{className:"ml-1 w-16 text-sm",disabled:!o.alternateRows,min:1,step:1,defaultValue:1,isValid:e=>void 0!==e&&e>0,value:o.alternateRowsCount,setValue:e=>o.setAlternateRowsCount(e??1)}),(0,E.jsx)("div",{className:"ml-1 flex-shrink-0 text-sm",children:"rows"})]}),(0,E.jsx)("div",{className:"my-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Default Font:"}),(0,E.jsx)(Jc,{className:"w-28",onClick:p,open:h,children:o.fontFamily}),(0,E.jsxs)(Qc,{className:"w-28",...m,children:[[ti.ARIAL,ti.ROBOTO,ti.ROBOTO_CONDENSED].map((e=>(0,E.jsx)(Zc,{onClick:()=>{o.setFontFamily(e),g()},autoFocus:e===o.fontFamily,children:e},e))),(0,E.jsx)(eu,{}),[ti.GEORGIA,ti.ROBOTO_SERIF,ti.TIMES_NEW_ROMAN].map((e=>(0,E.jsx)(Zc,{onClick:()=>{o.setFontFamily(e),g()},autoFocus:e===o.fontFamily,children:e},e))),(0,E.jsx)(eu,{}),[ti.JERBRAINS_MONO,ti.ROBOTO_MONO,ti.UBUNTU_MONO].map((e=>(0,E.jsx)(Zc,{onClick:()=>{o.setFontFamily(e),g()},autoFocus:e===o.fontFamily,children:e},e)))]}),(0,E.jsx)(Jc,{className:"ml-1 w-10",onClick:f,open:v,children:o.fontSize}),(0,E.jsx)(Qc,{className:"w-10",...b,children:[4,5,6,7,8,9,10,11,12,14,16,18,20,22,24,26,28,32,36,48,72].map((e=>(0,E.jsx)(Zc,{onClick:()=>{o.setFontSize(e),C()},autoFocus:e===o.fontSize,children:e},e)))}),(0,E.jsxs)("div",{className:"relative ml-2 flex h-5",children:[(0,E.jsx)("button",{title:"Bold",className:jn("relative flex h-5 w-5 items-center justify-center rounded-bl-sm rounded-tl-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":o.fontBold}),onClick:()=>o.setFontBold(!o.fontBold),children:(0,E.jsx)(dr.FontBold,{})}),(0,E.jsx)("button",{title:"Italic",className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":o.fontItalic}),onClick:()=>o.setFontItalic(!o.fontItalic),children:(0,E.jsx)(dr.FontItalic,{})}),(0,E.jsx)("button",{title:"Underline"+(o.fontUnderline?` (${o.fontUnderline})`:""),className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-r-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":void 0!==o.fontUnderline}),onClick:()=>{void 0===o.fontUnderline?(o.setFontUnderline(ri.SOLID),o.setFontStrikethrough(!1)):o.setFontUnderline(void 0)},children:(0,E.jsx)(dr.FontUnderline,{})}),(0,E.jsxs)("button",{className:"text-2xs relative -ml-[1px] flex h-5 w-2.5 items-center justify-center border border-l-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-600 focus:z-[1]",onClick:_,children:[(0,E.jsx)("div",{className:jn("h-4 w-[0.5px] bg-neutral-200",{"opacity-0":void 0!==o.fontUnderline})}),(0,E.jsx)(dr.CaretDown,{})]}),(0,E.jsx)(Qc,{className:"w-14",...A,children:[ri.SOLID,ri.DASHED,ri.DOTTED,ri.DOUBLE,ri.WAVY].map((e=>(0,E.jsx)(Zc,{className:"relative",onClick:()=>{o.setFontUnderline(e),o.setFontStrikethrough(!1),T()},autoFocus:e===o.fontUnderline,children:(0,E.jsx)("div",{className:jn("!hover:underline absolute top-0 !underline",{"!hover:decoration-solid !decoration-solid":e===ri.SOLID,"!hover:decoration-dashed !decoration-dashed":e===ri.DASHED,"!hover:decoration-dotted !decoration-dotted":e===ri.DOTTED,"!hover:decoration-double !decoration-double":e===ri.DOUBLE,"!hover:decoration-wavy !decoration-wavy":e===ri.WAVY}),children:"                "})},e)))}),(0,E.jsx)("button",{title:"Strikethrough",className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":o.fontStrikethrough}),onClick:()=>{o.fontStrikethrough?o.setFontStrikethrough(!1):(o.setFontStrikethrough(!0),o.setFontUnderline(void 0))},children:(0,E.jsx)(dr.FontStrikethrough,{})}),(0,E.jsx)("button",{title:"Case"+(o.fontCase?` (${o.fontCase})`:""),className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-r-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":void 0!==o.fontCase}),onClick:()=>{o.setFontCase(void 0===o.fontCase?oi.UPPERCASE:void 0)},children:(0,E.jsx)(dr.FontCase,{className:"stroke-[0.5px]"})}),(0,E.jsxs)("button",{className:"text-2xs relative -ml-[1px] flex h-5 w-2.5 items-center justify-center rounded-br-sm rounded-tr-sm border border-l-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-600 focus:z-[1]",onClick:S,children:[(0,E.jsx)("div",{className:jn("h-4 w-[0.5px] bg-neutral-200",{"opacity-0":void 0!==o.fontCase})}),(0,E.jsx)(dr.CaretDown,{})]}),(0,E.jsx)(Qc,{className:"w-20",...y,children:[oi.LOWERCASE,oi.UPPERCASE,oi.CAPITALIZE].map((e=>(0,E.jsx)(Zc,{onClick:()=>{o.setFontCase(e),N()},autoFocus:e===o.fontCase,children:(0,E.jsx)("div",{className:jn({lowercase:e===oi.LOWERCASE,uppercase:e===oi.UPPERCASE,capitalize:e===oi.CAPITALIZE}),children:e})},e)))})]}),(0,E.jsxs)("div",{className:"relative ml-2 flex h-5",children:[(0,E.jsx)("button",{title:"Align Left",className:jn("relative flex h-5 w-5 items-center justify-center rounded-bl-sm rounded-tl-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":o.textAlign===ni.LEFT}),onClick:()=>o.setTextAlign(ni.LEFT),children:(0,E.jsx)(dr.TextAlignLeft,{})}),(0,E.jsx)("button",{title:"Align Center",className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":o.textAlign===ni.CENTER}),onClick:()=>o.setTextAlign(ni.CENTER),children:(0,E.jsx)(dr.TextAlignCenter,{})}),(0,E.jsx)("button",{title:"Align Right",className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center rounded-br-sm rounded-tr-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":o.textAlign===ni.RIGHT}),onClick:()=>o.setTextAlign(ni.RIGHT),children:(0,E.jsx)(dr.TextAlignRight,{})})]})]}),(0,E.jsxs)("div",{className:"mt-2 flex w-full",children:[(0,E.jsx)("div",{className:"flex h-6 w-32 flex-shrink-0 items-center text-sm",children:"Default Colors:"}),(0,E.jsxs)("div",{className:"h-18",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"w-16 flex-shrink-0"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Normal"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Negative"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Zero"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Error"})]}),(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-full w-16 flex-shrink-0 items-center text-sm",children:"Foreground:"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(nu,{color:o.normalForegroundColor,defaultColor:wi,onChange:e=>o.setNormalForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(nu,{color:o.negativeForegroundColor,defaultColor:Oi,onChange:e=>o.setNegativeForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(nu,{color:o.zeroForegroundColor,defaultColor:Li,onChange:e=>o.setZeroForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(nu,{color:o.errorForegroundColor,defaultColor:Fi,onChange:e=>o.setErrorForegroundColor(e)})})]}),(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-full w-16 flex-shrink-0 items-center text-sm",children:"Background:"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(nu,{color:o.normalBackgroundColor,defaultColor:ki,onChange:e=>o.setNormalBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(nu,{color:o.negativeBackgroundColor,defaultColor:ki,onChange:e=>o.setNegativeBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(nu,{color:o.zeroBackgroundColor,defaultColor:ki,onChange:e=>o.setZeroBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(nu,{color:o.errorBackgroundColor,defaultColor:ki,onChange:e=>o.setErrorBackgroundColor(e)})})]})]})]}),(0,E.jsxs)("div",{className:"mt-2 flex w-full",children:[(0,E.jsx)("div",{className:"flex h-6 w-32 flex-shrink-0 items-center text-sm"}),(0,E.jsxs)("div",{className:"w-80",children:[(0,E.jsx)("div",{className:"mb-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsx)(Yc,{compact:!0,disabled:o.isUsingDefaultStyling,onClick:()=>o.useDefaultStyling(),children:"Use Default Styling"})]})]})]})})]})})),Md=(0,bt.PA)((e=>{const{column:t,editor:n}=e,o=n.columnProperties.getColumnConfiguration(t.name).hideFromView;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:jn("items-center overflow-hidden overflow-ellipsis whitespace-nowrap pl-2",{"text-neutral-400":o}),children:t.name}),Boolean(Hi(n.leafExtendColumns,t.name))&&(0,E.jsx)("div",{className:"ml-1.5 mr-0.5 flex h-3.5 flex-shrink-0 items-center rounded-sm border border-neutral-300 bg-neutral-100 px-1 text-xs font-medium uppercase text-neutral-600",children:"Extended (Leaf Level)"}),Boolean(Hi(n.groupExtendColumns,t.name))&&(0,E.jsx)("div",{className:"ml-1.5 mr-0.5 flex h-3.5 flex-shrink-0 items-center rounded-sm border border-neutral-300 bg-neutral-100 px-1 text-xs font-medium uppercase text-neutral-600",children:"Extended (Group Level)"})]})})),Ud=(0,bt.PA)((e=>{const{view:t}=e,n=t.editor,o=n.columns;return(0,Lt.useEffect)((()=>()=>o.propagateChanges()),[o]),(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6 justify-between",children:[(0,E.jsxs)("div",{className:"flex h-full",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(dr.TableColumns,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Columns"})]}),(0,E.jsx)("div",{className:"flex h-full items-center pr-2",children:(0,E.jsx)(qc,{label:"Show hidden columns?",checked:o.selector.showHiddenColumns,onChange:()=>o.selector.setShowHiddenColumns(!o.selector.showHiddenColumns)})})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsx)(Ld,{selector:o.selector,noColumnsSelectedRenderer:()=>(0,E.jsxs)("div",{className:"flex items-center border-[1.5px] border-neutral-200 p-2 font-semibold text-neutral-400",children:[(0,E.jsx)("div",{children:(0,E.jsx)(dr.Warning,{className:"mr-1 text-lg"})}),"No columns selected"]}),columnLabelRenderer:e=>(0,E.jsx)(Md,{...e,editor:n})})})]})})),Gd=(0,bt.PA)((e=>{const{view:t}=e,n=t.editor.verticalPivots;return(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(dr.TableGroupBy,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Vertical Pivots"})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsx)(Ld,{selector:n.selector})})]})})),Vd=(0,bt.PA)((e=>{const{view:t}=e,n=t.editor.horizontalPivots;return(0,Lt.useEffect)((()=>()=>n.propagateChanges()),[n]),(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(dr.TablePivot,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Horizontal Pivots"})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsx)(Ld,{selector:n.selector,columnActionRenderer:e=>(0,E.jsx)(Fd,{...e})})})]})})),Hd=(0,bt.PA)((e=>{const{view:t}=e,n=t.editor,o=n.columnProperties,r=t.editor.generalProperties.configuration,i=o.selectedColumn,[a,s,l,c]=Dc(),[u,d,p,g]=Dc(),[m,h,f,C]=Dc(),[b,v,_,T]=Dc(),[A,S,N,y]=Dc(),[x,I,w,k]=Dc(),[R,O,L,F]=Dc(),[P,B,D]=Dc(),[j,M,U]=Dc();return(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6 justify-between",children:[(0,E.jsxs)("div",{className:"flex h-full",children:[(0,E.jsxs)("div",{className:"relative flex h-6 items-center text-xl font-medium",children:[(0,E.jsx)(dr.TableColumn,{}),(0,E.jsx)(dr.TableColumnOptions__Settings,{className:"absolute bottom-1 right-0 bg-white text-xs"})]}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Column Properties"})]}),(0,E.jsxs)("div",{className:"flex h-full items-center pr-2",children:[(0,E.jsx)(qc,{label:"Show advanced settings?",checked:o.showAdvancedSettings,onChange:()=>o.setShowAdvancedSettings(!o.showAdvancedSettings)}),(0,E.jsx)(zc,{})]})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsxs)("div",{className:"h-full w-full py-2",children:[(0,E.jsxs)("div",{className:"flex h-6 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Choose Column:"}),(0,E.jsx)(Jc,{className:"w-80",onClick:a,open:c,children:(0,E.jsxs)("div",{className:"flex h-full w-full items-center",children:[(0,E.jsx)("div",{className:"overflow-hidden overflow-ellipsis whitespace-nowrap",children:i?.name??Pi}),i&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"ml-1.5 mr-0.5 flex h-3.5 w-12 flex-shrink-0 items-center justify-center rounded-sm border border-neutral-300 bg-neutral-100 text-xs font-medium uppercase text-neutral-600",children:i.dataType}),Boolean(Hi(n.leafExtendColumns,i.name))&&(0,E.jsx)("div",{className:"mr-0.5 flex h-3.5 flex-shrink-0 items-center rounded-sm border border-neutral-300 bg-neutral-100 px-1 text-xs font-medium uppercase text-neutral-600",children:"Extended (Leaf Level)"}),Boolean(Hi(n.groupExtendColumns,i.name))&&(0,E.jsx)("div",{className:"mr-0.5 flex h-3.5 flex-shrink-0 items-center rounded-sm border border-neutral-300 bg-neutral-100 px-1 text-xs font-medium uppercase text-neutral-600",children:"Extended (Group Level)"})]})]})}),(0,E.jsx)(Qc,{className:"w-80",...l,children:o.columns.toSorted($i).map((e=>(0,E.jsxs)(Zc,{onClick:()=>{o.setSelectedColumnName(e.name),s()},autoFocus:e.name===i?.name,children:[(0,E.jsx)("div",{className:"overflow-hidden overflow-ellipsis whitespace-nowrap",children:e.name}),(0,E.jsx)("div",{className:"ml-1.5 mr-0.5 flex h-3.5 w-12 flex-shrink-0 items-center justify-center rounded-sm border border-neutral-300 bg-neutral-100 text-xs font-medium uppercase text-neutral-600",children:e.dataType}),Boolean(Hi(n.leafExtendColumns,e.name))&&(0,E.jsx)("div",{className:"mr-0.5 flex h-3.5 flex-shrink-0 items-center rounded-sm border border-neutral-300 bg-neutral-100 px-1 text-xs font-medium uppercase text-neutral-600",children:"Extended (Leaf Level)"}),Boolean(Hi(n.groupExtendColumns,e.name))&&(0,E.jsx)("div",{className:"mr-0.5 flex h-3.5 flex-shrink-0 items-center rounded-sm border border-neutral-300 bg-neutral-100 px-1 text-xs font-medium uppercase text-neutral-600",children:"Extended (Group Level)"})]},e.name)))}),o.showAdvancedSettings&&i&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"mx-2 h-[1px] w-4 flex-shrink-0 bg-neutral-400"}),(0,E.jsxs)("div",{className:"flex h-6 items-center",children:[(0,E.jsxs)("div",{className:"flex h-full flex-shrink-0 items-center text-sm",children:["Column Kind:",(0,E.jsx)(ou,{className:"ml-1",documentationKey:Dd.COLUMN_CONFIGURATION_KIND})]}),(0,E.jsx)(Jc,{className:"ml-1.5 w-20",onClick:u,open:g,disabled:Boolean(Hi(n.verticalPivots.selector.selectedColumns,i.name)??Hi(n.horizontalPivots.selector.selectedColumns,i.name)),title:Boolean(Hi(n.verticalPivots.selector.selectedColumns,i.name)??Hi(n.horizontalPivots.selector.selectedColumns,i.name))?"Column kind cannot be changed while the column is used in pivot":void 0,children:i.kind}),(0,E.jsx)(Qc,{className:"w-20",...p,children:[ii.DIMENSION,ii.MEASURE].map((e=>(0,E.jsx)(Zc,{onClick:()=>{e!==i.kind&&(i.setKind(e),i.setExcludedFromPivot(e===ii.DIMENSION),i.setPivotStatisticColumnFunction(e===ii.DIMENSION?void 0:li.SUM)),d()},autoFocus:e===i.kind,children:e},e)))}),(0,E.jsx)(zc,{})]})]})]}),(0,E.jsx)("div",{className:"-ml-2 mb-2 mt-3 h-[1px] w-[calc(100%_+_16px)] bg-neutral-200"}),i&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Display Name:"}),(0,E.jsx)(Kc,{className:"w-80",value:i.displayName??"",onChange:e=>{const t=e.target.value;i.setDisplayName(""!==t?t:void 0)}})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Aggregation:"}),(0,E.jsx)(Jc,{className:"w-32",onClick:m,disabled:i.kind===ii.DIMENSION,open:C,children:i.aggregateOperation.operator}),(0,E.jsx)(Qc,{className:"w-32",...f,children:t.engine.aggregateOperations.filter((e=>e.isCompatibleWithColumn(i))).map((e=>(0,E.jsx)(Zc,{onClick:()=>{e!==i.aggregateOperation&&(i.setAggregateOperation(e),i.setAggregationParameters(e.generateDefaultParameterValues(i))),h()},autoFocus:e===i.aggregateOperation,children:e.label},e.operator)))}),(0,E.jsx)(qc,{className:"ml-3",label:"Exclude from horizontal pivot",checked:i.excludedFromPivot,onChange:()=>i.setExcludedFromPivot(!i.excludedFromPivot),disabled:i.kind===ii.DIMENSION})]}),i.dataType===gi.NUMBER&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Number Format:"}),(0,E.jsx)(Xc,{className:"w-16 text-sm",min:0,step:1,value:i.decimals??0,setValue:e=>{i.setDecimals(e)}}),(0,E.jsx)("div",{className:"ml-1 flex-shrink-0 text-sm",children:"decimal places"}),(0,E.jsx)(qc,{className:"ml-3",label:"Display commas",checked:i.displayCommas,onChange:()=>i.setDisplayCommas(!i.displayCommas)}),(0,E.jsx)(qc,{className:"ml-3",label:"Negative number in parens",checked:i.negativeNumberInParens,onChange:()=>i.setNegativeNumberInParens(!i.negativeNumberInParens)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm"}),(0,E.jsx)("div",{className:"mr-1 flex h-full flex-shrink-0 items-center text-sm",children:"Scale:"}),(0,E.jsx)(Jc,{className:"w-32",onClick:b,open:T,showAsPlaceholder:void 0===i.numberScale,children:i.numberScale??Pi}),(0,E.jsx)(Qc,{className:"w-32",..._,children:[void 0,ei.PERCENT,ei.BASIS_POINT,ei.THOUSANDS,ei.MILLIONS,ei.BILLIONS,ei.TRILLIONS,ei.AUTO].map((e=>(0,E.jsx)(Zc,{onClick:()=>{i.setNumberScale(e),v()},autoFocus:e===i.numberScale,children:e??Pi},e??"")))}),(0,E.jsxs)("div",{className:"ml-3 mr-1 flex h-full flex-shrink-0 items-center text-sm",children:["Unit:",(0,E.jsx)(ou,{className:"ml-1",documentationKey:Dd.COLUMN_CONFIGURATION_UNIT})]}),(0,E.jsx)(Kc,{className:"w-16",value:i.unit??"",onChange:e=>{const t=e.target.value.trim();i.setUnit(""!==t.trim()?t:void 0)},placeholder:Pi})]})]}),i.dataType===gi.TEXT&&(0,E.jsx)(E.Fragment,{children:(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsxs)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:["Dislay as Link?",(0,E.jsx)(ou,{className:"ml-1",documentationKey:Dd.COLUMN_CONFIGURATION_DISPLAY_AS_LINK})]}),(0,E.jsx)(qc,{checked:i.displayAsLink,onChange:()=>i.setDisplayAsLink(!i.displayAsLink)}),(0,E.jsx)("div",{className:"ml-1 h-[1px] w-2 flex-shrink-0 bg-neutral-400"}),(0,E.jsx)("div",{className:"ml-2 mr-1.5 flex h-full flex-shrink-0 items-center text-sm",children:"Use parameter in link as label:"}),(0,E.jsx)(Kc,{className:"w-48",placeholder:vi,value:i.linkLabelParameter??"",onChange:e=>{const t=e.target.value.trim();i.setLinkLabelParameter(""!==t?t:void 0)}})]})}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsxs)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:["Missing Value Format:",(0,E.jsx)(ou,{className:"ml-1",documentationKey:Dd.COLUMN_CONFIGURATION_MISSING_VALUE_FORMAT})]}),(0,E.jsx)(Kc,{className:"w-16",value:i.missingValueDisplayText??"",onChange:e=>{const t=e.target.value;i.setMissingValueDisplayText(""!==t?t:void 0)},placeholder:Pi})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Visibility:"}),(0,E.jsx)(qc,{label:"Blur content",checked:i.blur,onChange:()=>i.setBlur(!i.blur),disabled:i.hideFromView}),(0,E.jsx)(qc,{className:"ml-3",label:"Hide from view",checked:i.hideFromView,onChange:()=>i.setHideFromView(!i.hideFromView)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Pin:"}),(0,E.jsx)(Jc,{className:"w-16",onClick:A,open:y,showAsPlaceholder:void 0===i.pinned,children:i.pinned??Pi}),(0,E.jsx)(Qc,{className:"w-16",...N,children:[void 0,pi.LEFT,pi.RIGHT].map((e=>(0,E.jsx)(Zc,{onClick:()=>{i.setPinned(e),S()},autoFocus:e===i.pinned,children:e??Pi},e??"")))})]}),(0,E.jsxs)("div",{className:"mt-1.5 flex h-6 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Width:"}),(0,E.jsx)(qc,{label:"(Any)",checked:void 0===i.fixedWidth&&void 0===i.minWidth&&void 0===i.maxWidth,onChange:()=>{void 0===i.fixedWidth&&void 0===i.minWidth&&void 0===i.maxWidth?(i.setFixedWidth(300),i.setMinWidth(void 0),i.setMaxWidth(void 0)):(i.setFixedWidth(void 0),i.setMinWidth(void 0),i.setMaxWidth(void 0))}}),(0,E.jsx)(qc,{className:"ml-3",label:"Fixed",checked:void 0!==i.fixedWidth,onChange:()=>{i.setFixedWidth(void 0!==i.fixedWidth?void 0:300),i.setMinWidth(void 0),i.setMaxWidth(void 0)}}),(0,E.jsx)("div",{className:"ml-1 h-[1px] w-2 flex-shrink-0 bg-neutral-400"}),(0,E.jsx)(Xc,{className:"ml-1 w-16 text-sm",min:0,step:50,defaultValue:void 0,isValid:e=>void 0!==e&&e>0,value:i.fixedWidth,setValue:e=>{i.setFixedWidth(e)},disabled:void 0!==i.minWidth||void 0!==i.maxWidth}),(0,E.jsx)(qc,{className:"ml-3",label:"In range",checked:void 0!==i.minWidth||void 0!==i.maxWidth,onChange:()=>{void 0===i.minWidth&&void 0===i.maxWidth?(i.setMinWidth(50),i.setMaxWidth(void 0),i.setFixedWidth(void 0)):(i.setMinWidth(void 0),i.setMaxWidth(void 0),i.setFixedWidth(void 0))}}),(0,E.jsx)("div",{className:"ml-1 h-[1px] w-2 flex-shrink-0 bg-neutral-400"}),(0,E.jsx)(Xc,{className:"ml-1 w-16 text-sm",min:0,step:50,defaultValue:void 0,isValid:e=>void 0!==e&&e>0,value:i.minWidth,setValue:e=>{i.setMinWidth(e)},disabled:void 0!==i.fixedWidth}),(0,E.jsx)("div",{className:"ml-1 h-[1px] w-1 flex-shrink-0 bg-neutral-400"}),(0,E.jsx)(Xc,{className:"ml-1 w-16 text-sm",min:i.minWidth??0,step:50,defaultValue:void 0,isValid:e=>void 0!==e&&e>=(i.minWidth??0),value:i.maxWidth,setValue:e=>{i.setMaxWidth(e)},disabled:void 0!==i.fixedWidth})]}),(0,E.jsx)("div",{className:"my-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Font:"}),(0,E.jsx)(Jc,{className:"w-28",onClick:x,open:k,children:i.fontFamily??r.fontFamily}),(0,E.jsxs)(Qc,{className:"w-28",...w,children:[[ti.ARIAL,ti.ROBOTO,ti.ROBOTO_CONDENSED].map((e=>(0,E.jsx)(Zc,{onClick:()=>{i.setFontFamily(e),I()},autoFocus:e===(i.fontFamily??r.fontFamily),children:e},e))),(0,E.jsx)(eu,{}),[ti.GEORGIA,ti.ROBOTO_SERIF,ti.TIMES_NEW_ROMAN].map((e=>(0,E.jsx)(Zc,{onClick:()=>{i.setFontFamily(e),I()},autoFocus:e===(i.fontFamily??r.fontFamily),children:e},e))),(0,E.jsx)(eu,{}),[ti.JERBRAINS_MONO,ti.ROBOTO_MONO,ti.UBUNTU_MONO].map((e=>(0,E.jsx)(Zc,{onClick:()=>{i.setFontFamily(e),I()},autoFocus:e===(i.fontFamily??r.fontFamily),children:e},e)))]}),(0,E.jsx)(Jc,{className:"ml-1 w-10",onClick:R,open:F,children:i.fontSize??r.fontSize}),(0,E.jsx)(Qc,{className:"w-10",...L,children:[4,5,6,7,8,9,10,11,12,14,16,18,20,22,24,26,28,32,36,48,72].map((e=>(0,E.jsx)(Zc,{onClick:()=>{i.setFontSize(e),O()},autoFocus:e===(i.fontSize??r.fontSize),children:e},e)))}),(0,E.jsxs)("div",{className:"relative ml-2 flex h-5",children:[(0,E.jsx)("button",{title:"Bold",className:jn("relative flex h-5 w-5 items-center justify-center rounded-bl-sm rounded-tl-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":i.fontBold??r.fontBold}),onClick:()=>i.setFontBold(!(i.fontBold??r.fontBold)),children:(0,E.jsx)(dr.FontBold,{})}),(0,E.jsx)("button",{title:"Italic",className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":i.fontItalic??r.fontItalic}),onClick:()=>i.setFontItalic(!(i.fontItalic??r.fontItalic)),children:(0,E.jsx)(dr.FontItalic,{})}),(0,E.jsx)("button",{title:"Underline"+(i.fontUnderline??r.fontUnderline?` (${i.fontUnderline??r.fontUnderline})`:""),className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-r-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":void 0!==(i.fontUnderline??r.fontUnderline)}),onClick:()=>{void 0===(i.fontUnderline??r.fontUnderline)?(i.setFontUnderline(ri.SOLID),i.setFontStrikethrough(!1)):i.setFontUnderline(void 0)},children:(0,E.jsx)(dr.FontUnderline,{})}),(0,E.jsxs)("button",{className:"text-2xs relative -ml-[1px] flex h-5 w-2.5 items-center justify-center border border-l-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-600 focus:z-[1]",onClick:P,children:[(0,E.jsx)("div",{className:jn("h-4 w-[0.5px] bg-neutral-200",{"opacity-0":void 0!==(i.fontUnderline??r.fontUnderline)})}),(0,E.jsx)(dr.CaretDown,{})]}),(0,E.jsx)(Qc,{className:"w-14",...D,children:[ri.SOLID,ri.DASHED,ri.DOTTED,ri.DOUBLE,ri.WAVY].map((e=>(0,E.jsx)(Zc,{className:"relative",onClick:()=>{i.setFontUnderline(e),i.setFontStrikethrough(!1),B()},autoFocus:e===(i.fontUnderline??r.fontUnderline),children:(0,E.jsx)("div",{className:jn("!hover:underline absolute top-0 !underline",{"!hover:decoration-solid !decoration-solid":e===ri.SOLID,"!hover:decoration-dashed !decoration-dashed":e===ri.DASHED,"!hover:decoration-dotted !decoration-dotted":e===ri.DOTTED,"!hover:decoration-double !decoration-double":e===ri.DOUBLE,"!hover:decoration-wavy !decoration-wavy":e===ri.WAVY}),children:"                "})},e)))}),(0,E.jsx)("button",{title:"Strikethrough",className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":i.fontStrikethrough??r.fontStrikethrough}),onClick:()=>{i.fontStrikethrough??r.fontStrikethrough?i.setFontStrikethrough(!1):(i.setFontStrikethrough(!0),i.setFontUnderline(void 0))},children:(0,E.jsx)(dr.FontStrikethrough,{})}),(0,E.jsx)("button",{title:"Case"+(i.fontCase??r.fontCase?` (${i.fontCase??r.fontCase})`:""),className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-r-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":void 0!==(i.fontCase??r.fontCase)}),onClick:()=>{void 0===(i.fontCase??r.fontCase)?i.setFontCase(oi.UPPERCASE):i.setFontCase(void 0)},children:(0,E.jsx)(dr.FontCase,{className:"stroke-[0.5px]"})}),(0,E.jsxs)("button",{className:"text-2xs relative -ml-[1px] flex h-5 w-2.5 items-center justify-center rounded-br-sm rounded-tr-sm border border-l-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-600 focus:z-[1]",onClick:j,children:[(0,E.jsx)("div",{className:jn("h-4 w-[0.5px] bg-neutral-200",{"opacity-0":void 0!==(i.fontCase??r.fontCase)})}),(0,E.jsx)(dr.CaretDown,{})]}),(0,E.jsx)(Qc,{className:"w-20",...U,children:[oi.LOWERCASE,oi.UPPERCASE,oi.CAPITALIZE].map((e=>(0,E.jsx)(Zc,{onClick:()=>{i.setFontCase(e),M()},autoFocus:e===(i.fontCase??r.fontCase),children:(0,E.jsx)("div",{className:jn({lowercase:e===oi.LOWERCASE,uppercase:e===oi.UPPERCASE,capitalize:e===oi.CAPITALIZE}),children:e})},e)))})]}),(0,E.jsxs)("div",{className:"relative ml-2 flex h-5",children:[(0,E.jsx)("button",{title:"Align Left",className:jn("relative flex h-5 w-5 items-center justify-center rounded-bl-sm rounded-tl-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":(i.textAlign??r.textAlign)===ni.LEFT}),onClick:()=>i.setTextAlign(ni.LEFT),children:(0,E.jsx)(dr.TextAlignLeft,{})}),(0,E.jsx)("button",{title:"Align Center",className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":(i.textAlign??r.textAlign)===ni.CENTER}),onClick:()=>i.setTextAlign(ni.CENTER),children:(0,E.jsx)(dr.TextAlignCenter,{})}),(0,E.jsx)("button",{title:"Align Right",className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center rounded-br-sm rounded-tr-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":(i.textAlign??r.textAlign)===ni.RIGHT}),onClick:()=>i.setTextAlign(ni.RIGHT),children:(0,E.jsx)(dr.TextAlignRight,{})})]})]}),(0,E.jsxs)("div",{className:"mt-2 flex w-full",children:[(0,E.jsx)("div",{className:"flex h-6 w-32 flex-shrink-0 items-center text-sm",children:"Colors:"}),(0,E.jsxs)("div",{className:"h-18",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"w-16 flex-shrink-0"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Normal"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Negative"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Zero"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Error"})]}),(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-full w-16 flex-shrink-0 items-center text-sm",children:"Foreground:"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(nu,{color:i.normalForegroundColor??r.normalForegroundColor,defaultColor:r.normalForegroundColor,onChange:e=>i.setNormalForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(nu,{color:i.negativeForegroundColor??r.negativeForegroundColor,defaultColor:r.negativeForegroundColor,onChange:e=>i.setNegativeForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(nu,{color:i.zeroForegroundColor??r.zeroForegroundColor,defaultColor:r.zeroForegroundColor,onChange:e=>i.setZeroForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(nu,{color:i.errorForegroundColor??r.errorForegroundColor,defaultColor:r.errorForegroundColor,onChange:e=>i.setErrorForegroundColor(e)})})]}),(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-full w-16 flex-shrink-0 items-center text-sm",children:"Background:"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(nu,{color:i.normalBackgroundColor??r.normalBackgroundColor,defaultColor:r.normalBackgroundColor,onChange:e=>i.setNormalBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(nu,{color:i.negativeBackgroundColor??r.negativeBackgroundColor,defaultColor:r.negativeBackgroundColor,onChange:e=>i.setNegativeBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(nu,{color:i.zeroBackgroundColor??r.zeroBackgroundColor,defaultColor:r.zeroBackgroundColor,onChange:e=>i.setZeroBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(nu,{color:i.errorBackgroundColor??r.errorBackgroundColor,defaultColor:r.errorBackgroundColor,onChange:e=>i.setErrorBackgroundColor(e)})})]})]})]}),(0,E.jsxs)("div",{className:"mt-2 flex w-full",children:[(0,E.jsx)("div",{className:"flex h-6 w-32 flex-shrink-0 items-center text-sm"}),(0,E.jsxs)("div",{className:"w-80",children:[(0,E.jsx)("div",{className:"mb-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsx)(Yc,{compact:!0,disabled:i.isUsingDefaultStyling,onClick:()=>i.useDefaultStyling(),children:"Use Default Styling"})]})]})]})]})})]})})),Wd=(0,bt.PA)((e=>{const t=Wc().alertService,{view:n}=e,o=n.editor,r=o.currentTab,i=[Kd.COLUMNS,Kd.VERTICAL_PIVOTS,Kd.HORIZONTAL_PIVOTS,Kd.SORTS,Kd.GENERAL_PROPERTIES,Kd.COLUMN_PROPERTIES];return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{className:"relative h-[calc(100%_-_40px)] w-full px-2 pt-8",children:[(0,E.jsx)("div",{className:"absolute top-0 flex h-9 w-[calc(100%_-_16px)] overflow-y-hidden pt-2",children:i.map((e=>(0,E.jsx)("button",{onClick:()=>o.setCurrentTab(e),className:jn("relative flex h-6 items-center justify-center whitespace-nowrap border border-b-0 border-l-0 border-neutral-300 px-2 first:border-l focus:z-10",{"-top-0.5 h-[27px] border-b-0 bg-white":e===r}),children:e},e)))}),(0,E.jsxs)("div",{className:"h-full w-full overflow-auto border border-neutral-300 bg-white",children:[r===Kd.COLUMNS&&(0,E.jsx)(Ud,{view:n}),r===Kd.VERTICAL_PIVOTS&&(0,E.jsx)(Gd,{view:n}),r===Kd.HORIZONTAL_PIVOTS&&(0,E.jsx)(Vd,{view:n}),r===Kd.SORTS&&(0,E.jsx)(Bd,{view:n}),r===Kd.GENERAL_PROPERTIES&&(0,E.jsx)(jd,{view:n}),r===Kd.COLUMN_PROPERTIES&&(0,E.jsx)(Hd,{view:n})]})]}),(0,E.jsxs)("div",{className:"flex h-10 items-center justify-end px-2",children:[(0,E.jsx)(Yc,{onClick:()=>o.display.close(),children:"Cancel"}),(0,E.jsx)(Yc,{className:"ml-2",disabled:o.finalizationState.isInProgress,onClick:()=>{o.applyChanges().catch((e=>t.alertUnhandledError(e)))},children:"Apply"}),(0,E.jsx)(Yc,{className:"ml-2",disabled:o.finalizationState.isInProgress,onClick:()=>{o.applyChanges({closeAfterApply:!0}).catch((e=>t.alertUnhandledError(e)))},children:"OK"})]})]})}));class $d extends Cd{cloneColumn(e){return new bd(e.name,e.type,e.direction,e.onChange)}get availableColumns(){return this._editor.columnProperties.columns.filter((e=>e.kind===ii.DIMENSION&&!Hi(this._editor.groupExtendColumns,e.name))).map((e=>new bd(e.name,e.type,di.ASCENDING,(()=>this.onChange?.(this)))))}}class zd{_editor;selector;castColumns=[];constructor(e){(0,xe.Gn)(this,{castColumns:xe.sH.ref,pivotResultColumns:xe.EW,setCastColumns:xe.XI,applySnaphot:xe.XI}),this._editor=e,this.selector=new $d(e,{onChange:e=>{this._editor.columnProperties.columns.forEach((t=>t.setPivotSortDirection(Hi(e.selectedColumns,t.name)?.direction)))}})}get pivotResultColumns(){return this.castColumns.filter((e=>Gi(e.name))).map(Wi)}setCastColumns(e){this.castColumns=e}propagateChanges(){this._editor.verticalPivots.adaptPropagatedChanges(),this._editor.sorts.adaptPropagatedChanges()}applySnaphot(e,t){this.selector.setSelectedColumns((e.data.pivot?.columns??[]).map((e=>new bd(e.name,e.type,Hi(t.columns,e.name)?.pivotSortDirection??di.ASCENDING,(()=>this.selector.onChange?.(this.selector)))))),this.setCastColumns(e.data.pivot?.castColumns??[])}buildSnapshot(e,t){e.data.pivot=this.selector.selectedColumns.length?{columns:this.selector.selectedColumns.map(Wi),castColumns:this.castColumns.map(Wi)}:void 0,e.data.selectColumns=(0,tt.A)([...e.data.selectColumns,...this.selector.selectedColumns],(e=>e.name)).map(Wi)}}class Yd{_editor;pivotLayout=new Ad;constructor(e){(0,xe.Gn)(this,{pivotLayout:xe.sH,applySnaphot:xe.XI}),this._editor=e}applySnaphot(e,t){this.pivotLayout=Ad.create(e.data.configuration.pivotLayout)}buildSnapshot(e,t){this.pivotLayout.setExpandedPaths(Zl(t.data.groupBy?.columns??[],this._editor.verticalPivots.selector.selectedColumns,this.pivotLayout.expandedPaths)),e.data.configuration={...e.data.configuration,pivotLayout:this.pivotLayout.serialize()}}}class Xd extends N{sourceInformation}var Kd;!function(e){e.GENERAL_PROPERTIES="General Properties",e.COLUMN_PROPERTIES="Column Properties",e.COLUMNS="Columns",e.VERTICAL_PIVOTS="Vertical Pivots",e.HORIZONTAL_PIVOTS="Horizontal Pivots",e.SORTS="Sorts"}(Kd||(Kd={}));class qd extends ld{view;display;finalizationState=Ie.create();generalProperties;pivotLayout;columnProperties;columns;horizontalPivots;verticalPivots;sorts;currentTab=Kd.GENERAL_PROPERTIES;sourceColumns=[];leafExtendColumns=[];groupExtendColumns=[];constructor(e){super(e.engine,e.settingService,e.snapshotService),(0,xe.Gn)(this,{currentTab:xe.sH,setCurrentTab:xe.XI,sourceColumns:xe.sH.ref,leafExtendColumns:xe.sH.ref,groupExtendColumns:xe.sH.ref,applySnapshot:xe.XI,applyChanges:xe.XI}),this.view=e,this.display=this.view.dataCube.layoutService.newDisplay("Properties",(()=>(0,E.jsx)(Wd,{view:this.view}))),this.generalProperties=new Nd(this),this.pivotLayout=new Yd(this),this.columnProperties=new yd(this),this.columns=new Id(this),this.horizontalPivots=new zd(this),this.verticalPivots=new kd(this),this.sorts=new _d(this)}setCurrentTab(e){this.currentTab=e}async applySnapshot(e,t){this.sourceColumns=e.data.sourceColumns,this.leafExtendColumns=e.data.leafExtendedColumns,this.groupExtendColumns=e.data.groupExtendedColumns;const n=Xi.serialization.fromJson(e.data.configuration);this.generalProperties.applySnaphot(e,n),this.pivotLayout.applySnaphot(e,n),this.columnProperties.applySnaphot(e,n),this.columns.applySnaphot(e,n),this.horizontalPivots.applySnaphot(e,n),this.verticalPivots.applySnaphot(e,n),this.sorts.applySnaphot(e,n)}getSnapshotSubscriberName(){return"editor"}async applyChanges(e){this.finalizationState.inProgress();const t=P(this.getLatestSnapshot()),n=t.clone();if(this.generalProperties.buildSnapshot(n,t),this.pivotLayout.buildSnapshot(n,t),this.columnProperties.buildSnapshot(n,t),this.columns.buildSnapshot(n,t),this.horizontalPivots.buildSnapshot(n,t),this.verticalPivots.buildSnapshot(n,t),this.sorts.buildSnapshot(n,t),n.finalize(),n.hashCode!==t.hashCode){const e=this.view.taskService.newTask("Validating query..."),t=n.clone();t.data.pivot&&(t.data.pivot.castColumns=this.sorts.selector.availableColumns.filter((e=>!Hi(t.data.groupExtendedColumns,e.name))).map(Wi));const o="->",r=await this.view.engine.getPartialQueryCode(t,!0);try{await this.view.engine.getQueryCodeRelationReturnType(o+r,vl([],[this.view.source.query]),this.view.source)}catch(e){return w(e),void(e instanceof Xd?this.view.dataCube.alertService.alertCodeCheckError(e,r,o,{message:"Query Validation Failure: Can't safely apply changes. Check the query code below for more details.",text:`Error: ${e.message}`}):this.view.dataCube.alertService.alertError(e,{message:"Query Validation Failure: Can't safely apply changes.",text:`Error: ${e.message}`}))}finally{this.view.taskService.endTask(e),this.finalizationState.complete()}this.publishSnapshot(n)}else this.finalizationState.complete();e?.closeAfterApply&&this.display.close()}}function Jd(e,t,n,o){const r=o.view.engine.getFilterOperation(t);return{name:`Add Filter: ${e.name} ${r.textLabel}${n.label?` ${n.label}`:""}`,action:()=>{o.addNewFilterCondition(new gd(o.filterTree.root,{name:e.name,type:e.type},r,n.value,void 0))}}}class Qd extends ld{view;constructor(e){super(e.engine,e.settingService,e.snapshotService),this.view=e}configuration=new Xi;menuBuilder;getColumnConfiguration(e){return Hi(this.configuration.columns,e)}filterTree={nodes:new Map};addNewFilterCondition(e){if(this.filterTree.root)if(this.filterTree.root.operation===ui.AND)this.filterTree.root.addChild(e),this.filterTree.nodes.set(e.uuid,e);else{const t=this.filterTree.root;if(1===t.children.length)t.operation=ui.AND,t.addChild(e),this.filterTree.nodes.set(e.uuid,e);else{const n=new md(void 0,ui.AND,void 0);this.filterTree.nodes.set(n.uuid,n),this.filterTree.root=n,n.addChild(t),n.addChild(e),this.filterTree.nodes.set(e.uuid,e)}}else{const t=new md(void 0,ui.AND,void 0);this.filterTree.nodes.set(t.uuid,t),this.filterTree.root=t,t.addChild(e),this.filterTree.nodes.set(e.uuid,e)}this.applyChanges()}clearFilters(){this.filterTree.root=void 0,this.filterTree.nodes=new Map,this.applyChanges()}selectColumns=[];leafExtendedColumns=[];groupExtendedColumns=[];pinColumn(e,t){const n=this.getColumnConfiguration(e);n&&(n.pinned=t,this.applyChanges())}rearrangeColumns(e){const t=e.map((e=>this.getColumnConfiguration(e))).filter(L);this.configuration.columns=[...t,...this.configuration.columns.filter((e=>!t.includes(e)))];const n=e.map((e=>Hi(this.selectColumns,e))).filter(L);this.selectColumns=[...n,...n.filter((e=>!n.includes(e)))],this.applyChanges()}removeAllPins(){this.configuration.columns.forEach((e=>e.pinned=void 0)),this.applyChanges()}showColumn(e,t){const n=this.getColumnConfiguration(e);n&&(n.hideFromView=!t,this.applyChanges())}horizontalPivotColumns=[];horizontalPivotCastColumns=[];get horizontalPivotResultColumns(){return this.horizontalPivotCastColumns.filter((e=>Gi(e.name))).map(Wi)}getHorizontalPivotableColumn(e){return Hi(this.configuration.columns.filter((e=>e.kind===ii.DIMENSION&&!Hi(this.groupExtendedColumns,e.name))),e)}setHorizontalPivotOnColumn(e){const t=this.getHorizontalPivotableColumn(e);t&&(this.horizontalPivotColumns=[t],this.applyChanges())}addHorizontalPivotOnColumn(e){const t=this.getHorizontalPivotableColumn(e);t&&(this.horizontalPivotColumns=[...this.horizontalPivotColumns,t],this.applyChanges())}clearAllHorizontalPivots(){this.horizontalPivotColumns=[],this.horizontalPivotCastColumns=[],this.applyChanges()}excludeColumnFromHorizontalPivot(e){if(Gi(e)){const t=Vi(e),n=this.getColumnConfiguration(t);n&&!n.excludedFromPivot&&(n.excludedFromPivot=!0,this.applyChanges())}}includeColumnInHorizontalPivot(e){const t=this.getColumnConfiguration(e);t?.excludedFromPivot&&(t.excludedFromPivot=!1,this.applyChanges())}verticalPivotColumns=[];getVerticalPivotableColumn(e){return Hi(this.configuration.columns.filter((e=>e.kind===ii.DIMENSION&&!Hi(this.groupExtendedColumns,e.name)&&!Hi(this.horizontalPivotColumns,e.name))),e)}setVerticalPivotOnColumn(e){const t=this.getVerticalPivotableColumn(e);t&&(this.verticalPivotColumns=[t],this.applyChanges())}addVerticalPivotOnColumn(e){const t=this.getVerticalPivotableColumn(e);t&&(this.verticalPivotColumns=[...this.verticalPivotColumns,t],this.applyChanges())}removeVerticalPivotOnColumn(e){this.verticalPivotColumns=this.verticalPivotColumns.filter((t=>t.name!==e)),this.applyChanges()}clearAllVerticalPivots(){this.verticalPivotColumns=[],this.applyChanges()}collapseAllPaths(){this.view.grid.client.collapseAll(),this.configuration.pivotLayout.expandedPaths=[],this.applyChanges()}expandPath(e){this.configuration.pivotLayout.expandedPaths=(0,Te.A)([...this.configuration.pivotLayout.expandedPaths,e]).sort(),this.applyChanges()}collapsePath(e){this.configuration.pivotLayout.expandedPaths=this.configuration.pivotLayout.expandedPaths.filter((t=>t!==e)),this.applyChanges()}sortColumns=[];getSortableColumn(e){if(e)return Hi([...this.horizontalPivotCastColumns.length?this.horizontalPivotCastColumns:this.selectColumns,...this.groupExtendedColumns],e)}setSortByColumn(e,t){const n=this.getSortableColumn(e);n&&(this.sortColumns=[{...n,direction:t}],this.applyChanges())}addSortByColumn(e,t){const n=this.getSortableColumn(e);n&&(this.sortColumns=[...this.sortColumns,{...n,direction:t}],this.applyChanges())}clearSortByColumn(e){this.sortColumns=this.sortColumns.filter((t=>t.name!==e)),this.applyChanges()}clearAllSorts(){this.sortColumns=[],this.applyChanges()}getSnapshotSubscriberName(){return"grid-controller"}async applySnapshot(e,t){this.configuration=Xi.serialization.fromJson(e.data.configuration),this.filterTree.nodes=new Map,this.filterTree.root=e.data.filter?fd(e.data.filter,void 0,this.filterTree.nodes,(e=>this.view.engine.getFilterOperation(e))):void 0,this.selectColumns=e.data.selectColumns,this.leafExtendedColumns=e.data.leafExtendedColumns,this.groupExtendedColumns=e.data.groupExtendedColumns,this.horizontalPivotColumns=e.data.pivot?.columns??[],this.horizontalPivotCastColumns=e.data.pivot?.castColumns??[],this.verticalPivotColumns=e.data.groupBy?.columns??[],this.sortColumns=e.data.sortColumns,this.menuBuilder=function(e){const t=e.view,n=t.dataCube,o=t.filter,r=t.editor,i=t.extend;return(a,s)=>{const l=a.column??void 0,c=l?.getColId(),u=e.getColumnConfiguration(c),d=c&&Gi(c)?e.getColumnConfiguration(Vi(c)):void 0,p=c&&Hi([...e.leafExtendedColumns,...e.groupExtendedColumns],c),g="value"in a?a.value:void 0,m=[{name:"Sort",subMenu:[...l&&c&&e.getSortableColumn(c)?[{name:"Ascending",action:()=>e.setSortByColumn(c,di.ASCENDING)},{name:"Descending",action:()=>e.setSortByColumn(c,di.DESCENDING)},{name:"Clear Sort",disabled:!Hi(e.sortColumns,c),action:()=>e.clearSortByColumn(c)},"separator",{name:"Add Ascending",disabled:Boolean(e.sortColumns.find((e=>e.name===c&&e.direction===di.ASCENDING))),action:()=>e.addSortByColumn(c,di.ASCENDING)},{name:"Add Descending",disabled:Boolean(e.sortColumns.find((e=>e.name===c&&e.direction===di.DESCENDING))),action:()=>e.addSortByColumn(c,di.DESCENDING)},"separator"]:[],{name:"Clear All Sorts",disabled:0===e.sortColumns.length,action:()=>e.clearAllSorts()}]}];let h=[];if(l&&void 0!==g){let t=u;if(l.getColId()===Su&&e.verticalPivotColumns.length&&"node"in a&&a.node){const n=e.verticalPivotColumns[a.node.level];t=e.getColumnConfiguration(n?.name)}if(t)if(g!==Au){const n=function(e,t){const n=`${t.type===Hr.STRING?`'${e}'`:e}`;let o;switch(t.type){case Hr.STRING:o=e;break;case Hr.NUMBER:case Hr.DECIMAL:case Hr.FLOAT:case Hr.INTEGER:o=$(Number(e));break;case Hr.DATE:case Hr.STRICTDATE:case Hr.DATETIME:o=e;break;default:throw new I(`Can't filter on column with unsupported type '${t.type}'`)}return{label:n,value:{type:t.type,value:o}}}(g,t),o=function(e){switch(e.type){case Hr.STRING:return[ci.EQUAL,ci.NOT_EQUAL,ci.LESS_THAN,ci.LESS_THAN_OR_EQUAL,ci.GREATER_THAN,ci.GREATER_THAN_OR_EQUAL,ci.CONTAIN,ci.NOT_CONTAIN,ci.START_WITH,ci.NOT_START_WITH,ci.END_WITH,ci.NOT_END_WITH];case Hr.NUMBER:case Hr.DECIMAL:case Hr.FLOAT:case Hr.INTEGER:case Hr.DATE:case Hr.STRICTDATE:case Hr.DATETIME:return[ci.EQUAL,ci.NOT_EQUAL,ci.LESS_THAN,ci.LESS_THAN_OR_EQUAL,ci.GREATER_THAN,ci.GREATER_THAN_OR_EQUAL];default:return[]}}(t);if(o.length&&o.includes(ci.EQUAL)){const r=o.filter((e=>e!==ci.EQUAL));h=[Jd(t,ci.EQUAL,n,e),r.length?{name:`More Filters on ${c}...`,subMenu:r.map((o=>Jd(t,o,n,e)))}:void 0].filter(L)}}else h=[Jd(t,ci.IS_NULL,{value:{type:ai.VOID}},e),Jd(t,ci.IS_NOT_NULL,{value:{type:ai.VOID}},e)]}return[{name:"Export",subMenu:[{name:"HTML",menuItem:ud,cssClasses:["!opacity-100"],disabled:!0},{name:"Plain Text",menuItem:ud,cssClasses:["!opacity-100"],disabled:!0},{name:"PDF",menuItem:ud,cssClasses:["!opacity-100"],disabled:!0},{name:"Excel",action:()=>t.grid.exportEngine.exportFile(pu.EXCEL)},{name:"CSV",action:()=>t.grid.exportEngine.exportFile(pu.CSV)},"separator",{name:"DataCube Specification",menuItem:ud,cssClasses:["!opacity-100"],disabled:!0}]},{name:"Email",subMenu:[{name:"HTML",menuItem:ud,cssClasses:["!opacity-100"],disabled:!0},{name:"Plain Text",menuItem:ud,cssClasses:["!opacity-100"],disabled:!0},"separator",{name:"HTML Attachment",menuItem:ud,cssClasses:["!opacity-100"],disabled:!0},{name:"Plain Text Attachment",menuItem:ud,cssClasses:["!opacity-100"],disabled:!0},{name:"PDF Attachment",menuItem:ud,cssClasses:["!opacity-100"],disabled:!0},{name:"Excel Attachment",action:()=>{t.grid.exportEngine.exportEmail(pu.EXCEL).catch((e=>n.alertService.alertUnhandledError(e)))}},{name:"CSV Attachment",action:()=>{t.grid.exportEngine.exportEmail(pu.CSV).catch((e=>n.alertService.alertUnhandledError(e)))}},{name:"DataCube Specification Attachment",menuItem:ud,cssClasses:["!opacity-100"],disabled:!0}]},{name:"Copy",menuItem:ud,cssClasses:["!opacity-100"],subMenu:[{name:"Plain Text",menuItem:ud,cssClasses:["!opacity-100"],disabled:!0},{name:"Selected Rows as Plain Text",menuItem:ud,cssClasses:["!opacity-100"],disabled:!0},{name:"Selected Column as Plain Text",menuItem:ud,cssClasses:["!opacity-100"],disabled:!0}]},"separator",...m,{name:"Filter",subMenu:[...h,h.length?"separator":void 0,{name:"Filters...",action:()=>{o.display.open()}},{name:"Clear All Filters",action:()=>e.clearFilters()}].filter(L)},{name:"Pivot",subMenu:[...l&&c&&u?.kind===ii.DIMENSION&&e.getVerticalPivotableColumn(c)?[{name:`Vertical Pivot on ${c}`,action:()=>e.setVerticalPivotOnColumn(c)},{name:`Add Vertical Pivot on ${c}`,disabled:Boolean(Hi(e.verticalPivotColumns,c)),action:()=>e.addVerticalPivotOnColumn(c)},{name:`Remove Vertical Pivot on ${c}`,disabled:!Hi(e.verticalPivotColumns,c),action:()=>e.removeVerticalPivotOnColumn(c)},"separator"]:[],...l&&c&&u?.kind===ii.DIMENSION&&e.getHorizontalPivotableColumn(c)?[{name:`Horizontal Pivot on ${c}`,action:()=>e.setHorizontalPivotOnColumn(c)},{name:`Add Horizontal Pivot on ${c}`,disabled:Boolean(Hi(e.horizontalPivotColumns,c)),action:()=>e.addHorizontalPivotOnColumn(c)},"separator"]:[],...l&&c&&d?.kind===ii.MEASURE&&!d.excludedFromPivot&&0!==e.horizontalPivotColumns.length?[{name:`Exclude Column ${d.name} from Horizontal Pivot`,action:()=>e.excludeColumnFromHorizontalPivot(c)},"separator"]:[],...l&&c&&u?.kind===ii.MEASURE&&u.excludedFromPivot&&0!==e.horizontalPivotColumns.length?[{name:`Include Column ${c} in Horizontal Pivot`,action:()=>e.includeColumnInHorizontalPivot(c)},"separator"]:[],{name:"Clear All Vertical Pivots",disabled:0===e.verticalPivotColumns.length,action:()=>e.clearAllVerticalPivots()},{name:"Clear All Horizontal Pivots",disabled:0===e.horizontalPivotColumns.length,action:()=>e.clearAllHorizontalPivots()}]},{name:"Extended Columns",subMenu:[{name:"Add New Column...",action:()=>{i.openNewColumnEditor().catch((e=>n.alertService.alertUnhandledError(e)))}},...u&&c?[{name:`Extend Column ${c}...`,action:()=>{i.openNewColumnEditor(u).catch((e=>n.alertService.alertUnhandledError(e)))}}]:[],...p?["separator",{name:`Edit Column ${c}...`,action:()=>{i.openExistingColumnEditor(c).catch((e=>n.alertService.alertUnhandledError(e)))}},{name:`Delete Column ${c}`,action:()=>{i.deleteColumn(c).catch((e=>n.alertService.alertUnhandledError(e)))}}]:[]]},"separator",{name:"Resize",subMenu:[{name:"Auto-size to Fit Content",disabled:!l||!u||void 0!==u.fixedWidth,action:()=>a.api.autoSizeColumns([l?.getColId()].filter(L))},{name:"Minimize Column",disabled:!l||!u||void 0!==u.fixedWidth,action:()=>{l&&u&&a.api.setColumnWidths([{key:u.name,newWidth:u.minWidth??50}])}},"separator",{name:"Auto-size All Columns",action:()=>a.api.autoSizeColumns([...e.configuration.columns.filter((e=>void 0===e.fixedWidth&&e.isSelected&&!e.hideFromView)).map((e=>e.name)),...e.horizontalPivotCastColumns.map((t=>{if(Gi(t.name)){const n=Hi(e.configuration.columns,Vi(t.name));if(n&&void 0===n.fixedWidth&&n.isSelected&&!n.hideFromView)return t.name}})).filter(L)])},{name:"Minimize All Columns",action:()=>{a.api.setColumnWidths([...e.configuration.columns.filter((e=>void 0===e.fixedWidth)).map((e=>({key:e.name,newWidth:u?.minWidth??50}))),...e.horizontalPivotCastColumns.map((t=>{if(Gi(t.name)){const n=Hi(e.configuration.columns,Vi(t.name));if(n&&void 0===n.fixedWidth&&n.isSelected&&!n.hideFromView)return{key:t.name,newWidth:n.minWidth??50}}})).filter(L)])}},{name:"Size Grid to Fit Screen",action:()=>a.api.sizeColumnsToFit()}]},{name:"Pin",subMenu:[...u?[{name:"Pin Left",disabled:!l||l.isPinnedLeft(),checked:Boolean(l?.isPinnedLeft()),action:()=>e.pinColumn(c,pi.LEFT)},{name:"Pin Right",disabled:!l||l.isPinnedRight(),checked:Boolean(l?.isPinnedRight()),action:()=>e.pinColumn(c,pi.RIGHT)},{name:"Unpin",disabled:!l?.isPinned(),action:()=>e.pinColumn(c,void 0)},"separator"]:[],{name:"Remove All Pinnings",disabled:e.configuration.columns.every((e=>void 0===e.pinned)),action:()=>e.removeAllPins()}]},{name:"Hide",disabled:!u,action:()=>e.showColumn(c,!1)},...c===Su?["separator",{name:"Collapse All",action:()=>{e.collapseAllPaths()}}]:[],"separator",{name:"Heatmap",menuItem:ud,cssClasses:["!opacity-100"],disabled:!l,subMenu:l?[{name:`Add to ${l.getColId()}`,menuItem:ud,cssClasses:["!opacity-100"],disabled:!0},{name:`Remove from ${l.getColId()}`,menuItem:ud,cssClasses:["!opacity-100"],disabled:!0}]:[]},{name:"Show Plot...",menuItem:ud,cssClasses:["!opacity-100"],disabled:!0},{name:"Show TreeMap...",menuItem:ud,cssClasses:["!opacity-100"],disabled:!0},"separator",{name:"Properties...",disabled:r.display.isOpen,action:()=>{l&&s&&(r.setCurrentTab(Kd.COLUMN_PROPERTIES),r.columnProperties.setSelectedColumnName(d?.name??u?.name??c)),r.display.open()}}]}}(this)}propagateChanges(e){this.verticalPivotColumns=this.verticalPivotColumns.filter((e=>!Hi(this.horizontalPivotColumns,e.name))),this.configuration.pivotLayout.expandedPaths=Zl(e.data.groupBy?.columns??[],this.verticalPivotColumns,this.configuration.pivotLayout.expandedPaths),this.configuration.columns.forEach((e=>{e.pivotSortDirection=Hi(this.horizontalPivotColumns,e.name)?e.pivotSortDirection??di.ASCENDING:void 0})),this.selectColumns=(0,tt.A)([...this.configuration.columns.filter((e=>e.isSelected&&!Hi(this.groupExtendedColumns,e.name))),...this.horizontalPivotColumns,...this.verticalPivotColumns],(e=>e.name)).map(Wi);const t=(0,tt.A)([...this.horizontalPivotColumns.length?[...this.horizontalPivotResultColumns,...[...this.configuration.columns.filter((e=>e.isSelected)),...this.verticalPivotColumns].filter((e=>this.getColumnConfiguration(e.name)?.kind===ii.DIMENSION&&!Hi(this.horizontalPivotColumns,e.name)))]:[...this.configuration.columns.filter((e=>e.isSelected)),...this.verticalPivotColumns],...this.groupExtendedColumns],(e=>e.name));this.sortColumns=this.sortColumns.filter((e=>Hi(t,e.name)))}applyChanges(){const e=P(this.getLatestSnapshot()),t=e.clone();this.propagateChanges(e),t.data.configuration=this.configuration.serialize(),t.data.filter=this.filterTree.root?hd(this.filterTree.root):void 0,t.data.selectColumns=this.selectColumns,t.data.pivot=this.horizontalPivotColumns.length?{columns:this.horizontalPivotColumns,castColumns:this.horizontalPivotCastColumns}:void 0,t.data.groupBy=this.verticalPivotColumns.length?{columns:this.verticalPivotColumns}:void 0,t.data.sortColumns=this.sortColumns,t.finalize(),t.hashCode!==e.hashCode&&this.publishSnapshot(t)}}function Zd(e){return new Promise(((t,n)=>{const o=new FileReader;o.onloadend=()=>{const e=o.result;if(U(e)){const n=e.split(",")[1];if(n)return void t(n)}n(new Error("Can't base64 encode blob data"))},o.onerror=e=>n(e),o.readAsDataURL(e)}))}const ep="mixed_boundary",tp="alternative_boundary",np=`\nFrom:\nTo:\nSubject:\nX-Unsent: 1\nContent-Type: multipart/mixed; boundary="${ep}"\n\n--${ep}\nContent-Type: multipart/alternative; boundary="${tp}"\n\n--${tp}\nContent-Type: text/plain; charset="UTF-8"\nContent-Transfer-Encoding: 7bit\n\n\n\n--${tp}\nContent-Type: text/html; charset="UTF-8"\nContent-Transfer-Encoding: 7bit\n\n<html><body><p></p><body></html>\n\n--${tp}--\n\n`;class op{_grid;constructor(e){this._grid=e}generateFileName(){return`${this._grid.queryConfiguration.name} - ${(0,Xn.GP)(new Date,"EEE MMM dd yyyy HH_mm_ss")}`}exportFile(e){const t=this.generateFileName();switch(e){case pu.CSV:return void this._grid.client.exportDataAsCsv({fileName:`${t}.csv`});case pu.EXCEL:return void this._grid.client.exportDataAsExcel({fileName:`${t}.xlsx`})}}async exportEmail(e){const t=this.generateFileName();let n,o,r=t;switch(e){case pu.CSV:r=`${t}.csv`,o=ee.TEXT_CSV,n=await Zd(new Blob([this._grid.client.getDataAsCsv()??""],{type:ee.TEXT_CSV}));break;case pu.EXCEL:{r+=`${t}.xlsx`,o=ee.APPLICATION_XLSX;const e=this._grid.client.getDataAsExcel();let i;if(e instanceof Blob)i=e;else{if("string"!=typeof e)throw new x("Can't export Excel content");i=new Blob([e],{type:ee.APPLICATION_XLSX})}n=await Zd(i);break}default:throw new I(`Can't export email in format '${e}'`)}le(`${t}.eml`,`${np.trimStart()}--${ep}\nContent-Type: ${o}; name="${r}"\nContent-Transfer-Encoding: base64\nContent-Disposition: attachment; filename="${r}"\n\n${n}\n\n--${ep}--`,ee.MESSAGE_RFC822)}}class rp extends ld{_view;controller;exportEngine;_client;clientDataSource;queryConfiguration;rowLimit;isPaginationEnabled=!0;isCachingEnabled=!1;scrollHintText;debouncedAutoResizeColumns;constructor(e){super(e.engine,e.settingService,e.snapshotService),(0,xe.Gn)(this,{clientDataSource:xe.sH,queryConfiguration:xe.sH,rowLimit:xe.sH,isPaginationEnabled:xe.sH,setPaginationEnabled:xe.XI,isCachingEnabled:xe.sH,setCachingEnabled:xe.XI,scrollHintText:xe.sH,setScrollHintText:xe.XI,applySnapshot:xe.XI}),this._view=e,this.controller=new Qd(this._view),this.exportEngine=new op(this),this.queryConfiguration=new Xi,this.clientDataSource=new Lu(this,this._view)}setPaginationEnabled(e){this.isPaginationEnabled=e,this.clientDataSource=new Lu(this,this._view),this.client.updateGridOptions({cacheBlockSize:e?500:Tu})}async setCachingEnabled(e,t){if(e===this.isCachingEnabled)return;if(!1===e)return await this._view.disposeCache(),void(0,xe.h5)((()=>{this.isCachingEnabled=e,this.clientDataSource=new Lu(this,this._view)}));const n=async()=>{await this._view.initializeCache(),this._view.processCacheState.hasSucceeded&&(0,xe.h5)((()=>{this.isCachingEnabled=e,this.clientDataSource=new Lu(this,this._view)}))};this._settingService.getBooleanValue(lu.GRID_CLIENT__SHOW_CACHE_PERFORMANCE_WARNING)&&!t?.suppressWarning?this._view.alertService.alert({message:"Confirm you want to proceed with caching",text:"When enabled, the source dataset will be cached locally in order to boost query performance. But depending on computational resource available to your environment, sometimes, caching can negatively impact the overall performance, and can even lead to crashes.\n\nOverall, caching is still an experimental feature where we only support queries with simple execution plans, certain queries might not work, in which case, you can abort by turning off caching.\n\nDo you still want to proceed?",type:su.WARNING,actions:[{label:"Abort",handler:()=>{}},{label:"Proceed",handler:()=>{n().catch((e=>this._view.alertService.alertUnhandledError(e)))}},{label:"Dismiss Warning and Proceed",handler:()=>{this._view.settingService.updateValue(this._view.dataCube.api,lu.GRID_CLIENT__SHOW_CACHE_PERFORMANCE_WARNING,!1),n().catch((e=>this._view.alertService.alertUnhandledError(e)))}}],windowConfig:{...fr,width:600,height:300,minWidth:300,minHeight:150}}):await n()}setScrollHintText(e){this.scrollHintText=e}get isClientConfigured(){return Boolean(this._client)}get client(){return P(this._client,"Grid client is not configured")}configureClient(e){this._client=e,this.debouncedAutoResizeColumns=(0,Bn.A)((()=>e?.autoSizeAllColumns()),100)}getSnapshotSubscriberName(){return"grid"}async applySnapshot(e,t){const n=Xi.serialization.fromJson(e.data.configuration);this.queryConfiguration=n,this.rowLimit=e.data.limit;const o=function(e,t,n){return{isServerSideGroupOpenByDefault:e=>{if(void 0!==t.initialExpandLevel&&t.initialExpandLevel>0&&e.rowNode.level<=(t.showRootAggregation?t.initialExpandLevel+1:t.initialExpandLevel)-1)return!0;const n=e.rowNode.getRoute()??[];if(!n.length)return!1;if(t.showRootAggregation&&1===n.length&&n[0]===bi)return!0;t.showRootAggregation&&n.shift();const o=n.join(hi);return!!t.pivotLayout.expandedPaths.includes(o)},rowClassRules:t.alternateRows?{[gu.HIGHLIGHT_ROW]:e=>e.rowIndex%(2*t.alternateRowsCount)>=t.alternateRowsCount}:{},onColumnPinned:e=>{if("api"!==e.source&&e.column){const t=e.column,o=t.getPinned();n.grid.controller.pinColumn(t.getColId(),null===o?void 0:o===Iu.LEFT?pi.LEFT:pi.RIGHT)}},onColumnMoved:e=>{"api"!==e.source&&e.column&&e.finished&&n.grid.controller.rearrangeColumns((e.api.getColumnDefs()??[]).filter((e=>!("children"in e))).map((e=>e.colId??"")))},onColumnVisible:e=>{if("api"!==e.source&&e.column){const t=e.column,o=t.isVisible();n.grid.controller.showColumn(t.getColId(),o)}},onRowGroupOpened:e=>{if(e.event){const o=e.node.getRoute()??[];o.length&&t.showRootAggregation&&o.shift();const r=o.join(hi);if(!r)return;e.expanded?n.grid.controller.expandPath(r):n.grid.controller.collapsePath(r)}},onVirtualColumnsChanged:()=>{n.grid.debouncedAutoResizeColumns?.cancel(),n.grid.debouncedAutoResizeColumns?.()},columnDefs:$u(e,t),autoGroupColumnDef:{colId:Su,headerName:"",cellRendererParams:{suppressCount:!t.showLeafCount},...ju(e,t),minWidth:200,sortable:!0,showRowGroup:!0,suppressSpanHeaderHeight:!0}}}(e,n,this._view);this._settingService.getBooleanValue(lu.DEBUGGER__ENABLE_DEBUG_MODE)&&this._engine.debugProcess("New Grid Options",["Grid Options",o]),this.client.updateGridOptions({...o,rowBuffer:this._settingService.getNumericValue(lu.GRID_CLIENT__ROW_BUFFER),purgeClosedRowNodes:this._settingService.getBooleanValue(lu.GRID_CLIENT__PURGE_CLOSED_ROW_NODES),cacheBlockSize:this.isPaginationEnabled?500:Tu}),this.client.setFilterModel({[yu]:{type:"equals",filter:Ou(e,n)}})}}class ip extends ld{_view;name="";constructor(e){super(e.engine,e.settingService,e.snapshotService),(0,xe.Gn)(this,{name:xe.sH,applySnapshot:xe.XI}),this._view=e}getSnapshotSubscriberName(){return"info"}async applySnapshot(e,t){const n=e.data,o=Xi.serialization.fromJson(n.configuration);o.name!==this.name&&(this.name=o.name,this._view.dataCube.options?.onNameChanged?.({api:this._view.dataCube.api,name:this.name,source:this._view.source}))}}class ap{uuid=(0,i.A)();data;_isPatchChange=!1;_finalized=!1;_hashCode;constructor(e){this.data={configuration:e,sourceColumns:[],leafExtendedColumns:[],selectColumns:[],filter:void 0,groupBy:void 0,pivot:void 0,groupExtendedColumns:[],sortColumns:[],limit:void 0}}static create(e){return new ap(e)}markAsPatchChange(){this._isPatchChange=!0}isPatchChange(){return this._isPatchChange}isFinalized(){return this._finalized}finalize(){return this._finalized||(this._hashCode=Fr(T(this.data)),this._finalized=!0),this}get hashCode(){if(!this._finalized||!this._hashCode)throw new x("Snapshot is not finalized");return this._hashCode}clone(){const e=new ap({});return e.data=JSON.parse(JSON.stringify(this.data)),e}INTERNAL__fullClone(){const e=new ap({});return e.uuid=this.uuid,e.data=JSON.parse(JSON.stringify(this.data)),e._isPatchChange=this._isPatchChange,e._finalized=this._finalized,e._hashCode=this._hashCode,e}serialize(){const e=this.clone();return{uuid:e.uuid,data:e.data,_isPatchChange:e._isPatchChange,_finalized:e._finalized,_hashCode:e._hashCode}}}function sp(e,t){const{name:n,type:o}=e,r=new zi(n,o);switch(o){case Hr.NUMBER:case Hr.INTEGER:case Hr.DECIMAL:case Hr.FLOAT:r.kind=ii.MEASURE,r.decimals=o===Hr.INTEGER?0:2,r.displayCommas=!0,r.negativeNumberInParens=!0,r.textAlign=ni.RIGHT,r.excludedFromPivot=!1,r.aggregateOperator=si.SUM,r.pivotStatisticColumnFunction=si.SUM;break;default:r.kind=ii.DIMENSION,r.excludedFromPivot=!0,r.aggregateOperator=si.UNIQUE}if(t){const{snapshot:e,groupByAggColumns:o,pivotAggColumns:i,pivotSortColumns:a}=t,s=e.data;if(r.isSelected=Boolean(Hi(s.groupExtendedColumns,n)??Hi(s.selectColumns,n)),s.groupBy??s.pivot){const e=Hi(o,n),t=Hi(i,n);(Hi(s.pivot?.columns??[],n)??Hi(s.groupBy?.columns??[],n))&&(r.kind=ii.DIMENSION,r.excludedFromPivot=!0);const l=e??t;if(l&&(r.aggregateOperator=l.operator,r.aggregationParameters=l.parameterValues),s.pivot&&(r.excludedFromPivot=!t),s.pivot){const e=Hi(a,n);e&&(r.pivotSortDirection=e.direction)}}}return r}function lp(e){const{snapshot:t,groupBySortColumns:n}=e,o=t.data,r=new Xi,i=[...o.selectColumns,...o.groupExtendedColumns,...[...o.sourceColumns,...o.leafExtendedColumns].filter((e=>!Hi(o.selectColumns,e.name)))];return r.columns=i.map((t=>sp(t,e))),n?.length&&(r.treeColumnSortDirection=A(n,0).direction),r}const cp=[{func:Zr.EXTEND,parameters:1,stopCondition:e=>ea(e.function,Zr.EXTEND)&&e.parameters[0]instanceof ta&&ea(e.parameters[0].function,Zr.OVER)},{func:Zr.FILTER,parameters:1},{func:Zr.SELECT,parameters:1},{func:Zr.GROUP_BY,parameters:2},{func:Zr.PIVOT,parameters:2},{func:Zr.CAST,parameters:1},{func:Zr.SORT,parameters:1},{func:Zr.LIMIT,parameters:1}];var up;!function(e){e.LEAF_EXTEND="leaf_extend",e.FILTER="filter",e.SELECT="select",e.PIVOT__GROUP="pivot__group",e.PIVOT_SORT="pivot_sort",e.PIVOT="pivot",e.PIVOT_CAST="pivot_cast",e.GROUP_BY__GROUP="group_by__group",e.GROUP_BY="group_by",e.GROUP_BY_SORT="group_by_sort",e.GROUP_EXTEND="group_extend",e.SORT="sort",e.LIMIT="limit"}(up||(up={}));const dp=[{name:up.LEAF_EXTEND,func:Zr.EXTEND,repeat:!0},{name:up.FILTER,func:Zr.FILTER},{name:up.SELECT,func:Zr.SELECT},{name:up.PIVOT__GROUP,funcs:[{name:up.PIVOT_SORT,func:Zr.SORT,required:!0},{name:up.PIVOT,func:Zr.PIVOT,required:!0},{name:up.PIVOT_CAST,func:Zr.CAST,required:!0}]},{name:up.GROUP_BY__GROUP,funcs:[{name:up.GROUP_BY,func:Zr.GROUP_BY,required:!0},{name:up.GROUP_BY_SORT,func:Zr.SORT,required:!0}]},{name:up.GROUP_EXTEND,func:Zr.EXTEND,repeat:!0},{name:up.SORT,func:Zr.SORT},{name:up.LIMIT,func:Zr.LIMIT}],pp=new RegExp(`^${dp.map((e=>"funcs"in e?`(${e.funcs.map((e=>`(?<${e.name}>${e.repeat?`(?:<${Zi(e.func)}>____\\d+)*`:`<${Zi(e.func)}>____\\d+`})${e.repeat||e.required?"":"?"}`)).join("")})${e.repeat?"*":e.required?"":"?"}`:`(?<${e.name}>${e.repeat?`(?:<${Zi(e.func)}>____\\d+)*`:`<${Zi(e.func)}>____\\d+`})${e.repeat||e.required?"":"?"}`)).join("")}$`);async function gp(e,t,n,o){const r=function(e){if(!(e instanceof ta))throw new Error("Can't process expression: expected a function expression");const t=[];let n=e;for(;n instanceof ta;){const e=cp.find((e=>ea(n.function,e.func)));if(!e)throw new Error(`Can't process expression: found unsupported function ${n.function}()`);if(!(n.parameters.length>e.parameters)){t.unshift(n);break}{if(e.stopCondition?.(n)){t.unshift(n);break}M(n.parameters.length===e.parameters+1,`Can't process ${Zi(n.function)}() expression: expected at most ${e.parameters+1} parameters provided, got ${n.parameters.length}`);const o=zl(n,0,ta,"Can't process expression: expected a sequence of function calls (e.g. x()->y()->z())");n.parameters=n.parameters.slice(1),t.unshift(n),n=o}}const o=t.map(((e,t)=>`<${Zi(e.function)}>____${t}`)).join("").match(pp);if(!o)throw new Error(`Can't process expression: unsupported function composition ${t.map((e=>`${Zi(e.function)}()`)).join("->")} (supported composition: ${dp.map((e=>"funcs"in e?`[${e.funcs.map((e=>`${Zi(e.func)}()`)).join("->")}]`:`${Zi(e.func)}()`)).join("->")})`);const r=e=>{const n=o.groups?.[e];if(!n)return;const r=n.match(/\<.*?\>____\d+/g);return r?.length?r.map((e=>{const n=Number(e.split("____")[1]);if(!(isNaN(n)||n>=t.length))return A(t,n)})).filter(L):void 0};return{leafExtend:r(up.LEAF_EXTEND),select:r(up.SELECT)?.[0],filter:r(up.FILTER)?.[0],pivotSort:r(up.PIVOT_SORT)?.[0],pivot:r(up.PIVOT)?.[0],pivotCast:r(up.PIVOT_CAST)?.[0],groupBy:r(up.GROUP_BY)?.[0],groupBySort:r(up.GROUP_BY_SORT)?.[0],groupExtend:r(up.GROUP_EXTEND),sort:r(up.SORT)?.[0],limit:r(up.LIMIT)?.[0]}}(o.deserializeValueSpecification(o.serializeValueSpecification(e))),i=ap.create({}),a=i.data,s=new Map,l=(e,t)=>{if(s.has(e.name))throw new Error(t);s.set(e.name,e)},c=new Map,u=e=>Wi(P(c.get(e),`Can't find column '${e}'`)),d=e=>c.set(e.name,e);if(a.sourceColumns=t.columns,Ql(a.sourceColumns,(e=>`Can't process source: found duplicate source columns '${e}'`)),a.sourceColumns.forEach((e=>l(e,`Can't process source: another column with name '${e.name}' is already registered`))),a.sourceColumns.forEach((e=>d(e))),r.leafExtend?.length&&(a.leafExtendedColumns=await ec(r.leafExtend,Array.from(c.values()),o),Ql(a.leafExtendedColumns,(e=>`Can't process extend() expression: found duplicate extended columns '${e}'`)),a.leafExtendedColumns.forEach((e=>l(e,`Can't process extend() expression: another column with name '${e.name}' is already registered`))),a.leafExtendedColumns.forEach((e=>d(e)))),r.filter){const e=zl(r.filter,0,Ur,"Can't process filter() expression: expected parameter at index 0 to be a lambda expression");a.filter=tc(Kl(e,"Can't process filter() expression"),u,o.filterOperations)}r.select?(a.selectColumns=Xl(r.select,0).colSpecs.map((e=>u(e.name))),Ql(a.selectColumns,(e=>`Can't process select() expression: found duplicate select columns '${e}'`)),c.clear(),a.selectColumns.forEach((e=>d(e)))):c.clear();let p=[],g=[];if(r.pivot&&r.pivotCast&&r.pivotSort){const e=Xl(r.pivot,0).colSpecs.map((e=>u(e.name))),t=(m=(h=r.pivotCast,zl(h,0,Qa,`Can't process ${Zi(h.function)}: expected parameter at index 0 to be a generic type instance`)).genericType,D(m.typeArguments[0]?.rawType,ns,"Can't process generic type: failed to extract relation type")).columns.map((e=>({name:e.name,type:ql(e.genericType).fullPath})));a.pivot={columns:e,castColumns:t},p=Xl(r.pivot,1).colSpecs.map((e=>ac(e,u,o.aggregateOperations))),g=function(e,t,n){const o=lc(e,n),r=new Set(t.map((e=>e.name))),i=new Set(t.map((e=>e.name)));if(o.forEach((e=>{if(!r.has(e.name))throw new Error(`Can't process pivot() expression: sort column '${e.name}' must be a pivot column`);i.delete(e.name)})),0!==i.size)throw new Error(`Can't process pivot() expression: found unsorted pivot column(s) (${Array.from(i.values()).sort().map((e=>`'${e}'`)).join(", ")})`);return Ql(o,(e=>`Can't process pivot() expression: found duplicate sort columns '${e}'`)),o}(r.pivotSort,e,u),function(e,t,n){const o=e.columns,r=e.castColumns;Ql(o,(e=>`Can't process pivot() expression: found duplicate pivot columns '${e}'`)),Ql(t,(e=>`Can't process pivot() expression: found duplicate aggregate columns '${e}'`)),Ql(r,(e=>`Can't process pivot() expression: found duplicate cast columns '${e}'`)),t.forEach((e=>{if(Hi(o,e.name))throw new Error(`Can't process pivot() expression: pivot column '${e.name}' must not be aggregated on`)})),n.filter((e=>!(Hi(o,e.name)??Hi(t,e.name)))).forEach((e=>{if(!Hi(r,e.name))throw new Error(`Can't process pivot() expression: expected pivot group column '${e.name}' in cast columns`)})),o.forEach((e=>{if(Hi(r,e.name))throw new Error(`Can't process pivot() expression: expected pivot column '${e.name}' to not present in cast columns`)})),t.forEach((e=>{if(Hi(r,e.name))throw new Error(`Can't process pivot() expression: expected pivot aggregate column '${e.name}' to not present in cast columns`)})),r.filter((e=>Gi(e.name))).forEach((e=>{const n=Vi(e.name);if(!Hi(t,n))throw new Error(`Can't process pivot() expression: fail to match cast column '${e.name}' to a specified aggregate column`)}))}(a.pivot,p,Array.from(c.values())),c.clear(),t.forEach((e=>d(e)))}var m,h;let f=[],E=[];if(r.groupBy&&r.groupBySort){const e=Xl(r.groupBy,0).colSpecs.map((e=>u(e.name)));a.groupBy={columns:e},f=Xl(r.groupBy,1).colSpecs.map((e=>ac(e,u,o.aggregateOperations))),E=function(e,t,n){const o=lc(e,n),r=new Set(t.map((e=>e.name))),i=new Set(t.map((e=>e.name)));let a;if(o.forEach((e=>{if(!r.has(e.name))throw new Error(`Can't process groupBy() expression: sort column '${e.name}' must be a group column`);if(i.delete(e.name),a){if(e.direction!==a)throw new Error("Can't process groupBy() expression: all group columns must be sorted in the same direction")}else a=e.direction})),0!==i.size)throw new Error(`Can't process groupBy() expression: found unsorted group column(s) (${Array.from(i.values()).sort().map((e=>`'${e}'`)).join(", ")})`);return Ql(o,(e=>`Can't process groupBy() expression: found duplicate sort columns '${e}'`)),o}(r.groupBySort,e,u),function(e,t,n,o,r){const i=e.columns;if(Ql(i,(e=>`Can't process groupBy() expression: found duplicate group columns '${e}'`)),Ql(t,(e=>`Can't process groupBy() expression: found duplicate aggregate columns '${e}'`)),t.forEach((e=>{if(Hi(i,e.name))throw new Error(`Can't process groupBy() expression: group column '${e.name}' must not be aggregated on`)})),r.forEach((e=>{if(!(Hi(i,e.name)??Hi(t,e.name)))throw new Error(`Can't process groupBy() expression: column '${e.name}' is neither grouped nor aggregated on`)})),n){const e=new Map;t.filter((e=>Gi(e.name))).forEach((t=>{const n=Vi(t.name),o={...t,name:n},r=e.get(n);if(r){if(!(0,Ro.A)({...r,type:void 0},{...o,type:void 0}))throw new Error(`Can't process groupBy() expression: found conflicting aggregation specification for column '${n}'`)}else e.set(n,o)})),o.forEach((t=>{const n=e.get(t.name);if(!n)throw new Error(`Can't process groupBy() expression: column '${t.name}' is aggregated in pivot() expression but not in groupBy() expression`);if(!(0,Ro.A)({...n,type:void 0},{...t,type:void 0}))throw new Error(`Can't process groupBy() expression: found conflicting aggregation specification for column '${t.name}'`)}))}}(a.groupBy,f,a.pivot,p,Array.from(c.values()))}if(r.groupExtend?.length&&(a.groupExtendedColumns=await ec(r.groupExtend,Array.from(c.values()),o),Ql(a.groupExtendedColumns,(e=>`Can't process extend() expression: found duplicate extended columns '${e}'`)),a.groupExtendedColumns.forEach((e=>l(e,`Can't process extend() expression: another column with name '${e.name}' is already registered`))),a.groupExtendedColumns.forEach((e=>d(e)))),r.sort&&(a.sortColumns=lc(r.sort,u),Ql(a.sortColumns,(e=>`Can't process sort() expression: found duplicate sort columns '${e}'`))),r.limit){const e=zl(r.limit,0,la,"Can't process limit() expression: expected limit to be a non-negative integer value");a.limit=e.value}const C=function(e,t,n){const o=e.snapshot.data,r=t.configuration,i=lp(e);if(!r)return i;o.groupBy&&M(r.treeColumnSortDirection===i.treeColumnSortDirection,`Can't process configuration: tree column sort direction mismatch (expected: '${i.treeColumnSortDirection.toLowerCase()}', found: '${r.treeColumnSortDirection.toLowerCase()}')`);const a=r.columns,s=i.columns,l=new Set;a.forEach((e=>{if(l.has(e.name))throw new Error(`Can't process configuration: found duplicate columns '${e.name}'`);l.add(e.name)})),a.forEach((e=>{if(!Hi(s,e.name))throw new Error(`Can't process configuration: found extra column '${e.name}'`)})),s.forEach((e=>{if(!Hi(a,e.name))throw new Error(`Can't process configuration: missing column '${e.name}'`)}));const c=[...o.selectColumns,...o.groupExtendedColumns,...[...o.sourceColumns,...o.leafExtendedColumns].filter((e=>!Hi(o.selectColumns,e.name)))];return c.forEach(((e,t)=>{const n=A(a,t);M(e.name===n.name,`Can't process configuration: column ordering mismatch at index ${t} (expected: '${e.name}', found: '${n.name})', expected ordering: ${c.map((e=>e.name)).join(", ")}`)})),a.forEach((e=>{const t=P(Hi(s,e.name));if(M(e.type===t.type,`Can't process configuration: type mismatch for column '${e.name}' (expected: '${t.type}', found: '${e.type}')`),M(e.isSelected===t.isSelected,`Can't process configuration: selection mismatch for column '${e.name}' (expected: '${t.isSelected}', found: '${e.isSelected}')`),(Hi(o.pivot?.columns??[],e.name)??Hi(o.groupBy?.columns??[],e.name))&&M(e.kind===t.kind,`Can't process configuration: kind mismatch for column '${e.name}' (expected: '${t.kind.toLowerCase()}', found: '${e.kind.toLowerCase()}')`),(o.pivot??o.groupBy)&&(M(e.aggregateOperator===t.aggregateOperator,`Can't process configuration: aggregation operator mismatch for column '${e.name}' (expected: '${t.aggregateOperator}', found: '${e.aggregateOperator}')`),M(n.getAggregateOperation(e.aggregateOperator).isCompatibleWithParameterValues(e.aggregationParameters),`Can't process configuration: incompatible aggregation parameter values for column '${e.name}' (operator: '${e.aggregateOperator}')`)),o.pivot&&(M(e.excludedFromPivot===t.excludedFromPivot,`Can't process configuration: pivot exclusion mismatch for column '${e.name}' (expected: '${t.excludedFromPivot}', found: '${e.excludedFromPivot}')`),M(e.pivotSortDirection===t.pivotSortDirection,`Can't process configuration: pivot sort direction mismatch for column '${e.name}' (expected: '${t.pivotSortDirection?.toLowerCase()??"none"}', found: '${e.pivotSortDirection?.toLowerCase()??"none"}')`)),e.kind===ii.DIMENSION&&!e.excludedFromPivot)throw new Error(`Can't process configuration: column '${e.name}' is a dimension but not excluded from pivot`)})),r}({snapshot:i,groupByAggColumns:f,groupBySortColumns:E,pivotAggColumns:p,pivotSortColumns:g},n,o);return a.configuration=C.serialize(),i.finalize()}var mp=n(60720),hp=n(56148),fp=n(36868);const Ep=(0,Lt.forwardRef)((function(e,t){return(0,E.jsx)(mp.x,{ref:t,...e})})),Cp=(0,Lt.forwardRef)((function(e,t){return(0,E.jsx)(hp.l,{ref:t,...e})})),bp=(0,Lt.forwardRef)((function(e,t){const{inputRef:n,className:o,disabled:r,InputProps:{ref:i,endAdornment:a}={},ownerState:s,enableAccessibleFieldDOMStructure:l,clearable:c,onClear:u,error:d,focused:p,...g}=e,m=(0,Fc.A)(i,t);return(0,E.jsxs)("div",{style:{display:"flex",alignItems:"center",position:"relative"},ref:m,children:[(0,E.jsx)("input",{className:o,disabled:r,ref:n,...g}),a]})})),vp=(0,Lt.forwardRef)((function(e,t){const{slots:n,slotProps:o,onClear:r,...i}=e,a=(0,fp.c)({...i});return(0,E.jsx)(bp,{...a,ref:t})}));var _p=n(15179),Tp=n(15891);const Ap=(0,bt.PA)((0,Lt.forwardRef)((function(e,t){const{value:n,updateValue:o}=e,r=(0,Lt.useRef)(null),i=(0,Fc.A)(r,t);return(0,E.jsx)("input",{ref:i,className:"h-5 w-full flex-shrink-0 border border-neutral-400 px-1 text-sm disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",value:n,onKeyDown:e=>{"Escape"===e.code&&r.current?.select()},onChange:e=>{o(e.target.value)}})}))),Sp="#ERR",Np=(0,bt.PA)((0,Lt.forwardRef)((function(e,t){const{value:n,updateValue:o,defaultValue:r=0,step:i=1}=e,[a,s]=(0,Lt.useState)(n.toString()),l=(0,Lt.useRef)(null),c=(0,Fc.A)(l,t),u=()=>{const e=Number(a);if(""===a)s(r.toString()),o(r);else if(isNaN(e)){if(a===Sp)return void s(n.toString());try{const e=$((0,Tp._3)(a));s(e.toString()),o(e)}catch{s(Sp),o(r)}}};return(0,Lt.useEffect)((()=>{s(n.toString())}),[n]),(0,E.jsxs)("div",{className:"relative h-5 w-full flex-shrink-0",children:[(0,E.jsx)("input",{ref:c,inputMode:"numeric",spellCheck:!1,type:"text",className:"h-full w-full border border-neutral-400 px-1 pr-5 text-sm disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",value:a,onKeyDown:e=>{if("Enter"===e.code)u(),l.current?.focus();else if("Escape"===e.code)l.current?.select();else if("ArrowUp"===e.code){e.preventDefault();const t=n+i;s(t.toString()),o(t)}else if("ArrowDown"===e.code){e.preventDefault();const t=n-i;s(t.toString()),o(t)}},onChange:e=>{const t=e.target.value;s(t);const n=Number(t);!isNaN(n)&&t&&o(n)},onBlur:()=>u()}),(0,E.jsx)("div",{className:"absolute right-0 top-0 flex h-5 w-5 items-center justify-center",children:(0,E.jsx)("button",{className:"text-lg text-neutral-500 hover:text-neutral-600",title:"Evaluate Expression (Enter)",onClick:u,tabIndex:-1,children:(0,E.jsx)(dr.Calculate,{})})})]})}))),yp=(0,Lt.forwardRef)((function(e,t){return(0,E.jsx)(vp,{...e,ref:t,className:"h-5 w-full flex-shrink-0 border border-neutral-400 px-1 pr-5 text-sm disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300"})})),xp=(0,bt.PA)((e=>{const{value:t,updateValue:n}=e,[o,r]=(0,Lt.useState)(null);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("button",{className:"absolute right-0 top-0 flex h-5 w-5 items-center justify-center",title:"Open Date Picker...",onClick:e=>{r(e.currentTarget)},tabIndex:-1,children:(0,E.jsx)(dr.Calendar,{className:"text-lg text-neutral-500 hover:text-neutral-600"})}),(0,E.jsx)(zn,{open:Boolean(o),anchorEl:o,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},onClose:()=>r(null),classes:{root:"data-cube-editor-date-calendar mt-0.5",paper:"shadow-md rounded-none border border-neutral-300"},children:(0,E.jsx)(Ep,{autoFocus:!0,value:(0,_p.H)(t),onChange:e=>{n((0,Xn.GP)(e,Jr)),r(null)}})})]})})),Ip=(0,bt.PA)((0,Lt.forwardRef)((function(e,t){const{value:n,updateValue:o}=e;return(0,E.jsx)(Cp,{ref:t,value:(0,_p.H)(n),format:Jr,slots:{field:yp,openPickerButton:()=>(0,E.jsx)(xp,{value:n,updateValue:o})},onChange:e=>{e&&o((0,Xn.GP)(e,Jr))}})}))),wp=(0,bt.PA)((0,Lt.forwardRef)((function(e,t){const{value:n,updateValue:o,view:r}=e,i=r.filter,a=Hi(i.columns,n),[s,l,c,u]=Dc();return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Jc,{ref:t,className:"relative mr-1 w-32",onClick:s,open:u,children:n}),(0,E.jsx)(Qc,{className:"w-32",...c,children:i.columns.filter((e=>a&&ji(a.type)===ji(e.type))).map((e=>(0,E.jsx)(Zc,{onClick:()=>{o(e.name),l()},autoFocus:n===e.name,children:e.name},e.name)))})]})}))),kp=(0,bt.PA)((0,Lt.forwardRef)((function(e,t){const{value:n,updateValue:o,view:r}=e;switch(n.type){case Hr.STRING:return(0,E.jsx)(Ap,{ref:t,value:n.value,updateValue:e=>o(e)});case Hr.NUMBER:case Hr.DECIMAL:case Hr.FLOAT:case Hr.INTEGER:return(0,E.jsx)(Np,{ref:t,value:n.value,updateValue:e=>o(e)});case Hr.DATE:case Hr.STRICTDATE:case Hr.DATETIME:return(0,E.jsx)(Ip,{ref:t,value:n.value,updateValue:e=>o(e)});case ai.COLUMN:return(0,E.jsx)(wp,{ref:t,value:n.value,updateValue:e=>o(e),view:r});default:return null}})));function Rp(){return(0,E.jsxs)("div",{className:"relative flex pl-2.5",children:[(0,E.jsx)("div",{className:"pointer-events-none absolute -left-2 h-0 w-0 border-[9px] border-neutral-600 border-b-transparent border-l-transparent border-t-transparent"}),(0,E.jsx)("div",{className:"mr-1 flex h-[18px] w-10 flex-shrink-0 items-center bg-neutral-600 pl-2 text-sm font-medium text-white",title:"Filter is inverted: select all but what matches.",children:"NOT"})]})}const Op=(0,bt.PA)((e=>{const{className:t,node:n,view:o}=e,r=o.filter;return(0,E.jsxs)("div",{className:jn("flex h-3.5 w-14 flex-shrink-0 bg-neutral-100",t),children:[(0,E.jsx)("button",{className:"flex h-3.5 w-3.5 items-center justify-center rounded-bl-sm rounded-tl-sm border border-neutral-400 hover:bg-neutral-200",onClick:()=>r.addFilterNode(n),title:"Insert a new column filter, just after this filter.",children:(0,E.jsx)(dr.FilterAddOperator,{className:"stroke-[2.5] text-sm"})}),(0,E.jsx)("button",{className:"flex h-3.5 w-3.5 items-center justify-center border border-l-0 border-neutral-400 hover:bg-neutral-200",onClick:()=>r.removeFilterNode(n),title:"Remove this filter",children:(0,E.jsx)(dr.FilterRemoveOperator,{className:"stroke-[2.5] text-sm"})}),(0,E.jsx)("button",{className:"flex h-3.5 w-3.5 items-center justify-center border border-l-0 border-neutral-400 hover:bg-neutral-200",onClick:()=>r.layerFilterNode(n),title:"Put this filter in its own sub-group (and combine it with other filters).",children:(0,E.jsx)(dr.FilterGroupOperator,{className:"stroke-[2.5] text-sm"})}),(0,E.jsx)("button",{className:jn("flex h-3.5 w-3.5 items-center justify-center rounded-br-sm rounded-tr-sm border border-l-0 border-neutral-400 hover:bg-neutral-200",{"bg-neutral-600":n.not,"border-neutral-600":n.not,"text-white":n.not,"hover:bg-neutral-600":n.not}),onClick:()=>n.setNot(!n.not),title:n.not?"Turn off the NOT operator on this filter to select only what matches.":"Turn on the NOT operator on this filter to select all but what matches.",children:(0,E.jsx)(dr.FilterNotOperator,{className:"stroke-[3] text-xs"})})]})})),Lp=(0,bt.PA)((e=>{const{node:t,level:n,view:o}=e,r=Wc(),i=o.filter,a=t.parent,s=a?a.children.indexOf(t):void 0,l=(0,Lt.useRef)(null),[c,u,d,p]=Dc(),[g,m,h,f]=Dc(),C=(0,Lt.useCallback)((()=>l.current?.focus()),[]);return(0,E.jsxs)("div",{className:"group flex h-6 items-center",children:[(0,E.jsx)("div",{className:jn("z-1 absolute h-6 w-full bg-opacity-50 group-hover:bg-sky-100 group-hover:bg-opacity-50",{"bg-sky-50":t===i.selectedNode,"border-[0.5px] border-l-2 border-sky-200 border-l-sky-600":t===i.selectedNode}),onClick:()=>i.setSelectedNode(t)}),(0,E.jsx)("div",{style:{paddingLeft:36*n+10+60*(n-1)+"px"},className:"relative h-6 flex-shrink-0",onClick:()=>i.setSelectedNode(t),children:a&&(0,E.jsxs)("div",{className:"absolute top-0 flex h-6 items-center justify-end",style:{width:"22px",right:"8px"},children:[(0,E.jsx)("div",{className:jn("h-[1px] w-full flex-1 bg-neutral-200",{"bg-sky-600":a===i.selectedGroupNode})}),void 0!==s&&s>0&&(0,E.jsx)("div",{className:jn("flex h-6 items-center justify-center pl-1 text-xs text-neutral-600",{"text-sky-600":a===i.selectedGroupNode}),children:a.operation===ui.AND?"and":"or"})]})}),(0,E.jsx)(Op,{className:"relative mr-1",node:t,view:o}),t.not&&(0,E.jsx)(Rp,{}),(0,E.jsx)(Jc,{className:"relative mr-1 w-32",onClick:c,open:p,children:t.column.name}),(0,E.jsx)(Qc,{className:"w-32",...d,onClosed:C,children:i.columns.map((e=>(0,E.jsx)(Zc,{onClick:()=>{if(e!==t.column){const n=t.operation.isCompatibleWithColumn(e)?t.operation:r.engine.filterOperations.filter((t=>t.isCompatibleWithColumn(e)))[0];n&&(t.setColumn(e),t.setOperation(n),t.setValue(n.generateDefaultValue(e)))}u()},autoFocus:t.column.name===e.name,children:e.name},e.name)))}),(0,E.jsx)(Jc,{className:"relative mr-1 w-24",onClick:g,open:f,children:t.operation.label}),(0,E.jsx)(Qc,{className:"w-24",...h,onClosed:C,children:r.engine.filterOperations.filter((e=>e.isCompatibleWithColumn(t.column))).map((e=>(0,E.jsx)(Zc,{onClick:()=>{e!==t.operation&&e.isCompatibleWithColumn(t.column)&&(t.setOperation(e),t.setValue(e.generateDefaultValue(t.column))),m()},autoFocus:t.operation.operator===e.operator,children:e.label},e.operator)))}),(0,E.jsx)("div",{className:"relative w-32 flex-shrink-0",children:(0,E.jsx)(kp,{ref:l,value:t.value,updateValue:e=>t.updateValue(e),view:o})})]})})),Fp=(0,bt.PA)((e=>{const{node:t,level:n,view:o}=e,r=o.filter,i=t.parent,a=i?i.children.indexOf(t):void 0,[s,l,c,u]=Dc();return(0,E.jsxs)("div",{className:"group flex h-6 items-center",children:[(0,E.jsx)("div",{className:jn("z-1 absolute h-6 w-full bg-opacity-50 group-hover:bg-sky-100 group-hover:bg-opacity-50",{"bg-sky-50":t===r.selectedNode,"border-[0.5px] border-l-2 border-sky-200 border-l-sky-600":t===r.selectedNode}),onClick:()=>r.setSelectedNode(t)}),(0,E.jsx)("div",{style:{paddingLeft:36*n+10+(0!==n?60*(n-1):0)+"px"},className:"relative h-6 flex-shrink-0",onClick:()=>r.setSelectedNode(t),children:0!==n&&i&&(0,E.jsxs)("div",{className:"absolute top-0 flex h-6 items-center justify-end",style:{width:"22px",right:"8px"},children:[(0,E.jsx)("div",{className:jn("h-[1px] w-full flex-1 bg-neutral-200",{"bg-sky-600":i===r.selectedGroupNode})}),void 0!==a&&a>0&&(0,E.jsx)("div",{className:jn("flex h-6 items-center justify-center pl-1 text-xs text-neutral-600",{"text-sky-600":i===r.selectedGroupNode}),children:i.operation===ui.AND?"and":"or"})]})}),0!==n&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Op,{className:"relative mr-1",node:t,view:o}),t.not&&(0,E.jsx)(Rp,{})]}),(0,E.jsx)(Jc,{className:"relative w-14",onClick:s,open:u,children:t.operation===ui.AND?"All of":"Any of"}),(0,E.jsxs)(Qc,{className:"w-14",...c,children:[(0,E.jsx)(Zc,{onClick:()=>{t.setOperation(ui.AND),l()},autoFocus:t.operation===ui.AND,children:"All of"}),(0,E.jsx)(Zc,{onClick:()=>{t.setOperation(ui.OR),l()},autoFocus:t.operation===ui.OR,children:"Any of"})]})]})})),Pp=(0,bt.PA)((e=>{const{node:t,level:n,view:o}=e,r=o.filter;return(0,E.jsxs)("div",{className:"relative w-full",children:[(0,E.jsx)("div",{className:jn("pointer-events-none absolute h-full",{"border-[0.5px] border-sky-200 bg-sky-50":t===r.selectedGroupNode}),style:{marginLeft:36*n+10+60*n-2+"px",width:`calc(100% - ${36*n+10+60*n-4}px)`}}),(0,E.jsx)(Fp,{node:t,level:n,view:o}),(0,E.jsxs)("div",{className:"relative",children:[(0,E.jsx)("div",{className:jn("pointer-events-none absolute z-10 h-[calc(100%_-_12px)] w-0 border-l border-neutral-200",{"border-sky-600":t===r.selectedGroupNode}),style:{marginLeft:36*n+10+6+60*n+"px"}}),t.children.map((e=>e instanceof gd?(0,E.jsx)(Lp,{level:n+1,node:e,view:o},e.uuid):e instanceof md?(0,E.jsx)(Pp,{level:n+1,node:e,view:o},e.uuid):null))]})]})})),Bp=(0,bt.PA)((e=>{const{view:t}=e,n=t.filter;return(0,Lt.useEffect)((()=>{n.setSelectedNode(void 0)}),[n]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"relative h-[calc(100%_-_40px)] w-full px-2 pt-2",children:(0,E.jsx)("div",{className:"h-full w-full overflow-auto border border-neutral-300 bg-white",children:(0,E.jsx)("div",{className:"h-full w-full select-none p-2",children:(0,E.jsx)("div",{className:"flex h-full w-full",children:(0,E.jsxs)("div",{className:"relative flex h-full w-full overflow-auto rounded-sm border border-neutral-200",onClick:()=>n.setSelectedNode(void 0),children:[!n.tree.root&&(0,E.jsxs)("div",{className:"h-full w-full p-3",children:[(0,E.jsx)("div",{children:"No filter is specified. Click the button below to start."}),(0,E.jsx)(Yc,{onClick:()=>{n.initializeTree()},children:"Create New Filter"})]}),n.tree.root&&(0,E.jsxs)("div",{className:"flex flex-col py-1",onClick:e=>e.stopPropagation(),children:[(0,E.jsx)(Pp,{node:n.tree.root,level:0,view:t}),(0,E.jsx)("div",{className:"min-h-6 w-full flex-1",onClick:()=>n.setSelectedNode(void 0)})]})]})})})})}),(0,E.jsxs)("div",{className:"flex h-10 items-center justify-end px-2",children:[(0,E.jsx)(Yc,{onClick:()=>n.display.close(),children:"Cancel"}),(0,E.jsx)(Yc,{className:"ml-2",onClick:()=>n.applyChanges(),children:"Apply"}),(0,E.jsx)(Yc,{className:"ml-2",onClick:()=>{n.applyChanges(),n.display.close()},children:"OK"})]})]})}));class Dp extends ld{_view;display;tree;selectedNode;columns=[];constructor(e){super(e.engine,e.settingService,e.snapshotService),(0,xe.Gn)(this,{tree:xe.sH.ref,initializeTree:xe.XI,refreshTree:xe.XI,columns:xe.sH.struct,applySnapshot:xe.XI,selectedNode:xe.sH,selectedGroupNode:xe.EW,setSelectedNode:xe.XI,addFilterNode:xe.XI,removeFilterNode:xe.XI,layerFilterNode:xe.XI}),this._view=e,this.display=this._view.dataCube.layoutService.newDisplay("Filter",(()=>(0,E.jsx)(Bp,{view:this._view})),{x:-50,y:50,width:600,height:400,minWidth:300,minHeight:200,center:!1}),this.tree={nodes:new Map}}initializeTree(){if(void 0===this.tree.root&&0===this.tree.nodes.size){const e=new md(void 0,ui.AND,void 0);this.tree.nodes.set(e.uuid,e),this.tree.root=e;const t=this.generateNewFilterNode(e);t&&(e.addChild(t),this.tree.nodes.set(t.uuid,t)),this.refreshTree()}}refreshTree(){this.tree={...this.tree}}get selectedGroupNode(){return this.selectedNode instanceof md?this.selectedNode:this.selectedNode?.parent}setSelectedNode(e){this.selectedNode=e}generateNewFilterNode(e){if(e instanceof gd)return new gd(void 0,e.column,e.operation,(0,dd.A)(e.value),e.not);if(e instanceof md&&0!==this.columns.length){const e=A(this.columns,0),t={name:e.name,type:e.type},n=this._engine.getFilterOperation(ci.EQUAL);return new gd(void 0,t,n,n.generateDefaultValue(t),void 0)}}addFilterNode(e){if(this.tree.root){const t=this.generateNewFilterNode(e),n=e.parent;n&&t&&(n.addChild(t,e instanceof gd?n.children.indexOf(e)+1:void 0),this.tree.nodes.set(t.uuid,t),this.refreshTree())}}removeFilterNode(e){if(this.tree.root){const t=e.parent;if(e!==this.tree.root&&t){let n=[e];for(;n.length;)n.forEach((e=>{e instanceof md&&e.children.forEach((e=>{e.setParent(void 0)})),this.tree.nodes.delete(e.uuid)})),n=Array.from(this.tree.nodes.values()).filter((e=>e!==this.tree.root&&!e.parent));if(t.removeChild(e),this.tree.nodes.delete(e.uuid),1===t.children.length){if(t!==this.tree.root){const e=A(t.children,0),n=P(t.parent);t.removeChild(e);const o=n.children.indexOf(t);n.removeChild(t),this.tree.nodes.delete(t.uuid),n.addChild(e,o)}}else 0===t.children.length&&t===this.tree.root&&(this.tree.root=void 0,this.tree.nodes.delete(t.uuid));this.refreshTree(),this.selectedNode===e&&this.setSelectedNode(void 0)}}}layerFilterNode(e){if(this.tree.root){const t=this.generateNewFilterNode(e),n=e.parent;if(n&&t){const o=n.children.indexOf(e);n.removeChild(e);const r=new md(void 0,ui.OR,void 0);r.addChild(e),r.addChild(t),n.addChild(r,o),this.tree.nodes.set(r.uuid,r),this.tree.nodes.set(t.uuid,t),this.refreshTree(),this.selectedNode===e&&this.setSelectedNode(r)}}}getSnapshotSubscriberName(){return"filter-editor"}async applySnapshot(e,t){const n=Xi.serialization.fromJson(e.data.configuration);this.columns=n.columns.filter((t=>!Hi(e.data.groupExtendedColumns,t.name))),this.tree.nodes=new Map,this.tree.root=e.data.filter?fd(e.data.filter,void 0,this.tree.nodes,(e=>this._engine.getFilterOperation(e))):void 0,this.setSelectedNode(void 0),this.refreshTree()}applyChanges(){const e=P(this.getLatestSnapshot()),t=e.clone();t.data.filter=this.tree.root?hd(this.tree.root):void 0,t.finalize(),t.hashCode!==e.hashCode&&this.publishSnapshot(t)}}var jp;!function(e){e.LEAF_LEVEL_MEASURE="Leaf Level Measure",e.LEAF_LEVEL_DIMENSION="Leaf Level Dimension",e.GROUP_LEVEL="Group Level"}(jp||(jp={}));const Mp=(0,bt.PA)((e=>{const{state:t}=e,n=Wc(),o=t.view,r=o.extend,i=(0,Lt.useRef)(null),a=t.isGroupLevel?jp.GROUP_LEVEL:t.columnKind===ii.MEASURE?jp.LEAF_LEVEL_MEASURE:jp.LEAF_LEVEL_DIMENSION,[s,l,c,u]=Dc(),[d,p,g,m]=Dc(),h=(0,Lt.useRef)(void 0),f=(0,Lt.useRef)(null),[C,b]=(0,Lt.useState)(),v=(0,Lt.useMemo)((()=>(0,Bn.A)((()=>{t.getReturnType().catch((e=>n.alertService.alertUnhandledError(e)))}),500)),[t,n]);return(0,Lt.useEffect)((()=>{if(!C&&f.current){const e=f.current,n=document.getElementById(Ar),r=Tr.editor.create(e,{contextmenu:!1,copyWithSyntaxHighlighting:!1,fontSize:14,fontFamily:"Roboto Mono",fontLigatures:!0,fixedOverflowWidgets:!0,detectIndentation:!1,tabSize:2,"bracketPairColorization.enabled":!1,automaticLayout:!0,fontSize:12,language:Lc.PURE,theme:vc.GITHUB_LIGHT,wordSeparators:iu,fixedOverflowWidgets:!0,...L(n)?{overflowWidgetsDomNode:n}:{}});h.current?.dispose(),h.current=Tr.languages.registerCompletionItemProvider(Lc.PURE,{triggerCharacters:[...iu,"$"],provideCompletionItems:async(e,n,r)=>{let i=[];return e.uri===t.editorModelUri&&(i=i.concat(await async function(e,n,o,r,i){const a=n.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:e.lineNumber,endColumn:e.column}),s=n.getWordAtPosition(e);let l=[];try{l=await r.getQueryTypeahead((o??"")+a,t.buildExtendBaseQuery(),i)}catch{}return l.map((t=>({label:t.display,kind:Tr.languages.CompletionItemKind.Text,filterText:t.display,insertTextRules:Tr.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:t.completion,range:{startLineNumber:e.lineNumber,startColumn:s?.startColumn??e.column,endLineNumber:e.lineNumber,endColumn:s?.endColumn??e.column}})))}(n,e,t.codePrefix,o.engine,o.source))),{suggestions:i}}}),r.setModel(t.editorModel),r.onDidChangeModelContent((()=>{const e=r.getValue();e!==t.code&&(t.code=e,t.clearError(),t.setReturnType(void 0),v.cancel(),v())})),r.focus(),r.setPosition({lineNumber:1,column:t.code.length+1}),t.setEditor(r),b(r)}}),[t,C,v,o]),(0,Lt.useEffect)((()=>()=>{C&&(C.dispose(),h.current?.dispose())}),[C]),(0,Lt.useEffect)((()=>{t.editor?.updateOptions({readOnly:t.finalizationState.isInProgress})}),[t,t.finalizationState.isInProgress]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"h-[calc(100%_-_40px)] w-full px-2 pt-2",children:(0,E.jsx)("div",{className:"h-full w-full overflow-auto border border-neutral-300 bg-white",children:(0,E.jsxs)("div",{className:"h-full w-full select-none p-0",children:[(0,E.jsxs)("div",{className:"h-24 w-full p-2",children:[(0,E.jsxs)("div",{className:"mt-1 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-24 flex-shrink-0 items-center text-sm",children:"Column Name:"}),(0,E.jsx)(Kc,{className:"w-32",ref:i,disabled:t.finalizationState.isInProgress,value:t.name,onChange:e=>{t.setName(e.target.value)}}),(0,E.jsx)("div",{className:"ml-0.5 flex h-5 w-5 flex-shrink-0 items-center justify-center text-lg",children:t.isNameValid?(0,E.jsx)(dr.CircleChecked,{className:"text-green-500"}):(0,E.jsx)(dr.CircledFailed,{className:"text-red-500"})})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsxs)("div",{className:"flex h-full w-24 flex-shrink-0 items-center text-sm",children:["Column Kind:",(0,E.jsx)(ou,{className:"ml-1",documentationKey:Dd.EXTENDED_COLUMN_LEVELS})]}),(0,E.jsx)(Jc,{className:"w-32",onClick:s,open:u,disabled:t.finalizationState.isInProgress,children:a}),(0,E.jsx)(Qc,{className:"w-32",...c,children:[jp.LEAF_LEVEL_MEASURE,jp.LEAF_LEVEL_DIMENSION,jp.GROUP_LEVEL].map((e=>(0,E.jsx)(Zc,{onClick:()=>{switch(e){case jp.LEAF_LEVEL_MEASURE:t.setColumnKind(!1,ii.MEASURE);break;case jp.LEAF_LEVEL_DIMENSION:t.setColumnKind(!1,ii.DIMENSION);break;case jp.GROUP_LEVEL:t.setColumnKind(!0,void 0);break;default:return}t.clearError(),t.setReturnType(void 0),v.cancel(),v(),l()},autoFocus:e===a,children:e},e)))})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-24 flex-shrink-0 items-center text-sm",children:"Value Type:"}),(0,E.jsx)(Jc,{className:"w-32",onClick:d,open:m,disabled:t.finalizationState.isInProgress,children:t.expectedType}),(0,E.jsx)("div",{className:"ml-0.5 flex h-5 w-5 flex-shrink-0 items-center justify-center text-lg",children:t.validationState.isInProgress?(0,E.jsx)(dr.Loader,{className:"animate-spin stroke-2 text-neutral-400"}):t.returnType?t.isTypeValid?(0,E.jsx)(dr.CircleChecked,{className:"text-green-500"}):(0,E.jsx)(dr.CircledFailed,{className:"text-red-500"}):null}),(0,E.jsx)(Qc,{className:"w-32",...g,children:[gi.TEXT,gi.NUMBER,gi.DATE].map((e=>(0,E.jsx)(Zc,{onClick:()=>{t.setExpectedType(e),p()},autoFocus:e===t.expectedType,children:e},e)))})]})]}),(0,E.jsx)("div",{className:"h-[calc(100%_-_96px)] w-full p-2 pt-1",children:(0,E.jsx)("div",{className:jn("relative h-full w-full border border-neutral-200",{"border-red-500":Boolean(t.codeError)}),children:(0,E.jsx)("div",{className:"absolute left-0 top-0 h-full w-full overflow-hidden",ref:f})})})]})})}),(0,E.jsxs)("div",{className:"flex h-10 items-center justify-end px-2",children:[(0,E.jsx)(Yc,{onClick:()=>t.close(),children:"Cancel"}),t instanceof Vp&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Yc,{className:"ml-2",onClick:()=>{r.deleteColumn(t.initialData.name).catch((e=>n.alertService.alertUnhandledError(e)))},children:"Delete"}),(0,E.jsx)(Yc,{className:"ml-2",onClick:()=>{t.reset().catch((e=>n.alertService.alertUnhandledError(e)))},children:"Reset"})]}),(0,E.jsx)(Yc,{className:"ml-2",disabled:!t.isNameValid||!t.isTypeValid||t.validationState.isInProgress||t.finalizationState.isInProgress,onClick:()=>{t.applyChanges().catch((e=>n.alertService.alertUnhandledError(e)))},children:"OK"})]})]})}));class Up{uuid=(0,i.A)();_manager;view;_name=`col_${this.uuid.replaceAll("-","_")}`;display;validationState=Ie.create();finalizationState=Ie.create();name;expectedType;isGroupLevel;columnKind;code="";codePrefix;codeSuffix;editor;editorModel;editorModelUri;codeError;returnType;constructor(e,t,n,o,r){(0,xe.Gn)(this,{name:xe.sH,setName:xe.XI,isNameValid:xe.EW,expectedType:xe.sH,setExpectedType:xe.XI,isTypeValid:xe.EW,isGroupLevel:xe.sH,columnKind:xe.sH,setColumnKind:xe.XI,editor:xe.sH.ref,setEditor:xe.XI,codeError:xe.sH.ref,showError:xe.XI,clearError:xe.XI,returnType:xe.sH,setReturnType:xe.XI}),this._manager=e,this.view=e.view,this.display=this.newDisplay(this),this.name=t,this.expectedType=n,this.isGroupLevel=o,this.columnKind=r,this.codePrefix=`->extend(~${this._name}:`,this.codeSuffix=")",this.editorModelUri=Tr.Uri.file(`/${this.uuid}.pure`),this.editorModel=Tr.editor.createModel("",Lc.PURE,this.editorModelUri)}async initialize(){this.code=await this.getInitialCode(),this.editorModel.setValue(this.code)}setName(e){this.name=e}get isNameValid(){return!this._manager.allColumnNames.includes(this.name)}setExpectedType(e){this.expectedType=e}get isTypeValid(){return void 0!==this.returnType&&this.expectedType===ji(this.returnType)}setColumnKind(e,t){this.isGroupLevel=e,this.columnKind=t}setEditor(e){this.editor=e}setReturnType(e){this.returnType=e}showError(e){this.codeError=e,e.sourceInformation&&Oc(this.editorModel,[{message:e.message,startLineNumber:e.sourceInformation.startLine,startColumn:e.sourceInformation.startColumn,endLineNumber:e.sourceInformation.endLine,endColumn:e.sourceInformation.endColumn}],this.uuid)}clearError(){var e;this.codeError=void 0,e=this.uuid,Tr.editor.removeAllMarkers(e??Rc)}buildExtendBaseQuery(){const e=P(this._manager.getLatestSnapshot()).clone();return this.isGroupLevel||(e.data.leafExtendedColumns=[],e.data.selectColumns=[],e.data.filter=void 0,e.data.groupBy=void 0,e.data.pivot=void 0),e.data.groupExtendedColumns=[],e.data.sortColumns=[],e.data.limit=void 0,vl([],[Ml(e,this.view.source,this.view.engine,{skipExecutionContext:!0})])}async getReturnType(){this.validationState.inProgress(),this.clearError(),this.setReturnType(void 0);try{const e=await this.view.engine.getQueryCodeRelationReturnType(this.codePrefix+this.code+this.codeSuffix,this.buildExtendBaseQuery(),this.view.source);let t=Hi(e.columns,this._name)?.type;return t=t&&Ui(t)?t:void 0,this.setReturnType(t),t}catch(e){if(w(e),e instanceof Xd){if(this.validationState.fail(),e.sourceInformation){e.sourceInformation.startColumn-=1===e.sourceInformation.startLine?this.codePrefix.length:0,e.sourceInformation.endColumn-=1===e.sourceInformation.endLine?this.codePrefix.length:0;const t=this.editorModel.getFullModelRange();(e.sourceInformation.startLine<1||1===e.sourceInformation.startLine&&e.sourceInformation.startColumn<1||e.sourceInformation.endLine>t.endLineNumber||e.sourceInformation.endLine===t.endLineNumber&&e.sourceInformation.endColumn>t.endColumn)&&(e.sourceInformation.startColumn=t.startColumn,e.sourceInformation.startLine=t.startLineNumber,e.sourceInformation.endColumn=t.endColumn,e.sourceInformation.endLine=t.endLineNumber)}return void this.showError(e)}this.view.dataCube.alertService.alertError(e,{message:`Expression Validation Failure: ${e.message}`})}finally{this.validationState.complete()}}close(){this.editorModel.dispose(),this.editor?.dispose(),this.display.close()}}class Gp extends Up{initialCode;constructor(e,t){super(e,`col_${e.allColumnNames.length+1}`,t?ji(t.type):gi.NUMBER,!1,t?t.kind:ii.MEASURE),this.initialCode=t?`${fi}|$${fi}.${t.name}`:`${fi}|`}async getInitialCode(){return this.initialCode}newDisplay(e){return this.view.dataCube.layoutService.newDisplay("Add New Column",(()=>(0,E.jsx)(Mp,{state:this})),{x:50,y:50,width:500,height:300,minWidth:300,minHeight:200,center:!1})}async applyChanges(){if(!this.validationState.hasCompleted||!this.isNameValid||!this.isTypeValid)return;let e,t;this.finalizationState.inProgress();try{[e,t]=await Promise.all([this.view.engine.parseValueSpecification(this.code,!1),this.getReturnType()])}catch(e){return w(e),void this.view.dataCube.alertService.alertError(e,{message:`Expression Validation Failure: ${e.message}`})}finally{this.finalizationState.complete()}e instanceof Ur?t?(this._manager.addNewColumn({name:this.name,type:t,mapFn:this.view.engine.serializeValueSpecification(e)},this.isGroupLevel,this.columnKind,this),this.close()):this.view.dataCube.alertService.alertError(new Error,{message:"Expression Validation Failure: Can't compute expression return type."}):this.view.dataCube.alertService.alertError(new Error,{message:"Expression Validation Failure: Expression must be a lambda."})}}class Vp extends Up{initialData;constructor(e,t,n,o){super(e,t.name,ji(t.type),o,n),(0,xe.Gn)(this,{initialData:xe.sH.ref,isNameValid:xe.$Z}),this.initialData={name:t.name,type:t.type,kind:n,isGroupLevel:o,mapFn:t.mapFn}}get isNameValid(){return!this._manager.allColumnNames.filter((e=>e!==this.initialData.name)).includes(this.name)}async getInitialCode(){return this.view.engine.getValueSpecificationCode(this.view.engine.deserializeValueSpecification(this.initialData.mapFn),!0)}newDisplay(e){return this.view.dataCube.layoutService.newDisplay("Edit Column",(()=>(0,E.jsx)(Mp,{state:this})),{x:50,y:50,width:500,height:300,minWidth:300,minHeight:200,center:!1})}async reset(){this.setName(this.initialData.name),this.setExpectedType(ji(this.initialData.type)),this.setColumnKind(this.initialData.isGroupLevel,this.initialData.kind),await this.initialize(),await this.getReturnType()}async applyChanges(){if(!this.validationState.hasCompleted||!this.isNameValid||!this.isTypeValid)return;let e,t;this.finalizationState.inProgress();try{[e,t]=await Promise.all([this.view.engine.parseValueSpecification(this.code,!1),this.getReturnType()])}catch(e){return w(e),void this.view.dataCube.alertService.alertError(e,{message:`Expression Validation Failure: ${e.message}`})}finally{this.finalizationState.complete()}e instanceof Ur?t?await this._manager.updateColumn(this.initialData.name,{name:this.name,type:t,mapFn:this.view.engine.serializeValueSpecification(e)},this.isGroupLevel,this.columnKind):this.view.dataCube.alertService.alertError(new Error,{message:"Expression Validation Failure: Can't compute expression return type."}):this.view.dataCube.alertService.alertError(new Error,{message:"Expression Validation Failure: Expression must be a lambda."})}}class Hp{name;type;data;constructor(e){this.name=e.name,this.type=e.type,this.data=e}}class Wp extends ld{view;columnConfigurations=[];selectColumns=[];sourceColumns=[];horizontalPivotCastColumns=[];leafExtendedColumns=[];groupExtendedColumns=[];newColumnEditors=[];existingColumnEditors=[];constructor(e){super(e.engine,e.settingService,e.snapshotService),(0,xe.Gn)(this,{sourceColumns:xe.sH.ref,horizontalPivotCastColumns:xe.sH.ref,leafExtendedColumns:xe.sH,setLeafExtendedColumns:xe.XI,groupExtendedColumns:xe.sH,setGroupExtendedColumns:xe.XI,allColumnNames:xe.EW,addNewColumn:xe.XI,updateColumn:xe.XI,deleteColumn:xe.XI,applySnapshot:xe.XI}),this.view=e}setLeafExtendedColumns(e){this.leafExtendedColumns=e}setGroupExtendedColumns(e){this.groupExtendedColumns=e}get allColumnNames(){return(0,tt.A)([...this.sourceColumns,...this.leafExtendedColumns,...this.groupExtendedColumns,...this.horizontalPivotCastColumns],(e=>e.name)).map((e=>e.name))}async openNewColumnEditor(e){const t=new Gp(this,e);await t.initialize(),this.newColumnEditors.push(t),t.display.open()}async openExistingColumnEditor(e){const t=this.existingColumnEditors.find((t=>t.initialData.name===e));if(t)return void t.display.open();if(!Hi(this.leafExtendedColumns,e)&&!Hi(this.groupExtendedColumns,e))return;const n=new Vp(this,P(Hi(this.leafExtendedColumns,e)??Hi(this.groupExtendedColumns,e)).data,P(Hi(this.columnConfigurations,e)).kind,Boolean(Hi(this.groupExtendedColumns,e)));await n.initialize(),this.existingColumnEditors.push(n),n.display.open()}addNewColumn(e,t,n,o){const r=sp(e);n&&(r.kind=n,r.excludedFromPivot=n===ii.DIMENSION),this.columnConfigurations.push(r),S(this.newColumnEditors,o),t?this.groupExtendedColumns.push(new Hp(e)):(this.leafExtendedColumns.push(new Hp(e)),this.selectColumns.push(Wi(e))),this.applyChanges()}async updateColumn(e,t,n,o){if(!Hi(this.leafExtendedColumns,e)&&!Hi(this.groupExtendedColumns,e))return;const r=P(Hi(this.columnConfigurations,e)),i=this.view.taskService.newTask("Checking column update..."),a=P(this.getLatestSnapshot()).clone();a.data.leafExtendedColumns=a.data.leafExtendedColumns.filter((t=>t.name!==e)),a.data.groupExtendedColumns=a.data.groupExtendedColumns.filter((t=>t.name!==e)),a.data.selectColumns=a.data.selectColumns.filter((t=>t.name!==e)),n?a.data.groupExtendedColumns.push(t):(a.data.leafExtendedColumns.push(t),r.isSelected&&a.data.selectColumns.push(Wi(t))),a.data.configuration={...a.data.configuration,columns:this.columnConfigurations.map((n=>n.name===e?{...n.serialize(),...Wi(t),kind:o}:n.serialize()))};const s=await this._engine.getPartialQueryCode(a,!0);try{await this._engine.getQueryCodeRelationReturnType("->"+s,vl([],[this.view.source.query]),this.view.source)}catch(t){return w(t),void(t instanceof Xd?this.view.dataCube.alertService.alertCodeCheckError(t,s,"->",{message:`Column Update Check Failure: Can't safely update column '${e}'. Check the query code below for more details.`,text:`Error: ${t.message}`}):this.view.dataCube.alertService.alertError(t,{message:`Column Update Check Failure: Can't safely update column '${e}'.`,text:`Error: ${t.message}`}))}finally{this.view.taskService.endTask(i)}this.setLeafExtendedColumns(this.leafExtendedColumns.filter((t=>t.name!==e))),this.setGroupExtendedColumns(this.groupExtendedColumns.filter((t=>t.name!==e))),this.selectColumns=this.selectColumns.filter((t=>t.name!==e)),n?this.setGroupExtendedColumns([...this.groupExtendedColumns,new Hp(t)]):(this.setLeafExtendedColumns([...this.leafExtendedColumns,new Hp(t)]),r.isSelected&&this.selectColumns.push(Wi(t))),this.columnConfigurations=this.columnConfigurations.map((n=>(n.name===e&&(n.kind=o??ji(t.type)===gi.NUMBER?ii.MEASURE:ii.DIMENSION,n.name=t.name,n.type=t.type,n.excludedFromPivot=n.kind===ii.DIMENSION),n))),this.existingColumnEditors.filter((t=>t.initialData.name===e)).forEach((e=>e.display.close())),this.existingColumnEditors=this.existingColumnEditors.filter((t=>t.initialData.name!==e)),this.applyChanges()}async deleteColumn(e){if(!Hi(this.leafExtendedColumns,e)&&!Hi(this.groupExtendedColumns,e))return;const t=this.view.taskService.newTask("Checking column deletion..."),n=P(this.getLatestSnapshot()).clone();n.data.leafExtendedColumns=n.data.leafExtendedColumns.filter((t=>t.name!==e)),n.data.groupExtendedColumns=n.data.groupExtendedColumns.filter((t=>t.name!==e)),n.data.selectColumns=n.data.selectColumns.filter((t=>t.name!==e)),n.data.configuration={...n.data.configuration,columns:this.columnConfigurations.filter((t=>t.name!==e)).map((e=>e.serialize()))};const o=await this._engine.getPartialQueryCode(n,!0);try{await this._engine.getQueryCodeRelationReturnType("->"+o,vl([],[this.view.source.query]),this.view.source)}catch(t){return w(t),void(t instanceof Xd?this.view.dataCube.alertService.alertCodeCheckError(t,o,"->",{message:`Column Delete Check Failure: Can't safely delete column '${e}'. Check the query code below for more details.`,text:`Error: ${t.message}`}):this.view.dataCube.alertService.alertError(t,{message:`Column Delete Check Failure: Can't safely delete column '${e}'.`,text:`Error: ${t.message}`}))}finally{this.view.taskService.endTask(t)}this.setLeafExtendedColumns(this.leafExtendedColumns.filter((t=>t.name!==e))),this.setGroupExtendedColumns(this.groupExtendedColumns.filter((t=>t.name!==e))),this.columnConfigurations=this.columnConfigurations.filter((t=>t.name!==e)),this.selectColumns=this.selectColumns.filter((t=>t.name!==e)),this.existingColumnEditors.filter((t=>t.initialData.name===e)).forEach((e=>e.display.close())),this.existingColumnEditors=this.existingColumnEditors.filter((t=>t.initialData.name!==e)),this.applyChanges()}getSnapshotSubscriberName(){return"extend-manager"}async applySnapshot(e,t){const n=Xi.serialization.fromJson(e.data.configuration);this.columnConfigurations=n.columns,this.sourceColumns=e.data.sourceColumns,this.leafExtendedColumns=e.data.leafExtendedColumns.map((e=>new Hp(e))),this.groupExtendedColumns=e.data.groupExtendedColumns.map((e=>new Hp(e))),this.horizontalPivotCastColumns=e.data.pivot?.castColumns??[],this.selectColumns=e.data.selectColumns.map(Wi),[...this.newColumnEditors,...this.existingColumnEditors].forEach((e=>{e.getReturnType().catch((()=>{}))}))}applyChanges(){const e=P(this.getLatestSnapshot()),t=e.clone();t.data.configuration={...e.data.configuration,columns:this.columnConfigurations.map((e=>e.serialize()))},t.data.leafExtendedColumns=this.leafExtendedColumns.map((e=>e.data)),t.data.groupExtendedColumns=this.groupExtendedColumns.map((e=>e.data)),t.data.selectColumns=[...this.selectColumns],t.finalize(),t.hashCode!==e.hashCode&&this.publishSnapshot(t)}}class $p{autoEnableCache;static serialization=new ge((0,pe.PL)($p,{autoEnableCache:(0,pe.lq)((0,pe.MY)())}))}class zp{query;configuration;source;options;static serialization=new ge((0,pe.PL)(zp,{configuration:me(Xi.serialization.schema),options:(0,pe.lq)(me($p.serialization.schema)),query:(0,pe.MY)(),source:(0,pe.lS)()}))}class Yp{uuid=(0,i.A)();description;startTime=Date.now();ownerId;endTime;constructor(e,t){this.description=e,this.ownerId=t}end(){this.endTime=Date.now()}}class Xp{tasks=[];constructor(){(0,xe.Gn)(this,{tasks:xe.sH,newTask:xe.XI,endTask:xe.XI,endTasks:xe.XI})}newTask(e,t){const n=new Yp(e,t);return this.tasks.push(n),n}endTask(e){return this.tasks.find((t=>t.uuid===e.uuid))&&(this.tasks=this.tasks.filter((t=>t.uuid!==e.uuid)),e.end()),e}endTasks(e){this.tasks=this.tasks.filter((t=>!e.find((e=>e.uuid===t.uuid)))),e.forEach((e=>e.end()))}}class Kp{uuid=(0,i.A)();manager;constructor(e){(0,xe.Gn)(this,{tasks:xe.EW}),this.manager=e??new Xp}get tasks(){return this.manager.tasks.filter((e=>e.ownerId===this.uuid))}newTask(e){return this.manager.newTask(e,this.uuid)}endTask(e){return this.manager.endTask(e)}dispose(){this.manager.endTasks(this.tasks)}}class qp extends Vl{model;runtime;db;schema;table;count}class Jp{dataCube;engine;logService;taskService;layoutService;alertService;settingService;snapshotService;info;editor;grid;filter;extend;initializeState=Ie.create();processCacheState=Ie.create();_source;_initialSource;_initialSpecification;constructor(e){this.dataCube=e,this.engine=e.engine,this.logService=e.logService,this.taskService=new Kp(e.taskService.manager),this.layoutService=e.layoutService,this.alertService=e.alertService,this.settingService=e.settingService,this.snapshotService=new cd(this.logService,this.settingService),this.info=new ip(this),this.editor=new qd(this),this.grid=new rp(this),this.filter=new Dp(this),this.extend=new Wp(this)}getInitialSource(){return this._initialSource}async generateSpecification(){const e=this.snapshotService.getCurrentSnapshot(),t=new zp;return t.source=this.dataCube.specification.source,t.configuration=Xi.serialization.fromJson(e.data.configuration),t.query=await this.engine.getPartialQueryCode(e),t}get source(){if(!this._source)throw new x("Source is not initialized");return this._source}updateName(e){const t=this.snapshotService.getCurrentSnapshot(),n=t.clone(),o=Xi.serialization.fromJson(t.data.configuration);o.name!==e&&(o.name=e,n.data.configuration=o.serialize(),n.finalize(),n.hashCode!==t.hashCode&&this.snapshotService.broadcastSnapshot(n))}async applySpecification(e){const t=this.taskService.newTask("Applying specification...");try{if(!this._initialSource||!this._initialSpecification)throw new Error("DataCube is not initialized");if(!(0,Ro.A)(e.source,this._initialSpecification.source))throw new Error("Can't apply specification with different source");const t=await this.engine.parseValueSpecification(e.query),n=await gp(t,this._initialSource,e,this.engine);n.finalize(),n.hashCode!==this.snapshotService.getCurrentSnapshot().hashCode&&this.snapshotService.broadcastSnapshot(n)}catch(e){w(e),this.alertService.alertError(e,{message:`Specification Application Failure: ${e.message}`}),this.initializeState.fail()}finally{this.taskService.endTask(t)}}async initializeCache(){this.processCacheState.inProgress();const e=this.taskService.newTask("Initializing cache...");try{const e=await this.engine.initializeCache(this.source,{debug:this.settingService.getBooleanValue(lu.DEBUGGER__ENABLE_DEBUG_MODE),clientVersion:this.settingService.getBooleanValue(lu.DEBUGGER__USE_DEV_CLIENT_PROTOCOL_VERSION)?Ul.VX_X_X:void 0});e&&(this._source=e),this.processCacheState.pass()}catch(e){w(e),this.alertService.alertError(e,{message:`Cache Processing Failure: ${e.message}`}),this._source=this._initialSource,this.processCacheState.fail()}finally{this.taskService.endTask(e)}}async disposeCache(){if(!(this._source instanceof qp))return;const e=this._source;this._source=this._initialSource,this.processCacheState.inProgress();const t=this.taskService.newTask("Disposing cache...");try{await this.engine.disposeCache(e)}catch(e){w(e),this.alertService.alertError(e,{message:`Cache Processing Failure: ${e.message}`})}finally{this.processCacheState.complete(),this.taskService.endTask(t)}}async initialize(e){this.initializeState.inProgress();const t=this.taskService.newTask("Initializing...");try{await Promise.all([this.info,this.editor,this.grid,this.grid.controller,this.filter,this.extend].map((async e=>{this.snapshotService.registerSubscriber(e)})));const t=await this.engine.processSource(e.source);this._source=t,this._initialSource=t,this._initialSpecification=e;const n=await this.engine.parseValueSpecification(e.query),o=await gp(n,t,e,this.engine);e.options?.autoEnableCache&&(await this.grid.setCachingEnabled(!0,{suppressWarning:!0}),this.settingService.getBooleanValue(lu.GRID_CLIENT__SHOW_AUTO_ENABLE_CACHE_PERFORMANCE_WARNING)&&this.alertService.alert({message:"Caching is auto-enabled for this DataCube",text:"When enabled, the source dataset will be cached locally in order to boost query performance. But depending on computational resource available to your environment, sometimes, caching can negatively impact the overall performance, and can even lead to crashes.\n\nOverall, caching is still an experimental feature where we only support queries with simple execution plans, certain queries might not work.\n\nYou can disable caching if needed, otherwise, please proceed with caution.",type:su.WARNING,actions:[{label:"OK",handler:()=>{}},{label:"Disable Caching",handler:()=>{this.grid.setCachingEnabled(!1,{suppressWarning:!0}).catch((e=>this.alertService.alertUnhandledError(e)))}},{label:"Dismiss Warning",handler:()=>{this.settingService.updateValue(this.dataCube.api,lu.GRID_CLIENT__SHOW_AUTO_ENABLE_CACHE_PERFORMANCE_WARNING,!1)}}],windowConfig:{...fr,width:600,height:300,minWidth:300,minHeight:150}})),this.snapshotService.broadcastSnapshot(o),this.dataCube.options?.onViewInitialized?.({api:this.dataCube.api,source:t}),this.initializeState.pass()}catch(e){w(e),this.alertService.alertError(e,{message:`Initialization Failure: ${e.message}`,text:"Resolve the issue and reload the engine."}),this.initializeState.fail()}finally{this.taskService.endTask(t)}}dispose(){this.taskService.dispose()}}var Qp;!function(e){e.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING="data-cube.settings.failure.found-unregistered-setting",e.SETTINGS__FAILURE__ASSIGN_INCOMPATIBLE_VALUE="data-cube.settings.failure.assign-incompatible-value",e.SETTINGS__FAILURE__RETRIEVE_INCOMPATIBLE_VALUE="data-cube.settings.failure.retrieve-incompatible-value"}(Qp||(Qp={}));const Zp=(0,bt.PA)((e=>{const{configuration:t}=e,n=Wc(),o=n.settingService;switch(t.type){case ng.BOOLEAN:{const e=z(o.currentValues.get(t.key));return(0,E.jsxs)("div",{className:"my-2",children:[(0,E.jsx)("div",{className:"font-medium",children:t.title}),(0,E.jsx)("div",{className:"flex pr-2",children:(0,E.jsx)(qc,{label:t.description,checked:e,onChange:()=>{(0,xe.h5)((()=>{o.currentValues.set(t.key,!e)}))}})})]})}case ng.NUMERIC:{const e=$(o.currentValues.get(t.key)),n=t.defaultValue;return(0,E.jsxs)("div",{className:"my-2",children:[(0,E.jsx)("div",{className:"font-medium",children:t.title}),(0,E.jsx)("div",{className:"mb-1.5 text-sm text-neutral-700",children:t.description}),(0,E.jsx)(Xc,{className:"w-20 text-sm",min:t.numericValueMin,step:t.numericValueStep,max:t.numericValueMax,defaultValue:n,value:e,setValue:e=>{(0,xe.h5)((()=>{o.currentValues.set(t.key,e??n)}))}})]})}case ng.STRING:{const e=W(o.currentValues.get(t.key));return(0,E.jsxs)("div",{className:"my-2",children:[(0,E.jsx)("div",{className:"font-medium",children:t.title}),(0,E.jsx)("div",{className:"mb-1.5 text-sm text-neutral-700",children:t.description}),(0,E.jsx)(Kc,{className:"w-80 text-sm",value:e,onChange:e=>{(0,xe.h5)((()=>{o.currentValues.set(t.key,e.target.value)}))}})]})}case ng.ACTION:return(0,E.jsxs)("div",{className:"my-2",children:[(0,E.jsx)("div",{className:"font-medium",children:t.title}),(0,E.jsx)("div",{className:"mb-1.5 text-sm text-neutral-700",children:t.description}),(0,E.jsx)("div",{className:"flex pr-2",children:(0,E.jsx)(Yc,{compact:!0,onClick:()=>t.action?.(n.api,void 0),children:"Run Action"})})]});default:return null}})),eg=(0,bt.PA)((()=>{const e=Wc(),t=e.settingService,n=Array.from(t.configurations.values()).toSorted(((e,t)=>e.title.localeCompare(t.title)));return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"h-[calc(100%_-_40px)] w-full p-2 pb-0",children:(0,E.jsxs)("div",{className:"h-full w-full select-none overflow-auto border border-neutral-300 bg-white p-2",children:[(0,E.jsx)("div",{className:"mt-1 flex h-5",children:(0,E.jsxs)("div",{className:"flex h-full",children:[(0,E.jsx)("div",{className:"flex h-5 items-center text-xl font-medium",children:(0,E.jsx)(dr.Table,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-5 items-center text-xl font-medium",children:"Grid"})]})}),n.filter((e=>e.group===tg.GRID)).map((e=>(0,E.jsx)(Zp,{configuration:e},e.key))),(0,E.jsx)("div",{className:"my-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsx)("div",{className:"mt-1 flex h-5",children:(0,E.jsxs)("div",{className:"flex h-full",children:[(0,E.jsx)("div",{className:"flex h-5 items-center text-xl font-medium",children:(0,E.jsx)(dr.Debug,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-5 items-center text-xl font-medium",children:"Debug"})]})}),n.filter((e=>e.group===tg.DEBUG)).map((e=>(0,E.jsx)(Zp,{configuration:e},e.key)))]})}),(0,E.jsxs)("div",{className:"flex h-10 items-center justify-end px-2",children:[(0,E.jsx)(Yc,{onClick:()=>t.restoreDefaultValues(),disabled:!t.allowRestoreDefaultValues,children:"Restore Default Settings"}),(0,E.jsx)(Yc,{className:"ml-2",onClick:()=>{t.display.close()},children:"Cancel"}),(0,E.jsx)(Yc,{className:"ml-2",onClick:()=>t.save(e.api),children:"Apply"}),(0,E.jsx)(Yc,{className:"ml-2",onClick:()=>{t.save(e.api),t.display.close()},children:"OK"})]})]})}));var tg,ng,og,rg,ig,ag;!function(e){e.DEBUG="Debug",e.EDITOR="Editor",e.GRID="Grid"}(tg||(tg={})),function(e){e.BOOLEAN="boolean",e.NUMERIC="numeric",e.STRING="string",e.ACTION="action"}(ng||(ng={}));class sg{_engine;_logService;_layoutService;_options;display;configurations=new Map;defaultValues=new Map;_defaultValuesHashCode;values=new Map;currentValues=new Map;constructor(e,t,n,o){(0,xe.Gn)(this,{values:xe.sH,save:xe.XI,valuesHashCode:xe.EW,currentValues:xe.sH,restoreDefaultValues:xe.XI,currentValuesHashCode:xe.EW,allowRestoreDefaultValues:xe.EW}),this._engine=e,this._logService=t,this._layoutService=n,this._options=o,this.display=this._layoutService.newDisplay("Settings",(()=>(0,E.jsx)(eg,{})),{x:-50,y:50,width:600,height:400,minWidth:300,minHeight:200,center:!1});const r=[{key:lu.DEBUGGER__ENABLE_DEBUG_MODE,title:"Debug Mode: Enabled",description:"Enables debug logging when running data queries, updating snapshots, etc.",group:tg.DEBUG,type:ng.BOOLEAN,defaultValue:!1},{key:lu.DEBUGGER__USE_DEV_CLIENT_PROTOCOL_VERSION,title:"Use development client protocol version: Enabled",description:"Specifies if development client protocol version (vX_X_X) should be used for execution",group:tg.DEBUG,type:ng.BOOLEAN,defaultValue:!1},{key:lu.DEBUGGER__ACTION__RELOAD,title:"Reload",description:"Manually reload DataCube (keeping all states). This is needed when making changes to settings that require reloading to take effect.",group:tg.DEBUG,type:ng.ACTION,action:e=>e.reload(),defaultValue:void 0},{key:lu.GRID_CLIENT__SHOW_CACHE_PERFORMANCE_WARNING,title:"Caching Performance Warning: Enabled",description:"Alerts user of potential performance and resource-related issues that caching can cause when enabled.",group:tg.GRID,type:ng.BOOLEAN,defaultValue:!0},{key:lu.GRID_CLIENT__SHOW_AUTO_ENABLE_CACHE_PERFORMANCE_WARNING,title:"Caching (Auto-Enabled) Performance Warning: Enabled",description:"Alerts user that caching is auto-enabled for the DataCube and of potential performance and resource-related issues that caching can cause when enabled.",group:tg.GRID,type:ng.BOOLEAN,defaultValue:!0},{key:lu.EDITOR__MAX_HISTORY_STACK_SIZE,title:"Max History Stack Size",description:"Sets the number of maximum snapshots to store in edit history.",group:tg.EDITOR,type:ng.NUMERIC,defaultValue:100,numericValueMin:10,numericValueStep:10,action:(e,t)=>e._runTaskForEachView((e=>{e.snapshotService.adjustHistorySize(t)}))},{key:lu.GRID_CLIENT__SUPPRESS_LARGE_DATASET_WARNING,title:"Large Dataset Warning: Disabled",description:"Suggests user to enable pagination when handling large datasets to improve performance.",group:tg.GRID,type:ng.BOOLEAN,defaultValue:!1},{key:lu.GRID_CLIENT__ROW_BUFFER,title:"Row Buffer",description:"Sets the number of rows the grid renders outside of the viewable area. e.g. if the buffer is 10 and your grid is showing 50 rows (as that's all that fits on your screen without scrolling), then the grid will actually render 70 in total (10 extra above and 10 extra below). Then when you scroll, the grid will already have 10 rows ready and waiting to show, no redraw is needed. A low small buffer will make initial draws of the grid faster; whereas a big one will reduce the redraw visible vertically scrolling.",group:tg.GRID,type:ng.NUMERIC,defaultValue:50,numericValueMin:10,numericValueStep:10,action:(e,t)=>e._runTaskForEachView((e=>{e.grid.client.updateGridOptions({rowBuffer:t})}))},{key:lu.GRID_CLIENT__PURGE_CLOSED_ROW_NODES,title:"Refresh Group Node Data: Enabled",description:"Forces refresh data when group node is opened.",group:tg.GRID,type:ng.BOOLEAN,defaultValue:!1,action:(e,t)=>e._runTaskForEachView((e=>{e.grid.client.updateGridOptions({purgeClosedRowNodes:t})}))},{key:lu.GRID_CLIENT__ACTION__RETRY_FAILED_DATA_FETCHES,title:"Retry Failed Data Fetches: Action",description:"Manually re-runs all failed data fetches in the grid.",group:tg.GRID,type:ng.ACTION,action:e=>e.retryFailedDataFetches(),defaultValue:void 0}],{configurations:i,values:a}=o?.settingsData??{};[...r,...i??[]].forEach((e=>{this.configurations.set(e.key,e),this.setValue(e.key,e.defaultValue,[this.defaultValues,this.values,this.currentValues])}));const s=a??{};Object.keys(s).forEach((e=>{const t=s[e];this.configurations.get(e)&&this.setValue(e,t,[this.values,this.currentValues])})),this._defaultValuesHashCode=this.computeValuesHashCode(this.defaultValues)}setValue(e,t,n){const o=this.configurations.get(e);if(!o)return this._logService.logWarning(c.create(Qp.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING),`Can't set value for unregistered setting '${e}'`),!1;switch(o.type){case ng.BOOLEAN:if(!(V(t)||void 0===t&&o.valueOptional))return this._logService.logWarning(c.create(Qp.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING),`Can't set value for setting '${e}': boolean value expected`),!1;break;case ng.NUMERIC:if(!(G(t)||void 0===t&&o.valueOptional))return this._logService.logWarning(c.create(Qp.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING),`Can't set value for setting '${e}': numeric value expected`),!1;break;case ng.STRING:if(!(U(t)||void 0===t&&o.valueOptional))return this._logService.logWarning(c.create(Qp.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING),`Can't set value for setting '${e}': string value expected`),!1;break;case ng.ACTION:return!1;default:throw new I(`Can't set value for unsupported setting type '${o.type}'`)}return n.forEach((n=>{(0,xe.h5)((()=>n.set(e,t)))})),!0}getConfiguration(e){const t=this.configurations.get(e);if(!t)throw this._logService.logWarning(c.create(Qp.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING),`Can't retrieve value for unregistered setting '${e}'`),new x(`Can't retrieve value for unregistered setting '${e}'`);return t}getBooleanValue(e){const t=this.values.get(e);if(this.getConfiguration(e).type!==ng.BOOLEAN||!V(t))throw this._logService.logWarning(c.create(Qp.SETTINGS__FAILURE__RETRIEVE_INCOMPATIBLE_VALUE),`Can't retrieve boolean value for setting '${e}'`),new x(`Can't retrieve boolean value for setting '${e}'`);return t}getNumericValue(e){const t=this.values.get(e);if(this.getConfiguration(e).type!==ng.NUMERIC||!G(t))throw this._logService.logWarning(c.create(Qp.SETTINGS__FAILURE__RETRIEVE_INCOMPATIBLE_VALUE),`Can't retrieve numeric value for setting '${e}'`),new x(`Can't retrieve numeric value for setting '${e}'`);return t}getStringValue(e){const t=this.values.get(e);if(this.getConfiguration(e).type!==ng.STRING||!U(t))throw this._logService.logWarning(c.create(Qp.SETTINGS__FAILURE__RETRIEVE_INCOMPATIBLE_VALUE),`Can't retrieve string value for setting '${e}'`),new x(`Can't retrieve string value for setting '${e}'`);return t}computeValuesHashCode(e){return Lr(Array.from(e.entries()).toSorted(((e,t)=>e[0].localeCompare(t[0]))).map((([e,t])=>`${e}:${t}`)))}get valuesHashCode(){return this.computeValuesHashCode(this.values)}get currentValuesHashCode(){return this.computeValuesHashCode(this.currentValues)}get allowRestoreDefaultValues(){return this._defaultValuesHashCode!==this.currentValuesHashCode}restoreDefaultValues(){this.currentValues.clear(),this.defaultValues.forEach(((e,t)=>this.currentValues.set(t,e)))}getCurrentSettingValues(){const e={};return this.values.forEach(((t,n)=>{const o=this.configurations.get(n);o&&t!==o.defaultValue&&(e[n]=t)})),e}updateValue(e,t,n){const o=this.configurations.get(t);o?this.setValue(t,n,[this.values,this.currentValues])&&(this._options?.onSettingsChanged?.({api:e,values:this.getCurrentSettingValues()}),o.action?.(e,n)):this._logService.logWarning(c.create(Qp.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING),`Can't set value for unregistered setting '${t}'`)}save(e){const t=new Set;this.values.forEach(((e,n)=>{e!==this.currentValues.get(n)&&t.add(n)})),this.values.clear(),this.currentValues.forEach(((e,t)=>this.values.set(t,e))),this._options?.onSettingsChanged?.({api:e,values:this.getCurrentSettingValues()});let n=!1;for(const o of t){const t=this.configurations.get(o);t?.requiresReload&&(n=!0),t?.action&&t.action(e,this.values.get(o))}n&&e.reload()}}class lg{_dataCube;constructor(e){this._dataCube=e}_runTaskForEachView(e){e(this._dataCube.view)}getProcessedSource(){return this._dataCube.view.getInitialSource()}generateSpecification(){return this._dataCube.view.generateSpecification()}updateName(e){this._dataCube.view.updateName(e)}async applySpecification(e){await this._dataCube.view.applySpecification(e)}retryFailedDataFetches(){this._runTaskForEachView((e=>{e.grid.client.retryServerSideLoads()}))}reload(){this._dataCube.reload()}}!function(e){e.PROFILE="Profile",e.CLASS="Class",e.ENUMERATION="Enum",e.MEASURE="Measure",e.ASSOCIATION="Association",e.FUNCTION="function",e.MAPPING="Mapping",e.FLAT_DATA="FlatData",e.DATABASE="Database",e.SERVICE="Service",e.RUNTIME="Runtime",e.CONNECTION="Connection",e.FILE_GENERATION="FileGeneration",e.GENERATION_SPECIFICATION="GenerationSpecification",e.DATA_ELEMENT="Data",e.EXECUTION_ENVIRONMENT="ExecutionEnvironment"}(og||(og={})),function(e){e.JSON_MODEL_CONNECTION="JsonModelConnection",e.XML_MODEL_CONNECTION="XmlModelConnection",e.MODEL_CHAIN_CONNECTION="ModelChainConnection",e.RELATIONAL_DATABASE_CONNECTION="RelationalDatabaseConnection",e.FLAT_DATA_CONNECTION="FlatDataConnection"}(rg||(rg={})),(ag=ig||(ig={})).PURE="Pure",ag.CONNECTION="Connection",ag.RUNTIME="Runtime",ag.MAPPING="Mapping",ag.SERVICE="Service",ag.FLATDATA="FlatData",ag.RELATIONAL="Relational",ag.GENERATION_SPECIFICATION="GenerationSpecification",ag.FILE_GENERATION_SPECIFICATION="FileGeneration",ag.DATA="Data";const cg={wordPattern:/(-?\d*\.\d\w*)|([^`~!@#%^$&*()\-=+[{\]}\\|;:'",.<>/?\s][^`~!@#%^&*()\-=+[{\]}\\|;:'",.<>/?\s]*)/,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"},{open:"<<",close:">>"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}};const ug=(0,bt.PA)((()=>{const e=Wc().documentationService.currentEntry;if(!e)return null;const t=e.markdownText??e.text;return(0,E.jsxs)("div",{className:"h-full w-full overflow-auto bg-white p-4",children:[(0,E.jsx)("div",{className:"mb-3 text-2xl font-bold",children:e.title}),t&&(U(t)?(0,E.jsx)("div",{children:t}):(0,E.jsx)(On,{value:t}))]})}));class dg{_engine;_layoutService;display;currentEntry;constructor(e,t){(0,xe.Gn)(this,{currentEntry:xe.sH,setCurrentEntry:xe.XI}),this._engine=e,this._layoutService=t,this.display=this._layoutService.newDisplay("Documentation",(()=>(0,E.jsx)(ug,{})),{x:-50,y:-50,width:400,height:400,minWidth:300,minHeight:200,center:!1})}getEntry(e){return this._engine.getDocumentationEntry(e)}setCurrentEntry(e){this.currentEntry=e}shouldDisplayDocumentationEntry(e){return Boolean(e.title&&(e.text??e.markdownText))}}class pg{_engine;constructor(e){this._engine=e}sendTelemetry(e,t){this._engine.sendTelemetry(e,t)}}class gg{_engine;constructor(e){this._engine=e}openLink(e){this._engine.openLink(e)}}class mg{_engine;constructor(e){this._engine=e}logDebug(e,...t){this._engine.logDebug(e,...t)}debugProcess(e,...t){this._engine.debugProcess(e,...t)}logInfo(e,...t){this._engine.logInfo(e,...t)}logWarning(e,...t){this._engine.logWarning(e,...t)}logError(e,...t){this._engine.logError(e,...t)}logUnhandledError(e){this._engine.logUnhandledError(e)}logIllegalStateError(e,t){this._engine.logIllegalStateError(e,t)}}class hg{engine;logService;taskService;layoutService;settingService;documentationService;alertService;navigationService;telemetryService;specification;options;initializeState=Ie.create();api;uuid=(0,i.A)();view;constructor(e,t,n){(0,xe.Gn)(this,{uuid:xe.sH,reload:xe.XI}),this.engine=t,this.logService=new mg(this.engine),this.taskService=new Kp(n?.taskManager),this.layoutService=new br(n?.layoutManager),this.settingService=new sg(this.engine,this.logService,this.layoutService,n),this.documentationService=new dg(this.engine,this.layoutService),this.alertService=new cu(this.logService,this.layoutService),this.navigationService=new gg(this.engine),this.telemetryService=new pg(this.engine),this.api=new lg(this),this.specification=e,this.options=n,this.view=new Jp(this)}async initialize(){if(this.initializeState.isInInitialState){this.initializeState.inProgress();try{this.options?.gridClientLicense&&yr.hFV.setLicenseKey(this.options.gridClientLicense),await(async(e,t)=>{Tr.editor.defineTheme(vc.DEFAULT_DARK,Tc),Tr.editor.defineTheme(vc.SOLARIZED_DARK,Ac),Tr.editor.defineTheme(vc.GITHUB_DARK,Sc),Tr.editor.defineTheme(vc.GITHUB_DARK_DIMMED,yc),Tr.editor.defineTheme(vc.GITHUB_LIGHT,Nc),Tr.editor.defineTheme(vc.MATERIAL_DEFAULT,xc),Tr.editor.defineTheme(vc.MATERIAL_DARKER,Ic),Tr.editor.defineTheme(vc.ONE_DARK_PRO,wc),Tr.editor.defineTheme(vc.ONE_DARK_PRO_DARKER,kc);const n=`Monospaced font '${e}' has not been loaded properly, code editor might not display properly`;await Promise.all([400,700].map((t=>document.fonts.load(`${t} 1em ${e}`)))).then((()=>{document.fonts.check(`1em ${e}`)?Tr.editor.remeasureFonts():t(new Error(n))})).catch((()=>t(new Error(n))))})(ti.ROBOTO_MONO,(e=>{throw e})),function(e){var t;Tr.languages.register({id:Lc.PURE}),Tr.languages.setLanguageConfiguration(Lc.PURE,cg),Tr.languages.setMonarchTokensProvider(Lc.PURE,(t=e?.extraKeywords??[],{defaultToken:"invalid",tokenPostfix:".pure",keywords:[...t,"Schema","Table","Join","View","primaryKey","groupBy","mainTable","let","extends","true","false","projects",og.CLASS,og.ASSOCIATION,og.ENUMERATION,og.MEASURE,og.PROFILE,og.FUNCTION,og.MAPPING,og.RUNTIME,og.CONNECTION,og.FILE_GENERATION,og.GENERATION_SPECIFICATION,og.DATA_ELEMENT,rg.JSON_MODEL_CONNECTION,rg.MODEL_CHAIN_CONNECTION,rg.XML_MODEL_CONNECTION,"include","EnumerationMapping","Pure","AssociationMapping","XStore","AggregationAware",og.SERVICE,og.FLAT_DATA,og.DATABASE,rg.FLAT_DATA_CONNECTION,rg.RELATIONAL_DATABASE_CONNECTION,"Relational"],operators:["=",">","<","!","~","?",":","==","<=",">=","&&","||","++","--","+","-","*","/","&","|","^","%","->","#{","}#","@","<<",">>"],languageStructs:["import","native"],identifier:/[a-zA-Z_$][\w$]*/,symbols:/[=><!~?:&|+\-*/^%#@]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,multiplicity:/\[(?:[a-zA-Z0-9]+(?:\.\.(?:[a-zA-Z0-9]+|\*|))?|\*)\]/,package:/(?:[\w_]+::)+/,generics:/(?:(?:<\w+>)|(?:<[^:.@^()]+[^-]>))/,date:/%-?\d+(?:-\d+(?:-\d+(?:T(?:\d+(?::\d+(?::\d+(?:.\d+)?)?)?)(?:[+-][0-9]{4})?)))/,time:/%\d+(?::\d+(?::\d+(?:.\d+)?)?)?/,tokenizer:{root:[{include:"@pure"},{include:"@date"},{include:"@color"},[/^\s*###[\w]+/,Gl.PARSER],[/(@identifier)/,{cases:{"@languageStructs":Gl.LANGUAGE_STRUCT,"@keywords":`${Gl.KEYWORD}.$0`,"([a-zA-Z_$][\\w$]*)_((\\w+_(([a-zA-Z0-9]+)|(\\$[a-zA-Z0-9]+_[a-zA-Z0-9]+\\$)))__)*(\\w+_(([a-zA-Z0-9]+)|(\\$[a-zA-Z0-9]+_[a-zA-Z0-9]+\\$)))_":Gl.TYPE,"@default":Gl.IDENTIFIER}}],{include:"@whitespace"},[/[{}()[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":Gl.OPERATOR,"@default":Gl.IDENTIFIER}}],{include:"@number"},[/[;,.]/,Gl.DELIMITER],[/'([^'\\]|\\.)*$/,`${Gl.STRING}.invalid`],[/'/,Gl.STRING,"@string"],{include:"@characters"}],pure:[[/(@package\*)/,[Gl.PACKAGE]],[/(@package?)(@identifier)(@generics?)(\s*)(@multiplicity)/,[Gl.PACKAGE,Gl.TYPE,Gl.GENERICS,Gl.WHITESPACE,Gl.MULTIPLICITY]],[/(@package)(@identifier)(@generics?)/,[Gl.PACKAGE,Gl.TYPE,Gl.GENERICS]],[/([@^])(\s*)(@package?)(@identifier)(@generics?)(@multiplicity?)/,[`${Gl.TYPE}.operator`,Gl.WHITESPACE,Gl.PACKAGE,Gl.TYPE,Gl.GENERICS,Gl.MULTIPLICITY]],[/(\.\s*)(@identifier)/,[Gl.DELIMITER,Gl.PROPERTY]],[/(@identifier)(\s*=)/,[Gl.PROPERTY,Gl.OPERATOR]],[/(@identifier)(\.)(@identifier)/,[Gl.TYPE,Gl.OPERATOR,Gl.PROPERTY]],[/(@identifier)(\s*:)/,[Gl.PARAMETER,Gl.OPERATOR]],[/(let)(\s+)(@identifier)(\s*=)/,[Gl.KEYWORD,Gl.WHITESPACE,Gl.VARIABLE,Gl.OPERATOR]],[/(\$@identifier)/,[`${Gl.VARIABLE}.reference`]]],date:[[/(%latest)/,[`${Gl.DATE}.latest`]],[/(@date)/,[Gl.DATE]],[/(@time)/,[`${Gl.DATE}.time`]]],color:[[/(#[0-9a-fA-F]{6})/,[Gl.COLOR]]],number:[[/(@digits)[eE]([-+]?(@digits))?[fFdD]?/,`${Gl.NUMBER}.float`],[/(@digits)\.(@digits)([eE][-+]?(@digits))?[fFdD]?/,`${Gl.NUMBER}.float`],[/0[xX](@hexdigits)[Ll]?/,`${Gl.NUMBER}.hex`],[/0(@octaldigits)[Ll]?/,`${Gl.NUMBER}.octal`],[/0[bB](@binarydigits)[Ll]?/,`${Gl.NUMBER}.binary`],[/(@digits)[fFdD]/,`${Gl.NUMBER}.float`],[/(@digits)[lL]?/,Gl.NUMBER]],whitespace:[[/[ \t\r\n]+/,Gl.WHITESPACE],[/\/\*\*(?!\/)/,`${Gl.COMMENT}.doc`,"@doc"],[/\/\*/,Gl.COMMENT,"@comment"],[/\/\/.*$/,Gl.COMMENT]],comment:[[/[^/*]+/,Gl.COMMENT],[/\*\//,Gl.COMMENT,"@pop"],[/[/*]/,Gl.COMMENT]],doc:[[/[^/*]+/,`${Gl.COMMENT}.doc`],[/\/\*/,`${Gl.COMMENT}.doc.invalid`],[/\*\//,`${Gl.COMMENT}.doc`,"@pop"],[/[/*]/,`${Gl.COMMENT}.doc`]],string:[[/[^\\']+/,Gl.STRING],[/@escapes/,`${Gl.STRING}.escape`],[/\\./,`${Gl.STRING}.escape.invalid`],[/'/,Gl.STRING,"@pop"]],characters:[[/'[^\\']'/,Gl.STRING],[/(')(@escapes)(')/,[Gl.STRING,`${Gl.STRING}.escape`,Gl.STRING]],[/'/,`${Gl.STRING}.invalid`]]}}))}({}),this.options?.onInitialized?.(this),this.initializeState.pass()}catch(e){w(e),this.alertService.alertError(e,{message:`Initialization Failure: ${e.message}`,text:"Resolve the issue and reload the engine."}),this.initializeState.fail()}}else this.logService.logDebug("DataCube state is re-initialized")}dispose(){this.view.dispose(),this.layoutService.dispose(),this.taskService.dispose()}reload(){this.view=new Jp(this),this.uuid=(0,i.A)()}}const fg=(0,bt.PA)((()=>{const e=Wc(),t=e.view;return(0,Lt.useEffect)((()=>{e.view.initialize(e.specification).catch((t=>e.logService.logUnhandledError(t)))}),[e]),(0,E.jsxs)("div",{className:"data-cube relative flex h-full w-full flex-col bg-white",children:[(0,E.jsx)(nd,{title:t.info.name,menuItems:[{label:"Undo",action:()=>e.view.snapshotService.undo(),disabled:!e.view.snapshotService.canUndo},{label:"Redo",action:()=>e.view.snapshotService.redo(),disabled:!e.view.snapshotService.canRedo},{label:"Settings...",action:()=>e.settingService.display.open()}],getMenuItems:e.options?.getHeaderMenuItems,children:e.options?.innerHeaderRenderer?.({api:e.api})??null}),(0,E.jsx)(ad,{view:t}),(0,E.jsx)(_r,{layout:e.layoutService.manager}),(0,E.jsx)(Sr,{})]})})),Eg=(0,bt.PA)((e=>{const{specification:t,engine:n,options:o}=e,r=(0,bt.iz)((()=>new hg(t,n,o)));return(0,Lt.useEffect)((()=>(r.initialize().catch((e=>r.logService.logUnhandledError(e))),()=>r.dispose())),[r]),r.initializeState.hasSucceeded?(0,E.jsx)(Hc,{value:r,children:(0,E.jsx)(fg,{},r.uuid)}):(0,E.jsx)(id,{title:Ei,headerContent:r.options?.innerHeaderRenderer?.({api:r.api})??null,layoutManager:r.layoutService.manager,taskManager:r.taskService.manager,children:r.initializeState.hasFailed&&(0,E.jsx)(od,{message:"Initialization Failure",prompt:"Resolve the issue and reload."})})}));class Cg extends Vl{runtime;mapping;timestamp;model;isLocal;isPersistenceSupported}const bg="repl";class vg{query;runtime;model;mapping;timestamp;isLocal;isPersistenceSupported;columns=[];static serialization=new ge((0,pe.PL)(vg,{_type:he(bg),columns:(0,pe.p_)((0,pe.lS)()),isLocal:(0,pe.MY)(),isPersistenceSupported:(0,pe.MY)(),mapping:(0,pe.lq)((0,pe.MY)()),model:(0,pe.lq)((0,pe.lS)()),query:(0,pe.MY)(),runtime:(0,pe.MY)(),timestamp:(0,pe.MY)()}))}class _g{networkClient;constructor(e){this.networkClient=e}get baseUrl(){return P(this.networkClient.baseUrl,"REPL server client has not been configured properly")}get dataCube(){return`${this.baseUrl}/api/dataCube`}async getInfrastructureInfo(){return this.networkClient.get(`${this.dataCube}/infrastructureInfo`)}async getQueryTypeahead(e){return this.networkClient.post(`${this.dataCube}/typeahead`,e)}async parseValueSpecification(e){return this.networkClient.post(`${this.dataCube}/parseValueSpecification`,e)}async getValueSpecificationCode(e){return this.networkClient.post(`${this.dataCube}/getValueSpecificationCode`,e,{},{[Z.ACCEPT]:ee.TEXT_PLAIN})}async getBaseSpecification(){return this.networkClient.get(`${this.dataCube}/getBaseQuery`)}async getQueryRelationReturnType(e){return this.networkClient.post(`${this.dataCube}/getRelationReturnType`,e)}async getQueryCodeRelationReturnType(e){return this.networkClient.post(`${this.dataCube}/getRelationReturnType/code`,e)}async executeQuery(e){return this.networkClient.post(`${this.dataCube}/executeQuery`,e)}async publishQuery(e,t){return this.networkClient.post(`${t}`,e)}}class Tg{query;runtime;model;static serialization=new ge((0,pe.PL)(Tg,{_type:he("adhocQuery"),model:(0,pe.lS)(),query:(0,pe.MY)(),runtime:(0,pe.MY)()}))}class Ag{id;name;description;content;owner;lastUpdatedAt;createdAt;lastOpenAt;static serialization=new ge((0,pe.PL)(Ag,{id:(0,pe.MY)(),lastUpdatedAt:(0,pe.lq)((0,pe.MY)()),createdAt:(0,pe.lq)((0,pe.MY)()),lastOpenAt:(0,pe.lq)((0,pe.MY)()),name:(0,pe.MY)(),description:(0,pe.lq)((0,pe.MY)()),content:(0,pe.lS)(),owner:(0,pe.lq)((0,pe.MY)())}));clone(){return Ag.serialization.fromJson(Ag.serialization.toJson(this))}}class Sg{id;name;description;owner;lastUpdatedAt;createdAt;lastOpenAt;static serialization=new ge((0,pe.PL)(Sg,{id:(0,pe.MY)(),lastUpdatedAt:(0,pe.lq)((0,pe.MY)()),createdAt:(0,pe.lq)((0,pe.MY)()),lastOpenAt:(0,pe.lq)((0,pe.MY)()),name:(0,pe.MY)(),description:(0,pe.lq)((0,pe.MY)()),owner:(0,pe.lq)((0,pe.MY)())}))}const Ng=e=>{const{persistentDataCube:t}=e,n=ah(),o=n.hostedApplicationBaseUrl?`${n.hostedApplicationBaseUrl}/${t.id}`:void 0;return(0,E.jsxs)("div",{className:"h-full w-full p-6",children:[(0,E.jsxs)("div",{className:"flex w-full overflow-auto",children:[(0,E.jsx)("div",{className:"mr-3",children:(0,E.jsx)(dr.AlertSuccess,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-green-500"})}),(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"whitespace-break-spaces text-lg",children:"Published DataCube successfully!"}),o&&(0,E.jsx)("div",{className:"mt-1 whitespace-break-spaces text-neutral-500",children:"To view or share the published DataCube, use the link below."}),!o&&(0,E.jsx)("div",{className:"mt-1 whitespace-break-spaces text-neutral-500",children:"See the published DataCube ID below."})]})]}),o&&(0,E.jsxs)("div",{className:"mt-3 flex h-6 w-full",children:[(0,E.jsx)("div",{className:"flex h-full w-[calc(100%_-_20px)] items-center border border-r-0 border-neutral-400 px-1.5 font-bold text-sky-500 underline",children:(0,E.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"overflow-hidden overflow-ellipsis whitespace-nowrap",children:o})}),(0,E.jsx)("button",{className:"flex aspect-square h-full w-6 items-center justify-center border border-neutral-400 bg-neutral-300 hover:brightness-95",onClick:()=>{n.application.clipboardService.copyTextToClipboard(o).catch(n.application.alertUnhandledError)},title:"Copy Link",children:(0,E.jsx)(dr.Clipboard,{})})]}),!o&&(0,E.jsxs)("div",{className:"mt-3 flex h-6 w-full",children:[(0,E.jsx)("div",{className:"flex h-full w-[calc(100%_-_20px)] items-center border border-r-0 border-neutral-400 bg-neutral-200 px-1.5",children:(0,E.jsx)("div",{className:"overflow-hidden overflow-ellipsis whitespace-nowrap",children:t.id})}),(0,E.jsx)("button",{className:"flex aspect-square h-full w-6 items-center justify-center border border-neutral-400 bg-neutral-300 hover:brightness-95",onClick:()=>{n.application.clipboardService.copyTextToClipboard(t.id).catch(n.application.alertUnhandledError)},title:"Copy ID",children:(0,E.jsx)(dr.Clipboard,{})})]})]})};class yg{_finalizeAggregateColumnSnapshot(e){if(!e)return;const{column:t,paramterValues:n}=e;return this.isCompatibleWithColumn(t)&&this.isCompatibleWithParameterValues(n)?{...t,operator:this.operator,parameterValues:n}:void 0}}class xg extends yg{get label(){return"sum"}get textLabel(){return"sum"}get description(){return"sum"}get operator(){return si.SUM}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.SUM,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.SUM)}}class Ig extends yg{get label(){return"avg"}get textLabel(){return"average"}get description(){return"average"}get operator(){return si.AVERAGE}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.AVERAGE,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.AVERAGE)}}class wg extends yg{get label(){return"count"}get textLabel(){return"count"}get description(){return"count"}get operator(){return si.COUNT}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.COUNT,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.COUNT)}}class kg extends yg{get label(){return"min"}get textLabel(){return"min"}get description(){return"min"}get operator(){return si.MIN}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.MIN,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.MIN)}}class Rg extends yg{get label(){return"max"}get textLabel(){return"max"}get description(){return"max"}get operator(){return si.MAX}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.MAX,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.MAX)}}class Og extends yg{get label(){return"uniq"}get textLabel(){return"unique value"}get description(){return"unique value"}get operator(){return si.UNIQUE}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.UNIQUE_VALUE_ONLY,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.UNIQUE_VALUE_ONLY)}}class Lg extends yg{get label(){return"first"}get textLabel(){return"first"}get description(){return"first"}get operator(){return si.FIRST}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.FIRST,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.FIRST)}}class Fg extends yg{get label(){return"last"}get textLabel(){return"last"}get description(){return"last"}get operator(){return si.LAST}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.LAST,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.LAST)}}class Pg extends yg{get label(){return"var"}get textLabel(){return"variance (population)"}get description(){return"variance (population)"}get operator(){return si.VARIANCE_POPULATION}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.VARIANCE_POPULATION,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.VARIANCE_POPULATION)}}class Bg extends yg{get label(){return"var (sample)"}get textLabel(){return"variance (sample)"}get description(){return"variance (sample)"}get operator(){return si.VARIANCE_SAMPLE}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.VARIANCE_SAMPLE,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.VARIANCE_SAMPLE)}}class Dg extends yg{get label(){return"std"}get textLabel(){return"standard deviation (population)"}get description(){return"standard deviation (population)"}get operator(){return si.STANDARD_DEVIATION_POPULATION}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.STANDARD_DEVIATION_POPULATION,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.STANDARD_DEVIATION_POPULATION)}}class jg extends yg{get label(){return"std (sample)"}get textLabel(){return"standard deviation (sample)"}get description(){return"standard deviation (sample)"}get operator(){return si.STANDARD_DEVIATION_SAMPLE}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER])}isCompatibleWithParameterValues(e){return!e.length}generateDefaultParameterValues(e){return[]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.STANDARD_DEVIATION_SAMPLE,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.STANDARD_DEVIATION_SAMPLE)}}class Mg extends yg{get label(){return"strjoin"}get textLabel(){return"join strings"}get description(){return"join strings"}get operator(){return si.JOIN_STRINGS}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithParameterValues(e){return 1===e.length&&void 0!==e[0]&&Mi(e[0].type,[gi.TEXT])&&!Array.isArray(e[0].value)&&U(e[0].value)}generateDefaultParameterValues(e){return[{type:Hr.STRING,value:""}]}buildAggregateColumnSnapshot(e,t){return this._finalizeAggregateColumnSnapshot(sc(e,Zr.JOIN_STRINGS,t))}buildAggregateColumnExpression(e){return Fl(e,Zr.JOIN_STRINGS,e.aggregationParameters)}}class Ug{_finalizeConditionSnapshot(e){if(!e)return;const{column:t,value:n}=e;return this.isCompatibleWithColumn(t)&&this.isCompatibleWithValue(n)?{...t,operator:this.operator,value:n}:void 0}}class Gg extends Ug{get label(){return"="}get textLabel(){return"="}get description(){return"equals"}get operator(){return ci.EQUAL}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.EQUAL,t))}buildConditionExpression(e){return Al(Tl(Zr.EQUAL),[bl(e.name),wl(e.value)])}}class Vg extends Ug{get label(){return"<="}get textLabel(){return"<="}get description(){return"is less than or equals"}get operator(){return ci.LESS_THAN_OR_EQUAL}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.LESS_THAN_OR_EQUAL,t))}buildConditionExpression(e){return Al(Tl(Zr.LESS_THAN_OR_EQUAL),[bl(e.name),wl(e.value)])}}class Hg extends Ug{get label(){return"<"}get textLabel(){return"<"}get description(){return"is less than"}get operator(){return ci.LESS_THAN}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.LESS_THAN,t))}buildConditionExpression(e){return Al(Tl(Zr.LESS_THAN),[bl(e.name),wl(e.value)])}}class Wg extends Ug{get label(){return">="}get textLabel(){return">="}get description(){return"is greater than or equals"}get operator(){return ci.GREATER_THAN_OR_EQUAL}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.GREATER_THAN_OR_EQUAL,t))}buildConditionExpression(e){return Al(Tl(Zr.GREATER_THAN_OR_EQUAL),[bl(e.name),wl(e.value)])}}class $g extends Ug{get label(){return">"}get textLabel(){return">"}get description(){return"is greater than"}get operator(){return ci.GREATER_THAN}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.GREATER_THAN,t))}buildConditionExpression(e){return Al(Tl(Zr.GREATER_THAN),[bl(e.name),wl(e.value)])}}class zg extends Ug{get label(){return"!="}get textLabel(){return"!="}get description(){return"does not equal"}get operator(){return ci.NOT_EQUAL}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])&&!Array.isArray(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(k((()=>nc(e))),Zr.EQUAL,t))}buildConditionExpression(e){return kl(Al(Tl(Zr.EQUAL),[bl(e.name),wl(e.value)]))}}class Yg extends Ug{get label(){return"= value in column"}get textLabel(){return"= value in column"}get description(){return"equals to value in column"}get operator(){return ci.EQUAL_COLUMN}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&e.type===ai.COLUMN&&U(e.value)}generateDefaultValue(e){return{type:ai.COLUMN,value:e.name}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.EQUAL,t))}buildConditionExpression(e){return Al(Tl(Zr.EQUAL),[bl(e.name),wl(e.value)])}}class Xg extends Ug{get label(){return"= (case-insensitive)"}get textLabel(){return"= (case-insensitive)"}get description(){return"equals (case-insensitive)"}get operator(){return ci.EQUAL_CASE_INSENSITIVE}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(ic(e,Zr.EQUAL,t))}buildConditionExpression(e){return Al(Tl(Zr.EQUAL),[Al(Tl(Zr.TO_LOWERCASE),[bl(e.name)]),Al(Tl(Zr.TO_LOWERCASE),[wl(e.value)])])}}class Kg extends Ug{get label(){return"!= (case-insensitive)"}get textLabel(){return"!= (case-insensitive)"}get description(){return"does not equal (case-insensitive)"}get operator(){return ci.NOT_EQUAL_CASE_INSENSITIVE}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(ic(k((()=>nc(e))),Zr.EQUAL,t))}buildConditionExpression(e){return kl(Al(Tl(Zr.EQUAL),[Al(Tl(Zr.TO_LOWERCASE),[bl(e.name)]),Al(Tl(Zr.TO_LOWERCASE),[wl(e.value)])]))}}class qg extends Ug{get label(){return"= (case-insensitive) value in column"}get textLabel(){return"= (case-insensitive) value in column"}get description(){return"equals to (case-insensitive) value in column"}get operator(){return ci.EQUAL_CASE_INSENSITIVE_COLUMN}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&e.type===ai.COLUMN&&U(e.value)}generateDefaultValue(e){return{type:ai.COLUMN,value:e.name}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(ic(e,Zr.EQUAL,t))}buildConditionExpression(e){return Al(Tl(Zr.EQUAL),[Al(Tl(Zr.TO_LOWERCASE),[bl(e.name)]),Al(Tl(Zr.TO_LOWERCASE),[wl(e.value)])])}}class Jg extends Ug{get label(){return"!= (case-insensitive) value in column"}get textLabel(){return"!= (case-insensitive) value in column"}get description(){return"does not equal (case-insensitive) value in column"}get operator(){return ci.NOT_EQUAL_CASE_INSENSITIVE_COLUMN}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&e.type===ai.COLUMN&&U(e.value)}generateDefaultValue(e){return{type:ai.COLUMN,value:e.name}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(ic(k((()=>nc(e))),Zr.EQUAL,t))}buildConditionExpression(e){return kl(Al(Tl(Zr.EQUAL),[Al(Tl(Zr.TO_LOWERCASE),[bl(e.name)]),Al(Tl(Zr.TO_LOWERCASE),[wl(e.value)])]))}}class Qg extends Ug{get label(){return"!= value in column"}get textLabel(){return"!= value in column"}get description(){return"does not equal value in column"}get operator(){return ci.NOT_EQUAL_COLUMN}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&e.type===ai.COLUMN&&U(e.value)}generateDefaultValue(e){return{type:ai.COLUMN,value:e.name}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(k((()=>nc(e))),Zr.EQUAL,t))}buildConditionExpression(e){return kl(Al(Tl(Zr.EQUAL),[bl(e.name),wl(e.value)]))}}class Zg extends Ug{get label(){return"< value in column"}get textLabel(){return"< value in column"}get description(){return"is less than value in column"}get operator(){return ci.LESS_THAN_COLUMN}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&e.type===ai.COLUMN&&U(e.value)}generateDefaultValue(e){return{type:ai.COLUMN,value:e.name}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.LESS_THAN,t))}buildConditionExpression(e){return Al(Tl(Zr.LESS_THAN),[bl(e.name),wl(e.value)])}}class em extends Ug{get label(){return"<= value in column"}get textLabel(){return"<= value in column"}get description(){return"is less than or equals value in column"}get operator(){return ci.LESS_THAN_OR_EQUAL_COLUMN}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&e.type===ai.COLUMN&&U(e.value)}generateDefaultValue(e){return{type:ai.COLUMN,value:e.name}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.LESS_THAN_OR_EQUAL,t))}buildConditionExpression(e){return Al(Tl(Zr.LESS_THAN_OR_EQUAL),[bl(e.name),wl(e.value)])}}class tm extends Ug{get label(){return"> value in column"}get textLabel(){return"> value in column"}get description(){return"is greater than value in column"}get operator(){return ci.GREATER_THAN_COLUMN}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&e.type===ai.COLUMN&&U(e.value)}generateDefaultValue(e){return{type:ai.COLUMN,value:e.name}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.GREATER_THAN,t))}buildConditionExpression(e){return Al(Tl(Zr.GREATER_THAN),[bl(e.name),wl(e.value)])}}class nm extends Ug{get label(){return">= value in column"}get textLabel(){return">= value in column"}get description(){return"is greater than or equals value in column"}get operator(){return ci.GREATER_THAN_OR_EQUAL_COLUMN}isCompatibleWithColumn(e){return Mi(e.type,[gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0!==e.value&&e.type===ai.COLUMN&&U(e.value)}generateDefaultValue(e){return{type:ai.COLUMN,value:e.name}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.GREATER_THAN_OR_EQUAL,t))}buildConditionExpression(e){return Al(Tl(Zr.GREATER_THAN_OR_EQUAL),[bl(e.name),wl(e.value)])}}class om extends Ug{get label(){return"contains"}get textLabel(){return"contains"}get description(){return"contains"}get operator(){return ci.CONTAIN}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.CONTAINS,t))}buildConditionExpression(e){return Al(Tl(Zr.CONTAINS),[bl(e.name),wl(e.value)])}}class rm extends Ug{get label(){return"contains (case-insensitive)"}get textLabel(){return"contains (case-insensitive)"}get description(){return"contains (case-insensitive)"}get operator(){return ci.CONTAIN_CASE_INSENSITIVE}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(ic(e,Zr.CONTAINS,t))}buildConditionExpression(e){return Al(Tl(Zr.CONTAINS),[Al(Tl(Zr.TO_LOWERCASE),[bl(e.name)]),Al(Tl(Zr.TO_LOWERCASE),[wl(e.value)])])}}class im extends Ug{get label(){return"does not contain"}get textLabel(){return"!contains"}get description(){return"does not contain"}get operator(){return ci.NOT_CONTAIN}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(k((()=>nc(e))),Zr.CONTAINS,t))}buildConditionExpression(e){return kl(Al(Tl(Zr.CONTAINS),[bl(e.name),wl(e.value)]))}}class am extends Ug{get label(){return"starts with"}get textLabel(){return"startsWith"}get description(){return"starts with"}get operator(){return ci.START_WITH}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.STARTS_WITH,t))}buildConditionExpression(e){return Al(Tl(Zr.STARTS_WITH),[bl(e.name),wl(e.value)])}}class sm extends Ug{get label(){return"starts with (case-insensitive)"}get textLabel(){return"startsWith (case-insensitive)"}get description(){return"starts with (case-insensitive)"}get operator(){return ci.START_WITH_CASE_INSENSITIVE}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(ic(e,Zr.STARTS_WITH,t))}buildConditionExpression(e){return Al(Tl(Zr.STARTS_WITH),[Al(Tl(Zr.TO_LOWERCASE),[bl(e.name)]),Al(Tl(Zr.TO_LOWERCASE),[wl(e.value)])])}}class lm extends Ug{get label(){return"doest not start with"}get textLabel(){return"!startsWith"}get description(){return"does not start with"}get operator(){return ci.NOT_START_WITH}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(k((()=>nc(e))),Zr.STARTS_WITH,t))}buildConditionExpression(e){return kl(Al(Tl(Zr.STARTS_WITH),[bl(e.name),wl(e.value)]))}}class cm extends Ug{get label(){return"ends with"}get textLabel(){return"!endsWith"}get description(){return"ends with"}get operator(){return ci.END_WITH}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.ENDS_WITH,t))}buildConditionExpression(e){return Al(Tl(Zr.ENDS_WITH),[bl(e.name),wl(e.value)])}}class um extends Ug{get label(){return"ends with (case-insensitive)"}get textLabel(){return"endsWith (case-insensitive)"}get description(){return"ends with (case-insensitive)"}get operator(){return ci.END_WITH_CASE_INSENSITIVE}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(ic(e,Zr.ENDS_WITH,t))}buildConditionExpression(e){return Al(Tl(Zr.ENDS_WITH),[Al(Tl(Zr.TO_LOWERCASE),[bl(e.name)]),Al(Tl(Zr.TO_LOWERCASE),[wl(e.value)])])}}class dm extends Ug{get label(){return"does not end with"}get textLabel(){return"!endsWith"}get description(){return"does not end with"}get operator(){return ci.NOT_END_WITH}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT])}isCompatibleWithValue(e){return void 0!==e.value&&Ui(e.type)&&Mi(e.type,[gi.TEXT])&&!Array.isArray(e.value)&&U(e.value)}generateDefaultValue(e){return{type:e.type,value:Bi(e.type)}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(k((()=>nc(e))),Zr.ENDS_WITH,t))}buildConditionExpression(e){return kl(Al(Tl(Zr.ENDS_WITH),[bl(e.name),wl(e.value)]))}}class pm extends Ug{get label(){return"is null"}get textLabel(){return"= NULL"}get description(){return"is NULL"}get operator(){return ci.IS_NULL}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0===e.value&&e.type===ai.VOID}generateDefaultValue(e){return{type:ai.VOID}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(e,Zr.IS_EMPTY,t))}buildConditionExpression(e){return Al(Tl(Zr.IS_EMPTY),[bl(e.name)])}}class gm extends Ug{get label(){return"is not null"}get textLabel(){return"!= NULL"}get description(){return"is not NULL"}get operator(){return ci.IS_NOT_NULL}isCompatibleWithColumn(e){return Mi(e.type,[gi.TEXT,gi.NUMBER,gi.DATE,gi.TIME])}isCompatibleWithValue(e){return void 0===e.value&&e.type===ai.VOID}generateDefaultValue(e){return{type:ai.VOID}}buildConditionSnapshot(e,t){return this._finalizeConditionSnapshot(rc(k((()=>nc(e))),Zr.IS_EMPTY,t))}buildConditionExpression(e){return kl(Al(Tl(Zr.IS_EMPTY),[bl(e.name)]))}}class mm{filterOperations=[new Hg,new Vg,new Gg,new zg,new Wg,new $g,new pm,new gm,new Xg,new Kg,new om,new rm,new im,new am,new sm,new lm,new cm,new um,new dm,new Zg,new em,new Yg,new Qg,new qg,new Jg,new tm,new nm];aggregateOperations=[new xg,new Ig,new wg,new kg,new Rg,new Og,new Lg,new Fg,new Pg,new Bg,new Dg,new jg,new Mg];getFilterOperation(e){return t=e,n=this.filterOperations,P(n.find((e=>e.operator===t)),`Can't find filter operation '${t}'`);var t,n}getAggregateOperation(e){return Di(e,this.aggregateOperations)}deserializeValueSpecification(e){return fl(e,[])}serializeValueSpecification(e){return El(e,[])}async getPartialQueryCode(e,t){const n=new Hl;return n.query=Nl(Hr.STRING,""),(await this.getValueSpecificationCode(Ml(e,n,this,{skipExecutionContext:!0}),t)).substring(4)}async generateBaseSpecification(e){const t=await this.processSource(e),n=new zp;var o;n.source=e,n.query=await this.getValueSpecificationCode((o=t.columns,Al(Zr.SELECT,[Ol(o.map((e=>Il(e.name))))])));const r=ap.create({});r.data.sourceColumns=t.columns.map(Wi),r.data.selectColumns=t.columns.map(Wi);const i=lp({snapshot:r});return n.configuration=i,n}async initializeCache(e,t){}async disposeCache(e){}logDebug(e,...t){}debugProcess(e,...t){}logInfo(e,...t){}logWarning(e,...t){}logError(e,...t){}logUnhandledError(e){}logIllegalStateError(e,t){}getDocumentationEntry(e){}openLink(e){}sendTelemetry(e,t){}}class hm{sourceId;startLine;startColumn;endLine;endColumn;constructor(e,t,n,o,r){this.sourceId=e,this.startLine=t,this.startColumn=n,this.endLine=o,this.endColumn=r}}var fm,Em,Cm,bm;!function(e){e.COMPILATION="COMPILATION",e.PARSER="PARSER"}(fm||(fm={}));class vm{message="";errorType;sourceInformation;static serialization=new ge((0,pe.PL)(vm,{errorType:(0,pe.lq)((0,pe.MY)()),message:(0,pe.MY)(),sourceInformation:me(Da.schema)}))}!function(e){e.CLASS_BUILDER="classBuilder",e.TDS_BUILDER="tdsBuilder",e.JSON_BUILDER="json"}(Em||(Em={})),function(e){e.RELATIONAL="relational",e.RELATIONAL_EXECUTION_ACTIVITY="RelationalExecutionActivity",e.AGGREGATION_AWARE_ACTIVITY="aggregationAware"}(Cm||(Cm={})),function(e){e.CSV="CSV"}(bm||(bm={}));class _m{_type;constructor(e){this._type=e}}class Tm{}class Am extends Tm{sql;comment;constructor(e){super(),this.sql=e}}class Sm extends Tm{rewrittenQuery}class Nm extends Tm{values;constructor(e){super(),this.values=e}}class ym{builder;activities}class xm extends ym{values}class Im extends ym{value;constructor(e){super(),this.value=e}}class wm{name;type;relationalType;doc}class km extends _m{columns=[];constructor(){super(Em.TDS_BUILDER)}}class Rm{values=[]}class Om{columns=[];rows=[]}class Lm extends ym{_UUID=(0,i.A)();builder=new km;result=new Om}class Fm extends _m{_type=Em.CLASS_BUILDER}class Pm extends ym{builder=new Fm(Em.CLASS_BUILDER);objects}class Bm{static builderSerialization=new ge((0,pe.PL)(Bm,{_type:(0,pe.MY)()}))}class Dm{}class jm extends Dm{sql;comment;static serialization=new ge((0,pe.PL)(jm,{sql:(0,pe.MY)(),comment:(0,pe.lq)((0,pe.MY)())}))}class Mm extends Dm{rewrittenQuery;static serialization=new ge((0,pe.PL)(Mm,{rewrittenQuery:(0,pe.MY)()}))}class Um{builder;activities}class Gm extends Dm{content;constructor(e){super(),this.content=e}}class Vm extends Um{values;static serialization=new ge((0,pe.PL)(Vm,{_type:(0,pe.MY)(),builder:me(Bm.builderSerialization.schema),values:(0,pe.lS)()}))}class Hm{name;doc;type;relationalType;static serialization=new ge((0,pe.PL)(Hm,{name:(0,pe.MY)(),doc:(0,pe.lq)((0,pe.MY)()),type:(0,pe.lq)((0,pe.MY)()),relationalType:(0,pe.lq)((0,pe.MY)())}))}class Wm extends Bm{columns=[];static serialization=new ge((0,pe.PL)(Wm,{_type:(0,pe.MY)(),columns:(0,pe.p_)(me(Hm.serialization.schema))}))}function $m(e){switch(e._type){case Cm.RELATIONAL:case Cm.RELATIONAL_EXECUTION_ACTIVITY:return jm.serialization.fromJson(e);case Cm.AGGREGATION_AWARE_ACTIVITY:return Mm.serialization.fromJson(e);default:return new Gm(e)}}class zm extends Um{result;static serialization=new ge((0,pe.PL)(zm,{builder:me(Wm.serialization.schema),activities:(0,pe.p_)((0,pe.Ie)((()=>pe._Z),$m)),result:(0,pe.lS)()}))}class Ym extends Um{objects;static serialization=new ge((0,pe.PL)(Ym,{builder:me(Bm.builderSerialization.schema),activities:(0,pe.p_)((0,pe.Ie)((()=>pe._Z),$m)),objects:(0,pe.lS)()}))}class Xm extends Um{value;constructor(e){super(),this.value=e}}class Km extends Um{content}class qm extends ym{content}const Jm=e=>{if(e instanceof jm){const t=new Am(e.sql);return t.comment=e.comment,t}if(e instanceof Mm){const t=new Sm;return t.rewrittenQuery=P(e.rewrittenQuery,"Aggregation aware execution activities 'rewritenQuery' field is missing"),t}if(e instanceof Gm)return new Nm(e);throw new I("Can't build execution activities",e)},Qm=e=>{const t=new wm;return t.name=P(e.name,"TDS column 'name' field is missing"),t.type=e.type,t.doc=e.doc,t.relationalType=e.relationalType,t},Zm=e=>{if(e instanceof Km){const t=new qm;return t.content=e.content,t}if(e instanceof Ym)return(e=>{const t=new Pm;return t.objects=P(e.objects,"Class execution result 'objects' field is missing"),t.activities=e.activities?.map(Jm),t})(e);if(e instanceof zm)return(e=>{const t=new Lm;return t.builder=(e=>{const t=new km;return t.columns=e.columns.map(Qm),t})(P(e.builder,"TDS execution result 'builder' field is missing")),t.activities=e.activities?.map(Jm),t.result.columns=e.result.columns,t.result.rows=e.result.rows.map((e=>{const t=new Rm;return t.values=e.values,t})),t})(e);if(e instanceof Vm)return(e=>{const t=new xm;return t.values=P(e.values,"JSON execution result 'values' field is missing"),t})(e);if(e instanceof Xm)return new Im(e.value);throw new I("Can't build execution result",e)},eh=e=>{if(null===e||U(e)||G(e)||V(e))return new Xm(e);switch(e.builder?._type){case Em.CLASS_BUILDER:return Ym.serialization.fromJson(e);case Em.TDS_BUILDER:return zm.serialization.fromJson(e);case Em.JSON_BUILDER:return Vm.serialization.fromJson(e);default:{const t=new Km;return t.content=e,t}}};class th extends mm{_application;_client;constructor(e,t){super(),this._application=e,this._client=t}async processSource(e){if(e._type===bg){const t=vg.serialization.fromJson(e),n=new Cg;n.query=await this.parseValueSpecification(t.query,!1);try{n.columns=(await this._getQueryRelationType(vl([],[n.query]))).columns}catch(e){throw w(e),new Error(`Can't get query result columns. Make sure the source query return a relation (i.e. typed TDS). Error: ${e.message}`)}return n.runtime=t.runtime,n.mapping=t.mapping,n.timestamp=t.timestamp,n.model=t.model,n.isLocal=t.isLocal,n.isPersistenceSupported=t.isPersistenceSupported,n}throw new I(`Can't process query source of type '${e._type}'.`)}async parseValueSpecification(e,t){return this.deserializeValueSpecification(await this._client.parseValueSpecification({code:e,returnSourceInformation:t}))}async getValueSpecificationCode(e,t){return this._client.getValueSpecificationCode({value:this.serializeValueSpecification(e),pretty:t})}async getQueryTypeahead(e,t,n){return this._client.getQueryTypeahead({code:e,baseQuery:this.serializeValueSpecification(t)})}async getQueryRelationReturnType(e,t){return this._getQueryRelationType(e)}async getQueryCodeRelationReturnType(e,t,n){try{return{columns:(0,pe.iu)(ps,await this._client.getQueryCodeRelationReturnType({code:e,baseQuery:this.serializeValueSpecification(t)})).columns.map((e=>({name:e.name,type:os(e.genericType)})))}}catch(e){if(w(e),e instanceof re&&e.response.status===J.BAD_REQUEST)throw(e=>{const t=new Xd(e.message);return t.sourceInformation=e.sourceInformation?(n=e.sourceInformation,new hm(P(n.sourceId,"Source information 'sourceId' field is missing"),P(n.startLine,"Source information 'startLine' field is missing"),P(n.startColumn,"Source information 'startColumn' field is missing"),P(n.endLine,"Source information 'endLine' field is missing"),P(n.endColumn,"Source information 'endColumn' field is missing"))):void 0,t;var n})(vm.serialization.fromJson(e.payload));throw e}}async executeQuery(e,t,n){const o=performance.now(),r=await this._client.executeQuery({query:this.serializeValueSpecification(e),debug:n?.debug}),i=performance.now();return{result:D(Zm(eh(JSON.parse(r.result))),Lm),executedQuery:r.executedQuery,executedSQL:r.executedSQL,executionTime:i-o}}buildExecutionContext(e){if(e instanceof Cg)return Al(Zr.FROM,[e.mapping?yl(e.mapping):void 0,yl(e.runtime)].filter(L))}async _getQueryRelationType(e){return{columns:(0,pe.iu)(ps,await this._client.getQueryRelationReturnType({query:this.serializeValueSpecification(e)})).columns.map((e=>({name:e.name,type:os(e.genericType)})))}}logDebug(e,...t){this._application.logService.debug(c.create(de.DEBUG),e,...t)}debugProcess(e,...t){this._application.logService.debug(c.create(de.DEBUG),`\n------ START DEBUG PROCESS: ${e} ------`,...t.flatMap((([e,t])=>[`\n[${e.toUpperCase()}]:`,t])),`\n------- END DEBUG PROCESS: ${e} -------\n\n`)}logInfo(e,...t){this._application.logService.info(e,...t)}logWarning(e,...t){this._application.logService.warn(e,...t)}logError(e,...t){this._application.logService.error(e,...t)}logUnhandledError(e){this._application.logUnhandledError(e)}logIllegalStateError(e,t){this.logError(c.create(de.ILLEGAL_APPLICATION_STATE_OCCURRED),e,t)}getDocumentationEntry(e){return this._application.documentationService.getDocEntry(e)}openLink(e){this._application.navigationService.navigator.visitAddress(e)}sendTelemetry(e,t){this._application.telemetryService.logEvent(e,t)}}class nh{_client;application;engine;taskService;layoutService;alertService;initializeState=Ie.create();publishState=Ie.create();source;gridClientLicense;queryServerBaseUrl;hostedApplicationBaseUrl;specification;constructor(e){(0,xe.Gn)(this,{specification:xe.sH,setSpecification:xe.XI,source:xe.sH,setSource:xe.XI}),this.application=e,this._client=new _g(new se({baseUrl:e.config.useDynamicREPLServer?window.location.origin+P(e.config.baseAddress).replace("/repl/",""):e.config.replUrl})),this.engine=new th(this.application,this._client),this.taskService=new Kp,this.layoutService=new br,this.alertService=new cu(new mg(this.engine),this.layoutService)}setSpecification(e){this.specification=e}setSource(e){this.source=e}async initialize(){const e=this.taskService.newTask("Initialize REPL");this.initializeState.inProgress();try{const e=await this._client.getInfrastructureInfo();e.currentUser&&this.application.identityService.setCurrentUser(e.currentUser),this.application.telemetryService.setup(),this.queryServerBaseUrl=e.queryServerBaseUrl,this.hostedApplicationBaseUrl=e.hostedApplicationBaseUrl,this.gridClientLicense=e.gridClientLicense,this.setSpecification(zp.serialization.fromJson(await this._client.getBaseSpecification())),this.initializeState.pass()}catch(e){w(e),this.application.logService.error(c.create(de.APPLICATION_LOAD__FAILURE),"Can't initialize REPL",e),this.alertService.alertError(e,{message:`Initialization Failure: ${e.message}`,text:"Resolve the issue and reload the engine."}),this.initializeState.fail()}finally{this.taskService.endTask(e)}}async publishDataCube(e){if(!this.queryServerBaseUrl||!(this.source instanceof Cg)||!this.source.isPersistenceSupported||!this.source.model||this.source.isLocal)return;this.publishState.inProgress();const t=this.taskService.newTask("Publish query");try{const t=await e.generateSpecification(),n=new Tg;n.query=vg.serialization.fromJson(t.source).query,n.runtime=this.source.runtime,n.model=this.source.model,t.source=Tg.serialization.toJson(n);const o=new Ag;o.id=(0,i.A)(),o.name=t.configuration?.name??Ei,o.content=zp.serialization.toJson(t),o.owner=this.application.identityService.currentUser;const r=Ag.serialization.fromJson(await this._client.publishQuery(Ag.serialization.toJson(o),this.queryServerBaseUrl)),a=new gr(new pr("Publish Query",(()=>(0,E.jsx)(Ng,{persistentDataCube:r}))));a.configuration.window={width:420,height:150,minWidth:300,minHeight:100,center:!0},this.layoutService.newWindow(a)}catch(e){w(e),this.alertService.alertError(e,{message:"Persistence Failure: Can't publish query.",text:`Error: ${e.message}`})}finally{this.taskService.endTask(t),this.publishState.complete()}}}const oh=(0,bt.PA)((e=>{const{children:t,simple:n}=e,o=P((0,Lt.useContext)(or),"Can't find application platform in context"),r=Pt();return(0,Lt.useEffect)((()=>{r.initialize(o).catch(r.alertUnhandledError)}),[r,o]),r.initState.hasSucceeded?n?(0,E.jsx)(io,{children:t}):(0,E.jsx)(ro,{children:t}):(0,E.jsx)(E.Fragment,{})})),rh=(0,Lt.createContext)(void 0),ih=({children:e})=>{const t=Pt(),n=(0,bt.iz)((()=>new nh(t)));return(0,E.jsx)(rh.Provider,{value:n,children:e})},ah=()=>P((0,Lt.useContext)(rh),"Can't find Legend REPL base store in context"),sh=({children:e})=>(0,E.jsx)(oh,{simple:!0,children:(0,E.jsx)(ih,{children:e})}),lh=(0,bt.PA)((e=>{const{api:t}=e,n=ah();if(!n.source||!n.queryServerBaseUrl)return null;const o=n.source instanceof Cg&&n.source.isPersistenceSupported&&!n.source.isLocal;return(0,E.jsx)("div",{className:"flex h-full items-center",children:(0,E.jsx)(Yc,{compact:!0,disabled:!o||n.publishState.isInProgress,onClick:()=>{n.publishDataCube(t).catch((e=>n.alertService.alertUnhandledError(e)))},children:"Publish"})})}));var ch;!function(e){e.DATA_CUBE="data-cube"}(ch||(ch={}));const uh=(0,bt.PA)((e=>{const{specification:t}=e,n=ah(),o=n.application;return(0,Lt.useEffect)((()=>(o.navigationService.navigator.blockNavigation([()=>!0],void 0,(()=>{o.logService.warn(c.create(de.NAVIGATION_BLOCKED),"Navigation from the application is blocked")})),()=>{o.navigationService.navigator.unblockNavigation()})),[o]),(0,E.jsx)(Eg,{specification:t,engine:n.engine,options:{gridClientLicense:n.gridClientLicense,layoutManager:n.layoutService.manager,taskManager:n.taskService.manager,onNameChanged(e){const t=e.source instanceof Cg?e.source.timestamp:void 0;o.layoutService.setWindowTitle(`⊞ ${name}${t?` - ${(0,Xn.GP)(new Date(t),"HH:mm:ss EEE MMM dd yyyy")}`:""}`)},onViewInitialized(e){n.setSource(e.source)},innerHeaderRenderer:e=>(0,E.jsx)(lh,{api:e.api}),getHeaderMenuItems:()=>[{label:"See Documentation",action:()=>{o.documentationService.url&&o.navigationService.navigator.visitAddress(o.documentationService.url)},disabled:!o.documentationService.url}],settingsData:{values:o.settingService.getObjectValue(ch.DATA_CUBE)},onSettingsChanged(e){o.settingService.persistValue(ch.DATA_CUBE,e.values)}}})})),dh=Object.freeze({DATA_CUBE:"/dataCube"}),ph=(0,bt.PA)((()=>{const e=ah();return(0,Lt.useEffect)((()=>{e.initialize().catch((t=>e.application.alertUnhandledError(t)))}),[e]),e.initializeState.hasSucceeded?(0,E.jsx)("div",{className:"h-full",children:e.specification&&(0,E.jsx)(Qo.BV,{children:(0,E.jsx)(Qo.qh,{path:dh.DATA_CUBE,element:(0,E.jsx)(uh,{specification:e.specification})})})}):(0,E.jsxs)(id,{title:Ei,layoutManager:e.layoutService.manager,taskManager:e.taskService.manager,children:[e.initializeState.isInProgress&&(0,E.jsx)("div",{className:"h-full w-full p-2",children:(0,E.jsx)("div",{children:"Initializing..."})}),e.initializeState.hasFailed&&(0,E.jsx)(od,{message:"Initialization Failure",prompt:"Resolve the issue and reload."})]})})),gh=e=>{const{baseUrl:t}=e;return(0,E.jsx)(ir,{baseUrl:t,children:(0,E.jsx)(sh,{children:(0,E.jsx)(ph,{})})})};class mh extends Ho{static create(){const e=new mh(new $o);return e.withBasePlugins([new Xo]),e}async configureApplication(e){return new qo(e)}async loadApplication(e){(0,C.createRoot)((()=>{let e=document.getElementsByTagName(Wo).length?document.getElementsByTagName(Wo)[0]:void 0;return e||(e=document.createElement(Wo),document.body.appendChild(e)),e.setAttribute("style","height: 100%; width: 100%; display: block"),e})()).render((0,E.jsx)(Bt,{store:e,children:(0,E.jsx)(gh,{baseUrl:this.baseAddress})}))}}class hh{static getPresetCollection(){return[]}static getPluginCollection(){return[new f]}static run(e){mh.create().setup({baseAddress:e}).withPresets(hh.getPresetCollection()).withPlugins(hh.getPluginCollection()).start().catch((e=>{throw e}))}}const fh=new URL("./",window.location.href).pathname;hh.run(fh)},98933:(e,t,n)=>{var o={"./simpleWorker":99246,"./simpleWorker.js":99246};function r(e){return Promise.resolve().then((()=>{if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(o[e])}))}r.keys=()=>Object.keys(o),r.id=98933,e.exports=r},59135:(e,t,n)=>{var o={"./editorBaseApi":[37970],"./editorBaseApi.js":[37970],"./editorSimpleWorker":[41122],"./editorSimpleWorker.js":[41122],"./editorWorker":[22143],"./editorWorker.js":[22143],"./editorWorkerHost":[70869],"./editorWorkerHost.js":[70869],"./findSectionHeaders":[97716],"./findSectionHeaders.js":[97716],"./getIconClasses":[45555],"./getIconClasses.js":[45555],"./languageFeatureDebounce":[26973],"./languageFeatureDebounce.js":[26973],"./languageFeatures":[33653],"./languageFeatures.js":[33653],"./languageFeaturesService":[78330],"./languageFeaturesService.js":[78330],"./languageService":[22155],"./languageService.js":[22155],"./languagesAssociations":[25709],"./languagesAssociations.js":[25709],"./languagesRegistry":[35074],"./languagesRegistry.js":[35074],"./markerDecorations":[86259],"./markerDecorations.js":[86259],"./markerDecorationsService":[72524],"./markerDecorationsService.js":[72524],"./model":[16911],"./model.js":[16911],"./modelService":[91320],"./modelService.js":[91320],"./resolverService":[55387],"./resolverService.js":[55387],"./semanticTokensDto":[7029,121],"./semanticTokensDto.js":[7029,121],"./semanticTokensProviderStyling":[4399],"./semanticTokensProviderStyling.js":[4399],"./semanticTokensStyling":[74566],"./semanticTokensStyling.js":[74566],"./semanticTokensStylingService":[28843],"./semanticTokensStylingService.js":[28843],"./textModelSync/textModelSync.impl":[43481],"./textModelSync/textModelSync.impl.js":[43481],"./textModelSync/textModelSync.protocol":[37619,121],"./textModelSync/textModelSync.protocol.js":[37619,121],"./textResourceConfiguration":[93533],"./textResourceConfiguration.js":[93533],"./treeSitterParserService":[47105],"./treeSitterParserService.js":[47105],"./treeViewsDnd":[29740,121],"./treeViewsDnd.js":[29740,121],"./treeViewsDndService":[95621,121],"./treeViewsDndService.js":[95621,121],"./unicodeTextModelHighlighter":[14818],"./unicodeTextModelHighlighter.js":[14818]};function r(e){if(!n.o(o,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=o[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(r)))}r.keys=()=>Object.keys(o),r.id=59135,e.exports=r},27713:()=>{}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=i,s.amdD=function(){throw new Error("define cannot be used indirect")},s.amdO={},e=[],s.O=(t,n,o,r)=>{if(!n){var i=1/0;for(u=0;u<e.length;u++){for(var[n,o,r]=e[u],a=!0,l=0;l<n.length;l++)(!1&r||i>=r)&&Object.keys(s.O).every((e=>s.O[e](n[l])))?n.splice(l--,1):(a=!1,r<i&&(i=r));if(a){e.splice(u--,1);var c=o();void 0!==c&&(t=c)}}return t}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[n,o,r]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var r=Object.create(null);s.r(r);var i={};t=t||[null,n({}),n([]),n(n)];for(var a=2&o&&e;"object"==typeof a&&!~t.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,s.d(r,i),r},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>"static/"+e+".a0ce728d.js",s.miniCssF=e=>{},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},r="@finos/legend-application-repl-deployment:",s.l=(e,t,n,i)=>{if(o[e])o[e].push(t);else{var a,l;if(void 0!==n)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+n){a=d;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",r+n),a.src=e),o[e]=[t];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(g);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},g=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),l&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.p="./",(()=>{var e={57:0};s.f.j=(t,n)=>{var o=s.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var r=new Promise(((n,r)=>o=e[t]=[n,r]));n.push(o[2]=r);var i=s.p+s.u(t),a=new Error;s.l(i,(n=>{if(s.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var r=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+i+")",a.name="ChunkLoadError",a.type=r,a.request=i,o[1](a)}}),"chunk-"+t,t)}},s.O.j=t=>0===e[t];var t=(t,n)=>{var o,r,[i,a,l]=n,c=0;if(i.some((t=>0!==e[t]))){for(o in a)s.o(a,o)&&(s.m[o]=a[o]);if(l)var u=l(s)}for(t&&t(n);c<i.length;c++)r=i[c],s.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return s.O(u)},n=globalThis.webpackChunk_finos_legend_application_repl_deployment=globalThis.webpackChunk_finos_legend_application_repl_deployment||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.nc=void 0;var l=s.O(void 0,[121],(()=>s(48369)));l=s.O(l)})();
45
- //# sourceMappingURL=index.4dbd9a43.js.map
44
+ `})})),Xd=(0,bt.PA)((e=>{const{view:t}=e,n=t.grid.scrollHintText,o=document.querySelector(".data-cube-grid .ag-side-bar"),r=document.querySelector(".data-cube-grid .ag-body-vertical-scroll");return(0,E.jsxs)("div",{className:"absolute -top-10 flex items-center rounded-sm border border-neutral-300 bg-neutral-100 p-1 pr-2 text-neutral-500 shadow-sm",style:{right:(null!==o?o.getBoundingClientRect().width+6:10)+(null!==r?r.getBoundingClientRect().width:0)},children:[(0,E.jsx)(dr.TableScroll,{className:"text-lg"}),(0,E.jsx)("div",{className:"ml-1 font-mono text-sm",children:n??""})]})})),Kd=(0,bt.PA)((e=>{const{view:t}=e,n=$c(),o=t.grid;return(0,E.jsxs)("div",{className:"relative flex h-5 w-full select-none justify-between border-b border-neutral-200 bg-neutral-100",children:[Boolean(o.scrollHintText)&&(0,E.jsx)(Xd,{view:t}),(0,E.jsx)("div",{}),(0,E.jsxs)("div",{className:"flex h-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full items-center px-2 font-mono text-sm text-neutral-500",children:o.clientDataSource.rowCount?`Rows: ${o.clientDataSource.rowCount}`:""}),void 0!==o.rowLimit&&o.queryConfiguration.showWarningForTruncatedResult&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"h-3 w-[1px] bg-neutral-200"}),(0,E.jsxs)("div",{className:"flex h-full items-center px-2 text-orange-500",children:[(0,E.jsx)(dr.Warning,{className:"stroke-[3px]"}),(0,E.jsx)("div",{className:"ml-1 text-sm font-semibold",children:`Results truncated to fit within row limit (${o.rowLimit})`})]})]}),(0,E.jsx)("div",{className:"h-3 w-[1px] bg-neutral-200"}),(0,E.jsxs)("button",{className:"flex h-full items-center p-2",onClick:()=>{o.setPaginationEnabled(!o.isPaginationEnabled)},children:[(0,E.jsx)(wr.A,{checked:o.isPaginationEnabled,classes:{root:"p-0 w-6 h-5 flex items-center",input:"w-2",checked:"!translate-x-2 ease-in-out duration-100 transition",thumb:jn("w-2 h-2",{"bg-sky-600":o.isPaginationEnabled,"bg-neutral-500":!o.isPaginationEnabled}),switchBase:"p-0.5 mt-1 translate-x-0 ease-in-out duration-100 transition",track:jn("h-3 w-5 border",{"!bg-sky-100 border-sky-600":o.isPaginationEnabled,"!bg-neutral-100 border-neutral-500":!o.isPaginationEnabled})},disableRipple:!0,disableFocusRipple:!0}),(0,E.jsx)("div",{className:jn("text-sm",{"text-sky-600":o.isPaginationEnabled,"text-neutral-500":!o.isPaginationEnabled}),children:"Pagination"})]}),t.dataCube.options?.enableCache&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"h-3 w-[1px] bg-neutral-200"}),(0,E.jsxs)("button",{className:"flex h-full items-center p-2",onClick:()=>{o.setCachingEnabled(!o.isCachingEnabled).catch((e=>n.alertService.alertUnhandledError(e)))},children:[(0,E.jsx)(wr.A,{checked:o.isCachingEnabled,classes:{root:"p-0 w-6 h-5 flex items-center",input:"w-2",checked:"!translate-x-2 ease-in-out duration-100 transition",thumb:jn("w-2 h-2",{"bg-sky-600":o.isCachingEnabled,"bg-neutral-500":!o.isCachingEnabled}),switchBase:"p-0.5 mt-1 translate-x-0 ease-in-out duration-100 transition",track:jn("h-3 w-5 border",{"!bg-sky-100 border-sky-600":o.isCachingEnabled,"!bg-neutral-100 border-neutral-500":!o.isCachingEnabled})},disableRipple:!0,disableFocusRipple:!0,disabled:t.processCacheState.isInProgress,title:t.processCacheState.isInProgress?"Processing cache...":""}),(0,E.jsxs)("div",{className:jn("flex items-center text-sm",{"text-sky-600":o.isCachingEnabled,"text-neutral-500":!o.isCachingEnabled}),children:["Cache ",(0,E.jsx)(zc,{})]})]})]})]})]})})),qd=(0,bt.PA)((e=>{const{view:t}=e,n=t.grid;return(0,E.jsx)("div",{className:"relative h-[calc(100%_-_20px)] w-full",children:(0,E.jsx)(xr.W6,{theme:"legacy",className:"data-cube-grid ag-theme-quartz",rowModelType:"serverSide",serverSideDatasource:n.clientDataSource,context:{view:t},onGridReady:e=>{n.configureClient(e.api)},modules:[Ar.JKr,yr.fKx],...Gd(t)})})})),Jd=(0,bt.PA)((e=>{const{view:t}=e;return(0,E.jsxs)("div",{className:"h-[calc(100%_-_48px)] w-full",children:[(0,E.jsx)(Yd,{view:t}),(0,E.jsx)(qd,{view:t}),(0,E.jsx)(Kd,{view:t})]})}));var Qd=n(16481);const Zd=(0,bt.PA)((e=>{const{view:t,taskManager:n}=e,o=t?.taskService.tasks??n?.tasks;return(0,E.jsxs)("div",{className:"flex h-5 w-full justify-between bg-neutral-100",children:[(0,E.jsxs)("div",{className:"flex",children:[(0,E.jsxs)("button",{className:"flex items-center px-2 text-sky-600 hover:text-sky-700 disabled:text-neutral-400",onClick:()=>t?.editor.display.open(),disabled:!t,children:[(0,E.jsx)(dr.Settings,{className:"text-xl"}),(0,E.jsx)("div",{className:"pl-0.5 underline",children:"Properties"})]}),(0,E.jsx)("div",{className:"flex",children:(0,E.jsxs)("button",{className:"flex items-center text-sky-600 hover:text-sky-700 disabled:text-neutral-400",onClick:()=>{t?.filter.display.open()},disabled:!t,children:[(0,E.jsx)(dr.TableFilter,{className:"text-lg"}),(0,E.jsx)("div",{className:"pl-0.5 underline",children:"Filter"})]})})]}),(0,E.jsx)("div",{className:"flex items-center px-2",children:(0,E.jsx)("div",{className:"flex h-3.5 w-48 border-[0.5px] border-neutral-300",title:void 0!==o&&o.length>0?o.length>1?o.map(((e,t)=>`Task ${t+1}/${o.length}: ${e.description}`)).join("\n"):N(o,0).description:void 0,children:void 0!==o&&o.length>0&&(0,E.jsx)(Qd.A,{classes:{root:"h-3.5 w-full bg-transparent",bar1Indeterminate:"bg-green-500",bar2Indeterminate:"bg-green-500"},variant:"indeterminate"})})})]})}));var ep;!function(e){e.SEPARATOR="separator"}(ep||(ep={}));const tp=(0,bt.PA)((e=>{const{children:t,title:n,menuItems:o,getMenuItems:r}=e,[i,a,s]=jc(),[l,c]=(0,Lt.useState)([...o??[]]);return(0,E.jsxs)("div",{className:"flex h-7 justify-between bg-neutral-100",children:[(0,E.jsxs)("div",{className:"flex items-center overflow-hidden pl-1 pr-2 text-lg font-medium",children:[(0,E.jsx)(dr.Cube,{className:"mr-1 h-4 w-4 flex-shrink-0"}),(0,E.jsx)("div",{className:"text-ellipsis whitespace-nowrap",children:n})]}),(0,E.jsxs)("div",{className:"flex",children:[t,(0,E.jsx)("button",{className:"flex aspect-square h-full flex-shrink-0 items-center justify-center text-lg disabled:text-neutral-400",onClick:e=>{const t=r?.()??[];t.length&&t.unshift(ep.SEPARATOR),c([...o??[],...t]),i(e)},disabled:!o?.length,children:(0,E.jsx)(dr.Menu,{})}),(0,E.jsx)(Mc,{...s,menuProps:{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},classes:{paper:"rounded-none mt-[1px]",list:"w-40 p-0 rounded-none border border-neutral-400 bg-white overflow-y-auto py-0.5"}},children:l.map(((e,t)=>H(e)?(0,E.jsx)(Uc,{className:"flex h-[22px] w-full items-center px-2.5 text-base hover:bg-neutral-100 focus:bg-neutral-100",onClick:()=>{e.action(),a()},disabled:Boolean(e.disabled),children:e.label},t):e===ep.SEPARATOR?(0,E.jsx)("div",{className:"my-1 h-[1px] w-full bg-neutral-200"},t):null))})]})]})})),np=e=>{const{message:t,prompt:n}=e;return(0,E.jsxs)("div",{className:"flex h-full w-full overflow-auto p-5",children:[(0,E.jsx)("div",{className:"mr-3",children:(0,E.jsx)(dr.AlertError,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-red-500"})}),(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"whitespace-break-spaces text-lg",children:t}),(0,E.jsx)("div",{className:"mt-1 whitespace-break-spaces text-neutral-500",children:n})]})]})},op=(0,bt.PA)((e=>{const{children:t,taskManager:n}=e;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"h-[calc(100%_-_48px)] w-full border border-x-0 border-neutral-200 bg-neutral-50",children:t??null}),(0,E.jsx)(Zd,{taskManager:n})]})})),rp=(0,bt.PA)((e=>{const{children:t,title:n,menuItems:o,headerContent:r,layoutManager:i,taskManager:a}=e;return(0,E.jsxs)("div",{className:"data-cube relative flex h-full w-full flex-col bg-white",children:[(0,E.jsx)(tp,{title:n,menuItems:o,children:r??null}),(0,E.jsx)(op,{taskManager:a,children:t}),i?(0,E.jsx)(_r,{layout:i}):null]})})),ip=(0,bt.PA)((e=>{const{view:t}=e;return(0,Lt.useEffect)((()=>()=>t.dispose()),[t]),t.initializeState.hasFailed?(0,E.jsx)(op,{children:(0,E.jsx)(np,{message:"Initialization Failure",prompt:"Resolve the issue and reload."})}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Jd,{view:t}),(0,E.jsx)(Zd,{view:t})]})}));var ap=n(61005);class sp{_engine;_settingService;_snapshotService;_latestSnapshot;constructor(e,t,n){this._engine=e,this._settingService=t,this._snapshotService=n}getLatestSnapshot(){return this._latestSnapshot}async receiveSnapshot(e){const t=this._latestSnapshot;this._latestSnapshot=e,await this.applySnapshot(e.INTERNAL__fullClone(),t)}publishSnapshot(e){const t=this._latestSnapshot;this._latestSnapshot=e,this._settingService.getBooleanValue(du.DEBUGGER__ENABLE_DEBUG_MODE)&&this._engine.debugProcess("New Snapshot",["Publisher",this.getSnapshotSubscriberName()],["Snapshot",e.serialize()],["Previous Snapshot",t?.serialize()],["Diff",(0,ap.A)(t??{},e)]),this._snapshotService.broadcastSnapshot(e)}}class lp{_logService;_settingService;_subscribers=[];_snapshots=[];_pointer=-1;_historySize;constructor(e,t){(0,xe.Gn)(this,{_snapshots:xe.sH.struct,_pointer:xe.sH,canUndo:xe.EW,canRedo:xe.EW,undo:xe.XI,redo:xe.XI,adjustHistorySize:xe.XI,broadcastSnapshot:xe.XI}),this._logService=e,this._settingService=t,this._historySize=Math.max(this._settingService.getNumericValue(du.EDITOR__MAX_HISTORY_STACK_SIZE),10)}registerSubscriber(e){if(this._subscribers.find((t=>t.getSnapshotSubscriberName()===e.getSnapshotSubscriberName())))throw new x(`Subscriber with name '${e.getSnapshotSubscriberName()}' already exists`);this._subscribers.push(e)}propagateSnapshot(e){this._subscribers.forEach((t=>{const n=t.getLatestSnapshot();n?.uuid!==e.uuid&&t.receiveSnapshot(e).catch((e=>{w(e),this._logService.logIllegalStateError("Error occured while subscribers receiving and applying new snapshot should be handled gracefully",e)}))}))}getCurrentSnapshot(){return N(this._snapshots,this._pointer)}getHistory(e){return e?.full?[...this._snapshots]:this._snapshots.slice(0,this._pointer+1)}get canUndo(){return this._pointer>0}get canRedo(){return this._pointer<this._snapshots.length-1}undo(){this._pointer=Math.max(this._pointer-1,0),this.propagateSnapshot(this.getCurrentSnapshot())}redo(){this._pointer=Math.min(this._pointer+1,this._snapshots.length-1),this.propagateSnapshot(this.getCurrentSnapshot())}adjustHistorySize(e){let t=e;e<=10&&(this._logService.logIllegalStateError(`Can't adjust history size to ${e}: value must be greator than 10`),t=Math.max(e,10));const n=this.getHistory();n.length>t?(this._snapshots=n.slice(-t),this._pointer=Math.min(Math.max(this._pointer-(n.length-t),0),n.length-1)):(this._snapshots=n,this._pointer=n.length-1),this._historySize=t}broadcastSnapshot(e){e.isFinalized()?(this._snapshots=[...this._snapshots.slice(0,this._pointer+1),e],this._pointer+=1,this.adjustHistorySize(this._historySize),this.propagateSnapshot(e)):this._logService.logIllegalStateError("Snapshot must be finalized before broadcasting")}}function cp({name:e,subMenu:t,checked:n}){return(0,xr.sd)({configureDefaults:()=>!0}),(0,E.jsxs)("div",{children:[(0,E.jsx)("span",{className:"ag-menu-option-part ag-menu-option-icon"}),(0,E.jsxs)("span",{className:"ag-menu-option-part ag-menu-option-text !inline-flex items-center",children:[(0,E.jsx)("span",{className:"opacity-50",children:e}),(0,E.jsx)(zc,{})]}),(0,E.jsx)("span",{className:"ag-menu-option-part ag-menu-option-shortcut"}),(0,E.jsx)("span",{className:"ag-menu-option-part ag-menu-option-popup-pointer select-none",children:t&&(0,E.jsx)("span",{className:"ag-icon ag-icon-small-right"})})]})}var up=n(43322);class dp{uuid=(0,i.A)();parent;not=!1;constructor(e,t){(0,xe.Gn)(this,{parent:xe.sH,setParent:xe.XI,not:xe.sH,setNot:xe.XI}),this.parent=e,this.not=Boolean(t)}setNot(e){this.not=e}setParent(e){this.parent=e}}class pp extends dp{column;operation;value;constructor(e,t,n,o,r){super(e,r),(0,xe.Gn)(this,{column:xe.sH,setColumn:xe.XI,operation:xe.sH,setOperation:xe.XI,value:xe.sH.ref,setValue:xe.XI,updateValue:xe.XI}),this.column=t,this.operation=n,this.setValue(o)}setColumn(e){this.column=e}setOperation(e){this.operation=e}setValue(e){this.value=(0,xe.AT)(e)?e:(0,xe.Gn)(e,{value:xe.sH})}updateValue(e){this.value.value=e}}class gp extends dp{children=[];operation=ui.AND;constructor(e,t,n){super(e,n),(0,xe.Gn)(this,{children:xe.sH,removeChild:xe.XI,addChild:xe.XI,operation:xe.sH,setOperation:xe.XI}),this.operation=t}setOperation(e){this.operation=e}removeChild(e){S(this.children,e)&&e.setParent(void 0)}addChild(e,t){this.children.includes(e)||(void 0!==t?(t=Math.max(0,Math.min(t,this.children.length)),this.children.splice(t,0,e)):this.children.push(e),e.setParent(this))}}function mp(e){return{groupOperator:e.operation,not:e.not,conditions:e.children.map((e=>{if(e instanceof pp)return{name:e.column.name,type:e.column.type,operator:e.operation.operator,value:(0,up.A)(e.value),not:e.not};if(e instanceof gp)return mp(e);throw new x("Unknown filter node")}))}}function hp(e,t,n,o){const r=new gp(t,e.groupOperator===ui.AND?ui.AND:ui.OR,e.not);return e.conditions.forEach((e=>{let t;t="groupOperator"in e?hp(e,r,n,o):new pp(r,{name:e.name,type:e.type},o(e.operator),e.value,e.not),r.addChild(t),n.set(t.uuid,t)})),n.set(r.uuid,r),r}class fp{name;type;constructor(e,t){this.name=e,this.type=t}}class Ep{_editor;selectedColumns=[];availableColumnsSearchText="";selectedColumnsSearchText="";onChange;constructor(e,t){(0,xe.Gn)(this,{availableColumns:xe.EW,availableColumnsForDisplay:xe.EW,selectedColumnsForDisplay:xe.EW,selectedColumns:xe.sH,setSelectedColumns:xe.XI,availableColumnsSearchText:xe.sH,setAvailableColumnsSearchText:xe.XI,selectedColumnsSearchText:xe.sH,setSelectedColumnsSearchText:xe.XI}),this._editor=e,this.onChange=t?.onChange}get availableColumnsForDisplay(){return this.availableColumns.filter((e=>!Hi(this.selectedColumns,e.name))).sort($i)}get selectedColumnsForDisplay(){return this.selectedColumns}setSelectedColumns(e){this.selectedColumns=e.map((e=>this.cloneColumn(e))),this.onChange?.(this)}setAvailableColumnsSearchText(e){this.availableColumnsSearchText=e}setSelectedColumnsSearchText(e){this.selectedColumnsSearchText=e}getColumn(e){return P(Hi(this.availableColumns,e),`Can't find column '${e}'`)}}class Cp extends fp{onChange;direction;constructor(e,t,n,o){super(e,t),(0,xe.Gn)(this,{direction:xe.sH,setDirection:xe.XI}),this.direction=n,this.onChange=o}setDirection(e){this.direction=e,this.onChange?.()}}class bp extends Ep{cloneColumn(e){return new Cp(e.name,e.type,e.direction)}get availableColumns(){return(0,tt.A)([...this._editor.horizontalPivots.selector.selectedColumns.length?[...this._editor.horizontalPivots.pivotResultColumns,...[...this._editor.columns.selector.selectedColumns,...this._editor.verticalPivots.selector.selectedColumns].filter((e=>this._editor.columnProperties.getColumnConfiguration(e.name).kind===ii.DIMENSION&&!Hi(this._editor.horizontalPivots.selector.selectedColumns,e.name)))]:[...this._editor.columns.selector.selectedColumns,...this._editor.verticalPivots.selector.selectedColumns],...this._editor.groupExtendColumns],(e=>e.name)).map((e=>new Cp(e.name,e.type,di.ASCENDING)))}}class vp{selector;constructor(e){this.selector=new bp(e)}adaptPropagatedChanges(){this.selector.setSelectedColumns(this.selector.selectedColumns.filter((e=>Hi(this.selector.availableColumns,e.name))))}applySnaphot(e,t){this.selector.setSelectedColumns(e.data.sortColumns.map((e=>{const t=this.selector.getColumn(e.name);return new Cp(t.name,t.type,e.direction)})))}buildSnapshot(e,t){e.data.sortColumns=this.selector.selectedColumns.map((e=>({...Wi(e),direction:e.direction})))}}class _p extends zi{dataType;aggregateOperation;static create(e,t,n){const o=Object.assign(new _p("",""),zi.serialization.fromJson(e));return o.dataType=ji(o.type),o.aggregateOperation=Di(o.aggregateOperator,n),(0,xe.Gn)(o,{kind:xe.sH,setKind:xe.XI,displayName:xe.sH,setDisplayName:xe.XI,decimals:xe.sH,setDecimals:xe.XI,displayCommas:xe.sH,setDisplayCommas:xe.XI,negativeNumberInParens:xe.sH,setNegativeNumberInParens:xe.XI,numberScale:xe.sH,setNumberScale:xe.XI,missingValueDisplayText:xe.sH,setMissingValueDisplayText:xe.XI,unit:xe.sH,setUnit:xe.XI,fontFamily:xe.sH,setFontFamily:xe.XI,fontSize:xe.sH,setFontSize:xe.XI,fontBold:xe.sH,setFontBold:xe.XI,fontItalic:xe.sH,setFontItalic:xe.XI,fontUnderline:xe.sH,setFontUnderline:xe.XI,fontStrikethrough:xe.sH,setFontStrikethrough:xe.XI,fontCase:xe.sH,setFontCase:xe.XI,textAlign:xe.sH,setTextAlign:xe.XI,normalForegroundColor:xe.sH,setNormalForegroundColor:xe.XI,negativeForegroundColor:xe.sH,setNegativeForegroundColor:xe.XI,zeroForegroundColor:xe.sH,setZeroForegroundColor:xe.XI,errorForegroundColor:xe.sH,setErrorForegroundColor:xe.XI,normalBackgroundColor:xe.sH,setNormalBackgroundColor:xe.XI,negativeBackgroundColor:xe.sH,setNegativeBackgroundColor:xe.XI,zeroBackgroundColor:xe.sH,setZeroBackgroundColor:xe.XI,errorBackgroundColor:xe.sH,setErrorBackgroundColor:xe.XI,isSelected:xe.sH,setIsSelected:xe.XI,hideFromView:xe.sH,setHideFromView:xe.XI,blur:xe.sH,setBlur:xe.XI,fixedWidth:xe.sH,setFixedWidth:xe.XI,minWidth:xe.sH,setMinWidth:xe.XI,maxWidth:xe.sH,setMaxWidth:xe.XI,pinned:xe.sH,setPinned:xe.XI,displayAsLink:xe.sH,setDisplayAsLink:xe.XI,linkLabelParameter:xe.sH,setLinkLabelParameter:xe.XI,isUsingDefaultStyling:xe.EW,useDefaultStyling:xe.XI,aggregateOperator:xe.sH,aggregateOperation:xe.sH,setAggregateOperation:xe.XI,aggregationParameters:xe.sH,setAggregationParameters:xe.XI,excludedFromPivot:xe.sH,setExcludedFromPivot:xe.XI,pivotSortDirection:xe.sH,setPivotSortDirection:xe.XI,pivotStatisticColumnFunction:xe.sH,setPivotStatisticColumnFunction:xe.XI}),o}get isUsingDefaultStyling(){return void 0===this.fontFamily&&void 0===this.fontSize&&void 0===this.fontBold&&void 0===this.fontItalic&&void 0===this.fontUnderline&&void 0===this.fontStrikethrough&&void 0===this.textAlign&&void 0===this.normalForegroundColor&&void 0===this.negativeForegroundColor&&void 0===this.zeroForegroundColor&&void 0===this.errorForegroundColor&&void 0===this.normalBackgroundColor&&void 0===this.negativeBackgroundColor&&void 0===this.zeroBackgroundColor&&void 0===this.errorBackgroundColor}useDefaultStyling(){this.fontFamily=void 0,this.fontSize=void 0,this.fontBold=void 0,this.fontItalic=void 0,this.fontUnderline=void 0,this.fontStrikethrough=void 0,this.textAlign=void 0,this.normalForegroundColor=void 0,this.negativeForegroundColor=void 0,this.zeroForegroundColor=void 0,this.errorForegroundColor=void 0,this.normalBackgroundColor=void 0,this.negativeBackgroundColor=void 0,this.zeroBackgroundColor=void 0,this.errorBackgroundColor=void 0}setKind(e){this.kind=e}setDisplayName(e){this.displayName=e}setDecimals(e){this.decimals=e}setDisplayCommas(e){this.displayCommas=e}setNegativeNumberInParens(e){this.negativeNumberInParens=e}setNumberScale(e){this.numberScale=e}setMissingValueDisplayText(e){this.missingValueDisplayText=e}setUnit(e){this.unit=e}setFontFamily(e){this.fontFamily=e}setFontSize(e){this.fontSize=e}setFontBold(e){this.fontBold=e}setFontItalic(e){this.fontItalic=e}setFontUnderline(e){this.fontUnderline=e}setFontStrikethrough(e){this.fontStrikethrough=e}setFontCase(e){this.fontCase=e}setTextAlign(e){this.textAlign=e}setNormalForegroundColor(e){this.normalForegroundColor=e}setNegativeForegroundColor(e){this.negativeForegroundColor=e}setZeroForegroundColor(e){this.zeroForegroundColor=e}setErrorForegroundColor(e){this.errorForegroundColor=e}setNormalBackgroundColor(e){this.normalBackgroundColor=e}setNegativeBackgroundColor(e){this.negativeBackgroundColor=e}setZeroBackgroundColor(e){this.zeroBackgroundColor=e}setErrorBackgroundColor(e){this.errorBackgroundColor=e}setIsSelected(e){this.isSelected=e}setHideFromView(e){this.hideFromView=e}setBlur(e){this.blur=e}setFixedWidth(e){this.fixedWidth=e}setMinWidth(e){this.minWidth=e}setMaxWidth(e){this.maxWidth=e}setPinned(e){this.pinned=e}setDisplayAsLink(e){this.displayAsLink=e}setLinkLabelParameter(e){this.linkLabelParameter=e}setAggregateOperation(e){this.aggregateOperation=e,this.aggregateOperator=e.operator}setAggregationParameters(e){this.aggregationParameters=e}setExcludedFromPivot(e){this.excludedFromPivot=e}setPivotSortDirection(e){this.pivotSortDirection=e}setPivotStatisticColumnFunction(e){this.pivotStatisticColumnFunction=e}}class Tp extends Yi{static create(e){const t=Object.assign(new Tp,Yi.serialization.fromJson(e));return(0,xe.Gn)(t,{expandedPaths:xe.sH,setExpandedPaths:xe.XI}),t}setExpandedPaths(e){this.expandedPaths=e}}class Np extends Xi{static create(e){const t=Object.assign(new Np,Xi.serialization.fromJson(e));return t.columns=[],(0,xe.Gn)(t,{name:xe.sH,setName:xe.XI,description:xe.sH,setDescription:xe.XI,showHorizontalGridLines:xe.sH,setShowHorizontalGridLines:xe.XI,showVerticalGridLines:xe.sH,setShowVerticalGridLines:xe.XI,gridLineColor:xe.sH,setGridLineColor:xe.XI,fontFamily:xe.sH,setFontFamily:xe.XI,fontSize:xe.sH,setFontSize:xe.XI,fontBold:xe.sH,setFontBold:xe.XI,fontItalic:xe.sH,setFontItalic:xe.XI,fontUnderline:xe.sH,setFontUnderline:xe.XI,fontStrikethrough:xe.sH,setFontStrikethrough:xe.XI,fontCase:xe.sH,setFontCase:xe.XI,textAlign:xe.sH,setTextAlign:xe.XI,normalForegroundColor:xe.sH,setNormalForegroundColor:xe.XI,negativeForegroundColor:xe.sH,setNegativeForegroundColor:xe.XI,zeroForegroundColor:xe.sH,setZeroForegroundColor:xe.XI,errorForegroundColor:xe.sH,setErrorForegroundColor:xe.XI,normalBackgroundColor:xe.sH,setNormalBackgroundColor:xe.XI,negativeBackgroundColor:xe.sH,setNegativeBackgroundColor:xe.XI,zeroBackgroundColor:xe.sH,setZeroBackgroundColor:xe.XI,errorBackgroundColor:xe.sH,setErrorBackgroundColor:xe.XI,alternateRows:xe.sH,setAlternateRows:xe.XI,alternateRowsColor:xe.sH,setAlternateRowsColor:xe.XI,alternateRowsCount:xe.sH,setAlternateRowsCount:xe.XI,alternateRowsStandardMode:xe.sH,setAlternateRowsStandardMode:xe.XI,showSelectionStats:xe.sH,setShowSelectionStats:xe.XI,showWarningForTruncatedResult:xe.sH,setShowWarningForTruncatedResult:xe.XI,initialExpandLevel:xe.sH,setInitialExpandLevel:xe.XI,showRootAggregation:xe.sH,setShowRootAggregation:xe.XI,showLeafCount:xe.sH,setShowLeafCount:xe.XI,treeColumnSortDirection:xe.sH,setTreeColumnSortDirection:xe.XI,pivotStatisticColumnName:xe.sH,setPivotStatisticColumnName:xe.XI,pivotStatisticColumnPlacement:xe.sH,setPivotStatisticColumnPlacement:xe.XI,isUsingDefaultStyling:xe.EW,useDefaultStyling:xe.XI}),t}get isUsingDefaultStyling(){return this.fontFamily===Ni&&11===this.fontSize&&this.fontBold===Si&&this.fontItalic===Ai&&this.fontUnderline===yi&&this.fontStrikethrough===xi&&this.textAlign===Ii&&this.normalForegroundColor===wi&&this.negativeForegroundColor===Oi&&this.zeroForegroundColor===Li&&this.errorForegroundColor===Fi&&this.normalBackgroundColor===ki&&this.negativeBackgroundColor===ki&&this.zeroBackgroundColor===ki&&this.errorBackgroundColor===ki}useDefaultStyling(){this.fontFamily=Ni,this.fontSize=11,this.fontBold=Si,this.fontItalic=Ai,this.fontUnderline=yi,this.fontStrikethrough=xi,this.textAlign=Ii,this.normalForegroundColor=wi,this.negativeForegroundColor=Oi,this.zeroForegroundColor=Li,this.errorForegroundColor=Fi,this.normalBackgroundColor=ki,this.negativeBackgroundColor=ki,this.zeroBackgroundColor=ki,this.errorBackgroundColor=ki}setName(e){this.name=e}setDescription(e){this.description=e}setShowHorizontalGridLines(e){this.showHorizontalGridLines=e}setShowVerticalGridLines(e){this.showVerticalGridLines=e}setGridLineColor(e){this.gridLineColor=e}setFontFamily(e){this.fontFamily=e}setFontSize(e){this.fontSize=e}setFontBold(e){this.fontBold=e}setFontItalic(e){this.fontItalic=e}setFontUnderline(e){this.fontUnderline=e}setFontStrikethrough(e){this.fontStrikethrough=e}setFontCase(e){this.fontCase=e}setTextAlign(e){this.textAlign=e}setNormalForegroundColor(e){this.normalForegroundColor=e}setNegativeForegroundColor(e){this.negativeForegroundColor=e}setZeroForegroundColor(e){this.zeroForegroundColor=e}setErrorForegroundColor(e){this.errorForegroundColor=e}setNormalBackgroundColor(e){this.normalBackgroundColor=e}setNegativeBackgroundColor(e){this.negativeBackgroundColor=e}setZeroBackgroundColor(e){this.zeroBackgroundColor=e}setErrorBackgroundColor(e){this.errorBackgroundColor=e}setAlternateRows(e){this.alternateRows=e}setAlternateRowsColor(e){this.alternateRowsColor=e}setAlternateRowsCount(e){this.alternateRowsCount=e}setAlternateRowsStandardMode(e){this.alternateRowsStandardMode=e}setShowSelectionStats(e){this.showSelectionStats=e}setShowWarningForTruncatedResult(e){this.showWarningForTruncatedResult=e}setInitialExpandLevel(e){this.initialExpandLevel=e}setShowRootAggregation(e){this.showRootAggregation=e}setShowLeafCount(e){this.showLeafCount=e}setTreeColumnSortDirection(e){this.treeColumnSortDirection=e}setPivotStatisticColumnPlacement(e){this.pivotStatisticColumnPlacement=e}setPivotStatisticColumnName(e){this.pivotStatisticColumnName=e}setExpandedPaths(e){this.pivotLayout.expandedPaths=e}}class Sp{limit=void 0;configuration=new Np;constructor(e){(0,xe.Gn)(this,{configuration:xe.sH,limit:xe.sH,setLimit:xe.XI,applySnaphot:xe.XI})}setLimit(e){this.limit=e}applySnaphot(e,t){this.setLimit(void 0!==e.data.limit&&e.data.limit>=0?e.data.limit:void 0),this.configuration=Np.create(e.data.configuration)}buildSnapshot(e,t){const n=e.data;n.limit=void 0===this.limit||this.limit<0?void 0:this.limit,n.configuration=this.configuration.serialize()}}class Ap{_view;columns=[];selectedColumnName;showAdvancedSettings=!1;constructor(e){(0,xe.Gn)(this,{columns:xe.sH,setColumns:xe.XI,selectedColumnName:xe.sH,setSelectedColumnName:xe.XI,selectedColumn:xe.EW,showAdvancedSettings:xe.sH,setShowAdvancedSettings:xe.XI,applySnaphot:xe.XI}),this._view=e.view}getColumnConfiguration(e){return P(Hi(this.columns,e),`Can't find configuration for column '${e}'`)}setColumns(e){this.columns=e}setSelectedColumnName(e){this.selectedColumnName=e}get selectedColumn(){return Hi(this.columns,this.selectedColumnName)}setShowAdvancedSettings(e){this.showAdvancedSettings=e}applySnaphot(e,t){this.setColumns(e.data.configuration.columns.map((t=>_p.create(t,e,this._view.engine.aggregateOperations)))),!this.selectedColumn&&this.columns.length&&this.setSelectedColumnName(N(this.columns,0).name)}buildSnapshot(e,t){e.data.configuration={...e.data.configuration,columns:this.columns.map((e=>e.serialize()))}}}class yp extends Ep{showHiddenColumns=!1;constructor(e,t){super(e,t),(0,xe.Gn)(this,{availableColumnsForDisplay:xe.$Z,selectedColumnsForDisplay:xe.$Z,showHiddenColumns:xe.sH,setShowHiddenColumns:xe.XI})}cloneColumn(e){return new fp(e.name,e.type)}get availableColumns(){return[...this._editor.sourceColumns,...this._editor.leafExtendColumns,...this._editor.groupExtendColumns].map((e=>new fp(e.name,e.type)))}get availableColumnsForDisplay(){return super.availableColumnsForDisplay.filter((e=>this.showHiddenColumns||!this._editor.columnProperties.getColumnConfiguration(e.name).hideFromView))}get selectedColumnsForDisplay(){return super.selectedColumnsForDisplay.filter((e=>this.showHiddenColumns||!this._editor.columnProperties.getColumnConfiguration(e.name).hideFromView))}setShowHiddenColumns(e){this.showHiddenColumns=e}}class xp{_editor;selector;constructor(e){(0,xe.Gn)(this,{applySnaphot:xe.XI}),this._editor=e,this.selector=new yp(e,{onChange:e=>{const t=e.selectedColumns.map((e=>this._editor.columnProperties.getColumnConfiguration(e.name))),n=this._editor.columnProperties.columns.filter((e=>!t.includes(e)));t.forEach((e=>e.setIsSelected(!0))),n.forEach((e=>e.setIsSelected(!1))),this._editor.columnProperties.setColumns([...t,...n])}})}propagateChanges(){this._editor.sorts.adaptPropagatedChanges()}applySnaphot(e,t){this.selector.setSelectedColumns(this._editor.columnProperties.columns.filter((e=>e.isSelected)).map((e=>{const t=this.selector.getColumn(e.name);return new fp(t.name,t.type)})))}buildSnapshot(e,t){this.propagateChanges(),e.data.selectColumns=this.selector.selectedColumns.filter((e=>!Hi(this._editor.groupExtendColumns,e.name))).map(Wi)}}class Ip extends Ep{cloneColumn(e){return new fp(e.name,e.type)}get availableColumns(){return this._editor.columnProperties.columns.filter((e=>e.kind===ii.DIMENSION&&!Hi(this._editor.groupExtendColumns,e.name)&&!Hi(this._editor.horizontalPivots.selector.selectedColumns,e.name))).map((e=>new fp(e.name,e.type)))}}class wp{selector;constructor(e){this.selector=new Ip(e)}adaptPropagatedChanges(){this.selector.setSelectedColumns(this.selector.selectedColumns.filter((e=>Hi(this.selector.availableColumns,e.name))))}applySnaphot(e,t){this.selector.setSelectedColumns((e.data.groupBy?.columns??[]).map((e=>new fp(e.name,e.type))))}buildSnapshot(e,t){e.data.groupBy=this.selector.selectedColumns.length?{columns:this.selector.selectedColumns.map(Wi)}:void 0,e.data.selectColumns=(0,tt.A)([...e.data.selectColumns,...this.selector.selectedColumns],(e=>e.name)).map(Wi)}}function kp(){return{modules:[Ar.JKr],className:"ag-theme-quartz",animateRows:!1,getRowId:e=>e.data.name,editType:"fullRow",rowDragMultiRow:!0,rowDragEntireRow:!0,rowSelection:{mode:"multiRow",checkboxes:!0,headerCheckbox:!0,enableClickSelection:!0},selectionColumnDef:{width:40,headerClass:"!pl-[23px]",cellClass:"!pl-1.5",rowDrag:!0,rowDragText:(e,t)=>t>1?`${t} columns`:(e.rowNode?.data).name,sortable:!1,resizable:!1,suppressHeaderMenuButton:!0},suppressMoveWhenRowDragging:!0,rowHeight:20,headerHeight:20,suppressRowHoverHighlight:!1,noRowsOverlayComponent:e=>e.api.getQuickFilter()?(0,E.jsxs)("div",{className:"flex items-center border-[1.5px] border-neutral-300 p-2 font-semibold text-neutral-400",children:[(0,E.jsx)("div",{children:(0,E.jsx)(dr.WarningCircle,{className:"mr-1 text-lg"})}),"No match found"]}):e.noColumnsSelectedRenderer?e.noColumnsSelectedRenderer():(0,E.jsx)("div",{}),onModelUpdated:e=>{0===e.api.getDisplayedRowCount()?e.api.showNoRowsOverlay():e.api.hideOverlay()}}}const Rp=(0,bt.PA)((function(e){const{selector:t,gridApi:n,scope:o}=e;return(0,E.jsxs)("div",{className:"flex items-center justify-center rounded-lg bg-neutral-500 px-1 py-0.5 font-mono text-xs font-bold text-white",children:[`${kd(n).length}/${"available"===o?t.availableColumnsForDisplay.length:t.selectedColumnsForDisplay.length}`,(0,E.jsx)("span",{className:"hidden",children:"available"===o?t.availableColumnsSearchText:t.selectedColumnsSearchText})]})})),Op=(0,bt.PA)((function(e){const{selector:t,columnLabelRenderer:n,columnActionRenderer:o,noColumnsSelectedRenderer:r}=e,[i,a]=(0,Lt.useState)([]),[s,l]=(0,Lt.useState)([]),[c,u]=(0,Lt.useState)(null),[d,p]=(0,Lt.useState)(null),g=(0,Lt.useRef)(null),m=(0,Lt.useRef)(null),h=(0,Lt.useCallback)((e=>{t.setSelectedColumns(wd(e.api))}),[t]),f=(0,Lt.useCallback)((e=>{const n=e.nodes.map((e=>e.data)).filter(L);t.setSelectedColumns(t.selectedColumns.filter((e=>!n.includes(e))))}),[t]),C=(0,Lt.useCallback)((e=>{-1!==e.overIndex&&t.setSelectedColumns(wd(e.api))}),[t]);return(0,Lt.useEffect)((()=>{if(!c||!d)return;const e=d.getRowDropZoneParams({onDragStop:e=>{h(e),c.clearFocusedCell()}});e&&(c.removeRowDropZone(e),c.addRowDropZone(e));const t=c.getRowDropZoneParams({onDragStop:e=>{f(e),d.clearFocusedCell()}});t&&(d.removeRowDropZone(t),d.addRowDropZone(t))}),[c,d,h,f]),(0,E.jsxs)("div",{className:"data-cube-column-selector flex h-full w-full",children:[(0,E.jsxs)("div",{className:"h-full w-[calc(50%_-_20px)]",children:[(0,E.jsx)("div",{className:"flex h-5 items-center text-sm",children:"Available columns:"}),(0,E.jsxs)("div",{className:"h-[calc(100%_-_20px)] rounded-sm border border-neutral-200",children:[(0,E.jsxs)("div",{className:"relative h-6 border-b border-neutral-200",children:[(0,E.jsx)("input",{className:"h-full w-full pl-10 pr-6 placeholder-neutral-400",ref:g,placeholder:"Click here to search...",value:t.availableColumnsSearchText,onChange:e=>t.setAvailableColumnsSearchText(e.target.value),onKeyDown:e=>{"Escape"===e.code&&(e.stopPropagation(),g.current?.select(),t.setAvailableColumnsSearchText(""))}}),(0,E.jsx)("div",{className:"absolute left-0 top-0 flex h-6 w-10 items-center justify-center",children:(0,E.jsx)(dr.Search,{className:"stroke-[3px] text-lg text-neutral-500"})}),(0,E.jsx)("button",{className:"absolute right-0 top-0 flex h-6 w-6 items-center justify-center text-neutral-500 disabled:text-neutral-300",disabled:!t.availableColumnsSearchText,title:"Clear search [Esc]",onClick:()=>{t.setAvailableColumnsSearchText(""),g.current?.focus()},children:(0,E.jsx)(dr.X,{className:"text-lg"})})]}),(0,E.jsx)("div",{className:"h-[calc(100%_-_24px)]",children:(0,E.jsx)(xr.W6,{theme:"legacy",...kp(),rowDragManaged:!1,onGridReady:e=>u(e.api),onSelectionChanged:e=>{a(e.api.getSelectedNodes().map((e=>e.data)).filter(L))},quickFilterText:t.availableColumnsSearchText,rowData:t.availableColumnsForDisplay,columnDefs:[{field:"name",colId:"name",flex:1,minWidth:100,filter:!0,sortable:!1,resizable:!1,suppressHeaderMenuButton:!0,getQuickFilterText:e=>e.value,headerComponent:e=>(0,E.jsxs)("button",{title:"Double-click to add all columns",className:"flex h-full w-full items-center justify-between pl-0.5",onDoubleClick:()=>{const n=kd(e.api);t.setSelectedColumns([...t.selectedColumns,...n]),e.api.clearFocusedCell()},children:[(0,E.jsx)("div",{children:"[All Columns]"}),(0,E.jsx)(Rp,{selector:t,gridApi:e.api,scope:"available"})]}),cellRenderer:e=>{const r=e.data;return r?(0,E.jsxs)("div",{className:"flex h-full w-full cursor-pointer items-center",title:`[${r.name}]\nDouble-click to add column`,onDoubleClick:()=>{t.setSelectedColumns([...t.selectedColumns,r]),e.api.clearFocusedCell()},children:[n?.({selector:t,column:r})??(0,E.jsx)("div",{className:"h-full flex-1 items-center overflow-hidden overflow-ellipsis whitespace-nowrap pl-2",children:r.name}),(0,E.jsx)("div",{className:"flex h-full",children:o?.({selector:t,column:r})??null})]}):null}}]})})]})]}),(0,E.jsx)("div",{className:"flex h-full w-10 items-center justify-center",children:(0,E.jsxs)("div",{className:"flex flex-col",children:[(0,E.jsx)("button",{className:"flex items-center justify-center rounded-sm border border-neutral-300 bg-neutral-100 text-neutral-500 hover:bg-neutral-200 disabled:bg-neutral-200 disabled:text-neutral-400",title:"Add selected columns",onClick:()=>{if(!c)return;const e=kd(c),n=i.filter((t=>e.includes(t)));t.setSelectedColumns([...t.selectedColumns,...n]),c.clearFocusedCell()},disabled:0===i.length,children:(0,E.jsx)(dr.ChevronRight,{className:"text-2xl"})}),(0,E.jsx)("button",{className:"mt-2 flex items-center justify-center rounded-sm border border-neutral-300 bg-neutral-100 text-neutral-500 hover:bg-neutral-200 disabled:bg-neutral-200 disabled:text-neutral-400",title:"Remove selected columns",onClick:()=>{if(!d)return;const e=kd(d),n=s.filter((t=>e.includes(t)));t.setSelectedColumns(t.selectedColumns.filter((e=>!n.includes(e)))),d.clearFocusedCell()},disabled:0===s.length,children:(0,E.jsx)(dr.ChevronLeft,{className:"text-2xl"})})]})}),(0,E.jsxs)("div",{className:"h-full w-[calc(50%_-_20px)]",children:[(0,E.jsx)("div",{className:"flex h-5 items-center text-sm",children:"Selected columns:"}),(0,E.jsxs)("div",{className:"h-[calc(100%_-_20px)] rounded-sm border border-neutral-200",children:[(0,E.jsxs)("div",{className:"relative h-6 border-b border-neutral-200",children:[(0,E.jsx)("input",{className:"h-full w-full pl-10 placeholder-neutral-400",ref:m,placeholder:"Click here to search...",value:t.selectedColumnsSearchText,onChange:e=>t.setSelectedColumnsSearchText(e.target.value),onKeyDown:e=>{"Escape"===e.code&&(e.stopPropagation(),t.setSelectedColumnsSearchText(""))}}),(0,E.jsx)("div",{className:"absolute left-0 top-0 flex h-6 w-10 items-center justify-center",children:(0,E.jsx)(dr.Search,{className:"stroke-[3px] text-lg text-neutral-500"})}),(0,E.jsx)("button",{className:"absolute right-0 top-0 flex h-6 w-6 items-center justify-center text-neutral-500 disabled:text-neutral-300",disabled:!t.selectedColumnsSearchText,title:"Clear search [Esc]",onClick:()=>{t.setSelectedColumnsSearchText(""),m.current?.focus()},children:(0,E.jsx)(dr.X,{className:"text-lg"})})]}),(0,E.jsx)("div",{className:"h-[calc(100%_-_24px)]",children:(0,E.jsx)(xr.W6,{theme:"legacy",...kp(),rowDragManaged:!0,onRowDragEnd:C,onGridReady:e=>p(e.api),onSelectionChanged:e=>{l(e.api.getSelectedNodes().map((e=>e.data)).filter(L))},quickFilterText:t.selectedColumnsSearchText,noRowsOverlayComponentParams:{noColumnsSelectedRenderer:r},rowData:t.selectedColumnsForDisplay,columnDefs:[{field:"name",colId:"name",flex:1,minWidth:100,filter:!0,sortable:!1,resizable:!1,suppressHeaderMenuButton:!0,getQuickFilterText:e=>e.value,headerComponent:e=>(0,E.jsxs)("button",{title:"Double-click to remove all columns",className:"flex h-full w-full items-center justify-between pl-0.5",onDoubleClick:()=>{const n=kd(e.api);t.setSelectedColumns(t.selectedColumns.filter((e=>!n.includes(e)))),e.api.clearFocusedCell()},children:[(0,E.jsx)("div",{children:"[All Columns]"}),(0,E.jsx)(Rp,{selector:t,gridApi:e.api,scope:"selected"})]}),cellRenderer:e=>{const r=e.data;return r?(0,E.jsxs)("div",{className:"flex h-full w-full cursor-pointer items-center",title:`[${r.name}]\nDouble-click to add column`,onDoubleClick:()=>{t.setSelectedColumns(t.selectedColumns.filter((e=>e!==r))),e.api.clearFocusedCell()},children:[n?.({selector:t,column:r})??(0,E.jsx)("div",{className:"h-full flex-1 items-center overflow-hidden overflow-ellipsis whitespace-nowrap pl-2",children:r.name}),(0,E.jsx)("div",{className:"flex h-full",children:o?.({selector:t,column:r})??null})]}):null}}]})})]})]})]})})),Lp=(0,bt.PA)((e=>{const{column:t}=e,[n,o,r,i]=jc();return(0,E.jsxs)("div",{className:"group relative flex h-full items-center",children:[!i&&(0,E.jsx)("div",{className:"flex h-[18px] w-32 items-center border border-transparent px-2 text-sm text-neutral-400 group-hover:invisible",children:t.direction}),i&&(0,E.jsxs)("div",{className:"flex h-[18px] w-32 items-center justify-between border border-sky-600 bg-sky-50 pl-2 pr-0.5 text-sm",children:[(0,E.jsx)("div",{children:t.direction}),(0,E.jsx)("div",{children:(0,E.jsx)(dr.CaretDown,{})})]}),(0,E.jsxs)("button",{className:"invisible absolute right-0 z-10 flex h-[18px] w-32 items-center justify-between border border-neutral-400 pl-2 pr-0.5 text-sm text-neutral-700 group-hover:visible",onClickCapture:e=>{e.stopPropagation(),n(e)},onClick:e=>e.stopPropagation(),children:[(0,E.jsx)("div",{children:t.direction}),(0,E.jsx)("div",{children:(0,E.jsx)(dr.CaretDown,{})})]}),(0,E.jsx)(Zc,{className:"w-32",...r,children:[di.ASCENDING,di.DESCENDING].map((e=>(0,E.jsx)(eu,{onClick:()=>{t.setDirection(e),o()},autoFocus:t.direction===e,children:e},e)))})]})})),Fp=(0,bt.PA)((e=>{const{column:t}=e;return(0,E.jsx)("div",{className:"h-full flex-1 items-center overflow-hidden overflow-ellipsis whitespace-nowrap pl-2",children:t.name.split(mi).join(" / ")})})),Pp=(0,bt.PA)((e=>{const{view:t}=e,n=t.editor.sorts;return(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(dr.TableSort,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Sorts"})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsx)(Op,{selector:n.selector,columnLabelRenderer:e=>(0,E.jsx)(Fp,{...e}),columnActionRenderer:e=>(0,E.jsx)(Lp,{...e})})})]})}));var Bp;!function(e){e.EXTENDED_COLUMN_LEVELS="data-cube.extended-column.levels",e.GRID_CONFIGURATION_ROW_LIMIT="data-cube.grid-configuration.row-limit",e.COLUMN_CONFIGURATION_KIND="data-cube.column-configuration.kind",e.COLUMN_CONFIGURATION_UNIT="data-cube.column-configuration.unit",e.COLUMN_CONFIGURATION_DISPLAY_AS_LINK="data-cube.column-configuration.display-value-as-link",e.COLUMN_CONFIGURATION_MISSING_VALUE_FORMAT="data-cube.column-configuration.missing-value-format"}(Bp||(Bp={}));const Dp=(0,bt.PA)((e=>{const{view:t}=e,n=t.editor.generalProperties,o=n.configuration,[r,i,a,s]=jc(),[l,c,u,d]=jc(),[p,g,m,h]=jc(),[f,C,b,v]=jc(),[_,T,N]=jc(),[S,A,y]=jc();return(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(dr.TableOptions,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"General Properties"})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsxs)("div",{className:"h-full w-full py-2",children:[(0,E.jsxs)("div",{className:"flex h-6 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Report Title:"}),(0,E.jsx)(qc,{className:"h-6 w-96 text-lg font-semibold",value:o.name,onChange:e=>{o.setName(e.target.value)}})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Tree Column:"}),(0,E.jsx)(Jc,{label:"Show root aggregation",checked:o.showRootAggregation,onChange:()=>o.setShowRootAggregation(!o.showRootAggregation)}),(0,E.jsx)(Jc,{className:"ml-3",label:"Show leaf count",checked:o.showLeafCount,onChange:()=>o.setShowLeafCount(!o.showLeafCount)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm"}),(0,E.jsx)("div",{className:"mr-1 flex h-full flex-shrink-0 items-center text-sm",children:"Sort:"}),(0,E.jsx)(Qc,{className:"w-20",onClick:r,open:s,children:o.treeColumnSortDirection}),(0,E.jsx)(Zc,{className:"w-20",...a,children:[di.ASCENDING,di.DESCENDING].map((e=>(0,E.jsx)(eu,{onClick:()=>{o.setTreeColumnSortDirection(e),i()},autoFocus:e===o.treeColumnSortDirection,children:e},e)))}),(0,E.jsx)("div",{className:"ml-3 mr-1 flex h-full flex-shrink-0 items-center text-sm",children:"Initially expand to level:"}),(0,E.jsx)(Qc,{className:"w-16",onClick:l,open:d,showAsPlaceholder:void 0===o.initialExpandLevel,children:o.initialExpandLevel??Pi}),(0,E.jsx)(Zc,{className:"w-16",...u,children:[void 0,1,2,3,4,5,6,7,8].map((e=>(0,E.jsx)(eu,{onClick:()=>{o.setInitialExpandLevel(e),c()},autoFocus:e===o.initialExpandLevel,children:e??Pi},e??"")))})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsxs)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:["Row Limit:",(0,E.jsx)(ru,{className:"ml-1",documentationKey:Bp.GRID_CONFIGURATION_ROW_LIMIT})]}),(0,E.jsx)(Kc,{className:"w-16 text-sm",value:n.limit,min:0,step:1,defaultValue:void 0,placeholder:Pi,setValue:e=>n.setLimit(e)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm"}),(0,E.jsx)(Jc,{label:"Display warning when truncated",checked:o.showWarningForTruncatedResult,onChange:()=>o.setShowWarningForTruncatedResult(!o.showWarningForTruncatedResult)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Show Selection Stats?"}),(0,E.jsx)(Jc,{checked:o.showSelectionStats,onChange:()=>o.setShowSelectionStats(!o.showSelectionStats),disabled:!0}),(0,E.jsx)(zc,{})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Show Lines?"}),(0,E.jsx)(Jc,{label:"Horizontal",checked:o.showHorizontalGridLines,onChange:()=>o.setShowHorizontalGridLines(!o.showHorizontalGridLines)}),(0,E.jsx)(Jc,{className:"ml-3",label:"Vertical",checked:o.showVerticalGridLines,onChange:()=>o.setShowVerticalGridLines(!o.showVerticalGridLines)}),(0,E.jsx)("div",{className:"ml-3 mr-1 flex h-full flex-shrink-0 items-center text-sm",children:"Color:"}),(0,E.jsx)(ou,{color:o.gridLineColor,defaultColor:_i,onChange:e=>o.setGridLineColor(e)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Hightlight Rows:"}),(0,E.jsx)(Jc,{label:"Standard mode",checked:o.alternateRowsStandardMode,onChange:()=>{o.alternateRowsStandardMode?o.setAlternateRowsStandardMode(!1):(o.setAlternateRowsStandardMode(!0),o.setAlternateRows(!1))}}),(0,E.jsx)(Jc,{className:"ml-3",checked:o.alternateRows,onChange:()=>{o.alternateRows?o.setAlternateRows(!1):(o.setAlternateRows(!0),o.setAlternateRowsStandardMode(!1))}}),(0,E.jsx)("div",{className:"ml-1 mr-1 flex h-full flex-shrink-0 items-center text-sm",children:"Custom: Alternate color:"}),(0,E.jsx)(ou,{disabled:!o.alternateRows,color:o.alternateRowsColor,defaultColor:Ti,onChange:e=>o.setAlternateRowsColor(e)}),(0,E.jsx)("div",{className:"ml-1 flex h-full flex-shrink-0 items-center text-sm",children:"every:"}),(0,E.jsx)(Kc,{className:"ml-1 w-16 text-sm",disabled:!o.alternateRows,min:1,step:1,defaultValue:1,isValid:e=>void 0!==e&&e>0,value:o.alternateRowsCount,setValue:e=>o.setAlternateRowsCount(e??1)}),(0,E.jsx)("div",{className:"ml-1 flex-shrink-0 text-sm",children:"rows"})]}),(0,E.jsx)("div",{className:"my-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Default Font:"}),(0,E.jsx)(Qc,{className:"w-28",onClick:p,open:h,children:o.fontFamily}),(0,E.jsxs)(Zc,{className:"w-28",...m,children:[[ti.ARIAL,ti.ROBOTO,ti.ROBOTO_CONDENSED].map((e=>(0,E.jsx)(eu,{onClick:()=>{o.setFontFamily(e),g()},autoFocus:e===o.fontFamily,children:e},e))),(0,E.jsx)(tu,{}),[ti.GEORGIA,ti.ROBOTO_SERIF,ti.TIMES_NEW_ROMAN].map((e=>(0,E.jsx)(eu,{onClick:()=>{o.setFontFamily(e),g()},autoFocus:e===o.fontFamily,children:e},e))),(0,E.jsx)(tu,{}),[ti.JERBRAINS_MONO,ti.ROBOTO_MONO,ti.UBUNTU_MONO].map((e=>(0,E.jsx)(eu,{onClick:()=>{o.setFontFamily(e),g()},autoFocus:e===o.fontFamily,children:e},e)))]}),(0,E.jsx)(Qc,{className:"ml-1 w-10",onClick:f,open:v,children:o.fontSize}),(0,E.jsx)(Zc,{className:"w-10",...b,children:[4,5,6,7,8,9,10,11,12,14,16,18,20,22,24,26,28,32,36,48,72].map((e=>(0,E.jsx)(eu,{onClick:()=>{o.setFontSize(e),C()},autoFocus:e===o.fontSize,children:e},e)))}),(0,E.jsxs)("div",{className:"relative ml-2 flex h-5",children:[(0,E.jsx)("button",{title:"Bold",className:jn("relative flex h-5 w-5 items-center justify-center rounded-bl-sm rounded-tl-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":o.fontBold}),onClick:()=>o.setFontBold(!o.fontBold),children:(0,E.jsx)(dr.FontBold,{})}),(0,E.jsx)("button",{title:"Italic",className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":o.fontItalic}),onClick:()=>o.setFontItalic(!o.fontItalic),children:(0,E.jsx)(dr.FontItalic,{})}),(0,E.jsx)("button",{title:"Underline"+(o.fontUnderline?` (${o.fontUnderline})`:""),className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-r-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":void 0!==o.fontUnderline}),onClick:()=>{void 0===o.fontUnderline?(o.setFontUnderline(ri.SOLID),o.setFontStrikethrough(!1)):o.setFontUnderline(void 0)},children:(0,E.jsx)(dr.FontUnderline,{})}),(0,E.jsxs)("button",{className:"text-2xs relative -ml-[1px] flex h-5 w-2.5 items-center justify-center border border-l-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-600 focus:z-[1]",onClick:_,children:[(0,E.jsx)("div",{className:jn("h-4 w-[0.5px] bg-neutral-200",{"opacity-0":void 0!==o.fontUnderline})}),(0,E.jsx)(dr.CaretDown,{})]}),(0,E.jsx)(Zc,{className:"w-14",...N,children:[ri.SOLID,ri.DASHED,ri.DOTTED,ri.DOUBLE,ri.WAVY].map((e=>(0,E.jsx)(eu,{className:"relative",onClick:()=>{o.setFontUnderline(e),o.setFontStrikethrough(!1),T()},autoFocus:e===o.fontUnderline,children:(0,E.jsx)("div",{className:jn("!hover:underline absolute top-0 !underline",{"!hover:decoration-solid !decoration-solid":e===ri.SOLID,"!hover:decoration-dashed !decoration-dashed":e===ri.DASHED,"!hover:decoration-dotted !decoration-dotted":e===ri.DOTTED,"!hover:decoration-double !decoration-double":e===ri.DOUBLE,"!hover:decoration-wavy !decoration-wavy":e===ri.WAVY}),children:"                "})},e)))}),(0,E.jsx)("button",{title:"Strikethrough",className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":o.fontStrikethrough}),onClick:()=>{o.fontStrikethrough?o.setFontStrikethrough(!1):(o.setFontStrikethrough(!0),o.setFontUnderline(void 0))},children:(0,E.jsx)(dr.FontStrikethrough,{})}),(0,E.jsx)("button",{title:"Case"+(o.fontCase?` (${o.fontCase})`:""),className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-r-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":void 0!==o.fontCase}),onClick:()=>{o.setFontCase(void 0===o.fontCase?oi.UPPERCASE:void 0)},children:(0,E.jsx)(dr.FontCase,{className:"stroke-[0.5px]"})}),(0,E.jsxs)("button",{className:"text-2xs relative -ml-[1px] flex h-5 w-2.5 items-center justify-center rounded-br-sm rounded-tr-sm border border-l-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-600 focus:z-[1]",onClick:S,children:[(0,E.jsx)("div",{className:jn("h-4 w-[0.5px] bg-neutral-200",{"opacity-0":void 0!==o.fontCase})}),(0,E.jsx)(dr.CaretDown,{})]}),(0,E.jsx)(Zc,{className:"w-20",...y,children:[oi.LOWERCASE,oi.UPPERCASE,oi.CAPITALIZE].map((e=>(0,E.jsx)(eu,{onClick:()=>{o.setFontCase(e),A()},autoFocus:e===o.fontCase,children:(0,E.jsx)("div",{className:jn({lowercase:e===oi.LOWERCASE,uppercase:e===oi.UPPERCASE,capitalize:e===oi.CAPITALIZE}),children:e})},e)))})]}),(0,E.jsxs)("div",{className:"relative ml-2 flex h-5",children:[(0,E.jsx)("button",{title:"Align Left",className:jn("relative flex h-5 w-5 items-center justify-center rounded-bl-sm rounded-tl-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":o.textAlign===ni.LEFT}),onClick:()=>o.setTextAlign(ni.LEFT),children:(0,E.jsx)(dr.TextAlignLeft,{})}),(0,E.jsx)("button",{title:"Align Center",className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":o.textAlign===ni.CENTER}),onClick:()=>o.setTextAlign(ni.CENTER),children:(0,E.jsx)(dr.TextAlignCenter,{})}),(0,E.jsx)("button",{title:"Align Right",className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center rounded-br-sm rounded-tr-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":o.textAlign===ni.RIGHT}),onClick:()=>o.setTextAlign(ni.RIGHT),children:(0,E.jsx)(dr.TextAlignRight,{})})]})]}),(0,E.jsxs)("div",{className:"mt-2 flex w-full",children:[(0,E.jsx)("div",{className:"flex h-6 w-32 flex-shrink-0 items-center text-sm",children:"Default Colors:"}),(0,E.jsxs)("div",{className:"h-18",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"w-16 flex-shrink-0"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Normal"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Negative"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Zero"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Error"})]}),(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-full w-16 flex-shrink-0 items-center text-sm",children:"Foreground:"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(ou,{color:o.normalForegroundColor,defaultColor:wi,onChange:e=>o.setNormalForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(ou,{color:o.negativeForegroundColor,defaultColor:Oi,onChange:e=>o.setNegativeForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(ou,{color:o.zeroForegroundColor,defaultColor:Li,onChange:e=>o.setZeroForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(ou,{color:o.errorForegroundColor,defaultColor:Fi,onChange:e=>o.setErrorForegroundColor(e)})})]}),(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-full w-16 flex-shrink-0 items-center text-sm",children:"Background:"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(ou,{color:o.normalBackgroundColor,defaultColor:ki,onChange:e=>o.setNormalBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(ou,{color:o.negativeBackgroundColor,defaultColor:ki,onChange:e=>o.setNegativeBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(ou,{color:o.zeroBackgroundColor,defaultColor:ki,onChange:e=>o.setZeroBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(ou,{color:o.errorBackgroundColor,defaultColor:ki,onChange:e=>o.setErrorBackgroundColor(e)})})]})]})]}),(0,E.jsxs)("div",{className:"mt-2 flex w-full",children:[(0,E.jsx)("div",{className:"flex h-6 w-32 flex-shrink-0 items-center text-sm"}),(0,E.jsxs)("div",{className:"w-80",children:[(0,E.jsx)("div",{className:"mb-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsx)(Xc,{compact:!0,disabled:o.isUsingDefaultStyling,onClick:()=>o.useDefaultStyling(),children:"Use Default Styling"})]})]})]})})]})})),jp=(0,bt.PA)((e=>{const{column:t,editor:n}=e,o=n.columnProperties.getColumnConfiguration(t.name).hideFromView;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:jn("items-center overflow-hidden overflow-ellipsis whitespace-nowrap pl-2",{"text-neutral-400":o}),children:t.name}),Boolean(Hi(n.leafExtendColumns,t.name))&&(0,E.jsx)("div",{className:"ml-1.5 mr-0.5 flex h-3.5 flex-shrink-0 items-center rounded-sm border border-neutral-300 bg-neutral-100 px-1 text-xs font-medium uppercase text-neutral-600",children:"Extended (Leaf Level)"}),Boolean(Hi(n.groupExtendColumns,t.name))&&(0,E.jsx)("div",{className:"ml-1.5 mr-0.5 flex h-3.5 flex-shrink-0 items-center rounded-sm border border-neutral-300 bg-neutral-100 px-1 text-xs font-medium uppercase text-neutral-600",children:"Extended (Group Level)"})]})})),Mp=(0,bt.PA)((e=>{const{view:t}=e,n=t.editor,o=n.columns;return(0,Lt.useEffect)((()=>()=>o.propagateChanges()),[o]),(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6 justify-between",children:[(0,E.jsxs)("div",{className:"flex h-full",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(dr.TableColumns,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Columns"})]}),(0,E.jsx)("div",{className:"flex h-full items-center pr-2",children:(0,E.jsx)(Jc,{label:"Show hidden columns?",checked:o.selector.showHiddenColumns,onChange:()=>o.selector.setShowHiddenColumns(!o.selector.showHiddenColumns)})})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsx)(Op,{selector:o.selector,noColumnsSelectedRenderer:()=>(0,E.jsxs)("div",{className:"flex items-center border-[1.5px] border-neutral-200 p-2 font-semibold text-neutral-400",children:[(0,E.jsx)("div",{children:(0,E.jsx)(dr.Warning,{className:"mr-1 text-lg"})}),"No columns selected"]}),columnLabelRenderer:e=>(0,E.jsx)(jp,{...e,editor:n})})})]})})),Up=(0,bt.PA)((e=>{const{view:t}=e,n=t.editor.verticalPivots;return(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(dr.TableGroupBy,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Vertical Pivots"})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsx)(Op,{selector:n.selector})})]})})),Gp=(0,bt.PA)((e=>{const{view:t}=e,n=t.editor.horizontalPivots;return(0,Lt.useEffect)((()=>()=>n.propagateChanges()),[n]),(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-6 items-center text-xl font-medium",children:(0,E.jsx)(dr.TablePivot,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Horizontal Pivots"})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsx)(Op,{selector:n.selector,columnActionRenderer:e=>(0,E.jsx)(Lp,{...e})})})]})})),Vp=(0,bt.PA)((e=>{const{view:t}=e,n=t.editor,o=n.columnProperties,r=t.editor.generalProperties.configuration,i=o.selectedColumn,[a,s,l,c]=jc(),[u,d,p,g]=jc(),[m,h,f,C]=jc(),[b,v,_,T]=jc(),[N,S,A,y]=jc(),[x,I,w,k]=jc(),[R,O,L,F]=jc(),[P,B,D]=jc(),[j,M,U]=jc();return(0,E.jsxs)("div",{className:"h-full w-full select-none p-2",children:[(0,E.jsxs)("div",{className:"flex h-6 justify-between",children:[(0,E.jsxs)("div",{className:"flex h-full",children:[(0,E.jsxs)("div",{className:"relative flex h-6 items-center text-xl font-medium",children:[(0,E.jsx)(dr.TableColumn,{}),(0,E.jsx)(dr.TableColumnOptions__Settings,{className:"absolute bottom-1 right-0 bg-white text-xs"})]}),(0,E.jsx)("div",{className:"ml-1 flex h-6 items-center text-xl font-medium",children:"Column Properties"})]}),(0,E.jsxs)("div",{className:"flex h-full items-center pr-2",children:[(0,E.jsx)(Jc,{label:"Show advanced settings?",checked:o.showAdvancedSettings,onChange:()=>o.setShowAdvancedSettings(!o.showAdvancedSettings)}),(0,E.jsx)(Yc,{})]})]}),(0,E.jsx)("div",{className:"flex h-[calc(100%_-_24px)] w-full",children:(0,E.jsxs)("div",{className:"h-full w-full py-2",children:[(0,E.jsxs)("div",{className:"flex h-6 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Choose Column:"}),(0,E.jsx)(Qc,{className:"w-80",onClick:a,open:c,children:(0,E.jsxs)("div",{className:"flex h-full w-full items-center",children:[(0,E.jsx)("div",{className:"overflow-hidden overflow-ellipsis whitespace-nowrap",children:i?.name??Pi}),i&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"ml-1.5 mr-0.5 flex h-3.5 w-12 flex-shrink-0 items-center justify-center rounded-sm border border-neutral-300 bg-neutral-100 text-xs font-medium uppercase text-neutral-600",children:i.dataType}),Boolean(Hi(n.leafExtendColumns,i.name))&&(0,E.jsx)("div",{className:"mr-0.5 flex h-3.5 flex-shrink-0 items-center rounded-sm border border-neutral-300 bg-neutral-100 px-1 text-xs font-medium uppercase text-neutral-600",children:"Extended (Leaf Level)"}),Boolean(Hi(n.groupExtendColumns,i.name))&&(0,E.jsx)("div",{className:"mr-0.5 flex h-3.5 flex-shrink-0 items-center rounded-sm border border-neutral-300 bg-neutral-100 px-1 text-xs font-medium uppercase text-neutral-600",children:"Extended (Group Level)"})]})]})}),(0,E.jsx)(Zc,{className:"w-80",...l,children:o.columns.toSorted($i).map((e=>(0,E.jsxs)(eu,{onClick:()=>{o.setSelectedColumnName(e.name),s()},autoFocus:e.name===i?.name,children:[(0,E.jsx)("div",{className:"overflow-hidden overflow-ellipsis whitespace-nowrap",children:e.name}),(0,E.jsx)("div",{className:"ml-1.5 mr-0.5 flex h-3.5 w-12 flex-shrink-0 items-center justify-center rounded-sm border border-neutral-300 bg-neutral-100 text-xs font-medium uppercase text-neutral-600",children:e.dataType}),Boolean(Hi(n.leafExtendColumns,e.name))&&(0,E.jsx)("div",{className:"mr-0.5 flex h-3.5 flex-shrink-0 items-center rounded-sm border border-neutral-300 bg-neutral-100 px-1 text-xs font-medium uppercase text-neutral-600",children:"Extended (Leaf Level)"}),Boolean(Hi(n.groupExtendColumns,e.name))&&(0,E.jsx)("div",{className:"mr-0.5 flex h-3.5 flex-shrink-0 items-center rounded-sm border border-neutral-300 bg-neutral-100 px-1 text-xs font-medium uppercase text-neutral-600",children:"Extended (Group Level)"})]},e.name)))}),o.showAdvancedSettings&&i&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"mx-2 h-[1px] w-4 flex-shrink-0 bg-neutral-400"}),(0,E.jsxs)("div",{className:"flex h-6 items-center",children:[(0,E.jsxs)("div",{className:"flex h-full flex-shrink-0 items-center text-sm",children:["Column Kind:",(0,E.jsx)(ru,{className:"ml-1",documentationKey:Bp.COLUMN_CONFIGURATION_KIND})]}),(0,E.jsx)(Qc,{className:"ml-1.5 w-20",onClick:u,open:g,disabled:Boolean(Hi(n.verticalPivots.selector.selectedColumns,i.name)??Hi(n.horizontalPivots.selector.selectedColumns,i.name)),title:Boolean(Hi(n.verticalPivots.selector.selectedColumns,i.name)??Hi(n.horizontalPivots.selector.selectedColumns,i.name))?"Column kind cannot be changed while the column is used in pivot":void 0,children:i.kind}),(0,E.jsx)(Zc,{className:"w-20",...p,children:[ii.DIMENSION,ii.MEASURE].map((e=>(0,E.jsx)(eu,{onClick:()=>{e!==i.kind&&(i.setKind(e),i.setExcludedFromPivot(e===ii.DIMENSION),i.setPivotStatisticColumnFunction(e===ii.DIMENSION?void 0:li.SUM)),d()},autoFocus:e===i.kind,children:e},e)))}),(0,E.jsx)(Yc,{})]})]})]}),(0,E.jsx)("div",{className:"mb-2 ml-2 mt-3 h-[1px] w-[calc(100%_-_16px)] bg-neutral-200"}),i&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Display Name:"}),(0,E.jsx)(qc,{className:"w-80",value:i.displayName??"",onChange:e=>{const t=e.target.value;i.setDisplayName(""!==t?t:void 0)}})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Aggregation:"}),(0,E.jsx)(Qc,{className:"w-32",onClick:m,disabled:i.kind===ii.DIMENSION,open:C,children:i.aggregateOperation.operator}),(0,E.jsx)(Zc,{className:"w-32",...f,children:t.engine.aggregateOperations.filter((e=>e.isCompatibleWithColumn(i))).map((e=>(0,E.jsx)(eu,{onClick:()=>{e!==i.aggregateOperation&&(i.setAggregateOperation(e),i.setAggregationParameters(e.generateDefaultParameterValues(i))),h()},autoFocus:e===i.aggregateOperation,children:e.label},e.operator)))}),(0,E.jsx)(Jc,{className:"ml-3",label:"Exclude from horizontal pivot",checked:i.excludedFromPivot,onChange:()=>i.setExcludedFromPivot(!i.excludedFromPivot),disabled:i.kind===ii.DIMENSION})]}),i.dataType===gi.NUMBER&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Number Format:"}),(0,E.jsx)(Kc,{className:"w-16 text-sm",min:0,step:1,value:i.decimals??0,setValue:e=>{i.setDecimals(e)}}),(0,E.jsx)("div",{className:"ml-1 flex-shrink-0 text-sm",children:"decimal places"}),(0,E.jsx)(Jc,{className:"ml-3",label:"Display commas",checked:i.displayCommas,onChange:()=>i.setDisplayCommas(!i.displayCommas)}),(0,E.jsx)(Jc,{className:"ml-3",label:"Negative number in parens",checked:i.negativeNumberInParens,onChange:()=>i.setNegativeNumberInParens(!i.negativeNumberInParens)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm"}),(0,E.jsx)("div",{className:"mr-1 flex h-full flex-shrink-0 items-center text-sm",children:"Scale:"}),(0,E.jsx)(Qc,{className:"w-32",onClick:b,open:T,showAsPlaceholder:void 0===i.numberScale,children:i.numberScale??Pi}),(0,E.jsx)(Zc,{className:"w-32",..._,children:[void 0,ei.PERCENT,ei.BASIS_POINT,ei.THOUSANDS,ei.MILLIONS,ei.BILLIONS,ei.TRILLIONS,ei.AUTO].map((e=>(0,E.jsx)(eu,{onClick:()=>{i.setNumberScale(e),v()},autoFocus:e===i.numberScale,children:e??Pi},e??"")))}),(0,E.jsxs)("div",{className:"ml-3 mr-1 flex h-full flex-shrink-0 items-center text-sm",children:["Unit:",(0,E.jsx)(ru,{className:"ml-1",documentationKey:Bp.COLUMN_CONFIGURATION_UNIT})]}),(0,E.jsx)(qc,{className:"w-16",value:i.unit??"",onChange:e=>{const t=e.target.value.trim();i.setUnit(""!==t.trim()?t:void 0)},placeholder:Pi})]})]}),i.dataType===gi.TEXT&&(0,E.jsx)(E.Fragment,{children:(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsxs)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:["Dislay as Link?",(0,E.jsx)(ru,{className:"ml-1",documentationKey:Bp.COLUMN_CONFIGURATION_DISPLAY_AS_LINK})]}),(0,E.jsx)(Jc,{checked:i.displayAsLink,onChange:()=>i.setDisplayAsLink(!i.displayAsLink)}),(0,E.jsx)("div",{className:"ml-1 h-[1px] w-2 flex-shrink-0 bg-neutral-400"}),(0,E.jsx)("div",{className:"ml-2 mr-1.5 flex h-full flex-shrink-0 items-center text-sm",children:"Use parameter in link as label:"}),(0,E.jsx)(qc,{className:"w-48",placeholder:vi,value:i.linkLabelParameter??"",onChange:e=>{const t=e.target.value.trim();i.setLinkLabelParameter(""!==t?t:void 0)}})]})}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsxs)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:["Missing Value Format:",(0,E.jsx)(ru,{className:"ml-1",documentationKey:Bp.COLUMN_CONFIGURATION_MISSING_VALUE_FORMAT})]}),(0,E.jsx)(qc,{className:"w-16",value:i.missingValueDisplayText??"",onChange:e=>{const t=e.target.value;i.setMissingValueDisplayText(""!==t?t:void 0)},placeholder:Pi})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Visibility:"}),(0,E.jsx)(Jc,{label:"Blur content",checked:i.blur,onChange:()=>i.setBlur(!i.blur),disabled:i.hideFromView}),(0,E.jsx)(Jc,{className:"ml-3",label:"Hide from view",checked:i.hideFromView,onChange:()=>i.setHideFromView(!i.hideFromView)})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Pin:"}),(0,E.jsx)(Qc,{className:"w-16",onClick:N,open:y,showAsPlaceholder:void 0===i.pinned,children:i.pinned??Pi}),(0,E.jsx)(Zc,{className:"w-16",...A,children:[void 0,pi.LEFT,pi.RIGHT].map((e=>(0,E.jsx)(eu,{onClick:()=>{i.setPinned(e),S()},autoFocus:e===i.pinned,children:e??Pi},e??"")))})]}),(0,E.jsxs)("div",{className:"mt-1.5 flex h-6 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Width:"}),(0,E.jsx)(Jc,{label:"(Any)",checked:void 0===i.fixedWidth&&void 0===i.minWidth&&void 0===i.maxWidth,onChange:()=>{void 0===i.fixedWidth&&void 0===i.minWidth&&void 0===i.maxWidth?(i.setFixedWidth(300),i.setMinWidth(void 0),i.setMaxWidth(void 0)):(i.setFixedWidth(void 0),i.setMinWidth(void 0),i.setMaxWidth(void 0))}}),(0,E.jsx)(Jc,{className:"ml-3",label:"Fixed",checked:void 0!==i.fixedWidth,onChange:()=>{i.setFixedWidth(void 0!==i.fixedWidth?void 0:300),i.setMinWidth(void 0),i.setMaxWidth(void 0)}}),(0,E.jsx)("div",{className:"ml-1 h-[1px] w-2 flex-shrink-0 bg-neutral-400"}),(0,E.jsx)(Kc,{className:"ml-1 w-16 text-sm",min:0,step:50,defaultValue:void 0,isValid:e=>void 0!==e&&e>0,value:i.fixedWidth,setValue:e=>{i.setFixedWidth(e)},disabled:void 0!==i.minWidth||void 0!==i.maxWidth}),(0,E.jsx)(Jc,{className:"ml-3",label:"In range",checked:void 0!==i.minWidth||void 0!==i.maxWidth,onChange:()=>{void 0===i.minWidth&&void 0===i.maxWidth?(i.setMinWidth(50),i.setMaxWidth(void 0),i.setFixedWidth(void 0)):(i.setMinWidth(void 0),i.setMaxWidth(void 0),i.setFixedWidth(void 0))}}),(0,E.jsx)("div",{className:"ml-1 h-[1px] w-2 flex-shrink-0 bg-neutral-400"}),(0,E.jsx)(Kc,{className:"ml-1 w-16 text-sm",min:0,step:50,defaultValue:void 0,isValid:e=>void 0!==e&&e>0,value:i.minWidth,setValue:e=>{i.setMinWidth(e)},disabled:void 0!==i.fixedWidth}),(0,E.jsx)("div",{className:"ml-1 h-[1px] w-1 flex-shrink-0 bg-neutral-400"}),(0,E.jsx)(Kc,{className:"ml-1 w-16 text-sm",min:i.minWidth??0,step:50,defaultValue:void 0,isValid:e=>void 0!==e&&e>=(i.minWidth??0),value:i.maxWidth,setValue:e=>{i.setMaxWidth(e)},disabled:void 0!==i.fixedWidth})]}),(0,E.jsx)("div",{className:"my-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-32 flex-shrink-0 items-center text-sm",children:"Font:"}),(0,E.jsx)(Qc,{className:"w-28",onClick:x,open:k,children:i.fontFamily??r.fontFamily}),(0,E.jsxs)(Zc,{className:"w-28",...w,children:[[ti.ARIAL,ti.ROBOTO,ti.ROBOTO_CONDENSED].map((e=>(0,E.jsx)(eu,{onClick:()=>{i.setFontFamily(e),I()},autoFocus:e===(i.fontFamily??r.fontFamily),children:e},e))),(0,E.jsx)(tu,{}),[ti.GEORGIA,ti.ROBOTO_SERIF,ti.TIMES_NEW_ROMAN].map((e=>(0,E.jsx)(eu,{onClick:()=>{i.setFontFamily(e),I()},autoFocus:e===(i.fontFamily??r.fontFamily),children:e},e))),(0,E.jsx)(tu,{}),[ti.JERBRAINS_MONO,ti.ROBOTO_MONO,ti.UBUNTU_MONO].map((e=>(0,E.jsx)(eu,{onClick:()=>{i.setFontFamily(e),I()},autoFocus:e===(i.fontFamily??r.fontFamily),children:e},e)))]}),(0,E.jsx)(Qc,{className:"ml-1 w-10",onClick:R,open:F,children:i.fontSize??r.fontSize}),(0,E.jsx)(Zc,{className:"w-10",...L,children:[4,5,6,7,8,9,10,11,12,14,16,18,20,22,24,26,28,32,36,48,72].map((e=>(0,E.jsx)(eu,{onClick:()=>{i.setFontSize(e),O()},autoFocus:e===(i.fontSize??r.fontSize),children:e},e)))}),(0,E.jsxs)("div",{className:"relative ml-2 flex h-5",children:[(0,E.jsx)("button",{title:"Bold",className:jn("relative flex h-5 w-5 items-center justify-center rounded-bl-sm rounded-tl-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":i.fontBold??r.fontBold}),onClick:()=>i.setFontBold(!(i.fontBold??r.fontBold)),children:(0,E.jsx)(dr.FontBold,{})}),(0,E.jsx)("button",{title:"Italic",className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":i.fontItalic??r.fontItalic}),onClick:()=>i.setFontItalic(!(i.fontItalic??r.fontItalic)),children:(0,E.jsx)(dr.FontItalic,{})}),(0,E.jsx)("button",{title:"Underline"+(i.fontUnderline??r.fontUnderline?` (${i.fontUnderline??r.fontUnderline})`:""),className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-r-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":void 0!==(i.fontUnderline??r.fontUnderline)}),onClick:()=>{void 0===(i.fontUnderline??r.fontUnderline)?(i.setFontUnderline(ri.SOLID),i.setFontStrikethrough(!1)):i.setFontUnderline(void 0)},children:(0,E.jsx)(dr.FontUnderline,{})}),(0,E.jsxs)("button",{className:"text-2xs relative -ml-[1px] flex h-5 w-2.5 items-center justify-center border border-l-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-600 focus:z-[1]",onClick:P,children:[(0,E.jsx)("div",{className:jn("h-4 w-[0.5px] bg-neutral-200",{"opacity-0":void 0!==(i.fontUnderline??r.fontUnderline)})}),(0,E.jsx)(dr.CaretDown,{})]}),(0,E.jsx)(Zc,{className:"w-14",...D,children:[ri.SOLID,ri.DASHED,ri.DOTTED,ri.DOUBLE,ri.WAVY].map((e=>(0,E.jsx)(eu,{className:"relative",onClick:()=>{i.setFontUnderline(e),i.setFontStrikethrough(!1),B()},autoFocus:e===(i.fontUnderline??r.fontUnderline),children:(0,E.jsx)("div",{className:jn("!hover:underline absolute top-0 !underline",{"!hover:decoration-solid !decoration-solid":e===ri.SOLID,"!hover:decoration-dashed !decoration-dashed":e===ri.DASHED,"!hover:decoration-dotted !decoration-dotted":e===ri.DOTTED,"!hover:decoration-double !decoration-double":e===ri.DOUBLE,"!hover:decoration-wavy !decoration-wavy":e===ri.WAVY}),children:"                "})},e)))}),(0,E.jsx)("button",{title:"Strikethrough",className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":i.fontStrikethrough??r.fontStrikethrough}),onClick:()=>{i.fontStrikethrough??r.fontStrikethrough?i.setFontStrikethrough(!1):(i.setFontStrikethrough(!0),i.setFontUnderline(void 0))},children:(0,E.jsx)(dr.FontStrikethrough,{})}),(0,E.jsx)("button",{title:"Case"+(i.fontCase??r.fontCase?` (${i.fontCase??r.fontCase})`:""),className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-r-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":void 0!==(i.fontCase??r.fontCase)}),onClick:()=>{void 0===(i.fontCase??r.fontCase)?i.setFontCase(oi.UPPERCASE):i.setFontCase(void 0)},children:(0,E.jsx)(dr.FontCase,{className:"stroke-[0.5px]"})}),(0,E.jsxs)("button",{className:"text-2xs relative -ml-[1px] flex h-5 w-2.5 items-center justify-center rounded-br-sm rounded-tr-sm border border-l-0 border-neutral-400 bg-neutral-50 p-0 text-neutral-600 focus:z-[1]",onClick:j,children:[(0,E.jsx)("div",{className:jn("h-4 w-[0.5px] bg-neutral-200",{"opacity-0":void 0!==(i.fontCase??r.fontCase)})}),(0,E.jsx)(dr.CaretDown,{})]}),(0,E.jsx)(Zc,{className:"w-20",...U,children:[oi.LOWERCASE,oi.UPPERCASE,oi.CAPITALIZE].map((e=>(0,E.jsx)(eu,{onClick:()=>{i.setFontCase(e),M()},autoFocus:e===(i.fontCase??r.fontCase),children:(0,E.jsx)("div",{className:jn({lowercase:e===oi.LOWERCASE,uppercase:e===oi.UPPERCASE,capitalize:e===oi.CAPITALIZE}),children:e})},e)))})]}),(0,E.jsxs)("div",{className:"relative ml-2 flex h-5",children:[(0,E.jsx)("button",{title:"Align Left",className:jn("relative flex h-5 w-5 items-center justify-center rounded-bl-sm rounded-tl-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":(i.textAlign??r.textAlign)===ni.LEFT}),onClick:()=>i.setTextAlign(ni.LEFT),children:(0,E.jsx)(dr.TextAlignLeft,{})}),(0,E.jsx)("button",{title:"Align Center",className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":(i.textAlign??r.textAlign)===ni.CENTER}),onClick:()=>i.setTextAlign(ni.CENTER),children:(0,E.jsx)(dr.TextAlignCenter,{})}),(0,E.jsx)("button",{title:"Align Right",className:jn("relative -ml-[1px] flex h-5 w-5 items-center justify-center rounded-br-sm rounded-tr-sm border border-neutral-400 bg-neutral-50 p-0 text-neutral-700 focus:z-[1]",{"bg-neutral-200":(i.textAlign??r.textAlign)===ni.RIGHT}),onClick:()=>i.setTextAlign(ni.RIGHT),children:(0,E.jsx)(dr.TextAlignRight,{})})]})]}),(0,E.jsxs)("div",{className:"mt-2 flex w-full",children:[(0,E.jsx)("div",{className:"flex h-6 w-32 flex-shrink-0 items-center text-sm",children:"Colors:"}),(0,E.jsxs)("div",{className:"h-18",children:[(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"w-16 flex-shrink-0"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Normal"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Negative"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Zero"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center text-sm",children:"Error"})]}),(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-full w-16 flex-shrink-0 items-center text-sm",children:"Foreground:"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(ou,{color:i.normalForegroundColor??r.normalForegroundColor,defaultColor:r.normalForegroundColor,onChange:e=>i.setNormalForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(ou,{color:i.negativeForegroundColor??r.negativeForegroundColor,defaultColor:r.negativeForegroundColor,onChange:e=>i.setNegativeForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(ou,{color:i.zeroForegroundColor??r.zeroForegroundColor,defaultColor:r.zeroForegroundColor,onChange:e=>i.setZeroForegroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(ou,{color:i.errorForegroundColor??r.errorForegroundColor,defaultColor:r.errorForegroundColor,onChange:e=>i.setErrorForegroundColor(e)})})]}),(0,E.jsxs)("div",{className:"flex h-6",children:[(0,E.jsx)("div",{className:"flex h-full w-16 flex-shrink-0 items-center text-sm",children:"Background:"}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(ou,{color:i.normalBackgroundColor??r.normalBackgroundColor,defaultColor:r.normalBackgroundColor,onChange:e=>i.setNormalBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(ou,{color:i.negativeBackgroundColor??r.negativeBackgroundColor,defaultColor:r.negativeBackgroundColor,onChange:e=>i.setNegativeBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(ou,{color:i.zeroBackgroundColor??r.zeroBackgroundColor,defaultColor:r.zeroBackgroundColor,onChange:e=>i.setZeroBackgroundColor(e)})}),(0,E.jsx)("div",{className:"flex h-full w-12 flex-shrink-0 items-center justify-center",children:(0,E.jsx)(ou,{color:i.errorBackgroundColor??r.errorBackgroundColor,defaultColor:r.errorBackgroundColor,onChange:e=>i.setErrorBackgroundColor(e)})})]})]})]}),(0,E.jsxs)("div",{className:"mt-2 flex w-full",children:[(0,E.jsx)("div",{className:"flex h-6 w-32 flex-shrink-0 items-center text-sm"}),(0,E.jsxs)("div",{className:"w-80",children:[(0,E.jsx)("div",{className:"mb-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsx)(Xc,{compact:!0,disabled:i.isUsingDefaultStyling,onClick:()=>i.useDefaultStyling(),children:"Use Default Styling"})]})]})]})]})})]})})),Hp=(0,bt.PA)((e=>{const t=$c().alertService,{view:n}=e,o=n.editor,r=o.currentTab,i=[Xp.COLUMNS,Xp.VERTICAL_PIVOTS,Xp.HORIZONTAL_PIVOTS,Xp.SORTS,Xp.GENERAL_PROPERTIES,Xp.COLUMN_PROPERTIES];return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{className:"relative h-[calc(100%_-_40px)] w-full px-2 pt-8",children:[(0,E.jsx)("div",{className:"absolute top-0 flex h-9 w-[calc(100%_-_16px)] overflow-y-hidden pt-2",children:i.map((e=>(0,E.jsx)("button",{onClick:()=>o.setCurrentTab(e),className:jn("relative flex h-6 items-center justify-center whitespace-nowrap border border-b-0 border-l-0 border-neutral-300 px-2 first:border-l focus:z-10",{"-top-0.5 h-[27px] border-b-0 bg-white":e===r}),children:e},e)))}),(0,E.jsxs)("div",{className:"h-full w-full overflow-auto border border-neutral-300 bg-white",children:[r===Xp.COLUMNS&&(0,E.jsx)(Mp,{view:n}),r===Xp.VERTICAL_PIVOTS&&(0,E.jsx)(Up,{view:n}),r===Xp.HORIZONTAL_PIVOTS&&(0,E.jsx)(Gp,{view:n}),r===Xp.SORTS&&(0,E.jsx)(Pp,{view:n}),r===Xp.GENERAL_PROPERTIES&&(0,E.jsx)(Dp,{view:n}),r===Xp.COLUMN_PROPERTIES&&(0,E.jsx)(Vp,{view:n})]})]}),(0,E.jsxs)("div",{className:"flex h-10 items-center justify-end px-2",children:[(0,E.jsx)(Xc,{onClick:()=>o.display.close(),children:"Cancel"}),(0,E.jsx)(Xc,{className:"ml-2",disabled:o.finalizationState.isInProgress,onClick:()=>{o.applyChanges().catch((e=>t.alertUnhandledError(e)))},children:"Apply"}),(0,E.jsx)(Xc,{className:"ml-2",disabled:o.finalizationState.isInProgress,onClick:()=>{o.applyChanges({closeAfterApply:!0}).catch((e=>t.alertUnhandledError(e)))},children:"OK"})]})]})}));class Wp extends Ep{cloneColumn(e){return new Cp(e.name,e.type,e.direction,e.onChange)}get availableColumns(){return this._editor.columnProperties.columns.filter((e=>e.kind===ii.DIMENSION&&!Hi(this._editor.groupExtendColumns,e.name))).map((e=>new Cp(e.name,e.type,di.ASCENDING,(()=>this.onChange?.(this)))))}}class $p{_editor;selector;castColumns=[];constructor(e){(0,xe.Gn)(this,{castColumns:xe.sH.ref,pivotResultColumns:xe.EW,setCastColumns:xe.XI,applySnaphot:xe.XI}),this._editor=e,this.selector=new Wp(e,{onChange:e=>{this._editor.columnProperties.columns.forEach((t=>t.setPivotSortDirection(Hi(e.selectedColumns,t.name)?.direction)))}})}get pivotResultColumns(){return this.castColumns.filter((e=>Gi(e.name))).map(Wi)}setCastColumns(e){this.castColumns=e}propagateChanges(){this._editor.verticalPivots.adaptPropagatedChanges(),this._editor.sorts.adaptPropagatedChanges()}applySnaphot(e,t){this.selector.setSelectedColumns((e.data.pivot?.columns??[]).map((e=>new Cp(e.name,e.type,Hi(t.columns,e.name)?.pivotSortDirection??di.ASCENDING,(()=>this.selector.onChange?.(this.selector)))))),this.setCastColumns(e.data.pivot?.castColumns??[])}buildSnapshot(e,t){e.data.pivot=this.selector.selectedColumns.length?{columns:this.selector.selectedColumns.map(Wi),castColumns:this.castColumns.map(Wi)}:void 0,e.data.selectColumns=(0,tt.A)([...e.data.selectColumns,...this.selector.selectedColumns],(e=>e.name)).map(Wi)}}class zp{_editor;pivotLayout=new Tp;constructor(e){(0,xe.Gn)(this,{pivotLayout:xe.sH,applySnaphot:xe.XI}),this._editor=e}applySnaphot(e,t){this.pivotLayout=Tp.create(e.data.configuration.pivotLayout)}buildSnapshot(e,t){this.pivotLayout.setExpandedPaths(Zl(t.data.groupBy?.columns??[],this._editor.verticalPivots.selector.selectedColumns,this.pivotLayout.expandedPaths)),e.data.configuration={...e.data.configuration,pivotLayout:this.pivotLayout.serialize()}}}class Yp extends A{sourceInformation}var Xp;!function(e){e.GENERAL_PROPERTIES="General Properties",e.COLUMN_PROPERTIES="Column Properties",e.COLUMNS="Columns",e.VERTICAL_PIVOTS="Vertical Pivots",e.HORIZONTAL_PIVOTS="Horizontal Pivots",e.SORTS="Sorts"}(Xp||(Xp={}));class Kp extends sp{view;display;finalizationState=Ie.create();generalProperties;pivotLayout;columnProperties;columns;horizontalPivots;verticalPivots;sorts;currentTab=Xp.GENERAL_PROPERTIES;sourceColumns=[];leafExtendColumns=[];groupExtendColumns=[];constructor(e){super(e.engine,e.settingService,e.snapshotService),(0,xe.Gn)(this,{currentTab:xe.sH,setCurrentTab:xe.XI,sourceColumns:xe.sH.ref,leafExtendColumns:xe.sH.ref,groupExtendColumns:xe.sH.ref,applySnapshot:xe.XI,applyChanges:xe.XI}),this.view=e,this.display=this.view.dataCube.layoutService.newDisplay("Properties",(()=>(0,E.jsx)(Hp,{view:this.view}))),this.generalProperties=new Sp(this),this.pivotLayout=new zp(this),this.columnProperties=new Ap(this),this.columns=new xp(this),this.horizontalPivots=new $p(this),this.verticalPivots=new wp(this),this.sorts=new vp(this)}setCurrentTab(e){this.currentTab=e}async applySnapshot(e,t){this.sourceColumns=e.data.sourceColumns,this.leafExtendColumns=e.data.leafExtendedColumns,this.groupExtendColumns=e.data.groupExtendedColumns;const n=Xi.serialization.fromJson(e.data.configuration);this.generalProperties.applySnaphot(e,n),this.pivotLayout.applySnaphot(e,n),this.columnProperties.applySnaphot(e,n),this.columns.applySnaphot(e,n),this.horizontalPivots.applySnaphot(e,n),this.verticalPivots.applySnaphot(e,n),this.sorts.applySnaphot(e,n)}getSnapshotSubscriberName(){return"editor"}async applyChanges(e){this.finalizationState.inProgress();const t=P(this.getLatestSnapshot()),n=t.clone();if(this.generalProperties.buildSnapshot(n,t),this.pivotLayout.buildSnapshot(n,t),this.columnProperties.buildSnapshot(n,t),this.columns.buildSnapshot(n,t),this.horizontalPivots.buildSnapshot(n,t),this.verticalPivots.buildSnapshot(n,t),this.sorts.buildSnapshot(n,t),n.finalize(),n.hashCode!==t.hashCode){const e=this.view.taskService.newTask("Validating query..."),t=n.clone();t.data.pivot&&(t.data.pivot.castColumns=this.sorts.selector.availableColumns.filter((e=>!Hi(t.data.groupExtendedColumns,e.name))).map(Wi));const o="->",r=await this.view.engine.getPartialQueryCode(t,!0);try{await this.view.engine.getQueryCodeRelationReturnType(o+r,vl([],[this.view.source.query]),this.view.source)}catch(e){return w(e),void(e instanceof Yp?this.view.dataCube.alertService.alertCodeCheckError(e,r,o,{message:"Query Validation Failure: Can't safely apply changes. Check the query code below for more details.",text:`Error: ${e.message}`}):this.view.dataCube.alertService.alertError(e,{message:"Query Validation Failure: Can't safely apply changes.",text:`Error: ${e.message}`}))}finally{this.view.taskService.endTask(e),this.finalizationState.complete()}this.publishSnapshot(n)}else this.finalizationState.complete();e?.closeAfterApply&&this.display.close()}}function qp(e,t,n,o){const r=o.view.engine.getFilterOperation(t);return{name:`Add Filter: ${e.name} ${r.textLabel}${n.label?` ${n.label}`:""}`,action:()=>{o.addNewFilterCondition(new pp(o.filterTree.root,{name:e.name,type:e.type},r,n.value,void 0))}}}class Jp extends sp{view;constructor(e){super(e.engine,e.settingService,e.snapshotService),this.view=e}configuration=new Xi;menuBuilder;getColumnConfiguration(e){return Hi(this.configuration.columns,e)}filterTree={nodes:new Map};addNewFilterCondition(e){if(this.filterTree.root)if(this.filterTree.root.operation===ui.AND)this.filterTree.root.addChild(e),this.filterTree.nodes.set(e.uuid,e);else{const t=this.filterTree.root;if(1===t.children.length)t.operation=ui.AND,t.addChild(e),this.filterTree.nodes.set(e.uuid,e);else{const n=new gp(void 0,ui.AND,void 0);this.filterTree.nodes.set(n.uuid,n),this.filterTree.root=n,n.addChild(t),n.addChild(e),this.filterTree.nodes.set(e.uuid,e)}}else{const t=new gp(void 0,ui.AND,void 0);this.filterTree.nodes.set(t.uuid,t),this.filterTree.root=t,t.addChild(e),this.filterTree.nodes.set(e.uuid,e)}this.applyChanges()}clearFilters(){this.filterTree.root=void 0,this.filterTree.nodes=new Map,this.applyChanges()}selectColumns=[];leafExtendedColumns=[];groupExtendedColumns=[];pinColumn(e,t){const n=this.getColumnConfiguration(e);n&&(n.pinned=t,this.applyChanges())}rearrangeColumns(e){const t=e.map((e=>this.getColumnConfiguration(e))).filter(L);this.configuration.columns=[...t,...this.configuration.columns.filter((e=>!t.includes(e)))];const n=e.map((e=>Hi(this.selectColumns,e))).filter(L);this.selectColumns=[...n,...n.filter((e=>!n.includes(e)))],this.applyChanges()}removeAllPins(){this.configuration.columns.forEach((e=>e.pinned=void 0)),this.applyChanges()}showColumn(e,t){const n=this.getColumnConfiguration(e);n&&(n.hideFromView=!t,this.applyChanges())}horizontalPivotColumns=[];horizontalPivotCastColumns=[];get horizontalPivotResultColumns(){return this.horizontalPivotCastColumns.filter((e=>Gi(e.name))).map(Wi)}getHorizontalPivotableColumn(e){return Hi(this.configuration.columns.filter((e=>e.kind===ii.DIMENSION&&!Hi(this.groupExtendedColumns,e.name))),e)}setHorizontalPivotOnColumn(e){const t=this.getHorizontalPivotableColumn(e);t&&(this.horizontalPivotColumns=[t],this.applyChanges())}addHorizontalPivotOnColumn(e){const t=this.getHorizontalPivotableColumn(e);t&&(this.horizontalPivotColumns=[...this.horizontalPivotColumns,t],this.applyChanges())}clearAllHorizontalPivots(){this.horizontalPivotColumns=[],this.horizontalPivotCastColumns=[],this.applyChanges()}excludeColumnFromHorizontalPivot(e){if(Gi(e)){const t=Vi(e),n=this.getColumnConfiguration(t);n&&!n.excludedFromPivot&&(n.excludedFromPivot=!0,this.applyChanges())}}includeColumnInHorizontalPivot(e){const t=this.getColumnConfiguration(e);t?.excludedFromPivot&&(t.excludedFromPivot=!1,this.applyChanges())}verticalPivotColumns=[];getVerticalPivotableColumn(e){return Hi(this.configuration.columns.filter((e=>e.kind===ii.DIMENSION&&!Hi(this.groupExtendedColumns,e.name)&&!Hi(this.horizontalPivotColumns,e.name))),e)}setVerticalPivotOnColumn(e){const t=this.getVerticalPivotableColumn(e);t&&(this.verticalPivotColumns=[t],this.applyChanges())}addVerticalPivotOnColumn(e){const t=this.getVerticalPivotableColumn(e);t&&(this.verticalPivotColumns=[...this.verticalPivotColumns,t],this.applyChanges())}removeVerticalPivotOnColumn(e){this.verticalPivotColumns=this.verticalPivotColumns.filter((t=>t.name!==e)),this.applyChanges()}clearAllVerticalPivots(){this.verticalPivotColumns=[],this.applyChanges()}collapseAllPaths(){this.view.grid.client.collapseAll(),this.configuration.pivotLayout.expandedPaths=[],this.applyChanges()}expandPath(e){this.configuration.pivotLayout.expandedPaths=(0,Te.A)([...this.configuration.pivotLayout.expandedPaths,e]).sort(),this.applyChanges()}collapsePath(e){this.configuration.pivotLayout.expandedPaths=this.configuration.pivotLayout.expandedPaths.filter((t=>t!==e)),this.applyChanges()}sortColumns=[];getSortableColumn(e){if(e)return Hi([...this.horizontalPivotCastColumns.length?this.horizontalPivotCastColumns:this.selectColumns,...this.groupExtendedColumns],e)}setSortByColumn(e,t){const n=this.getSortableColumn(e);n&&(this.sortColumns=[{...n,direction:t}],this.applyChanges())}addSortByColumn(e,t){const n=this.getSortableColumn(e);n&&(this.sortColumns=[...this.sortColumns,{...n,direction:t}],this.applyChanges())}clearSortByColumn(e){this.sortColumns=this.sortColumns.filter((t=>t.name!==e)),this.applyChanges()}clearAllSorts(){this.sortColumns=[],this.applyChanges()}getSnapshotSubscriberName(){return"grid-controller"}async applySnapshot(e,t){this.configuration=Xi.serialization.fromJson(e.data.configuration),this.filterTree.nodes=new Map,this.filterTree.root=e.data.filter?hp(e.data.filter,void 0,this.filterTree.nodes,(e=>this.view.engine.getFilterOperation(e))):void 0,this.selectColumns=e.data.selectColumns,this.leafExtendedColumns=e.data.leafExtendedColumns,this.groupExtendedColumns=e.data.groupExtendedColumns,this.horizontalPivotColumns=e.data.pivot?.columns??[],this.horizontalPivotCastColumns=e.data.pivot?.castColumns??[],this.verticalPivotColumns=e.data.groupBy?.columns??[],this.sortColumns=e.data.sortColumns,this.menuBuilder=function(e){const t=e.view,n=t.dataCube,o=t.filter,r=t.editor,i=t.extend;return(a,s)=>{const l=a.column??void 0,c=l?.getColId(),u=e.getColumnConfiguration(c),d=c&&Gi(c)?e.getColumnConfiguration(Vi(c)):void 0,p=c&&Hi([...e.leafExtendedColumns,...e.groupExtendedColumns],c),g="value"in a?a.value:void 0,m=[{name:"Sort",subMenu:[...l&&c&&e.getSortableColumn(c)?[{name:"Ascending",action:()=>e.setSortByColumn(c,di.ASCENDING)},{name:"Descending",action:()=>e.setSortByColumn(c,di.DESCENDING)},{name:"Clear Sort",disabled:!Hi(e.sortColumns,c),action:()=>e.clearSortByColumn(c)},"separator",{name:"Add Ascending",disabled:Boolean(e.sortColumns.find((e=>e.name===c&&e.direction===di.ASCENDING))),action:()=>e.addSortByColumn(c,di.ASCENDING)},{name:"Add Descending",disabled:Boolean(e.sortColumns.find((e=>e.name===c&&e.direction===di.DESCENDING))),action:()=>e.addSortByColumn(c,di.DESCENDING)},"separator"]:[],{name:"Clear All Sorts",disabled:0===e.sortColumns.length,action:()=>e.clearAllSorts()}]}];let h=[];if(l&&void 0!==g){let t=u;if(l.getColId()===Nd&&e.verticalPivotColumns.length&&"node"in a&&a.node){const n=e.verticalPivotColumns[a.node.level];t=e.getColumnConfiguration(n?.name)}if(t)if(g!==Td){const n=function(e,t){const n=`${t.type===Hr.STRING?`'${e}'`:e}`;let o;switch(t.type){case Hr.STRING:o=e;break;case Hr.NUMBER:case Hr.DECIMAL:case Hr.FLOAT:case Hr.INTEGER:o=$(Number(e));break;case Hr.DATE:case Hr.STRICTDATE:case Hr.DATETIME:o=e;break;default:throw new I(`Can't filter on column with unsupported type '${t.type}'`)}return{label:n,value:{type:t.type,value:o}}}(g,t),o=function(e){switch(e.type){case Hr.STRING:return[ci.EQUAL,ci.NOT_EQUAL,ci.LESS_THAN,ci.LESS_THAN_OR_EQUAL,ci.GREATER_THAN,ci.GREATER_THAN_OR_EQUAL,ci.CONTAIN,ci.NOT_CONTAIN,ci.START_WITH,ci.NOT_START_WITH,ci.END_WITH,ci.NOT_END_WITH];case Hr.NUMBER:case Hr.DECIMAL:case Hr.FLOAT:case Hr.INTEGER:case Hr.DATE:case Hr.STRICTDATE:case Hr.DATETIME:return[ci.EQUAL,ci.NOT_EQUAL,ci.LESS_THAN,ci.LESS_THAN_OR_EQUAL,ci.GREATER_THAN,ci.GREATER_THAN_OR_EQUAL];default:return[]}}(t);if(o.length&&o.includes(ci.EQUAL)){const r=o.filter((e=>e!==ci.EQUAL));h=[qp(t,ci.EQUAL,n,e),r.length?{name:`More Filters on ${c}...`,subMenu:r.map((o=>qp(t,o,n,e)))}:void 0].filter(L)}}else h=[qp(t,ci.IS_NULL,{value:{type:ai.VOID}},e),qp(t,ci.IS_NOT_NULL,{value:{type:ai.VOID}},e)]}return[{name:"Export",subMenu:[{name:"HTML",menuItem:cp,cssClasses:["!opacity-100"],disabled:!0},{name:"Plain Text",menuItem:cp,cssClasses:["!opacity-100"],disabled:!0},{name:"PDF",menuItem:cp,cssClasses:["!opacity-100"],disabled:!0},{name:"Excel",action:()=>t.grid.exportEngine.exportFile(dd.EXCEL)},{name:"CSV",action:()=>t.grid.exportEngine.exportFile(dd.CSV)},"separator",{name:"DataCube Specification",menuItem:cp,cssClasses:["!opacity-100"],disabled:!0}]},{name:"Email",subMenu:[{name:"HTML",menuItem:cp,cssClasses:["!opacity-100"],disabled:!0},{name:"Plain Text",menuItem:cp,cssClasses:["!opacity-100"],disabled:!0},"separator",{name:"HTML Attachment",menuItem:cp,cssClasses:["!opacity-100"],disabled:!0},{name:"Plain Text Attachment",menuItem:cp,cssClasses:["!opacity-100"],disabled:!0},{name:"PDF Attachment",menuItem:cp,cssClasses:["!opacity-100"],disabled:!0},{name:"Excel Attachment",action:()=>{t.grid.exportEngine.exportEmail(dd.EXCEL).catch((e=>n.alertService.alertUnhandledError(e)))}},{name:"CSV Attachment",action:()=>{t.grid.exportEngine.exportEmail(dd.CSV).catch((e=>n.alertService.alertUnhandledError(e)))}},{name:"DataCube Specification Attachment",menuItem:cp,cssClasses:["!opacity-100"],disabled:!0}]},{name:"Copy",menuItem:cp,cssClasses:["!opacity-100"],subMenu:[{name:"Plain Text",menuItem:cp,cssClasses:["!opacity-100"],disabled:!0},{name:"Selected Rows as Plain Text",menuItem:cp,cssClasses:["!opacity-100"],disabled:!0},{name:"Selected Column as Plain Text",menuItem:cp,cssClasses:["!opacity-100"],disabled:!0}]},"separator",...m,{name:"Filter",subMenu:[...h,h.length?"separator":void 0,{name:"Filters...",action:()=>{o.display.open()}},{name:"Clear All Filters",action:()=>e.clearFilters()}].filter(L)},{name:"Pivot",subMenu:[...l&&c&&u?.kind===ii.DIMENSION&&e.getVerticalPivotableColumn(c)?[{name:`Vertical Pivot on ${c}`,action:()=>e.setVerticalPivotOnColumn(c)},{name:`Add Vertical Pivot on ${c}`,disabled:Boolean(Hi(e.verticalPivotColumns,c)),action:()=>e.addVerticalPivotOnColumn(c)},{name:`Remove Vertical Pivot on ${c}`,disabled:!Hi(e.verticalPivotColumns,c),action:()=>e.removeVerticalPivotOnColumn(c)},"separator"]:[],...l&&c&&u?.kind===ii.DIMENSION&&e.getHorizontalPivotableColumn(c)?[{name:`Horizontal Pivot on ${c}`,action:()=>e.setHorizontalPivotOnColumn(c)},{name:`Add Horizontal Pivot on ${c}`,disabled:Boolean(Hi(e.horizontalPivotColumns,c)),action:()=>e.addHorizontalPivotOnColumn(c)},"separator"]:[],...l&&c&&d?.kind===ii.MEASURE&&!d.excludedFromPivot&&0!==e.horizontalPivotColumns.length?[{name:`Exclude Column ${d.name} from Horizontal Pivot`,action:()=>e.excludeColumnFromHorizontalPivot(c)},"separator"]:[],...l&&c&&u?.kind===ii.MEASURE&&u.excludedFromPivot&&0!==e.horizontalPivotColumns.length?[{name:`Include Column ${c} in Horizontal Pivot`,action:()=>e.includeColumnInHorizontalPivot(c)},"separator"]:[],{name:"Clear All Vertical Pivots",disabled:0===e.verticalPivotColumns.length,action:()=>e.clearAllVerticalPivots()},{name:"Clear All Horizontal Pivots",disabled:0===e.horizontalPivotColumns.length,action:()=>e.clearAllHorizontalPivots()}]},{name:"Extended Columns",subMenu:[{name:"Add New Column...",action:()=>{i.openNewColumnEditor().catch((e=>n.alertService.alertUnhandledError(e)))}},...u&&c?[{name:`Extend Column ${c}...`,action:()=>{i.openNewColumnEditor(u).catch((e=>n.alertService.alertUnhandledError(e)))}}]:[],...p?["separator",{name:`Edit Column ${c}...`,action:()=>{i.openExistingColumnEditor(c).catch((e=>n.alertService.alertUnhandledError(e)))}},{name:`Delete Column ${c}`,action:()=>{i.deleteColumn(c).catch((e=>n.alertService.alertUnhandledError(e)))}}]:[]]},"separator",{name:"Resize",subMenu:[{name:"Auto-size to Fit Content",disabled:!l||!u||void 0!==u.fixedWidth,action:()=>a.api.autoSizeColumns([l?.getColId()].filter(L))},{name:"Minimize Column",disabled:!l||!u||void 0!==u.fixedWidth,action:()=>{l&&u&&a.api.setColumnWidths([{key:u.name,newWidth:u.minWidth??50}])}},"separator",{name:"Auto-size All Columns",action:()=>a.api.autoSizeColumns([...e.configuration.columns.filter((e=>void 0===e.fixedWidth&&e.isSelected&&!e.hideFromView)).map((e=>e.name)),...e.horizontalPivotCastColumns.map((t=>{if(Gi(t.name)){const n=Hi(e.configuration.columns,Vi(t.name));if(n&&void 0===n.fixedWidth&&n.isSelected&&!n.hideFromView)return t.name}})).filter(L)])},{name:"Minimize All Columns",action:()=>{a.api.setColumnWidths([...e.configuration.columns.filter((e=>void 0===e.fixedWidth)).map((e=>({key:e.name,newWidth:u?.minWidth??50}))),...e.horizontalPivotCastColumns.map((t=>{if(Gi(t.name)){const n=Hi(e.configuration.columns,Vi(t.name));if(n&&void 0===n.fixedWidth&&n.isSelected&&!n.hideFromView)return{key:t.name,newWidth:n.minWidth??50}}})).filter(L)])}},{name:"Size Grid to Fit Screen",action:()=>a.api.sizeColumnsToFit()}]},{name:"Pin",subMenu:[...u?[{name:"Pin Left",disabled:!l||l.isPinnedLeft(),checked:Boolean(l?.isPinnedLeft()),action:()=>e.pinColumn(c,pi.LEFT)},{name:"Pin Right",disabled:!l||l.isPinnedRight(),checked:Boolean(l?.isPinnedRight()),action:()=>e.pinColumn(c,pi.RIGHT)},{name:"Unpin",disabled:!l?.isPinned(),action:()=>e.pinColumn(c,void 0)},"separator"]:[],{name:"Remove All Pinnings",disabled:e.configuration.columns.every((e=>void 0===e.pinned)),action:()=>e.removeAllPins()}]},{name:"Hide",disabled:!u,action:()=>e.showColumn(c,!1)},...c===Nd?["separator",{name:"Collapse All",action:()=>{e.collapseAllPaths()}}]:[],"separator",{name:"Heatmap",menuItem:cp,cssClasses:["!opacity-100"],disabled:!l,subMenu:l?[{name:`Add to ${l.getColId()}`,menuItem:cp,cssClasses:["!opacity-100"],disabled:!0},{name:`Remove from ${l.getColId()}`,menuItem:cp,cssClasses:["!opacity-100"],disabled:!0}]:[]},{name:"Show Plot...",menuItem:cp,cssClasses:["!opacity-100"],disabled:!0},{name:"Show TreeMap...",menuItem:cp,cssClasses:["!opacity-100"],disabled:!0},"separator",{name:"Properties...",disabled:r.display.isOpen,action:()=>{l&&s&&(r.setCurrentTab(Xp.COLUMN_PROPERTIES),r.columnProperties.setSelectedColumnName(d?.name??u?.name??c)),r.display.open()}}]}}(this)}propagateChanges(e){this.verticalPivotColumns=this.verticalPivotColumns.filter((e=>!Hi(this.horizontalPivotColumns,e.name))),this.configuration.pivotLayout.expandedPaths=Zl(e.data.groupBy?.columns??[],this.verticalPivotColumns,this.configuration.pivotLayout.expandedPaths),this.configuration.columns.forEach((e=>{e.pivotSortDirection=Hi(this.horizontalPivotColumns,e.name)?e.pivotSortDirection??di.ASCENDING:void 0})),this.selectColumns=(0,tt.A)([...this.configuration.columns.filter((e=>e.isSelected&&!Hi(this.groupExtendedColumns,e.name))),...this.horizontalPivotColumns,...this.verticalPivotColumns],(e=>e.name)).map(Wi);const t=(0,tt.A)([...this.horizontalPivotColumns.length?[...this.horizontalPivotResultColumns,...[...this.configuration.columns.filter((e=>e.isSelected)),...this.verticalPivotColumns].filter((e=>this.getColumnConfiguration(e.name)?.kind===ii.DIMENSION&&!Hi(this.horizontalPivotColumns,e.name)))]:[...this.configuration.columns.filter((e=>e.isSelected)),...this.verticalPivotColumns],...this.groupExtendedColumns],(e=>e.name));this.sortColumns=this.sortColumns.filter((e=>Hi(t,e.name)))}applyChanges(){const e=P(this.getLatestSnapshot()),t=e.clone();this.propagateChanges(e),t.data.configuration=this.configuration.serialize(),t.data.filter=this.filterTree.root?mp(this.filterTree.root):void 0,t.data.selectColumns=this.selectColumns,t.data.pivot=this.horizontalPivotColumns.length?{columns:this.horizontalPivotColumns,castColumns:this.horizontalPivotCastColumns}:void 0,t.data.groupBy=this.verticalPivotColumns.length?{columns:this.verticalPivotColumns}:void 0,t.data.sortColumns=this.sortColumns,t.finalize(),t.hashCode!==e.hashCode&&this.publishSnapshot(t)}}function Qp(e){return new Promise(((t,n)=>{const o=new FileReader;o.onloadend=()=>{const e=o.result;if(U(e)){const n=e.split(",")[1];if(n)return void t(n)}n(new Error("Can't base64 encode blob data"))},o.onerror=e=>n(e),o.readAsDataURL(e)}))}const Zp="mixed_boundary",eg="alternative_boundary",tg=`\nFrom:\nTo:\nSubject:\nX-Unsent: 1\nContent-Type: multipart/mixed; boundary="${Zp}"\n\n--${Zp}\nContent-Type: multipart/alternative; boundary="${eg}"\n\n--${eg}\nContent-Type: text/plain; charset="UTF-8"\nContent-Transfer-Encoding: 7bit\n\n\n\n--${eg}\nContent-Type: text/html; charset="UTF-8"\nContent-Transfer-Encoding: 7bit\n\n<html><body><p></p><body></html>\n\n--${eg}--\n\n`;class ng{_grid;constructor(e){this._grid=e}generateFileName(){return`${this._grid.queryConfiguration.name} - ${(0,Xn.GP)(new Date,"EEE MMM dd yyyy HH_mm_ss")}`}exportFile(e){const t=this.generateFileName();switch(e){case dd.CSV:return void this._grid.client.exportDataAsCsv({fileName:`${t}.csv`});case dd.EXCEL:return void this._grid.client.exportDataAsExcel({fileName:`${t}.xlsx`})}}async exportEmail(e){const t=this.generateFileName();let n,o,r=t;switch(e){case dd.CSV:r=`${t}.csv`,o=ee.TEXT_CSV,n=await Qp(new Blob([this._grid.client.getDataAsCsv()??""],{type:ee.TEXT_CSV}));break;case dd.EXCEL:{r+=`${t}.xlsx`,o=ee.APPLICATION_XLSX;const e=this._grid.client.getDataAsExcel();let i;if(e instanceof Blob)i=e;else{if("string"!=typeof e)throw new x("Can't export Excel content");i=new Blob([e],{type:ee.APPLICATION_XLSX})}n=await Qp(i);break}default:throw new I(`Can't export email in format '${e}'`)}le(`${t}.eml`,`${tg.trimStart()}--${Zp}\nContent-Type: ${o}; name="${r}"\nContent-Transfer-Encoding: base64\nContent-Disposition: attachment; filename="${r}"\n\n${n}\n\n--${Zp}--`,ee.MESSAGE_RFC822)}}class og extends sp{_view;controller;exportEngine;_client;clientDataSource;queryConfiguration;rowLimit;isPaginationEnabled=!0;isCachingEnabled=!1;scrollHintText;debouncedAutoResizeColumns;constructor(e){super(e.engine,e.settingService,e.snapshotService),(0,xe.Gn)(this,{clientDataSource:xe.sH,queryConfiguration:xe.sH,rowLimit:xe.sH,isPaginationEnabled:xe.sH,setPaginationEnabled:xe.XI,isCachingEnabled:xe.sH,setCachingEnabled:xe.XI,scrollHintText:xe.sH,setScrollHintText:xe.XI,applySnapshot:xe.XI}),this._view=e,this.controller=new Jp(this._view),this.exportEngine=new ng(this),this.queryConfiguration=new Xi,this.clientDataSource=new Od(this,this._view)}setPaginationEnabled(e){this.isPaginationEnabled=e,this.clientDataSource=new Od(this,this._view),this.client.updateGridOptions({cacheBlockSize:e?500:_d})}async setCachingEnabled(e,t){if(e===this.isCachingEnabled)return;if(!1===e)return await this._view.disposeCache(),void(0,xe.h5)((()=>{this.isCachingEnabled=e,this.clientDataSource=new Od(this,this._view)}));const n=async()=>{await this._view.initializeCache(),this._view.processCacheState.hasSucceeded&&(0,xe.h5)((()=>{this.isCachingEnabled=e,this.clientDataSource=new Od(this,this._view)}))};this._settingService.getBooleanValue(du.GRID_CLIENT__SHOW_CACHE_PERFORMANCE_WARNING)&&!t?.suppressWarning?this._view.alertService.alert({message:"Confirm you want to proceed with caching",text:"When enabled, the source dataset will be cached locally in order to boost query performance. But depending on computational resource available to your environment, sometimes, caching can negatively impact the overall performance, and can even lead to crashes.\n\nOverall, caching is still an experimental feature where we only support queries with simple execution plans, certain queries might not work, in which case, you can abort by turning off caching.\n\nDo you still want to proceed?",type:uu.WARNING,actions:[{label:"Abort",handler:()=>{}},{label:"Proceed",handler:()=>{n().catch((e=>this._view.alertService.alertUnhandledError(e)))}},{label:"Dismiss Warning and Proceed",handler:()=>{this._view.settingService.updateValue(this._view.dataCube.api,du.GRID_CLIENT__SHOW_CACHE_PERFORMANCE_WARNING,!1),n().catch((e=>this._view.alertService.alertUnhandledError(e)))}}],windowConfig:{...fr,width:600,height:300,minWidth:300,minHeight:150}}):await n()}setScrollHintText(e){this.scrollHintText=e}get isClientConfigured(){return Boolean(this._client)}get client(){return P(this._client,"Grid client is not configured")}configureClient(e){this._client=e,this.debouncedAutoResizeColumns=(0,Bn.A)((()=>e?.autoSizeAllColumns()),100)}getSnapshotSubscriberName(){return"grid"}async applySnapshot(e,t){const n=Xi.serialization.fromJson(e.data.configuration);this.queryConfiguration=n,this.rowLimit=e.data.limit;const o=function(e,t,n){return{isServerSideGroupOpenByDefault:e=>{if(void 0!==t.initialExpandLevel&&t.initialExpandLevel>0&&e.rowNode.level<=(t.showRootAggregation?t.initialExpandLevel+1:t.initialExpandLevel)-1)return!0;const n=e.rowNode.getRoute()??[];if(!n.length)return!1;if(t.showRootAggregation&&1===n.length&&n[0]===bi)return!0;t.showRootAggregation&&n.shift();const o=n.join(hi);return!!t.pivotLayout.expandedPaths.includes(o)},rowClassRules:t.alternateRows?{[pd.HIGHLIGHT_ROW]:e=>e.rowIndex%(2*t.alternateRowsCount)>=t.alternateRowsCount}:{},onColumnPinned:e=>{if("api"!==e.source&&e.column){const t=e.column,o=t.getPinned();n.grid.controller.pinColumn(t.getColId(),null===o?void 0:o===xd.LEFT?pi.LEFT:pi.RIGHT)}},onColumnMoved:e=>{"api"!==e.source&&e.column&&e.finished&&n.grid.controller.rearrangeColumns((e.api.getColumnDefs()??[]).filter((e=>!("children"in e))).map((e=>e.colId??"")))},onColumnVisible:e=>{if("api"!==e.source&&e.column){const t=e.column,o=t.isVisible();n.grid.controller.showColumn(t.getColId(),o)}},onRowGroupOpened:e=>{if(e.event){const o=e.node.getRoute()??[];o.length&&t.showRootAggregation&&o.shift();const r=o.join(hi);if(!r)return;e.expanded?n.grid.controller.expandPath(r):n.grid.controller.collapsePath(r)}},onVirtualColumnsChanged:()=>{n.grid.debouncedAutoResizeColumns?.cancel(),n.grid.debouncedAutoResizeColumns?.()},columnDefs:Wd(e,t),autoGroupColumnDef:{colId:Nd,headerName:"",cellRendererParams:{suppressCount:!t.showLeafCount},...Dd(e,t),minWidth:200,sortable:!0,showRowGroup:!0,suppressSpanHeaderHeight:!0}}}(e,n,this._view);this._settingService.getBooleanValue(du.DEBUGGER__ENABLE_DEBUG_MODE)&&this._engine.debugProcess("New Grid Options",["Grid Options",o]),this.client.updateGridOptions({...o,rowBuffer:this._settingService.getNumericValue(du.GRID_CLIENT__ROW_BUFFER),purgeClosedRowNodes:this._settingService.getBooleanValue(du.GRID_CLIENT__PURGE_CLOSED_ROW_NODES),cacheBlockSize:this.isPaginationEnabled?500:_d}),this.client.setFilterModel({[Ad]:{type:"equals",filter:Rd(e,n)}})}}class rg extends sp{_view;name="";constructor(e){super(e.engine,e.settingService,e.snapshotService),(0,xe.Gn)(this,{name:xe.sH,applySnapshot:xe.XI}),this._view=e}getSnapshotSubscriberName(){return"info"}async applySnapshot(e,t){const n=e.data,o=Xi.serialization.fromJson(n.configuration);o.name!==this.name&&(this.name=o.name,this._view.dataCube.options?.onNameChanged?.({api:this._view.dataCube.api,name:this.name,source:this._view.source}))}}const ig=[{func:Zr.EXTEND,parameters:1,stopCondition:e=>ea(e.function,Zr.EXTEND)&&e.parameters[0]instanceof ta&&ea(e.parameters[0].function,Zr.OVER)},{func:Zr.FILTER,parameters:1},{func:Zr.SELECT,parameters:1},{func:Zr.GROUP_BY,parameters:2},{func:Zr.PIVOT,parameters:2},{func:Zr.CAST,parameters:1},{func:Zr.SORT,parameters:1},{func:Zr.LIMIT,parameters:1}];var ag;!function(e){e.LEAF_EXTEND="leaf_extend",e.FILTER="filter",e.SELECT="select",e.PIVOT__GROUP="pivot__group",e.PIVOT_SORT="pivot_sort",e.PIVOT="pivot",e.PIVOT_CAST="pivot_cast",e.GROUP_BY__GROUP="group_by__group",e.GROUP_BY="group_by",e.GROUP_BY_SORT="group_by_sort",e.GROUP_EXTEND="group_extend",e.SORT="sort",e.LIMIT="limit"}(ag||(ag={}));const sg=[{name:ag.LEAF_EXTEND,func:Zr.EXTEND,repeat:!0},{name:ag.FILTER,func:Zr.FILTER},{name:ag.SELECT,func:Zr.SELECT},{name:ag.PIVOT__GROUP,funcs:[{name:ag.PIVOT_SORT,func:Zr.SORT,required:!0},{name:ag.PIVOT,func:Zr.PIVOT,required:!0},{name:ag.PIVOT_CAST,func:Zr.CAST,required:!0}]},{name:ag.GROUP_BY__GROUP,funcs:[{name:ag.GROUP_BY,func:Zr.GROUP_BY,required:!0},{name:ag.GROUP_BY_SORT,func:Zr.SORT,required:!0}]},{name:ag.GROUP_EXTEND,func:Zr.EXTEND,repeat:!0},{name:ag.SORT,func:Zr.SORT},{name:ag.LIMIT,func:Zr.LIMIT}],lg=new RegExp(`^${sg.map((e=>"funcs"in e?`(${e.funcs.map((e=>`(?<${e.name}>${e.repeat?`(?:<${Zi(e.func)}>____\\d+)*`:`<${Zi(e.func)}>____\\d+`})${e.repeat||e.required?"":"?"}`)).join("")})${e.repeat?"*":e.required?"":"?"}`:`(?<${e.name}>${e.repeat?`(?:<${Zi(e.func)}>____\\d+)*`:`<${Zi(e.func)}>____\\d+`})${e.repeat||e.required?"":"?"}`)).join("")}$`);async function cg(e,t,n,o){const r=function(e){if(!(e instanceof ta))throw new Error("Can't process expression: expected a function expression");const t=[];let n=e;for(;n instanceof ta;){const e=ig.find((e=>ea(n.function,e.func)));if(!e)throw new Error(`Can't process expression: found unsupported function ${n.function}()`);if(!(n.parameters.length>e.parameters)){t.unshift(n);break}{if(e.stopCondition?.(n)){t.unshift(n);break}M(n.parameters.length===e.parameters+1,`Can't process ${Zi(n.function)}() expression: expected at most ${e.parameters+1} parameters provided, got ${n.parameters.length}`);const o=zl(n,0,ta,"Can't process expression: expected a sequence of function calls (e.g. x()->y()->z())");n.parameters=n.parameters.slice(1),t.unshift(n),n=o}}const o=t.map(((e,t)=>`<${Zi(e.function)}>____${t}`)).join("").match(lg);if(!o)throw new Error(`Can't process expression: unsupported function composition ${t.map((e=>`${Zi(e.function)}()`)).join("->")} (supported composition: ${sg.map((e=>"funcs"in e?`[${e.funcs.map((e=>`${Zi(e.func)}()`)).join("->")}]`:`${Zi(e.func)}()`)).join("->")})`);const r=e=>{const n=o.groups?.[e];if(!n)return;const r=n.match(/\<.*?\>____\d+/g);return r?.length?r.map((e=>{const n=Number(e.split("____")[1]);if(!(isNaN(n)||n>=t.length))return N(t,n)})).filter(L):void 0};return{leafExtend:r(ag.LEAF_EXTEND),select:r(ag.SELECT)?.[0],filter:r(ag.FILTER)?.[0],pivotSort:r(ag.PIVOT_SORT)?.[0],pivot:r(ag.PIVOT)?.[0],pivotCast:r(ag.PIVOT_CAST)?.[0],groupBy:r(ag.GROUP_BY)?.[0],groupBySort:r(ag.GROUP_BY_SORT)?.[0],groupExtend:r(ag.GROUP_EXTEND),sort:r(ag.SORT)?.[0],limit:r(ag.LIMIT)?.[0]}}(o.deserializeValueSpecification(o.serializeValueSpecification(e))),i=rd.create({}),a=i.data,s=new Map,l=(e,t)=>{if(s.has(e.name))throw new Error(t);s.set(e.name,e)},c=new Map,u=e=>Wi(P(c.get(e),`Can't find column '${e}'`)),d=e=>c.set(e.name,e);if(a.sourceColumns=t.columns,Ql(a.sourceColumns,(e=>`Can't process source: found duplicate source columns '${e}'`)),a.sourceColumns.forEach((e=>l(e,`Can't process source: another column with name '${e.name}' is already registered`))),a.sourceColumns.forEach((e=>d(e))),r.leafExtend?.length&&(a.leafExtendedColumns=await ec(r.leafExtend,Array.from(c.values()),o),Ql(a.leafExtendedColumns,(e=>`Can't process extend() expression: found duplicate extended columns '${e}'`)),a.leafExtendedColumns.forEach((e=>l(e,`Can't process extend() expression: another column with name '${e.name}' is already registered`))),a.leafExtendedColumns.forEach((e=>d(e)))),r.filter){const e=zl(r.filter,0,Ur,"Can't process filter() expression: expected parameter at index 0 to be a lambda expression");a.filter=tc(Kl(e,"Can't process filter() expression"),u,o.filterOperations)}r.select?(a.selectColumns=Xl(r.select,0).colSpecs.map((e=>u(e.name))),Ql(a.selectColumns,(e=>`Can't process select() expression: found duplicate select columns '${e}'`)),c.clear(),a.selectColumns.forEach((e=>d(e)))):c.clear();let p=[],g=[];if(r.pivot&&r.pivotCast&&r.pivotSort){const e=Xl(r.pivot,0).colSpecs.map((e=>u(e.name))),t=(m=(h=r.pivotCast,zl(h,0,Qa,`Can't process ${Zi(h.function)}: expected parameter at index 0 to be a generic type instance`)).genericType,D(m.typeArguments[0]?.rawType,ns,"Can't process generic type: failed to extract relation type")).columns.map((e=>({name:e.name,type:ql(e.genericType).fullPath})));a.pivot={columns:e,castColumns:t},p=Xl(r.pivot,1).colSpecs.map((e=>ac(e,u,o.aggregateOperations))),g=function(e,t,n){const o=lc(e,n),r=new Set(t.map((e=>e.name))),i=new Set(t.map((e=>e.name)));if(o.forEach((e=>{if(!r.has(e.name))throw new Error(`Can't process pivot() expression: sort column '${e.name}' must be a pivot column`);i.delete(e.name)})),0!==i.size)throw new Error(`Can't process pivot() expression: found unsorted pivot column(s) (${Array.from(i.values()).sort().map((e=>`'${e}'`)).join(", ")})`);return Ql(o,(e=>`Can't process pivot() expression: found duplicate sort columns '${e}'`)),o}(r.pivotSort,e,u),function(e,t,n){const o=e.columns,r=e.castColumns;Ql(o,(e=>`Can't process pivot() expression: found duplicate pivot columns '${e}'`)),Ql(t,(e=>`Can't process pivot() expression: found duplicate aggregate columns '${e}'`)),Ql(r,(e=>`Can't process pivot() expression: found duplicate cast columns '${e}'`)),t.forEach((e=>{if(Hi(o,e.name))throw new Error(`Can't process pivot() expression: pivot column '${e.name}' must not be aggregated on`)})),n.filter((e=>!(Hi(o,e.name)??Hi(t,e.name)))).forEach((e=>{if(!Hi(r,e.name))throw new Error(`Can't process pivot() expression: expected pivot group column '${e.name}' in cast columns`)})),o.forEach((e=>{if(Hi(r,e.name))throw new Error(`Can't process pivot() expression: expected pivot column '${e.name}' to not present in cast columns`)})),t.forEach((e=>{if(Hi(r,e.name))throw new Error(`Can't process pivot() expression: expected pivot aggregate column '${e.name}' to not present in cast columns`)})),r.filter((e=>Gi(e.name))).forEach((e=>{const n=Vi(e.name);if(!Hi(t,n))throw new Error(`Can't process pivot() expression: fail to match cast column '${e.name}' to a specified aggregate column`)}))}(a.pivot,p,Array.from(c.values())),c.clear(),t.forEach((e=>d(e)))}var m,h;let f=[],E=[];if(r.groupBy&&r.groupBySort){const e=Xl(r.groupBy,0).colSpecs.map((e=>u(e.name)));a.groupBy={columns:e},f=Xl(r.groupBy,1).colSpecs.map((e=>ac(e,u,o.aggregateOperations))),E=function(e,t,n){const o=lc(e,n),r=new Set(t.map((e=>e.name))),i=new Set(t.map((e=>e.name)));let a;if(o.forEach((e=>{if(!r.has(e.name))throw new Error(`Can't process groupBy() expression: sort column '${e.name}' must be a group column`);if(i.delete(e.name),a){if(e.direction!==a)throw new Error("Can't process groupBy() expression: all group columns must be sorted in the same direction")}else a=e.direction})),0!==i.size)throw new Error(`Can't process groupBy() expression: found unsorted group column(s) (${Array.from(i.values()).sort().map((e=>`'${e}'`)).join(", ")})`);return Ql(o,(e=>`Can't process groupBy() expression: found duplicate sort columns '${e}'`)),o}(r.groupBySort,e,u),function(e,t,n,o,r){const i=e.columns;if(Ql(i,(e=>`Can't process groupBy() expression: found duplicate group columns '${e}'`)),Ql(t,(e=>`Can't process groupBy() expression: found duplicate aggregate columns '${e}'`)),t.forEach((e=>{if(Hi(i,e.name))throw new Error(`Can't process groupBy() expression: group column '${e.name}' must not be aggregated on`)})),r.forEach((e=>{if(!(Hi(i,e.name)??Hi(t,e.name)))throw new Error(`Can't process groupBy() expression: column '${e.name}' is neither grouped nor aggregated on`)})),n){const e=new Map;t.filter((e=>Gi(e.name))).forEach((t=>{const n=Vi(t.name),o={...t,name:n},r=e.get(n);if(r){if(!(0,Ro.A)({...r,type:void 0},{...o,type:void 0}))throw new Error(`Can't process groupBy() expression: found conflicting aggregation specification for column '${n}'`)}else e.set(n,o)})),o.forEach((t=>{const n=e.get(t.name);if(!n)throw new Error(`Can't process groupBy() expression: column '${t.name}' is aggregated in pivot() expression but not in groupBy() expression`);if(!(0,Ro.A)({...n,type:void 0},{...t,type:void 0}))throw new Error(`Can't process groupBy() expression: found conflicting aggregation specification for column '${t.name}'`)}))}}(a.groupBy,f,a.pivot,p,Array.from(c.values()))}if(r.groupExtend?.length&&(a.groupExtendedColumns=await ec(r.groupExtend,Array.from(c.values()),o),Ql(a.groupExtendedColumns,(e=>`Can't process extend() expression: found duplicate extended columns '${e}'`)),a.groupExtendedColumns.forEach((e=>l(e,`Can't process extend() expression: another column with name '${e.name}' is already registered`))),a.groupExtendedColumns.forEach((e=>d(e)))),r.sort&&(a.sortColumns=lc(r.sort,u),Ql(a.sortColumns,(e=>`Can't process sort() expression: found duplicate sort columns '${e}'`))),r.limit){const e=zl(r.limit,0,la,"Can't process limit() expression: expected limit to be a non-negative integer value");a.limit=e.value}const C=function(e,t,n){const o=e.snapshot.data,r=t.configuration,i=ld(e);if(!r)return i;o.groupBy&&M(r.treeColumnSortDirection===i.treeColumnSortDirection,`Can't process configuration: tree column sort direction mismatch (expected: '${i.treeColumnSortDirection.toLowerCase()}', found: '${r.treeColumnSortDirection.toLowerCase()}')`);const a=r.columns,s=i.columns,l=new Set;a.forEach((e=>{if(l.has(e.name))throw new Error(`Can't process configuration: found duplicate columns '${e.name}'`);l.add(e.name)})),a.forEach((e=>{if(!Hi(s,e.name))throw new Error(`Can't process configuration: found extra column '${e.name}'`)})),s.forEach((e=>{if(!Hi(a,e.name))throw new Error(`Can't process configuration: missing column '${e.name}'`)}));const c=[...o.selectColumns,...o.groupExtendedColumns,...[...o.sourceColumns,...o.leafExtendedColumns].filter((e=>!Hi(o.selectColumns,e.name)))];return c.forEach(((e,t)=>{const n=N(a,t);M(e.name===n.name,`Can't process configuration: column ordering mismatch at index ${t} (expected: '${e.name}', found: '${n.name})', expected ordering: ${c.map((e=>e.name)).join(", ")}`)})),a.forEach((e=>{const t=P(Hi(s,e.name));if(M(e.type===t.type,`Can't process configuration: type mismatch for column '${e.name}' (expected: '${t.type}', found: '${e.type}')`),M(e.isSelected===t.isSelected,`Can't process configuration: selection mismatch for column '${e.name}' (expected: '${t.isSelected}', found: '${e.isSelected}')`),(Hi(o.pivot?.columns??[],e.name)??Hi(o.groupBy?.columns??[],e.name))&&M(e.kind===t.kind,`Can't process configuration: kind mismatch for column '${e.name}' (expected: '${t.kind.toLowerCase()}', found: '${e.kind.toLowerCase()}')`),(o.pivot??o.groupBy)&&(M(e.aggregateOperator===t.aggregateOperator,`Can't process configuration: aggregation operator mismatch for column '${e.name}' (expected: '${t.aggregateOperator}', found: '${e.aggregateOperator}')`),M(n.getAggregateOperation(e.aggregateOperator).isCompatibleWithParameterValues(e.aggregationParameters),`Can't process configuration: incompatible aggregation parameter values for column '${e.name}' (operator: '${e.aggregateOperator}')`)),o.pivot&&(M(e.excludedFromPivot===t.excludedFromPivot,`Can't process configuration: pivot exclusion mismatch for column '${e.name}' (expected: '${t.excludedFromPivot}', found: '${e.excludedFromPivot}')`),M(e.pivotSortDirection===t.pivotSortDirection,`Can't process configuration: pivot sort direction mismatch for column '${e.name}' (expected: '${t.pivotSortDirection?.toLowerCase()??"none"}', found: '${e.pivotSortDirection?.toLowerCase()??"none"}')`)),e.kind===ii.DIMENSION&&!e.excludedFromPivot)throw new Error(`Can't process configuration: column '${e.name}' is a dimension but not excluded from pivot`)})),r}({snapshot:i,groupByAggColumns:f,groupBySortColumns:E,pivotAggColumns:p,pivotSortColumns:g},n,o);return a.configuration=C.serialize(),i.finalize()}var ug=n(60720),dg=n(56148),pg=n(36868);const gg=(0,Lt.forwardRef)((function(e,t){return(0,E.jsx)(ug.x,{ref:t,...e})})),mg=(0,Lt.forwardRef)((function(e,t){return(0,E.jsx)(dg.l,{ref:t,...e})})),hg=(0,Lt.forwardRef)((function(e,t){const{inputRef:n,className:o,disabled:r,InputProps:{ref:i,endAdornment:a}={},ownerState:s,enableAccessibleFieldDOMStructure:l,clearable:c,onClear:u,error:d,focused:p,...g}=e,m=(0,Pc.A)(i,t);return(0,E.jsxs)("div",{style:{display:"flex",alignItems:"center",position:"relative"},ref:m,children:[(0,E.jsx)("input",{className:o,disabled:r,ref:n,...g}),a]})})),fg=(0,Lt.forwardRef)((function(e,t){const{slots:n,slotProps:o,onClear:r,...i}=e,a=(0,pg.c)({...i});return(0,E.jsx)(hg,{...a,ref:t})}));var Eg=n(15179),Cg=n(15891);const bg=(0,bt.PA)((0,Lt.forwardRef)((function(e,t){const{value:n,updateValue:o}=e,r=(0,Lt.useRef)(null),i=(0,Pc.A)(r,t);return(0,E.jsx)("input",{ref:i,className:"h-5 w-full flex-shrink-0 border border-neutral-400 px-1 text-sm disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",value:n,onKeyDown:e=>{"Escape"===e.code&&r.current?.select()},onChange:e=>{o(e.target.value)}})}))),vg="#ERR",_g=(0,bt.PA)((0,Lt.forwardRef)((function(e,t){const{value:n,updateValue:o,defaultValue:r=0,step:i=1}=e,[a,s]=(0,Lt.useState)(n.toString()),l=(0,Lt.useRef)(null),c=(0,Pc.A)(l,t),u=()=>{const e=Number(a);if(""===a)s(r.toString()),o(r);else if(isNaN(e)){if(a===vg)return void s(n.toString());try{const e=$((0,Cg._3)(a));s(e.toString()),o(e)}catch{s(vg),o(r)}}};return(0,Lt.useEffect)((()=>{s(n.toString())}),[n]),(0,E.jsxs)("div",{className:"relative h-5 w-full flex-shrink-0",children:[(0,E.jsx)("input",{ref:c,inputMode:"numeric",spellCheck:!1,type:"text",className:"h-full w-full border border-neutral-400 px-1 pr-5 text-sm disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300",value:a,onKeyDown:e=>{if("Enter"===e.code)u(),l.current?.focus();else if("Escape"===e.code)l.current?.select();else if("ArrowUp"===e.code){e.preventDefault();const t=n+i;s(t.toString()),o(t)}else if("ArrowDown"===e.code){e.preventDefault();const t=n-i;s(t.toString()),o(t)}},onChange:e=>{const t=e.target.value;s(t);const n=Number(t);!isNaN(n)&&t&&o(n)},onBlur:()=>u()}),(0,E.jsx)("div",{className:"absolute right-0 top-0 flex h-5 w-5 items-center justify-center",children:(0,E.jsx)("button",{className:"text-lg text-neutral-500 hover:text-neutral-600",title:"Evaluate Expression (Enter)",onClick:u,tabIndex:-1,children:(0,E.jsx)(dr.Calculate,{})})})]})}))),Tg=(0,Lt.forwardRef)((function(e,t){return(0,E.jsx)(fg,{...e,ref:t,className:"h-5 w-full flex-shrink-0 border border-neutral-400 px-1 pr-5 text-sm disabled:border-neutral-300 disabled:bg-neutral-50 disabled:text-neutral-300"})})),Ng=(0,bt.PA)((e=>{const{value:t,updateValue:n}=e,[o,r]=(0,Lt.useState)(null);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("button",{className:"absolute right-0 top-0 flex h-5 w-5 items-center justify-center",title:"Open Date Picker...",onClick:e=>{r(e.currentTarget)},tabIndex:-1,children:(0,E.jsx)(dr.Calendar,{className:"text-lg text-neutral-500 hover:text-neutral-600"})}),(0,E.jsx)(zn,{open:Boolean(o),anchorEl:o,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},onClose:()=>r(null),classes:{root:"data-cube-editor-date-calendar mt-0.5",paper:"shadow-md rounded-none border border-neutral-300"},children:(0,E.jsx)(gg,{autoFocus:!0,value:(0,Eg.H)(t),onChange:e=>{n((0,Xn.GP)(e,Jr)),r(null)}})})]})})),Sg=(0,bt.PA)((0,Lt.forwardRef)((function(e,t){const{value:n,updateValue:o}=e;return(0,E.jsx)(mg,{ref:t,value:(0,Eg.H)(n),format:Jr,slots:{field:Tg,openPickerButton:()=>(0,E.jsx)(Ng,{value:n,updateValue:o})},onChange:e=>{e&&o((0,Xn.GP)(e,Jr))}})}))),Ag=(0,bt.PA)((0,Lt.forwardRef)((function(e,t){const{value:n,updateValue:o,view:r}=e,i=r.filter,a=Hi(i.columns,n),[s,l,c,u]=jc();return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Qc,{ref:t,className:"relative mr-1 w-32",onClick:s,open:u,children:n}),(0,E.jsx)(Zc,{className:"w-32",...c,children:i.columns.filter((e=>a&&ji(a.type)===ji(e.type))).map((e=>(0,E.jsx)(eu,{onClick:()=>{o(e.name),l()},autoFocus:n===e.name,children:e.name},e.name)))})]})}))),yg=(0,bt.PA)((0,Lt.forwardRef)((function(e,t){const{value:n,updateValue:o,view:r}=e;switch(n.type){case Hr.STRING:return(0,E.jsx)(bg,{ref:t,value:n.value,updateValue:e=>o(e)});case Hr.NUMBER:case Hr.DECIMAL:case Hr.FLOAT:case Hr.INTEGER:return(0,E.jsx)(_g,{ref:t,value:n.value,updateValue:e=>o(e)});case Hr.DATE:case Hr.STRICTDATE:case Hr.DATETIME:return(0,E.jsx)(Sg,{ref:t,value:n.value,updateValue:e=>o(e)});case ai.COLUMN:return(0,E.jsx)(Ag,{ref:t,value:n.value,updateValue:e=>o(e),view:r});default:return null}})));function xg(){return(0,E.jsxs)("div",{className:"relative flex pl-2.5",children:[(0,E.jsx)("div",{className:"pointer-events-none absolute -left-2 h-0 w-0 border-[9px] border-neutral-600 border-b-transparent border-l-transparent border-t-transparent"}),(0,E.jsx)("div",{className:"mr-1 flex h-[18px] w-10 flex-shrink-0 items-center bg-neutral-600 pl-2 text-sm font-medium text-white",title:"Filter is inverted: select all but what matches.",children:"NOT"})]})}const Ig=(0,bt.PA)((e=>{const{className:t,node:n,view:o}=e,r=o.filter;return(0,E.jsxs)("div",{className:jn("flex h-3.5 w-14 flex-shrink-0 bg-neutral-100",t),children:[(0,E.jsx)("button",{className:"flex h-3.5 w-3.5 items-center justify-center rounded-bl-sm rounded-tl-sm border border-neutral-400 hover:bg-neutral-200",onClick:()=>r.addFilterNode(n),title:"Insert a new column filter, just after this filter.",children:(0,E.jsx)(dr.FilterAddOperator,{className:"stroke-[2.5] text-sm"})}),(0,E.jsx)("button",{className:"flex h-3.5 w-3.5 items-center justify-center border border-l-0 border-neutral-400 hover:bg-neutral-200",onClick:()=>r.removeFilterNode(n),title:"Remove this filter",children:(0,E.jsx)(dr.FilterRemoveOperator,{className:"stroke-[2.5] text-sm"})}),(0,E.jsx)("button",{className:"flex h-3.5 w-3.5 items-center justify-center border border-l-0 border-neutral-400 hover:bg-neutral-200",onClick:()=>r.layerFilterNode(n),title:"Put this filter in its own sub-group (and combine it with other filters).",children:(0,E.jsx)(dr.FilterGroupOperator,{className:"stroke-[2.5] text-sm"})}),(0,E.jsx)("button",{className:jn("flex h-3.5 w-3.5 items-center justify-center rounded-br-sm rounded-tr-sm border border-l-0 border-neutral-400 hover:bg-neutral-200",{"bg-neutral-600":n.not,"border-neutral-600":n.not,"text-white":n.not,"hover:bg-neutral-600":n.not}),onClick:()=>n.setNot(!n.not),title:n.not?"Turn off the NOT operator on this filter to select only what matches.":"Turn on the NOT operator on this filter to select all but what matches.",children:(0,E.jsx)(dr.FilterNotOperator,{className:"stroke-[3] text-xs"})})]})})),wg=(0,bt.PA)((e=>{const{node:t,level:n,view:o}=e,r=$c(),i=o.filter,a=t.parent,s=a?a.children.indexOf(t):void 0,l=(0,Lt.useRef)(null),[c,u,d,p]=jc(),[g,m,h,f]=jc(),C=(0,Lt.useCallback)((()=>l.current?.focus()),[]);return(0,E.jsxs)("div",{className:"group flex h-6 items-center",children:[(0,E.jsx)("div",{className:jn("z-1 absolute h-6 w-full bg-opacity-50 group-hover:bg-sky-100 group-hover:bg-opacity-50",{"bg-sky-50":t===i.selectedNode,"border-[0.5px] border-l-2 border-sky-200 border-l-sky-600":t===i.selectedNode}),onClick:()=>i.setSelectedNode(t)}),(0,E.jsx)("div",{style:{paddingLeft:36*n+10+60*(n-1)+"px"},className:"relative h-6 flex-shrink-0",onClick:()=>i.setSelectedNode(t),children:a&&(0,E.jsxs)("div",{className:"absolute top-0 flex h-6 items-center justify-end",style:{width:"22px",right:"8px"},children:[(0,E.jsx)("div",{className:jn("h-[1px] w-full flex-1 bg-neutral-200",{"bg-sky-600":a===i.selectedGroupNode})}),void 0!==s&&s>0&&(0,E.jsx)("div",{className:jn("flex h-6 items-center justify-center pl-1 text-xs text-neutral-600",{"text-sky-600":a===i.selectedGroupNode}),children:a.operation===ui.AND?"and":"or"})]})}),(0,E.jsx)(Ig,{className:"relative mr-1",node:t,view:o}),t.not&&(0,E.jsx)(xg,{}),(0,E.jsx)(Qc,{className:"relative mr-1 w-32",onClick:c,open:p,children:t.column.name}),(0,E.jsx)(Zc,{className:"w-32",...d,onClosed:C,children:i.columns.map((e=>(0,E.jsx)(eu,{onClick:()=>{if(e!==t.column){const n=t.operation.isCompatibleWithColumn(e)?t.operation:r.engine.filterOperations.filter((t=>t.isCompatibleWithColumn(e)))[0];n&&(t.setColumn(e),t.setOperation(n),t.setValue(n.generateDefaultValue(e)))}u()},autoFocus:t.column.name===e.name,children:e.name},e.name)))}),(0,E.jsx)(Qc,{className:"relative mr-1 w-24",onClick:g,open:f,children:t.operation.label}),(0,E.jsx)(Zc,{className:"w-24",...h,onClosed:C,children:r.engine.filterOperations.filter((e=>e.isCompatibleWithColumn(t.column))).map((e=>(0,E.jsx)(eu,{onClick:()=>{e!==t.operation&&e.isCompatibleWithColumn(t.column)&&(t.setOperation(e),t.setValue(e.generateDefaultValue(t.column))),m()},autoFocus:t.operation.operator===e.operator,children:e.label},e.operator)))}),(0,E.jsx)("div",{className:"relative w-32 flex-shrink-0",children:(0,E.jsx)(yg,{ref:l,value:t.value,updateValue:e=>t.updateValue(e),view:o})})]})})),kg=(0,bt.PA)((e=>{const{node:t,level:n,view:o}=e,r=o.filter,i=t.parent,a=i?i.children.indexOf(t):void 0,[s,l,c,u]=jc();return(0,E.jsxs)("div",{className:"group flex h-6 items-center",children:[(0,E.jsx)("div",{className:jn("z-1 absolute h-6 w-full bg-opacity-50 group-hover:bg-sky-100 group-hover:bg-opacity-50",{"bg-sky-50":t===r.selectedNode,"border-[0.5px] border-l-2 border-sky-200 border-l-sky-600":t===r.selectedNode}),onClick:()=>r.setSelectedNode(t)}),(0,E.jsx)("div",{style:{paddingLeft:36*n+10+(0!==n?60*(n-1):0)+"px"},className:"relative h-6 flex-shrink-0",onClick:()=>r.setSelectedNode(t),children:0!==n&&i&&(0,E.jsxs)("div",{className:"absolute top-0 flex h-6 items-center justify-end",style:{width:"22px",right:"8px"},children:[(0,E.jsx)("div",{className:jn("h-[1px] w-full flex-1 bg-neutral-200",{"bg-sky-600":i===r.selectedGroupNode})}),void 0!==a&&a>0&&(0,E.jsx)("div",{className:jn("flex h-6 items-center justify-center pl-1 text-xs text-neutral-600",{"text-sky-600":i===r.selectedGroupNode}),children:i.operation===ui.AND?"and":"or"})]})}),0!==n&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Ig,{className:"relative mr-1",node:t,view:o}),t.not&&(0,E.jsx)(xg,{})]}),(0,E.jsx)(Qc,{className:"relative w-14",onClick:s,open:u,children:t.operation===ui.AND?"All of":"Any of"}),(0,E.jsxs)(Zc,{className:"w-14",...c,children:[(0,E.jsx)(eu,{onClick:()=>{t.setOperation(ui.AND),l()},autoFocus:t.operation===ui.AND,children:"All of"}),(0,E.jsx)(eu,{onClick:()=>{t.setOperation(ui.OR),l()},autoFocus:t.operation===ui.OR,children:"Any of"})]})]})})),Rg=(0,bt.PA)((e=>{const{node:t,level:n,view:o}=e,r=o.filter;return(0,E.jsxs)("div",{className:"relative w-full",children:[(0,E.jsx)("div",{className:jn("pointer-events-none absolute h-full",{"border-[0.5px] border-sky-200 bg-sky-50":t===r.selectedGroupNode}),style:{marginLeft:36*n+10+60*n-2+"px",width:`calc(100% - ${36*n+10+60*n-4}px)`}}),(0,E.jsx)(kg,{node:t,level:n,view:o}),(0,E.jsxs)("div",{className:"relative",children:[(0,E.jsx)("div",{className:jn("pointer-events-none absolute z-10 h-[calc(100%_-_12px)] w-0 border-l border-neutral-200",{"border-sky-600":t===r.selectedGroupNode}),style:{marginLeft:36*n+10+6+60*n+"px"}}),t.children.map((e=>e instanceof pp?(0,E.jsx)(wg,{level:n+1,node:e,view:o},e.uuid):e instanceof gp?(0,E.jsx)(Rg,{level:n+1,node:e,view:o},e.uuid):null))]})]})})),Og=(0,bt.PA)((e=>{const{view:t}=e,n=t.filter;return(0,Lt.useEffect)((()=>{n.setSelectedNode(void 0)}),[n]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"relative h-[calc(100%_-_40px)] w-full px-2 pt-2",children:(0,E.jsx)("div",{className:"h-full w-full overflow-auto border border-neutral-300 bg-white",children:(0,E.jsx)("div",{className:"h-full w-full select-none p-2",children:(0,E.jsx)("div",{className:"flex h-full w-full",children:(0,E.jsxs)("div",{className:"relative flex h-full w-full overflow-auto rounded-sm border border-neutral-200",onClick:()=>n.setSelectedNode(void 0),children:[!n.tree.root&&(0,E.jsxs)("div",{className:"h-full w-full p-3",children:[(0,E.jsx)("div",{children:"No filter is specified. Click the button below to start."}),(0,E.jsx)(Xc,{onClick:()=>{n.initializeTree()},children:"Create New Filter"})]}),n.tree.root&&(0,E.jsxs)("div",{className:"flex flex-col py-1",onClick:e=>e.stopPropagation(),children:[(0,E.jsx)(Rg,{node:n.tree.root,level:0,view:t}),(0,E.jsx)("div",{className:"min-h-6 w-full flex-1",onClick:()=>n.setSelectedNode(void 0)})]})]})})})})}),(0,E.jsxs)("div",{className:"flex h-10 items-center justify-end px-2",children:[(0,E.jsx)(Xc,{onClick:()=>n.display.close(),children:"Cancel"}),(0,E.jsx)(Xc,{className:"ml-2",onClick:()=>n.applyChanges(),children:"Apply"}),(0,E.jsx)(Xc,{className:"ml-2",onClick:()=>{n.applyChanges(),n.display.close()},children:"OK"})]})]})}));class Lg extends sp{_view;display;tree;selectedNode;columns=[];constructor(e){super(e.engine,e.settingService,e.snapshotService),(0,xe.Gn)(this,{tree:xe.sH.ref,initializeTree:xe.XI,refreshTree:xe.XI,columns:xe.sH.struct,applySnapshot:xe.XI,selectedNode:xe.sH,selectedGroupNode:xe.EW,setSelectedNode:xe.XI,addFilterNode:xe.XI,removeFilterNode:xe.XI,layerFilterNode:xe.XI}),this._view=e,this.display=this._view.dataCube.layoutService.newDisplay("Filter",(()=>(0,E.jsx)(Og,{view:this._view})),{x:-50,y:50,width:600,height:400,minWidth:300,minHeight:200,center:!1}),this.tree={nodes:new Map}}initializeTree(){if(void 0===this.tree.root&&0===this.tree.nodes.size){const e=new gp(void 0,ui.AND,void 0);this.tree.nodes.set(e.uuid,e),this.tree.root=e;const t=this.generateNewFilterNode(e);t&&(e.addChild(t),this.tree.nodes.set(t.uuid,t)),this.refreshTree()}}refreshTree(){this.tree={...this.tree}}get selectedGroupNode(){return this.selectedNode instanceof gp?this.selectedNode:this.selectedNode?.parent}setSelectedNode(e){this.selectedNode=e}generateNewFilterNode(e){if(e instanceof pp)return new pp(void 0,e.column,e.operation,(0,up.A)(e.value),e.not);if(e instanceof gp&&0!==this.columns.length){const e=N(this.columns,0),t={name:e.name,type:e.type},n=this._engine.getFilterOperation(ci.EQUAL);return new pp(void 0,t,n,n.generateDefaultValue(t),void 0)}}addFilterNode(e){if(this.tree.root){const t=this.generateNewFilterNode(e),n=e.parent;n&&t&&(n.addChild(t,e instanceof pp?n.children.indexOf(e)+1:void 0),this.tree.nodes.set(t.uuid,t),this.refreshTree())}}removeFilterNode(e){if(this.tree.root){const t=e.parent;if(e!==this.tree.root&&t){let n=[e];for(;n.length;)n.forEach((e=>{e instanceof gp&&e.children.forEach((e=>{e.setParent(void 0)})),this.tree.nodes.delete(e.uuid)})),n=Array.from(this.tree.nodes.values()).filter((e=>e!==this.tree.root&&!e.parent));if(t.removeChild(e),this.tree.nodes.delete(e.uuid),1===t.children.length){if(t!==this.tree.root){const e=N(t.children,0),n=P(t.parent);t.removeChild(e);const o=n.children.indexOf(t);n.removeChild(t),this.tree.nodes.delete(t.uuid),n.addChild(e,o)}}else 0===t.children.length&&t===this.tree.root&&(this.tree.root=void 0,this.tree.nodes.delete(t.uuid));this.refreshTree(),this.selectedNode===e&&this.setSelectedNode(void 0)}}}layerFilterNode(e){if(this.tree.root){const t=this.generateNewFilterNode(e),n=e.parent;if(n&&t){const o=n.children.indexOf(e);n.removeChild(e);const r=new gp(void 0,ui.OR,void 0);r.addChild(e),r.addChild(t),n.addChild(r,o),this.tree.nodes.set(r.uuid,r),this.tree.nodes.set(t.uuid,t),this.refreshTree(),this.selectedNode===e&&this.setSelectedNode(r)}}}getSnapshotSubscriberName(){return"filter-editor"}async applySnapshot(e,t){const n=Xi.serialization.fromJson(e.data.configuration);this.columns=n.columns.filter((t=>!Hi(e.data.groupExtendedColumns,t.name))),this.tree.nodes=new Map,this.tree.root=e.data.filter?hp(e.data.filter,void 0,this.tree.nodes,(e=>this._engine.getFilterOperation(e))):void 0,this.setSelectedNode(void 0),this.refreshTree()}applyChanges(){const e=P(this.getLatestSnapshot()),t=e.clone();t.data.filter=this.tree.root?mp(this.tree.root):void 0,t.finalize(),t.hashCode!==e.hashCode&&this.publishSnapshot(t)}}var Fg;!function(e){e.LEAF_LEVEL_MEASURE="Leaf Level Measure",e.LEAF_LEVEL_DIMENSION="Leaf Level Dimension",e.GROUP_LEVEL="Group Level"}(Fg||(Fg={}));const Pg=(0,bt.PA)((e=>{const{state:t}=e,n=$c(),o=t.view,r=o.extend,i=(0,Lt.useRef)(null),a=t.isGroupLevel?Fg.GROUP_LEVEL:t.columnKind===ii.MEASURE?Fg.LEAF_LEVEL_MEASURE:Fg.LEAF_LEVEL_DIMENSION,[s,l,c,u]=jc(),[d,p,g,m]=jc(),h=(0,Lt.useRef)(void 0),f=(0,Lt.useRef)(null),[C,b]=(0,Lt.useState)(),v=(0,Lt.useMemo)((()=>(0,Bn.A)((()=>{t.getReturnType().catch((e=>n.alertService.alertUnhandledError(e)))}),500)),[t,n]);return(0,Lt.useEffect)((()=>{if(!C&&f.current){const e=f.current,n=document.getElementById(Nr),r=Tr.editor.create(e,{contextmenu:!1,copyWithSyntaxHighlighting:!1,fontSize:14,fontFamily:"Roboto Mono",fontLigatures:!0,fixedOverflowWidgets:!0,detectIndentation:!1,tabSize:2,"bracketPairColorization.enabled":!1,automaticLayout:!0,fontSize:12,language:Fc.PURE,theme:vc.GITHUB_LIGHT,wordSeparators:su,fixedOverflowWidgets:!0,...L(n)?{overflowWidgetsDomNode:n}:{}});h.current?.dispose(),h.current=Tr.languages.registerCompletionItemProvider(Fc.PURE,{triggerCharacters:[...su,"$"],provideCompletionItems:async(e,n,r)=>{let i=[];return e.uri===t.editorModelUri&&(i=i.concat(await async function(e,n,o,r,i){const a=n.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:e.lineNumber,endColumn:e.column}),s=n.getWordAtPosition(e);let l=[];try{l=await r.getQueryTypeahead((o??"")+a,t.buildExtendBaseQuery(),i)}catch{}return l.map((t=>({label:t.display,kind:Tr.languages.CompletionItemKind.Text,filterText:t.display,insertTextRules:Tr.languages.CompletionItemInsertTextRule.InsertAsSnippet,insertText:t.completion,range:{startLineNumber:e.lineNumber,startColumn:s?.startColumn??e.column,endLineNumber:e.lineNumber,endColumn:s?.endColumn??e.column}})))}(n,e,t.codePrefix,o.engine,o.source))),{suggestions:i}}}),r.setModel(t.editorModel),r.onDidChangeModelContent((()=>{const e=r.getValue();e!==t.code&&(t.code=e,t.clearError(),t.setReturnType(void 0),v.cancel(),v())})),r.focus(),r.setPosition({lineNumber:1,column:t.code.length+1}),t.setEditor(r),b(r)}}),[t,C,v,o]),(0,Lt.useEffect)((()=>()=>{C&&(C.dispose(),h.current?.dispose())}),[C]),(0,Lt.useEffect)((()=>{t.editor?.updateOptions({readOnly:t.finalizationState.isInProgress})}),[t,t.finalizationState.isInProgress]),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"h-[calc(100%_-_40px)] w-full px-2 pt-2",children:(0,E.jsx)("div",{className:"h-full w-full overflow-auto border border-neutral-300 bg-white",children:(0,E.jsxs)("div",{className:"h-full w-full select-none p-0",children:[(0,E.jsxs)("div",{className:"h-24 w-full p-2",children:[(0,E.jsxs)("div",{className:"mt-1 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-24 flex-shrink-0 items-center text-sm",children:"Column Name:"}),(0,E.jsx)(qc,{className:"w-32",ref:i,disabled:t.finalizationState.isInProgress,value:t.name,onChange:e=>{t.setName(e.target.value)}}),(0,E.jsx)("div",{className:"ml-0.5 flex h-5 w-5 flex-shrink-0 items-center justify-center text-lg",children:t.isNameValid?(0,E.jsx)(dr.CircleChecked,{className:"text-green-500"}):(0,E.jsx)(dr.CircledFailed,{className:"text-red-500"})})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsxs)("div",{className:"flex h-full w-24 flex-shrink-0 items-center text-sm",children:["Column Kind:",(0,E.jsx)(ru,{className:"ml-1",documentationKey:Bp.EXTENDED_COLUMN_LEVELS})]}),(0,E.jsx)(Qc,{className:"w-32",onClick:s,open:u,disabled:t.finalizationState.isInProgress,children:a}),(0,E.jsx)(Zc,{className:"w-32",...c,children:[Fg.LEAF_LEVEL_MEASURE,Fg.LEAF_LEVEL_DIMENSION,Fg.GROUP_LEVEL].map((e=>(0,E.jsx)(eu,{onClick:()=>{switch(e){case Fg.LEAF_LEVEL_MEASURE:t.setColumnKind(!1,ii.MEASURE);break;case Fg.LEAF_LEVEL_DIMENSION:t.setColumnKind(!1,ii.DIMENSION);break;case Fg.GROUP_LEVEL:t.setColumnKind(!0,void 0);break;default:return}t.clearError(),t.setReturnType(void 0),v.cancel(),v(),l()},autoFocus:e===a,children:e},e)))})]}),(0,E.jsxs)("div",{className:"mt-2 flex h-5 w-full items-center",children:[(0,E.jsx)("div",{className:"flex h-full w-24 flex-shrink-0 items-center text-sm",children:"Value Type:"}),(0,E.jsx)(Qc,{className:"w-32",onClick:d,open:m,disabled:t.finalizationState.isInProgress,children:t.expectedType}),(0,E.jsx)("div",{className:"ml-0.5 flex h-5 w-5 flex-shrink-0 items-center justify-center text-lg",children:t.validationState.isInProgress?(0,E.jsx)(dr.Loader,{className:"animate-spin stroke-2 text-neutral-400"}):t.returnType?t.isTypeValid?(0,E.jsx)(dr.CircleChecked,{className:"text-green-500"}):(0,E.jsx)(dr.CircledFailed,{className:"text-red-500"}):null}),(0,E.jsx)(Zc,{className:"w-32",...g,children:[gi.TEXT,gi.NUMBER,gi.DATE].map((e=>(0,E.jsx)(eu,{onClick:()=>{t.setExpectedType(e),p()},autoFocus:e===t.expectedType,children:e},e)))})]})]}),(0,E.jsx)("div",{className:"h-[calc(100%_-_96px)] w-full p-2 pt-1",children:(0,E.jsx)("div",{className:jn("relative h-full w-full border border-neutral-200",{"border-red-500":Boolean(t.codeError)}),children:(0,E.jsx)("div",{className:"absolute left-0 top-0 h-full w-full overflow-hidden",ref:f})})})]})})}),(0,E.jsxs)("div",{className:"flex h-10 items-center justify-end px-2",children:[(0,E.jsx)(Xc,{onClick:()=>t.close(),children:"Cancel"}),t instanceof jg&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Xc,{className:"ml-2",onClick:()=>{r.deleteColumn(t.initialData.name).catch((e=>n.alertService.alertUnhandledError(e)))},children:"Delete"}),(0,E.jsx)(Xc,{className:"ml-2",onClick:()=>{t.reset().catch((e=>n.alertService.alertUnhandledError(e)))},children:"Reset"})]}),(0,E.jsx)(Xc,{className:"ml-2",disabled:!t.isNameValid||!t.isTypeValid||t.validationState.isInProgress||t.finalizationState.isInProgress,onClick:()=>{t.applyChanges().catch((e=>n.alertService.alertUnhandledError(e)))},children:"OK"})]})]})}));class Bg{uuid=(0,i.A)();_manager;view;_name=`col_${this.uuid.replaceAll("-","_")}`;display;validationState=Ie.create();finalizationState=Ie.create();name;expectedType;isGroupLevel;columnKind;code="";codePrefix;codeSuffix;editor;editorModel;editorModelUri;codeError;returnType;constructor(e,t,n,o,r){(0,xe.Gn)(this,{name:xe.sH,setName:xe.XI,isNameValid:xe.EW,expectedType:xe.sH,setExpectedType:xe.XI,isTypeValid:xe.EW,isGroupLevel:xe.sH,columnKind:xe.sH,setColumnKind:xe.XI,editor:xe.sH.ref,setEditor:xe.XI,codeError:xe.sH.ref,showError:xe.XI,clearError:xe.XI,returnType:xe.sH,setReturnType:xe.XI}),this._manager=e,this.view=e.view,this.display=this.newDisplay(this),this.name=t,this.expectedType=n,this.isGroupLevel=o,this.columnKind=r,this.codePrefix=`->extend(~${this._name}:`,this.codeSuffix=")",this.editorModelUri=Tr.Uri.file(`/${this.uuid}.pure`),this.editorModel=Tr.editor.createModel("",Fc.PURE,this.editorModelUri)}async initialize(){this.code=await this.getInitialCode(),this.editorModel.setValue(this.code)}setName(e){this.name=e}get isNameValid(){return!this._manager.allColumnNames.includes(this.name)}setExpectedType(e){this.expectedType=e}get isTypeValid(){return void 0!==this.returnType&&this.expectedType===ji(this.returnType)}setColumnKind(e,t){this.isGroupLevel=e,this.columnKind=t}setEditor(e){this.editor=e}setReturnType(e){this.returnType=e}showError(e){this.codeError=e,e.sourceInformation&&Oc(this.editorModel,[{message:e.message,startLineNumber:e.sourceInformation.startLine,startColumn:e.sourceInformation.startColumn,endLineNumber:e.sourceInformation.endLine,endColumn:e.sourceInformation.endColumn}],this.uuid)}clearError(){this.codeError=void 0,Lc(this.uuid)}buildExtendBaseQuery(){const e=P(this._manager.getLatestSnapshot()).clone();return this.isGroupLevel||(e.data.leafExtendedColumns=[],e.data.selectColumns=[],e.data.filter=void 0,e.data.groupBy=void 0,e.data.pivot=void 0),e.data.groupExtendedColumns=[],e.data.sortColumns=[],e.data.limit=void 0,vl([],[Ml(e,this.view.source,this.view.engine,{skipExecutionContext:!0})])}async getReturnType(){this.validationState.inProgress(),this.clearError(),this.setReturnType(void 0);try{const e=await this.view.engine.getQueryCodeRelationReturnType(this.codePrefix+this.code+this.codeSuffix,this.buildExtendBaseQuery(),this.view.source);let t=Hi(e.columns,this._name)?.type;return t=t&&Ui(t)?t:void 0,this.setReturnType(t),t}catch(e){if(w(e),e instanceof Yp){if(this.validationState.fail(),e.sourceInformation){e.sourceInformation.startColumn-=1===e.sourceInformation.startLine?this.codePrefix.length:0,e.sourceInformation.endColumn-=1===e.sourceInformation.endLine?this.codePrefix.length:0;const t=this.editorModel.getFullModelRange();(e.sourceInformation.startLine<1||1===e.sourceInformation.startLine&&e.sourceInformation.startColumn<1||e.sourceInformation.endLine>t.endLineNumber||e.sourceInformation.endLine===t.endLineNumber&&e.sourceInformation.endColumn>t.endColumn)&&(e.sourceInformation.startColumn=t.startColumn,e.sourceInformation.startLine=t.startLineNumber,e.sourceInformation.endColumn=t.endColumn,e.sourceInformation.endLine=t.endLineNumber)}return void this.showError(e)}this.view.dataCube.alertService.alertError(e,{message:`Expression Validation Failure: ${e.message}`})}finally{this.validationState.complete()}}close(){this.editorModel.dispose(),this.editor?.dispose(),this.display.close()}}class Dg extends Bg{initialCode;constructor(e,t){super(e,`col_${e.allColumnNames.length+1}`,t?ji(t.type):gi.NUMBER,!1,t?t.kind:ii.MEASURE),this.initialCode=t?`${fi}|$${fi}.${t.name}`:`${fi}|`}async getInitialCode(){return this.initialCode}newDisplay(e){return this.view.dataCube.layoutService.newDisplay("Add New Column",(()=>(0,E.jsx)(Pg,{state:this})),{x:50,y:50,width:500,height:300,minWidth:300,minHeight:200,center:!1})}async applyChanges(){if(!this.validationState.hasCompleted||!this.isNameValid||!this.isTypeValid)return;let e,t;this.finalizationState.inProgress();try{[e,t]=await Promise.all([this.view.engine.parseValueSpecification(this.code,!1),this.getReturnType()])}catch(e){return w(e),void this.view.dataCube.alertService.alertError(e,{message:`Expression Validation Failure: ${e.message}`})}finally{this.finalizationState.complete()}e instanceof Ur?t?(this._manager.addNewColumn({name:this.name,type:t,mapFn:this.view.engine.serializeValueSpecification(e)},this.isGroupLevel,this.columnKind,this),this.close()):this.view.dataCube.alertService.alertError(new Error,{message:"Expression Validation Failure: Can't compute expression return type."}):this.view.dataCube.alertService.alertError(new Error,{message:"Expression Validation Failure: Expression must be a lambda."})}}class jg extends Bg{initialData;constructor(e,t,n,o){super(e,t.name,ji(t.type),o,n),(0,xe.Gn)(this,{initialData:xe.sH.ref,isNameValid:xe.$Z}),this.initialData={name:t.name,type:t.type,kind:n,isGroupLevel:o,mapFn:t.mapFn}}get isNameValid(){return!this._manager.allColumnNames.filter((e=>e!==this.initialData.name)).includes(this.name)}async getInitialCode(){return this.view.engine.getValueSpecificationCode(this.view.engine.deserializeValueSpecification(this.initialData.mapFn),!0)}newDisplay(e){return this.view.dataCube.layoutService.newDisplay("Edit Column",(()=>(0,E.jsx)(Pg,{state:this})),{x:50,y:50,width:500,height:300,minWidth:300,minHeight:200,center:!1})}async reset(){this.setName(this.initialData.name),this.setExpectedType(ji(this.initialData.type)),this.setColumnKind(this.initialData.isGroupLevel,this.initialData.kind),await this.initialize(),await this.getReturnType()}async applyChanges(){if(!this.validationState.hasCompleted||!this.isNameValid||!this.isTypeValid)return;let e,t;this.finalizationState.inProgress();try{[e,t]=await Promise.all([this.view.engine.parseValueSpecification(this.code,!1),this.getReturnType()])}catch(e){return w(e),void this.view.dataCube.alertService.alertError(e,{message:`Expression Validation Failure: ${e.message}`})}finally{this.finalizationState.complete()}e instanceof Ur?t?await this._manager.updateColumn(this.initialData.name,{name:this.name,type:t,mapFn:this.view.engine.serializeValueSpecification(e)},this.isGroupLevel,this.columnKind):this.view.dataCube.alertService.alertError(new Error,{message:"Expression Validation Failure: Can't compute expression return type."}):this.view.dataCube.alertService.alertError(new Error,{message:"Expression Validation Failure: Expression must be a lambda."})}}class Mg{name;type;data;constructor(e){this.name=e.name,this.type=e.type,this.data=e}}class Ug extends sp{view;columnConfigurations=[];selectColumns=[];sourceColumns=[];horizontalPivotCastColumns=[];leafExtendedColumns=[];groupExtendedColumns=[];newColumnEditors=[];existingColumnEditors=[];constructor(e){super(e.engine,e.settingService,e.snapshotService),(0,xe.Gn)(this,{sourceColumns:xe.sH.ref,horizontalPivotCastColumns:xe.sH.ref,leafExtendedColumns:xe.sH,setLeafExtendedColumns:xe.XI,groupExtendedColumns:xe.sH,setGroupExtendedColumns:xe.XI,allColumnNames:xe.EW,addNewColumn:xe.XI,updateColumn:xe.XI,deleteColumn:xe.XI,applySnapshot:xe.XI}),this.view=e}setLeafExtendedColumns(e){this.leafExtendedColumns=e}setGroupExtendedColumns(e){this.groupExtendedColumns=e}get allColumnNames(){return(0,tt.A)([...this.sourceColumns,...this.leafExtendedColumns,...this.groupExtendedColumns,...this.horizontalPivotCastColumns],(e=>e.name)).map((e=>e.name))}async openNewColumnEditor(e){const t=new Dg(this,e);await t.initialize(),this.newColumnEditors.push(t),t.display.open()}async openExistingColumnEditor(e){const t=this.existingColumnEditors.find((t=>t.initialData.name===e));if(t)return void t.display.open();if(!Hi(this.leafExtendedColumns,e)&&!Hi(this.groupExtendedColumns,e))return;const n=new jg(this,P(Hi(this.leafExtendedColumns,e)??Hi(this.groupExtendedColumns,e)).data,P(Hi(this.columnConfigurations,e)).kind,Boolean(Hi(this.groupExtendedColumns,e)));await n.initialize(),this.existingColumnEditors.push(n),n.display.open()}addNewColumn(e,t,n,o){const r=sd(e);n&&(r.kind=n,r.excludedFromPivot=n===ii.DIMENSION),this.columnConfigurations.push(r),S(this.newColumnEditors,o),t?this.groupExtendedColumns.push(new Mg(e)):(this.leafExtendedColumns.push(new Mg(e)),this.selectColumns.push(Wi(e))),this.applyChanges()}async updateColumn(e,t,n,o){if(!Hi(this.leafExtendedColumns,e)&&!Hi(this.groupExtendedColumns,e))return;const r=P(Hi(this.columnConfigurations,e)),i=this.view.taskService.newTask("Checking column update..."),a=P(this.getLatestSnapshot()).clone();a.data.leafExtendedColumns=a.data.leafExtendedColumns.filter((t=>t.name!==e)),a.data.groupExtendedColumns=a.data.groupExtendedColumns.filter((t=>t.name!==e)),a.data.selectColumns=a.data.selectColumns.filter((t=>t.name!==e)),n?a.data.groupExtendedColumns.push(t):(a.data.leafExtendedColumns.push(t),r.isSelected&&a.data.selectColumns.push(Wi(t))),a.data.configuration={...a.data.configuration,columns:this.columnConfigurations.map((n=>n.name===e?{...n.serialize(),...Wi(t),kind:o}:n.serialize()))};const s=await this._engine.getPartialQueryCode(a,!0);try{await this._engine.getQueryCodeRelationReturnType("->"+s,vl([],[this.view.source.query]),this.view.source)}catch(t){return w(t),void(t instanceof Yp?this.view.dataCube.alertService.alertCodeCheckError(t,s,"->",{message:`Column Update Check Failure: Can't safely update column '${e}'. Check the query code below for more details.`,text:`Error: ${t.message}`}):this.view.dataCube.alertService.alertError(t,{message:`Column Update Check Failure: Can't safely update column '${e}'.`,text:`Error: ${t.message}`}))}finally{this.view.taskService.endTask(i)}this.setLeafExtendedColumns(this.leafExtendedColumns.filter((t=>t.name!==e))),this.setGroupExtendedColumns(this.groupExtendedColumns.filter((t=>t.name!==e))),this.selectColumns=this.selectColumns.filter((t=>t.name!==e)),n?this.setGroupExtendedColumns([...this.groupExtendedColumns,new Mg(t)]):(this.setLeafExtendedColumns([...this.leafExtendedColumns,new Mg(t)]),r.isSelected&&this.selectColumns.push(Wi(t))),this.columnConfigurations=this.columnConfigurations.map((n=>(n.name===e&&(n.kind=o??ji(t.type)===gi.NUMBER?ii.MEASURE:ii.DIMENSION,n.name=t.name,n.type=t.type,n.excludedFromPivot=n.kind===ii.DIMENSION),n))),this.existingColumnEditors.filter((t=>t.initialData.name===e)).forEach((e=>e.display.close())),this.existingColumnEditors=this.existingColumnEditors.filter((t=>t.initialData.name!==e)),this.applyChanges()}async deleteColumn(e){if(!Hi(this.leafExtendedColumns,e)&&!Hi(this.groupExtendedColumns,e))return;const t=this.view.taskService.newTask("Checking column deletion..."),n=P(this.getLatestSnapshot()).clone();n.data.leafExtendedColumns=n.data.leafExtendedColumns.filter((t=>t.name!==e)),n.data.groupExtendedColumns=n.data.groupExtendedColumns.filter((t=>t.name!==e)),n.data.selectColumns=n.data.selectColumns.filter((t=>t.name!==e)),n.data.configuration={...n.data.configuration,columns:this.columnConfigurations.filter((t=>t.name!==e)).map((e=>e.serialize()))};const o=await this._engine.getPartialQueryCode(n,!0);try{await this._engine.getQueryCodeRelationReturnType("->"+o,vl([],[this.view.source.query]),this.view.source)}catch(t){return w(t),void(t instanceof Yp?this.view.dataCube.alertService.alertCodeCheckError(t,o,"->",{message:`Column Delete Check Failure: Can't safely delete column '${e}'. Check the query code below for more details.`,text:`Error: ${t.message}`}):this.view.dataCube.alertService.alertError(t,{message:`Column Delete Check Failure: Can't safely delete column '${e}'.`,text:`Error: ${t.message}`}))}finally{this.view.taskService.endTask(t)}this.setLeafExtendedColumns(this.leafExtendedColumns.filter((t=>t.name!==e))),this.setGroupExtendedColumns(this.groupExtendedColumns.filter((t=>t.name!==e))),this.columnConfigurations=this.columnConfigurations.filter((t=>t.name!==e)),this.selectColumns=this.selectColumns.filter((t=>t.name!==e)),this.existingColumnEditors.filter((t=>t.initialData.name===e)).forEach((e=>e.display.close())),this.existingColumnEditors=this.existingColumnEditors.filter((t=>t.initialData.name!==e)),this.applyChanges()}getSnapshotSubscriberName(){return"extend-manager"}async applySnapshot(e,t){const n=Xi.serialization.fromJson(e.data.configuration);this.columnConfigurations=n.columns,this.sourceColumns=e.data.sourceColumns,this.leafExtendedColumns=e.data.leafExtendedColumns.map((e=>new Mg(e))),this.groupExtendedColumns=e.data.groupExtendedColumns.map((e=>new Mg(e))),this.horizontalPivotCastColumns=e.data.pivot?.castColumns??[],this.selectColumns=e.data.selectColumns.map(Wi),[...this.newColumnEditors,...this.existingColumnEditors].forEach((e=>{e.getReturnType().catch((()=>{}))}))}applyChanges(){const e=P(this.getLatestSnapshot()),t=e.clone();t.data.configuration={...e.data.configuration,columns:this.columnConfigurations.map((e=>e.serialize()))},t.data.leafExtendedColumns=this.leafExtendedColumns.map((e=>e.data)),t.data.groupExtendedColumns=this.groupExtendedColumns.map((e=>e.data)),t.data.selectColumns=[...this.selectColumns],t.finalize(),t.hashCode!==e.hashCode&&this.publishSnapshot(t)}}class Gg{uuid=(0,i.A)();description;startTime=Date.now();ownerId;endTime;constructor(e,t){this.description=e,this.ownerId=t}end(){this.endTime=Date.now()}}class Vg{tasks=[];constructor(){(0,xe.Gn)(this,{tasks:xe.sH,newTask:xe.XI,endTask:xe.XI,endTasks:xe.XI})}newTask(e,t){const n=new Gg(e,t);return this.tasks.push(n),n}endTask(e){return this.tasks.find((t=>t.uuid===e.uuid))&&(this.tasks=this.tasks.filter((t=>t.uuid!==e.uuid)),e.end()),e}endTasks(e){this.tasks=this.tasks.filter((t=>!e.find((e=>e.uuid===t.uuid)))),e.forEach((e=>e.end()))}}class Hg{uuid=(0,i.A)();manager;constructor(e){(0,xe.Gn)(this,{tasks:xe.EW}),this.manager=e??new Vg}get tasks(){return this.manager.tasks.filter((e=>e.ownerId===this.uuid))}newTask(e){return this.manager.newTask(e,this.uuid)}endTask(e){return this.manager.endTask(e)}dispose(){this.manager.endTasks(this.tasks)}}class Wg extends Vl{model;runtime;db;schema;table;count}class $g{dataCube;engine;logService;taskService;layoutService;alertService;settingService;snapshotService;info;editor;grid;filter;extend;initializeState=Ie.create();processCacheState=Ie.create();_source;_initialSource;_initialSpecification;constructor(e){this.dataCube=e,this.engine=e.engine,this.logService=e.logService,this.taskService=new Hg(e.taskService.manager),this.layoutService=e.layoutService,this.alertService=e.alertService,this.settingService=e.settingService,this.snapshotService=new lp(this.logService,this.settingService),this.info=new rg(this),this.editor=new Kp(this),this.grid=new og(this),this.filter=new Lg(this),this.extend=new Ug(this)}getInitialSource(){return this._initialSource}async generateSpecification(){const e=this.snapshotService.getCurrentSnapshot(),t=new ad;return t.source=this.dataCube.specification.source,t.configuration=Xi.serialization.fromJson(e.data.configuration),t.query=await this.engine.getPartialQueryCode(e),t}get source(){if(!this._source)throw new x("Source is not initialized");return this._source}updateName(e){const t=this.snapshotService.getCurrentSnapshot(),n=t.clone(),o=Xi.serialization.fromJson(t.data.configuration);o.name!==e&&(o.name=e,n.data.configuration=o.serialize(),n.finalize(),n.hashCode!==t.hashCode&&this.snapshotService.broadcastSnapshot(n))}async applySpecification(e){const t=this.taskService.newTask("Applying specification...");try{if(!this._initialSource||!this._initialSpecification)throw new Error("DataCube is not initialized");if(!(0,Ro.A)(e.source,this._initialSpecification.source))throw new Error("Can't apply specification with different source");const t=await this.engine.parseValueSpecification(e.query),n=await cg(t,this._initialSource,e,this.engine);n.finalize(),n.hashCode!==this.snapshotService.getCurrentSnapshot().hashCode&&this.snapshotService.broadcastSnapshot(n)}catch(e){w(e),this.alertService.alertError(e,{message:`Specification Application Failure: ${e.message}`}),this.initializeState.fail()}finally{this.taskService.endTask(t)}}async initializeCache(){this.processCacheState.inProgress();const e=this.taskService.newTask("Initializing cache...");try{const e=await this.engine.initializeCache(this.source,{debug:this.settingService.getBooleanValue(du.DEBUGGER__ENABLE_DEBUG_MODE),clientVersion:this.settingService.getBooleanValue(du.DEBUGGER__USE_DEV_CLIENT_PROTOCOL_VERSION)?Ul.VX_X_X:void 0});e&&(this._source=e),this.processCacheState.pass()}catch(e){w(e),this.alertService.alertError(e,{message:`Cache Processing Failure: ${e.message}`}),this._source=this._initialSource,this.processCacheState.fail()}finally{this.taskService.endTask(e)}}async disposeCache(){if(!(this._source instanceof Wg))return;const e=this._source;this._source=this._initialSource,this.processCacheState.inProgress();const t=this.taskService.newTask("Disposing cache...");try{await this.engine.disposeCache(e)}catch(e){w(e),this.alertService.alertError(e,{message:`Cache Processing Failure: ${e.message}`})}finally{this.processCacheState.complete(),this.taskService.endTask(t)}}async initialize(e){this.initializeState.inProgress();const t=this.taskService.newTask("Initializing...");try{await Promise.all([this.info,this.editor,this.grid,this.grid.controller,this.filter,this.extend].map((async e=>{this.snapshotService.registerSubscriber(e)})));const t=await this.engine.processSource(e.source);this._source=t,this._initialSource=t,this._initialSpecification=e;const n=await this.engine.parseValueSpecification(e.query),o=await cg(n,t,e,this.engine);e.options?.autoEnableCache&&(await this.grid.setCachingEnabled(!0,{suppressWarning:!0}),this.grid.isCachingEnabled&&this.settingService.getBooleanValue(du.GRID_CLIENT__SHOW_AUTO_ENABLE_CACHE_PERFORMANCE_WARNING)&&this.alertService.alert({message:"Caching is auto-enabled for this DataCube",text:"When enabled, the source dataset will be cached locally in order to boost query performance. But depending on computational resource available to your environment, sometimes, caching can negatively impact the overall performance, and can even lead to crashes.\n\nOverall, caching is still an experimental feature where we only support queries with simple execution plans, certain queries might not work.\n\nYou can disable caching if needed, otherwise, please proceed with caution.",type:uu.WARNING,actions:[{label:"OK",handler:()=>{}},{label:"Disable Caching",handler:()=>{this.grid.setCachingEnabled(!1,{suppressWarning:!0}).catch((e=>this.alertService.alertUnhandledError(e)))}},{label:"Dismiss Warning",handler:()=>{this.settingService.updateValue(this.dataCube.api,du.GRID_CLIENT__SHOW_AUTO_ENABLE_CACHE_PERFORMANCE_WARNING,!1)}}],windowConfig:{...fr,width:600,height:300,minWidth:300,minHeight:150}})),this.snapshotService.broadcastSnapshot(o),this.dataCube.options?.onViewInitialized?.({api:this.dataCube.api,source:t}),this.initializeState.pass()}catch(e){w(e),this.alertService.alertError(e,{message:`Initialization Failure: ${e.message}`,text:"Resolve the issue and reload the engine."}),this.initializeState.fail()}finally{this.taskService.endTask(t)}}dispose(){this.taskService.dispose()}}var zg;!function(e){e.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING="data-cube.settings.failure.found-unregistered-setting",e.SETTINGS__FAILURE__ASSIGN_INCOMPATIBLE_VALUE="data-cube.settings.failure.assign-incompatible-value",e.SETTINGS__FAILURE__RETRIEVE_INCOMPATIBLE_VALUE="data-cube.settings.failure.retrieve-incompatible-value"}(zg||(zg={}));const Yg=(0,bt.PA)((e=>{const{configuration:t}=e,n=$c(),o=n.settingService;switch(t.type){case qg.BOOLEAN:{const e=z(o.currentValues.get(t.key));return(0,E.jsxs)("div",{className:"my-2",children:[(0,E.jsx)("div",{className:"font-medium",children:t.title}),(0,E.jsx)("div",{className:"flex pr-2",children:(0,E.jsx)(Jc,{label:t.description,checked:e,onChange:()=>{(0,xe.h5)((()=>{o.currentValues.set(t.key,!e)}))}})})]})}case qg.NUMERIC:{const e=$(o.currentValues.get(t.key)),n=t.defaultValue;return(0,E.jsxs)("div",{className:"my-2",children:[(0,E.jsx)("div",{className:"font-medium",children:t.title}),(0,E.jsx)("div",{className:"mb-1.5 text-sm text-neutral-700",children:t.description}),(0,E.jsx)(Kc,{className:"w-20 text-sm",min:t.numericValueMin,step:t.numericValueStep,max:t.numericValueMax,defaultValue:n,value:e,setValue:e=>{(0,xe.h5)((()=>{o.currentValues.set(t.key,e??n)}))}})]})}case qg.STRING:{const e=W(o.currentValues.get(t.key));return(0,E.jsxs)("div",{className:"my-2",children:[(0,E.jsx)("div",{className:"font-medium",children:t.title}),(0,E.jsx)("div",{className:"mb-1.5 text-sm text-neutral-700",children:t.description}),(0,E.jsx)(qc,{className:"w-80 text-sm",value:e,onChange:e=>{(0,xe.h5)((()=>{o.currentValues.set(t.key,e.target.value)}))}})]})}case qg.ACTION:return(0,E.jsxs)("div",{className:"my-2",children:[(0,E.jsx)("div",{className:"font-medium",children:t.title}),(0,E.jsx)("div",{className:"mb-1.5 text-sm text-neutral-700",children:t.description}),(0,E.jsx)("div",{className:"flex pr-2",children:(0,E.jsx)(Xc,{compact:!0,onClick:()=>t.action?.(n.api,void 0),children:"Run Action"})})]});default:return null}})),Xg=(0,bt.PA)((()=>{const e=$c(),t=e.settingService,n=Array.from(t.configurations.values()).toSorted(((e,t)=>e.title.localeCompare(t.title)));return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"h-[calc(100%_-_40px)] w-full p-2 pb-0",children:(0,E.jsxs)("div",{className:"h-full w-full select-none overflow-auto border border-neutral-300 bg-white p-2",children:[(0,E.jsx)("div",{className:"mt-1 flex h-5",children:(0,E.jsxs)("div",{className:"flex h-full",children:[(0,E.jsx)("div",{className:"flex h-5 items-center text-xl font-medium",children:(0,E.jsx)(dr.Table,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-5 items-center text-xl font-medium",children:"Grid"})]})}),n.filter((e=>e.group===Kg.GRID)).map((e=>(0,E.jsx)(Yg,{configuration:e},e.key))),(0,E.jsx)("div",{className:"my-2 h-[1px] w-full bg-neutral-200"}),(0,E.jsx)("div",{className:"mt-1 flex h-5",children:(0,E.jsxs)("div",{className:"flex h-full",children:[(0,E.jsx)("div",{className:"flex h-5 items-center text-xl font-medium",children:(0,E.jsx)(dr.Debug,{})}),(0,E.jsx)("div",{className:"ml-1 flex h-5 items-center text-xl font-medium",children:"Debug"})]})}),n.filter((e=>e.group===Kg.DEBUG)).map((e=>(0,E.jsx)(Yg,{configuration:e},e.key)))]})}),(0,E.jsxs)("div",{className:"flex h-10 items-center justify-end px-2",children:[(0,E.jsx)(Xc,{onClick:()=>t.restoreDefaultValues(),disabled:!t.allowRestoreDefaultValues,children:"Restore Default Settings"}),(0,E.jsx)(Xc,{className:"ml-2",onClick:()=>{t.display.close()},children:"Cancel"}),(0,E.jsx)(Xc,{className:"ml-2",onClick:()=>t.save(e.api),children:"Apply"}),(0,E.jsx)(Xc,{className:"ml-2",onClick:()=>{t.save(e.api),t.display.close()},children:"OK"})]})]})}));var Kg,qg,Jg,Qg,Zg,em;!function(e){e.DEBUG="Debug",e.EDITOR="Editor",e.GRID="Grid"}(Kg||(Kg={})),function(e){e.BOOLEAN="boolean",e.NUMERIC="numeric",e.STRING="string",e.ACTION="action"}(qg||(qg={}));class tm{_engine;_logService;_layoutService;_options;display;configurations=new Map;defaultValues=new Map;_defaultValuesHashCode;values=new Map;currentValues=new Map;constructor(e,t,n,o){(0,xe.Gn)(this,{values:xe.sH,save:xe.XI,valuesHashCode:xe.EW,currentValues:xe.sH,restoreDefaultValues:xe.XI,currentValuesHashCode:xe.EW,allowRestoreDefaultValues:xe.EW}),this._engine=e,this._logService=t,this._layoutService=n,this._options=o,this.display=this._layoutService.newDisplay("Settings",(()=>(0,E.jsx)(Xg,{})),{x:-50,y:50,width:600,height:400,minWidth:300,minHeight:200,center:!1});const r=[{key:du.DEBUGGER__ENABLE_DEBUG_MODE,title:"Debug Mode: Enabled",description:"Enables debug logging when running data queries, updating snapshots, etc.",group:Kg.DEBUG,type:qg.BOOLEAN,defaultValue:!1},{key:du.DEBUGGER__USE_DEV_CLIENT_PROTOCOL_VERSION,title:"Use development client protocol version: Enabled",description:"Specifies if development client protocol version (vX_X_X) should be used for execution",group:Kg.DEBUG,type:qg.BOOLEAN,defaultValue:!1},{key:du.DEBUGGER__ACTION__RELOAD,title:"Reload",description:"Manually reload DataCube (keeping all states). This is needed when making changes to settings that require reloading to take effect.",group:Kg.DEBUG,type:qg.ACTION,action:e=>e.reload(),defaultValue:void 0},{key:du.GRID_CLIENT__SHOW_CACHE_PERFORMANCE_WARNING,title:"Caching Performance Warning: Enabled",description:"Alerts user of potential performance and resource-related issues that caching can cause when enabled.",group:Kg.GRID,type:qg.BOOLEAN,defaultValue:!0},{key:du.GRID_CLIENT__SHOW_AUTO_ENABLE_CACHE_PERFORMANCE_WARNING,title:"Caching (Auto-Enabled) Performance Warning: Enabled",description:"Alerts user that caching is auto-enabled for the DataCube and of potential performance and resource-related issues that caching can cause when enabled.",group:Kg.GRID,type:qg.BOOLEAN,defaultValue:!0},{key:du.EDITOR__MAX_HISTORY_STACK_SIZE,title:"Max History Stack Size",description:"Sets the number of maximum snapshots to store in edit history.",group:Kg.EDITOR,type:qg.NUMERIC,defaultValue:100,numericValueMin:10,numericValueStep:10,action:(e,t)=>e._runTaskForEachView((e=>{e.snapshotService.adjustHistorySize(t)}))},{key:du.GRID_CLIENT__SUPPRESS_LARGE_DATASET_WARNING,title:"Large Dataset Warning: Disabled",description:"Suggests user to enable pagination when handling large datasets to improve performance.",group:Kg.GRID,type:qg.BOOLEAN,defaultValue:!1},{key:du.GRID_CLIENT__ROW_BUFFER,title:"Row Buffer",description:"Sets the number of rows the grid renders outside of the viewable area. e.g. if the buffer is 10 and your grid is showing 50 rows (as that's all that fits on your screen without scrolling), then the grid will actually render 70 in total (10 extra above and 10 extra below). Then when you scroll, the grid will already have 10 rows ready and waiting to show, no redraw is needed. A low small buffer will make initial draws of the grid faster; whereas a big one will reduce the redraw visible vertically scrolling.",group:Kg.GRID,type:qg.NUMERIC,defaultValue:50,numericValueMin:10,numericValueStep:10,action:(e,t)=>e._runTaskForEachView((e=>{e.grid.client.updateGridOptions({rowBuffer:t})}))},{key:du.GRID_CLIENT__PURGE_CLOSED_ROW_NODES,title:"Refresh Group Node Data: Enabled",description:"Forces refresh data when group node is opened.",group:Kg.GRID,type:qg.BOOLEAN,defaultValue:!1,action:(e,t)=>e._runTaskForEachView((e=>{e.grid.client.updateGridOptions({purgeClosedRowNodes:t})}))},{key:du.GRID_CLIENT__ACTION__RETRY_FAILED_DATA_FETCHES,title:"Retry Failed Data Fetches: Action",description:"Manually re-runs all failed data fetches in the grid.",group:Kg.GRID,type:qg.ACTION,action:e=>e.retryFailedDataFetches(),defaultValue:void 0}],{configurations:i,values:a}=o?.settingsData??{};[...r,...i??[]].forEach((e=>{this.configurations.set(e.key,e),this.setValue(e.key,e.defaultValue,[this.defaultValues,this.values,this.currentValues])}));const s=a??{};Object.keys(s).forEach((e=>{const t=s[e];this.configurations.get(e)&&this.setValue(e,t,[this.values,this.currentValues])})),this._defaultValuesHashCode=this.computeValuesHashCode(this.defaultValues)}setValue(e,t,n){const o=this.configurations.get(e);if(!o)return this._logService.logWarning(c.create(zg.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING),`Can't set value for unregistered setting '${e}'`),!1;switch(o.type){case qg.BOOLEAN:if(!(V(t)||void 0===t&&o.valueOptional))return this._logService.logWarning(c.create(zg.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING),`Can't set value for setting '${e}': boolean value expected`),!1;break;case qg.NUMERIC:if(!(G(t)||void 0===t&&o.valueOptional))return this._logService.logWarning(c.create(zg.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING),`Can't set value for setting '${e}': numeric value expected`),!1;break;case qg.STRING:if(!(U(t)||void 0===t&&o.valueOptional))return this._logService.logWarning(c.create(zg.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING),`Can't set value for setting '${e}': string value expected`),!1;break;case qg.ACTION:return!1;default:throw new I(`Can't set value for unsupported setting type '${o.type}'`)}return n.forEach((n=>{(0,xe.h5)((()=>n.set(e,t)))})),!0}getConfiguration(e){const t=this.configurations.get(e);if(!t)throw this._logService.logWarning(c.create(zg.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING),`Can't retrieve value for unregistered setting '${e}'`),new x(`Can't retrieve value for unregistered setting '${e}'`);return t}getBooleanValue(e){const t=this.values.get(e);if(this.getConfiguration(e).type!==qg.BOOLEAN||!V(t))throw this._logService.logWarning(c.create(zg.SETTINGS__FAILURE__RETRIEVE_INCOMPATIBLE_VALUE),`Can't retrieve boolean value for setting '${e}'`),new x(`Can't retrieve boolean value for setting '${e}'`);return t}getNumericValue(e){const t=this.values.get(e);if(this.getConfiguration(e).type!==qg.NUMERIC||!G(t))throw this._logService.logWarning(c.create(zg.SETTINGS__FAILURE__RETRIEVE_INCOMPATIBLE_VALUE),`Can't retrieve numeric value for setting '${e}'`),new x(`Can't retrieve numeric value for setting '${e}'`);return t}getStringValue(e){const t=this.values.get(e);if(this.getConfiguration(e).type!==qg.STRING||!U(t))throw this._logService.logWarning(c.create(zg.SETTINGS__FAILURE__RETRIEVE_INCOMPATIBLE_VALUE),`Can't retrieve string value for setting '${e}'`),new x(`Can't retrieve string value for setting '${e}'`);return t}computeValuesHashCode(e){return Lr(Array.from(e.entries()).toSorted(((e,t)=>e[0].localeCompare(t[0]))).map((([e,t])=>`${e}:${t}`)))}get valuesHashCode(){return this.computeValuesHashCode(this.values)}get currentValuesHashCode(){return this.computeValuesHashCode(this.currentValues)}get allowRestoreDefaultValues(){return this._defaultValuesHashCode!==this.currentValuesHashCode}restoreDefaultValues(){this.currentValues.clear(),this.defaultValues.forEach(((e,t)=>this.currentValues.set(t,e)))}getCurrentSettingValues(){const e={};return this.values.forEach(((t,n)=>{const o=this.configurations.get(n);o&&t!==o.defaultValue&&(e[n]=t)})),e}updateValue(e,t,n){const o=this.configurations.get(t);o?this.setValue(t,n,[this.values,this.currentValues])&&(this._options?.onSettingsChanged?.({api:e,values:this.getCurrentSettingValues()}),o.action?.(e,n)):this._logService.logWarning(c.create(zg.SETTINGS__FAILURE__FOUND_UNREGISTERED_SETTING),`Can't set value for unregistered setting '${t}'`)}save(e){const t=new Set;this.values.forEach(((e,n)=>{e!==this.currentValues.get(n)&&t.add(n)})),this.values.clear(),this.currentValues.forEach(((e,t)=>this.values.set(t,e))),this._options?.onSettingsChanged?.({api:e,values:this.getCurrentSettingValues()});let n=!1;for(const o of t){const t=this.configurations.get(o);t?.requiresReload&&(n=!0),t?.action&&t.action(e,this.values.get(o))}n&&e.reload()}}class nm{_dataCube;constructor(e){this._dataCube=e}_runTaskForEachView(e){e(this._dataCube.view)}getProcessedSource(){return this._dataCube.view.getInitialSource()}generateSpecification(){return this._dataCube.view.generateSpecification()}updateName(e){this._dataCube.view.updateName(e)}async applySpecification(e){await this._dataCube.view.applySpecification(e)}retryFailedDataFetches(){this._runTaskForEachView((e=>{e.grid.client.retryServerSideLoads()}))}reload(){this._dataCube.reload()}}!function(e){e.PROFILE="Profile",e.CLASS="Class",e.ENUMERATION="Enum",e.MEASURE="Measure",e.ASSOCIATION="Association",e.FUNCTION="function",e.MAPPING="Mapping",e.FLAT_DATA="FlatData",e.DATABASE="Database",e.SERVICE="Service",e.RUNTIME="Runtime",e.CONNECTION="Connection",e.FILE_GENERATION="FileGeneration",e.GENERATION_SPECIFICATION="GenerationSpecification",e.DATA_ELEMENT="Data",e.EXECUTION_ENVIRONMENT="ExecutionEnvironment"}(Jg||(Jg={})),function(e){e.JSON_MODEL_CONNECTION="JsonModelConnection",e.XML_MODEL_CONNECTION="XmlModelConnection",e.MODEL_CHAIN_CONNECTION="ModelChainConnection",e.RELATIONAL_DATABASE_CONNECTION="RelationalDatabaseConnection",e.FLAT_DATA_CONNECTION="FlatDataConnection"}(Qg||(Qg={})),(em=Zg||(Zg={})).PURE="Pure",em.CONNECTION="Connection",em.RUNTIME="Runtime",em.MAPPING="Mapping",em.SERVICE="Service",em.FLATDATA="FlatData",em.RELATIONAL="Relational",em.GENERATION_SPECIFICATION="GenerationSpecification",em.FILE_GENERATION_SPECIFICATION="FileGeneration",em.DATA="Data";const om={wordPattern:/(-?\d*\.\d\w*)|([^`~!@#%^$&*()\-=+[{\]}\\|;:'",.<>/?\s][^`~!@#%^&*()\-=+[{\]}\\|;:'",.<>/?\s]*)/,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"},{open:"<<",close:">>"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}};const rm=(0,bt.PA)((()=>{const e=$c().documentationService.currentEntry;if(!e)return null;const t=e.markdownText??e.text;return(0,E.jsxs)("div",{className:"h-full w-full overflow-auto bg-white p-4",children:[(0,E.jsx)("div",{className:"mb-3 text-2xl font-bold",children:e.title}),t&&(U(t)?(0,E.jsx)("div",{children:t}):(0,E.jsx)(On,{value:t}))]})}));class im{_engine;_layoutService;display;currentEntry;constructor(e,t){(0,xe.Gn)(this,{currentEntry:xe.sH,setCurrentEntry:xe.XI}),this._engine=e,this._layoutService=t,this.display=this._layoutService.newDisplay("Documentation",(()=>(0,E.jsx)(rm,{})),{x:-50,y:-50,width:400,height:400,minWidth:300,minHeight:200,center:!1})}getEntry(e){return this._engine.getDocumentationEntry(e)}setCurrentEntry(e){this.currentEntry=e}shouldDisplayDocumentationEntry(e){return Boolean(e.title&&(e.text??e.markdownText))}}class am{_engine;constructor(e){this._engine=e}sendTelemetry(e,t){this._engine.sendTelemetry(e,t)}}class sm{_engine;constructor(e){this._engine=e}openLink(e){this._engine.openLink(e)}}class lm{_engine;constructor(e){this._engine=e}logDebug(e,...t){this._engine.logDebug(e,...t)}debugProcess(e,...t){this._engine.debugProcess(e,...t)}logInfo(e,...t){this._engine.logInfo(e,...t)}logWarning(e,...t){this._engine.logWarning(e,...t)}logError(e,...t){this._engine.logError(e,...t)}logUnhandledError(e){this._engine.logUnhandledError(e)}logIllegalStateError(e,t){this._engine.logIllegalStateError(e,t)}}class cm{engine;logService;taskService;layoutService;settingService;documentationService;alertService;navigationService;telemetryService;specification;options;initializeState=Ie.create();api;uuid=(0,i.A)();view;constructor(e,t,n){(0,xe.Gn)(this,{uuid:xe.sH,reload:xe.XI}),this.engine=t,this.logService=new lm(this.engine),this.taskService=new Hg(n?.taskManager),this.layoutService=new br(n?.layoutManager),this.settingService=new tm(this.engine,this.logService,this.layoutService,n),this.documentationService=new im(this.engine,this.layoutService),this.alertService=new gu(this.logService,this.layoutService),this.navigationService=new sm(this.engine),this.telemetryService=new am(this.engine),this.api=new nm(this),this.specification=e,this.options=n,this.view=new $g(this)}async initialize(){if(this.initializeState.isInInitialState){this.initializeState.inProgress();try{this.options?.gridClientLicense&&yr.hFV.setLicenseKey(this.options.gridClientLicense),await(async(e,t)=>{Tr.editor.defineTheme(vc.DEFAULT_DARK,_c),Tr.editor.defineTheme(vc.SOLARIZED_DARK,Tc),Tr.editor.defineTheme(vc.GITHUB_DARK,Nc),Tr.editor.defineTheme(vc.GITHUB_DARK_DIMMED,Ac),Tr.editor.defineTheme(vc.GITHUB_LIGHT,Sc),Tr.editor.defineTheme(vc.MATERIAL_DEFAULT,yc),Tr.editor.defineTheme(vc.MATERIAL_DARKER,xc),Tr.editor.defineTheme(vc.ONE_DARK_PRO,Ic),Tr.editor.defineTheme(vc.ONE_DARK_PRO_DARKER,wc);const n=`Monospaced font '${e}' has not been loaded properly, code editor might not display properly`;await Promise.all([400,700].map((t=>document.fonts.load(`${t} 1em ${e}`)))).then((()=>{document.fonts.check(`1em ${e}`)?Tr.editor.remeasureFonts():t(new Error(n))})).catch((()=>t(new Error(n))))})(ti.ROBOTO_MONO,(e=>{throw e})),function(e){var t;Tr.languages.register({id:Fc.PURE}),Tr.languages.setLanguageConfiguration(Fc.PURE,om),Tr.languages.setMonarchTokensProvider(Fc.PURE,(t=e?.extraKeywords??[],{defaultToken:"invalid",tokenPostfix:".pure",keywords:[...t,"Schema","Table","Join","View","primaryKey","groupBy","mainTable","let","extends","true","false","projects",Jg.CLASS,Jg.ASSOCIATION,Jg.ENUMERATION,Jg.MEASURE,Jg.PROFILE,Jg.FUNCTION,Jg.MAPPING,Jg.RUNTIME,Jg.CONNECTION,Jg.FILE_GENERATION,Jg.GENERATION_SPECIFICATION,Jg.DATA_ELEMENT,Qg.JSON_MODEL_CONNECTION,Qg.MODEL_CHAIN_CONNECTION,Qg.XML_MODEL_CONNECTION,"include","EnumerationMapping","Pure","AssociationMapping","XStore","AggregationAware",Jg.SERVICE,Jg.FLAT_DATA,Jg.DATABASE,Qg.FLAT_DATA_CONNECTION,Qg.RELATIONAL_DATABASE_CONNECTION,"Relational"],operators:["=",">","<","!","~","?",":","==","<=",">=","&&","||","++","--","+","-","*","/","&","|","^","%","->","#{","}#","@","<<",">>"],languageStructs:["import","native"],identifier:/[a-zA-Z_$][\w$]*/,symbols:/[=><!~?:&|+\-*/^%#@]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,multiplicity:/\[(?:[a-zA-Z0-9]+(?:\.\.(?:[a-zA-Z0-9]+|\*|))?|\*)\]/,package:/(?:[\w_]+::)+/,generics:/(?:(?:<\w+>)|(?:<[^:.@^()]+[^-]>))/,date:/%-?\d+(?:-\d+(?:-\d+(?:T(?:\d+(?::\d+(?::\d+(?:.\d+)?)?)?)(?:[+-][0-9]{4})?)))/,time:/%\d+(?::\d+(?::\d+(?:.\d+)?)?)?/,tokenizer:{root:[{include:"@pure"},{include:"@date"},{include:"@color"},[/^\s*###[\w]+/,Gl.PARSER],[/(@identifier)/,{cases:{"@languageStructs":Gl.LANGUAGE_STRUCT,"@keywords":`${Gl.KEYWORD}.$0`,"([a-zA-Z_$][\\w$]*)_((\\w+_(([a-zA-Z0-9]+)|(\\$[a-zA-Z0-9]+_[a-zA-Z0-9]+\\$)))__)*(\\w+_(([a-zA-Z0-9]+)|(\\$[a-zA-Z0-9]+_[a-zA-Z0-9]+\\$)))_":Gl.TYPE,"@default":Gl.IDENTIFIER}}],{include:"@whitespace"},[/[{}()[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":Gl.OPERATOR,"@default":Gl.IDENTIFIER}}],{include:"@number"},[/[;,.]/,Gl.DELIMITER],[/'([^'\\]|\\.)*$/,`${Gl.STRING}.invalid`],[/'/,Gl.STRING,"@string"],{include:"@characters"}],pure:[[/(@package\*)/,[Gl.PACKAGE]],[/(@package?)(@identifier)(@generics?)(\s*)(@multiplicity)/,[Gl.PACKAGE,Gl.TYPE,Gl.GENERICS,Gl.WHITESPACE,Gl.MULTIPLICITY]],[/(@package)(@identifier)(@generics?)/,[Gl.PACKAGE,Gl.TYPE,Gl.GENERICS]],[/([@^])(\s*)(@package?)(@identifier)(@generics?)(@multiplicity?)/,[`${Gl.TYPE}.operator`,Gl.WHITESPACE,Gl.PACKAGE,Gl.TYPE,Gl.GENERICS,Gl.MULTIPLICITY]],[/(\.\s*)(@identifier)/,[Gl.DELIMITER,Gl.PROPERTY]],[/(@identifier)(\s*=)/,[Gl.PROPERTY,Gl.OPERATOR]],[/(@identifier)(\.)(@identifier)/,[Gl.TYPE,Gl.OPERATOR,Gl.PROPERTY]],[/(@identifier)(\s*:)/,[Gl.PARAMETER,Gl.OPERATOR]],[/(let)(\s+)(@identifier)(\s*=)/,[Gl.KEYWORD,Gl.WHITESPACE,Gl.VARIABLE,Gl.OPERATOR]],[/(\$@identifier)/,[`${Gl.VARIABLE}.reference`]]],date:[[/(%latest)/,[`${Gl.DATE}.latest`]],[/(@date)/,[Gl.DATE]],[/(@time)/,[`${Gl.DATE}.time`]]],color:[[/(#[0-9a-fA-F]{6})/,[Gl.COLOR]]],number:[[/(@digits)[eE]([-+]?(@digits))?[fFdD]?/,`${Gl.NUMBER}.float`],[/(@digits)\.(@digits)([eE][-+]?(@digits))?[fFdD]?/,`${Gl.NUMBER}.float`],[/0[xX](@hexdigits)[Ll]?/,`${Gl.NUMBER}.hex`],[/0(@octaldigits)[Ll]?/,`${Gl.NUMBER}.octal`],[/0[bB](@binarydigits)[Ll]?/,`${Gl.NUMBER}.binary`],[/(@digits)[fFdD]/,`${Gl.NUMBER}.float`],[/(@digits)[lL]?/,Gl.NUMBER]],whitespace:[[/[ \t\r\n]+/,Gl.WHITESPACE],[/\/\*\*(?!\/)/,`${Gl.COMMENT}.doc`,"@doc"],[/\/\*/,Gl.COMMENT,"@comment"],[/\/\/.*$/,Gl.COMMENT]],comment:[[/[^/*]+/,Gl.COMMENT],[/\*\//,Gl.COMMENT,"@pop"],[/[/*]/,Gl.COMMENT]],doc:[[/[^/*]+/,`${Gl.COMMENT}.doc`],[/\/\*/,`${Gl.COMMENT}.doc.invalid`],[/\*\//,`${Gl.COMMENT}.doc`,"@pop"],[/[/*]/,`${Gl.COMMENT}.doc`]],string:[[/[^\\']+/,Gl.STRING],[/@escapes/,`${Gl.STRING}.escape`],[/\\./,`${Gl.STRING}.escape.invalid`],[/'/,Gl.STRING,"@pop"]],characters:[[/'[^\\']'/,Gl.STRING],[/(')(@escapes)(')/,[Gl.STRING,`${Gl.STRING}.escape`,Gl.STRING]],[/'/,`${Gl.STRING}.invalid`]]}}))}({}),this.options?.onInitialized?.(this),this.initializeState.pass()}catch(e){w(e),this.alertService.alertError(e,{message:`Initialization Failure: ${e.message}`,text:"Resolve the issue and reload the engine."}),this.initializeState.fail()}}else this.logService.logDebug("DataCube state is re-initialized")}dispose(){this.view.dispose(),this.layoutService.dispose(),this.taskService.dispose()}reload(){this.view=new $g(this),this.uuid=(0,i.A)()}}const um=(0,bt.PA)((()=>{const e=$c(),t=e.view;return(0,Lt.useEffect)((()=>{e.view.initialize(e.specification).catch((t=>e.logService.logUnhandledError(t)))}),[e]),(0,E.jsxs)("div",{className:"data-cube relative flex h-full w-full flex-col bg-white",children:[(0,E.jsx)(tp,{title:t.info.name,menuItems:[{label:"Undo",action:()=>e.view.snapshotService.undo(),disabled:!e.view.snapshotService.canUndo},{label:"Redo",action:()=>e.view.snapshotService.redo(),disabled:!e.view.snapshotService.canRedo},{label:"Settings...",action:()=>e.settingService.display.open()}],getMenuItems:e.options?.getHeaderMenuItems,children:e.options?.innerHeaderRenderer?.({api:e.api})??null}),(0,E.jsx)(ip,{view:t}),(0,E.jsx)(_r,{layout:e.layoutService.manager}),(0,E.jsx)(Sr,{})]})})),dm=(0,bt.PA)((e=>{const{specification:t,engine:n,options:o}=e,r=(0,bt.iz)((()=>new cm(t,n,o)));return(0,Lt.useEffect)((()=>(r.initialize().catch((e=>r.logService.logUnhandledError(e))),()=>r.dispose())),[r]),r.initializeState.hasSucceeded?(0,E.jsx)(Wc,{value:r,children:(0,E.jsx)(um,{},r.uuid)}):(0,E.jsx)(rp,{title:Ei,headerContent:r.options?.innerHeaderRenderer?.({api:r.api})??null,layoutManager:r.layoutService.manager,taskManager:r.taskService.manager,children:r.initializeState.hasFailed&&(0,E.jsx)(np,{message:"Initialization Failure",prompt:"Resolve the issue and reload."})})}));class pm extends Vl{runtime;mapping;timestamp;model;isLocal;isPersistenceSupported}const gm="repl";class mm{query;runtime;model;mapping;timestamp;isLocal;isPersistenceSupported;columns=[];static serialization=new ge((0,pe.PL)(mm,{_type:he(gm),columns:(0,pe.p_)((0,pe.lS)()),isLocal:(0,pe.MY)(),isPersistenceSupported:(0,pe.MY)(),mapping:(0,pe.lq)((0,pe.MY)()),model:(0,pe.lq)((0,pe.lS)()),query:(0,pe.MY)(),runtime:(0,pe.MY)(),timestamp:(0,pe.MY)()}))}class hm{networkClient;constructor(e){this.networkClient=e}get baseUrl(){return P(this.networkClient.baseUrl,"REPL server client has not been configured properly")}get dataCube(){return`${this.baseUrl}/api/dataCube`}async getInfrastructureInfo(){return this.networkClient.get(`${this.dataCube}/infrastructureInfo`)}async getQueryTypeahead(e){return this.networkClient.post(`${this.dataCube}/typeahead`,e)}async parseValueSpecification(e){return this.networkClient.post(`${this.dataCube}/parseValueSpecification`,e)}async getValueSpecificationCode(e){return this.networkClient.post(`${this.dataCube}/getValueSpecificationCode`,e,{},{[Z.ACCEPT]:ee.TEXT_PLAIN})}async getBaseSpecification(){return this.networkClient.get(`${this.dataCube}/getBaseQuery`)}async getQueryRelationReturnType(e){return this.networkClient.post(`${this.dataCube}/getRelationReturnType`,e)}async getQueryCodeRelationReturnType(e){return this.networkClient.post(`${this.dataCube}/getRelationReturnType/code`,e)}async executeQuery(e){return this.networkClient.post(`${this.dataCube}/executeQuery`,e)}async publishQuery(e,t){return this.networkClient.post(`${t}`,e)}}class fm{query;runtime;model;static serialization=new ge((0,pe.PL)(fm,{_type:he("adhocQuery"),model:(0,pe.lS)(),query:(0,pe.MY)(),runtime:(0,pe.MY)()}))}class Em{id;name;description;content;owner;lastUpdatedAt;createdAt;lastOpenAt;static serialization=new ge((0,pe.PL)(Em,{id:(0,pe.MY)(),lastUpdatedAt:(0,pe.lq)((0,pe.MY)()),createdAt:(0,pe.lq)((0,pe.MY)()),lastOpenAt:(0,pe.lq)((0,pe.MY)()),name:(0,pe.MY)(),description:(0,pe.lq)((0,pe.MY)()),content:(0,pe.lS)(),owner:(0,pe.lq)((0,pe.MY)())}));clone(){return Em.serialization.fromJson(Em.serialization.toJson(this))}}class Cm{id;name;description;owner;lastUpdatedAt;createdAt;lastOpenAt;static serialization=new ge((0,pe.PL)(Cm,{id:(0,pe.MY)(),lastUpdatedAt:(0,pe.lq)((0,pe.MY)()),createdAt:(0,pe.lq)((0,pe.MY)()),lastOpenAt:(0,pe.lq)((0,pe.MY)()),name:(0,pe.MY)(),description:(0,pe.lq)((0,pe.MY)()),owner:(0,pe.lq)((0,pe.MY)())}))}const bm=e=>{const{persistentDataCube:t}=e,n=dh(),o=n.hostedApplicationBaseUrl?`${n.hostedApplicationBaseUrl}/${t.id}`:void 0;return(0,E.jsxs)("div",{className:"h-full w-full p-6",children:[(0,E.jsxs)("div",{className:"flex w-full overflow-auto",children:[(0,E.jsx)("div",{className:"mr-3",children:(0,E.jsx)(dr.AlertSuccess,{className:"flex-shrink-0 stroke-[0.5px] text-[40px] text-green-500"})}),(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:"whitespace-break-spaces text-lg",children:"Published DataCube successfully!"}),o&&(0,E.jsx)("div",{className:"mt-1 whitespace-break-spaces text-neutral-500",children:"To view or share the published DataCube, use the link below."}),!o&&(0,E.jsx)("div",{className:"mt-1 whitespace-break-spaces text-neutral-500",children:"See the published DataCube ID below."})]})]}),o&&(0,E.jsxs)("div",{className:"mt-3 flex h-6 w-full",children:[(0,E.jsx)("div",{className:"flex h-full w-[calc(100%_-_20px)] items-center border border-r-0 border-neutral-400 px-1.5 font-bold text-sky-500 underline",children:(0,E.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"overflow-hidden overflow-ellipsis whitespace-nowrap",children:o})}),(0,E.jsx)("button",{className:"flex aspect-square h-full w-6 items-center justify-center border border-neutral-400 bg-neutral-300 hover:brightness-95",onClick:()=>{n.application.clipboardService.copyTextToClipboard(o).catch(n.application.alertUnhandledError)},title:"Copy Link",children:(0,E.jsx)(dr.Clipboard,{})})]}),!o&&(0,E.jsxs)("div",{className:"mt-3 flex h-6 w-full",children:[(0,E.jsx)("div",{className:"flex h-full w-[calc(100%_-_20px)] items-center border border-r-0 border-neutral-400 bg-neutral-200 px-1.5",children:(0,E.jsx)("div",{className:"overflow-hidden overflow-ellipsis whitespace-nowrap",children:t.id})}),(0,E.jsx)("button",{className:"flex aspect-square h-full w-6 items-center justify-center border border-neutral-400 bg-neutral-300 hover:brightness-95",onClick:()=>{n.application.clipboardService.copyTextToClipboard(t.id).catch(n.application.alertUnhandledError)},title:"Copy ID",children:(0,E.jsx)(dr.Clipboard,{})})]})]})};class vm{sourceId;startLine;startColumn;endLine;endColumn;constructor(e,t,n,o,r){this.sourceId=e,this.startLine=t,this.startColumn=n,this.endLine=o,this.endColumn=r}}var _m,Tm,Nm,Sm;!function(e){e.COMPILATION="COMPILATION",e.PARSER="PARSER"}(_m||(_m={}));class Am{message="";errorType;sourceInformation;static serialization=new ge((0,pe.PL)(Am,{errorType:(0,pe.lq)((0,pe.MY)()),message:(0,pe.MY)(),sourceInformation:me(Da.schema)}))}!function(e){e.CLASS_BUILDER="classBuilder",e.TDS_BUILDER="tdsBuilder",e.JSON_BUILDER="json"}(Tm||(Tm={})),function(e){e.RELATIONAL="relational",e.RELATIONAL_EXECUTION_ACTIVITY="RelationalExecutionActivity",e.AGGREGATION_AWARE_ACTIVITY="aggregationAware"}(Nm||(Nm={})),function(e){e.CSV="CSV"}(Sm||(Sm={}));class ym{_type;constructor(e){this._type=e}}class xm{}class Im extends xm{sql;comment;constructor(e){super(),this.sql=e}}class wm extends xm{rewrittenQuery}class km extends xm{values;constructor(e){super(),this.values=e}}class Rm{builder;activities}class Om extends Rm{values}class Lm extends Rm{value;constructor(e){super(),this.value=e}}class Fm{name;type;relationalType;doc}class Pm extends ym{columns=[];constructor(){super(Tm.TDS_BUILDER)}}class Bm{values=[]}class Dm{columns=[];rows=[]}class jm extends Rm{_UUID=(0,i.A)();builder=new Pm;result=new Dm}class Mm extends ym{_type=Tm.CLASS_BUILDER}class Um extends Rm{builder=new Mm(Tm.CLASS_BUILDER);objects}class Gm{static builderSerialization=new ge((0,pe.PL)(Gm,{_type:(0,pe.MY)()}))}class Vm{}class Hm extends Vm{sql;comment;static serialization=new ge((0,pe.PL)(Hm,{sql:(0,pe.MY)(),comment:(0,pe.lq)((0,pe.MY)())}))}class Wm extends Vm{rewrittenQuery;static serialization=new ge((0,pe.PL)(Wm,{rewrittenQuery:(0,pe.MY)()}))}class $m{builder;activities}class zm extends Vm{content;constructor(e){super(),this.content=e}}class Ym extends $m{values;static serialization=new ge((0,pe.PL)(Ym,{_type:(0,pe.MY)(),builder:me(Gm.builderSerialization.schema),values:(0,pe.lS)()}))}class Xm{name;doc;type;relationalType;static serialization=new ge((0,pe.PL)(Xm,{name:(0,pe.MY)(),doc:(0,pe.lq)((0,pe.MY)()),type:(0,pe.lq)((0,pe.MY)()),relationalType:(0,pe.lq)((0,pe.MY)())}))}class Km extends Gm{columns=[];static serialization=new ge((0,pe.PL)(Km,{_type:(0,pe.MY)(),columns:(0,pe.p_)(me(Xm.serialization.schema))}))}function qm(e){switch(e._type){case Nm.RELATIONAL:case Nm.RELATIONAL_EXECUTION_ACTIVITY:return Hm.serialization.fromJson(e);case Nm.AGGREGATION_AWARE_ACTIVITY:return Wm.serialization.fromJson(e);default:return new zm(e)}}class Jm extends $m{result;static serialization=new ge((0,pe.PL)(Jm,{builder:me(Km.serialization.schema),activities:(0,pe.p_)((0,pe.Ie)((()=>pe._Z),qm)),result:(0,pe.lS)()}))}class Qm extends $m{objects;static serialization=new ge((0,pe.PL)(Qm,{builder:me(Gm.builderSerialization.schema),activities:(0,pe.p_)((0,pe.Ie)((()=>pe._Z),qm)),objects:(0,pe.lS)()}))}class Zm extends $m{value;constructor(e){super(),this.value=e}}class eh extends $m{content}class th extends Rm{content}const nh=e=>{if(e instanceof Hm){const t=new Im(e.sql);return t.comment=e.comment,t}if(e instanceof Wm){const t=new wm;return t.rewrittenQuery=P(e.rewrittenQuery,"Aggregation aware execution activities 'rewritenQuery' field is missing"),t}if(e instanceof zm)return new km(e);throw new I("Can't build execution activities",e)},oh=e=>{const t=new Fm;return t.name=P(e.name,"TDS column 'name' field is missing"),t.type=e.type,t.doc=e.doc,t.relationalType=e.relationalType,t},rh=e=>{if(e instanceof eh){const t=new th;return t.content=e.content,t}if(e instanceof Qm)return(e=>{const t=new Um;return t.objects=P(e.objects,"Class execution result 'objects' field is missing"),t.activities=e.activities?.map(nh),t})(e);if(e instanceof Jm)return(e=>{const t=new jm;return t.builder=(e=>{const t=new Pm;return t.columns=e.columns.map(oh),t})(P(e.builder,"TDS execution result 'builder' field is missing")),t.activities=e.activities?.map(nh),t.result.columns=e.result.columns,t.result.rows=e.result.rows.map((e=>{const t=new Bm;return t.values=e.values,t})),t})(e);if(e instanceof Ym)return(e=>{const t=new Om;return t.values=P(e.values,"JSON execution result 'values' field is missing"),t})(e);if(e instanceof Zm)return new Lm(e.value);throw new I("Can't build execution result",e)},ih=e=>{if(null===e||U(e)||G(e)||V(e))return new Zm(e);switch(e.builder?._type){case Tm.CLASS_BUILDER:return Qm.serialization.fromJson(e);case Tm.TDS_BUILDER:return Jm.serialization.fromJson(e);case Tm.JSON_BUILDER:return Ym.serialization.fromJson(e);default:{const t=new eh;return t.content=e,t}}};class ah extends ud{_application;_client;constructor(e,t){super(),this._application=e,this._client=t}async processSource(e){if(e._type===gm){const t=mm.serialization.fromJson(e),n=new pm;n.query=await this.parseValueSpecification(t.query,!1);try{n.columns=(await this._getQueryRelationType(vl([],[n.query]))).columns}catch(e){throw w(e),new Error(`Can't get query result columns. Make sure the source query return a relation (i.e. typed TDS). Error: ${e.message}`)}return n.runtime=t.runtime,n.mapping=t.mapping,n.timestamp=t.timestamp,n.model=t.model,n.isLocal=t.isLocal,n.isPersistenceSupported=t.isPersistenceSupported,n}throw new I(`Can't process query source of type '${e._type}'.`)}async parseValueSpecification(e,t){return this.deserializeValueSpecification(await this._client.parseValueSpecification({code:e,returnSourceInformation:t}))}async getValueSpecificationCode(e,t){return this._client.getValueSpecificationCode({value:this.serializeValueSpecification(e),pretty:t})}async getQueryTypeahead(e,t,n){return this._client.getQueryTypeahead({code:e,baseQuery:this.serializeValueSpecification(t)})}async getQueryRelationReturnType(e,t){return this._getQueryRelationType(e)}async getQueryCodeRelationReturnType(e,t,n){try{return{columns:(0,pe.iu)(ps,await this._client.getQueryCodeRelationReturnType({code:e,baseQuery:this.serializeValueSpecification(t)})).columns.map((e=>({name:e.name,type:os(e.genericType)})))}}catch(e){if(w(e),e instanceof re&&e.response.status===J.BAD_REQUEST)throw(e=>{const t=new Yp(e.message);return t.sourceInformation=e.sourceInformation?(n=e.sourceInformation,new vm(P(n.sourceId,"Source information 'sourceId' field is missing"),P(n.startLine,"Source information 'startLine' field is missing"),P(n.startColumn,"Source information 'startColumn' field is missing"),P(n.endLine,"Source information 'endLine' field is missing"),P(n.endColumn,"Source information 'endColumn' field is missing"))):void 0,t;var n})(Am.serialization.fromJson(e.payload));throw e}}async executeQuery(e,t,n){const o=performance.now(),r=await this._client.executeQuery({query:this.serializeValueSpecification(e),debug:n?.debug}),i=performance.now();return{result:D(rh(ih(JSON.parse(r.result))),jm),executedQuery:r.executedQuery,executedSQL:r.executedSQL,executionTime:i-o}}buildExecutionContext(e){if(e instanceof pm)return Nl(Zr.FROM,[e.mapping?yl(e.mapping):void 0,yl(e.runtime)].filter(L))}async _getQueryRelationType(e){return{columns:(0,pe.iu)(ps,await this._client.getQueryRelationReturnType({query:this.serializeValueSpecification(e)})).columns.map((e=>({name:e.name,type:os(e.genericType)})))}}logDebug(e,...t){this._application.logService.debug(c.create(de.DEBUG),e,...t)}debugProcess(e,...t){this._application.logService.debug(c.create(de.DEBUG),`\n------ START DEBUG PROCESS: ${e} ------`,...t.flatMap((([e,t])=>[`\n[${e.toUpperCase()}]:`,t])),`\n------- END DEBUG PROCESS: ${e} -------\n\n`)}logInfo(e,...t){this._application.logService.info(e,...t)}logWarning(e,...t){this._application.logService.warn(e,...t)}logError(e,...t){this._application.logService.error(e,...t)}logUnhandledError(e){this._application.logUnhandledError(e)}logIllegalStateError(e,t){this.logError(c.create(de.ILLEGAL_APPLICATION_STATE_OCCURRED),e,t)}getDocumentationEntry(e){return this._application.documentationService.getDocEntry(e)}openLink(e){this._application.navigationService.navigator.visitAddress(e)}sendTelemetry(e,t){this._application.telemetryService.logEvent(e,t)}}class sh{_client;application;engine;taskService;layoutService;alertService;initializeState=Ie.create();publishState=Ie.create();source;gridClientLicense;queryServerBaseUrl;hostedApplicationBaseUrl;specification;constructor(e){(0,xe.Gn)(this,{specification:xe.sH,setSpecification:xe.XI,source:xe.sH,setSource:xe.XI}),this.application=e,this._client=new hm(new se({baseUrl:e.config.useDynamicREPLServer?window.location.origin+P(e.config.baseAddress).replace("/repl/",""):e.config.replUrl})),this.engine=new ah(this.application,this._client),this.taskService=new Hg,this.layoutService=new br,this.alertService=new gu(new lm(this.engine),this.layoutService)}setSpecification(e){this.specification=e}setSource(e){this.source=e}async initialize(){const e=this.taskService.newTask("Initialize REPL");this.initializeState.inProgress();try{const e=await this._client.getInfrastructureInfo();e.currentUser&&this.application.identityService.setCurrentUser(e.currentUser),this.application.telemetryService.setup(),this.queryServerBaseUrl=e.queryServerBaseUrl,this.hostedApplicationBaseUrl=e.hostedApplicationBaseUrl,this.gridClientLicense=e.gridClientLicense,this.setSpecification(ad.serialization.fromJson(await this._client.getBaseSpecification())),this.initializeState.pass()}catch(e){w(e),this.application.logService.error(c.create(de.APPLICATION_LOAD__FAILURE),"Can't initialize REPL",e),this.alertService.alertError(e,{message:`Initialization Failure: ${e.message}`,text:"Resolve the issue and reload the engine."}),this.initializeState.fail()}finally{this.taskService.endTask(e)}}async publishDataCube(e){if(!this.queryServerBaseUrl||!(this.source instanceof pm)||!this.source.isPersistenceSupported||!this.source.model||this.source.isLocal)return;this.publishState.inProgress();const t=this.taskService.newTask("Publish query");try{const t=await e.generateSpecification(),n=new fm;n.query=mm.serialization.fromJson(t.source).query,n.runtime=this.source.runtime,n.model=this.source.model,t.source=fm.serialization.toJson(n);const o=new Em;o.id=(0,i.A)(),o.name=t.configuration?.name??Ei,o.content=ad.serialization.toJson(t),o.owner=this.application.identityService.currentUser;const r=Em.serialization.fromJson(await this._client.publishQuery(Em.serialization.toJson(o),this.queryServerBaseUrl)),a=new gr(new pr("Publish Query",(()=>(0,E.jsx)(bm,{persistentDataCube:r}))));a.configuration.window={width:420,height:150,minWidth:300,minHeight:100,center:!0},this.layoutService.newWindow(a)}catch(e){w(e),this.alertService.alertError(e,{message:"Persistence Failure: Can't publish query.",text:`Error: ${e.message}`})}finally{this.taskService.endTask(t),this.publishState.complete()}}}const lh=(0,bt.PA)((e=>{const{children:t,simple:n}=e,o=P((0,Lt.useContext)(or),"Can't find application platform in context"),r=Pt();return(0,Lt.useEffect)((()=>{r.initialize(o).catch(r.alertUnhandledError)}),[r,o]),r.initState.hasSucceeded?n?(0,E.jsx)(io,{children:t}):(0,E.jsx)(ro,{children:t}):(0,E.jsx)(E.Fragment,{})})),ch=(0,Lt.createContext)(void 0),uh=({children:e})=>{const t=Pt(),n=(0,bt.iz)((()=>new sh(t)));return(0,E.jsx)(ch.Provider,{value:n,children:e})},dh=()=>P((0,Lt.useContext)(ch),"Can't find Legend REPL base store in context"),ph=({children:e})=>(0,E.jsx)(lh,{simple:!0,children:(0,E.jsx)(uh,{children:e})}),gh=(0,bt.PA)((e=>{const{api:t}=e,n=dh();if(!n.source||!n.queryServerBaseUrl)return null;const o=n.source instanceof pm&&n.source.isPersistenceSupported&&!n.source.isLocal;return(0,E.jsx)("div",{className:"flex h-full items-center",children:(0,E.jsx)(Xc,{compact:!0,disabled:!o||n.publishState.isInProgress,onClick:()=>{n.publishDataCube(t).catch((e=>n.alertService.alertUnhandledError(e)))},children:"Publish"})})}));var mh;!function(e){e.DATA_CUBE="data-cube"}(mh||(mh={}));const hh=(0,bt.PA)((e=>{const{specification:t}=e,n=dh(),o=n.application;return(0,Lt.useEffect)((()=>(o.navigationService.navigator.blockNavigation([()=>!0],void 0,(()=>{o.logService.warn(c.create(de.NAVIGATION_BLOCKED),"Navigation from the application is blocked")})),()=>{o.navigationService.navigator.unblockNavigation()})),[o]),(0,E.jsx)(dm,{specification:t,engine:n.engine,options:{gridClientLicense:n.gridClientLicense,layoutManager:n.layoutService.manager,taskManager:n.taskService.manager,onNameChanged(e){const t=e.source instanceof pm?e.source.timestamp:void 0;o.layoutService.setWindowTitle(`⊞ ${name}${t?` - ${(0,Xn.GP)(new Date(t),"HH:mm:ss EEE MMM dd yyyy")}`:""}`)},onViewInitialized(e){n.setSource(e.source)},innerHeaderRenderer:e=>(0,E.jsx)(gh,{api:e.api}),getHeaderMenuItems:()=>[{label:"See Documentation",action:()=>{o.documentationService.url&&o.navigationService.navigator.visitAddress(o.documentationService.url)},disabled:!o.documentationService.url}],settingsData:{values:o.settingService.getObjectValue(mh.DATA_CUBE)},onSettingsChanged(e){o.settingService.persistValue(mh.DATA_CUBE,e.values)}}})})),fh=Object.freeze({DATA_CUBE:"/dataCube"}),Eh=(0,bt.PA)((()=>{const e=dh();return(0,Lt.useEffect)((()=>{e.initialize().catch((t=>e.application.alertUnhandledError(t)))}),[e]),e.initializeState.hasSucceeded?(0,E.jsx)("div",{className:"h-full",children:e.specification&&(0,E.jsx)(Qo.BV,{children:(0,E.jsx)(Qo.qh,{path:fh.DATA_CUBE,element:(0,E.jsx)(hh,{specification:e.specification})})})}):(0,E.jsxs)(rp,{title:Ei,layoutManager:e.layoutService.manager,taskManager:e.taskService.manager,children:[e.initializeState.isInProgress&&(0,E.jsx)("div",{className:"h-full w-full p-2",children:(0,E.jsx)("div",{children:"Initializing..."})}),e.initializeState.hasFailed&&(0,E.jsx)(np,{message:"Initialization Failure",prompt:"Resolve the issue and reload."})]})})),Ch=e=>{const{baseUrl:t}=e;return(0,E.jsx)(ir,{baseUrl:t,children:(0,E.jsx)(ph,{children:(0,E.jsx)(Eh,{})})})};class bh extends Ho{static create(){const e=new bh(new $o);return e.withBasePlugins([new Xo]),e}async configureApplication(e){return new qo(e)}async loadApplication(e){(0,C.createRoot)((()=>{let e=document.getElementsByTagName(Wo).length?document.getElementsByTagName(Wo)[0]:void 0;return e||(e=document.createElement(Wo),document.body.appendChild(e)),e.setAttribute("style","height: 100%; width: 100%; display: block"),e})()).render((0,E.jsx)(Bt,{store:e,children:(0,E.jsx)(Ch,{baseUrl:this.baseAddress})}))}}class vh{static getPresetCollection(){return[]}static getPluginCollection(){return[new f]}static run(e){bh.create().setup({baseAddress:e}).withPresets(vh.getPresetCollection()).withPlugins(vh.getPluginCollection()).start().catch((e=>{throw e}))}}const _h=new URL("./",window.location.href).pathname;vh.run(_h)},98933:(e,t,n)=>{var o={"./simpleWorker":99246,"./simpleWorker.js":99246};function r(e){return Promise.resolve().then((()=>{if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n(o[e])}))}r.keys=()=>Object.keys(o),r.id=98933,e.exports=r},59135:(e,t,n)=>{var o={"./editorBaseApi":[37970],"./editorBaseApi.js":[37970],"./editorSimpleWorker":[41122],"./editorSimpleWorker.js":[41122],"./editorWorker":[22143],"./editorWorker.js":[22143],"./editorWorkerHost":[70869],"./editorWorkerHost.js":[70869],"./findSectionHeaders":[97716],"./findSectionHeaders.js":[97716],"./getIconClasses":[45555],"./getIconClasses.js":[45555],"./languageFeatureDebounce":[26973],"./languageFeatureDebounce.js":[26973],"./languageFeatures":[33653],"./languageFeatures.js":[33653],"./languageFeaturesService":[78330],"./languageFeaturesService.js":[78330],"./languageService":[22155],"./languageService.js":[22155],"./languagesAssociations":[25709],"./languagesAssociations.js":[25709],"./languagesRegistry":[35074],"./languagesRegistry.js":[35074],"./markerDecorations":[86259],"./markerDecorations.js":[86259],"./markerDecorationsService":[72524],"./markerDecorationsService.js":[72524],"./model":[16911],"./model.js":[16911],"./modelService":[91320],"./modelService.js":[91320],"./resolverService":[55387],"./resolverService.js":[55387],"./semanticTokensDto":[7029,121],"./semanticTokensDto.js":[7029,121],"./semanticTokensProviderStyling":[4399],"./semanticTokensProviderStyling.js":[4399],"./semanticTokensStyling":[74566],"./semanticTokensStyling.js":[74566],"./semanticTokensStylingService":[28843],"./semanticTokensStylingService.js":[28843],"./textModelSync/textModelSync.impl":[43481],"./textModelSync/textModelSync.impl.js":[43481],"./textModelSync/textModelSync.protocol":[37619,121],"./textModelSync/textModelSync.protocol.js":[37619,121],"./textResourceConfiguration":[93533],"./textResourceConfiguration.js":[93533],"./treeSitterParserService":[47105],"./treeSitterParserService.js":[47105],"./treeViewsDnd":[29740,121],"./treeViewsDnd.js":[29740,121],"./treeViewsDndService":[95621,121],"./treeViewsDndService.js":[95621,121],"./unicodeTextModelHighlighter":[14818],"./unicodeTextModelHighlighter.js":[14818]};function r(e){if(!n.o(o,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=o[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then((()=>n(r)))}r.keys=()=>Object.keys(o),r.id=59135,e.exports=r},27713:()=>{}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=i,s.amdD=function(){throw new Error("define cannot be used indirect")},s.amdO={},e=[],s.O=(t,n,o,r)=>{if(!n){var i=1/0;for(u=0;u<e.length;u++){for(var[n,o,r]=e[u],a=!0,l=0;l<n.length;l++)(!1&r||i>=r)&&Object.keys(s.O).every((e=>s.O[e](n[l])))?n.splice(l--,1):(a=!1,r<i&&(i=r));if(a){e.splice(u--,1);var c=o();void 0!==c&&(t=c)}}return t}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[n,o,r]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var r=Object.create(null);s.r(r);var i={};t=t||[null,n({}),n([]),n(n)];for(var a=2&o&&e;"object"==typeof a&&!~t.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,s.d(r,i),r},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,n)=>(s.f[n](e,t),t)),[])),s.u=e=>"static/"+e+".a0ce728d.js",s.miniCssF=e=>{},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},r="@finos/legend-application-repl-deployment:",s.l=(e,t,n,i)=>{if(o[e])o[e].push(t);else{var a,l;if(void 0!==n)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+n){a=d;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",r+n),a.src=e),o[e]=[t];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(g);var r=o[e];if(delete o[e],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((e=>e(n))),t)return t(n)},g=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),l&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.p="./",(()=>{var e={57:0};s.f.j=(t,n)=>{var o=s.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var r=new Promise(((n,r)=>o=e[t]=[n,r]));n.push(o[2]=r);var i=s.p+s.u(t),a=new Error;s.l(i,(n=>{if(s.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var r=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+r+": "+i+")",a.name="ChunkLoadError",a.type=r,a.request=i,o[1](a)}}),"chunk-"+t,t)}},s.O.j=t=>0===e[t];var t=(t,n)=>{var o,r,[i,a,l]=n,c=0;if(i.some((t=>0!==e[t]))){for(o in a)s.o(a,o)&&(s.m[o]=a[o]);if(l)var u=l(s)}for(t&&t(n);c<i.length;c++)r=i[c],s.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return s.O(u)},n=globalThis.webpackChunk_finos_legend_application_repl_deployment=globalThis.webpackChunk_finos_legend_application_repl_deployment||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),s.nc=void 0;var l=s.O(void 0,[121],(()=>s(50368)));l=s.O(l)})();
45
+ //# sourceMappingURL=index.6cbb0232.js.map