@sap/ux-specification 1.124.20 → 1.124.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -3
- package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
- package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
- package/dist/documentation/v2/v2-ListReport.html +2 -2
- package/dist/documentation/v2/v2-ListReportNew.html +2 -2
- package/dist/documentation/v2/v2-ObjectPage.html +2 -2
- package/dist/documentation/v2/v2-OverviewPage.html +2 -2
- package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
- package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
- package/dist/documentation/v4/v4-FreestylePage.html +2 -2
- package/dist/documentation/v4/v4-ListReport.html +2 -2
- package/dist/documentation/v4/v4-ObjectPage.html +2 -2
- package/dist/index-min.js +55 -55
- package/dist/index-min.js.map +3 -3
- package/dist/specification/package.json +2 -2
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.js +14 -3
- package/dist/specification/src/sync/common/utils.js.map +1 -1
- package/package.json +2 -2
package/dist/index-min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var q5=Object.create;var vl=Object.defineProperty;var pL=Object.getOwnPropertyDescriptor;var Y5=Object.getOwnPropertyNames;var z5=Object.getPrototypeOf,J5=Object.prototype.hasOwnProperty;var o=(e,t)=>vl(e,"name",{value:t,configurable:!0});var Ye=(e,t)=>()=>(e&&(t=e(e=0)),t);var ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),lc=(e,t)=>{for(var n in t)vl(e,n,{get:t[n],enumerable:!0})},Mg=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Y5(t))!J5.call(e,r)&&r!==n&&vl(e,r,{get:()=>t[r],enumerable:!(i=pL(t,r))||i.enumerable});return e},fc=(e,t,n)=>(Mg(e,t,"default"),n&&Mg(n,t,"default")),te=(e,t,n)=>(n=e!=null?q5(z5(e)):{},Mg(t||!e||!e.__esModule?vl(n,"default",{value:e,enumerable:!0}):n,e)),kg=e=>Mg(vl({},"__esModule",{value:!0}),e),y=(e,t,n,i)=>{for(var r=i>1?void 0:i?pL(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&vl(t,n,r),r};var GN=ze((WZ,HN)=>{var sb=Object.defineProperty,Z5=Object.getOwnPropertyDescriptor,eG=Object.getOwnPropertyNames,tG=Object.prototype.hasOwnProperty,cb=o((e,t)=>{for(var n in t)sb(e,n,{get:t[n],enumerable:!0})},"C"),nG=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of eG(t))!tG.call(e,r)&&r!==n&&sb(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=Z5(t,r))||i.enumerable});return e},"et"),iG=o(e=>nG(sb({},"__esModule",{value:!0}),e),"tt"),dL={};cb(dL,{ACTIONTITLEPREFIX:o(()=>sG,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>bL,"ALPViewType"),ActionType:o(()=>AL,"ActionType"),ArtifactType:o(()=>EL,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>lG,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>OL,"ChangeIndicator"),ChartColor:o(()=>WL,"ChartColor"),CloudDevAdaptationStatus:o(()=>jL,"CloudDevAdaptationStatus"),ColorPaletteDefinitionType:o(()=>HL,"ColorPaletteDefinitionType"),ControlType:o(()=>PL,"ControlType"),CustomExtensionType:o(()=>qL,"CustomExtensionType"),DATESETTINGSPATH:o(()=>TG,"DATESETTINGSPATH"),DataSourceType:o(()=>$L,"DataSourceType"),DefinitionName:o(()=>NL,"DefinitionName"),DirName:o(()=>CL,"DirName"),DraftDiscardEnabledSettings:o(()=>wL,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>vL,"ExportArtifacts"),FACETTITLEPREFIX:o(()=>aG,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>EG,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>SG,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>vG,"FRAGMENTNAMEPART"),FacetBase:o(()=>RL,"FacetBase"),Features:o(()=>YL,"Features"),FileName:o(()=>IL,"FileName"),FioriElementsVersion:o(()=>gL,"FioriElementsVersion"),FlexChangeLayer:o(()=>yL,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>UL,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>hL,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>bG,"GENERICAPPSETTINGS"),LogSeverity:o(()=>KL,"LogSeverity"),MANIFESTPATH:o(()=>fG,"MANIFESTPATH"),MacrosPropertyType:o(()=>VL,"MacrosPropertyType"),ManifestSection:o(()=>BL,"ManifestSection"),OdataVersion:o(()=>mL,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>oG,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>rG,"PageType"),PageTypeV2:o(()=>lb,"PageTypeV2"),PageTypeV4:o(()=>fb,"PageTypeV4"),PropertyMessageType:o(()=>XL,"PropertyMessageType"),PropertyName:o(()=>FL,"PropertyName"),QUICKVARPATH:o(()=>hG,"QUICKVARPATH"),QUICKVARPATHX:o(()=>yG,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>PG,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>AG,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>_L,"SchemaKeyName"),SchemaTag:o(()=>DL,"SchemaTag"),SchemaType:o(()=>TL,"SchemaType"),SectionType:o(()=>SL,"SectionType"),StatePreservationMode:o(()=>kL,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>ML,"TableColumnVerticalAlignment"),TemplateType:o(()=>QL,"TemplateType"),UIVOCABULARY:o(()=>dG,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>mG,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>gG,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>pG,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>uG,"VOCWITHSLASH"),ViewTemplateType:o(()=>LL,"ViewTemplateType"),ViewTypes:o(()=>GL,"ViewTypes"),Visualization:o(()=>xL,"Visualization"),defaultExportResult:o(()=>cG,"defaultExportResult"),logSeverityLabel:o(()=>xG,"logSeverityLabel"),v2:o(()=>zL,"v2"),v4:o(()=>EN,"v4")});HN.exports=iG(dL);var lb=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(lb||{}),fb=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(fb||{}),rG={...lb,...fb},oG=new Map([["ListReport","sap.suite.ui.generic.template.ListReport.view.ListReport"],["AnalyticalListPage","sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"],["ObjectPage","sap.suite.ui.generic.template.ObjectPage.view.Details"]]),gL=(e=>(e.v2="v2",e.v4="v4",e))(gL||{}),mL=(e=>(e.v2="v2",e.v4="v4",e))(mL||{}),hL=(e=>(e.OneColumn="OneColumn",e.TwoColumnsBeginExpanded="TwoColumnsBeginExpanded",e.TwoColumnsMidExpanded="TwoColumnsMidExpanded",e.MidColumnFullScreen="MidColumnFullScreen",e.ThreeColumnsMidExpanded="ThreeColumnsMidExpanded",e.ThreeColumnsEndExpanded="ThreeColumnsEndExpanded",e.ThreeColumnsMidExpandedEndHidden="ThreeColumnsMidExpandedEndHidden",e.ThreeColumnsBeginExpandedEndHidden="ThreeColumnsBeginExpandedEndHidden",e.EndColumnFullScreen="EndColumnFullScreen",e))(hL||{}),yL=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(yL||{}),TL=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e.FPMCustomPage="FPMCustomPage",e.BuildingBlocks="BuildingBlocks",e))(TL||{}),vL=(e=>(e.flex="flex",e.manifest="manifest",e))(vL||{}),bL=(e=>(e.Primary="primary",e.Secondary="secondary",e))(bL||{}),SL=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(SL||{}),EL=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(EL||{}),AL=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(AL||{}),PL=(e=>(e.Table="sap.m.Table",e.TableColumn="sap.m.Column",e.SmartTable="sap.ui.comp.smarttable.SmartTable",e.SmartFilterBar="sap.ui.comp.smartfilterbar.SmartFilterBar",e.SmartChart="sap.ui.comp.smartchart.SmartChart",e.Group="sap.ui.comp.smartform.Group",e.GroupElement="sap.ui.comp.smartform.GroupElement",e.Button="sap.m.Button",e.ToolbarButton="sap.m.OverflowToolbarButton",e.Avatar="sap.f.Avatar",e.ObjectPageDynamicHeaderTitle="sap.uxap.ObjectPageDynamicHeaderTitle",e.ObjectPageGridProperties="sap.ui.layout.GridData",e.ObjectPageHeader="sap.uxap.ObjectPageHeader",e.ObjectPageLayout="sap.uxap.ObjectPageLayout",e.HeaderAction="sap.uxap.ObjectPageHeaderActionButton",e.ObjectPageHeaderSection="sap.m.VBox",e.DynamicPage="sap.f.DynamicPage",e.Form="sap.ui.layout.form",e.Chart="sap.suite.ui.microchart",e.Section="sap.uxap.ObjectPageSection",e.SubSection="sap.uxap.ObjectPageSubSection",e))(PL||{}),xL=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(xL||{}),CL=(e=>(e.Sapux="src",e.Schemas=".schemas",e.Pages="pages",e.Webapp="webapp",e.Temp=".tmp",e.Changes="changes",e.LocalService="localService",e.Controller="controller",e.View="view",e.Fragment="fragment",e.Ext="ext",e.VSCode=".vscode",e))(CL||{}),IL=(e=>(e.App="app.json",e))(IL||{}),aG="Facet ID: ",sG="Action ID: ",OL=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(OL||{}),cG={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},RL=(e=>(e.LineItem="LineItem",e.CollectionFacet="CollectionFacet",e.Chart="Chart",e.Form="Form",e.Identification="Identification",e.DataPoint="DataPoint",e.Address="Address",e.Contact="Contact",e.PresentationVariant="PresentationVariant",e.SelectionPresentationVariant="SelectionPresentationVariant",e.Unknown="",e))(RL||{}),lG="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",LL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(LL||{}),NL=(e=>(e.Action="Action",e.Actions="Actions",e.ActionsLR="Actions<LineItems>",e.ALPChart="ALPChart",e.ALPChartView="ALPChartView",e.ALPTable="ALPTable",e.ALPTableView="ALPTableView",e.AnalyticalListPageFilterBar="AnalyticalListPageFilterBar",e.AnnotationPathAsObject="AnnotationPathAsObject",e.ChartSettings="ChartSettings",e.ChartToolBarAction="ChartToolBarAction",e.CommonHeaderFacetSettings="CommonHeaderFacetSettings",e.CompactFilters="CompactFilters",e.CustomFooterActionOP="CustomFooterActionOP",e.CustomHeaderAction="CustomHeaderAction",e.CustomHeaderActionOP="CustomHeaderActionOP",e.CustomFormActionOP="CustomFormActionOP",e.CustomTableAction="CustomTableAction",e.CustomTableActionOP="CustomTableActionOP",e.CustomColumn="TableCustomColumn",e.CustomColumnOP="TableCustomColumnOP",e.CustomColumns="TableCustomColumns",e.CustomSections="CustomSections",e.FieldPath="FieldPath",e.Field="Field",e.Fields="Fields",e.Fields4Dialog="Fields4Dialog",e.FilterBar="FilterBar",e.FilterBarVisualFilters="FilterBarVisualFilters",e.Footer="Footer",e.FooterAction="FooterAction",e.FooterActionV4="FooterActionV4",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.ObjectPageFormActionGroup="ObjectPageFormActionGroup",e.GenericActions="GenericActions",e.GenericColumnsOP="GenericColumnsOP",e.GenericFooter="GenericFooter",e.GenericSections="GenericSections",e.GenericSubSections="GenericSubSections",e.GlobalTableSettings="GlobalTableSettings",e.Header="Header",e.HeaderActions="HeaderActions",e.HeaderActionsStandard="HeaderActionsStandard",e.HeaderActionStandard="HeaderActionStandard",e.ObjectPageHeaderAction="ObjectPageHeaderAction",e.ObjectPageHeaderActionGroup="ObjectPageHeaderActionGroup",e.ObjectPageHeaderActionStandard="ObjectPageHeaderActionStandard",e.ObjectPageHeaderActions="ObjectPageHeaderActions",e.HeaderSections="HeaderSections",e.LineItems="LineItems",e.LineItemsOfView="LineItemsOfView",e.ListReportFilterBar="ListReportFilterBar",e.LRTableView="LRTableView",e.LRChartView="LRChartView",e.MultiEditV2="MultiEdit",e.MultiTableModeV4="MultiTableModeV4",e.ObjectPageChart="ObjectPageChart",e.ObjectPageCustomHeaderSectionFragment="ObjectPageCustomHeaderSectionFragment",e.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",e.ObjectPageCustomSubSectionFragment="ObjectPageCustomSubSectionFragment",e.ObjectPageForm="ObjectPageForm",e.ObjectPageFooter="ObjectPageFooter",e.ObjectPageFooterAction="ObjectPageFooterAction",e.ObjectPageFooterActions="ObjectPageFooterActions",e.ObjectPageFooterActionStandard="ObjectPageFooterActionStandard",e.ObjectPageHeader="ObjectPageHeader",e.ObjectPageHeaderSectionForm="ObjectPageHeaderSectionForm",e.ObjectPageHeaderSectionChart="ObjectPageHeaderSectionChart",e.ObjectPageHeaderSectionDataPoint="ObjectPageHeaderSectionDataPoint",e.ObjectPageHeaderSectionContact="ObjectPageHeaderSectionContact",e.ObjectPageHeaderSectionAddress="ObjectPageHeaderSectionAddress",e.ObjectPageLayout="ObjectPageLayout",e.ObjectPagePresentationVariant="ObjectPagePresentationVariant",e.ObjectPageSectionAddress="ObjectPageSectionAddress",e.ObjectPageSectionChart="ObjectPageSectionChart",e.ObjectPageSectionContact="ObjectPageSectionContact",e.ObjectPageSectionDataPoint="ObjectPageSectionDataPoint",e.ObjectPageSectionForm="ObjectPageSectionForm",e.ObjectPageSectionPresentationVariant="ObjectPageSectionPresentationVariant",e.ObjectPageSectionTableV4="ObjectPageSectionTableV4",e.ObjectPageSubSections="ObjectPageSubSections",e.ObjectPageResponsiveTableV4="ObjectPageResponsiveTableV4",e.ObjectPageAnalyticalTableV4="ObjectPageAnalyticalTableV4",e.ObjectPageGridTableV4="ObjectPageGridTableV4",e.ObjectPageTreeTableV4="ObjectPageTreeTableV4",e.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",e.ObjectPageToolBarActionGroup="ObjectPageToolBarActionGroup",e.ObjectPageToolBarActions="ObjectPageToolBarActions",e.Position="Position",e.PositionOP="PositionOP",e.QuickVariant="QuickVariant",e.QuickVariantSelectionOP="QuickVariantSelectionOP",e.QuickVariantSelectionV4OP="QuickVariantSelectionV4OP",e.RelatedFacetKeys="RelatedFacetKeys",e.Sections="Sections",e.SectionActions="SectionActions",e.SelectionFields="SelectionFields",e.Table="Table",e.TableSPV="TableSPV",e.TableColumn="TableColumn",e.TableViewExtension="TableViewExtension",e.ToolBarAction="ToolBarAction",e.ToolBarActionGroup="ToolBarActionGroup",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarActionGroup="ViewToolBarActionGroup",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.CustomHeaderActionPosition="CustomHeaderActionPosition",e.CustomHeaderActionPositionOP="CustomHeaderActionPositionOP",e.CustomFooterActionPositionOP="CustomFooterActionPositionOP",e.CustomExtensionFragment="CustomExtensionFragment",e.CustomFilterField="CustomFilterField",e.CustomFilterFieldPosition="CustomFilterFieldPosition",e.SaveAndEdit="SaveAndEdit",e.ObjectPageCustomSectionActions="ObjectPageCustomSectionActions",e.CustomSectionActionOP="CustomSectionActionOP",e.CustomSectionActionPositionOP="CustomSectionActionPositionOP",e))(NL||{}),FL=(e=>(e.actions="actions",e.annotationPath="annotationPath",e.chart="chart",e.columns="columns",e.defaultPath="defaultPath",e.defaultTemplateAnnotationPath="defaultTemplateAnnotationPath",e.footer="footer",e.header="header",e.sections="sections",e.table="table",e.views="views",e.visualFilters="visualFilters",e.selectionFields="selectionFields",e))(FL||{}),DL=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlId="controlId",e.controlType="controlType",e.conversionExit="conversionExit",e.dataType="dataType",e.deletable="deletable",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.icon="icon",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.manifestPath="manifestPath",e.messages="messages",e.propertyIndex="propertyIndex",e.target="target",e))(DL||{}),_L=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(_L||{}),fG="webapp/manifest.json",uG="/@com.sap.vocabularies",pG="::@com.sap.vocabularies",dG="com.sap.vocabularies.UI.v1",gG="com.sap.vocabularies.UI.v1.",mG="@com.sap.vocabularies.UI.v1.",hG="/quickVariantSelection",yG="/quickVariantSelectionX",TG="/filterSettings/dateSettings",vG=".fragment.",VL=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(VL||{}),wL=(e=>(e.restricted="restricted",e))(wL||{}),ML=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(ML||{}),kL=(e=>(e.persistence="persistence",e.discovery="discovery",e))(kL||{}),UL=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(UL||{}),jL=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(jL||{}),$L=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))($L||{}),BL=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e.fiori="sap.fiori",e))(BL||{}),bG="sap.ui.generic.app/settings",HL=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(HL||{}),SG="sap.fe.templates.RootContainer.view.Fcl",EG="appRootView",GL=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(GL||{}),AG="sap.ui.core.mvc.View",PG="sap.ui.core.Fragment",WL=(e=>(e.sapUiChartPaletteQualitativeHue1="sapUiChartPaletteQualitativeHue1",e.sapUiChartPaletteQualitativeHue2="sapUiChartPaletteQualitativeHue2",e.sapUiChartPaletteQualitativeHue3="sapUiChartPaletteQualitativeHue3",e.sapUiChartPaletteQualitativeHue4="sapUiChartPaletteQualitativeHue4",e.sapUiChartPaletteQualitativeHue5="sapUiChartPaletteQualitativeHue5",e.sapUiChartPaletteQualitativeHue6="sapUiChartPaletteQualitativeHue6",e.sapUiChartPaletteQualitativeHue7="sapUiChartPaletteQualitativeHue7",e.sapUiChartPaletteQualitativeHue8="sapUiChartPaletteQualitativeHue8",e.sapUiChartPaletteQualitativeHue9="sapUiChartPaletteQualitativeHue9",e.sapUiChartPaletteQualitativeHue10="sapUiChartPaletteQualitativeHue10",e.sapUiChartPaletteQualitativeHue11="sapUiChartPaletteQualitativeHue11",e.sapUiChartPaletteQualitativeHue12="sapUiChartPaletteQualitativeHue12",e.sapUiChartPaletteQualitativeHue13="sapUiChartPaletteQualitativeHue13",e.sapUiChartPaletteQualitativeHue14="sapUiChartPaletteQualitativeHue14",e.sapUiChartPaletteQualitativeHue15="sapUiChartPaletteQualitativeHue15",e.sapUiChartPaletteQualitativeHue16="sapUiChartPaletteQualitativeHue16",e.sapUiChartPaletteQualitativeHue17="sapUiChartPaletteQualitativeHue17",e.sapUiChartPaletteQualitativeHue18="sapUiChartPaletteQualitativeHue18",e.sapUiChartPaletteQualitativeHue19="sapUiChartPaletteQualitativeHue19",e.sapUiChartPaletteQualitativeHue20="sapUiChartPaletteQualitativeHue20",e.sapUiChartPaletteQualitativeHue21="sapUiChartPaletteQualitativeHue21",e.sapUiChartPaletteQualitativeHue22="sapUiChartPaletteQualitativeHue22",e.sapUiChartPaletteSemanticBadLight3="sapUiChartPaletteSemanticBadLight3",e.sapUiChartPaletteSemanticBadLight2="sapUiChartPaletteSemanticBadLight2",e.sapUiChartPaletteSemanticBadLight1="sapUiChartPaletteSemanticBadLight1",e.sapUiChartPaletteSemanticBad="sapUiChartPaletteSemanticBad",e.sapUiChartPaletteSemanticBadDark1="sapUiChartPaletteSemanticBadDark1",e.sapUiChartPaletteSemanticBadDark2="sapUiChartPaletteSemanticBadDark2",e.sapUiChartPaletteSemanticCriticalLight3="sapUiChartPaletteSemanticCriticalLight3",e.sapUiChartPaletteSemanticCriticalLight2="sapUiChartPaletteSemanticCriticalLight2",e.sapUiChartPaletteSemanticCriticalLight1="sapUiChartPaletteSemanticCriticalLight1",e.sapUiChartPaletteSemanticCritical="sapUiChartPaletteSemanticCritical",e.sapUiChartPaletteSemanticCriticalDark1="sapUiChartPaletteSemanticCriticalDark1",e.sapUiChartPaletteSemanticCriticalDark2="sapUiChartPaletteSemanticCriticalDark2",e.sapUiChartPaletteSemanticGoodLight3="sapUiChartPaletteSemanticGoodLight3",e.sapUiChartPaletteSemanticGoodLight2="sapUiChartPaletteSemanticGoodLight2",e.sapUiChartPaletteSemanticGoodLight1="sapUiChartPaletteSemanticGoodLight1",e.sapUiChartPaletteSemanticGood="sapUiChartPaletteSemanticGood",e.sapUiChartPaletteSemanticGoodDark1="sapUiChartPaletteSemanticGoodDark1",e.sapUiChartPaletteSemanticGoodDark2="sapUiChartPaletteSemanticGoodDark2",e.sapUiChartPaletteSemanticNeutralLight3="sapUiChartPaletteSemanticNeutralLight3",e.sapUiChartPaletteSemanticNeutralLight2="sapUiChartPaletteSemanticNeutralLight2",e.sapUiChartPaletteSemanticNeutralLight1="sapUiChartPaletteSemanticNeutralLight1",e.sapUiChartPaletteSemanticNeutral="sapUiChartPaletteSemanticNeutral",e.sapUiChartPaletteSemanticNeutralDark1="sapUiChartPaletteSemanticNeutralDark1",e.sapUiChartPaletteSemanticNeutralDark2="sapUiChartPaletteSemanticNeutralDark2",e.sapUiChartPaletteNoSemDiv1Dark2="sapUiChartPaletteNoSemDiv1Dark2",e.sapUiChartPaletteNoSemDiv1Dark1="sapUiChartPaletteNoSemDiv1Dark1",e.sapUiChartPaletteNoSemDiv1="sapUiChartPaletteNoSemDiv1",e.sapUiChartPaletteNoSemDiv1Light1="sapUiChartPaletteNoSemDiv1Light1",e.sapUiChartPaletteNoSemDiv1Light2="sapUiChartPaletteNoSemDiv1Light2",e.sapUiChartPaletteNoSemDiv1Light3="sapUiChartPaletteNoSemDiv1Light3",e.sapUiChartPaletteSequentialHue1Light3="sapUiChartPaletteSequentialHue1Light3",e.sapUiChartPaletteSequentialHue1Light2="sapUiChartPaletteSequentialHue1Light2",e.sapUiChartPaletteSequentialHue1Light1="sapUiChartPaletteSequentialHue1Light1",e.sapUiChartPaletteSequentialHue1="sapUiChartPaletteSequentialHue1",e.sapUiChartPaletteSequentialHue1Dark1="sapUiChartPaletteSequentialHue1Dark1",e.sapUiChartPaletteSequentialHue1Dark2="sapUiChartPaletteSequentialHue1Dark2",e.sapUiChartPaletteSequentialHue2Light3="sapUiChartPaletteSequentialHue2Light3",e.sapUiChartPaletteSequentialHue2Light2="sapUiChartPaletteSequentialHue2Light2",e.sapUiChartPaletteSequentialHue2Light1="sapUiChartPaletteSequentialHue2Light1",e.sapUiChartPaletteSequentialHue2="sapUiChartPaletteSequentialHue2",e.sapUiChartPaletteSequentialHue2Dark1="sapUiChartPaletteSequentialHue2Dark1",e.sapUiChartPaletteSequentialHue2Dark2="sapUiChartPaletteSequentialHue2Dark2",e.sapUiChartPaletteSequentialHue3Light3="sapUiChartPaletteSequentialHue3Light3",e.sapUiChartPaletteSequentialHue3Light2="sapUiChartPaletteSequentialHue3Light2",e.sapUiChartPaletteSequentialHue3Light1="sapUiChartPaletteSequentialHue3Light1",e.sapUiChartPaletteSequentialHue3="sapUiChartPaletteSequentialHue3",e.sapUiChartPaletteSequentialHue3Dark1="sapUiChartPaletteSequentialHue3Dark1",e.sapUiChartPaletteSequentialHue3Dark2="sapUiChartPaletteSequentialHue3Dark2",e.sapUiChartPaletteSequentialHue6Light3="sapUiChartPaletteSequentialHue6Light3",e.sapUiChartPaletteSequentialHue6Light2="sapUiChartPaletteSequentialHue6Light2",e.sapUiChartPaletteSequentialHue6Light1="sapUiChartPaletteSequentialHue6Light1",e.sapUiChartPaletteSequentialHue6="sapUiChartPaletteSequentialHue6",e.sapUiChartPaletteSequentialHue6Dark1="sapUiChartPaletteSequentialHue6Dark1",e.sapUiChartPaletteSequentialHue6Dark2="sapUiChartPaletteSequentialHue6Dark2",e.sapUiChartPaletteSequentialNeutralLight3="sapUiChartPaletteSequentialNeutralLight3",e.sapUiChartPaletteSequentialNeutralLight2="sapUiChartPaletteSequentialNeutralLight2",e.sapUiChartPaletteSequentialNeutralLight1="sapUiChartPaletteSequentialNeutralLight1",e.sapUiChartPaletteSequentialNeutral="sapUiChartPaletteSequentialNeutral",e.sapUiChartPaletteSequentialNeutralDark1="sapUiChartPaletteSequentialNeutralDark1",e.sapUiChartPaletteSequentialNeutralDark2="sapUiChartPaletteSequentialNeutralDark2",e.sapUiChoroplethRegionBG="sapUiChoroplethRegionBG",e.sapUiChartZeroAxisColor="sapUiChartZeroAxisColor",e.sapUiNegativeElement="sapUiNegativeElement",e.sapUiCriticalElement="sapUiCriticalElement",e.sapUiPositiveElement="sapUiPositiveElement",e.sapUiNeutralElement="sapUiNeutralElement",e))(WL||{}),KL=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(KL||{}),xG={error:"Error",warning:"Warning",info:"Information"},XL=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(XL||{}),QL=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(QL||{}),qL=(e=>(e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage",e))(qL||{}),YL=(e=>(e.BuildingBlocks="BuildingBlocks",e))(YL||{}),zL={};cb(zL,{CardSettingsType:o(()=>eN,"CardSettingsType"),CardTemplateType:o(()=>ZL,"CardTemplateType"),ChartCardType:o(()=>JL,"ChartCardType"),ChartType:o(()=>yN,"ChartType"),ContainerLayoutType:o(()=>SN,"ContainerLayoutType"),CreateMode:o(()=>bN,"CreateMode"),DateRangeType:o(()=>aN,"DateRangeType"),DefaultContentView:o(()=>gN,"DefaultContentView"),DefaultDateRangeValueType:o(()=>sN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>mN,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>vN,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>OG,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>NG,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>LG,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>RG,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>cN,"FilterPathType"),IgnoredFieldsType:o(()=>dN,"IgnoredFieldsType"),LinkListFlavorType:o(()=>oN,"LinkListFlavorType"),ListFlavorType:o(()=>nN,"ListFlavorType"),ListTypeType:o(()=>iN,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>hN,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>tN,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>DG,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>FG,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>wG,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>VG,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>_G,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>TN,"SectionPosition"),SortOrderType:o(()=>rN,"SortOrderType"),Strategy:o(()=>pN,"Strategy"),TableColumnExtensionTypeV2:o(()=>uN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>fN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>IG,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>CG,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>lN,"customColumnViewTypes")});var JL=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(JL||{}),ZL=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(ZL||{}),CG={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},IG={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},eN=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(eN||{}),tN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(tN||{}),nN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(nN||{}),iN=(e=>(e.extended="extended",e.condensed="condensed",e))(iN||{}),rN=(e=>(e.ascending="ascending",e.descending="descending",e))(rN||{}),oN=(e=>(e.standard="standard",e.carousel="carousel",e))(oN||{}),aN=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(aN||{}),sN=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(sN||{}),cN=(e=>(e.key="key",e.catgory="category",e))(cN||{}),lN=(e=>(e.XML="XML",e))(lN||{}),fN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(fN||{}),uN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(uN||{}),pN=(e=>(e.extension="extension",e))(pN||{}),dN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(dN||{}),gN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(gN||{}),mN=(e=>(e.visual="visual",e.compact="compact",e))(mN||{}),hN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(hN||{}),yN=(e=>(e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall",e))(yN||{}),TN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(TN||{}),vN=(e=>(e.XML="XML",e))(vN||{}),bN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(bN||{}),OG="sap.suite.ui.generic.template",RG="sap.suite.ui.generic.template.ObjectPage",LG="sap.suite.ui.generic.template.ListReport",NG="sap.suite.ui.generic.template.AnalyticalListPage",FG="sap.ui.viewExtensions",DG="sap.ui.controllerExtensions",_G="sap.suite.ui.generic.template.ObjectPage.view.Details",VG="sap.suite.ui.generic.template.ListReport.view.ListReport",wG="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",SN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(SN||{}),EN={};cb(EN,{ActionPlacement:o(()=>AN,"ActionPlacement"),Availability:o(()=>UN,"Availability"),CustomSectionViewTypesV4:o(()=>VN,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>ON,"DefaultPathType"),FE_NAMESPACE_V4:o(()=>MG,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:o(()=>$G,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>kG,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>jG,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>UG,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>HG,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>NN,"FilterFieldPlacement"),HorizontalAlign:o(()=>jN,"HorizontalAlign"),InitialLayoutType:o(()=>LN,"InitialLayoutType"),InitialLoadType:o(()=>IN,"InitialLoadType"),LayoutType:o(()=>RN,"LayoutType"),Placement:o(()=>kN,"Placement"),RowCountMode:o(()=>xN,"RowCountMode"),SAPUI5_CONTROLLER_EXTENSION:o(()=>WG,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>GG,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>BG,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>XG,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>KG,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>DN,"SectionLayoutType"),SectionPosition:o(()=>_N,"SectionPosition"),SectionPositionV4:o(()=>MN,"SectionPositionV4"),SelectType:o(()=>FN,"SelectType"),SelectionMode:o(()=>PN,"SelectionMode"),TableCreationModeType:o(()=>wN,"TableCreationModeType"),TableTypeV4:o(()=>CN,"TableTypeV4"),VariantManagementTypeListReport:o(()=>BN,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>$N,"VariantManagementTypeObjectPage")});var AN=(e=>(e.After="After",e.Before="Before",e))(AN||{}),PN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(PN||{}),xN=(e=>(e.Fixed="Fixed",e.Auto="Auto",e))(xN||{}),CN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(CN||{}),IN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(IN||{}),ON=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(ON||{}),RN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(RN||{}),LN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(LN||{}),NN=(e=>(e.After="After",e.Before="Before",e))(NN||{}),FN=(e=>(e.single="single",e.multi="multi",e))(FN||{}),DN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(DN||{}),_N=(e=>(e.After="After",e.Before="Before",e))(_N||{}),VN=(e=>(e.XML="XML",e))(VN||{}),wN=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(wN||{}),MG="sap.fe",kG="sap.fe.core.fpm",UG="sap.fe.templates.ObjectPage",jG="sap.fe.templates.ListReport",$G="sap.fe.templates.AnalyticalListPage",BG="XMLFragment",MN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(MN||{}),HG="sap.f.routing.Router",GG="sap.f",WG="sap.ui.controllerExtensions",KG="sap.fe.templates.ObjectPage.ObjectPageController",XG="sap.fe.templates.ListReport.ListReportController",kN=(e=>(e.After="After",e.Before="Before",e))(kN||{}),UN=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(UN||{}),jN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(jN||{}),$N=(e=>(e.None="None",e.Control="Control",e))($N||{}),BN=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(BN||{})});var YN=ze(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.Features=zi.CustomExtensionType=zi.TemplateType=zi.PropertyMessageType=zi.logSeverityLabel=zi.LogSeverity=void 0;var WN;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(WN||(zi.LogSeverity=WN={}));zi.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var KN;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(KN||(zi.PropertyMessageType=KN={}));var XN;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(XN||(zi.TemplateType=XN={}));var QN;(function(e){e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage"})(QN||(zi.CustomExtensionType=QN={}));var qN;(function(e){e.BuildingBlocks="BuildingBlocks"})(qN||(zi.Features=qN={}))});var AF=ze((QZ,EF)=>{var ub=Object.defineProperty,QG=Object.getOwnPropertyDescriptor,qG=Object.getOwnPropertyNames,YG=Object.prototype.hasOwnProperty,zG=o((e,t)=>{for(var n in t)ub(e,n,{get:t[n],enumerable:!0})},"h"),JG=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of qG(t))!YG.call(e,r)&&r!==n&&ub(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=QG(t,r))||i.enumerable});return e},"M"),ZG=o(e=>JG(ub({},"__esModule",{value:!0}),e),"Q"),zN={};zG(zN,{CardSettingsType:o(()=>eF,"CardSettingsType"),CardTemplateType:o(()=>ZN,"CardTemplateType"),ChartCardType:o(()=>JN,"ChartCardType"),ChartType:o(()=>yF,"ChartType"),ContainerLayoutType:o(()=>SF,"ContainerLayoutType"),CreateMode:o(()=>bF,"CreateMode"),DateRangeType:o(()=>aF,"DateRangeType"),DefaultContentView:o(()=>gF,"DefaultContentView"),DefaultDateRangeValueType:o(()=>sF,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>mF,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>vF,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>nW,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>oW,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>rW,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>iW,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>cF,"FilterPathType"),IgnoredFieldsType:o(()=>dF,"IgnoredFieldsType"),LinkListFlavorType:o(()=>oF,"LinkListFlavorType"),ListFlavorType:o(()=>nF,"ListFlavorType"),ListTypeType:o(()=>iF,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>hF,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>tF,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>sW,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>aW,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>fW,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>lW,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>cW,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>TF,"SectionPosition"),SortOrderType:o(()=>rF,"SortOrderType"),Strategy:o(()=>pF,"Strategy"),TableColumnExtensionTypeV2:o(()=>uF,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>fF,"TableTypeV2"),cardTemplateSettingsMap:o(()=>tW,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>eW,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>lF,"customColumnViewTypes")});EF.exports=ZG(zN);var JN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(JN||{}),ZN=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(ZN||{}),eW={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},tW={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},eF=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(eF||{}),tF=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(tF||{}),nF=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(nF||{}),iF=(e=>(e.extended="extended",e.condensed="condensed",e))(iF||{}),rF=(e=>(e.ascending="ascending",e.descending="descending",e))(rF||{}),oF=(e=>(e.standard="standard",e.carousel="carousel",e))(oF||{}),aF=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(aF||{}),sF=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(sF||{}),cF=(e=>(e.key="key",e.catgory="category",e))(cF||{}),lF=(e=>(e.XML="XML",e))(lF||{}),fF=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(fF||{}),uF=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(uF||{}),pF=(e=>(e.extension="extension",e))(pF||{}),dF=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(dF||{}),gF=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(gF||{}),mF=(e=>(e.visual="visual",e.compact="compact",e))(mF||{}),hF=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(hF||{}),yF=(e=>(e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall",e))(yF||{}),TF=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(TF||{}),vF=(e=>(e.XML="XML",e))(vF||{}),bF=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(bF||{}),nW="sap.suite.ui.generic.template",iW="sap.suite.ui.generic.template.ObjectPage",rW="sap.suite.ui.generic.template.ListReport",oW="sap.suite.ui.generic.template.AnalyticalListPage",aW="sap.ui.viewExtensions",sW="sap.ui.controllerExtensions",cW="sap.suite.ui.generic.template.ObjectPage.view.Details",lW="sap.suite.ui.generic.template.ListReport.view.ListReport",fW="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",SF=(e=>(e.fixed="fixed",e.resizable="resizable",e))(SF||{})});var KF=ze((YZ,WF)=>{var pb=Object.defineProperty,uW=Object.getOwnPropertyDescriptor,pW=Object.getOwnPropertyNames,dW=Object.prototype.hasOwnProperty,gW=o((e,t)=>{for(var n in t)pb(e,n,{get:t[n],enumerable:!0})},"j"),mW=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of pW(t))!dW.call(e,r)&&r!==n&&pb(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=uW(t,r))||i.enumerable});return e},"R"),hW=o(e=>mW(pb({},"__esModule",{value:!0}),e),"h"),PF={};gW(PF,{ActionPlacement:o(()=>xF,"ActionPlacement"),Availability:o(()=>$F,"Availability"),CustomSectionViewTypesV4:o(()=>MF,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>LF,"DefaultPathType"),FE_NAMESPACE_V4:o(()=>yW,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:o(()=>SW,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>TW,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>bW,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>vW,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>AW,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>DF,"FilterFieldPlacement"),HorizontalAlign:o(()=>BF,"HorizontalAlign"),InitialLayoutType:o(()=>FF,"InitialLayoutType"),InitialLoadType:o(()=>RF,"InitialLoadType"),LayoutType:o(()=>NF,"LayoutType"),Placement:o(()=>jF,"Placement"),RowCountMode:o(()=>IF,"RowCountMode"),SAPUI5_CONTROLLER_EXTENSION:o(()=>xW,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>PW,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>EW,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>IW,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>CW,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>VF,"SectionLayoutType"),SectionPosition:o(()=>wF,"SectionPosition"),SectionPositionV4:o(()=>UF,"SectionPositionV4"),SelectType:o(()=>_F,"SelectType"),SelectionMode:o(()=>CF,"SelectionMode"),TableCreationModeType:o(()=>kF,"TableCreationModeType"),TableTypeV4:o(()=>OF,"TableTypeV4"),VariantManagementTypeListReport:o(()=>GF,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>HF,"VariantManagementTypeObjectPage")});WF.exports=hW(PF);var xF=(e=>(e.After="After",e.Before="Before",e))(xF||{}),CF=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(CF||{}),IF=(e=>(e.Fixed="Fixed",e.Auto="Auto",e))(IF||{}),OF=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(OF||{}),RF=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(RF||{}),LF=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(LF||{}),NF=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(NF||{}),FF=(e=>(e.Compact="Compact",e.Visual="Visual",e))(FF||{}),DF=(e=>(e.After="After",e.Before="Before",e))(DF||{}),_F=(e=>(e.single="single",e.multi="multi",e))(_F||{}),VF=(e=>(e.Tabs="Tabs",e.Page="Page",e))(VF||{}),wF=(e=>(e.After="After",e.Before="Before",e))(wF||{}),MF=(e=>(e.XML="XML",e))(MF||{}),kF=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(kF||{}),yW="sap.fe",TW="sap.fe.core.fpm",vW="sap.fe.templates.ObjectPage",bW="sap.fe.templates.ListReport",SW="sap.fe.templates.AnalyticalListPage",EW="XMLFragment",UF=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(UF||{}),AW="sap.f.routing.Router",PW="sap.f",xW="sap.ui.controllerExtensions",CW="sap.fe.templates.ObjectPage.ObjectPageController",IW="sap.fe.templates.ListReport.ListReportController",jF=(e=>(e.After="After",e.Before="Before",e))(jF||{}),$F=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))($F||{}),BF=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(BF||{}),HF=(e=>(e.None="None",e.Control="Control",e))(HF||{}),GF=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(GF||{})});var ce=ze(Si=>{"use strict";var XF=Si&&Si.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),OW=Si&&Si.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),QF=Si&&Si.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&XF(t,e,n)},qF=Si&&Si.__importStar||function(){var e=o(function(t){return e=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var i=e(t),r=0;r<i.length;r++)i[r]!=="default"&&XF(n,t,i[r]);return OW(n,t),n}}();Object.defineProperty(Si,"__esModule",{value:!0});Si.v4=Si.v2=void 0;QF(GN(),Si);QF(YN(),Si);Si.v2=qF(AF());Si.v4=qF(KF())});var Lb=ze((hee,l0)=>{"use strict";var XW=o(function(t){return QW(t)&&!qW(t)},"isMergeableObject");function QW(e){return!!e&&typeof e=="object"}o(QW,"isNonNullObject");function qW(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||JW(e)}o(qW,"isSpecial");var YW=typeof Symbol=="function"&&Symbol.for,zW=YW?Symbol.for("react.element"):60103;function JW(e){return e.$$typeof===zW}o(JW,"isReactElement");function ZW(e){return Array.isArray(e)?[]:{}}o(ZW,"emptyTarget");function Eu(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Al(ZW(e),e,t):e}o(Eu,"cloneUnlessOtherwiseSpecified");function e8(e,t,n){return e.concat(t).map(function(i){return Eu(i,n)})}o(e8,"defaultArrayMerge");function t8(e,t){if(!t.customMerge)return Al;var n=t.customMerge(e);return typeof n=="function"?n:Al}o(t8,"getMergeFunction");function n8(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(n8,"getEnumerableOwnPropertySymbols");function s0(e){return Object.keys(e).concat(n8(e))}o(s0,"getKeys");function c0(e,t){try{return t in e}catch{return!1}}o(c0,"propertyIsOnObject");function i8(e,t){return c0(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(i8,"propertyIsUnsafe");function r8(e,t,n){var i={};return n.isMergeableObject(e)&&s0(e).forEach(function(r){i[r]=Eu(e[r],n)}),s0(t).forEach(function(r){i8(e,r)||(c0(e,r)&&n.isMergeableObject(t[r])?i[r]=t8(r,n)(e[r],t[r],n):i[r]=Eu(t[r],n))}),i}o(r8,"mergeObject");function Al(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||e8,n.isMergeableObject=n.isMergeableObject||XW,n.cloneUnlessOtherwiseSpecified=Eu;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):r8(e,t,n):Eu(t,n)}o(Al,"deepmerge");Al.all=o(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return Al(i,r,n)},{})},"deepmergeAll");var o8=Al;l0.exports=o8});var Qg=ze(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.mergeAnnotations=Tt.addGetByValue=Tt.createIndexedFind=Tt.lazy=Tt.Decimal=Tt.Double=Tt.isComplexTypeDefinition=Tt.unalias=Tt.alias=Tt.substringBeforeLast=Tt.substringBeforeFirst=Tt.splitAtLast=Tt.splitAtFirst=Tt.defaultReferences=Tt.TermToTypes=Tt.EnumIsFlag=void 0;var a8=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(Tt,"EnumIsFlag",{enumerable:!0,get:o(function(){return a8.EnumIsFlag},"get")});var s8=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(Tt,"TermToTypes",{enumerable:!0,get:o(function(){return s8.TermToTypes},"get")});var c8=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(Tt,"defaultReferences",{enumerable:!0,get:o(function(){return c8.VocabularyReferences},"get")});function f0(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(f0,"splitAt");function u0(e,t){return t<0?e:e.substring(0,t)}o(u0,"substringAt");function Xg(e,t){return f0(e,e.indexOf(t))}o(Xg,"splitAtFirst");Tt.splitAtFirst=Xg;function p0(e,t){return f0(e,e.lastIndexOf(t))}o(p0,"splitAtLast");Tt.splitAtLast=p0;function l8(e,t){return u0(e,e.indexOf(t))}o(l8,"substringBeforeFirst");Tt.substringBeforeFirst=l8;function f8(e,t){return u0(e,e.lastIndexOf(t))}o(f8,"substringBeforeLast");Tt.substringBeforeLast=f8;function d0(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=p0(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=Xg(t,"@");return`${a}@${d0(e,s)}`}else return t}o(d0,"alias");Tt.alias=d0;function Nb(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=Xg(a,".");if(!l||l.includes("."))return a;let u=s.startsWith("@"),p=u?s.substring(1):s,g=e.referenceMap[p];return g?u?`@${g.namespace}.${l}`:`${g.namespace}.${l}`:n&&!u?`${n}.${l}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[l,u]=Xg(s,"("),p=[r(l)];if(u){let g=u.slice(0,-1);p.push(`(${r(g)})`)}return a.push(p.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}o(Nb,"unalias");Tt.unalias=Nb;function u8(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(u8,"isComplexTypeDefinition");Tt.isComplexTypeDefinition=u8;function p8(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(p8,"Double");Tt.Double=p8;function d8(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(d8,"Decimal");Tt.Decimal=d8;function g8(e,t,n){let i=Symbol("initial"),r=i;Object.defineProperty(e,t,{enumerable:!0,get(){return r===i&&(r=n()),r},set(a){r=a}})}o(g8,"lazy");Tt.lazy=g8;function g0(e,t){let n=new Map;return o(function(r){let a=n.get(r);return(a==null?void 0:a[t])===r?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===r})},"find")}o(g0,"createIndexedFind");Tt.createIndexedFind=g0;function m8(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:g0(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(m8,"addGetByValue");Tt.addGetByValue=m8;function h8(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let u=(a=Nb(e,s))!==null&&a!==void 0?a:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=Nb(e,g.term))!==null&&m!==void 0?m:g.term,g.fullyQualifiedName=g.qualifier?`${u}@${g.term}#${g.qualifier}`:`${u}@${g.term}`,g.__source=i,g}).filter(g=>!n[u].some(m=>m.term===g.term&&m.qualifier===g.qualifier));n[u].push(...p)}return n},{})}o(h8,"mergeAnnotations");Tt.mergeAnnotations=h8});var O0=ze(zg=>{"use strict";Object.defineProperty(zg,"__esModule",{value:!0});zg.convert=void 0;var qg=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Ae=Qg(),fo=Symbol("Annotation Target");function pa(e,t){return e[e.length-1]!==t&&e.push(t),e}o(pa,"appendObjectPath");function Tr(e,t,n,i){var r,a,s,l,u;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let p=n.split("/").reduce((m,h)=>{if(h.includes("@")){let[S,b]=(0,Ae.splitAtFirst)(h,"@");m.push(S),m.push(`@${b}`)}else m.push(h);return m},[]);if(t===void 0)p[0].startsWith(`${e.rawSchema.namespace}.`)&&p[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(l=(s=(a=e.getConvertedEntityType(p[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(p[0]))!==null&&s!==void 0?s:e.getConvertedAction(p[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${p[0]}()`),p.shift()):t=e.getConvertedEntityContainer();else if(t[fo]!==void 0)t=t[fo];else if(t._type==="Property"){let m=(0,Ae.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(u=e.getConvertedEntityType(m))!==null&&u!==void 0?u:e.getConvertedComplexType(m)}let g=p.reduce((m,h)=>{var S,b,O,N,M;let G=o(j=>(m.messages.push({message:j}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=pa(m.objectPath,m.target),h.startsWith("@")&&h!=="@$ui5.overload"){let[j,re]=e.splitTerm(h),Z=(S=m.target.annotations[j.substring(1)])===null||S===void 0?void 0:S[re];return Z!==void 0?(m.target=Z,m):G(`Annotation '${h.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let j;if(h==="$AnnotationPath"?j=m.target.value:h==="$Path"&&(j=m.target.path),j!==void 0){let re=Tr(e,m.target[fo],j);return re.objectPath.forEach(Z=>{m.objectPath.includes(Z)||(m.objectPath=pa(m.objectPath,Z))}),m.target=re.target,m.objectPath=pa(m.objectPath,m.target),m}}switch((b=m.target)===null||b===void 0?void 0:b._type){case"Schema":break;case"EntityContainer":{let Z=m.target;if(h===""||e.unalias(h)===Z.fullyQualifiedName)return m;let oe=(N=(O=Z.entitySets.by_name(h))!==null&&O!==void 0?O:Z.singletons.by_name(h))!==null&&N!==void 0?N:Z.actionImports.by_name(h);if(oe)return m.target=oe,m}break;case"EntitySet":case"Singleton":{let Z=m.target;if(h===""||h==="$Type")return m.target=Z.entityType,m;if(h==="$")return m;if(h==="$NavigationPropertyBinding"){let Pe=Z.navigationPropertyBinding;return m.target=Pe,m}let oe=Tr(e,Z.entityType,h);return m.target=oe.target,m.objectPath=oe.objectPath.reduce(pa,m.objectPath),m}case"EntityType":{let Z=m.target;if(h===""||h==="$Type")return m;let oe=Z.entityProperties.by_name(h);if(oe)return m.target=oe,m;let Pe=Z.navigationProperties.by_name(h);if(Pe)return m.target=Pe,m;let D=(0,Ae.substringBeforeFirst)(e.unalias(h),"("),ut=Z.actions[D];if(ut)return m.target=ut,m}break;case"ActionImport":{let Z=Tr(e,m.target.action,h);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(pa,m.objectPath),m}case"Action":{let Z=m.target;if(h===""||h==="@$ui5.overload"||h==="0")return m;if(h==="$Parameter"&&Z.isBound)return m.target=Z.parameters,m;let oe=(M=Z.parameters[h])!==null&&M!==void 0?M:Z.parameters.find(Pe=>Pe.name===h);if(oe)return m.target=oe,m;break}case"Property":{let oe=m.target.targetType;if(oe!==void 0){let Pe=oe.properties.by_name(h);if(Pe)return m.target=Pe,m;let D=oe.navigationProperties.by_name(h);if(D)return m.target=D,m}}break;case"ActionParameter":let j=m.target.typeReference;if(j!==void 0){let Z=Tr(e,j,h);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(pa,m.objectPath),m}break;case"NavigationProperty":let re=Tr(e,m.target.targetType,h);return m.target=re.target,m.objectPath=re.objectPath.reduce(pa,m.objectPath),m;default:if(h==="")return m;if(m.target[h])return m.target=m.target[h],m.objectPath=pa(m.objectPath,m.target),m}return G(`Element '${h}' not found at ${m.target._type} '${m.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(g.messages.forEach(m=>e.logError(m.message)),!g.target)if(i){let m=v0(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
1
|
+
var qG=Object.create;var vl=Object.defineProperty;var pL=Object.getOwnPropertyDescriptor;var YG=Object.getOwnPropertyNames;var zG=Object.getPrototypeOf,JG=Object.prototype.hasOwnProperty;var o=(e,t)=>vl(e,"name",{value:t,configurable:!0});var Ye=(e,t)=>()=>(e&&(t=e(e=0)),t);var ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),lc=(e,t)=>{for(var n in t)vl(e,n,{get:t[n],enumerable:!0})},Mg=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of YG(t))!JG.call(e,r)&&r!==n&&vl(e,r,{get:()=>t[r],enumerable:!(i=pL(t,r))||i.enumerable});return e},fc=(e,t,n)=>(Mg(e,t,"default"),n&&Mg(n,t,"default")),te=(e,t,n)=>(n=e!=null?qG(zG(e)):{},Mg(t||!e||!e.__esModule?vl(n,"default",{value:e,enumerable:!0}):n,e)),kg=e=>Mg(vl({},"__esModule",{value:!0}),e),y=(e,t,n,i)=>{for(var r=i>1?void 0:i?pL(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&vl(t,n,r),r};var GN=ze((KZ,HN)=>{var sb=Object.defineProperty,ZG=Object.getOwnPropertyDescriptor,e5=Object.getOwnPropertyNames,t5=Object.prototype.hasOwnProperty,cb=o((e,t)=>{for(var n in t)sb(e,n,{get:t[n],enumerable:!0})},"C"),n5=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of e5(t))!t5.call(e,r)&&r!==n&&sb(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=ZG(t,r))||i.enumerable});return e},"et"),i5=o(e=>n5(sb({},"__esModule",{value:!0}),e),"tt"),dL={};cb(dL,{ACTIONTITLEPREFIX:o(()=>s5,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>bL,"ALPViewType"),ActionType:o(()=>EL,"ActionType"),ArtifactType:o(()=>AL,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>l5,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>OL,"ChangeIndicator"),ChartColor:o(()=>WL,"ChartColor"),CloudDevAdaptationStatus:o(()=>jL,"CloudDevAdaptationStatus"),ColorPaletteDefinitionType:o(()=>HL,"ColorPaletteDefinitionType"),ControlType:o(()=>PL,"ControlType"),CustomExtensionType:o(()=>qL,"CustomExtensionType"),DATESETTINGSPATH:o(()=>T5,"DATESETTINGSPATH"),DataSourceType:o(()=>$L,"DataSourceType"),DefinitionName:o(()=>NL,"DefinitionName"),DirName:o(()=>CL,"DirName"),DraftDiscardEnabledSettings:o(()=>wL,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>vL,"ExportArtifacts"),FACETTITLEPREFIX:o(()=>a5,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>A5,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>S5,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>v5,"FRAGMENTNAMEPART"),FacetBase:o(()=>RL,"FacetBase"),Features:o(()=>YL,"Features"),FileName:o(()=>IL,"FileName"),FioriElementsVersion:o(()=>gL,"FioriElementsVersion"),FlexChangeLayer:o(()=>yL,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>UL,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>hL,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>b5,"GENERICAPPSETTINGS"),LogSeverity:o(()=>KL,"LogSeverity"),MANIFESTPATH:o(()=>f5,"MANIFESTPATH"),MacrosPropertyType:o(()=>VL,"MacrosPropertyType"),ManifestSection:o(()=>BL,"ManifestSection"),OdataVersion:o(()=>mL,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>o5,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>r5,"PageType"),PageTypeV2:o(()=>lb,"PageTypeV2"),PageTypeV4:o(()=>fb,"PageTypeV4"),PropertyMessageType:o(()=>XL,"PropertyMessageType"),PropertyName:o(()=>FL,"PropertyName"),QUICKVARPATH:o(()=>h5,"QUICKVARPATH"),QUICKVARPATHX:o(()=>y5,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>P5,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>E5,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>_L,"SchemaKeyName"),SchemaTag:o(()=>DL,"SchemaTag"),SchemaType:o(()=>TL,"SchemaType"),SectionType:o(()=>SL,"SectionType"),StatePreservationMode:o(()=>kL,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>ML,"TableColumnVerticalAlignment"),TemplateType:o(()=>QL,"TemplateType"),UIVOCABULARY:o(()=>d5,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>m5,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>g5,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>p5,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>u5,"VOCWITHSLASH"),ViewTemplateType:o(()=>LL,"ViewTemplateType"),ViewTypes:o(()=>GL,"ViewTypes"),Visualization:o(()=>xL,"Visualization"),defaultExportResult:o(()=>c5,"defaultExportResult"),logSeverityLabel:o(()=>x5,"logSeverityLabel"),v2:o(()=>zL,"v2"),v4:o(()=>AN,"v4")});HN.exports=i5(dL);var lb=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(lb||{}),fb=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(fb||{}),r5={...lb,...fb},o5=new Map([["ListReport","sap.suite.ui.generic.template.ListReport.view.ListReport"],["AnalyticalListPage","sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"],["ObjectPage","sap.suite.ui.generic.template.ObjectPage.view.Details"]]),gL=(e=>(e.v2="v2",e.v4="v4",e))(gL||{}),mL=(e=>(e.v2="v2",e.v4="v4",e))(mL||{}),hL=(e=>(e.OneColumn="OneColumn",e.TwoColumnsBeginExpanded="TwoColumnsBeginExpanded",e.TwoColumnsMidExpanded="TwoColumnsMidExpanded",e.MidColumnFullScreen="MidColumnFullScreen",e.ThreeColumnsMidExpanded="ThreeColumnsMidExpanded",e.ThreeColumnsEndExpanded="ThreeColumnsEndExpanded",e.ThreeColumnsMidExpandedEndHidden="ThreeColumnsMidExpandedEndHidden",e.ThreeColumnsBeginExpandedEndHidden="ThreeColumnsBeginExpandedEndHidden",e.EndColumnFullScreen="EndColumnFullScreen",e))(hL||{}),yL=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(yL||{}),TL=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e.FPMCustomPage="FPMCustomPage",e.BuildingBlocks="BuildingBlocks",e))(TL||{}),vL=(e=>(e.flex="flex",e.manifest="manifest",e))(vL||{}),bL=(e=>(e.Primary="primary",e.Secondary="secondary",e))(bL||{}),SL=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(SL||{}),AL=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(AL||{}),EL=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(EL||{}),PL=(e=>(e.Table="sap.m.Table",e.TableColumn="sap.m.Column",e.SmartTable="sap.ui.comp.smarttable.SmartTable",e.SmartFilterBar="sap.ui.comp.smartfilterbar.SmartFilterBar",e.SmartChart="sap.ui.comp.smartchart.SmartChart",e.Group="sap.ui.comp.smartform.Group",e.GroupElement="sap.ui.comp.smartform.GroupElement",e.Button="sap.m.Button",e.ToolbarButton="sap.m.OverflowToolbarButton",e.Avatar="sap.f.Avatar",e.ObjectPageDynamicHeaderTitle="sap.uxap.ObjectPageDynamicHeaderTitle",e.ObjectPageGridProperties="sap.ui.layout.GridData",e.ObjectPageHeader="sap.uxap.ObjectPageHeader",e.ObjectPageLayout="sap.uxap.ObjectPageLayout",e.HeaderAction="sap.uxap.ObjectPageHeaderActionButton",e.ObjectPageHeaderSection="sap.m.VBox",e.DynamicPage="sap.f.DynamicPage",e.Form="sap.ui.layout.form",e.Chart="sap.suite.ui.microchart",e.Section="sap.uxap.ObjectPageSection",e.SubSection="sap.uxap.ObjectPageSubSection",e))(PL||{}),xL=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(xL||{}),CL=(e=>(e.Sapux="src",e.Schemas=".schemas",e.Pages="pages",e.Webapp="webapp",e.Temp=".tmp",e.Changes="changes",e.LocalService="localService",e.Controller="controller",e.View="view",e.Fragment="fragment",e.Ext="ext",e.VSCode=".vscode",e))(CL||{}),IL=(e=>(e.App="app.json",e))(IL||{}),a5="Facet ID: ",s5="Action ID: ",OL=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(OL||{}),c5={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},RL=(e=>(e.LineItem="LineItem",e.CollectionFacet="CollectionFacet",e.Chart="Chart",e.Form="Form",e.Identification="Identification",e.DataPoint="DataPoint",e.Address="Address",e.Contact="Contact",e.PresentationVariant="PresentationVariant",e.SelectionPresentationVariant="SelectionPresentationVariant",e.Unknown="",e))(RL||{}),l5="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",LL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(LL||{}),NL=(e=>(e.Action="Action",e.Actions="Actions",e.ActionsLR="Actions<LineItems>",e.ALPChart="ALPChart",e.ALPChartView="ALPChartView",e.ALPTable="ALPTable",e.ALPTableView="ALPTableView",e.AnalyticalListPageFilterBar="AnalyticalListPageFilterBar",e.AnnotationPathAsObject="AnnotationPathAsObject",e.ChartSettings="ChartSettings",e.ChartToolBarAction="ChartToolBarAction",e.CommonHeaderFacetSettings="CommonHeaderFacetSettings",e.CompactFilters="CompactFilters",e.CustomFooterActionOP="CustomFooterActionOP",e.CustomHeaderAction="CustomHeaderAction",e.CustomHeaderActionOP="CustomHeaderActionOP",e.CustomFormActionOP="CustomFormActionOP",e.CustomTableAction="CustomTableAction",e.CustomTableActionOP="CustomTableActionOP",e.CustomColumn="TableCustomColumn",e.CustomColumnOP="TableCustomColumnOP",e.CustomColumns="TableCustomColumns",e.CustomSections="CustomSections",e.FieldPath="FieldPath",e.Field="Field",e.Fields="Fields",e.Fields4Dialog="Fields4Dialog",e.FilterBar="FilterBar",e.FilterBarVisualFilters="FilterBarVisualFilters",e.Footer="Footer",e.FooterAction="FooterAction",e.FooterActionV4="FooterActionV4",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.ObjectPageFormActionGroup="ObjectPageFormActionGroup",e.GenericActions="GenericActions",e.GenericColumnsOP="GenericColumnsOP",e.GenericFooter="GenericFooter",e.GenericSections="GenericSections",e.GenericSubSections="GenericSubSections",e.GlobalTableSettings="GlobalTableSettings",e.Header="Header",e.HeaderActions="HeaderActions",e.HeaderActionsStandard="HeaderActionsStandard",e.HeaderActionStandard="HeaderActionStandard",e.ObjectPageHeaderAction="ObjectPageHeaderAction",e.ObjectPageHeaderActionGroup="ObjectPageHeaderActionGroup",e.ObjectPageHeaderActionStandard="ObjectPageHeaderActionStandard",e.ObjectPageHeaderActions="ObjectPageHeaderActions",e.HeaderSections="HeaderSections",e.LineItems="LineItems",e.LineItemsOfView="LineItemsOfView",e.ListReportFilterBar="ListReportFilterBar",e.LRTableView="LRTableView",e.LRChartView="LRChartView",e.MultiEditV2="MultiEdit",e.MultiTableModeV4="MultiTableModeV4",e.ObjectPageChart="ObjectPageChart",e.ObjectPageCustomHeaderSectionFragment="ObjectPageCustomHeaderSectionFragment",e.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",e.ObjectPageCustomSubSectionFragment="ObjectPageCustomSubSectionFragment",e.ObjectPageForm="ObjectPageForm",e.ObjectPageFooter="ObjectPageFooter",e.ObjectPageFooterAction="ObjectPageFooterAction",e.ObjectPageFooterActions="ObjectPageFooterActions",e.ObjectPageFooterActionStandard="ObjectPageFooterActionStandard",e.ObjectPageHeader="ObjectPageHeader",e.ObjectPageHeaderSectionForm="ObjectPageHeaderSectionForm",e.ObjectPageHeaderSectionChart="ObjectPageHeaderSectionChart",e.ObjectPageHeaderSectionDataPoint="ObjectPageHeaderSectionDataPoint",e.ObjectPageHeaderSectionContact="ObjectPageHeaderSectionContact",e.ObjectPageHeaderSectionAddress="ObjectPageHeaderSectionAddress",e.ObjectPageLayout="ObjectPageLayout",e.ObjectPagePresentationVariant="ObjectPagePresentationVariant",e.ObjectPageSectionAddress="ObjectPageSectionAddress",e.ObjectPageSectionChart="ObjectPageSectionChart",e.ObjectPageSectionContact="ObjectPageSectionContact",e.ObjectPageSectionDataPoint="ObjectPageSectionDataPoint",e.ObjectPageSectionForm="ObjectPageSectionForm",e.ObjectPageSectionPresentationVariant="ObjectPageSectionPresentationVariant",e.ObjectPageSectionTableV4="ObjectPageSectionTableV4",e.ObjectPageSubSections="ObjectPageSubSections",e.ObjectPageResponsiveTableV4="ObjectPageResponsiveTableV4",e.ObjectPageAnalyticalTableV4="ObjectPageAnalyticalTableV4",e.ObjectPageGridTableV4="ObjectPageGridTableV4",e.ObjectPageTreeTableV4="ObjectPageTreeTableV4",e.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",e.ObjectPageToolBarActionGroup="ObjectPageToolBarActionGroup",e.ObjectPageToolBarActions="ObjectPageToolBarActions",e.Position="Position",e.PositionOP="PositionOP",e.QuickVariant="QuickVariant",e.QuickVariantSelectionOP="QuickVariantSelectionOP",e.QuickVariantSelectionV4OP="QuickVariantSelectionV4OP",e.RelatedFacetKeys="RelatedFacetKeys",e.Sections="Sections",e.SectionActions="SectionActions",e.SelectionFields="SelectionFields",e.Table="Table",e.TableSPV="TableSPV",e.TableColumn="TableColumn",e.TableViewExtension="TableViewExtension",e.ToolBarAction="ToolBarAction",e.ToolBarActionGroup="ToolBarActionGroup",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarActionGroup="ViewToolBarActionGroup",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.CustomHeaderActionPosition="CustomHeaderActionPosition",e.CustomHeaderActionPositionOP="CustomHeaderActionPositionOP",e.CustomFooterActionPositionOP="CustomFooterActionPositionOP",e.CustomExtensionFragment="CustomExtensionFragment",e.CustomFilterField="CustomFilterField",e.CustomFilterFieldPosition="CustomFilterFieldPosition",e.SaveAndEdit="SaveAndEdit",e.ObjectPageCustomSectionActions="ObjectPageCustomSectionActions",e.CustomSectionActionOP="CustomSectionActionOP",e.CustomSectionActionPositionOP="CustomSectionActionPositionOP",e))(NL||{}),FL=(e=>(e.actions="actions",e.annotationPath="annotationPath",e.chart="chart",e.columns="columns",e.defaultPath="defaultPath",e.defaultTemplateAnnotationPath="defaultTemplateAnnotationPath",e.footer="footer",e.header="header",e.sections="sections",e.table="table",e.views="views",e.visualFilters="visualFilters",e.selectionFields="selectionFields",e))(FL||{}),DL=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlId="controlId",e.controlType="controlType",e.conversionExit="conversionExit",e.dataType="dataType",e.deletable="deletable",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.icon="icon",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.manifestPath="manifestPath",e.messages="messages",e.propertyIndex="propertyIndex",e.target="target",e))(DL||{}),_L=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(_L||{}),f5="webapp/manifest.json",u5="/@com.sap.vocabularies",p5="::@com.sap.vocabularies",d5="com.sap.vocabularies.UI.v1",g5="com.sap.vocabularies.UI.v1.",m5="@com.sap.vocabularies.UI.v1.",h5="/quickVariantSelection",y5="/quickVariantSelectionX",T5="/filterSettings/dateSettings",v5=".fragment.",VL=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(VL||{}),wL=(e=>(e.restricted="restricted",e))(wL||{}),ML=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(ML||{}),kL=(e=>(e.persistence="persistence",e.discovery="discovery",e))(kL||{}),UL=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(UL||{}),jL=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(jL||{}),$L=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))($L||{}),BL=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e.fiori="sap.fiori",e))(BL||{}),b5="sap.ui.generic.app/settings",HL=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(HL||{}),S5="sap.fe.templates.RootContainer.view.Fcl",A5="appRootView",GL=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(GL||{}),E5="sap.ui.core.mvc.View",P5="sap.ui.core.Fragment",WL=(e=>(e.sapUiChartPaletteQualitativeHue1="sapUiChartPaletteQualitativeHue1",e.sapUiChartPaletteQualitativeHue2="sapUiChartPaletteQualitativeHue2",e.sapUiChartPaletteQualitativeHue3="sapUiChartPaletteQualitativeHue3",e.sapUiChartPaletteQualitativeHue4="sapUiChartPaletteQualitativeHue4",e.sapUiChartPaletteQualitativeHue5="sapUiChartPaletteQualitativeHue5",e.sapUiChartPaletteQualitativeHue6="sapUiChartPaletteQualitativeHue6",e.sapUiChartPaletteQualitativeHue7="sapUiChartPaletteQualitativeHue7",e.sapUiChartPaletteQualitativeHue8="sapUiChartPaletteQualitativeHue8",e.sapUiChartPaletteQualitativeHue9="sapUiChartPaletteQualitativeHue9",e.sapUiChartPaletteQualitativeHue10="sapUiChartPaletteQualitativeHue10",e.sapUiChartPaletteQualitativeHue11="sapUiChartPaletteQualitativeHue11",e.sapUiChartPaletteQualitativeHue12="sapUiChartPaletteQualitativeHue12",e.sapUiChartPaletteQualitativeHue13="sapUiChartPaletteQualitativeHue13",e.sapUiChartPaletteQualitativeHue14="sapUiChartPaletteQualitativeHue14",e.sapUiChartPaletteQualitativeHue15="sapUiChartPaletteQualitativeHue15",e.sapUiChartPaletteQualitativeHue16="sapUiChartPaletteQualitativeHue16",e.sapUiChartPaletteQualitativeHue17="sapUiChartPaletteQualitativeHue17",e.sapUiChartPaletteQualitativeHue18="sapUiChartPaletteQualitativeHue18",e.sapUiChartPaletteQualitativeHue19="sapUiChartPaletteQualitativeHue19",e.sapUiChartPaletteQualitativeHue20="sapUiChartPaletteQualitativeHue20",e.sapUiChartPaletteQualitativeHue21="sapUiChartPaletteQualitativeHue21",e.sapUiChartPaletteQualitativeHue22="sapUiChartPaletteQualitativeHue22",e.sapUiChartPaletteSemanticBadLight3="sapUiChartPaletteSemanticBadLight3",e.sapUiChartPaletteSemanticBadLight2="sapUiChartPaletteSemanticBadLight2",e.sapUiChartPaletteSemanticBadLight1="sapUiChartPaletteSemanticBadLight1",e.sapUiChartPaletteSemanticBad="sapUiChartPaletteSemanticBad",e.sapUiChartPaletteSemanticBadDark1="sapUiChartPaletteSemanticBadDark1",e.sapUiChartPaletteSemanticBadDark2="sapUiChartPaletteSemanticBadDark2",e.sapUiChartPaletteSemanticCriticalLight3="sapUiChartPaletteSemanticCriticalLight3",e.sapUiChartPaletteSemanticCriticalLight2="sapUiChartPaletteSemanticCriticalLight2",e.sapUiChartPaletteSemanticCriticalLight1="sapUiChartPaletteSemanticCriticalLight1",e.sapUiChartPaletteSemanticCritical="sapUiChartPaletteSemanticCritical",e.sapUiChartPaletteSemanticCriticalDark1="sapUiChartPaletteSemanticCriticalDark1",e.sapUiChartPaletteSemanticCriticalDark2="sapUiChartPaletteSemanticCriticalDark2",e.sapUiChartPaletteSemanticGoodLight3="sapUiChartPaletteSemanticGoodLight3",e.sapUiChartPaletteSemanticGoodLight2="sapUiChartPaletteSemanticGoodLight2",e.sapUiChartPaletteSemanticGoodLight1="sapUiChartPaletteSemanticGoodLight1",e.sapUiChartPaletteSemanticGood="sapUiChartPaletteSemanticGood",e.sapUiChartPaletteSemanticGoodDark1="sapUiChartPaletteSemanticGoodDark1",e.sapUiChartPaletteSemanticGoodDark2="sapUiChartPaletteSemanticGoodDark2",e.sapUiChartPaletteSemanticNeutralLight3="sapUiChartPaletteSemanticNeutralLight3",e.sapUiChartPaletteSemanticNeutralLight2="sapUiChartPaletteSemanticNeutralLight2",e.sapUiChartPaletteSemanticNeutralLight1="sapUiChartPaletteSemanticNeutralLight1",e.sapUiChartPaletteSemanticNeutral="sapUiChartPaletteSemanticNeutral",e.sapUiChartPaletteSemanticNeutralDark1="sapUiChartPaletteSemanticNeutralDark1",e.sapUiChartPaletteSemanticNeutralDark2="sapUiChartPaletteSemanticNeutralDark2",e.sapUiChartPaletteNoSemDiv1Dark2="sapUiChartPaletteNoSemDiv1Dark2",e.sapUiChartPaletteNoSemDiv1Dark1="sapUiChartPaletteNoSemDiv1Dark1",e.sapUiChartPaletteNoSemDiv1="sapUiChartPaletteNoSemDiv1",e.sapUiChartPaletteNoSemDiv1Light1="sapUiChartPaletteNoSemDiv1Light1",e.sapUiChartPaletteNoSemDiv1Light2="sapUiChartPaletteNoSemDiv1Light2",e.sapUiChartPaletteNoSemDiv1Light3="sapUiChartPaletteNoSemDiv1Light3",e.sapUiChartPaletteSequentialHue1Light3="sapUiChartPaletteSequentialHue1Light3",e.sapUiChartPaletteSequentialHue1Light2="sapUiChartPaletteSequentialHue1Light2",e.sapUiChartPaletteSequentialHue1Light1="sapUiChartPaletteSequentialHue1Light1",e.sapUiChartPaletteSequentialHue1="sapUiChartPaletteSequentialHue1",e.sapUiChartPaletteSequentialHue1Dark1="sapUiChartPaletteSequentialHue1Dark1",e.sapUiChartPaletteSequentialHue1Dark2="sapUiChartPaletteSequentialHue1Dark2",e.sapUiChartPaletteSequentialHue2Light3="sapUiChartPaletteSequentialHue2Light3",e.sapUiChartPaletteSequentialHue2Light2="sapUiChartPaletteSequentialHue2Light2",e.sapUiChartPaletteSequentialHue2Light1="sapUiChartPaletteSequentialHue2Light1",e.sapUiChartPaletteSequentialHue2="sapUiChartPaletteSequentialHue2",e.sapUiChartPaletteSequentialHue2Dark1="sapUiChartPaletteSequentialHue2Dark1",e.sapUiChartPaletteSequentialHue2Dark2="sapUiChartPaletteSequentialHue2Dark2",e.sapUiChartPaletteSequentialHue3Light3="sapUiChartPaletteSequentialHue3Light3",e.sapUiChartPaletteSequentialHue3Light2="sapUiChartPaletteSequentialHue3Light2",e.sapUiChartPaletteSequentialHue3Light1="sapUiChartPaletteSequentialHue3Light1",e.sapUiChartPaletteSequentialHue3="sapUiChartPaletteSequentialHue3",e.sapUiChartPaletteSequentialHue3Dark1="sapUiChartPaletteSequentialHue3Dark1",e.sapUiChartPaletteSequentialHue3Dark2="sapUiChartPaletteSequentialHue3Dark2",e.sapUiChartPaletteSequentialHue6Light3="sapUiChartPaletteSequentialHue6Light3",e.sapUiChartPaletteSequentialHue6Light2="sapUiChartPaletteSequentialHue6Light2",e.sapUiChartPaletteSequentialHue6Light1="sapUiChartPaletteSequentialHue6Light1",e.sapUiChartPaletteSequentialHue6="sapUiChartPaletteSequentialHue6",e.sapUiChartPaletteSequentialHue6Dark1="sapUiChartPaletteSequentialHue6Dark1",e.sapUiChartPaletteSequentialHue6Dark2="sapUiChartPaletteSequentialHue6Dark2",e.sapUiChartPaletteSequentialNeutralLight3="sapUiChartPaletteSequentialNeutralLight3",e.sapUiChartPaletteSequentialNeutralLight2="sapUiChartPaletteSequentialNeutralLight2",e.sapUiChartPaletteSequentialNeutralLight1="sapUiChartPaletteSequentialNeutralLight1",e.sapUiChartPaletteSequentialNeutral="sapUiChartPaletteSequentialNeutral",e.sapUiChartPaletteSequentialNeutralDark1="sapUiChartPaletteSequentialNeutralDark1",e.sapUiChartPaletteSequentialNeutralDark2="sapUiChartPaletteSequentialNeutralDark2",e.sapUiChoroplethRegionBG="sapUiChoroplethRegionBG",e.sapUiChartZeroAxisColor="sapUiChartZeroAxisColor",e.sapUiNegativeElement="sapUiNegativeElement",e.sapUiCriticalElement="sapUiCriticalElement",e.sapUiPositiveElement="sapUiPositiveElement",e.sapUiNeutralElement="sapUiNeutralElement",e))(WL||{}),KL=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(KL||{}),x5={error:"Error",warning:"Warning",info:"Information"},XL=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(XL||{}),QL=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(QL||{}),qL=(e=>(e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage",e))(qL||{}),YL=(e=>(e.BuildingBlocks="BuildingBlocks",e))(YL||{}),zL={};cb(zL,{CardSettingsType:o(()=>eN,"CardSettingsType"),CardTemplateType:o(()=>ZL,"CardTemplateType"),ChartCardType:o(()=>JL,"ChartCardType"),ChartType:o(()=>yN,"ChartType"),ContainerLayoutType:o(()=>SN,"ContainerLayoutType"),CreateMode:o(()=>bN,"CreateMode"),DateRangeType:o(()=>aN,"DateRangeType"),DefaultContentView:o(()=>gN,"DefaultContentView"),DefaultDateRangeValueType:o(()=>sN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>mN,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>vN,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>O5,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>N5,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>L5,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>R5,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>cN,"FilterPathType"),IgnoredFieldsType:o(()=>dN,"IgnoredFieldsType"),LinkListFlavorType:o(()=>oN,"LinkListFlavorType"),ListFlavorType:o(()=>nN,"ListFlavorType"),ListTypeType:o(()=>iN,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>hN,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>tN,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>D5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>F5,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>w5,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>V5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>_5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>TN,"SectionPosition"),SortOrderType:o(()=>rN,"SortOrderType"),Strategy:o(()=>pN,"Strategy"),TableColumnExtensionTypeV2:o(()=>uN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>fN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>I5,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>C5,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>lN,"customColumnViewTypes")});var JL=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(JL||{}),ZL=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(ZL||{}),C5={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},I5={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},eN=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(eN||{}),tN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(tN||{}),nN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(nN||{}),iN=(e=>(e.extended="extended",e.condensed="condensed",e))(iN||{}),rN=(e=>(e.ascending="ascending",e.descending="descending",e))(rN||{}),oN=(e=>(e.standard="standard",e.carousel="carousel",e))(oN||{}),aN=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(aN||{}),sN=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(sN||{}),cN=(e=>(e.key="key",e.catgory="category",e))(cN||{}),lN=(e=>(e.XML="XML",e))(lN||{}),fN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(fN||{}),uN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(uN||{}),pN=(e=>(e.extension="extension",e))(pN||{}),dN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(dN||{}),gN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(gN||{}),mN=(e=>(e.visual="visual",e.compact="compact",e))(mN||{}),hN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(hN||{}),yN=(e=>(e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall",e))(yN||{}),TN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(TN||{}),vN=(e=>(e.XML="XML",e))(vN||{}),bN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(bN||{}),O5="sap.suite.ui.generic.template",R5="sap.suite.ui.generic.template.ObjectPage",L5="sap.suite.ui.generic.template.ListReport",N5="sap.suite.ui.generic.template.AnalyticalListPage",F5="sap.ui.viewExtensions",D5="sap.ui.controllerExtensions",_5="sap.suite.ui.generic.template.ObjectPage.view.Details",V5="sap.suite.ui.generic.template.ListReport.view.ListReport",w5="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",SN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(SN||{}),AN={};cb(AN,{ActionPlacement:o(()=>EN,"ActionPlacement"),Availability:o(()=>UN,"Availability"),CustomSectionViewTypesV4:o(()=>VN,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>ON,"DefaultPathType"),FE_NAMESPACE_V4:o(()=>M5,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:o(()=>$5,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>k5,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>j5,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>U5,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>H5,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>NN,"FilterFieldPlacement"),HorizontalAlign:o(()=>jN,"HorizontalAlign"),InitialLayoutType:o(()=>LN,"InitialLayoutType"),InitialLoadType:o(()=>IN,"InitialLoadType"),LayoutType:o(()=>RN,"LayoutType"),Placement:o(()=>kN,"Placement"),RowCountMode:o(()=>xN,"RowCountMode"),SAPUI5_CONTROLLER_EXTENSION:o(()=>W5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>G5,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>B5,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>X5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>K5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>DN,"SectionLayoutType"),SectionPosition:o(()=>_N,"SectionPosition"),SectionPositionV4:o(()=>MN,"SectionPositionV4"),SelectType:o(()=>FN,"SelectType"),SelectionMode:o(()=>PN,"SelectionMode"),TableCreationModeType:o(()=>wN,"TableCreationModeType"),TableTypeV4:o(()=>CN,"TableTypeV4"),VariantManagementTypeListReport:o(()=>BN,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>$N,"VariantManagementTypeObjectPage")});var EN=(e=>(e.After="After",e.Before="Before",e))(EN||{}),PN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(PN||{}),xN=(e=>(e.Fixed="Fixed",e.Auto="Auto",e))(xN||{}),CN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(CN||{}),IN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(IN||{}),ON=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(ON||{}),RN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(RN||{}),LN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(LN||{}),NN=(e=>(e.After="After",e.Before="Before",e))(NN||{}),FN=(e=>(e.single="single",e.multi="multi",e))(FN||{}),DN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(DN||{}),_N=(e=>(e.After="After",e.Before="Before",e))(_N||{}),VN=(e=>(e.XML="XML",e))(VN||{}),wN=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(wN||{}),M5="sap.fe",k5="sap.fe.core.fpm",U5="sap.fe.templates.ObjectPage",j5="sap.fe.templates.ListReport",$5="sap.fe.templates.AnalyticalListPage",B5="XMLFragment",MN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(MN||{}),H5="sap.f.routing.Router",G5="sap.f",W5="sap.ui.controllerExtensions",K5="sap.fe.templates.ObjectPage.ObjectPageController",X5="sap.fe.templates.ListReport.ListReportController",kN=(e=>(e.After="After",e.Before="Before",e))(kN||{}),UN=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(UN||{}),jN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(jN||{}),$N=(e=>(e.None="None",e.Control="Control",e))($N||{}),BN=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(BN||{})});var YN=ze(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.Features=zi.CustomExtensionType=zi.TemplateType=zi.PropertyMessageType=zi.logSeverityLabel=zi.LogSeverity=void 0;var WN;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(WN||(zi.LogSeverity=WN={}));zi.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var KN;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(KN||(zi.PropertyMessageType=KN={}));var XN;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(XN||(zi.TemplateType=XN={}));var QN;(function(e){e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage"})(QN||(zi.CustomExtensionType=QN={}));var qN;(function(e){e.BuildingBlocks="BuildingBlocks"})(qN||(zi.Features=qN={}))});var EF=ze((qZ,AF)=>{var ub=Object.defineProperty,Q5=Object.getOwnPropertyDescriptor,q5=Object.getOwnPropertyNames,Y5=Object.prototype.hasOwnProperty,z5=o((e,t)=>{for(var n in t)ub(e,n,{get:t[n],enumerable:!0})},"h"),J5=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of q5(t))!Y5.call(e,r)&&r!==n&&ub(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=Q5(t,r))||i.enumerable});return e},"M"),Z5=o(e=>J5(ub({},"__esModule",{value:!0}),e),"Q"),zN={};z5(zN,{CardSettingsType:o(()=>eF,"CardSettingsType"),CardTemplateType:o(()=>ZN,"CardTemplateType"),ChartCardType:o(()=>JN,"ChartCardType"),ChartType:o(()=>yF,"ChartType"),ContainerLayoutType:o(()=>SF,"ContainerLayoutType"),CreateMode:o(()=>bF,"CreateMode"),DateRangeType:o(()=>aF,"DateRangeType"),DefaultContentView:o(()=>gF,"DefaultContentView"),DefaultDateRangeValueType:o(()=>sF,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>mF,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>vF,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>nW,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>oW,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>rW,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>iW,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>cF,"FilterPathType"),IgnoredFieldsType:o(()=>dF,"IgnoredFieldsType"),LinkListFlavorType:o(()=>oF,"LinkListFlavorType"),ListFlavorType:o(()=>nF,"ListFlavorType"),ListTypeType:o(()=>iF,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>hF,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>tF,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>sW,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>aW,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>fW,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>lW,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>cW,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>TF,"SectionPosition"),SortOrderType:o(()=>rF,"SortOrderType"),Strategy:o(()=>pF,"Strategy"),TableColumnExtensionTypeV2:o(()=>uF,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>fF,"TableTypeV2"),cardTemplateSettingsMap:o(()=>tW,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>eW,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>lF,"customColumnViewTypes")});AF.exports=Z5(zN);var JN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(JN||{}),ZN=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(ZN||{}),eW={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},tW={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},eF=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(eF||{}),tF=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(tF||{}),nF=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(nF||{}),iF=(e=>(e.extended="extended",e.condensed="condensed",e))(iF||{}),rF=(e=>(e.ascending="ascending",e.descending="descending",e))(rF||{}),oF=(e=>(e.standard="standard",e.carousel="carousel",e))(oF||{}),aF=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(aF||{}),sF=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(sF||{}),cF=(e=>(e.key="key",e.catgory="category",e))(cF||{}),lF=(e=>(e.XML="XML",e))(lF||{}),fF=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(fF||{}),uF=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(uF||{}),pF=(e=>(e.extension="extension",e))(pF||{}),dF=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(dF||{}),gF=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(gF||{}),mF=(e=>(e.visual="visual",e.compact="compact",e))(mF||{}),hF=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(hF||{}),yF=(e=>(e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall",e))(yF||{}),TF=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(TF||{}),vF=(e=>(e.XML="XML",e))(vF||{}),bF=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(bF||{}),nW="sap.suite.ui.generic.template",iW="sap.suite.ui.generic.template.ObjectPage",rW="sap.suite.ui.generic.template.ListReport",oW="sap.suite.ui.generic.template.AnalyticalListPage",aW="sap.ui.viewExtensions",sW="sap.ui.controllerExtensions",cW="sap.suite.ui.generic.template.ObjectPage.view.Details",lW="sap.suite.ui.generic.template.ListReport.view.ListReport",fW="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",SF=(e=>(e.fixed="fixed",e.resizable="resizable",e))(SF||{})});var KF=ze((zZ,WF)=>{var pb=Object.defineProperty,uW=Object.getOwnPropertyDescriptor,pW=Object.getOwnPropertyNames,dW=Object.prototype.hasOwnProperty,gW=o((e,t)=>{for(var n in t)pb(e,n,{get:t[n],enumerable:!0})},"j"),mW=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of pW(t))!dW.call(e,r)&&r!==n&&pb(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=uW(t,r))||i.enumerable});return e},"R"),hW=o(e=>mW(pb({},"__esModule",{value:!0}),e),"h"),PF={};gW(PF,{ActionPlacement:o(()=>xF,"ActionPlacement"),Availability:o(()=>$F,"Availability"),CustomSectionViewTypesV4:o(()=>MF,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>LF,"DefaultPathType"),FE_NAMESPACE_V4:o(()=>yW,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:o(()=>SW,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>TW,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>bW,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>vW,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>EW,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>DF,"FilterFieldPlacement"),HorizontalAlign:o(()=>BF,"HorizontalAlign"),InitialLayoutType:o(()=>FF,"InitialLayoutType"),InitialLoadType:o(()=>RF,"InitialLoadType"),LayoutType:o(()=>NF,"LayoutType"),Placement:o(()=>jF,"Placement"),RowCountMode:o(()=>IF,"RowCountMode"),SAPUI5_CONTROLLER_EXTENSION:o(()=>xW,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>PW,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>AW,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>IW,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>CW,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>VF,"SectionLayoutType"),SectionPosition:o(()=>wF,"SectionPosition"),SectionPositionV4:o(()=>UF,"SectionPositionV4"),SelectType:o(()=>_F,"SelectType"),SelectionMode:o(()=>CF,"SelectionMode"),TableCreationModeType:o(()=>kF,"TableCreationModeType"),TableTypeV4:o(()=>OF,"TableTypeV4"),VariantManagementTypeListReport:o(()=>GF,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>HF,"VariantManagementTypeObjectPage")});WF.exports=hW(PF);var xF=(e=>(e.After="After",e.Before="Before",e))(xF||{}),CF=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(CF||{}),IF=(e=>(e.Fixed="Fixed",e.Auto="Auto",e))(IF||{}),OF=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(OF||{}),RF=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(RF||{}),LF=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(LF||{}),NF=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(NF||{}),FF=(e=>(e.Compact="Compact",e.Visual="Visual",e))(FF||{}),DF=(e=>(e.After="After",e.Before="Before",e))(DF||{}),_F=(e=>(e.single="single",e.multi="multi",e))(_F||{}),VF=(e=>(e.Tabs="Tabs",e.Page="Page",e))(VF||{}),wF=(e=>(e.After="After",e.Before="Before",e))(wF||{}),MF=(e=>(e.XML="XML",e))(MF||{}),kF=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(kF||{}),yW="sap.fe",TW="sap.fe.core.fpm",vW="sap.fe.templates.ObjectPage",bW="sap.fe.templates.ListReport",SW="sap.fe.templates.AnalyticalListPage",AW="XMLFragment",UF=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(UF||{}),EW="sap.f.routing.Router",PW="sap.f",xW="sap.ui.controllerExtensions",CW="sap.fe.templates.ObjectPage.ObjectPageController",IW="sap.fe.templates.ListReport.ListReportController",jF=(e=>(e.After="After",e.Before="Before",e))(jF||{}),$F=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))($F||{}),BF=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(BF||{}),HF=(e=>(e.None="None",e.Control="Control",e))(HF||{}),GF=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(GF||{})});var ce=ze(Si=>{"use strict";var XF=Si&&Si.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),OW=Si&&Si.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),QF=Si&&Si.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&XF(t,e,n)},qF=Si&&Si.__importStar||function(){var e=o(function(t){return e=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var i=e(t),r=0;r<i.length;r++)i[r]!=="default"&&XF(n,t,i[r]);return OW(n,t),n}}();Object.defineProperty(Si,"__esModule",{value:!0});Si.v4=Si.v2=void 0;QF(GN(),Si);QF(YN(),Si);Si.v2=qF(EF());Si.v4=qF(KF())});var Lb=ze((yee,l0)=>{"use strict";var XW=o(function(t){return QW(t)&&!qW(t)},"isMergeableObject");function QW(e){return!!e&&typeof e=="object"}o(QW,"isNonNullObject");function qW(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||JW(e)}o(qW,"isSpecial");var YW=typeof Symbol=="function"&&Symbol.for,zW=YW?Symbol.for("react.element"):60103;function JW(e){return e.$$typeof===zW}o(JW,"isReactElement");function ZW(e){return Array.isArray(e)?[]:{}}o(ZW,"emptyTarget");function Au(e,t){return t.clone!==!1&&t.isMergeableObject(e)?El(ZW(e),e,t):e}o(Au,"cloneUnlessOtherwiseSpecified");function e8(e,t,n){return e.concat(t).map(function(i){return Au(i,n)})}o(e8,"defaultArrayMerge");function t8(e,t){if(!t.customMerge)return El;var n=t.customMerge(e);return typeof n=="function"?n:El}o(t8,"getMergeFunction");function n8(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(n8,"getEnumerableOwnPropertySymbols");function s0(e){return Object.keys(e).concat(n8(e))}o(s0,"getKeys");function c0(e,t){try{return t in e}catch{return!1}}o(c0,"propertyIsOnObject");function i8(e,t){return c0(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(i8,"propertyIsUnsafe");function r8(e,t,n){var i={};return n.isMergeableObject(e)&&s0(e).forEach(function(r){i[r]=Au(e[r],n)}),s0(t).forEach(function(r){i8(e,r)||(c0(e,r)&&n.isMergeableObject(t[r])?i[r]=t8(r,n)(e[r],t[r],n):i[r]=Au(t[r],n))}),i}o(r8,"mergeObject");function El(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||e8,n.isMergeableObject=n.isMergeableObject||XW,n.cloneUnlessOtherwiseSpecified=Au;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):r8(e,t,n):Au(t,n)}o(El,"deepmerge");El.all=o(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return El(i,r,n)},{})},"deepmergeAll");var o8=El;l0.exports=o8});var Qg=ze(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.mergeAnnotations=Tt.addGetByValue=Tt.createIndexedFind=Tt.lazy=Tt.Decimal=Tt.Double=Tt.isComplexTypeDefinition=Tt.unalias=Tt.alias=Tt.substringBeforeLast=Tt.substringBeforeFirst=Tt.splitAtLast=Tt.splitAtFirst=Tt.defaultReferences=Tt.TermToTypes=Tt.EnumIsFlag=void 0;var a8=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(Tt,"EnumIsFlag",{enumerable:!0,get:o(function(){return a8.EnumIsFlag},"get")});var s8=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(Tt,"TermToTypes",{enumerable:!0,get:o(function(){return s8.TermToTypes},"get")});var c8=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(Tt,"defaultReferences",{enumerable:!0,get:o(function(){return c8.VocabularyReferences},"get")});function f0(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(f0,"splitAt");function u0(e,t){return t<0?e:e.substring(0,t)}o(u0,"substringAt");function Xg(e,t){return f0(e,e.indexOf(t))}o(Xg,"splitAtFirst");Tt.splitAtFirst=Xg;function p0(e,t){return f0(e,e.lastIndexOf(t))}o(p0,"splitAtLast");Tt.splitAtLast=p0;function l8(e,t){return u0(e,e.indexOf(t))}o(l8,"substringBeforeFirst");Tt.substringBeforeFirst=l8;function f8(e,t){return u0(e,e.lastIndexOf(t))}o(f8,"substringBeforeLast");Tt.substringBeforeLast=f8;function d0(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=p0(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=Xg(t,"@");return`${a}@${d0(e,s)}`}else return t}o(d0,"alias");Tt.alias=d0;function Nb(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=Xg(a,".");if(!l||l.includes("."))return a;let u=s.startsWith("@"),p=u?s.substring(1):s,g=e.referenceMap[p];return g?u?`@${g.namespace}.${l}`:`${g.namespace}.${l}`:n&&!u?`${n}.${l}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[l,u]=Xg(s,"("),p=[r(l)];if(u){let g=u.slice(0,-1);p.push(`(${r(g)})`)}return a.push(p.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}o(Nb,"unalias");Tt.unalias=Nb;function u8(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(u8,"isComplexTypeDefinition");Tt.isComplexTypeDefinition=u8;function p8(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(p8,"Double");Tt.Double=p8;function d8(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(d8,"Decimal");Tt.Decimal=d8;function g8(e,t,n){let i=Symbol("initial"),r=i;Object.defineProperty(e,t,{enumerable:!0,get(){return r===i&&(r=n()),r},set(a){r=a}})}o(g8,"lazy");Tt.lazy=g8;function g0(e,t){let n=new Map;return o(function(r){let a=n.get(r);return(a==null?void 0:a[t])===r?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===r})},"find")}o(g0,"createIndexedFind");Tt.createIndexedFind=g0;function m8(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:g0(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(m8,"addGetByValue");Tt.addGetByValue=m8;function h8(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let u=(a=Nb(e,s))!==null&&a!==void 0?a:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=Nb(e,g.term))!==null&&m!==void 0?m:g.term,g.fullyQualifiedName=g.qualifier?`${u}@${g.term}#${g.qualifier}`:`${u}@${g.term}`,g.__source=i,g}).filter(g=>!n[u].some(m=>m.term===g.term&&m.qualifier===g.qualifier));n[u].push(...p)}return n},{})}o(h8,"mergeAnnotations");Tt.mergeAnnotations=h8});var O0=ze(zg=>{"use strict";Object.defineProperty(zg,"__esModule",{value:!0});zg.convert=void 0;var qg=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Ee=Qg(),fo=Symbol("Annotation Target");function pa(e,t){return e[e.length-1]!==t&&e.push(t),e}o(pa,"appendObjectPath");function Tr(e,t,n,i){var r,a,s,l,u;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let p=n.split("/").reduce((m,h)=>{if(h.includes("@")){let[S,b]=(0,Ee.splitAtFirst)(h,"@");m.push(S),m.push(`@${b}`)}else m.push(h);return m},[]);if(t===void 0)p[0].startsWith(`${e.rawSchema.namespace}.`)&&p[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(l=(s=(a=e.getConvertedEntityType(p[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(p[0]))!==null&&s!==void 0?s:e.getConvertedAction(p[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${p[0]}()`),p.shift()):t=e.getConvertedEntityContainer();else if(t[fo]!==void 0)t=t[fo];else if(t._type==="Property"){let m=(0,Ee.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(u=e.getConvertedEntityType(m))!==null&&u!==void 0?u:e.getConvertedComplexType(m)}let g=p.reduce((m,h)=>{var S,b,O,N,M;let G=o(j=>(m.messages.push({message:j}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=pa(m.objectPath,m.target),h.startsWith("@")&&h!=="@$ui5.overload"){let[j,re]=e.splitTerm(h),Z=(S=m.target.annotations[j.substring(1)])===null||S===void 0?void 0:S[re];return Z!==void 0?(m.target=Z,m):G(`Annotation '${h.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let j;if(h==="$AnnotationPath"?j=m.target.value:h==="$Path"&&(j=m.target.path),j!==void 0){let re=Tr(e,m.target[fo],j);return re.objectPath.forEach(Z=>{m.objectPath.includes(Z)||(m.objectPath=pa(m.objectPath,Z))}),m.target=re.target,m.objectPath=pa(m.objectPath,m.target),m}}switch((b=m.target)===null||b===void 0?void 0:b._type){case"Schema":break;case"EntityContainer":{let Z=m.target;if(h===""||e.unalias(h)===Z.fullyQualifiedName)return m;let oe=(N=(O=Z.entitySets.by_name(h))!==null&&O!==void 0?O:Z.singletons.by_name(h))!==null&&N!==void 0?N:Z.actionImports.by_name(h);if(oe)return m.target=oe,m}break;case"EntitySet":case"Singleton":{let Z=m.target;if(h===""||h==="$Type")return m.target=Z.entityType,m;if(h==="$")return m;if(h==="$NavigationPropertyBinding"){let Pe=Z.navigationPropertyBinding;return m.target=Pe,m}let oe=Tr(e,Z.entityType,h);return m.target=oe.target,m.objectPath=oe.objectPath.reduce(pa,m.objectPath),m}case"EntityType":{let Z=m.target;if(h===""||h==="$Type")return m;let oe=Z.entityProperties.by_name(h);if(oe)return m.target=oe,m;let Pe=Z.navigationProperties.by_name(h);if(Pe)return m.target=Pe,m;let D=(0,Ee.substringBeforeFirst)(e.unalias(h),"("),pt=Z.actions[D];if(pt)return m.target=pt,m}break;case"ActionImport":{let Z=Tr(e,m.target.action,h);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(pa,m.objectPath),m}case"Action":{let Z=m.target;if(h===""||h==="@$ui5.overload"||h==="0")return m;if(h==="$Parameter"&&Z.isBound)return m.target=Z.parameters,m;let oe=(M=Z.parameters[h])!==null&&M!==void 0?M:Z.parameters.find(Pe=>Pe.name===h);if(oe)return m.target=oe,m;break}case"Property":{let oe=m.target.targetType;if(oe!==void 0){let Pe=oe.properties.by_name(h);if(Pe)return m.target=Pe,m;let D=oe.navigationProperties.by_name(h);if(D)return m.target=D,m}}break;case"ActionParameter":let j=m.target.typeReference;if(j!==void 0){let Z=Tr(e,j,h);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(pa,m.objectPath),m}break;case"NavigationProperty":let re=Tr(e,m.target.targetType,h);return m.target=re.target,m.objectPath=re.objectPath.reduce(pa,m.objectPath),m;default:if(h==="")return m;if(m.target[h])return m.target=m.target[h],m.objectPath=pa(m.objectPath,m.target),m}return G(`Element '${h}' not found at ${m.target._type} '${m.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(g.messages.forEach(m=>e.logError(m.message)),!g.target)if(i){let m=v0(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
2
2
|
`+n+`
|
|
3
3
|
|
|
4
4
|
Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
|
|
@@ -10,23 +10,23 @@ Hint: Check and correct the path values under the following structure in the met
|
|
|
10
10
|
Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
|
|
11
11
|
|
|
12
12
|
<Annotation Term = `+p[0]+`>
|
|
13
|
-
<PropertyValue Path= `+p[1]+">");return g}o(Tr,"resolveTarget");function y8(e){return e.includes("@")}o(y8,"isAnnotationPath");function m0(e,t,n,i,r){let a={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[fo]:i};return(0,
|
|
13
|
+
<PropertyValue Path= `+p[1]+">");return g}o(Tr,"resolveTarget");function y8(e){return e.includes("@")}o(y8,"isAnnotationPath");function m0(e,t,n,i,r){let a={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[fo]:i};return(0,Ee.lazy)(a,"$target",()=>Tr(e,i,t.PropertyPath,r).target),a}o(m0,"mapPropertyPath");function h0(e,t,n,i,r){let a={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[fo]:i};return(0,Ee.lazy)(a,"$target",()=>Tr(e,i,a.value,r).target),a}o(h0,"mapAnnotationPath");function y0(e,t,n,i,r){var a;let s={type:"NavigationPropertyPath",value:(a=t.NavigationPropertyPath)!==null&&a!==void 0?a:"",fullyQualifiedName:n,[fo]:i};return(0,Ee.lazy)(s,"$target",()=>Tr(e,i,t.NavigationPropertyPath,r).target),s}o(y0,"mapNavigationPropertyPath");function T8(e,t,n,i,r){let a={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[fo]:i};return(0,Ee.lazy)(a,"$target",()=>Tr(e,i,t.Path,r).target),a}o(T8,"mapPath");function T0(e,t,n,i,r,a,s){if(a!==void 0)switch(a.type){case"String":return a.String;case"Int":return a.Int;case"Bool":return a.Bool;case"Double":return(0,Ee.Double)(a.Double);case"Decimal":return(0,Ee.Decimal)(a.Decimal);case"Date":return a.Date;case"EnumMember":let l=a.EnumMember.split(" ").map(u=>{var p;let g=(p=e.unalias(u))!==null&&p!==void 0?p:"";return(0,Ee.alias)(qg.VocabularyReferences,g)});return l[0]!==void 0&&Ee.EnumIsFlag[(0,Ee.substringBeforeFirst)(l[0],"/")]?l:l[0];case"PropertyPath":return m0(e,a,s,t,n);case"NavigationPropertyPath":return y0(e,a,s,t,n);case"AnnotationPath":return h0(e,a,s,t,n);case"Path":return y8(a.Path)?Tr(e,t,e.unalias(a.Path),n).target:T8(e,a,s,t,n);case"Record":return _b(e,n,t,i,r,a.Record,s);case"Collection":return b0(e,t,n,i,r,a.Collection,s);case"Apply":case"Null":case"Not":case"Eq":case"Ne":case"Gt":case"Ge":case"Lt":case"Le":case"If":case"And":case"Or":default:return a}}o(T0,"parseValue");function v0(e,t,n,i){let r=Ee.TermToTypes[t];return i&&(t=`${(0,Ee.substringBeforeLast)(t,".")}.${i}`,r=Ee.TermToTypes[t]),e.logError(`The type of the record used within the term ${t} was not defined and was inferred as ${r}.
|
|
14
14
|
Hint: If possible, try to maintain the Type property for each Record.
|
|
15
15
|
<Annotations Target="${n}">
|
|
16
16
|
<Annotation Term="${t}">
|
|
17
17
|
<Record>...</Record>
|
|
18
18
|
</Annotation>
|
|
19
|
-
</Annotations>`),r}o(v0,"inferTypeFromTerm");function v8(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(v8,"isDataFieldWithForAction");function b8(e,t,n,i,r){let a;return!r.type&&t?a=v0(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(b8,"parseRecordType");function _b(e,t,n,i,r,a,s){let l={$Type:b8(e,t,n,i,a),fullyQualifiedName:s,[fo]:n,__source:r};for(let u of a.propertyValues)(0,Ae.lazy)(l,u.name,()=>T0(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Ae.lazy)(l,"annotations",E0(e,a,l)),v8(l)&&(0,Ae.lazy)(l,"ActionTarget",()=>{var u,p;let g=e.unalias((u=l.Action)===null||u===void 0?void 0:u.toString()),m=n.actions[g];return m||(m=(p=e.getConvertedActionImport(g))===null||p===void 0?void 0:p.action),m||(m=e.getConvertedAction(g),m!=null&&m.isBound||(m=void 0)),m||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${g}')`),m}),l}o(_b,"parseRecord");function S8(e){let t=e.type;if(t===void 0&&e.length>0){let n=e[0];n.hasOwnProperty("PropertyPath")?t="PropertyPath":n.hasOwnProperty("Path")?t="Path":n.hasOwnProperty("AnnotationPath")?t="AnnotationPath":n.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":typeof n=="object"&&(n.hasOwnProperty("type")||n.hasOwnProperty("propertyValues"))?t="Record":typeof n=="string"&&(t="String")}else t===void 0&&(t="EmptyCollection");return t}o(S8,"getOrInferCollectionType");function b0(e,t,n,i,r,a,s){switch(S8(a)){case"PropertyPath":return a.map((u,p)=>m0(e,u,`${s}/${p}`,t,n));case"Path":return a.map(u=>Tr(e,t,u.Path,n).target);case"AnnotationPath":return a.map((u,p)=>h0(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((u,p)=>y0(e,u,`${s}/${p}`,t,n));case"Record":return a.map((u,p)=>_b(e,n,t,i,r,u,`${s}/${p}`));case"Apply":case"Null":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return a.map(u=>u);case"String":return a.map(u=>typeof u=="string"||u===void 0?u:u.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}o(b0,"parseCollection");function E8(e){return!!e.targetTypeName}o(E8,"isV4NavigationProperty");function A8(e,t,n){var i;let r;if(n.record)r=_b(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=T0(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)r=b0(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof r){case"string":r=new String(r);break;case"boolean":r=new Boolean(r);break;case"number":r=new Number(r);break;default:break}r.fullyQualifiedName=n.fullyQualifiedName,r[fo]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,qg.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Ae.lazy)(r,"annotations",E0(e,n,r))}catch{}return r}o(A8,"convertAnnotation");var Vb=class Vb{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(r=>({name:r,annotationList:this.rawSchema.annotations[r]}));this.annotationsByTarget=(0,Ae.mergeAnnotations)(this.rawMetadata.references,...i)}return(n=this.annotationsByTarget[t])!==null&&n!==void 0?n:[]}getConvertedEntityContainer(){return this.getConvertedElement(this.rawMetadata.schema.entityContainer.fullyQualifiedName,this.rawMetadata.schema.entityContainer,A0)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&r.push(s),r},[]);return(0,Ae.addGetByValue)(i,"name"),(0,Ae.addGetByValue)(i,"fullyQualifiedName"),i}:()=>this.getConvertedElement(t.fullyQualifiedName,t,n)}constructor(t,n){this.convertedElements=new Map,this.rawMetadata=t,this.rawSchema=t.schema,this.convertedOutput=n}getConvertedElement(t,n,i){let r=this.convertedElements.get(t);if(r===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(r=i.apply(void 0,[this,a]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,Ae.alias)(qg.VocabularyReferences,t);return(0,Ae.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Ae.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(Vb,"Converter");var Fb=Vb;function Au(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(Au,"resolveEntityType");function S0(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Ae.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(S0,"resolveNavigationPropertyBindings");function da(e,t){let n=t.annotations;return()=>Yg(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(da,"resolveAnnotations");function E0(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(a=>{a.target=i,a.__source=n.__source,a[fo]=n[fo],a.fullyQualifiedName=`${i}@${a.term}`}),Yg(e,n,r??[])}}o(E0,"resolveAnnotationsOnAnnotation");function Yg(e,t,n){return n.reduce((i,r)=>{let[a,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,Ae.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(u,p)=>A8(u,t,p))),i},{})}o(Yg,"createAnnotationsObject");function A0(e,t){let n=t;return(0,Ae.lazy)(n,"annotations",da(e,t)),(0,Ae.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,x0)),(0,Ae.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,P0)),(0,Ae.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,I0)),n}o(A0,"convertEntityContainer");function P0(e,t){let n=t;(0,Ae.lazy)(n,"entityType",Au(e,t.entityTypeName)),(0,Ae.lazy)(n,"annotations",da(e,n));let i=t.navigationPropertyBinding;return(0,Ae.lazy)(n,"navigationPropertyBinding",S0(e,i)),n}o(P0,"convertSingleton");function x0(e,t){let n=t;(0,Ae.lazy)(n,"entityType",Au(e,t.entityTypeName)),(0,Ae.lazy)(n,"annotations",da(e,n));let i=t.navigationPropertyBinding;return(0,Ae.lazy)(n,"navigationPropertyBinding",S0(e,i)),n}o(x0,"convertEntitySet");function P8(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Ae.lazy)(n,"annotations",da(e,t)),(0,Ae.lazy)(n,"keys",e.convert(t.keys,Db)),(0,Ae.lazy)(n,"entityProperties",e.convert(t.entityProperties,Db)),(0,Ae.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,C0)),(0,Ae.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,r)=>{let a=`${e.rawSchema.namespace}.${r.name}`;return i[a]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let a=Tr(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(P8,"convertEntityType");function Db(e,t){let n=t;return(0,Ae.lazy)(n,"annotations",da(e,t)),(0,Ae.lazy)(n,"targetType",()=>{var i;let r=t.type,a=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}o(Db,"convertProperty");function C0(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!E8(t)){let s=(i=e.rawSchema.associations.find(l=>l.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(l=>l.role===t.toRole);a.isCollection=(s==null?void 0:s.multiplicity)==="*",a.targetTypeName=(r=s==null?void 0:s.type)!==null&&r!==void 0?r:""}return(0,Ae.lazy)(a,"targetType",Au(e,t.targetTypeName)),(0,Ae.lazy)(a,"annotations",da(e,t)),a}o(C0,"convertNavigationProperty");function I0(e,t){let n=t;return(0,Ae.lazy)(n,"annotations",da(e,t)),(0,Ae.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}o(I0,"convertActionImport");function x8(e,t){let n=t;return n.sourceType&&(0,Ae.lazy)(n,"sourceEntityType",Au(e,t.sourceType)),n.returnType&&(0,Ae.lazy)(n,"returnEntityType",Au(e,t.returnType)),(0,Ae.lazy)(n,"parameters",e.convert(t.parameters,C8)),(0,Ae.lazy)(n,"annotations",()=>{let i=(0,Ae.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Yg(e,t,a)}),n}o(x8,"convertAction");function C8(e,t){let n=t;return(0,Ae.lazy)(n,"typeReference",()=>{var i,r;return(r=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&r!==void 0?r:e.getConvertedTypeDefinition(t.type)}),(0,Ae.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Yg(e,t,a)}),n}o(C8,"convertActionParameter");function I8(e,t){let n=t;return(0,Ae.lazy)(n,"properties",e.convert(t.properties,Db)),(0,Ae.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,C0)),(0,Ae.lazy)(n,"annotations",da(e,t)),n}o(I8,"convertComplexType");function O8(e,t){let n=t;return(0,Ae.lazy)(n,"annotations",da(e,t)),n}o(O8,"convertTypeDefinition");function R8(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:qg.VocabularyReferences,diagnostics:[]},n=new Fb(e,t);return(0,Ae.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,A0)),(0,Ae.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,x0)),(0,Ae.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,P0)),(0,Ae.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,P8)),(0,Ae.lazy)(t,"actions",n.convert(n.rawSchema.actions,x8)),(0,Ae.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,I8)),(0,Ae.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,I0)),(0,Ae.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,O8)),t.resolvePath=o(function(r){let a=Tr(n,void 0,r);return a.target&&pa(a.objectPath,a.target),a},"resolvePath"),t}o(R8,"convert");zg.convert=R8});var F0=ze(Zg=>{"use strict";Object.defineProperty(Zg,"__esModule",{value:!0});Zg.revertTermToGenericType=void 0;var wb=Qg();function L8(e,t){var n,i,r,a,s,l,u;let p;if(Array.isArray(t)){let g=t[0],m=!1;if(g&&typeof g=="string"){let h=g.valueOf().split(".");h.length>1&&e.find(S=>S.alias===h[0])&&(m=wb.EnumIsFlag[(0,wb.substringBeforeFirst)(g,"/")])}m?p={type:"EnumMember",EnumMember:t.map(h=>h.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(h=>Jg(e,h))}}else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))p={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))p={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let g=t.valueOf().split(".");g.length>1&&e.find(m=>m.alias===g[0])?p={type:"EnumMember",EnumMember:t.valueOf()}:p={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?p={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?p={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?p={type:"Date",Date:t.valueOf()}:!((u=t.isBoolean)===null||u===void 0)&&u.call(t)?p={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?p={type:"Path",Path:t.path}:t.type==="AnnotationPath"?p={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?p={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?p={type:"Null"}:t.type==="PropertyPath"?p={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?p={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(p={type:"Record",Record:Jg(e,t)});return p}o(L8,"revertObjectToRawType");function R0(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=L8(e,t);break}return n}o(R0,"revertValueToRawType");var N8=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function L0(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=N0(e,t[i][r]);if(!a.term){let s=(0,wb.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}o(L0,"revertAnnotationsToRawType");function Jg(e,t){if(typeof t=="string")return{type:"String",String:t};if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(N8.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:R0(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],L0(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value};if(t.type==="Constant")return t.value}}o(Jg,"revertCollectionItemToRawType");function N0(e,t){let n={term:t.term,qualifier:t.qualifier};return Array.isArray(t)?(t.hasOwnProperty("annotations")&&Object.keys(t.annotations).length>0&&(n.annotations=[],L0(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Jg(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Jg(e,t)}:{...n,value:R0(e,t)}}o(N0,"revertTermToGenericType");Zg.revertTermToGenericType=N0});var D0=ze(ga=>{"use strict";var F8=ga&&ga.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),Mb=ga&&ga.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&F8(t,e,n)};Object.defineProperty(ga,"__esModule",{value:!0});Mb(O0(),ga);Mb(Qg(),ga);Mb(F0(),ga)});var Bb=ze(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.MergedRawMetadata=ts.RawMetadataInstance=ts.ensureArray=void 0;function D8(e){return e==null?[]:Array.isArray(e)?e:[e]}o(D8,"ensureArray");ts.ensureArray=D8;var jb=class jb{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(jb,"RawMetadataInstance");var kb=jb;ts.RawMetadataInstance=kb;var $b=class $b{get references(){return this._references}get schema(){return{associations:this._associations,associationSets:this._associationSets,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,singletons:this._singletons,complexTypes:this._complexTypes,typeDefinitions:this._typeDefinitions,actions:this._actions,actionImports:this._actionImports,entityTypes:this._entityTypes}}constructor(t){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._associationSets=[],this._entitySets=[],this._singletons=[],this._actions=[],this._actionImports=[],this._entityContainer={_type:"EntityContainer",fullyQualifiedName:""},this._entityTypes=[],this._complexTypes=[],this._typeDefinitions=[],this.identification="mergedParserInstance",this.version=t.version,this._namespace=t.schema.namespace}addParserOutput(t){this._parserOutput.push(t),this._references=this._references.concat(t.references),this._associations=this._associations.concat(t.schema.associations),this._associationSets=this._associationSets.concat(t.schema.associationSets),this._annotations=Object.assign(this._annotations,t.schema.annotations),this._entitySets=this._entitySets.concat(t.schema.entitySets),this._singletons=this._singletons.concat(t.schema.singletons),this._actions=this._actions.concat(t.schema.actions),this._actionImports=this._actionImports.concat(t.schema.actionImports),this._entityTypes=this._entityTypes.concat(t.schema.entityTypes),this._complexTypes=this._complexTypes.concat(t.schema.complexTypes),this._typeDefinitions=this._typeDefinitions.concat(t.schema.typeDefinitions),t.schema.entityContainer.fullyQualifiedName.length>0&&(this._entityContainer=Object.assign(this._entityContainer,t.schema.entityContainer))}};o($b,"MergedRawMetadata");var Ub=$b;ts.MergedRawMetadata=Ub});var _0=ze(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});em.merge=void 0;var _8=Bb();function V8(...e){let t=new _8.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(V8,"merge");em.merge=V8});var V0=ze(tm=>{(function(e){e.parser=function(I,A){return new n(I,A)},e.SAXParser=n,e.SAXStream=p,e.createStream=u,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(I,A){if(!(this instanceof n))return new n(I,A);var Y=this;r(Y),Y.q=Y.c="",Y.bufferCheckPosition=e.MAX_BUFFER_LENGTH,Y.opt=A||{},Y.opt.lowercase=Y.opt.lowercase||Y.opt.lowercasetags,Y.looseCase=Y.opt.lowercase?"toLowerCase":"toUpperCase",Y.tags=[],Y.closed=Y.closedRoot=Y.sawRoot=!1,Y.tag=Y.error=null,Y.strict=!!I,Y.noscript=!!(I||Y.opt.noscript),Y.state=D.BEGIN,Y.strictEntities=Y.opt.strictEntities,Y.ENTITIES=Y.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),Y.attribList=[],Y.opt.xmlns&&(Y.ns=Object.create(b)),Y.opt.unquotedAttributeValues===void 0&&(Y.opt.unquotedAttributeValues=!I),Y.trackPosition=Y.opt.position!==!1,Y.trackPosition&&(Y.position=Y.line=Y.column=0),yt(Y,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(I){function A(){}o(A,"F"),A.prototype=I;var Y=new A;return Y}),Object.keys||(Object.keys=function(I){var A=[];for(var Y in I)I.hasOwnProperty(Y)&&A.push(Y);return A});function i(I){for(var A=Math.max(e.MAX_BUFFER_LENGTH,10),Y=0,V=0,_e=t.length;V<_e;V++){var Ft=I[t[V]].length;if(Ft>A)switch(t[V]){case"textNode":cn(I);break;case"cdata":je(I,"oncdata",I.cdata),I.cdata="";break;case"script":je(I,"onscript",I.script),I.script="";break;default:nn(I,"Max buffer length exceeded: "+t[V])}Y=Math.max(Y,Ft)}var qe=e.MAX_BUFFER_LENGTH-Y;I.bufferCheckPosition=qe+I.position}o(i,"checkBufferLength");function r(I){for(var A=0,Y=t.length;A<Y;A++)I[t[A]]=""}o(r,"clearBuffers");function a(I){cn(I),I.cdata!==""&&(je(I,"oncdata",I.cdata),I.cdata=""),I.script!==""&&(je(I,"onscript",I.script),I.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Nt(this)},"end"),write:ot,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(I){return I!=="error"&&I!=="end"});function u(I,A){return new p(I,A)}o(u,"createStream");function p(I,A){if(!(this instanceof p))return new p(I,A);s.apply(this),this._parser=new n(I,A),this.writable=!0,this.readable=!0;var Y=this;this._parser.onend=function(){Y.emit("end")},this._parser.onerror=function(V){Y.emit("error",V),Y._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(Y,"on"+V,{get:o(function(){return Y._parser["on"+V]},"get"),set:o(function(_e){if(!_e)return Y.removeAllListeners(V),Y._parser["on"+V]=_e,_e;Y.on(V,_e)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(I){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(I)){if(!this._decoder){var A=require("string_decoder").StringDecoder;this._decoder=new A("utf8")}I=this._decoder.write(I)}return this._parser.write(I.toString()),this.emit("data",I),!0},p.prototype.end=function(I){return I&&I.length&&this.write(I),this._parser.end(),!0},p.prototype.on=function(I,A){var Y=this;return!Y._parser["on"+I]&&l.indexOf(I)!==-1&&(Y._parser["on"+I]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,I),Y.emit.apply(Y,V)}),s.prototype.on.call(Y,I,A)};var g="[CDATA[",m="DOCTYPE",h="http://www.w3.org/XML/1998/namespace",S="http://www.w3.org/2000/xmlns/",b={xml:h,xmlns:S},O=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,N=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,M=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,G=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function j(I){return I===" "||I===`
|
|
20
|
-
`||I==="\r"||I===" "}o(j,"isWhitespace");function re(I){return I==='"'||I==="'"}o(re,"isQuote");function Z(I){return I===">"||j(I)}o(Z,"isAttribEnd");function oe(I,
|
|
19
|
+
</Annotations>`),r}o(v0,"inferTypeFromTerm");function v8(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(v8,"isDataFieldWithForAction");function b8(e,t,n,i,r){let a;return!r.type&&t?a=v0(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(b8,"parseRecordType");function _b(e,t,n,i,r,a,s){let l={$Type:b8(e,t,n,i,a),fullyQualifiedName:s,[fo]:n,__source:r};for(let u of a.propertyValues)(0,Ee.lazy)(l,u.name,()=>T0(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Ee.lazy)(l,"annotations",A0(e,a,l)),v8(l)&&(0,Ee.lazy)(l,"ActionTarget",()=>{var u,p;let g=e.unalias((u=l.Action)===null||u===void 0?void 0:u.toString()),m=n.actions[g];return m||(m=(p=e.getConvertedActionImport(g))===null||p===void 0?void 0:p.action),m||(m=e.getConvertedAction(g),m!=null&&m.isBound||(m=void 0)),m||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${g}')`),m}),l}o(_b,"parseRecord");function S8(e){let t=e.type;if(t===void 0&&e.length>0){let n=e[0];n.hasOwnProperty("PropertyPath")?t="PropertyPath":n.hasOwnProperty("Path")?t="Path":n.hasOwnProperty("AnnotationPath")?t="AnnotationPath":n.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":typeof n=="object"&&(n.hasOwnProperty("type")||n.hasOwnProperty("propertyValues"))?t="Record":typeof n=="string"&&(t="String")}else t===void 0&&(t="EmptyCollection");return t}o(S8,"getOrInferCollectionType");function b0(e,t,n,i,r,a,s){switch(S8(a)){case"PropertyPath":return a.map((u,p)=>m0(e,u,`${s}/${p}`,t,n));case"Path":return a.map(u=>Tr(e,t,u.Path,n).target);case"AnnotationPath":return a.map((u,p)=>h0(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((u,p)=>y0(e,u,`${s}/${p}`,t,n));case"Record":return a.map((u,p)=>_b(e,n,t,i,r,u,`${s}/${p}`));case"Apply":case"Null":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return a.map(u=>u);case"String":return a.map(u=>typeof u=="string"||u===void 0?u:u.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}o(b0,"parseCollection");function A8(e){return!!e.targetTypeName}o(A8,"isV4NavigationProperty");function E8(e,t,n){var i;let r;if(n.record)r=_b(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=T0(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)r=b0(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof r){case"string":r=new String(r);break;case"boolean":r=new Boolean(r);break;case"number":r=new Number(r);break;default:break}r.fullyQualifiedName=n.fullyQualifiedName,r[fo]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,qg.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Ee.lazy)(r,"annotations",A0(e,n,r))}catch{}return r}o(E8,"convertAnnotation");var Vb=class Vb{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(r=>({name:r,annotationList:this.rawSchema.annotations[r]}));this.annotationsByTarget=(0,Ee.mergeAnnotations)(this.rawMetadata.references,...i)}return(n=this.annotationsByTarget[t])!==null&&n!==void 0?n:[]}getConvertedEntityContainer(){return this.getConvertedElement(this.rawMetadata.schema.entityContainer.fullyQualifiedName,this.rawMetadata.schema.entityContainer,E0)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&r.push(s),r},[]);return(0,Ee.addGetByValue)(i,"name"),(0,Ee.addGetByValue)(i,"fullyQualifiedName"),i}:()=>this.getConvertedElement(t.fullyQualifiedName,t,n)}constructor(t,n){this.convertedElements=new Map,this.rawMetadata=t,this.rawSchema=t.schema,this.convertedOutput=n}getConvertedElement(t,n,i){let r=this.convertedElements.get(t);if(r===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(r=i.apply(void 0,[this,a]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,Ee.alias)(qg.VocabularyReferences,t);return(0,Ee.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Ee.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(Vb,"Converter");var Fb=Vb;function Eu(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(Eu,"resolveEntityType");function S0(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Ee.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(S0,"resolveNavigationPropertyBindings");function da(e,t){let n=t.annotations;return()=>Yg(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(da,"resolveAnnotations");function A0(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(a=>{a.target=i,a.__source=n.__source,a[fo]=n[fo],a.fullyQualifiedName=`${i}@${a.term}`}),Yg(e,n,r??[])}}o(A0,"resolveAnnotationsOnAnnotation");function Yg(e,t,n){return n.reduce((i,r)=>{let[a,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,Ee.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(u,p)=>E8(u,t,p))),i},{})}o(Yg,"createAnnotationsObject");function E0(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",da(e,t)),(0,Ee.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,x0)),(0,Ee.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,P0)),(0,Ee.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,I0)),n}o(E0,"convertEntityContainer");function P0(e,t){let n=t;(0,Ee.lazy)(n,"entityType",Eu(e,t.entityTypeName)),(0,Ee.lazy)(n,"annotations",da(e,n));let i=t.navigationPropertyBinding;return(0,Ee.lazy)(n,"navigationPropertyBinding",S0(e,i)),n}o(P0,"convertSingleton");function x0(e,t){let n=t;(0,Ee.lazy)(n,"entityType",Eu(e,t.entityTypeName)),(0,Ee.lazy)(n,"annotations",da(e,n));let i=t.navigationPropertyBinding;return(0,Ee.lazy)(n,"navigationPropertyBinding",S0(e,i)),n}o(x0,"convertEntitySet");function P8(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Ee.lazy)(n,"annotations",da(e,t)),(0,Ee.lazy)(n,"keys",e.convert(t.keys,Db)),(0,Ee.lazy)(n,"entityProperties",e.convert(t.entityProperties,Db)),(0,Ee.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,C0)),(0,Ee.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,r)=>{let a=`${e.rawSchema.namespace}.${r.name}`;return i[a]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let a=Tr(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(P8,"convertEntityType");function Db(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",da(e,t)),(0,Ee.lazy)(n,"targetType",()=>{var i;let r=t.type,a=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}o(Db,"convertProperty");function C0(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!A8(t)){let s=(i=e.rawSchema.associations.find(l=>l.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(l=>l.role===t.toRole);a.isCollection=(s==null?void 0:s.multiplicity)==="*",a.targetTypeName=(r=s==null?void 0:s.type)!==null&&r!==void 0?r:""}return(0,Ee.lazy)(a,"targetType",Eu(e,t.targetTypeName)),(0,Ee.lazy)(a,"annotations",da(e,t)),a}o(C0,"convertNavigationProperty");function I0(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",da(e,t)),(0,Ee.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}o(I0,"convertActionImport");function x8(e,t){let n=t;return n.sourceType&&(0,Ee.lazy)(n,"sourceEntityType",Eu(e,t.sourceType)),n.returnType&&(0,Ee.lazy)(n,"returnEntityType",Eu(e,t.returnType)),(0,Ee.lazy)(n,"parameters",e.convert(t.parameters,C8)),(0,Ee.lazy)(n,"annotations",()=>{let i=(0,Ee.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Yg(e,t,a)}),n}o(x8,"convertAction");function C8(e,t){let n=t;return(0,Ee.lazy)(n,"typeReference",()=>{var i,r;return(r=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&r!==void 0?r:e.getConvertedTypeDefinition(t.type)}),(0,Ee.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Yg(e,t,a)}),n}o(C8,"convertActionParameter");function I8(e,t){let n=t;return(0,Ee.lazy)(n,"properties",e.convert(t.properties,Db)),(0,Ee.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,C0)),(0,Ee.lazy)(n,"annotations",da(e,t)),n}o(I8,"convertComplexType");function O8(e,t){let n=t;return(0,Ee.lazy)(n,"annotations",da(e,t)),n}o(O8,"convertTypeDefinition");function R8(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:qg.VocabularyReferences,diagnostics:[]},n=new Fb(e,t);return(0,Ee.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,E0)),(0,Ee.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,x0)),(0,Ee.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,P0)),(0,Ee.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,P8)),(0,Ee.lazy)(t,"actions",n.convert(n.rawSchema.actions,x8)),(0,Ee.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,I8)),(0,Ee.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,I0)),(0,Ee.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,O8)),t.resolvePath=o(function(r){let a=Tr(n,void 0,r);return a.target&&pa(a.objectPath,a.target),a},"resolvePath"),t}o(R8,"convert");zg.convert=R8});var F0=ze(Zg=>{"use strict";Object.defineProperty(Zg,"__esModule",{value:!0});Zg.revertTermToGenericType=void 0;var wb=Qg();function L8(e,t){var n,i,r,a,s,l,u;let p;if(Array.isArray(t)){let g=t[0],m=!1;if(g&&typeof g=="string"){let h=g.valueOf().split(".");h.length>1&&e.find(S=>S.alias===h[0])&&(m=wb.EnumIsFlag[(0,wb.substringBeforeFirst)(g,"/")])}m?p={type:"EnumMember",EnumMember:t.map(h=>h.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(h=>Jg(e,h))}}else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))p={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))p={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let g=t.valueOf().split(".");g.length>1&&e.find(m=>m.alias===g[0])?p={type:"EnumMember",EnumMember:t.valueOf()}:p={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?p={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?p={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?p={type:"Date",Date:t.valueOf()}:!((u=t.isBoolean)===null||u===void 0)&&u.call(t)?p={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?p={type:"Path",Path:t.path}:t.type==="AnnotationPath"?p={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?p={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?p={type:"Null"}:t.type==="PropertyPath"?p={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?p={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(p={type:"Record",Record:Jg(e,t)});return p}o(L8,"revertObjectToRawType");function R0(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=L8(e,t);break}return n}o(R0,"revertValueToRawType");var N8=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function L0(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=N0(e,t[i][r]);if(!a.term){let s=(0,wb.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}o(L0,"revertAnnotationsToRawType");function Jg(e,t){if(typeof t=="string")return{type:"String",String:t};if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(N8.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:R0(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],L0(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value};if(t.type==="Constant")return t.value}}o(Jg,"revertCollectionItemToRawType");function N0(e,t){let n={term:t.term,qualifier:t.qualifier};return Array.isArray(t)?(t.hasOwnProperty("annotations")&&Object.keys(t.annotations).length>0&&(n.annotations=[],L0(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Jg(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Jg(e,t)}:{...n,value:R0(e,t)}}o(N0,"revertTermToGenericType");Zg.revertTermToGenericType=N0});var D0=ze(ga=>{"use strict";var F8=ga&&ga.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),Mb=ga&&ga.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&F8(t,e,n)};Object.defineProperty(ga,"__esModule",{value:!0});Mb(O0(),ga);Mb(Qg(),ga);Mb(F0(),ga)});var Bb=ze(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.MergedRawMetadata=ts.RawMetadataInstance=ts.ensureArray=void 0;function D8(e){return e==null?[]:Array.isArray(e)?e:[e]}o(D8,"ensureArray");ts.ensureArray=D8;var jb=class jb{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(jb,"RawMetadataInstance");var kb=jb;ts.RawMetadataInstance=kb;var $b=class $b{get references(){return this._references}get schema(){return{associations:this._associations,associationSets:this._associationSets,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,singletons:this._singletons,complexTypes:this._complexTypes,typeDefinitions:this._typeDefinitions,actions:this._actions,actionImports:this._actionImports,entityTypes:this._entityTypes}}constructor(t){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._associationSets=[],this._entitySets=[],this._singletons=[],this._actions=[],this._actionImports=[],this._entityContainer={_type:"EntityContainer",fullyQualifiedName:""},this._entityTypes=[],this._complexTypes=[],this._typeDefinitions=[],this.identification="mergedParserInstance",this.version=t.version,this._namespace=t.schema.namespace}addParserOutput(t){this._parserOutput.push(t),this._references=this._references.concat(t.references),this._associations=this._associations.concat(t.schema.associations),this._associationSets=this._associationSets.concat(t.schema.associationSets),this._annotations=Object.assign(this._annotations,t.schema.annotations),this._entitySets=this._entitySets.concat(t.schema.entitySets),this._singletons=this._singletons.concat(t.schema.singletons),this._actions=this._actions.concat(t.schema.actions),this._actionImports=this._actionImports.concat(t.schema.actionImports),this._entityTypes=this._entityTypes.concat(t.schema.entityTypes),this._complexTypes=this._complexTypes.concat(t.schema.complexTypes),this._typeDefinitions=this._typeDefinitions.concat(t.schema.typeDefinitions),t.schema.entityContainer.fullyQualifiedName.length>0&&(this._entityContainer=Object.assign(this._entityContainer,t.schema.entityContainer))}};o($b,"MergedRawMetadata");var Ub=$b;ts.MergedRawMetadata=Ub});var _0=ze(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});em.merge=void 0;var _8=Bb();function V8(...e){let t=new _8.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(V8,"merge");em.merge=V8});var V0=ze(tm=>{(function(e){e.parser=function(I,E){return new n(I,E)},e.SAXParser=n,e.SAXStream=p,e.createStream=u,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(I,E){if(!(this instanceof n))return new n(I,E);var Y=this;r(Y),Y.q=Y.c="",Y.bufferCheckPosition=e.MAX_BUFFER_LENGTH,Y.opt=E||{},Y.opt.lowercase=Y.opt.lowercase||Y.opt.lowercasetags,Y.looseCase=Y.opt.lowercase?"toLowerCase":"toUpperCase",Y.tags=[],Y.closed=Y.closedRoot=Y.sawRoot=!1,Y.tag=Y.error=null,Y.strict=!!I,Y.noscript=!!(I||Y.opt.noscript),Y.state=D.BEGIN,Y.strictEntities=Y.opt.strictEntities,Y.ENTITIES=Y.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),Y.attribList=[],Y.opt.xmlns&&(Y.ns=Object.create(b)),Y.opt.unquotedAttributeValues===void 0&&(Y.opt.unquotedAttributeValues=!I),Y.trackPosition=Y.opt.position!==!1,Y.trackPosition&&(Y.position=Y.line=Y.column=0),yt(Y,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(I){function E(){}o(E,"F"),E.prototype=I;var Y=new E;return Y}),Object.keys||(Object.keys=function(I){var E=[];for(var Y in I)I.hasOwnProperty(Y)&&E.push(Y);return E});function i(I){for(var E=Math.max(e.MAX_BUFFER_LENGTH,10),Y=0,V=0,_e=t.length;V<_e;V++){var Ft=I[t[V]].length;if(Ft>E)switch(t[V]){case"textNode":cn(I);break;case"cdata":je(I,"oncdata",I.cdata),I.cdata="";break;case"script":je(I,"onscript",I.script),I.script="";break;default:nn(I,"Max buffer length exceeded: "+t[V])}Y=Math.max(Y,Ft)}var qe=e.MAX_BUFFER_LENGTH-Y;I.bufferCheckPosition=qe+I.position}o(i,"checkBufferLength");function r(I){for(var E=0,Y=t.length;E<Y;E++)I[t[E]]=""}o(r,"clearBuffers");function a(I){cn(I),I.cdata!==""&&(je(I,"oncdata",I.cdata),I.cdata=""),I.script!==""&&(je(I,"onscript",I.script),I.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Nt(this)},"end"),write:ot,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(I){return I!=="error"&&I!=="end"});function u(I,E){return new p(I,E)}o(u,"createStream");function p(I,E){if(!(this instanceof p))return new p(I,E);s.apply(this),this._parser=new n(I,E),this.writable=!0,this.readable=!0;var Y=this;this._parser.onend=function(){Y.emit("end")},this._parser.onerror=function(V){Y.emit("error",V),Y._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(Y,"on"+V,{get:o(function(){return Y._parser["on"+V]},"get"),set:o(function(_e){if(!_e)return Y.removeAllListeners(V),Y._parser["on"+V]=_e,_e;Y.on(V,_e)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(I){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(I)){if(!this._decoder){var E=require("string_decoder").StringDecoder;this._decoder=new E("utf8")}I=this._decoder.write(I)}return this._parser.write(I.toString()),this.emit("data",I),!0},p.prototype.end=function(I){return I&&I.length&&this.write(I),this._parser.end(),!0},p.prototype.on=function(I,E){var Y=this;return!Y._parser["on"+I]&&l.indexOf(I)!==-1&&(Y._parser["on"+I]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,I),Y.emit.apply(Y,V)}),s.prototype.on.call(Y,I,E)};var g="[CDATA[",m="DOCTYPE",h="http://www.w3.org/XML/1998/namespace",S="http://www.w3.org/2000/xmlns/",b={xml:h,xmlns:S},O=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,N=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,M=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,G=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function j(I){return I===" "||I===`
|
|
20
|
+
`||I==="\r"||I===" "}o(j,"isWhitespace");function re(I){return I==='"'||I==="'"}o(re,"isQuote");function Z(I){return I===">"||j(I)}o(Z,"isAttribEnd");function oe(I,E){return I.test(E)}o(oe,"isMatch");function Pe(I,E){return!oe(I,E)}o(Pe,"notMatch");var D=0;e.STATE={BEGIN:D++,BEGIN_WHITESPACE:D++,TEXT:D++,TEXT_ENTITY:D++,OPEN_WAKA:D++,SGML_DECL:D++,SGML_DECL_QUOTED:D++,DOCTYPE:D++,DOCTYPE_QUOTED:D++,DOCTYPE_DTD:D++,DOCTYPE_DTD_QUOTED:D++,COMMENT_STARTING:D++,COMMENT:D++,COMMENT_ENDING:D++,COMMENT_ENDED:D++,CDATA:D++,CDATA_ENDING:D++,CDATA_ENDING_2:D++,PROC_INST:D++,PROC_INST_BODY:D++,PROC_INST_ENDING:D++,OPEN_TAG:D++,OPEN_TAG_SLASH:D++,ATTRIB:D++,ATTRIB_NAME:D++,ATTRIB_NAME_SAW_WHITE:D++,ATTRIB_VALUE:D++,ATTRIB_VALUE_QUOTED:D++,ATTRIB_VALUE_CLOSED:D++,ATTRIB_VALUE_UNQUOTED:D++,ATTRIB_VALUE_ENTITY_Q:D++,ATTRIB_VALUE_ENTITY_U:D++,CLOSE_TAG:D++,CLOSE_TAG_SAW_WHITE:D++,SCRIPT:D++,SCRIPT_ENDING:D++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(I){var E=e.ENTITIES[I],Y=typeof E=="number"?String.fromCharCode(E):E;e.ENTITIES[I]=Y});for(var pt in e.STATE)e.STATE[e.STATE[pt]]=pt;D=e.STATE;function yt(I,E,Y){I[E]&&I[E](Y)}o(yt,"emit");function je(I,E,Y){I.textNode&&cn(I),yt(I,E,Y)}o(je,"emitNode");function cn(I){I.textNode=Wn(I.opt,I.textNode),I.textNode&&yt(I,"ontext",I.textNode),I.textNode=""}o(cn,"closeText");function Wn(I,E){return I.trim&&(E=E.trim()),I.normalize&&(E=E.replace(/\s+/g," ")),E}o(Wn,"textopts");function nn(I,E){return cn(I),I.trackPosition&&(E+=`
|
|
21
21
|
Line: `+I.line+`
|
|
22
22
|
Column: `+I.column+`
|
|
23
|
-
Char: `+I.c),
|
|
23
|
+
Char: `+I.c),E=new Error(E),I.error=E,yt(I,"onerror",E),I}o(nn,"error");function Nt(I){return I.sawRoot&&!I.closedRoot&&Ne(I,"Unclosed root tag"),I.state!==D.BEGIN&&I.state!==D.BEGIN_WHITESPACE&&I.state!==D.TEXT&&nn(I,"Unexpected end"),cn(I),I.c="",I.closed=!0,yt(I,"onend"),n.call(I,I.strict,I.opt),I}o(Nt,"end");function Ne(I,E){if(typeof I!="object"||!(I instanceof n))throw new Error("bad call to strictFail");I.strict&&nn(I,E)}o(Ne,"strictFail");function Ri(I){I.strict||(I.tagName=I.tagName[I.looseCase]());var E=I.tags[I.tags.length-1]||I,Y=I.tag={name:I.tagName,attributes:{}};I.opt.xmlns&&(Y.ns=E.ns),I.attribList.length=0,je(I,"onopentagstart",Y)}o(Ri,"newTag");function Ct(I,E){var Y=I.indexOf(":"),V=Y<0?["",I]:I.split(":"),_e=V[0],Ft=V[1];return E&&I==="xmlns"&&(_e="xmlns",Ft=""),{prefix:_e,local:Ft}}o(Ct,"qname");function Ut(I){if(I.strict||(I.attribName=I.attribName[I.looseCase]()),I.attribList.indexOf(I.attribName)!==-1||I.tag.attributes.hasOwnProperty(I.attribName)){I.attribName=I.attribValue="";return}if(I.opt.xmlns){var E=Ct(I.attribName,!0),Y=E.prefix,V=E.local;if(Y==="xmlns")if(V==="xml"&&I.attribValue!==h)Ne(I,"xml: prefix must be bound to "+h+`
|
|
24
24
|
Actual: `+I.attribValue);else if(V==="xmlns"&&I.attribValue!==S)Ne(I,"xmlns: prefix must be bound to "+S+`
|
|
25
|
-
Actual: `+I.attribValue);else{var _e=I.tag,Ft=I.tags[I.tags.length-1]||I;_e.ns===Ft.ns&&(_e.ns=Object.create(Ft.ns)),_e.ns[V]=I.attribValue}I.attribList.push([I.attribName,I.attribValue])}else I.tag.attributes[I.attribName]=I.attribValue,je(I,"onattribute",{name:I.attribName,value:I.attribValue});I.attribName=I.attribValue=""}o(Ut,"attrib");function ln(I,
|
|
26
|
-
`?(
|
|
27
|
-
`?(A.line++,A.column=0):A.column++);A.textNode+=I.substring(_e,Y-1)}V==="<"&&!(A.sawRoot&&A.closedRoot&&!A.strict)?(A.state=D.OPEN_WAKA,A.startTagPosition=A.position):(!j(V)&&(!A.sawRoot||A.closedRoot)&&Ne(A,"Text data outside of root node."),V==="&"?A.state=D.TEXT_ENTITY:A.textNode+=V);continue;case D.SCRIPT:V==="<"?A.state=D.SCRIPT_ENDING:A.script+=V;continue;case D.SCRIPT_ENDING:V==="/"?A.state=D.CLOSE_TAG:(A.script+="<"+V,A.state=D.SCRIPT);continue;case D.OPEN_WAKA:if(V==="!")A.state=D.SGML_DECL,A.sgmlDecl="";else if(!j(V))if(oe(O,V))A.state=D.OPEN_TAG,A.tagName=V;else if(V==="/")A.state=D.CLOSE_TAG,A.tagName="";else if(V==="?")A.state=D.PROC_INST,A.procInstName=A.procInstBody="";else{if(Ne(A,"Unencoded <"),A.startTagPosition+1<A.position){var Ft=A.position-A.startTagPosition;V=new Array(Ft).join(" ")+V}A.textNode+="<"+V,A.state=D.TEXT}continue;case D.SGML_DECL:if(A.sgmlDecl+V==="--"){A.state=D.COMMENT,A.comment="",A.sgmlDecl="";continue}A.doctype&&A.doctype!==!0&&A.sgmlDecl?(A.state=D.DOCTYPE_DTD,A.doctype+="<!"+A.sgmlDecl+V,A.sgmlDecl=""):(A.sgmlDecl+V).toUpperCase()===g?(je(A,"onopencdata"),A.state=D.CDATA,A.sgmlDecl="",A.cdata=""):(A.sgmlDecl+V).toUpperCase()===m?(A.state=D.DOCTYPE,(A.doctype||A.sawRoot)&&Ne(A,"Inappropriately located doctype declaration"),A.doctype="",A.sgmlDecl=""):V===">"?(je(A,"onsgmldeclaration",A.sgmlDecl),A.sgmlDecl="",A.state=D.TEXT):(re(V)&&(A.state=D.SGML_DECL_QUOTED),A.sgmlDecl+=V);continue;case D.SGML_DECL_QUOTED:V===A.q&&(A.state=D.SGML_DECL,A.q=""),A.sgmlDecl+=V;continue;case D.DOCTYPE:V===">"?(A.state=D.TEXT,je(A,"ondoctype",A.doctype),A.doctype=!0):(A.doctype+=V,V==="["?A.state=D.DOCTYPE_DTD:re(V)&&(A.state=D.DOCTYPE_QUOTED,A.q=V));continue;case D.DOCTYPE_QUOTED:A.doctype+=V,V===A.q&&(A.q="",A.state=D.DOCTYPE);continue;case D.DOCTYPE_DTD:V==="]"?(A.doctype+=V,A.state=D.DOCTYPE):V==="<"?(A.state=D.OPEN_WAKA,A.startTagPosition=A.position):re(V)?(A.doctype+=V,A.state=D.DOCTYPE_DTD_QUOTED,A.q=V):A.doctype+=V;continue;case D.DOCTYPE_DTD_QUOTED:A.doctype+=V,V===A.q&&(A.state=D.DOCTYPE_DTD,A.q="");continue;case D.COMMENT:V==="-"?A.state=D.COMMENT_ENDING:A.comment+=V;continue;case D.COMMENT_ENDING:V==="-"?(A.state=D.COMMENT_ENDED,A.comment=Wn(A.opt,A.comment),A.comment&&je(A,"oncomment",A.comment),A.comment=""):(A.comment+="-"+V,A.state=D.COMMENT);continue;case D.COMMENT_ENDED:V!==">"?(Ne(A,"Malformed comment"),A.comment+="--"+V,A.state=D.COMMENT):A.doctype&&A.doctype!==!0?A.state=D.DOCTYPE_DTD:A.state=D.TEXT;continue;case D.CDATA:V==="]"?A.state=D.CDATA_ENDING:A.cdata+=V;continue;case D.CDATA_ENDING:V==="]"?A.state=D.CDATA_ENDING_2:(A.cdata+="]"+V,A.state=D.CDATA);continue;case D.CDATA_ENDING_2:V===">"?(A.cdata&&je(A,"oncdata",A.cdata),je(A,"onclosecdata"),A.cdata="",A.state=D.TEXT):V==="]"?A.cdata+="]":(A.cdata+="]]"+V,A.state=D.CDATA);continue;case D.PROC_INST:V==="?"?A.state=D.PROC_INST_ENDING:j(V)?A.state=D.PROC_INST_BODY:A.procInstName+=V;continue;case D.PROC_INST_BODY:if(!A.procInstBody&&j(V))continue;V==="?"?A.state=D.PROC_INST_ENDING:A.procInstBody+=V;continue;case D.PROC_INST_ENDING:V===">"?(je(A,"onprocessinginstruction",{name:A.procInstName,body:A.procInstBody}),A.procInstName=A.procInstBody="",A.state=D.TEXT):(A.procInstBody+="?"+V,A.state=D.PROC_INST_BODY);continue;case D.OPEN_TAG:oe(N,V)?A.tagName+=V:(Ri(A),V===">"?ln(A):V==="/"?A.state=D.OPEN_TAG_SLASH:(j(V)||Ne(A,"Invalid character in tag name"),A.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:V===">"?(ln(A,!0),Wi(A)):(Ne(A,"Forward-slash in opening tag not followed by >"),A.state=D.ATTRIB);continue;case D.ATTRIB:if(j(V))continue;V===">"?ln(A):V==="/"?A.state=D.OPEN_TAG_SLASH:oe(O,V)?(A.attribName=V,A.attribValue="",A.state=D.ATTRIB_NAME):Ne(A,"Invalid attribute name");continue;case D.ATTRIB_NAME:V==="="?A.state=D.ATTRIB_VALUE:V===">"?(Ne(A,"Attribute without value"),A.attribValue=A.attribName,Ut(A),ln(A)):j(V)?A.state=D.ATTRIB_NAME_SAW_WHITE:oe(N,V)?A.attribName+=V:Ne(A,"Invalid attribute name");continue;case D.ATTRIB_NAME_SAW_WHITE:if(V==="=")A.state=D.ATTRIB_VALUE;else{if(j(V))continue;Ne(A,"Attribute without value"),A.tag.attributes[A.attribName]="",A.attribValue="",je(A,"onattribute",{name:A.attribName,value:""}),A.attribName="",V===">"?ln(A):oe(O,V)?(A.attribName=V,A.state=D.ATTRIB_NAME):(Ne(A,"Invalid attribute name"),A.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if(j(V))continue;re(V)?(A.q=V,A.state=D.ATTRIB_VALUE_QUOTED):(A.opt.unquotedAttributeValues||nn(A,"Unquoted attribute value"),A.state=D.ATTRIB_VALUE_UNQUOTED,A.attribValue=V);continue;case D.ATTRIB_VALUE_QUOTED:if(V!==A.q){V==="&"?A.state=D.ATTRIB_VALUE_ENTITY_Q:A.attribValue+=V;continue}Ut(A),A.q="",A.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:j(V)?A.state=D.ATTRIB:V===">"?ln(A):V==="/"?A.state=D.OPEN_TAG_SLASH:oe(O,V)?(Ne(A,"No whitespace between attributes"),A.attribName=V,A.attribValue="",A.state=D.ATTRIB_NAME):Ne(A,"Invalid attribute name");continue;case D.ATTRIB_VALUE_UNQUOTED:if(!Z(V)){V==="&"?A.state=D.ATTRIB_VALUE_ENTITY_U:A.attribValue+=V;continue}Ut(A),V===">"?ln(A):A.state=D.ATTRIB;continue;case D.CLOSE_TAG:if(A.tagName)V===">"?Wi(A):oe(N,V)?A.tagName+=V:A.script?(A.script+="</"+A.tagName,A.tagName="",A.state=D.SCRIPT):(j(V)||Ne(A,"Invalid tagname in closing tag"),A.state=D.CLOSE_TAG_SAW_WHITE);else{if(j(V))continue;Pe(O,V)?A.script?(A.script+="</"+V,A.state=D.SCRIPT):Ne(A,"Invalid tagname in closing tag."):A.tagName=V}continue;case D.CLOSE_TAG_SAW_WHITE:if(j(V))continue;V===">"?Wi(A):Ne(A,"Invalid characters in closing tag");continue;case D.TEXT_ENTITY:case D.ATTRIB_VALUE_ENTITY_Q:case D.ATTRIB_VALUE_ENTITY_U:var qe,jt;switch(A.state){case D.TEXT_ENTITY:qe=D.TEXT,jt="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:qe=D.ATTRIB_VALUE_QUOTED,jt="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:qe=D.ATTRIB_VALUE_UNQUOTED,jt="attribValue";break}if(V===";"){var Tn=Fe(A);A.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(Tn)?(A.entity="",A.state=qe,A.write(Tn)):(A[jt]+=Tn,A.entity="",A.state=qe)}else oe(A.entity.length?G:M,V)?A.entity+=V:(Ne(A,"Invalid character in entity name"),A[jt]+="&"+A.entity+V,A.entity="",A.state=qe);continue;default:throw new Error(A,"Unknown state: "+A.state)}return A.position>=A.bufferCheckPosition&&i(A),A}o(ot,"write");String.fromCodePoint||function(){var I=String.fromCharCode,A=Math.floor,Y=o(function(){var V=16384,_e=[],Ft,qe,jt=-1,Tn=arguments.length;if(!Tn)return"";for(var fn="";++jt<Tn;){var Gt=Number(arguments[jt]);if(!isFinite(Gt)||Gt<0||Gt>1114111||A(Gt)!==Gt)throw RangeError("Invalid code point: "+Gt);Gt<=65535?_e.push(Gt):(Gt-=65536,Ft=(Gt>>10)+55296,qe=Gt%1024+56320,_e.push(Ft,qe)),(jt+1===Tn||_e.length>V)&&(fn+=I.apply(null,_e),_e.length=0)}return fn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Y,configurable:!0,writable:!0}):String.fromCodePoint=Y}()})(typeof tm>"u"?tm.sax={}:tm)});var nm=ze((Fee,w0)=>{w0.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var im=ze((_ee,M0)=>{var w8=nm().isArray;M0.exports={copyOptions:o(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},"copyOptions"),ensureFlagExists:o(function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},"ensureFlagExists"),ensureSpacesExists:o(function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},"ensureSpacesExists"),ensureAlwaysArrayExists:o(function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!w8(e.alwaysArray))&&(e.alwaysArray=!1)},"ensureAlwaysArrayExists"),ensureKeyExists:o(function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},"ensureKeyExists"),checkFnExists:o(function(e,t){return e+"Fn"in t},"checkFnExists")}});var Gb=ze((wee,W0)=>{var M8=V0(),k8={on:o(function(){},"on"),parse:o(function(){},"parse")},nt=im(),Pl=nm().isArray,H,Hb=!0,$e;function U8(e){return H=nt.copyOptions(e),nt.ensureFlagExists("ignoreDeclaration",H),nt.ensureFlagExists("ignoreInstruction",H),nt.ensureFlagExists("ignoreAttributes",H),nt.ensureFlagExists("ignoreText",H),nt.ensureFlagExists("ignoreComment",H),nt.ensureFlagExists("ignoreCdata",H),nt.ensureFlagExists("ignoreDoctype",H),nt.ensureFlagExists("compact",H),nt.ensureFlagExists("alwaysChildren",H),nt.ensureFlagExists("addParent",H),nt.ensureFlagExists("trim",H),nt.ensureFlagExists("nativeType",H),nt.ensureFlagExists("nativeTypeAttributes",H),nt.ensureFlagExists("sanitize",H),nt.ensureFlagExists("instructionHasAttributes",H),nt.ensureFlagExists("captureSpacesBetweenElements",H),nt.ensureAlwaysArrayExists(H),nt.ensureKeyExists("declaration",H),nt.ensureKeyExists("instruction",H),nt.ensureKeyExists("attributes",H),nt.ensureKeyExists("text",H),nt.ensureKeyExists("comment",H),nt.ensureKeyExists("cdata",H),nt.ensureKeyExists("doctype",H),nt.ensureKeyExists("type",H),nt.ensureKeyExists("name",H),nt.ensureKeyExists("elements",H),nt.ensureKeyExists("parent",H),nt.checkFnExists("doctype",H),nt.checkFnExists("instruction",H),nt.checkFnExists("cdata",H),nt.checkFnExists("comment",H),nt.checkFnExists("text",H),nt.checkFnExists("instructionName",H),nt.checkFnExists("elementName",H),nt.checkFnExists("attributeName",H),nt.checkFnExists("attributeValue",H),nt.checkFnExists("attributes",H),H}o(U8,"validateOptions");function H0(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(H0,"nativeType");function Pu(e,t){var n;if(H.compact){if(!$e[H[e+"Key"]]&&(Pl(H.alwaysArray)?H.alwaysArray.indexOf(H[e+"Key"])!==-1:H.alwaysArray)&&($e[H[e+"Key"]]=[]),$e[H[e+"Key"]]&&!Pl($e[H[e+"Key"]])&&($e[H[e+"Key"]]=[$e[H[e+"Key"]]]),e+"Fn"in H&&typeof t=="string"&&(t=H[e+"Fn"](t,$e)),e==="instruction"&&("instructionFn"in H||"instructionNameFn"in H)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in H)t[n]=H.instructionFn(t[n],n,$e);else{var i=t[n];delete t[n],t[H.instructionNameFn(n,i,$e)]=i}}Pl($e[H[e+"Key"]])?$e[H[e+"Key"]].push(t):$e[H[e+"Key"]]=t}else{$e[H.elementsKey]||($e[H.elementsKey]=[]);var r={};if(r[H.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[H.nameKey]="instructionNameFn"in H?H.instructionNameFn(n,t,$e):n,H.instructionHasAttributes?(r[H.attributesKey]=t[n][H.attributesKey],"instructionFn"in H&&(r[H.attributesKey]=H.instructionFn(r[H.attributesKey],n,$e))):("instructionFn"in H&&(t[n]=H.instructionFn(t[n],n,$e)),r[H.instructionKey]=t[n])}else e+"Fn"in H&&(t=H[e+"Fn"](t,$e)),r[H[e+"Key"]]=t;H.addParent&&(r[H.parentKey]=$e),$e[H.elementsKey].push(r)}}o(Pu,"addField");function G0(e){if("attributesFn"in H&&e&&(e=H.attributesFn(e,$e)),(H.trim||"attributeValueFn"in H||"attributeNameFn"in H||H.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(H.trim&&(e[t]=e[t].trim()),H.nativeTypeAttributes&&(e[t]=H0(e[t])),"attributeValueFn"in H&&(e[t]=H.attributeValueFn(e[t],t,$e)),"attributeNameFn"in H)){var n=e[t];delete e[t],e[H.attributeNameFn(t,e[t],$e)]=n}}return e}o(G0,"manipulateAttributes");function j8(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||H.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,i;(i=n.exec(e.body))!==null;)t[i[1]]=i[2]||i[3]||i[4];t=G0(t)}if(e.name.toLowerCase()==="xml"){if(H.ignoreDeclaration)return;$e[H.declarationKey]={},Object.keys(t).length&&($e[H.declarationKey][H.attributesKey]=t),H.addParent&&($e[H.declarationKey][H.parentKey]=$e)}else{if(H.ignoreInstruction)return;H.trim&&(e.body=e.body.trim());var r={};H.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][H.attributesKey]=t):r[e.name]=e.body,Pu("instruction",r)}}o(j8,"onInstruction");function k0(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=G0(t),"elementNameFn"in H&&(e=H.elementNameFn(e,$e)),H.compact){if(n={},!H.ignoreAttributes&&t&&Object.keys(t).length){n[H.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[H.attributesKey][i]=t[i])}!(e in $e)&&(Pl(H.alwaysArray)?H.alwaysArray.indexOf(e)!==-1:H.alwaysArray)&&($e[e]=[]),$e[e]&&!Pl($e[e])&&($e[e]=[$e[e]]),Pl($e[e])?$e[e].push(n):$e[e]=n}else $e[H.elementsKey]||($e[H.elementsKey]=[]),n={},n[H.typeKey]="element",n[H.nameKey]=e,!H.ignoreAttributes&&t&&Object.keys(t).length&&(n[H.attributesKey]=t),H.alwaysChildren&&(n[H.elementsKey]=[]),$e[H.elementsKey].push(n);n[H.parentKey]=$e,$e=n}o(k0,"onStartElement");function U0(e){H.ignoreText||!e.trim()&&!H.captureSpacesBetweenElements||(H.trim&&(e=e.trim()),H.nativeType&&(e=H0(e)),H.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),Pu("text",e))}o(U0,"onText");function j0(e){H.ignoreComment||(H.trim&&(e=e.trim()),Pu("comment",e))}o(j0,"onComment");function $0(e){var t=$e[H.parentKey];H.addParent||delete $e[H.parentKey],$e=t}o($0,"onEndElement");function $8(e){H.ignoreCdata||(H.trim&&(e=e.trim()),Pu("cdata",e))}o($8,"onCdata");function B8(e){H.ignoreDoctype||(e=e.replace(/^ /,""),H.trim&&(e=e.trim()),Pu("doctype",e))}o(B8,"onDoctype");function B0(e){e.note=e}o(B0,"onError");W0.exports=function(e,t){var n=Hb?M8.parser(!0,{}):n=new k8.Parser("UTF-8"),i={};if($e=i,H=U8(t),Hb?(n.opt={strictEntities:!0},n.onopentag=k0,n.ontext=U0,n.oncomment=j0,n.onclosetag=$0,n.onerror=B0,n.oncdata=$8,n.ondoctype=B8,n.onprocessinginstruction=j8):(n.on("startElement",k0),n.on("text",U0),n.on("comment",j0),n.on("endElement",$0),n.on("error",B0)),Hb)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[H.elementsKey]){var r=i[H.elementsKey];delete i[H.elementsKey],i[H.elementsKey]=r,delete i.text}return i}});var Q0=ze((kee,X0)=>{var K0=im(),H8=Gb();function G8(e){var t=K0.copyOptions(e);return K0.ensureSpacesExists(t),t}o(G8,"validateOptions");X0.exports=function(e,t){var n,i,r,a;return n=G8(t),i=H8(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?r=JSON.stringify(i,function(s,l){return s===a?"_":l},n.spaces):r=JSON.stringify(i,null,n.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var Kb=ze((jee,iD)=>{var st=im(),W8=nm().isArray,Ei,Ai;function K8(e){var t=st.copyOptions(e);return st.ensureFlagExists("ignoreDeclaration",t),st.ensureFlagExists("ignoreInstruction",t),st.ensureFlagExists("ignoreAttributes",t),st.ensureFlagExists("ignoreText",t),st.ensureFlagExists("ignoreComment",t),st.ensureFlagExists("ignoreCdata",t),st.ensureFlagExists("ignoreDoctype",t),st.ensureFlagExists("compact",t),st.ensureFlagExists("indentText",t),st.ensureFlagExists("indentCdata",t),st.ensureFlagExists("indentAttributes",t),st.ensureFlagExists("indentInstruction",t),st.ensureFlagExists("fullTagEmptyElement",t),st.ensureFlagExists("noQuotesForNativeAttributes",t),st.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),st.ensureKeyExists("declaration",t),st.ensureKeyExists("instruction",t),st.ensureKeyExists("attributes",t),st.ensureKeyExists("text",t),st.ensureKeyExists("comment",t),st.ensureKeyExists("cdata",t),st.ensureKeyExists("doctype",t),st.ensureKeyExists("type",t),st.ensureKeyExists("name",t),st.ensureKeyExists("elements",t),st.checkFnExists("doctype",t),st.checkFnExists("instruction",t),st.checkFnExists("cdata",t),st.checkFnExists("comment",t),st.checkFnExists("text",t),st.checkFnExists("instructionName",t),st.checkFnExists("elementName",t),st.checkFnExists("attributeName",t),st.checkFnExists("attributeValue",t),st.checkFnExists("attributes",t),st.checkFnExists("fullTagEmptyElement",t),t}o(K8,"validateOptions");function Do(e,t,n){return(!n&&e.spaces?`
|
|
28
|
-
`:"")+Array(t+1).join(e.spaces)}o(Do,"writeIndentation");function rm(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,Ai
|
|
29
|
-
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(Q8,"writeElement");function eD(e,t,n,i){return e.reduce(function(r,a){var s=Do(t,n,i&&!r);switch(a.type){case"element":return r+s+Q8(a,t,n);case"comment":return r+s+z0(a[t.commentKey],t);case"doctype":return r+s+Z0(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+J0(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+Wb(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+Y0(l,t,n)}},"")}o(eD,"writeElements");function tD(e,t,n){var i;for(i in e)if(e.hasOwnProperty(i))switch(i){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}o(tD,"hasContentCompact");function q8(e,t,n,i,r){Ei=e,Ai=t;var a="elementNameFn"in n?n.elementNameFn(t,e):t;if(typeof e>"u"||e===null||e==="")return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?"<"+a+"></"+a+">":"<"+a+"/>";var s=[];if(t){if(s.push("<"+a),typeof e!="object")return s.push(">"+Wb(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(rm(e[n.attributesKey],n,i));var l=tD(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(l||("fullTagEmptyElementFn"in n?l=n.fullTagEmptyElementFn(t,e):l=n.fullTagEmptyElement),l)s.push(">");else return s.push("/>"),s.join("")}return s.push(nD(e,n,i+1,!1)),Ei=e,Ai=t,t&&s.push((r?Do(n,i,!1):"")+"</"+a+">"),s.join("")}o(q8,"writeElementCompact");function nD(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=W8(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(q0(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Do(t,n,i):"")+Y0(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Do(t,n,i):"")+Wb(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Do(t,n,i):"")+J0(s[r],t));break;case t.doctypeKey:l.push(Do(t,n,i)+Z0(s[r],t));break;case t.commentKey:l.push(Do(t,n,i)+z0(s[r],t));break;default:l.push(Do(t,n,i)+q8(s[r],a,t,n,tD(s[r],t)))}i=i&&!l.length}return l.join("")}o(nD,"writeElementsCompact");iD.exports=function(e,t){t=K8(t);var n=[];return Ei=e,Ai="_root_",t.compact?n.push(nD(e,t,0,!0)):(e[t.declarationKey]&&n.push(q0(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(eD(e[t.elementsKey],t,0,!n.length))),n.join("")}});var oD=ze((Bee,rD)=>{var Y8=Kb();rD.exports=function(e,t){e instanceof Buffer&&(e=e.toString());var n=null;if(typeof e=="string")try{n=JSON.parse(e)}catch{throw new Error("The JSON structure is invalid")}else n=e;return Y8(n,t)}});var uc=ze((Hee,aD)=>{var z8=Gb(),J8=Q0(),Z8=Kb(),eK=oD();aD.exports={xml2js:z8,xml2json:J8,js2xml:Z8,json2xml:eK}});var pD=ze(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.convertEntityTypeAnnotations=Ji.convertPropertyAnnotations=Ji.convertNavigationPropertyAnnotations=Ji.convertEntitySetAnnotations=Ji.convertGenericAnnotations=Ji.convertV2Annotations=void 0;function tK(e,t,n){let i=[];switch(t){case"EntitySet":cD(e,i);break;case"EntityType":uD(e,i);break;case"NavigationProperty":lD(e,n,i);break;case"Property":fD(e,n,i);break;case"Singleton":break;default:break}return sD(e,n,i),i}o(tK,"convertV2Annotations");Ji.convertV2Annotations=tK;function sD(e,t,n){function i(r,a){r&&n.push(a)}if(o(i,"pushToAnnotations"),i(e["sap:schema-version"]!==void 0,{term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),i(e["sap:searchable"]!==void 0,{term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searchable",value:{type:"Bool",Bool:e["sap:searchable"]==="true"}}]}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:topable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:topable"]==="true"}}),i(e["sap:requires-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiresFilter",value:{type:"Bool",Bool:e["sap:requires-filter"]==="true"}}]}}),i(e["sap:required-in-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiredProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}}),i(e["sap:filter-restricton"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"String",String:e["sap:filter-restricton"]}},{name:"Property",value:{type:"PropertyPath",PropertyPath:t}}]}]}}]}}),i(e["sap:sortable"]==="false",{term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:t}}]}}),i(e["sap:visible"]==="false",{term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),i(e["sap:label"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),i(e["sap:heading"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),i(e["sap:quickinfo"]!==void 0,{term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),i(e["sap:text"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:precision"]!==void 0,{term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"],10)}}),i(e["sap:value-list"]==="fixed-value",{term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="NonNegative",{term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="UpperCase",{term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){let r=[];e["sap:lower-boundary"]&&r.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&r.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:r}})}i(e["sap:field-control"]!==void 0,{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),i(e["sap:applicable-path"]!==void 0,{term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),i(e["sap:minoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"],10)}}),i(e["sap:maxoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"],10)}}),i(e["sap:parameter"]==="mandatory",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),i(e["sap:parameter"]==="optional",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),i(e["sap:attribute-for"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}})}o(sD,"convertGenericAnnotations");Ji.convertGenericAnnotations=sD;function cD(e,t){e["sap:creatable"]&&t.push({term:"Org.OData.Capabilities.V1.InsertRestrictions",record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}),e["sap:updatable"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:updatable-path"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Path",Path:e["sap:updatable-path"]}}]}}),e["sap:deletable"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:deletable-path"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Path",Path:e["sap:deletable-path"]}}]}})}o(cD,"convertEntitySetAnnotations");Ji.convertEntitySetAnnotations=cD;function lD(e,t,n){e["sap:creatable"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}}]}}}]}}),e["sap:creatable-path"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Path",Path:e["sap:creatable-path"]}}]}}}]}}}]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"NavigationProperty",value:{type:"NavigationPropertyPath",NavigationPropertyPath:t}},{name:"FilterRestrictions",value:{type:"Record",Record:{propertyValues:[{name:"Filterable",value:{type:"Bool",Bool:!1}}]}}}]}]}}]}})}o(lD,"convertNavigationPropertyAnnotations");Ji.convertNavigationPropertyAnnotations=lD;function fD(e,t,n){e["sap:creatable"]==="true"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Immutable",value:{type:"Bool",Bool:!0}}),e["sap:creatable"]==="false"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Computed",value:{type:"Bool",Bool:!0}}),e["sap:updatable-path"]&&n.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:updatable-path"]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"NonFilterableProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}})}o(fD,"convertPropertyAnnotations");Ji.convertPropertyAnnotations=fD;function uD(e,t){e["sap:semantics"]==="aggregate"&&t.push({term:"Org.OData.Aggregation.V1.ApplySupported",record:{propertyValues:[{name:"PropertyRestrictions",value:{type:"Collection",Collection:[]}},{name:"GroupableProperties",value:{type:"Collection",Collection:[]}},{name:"AggregatableProperties",value:{type:"Collection",Collection:[]}}]}})}o(uD,"convertEntityTypeAnnotations");Ji.convertEntityTypeAnnotations=uD});var TD=ze(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});fm.parse=void 0;var nK=uc(),He=Bb(),xu=pD(),sm=/^Collection\((.+)\)$/;function iK(e){return e.Type!==null&&e.Type!==void 0}o(iK,"isV4NavProperty");function rK(e){return e.map(t=>t._attributes.Name)}o(rK,"getEntityTypeKeys");function mD(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:xl(a._attributes.Type).type};if(a._attributes.MaxLength&&(s.maxLength=parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(s.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(s.scale=parseInt(a._attributes.Scale,10)),s.nullable=a._attributes.Nullable!=="false",a._attributes.DefaultValue)switch(s.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":s.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":s.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=a._attributes.DefaultValue==="true";break;default:s.defaultValue=a._attributes.DefaultValue;break}r.entityProperties.push(s),t.indexOf(s.name)!==-1&&r.entityKeys.push(s);let l=(0,xu.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(pc(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(mD,"parseProperties");function oK(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(oK,"parseReferentialConstraint");function aK(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let s=(0,He.ensureArray)(i.Principal.PropertyRef),l=(0,He.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(u=>u.role===i.Dependent._attributes.Role),l=s,s=(0,He.ensureArray)(i.Dependent.PropertyRef));for(let u of s){let p=s.indexOf(u);n.push({sourceTypeName:r.type,sourceProperty:u._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}o(aK,"parseV2ReferentialConstraint");function hD(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(iK(s)){let l=s.Type.match(sm),u=l!==null,p=_o(l?l[1]:s.Type);r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:u,targetTypeName:p,referentialConstraint:oK((0,He.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:u,FromRole:p}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:u,fromRole:p});let g=(0,xu.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(pc(`${n}/${s.Name}`,g))}return r},[])}o(hD,"parseNavigationProperties");function sK(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,He.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}o(sK,"parseAssociationSets");function cK(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,He.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:aK((0,He.ensureArray)(n.ReferentialConstraint),r)}})}o(cK,"parseAssociations");function lK(e,t,n){return e.reduce((i,r)=>{let a=r.Key?rK((0,He.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=mD((0,He.ensureArray)(r.Property),a,s,t),p=hD((0,He.ensureArray)(r.NavigationProperty),r,s,t),g={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:u,entityProperties:l,actions:{},navigationProperties:p},m=(0,xu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(pc(g.fullyQualifiedName,m)),i.push(g),i},[])}o(lK,"parseEntityTypes");function fK(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=mD((0,He.ensureArray)(r.Property),[],a,t),l=hD((0,He.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(fK,"parseComplexTypes");function uK(e,t){return e.reduce((n,i)=>{let r=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:r,underlyingType:i._attributes.UnderlyingType}),n},[])}o(uK,"parseTypeDefinitions");function pK(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,He.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:_o(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,xu.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(pc(l.fullyQualifiedName,u)),l})}o(pK,"parseEntitySets");function dK(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,He.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:_o(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,xu.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(pc(l.fullyQualifiedName,u)),l})}o(dK,"parseSingletons");function dD(e,t,n){return e.map(i=>{let r=(0,He.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(u=>xl(u._attributes.Type).type).join(","):s=a?xl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?xl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:g}=xl(u._attributes.Type),m={_type:"ActionParameter",fullyQualifiedName:`${l}/${u._attributes.Name}`,name:`${u._attributes.Name}`,type:g,isCollection:p};return u._attributes.MaxLength&&(m.maxLength=parseInt(u._attributes.MaxLength,10)),u._attributes.Precision&&(m.precision=parseInt(u._attributes.Precision,10)),u._attributes.Scale&&(m.scale=parseInt(u._attributes.Scale,10)),m.nullable=u._attributes.Nullable!=="false",m}),returnType:i.ReturnType?xl(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(sm)!==null:!1}})}o(dD,"parseActions");function gK(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,He.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${a}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:"",returnCollection:i._attributes.ReturnType?i._attributes.ReturnType.match(sm)!==null:!1}})}o(gK,"parseV2FunctionImport");function gD(e,t){return e.map(n=>{var i;let r=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:_o(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:_o(r)}})}o(gD,"parseActionImports");function mK(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...s}=i,l={};if(a){let u=Object.keys(a).find(g=>g!=="Property");l.name=a.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=am(s,p,n,!1):u&&(l.value=yD({[u]:a[u]},p,n)),i.Annotation){let g=lm((0,He.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(pc(p,g))}}return l})}o(mK,"parsePropertyValues");function cm(e,t,n){let i=lm((0,He.ensureArray)(e.Annotation),t,n),r={type:e._attributes?_o(e._attributes.Type):void 0,propertyValues:mK((0,He.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(cm,"parseRecord");function ma(e,t){return e[t]!=null}o(ma,"isExpressionOfType");function om(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}o(om,"parseModelPath");function Qb(e,t,n){if(ma(e,"Record")){let i=(0,He.ensureArray)(e.Record).map((r,a)=>cm(r,t+"/"+a,n));return i.type="Record",i}else if(ma(e,"PropertyPath")){let i=(0,He.ensureArray)(e.PropertyPath).map(r=>om(r,"PropertyPath"));return i.type="PropertyPath",i}else if(ma(e,"NavigationPropertyPath")){let i=(0,He.ensureArray)(e.NavigationPropertyPath).map(r=>om(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(ma(e,"String")){let i=(0,He.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(ma(e,"AnnotationPath")){let i=(0,He.ensureArray)(e.AnnotationPath).map(r=>om(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(ma(e,"Path")){let i=(0,He.ensureArray)(e.Path).map(r=>om(r,"Path"));return i.type="Path",i}else if(ma(e,"If")){let i=(0,He.ensureArray)(e.If).map(r=>r._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}o(Qb,"parseCollection");function bn(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(r=>am({[i]:r},"",[],!0))):n.push(am({[i]:e[i]},"",[],!0))}),n}o(bn,"parseChildren");function yD(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Double":return{type:"Double",Double:parseFloat(e.Double)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:Qb(e.Collection,t,n)};case"Record":return{type:"Record",Record:cm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:bn(e.Apply),$Function:bn(e.Function)};case"And":return{type:"And",$And:bn(e.And)};case"Or":return{type:"Or",$Or:bn(e.Or)};case"Eq":return{type:"Eq",$Eq:bn(e.Eq)};case"Gt":return{type:"Gt",$Gt:bn(e.Gt)};case"Ge":return{type:"Ge",$Ge:bn(e.Ge)};case"Lt":return{type:"Lt",$Lt:bn(e.Lt)};case"Le":return{type:"Le",$Le:bn(e.Le)};case"If":return{type:"If",$If:bn(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(yD,"parseInlineExpression");function am(e,t,n,i){let r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=r[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:bn(e.LabeledElement)[0]};case"Bool":return i?e.Bool._text==="true":{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return i?parseInt(e.Int._text,10):{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return i?parseFloat(e.Decimal._text):{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Double":return i?parseFloat(e.Double._text):{type:"Double",Decimal:parseFloat(e.Double._text)};case"Path":return{type:"Path",Path:e.Path._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath._text};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath._text};case"EnumMember":return{type:"EnumMember",EnumMember:e[a]._text};case"Collection":return{type:"Collection",Collection:Qb(e.Collection,t,n)};case"Record":return{type:"Record",Record:cm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:bn(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:bn(e.And)};case"Ne":return{type:"Ne",$Ne:bn(e.Ne)};case"Not":return{type:"Not",$Not:bn(e.Not)[0]};case"Or":return{type:"Or",$Or:bn(e.Or)};case"Eq":return{type:"Eq",$Eq:bn(e.Eq)};case"If":return{type:"If",$If:bn(e.If)};case"Gt":return{type:"Gt",$Gt:bn(e.Gt)};case"Ge":return{type:"Ge",$Ge:bn(e.Ge)};case"Lt":return{type:"Lt",$Lt:bn(e.Lt)};case"Le":return{type:"Le",$Le:bn(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(am,"parseExpression");function hK(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:_o(i),qualifier:r},l=`${t}@${_o(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=yD(a,l,n)),e.Annotation){let p=lm((0,He.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let u=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return ma(e,"Record")?s.record=cm(e.Record,l,n):ma(e,"Collection")?s.collection=Qb(e.Collection,l,n):u.length===1?s.value=am({[u[0]]:e[u[0]]},l,n,!1):u.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}o(hK,"parseAnnotation");function lm(e,t,n){return e.map(i=>hK(i,t,n))}o(lm,"parseAnnotations");function pc(e,t){return{target:e,annotations:t}}o(pc,"createAnnotationList");function yK(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(pc(_o(n._attributes.Target),lm((0,He.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(yK,"parseAnnotationLists");function TK(e,t,n){let i=e._attributes.Namespace,r=[],a=lK((0,He.ensureArray)(e.EntityType),r,i),s=fK((0,He.ensureArray)(e.ComplexType),r,i),l=uK((0,He.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},h=[],S=[];if(e.EntityContainer)if(u=pK((0,He.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=dK((0,He.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=sK((0,He.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),m={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")h=h.concat(gK((0,He.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")S=S.concat(gD((0,He.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),S=S.concat(gD((0,He.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(h=h.concat(dD((0,He.ensureArray)(e.Action),i,!1)),h=h.concat(dD((0,He.ensureArray)(e.Function),i,!0)));let b=cK((0,He.ensureArray)(e.Association),i);yK((0,He.ensureArray)(e.Annotations),r);let O={};return O[n]=r,{associations:b,associationSets:g,annotations:O,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:h,actionImports:S,entityTypes:a}}o(TK,"parseSchema");function vK(e){return e.reduce((t,n)=>((0,He.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(vK,"parseReferences");var Xb={};function xl(e){let t=e.match(sm),n=t?t[1]:e,i=_o(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(xl,"unaliasType");function _o(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let a=0,s=!0;a<e.length;a++){let l=e[a];if(s&&l==="."){let u=e.substring(r,a);i.push((t=Xb[u])!==null&&t!==void 0?t:u),r=a,s=!1}n.includes(l)&&(i.push(e.substring(r,a+1)),r=a+1,s=!0)}return i.push(e.substring(r)),i.join("")}o(_o,"unalias");function bK(e){let t=e.reduce((S,b)=>S.concat(b.associations),[]),n=e.reduce((S,b)=>S.concat(b.associationSets),[]),i=e.reduce((S,b)=>S.concat(b.entitySets),[]),r=e.reduce((S,b)=>S.concat(b.singletons),[]),a=e.reduce((S,b)=>S.concat(b.entityTypes),[]),s=e.reduce((S,b)=>S.concat(b.actions),[]),l=e.reduce((S,b)=>S.concat(b.actionImports),[]),u=e.reduce((S,b)=>S.concat(b.complexTypes),[]),p=e.reduce((S,b)=>S.concat(b.typeDefinitions),[]),g={};e.forEach(S=>{g=Object.assign(g,S.annotations)});let m,h;return e.forEach(S=>{S.entityContainer&&Object.keys(S.entityContainer).length>0&&(m=S.entityContainer,h=S.namespace)}),i.forEach(S=>{let b=a.find(O=>O.fullyQualifiedName===S.entityTypeName);b==null||b.navigationProperties.forEach(O=>{let N=O,M=n.find(G=>G.association===N.relationship);if(M){let G=M.associationEnd.find(j=>j.entitySet!==S.fullyQualifiedName);G&&(S.navigationPropertyBinding[O.name]=G.entitySet)}})}),a.forEach(S=>{S.navigationProperties.forEach(b=>{let O=b,N=t.find(M=>M.fullyQualifiedName===O.relationship);N&&N.referentialConstraints&&N.referentialConstraints.length>0&&(N.referentialConstraints[0].sourceTypeName===S.fullyQualifiedName?O.referentialConstraint=N.referentialConstraints:O.referentialConstraint=N.referentialConstraints.map(M=>({sourceTypeName:M.targetTypeName,sourceProperty:M.targetProperty,targetTypeName:M.sourceTypeName,targetProperty:M.sourceProperty})))})}),{associations:t,associationSets:n,annotations:g,entityContainer:m,namespace:h,entitySets:i,singletons:r,complexTypes:u,typeDefinitions:p,actions:s,actionImports:l,entityTypes:a}}o(bK,"mergeSchemas");function SK(e,t){Xb=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{Xb[n._attributes.Alias]=n._attributes.Namespace})}o(SK,"createAliasMap");function EK(e,t="serviceFile"){let n=(0,nK.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,He.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=vK((0,He.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));SK(a,r);let s=r.map(u=>TK(u,i,t));return new He.RawMetadataInstance(t,i,bK(s),a)}o(EK,"parse");fm.parse=EK});var vD=ze(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.parse=Cl.merge=void 0;var AK=_0();Object.defineProperty(Cl,"merge",{enumerable:!0,get:o(function(){return AK.merge},"get")});var PK=TD();Object.defineProperty(Cl,"parse",{enumerable:!0,get:o(function(){return PK.parse},"get")})});var DD=ze(()=>{var FD;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=r(e);typeof n.Reflect<"u"&&(i=r(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function r(u,p){return function(g,m){Object.defineProperty(u,g,{configurable:!0,writable:!0,value:m}),p&&p(g,m)}}o(r,"makeExporter");function a(){try{return Function("return this;")()}catch{}}o(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(s,"indirectEvalThis");function l(){return a()||s()}o(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",u={__proto__:[]}instanceof Array,p=!l&&!u,g={create:l?function(){return Zs(Object.create(null))}:u?function(){return Zs({__proto__:null})}:function(){return Zs({})},has:p?function(U,B){return i.call(U,B)}:function(U,B){return B in U},get:p?function(U,B){return i.call(U,B)?U[B]:void 0}:function(U,B){return U[B]}},m=Object.getPrototypeOf(Function),h=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Zf(),S=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:eu(),b=typeof WeakMap=="function"?WeakMap:tu(),O=r?Symbol.for("@reflect-metadata:registry"):void 0,N=Ki(),M=Jf(N);function G(U,B,q,le){if(Fe(q)){if(!Ft(U))throw new TypeError;if(!jt(B))throw new TypeError;return cn(U,B)}else{if(!Ft(U))throw new TypeError;if(!ot(B))throw new TypeError;if(!ot(le)&&!Fe(le)&&!Kn(le))throw new TypeError;return Kn(le)&&(le=void 0),q=_e(q),Wn(U,B,q,le)}}o(G,"decorate"),t("decorate",G);function j(U,B){function q(le,Le){if(!ot(le))throw new TypeError;if(!Fe(Le)&&!Tn(Le))throw new TypeError;Ct(U,B,le,Le)}return o(q,"decorator"),q}o(j,"metadata"),t("metadata",j);function re(U,B,q,le){if(!ot(q))throw new TypeError;return Fe(le)||(le=_e(le)),Ct(U,B,q,le)}o(re,"defineMetadata"),t("defineMetadata",re);function Z(U,B,q){if(!ot(B))throw new TypeError;return Fe(q)||(q=_e(q)),nn(U,B,q)}o(Z,"hasMetadata"),t("hasMetadata",Z);function oe(U,B,q){if(!ot(B))throw new TypeError;return Fe(q)||(q=_e(q)),Nt(U,B,q)}o(oe,"hasOwnMetadata"),t("hasOwnMetadata",oe);function Pe(U,B,q){if(!ot(B))throw new TypeError;return Fe(q)||(q=_e(q)),Ne(U,B,q)}o(Pe,"getMetadata"),t("getMetadata",Pe);function D(U,B,q){if(!ot(B))throw new TypeError;return Fe(q)||(q=_e(q)),Ri(U,B,q)}o(D,"getOwnMetadata"),t("getOwnMetadata",D);function ut(U,B){if(!ot(U))throw new TypeError;return Fe(B)||(B=_e(B)),Ut(U,B)}o(ut,"getMetadataKeys"),t("getMetadataKeys",ut);function yt(U,B){if(!ot(U))throw new TypeError;return Fe(B)||(B=_e(B)),ln(U,B)}o(yt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",yt);function je(U,B,q){if(!ot(B))throw new TypeError;if(Fe(q)||(q=_e(q)),!ot(B))throw new TypeError;Fe(q)||(q=_e(q));var le=_r(B,q,!1);return Fe(le)?!1:le.OrdinaryDeleteMetadata(U,B,q)}o(je,"deleteMetadata"),t("deleteMetadata",je);function cn(U,B){for(var q=U.length-1;q>=0;--q){var le=U[q],Le=le(B);if(!Fe(Le)&&!Kn(Le)){if(!jt(Le))throw new TypeError;B=Le}}return B}o(cn,"DecorateConstructor");function Wn(U,B,q,le){for(var Le=U.length-1;Le>=0;--Le){var hn=U[Le],Cn=hn(B,q,le);if(!Fe(Cn)&&!Kn(Cn)){if(!ot(Cn))throw new TypeError;le=Cn}}return le}o(Wn,"DecorateProperty");function nn(U,B,q){var le=Nt(U,B,q);if(le)return!0;var Le=Wt(B);return Kn(Le)?!1:nn(U,Le,q)}o(nn,"OrdinaryHasMetadata");function Nt(U,B,q){var le=_r(B,q,!1);return Fe(le)?!1:Y(le.OrdinaryHasOwnMetadata(U,B,q))}o(Nt,"OrdinaryHasOwnMetadata");function Ne(U,B,q){var le=Nt(U,B,q);if(le)return Ri(U,B,q);var Le=Wt(B);if(!Kn(Le))return Ne(U,Le,q)}o(Ne,"OrdinaryGetMetadata");function Ri(U,B,q){var le=_r(B,q,!1);if(!Fe(le))return le.OrdinaryGetOwnMetadata(U,B,q)}o(Ri,"OrdinaryGetOwnMetadata");function Ct(U,B,q,le){var Le=_r(q,le,!0);Le.OrdinaryDefineOwnMetadata(U,B,q,le)}o(Ct,"OrdinaryDefineOwnMetadata");function Ut(U,B){var q=ln(U,B),le=Wt(U);if(le===null)return q;var Le=Ut(le,B);if(Le.length<=0)return q;if(q.length<=0)return Le;for(var hn=new S,Cn=[],et=0,he=q;et<he.length;et++){var be=he[et],xe=hn.has(be);xe||(hn.add(be),Cn.push(be))}for(var Oe=0,it=Le;Oe<it.length;Oe++){var be=it[Oe],xe=hn.has(be);xe||(hn.add(be),Cn.push(be))}return Cn}o(Ut,"OrdinaryMetadataKeys");function ln(U,B){var q=_r(U,B,!1);return q?q.OrdinaryOwnMetadataKeys(U,B):[]}o(ln,"OrdinaryOwnMetadataKeys");function Wi(U){if(U===null)return 1;switch(typeof U){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return U===null?1:6;default:return 6}}o(Wi,"Type");function Fe(U){return U===void 0}o(Fe,"IsUndefined");function Kn(U){return U===null}o(Kn,"IsNull");function Dr(U){return typeof U=="symbol"}o(Dr,"IsSymbol");function ot(U){return typeof U=="object"?U!==null:typeof U=="function"}o(ot,"IsObject");function I(U,B){switch(Wi(U)){case 0:return U;case 1:return U;case 2:return U;case 3:return U;case 4:return U;case 5:return U}var q=B===3?"string":B===5?"number":"default",le=Gt(U,a);if(le!==void 0){var Le=le.call(U,q);if(ot(Le))throw new TypeError;return Le}return A(U,q==="default"?"number":q)}o(I,"ToPrimitive");function A(U,B){if(B==="string"){var q=U.toString;if(qe(q)){var le=q.call(U);if(!ot(le))return le}var Le=U.valueOf;if(qe(Le)){var le=Le.call(U);if(!ot(le))return le}}else{var Le=U.valueOf;if(qe(Le)){var le=Le.call(U);if(!ot(le))return le}var hn=U.toString;if(qe(hn)){var le=hn.call(U);if(!ot(le))return le}}throw new TypeError}o(A,"OrdinaryToPrimitive");function Y(U){return!!U}o(Y,"ToBoolean");function V(U){return""+U}o(V,"ToString");function _e(U){var B=I(U,3);return Dr(B)?B:V(B)}o(_e,"ToPropertyKey");function Ft(U){return Array.isArray?Array.isArray(U):U instanceof Object?U instanceof Array:Object.prototype.toString.call(U)==="[object Array]"}o(Ft,"IsArray");function qe(U){return typeof U=="function"}o(qe,"IsCallable");function jt(U){return typeof U=="function"}o(jt,"IsConstructor");function Tn(U){switch(Wi(U)){case 3:return!0;case 4:return!0;default:return!1}}o(Tn,"IsPropertyKey");function fn(U,B){return U===B||U!==U&&B!==B}o(fn,"SameValueZero");function Gt(U,B){var q=U[B];if(q!=null){if(!qe(q))throw new TypeError;return q}}o(Gt,"GetMethod");function ti(U){var B=Gt(U,s);if(!qe(B))throw new TypeError;var q=B.call(U);if(!ot(q))throw new TypeError;return q}o(ti,"GetIterator");function fr(U){return U.value}o(fr,"IteratorValue");function mn(U){var B=U.next();return B.done?!1:B}o(mn,"IteratorStep");function Ti(U){var B=U.return;B&&B.call(U)}o(Ti,"IteratorClose");function Wt(U){var B=Object.getPrototypeOf(U);if(typeof U!="function"||U===m||B!==m)return B;var q=U.prototype,le=q&&Object.getPrototypeOf(q);if(le==null||le===Object.prototype)return B;var Le=le.constructor;return typeof Le!="function"||Le===U?B:Le}o(Wt,"OrdinaryGetPrototypeOf");function na(){var U;!Fe(O)&&typeof n.Reflect<"u"&&!(O in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(U=Js(n.Reflect));var B,q,le,Le=new b,hn={registerProvider:Cn,getProvider:he,setProvider:xe};return hn;function Cn(Oe){if(!Object.isExtensible(hn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case U===Oe:break;case Fe(B):B=Oe;break;case B===Oe:break;case Fe(q):q=Oe;break;case q===Oe:break;default:le===void 0&&(le=new S),le.add(Oe);break}}function et(Oe,it){if(!Fe(B)){if(B.isProviderFor(Oe,it))return B;if(!Fe(q)){if(q.isProviderFor(Oe,it))return B;if(!Fe(le))for(var Kt=ti(le);;){var un=mn(Kt);if(!un)return;var ur=fr(un);if(ur.isProviderFor(Oe,it))return Ti(Kt),ur}}}if(!Fe(U)&&U.isProviderFor(Oe,it))return U}function he(Oe,it){var Kt=Le.get(Oe),un;return Fe(Kt)||(un=Kt.get(it)),Fe(un)&&(un=et(Oe,it),Fe(un)||(Fe(Kt)&&(Kt=new h,Le.set(Oe,Kt)),Kt.set(it,un))),un}function be(Oe){if(Fe(Oe))throw new TypeError;return B===Oe||q===Oe||!Fe(le)&&le.has(Oe)}function xe(Oe,it,Kt){if(!be(Kt))throw new Error("Metadata provider not registered.");var un=he(Oe,it);if(un!==Kt){if(!Fe(un))return!1;var ur=Le.get(Oe);Fe(ur)&&(ur=new h,Le.set(Oe,ur)),ur.set(it,Kt)}return!0}}o(na,"CreateMetadataRegistry");function Ki(){var U;return!Fe(O)&&ot(n.Reflect)&&Object.isExtensible(n.Reflect)&&(U=n.Reflect[O]),Fe(U)&&(U=na()),!Fe(O)&&ot(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,O,{enumerable:!1,configurable:!1,writable:!1,value:U}),U}o(Ki,"GetOrCreateMetadataRegistry");function Jf(U){var B=new b,q={isProviderFor:o(function(be,xe){var Oe=B.get(be);return Fe(Oe)?!1:Oe.has(xe)},"isProviderFor"),OrdinaryDefineOwnMetadata:Cn,OrdinaryHasOwnMetadata:Le,OrdinaryGetOwnMetadata:hn,OrdinaryOwnMetadataKeys:et,OrdinaryDeleteMetadata:he};return N.registerProvider(q),q;function le(be,xe,Oe){var it=B.get(be),Kt=!1;if(Fe(it)){if(!Oe)return;it=new h,B.set(be,it),Kt=!0}var un=it.get(xe);if(Fe(un)){if(!Oe)return;if(un=new h,it.set(xe,un),!U.setProvider(be,xe,q))throw it.delete(xe),Kt&&B.delete(be),new Error("Wrong provider for target.")}return un}o(le,"GetOrCreateMetadataMap");function Le(be,xe,Oe){var it=le(xe,Oe,!1);return Fe(it)?!1:Y(it.has(be))}o(Le,"OrdinaryHasOwnMetadata");function hn(be,xe,Oe){var it=le(xe,Oe,!1);if(!Fe(it))return it.get(be)}o(hn,"OrdinaryGetOwnMetadata");function Cn(be,xe,Oe,it){var Kt=le(Oe,it,!0);Kt.set(be,xe)}o(Cn,"OrdinaryDefineOwnMetadata");function et(be,xe){var Oe=[],it=le(be,xe,!1);if(Fe(it))return Oe;for(var Kt=it.keys(),un=ti(Kt),ur=0;;){var Qd=mn(un);if(!Qd)return Oe.length=ur,Oe;var qT=fr(Qd);try{Oe[ur]=qT}catch(nu){try{Ti(un)}finally{throw nu}}ur++}}o(et,"OrdinaryOwnMetadataKeys");function he(be,xe,Oe){var it=le(xe,Oe,!1);if(Fe(it)||!it.delete(be))return!1;if(it.size===0){var Kt=B.get(xe);Fe(Kt)||(Kt.delete(Oe),Kt.size===0&&B.delete(Kt))}return!0}o(he,"OrdinaryDeleteMetadata")}o(Jf,"CreateMetadataProvider");function Js(U){var B=U.defineMetadata,q=U.hasOwnMetadata,le=U.getOwnMetadata,Le=U.getOwnMetadataKeys,hn=U.deleteMetadata,Cn=new b,et={isProviderFor:o(function(he,be){var xe=Cn.get(he);return!Fe(xe)&&xe.has(be)?!0:Le(he,be).length?(Fe(xe)&&(xe=new S,Cn.set(he,xe)),xe.add(be),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:q,OrdinaryGetOwnMetadata:le,OrdinaryOwnMetadataKeys:Le,OrdinaryDeleteMetadata:hn};return et}o(Js,"CreateFallbackProvider");function _r(U,B,q){var le=N.getProvider(U,B);if(!Fe(le))return le;if(q){if(N.setProvider(U,B,M))return M;throw new Error("Illegal state.")}}o(_r,"GetMetadataProvider");function Zf(){var U={},B=[],q=function(){function et(he,be,xe){this._index=0,this._keys=he,this._values=be,this._selector=xe}return o(et,"MapIterator"),et.prototype["@@iterator"]=function(){return this},et.prototype[s]=function(){return this},et.prototype.next=function(){var he=this._index;if(he>=0&&he<this._keys.length){var be=this._selector(this._keys[he],this._values[he]);return he+1>=this._keys.length?(this._index=-1,this._keys=B,this._values=B):this._index++,{value:be,done:!1}}return{value:void 0,done:!0}},et.prototype.throw=function(he){throw this._index>=0&&(this._index=-1,this._keys=B,this._values=B),he},et.prototype.return=function(he){return this._index>=0&&(this._index=-1,this._keys=B,this._values=B),{value:he,done:!0}},et}(),le=function(){function et(){this._keys=[],this._values=[],this._cacheKey=U,this._cacheIndex=-2}return o(et,"Map"),Object.defineProperty(et.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),et.prototype.has=function(he){return this._find(he,!1)>=0},et.prototype.get=function(he){var be=this._find(he,!1);return be>=0?this._values[be]:void 0},et.prototype.set=function(he,be){var xe=this._find(he,!0);return this._values[xe]=be,this},et.prototype.delete=function(he){var be=this._find(he,!1);if(be>=0){for(var xe=this._keys.length,Oe=be+1;Oe<xe;Oe++)this._keys[Oe-1]=this._keys[Oe],this._values[Oe-1]=this._values[Oe];return this._keys.length--,this._values.length--,fn(he,this._cacheKey)&&(this._cacheKey=U,this._cacheIndex=-2),!0}return!1},et.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=U,this._cacheIndex=-2},et.prototype.keys=function(){return new q(this._keys,this._values,Le)},et.prototype.values=function(){return new q(this._keys,this._values,hn)},et.prototype.entries=function(){return new q(this._keys,this._values,Cn)},et.prototype["@@iterator"]=function(){return this.entries()},et.prototype[s]=function(){return this.entries()},et.prototype._find=function(he,be){if(!fn(this._cacheKey,he)){this._cacheIndex=-1;for(var xe=0;xe<this._keys.length;xe++)if(fn(this._keys[xe],he)){this._cacheIndex=xe;break}}return this._cacheIndex<0&&be&&(this._cacheIndex=this._keys.length,this._keys.push(he),this._values.push(void 0)),this._cacheIndex},et}();return le;function Le(et,he){return et}function hn(et,he){return he}function Cn(et,he){return[et,he]}}o(Zf,"CreateMapPolyfill");function eu(){var U=function(){function B(){this._map=new h}return o(B,"Set"),Object.defineProperty(B.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),B.prototype.has=function(q){return this._map.has(q)},B.prototype.add=function(q){return this._map.set(q,q),this},B.prototype.delete=function(q){return this._map.delete(q)},B.prototype.clear=function(){this._map.clear()},B.prototype.keys=function(){return this._map.keys()},B.prototype.values=function(){return this._map.keys()},B.prototype.entries=function(){return this._map.entries()},B.prototype["@@iterator"]=function(){return this.keys()},B.prototype[s]=function(){return this.keys()},B}();return U}o(eu,"CreateSetPolyfill");function tu(){var U=16,B=g.create(),q=le();return function(){function he(){this._key=le()}return o(he,"WeakMap"),he.prototype.has=function(be){var xe=Le(be,!1);return xe!==void 0?g.has(xe,this._key):!1},he.prototype.get=function(be){var xe=Le(be,!1);return xe!==void 0?g.get(xe,this._key):void 0},he.prototype.set=function(be,xe){var Oe=Le(be,!0);return Oe[this._key]=xe,this},he.prototype.delete=function(be){var xe=Le(be,!1);return xe!==void 0?delete xe[this._key]:!1},he.prototype.clear=function(){this._key=le()},he}();function le(){var he;do he="@@WeakMap@@"+et();while(g.has(B,he));return B[he]=!0,he}function Le(he,be){if(!i.call(he,q)){if(!be)return;Object.defineProperty(he,q,{value:g.create()})}return he[q]}function hn(he,be){for(var xe=0;xe<be;++xe)he[xe]=Math.random()*255|0;return he}function Cn(he){if(typeof Uint8Array=="function"){var be=new Uint8Array(he);return typeof crypto<"u"?crypto.getRandomValues(be):typeof msCrypto<"u"?msCrypto.getRandomValues(be):hn(be,he),be}return hn(new Array(he),he)}function et(){var he=Cn(U);he[6]=he[6]&79|64,he[8]=he[8]&191|128;for(var be="",xe=0;xe<U;++xe){var Oe=he[xe];(xe===4||xe===6||xe===8)&&(be+="-"),Oe<16&&(be+="0"),be+=Oe.toString(16).toLowerCase()}return be}}o(tu,"CreateWeakMapPolyfill");function Zs(U){return U.__=void 0,delete U.__,U}o(Zs,"MakeDictionary")})})(FD||(FD={}))});var UD=ze((ute,kD)=>{var YK=0,MD="changeUtils: ";function zK(){return"id-"+new Date().valueOf()+"-"+YK++}o(zK,"uid");function JK(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(JK,"appendComponentToReference");function ZK(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return JK(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(ZK,"getFlexReference");function eX(e){let t=e["sap.app"];if(!t||!t.applicationVersion||!t.applicationVersion.version)throw Error("app version could not be determined");return t.applicationVersion.version}o(eX,"getAppVersion");function tX(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(tX,"getProjectId");function wD(e){return JSON.stringify({fileName:e.id||zK().replace(/-/g,"_")+"_"+e.type,fileType:"change",changeType:e.type,moduleName:"",reference:e.reference,packageName:"",content:e.content||{},selector:{id:e.controlId,idIsLocal:!1,type:e.controlType},layer:e.isCustomer?"CUSTOMER_BASE":"VENDOR",texts:{},namespace:"apps/"+e.reference.replace(".Component","")+"/changes/",projectId:e.projectId,creation:e.creation||new Date().valueOf(),originalLanguage:"",support:{generator:MD+e.creatingTool,service:"",user:"",sapui5Version:e.sapui5Version,sourceChangeFileName:"",compositeCommand:""},oDataInformation:{},dependentSelector:{},validAppVersions:{from:e.appVersion,to:e.appVersion,creation:e.appVersion},jsOnly:!1,variantReference:"",appDescriptorChange:!1})}o(wD,"createString");kD.exports={parse:o(function(e){let t=JSON.parse(e);if(!t.fileName||!t.changeType||!t.selector||!t.reference||!t.creation||!t.content||!t.layer||!t.support)throw Error("Parsed object does not contain all required parameters");return{id:t.fileName,reference:t.reference,appVersion:t.validAppVersions?t.validAppVersions.creation:"",creation:t.creation,projectId:t.projectId,type:t.changeType,controlId:t.selector.id,controlType:t.selector.type,isCustomer:t.layer==="CUSTOMER_BASE",creatingTool:t.support.generator.replace(MD,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:o(function(e,t){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool)throw Error("not all property parameters of the change were provided");if(!t)throw Error("no manifest was provided");return e.reference=ZK(t),e.appVersion=eX(t),e.projectId=tX(t,e.reference),wD(e)},"createChangeString"),toString:o(function(e){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool||!(e.reference&&e.appVersion))throw Error("not all parameters of the change were provided");return wD(e)},"toString")}});var $D=ze((dte,jD)=>{jD.exports={change:UD()}});var B1=ze(qr=>{"use strict";var QX=/[|\\{}()[\]^$+*?.]/g,qX=Object.prototype.hasOwnProperty,yE=o(function(e,t){return qX.apply(e,[t])},"hasOwn");qr.escapeRegExpChars=function(e){return e?String(e).replace(QX,"\\$&"):""};var YX={"&":"&","<":"<",">":">",'"':""","'":"'"},zX=/[&<>'"]/g;function JX(e){return YX[e]||e}o(JX,"encode_char");var ZX=`var _ENCODE_HTML_RULES = {
|
|
25
|
+
Actual: `+I.attribValue);else{var _e=I.tag,Ft=I.tags[I.tags.length-1]||I;_e.ns===Ft.ns&&(_e.ns=Object.create(Ft.ns)),_e.ns[V]=I.attribValue}I.attribList.push([I.attribName,I.attribValue])}else I.tag.attributes[I.attribName]=I.attribValue,je(I,"onattribute",{name:I.attribName,value:I.attribValue});I.attribName=I.attribValue=""}o(Ut,"attrib");function ln(I,E){if(I.opt.xmlns){var Y=I.tag,V=Ct(I.tagName);Y.prefix=V.prefix,Y.local=V.local,Y.uri=Y.ns[V.prefix]||"",Y.prefix&&!Y.uri&&(Ne(I,"Unbound namespace prefix: "+JSON.stringify(I.tagName)),Y.uri=V.prefix);var _e=I.tags[I.tags.length-1]||I;Y.ns&&_e.ns!==Y.ns&&Object.keys(Y.ns).forEach(function(Wt){je(I,"onopennamespace",{prefix:Wt,uri:Y.ns[Wt]})});for(var Ft=0,qe=I.attribList.length;Ft<qe;Ft++){var jt=I.attribList[Ft],Tn=jt[0],fn=jt[1],Gt=Ct(Tn,!0),ti=Gt.prefix,fr=Gt.local,mn=ti===""?"":Y.ns[ti]||"",Ti={name:Tn,value:fn,prefix:ti,local:fr,uri:mn};ti&&ti!=="xmlns"&&!mn&&(Ne(I,"Unbound namespace prefix: "+JSON.stringify(ti)),Ti.uri=ti),I.tag.attributes[Tn]=Ti,je(I,"onattribute",Ti)}I.attribList.length=0}I.tag.isSelfClosing=!!E,I.sawRoot=!0,I.tags.push(I.tag),je(I,"onopentag",I.tag),E||(!I.noscript&&I.tagName.toLowerCase()==="script"?I.state=D.SCRIPT:I.state=D.TEXT,I.tag=null,I.tagName=""),I.attribName=I.attribValue="",I.attribList.length=0}o(ln,"openTag");function Wi(I){if(!I.tagName){Ne(I,"Weird empty close tag."),I.textNode+="</>",I.state=D.TEXT;return}if(I.script){if(I.tagName!=="script"){I.script+="</"+I.tagName+">",I.tagName="",I.state=D.SCRIPT;return}je(I,"onscript",I.script),I.script=""}var E=I.tags.length,Y=I.tagName;I.strict||(Y=Y[I.looseCase]());for(var V=Y;E--;){var _e=I.tags[E];if(_e.name!==V)Ne(I,"Unexpected close tag");else break}if(E<0){Ne(I,"Unmatched closing tag: "+I.tagName),I.textNode+="</"+I.tagName+">",I.state=D.TEXT;return}I.tagName=Y;for(var Ft=I.tags.length;Ft-- >E;){var qe=I.tag=I.tags.pop();I.tagName=I.tag.name,je(I,"onclosetag",I.tagName);var jt={};for(var Tn in qe.ns)jt[Tn]=qe.ns[Tn];var fn=I.tags[I.tags.length-1]||I;I.opt.xmlns&&qe.ns!==fn.ns&&Object.keys(qe.ns).forEach(function(Gt){var ti=qe.ns[Gt];je(I,"onclosenamespace",{prefix:Gt,uri:ti})})}E===0&&(I.closedRoot=!0),I.tagName=I.attribValue=I.attribName="",I.attribList.length=0,I.state=D.TEXT}o(Wi,"closeTag");function Fe(I){var E=I.entity,Y=E.toLowerCase(),V,_e="";return I.ENTITIES[E]?I.ENTITIES[E]:I.ENTITIES[Y]?I.ENTITIES[Y]:(E=Y,E.charAt(0)==="#"&&(E.charAt(1)==="x"?(E=E.slice(2),V=parseInt(E,16),_e=V.toString(16)):(E=E.slice(1),V=parseInt(E,10),_e=V.toString(10))),E=E.replace(/^0+/,""),isNaN(V)||_e.toLowerCase()!==E?(Ne(I,"Invalid character entity"),"&"+I.entity+";"):String.fromCodePoint(V))}o(Fe,"parseEntity");function Kn(I,E){E==="<"?(I.state=D.OPEN_WAKA,I.startTagPosition=I.position):j(E)||(Ne(I,"Non-whitespace before first tag."),I.textNode=E,I.state=D.TEXT)}o(Kn,"beginWhiteSpace");function Dr(I,E){var Y="";return E<I.length&&(Y=I.charAt(E)),Y}o(Dr,"charAt");function ot(I){var E=this;if(this.error)throw this.error;if(E.closed)return nn(E,"Cannot write after close. Assign an onready handler.");if(I===null)return Nt(E);typeof I=="object"&&(I=I.toString());for(var Y=0,V="";V=Dr(I,Y++),E.c=V,!!V;)switch(E.trackPosition&&(E.position++,V===`
|
|
26
|
+
`?(E.line++,E.column=0):E.column++),E.state){case D.BEGIN:if(E.state=D.BEGIN_WHITESPACE,V==="\uFEFF")continue;Kn(E,V);continue;case D.BEGIN_WHITESPACE:Kn(E,V);continue;case D.TEXT:if(E.sawRoot&&!E.closedRoot){for(var _e=Y-1;V&&V!=="<"&&V!=="&";)V=Dr(I,Y++),V&&E.trackPosition&&(E.position++,V===`
|
|
27
|
+
`?(E.line++,E.column=0):E.column++);E.textNode+=I.substring(_e,Y-1)}V==="<"&&!(E.sawRoot&&E.closedRoot&&!E.strict)?(E.state=D.OPEN_WAKA,E.startTagPosition=E.position):(!j(V)&&(!E.sawRoot||E.closedRoot)&&Ne(E,"Text data outside of root node."),V==="&"?E.state=D.TEXT_ENTITY:E.textNode+=V);continue;case D.SCRIPT:V==="<"?E.state=D.SCRIPT_ENDING:E.script+=V;continue;case D.SCRIPT_ENDING:V==="/"?E.state=D.CLOSE_TAG:(E.script+="<"+V,E.state=D.SCRIPT);continue;case D.OPEN_WAKA:if(V==="!")E.state=D.SGML_DECL,E.sgmlDecl="";else if(!j(V))if(oe(O,V))E.state=D.OPEN_TAG,E.tagName=V;else if(V==="/")E.state=D.CLOSE_TAG,E.tagName="";else if(V==="?")E.state=D.PROC_INST,E.procInstName=E.procInstBody="";else{if(Ne(E,"Unencoded <"),E.startTagPosition+1<E.position){var Ft=E.position-E.startTagPosition;V=new Array(Ft).join(" ")+V}E.textNode+="<"+V,E.state=D.TEXT}continue;case D.SGML_DECL:if(E.sgmlDecl+V==="--"){E.state=D.COMMENT,E.comment="",E.sgmlDecl="";continue}E.doctype&&E.doctype!==!0&&E.sgmlDecl?(E.state=D.DOCTYPE_DTD,E.doctype+="<!"+E.sgmlDecl+V,E.sgmlDecl=""):(E.sgmlDecl+V).toUpperCase()===g?(je(E,"onopencdata"),E.state=D.CDATA,E.sgmlDecl="",E.cdata=""):(E.sgmlDecl+V).toUpperCase()===m?(E.state=D.DOCTYPE,(E.doctype||E.sawRoot)&&Ne(E,"Inappropriately located doctype declaration"),E.doctype="",E.sgmlDecl=""):V===">"?(je(E,"onsgmldeclaration",E.sgmlDecl),E.sgmlDecl="",E.state=D.TEXT):(re(V)&&(E.state=D.SGML_DECL_QUOTED),E.sgmlDecl+=V);continue;case D.SGML_DECL_QUOTED:V===E.q&&(E.state=D.SGML_DECL,E.q=""),E.sgmlDecl+=V;continue;case D.DOCTYPE:V===">"?(E.state=D.TEXT,je(E,"ondoctype",E.doctype),E.doctype=!0):(E.doctype+=V,V==="["?E.state=D.DOCTYPE_DTD:re(V)&&(E.state=D.DOCTYPE_QUOTED,E.q=V));continue;case D.DOCTYPE_QUOTED:E.doctype+=V,V===E.q&&(E.q="",E.state=D.DOCTYPE);continue;case D.DOCTYPE_DTD:V==="]"?(E.doctype+=V,E.state=D.DOCTYPE):V==="<"?(E.state=D.OPEN_WAKA,E.startTagPosition=E.position):re(V)?(E.doctype+=V,E.state=D.DOCTYPE_DTD_QUOTED,E.q=V):E.doctype+=V;continue;case D.DOCTYPE_DTD_QUOTED:E.doctype+=V,V===E.q&&(E.state=D.DOCTYPE_DTD,E.q="");continue;case D.COMMENT:V==="-"?E.state=D.COMMENT_ENDING:E.comment+=V;continue;case D.COMMENT_ENDING:V==="-"?(E.state=D.COMMENT_ENDED,E.comment=Wn(E.opt,E.comment),E.comment&&je(E,"oncomment",E.comment),E.comment=""):(E.comment+="-"+V,E.state=D.COMMENT);continue;case D.COMMENT_ENDED:V!==">"?(Ne(E,"Malformed comment"),E.comment+="--"+V,E.state=D.COMMENT):E.doctype&&E.doctype!==!0?E.state=D.DOCTYPE_DTD:E.state=D.TEXT;continue;case D.CDATA:V==="]"?E.state=D.CDATA_ENDING:E.cdata+=V;continue;case D.CDATA_ENDING:V==="]"?E.state=D.CDATA_ENDING_2:(E.cdata+="]"+V,E.state=D.CDATA);continue;case D.CDATA_ENDING_2:V===">"?(E.cdata&&je(E,"oncdata",E.cdata),je(E,"onclosecdata"),E.cdata="",E.state=D.TEXT):V==="]"?E.cdata+="]":(E.cdata+="]]"+V,E.state=D.CDATA);continue;case D.PROC_INST:V==="?"?E.state=D.PROC_INST_ENDING:j(V)?E.state=D.PROC_INST_BODY:E.procInstName+=V;continue;case D.PROC_INST_BODY:if(!E.procInstBody&&j(V))continue;V==="?"?E.state=D.PROC_INST_ENDING:E.procInstBody+=V;continue;case D.PROC_INST_ENDING:V===">"?(je(E,"onprocessinginstruction",{name:E.procInstName,body:E.procInstBody}),E.procInstName=E.procInstBody="",E.state=D.TEXT):(E.procInstBody+="?"+V,E.state=D.PROC_INST_BODY);continue;case D.OPEN_TAG:oe(N,V)?E.tagName+=V:(Ri(E),V===">"?ln(E):V==="/"?E.state=D.OPEN_TAG_SLASH:(j(V)||Ne(E,"Invalid character in tag name"),E.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:V===">"?(ln(E,!0),Wi(E)):(Ne(E,"Forward-slash in opening tag not followed by >"),E.state=D.ATTRIB);continue;case D.ATTRIB:if(j(V))continue;V===">"?ln(E):V==="/"?E.state=D.OPEN_TAG_SLASH:oe(O,V)?(E.attribName=V,E.attribValue="",E.state=D.ATTRIB_NAME):Ne(E,"Invalid attribute name");continue;case D.ATTRIB_NAME:V==="="?E.state=D.ATTRIB_VALUE:V===">"?(Ne(E,"Attribute without value"),E.attribValue=E.attribName,Ut(E),ln(E)):j(V)?E.state=D.ATTRIB_NAME_SAW_WHITE:oe(N,V)?E.attribName+=V:Ne(E,"Invalid attribute name");continue;case D.ATTRIB_NAME_SAW_WHITE:if(V==="=")E.state=D.ATTRIB_VALUE;else{if(j(V))continue;Ne(E,"Attribute without value"),E.tag.attributes[E.attribName]="",E.attribValue="",je(E,"onattribute",{name:E.attribName,value:""}),E.attribName="",V===">"?ln(E):oe(O,V)?(E.attribName=V,E.state=D.ATTRIB_NAME):(Ne(E,"Invalid attribute name"),E.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if(j(V))continue;re(V)?(E.q=V,E.state=D.ATTRIB_VALUE_QUOTED):(E.opt.unquotedAttributeValues||nn(E,"Unquoted attribute value"),E.state=D.ATTRIB_VALUE_UNQUOTED,E.attribValue=V);continue;case D.ATTRIB_VALUE_QUOTED:if(V!==E.q){V==="&"?E.state=D.ATTRIB_VALUE_ENTITY_Q:E.attribValue+=V;continue}Ut(E),E.q="",E.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:j(V)?E.state=D.ATTRIB:V===">"?ln(E):V==="/"?E.state=D.OPEN_TAG_SLASH:oe(O,V)?(Ne(E,"No whitespace between attributes"),E.attribName=V,E.attribValue="",E.state=D.ATTRIB_NAME):Ne(E,"Invalid attribute name");continue;case D.ATTRIB_VALUE_UNQUOTED:if(!Z(V)){V==="&"?E.state=D.ATTRIB_VALUE_ENTITY_U:E.attribValue+=V;continue}Ut(E),V===">"?ln(E):E.state=D.ATTRIB;continue;case D.CLOSE_TAG:if(E.tagName)V===">"?Wi(E):oe(N,V)?E.tagName+=V:E.script?(E.script+="</"+E.tagName,E.tagName="",E.state=D.SCRIPT):(j(V)||Ne(E,"Invalid tagname in closing tag"),E.state=D.CLOSE_TAG_SAW_WHITE);else{if(j(V))continue;Pe(O,V)?E.script?(E.script+="</"+V,E.state=D.SCRIPT):Ne(E,"Invalid tagname in closing tag."):E.tagName=V}continue;case D.CLOSE_TAG_SAW_WHITE:if(j(V))continue;V===">"?Wi(E):Ne(E,"Invalid characters in closing tag");continue;case D.TEXT_ENTITY:case D.ATTRIB_VALUE_ENTITY_Q:case D.ATTRIB_VALUE_ENTITY_U:var qe,jt;switch(E.state){case D.TEXT_ENTITY:qe=D.TEXT,jt="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:qe=D.ATTRIB_VALUE_QUOTED,jt="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:qe=D.ATTRIB_VALUE_UNQUOTED,jt="attribValue";break}if(V===";"){var Tn=Fe(E);E.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(Tn)?(E.entity="",E.state=qe,E.write(Tn)):(E[jt]+=Tn,E.entity="",E.state=qe)}else oe(E.entity.length?G:M,V)?E.entity+=V:(Ne(E,"Invalid character in entity name"),E[jt]+="&"+E.entity+V,E.entity="",E.state=qe);continue;default:throw new Error(E,"Unknown state: "+E.state)}return E.position>=E.bufferCheckPosition&&i(E),E}o(ot,"write");String.fromCodePoint||function(){var I=String.fromCharCode,E=Math.floor,Y=o(function(){var V=16384,_e=[],Ft,qe,jt=-1,Tn=arguments.length;if(!Tn)return"";for(var fn="";++jt<Tn;){var Gt=Number(arguments[jt]);if(!isFinite(Gt)||Gt<0||Gt>1114111||E(Gt)!==Gt)throw RangeError("Invalid code point: "+Gt);Gt<=65535?_e.push(Gt):(Gt-=65536,Ft=(Gt>>10)+55296,qe=Gt%1024+56320,_e.push(Ft,qe)),(jt+1===Tn||_e.length>V)&&(fn+=I.apply(null,_e),_e.length=0)}return fn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Y,configurable:!0,writable:!0}):String.fromCodePoint=Y}()})(typeof tm>"u"?tm.sax={}:tm)});var nm=ze((Dee,w0)=>{w0.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var im=ze((Vee,M0)=>{var w8=nm().isArray;M0.exports={copyOptions:o(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},"copyOptions"),ensureFlagExists:o(function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},"ensureFlagExists"),ensureSpacesExists:o(function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},"ensureSpacesExists"),ensureAlwaysArrayExists:o(function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!w8(e.alwaysArray))&&(e.alwaysArray=!1)},"ensureAlwaysArrayExists"),ensureKeyExists:o(function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},"ensureKeyExists"),checkFnExists:o(function(e,t){return e+"Fn"in t},"checkFnExists")}});var Gb=ze((Mee,W0)=>{var M8=V0(),k8={on:o(function(){},"on"),parse:o(function(){},"parse")},nt=im(),Pl=nm().isArray,H,Hb=!0,$e;function U8(e){return H=nt.copyOptions(e),nt.ensureFlagExists("ignoreDeclaration",H),nt.ensureFlagExists("ignoreInstruction",H),nt.ensureFlagExists("ignoreAttributes",H),nt.ensureFlagExists("ignoreText",H),nt.ensureFlagExists("ignoreComment",H),nt.ensureFlagExists("ignoreCdata",H),nt.ensureFlagExists("ignoreDoctype",H),nt.ensureFlagExists("compact",H),nt.ensureFlagExists("alwaysChildren",H),nt.ensureFlagExists("addParent",H),nt.ensureFlagExists("trim",H),nt.ensureFlagExists("nativeType",H),nt.ensureFlagExists("nativeTypeAttributes",H),nt.ensureFlagExists("sanitize",H),nt.ensureFlagExists("instructionHasAttributes",H),nt.ensureFlagExists("captureSpacesBetweenElements",H),nt.ensureAlwaysArrayExists(H),nt.ensureKeyExists("declaration",H),nt.ensureKeyExists("instruction",H),nt.ensureKeyExists("attributes",H),nt.ensureKeyExists("text",H),nt.ensureKeyExists("comment",H),nt.ensureKeyExists("cdata",H),nt.ensureKeyExists("doctype",H),nt.ensureKeyExists("type",H),nt.ensureKeyExists("name",H),nt.ensureKeyExists("elements",H),nt.ensureKeyExists("parent",H),nt.checkFnExists("doctype",H),nt.checkFnExists("instruction",H),nt.checkFnExists("cdata",H),nt.checkFnExists("comment",H),nt.checkFnExists("text",H),nt.checkFnExists("instructionName",H),nt.checkFnExists("elementName",H),nt.checkFnExists("attributeName",H),nt.checkFnExists("attributeValue",H),nt.checkFnExists("attributes",H),H}o(U8,"validateOptions");function H0(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(H0,"nativeType");function Pu(e,t){var n;if(H.compact){if(!$e[H[e+"Key"]]&&(Pl(H.alwaysArray)?H.alwaysArray.indexOf(H[e+"Key"])!==-1:H.alwaysArray)&&($e[H[e+"Key"]]=[]),$e[H[e+"Key"]]&&!Pl($e[H[e+"Key"]])&&($e[H[e+"Key"]]=[$e[H[e+"Key"]]]),e+"Fn"in H&&typeof t=="string"&&(t=H[e+"Fn"](t,$e)),e==="instruction"&&("instructionFn"in H||"instructionNameFn"in H)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in H)t[n]=H.instructionFn(t[n],n,$e);else{var i=t[n];delete t[n],t[H.instructionNameFn(n,i,$e)]=i}}Pl($e[H[e+"Key"]])?$e[H[e+"Key"]].push(t):$e[H[e+"Key"]]=t}else{$e[H.elementsKey]||($e[H.elementsKey]=[]);var r={};if(r[H.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[H.nameKey]="instructionNameFn"in H?H.instructionNameFn(n,t,$e):n,H.instructionHasAttributes?(r[H.attributesKey]=t[n][H.attributesKey],"instructionFn"in H&&(r[H.attributesKey]=H.instructionFn(r[H.attributesKey],n,$e))):("instructionFn"in H&&(t[n]=H.instructionFn(t[n],n,$e)),r[H.instructionKey]=t[n])}else e+"Fn"in H&&(t=H[e+"Fn"](t,$e)),r[H[e+"Key"]]=t;H.addParent&&(r[H.parentKey]=$e),$e[H.elementsKey].push(r)}}o(Pu,"addField");function G0(e){if("attributesFn"in H&&e&&(e=H.attributesFn(e,$e)),(H.trim||"attributeValueFn"in H||"attributeNameFn"in H||H.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(H.trim&&(e[t]=e[t].trim()),H.nativeTypeAttributes&&(e[t]=H0(e[t])),"attributeValueFn"in H&&(e[t]=H.attributeValueFn(e[t],t,$e)),"attributeNameFn"in H)){var n=e[t];delete e[t],e[H.attributeNameFn(t,e[t],$e)]=n}}return e}o(G0,"manipulateAttributes");function j8(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||H.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,i;(i=n.exec(e.body))!==null;)t[i[1]]=i[2]||i[3]||i[4];t=G0(t)}if(e.name.toLowerCase()==="xml"){if(H.ignoreDeclaration)return;$e[H.declarationKey]={},Object.keys(t).length&&($e[H.declarationKey][H.attributesKey]=t),H.addParent&&($e[H.declarationKey][H.parentKey]=$e)}else{if(H.ignoreInstruction)return;H.trim&&(e.body=e.body.trim());var r={};H.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][H.attributesKey]=t):r[e.name]=e.body,Pu("instruction",r)}}o(j8,"onInstruction");function k0(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=G0(t),"elementNameFn"in H&&(e=H.elementNameFn(e,$e)),H.compact){if(n={},!H.ignoreAttributes&&t&&Object.keys(t).length){n[H.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[H.attributesKey][i]=t[i])}!(e in $e)&&(Pl(H.alwaysArray)?H.alwaysArray.indexOf(e)!==-1:H.alwaysArray)&&($e[e]=[]),$e[e]&&!Pl($e[e])&&($e[e]=[$e[e]]),Pl($e[e])?$e[e].push(n):$e[e]=n}else $e[H.elementsKey]||($e[H.elementsKey]=[]),n={},n[H.typeKey]="element",n[H.nameKey]=e,!H.ignoreAttributes&&t&&Object.keys(t).length&&(n[H.attributesKey]=t),H.alwaysChildren&&(n[H.elementsKey]=[]),$e[H.elementsKey].push(n);n[H.parentKey]=$e,$e=n}o(k0,"onStartElement");function U0(e){H.ignoreText||!e.trim()&&!H.captureSpacesBetweenElements||(H.trim&&(e=e.trim()),H.nativeType&&(e=H0(e)),H.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),Pu("text",e))}o(U0,"onText");function j0(e){H.ignoreComment||(H.trim&&(e=e.trim()),Pu("comment",e))}o(j0,"onComment");function $0(e){var t=$e[H.parentKey];H.addParent||delete $e[H.parentKey],$e=t}o($0,"onEndElement");function $8(e){H.ignoreCdata||(H.trim&&(e=e.trim()),Pu("cdata",e))}o($8,"onCdata");function B8(e){H.ignoreDoctype||(e=e.replace(/^ /,""),H.trim&&(e=e.trim()),Pu("doctype",e))}o(B8,"onDoctype");function B0(e){e.note=e}o(B0,"onError");W0.exports=function(e,t){var n=Hb?M8.parser(!0,{}):n=new k8.Parser("UTF-8"),i={};if($e=i,H=U8(t),Hb?(n.opt={strictEntities:!0},n.onopentag=k0,n.ontext=U0,n.oncomment=j0,n.onclosetag=$0,n.onerror=B0,n.oncdata=$8,n.ondoctype=B8,n.onprocessinginstruction=j8):(n.on("startElement",k0),n.on("text",U0),n.on("comment",j0),n.on("endElement",$0),n.on("error",B0)),Hb)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[H.elementsKey]){var r=i[H.elementsKey];delete i[H.elementsKey],i[H.elementsKey]=r,delete i.text}return i}});var Q0=ze((Uee,X0)=>{var K0=im(),H8=Gb();function G8(e){var t=K0.copyOptions(e);return K0.ensureSpacesExists(t),t}o(G8,"validateOptions");X0.exports=function(e,t){var n,i,r,a;return n=G8(t),i=H8(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?r=JSON.stringify(i,function(s,l){return s===a?"_":l},n.spaces):r=JSON.stringify(i,null,n.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var Kb=ze(($ee,iD)=>{var st=im(),W8=nm().isArray,Ai,Ei;function K8(e){var t=st.copyOptions(e);return st.ensureFlagExists("ignoreDeclaration",t),st.ensureFlagExists("ignoreInstruction",t),st.ensureFlagExists("ignoreAttributes",t),st.ensureFlagExists("ignoreText",t),st.ensureFlagExists("ignoreComment",t),st.ensureFlagExists("ignoreCdata",t),st.ensureFlagExists("ignoreDoctype",t),st.ensureFlagExists("compact",t),st.ensureFlagExists("indentText",t),st.ensureFlagExists("indentCdata",t),st.ensureFlagExists("indentAttributes",t),st.ensureFlagExists("indentInstruction",t),st.ensureFlagExists("fullTagEmptyElement",t),st.ensureFlagExists("noQuotesForNativeAttributes",t),st.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),st.ensureKeyExists("declaration",t),st.ensureKeyExists("instruction",t),st.ensureKeyExists("attributes",t),st.ensureKeyExists("text",t),st.ensureKeyExists("comment",t),st.ensureKeyExists("cdata",t),st.ensureKeyExists("doctype",t),st.ensureKeyExists("type",t),st.ensureKeyExists("name",t),st.ensureKeyExists("elements",t),st.checkFnExists("doctype",t),st.checkFnExists("instruction",t),st.checkFnExists("cdata",t),st.checkFnExists("comment",t),st.checkFnExists("text",t),st.checkFnExists("instructionName",t),st.checkFnExists("elementName",t),st.checkFnExists("attributeName",t),st.checkFnExists("attributeValue",t),st.checkFnExists("attributes",t),st.checkFnExists("fullTagEmptyElement",t),t}o(K8,"validateOptions");function Do(e,t,n){return(!n&&e.spaces?`
|
|
28
|
+
`:"")+Array(t+1).join(e.spaces)}o(Do,"writeIndentation");function rm(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,Ei,Ai));var i,r,a,s,l=[];for(i in e)e.hasOwnProperty(i)&&e[i]!==null&&e[i]!==void 0&&(s=t.noQuotesForNativeAttributes&&typeof e[i]!="string"?"":'"',r=""+e[i],r=r.replace(/"/g,"""),a="attributeNameFn"in t?t.attributeNameFn(i,r,Ei,Ai):i,l.push(t.spaces&&t.indentAttributes?Do(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,Ei,Ai):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(Do(t,n,!1)),l.join("")}o(rm,"writeAttributes");function q0(e,t,n){return Ai=e,Ei="xml",t.ignoreDeclaration?"":"<?xml"+rm(e[t.attributesKey],t,n)+"?>"}o(q0,"writeDeclaration");function Y0(e,t,n){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var r="instructionNameFn"in t?t.instructionNameFn(i,e[i],Ei,Ai):i;if(typeof e[i]=="object")return Ai=e,Ei=r,"<?"+r+rm(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,Ei,Ai)),"<?"+r+(a?" "+a:"")+"?>"}o(Y0,"writeInstruction");function z0(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,Ei,Ai):e)+"-->"}o(z0,"writeComment");function J0(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,Ei,Ai):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}o(J0,"writeCdata");function Z0(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,Ei,Ai):e)+">"}o(Z0,"writeDoctype");function Wb(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&/g,"&"),e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in t?t.textFn(e,Ei,Ai):e)}o(Wb,"writeText");function X8(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n<e.elements.length;++n)switch(e.elements[n][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}o(X8,"hasContent");function Q8(e,t,n){Ai=e,Ei=e.name;var i=[],r="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+r),e[t.attributesKey]&&i.push(rm(e[t.attributesKey],t,n));var a=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey]["xml:space"]==="preserve";return a||("fullTagEmptyElementFn"in t?a=t.fullTagEmptyElementFn(e.name,e):a=t.fullTagEmptyElement),a?(i.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(i.push(eD(e[t.elementsKey],t,n+1)),Ai=e,Ei=e.name),i.push(t.spaces&&X8(e,t)?`
|
|
29
|
+
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(Q8,"writeElement");function eD(e,t,n,i){return e.reduce(function(r,a){var s=Do(t,n,i&&!r);switch(a.type){case"element":return r+s+Q8(a,t,n);case"comment":return r+s+z0(a[t.commentKey],t);case"doctype":return r+s+Z0(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+J0(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+Wb(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+Y0(l,t,n)}},"")}o(eD,"writeElements");function tD(e,t,n){var i;for(i in e)if(e.hasOwnProperty(i))switch(i){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}o(tD,"hasContentCompact");function q8(e,t,n,i,r){Ai=e,Ei=t;var a="elementNameFn"in n?n.elementNameFn(t,e):t;if(typeof e>"u"||e===null||e==="")return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?"<"+a+"></"+a+">":"<"+a+"/>";var s=[];if(t){if(s.push("<"+a),typeof e!="object")return s.push(">"+Wb(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(rm(e[n.attributesKey],n,i));var l=tD(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(l||("fullTagEmptyElementFn"in n?l=n.fullTagEmptyElementFn(t,e):l=n.fullTagEmptyElement),l)s.push(">");else return s.push("/>"),s.join("")}return s.push(nD(e,n,i+1,!1)),Ai=e,Ei=t,t&&s.push((r?Do(n,i,!1):"")+"</"+a+">"),s.join("")}o(q8,"writeElementCompact");function nD(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=W8(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(q0(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Do(t,n,i):"")+Y0(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Do(t,n,i):"")+Wb(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Do(t,n,i):"")+J0(s[r],t));break;case t.doctypeKey:l.push(Do(t,n,i)+Z0(s[r],t));break;case t.commentKey:l.push(Do(t,n,i)+z0(s[r],t));break;default:l.push(Do(t,n,i)+q8(s[r],a,t,n,tD(s[r],t)))}i=i&&!l.length}return l.join("")}o(nD,"writeElementsCompact");iD.exports=function(e,t){t=K8(t);var n=[];return Ai=e,Ei="_root_",t.compact?n.push(nD(e,t,0,!0)):(e[t.declarationKey]&&n.push(q0(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(eD(e[t.elementsKey],t,0,!n.length))),n.join("")}});var oD=ze((Hee,rD)=>{var Y8=Kb();rD.exports=function(e,t){e instanceof Buffer&&(e=e.toString());var n=null;if(typeof e=="string")try{n=JSON.parse(e)}catch{throw new Error("The JSON structure is invalid")}else n=e;return Y8(n,t)}});var uc=ze((Gee,aD)=>{var z8=Gb(),J8=Q0(),Z8=Kb(),eK=oD();aD.exports={xml2js:z8,xml2json:J8,js2xml:Z8,json2xml:eK}});var pD=ze(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.convertEntityTypeAnnotations=Ji.convertPropertyAnnotations=Ji.convertNavigationPropertyAnnotations=Ji.convertEntitySetAnnotations=Ji.convertGenericAnnotations=Ji.convertV2Annotations=void 0;function tK(e,t,n){let i=[];switch(t){case"EntitySet":cD(e,i);break;case"EntityType":uD(e,i);break;case"NavigationProperty":lD(e,n,i);break;case"Property":fD(e,n,i);break;case"Singleton":break;default:break}return sD(e,n,i),i}o(tK,"convertV2Annotations");Ji.convertV2Annotations=tK;function sD(e,t,n){function i(r,a){r&&n.push(a)}if(o(i,"pushToAnnotations"),i(e["sap:schema-version"]!==void 0,{term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),i(e["sap:searchable"]!==void 0,{term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searchable",value:{type:"Bool",Bool:e["sap:searchable"]==="true"}}]}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:topable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:topable"]==="true"}}),i(e["sap:requires-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiresFilter",value:{type:"Bool",Bool:e["sap:requires-filter"]==="true"}}]}}),i(e["sap:required-in-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiredProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}}),i(e["sap:filter-restricton"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"String",String:e["sap:filter-restricton"]}},{name:"Property",value:{type:"PropertyPath",PropertyPath:t}}]}]}}]}}),i(e["sap:sortable"]==="false",{term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:t}}]}}),i(e["sap:visible"]==="false",{term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),i(e["sap:label"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),i(e["sap:heading"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),i(e["sap:quickinfo"]!==void 0,{term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),i(e["sap:text"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:precision"]!==void 0,{term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"],10)}}),i(e["sap:value-list"]==="fixed-value",{term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="NonNegative",{term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="UpperCase",{term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){let r=[];e["sap:lower-boundary"]&&r.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&r.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:r}})}i(e["sap:field-control"]!==void 0,{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),i(e["sap:applicable-path"]!==void 0,{term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),i(e["sap:minoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"],10)}}),i(e["sap:maxoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"],10)}}),i(e["sap:parameter"]==="mandatory",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),i(e["sap:parameter"]==="optional",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),i(e["sap:attribute-for"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}})}o(sD,"convertGenericAnnotations");Ji.convertGenericAnnotations=sD;function cD(e,t){e["sap:creatable"]&&t.push({term:"Org.OData.Capabilities.V1.InsertRestrictions",record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}),e["sap:updatable"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:updatable-path"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Path",Path:e["sap:updatable-path"]}}]}}),e["sap:deletable"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:deletable-path"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Path",Path:e["sap:deletable-path"]}}]}})}o(cD,"convertEntitySetAnnotations");Ji.convertEntitySetAnnotations=cD;function lD(e,t,n){e["sap:creatable"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}}]}}}]}}),e["sap:creatable-path"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Path",Path:e["sap:creatable-path"]}}]}}}]}}}]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"NavigationProperty",value:{type:"NavigationPropertyPath",NavigationPropertyPath:t}},{name:"FilterRestrictions",value:{type:"Record",Record:{propertyValues:[{name:"Filterable",value:{type:"Bool",Bool:!1}}]}}}]}]}}]}})}o(lD,"convertNavigationPropertyAnnotations");Ji.convertNavigationPropertyAnnotations=lD;function fD(e,t,n){e["sap:creatable"]==="true"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Immutable",value:{type:"Bool",Bool:!0}}),e["sap:creatable"]==="false"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Computed",value:{type:"Bool",Bool:!0}}),e["sap:updatable-path"]&&n.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:updatable-path"]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"NonFilterableProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}})}o(fD,"convertPropertyAnnotations");Ji.convertPropertyAnnotations=fD;function uD(e,t){e["sap:semantics"]==="aggregate"&&t.push({term:"Org.OData.Aggregation.V1.ApplySupported",record:{propertyValues:[{name:"PropertyRestrictions",value:{type:"Collection",Collection:[]}},{name:"GroupableProperties",value:{type:"Collection",Collection:[]}},{name:"AggregatableProperties",value:{type:"Collection",Collection:[]}}]}})}o(uD,"convertEntityTypeAnnotations");Ji.convertEntityTypeAnnotations=uD});var TD=ze(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});fm.parse=void 0;var nK=uc(),He=Bb(),xu=pD(),sm=/^Collection\((.+)\)$/;function iK(e){return e.Type!==null&&e.Type!==void 0}o(iK,"isV4NavProperty");function rK(e){return e.map(t=>t._attributes.Name)}o(rK,"getEntityTypeKeys");function mD(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:xl(a._attributes.Type).type};if(a._attributes.MaxLength&&(s.maxLength=parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(s.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(s.scale=parseInt(a._attributes.Scale,10)),s.nullable=a._attributes.Nullable!=="false",a._attributes.DefaultValue)switch(s.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":s.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":s.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=a._attributes.DefaultValue==="true";break;default:s.defaultValue=a._attributes.DefaultValue;break}r.entityProperties.push(s),t.indexOf(s.name)!==-1&&r.entityKeys.push(s);let l=(0,xu.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(pc(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(mD,"parseProperties");function oK(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(oK,"parseReferentialConstraint");function aK(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let s=(0,He.ensureArray)(i.Principal.PropertyRef),l=(0,He.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(u=>u.role===i.Dependent._attributes.Role),l=s,s=(0,He.ensureArray)(i.Dependent.PropertyRef));for(let u of s){let p=s.indexOf(u);n.push({sourceTypeName:r.type,sourceProperty:u._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}o(aK,"parseV2ReferentialConstraint");function hD(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(iK(s)){let l=s.Type.match(sm),u=l!==null,p=_o(l?l[1]:s.Type);r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:u,targetTypeName:p,referentialConstraint:oK((0,He.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:u,FromRole:p}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:u,fromRole:p});let g=(0,xu.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(pc(`${n}/${s.Name}`,g))}return r},[])}o(hD,"parseNavigationProperties");function sK(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,He.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}o(sK,"parseAssociationSets");function cK(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,He.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:aK((0,He.ensureArray)(n.ReferentialConstraint),r)}})}o(cK,"parseAssociations");function lK(e,t,n){return e.reduce((i,r)=>{let a=r.Key?rK((0,He.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=mD((0,He.ensureArray)(r.Property),a,s,t),p=hD((0,He.ensureArray)(r.NavigationProperty),r,s,t),g={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:u,entityProperties:l,actions:{},navigationProperties:p},m=(0,xu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(pc(g.fullyQualifiedName,m)),i.push(g),i},[])}o(lK,"parseEntityTypes");function fK(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=mD((0,He.ensureArray)(r.Property),[],a,t),l=hD((0,He.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(fK,"parseComplexTypes");function uK(e,t){return e.reduce((n,i)=>{let r=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:r,underlyingType:i._attributes.UnderlyingType}),n},[])}o(uK,"parseTypeDefinitions");function pK(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,He.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:_o(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,xu.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(pc(l.fullyQualifiedName,u)),l})}o(pK,"parseEntitySets");function dK(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,He.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:_o(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,xu.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(pc(l.fullyQualifiedName,u)),l})}o(dK,"parseSingletons");function dD(e,t,n){return e.map(i=>{let r=(0,He.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(u=>xl(u._attributes.Type).type).join(","):s=a?xl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?xl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:g}=xl(u._attributes.Type),m={_type:"ActionParameter",fullyQualifiedName:`${l}/${u._attributes.Name}`,name:`${u._attributes.Name}`,type:g,isCollection:p};return u._attributes.MaxLength&&(m.maxLength=parseInt(u._attributes.MaxLength,10)),u._attributes.Precision&&(m.precision=parseInt(u._attributes.Precision,10)),u._attributes.Scale&&(m.scale=parseInt(u._attributes.Scale,10)),m.nullable=u._attributes.Nullable!=="false",m}),returnType:i.ReturnType?xl(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(sm)!==null:!1}})}o(dD,"parseActions");function gK(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,He.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${a}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:"",returnCollection:i._attributes.ReturnType?i._attributes.ReturnType.match(sm)!==null:!1}})}o(gK,"parseV2FunctionImport");function gD(e,t){return e.map(n=>{var i;let r=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:_o(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:_o(r)}})}o(gD,"parseActionImports");function mK(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...s}=i,l={};if(a){let u=Object.keys(a).find(g=>g!=="Property");l.name=a.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=am(s,p,n,!1):u&&(l.value=yD({[u]:a[u]},p,n)),i.Annotation){let g=lm((0,He.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(pc(p,g))}}return l})}o(mK,"parsePropertyValues");function cm(e,t,n){let i=lm((0,He.ensureArray)(e.Annotation),t,n),r={type:e._attributes?_o(e._attributes.Type):void 0,propertyValues:mK((0,He.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(cm,"parseRecord");function ma(e,t){return e[t]!=null}o(ma,"isExpressionOfType");function om(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}o(om,"parseModelPath");function Qb(e,t,n){if(ma(e,"Record")){let i=(0,He.ensureArray)(e.Record).map((r,a)=>cm(r,t+"/"+a,n));return i.type="Record",i}else if(ma(e,"PropertyPath")){let i=(0,He.ensureArray)(e.PropertyPath).map(r=>om(r,"PropertyPath"));return i.type="PropertyPath",i}else if(ma(e,"NavigationPropertyPath")){let i=(0,He.ensureArray)(e.NavigationPropertyPath).map(r=>om(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(ma(e,"String")){let i=(0,He.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(ma(e,"AnnotationPath")){let i=(0,He.ensureArray)(e.AnnotationPath).map(r=>om(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(ma(e,"Path")){let i=(0,He.ensureArray)(e.Path).map(r=>om(r,"Path"));return i.type="Path",i}else if(ma(e,"If")){let i=(0,He.ensureArray)(e.If).map(r=>r._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}o(Qb,"parseCollection");function bn(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(r=>am({[i]:r},"",[],!0))):n.push(am({[i]:e[i]},"",[],!0))}),n}o(bn,"parseChildren");function yD(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Double":return{type:"Double",Double:parseFloat(e.Double)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:Qb(e.Collection,t,n)};case"Record":return{type:"Record",Record:cm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:bn(e.Apply),$Function:bn(e.Function)};case"And":return{type:"And",$And:bn(e.And)};case"Or":return{type:"Or",$Or:bn(e.Or)};case"Eq":return{type:"Eq",$Eq:bn(e.Eq)};case"Gt":return{type:"Gt",$Gt:bn(e.Gt)};case"Ge":return{type:"Ge",$Ge:bn(e.Ge)};case"Lt":return{type:"Lt",$Lt:bn(e.Lt)};case"Le":return{type:"Le",$Le:bn(e.Le)};case"If":return{type:"If",$If:bn(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(yD,"parseInlineExpression");function am(e,t,n,i){let r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=r[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:bn(e.LabeledElement)[0]};case"Bool":return i?e.Bool._text==="true":{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return i?parseInt(e.Int._text,10):{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return i?parseFloat(e.Decimal._text):{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Double":return i?parseFloat(e.Double._text):{type:"Double",Decimal:parseFloat(e.Double._text)};case"Path":return{type:"Path",Path:e.Path._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath._text};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath._text};case"EnumMember":return{type:"EnumMember",EnumMember:e[a]._text};case"Collection":return{type:"Collection",Collection:Qb(e.Collection,t,n)};case"Record":return{type:"Record",Record:cm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:bn(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:bn(e.And)};case"Ne":return{type:"Ne",$Ne:bn(e.Ne)};case"Not":return{type:"Not",$Not:bn(e.Not)[0]};case"Or":return{type:"Or",$Or:bn(e.Or)};case"Eq":return{type:"Eq",$Eq:bn(e.Eq)};case"If":return{type:"If",$If:bn(e.If)};case"Gt":return{type:"Gt",$Gt:bn(e.Gt)};case"Ge":return{type:"Ge",$Ge:bn(e.Ge)};case"Lt":return{type:"Lt",$Lt:bn(e.Lt)};case"Le":return{type:"Le",$Le:bn(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(am,"parseExpression");function hK(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:_o(i),qualifier:r},l=`${t}@${_o(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=yD(a,l,n)),e.Annotation){let p=lm((0,He.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let u=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return ma(e,"Record")?s.record=cm(e.Record,l,n):ma(e,"Collection")?s.collection=Qb(e.Collection,l,n):u.length===1?s.value=am({[u[0]]:e[u[0]]},l,n,!1):u.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}o(hK,"parseAnnotation");function lm(e,t,n){return e.map(i=>hK(i,t,n))}o(lm,"parseAnnotations");function pc(e,t){return{target:e,annotations:t}}o(pc,"createAnnotationList");function yK(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(pc(_o(n._attributes.Target),lm((0,He.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(yK,"parseAnnotationLists");function TK(e,t,n){let i=e._attributes.Namespace,r=[],a=lK((0,He.ensureArray)(e.EntityType),r,i),s=fK((0,He.ensureArray)(e.ComplexType),r,i),l=uK((0,He.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},h=[],S=[];if(e.EntityContainer)if(u=pK((0,He.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=dK((0,He.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=sK((0,He.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),m={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")h=h.concat(gK((0,He.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")S=S.concat(gD((0,He.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),S=S.concat(gD((0,He.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(h=h.concat(dD((0,He.ensureArray)(e.Action),i,!1)),h=h.concat(dD((0,He.ensureArray)(e.Function),i,!0)));let b=cK((0,He.ensureArray)(e.Association),i);yK((0,He.ensureArray)(e.Annotations),r);let O={};return O[n]=r,{associations:b,associationSets:g,annotations:O,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:h,actionImports:S,entityTypes:a}}o(TK,"parseSchema");function vK(e){return e.reduce((t,n)=>((0,He.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(vK,"parseReferences");var Xb={};function xl(e){let t=e.match(sm),n=t?t[1]:e,i=_o(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(xl,"unaliasType");function _o(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let a=0,s=!0;a<e.length;a++){let l=e[a];if(s&&l==="."){let u=e.substring(r,a);i.push((t=Xb[u])!==null&&t!==void 0?t:u),r=a,s=!1}n.includes(l)&&(i.push(e.substring(r,a+1)),r=a+1,s=!0)}return i.push(e.substring(r)),i.join("")}o(_o,"unalias");function bK(e){let t=e.reduce((S,b)=>S.concat(b.associations),[]),n=e.reduce((S,b)=>S.concat(b.associationSets),[]),i=e.reduce((S,b)=>S.concat(b.entitySets),[]),r=e.reduce((S,b)=>S.concat(b.singletons),[]),a=e.reduce((S,b)=>S.concat(b.entityTypes),[]),s=e.reduce((S,b)=>S.concat(b.actions),[]),l=e.reduce((S,b)=>S.concat(b.actionImports),[]),u=e.reduce((S,b)=>S.concat(b.complexTypes),[]),p=e.reduce((S,b)=>S.concat(b.typeDefinitions),[]),g={};e.forEach(S=>{g=Object.assign(g,S.annotations)});let m,h;return e.forEach(S=>{S.entityContainer&&Object.keys(S.entityContainer).length>0&&(m=S.entityContainer,h=S.namespace)}),i.forEach(S=>{let b=a.find(O=>O.fullyQualifiedName===S.entityTypeName);b==null||b.navigationProperties.forEach(O=>{let N=O,M=n.find(G=>G.association===N.relationship);if(M){let G=M.associationEnd.find(j=>j.entitySet!==S.fullyQualifiedName);G&&(S.navigationPropertyBinding[O.name]=G.entitySet)}})}),a.forEach(S=>{S.navigationProperties.forEach(b=>{let O=b,N=t.find(M=>M.fullyQualifiedName===O.relationship);N&&N.referentialConstraints&&N.referentialConstraints.length>0&&(N.referentialConstraints[0].sourceTypeName===S.fullyQualifiedName?O.referentialConstraint=N.referentialConstraints:O.referentialConstraint=N.referentialConstraints.map(M=>({sourceTypeName:M.targetTypeName,sourceProperty:M.targetProperty,targetTypeName:M.sourceTypeName,targetProperty:M.sourceProperty})))})}),{associations:t,associationSets:n,annotations:g,entityContainer:m,namespace:h,entitySets:i,singletons:r,complexTypes:u,typeDefinitions:p,actions:s,actionImports:l,entityTypes:a}}o(bK,"mergeSchemas");function SK(e,t){Xb=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{Xb[n._attributes.Alias]=n._attributes.Namespace})}o(SK,"createAliasMap");function AK(e,t="serviceFile"){let n=(0,nK.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,He.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=vK((0,He.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));SK(a,r);let s=r.map(u=>TK(u,i,t));return new He.RawMetadataInstance(t,i,bK(s),a)}o(AK,"parse");fm.parse=AK});var vD=ze(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.parse=Cl.merge=void 0;var EK=_0();Object.defineProperty(Cl,"merge",{enumerable:!0,get:o(function(){return EK.merge},"get")});var PK=TD();Object.defineProperty(Cl,"parse",{enumerable:!0,get:o(function(){return PK.parse},"get")})});var DD=ze(()=>{var FD;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=r(e);typeof n.Reflect<"u"&&(i=r(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function r(u,p){return function(g,m){Object.defineProperty(u,g,{configurable:!0,writable:!0,value:m}),p&&p(g,m)}}o(r,"makeExporter");function a(){try{return Function("return this;")()}catch{}}o(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(s,"indirectEvalThis");function l(){return a()||s()}o(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",u={__proto__:[]}instanceof Array,p=!l&&!u,g={create:l?function(){return Zs(Object.create(null))}:u?function(){return Zs({__proto__:null})}:function(){return Zs({})},has:p?function(U,B){return i.call(U,B)}:function(U,B){return B in U},get:p?function(U,B){return i.call(U,B)?U[B]:void 0}:function(U,B){return U[B]}},m=Object.getPrototypeOf(Function),h=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Zf(),S=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:eu(),b=typeof WeakMap=="function"?WeakMap:tu(),O=r?Symbol.for("@reflect-metadata:registry"):void 0,N=Ki(),M=Jf(N);function G(U,B,q,le){if(Fe(q)){if(!Ft(U))throw new TypeError;if(!jt(B))throw new TypeError;return cn(U,B)}else{if(!Ft(U))throw new TypeError;if(!ot(B))throw new TypeError;if(!ot(le)&&!Fe(le)&&!Kn(le))throw new TypeError;return Kn(le)&&(le=void 0),q=_e(q),Wn(U,B,q,le)}}o(G,"decorate"),t("decorate",G);function j(U,B){function q(le,Le){if(!ot(le))throw new TypeError;if(!Fe(Le)&&!Tn(Le))throw new TypeError;Ct(U,B,le,Le)}return o(q,"decorator"),q}o(j,"metadata"),t("metadata",j);function re(U,B,q,le){if(!ot(q))throw new TypeError;return Fe(le)||(le=_e(le)),Ct(U,B,q,le)}o(re,"defineMetadata"),t("defineMetadata",re);function Z(U,B,q){if(!ot(B))throw new TypeError;return Fe(q)||(q=_e(q)),nn(U,B,q)}o(Z,"hasMetadata"),t("hasMetadata",Z);function oe(U,B,q){if(!ot(B))throw new TypeError;return Fe(q)||(q=_e(q)),Nt(U,B,q)}o(oe,"hasOwnMetadata"),t("hasOwnMetadata",oe);function Pe(U,B,q){if(!ot(B))throw new TypeError;return Fe(q)||(q=_e(q)),Ne(U,B,q)}o(Pe,"getMetadata"),t("getMetadata",Pe);function D(U,B,q){if(!ot(B))throw new TypeError;return Fe(q)||(q=_e(q)),Ri(U,B,q)}o(D,"getOwnMetadata"),t("getOwnMetadata",D);function pt(U,B){if(!ot(U))throw new TypeError;return Fe(B)||(B=_e(B)),Ut(U,B)}o(pt,"getMetadataKeys"),t("getMetadataKeys",pt);function yt(U,B){if(!ot(U))throw new TypeError;return Fe(B)||(B=_e(B)),ln(U,B)}o(yt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",yt);function je(U,B,q){if(!ot(B))throw new TypeError;if(Fe(q)||(q=_e(q)),!ot(B))throw new TypeError;Fe(q)||(q=_e(q));var le=_r(B,q,!1);return Fe(le)?!1:le.OrdinaryDeleteMetadata(U,B,q)}o(je,"deleteMetadata"),t("deleteMetadata",je);function cn(U,B){for(var q=U.length-1;q>=0;--q){var le=U[q],Le=le(B);if(!Fe(Le)&&!Kn(Le)){if(!jt(Le))throw new TypeError;B=Le}}return B}o(cn,"DecorateConstructor");function Wn(U,B,q,le){for(var Le=U.length-1;Le>=0;--Le){var hn=U[Le],Cn=hn(B,q,le);if(!Fe(Cn)&&!Kn(Cn)){if(!ot(Cn))throw new TypeError;le=Cn}}return le}o(Wn,"DecorateProperty");function nn(U,B,q){var le=Nt(U,B,q);if(le)return!0;var Le=Wt(B);return Kn(Le)?!1:nn(U,Le,q)}o(nn,"OrdinaryHasMetadata");function Nt(U,B,q){var le=_r(B,q,!1);return Fe(le)?!1:Y(le.OrdinaryHasOwnMetadata(U,B,q))}o(Nt,"OrdinaryHasOwnMetadata");function Ne(U,B,q){var le=Nt(U,B,q);if(le)return Ri(U,B,q);var Le=Wt(B);if(!Kn(Le))return Ne(U,Le,q)}o(Ne,"OrdinaryGetMetadata");function Ri(U,B,q){var le=_r(B,q,!1);if(!Fe(le))return le.OrdinaryGetOwnMetadata(U,B,q)}o(Ri,"OrdinaryGetOwnMetadata");function Ct(U,B,q,le){var Le=_r(q,le,!0);Le.OrdinaryDefineOwnMetadata(U,B,q,le)}o(Ct,"OrdinaryDefineOwnMetadata");function Ut(U,B){var q=ln(U,B),le=Wt(U);if(le===null)return q;var Le=Ut(le,B);if(Le.length<=0)return q;if(q.length<=0)return Le;for(var hn=new S,Cn=[],et=0,he=q;et<he.length;et++){var be=he[et],xe=hn.has(be);xe||(hn.add(be),Cn.push(be))}for(var Oe=0,it=Le;Oe<it.length;Oe++){var be=it[Oe],xe=hn.has(be);xe||(hn.add(be),Cn.push(be))}return Cn}o(Ut,"OrdinaryMetadataKeys");function ln(U,B){var q=_r(U,B,!1);return q?q.OrdinaryOwnMetadataKeys(U,B):[]}o(ln,"OrdinaryOwnMetadataKeys");function Wi(U){if(U===null)return 1;switch(typeof U){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return U===null?1:6;default:return 6}}o(Wi,"Type");function Fe(U){return U===void 0}o(Fe,"IsUndefined");function Kn(U){return U===null}o(Kn,"IsNull");function Dr(U){return typeof U=="symbol"}o(Dr,"IsSymbol");function ot(U){return typeof U=="object"?U!==null:typeof U=="function"}o(ot,"IsObject");function I(U,B){switch(Wi(U)){case 0:return U;case 1:return U;case 2:return U;case 3:return U;case 4:return U;case 5:return U}var q=B===3?"string":B===5?"number":"default",le=Gt(U,a);if(le!==void 0){var Le=le.call(U,q);if(ot(Le))throw new TypeError;return Le}return E(U,q==="default"?"number":q)}o(I,"ToPrimitive");function E(U,B){if(B==="string"){var q=U.toString;if(qe(q)){var le=q.call(U);if(!ot(le))return le}var Le=U.valueOf;if(qe(Le)){var le=Le.call(U);if(!ot(le))return le}}else{var Le=U.valueOf;if(qe(Le)){var le=Le.call(U);if(!ot(le))return le}var hn=U.toString;if(qe(hn)){var le=hn.call(U);if(!ot(le))return le}}throw new TypeError}o(E,"OrdinaryToPrimitive");function Y(U){return!!U}o(Y,"ToBoolean");function V(U){return""+U}o(V,"ToString");function _e(U){var B=I(U,3);return Dr(B)?B:V(B)}o(_e,"ToPropertyKey");function Ft(U){return Array.isArray?Array.isArray(U):U instanceof Object?U instanceof Array:Object.prototype.toString.call(U)==="[object Array]"}o(Ft,"IsArray");function qe(U){return typeof U=="function"}o(qe,"IsCallable");function jt(U){return typeof U=="function"}o(jt,"IsConstructor");function Tn(U){switch(Wi(U)){case 3:return!0;case 4:return!0;default:return!1}}o(Tn,"IsPropertyKey");function fn(U,B){return U===B||U!==U&&B!==B}o(fn,"SameValueZero");function Gt(U,B){var q=U[B];if(q!=null){if(!qe(q))throw new TypeError;return q}}o(Gt,"GetMethod");function ti(U){var B=Gt(U,s);if(!qe(B))throw new TypeError;var q=B.call(U);if(!ot(q))throw new TypeError;return q}o(ti,"GetIterator");function fr(U){return U.value}o(fr,"IteratorValue");function mn(U){var B=U.next();return B.done?!1:B}o(mn,"IteratorStep");function Ti(U){var B=U.return;B&&B.call(U)}o(Ti,"IteratorClose");function Wt(U){var B=Object.getPrototypeOf(U);if(typeof U!="function"||U===m||B!==m)return B;var q=U.prototype,le=q&&Object.getPrototypeOf(q);if(le==null||le===Object.prototype)return B;var Le=le.constructor;return typeof Le!="function"||Le===U?B:Le}o(Wt,"OrdinaryGetPrototypeOf");function na(){var U;!Fe(O)&&typeof n.Reflect<"u"&&!(O in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(U=Js(n.Reflect));var B,q,le,Le=new b,hn={registerProvider:Cn,getProvider:he,setProvider:xe};return hn;function Cn(Oe){if(!Object.isExtensible(hn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case U===Oe:break;case Fe(B):B=Oe;break;case B===Oe:break;case Fe(q):q=Oe;break;case q===Oe:break;default:le===void 0&&(le=new S),le.add(Oe);break}}function et(Oe,it){if(!Fe(B)){if(B.isProviderFor(Oe,it))return B;if(!Fe(q)){if(q.isProviderFor(Oe,it))return B;if(!Fe(le))for(var Kt=ti(le);;){var un=mn(Kt);if(!un)return;var ur=fr(un);if(ur.isProviderFor(Oe,it))return Ti(Kt),ur}}}if(!Fe(U)&&U.isProviderFor(Oe,it))return U}function he(Oe,it){var Kt=Le.get(Oe),un;return Fe(Kt)||(un=Kt.get(it)),Fe(un)&&(un=et(Oe,it),Fe(un)||(Fe(Kt)&&(Kt=new h,Le.set(Oe,Kt)),Kt.set(it,un))),un}function be(Oe){if(Fe(Oe))throw new TypeError;return B===Oe||q===Oe||!Fe(le)&&le.has(Oe)}function xe(Oe,it,Kt){if(!be(Kt))throw new Error("Metadata provider not registered.");var un=he(Oe,it);if(un!==Kt){if(!Fe(un))return!1;var ur=Le.get(Oe);Fe(ur)&&(ur=new h,Le.set(Oe,ur)),ur.set(it,Kt)}return!0}}o(na,"CreateMetadataRegistry");function Ki(){var U;return!Fe(O)&&ot(n.Reflect)&&Object.isExtensible(n.Reflect)&&(U=n.Reflect[O]),Fe(U)&&(U=na()),!Fe(O)&&ot(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,O,{enumerable:!1,configurable:!1,writable:!1,value:U}),U}o(Ki,"GetOrCreateMetadataRegistry");function Jf(U){var B=new b,q={isProviderFor:o(function(be,xe){var Oe=B.get(be);return Fe(Oe)?!1:Oe.has(xe)},"isProviderFor"),OrdinaryDefineOwnMetadata:Cn,OrdinaryHasOwnMetadata:Le,OrdinaryGetOwnMetadata:hn,OrdinaryOwnMetadataKeys:et,OrdinaryDeleteMetadata:he};return N.registerProvider(q),q;function le(be,xe,Oe){var it=B.get(be),Kt=!1;if(Fe(it)){if(!Oe)return;it=new h,B.set(be,it),Kt=!0}var un=it.get(xe);if(Fe(un)){if(!Oe)return;if(un=new h,it.set(xe,un),!U.setProvider(be,xe,q))throw it.delete(xe),Kt&&B.delete(be),new Error("Wrong provider for target.")}return un}o(le,"GetOrCreateMetadataMap");function Le(be,xe,Oe){var it=le(xe,Oe,!1);return Fe(it)?!1:Y(it.has(be))}o(Le,"OrdinaryHasOwnMetadata");function hn(be,xe,Oe){var it=le(xe,Oe,!1);if(!Fe(it))return it.get(be)}o(hn,"OrdinaryGetOwnMetadata");function Cn(be,xe,Oe,it){var Kt=le(Oe,it,!0);Kt.set(be,xe)}o(Cn,"OrdinaryDefineOwnMetadata");function et(be,xe){var Oe=[],it=le(be,xe,!1);if(Fe(it))return Oe;for(var Kt=it.keys(),un=ti(Kt),ur=0;;){var Qd=mn(un);if(!Qd)return Oe.length=ur,Oe;var qT=fr(Qd);try{Oe[ur]=qT}catch(nu){try{Ti(un)}finally{throw nu}}ur++}}o(et,"OrdinaryOwnMetadataKeys");function he(be,xe,Oe){var it=le(xe,Oe,!1);if(Fe(it)||!it.delete(be))return!1;if(it.size===0){var Kt=B.get(xe);Fe(Kt)||(Kt.delete(Oe),Kt.size===0&&B.delete(Kt))}return!0}o(he,"OrdinaryDeleteMetadata")}o(Jf,"CreateMetadataProvider");function Js(U){var B=U.defineMetadata,q=U.hasOwnMetadata,le=U.getOwnMetadata,Le=U.getOwnMetadataKeys,hn=U.deleteMetadata,Cn=new b,et={isProviderFor:o(function(he,be){var xe=Cn.get(he);return!Fe(xe)&&xe.has(be)?!0:Le(he,be).length?(Fe(xe)&&(xe=new S,Cn.set(he,xe)),xe.add(be),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:q,OrdinaryGetOwnMetadata:le,OrdinaryOwnMetadataKeys:Le,OrdinaryDeleteMetadata:hn};return et}o(Js,"CreateFallbackProvider");function _r(U,B,q){var le=N.getProvider(U,B);if(!Fe(le))return le;if(q){if(N.setProvider(U,B,M))return M;throw new Error("Illegal state.")}}o(_r,"GetMetadataProvider");function Zf(){var U={},B=[],q=function(){function et(he,be,xe){this._index=0,this._keys=he,this._values=be,this._selector=xe}return o(et,"MapIterator"),et.prototype["@@iterator"]=function(){return this},et.prototype[s]=function(){return this},et.prototype.next=function(){var he=this._index;if(he>=0&&he<this._keys.length){var be=this._selector(this._keys[he],this._values[he]);return he+1>=this._keys.length?(this._index=-1,this._keys=B,this._values=B):this._index++,{value:be,done:!1}}return{value:void 0,done:!0}},et.prototype.throw=function(he){throw this._index>=0&&(this._index=-1,this._keys=B,this._values=B),he},et.prototype.return=function(he){return this._index>=0&&(this._index=-1,this._keys=B,this._values=B),{value:he,done:!0}},et}(),le=function(){function et(){this._keys=[],this._values=[],this._cacheKey=U,this._cacheIndex=-2}return o(et,"Map"),Object.defineProperty(et.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),et.prototype.has=function(he){return this._find(he,!1)>=0},et.prototype.get=function(he){var be=this._find(he,!1);return be>=0?this._values[be]:void 0},et.prototype.set=function(he,be){var xe=this._find(he,!0);return this._values[xe]=be,this},et.prototype.delete=function(he){var be=this._find(he,!1);if(be>=0){for(var xe=this._keys.length,Oe=be+1;Oe<xe;Oe++)this._keys[Oe-1]=this._keys[Oe],this._values[Oe-1]=this._values[Oe];return this._keys.length--,this._values.length--,fn(he,this._cacheKey)&&(this._cacheKey=U,this._cacheIndex=-2),!0}return!1},et.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=U,this._cacheIndex=-2},et.prototype.keys=function(){return new q(this._keys,this._values,Le)},et.prototype.values=function(){return new q(this._keys,this._values,hn)},et.prototype.entries=function(){return new q(this._keys,this._values,Cn)},et.prototype["@@iterator"]=function(){return this.entries()},et.prototype[s]=function(){return this.entries()},et.prototype._find=function(he,be){if(!fn(this._cacheKey,he)){this._cacheIndex=-1;for(var xe=0;xe<this._keys.length;xe++)if(fn(this._keys[xe],he)){this._cacheIndex=xe;break}}return this._cacheIndex<0&&be&&(this._cacheIndex=this._keys.length,this._keys.push(he),this._values.push(void 0)),this._cacheIndex},et}();return le;function Le(et,he){return et}function hn(et,he){return he}function Cn(et,he){return[et,he]}}o(Zf,"CreateMapPolyfill");function eu(){var U=function(){function B(){this._map=new h}return o(B,"Set"),Object.defineProperty(B.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),B.prototype.has=function(q){return this._map.has(q)},B.prototype.add=function(q){return this._map.set(q,q),this},B.prototype.delete=function(q){return this._map.delete(q)},B.prototype.clear=function(){this._map.clear()},B.prototype.keys=function(){return this._map.keys()},B.prototype.values=function(){return this._map.keys()},B.prototype.entries=function(){return this._map.entries()},B.prototype["@@iterator"]=function(){return this.keys()},B.prototype[s]=function(){return this.keys()},B}();return U}o(eu,"CreateSetPolyfill");function tu(){var U=16,B=g.create(),q=le();return function(){function he(){this._key=le()}return o(he,"WeakMap"),he.prototype.has=function(be){var xe=Le(be,!1);return xe!==void 0?g.has(xe,this._key):!1},he.prototype.get=function(be){var xe=Le(be,!1);return xe!==void 0?g.get(xe,this._key):void 0},he.prototype.set=function(be,xe){var Oe=Le(be,!0);return Oe[this._key]=xe,this},he.prototype.delete=function(be){var xe=Le(be,!1);return xe!==void 0?delete xe[this._key]:!1},he.prototype.clear=function(){this._key=le()},he}();function le(){var he;do he="@@WeakMap@@"+et();while(g.has(B,he));return B[he]=!0,he}function Le(he,be){if(!i.call(he,q)){if(!be)return;Object.defineProperty(he,q,{value:g.create()})}return he[q]}function hn(he,be){for(var xe=0;xe<be;++xe)he[xe]=Math.random()*255|0;return he}function Cn(he){if(typeof Uint8Array=="function"){var be=new Uint8Array(he);return typeof crypto<"u"?crypto.getRandomValues(be):typeof msCrypto<"u"?msCrypto.getRandomValues(be):hn(be,he),be}return hn(new Array(he),he)}function et(){var he=Cn(U);he[6]=he[6]&79|64,he[8]=he[8]&191|128;for(var be="",xe=0;xe<U;++xe){var Oe=he[xe];(xe===4||xe===6||xe===8)&&(be+="-"),Oe<16&&(be+="0"),be+=Oe.toString(16).toLowerCase()}return be}}o(tu,"CreateWeakMapPolyfill");function Zs(U){return U.__=void 0,delete U.__,U}o(Zs,"MakeDictionary")})})(FD||(FD={}))});var UD=ze((pte,kD)=>{var zK=0,MD="changeUtils: ";function JK(){return"id-"+new Date().valueOf()+"-"+zK++}o(JK,"uid");function ZK(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(ZK,"appendComponentToReference");function eX(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return ZK(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(eX,"getFlexReference");function tX(e){let t=e["sap.app"];if(!t||!t.applicationVersion||!t.applicationVersion.version)throw Error("app version could not be determined");return t.applicationVersion.version}o(tX,"getAppVersion");function nX(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(nX,"getProjectId");function wD(e){return JSON.stringify({fileName:e.id||JK().replace(/-/g,"_")+"_"+e.type,fileType:"change",changeType:e.type,moduleName:"",reference:e.reference,packageName:"",content:e.content||{},selector:{id:e.controlId,idIsLocal:!1,type:e.controlType},layer:e.isCustomer?"CUSTOMER_BASE":"VENDOR",texts:{},namespace:"apps/"+e.reference.replace(".Component","")+"/changes/",projectId:e.projectId,creation:e.creation||new Date().valueOf(),originalLanguage:"",support:{generator:MD+e.creatingTool,service:"",user:"",sapui5Version:e.sapui5Version,sourceChangeFileName:"",compositeCommand:""},oDataInformation:{},dependentSelector:{},validAppVersions:{from:e.appVersion,to:e.appVersion,creation:e.appVersion},jsOnly:!1,variantReference:"",appDescriptorChange:!1})}o(wD,"createString");kD.exports={parse:o(function(e){let t=JSON.parse(e);if(!t.fileName||!t.changeType||!t.selector||!t.reference||!t.creation||!t.content||!t.layer||!t.support)throw Error("Parsed object does not contain all required parameters");return{id:t.fileName,reference:t.reference,appVersion:t.validAppVersions?t.validAppVersions.creation:"",creation:t.creation,projectId:t.projectId,type:t.changeType,controlId:t.selector.id,controlType:t.selector.type,isCustomer:t.layer==="CUSTOMER_BASE",creatingTool:t.support.generator.replace(MD,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:o(function(e,t){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool)throw Error("not all property parameters of the change were provided");if(!t)throw Error("no manifest was provided");return e.reference=eX(t),e.appVersion=tX(t),e.projectId=nX(t,e.reference),wD(e)},"createChangeString"),toString:o(function(e){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool||!(e.reference&&e.appVersion))throw Error("not all parameters of the change were provided");return wD(e)},"toString")}});var $D=ze((gte,jD)=>{jD.exports={change:UD()}});var B1=ze(qr=>{"use strict";var qX=/[|\\{}()[\]^$+*?.]/g,YX=Object.prototype.hasOwnProperty,yA=o(function(e,t){return YX.apply(e,[t])},"hasOwn");qr.escapeRegExpChars=function(e){return e?String(e).replace(qX,"\\$&"):""};var zX={"&":"&","<":"<",">":">",'"':""","'":"'"},JX=/[&<>'"]/g;function ZX(e){return zX[e]||e}o(ZX,"encode_char");var e3=`var _ENCODE_HTML_RULES = {
|
|
30
30
|
"&": "&"
|
|
31
31
|
, "<": "<"
|
|
32
32
|
, ">": ">"
|
|
@@ -37,17 +37,17 @@ Actual: `+I.attribValue);else{var _e=I.tag,Ft=I.tags[I.tags.length-1]||I;_e.ns==
|
|
|
37
37
|
function encode_char(c) {
|
|
38
38
|
return _ENCODE_HTML_RULES[c] || c;
|
|
39
39
|
};
|
|
40
|
-
`;qr.escapeXML=function(e){return e==null?"":String(e).replace(
|
|
41
|
-
`+
|
|
40
|
+
`;qr.escapeXML=function(e){return e==null?"":String(e).replace(JX,ZX)};function $1(){return Function.prototype.toString.call(this)+`;
|
|
41
|
+
`+e3}o($1,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(qr.escapeXML,"toString",{value:$1}):qr.escapeXML.toString=$1}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}qr.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)yA(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};qr.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},e!=null)for(var i=0;i<n.length;i++){var r=n[i];if(typeof t[r]<"u"){if(!yA(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};qr.cache={_data:{},set:o(function(e,t){this._data[e]=t},"set"),get:o(function(e){return this._data[e]},"get"),remove:o(function(e){delete this._data[e]},"remove"),reset:o(function(){this._data={}},"reset")};qr.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};qr.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();qr.hasOwnOnlyObject=function(e){var t=qr.createNullProtoObjWherePossible();for(var n in e)yA(e,n)&&(t[n]=e[n]);return t}});var H1=ze((nie,t3)=>{t3.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.10",author:"Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",license:"Apache-2.0",bin:{ejs:"./bin/cli.js"},main:"./lib/ejs.js",jsdelivr:"ejs.min.js",unpkg:"ejs.min.js",repository:{type:"git",url:"git://github.com/mde/ejs.git"},bugs:"https://github.com/mde/ejs/issues",homepage:"https://github.com/mde/ejs",dependencies:{jake:"^10.8.5"},devDependencies:{browserify:"^16.5.1",eslint:"^6.8.0","git-directory-deploy":"^1.5.1",jsdoc:"^4.0.2","lru-cache":"^4.0.1",mocha:"^10.2.0","uglify-js":"^3.3.16"},engines:{node:">=0.10.0"},scripts:{test:"npx jake test"}}});var J1=ze(Et=>{"use strict";var vA=require("fs"),Qu=require("path"),Rn=B1(),G1=!1,n3=H1().version,i3="<",r3=">",o3="%",Y1="locals",a3="ejs",s3="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",z1=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],c3=z1.concat("cache"),W1=/^\uFEFF/,TA=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Et.cache=Rn.cache;Et.fileLoader=vA.readFileSync;Et.localsName=Y1;Et.promiseImpl=new Function("return this;")().Promise;Et.resolveInclude=function(e,t,n){var i=Qu.dirname,r=Qu.extname,a=Qu.resolve,s=a(n?t:i(t),e),l=r(e);return l||(s+=".ejs"),s};function K1(e,t){var n;if(t.some(function(i){return n=Et.resolveInclude(e,i,!0),vA.existsSync(n)}))return n}o(K1,"resolvePaths");function l3(e,t){var n,i,r=t.views,a=/^[A-Za-z]+:\\|^\//.exec(e);if(a&&a.length)e=e.replace(/^\/*/,""),Array.isArray(t.root)?n=K1(e,t.root):n=Et.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=Et.resolveInclude(e,t.filename),vA.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=K1(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}o(l3,"getIncludePath");function qu(e,t){var n,i=e.filename,r=arguments.length>1;if(e.cache){if(!i)throw new Error("cache option requires a filename");if(n=Et.cache.get(i),n)return n;r||(t=X1(i).toString().replace(W1,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=X1(i).toString().replace(W1,"")}return n=Et.compile(t,e),e.cache&&Et.cache.set(i,n),n}o(qu,"handleCache");function f3(e,t,n){var i;if(n){try{i=qu(e)(t)}catch(r){return n(r)}n(null,i)}else{if(typeof Et.promiseImpl=="function")return new Et.promiseImpl(function(r,a){try{i=qu(e)(t),r(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}o(f3,"tryHandleCache");function X1(e){return Et.fileLoader(e)}o(X1,"fileLoader");function u3(e,t){var n=Rn.shallowCopy(Rn.createNullProtoObjWherePossible(),t);if(n.filename=l3(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return qu(n,i.template)}return qu(n)}o(u3,"includeFile");function Q1(e,t,n,i,r){var a=t.split(`
|
|
42
42
|
`),s=Math.max(i-3,0),l=Math.min(a.length,i+3),u=r(n),p=a.slice(s,l).map(function(g,m){var h=m+s+1;return(h==i?" >> ":" ")+h+"| "+g}).join(`
|
|
43
43
|
`);throw e.path=u,e.message=(u||"ejs")+":"+i+`
|
|
44
44
|
`+p+`
|
|
45
45
|
|
|
46
|
-
`+e.message,e}o(Q1,"rethrow");function q1(e){return e.replace(/;(\s*$)/,"$1")}o(q1,"stripSemi");
|
|
46
|
+
`+e.message,e}o(Q1,"rethrow");function q1(e){return e.replace(/;(\s*$)/,"$1")}o(q1,"stripSemi");Et.compile=o(function(t,n){var i;return n&&n.scope&&(G1||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),G1=!0),n.context||(n.context=n.scope),delete n.scope),i=new Hn(t,n),i.compile()},"compile");Et.render=function(e,t,n){var i=t||Rn.createNullProtoObjWherePossible(),r=n||Rn.createNullProtoObjWherePossible();return arguments.length==2&&Rn.shallowCopyFromList(r,i,z1),qu(r,e)(i)};Et.renderFile=function(){var e=Array.prototype.slice.call(arguments),t=e.shift(),n,i={filename:t},r,a;return typeof arguments[arguments.length-1]=="function"&&(n=e.pop()),e.length?(r=e.shift(),e.length?Rn.shallowCopy(i,e.pop()):(r.settings&&(r.settings.views&&(i.views=r.settings.views),r.settings["view cache"]&&(i.cache=!0),a=r.settings["view options"],a&&Rn.shallowCopy(i,a)),Rn.shallowCopyFromList(i,r,c3)),i.filename=t):r=Rn.createNullProtoObjWherePossible(),f3(i,r,n)};Et.Template=Hn;Et.clearCache=function(){Et.cache.reset()};function Hn(e,t){var n=Rn.hasOwnOnlyObject(t),i=Rn.createNullProtoObjWherePossible();this.templateText=e,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",i.client=n.client||!1,i.escapeFunction=n.escape||n.escapeFunction||Rn.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||Et.openDelimiter||i3,i.closeDelimiter=n.closeDelimiter||Et.closeDelimiter||r3,i.delimiter=n.delimiter||Et.delimiter||o3,i.strict=n.strict||!1,i.context=n.context,i.cache=n.cache||!1,i.rmWhitespace=n.rmWhitespace,i.root=n.root,i.includer=n.includer,i.outputFunctionName=n.outputFunctionName,i.localsName=n.localsName||Et.localsName||Y1,i.views=n.views,i.async=n.async,i.destructuredLocals=n.destructuredLocals,i.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,i.strict?i._with=!1:i._with=typeof n._with<"u"?n._with:!0,this.opts=i,this.regex=this.createRegex()}o(Hn,"Template");Hn.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Hn.prototype={createRegex:o(function(){var e=s3,t=Rn.escapeRegExpChars(this.opts.delimiter),n=Rn.escapeRegExpChars(this.opts.openDelimiter),i=Rn.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,n).replace(/>/g,i),new RegExp(e)},"createRegex"),compile:o(function(){var e,t,n=this.opts,i="",r="",a=n.escapeFunction,s,l=n.filename?JSON.stringify(n.filename):"undefined";if(!this.source){if(this.generateSource(),i+=` var __output = "";
|
|
47
47
|
function __append(s) { if (s !== undefined && s !== null) __output += s }
|
|
48
|
-
`,n.outputFunctionName){if(!
|
|
49
|
-
`}if(n.localsName&&!
|
|
50
|
-
`,p=0;p<n.destructuredLocals.length;p++){var g=n.destructuredLocals[p];if(!
|
|
48
|
+
`,n.outputFunctionName){if(!TA.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
|
|
49
|
+
`}if(n.localsName&&!TA.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){for(var u=" var __locals = ("+n.localsName+` || {}),
|
|
50
|
+
`,p=0;p<n.destructuredLocals.length;p++){var g=n.destructuredLocals[p];if(!TA.test(g))throw new Error("destructuredLocals["+p+"] is not a valid JS identifier.");p>0&&(u+=`,
|
|
51
51
|
`),u+=g+" = __locals."+g}i+=u+`;
|
|
52
52
|
`}n._with!==!1&&(i+=" with ("+n.localsName+` || {}) {
|
|
53
53
|
`,r+=` }
|
|
@@ -68,7 +68,7 @@ try {
|
|
|
68
68
|
|
|
69
69
|
`,b.message+=`If the above error is not helpful, you may want to try EJS-Lint:
|
|
70
70
|
`,b.message+="https://github.com/RyanZim/EJS-Lint",n.async||(b.message+=`
|
|
71
|
-
`,b.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),b}var m=n.client?t:o(function(O){var N=o(function(M,G){var j=Rn.shallowCopy(Rn.createNullProtoObjWherePossible(),O);return G&&(j=Rn.shallowCopy(j,G)),
|
|
71
|
+
`,b.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),b}var m=n.client?t:o(function(O){var N=o(function(M,G){var j=Rn.shallowCopy(Rn.createNullProtoObjWherePossible(),O);return G&&(j=Rn.shallowCopy(j,G)),u3(M,n)(j)},"include");return t.apply(n.context,[O||Rn.createNullProtoObjWherePossible(),a,N,Q1])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var h=n.filename,S=Qu.basename(h,Qu.extname(h));try{Object.defineProperty(m,"name",{value:S,writable:!1,enumerable:!1,configurable:!0})}catch{}}return m},"compile"),generateSource:o(function(){var e=this.opts;e.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
|
|
72
72
|
`).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var t=this,n=this.parseTemplateText(),i=this.opts.delimiter,r=this.opts.openDelimiter,a=this.opts.closeDelimiter;n&&n.length&&n.forEach(function(s,l){var u;if(s.indexOf(r+i)===0&&s.indexOf(r+i+i)!==0&&(u=n[l+2],!(u==i+a||u=="-"+i+a||u=="_"+i+a)))throw new Error('Could not find matching close tag for "'+s+'".');t.scanLine(s)})},"generateSource"),parseTemplateText:o(function(){for(var e=this.templateText,t=this.regex,n=t.exec(e),i=[],r;n;)r=n.index,r!==0&&(i.push(e.substring(0,r)),e=e.slice(r)),i.push(n[0]),e=e.slice(n[0].length),n=t.exec(e);return e&&i.push(e),i},"parseTemplateText"),_addOutput:o(function(e){if(this.truncate&&(e=e.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!e)return e;e=e.replace(/\\/g,"\\\\"),e=e.replace(/\n/g,"\\n"),e=e.replace(/\r/g,"\\r"),e=e.replace(/"/g,'\\"'),this.source+=' ; __append("'+e+`")
|
|
73
73
|
`},"_addOutput"),scanLine:o(function(e){var t=this,n=this.opts.delimiter,i=this.opts.openDelimiter,r=this.opts.closeDelimiter,a=0;switch(a=e.split(`
|
|
74
74
|
`).length-1,e){case i+n:case i+n+"_":this.mode=Hn.modes.EVAL;break;case i+n+"=":this.mode=Hn.modes.ESCAPED;break;case i+n+"-":this.mode=Hn.modes.RAW;break;case i+n+"#":this.mode=Hn.modes.COMMENT;break;case i+n+n:this.mode=Hn.modes.LITERAL,this.source+=' ; __append("'+e.replace(i+n+n,i+n)+`")
|
|
@@ -79,7 +79,7 @@ try {
|
|
|
79
79
|
`;break;case Hn.modes.ESCAPED:this.source+=" ; __append(escapeFn("+q1(e)+`))
|
|
80
80
|
`;break;case Hn.modes.RAW:this.source+=" ; __append("+q1(e)+`)
|
|
81
81
|
`;break;case Hn.modes.COMMENT:break;case Hn.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&a&&(this.currentLine+=a,this.source+=" ; __line = "+this.currentLine+`
|
|
82
|
-
`)},"scanLine")};
|
|
82
|
+
`)},"scanLine")};Et.escapeXML=Rn.escapeXML;Et.__express=Et.renderFile;Et.VERSION=n3;Et.name=a3;typeof window<"u"&&(window.ejs=Et)});var Rp,pP=Ye(()=>{Rp="7.1.1"});function rt(e){return e&&e.length===0}function ki(e){return e==null?[]:Object.keys(e)}function wn(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++)t.push(e[n[i]]);return t}function iV(e,t){for(var n=[],i=ki(e),r=0;r<i.length;r++){var a=i[r];n.push(t.call(null,e[a],a))}return n}function de(e,t){for(var n=[],i=0;i<e.length;i++)n.push(t.call(null,e[i],i));return n}function Ln(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?t=t.concat(Ln(i)):t.push(i)}return t}function Ci(e){return rt(e)?void 0:e[0]}function hy(e){var t=e&&e.length;return t?e[t-1]:void 0}function Te(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t.call(null,e[n],n);else if(yy(e))for(var i=ki(e),n=0;n<i.length;n++){var r=i[n],a=e[r];t.call(null,a,r)}else throw Error("non exhaustive match")}function zr(e){return typeof e=="string"}function Ii(e){return e===void 0}function bo(e){return e instanceof Function}function Mn(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function Ls(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function Jr(e,t){var n=[];if(Array.isArray(e))for(var i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function Fa(e,t){return Jr(e,function(n){return!t(n)})}function xr(e,t){for(var n=Object.keys(e),i={},r=0;r<n.length;r++){var a=n[r],s=e[a];t(s)&&(i[a]=s)}return i}function Ie(e,t){return yy(e)?e.hasOwnProperty(t):!1}function Mt(e,t){return Da(e,function(n){return n===t})!==void 0}function An(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function Ns(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Da(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t.call(null,i))return i}}function rV(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function dn(e,t,n){for(var i=Array.isArray(e),r=i?e:wn(e),a=i?[]:ki(e),s=n,l=0;l<r.length;l++)s=t.call(null,s,r[l],i?l:a[l]);return s}function _a(e){return Fa(e,function(t){return t==null})}function Lp(e,t){t===void 0&&(t=o(function(i){return i},"identity"));var n=[];return dn(e,function(i,r){var a=t(r);return Mt(n,a)?i:(n.push(a),i.concat(r))},[])}function yle(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=[null],r=i.concat(t);return Function.bind.apply(e,r)}function ui(e){return Array.isArray(e)}function So(e){return e instanceof RegExp}function yy(e){return e instanceof Object}function pi(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function Kc(e,t){return Fa(e,function(n){return Mt(t,n)})}function Ty(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function oV(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function Tle(e,t){var n=An(e);return n.sort(function(i,r){return t(i)-t(r)}),n}function vle(e,t){if(e.length!==t.length)throw Error("can't zipObject with different number of keys and values!");for(var n={},i=0;i<e.length;i++)n[e[i]]=t[i];return n}function Cr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++)for(var r=t[i],a=ki(r),s=0;s<a.length;s++){var l=a[s];e[l]=r[l]}return e}function Q9(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++)for(var r=t[i],a=ki(r),s=0;s<a.length;s++){var l=a[s];Ie(e,l)||(e[l]=r[l])}return e}function Np(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Q9.apply(null,[{}].concat(e))}function aV(e,t){var n={};return Te(e,function(i){var r=t(i),a=n[r];a?a.push(i):n[r]=[i]}),n}function dP(e,t){for(var n=Ns(e),i=ki(t),r=0;r<i.length;r++){var a=i[r],s=t[a];n[a]=s}return n}function kn(){}function gP(e){return e}function sV(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(i!==void 0?i:void 0)}return t}function Fp(e){console&&console.error&&console.error("Error: "+e)}function vy(e){console&&console.warn&&console.warn("Warning: "+e)}function mP(){return typeof Map=="function"}function cV(e,t){t.forEach(function(n){var i=n.prototype;Object.getOwnPropertyNames(i).forEach(function(r){if(r!=="constructor"){var a=Object.getOwnPropertyDescriptor(i,r);a&&(a.get||a.set)?Object.defineProperty(e.prototype,r,a):e.prototype[r]=n.prototype[r]}})})}function by(toBecomeFast){function FakeConstructor(){}o(FakeConstructor,"FakeConstructor"),FakeConstructor.prototype=toBecomeFast;var fakeInstance=new FakeConstructor;function fakeAccess(){return typeof fakeInstance.bar}return o(fakeAccess,"fakeAccess"),fakeAccess(),fakeAccess(),toBecomeFast;eval(toBecomeFast)}function Dp(e){return e[e.length-1]}function Sy(e){var t=new Date().getTime(),n=e(),i=new Date().getTime(),r=i-t;return{time:r,value:n}}var bt=Ye(()=>{o(rt,"isEmpty");o(ki,"keys");o(wn,"values");o(iV,"mapValues");o(de,"map");o(Ln,"flatten");o(Ci,"first");o(hy,"last");o(Te,"forEach");o(zr,"isString");o(Ii,"isUndefined");o(bo,"isFunction");o(Mn,"drop");o(Ls,"dropRight");o(Jr,"filter");o(Fa,"reject");o(xr,"pick");o(Ie,"has");o(Mt,"contains");o(An,"cloneArr");o(Ns,"cloneObj");o(Da,"find");o(rV,"findAll");o(dn,"reduce");o(_a,"compact");o(Lp,"uniq");o(yle,"partial");o(ui,"isArray");o(So,"isRegExp");o(yy,"isObject");o(pi,"every");o(Kc,"difference");o(Ty,"some");o(oV,"indexOf");o(Tle,"sortBy");o(vle,"zipObject");o(Cr,"assign");o(Q9,"assignNoOverwrite");o(Np,"defaults");o(aV,"groupBy");o(dP,"merge");o(kn,"NOOP");o(gP,"IDENTITY");o(sV,"packArray");o(Fp,"PRINT_ERROR");o(vy,"PRINT_WARNING");o(mP,"isES2015MapSupported");o(cV,"applyMixins");o(by,"toFastProperties");o(Dp,"peek");o(Sy,"timer")});var Ey=ze((fV,Ay)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Ay=="object"&&Ay.exports?Ay.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:fV,function(){function e(){}o(e,"RegExpParser"),e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(b){this.idx=b.idx,this.input=b.input,this.groupIdx=b.groupIdx},e.prototype.pattern=function(b){this.idx=0,this.input=b,this.groupIdx=0,this.consumeChar("/");var O=this.disjunction();this.consumeChar("/");for(var N={type:"Flags",loc:{begin:this.idx,end:b.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(N,"global");break;case"i":s(N,"ignoreCase");break;case"m":s(N,"multiLine");break;case"u":s(N,"unicode");break;case"y":s(N,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:N,value:O,loc:this.loc(0)}},e.prototype.disjunction=function(){var b=[],O=this.idx;for(b.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),b.push(this.alternative());return{type:"Disjunction",value:b,loc:this.loc(O)}},e.prototype.alternative=function(){for(var b=[],O=this.idx;this.isTerm();)b.push(this.term());return{type:"Alternative",value:b,loc:this.loc(O)}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){var b=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(b)};case"$":return{type:"EndAnchor",loc:this.loc(b)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(b)};case"B":return{type:"NonWordBoundary",loc:this.loc(b)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");var O;switch(this.popChar()){case"=":O="Lookahead";break;case"!":O="NegativeLookahead";break}l(O);var N=this.disjunction();return this.consumeChar(")"),{type:O,value:N,loc:this.loc(b)}}u()},e.prototype.quantifier=function(b){var O,N=this.idx;switch(this.popChar()){case"*":O={atLeast:0,atMost:1/0};break;case"+":O={atLeast:1,atMost:1/0};break;case"?":O={atLeast:0,atMost:1};break;case"{":var M=this.integerIncludingZero();switch(this.popChar()){case"}":O={atLeast:M,atMost:M};break;case",":var G;this.isDigit()?(G=this.integerIncludingZero(),O={atLeast:M,atMost:G}):O={atLeast:M,atMost:1/0},this.consumeChar("}");break}if(b===!0&&O===void 0)return;l(O);break}if(!(b===!0&&O===void 0))return l(O),this.peekChar(0)==="?"?(this.consumeChar("?"),O.greedy=!1):O.greedy=!0,O.type="Quantifier",O.loc=this.loc(N),O},e.prototype.atom=function(){var b,O=this.idx;switch(this.peekChar()){case".":b=this.dotAll();break;case"\\":b=this.atomEscape();break;case"[":b=this.characterClass();break;case"(":b=this.group();break}return b===void 0&&this.isPatternCharacter()&&(b=this.patternCharacter()),l(b),b.loc=this.loc(O),this.isQuantifier()&&(b.quantifier=this.quantifier()),b},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[r(`
|
|
83
83
|
`),r("\r"),r("\u2028"),r("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){var b=this.positiveInteger();return{type:"GroupBackReference",value:b}},e.prototype.characterClassEscape=function(){var b,O=!1;switch(this.popChar()){case"d":b=g;break;case"D":b=g,O=!0;break;case"s":b=h;break;case"S":b=h,O=!0;break;case"w":b=m;break;case"W":b=m,O=!0;break}return l(b),{type:"Set",value:b,complement:O}},e.prototype.controlEscapeAtom=function(){var b;switch(this.popChar()){case"f":b=r("\f");break;case"n":b=r(`
|
|
84
84
|
`);break;case"r":b=r("\r");break;case"t":b=r(" ");break;case"v":b=r("\v");break}return l(b),{type:"Character",value:b}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var b=this.popChar();if(/[a-zA-Z]/.test(b)===!1)throw Error("Invalid ");var O=b.toUpperCase().charCodeAt(0)-64;return{type:"Character",value:O}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:r("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){var b=this.popChar();return{type:"Character",value:r(b)}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case`
|
|
85
85
|
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:var b=this.popChar();return{type:"Character",value:r(b)}}},e.prototype.characterClass=function(){var b=[],O=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),O=!0);this.isClassAtom();){var N=this.classAtom(),M=N.type==="Character";if(M&&this.isRangeDash()){this.consumeChar("-");var G=this.classAtom(),j=G.type==="Character";if(j){if(G.value<N.value)throw Error("Range out of order in character class");b.push({from:N.value,to:G.value})}else a(N.value,b),b.push(r("-")),a(G.value,b)}else a(N.value,b)}return this.consumeChar("]"),{type:"Set",complement:O,value:b}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case`
|
|
@@ -87,7 +87,7 @@ try {
|
|
|
87
87
|
`:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:r(b)}}},e.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},e.prototype.isRangeDash=function(){return this.peekChar()==="-"&&this.isClassAtom(1)},e.prototype.isDigit=function(){return n.test(this.peekChar(0))},e.prototype.isClassAtom=function(b){switch(b===void 0&&(b=0),this.peekChar(b)){case"]":case`
|
|
88
88
|
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},e.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},e.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!");default:return!1}},e.prototype.isQuantifier=function(){var b=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(b)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
|
|
89
89
|
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(b){for(var O="",N=0;N<b;N++){var M=this.popChar();if(t.test(M)===!1)throw Error("Expecting a HexDecimal digits");O+=M}var G=parseInt(O,16);return{type:"Character",value:G}},e.prototype.peekChar=function(b){return b===void 0&&(b=0),this.input[this.idx+b]},e.prototype.popChar=function(){var b=this.peekChar(0);return this.consumeChar(),b},e.prototype.consumeChar=function(b){if(b!==void 0&&this.input[this.idx]!==b)throw Error("Expected: '"+b+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++},e.prototype.loc=function(b){return{begin:b,end:this.idx}};var t=/[0-9a-fA-F]/,n=/[0-9]/,i=/[1-9]/;function r(b){return b.charCodeAt(0)}o(r,"cc");function a(b,O){b.length!==void 0?b.forEach(function(N){O.push(N)}):O.push(b)}o(a,"insertToSet");function s(b,O){if(b[O]===!0)throw"duplicate flag "+O;b[O]=!0}o(s,"addFlag");function l(b){if(b===void 0)throw Error("Internal Error - Should never get here!")}o(l,"ASSERT_EXISTS");function u(){throw Error("Internal Error - Should never get here!")}o(u,"ASSERT_NEVER_REACH_HERE");var p,g=[];for(p=r("0");p<=r("9");p++)g.push(p);var m=[r("_")].concat(g);for(p=r("a");p<=r("z");p++)m.push(p);for(p=r("A");p<=r("Z");p++)m.push(p);var h=[r(" "),r("\f"),r(`
|
|
90
|
-
`),r("\r"),r(" "),r("\v"),r(" "),r("\xA0"),r("\u1680"),r("\u2000"),r("\u2001"),r("\u2002"),r("\u2003"),r("\u2004"),r("\u2005"),r("\u2006"),r("\u2007"),r("\u2008"),r("\u2009"),r("\u200A"),r("\u2028"),r("\u2029"),r("\u202F"),r("\u205F"),r("\u3000"),r("\uFEFF")];function S(){}return o(S,"BaseRegExpVisitor"),S.prototype.visitChildren=function(b){for(var O in b){var N=b[O];b.hasOwnProperty(O)&&(N.type!==void 0?this.visit(N):Array.isArray(N)&&N.forEach(function(M){this.visit(M)},this))}},S.prototype.visit=function(b){switch(b.type){case"Pattern":this.visitPattern(b);break;case"Flags":this.visitFlags(b);break;case"Disjunction":this.visitDisjunction(b);break;case"Alternative":this.visitAlternative(b);break;case"StartAnchor":this.visitStartAnchor(b);break;case"EndAnchor":this.visitEndAnchor(b);break;case"WordBoundary":this.visitWordBoundary(b);break;case"NonWordBoundary":this.visitNonWordBoundary(b);break;case"Lookahead":this.visitLookahead(b);break;case"NegativeLookahead":this.visitNegativeLookahead(b);break;case"Character":this.visitCharacter(b);break;case"Set":this.visitSet(b);break;case"Group":this.visitGroup(b);break;case"GroupBackReference":this.visitGroupBackReference(b);break;case"Quantifier":this.visitQuantifier(b);break}this.visitChildren(b)},S.prototype.visitPattern=function(b){},S.prototype.visitFlags=function(b){},S.prototype.visitDisjunction=function(b){},S.prototype.visitAlternative=function(b){},S.prototype.visitStartAnchor=function(b){},S.prototype.visitEndAnchor=function(b){},S.prototype.visitWordBoundary=function(b){},S.prototype.visitNonWordBoundary=function(b){},S.prototype.visitLookahead=function(b){},S.prototype.visitNegativeLookahead=function(b){},S.prototype.visitCharacter=function(b){},S.prototype.visitSet=function(b){},S.prototype.visitGroup=function(b){},S.prototype.visitGroupBackReference=function(b){},S.prototype.visitQuantifier=function(b){},{RegExpParser:e,BaseRegExpVisitor:S,VERSION:"0.5.0"}})});function lf(e){var t=e.toString();if(Py.hasOwnProperty(t))return Py[t];var n=
|
|
90
|
+
`),r("\r"),r(" "),r("\v"),r(" "),r("\xA0"),r("\u1680"),r("\u2000"),r("\u2001"),r("\u2002"),r("\u2003"),r("\u2004"),r("\u2005"),r("\u2006"),r("\u2007"),r("\u2008"),r("\u2009"),r("\u200A"),r("\u2028"),r("\u2029"),r("\u202F"),r("\u205F"),r("\u3000"),r("\uFEFF")];function S(){}return o(S,"BaseRegExpVisitor"),S.prototype.visitChildren=function(b){for(var O in b){var N=b[O];b.hasOwnProperty(O)&&(N.type!==void 0?this.visit(N):Array.isArray(N)&&N.forEach(function(M){this.visit(M)},this))}},S.prototype.visit=function(b){switch(b.type){case"Pattern":this.visitPattern(b);break;case"Flags":this.visitFlags(b);break;case"Disjunction":this.visitDisjunction(b);break;case"Alternative":this.visitAlternative(b);break;case"StartAnchor":this.visitStartAnchor(b);break;case"EndAnchor":this.visitEndAnchor(b);break;case"WordBoundary":this.visitWordBoundary(b);break;case"NonWordBoundary":this.visitNonWordBoundary(b);break;case"Lookahead":this.visitLookahead(b);break;case"NegativeLookahead":this.visitNegativeLookahead(b);break;case"Character":this.visitCharacter(b);break;case"Set":this.visitSet(b);break;case"Group":this.visitGroup(b);break;case"GroupBackReference":this.visitGroupBackReference(b);break;case"Quantifier":this.visitQuantifier(b);break}this.visitChildren(b)},S.prototype.visitPattern=function(b){},S.prototype.visitFlags=function(b){},S.prototype.visitDisjunction=function(b){},S.prototype.visitAlternative=function(b){},S.prototype.visitStartAnchor=function(b){},S.prototype.visitEndAnchor=function(b){},S.prototype.visitWordBoundary=function(b){},S.prototype.visitNonWordBoundary=function(b){},S.prototype.visitLookahead=function(b){},S.prototype.visitNegativeLookahead=function(b){},S.prototype.visitCharacter=function(b){},S.prototype.visitSet=function(b){},S.prototype.visitGroup=function(b){},S.prototype.visitGroupBackReference=function(b){},S.prototype.visitQuantifier=function(b){},{RegExpParser:e,BaseRegExpVisitor:S,VERSION:"0.5.0"}})});function lf(e){var t=e.toString();if(Py.hasOwnProperty(t))return Py[t];var n=q9.pattern(t);return Py[t]=n,n}function pV(){Py={}}var uV,Py,q9,xy=Ye(()=>{uV=te(Ey()),Py={},q9=new uV.RegExpParser;o(lf,"getRegExpAst");o(pV,"clearRegExpParserCache")});function mV(e,t){t===void 0&&(t=!1);try{var n=lf(e),i=hP(n.value,{},n.flags.ignoreCase);return i}catch(a){if(a.message===gV)t&&vy(""+_p+(" Unable to optimize: < "+e.toString()+` >
|
|
91
91
|
`)+` Complement Sets cannot be automatically optimized.
|
|
92
92
|
This will disable the lexer's first char optimizations.
|
|
93
93
|
See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{var r="";t&&(r=`
|
|
@@ -95,43 +95,43 @@ try {
|
|
|
95
95
|
See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),Fp(_p+`
|
|
96
96
|
`+(" Failed parsing: < "+e.toString()+` >
|
|
97
97
|
`)+(" Using the regexp-to-ast library version: "+Iy.VERSION+`
|
|
98
|
-
`)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function hP(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)hP(e.value[i],t,n);break;case"Alternative":for(var r=e.value,i=0;i<r.length;i++){var a=r[i];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var s=a;switch(s.type){case"Character":Cy(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(gV);Te(s.value,function(p){if(typeof p=="number")Cy(p,t,n);else{var g=p;if(n===!0)for(var m=g.from;m<=g.to;m++)Cy(m,t,n);else{for(var m=g.from;m<=g.to&&m<ff;m++)Cy(m,t,n);if(g.to>=ff)for(var h=g.from>=ff?g.from:ff,S=g.to,b=qo(h),O=qo(S),N=b;N<=O;N++)t[N]=N}}});break;case"Group":hP(s.value,t,n);break;default:throw Error("Non Exhaustive Match")}var l=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&yP(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return wn(t)}function Cy(e,t,n){var i=qo(e);t[i]=i,n===!0&&
|
|
99
|
-
`;o(mV,"getOptimizedStartCodesIndices");o(hP,"firstCharOptimizedIndices");o(Cy,"addOptimizedIdxToResult");o(
|
|
100
|
-
`],tracer:o(function(G,j){return j()},"tracer")});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){
|
|
98
|
+
`)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function hP(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)hP(e.value[i],t,n);break;case"Alternative":for(var r=e.value,i=0;i<r.length;i++){var a=r[i];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var s=a;switch(s.type){case"Character":Cy(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(gV);Te(s.value,function(p){if(typeof p=="number")Cy(p,t,n);else{var g=p;if(n===!0)for(var m=g.from;m<=g.to;m++)Cy(m,t,n);else{for(var m=g.from;m<=g.to&&m<ff;m++)Cy(m,t,n);if(g.to>=ff)for(var h=g.from>=ff?g.from:ff,S=g.to,b=qo(h),O=qo(S),N=b;N<=O;N++)t[N]=N}}});break;case"Group":hP(s.value,t,n);break;default:throw Error("Non Exhaustive Match")}var l=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&yP(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return wn(t)}function Cy(e,t,n){var i=qo(e);t[i]=i,n===!0&&z9(e,t)}function z9(e,t){var n=String.fromCharCode(e),i=n.toUpperCase();if(i!==n){var r=qo(i.charCodeAt(0));t[r]=r}else{var a=n.toLowerCase();if(a!==n){var r=qo(a.charCodeAt(0));t[r]=r}}}function dV(e,t){return Da(e.value,function(n){if(typeof n=="number")return Mt(t,n);var i=n;return Da(t,function(r){return i.from<=r&&r<=i.to})!==void 0})}function yP(e){return e.quantifier&&e.quantifier.atLeast===0?!0:e.value?ui(e.value)?pi(e.value,yP):yP(e.value):!1}function Oy(e,t){if(t instanceof RegExp){var n=lf(t),i=new J9(e);return i.visit(n),i.found}else return Da(t,function(r){return Mt(e,r.charCodeAt(0))})!==void 0}var Iy,Y9,gV,_p,J9,hV=Ye(()=>{Iy=te(Ey());bt();xy();TP();Y9=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),gV="Complement Sets are not supported for first char optimization",_p=`Unable to use "first char" lexer optimizations:
|
|
99
|
+
`;o(mV,"getOptimizedStartCodesIndices");o(hP,"firstCharOptimizedIndices");o(Cy,"addOptimizedIdxToResult");o(z9,"handleIgnoreCase");o(dV,"findCode");o(yP,"isWholeOptional");J9=function(e){Y9(t,e);function t(n){var i=e.call(this)||this;return i.targetCharCodes=n,i.found=!1,i}return o(t,"CharCodeFinder"),t.prototype.visitChildren=function(n){if(this.found!==!0){switch(n.type){case"Lookahead":this.visitLookahead(n);return;case"NegativeLookahead":this.visitNegativeLookahead(n);return}e.prototype.visitChildren.call(this,n)}},t.prototype.visitCharacter=function(n){Mt(this.targetCharCodes,n.value)&&(this.found=!0)},t.prototype.visitSet=function(n){n.complement?dV(n,this.targetCharCodes)===void 0&&(this.found=!0):dV(n,this.targetCharCodes)!==void 0&&(this.found=!0)},t}(Iy.BaseRegExpVisitor);o(Oy,"canMatchCharCode")});function bV(e,t){t=Np(t,{useSticky:SP,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
|
|
100
|
+
`],tracer:o(function(G,j){return j()},"tracer")});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){h6()});var i;n("Reject Lexer.NA",function(){i=Fa(e,function(G){return G[Yo]===Ui.NA})});var r=!1,a;n("Transform Patterns",function(){r=!1,a=de(i,function(G){var j=G[Yo];if(So(j)){var re=j.source;return re.length===1&&re!=="^"&&re!=="$"&&re!=="."&&!j.ignoreCase?re:re.length===2&&re[0]==="\\"&&!Mt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],re[1])?re[1]:t.useSticky?TV(j):yV(j)}else{if(bo(j))return r=!0,{exec:j};if(Ie(j,"exec"))return r=!0,j;if(typeof j=="string"){if(j.length===1)return j;var Z=j.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),oe=new RegExp(Z);return t.useSticky?TV(oe):yV(oe)}else throw Error("non exhaustive match")}})});var s,l,u,p,g;n("misc mapping",function(){s=de(i,function(G){return G.tokenTypeIdx}),l=de(i,function(G){var j=G.GROUP;if(j!==Ui.SKIPPED){if(zr(j))return j;if(Ii(j))return!1;throw Error("non exhaustive match")}}),u=de(i,function(G){var j=G.LONGER_ALT;if(j){var re=oV(i,j);return re}}),p=de(i,function(G){return G.PUSH_MODE}),g=de(i,function(G){return Ie(G,"POP_MODE")})});var m;n("Line Terminator Handling",function(){var G=OV(t.lineTerminatorCharacters);m=de(i,function(j){return!1}),t.positionTracking!=="onlyOffset"&&(m=de(i,function(j){if(Ie(j,"LINE_BREAKS"))return j.LINE_BREAKS;if(IV(j,G)===!1)return Oy(G,j.PATTERN)}))});var h,S,b,O;n("Misc Mapping #2",function(){h=de(i,xV),S=de(a,g6),b=dn(i,function(G,j){var re=j.GROUP;return zr(re)&&re!==Ui.SKIPPED&&(G[re]=[]),G},{}),O=de(a,function(G,j){return{pattern:a[j],longerAlt:u[j],canLineTerminator:m[j],isCustom:h[j],short:S[j],group:l[j],push:p[j],pop:g[j],tokenTypeIdx:s[j],tokenType:i[j]}})});var N=!0,M=[];return t.safeMode||n("First Char Optimization",function(){M=dn(i,function(G,j,re){if(typeof j.PATTERN=="string"){var Z=j.PATTERN.charCodeAt(0),oe=qo(Z);vP(G,oe,O[re])}else if(ui(j.START_CHARS_HINT)){var Pe;Te(j.START_CHARS_HINT,function(pt){var yt=typeof pt=="string"?pt.charCodeAt(0):pt,je=qo(yt);Pe!==je&&(Pe=je,vP(G,je,O[re]))})}else if(So(j.PATTERN))if(j.PATTERN.unicode)N=!1,t.ensureOptimizations&&Fp(""+_p+(" Unable to analyze < "+j.PATTERN.toString()+` > pattern.
|
|
101
101
|
`)+` The regexp unicode flag is not currently supported by the regexp-to-ast library.
|
|
102
102
|
This will disable the lexer's first char optimizations.
|
|
103
|
-
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{var D=mV(j.PATTERN,t.ensureOptimizations);rt(D)&&(N=!1),Te(D,function(
|
|
103
|
+
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{var D=mV(j.PATTERN,t.ensureOptimizations);rt(D)&&(N=!1),Te(D,function(pt){vP(G,pt,O[re])})}else t.ensureOptimizations&&Fp(""+_p+(" TokenType: <"+j.name+`> is using a custom token pattern without providing <start_chars_hint> parameter.
|
|
104
104
|
`)+` This will disable the lexer's first char optimizations.
|
|
105
|
-
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),N=!1;return G},[])}),n("ArrayPacking",function(){M=sV(M)}),{emptyGroups:b,patternIdxToConfig:O,charCodeToPatternIdxToConfig:M,hasCustom:r,canBeOptimized:N}}function SV(e,t){var n=[],i=
|
|
105
|
+
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),N=!1;return G},[])}),n("ArrayPacking",function(){M=sV(M)}),{emptyGroups:b,patternIdxToConfig:O,charCodeToPatternIdxToConfig:M,hasCustom:r,canBeOptimized:N}}function SV(e,t){var n=[],i=e6(e);n=n.concat(i.errors);var r=t6(i.valid),a=r.valid;return n=n.concat(r.errors),n=n.concat(Z9(a)),n=n.concat(l6(a)),n=n.concat(f6(a,t)),n=n.concat(u6(a)),n}function Z9(e){var t=[],n=Jr(e,function(i){return So(i[Yo])});return t=t.concat(i6(n)),t=t.concat(a6(n)),t=t.concat(s6(n)),t=t.concat(c6(n)),t=t.concat(r6(n)),t}function e6(e){var t=Jr(e,function(r){return!Ie(r,Yo)}),n=de(t,function(r){return{message:"Token Type: ->"+r.name+"<- missing static 'PATTERN' property",type:gn.MISSING_PATTERN,tokenTypes:[r]}}),i=Kc(e,t);return{errors:n,valid:i}}function t6(e){var t=Jr(e,function(r){var a=r[Yo];return!So(a)&&!bo(a)&&!Ie(a,"exec")&&!zr(a)}),n=de(t,function(r){return{message:"Token Type: ->"+r.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:gn.INVALID_PATTERN,tokenTypes:[r]}}),i=Kc(e,t);return{errors:n,valid:i}}function i6(e){var t=function(r){vV(a,r);function a(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return o(a,"EndAnchorFinder"),a.prototype.visitEndAnchor=function(s){this.found=!0},a}(bP.BaseRegExpVisitor),n=Jr(e,function(r){var a=r[Yo];try{var s=lf(a),l=new t;return l.visit(s),l.found}catch{return n6.test(a.source)}}),i=de(n,function(r){return{message:`Unexpected RegExp Anchor Error:
|
|
106
106
|
Token Type: ->`+r.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
|
|
107
|
-
See sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:gn.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function
|
|
107
|
+
See sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:gn.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function r6(e){var t=Jr(e,function(i){var r=i[Yo];return r.test("")}),n=de(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' must not match an empty string",type:gn.EMPTY_MATCH_PATTERN,tokenTypes:[i]}});return n}function a6(e){var t=function(r){vV(a,r);function a(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return o(a,"StartAnchorFinder"),a.prototype.visitStartAnchor=function(s){this.found=!0},a}(bP.BaseRegExpVisitor),n=Jr(e,function(r){var a=r[Yo];try{var s=lf(a),l=new t;return l.visit(s),l.found}catch{return o6.test(a.source)}}),i=de(n,function(r){return{message:`Unexpected RegExp Anchor Error:
|
|
108
108
|
Token Type: ->`+r.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
|
|
109
|
-
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:gn.SOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function
|
|
109
|
+
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:gn.SOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function s6(e){var t=Jr(e,function(i){var r=i[Yo];return r instanceof RegExp&&(r.multiline||r.global)}),n=de(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:gn.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}});return n}function c6(e){var t=[],n=de(e,function(a){return dn(e,function(s,l){return a.PATTERN.source===l.PATTERN.source&&!Mt(t,l)&&l.PATTERN!==Ui.NA&&(t.push(l),s.push(l)),s},[])});n=_a(n);var i=Jr(n,function(a){return a.length>1}),r=de(i,function(a){var s=de(a,function(u){return u.name}),l=Ci(a).PATTERN;return{message:"The same RegExp pattern ->"+l+"<-"+("has been used in all of the following Token Types: "+s.join(", ")+" <-"),type:gn.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}});return r}function l6(e){var t=Jr(e,function(i){if(!Ie(i,"GROUP"))return!1;var r=i.GROUP;return r!==Ui.SKIPPED&&r!==Ui.NA&&!zr(r)}),n=de(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:gn.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}});return n}function f6(e,t){var n=Jr(e,function(r){return r.PUSH_MODE!==void 0&&!Mt(t,r.PUSH_MODE)}),i=de(n,function(r){var a="Token Type: ->"+r.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+r.PUSH_MODE+"<-which does not exist";return{message:a,type:gn.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[r]}});return i}function u6(e){var t=[],n=dn(e,function(i,r,a){var s=r.PATTERN;return s===Ui.NA||(zr(s)?i.push({str:s,idx:a,tokenType:r}):So(s)&&d6(s)&&i.push({str:s.source,idx:a,tokenType:r})),i},[]);return Te(e,function(i,r){Te(n,function(a){var s=a.str,l=a.idx,u=a.tokenType;if(r<l&&p6(s,i.PATTERN)){var p="Token: ->"+u.name+`<- can never be matched.
|
|
110
110
|
`+("Because it appears AFTER the Token Type ->"+i.name+"<-")+`in the lexer's definition.
|
|
111
|
-
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:p,type:gn.UNREACHABLE_PATTERN,tokenTypes:[i,u]})}})}),t}function
|
|
111
|
+
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:p,type:gn.UNREACHABLE_PATTERN,tokenTypes:[i,u]})}})}),t}function p6(e,t){if(So(t)){var n=t.exec(e);return n!==null&&n.index===0}else{if(bo(t))return t(e,0,[],{});if(Ie(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function d6(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return Da(t,function(n){return e.source.indexOf(n)!==-1})===void 0}function yV(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function TV(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function AV(e,t,n){var i=[];return Ie(e,Fs)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Fs+`> property in its definition
|
|
112
112
|
`,type:gn.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Ie(e,Ry)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Ry+`> property in its definition
|
|
113
113
|
`,type:gn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Ie(e,Ry)&&Ie(e,Fs)&&!Ie(e.modes,e.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+Fs+": <"+e.defaultMode+`>which does not exist
|
|
114
114
|
`,type:gn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Ie(e,Ry)&&Te(e.modes,function(r,a){Te(r,function(s,l){Ii(s)&&i.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+("<"+a+"> at index: <"+l+`>
|
|
115
|
-
`),type:gn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function
|
|
115
|
+
`),type:gn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function EV(e,t,n){var i=[],r=!1,a=_a(Ln(iV(e.modes,function(u){return u}))),s=Fa(a,function(u){return u[Yo]===Ui.NA}),l=OV(n);return t&&Te(s,function(u){var p=IV(u,l);if(p!==!1){var g=m6(u,p),m={message:g,type:p.issue,tokenType:u};i.push(m)}else Ie(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(r=!0):Oy(l,u.PATTERN)&&(r=!0)}),t&&!r&&i.push({message:`Warning: No LINE_BREAKS Found.
|
|
116
116
|
This Lexer has been defined to track line and column information,
|
|
117
117
|
But none of the Token Types can be identified as matching a line terminator.
|
|
118
118
|
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
|
|
119
|
-
for details.`,type:gn.NO_LINE_BREAKS_FLAGS}),i}function PV(e){var t={},n=ki(e);return Te(n,function(i){var r=e[i];if(ui(r))t[i]=[];else throw Error("non exhaustive match")}),t}function xV(e){var t=e.PATTERN;if(So(t))return!1;if(bo(t))return!0;if(Ie(t,"exec"))return!0;if(zr(t))return!1;throw Error("non exhaustive match")}function
|
|
119
|
+
for details.`,type:gn.NO_LINE_BREAKS_FLAGS}),i}function PV(e){var t={},n=ki(e);return Te(n,function(i){var r=e[i];if(ui(r))t[i]=[];else throw Error("non exhaustive match")}),t}function xV(e){var t=e.PATTERN;if(So(t))return!1;if(bo(t))return!0;if(Ie(t,"exec"))return!0;if(zr(t))return!1;throw Error("non exhaustive match")}function g6(e){return zr(e)&&e.length===1?e.charCodeAt(0):!1}function IV(e,t){if(Ie(e,"LINE_BREAKS"))return!1;if(So(e.PATTERN)){try{Oy(t,e.PATTERN)}catch(n){return{issue:gn.IDENTIFY_TERMINATOR,errMsg:n.message}}return!1}else{if(zr(e.PATTERN))return!1;if(xV(e))return{issue:gn.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function m6(e,t){if(t.issue===gn.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
|
|
120
120
|
`+(" The problem is in the <"+e.name+`> Token Type
|
|
121
121
|
`)+(" Root cause: "+t.errMsg+`.
|
|
122
122
|
`)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(t.issue===gn.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
|
|
123
123
|
`+(" The problem is in the <"+e.name+`> Token Type
|
|
124
|
-
`)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function OV(e){var t=de(e,function(n){return zr(n)&&n.length>0?n.charCodeAt(0):n});return t}function vP(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function qo(e){return e<ff?e:Ly[e]}function
|
|
124
|
+
`)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function OV(e){var t=de(e,function(n){return zr(n)&&n.length>0?n.charCodeAt(0):n});return t}function vP(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function qo(e){return e<ff?e:Ly[e]}function h6(){if(rt(Ly)){Ly=new Array(65536);for(var e=0;e<65536;e++)Ly[e]=e>255?255+~~(e/255):e}}var bP,vV,Yo,Fs,Ry,SP,n6,o6,CV,ff,Ly,TP=Ye(()=>{bP=te(Ey());Vp();bt();hV();xy();vV=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Yo="PATTERN",Fs="defaultMode",Ry="modes",SP=typeof new RegExp("(?:)").sticky=="boolean";o(bV,"analyzeTokenTypes");o(SV,"validatePatterns");o(Z9,"validateRegExpPattern");o(e6,"findMissingPatterns");o(t6,"findInvalidPatterns");n6=/[^\\][\$]/;o(i6,"findEndOfInputAnchor");o(r6,"findEmptyMatchRegExps");o6=/[^\\[][\^]|^\^/;o(a6,"findStartOfInputAnchor");o(s6,"findUnsupportedFlags");o(c6,"findDuplicatePatterns");o(l6,"findInvalidGroupType");o(f6,"findModesThatDoNotExist");o(u6,"findUnreachablePatterns");o(p6,"testTokenType");o(d6,"noMetaChar");o(yV,"addStartOfInput");o(TV,"addStickyFlag");o(AV,"performRuntimeChecks");o(EV,"performWarningRuntimeChecks");o(PV,"cloneEmptyGroups");o(xV,"isCustomPattern");o(g6,"isShortPattern");CV={test:o(function(e){for(var t=e.length,n=this.lastIndex;n<t;n++){var i=e.charCodeAt(n);if(i===10)return this.lastIndex=n+1,!0;if(i===13)return e.charCodeAt(n+1)===10?this.lastIndex=n+2:this.lastIndex=n+1,!0}return!1},"test"),lastIndex:0};o(IV,"checkLineBreaksIssues");o(m6,"buildLineBreakIssueMessage");o(OV,"getCharCodes");o(vP,"addToMapOfArrays");ff=256;o(qo,"charCodeToOptimizedIndex");Ly=[];o(h6,"initCharCodeToOptimizedIndexMap")});function Xc(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}function uf(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function Va(e){var t=y6(e);T6(t),b6(t),v6(t),Te(t,function(n){n.isParent=n.categoryMatches.length>0})}function y6(e){for(var t=An(e),n=e,i=!0;i;){n=_a(Ln(de(n,function(a){return a.CATEGORIES})));var r=Kc(n,t);t=t.concat(r),rt(r)?i=!1:n=r}return t}function T6(e){Te(e,function(t){AP(t)||(NV[RV]=t,t.tokenTypeIdx=RV++),LV(t)&&!ui(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),LV(t)||(t.CATEGORIES=[]),S6(t)||(t.categoryMatches=[]),A6(t)||(t.categoryMatchesMap={})})}function v6(e){Te(e,function(t){t.categoryMatches=[],Te(t.categoryMatchesMap,function(n,i){t.categoryMatches.push(NV[i].tokenTypeIdx)})})}function b6(e){Te(e,function(t){FV([],t)})}function FV(e,t){Te(e,function(n){t.categoryMatchesMap[n.tokenTypeIdx]=!0}),Te(t.CATEGORIES,function(n){var i=e.concat(t);Mt(i,n)||FV(i,n)})}function AP(e){return Ie(e,"tokenTypeIdx")}function LV(e){return Ie(e,"CATEGORIES")}function S6(e){return Ie(e,"categoryMatches")}function A6(e){return Ie(e,"categoryMatchesMap")}function DV(e){return Ie(e,"tokenTypeIdx")}var RV,NV,pf=Ye(()=>{bt();o(Xc,"tokenStructuredMatcher");o(uf,"tokenStructuredMatcherNoCategories");RV=1,NV={};o(Va,"augmentTokenTypes");o(y6,"expandCategories");o(T6,"assignTokenDefaultProps");o(v6,"assignCategoriesTokensProp");o(b6,"assignCategoriesMapProp");o(FV,"singleAssignCategoriesToksMap");o(AP,"hasShortKeyProperty");o(LV,"hasCategoriesProperty");o(S6,"hasExtendingTokensTypesProperty");o(A6,"hasExtendingTokensTypesMapProperty");o(DV,"isTokenType")});var Ny,EP=Ye(()=>{Ny={buildUnableToPopLexerModeMessage:o(function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},"buildUnableToPopLexerModeMessage"),buildUnexpectedCharactersMessage:o(function(e,t,n,i,r){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+","+(" skipped "+n+" characters.")},"buildUnexpectedCharactersMessage")}});var gn,wp,Ui,Vp=Ye(()=>{TP();bt();pf();EP();xy();(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"})(gn||(gn={}));wp={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
|
|
125
125
|
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Ny,traceInitPerf:!1,skipValidations:!1};Object.freeze(wp);Ui=function(){function e(t,n){var i=this;if(n===void 0&&(n=wp),this.lexerDefinition=t,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},typeof n=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
|
|
126
126
|
a boolean 2nd argument is no longer supported`);this.config=dP(wp,n);var r=this.config.traceInitPerf;r===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof r=="number"&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",function(){var a,s=!0;i.TRACE_INIT("Lexer Config handling",function(){if(i.config.lineTerminatorsPattern===wp.lineTerminatorsPattern)i.config.lineTerminatorsPattern=CV;else if(i.config.lineTerminatorCharacters===wp.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
|
|
127
|
-
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(n.safeMode&&n.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');i.trackStartLines=/full|onlyStart/i.test(i.config.positionTracking),i.trackEndLines=/full/i.test(i.config.positionTracking),ui(t)?(a={modes:{}},a.modes[Fs]=
|
|
127
|
+
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(n.safeMode&&n.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');i.trackStartLines=/full|onlyStart/i.test(i.config.positionTracking),i.trackEndLines=/full/i.test(i.config.positionTracking),ui(t)?(a={modes:{}},a.modes[Fs]=An(t),a[Fs]=Fs):(s=!1,a=Ns(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(AV(a,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat(EV(a,i.trackStartLines,i.config.lineTerminatorCharacters))})),a.modes=a.modes?a.modes:{},Te(a.modes,function(g,m){a.modes[m]=Fa(g,function(h){return Ii(h)})});var l=ki(a.modes);if(Te(a.modes,function(g,m){i.TRACE_INIT("Mode: <"+m+"> processing",function(){if(i.modes.push(m),i.config.skipValidations===!1&&i.TRACE_INIT("validatePatterns",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(SV(g,l))}),rt(i.lexerDefinitionErrors)){Va(g);var h;i.TRACE_INIT("analyzeTokenTypes",function(){h=bV(g,{lineTerminatorCharacters:i.config.lineTerminatorCharacters,positionTracking:n.positionTracking,ensureOptimizations:n.ensureOptimizations,safeMode:n.safeMode,tracer:i.TRACE_INIT.bind(i)})}),i.patternIdxToConfig[m]=h.patternIdxToConfig,i.charCodeToPatternIdxToConfig[m]=h.charCodeToPatternIdxToConfig,i.emptyGroups=dP(i.emptyGroups,h.emptyGroups),i.hasCustom=h.hasCustom||i.hasCustom,i.canModeBeOptimized[m]=h.canBeOptimized}})}),i.defaultMode=a.defaultMode,!rt(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling){var u=de(i.lexerDefinitionErrors,function(g){return g.message}),p=u.join(`-----------------------
|
|
128
128
|
`);throw new Error(`Errors detected in definition of Lexer:
|
|
129
129
|
`+p)}Te(i.lexerDefinitionWarning,function(g){vy(g.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(SP?(i.chopInput=gP,i.match=i.matchWithTest):(i.updateLastIndex=kn,i.match=i.matchWithExec),s&&(i.handleModes=kn),i.trackStartLines===!1&&(i.computeNewColumn=gP),i.trackEndLines===!1&&(i.updateTokenEndLineColumnLocation=kn),/full/i.test(i.config.positionTracking))i.createTokenInstance=i.createFullToken;else if(/onlyStart/i.test(i.config.positionTracking))i.createTokenInstance=i.createStartOnlyToken;else if(/onlyOffset/i.test(i.config.positionTracking))i.createTokenInstance=i.createOffsetOnlyToken;else throw Error('Invalid <positionTracking> config option: "'+i.config.positionTracking+'"');i.hasCustom?(i.addToken=i.addTokenUsingPush,i.handlePayload=i.handlePayloadWithCustom):(i.addToken=i.addTokenUsingMemberAccess,i.handlePayload=i.handlePayloadNoCustom)}),i.TRACE_INIT("Failed Optimization Warnings",function(){var g=dn(i.canModeBeOptimized,function(m,h,S){return h===!1&&m.push(S),m},[]);if(n.ensureOptimizations&&!rt(g))throw Error("Lexer Modes: < "+g.join(", ")+` > cannot be optimized.
|
|
130
130
|
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
|
|
131
131
|
Or inspect the console log for details on how to resolve these issues.`)}),i.TRACE_INIT("clearRegExpParserCache",function(){pV()}),i.TRACE_INIT("toFastProperties",function(){by(i)})})}return o(e,"Lexer"),e.prototype.tokenize=function(t,n){if(n===void 0&&(n=this.defaultMode),!rt(this.lexerDefinitionErrors)){var i=de(this.lexerDefinitionErrors,function(s){return s.message}),r=i.join(`-----------------------
|
|
132
132
|
`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
|
|
133
|
-
`+r)}var a=this.tokenizeInternal(t,n);return a},e.prototype.tokenizeInternal=function(t,n){var i=this,r,a,s,l,u,p,g,m,h,S,b,O,N,M,G,j=t,re=j.length,Z=0,oe=0,Pe=this.hasCustom?0:Math.floor(t.length/10),D=new Array(Pe),
|
|
134
|
-
See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Ie(e,_V)&&(n.CATEGORIES=e[_V]),Va([n]),Ie(e,VV)&&(n.LABEL=e[VV]),Ie(e,wV)&&(n.GROUP=e[wV]),Ie(e,kV)&&(n.POP_MODE=e[kV]),Ie(e,MV)&&(n.PUSH_MODE=e[MV]),Ie(e,UV)&&(n.LONGER_ALT=e[UV]),Ie(e,jV)&&(n.LINE_BREAKS=e[jV]),Ie(e,$V)&&(n.START_CHARS_HINT=e[$V]),n}function Ds(e,t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:i,startLine:r,endLine:a,startColumn:s,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function HV(e,t){return Xc(e,t)}var E6,_V,VV,wV,MV,kV,UV,jV,$V,Zr,_s=Ye(()=>{bt();Vp();pf();o(zo,"tokenLabel");o(BV,"tokenName");o(PP,"hasTokenLabel");E6="parent",_V="categories",VV="label",wV="group",MV="push_mode",kV="pop_mode",UV="longer_alt",jV="line_breaks",$V="start_chars_hint";o(Mp,"createToken");o(A6,"createTokenInternal");Zr=Mp({name:"EOF",pattern:Ui.NA});Va([Zr]);o(Ds,"createTokenInstance");o(HV,"tokenMatcher")});function Fy(e){return de(e,df)}function df(e){function t(r){return de(r,df)}if(o(t,"convertDefinition"),e instanceof an)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof en)return{type:"Alternative",definition:t(e.definition)};if(e instanceof sn)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Nn)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Fn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:df(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof An)return{type:"RepetitionWithSeparator",idx:e.idx,separator:df(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Rt)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Pn)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof ht){var n={type:"Terminal",name:e.terminalType.name,label:zo(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=So(i)?i.source:i),n}else{if(e instanceof Ir)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var wa,Eo,an,Ir,en,sn,Nn,Fn,Rt,An,Pn,ht,ji=Ye(()=>{bt();_s();wa=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Eo=function(){function e(t){this._definition=t}return o(e,"AbstractProduction"),Object.defineProperty(e.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(t){this._definition=t},"set"),enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this),Te(this.definition,function(n){n.accept(t)})},e}(),an=function(e){wa(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,Cr(i,xr(n,function(r){return r!==void 0})),i}return o(t,"NonTerminal"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},"get"),set:o(function(n){},"set"),enumerable:!1,configurable:!0}),t.prototype.accept=function(n){n.visit(this)},t}(Eo),Ir=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",Cr(i,xr(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t}(Eo),en=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,Cr(i,xr(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t}(Eo),sn=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Cr(i,xr(n,function(r){return r!==void 0})),i}return o(t,"Option"),t}(Eo),Nn=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Cr(i,xr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t}(Eo),Fn=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Cr(i,xr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t}(Eo),Rt=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Cr(i,xr(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t}(Eo),An=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Cr(i,xr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t}(Eo),Pn=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,Cr(i,xr(n,function(r){return r!==void 0})),i}return o(t,"Alternation"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(n){this._definition=n},"set"),enumerable:!1,configurable:!0}),t}(Eo),ht=function(){function e(t){this.idx=1,Cr(this,xr(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();o(Fy,"serializeGrammar");o(df,"serializeProduction")});function GV(e,t,n){var i=[new sn({definition:[new ht({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Qc,Dy=Ye(()=>{bt();ji();Qc=function(){function e(){}return o(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),Te(t.definition,function(r,a){var s=Mn(t.definition,a+1);if(r instanceof an)i.walkProdRef(r,s,n);else if(r instanceof ht)i.walkTerminal(r,s,n);else if(r instanceof en)i.walkFlat(r,s,n);else if(r instanceof sn)i.walkOption(r,s,n);else if(r instanceof Nn)i.walkAtLeastOne(r,s,n);else if(r instanceof Fn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof An)i.walkManySep(r,s,n);else if(r instanceof Rt)i.walkMany(r,s,n);else if(r instanceof Pn)i.walkOr(r,s,n);else throw Error("non exhaustive match")})},e.prototype.walkTerminal=function(t,n,i){},e.prototype.walkProdRef=function(t,n,i){},e.prototype.walkFlat=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkOption=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkAtLeastOne=function(t,n,i){var r=[new sn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=GV(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new sn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=GV(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,a=n.concat(i);Te(t.definition,function(s){var l=new en({definition:[s]});r.walk(l,a)})},e}();o(GV,"restForRepetitionWithSeparator")});var eo,gf=Ye(()=>{ji();eo=function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case an:return this.visitNonTerminal(n);case en:return this.visitAlternative(n);case sn:return this.visitOption(n);case Nn:return this.visitRepetitionMandatory(n);case Fn:return this.visitRepetitionMandatoryWithSeparator(n);case An:return this.visitRepetitionWithSeparator(n);case Rt:return this.visitRepetition(n);case Pn:return this.visitAlternation(n);case ht:return this.visitTerminal(n);case Ir:return this.visitRule(n);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(t){},e.prototype.visitAlternative=function(t){},e.prototype.visitOption=function(t){},e.prototype.visitRepetition=function(t){},e.prototype.visitRepetitionMandatory=function(t){},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){},e.prototype.visitRepetitionWithSeparator=function(t){},e.prototype.visitAlternation=function(t){},e.prototype.visitTerminal=function(t){},e.prototype.visitRule=function(t){},e}()});function WV(e){return e instanceof en||e instanceof sn||e instanceof Rt||e instanceof Nn||e instanceof Fn||e instanceof An||e instanceof ht||e instanceof Ir}function mf(e,t){t===void 0&&(t=[]);var n=e instanceof sn||e instanceof Rt||e instanceof An;return n?!0:e instanceof Pn?Ty(e.definition,function(i){return mf(i,t)}):e instanceof an&&Mt(t,e)?!1:e instanceof Eo?(e instanceof an&&t.push(e),pi(e.definition,function(i){return mf(i,t)})):!1}function KV(e){return e instanceof Pn}function Or(e){if(e instanceof an)return"SUBRULE";if(e instanceof sn)return"OPTION";if(e instanceof Pn)return"OR";if(e instanceof Nn)return"AT_LEAST_ONE";if(e instanceof Fn)return"AT_LEAST_ONE_SEP";if(e instanceof An)return"MANY_SEP";if(e instanceof Rt)return"MANY";if(e instanceof ht)return"CONSUME";throw Error("non exhaustive match")}function XV(e){_y.reset(),e.accept(_y);var t=_y.dslMethods;return _y.reset(),t}var P6,xP,_y,hf=Ye(()=>{bt();ji();gf();P6=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(WV,"isSequenceProd");o(mf,"isOptionalProd");o(KV,"isBranchingProd");o(Or,"getProductionDslName");xP=function(e){P6(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.separator="-",n.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},n}return o(t,"DslMethodsCollectorVisitor"),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(n){var i=n.terminalType.name+this.separator+"Terminal";Ie(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";Ie(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitOption=function(n){this.dslMethods.option.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.dslMethods.repetitionWithSeparator.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.dslMethods.repetitionMandatory.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.dslMethods.repetitionMandatoryWithSeparator.push(n)},t.prototype.visitRepetition=function(n){this.dslMethods.repetition.push(n)},t.prototype.visitAlternation=function(n){this.dslMethods.alternation.push(n)},t}(eo),_y=new xP;o(XV,"collectMethods")});function qc(e){if(e instanceof an)return qc(e.referencedRule);if(e instanceof ht)return I6(e);if(WV(e))return x6(e);if(KV(e))return C6(e);throw Error("non exhaustive match")}function x6(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=mf(a),t=t.concat(qc(a)),i=i+1,r=n.length>i;return Lp(t)}function C6(e){var t=de(e.definition,function(n){return qc(n)});return Lp(Ln(t))}function I6(e){return[e.terminalType]}var CP=Ye(()=>{bt();ji();hf();o(qc,"first");o(x6,"firstForSequence");o(C6,"firstForBranching");o(I6,"firstForTerminal")});var Vy,IP=Ye(()=>{Vy="_~IN~_"});function QV(e){var t={};return Te(e,function(n){var i=new R6(n).startWalking();Cr(t,i)}),t}function L6(e,t){return e.name+t+Vy}var O6,R6,qV=Ye(()=>{Dy();CP();bt();IP();ji();O6=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),R6=function(e){O6(t,e);function t(n){var i=e.call(this)||this;return i.topProd=n,i.follows={},i}return o(t,"ResyncFollowsWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(n,i,r){},t.prototype.walkProdRef=function(n,i,r){var a=L6(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new en({definition:s}),u=qc(l);this.follows[a]=u},t}(Qc);o(QV,"computeAllProdsFollows");o(L6,"buildBetweenProdsFollowPrefix")});var kp,wy,Vs,Up=Ye(()=>{_s();bt();bt();ji();hf();kp={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=PP(t),s=a?"--> "+zo(t)+" <--":"token of type --> "+t.name+" <--",l="Expecting "+s+" but found --> '"+n.image+"' <--";return l},"buildMismatchTokenMessage"),buildNotAllInputParsedMessage:o(function(e){var t=e.firstRedundant,n=e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},"buildNotAllInputParsedMessage"),buildNoViableAltMessage:o(function(e){var t=e.expectedPathsPerAlt,n=e.actual,i=e.previous,r=e.customUserDescription,a=e.ruleName,s="Expecting: ",l=Ci(n).image,u=`
|
|
133
|
+
`+r)}var a=this.tokenizeInternal(t,n);return a},e.prototype.tokenizeInternal=function(t,n){var i=this,r,a,s,l,u,p,g,m,h,S,b,O,N,M,G,j=t,re=j.length,Z=0,oe=0,Pe=this.hasCustom?0:Math.floor(t.length/10),D=new Array(Pe),pt=[],yt=this.trackStartLines?1:void 0,je=this.trackStartLines?1:void 0,cn=PV(this.emptyGroups),Wn=this.trackStartLines,nn=this.config.lineTerminatorsPattern,Nt=0,Ne=[],Ri=[],Ct=[],Ut=[];Object.freeze(Ut);var ln=void 0;function Wi(){return Ne}o(Wi,"getPossiblePatternsSlow");function Fe(Wt){var na=qo(Wt),Ki=Ri[na];return Ki===void 0?Ut:Ki}o(Fe,"getPossiblePatternsOptimized");var Kn=o(function(Wt){if(Ct.length===1&&Wt.tokenType.PUSH_MODE===void 0){var na=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Wt);pt.push({offset:Wt.startOffset,line:Wt.startLine!==void 0?Wt.startLine:void 0,column:Wt.startColumn!==void 0?Wt.startColumn:void 0,length:Wt.image.length,message:na})}else{Ct.pop();var Ki=hy(Ct);Ne=i.patternIdxToConfig[Ki],Ri=i.charCodeToPatternIdxToConfig[Ki],Nt=Ne.length;var Jf=i.canModeBeOptimized[Ki]&&i.config.safeMode===!1;Ri&&Jf?ln=Fe:ln=Wi}},"pop_mode");function Dr(Wt){Ct.push(Wt),Ri=this.charCodeToPatternIdxToConfig[Wt],Ne=this.patternIdxToConfig[Wt],Nt=Ne.length,Nt=Ne.length;var na=this.canModeBeOptimized[Wt]&&this.config.safeMode===!1;Ri&&na?ln=Fe:ln=Wi}o(Dr,"push_mode"),Dr.call(this,n);for(var ot;Z<re;){u=null;var I=j.charCodeAt(Z),E=ln(I),Y=E.length;for(r=0;r<Y;r++){ot=E[r];var V=ot.pattern;p=null;var _e=ot.short;if(_e!==!1?I===_e&&(u=V):ot.isCustom===!0?(G=V.exec(j,Z,D,cn),G!==null?(u=G[0],G.payload!==void 0&&(p=G.payload)):u=null):(this.updateLastIndex(V,Z),u=this.match(V,t,Z)),u!==null){if(l=ot.longerAlt,l!==void 0){var Ft=Ne[l],qe=Ft.pattern;g=null,Ft.isCustom===!0?(G=qe.exec(j,Z,D,cn),G!==null?(s=G[0],G.payload!==void 0&&(g=G.payload)):s=null):(this.updateLastIndex(qe,Z),s=this.match(qe,t,Z)),s&&s.length>u.length&&(u=s,p=g,ot=Ft)}break}}if(u!==null){if(m=u.length,h=ot.group,h!==void 0&&(S=ot.tokenTypeIdx,b=this.createTokenInstance(u,Z,S,ot.tokenType,yt,je,m),this.handlePayload(b,p),h===!1?oe=this.addToken(D,oe,b):cn[h].push(b)),t=this.chopInput(t,m),Z=Z+m,je=this.computeNewColumn(je,m),Wn===!0&&ot.canLineTerminator===!0){var jt=0,Tn=void 0,fn=void 0;nn.lastIndex=0;do Tn=nn.test(u),Tn===!0&&(fn=nn.lastIndex-1,jt++);while(Tn===!0);jt!==0&&(yt=yt+jt,je=m-fn,this.updateTokenEndLineColumnLocation(b,h,fn,jt,yt,je,m))}this.handleModes(ot,Kn,Dr,b)}else{for(var Gt=Z,ti=yt,fr=je,mn=!1;!mn&&Z<re;)for(N=j.charCodeAt(Z),t=this.chopInput(t,1),Z++,a=0;a<Nt;a++){var Ti=Ne[a],V=Ti.pattern,_e=Ti.short;if(_e!==!1?j.charCodeAt(Z)===_e&&(mn=!0):Ti.isCustom===!0?mn=V.exec(j,Z,D,cn)!==null:(this.updateLastIndex(V,Z),mn=V.exec(t)!==null),mn===!0)break}O=Z-Gt,M=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(j,Gt,O,ti,fr),pt.push({offset:Gt,line:ti,column:fr,length:O,message:M})}}return this.hasCustom||(D.length=oe),{tokens:D,groups:cn,errors:pt}},e.prototype.handleModes=function(t,n,i,r){if(t.pop===!0){var a=t.push;n(r),a!==void 0&&i.call(this,a)}else t.push!==void 0&&i.call(this,t.push)},e.prototype.chopInput=function(t,n){return t.substring(n)},e.prototype.updateLastIndex=function(t,n){t.lastIndex=n},e.prototype.updateTokenEndLineColumnLocation=function(t,n,i,r,a,s,l){var u,p;n!==void 0&&(u=i===l-1,p=u?-1:0,r===1&&u===!0||(t.endLine=a+p,t.endColumn=s-1+-p))},e.prototype.computeNewColumn=function(t,n){return t+n},e.prototype.createTokenInstance=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null},e.prototype.createOffsetOnlyToken=function(t,n,i,r){return{image:t,startOffset:n,tokenTypeIdx:i,tokenType:r}},e.prototype.createStartOnlyToken=function(t,n,i,r,a,s){return{image:t,startOffset:n,startLine:a,startColumn:s,tokenTypeIdx:i,tokenType:r}},e.prototype.createFullToken=function(t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:n+l-1,startLine:a,endLine:a,startColumn:s,endColumn:s+l-1,tokenTypeIdx:i,tokenType:r}},e.prototype.addToken=function(t,n,i){return 666},e.prototype.addTokenUsingPush=function(t,n,i){return t.push(i),n},e.prototype.addTokenUsingMemberAccess=function(t,n,i){return t[n]=i,n++,n},e.prototype.handlePayload=function(t,n){},e.prototype.handlePayloadNoCustom=function(t,n){},e.prototype.handlePayloadWithCustom=function(t,n){n!==null&&(t.payload=n)},e.prototype.match=function(t,n,i){return null},e.prototype.matchWithTest=function(t,n,i){var r=t.test(n);return r===!0?n.substring(i,t.lastIndex):null},e.prototype.matchWithExec=function(t,n){var i=t.exec(n);return i!==null?i[0]:i},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=Sy(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",e.NA=/NOT_APPLICABLE/,e}()});function zo(e){return PP(e)?e.LABEL:e.name}function BV(e){return e.name}function PP(e){return zr(e.LABEL)&&e.LABEL!==""}function Mp(e){return P6(e)}function P6(e){var t=e.pattern,n={};if(n.name=e.name,Ii(t)||(n.PATTERN=t),Ie(e,E6))throw`The parent property is no longer supported.
|
|
134
|
+
See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Ie(e,_V)&&(n.CATEGORIES=e[_V]),Va([n]),Ie(e,VV)&&(n.LABEL=e[VV]),Ie(e,wV)&&(n.GROUP=e[wV]),Ie(e,kV)&&(n.POP_MODE=e[kV]),Ie(e,MV)&&(n.PUSH_MODE=e[MV]),Ie(e,UV)&&(n.LONGER_ALT=e[UV]),Ie(e,jV)&&(n.LINE_BREAKS=e[jV]),Ie(e,$V)&&(n.START_CHARS_HINT=e[$V]),n}function Ds(e,t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:i,startLine:r,endLine:a,startColumn:s,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function HV(e,t){return Xc(e,t)}var E6,_V,VV,wV,MV,kV,UV,jV,$V,Zr,_s=Ye(()=>{bt();Vp();pf();o(zo,"tokenLabel");o(BV,"tokenName");o(PP,"hasTokenLabel");E6="parent",_V="categories",VV="label",wV="group",MV="push_mode",kV="pop_mode",UV="longer_alt",jV="line_breaks",$V="start_chars_hint";o(Mp,"createToken");o(P6,"createTokenInternal");Zr=Mp({name:"EOF",pattern:Ui.NA});Va([Zr]);o(Ds,"createTokenInstance");o(HV,"tokenMatcher")});function Fy(e){return de(e,df)}function df(e){function t(r){return de(r,df)}if(o(t,"convertDefinition"),e instanceof an)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof en)return{type:"Alternative",definition:t(e.definition)};if(e instanceof sn)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Nn)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Fn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:df(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof En)return{type:"RepetitionWithSeparator",idx:e.idx,separator:df(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Rt)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Pn)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof ht){var n={type:"Terminal",name:e.terminalType.name,label:zo(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=So(i)?i.source:i),n}else{if(e instanceof Ir)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var wa,Ao,an,Ir,en,sn,Nn,Fn,Rt,En,Pn,ht,ji=Ye(()=>{bt();_s();wa=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ao=function(){function e(t){this._definition=t}return o(e,"AbstractProduction"),Object.defineProperty(e.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(t){this._definition=t},"set"),enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this),Te(this.definition,function(n){n.accept(t)})},e}(),an=function(e){wa(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,Cr(i,xr(n,function(r){return r!==void 0})),i}return o(t,"NonTerminal"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},"get"),set:o(function(n){},"set"),enumerable:!1,configurable:!0}),t.prototype.accept=function(n){n.visit(this)},t}(Ao),Ir=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",Cr(i,xr(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t}(Ao),en=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,Cr(i,xr(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t}(Ao),sn=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Cr(i,xr(n,function(r){return r!==void 0})),i}return o(t,"Option"),t}(Ao),Nn=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Cr(i,xr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t}(Ao),Fn=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Cr(i,xr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t}(Ao),Rt=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Cr(i,xr(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t}(Ao),En=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Cr(i,xr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t}(Ao),Pn=function(e){wa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,Cr(i,xr(n,function(r){return r!==void 0})),i}return o(t,"Alternation"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(n){this._definition=n},"set"),enumerable:!1,configurable:!0}),t}(Ao),ht=function(){function e(t){this.idx=1,Cr(this,xr(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();o(Fy,"serializeGrammar");o(df,"serializeProduction")});function GV(e,t,n){var i=[new sn({definition:[new ht({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Qc,Dy=Ye(()=>{bt();ji();Qc=function(){function e(){}return o(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),Te(t.definition,function(r,a){var s=Mn(t.definition,a+1);if(r instanceof an)i.walkProdRef(r,s,n);else if(r instanceof ht)i.walkTerminal(r,s,n);else if(r instanceof en)i.walkFlat(r,s,n);else if(r instanceof sn)i.walkOption(r,s,n);else if(r instanceof Nn)i.walkAtLeastOne(r,s,n);else if(r instanceof Fn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof En)i.walkManySep(r,s,n);else if(r instanceof Rt)i.walkMany(r,s,n);else if(r instanceof Pn)i.walkOr(r,s,n);else throw Error("non exhaustive match")})},e.prototype.walkTerminal=function(t,n,i){},e.prototype.walkProdRef=function(t,n,i){},e.prototype.walkFlat=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkOption=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkAtLeastOne=function(t,n,i){var r=[new sn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=GV(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new sn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=GV(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,a=n.concat(i);Te(t.definition,function(s){var l=new en({definition:[s]});r.walk(l,a)})},e}();o(GV,"restForRepetitionWithSeparator")});var eo,gf=Ye(()=>{ji();eo=function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case an:return this.visitNonTerminal(n);case en:return this.visitAlternative(n);case sn:return this.visitOption(n);case Nn:return this.visitRepetitionMandatory(n);case Fn:return this.visitRepetitionMandatoryWithSeparator(n);case En:return this.visitRepetitionWithSeparator(n);case Rt:return this.visitRepetition(n);case Pn:return this.visitAlternation(n);case ht:return this.visitTerminal(n);case Ir:return this.visitRule(n);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(t){},e.prototype.visitAlternative=function(t){},e.prototype.visitOption=function(t){},e.prototype.visitRepetition=function(t){},e.prototype.visitRepetitionMandatory=function(t){},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){},e.prototype.visitRepetitionWithSeparator=function(t){},e.prototype.visitAlternation=function(t){},e.prototype.visitTerminal=function(t){},e.prototype.visitRule=function(t){},e}()});function WV(e){return e instanceof en||e instanceof sn||e instanceof Rt||e instanceof Nn||e instanceof Fn||e instanceof En||e instanceof ht||e instanceof Ir}function mf(e,t){t===void 0&&(t=[]);var n=e instanceof sn||e instanceof Rt||e instanceof En;return n?!0:e instanceof Pn?Ty(e.definition,function(i){return mf(i,t)}):e instanceof an&&Mt(t,e)?!1:e instanceof Ao?(e instanceof an&&t.push(e),pi(e.definition,function(i){return mf(i,t)})):!1}function KV(e){return e instanceof Pn}function Or(e){if(e instanceof an)return"SUBRULE";if(e instanceof sn)return"OPTION";if(e instanceof Pn)return"OR";if(e instanceof Nn)return"AT_LEAST_ONE";if(e instanceof Fn)return"AT_LEAST_ONE_SEP";if(e instanceof En)return"MANY_SEP";if(e instanceof Rt)return"MANY";if(e instanceof ht)return"CONSUME";throw Error("non exhaustive match")}function XV(e){_y.reset(),e.accept(_y);var t=_y.dslMethods;return _y.reset(),t}var x6,xP,_y,hf=Ye(()=>{bt();ji();gf();x6=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(WV,"isSequenceProd");o(mf,"isOptionalProd");o(KV,"isBranchingProd");o(Or,"getProductionDslName");xP=function(e){x6(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.separator="-",n.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},n}return o(t,"DslMethodsCollectorVisitor"),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(n){var i=n.terminalType.name+this.separator+"Terminal";Ie(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";Ie(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitOption=function(n){this.dslMethods.option.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.dslMethods.repetitionWithSeparator.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.dslMethods.repetitionMandatory.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.dslMethods.repetitionMandatoryWithSeparator.push(n)},t.prototype.visitRepetition=function(n){this.dslMethods.repetition.push(n)},t.prototype.visitAlternation=function(n){this.dslMethods.alternation.push(n)},t}(eo),_y=new xP;o(XV,"collectMethods")});function qc(e){if(e instanceof an)return qc(e.referencedRule);if(e instanceof ht)return O6(e);if(WV(e))return C6(e);if(KV(e))return I6(e);throw Error("non exhaustive match")}function C6(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=mf(a),t=t.concat(qc(a)),i=i+1,r=n.length>i;return Lp(t)}function I6(e){var t=de(e.definition,function(n){return qc(n)});return Lp(Ln(t))}function O6(e){return[e.terminalType]}var CP=Ye(()=>{bt();ji();hf();o(qc,"first");o(C6,"firstForSequence");o(I6,"firstForBranching");o(O6,"firstForTerminal")});var Vy,IP=Ye(()=>{Vy="_~IN~_"});function QV(e){var t={};return Te(e,function(n){var i=new L6(n).startWalking();Cr(t,i)}),t}function N6(e,t){return e.name+t+Vy}var R6,L6,qV=Ye(()=>{Dy();CP();bt();IP();ji();R6=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),L6=function(e){R6(t,e);function t(n){var i=e.call(this)||this;return i.topProd=n,i.follows={},i}return o(t,"ResyncFollowsWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(n,i,r){},t.prototype.walkProdRef=function(n,i,r){var a=N6(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new en({definition:s}),u=qc(l);this.follows[a]=u},t}(Qc);o(QV,"computeAllProdsFollows");o(N6,"buildBetweenProdsFollowPrefix")});var kp,wy,Vs,Up=Ye(()=>{_s();bt();bt();ji();hf();kp={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=PP(t),s=a?"--> "+zo(t)+" <--":"token of type --> "+t.name+" <--",l="Expecting "+s+" but found --> '"+n.image+"' <--";return l},"buildMismatchTokenMessage"),buildNotAllInputParsedMessage:o(function(e){var t=e.firstRedundant,n=e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},"buildNotAllInputParsedMessage"),buildNoViableAltMessage:o(function(e){var t=e.expectedPathsPerAlt,n=e.actual,i=e.previous,r=e.customUserDescription,a=e.ruleName,s="Expecting: ",l=Ci(n).image,u=`
|
|
135
135
|
but found: '`+l+"'";if(r)return s+r+u;var p=dn(t,function(S,b){return S.concat(b)},[]),g=de(p,function(S){return"["+de(S,function(b){return zo(b)}).join(", ")+"]"}),m=de(g,function(S,b){return" "+(b+1)+". "+S}),h=`one of these possible Token sequences:
|
|
136
136
|
`+m.join(`
|
|
137
137
|
`);return s+h+u},"buildNoViableAltMessage"),buildEarlyExitMessage:o(function(e){var t=e.expectedIterationPaths,n=e.actual,i=e.customUserDescription,r=e.ruleName,a="Expecting: ",s=Ci(n).image,l=`
|
|
@@ -161,33 +161,33 @@ This could lead to an infinite loop.`;return n},"buildEmptyRepetitionError"),bui
|
|
|
161
161
|
`)+(`without consuming any Tokens. The grammar path that causes this is:
|
|
162
162
|
`+i+`
|
|
163
163
|
`)+` To fix this refactor your grammar to remove the left recursion.
|
|
164
|
-
see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return r},"buildLeftRecursionError"),buildInvalidRuleNameError:o(function(e){return"deprecated"},"buildInvalidRuleNameError"),buildDuplicateRuleNameError:o(function(e){var t;e.topLevelRule instanceof Ir?t=e.topLevelRule.name:t=e.topLevelRule;var n="Duplicate definition, rule: ->"+t+"<- is already defined in the grammar: ->"+e.grammarName+"<-";return n},"buildDuplicateRuleNameError")}});function YV(e,t){var n=new F6(e,t);return n.resolveRefs(),n.errors}var N6,F6,zV=Ye(()=>{Rr();bt();gf();N6=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(YV,"resolveGrammar");F6=function(e){N6(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return o(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;Te(wn(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Gn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(eo)});function ky(e,t,n){n===void 0&&(n=[]),n=En(n);var i=[],r=0;function a(p){return p.concat(Mn(e,r+1))}o(a,"remainingPathWith");function s(p){var g=ky(a(p),t,n);return i.concat(g)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof en)return s(l.definition);if(l instanceof an)return s(l.definition);if(l instanceof sn)i=s(l.definition);else if(l instanceof Nn){var u=l.definition.concat([new Rt({definition:l.definition})]);return s(u)}else if(l instanceof Fn){var u=[new en({definition:l.definition}),new Rt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof An){var u=l.definition.concat([new Rt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Rt){var u=l.definition.concat([new Rt({definition:l.definition})]);i=s(u)}else{if(l instanceof Pn)return Te(l.definition,function(p){rt(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof ht)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:Mn(e,r)}),i}function Uy(e,t,n,i){var r="EXIT_NONE_TERMINAL",a=[r],s="EXIT_ALTERNATIVE",l=!1,u=t.length,p=u-i-1,g=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!rt(m);){var h=m.pop();if(h===s){l&&hy(m).idx<=p&&m.pop();continue}var S=h.def,b=h.idx,O=h.ruleStack,N=h.occurrenceStack;if(!rt(S)){var M=S[0];if(M===r){var G={idx:b,def:Mn(S),ruleStack:Ls(O),occurrenceStack:Ls(N)};m.push(G)}else if(M instanceof ht)if(b<u-1){var j=b+1,re=t[j];if(n(re,M.terminalType)){var G={idx:j,def:Mn(S),ruleStack:O,occurrenceStack:N};m.push(G)}}else if(b===u-1)g.push({nextTokenType:M.terminalType,nextTokenOccurrence:M.idx,ruleStack:O,occurrenceStack:N}),l=!0;else throw Error("non exhaustive match");else if(M instanceof an){var Z=En(O);Z.push(M.nonTerminalName);var oe=En(N);oe.push(M.idx);var G={idx:b,def:M.definition.concat(a,Mn(S)),ruleStack:Z,occurrenceStack:oe};m.push(G)}else if(M instanceof sn){var Pe={idx:b,def:Mn(S),ruleStack:O,occurrenceStack:N};m.push(Pe),m.push(s);var D={idx:b,def:M.definition.concat(Mn(S)),ruleStack:O,occurrenceStack:N};m.push(D)}else if(M instanceof Nn){var ut=new Rt({definition:M.definition,idx:M.idx}),yt=M.definition.concat([ut],Mn(S)),G={idx:b,def:yt,ruleStack:O,occurrenceStack:N};m.push(G)}else if(M instanceof Fn){var je=new ht({terminalType:M.separator}),ut=new Rt({definition:[je].concat(M.definition),idx:M.idx}),yt=M.definition.concat([ut],Mn(S)),G={idx:b,def:yt,ruleStack:O,occurrenceStack:N};m.push(G)}else if(M instanceof An){var Pe={idx:b,def:Mn(S),ruleStack:O,occurrenceStack:N};m.push(Pe),m.push(s);var je=new ht({terminalType:M.separator}),cn=new Rt({definition:[je].concat(M.definition),idx:M.idx}),yt=M.definition.concat([cn],Mn(S)),D={idx:b,def:yt,ruleStack:O,occurrenceStack:N};m.push(D)}else if(M instanceof Rt){var Pe={idx:b,def:Mn(S),ruleStack:O,occurrenceStack:N};m.push(Pe),m.push(s);var cn=new Rt({definition:M.definition,idx:M.idx}),yt=M.definition.concat([cn],Mn(S)),D={idx:b,def:yt,ruleStack:O,occurrenceStack:N};m.push(D)}else if(M instanceof Pn)for(var Wn=M.definition.length-1;Wn>=0;Wn--){var nn=M.definition[Wn],Nt={idx:b,def:nn.definition.concat(Mn(S)),ruleStack:O,occurrenceStack:N};m.push(Nt),m.push(s)}else if(M instanceof en)m.push({idx:b,def:M.definition.concat(Mn(S)),ruleStack:O,occurrenceStack:N});else if(M instanceof Ir)m.push(_6(M,b,O,N));else throw Error("non exhaustive match")}}return g}function _6(e,t,n,i){var r=En(n);r.push(e.name);var a=En(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var Yc,D6,JV,My,ZV,OP,ew,RP,jp=Ye(()=>{Dy();bt();CP();ji();Yc=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),D6=function(e){Yc(t,e);function t(n,i){var r=e.call(this)||this;return r.topProd=n,r.path=i,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return o(t,"AbstractNextPossibleTokensWalker"),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=En(this.path.ruleStack).reverse(),this.occurrenceStack=En(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(n,i){i===void 0&&(i=[]),this.found||e.prototype.walk.call(this,n,i)},t.prototype.walkProdRef=function(n,i,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){var a=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,a)}},t.prototype.updateExpectedNext=function(){rt(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Qc),JV=function(e){Yc(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new en({definition:a});this.possibleTokTypes=qc(s),this.found=!0}},t}(D6),My=function(e){Yc(t,e);function t(n,i){var r=e.call(this)||this;return r.topRule=n,r.occurrence=i,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return o(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(Qc),ZV=function(e){Yc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkMany.call(this,n,i,r)},t}(My),OP=function(e){Yc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t}(My),ew=function(e){Yc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t}(My),RP=function(e){Yc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t}(My);o(ky,"possiblePathsFrom");o(Uy,"nextPossibleTokensAfter");o(_6,"expandTopLevelRule")});function iw(e){if(e instanceof sn)return kt.OPTION;if(e instanceof Rt)return kt.REPETITION;if(e instanceof Nn)return kt.REPETITION_MANDATORY;if(e instanceof Fn)return kt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof An)return kt.REPETITION_WITH_SEPARATOR;if(e instanceof Pn)return kt.ALTERNATION;throw Error("non exhaustive match")}function rw(e,t,n,i,r,a){var s=$p(e,t,n),l=uw(s)?uf:Xc;return a(s,i,l,r)}function ow(e,t,n,i,r,a){var s=Bp(e,t,r,n),l=uw(s)?uf:Xc;return a(s[0],l,i)}function aw(e,t,n,i){var r=e.length,a=pi(e,function(u){return pi(u,function(p){return p.length===1})});if(t)return function(u){for(var p=de(u,function(j){return j.GATE}),g=0;g<r;g++){var m=e[g],h=m.length,S=p[g];if(!(S!==void 0&&S.call(this)===!1))e:for(var b=0;b<h;b++){for(var O=m[b],N=O.length,M=0;M<N;M++){var G=this.LA(M+1);if(n(G,O[M])===!1)continue e}return g}}};if(a&&!i){var s=de(e,function(u){return Ln(u)}),l=dn(s,function(u,p,g){return Te(p,function(m){Ie(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),Te(m.categoryMatches,function(h){Ie(u,h)||(u[h]=g)})}),u},[]);return function(){var u=this.LA(1);return l[u.tokenTypeIdx]}}else return function(){for(var u=0;u<r;u++){var p=e[u],g=p.length;e:for(var m=0;m<g;m++){for(var h=p[m],S=h.length,b=0;b<S;b++){var O=this.LA(b+1);if(n(O,h[b])===!1)continue e}return u}}}}function sw(e,t,n){var i=pi(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Ln(e);if(a.length===1&&rt(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=dn(a,function(p,g,m){return p[g.tokenTypeIdx]=!0,Te(g.categoryMatches,function(h){p[h]=!0}),p},[]);return function(){var p=this.LA(1);return u[p.tokenTypeIdx]===!0}}}else return function(){e:for(var p=0;p<r;p++){for(var g=e[p],m=g.length,h=0;h<m;h++){var S=this.LA(h+1);if(t(S,g[h])===!1)continue e}return!0}return!1}}function tw(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function LP(e){for(var t=[""],n=0;n<e.length;n++){for(var i=e[n],r=[],a=0;a<t.length;a++){var s=t[a];r.push(s+"_"+i.tokenTypeIdx);for(var l=0;l<i.categoryMatches.length;l++){var u="_"+i.categoryMatches[l];r.push(s+u)}}t=r}return t}function w6(e,t,n){for(var i=0;i<e.length;i++)if(i!==n)for(var r=e[i],a=0;a<t.length;a++){var s=t[a];if(r[s]===!0)return!1}return!0}function lw(e,t){for(var n=de(e,function(g){return ky([g],1)}),i=tw(n.length),r=de(n,function(g){var m={};return Te(g,function(h){var S=LP(h.partialPath);Te(S,function(b){m[b]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=tw(l.length);for(var u=o(function(g){for(var m=l[g],h=0;h<m.length;h++){var S=m[h].partialPath,b=m[h].suffixDef,O=LP(S),N=w6(r,O,g);if(N||rt(b)||S.length===t){var M=i[g];if(jy(M,S)===!1){M.push(S);for(var G=0;G<O.length;G++){var j=O[G];r[g][j]=!0}}}else{var re=ky(b,s+1,S);a[g]=a[g].concat(re),Te(re,function(Z){var oe=LP(Z.partialPath);Te(oe,function(Pe){r[g][Pe]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function $p(e,t,n,i){var r=new cw(e,kt.ALTERNATION,i);return t.accept(r),lw(r.result,n)}function Bp(e,t,n,i){var r=new cw(e,n);t.accept(r);var a=r.result,s=new V6(t,e,n),l=s.startWalking(),u=new en({definition:a}),p=new en({definition:l});return lw([u,p],i)}function jy(e,t){e:for(var n=0;n<e.length;n++){var i=e[n];if(i.length===t.length){for(var r=0;r<i.length;r++){var a=t[r],s=i[r],l=a===s||s.categoryMatchesMap[a.tokenTypeIdx]!==void 0;if(l===!1)continue e}return!0}}return!1}function fw(e,t){return e.length<t.length&&pi(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function uw(e){return pi(e,function(t){return pi(t,function(n){return pi(n,function(i){return rt(i.categoryMatches)})})})}var nw,kt,V6,cw,Hp=Ye(()=>{bt();jp();Dy();pf();ji();gf();nw=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(kt||(kt={}));o(iw,"getProdType");o(rw,"buildLookaheadFuncForOr");o(ow,"buildLookaheadFuncForOptionalProd");o(aw,"buildAlternativesLookAheadFunc");o(sw,"buildSingleAlternativeLookaheadFunction");V6=function(e){nw(t,e);function t(n,i,r){var a=e.call(this)||this;return a.topProd=n,a.targetOccurrence=i,a.targetProdType=r,a}return o(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,a){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(a),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,kt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,kt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,kt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,kt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,kt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Qc),cw=function(e){nw(t,e);function t(n,i,r){var a=e.call(this)||this;return a.targetOccurrence=n,a.targetProdType=i,a.targetRef=r,a.result=[],a}return o(t,"InsideDefinitionFinderVisitor"),t.prototype.checkIsTarget=function(n,i){n.idx===this.targetOccurrence&&this.targetProdType===i&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)},t.prototype.visitOption=function(n){this.checkIsTarget(n,kt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,kt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,kt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,kt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,kt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,kt.ALTERNATION)},t}(eo);o(tw,"initializeArrayOfArrays");o(LP,"pathToHashKeys");o(w6,"isUniquePrefixHash");o(lw,"lookAheadSequenceFromAlternatives");o($p,"getLookaheadPathsForOr");o(Bp,"getLookaheadPathsForOptionalProd");o(jy,"containsPath");o(fw,"isStrictPrefixOfPath");o(uw,"areTokenCategoriesNotUsed")});function pw(e,t,n,i,r){var a=de(e,function(S){return M6(S,i)}),s=de(e,function(S){return mw(S,S,i)}),l=[],u=[],p=[];pi(s,rt)&&(l=de(e,function(S){return $6(S,i)}),u=de(e,function(S){return B6(S,t,i)}),p=W6(e,t,i));var g=Q6(e,n,i),m=de(e,function(S){return G6(S,i)}),h=de(e,function(S){return j6(S,e,r,i)});return Ln(a.concat(p,s,l,u,g,m,h))}function M6(e,t){var n=new U6;e.accept(n);var i=n.allProductions,r=aV(i,k6),a=xr(r,function(l){return l.length>1}),s=de(wn(a),function(l){var u=Ci(l),p=t.buildDuplicateFoundError(e,l),g=Or(u),m={message:p,type:Gn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},h=dw(u);return h&&(m.parameter=h),m});return s}function k6(e){return Or(e)+"_#_"+e.idx+"_#_"+dw(e)}function dw(e){return e instanceof ht?e.terminalType.name:e instanceof an?e.nonTerminalName:""}function j6(e,t,n,i){var r=[],a=dn(t,function(l,u){return u.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Gn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function gw(e,t,n){var i=[],r;return Mt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Gn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function mw(e,t,n,i){i===void 0&&(i=[]);var r=[],a=$y(t.definition);if(rt(a))return[];var s=e.name,l=Mt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Gn.LEFT_RECURSION,ruleName:s});var u=Kc(a,i.concat([e])),p=de(u,function(g){var m=En(i);return m.push(g),mw(e,g,n,m)});return r.concat(Ln(p))}function $y(e){var t=[];if(rt(e))return t;var n=Ci(e);if(n instanceof an)t.push(n.referencedRule);else if(n instanceof en||n instanceof sn||n instanceof Nn||n instanceof Fn||n instanceof An||n instanceof Rt)t=t.concat($y(n.definition));else if(n instanceof Pn)t=Ln(de(n.definition,function(s){return $y(s.definition)}));else if(!(n instanceof ht))throw Error("non exhaustive match");var i=mf(n),r=e.length>1;if(i&&r){var a=Mn(e);return t.concat($y(a))}else return t}function $6(e,t){var n=new FP;e.accept(n);var i=n.alternations,r=dn(i,function(a,s){var l=Ls(s.definition),u=de(l,function(p,g){var m=Uy([p],[],null,1);return rt(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Gn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(_a(u))},[]);return r}function B6(e,t,n){var i=new FP;e.accept(i);var r=i.alternations;r=Fa(r,function(s){return s.ignoreAmbiguities===!0});var a=dn(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=$p(u,e,p,l),m=K6(g,l,e,n),h=X6(g,l,e,n);return s.concat(m,h)},[]);return a}function G6(e,t){var n=new FP;e.accept(n);var i=n.alternations,r=dn(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Gn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function W6(e,t,n){var i=[];return Te(e,function(r){var a=new H6;r.accept(a);var s=a.allProductions;Te(s,function(l){var u=iw(l),p=l.maxLookahead||t,g=l.idx,m=Bp(g,r,u,p),h=m[0];if(rt(Ln(h))){var S=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:S,type:Gn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function K6(e,t,n,i){var r=[],a=dn(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||Te(u,function(g){var m=[p];Te(e,function(h,S){p!==S&&jy(h,g)&&t.definition[S].ignoreAmbiguities!==!0&&m.push(S)}),m.length>1&&!jy(r,g)&&(r.push(g),l.push({alts:m,path:g}))}),l},[]),s=de(a,function(l){var u=de(l.alts,function(g){return g+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Gn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function X6(e,t,n,i){var r=[],a=dn(e,function(s,l,u){var p=de(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return Te(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=rV(a,function(h){return t.definition[h.idx].ignoreAmbiguities!==!0&&h.idx<u&&fw(h.path,p)}),m=de(g,function(h){var S=[h.idx+1,u+1],b=t.idx===0?"":t.idx,O=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:S,prefixPath:h.path});return{message:O,type:Gn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:b,alternatives:S}});r=r.concat(m)}}),r}function Q6(e,t,n){var i=[],r=de(t,function(a){return a.name});return Te(e,function(a){var s=a.name;if(Mt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Gn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var NP,U6,FP,H6,DP=Ye(()=>{bt();bt();Rr();hf();Hp();jp();ji();gf();NP=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(pw,"validateGrammar");o(M6,"validateDuplicateProductions");o(k6,"identifyProductionForDuplicates");o(dw,"getExtraProductionArgument");U6=function(e){NP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"OccurrenceValidationCollector"),t.prototype.visitNonTerminal=function(n){this.allProductions.push(n)},t.prototype.visitOption=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t.prototype.visitAlternation=function(n){this.allProductions.push(n)},t.prototype.visitTerminal=function(n){this.allProductions.push(n)},t}(eo);o(j6,"validateRuleDoesNotAlreadyExist");o(gw,"validateRuleIsOverridden");o(mw,"validateNoLeftRecursion");o($y,"getFirstNoneTerminal");FP=function(e){NP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return o(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t}(eo);o($6,"validateEmptyOrAlternative");o(B6,"validateAmbiguousAlternationAlternatives");H6=function(e){NP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"RepetionCollector"),t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t}(eo);o(G6,"validateTooManyAlts");o(W6,"validateSomeNonEmptyLookaheadPath");o(K6,"checkAlternativesAmbiguities");o(X6,"checkPrefixAlternativesAmbiguities");o(Q6,"checkTerminalAndNoneTerminalsNameSpace")});function By(e){e=Np(e,{errMsgProvider:wy});var t={};return Te(e.rules,function(n){t[n.name]=n}),YV(t,e.errMsgProvider)}function Hy(e){return e=Np(e,{errMsgProvider:Vs}),pw(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function hw(e){Te(e.rules,function(t){var n=new xP;t.accept(n),Te(n.dslMethods,function(i){Te(i,function(r,a){r.idx=a+1})})})}var _P=Ye(()=>{bt();zV();DP();Up();hf();o(By,"resolveGrammar");o(Hy,"validateGrammar");o(hw,"assignOccurrenceIndices")});function Ma(e){return Mt(Sw,e.name)}var Gp,yw,Tw,vw,bw,Sw,Gy,yf,Wy,Ky,Xy,Tf=Ye(()=>{bt();Gp=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),yw="MismatchedTokenException",Tw="NoViableAltException",vw="EarlyExitException",bw="NotAllInputParsedException",Sw=[yw,Tw,vw,bw];Object.freeze(Sw);o(Ma,"isRecognitionException");Gy=function(e){Gp(t,e);function t(n,i){var r=this.constructor,a=e.call(this,n)||this;return a.token=i,a.resyncedTokens=[],Object.setPrototypeOf(a,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return o(t,"RecognitionException"),t}(Error),yf=function(e){Gp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=yw,a}return o(t,"MismatchedTokenException"),t}(Gy),Wy=function(e){Gp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=Tw,a}return o(t,"NoViableAltException"),t}(Gy),Ky=function(e){Gp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=bw,r}return o(t,"NotAllInputParsedException"),t}(Gy),Xy=function(e){Gp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=vw,a}return o(t,"EarlyExitException"),t}(Gy)});function Ew(e){this.name=wP,this.message=e}function q6(e,t,n,i,r,a,s){var l=this.getKeyForAutomaticLookahead(i,r),u=this.firstAfterRepMap[l];if(u===void 0){var p=this.getCurrRuleFullName(),g=this.getGAstProductions()[p],m=new a(g,r);u=m.startWalking(),this.firstAfterRepMap[l]=u}var h=u.token,S=u.occurrence,b=u.isEndOfRule;this.RULE_STACK.length===1&&b&&h===void 0&&(h=Zr,S=1),this.shouldInRepetitionRecoveryBeTried(h,S,s)&&this.tryInRepetitionRecovery(e,t,n,h)}var VP,wP,Aw,MP=Ye(()=>{_s();bt();Tf();IP();Rr();VP={},wP="InRuleRecoveryException";o(Ew,"InRuleRecoveryException");Ew.prototype=Error.prototype;Aw=function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Ie(t,"recoveryEnabled")?t.recoveryEnabled:or.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=q6)},e.prototype.getTokenToInsert=function(t){var n=Ds(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return n.isInsertedInRecovery=!0,n},e.prototype.canTokenTypeBeInsertedInRecovery=function(t){return!0},e.prototype.tryInRepetitionRecovery=function(t,n,i,r){for(var a=this,s=this.findReSyncTokenType(),l=this.exportLexerState(),u=[],p=!1,g=this.LA(1),m=this.LA(1),h=o(function(){var S=a.LA(0),b=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:g,previous:S,ruleName:a.getCurrRuleFullName()}),O=new yf(b,g,a.LA(0));O.resyncedTokens=Ls(u),a.SAVE_ERROR(O)},"generateErrorMessage");!p;)if(this.tokenMatcher(m,r)){h();return}else if(i.call(this)){h(),t.apply(this,n);return}else this.tokenMatcher(m,s)?p=!0:(m=this.SKIP_TOKEN(),this.addToResyncTokens(m,u));this.importLexerState(l)},e.prototype.shouldInRepetitionRecoveryBeTried=function(t,n,i){return!(i===!1||t===void 0||n===void 0||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,n)))},e.prototype.getFollowsForInRuleRecovery=function(t,n){var i=this.getCurrentGrammarPath(t,n),r=this.getNextPossibleTokenTypes(i);return r},e.prototype.tryInRuleRecovery=function(t,n){if(this.canRecoverWithSingleTokenInsertion(t,n)){var i=this.getTokenToInsert(t);return i}if(this.canRecoverWithSingleTokenDeletion(t)){var r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new Ew("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(t,n){return this.canRecoverWithSingleTokenInsertion(t,n)||this.canRecoverWithSingleTokenDeletion(t)},e.prototype.canRecoverWithSingleTokenInsertion=function(t,n){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(t)||rt(n))return!1;var r=this.LA(1),a=Da(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return a},e.prototype.canRecoverWithSingleTokenDeletion=function(t){var n=this.tokenMatcher(this.LA(2),t);return n},e.prototype.isInCurrentRuleReSyncSet=function(t){var n=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(n);return Mt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Mt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return VP;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return de(n,function(r,a){return a===0?VP:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=de(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return Ln(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===VP)return[Zr];var n=t.ruleName+t.idxInCallingRule+Vy+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Zr)||n.push(t),n},e.prototype.reSyncTo=function(t){for(var n=[],i=this.LA(1);this.tokenMatcher(i,t)===!1;)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,n);return Ls(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=En(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return de(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();o(q6,"attemptInRepetitionRecovery")});function Yy(e,t,n){return n|t|e}var Pw,Jo,Y6,Qy,qy,Wp,Kp,Xp,vf,Aue,zy=Ye(()=>{Pw=4,Jo=8,Y6=8,Qy=1<<Jo,qy=2<<Jo,Wp=3<<Jo,Kp=4<<Jo,Xp=5<<Jo,vf=6<<Jo;o(Yy,"getKeyForAutomaticLookahead");Aue=32-Y6});var xw,Cw=Ye(()=>{Hp();bt();Rr();zy();hf();xw=function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Ie(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:or.dynamicTokensEnabled,this.maxLookahead=Ie(t,"maxLookahead")?t.maxLookahead:or.maxLookahead,this.lookAheadFuncsCache=mP()?new Map:[],mP()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;Te(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=XV(i),a=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,g=r.repetitionWithSeparator;Te(a,function(m){var h=m.idx===0?"":m.idx;n.TRACE_INIT(""+Or(m)+h,function(){var S=rw(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),b=Yy(n.fullRuleNameToShort[i.name],Qy,m.idx);n.setLaFuncCache(b,S)})}),Te(s,function(m){n.computeLookaheadFunc(i,m.idx,Wp,kt.REPETITION,m.maxLookahead,Or(m))}),Te(l,function(m){n.computeLookaheadFunc(i,m.idx,qy,kt.OPTION,m.maxLookahead,Or(m))}),Te(u,function(m){n.computeLookaheadFunc(i,m.idx,Kp,kt.REPETITION_MANDATORY,m.maxLookahead,Or(m))}),Te(p,function(m){n.computeLookaheadFunc(i,m.idx,vf,kt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,Or(m))}),Te(g,function(m){n.computeLookaheadFunc(i,m.idx,Xp,kt.REPETITION_WITH_SEPARATOR,m.maxLookahead,Or(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=ow(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=Yy(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return sw(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return aw(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return Yy(i,t,n)},e.prototype.getLaFuncFromCache=function(t){},e.prototype.getLaFuncFromMap=function(t){return this.lookAheadFuncsCache.get(t)},e.prototype.getLaFuncFromObj=function(t){return this.lookAheadFuncsCache[t]},e.prototype.setLaFuncCache=function(t,n){},e.prototype.setLaFuncCacheUsingMap=function(t,n){this.lookAheadFuncsCache.set(t,n)},e.prototype.setLaFuncUsingObj=function(t,n){this.lookAheadFuncsCache[t]=n},e}()});function kP(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function UP(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function Iw(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function Ow(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var Rw=Ye(()=>{o(kP,"setNodeLocationOnlyOffset");o(UP,"setNodeLocationFull");o(Iw,"addTerminalToCst");o(Ow,"addNoneTerminalToCst")});function Nw(e){return Qp(e.constructor)}function Qp(e){var t=e.name;return t||"anonymous"}function jP(e,t){var n=Object.getOwnPropertyDescriptor(e,Lw);return Ii(n)||n.configurable?(Object.defineProperty(e,Lw,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var Lw,$P=Ye(()=>{bt();o(Nw,"classNameFromInstance");Lw="name";o(Qp,"functionName");o(jP,"defineNameProp")});function z6(e,t){for(var n=ki(e),i=n.length,r=0;r<i;r++)for(var a=n[r],s=e[a],l=s.length,u=0;u<l;u++){var p=s[u];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function Fw(e,t){var n=o(function(){},"derivedConstructor");jP(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(ui(r)&&(r=r[0]),!Ii(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=J6(this,t);if(!rt(r)){var a=de(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+Qp(this.constructor)+`>:
|
|
164
|
+
see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return r},"buildLeftRecursionError"),buildInvalidRuleNameError:o(function(e){return"deprecated"},"buildInvalidRuleNameError"),buildDuplicateRuleNameError:o(function(e){var t;e.topLevelRule instanceof Ir?t=e.topLevelRule.name:t=e.topLevelRule;var n="Duplicate definition, rule: ->"+t+"<- is already defined in the grammar: ->"+e.grammarName+"<-";return n},"buildDuplicateRuleNameError")}});function YV(e,t){var n=new D6(e,t);return n.resolveRefs(),n.errors}var F6,D6,zV=Ye(()=>{Rr();bt();gf();F6=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(YV,"resolveGrammar");D6=function(e){F6(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return o(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;Te(wn(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Gn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(eo)});function ky(e,t,n){n===void 0&&(n=[]),n=An(n);var i=[],r=0;function a(p){return p.concat(Mn(e,r+1))}o(a,"remainingPathWith");function s(p){var g=ky(a(p),t,n);return i.concat(g)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof en)return s(l.definition);if(l instanceof an)return s(l.definition);if(l instanceof sn)i=s(l.definition);else if(l instanceof Nn){var u=l.definition.concat([new Rt({definition:l.definition})]);return s(u)}else if(l instanceof Fn){var u=[new en({definition:l.definition}),new Rt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof En){var u=l.definition.concat([new Rt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Rt){var u=l.definition.concat([new Rt({definition:l.definition})]);i=s(u)}else{if(l instanceof Pn)return Te(l.definition,function(p){rt(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof ht)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:Mn(e,r)}),i}function Uy(e,t,n,i){var r="EXIT_NONE_TERMINAL",a=[r],s="EXIT_ALTERNATIVE",l=!1,u=t.length,p=u-i-1,g=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!rt(m);){var h=m.pop();if(h===s){l&&hy(m).idx<=p&&m.pop();continue}var S=h.def,b=h.idx,O=h.ruleStack,N=h.occurrenceStack;if(!rt(S)){var M=S[0];if(M===r){var G={idx:b,def:Mn(S),ruleStack:Ls(O),occurrenceStack:Ls(N)};m.push(G)}else if(M instanceof ht)if(b<u-1){var j=b+1,re=t[j];if(n(re,M.terminalType)){var G={idx:j,def:Mn(S),ruleStack:O,occurrenceStack:N};m.push(G)}}else if(b===u-1)g.push({nextTokenType:M.terminalType,nextTokenOccurrence:M.idx,ruleStack:O,occurrenceStack:N}),l=!0;else throw Error("non exhaustive match");else if(M instanceof an){var Z=An(O);Z.push(M.nonTerminalName);var oe=An(N);oe.push(M.idx);var G={idx:b,def:M.definition.concat(a,Mn(S)),ruleStack:Z,occurrenceStack:oe};m.push(G)}else if(M instanceof sn){var Pe={idx:b,def:Mn(S),ruleStack:O,occurrenceStack:N};m.push(Pe),m.push(s);var D={idx:b,def:M.definition.concat(Mn(S)),ruleStack:O,occurrenceStack:N};m.push(D)}else if(M instanceof Nn){var pt=new Rt({definition:M.definition,idx:M.idx}),yt=M.definition.concat([pt],Mn(S)),G={idx:b,def:yt,ruleStack:O,occurrenceStack:N};m.push(G)}else if(M instanceof Fn){var je=new ht({terminalType:M.separator}),pt=new Rt({definition:[je].concat(M.definition),idx:M.idx}),yt=M.definition.concat([pt],Mn(S)),G={idx:b,def:yt,ruleStack:O,occurrenceStack:N};m.push(G)}else if(M instanceof En){var Pe={idx:b,def:Mn(S),ruleStack:O,occurrenceStack:N};m.push(Pe),m.push(s);var je=new ht({terminalType:M.separator}),cn=new Rt({definition:[je].concat(M.definition),idx:M.idx}),yt=M.definition.concat([cn],Mn(S)),D={idx:b,def:yt,ruleStack:O,occurrenceStack:N};m.push(D)}else if(M instanceof Rt){var Pe={idx:b,def:Mn(S),ruleStack:O,occurrenceStack:N};m.push(Pe),m.push(s);var cn=new Rt({definition:M.definition,idx:M.idx}),yt=M.definition.concat([cn],Mn(S)),D={idx:b,def:yt,ruleStack:O,occurrenceStack:N};m.push(D)}else if(M instanceof Pn)for(var Wn=M.definition.length-1;Wn>=0;Wn--){var nn=M.definition[Wn],Nt={idx:b,def:nn.definition.concat(Mn(S)),ruleStack:O,occurrenceStack:N};m.push(Nt),m.push(s)}else if(M instanceof en)m.push({idx:b,def:M.definition.concat(Mn(S)),ruleStack:O,occurrenceStack:N});else if(M instanceof Ir)m.push(V6(M,b,O,N));else throw Error("non exhaustive match")}}return g}function V6(e,t,n,i){var r=An(n);r.push(e.name);var a=An(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var Yc,_6,JV,My,ZV,OP,ew,RP,jp=Ye(()=>{Dy();bt();CP();ji();Yc=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),_6=function(e){Yc(t,e);function t(n,i){var r=e.call(this)||this;return r.topProd=n,r.path=i,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return o(t,"AbstractNextPossibleTokensWalker"),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=An(this.path.ruleStack).reverse(),this.occurrenceStack=An(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(n,i){i===void 0&&(i=[]),this.found||e.prototype.walk.call(this,n,i)},t.prototype.walkProdRef=function(n,i,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){var a=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,a)}},t.prototype.updateExpectedNext=function(){rt(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Qc),JV=function(e){Yc(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new en({definition:a});this.possibleTokTypes=qc(s),this.found=!0}},t}(_6),My=function(e){Yc(t,e);function t(n,i){var r=e.call(this)||this;return r.topRule=n,r.occurrence=i,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return o(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(Qc),ZV=function(e){Yc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkMany.call(this,n,i,r)},t}(My),OP=function(e){Yc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t}(My),ew=function(e){Yc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t}(My),RP=function(e){Yc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t}(My);o(ky,"possiblePathsFrom");o(Uy,"nextPossibleTokensAfter");o(V6,"expandTopLevelRule")});function iw(e){if(e instanceof sn)return kt.OPTION;if(e instanceof Rt)return kt.REPETITION;if(e instanceof Nn)return kt.REPETITION_MANDATORY;if(e instanceof Fn)return kt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof En)return kt.REPETITION_WITH_SEPARATOR;if(e instanceof Pn)return kt.ALTERNATION;throw Error("non exhaustive match")}function rw(e,t,n,i,r,a){var s=$p(e,t,n),l=uw(s)?uf:Xc;return a(s,i,l,r)}function ow(e,t,n,i,r,a){var s=Bp(e,t,r,n),l=uw(s)?uf:Xc;return a(s[0],l,i)}function aw(e,t,n,i){var r=e.length,a=pi(e,function(u){return pi(u,function(p){return p.length===1})});if(t)return function(u){for(var p=de(u,function(j){return j.GATE}),g=0;g<r;g++){var m=e[g],h=m.length,S=p[g];if(!(S!==void 0&&S.call(this)===!1))e:for(var b=0;b<h;b++){for(var O=m[b],N=O.length,M=0;M<N;M++){var G=this.LA(M+1);if(n(G,O[M])===!1)continue e}return g}}};if(a&&!i){var s=de(e,function(u){return Ln(u)}),l=dn(s,function(u,p,g){return Te(p,function(m){Ie(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),Te(m.categoryMatches,function(h){Ie(u,h)||(u[h]=g)})}),u},[]);return function(){var u=this.LA(1);return l[u.tokenTypeIdx]}}else return function(){for(var u=0;u<r;u++){var p=e[u],g=p.length;e:for(var m=0;m<g;m++){for(var h=p[m],S=h.length,b=0;b<S;b++){var O=this.LA(b+1);if(n(O,h[b])===!1)continue e}return u}}}}function sw(e,t,n){var i=pi(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Ln(e);if(a.length===1&&rt(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=dn(a,function(p,g,m){return p[g.tokenTypeIdx]=!0,Te(g.categoryMatches,function(h){p[h]=!0}),p},[]);return function(){var p=this.LA(1);return u[p.tokenTypeIdx]===!0}}}else return function(){e:for(var p=0;p<r;p++){for(var g=e[p],m=g.length,h=0;h<m;h++){var S=this.LA(h+1);if(t(S,g[h])===!1)continue e}return!0}return!1}}function tw(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function LP(e){for(var t=[""],n=0;n<e.length;n++){for(var i=e[n],r=[],a=0;a<t.length;a++){var s=t[a];r.push(s+"_"+i.tokenTypeIdx);for(var l=0;l<i.categoryMatches.length;l++){var u="_"+i.categoryMatches[l];r.push(s+u)}}t=r}return t}function M6(e,t,n){for(var i=0;i<e.length;i++)if(i!==n)for(var r=e[i],a=0;a<t.length;a++){var s=t[a];if(r[s]===!0)return!1}return!0}function lw(e,t){for(var n=de(e,function(g){return ky([g],1)}),i=tw(n.length),r=de(n,function(g){var m={};return Te(g,function(h){var S=LP(h.partialPath);Te(S,function(b){m[b]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=tw(l.length);for(var u=o(function(g){for(var m=l[g],h=0;h<m.length;h++){var S=m[h].partialPath,b=m[h].suffixDef,O=LP(S),N=M6(r,O,g);if(N||rt(b)||S.length===t){var M=i[g];if(jy(M,S)===!1){M.push(S);for(var G=0;G<O.length;G++){var j=O[G];r[g][j]=!0}}}else{var re=ky(b,s+1,S);a[g]=a[g].concat(re),Te(re,function(Z){var oe=LP(Z.partialPath);Te(oe,function(Pe){r[g][Pe]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function $p(e,t,n,i){var r=new cw(e,kt.ALTERNATION,i);return t.accept(r),lw(r.result,n)}function Bp(e,t,n,i){var r=new cw(e,n);t.accept(r);var a=r.result,s=new w6(t,e,n),l=s.startWalking(),u=new en({definition:a}),p=new en({definition:l});return lw([u,p],i)}function jy(e,t){e:for(var n=0;n<e.length;n++){var i=e[n];if(i.length===t.length){for(var r=0;r<i.length;r++){var a=t[r],s=i[r],l=a===s||s.categoryMatchesMap[a.tokenTypeIdx]!==void 0;if(l===!1)continue e}return!0}}return!1}function fw(e,t){return e.length<t.length&&pi(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function uw(e){return pi(e,function(t){return pi(t,function(n){return pi(n,function(i){return rt(i.categoryMatches)})})})}var nw,kt,w6,cw,Hp=Ye(()=>{bt();jp();Dy();pf();ji();gf();nw=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(kt||(kt={}));o(iw,"getProdType");o(rw,"buildLookaheadFuncForOr");o(ow,"buildLookaheadFuncForOptionalProd");o(aw,"buildAlternativesLookAheadFunc");o(sw,"buildSingleAlternativeLookaheadFunction");w6=function(e){nw(t,e);function t(n,i,r){var a=e.call(this)||this;return a.topProd=n,a.targetOccurrence=i,a.targetProdType=r,a}return o(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,a){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(a),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,kt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,kt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,kt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,kt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,kt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Qc),cw=function(e){nw(t,e);function t(n,i,r){var a=e.call(this)||this;return a.targetOccurrence=n,a.targetProdType=i,a.targetRef=r,a.result=[],a}return o(t,"InsideDefinitionFinderVisitor"),t.prototype.checkIsTarget=function(n,i){n.idx===this.targetOccurrence&&this.targetProdType===i&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)},t.prototype.visitOption=function(n){this.checkIsTarget(n,kt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,kt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,kt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,kt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,kt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,kt.ALTERNATION)},t}(eo);o(tw,"initializeArrayOfArrays");o(LP,"pathToHashKeys");o(M6,"isUniquePrefixHash");o(lw,"lookAheadSequenceFromAlternatives");o($p,"getLookaheadPathsForOr");o(Bp,"getLookaheadPathsForOptionalProd");o(jy,"containsPath");o(fw,"isStrictPrefixOfPath");o(uw,"areTokenCategoriesNotUsed")});function pw(e,t,n,i,r){var a=de(e,function(S){return k6(S,i)}),s=de(e,function(S){return mw(S,S,i)}),l=[],u=[],p=[];pi(s,rt)&&(l=de(e,function(S){return B6(S,i)}),u=de(e,function(S){return H6(S,t,i)}),p=K6(e,t,i));var g=q6(e,n,i),m=de(e,function(S){return W6(S,i)}),h=de(e,function(S){return $6(S,e,r,i)});return Ln(a.concat(p,s,l,u,g,m,h))}function k6(e,t){var n=new j6;e.accept(n);var i=n.allProductions,r=aV(i,U6),a=xr(r,function(l){return l.length>1}),s=de(wn(a),function(l){var u=Ci(l),p=t.buildDuplicateFoundError(e,l),g=Or(u),m={message:p,type:Gn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},h=dw(u);return h&&(m.parameter=h),m});return s}function U6(e){return Or(e)+"_#_"+e.idx+"_#_"+dw(e)}function dw(e){return e instanceof ht?e.terminalType.name:e instanceof an?e.nonTerminalName:""}function $6(e,t,n,i){var r=[],a=dn(t,function(l,u){return u.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Gn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function gw(e,t,n){var i=[],r;return Mt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Gn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function mw(e,t,n,i){i===void 0&&(i=[]);var r=[],a=$y(t.definition);if(rt(a))return[];var s=e.name,l=Mt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Gn.LEFT_RECURSION,ruleName:s});var u=Kc(a,i.concat([e])),p=de(u,function(g){var m=An(i);return m.push(g),mw(e,g,n,m)});return r.concat(Ln(p))}function $y(e){var t=[];if(rt(e))return t;var n=Ci(e);if(n instanceof an)t.push(n.referencedRule);else if(n instanceof en||n instanceof sn||n instanceof Nn||n instanceof Fn||n instanceof En||n instanceof Rt)t=t.concat($y(n.definition));else if(n instanceof Pn)t=Ln(de(n.definition,function(s){return $y(s.definition)}));else if(!(n instanceof ht))throw Error("non exhaustive match");var i=mf(n),r=e.length>1;if(i&&r){var a=Mn(e);return t.concat($y(a))}else return t}function B6(e,t){var n=new FP;e.accept(n);var i=n.alternations,r=dn(i,function(a,s){var l=Ls(s.definition),u=de(l,function(p,g){var m=Uy([p],[],null,1);return rt(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Gn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(_a(u))},[]);return r}function H6(e,t,n){var i=new FP;e.accept(i);var r=i.alternations;r=Fa(r,function(s){return s.ignoreAmbiguities===!0});var a=dn(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=$p(u,e,p,l),m=X6(g,l,e,n),h=Q6(g,l,e,n);return s.concat(m,h)},[]);return a}function W6(e,t){var n=new FP;e.accept(n);var i=n.alternations,r=dn(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Gn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function K6(e,t,n){var i=[];return Te(e,function(r){var a=new G6;r.accept(a);var s=a.allProductions;Te(s,function(l){var u=iw(l),p=l.maxLookahead||t,g=l.idx,m=Bp(g,r,u,p),h=m[0];if(rt(Ln(h))){var S=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:S,type:Gn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function X6(e,t,n,i){var r=[],a=dn(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||Te(u,function(g){var m=[p];Te(e,function(h,S){p!==S&&jy(h,g)&&t.definition[S].ignoreAmbiguities!==!0&&m.push(S)}),m.length>1&&!jy(r,g)&&(r.push(g),l.push({alts:m,path:g}))}),l},[]),s=de(a,function(l){var u=de(l.alts,function(g){return g+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Gn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function Q6(e,t,n,i){var r=[],a=dn(e,function(s,l,u){var p=de(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return Te(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=rV(a,function(h){return t.definition[h.idx].ignoreAmbiguities!==!0&&h.idx<u&&fw(h.path,p)}),m=de(g,function(h){var S=[h.idx+1,u+1],b=t.idx===0?"":t.idx,O=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:S,prefixPath:h.path});return{message:O,type:Gn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:b,alternatives:S}});r=r.concat(m)}}),r}function q6(e,t,n){var i=[],r=de(t,function(a){return a.name});return Te(e,function(a){var s=a.name;if(Mt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Gn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var NP,j6,FP,G6,DP=Ye(()=>{bt();bt();Rr();hf();Hp();jp();ji();gf();NP=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(pw,"validateGrammar");o(k6,"validateDuplicateProductions");o(U6,"identifyProductionForDuplicates");o(dw,"getExtraProductionArgument");j6=function(e){NP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"OccurrenceValidationCollector"),t.prototype.visitNonTerminal=function(n){this.allProductions.push(n)},t.prototype.visitOption=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t.prototype.visitAlternation=function(n){this.allProductions.push(n)},t.prototype.visitTerminal=function(n){this.allProductions.push(n)},t}(eo);o($6,"validateRuleDoesNotAlreadyExist");o(gw,"validateRuleIsOverridden");o(mw,"validateNoLeftRecursion");o($y,"getFirstNoneTerminal");FP=function(e){NP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return o(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t}(eo);o(B6,"validateEmptyOrAlternative");o(H6,"validateAmbiguousAlternationAlternatives");G6=function(e){NP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"RepetionCollector"),t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t}(eo);o(W6,"validateTooManyAlts");o(K6,"validateSomeNonEmptyLookaheadPath");o(X6,"checkAlternativesAmbiguities");o(Q6,"checkPrefixAlternativesAmbiguities");o(q6,"checkTerminalAndNoneTerminalsNameSpace")});function By(e){e=Np(e,{errMsgProvider:wy});var t={};return Te(e.rules,function(n){t[n.name]=n}),YV(t,e.errMsgProvider)}function Hy(e){return e=Np(e,{errMsgProvider:Vs}),pw(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function hw(e){Te(e.rules,function(t){var n=new xP;t.accept(n),Te(n.dslMethods,function(i){Te(i,function(r,a){r.idx=a+1})})})}var _P=Ye(()=>{bt();zV();DP();Up();hf();o(By,"resolveGrammar");o(Hy,"validateGrammar");o(hw,"assignOccurrenceIndices")});function Ma(e){return Mt(Sw,e.name)}var Gp,yw,Tw,vw,bw,Sw,Gy,yf,Wy,Ky,Xy,Tf=Ye(()=>{bt();Gp=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),yw="MismatchedTokenException",Tw="NoViableAltException",vw="EarlyExitException",bw="NotAllInputParsedException",Sw=[yw,Tw,vw,bw];Object.freeze(Sw);o(Ma,"isRecognitionException");Gy=function(e){Gp(t,e);function t(n,i){var r=this.constructor,a=e.call(this,n)||this;return a.token=i,a.resyncedTokens=[],Object.setPrototypeOf(a,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return o(t,"RecognitionException"),t}(Error),yf=function(e){Gp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=yw,a}return o(t,"MismatchedTokenException"),t}(Gy),Wy=function(e){Gp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=Tw,a}return o(t,"NoViableAltException"),t}(Gy),Ky=function(e){Gp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=bw,r}return o(t,"NotAllInputParsedException"),t}(Gy),Xy=function(e){Gp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=vw,a}return o(t,"EarlyExitException"),t}(Gy)});function Aw(e){this.name=wP,this.message=e}function Y6(e,t,n,i,r,a,s){var l=this.getKeyForAutomaticLookahead(i,r),u=this.firstAfterRepMap[l];if(u===void 0){var p=this.getCurrRuleFullName(),g=this.getGAstProductions()[p],m=new a(g,r);u=m.startWalking(),this.firstAfterRepMap[l]=u}var h=u.token,S=u.occurrence,b=u.isEndOfRule;this.RULE_STACK.length===1&&b&&h===void 0&&(h=Zr,S=1),this.shouldInRepetitionRecoveryBeTried(h,S,s)&&this.tryInRepetitionRecovery(e,t,n,h)}var VP,wP,Ew,MP=Ye(()=>{_s();bt();Tf();IP();Rr();VP={},wP="InRuleRecoveryException";o(Aw,"InRuleRecoveryException");Aw.prototype=Error.prototype;Ew=function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Ie(t,"recoveryEnabled")?t.recoveryEnabled:or.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=Y6)},e.prototype.getTokenToInsert=function(t){var n=Ds(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return n.isInsertedInRecovery=!0,n},e.prototype.canTokenTypeBeInsertedInRecovery=function(t){return!0},e.prototype.tryInRepetitionRecovery=function(t,n,i,r){for(var a=this,s=this.findReSyncTokenType(),l=this.exportLexerState(),u=[],p=!1,g=this.LA(1),m=this.LA(1),h=o(function(){var S=a.LA(0),b=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:g,previous:S,ruleName:a.getCurrRuleFullName()}),O=new yf(b,g,a.LA(0));O.resyncedTokens=Ls(u),a.SAVE_ERROR(O)},"generateErrorMessage");!p;)if(this.tokenMatcher(m,r)){h();return}else if(i.call(this)){h(),t.apply(this,n);return}else this.tokenMatcher(m,s)?p=!0:(m=this.SKIP_TOKEN(),this.addToResyncTokens(m,u));this.importLexerState(l)},e.prototype.shouldInRepetitionRecoveryBeTried=function(t,n,i){return!(i===!1||t===void 0||n===void 0||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,n)))},e.prototype.getFollowsForInRuleRecovery=function(t,n){var i=this.getCurrentGrammarPath(t,n),r=this.getNextPossibleTokenTypes(i);return r},e.prototype.tryInRuleRecovery=function(t,n){if(this.canRecoverWithSingleTokenInsertion(t,n)){var i=this.getTokenToInsert(t);return i}if(this.canRecoverWithSingleTokenDeletion(t)){var r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new Aw("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(t,n){return this.canRecoverWithSingleTokenInsertion(t,n)||this.canRecoverWithSingleTokenDeletion(t)},e.prototype.canRecoverWithSingleTokenInsertion=function(t,n){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(t)||rt(n))return!1;var r=this.LA(1),a=Da(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return a},e.prototype.canRecoverWithSingleTokenDeletion=function(t){var n=this.tokenMatcher(this.LA(2),t);return n},e.prototype.isInCurrentRuleReSyncSet=function(t){var n=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(n);return Mt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Mt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return VP;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return de(n,function(r,a){return a===0?VP:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=de(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return Ln(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===VP)return[Zr];var n=t.ruleName+t.idxInCallingRule+Vy+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Zr)||n.push(t),n},e.prototype.reSyncTo=function(t){for(var n=[],i=this.LA(1);this.tokenMatcher(i,t)===!1;)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,n);return Ls(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=An(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return de(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();o(Y6,"attemptInRepetitionRecovery")});function Yy(e,t,n){return n|t|e}var Pw,Jo,z6,Qy,qy,Wp,Kp,Xp,vf,Pue,zy=Ye(()=>{Pw=4,Jo=8,z6=8,Qy=1<<Jo,qy=2<<Jo,Wp=3<<Jo,Kp=4<<Jo,Xp=5<<Jo,vf=6<<Jo;o(Yy,"getKeyForAutomaticLookahead");Pue=32-z6});var xw,Cw=Ye(()=>{Hp();bt();Rr();zy();hf();xw=function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Ie(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:or.dynamicTokensEnabled,this.maxLookahead=Ie(t,"maxLookahead")?t.maxLookahead:or.maxLookahead,this.lookAheadFuncsCache=mP()?new Map:[],mP()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;Te(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=XV(i),a=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,g=r.repetitionWithSeparator;Te(a,function(m){var h=m.idx===0?"":m.idx;n.TRACE_INIT(""+Or(m)+h,function(){var S=rw(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),b=Yy(n.fullRuleNameToShort[i.name],Qy,m.idx);n.setLaFuncCache(b,S)})}),Te(s,function(m){n.computeLookaheadFunc(i,m.idx,Wp,kt.REPETITION,m.maxLookahead,Or(m))}),Te(l,function(m){n.computeLookaheadFunc(i,m.idx,qy,kt.OPTION,m.maxLookahead,Or(m))}),Te(u,function(m){n.computeLookaheadFunc(i,m.idx,Kp,kt.REPETITION_MANDATORY,m.maxLookahead,Or(m))}),Te(p,function(m){n.computeLookaheadFunc(i,m.idx,vf,kt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,Or(m))}),Te(g,function(m){n.computeLookaheadFunc(i,m.idx,Xp,kt.REPETITION_WITH_SEPARATOR,m.maxLookahead,Or(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=ow(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=Yy(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return sw(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return aw(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return Yy(i,t,n)},e.prototype.getLaFuncFromCache=function(t){},e.prototype.getLaFuncFromMap=function(t){return this.lookAheadFuncsCache.get(t)},e.prototype.getLaFuncFromObj=function(t){return this.lookAheadFuncsCache[t]},e.prototype.setLaFuncCache=function(t,n){},e.prototype.setLaFuncCacheUsingMap=function(t,n){this.lookAheadFuncsCache.set(t,n)},e.prototype.setLaFuncUsingObj=function(t,n){this.lookAheadFuncsCache[t]=n},e}()});function kP(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function UP(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function Iw(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function Ow(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var Rw=Ye(()=>{o(kP,"setNodeLocationOnlyOffset");o(UP,"setNodeLocationFull");o(Iw,"addTerminalToCst");o(Ow,"addNoneTerminalToCst")});function Nw(e){return Qp(e.constructor)}function Qp(e){var t=e.name;return t||"anonymous"}function jP(e,t){var n=Object.getOwnPropertyDescriptor(e,Lw);return Ii(n)||n.configurable?(Object.defineProperty(e,Lw,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var Lw,$P=Ye(()=>{bt();o(Nw,"classNameFromInstance");Lw="name";o(Qp,"functionName");o(jP,"defineNameProp")});function J6(e,t){for(var n=ki(e),i=n.length,r=0;r<i;r++)for(var a=n[r],s=e[a],l=s.length,u=0;u<l;u++){var p=s[u];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function Fw(e,t){var n=o(function(){},"derivedConstructor");jP(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(ui(r)&&(r=r[0]),!Ii(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=Z6(this,t);if(!rt(r)){var a=de(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+Qp(this.constructor)+`>:
|
|
165
165
|
`+(""+a.join(`
|
|
166
166
|
|
|
167
167
|
`).replace(/\n/g,`
|
|
168
|
-
`)))}},"validateVisitor")};return n.prototype=i,n.prototype.constructor=n,n._RULE_NAMES=t,n}function Dw(e,t,n){var i=o(function(){},"derivedConstructor");jP(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return Te(t,function(a){r[a]=
|
|
168
|
+
`)))}},"validateVisitor")};return n.prototype=i,n.prototype.constructor=n,n._RULE_NAMES=t,n}function Dw(e,t,n){var i=o(function(){},"derivedConstructor");jP(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return Te(t,function(a){r[a]=J6}),i.prototype=r,i.prototype.constructor=i,i}function Z6(e,t){var n=eq(e,t),i=nq(e,t);return n.concat(i)}function eq(e,t){var n=de(t,function(i){if(!bo(e[i]))return{msg:"Missing visitor method: <"+i+"> on "+Qp(e.constructor)+" CST Visitor.",type:Jy.MISSING_METHOD,methodName:i}});return _a(n)}function nq(e,t){var n=[];for(var i in e)bo(e[i])&&!Mt(tq,i)&&!Mt(t,i)&&n.push({msg:"Redundant visitor method: <"+i+"> on "+Qp(e.constructor)+` CST Visitor
|
|
169
169
|
There is no Grammar Rule corresponding to this method's name.
|
|
170
|
-
`,type:Jy.REDUNDANT_METHOD,methodName:i});return n}var Jy,eq,_w=Ye(()=>{bt();$P();o(z6,"defaultVisit");o(Fw,"createBaseSemanticVisitorConstructor");o(Dw,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(Jy||(Jy={}));o(J6,"validateVisitor");o(Z6,"validateMissingCstMethods");eq=["constructor","visit","validateVisitor"];o(tq,"validateRedundantMethods")});var Vw,ww=Ye(()=>{Rw();bt();_w();Rr();Vw=function(){function e(){}return o(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=Ie(t,"nodeLocationTracking")?t.nodeLocationTracking:or.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=kn,this.cstFinallyStateUpdate=kn,this.cstPostTerminal=kn,this.cstPostNonTerminal=kn,this.cstPostRule=kn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=UP,this.setNodeLocationFromNode=UP,this.cstPostRule=kn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=kn,this.setNodeLocationFromNode=kn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=kP,this.setNodeLocationFromNode=kP,this.cstPostRule=kn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=kn,this.setNodeLocationFromNode=kn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=kn,this.setNodeLocationFromNode=kn,this.cstPostRule=kn,this.setInitialNodeLocation=kn;else throw Error('Invalid <nodeLocationTracking> config option: "'+t.nodeLocationTracking+'"')},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(t){t.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(t){var n=this.LA(1);t.location={startOffset:n.startOffset,startLine:n.startLine,startColumn:n.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstInvocationStateUpdate=function(t,n){var i={name:t,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},e.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},e.prototype.cstPostRuleFull=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?(i.endOffset=n.endOffset,i.endLine=n.endLine,i.endColumn=n.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?i.endOffset=n.endOffset:i.startOffset=NaN},e.prototype.cstPostTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];Iw(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];Ow(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Ii(this.baseCstVisitorConstructor)){var t=Fw(this.className,ki(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Ii(this.baseCstVisitorWithDefaultsConstructor)){var t=Dw(this.className,ki(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.getLastExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]},e}()});var Mw,kw=Ye(()=>{Rr();Mw=function(){function e(){}return o(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:o(function(){return this.tokVector},"get"),set:o(function(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},"set"),enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):bf},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?bf:this.tokVector[n]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(t){this.currIdx=t},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}()});var Uw,jw=Ye(()=>{bt();Tf();Rr();Up();DP();ji();Uw=function(){function e(){}return o(e,"RecognizerApi"),e.prototype.ACTION=function(t){return t.call(this)},e.prototype.consume=function(t,n,i){return this.consumeInternal(n,t,i)},e.prototype.subrule=function(t,n,i){return this.subruleInternal(n,t,i)},e.prototype.option=function(t,n){return this.optionInternal(n,t)},e.prototype.or=function(t,n){return this.orInternal(n,t)},e.prototype.many=function(t,n){return this.manyInternal(t,n)},e.prototype.atLeastOne=function(t,n){return this.atLeastOneInternal(t,n)},e.prototype.CONSUME=function(t,n){return this.consumeInternal(t,0,n)},e.prototype.CONSUME1=function(t,n){return this.consumeInternal(t,1,n)},e.prototype.CONSUME2=function(t,n){return this.consumeInternal(t,2,n)},e.prototype.CONSUME3=function(t,n){return this.consumeInternal(t,3,n)},e.prototype.CONSUME4=function(t,n){return this.consumeInternal(t,4,n)},e.prototype.CONSUME5=function(t,n){return this.consumeInternal(t,5,n)},e.prototype.CONSUME6=function(t,n){return this.consumeInternal(t,6,n)},e.prototype.CONSUME7=function(t,n){return this.consumeInternal(t,7,n)},e.prototype.CONSUME8=function(t,n){return this.consumeInternal(t,8,n)},e.prototype.CONSUME9=function(t,n){return this.consumeInternal(t,9,n)},e.prototype.SUBRULE=function(t,n){return this.subruleInternal(t,0,n)},e.prototype.SUBRULE1=function(t,n){return this.subruleInternal(t,1,n)},e.prototype.SUBRULE2=function(t,n){return this.subruleInternal(t,2,n)},e.prototype.SUBRULE3=function(t,n){return this.subruleInternal(t,3,n)},e.prototype.SUBRULE4=function(t,n){return this.subruleInternal(t,4,n)},e.prototype.SUBRULE5=function(t,n){return this.subruleInternal(t,5,n)},e.prototype.SUBRULE6=function(t,n){return this.subruleInternal(t,6,n)},e.prototype.SUBRULE7=function(t,n){return this.subruleInternal(t,7,n)},e.prototype.SUBRULE8=function(t,n){return this.subruleInternal(t,8,n)},e.prototype.SUBRULE9=function(t,n){return this.subruleInternal(t,9,n)},e.prototype.OPTION=function(t){return this.optionInternal(t,0)},e.prototype.OPTION1=function(t){return this.optionInternal(t,1)},e.prototype.OPTION2=function(t){return this.optionInternal(t,2)},e.prototype.OPTION3=function(t){return this.optionInternal(t,3)},e.prototype.OPTION4=function(t){return this.optionInternal(t,4)},e.prototype.OPTION5=function(t){return this.optionInternal(t,5)},e.prototype.OPTION6=function(t){return this.optionInternal(t,6)},e.prototype.OPTION7=function(t){return this.optionInternal(t,7)},e.prototype.OPTION8=function(t){return this.optionInternal(t,8)},e.prototype.OPTION9=function(t){return this.optionInternal(t,9)},e.prototype.OR=function(t){return this.orInternal(t,0)},e.prototype.OR1=function(t){return this.orInternal(t,1)},e.prototype.OR2=function(t){return this.orInternal(t,2)},e.prototype.OR3=function(t){return this.orInternal(t,3)},e.prototype.OR4=function(t){return this.orInternal(t,4)},e.prototype.OR5=function(t){return this.orInternal(t,5)},e.prototype.OR6=function(t){return this.orInternal(t,6)},e.prototype.OR7=function(t){return this.orInternal(t,7)},e.prototype.OR8=function(t){return this.orInternal(t,8)},e.prototype.OR9=function(t){return this.orInternal(t,9)},e.prototype.MANY=function(t){this.manyInternal(0,t)},e.prototype.MANY1=function(t){this.manyInternal(1,t)},e.prototype.MANY2=function(t){this.manyInternal(2,t)},e.prototype.MANY3=function(t){this.manyInternal(3,t)},e.prototype.MANY4=function(t){this.manyInternal(4,t)},e.prototype.MANY5=function(t){this.manyInternal(5,t)},e.prototype.MANY6=function(t){this.manyInternal(6,t)},e.prototype.MANY7=function(t){this.manyInternal(7,t)},e.prototype.MANY8=function(t){this.manyInternal(8,t)},e.prototype.MANY9=function(t){this.manyInternal(9,t)},e.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},e.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},e.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},e.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},e.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},e.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},e.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},e.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},e.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},e.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},e.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},e.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},e.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},e.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},e.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},e.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},e.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},e.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},e.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},e.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},e.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},e.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},e.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},e.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},e.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},e.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},e.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},e.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},e.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},e.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},e.prototype.RULE=function(t,n,i){if(i===void 0&&(i=Sf),Mt(this.definedRulesNames,t)){var r=Vs.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Gn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=Sf);var r=[];r=r.concat(gw(t,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var a=this.defineRule(t,n,i);return this[t]=a,a},e.prototype.BACKTRACK=function(t,n){return function(){this.isBackTrackingStack.push(1);var i=this.saveRecogState();try{return t.apply(this,n),!0}catch(r){if(Ma(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Fy(wn(this.gastProductionsCache))},e}()});var $w,Bw=Ye(()=>{bt();zy();Tf();Hp();jp();Rr();MP();_s();pf();$P();$w=function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=Nw(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=uf,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Ie(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
|
|
170
|
+
`,type:Jy.REDUNDANT_METHOD,methodName:i});return n}var Jy,tq,_w=Ye(()=>{bt();$P();o(J6,"defaultVisit");o(Fw,"createBaseSemanticVisitorConstructor");o(Dw,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(Jy||(Jy={}));o(Z6,"validateVisitor");o(eq,"validateMissingCstMethods");tq=["constructor","visit","validateVisitor"];o(nq,"validateRedundantMethods")});var Vw,ww=Ye(()=>{Rw();bt();_w();Rr();Vw=function(){function e(){}return o(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=Ie(t,"nodeLocationTracking")?t.nodeLocationTracking:or.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=kn,this.cstFinallyStateUpdate=kn,this.cstPostTerminal=kn,this.cstPostNonTerminal=kn,this.cstPostRule=kn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=UP,this.setNodeLocationFromNode=UP,this.cstPostRule=kn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=kn,this.setNodeLocationFromNode=kn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=kP,this.setNodeLocationFromNode=kP,this.cstPostRule=kn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=kn,this.setNodeLocationFromNode=kn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=kn,this.setNodeLocationFromNode=kn,this.cstPostRule=kn,this.setInitialNodeLocation=kn;else throw Error('Invalid <nodeLocationTracking> config option: "'+t.nodeLocationTracking+'"')},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(t){t.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(t){var n=this.LA(1);t.location={startOffset:n.startOffset,startLine:n.startLine,startColumn:n.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstInvocationStateUpdate=function(t,n){var i={name:t,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},e.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},e.prototype.cstPostRuleFull=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?(i.endOffset=n.endOffset,i.endLine=n.endLine,i.endColumn=n.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?i.endOffset=n.endOffset:i.startOffset=NaN},e.prototype.cstPostTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];Iw(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];Ow(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Ii(this.baseCstVisitorConstructor)){var t=Fw(this.className,ki(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Ii(this.baseCstVisitorWithDefaultsConstructor)){var t=Dw(this.className,ki(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.getLastExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]},e}()});var Mw,kw=Ye(()=>{Rr();Mw=function(){function e(){}return o(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:o(function(){return this.tokVector},"get"),set:o(function(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},"set"),enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):bf},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?bf:this.tokVector[n]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(t){this.currIdx=t},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}()});var Uw,jw=Ye(()=>{bt();Tf();Rr();Up();DP();ji();Uw=function(){function e(){}return o(e,"RecognizerApi"),e.prototype.ACTION=function(t){return t.call(this)},e.prototype.consume=function(t,n,i){return this.consumeInternal(n,t,i)},e.prototype.subrule=function(t,n,i){return this.subruleInternal(n,t,i)},e.prototype.option=function(t,n){return this.optionInternal(n,t)},e.prototype.or=function(t,n){return this.orInternal(n,t)},e.prototype.many=function(t,n){return this.manyInternal(t,n)},e.prototype.atLeastOne=function(t,n){return this.atLeastOneInternal(t,n)},e.prototype.CONSUME=function(t,n){return this.consumeInternal(t,0,n)},e.prototype.CONSUME1=function(t,n){return this.consumeInternal(t,1,n)},e.prototype.CONSUME2=function(t,n){return this.consumeInternal(t,2,n)},e.prototype.CONSUME3=function(t,n){return this.consumeInternal(t,3,n)},e.prototype.CONSUME4=function(t,n){return this.consumeInternal(t,4,n)},e.prototype.CONSUME5=function(t,n){return this.consumeInternal(t,5,n)},e.prototype.CONSUME6=function(t,n){return this.consumeInternal(t,6,n)},e.prototype.CONSUME7=function(t,n){return this.consumeInternal(t,7,n)},e.prototype.CONSUME8=function(t,n){return this.consumeInternal(t,8,n)},e.prototype.CONSUME9=function(t,n){return this.consumeInternal(t,9,n)},e.prototype.SUBRULE=function(t,n){return this.subruleInternal(t,0,n)},e.prototype.SUBRULE1=function(t,n){return this.subruleInternal(t,1,n)},e.prototype.SUBRULE2=function(t,n){return this.subruleInternal(t,2,n)},e.prototype.SUBRULE3=function(t,n){return this.subruleInternal(t,3,n)},e.prototype.SUBRULE4=function(t,n){return this.subruleInternal(t,4,n)},e.prototype.SUBRULE5=function(t,n){return this.subruleInternal(t,5,n)},e.prototype.SUBRULE6=function(t,n){return this.subruleInternal(t,6,n)},e.prototype.SUBRULE7=function(t,n){return this.subruleInternal(t,7,n)},e.prototype.SUBRULE8=function(t,n){return this.subruleInternal(t,8,n)},e.prototype.SUBRULE9=function(t,n){return this.subruleInternal(t,9,n)},e.prototype.OPTION=function(t){return this.optionInternal(t,0)},e.prototype.OPTION1=function(t){return this.optionInternal(t,1)},e.prototype.OPTION2=function(t){return this.optionInternal(t,2)},e.prototype.OPTION3=function(t){return this.optionInternal(t,3)},e.prototype.OPTION4=function(t){return this.optionInternal(t,4)},e.prototype.OPTION5=function(t){return this.optionInternal(t,5)},e.prototype.OPTION6=function(t){return this.optionInternal(t,6)},e.prototype.OPTION7=function(t){return this.optionInternal(t,7)},e.prototype.OPTION8=function(t){return this.optionInternal(t,8)},e.prototype.OPTION9=function(t){return this.optionInternal(t,9)},e.prototype.OR=function(t){return this.orInternal(t,0)},e.prototype.OR1=function(t){return this.orInternal(t,1)},e.prototype.OR2=function(t){return this.orInternal(t,2)},e.prototype.OR3=function(t){return this.orInternal(t,3)},e.prototype.OR4=function(t){return this.orInternal(t,4)},e.prototype.OR5=function(t){return this.orInternal(t,5)},e.prototype.OR6=function(t){return this.orInternal(t,6)},e.prototype.OR7=function(t){return this.orInternal(t,7)},e.prototype.OR8=function(t){return this.orInternal(t,8)},e.prototype.OR9=function(t){return this.orInternal(t,9)},e.prototype.MANY=function(t){this.manyInternal(0,t)},e.prototype.MANY1=function(t){this.manyInternal(1,t)},e.prototype.MANY2=function(t){this.manyInternal(2,t)},e.prototype.MANY3=function(t){this.manyInternal(3,t)},e.prototype.MANY4=function(t){this.manyInternal(4,t)},e.prototype.MANY5=function(t){this.manyInternal(5,t)},e.prototype.MANY6=function(t){this.manyInternal(6,t)},e.prototype.MANY7=function(t){this.manyInternal(7,t)},e.prototype.MANY8=function(t){this.manyInternal(8,t)},e.prototype.MANY9=function(t){this.manyInternal(9,t)},e.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},e.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},e.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},e.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},e.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},e.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},e.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},e.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},e.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},e.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},e.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},e.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},e.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},e.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},e.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},e.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},e.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},e.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},e.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},e.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},e.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},e.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},e.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},e.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},e.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},e.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},e.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},e.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},e.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},e.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},e.prototype.RULE=function(t,n,i){if(i===void 0&&(i=Sf),Mt(this.definedRulesNames,t)){var r=Vs.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Gn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=Sf);var r=[];r=r.concat(gw(t,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var a=this.defineRule(t,n,i);return this[t]=a,a},e.prototype.BACKTRACK=function(t,n){return function(){this.isBackTrackingStack.push(1);var i=this.saveRecogState();try{return t.apply(this,n),!0}catch(r){if(Ma(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Fy(wn(this.gastProductionsCache))},e}()});var $w,Bw=Ye(()=>{bt();zy();Tf();Hp();jp();Rr();MP();_s();pf();$P();$w=function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=Nw(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=uf,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Ie(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
|
|
171
171
|
See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0
|
|
172
172
|
For Further details.`);if(ui(t)){if(rt(t))throw Error(`A Token Vocabulary cannot be empty.
|
|
173
173
|
Note that the first argument for the parser constructor
|
|
174
174
|
is no longer a Token vector (since v4.0).`);if(typeof t[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
|
|
175
175
|
See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0
|
|
176
176
|
For Further details.`)}if(ui(t))this.tokensMap=dn(t,function(s,l){return s[l.name]=l,s},{});else if(Ie(t,"modes")&&pi(Ln(wn(t.modes)),DV)){var i=Ln(wn(t.modes)),r=Lp(i);this.tokensMap=dn(r,function(s,l){return s[l.name]=l,s},{})}else if(yy(t))this.tokensMap=Ns(t);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=Zr;var a=pi(wn(t),function(s){return rt(s.categoryMatches)});this.tokenMatcher=a?uf:Xc,Va(wn(this.tokensMap))},e.prototype.defineRule=function(t,n,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+t+`> may not be defined after the 'performSelfAnalysis' method has been called'
|
|
177
|
-
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=Ie(i,"resyncEnabled")?i.resyncEnabled:Sf.resyncEnabled,a=Ie(i,"recoveryValueFunc")?i.recoveryValueFunc:Sf.recoveryValueFunc,s=this.ruleShortNameIdx<<Pw+Jo;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=t,this.fullRuleNameToShort[t]=s;function l(g){try{if(this.outputCst===!0){n.apply(this,g);var m=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(m),m}else return n.apply(this,g)}catch(h){return this.invokeRuleCatch(h,r,a)}finally{this.ruleFinallyStateUpdate()}}o(l,"invokeRuleWithTry");var u;u=o(function(g,m){return g===void 0&&(g=0),this.ruleInvocationStateUpdate(s,t,g),l.call(this,m)},"wrappedGrammarRule");var p="ruleName";return u[p]=t,u.originalGrammarAction=n,u},e.prototype.invokeRuleCatch=function(t,n,i){var r=this.RULE_STACK.length===1,a=n&&!this.isBackTracking()&&this.recoveryEnabled;if(Ma(t)){var s=t;if(a){var l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))if(s.resyncedTokens=this.reSyncTo(l),this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];return u.recoveredNode=!0,u}else return i();else{if(this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];u.recoveredNode=!0,s.partialCstResult=u}throw s}}else{if(r)return this.moveToTerminatedState(),i();throw s}}else throw t},e.prototype.optionInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(qy,n);return this.optionInternalLogic(t,n,i)},e.prototype.optionInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(t.DEF!==void 0){if(s=t.DEF,l=t.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=t;if(a.call(this)===!0)return s.call(this)},e.prototype.atLeastOneInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Kp,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=n;if(a.call(this)===!0)for(var p=this.doSingleRepetition(s);a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,kt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,Kp,t,ew)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(vf,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,RP],u,vf,t,RP)}else throw this.raiseEarlyExitException(t,kt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Wp,t);return this.manyInternalLogic(t,n,i)},e.prototype.manyInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookaheadFunction")}}else s=n;for(var p=!0;a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);this.attemptInRepetitionRecovery(this.manyInternal,[t,n],a,Wp,t,ZV,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Xp,t);this.manySepFirstInternalLogic(t,n,i)},e.prototype.manySepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,OP],u,Xp,t,OP)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,a){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,a],i,vf,t,a)},e.prototype.doSingleRepetition=function(t){var n=this.getLexerPosition();t.call(this);var i=this.getLexerPosition();return i>n},e.prototype.orInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Qy,n),r=ui(t)?t:t.DEF,a=this.getLaFuncFromCache(i),s=a.call(this,r);if(s!==void 0){var l=r[s];return l.ALT.call(this)}this.raiseNoAltException(n,t.ERR_MSG)},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){var t=this.LA(1),n=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Ky(n,t))}},e.prototype.subruleInternal=function(t,n,i){var r;try{var a=i!==void 0?i.ARGS:void 0;return r=t.call(this,n,a),this.cstPostNonTerminal(r,i!==void 0&&i.LABEL!==void 0?i.LABEL:t.ruleName),r}catch(s){this.subruleInternalError(s,i,t.ruleName)}},e.prototype.subruleInternalError=function(t,n,i){throw Ma(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,n!==void 0&&n.LABEL!==void 0?n.LABEL:i),delete t.partialCstResult),t},e.prototype.consumeInternal=function(t,n,i){var r;try{var a=this.LA(1);this.tokenMatcher(a,t)===!0?(this.consumeToken(),r=a):this.consumeInternalError(t,a,i)}catch(s){r=this.consumeInternalRecovery(t,n,s)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:t.name,r),r},e.prototype.consumeInternalError=function(t,n,i){var r,a=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new yf(r,n,a))},e.prototype.consumeInternalRecovery=function(t,n,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){var r=this.getFollowsForInRuleRecovery(t,n);try{return this.tryInRuleRecovery(t,r)}catch(a){throw a.name===wP?i:a}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=En(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:n,CST_STACK:this.CST_STACK}},e.prototype.reloadRecogState=function(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(t,n,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(n,t)},e.prototype.isBackTracking=function(){return this.isBackTrackingStack.length!==0},e.prototype.getCurrRuleFullName=function(){var t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]},e.prototype.shortRuleNameToFullName=function(t){return this.shortRuleNameToFull[t]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),Zr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var Hw,Gw=Ye(()=>{Tf();bt();Hp();Rr();Hw=function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Ie(t,"errorMessageProvider")?t.errorMessageProvider:or.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(Ma(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:En(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:o(function(){return En(this._errors)},"get"),set:o(function(t){this._errors=t},"set"),enumerable:!1,configurable:!0}),e.prototype.raiseEarlyExitException=function(t,n,i){for(var r=this.getCurrRuleFullName(),a=this.getGAstProductions()[r],s=Bp(t,a,n,this.maxLookahead),l=s[0],u=[],p=1;p<=this.maxLookahead;p++)u.push(this.LA(p));var g=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:l,actual:u,previous:this.LA(0),customUserDescription:i,ruleName:r});throw this.SAVE_ERROR(new Xy(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=$p(t,r,this.maxLookahead),s=[],l=1;l<=this.maxLookahead;l++)s.push(this.LA(l));var u=this.LA(0),p=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:u,customUserDescription:n,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new Wy(p,this.LA(1),u))},e}()});var Ww,Kw=Ye(()=>{jp();bt();Ww=function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Ii(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return Uy([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Ci(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new JV(r,t).startWalking();return a},e}()});function qp(e,t,n,i){i===void 0&&(i=!1),Zy(n);var r=Dp(this.recordingProdStack),a=bo(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),Ie(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),r.definition.push(s),this.recordingProdStack.pop(),eT}function iq(e,t){var n=this;Zy(t);var i=Dp(this.recordingProdStack),r=ui(e)===!1,a=r===!1?e:e.DEF,s=new Pn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Ie(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=Ty(a,function(u){return bo(u.GATE)});return s.hasPredicates=l,i.definition.push(s),Te(a,function(u){var p=new en({definition:[]});s.definition.push(p),Ie(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:Ie(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),eT}function qw(e){return e===0?"":""+e}function Zy(e){if(e<0||e>Qw){var t=new Error("Invalid DSL Method idx value: <"+e+`>
|
|
178
|
-
`+("Idx value must be a none negative value smaller than "+(Qw+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var eT,Xw,Qw,Yw,zw,
|
|
179
|
-
See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(zw);
|
|
177
|
+
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=Ie(i,"resyncEnabled")?i.resyncEnabled:Sf.resyncEnabled,a=Ie(i,"recoveryValueFunc")?i.recoveryValueFunc:Sf.recoveryValueFunc,s=this.ruleShortNameIdx<<Pw+Jo;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=t,this.fullRuleNameToShort[t]=s;function l(g){try{if(this.outputCst===!0){n.apply(this,g);var m=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(m),m}else return n.apply(this,g)}catch(h){return this.invokeRuleCatch(h,r,a)}finally{this.ruleFinallyStateUpdate()}}o(l,"invokeRuleWithTry");var u;u=o(function(g,m){return g===void 0&&(g=0),this.ruleInvocationStateUpdate(s,t,g),l.call(this,m)},"wrappedGrammarRule");var p="ruleName";return u[p]=t,u.originalGrammarAction=n,u},e.prototype.invokeRuleCatch=function(t,n,i){var r=this.RULE_STACK.length===1,a=n&&!this.isBackTracking()&&this.recoveryEnabled;if(Ma(t)){var s=t;if(a){var l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))if(s.resyncedTokens=this.reSyncTo(l),this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];return u.recoveredNode=!0,u}else return i();else{if(this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];u.recoveredNode=!0,s.partialCstResult=u}throw s}}else{if(r)return this.moveToTerminatedState(),i();throw s}}else throw t},e.prototype.optionInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(qy,n);return this.optionInternalLogic(t,n,i)},e.prototype.optionInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(t.DEF!==void 0){if(s=t.DEF,l=t.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=t;if(a.call(this)===!0)return s.call(this)},e.prototype.atLeastOneInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Kp,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=n;if(a.call(this)===!0)for(var p=this.doSingleRepetition(s);a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,kt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,Kp,t,ew)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(vf,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,RP],u,vf,t,RP)}else throw this.raiseEarlyExitException(t,kt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Wp,t);return this.manyInternalLogic(t,n,i)},e.prototype.manyInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookaheadFunction")}}else s=n;for(var p=!0;a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);this.attemptInRepetitionRecovery(this.manyInternal,[t,n],a,Wp,t,ZV,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Xp,t);this.manySepFirstInternalLogic(t,n,i)},e.prototype.manySepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,OP],u,Xp,t,OP)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,a){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,a],i,vf,t,a)},e.prototype.doSingleRepetition=function(t){var n=this.getLexerPosition();t.call(this);var i=this.getLexerPosition();return i>n},e.prototype.orInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Qy,n),r=ui(t)?t:t.DEF,a=this.getLaFuncFromCache(i),s=a.call(this,r);if(s!==void 0){var l=r[s];return l.ALT.call(this)}this.raiseNoAltException(n,t.ERR_MSG)},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){var t=this.LA(1),n=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Ky(n,t))}},e.prototype.subruleInternal=function(t,n,i){var r;try{var a=i!==void 0?i.ARGS:void 0;return r=t.call(this,n,a),this.cstPostNonTerminal(r,i!==void 0&&i.LABEL!==void 0?i.LABEL:t.ruleName),r}catch(s){this.subruleInternalError(s,i,t.ruleName)}},e.prototype.subruleInternalError=function(t,n,i){throw Ma(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,n!==void 0&&n.LABEL!==void 0?n.LABEL:i),delete t.partialCstResult),t},e.prototype.consumeInternal=function(t,n,i){var r;try{var a=this.LA(1);this.tokenMatcher(a,t)===!0?(this.consumeToken(),r=a):this.consumeInternalError(t,a,i)}catch(s){r=this.consumeInternalRecovery(t,n,s)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:t.name,r),r},e.prototype.consumeInternalError=function(t,n,i){var r,a=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new yf(r,n,a))},e.prototype.consumeInternalRecovery=function(t,n,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){var r=this.getFollowsForInRuleRecovery(t,n);try{return this.tryInRuleRecovery(t,r)}catch(a){throw a.name===wP?i:a}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=An(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:n,CST_STACK:this.CST_STACK}},e.prototype.reloadRecogState=function(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(t,n,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(n,t)},e.prototype.isBackTracking=function(){return this.isBackTrackingStack.length!==0},e.prototype.getCurrRuleFullName=function(){var t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]},e.prototype.shortRuleNameToFullName=function(t){return this.shortRuleNameToFull[t]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),Zr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var Hw,Gw=Ye(()=>{Tf();bt();Hp();Rr();Hw=function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Ie(t,"errorMessageProvider")?t.errorMessageProvider:or.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(Ma(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:An(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:o(function(){return An(this._errors)},"get"),set:o(function(t){this._errors=t},"set"),enumerable:!1,configurable:!0}),e.prototype.raiseEarlyExitException=function(t,n,i){for(var r=this.getCurrRuleFullName(),a=this.getGAstProductions()[r],s=Bp(t,a,n,this.maxLookahead),l=s[0],u=[],p=1;p<=this.maxLookahead;p++)u.push(this.LA(p));var g=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:l,actual:u,previous:this.LA(0),customUserDescription:i,ruleName:r});throw this.SAVE_ERROR(new Xy(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=$p(t,r,this.maxLookahead),s=[],l=1;l<=this.maxLookahead;l++)s.push(this.LA(l));var u=this.LA(0),p=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:u,customUserDescription:n,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new Wy(p,this.LA(1),u))},e}()});var Ww,Kw=Ye(()=>{jp();bt();Ww=function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Ii(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return Uy([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Ci(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new JV(r,t).startWalking();return a},e}()});function qp(e,t,n,i){i===void 0&&(i=!1),Zy(n);var r=Dp(this.recordingProdStack),a=bo(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),Ie(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),r.definition.push(s),this.recordingProdStack.pop(),eT}function rq(e,t){var n=this;Zy(t);var i=Dp(this.recordingProdStack),r=ui(e)===!1,a=r===!1?e:e.DEF,s=new Pn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Ie(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=Ty(a,function(u){return bo(u.GATE)});return s.hasPredicates=l,i.definition.push(s),Te(a,function(u){var p=new en({definition:[]});s.definition.push(p),Ie(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:Ie(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),eT}function qw(e){return e===0?"":""+e}function Zy(e){if(e<0||e>Qw){var t=new Error("Invalid DSL Method idx value: <"+e+`>
|
|
178
|
+
`+("Idx value must be a none negative value smaller than "+(Qw+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var eT,Xw,Qw,Yw,zw,iq,Jw,Zw=Ye(()=>{bt();ji();Vp();pf();_s();Rr();zy();eT={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(eT);Xw=!0,Qw=Math.pow(2,Jo)-1,Yw=Mp({name:"RECORDING_PHASE_TOKEN",pattern:Ui.NA});Va([Yw]);zw=Ds(Yw,`This IToken indicates the Parser is in Recording Phase
|
|
179
|
+
See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(zw);iq={name:`This CSTNode indicates the Parser is in Recording Phase
|
|
180
180
|
See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,children:{}},Jw=function(){function e(){}return o(e,"GastRecorder"),e.prototype.initGastRecorder=function(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1},e.prototype.enableRecording=function(){var t=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",function(){for(var n=o(function(r){var a=r>0?r:"";t["CONSUME"+a]=function(s,l){return this.consumeInternalRecord(s,r,l)},t["SUBRULE"+a]=function(s,l){return this.subruleInternalRecord(s,r,l)},t["OPTION"+a]=function(s){return this.optionInternalRecord(s,r)},t["OR"+a]=function(s){return this.orInternalRecord(s,r)},t["MANY"+a]=function(s){this.manyInternalRecord(r,s)},t["MANY_SEP"+a]=function(s){this.manySepFirstInternalRecord(r,s)},t["AT_LEAST_ONE"+a]=function(s){this.atLeastOneInternalRecord(r,s)},t["AT_LEAST_ONE_SEP"+a]=function(s){this.atLeastOneSepFirstInternalRecord(r,s)}},"_loop_1"),i=0;i<10;i++)n(i);t.consume=function(r,a,s){return this.consumeInternalRecord(a,r,s)},t.subrule=function(r,a,s){return this.subruleInternalRecord(a,r,s)},t.option=function(r,a){return this.optionInternalRecord(a,r)},t.or=function(r,a){return this.orInternalRecord(a,r)},t.many=function(r,a){this.manyInternalRecord(r,a)},t.atLeastOne=function(r,a){this.atLeastOneInternalRecord(r,a)},t.ACTION=t.ACTION_RECORD,t.BACKTRACK=t.BACKTRACK_RECORD,t.LA=t.LA_RECORD})},e.prototype.disableRecording=function(){var t=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",function(){for(var n=0;n<10;n++){var i=n>0?n:"";delete t["CONSUME"+i],delete t["SUBRULE"+i],delete t["OPTION"+i],delete t["OR"+i],delete t["MANY"+i],delete t["MANY_SEP"+i],delete t["AT_LEAST_ONE"+i],delete t["AT_LEAST_ONE_SEP"+i]}delete t.consume,delete t.subrule,delete t.option,delete t.or,delete t.many,delete t.atLeastOne,delete t.ACTION,delete t.BACKTRACK,delete t.LA})},e.prototype.ACTION_RECORD=function(t){},e.prototype.BACKTRACK_RECORD=function(t,n){return function(){return!0}},e.prototype.LA_RECORD=function(t){return bf},e.prototype.topLevelRuleRecord=function(t,n){try{var i=new Ir({definition:[],name:t});return i.name=t,this.recordingProdStack.push(i),n.call(this),this.recordingProdStack.pop(),i}catch(r){if(r.KNOWN_RECORDER_ERROR!==!0)try{r.message=r.message+`
|
|
181
181
|
This error was thrown during the "grammar recording phase" For more info see:
|
|
182
|
-
https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}},e.prototype.optionInternalRecord=function(t,n){return qp.call(this,sn,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){qp.call(this,Nn,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){qp.call(this,Fn,n,t,Xw)},e.prototype.manyInternalRecord=function(t,n){qp.call(this,Rt,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){qp.call(this,
|
|
183
|
-
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=Dp(this.recordingProdStack),s=t.ruleName,l=new an({idx:n,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?
|
|
184
|
-
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=Dp(this.recordingProdStack),s=new ht({idx:n,terminalType:t});return a.definition.push(s),zw},e}();o(qp,"recordProd");o(
|
|
182
|
+
https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}},e.prototype.optionInternalRecord=function(t,n){return qp.call(this,sn,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){qp.call(this,Nn,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){qp.call(this,Fn,n,t,Xw)},e.prototype.manyInternalRecord=function(t,n){qp.call(this,Rt,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){qp.call(this,En,n,t,Xw)},e.prototype.orInternalRecord=function(t,n){return rq.call(this,t,n)},e.prototype.subruleInternalRecord=function(t,n,i){if(Zy(n),!t||Ie(t,"ruleName")===!1){var r=new Error("<SUBRULE"+qw(n)+"> argument is invalid"+(" expecting a Parser method reference but got: <"+JSON.stringify(t)+">")+(`
|
|
183
|
+
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=Dp(this.recordingProdStack),s=t.ruleName,l=new an({idx:n,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?iq:eT},e.prototype.consumeInternalRecord=function(t,n,i){if(Zy(n),!AP(t)){var r=new Error("<CONSUME"+qw(n)+"> argument is invalid"+(" expecting a TokenType reference but got: <"+JSON.stringify(t)+">")+(`
|
|
184
|
+
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=Dp(this.recordingProdStack),s=new ht({idx:n,terminalType:t});return a.definition.push(s),zw},e}();o(qp,"recordProd");o(rq,"recordOrProd");o(qw,"getIdxSuffix");o(Zy,"assertMethodIdxIsValid")});var eM,tM=Ye(()=>{bt();Rr();eM=function(){function e(){}return o(e,"PerformanceTracer"),e.prototype.initPerformanceTracer=function(t){if(Ie(t,"traceInitPerf")){var n=t.traceInitPerf,i=typeof n=="number";this.traceInitMaxIdent=i?n:1/0,this.traceInitPerf=i?n>0:n}else this.traceInitMaxIdent=0,this.traceInitPerf=or.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=Sy(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e}()});function iM(e){return e===void 0&&(e=void 0),function(){return e}}var nM,bf,or,Sf,Gn,BP,rM,oM,Rr=Ye(()=>{bt();qV();_s();Up();_P();MP();Cw();ww();kw();jw();Bw();Gw();Kw();Zw();tM();nM=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),bf=Ds(Zr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(bf);or=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:kp,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Sf=Object.freeze({recoveryValueFunc:o(function(){},"recoveryValueFunc"),resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(Gn||(Gn={}));o(iM,"EMPTY_ALT");BP=function(){function e(t,n){this.definitionErrors=[],this.selfAnalysisDone=!1;var i=this;if(i.initErrorHandler(n),i.initLexerAdapter(),i.initLooksAhead(n),i.initRecognizerEngine(t,n),i.initRecoverable(n),i.initTreeBuilder(n),i.initContentAssist(),i.initGastRecorder(n),i.initPerformanceTracer(n),Ie(n,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
|
|
185
185
|
Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
|
|
186
186
|
See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
|
|
187
187
|
For further details.`);this.skipValidations=Ie(n,"skipValidations")?n.skipValidations:or.skipValidations}return o(e,"Parser"),e.performSelfAnalysis=function(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",function(){var n;t.selfAnalysisDone=!0;var i=t.className;t.TRACE_INIT("toFastProps",function(){by(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),Te(t.definedRulesNames,function(a){var s=t[a],l=s.originalGrammarAction,u=void 0;t.TRACE_INIT(a+" Rule",function(){u=t.topLevelRuleRecord(a,l)}),t.gastProductionsCache[a]=u})}finally{t.disableRecording()}});var r=[];if(t.TRACE_INIT("Grammar Resolving",function(){r=By({rules:wn(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(rt(r)&&t.skipValidations===!1){var a=Hy({rules:wn(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:wn(t.tokensMap),errMsgProvider:Vs,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,a)}}),rt(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var a=QV(wn(t.gastProductionsCache));t.resyncFollows=a}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(wn(t.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!rt(t.definitionErrors))throw n=de(t.definitionErrors,function(a){return a.message}),new Error(`Parser Definition Errors detected:
|
|
188
188
|
`+n.join(`
|
|
189
189
|
-------------------------------
|
|
190
|
-
`))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();cV(BP,[
|
|
190
|
+
`))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();cV(BP,[Ew,xw,Vw,Mw,$w,Uw,Hw,Ww,Jw,eM]);rM=function(e){nM(t,e);function t(n,i){i===void 0&&(i=or);var r=this,a=Ns(i);return a.outputCst=!0,r=e.call(this,n,a)||this,r}return o(t,"CstParser"),t}(BP),oM=function(e){nM(t,e);function t(n,i){i===void 0&&(i=or);var r=this,a=Ns(i);return a.outputCst=!1,r=e.call(this,n,a)||this,r}return o(t,"EmbeddedActionsParser"),t}(BP)});function aM(e,t){var n=t===void 0?{}:t,i=n.resourceBase,r=i===void 0?"https://unpkg.com/chevrotain@"+Rp+"/diagrams/":i,a=n.css,s=a===void 0?"https://unpkg.com/chevrotain@"+Rp+"/diagrams/diagrams.css":a,l=`
|
|
191
191
|
<!-- This is a generated file -->
|
|
192
192
|
<!DOCTYPE html>
|
|
193
193
|
<meta charset="utf-8">
|
|
@@ -249,7 +249,7 @@ function `+e.name+`(tokenVocabulary, config) {
|
|
|
249
249
|
|
|
250
250
|
const $ = this
|
|
251
251
|
|
|
252
|
-
`+
|
|
252
|
+
`+oq(e.rules)+`
|
|
253
253
|
|
|
254
254
|
// very important to call this after all the rules have been defined.
|
|
255
255
|
// otherwise the parser may not work correctly as it will lack information
|
|
@@ -260,15 +260,15 @@ function `+e.name+`(tokenVocabulary, config) {
|
|
|
260
260
|
// inheritance as implemented in javascript in the previous decade... :(
|
|
261
261
|
`+e.name+`.prototype = Object.create(chevrotain.CstParser.prototype)
|
|
262
262
|
`+e.name+".prototype.constructor = "+e.name+`
|
|
263
|
-
`;return t}function
|
|
264
|
-
`)}function
|
|
265
|
-
`;o(lM,"genUmdModule");o(fM,"genWrapperFunction");o(uM,"genClass");o(
|
|
263
|
+
`;return t}function oq(e){var t=de(e,function(n){return aq(n,1)});return t.join(`
|
|
264
|
+
`)}function aq(e,t){var n=$i(t,'$.RULE("'+e.name+'", function() {')+ei;return n+=tT(e.definition,t+1),n+=$i(t+1,"})")+ei,n}function sq(e,t){var n=e.terminalType.name;return $i(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+ei)}function cq(e,t){return $i(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+ei)}function lq(e,t){var n=$i(t,"$.OR"+e.idx+"([")+ei,i=de(e.definition,function(r){return fq(r,t+1)});return n+=i.join(","+ei),n+=ei+$i(t,"])"+ei),n}function fq(e,t){var n=$i(t,"{")+ei;return n+=$i(t+1,"ALT: function() {")+ei,n+=tT(e.definition,t+1),n+=$i(t+1,"}")+ei,n+=$i(t,"}"),n}function uq(e,t){if(e instanceof an)return cq(e,t);if(e instanceof sn)return Yp("OPTION",e,t);if(e instanceof Nn)return Yp("AT_LEAST_ONE",e,t);if(e instanceof Fn)return Yp("AT_LEAST_ONE_SEP",e,t);if(e instanceof En)return Yp("MANY_SEP",e,t);if(e instanceof Rt)return Yp("MANY",e,t);if(e instanceof Pn)return lq(e,t);if(e instanceof ht)return sq(e,t);if(e instanceof en)return tT(e.definition,t);throw Error("non exhaustive match")}function Yp(e,t,n){var i=$i(n,"$."+(e+t.idx)+"(");return t.separator?(i+="{"+ei,i+=$i(n+1,"SEP: this.tokensMap."+t.separator.name)+","+ei,i+="DEF: "+cM(t.definition,n+2)+ei,i+=$i(n,"}")+ei):i+=cM(t.definition,n+1),i+=$i(n,")")+ei,i}function cM(e,t){var n="function() {"+ei;return n+=tT(e,t),n+=$i(t,"}")+ei,n}function tT(e,t){var n="";return Te(e,function(i){n+=uq(i,t+1)}),n}function $i(e,t){var n=Array(e*4+1).join(" ");return n+t}var ei,pM=Ye(()=>{bt();ji();ei=`
|
|
265
|
+
`;o(lM,"genUmdModule");o(fM,"genWrapperFunction");o(uM,"genClass");o(oq,"genAllRules");o(aq,"genRule");o(sq,"genTerminal");o(cq,"genNonTerminal");o(lq,"genAlternation");o(fq,"genSingleAlt");o(uq,"genProd");o(Yp,"genDSLRule");o(cM,"genDefFunction");o(tT,"genDefinition");o($i,"indent")});function dM(e){var t=fM({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(iT(),kg(nT)))}}function gM(e){return lM({name:e.name,rules:e.rules})}var mM=Ye(()=>{pM();o(dM,"generateParserFactory");o(gM,"generateParserModule")});var nT={};lc(nT,{Alternation:()=>Pn,Alternative:()=>en,CstParser:()=>rM,EMPTY_ALT:()=>iM,EOF:()=>Zr,EarlyExitException:()=>Xy,EmbeddedActionsParser:()=>oM,GAstVisitor:()=>eo,Lexer:()=>Ui,LexerDefinitionErrorType:()=>gn,MismatchedTokenException:()=>yf,NoViableAltException:()=>Wy,NonTerminal:()=>an,NotAllInputParsedException:()=>Ky,Option:()=>sn,Parser:()=>dq,ParserDefinitionErrorType:()=>Gn,Repetition:()=>Rt,RepetitionMandatory:()=>Nn,RepetitionMandatoryWithSeparator:()=>Fn,RepetitionWithSeparator:()=>En,Rule:()=>Ir,Terminal:()=>ht,VERSION:()=>Rp,assignOccurrenceIndices:()=>hw,clearCache:()=>pq,createSyntaxDiagramsCode:()=>aM,createToken:()=>Mp,createTokenInstance:()=>Ds,defaultGrammarResolverErrorProvider:()=>wy,defaultGrammarValidatorErrorProvider:()=>Vs,defaultLexerErrorProvider:()=>Ny,defaultParserErrorProvider:()=>kp,generateParserFactory:()=>dM,generateParserModule:()=>gM,isRecognitionException:()=>Ma,resolveGrammar:()=>By,serializeGrammar:()=>Fy,serializeProduction:()=>df,tokenLabel:()=>zo,tokenMatcher:()=>HV,tokenName:()=>BV,validateGrammar:()=>Hy});function pq(){console.warn(`The clearCache function was 'soft' removed from the Chevrotain API.
|
|
266
266
|
It performs no action other than printing this message.
|
|
267
|
-
Please avoid using it as it will be completely removed in the future`)}var
|
|
268
|
-
See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0`)}return o(e,"Parser"),e}()});var WP=ze((
|
|
269
|
-
`],lineTerminatorsPattern:/\n|\r\n/g});SM.exports={xmlLexer:Vq,tokensDictionary:TM}});var AM=ze((Rde,EM)=>{var{CstParser:wq,tokenMatcher:Mq}=(iT(),kg(nT)),{tokensDictionary:xt}=WP(),XP=class XP extends wq{constructor(){super(xt,{maxLookahead:1,recoveryEnabled:!0,nodeLocationTracking:"full"}),this.deletionRecoveryEnabled=!0;let t=this;t.RULE("document",()=>{t.OPTION(()=>{t.SUBRULE(t.prolog)}),t.MANY(()=>{t.SUBRULE(t.misc)}),t.OPTION2(()=>{t.SUBRULE(t.docTypeDecl)}),t.MANY2(()=>{t.SUBRULE2(t.misc)}),t.SUBRULE(t.element),t.MANY3(()=>{t.SUBRULE3(t.misc)})}),t.RULE("prolog",()=>{t.CONSUME(xt.XMLDeclOpen),t.MANY(()=>{t.SUBRULE(t.attribute)}),t.CONSUME(xt.SPECIAL_CLOSE)}),t.RULE("docTypeDecl",()=>{t.CONSUME(xt.DocType),t.CONSUME(xt.Name),t.OPTION(()=>{t.SUBRULE(t.externalID)}),t.CONSUME(xt.CLOSE)}),t.RULE("externalID",()=>{t.OR([{GATE:o(()=>t.LA(1).image==="SYSTEM","GATE"),ALT:o(()=>{t.CONSUME2(xt.Name,{LABEL:"System"}),t.CONSUME(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")},{GATE:o(()=>t.LA(1).image==="PUBLIC","GATE"),ALT:o(()=>{t.CONSUME3(xt.Name,{LABEL:"Public"}),t.CONSUME2(xt.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")}])}),t.RULE("content",()=>{t.MANY(()=>{t.OR([{ALT:o(()=>t.SUBRULE(t.element),"ALT")},{ALT:o(()=>t.SUBRULE(t.chardata),"ALT")},{ALT:o(()=>t.SUBRULE(t.reference),"ALT")},{ALT:o(()=>t.CONSUME(xt.CData),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")}])})}),t.RULE("element",()=>{t.CONSUME(xt.OPEN);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.Name)}finally{this.deletionRecoveryEnabled=!0}t.MANY(()=>{t.SUBRULE(t.attribute)}),t.OR([{ALT:o(()=>{t.CONSUME(xt.CLOSE,{LABEL:"START_CLOSE"}),t.SUBRULE(t.content),t.CONSUME(xt.SLASH_OPEN),t.CONSUME2(xt.Name,{LABEL:"END_NAME"}),t.CONSUME2(xt.CLOSE,{LABEL:"END"})},"ALT")},{ALT:o(()=>{t.CONSUME(xt.SLASH_CLOSE)},"ALT")}])}),t.RULE("reference",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.EntityRef),"ALT")},{ALT:o(()=>t.CONSUME(xt.CharRef),"ALT")}])}),t.RULE("attribute",()=>{t.CONSUME(xt.Name);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.EQUALS),t.CONSUME(xt.STRING)}finally{this.deletionRecoveryEnabled=!0}}),t.RULE("chardata",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.TEXT),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),t.RULE("misc",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),this.performSelfAnalysis()}canRecoverWithSingleTokenDeletion(t){return this.deletionRecoveryEnabled===!1?!1:super.canRecoverWithSingleTokenDeletion(t)}findReSyncTokenType(){let t=this.flattenFollowSet(),n=this.LA(1),i=2;for(;;){let r=t.find(a=>Mq(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(XP,"Parser");var KP=XP,kq=new KP;EM.exports={xmlParser:kq}});var QP=ze((Nde,PM)=>{var{xmlLexer:Uq}=WP(),{xmlParser:rT}=AM();PM.exports={parse:o(function(t){let n=Uq.tokenize(t);return rT.input=n.tokens,{cst:rT.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:rT.errors}},"parse"),BaseXmlCstVisitor:rT.getBaseCstVisitorConstructor()}});var Zp=ze((Af,Jp)=>{(function(){var e,t="4.17.21",n=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",r="Expected a function",a="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",l=500,u="__lodash_placeholder__",p=1,g=2,m=4,h=1,S=2,b=1,O=2,N=4,M=8,G=16,j=32,re=64,Z=128,oe=256,Pe=512,D=30,ut="...",yt=800,je=16,cn=1,Wn=2,nn=3,Nt=1/0,Ne=9007199254740991,Ri=17976931348623157e292,Ct=NaN,Ut=4294967295,ln=Ut-1,Wi=Ut>>>1,Fe=[["ary",Z],["bind",b],["bindKey",O],["curry",M],["curryRight",G],["flip",Pe],["partial",j],["partialRight",re],["rearg",oe]],Kn="[object Arguments]",Dr="[object Array]",ot="[object AsyncFunction]",I="[object Boolean]",A="[object Date]",Y="[object DOMException]",V="[object Error]",_e="[object Function]",Ft="[object GeneratorFunction]",qe="[object Map]",jt="[object Number]",Tn="[object Null]",fn="[object Object]",Gt="[object Promise]",ti="[object Proxy]",fr="[object RegExp]",mn="[object Set]",Ti="[object String]",Wt="[object Symbol]",na="[object Undefined]",Ki="[object WeakMap]",Jf="[object WeakSet]",Js="[object ArrayBuffer]",_r="[object DataView]",Zf="[object Float32Array]",eu="[object Float64Array]",tu="[object Int8Array]",Zs="[object Int16Array]",U="[object Int32Array]",B="[object Uint8Array]",q="[object Uint8ClampedArray]",le="[object Uint16Array]",Le="[object Uint32Array]",hn=/\b__p \+= '';/g,Cn=/\b(__p \+=) '' \+/g,et=/(__e\(.*?\)|\b__t\)) \+\n'';/g,he=/&(?:amp|lt|gt|quot|#39);/g,be=/[&<>"']/g,xe=RegExp(he.source),Oe=RegExp(be.source),it=/<%-([\s\S]+?)%>/g,Kt=/<%([\s\S]+?)%>/g,un=/<%=([\s\S]+?)%>/g,ur=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qd=/^\w*$/,qT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nu=/[\\^$.*+?()[\]{}|]/g,x2=RegExp(nu.source),YT=/^\s+/,C2=/\s/,I2=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,O2=/\{\n\/\* \[wrapped with (.+)\] \*/,R2=/,? & /,L2=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,N2=/[()=,{}\[\]\/\s]/,F2=/\\(\\)?/g,D2=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,jI=/\w*$/,_2=/^[-+]0x[0-9a-f]+$/i,V2=/^0b[01]+$/i,w2=/^\[object .+?Constructor\]$/,M2=/^0o[0-7]+$/i,k2=/^(?:0|[1-9]\d*)$/,U2=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qd=/($^)/,j2=/['\n\r\u2028\u2029\\]/g,Yd="\\ud800-\\udfff",$2="\\u0300-\\u036f",B2="\\ufe20-\\ufe2f",H2="\\u20d0-\\u20ff",$I=$2+B2+H2,BI="\\u2700-\\u27bf",HI="a-z\\xdf-\\xf6\\xf8-\\xff",G2="\\xac\\xb1\\xd7\\xf7",W2="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",K2="\\u2000-\\u206f",X2=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",GI="A-Z\\xc0-\\xd6\\xd8-\\xde",WI="\\ufe0e\\ufe0f",KI=G2+W2+K2+X2,zT="['\u2019]",Q2="["+Yd+"]",XI="["+KI+"]",zd="["+$I+"]",QI="\\d+",q2="["+BI+"]",qI="["+HI+"]",YI="[^"+Yd+KI+QI+BI+HI+GI+"]",JT="\\ud83c[\\udffb-\\udfff]",Y2="(?:"+zd+"|"+JT+")",zI="[^"+Yd+"]",ZT="(?:\\ud83c[\\udde6-\\uddff]){2}",ev="[\\ud800-\\udbff][\\udc00-\\udfff]",al="["+GI+"]",JI="\\u200d",ZI="(?:"+qI+"|"+YI+")",z2="(?:"+al+"|"+YI+")",eO="(?:"+zT+"(?:d|ll|m|re|s|t|ve))?",tO="(?:"+zT+"(?:D|LL|M|RE|S|T|VE))?",nO=Y2+"?",iO="["+WI+"]?",J2="(?:"+JI+"(?:"+[zI,ZT,ev].join("|")+")"+iO+nO+")*",Z2="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",eU="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rO=iO+nO+J2,tU="(?:"+[q2,ZT,ev].join("|")+")"+rO,nU="(?:"+[zI+zd+"?",zd,ZT,ev,Q2].join("|")+")",iU=RegExp(zT,"g"),rU=RegExp(zd,"g"),tv=RegExp(JT+"(?="+JT+")|"+nU+rO,"g"),oU=RegExp([al+"?"+qI+"+"+eO+"(?="+[XI,al,"$"].join("|")+")",z2+"+"+tO+"(?="+[XI,al+ZI,"$"].join("|")+")",al+"?"+ZI+"+"+eO,al+"+"+tO,eU,Z2,QI,tU].join("|"),"g"),aU=RegExp("["+JI+Yd+$I+WI+"]"),sU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cU=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],lU=-1,rn={};rn[Zf]=rn[eu]=rn[tu]=rn[Zs]=rn[U]=rn[B]=rn[q]=rn[le]=rn[Le]=!0,rn[Kn]=rn[Dr]=rn[Js]=rn[I]=rn[_r]=rn[A]=rn[V]=rn[_e]=rn[qe]=rn[jt]=rn[fn]=rn[fr]=rn[mn]=rn[Ti]=rn[Ki]=!1;var zt={};zt[Kn]=zt[Dr]=zt[Js]=zt[_r]=zt[I]=zt[A]=zt[Zf]=zt[eu]=zt[tu]=zt[Zs]=zt[U]=zt[qe]=zt[jt]=zt[fn]=zt[fr]=zt[mn]=zt[Ti]=zt[Wt]=zt[B]=zt[q]=zt[le]=zt[Le]=!0,zt[V]=zt[_e]=zt[Ki]=!1;var fU={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},uU={"&":"&","<":"<",">":">",'"':""","'":"'"},pU={"&":"&","<":"<",">":">",""":'"',"'":"'"},dU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},gU=parseFloat,mU=parseInt,oO=typeof global=="object"&&global&&global.Object===Object&&global,hU=typeof self=="object"&&self&&self.Object===Object&&self,Xn=oO||hU||Function("return this")(),nv=typeof Af=="object"&&Af&&!Af.nodeType&&Af,ec=nv&&typeof Jp=="object"&&Jp&&!Jp.nodeType&&Jp,aO=ec&&ec.exports===nv,iv=aO&&oO.process,Vr=function(){try{var w=ec&&ec.require&&ec.require("util").types;return w||iv&&iv.binding&&iv.binding("util")}catch{}}(),sO=Vr&&Vr.isArrayBuffer,cO=Vr&&Vr.isDate,lO=Vr&&Vr.isMap,fO=Vr&&Vr.isRegExp,uO=Vr&&Vr.isSet,pO=Vr&&Vr.isTypedArray;function pr(w,X,K){switch(K.length){case 0:return w.call(X);case 1:return w.call(X,K[0]);case 2:return w.call(X,K[0],K[1]);case 3:return w.call(X,K[0],K[1],K[2])}return w.apply(X,K)}o(pr,"apply");function yU(w,X,K,Ee){for(var We=-1,Et=w==null?0:w.length;++We<Et;){var jn=w[We];X(Ee,jn,K(jn),w)}return Ee}o(yU,"arrayAggregator");function wr(w,X){for(var K=-1,Ee=w==null?0:w.length;++K<Ee&&X(w[K],K,w)!==!1;);return w}o(wr,"arrayEach");function TU(w,X){for(var K=w==null?0:w.length;K--&&X(w[K],K,w)!==!1;);return w}o(TU,"arrayEachRight");function dO(w,X){for(var K=-1,Ee=w==null?0:w.length;++K<Ee;)if(!X(w[K],K,w))return!1;return!0}o(dO,"arrayEvery");function Wa(w,X){for(var K=-1,Ee=w==null?0:w.length,We=0,Et=[];++K<Ee;){var jn=w[K];X(jn,K,w)&&(Et[We++]=jn)}return Et}o(Wa,"arrayFilter");function Jd(w,X){var K=w==null?0:w.length;return!!K&&sl(w,X,0)>-1}o(Jd,"arrayIncludes");function rv(w,X,K){for(var Ee=-1,We=w==null?0:w.length;++Ee<We;)if(K(X,w[Ee]))return!0;return!1}o(rv,"arrayIncludesWith");function pn(w,X){for(var K=-1,Ee=w==null?0:w.length,We=Array(Ee);++K<Ee;)We[K]=X(w[K],K,w);return We}o(pn,"arrayMap");function Ka(w,X){for(var K=-1,Ee=X.length,We=w.length;++K<Ee;)w[We+K]=X[K];return w}o(Ka,"arrayPush");function ov(w,X,K,Ee){var We=-1,Et=w==null?0:w.length;for(Ee&&Et&&(K=w[++We]);++We<Et;)K=X(K,w[We],We,w);return K}o(ov,"arrayReduce");function vU(w,X,K,Ee){var We=w==null?0:w.length;for(Ee&&We&&(K=w[--We]);We--;)K=X(K,w[We],We,w);return K}o(vU,"arrayReduceRight");function av(w,X){for(var K=-1,Ee=w==null?0:w.length;++K<Ee;)if(X(w[K],K,w))return!0;return!1}o(av,"arraySome");var bU=sv("length");function SU(w){return w.split("")}o(SU,"asciiToArray");function EU(w){return w.match(L2)||[]}o(EU,"asciiWords");function gO(w,X,K){var Ee;return K(w,function(We,Et,jn){if(X(We,Et,jn))return Ee=Et,!1}),Ee}o(gO,"baseFindKey");function Zd(w,X,K,Ee){for(var We=w.length,Et=K+(Ee?1:-1);Ee?Et--:++Et<We;)if(X(w[Et],Et,w))return Et;return-1}o(Zd,"baseFindIndex");function sl(w,X,K){return X===X?_U(w,X,K):Zd(w,mO,K)}o(sl,"baseIndexOf");function AU(w,X,K,Ee){for(var We=K-1,Et=w.length;++We<Et;)if(Ee(w[We],X))return We;return-1}o(AU,"baseIndexOfWith");function mO(w){return w!==w}o(mO,"baseIsNaN");function hO(w,X){var K=w==null?0:w.length;return K?lv(w,X)/K:Ct}o(hO,"baseMean");function sv(w){return function(X){return X==null?e:X[w]}}o(sv,"baseProperty");function cv(w){return function(X){return w==null?e:w[X]}}o(cv,"basePropertyOf");function yO(w,X,K,Ee,We){return We(w,function(Et,jn,Xt){K=Ee?(Ee=!1,Et):X(K,Et,jn,Xt)}),K}o(yO,"baseReduce");function PU(w,X){var K=w.length;for(w.sort(X);K--;)w[K]=w[K].value;return w}o(PU,"baseSortBy");function lv(w,X){for(var K,Ee=-1,We=w.length;++Ee<We;){var Et=X(w[Ee]);Et!==e&&(K=K===e?Et:K+Et)}return K}o(lv,"baseSum");function fv(w,X){for(var K=-1,Ee=Array(w);++K<w;)Ee[K]=X(K);return Ee}o(fv,"baseTimes");function xU(w,X){return pn(X,function(K){return[K,w[K]]})}o(xU,"baseToPairs");function TO(w){return w&&w.slice(0,EO(w)+1).replace(YT,"")}o(TO,"baseTrim");function dr(w){return function(X){return w(X)}}o(dr,"baseUnary");function uv(w,X){return pn(X,function(K){return w[K]})}o(uv,"baseValues");function iu(w,X){return w.has(X)}o(iu,"cacheHas");function vO(w,X){for(var K=-1,Ee=w.length;++K<Ee&&sl(X,w[K],0)>-1;);return K}o(vO,"charsStartIndex");function bO(w,X){for(var K=w.length;K--&&sl(X,w[K],0)>-1;);return K}o(bO,"charsEndIndex");function CU(w,X){for(var K=w.length,Ee=0;K--;)w[K]===X&&++Ee;return Ee}o(CU,"countHolders");var IU=cv(fU),OU=cv(uU);function RU(w){return"\\"+dU[w]}o(RU,"escapeStringChar");function LU(w,X){return w==null?e:w[X]}o(LU,"getValue");function cl(w){return aU.test(w)}o(cl,"hasUnicode");function NU(w){return sU.test(w)}o(NU,"hasUnicodeWord");function FU(w){for(var X,K=[];!(X=w.next()).done;)K.push(X.value);return K}o(FU,"iteratorToArray");function pv(w){var X=-1,K=Array(w.size);return w.forEach(function(Ee,We){K[++X]=[We,Ee]}),K}o(pv,"mapToArray");function SO(w,X){return function(K){return w(X(K))}}o(SO,"overArg");function Xa(w,X){for(var K=-1,Ee=w.length,We=0,Et=[];++K<Ee;){var jn=w[K];(jn===X||jn===u)&&(w[K]=u,Et[We++]=K)}return Et}o(Xa,"replaceHolders");function eg(w){var X=-1,K=Array(w.size);return w.forEach(function(Ee){K[++X]=Ee}),K}o(eg,"setToArray");function DU(w){var X=-1,K=Array(w.size);return w.forEach(function(Ee){K[++X]=[Ee,Ee]}),K}o(DU,"setToPairs");function _U(w,X,K){for(var Ee=K-1,We=w.length;++Ee<We;)if(w[Ee]===X)return Ee;return-1}o(_U,"strictIndexOf");function VU(w,X,K){for(var Ee=K+1;Ee--;)if(w[Ee]===X)return Ee;return Ee}o(VU,"strictLastIndexOf");function ll(w){return cl(w)?MU(w):bU(w)}o(ll,"stringSize");function ao(w){return cl(w)?kU(w):SU(w)}o(ao,"stringToArray");function EO(w){for(var X=w.length;X--&&C2.test(w.charAt(X)););return X}o(EO,"trimmedEndIndex");var wU=cv(pU);function MU(w){for(var X=tv.lastIndex=0;tv.test(w);)++X;return X}o(MU,"unicodeSize");function kU(w){return w.match(tv)||[]}o(kU,"unicodeToArray");function UU(w){return w.match(oU)||[]}o(UU,"unicodeWords");var jU=o(function w(X){X=X==null?Xn:Qa.defaults(Xn.Object(),X,Qa.pick(Xn,cU));var K=X.Array,Ee=X.Date,We=X.Error,Et=X.Function,jn=X.Math,Xt=X.Object,dv=X.RegExp,$U=X.String,Mr=X.TypeError,tg=K.prototype,BU=Et.prototype,fl=Xt.prototype,ng=X["__core-js_shared__"],ig=BU.toString,Dt=fl.hasOwnProperty,HU=0,AO=function(){var c=/[^.]+$/.exec(ng&&ng.keys&&ng.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),rg=fl.toString,GU=ig.call(Xt),WU=Xn._,KU=dv("^"+ig.call(Dt).replace(nu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),og=aO?X.Buffer:e,qa=X.Symbol,ag=X.Uint8Array,PO=og?og.allocUnsafe:e,sg=SO(Xt.getPrototypeOf,Xt),xO=Xt.create,CO=fl.propertyIsEnumerable,cg=tg.splice,IO=qa?qa.isConcatSpreadable:e,ru=qa?qa.iterator:e,tc=qa?qa.toStringTag:e,lg=function(){try{var c=ac(Xt,"defineProperty");return c({},"",{}),c}catch{}}(),XU=X.clearTimeout!==Xn.clearTimeout&&X.clearTimeout,QU=Ee&&Ee.now!==Xn.Date.now&&Ee.now,qU=X.setTimeout!==Xn.setTimeout&&X.setTimeout,fg=jn.ceil,ug=jn.floor,gv=Xt.getOwnPropertySymbols,YU=og?og.isBuffer:e,OO=X.isFinite,zU=tg.join,JU=SO(Xt.keys,Xt),$n=jn.max,vi=jn.min,ZU=Ee.now,ej=X.parseInt,RO=jn.random,tj=tg.reverse,mv=ac(X,"DataView"),ou=ac(X,"Map"),hv=ac(X,"Promise"),ul=ac(X,"Set"),au=ac(X,"WeakMap"),su=ac(Xt,"create"),pg=au&&new au,pl={},nj=sc(mv),ij=sc(ou),rj=sc(hv),oj=sc(ul),aj=sc(au),dg=qa?qa.prototype:e,cu=dg?dg.valueOf:e,LO=dg?dg.toString:e;function P(c){if(vn(c)&&!Qe(c)&&!(c instanceof pt)){if(c instanceof kr)return c;if(Dt.call(c,"__wrapped__"))return NR(c)}return new kr(c)}o(P,"lodash");var dl=function(){function c(){}return o(c,"object"),function(f){if(!yn(f))return{};if(xO)return xO(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function gg(){}o(gg,"baseLodash");function kr(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}o(kr,"LodashWrapper"),P.templateSettings={escape:it,evaluate:Kt,interpolate:un,variable:"",imports:{_:P}},P.prototype=gg.prototype,P.prototype.constructor=P,kr.prototype=dl(gg.prototype),kr.prototype.constructor=kr;function pt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ut,this.__views__=[]}o(pt,"LazyWrapper");function sj(){var c=new pt(this.__wrapped__);return c.__actions__=Xi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Xi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Xi(this.__views__),c}o(sj,"lazyClone");function cj(){if(this.__filtered__){var c=new pt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(cj,"lazyReverse");function lj(){var c=this.__wrapped__.value(),f=this.__dir__,d=Qe(c),v=f<0,E=d?c.length:0,C=E4(0,E,this.__views__),L=C.start,F=C.end,k=F-L,z=v?F:L-1,J=this.__iteratees__,ne=J.length,me=0,Re=vi(k,this.__takeCount__);if(!d||!v&&E==k&&Re==k)return eR(c,this.__actions__);var Me=[];e:for(;k--&&me<Re;){z+=f;for(var Ze=-1,ke=c[z];++Ze<ne;){var at=J[Ze],gt=at.iteratee,hr=at.type,Fi=gt(ke);if(hr==Wn)ke=Fi;else if(!Fi){if(hr==cn)continue e;break e}}Me[me++]=ke}return Me}o(lj,"lazyValue"),pt.prototype=dl(gg.prototype),pt.prototype.constructor=pt;function nc(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(nc,"Hash");function fj(){this.__data__=su?su(null):{},this.size=0}o(fj,"hashClear");function uj(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(uj,"hashDelete");function pj(c){var f=this.__data__;if(su){var d=f[c];return d===s?e:d}return Dt.call(f,c)?f[c]:e}o(pj,"hashGet");function dj(c){var f=this.__data__;return su?f[c]!==e:Dt.call(f,c)}o(dj,"hashHas");function gj(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=su&&f===e?s:f,this}o(gj,"hashSet"),nc.prototype.clear=fj,nc.prototype.delete=uj,nc.prototype.get=pj,nc.prototype.has=dj,nc.prototype.set=gj;function ia(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(ia,"ListCache");function mj(){this.__data__=[],this.size=0}o(mj,"listCacheClear");function hj(c){var f=this.__data__,d=mg(f,c);if(d<0)return!1;var v=f.length-1;return d==v?f.pop():cg.call(f,d,1),--this.size,!0}o(hj,"listCacheDelete");function yj(c){var f=this.__data__,d=mg(f,c);return d<0?e:f[d][1]}o(yj,"listCacheGet");function Tj(c){return mg(this.__data__,c)>-1}o(Tj,"listCacheHas");function vj(c,f){var d=this.__data__,v=mg(d,c);return v<0?(++this.size,d.push([c,f])):d[v][1]=f,this}o(vj,"listCacheSet"),ia.prototype.clear=mj,ia.prototype.delete=hj,ia.prototype.get=yj,ia.prototype.has=Tj,ia.prototype.set=vj;function ra(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(ra,"MapCache");function bj(){this.size=0,this.__data__={hash:new nc,map:new(ou||ia),string:new nc}}o(bj,"mapCacheClear");function Sj(c){var f=Ig(this,c).delete(c);return this.size-=f?1:0,f}o(Sj,"mapCacheDelete");function Ej(c){return Ig(this,c).get(c)}o(Ej,"mapCacheGet");function Aj(c){return Ig(this,c).has(c)}o(Aj,"mapCacheHas");function Pj(c,f){var d=Ig(this,c),v=d.size;return d.set(c,f),this.size+=d.size==v?0:1,this}o(Pj,"mapCacheSet"),ra.prototype.clear=bj,ra.prototype.delete=Sj,ra.prototype.get=Ej,ra.prototype.has=Aj,ra.prototype.set=Pj;function ic(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new ra;++f<d;)this.add(c[f])}o(ic,"SetCache");function xj(c){return this.__data__.set(c,s),this}o(xj,"setCacheAdd");function Cj(c){return this.__data__.has(c)}o(Cj,"setCacheHas"),ic.prototype.add=ic.prototype.push=xj,ic.prototype.has=Cj;function so(c){var f=this.__data__=new ia(c);this.size=f.size}o(so,"Stack");function Ij(){this.__data__=new ia,this.size=0}o(Ij,"stackClear");function Oj(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(Oj,"stackDelete");function Rj(c){return this.__data__.get(c)}o(Rj,"stackGet");function Lj(c){return this.__data__.has(c)}o(Lj,"stackHas");function Nj(c,f){var d=this.__data__;if(d instanceof ia){var v=d.__data__;if(!ou||v.length<n-1)return v.push([c,f]),this.size=++d.size,this;d=this.__data__=new ra(v)}return d.set(c,f),this.size=d.size,this}o(Nj,"stackSet"),so.prototype.clear=Ij,so.prototype.delete=Oj,so.prototype.get=Rj,so.prototype.has=Lj,so.prototype.set=Nj;function NO(c,f){var d=Qe(c),v=!d&&cc(c),E=!d&&!v&&es(c),C=!d&&!v&&!E&&yl(c),L=d||v||E||C,F=L?fv(c.length,$U):[],k=F.length;for(var z in c)(f||Dt.call(c,z))&&!(L&&(z=="length"||E&&(z=="offset"||z=="parent")||C&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||ca(z,k)))&&F.push(z);return F}o(NO,"arrayLikeKeys");function FO(c){var f=c.length;return f?c[Iv(0,f-1)]:e}o(FO,"arraySample");function Fj(c,f){return Og(Xi(c),rc(f,0,c.length))}o(Fj,"arraySampleSize");function Dj(c){return Og(Xi(c))}o(Dj,"arrayShuffle");function yv(c,f,d){(d!==e&&!co(c[f],d)||d===e&&!(f in c))&&oa(c,f,d)}o(yv,"assignMergeValue");function lu(c,f,d){var v=c[f];(!(Dt.call(c,f)&&co(v,d))||d===e&&!(f in c))&&oa(c,f,d)}o(lu,"assignValue");function mg(c,f){for(var d=c.length;d--;)if(co(c[d][0],f))return d;return-1}o(mg,"assocIndexOf");function _j(c,f,d,v){return Ya(c,function(E,C,L){f(v,E,d(E),L)}),v}o(_j,"baseAggregator");function DO(c,f){return c&&Lo(f,Qn(f),c)}o(DO,"baseAssign");function Vj(c,f){return c&&Lo(f,qi(f),c)}o(Vj,"baseAssignIn");function oa(c,f,d){f=="__proto__"&&lg?lg(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(oa,"baseAssignValue");function Tv(c,f){for(var d=-1,v=f.length,E=K(v),C=c==null;++d<v;)E[d]=C?e:Jv(c,f[d]);return E}o(Tv,"baseAt");function rc(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o(rc,"baseClamp");function Ur(c,f,d,v,E,C){var L,F=f&p,k=f&g,z=f&m;if(d&&(L=E?d(c,v,E,C):d(c)),L!==e)return L;if(!yn(c))return c;var J=Qe(c);if(J){if(L=P4(c),!F)return Xi(c,L)}else{var ne=bi(c),me=ne==_e||ne==Ft;if(es(c))return iR(c,F);if(ne==fn||ne==Kn||me&&!E){if(L=k||me?{}:ER(c),!F)return k?p4(c,Vj(L,c)):u4(c,DO(L,c))}else{if(!zt[ne])return E?c:{};L=x4(c,ne,F)}}C||(C=new so);var Re=C.get(c);if(Re)return Re;C.set(c,L),zR(c)?c.forEach(function(ke){L.add(Ur(ke,f,d,ke,c,C))}):qR(c)&&c.forEach(function(ke,at){L.set(at,Ur(ke,f,d,at,c,C))});var Me=z?k?kv:Mv:k?qi:Qn,Ze=J?e:Me(c);return wr(Ze||c,function(ke,at){Ze&&(at=ke,ke=c[at]),lu(L,at,Ur(ke,f,d,at,c,C))}),L}o(Ur,"baseClone");function wj(c){var f=Qn(c);return function(d){return _O(d,c,f)}}o(wj,"baseConforms");function _O(c,f,d){var v=d.length;if(c==null)return!v;for(c=Xt(c);v--;){var E=d[v],C=f[E],L=c[E];if(L===e&&!(E in c)||!C(L))return!1}return!0}o(_O,"baseConformsTo");function VO(c,f,d){if(typeof c!="function")throw new Mr(r);return hu(function(){c.apply(e,d)},f)}o(VO,"baseDelay");function fu(c,f,d,v){var E=-1,C=Jd,L=!0,F=c.length,k=[],z=f.length;if(!F)return k;d&&(f=pn(f,dr(d))),v?(C=rv,L=!1):f.length>=n&&(C=iu,L=!1,f=new ic(f));e:for(;++E<F;){var J=c[E],ne=d==null?J:d(J);if(J=v||J!==0?J:0,L&&ne===ne){for(var me=z;me--;)if(f[me]===ne)continue e;k.push(J)}else C(f,ne,v)||k.push(J)}return k}o(fu,"baseDifference");var Ya=cR(Ro),wO=cR(bv,!0);function Mj(c,f){var d=!0;return Ya(c,function(v,E,C){return d=!!f(v,E,C),d}),d}o(Mj,"baseEvery");function hg(c,f,d){for(var v=-1,E=c.length;++v<E;){var C=c[v],L=f(C);if(L!=null&&(F===e?L===L&&!mr(L):d(L,F)))var F=L,k=C}return k}o(hg,"baseExtremum");function kj(c,f,d,v){var E=c.length;for(d=Je(d),d<0&&(d=-d>E?0:E+d),v=v===e||v>E?E:Je(v),v<0&&(v+=E),v=d>v?0:ZR(v);d<v;)c[d++]=f;return c}o(kj,"baseFill");function MO(c,f){var d=[];return Ya(c,function(v,E,C){f(v,E,C)&&d.push(v)}),d}o(MO,"baseFilter");function ni(c,f,d,v,E){var C=-1,L=c.length;for(d||(d=I4),E||(E=[]);++C<L;){var F=c[C];f>0&&d(F)?f>1?ni(F,f-1,d,v,E):Ka(E,F):v||(E[E.length]=F)}return E}o(ni,"baseFlatten");var vv=lR(),kO=lR(!0);function Ro(c,f){return c&&vv(c,f,Qn)}o(Ro,"baseForOwn");function bv(c,f){return c&&kO(c,f,Qn)}o(bv,"baseForOwnRight");function yg(c,f){return Wa(f,function(d){return la(c[d])})}o(yg,"baseFunctions");function oc(c,f){f=Ja(f,c);for(var d=0,v=f.length;c!=null&&d<v;)c=c[No(f[d++])];return d&&d==v?c:e}o(oc,"baseGet");function UO(c,f,d){var v=f(c);return Qe(c)?v:Ka(v,d(c))}o(UO,"baseGetAllKeys");function Li(c){return c==null?c===e?na:Tn:tc&&tc in Xt(c)?S4(c):_4(c)}o(Li,"baseGetTag");function Sv(c,f){return c>f}o(Sv,"baseGt");function Uj(c,f){return c!=null&&Dt.call(c,f)}o(Uj,"baseHas");function jj(c,f){return c!=null&&f in Xt(c)}o(jj,"baseHasIn");function $j(c,f,d){return c>=vi(f,d)&&c<$n(f,d)}o($j,"baseInRange");function Ev(c,f,d){for(var v=d?rv:Jd,E=c[0].length,C=c.length,L=C,F=K(C),k=1/0,z=[];L--;){var J=c[L];L&&f&&(J=pn(J,dr(f))),k=vi(J.length,k),F[L]=!d&&(f||E>=120&&J.length>=120)?new ic(L&&J):e}J=c[0];var ne=-1,me=F[0];e:for(;++ne<E&&z.length<k;){var Re=J[ne],Me=f?f(Re):Re;if(Re=d||Re!==0?Re:0,!(me?iu(me,Me):v(z,Me,d))){for(L=C;--L;){var Ze=F[L];if(!(Ze?iu(Ze,Me):v(c[L],Me,d)))continue e}me&&me.push(Me),z.push(Re)}}return z}o(Ev,"baseIntersection");function Bj(c,f,d,v){return Ro(c,function(E,C,L){f(v,d(E),C,L)}),v}o(Bj,"baseInverter");function uu(c,f,d){f=Ja(f,c),c=CR(c,f);var v=c==null?c:c[No($r(f))];return v==null?e:pr(v,c,d)}o(uu,"baseInvoke");function jO(c){return vn(c)&&Li(c)==Kn}o(jO,"baseIsArguments");function Hj(c){return vn(c)&&Li(c)==Js}o(Hj,"baseIsArrayBuffer");function Gj(c){return vn(c)&&Li(c)==A}o(Gj,"baseIsDate");function pu(c,f,d,v,E){return c===f?!0:c==null||f==null||!vn(c)&&!vn(f)?c!==c&&f!==f:Wj(c,f,d,v,pu,E)}o(pu,"baseIsEqual");function Wj(c,f,d,v,E,C){var L=Qe(c),F=Qe(f),k=L?Dr:bi(c),z=F?Dr:bi(f);k=k==Kn?fn:k,z=z==Kn?fn:z;var J=k==fn,ne=z==fn,me=k==z;if(me&&es(c)){if(!es(f))return!1;L=!0,J=!1}if(me&&!J)return C||(C=new so),L||yl(c)?vR(c,f,d,v,E,C):T4(c,f,k,d,v,E,C);if(!(d&h)){var Re=J&&Dt.call(c,"__wrapped__"),Me=ne&&Dt.call(f,"__wrapped__");if(Re||Me){var Ze=Re?c.value():c,ke=Me?f.value():f;return C||(C=new so),E(Ze,ke,d,v,C)}}return me?(C||(C=new so),b4(c,f,d,v,E,C)):!1}o(Wj,"baseIsEqualDeep");function Kj(c){return vn(c)&&bi(c)==qe}o(Kj,"baseIsMap");function Av(c,f,d,v){var E=d.length,C=E,L=!v;if(c==null)return!C;for(c=Xt(c);E--;){var F=d[E];if(L&&F[2]?F[1]!==c[F[0]]:!(F[0]in c))return!1}for(;++E<C;){F=d[E];var k=F[0],z=c[k],J=F[1];if(L&&F[2]){if(z===e&&!(k in c))return!1}else{var ne=new so;if(v)var me=v(z,J,k,c,f,ne);if(!(me===e?pu(J,z,h|S,v,ne):me))return!1}}return!0}o(Av,"baseIsMatch");function $O(c){if(!yn(c)||R4(c))return!1;var f=la(c)?KU:w2;return f.test(sc(c))}o($O,"baseIsNative");function Xj(c){return vn(c)&&Li(c)==fr}o(Xj,"baseIsRegExp");function Qj(c){return vn(c)&&bi(c)==mn}o(Qj,"baseIsSet");function qj(c){return vn(c)&&_g(c.length)&&!!rn[Li(c)]}o(qj,"baseIsTypedArray");function BO(c){return typeof c=="function"?c:c==null?Yi:typeof c=="object"?Qe(c)?WO(c[0],c[1]):GO(c):fL(c)}o(BO,"baseIteratee");function Pv(c){if(!mu(c))return JU(c);var f=[];for(var d in Xt(c))Dt.call(c,d)&&d!="constructor"&&f.push(d);return f}o(Pv,"baseKeys");function Yj(c){if(!yn(c))return D4(c);var f=mu(c),d=[];for(var v in c)v=="constructor"&&(f||!Dt.call(c,v))||d.push(v);return d}o(Yj,"baseKeysIn");function xv(c,f){return c<f}o(xv,"baseLt");function HO(c,f){var d=-1,v=Qi(c)?K(c.length):[];return Ya(c,function(E,C,L){v[++d]=f(E,C,L)}),v}o(HO,"baseMap");function GO(c){var f=jv(c);return f.length==1&&f[0][2]?PR(f[0][0],f[0][1]):function(d){return d===c||Av(d,c,f)}}o(GO,"baseMatches");function WO(c,f){return Bv(c)&&AR(f)?PR(No(c),f):function(d){var v=Jv(d,c);return v===e&&v===f?Zv(d,c):pu(f,v,h|S)}}o(WO,"baseMatchesProperty");function Tg(c,f,d,v,E){c!==f&&vv(f,function(C,L){if(E||(E=new so),yn(C))zj(c,f,L,d,Tg,v,E);else{var F=v?v(Gv(c,L),C,L+"",c,f,E):e;F===e&&(F=C),yv(c,L,F)}},qi)}o(Tg,"baseMerge");function zj(c,f,d,v,E,C,L){var F=Gv(c,d),k=Gv(f,d),z=L.get(k);if(z){yv(c,d,z);return}var J=C?C(F,k,d+"",c,f,L):e,ne=J===e;if(ne){var me=Qe(k),Re=!me&&es(k),Me=!me&&!Re&&yl(k);J=k,me||Re||Me?Qe(F)?J=F:In(F)?J=Xi(F):Re?(ne=!1,J=iR(k,!0)):Me?(ne=!1,J=rR(k,!0)):J=[]:yu(k)||cc(k)?(J=F,cc(F)?J=eL(F):(!yn(F)||la(F))&&(J=ER(k))):ne=!1}ne&&(L.set(k,J),E(J,k,v,C,L),L.delete(k)),yv(c,d,J)}o(zj,"baseMergeDeep");function KO(c,f){var d=c.length;if(d)return f+=f<0?d:0,ca(f,d)?c[f]:e}o(KO,"baseNth");function XO(c,f,d){f.length?f=pn(f,function(C){return Qe(C)?function(L){return oc(L,C.length===1?C[0]:C)}:C}):f=[Yi];var v=-1;f=pn(f,dr(Ve()));var E=HO(c,function(C,L,F){var k=pn(f,function(z){return z(C)});return{criteria:k,index:++v,value:C}});return PU(E,function(C,L){return f4(C,L,d)})}o(XO,"baseOrderBy");function Jj(c,f){return QO(c,f,function(d,v){return Zv(c,v)})}o(Jj,"basePick");function QO(c,f,d){for(var v=-1,E=f.length,C={};++v<E;){var L=f[v],F=oc(c,L);d(F,L)&&du(C,Ja(L,c),F)}return C}o(QO,"basePickBy");function Zj(c){return function(f){return oc(f,c)}}o(Zj,"basePropertyDeep");function Cv(c,f,d,v){var E=v?AU:sl,C=-1,L=f.length,F=c;for(c===f&&(f=Xi(f)),d&&(F=pn(c,dr(d)));++C<L;)for(var k=0,z=f[C],J=d?d(z):z;(k=E(F,J,k,v))>-1;)F!==c&&cg.call(F,k,1),cg.call(c,k,1);return c}o(Cv,"basePullAll");function qO(c,f){for(var d=c?f.length:0,v=d-1;d--;){var E=f[d];if(d==v||E!==C){var C=E;ca(E)?cg.call(c,E,1):Lv(c,E)}}return c}o(qO,"basePullAt");function Iv(c,f){return c+ug(RO()*(f-c+1))}o(Iv,"baseRandom");function e4(c,f,d,v){for(var E=-1,C=$n(fg((f-c)/(d||1)),0),L=K(C);C--;)L[v?C:++E]=c,c+=d;return L}o(e4,"baseRange");function Ov(c,f){var d="";if(!c||f<1||f>Ne)return d;do f%2&&(d+=c),f=ug(f/2),f&&(c+=c);while(f);return d}o(Ov,"baseRepeat");function tt(c,f){return Wv(xR(c,f,Yi),c+"")}o(tt,"baseRest");function t4(c){return FO(Tl(c))}o(t4,"baseSample");function n4(c,f){var d=Tl(c);return Og(d,rc(f,0,d.length))}o(n4,"baseSampleSize");function du(c,f,d,v){if(!yn(c))return c;f=Ja(f,c);for(var E=-1,C=f.length,L=C-1,F=c;F!=null&&++E<C;){var k=No(f[E]),z=d;if(k==="__proto__"||k==="constructor"||k==="prototype")return c;if(E!=L){var J=F[k];z=v?v(J,k,F):e,z===e&&(z=yn(J)?J:ca(f[E+1])?[]:{})}lu(F,k,z),F=F[k]}return c}o(du,"baseSet");var YO=pg?function(c,f){return pg.set(c,f),c}:Yi,i4=lg?function(c,f){return lg(c,"toString",{configurable:!0,enumerable:!1,value:tb(f),writable:!0})}:Yi;function r4(c){return Og(Tl(c))}o(r4,"baseShuffle");function jr(c,f,d){var v=-1,E=c.length;f<0&&(f=-f>E?0:E+f),d=d>E?E:d,d<0&&(d+=E),E=f>d?0:d-f>>>0,f>>>=0;for(var C=K(E);++v<E;)C[v]=c[v+f];return C}o(jr,"baseSlice");function o4(c,f){var d;return Ya(c,function(v,E,C){return d=f(v,E,C),!d}),!!d}o(o4,"baseSome");function vg(c,f,d){var v=0,E=c==null?v:c.length;if(typeof f=="number"&&f===f&&E<=Wi){for(;v<E;){var C=v+E>>>1,L=c[C];L!==null&&!mr(L)&&(d?L<=f:L<f)?v=C+1:E=C}return E}return Rv(c,f,Yi,d)}o(vg,"baseSortedIndex");function Rv(c,f,d,v){var E=0,C=c==null?0:c.length;if(C===0)return 0;f=d(f);for(var L=f!==f,F=f===null,k=mr(f),z=f===e;E<C;){var J=ug((E+C)/2),ne=d(c[J]),me=ne!==e,Re=ne===null,Me=ne===ne,Ze=mr(ne);if(L)var ke=v||Me;else z?ke=Me&&(v||me):F?ke=Me&&me&&(v||!Re):k?ke=Me&&me&&!Re&&(v||!Ze):Re||Ze?ke=!1:ke=v?ne<=f:ne<f;ke?E=J+1:C=J}return vi(C,ln)}o(Rv,"baseSortedIndexBy");function zO(c,f){for(var d=-1,v=c.length,E=0,C=[];++d<v;){var L=c[d],F=f?f(L):L;if(!d||!co(F,k)){var k=F;C[E++]=L===0?0:L}}return C}o(zO,"baseSortedUniq");function JO(c){return typeof c=="number"?c:mr(c)?Ct:+c}o(JO,"baseToNumber");function gr(c){if(typeof c=="string")return c;if(Qe(c))return pn(c,gr)+"";if(mr(c))return LO?LO.call(c):"";var f=c+"";return f=="0"&&1/c==-Nt?"-0":f}o(gr,"baseToString");function za(c,f,d){var v=-1,E=Jd,C=c.length,L=!0,F=[],k=F;if(d)L=!1,E=rv;else if(C>=n){var z=f?null:h4(c);if(z)return eg(z);L=!1,E=iu,k=new ic}else k=f?[]:F;e:for(;++v<C;){var J=c[v],ne=f?f(J):J;if(J=d||J!==0?J:0,L&&ne===ne){for(var me=k.length;me--;)if(k[me]===ne)continue e;f&&k.push(ne),F.push(J)}else E(k,ne,d)||(k!==F&&k.push(ne),F.push(J))}return F}o(za,"baseUniq");function Lv(c,f){return f=Ja(f,c),c=CR(c,f),c==null||delete c[No($r(f))]}o(Lv,"baseUnset");function ZO(c,f,d,v){return du(c,f,d(oc(c,f)),v)}o(ZO,"baseUpdate");function bg(c,f,d,v){for(var E=c.length,C=v?E:-1;(v?C--:++C<E)&&f(c[C],C,c););return d?jr(c,v?0:C,v?C+1:E):jr(c,v?C+1:0,v?E:C)}o(bg,"baseWhile");function eR(c,f){var d=c;return d instanceof pt&&(d=d.value()),ov(f,function(v,E){return E.func.apply(E.thisArg,Ka([v],E.args))},d)}o(eR,"baseWrapperValue");function Nv(c,f,d){var v=c.length;if(v<2)return v?za(c[0]):[];for(var E=-1,C=K(v);++E<v;)for(var L=c[E],F=-1;++F<v;)F!=E&&(C[E]=fu(C[E]||L,c[F],f,d));return za(ni(C,1),f,d)}o(Nv,"baseXor");function tR(c,f,d){for(var v=-1,E=c.length,C=f.length,L={};++v<E;){var F=v<C?f[v]:e;d(L,c[v],F)}return L}o(tR,"baseZipObject");function Fv(c){return In(c)?c:[]}o(Fv,"castArrayLikeObject");function Dv(c){return typeof c=="function"?c:Yi}o(Dv,"castFunction");function Ja(c,f){return Qe(c)?c:Bv(c,f)?[c]:LR(It(c))}o(Ja,"castPath");var a4=tt;function Za(c,f,d){var v=c.length;return d=d===e?v:d,!f&&d>=v?c:jr(c,f,d)}o(Za,"castSlice");var nR=XU||function(c){return Xn.clearTimeout(c)};function iR(c,f){if(f)return c.slice();var d=c.length,v=PO?PO(d):new c.constructor(d);return c.copy(v),v}o(iR,"cloneBuffer");function _v(c){var f=new c.constructor(c.byteLength);return new ag(f).set(new ag(c)),f}o(_v,"cloneArrayBuffer");function s4(c,f){var d=f?_v(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(s4,"cloneDataView");function c4(c){var f=new c.constructor(c.source,jI.exec(c));return f.lastIndex=c.lastIndex,f}o(c4,"cloneRegExp");function l4(c){return cu?Xt(cu.call(c)):{}}o(l4,"cloneSymbol");function rR(c,f){var d=f?_v(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(rR,"cloneTypedArray");function oR(c,f){if(c!==f){var d=c!==e,v=c===null,E=c===c,C=mr(c),L=f!==e,F=f===null,k=f===f,z=mr(f);if(!F&&!z&&!C&&c>f||C&&L&&k&&!F&&!z||v&&L&&k||!d&&k||!E)return 1;if(!v&&!C&&!z&&c<f||z&&d&&E&&!v&&!C||F&&d&&E||!L&&E||!k)return-1}return 0}o(oR,"compareAscending");function f4(c,f,d){for(var v=-1,E=c.criteria,C=f.criteria,L=E.length,F=d.length;++v<L;){var k=oR(E[v],C[v]);if(k){if(v>=F)return k;var z=d[v];return k*(z=="desc"?-1:1)}}return c.index-f.index}o(f4,"compareMultiple");function aR(c,f,d,v){for(var E=-1,C=c.length,L=d.length,F=-1,k=f.length,z=$n(C-L,0),J=K(k+z),ne=!v;++F<k;)J[F]=f[F];for(;++E<L;)(ne||E<C)&&(J[d[E]]=c[E]);for(;z--;)J[F++]=c[E++];return J}o(aR,"composeArgs");function sR(c,f,d,v){for(var E=-1,C=c.length,L=-1,F=d.length,k=-1,z=f.length,J=$n(C-F,0),ne=K(J+z),me=!v;++E<J;)ne[E]=c[E];for(var Re=E;++k<z;)ne[Re+k]=f[k];for(;++L<F;)(me||E<C)&&(ne[Re+d[L]]=c[E++]);return ne}o(sR,"composeArgsRight");function Xi(c,f){var d=-1,v=c.length;for(f||(f=K(v));++d<v;)f[d]=c[d];return f}o(Xi,"copyArray");function Lo(c,f,d,v){var E=!d;d||(d={});for(var C=-1,L=f.length;++C<L;){var F=f[C],k=v?v(d[F],c[F],F,d,c):e;k===e&&(k=c[F]),E?oa(d,F,k):lu(d,F,k)}return d}o(Lo,"copyObject");function u4(c,f){return Lo(c,$v(c),f)}o(u4,"copySymbols");function p4(c,f){return Lo(c,bR(c),f)}o(p4,"copySymbolsIn");function Sg(c,f){return function(d,v){var E=Qe(d)?yU:_j,C=f?f():{};return E(d,c,Ve(v,2),C)}}o(Sg,"createAggregator");function gl(c){return tt(function(f,d){var v=-1,E=d.length,C=E>1?d[E-1]:e,L=E>2?d[2]:e;for(C=c.length>3&&typeof C=="function"?(E--,C):e,L&&Ni(d[0],d[1],L)&&(C=E<3?e:C,E=1),f=Xt(f);++v<E;){var F=d[v];F&&c(f,F,v,C)}return f})}o(gl,"createAssigner");function cR(c,f){return function(d,v){if(d==null)return d;if(!Qi(d))return c(d,v);for(var E=d.length,C=f?E:-1,L=Xt(d);(f?C--:++C<E)&&v(L[C],C,L)!==!1;);return d}}o(cR,"createBaseEach");function lR(c){return function(f,d,v){for(var E=-1,C=Xt(f),L=v(f),F=L.length;F--;){var k=L[c?F:++E];if(d(C[k],k,C)===!1)break}return f}}o(lR,"createBaseFor");function d4(c,f,d){var v=f&b,E=gu(c);function C(){var L=this&&this!==Xn&&this instanceof C?E:c;return L.apply(v?d:this,arguments)}return o(C,"wrapper"),C}o(d4,"createBind");function fR(c){return function(f){f=It(f);var d=cl(f)?ao(f):e,v=d?d[0]:f.charAt(0),E=d?Za(d,1).join(""):f.slice(1);return v[c]()+E}}o(fR,"createCaseFirst");function ml(c){return function(f){return ov(cL(sL(f).replace(iU,"")),c,"")}}o(ml,"createCompounder");function gu(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var d=dl(c.prototype),v=c.apply(d,f);return yn(v)?v:d}}o(gu,"createCtor");function g4(c,f,d){var v=gu(c);function E(){for(var C=arguments.length,L=K(C),F=C,k=hl(E);F--;)L[F]=arguments[F];var z=C<3&&L[0]!==k&&L[C-1]!==k?[]:Xa(L,k);if(C-=z.length,C<d)return mR(c,f,Eg,E.placeholder,e,L,z,e,e,d-C);var J=this&&this!==Xn&&this instanceof E?v:c;return pr(J,this,L)}return o(E,"wrapper"),E}o(g4,"createCurry");function uR(c){return function(f,d,v){var E=Xt(f);if(!Qi(f)){var C=Ve(d,3);f=Qn(f),d=o(function(F){return C(E[F],F,E)},"predicate")}var L=c(f,d,v);return L>-1?E[C?f[L]:L]:e}}o(uR,"createFind");function pR(c){return sa(function(f){var d=f.length,v=d,E=kr.prototype.thru;for(c&&f.reverse();v--;){var C=f[v];if(typeof C!="function")throw new Mr(r);if(E&&!L&&Cg(C)=="wrapper")var L=new kr([],!0)}for(v=L?v:d;++v<d;){C=f[v];var F=Cg(C),k=F=="wrapper"?Uv(C):e;k&&Hv(k[0])&&k[1]==(Z|M|j|oe)&&!k[4].length&&k[9]==1?L=L[Cg(k[0])].apply(L,k[3]):L=C.length==1&&Hv(C)?L[F]():L.thru(C)}return function(){var z=arguments,J=z[0];if(L&&z.length==1&&Qe(J))return L.plant(J).value();for(var ne=0,me=d?f[ne].apply(this,z):J;++ne<d;)me=f[ne].call(this,me);return me}})}o(pR,"createFlow");function Eg(c,f,d,v,E,C,L,F,k,z){var J=f&Z,ne=f&b,me=f&O,Re=f&(M|G),Me=f&Pe,Ze=me?e:gu(c);function ke(){for(var at=arguments.length,gt=K(at),hr=at;hr--;)gt[hr]=arguments[hr];if(Re)var Fi=hl(ke),yr=CU(gt,Fi);if(v&&(gt=aR(gt,v,E,Re)),C&&(gt=sR(gt,C,L,Re)),at-=yr,Re&&at<z){var On=Xa(gt,Fi);return mR(c,f,Eg,ke.placeholder,d,gt,On,F,k,z-at)}var lo=ne?d:this,ua=me?lo[c]:c;return at=gt.length,F?gt=V4(gt,F):Me&&at>1&>.reverse(),J&&k<at&&(gt.length=k),this&&this!==Xn&&this instanceof ke&&(ua=Ze||gu(ua)),ua.apply(lo,gt)}return o(ke,"wrapper"),ke}o(Eg,"createHybrid");function dR(c,f){return function(d,v){return Bj(d,c,f(v),{})}}o(dR,"createInverter");function Ag(c,f){return function(d,v){var E;if(d===e&&v===e)return f;if(d!==e&&(E=d),v!==e){if(E===e)return v;typeof d=="string"||typeof v=="string"?(d=gr(d),v=gr(v)):(d=JO(d),v=JO(v)),E=c(d,v)}return E}}o(Ag,"createMathOperation");function Vv(c){return sa(function(f){return f=pn(f,dr(Ve())),tt(function(d){var v=this;return c(f,function(E){return pr(E,v,d)})})})}o(Vv,"createOver");function Pg(c,f){f=f===e?" ":gr(f);var d=f.length;if(d<2)return d?Ov(f,c):f;var v=Ov(f,fg(c/ll(f)));return cl(f)?Za(ao(v),0,c).join(""):v.slice(0,c)}o(Pg,"createPadding");function m4(c,f,d,v){var E=f&b,C=gu(c);function L(){for(var F=-1,k=arguments.length,z=-1,J=v.length,ne=K(J+k),me=this&&this!==Xn&&this instanceof L?C:c;++z<J;)ne[z]=v[z];for(;k--;)ne[z++]=arguments[++F];return pr(me,E?d:this,ne)}return o(L,"wrapper"),L}o(m4,"createPartial");function gR(c){return function(f,d,v){return v&&typeof v!="number"&&Ni(f,d,v)&&(d=v=e),f=fa(f),d===e?(d=f,f=0):d=fa(d),v=v===e?f<d?1:-1:fa(v),e4(f,d,v,c)}}o(gR,"createRange");function xg(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=Br(f),d=Br(d)),c(f,d)}}o(xg,"createRelationalOperation");function mR(c,f,d,v,E,C,L,F,k,z){var J=f&M,ne=J?L:e,me=J?e:L,Re=J?C:e,Me=J?e:C;f|=J?j:re,f&=~(J?re:j),f&N||(f&=~(b|O));var Ze=[c,f,E,Re,ne,Me,me,F,k,z],ke=d.apply(e,Ze);return Hv(c)&&IR(ke,Ze),ke.placeholder=v,OR(ke,c,f)}o(mR,"createRecurry");function wv(c){var f=jn[c];return function(d,v){if(d=Br(d),v=v==null?0:vi(Je(v),292),v&&OO(d)){var E=(It(d)+"e").split("e"),C=f(E[0]+"e"+(+E[1]+v));return E=(It(C)+"e").split("e"),+(E[0]+"e"+(+E[1]-v))}return f(d)}}o(wv,"createRound");var h4=ul&&1/eg(new ul([,-0]))[1]==Nt?function(c){return new ul(c)}:rb;function hR(c){return function(f){var d=bi(f);return d==qe?pv(f):d==mn?DU(f):xU(f,c(f))}}o(hR,"createToPairs");function aa(c,f,d,v,E,C,L,F){var k=f&O;if(!k&&typeof c!="function")throw new Mr(r);var z=v?v.length:0;if(z||(f&=~(j|re),v=E=e),L=L===e?L:$n(Je(L),0),F=F===e?F:Je(F),z-=E?E.length:0,f&re){var J=v,ne=E;v=E=e}var me=k?e:Uv(c),Re=[c,f,d,v,E,J,ne,C,L,F];if(me&&F4(Re,me),c=Re[0],f=Re[1],d=Re[2],v=Re[3],E=Re[4],F=Re[9]=Re[9]===e?k?0:c.length:$n(Re[9]-z,0),!F&&f&(M|G)&&(f&=~(M|G)),!f||f==b)var Me=d4(c,f,d);else f==M||f==G?Me=g4(c,f,F):(f==j||f==(b|j))&&!E.length?Me=m4(c,f,d,v):Me=Eg.apply(e,Re);var Ze=me?YO:IR;return OR(Ze(Me,Re),c,f)}o(aa,"createWrap");function yR(c,f,d,v){return c===e||co(c,fl[d])&&!Dt.call(v,d)?f:c}o(yR,"customDefaultsAssignIn");function TR(c,f,d,v,E,C){return yn(c)&&yn(f)&&(C.set(f,c),Tg(c,f,e,TR,C),C.delete(f)),c}o(TR,"customDefaultsMerge");function y4(c){return yu(c)?e:c}o(y4,"customOmitClone");function vR(c,f,d,v,E,C){var L=d&h,F=c.length,k=f.length;if(F!=k&&!(L&&k>F))return!1;var z=C.get(c),J=C.get(f);if(z&&J)return z==f&&J==c;var ne=-1,me=!0,Re=d&S?new ic:e;for(C.set(c,f),C.set(f,c);++ne<F;){var Me=c[ne],Ze=f[ne];if(v)var ke=L?v(Ze,Me,ne,f,c,C):v(Me,Ze,ne,c,f,C);if(ke!==e){if(ke)continue;me=!1;break}if(Re){if(!av(f,function(at,gt){if(!iu(Re,gt)&&(Me===at||E(Me,at,d,v,C)))return Re.push(gt)})){me=!1;break}}else if(!(Me===Ze||E(Me,Ze,d,v,C))){me=!1;break}}return C.delete(c),C.delete(f),me}o(vR,"equalArrays");function T4(c,f,d,v,E,C,L){switch(d){case _r:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Js:return!(c.byteLength!=f.byteLength||!C(new ag(c),new ag(f)));case I:case A:case jt:return co(+c,+f);case V:return c.name==f.name&&c.message==f.message;case fr:case Ti:return c==f+"";case qe:var F=pv;case mn:var k=v&h;if(F||(F=eg),c.size!=f.size&&!k)return!1;var z=L.get(c);if(z)return z==f;v|=S,L.set(c,f);var J=vR(F(c),F(f),v,E,C,L);return L.delete(c),J;case Wt:if(cu)return cu.call(c)==cu.call(f)}return!1}o(T4,"equalByTag");function b4(c,f,d,v,E,C){var L=d&h,F=Mv(c),k=F.length,z=Mv(f),J=z.length;if(k!=J&&!L)return!1;for(var ne=k;ne--;){var me=F[ne];if(!(L?me in f:Dt.call(f,me)))return!1}var Re=C.get(c),Me=C.get(f);if(Re&&Me)return Re==f&&Me==c;var Ze=!0;C.set(c,f),C.set(f,c);for(var ke=L;++ne<k;){me=F[ne];var at=c[me],gt=f[me];if(v)var hr=L?v(gt,at,me,f,c,C):v(at,gt,me,c,f,C);if(!(hr===e?at===gt||E(at,gt,d,v,C):hr)){Ze=!1;break}ke||(ke=me=="constructor")}if(Ze&&!ke){var Fi=c.constructor,yr=f.constructor;Fi!=yr&&"constructor"in c&&"constructor"in f&&!(typeof Fi=="function"&&Fi instanceof Fi&&typeof yr=="function"&&yr instanceof yr)&&(Ze=!1)}return C.delete(c),C.delete(f),Ze}o(b4,"equalObjects");function sa(c){return Wv(xR(c,e,_R),c+"")}o(sa,"flatRest");function Mv(c){return UO(c,Qn,$v)}o(Mv,"getAllKeys");function kv(c){return UO(c,qi,bR)}o(kv,"getAllKeysIn");var Uv=pg?function(c){return pg.get(c)}:rb;function Cg(c){for(var f=c.name+"",d=pl[f],v=Dt.call(pl,f)?d.length:0;v--;){var E=d[v],C=E.func;if(C==null||C==c)return E.name}return f}o(Cg,"getFuncName");function hl(c){var f=Dt.call(P,"placeholder")?P:c;return f.placeholder}o(hl,"getHolder");function Ve(){var c=P.iteratee||nb;return c=c===nb?BO:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function Ig(c,f){var d=c.__data__;return O4(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(Ig,"getMapData");function jv(c){for(var f=Qn(c),d=f.length;d--;){var v=f[d],E=c[v];f[d]=[v,E,AR(E)]}return f}o(jv,"getMatchData");function ac(c,f){var d=LU(c,f);return $O(d)?d:e}o(ac,"getNative");function S4(c){var f=Dt.call(c,tc),d=c[tc];try{c[tc]=e;var v=!0}catch{}var E=rg.call(c);return v&&(f?c[tc]=d:delete c[tc]),E}o(S4,"getRawTag");var $v=gv?function(c){return c==null?[]:(c=Xt(c),Wa(gv(c),function(f){return CO.call(c,f)}))}:ob,bR=gv?function(c){for(var f=[];c;)Ka(f,$v(c)),c=sg(c);return f}:ob,bi=Li;(mv&&bi(new mv(new ArrayBuffer(1)))!=_r||ou&&bi(new ou)!=qe||hv&&bi(hv.resolve())!=Gt||ul&&bi(new ul)!=mn||au&&bi(new au)!=Ki)&&(bi=o(function(c){var f=Li(c),d=f==fn?c.constructor:e,v=d?sc(d):"";if(v)switch(v){case nj:return _r;case ij:return qe;case rj:return Gt;case oj:return mn;case aj:return Ki}return f},"getTag"));function E4(c,f,d){for(var v=-1,E=d.length;++v<E;){var C=d[v],L=C.size;switch(C.type){case"drop":c+=L;break;case"dropRight":f-=L;break;case"take":f=vi(f,c+L);break;case"takeRight":c=$n(c,f-L);break}}return{start:c,end:f}}o(E4,"getView");function A4(c){var f=c.match(O2);return f?f[1].split(R2):[]}o(A4,"getWrapDetails");function SR(c,f,d){f=Ja(f,c);for(var v=-1,E=f.length,C=!1;++v<E;){var L=No(f[v]);if(!(C=c!=null&&d(c,L)))break;c=c[L]}return C||++v!=E?C:(E=c==null?0:c.length,!!E&&_g(E)&&ca(L,E)&&(Qe(c)||cc(c)))}o(SR,"hasPath");function P4(c){var f=c.length,d=new c.constructor(f);return f&&typeof c[0]=="string"&&Dt.call(c,"index")&&(d.index=c.index,d.input=c.input),d}o(P4,"initCloneArray");function ER(c){return typeof c.constructor=="function"&&!mu(c)?dl(sg(c)):{}}o(ER,"initCloneObject");function x4(c,f,d){var v=c.constructor;switch(f){case Js:return _v(c);case I:case A:return new v(+c);case _r:return s4(c,d);case Zf:case eu:case tu:case Zs:case U:case B:case q:case le:case Le:return rR(c,d);case qe:return new v;case jt:case Ti:return new v(c);case fr:return c4(c);case mn:return new v;case Wt:return l4(c)}}o(x4,"initCloneByTag");function C4(c,f){var d=f.length;if(!d)return c;var v=d-1;return f[v]=(d>1?"& ":"")+f[v],f=f.join(d>2?", ":" "),c.replace(I2,`{
|
|
267
|
+
Please avoid using it as it will be completely removed in the future`)}var dq,iT=Ye(()=>{pP();Rr();Vp();_s();Up();Tf();EP();ji();ji();gf();_P();sM();mM();o(pq,"clearCache");dq=function(){function e(){throw new Error(`The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.
|
|
268
|
+
See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0`)}return o(e,"Parser"),e}()});var WP=ze((Ode,SM)=>{var{createToken:gq,Lexer:HP}=(iT(),kg(nT)),yM={},Af=yM;function GP(e,t){yM[e]=typeof t=="string"?t:t.source}o(GP,"FRAGMENT");function zp(e,...t){let n="";for(let i=0;i<e.length;i++)if(n+=e[i],i<t.length){let r=t[i];n+=`(?:${r})`}return new RegExp(n)}o(zp,"makePattern");var mq=[],TM={};function xn(e){let t=gq(e);return mq.push(t),TM[e.name]=t,t}o(xn,"createToken");GP("NameStartChar","(:|[a-zA-Z]|_|\\u2070-\\u218F|\\u2C00-\\u2FEF|\\u3001-\\uD7FF|\\uF900-\\uFDCF|\\uFDF0-\\uFFFD)");GP("NameChar",zp`${Af.NameStartChar}|-|\\.|\\d|\\u00B7||[\\u0300-\\u036F]|[\\u203F-\\u2040]`);GP("Name",zp`${Af.NameStartChar}(${Af.NameChar})*`);var hM=xn({name:"Comment",pattern:/<!--(.|\r?\n)*?-->/,line_breaks:!0}),hq=xn({name:"CData",pattern:/<!\[CDATA\[(.|\r?\n)*?]]>/,line_breaks:!0}),yq=xn({name:"DocType",pattern:/<!DOCTYPE/,push_mode:"INSIDE"}),Tq=xn({name:"DTD",pattern:/<!.*?>/,group:HP.SKIPPED}),vq=xn({name:"EntityRef",pattern:zp`&${Af.Name};`}),bq=xn({name:"CharRef",pattern:/&#\d+;|&#x[a-fA-F0-9]/}),Sq=xn({name:"SEA_WS",pattern:/( |\t|\n|\r\n)+/}),Aq=xn({name:"XMLDeclOpen",pattern:/<\?xml[ \t\r\n]/,push_mode:"INSIDE"}),vM=xn({name:"SLASH_OPEN",pattern:/<\//,push_mode:"INSIDE"}),Eq=xn({name:"INVALID_SLASH_OPEN",pattern:/<\//,categories:[vM]}),Pq=xn({name:"PROCESSING_INSTRUCTION",pattern:zp`<\\?${Af.Name}.*\\?>`}),bM=xn({name:"OPEN",pattern:/</,push_mode:"INSIDE"}),xq=xn({name:"INVALID_OPEN_INSIDE",pattern:/</,categories:[bM]}),Cq=xn({name:"TEXT",pattern:/[^<&]+/}),Iq=xn({name:"CLOSE",pattern:/>/,pop_mode:!0}),Oq=xn({name:"SPECIAL_CLOSE",pattern:/\?>/,pop_mode:!0}),Rq=xn({name:"SLASH_CLOSE",pattern:/\/>/,pop_mode:!0}),Lq=xn({name:"SLASH",pattern:/\//}),Nq=xn({name:"STRING",pattern:/"[^<"]*"|'[^<']*'/}),Fq=xn({name:"EQUALS",pattern:/=/}),Dq=xn({name:"Name",pattern:zp`${Af.Name}`}),_q=xn({name:"S",pattern:/[ \t\r\n]/,group:HP.SKIPPED}),Vq={defaultMode:"OUTSIDE",modes:{OUTSIDE:[hM,hq,yq,Tq,vq,bq,Sq,Aq,vM,Pq,bM,Cq],INSIDE:[hM,Eq,xq,Iq,Oq,Rq,Lq,Fq,Nq,Dq,_q]}},wq=new HP(Vq,{positionTracking:"full",ensureOptimizations:!1,lineTerminatorCharacters:[`
|
|
269
|
+
`],lineTerminatorsPattern:/\n|\r\n/g});SM.exports={xmlLexer:wq,tokensDictionary:TM}});var EM=ze((Lde,AM)=>{var{CstParser:Mq,tokenMatcher:kq}=(iT(),kg(nT)),{tokensDictionary:xt}=WP(),XP=class XP extends Mq{constructor(){super(xt,{maxLookahead:1,recoveryEnabled:!0,nodeLocationTracking:"full"}),this.deletionRecoveryEnabled=!0;let t=this;t.RULE("document",()=>{t.OPTION(()=>{t.SUBRULE(t.prolog)}),t.MANY(()=>{t.SUBRULE(t.misc)}),t.OPTION2(()=>{t.SUBRULE(t.docTypeDecl)}),t.MANY2(()=>{t.SUBRULE2(t.misc)}),t.SUBRULE(t.element),t.MANY3(()=>{t.SUBRULE3(t.misc)})}),t.RULE("prolog",()=>{t.CONSUME(xt.XMLDeclOpen),t.MANY(()=>{t.SUBRULE(t.attribute)}),t.CONSUME(xt.SPECIAL_CLOSE)}),t.RULE("docTypeDecl",()=>{t.CONSUME(xt.DocType),t.CONSUME(xt.Name),t.OPTION(()=>{t.SUBRULE(t.externalID)}),t.CONSUME(xt.CLOSE)}),t.RULE("externalID",()=>{t.OR([{GATE:o(()=>t.LA(1).image==="SYSTEM","GATE"),ALT:o(()=>{t.CONSUME2(xt.Name,{LABEL:"System"}),t.CONSUME(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")},{GATE:o(()=>t.LA(1).image==="PUBLIC","GATE"),ALT:o(()=>{t.CONSUME3(xt.Name,{LABEL:"Public"}),t.CONSUME2(xt.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")}])}),t.RULE("content",()=>{t.MANY(()=>{t.OR([{ALT:o(()=>t.SUBRULE(t.element),"ALT")},{ALT:o(()=>t.SUBRULE(t.chardata),"ALT")},{ALT:o(()=>t.SUBRULE(t.reference),"ALT")},{ALT:o(()=>t.CONSUME(xt.CData),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")}])})}),t.RULE("element",()=>{t.CONSUME(xt.OPEN);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.Name)}finally{this.deletionRecoveryEnabled=!0}t.MANY(()=>{t.SUBRULE(t.attribute)}),t.OR([{ALT:o(()=>{t.CONSUME(xt.CLOSE,{LABEL:"START_CLOSE"}),t.SUBRULE(t.content),t.CONSUME(xt.SLASH_OPEN),t.CONSUME2(xt.Name,{LABEL:"END_NAME"}),t.CONSUME2(xt.CLOSE,{LABEL:"END"})},"ALT")},{ALT:o(()=>{t.CONSUME(xt.SLASH_CLOSE)},"ALT")}])}),t.RULE("reference",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.EntityRef),"ALT")},{ALT:o(()=>t.CONSUME(xt.CharRef),"ALT")}])}),t.RULE("attribute",()=>{t.CONSUME(xt.Name);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.EQUALS),t.CONSUME(xt.STRING)}finally{this.deletionRecoveryEnabled=!0}}),t.RULE("chardata",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.TEXT),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),t.RULE("misc",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),this.performSelfAnalysis()}canRecoverWithSingleTokenDeletion(t){return this.deletionRecoveryEnabled===!1?!1:super.canRecoverWithSingleTokenDeletion(t)}findReSyncTokenType(){let t=this.flattenFollowSet(),n=this.LA(1),i=2;for(;;){let r=t.find(a=>kq(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(XP,"Parser");var KP=XP,Uq=new KP;AM.exports={xmlParser:Uq}});var QP=ze((Fde,PM)=>{var{xmlLexer:jq}=WP(),{xmlParser:rT}=EM();PM.exports={parse:o(function(t){let n=jq.tokenize(t);return rT.input=n.tokens,{cst:rT.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:rT.errors}},"parse"),BaseXmlCstVisitor:rT.getBaseCstVisitorConstructor()}});var Zp=ze((Ef,Jp)=>{(function(){var e,t="4.17.21",n=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",r="Expected a function",a="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",l=500,u="__lodash_placeholder__",p=1,g=2,m=4,h=1,S=2,b=1,O=2,N=4,M=8,G=16,j=32,re=64,Z=128,oe=256,Pe=512,D=30,pt="...",yt=800,je=16,cn=1,Wn=2,nn=3,Nt=1/0,Ne=9007199254740991,Ri=17976931348623157e292,Ct=NaN,Ut=4294967295,ln=Ut-1,Wi=Ut>>>1,Fe=[["ary",Z],["bind",b],["bindKey",O],["curry",M],["curryRight",G],["flip",Pe],["partial",j],["partialRight",re],["rearg",oe]],Kn="[object Arguments]",Dr="[object Array]",ot="[object AsyncFunction]",I="[object Boolean]",E="[object Date]",Y="[object DOMException]",V="[object Error]",_e="[object Function]",Ft="[object GeneratorFunction]",qe="[object Map]",jt="[object Number]",Tn="[object Null]",fn="[object Object]",Gt="[object Promise]",ti="[object Proxy]",fr="[object RegExp]",mn="[object Set]",Ti="[object String]",Wt="[object Symbol]",na="[object Undefined]",Ki="[object WeakMap]",Jf="[object WeakSet]",Js="[object ArrayBuffer]",_r="[object DataView]",Zf="[object Float32Array]",eu="[object Float64Array]",tu="[object Int8Array]",Zs="[object Int16Array]",U="[object Int32Array]",B="[object Uint8Array]",q="[object Uint8ClampedArray]",le="[object Uint16Array]",Le="[object Uint32Array]",hn=/\b__p \+= '';/g,Cn=/\b(__p \+=) '' \+/g,et=/(__e\(.*?\)|\b__t\)) \+\n'';/g,he=/&(?:amp|lt|gt|quot|#39);/g,be=/[&<>"']/g,xe=RegExp(he.source),Oe=RegExp(be.source),it=/<%-([\s\S]+?)%>/g,Kt=/<%([\s\S]+?)%>/g,un=/<%=([\s\S]+?)%>/g,ur=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qd=/^\w*$/,qT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nu=/[\\^$.*+?()[\]{}|]/g,x2=RegExp(nu.source),YT=/^\s+/,C2=/\s/,I2=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,O2=/\{\n\/\* \[wrapped with (.+)\] \*/,R2=/,? & /,L2=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,N2=/[()=,{}\[\]\/\s]/,F2=/\\(\\)?/g,D2=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,jI=/\w*$/,_2=/^[-+]0x[0-9a-f]+$/i,V2=/^0b[01]+$/i,w2=/^\[object .+?Constructor\]$/,M2=/^0o[0-7]+$/i,k2=/^(?:0|[1-9]\d*)$/,U2=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qd=/($^)/,j2=/['\n\r\u2028\u2029\\]/g,Yd="\\ud800-\\udfff",$2="\\u0300-\\u036f",B2="\\ufe20-\\ufe2f",H2="\\u20d0-\\u20ff",$I=$2+B2+H2,BI="\\u2700-\\u27bf",HI="a-z\\xdf-\\xf6\\xf8-\\xff",G2="\\xac\\xb1\\xd7\\xf7",W2="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",K2="\\u2000-\\u206f",X2=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",GI="A-Z\\xc0-\\xd6\\xd8-\\xde",WI="\\ufe0e\\ufe0f",KI=G2+W2+K2+X2,zT="['\u2019]",Q2="["+Yd+"]",XI="["+KI+"]",zd="["+$I+"]",QI="\\d+",q2="["+BI+"]",qI="["+HI+"]",YI="[^"+Yd+KI+QI+BI+HI+GI+"]",JT="\\ud83c[\\udffb-\\udfff]",Y2="(?:"+zd+"|"+JT+")",zI="[^"+Yd+"]",ZT="(?:\\ud83c[\\udde6-\\uddff]){2}",ev="[\\ud800-\\udbff][\\udc00-\\udfff]",al="["+GI+"]",JI="\\u200d",ZI="(?:"+qI+"|"+YI+")",z2="(?:"+al+"|"+YI+")",eO="(?:"+zT+"(?:d|ll|m|re|s|t|ve))?",tO="(?:"+zT+"(?:D|LL|M|RE|S|T|VE))?",nO=Y2+"?",iO="["+WI+"]?",J2="(?:"+JI+"(?:"+[zI,ZT,ev].join("|")+")"+iO+nO+")*",Z2="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",eU="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rO=iO+nO+J2,tU="(?:"+[q2,ZT,ev].join("|")+")"+rO,nU="(?:"+[zI+zd+"?",zd,ZT,ev,Q2].join("|")+")",iU=RegExp(zT,"g"),rU=RegExp(zd,"g"),tv=RegExp(JT+"(?="+JT+")|"+nU+rO,"g"),oU=RegExp([al+"?"+qI+"+"+eO+"(?="+[XI,al,"$"].join("|")+")",z2+"+"+tO+"(?="+[XI,al+ZI,"$"].join("|")+")",al+"?"+ZI+"+"+eO,al+"+"+tO,eU,Z2,QI,tU].join("|"),"g"),aU=RegExp("["+JI+Yd+$I+WI+"]"),sU=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cU=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],lU=-1,rn={};rn[Zf]=rn[eu]=rn[tu]=rn[Zs]=rn[U]=rn[B]=rn[q]=rn[le]=rn[Le]=!0,rn[Kn]=rn[Dr]=rn[Js]=rn[I]=rn[_r]=rn[E]=rn[V]=rn[_e]=rn[qe]=rn[jt]=rn[fn]=rn[fr]=rn[mn]=rn[Ti]=rn[Ki]=!1;var zt={};zt[Kn]=zt[Dr]=zt[Js]=zt[_r]=zt[I]=zt[E]=zt[Zf]=zt[eu]=zt[tu]=zt[Zs]=zt[U]=zt[qe]=zt[jt]=zt[fn]=zt[fr]=zt[mn]=zt[Ti]=zt[Wt]=zt[B]=zt[q]=zt[le]=zt[Le]=!0,zt[V]=zt[_e]=zt[Ki]=!1;var fU={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},uU={"&":"&","<":"<",">":">",'"':""","'":"'"},pU={"&":"&","<":"<",">":">",""":'"',"'":"'"},dU={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},gU=parseFloat,mU=parseInt,oO=typeof global=="object"&&global&&global.Object===Object&&global,hU=typeof self=="object"&&self&&self.Object===Object&&self,Xn=oO||hU||Function("return this")(),nv=typeof Ef=="object"&&Ef&&!Ef.nodeType&&Ef,ec=nv&&typeof Jp=="object"&&Jp&&!Jp.nodeType&&Jp,aO=ec&&ec.exports===nv,iv=aO&&oO.process,Vr=function(){try{var w=ec&&ec.require&&ec.require("util").types;return w||iv&&iv.binding&&iv.binding("util")}catch{}}(),sO=Vr&&Vr.isArrayBuffer,cO=Vr&&Vr.isDate,lO=Vr&&Vr.isMap,fO=Vr&&Vr.isRegExp,uO=Vr&&Vr.isSet,pO=Vr&&Vr.isTypedArray;function pr(w,X,K){switch(K.length){case 0:return w.call(X);case 1:return w.call(X,K[0]);case 2:return w.call(X,K[0],K[1]);case 3:return w.call(X,K[0],K[1],K[2])}return w.apply(X,K)}o(pr,"apply");function yU(w,X,K,Ae){for(var We=-1,At=w==null?0:w.length;++We<At;){var jn=w[We];X(Ae,jn,K(jn),w)}return Ae}o(yU,"arrayAggregator");function wr(w,X){for(var K=-1,Ae=w==null?0:w.length;++K<Ae&&X(w[K],K,w)!==!1;);return w}o(wr,"arrayEach");function TU(w,X){for(var K=w==null?0:w.length;K--&&X(w[K],K,w)!==!1;);return w}o(TU,"arrayEachRight");function dO(w,X){for(var K=-1,Ae=w==null?0:w.length;++K<Ae;)if(!X(w[K],K,w))return!1;return!0}o(dO,"arrayEvery");function Wa(w,X){for(var K=-1,Ae=w==null?0:w.length,We=0,At=[];++K<Ae;){var jn=w[K];X(jn,K,w)&&(At[We++]=jn)}return At}o(Wa,"arrayFilter");function Jd(w,X){var K=w==null?0:w.length;return!!K&&sl(w,X,0)>-1}o(Jd,"arrayIncludes");function rv(w,X,K){for(var Ae=-1,We=w==null?0:w.length;++Ae<We;)if(K(X,w[Ae]))return!0;return!1}o(rv,"arrayIncludesWith");function pn(w,X){for(var K=-1,Ae=w==null?0:w.length,We=Array(Ae);++K<Ae;)We[K]=X(w[K],K,w);return We}o(pn,"arrayMap");function Ka(w,X){for(var K=-1,Ae=X.length,We=w.length;++K<Ae;)w[We+K]=X[K];return w}o(Ka,"arrayPush");function ov(w,X,K,Ae){var We=-1,At=w==null?0:w.length;for(Ae&&At&&(K=w[++We]);++We<At;)K=X(K,w[We],We,w);return K}o(ov,"arrayReduce");function vU(w,X,K,Ae){var We=w==null?0:w.length;for(Ae&&We&&(K=w[--We]);We--;)K=X(K,w[We],We,w);return K}o(vU,"arrayReduceRight");function av(w,X){for(var K=-1,Ae=w==null?0:w.length;++K<Ae;)if(X(w[K],K,w))return!0;return!1}o(av,"arraySome");var bU=sv("length");function SU(w){return w.split("")}o(SU,"asciiToArray");function AU(w){return w.match(L2)||[]}o(AU,"asciiWords");function gO(w,X,K){var Ae;return K(w,function(We,At,jn){if(X(We,At,jn))return Ae=At,!1}),Ae}o(gO,"baseFindKey");function Zd(w,X,K,Ae){for(var We=w.length,At=K+(Ae?1:-1);Ae?At--:++At<We;)if(X(w[At],At,w))return At;return-1}o(Zd,"baseFindIndex");function sl(w,X,K){return X===X?_U(w,X,K):Zd(w,mO,K)}o(sl,"baseIndexOf");function EU(w,X,K,Ae){for(var We=K-1,At=w.length;++We<At;)if(Ae(w[We],X))return We;return-1}o(EU,"baseIndexOfWith");function mO(w){return w!==w}o(mO,"baseIsNaN");function hO(w,X){var K=w==null?0:w.length;return K?lv(w,X)/K:Ct}o(hO,"baseMean");function sv(w){return function(X){return X==null?e:X[w]}}o(sv,"baseProperty");function cv(w){return function(X){return w==null?e:w[X]}}o(cv,"basePropertyOf");function yO(w,X,K,Ae,We){return We(w,function(At,jn,Xt){K=Ae?(Ae=!1,At):X(K,At,jn,Xt)}),K}o(yO,"baseReduce");function PU(w,X){var K=w.length;for(w.sort(X);K--;)w[K]=w[K].value;return w}o(PU,"baseSortBy");function lv(w,X){for(var K,Ae=-1,We=w.length;++Ae<We;){var At=X(w[Ae]);At!==e&&(K=K===e?At:K+At)}return K}o(lv,"baseSum");function fv(w,X){for(var K=-1,Ae=Array(w);++K<w;)Ae[K]=X(K);return Ae}o(fv,"baseTimes");function xU(w,X){return pn(X,function(K){return[K,w[K]]})}o(xU,"baseToPairs");function TO(w){return w&&w.slice(0,AO(w)+1).replace(YT,"")}o(TO,"baseTrim");function dr(w){return function(X){return w(X)}}o(dr,"baseUnary");function uv(w,X){return pn(X,function(K){return w[K]})}o(uv,"baseValues");function iu(w,X){return w.has(X)}o(iu,"cacheHas");function vO(w,X){for(var K=-1,Ae=w.length;++K<Ae&&sl(X,w[K],0)>-1;);return K}o(vO,"charsStartIndex");function bO(w,X){for(var K=w.length;K--&&sl(X,w[K],0)>-1;);return K}o(bO,"charsEndIndex");function CU(w,X){for(var K=w.length,Ae=0;K--;)w[K]===X&&++Ae;return Ae}o(CU,"countHolders");var IU=cv(fU),OU=cv(uU);function RU(w){return"\\"+dU[w]}o(RU,"escapeStringChar");function LU(w,X){return w==null?e:w[X]}o(LU,"getValue");function cl(w){return aU.test(w)}o(cl,"hasUnicode");function NU(w){return sU.test(w)}o(NU,"hasUnicodeWord");function FU(w){for(var X,K=[];!(X=w.next()).done;)K.push(X.value);return K}o(FU,"iteratorToArray");function pv(w){var X=-1,K=Array(w.size);return w.forEach(function(Ae,We){K[++X]=[We,Ae]}),K}o(pv,"mapToArray");function SO(w,X){return function(K){return w(X(K))}}o(SO,"overArg");function Xa(w,X){for(var K=-1,Ae=w.length,We=0,At=[];++K<Ae;){var jn=w[K];(jn===X||jn===u)&&(w[K]=u,At[We++]=K)}return At}o(Xa,"replaceHolders");function eg(w){var X=-1,K=Array(w.size);return w.forEach(function(Ae){K[++X]=Ae}),K}o(eg,"setToArray");function DU(w){var X=-1,K=Array(w.size);return w.forEach(function(Ae){K[++X]=[Ae,Ae]}),K}o(DU,"setToPairs");function _U(w,X,K){for(var Ae=K-1,We=w.length;++Ae<We;)if(w[Ae]===X)return Ae;return-1}o(_U,"strictIndexOf");function VU(w,X,K){for(var Ae=K+1;Ae--;)if(w[Ae]===X)return Ae;return Ae}o(VU,"strictLastIndexOf");function ll(w){return cl(w)?MU(w):bU(w)}o(ll,"stringSize");function ao(w){return cl(w)?kU(w):SU(w)}o(ao,"stringToArray");function AO(w){for(var X=w.length;X--&&C2.test(w.charAt(X)););return X}o(AO,"trimmedEndIndex");var wU=cv(pU);function MU(w){for(var X=tv.lastIndex=0;tv.test(w);)++X;return X}o(MU,"unicodeSize");function kU(w){return w.match(tv)||[]}o(kU,"unicodeToArray");function UU(w){return w.match(oU)||[]}o(UU,"unicodeWords");var jU=o(function w(X){X=X==null?Xn:Qa.defaults(Xn.Object(),X,Qa.pick(Xn,cU));var K=X.Array,Ae=X.Date,We=X.Error,At=X.Function,jn=X.Math,Xt=X.Object,dv=X.RegExp,$U=X.String,Mr=X.TypeError,tg=K.prototype,BU=At.prototype,fl=Xt.prototype,ng=X["__core-js_shared__"],ig=BU.toString,Dt=fl.hasOwnProperty,HU=0,EO=function(){var c=/[^.]+$/.exec(ng&&ng.keys&&ng.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),rg=fl.toString,GU=ig.call(Xt),WU=Xn._,KU=dv("^"+ig.call(Dt).replace(nu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),og=aO?X.Buffer:e,qa=X.Symbol,ag=X.Uint8Array,PO=og?og.allocUnsafe:e,sg=SO(Xt.getPrototypeOf,Xt),xO=Xt.create,CO=fl.propertyIsEnumerable,cg=tg.splice,IO=qa?qa.isConcatSpreadable:e,ru=qa?qa.iterator:e,tc=qa?qa.toStringTag:e,lg=function(){try{var c=ac(Xt,"defineProperty");return c({},"",{}),c}catch{}}(),XU=X.clearTimeout!==Xn.clearTimeout&&X.clearTimeout,QU=Ae&&Ae.now!==Xn.Date.now&&Ae.now,qU=X.setTimeout!==Xn.setTimeout&&X.setTimeout,fg=jn.ceil,ug=jn.floor,gv=Xt.getOwnPropertySymbols,YU=og?og.isBuffer:e,OO=X.isFinite,zU=tg.join,JU=SO(Xt.keys,Xt),$n=jn.max,vi=jn.min,ZU=Ae.now,ej=X.parseInt,RO=jn.random,tj=tg.reverse,mv=ac(X,"DataView"),ou=ac(X,"Map"),hv=ac(X,"Promise"),ul=ac(X,"Set"),au=ac(X,"WeakMap"),su=ac(Xt,"create"),pg=au&&new au,pl={},nj=sc(mv),ij=sc(ou),rj=sc(hv),oj=sc(ul),aj=sc(au),dg=qa?qa.prototype:e,cu=dg?dg.valueOf:e,LO=dg?dg.toString:e;function P(c){if(vn(c)&&!Qe(c)&&!(c instanceof dt)){if(c instanceof kr)return c;if(Dt.call(c,"__wrapped__"))return NR(c)}return new kr(c)}o(P,"lodash");var dl=function(){function c(){}return o(c,"object"),function(f){if(!yn(f))return{};if(xO)return xO(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function gg(){}o(gg,"baseLodash");function kr(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}o(kr,"LodashWrapper"),P.templateSettings={escape:it,evaluate:Kt,interpolate:un,variable:"",imports:{_:P}},P.prototype=gg.prototype,P.prototype.constructor=P,kr.prototype=dl(gg.prototype),kr.prototype.constructor=kr;function dt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ut,this.__views__=[]}o(dt,"LazyWrapper");function sj(){var c=new dt(this.__wrapped__);return c.__actions__=Xi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Xi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Xi(this.__views__),c}o(sj,"lazyClone");function cj(){if(this.__filtered__){var c=new dt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(cj,"lazyReverse");function lj(){var c=this.__wrapped__.value(),f=this.__dir__,d=Qe(c),v=f<0,A=d?c.length:0,C=A4(0,A,this.__views__),L=C.start,F=C.end,k=F-L,z=v?F:L-1,J=this.__iteratees__,ne=J.length,me=0,Re=vi(k,this.__takeCount__);if(!d||!v&&A==k&&Re==k)return eR(c,this.__actions__);var Me=[];e:for(;k--&&me<Re;){z+=f;for(var Ze=-1,ke=c[z];++Ze<ne;){var at=J[Ze],gt=at.iteratee,hr=at.type,Fi=gt(ke);if(hr==Wn)ke=Fi;else if(!Fi){if(hr==cn)continue e;break e}}Me[me++]=ke}return Me}o(lj,"lazyValue"),dt.prototype=dl(gg.prototype),dt.prototype.constructor=dt;function nc(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(nc,"Hash");function fj(){this.__data__=su?su(null):{},this.size=0}o(fj,"hashClear");function uj(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(uj,"hashDelete");function pj(c){var f=this.__data__;if(su){var d=f[c];return d===s?e:d}return Dt.call(f,c)?f[c]:e}o(pj,"hashGet");function dj(c){var f=this.__data__;return su?f[c]!==e:Dt.call(f,c)}o(dj,"hashHas");function gj(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=su&&f===e?s:f,this}o(gj,"hashSet"),nc.prototype.clear=fj,nc.prototype.delete=uj,nc.prototype.get=pj,nc.prototype.has=dj,nc.prototype.set=gj;function ia(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(ia,"ListCache");function mj(){this.__data__=[],this.size=0}o(mj,"listCacheClear");function hj(c){var f=this.__data__,d=mg(f,c);if(d<0)return!1;var v=f.length-1;return d==v?f.pop():cg.call(f,d,1),--this.size,!0}o(hj,"listCacheDelete");function yj(c){var f=this.__data__,d=mg(f,c);return d<0?e:f[d][1]}o(yj,"listCacheGet");function Tj(c){return mg(this.__data__,c)>-1}o(Tj,"listCacheHas");function vj(c,f){var d=this.__data__,v=mg(d,c);return v<0?(++this.size,d.push([c,f])):d[v][1]=f,this}o(vj,"listCacheSet"),ia.prototype.clear=mj,ia.prototype.delete=hj,ia.prototype.get=yj,ia.prototype.has=Tj,ia.prototype.set=vj;function ra(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(ra,"MapCache");function bj(){this.size=0,this.__data__={hash:new nc,map:new(ou||ia),string:new nc}}o(bj,"mapCacheClear");function Sj(c){var f=Ig(this,c).delete(c);return this.size-=f?1:0,f}o(Sj,"mapCacheDelete");function Aj(c){return Ig(this,c).get(c)}o(Aj,"mapCacheGet");function Ej(c){return Ig(this,c).has(c)}o(Ej,"mapCacheHas");function Pj(c,f){var d=Ig(this,c),v=d.size;return d.set(c,f),this.size+=d.size==v?0:1,this}o(Pj,"mapCacheSet"),ra.prototype.clear=bj,ra.prototype.delete=Sj,ra.prototype.get=Aj,ra.prototype.has=Ej,ra.prototype.set=Pj;function ic(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new ra;++f<d;)this.add(c[f])}o(ic,"SetCache");function xj(c){return this.__data__.set(c,s),this}o(xj,"setCacheAdd");function Cj(c){return this.__data__.has(c)}o(Cj,"setCacheHas"),ic.prototype.add=ic.prototype.push=xj,ic.prototype.has=Cj;function so(c){var f=this.__data__=new ia(c);this.size=f.size}o(so,"Stack");function Ij(){this.__data__=new ia,this.size=0}o(Ij,"stackClear");function Oj(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(Oj,"stackDelete");function Rj(c){return this.__data__.get(c)}o(Rj,"stackGet");function Lj(c){return this.__data__.has(c)}o(Lj,"stackHas");function Nj(c,f){var d=this.__data__;if(d instanceof ia){var v=d.__data__;if(!ou||v.length<n-1)return v.push([c,f]),this.size=++d.size,this;d=this.__data__=new ra(v)}return d.set(c,f),this.size=d.size,this}o(Nj,"stackSet"),so.prototype.clear=Ij,so.prototype.delete=Oj,so.prototype.get=Rj,so.prototype.has=Lj,so.prototype.set=Nj;function NO(c,f){var d=Qe(c),v=!d&&cc(c),A=!d&&!v&&es(c),C=!d&&!v&&!A&&yl(c),L=d||v||A||C,F=L?fv(c.length,$U):[],k=F.length;for(var z in c)(f||Dt.call(c,z))&&!(L&&(z=="length"||A&&(z=="offset"||z=="parent")||C&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||ca(z,k)))&&F.push(z);return F}o(NO,"arrayLikeKeys");function FO(c){var f=c.length;return f?c[Iv(0,f-1)]:e}o(FO,"arraySample");function Fj(c,f){return Og(Xi(c),rc(f,0,c.length))}o(Fj,"arraySampleSize");function Dj(c){return Og(Xi(c))}o(Dj,"arrayShuffle");function yv(c,f,d){(d!==e&&!co(c[f],d)||d===e&&!(f in c))&&oa(c,f,d)}o(yv,"assignMergeValue");function lu(c,f,d){var v=c[f];(!(Dt.call(c,f)&&co(v,d))||d===e&&!(f in c))&&oa(c,f,d)}o(lu,"assignValue");function mg(c,f){for(var d=c.length;d--;)if(co(c[d][0],f))return d;return-1}o(mg,"assocIndexOf");function _j(c,f,d,v){return Ya(c,function(A,C,L){f(v,A,d(A),L)}),v}o(_j,"baseAggregator");function DO(c,f){return c&&Lo(f,Qn(f),c)}o(DO,"baseAssign");function Vj(c,f){return c&&Lo(f,qi(f),c)}o(Vj,"baseAssignIn");function oa(c,f,d){f=="__proto__"&&lg?lg(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(oa,"baseAssignValue");function Tv(c,f){for(var d=-1,v=f.length,A=K(v),C=c==null;++d<v;)A[d]=C?e:Jv(c,f[d]);return A}o(Tv,"baseAt");function rc(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o(rc,"baseClamp");function Ur(c,f,d,v,A,C){var L,F=f&p,k=f&g,z=f&m;if(d&&(L=A?d(c,v,A,C):d(c)),L!==e)return L;if(!yn(c))return c;var J=Qe(c);if(J){if(L=P4(c),!F)return Xi(c,L)}else{var ne=bi(c),me=ne==_e||ne==Ft;if(es(c))return iR(c,F);if(ne==fn||ne==Kn||me&&!A){if(L=k||me?{}:AR(c),!F)return k?p4(c,Vj(L,c)):u4(c,DO(L,c))}else{if(!zt[ne])return A?c:{};L=x4(c,ne,F)}}C||(C=new so);var Re=C.get(c);if(Re)return Re;C.set(c,L),zR(c)?c.forEach(function(ke){L.add(Ur(ke,f,d,ke,c,C))}):qR(c)&&c.forEach(function(ke,at){L.set(at,Ur(ke,f,d,at,c,C))});var Me=z?k?kv:Mv:k?qi:Qn,Ze=J?e:Me(c);return wr(Ze||c,function(ke,at){Ze&&(at=ke,ke=c[at]),lu(L,at,Ur(ke,f,d,at,c,C))}),L}o(Ur,"baseClone");function wj(c){var f=Qn(c);return function(d){return _O(d,c,f)}}o(wj,"baseConforms");function _O(c,f,d){var v=d.length;if(c==null)return!v;for(c=Xt(c);v--;){var A=d[v],C=f[A],L=c[A];if(L===e&&!(A in c)||!C(L))return!1}return!0}o(_O,"baseConformsTo");function VO(c,f,d){if(typeof c!="function")throw new Mr(r);return hu(function(){c.apply(e,d)},f)}o(VO,"baseDelay");function fu(c,f,d,v){var A=-1,C=Jd,L=!0,F=c.length,k=[],z=f.length;if(!F)return k;d&&(f=pn(f,dr(d))),v?(C=rv,L=!1):f.length>=n&&(C=iu,L=!1,f=new ic(f));e:for(;++A<F;){var J=c[A],ne=d==null?J:d(J);if(J=v||J!==0?J:0,L&&ne===ne){for(var me=z;me--;)if(f[me]===ne)continue e;k.push(J)}else C(f,ne,v)||k.push(J)}return k}o(fu,"baseDifference");var Ya=cR(Ro),wO=cR(bv,!0);function Mj(c,f){var d=!0;return Ya(c,function(v,A,C){return d=!!f(v,A,C),d}),d}o(Mj,"baseEvery");function hg(c,f,d){for(var v=-1,A=c.length;++v<A;){var C=c[v],L=f(C);if(L!=null&&(F===e?L===L&&!mr(L):d(L,F)))var F=L,k=C}return k}o(hg,"baseExtremum");function kj(c,f,d,v){var A=c.length;for(d=Je(d),d<0&&(d=-d>A?0:A+d),v=v===e||v>A?A:Je(v),v<0&&(v+=A),v=d>v?0:ZR(v);d<v;)c[d++]=f;return c}o(kj,"baseFill");function MO(c,f){var d=[];return Ya(c,function(v,A,C){f(v,A,C)&&d.push(v)}),d}o(MO,"baseFilter");function ni(c,f,d,v,A){var C=-1,L=c.length;for(d||(d=I4),A||(A=[]);++C<L;){var F=c[C];f>0&&d(F)?f>1?ni(F,f-1,d,v,A):Ka(A,F):v||(A[A.length]=F)}return A}o(ni,"baseFlatten");var vv=lR(),kO=lR(!0);function Ro(c,f){return c&&vv(c,f,Qn)}o(Ro,"baseForOwn");function bv(c,f){return c&&kO(c,f,Qn)}o(bv,"baseForOwnRight");function yg(c,f){return Wa(f,function(d){return la(c[d])})}o(yg,"baseFunctions");function oc(c,f){f=Ja(f,c);for(var d=0,v=f.length;c!=null&&d<v;)c=c[No(f[d++])];return d&&d==v?c:e}o(oc,"baseGet");function UO(c,f,d){var v=f(c);return Qe(c)?v:Ka(v,d(c))}o(UO,"baseGetAllKeys");function Li(c){return c==null?c===e?na:Tn:tc&&tc in Xt(c)?S4(c):_4(c)}o(Li,"baseGetTag");function Sv(c,f){return c>f}o(Sv,"baseGt");function Uj(c,f){return c!=null&&Dt.call(c,f)}o(Uj,"baseHas");function jj(c,f){return c!=null&&f in Xt(c)}o(jj,"baseHasIn");function $j(c,f,d){return c>=vi(f,d)&&c<$n(f,d)}o($j,"baseInRange");function Av(c,f,d){for(var v=d?rv:Jd,A=c[0].length,C=c.length,L=C,F=K(C),k=1/0,z=[];L--;){var J=c[L];L&&f&&(J=pn(J,dr(f))),k=vi(J.length,k),F[L]=!d&&(f||A>=120&&J.length>=120)?new ic(L&&J):e}J=c[0];var ne=-1,me=F[0];e:for(;++ne<A&&z.length<k;){var Re=J[ne],Me=f?f(Re):Re;if(Re=d||Re!==0?Re:0,!(me?iu(me,Me):v(z,Me,d))){for(L=C;--L;){var Ze=F[L];if(!(Ze?iu(Ze,Me):v(c[L],Me,d)))continue e}me&&me.push(Me),z.push(Re)}}return z}o(Av,"baseIntersection");function Bj(c,f,d,v){return Ro(c,function(A,C,L){f(v,d(A),C,L)}),v}o(Bj,"baseInverter");function uu(c,f,d){f=Ja(f,c),c=CR(c,f);var v=c==null?c:c[No($r(f))];return v==null?e:pr(v,c,d)}o(uu,"baseInvoke");function jO(c){return vn(c)&&Li(c)==Kn}o(jO,"baseIsArguments");function Hj(c){return vn(c)&&Li(c)==Js}o(Hj,"baseIsArrayBuffer");function Gj(c){return vn(c)&&Li(c)==E}o(Gj,"baseIsDate");function pu(c,f,d,v,A){return c===f?!0:c==null||f==null||!vn(c)&&!vn(f)?c!==c&&f!==f:Wj(c,f,d,v,pu,A)}o(pu,"baseIsEqual");function Wj(c,f,d,v,A,C){var L=Qe(c),F=Qe(f),k=L?Dr:bi(c),z=F?Dr:bi(f);k=k==Kn?fn:k,z=z==Kn?fn:z;var J=k==fn,ne=z==fn,me=k==z;if(me&&es(c)){if(!es(f))return!1;L=!0,J=!1}if(me&&!J)return C||(C=new so),L||yl(c)?vR(c,f,d,v,A,C):T4(c,f,k,d,v,A,C);if(!(d&h)){var Re=J&&Dt.call(c,"__wrapped__"),Me=ne&&Dt.call(f,"__wrapped__");if(Re||Me){var Ze=Re?c.value():c,ke=Me?f.value():f;return C||(C=new so),A(Ze,ke,d,v,C)}}return me?(C||(C=new so),b4(c,f,d,v,A,C)):!1}o(Wj,"baseIsEqualDeep");function Kj(c){return vn(c)&&bi(c)==qe}o(Kj,"baseIsMap");function Ev(c,f,d,v){var A=d.length,C=A,L=!v;if(c==null)return!C;for(c=Xt(c);A--;){var F=d[A];if(L&&F[2]?F[1]!==c[F[0]]:!(F[0]in c))return!1}for(;++A<C;){F=d[A];var k=F[0],z=c[k],J=F[1];if(L&&F[2]){if(z===e&&!(k in c))return!1}else{var ne=new so;if(v)var me=v(z,J,k,c,f,ne);if(!(me===e?pu(J,z,h|S,v,ne):me))return!1}}return!0}o(Ev,"baseIsMatch");function $O(c){if(!yn(c)||R4(c))return!1;var f=la(c)?KU:w2;return f.test(sc(c))}o($O,"baseIsNative");function Xj(c){return vn(c)&&Li(c)==fr}o(Xj,"baseIsRegExp");function Qj(c){return vn(c)&&bi(c)==mn}o(Qj,"baseIsSet");function qj(c){return vn(c)&&_g(c.length)&&!!rn[Li(c)]}o(qj,"baseIsTypedArray");function BO(c){return typeof c=="function"?c:c==null?Yi:typeof c=="object"?Qe(c)?WO(c[0],c[1]):GO(c):fL(c)}o(BO,"baseIteratee");function Pv(c){if(!mu(c))return JU(c);var f=[];for(var d in Xt(c))Dt.call(c,d)&&d!="constructor"&&f.push(d);return f}o(Pv,"baseKeys");function Yj(c){if(!yn(c))return D4(c);var f=mu(c),d=[];for(var v in c)v=="constructor"&&(f||!Dt.call(c,v))||d.push(v);return d}o(Yj,"baseKeysIn");function xv(c,f){return c<f}o(xv,"baseLt");function HO(c,f){var d=-1,v=Qi(c)?K(c.length):[];return Ya(c,function(A,C,L){v[++d]=f(A,C,L)}),v}o(HO,"baseMap");function GO(c){var f=jv(c);return f.length==1&&f[0][2]?PR(f[0][0],f[0][1]):function(d){return d===c||Ev(d,c,f)}}o(GO,"baseMatches");function WO(c,f){return Bv(c)&&ER(f)?PR(No(c),f):function(d){var v=Jv(d,c);return v===e&&v===f?Zv(d,c):pu(f,v,h|S)}}o(WO,"baseMatchesProperty");function Tg(c,f,d,v,A){c!==f&&vv(f,function(C,L){if(A||(A=new so),yn(C))zj(c,f,L,d,Tg,v,A);else{var F=v?v(Gv(c,L),C,L+"",c,f,A):e;F===e&&(F=C),yv(c,L,F)}},qi)}o(Tg,"baseMerge");function zj(c,f,d,v,A,C,L){var F=Gv(c,d),k=Gv(f,d),z=L.get(k);if(z){yv(c,d,z);return}var J=C?C(F,k,d+"",c,f,L):e,ne=J===e;if(ne){var me=Qe(k),Re=!me&&es(k),Me=!me&&!Re&&yl(k);J=k,me||Re||Me?Qe(F)?J=F:In(F)?J=Xi(F):Re?(ne=!1,J=iR(k,!0)):Me?(ne=!1,J=rR(k,!0)):J=[]:yu(k)||cc(k)?(J=F,cc(F)?J=eL(F):(!yn(F)||la(F))&&(J=AR(k))):ne=!1}ne&&(L.set(k,J),A(J,k,v,C,L),L.delete(k)),yv(c,d,J)}o(zj,"baseMergeDeep");function KO(c,f){var d=c.length;if(d)return f+=f<0?d:0,ca(f,d)?c[f]:e}o(KO,"baseNth");function XO(c,f,d){f.length?f=pn(f,function(C){return Qe(C)?function(L){return oc(L,C.length===1?C[0]:C)}:C}):f=[Yi];var v=-1;f=pn(f,dr(Ve()));var A=HO(c,function(C,L,F){var k=pn(f,function(z){return z(C)});return{criteria:k,index:++v,value:C}});return PU(A,function(C,L){return f4(C,L,d)})}o(XO,"baseOrderBy");function Jj(c,f){return QO(c,f,function(d,v){return Zv(c,v)})}o(Jj,"basePick");function QO(c,f,d){for(var v=-1,A=f.length,C={};++v<A;){var L=f[v],F=oc(c,L);d(F,L)&&du(C,Ja(L,c),F)}return C}o(QO,"basePickBy");function Zj(c){return function(f){return oc(f,c)}}o(Zj,"basePropertyDeep");function Cv(c,f,d,v){var A=v?EU:sl,C=-1,L=f.length,F=c;for(c===f&&(f=Xi(f)),d&&(F=pn(c,dr(d)));++C<L;)for(var k=0,z=f[C],J=d?d(z):z;(k=A(F,J,k,v))>-1;)F!==c&&cg.call(F,k,1),cg.call(c,k,1);return c}o(Cv,"basePullAll");function qO(c,f){for(var d=c?f.length:0,v=d-1;d--;){var A=f[d];if(d==v||A!==C){var C=A;ca(A)?cg.call(c,A,1):Lv(c,A)}}return c}o(qO,"basePullAt");function Iv(c,f){return c+ug(RO()*(f-c+1))}o(Iv,"baseRandom");function e4(c,f,d,v){for(var A=-1,C=$n(fg((f-c)/(d||1)),0),L=K(C);C--;)L[v?C:++A]=c,c+=d;return L}o(e4,"baseRange");function Ov(c,f){var d="";if(!c||f<1||f>Ne)return d;do f%2&&(d+=c),f=ug(f/2),f&&(c+=c);while(f);return d}o(Ov,"baseRepeat");function tt(c,f){return Wv(xR(c,f,Yi),c+"")}o(tt,"baseRest");function t4(c){return FO(Tl(c))}o(t4,"baseSample");function n4(c,f){var d=Tl(c);return Og(d,rc(f,0,d.length))}o(n4,"baseSampleSize");function du(c,f,d,v){if(!yn(c))return c;f=Ja(f,c);for(var A=-1,C=f.length,L=C-1,F=c;F!=null&&++A<C;){var k=No(f[A]),z=d;if(k==="__proto__"||k==="constructor"||k==="prototype")return c;if(A!=L){var J=F[k];z=v?v(J,k,F):e,z===e&&(z=yn(J)?J:ca(f[A+1])?[]:{})}lu(F,k,z),F=F[k]}return c}o(du,"baseSet");var YO=pg?function(c,f){return pg.set(c,f),c}:Yi,i4=lg?function(c,f){return lg(c,"toString",{configurable:!0,enumerable:!1,value:tb(f),writable:!0})}:Yi;function r4(c){return Og(Tl(c))}o(r4,"baseShuffle");function jr(c,f,d){var v=-1,A=c.length;f<0&&(f=-f>A?0:A+f),d=d>A?A:d,d<0&&(d+=A),A=f>d?0:d-f>>>0,f>>>=0;for(var C=K(A);++v<A;)C[v]=c[v+f];return C}o(jr,"baseSlice");function o4(c,f){var d;return Ya(c,function(v,A,C){return d=f(v,A,C),!d}),!!d}o(o4,"baseSome");function vg(c,f,d){var v=0,A=c==null?v:c.length;if(typeof f=="number"&&f===f&&A<=Wi){for(;v<A;){var C=v+A>>>1,L=c[C];L!==null&&!mr(L)&&(d?L<=f:L<f)?v=C+1:A=C}return A}return Rv(c,f,Yi,d)}o(vg,"baseSortedIndex");function Rv(c,f,d,v){var A=0,C=c==null?0:c.length;if(C===0)return 0;f=d(f);for(var L=f!==f,F=f===null,k=mr(f),z=f===e;A<C;){var J=ug((A+C)/2),ne=d(c[J]),me=ne!==e,Re=ne===null,Me=ne===ne,Ze=mr(ne);if(L)var ke=v||Me;else z?ke=Me&&(v||me):F?ke=Me&&me&&(v||!Re):k?ke=Me&&me&&!Re&&(v||!Ze):Re||Ze?ke=!1:ke=v?ne<=f:ne<f;ke?A=J+1:C=J}return vi(C,ln)}o(Rv,"baseSortedIndexBy");function zO(c,f){for(var d=-1,v=c.length,A=0,C=[];++d<v;){var L=c[d],F=f?f(L):L;if(!d||!co(F,k)){var k=F;C[A++]=L===0?0:L}}return C}o(zO,"baseSortedUniq");function JO(c){return typeof c=="number"?c:mr(c)?Ct:+c}o(JO,"baseToNumber");function gr(c){if(typeof c=="string")return c;if(Qe(c))return pn(c,gr)+"";if(mr(c))return LO?LO.call(c):"";var f=c+"";return f=="0"&&1/c==-Nt?"-0":f}o(gr,"baseToString");function za(c,f,d){var v=-1,A=Jd,C=c.length,L=!0,F=[],k=F;if(d)L=!1,A=rv;else if(C>=n){var z=f?null:h4(c);if(z)return eg(z);L=!1,A=iu,k=new ic}else k=f?[]:F;e:for(;++v<C;){var J=c[v],ne=f?f(J):J;if(J=d||J!==0?J:0,L&&ne===ne){for(var me=k.length;me--;)if(k[me]===ne)continue e;f&&k.push(ne),F.push(J)}else A(k,ne,d)||(k!==F&&k.push(ne),F.push(J))}return F}o(za,"baseUniq");function Lv(c,f){return f=Ja(f,c),c=CR(c,f),c==null||delete c[No($r(f))]}o(Lv,"baseUnset");function ZO(c,f,d,v){return du(c,f,d(oc(c,f)),v)}o(ZO,"baseUpdate");function bg(c,f,d,v){for(var A=c.length,C=v?A:-1;(v?C--:++C<A)&&f(c[C],C,c););return d?jr(c,v?0:C,v?C+1:A):jr(c,v?C+1:0,v?A:C)}o(bg,"baseWhile");function eR(c,f){var d=c;return d instanceof dt&&(d=d.value()),ov(f,function(v,A){return A.func.apply(A.thisArg,Ka([v],A.args))},d)}o(eR,"baseWrapperValue");function Nv(c,f,d){var v=c.length;if(v<2)return v?za(c[0]):[];for(var A=-1,C=K(v);++A<v;)for(var L=c[A],F=-1;++F<v;)F!=A&&(C[A]=fu(C[A]||L,c[F],f,d));return za(ni(C,1),f,d)}o(Nv,"baseXor");function tR(c,f,d){for(var v=-1,A=c.length,C=f.length,L={};++v<A;){var F=v<C?f[v]:e;d(L,c[v],F)}return L}o(tR,"baseZipObject");function Fv(c){return In(c)?c:[]}o(Fv,"castArrayLikeObject");function Dv(c){return typeof c=="function"?c:Yi}o(Dv,"castFunction");function Ja(c,f){return Qe(c)?c:Bv(c,f)?[c]:LR(It(c))}o(Ja,"castPath");var a4=tt;function Za(c,f,d){var v=c.length;return d=d===e?v:d,!f&&d>=v?c:jr(c,f,d)}o(Za,"castSlice");var nR=XU||function(c){return Xn.clearTimeout(c)};function iR(c,f){if(f)return c.slice();var d=c.length,v=PO?PO(d):new c.constructor(d);return c.copy(v),v}o(iR,"cloneBuffer");function _v(c){var f=new c.constructor(c.byteLength);return new ag(f).set(new ag(c)),f}o(_v,"cloneArrayBuffer");function s4(c,f){var d=f?_v(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(s4,"cloneDataView");function c4(c){var f=new c.constructor(c.source,jI.exec(c));return f.lastIndex=c.lastIndex,f}o(c4,"cloneRegExp");function l4(c){return cu?Xt(cu.call(c)):{}}o(l4,"cloneSymbol");function rR(c,f){var d=f?_v(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(rR,"cloneTypedArray");function oR(c,f){if(c!==f){var d=c!==e,v=c===null,A=c===c,C=mr(c),L=f!==e,F=f===null,k=f===f,z=mr(f);if(!F&&!z&&!C&&c>f||C&&L&&k&&!F&&!z||v&&L&&k||!d&&k||!A)return 1;if(!v&&!C&&!z&&c<f||z&&d&&A&&!v&&!C||F&&d&&A||!L&&A||!k)return-1}return 0}o(oR,"compareAscending");function f4(c,f,d){for(var v=-1,A=c.criteria,C=f.criteria,L=A.length,F=d.length;++v<L;){var k=oR(A[v],C[v]);if(k){if(v>=F)return k;var z=d[v];return k*(z=="desc"?-1:1)}}return c.index-f.index}o(f4,"compareMultiple");function aR(c,f,d,v){for(var A=-1,C=c.length,L=d.length,F=-1,k=f.length,z=$n(C-L,0),J=K(k+z),ne=!v;++F<k;)J[F]=f[F];for(;++A<L;)(ne||A<C)&&(J[d[A]]=c[A]);for(;z--;)J[F++]=c[A++];return J}o(aR,"composeArgs");function sR(c,f,d,v){for(var A=-1,C=c.length,L=-1,F=d.length,k=-1,z=f.length,J=$n(C-F,0),ne=K(J+z),me=!v;++A<J;)ne[A]=c[A];for(var Re=A;++k<z;)ne[Re+k]=f[k];for(;++L<F;)(me||A<C)&&(ne[Re+d[L]]=c[A++]);return ne}o(sR,"composeArgsRight");function Xi(c,f){var d=-1,v=c.length;for(f||(f=K(v));++d<v;)f[d]=c[d];return f}o(Xi,"copyArray");function Lo(c,f,d,v){var A=!d;d||(d={});for(var C=-1,L=f.length;++C<L;){var F=f[C],k=v?v(d[F],c[F],F,d,c):e;k===e&&(k=c[F]),A?oa(d,F,k):lu(d,F,k)}return d}o(Lo,"copyObject");function u4(c,f){return Lo(c,$v(c),f)}o(u4,"copySymbols");function p4(c,f){return Lo(c,bR(c),f)}o(p4,"copySymbolsIn");function Sg(c,f){return function(d,v){var A=Qe(d)?yU:_j,C=f?f():{};return A(d,c,Ve(v,2),C)}}o(Sg,"createAggregator");function gl(c){return tt(function(f,d){var v=-1,A=d.length,C=A>1?d[A-1]:e,L=A>2?d[2]:e;for(C=c.length>3&&typeof C=="function"?(A--,C):e,L&&Ni(d[0],d[1],L)&&(C=A<3?e:C,A=1),f=Xt(f);++v<A;){var F=d[v];F&&c(f,F,v,C)}return f})}o(gl,"createAssigner");function cR(c,f){return function(d,v){if(d==null)return d;if(!Qi(d))return c(d,v);for(var A=d.length,C=f?A:-1,L=Xt(d);(f?C--:++C<A)&&v(L[C],C,L)!==!1;);return d}}o(cR,"createBaseEach");function lR(c){return function(f,d,v){for(var A=-1,C=Xt(f),L=v(f),F=L.length;F--;){var k=L[c?F:++A];if(d(C[k],k,C)===!1)break}return f}}o(lR,"createBaseFor");function d4(c,f,d){var v=f&b,A=gu(c);function C(){var L=this&&this!==Xn&&this instanceof C?A:c;return L.apply(v?d:this,arguments)}return o(C,"wrapper"),C}o(d4,"createBind");function fR(c){return function(f){f=It(f);var d=cl(f)?ao(f):e,v=d?d[0]:f.charAt(0),A=d?Za(d,1).join(""):f.slice(1);return v[c]()+A}}o(fR,"createCaseFirst");function ml(c){return function(f){return ov(cL(sL(f).replace(iU,"")),c,"")}}o(ml,"createCompounder");function gu(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var d=dl(c.prototype),v=c.apply(d,f);return yn(v)?v:d}}o(gu,"createCtor");function g4(c,f,d){var v=gu(c);function A(){for(var C=arguments.length,L=K(C),F=C,k=hl(A);F--;)L[F]=arguments[F];var z=C<3&&L[0]!==k&&L[C-1]!==k?[]:Xa(L,k);if(C-=z.length,C<d)return mR(c,f,Ag,A.placeholder,e,L,z,e,e,d-C);var J=this&&this!==Xn&&this instanceof A?v:c;return pr(J,this,L)}return o(A,"wrapper"),A}o(g4,"createCurry");function uR(c){return function(f,d,v){var A=Xt(f);if(!Qi(f)){var C=Ve(d,3);f=Qn(f),d=o(function(F){return C(A[F],F,A)},"predicate")}var L=c(f,d,v);return L>-1?A[C?f[L]:L]:e}}o(uR,"createFind");function pR(c){return sa(function(f){var d=f.length,v=d,A=kr.prototype.thru;for(c&&f.reverse();v--;){var C=f[v];if(typeof C!="function")throw new Mr(r);if(A&&!L&&Cg(C)=="wrapper")var L=new kr([],!0)}for(v=L?v:d;++v<d;){C=f[v];var F=Cg(C),k=F=="wrapper"?Uv(C):e;k&&Hv(k[0])&&k[1]==(Z|M|j|oe)&&!k[4].length&&k[9]==1?L=L[Cg(k[0])].apply(L,k[3]):L=C.length==1&&Hv(C)?L[F]():L.thru(C)}return function(){var z=arguments,J=z[0];if(L&&z.length==1&&Qe(J))return L.plant(J).value();for(var ne=0,me=d?f[ne].apply(this,z):J;++ne<d;)me=f[ne].call(this,me);return me}})}o(pR,"createFlow");function Ag(c,f,d,v,A,C,L,F,k,z){var J=f&Z,ne=f&b,me=f&O,Re=f&(M|G),Me=f&Pe,Ze=me?e:gu(c);function ke(){for(var at=arguments.length,gt=K(at),hr=at;hr--;)gt[hr]=arguments[hr];if(Re)var Fi=hl(ke),yr=CU(gt,Fi);if(v&&(gt=aR(gt,v,A,Re)),C&&(gt=sR(gt,C,L,Re)),at-=yr,Re&&at<z){var On=Xa(gt,Fi);return mR(c,f,Ag,ke.placeholder,d,gt,On,F,k,z-at)}var lo=ne?d:this,ua=me?lo[c]:c;return at=gt.length,F?gt=V4(gt,F):Me&&at>1&>.reverse(),J&&k<at&&(gt.length=k),this&&this!==Xn&&this instanceof ke&&(ua=Ze||gu(ua)),ua.apply(lo,gt)}return o(ke,"wrapper"),ke}o(Ag,"createHybrid");function dR(c,f){return function(d,v){return Bj(d,c,f(v),{})}}o(dR,"createInverter");function Eg(c,f){return function(d,v){var A;if(d===e&&v===e)return f;if(d!==e&&(A=d),v!==e){if(A===e)return v;typeof d=="string"||typeof v=="string"?(d=gr(d),v=gr(v)):(d=JO(d),v=JO(v)),A=c(d,v)}return A}}o(Eg,"createMathOperation");function Vv(c){return sa(function(f){return f=pn(f,dr(Ve())),tt(function(d){var v=this;return c(f,function(A){return pr(A,v,d)})})})}o(Vv,"createOver");function Pg(c,f){f=f===e?" ":gr(f);var d=f.length;if(d<2)return d?Ov(f,c):f;var v=Ov(f,fg(c/ll(f)));return cl(f)?Za(ao(v),0,c).join(""):v.slice(0,c)}o(Pg,"createPadding");function m4(c,f,d,v){var A=f&b,C=gu(c);function L(){for(var F=-1,k=arguments.length,z=-1,J=v.length,ne=K(J+k),me=this&&this!==Xn&&this instanceof L?C:c;++z<J;)ne[z]=v[z];for(;k--;)ne[z++]=arguments[++F];return pr(me,A?d:this,ne)}return o(L,"wrapper"),L}o(m4,"createPartial");function gR(c){return function(f,d,v){return v&&typeof v!="number"&&Ni(f,d,v)&&(d=v=e),f=fa(f),d===e?(d=f,f=0):d=fa(d),v=v===e?f<d?1:-1:fa(v),e4(f,d,v,c)}}o(gR,"createRange");function xg(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=Br(f),d=Br(d)),c(f,d)}}o(xg,"createRelationalOperation");function mR(c,f,d,v,A,C,L,F,k,z){var J=f&M,ne=J?L:e,me=J?e:L,Re=J?C:e,Me=J?e:C;f|=J?j:re,f&=~(J?re:j),f&N||(f&=~(b|O));var Ze=[c,f,A,Re,ne,Me,me,F,k,z],ke=d.apply(e,Ze);return Hv(c)&&IR(ke,Ze),ke.placeholder=v,OR(ke,c,f)}o(mR,"createRecurry");function wv(c){var f=jn[c];return function(d,v){if(d=Br(d),v=v==null?0:vi(Je(v),292),v&&OO(d)){var A=(It(d)+"e").split("e"),C=f(A[0]+"e"+(+A[1]+v));return A=(It(C)+"e").split("e"),+(A[0]+"e"+(+A[1]-v))}return f(d)}}o(wv,"createRound");var h4=ul&&1/eg(new ul([,-0]))[1]==Nt?function(c){return new ul(c)}:rb;function hR(c){return function(f){var d=bi(f);return d==qe?pv(f):d==mn?DU(f):xU(f,c(f))}}o(hR,"createToPairs");function aa(c,f,d,v,A,C,L,F){var k=f&O;if(!k&&typeof c!="function")throw new Mr(r);var z=v?v.length:0;if(z||(f&=~(j|re),v=A=e),L=L===e?L:$n(Je(L),0),F=F===e?F:Je(F),z-=A?A.length:0,f&re){var J=v,ne=A;v=A=e}var me=k?e:Uv(c),Re=[c,f,d,v,A,J,ne,C,L,F];if(me&&F4(Re,me),c=Re[0],f=Re[1],d=Re[2],v=Re[3],A=Re[4],F=Re[9]=Re[9]===e?k?0:c.length:$n(Re[9]-z,0),!F&&f&(M|G)&&(f&=~(M|G)),!f||f==b)var Me=d4(c,f,d);else f==M||f==G?Me=g4(c,f,F):(f==j||f==(b|j))&&!A.length?Me=m4(c,f,d,v):Me=Ag.apply(e,Re);var Ze=me?YO:IR;return OR(Ze(Me,Re),c,f)}o(aa,"createWrap");function yR(c,f,d,v){return c===e||co(c,fl[d])&&!Dt.call(v,d)?f:c}o(yR,"customDefaultsAssignIn");function TR(c,f,d,v,A,C){return yn(c)&&yn(f)&&(C.set(f,c),Tg(c,f,e,TR,C),C.delete(f)),c}o(TR,"customDefaultsMerge");function y4(c){return yu(c)?e:c}o(y4,"customOmitClone");function vR(c,f,d,v,A,C){var L=d&h,F=c.length,k=f.length;if(F!=k&&!(L&&k>F))return!1;var z=C.get(c),J=C.get(f);if(z&&J)return z==f&&J==c;var ne=-1,me=!0,Re=d&S?new ic:e;for(C.set(c,f),C.set(f,c);++ne<F;){var Me=c[ne],Ze=f[ne];if(v)var ke=L?v(Ze,Me,ne,f,c,C):v(Me,Ze,ne,c,f,C);if(ke!==e){if(ke)continue;me=!1;break}if(Re){if(!av(f,function(at,gt){if(!iu(Re,gt)&&(Me===at||A(Me,at,d,v,C)))return Re.push(gt)})){me=!1;break}}else if(!(Me===Ze||A(Me,Ze,d,v,C))){me=!1;break}}return C.delete(c),C.delete(f),me}o(vR,"equalArrays");function T4(c,f,d,v,A,C,L){switch(d){case _r:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Js:return!(c.byteLength!=f.byteLength||!C(new ag(c),new ag(f)));case I:case E:case jt:return co(+c,+f);case V:return c.name==f.name&&c.message==f.message;case fr:case Ti:return c==f+"";case qe:var F=pv;case mn:var k=v&h;if(F||(F=eg),c.size!=f.size&&!k)return!1;var z=L.get(c);if(z)return z==f;v|=S,L.set(c,f);var J=vR(F(c),F(f),v,A,C,L);return L.delete(c),J;case Wt:if(cu)return cu.call(c)==cu.call(f)}return!1}o(T4,"equalByTag");function b4(c,f,d,v,A,C){var L=d&h,F=Mv(c),k=F.length,z=Mv(f),J=z.length;if(k!=J&&!L)return!1;for(var ne=k;ne--;){var me=F[ne];if(!(L?me in f:Dt.call(f,me)))return!1}var Re=C.get(c),Me=C.get(f);if(Re&&Me)return Re==f&&Me==c;var Ze=!0;C.set(c,f),C.set(f,c);for(var ke=L;++ne<k;){me=F[ne];var at=c[me],gt=f[me];if(v)var hr=L?v(gt,at,me,f,c,C):v(at,gt,me,c,f,C);if(!(hr===e?at===gt||A(at,gt,d,v,C):hr)){Ze=!1;break}ke||(ke=me=="constructor")}if(Ze&&!ke){var Fi=c.constructor,yr=f.constructor;Fi!=yr&&"constructor"in c&&"constructor"in f&&!(typeof Fi=="function"&&Fi instanceof Fi&&typeof yr=="function"&&yr instanceof yr)&&(Ze=!1)}return C.delete(c),C.delete(f),Ze}o(b4,"equalObjects");function sa(c){return Wv(xR(c,e,_R),c+"")}o(sa,"flatRest");function Mv(c){return UO(c,Qn,$v)}o(Mv,"getAllKeys");function kv(c){return UO(c,qi,bR)}o(kv,"getAllKeysIn");var Uv=pg?function(c){return pg.get(c)}:rb;function Cg(c){for(var f=c.name+"",d=pl[f],v=Dt.call(pl,f)?d.length:0;v--;){var A=d[v],C=A.func;if(C==null||C==c)return A.name}return f}o(Cg,"getFuncName");function hl(c){var f=Dt.call(P,"placeholder")?P:c;return f.placeholder}o(hl,"getHolder");function Ve(){var c=P.iteratee||nb;return c=c===nb?BO:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function Ig(c,f){var d=c.__data__;return O4(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(Ig,"getMapData");function jv(c){for(var f=Qn(c),d=f.length;d--;){var v=f[d],A=c[v];f[d]=[v,A,ER(A)]}return f}o(jv,"getMatchData");function ac(c,f){var d=LU(c,f);return $O(d)?d:e}o(ac,"getNative");function S4(c){var f=Dt.call(c,tc),d=c[tc];try{c[tc]=e;var v=!0}catch{}var A=rg.call(c);return v&&(f?c[tc]=d:delete c[tc]),A}o(S4,"getRawTag");var $v=gv?function(c){return c==null?[]:(c=Xt(c),Wa(gv(c),function(f){return CO.call(c,f)}))}:ob,bR=gv?function(c){for(var f=[];c;)Ka(f,$v(c)),c=sg(c);return f}:ob,bi=Li;(mv&&bi(new mv(new ArrayBuffer(1)))!=_r||ou&&bi(new ou)!=qe||hv&&bi(hv.resolve())!=Gt||ul&&bi(new ul)!=mn||au&&bi(new au)!=Ki)&&(bi=o(function(c){var f=Li(c),d=f==fn?c.constructor:e,v=d?sc(d):"";if(v)switch(v){case nj:return _r;case ij:return qe;case rj:return Gt;case oj:return mn;case aj:return Ki}return f},"getTag"));function A4(c,f,d){for(var v=-1,A=d.length;++v<A;){var C=d[v],L=C.size;switch(C.type){case"drop":c+=L;break;case"dropRight":f-=L;break;case"take":f=vi(f,c+L);break;case"takeRight":c=$n(c,f-L);break}}return{start:c,end:f}}o(A4,"getView");function E4(c){var f=c.match(O2);return f?f[1].split(R2):[]}o(E4,"getWrapDetails");function SR(c,f,d){f=Ja(f,c);for(var v=-1,A=f.length,C=!1;++v<A;){var L=No(f[v]);if(!(C=c!=null&&d(c,L)))break;c=c[L]}return C||++v!=A?C:(A=c==null?0:c.length,!!A&&_g(A)&&ca(L,A)&&(Qe(c)||cc(c)))}o(SR,"hasPath");function P4(c){var f=c.length,d=new c.constructor(f);return f&&typeof c[0]=="string"&&Dt.call(c,"index")&&(d.index=c.index,d.input=c.input),d}o(P4,"initCloneArray");function AR(c){return typeof c.constructor=="function"&&!mu(c)?dl(sg(c)):{}}o(AR,"initCloneObject");function x4(c,f,d){var v=c.constructor;switch(f){case Js:return _v(c);case I:case E:return new v(+c);case _r:return s4(c,d);case Zf:case eu:case tu:case Zs:case U:case B:case q:case le:case Le:return rR(c,d);case qe:return new v;case jt:case Ti:return new v(c);case fr:return c4(c);case mn:return new v;case Wt:return l4(c)}}o(x4,"initCloneByTag");function C4(c,f){var d=f.length;if(!d)return c;var v=d-1;return f[v]=(d>1?"& ":"")+f[v],f=f.join(d>2?", ":" "),c.replace(I2,`{
|
|
270
270
|
/* [wrapped with `+f+`] */
|
|
271
|
-
`)}o(C4,"insertWrapDetails");function I4(c){return Qe(c)||cc(c)||!!(IO&&c&&c[IO])}o(I4,"isFlattenable");function ca(c,f){var d=typeof c;return f=f??Ne,!!f&&(d=="number"||d!="symbol"&&k2.test(c))&&c>-1&&c%1==0&&c<f}o(ca,"isIndex");function Ni(c,f,d){if(!yn(d))return!1;var v=typeof f;return(v=="number"?Qi(d)&&ca(f,d.length):v=="string"&&f in d)?co(d[f],c):!1}o(Ni,"isIterateeCall");function Bv(c,f){if(Qe(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||mr(c)?!0:Qd.test(c)||!ur.test(c)||f!=null&&c in Xt(f)}o(Bv,"isKey");function O4(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}o(O4,"isKeyable");function Hv(c){var f=Cg(c),d=P[f];if(typeof d!="function"||!(f in pt.prototype))return!1;if(c===d)return!0;var v=Uv(d);return!!v&&c===v[0]}o(Hv,"isLaziable");function R4(c){return!!AO&&AO in c}o(R4,"isMasked");var L4=ng?la:ab;function mu(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||fl;return c===d}o(mu,"isPrototype");function AR(c){return c===c&&!yn(c)}o(AR,"isStrictComparable");function PR(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Xt(d))}}o(PR,"matchesStrictComparable");function N4(c){var f=Fg(c,function(v){return d.size===l&&d.clear(),v}),d=f.cache;return f}o(N4,"memoizeCapped");function F4(c,f){var d=c[1],v=f[1],E=d|v,C=E<(b|O|Z),L=v==Z&&d==M||v==Z&&d==oe&&c[7].length<=f[8]||v==(Z|oe)&&f[7].length<=f[8]&&d==M;if(!(C||L))return c;v&b&&(c[2]=f[2],E|=d&b?0:N);var F=f[3];if(F){var k=c[3];c[3]=k?aR(k,F,f[4]):F,c[4]=k?Xa(c[3],u):f[4]}return F=f[5],F&&(k=c[5],c[5]=k?sR(k,F,f[6]):F,c[6]=k?Xa(c[5],u):f[6]),F=f[7],F&&(c[7]=F),v&Z&&(c[8]=c[8]==null?f[8]:vi(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=E,c}o(F4,"mergeData");function D4(c){var f=[];if(c!=null)for(var d in Xt(c))f.push(d);return f}o(D4,"nativeKeysIn");function _4(c){return rg.call(c)}o(_4,"objectToString");function xR(c,f,d){return f=$n(f===e?c.length-1:f,0),function(){for(var v=arguments,E=-1,C=$n(v.length-f,0),L=K(C);++E<C;)L[E]=v[f+E];E=-1;for(var F=K(f+1);++E<f;)F[E]=v[E];return F[f]=d(L),pr(c,this,F)}}o(xR,"overRest");function CR(c,f){return f.length<2?c:oc(c,jr(f,0,-1))}o(CR,"parent");function V4(c,f){for(var d=c.length,v=vi(f.length,d),E=Xi(c);v--;){var C=f[v];c[v]=ca(C,d)?E[C]:e}return c}o(V4,"reorder");function Gv(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}o(Gv,"safeGet");var IR=RR(YO),hu=qU||function(c,f){return Xn.setTimeout(c,f)},Wv=RR(i4);function OR(c,f,d){var v=f+"";return Wv(c,C4(v,w4(A4(v),d)))}o(OR,"setWrapToString");function RR(c){var f=0,d=0;return function(){var v=ZU(),E=je-(v-d);if(d=v,E>0){if(++f>=yt)return arguments[0]}else f=0;return c.apply(e,arguments)}}o(RR,"shortOut");function Og(c,f){var d=-1,v=c.length,E=v-1;for(f=f===e?v:f;++d<f;){var C=Iv(d,E),L=c[C];c[C]=c[d],c[d]=L}return c.length=f,c}o(Og,"shuffleSelf");var LR=N4(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(qT,function(d,v,E,C){f.push(E?C.replace(F2,"$1"):v||d)}),f});function No(c){if(typeof c=="string"||mr(c))return c;var f=c+"";return f=="0"&&1/c==-Nt?"-0":f}o(No,"toKey");function sc(c){if(c!=null){try{return ig.call(c)}catch{}try{return c+""}catch{}}return""}o(sc,"toSource");function w4(c,f){return wr(Fe,function(d){var v="_."+d[0];f&d[1]&&!Jd(c,v)&&c.push(v)}),c.sort()}o(w4,"updateWrapDetails");function NR(c){if(c instanceof pt)return c.clone();var f=new kr(c.__wrapped__,c.__chain__);return f.__actions__=Xi(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}o(NR,"wrapperClone");function M4(c,f,d){(d?Ni(c,f,d):f===e)?f=1:f=$n(Je(f),0);var v=c==null?0:c.length;if(!v||f<1)return[];for(var E=0,C=0,L=K(fg(v/f));E<v;)L[C++]=jr(c,E,E+=f);return L}o(M4,"chunk");function k4(c){for(var f=-1,d=c==null?0:c.length,v=0,E=[];++f<d;){var C=c[f];C&&(E[v++]=C)}return E}o(k4,"compact");function U4(){var c=arguments.length;if(!c)return[];for(var f=K(c-1),d=arguments[0],v=c;v--;)f[v-1]=arguments[v];return Ka(Qe(d)?Xi(d):[d],ni(f,1))}o(U4,"concat");var j4=tt(function(c,f){return In(c)?fu(c,ni(f,1,In,!0)):[]}),$4=tt(function(c,f){var d=$r(f);return In(d)&&(d=e),In(c)?fu(c,ni(f,1,In,!0),Ve(d,2)):[]}),B4=tt(function(c,f){var d=$r(f);return In(d)&&(d=e),In(c)?fu(c,ni(f,1,In,!0),e,d):[]});function H4(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Je(f),jr(c,f<0?0:f,v)):[]}o(H4,"drop");function G4(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Je(f),f=v-f,jr(c,0,f<0?0:f)):[]}o(G4,"dropRight");function W4(c,f){return c&&c.length?bg(c,Ve(f,3),!0,!0):[]}o(W4,"dropRightWhile");function K4(c,f){return c&&c.length?bg(c,Ve(f,3),!0):[]}o(K4,"dropWhile");function X4(c,f,d,v){var E=c==null?0:c.length;return E?(d&&typeof d!="number"&&Ni(c,f,d)&&(d=0,v=E),kj(c,f,d,v)):[]}o(X4,"fill");function FR(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var E=d==null?0:Je(d);return E<0&&(E=$n(v+E,0)),Zd(c,Ve(f,3),E)}o(FR,"findIndex");function DR(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var E=v-1;return d!==e&&(E=Je(d),E=d<0?$n(v+E,0):vi(E,v-1)),Zd(c,Ve(f,3),E,!0)}o(DR,"findLastIndex");function _R(c){var f=c==null?0:c.length;return f?ni(c,1):[]}o(_R,"flatten");function Q4(c){var f=c==null?0:c.length;return f?ni(c,Nt):[]}o(Q4,"flattenDeep");function q4(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:Je(f),ni(c,f)):[]}o(q4,"flattenDepth");function Y4(c){for(var f=-1,d=c==null?0:c.length,v={};++f<d;){var E=c[f];v[E[0]]=E[1]}return v}o(Y4,"fromPairs");function VR(c){return c&&c.length?c[0]:e}o(VR,"head");function z4(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var E=d==null?0:Je(d);return E<0&&(E=$n(v+E,0)),sl(c,f,E)}o(z4,"indexOf");function J4(c){var f=c==null?0:c.length;return f?jr(c,0,-1):[]}o(J4,"initial");var Z4=tt(function(c){var f=pn(c,Fv);return f.length&&f[0]===c[0]?Ev(f):[]}),e$=tt(function(c){var f=$r(c),d=pn(c,Fv);return f===$r(d)?f=e:d.pop(),d.length&&d[0]===c[0]?Ev(d,Ve(f,2)):[]}),t$=tt(function(c){var f=$r(c),d=pn(c,Fv);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?Ev(d,e,f):[]});function n$(c,f){return c==null?"":zU.call(c,f)}o(n$,"join");function $r(c){var f=c==null?0:c.length;return f?c[f-1]:e}o($r,"last");function i$(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var E=v;return d!==e&&(E=Je(d),E=E<0?$n(v+E,0):vi(E,v-1)),f===f?VU(c,f,E):Zd(c,mO,E,!0)}o(i$,"lastIndexOf");function r$(c,f){return c&&c.length?KO(c,Je(f)):e}o(r$,"nth");var o$=tt(wR);function wR(c,f){return c&&c.length&&f&&f.length?Cv(c,f):c}o(wR,"pullAll");function a$(c,f,d){return c&&c.length&&f&&f.length?Cv(c,f,Ve(d,2)):c}o(a$,"pullAllBy");function s$(c,f,d){return c&&c.length&&f&&f.length?Cv(c,f,e,d):c}o(s$,"pullAllWith");var c$=sa(function(c,f){var d=c==null?0:c.length,v=Tv(c,f);return qO(c,pn(f,function(E){return ca(E,d)?+E:E}).sort(oR)),v});function l$(c,f){var d=[];if(!(c&&c.length))return d;var v=-1,E=[],C=c.length;for(f=Ve(f,3);++v<C;){var L=c[v];f(L,v,c)&&(d.push(L),E.push(v))}return qO(c,E),d}o(l$,"remove");function Kv(c){return c==null?c:tj.call(c)}o(Kv,"reverse");function f$(c,f,d){var v=c==null?0:c.length;return v?(d&&typeof d!="number"&&Ni(c,f,d)?(f=0,d=v):(f=f==null?0:Je(f),d=d===e?v:Je(d)),jr(c,f,d)):[]}o(f$,"slice");function u$(c,f){return vg(c,f)}o(u$,"sortedIndex");function p$(c,f,d){return Rv(c,f,Ve(d,2))}o(p$,"sortedIndexBy");function d$(c,f){var d=c==null?0:c.length;if(d){var v=vg(c,f);if(v<d&&co(c[v],f))return v}return-1}o(d$,"sortedIndexOf");function g$(c,f){return vg(c,f,!0)}o(g$,"sortedLastIndex");function m$(c,f,d){return Rv(c,f,Ve(d,2),!0)}o(m$,"sortedLastIndexBy");function h$(c,f){var d=c==null?0:c.length;if(d){var v=vg(c,f,!0)-1;if(co(c[v],f))return v}return-1}o(h$,"sortedLastIndexOf");function y$(c){return c&&c.length?zO(c):[]}o(y$,"sortedUniq");function T$(c,f){return c&&c.length?zO(c,Ve(f,2)):[]}o(T$,"sortedUniqBy");function v$(c){var f=c==null?0:c.length;return f?jr(c,1,f):[]}o(v$,"tail");function b$(c,f,d){return c&&c.length?(f=d||f===e?1:Je(f),jr(c,0,f<0?0:f)):[]}o(b$,"take");function S$(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Je(f),f=v-f,jr(c,f<0?0:f,v)):[]}o(S$,"takeRight");function E$(c,f){return c&&c.length?bg(c,Ve(f,3),!1,!0):[]}o(E$,"takeRightWhile");function A$(c,f){return c&&c.length?bg(c,Ve(f,3)):[]}o(A$,"takeWhile");var P$=tt(function(c){return za(ni(c,1,In,!0))}),x$=tt(function(c){var f=$r(c);return In(f)&&(f=e),za(ni(c,1,In,!0),Ve(f,2))}),C$=tt(function(c){var f=$r(c);return f=typeof f=="function"?f:e,za(ni(c,1,In,!0),e,f)});function I$(c){return c&&c.length?za(c):[]}o(I$,"uniq");function O$(c,f){return c&&c.length?za(c,Ve(f,2)):[]}o(O$,"uniqBy");function R$(c,f){return f=typeof f=="function"?f:e,c&&c.length?za(c,e,f):[]}o(R$,"uniqWith");function Xv(c){if(!(c&&c.length))return[];var f=0;return c=Wa(c,function(d){if(In(d))return f=$n(d.length,f),!0}),fv(f,function(d){return pn(c,sv(d))})}o(Xv,"unzip");function MR(c,f){if(!(c&&c.length))return[];var d=Xv(c);return f==null?d:pn(d,function(v){return pr(f,e,v)})}o(MR,"unzipWith");var L$=tt(function(c,f){return In(c)?fu(c,f):[]}),N$=tt(function(c){return Nv(Wa(c,In))}),F$=tt(function(c){var f=$r(c);return In(f)&&(f=e),Nv(Wa(c,In),Ve(f,2))}),D$=tt(function(c){var f=$r(c);return f=typeof f=="function"?f:e,Nv(Wa(c,In),e,f)}),_$=tt(Xv);function V$(c,f){return tR(c||[],f||[],lu)}o(V$,"zipObject");function w$(c,f){return tR(c||[],f||[],du)}o(w$,"zipObjectDeep");var M$=tt(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,MR(c,d)});function kR(c){var f=P(c);return f.__chain__=!0,f}o(kR,"chain");function k$(c,f){return f(c),c}o(k$,"tap");function Rg(c,f){return f(c)}o(Rg,"thru");var U$=sa(function(c){var f=c.length,d=f?c[0]:0,v=this.__wrapped__,E=o(function(C){return Tv(C,c)},"interceptor");return f>1||this.__actions__.length||!(v instanceof pt)||!ca(d)?this.thru(E):(v=v.slice(d,+d+(f?1:0)),v.__actions__.push({func:Rg,args:[E],thisArg:e}),new kr(v,this.__chain__).thru(function(C){return f&&!C.length&&C.push(e),C}))});function j$(){return kR(this)}o(j$,"wrapperChain");function $$(){return new kr(this.value(),this.__chain__)}o($$,"wrapperCommit");function B$(){this.__values__===e&&(this.__values__=JR(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}o(B$,"wrapperNext");function H$(){return this}o(H$,"wrapperToIterator");function G$(c){for(var f,d=this;d instanceof gg;){var v=NR(d);v.__index__=0,v.__values__=e,f?E.__wrapped__=v:f=v;var E=v;d=d.__wrapped__}return E.__wrapped__=c,f}o(G$,"wrapperPlant");function W$(){var c=this.__wrapped__;if(c instanceof pt){var f=c;return this.__actions__.length&&(f=new pt(this)),f=f.reverse(),f.__actions__.push({func:Rg,args:[Kv],thisArg:e}),new kr(f,this.__chain__)}return this.thru(Kv)}o(W$,"wrapperReverse");function K$(){return eR(this.__wrapped__,this.__actions__)}o(K$,"wrapperValue");var X$=Sg(function(c,f,d){Dt.call(c,d)?++c[d]:oa(c,d,1)});function Q$(c,f,d){var v=Qe(c)?dO:Mj;return d&&Ni(c,f,d)&&(f=e),v(c,Ve(f,3))}o(Q$,"every");function q$(c,f){var d=Qe(c)?Wa:MO;return d(c,Ve(f,3))}o(q$,"filter");var Y$=uR(FR),z$=uR(DR);function J$(c,f){return ni(Lg(c,f),1)}o(J$,"flatMap");function Z$(c,f){return ni(Lg(c,f),Nt)}o(Z$,"flatMapDeep");function eB(c,f,d){return d=d===e?1:Je(d),ni(Lg(c,f),d)}o(eB,"flatMapDepth");function UR(c,f){var d=Qe(c)?wr:Ya;return d(c,Ve(f,3))}o(UR,"forEach");function jR(c,f){var d=Qe(c)?TU:wO;return d(c,Ve(f,3))}o(jR,"forEachRight");var tB=Sg(function(c,f,d){Dt.call(c,d)?c[d].push(f):oa(c,d,[f])});function nB(c,f,d,v){c=Qi(c)?c:Tl(c),d=d&&!v?Je(d):0;var E=c.length;return d<0&&(d=$n(E+d,0)),Vg(c)?d<=E&&c.indexOf(f,d)>-1:!!E&&sl(c,f,d)>-1}o(nB,"includes");var iB=tt(function(c,f,d){var v=-1,E=typeof f=="function",C=Qi(c)?K(c.length):[];return Ya(c,function(L){C[++v]=E?pr(f,L,d):uu(L,f,d)}),C}),rB=Sg(function(c,f,d){oa(c,d,f)});function Lg(c,f){var d=Qe(c)?pn:HO;return d(c,Ve(f,3))}o(Lg,"map");function oB(c,f,d,v){return c==null?[]:(Qe(f)||(f=f==null?[]:[f]),d=v?e:d,Qe(d)||(d=d==null?[]:[d]),XO(c,f,d))}o(oB,"orderBy");var aB=Sg(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function sB(c,f,d){var v=Qe(c)?ov:yO,E=arguments.length<3;return v(c,Ve(f,4),d,E,Ya)}o(sB,"reduce");function cB(c,f,d){var v=Qe(c)?vU:yO,E=arguments.length<3;return v(c,Ve(f,4),d,E,wO)}o(cB,"reduceRight");function lB(c,f){var d=Qe(c)?Wa:MO;return d(c,Dg(Ve(f,3)))}o(lB,"reject");function fB(c){var f=Qe(c)?FO:t4;return f(c)}o(fB,"sample");function uB(c,f,d){(d?Ni(c,f,d):f===e)?f=1:f=Je(f);var v=Qe(c)?Fj:n4;return v(c,f)}o(uB,"sampleSize");function pB(c){var f=Qe(c)?Dj:r4;return f(c)}o(pB,"shuffle");function dB(c){if(c==null)return 0;if(Qi(c))return Vg(c)?ll(c):c.length;var f=bi(c);return f==qe||f==mn?c.size:Pv(c).length}o(dB,"size");function gB(c,f,d){var v=Qe(c)?av:o4;return d&&Ni(c,f,d)&&(f=e),v(c,Ve(f,3))}o(gB,"some");var mB=tt(function(c,f){if(c==null)return[];var d=f.length;return d>1&&Ni(c,f[0],f[1])?f=[]:d>2&&Ni(f[0],f[1],f[2])&&(f=[f[0]]),XO(c,ni(f,1),[])}),Ng=QU||function(){return Xn.Date.now()};function hB(c,f){if(typeof f!="function")throw new Mr(r);return c=Je(c),function(){if(--c<1)return f.apply(this,arguments)}}o(hB,"after");function $R(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,aa(c,Z,e,e,e,e,f)}o($R,"ary");function BR(c,f){var d;if(typeof f!="function")throw new Mr(r);return c=Je(c),function(){return--c>0&&(d=f.apply(this,arguments)),c<=1&&(f=e),d}}o(BR,"before");var Qv=tt(function(c,f,d){var v=b;if(d.length){var E=Xa(d,hl(Qv));v|=j}return aa(c,v,f,d,E)}),HR=tt(function(c,f,d){var v=b|O;if(d.length){var E=Xa(d,hl(HR));v|=j}return aa(f,v,c,d,E)});function GR(c,f,d){f=d?e:f;var v=aa(c,M,e,e,e,e,e,f);return v.placeholder=GR.placeholder,v}o(GR,"curry");function WR(c,f,d){f=d?e:f;var v=aa(c,G,e,e,e,e,e,f);return v.placeholder=WR.placeholder,v}o(WR,"curryRight");function KR(c,f,d){var v,E,C,L,F,k,z=0,J=!1,ne=!1,me=!0;if(typeof c!="function")throw new Mr(r);f=Br(f)||0,yn(d)&&(J=!!d.leading,ne="maxWait"in d,C=ne?$n(Br(d.maxWait)||0,f):C,me="trailing"in d?!!d.trailing:me);function Re(On){var lo=v,ua=E;return v=E=e,z=On,L=c.apply(ua,lo),L}o(Re,"invokeFunc");function Me(On){return z=On,F=hu(at,f),J?Re(On):L}o(Me,"leadingEdge");function Ze(On){var lo=On-k,ua=On-z,uL=f-lo;return ne?vi(uL,C-ua):uL}o(Ze,"remainingWait");function ke(On){var lo=On-k,ua=On-z;return k===e||lo>=f||lo<0||ne&&ua>=C}o(ke,"shouldInvoke");function at(){var On=Ng();if(ke(On))return gt(On);F=hu(at,Ze(On))}o(at,"timerExpired");function gt(On){return F=e,me&&v?Re(On):(v=E=e,L)}o(gt,"trailingEdge");function hr(){F!==e&&nR(F),z=0,v=k=E=F=e}o(hr,"cancel");function Fi(){return F===e?L:gt(Ng())}o(Fi,"flush");function yr(){var On=Ng(),lo=ke(On);if(v=arguments,E=this,k=On,lo){if(F===e)return Me(k);if(ne)return nR(F),F=hu(at,f),Re(k)}return F===e&&(F=hu(at,f)),L}return o(yr,"debounced"),yr.cancel=hr,yr.flush=Fi,yr}o(KR,"debounce");var yB=tt(function(c,f){return VO(c,1,f)}),TB=tt(function(c,f,d){return VO(c,Br(f)||0,d)});function vB(c){return aa(c,Pe)}o(vB,"flip");function Fg(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new Mr(r);var d=o(function(){var v=arguments,E=f?f.apply(this,v):v[0],C=d.cache;if(C.has(E))return C.get(E);var L=c.apply(this,v);return d.cache=C.set(E,L)||C,L},"memoized");return d.cache=new(Fg.Cache||ra),d}o(Fg,"memoize"),Fg.Cache=ra;function Dg(c){if(typeof c!="function")throw new Mr(r);return function(){var f=arguments;switch(f.length){case 0:return!c.call(this);case 1:return!c.call(this,f[0]);case 2:return!c.call(this,f[0],f[1]);case 3:return!c.call(this,f[0],f[1],f[2])}return!c.apply(this,f)}}o(Dg,"negate");function bB(c){return BR(2,c)}o(bB,"once");var SB=a4(function(c,f){f=f.length==1&&Qe(f[0])?pn(f[0],dr(Ve())):pn(ni(f,1),dr(Ve()));var d=f.length;return tt(function(v){for(var E=-1,C=vi(v.length,d);++E<C;)v[E]=f[E].call(this,v[E]);return pr(c,this,v)})}),qv=tt(function(c,f){var d=Xa(f,hl(qv));return aa(c,j,e,f,d)}),XR=tt(function(c,f){var d=Xa(f,hl(XR));return aa(c,re,e,f,d)}),EB=sa(function(c,f){return aa(c,oe,e,e,e,f)});function AB(c,f){if(typeof c!="function")throw new Mr(r);return f=f===e?f:Je(f),tt(c,f)}o(AB,"rest");function PB(c,f){if(typeof c!="function")throw new Mr(r);return f=f==null?0:$n(Je(f),0),tt(function(d){var v=d[f],E=Za(d,0,f);return v&&Ka(E,v),pr(c,this,E)})}o(PB,"spread");function xB(c,f,d){var v=!0,E=!0;if(typeof c!="function")throw new Mr(r);return yn(d)&&(v="leading"in d?!!d.leading:v,E="trailing"in d?!!d.trailing:E),KR(c,f,{leading:v,maxWait:f,trailing:E})}o(xB,"throttle");function CB(c){return $R(c,1)}o(CB,"unary");function IB(c,f){return qv(Dv(f),c)}o(IB,"wrap");function OB(){if(!arguments.length)return[];var c=arguments[0];return Qe(c)?c:[c]}o(OB,"castArray");function RB(c){return Ur(c,m)}o(RB,"clone");function LB(c,f){return f=typeof f=="function"?f:e,Ur(c,m,f)}o(LB,"cloneWith");function NB(c){return Ur(c,p|m)}o(NB,"cloneDeep");function FB(c,f){return f=typeof f=="function"?f:e,Ur(c,p|m,f)}o(FB,"cloneDeepWith");function DB(c,f){return f==null||_O(c,f,Qn(f))}o(DB,"conformsTo");function co(c,f){return c===f||c!==c&&f!==f}o(co,"eq");var _B=xg(Sv),VB=xg(function(c,f){return c>=f}),cc=jO(function(){return arguments}())?jO:function(c){return vn(c)&&Dt.call(c,"callee")&&!CO.call(c,"callee")},Qe=K.isArray,wB=sO?dr(sO):Hj;function Qi(c){return c!=null&&_g(c.length)&&!la(c)}o(Qi,"isArrayLike");function In(c){return vn(c)&&Qi(c)}o(In,"isArrayLikeObject");function MB(c){return c===!0||c===!1||vn(c)&&Li(c)==I}o(MB,"isBoolean");var es=YU||ab,kB=cO?dr(cO):Gj;function UB(c){return vn(c)&&c.nodeType===1&&!yu(c)}o(UB,"isElement");function jB(c){if(c==null)return!0;if(Qi(c)&&(Qe(c)||typeof c=="string"||typeof c.splice=="function"||es(c)||yl(c)||cc(c)))return!c.length;var f=bi(c);if(f==qe||f==mn)return!c.size;if(mu(c))return!Pv(c).length;for(var d in c)if(Dt.call(c,d))return!1;return!0}o(jB,"isEmpty");function $B(c,f){return pu(c,f)}o($B,"isEqual");function BB(c,f,d){d=typeof d=="function"?d:e;var v=d?d(c,f):e;return v===e?pu(c,f,e,d):!!v}o(BB,"isEqualWith");function Yv(c){if(!vn(c))return!1;var f=Li(c);return f==V||f==Y||typeof c.message=="string"&&typeof c.name=="string"&&!yu(c)}o(Yv,"isError");function HB(c){return typeof c=="number"&&OO(c)}o(HB,"isFinite");function la(c){if(!yn(c))return!1;var f=Li(c);return f==_e||f==Ft||f==ot||f==ti}o(la,"isFunction");function QR(c){return typeof c=="number"&&c==Je(c)}o(QR,"isInteger");function _g(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Ne}o(_g,"isLength");function yn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}o(yn,"isObject");function vn(c){return c!=null&&typeof c=="object"}o(vn,"isObjectLike");var qR=lO?dr(lO):Kj;function GB(c,f){return c===f||Av(c,f,jv(f))}o(GB,"isMatch");function WB(c,f,d){return d=typeof d=="function"?d:e,Av(c,f,jv(f),d)}o(WB,"isMatchWith");function KB(c){return YR(c)&&c!=+c}o(KB,"isNaN");function XB(c){if(L4(c))throw new We(i);return $O(c)}o(XB,"isNative");function QB(c){return c===null}o(QB,"isNull");function qB(c){return c==null}o(qB,"isNil");function YR(c){return typeof c=="number"||vn(c)&&Li(c)==jt}o(YR,"isNumber");function yu(c){if(!vn(c)||Li(c)!=fn)return!1;var f=sg(c);if(f===null)return!0;var d=Dt.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&ig.call(d)==GU}o(yu,"isPlainObject");var zv=fO?dr(fO):Xj;function YB(c){return QR(c)&&c>=-Ne&&c<=Ne}o(YB,"isSafeInteger");var zR=uO?dr(uO):Qj;function Vg(c){return typeof c=="string"||!Qe(c)&&vn(c)&&Li(c)==Ti}o(Vg,"isString");function mr(c){return typeof c=="symbol"||vn(c)&&Li(c)==Wt}o(mr,"isSymbol");var yl=pO?dr(pO):qj;function zB(c){return c===e}o(zB,"isUndefined");function JB(c){return vn(c)&&bi(c)==Ki}o(JB,"isWeakMap");function ZB(c){return vn(c)&&Li(c)==Jf}o(ZB,"isWeakSet");var eH=xg(xv),tH=xg(function(c,f){return c<=f});function JR(c){if(!c)return[];if(Qi(c))return Vg(c)?ao(c):Xi(c);if(ru&&c[ru])return FU(c[ru]());var f=bi(c),d=f==qe?pv:f==mn?eg:Tl;return d(c)}o(JR,"toArray");function fa(c){if(!c)return c===0?c:0;if(c=Br(c),c===Nt||c===-Nt){var f=c<0?-1:1;return f*Ri}return c===c?c:0}o(fa,"toFinite");function Je(c){var f=fa(c),d=f%1;return f===f?d?f-d:f:0}o(Je,"toInteger");function ZR(c){return c?rc(Je(c),0,Ut):0}o(ZR,"toLength");function Br(c){if(typeof c=="number")return c;if(mr(c))return Ct;if(yn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=yn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=TO(c);var d=V2.test(c);return d||M2.test(c)?mU(c.slice(2),d?2:8):_2.test(c)?Ct:+c}o(Br,"toNumber");function eL(c){return Lo(c,qi(c))}o(eL,"toPlainObject");function nH(c){return c?rc(Je(c),-Ne,Ne):c===0?c:0}o(nH,"toSafeInteger");function It(c){return c==null?"":gr(c)}o(It,"toString");var iH=gl(function(c,f){if(mu(f)||Qi(f)){Lo(f,Qn(f),c);return}for(var d in f)Dt.call(f,d)&&lu(c,d,f[d])}),tL=gl(function(c,f){Lo(f,qi(f),c)}),wg=gl(function(c,f,d,v){Lo(f,qi(f),c,v)}),rH=gl(function(c,f,d,v){Lo(f,Qn(f),c,v)}),oH=sa(Tv);function aH(c,f){var d=dl(c);return f==null?d:DO(d,f)}o(aH,"create");var sH=tt(function(c,f){c=Xt(c);var d=-1,v=f.length,E=v>2?f[2]:e;for(E&&Ni(f[0],f[1],E)&&(v=1);++d<v;)for(var C=f[d],L=qi(C),F=-1,k=L.length;++F<k;){var z=L[F],J=c[z];(J===e||co(J,fl[z])&&!Dt.call(c,z))&&(c[z]=C[z])}return c}),cH=tt(function(c){return c.push(e,TR),pr(nL,e,c)});function lH(c,f){return gO(c,Ve(f,3),Ro)}o(lH,"findKey");function fH(c,f){return gO(c,Ve(f,3),bv)}o(fH,"findLastKey");function uH(c,f){return c==null?c:vv(c,Ve(f,3),qi)}o(uH,"forIn");function pH(c,f){return c==null?c:kO(c,Ve(f,3),qi)}o(pH,"forInRight");function dH(c,f){return c&&Ro(c,Ve(f,3))}o(dH,"forOwn");function gH(c,f){return c&&bv(c,Ve(f,3))}o(gH,"forOwnRight");function mH(c){return c==null?[]:yg(c,Qn(c))}o(mH,"functions");function hH(c){return c==null?[]:yg(c,qi(c))}o(hH,"functionsIn");function Jv(c,f,d){var v=c==null?e:oc(c,f);return v===e?d:v}o(Jv,"get");function yH(c,f){return c!=null&&SR(c,f,Uj)}o(yH,"has");function Zv(c,f){return c!=null&&SR(c,f,jj)}o(Zv,"hasIn");var TH=dR(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=rg.call(f)),c[f]=d},tb(Yi)),vH=dR(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=rg.call(f)),Dt.call(c,f)?c[f].push(d):c[f]=[d]},Ve),bH=tt(uu);function Qn(c){return Qi(c)?NO(c):Pv(c)}o(Qn,"keys");function qi(c){return Qi(c)?NO(c,!0):Yj(c)}o(qi,"keysIn");function SH(c,f){var d={};return f=Ve(f,3),Ro(c,function(v,E,C){oa(d,f(v,E,C),v)}),d}o(SH,"mapKeys");function EH(c,f){var d={};return f=Ve(f,3),Ro(c,function(v,E,C){oa(d,E,f(v,E,C))}),d}o(EH,"mapValues");var AH=gl(function(c,f,d){Tg(c,f,d)}),nL=gl(function(c,f,d,v){Tg(c,f,d,v)}),PH=sa(function(c,f){var d={};if(c==null)return d;var v=!1;f=pn(f,function(C){return C=Ja(C,c),v||(v=C.length>1),C}),Lo(c,kv(c),d),v&&(d=Ur(d,p|g|m,y4));for(var E=f.length;E--;)Lv(d,f[E]);return d});function xH(c,f){return iL(c,Dg(Ve(f)))}o(xH,"omitBy");var CH=sa(function(c,f){return c==null?{}:Jj(c,f)});function iL(c,f){if(c==null)return{};var d=pn(kv(c),function(v){return[v]});return f=Ve(f),QO(c,d,function(v,E){return f(v,E[0])})}o(iL,"pickBy");function IH(c,f,d){f=Ja(f,c);var v=-1,E=f.length;for(E||(E=1,c=e);++v<E;){var C=c==null?e:c[No(f[v])];C===e&&(v=E,C=d),c=la(C)?C.call(c):C}return c}o(IH,"result");function OH(c,f,d){return c==null?c:du(c,f,d)}o(OH,"set");function RH(c,f,d,v){return v=typeof v=="function"?v:e,c==null?c:du(c,f,d,v)}o(RH,"setWith");var rL=hR(Qn),oL=hR(qi);function LH(c,f,d){var v=Qe(c),E=v||es(c)||yl(c);if(f=Ve(f,4),d==null){var C=c&&c.constructor;E?d=v?new C:[]:yn(c)?d=la(C)?dl(sg(c)):{}:d={}}return(E?wr:Ro)(c,function(L,F,k){return f(d,L,F,k)}),d}o(LH,"transform");function NH(c,f){return c==null?!0:Lv(c,f)}o(NH,"unset");function FH(c,f,d){return c==null?c:ZO(c,f,Dv(d))}o(FH,"update");function DH(c,f,d,v){return v=typeof v=="function"?v:e,c==null?c:ZO(c,f,Dv(d),v)}o(DH,"updateWith");function Tl(c){return c==null?[]:uv(c,Qn(c))}o(Tl,"values");function _H(c){return c==null?[]:uv(c,qi(c))}o(_H,"valuesIn");function VH(c,f,d){return d===e&&(d=f,f=e),d!==e&&(d=Br(d),d=d===d?d:0),f!==e&&(f=Br(f),f=f===f?f:0),rc(Br(c),f,d)}o(VH,"clamp");function wH(c,f,d){return f=fa(f),d===e?(d=f,f=0):d=fa(d),c=Br(c),$j(c,f,d)}o(wH,"inRange");function MH(c,f,d){if(d&&typeof d!="boolean"&&Ni(c,f,d)&&(f=d=e),d===e&&(typeof f=="boolean"?(d=f,f=e):typeof c=="boolean"&&(d=c,c=e)),c===e&&f===e?(c=0,f=1):(c=fa(c),f===e?(f=c,c=0):f=fa(f)),c>f){var v=c;c=f,f=v}if(d||c%1||f%1){var E=RO();return vi(c+E*(f-c+gU("1e-"+((E+"").length-1))),f)}return Iv(c,f)}o(MH,"random");var kH=ml(function(c,f,d){return f=f.toLowerCase(),c+(d?aL(f):f)});function aL(c){return eb(It(c).toLowerCase())}o(aL,"capitalize");function sL(c){return c=It(c),c&&c.replace(U2,IU).replace(rU,"")}o(sL,"deburr");function UH(c,f,d){c=It(c),f=gr(f);var v=c.length;d=d===e?v:rc(Je(d),0,v);var E=d;return d-=f.length,d>=0&&c.slice(d,E)==f}o(UH,"endsWith");function jH(c){return c=It(c),c&&Oe.test(c)?c.replace(be,OU):c}o(jH,"escape");function $H(c){return c=It(c),c&&x2.test(c)?c.replace(nu,"\\$&"):c}o($H,"escapeRegExp");var BH=ml(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),HH=ml(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),GH=fR("toLowerCase");function WH(c,f,d){c=It(c),f=Je(f);var v=f?ll(c):0;if(!f||v>=f)return c;var E=(f-v)/2;return Pg(ug(E),d)+c+Pg(fg(E),d)}o(WH,"pad");function KH(c,f,d){c=It(c),f=Je(f);var v=f?ll(c):0;return f&&v<f?c+Pg(f-v,d):c}o(KH,"padEnd");function XH(c,f,d){c=It(c),f=Je(f);var v=f?ll(c):0;return f&&v<f?Pg(f-v,d)+c:c}o(XH,"padStart");function QH(c,f,d){return d||f==null?f=0:f&&(f=+f),ej(It(c).replace(YT,""),f||0)}o(QH,"parseInt");function qH(c,f,d){return(d?Ni(c,f,d):f===e)?f=1:f=Je(f),Ov(It(c),f)}o(qH,"repeat");function YH(){var c=arguments,f=It(c[0]);return c.length<3?f:f.replace(c[1],c[2])}o(YH,"replace");var zH=ml(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function JH(c,f,d){return d&&typeof d!="number"&&Ni(c,f,d)&&(f=d=e),d=d===e?Ut:d>>>0,d?(c=It(c),c&&(typeof f=="string"||f!=null&&!zv(f))&&(f=gr(f),!f&&cl(c))?Za(ao(c),0,d):c.split(f,d)):[]}o(JH,"split");var ZH=ml(function(c,f,d){return c+(d?" ":"")+eb(f)});function e5(c,f,d){return c=It(c),d=d==null?0:rc(Je(d),0,c.length),f=gr(f),c.slice(d,d+f.length)==f}o(e5,"startsWith");function t5(c,f,d){var v=P.templateSettings;d&&Ni(c,f,d)&&(f=e),c=It(c),f=wg({},f,v,yR);var E=wg({},f.imports,v.imports,yR),C=Qn(E),L=uv(E,C),F,k,z=0,J=f.interpolate||qd,ne="__p += '",me=dv((f.escape||qd).source+"|"+J.source+"|"+(J===un?D2:qd).source+"|"+(f.evaluate||qd).source+"|$","g"),Re="//# sourceURL="+(Dt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++lU+"]")+`
|
|
271
|
+
`)}o(C4,"insertWrapDetails");function I4(c){return Qe(c)||cc(c)||!!(IO&&c&&c[IO])}o(I4,"isFlattenable");function ca(c,f){var d=typeof c;return f=f??Ne,!!f&&(d=="number"||d!="symbol"&&k2.test(c))&&c>-1&&c%1==0&&c<f}o(ca,"isIndex");function Ni(c,f,d){if(!yn(d))return!1;var v=typeof f;return(v=="number"?Qi(d)&&ca(f,d.length):v=="string"&&f in d)?co(d[f],c):!1}o(Ni,"isIterateeCall");function Bv(c,f){if(Qe(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||mr(c)?!0:Qd.test(c)||!ur.test(c)||f!=null&&c in Xt(f)}o(Bv,"isKey");function O4(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}o(O4,"isKeyable");function Hv(c){var f=Cg(c),d=P[f];if(typeof d!="function"||!(f in dt.prototype))return!1;if(c===d)return!0;var v=Uv(d);return!!v&&c===v[0]}o(Hv,"isLaziable");function R4(c){return!!EO&&EO in c}o(R4,"isMasked");var L4=ng?la:ab;function mu(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||fl;return c===d}o(mu,"isPrototype");function ER(c){return c===c&&!yn(c)}o(ER,"isStrictComparable");function PR(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Xt(d))}}o(PR,"matchesStrictComparable");function N4(c){var f=Fg(c,function(v){return d.size===l&&d.clear(),v}),d=f.cache;return f}o(N4,"memoizeCapped");function F4(c,f){var d=c[1],v=f[1],A=d|v,C=A<(b|O|Z),L=v==Z&&d==M||v==Z&&d==oe&&c[7].length<=f[8]||v==(Z|oe)&&f[7].length<=f[8]&&d==M;if(!(C||L))return c;v&b&&(c[2]=f[2],A|=d&b?0:N);var F=f[3];if(F){var k=c[3];c[3]=k?aR(k,F,f[4]):F,c[4]=k?Xa(c[3],u):f[4]}return F=f[5],F&&(k=c[5],c[5]=k?sR(k,F,f[6]):F,c[6]=k?Xa(c[5],u):f[6]),F=f[7],F&&(c[7]=F),v&Z&&(c[8]=c[8]==null?f[8]:vi(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=A,c}o(F4,"mergeData");function D4(c){var f=[];if(c!=null)for(var d in Xt(c))f.push(d);return f}o(D4,"nativeKeysIn");function _4(c){return rg.call(c)}o(_4,"objectToString");function xR(c,f,d){return f=$n(f===e?c.length-1:f,0),function(){for(var v=arguments,A=-1,C=$n(v.length-f,0),L=K(C);++A<C;)L[A]=v[f+A];A=-1;for(var F=K(f+1);++A<f;)F[A]=v[A];return F[f]=d(L),pr(c,this,F)}}o(xR,"overRest");function CR(c,f){return f.length<2?c:oc(c,jr(f,0,-1))}o(CR,"parent");function V4(c,f){for(var d=c.length,v=vi(f.length,d),A=Xi(c);v--;){var C=f[v];c[v]=ca(C,d)?A[C]:e}return c}o(V4,"reorder");function Gv(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}o(Gv,"safeGet");var IR=RR(YO),hu=qU||function(c,f){return Xn.setTimeout(c,f)},Wv=RR(i4);function OR(c,f,d){var v=f+"";return Wv(c,C4(v,w4(E4(v),d)))}o(OR,"setWrapToString");function RR(c){var f=0,d=0;return function(){var v=ZU(),A=je-(v-d);if(d=v,A>0){if(++f>=yt)return arguments[0]}else f=0;return c.apply(e,arguments)}}o(RR,"shortOut");function Og(c,f){var d=-1,v=c.length,A=v-1;for(f=f===e?v:f;++d<f;){var C=Iv(d,A),L=c[C];c[C]=c[d],c[d]=L}return c.length=f,c}o(Og,"shuffleSelf");var LR=N4(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(qT,function(d,v,A,C){f.push(A?C.replace(F2,"$1"):v||d)}),f});function No(c){if(typeof c=="string"||mr(c))return c;var f=c+"";return f=="0"&&1/c==-Nt?"-0":f}o(No,"toKey");function sc(c){if(c!=null){try{return ig.call(c)}catch{}try{return c+""}catch{}}return""}o(sc,"toSource");function w4(c,f){return wr(Fe,function(d){var v="_."+d[0];f&d[1]&&!Jd(c,v)&&c.push(v)}),c.sort()}o(w4,"updateWrapDetails");function NR(c){if(c instanceof dt)return c.clone();var f=new kr(c.__wrapped__,c.__chain__);return f.__actions__=Xi(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}o(NR,"wrapperClone");function M4(c,f,d){(d?Ni(c,f,d):f===e)?f=1:f=$n(Je(f),0);var v=c==null?0:c.length;if(!v||f<1)return[];for(var A=0,C=0,L=K(fg(v/f));A<v;)L[C++]=jr(c,A,A+=f);return L}o(M4,"chunk");function k4(c){for(var f=-1,d=c==null?0:c.length,v=0,A=[];++f<d;){var C=c[f];C&&(A[v++]=C)}return A}o(k4,"compact");function U4(){var c=arguments.length;if(!c)return[];for(var f=K(c-1),d=arguments[0],v=c;v--;)f[v-1]=arguments[v];return Ka(Qe(d)?Xi(d):[d],ni(f,1))}o(U4,"concat");var j4=tt(function(c,f){return In(c)?fu(c,ni(f,1,In,!0)):[]}),$4=tt(function(c,f){var d=$r(f);return In(d)&&(d=e),In(c)?fu(c,ni(f,1,In,!0),Ve(d,2)):[]}),B4=tt(function(c,f){var d=$r(f);return In(d)&&(d=e),In(c)?fu(c,ni(f,1,In,!0),e,d):[]});function H4(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Je(f),jr(c,f<0?0:f,v)):[]}o(H4,"drop");function G4(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Je(f),f=v-f,jr(c,0,f<0?0:f)):[]}o(G4,"dropRight");function W4(c,f){return c&&c.length?bg(c,Ve(f,3),!0,!0):[]}o(W4,"dropRightWhile");function K4(c,f){return c&&c.length?bg(c,Ve(f,3),!0):[]}o(K4,"dropWhile");function X4(c,f,d,v){var A=c==null?0:c.length;return A?(d&&typeof d!="number"&&Ni(c,f,d)&&(d=0,v=A),kj(c,f,d,v)):[]}o(X4,"fill");function FR(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var A=d==null?0:Je(d);return A<0&&(A=$n(v+A,0)),Zd(c,Ve(f,3),A)}o(FR,"findIndex");function DR(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var A=v-1;return d!==e&&(A=Je(d),A=d<0?$n(v+A,0):vi(A,v-1)),Zd(c,Ve(f,3),A,!0)}o(DR,"findLastIndex");function _R(c){var f=c==null?0:c.length;return f?ni(c,1):[]}o(_R,"flatten");function Q4(c){var f=c==null?0:c.length;return f?ni(c,Nt):[]}o(Q4,"flattenDeep");function q4(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:Je(f),ni(c,f)):[]}o(q4,"flattenDepth");function Y4(c){for(var f=-1,d=c==null?0:c.length,v={};++f<d;){var A=c[f];v[A[0]]=A[1]}return v}o(Y4,"fromPairs");function VR(c){return c&&c.length?c[0]:e}o(VR,"head");function z4(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var A=d==null?0:Je(d);return A<0&&(A=$n(v+A,0)),sl(c,f,A)}o(z4,"indexOf");function J4(c){var f=c==null?0:c.length;return f?jr(c,0,-1):[]}o(J4,"initial");var Z4=tt(function(c){var f=pn(c,Fv);return f.length&&f[0]===c[0]?Av(f):[]}),e$=tt(function(c){var f=$r(c),d=pn(c,Fv);return f===$r(d)?f=e:d.pop(),d.length&&d[0]===c[0]?Av(d,Ve(f,2)):[]}),t$=tt(function(c){var f=$r(c),d=pn(c,Fv);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?Av(d,e,f):[]});function n$(c,f){return c==null?"":zU.call(c,f)}o(n$,"join");function $r(c){var f=c==null?0:c.length;return f?c[f-1]:e}o($r,"last");function i$(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var A=v;return d!==e&&(A=Je(d),A=A<0?$n(v+A,0):vi(A,v-1)),f===f?VU(c,f,A):Zd(c,mO,A,!0)}o(i$,"lastIndexOf");function r$(c,f){return c&&c.length?KO(c,Je(f)):e}o(r$,"nth");var o$=tt(wR);function wR(c,f){return c&&c.length&&f&&f.length?Cv(c,f):c}o(wR,"pullAll");function a$(c,f,d){return c&&c.length&&f&&f.length?Cv(c,f,Ve(d,2)):c}o(a$,"pullAllBy");function s$(c,f,d){return c&&c.length&&f&&f.length?Cv(c,f,e,d):c}o(s$,"pullAllWith");var c$=sa(function(c,f){var d=c==null?0:c.length,v=Tv(c,f);return qO(c,pn(f,function(A){return ca(A,d)?+A:A}).sort(oR)),v});function l$(c,f){var d=[];if(!(c&&c.length))return d;var v=-1,A=[],C=c.length;for(f=Ve(f,3);++v<C;){var L=c[v];f(L,v,c)&&(d.push(L),A.push(v))}return qO(c,A),d}o(l$,"remove");function Kv(c){return c==null?c:tj.call(c)}o(Kv,"reverse");function f$(c,f,d){var v=c==null?0:c.length;return v?(d&&typeof d!="number"&&Ni(c,f,d)?(f=0,d=v):(f=f==null?0:Je(f),d=d===e?v:Je(d)),jr(c,f,d)):[]}o(f$,"slice");function u$(c,f){return vg(c,f)}o(u$,"sortedIndex");function p$(c,f,d){return Rv(c,f,Ve(d,2))}o(p$,"sortedIndexBy");function d$(c,f){var d=c==null?0:c.length;if(d){var v=vg(c,f);if(v<d&&co(c[v],f))return v}return-1}o(d$,"sortedIndexOf");function g$(c,f){return vg(c,f,!0)}o(g$,"sortedLastIndex");function m$(c,f,d){return Rv(c,f,Ve(d,2),!0)}o(m$,"sortedLastIndexBy");function h$(c,f){var d=c==null?0:c.length;if(d){var v=vg(c,f,!0)-1;if(co(c[v],f))return v}return-1}o(h$,"sortedLastIndexOf");function y$(c){return c&&c.length?zO(c):[]}o(y$,"sortedUniq");function T$(c,f){return c&&c.length?zO(c,Ve(f,2)):[]}o(T$,"sortedUniqBy");function v$(c){var f=c==null?0:c.length;return f?jr(c,1,f):[]}o(v$,"tail");function b$(c,f,d){return c&&c.length?(f=d||f===e?1:Je(f),jr(c,0,f<0?0:f)):[]}o(b$,"take");function S$(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Je(f),f=v-f,jr(c,f<0?0:f,v)):[]}o(S$,"takeRight");function A$(c,f){return c&&c.length?bg(c,Ve(f,3),!1,!0):[]}o(A$,"takeRightWhile");function E$(c,f){return c&&c.length?bg(c,Ve(f,3)):[]}o(E$,"takeWhile");var P$=tt(function(c){return za(ni(c,1,In,!0))}),x$=tt(function(c){var f=$r(c);return In(f)&&(f=e),za(ni(c,1,In,!0),Ve(f,2))}),C$=tt(function(c){var f=$r(c);return f=typeof f=="function"?f:e,za(ni(c,1,In,!0),e,f)});function I$(c){return c&&c.length?za(c):[]}o(I$,"uniq");function O$(c,f){return c&&c.length?za(c,Ve(f,2)):[]}o(O$,"uniqBy");function R$(c,f){return f=typeof f=="function"?f:e,c&&c.length?za(c,e,f):[]}o(R$,"uniqWith");function Xv(c){if(!(c&&c.length))return[];var f=0;return c=Wa(c,function(d){if(In(d))return f=$n(d.length,f),!0}),fv(f,function(d){return pn(c,sv(d))})}o(Xv,"unzip");function MR(c,f){if(!(c&&c.length))return[];var d=Xv(c);return f==null?d:pn(d,function(v){return pr(f,e,v)})}o(MR,"unzipWith");var L$=tt(function(c,f){return In(c)?fu(c,f):[]}),N$=tt(function(c){return Nv(Wa(c,In))}),F$=tt(function(c){var f=$r(c);return In(f)&&(f=e),Nv(Wa(c,In),Ve(f,2))}),D$=tt(function(c){var f=$r(c);return f=typeof f=="function"?f:e,Nv(Wa(c,In),e,f)}),_$=tt(Xv);function V$(c,f){return tR(c||[],f||[],lu)}o(V$,"zipObject");function w$(c,f){return tR(c||[],f||[],du)}o(w$,"zipObjectDeep");var M$=tt(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,MR(c,d)});function kR(c){var f=P(c);return f.__chain__=!0,f}o(kR,"chain");function k$(c,f){return f(c),c}o(k$,"tap");function Rg(c,f){return f(c)}o(Rg,"thru");var U$=sa(function(c){var f=c.length,d=f?c[0]:0,v=this.__wrapped__,A=o(function(C){return Tv(C,c)},"interceptor");return f>1||this.__actions__.length||!(v instanceof dt)||!ca(d)?this.thru(A):(v=v.slice(d,+d+(f?1:0)),v.__actions__.push({func:Rg,args:[A],thisArg:e}),new kr(v,this.__chain__).thru(function(C){return f&&!C.length&&C.push(e),C}))});function j$(){return kR(this)}o(j$,"wrapperChain");function $$(){return new kr(this.value(),this.__chain__)}o($$,"wrapperCommit");function B$(){this.__values__===e&&(this.__values__=JR(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}o(B$,"wrapperNext");function H$(){return this}o(H$,"wrapperToIterator");function G$(c){for(var f,d=this;d instanceof gg;){var v=NR(d);v.__index__=0,v.__values__=e,f?A.__wrapped__=v:f=v;var A=v;d=d.__wrapped__}return A.__wrapped__=c,f}o(G$,"wrapperPlant");function W$(){var c=this.__wrapped__;if(c instanceof dt){var f=c;return this.__actions__.length&&(f=new dt(this)),f=f.reverse(),f.__actions__.push({func:Rg,args:[Kv],thisArg:e}),new kr(f,this.__chain__)}return this.thru(Kv)}o(W$,"wrapperReverse");function K$(){return eR(this.__wrapped__,this.__actions__)}o(K$,"wrapperValue");var X$=Sg(function(c,f,d){Dt.call(c,d)?++c[d]:oa(c,d,1)});function Q$(c,f,d){var v=Qe(c)?dO:Mj;return d&&Ni(c,f,d)&&(f=e),v(c,Ve(f,3))}o(Q$,"every");function q$(c,f){var d=Qe(c)?Wa:MO;return d(c,Ve(f,3))}o(q$,"filter");var Y$=uR(FR),z$=uR(DR);function J$(c,f){return ni(Lg(c,f),1)}o(J$,"flatMap");function Z$(c,f){return ni(Lg(c,f),Nt)}o(Z$,"flatMapDeep");function eB(c,f,d){return d=d===e?1:Je(d),ni(Lg(c,f),d)}o(eB,"flatMapDepth");function UR(c,f){var d=Qe(c)?wr:Ya;return d(c,Ve(f,3))}o(UR,"forEach");function jR(c,f){var d=Qe(c)?TU:wO;return d(c,Ve(f,3))}o(jR,"forEachRight");var tB=Sg(function(c,f,d){Dt.call(c,d)?c[d].push(f):oa(c,d,[f])});function nB(c,f,d,v){c=Qi(c)?c:Tl(c),d=d&&!v?Je(d):0;var A=c.length;return d<0&&(d=$n(A+d,0)),Vg(c)?d<=A&&c.indexOf(f,d)>-1:!!A&&sl(c,f,d)>-1}o(nB,"includes");var iB=tt(function(c,f,d){var v=-1,A=typeof f=="function",C=Qi(c)?K(c.length):[];return Ya(c,function(L){C[++v]=A?pr(f,L,d):uu(L,f,d)}),C}),rB=Sg(function(c,f,d){oa(c,d,f)});function Lg(c,f){var d=Qe(c)?pn:HO;return d(c,Ve(f,3))}o(Lg,"map");function oB(c,f,d,v){return c==null?[]:(Qe(f)||(f=f==null?[]:[f]),d=v?e:d,Qe(d)||(d=d==null?[]:[d]),XO(c,f,d))}o(oB,"orderBy");var aB=Sg(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function sB(c,f,d){var v=Qe(c)?ov:yO,A=arguments.length<3;return v(c,Ve(f,4),d,A,Ya)}o(sB,"reduce");function cB(c,f,d){var v=Qe(c)?vU:yO,A=arguments.length<3;return v(c,Ve(f,4),d,A,wO)}o(cB,"reduceRight");function lB(c,f){var d=Qe(c)?Wa:MO;return d(c,Dg(Ve(f,3)))}o(lB,"reject");function fB(c){var f=Qe(c)?FO:t4;return f(c)}o(fB,"sample");function uB(c,f,d){(d?Ni(c,f,d):f===e)?f=1:f=Je(f);var v=Qe(c)?Fj:n4;return v(c,f)}o(uB,"sampleSize");function pB(c){var f=Qe(c)?Dj:r4;return f(c)}o(pB,"shuffle");function dB(c){if(c==null)return 0;if(Qi(c))return Vg(c)?ll(c):c.length;var f=bi(c);return f==qe||f==mn?c.size:Pv(c).length}o(dB,"size");function gB(c,f,d){var v=Qe(c)?av:o4;return d&&Ni(c,f,d)&&(f=e),v(c,Ve(f,3))}o(gB,"some");var mB=tt(function(c,f){if(c==null)return[];var d=f.length;return d>1&&Ni(c,f[0],f[1])?f=[]:d>2&&Ni(f[0],f[1],f[2])&&(f=[f[0]]),XO(c,ni(f,1),[])}),Ng=QU||function(){return Xn.Date.now()};function hB(c,f){if(typeof f!="function")throw new Mr(r);return c=Je(c),function(){if(--c<1)return f.apply(this,arguments)}}o(hB,"after");function $R(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,aa(c,Z,e,e,e,e,f)}o($R,"ary");function BR(c,f){var d;if(typeof f!="function")throw new Mr(r);return c=Je(c),function(){return--c>0&&(d=f.apply(this,arguments)),c<=1&&(f=e),d}}o(BR,"before");var Qv=tt(function(c,f,d){var v=b;if(d.length){var A=Xa(d,hl(Qv));v|=j}return aa(c,v,f,d,A)}),HR=tt(function(c,f,d){var v=b|O;if(d.length){var A=Xa(d,hl(HR));v|=j}return aa(f,v,c,d,A)});function GR(c,f,d){f=d?e:f;var v=aa(c,M,e,e,e,e,e,f);return v.placeholder=GR.placeholder,v}o(GR,"curry");function WR(c,f,d){f=d?e:f;var v=aa(c,G,e,e,e,e,e,f);return v.placeholder=WR.placeholder,v}o(WR,"curryRight");function KR(c,f,d){var v,A,C,L,F,k,z=0,J=!1,ne=!1,me=!0;if(typeof c!="function")throw new Mr(r);f=Br(f)||0,yn(d)&&(J=!!d.leading,ne="maxWait"in d,C=ne?$n(Br(d.maxWait)||0,f):C,me="trailing"in d?!!d.trailing:me);function Re(On){var lo=v,ua=A;return v=A=e,z=On,L=c.apply(ua,lo),L}o(Re,"invokeFunc");function Me(On){return z=On,F=hu(at,f),J?Re(On):L}o(Me,"leadingEdge");function Ze(On){var lo=On-k,ua=On-z,uL=f-lo;return ne?vi(uL,C-ua):uL}o(Ze,"remainingWait");function ke(On){var lo=On-k,ua=On-z;return k===e||lo>=f||lo<0||ne&&ua>=C}o(ke,"shouldInvoke");function at(){var On=Ng();if(ke(On))return gt(On);F=hu(at,Ze(On))}o(at,"timerExpired");function gt(On){return F=e,me&&v?Re(On):(v=A=e,L)}o(gt,"trailingEdge");function hr(){F!==e&&nR(F),z=0,v=k=A=F=e}o(hr,"cancel");function Fi(){return F===e?L:gt(Ng())}o(Fi,"flush");function yr(){var On=Ng(),lo=ke(On);if(v=arguments,A=this,k=On,lo){if(F===e)return Me(k);if(ne)return nR(F),F=hu(at,f),Re(k)}return F===e&&(F=hu(at,f)),L}return o(yr,"debounced"),yr.cancel=hr,yr.flush=Fi,yr}o(KR,"debounce");var yB=tt(function(c,f){return VO(c,1,f)}),TB=tt(function(c,f,d){return VO(c,Br(f)||0,d)});function vB(c){return aa(c,Pe)}o(vB,"flip");function Fg(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new Mr(r);var d=o(function(){var v=arguments,A=f?f.apply(this,v):v[0],C=d.cache;if(C.has(A))return C.get(A);var L=c.apply(this,v);return d.cache=C.set(A,L)||C,L},"memoized");return d.cache=new(Fg.Cache||ra),d}o(Fg,"memoize"),Fg.Cache=ra;function Dg(c){if(typeof c!="function")throw new Mr(r);return function(){var f=arguments;switch(f.length){case 0:return!c.call(this);case 1:return!c.call(this,f[0]);case 2:return!c.call(this,f[0],f[1]);case 3:return!c.call(this,f[0],f[1],f[2])}return!c.apply(this,f)}}o(Dg,"negate");function bB(c){return BR(2,c)}o(bB,"once");var SB=a4(function(c,f){f=f.length==1&&Qe(f[0])?pn(f[0],dr(Ve())):pn(ni(f,1),dr(Ve()));var d=f.length;return tt(function(v){for(var A=-1,C=vi(v.length,d);++A<C;)v[A]=f[A].call(this,v[A]);return pr(c,this,v)})}),qv=tt(function(c,f){var d=Xa(f,hl(qv));return aa(c,j,e,f,d)}),XR=tt(function(c,f){var d=Xa(f,hl(XR));return aa(c,re,e,f,d)}),AB=sa(function(c,f){return aa(c,oe,e,e,e,f)});function EB(c,f){if(typeof c!="function")throw new Mr(r);return f=f===e?f:Je(f),tt(c,f)}o(EB,"rest");function PB(c,f){if(typeof c!="function")throw new Mr(r);return f=f==null?0:$n(Je(f),0),tt(function(d){var v=d[f],A=Za(d,0,f);return v&&Ka(A,v),pr(c,this,A)})}o(PB,"spread");function xB(c,f,d){var v=!0,A=!0;if(typeof c!="function")throw new Mr(r);return yn(d)&&(v="leading"in d?!!d.leading:v,A="trailing"in d?!!d.trailing:A),KR(c,f,{leading:v,maxWait:f,trailing:A})}o(xB,"throttle");function CB(c){return $R(c,1)}o(CB,"unary");function IB(c,f){return qv(Dv(f),c)}o(IB,"wrap");function OB(){if(!arguments.length)return[];var c=arguments[0];return Qe(c)?c:[c]}o(OB,"castArray");function RB(c){return Ur(c,m)}o(RB,"clone");function LB(c,f){return f=typeof f=="function"?f:e,Ur(c,m,f)}o(LB,"cloneWith");function NB(c){return Ur(c,p|m)}o(NB,"cloneDeep");function FB(c,f){return f=typeof f=="function"?f:e,Ur(c,p|m,f)}o(FB,"cloneDeepWith");function DB(c,f){return f==null||_O(c,f,Qn(f))}o(DB,"conformsTo");function co(c,f){return c===f||c!==c&&f!==f}o(co,"eq");var _B=xg(Sv),VB=xg(function(c,f){return c>=f}),cc=jO(function(){return arguments}())?jO:function(c){return vn(c)&&Dt.call(c,"callee")&&!CO.call(c,"callee")},Qe=K.isArray,wB=sO?dr(sO):Hj;function Qi(c){return c!=null&&_g(c.length)&&!la(c)}o(Qi,"isArrayLike");function In(c){return vn(c)&&Qi(c)}o(In,"isArrayLikeObject");function MB(c){return c===!0||c===!1||vn(c)&&Li(c)==I}o(MB,"isBoolean");var es=YU||ab,kB=cO?dr(cO):Gj;function UB(c){return vn(c)&&c.nodeType===1&&!yu(c)}o(UB,"isElement");function jB(c){if(c==null)return!0;if(Qi(c)&&(Qe(c)||typeof c=="string"||typeof c.splice=="function"||es(c)||yl(c)||cc(c)))return!c.length;var f=bi(c);if(f==qe||f==mn)return!c.size;if(mu(c))return!Pv(c).length;for(var d in c)if(Dt.call(c,d))return!1;return!0}o(jB,"isEmpty");function $B(c,f){return pu(c,f)}o($B,"isEqual");function BB(c,f,d){d=typeof d=="function"?d:e;var v=d?d(c,f):e;return v===e?pu(c,f,e,d):!!v}o(BB,"isEqualWith");function Yv(c){if(!vn(c))return!1;var f=Li(c);return f==V||f==Y||typeof c.message=="string"&&typeof c.name=="string"&&!yu(c)}o(Yv,"isError");function HB(c){return typeof c=="number"&&OO(c)}o(HB,"isFinite");function la(c){if(!yn(c))return!1;var f=Li(c);return f==_e||f==Ft||f==ot||f==ti}o(la,"isFunction");function QR(c){return typeof c=="number"&&c==Je(c)}o(QR,"isInteger");function _g(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Ne}o(_g,"isLength");function yn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}o(yn,"isObject");function vn(c){return c!=null&&typeof c=="object"}o(vn,"isObjectLike");var qR=lO?dr(lO):Kj;function GB(c,f){return c===f||Ev(c,f,jv(f))}o(GB,"isMatch");function WB(c,f,d){return d=typeof d=="function"?d:e,Ev(c,f,jv(f),d)}o(WB,"isMatchWith");function KB(c){return YR(c)&&c!=+c}o(KB,"isNaN");function XB(c){if(L4(c))throw new We(i);return $O(c)}o(XB,"isNative");function QB(c){return c===null}o(QB,"isNull");function qB(c){return c==null}o(qB,"isNil");function YR(c){return typeof c=="number"||vn(c)&&Li(c)==jt}o(YR,"isNumber");function yu(c){if(!vn(c)||Li(c)!=fn)return!1;var f=sg(c);if(f===null)return!0;var d=Dt.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&ig.call(d)==GU}o(yu,"isPlainObject");var zv=fO?dr(fO):Xj;function YB(c){return QR(c)&&c>=-Ne&&c<=Ne}o(YB,"isSafeInteger");var zR=uO?dr(uO):Qj;function Vg(c){return typeof c=="string"||!Qe(c)&&vn(c)&&Li(c)==Ti}o(Vg,"isString");function mr(c){return typeof c=="symbol"||vn(c)&&Li(c)==Wt}o(mr,"isSymbol");var yl=pO?dr(pO):qj;function zB(c){return c===e}o(zB,"isUndefined");function JB(c){return vn(c)&&bi(c)==Ki}o(JB,"isWeakMap");function ZB(c){return vn(c)&&Li(c)==Jf}o(ZB,"isWeakSet");var eH=xg(xv),tH=xg(function(c,f){return c<=f});function JR(c){if(!c)return[];if(Qi(c))return Vg(c)?ao(c):Xi(c);if(ru&&c[ru])return FU(c[ru]());var f=bi(c),d=f==qe?pv:f==mn?eg:Tl;return d(c)}o(JR,"toArray");function fa(c){if(!c)return c===0?c:0;if(c=Br(c),c===Nt||c===-Nt){var f=c<0?-1:1;return f*Ri}return c===c?c:0}o(fa,"toFinite");function Je(c){var f=fa(c),d=f%1;return f===f?d?f-d:f:0}o(Je,"toInteger");function ZR(c){return c?rc(Je(c),0,Ut):0}o(ZR,"toLength");function Br(c){if(typeof c=="number")return c;if(mr(c))return Ct;if(yn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=yn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=TO(c);var d=V2.test(c);return d||M2.test(c)?mU(c.slice(2),d?2:8):_2.test(c)?Ct:+c}o(Br,"toNumber");function eL(c){return Lo(c,qi(c))}o(eL,"toPlainObject");function nH(c){return c?rc(Je(c),-Ne,Ne):c===0?c:0}o(nH,"toSafeInteger");function It(c){return c==null?"":gr(c)}o(It,"toString");var iH=gl(function(c,f){if(mu(f)||Qi(f)){Lo(f,Qn(f),c);return}for(var d in f)Dt.call(f,d)&&lu(c,d,f[d])}),tL=gl(function(c,f){Lo(f,qi(f),c)}),wg=gl(function(c,f,d,v){Lo(f,qi(f),c,v)}),rH=gl(function(c,f,d,v){Lo(f,Qn(f),c,v)}),oH=sa(Tv);function aH(c,f){var d=dl(c);return f==null?d:DO(d,f)}o(aH,"create");var sH=tt(function(c,f){c=Xt(c);var d=-1,v=f.length,A=v>2?f[2]:e;for(A&&Ni(f[0],f[1],A)&&(v=1);++d<v;)for(var C=f[d],L=qi(C),F=-1,k=L.length;++F<k;){var z=L[F],J=c[z];(J===e||co(J,fl[z])&&!Dt.call(c,z))&&(c[z]=C[z])}return c}),cH=tt(function(c){return c.push(e,TR),pr(nL,e,c)});function lH(c,f){return gO(c,Ve(f,3),Ro)}o(lH,"findKey");function fH(c,f){return gO(c,Ve(f,3),bv)}o(fH,"findLastKey");function uH(c,f){return c==null?c:vv(c,Ve(f,3),qi)}o(uH,"forIn");function pH(c,f){return c==null?c:kO(c,Ve(f,3),qi)}o(pH,"forInRight");function dH(c,f){return c&&Ro(c,Ve(f,3))}o(dH,"forOwn");function gH(c,f){return c&&bv(c,Ve(f,3))}o(gH,"forOwnRight");function mH(c){return c==null?[]:yg(c,Qn(c))}o(mH,"functions");function hH(c){return c==null?[]:yg(c,qi(c))}o(hH,"functionsIn");function Jv(c,f,d){var v=c==null?e:oc(c,f);return v===e?d:v}o(Jv,"get");function yH(c,f){return c!=null&&SR(c,f,Uj)}o(yH,"has");function Zv(c,f){return c!=null&&SR(c,f,jj)}o(Zv,"hasIn");var TH=dR(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=rg.call(f)),c[f]=d},tb(Yi)),vH=dR(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=rg.call(f)),Dt.call(c,f)?c[f].push(d):c[f]=[d]},Ve),bH=tt(uu);function Qn(c){return Qi(c)?NO(c):Pv(c)}o(Qn,"keys");function qi(c){return Qi(c)?NO(c,!0):Yj(c)}o(qi,"keysIn");function SH(c,f){var d={};return f=Ve(f,3),Ro(c,function(v,A,C){oa(d,f(v,A,C),v)}),d}o(SH,"mapKeys");function AH(c,f){var d={};return f=Ve(f,3),Ro(c,function(v,A,C){oa(d,A,f(v,A,C))}),d}o(AH,"mapValues");var EH=gl(function(c,f,d){Tg(c,f,d)}),nL=gl(function(c,f,d,v){Tg(c,f,d,v)}),PH=sa(function(c,f){var d={};if(c==null)return d;var v=!1;f=pn(f,function(C){return C=Ja(C,c),v||(v=C.length>1),C}),Lo(c,kv(c),d),v&&(d=Ur(d,p|g|m,y4));for(var A=f.length;A--;)Lv(d,f[A]);return d});function xH(c,f){return iL(c,Dg(Ve(f)))}o(xH,"omitBy");var CH=sa(function(c,f){return c==null?{}:Jj(c,f)});function iL(c,f){if(c==null)return{};var d=pn(kv(c),function(v){return[v]});return f=Ve(f),QO(c,d,function(v,A){return f(v,A[0])})}o(iL,"pickBy");function IH(c,f,d){f=Ja(f,c);var v=-1,A=f.length;for(A||(A=1,c=e);++v<A;){var C=c==null?e:c[No(f[v])];C===e&&(v=A,C=d),c=la(C)?C.call(c):C}return c}o(IH,"result");function OH(c,f,d){return c==null?c:du(c,f,d)}o(OH,"set");function RH(c,f,d,v){return v=typeof v=="function"?v:e,c==null?c:du(c,f,d,v)}o(RH,"setWith");var rL=hR(Qn),oL=hR(qi);function LH(c,f,d){var v=Qe(c),A=v||es(c)||yl(c);if(f=Ve(f,4),d==null){var C=c&&c.constructor;A?d=v?new C:[]:yn(c)?d=la(C)?dl(sg(c)):{}:d={}}return(A?wr:Ro)(c,function(L,F,k){return f(d,L,F,k)}),d}o(LH,"transform");function NH(c,f){return c==null?!0:Lv(c,f)}o(NH,"unset");function FH(c,f,d){return c==null?c:ZO(c,f,Dv(d))}o(FH,"update");function DH(c,f,d,v){return v=typeof v=="function"?v:e,c==null?c:ZO(c,f,Dv(d),v)}o(DH,"updateWith");function Tl(c){return c==null?[]:uv(c,Qn(c))}o(Tl,"values");function _H(c){return c==null?[]:uv(c,qi(c))}o(_H,"valuesIn");function VH(c,f,d){return d===e&&(d=f,f=e),d!==e&&(d=Br(d),d=d===d?d:0),f!==e&&(f=Br(f),f=f===f?f:0),rc(Br(c),f,d)}o(VH,"clamp");function wH(c,f,d){return f=fa(f),d===e?(d=f,f=0):d=fa(d),c=Br(c),$j(c,f,d)}o(wH,"inRange");function MH(c,f,d){if(d&&typeof d!="boolean"&&Ni(c,f,d)&&(f=d=e),d===e&&(typeof f=="boolean"?(d=f,f=e):typeof c=="boolean"&&(d=c,c=e)),c===e&&f===e?(c=0,f=1):(c=fa(c),f===e?(f=c,c=0):f=fa(f)),c>f){var v=c;c=f,f=v}if(d||c%1||f%1){var A=RO();return vi(c+A*(f-c+gU("1e-"+((A+"").length-1))),f)}return Iv(c,f)}o(MH,"random");var kH=ml(function(c,f,d){return f=f.toLowerCase(),c+(d?aL(f):f)});function aL(c){return eb(It(c).toLowerCase())}o(aL,"capitalize");function sL(c){return c=It(c),c&&c.replace(U2,IU).replace(rU,"")}o(sL,"deburr");function UH(c,f,d){c=It(c),f=gr(f);var v=c.length;d=d===e?v:rc(Je(d),0,v);var A=d;return d-=f.length,d>=0&&c.slice(d,A)==f}o(UH,"endsWith");function jH(c){return c=It(c),c&&Oe.test(c)?c.replace(be,OU):c}o(jH,"escape");function $H(c){return c=It(c),c&&x2.test(c)?c.replace(nu,"\\$&"):c}o($H,"escapeRegExp");var BH=ml(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),HH=ml(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),GH=fR("toLowerCase");function WH(c,f,d){c=It(c),f=Je(f);var v=f?ll(c):0;if(!f||v>=f)return c;var A=(f-v)/2;return Pg(ug(A),d)+c+Pg(fg(A),d)}o(WH,"pad");function KH(c,f,d){c=It(c),f=Je(f);var v=f?ll(c):0;return f&&v<f?c+Pg(f-v,d):c}o(KH,"padEnd");function XH(c,f,d){c=It(c),f=Je(f);var v=f?ll(c):0;return f&&v<f?Pg(f-v,d)+c:c}o(XH,"padStart");function QH(c,f,d){return d||f==null?f=0:f&&(f=+f),ej(It(c).replace(YT,""),f||0)}o(QH,"parseInt");function qH(c,f,d){return(d?Ni(c,f,d):f===e)?f=1:f=Je(f),Ov(It(c),f)}o(qH,"repeat");function YH(){var c=arguments,f=It(c[0]);return c.length<3?f:f.replace(c[1],c[2])}o(YH,"replace");var zH=ml(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function JH(c,f,d){return d&&typeof d!="number"&&Ni(c,f,d)&&(f=d=e),d=d===e?Ut:d>>>0,d?(c=It(c),c&&(typeof f=="string"||f!=null&&!zv(f))&&(f=gr(f),!f&&cl(c))?Za(ao(c),0,d):c.split(f,d)):[]}o(JH,"split");var ZH=ml(function(c,f,d){return c+(d?" ":"")+eb(f)});function eG(c,f,d){return c=It(c),d=d==null?0:rc(Je(d),0,c.length),f=gr(f),c.slice(d,d+f.length)==f}o(eG,"startsWith");function tG(c,f,d){var v=P.templateSettings;d&&Ni(c,f,d)&&(f=e),c=It(c),f=wg({},f,v,yR);var A=wg({},f.imports,v.imports,yR),C=Qn(A),L=uv(A,C),F,k,z=0,J=f.interpolate||qd,ne="__p += '",me=dv((f.escape||qd).source+"|"+J.source+"|"+(J===un?D2:qd).source+"|"+(f.evaluate||qd).source+"|$","g"),Re="//# sourceURL="+(Dt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++lU+"]")+`
|
|
272
272
|
`;c.replace(me,function(ke,at,gt,hr,Fi,yr){return gt||(gt=hr),ne+=c.slice(z,yr).replace(j2,RU),at&&(F=!0,ne+=`' +
|
|
273
273
|
__e(`+at+`) +
|
|
274
274
|
'`),Fi&&(k=!0,ne+=`';
|
|
@@ -285,13 +285,13 @@ __p += '`),gt&&(ne+=`' +
|
|
|
285
285
|
function print() { __p += __j.call(arguments, '') }
|
|
286
286
|
`:`;
|
|
287
287
|
`)+ne+`return __p
|
|
288
|
-
}`;var Ze=lL(function(){return Et(C,Re+"return "+ne).apply(e,L)});if(Ze.source=ne,Yv(Ze))throw Ze;return Ze}o(t5,"template");function n5(c){return It(c).toLowerCase()}o(n5,"toLower");function i5(c){return It(c).toUpperCase()}o(i5,"toUpper");function r5(c,f,d){if(c=It(c),c&&(d||f===e))return TO(c);if(!c||!(f=gr(f)))return c;var v=ao(c),E=ao(f),C=vO(v,E),L=bO(v,E)+1;return Za(v,C,L).join("")}o(r5,"trim");function o5(c,f,d){if(c=It(c),c&&(d||f===e))return c.slice(0,EO(c)+1);if(!c||!(f=gr(f)))return c;var v=ao(c),E=bO(v,ao(f))+1;return Za(v,0,E).join("")}o(o5,"trimEnd");function a5(c,f,d){if(c=It(c),c&&(d||f===e))return c.replace(YT,"");if(!c||!(f=gr(f)))return c;var v=ao(c),E=vO(v,ao(f));return Za(v,E).join("")}o(a5,"trimStart");function s5(c,f){var d=D,v=ut;if(yn(f)){var E="separator"in f?f.separator:E;d="length"in f?Je(f.length):d,v="omission"in f?gr(f.omission):v}c=It(c);var C=c.length;if(cl(c)){var L=ao(c);C=L.length}if(d>=C)return c;var F=d-ll(v);if(F<1)return v;var k=L?Za(L,0,F).join(""):c.slice(0,F);if(E===e)return k+v;if(L&&(F+=k.length-F),zv(E)){if(c.slice(F).search(E)){var z,J=k;for(E.global||(E=dv(E.source,It(jI.exec(E))+"g")),E.lastIndex=0;z=E.exec(J);)var ne=z.index;k=k.slice(0,ne===e?F:ne)}}else if(c.indexOf(gr(E),F)!=F){var me=k.lastIndexOf(E);me>-1&&(k=k.slice(0,me))}return k+v}o(s5,"truncate");function c5(c){return c=It(c),c&&xe.test(c)?c.replace(he,wU):c}o(c5,"unescape");var l5=ml(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),eb=fR("toUpperCase");function cL(c,f,d){return c=It(c),f=d?e:f,f===e?NU(c)?UU(c):EU(c):c.match(f)||[]}o(cL,"words");var lL=tt(function(c,f){try{return pr(c,e,f)}catch(d){return Yv(d)?d:new We(d)}}),f5=sa(function(c,f){return wr(f,function(d){d=No(d),oa(c,d,Qv(c[d],c))}),c});function u5(c){var f=c==null?0:c.length,d=Ve();return c=f?pn(c,function(v){if(typeof v[1]!="function")throw new Mr(r);return[d(v[0]),v[1]]}):[],tt(function(v){for(var E=-1;++E<f;){var C=c[E];if(pr(C[0],this,v))return pr(C[1],this,v)}})}o(u5,"cond");function p5(c){return wj(Ur(c,p))}o(p5,"conforms");function tb(c){return function(){return c}}o(tb,"constant");function d5(c,f){return c==null||c!==c?f:c}o(d5,"defaultTo");var g5=pR(),m5=pR(!0);function Yi(c){return c}o(Yi,"identity");function nb(c){return BO(typeof c=="function"?c:Ur(c,p))}o(nb,"iteratee");function h5(c){return GO(Ur(c,p))}o(h5,"matches");function y5(c,f){return WO(c,Ur(f,p))}o(y5,"matchesProperty");var T5=tt(function(c,f){return function(d){return uu(d,c,f)}}),v5=tt(function(c,f){return function(d){return uu(c,d,f)}});function ib(c,f,d){var v=Qn(f),E=yg(f,v);d==null&&!(yn(f)&&(E.length||!v.length))&&(d=f,f=c,c=this,E=yg(f,Qn(f)));var C=!(yn(d)&&"chain"in d)||!!d.chain,L=la(c);return wr(E,function(F){var k=f[F];c[F]=k,L&&(c.prototype[F]=function(){var z=this.__chain__;if(C||z){var J=c(this.__wrapped__),ne=J.__actions__=Xi(this.__actions__);return ne.push({func:k,args:arguments,thisArg:c}),J.__chain__=z,J}return k.apply(c,Ka([this.value()],arguments))})}),c}o(ib,"mixin");function b5(){return Xn._===this&&(Xn._=WU),this}o(b5,"noConflict");function rb(){}o(rb,"noop");function S5(c){return c=Je(c),tt(function(f){return KO(f,c)})}o(S5,"nthArg");var E5=Vv(pn),A5=Vv(dO),P5=Vv(av);function fL(c){return Bv(c)?sv(No(c)):Zj(c)}o(fL,"property");function x5(c){return function(f){return c==null?e:oc(c,f)}}o(x5,"propertyOf");var C5=gR(),I5=gR(!0);function ob(){return[]}o(ob,"stubArray");function ab(){return!1}o(ab,"stubFalse");function O5(){return{}}o(O5,"stubObject");function R5(){return""}o(R5,"stubString");function L5(){return!0}o(L5,"stubTrue");function N5(c,f){if(c=Je(c),c<1||c>Ne)return[];var d=Ut,v=vi(c,Ut);f=Ve(f),c-=Ut;for(var E=fv(v,f);++d<c;)f(d);return E}o(N5,"times");function F5(c){return Qe(c)?pn(c,No):mr(c)?[c]:Xi(LR(It(c)))}o(F5,"toPath");function D5(c){var f=++HU;return It(c)+f}o(D5,"uniqueId");var _5=Ag(function(c,f){return c+f},0),V5=wv("ceil"),w5=Ag(function(c,f){return c/f},1),M5=wv("floor");function k5(c){return c&&c.length?hg(c,Yi,Sv):e}o(k5,"max");function U5(c,f){return c&&c.length?hg(c,Ve(f,2),Sv):e}o(U5,"maxBy");function j5(c){return hO(c,Yi)}o(j5,"mean");function $5(c,f){return hO(c,Ve(f,2))}o($5,"meanBy");function B5(c){return c&&c.length?hg(c,Yi,xv):e}o(B5,"min");function H5(c,f){return c&&c.length?hg(c,Ve(f,2),xv):e}o(H5,"minBy");var G5=Ag(function(c,f){return c*f},1),W5=wv("round"),K5=Ag(function(c,f){return c-f},0);function X5(c){return c&&c.length?lv(c,Yi):0}o(X5,"sum");function Q5(c,f){return c&&c.length?lv(c,Ve(f,2)):0}return o(Q5,"sumBy"),P.after=hB,P.ary=$R,P.assign=iH,P.assignIn=tL,P.assignInWith=wg,P.assignWith=rH,P.at=oH,P.before=BR,P.bind=Qv,P.bindAll=f5,P.bindKey=HR,P.castArray=OB,P.chain=kR,P.chunk=M4,P.compact=k4,P.concat=U4,P.cond=u5,P.conforms=p5,P.constant=tb,P.countBy=X$,P.create=aH,P.curry=GR,P.curryRight=WR,P.debounce=KR,P.defaults=sH,P.defaultsDeep=cH,P.defer=yB,P.delay=TB,P.difference=j4,P.differenceBy=$4,P.differenceWith=B4,P.drop=H4,P.dropRight=G4,P.dropRightWhile=W4,P.dropWhile=K4,P.fill=X4,P.filter=q$,P.flatMap=J$,P.flatMapDeep=Z$,P.flatMapDepth=eB,P.flatten=_R,P.flattenDeep=Q4,P.flattenDepth=q4,P.flip=vB,P.flow=g5,P.flowRight=m5,P.fromPairs=Y4,P.functions=mH,P.functionsIn=hH,P.groupBy=tB,P.initial=J4,P.intersection=Z4,P.intersectionBy=e$,P.intersectionWith=t$,P.invert=TH,P.invertBy=vH,P.invokeMap=iB,P.iteratee=nb,P.keyBy=rB,P.keys=Qn,P.keysIn=qi,P.map=Lg,P.mapKeys=SH,P.mapValues=EH,P.matches=h5,P.matchesProperty=y5,P.memoize=Fg,P.merge=AH,P.mergeWith=nL,P.method=T5,P.methodOf=v5,P.mixin=ib,P.negate=Dg,P.nthArg=S5,P.omit=PH,P.omitBy=xH,P.once=bB,P.orderBy=oB,P.over=E5,P.overArgs=SB,P.overEvery=A5,P.overSome=P5,P.partial=qv,P.partialRight=XR,P.partition=aB,P.pick=CH,P.pickBy=iL,P.property=fL,P.propertyOf=x5,P.pull=o$,P.pullAll=wR,P.pullAllBy=a$,P.pullAllWith=s$,P.pullAt=c$,P.range=C5,P.rangeRight=I5,P.rearg=EB,P.reject=lB,P.remove=l$,P.rest=AB,P.reverse=Kv,P.sampleSize=uB,P.set=OH,P.setWith=RH,P.shuffle=pB,P.slice=f$,P.sortBy=mB,P.sortedUniq=y$,P.sortedUniqBy=T$,P.split=JH,P.spread=PB,P.tail=v$,P.take=b$,P.takeRight=S$,P.takeRightWhile=E$,P.takeWhile=A$,P.tap=k$,P.throttle=xB,P.thru=Rg,P.toArray=JR,P.toPairs=rL,P.toPairsIn=oL,P.toPath=F5,P.toPlainObject=eL,P.transform=LH,P.unary=CB,P.union=P$,P.unionBy=x$,P.unionWith=C$,P.uniq=I$,P.uniqBy=O$,P.uniqWith=R$,P.unset=NH,P.unzip=Xv,P.unzipWith=MR,P.update=FH,P.updateWith=DH,P.values=Tl,P.valuesIn=_H,P.without=L$,P.words=cL,P.wrap=IB,P.xor=N$,P.xorBy=F$,P.xorWith=D$,P.zip=_$,P.zipObject=V$,P.zipObjectDeep=w$,P.zipWith=M$,P.entries=rL,P.entriesIn=oL,P.extend=tL,P.extendWith=wg,ib(P,P),P.add=_5,P.attempt=lL,P.camelCase=kH,P.capitalize=aL,P.ceil=V5,P.clamp=VH,P.clone=RB,P.cloneDeep=NB,P.cloneDeepWith=FB,P.cloneWith=LB,P.conformsTo=DB,P.deburr=sL,P.defaultTo=d5,P.divide=w5,P.endsWith=UH,P.eq=co,P.escape=jH,P.escapeRegExp=$H,P.every=Q$,P.find=Y$,P.findIndex=FR,P.findKey=lH,P.findLast=z$,P.findLastIndex=DR,P.findLastKey=fH,P.floor=M5,P.forEach=UR,P.forEachRight=jR,P.forIn=uH,P.forInRight=pH,P.forOwn=dH,P.forOwnRight=gH,P.get=Jv,P.gt=_B,P.gte=VB,P.has=yH,P.hasIn=Zv,P.head=VR,P.identity=Yi,P.includes=nB,P.indexOf=z4,P.inRange=wH,P.invoke=bH,P.isArguments=cc,P.isArray=Qe,P.isArrayBuffer=wB,P.isArrayLike=Qi,P.isArrayLikeObject=In,P.isBoolean=MB,P.isBuffer=es,P.isDate=kB,P.isElement=UB,P.isEmpty=jB,P.isEqual=$B,P.isEqualWith=BB,P.isError=Yv,P.isFinite=HB,P.isFunction=la,P.isInteger=QR,P.isLength=_g,P.isMap=qR,P.isMatch=GB,P.isMatchWith=WB,P.isNaN=KB,P.isNative=XB,P.isNil=qB,P.isNull=QB,P.isNumber=YR,P.isObject=yn,P.isObjectLike=vn,P.isPlainObject=yu,P.isRegExp=zv,P.isSafeInteger=YB,P.isSet=zR,P.isString=Vg,P.isSymbol=mr,P.isTypedArray=yl,P.isUndefined=zB,P.isWeakMap=JB,P.isWeakSet=ZB,P.join=n$,P.kebabCase=BH,P.last=$r,P.lastIndexOf=i$,P.lowerCase=HH,P.lowerFirst=GH,P.lt=eH,P.lte=tH,P.max=k5,P.maxBy=U5,P.mean=j5,P.meanBy=$5,P.min=B5,P.minBy=H5,P.stubArray=ob,P.stubFalse=ab,P.stubObject=O5,P.stubString=R5,P.stubTrue=L5,P.multiply=G5,P.nth=r$,P.noConflict=b5,P.noop=rb,P.now=Ng,P.pad=WH,P.padEnd=KH,P.padStart=XH,P.parseInt=QH,P.random=MH,P.reduce=sB,P.reduceRight=cB,P.repeat=qH,P.replace=YH,P.result=IH,P.round=W5,P.runInContext=w,P.sample=fB,P.size=dB,P.snakeCase=zH,P.some=gB,P.sortedIndex=u$,P.sortedIndexBy=p$,P.sortedIndexOf=d$,P.sortedLastIndex=g$,P.sortedLastIndexBy=m$,P.sortedLastIndexOf=h$,P.startCase=ZH,P.startsWith=e5,P.subtract=K5,P.sum=X5,P.sumBy=Q5,P.template=t5,P.times=N5,P.toFinite=fa,P.toInteger=Je,P.toLength=ZR,P.toLower=n5,P.toNumber=Br,P.toSafeInteger=nH,P.toString=It,P.toUpper=i5,P.trim=r5,P.trimEnd=o5,P.trimStart=a5,P.truncate=s5,P.unescape=c5,P.uniqueId=D5,P.upperCase=l5,P.upperFirst=eb,P.each=UR,P.eachRight=jR,P.first=VR,ib(P,function(){var c={};return Ro(P,function(f,d){Dt.call(P.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),P.VERSION=t,wr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),wr(["drop","take"],function(c,f){pt.prototype[c]=function(d){d=d===e?1:$n(Je(d),0);var v=this.__filtered__&&!f?new pt(this):this.clone();return v.__filtered__?v.__takeCount__=vi(d,v.__takeCount__):v.__views__.push({size:vi(d,Ut),type:c+(v.__dir__<0?"Right":"")}),v},pt.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),wr(["filter","map","takeWhile"],function(c,f){var d=f+1,v=d==cn||d==nn;pt.prototype[c]=function(E){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(E,3),type:d}),C.__filtered__=C.__filtered__||v,C}}),wr(["head","last"],function(c,f){var d="take"+(f?"Right":"");pt.prototype[c]=function(){return this[d](1).value()[0]}}),wr(["initial","tail"],function(c,f){var d="drop"+(f?"":"Right");pt.prototype[c]=function(){return this.__filtered__?new pt(this):this[d](1)}}),pt.prototype.compact=function(){return this.filter(Yi)},pt.prototype.find=function(c){return this.filter(c).head()},pt.prototype.findLast=function(c){return this.reverse().find(c)},pt.prototype.invokeMap=tt(function(c,f){return typeof c=="function"?new pt(this):this.map(function(d){return uu(d,c,f)})}),pt.prototype.reject=function(c){return this.filter(Dg(Ve(c)))},pt.prototype.slice=function(c,f){c=Je(c);var d=this;return d.__filtered__&&(c>0||f<0)?new pt(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=Je(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},pt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},pt.prototype.toArray=function(){return this.take(Ut)},Ro(pt.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),v=/^(?:head|last)$/.test(f),E=P[v?"take"+(f=="last"?"Right":""):f],C=v||/^find/.test(f);E&&(P.prototype[f]=function(){var L=this.__wrapped__,F=v?[1]:arguments,k=L instanceof pt,z=F[0],J=k||Qe(L),ne=o(function(at){var gt=E.apply(P,Ka([at],F));return v&&me?gt[0]:gt},"interceptor");J&&d&&typeof z=="function"&&z.length!=1&&(k=J=!1);var me=this.__chain__,Re=!!this.__actions__.length,Me=C&&!me,Ze=k&&!Re;if(!C&&J){L=Ze?L:new pt(this);var ke=c.apply(L,F);return ke.__actions__.push({func:Rg,args:[ne],thisArg:e}),new kr(ke,me)}return Me&&Ze?c.apply(this,F):(ke=this.thru(ne),Me?v?ke.value()[0]:ke.value():ke)})}),wr(["pop","push","shift","sort","splice","unshift"],function(c){var f=tg[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",v=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var E=arguments;if(v&&!this.__chain__){var C=this.value();return f.apply(Qe(C)?C:[],E)}return this[d](function(L){return f.apply(Qe(L)?L:[],E)})}}),Ro(pt.prototype,function(c,f){var d=P[f];if(d){var v=d.name+"";Dt.call(pl,v)||(pl[v]=[]),pl[v].push({name:f,func:d})}}),pl[Eg(e,O).name]=[{name:"wrapper",func:e}],pt.prototype.clone=sj,pt.prototype.reverse=cj,pt.prototype.value=lj,P.prototype.at=U$,P.prototype.chain=j$,P.prototype.commit=$$,P.prototype.next=B$,P.prototype.plant=G$,P.prototype.reverse=W$,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=K$,P.prototype.first=P.prototype.head,ru&&(P.prototype[ru]=H$),P},"runInContext"),Qa=jU();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Xn._=Qa,define(function(){return Qa})):ec?((ec.exports=Qa)._=Qa,nv._=Qa):Xn._=Qa}).call(Af)});var CM=ze((_de,xM)=>{var{findIndex:jq}=Zp();function $q(e,t){let i=jq(e,a=>a.endOffset===t),r=!1;for(;r===!1;){i++;let a=e[i];if(a===void 0)return null;if(a.tokenType.name!=="SEA_WS")return a}}o($q,"findNextTextualToken");xM.exports={findNextTextualToken:$q}});var RM=ze((wde,OM)=>{var IM=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function Bq({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(IM);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(Bq,"isXMLNamespaceKey");function Hq(e){if(typeof e!="string")return;let t=e.match(IM);if(t!==null)return t.groups&&t.groups.prefix||""}o(Hq,"getXMLNamespaceKeyPrefix");OM.exports={isXMLNamespaceKey:Bq,getXMLNamespaceKeyPrefix:Hq}});var NM=ze((kde,LM)=>{var{findNextTextualToken:Gq}=CM(),{isXMLNamespaceKey:Wq,getXMLNamespaceKeyPrefix:Kq}=RM();LM.exports={findNextTextualToken:Gq,isXMLNamespaceKey:Wq,getXMLNamespaceKeyPrefix:Kq}});var qP=ze((Ude,DM)=>{var{reduce:Xq,has:FM,isArray:Qq}=Zp();function qq(e){return Xq(e,(n,i,r)=>(r==="parent"||(FM(i,"type")?n.push(i):Qq(i)&&i.length>0&&FM(i[0],"type")&&(n=n.concat(i))),n),[])}o(qq,"getAstChildrenReflective");DM.exports={getAstChildrenReflective:qq}});var YP=ze(($de,_M)=>{_M.exports={DEFAULT_NS:"::DEFAULT"}});var BM=ze((Bde,$M)=>{var{BaseXmlCstVisitor:Yq}=QP(),{last:zq,forEach:kM,reduce:Jq,map:ed,pick:JP,sortBy:Zq,isEmpty:eY,isArray:UM,assign:tY}=Zp(),{findNextTextualToken:nY,isXMLNamespaceKey:iY,getXMLNamespaceKeyPrefix:rY}=NM(),{getAstChildrenReflective:oY}=qP(),{DEFAULT_NS:aY}=YP();function sY(e,t){VM.setState({tokenVector:t});let n=VM.visit(e);return n.rootElement!==zc&&jM(n.rootElement),n}o(sY,"buildAst");var ZP=class ZP extends Yq{constructor(){super()}setState({tokenVector:t}){this.tokenVector=t}visit(t,n={}){return super.visit(t,{location:t.location,...n})}document(t,{location:n}){let i={type:"XMLDocument",rootElement:zc,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&eY(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),oT(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=ed(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),oT(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=ed(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=ed(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:zc,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=ed(t.attribute,this.visit.bind(this))),t.content!==void 0){let{elements:r,textContents:a}=this.visit(t.content[0]);i.subElements=r,i.textContents=a}return fY(i,t),uY(i,t),pY(i,t,this.tokenVector),oT(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:zc,value:zc,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=aT(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=cY(a.image),r.syntax.value=aT(a)}return oT(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:zc},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=Zq(r,["startOffset"]),s=ed(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(ZP,"CstToAstVisitor");var zP=ZP,VM=new zP;function oT(e){let t=oY(e);kM(t,n=>n.parent=e)}o(oT,"setChildrenParent");function jM(e,t=[]){let n=Jq(e.attributes,(r,a)=>{if(a.key!==zc&&iY({key:a.key,includeEmptyPrefix:!1})===!0){let s=rY(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[aY]=l}}return r},{}),i=Object.create(null);e.namespaces=tY(i,t,n),kM(e.subElements,r=>jM(r,e.namespaces))}o(jM,"updateNamespaces");function aT(e){return JP(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(aT,"toXMLToken");function wM(e){return JP(e,["startOffset","startLine","startColumn"])}o(wM,"startOfXMLToken");function MM(e){return JP(e,["endOffset","endLine","endColumn"])}o(MM,"endOfXMLToken");function ka(e){return UM(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(ka,"exists");function cY(e){return e.substring(1,e.length-1)}o(cY,"stripQuotes");function lY(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(lY,"nsToParts");var zc=null;function fY(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=aT(n);let i=lY(n.image);i!==null?(e.ns=i.ns,e.name=i.name):e.name=n.image}t.END_NAME!==void 0&&t.END_NAME[0].isInsertedInRecovery!==!0&&(e.syntax.closeName=aT(t.END_NAME[0]))}o(fY,"handleElementOpenCloseNameRanges");function uY(e,t){if(ka(t.OPEN)){let n;ka(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):ka(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...wM(t.OPEN[0]),...MM(n)}),ka(t.SLASH_OPEN)&&ka(t.END)&&(e.syntax.closeBody={...wM(t.SLASH_OPEN[0]),...MM(t.END[0])})}}o(uY,"handleElementOpenCloseBodyRanges");function pY(e,t,n){if(ka(t.Name)){let i=t.Name[0].endOffset+2;if(ka(t.START_CLOSE)||ka(t.SLASH_CLOSE)){let r=(ka(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=UM(t.attribute)?zq(t.attribute).location.endOffset:t.Name[0].endOffset,s=nY(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(pY,"handleElementAttributeRanges");$M.exports={buildAst:sY}});var WM=ze((Gde,GM)=>{var{forEach:dY,isFunction:Pf}=Zp(),{getAstChildrenReflective:gY}=qP();function HM(e,t){switch(e.type){case"XMLDocument":{Pf(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{Pf(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{Pf(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{Pf(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{Pf(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{Pf(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=gY(e);dY(n,i=>{HM(i,t)})}o(HM,"accept");GM.exports={accept:HM}});var XM=ze((Kde,KM)=>{var{buildAst:mY}=BM(),{accept:hY}=WM(),{DEFAULT_NS:yY}=YP();KM.exports={buildAst:mY,accept:hY,DEFAULT_NS:yY}});var Di={};lc(Di,{deleteConfigEntityByPath:()=>_Z,exportConfig:()=>FZ,exportConfigEntityByPath:()=>DZ,generateCustomExtension:()=>_I,generateSchema:()=>NZ,getApiVersion:()=>kZ,getChanges:()=>P2,getGenericSchema:()=>GT,getPathToGenericSchema:()=>Bk,getProject:()=>HZ,importConfig:()=>VZ,importProject:()=>wZ,importProjectSchema:()=>MZ,isDirectory:()=>jZ,log:()=>ae,prompts:()=>LZ,readDirectory:()=>UI});module.exports=kg(Di);var ge=te(ce());var W=te(ce());var Be=o(e=>typeof e=="string","isString"),Tu=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),YF=o(e=>e==null?"":""+e,"makeString"),RW=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),LW=/###/g,zF=o(e=>e&&e.indexOf("###")>-1?e.replace(LW,"."):e,"cleanKey"),JF=o(e=>!e||Be(e),"canNotTraverseDeeper"),vu=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(JF(e))return{};let a=zF(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return JF(e)?{}:{obj:e,k:zF(i[r])}},"getLastOfPath"),ZF=o((e,t,n)=>{let{obj:i,k:r}=vu(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=vu(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=vu(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),NW=o((e,t,n,i)=>{let{obj:r,k:a}=vu(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),jg=o((e,t)=>{let{obj:n,k:i}=vu(e,t);if(n)return n[i]},"getPath"),FW=o((e,t,n)=>{let i=jg(e,n);return i!==void 0?i:jg(t,n)},"getPathWithDefaults"),o0=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?Be(e[i])||e[i]instanceof String||Be(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):o0(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),bl=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),DW={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},_W=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>DW[t]):e,"escape"),Eb=class Eb{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let n=this.regExpMap.get(t);if(n!==void 0)return n;let i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}};o(Eb,"RegExpCache");var mb=Eb,VW=[" ",",","?","!",";"],wW=new mb(20),MW=o((e,t,n)=>{t=t||"",n=n||"";let i=VW.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=wW.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),hb=o(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let u=a;u<i.length;++u)if(u!==a&&(l+=n),l+=i[u],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<i.length-1)continue;a+=u-a+1;break}r=s}return r},"deepFind"),$g=o(e=>e&&e.replace("_","-"),"getCleanedCode"),kW={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},bu=class bu{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||kW,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(Be(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new bu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new bu(this.logger,t)}};o(bu,"Logger");var yb=bu,Fo=new yb,Ab=class Ab{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l.apply(l,[t,...i])})}};o(Ab,"EventEmitter");var El=Ab,Pb=class Pb extends El{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):Be(i)&&a?l.push(...i.split(a)):l.push(i)));let u=jg(this.data,l);return!u&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),u||!s||!Be(i)?u:hb(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),ZF(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(Be(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let u=jg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?o0(u,i,a):u={...u,...i},ZF(this.data,l,u),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(Pb,"ResourceStore");var Bg=Pb,a0={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,r))}),t}},e0={},Kg=class Kg extends El{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),RW(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Fo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let i=this.resolve(t,n);return i&&i.res!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!MW(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Be(a)?[a]:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return{key:t,namespaces:Be(a)?[a]:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),u=l[l.length-1],p=n.lng||this.language,g=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){let re=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${re}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${re}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s}let m=this.resolve(t,n),h=m&&m.res,S=m&&m.usedKey||s,b=m&&m.exactUsedKey||s,O=Object.prototype.toString.apply(h),N=["[object Number]","[object Function]","[object RegExp]"],M=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,G=!this.i18nFormat||this.i18nFormat.handleAsObject,j=!Be(h)&&typeof h!="boolean"&&typeof h!="number";if(G&&h&&j&&N.indexOf(O)<0&&!(Be(M)&&Array.isArray(h))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let re=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,h,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(m.res=re,m.usedParams=this.getUsedParamsDetails(n),m):re}if(a){let re=Array.isArray(h),Z=re?[]:{},oe=re?b:S;for(let Pe in h)if(Object.prototype.hasOwnProperty.call(h,Pe)){let D=`${oe}${a}${Pe}`;Z[Pe]=this.translate(D,{...n,joinArrays:!1,ns:l}),Z[Pe]===D&&(Z[Pe]=h[Pe])}h=Z}}else if(G&&Be(M)&&Array.isArray(h))h=h.join(M),h&&(h=this.extendTranslation(h,t,n,i));else{let re=!1,Z=!1,oe=n.count!==void 0&&!Be(n.count),Pe=Kg.hasDefaultValue(n),D=oe?this.pluralResolver.getSuffix(p,n.count,n):"",ut=n.ordinal&&oe?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",yt=oe&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),je=yt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${D}`]||n[`defaultValue${ut}`]||n.defaultValue;!this.isValidLookup(h)&&Pe&&(re=!0,h=je),this.isValidLookup(h)||(Z=!0,h=s);let Wn=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:h,nn=Pe&&je!==h&&this.options.updateMissing;if(Z||re||nn){if(this.logger.log(nn?"updateKey":"missingKey",p,u,s,nn?je:h),a){let Ct=this.resolve(s,{...n,keySeparator:!1});Ct&&Ct.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Nt=[],Ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ne&&Ne[0])for(let Ct=0;Ct<Ne.length;Ct++)Nt.push(Ne[Ct]);else this.options.saveMissingTo==="all"?Nt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Nt.push(n.lng||this.language);let Ri=o((Ct,Ut,ln)=>{let Wi=Pe&&ln!==h?ln:Wn;this.options.missingKeyHandler?this.options.missingKeyHandler(Ct,u,Ut,Wi,nn,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Ct,u,Ut,Wi,nn,n),this.emit("missingKey",Ct,u,Ut,h)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&oe?Nt.forEach(Ct=>{let Ut=this.pluralResolver.getSuffixes(Ct,n);yt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Ut.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ut.push(`${this.options.pluralSeparator}zero`),Ut.forEach(ln=>{Ri([Ct],s+ln,n[`defaultValue${ln}`]||je)})}):Ri(Nt,s,je))}h=this.extendTranslation(h,t,n,m,i),Z&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${u}:${s}`),(Z||re)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,re?h:void 0):h=this.options.parseMissingKeyHandler(h))}return r?(m.res=h,m.usedParams=this.getUsedParamsDetails(n),m):h}extendTranslation(t,n,i,r,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let p=Be(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),g;if(p){let h=t.match(this.interpolator.nestingRegexp);g=h&&h.length}let m=i.replace&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,i.lng||this.language||r.usedLng,i),p){let h=t.match(this.interpolator.nestingRegexp),S=h&&h.length;g<S&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,S=new Array(h),b=0;b<h;b++)S[b]=arguments[b];return a&&a[0]===S[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${S[0]} in key: ${n[0]}`),null):s.translate(...S,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,u=Be(l)?[l]:l;return t!=null&&u&&u.length&&i.applyPostProcessor!==!1&&(t=a0.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,a,s,l;return Be(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(u,n),g=p.key;r=g;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let h=n.count!==void 0&&!Be(n.count),S=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),b=n.context!==void 0&&(Be(n.context)||typeof n.context=="number")&&n.context!=="",O=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(N=>{this.isValidLookup(i)||(l=N,!e0[`${O[0]}-${N}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(e0[`${O[0]}-${N}`]=!0,this.logger.warn(`key "${r}" for languages "${O.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(M=>{if(this.isValidLookup(i))return;s=M;let G=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(G,g,M,N,n);else{let re;h&&(re=this.pluralResolver.getSuffix(M,n.count,n));let Z=`${this.options.pluralSeparator}zero`,oe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(G.push(g+re),n.ordinal&&re.indexOf(oe)===0&&G.push(g+re.replace(oe,this.options.pluralSeparator)),S&&G.push(g+Z)),b){let Pe=`${g}${this.options.contextSeparator}${n.context}`;G.push(Pe),h&&(G.push(Pe+re),n.ordinal&&re.indexOf(oe)===0&&G.push(Pe+re.replace(oe,this.options.pluralSeparator)),S&&G.push(Pe+Z))}}let j;for(;j=G.pop();)this.isValidLookup(i)||(a=j,i=this.getResource(M,N,j,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Be(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(Kg,"Translator");var Hg=Kg,db=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),xb=class xb{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Fo.create("languageUtils")}getScriptPartFromCode(t){if(t=$g(t),!t||t.indexOf("-")<0)return null;let n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=$g(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Be(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(t)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=db(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=db(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=db(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Be(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return Be(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):Be(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(xb,"LanguageUtil");var Gg=xb,UW=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],jW={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3},$W=["v1","v2","v3"],BW=["v4"],t0={zero:0,one:1,two:2,few:3,many:4,other:5},HW=o(()=>{let e={};return UW.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:jW[t.fc]}})}),e},"createRules"),Cb=class Cb{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Fo.create("pluralResolver"),(!this.options.compatibilityJSON||BW.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=HW(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let i=$g(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!t.match(/-|_/))return;let u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[a]=s,s}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,a)=>t0[r]-t0[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(t,r,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(t,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){let i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n)),r=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));let a=o(()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!$W.includes(this.options.compatibilityJSON)}};o(Cb,"PluralResolver");var Tb=Cb,n0=o(function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=FW(e,t,n);return!a&&r&&Be(n)&&(a=hb(e,n,i),a===void 0&&(a=hb(t,n,i))),a},"deepFindWithDefaults"),gb=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),Ib=class Ib{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Fo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:p,unescapeSuffix:g,unescapePrefix:m,nestingPrefix:h,nestingPrefixEscaped:S,nestingSuffix:b,nestingSuffixEscaped:O,nestingOptionsSeparator:N,maxReplaces:M,alwaysFormat:G}=t.interpolation;this.escape=n!==void 0?n:_W,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?bl(a):s||"{{",this.suffix=l?bl(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=h?bl(h):S||bl("$t("),this.nestingSuffix=b?bl(b):O||bl(")"),this.nestingOptionsSeparator=N||",",this.maxReplaces=M||1e3,this.alwaysFormat=G!==void 0?G:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,r){let a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(S=>{if(S.indexOf(this.formatSeparator)<0){let M=n0(n,u,S,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(M,void 0,i,{...r,...n,interpolationkey:S}):M}let b=S.split(this.formatSeparator),O=b.shift().trim(),N=b.join(this.formatSeparator).trim();return this.format(n0(n,u,O,this.options.keySeparator,this.options.ignoreJSONStructure),N,i,{...r,...n,interpolationkey:O})},"handleFormat");this.resetRegExp();let g=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(S=>gb(S),"safeValue")},{regex:this.regexp,safeValue:o(S=>this.escapeValue?gb(this.escape(S)):gb(S),"safeValue")}].forEach(S=>{for(l=0;a=S.regex.exec(t);){let b=a[1].trim();if(s=p(b),s===void 0)if(typeof g=="function"){let N=g(t,a,r);s=Be(N)?N:""}else if(r&&Object.prototype.hasOwnProperty.call(r,b))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=YF(s));let O=S.safeValue(s);if(t=t.replace(a[0],O),m?(S.regex.lastIndex+=s.length,S.regex.lastIndex-=a[0].length):S.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((u,p)=>{let g=this.nestingOptionsSeparator;if(u.indexOf(g)<0)return u;let m=u.split(new RegExp(`${g}[ ]*{`)),h=`{${m[1]}`;u=m[0],h=this.interpolate(h,s);let S=h.match(/'/g),b=h.match(/"/g);(S&&S.length%2===0&&!b||b.length%2!==0)&&(h=h.replace(/'/g,'"'));try{s=JSON.parse(h),p&&(s={...p,...s})}catch(O){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,O),`${u}${g}${h}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,u},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let u=[];s={...i},s=s.replace&&!Be(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let g=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=g.shift(),u=g,p=!0}if(a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!Be(a))return a;Be(a)||(a=YF(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),p&&(a=u.reduce((g,m)=>this.format(g,m,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o(Ib,"Interpolator");var vb=Ib,GW=o(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...u]=s.split(":"),p=u.join(":").trim().replace(/^'+|'+$/g,""),g=l.trim();n[g]||(n[g]=p),p==="false"&&(n[g]=!1),p==="true"&&(n[g]=!0),isNaN(p)||(n[g]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),Sl=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e($g(i),r),t[s]=l),l(n)}},"createCachedFormatter"),Ob=class Ob{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Fo.create("formatter"),this.options=t,this.formats={number:Sl((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:Sl((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:Sl((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:Sl((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:Sl((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Sl(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,u)=>{let{formatName:p,formatOptions:g}=GW(u);if(this.formats[p]){let m=l;try{let h=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},S=h.locale||h.lng||r.locale||r.lng||i;m=this.formats[p](l,S,{...g,...r,...h})}catch(h){this.logger.warn(h)}return m}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(Ob,"Formatter");var bb=Ob,WW=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),Rb=class Rb extends El{constructor(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=Fo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},u={};return t.forEach(p=>{let g=!0;n.forEach(m=>{let h=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?s[h]===void 0&&(s[h]=!0):(this.state[h]=1,g=!1,s[h]===void 0&&(s[h]=!0),a[h]===void 0&&(a[h]=!0),u[m]===void 0&&(u[m]=!0)))}),g||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(u=>{NW(u.loaded,[a],s),WW(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(p=>{l[p]||(l[p]={});let g=u.loaded[p];g.length&&g.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((p,g)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&g&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(p,g)},"resolver"),u=this.backend[i].bind(this.backend);if(u.length===2){try{let p=u(t,n);p&&typeof p.then=="function"?p.then(g=>l(null,g)).catch(l):l(null,p)}catch(p){l(p)}return}return u(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Be(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Be(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){let u={...s,isUpdate:a},p=this.backend.create.bind(this.backend);if(p.length<6)try{let g;p.length===5?g=p(t,n,i,r,u):g=p(t,n,i,r),g&&typeof g.then=="function"?g.then(m=>l(null,m)).catch(l):l(null,g)}catch(g){l(g)}else p(t,n,i,r,l,u)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(Rb,"Connector");var Sb=Rb,i0=o(()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Be(e[1])&&(t.defaultValue=e[1]),Be(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),r0=o(e=>(Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),Ug=o(()=>{},"noop"),KW=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Su=class Su extends El{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=r0(t),this.services={},this.logger=Fo,this.modules={external:[]},KW(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(Be(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=i0();this.options={...r,...this.options,...r0(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);let a=o(g=>g?typeof g=="function"?new g:g:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Fo.init(a(this.modules.logger),this.options):Fo.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=bb);let m=new Gg(this.options);this.store=new Bg(this.options.resources,this.options);let h=this.services;h.logger=Fo,h.resourceStore=this.store,h.languageUtils=m,h.pluralResolver=new Tb(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(h.formatter=a(g),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new vb(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new Sb(a(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(S){for(var b=arguments.length,O=new Array(b>1?b-1:0),N=1;N<b;N++)O[N-1]=arguments[N];t.emit(S,...O)}),this.modules.languageDetector&&(h.languageDetector=a(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=a(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Hg(this.services,this.options),this.translator.on("*",function(S){for(var b=arguments.length,O=new Array(b>1?b-1:0),N=1;N<b;N++)O[N-1]=arguments[N];t.emit(S,...O)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Ug),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=function(){return t.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return t.store[g](...arguments),t}});let u=Tu(),p=o(()=>{let g=o((m,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(h),i(m,h)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),u}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ug,r=Be(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=o(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(p=>{p!=="cimode"&&a.indexOf(p)<0&&a.push(p)})},"append");r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let r=Tu();return typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),i||(i=Ug),this.services.backendConnector.reload(t,n,a=>{r.resolve(),i(a)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&a0.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;let r=Tu();this.emit("languageChanging",t);let a=o(u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},"setLngProps"),s=o((u,p)=>{p?(a(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(u,function(){return i.t(...arguments)})},"done"),l=o(u=>{!t&&!u&&this.services.languageDetector&&(u=[]);let p=Be(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);p&&(this.language||a(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,g=>{s(g,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),r}getFixedT(t,n,i){var r=this;let a=o(function(s,l){let u;if(typeof l!="object"){for(var p=arguments.length,g=new Array(p>2?p-2:0),m=2;m<p;m++)g[m-2]=arguments[m];u=r.options.overloadTranslationOptionHandler([s,l].concat(g))}else u={...l};u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||i||a.keyPrefix);let h=r.options.keySeparator||".",S;return u.keyPrefix&&Array.isArray(s)?S=s.map(b=>`${u.keyPrefix}${h}${b}`):S=u.keyPrefix?`${u.keyPrefix}${h}${s}`:s,r.t(S,u)},"fixedT");return Be(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=Tu();return this.options.ns?(Be(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=Tu();Be(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new Gg(i0());return n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Su(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ug,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new Su(r);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new Bg(this.store.data,r),a.services.resourceStore=a.store),a.translator=new Hg(a.services,r),a.translator.on("*",function(l){for(var u=arguments.length,p=new Array(u>1?u-1:0),g=1;g<u;g++)p[g-1]=arguments[g];a.emit(l,...p)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(Su,"I18n");var Wg=Su,Q=Wg.createInstance();Q.createInstance=Wg.createInstance;var eee=Q.createInstance,tee=Q.dir,nee=Q.init,iee=Q.loadResources,ree=Q.reloadResources,oee=Q.use,aee=Q.changeLanguage,see=Q.getFixedT,cee=Q.t,lee=Q.exists,fee=Q.setDefaultNamespace,uee=Q.hasLoadedNamespace,pee=Q.loadNamespaces,dee=Q.loadLanguages;var bD=te(Lb()),SD=te(D0()),dm=te(vD()),dt=require("@sap-ux/vocabularies-types/vocabularies/UI"),Cu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var um=te(ce());var ae=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${um.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${um.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${um.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var $="#/definitions/",xK=[W.v4.FE_TEMPLATE_V4_LIST_REPORT,W.v4.FE_TEMPLATE_V4_ALP,W.v4.FE_TEMPLATE_V4_OBJECT_PAGE,W.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],CK=["sap.fe.core","sap.fe.templates"],ED="controlProperty",IK="defaultControlProperty",Ol=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),vr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Hr(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,dm.parse)(r.fileContent,r.dataSourceUri))}catch(a){return ae(t,{severity:W.LogSeverity.Error,message:Q.t("ANNOERR"),location:{path:Q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,dm.merge)(...n);i=(0,SD.convert)(r)}return i}o(Hr,"parseAndMergeAndConvert");var Il=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Yb(e,t,n){var i,r,a,s;if((i=e==null?void 0:e.Common)!=null&&i.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((r=l==null?void 0:l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(a=e.Common)==null?void 0:a.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}o(Yb,"evaluateCommonLabel");function gm(e,t){let n=e.value;return e.$target&&(n=Yb(e.$target.annotations,t,n)),n}o(gm,"getLabelForPropertyPath");function Iu(e,t){var r,a;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(s=>s.name===e.Value):(i=t&&t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&(e.Target.$target.Value?i=e.Target.$target.Value.$target:e.Target.$target.Label&&(n=e.Target.$target.Label)),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=Yb(i.annotations,t,n)),n}o(Iu,"getLabelForDataField");function ya(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return Yb(a.annotations,t,s)}}}else return}o(ya,"getLabel");function mm(e,t){var r;let n=e,i=typeof n.Action=="string"?n.Action:(r=n.Action)==null?void 0:r.path;return t&&typeof t=="string"?t:i}o(mm,"getDescriptionForActionBasedDataFields");function zb(e,t,n){let i=Iu(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(zb,"getTitleForDataField");function ct(e){return e.replace("#","::").replace(/\//g,":2f")}o(ct,"prepareRef");function ha(e){if(e){let t=`${W.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(ha,"getPageTypeV2");function Jb(e){let t="name"in e&&typeof e.name=="string"?pm(e.name):void 0;if(t)return t;if("viewId"in e&&e.viewId||"viewName"in e&&e.viewName)return W.PageTypeV4.CustomPage}o(Jb,"getPageTypeV4");function OK(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(OK,"getTargetAnnotationName");function ii(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(ii,"findAlias");function RK(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(RK,"getAnnotationFromMetaPath");function LK(e,t,n){var s,l;let i=e[e.length-1],r=RK(i),a=ii(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(LK,"determineTargetAnnotation");function NK(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${dt.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${W.UIVOCABULARY}`);return e}o(NK,"adjustKey");function FK(e,t,n,i,r=W.FioriElementsVersion.v2,a=!1){var m,h;let s=!1,l,u=i.split("/"),p=u.length>1;p&&n&&(n=(m=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:m.targetType),t=NK(t,u,a);let g=LK(u,n,e);if(g){let S=r===W.FioriElementsVersion.v2?"::":"#";t=OK(g,a).replace("#",S),l=(h=g.fullyQualifiedName)==null?void 0:h.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let S=r===W.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(S)}${S}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(FK,"getKeyAndEntityTypeOfReferenceFacet");function AD(e,t,n,i,r=W.FioriElementsVersion.v2,a=!1){var g,m,h;let s=(m=e.fullyQualifiedName)==null?void 0:m.substring((g=e.fullyQualifiedName)==null?void 0:g.lastIndexOf("@")),l=e.ID?e.ID.toString():s,u=(h=e.fullyQualifiedName)==null?void 0:h.split("@")[0],p=t;if(e.$Type!==dt.UIAnnotationTypes.CollectionFacet&&"Target"in e){let S=Il(e.Target);if(!S){ae(i,{severity:W.LogSeverity.Error,message:Q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:O,stopProcessing:N,namespace:M}=FK(n,l,p,S,r,a);if(N)return;l=b,p=O,u=M}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:u}}o(AD,"getSectionFacet");function DK(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(DK,"getDecodedPathElement");var Zb=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),PD=o((e,t,n,i,r,a=!1)=>{if(!t)return;let s=e,l=t.split("/");for(let u=0;u<l.length;u++){let p=l[u];if(p==="[]")continue;let g=DK(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=Zb(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),Vo=o((e,t,n,i,r=!1)=>PD(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),xD=o((e,t,n,i,r)=>{PD(e,t,i,r,n)},"setManifestSectionByPathV4");function eS(e){let t,n,i;switch(e.$Type){case dt.UIAnnotationTypes.DataField:t=Il(e.Value);break;case dt.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Il(e.Value);break;case dt.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${W.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case dt.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${ct(e.Action)}`);break;case dt.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Il(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case dt.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${ct(e.Action)}`);break;case dt.UIAnnotationTypes.DataFieldWithNavigationPath:i=Il(e.Value),n=Il(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(eS,"getSchemaKeyOfLineItemRecord");function _K(e,t,n){return e.includes(dt.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?dt.UIAnnotationTerms.Chart:e.includes(dt.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?dt.UIAnnotationTerms.Identification:n&&e.includes(dt.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?dt.UIAnnotationTerms.LineItem:e.includes(dt.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?dt.UIAnnotationTerms.FieldGroup:e.includes(dt.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?dt.UIAnnotationTerms.DataPoint:e.includes(dt.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?dt.UIAnnotationTerms.PresentationVariant:e.includes(dt.UIAnnotationTerms.SelectionPresentationVariant)||e.includes(t+".SelectionPresentationVariant")?dt.UIAnnotationTerms.SelectionPresentationVariant:void 0}o(_K,"getUIAnnotationTerm");function VK(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Cu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Cu.CommunicationAnnotationTerms.Address:void 0}o(VK,"getCommunicationAnnotationTerm");function wK(e,t,n){return _K(e,t,n)||VK(e,t)}o(wK,"getAnnotationTerm");function MK(e,t,n,i,r){var p,g,m,h,S,b,O,N,M,G;let a=ii(W.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(wK(s,a,i)){case dt.UIAnnotationTerms.Chart:{n[s]={base:W.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case dt.UIAnnotationTerms.Identification:{n[s]={base:W.FacetBase.Identification},n[s].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case dt.UIAnnotationTerms.LineItem:{if(!s.includes(dt.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let j=s.split("::");j[j.length-1]=`@${dt.UIAnnotationTerms.LineItem}`,s=j.join("::")}n[s]={base:W.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case dt.UIAnnotationTerms.FieldGroup:{n[s]={base:W.FacetBase.Form},n[s].target=(h=t==null?void 0:t.Target)==null?void 0:h.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case dt.UIAnnotationTerms.DataPoint:{n[s]={base:W.FacetBase.DataPoint},n[s].Label=(S=t==null?void 0:t.Target)==null?void 0:S.$target.Title,n[s].target=(b=t==null?void 0:t.Target)==null?void 0:b.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case dt.UIAnnotationTerms.PresentationVariant:{n[s]={base:W.FacetBase.PresentationVariant},n[s].target=(O=t==null?void 0:t.Target)==null?void 0:O.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case dt.UIAnnotationTerms.SelectionPresentationVariant:{n[s]={base:W.FacetBase.SelectionPresentationVariant},n[s].target=(N=t==null?void 0:t.Target)==null?void 0:N.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Cu.CommunicationAnnotationTerms.Contact:{n[s]={base:W.FacetBase.Contact},n[s].target=(M=t==null?void 0:t.Target)==null?void 0:M.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Cu.CommunicationAnnotationTerms.Address:{n[s]={base:W.FacetBase.Address},n[s].target=(G=t==null?void 0:t.Target)==null?void 0:G.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:W.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",W.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(MK,"evaluateTargetAnnotation");function tS(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(tS,"getAnnotationPathUsingFullyQualifiedName");function nS(e,t,n,i,r,a=W.FioriElementsVersion.v2,s){var u;let l=AD(e,i,t,s,a,!1);if(l)switch(e.$Type){case dt.UIAnnotationTypes.ReferenceFacet:{MK(l,e,r,i,t);break}case dt.UIAnnotationTypes.CollectionFacet:{let p=tS(i,e.fullyQualifiedName),g=r[l.key]={base:W.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===W.FioriElementsVersion.v4&&ae(s,{severity:W.LogSeverity.Error,message:Q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{nS(m,t,n,i,g.facets,a,s)});break}}}o(nS,"addFacetToConfig");function hm(e,t,n=W.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=ii(W.UIVOCABULARY,t),s=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),g=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{nS(m,t,g,e,r,n,i)})}return r}o(hm,"getObjectPageHeaderFacets");function ym(e,t,n=W.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=ii(W.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(g=>{nS(g,t,p,e,r,n,i)})}return r}o(ym,"getObjectPageFacets");function iS(e){var t,n,i,r;if(e[W.ManifestSection.generic]&&Object.keys(e[W.ManifestSection.generic]).length>0||e[W.ManifestSection.ovp]&&Object.keys(e[W.ManifestSection.ovp]).length>0)return W.FioriElementsVersion.v2;{let a=(n=(t=e[W.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[W.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>{let u=typeof a[l].name=="string"?a[l].name:"";return xK.indexOf(u)>-1||pm(u)})||s&&Object.keys(s).find(l=>CK.indexOf(l)>-1)?W.FioriElementsVersion.v4:void 0}}o(iS,"getFEVersionFromManifest");function kK(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[W.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[W.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[W.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[W.ManifestSection.ui5].models[t].dataSource:void 0}o(kK,"getMainService");function CD(e){var i,r;let t=kK(e);if(!t)return W.OdataVersion.v2;let n=(i=e[W.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?W.OdataVersion.v4:W.OdataVersion.v2}o(CD,"getODataVersionFromManifest");function UK(e,t){var i,r;let n;if(e[W.ManifestSection.generic]){let a=e[W.ManifestSection.generic].pages;if(!a){ae(t,{severity:W.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(ha((i=l.component)==null?void 0:i.name)===W.PageTypeV2.AnalyticalListPage){n=W.TemplateType.AnalyticalListPageV2;break}else if(ha((r=l.component)==null?void 0:r.name)===W.PageTypeV2.ListReport){n=W.TemplateType.ListReportObjectPageV2;break}}}else n||ae(t,{severity:W.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:W.ManifestSection.generic}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.generic]}});return n}o(UK,"determineV2Template");function Ou(e){var i,r,a,s;let t,n=Jb(e);if(n===W.PageTypeV4.AnalyticalListPage)t=W.TemplateType.AnalyticalListPageV4;else if(n===W.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[W.ALPViewType.Primary]||l[W.ALPViewType.Secondary])?t=W.TemplateType.AnalyticalListPageV4:t=W.TemplateType.ListReportObjectPageV4}else n===W.PageTypeV4.ObjectPage?t=W.TemplateType.ListReportObjectPageV4:[W.PageTypeV4.CustomPage,W.PageTypeV4.FPMCustomPage].includes(n)&&(t=W.TemplateType.FreestylePageV4);return t}o(Ou,"determineV4PageTemplateType");function jK(e){let t;for(let n in e){let i=e[n];if(t=Ou(i),t)break}return t}o(jK,"determineV4TemplateFromPages");function $K(e,t){let n=e[W.ManifestSection.ui5].routing&&e[W.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return ae(t,{severity:W.LogSeverity.Info,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.ui5,"routing"]}}),W.TemplateType.ListReportObjectPageV4;let i=jK(n);return i||ae(t,{severity:W.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:W.ManifestSection.ui5}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.ui5,"routing","targets"]}}),i}o($K,"determineV4Template");function dc(e,t,n){let i;return e[W.ManifestSection.ovp]?i=W.TemplateType.OverviewPageV2:t===W.FioriElementsVersion.v2?i=UK(e,n):t===W.FioriElementsVersion.v4&&(i=$K(e,n)),i}o(dc,"getTemplateTypeFromManifest");function Ta(e,t,n){e!=null&&e.ID?(t.title=W.FACETTITLEPREFIX+e.ID,t[W.SchemaTag.keys]=[{name:W.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[W.SchemaTag.keys]=[{name:W.SchemaKeyName.id,value:n.replace(W.UIVOCABULARYALPHADOT,"")}])}o(Ta,"addSectionTitle");function ns(e,t,n){e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(ns,"addSectionDescription");function Rl(e,t,n){var i,r;Ta(e,t,n),ns(e,t,n),!(e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}o(Rl,"addTargetTitleAndSectionDescription");function ID(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(ID,"addChartFacetID");function wo(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[W.SchemaTag.isViewNode]=!0,i[W.SchemaTag.annotationPath]=t.annotationPath,Rl(t,i,n),i}o(wo,"createDefaultSection");function OD(e,t,n,i=W.FioriElementsVersion.v2,r=!1){var l,u;let a=ii(W.UIVOCABULARY,t),s=[];if(e){let p=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.Facets);return p&&(s=p.reduce(function(g,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return g;let h=AD(m,e,t,n,i,!0);return h&&g.push(h),g},s)),s}}o(OD,"getObjectPageFacetSection");var is=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(u){let p=a&&a===u?r:u.replace(/\?\?/g,"/");if(!(!s[p]&&(a===u&&(p=a),!s[p]))){if(Object.keys(s[p]).length===0||i&&i[i.length-1]===p&&n){Array.isArray(s)?s.splice(Number(p),1):delete s[p],l.pop(),is(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),qb=o(e=>e===W.SchemaType.FreestylePage?W.PageTypeV2.CustomPage:e===W.SchemaType.FPMCustomPage?W.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),_t=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case W.SchemaType.Application:{i.filename="App",i.path=`./${W.DirName.Schemas}/${i.filename}`;break}case W.SchemaType.ListReport:case W.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:qb(e),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}case W.PageTypeV4.FPMCustomPage:case W.SchemaType.FPMCustomPage:{i.filename=n?`${W.SchemaType.FPMCustomPage}_${n}`:qb(W.SchemaType.FPMCustomPage),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}default:{i.filename=qb(e),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function Tm(e,t,n,i){if(e===W.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o(Tm,"generatePageId");function rS(e,t,n){let i=t==null?void 0:t.properties,r=t==null?void 0:t.required;if(!i&&(t!=null&&t.$ref)){let s=t==null?void 0:t.$ref,l=e.definitions[s.split($)[1]];typeof l=="object"&&(i=l.properties,r=l.required)}if(!i||Object.keys(i).length===0)return[];let a=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(u=>l[u]!==void 0)&&a.push(s)}return a}o(rS,"findMatchingKeysByAdditionalProperties");function BK(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split($)[1],s=t.definitions[a];if(typeof s=="object"&&typeof n=="object"){let l=s[ED];if(l)r.includes(n[l])&&i.push(a),n[l]===void 0&&s[IK]&&i.push(a);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=rS(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length||Object.keys(n).length===0&&u.length)&&i.push(a)}}}o(BK,"fillArrayFromAnyOfReference");function HK(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split($)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{BK(r,n,t,i)}),i.length===0))return;return i}o(HK,"fillArrayFromPropertyDefinition");function GK(e,t,n,i,r,a,s,l){var p,g,m,h,S;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(u.targetDefinition=t.definitions[b],!((p=u==null?void 0:u.targetDefinition)!=null&&p.properties)&&((g=u==null?void 0:u.targetDefinition)!=null&&g.$ref)||((m=u==null?void 0:u.targetDefinition)==null?void 0:m.type)==="array")return u=Mo(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(M=>{M!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[M].properties})}),u.title=(h=u==null?void 0:u.targetDefinition)!=null&&h.title?u.targetDefinition.title:n;let O=b==null?void 0:b.split("<")[0],N=i||{};u.configObject=a.createInstance(s,O,N,(S=u==null?void 0:u.targetDefinition)==null?void 0:S[ED])}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}o(GK,"determineNextDefinitionFromDefinitionArray");function Mo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Mo(e,t,n,i.items,r,a,s),l;let u=HK(i,n,e);if(u)return l=GK(u,e,t,n,r,a,s,i),l}o(Mo,"getNextTargetDefinition");var oS=o((e,t,n)=>{let i=e.slice();return t.forEach((r,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[a]=(0,bD.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function vm(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(vm,"convertEnumToCSV");function Zi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Zi,"convertActionKeyToStableId");function on(e){return e==null?void 0:e.split($)[1]}o(on,"getDefinitionKey");function bm(e){return`#/definitions/${e}`}o(bm,"getDefinitionsRef");function Sm(e){return e instanceof Error?e.message:String(e)}o(Sm,"getErrorMessage");function gc(e,t){return e==null?void 0:e.includes(t)}o(gc,"isFeatureSupported");function ko(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(ko,"updatePropertyIndices");function Em(e,t){let n=e;for(let i of t)if(i!==void 0)if(typeof n=="object"&&i in n)n=n[i];else return;return n}o(Em,"getJSONPropertyByPath");function RD(e){return e=e.replace(W.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(RD,"removeNamespaces");function Ll(e){return e=e.replace(W.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(Ll,"replaceNamespaces");function va(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith($))return t.substring($.length)}o(va,"getRefType");function pm(e){if(e===W.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return W.PageTypeV4.FPMCustomPage;if(e!=null&&e.startsWith(`${W.v4.FE_NAMESPACE_V4}.`)){let t=e.split("."),n=t[t.length-1];if(n in W.PageTypeV4)return W.PageTypeV4[n]}}o(pm,"convertTemplateNameToPageTypeV4");function Am(e,t){if(e===t)return!0;let n=pm(e);return n?n===pm(t):!1}o(Am,"compareTemplateNames");var Oo=require("@sap-ux/vocabularies-types/vocabularies/UI"),se=te(ce());var er=te(ce());var Jt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Pm=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),qn=o((e,t)=>{let n,i=er.FACETTITLEPREFIX;return t!==void 0&&t.includes(i)?n=t.split(i)[1]:n=e.replace(new RegExp("/@","g"),"::").replace(/@com.sap/g,"com.sap"),n},"convertSectionId");function WK(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o(WK,"escapeId");var LD=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(LD||{}),ND=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(ND||{});function KK(e,t,n){let i;return e=e.map(function(r){if(r===er.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===er.PropertyName.sections)return i=t[a+1],t[a+1]=qn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(KK,"mapBreadcrumbs");var aS=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=KK(t,s,r)),s[0]===er.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,er.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,er.VOCWITHSLASH):t[0]===er.PropertyName.table&&(a=t[0]);let u=s[s.length-1].replace(/::com.sap.vocabularies/g,er.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,er.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,g=u.indexOf(":::");return u.startsWith("DataField")&&g>-1?(u=u.replace("/",":2f"),p=`${e}template:::TableColumn:::${u.substring(0,g)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${u.substring(g+3)}`):(u=u.replace("/","_"),p=`${e}${t.join("::")}-${u}`),WK(p)},"buildColumnControlId"),tr=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function XK(e){let t=er.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(XK,"determinePattern");var sS=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split($)[1]]:a,u=a.description?a.description:l.description,p=XK(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(g=>{s.enum.indexOf(g)===-1&&s.enum.push(g)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},u&&(r[n].description=u,delete a.description)},"addPatternForBindingChangeOfEnum"),Yn=o((e,t,n)=>{sS(e,t,n)},"addPatternForBindingChangeOfEnumLR"),mt=o((e,t,n)=>{let i=Object.values(LD);sS(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ri=o((e,t,n)=>{let i=Object.values(ND);sS(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function mc(){}o(mc,"doNotDelete");var cte=te(DD());var cS=Symbol("specificationMetadataKey"),T=o(e=>Reflect.metadata(cS,e),"syncRule");function Dn(e,t){let n;return e&&(n=Reflect.getMetadata(cS,e,t)),n}o(Dn,"getReflectMetadata");function _D(e){let t;return e&&(t=Reflect.getMetadata(cS,e)),t}o(_D,"getReflectTypeMetadata");var nr=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),VD=Symbol("childId"),$t=o(e=>Reflect.metadata(VD,e),"childId"),xm=o((e,t)=>Reflect.getMetadata(VD,e,t),"getChildId"),Cm=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),QK=Symbol("descriptionSrcURL"),fe=o(e=>Reflect.metadata(QK,e),"descriptionSrcURL");var qK=Symbol("validityMetadataKey"),x=o(e=>Reflect.metadata(qK,e),"validity");function Nl(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(Nl,"getTextForDeprecated");var HD=te($D()),GD=te(ce());var WD=HD.default.change,BD={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function KD(e,t){let n="";try{for(let i in BD)e[i]===void 0&&(e[i]=BD[i]);n=WD.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(KD,"createChangeString");function br(e){try{return WD.parse(e)}catch{return!1}}o(br,"parseChangeString");function XD(e,t,n,i,r){let a=n.layer?n.layer===GD.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:a};return e[i]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,i):e[i].toString().startsWith("{")?(s.content.newBinding=e[i],s.type="propertyBindingChange"):s.content.newValue=e[i]:s.content.newValue=null,s}o(XD,"fillFlexChangeContent");function Im(e,t){return KD(e,t)}o(Im,"exportToFlexChange");var hc=te(ce());function Fl(e,t,n,i,r,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let u=l(t,r,n,a);u!==void 0&&(i[n]=u)}else t[s]!==void 0&&(i[n]=t[s])}o(Fl,"importProperty");function Om(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(ae(i,{severity:hc.LogSeverity.Warning,message:Nl(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(Om,"checkDeprecatedProperties");function lS(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split($)[1]];return lS(n,t)}else return e.title?e.title.startsWith(hc.FACETTITLEPREFIX)?e.title.split(hc.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(lS,"getSectionTitle");function Rm(e){let t=e.split(`${hc.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(Rm,"getTargetFromCustomColumnRef");function Gr(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(Gr,"removeEmptyStructure");var Vt=require("@sap-ux/vocabularies-types/vocabularies/UI");var jo=require("@sap-ux/vocabularies-types/vocabularies/UI");var Sa=require("@sap-ux/vocabularies-types/vocabularies/UI");var QD=te(ce()),ee=te(ce()),qD=require("path");function Ot(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let g in n.properties){let m=Dn(e,g);if(m!=null&&m.manifest){let h=m.manifest.path([i],t,p,...r);l=Vo(t,h,a,p,!0),l&&Object.keys(l).length>0&&(Fl(m,l,g,e,a,r),Om(u,l,h,s))}}}o(Ot,"importSettingsOfObject");var dS="DataFieldForActionGroup";function nX(){return([e,t],[n,i])=>t[ee.SchemaTag.propertyIndex]-i[ee.SchemaTag.propertyIndex]}o(nX,"sortByPropertyIndex");function Ru(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(nX())}o(Ru,"sortPropertiesRecords");function iX(e){let t;return typeof e=="object"?"header"in e?t=e.header:"text"in e?t=e.text:"title"in e?t=e.title:"label"in e&&(t=e.label):typeof e=="string"&&(t=e),t}o(iX,"getExtensionText");function fS(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||ee.v4.Placement.After)===ee.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(fS,"addExtensionToSortedArray");function rX(e,t,n,i,r){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var u,p,g;return((u=l.position)==null?void 0:u.placement)==="Before"&&((p=l.position)==null?void 0:p.anchor)===((g=n.position)==null?void 0:g.anchor)})===-1&&(i.splice(i.length,0,[t,r]),delete e[t])}o(rX,"addRemainingTargetByBefore");function YD(e,t,n,i){let r=t.includes(ee.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=iX(e);return{$ref:`${$}${r}`,description:a,keys:[{name:ee.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(YD,"getExtensionDetails");function uS(e,t,n,i,r=!1){var l,u;let a=Object.entries(e).length;for(let p of Object.keys(e)){let g=e[p],m=YD(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let h=n.findIndex(S=>S[0]===g.position.anchor);h>-1?(fS(g,n,h,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(ae(i,{severity:Di.LogSeverity.Error,message:Q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&rX(e,p,g,n,m)}else r&&(fS(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?uS(e,t,n,i):s>0&&uS(e,t,n,i,!0)}o(uS,"adjustCustomExtReferringToCustomExt");function oX(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||ee.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===ee.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(oX,"getExtensionAnchor");function aX(e,t){var i;let n=[];for(let r in e){let a=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===a);a&&!s&&n.push(r)}return n}o(aX,"getLocalExtensionsToSkip");function sX(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||ee.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let a=o((p,g)=>{for(let m of n){let h=t[m[0]];if(g(h))break;p++}return p},"findNextIndex"),s=0;return i===ee.v4.Placement.Before?s=a(0,p=>!p):s=a(-1,p=>{var g,m;return!!(p&&((g=p==null?void 0:p.position)!=null&&g.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==ee.v4.Placement.Before))}),s>-1?s:0}o(sX,"getExtensionIndexByMergedApproach");function cX(e,t,n,i,r=!1){return r?sX(e,t,n):n.findIndex(a=>a[0]===i)}o(cX,"getExtensionIndex");function lX(e,t,n,i,r){ae(e,{severity:Di.LogSeverity.Error,message:Q.t("INVALIDEXTENSION",{id:t}),location:{path:ee.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(lX,"handleInvalidExtension");function ba(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=aX(l,s);if(!l)return[];for(let p of Object.keys(l)){let g=l[p];if(u!=null&&u.includes(p))continue;let m=YD(g,n,p,ee.ActionType.Custom);if(typeof g!="object"){lX(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let h=oX(g,s);if(h){let S=cX(g,e,t,h,a);S>-1&&(fS(g,t,S,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&uS(l,n,t,r),t}o(ba,"addExtensionToArray");function gS(e,t){let n=[];for(let i of Object.keys(e.properties))i.indexOf("::")>-1&&n.push(i.substring(i.indexOf("::")+2));t.properties.properties.items.enum=n}o(gS,"addEnumForProperties");function fX(e,t,n,i=ee.DefinitionName.CustomColumn){if(i===ee.DefinitionName.CustomColumn||i.indexOf(ee.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];gS(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[ee.SchemaTag.propertyIndex]=r}}o(fX,"addColumnPropertyIndexAndEnum");function yc(e,t,n,i=ee.DefinitionName.CustomColumn,r,a){var h,S,b,O;let s=r||ee.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Ru(l),p=a?a.replace(/::/g,"/"):`@${Sa.UIAnnotationTerms.LineItem}`,g=(O=(b=(S=(h=t.options)==null?void 0:h.settings)==null?void 0:S.controlConfiguration)==null?void 0:b[p])==null?void 0:O.columns;g&&(u=ba(g,u,i,void 0,n)),fX(u,e,l,i);let m={};u.forEach(([N,M])=>m[N]=M),e.definitions[s].properties=m}o(yc,"addCustomColumnDefinition");function zD(e,t){let n=t.$Type===Sa.UIAnnotationTypes.DataFieldForActionGroup,i;return e.lineItemId.startsWith(ee.DefinitionName.LineItemsOfView)?i=n?ee.DefinitionName.ViewToolBarActionGroup:ee.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(ee.DefinitionName.LineItems)?i=n?ee.DefinitionName.ToolBarActionGroup:ee.DefinitionName.ToolBarAction:i=n?ee.DefinitionName.ObjectPageToolBarActionGroup:ee.DefinitionName.ObjectPageToolBarAction,i}o(zD,"determineActionDefinitionName");function uX(e,t,n){e[ee.SchemaTag.keys]=[],t[ee.SchemaKeyName.semanticObject]&&e[ee.SchemaTag.keys].push({name:ee.SchemaKeyName.semanticObject,value:t[ee.SchemaKeyName.semanticObject]});let{key:i,ns:r}=Ec(n,!0);e[ee.SchemaTag.keys].push({name:ee.SchemaKeyName.action,value:i}),r&&(e[ee.SchemaTag.target]=r)}o(uX,"addTargetAndKeysOfAction");function JD(e,t=!0){let{lineItemData:n,actions:i,lineItemPath:r,lineItemRecord:a,index:s}=e;if(a.Determining===!0)return;let l=zD(n,a),u=ai(a,n.entityType),p=a.$Type.split(`${ee.UIVOCABULARY}.`)[1],g=typeof a.Action=="string"?a.Action:a.Action.path,m=Fm(g),h=i.properties[`${p}::${m}`]={description:u};if(t?h.$ref=i1(l,ct(m),n.appSchema,r):(h.properties={},h.type="object",h.isViewNode=!0),h[ee.SchemaTag.propertyIndex]=s,h[ee.SchemaTag.dataType]=Kr(a),uX(h,a,g),h[ee.SchemaTag.annotationType]=a.$Type,t){let S=h.$ref.replace($,""),b=vt(l,S,n.appSchema,!1);b[ee.SchemaTag.annotationPath]=`${r}/${s}`}else h[ee.SchemaTag.annotationPath]=`${r}/${s}`}o(JD,"addActionRecordToSchema");function ZD(e,t=!0){let{lineItemData:n,lineItemRecord:i,lineItemPath:r,index:a,actions:s}=e,l=zD(n,i),u=Wr(i),p={};t?(s.properties[`${u}`]={$ref:oi(l,ct(u))},p=vt(l,ct(u),n.appSchema)):s.properties[`${u}`]=p,Pa(p,Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),p.properties={},p.description=ai(i,n.entityType),p.type="object",p.isViewNode=!0,p[ee.SchemaTag.propertyIndex]=a,p[ee.SchemaTag.dataType]=Kr(i),p[ee.SchemaTag.annotationPath]=`${r}/${a}`,(i.Actions??[]).forEach((g,m)=>{let h={...e,lineItemRecord:g,lineItemPath:`${p[ee.SchemaTag.annotationPath]}/Actions`,actions:p,index:m};JD(h,t)})}o(ZD,"addGroupActionRecordToSchema");function mS(e){let{lineItemRecord:t,lineItemDefinition:n}=e;t.Inline!==!0||t.Determining===!0?JD(e,!n):hS(e)}o(mS,"addLineItemActionDefinition");function hS(e){var g;let{lineItemData:t,lineItemRecord:n,lineItemDefinition:i,lineItemPath:r,index:a,columnDefinitionName:s}=e,l=n.$Type===Sa.UIAnnotationTypes.DataFieldForAction?`${s}Action`:s,u=t.lineItemId;if((g=n.Target)!=null&&g.value){let m=`@${ii(ee.UIVOCABULARY,t.oDataServiceAVT)}.`;n.Target.value=n.Target.value.replace(m,"@")}let p=Wr(n).replace(/\//g,"::");if(p){let m=i;m||(m=t.appSchema.definitions[u]);let h=m.properties,S={description:ai(n,t.entityType)};i?(S.properties={},S.type="object",S.isViewNode=!0):S.$ref=$+l,S[ee.SchemaTag.annotationType]=n==null?void 0:n.$Type,S[ee.SchemaTag.annotationPath]=`${r}/${a}`,S[ee.SchemaTag.propertyIndex]=a,S[ee.SchemaTag.dataType]=Kr(n),h[p]=S,Vm(n,h,p)}}o(hS,"addLineItemRecordToSchema");function yS(e,t,n,i,r=ee.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{let l={lineItemData:e,actions:t,lineItemPath:n,lineItemRecord:s,index:a,lineItemDefinition:i,columnDefinitionName:r};rs.getStrategy(s.$Type).addLineItemDefinition(l),a++})}o(yS,"appendLineItemsToSchema");function Tc(e,t=ee.DefinitionName.TableColumn,n=ee.DefinitionName.CustomColumn,i=ee.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=Dm(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);yS(e,r,a,void 0,t)}o(Tc,"addLineItemsTypeToSchema");function vc(e,t,n,i=ee.DefinitionName.Position,r){var p,g,m,h,S;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let b in a)b!=="custom"&&s.push(b);let l=t!==ee.DefinitionName.LineItems?r:`@${Sa.UIAnnotationTerms.LineItem}`,u=(S=(h=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:h[l])==null?void 0:S.columns;if(u)for(let b in u)s.indexOf(b)===-1&&s.push(b);if(s.length>0){let b=e.definitions[i].properties.anchor;Aa(s,b)}}o(vc,"addFragmentEnumForAnchor");function uo(e,t,n=ee.DefinitionName.CustomActionPosition){os(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(uo,"addEnumForActionAnchor");function Lm(e,t,n,i){var a;let r;for(let s in e){let l=((a=e[s].options)==null?void 0:a.settings)||{};if((i&&l.contextPath===i||(n==null?void 0:n.name)&&l.entitySet===n.name)&&(Am(t,e[s].name)||t===ee.v4.FE_TEMPLATE_V4_ALP&&e[s].name===ee.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[s];break}}return r}o(Lm,"findPageV4");function e1(e,t){let n,i=e.properties[ee.PropertyName.table];return t.templateType===ee.TemplateType.AnalyticalListPageV4?(n=ee.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${$}${ee.DefinitionName.ALPTableView}`,delete e.definitions[ee.DefinitionName.Table],delete e.definitions[ee.DefinitionName.LRChartView],delete e.definitions[ee.DefinitionName.LRTableView],delete e.definitions[ee.DefinitionName.MultiTableModeV4]):t.templateType===ee.TemplateType.ListReportObjectPageV4&&(n=ee.DefinitionName.Table,delete i.anyOf,i.$ref=`${$}${ee.DefinitionName.Table}`,e.definitions[n].properties[ee.PropertyName.annotationPath][ee.SchemaTag.hidden]=!0,delete e.definitions[ee.DefinitionName.ALPTableView],e.properties[ee.PropertyName.defaultPath][ee.SchemaTag.hidden]=!0),n}o(e1,"alignSchemaWithTemplateType");function Ea(e,t,n,i=ee.DefinitionName.CustomTableAction,r="",a=""){var g,m,h,S,b,O,N,M,G,j;let s=e.definitions[r];if(!s)return;let l=Ru(s),u;a?i.indexOf(ee.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===ee.DefinitionName.CustomFormActionOP?u=`@${Sa.UIAnnotationTerms.FieldGroup}`:u=`@${Sa.UIAnnotationTerms.LineItem}`;let p;if(r.includes(ee.DefinitionName.ObjectPageCustomSectionActions)?p=(O=(b=(S=(h=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:h.body)==null?void 0:S.sections)==null?void 0:b[u])==null?void 0:O.actions:p=(j=(G=(M=(N=t.options)==null?void 0:N.settings)==null?void 0:M.controlConfiguration)==null?void 0:G[u])==null?void 0:j.actions,p&&(l=ba(p,l,i,"press",n)),l){for(let Z=0;Z<l.length;Z++)l[Z][1][ee.SchemaTag.propertyIndex]=Z;let re={};l.forEach(([Z,oe])=>re[Z]=oe),e.definitions[r].properties=re}}o(Ea,"addCustomActionDefinition");function Nm(e,t,n,i=ee.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,h,S,b,O,N;let a=e.definitions[r];if(!a)return;let s=Ru(a),l;[ee.DefinitionName.CustomHeaderAction,ee.DefinitionName.CustomHeaderActionOP].includes(i)?l=(h=(m=(g=(p=t.options)==null?void 0:p.settings)==null?void 0:g.content)==null?void 0:m.header)==null?void 0:h.actions:l=(N=(O=(b=(S=t.options)==null?void 0:S.settings)==null?void 0:b.content)==null?void 0:O.footer)==null?void 0:N.actions,l&&(s=ba(l,s,i,"press",n));let u={};if(s){for(let M=0;M<s.length;M++)s[M][1][ee.SchemaTag.propertyIndex]=M;s.forEach(([M,G])=>u[M]=G)}e.definitions[r].properties=u}o(Nm,"addHeaderFooterCustomActionDefinition");function bc(e,t,n){let i=Em(e,[ee.ManifestSection.ui5,"routing","targets"]);if(!i){ae(n,{severity:Di.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5,"routing"]}});return}let r=Em(i,[t]);if(!r){ae(n,{severity:Di.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:t}),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5,"routing"]}});return}return r}o(bc,"getManifestPage");function Sc(e,t,n,i,r){var a,s;if(r){let l=((a=n["sap.app"])==null?void 0:a.id)||"",u="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),g=p.pop();g=`${g}.${i}.${u}`;let m=(0,qD.join)(...p,g),h=e.find(S=>S.dataSourceUri.endsWith(m));if(h){let S=(s=t.options)==null?void 0:s.settings;return{file:h,relativeFilePath:m,connection:{contextPath:S==null?void 0:S.contextPath,entitySet:S==null?void 0:S.entitySet}}}}}o(Sc,"getPageCustomExtensionFile");function Uo(e,t,n,i){let r=bc(n,t,i),a=Em(r,["options","settings","viewName"]);return r&&typeof a=="string"?Sc(e,r,n,"view",a):void 0}o(Uo,"getPageCustomViewFile");function t1(e,t,n,i,r,a,s){var g,m,h,S,b,O,N,M,G,j,re,Z;let l=Ru(t),u=new Map;if(l=l.map(oe=>{let Pe=_m(e,oe[1],oe[0],{keyProperties:[ee.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(Pe.const,oe[0]),[Pe.const,oe[1]]}),a){let oe=(b=(S=(h=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:h.body)==null?void 0:S.sections)==null?void 0:b[a];oe&&"subSections"in oe&&(l=ba(oe.subSections,l,i,"template",s,r))}else if(i.includes(ee.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let oe=(M=(N=(O=n.options)==null?void 0:O.settings)==null?void 0:N.content)==null?void 0:M.header;oe&&"facets"in oe&&(l=ba(oe.facets,l,i,"template",s,r))}else{let oe=(Z=(re=(j=(G=n.options)==null?void 0:G.settings)==null?void 0:j.content)==null?void 0:re.body)==null?void 0:Z.sections;oe&&(l=ba(oe,l,i,"template",s,r))}for(let oe=0;oe<l.length;oe++)l[oe][1][ee.SchemaTag.propertyIndex]=oe;let p={};l.forEach(([oe,Pe])=>{oe=u.get(oe)||oe,p[oe]=Pe}),t.properties=p}o(t1,"addCustomSectionDefinition");function n1(e,t,n){var l,u,p;let i=Ru(t),r=new Map;i=i.map(g=>{let m=_m(e,g[1],g[0],{keyProperties:[ee.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let a=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${Sa.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=ba(a.filterFields,i,ee.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][ee.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o(n1,"addCustomFilterFieldDefinition");function pS(e,t,n=!1){let{appSchema:i,factory:r,actionsInConfig:a,actionKey:s,manifest:l,routingId:u,manifestSectionId:p,targetAnnotation:g}=e,m=(t??"").split("<")[0],h=r.createInstance(QD.PageTypeV4.ObjectPage,m),S=[s.replace("/","??")];if(g&&S.push(g),h){let b=a[s]=h;Ot(b,l,i.definitions[t],u,S,p),n||Gr(a,s)}}o(pS,"importActionToConfigurationObject");function pX(e,t){let{actionPropertyDefinition:n}=e,i=on(t.$ref||n.$ref);pS(e,i)}o(pX,"importSingleActionSettingsOfReference");function dX(e,t){let{actionPropertyDefinition:n,appSchema:i,actionsInConfig:r,actionKey:a}=e,s=on(t.$ref??n.$ref);pS(e,s,!0);let l=r[a];Pa(l,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let{properties:u}=t;for(let p in u){let g=u[p],m=on(g.$ref),h=i.definitions[m],S=on(h.$ref??g.$ref),b={...e,actionsInConfig:l,actionKey:p};pS(b,S)}Gr(r,a)}o(dX,"importGroupActionSettingsOfReference");function Dl(e){let{actionPropertyDefinition:t,appSchema:n}=e,i=on(t.$ref),r=n.definitions[i];r.dataType===dS?dX(e,r):pX(e,r)}o(Dl,"importActionSettingsOfReference");var OS=class OS{addDefinition(t){r1(t)}addLineItemDefinition(t){hS(t)}};o(OS,"DataFieldStrategy");var po=OS,RS=class RS extends po{generateStableId(t){return xa("DataFieldForAction::"+t.Action)}generateDescription(t,n){let i=ya(t.Label,n);return mm(t,i)}addDefinition(t){Lu(t)}addLineItemDefinition(t){mS(t)}};o(RS,"DataFieldForActionStrategy");var TS=RS,LS=class LS extends po{generateStableId(t){return xa("DataFieldForActionGroup::"+t.ID)}generateDescription(t,n){let i=ya(t.Label,n);return t.Label??t.ID??i}addDefinition(t){Lu(t)}addLineItemDefinition(t){var n;ZD(t,!((n=t.lineItemData)!=null&&n.isMacro))}};o(LS,"DataFieldForActionGroupStrategy");var vS=LS,NS=class NS extends po{generateStableId(t){return"DataFieldForIntentBasedNavigation::"+US(t)}generateDescription(t,n){let i=ya(t.Label,n);return mm(t,i)}addDefinition(t){Lu(t)}addLineItemDefinition(t){mS(t)}};o(NS,"DataFieldForIntentBasedNavigationStrategy");var bS=NS,FS=class FS extends po{generateStableId(t){var i,r;let n=((i=t.Target)==null?void 0:i.$AnnotationPath)??((r=t.Target)==null?void 0:r.value)??"";return"DataFieldForAnnotation::"+xa(n)}generateDescription(t,n){var a,s,l,u;let i=Iu(t,n);return ya(t.Label,n)||i||((s=(a=t==null?void 0:t.Target)==null?void 0:a.$target)==null?void 0:s.Title)||((u=(l=t==null?void 0:t.Target)==null?void 0:l.value)==null?void 0:u.split("UI.v1.")[1])}};o(FS,"DataFieldForAnnotationStrategy");var SS=FS,DS=class DS extends po{generateStableId(t){let n="DataFieldWithAction::";return"Value"in t&&t.Value&&(n+=as(t.Value)+"::"),n+=t.Action,xa(n)}generateDescription(t,n){let i=ya(t.Label,n);return mm(t,i)}};o(DS,"DataFieldWithActionStrategy");var ES=DS,_S=class _S extends po{generateStableId(t){return xa("DataField::"+as(t.Value))}generateDescription(t,n){let i=ya(t.Label,n);return zb(t,n,i)}};o(_S,"DataFieldStrategyDefault");var AS=_S,VS=class VS extends po{generateStableId(t){let n="DataFieldWithIntentBasedNavigation::";return n+=as(t.Value)+"::",n+=US(t),xa(n)}generateDescription(t,n){return Iu(t,n)||t.Value.path}};o(VS,"DataFieldWithIntentBasedNavigationStrategy");var PS=VS,wS=class wS extends po{generateStableId(t){let n="DataFieldWithNavigationPath::"+as(t.Value);return t.Target&&t.Target.$NavigationPropertyPath&&(n+="::"+t.Target.$NavigationPropertyPath),xa(n)}generateDescription(t,n){let i=ya(t.Label,n);return zb(t,n,i)}};o(wS,"DataFieldWithNavigationPathStrategy");var xS=wS,MS=class MS extends po{generateStableId(t){return xa("DataFieldWithUrl::"+as(t.Value))}generateDescription(t,n){let i=Iu(t,n);return ya(t.Label,n)||i||(typeof t.Value=="string"?t.Value:t.Value.path)}};o(MS,"DataFieldWithUrlStrategy");var CS=MS,kS=class kS{constructor(){this.strategies=new Map,this.registerStrategy(jo.UIAnnotationTypes.DataFieldForAction,new TS),this.registerStrategy(jo.UIAnnotationTypes.DataFieldForActionGroup,new vS),this.registerStrategy(jo.UIAnnotationTypes.DataFieldForIntentBasedNavigation,new bS),this.registerStrategy(jo.UIAnnotationTypes.DataFieldForAnnotation,new SS),this.registerStrategy(jo.UIAnnotationTypes.DataFieldWithAction,new ES),this.registerStrategy(jo.UIAnnotationTypes.DataField,new AS),this.registerStrategy(jo.UIAnnotationTypes.DataFieldWithIntentBasedNavigation,new PS),this.registerStrategy(jo.UIAnnotationTypes.DataFieldWithNavigationPath,new xS),this.registerStrategy(jo.UIAnnotationTypes.DataFieldWithUrl,new CS)}registerStrategy(t,n){this.strategies.set(t,n)}getStrategy(t){return this.strategies.get(t)}};o(kS,"DataFieldStrategyContext");var IS=kS,rs=new IS;function Fm(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/[/@()#*]/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(Fm,"replaceSpecialChars");var xa=o(function(e){return Fm(RD(e))},"prepareId");function gX(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(gX,"evaluateConcat");function as(e){if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if((e==null?void 0:e.$Function)==="odata.concat")return gX(e);if(e&&typeof e=="string")return Fm(e.replace(/ /g,"_"))}o(as,"getStableIdPartFromValue");var US=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),Wr=o(function(e){let t=rs.getStrategy(e.$Type);return t==null?void 0:t.generateStableId(e)},"getStableIdPartFromDataField");var ue=te(ce());var De=te(ce());var ir=require("@sap-ux/vocabularies-types/vocabularies/UI"),c1=require("path"),l1=te(uc());var wm="ResponsiveTableWithMultiSelect<LineItems>",Mm="ResponsiveTableWithInlineDelete<LineItems>",mX="TreeTable<LineItems>",hX="AnalyticalTable<LineItems>",yX="GridTable<LineItems>",jS=[wm,Mm,mX,hX,yX],o1=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],a1="template::",km="template:::ObjectPageAction:::";function TX(e,t,n){e.definitions[De.DefinitionName.LineItems]&&(e.definitions[De.DefinitionName.LineItems].properties.custom={$ref:`${$}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${$}${n}`},description:"Custom Columns"},e.definitions[t][De.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[De.SchemaTag.artifactType]=De.ArtifactType.Manifest)}o(TX,"addCustomColumnDefinition");function vX(e,t){let n;return e==="TableColumnActionIntentBased"?n=eS(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=ct(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===ir.UIAnnotationTypes.DataFieldForAction?n=ct(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=ct(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(vX,"getActionId");function $S(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=vX(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=ai(n.lineItemRecord,n.entityType);t.properties[l]={$ref:$+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=Ec(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[u]={...JSON.parse(JSON.stringify(e.definitions[a])),description:p,keys:[{name:"Action",value:g}],annotationPath:`${n.lineItemPath}/${r}`},m&&(e.definitions[u][De.SchemaTag.target]=m)):(e.definitions[u]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[u][De.SchemaTag.isViewNode]=!0,e.definitions[u][De.SchemaTag.keys]=[{name:De.SchemaKeyName.action,value:g}],m&&(e.definitions[u][De.SchemaTag.target]=m),e.definitions[u][De.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}o($S,"handleActionRecord");function bX(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===ir.UIAnnotationTypes.DataFieldForAction||t.$Type===ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===ir.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(bX,"getColumnActionType");function SX(e,t){let n=[];if(!(e.$Type!==ir.UIAnnotationTypes.DataFieldForAction&&e.$Type!==ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===ir.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===ir.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),bX(t,e,n),n}o(SX,"getActionType");function f1(e,t,n){let i=eS(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:$+De.DefinitionName.TableColumn,description:ai(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Bm(r.properties[i],e.lineItemRecord),Vm(e.lineItemRecord,r.properties,i)}}o(f1,"generateGenericColumn");function EX(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{$S(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&$S(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{$S(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":f1(i,t,r)}}o(EX,"handleAnyAction");function Nu(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(Nu,"retrieveNameWithoutVocabularyFromVisualization");function _l(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=Dm(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},h=SX(g,r);h?h.forEach(S=>{EX(S,t,s,m,p,l,r)}):f1(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${$}${a}`})}o(_l,"addLineItemsType");function AX(e,t,n){var r,a;let i=(a=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:a.leadingProperty;if(i){let s=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=s==null?void 0:s.reduce((l,u)=>(l.includes(u.name)||l.push(u.name),l),[])}}o(AX,"addListReportLeadingProperties");function PX(e,t,n,i){var s,l,u,p,g,m;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let a=(g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:g.variants;if(a){let h=[];for(let S in a){let b=(m=a[S])==null?void 0:m.key;b!==void 0&&!h.includes(b)&&h.push(b)}Aa(h,r)}}o(PX,"addTabkeyEnum");function Um(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(u=>{let p=u.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let g=JSON.parse((0,l1.xml2json)(u.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!g||g.Column||g["table:Column"]||g["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!g||!g.Column&&!g["table:Column"]&&!g["table:AnalyticalColumn"]&&!g["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+c1.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),Aa(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(Um,"addFragmentEnum");function Vl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){TX(e,a,s),AX(e,t,s),PX(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;Um(e,r,u,"fragmentName",s),Um(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),Um(e,r,u,"cellsFragmentName",s),Um(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(Vl,"addTableColumnExtensions");function u1(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(u1,"removeElementsFromEnum");function jm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=vr(n==null?void 0:n.fullyQualifiedName,ir.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${ct(s.value)}>`,p=Kr(s);s.type==="PropertyPath"&&(l=gm(s,n)),i.properties[s.value]={$ref:$+u},i.properties[s.value][De.SchemaTag.propertyIndex]=a,e.definitions[u]={type:"object",description:l,additionalProperties:!1},e.definitions[u][De.SchemaTag.isViewNode]=!0,e.definitions[u][De.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[u][De.SchemaTag.dataType]=p,e.definitions[u][De.SchemaTag.keys]=[{name:De.SchemaKeyName.value,value:`${s.value}`}],e.definitions[u][De.SchemaTag.annotationPath]=`${i[De.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[u].$ref=`${$}SelectionFieldDateSettings`:e.definitions[u].properties={},a++})}o(jm,"addSelectionFields");function p1(e,t){for(let n of t.entityProperties)e.push(n.name)}o(p1,"addEntityPropertiesToEnum");function $m(e){var t,n,i,r;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((r=(i=e.annotations)==null?void 0:i.Common)!=null&&r.DraftNode)}o($m,"isDraftEnabled");function d1(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.DeleteRestrictions)==null?void 0:i.Deletable)!==!1}o(d1,"isEntityDeletable");function g1(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.UpdateRestrictions)==null?void 0:i.Updatable)!==!1}o(g1,"isEntityUpdatable");function wl(e,t=!1,n){let i=De.DefinitionName.HeaderActionsStandard,r=De.DefinitionName.HeaderActionStandard;t&&(i=De.DefinitionName.ObjectPageHeaderActions,r=De.DefinitionName.ObjectPageHeaderActionStandard);let a=e.definitions[i];a[De.SchemaTag.isViewNode]=!0,a.description="Actions",Object.entries((n||a).properties).forEach(([l,u])=>{let p=u.$ref.split($)[1],g=`${r}<${p}>`;a.properties[l]={$ref:`${$}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][De.SchemaTag.actionType]=De.ActionType.Standard})}o(wl,"addStandardHeaderActions");function m1(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split($)[1],a=`${De.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${$}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][De.SchemaTag.actionType]=De.ActionType.Standard}}o(m1,"addStandardFooterActionsOP");function Ml(e){var i,r,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?Q.t("NOUIANNOTATIONS",{entityType:t.name}):Q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});ae(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(Ml,"getUIAnnotationForEntitySet");function xX(e,t,n,i){if(e===ue.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Vt.UIAnnotationTypes.DataField:case Vt.UIAnnotationTypes.DataFieldForAnnotation:case Vt.UIAnnotationTypes.DataFieldWithNavigationPath:case Vt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===ue.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Vt.UIAnnotationTypes.DataField:case Vt.UIAnnotationTypes.DataFieldForAnnotation:case Vt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(xX,"copyFieldProperties");function HS(e,t,n,i){let r=e===ue.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===ue.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(HS,"determineFieldDefinitionName");function CX(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][ue.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][ue.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][ue.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][ue.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(CX,"addKeysTagForDataField");function IX(e,t,n){if(e.$Type===Vt.UIAnnotationTypes.DataField||e.$Type===Vt.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Vt.UIAnnotationTypes.DataFieldWithNavigationPath)CX(e,t,n);else if(e.$Type===Vt.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][ue.SchemaTag.keys]=[{name:"Target",value:Ll(e.Target.value)}],t.definitions[n][ue.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Vt.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][ue.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][ue.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][ue.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Vt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][ue.SchemaTag.keys]=[{name:ue.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][ue.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][ue.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(IX,"addKeysTagToField");function OX(e){var t,n;return e.$Type===Vt.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===Vt.UIAnnotationTypes.ConnectedFieldsType}o(OX,"isConnectedField");function RX(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===Vt.UIAnnotationTypes.ConnectedFieldsType){let u=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,g=u.length;for(let m in p){let h=p[m];if(typeof h=="object"&&"$Type"in h){let S=u.findIndex(b=>b===m);S===-1&&(S=g,g++),BS(e,t,h,`ConnectedFields::${a.qualifier}`,S.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(RX,"addConnectedFields");function h1(e,t,n){if(n)return n;let i=ct(t);return e.definitions[i].properties}o(h1,"getFieldsSchemaContainer");function GS(e,t){return e===ue.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::").splice(1).join("::"):t}o(GS,"getFieldReference");function BS(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){if(!n||!n.$Type)return;let g={appSchema:t,withActions:l,sectionType:e,field:n,targetID:i,containersSchema:u,key:r,version:s,section:a,entityTypeName:p};rs.getStrategy(n.$Type).addDefinition(g)}o(BS,"addField");function LX(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}o(LX,"determineTargetIdOfForm");function NX(e,t,n,i,r,a){if(e.base===ue.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&BS(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];BS(t,n,l,i,s,e,r)}}o(NX,"addFieldsToFormDefinition");function FX(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][ue.SchemaTag.keys]=[{name:ue.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][ue.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][ue.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][ue.SchemaTag.annotationPath]=vr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(FX,"addTagsToFormDefinition");function Hm(e,t,n,i,r,a){if(!t.target)return;let s=LX(t),l=ct(`${e}${ue.DefinitionName.Form}<${s}>`),u=ct(`${e}${ue.DefinitionName.Fields}<${s}>`),p=ct(`${e}${ue.DefinitionName.Actions}<${s}>`),g=!(t.base===ue.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${$}${l}`},e===ue.SectionType.Section&&g?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${$}${p}`},fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][ue.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},FX(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][ue.SchemaTag.isViewNode]=!0,NX(t,e,i,s,r,g),s}o(Hm,"handleForm");function WS(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),a=t.references.find(s=>s.alias===r);a&&(i=e.replace(n,a.namespace))}return i}o(WS,"replaceAlias");function Gm(e,t){let n=WS(e.Action??"",t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(Gm,"getActionNameAndId");function y1(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===ue.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:y1(a.pages,t)}}o(y1,"isFirstObjectPage");function Wm(e,t,n,i,r){var g,m;e.definitions[ue.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${ue.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${$}${ue.DefinitionName.ObjectPageFooter}`},e.definitions[ue.DefinitionName.ObjectPageFooter].properties[ue.PropertyName.actions]={$ref:`${$}${ue.DefinitionName.FooterActions}`};let a=e.definitions[ue.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[ue.SchemaTag.isViewNode]=!0;let s=ii(ue.UIVOCABULARY,t.serviceAVT),l=t.entitySet,u=t.entityType,p=s&&((m=(g=u==null?void 0:u.annotations)==null?void 0:g[s])==null?void 0:m.Identification);if(p){let h=p.fullyQualifiedName.replace(`@${Vt.UIAnnotationTerms.Identification}`,`/@${Vt.UIAnnotationTerms.Identification}`);a[ue.SchemaTag.annotationPath]=`/${h}`,i(u,e,a,p)}else u&&(a[ue.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${Vt.UIAnnotationTerms.Identification}`);n===ue.FioriElementsVersion.v2&&y1(r,t)&&!$m(l)&&m1(e,a),delete e.definitions[ue.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${ue.DefinitionName.ObjectPageFooter}<${ue.DefinitionName.ObjectPageFooterActions}>`]}o(Wm,"addFooterActions");function Km(e,t,n,i,r,a=!1){var m,h;let s=ue.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[ue.DefinitionName.ObjectPageHeader].properties[ue.PropertyName.actions]={$ref:`${$}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[ue.SchemaTag.isViewNode]=!0;let p=ii(ue.UIVOCABULARY,n.serviceAVT),g=p&&((h=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:h.Identification);g?u[ue.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${Vt.UIAnnotationTerms.Identification}`,`/@${Vt.UIAnnotationTerms.Identification}`):t&&(u[ue.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Vt.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&wl(e,!0,l)}o(Km,"addHeaderActions");function Xm(e,t){e.properties.header={$ref:`${$}${ue.DefinitionName.ObjectPageHeader}`},e.definitions[ue.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${ue.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[ue.DefinitionName.ObjectPageHeader][ue.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Vt.UIAnnotationTerms.HeaderInfo}`)}o(Xm,"addCommonHeaderSchema");function T1(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(T1,"determineEntitySetOfEntityType");function r1(e){let{appSchema:t,section:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:u}=e,p=Wr(r),g=GS(u,p),m=HS(u,p,a,g),h=h1(t,`${i}${ue.DefinitionName.Fields}<${a}>`,s.fields),S={};h[g]={$ref:`${$}${m}`,propertyIndex:parseInt(l)},OX(r)&&(S=RX(i,t,r,n,u)),v1(e,m,S)}o(r1,"addDataFieldDefinition");function Lu(e){let{appSchema:t,withActions:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:u}=e,p=Wr(r),g=GS(u,p),m=HS(u,p,a,g),h={};if(n&&i===ue.SectionType.Section){let S=h1(t,`${i}${ue.DefinitionName.Actions}<${a}>`,s.actions),b=S[g]={$ref:`${$}${m}`};b[ue.SchemaTag.propertyIndex]=parseInt(l)}DX(e,m,h),v1(e,m,h)}o(Lu,"addDataFieldForActionAndActionGroupDefinition");function DX(e,t,n){let{appSchema:i,field:r,version:a}=e;r.$Type===Vt.UIAnnotationTypes.DataFieldForActionGroup&&(r.Actions??[]).forEach(s=>{let l={...e,field:s,targetID:t,withActions:!1},u=Wr(s),p=GS(a,u),g=HS(a,u,t,p);Lu(l),n[p]=i.definitions[g]})}o(DX,"addGroupedActionsToDefinition");function v1(e,t,n={}){var u,p;let{appSchema:i,field:r,version:a,section:s,entityTypeName:l}=e;i.definitions[t]={type:"object",properties:n,description:ai(r,s.entityType),additionalProperties:!1},r.$Type===Vt.UIAnnotationTypes.DataFieldForActionGroup&&Pa(i.definitions[t],Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),IX(r,i,t),i.definitions[t][ue.SchemaTag.annotationPath]=`/${l}/${r.fullyQualifiedName.split(l)[1]}`,i.definitions[t][ue.SchemaTag.annotationType]=r.$Type,i.definitions[t][ue.SchemaTag.isViewNode]=!0,Bm(i.definitions[t],r),xX(a,i,r,t),r.$Type===Vt.UIAnnotationTypes.DataFieldForAction&&((u=i.definitions)!=null&&u[ue.DefinitionName.FormAction])&&(i.definitions[t].$ref=`${$}${ue.DefinitionName.FormAction}`,delete i.definitions[t].properties),r.$Type===Vt.UIAnnotationTypes.DataFieldForActionGroup&&((p=i.definitions)!=null&&p[ue.DefinitionName.ObjectPageFormActionGroup])&&(i.definitions[t].$ref=`${$}${ue.DefinitionName.ObjectPageFormActionGroup}`)}o(v1,"writeDefinitionToSchema");var Sr=require("@sap-ux/vocabularies-types/vocabularies/UI");var Ke=te(ce());function Aa(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(Aa,"addEnumToSchema");function Fu(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let r=[];for(let s in i){let l=i[s];if(t.indexOf(l.term)>-1){let u=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(u)===-1&&r.push(u)}}Aa(r,n)}o(Fu,"addEnumForValidAnnotations");function ss(e,t,n){let i=t.definitions[n].properties[Ke.SchemaTag.annotationPath],r=[Sr.UIAnnotationTerms.SelectionVariant,Sr.UIAnnotationTerms.SelectionPresentationVariant];Fu(e,r,i)}o(ss,"addEnumForSingleTabVariant");function b1(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[Sr.UIAnnotationTerms.SelectionVariant,Sr.UIAnnotationTerms.SelectionPresentationVariant];Fu(n.entityType,r,i)}o(b1,"addEnumForMultiTabVariant");function S1(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),Aa(r,i)}o(S1,"addEnumForVariantEntitySet");function E1(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Sr.UIAnnotationTerms.FieldGroup];Fu(e,r,i)}o(E1,"addEnumFieldGroupAnnotationPath");function A1(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],u=a.label||a.title;return{const:l,...u&&{description:u},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[Ke.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${$}${Ke.DefinitionName.RelatedFacetKeys}`},l]}}}}o(A1,"addDefinitionForRelatedFacetKeys");function Ac(e){return e.replace("#","::")}o(Ac,"getFacetKeyInSchema");function Du(e,t){return`${e}<${Ac(t)}>`}o(Du,"getFacetDefinitionKey");function vt(e,t,n,i=!0){let r=t;if(i&&(r=Du(e,t)),e&&e!==r)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[r]=a}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[r]}o(vt,"parseSchemaDefinition");function Qm(e,t,n){let i;return t===Ke.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${Sr.UIAnnotationTerms.LineItem}`?i=`${$}${n}`:(i=`${$}${n}<${t}>`,vt(n,t,e,!0)),i}o(Qm,"getCustomExtensionDefinitionName");function Dm(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][Ke.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let O=Qm(t,r,a);t.definitions[r].additionalProperties={$ref:O}}let u=e?Ke.DefinitionName.ObjectPageToolBar:Ke.DefinitionName.ToolBar,p=`${u}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${u}`]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let g=`${Ke.DefinitionName.Actions}<${ct(r)}>`;t.definitions[p].properties.actions.$ref=$+g;let m=r.startsWith(Ke.DefinitionName.LineItems)?Ke.DefinitionName.Actions:Ke.DefinitionName.ObjectPageToolBarActions,h;try{if(h=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),h.properties={},h.additionalProperties=!1,s){let O=Qm(t,r,s);h.additionalProperties={$ref:O}}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let S,b;if(r===Ke.DefinitionName.LineItems&&t.properties.footer){b=`${Ke.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${$}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[Ke.DefinitionName.GenericFooter]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Ke.DefinitionName.GenericFooter}))}let O=`${Ke.DefinitionName.FooterActions}<${ct(r)}>`;t.definitions[b].properties.actions.$ref=$+O,S=t.definitions[O]=JSON.parse(JSON.stringify(t.definitions[Ke.DefinitionName.Actions])),S.properties={},S.additionalProperties=!1}return n&&(l=vr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][Ke.SchemaTag.annotationPath]=l,S&&(t.definitions[b][Ke.SchemaTag.annotationPath]=l))),{actions:h,footerActions:S,lineItemPath:l}}o(Dm,"addCommonLineItemDefinitions");function P1(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(P1,"getDataTypeFromAnnotation");function Pc(e){var n,i,r;let t;return e!=null&&e.Value?e.Visualization==="UI.VisualizationType/Rating"?t="Rating":e.Visualization==="UI.VisualizationType/Progress"?t="Progress":e.$Type==="com.sap.vocabularies.UI.v1.DataPointType"?t="DataPoint":t=(i=(n=e.Value)==null?void 0:n.$target)==null?void 0:i.type.replace("Edm.",""):(r=e==null?void 0:e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")&&(t=P1(e.$Type)),t}o(Pc,"determineDataTypeOfTarget");function Kr(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=Pc((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(r=e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")?t=P1(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(Kr,"determineDataType");function Bm(e,t){let n=Kr(t);n&&(e[Ke.SchemaTag.dataType]=n)}o(Bm,"addDataTypeToDefinition");function oi(e,t){return`${$}${Du(e,t)}`}o(oi,"getFacetDefinitionLink");function i1(e,t,n,i){let r=0,a=!1,s="";do{let l=`${t}${r===0?"":"."+r}`;s=oi(e,l),r++;let u=n.definitions[Du(e,l)],p=((u==null?void 0:u.annotationPath)??"").split("/").slice(0,-1).join("/");a=!u||p===i}while(!a);return s}o(i1,"getUniqueFacetDefinitionLink");function cs(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${$}${i}`}o(cs,"addDefinitionRef");function qm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${Ke.UIVOCABULARY}`);t=`/${n}/@${Ke.UIVOCABULARY}${i}`}return t}o(qm,"getFacetAnnotationPath");function _u(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:oi(a?u:l,t)};let p=vt(a?u:l,t,i,!0);Ta(e,p,t),ns(e,p,t),p[Ke.SchemaTag.annotationPath]=e.annotationPath,p[Ke.SchemaTag.isViewNode]=!0}o(_u,"handleAddressContact");function KS(e,t,n){typeof e=="object"&&(e[t]=n)}o(KS,"updateSchemaProperty");function kl(e,t,n=ct("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${Ke.DefinitionName.Fields4Dialog}${n}`];KS(r.properties.fields.items,"enum",i)}o(kl,"addFieldsType");function _X(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(_X,"findFirstSchemaDefinitionKey");function _m(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let g=on(t.$ref),m=(p=e.definitions)==null?void 0:p[g];typeof m=="object"&&(s=!m.annotationPath,i!=null&&i.resolveDefinition&&!r&&(r=m.description,a=m.keys))}let l=n,u=_X(a,i==null?void 0:i.keyProperties);return u?l=u.value:i!=null&&i.descriptionAsFallback&&r&&(l=r),{const:l,...r&&{description:r},...s&&{custom:s}}}o(_m,"getEnumEntry");function os(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let u=t.properties[l],p=_m(e,u,l,i);r.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];KS(l,"oneOf",r)}else KS(a,"oneOf",r)}o(os,"addDescriptiveEnumDefinition");function Ec(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),a=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,a),n=r>0?n.substring(r+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}o(Ec,"getActionKey");function Vm(e,t,n){var i,r,a;try{if(e.Value)t[n][Ke.SchemaTag.keys]=[{name:Ke.SchemaKeyName.value,value:as(e.Value)}];else if(e.$Type===Sr.UIAnnotationTypes.DataFieldWithAction||e.$Type===Sr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=Ec(e.Action,!0);t[n][Ke.SchemaTag.keys]=[{name:Ke.SchemaKeyName.action,value:s}],l&&(t[n][Ke.SchemaTag.target]=l)}else if(e.$Type===Sr.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=Ec(e.Target.value,!1);t[n][Ke.SchemaTag.keys]=[{name:Ke.SchemaKeyName.target,value:Ll(s)}],t[n][Ke.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===Sr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Sr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=Ec(s,!0);t[n][Ke.SchemaTag.keys]=[{name:"SemanticObject",value:e[Ke.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][Ke.SchemaTag.target]=u)}}catch{return}}o(Vm,"addKeyToDefinition");function ai(e,t){try{return rs.getStrategy(e.$Type).generateDescription(e,t)}catch{return""}}o(ai,"getDataFieldDescription");function Pa(e,t){e[Ke.SchemaTag.messages]||(e[Ke.SchemaTag.messages]=[]),Array.isArray(e[Ke.SchemaTag.messages])&&e[Ke.SchemaTag.messages].push({text:t})}o(Pa,"addMessageToSchema");var Ul=te(ce());var x1=[{version:"1.136",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.136","UI5-1.137","UI5-1.138","UI5-1.139","UI5-1.140"]},{version:"1.124",distTag:["UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130","UI5-1.131","UI5-1.132","UI5-1.133","UI5-1.134","UI5-1.135"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107","UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var I1="1.124.20";var O1={name:"@sap/ux-specification",version:I1,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/schema/index.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.35.5","@sap-ux/vocabularies-types":"0.13.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.3","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.124.20","@sapui5/types":"latest-1.124","@types/d3":"7.4.3","@types/jquery":"3.5.31","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.10.0",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.8",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.7.2","typescript-json-schema":"0.57.0","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var ls=class ls{constructor(){ls.distTagsOfSpec.length===0&&(ls.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){ls.distTagsOfSpec=[]}getSpecVersion(){return I1}getDistTagsOfVersion(){let t=[],n=x1,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let r=n.find(a=>a.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;let i=[];typeof t=="string"?i.push(t):Array.isArray(t)&&(i=t);let r=!1;if(i.forEach(a=>{if(!this.checkVersionName(a,n))return;let s=a==="latest"?"latest":a.substring(0,a.lastIndexOf("."));ls.distTagsOfSpec.findIndex(l=>l.endsWith(s))>-1&&(r=!0)}),!r){let a=Q.t("WRONGMINUI5VERSION",{minUI5Version:t});ae(n,{severity:Ul.LogSeverity.Warning,message:a,location:{path:Ul.MANIFESTPATH}})}}checkVersionName(t,n){if(!t||t.startsWith("$")){let i=Q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});return ae(n,{severity:Ul.LogSeverity.Info,message:i,location:{path:Ul.MANIFESTPATH}}),!1}else return!0}};o(ls,"DistTagEvaluator"),ls.distTagsOfSpec=[];var Vu=ls;var pe=te(ce());var Vn=te(ce());var Pi=te(ce());function R1(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(R1,"getCustomPageFullName");function MX(e){let n=R1(e).split(".");return n[n.length-1]}o(MX,"getCustomPageName");function L1(e,t){var i,r;return((i=e==null?void 0:e.view)==null?void 0:i.viewType)||((r=t.settings)==null?void 0:r.viewType)||Pi.ViewTypes.XML}o(L1,"getViewType");function kX(e,t){return L1(e,t).toLowerCase()}o(kX,"getViewTypeExtension");function UX(e,t,n){var p;let i=o(g=>{var m;return(m=g.split(`${t.id}.`)[1])==null?void 0:m.split(".")},"splitViewPath"),r=t.settings,a=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=R1(e);s.includes(t.id)?n=i(s):a!=null&&a.includes(t.id)&&(n=[...i(a),...s.split(".")]);let[l,u]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:u}}o(UX,"getViewPath");function jX(e,t){let n=e.entitySet||MX(e),{viewPath:i,fileName:r}=UX(e,t,[n]),a=kX(e,t);return[...i,`${r}.view.${a}`].join("/")}o(jX,"getCustomPagePath");var XS=class XS{constructor(t,n,i,r){this.unhandledControllers=[];let a=_t(Pi.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...r&&{settings:r}},t.fioriElementsVersion?this.app.target={fioriElements:t.fioriElementsVersion,odata:t.oDataVersion}:t.oDataVersion&&(this.app.target.odata=t.oDataVersion),this.schemas=t.appSchemas,this.logger=t.logger}createConfigFiles(){var a;let t={},n={},i;for(let s in this.app.pages){i=this.app.pages[s];let l=((a=this.app.target)==null?void 0:a.odata)===Pi.OdataVersion.v4?s:i.entitySet,u=this.getPageConfigFile(i,l);u&&(t[`${Pi.DirName.Pages}/${s}.json`]=u)}let r=JSON.parse(JSON.stringify(this.app));for(let s in r.pages)delete r.pages[s].config;return n[Pi.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=L1(t,this.app)===Pi.ViewTypes.XML&&!!t.config;if(t.pageType===Pi.PageTypeV4.CustomPage||t.pageType===Pi.PageTypeV4.FPMCustomPage&&!r){let{path:s}=_t(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(a=t.view)==null?void 0:a.id:void 0,l=_t(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=_t(t.pageType);i.$schema=u.path}}return(i&&t.pageType===Pi.PageTypeV4.CustomPage||t.pageType===Pi.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=jX(t,this.app);n.$filePath=i}};o(XS,"AppProvider");var fs=XS;var lt=te(ce());var jl=te(ce());var Bn=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),N1=o((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2"),F1=o((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function QS(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(QS,"getNewPageTemplate");function $X(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o($X,"findPageInManifest");function BX(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=QS(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:QS(e[t].pageType)}),!Array.isArray(n.pages))){let i=$X(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=QS(e[t].pageType)),qS(t,e,i)}}o(BX,"transformPageFromAssociation");function HX(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let r=e.pages[i];if(((a=r.component)==null?void 0:a.name)===jl.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===jl.PageTypeV2.ListReport||n.pageType===jl.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(HX,"deletePage");function qS(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===jl.PageTypeV2.ListReport&&(n.component.list=!0),i.navigationProperty&&(n.navigationProperty=i.navigationProperty),i.defaultLayoutType?n.defaultLayoutType=i.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,i.navigation)){for(let r in i.navigation)BX(t,r,n);Array.isArray(n.pages)||HX(n,t,i)}}o(qS,"transformPageToNewManifestV2");var y_=te(uc());var kA={};lc(kA,{ALPAnalyticalTable:()=>ME,ALPGridTable:()=>wE,ALPResponsiveTable:()=>VE,Action:()=>$E,AnalyticalCard:()=>Wl,AnalyticalCardSettings:()=>Zm,AnalyticalCardSettingsv4:()=>tE,AnalyticalListPageFilterBar:()=>fE,AnalyticalTable:()=>_E,BaseCustomSection:()=>dp,ChartSettings:()=>oA,ChartSettingsType:()=>zS,CommonCardSettings:()=>ms,CommonFilterBar:()=>Xu,CommonHeaderFacetSettings:()=>Dc,CommonTableSettings:()=>vs,CommonTableSettingsForSections:()=>kc,CreateWithFilters:()=>IE,CustomCard:()=>ZS,DataLoadSettings:()=>RE,DateRange:()=>aE,DefaultDateRange:()=>sE,DefaultSpanObject:()=>JS,FRAGMENT_DEFINITION:()=>Bo,Field:()=>oE,FieldForAction:()=>mE,Fields4Dialog:()=>LE,Fields4DialogOP:()=>FA,FooterAction:()=>HE,FormAction:()=>gE,GlobalChartSettings:()=>LA,GlobalTableSettings:()=>wA,GridTable:()=>kE,HeaderActionStandard:()=>QE,HeaderSections:()=>dA,KPISettings:()=>aA,LinkListCardSettings:()=>iE,LinklistCard:()=>Gu,ListCard:()=>Gl,ListCardSettings:()=>eE,ListReportFilterBar:()=>uE,MultiEdit:()=>OE,ObjectPageAnalyticalTable:()=>DA,ObjectPageChart:()=>RA,ObjectPageCustomSectionFragment:()=>gp,ObjectPageCustomSectionView:()=>mp,ObjectPageFooterAction:()=>mA,ObjectPageFooterActionStandard:()=>YE,ObjectPageGridTable:()=>_A,ObjectPageHeader:()=>sA,ObjectPageHeaderAction:()=>cA,ObjectPageHeaderActionStandard:()=>qE,ObjectPageHeaderSectionAddress:()=>pA,ObjectPageHeaderSectionChart:()=>fA,ObjectPageHeaderSectionDataPoint:()=>uA,ObjectPageHeaderSectionForm:()=>lA,ObjectPageLayout:()=>yA,ObjectPageResponsiveTable:()=>Uc,ObjectPageSectionAddressV2:()=>EA,ObjectPageSectionChartV2:()=>bA,ObjectPageSectionContactV2:()=>AA,ObjectPageSectionFormV2:()=>vA,ObjectPageSectionTableV2:()=>SA,ObjectPageSectionV2:()=>TA,ObjectPageSubSectionChartV2:()=>CA,ObjectPageSubSectionContactV2:()=>IA,ObjectPageSubSectionFormV2:()=>xA,ObjectPageSubSectionTableV2:()=>OA,ObjectPageSubSectionV2:()=>PA,ObjectPageToolBarAction:()=>MA,ObjectPageTreeTable:()=>VA,QuickVariantSelection:()=>NE,QuickVariantSelectionOP:()=>NA,QuickVariantSelectionX:()=>FE,ResponsiveTable:()=>Oc,SAP_UI_TABLE:()=>ah,SaveAndEditOP:()=>XE,SelectionFieldDateSettings:()=>cE,SelectionFields:()=>lE,Share:()=>GE,ShareOP:()=>WE,StackCard:()=>Hu,StackCardSettings:()=>nE,TableALP:()=>Yl,TableCard:()=>Kl,TableCardSettings:()=>rE,TableColumn:()=>ZE,TableColumnAction:()=>Ih,TableColumnActionIntentBased:()=>eA,TableCustomColumn:()=>tA,ToolBar:()=>iA,ToolBarAction:()=>BE,TreeTable:()=>DE,UpAndDownNavigationOP:()=>KE,buildIntentBasedActionId:()=>zE,deleteColumnFromFragment:()=>lh,deleteType:()=>Jl,exportColorPalette:()=>w1,exportCreateParametersFields:()=>yh,exportCustomColumnsToFragment:()=>xE,exportDateSettingsField:()=>j1,exportDefaultSpan:()=>M1,exportType:()=>zl,getChartSectionControlId:()=>p_,getContactSubSectionControlId:()=>g_,getCustomColumnPath:()=>fh,getFormSectionControlId:()=>u_,getRootCustomColumnFromFragmentJSON:()=>Yu,getSectionControlId:()=>wc,getSmartChartControlId:()=>op,getSmartTableControlId:()=>Ic,getSubSectionControlId:()=>d_,getTableSectionControlId:()=>f_,importCreateParameters:()=>hh,importDateSettings:()=>pE});var zn=te(ce());var Ue=o(e=>`${zn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),Qr=o(e=>Ue(e)+"/tableSettings","getTableSettingPathV2"),D1=o(e=>Ue(e)+"/chartSettings","getChartSettingPathV2"),_1=o(e=>Ue(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var Sn=o(()=>zn.ManifestSection.ovp,"getOVPsettingPath"),Ce=o(e=>{let t=[zn.ManifestSection.ovp];return e.forEach(n=>{n in zn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var xc=o((e,t)=>`${zn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Jm=o(e=>{let t=[zn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),_i=o(e=>{let t=[];return t.push(Jm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),ps=o(e=>_i(e)+"/tableSettings","getGlobalTableSettingsPathV2"),go=o((e,t,n)=>{let i=[];i.push(Jm(e));let r=n.replace(zn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),Er=o((e,t,n)=>go(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),V1=o((e,t,n)=>go(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),YS=o(()=>`sap.ui5/extends/extensions/${zn.v2.SAPUI5_VIEW_EXTENSION}/${zn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),Ca=o((e,t,n,...i)=>{let r="|",a=n.split(r),s=e[e.length-1].split(r),l="";a.length===4?l=[a[2],a[3]].join(r):a.length===3&&(l=a[2]);let u=[a[0],s[s.length-1],l].join(r);return i.unshift(u),`${YS()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),zm=class zm{};o(zm,"ApplicationV2"),y([$t("settings")],zm.prototype,"settings",2);var Ym=zm,Xr=class Xr{};o(Xr,"AppSettings"),y([T({manifest:{path:o(()=>"sap.app","path")}})],Xr.prototype,"title",2),y([T({manifest:{path:o(()=>"sap.app","path")}})],Xr.prototype,"description",2),y([T({manifest:{path:o(()=>"sap.fiori","path")}})],Xr.prototype,"cloudDevAdaptationStatus",2),y([T({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.50.0"})],Xr.prototype,"flexibleColumnLayout",2),y([T({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.46.0"})],Xr.prototype,"forceGlobalRefresh",2),y([T({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.74.0"})],Xr.prototype,"tableColumnVerticalAlignment",2),y([T({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Xr.prototype,"flexEnabled",2),y([T({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Xr.prototype,"draftDiscardConfirmationSettings",2),y([T({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Xr.prototype,"statePreservationMode",2);var us=Xr;var wu=te(ce());function GX(e){let t=e.colorPalette,n;if(Array.isArray(t))throw new Error("The array syntax for colorPalette is deprecated and not supported");return t[0]&&typeof t[0]=="object"?(n=t,n.colorPaletteType=wu.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=wu.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:wu.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(GX,"importColorPalette");function w1(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===wu.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(w1,"exportColorPalette");function M1(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(M1,"exportDefaultSpan");var eh=class eh{};o(eh,"ChartSettingsType"),y([T({manifest:{path:o(()=>Sn()+"/chartSettings","path")}})],eh.prototype,"showDataLabel",2);var zS=eh,ds=class ds{};o(ds,"DefaultSpanObject"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],ds.prototype,"cols",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],ds.prototype,"rows",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],ds.prototype,"showOnlyHeader",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],ds.prototype,"minimumTitleRow",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],ds.prototype,"minimumSubTitleRow",2);var JS=ds,Qt=class Qt{};o(Qt,"CommonCardSettings"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"entitySet",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"title",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"subTitle",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"annotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"dataPointAnnotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"selectionPresentationAnnotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"kpiAnnotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"category",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"dynamicSubtitleAnnotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"valueSelectionInfo",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"showFilterInHeader",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"sortBy",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"sortOrder",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"identificationAnnotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"selectionAnnotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"presentationAnnotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"enableLocaleCurrencyFormatting",2),y([T({manifest:{path:o(t=>Ce(t),"path"),export:M1}})],Qt.prototype,"defaultSpan",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"requireAppAuthorization",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"showSortingInHeader",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"tabs",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"addODataSelect",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"showRefresh",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"customParams",2);var ms=Qt,$l=class $l{};o($l,"CustomCard"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],$l.prototype,"model",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],$l.prototype,"template",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],$l.prototype,"settings",2);var ZS=$l,gs=class gs extends ms{};o(gs,"ListCardSettings"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],gs.prototype,"showLineItemDetail",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],gs.prototype,"imageSupported",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],gs.prototype,"enableAddToInsights",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],gs.prototype,"listFlavor",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],gs.prototype,"listType",2);var eE=gs,Mu=class Mu{};o(Mu,"ListCard"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Mu.prototype,"model",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Mu.prototype,"template",2);var Gl=Mu,mo=class mo extends ms{};o(mo,"AnalyticalCardSettings"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],mo.prototype,"chartAnnotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],mo.prototype,"ignoreSapText",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],mo.prototype,"enableAddToInsights",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],mo.prototype,"navigation",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],mo.prototype,"valueSelectionInfo",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],mo.prototype,"chartProperties",2),y([T({manifest:{path:o(t=>Ce(t),"path"),import:GX,export:w1}})],mo.prototype,"colorPalette",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],mo.prototype,"bEnableStableColors",2);var Zm=mo,th=class th extends Zm{};o(th,"AnalyticalCardSettingsv4"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],th.prototype,"measureAggregate",2);var tE=th,ku=class ku{};o(ku,"AnalyticalCard"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],ku.prototype,"model",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],ku.prototype,"template",2);var Wl=ku,Bl=class Bl extends ms{};o(Bl,"StackCardSettings"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Bl.prototype,"itemText",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Bl.prototype,"objectStreamCardsNavigationProperty",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Bl.prototype,"objectStreamCardsSettings",2);var nE=Bl,Uu=class Uu{};o(Uu,"StackCard"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Uu.prototype,"model",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Uu.prototype,"template",2);var Hu=Uu,Hl=class Hl extends ms{};o(Hl,"LinkListCardSettings"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Hl.prototype,"listFlavor",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Hl.prototype,"headerAnnotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Hl.prototype,"staticContent",2);var iE=Hl,ju=class ju{};o(ju,"LinklistCard"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],ju.prototype,"model",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],ju.prototype,"template",2);var Gu=ju,$u=class $u extends ms{};o($u,"TableCardSettings"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],$u.prototype,"showLineItemDetail",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],$u.prototype,"enableAddToInsights",2);var rE=$u,Bu=class Bu{};o(Bu,"TableCard"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Bu.prototype,"model",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Bu.prototype,"template",2);var Kl=Bu;var k1=te(ce());var WX=o((e,t,n,i,r)=>{let a=qn(n[1],r),s=n.slice(-1)[0];return Jt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),nh=class nh{};o(nh,"Field"),y([T({flex:{controlId:WX,controlType:o(()=>k1.ControlType.GroupElement,"controlType")},generate:mt})],nh.prototype,"visible",2);var oE=nh;var Cc=te(ce());function pE(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),delete t.fields,t}o(pE,"importDateSettings");function KX(e,t,n){let i=e!=null&&e[n]?JSON.parse(JSON.stringify(e==null?void 0:e[n])):void 0,r;return n==="selectedValues"&&typeof i=="string"&&(r=i.split(",")),n==="filter"&&typeof i=="object"&&(r=[],i.forEach((a,s)=>{r[s]=a,a.equals&&typeof a.equals=="string"&&(r[s].equals=a.equals.split(","))})),r}o(KX,"importDateSettingsField");function j1(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];if(n==="selectedValues"&&(e[n]=i.join()),n==="filter")for(let r in i){let a=i[r];e[n][r]=a,a.equals&&Array.isArray(a.equals)&&(e[n][r].equals=a.equals.join())}}o(j1,"exportDateSettingsField");var Xl=class Xl{};o(Xl,"DateRange"),y([T({manifest:{path:o(t=>Ue(t)+Cc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Xl.prototype,"useDateRange",2),y([T({manifest:{path:o(t=>Ue(t)+Cc.DATESETTINGSPATH,"path"),import:pE,export:vm}}),x({since:"1.77.0"})],Xl.prototype,"selectedValues",2),y([T({manifest:{path:o(t=>Ue(t)+Cc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Xl.prototype,"exclude",2);var aE=Xl,ih={controlId:Jt,controlType:o(()=>Cc.ControlType.SmartFilterBar,"controlType")},Wu={path:o((e,t,n)=>`${Ue(e)}${Cc.DATESETTINGSPATH}/fields/${n}`,"path")},U1={...Wu,import:KX,export:j1},rh=class rh{};o(rh,"DefaultDateRange"),y([T({manifest:Wu}),x({since:"1.90.0"})],rh.prototype,"operation",2);var sE=rh,hs=class hs{};o(hs,"SelectionFieldDateSettings"),y([T({manifest:U1}),x({since:"1.77.0"})],hs.prototype,"selectedValues",2),y([T({manifest:Wu}),x({since:"1.77.0"})],hs.prototype,"exclude",2),y([T({manifest:Wu}),x({since:"1.77.0"})],hs.prototype,"customDateRangeImplementation",2),y([T({manifest:U1}),x({since:"1.77.0"})],hs.prototype,"filter",2),y([T({manifest:Wu}),x({since:"1.90.0"})],hs.prototype,"defaultValue",2);var cE=hs,dE=class dE{};o(dE,"SelectionFields");var lE=dE,ho=class ho{};o(ho,"CommonFilterBar"),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.38.0"})],ho.prototype,"smartVariantManagement",2),y([T({flex:ih}),x({since:"1.40.0"})],ho.prototype,"liveMode",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.48.0"})],ho.prototype,"variantManagementHidden",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.52.0"})],ho.prototype,"subTitleIfVariantMgmtHidden",2),y([T({manifest:{path:o(t=>Ue(t)+"/filterSettings","path"),import:pE}}),x({since:"1.77.0"})],ho.prototype,"dateSettings",2),y([T({flex:ih}),x({since:"1.28.0"})],ho.prototype,"showClearOnFB",2),y([T({flex:ih}),x({since:"1.38.0"})],ho.prototype,"showFilterConfiguration",2),y([T({flex:ih}),x({since:"1.28.0"})],ho.prototype,"showRestoreOnFB",2);var Xu=ho,Ku=class Ku extends Xu{};o(Ku,"AnalyticalListPageFilterBar"),y([T({manifest:{path:o(t=>Ue(t),"path")}})],Ku.prototype,"showGoButtonOnFilterBar",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.60.0"})],Ku.prototype,"filterDefaultsFromSelectionVariant",2);var fE=Ku,oh=class oh extends Xu{};o(oh,"ListReportFilterBar"),y([T({manifest:{path:o(t=>Ue(t),"path")}}),fe("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),x({since:"1.86.0"})],oh.prototype,"annotationPath",2);var uE=oh;var hE=te(ce());var XX=o((e,t,n,i,r)=>{if(i()===hE.ControlType.Button){let a=n[n.length-1],s=qn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return Jt(e,t)},"getFormActionButtonId"),$o={controlId:XX,controlType:o(()=>hE.ControlType.Button,"controlType")},ys=class ys{};o(ys,"FormAction"),y([T({flex:$o,generate:mt})],ys.prototype,"visible",2),y([T({flex:$o})],ys.prototype,"tooltip",2),y([T({flex:$o})],ys.prototype,"icon",2),y([T({flex:$o})],ys.prototype,"activeIcon",2),y([T({flex:$o})],ys.prototype,"type",2);var gE=ys,Ts=class Ts{};o(Ts,"FieldForAction"),y([T({flex:$o,generate:mt})],Ts.prototype,"visible",2),y([T({flex:$o})],Ts.prototype,"tooltip",2),y([T({flex:$o})],Ts.prototype,"icon",2),y([T({flex:$o})],Ts.prototype,"activeIcon",2),y([T({flex:$o}),x({since:"1.73.0"})],Ts.prototype,"type",2);var mE=Ts;var St=te(ce()),yo=te(uc());var bE=require("path"),u3=te(ce()),Z1=te(J1()),e_=require("fs");var p3=(0,bE.join)(__dirname,"templates");var d3=o((e,t)=>{let n=(0,e_.readFileSync)(e,"utf8");return(0,Z1.render)(n,t)},"renderTemplate");var SE=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return d3((0,bE.join)(p3,t+".xml"),n)},"getSingleColumnContent"),EE=o((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let i of e){let r=SE(i,t);n=n+`
|
|
288
|
+
}`;var Ze=lL(function(){return At(C,Re+"return "+ne).apply(e,L)});if(Ze.source=ne,Yv(Ze))throw Ze;return Ze}o(tG,"template");function nG(c){return It(c).toLowerCase()}o(nG,"toLower");function iG(c){return It(c).toUpperCase()}o(iG,"toUpper");function rG(c,f,d){if(c=It(c),c&&(d||f===e))return TO(c);if(!c||!(f=gr(f)))return c;var v=ao(c),A=ao(f),C=vO(v,A),L=bO(v,A)+1;return Za(v,C,L).join("")}o(rG,"trim");function oG(c,f,d){if(c=It(c),c&&(d||f===e))return c.slice(0,AO(c)+1);if(!c||!(f=gr(f)))return c;var v=ao(c),A=bO(v,ao(f))+1;return Za(v,0,A).join("")}o(oG,"trimEnd");function aG(c,f,d){if(c=It(c),c&&(d||f===e))return c.replace(YT,"");if(!c||!(f=gr(f)))return c;var v=ao(c),A=vO(v,ao(f));return Za(v,A).join("")}o(aG,"trimStart");function sG(c,f){var d=D,v=pt;if(yn(f)){var A="separator"in f?f.separator:A;d="length"in f?Je(f.length):d,v="omission"in f?gr(f.omission):v}c=It(c);var C=c.length;if(cl(c)){var L=ao(c);C=L.length}if(d>=C)return c;var F=d-ll(v);if(F<1)return v;var k=L?Za(L,0,F).join(""):c.slice(0,F);if(A===e)return k+v;if(L&&(F+=k.length-F),zv(A)){if(c.slice(F).search(A)){var z,J=k;for(A.global||(A=dv(A.source,It(jI.exec(A))+"g")),A.lastIndex=0;z=A.exec(J);)var ne=z.index;k=k.slice(0,ne===e?F:ne)}}else if(c.indexOf(gr(A),F)!=F){var me=k.lastIndexOf(A);me>-1&&(k=k.slice(0,me))}return k+v}o(sG,"truncate");function cG(c){return c=It(c),c&&xe.test(c)?c.replace(he,wU):c}o(cG,"unescape");var lG=ml(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),eb=fR("toUpperCase");function cL(c,f,d){return c=It(c),f=d?e:f,f===e?NU(c)?UU(c):AU(c):c.match(f)||[]}o(cL,"words");var lL=tt(function(c,f){try{return pr(c,e,f)}catch(d){return Yv(d)?d:new We(d)}}),fG=sa(function(c,f){return wr(f,function(d){d=No(d),oa(c,d,Qv(c[d],c))}),c});function uG(c){var f=c==null?0:c.length,d=Ve();return c=f?pn(c,function(v){if(typeof v[1]!="function")throw new Mr(r);return[d(v[0]),v[1]]}):[],tt(function(v){for(var A=-1;++A<f;){var C=c[A];if(pr(C[0],this,v))return pr(C[1],this,v)}})}o(uG,"cond");function pG(c){return wj(Ur(c,p))}o(pG,"conforms");function tb(c){return function(){return c}}o(tb,"constant");function dG(c,f){return c==null||c!==c?f:c}o(dG,"defaultTo");var gG=pR(),mG=pR(!0);function Yi(c){return c}o(Yi,"identity");function nb(c){return BO(typeof c=="function"?c:Ur(c,p))}o(nb,"iteratee");function hG(c){return GO(Ur(c,p))}o(hG,"matches");function yG(c,f){return WO(c,Ur(f,p))}o(yG,"matchesProperty");var TG=tt(function(c,f){return function(d){return uu(d,c,f)}}),vG=tt(function(c,f){return function(d){return uu(c,d,f)}});function ib(c,f,d){var v=Qn(f),A=yg(f,v);d==null&&!(yn(f)&&(A.length||!v.length))&&(d=f,f=c,c=this,A=yg(f,Qn(f)));var C=!(yn(d)&&"chain"in d)||!!d.chain,L=la(c);return wr(A,function(F){var k=f[F];c[F]=k,L&&(c.prototype[F]=function(){var z=this.__chain__;if(C||z){var J=c(this.__wrapped__),ne=J.__actions__=Xi(this.__actions__);return ne.push({func:k,args:arguments,thisArg:c}),J.__chain__=z,J}return k.apply(c,Ka([this.value()],arguments))})}),c}o(ib,"mixin");function bG(){return Xn._===this&&(Xn._=WU),this}o(bG,"noConflict");function rb(){}o(rb,"noop");function SG(c){return c=Je(c),tt(function(f){return KO(f,c)})}o(SG,"nthArg");var AG=Vv(pn),EG=Vv(dO),PG=Vv(av);function fL(c){return Bv(c)?sv(No(c)):Zj(c)}o(fL,"property");function xG(c){return function(f){return c==null?e:oc(c,f)}}o(xG,"propertyOf");var CG=gR(),IG=gR(!0);function ob(){return[]}o(ob,"stubArray");function ab(){return!1}o(ab,"stubFalse");function OG(){return{}}o(OG,"stubObject");function RG(){return""}o(RG,"stubString");function LG(){return!0}o(LG,"stubTrue");function NG(c,f){if(c=Je(c),c<1||c>Ne)return[];var d=Ut,v=vi(c,Ut);f=Ve(f),c-=Ut;for(var A=fv(v,f);++d<c;)f(d);return A}o(NG,"times");function FG(c){return Qe(c)?pn(c,No):mr(c)?[c]:Xi(LR(It(c)))}o(FG,"toPath");function DG(c){var f=++HU;return It(c)+f}o(DG,"uniqueId");var _G=Eg(function(c,f){return c+f},0),VG=wv("ceil"),wG=Eg(function(c,f){return c/f},1),MG=wv("floor");function kG(c){return c&&c.length?hg(c,Yi,Sv):e}o(kG,"max");function UG(c,f){return c&&c.length?hg(c,Ve(f,2),Sv):e}o(UG,"maxBy");function jG(c){return hO(c,Yi)}o(jG,"mean");function $G(c,f){return hO(c,Ve(f,2))}o($G,"meanBy");function BG(c){return c&&c.length?hg(c,Yi,xv):e}o(BG,"min");function HG(c,f){return c&&c.length?hg(c,Ve(f,2),xv):e}o(HG,"minBy");var GG=Eg(function(c,f){return c*f},1),WG=wv("round"),KG=Eg(function(c,f){return c-f},0);function XG(c){return c&&c.length?lv(c,Yi):0}o(XG,"sum");function QG(c,f){return c&&c.length?lv(c,Ve(f,2)):0}return o(QG,"sumBy"),P.after=hB,P.ary=$R,P.assign=iH,P.assignIn=tL,P.assignInWith=wg,P.assignWith=rH,P.at=oH,P.before=BR,P.bind=Qv,P.bindAll=fG,P.bindKey=HR,P.castArray=OB,P.chain=kR,P.chunk=M4,P.compact=k4,P.concat=U4,P.cond=uG,P.conforms=pG,P.constant=tb,P.countBy=X$,P.create=aH,P.curry=GR,P.curryRight=WR,P.debounce=KR,P.defaults=sH,P.defaultsDeep=cH,P.defer=yB,P.delay=TB,P.difference=j4,P.differenceBy=$4,P.differenceWith=B4,P.drop=H4,P.dropRight=G4,P.dropRightWhile=W4,P.dropWhile=K4,P.fill=X4,P.filter=q$,P.flatMap=J$,P.flatMapDeep=Z$,P.flatMapDepth=eB,P.flatten=_R,P.flattenDeep=Q4,P.flattenDepth=q4,P.flip=vB,P.flow=gG,P.flowRight=mG,P.fromPairs=Y4,P.functions=mH,P.functionsIn=hH,P.groupBy=tB,P.initial=J4,P.intersection=Z4,P.intersectionBy=e$,P.intersectionWith=t$,P.invert=TH,P.invertBy=vH,P.invokeMap=iB,P.iteratee=nb,P.keyBy=rB,P.keys=Qn,P.keysIn=qi,P.map=Lg,P.mapKeys=SH,P.mapValues=AH,P.matches=hG,P.matchesProperty=yG,P.memoize=Fg,P.merge=EH,P.mergeWith=nL,P.method=TG,P.methodOf=vG,P.mixin=ib,P.negate=Dg,P.nthArg=SG,P.omit=PH,P.omitBy=xH,P.once=bB,P.orderBy=oB,P.over=AG,P.overArgs=SB,P.overEvery=EG,P.overSome=PG,P.partial=qv,P.partialRight=XR,P.partition=aB,P.pick=CH,P.pickBy=iL,P.property=fL,P.propertyOf=xG,P.pull=o$,P.pullAll=wR,P.pullAllBy=a$,P.pullAllWith=s$,P.pullAt=c$,P.range=CG,P.rangeRight=IG,P.rearg=AB,P.reject=lB,P.remove=l$,P.rest=EB,P.reverse=Kv,P.sampleSize=uB,P.set=OH,P.setWith=RH,P.shuffle=pB,P.slice=f$,P.sortBy=mB,P.sortedUniq=y$,P.sortedUniqBy=T$,P.split=JH,P.spread=PB,P.tail=v$,P.take=b$,P.takeRight=S$,P.takeRightWhile=A$,P.takeWhile=E$,P.tap=k$,P.throttle=xB,P.thru=Rg,P.toArray=JR,P.toPairs=rL,P.toPairsIn=oL,P.toPath=FG,P.toPlainObject=eL,P.transform=LH,P.unary=CB,P.union=P$,P.unionBy=x$,P.unionWith=C$,P.uniq=I$,P.uniqBy=O$,P.uniqWith=R$,P.unset=NH,P.unzip=Xv,P.unzipWith=MR,P.update=FH,P.updateWith=DH,P.values=Tl,P.valuesIn=_H,P.without=L$,P.words=cL,P.wrap=IB,P.xor=N$,P.xorBy=F$,P.xorWith=D$,P.zip=_$,P.zipObject=V$,P.zipObjectDeep=w$,P.zipWith=M$,P.entries=rL,P.entriesIn=oL,P.extend=tL,P.extendWith=wg,ib(P,P),P.add=_G,P.attempt=lL,P.camelCase=kH,P.capitalize=aL,P.ceil=VG,P.clamp=VH,P.clone=RB,P.cloneDeep=NB,P.cloneDeepWith=FB,P.cloneWith=LB,P.conformsTo=DB,P.deburr=sL,P.defaultTo=dG,P.divide=wG,P.endsWith=UH,P.eq=co,P.escape=jH,P.escapeRegExp=$H,P.every=Q$,P.find=Y$,P.findIndex=FR,P.findKey=lH,P.findLast=z$,P.findLastIndex=DR,P.findLastKey=fH,P.floor=MG,P.forEach=UR,P.forEachRight=jR,P.forIn=uH,P.forInRight=pH,P.forOwn=dH,P.forOwnRight=gH,P.get=Jv,P.gt=_B,P.gte=VB,P.has=yH,P.hasIn=Zv,P.head=VR,P.identity=Yi,P.includes=nB,P.indexOf=z4,P.inRange=wH,P.invoke=bH,P.isArguments=cc,P.isArray=Qe,P.isArrayBuffer=wB,P.isArrayLike=Qi,P.isArrayLikeObject=In,P.isBoolean=MB,P.isBuffer=es,P.isDate=kB,P.isElement=UB,P.isEmpty=jB,P.isEqual=$B,P.isEqualWith=BB,P.isError=Yv,P.isFinite=HB,P.isFunction=la,P.isInteger=QR,P.isLength=_g,P.isMap=qR,P.isMatch=GB,P.isMatchWith=WB,P.isNaN=KB,P.isNative=XB,P.isNil=qB,P.isNull=QB,P.isNumber=YR,P.isObject=yn,P.isObjectLike=vn,P.isPlainObject=yu,P.isRegExp=zv,P.isSafeInteger=YB,P.isSet=zR,P.isString=Vg,P.isSymbol=mr,P.isTypedArray=yl,P.isUndefined=zB,P.isWeakMap=JB,P.isWeakSet=ZB,P.join=n$,P.kebabCase=BH,P.last=$r,P.lastIndexOf=i$,P.lowerCase=HH,P.lowerFirst=GH,P.lt=eH,P.lte=tH,P.max=kG,P.maxBy=UG,P.mean=jG,P.meanBy=$G,P.min=BG,P.minBy=HG,P.stubArray=ob,P.stubFalse=ab,P.stubObject=OG,P.stubString=RG,P.stubTrue=LG,P.multiply=GG,P.nth=r$,P.noConflict=bG,P.noop=rb,P.now=Ng,P.pad=WH,P.padEnd=KH,P.padStart=XH,P.parseInt=QH,P.random=MH,P.reduce=sB,P.reduceRight=cB,P.repeat=qH,P.replace=YH,P.result=IH,P.round=WG,P.runInContext=w,P.sample=fB,P.size=dB,P.snakeCase=zH,P.some=gB,P.sortedIndex=u$,P.sortedIndexBy=p$,P.sortedIndexOf=d$,P.sortedLastIndex=g$,P.sortedLastIndexBy=m$,P.sortedLastIndexOf=h$,P.startCase=ZH,P.startsWith=eG,P.subtract=KG,P.sum=XG,P.sumBy=QG,P.template=tG,P.times=NG,P.toFinite=fa,P.toInteger=Je,P.toLength=ZR,P.toLower=nG,P.toNumber=Br,P.toSafeInteger=nH,P.toString=It,P.toUpper=iG,P.trim=rG,P.trimEnd=oG,P.trimStart=aG,P.truncate=sG,P.unescape=cG,P.uniqueId=DG,P.upperCase=lG,P.upperFirst=eb,P.each=UR,P.eachRight=jR,P.first=VR,ib(P,function(){var c={};return Ro(P,function(f,d){Dt.call(P.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),P.VERSION=t,wr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),wr(["drop","take"],function(c,f){dt.prototype[c]=function(d){d=d===e?1:$n(Je(d),0);var v=this.__filtered__&&!f?new dt(this):this.clone();return v.__filtered__?v.__takeCount__=vi(d,v.__takeCount__):v.__views__.push({size:vi(d,Ut),type:c+(v.__dir__<0?"Right":"")}),v},dt.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),wr(["filter","map","takeWhile"],function(c,f){var d=f+1,v=d==cn||d==nn;dt.prototype[c]=function(A){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(A,3),type:d}),C.__filtered__=C.__filtered__||v,C}}),wr(["head","last"],function(c,f){var d="take"+(f?"Right":"");dt.prototype[c]=function(){return this[d](1).value()[0]}}),wr(["initial","tail"],function(c,f){var d="drop"+(f?"":"Right");dt.prototype[c]=function(){return this.__filtered__?new dt(this):this[d](1)}}),dt.prototype.compact=function(){return this.filter(Yi)},dt.prototype.find=function(c){return this.filter(c).head()},dt.prototype.findLast=function(c){return this.reverse().find(c)},dt.prototype.invokeMap=tt(function(c,f){return typeof c=="function"?new dt(this):this.map(function(d){return uu(d,c,f)})}),dt.prototype.reject=function(c){return this.filter(Dg(Ve(c)))},dt.prototype.slice=function(c,f){c=Je(c);var d=this;return d.__filtered__&&(c>0||f<0)?new dt(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=Je(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},dt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},dt.prototype.toArray=function(){return this.take(Ut)},Ro(dt.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),v=/^(?:head|last)$/.test(f),A=P[v?"take"+(f=="last"?"Right":""):f],C=v||/^find/.test(f);A&&(P.prototype[f]=function(){var L=this.__wrapped__,F=v?[1]:arguments,k=L instanceof dt,z=F[0],J=k||Qe(L),ne=o(function(at){var gt=A.apply(P,Ka([at],F));return v&&me?gt[0]:gt},"interceptor");J&&d&&typeof z=="function"&&z.length!=1&&(k=J=!1);var me=this.__chain__,Re=!!this.__actions__.length,Me=C&&!me,Ze=k&&!Re;if(!C&&J){L=Ze?L:new dt(this);var ke=c.apply(L,F);return ke.__actions__.push({func:Rg,args:[ne],thisArg:e}),new kr(ke,me)}return Me&&Ze?c.apply(this,F):(ke=this.thru(ne),Me?v?ke.value()[0]:ke.value():ke)})}),wr(["pop","push","shift","sort","splice","unshift"],function(c){var f=tg[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",v=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var A=arguments;if(v&&!this.__chain__){var C=this.value();return f.apply(Qe(C)?C:[],A)}return this[d](function(L){return f.apply(Qe(L)?L:[],A)})}}),Ro(dt.prototype,function(c,f){var d=P[f];if(d){var v=d.name+"";Dt.call(pl,v)||(pl[v]=[]),pl[v].push({name:f,func:d})}}),pl[Ag(e,O).name]=[{name:"wrapper",func:e}],dt.prototype.clone=sj,dt.prototype.reverse=cj,dt.prototype.value=lj,P.prototype.at=U$,P.prototype.chain=j$,P.prototype.commit=$$,P.prototype.next=B$,P.prototype.plant=G$,P.prototype.reverse=W$,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=K$,P.prototype.first=P.prototype.head,ru&&(P.prototype[ru]=H$),P},"runInContext"),Qa=jU();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Xn._=Qa,define(function(){return Qa})):ec?((ec.exports=Qa)._=Qa,nv._=Qa):Xn._=Qa}).call(Ef)});var CM=ze((Vde,xM)=>{var{findIndex:$q}=Zp();function Bq(e,t){let i=$q(e,a=>a.endOffset===t),r=!1;for(;r===!1;){i++;let a=e[i];if(a===void 0)return null;if(a.tokenType.name!=="SEA_WS")return a}}o(Bq,"findNextTextualToken");xM.exports={findNextTextualToken:Bq}});var RM=ze((Mde,OM)=>{var IM=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function Hq({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(IM);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(Hq,"isXMLNamespaceKey");function Gq(e){if(typeof e!="string")return;let t=e.match(IM);if(t!==null)return t.groups&&t.groups.prefix||""}o(Gq,"getXMLNamespaceKeyPrefix");OM.exports={isXMLNamespaceKey:Hq,getXMLNamespaceKeyPrefix:Gq}});var NM=ze((Ude,LM)=>{var{findNextTextualToken:Wq}=CM(),{isXMLNamespaceKey:Kq,getXMLNamespaceKeyPrefix:Xq}=RM();LM.exports={findNextTextualToken:Wq,isXMLNamespaceKey:Kq,getXMLNamespaceKeyPrefix:Xq}});var qP=ze((jde,DM)=>{var{reduce:Qq,has:FM,isArray:qq}=Zp();function Yq(e){return Qq(e,(n,i,r)=>(r==="parent"||(FM(i,"type")?n.push(i):qq(i)&&i.length>0&&FM(i[0],"type")&&(n=n.concat(i))),n),[])}o(Yq,"getAstChildrenReflective");DM.exports={getAstChildrenReflective:Yq}});var YP=ze((Bde,_M)=>{_M.exports={DEFAULT_NS:"::DEFAULT"}});var BM=ze((Hde,$M)=>{var{BaseXmlCstVisitor:zq}=QP(),{last:Jq,forEach:kM,reduce:Zq,map:ed,pick:JP,sortBy:eY,isEmpty:tY,isArray:UM,assign:nY}=Zp(),{findNextTextualToken:iY,isXMLNamespaceKey:rY,getXMLNamespaceKeyPrefix:oY}=NM(),{getAstChildrenReflective:aY}=qP(),{DEFAULT_NS:sY}=YP();function cY(e,t){VM.setState({tokenVector:t});let n=VM.visit(e);return n.rootElement!==zc&&jM(n.rootElement),n}o(cY,"buildAst");var ZP=class ZP extends zq{constructor(){super()}setState({tokenVector:t}){this.tokenVector=t}visit(t,n={}){return super.visit(t,{location:t.location,...n})}document(t,{location:n}){let i={type:"XMLDocument",rootElement:zc,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&tY(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),oT(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=ed(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),oT(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=ed(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=ed(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:zc,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=ed(t.attribute,this.visit.bind(this))),t.content!==void 0){let{elements:r,textContents:a}=this.visit(t.content[0]);i.subElements=r,i.textContents=a}return uY(i,t),pY(i,t),dY(i,t,this.tokenVector),oT(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:zc,value:zc,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=aT(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=lY(a.image),r.syntax.value=aT(a)}return oT(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:zc},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=eY(r,["startOffset"]),s=ed(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(ZP,"CstToAstVisitor");var zP=ZP,VM=new zP;function oT(e){let t=aY(e);kM(t,n=>n.parent=e)}o(oT,"setChildrenParent");function jM(e,t=[]){let n=Zq(e.attributes,(r,a)=>{if(a.key!==zc&&rY({key:a.key,includeEmptyPrefix:!1})===!0){let s=oY(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[sY]=l}}return r},{}),i=Object.create(null);e.namespaces=nY(i,t,n),kM(e.subElements,r=>jM(r,e.namespaces))}o(jM,"updateNamespaces");function aT(e){return JP(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(aT,"toXMLToken");function wM(e){return JP(e,["startOffset","startLine","startColumn"])}o(wM,"startOfXMLToken");function MM(e){return JP(e,["endOffset","endLine","endColumn"])}o(MM,"endOfXMLToken");function ka(e){return UM(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(ka,"exists");function lY(e){return e.substring(1,e.length-1)}o(lY,"stripQuotes");function fY(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(fY,"nsToParts");var zc=null;function uY(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=aT(n);let i=fY(n.image);i!==null?(e.ns=i.ns,e.name=i.name):e.name=n.image}t.END_NAME!==void 0&&t.END_NAME[0].isInsertedInRecovery!==!0&&(e.syntax.closeName=aT(t.END_NAME[0]))}o(uY,"handleElementOpenCloseNameRanges");function pY(e,t){if(ka(t.OPEN)){let n;ka(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):ka(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...wM(t.OPEN[0]),...MM(n)}),ka(t.SLASH_OPEN)&&ka(t.END)&&(e.syntax.closeBody={...wM(t.SLASH_OPEN[0]),...MM(t.END[0])})}}o(pY,"handleElementOpenCloseBodyRanges");function dY(e,t,n){if(ka(t.Name)){let i=t.Name[0].endOffset+2;if(ka(t.START_CLOSE)||ka(t.SLASH_CLOSE)){let r=(ka(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=UM(t.attribute)?Jq(t.attribute).location.endOffset:t.Name[0].endOffset,s=iY(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(dY,"handleElementAttributeRanges");$M.exports={buildAst:cY}});var WM=ze((Wde,GM)=>{var{forEach:gY,isFunction:Pf}=Zp(),{getAstChildrenReflective:mY}=qP();function HM(e,t){switch(e.type){case"XMLDocument":{Pf(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{Pf(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{Pf(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{Pf(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{Pf(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{Pf(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=mY(e);gY(n,i=>{HM(i,t)})}o(HM,"accept");GM.exports={accept:HM}});var XM=ze((Xde,KM)=>{var{buildAst:hY}=BM(),{accept:yY}=WM(),{DEFAULT_NS:TY}=YP();KM.exports={buildAst:hY,accept:yY,DEFAULT_NS:TY}});var Di={};lc(Di,{deleteConfigEntityByPath:()=>VZ,exportConfig:()=>DZ,exportConfigEntityByPath:()=>_Z,generateCustomExtension:()=>_I,generateSchema:()=>FZ,getApiVersion:()=>UZ,getChanges:()=>P2,getGenericSchema:()=>GT,getPathToGenericSchema:()=>Bk,getProject:()=>GZ,importConfig:()=>wZ,importProject:()=>MZ,importProjectSchema:()=>kZ,isDirectory:()=>$Z,log:()=>ae,prompts:()=>NZ,readDirectory:()=>UI});module.exports=kg(Di);var ge=te(ce());var W=te(ce());var Be=o(e=>typeof e=="string","isString"),Tu=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),YF=o(e=>e==null?"":""+e,"makeString"),RW=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),LW=/###/g,zF=o(e=>e&&e.indexOf("###")>-1?e.replace(LW,"."):e,"cleanKey"),JF=o(e=>!e||Be(e),"canNotTraverseDeeper"),vu=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(JF(e))return{};let a=zF(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return JF(e)?{}:{obj:e,k:zF(i[r])}},"getLastOfPath"),ZF=o((e,t,n)=>{let{obj:i,k:r}=vu(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=vu(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=vu(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),NW=o((e,t,n,i)=>{let{obj:r,k:a}=vu(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),jg=o((e,t)=>{let{obj:n,k:i}=vu(e,t);if(n)return n[i]},"getPath"),FW=o((e,t,n)=>{let i=jg(e,n);return i!==void 0?i:jg(t,n)},"getPathWithDefaults"),o0=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?Be(e[i])||e[i]instanceof String||Be(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):o0(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),bl=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),DW={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},_W=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>DW[t]):e,"escape"),Ab=class Ab{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let n=this.regExpMap.get(t);if(n!==void 0)return n;let i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}};o(Ab,"RegExpCache");var mb=Ab,VW=[" ",",","?","!",";"],wW=new mb(20),MW=o((e,t,n)=>{t=t||"",n=n||"";let i=VW.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=wW.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),hb=o(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let u=a;u<i.length;++u)if(u!==a&&(l+=n),l+=i[u],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<i.length-1)continue;a+=u-a+1;break}r=s}return r},"deepFind"),$g=o(e=>e&&e.replace("_","-"),"getCleanedCode"),kW={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},bu=class bu{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||kW,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(Be(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new bu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new bu(this.logger,t)}};o(bu,"Logger");var yb=bu,Fo=new yb,Eb=class Eb{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l.apply(l,[t,...i])})}};o(Eb,"EventEmitter");var Al=Eb,Pb=class Pb extends Al{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):Be(i)&&a?l.push(...i.split(a)):l.push(i)));let u=jg(this.data,l);return!u&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),u||!s||!Be(i)?u:hb(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),ZF(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(Be(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let u=jg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?o0(u,i,a):u={...u,...i},ZF(this.data,l,u),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(Pb,"ResourceStore");var Bg=Pb,a0={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,r))}),t}},e0={},Kg=class Kg extends Al{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),RW(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Fo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let i=this.resolve(t,n);return i&&i.res!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!MW(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Be(a)?[a]:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return{key:t,namespaces:Be(a)?[a]:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),u=l[l.length-1],p=n.lng||this.language,g=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){let re=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${re}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${re}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s}let m=this.resolve(t,n),h=m&&m.res,S=m&&m.usedKey||s,b=m&&m.exactUsedKey||s,O=Object.prototype.toString.apply(h),N=["[object Number]","[object Function]","[object RegExp]"],M=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,G=!this.i18nFormat||this.i18nFormat.handleAsObject,j=!Be(h)&&typeof h!="boolean"&&typeof h!="number";if(G&&h&&j&&N.indexOf(O)<0&&!(Be(M)&&Array.isArray(h))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let re=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,h,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(m.res=re,m.usedParams=this.getUsedParamsDetails(n),m):re}if(a){let re=Array.isArray(h),Z=re?[]:{},oe=re?b:S;for(let Pe in h)if(Object.prototype.hasOwnProperty.call(h,Pe)){let D=`${oe}${a}${Pe}`;Z[Pe]=this.translate(D,{...n,joinArrays:!1,ns:l}),Z[Pe]===D&&(Z[Pe]=h[Pe])}h=Z}}else if(G&&Be(M)&&Array.isArray(h))h=h.join(M),h&&(h=this.extendTranslation(h,t,n,i));else{let re=!1,Z=!1,oe=n.count!==void 0&&!Be(n.count),Pe=Kg.hasDefaultValue(n),D=oe?this.pluralResolver.getSuffix(p,n.count,n):"",pt=n.ordinal&&oe?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",yt=oe&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),je=yt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${D}`]||n[`defaultValue${pt}`]||n.defaultValue;!this.isValidLookup(h)&&Pe&&(re=!0,h=je),this.isValidLookup(h)||(Z=!0,h=s);let Wn=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:h,nn=Pe&&je!==h&&this.options.updateMissing;if(Z||re||nn){if(this.logger.log(nn?"updateKey":"missingKey",p,u,s,nn?je:h),a){let Ct=this.resolve(s,{...n,keySeparator:!1});Ct&&Ct.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Nt=[],Ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ne&&Ne[0])for(let Ct=0;Ct<Ne.length;Ct++)Nt.push(Ne[Ct]);else this.options.saveMissingTo==="all"?Nt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Nt.push(n.lng||this.language);let Ri=o((Ct,Ut,ln)=>{let Wi=Pe&&ln!==h?ln:Wn;this.options.missingKeyHandler?this.options.missingKeyHandler(Ct,u,Ut,Wi,nn,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Ct,u,Ut,Wi,nn,n),this.emit("missingKey",Ct,u,Ut,h)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&oe?Nt.forEach(Ct=>{let Ut=this.pluralResolver.getSuffixes(Ct,n);yt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Ut.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ut.push(`${this.options.pluralSeparator}zero`),Ut.forEach(ln=>{Ri([Ct],s+ln,n[`defaultValue${ln}`]||je)})}):Ri(Nt,s,je))}h=this.extendTranslation(h,t,n,m,i),Z&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${u}:${s}`),(Z||re)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,re?h:void 0):h=this.options.parseMissingKeyHandler(h))}return r?(m.res=h,m.usedParams=this.getUsedParamsDetails(n),m):h}extendTranslation(t,n,i,r,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let p=Be(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),g;if(p){let h=t.match(this.interpolator.nestingRegexp);g=h&&h.length}let m=i.replace&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,i.lng||this.language||r.usedLng,i),p){let h=t.match(this.interpolator.nestingRegexp),S=h&&h.length;g<S&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,S=new Array(h),b=0;b<h;b++)S[b]=arguments[b];return a&&a[0]===S[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${S[0]} in key: ${n[0]}`),null):s.translate(...S,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,u=Be(l)?[l]:l;return t!=null&&u&&u.length&&i.applyPostProcessor!==!1&&(t=a0.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,a,s,l;return Be(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(u,n),g=p.key;r=g;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let h=n.count!==void 0&&!Be(n.count),S=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),b=n.context!==void 0&&(Be(n.context)||typeof n.context=="number")&&n.context!=="",O=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(N=>{this.isValidLookup(i)||(l=N,!e0[`${O[0]}-${N}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(e0[`${O[0]}-${N}`]=!0,this.logger.warn(`key "${r}" for languages "${O.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(M=>{if(this.isValidLookup(i))return;s=M;let G=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(G,g,M,N,n);else{let re;h&&(re=this.pluralResolver.getSuffix(M,n.count,n));let Z=`${this.options.pluralSeparator}zero`,oe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(G.push(g+re),n.ordinal&&re.indexOf(oe)===0&&G.push(g+re.replace(oe,this.options.pluralSeparator)),S&&G.push(g+Z)),b){let Pe=`${g}${this.options.contextSeparator}${n.context}`;G.push(Pe),h&&(G.push(Pe+re),n.ordinal&&re.indexOf(oe)===0&&G.push(Pe+re.replace(oe,this.options.pluralSeparator)),S&&G.push(Pe+Z))}}let j;for(;j=G.pop();)this.isValidLookup(i)||(a=j,i=this.getResource(M,N,j,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Be(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(Kg,"Translator");var Hg=Kg,db=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),xb=class xb{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Fo.create("languageUtils")}getScriptPartFromCode(t){if(t=$g(t),!t||t.indexOf("-")<0)return null;let n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=$g(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Be(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(t)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=db(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=db(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=db(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Be(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return Be(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):Be(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(xb,"LanguageUtil");var Gg=xb,UW=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],jW={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3},$W=["v1","v2","v3"],BW=["v4"],t0={zero:0,one:1,two:2,few:3,many:4,other:5},HW=o(()=>{let e={};return UW.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:jW[t.fc]}})}),e},"createRules"),Cb=class Cb{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Fo.create("pluralResolver"),(!this.options.compatibilityJSON||BW.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=HW(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let i=$g(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!t.match(/-|_/))return;let u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[a]=s,s}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,a)=>t0[r]-t0[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(t,r,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(t,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){let i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n)),r=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));let a=o(()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!$W.includes(this.options.compatibilityJSON)}};o(Cb,"PluralResolver");var Tb=Cb,n0=o(function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=FW(e,t,n);return!a&&r&&Be(n)&&(a=hb(e,n,i),a===void 0&&(a=hb(t,n,i))),a},"deepFindWithDefaults"),gb=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),Ib=class Ib{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Fo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:p,unescapeSuffix:g,unescapePrefix:m,nestingPrefix:h,nestingPrefixEscaped:S,nestingSuffix:b,nestingSuffixEscaped:O,nestingOptionsSeparator:N,maxReplaces:M,alwaysFormat:G}=t.interpolation;this.escape=n!==void 0?n:_W,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?bl(a):s||"{{",this.suffix=l?bl(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=h?bl(h):S||bl("$t("),this.nestingSuffix=b?bl(b):O||bl(")"),this.nestingOptionsSeparator=N||",",this.maxReplaces=M||1e3,this.alwaysFormat=G!==void 0?G:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,r){let a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(S=>{if(S.indexOf(this.formatSeparator)<0){let M=n0(n,u,S,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(M,void 0,i,{...r,...n,interpolationkey:S}):M}let b=S.split(this.formatSeparator),O=b.shift().trim(),N=b.join(this.formatSeparator).trim();return this.format(n0(n,u,O,this.options.keySeparator,this.options.ignoreJSONStructure),N,i,{...r,...n,interpolationkey:O})},"handleFormat");this.resetRegExp();let g=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(S=>gb(S),"safeValue")},{regex:this.regexp,safeValue:o(S=>this.escapeValue?gb(this.escape(S)):gb(S),"safeValue")}].forEach(S=>{for(l=0;a=S.regex.exec(t);){let b=a[1].trim();if(s=p(b),s===void 0)if(typeof g=="function"){let N=g(t,a,r);s=Be(N)?N:""}else if(r&&Object.prototype.hasOwnProperty.call(r,b))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=YF(s));let O=S.safeValue(s);if(t=t.replace(a[0],O),m?(S.regex.lastIndex+=s.length,S.regex.lastIndex-=a[0].length):S.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((u,p)=>{let g=this.nestingOptionsSeparator;if(u.indexOf(g)<0)return u;let m=u.split(new RegExp(`${g}[ ]*{`)),h=`{${m[1]}`;u=m[0],h=this.interpolate(h,s);let S=h.match(/'/g),b=h.match(/"/g);(S&&S.length%2===0&&!b||b.length%2!==0)&&(h=h.replace(/'/g,'"'));try{s=JSON.parse(h),p&&(s={...p,...s})}catch(O){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,O),`${u}${g}${h}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,u},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let u=[];s={...i},s=s.replace&&!Be(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let g=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=g.shift(),u=g,p=!0}if(a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!Be(a))return a;Be(a)||(a=YF(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),p&&(a=u.reduce((g,m)=>this.format(g,m,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o(Ib,"Interpolator");var vb=Ib,GW=o(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...u]=s.split(":"),p=u.join(":").trim().replace(/^'+|'+$/g,""),g=l.trim();n[g]||(n[g]=p),p==="false"&&(n[g]=!1),p==="true"&&(n[g]=!0),isNaN(p)||(n[g]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),Sl=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e($g(i),r),t[s]=l),l(n)}},"createCachedFormatter"),Ob=class Ob{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Fo.create("formatter"),this.options=t,this.formats={number:Sl((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:Sl((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:Sl((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:Sl((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:Sl((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Sl(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,u)=>{let{formatName:p,formatOptions:g}=GW(u);if(this.formats[p]){let m=l;try{let h=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},S=h.locale||h.lng||r.locale||r.lng||i;m=this.formats[p](l,S,{...g,...r,...h})}catch(h){this.logger.warn(h)}return m}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(Ob,"Formatter");var bb=Ob,WW=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),Rb=class Rb extends Al{constructor(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=Fo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},u={};return t.forEach(p=>{let g=!0;n.forEach(m=>{let h=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?s[h]===void 0&&(s[h]=!0):(this.state[h]=1,g=!1,s[h]===void 0&&(s[h]=!0),a[h]===void 0&&(a[h]=!0),u[m]===void 0&&(u[m]=!0)))}),g||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(u=>{NW(u.loaded,[a],s),WW(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(p=>{l[p]||(l[p]={});let g=u.loaded[p];g.length&&g.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((p,g)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&g&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(p,g)},"resolver"),u=this.backend[i].bind(this.backend);if(u.length===2){try{let p=u(t,n);p&&typeof p.then=="function"?p.then(g=>l(null,g)).catch(l):l(null,p)}catch(p){l(p)}return}return u(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Be(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Be(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){let u={...s,isUpdate:a},p=this.backend.create.bind(this.backend);if(p.length<6)try{let g;p.length===5?g=p(t,n,i,r,u):g=p(t,n,i,r),g&&typeof g.then=="function"?g.then(m=>l(null,m)).catch(l):l(null,g)}catch(g){l(g)}else p(t,n,i,r,l,u)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(Rb,"Connector");var Sb=Rb,i0=o(()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Be(e[1])&&(t.defaultValue=e[1]),Be(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),r0=o(e=>(Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),Ug=o(()=>{},"noop"),KW=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Su=class Su extends Al{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=r0(t),this.services={},this.logger=Fo,this.modules={external:[]},KW(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(Be(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=i0();this.options={...r,...this.options,...r0(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);let a=o(g=>g?typeof g=="function"?new g:g:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Fo.init(a(this.modules.logger),this.options):Fo.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=bb);let m=new Gg(this.options);this.store=new Bg(this.options.resources,this.options);let h=this.services;h.logger=Fo,h.resourceStore=this.store,h.languageUtils=m,h.pluralResolver=new Tb(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(h.formatter=a(g),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new vb(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new Sb(a(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(S){for(var b=arguments.length,O=new Array(b>1?b-1:0),N=1;N<b;N++)O[N-1]=arguments[N];t.emit(S,...O)}),this.modules.languageDetector&&(h.languageDetector=a(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=a(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Hg(this.services,this.options),this.translator.on("*",function(S){for(var b=arguments.length,O=new Array(b>1?b-1:0),N=1;N<b;N++)O[N-1]=arguments[N];t.emit(S,...O)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Ug),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=function(){return t.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return t.store[g](...arguments),t}});let u=Tu(),p=o(()=>{let g=o((m,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(h),i(m,h)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),u}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ug,r=Be(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=o(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(p=>{p!=="cimode"&&a.indexOf(p)<0&&a.push(p)})},"append");r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let r=Tu();return typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),i||(i=Ug),this.services.backendConnector.reload(t,n,a=>{r.resolve(),i(a)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&a0.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;let r=Tu();this.emit("languageChanging",t);let a=o(u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},"setLngProps"),s=o((u,p)=>{p?(a(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(u,function(){return i.t(...arguments)})},"done"),l=o(u=>{!t&&!u&&this.services.languageDetector&&(u=[]);let p=Be(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);p&&(this.language||a(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,g=>{s(g,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),r}getFixedT(t,n,i){var r=this;let a=o(function(s,l){let u;if(typeof l!="object"){for(var p=arguments.length,g=new Array(p>2?p-2:0),m=2;m<p;m++)g[m-2]=arguments[m];u=r.options.overloadTranslationOptionHandler([s,l].concat(g))}else u={...l};u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||i||a.keyPrefix);let h=r.options.keySeparator||".",S;return u.keyPrefix&&Array.isArray(s)?S=s.map(b=>`${u.keyPrefix}${h}${b}`):S=u.keyPrefix?`${u.keyPrefix}${h}${s}`:s,r.t(S,u)},"fixedT");return Be(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=Tu();return this.options.ns?(Be(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=Tu();Be(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new Gg(i0());return n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Su(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ug,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new Su(r);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new Bg(this.store.data,r),a.services.resourceStore=a.store),a.translator=new Hg(a.services,r),a.translator.on("*",function(l){for(var u=arguments.length,p=new Array(u>1?u-1:0),g=1;g<u;g++)p[g-1]=arguments[g];a.emit(l,...p)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(Su,"I18n");var Wg=Su,Q=Wg.createInstance();Q.createInstance=Wg.createInstance;var tee=Q.createInstance,nee=Q.dir,iee=Q.init,ree=Q.loadResources,oee=Q.reloadResources,aee=Q.use,see=Q.changeLanguage,cee=Q.getFixedT,lee=Q.t,fee=Q.exists,uee=Q.setDefaultNamespace,pee=Q.hasLoadedNamespace,dee=Q.loadNamespaces,gee=Q.loadLanguages;var bD=te(Lb()),SD=te(D0()),dm=te(vD()),ct=require("@sap-ux/vocabularies-types/vocabularies/UI"),Cu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var um=te(ce());var ae=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${um.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${um.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${um.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var $="#/definitions/",xK=[W.v4.FE_TEMPLATE_V4_LIST_REPORT,W.v4.FE_TEMPLATE_V4_ALP,W.v4.FE_TEMPLATE_V4_OBJECT_PAGE,W.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],CK=["sap.fe.core","sap.fe.templates"],AD="controlProperty",IK="defaultControlProperty",Ol=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),vr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Hr(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,dm.parse)(r.fileContent,r.dataSourceUri))}catch(a){return ae(t,{severity:W.LogSeverity.Error,message:Q.t("ANNOERR"),location:{path:Q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,dm.merge)(...n);i=(0,SD.convert)(r)}return i}o(Hr,"parseAndMergeAndConvert");var Il=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Yb(e,t,n){var i,r,a,s;if((i=e==null?void 0:e.Common)!=null&&i.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((r=l==null?void 0:l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(a=e.Common)==null?void 0:a.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}o(Yb,"evaluateCommonLabel");function gm(e,t){let n=e.value;return e.$target&&(n=Yb(e.$target.annotations,t,n)),n}o(gm,"getLabelForPropertyPath");function Iu(e,t){var r,a;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(s=>s.name===e.Value):(i=t&&t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&(e.Target.$target.Value?i=e.Target.$target.Value.$target:e.Target.$target.Label&&(n=e.Target.$target.Label)),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=Yb(i.annotations,t,n)),n}o(Iu,"getLabelForDataField");function ya(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return Yb(a.annotations,t,s)}}}else return}o(ya,"getLabel");function mm(e,t){var r;let n=e,i=typeof n.Action=="string"?n.Action:(r=n.Action)==null?void 0:r.path;return t&&typeof t=="string"?t:i}o(mm,"getDescriptionForActionBasedDataFields");function zb(e,t,n){let i=Iu(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(zb,"getTitleForDataField");function lt(e){return e.replace("#","::").replace(/\//g,":2f")}o(lt,"prepareRef");function ha(e){if(e){let t=`${W.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(ha,"getPageTypeV2");function Jb(e){let t="name"in e&&typeof e.name=="string"?pm(e.name):void 0;if(t)return t;if("viewId"in e&&e.viewId||"viewName"in e&&e.viewName)return W.PageTypeV4.CustomPage}o(Jb,"getPageTypeV4");function OK(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(OK,"getTargetAnnotationName");function ii(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(ii,"findAlias");function RK(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(RK,"getAnnotationFromMetaPath");function LK(e,t,n){var s,l;let i=e[e.length-1],r=RK(i),a=ii(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(LK,"determineTargetAnnotation");function NK(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${ct.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${W.UIVOCABULARY}`);return e}o(NK,"adjustKey");function FK(e,t,n,i,r=W.FioriElementsVersion.v2,a=!1){var m,h;let s=!1,l,u=i.split("/"),p=u.length>1;p&&n&&(n=(m=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:m.targetType),t=NK(t,u,a);let g=LK(u,n,e);if(g){let S=r===W.FioriElementsVersion.v2?"::":"#";t=OK(g,a).replace("#",S),l=(h=g.fullyQualifiedName)==null?void 0:h.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let S=r===W.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(S)}${S}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(FK,"getKeyAndEntityTypeOfReferenceFacet");function ED(e,t,n,i,r=W.FioriElementsVersion.v2,a=!1){var g,m,h;let s=(m=e.fullyQualifiedName)==null?void 0:m.substring((g=e.fullyQualifiedName)==null?void 0:g.lastIndexOf("@")),l=e.ID?e.ID.toString():s,u=(h=e.fullyQualifiedName)==null?void 0:h.split("@")[0],p=t;if(e.$Type!==ct.UIAnnotationTypes.CollectionFacet&&"Target"in e){let S=Il(e.Target);if(!S){ae(i,{severity:W.LogSeverity.Error,message:Q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:O,stopProcessing:N,namespace:M}=FK(n,l,p,S,r,a);if(N)return;l=b,p=O,u=M}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:u}}o(ED,"getSectionFacet");function DK(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(DK,"getDecodedPathElement");var Zb=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),PD=o((e,t,n,i,r,a=!1)=>{if(!t)return;let s=e,l=t.split("/");for(let u=0;u<l.length;u++){let p=l[u];if(p==="[]")continue;let g=DK(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=Zb(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),Vo=o((e,t,n,i,r=!1)=>PD(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),xD=o((e,t,n,i,r)=>{PD(e,t,i,r,n)},"setManifestSectionByPathV4");function eS(e){let t,n,i;switch(e.$Type){case ct.UIAnnotationTypes.DataField:t=Il(e.Value);break;case ct.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Il(e.Value);break;case ct.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${W.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case ct.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${lt(e.Action)}`);break;case ct.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Il(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case ct.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${lt(e.Action)}`);break;case ct.UIAnnotationTypes.DataFieldWithNavigationPath:i=Il(e.Value),n=Il(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(eS,"getSchemaKeyOfLineItemRecord");function _K(e,t,n){return e.includes(ct.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?ct.UIAnnotationTerms.Chart:e.includes(ct.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?ct.UIAnnotationTerms.Identification:n&&e.includes(ct.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?ct.UIAnnotationTerms.LineItem:e.includes(ct.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?ct.UIAnnotationTerms.FieldGroup:e.includes(ct.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?ct.UIAnnotationTerms.DataPoint:e.includes(ct.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?ct.UIAnnotationTerms.PresentationVariant:e.includes(ct.UIAnnotationTerms.SelectionPresentationVariant)||e.includes(t+".SelectionPresentationVariant")?ct.UIAnnotationTerms.SelectionPresentationVariant:void 0}o(_K,"getUIAnnotationTerm");function VK(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Cu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Cu.CommunicationAnnotationTerms.Address:void 0}o(VK,"getCommunicationAnnotationTerm");function wK(e,t,n){return _K(e,t,n)||VK(e,t)}o(wK,"getAnnotationTerm");function MK(e,t,n,i,r){var p,g,m,h,S,b,O,N,M,G;let a=ii(W.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(wK(s,a,i)){case ct.UIAnnotationTerms.Chart:{n[s]={base:W.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ct.UIAnnotationTerms.Identification:{n[s]={base:W.FacetBase.Identification},n[s].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ct.UIAnnotationTerms.LineItem:{if(!s.includes(ct.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let j=s.split("::");j[j.length-1]=`@${ct.UIAnnotationTerms.LineItem}`,s=j.join("::")}n[s]={base:W.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ct.UIAnnotationTerms.FieldGroup:{n[s]={base:W.FacetBase.Form},n[s].target=(h=t==null?void 0:t.Target)==null?void 0:h.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ct.UIAnnotationTerms.DataPoint:{n[s]={base:W.FacetBase.DataPoint},n[s].Label=(S=t==null?void 0:t.Target)==null?void 0:S.$target.Title,n[s].target=(b=t==null?void 0:t.Target)==null?void 0:b.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ct.UIAnnotationTerms.PresentationVariant:{n[s]={base:W.FacetBase.PresentationVariant},n[s].target=(O=t==null?void 0:t.Target)==null?void 0:O.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ct.UIAnnotationTerms.SelectionPresentationVariant:{n[s]={base:W.FacetBase.SelectionPresentationVariant},n[s].target=(N=t==null?void 0:t.Target)==null?void 0:N.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Cu.CommunicationAnnotationTerms.Contact:{n[s]={base:W.FacetBase.Contact},n[s].target=(M=t==null?void 0:t.Target)==null?void 0:M.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Cu.CommunicationAnnotationTerms.Address:{n[s]={base:W.FacetBase.Address},n[s].target=(G=t==null?void 0:t.Target)==null?void 0:G.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:W.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",W.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(MK,"evaluateTargetAnnotation");function tS(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(tS,"getAnnotationPathUsingFullyQualifiedName");function nS(e,t,n,i,r,a=W.FioriElementsVersion.v2,s){var u;let l=ED(e,i,t,s,a,!1);if(l)switch(e.$Type){case ct.UIAnnotationTypes.ReferenceFacet:{MK(l,e,r,i,t);break}case ct.UIAnnotationTypes.CollectionFacet:{let p=tS(i,e.fullyQualifiedName),g=r[l.key]={base:W.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===W.FioriElementsVersion.v4&&ae(s,{severity:W.LogSeverity.Error,message:Q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{nS(m,t,n,i,g.facets,a,s)});break}}}o(nS,"addFacetToConfig");function hm(e,t,n=W.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=ii(W.UIVOCABULARY,t),s=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),g=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{nS(m,t,g,e,r,n,i)})}return r}o(hm,"getObjectPageHeaderFacets");function ym(e,t,n=W.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=ii(W.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(g=>{nS(g,t,p,e,r,n,i)})}return r}o(ym,"getObjectPageFacets");function iS(e){var t,n,i,r;if(e[W.ManifestSection.generic]&&Object.keys(e[W.ManifestSection.generic]).length>0||e[W.ManifestSection.ovp]&&Object.keys(e[W.ManifestSection.ovp]).length>0)return W.FioriElementsVersion.v2;{let a=(n=(t=e[W.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[W.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>{let u=typeof a[l].name=="string"?a[l].name:"";return xK.indexOf(u)>-1||pm(u)})||s&&Object.keys(s).find(l=>CK.indexOf(l)>-1)?W.FioriElementsVersion.v4:void 0}}o(iS,"getFEVersionFromManifest");function kK(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[W.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[W.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[W.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[W.ManifestSection.ui5].models[t].dataSource:void 0}o(kK,"getMainService");function CD(e){var i,r;let t=kK(e);if(!t)return W.OdataVersion.v2;let n=(i=e[W.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?W.OdataVersion.v4:W.OdataVersion.v2}o(CD,"getODataVersionFromManifest");function UK(e,t){var i,r;let n;if(e[W.ManifestSection.generic]){let a=e[W.ManifestSection.generic].pages;if(!a){ae(t,{severity:W.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(ha((i=l.component)==null?void 0:i.name)===W.PageTypeV2.AnalyticalListPage){n=W.TemplateType.AnalyticalListPageV2;break}else if(ha((r=l.component)==null?void 0:r.name)===W.PageTypeV2.ListReport){n=W.TemplateType.ListReportObjectPageV2;break}}}else n||ae(t,{severity:W.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:W.ManifestSection.generic}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.generic]}});return n}o(UK,"determineV2Template");function Ou(e){var i,r,a,s;let t,n=Jb(e);if(n===W.PageTypeV4.AnalyticalListPage)t=W.TemplateType.AnalyticalListPageV4;else if(n===W.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[W.ALPViewType.Primary]||l[W.ALPViewType.Secondary])?t=W.TemplateType.AnalyticalListPageV4:t=W.TemplateType.ListReportObjectPageV4}else n===W.PageTypeV4.ObjectPage?t=W.TemplateType.ListReportObjectPageV4:[W.PageTypeV4.CustomPage,W.PageTypeV4.FPMCustomPage].includes(n)&&(t=W.TemplateType.FreestylePageV4);return t}o(Ou,"determineV4PageTemplateType");function jK(e){let t;for(let n in e){let i=e[n];if(t=Ou(i),t)break}return t}o(jK,"determineV4TemplateFromPages");function $K(e,t){let n=e[W.ManifestSection.ui5].routing&&e[W.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return ae(t,{severity:W.LogSeverity.Info,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.ui5,"routing"]}}),W.TemplateType.ListReportObjectPageV4;let i=jK(n);return i||ae(t,{severity:W.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:W.ManifestSection.ui5}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.ui5,"routing","targets"]}}),i}o($K,"determineV4Template");function dc(e,t,n){let i;return e[W.ManifestSection.ovp]?i=W.TemplateType.OverviewPageV2:t===W.FioriElementsVersion.v2?i=UK(e,n):t===W.FioriElementsVersion.v4&&(i=$K(e,n)),i}o(dc,"getTemplateTypeFromManifest");function Ta(e,t,n){e!=null&&e.ID?(t.title=W.FACETTITLEPREFIX+e.ID,t[W.SchemaTag.keys]=[{name:W.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[W.SchemaTag.keys]=[{name:W.SchemaKeyName.id,value:n.replace(W.UIVOCABULARYALPHADOT,"")}])}o(Ta,"addSectionTitle");function ns(e,t,n){e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(ns,"addSectionDescription");function Rl(e,t,n){var i,r;Ta(e,t,n),ns(e,t,n),!(e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}o(Rl,"addTargetTitleAndSectionDescription");function ID(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(ID,"addChartFacetID");function wo(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[W.SchemaTag.isViewNode]=!0,i[W.SchemaTag.annotationPath]=t.annotationPath,Rl(t,i,n),i}o(wo,"createDefaultSection");function OD(e,t,n,i=W.FioriElementsVersion.v2,r=!1){var l,u;let a=ii(W.UIVOCABULARY,t),s=[];if(e){let p=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.Facets);return p&&(s=p.reduce(function(g,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return g;let h=ED(m,e,t,n,i,!0);return h&&g.push(h),g},s)),s}}o(OD,"getObjectPageFacetSection");var is=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(u){let p=a&&a===u?r:u.replace(/\?\?/g,"/");if(!(!s[p]&&(a===u&&(p=a),!s[p]))){if(Object.keys(s[p]).length===0||i&&i[i.length-1]===p&&n){Array.isArray(s)?s.splice(Number(p),1):delete s[p],l.pop(),is(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),qb=o(e=>e===W.SchemaType.FreestylePage?W.PageTypeV2.CustomPage:e===W.SchemaType.FPMCustomPage?W.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),_t=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case W.SchemaType.Application:{i.filename="App",i.path=`./${W.DirName.Schemas}/${i.filename}`;break}case W.SchemaType.ListReport:case W.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:qb(e),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}case W.PageTypeV4.FPMCustomPage:case W.SchemaType.FPMCustomPage:{i.filename=n?`${W.SchemaType.FPMCustomPage}_${n}`:qb(W.SchemaType.FPMCustomPage),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}default:{i.filename=qb(e),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function Tm(e,t,n,i){if(e===W.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o(Tm,"generatePageId");function rS(e,t,n){let i=t==null?void 0:t.properties,r=t==null?void 0:t.required;if(!i&&(t!=null&&t.$ref)){let s=t==null?void 0:t.$ref,l=e.definitions[s.split($)[1]];typeof l=="object"&&(i=l.properties,r=l.required)}if(!i||Object.keys(i).length===0)return[];let a=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(u=>l[u]!==void 0)&&a.push(s)}return a}o(rS,"findMatchingKeysByAdditionalProperties");function BK(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split($)[1],s=t.definitions[a];if(typeof s=="object"&&typeof n=="object"){let l=s[AD];if(l)r.includes(n[l])&&i.push(a),n[l]===void 0&&s[IK]&&i.push(a);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=rS(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length||Object.keys(n).length===0&&u.length)&&i.push(a)}}}o(BK,"fillArrayFromAnyOfReference");function HK(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split($)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{BK(r,n,t,i)}),i.length===0))return;return i}o(HK,"fillArrayFromPropertyDefinition");function GK(e){return e.replace(W.UIVOCABULARYDOT,"")}o(GK,"extractUIAnnotationType");function WK(e,t,n,i,r,a,s,l){var p,g,m,h,S;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(u.targetDefinition=t.definitions[b],((p=u==null?void 0:u.targetDefinition)==null?void 0:p.dataType)!==GK(ct.UIAnnotationTypes.DataFieldForActionGroup)&&((g=u==null?void 0:u.targetDefinition)!=null&&g.$ref)||((m=u==null?void 0:u.targetDefinition)==null?void 0:m.type)==="array")return u=Mo(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(M=>{M!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[M].properties})}),u.title=(h=u==null?void 0:u.targetDefinition)!=null&&h.title?u.targetDefinition.title:n;let O=b==null?void 0:b.split("<")[0],N=i||{};u.configObject=a.createInstance(s,O,N,(S=u==null?void 0:u.targetDefinition)==null?void 0:S[AD])}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}o(WK,"determineNextDefinitionFromDefinitionArray");function Mo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Mo(e,t,n,i.items,r,a,s),l;let u=HK(i,n,e);if(u)return l=WK(u,e,t,n,r,a,s,i),l}o(Mo,"getNextTargetDefinition");var oS=o((e,t,n)=>{let i=e.slice();return t.forEach((r,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[a]=(0,bD.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function vm(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(vm,"convertEnumToCSV");function Zi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Zi,"convertActionKeyToStableId");function on(e){return e==null?void 0:e.split($)[1]}o(on,"getDefinitionKey");function bm(e){return`#/definitions/${e}`}o(bm,"getDefinitionsRef");function Sm(e){return e instanceof Error?e.message:String(e)}o(Sm,"getErrorMessage");function gc(e,t){return e==null?void 0:e.includes(t)}o(gc,"isFeatureSupported");function ko(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(ko,"updatePropertyIndices");function Am(e,t){let n=e;for(let i of t)if(i!==void 0)if(typeof n=="object"&&i in n)n=n[i];else return;return n}o(Am,"getJSONPropertyByPath");function RD(e){return e=e.replace(W.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(RD,"removeNamespaces");function Ll(e){return e=e.replace(W.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(Ll,"replaceNamespaces");function va(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith($))return t.substring($.length)}o(va,"getRefType");function pm(e){if(e===W.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return W.PageTypeV4.FPMCustomPage;if(e!=null&&e.startsWith(`${W.v4.FE_NAMESPACE_V4}.`)){let t=e.split("."),n=t[t.length-1];if(n in W.PageTypeV4)return W.PageTypeV4[n]}}o(pm,"convertTemplateNameToPageTypeV4");function Em(e,t){if(e===t)return!0;let n=pm(e);return n?n===pm(t):!1}o(Em,"compareTemplateNames");var Oo=require("@sap-ux/vocabularies-types/vocabularies/UI"),se=te(ce());var er=te(ce());var Jt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Pm=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),qn=o((e,t)=>{let n,i=er.FACETTITLEPREFIX;return t!==void 0&&t.includes(i)?n=t.split(i)[1]:n=e.replace(new RegExp("/@","g"),"::").replace(/@com.sap/g,"com.sap"),n},"convertSectionId");function KK(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o(KK,"escapeId");var LD=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(LD||{}),ND=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(ND||{});function XK(e,t,n){let i;return e=e.map(function(r){if(r===er.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===er.PropertyName.sections)return i=t[a+1],t[a+1]=qn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(XK,"mapBreadcrumbs");var aS=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=XK(t,s,r)),s[0]===er.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,er.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,er.VOCWITHSLASH):t[0]===er.PropertyName.table&&(a=t[0]);let u=s[s.length-1].replace(/::com.sap.vocabularies/g,er.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,er.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,g=u.indexOf(":::");return u.startsWith("DataField")&&g>-1?(u=u.replace("/",":2f"),p=`${e}template:::TableColumn:::${u.substring(0,g)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${u.substring(g+3)}`):(u=u.replace("/","_"),p=`${e}${t.join("::")}-${u}`),KK(p)},"buildColumnControlId"),tr=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function QK(e){let t=er.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(QK,"determinePattern");var sS=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split($)[1]]:a,u=a.description?a.description:l.description,p=QK(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(g=>{s.enum.indexOf(g)===-1&&s.enum.push(g)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},u&&(r[n].description=u,delete a.description)},"addPatternForBindingChangeOfEnum"),Yn=o((e,t,n)=>{sS(e,t,n)},"addPatternForBindingChangeOfEnumLR"),mt=o((e,t,n)=>{let i=Object.values(LD);sS(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ri=o((e,t,n)=>{let i=Object.values(ND);sS(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function mc(){}o(mc,"doNotDelete");var lte=te(DD());var cS=Symbol("specificationMetadataKey"),T=o(e=>Reflect.metadata(cS,e),"syncRule");function Dn(e,t){let n;return e&&(n=Reflect.getMetadata(cS,e,t)),n}o(Dn,"getReflectMetadata");function _D(e){let t;return e&&(t=Reflect.getMetadata(cS,e)),t}o(_D,"getReflectTypeMetadata");var nr=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),VD=Symbol("childId"),$t=o(e=>Reflect.metadata(VD,e),"childId"),xm=o((e,t)=>Reflect.getMetadata(VD,e,t),"getChildId"),Cm=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),qK=Symbol("descriptionSrcURL"),fe=o(e=>Reflect.metadata(qK,e),"descriptionSrcURL");var YK=Symbol("validityMetadataKey"),x=o(e=>Reflect.metadata(YK,e),"validity");function Nl(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(Nl,"getTextForDeprecated");var HD=te($D()),GD=te(ce());var WD=HD.default.change,BD={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function KD(e,t){let n="";try{for(let i in BD)e[i]===void 0&&(e[i]=BD[i]);n=WD.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(KD,"createChangeString");function br(e){try{return WD.parse(e)}catch{return!1}}o(br,"parseChangeString");function XD(e,t,n,i,r){let a=n.layer?n.layer===GD.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:a};return e[i]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,i):e[i].toString().startsWith("{")?(s.content.newBinding=e[i],s.type="propertyBindingChange"):s.content.newValue=e[i]:s.content.newValue=null,s}o(XD,"fillFlexChangeContent");function Im(e,t){return KD(e,t)}o(Im,"exportToFlexChange");var hc=te(ce());function Fl(e,t,n,i,r,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let u=l(t,r,n,a);u!==void 0&&(i[n]=u)}else t[s]!==void 0&&(i[n]=t[s])}o(Fl,"importProperty");function Om(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(ae(i,{severity:hc.LogSeverity.Warning,message:Nl(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(Om,"checkDeprecatedProperties");function lS(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split($)[1]];return lS(n,t)}else return e.title?e.title.startsWith(hc.FACETTITLEPREFIX)?e.title.split(hc.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(lS,"getSectionTitle");function Rm(e){let t=e.split(`${hc.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(Rm,"getTargetFromCustomColumnRef");function Gr(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(Gr,"removeEmptyStructure");var Vt=require("@sap-ux/vocabularies-types/vocabularies/UI");var jo=require("@sap-ux/vocabularies-types/vocabularies/UI");var Sa=require("@sap-ux/vocabularies-types/vocabularies/UI");var QD=te(ce()),ee=te(ce()),qD=require("path");function Ot(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let g in n.properties){let m=Dn(e,g);if(m!=null&&m.manifest){let h=m.manifest.path([i],t,p,...r);l=Vo(t,h,a,p,!0),l&&Object.keys(l).length>0&&(Fl(m,l,g,e,a,r),Om(u,l,h,s))}}}o(Ot,"importSettingsOfObject");var dS="DataFieldForActionGroup";function iX(){return([e,t],[n,i])=>t[ee.SchemaTag.propertyIndex]-i[ee.SchemaTag.propertyIndex]}o(iX,"sortByPropertyIndex");function Ru(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(iX())}o(Ru,"sortPropertiesRecords");function rX(e){let t;return typeof e=="object"?"header"in e?t=e.header:"text"in e?t=e.text:"title"in e?t=e.title:"label"in e&&(t=e.label):typeof e=="string"&&(t=e),t}o(rX,"getExtensionText");function fS(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||ee.v4.Placement.After)===ee.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(fS,"addExtensionToSortedArray");function oX(e,t,n,i,r){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var u,p,g;return((u=l.position)==null?void 0:u.placement)==="Before"&&((p=l.position)==null?void 0:p.anchor)===((g=n.position)==null?void 0:g.anchor)})===-1&&(i.splice(i.length,0,[t,r]),delete e[t])}o(oX,"addRemainingTargetByBefore");function YD(e,t,n,i){let r=t.includes(ee.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=rX(e);return{$ref:`${$}${r}`,description:a,keys:[{name:ee.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(YD,"getExtensionDetails");function uS(e,t,n,i,r=!1){var l,u;let a=Object.entries(e).length;for(let p of Object.keys(e)){let g=e[p],m=YD(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let h=n.findIndex(S=>S[0]===g.position.anchor);h>-1?(fS(g,n,h,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(ae(i,{severity:Di.LogSeverity.Error,message:Q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&oX(e,p,g,n,m)}else r&&(fS(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?uS(e,t,n,i):s>0&&uS(e,t,n,i,!0)}o(uS,"adjustCustomExtReferringToCustomExt");function aX(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||ee.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===ee.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(aX,"getExtensionAnchor");function sX(e,t){var i;let n=[];for(let r in e){let a=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===a);a&&!s&&n.push(r)}return n}o(sX,"getLocalExtensionsToSkip");function cX(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||ee.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let a=o((p,g)=>{for(let m of n){let h=t[m[0]];if(g(h))break;p++}return p},"findNextIndex"),s=0;return i===ee.v4.Placement.Before?s=a(0,p=>!p):s=a(-1,p=>{var g,m;return!!(p&&((g=p==null?void 0:p.position)!=null&&g.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==ee.v4.Placement.Before))}),s>-1?s:0}o(cX,"getExtensionIndexByMergedApproach");function lX(e,t,n,i,r=!1){return r?cX(e,t,n):n.findIndex(a=>a[0]===i)}o(lX,"getExtensionIndex");function fX(e,t,n,i,r){ae(e,{severity:Di.LogSeverity.Error,message:Q.t("INVALIDEXTENSION",{id:t}),location:{path:ee.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(fX,"handleInvalidExtension");function ba(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=sX(l,s);if(!l)return[];for(let p of Object.keys(l)){let g=l[p];if(u!=null&&u.includes(p))continue;let m=YD(g,n,p,ee.ActionType.Custom);if(typeof g!="object"){fX(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let h=aX(g,s);if(h){let S=lX(g,e,t,h,a);S>-1&&(fS(g,t,S,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&uS(l,n,t,r),t}o(ba,"addExtensionToArray");function gS(e,t){let n=[];for(let i of Object.keys(e.properties))i.indexOf("::")>-1&&n.push(i.substring(i.indexOf("::")+2));t.properties.properties.items.enum=n}o(gS,"addEnumForProperties");function uX(e,t,n,i=ee.DefinitionName.CustomColumn){if(i===ee.DefinitionName.CustomColumn||i.indexOf(ee.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];gS(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[ee.SchemaTag.propertyIndex]=r}}o(uX,"addColumnPropertyIndexAndEnum");function yc(e,t,n,i=ee.DefinitionName.CustomColumn,r,a){var h,S,b,O;let s=r||ee.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Ru(l),p=a?a.replace(/::/g,"/"):`@${Sa.UIAnnotationTerms.LineItem}`,g=(O=(b=(S=(h=t.options)==null?void 0:h.settings)==null?void 0:S.controlConfiguration)==null?void 0:b[p])==null?void 0:O.columns;g&&(u=ba(g,u,i,void 0,n)),uX(u,e,l,i);let m={};u.forEach(([N,M])=>m[N]=M),e.definitions[s].properties=m}o(yc,"addCustomColumnDefinition");function zD(e,t){let n=t.$Type===Sa.UIAnnotationTypes.DataFieldForActionGroup,i;return e.lineItemId.startsWith(ee.DefinitionName.LineItemsOfView)?i=n?ee.DefinitionName.ViewToolBarActionGroup:ee.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(ee.DefinitionName.LineItems)?i=n?ee.DefinitionName.ToolBarActionGroup:ee.DefinitionName.ToolBarAction:i=n?ee.DefinitionName.ObjectPageToolBarActionGroup:ee.DefinitionName.ObjectPageToolBarAction,i}o(zD,"determineActionDefinitionName");function pX(e,t,n){e[ee.SchemaTag.keys]=[],t[ee.SchemaKeyName.semanticObject]&&e[ee.SchemaTag.keys].push({name:ee.SchemaKeyName.semanticObject,value:t[ee.SchemaKeyName.semanticObject]});let{key:i,ns:r}=Ac(n,!0);e[ee.SchemaTag.keys].push({name:ee.SchemaKeyName.action,value:i}),r&&(e[ee.SchemaTag.target]=r)}o(pX,"addTargetAndKeysOfAction");function JD(e,t=!0){let{lineItemData:n,actions:i,lineItemPath:r,lineItemRecord:a,index:s}=e;if(a.Determining===!0)return;let l=zD(n,a),u=ai(a,n.entityType),p=a.$Type.split(`${ee.UIVOCABULARY}.`)[1],g=typeof a.Action=="string"?a.Action:a.Action.path,m=Fm(g),h=i.properties[`${p}::${m}`]={description:u};if(t?h.$ref=i1(l,lt(m),n.appSchema,r):(h.properties={},h.type="object",h.isViewNode=!0),h[ee.SchemaTag.propertyIndex]=s,h[ee.SchemaTag.dataType]=Kr(a),pX(h,a,g),h[ee.SchemaTag.annotationType]=a.$Type,t){let S=h.$ref.replace($,""),b=vt(l,S,n.appSchema,!1);b[ee.SchemaTag.annotationPath]=`${r}/${s}`}else h[ee.SchemaTag.annotationPath]=`${r}/${s}`}o(JD,"addActionRecordToSchema");function ZD(e,t=!0){let{lineItemData:n,lineItemRecord:i,lineItemPath:r,index:a,actions:s}=e,l=zD(n,i),u=Wr(i),p={};t?(s.properties[`${u}`]={$ref:oi(l,lt(u))},p=vt(l,lt(u),n.appSchema)):s.properties[`${u}`]=p,Pa(p,Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),p.properties={},p.description=ai(i,n.entityType),p.type="object",p.isViewNode=!0,p[ee.SchemaTag.propertyIndex]=a,p[ee.SchemaTag.dataType]=Kr(i),p[ee.SchemaTag.annotationPath]=`${r}/${a}`,(i.Actions??[]).forEach((g,m)=>{let h={...e,lineItemRecord:g,lineItemPath:`${p[ee.SchemaTag.annotationPath]}/Actions`,actions:p,index:m};JD(h,t)})}o(ZD,"addGroupActionRecordToSchema");function mS(e){let{lineItemRecord:t,lineItemDefinition:n}=e;t.Inline!==!0||t.Determining===!0?JD(e,!n):hS(e)}o(mS,"addLineItemActionDefinition");function hS(e){var g;let{lineItemData:t,lineItemRecord:n,lineItemDefinition:i,lineItemPath:r,index:a,columnDefinitionName:s}=e,l=n.$Type===Sa.UIAnnotationTypes.DataFieldForAction?`${s}Action`:s,u=t.lineItemId;if((g=n.Target)!=null&&g.value){let m=`@${ii(ee.UIVOCABULARY,t.oDataServiceAVT)}.`;n.Target.value=n.Target.value.replace(m,"@")}let p=Wr(n).replace(/\//g,"::");if(p){let m=i;m||(m=t.appSchema.definitions[u]);let h=m.properties,S={description:ai(n,t.entityType)};i?(S.properties={},S.type="object",S.isViewNode=!0):S.$ref=$+l,S[ee.SchemaTag.annotationType]=n==null?void 0:n.$Type,S[ee.SchemaTag.annotationPath]=`${r}/${a}`,S[ee.SchemaTag.propertyIndex]=a,S[ee.SchemaTag.dataType]=Kr(n),h[p]=S,Vm(n,h,p)}}o(hS,"addLineItemRecordToSchema");function yS(e,t,n,i,r=ee.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{let l={lineItemData:e,actions:t,lineItemPath:n,lineItemRecord:s,index:a,lineItemDefinition:i,columnDefinitionName:r};rs.getStrategy(s.$Type).addLineItemDefinition(l),a++})}o(yS,"appendLineItemsToSchema");function Tc(e,t=ee.DefinitionName.TableColumn,n=ee.DefinitionName.CustomColumn,i=ee.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=Dm(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);yS(e,r,a,void 0,t)}o(Tc,"addLineItemsTypeToSchema");function vc(e,t,n,i=ee.DefinitionName.Position,r){var p,g,m,h,S;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let b in a)b!=="custom"&&s.push(b);let l=t!==ee.DefinitionName.LineItems?r:`@${Sa.UIAnnotationTerms.LineItem}`,u=(S=(h=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:h[l])==null?void 0:S.columns;if(u)for(let b in u)s.indexOf(b)===-1&&s.push(b);if(s.length>0){let b=e.definitions[i].properties.anchor;Ea(s,b)}}o(vc,"addFragmentEnumForAnchor");function uo(e,t,n=ee.DefinitionName.CustomActionPosition){os(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(uo,"addEnumForActionAnchor");function Lm(e,t,n,i){var a;let r;for(let s in e){let l=((a=e[s].options)==null?void 0:a.settings)||{};if((i&&l.contextPath===i||(n==null?void 0:n.name)&&l.entitySet===n.name)&&(Em(t,e[s].name)||t===ee.v4.FE_TEMPLATE_V4_ALP&&e[s].name===ee.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[s];break}}return r}o(Lm,"findPageV4");function e1(e,t){let n,i=e.properties[ee.PropertyName.table];return t.templateType===ee.TemplateType.AnalyticalListPageV4?(n=ee.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${$}${ee.DefinitionName.ALPTableView}`,delete e.definitions[ee.DefinitionName.Table],delete e.definitions[ee.DefinitionName.LRChartView],delete e.definitions[ee.DefinitionName.LRTableView],delete e.definitions[ee.DefinitionName.MultiTableModeV4]):t.templateType===ee.TemplateType.ListReportObjectPageV4&&(n=ee.DefinitionName.Table,delete i.anyOf,i.$ref=`${$}${ee.DefinitionName.Table}`,e.definitions[n].properties[ee.PropertyName.annotationPath][ee.SchemaTag.hidden]=!0,delete e.definitions[ee.DefinitionName.ALPTableView],e.properties[ee.PropertyName.defaultPath][ee.SchemaTag.hidden]=!0),n}o(e1,"alignSchemaWithTemplateType");function Aa(e,t,n,i=ee.DefinitionName.CustomTableAction,r="",a=""){var g,m,h,S,b,O,N,M,G,j;let s=e.definitions[r];if(!s)return;let l=Ru(s),u;a?i.indexOf(ee.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===ee.DefinitionName.CustomFormActionOP?u=`@${Sa.UIAnnotationTerms.FieldGroup}`:u=`@${Sa.UIAnnotationTerms.LineItem}`;let p;if(r.includes(ee.DefinitionName.ObjectPageCustomSectionActions)?p=(O=(b=(S=(h=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:h.body)==null?void 0:S.sections)==null?void 0:b[u])==null?void 0:O.actions:p=(j=(G=(M=(N=t.options)==null?void 0:N.settings)==null?void 0:M.controlConfiguration)==null?void 0:G[u])==null?void 0:j.actions,p&&(l=ba(p,l,i,"press",n)),l){for(let Z=0;Z<l.length;Z++)l[Z][1][ee.SchemaTag.propertyIndex]=Z;let re={};l.forEach(([Z,oe])=>re[Z]=oe),e.definitions[r].properties=re}}o(Aa,"addCustomActionDefinition");function Nm(e,t,n,i=ee.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,h,S,b,O,N;let a=e.definitions[r];if(!a)return;let s=Ru(a),l;[ee.DefinitionName.CustomHeaderAction,ee.DefinitionName.CustomHeaderActionOP].includes(i)?l=(h=(m=(g=(p=t.options)==null?void 0:p.settings)==null?void 0:g.content)==null?void 0:m.header)==null?void 0:h.actions:l=(N=(O=(b=(S=t.options)==null?void 0:S.settings)==null?void 0:b.content)==null?void 0:O.footer)==null?void 0:N.actions,l&&(s=ba(l,s,i,"press",n));let u={};if(s){for(let M=0;M<s.length;M++)s[M][1][ee.SchemaTag.propertyIndex]=M;s.forEach(([M,G])=>u[M]=G)}e.definitions[r].properties=u}o(Nm,"addHeaderFooterCustomActionDefinition");function bc(e,t,n){let i=Am(e,[ee.ManifestSection.ui5,"routing","targets"]);if(!i){ae(n,{severity:Di.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5,"routing"]}});return}let r=Am(i,[t]);if(!r){ae(n,{severity:Di.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:t}),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5,"routing"]}});return}return r}o(bc,"getManifestPage");function Sc(e,t,n,i,r){var a,s;if(r){let l=((a=n["sap.app"])==null?void 0:a.id)||"",u="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),g=p.pop();g=`${g}.${i}.${u}`;let m=(0,qD.join)(...p,g),h=e.find(S=>S.dataSourceUri.endsWith(m));if(h){let S=(s=t.options)==null?void 0:s.settings;return{file:h,relativeFilePath:m,connection:{contextPath:S==null?void 0:S.contextPath,entitySet:S==null?void 0:S.entitySet}}}}}o(Sc,"getPageCustomExtensionFile");function Uo(e,t,n,i){let r=bc(n,t,i),a=Am(r,["options","settings","viewName"]);return r&&typeof a=="string"?Sc(e,r,n,"view",a):void 0}o(Uo,"getPageCustomViewFile");function t1(e,t,n,i,r,a,s){var g,m,h,S,b,O,N,M,G,j,re,Z;let l=Ru(t),u=new Map;if(l=l.map(oe=>{let Pe=_m(e,oe[1],oe[0],{keyProperties:[ee.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(Pe.const,oe[0]),[Pe.const,oe[1]]}),a){let oe=(b=(S=(h=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:h.body)==null?void 0:S.sections)==null?void 0:b[a];oe&&"subSections"in oe&&(l=ba(oe.subSections,l,i,"template",s,r))}else if(i.includes(ee.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let oe=(M=(N=(O=n.options)==null?void 0:O.settings)==null?void 0:N.content)==null?void 0:M.header;oe&&"facets"in oe&&(l=ba(oe.facets,l,i,"template",s,r))}else{let oe=(Z=(re=(j=(G=n.options)==null?void 0:G.settings)==null?void 0:j.content)==null?void 0:re.body)==null?void 0:Z.sections;oe&&(l=ba(oe,l,i,"template",s,r))}for(let oe=0;oe<l.length;oe++)l[oe][1][ee.SchemaTag.propertyIndex]=oe;let p={};l.forEach(([oe,Pe])=>{oe=u.get(oe)||oe,p[oe]=Pe}),t.properties=p}o(t1,"addCustomSectionDefinition");function n1(e,t,n){var l,u,p;let i=Ru(t),r=new Map;i=i.map(g=>{let m=_m(e,g[1],g[0],{keyProperties:[ee.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let a=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${Sa.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=ba(a.filterFields,i,ee.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][ee.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o(n1,"addCustomFilterFieldDefinition");function pS(e,t,n=!1){let{appSchema:i,factory:r,actionsInConfig:a,actionKey:s,manifest:l,routingId:u,manifestSectionId:p,targetAnnotation:g}=e,m=(t??"").split("<")[0],h=r.createInstance(QD.PageTypeV4.ObjectPage,m),S=[s.replace("/","??")];if(g&&S.push(g),h){let b=a[s]=h;Ot(b,l,i.definitions[t],u,S,p),n||Gr(a,s)}}o(pS,"importActionToConfigurationObject");function dX(e,t){let{actionPropertyDefinition:n}=e,i=on(t.$ref||n.$ref);pS(e,i)}o(dX,"importSingleActionSettingsOfReference");function gX(e,t){let{actionPropertyDefinition:n,appSchema:i,actionsInConfig:r,actionKey:a}=e,s=on(t.$ref??n.$ref);pS(e,s,!0);let l=r[a];Pa(l,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let{properties:u}=t;for(let p in u){let g=u[p],m=on(g.$ref),h=i.definitions[m],S=on(h.$ref??g.$ref),b={...e,actionsInConfig:l,actionKey:p};pS(b,S)}Gr(r,a)}o(gX,"importGroupActionSettingsOfReference");function Dl(e){let{actionPropertyDefinition:t,appSchema:n}=e,i=on(t.$ref),r=n.definitions[i];r.dataType===dS?gX(e,r):dX(e,r)}o(Dl,"importActionSettingsOfReference");var OS=class OS{addDefinition(t){r1(t)}addLineItemDefinition(t){hS(t)}};o(OS,"DataFieldStrategy");var po=OS,RS=class RS extends po{generateStableId(t){return xa("DataFieldForAction::"+t.Action)}generateDescription(t,n){let i=ya(t.Label,n);return mm(t,i)}addDefinition(t){Lu(t)}addLineItemDefinition(t){mS(t)}};o(RS,"DataFieldForActionStrategy");var TS=RS,LS=class LS extends po{generateStableId(t){return xa("DataFieldForActionGroup::"+t.ID)}generateDescription(t,n){let i=ya(t.Label,n);return t.Label??t.ID??i}addDefinition(t){Lu(t)}addLineItemDefinition(t){var n;ZD(t,!((n=t.lineItemData)!=null&&n.isMacro))}};o(LS,"DataFieldForActionGroupStrategy");var vS=LS,NS=class NS extends po{generateStableId(t){return"DataFieldForIntentBasedNavigation::"+US(t)}generateDescription(t,n){let i=ya(t.Label,n);return mm(t,i)}addDefinition(t){Lu(t)}addLineItemDefinition(t){mS(t)}};o(NS,"DataFieldForIntentBasedNavigationStrategy");var bS=NS,FS=class FS extends po{generateStableId(t){var i,r;let n=((i=t.Target)==null?void 0:i.$AnnotationPath)??((r=t.Target)==null?void 0:r.value)??"";return"DataFieldForAnnotation::"+xa(n)}generateDescription(t,n){var a,s,l,u;let i=Iu(t,n);return ya(t.Label,n)||i||((s=(a=t==null?void 0:t.Target)==null?void 0:a.$target)==null?void 0:s.Title)||((u=(l=t==null?void 0:t.Target)==null?void 0:l.value)==null?void 0:u.split("UI.v1.")[1])}};o(FS,"DataFieldForAnnotationStrategy");var SS=FS,DS=class DS extends po{generateStableId(t){let n="DataFieldWithAction::";return"Value"in t&&t.Value&&(n+=as(t.Value)+"::"),n+=t.Action,xa(n)}generateDescription(t,n){let i=ya(t.Label,n);return mm(t,i)}};o(DS,"DataFieldWithActionStrategy");var AS=DS,_S=class _S extends po{generateStableId(t){return xa("DataField::"+as(t.Value))}generateDescription(t,n){let i=ya(t.Label,n);return zb(t,n,i)}};o(_S,"DataFieldStrategyDefault");var ES=_S,VS=class VS extends po{generateStableId(t){let n="DataFieldWithIntentBasedNavigation::";return n+=as(t.Value)+"::",n+=US(t),xa(n)}generateDescription(t,n){return Iu(t,n)||t.Value.path}};o(VS,"DataFieldWithIntentBasedNavigationStrategy");var PS=VS,wS=class wS extends po{generateStableId(t){let n="DataFieldWithNavigationPath::"+as(t.Value);return t.Target&&t.Target.$NavigationPropertyPath&&(n+="::"+t.Target.$NavigationPropertyPath),xa(n)}generateDescription(t,n){let i=ya(t.Label,n);return zb(t,n,i)}};o(wS,"DataFieldWithNavigationPathStrategy");var xS=wS,MS=class MS extends po{generateStableId(t){return xa("DataFieldWithUrl::"+as(t.Value))}generateDescription(t,n){let i=Iu(t,n);return ya(t.Label,n)||i||(typeof t.Value=="string"?t.Value:t.Value.path)}};o(MS,"DataFieldWithUrlStrategy");var CS=MS,kS=class kS{constructor(){this.strategies=new Map,this.registerStrategy(jo.UIAnnotationTypes.DataFieldForAction,new TS),this.registerStrategy(jo.UIAnnotationTypes.DataFieldForActionGroup,new vS),this.registerStrategy(jo.UIAnnotationTypes.DataFieldForIntentBasedNavigation,new bS),this.registerStrategy(jo.UIAnnotationTypes.DataFieldForAnnotation,new SS),this.registerStrategy(jo.UIAnnotationTypes.DataFieldWithAction,new AS),this.registerStrategy(jo.UIAnnotationTypes.DataField,new ES),this.registerStrategy(jo.UIAnnotationTypes.DataFieldWithIntentBasedNavigation,new PS),this.registerStrategy(jo.UIAnnotationTypes.DataFieldWithNavigationPath,new xS),this.registerStrategy(jo.UIAnnotationTypes.DataFieldWithUrl,new CS)}registerStrategy(t,n){this.strategies.set(t,n)}getStrategy(t){return this.strategies.get(t)}};o(kS,"DataFieldStrategyContext");var IS=kS,rs=new IS;function Fm(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/[/@()#*]/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(Fm,"replaceSpecialChars");var xa=o(function(e){return Fm(RD(e))},"prepareId");function mX(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(mX,"evaluateConcat");function as(e){if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if((e==null?void 0:e.$Function)==="odata.concat")return mX(e);if(e&&typeof e=="string")return Fm(e.replace(/ /g,"_"))}o(as,"getStableIdPartFromValue");var US=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),Wr=o(function(e){let t=rs.getStrategy(e.$Type);return t==null?void 0:t.generateStableId(e)},"getStableIdPartFromDataField");var ue=te(ce());var De=te(ce());var ir=require("@sap-ux/vocabularies-types/vocabularies/UI"),c1=require("path"),l1=te(uc());var wm="ResponsiveTableWithMultiSelect<LineItems>",Mm="ResponsiveTableWithInlineDelete<LineItems>",hX="TreeTable<LineItems>",yX="AnalyticalTable<LineItems>",TX="GridTable<LineItems>",jS=[wm,Mm,hX,yX,TX],o1=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],a1="template::",km="template:::ObjectPageAction:::";function vX(e,t,n){e.definitions[De.DefinitionName.LineItems]&&(e.definitions[De.DefinitionName.LineItems].properties.custom={$ref:`${$}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${$}${n}`},description:"Custom Columns"},e.definitions[t][De.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[De.SchemaTag.artifactType]=De.ArtifactType.Manifest)}o(vX,"addCustomColumnDefinition");function bX(e,t){let n;return e==="TableColumnActionIntentBased"?n=eS(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=lt(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===ir.UIAnnotationTypes.DataFieldForAction?n=lt(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=lt(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(bX,"getActionId");function $S(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=bX(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=ai(n.lineItemRecord,n.entityType);t.properties[l]={$ref:$+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=Ac(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[u]={...JSON.parse(JSON.stringify(e.definitions[a])),description:p,keys:[{name:"Action",value:g}],annotationPath:`${n.lineItemPath}/${r}`},m&&(e.definitions[u][De.SchemaTag.target]=m)):(e.definitions[u]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[u][De.SchemaTag.isViewNode]=!0,e.definitions[u][De.SchemaTag.keys]=[{name:De.SchemaKeyName.action,value:g}],m&&(e.definitions[u][De.SchemaTag.target]=m),e.definitions[u][De.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}o($S,"handleActionRecord");function SX(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===ir.UIAnnotationTypes.DataFieldForAction||t.$Type===ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===ir.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(SX,"getColumnActionType");function AX(e,t){let n=[];if(!(e.$Type!==ir.UIAnnotationTypes.DataFieldForAction&&e.$Type!==ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===ir.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===ir.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===ir.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),SX(t,e,n),n}o(AX,"getActionType");function f1(e,t,n){let i=eS(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:$+De.DefinitionName.TableColumn,description:ai(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Bm(r.properties[i],e.lineItemRecord),Vm(e.lineItemRecord,r.properties,i)}}o(f1,"generateGenericColumn");function EX(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{$S(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&$S(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{$S(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":f1(i,t,r)}}o(EX,"handleAnyAction");function Nu(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(Nu,"retrieveNameWithoutVocabularyFromVisualization");function _l(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=Dm(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},h=AX(g,r);h?h.forEach(S=>{EX(S,t,s,m,p,l,r)}):f1(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${$}${a}`})}o(_l,"addLineItemsType");function PX(e,t,n){var r,a;let i=(a=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:a.leadingProperty;if(i){let s=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=s==null?void 0:s.reduce((l,u)=>(l.includes(u.name)||l.push(u.name),l),[])}}o(PX,"addListReportLeadingProperties");function xX(e,t,n,i){var s,l,u,p,g,m;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let a=(g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:g.variants;if(a){let h=[];for(let S in a){let b=(m=a[S])==null?void 0:m.key;b!==void 0&&!h.includes(b)&&h.push(b)}Ea(h,r)}}o(xX,"addTabkeyEnum");function Um(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(u=>{let p=u.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let g=JSON.parse((0,l1.xml2json)(u.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!g||g.Column||g["table:Column"]||g["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!g||!g.Column&&!g["table:Column"]&&!g["table:AnalyticalColumn"]&&!g["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+c1.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),Ea(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(Um,"addFragmentEnum");function Vl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){vX(e,a,s),PX(e,t,s),xX(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;Um(e,r,u,"fragmentName",s),Um(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),Um(e,r,u,"cellsFragmentName",s),Um(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(Vl,"addTableColumnExtensions");function u1(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(u1,"removeElementsFromEnum");function jm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=vr(n==null?void 0:n.fullyQualifiedName,ir.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${lt(s.value)}>`,p=Kr(s);s.type==="PropertyPath"&&(l=gm(s,n)),i.properties[s.value]={$ref:$+u},i.properties[s.value][De.SchemaTag.propertyIndex]=a,e.definitions[u]={type:"object",description:l,additionalProperties:!1},e.definitions[u][De.SchemaTag.isViewNode]=!0,e.definitions[u][De.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[u][De.SchemaTag.dataType]=p,e.definitions[u][De.SchemaTag.keys]=[{name:De.SchemaKeyName.value,value:`${s.value}`}],e.definitions[u][De.SchemaTag.annotationPath]=`${i[De.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[u].$ref=`${$}SelectionFieldDateSettings`:e.definitions[u].properties={},a++})}o(jm,"addSelectionFields");function p1(e,t){for(let n of t.entityProperties)e.push(n.name)}o(p1,"addEntityPropertiesToEnum");function $m(e){var t,n,i,r;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((r=(i=e.annotations)==null?void 0:i.Common)!=null&&r.DraftNode)}o($m,"isDraftEnabled");function d1(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.DeleteRestrictions)==null?void 0:i.Deletable)!==!1}o(d1,"isEntityDeletable");function g1(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.UpdateRestrictions)==null?void 0:i.Updatable)!==!1}o(g1,"isEntityUpdatable");function wl(e,t=!1,n){let i=De.DefinitionName.HeaderActionsStandard,r=De.DefinitionName.HeaderActionStandard;t&&(i=De.DefinitionName.ObjectPageHeaderActions,r=De.DefinitionName.ObjectPageHeaderActionStandard);let a=e.definitions[i];a[De.SchemaTag.isViewNode]=!0,a.description="Actions",Object.entries((n||a).properties).forEach(([l,u])=>{let p=u.$ref.split($)[1],g=`${r}<${p}>`;a.properties[l]={$ref:`${$}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][De.SchemaTag.actionType]=De.ActionType.Standard})}o(wl,"addStandardHeaderActions");function m1(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split($)[1],a=`${De.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${$}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][De.SchemaTag.actionType]=De.ActionType.Standard}}o(m1,"addStandardFooterActionsOP");function Ml(e){var i,r,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?Q.t("NOUIANNOTATIONS",{entityType:t.name}):Q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});ae(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(Ml,"getUIAnnotationForEntitySet");function CX(e,t,n,i){if(e===ue.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Vt.UIAnnotationTypes.DataField:case Vt.UIAnnotationTypes.DataFieldForAnnotation:case Vt.UIAnnotationTypes.DataFieldWithNavigationPath:case Vt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===ue.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Vt.UIAnnotationTypes.DataField:case Vt.UIAnnotationTypes.DataFieldForAnnotation:case Vt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(CX,"copyFieldProperties");function HS(e,t,n,i){let r=e===ue.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===ue.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(HS,"determineFieldDefinitionName");function IX(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][ue.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][ue.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][ue.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][ue.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(IX,"addKeysTagForDataField");function OX(e,t,n){if(e.$Type===Vt.UIAnnotationTypes.DataField||e.$Type===Vt.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Vt.UIAnnotationTypes.DataFieldWithNavigationPath)IX(e,t,n);else if(e.$Type===Vt.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][ue.SchemaTag.keys]=[{name:"Target",value:Ll(e.Target.value)}],t.definitions[n][ue.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Vt.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][ue.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][ue.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][ue.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Vt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][ue.SchemaTag.keys]=[{name:ue.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][ue.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][ue.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(OX,"addKeysTagToField");function RX(e){var t,n;return e.$Type===Vt.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===Vt.UIAnnotationTypes.ConnectedFieldsType}o(RX,"isConnectedField");function LX(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===Vt.UIAnnotationTypes.ConnectedFieldsType){let u=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,g=u.length;for(let m in p){let h=p[m];if(typeof h=="object"&&"$Type"in h){let S=u.findIndex(b=>b===m);S===-1&&(S=g,g++),BS(e,t,h,`ConnectedFields::${a.qualifier}`,S.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(LX,"addConnectedFields");function h1(e,t,n){if(n)return n;let i=lt(t);return e.definitions[i].properties}o(h1,"getFieldsSchemaContainer");function GS(e,t){return e===ue.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::").splice(1).join("::"):t}o(GS,"getFieldReference");function BS(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){if(!n||!n.$Type)return;let g={appSchema:t,withActions:l,sectionType:e,field:n,targetID:i,containersSchema:u,key:r,version:s,section:a,entityTypeName:p};rs.getStrategy(n.$Type).addDefinition(g)}o(BS,"addField");function NX(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}o(NX,"determineTargetIdOfForm");function FX(e,t,n,i,r,a){if(e.base===ue.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&BS(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];BS(t,n,l,i,s,e,r)}}o(FX,"addFieldsToFormDefinition");function DX(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][ue.SchemaTag.keys]=[{name:ue.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][ue.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][ue.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][ue.SchemaTag.annotationPath]=vr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(DX,"addTagsToFormDefinition");function Hm(e,t,n,i,r,a){if(!t.target)return;let s=NX(t),l=lt(`${e}${ue.DefinitionName.Form}<${s}>`),u=lt(`${e}${ue.DefinitionName.Fields}<${s}>`),p=lt(`${e}${ue.DefinitionName.Actions}<${s}>`),g=!(t.base===ue.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${$}${l}`},e===ue.SectionType.Section&&g?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${$}${p}`},fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][ue.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},DX(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][ue.SchemaTag.isViewNode]=!0,FX(t,e,i,s,r,g),s}o(Hm,"handleForm");function WS(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),a=t.references.find(s=>s.alias===r);a&&(i=e.replace(n,a.namespace))}return i}o(WS,"replaceAlias");function Gm(e,t){let n=WS(e.Action??"",t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(Gm,"getActionNameAndId");function y1(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===ue.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:y1(a.pages,t)}}o(y1,"isFirstObjectPage");function Wm(e,t,n,i,r){var g,m;e.definitions[ue.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${ue.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${$}${ue.DefinitionName.ObjectPageFooter}`},e.definitions[ue.DefinitionName.ObjectPageFooter].properties[ue.PropertyName.actions]={$ref:`${$}${ue.DefinitionName.FooterActions}`};let a=e.definitions[ue.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[ue.SchemaTag.isViewNode]=!0;let s=ii(ue.UIVOCABULARY,t.serviceAVT),l=t.entitySet,u=t.entityType,p=s&&((m=(g=u==null?void 0:u.annotations)==null?void 0:g[s])==null?void 0:m.Identification);if(p){let h=p.fullyQualifiedName.replace(`@${Vt.UIAnnotationTerms.Identification}`,`/@${Vt.UIAnnotationTerms.Identification}`);a[ue.SchemaTag.annotationPath]=`/${h}`,i(u,e,a,p)}else u&&(a[ue.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${Vt.UIAnnotationTerms.Identification}`);n===ue.FioriElementsVersion.v2&&y1(r,t)&&!$m(l)&&m1(e,a),delete e.definitions[ue.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${ue.DefinitionName.ObjectPageFooter}<${ue.DefinitionName.ObjectPageFooterActions}>`]}o(Wm,"addFooterActions");function Km(e,t,n,i,r,a=!1){var m,h;let s=ue.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[ue.DefinitionName.ObjectPageHeader].properties[ue.PropertyName.actions]={$ref:`${$}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[ue.SchemaTag.isViewNode]=!0;let p=ii(ue.UIVOCABULARY,n.serviceAVT),g=p&&((h=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:h.Identification);g?u[ue.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${Vt.UIAnnotationTerms.Identification}`,`/@${Vt.UIAnnotationTerms.Identification}`):t&&(u[ue.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Vt.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&wl(e,!0,l)}o(Km,"addHeaderActions");function Xm(e,t){e.properties.header={$ref:`${$}${ue.DefinitionName.ObjectPageHeader}`},e.definitions[ue.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${ue.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[ue.DefinitionName.ObjectPageHeader][ue.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Vt.UIAnnotationTerms.HeaderInfo}`)}o(Xm,"addCommonHeaderSchema");function T1(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(T1,"determineEntitySetOfEntityType");function r1(e){let{appSchema:t,section:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:u}=e,p=Wr(r),g=GS(u,p),m=HS(u,p,a,g),h=h1(t,`${i}${ue.DefinitionName.Fields}<${a}>`,s.fields),S={};h[g]={$ref:`${$}${m}`,propertyIndex:parseInt(l)},RX(r)&&(S=LX(i,t,r,n,u)),v1(e,m,S)}o(r1,"addDataFieldDefinition");function Lu(e){let{appSchema:t,withActions:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:u}=e,p=Wr(r),g=GS(u,p),m=HS(u,p,a,g),h={};if(n&&i===ue.SectionType.Section){let S=h1(t,`${i}${ue.DefinitionName.Actions}<${a}>`,s.actions),b=S[g]={$ref:`${$}${m}`};b[ue.SchemaTag.propertyIndex]=parseInt(l)}_X(e,m,h),v1(e,m,h)}o(Lu,"addDataFieldForActionAndActionGroupDefinition");function _X(e,t,n){let{appSchema:i,field:r,version:a}=e;r.$Type===Vt.UIAnnotationTypes.DataFieldForActionGroup&&(r.Actions??[]).forEach(s=>{let l={...e,field:s,targetID:t,withActions:!1},u=Wr(s),p=GS(a,u),g=HS(a,u,t,p);Lu(l),n[p]=i.definitions[g]})}o(_X,"addGroupedActionsToDefinition");function v1(e,t,n={}){var u,p;let{appSchema:i,field:r,version:a,section:s,entityTypeName:l}=e;i.definitions[t]={type:"object",properties:n,description:ai(r,s.entityType),additionalProperties:!1},r.$Type===Vt.UIAnnotationTypes.DataFieldForActionGroup&&Pa(i.definitions[t],Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),OX(r,i,t),i.definitions[t][ue.SchemaTag.annotationPath]=`/${l}/${r.fullyQualifiedName.split(l)[1]}`,i.definitions[t][ue.SchemaTag.annotationType]=r.$Type,i.definitions[t][ue.SchemaTag.isViewNode]=!0,Bm(i.definitions[t],r),CX(a,i,r,t),r.$Type===Vt.UIAnnotationTypes.DataFieldForAction&&((u=i.definitions)!=null&&u[ue.DefinitionName.FormAction])&&(i.definitions[t].$ref=`${$}${ue.DefinitionName.FormAction}`,delete i.definitions[t].properties),r.$Type===Vt.UIAnnotationTypes.DataFieldForActionGroup&&((p=i.definitions)!=null&&p[ue.DefinitionName.ObjectPageFormActionGroup])&&(i.definitions[t].$ref=`${$}${ue.DefinitionName.ObjectPageFormActionGroup}`)}o(v1,"writeDefinitionToSchema");var Sr=require("@sap-ux/vocabularies-types/vocabularies/UI");var Ke=te(ce());function Ea(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(Ea,"addEnumToSchema");function Fu(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let r=[];for(let s in i){let l=i[s];if(t.indexOf(l.term)>-1){let u=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(u)===-1&&r.push(u)}}Ea(r,n)}o(Fu,"addEnumForValidAnnotations");function ss(e,t,n){let i=t.definitions[n].properties[Ke.SchemaTag.annotationPath],r=[Sr.UIAnnotationTerms.SelectionVariant,Sr.UIAnnotationTerms.SelectionPresentationVariant];Fu(e,r,i)}o(ss,"addEnumForSingleTabVariant");function b1(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[Sr.UIAnnotationTerms.SelectionVariant,Sr.UIAnnotationTerms.SelectionPresentationVariant];Fu(n.entityType,r,i)}o(b1,"addEnumForMultiTabVariant");function S1(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),Ea(r,i)}o(S1,"addEnumForVariantEntitySet");function A1(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Sr.UIAnnotationTerms.FieldGroup];Fu(e,r,i)}o(A1,"addEnumFieldGroupAnnotationPath");function E1(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],u=a.label||a.title;return{const:l,...u&&{description:u},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[Ke.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${$}${Ke.DefinitionName.RelatedFacetKeys}`},l]}}}}o(E1,"addDefinitionForRelatedFacetKeys");function Ec(e){return e.replace("#","::")}o(Ec,"getFacetKeyInSchema");function Du(e,t){return`${e}<${Ec(t)}>`}o(Du,"getFacetDefinitionKey");function vt(e,t,n,i=!0){let r=t;if(i&&(r=Du(e,t)),e&&e!==r)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[r]=a}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[r]}o(vt,"parseSchemaDefinition");function Qm(e,t,n){let i;return t===Ke.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${Sr.UIAnnotationTerms.LineItem}`?i=`${$}${n}`:(i=`${$}${n}<${t}>`,vt(n,t,e,!0)),i}o(Qm,"getCustomExtensionDefinitionName");function Dm(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][Ke.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let O=Qm(t,r,a);t.definitions[r].additionalProperties={$ref:O}}let u=e?Ke.DefinitionName.ObjectPageToolBar:Ke.DefinitionName.ToolBar,p=`${u}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${u}`]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let g=`${Ke.DefinitionName.Actions}<${lt(r)}>`;t.definitions[p].properties.actions.$ref=$+g;let m=r.startsWith(Ke.DefinitionName.LineItems)?Ke.DefinitionName.Actions:Ke.DefinitionName.ObjectPageToolBarActions,h;try{if(h=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),h.properties={},h.additionalProperties=!1,s){let O=Qm(t,r,s);h.additionalProperties={$ref:O}}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let S,b;if(r===Ke.DefinitionName.LineItems&&t.properties.footer){b=`${Ke.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${$}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[Ke.DefinitionName.GenericFooter]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Ke.DefinitionName.GenericFooter}))}let O=`${Ke.DefinitionName.FooterActions}<${lt(r)}>`;t.definitions[b].properties.actions.$ref=$+O,S=t.definitions[O]=JSON.parse(JSON.stringify(t.definitions[Ke.DefinitionName.Actions])),S.properties={},S.additionalProperties=!1}return n&&(l=vr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][Ke.SchemaTag.annotationPath]=l,S&&(t.definitions[b][Ke.SchemaTag.annotationPath]=l))),{actions:h,footerActions:S,lineItemPath:l}}o(Dm,"addCommonLineItemDefinitions");function P1(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(P1,"getDataTypeFromAnnotation");function Pc(e){var n,i,r;let t;return e!=null&&e.Value?e.Visualization==="UI.VisualizationType/Rating"?t="Rating":e.Visualization==="UI.VisualizationType/Progress"?t="Progress":e.$Type==="com.sap.vocabularies.UI.v1.DataPointType"?t="DataPoint":t=(i=(n=e.Value)==null?void 0:n.$target)==null?void 0:i.type.replace("Edm.",""):(r=e==null?void 0:e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")&&(t=P1(e.$Type)),t}o(Pc,"determineDataTypeOfTarget");function Kr(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=Pc((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(r=e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")?t=P1(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(Kr,"determineDataType");function Bm(e,t){let n=Kr(t);n&&(e[Ke.SchemaTag.dataType]=n)}o(Bm,"addDataTypeToDefinition");function oi(e,t){return`${$}${Du(e,t)}`}o(oi,"getFacetDefinitionLink");function i1(e,t,n,i){let r=0,a=!1,s="";do{let l=`${t}${r===0?"":"."+r}`;s=oi(e,l),r++;let u=n.definitions[Du(e,l)],p=((u==null?void 0:u.annotationPath)??"").split("/").slice(0,-1).join("/");a=!u||p===i}while(!a);return s}o(i1,"getUniqueFacetDefinitionLink");function cs(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${$}${i}`}o(cs,"addDefinitionRef");function qm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${Ke.UIVOCABULARY}`);t=`/${n}/@${Ke.UIVOCABULARY}${i}`}return t}o(qm,"getFacetAnnotationPath");function _u(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:oi(a?u:l,t)};let p=vt(a?u:l,t,i,!0);Ta(e,p,t),ns(e,p,t),p[Ke.SchemaTag.annotationPath]=e.annotationPath,p[Ke.SchemaTag.isViewNode]=!0}o(_u,"handleAddressContact");function KS(e,t,n){typeof e=="object"&&(e[t]=n)}o(KS,"updateSchemaProperty");function kl(e,t,n=lt("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${Ke.DefinitionName.Fields4Dialog}${n}`];KS(r.properties.fields.items,"enum",i)}o(kl,"addFieldsType");function VX(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(VX,"findFirstSchemaDefinitionKey");function _m(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let g=on(t.$ref),m=(p=e.definitions)==null?void 0:p[g];typeof m=="object"&&(s=!m.annotationPath,i!=null&&i.resolveDefinition&&!r&&(r=m.description,a=m.keys))}let l=n,u=VX(a,i==null?void 0:i.keyProperties);return u?l=u.value:i!=null&&i.descriptionAsFallback&&r&&(l=r),{const:l,...r&&{description:r},...s&&{custom:s}}}o(_m,"getEnumEntry");function os(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let u=t.properties[l],p=_m(e,u,l,i);r.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];KS(l,"oneOf",r)}else KS(a,"oneOf",r)}o(os,"addDescriptiveEnumDefinition");function Ac(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),a=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,a),n=r>0?n.substring(r+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}o(Ac,"getActionKey");function Vm(e,t,n){var i,r,a;try{if(e.Value)t[n][Ke.SchemaTag.keys]=[{name:Ke.SchemaKeyName.value,value:as(e.Value)}];else if(e.$Type===Sr.UIAnnotationTypes.DataFieldWithAction||e.$Type===Sr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=Ac(e.Action,!0);t[n][Ke.SchemaTag.keys]=[{name:Ke.SchemaKeyName.action,value:s}],l&&(t[n][Ke.SchemaTag.target]=l)}else if(e.$Type===Sr.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=Ac(e.Target.value,!1);t[n][Ke.SchemaTag.keys]=[{name:Ke.SchemaKeyName.target,value:Ll(s)}],t[n][Ke.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===Sr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Sr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=Ac(s,!0);t[n][Ke.SchemaTag.keys]=[{name:"SemanticObject",value:e[Ke.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][Ke.SchemaTag.target]=u)}}catch{return}}o(Vm,"addKeyToDefinition");function ai(e,t){try{return rs.getStrategy(e.$Type).generateDescription(e,t)}catch{return""}}o(ai,"getDataFieldDescription");function Pa(e,t){e[Ke.SchemaTag.messages]||(e[Ke.SchemaTag.messages]=[]),Array.isArray(e[Ke.SchemaTag.messages])&&e[Ke.SchemaTag.messages].push({text:t})}o(Pa,"addMessageToSchema");var Ul=te(ce());var x1=[{version:"1.136",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.136","UI5-1.137","UI5-1.138","UI5-1.139","UI5-1.140"]},{version:"1.124",distTag:["UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130","UI5-1.131","UI5-1.132","UI5-1.133","UI5-1.134","UI5-1.135"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107","UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var I1="1.124.21";var O1={name:"@sap/ux-specification",version:I1,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/schema/index.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.35.5","@sap-ux/vocabularies-types":"0.13.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.3","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.124.21","@sapui5/types":"latest-1.124","@types/d3":"7.4.3","@types/jquery":"3.5.31","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.10.0",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.8",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.7.2","typescript-json-schema":"0.57.0","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var ls=class ls{constructor(){ls.distTagsOfSpec.length===0&&(ls.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){ls.distTagsOfSpec=[]}getSpecVersion(){return I1}getDistTagsOfVersion(){let t=[],n=x1,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let r=n.find(a=>a.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;let i=[];typeof t=="string"?i.push(t):Array.isArray(t)&&(i=t);let r=!1;if(i.forEach(a=>{if(!this.checkVersionName(a,n))return;let s=a==="latest"?"latest":a.substring(0,a.lastIndexOf("."));ls.distTagsOfSpec.findIndex(l=>l.endsWith(s))>-1&&(r=!0)}),!r){let a=Q.t("WRONGMINUI5VERSION",{minUI5Version:t});ae(n,{severity:Ul.LogSeverity.Warning,message:a,location:{path:Ul.MANIFESTPATH}})}}checkVersionName(t,n){if(!t||t.startsWith("$")){let i=Q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});return ae(n,{severity:Ul.LogSeverity.Info,message:i,location:{path:Ul.MANIFESTPATH}}),!1}else return!0}};o(ls,"DistTagEvaluator"),ls.distTagsOfSpec=[];var Vu=ls;var pe=te(ce());var Vn=te(ce());var Pi=te(ce());function R1(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(R1,"getCustomPageFullName");function kX(e){let n=R1(e).split(".");return n[n.length-1]}o(kX,"getCustomPageName");function L1(e,t){var i,r;return((i=e==null?void 0:e.view)==null?void 0:i.viewType)||((r=t.settings)==null?void 0:r.viewType)||Pi.ViewTypes.XML}o(L1,"getViewType");function UX(e,t){return L1(e,t).toLowerCase()}o(UX,"getViewTypeExtension");function jX(e,t,n){var p;let i=o(g=>{var m;return(m=g.split(`${t.id}.`)[1])==null?void 0:m.split(".")},"splitViewPath"),r=t.settings,a=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=R1(e);s.includes(t.id)?n=i(s):a!=null&&a.includes(t.id)&&(n=[...i(a),...s.split(".")]);let[l,u]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:u}}o(jX,"getViewPath");function $X(e,t){let n=e.entitySet||kX(e),{viewPath:i,fileName:r}=jX(e,t,[n]),a=UX(e,t);return[...i,`${r}.view.${a}`].join("/")}o($X,"getCustomPagePath");var XS=class XS{constructor(t,n,i,r){this.unhandledControllers=[];let a=_t(Pi.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...r&&{settings:r}},t.fioriElementsVersion?this.app.target={fioriElements:t.fioriElementsVersion,odata:t.oDataVersion}:t.oDataVersion&&(this.app.target.odata=t.oDataVersion),this.schemas=t.appSchemas,this.logger=t.logger}createConfigFiles(){var a;let t={},n={},i;for(let s in this.app.pages){i=this.app.pages[s];let l=((a=this.app.target)==null?void 0:a.odata)===Pi.OdataVersion.v4?s:i.entitySet,u=this.getPageConfigFile(i,l);u&&(t[`${Pi.DirName.Pages}/${s}.json`]=u)}let r=JSON.parse(JSON.stringify(this.app));for(let s in r.pages)delete r.pages[s].config;return n[Pi.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=L1(t,this.app)===Pi.ViewTypes.XML&&!!t.config;if(t.pageType===Pi.PageTypeV4.CustomPage||t.pageType===Pi.PageTypeV4.FPMCustomPage&&!r){let{path:s}=_t(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(a=t.view)==null?void 0:a.id:void 0,l=_t(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=_t(t.pageType);i.$schema=u.path}}return(i&&t.pageType===Pi.PageTypeV4.CustomPage||t.pageType===Pi.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=$X(t,this.app);n.$filePath=i}};o(XS,"AppProvider");var fs=XS;var ft=te(ce());var jl=te(ce());var Bn=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),N1=o((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2"),F1=o((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function QS(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(QS,"getNewPageTemplate");function BX(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(BX,"findPageInManifest");function HX(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=QS(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:QS(e[t].pageType)}),!Array.isArray(n.pages))){let i=BX(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=QS(e[t].pageType)),qS(t,e,i)}}o(HX,"transformPageFromAssociation");function GX(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let r=e.pages[i];if(((a=r.component)==null?void 0:a.name)===jl.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===jl.PageTypeV2.ListReport||n.pageType===jl.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(GX,"deletePage");function qS(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===jl.PageTypeV2.ListReport&&(n.component.list=!0),i.navigationProperty&&(n.navigationProperty=i.navigationProperty),i.defaultLayoutType?n.defaultLayoutType=i.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,i.navigation)){for(let r in i.navigation)HX(t,r,n);Array.isArray(n.pages)||GX(n,t,i)}}o(qS,"transformPageToNewManifestV2");var y_=te(uc());var kE={};lc(kE,{ALPAnalyticalTable:()=>MA,ALPGridTable:()=>wA,ALPResponsiveTable:()=>VA,Action:()=>$A,AnalyticalCard:()=>Wl,AnalyticalCardSettings:()=>Zm,AnalyticalCardSettingsv4:()=>tA,AnalyticalListPageFilterBar:()=>fA,AnalyticalTable:()=>_A,BaseCustomSection:()=>dp,ChartSettings:()=>oE,ChartSettingsType:()=>zS,CommonCardSettings:()=>ms,CommonFilterBar:()=>Xu,CommonHeaderFacetSettings:()=>Dc,CommonTableSettings:()=>vs,CommonTableSettingsForSections:()=>kc,CreateWithFilters:()=>IA,CustomCard:()=>ZS,DataLoadSettings:()=>RA,DateRange:()=>aA,DefaultDateRange:()=>sA,DefaultSpanObject:()=>JS,FRAGMENT_DEFINITION:()=>Bo,Field:()=>oA,FieldForAction:()=>mA,Fields4Dialog:()=>LA,Fields4DialogOP:()=>FE,FooterAction:()=>HA,FormAction:()=>gA,GlobalChartSettings:()=>LE,GlobalTableSettings:()=>wE,GridTable:()=>kA,HeaderActionStandard:()=>QA,HeaderSections:()=>dE,KPISettings:()=>aE,LinkListCardSettings:()=>iA,LinklistCard:()=>Gu,ListCard:()=>Gl,ListCardSettings:()=>eA,ListReportFilterBar:()=>uA,MultiEdit:()=>OA,ObjectPageAnalyticalTable:()=>DE,ObjectPageChart:()=>RE,ObjectPageCustomSectionFragment:()=>gp,ObjectPageCustomSectionView:()=>mp,ObjectPageFooterAction:()=>mE,ObjectPageFooterActionStandard:()=>YA,ObjectPageGridTable:()=>_E,ObjectPageHeader:()=>sE,ObjectPageHeaderAction:()=>cE,ObjectPageHeaderActionStandard:()=>qA,ObjectPageHeaderSectionAddress:()=>pE,ObjectPageHeaderSectionChart:()=>fE,ObjectPageHeaderSectionDataPoint:()=>uE,ObjectPageHeaderSectionForm:()=>lE,ObjectPageLayout:()=>yE,ObjectPageResponsiveTable:()=>Uc,ObjectPageSectionAddressV2:()=>AE,ObjectPageSectionChartV2:()=>bE,ObjectPageSectionContactV2:()=>EE,ObjectPageSectionFormV2:()=>vE,ObjectPageSectionTableV2:()=>SE,ObjectPageSectionV2:()=>TE,ObjectPageSubSectionChartV2:()=>CE,ObjectPageSubSectionContactV2:()=>IE,ObjectPageSubSectionFormV2:()=>xE,ObjectPageSubSectionTableV2:()=>OE,ObjectPageSubSectionV2:()=>PE,ObjectPageToolBarAction:()=>ME,ObjectPageTreeTable:()=>VE,QuickVariantSelection:()=>NA,QuickVariantSelectionOP:()=>NE,QuickVariantSelectionX:()=>FA,ResponsiveTable:()=>Oc,SAP_UI_TABLE:()=>ah,SaveAndEditOP:()=>XA,SelectionFieldDateSettings:()=>cA,SelectionFields:()=>lA,Share:()=>GA,ShareOP:()=>WA,StackCard:()=>Hu,StackCardSettings:()=>nA,TableALP:()=>Yl,TableCard:()=>Kl,TableCardSettings:()=>rA,TableColumn:()=>ZA,TableColumnAction:()=>Ih,TableColumnActionIntentBased:()=>eE,TableCustomColumn:()=>tE,ToolBar:()=>iE,ToolBarAction:()=>BA,TreeTable:()=>DA,UpAndDownNavigationOP:()=>KA,buildIntentBasedActionId:()=>zA,deleteColumnFromFragment:()=>lh,deleteType:()=>Jl,exportColorPalette:()=>w1,exportCreateParametersFields:()=>yh,exportCustomColumnsToFragment:()=>xA,exportDateSettingsField:()=>j1,exportDefaultSpan:()=>M1,exportType:()=>zl,getChartSectionControlId:()=>p_,getContactSubSectionControlId:()=>g_,getCustomColumnPath:()=>fh,getFormSectionControlId:()=>u_,getRootCustomColumnFromFragmentJSON:()=>Yu,getSectionControlId:()=>wc,getSmartChartControlId:()=>op,getSmartTableControlId:()=>Ic,getSubSectionControlId:()=>d_,getTableSectionControlId:()=>f_,importCreateParameters:()=>hh,importDateSettings:()=>pA});var zn=te(ce());var Ue=o(e=>`${zn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),Qr=o(e=>Ue(e)+"/tableSettings","getTableSettingPathV2"),D1=o(e=>Ue(e)+"/chartSettings","getChartSettingPathV2"),_1=o(e=>Ue(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var Sn=o(()=>zn.ManifestSection.ovp,"getOVPsettingPath"),Ce=o(e=>{let t=[zn.ManifestSection.ovp];return e.forEach(n=>{n in zn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var xc=o((e,t)=>`${zn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Jm=o(e=>{let t=[zn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),_i=o(e=>{let t=[];return t.push(Jm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),ps=o(e=>_i(e)+"/tableSettings","getGlobalTableSettingsPathV2"),go=o((e,t,n)=>{let i=[];i.push(Jm(e));let r=n.replace(zn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),Ar=o((e,t,n)=>go(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),V1=o((e,t,n)=>go(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),YS=o(()=>`sap.ui5/extends/extensions/${zn.v2.SAPUI5_VIEW_EXTENSION}/${zn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),Ca=o((e,t,n,...i)=>{let r="|",a=n.split(r),s=e[e.length-1].split(r),l="";a.length===4?l=[a[2],a[3]].join(r):a.length===3&&(l=a[2]);let u=[a[0],s[s.length-1],l].join(r);return i.unshift(u),`${YS()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),zm=class zm{};o(zm,"ApplicationV2"),y([$t("settings")],zm.prototype,"settings",2);var Ym=zm,Xr=class Xr{};o(Xr,"AppSettings"),y([T({manifest:{path:o(()=>"sap.app","path")}})],Xr.prototype,"title",2),y([T({manifest:{path:o(()=>"sap.app","path")}})],Xr.prototype,"description",2),y([T({manifest:{path:o(()=>"sap.fiori","path")}})],Xr.prototype,"cloudDevAdaptationStatus",2),y([T({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.50.0"})],Xr.prototype,"flexibleColumnLayout",2),y([T({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.46.0"})],Xr.prototype,"forceGlobalRefresh",2),y([T({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.74.0"})],Xr.prototype,"tableColumnVerticalAlignment",2),y([T({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Xr.prototype,"flexEnabled",2),y([T({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Xr.prototype,"draftDiscardConfirmationSettings",2),y([T({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Xr.prototype,"statePreservationMode",2);var us=Xr;var wu=te(ce());function WX(e){let t=e.colorPalette,n;if(Array.isArray(t))throw new Error("The array syntax for colorPalette is deprecated and not supported");return t[0]&&typeof t[0]=="object"?(n=t,n.colorPaletteType=wu.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=wu.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:wu.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(WX,"importColorPalette");function w1(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===wu.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(w1,"exportColorPalette");function M1(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(M1,"exportDefaultSpan");var eh=class eh{};o(eh,"ChartSettingsType"),y([T({manifest:{path:o(()=>Sn()+"/chartSettings","path")}})],eh.prototype,"showDataLabel",2);var zS=eh,ds=class ds{};o(ds,"DefaultSpanObject"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],ds.prototype,"cols",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],ds.prototype,"rows",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],ds.prototype,"showOnlyHeader",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],ds.prototype,"minimumTitleRow",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],ds.prototype,"minimumSubTitleRow",2);var JS=ds,Qt=class Qt{};o(Qt,"CommonCardSettings"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"entitySet",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"title",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"subTitle",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"annotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"dataPointAnnotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"selectionPresentationAnnotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"kpiAnnotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"category",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"dynamicSubtitleAnnotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"valueSelectionInfo",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"showFilterInHeader",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"sortBy",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"sortOrder",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"identificationAnnotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"selectionAnnotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"presentationAnnotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"enableLocaleCurrencyFormatting",2),y([T({manifest:{path:o(t=>Ce(t),"path"),export:M1}})],Qt.prototype,"defaultSpan",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"requireAppAuthorization",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"showSortingInHeader",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"tabs",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"addODataSelect",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"showRefresh",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"customParams",2);var ms=Qt,$l=class $l{};o($l,"CustomCard"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],$l.prototype,"model",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],$l.prototype,"template",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],$l.prototype,"settings",2);var ZS=$l,gs=class gs extends ms{};o(gs,"ListCardSettings"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],gs.prototype,"showLineItemDetail",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],gs.prototype,"imageSupported",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],gs.prototype,"enableAddToInsights",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],gs.prototype,"listFlavor",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],gs.prototype,"listType",2);var eA=gs,Mu=class Mu{};o(Mu,"ListCard"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Mu.prototype,"model",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Mu.prototype,"template",2);var Gl=Mu,mo=class mo extends ms{};o(mo,"AnalyticalCardSettings"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],mo.prototype,"chartAnnotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],mo.prototype,"ignoreSapText",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],mo.prototype,"enableAddToInsights",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],mo.prototype,"navigation",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],mo.prototype,"valueSelectionInfo",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],mo.prototype,"chartProperties",2),y([T({manifest:{path:o(t=>Ce(t),"path"),import:WX,export:w1}})],mo.prototype,"colorPalette",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],mo.prototype,"bEnableStableColors",2);var Zm=mo,th=class th extends Zm{};o(th,"AnalyticalCardSettingsv4"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],th.prototype,"measureAggregate",2);var tA=th,ku=class ku{};o(ku,"AnalyticalCard"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],ku.prototype,"model",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],ku.prototype,"template",2);var Wl=ku,Bl=class Bl extends ms{};o(Bl,"StackCardSettings"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Bl.prototype,"itemText",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Bl.prototype,"objectStreamCardsNavigationProperty",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Bl.prototype,"objectStreamCardsSettings",2);var nA=Bl,Uu=class Uu{};o(Uu,"StackCard"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Uu.prototype,"model",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Uu.prototype,"template",2);var Hu=Uu,Hl=class Hl extends ms{};o(Hl,"LinkListCardSettings"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Hl.prototype,"listFlavor",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Hl.prototype,"headerAnnotationPath",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Hl.prototype,"staticContent",2);var iA=Hl,ju=class ju{};o(ju,"LinklistCard"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],ju.prototype,"model",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],ju.prototype,"template",2);var Gu=ju,$u=class $u extends ms{};o($u,"TableCardSettings"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],$u.prototype,"showLineItemDetail",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],$u.prototype,"enableAddToInsights",2);var rA=$u,Bu=class Bu{};o(Bu,"TableCard"),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Bu.prototype,"model",2),y([T({manifest:{path:o(t=>Ce(t),"path")}})],Bu.prototype,"template",2);var Kl=Bu;var k1=te(ce());var KX=o((e,t,n,i,r)=>{let a=qn(n[1],r),s=n.slice(-1)[0];return Jt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),nh=class nh{};o(nh,"Field"),y([T({flex:{controlId:KX,controlType:o(()=>k1.ControlType.GroupElement,"controlType")},generate:mt})],nh.prototype,"visible",2);var oA=nh;var Cc=te(ce());function pA(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),delete t.fields,t}o(pA,"importDateSettings");function XX(e,t,n){let i=e!=null&&e[n]?JSON.parse(JSON.stringify(e==null?void 0:e[n])):void 0,r;return n==="selectedValues"&&typeof i=="string"&&(r=i.split(",")),n==="filter"&&typeof i=="object"&&(r=[],i.forEach((a,s)=>{r[s]=a,a.equals&&typeof a.equals=="string"&&(r[s].equals=a.equals.split(","))})),r}o(XX,"importDateSettingsField");function j1(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];if(n==="selectedValues"&&(e[n]=i.join()),n==="filter")for(let r in i){let a=i[r];e[n][r]=a,a.equals&&Array.isArray(a.equals)&&(e[n][r].equals=a.equals.join())}}o(j1,"exportDateSettingsField");var Xl=class Xl{};o(Xl,"DateRange"),y([T({manifest:{path:o(t=>Ue(t)+Cc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Xl.prototype,"useDateRange",2),y([T({manifest:{path:o(t=>Ue(t)+Cc.DATESETTINGSPATH,"path"),import:pA,export:vm}}),x({since:"1.77.0"})],Xl.prototype,"selectedValues",2),y([T({manifest:{path:o(t=>Ue(t)+Cc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Xl.prototype,"exclude",2);var aA=Xl,ih={controlId:Jt,controlType:o(()=>Cc.ControlType.SmartFilterBar,"controlType")},Wu={path:o((e,t,n)=>`${Ue(e)}${Cc.DATESETTINGSPATH}/fields/${n}`,"path")},U1={...Wu,import:XX,export:j1},rh=class rh{};o(rh,"DefaultDateRange"),y([T({manifest:Wu}),x({since:"1.90.0"})],rh.prototype,"operation",2);var sA=rh,hs=class hs{};o(hs,"SelectionFieldDateSettings"),y([T({manifest:U1}),x({since:"1.77.0"})],hs.prototype,"selectedValues",2),y([T({manifest:Wu}),x({since:"1.77.0"})],hs.prototype,"exclude",2),y([T({manifest:Wu}),x({since:"1.77.0"})],hs.prototype,"customDateRangeImplementation",2),y([T({manifest:U1}),x({since:"1.77.0"})],hs.prototype,"filter",2),y([T({manifest:Wu}),x({since:"1.90.0"})],hs.prototype,"defaultValue",2);var cA=hs,dA=class dA{};o(dA,"SelectionFields");var lA=dA,ho=class ho{};o(ho,"CommonFilterBar"),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.38.0"})],ho.prototype,"smartVariantManagement",2),y([T({flex:ih}),x({since:"1.40.0"})],ho.prototype,"liveMode",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.48.0"})],ho.prototype,"variantManagementHidden",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.52.0"})],ho.prototype,"subTitleIfVariantMgmtHidden",2),y([T({manifest:{path:o(t=>Ue(t)+"/filterSettings","path"),import:pA}}),x({since:"1.77.0"})],ho.prototype,"dateSettings",2),y([T({flex:ih}),x({since:"1.28.0"})],ho.prototype,"showClearOnFB",2),y([T({flex:ih}),x({since:"1.38.0"})],ho.prototype,"showFilterConfiguration",2),y([T({flex:ih}),x({since:"1.28.0"})],ho.prototype,"showRestoreOnFB",2);var Xu=ho,Ku=class Ku extends Xu{};o(Ku,"AnalyticalListPageFilterBar"),y([T({manifest:{path:o(t=>Ue(t),"path")}})],Ku.prototype,"showGoButtonOnFilterBar",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.60.0"})],Ku.prototype,"filterDefaultsFromSelectionVariant",2);var fA=Ku,oh=class oh extends Xu{};o(oh,"ListReportFilterBar"),y([T({manifest:{path:o(t=>Ue(t),"path")}}),fe("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),x({since:"1.86.0"})],oh.prototype,"annotationPath",2);var uA=oh;var hA=te(ce());var QX=o((e,t,n,i,r)=>{if(i()===hA.ControlType.Button){let a=n[n.length-1],s=qn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return Jt(e,t)},"getFormActionButtonId"),$o={controlId:QX,controlType:o(()=>hA.ControlType.Button,"controlType")},ys=class ys{};o(ys,"FormAction"),y([T({flex:$o,generate:mt})],ys.prototype,"visible",2),y([T({flex:$o})],ys.prototype,"tooltip",2),y([T({flex:$o})],ys.prototype,"icon",2),y([T({flex:$o})],ys.prototype,"activeIcon",2),y([T({flex:$o})],ys.prototype,"type",2);var gA=ys,Ts=class Ts{};o(Ts,"FieldForAction"),y([T({flex:$o,generate:mt})],Ts.prototype,"visible",2),y([T({flex:$o})],Ts.prototype,"tooltip",2),y([T({flex:$o})],Ts.prototype,"icon",2),y([T({flex:$o})],Ts.prototype,"activeIcon",2),y([T({flex:$o}),x({since:"1.73.0"})],Ts.prototype,"type",2);var mA=Ts;var St=te(ce()),yo=te(uc());var bA=require("path"),p3=te(ce()),Z1=te(J1()),e_=require("fs");var d3=(0,bA.join)(__dirname,"templates");var g3=o((e,t)=>{let n=(0,e_.readFileSync)(e,"utf8");return(0,Z1.render)(n,t)},"renderTemplate");var SA=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return g3((0,bA.join)(d3,t+".xml"),n)},"getSingleColumnContent"),AA=o((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let i of e){let r=SA(i,t);n=n+`
|
|
289
289
|
`+r}return n+`
|
|
290
|
-
</core:FragmentDefinition>`},"getColumnFragmentContent"),
|
|
290
|
+
</core:FragmentDefinition>`},"getColumnFragmentContent"),EA=o(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
|
|
291
291
|
<Text text="Placeholder"/>`}),t+`
|
|
292
|
-
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var sh=require("path");var Bo="core:FragmentDefinition",ah="sap.ui.table",PE=new Map([[St.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[St.ViewTemplateType.TreeTableColumnsExtension,{namespace:ah,name:"Column"}],[St.ViewTemplateType.GridTableColumnsExtension,{namespace:ah,name:"Column"}],[St.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:ah,name:"AnalyticalColumn"}]]),g3=new Map([[St.v2.FE_TEMPLATE_V2_LIST_REPORT,St.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[St.v2.FE_TEMPLATE_V2_ALP,St.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[St.v2.FE_TEMPLATE_V2_OBJECT_PAGE,St.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),n_={type:"element",name:"Text",attributes:{text:"Placeholder"}},m3=JSON.stringify(n_);function h3(e,t){var i;let n=t?(i=e==null?void 0:e[Bo])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let r=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=r.get(n[a]);r.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),r}else throw new Error("Invalid fragment, please check content")}o(h3,"getFragmentNamespaces");function t_(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(t_,"getTagName");function ch(e,t,n=e){let i=h3(n,!!(t||n!==e));if(t){let r=PE.get(t);return t_(r,i.get(r.namespace))}else{let r=PE.keys();for(let a of r){let s=PE.get(a),l=i?t_(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(ch,"getTagNameFromFragmentJSON");function Yu(e,t=e){let n=ch(e,void 0,t);return e[n]}o(Yu,"getRootCustomColumnFromFragmentJSON");function y3(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let a=e[t][r];!n.includes(r)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${a.toString()}"`)}return i+="}",i}o(y3,"addP13nData");function i_(e,t){var l,u,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let r=i["core:CustomData"]._attributes.value,a=JSON.parse(r.substr(1,r.length)),s=t.findIndex(g=>g.columnKey===a.columnKey);return s<0?!1:(n=!0,r=y3(t,s),i["core:CustomData"]._attributes.value=r,!e.Text&&!e.Label&&((l=t[s])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(u=t[s])==null?void 0:u.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(p=t[s])==null?void 0:p.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}o(i_,"handleFragmentColumn");function T3(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+St.FRAGMENTNAMEPART+a;for(let u of t){let p=u.dataSourceUri.split(sh.sep);if(p[p.length-1]===l){let g=JSON.parse((0,yo.xml2json)(u.fileContent,{compact:!0}));try{let m=ch(g[Bo]);m&&(delete g[Bo][m],u.fileContent=(0,yo.json2xml)(JSON.stringify(g),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${u.dataSourceUri}, please check content`)}break}}}o(T3,"deleteColumnsFromFragment");function r_(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===m3&&(e.splice(n,1),t-=1,t===0));n++);}o(r_,"deleteNumberOfCells");function v3(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+St.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,yo.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&r_(l.elements[0].elements,u.length),s.fileContent=(0,yo.json2xml)(JSON.stringify(l),{spaces:4});break}}o(v3,"deleteCellsFromFragment");function lh(e,t,n,i){if(i){T3(e,i,t,n);let r=t.replace(St.ViewTemplateType.ResponsiveTableColumnsExtension,St.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&v3(a,i,n)}}o(lh,"deleteColumnFromFragment");function b3(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let r=i;r<Object.keys(n).length;r++)t.elements[0].elements.push(n_)}o(b3,"addNewColumnsInFragment");function S3(e,t){let n=JSON.parse((0,yo.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)b3(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;r_(a,r)}e.fileContent=(0,yo.json2xml)(JSON.stringify(n),{spaces:4})}}o(S3,"updateNonEmptyCellsFragment");function E3(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(sh.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=St.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=AE(n):S3(r,n);break}}return i}o(E3,"updateCellsFragment");function A3(e,t,n,i,r){var g;let a,s,l=t.manifest,u=Bn(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){ae(r,{severity:St.LogSeverity.Error,message:Q.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=St.ChangeIndicator.Updated,u.fragmentName=m.fragmentName,u.className=m.className,a=((g=m.fragmentName)==null?void 0:g.replace(i,"<root>/webapp").replace(/[.]/g,sh.sep))+St.FRAGMENTNAMEPART+p}if(e.indexOf(St.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=St.ChangeIndicator.Updated;let m=e.replace(St.ViewTemplateType.ResponsiveTableColumnsExtension,St.ViewTemplateType.ResponsiveTableCellsExtension),h=Bn(l,m),S=n.reduce((b,O)=>O.cellsFragmentName?O:b);S&&S.cellsFragmentName?(h.fragmentName=s=S.cellsFragmentName,h.className=n[0].className,h.type=p.toUpperCase()):F1(l,m)}return{manifestSection:u,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(A3,"exportCustomColumnsToManifest");function P3(e,t,n,i,r){let a=SE(e,t);if(a){let s=JSON.parse((0,yo.xml2json)(a,{compact:!0})),l=Yu(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(l))||n.push(l);else if(n){let u=[n];u.splice(r,0,l),n=u}else n=[l]}return n}o(P3,"insertNewColumnInFragment");function x3(e,t){let n=[];for(let i=0;i<e.length;i++)i_(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(x3,"processCustomColumnInArray");function C3(e,t,n){if(e){if(Array.isArray(e))x3(e,t);else if(!i_(e,t)){let r=ch(n[Bo]);r&&(delete n[Bo][r],e=void 0)}}return e}o(C3,"maintainExistingColumnInFragment");function I3(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=P3(a,i,n,r,s)}return n}o(I3,"insertNewColumnsInFragment");function O3(e,t,n,i,r){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=St.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=EE(i,r);else{let u=JSON.parse((0,yo.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Yu(u[Bo]),l=C3(l,i,u),l=I3(i,n,l,r,u);let g=ch(u,r);u[Bo][g]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,yo.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(O3,"updateColumnsInFragment");function xE(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=A3(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),h=l.fragmentName,S=h.substr(i.length+1),b=S.split(".");h=b[b.length-1]+St.FRAGMENTNAMEPART+g;let N=p==null?void 0:p.split("."),M=N?N[N.length-1]:null,G=M?M+St.FRAGMENTNAMEPART+g:null,j=O3(s,h,S,m,r),re=!1;if(p?re=E3(s,G,n):re=!0,!j){let Z={fileContent:EE(m,r),dataSourceUri:u,changeIndicator:St.ChangeIndicator.Deleted};e.fragments.push(Z)}if(!re){let Z={fileContent:AE(n),dataSourceUri:u.replace(h,G),changeIndicator:St.ChangeIndicator.Deleted};e.fragments.push(Z)}}o(xE,"exportCustomColumnsToFragment");var fh=o((e,t,n,i)=>{var u,p,g,m;if(!e)return;let r=g3.get((u=e.component)==null?void 0:u.name);if(!i){let h=(m=(g=(p=e.component)==null?void 0:p.settings)==null?void 0:g.tableSettings)==null?void 0:m.type;h||(h="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(h="AnalyticalTable"),i=h+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var ci=te(ce());var CE="/multiEdit",Ic=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+ci.PropertyName.table:Jt(e,t),"getSmartTableControlId");function hh(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let r in t)n.fields.push(r);return n}o(hh,"importCreateParameters");function yh(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(a=>r[a]=e[n][a]||{path:a}),e[n]=r}o(yh,"exportCreateParametersFields");function R3(e,t){let n=e.variants||{},i=t.variants||{};Object.keys(n).filter(a=>!Object.keys(i).includes(a)).forEach(a=>{delete n[a]});for(let a in i){let s=i[a],l=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let u in s)l.indexOf(u)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[u]=s[u],delete s[u]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}o(R3,"exportVariants");function L3(e,t){t.variants&&(Object.keys(t.variants).length>0?R3(e,t):delete e.variants)}o(L3,"exportQuickVariantSelectionX");function N3(e){var n,i;if(!e||!e.multiEdit)return;let t=JSON.parse(JSON.stringify(e.multiEdit));return t.ignoredFields=(i=(n=e.multiEdit)==null?void 0:n.ignoredFields)==null?void 0:i.split(","),t}o(N3,"importMultiEdit");var uh=class uh{};o(uh,"CreateWithFilters"),y([T({manifest:{path:o(t=>Ue(t)+"/createWithFilters","path")}})],uh.prototype,"strategy",2);var IE=uh,Ql=class Ql{};o(Ql,"MultiEdit"),y([T({manifest:{path:o(t=>Qr(t)+CE,"path")}})],Ql.prototype,"enabled",2),y([T({manifest:{path:o(t=>Qr(t)+CE,"path")}})],Ql.prototype,"annotationPath",2),y([T({manifest:{path:o(t=>Qr(t)+CE,"path"),export:vm}})],Ql.prototype,"ignoredFields",2);var OE=Ql;function Zu(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}o(Zu,"importType");function zl(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(zl,"exportType");function Jl(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}o(Jl,"deleteType");var ph=class ph{};o(ph,"DataLoadSettings"),y([T({manifest:{path:o(t=>_1(t),"path")}}),x({since:"1.75.2"})],ph.prototype,"loadDataOnAppLaunch",2);var RE=ph,dh=class dh{};o(dh,"Fields4Dialog"),y([T({manifest:{path:o(t=>Qr(t)+"/createWithParameterDialog","path"),export:yh}}),x({since:"1.77.0"})],dh.prototype,"fields",2);var LE=dh,zu=class zu{};o(zu,"QuickVariantSelection"),y([T({manifest:{path:o(t=>Ue(t)+ci.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],zu.prototype,"showCounts",2),y([T({manifest:{path:o(t=>Ue(t)+ci.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],zu.prototype,"variants",2);var NE=zu,ql=class ql{};o(ql,"QuickVariantSelectionX"),y([T({manifest:{path:o(t=>Ue(t)+ci.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],ql.prototype,"showCounts",2),y([T({manifest:{path:o(t=>Ue(t)+ci.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],ql.prototype,"enableAutoBinding",2),y([T({manifest:{path:o(t=>Ue(t)+ci.QUICKVARPATHX,"path"),export:L3}}),x({since:"1.48.0"})],ql.prototype,"variants",2);var FE=ql,si=class si{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}},enableAutoBinding:{since:"1.40.0",deprecated:{since:"1.75.2",text:"Use tableSettings.loadDataOnAppLaunch instead"}}}),"getDeprecated")}};o(si,"CommonTableSettings"),y([T({manifest:{key:"createWithParameterDialog",path:o(t=>Qr(t),"path"),import:hh}}),x({since:"1.77.0"})],si.prototype,"createWithParameterDialog",2),y([T({flex:{controlId:Jt,controlType:o(()=>ci.ControlType.SmartTable,"controlType")}}),x({since:"1.38.0"})],si.prototype,"showTablePersonalisation",2),y([T({flex:{controlId:Ic,controlType:o(()=>ci.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],si.prototype,"useExportToExcel",2),y([T({flex:{controlId:Ic,controlType:o(()=>ci.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],si.prototype,"exportType",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.48.0"})],si.prototype,"quickVariantSelection",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.48.0"})],si.prototype,"quickVariantSelectionX",2),y([T({manifest:{path:o(t=>Qr(t),"path")}}),x({since:"1.38.0"})],si.prototype,"multiSelect",2),y([T({manifest:{path:o(t=>Qr(t),"path")}}),x({since:"1.120.0"})],si.prototype,"copy",2),y([T({manifest:{path:o(t=>Qr(t),"path")}}),x({since:"1.70.0"})],si.prototype,"selectAll",2),y([T({manifest:{path:o(t=>Qr(t),"path")}}),x({since:"1.70.0"})],si.prototype,"selectionLimit",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.75.2"})],si.prototype,"dataLoadSettings",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.42.0"})],si.prototype,"condensedTableLayout",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],si.prototype,"enableTableFilterInPageVariant",2),y([$t("toolBar")],si.prototype,"toolBar",2);var vs=si,Ho=class Ho extends vs{};o(Ho,"ResponsiveTable"),y([T({manifest:{path:o(t=>Ue(t),"path"),import:Zu,export:zl,delete:Jl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Ho.prototype,"type",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.54.0"})],Ho.prototype,"createWithFilters",2),y([T({flex:{controlId:Ic,controlType:o(()=>ci.ControlType.Table,"controlType")},generate:Yn}),x({since:"1.52.0"})],Ho.prototype,"popinLayout",2),y([T({flex:{controlId:Ic,controlType:o(()=>ci.ControlType.Table,"controlType")}})],Ho.prototype,"includeItemInSelection",2),y([T({manifest:{path:o(t=>Qr(t),"path")}}),x({since:"1.77.0"})],Ho.prototype,"inlineDelete",2),y([T({flex:{controlId:Ic,controlType:o(()=>ci.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],Ho.prototype,"growingThreshold",2),y([T({manifest:{path:o(t=>Qr(t),"path"),import:N3}}),x({since:"1.98.0"})],Ho.prototype,"multiEdit",2);var Oc=Ho,gh=class gh extends vs{};o(gh,"TreeTable"),y([T({manifest:{path:o(t=>Ue(t),"path"),import:Zu,export:zl,delete:Jl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],gh.prototype,"type",2);var DE=gh,To=class To extends vs{};o(To,"AnalyticalTable"),y([T({manifest:{path:o(t=>Ue(t),"path"),import:Zu,export:zl,delete:Jl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],To.prototype,"type",2),y([T({manifest:{path:o(t=>Ue(t),"path")}})],To.prototype,"qualifier",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.38.0"}),T({manifest:{path:o(t=>Ue(t),"path")}})],To.prototype,"defaultContentView",2),y([T({manifest:{path:o(t=>Ue(t),"path")}})],To.prototype,"defaultFilterMode",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.60.0"})],To.prototype,"contentTitle",2),y([T({manifest:{path:o(t=>Ue(t),"path")}})],To.prototype,"autoHide",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.78.0"})],To.prototype,"allFiltersAsInParameters",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.54.0"})],To.prototype,"createWithFilters",2);var _E=To,Go=class Go extends vs{};o(Go,"TableALP"),y([T({manifest:{path:o(t=>Ue(t),"path"),import:Zu,export:zl,delete:Jl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Go.prototype,"type",2),y([T({manifest:{path:o(t=>Ue(t),"path")}})],Go.prototype,"qualifier",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.38.0"}),T({manifest:{path:o(t=>Ue(t),"path")}})],Go.prototype,"defaultContentView",2),y([T({manifest:{path:o(t=>Ue(t),"path")}})],Go.prototype,"defaultFilterMode",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.60.0"})],Go.prototype,"contentTitle",2),y([T({manifest:{path:o(t=>Ue(t),"path")}})],Go.prototype,"autoHide",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.78.0"})],Go.prototype,"allFiltersAsInParameters",2);var Yl=Go,mh=class mh extends Yl{};o(mh,"ALPResponsiveTable"),y([T({flex:{controlId:Ic,controlType:o(()=>ci.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],mh.prototype,"growingThreshold",2);var VE=mh,UE=class UE extends Yl{};o(UE,"ALPGridTable");var wE=UE,jE=class jE extends Yl{};o(jE,"ALPAnalyticalTable");var ME=jE,Ju=class Ju extends vs{};o(Ju,"GridTable"),y([T({manifest:{path:o(t=>Ue(t),"path"),import:Zu,export:zl,delete:Jl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Ju.prototype,"type",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.54.0"})],Ju.prototype,"createWithFilters",2);var kE=Ju;var ep=te(ce());var F3=o((e,t,n)=>{let{actionId:i}=tr(n);return`${e}action::${Zi(i).replace(":2f","::")}`},"getActionButtonId"),D3=o((e,t,n)=>{let{actionId:i}=tr(n);return`${e}template::${i}`},"getStandardActionButtonId"),_3=o((e,t,n)=>{let{actionId:i}=tr(n);return`${e}${km}${i}`},"getStandardFooterActionOPButtonId"),zE=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=tr(n);return`${e}action::${i}::${Zi(r)}`},"buildIntentBasedActionId"),V3=o((e,t,n)=>{let{actionId:i}=tr(n);return`${e}action::${Zi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),bs={controlId:F3,controlType:o(()=>ep.ControlType.Button,"controlType")},tp={controlId:D3,controlType:o(()=>ep.ControlType.Button,"controlType")},o_={controlId:_3,controlType:o(()=>ep.ControlType.Button,"controlType")},Th={controlId:V3,controlType:o(()=>ep.ControlType.Button,"controlType")},Rc=class Rc{};o(Rc,"Action"),y([T({flex:bs})],Rc.prototype,"tooltip",2),y([T({flex:bs})],Rc.prototype,"icon",2),y([T({flex:bs})],Rc.prototype,"activeIcon",2),y([T({flex:bs})],Rc.prototype,"type",2);var $E=Rc,Lc=class Lc{};o(Lc,"ToolBarAction"),y([T({flex:bs})],Lc.prototype,"tooltip",2),y([T({flex:bs})],Lc.prototype,"icon",2),y([T({flex:bs})],Lc.prototype,"activeIcon",2),y([T({flex:bs})],Lc.prototype,"type",2);var BE=Lc,Nc=class Nc{};o(Nc,"FooterAction"),y([T({flex:Th})],Nc.prototype,"tooltip",2),y([T({flex:Th})],Nc.prototype,"icon",2),y([T({flex:Th})],Nc.prototype,"activeIcon",2),y([T({flex:Th})],Nc.prototype,"type",2);var HE=Nc,vh=class vh{};o(vh,"Share"),y([T({flex:tp})],vh.prototype,"visible",2);var GE=vh,bh=class bh{};o(bh,"ShareOP"),y([T({flex:tp})],bh.prototype,"visible",2);var WE=bh,Sh=class Sh{};o(Sh,"UpAndDownNavigationOP"),y([T({flex:tp})],Sh.prototype,"visible",2);var KE=Sh,Eh=class Eh{};o(Eh,"SaveAndEditOP"),y([T({flex:o_,generate:mt})],Eh.prototype,"visible",2);var XE=Eh,Ah=class Ah{};o(Ah,"HeaderActionStandard"),y([T({flex:tp})],Ah.prototype,"visible",2);var QE=Ah,Ph=class Ph{};o(Ph,"ObjectPageHeaderActionStandard"),y([T({flex:tp})],Ph.prototype,"visible",2);var qE=Ph,xh=class xh{};o(xh,"ObjectPageFooterActionStandard"),y([T({flex:o_})],xh.prototype,"visible",2);var YE=xh;var rp=te(ce());var w3=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=tr(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),M3=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=tr(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),k3=o((e,t,n)=>{let{actionId:i}=tr(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),JE={controlId:w3,controlType:o(()=>rp.ControlType.TableColumn,"controlType")},np={controlId:k3,controlType:o(()=>rp.ControlType.Button,"controlType")},a_={...JE,controlId:M3},Ch={...np,controlId:zE},ip=class ip{};o(ip,"TableColumn"),y([T({flex:{controlId:aS,controlType:o(()=>rp.ControlType.TableColumn,"controlType")}})],ip.prototype,"width",2),y([T({flex:{controlId:aS,controlType:o(()=>rp.ControlType.TableColumn,"controlType")},generate:Yn})],ip.prototype,"hAlign",2);var ZE=ip,Ia=class Ia{};o(Ia,"TableColumnAction"),y([T({flex:JE})],Ia.prototype,"width",2),y([T({flex:JE,generate:Yn})],Ia.prototype,"hAlign",2),y([T({flex:np})],Ia.prototype,"tooltip",2),y([T({flex:np})],Ia.prototype,"icon",2),y([T({flex:np})],Ia.prototype,"activeIcon",2),y([T({flex:np})],Ia.prototype,"type",2);var Ih=Ia,Oa=class Oa extends Ih{};o(Oa,"TableColumnActionIntentBased"),y([T({flex:a_})],Oa.prototype,"width",2),y([T({flex:a_,generate:Yn})],Oa.prototype,"hAlign",2),y([T({flex:Ch})],Oa.prototype,"tooltip",2),y([T({flex:Ch})],Oa.prototype,"icon",2),y([T({flex:Ch})],Oa.prototype,"activeIcon",2),y([T({flex:Ch})],Oa.prototype,"type",2);var eA=Oa,nA=class nA{};o(nA,"TableCustomColumn");var tA=nA;var rA=class rA{};o(rA,"ToolBar");var iA=rA;var Fc=te(ce());var op=o(e=>e+Fc.PropertyName.chart,"getSmartChartControlId"),Ss=class Ss{};o(Ss,"ChartSettings"),y([T({flex:{controlId:op,controlType:o(()=>Fc.ControlType.SmartChart,"controlType")}})],Ss.prototype,"showLegendButton",2),y([T({flex:{controlId:op,controlType:o(()=>Fc.ControlType.SmartChart,"controlType")}})],Ss.prototype,"showDownloadButton",2),y([T({flex:{controlId:op,controlType:o(()=>Fc.ControlType.SmartChart,"controlType")}})],Ss.prototype,"showChartTypeSelectionButton",2),y([T({flex:{controlId:op,controlType:o(()=>Fc.ControlType.SmartChart,"controlType"),exportFlexValue:o((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:o((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue")}})],Ss.prototype,"ignoredChartTypes",2),y([T({manifest:{path:o(t=>D1(t),"path")}}),x({since:"1.81.0"})],Ss.prototype,"showDataLabel",2);var oA=Ss;var Ra=class Ra{};o(Ra,"KPISettings"),y([T({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"model",2),y([T({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"entitySet",2),y([T({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"qualifier",2),y([T({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"filterable",2),y([T({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"detailNavigation",2),y([T({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"groupId",2);var aA=Ra;var s_=te(ce());var U3=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Jt(e,n)},"getAvatarControlId"),Es=class Es{};o(Es,"ObjectPageHeader"),y([T({manifest:{path:o(t=>_i(t),"path")}}),x({since:"1.46.0"})],Es.prototype,"showRelatedApps",2),y([T({manifest:{path:o(t=>_i(t),"path")}}),x({since:"1.46.0"})],Es.prototype,"editableHeaderContent",2),y([T({manifest:{path:o(t=>_i(t),"path")}}),x({since:"1.48.0"})],Es.prototype,"simpleHeaderFacets",2),y([T({manifest:{path:o(t=>_i(t),"path")}}),x({since:"1.48.0"}),fe("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],Es.prototype,"showHeaderAsCarouselOnDesktop",2),y([T({flex:{controlId:U3,controlType:o(()=>s_.ControlType.Avatar,"controlType")},generate:mt})],Es.prototype,"displayShape",2);var sA=Es;var Oh=te(ce());var j3=o((e,t,n,i)=>{if(i()===Oh.ControlType.Button||i()===Oh.ControlType.HeaderAction){let r=n[2];return`${e}action::${Zi(r)}`}return Jt(e,t)},"getActionButtonId"),ap={controlId:j3,controlType:o(()=>Oh.ControlType.HeaderAction,"controlType")},As=class As{};o(As,"ObjectPageHeaderAction"),y([T({flex:ap,generate:mt})],As.prototype,"visible",2),y([T({flex:ap})],As.prototype,"tooltip",2),y([T({flex:ap})],As.prototype,"icon",2),y([T({flex:ap})],As.prototype,"activeIcon",2),y([T({flex:ap})],As.prototype,"type",2);var cA=As;var sp=te(ce());var _h="header::headerEditable::",$3=o((e,t,n,i,r)=>`${e}${_h}${r}`,"getDataPointHeaderSectionId"),B3=o((e,t,n,i,r)=>`${e}${_h}${r}::ContactAddress`,"getAddressHeaderSectionId"),H3=o((e,t,n,i,r)=>`${e}${_h}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),c_=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(sp.FACETTITLEPREFIX)?r.split(sp.FACETTITLEPREFIX)[1]:a;return`${e}${_h}${s}::Form`},"getFormHeaderSectionId"),cp={controlType:o(()=>sp.ControlType.ObjectPageHeaderSection,"controlType")},Rh=class Rh{};o(Rh,"CommonHeaderFacetSettings"),y([T({flex:{...cp,controlId:c_},generate:mt})],Rh.prototype,"visible",2);var Dc=Rh,Lh=class Lh extends Dc{};o(Lh,"ObjectPageHeaderSectionForm"),y([T({flex:{...cp,controlId:c_}})],Lh.prototype,"visible",2);var lA=Lh,Nh=class Nh extends Dc{};o(Nh,"ObjectPageHeaderSectionChart"),y([T({flex:{...cp,controlId:H3}})],Nh.prototype,"visible",2);var fA=Nh,Fh=class Fh extends Dc{};o(Fh,"ObjectPageHeaderSectionDataPoint"),y([T({flex:{...cp,controlId:$3}})],Fh.prototype,"visible",2);var uA=Fh,Dh=class Dh extends Dc{};o(Dh,"ObjectPageHeaderSectionAddress"),y([T({flex:{...cp,controlId:B3}})],Dh.prototype,"visible",2);var pA=Dh,gA=class gA{};o(gA,"HeaderSections");var dA=gA;var hA=te(ce());var G3=o((e,t,n,i)=>{if(i()===hA.ControlType.Button){let{actionId:r}=tr(n);return`${e}action::${Zi(r)}::Determining`}return Jt(e,t)},"getFooterActionButtonId"),lp={controlId:G3,controlType:o(()=>hA.ControlType.Button,"controlType")},Ps=class Ps{};o(Ps,"ObjectPageFooterAction"),y([T({flex:lp,generate:mt})],Ps.prototype,"visible",2),y([T({flex:lp})],Ps.prototype,"tooltip",2),y([T({flex:lp})],Ps.prototype,"icon",2),y([T({flex:lp})],Ps.prototype,"activeIcon",2),y([T({flex:lp})],Ps.prototype,"type",2);var mA=Ps;var fp=te(ce());var Vh=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Jt(e,n)},"getControlId"),_c=class _c{};o(_c,"ObjectPageLayout"),y([T({flex:{controlId:Vh,controlType:o(()=>fp.ControlType.ObjectPageLayout,"controlType")},generate:mt})],_c.prototype,"showHeaderContent",2),y([T({flex:{controlId:Vh,controlType:o(()=>fp.ControlType.ObjectPageLayout,"controlType")}})],_c.prototype,"showAnchorBar",2),y([T({flex:{controlId:Vh,controlType:o(()=>fp.ControlType.ObjectPageLayout,"controlType")}})],_c.prototype,"useIconTabBar",2),y([T({flex:{controlId:Vh,controlType:o(()=>fp.ControlType.ObjectPageLayout,"controlType")}}),x({since:"1.34.0"})],_c.prototype,"alwaysShowContentHeader",2);var yA=_c;var l_=te(ce());var Vc=class Vc{};o(Vc,"BaseCustomSection"),y([T({manifest:{path:Ca,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),x({since:"1.52.0"})],Vc.prototype,"relatedFacet",2),y([T({manifest:{path:Ca,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),x({since:"1.52.0"})],Vc.prototype,"relativePosition",2),y([T({manifest:{path:o((t,n,i)=>Ca(t,{},i,l_.ManifestSection.generic),"path")}}),x({since:"1.52.0"})],Vc.prototype,"title",2),y([T({manifest:{path:Ca}}),x({since:"1.52.0"})],Vc.prototype,"className",2);var dp=Vc,up=class up extends dp{};o(up,"ObjectPageCustomSectionFragment"),y([T({manifest:{path:Ca}}),x({since:"1.52.0"})],up.prototype,"fragmentName",2),y([T({manifest:{path:Ca}}),x({since:"1.52.0"})],up.prototype,"type",2);var gp=up,pp=class pp extends dp{};o(pp,"ObjectPageCustomSectionView"),y([T({manifest:{path:Ca}}),x({since:"1.52.0"})],pp.prototype,"viewName",2),y([T({manifest:{path:Ca}}),x({since:"1.52.0"})],pp.prototype,"type",2);var mp=pp;var rr=te(ce());var f_=o((e,t,n,i,r)=>{let s=[qn(n[1],r),rr.DefinitionName.Table];return Jt(e,s)},"getTableSectionControlId"),u_=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"FormGroup"];return Jt(e,s)},"getFormSectionControlId"),p_=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Chart"];return Jt(e,s)},"getChartSectionControlId"),wc=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Section"];return Jt(e,s)},"getSectionControlId"),d_=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"SubSection"];return Jt(e,s)},"getSubSectionControlId"),g_=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"ContactsList"];return Jt(e,s)},"getContactSubSectionControlId"),wh=class wh{};o(wh,"ObjectPageSectionV2"),y([T({flex:{controlId:wc,controlType:o(()=>rr.ControlType.Section,"controlType")},generate:mt})],wh.prototype,"visible",2);var TA=wh,Mh=class Mh{};o(Mh,"ObjectPageSectionFormV2"),y([T({flex:{controlId:wc,controlType:o(()=>rr.ControlType.Section,"controlType")},generate:mt})],Mh.prototype,"visible",2);var vA=Mh,kh=class kh{};o(kh,"ObjectPageSectionChartV2"),y([T({flex:{controlId:wc,controlType:o(()=>rr.ControlType.Section,"controlType")},generate:mt})],kh.prototype,"visible",2);var bA=kh,Uh=class Uh{};o(Uh,"ObjectPageSectionTableV2"),y([T({flex:{controlId:wc,controlType:o(()=>rr.ControlType.Section,"controlType")},generate:mt})],Uh.prototype,"visible",2);var SA=Uh,jh=class jh{};o(jh,"ObjectPageSectionAddressV2"),y([T({flex:{controlId:wc,controlType:o(()=>rr.ControlType.Section,"controlType")},generate:mt})],jh.prototype,"visible",2);var EA=jh,$h=class $h{};o($h,"ObjectPageSectionContactV2"),y([T({flex:{controlId:wc,controlType:o(()=>rr.ControlType.Section,"controlType")},generate:mt})],$h.prototype,"visible",2);var AA=$h,Bh=class Bh{};o(Bh,"ObjectPageSubSectionV2"),y([T({flex:{controlId:d_,controlType:o(()=>rr.ControlType.SubSection,"controlType")},generate:mt})],Bh.prototype,"visible",2);var PA=Bh,Hh=class Hh{};o(Hh,"ObjectPageSubSectionFormV2"),y([T({flex:{controlId:u_,controlType:o(()=>rr.ControlType.Group,"controlType")},generate:mt})],Hh.prototype,"visible",2);var xA=Hh,Gh=class Gh{};o(Gh,"ObjectPageSubSectionChartV2"),y([T({flex:{controlId:p_,controlType:o(()=>rr.ControlType.SmartChart,"controlType")},generate:mt})],Gh.prototype,"visible",2);var CA=Gh,Wh=class Wh{};o(Wh,"ObjectPageSubSectionContactV2"),y([T({flex:{controlId:g_,controlType:o(()=>rr.ControlType.SubSection,"controlType")},generate:mt})],Wh.prototype,"visible",2);var IA=Wh,Kh=class Kh{};o(Kh,"ObjectPageSubSectionTableV2"),y([T({flex:{controlId:f_,controlType:o(()=>rr.ControlType.SmartTable,"controlType")},generate:mt})],Kh.prototype,"visible",2);var OA=Kh;var Xh=class Xh{};o(Xh,"ObjectPageChart"),y([T({manifest:{path:V1}}),x({since:"1.78.0"})],Xh.prototype,"variantManagement",2);var RA=Xh,Qh=class Qh{};o(Qh,"GlobalChartSettings"),y([T({manifest:{path:o(t=>_i(t)+"/chartSettings","path")}}),x({since:"1.78.0"})],Qh.prototype,"variantManagement",2);var LA=Qh;var Ar=te(ce());var Mc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=Ar.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=qn(a[0],r),Jt(e,a)},"getSmartTableControlId"),hp=class hp{};o(hp,"QuickVariantSelectionOP"),y([T({manifest:{path:o((t,n,i)=>go(t,n,i)+Ar.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],hp.prototype,"showCounts",2),y([T({manifest:{path:o((t,n,i)=>go(t,n,i)+Ar.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],hp.prototype,"variants",2);var NA=hp,qh=class qh{};o(qh,"Fields4DialogOP"),y([T({manifest:{path:o((t,n,i)=>Er(t,n,i)+"/createWithParameterDialog","path"),export:yh}}),x({since:"1.77.0"})],qh.prototype,"fields",2);var FA=qh,li=class li{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(li,"CommonTableSettingsForSections"),y([T({manifest:{key:"createWithParameterDialog",path:Er,import:hh}}),x({since:"1.77.0"})],li.prototype,"createWithParameterDialog",2),y([T({flex:{controlId:Mc,controlType:o(()=>Ar.ControlType.SmartTable,"controlType")}}),x({since:"1.28.0"})],li.prototype,"editable",2),y([T({flex:{controlId:Mc,controlType:o(()=>Ar.ControlType.SmartTable,"controlType")}}),x({since:"1.95.0"}),fe("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],li.prototype,"showPasteButton",2),y([T({manifest:{path:Er}}),x({since:"1.54.0"})],li.prototype,"multiSelect",2),y([T({manifest:{path:Er}}),x({since:"1.70.0"})],li.prototype,"selectAll",2),y([T({manifest:{path:Er}}),x({since:"1.70.0"})],li.prototype,"selectionLimit",2),y([T({manifest:{path:go}}),x({since:"1.63.0"})],li.prototype,"quickVariantSelection",2),y([T({flex:{controlId:Mc,controlType:o(()=>Ar.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],li.prototype,"useExportToExcel",2),y([T({flex:{controlId:Mc,controlType:o(()=>Ar.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],li.prototype,"exportType",2),y([T({manifest:{path:go}}),x({since:"1.48.5"}),fe("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],li.prototype,"createMode",2),y([T({manifest:{path:go}}),x({since:"1.61.0"})],li.prototype,"disableDefaultInlineCreateSort",2),y([T({manifest:{path:Er}}),x({since:"1.78.0"})],li.prototype,"variantManagement",2),y([T({manifest:{path:Er}}),x({since:"1.120.0"})],li.prototype,"copy",2),y([$t("toolBar")],li.prototype,"toolBar",2);var kc=li,xs=class xs extends kc{};o(xs,"ObjectPageResponsiveTable"),y([T({manifest:{path:Er}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],xs.prototype,"type",2),y([T({flex:{controlId:Mc,controlType:o(()=>Ar.ControlType.Table,"controlType")}})],xs.prototype,"includeItemInSelection",2),y([T({flex:{controlId:Mc,controlType:o(()=>Ar.ControlType.Table,"controlType")},generate:mt}),x({since:"1.52.0"})],xs.prototype,"popinLayout",2),y([T({manifest:{path:Er}}),x({since:"1.77.0"})],xs.prototype,"inlineDelete",2),y([T({flex:{controlId:Mc,controlType:o(()=>Ar.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],xs.prototype,"growingThreshold",2);var Uc=xs,yp=class yp extends kc{};o(yp,"ObjectPageAnalyticalTable"),y([T({manifest:{path:Er}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],yp.prototype,"type",2),y([T({manifest:{path:go}}),x({since:"1.67.0"})],yp.prototype,"condensedTableLayout",2);var DA=yp,Tp=class Tp extends kc{};o(Tp,"ObjectPageGridTable"),y([T({manifest:{path:Er}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Tp.prototype,"type",2),y([T({manifest:{path:go}}),x({since:"1.67.0"})],Tp.prototype,"condensedTableLayout",2);var _A=Tp,vp=class vp extends kc{};o(vp,"ObjectPageTreeTable"),y([T({manifest:{path:Er}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],vp.prototype,"type",2),y([T({manifest:{path:go}}),x({since:"1.67.0"})],vp.prototype,"condensedTableLayout",2);var VA=vp,Wo=class Wo{};o(Wo,"GlobalTableSettings"),y([T({manifest:{path:ps}}),x({since:"1.70.0"})],Wo.prototype,"selectAll",2),y([T({manifest:{path:ps}}),x({since:"1.78.0"})],Wo.prototype,"variantManagement",2),y([T({manifest:{path:ps}}),x({since:"1.120.0"})],Wo.prototype,"copy",2),y([T({manifest:{path:ps}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Wo.prototype,"type",2),y([T({manifest:{path:ps}}),x({since:"1.54.0"})],Wo.prototype,"multiSelect",2),y([T({manifest:{path:ps}}),x({since:"1.67.0"})],Wo.prototype,"condensedTableLayout",2),y([T({manifest:{path:ps}}),x({since:"1.77.0"})],Wo.prototype,"inlineDelete",2);var wA=Wo;var m_=te(ce());var W3=o((e,t,n,i,r)=>{let{actionId:a}=tr(n),s=qn(n[1],r);return`${e}${s}::action::${Zi(a).replace(":2f","::")}`},"getActionButtonId"),bp={controlId:W3,controlType:o(()=>m_.ControlType.Button,"controlType")},Cs=class Cs{};o(Cs,"ObjectPageToolBarAction"),y([T({flex:bp,generate:mt})],Cs.prototype,"visible",2),y([T({flex:bp})],Cs.prototype,"tooltip",2),y([T({flex:bp})],Cs.prototype,"icon",2),y([T({flex:bp})],Cs.prototype,"activeIcon",2),y([T({flex:bp})],Cs.prototype,"type",2);var MA=Cs;var Vi=te(ce());function UA(e,t,n,i){if(t.controlType===Vi.ControlType.TableColumn||t.controlType===Vi.ControlType.Button){let r=t.controlId.split("-"),a=r[r.length-1],s=t.controlType===Vi.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Vi.VOCWITHCOLONS),u=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(u!=null&&u.startsWith("DataField")?u=u==null?void 0:u.replace("/",":2f"):u=u==null?void 0:u.replace("/","_"),u!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}o(UA,"addFlexChangeToConfigTableColumn");function Yh(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(Vi.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}o(Yh,"addFlexChangeToConfigTable");function zh(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var p,g,m,h,S;let s=br(a),l={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(g=s.content)!=null&&g.newBinding?s.content.newBinding:(m=s.content)==null?void 0:m.newValue,controlType:s.controlType,creation:s.creation},u;if(s.controlType===Vi.ControlType.TableColumn)u=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let b=(!t.table.type||t.table.type===Vi.v2.TableTypeV2.ResponsiveTable)&&!((h=l.controlId)!=null&&h.includes(Vi.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Vi.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;u=(S=e.jsonSchema.definitions[`${b}<${r}>`])==null?void 0:S.properties[l.propertyId]}u&&UA(t.table,l,n,i)})}o(zh,"importFlexChangesOfColumn");function Is(e){return e.replace("/","::")}o(Is,"convertActionKey");function jA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(jA,"convertSelector");function K3(e,t,n,i){var a,s,l,u;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((u=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:u.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}o(K3,"addSmartFilterBarFlex");function X3(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let a=Zi((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let u=a.split(":::"),p=u.find(h=>h.startsWith("sSemanticObject")),g=u.find(h=>h.startsWith("sAction")),m=g.split("sAction::")[1].replace(":2f","::");if(p){let h=`${p.split("::")[1]}::${m}`,S=`${u[0]}:::${p}:::${g}`;i.set(h,r),i.set(r,S)}else i.set(m,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(X3,"filterActions");function Q3(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(Q3,"addColumnActionConfigPart");function q3(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}o(q3,"getActionId");function Y3(e,t,n,i,r){[{name:"HeaderActionStandard",configPart:e.header.actions,id:r},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:r},{name:"FooterAction",configPart:e.footer.actions,id:r&&r.includes("Determining")&&r.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:r},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:r},{name:"TableColumnAction",configPart:e.table.columns,id:r}].forEach(s=>{var u,p;let l=X3(s.name,i);if(l.has(s.id)){let g=l.get(s.id),m=(u=g.split("<")[1])==null?void 0:u.split(">")[0];s.name==="TableColumnAction"&&Q3(s,e,m);let h=s.configPart[m];((p=i.definitions[g])==null?void 0:p.properties[t])&&h&&(h[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}o(Y3,"addActionFlex");function z3(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=Dn(e[lt.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[lt.PropertyName.chart],t):e[lt.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(z3,"addSmartChartFlex");function Jh(e,t,n,i){var r,a;try{let s=br(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(lt.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(lt.PageTypeV2.AnalyticalListPage))switch(s.controlId=jA(s.controlId),s.controlType){case lt.ControlType.SmartFilterBar:{K3(e,l,s,n);break}case lt.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case lt.ControlType.Button:{let u=q3(s);u&&Y3(e,l,s,n,u);break}case lt.ControlType.SmartChart:{z3(e,l,s,n);break}default:break}}catch(s){ae(i,{severity:lt.LogSeverity.Error,message:Q.t("FLEXERROR")},...s)}}o(Jh,"addFlex");function J3(e,t){if(e==="quickVariantSelectionX"&&t[e])for(let n in t[e].variants){let i=t[e].variants[n];if(i.tableSettings){for(let r in i.tableSettings)i[r]=i.tableSettings[r];delete i.tableSettings}}}o(J3,"adjustQuickVariantSelectionX");function _n(e,t,n,i,r,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let u in n.properties){let p=Dn(e,u);if(p!=null&&p.manifest){let g=p.manifest.path([i],t,a);s=Bn(t,g),Fl(p,s,u,e),Om(l,s,g,r)}J3(u,e)}}o(_n,"transferSettingsOfObject");function Zh(e,t){var r,a,s,l,u,p,g,m,h;let n=e[lt.ManifestSection.generic].pages[t],i=lt.v2.TableTypeV2.ResponsiveTable;return(r=e[lt.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[lt.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[lt.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.tableSettings)==null?void 0:g.type)||((m=n.component)==null?void 0:m.settings.tableType):((h=n.component)==null?void 0:h.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=lt.v2.TableTypeV2.AnalyticalTable),i}o(Zh,"determineTableType");function h_(e,t,n,i,r,a,s){var l,u;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,g=JSON.parse(p.substr(1,p.length)),m=e.Text&&e.Text._attributes&&e.Text._attributes.text;m||(m=e.Label&&e.Label._attributes&&e.Label._attributes.text);let h={...(l=e._attributes)!=null&&l.id?{id:(u=e._attributes)==null?void 0:u.id}:{},...m?{text:m}:{},...g,...g.columnKey?{columnKey:g.columnKey}:{},...g.columnIndex?{columnIndex:Number(g.columnIndex)}:{},...g.leadingProperty?{leadingProperty:g.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(h.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(h)}}o(h_,"evaluateFragmentColumn");function Z3(e,t,n,i){let r;if(e===lt.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,u]=a.split("|");s===lt.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&u===i&&(r=t[a].fragmentName)}return r}o(Z3,"determineCellsFragmentName");function e7(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,y_.xml2json)(e[0].fileContent,{compact:!0}))[Bo];try{let g=Yu(p);if(g)if((l=t[lt.PropertyName.table])!=null&&l.columns||(t[lt.PropertyName.table].columns={}),Array.isArray(g))for(let m of g)h_(m,n,i,r,t,a,s);else h_(g,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(e7,"analyzeFilteredFragments");function t7(e,t,n,i,r){var a;for(let s of Object.keys(e)){let l=s.split("|"),[u,p]=l,g=l[2];if(u&&p===t){let m=e[s].type?e[s].type.toLowerCase():"xml",h=e[s].fragmentName;if(!h)continue;let S=Z3(u,e,p,g),b=h.split(".");h=b[b.length-1]+lt.FRAGMENTNAMEPART+m;let O=i.fragments.filter(N=>N.dataSourceUri.endsWith(h));try{e7(O,n,e,s,g,u,S)}catch(N){i.logger.error(N.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(N=>{zh(i,n,N.id,N,r)})}}}o(t7,"processViewExtensions");function Zl(e,t,n,i,r,a="LineItems"){var s,l,u;if(t.fragments&&(u=(l=(s=t.manifest[lt.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&u["sap.ui.viewExtensions"]){let p=lt.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),g=t.manifest[lt.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!g)return;let m=r&&r.target?r.target:n.entitySet;t7(g,m,e,t,a)}}o(Zl,"addFragments");function ey(e,t,n){if(e.header={actions:{}},n[lt.DefinitionName.HeaderActionsStandard]){let i=n[lt.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(lt.PageTypeV2.ListReport,r,{})}}o(ey,"importHeaderActions");var Rs=te(ce());var Sp="sap.suite.ui.generic.template.ListReport";var T_="sap.suite.ui.generic.template.ListReport.view.ListReport";var iy=te(ce());var ty=te(ce());function ef(e,t=!0,n=[]){let i=[ty.ManifestSection.generic];return e.forEach(function(r){i.push("pages"),i.push(r)}),t&&(i.push("component"),i.push("settings")),i.concat(n)}o(ef,"getManifestPathFromPagePath");function Ko(e,t,n){let i=e,r=t.every(function(a){return!i||typeof i!="object"||Array.isArray(i)&&typeof a!="number"?!1:(i=i[a],!0)})&&typeof i=="object"&&i!==null;return{hasPath:r,value:r&&n?i[n]:void 0,parent:r?i:void 0}}o(Ko,"getManifestPropertyByPath");function La(e){return e!==null&&typeof e=="object"}o(La,"isDefinition");function ny(e,t,n,i,r,a,s){let l=n[ty.SchemaTag.conversionExit],u=l==null?void 0:l.name,p=t?t(u):void 0;if(!p)return i;let g=l.params;return e?p.appToConfig(i,g,r??[],n,s):p.configToApp(i,g,r??[],n,a)}o(ny,"executeConversionExit");function jc(e,t,n,i="string",r=!1){let a;if(e===void 0)a=r;else if(e===null||typeof e!="object")a=!0;else{let s=e[t];s===void 0?a=r:a=typeof s!==i||s===null&&r}return a&&ae(n,{severity:iy.LogSeverity.Error,message:Q.t("TYPEERROR",{propertyName:t,expectedType:i})}),a}o(jc,"hasPropertyTypeError");var nae=Symbol("Property is suppressed without explanation");var Bt=te(ce());function $c(e,t,n){var r;let i;for(let a in e){let s=e[a];if(ha((r=s.component)==null?void 0:r.name)===Bt.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=$c(s.pages,t,n),i))return n.unshift(a),i}}o($c,"findObjectPageV2");function tf(e,t){var n;for(let i in e){let r=e[i];if(ha((n=r.component)==null?void 0:n.name)===Bt.PageTypeV2.ListReport)return t.push(i),r}}o(tf,"findListReportPageV2");function nf(e){if(!e.manifest[Bt.ManifestSection.generic]){ae(e.logger,{severity:Bt.LogSeverity.Error,message:Q.t("NOFE"),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}});return}let t=e.manifest[Bt.ManifestSection.generic].pages;if(!t){ae(e.logger,{severity:Bt.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}});return}return t}o(nf,"getV2Pages");function rf(e,t,n){var i;if(!e){ae(t,{severity:Bt.LogSeverity.Error,message:Q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;ae(t,{severity:Bt.LogSeverity.Error,message:Q.t("NOENTITYSET",{pageName:r}),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}})}}o(rf,"checkV2Page");function of(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),ha((i=a.component)==null?void 0:i.name)===Bt.PageTypeV2.AnalyticalListPage)return a}ae(n,{severity:Bt.LogSeverity.Error,message:Q.t("NOALP"),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}})}o(of,"findAnalyticalListPage");function $A(e,t){let n=e.split("|");return Bt.v2.SectionPosition[n[0]]&&n[1]===t}o($A,"isAssociatedCustomSection");function v_(e,t){let n=Bn(e,`sap.ui5/extends/extensions/${Bt.v2.SAPUI5_VIEW_EXTENSION}/${Bt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)$A(r,t)&&(i[r]=n[r]);return i}o(v_,"findCustomSectionExtensions");function n7(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}o(n7,"removeEmptySettingsOfFooter");function i7(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let r in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[r]).length===0&&delete e.filterBar.selectionFields[r];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}o(i7,"removeEmptySettingsOfFilterBar");function r7(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}o(r7,"removeEmptySettingsOfToolBar");function ry(e){r7(e),i7(e),n7(e)}o(ry,"removeEmptySettings");var Yt=te(ce());var S_=te(ce());var BA={};lc(BA,{ACTION_GROUPS_ARENT_SUPPORTED:()=>X7,ANNOERR:()=>P7,ANNOTATIONFILE:()=>x7,COMPONENTNOTDEFINED:()=>C7,CONTEXTPATHCOULDNOTBERESOLVED:()=>b7,ENTITYSETNOTFOUND:()=>v7,FLEXERROR:()=>w7,INCONSISTENTSCHEMA:()=>W7,INVALIDANCHOR:()=>M7,INVALIDEXTENSION:()=>k7,INVALIDTARGETDEFINITION:()=>j7,MACROS_ANNOTATION_ERROR:()=>H7,NOALP:()=>E7,NOANNOTATIONFORPATH:()=>y7,NOBASEPATH:()=>s7,NOCHARTS:()=>L7,NOENTITYSET:()=>p7,NOENTITYTYPE4SET:()=>d7,NOFE:()=>l7,NOFRAGMENT:()=>U7,NOGENERICSCHEMA:()=>f7,NOID4SECTION:()=>$7,NOLINEITEMANDCHARTS:()=>N7,NOLINEITEMFORPATH:()=>T7,NOLINEITEMS:()=>R7,NOLR:()=>S7,NOPAGEFORENTITYSET:()=>u7,NOPAGES:()=>c7,NOPRESENTATIONVARIANT:()=>g7,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>m7,NOPRESENTATIONVARIANTFORSPV:()=>h7,NOROUTING:()=>I7,NOROUTINGID:()=>V7,NOTARGET:()=>_7,NOTARGETS:()=>D7,NOTEMPLATE:()=>A7,NOUIANNOTATIONS:()=>O7,NOVISUALIZATIONS:()=>F7,TYPEERROR:()=>G7,UNEXISTING_ANNOTATION_PATH:()=>K7,UNKNOWNMINUI5VERSION:()=>a7,WRONGMINUI5VERSION:()=>o7,XMLPARSEFAILURE:()=>B7,default:()=>Q7});var o7="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",a7="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",s7="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",c7="No pages found in manifest for app with id '{{- appId}}'",l7="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",f7="No generic schema found while generating page schema for {{- pageType}}",u7="No page found in manifest for entitySet '{{- entitySet}}'",p7="No entitySet defined for page '{{- pageName}}'",d7="No entityType could be found for the given entity set '{{- entitySetName}}'",g7="No PresentationVariant defined for '{{- key}}'",m7="No PresentationVariant found for default SelectionPresentationVariant",h7="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",y7="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",T7="No line item annotation found for path '{{- annotationPath}}'",v7="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",b7="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",S7="No page found in manifest for list report",E7="No page found in manifest for analytical list page",A7="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",P7="Error while parsing annotation files",x7="Annotation file: '{{- file}}'",C7="Component name is not defined for page '{{- pageName}}'",I7="Incomplete manifest definition: no routing defined",O7="No UI Annotation defined for entity type '{{- entityType }}'",R7="UI.LineItem annotation has not been defined",L7="UI.Chart annotation has not been defined",N7="Neither UI.LineItem nor UI.Chart annotation has been defined",F7="Empty Collection for Visualizations",D7="Incomplete manifest definition: no targets defined",_7="Invalid reference: annotation target '{{- target}}' not found",V7="No page found in manifest for routingId '{{- routingId}}'",w7="Error while parsing flex change",M7="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",k7="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",U7="fragmentName is undefined for columnKey '{{- columnKey}}'",j7="Invalid routing target definition in manifest: '{{- target}}'",$7="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",B7="Parsing of XML file failed with error - {{- error}}",H7="Error during resolving annotation for '{{- control}}'",G7="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",W7="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",K7="The annotation path doesn't exist.",X7="Action groups aren't supported in the version you're using. Please update to SAPUI5 1.132 or higher.",Q7={WRONGMINUI5VERSION:o7,UNKNOWNMINUI5VERSION:a7,NOBASEPATH:s7,NOPAGES:c7,NOFE:l7,NOGENERICSCHEMA:f7,NOPAGEFORENTITYSET:u7,NOENTITYSET:p7,NOENTITYTYPE4SET:d7,NOPRESENTATIONVARIANT:g7,NOPRESENTATIONVARIANTFORDEFAULTSPV:m7,NOPRESENTATIONVARIANTFORSPV:h7,NOANNOTATIONFORPATH:y7,NOLINEITEMFORPATH:T7,ENTITYSETNOTFOUND:v7,CONTEXTPATHCOULDNOTBERESOLVED:b7,NOLR:S7,NOALP:E7,NOTEMPLATE:A7,ANNOERR:P7,ANNOTATIONFILE:x7,COMPONENTNOTDEFINED:C7,NOROUTING:I7,NOUIANNOTATIONS:O7,NOLINEITEMS:R7,NOCHARTS:L7,NOLINEITEMANDCHARTS:N7,NOVISUALIZATIONS:F7,NOTARGETS:D7,NOTARGET:_7,NOROUTINGID:V7,FLEXERROR:w7,INVALIDANCHOR:M7,INVALIDEXTENSION:k7,NOFRAGMENT:U7,INVALIDTARGETDEFINITION:j7,NOID4SECTION:$7,XMLPARSEFAILURE:B7,MACROS_ANNOTATION_ERROR:H7,TYPEERROR:G7,INCONSISTENTSCHEMA:W7,UNEXISTING_ANNOTATION_PATH:K7,ACTION_GROUPS_ARENT_SUPPORTED:X7};function b_(e){e.addResourceBundle(e.language,"translation",BA)}o(b_,"initI18n");function qt(e="en"){Q.init({resources:{en:{translation:S_.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
292
|
+
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var sh=require("path");var Bo="core:FragmentDefinition",ah="sap.ui.table",PA=new Map([[St.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[St.ViewTemplateType.TreeTableColumnsExtension,{namespace:ah,name:"Column"}],[St.ViewTemplateType.GridTableColumnsExtension,{namespace:ah,name:"Column"}],[St.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:ah,name:"AnalyticalColumn"}]]),m3=new Map([[St.v2.FE_TEMPLATE_V2_LIST_REPORT,St.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[St.v2.FE_TEMPLATE_V2_ALP,St.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[St.v2.FE_TEMPLATE_V2_OBJECT_PAGE,St.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),n_={type:"element",name:"Text",attributes:{text:"Placeholder"}},h3=JSON.stringify(n_);function y3(e,t){var i;let n=t?(i=e==null?void 0:e[Bo])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let r=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=r.get(n[a]);r.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),r}else throw new Error("Invalid fragment, please check content")}o(y3,"getFragmentNamespaces");function t_(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(t_,"getTagName");function ch(e,t,n=e){let i=y3(n,!!(t||n!==e));if(t){let r=PA.get(t);return t_(r,i.get(r.namespace))}else{let r=PA.keys();for(let a of r){let s=PA.get(a),l=i?t_(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(ch,"getTagNameFromFragmentJSON");function Yu(e,t=e){let n=ch(e,void 0,t);return e[n]}o(Yu,"getRootCustomColumnFromFragmentJSON");function T3(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let a=e[t][r];!n.includes(r)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${a.toString()}"`)}return i+="}",i}o(T3,"addP13nData");function i_(e,t){var l,u,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let r=i["core:CustomData"]._attributes.value,a=JSON.parse(r.substr(1,r.length)),s=t.findIndex(g=>g.columnKey===a.columnKey);return s<0?!1:(n=!0,r=T3(t,s),i["core:CustomData"]._attributes.value=r,!e.Text&&!e.Label&&((l=t[s])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(u=t[s])==null?void 0:u.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(p=t[s])==null?void 0:p.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}o(i_,"handleFragmentColumn");function v3(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+St.FRAGMENTNAMEPART+a;for(let u of t){let p=u.dataSourceUri.split(sh.sep);if(p[p.length-1]===l){let g=JSON.parse((0,yo.xml2json)(u.fileContent,{compact:!0}));try{let m=ch(g[Bo]);m&&(delete g[Bo][m],u.fileContent=(0,yo.json2xml)(JSON.stringify(g),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${u.dataSourceUri}, please check content`)}break}}}o(v3,"deleteColumnsFromFragment");function r_(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===h3&&(e.splice(n,1),t-=1,t===0));n++);}o(r_,"deleteNumberOfCells");function b3(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+St.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,yo.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&r_(l.elements[0].elements,u.length),s.fileContent=(0,yo.json2xml)(JSON.stringify(l),{spaces:4});break}}o(b3,"deleteCellsFromFragment");function lh(e,t,n,i){if(i){v3(e,i,t,n);let r=t.replace(St.ViewTemplateType.ResponsiveTableColumnsExtension,St.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&b3(a,i,n)}}o(lh,"deleteColumnFromFragment");function S3(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let r=i;r<Object.keys(n).length;r++)t.elements[0].elements.push(n_)}o(S3,"addNewColumnsInFragment");function A3(e,t){let n=JSON.parse((0,yo.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)S3(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;r_(a,r)}e.fileContent=(0,yo.json2xml)(JSON.stringify(n),{spaces:4})}}o(A3,"updateNonEmptyCellsFragment");function E3(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(sh.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=St.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=EA(n):A3(r,n);break}}return i}o(E3,"updateCellsFragment");function P3(e,t,n,i,r){var g;let a,s,l=t.manifest,u=Bn(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){ae(r,{severity:St.LogSeverity.Error,message:Q.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=St.ChangeIndicator.Updated,u.fragmentName=m.fragmentName,u.className=m.className,a=((g=m.fragmentName)==null?void 0:g.replace(i,"<root>/webapp").replace(/[.]/g,sh.sep))+St.FRAGMENTNAMEPART+p}if(e.indexOf(St.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=St.ChangeIndicator.Updated;let m=e.replace(St.ViewTemplateType.ResponsiveTableColumnsExtension,St.ViewTemplateType.ResponsiveTableCellsExtension),h=Bn(l,m),S=n.reduce((b,O)=>O.cellsFragmentName?O:b);S&&S.cellsFragmentName?(h.fragmentName=s=S.cellsFragmentName,h.className=n[0].className,h.type=p.toUpperCase()):F1(l,m)}return{manifestSection:u,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(P3,"exportCustomColumnsToManifest");function x3(e,t,n,i,r){let a=SA(e,t);if(a){let s=JSON.parse((0,yo.xml2json)(a,{compact:!0})),l=Yu(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(l))||n.push(l);else if(n){let u=[n];u.splice(r,0,l),n=u}else n=[l]}return n}o(x3,"insertNewColumnInFragment");function C3(e,t){let n=[];for(let i=0;i<e.length;i++)i_(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(C3,"processCustomColumnInArray");function I3(e,t,n){if(e){if(Array.isArray(e))C3(e,t);else if(!i_(e,t)){let r=ch(n[Bo]);r&&(delete n[Bo][r],e=void 0)}}return e}o(I3,"maintainExistingColumnInFragment");function O3(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=x3(a,i,n,r,s)}return n}o(O3,"insertNewColumnsInFragment");function R3(e,t,n,i,r){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=St.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=AA(i,r);else{let u=JSON.parse((0,yo.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Yu(u[Bo]),l=I3(l,i,u),l=O3(i,n,l,r,u);let g=ch(u,r);u[Bo][g]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,yo.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(R3,"updateColumnsInFragment");function xA(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=P3(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),h=l.fragmentName,S=h.substr(i.length+1),b=S.split(".");h=b[b.length-1]+St.FRAGMENTNAMEPART+g;let N=p==null?void 0:p.split("."),M=N?N[N.length-1]:null,G=M?M+St.FRAGMENTNAMEPART+g:null,j=R3(s,h,S,m,r),re=!1;if(p?re=E3(s,G,n):re=!0,!j){let Z={fileContent:AA(m,r),dataSourceUri:u,changeIndicator:St.ChangeIndicator.Deleted};e.fragments.push(Z)}if(!re){let Z={fileContent:EA(n),dataSourceUri:u.replace(h,G),changeIndicator:St.ChangeIndicator.Deleted};e.fragments.push(Z)}}o(xA,"exportCustomColumnsToFragment");var fh=o((e,t,n,i)=>{var u,p,g,m;if(!e)return;let r=m3.get((u=e.component)==null?void 0:u.name);if(!i){let h=(m=(g=(p=e.component)==null?void 0:p.settings)==null?void 0:g.tableSettings)==null?void 0:m.type;h||(h="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(h="AnalyticalTable"),i=h+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var ci=te(ce());var CA="/multiEdit",Ic=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+ci.PropertyName.table:Jt(e,t),"getSmartTableControlId");function hh(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let r in t)n.fields.push(r);return n}o(hh,"importCreateParameters");function yh(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(a=>r[a]=e[n][a]||{path:a}),e[n]=r}o(yh,"exportCreateParametersFields");function L3(e,t){let n=e.variants||{},i=t.variants||{};Object.keys(n).filter(a=>!Object.keys(i).includes(a)).forEach(a=>{delete n[a]});for(let a in i){let s=i[a],l=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let u in s)l.indexOf(u)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[u]=s[u],delete s[u]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}o(L3,"exportVariants");function N3(e,t){t.variants&&(Object.keys(t.variants).length>0?L3(e,t):delete e.variants)}o(N3,"exportQuickVariantSelectionX");function F3(e){var n,i;if(!e||!e.multiEdit)return;let t=JSON.parse(JSON.stringify(e.multiEdit));return t.ignoredFields=(i=(n=e.multiEdit)==null?void 0:n.ignoredFields)==null?void 0:i.split(","),t}o(F3,"importMultiEdit");var uh=class uh{};o(uh,"CreateWithFilters"),y([T({manifest:{path:o(t=>Ue(t)+"/createWithFilters","path")}})],uh.prototype,"strategy",2);var IA=uh,Ql=class Ql{};o(Ql,"MultiEdit"),y([T({manifest:{path:o(t=>Qr(t)+CA,"path")}})],Ql.prototype,"enabled",2),y([T({manifest:{path:o(t=>Qr(t)+CA,"path")}})],Ql.prototype,"annotationPath",2),y([T({manifest:{path:o(t=>Qr(t)+CA,"path"),export:vm}})],Ql.prototype,"ignoredFields",2);var OA=Ql;function Zu(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}o(Zu,"importType");function zl(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(zl,"exportType");function Jl(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}o(Jl,"deleteType");var ph=class ph{};o(ph,"DataLoadSettings"),y([T({manifest:{path:o(t=>_1(t),"path")}}),x({since:"1.75.2"})],ph.prototype,"loadDataOnAppLaunch",2);var RA=ph,dh=class dh{};o(dh,"Fields4Dialog"),y([T({manifest:{path:o(t=>Qr(t)+"/createWithParameterDialog","path"),export:yh}}),x({since:"1.77.0"})],dh.prototype,"fields",2);var LA=dh,zu=class zu{};o(zu,"QuickVariantSelection"),y([T({manifest:{path:o(t=>Ue(t)+ci.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],zu.prototype,"showCounts",2),y([T({manifest:{path:o(t=>Ue(t)+ci.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],zu.prototype,"variants",2);var NA=zu,ql=class ql{};o(ql,"QuickVariantSelectionX"),y([T({manifest:{path:o(t=>Ue(t)+ci.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],ql.prototype,"showCounts",2),y([T({manifest:{path:o(t=>Ue(t)+ci.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],ql.prototype,"enableAutoBinding",2),y([T({manifest:{path:o(t=>Ue(t)+ci.QUICKVARPATHX,"path"),export:N3}}),x({since:"1.48.0"})],ql.prototype,"variants",2);var FA=ql,si=class si{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}},enableAutoBinding:{since:"1.40.0",deprecated:{since:"1.75.2",text:"Use tableSettings.loadDataOnAppLaunch instead"}}}),"getDeprecated")}};o(si,"CommonTableSettings"),y([T({manifest:{key:"createWithParameterDialog",path:o(t=>Qr(t),"path"),import:hh}}),x({since:"1.77.0"})],si.prototype,"createWithParameterDialog",2),y([T({flex:{controlId:Jt,controlType:o(()=>ci.ControlType.SmartTable,"controlType")}}),x({since:"1.38.0"})],si.prototype,"showTablePersonalisation",2),y([T({flex:{controlId:Ic,controlType:o(()=>ci.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],si.prototype,"useExportToExcel",2),y([T({flex:{controlId:Ic,controlType:o(()=>ci.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],si.prototype,"exportType",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.48.0"})],si.prototype,"quickVariantSelection",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.48.0"})],si.prototype,"quickVariantSelectionX",2),y([T({manifest:{path:o(t=>Qr(t),"path")}}),x({since:"1.38.0"})],si.prototype,"multiSelect",2),y([T({manifest:{path:o(t=>Qr(t),"path")}}),x({since:"1.120.0"})],si.prototype,"copy",2),y([T({manifest:{path:o(t=>Qr(t),"path")}}),x({since:"1.70.0"})],si.prototype,"selectAll",2),y([T({manifest:{path:o(t=>Qr(t),"path")}}),x({since:"1.70.0"})],si.prototype,"selectionLimit",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.75.2"})],si.prototype,"dataLoadSettings",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.42.0"})],si.prototype,"condensedTableLayout",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],si.prototype,"enableTableFilterInPageVariant",2),y([$t("toolBar")],si.prototype,"toolBar",2);var vs=si,Ho=class Ho extends vs{};o(Ho,"ResponsiveTable"),y([T({manifest:{path:o(t=>Ue(t),"path"),import:Zu,export:zl,delete:Jl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Ho.prototype,"type",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.54.0"})],Ho.prototype,"createWithFilters",2),y([T({flex:{controlId:Ic,controlType:o(()=>ci.ControlType.Table,"controlType")},generate:Yn}),x({since:"1.52.0"})],Ho.prototype,"popinLayout",2),y([T({flex:{controlId:Ic,controlType:o(()=>ci.ControlType.Table,"controlType")}})],Ho.prototype,"includeItemInSelection",2),y([T({manifest:{path:o(t=>Qr(t),"path")}}),x({since:"1.77.0"})],Ho.prototype,"inlineDelete",2),y([T({flex:{controlId:Ic,controlType:o(()=>ci.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],Ho.prototype,"growingThreshold",2),y([T({manifest:{path:o(t=>Qr(t),"path"),import:F3}}),x({since:"1.98.0"})],Ho.prototype,"multiEdit",2);var Oc=Ho,gh=class gh extends vs{};o(gh,"TreeTable"),y([T({manifest:{path:o(t=>Ue(t),"path"),import:Zu,export:zl,delete:Jl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],gh.prototype,"type",2);var DA=gh,To=class To extends vs{};o(To,"AnalyticalTable"),y([T({manifest:{path:o(t=>Ue(t),"path"),import:Zu,export:zl,delete:Jl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],To.prototype,"type",2),y([T({manifest:{path:o(t=>Ue(t),"path")}})],To.prototype,"qualifier",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.38.0"}),T({manifest:{path:o(t=>Ue(t),"path")}})],To.prototype,"defaultContentView",2),y([T({manifest:{path:o(t=>Ue(t),"path")}})],To.prototype,"defaultFilterMode",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.60.0"})],To.prototype,"contentTitle",2),y([T({manifest:{path:o(t=>Ue(t),"path")}})],To.prototype,"autoHide",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.78.0"})],To.prototype,"allFiltersAsInParameters",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.54.0"})],To.prototype,"createWithFilters",2);var _A=To,Go=class Go extends vs{};o(Go,"TableALP"),y([T({manifest:{path:o(t=>Ue(t),"path"),import:Zu,export:zl,delete:Jl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Go.prototype,"type",2),y([T({manifest:{path:o(t=>Ue(t),"path")}})],Go.prototype,"qualifier",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.38.0"}),T({manifest:{path:o(t=>Ue(t),"path")}})],Go.prototype,"defaultContentView",2),y([T({manifest:{path:o(t=>Ue(t),"path")}})],Go.prototype,"defaultFilterMode",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.60.0"})],Go.prototype,"contentTitle",2),y([T({manifest:{path:o(t=>Ue(t),"path")}})],Go.prototype,"autoHide",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.78.0"})],Go.prototype,"allFiltersAsInParameters",2);var Yl=Go,mh=class mh extends Yl{};o(mh,"ALPResponsiveTable"),y([T({flex:{controlId:Ic,controlType:o(()=>ci.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],mh.prototype,"growingThreshold",2);var VA=mh,UA=class UA extends Yl{};o(UA,"ALPGridTable");var wA=UA,jA=class jA extends Yl{};o(jA,"ALPAnalyticalTable");var MA=jA,Ju=class Ju extends vs{};o(Ju,"GridTable"),y([T({manifest:{path:o(t=>Ue(t),"path"),import:Zu,export:zl,delete:Jl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Ju.prototype,"type",2),y([T({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.54.0"})],Ju.prototype,"createWithFilters",2);var kA=Ju;var ep=te(ce());var D3=o((e,t,n)=>{let{actionId:i}=tr(n);return`${e}action::${Zi(i).replace(":2f","::")}`},"getActionButtonId"),_3=o((e,t,n)=>{let{actionId:i}=tr(n);return`${e}template::${i}`},"getStandardActionButtonId"),V3=o((e,t,n)=>{let{actionId:i}=tr(n);return`${e}${km}${i}`},"getStandardFooterActionOPButtonId"),zA=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=tr(n);return`${e}action::${i}::${Zi(r)}`},"buildIntentBasedActionId"),w3=o((e,t,n)=>{let{actionId:i}=tr(n);return`${e}action::${Zi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),bs={controlId:D3,controlType:o(()=>ep.ControlType.Button,"controlType")},tp={controlId:_3,controlType:o(()=>ep.ControlType.Button,"controlType")},o_={controlId:V3,controlType:o(()=>ep.ControlType.Button,"controlType")},Th={controlId:w3,controlType:o(()=>ep.ControlType.Button,"controlType")},Rc=class Rc{};o(Rc,"Action"),y([T({flex:bs})],Rc.prototype,"tooltip",2),y([T({flex:bs})],Rc.prototype,"icon",2),y([T({flex:bs})],Rc.prototype,"activeIcon",2),y([T({flex:bs})],Rc.prototype,"type",2);var $A=Rc,Lc=class Lc{};o(Lc,"ToolBarAction"),y([T({flex:bs})],Lc.prototype,"tooltip",2),y([T({flex:bs})],Lc.prototype,"icon",2),y([T({flex:bs})],Lc.prototype,"activeIcon",2),y([T({flex:bs})],Lc.prototype,"type",2);var BA=Lc,Nc=class Nc{};o(Nc,"FooterAction"),y([T({flex:Th})],Nc.prototype,"tooltip",2),y([T({flex:Th})],Nc.prototype,"icon",2),y([T({flex:Th})],Nc.prototype,"activeIcon",2),y([T({flex:Th})],Nc.prototype,"type",2);var HA=Nc,vh=class vh{};o(vh,"Share"),y([T({flex:tp})],vh.prototype,"visible",2);var GA=vh,bh=class bh{};o(bh,"ShareOP"),y([T({flex:tp})],bh.prototype,"visible",2);var WA=bh,Sh=class Sh{};o(Sh,"UpAndDownNavigationOP"),y([T({flex:tp})],Sh.prototype,"visible",2);var KA=Sh,Ah=class Ah{};o(Ah,"SaveAndEditOP"),y([T({flex:o_,generate:mt})],Ah.prototype,"visible",2);var XA=Ah,Eh=class Eh{};o(Eh,"HeaderActionStandard"),y([T({flex:tp})],Eh.prototype,"visible",2);var QA=Eh,Ph=class Ph{};o(Ph,"ObjectPageHeaderActionStandard"),y([T({flex:tp})],Ph.prototype,"visible",2);var qA=Ph,xh=class xh{};o(xh,"ObjectPageFooterActionStandard"),y([T({flex:o_})],xh.prototype,"visible",2);var YA=xh;var rp=te(ce());var M3=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=tr(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),k3=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=tr(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),U3=o((e,t,n)=>{let{actionId:i}=tr(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),JA={controlId:M3,controlType:o(()=>rp.ControlType.TableColumn,"controlType")},np={controlId:U3,controlType:o(()=>rp.ControlType.Button,"controlType")},a_={...JA,controlId:k3},Ch={...np,controlId:zA},ip=class ip{};o(ip,"TableColumn"),y([T({flex:{controlId:aS,controlType:o(()=>rp.ControlType.TableColumn,"controlType")}})],ip.prototype,"width",2),y([T({flex:{controlId:aS,controlType:o(()=>rp.ControlType.TableColumn,"controlType")},generate:Yn})],ip.prototype,"hAlign",2);var ZA=ip,Ia=class Ia{};o(Ia,"TableColumnAction"),y([T({flex:JA})],Ia.prototype,"width",2),y([T({flex:JA,generate:Yn})],Ia.prototype,"hAlign",2),y([T({flex:np})],Ia.prototype,"tooltip",2),y([T({flex:np})],Ia.prototype,"icon",2),y([T({flex:np})],Ia.prototype,"activeIcon",2),y([T({flex:np})],Ia.prototype,"type",2);var Ih=Ia,Oa=class Oa extends Ih{};o(Oa,"TableColumnActionIntentBased"),y([T({flex:a_})],Oa.prototype,"width",2),y([T({flex:a_,generate:Yn})],Oa.prototype,"hAlign",2),y([T({flex:Ch})],Oa.prototype,"tooltip",2),y([T({flex:Ch})],Oa.prototype,"icon",2),y([T({flex:Ch})],Oa.prototype,"activeIcon",2),y([T({flex:Ch})],Oa.prototype,"type",2);var eE=Oa,nE=class nE{};o(nE,"TableCustomColumn");var tE=nE;var rE=class rE{};o(rE,"ToolBar");var iE=rE;var Fc=te(ce());var op=o(e=>e+Fc.PropertyName.chart,"getSmartChartControlId"),Ss=class Ss{};o(Ss,"ChartSettings"),y([T({flex:{controlId:op,controlType:o(()=>Fc.ControlType.SmartChart,"controlType")}})],Ss.prototype,"showLegendButton",2),y([T({flex:{controlId:op,controlType:o(()=>Fc.ControlType.SmartChart,"controlType")}})],Ss.prototype,"showDownloadButton",2),y([T({flex:{controlId:op,controlType:o(()=>Fc.ControlType.SmartChart,"controlType")}})],Ss.prototype,"showChartTypeSelectionButton",2),y([T({flex:{controlId:op,controlType:o(()=>Fc.ControlType.SmartChart,"controlType"),exportFlexValue:o((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:o((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue")}})],Ss.prototype,"ignoredChartTypes",2),y([T({manifest:{path:o(t=>D1(t),"path")}}),x({since:"1.81.0"})],Ss.prototype,"showDataLabel",2);var oE=Ss;var Ra=class Ra{};o(Ra,"KPISettings"),y([T({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"model",2),y([T({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"entitySet",2),y([T({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"qualifier",2),y([T({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"filterable",2),y([T({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"detailNavigation",2),y([T({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"groupId",2);var aE=Ra;var s_=te(ce());var j3=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Jt(e,n)},"getAvatarControlId"),As=class As{};o(As,"ObjectPageHeader"),y([T({manifest:{path:o(t=>_i(t),"path")}}),x({since:"1.46.0"})],As.prototype,"showRelatedApps",2),y([T({manifest:{path:o(t=>_i(t),"path")}}),x({since:"1.46.0"})],As.prototype,"editableHeaderContent",2),y([T({manifest:{path:o(t=>_i(t),"path")}}),x({since:"1.48.0"})],As.prototype,"simpleHeaderFacets",2),y([T({manifest:{path:o(t=>_i(t),"path")}}),x({since:"1.48.0"}),fe("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],As.prototype,"showHeaderAsCarouselOnDesktop",2),y([T({flex:{controlId:j3,controlType:o(()=>s_.ControlType.Avatar,"controlType")},generate:mt})],As.prototype,"displayShape",2);var sE=As;var Oh=te(ce());var $3=o((e,t,n,i)=>{if(i()===Oh.ControlType.Button||i()===Oh.ControlType.HeaderAction){let r=n[2];return`${e}action::${Zi(r)}`}return Jt(e,t)},"getActionButtonId"),ap={controlId:$3,controlType:o(()=>Oh.ControlType.HeaderAction,"controlType")},Es=class Es{};o(Es,"ObjectPageHeaderAction"),y([T({flex:ap,generate:mt})],Es.prototype,"visible",2),y([T({flex:ap})],Es.prototype,"tooltip",2),y([T({flex:ap})],Es.prototype,"icon",2),y([T({flex:ap})],Es.prototype,"activeIcon",2),y([T({flex:ap})],Es.prototype,"type",2);var cE=Es;var sp=te(ce());var _h="header::headerEditable::",B3=o((e,t,n,i,r)=>`${e}${_h}${r}`,"getDataPointHeaderSectionId"),H3=o((e,t,n,i,r)=>`${e}${_h}${r}::ContactAddress`,"getAddressHeaderSectionId"),G3=o((e,t,n,i,r)=>`${e}${_h}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),c_=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(sp.FACETTITLEPREFIX)?r.split(sp.FACETTITLEPREFIX)[1]:a;return`${e}${_h}${s}::Form`},"getFormHeaderSectionId"),cp={controlType:o(()=>sp.ControlType.ObjectPageHeaderSection,"controlType")},Rh=class Rh{};o(Rh,"CommonHeaderFacetSettings"),y([T({flex:{...cp,controlId:c_},generate:mt})],Rh.prototype,"visible",2);var Dc=Rh,Lh=class Lh extends Dc{};o(Lh,"ObjectPageHeaderSectionForm"),y([T({flex:{...cp,controlId:c_}})],Lh.prototype,"visible",2);var lE=Lh,Nh=class Nh extends Dc{};o(Nh,"ObjectPageHeaderSectionChart"),y([T({flex:{...cp,controlId:G3}})],Nh.prototype,"visible",2);var fE=Nh,Fh=class Fh extends Dc{};o(Fh,"ObjectPageHeaderSectionDataPoint"),y([T({flex:{...cp,controlId:B3}})],Fh.prototype,"visible",2);var uE=Fh,Dh=class Dh extends Dc{};o(Dh,"ObjectPageHeaderSectionAddress"),y([T({flex:{...cp,controlId:H3}})],Dh.prototype,"visible",2);var pE=Dh,gE=class gE{};o(gE,"HeaderSections");var dE=gE;var hE=te(ce());var W3=o((e,t,n,i)=>{if(i()===hE.ControlType.Button){let{actionId:r}=tr(n);return`${e}action::${Zi(r)}::Determining`}return Jt(e,t)},"getFooterActionButtonId"),lp={controlId:W3,controlType:o(()=>hE.ControlType.Button,"controlType")},Ps=class Ps{};o(Ps,"ObjectPageFooterAction"),y([T({flex:lp,generate:mt})],Ps.prototype,"visible",2),y([T({flex:lp})],Ps.prototype,"tooltip",2),y([T({flex:lp})],Ps.prototype,"icon",2),y([T({flex:lp})],Ps.prototype,"activeIcon",2),y([T({flex:lp})],Ps.prototype,"type",2);var mE=Ps;var fp=te(ce());var Vh=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Jt(e,n)},"getControlId"),_c=class _c{};o(_c,"ObjectPageLayout"),y([T({flex:{controlId:Vh,controlType:o(()=>fp.ControlType.ObjectPageLayout,"controlType")},generate:mt})],_c.prototype,"showHeaderContent",2),y([T({flex:{controlId:Vh,controlType:o(()=>fp.ControlType.ObjectPageLayout,"controlType")}})],_c.prototype,"showAnchorBar",2),y([T({flex:{controlId:Vh,controlType:o(()=>fp.ControlType.ObjectPageLayout,"controlType")}})],_c.prototype,"useIconTabBar",2),y([T({flex:{controlId:Vh,controlType:o(()=>fp.ControlType.ObjectPageLayout,"controlType")}}),x({since:"1.34.0"})],_c.prototype,"alwaysShowContentHeader",2);var yE=_c;var l_=te(ce());var Vc=class Vc{};o(Vc,"BaseCustomSection"),y([T({manifest:{path:Ca,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),x({since:"1.52.0"})],Vc.prototype,"relatedFacet",2),y([T({manifest:{path:Ca,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),x({since:"1.52.0"})],Vc.prototype,"relativePosition",2),y([T({manifest:{path:o((t,n,i)=>Ca(t,{},i,l_.ManifestSection.generic),"path")}}),x({since:"1.52.0"})],Vc.prototype,"title",2),y([T({manifest:{path:Ca}}),x({since:"1.52.0"})],Vc.prototype,"className",2);var dp=Vc,up=class up extends dp{};o(up,"ObjectPageCustomSectionFragment"),y([T({manifest:{path:Ca}}),x({since:"1.52.0"})],up.prototype,"fragmentName",2),y([T({manifest:{path:Ca}}),x({since:"1.52.0"})],up.prototype,"type",2);var gp=up,pp=class pp extends dp{};o(pp,"ObjectPageCustomSectionView"),y([T({manifest:{path:Ca}}),x({since:"1.52.0"})],pp.prototype,"viewName",2),y([T({manifest:{path:Ca}}),x({since:"1.52.0"})],pp.prototype,"type",2);var mp=pp;var rr=te(ce());var f_=o((e,t,n,i,r)=>{let s=[qn(n[1],r),rr.DefinitionName.Table];return Jt(e,s)},"getTableSectionControlId"),u_=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"FormGroup"];return Jt(e,s)},"getFormSectionControlId"),p_=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Chart"];return Jt(e,s)},"getChartSectionControlId"),wc=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Section"];return Jt(e,s)},"getSectionControlId"),d_=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"SubSection"];return Jt(e,s)},"getSubSectionControlId"),g_=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"ContactsList"];return Jt(e,s)},"getContactSubSectionControlId"),wh=class wh{};o(wh,"ObjectPageSectionV2"),y([T({flex:{controlId:wc,controlType:o(()=>rr.ControlType.Section,"controlType")},generate:mt})],wh.prototype,"visible",2);var TE=wh,Mh=class Mh{};o(Mh,"ObjectPageSectionFormV2"),y([T({flex:{controlId:wc,controlType:o(()=>rr.ControlType.Section,"controlType")},generate:mt})],Mh.prototype,"visible",2);var vE=Mh,kh=class kh{};o(kh,"ObjectPageSectionChartV2"),y([T({flex:{controlId:wc,controlType:o(()=>rr.ControlType.Section,"controlType")},generate:mt})],kh.prototype,"visible",2);var bE=kh,Uh=class Uh{};o(Uh,"ObjectPageSectionTableV2"),y([T({flex:{controlId:wc,controlType:o(()=>rr.ControlType.Section,"controlType")},generate:mt})],Uh.prototype,"visible",2);var SE=Uh,jh=class jh{};o(jh,"ObjectPageSectionAddressV2"),y([T({flex:{controlId:wc,controlType:o(()=>rr.ControlType.Section,"controlType")},generate:mt})],jh.prototype,"visible",2);var AE=jh,$h=class $h{};o($h,"ObjectPageSectionContactV2"),y([T({flex:{controlId:wc,controlType:o(()=>rr.ControlType.Section,"controlType")},generate:mt})],$h.prototype,"visible",2);var EE=$h,Bh=class Bh{};o(Bh,"ObjectPageSubSectionV2"),y([T({flex:{controlId:d_,controlType:o(()=>rr.ControlType.SubSection,"controlType")},generate:mt})],Bh.prototype,"visible",2);var PE=Bh,Hh=class Hh{};o(Hh,"ObjectPageSubSectionFormV2"),y([T({flex:{controlId:u_,controlType:o(()=>rr.ControlType.Group,"controlType")},generate:mt})],Hh.prototype,"visible",2);var xE=Hh,Gh=class Gh{};o(Gh,"ObjectPageSubSectionChartV2"),y([T({flex:{controlId:p_,controlType:o(()=>rr.ControlType.SmartChart,"controlType")},generate:mt})],Gh.prototype,"visible",2);var CE=Gh,Wh=class Wh{};o(Wh,"ObjectPageSubSectionContactV2"),y([T({flex:{controlId:g_,controlType:o(()=>rr.ControlType.SubSection,"controlType")},generate:mt})],Wh.prototype,"visible",2);var IE=Wh,Kh=class Kh{};o(Kh,"ObjectPageSubSectionTableV2"),y([T({flex:{controlId:f_,controlType:o(()=>rr.ControlType.SmartTable,"controlType")},generate:mt})],Kh.prototype,"visible",2);var OE=Kh;var Xh=class Xh{};o(Xh,"ObjectPageChart"),y([T({manifest:{path:V1}}),x({since:"1.78.0"})],Xh.prototype,"variantManagement",2);var RE=Xh,Qh=class Qh{};o(Qh,"GlobalChartSettings"),y([T({manifest:{path:o(t=>_i(t)+"/chartSettings","path")}}),x({since:"1.78.0"})],Qh.prototype,"variantManagement",2);var LE=Qh;var Er=te(ce());var Mc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=Er.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=qn(a[0],r),Jt(e,a)},"getSmartTableControlId"),hp=class hp{};o(hp,"QuickVariantSelectionOP"),y([T({manifest:{path:o((t,n,i)=>go(t,n,i)+Er.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],hp.prototype,"showCounts",2),y([T({manifest:{path:o((t,n,i)=>go(t,n,i)+Er.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],hp.prototype,"variants",2);var NE=hp,qh=class qh{};o(qh,"Fields4DialogOP"),y([T({manifest:{path:o((t,n,i)=>Ar(t,n,i)+"/createWithParameterDialog","path"),export:yh}}),x({since:"1.77.0"})],qh.prototype,"fields",2);var FE=qh,li=class li{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(li,"CommonTableSettingsForSections"),y([T({manifest:{key:"createWithParameterDialog",path:Ar,import:hh}}),x({since:"1.77.0"})],li.prototype,"createWithParameterDialog",2),y([T({flex:{controlId:Mc,controlType:o(()=>Er.ControlType.SmartTable,"controlType")}}),x({since:"1.28.0"})],li.prototype,"editable",2),y([T({flex:{controlId:Mc,controlType:o(()=>Er.ControlType.SmartTable,"controlType")}}),x({since:"1.95.0"}),fe("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],li.prototype,"showPasteButton",2),y([T({manifest:{path:Ar}}),x({since:"1.54.0"})],li.prototype,"multiSelect",2),y([T({manifest:{path:Ar}}),x({since:"1.70.0"})],li.prototype,"selectAll",2),y([T({manifest:{path:Ar}}),x({since:"1.70.0"})],li.prototype,"selectionLimit",2),y([T({manifest:{path:go}}),x({since:"1.63.0"})],li.prototype,"quickVariantSelection",2),y([T({flex:{controlId:Mc,controlType:o(()=>Er.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],li.prototype,"useExportToExcel",2),y([T({flex:{controlId:Mc,controlType:o(()=>Er.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],li.prototype,"exportType",2),y([T({manifest:{path:go}}),x({since:"1.48.5"}),fe("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],li.prototype,"createMode",2),y([T({manifest:{path:go}}),x({since:"1.61.0"})],li.prototype,"disableDefaultInlineCreateSort",2),y([T({manifest:{path:Ar}}),x({since:"1.78.0"})],li.prototype,"variantManagement",2),y([T({manifest:{path:Ar}}),x({since:"1.120.0"})],li.prototype,"copy",2),y([$t("toolBar")],li.prototype,"toolBar",2);var kc=li,xs=class xs extends kc{};o(xs,"ObjectPageResponsiveTable"),y([T({manifest:{path:Ar}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],xs.prototype,"type",2),y([T({flex:{controlId:Mc,controlType:o(()=>Er.ControlType.Table,"controlType")}})],xs.prototype,"includeItemInSelection",2),y([T({flex:{controlId:Mc,controlType:o(()=>Er.ControlType.Table,"controlType")},generate:mt}),x({since:"1.52.0"})],xs.prototype,"popinLayout",2),y([T({manifest:{path:Ar}}),x({since:"1.77.0"})],xs.prototype,"inlineDelete",2),y([T({flex:{controlId:Mc,controlType:o(()=>Er.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],xs.prototype,"growingThreshold",2);var Uc=xs,yp=class yp extends kc{};o(yp,"ObjectPageAnalyticalTable"),y([T({manifest:{path:Ar}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],yp.prototype,"type",2),y([T({manifest:{path:go}}),x({since:"1.67.0"})],yp.prototype,"condensedTableLayout",2);var DE=yp,Tp=class Tp extends kc{};o(Tp,"ObjectPageGridTable"),y([T({manifest:{path:Ar}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Tp.prototype,"type",2),y([T({manifest:{path:go}}),x({since:"1.67.0"})],Tp.prototype,"condensedTableLayout",2);var _E=Tp,vp=class vp extends kc{};o(vp,"ObjectPageTreeTable"),y([T({manifest:{path:Ar}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],vp.prototype,"type",2),y([T({manifest:{path:go}}),x({since:"1.67.0"})],vp.prototype,"condensedTableLayout",2);var VE=vp,Wo=class Wo{};o(Wo,"GlobalTableSettings"),y([T({manifest:{path:ps}}),x({since:"1.70.0"})],Wo.prototype,"selectAll",2),y([T({manifest:{path:ps}}),x({since:"1.78.0"})],Wo.prototype,"variantManagement",2),y([T({manifest:{path:ps}}),x({since:"1.120.0"})],Wo.prototype,"copy",2),y([T({manifest:{path:ps}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Wo.prototype,"type",2),y([T({manifest:{path:ps}}),x({since:"1.54.0"})],Wo.prototype,"multiSelect",2),y([T({manifest:{path:ps}}),x({since:"1.67.0"})],Wo.prototype,"condensedTableLayout",2),y([T({manifest:{path:ps}}),x({since:"1.77.0"})],Wo.prototype,"inlineDelete",2);var wE=Wo;var m_=te(ce());var K3=o((e,t,n,i,r)=>{let{actionId:a}=tr(n),s=qn(n[1],r);return`${e}${s}::action::${Zi(a).replace(":2f","::")}`},"getActionButtonId"),bp={controlId:K3,controlType:o(()=>m_.ControlType.Button,"controlType")},Cs=class Cs{};o(Cs,"ObjectPageToolBarAction"),y([T({flex:bp,generate:mt})],Cs.prototype,"visible",2),y([T({flex:bp})],Cs.prototype,"tooltip",2),y([T({flex:bp})],Cs.prototype,"icon",2),y([T({flex:bp})],Cs.prototype,"activeIcon",2),y([T({flex:bp})],Cs.prototype,"type",2);var ME=Cs;var Vi=te(ce());function UE(e,t,n,i){if(t.controlType===Vi.ControlType.TableColumn||t.controlType===Vi.ControlType.Button){let r=t.controlId.split("-"),a=r[r.length-1],s=t.controlType===Vi.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Vi.VOCWITHCOLONS),u=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(u!=null&&u.startsWith("DataField")?u=u==null?void 0:u.replace("/",":2f"):u=u==null?void 0:u.replace("/","_"),u!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}o(UE,"addFlexChangeToConfigTableColumn");function Yh(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(Vi.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}o(Yh,"addFlexChangeToConfigTable");function zh(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var p,g,m,h,S;let s=br(a),l={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(g=s.content)!=null&&g.newBinding?s.content.newBinding:(m=s.content)==null?void 0:m.newValue,controlType:s.controlType,creation:s.creation},u;if(s.controlType===Vi.ControlType.TableColumn)u=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let b=(!t.table.type||t.table.type===Vi.v2.TableTypeV2.ResponsiveTable)&&!((h=l.controlId)!=null&&h.includes(Vi.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Vi.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;u=(S=e.jsonSchema.definitions[`${b}<${r}>`])==null?void 0:S.properties[l.propertyId]}u&&UE(t.table,l,n,i)})}o(zh,"importFlexChangesOfColumn");function Is(e){return e.replace("/","::")}o(Is,"convertActionKey");function jE(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(jE,"convertSelector");function X3(e,t,n,i){var a,s,l,u;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((u=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:u.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}o(X3,"addSmartFilterBarFlex");function Q3(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let a=Zi((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let u=a.split(":::"),p=u.find(h=>h.startsWith("sSemanticObject")),g=u.find(h=>h.startsWith("sAction")),m=g.split("sAction::")[1].replace(":2f","::");if(p){let h=`${p.split("::")[1]}::${m}`,S=`${u[0]}:::${p}:::${g}`;i.set(h,r),i.set(r,S)}else i.set(m,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(Q3,"filterActions");function q3(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(q3,"addColumnActionConfigPart");function Y3(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}o(Y3,"getActionId");function z3(e,t,n,i,r){[{name:"HeaderActionStandard",configPart:e.header.actions,id:r},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:r},{name:"FooterAction",configPart:e.footer.actions,id:r&&r.includes("Determining")&&r.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:r},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:r},{name:"TableColumnAction",configPart:e.table.columns,id:r}].forEach(s=>{var u,p;let l=Q3(s.name,i);if(l.has(s.id)){let g=l.get(s.id),m=(u=g.split("<")[1])==null?void 0:u.split(">")[0];s.name==="TableColumnAction"&&q3(s,e,m);let h=s.configPart[m];((p=i.definitions[g])==null?void 0:p.properties[t])&&h&&(h[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}o(z3,"addActionFlex");function J3(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=Dn(e[ft.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[ft.PropertyName.chart],t):e[ft.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(J3,"addSmartChartFlex");function Jh(e,t,n,i){var r,a;try{let s=br(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(ft.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(ft.PageTypeV2.AnalyticalListPage))switch(s.controlId=jE(s.controlId),s.controlType){case ft.ControlType.SmartFilterBar:{X3(e,l,s,n);break}case ft.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case ft.ControlType.Button:{let u=Y3(s);u&&z3(e,l,s,n,u);break}case ft.ControlType.SmartChart:{J3(e,l,s,n);break}default:break}}catch(s){ae(i,{severity:ft.LogSeverity.Error,message:Q.t("FLEXERROR")},...s)}}o(Jh,"addFlex");function Z3(e,t){if(e==="quickVariantSelectionX"&&t[e])for(let n in t[e].variants){let i=t[e].variants[n];if(i.tableSettings){for(let r in i.tableSettings)i[r]=i.tableSettings[r];delete i.tableSettings}}}o(Z3,"adjustQuickVariantSelectionX");function _n(e,t,n,i,r,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let u in n.properties){let p=Dn(e,u);if(p!=null&&p.manifest){let g=p.manifest.path([i],t,a);s=Bn(t,g),Fl(p,s,u,e),Om(l,s,g,r)}Z3(u,e)}}o(_n,"transferSettingsOfObject");function Zh(e,t){var r,a,s,l,u,p,g,m,h;let n=e[ft.ManifestSection.generic].pages[t],i=ft.v2.TableTypeV2.ResponsiveTable;return(r=e[ft.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[ft.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[ft.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.tableSettings)==null?void 0:g.type)||((m=n.component)==null?void 0:m.settings.tableType):((h=n.component)==null?void 0:h.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=ft.v2.TableTypeV2.AnalyticalTable),i}o(Zh,"determineTableType");function h_(e,t,n,i,r,a,s){var l,u;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,g=JSON.parse(p.substr(1,p.length)),m=e.Text&&e.Text._attributes&&e.Text._attributes.text;m||(m=e.Label&&e.Label._attributes&&e.Label._attributes.text);let h={...(l=e._attributes)!=null&&l.id?{id:(u=e._attributes)==null?void 0:u.id}:{},...m?{text:m}:{},...g,...g.columnKey?{columnKey:g.columnKey}:{},...g.columnIndex?{columnIndex:Number(g.columnIndex)}:{},...g.leadingProperty?{leadingProperty:g.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(h.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(h)}}o(h_,"evaluateFragmentColumn");function e7(e,t,n,i){let r;if(e===ft.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,u]=a.split("|");s===ft.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&u===i&&(r=t[a].fragmentName)}return r}o(e7,"determineCellsFragmentName");function t7(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,y_.xml2json)(e[0].fileContent,{compact:!0}))[Bo];try{let g=Yu(p);if(g)if((l=t[ft.PropertyName.table])!=null&&l.columns||(t[ft.PropertyName.table].columns={}),Array.isArray(g))for(let m of g)h_(m,n,i,r,t,a,s);else h_(g,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(t7,"analyzeFilteredFragments");function n7(e,t,n,i,r){var a;for(let s of Object.keys(e)){let l=s.split("|"),[u,p]=l,g=l[2];if(u&&p===t){let m=e[s].type?e[s].type.toLowerCase():"xml",h=e[s].fragmentName;if(!h)continue;let S=e7(u,e,p,g),b=h.split(".");h=b[b.length-1]+ft.FRAGMENTNAMEPART+m;let O=i.fragments.filter(N=>N.dataSourceUri.endsWith(h));try{t7(O,n,e,s,g,u,S)}catch(N){i.logger.error(N.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(N=>{zh(i,n,N.id,N,r)})}}}o(n7,"processViewExtensions");function Zl(e,t,n,i,r,a="LineItems"){var s,l,u;if(t.fragments&&(u=(l=(s=t.manifest[ft.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&u["sap.ui.viewExtensions"]){let p=ft.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),g=t.manifest[ft.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!g)return;let m=r&&r.target?r.target:n.entitySet;n7(g,m,e,t,a)}}o(Zl,"addFragments");function ey(e,t,n){if(e.header={actions:{}},n[ft.DefinitionName.HeaderActionsStandard]){let i=n[ft.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(ft.PageTypeV2.ListReport,r,{})}}o(ey,"importHeaderActions");var Rs=te(ce());var Sp="sap.suite.ui.generic.template.ListReport";var T_="sap.suite.ui.generic.template.ListReport.view.ListReport";var iy=te(ce());var ty=te(ce());function ef(e,t=!0,n=[]){let i=[ty.ManifestSection.generic];return e.forEach(function(r){i.push("pages"),i.push(r)}),t&&(i.push("component"),i.push("settings")),i.concat(n)}o(ef,"getManifestPathFromPagePath");function Ko(e,t,n){let i=e,r=t.every(function(a){return!i||typeof i!="object"||Array.isArray(i)&&typeof a!="number"?!1:(i=i[a],!0)})&&typeof i=="object"&&i!==null;return{hasPath:r,value:r&&n?i[n]:void 0,parent:r?i:void 0}}o(Ko,"getManifestPropertyByPath");function La(e){return e!==null&&typeof e=="object"}o(La,"isDefinition");function ny(e,t,n,i,r,a,s){let l=n[ty.SchemaTag.conversionExit],u=l==null?void 0:l.name,p=t?t(u):void 0;if(!p)return i;let g=l.params;return e?p.appToConfig(i,g,r??[],n,s):p.configToApp(i,g,r??[],n,a)}o(ny,"executeConversionExit");function jc(e,t,n,i="string",r=!1){let a;if(e===void 0)a=r;else if(e===null||typeof e!="object")a=!0;else{let s=e[t];s===void 0?a=r:a=typeof s!==i||s===null&&r}return a&&ae(n,{severity:iy.LogSeverity.Error,message:Q.t("TYPEERROR",{propertyName:t,expectedType:i})}),a}o(jc,"hasPropertyTypeError");var iae=Symbol("Property is suppressed without explanation");var Bt=te(ce());function $c(e,t,n){var r;let i;for(let a in e){let s=e[a];if(ha((r=s.component)==null?void 0:r.name)===Bt.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=$c(s.pages,t,n),i))return n.unshift(a),i}}o($c,"findObjectPageV2");function tf(e,t){var n;for(let i in e){let r=e[i];if(ha((n=r.component)==null?void 0:n.name)===Bt.PageTypeV2.ListReport)return t.push(i),r}}o(tf,"findListReportPageV2");function nf(e){if(!e.manifest[Bt.ManifestSection.generic]){ae(e.logger,{severity:Bt.LogSeverity.Error,message:Q.t("NOFE"),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}});return}let t=e.manifest[Bt.ManifestSection.generic].pages;if(!t){ae(e.logger,{severity:Bt.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}});return}return t}o(nf,"getV2Pages");function rf(e,t,n){var i;if(!e){ae(t,{severity:Bt.LogSeverity.Error,message:Q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;ae(t,{severity:Bt.LogSeverity.Error,message:Q.t("NOENTITYSET",{pageName:r}),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}})}}o(rf,"checkV2Page");function of(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),ha((i=a.component)==null?void 0:i.name)===Bt.PageTypeV2.AnalyticalListPage)return a}ae(n,{severity:Bt.LogSeverity.Error,message:Q.t("NOALP"),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}})}o(of,"findAnalyticalListPage");function $E(e,t){let n=e.split("|");return Bt.v2.SectionPosition[n[0]]&&n[1]===t}o($E,"isAssociatedCustomSection");function v_(e,t){let n=Bn(e,`sap.ui5/extends/extensions/${Bt.v2.SAPUI5_VIEW_EXTENSION}/${Bt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)$E(r,t)&&(i[r]=n[r]);return i}o(v_,"findCustomSectionExtensions");function i7(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}o(i7,"removeEmptySettingsOfFooter");function r7(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let r in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[r]).length===0&&delete e.filterBar.selectionFields[r];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}o(r7,"removeEmptySettingsOfFilterBar");function o7(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}o(o7,"removeEmptySettingsOfToolBar");function ry(e){o7(e),r7(e),i7(e)}o(ry,"removeEmptySettings");var Yt=te(ce());var S_=te(ce());var BE={};lc(BE,{ACTION_GROUPS_ARENT_SUPPORTED:()=>Q7,ANNOERR:()=>x7,ANNOTATIONFILE:()=>C7,COMPONENTNOTDEFINED:()=>I7,CONTEXTPATHCOULDNOTBERESOLVED:()=>S7,ENTITYSETNOTFOUND:()=>b7,FLEXERROR:()=>M7,INCONSISTENTSCHEMA:()=>K7,INVALIDANCHOR:()=>k7,INVALIDEXTENSION:()=>U7,INVALIDTARGETDEFINITION:()=>$7,MACROS_ANNOTATION_ERROR:()=>G7,NOALP:()=>E7,NOANNOTATIONFORPATH:()=>T7,NOBASEPATH:()=>c7,NOCHARTS:()=>N7,NOENTITYSET:()=>d7,NOENTITYTYPE4SET:()=>g7,NOFE:()=>f7,NOFRAGMENT:()=>j7,NOGENERICSCHEMA:()=>u7,NOID4SECTION:()=>B7,NOLINEITEMANDCHARTS:()=>F7,NOLINEITEMFORPATH:()=>v7,NOLINEITEMS:()=>L7,NOLR:()=>A7,NOPAGEFORENTITYSET:()=>p7,NOPAGES:()=>l7,NOPRESENTATIONVARIANT:()=>m7,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>h7,NOPRESENTATIONVARIANTFORSPV:()=>y7,NOROUTING:()=>O7,NOROUTINGID:()=>w7,NOTARGET:()=>V7,NOTARGETS:()=>_7,NOTEMPLATE:()=>P7,NOUIANNOTATIONS:()=>R7,NOVISUALIZATIONS:()=>D7,TYPEERROR:()=>W7,UNEXISTING_ANNOTATION_PATH:()=>X7,UNKNOWNMINUI5VERSION:()=>s7,WRONGMINUI5VERSION:()=>a7,XMLPARSEFAILURE:()=>H7,default:()=>q7});var a7="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",s7="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",c7="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",l7="No pages found in manifest for app with id '{{- appId}}'",f7="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",u7="No generic schema found while generating page schema for {{- pageType}}",p7="No page found in manifest for entitySet '{{- entitySet}}'",d7="No entitySet defined for page '{{- pageName}}'",g7="No entityType could be found for the given entity set '{{- entitySetName}}'",m7="No PresentationVariant defined for '{{- key}}'",h7="No PresentationVariant found for default SelectionPresentationVariant",y7="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",T7="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",v7="No line item annotation found for path '{{- annotationPath}}'",b7="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",S7="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",A7="No page found in manifest for list report",E7="No page found in manifest for analytical list page",P7="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",x7="Error while parsing annotation files",C7="Annotation file: '{{- file}}'",I7="Component name is not defined for page '{{- pageName}}'",O7="Incomplete manifest definition: no routing defined",R7="No UI Annotation defined for entity type '{{- entityType }}'",L7="UI.LineItem annotation has not been defined",N7="UI.Chart annotation has not been defined",F7="Neither UI.LineItem nor UI.Chart annotation has been defined",D7="Empty Collection for Visualizations",_7="Incomplete manifest definition: no targets defined",V7="Invalid reference: annotation target '{{- target}}' not found",w7="No page found in manifest for routingId '{{- routingId}}'",M7="Error while parsing flex change",k7="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",U7="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",j7="fragmentName is undefined for columnKey '{{- columnKey}}'",$7="Invalid routing target definition in manifest: '{{- target}}'",B7="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",H7="Parsing of XML file failed with error - {{- error}}",G7="Error during resolving annotation for '{{- control}}'",W7="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",K7="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",X7="The annotation path doesn't exist.",Q7="Action groups aren't supported in the version you're using. Please update to SAPUI5 1.132 or higher.",q7={WRONGMINUI5VERSION:a7,UNKNOWNMINUI5VERSION:s7,NOBASEPATH:c7,NOPAGES:l7,NOFE:f7,NOGENERICSCHEMA:u7,NOPAGEFORENTITYSET:p7,NOENTITYSET:d7,NOENTITYTYPE4SET:g7,NOPRESENTATIONVARIANT:m7,NOPRESENTATIONVARIANTFORDEFAULTSPV:h7,NOPRESENTATIONVARIANTFORSPV:y7,NOANNOTATIONFORPATH:T7,NOLINEITEMFORPATH:v7,ENTITYSETNOTFOUND:b7,CONTEXTPATHCOULDNOTBERESOLVED:S7,NOLR:A7,NOALP:E7,NOTEMPLATE:P7,ANNOERR:x7,ANNOTATIONFILE:C7,COMPONENTNOTDEFINED:I7,NOROUTING:O7,NOUIANNOTATIONS:R7,NOLINEITEMS:L7,NOCHARTS:N7,NOLINEITEMANDCHARTS:F7,NOVISUALIZATIONS:D7,NOTARGETS:_7,NOTARGET:V7,NOROUTINGID:w7,FLEXERROR:M7,INVALIDANCHOR:k7,INVALIDEXTENSION:U7,NOFRAGMENT:j7,INVALIDTARGETDEFINITION:$7,NOID4SECTION:B7,XMLPARSEFAILURE:H7,MACROS_ANNOTATION_ERROR:G7,TYPEERROR:W7,INCONSISTENTSCHEMA:K7,UNEXISTING_ANNOTATION_PATH:X7,ACTION_GROUPS_ARENT_SUPPORTED:Q7};function b_(e){e.addResourceBundle(e.language,"translation",BE)}o(b_,"initI18n");function qt(e="en"){Q.init({resources:{en:{translation:S_.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
293
293
|
|
|
294
|
-
`}),b_(Q)}o(qt,"initI18n");var GA={};lc(GA,{AnalyticalListPage:()=>Yr,ListReport:()=>vo,ObjectPage:()=>fi,OverviewPage:()=>Zt,exportFilterSettings:()=>P_,importDateSettingsOVP:()=>E_,importFilterSettings:()=>A_});var oy=te(ce());var Yr=class{};o(Yr,"AnalyticalListPage"),y([T({flex:{controlId:Pm,controlType:o(()=>oy.ControlType.DynamicPage,"controlType")}})],Yr.prototype,"fitContent",2),y([$t("table")],Yr.prototype,"table",2),y([$t("template::SmartFilterBar")],Yr.prototype,"filterBar",2),y([$t("analyticalListPageChart")],Yr.prototype,"chart",2),y([$t("analyticalListFooter")],Yr.prototype,"footer",2),Yr=y([nr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:oy.v2.FE_TEMPLATE_V2_ALP})],Yr);var Ep=te(ce());var vo=class{};o(vo,"ListReport"),y([T({flex:{controlId:Pm,controlType:o(()=>Ep.ControlType.DynamicPage,"controlType")}})],vo.prototype,"fitContent",2),y([$t("listReportFilter")],vo.prototype,"filterBar",2),y([$t("listReport")],vo.prototype,"table",2),y([$t("listReportFooter")],vo.prototype,"footer",2),vo=y([nr({id:Ep.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Ep.v2.FE_TEMPLATE_V2_LIST_REPORT})],vo);var HA=te(ce());var fi=class{};o(fi,"ObjectPage"),y([T({manifest:{path:o(t=>_i(t),"path")}}),x({since:"1.52.0"})],fi.prototype,"showConfirmationOnDraftActivate",2),y([T({manifest:{path:o(t=>_i(t),"path")}}),x({since:"1.52.1"})],fi.prototype,"hideChevronForUnauthorizedExtNav",2),y([T({manifest:{path:o(t=>_i(t),"path")}}),x({since:"1.48.0"})],fi.prototype,"allowDeepLinking",2),y([T({manifest:{path:o(t=>_i(t),"path")}}),x({since:"1.52.0"})],fi.prototype,"navToListOnSave",2),y([$t("header")],fi.prototype,"header",2),y([$t("sections")],fi.prototype,"sections",2),y([$t("layout")],fi.prototype,"layout",2),y([T({manifest:{path:o(t=>Jm(t),"path")}}),x({since:"1.77.0"})],fi.prototype,"defaultLayoutTypeIfExternalNavigation",2),y([T({manifest:{path:o(t=>_i(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),x({since:"1.78.0"})],fi.prototype,"globalChartSettings",2),y([T({manifest:{path:o(t=>_i(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:mc}}),x({since:"1.71.0"})],fi.prototype,"globalTableSettings",2),fi=y([nr({id:HA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:HA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],fi);function q7(e,t){for(let n in e.dateSettings.fields){t.fields[n]=e.dateSettings.fields[n];let i=e.dateSettings.fields[n].selectedValues;typeof i=="string"&&(t.fields[n].selectedValues=i.split(","));for(let r in e.dateSettings.fields[n].filter){let a=e.dateSettings.fields[n].filter[r];t.fields[n].filter[r]=a,a.equals&&typeof a.equals=="string"&&(t.fields[n].filter[r].equals=a.equals.split(","))}}}o(q7,"importDateSettingsFieldsOVP");function E_(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),e.dateSettings.fields&&q7(e,t),t}o(E_,"importDateSettingsOVP");function A_(e){let t={};return t.dateSettings=E_(e.filterSettings),t}o(A_,"importFilterSettings");function Y7(e,t,n){for(let i in e.filterSettings[t].fields){let r=e.filterSettings[t].fields[i];if(r.selectedValues&&(n.filterSettings[t].fields[i].selectedValues=r.selectedValues.join()),r.filter)for(let a in r.filter){let s=r.filter[a];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[a].equals=s.equals.join())}}}o(Y7,"exportFilterFields");function P_(e,t){e.filterSettings||(e.filterSettings={});let n="dateSettings";t.filterSettings[n]===void 0?delete e.filterSettings[n]:(e.filterSettings[n]=JSON.parse(JSON.stringify(t.filterSettings[n])),t.filterSettings[n].selectedValues&&(e.filterSettings[n].selectedValues=t.filterSettings[n].selectedValues.join()),t.filterSettings[n].fields&&Y7(t,n,e))}o(P_,"exportFilterSettings");var Zt=class{};o(Zt,"OverviewPage"),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"globalFilterModel",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"globalFilterEntityType",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"globalFilterEntitySet",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"showBasicSearch",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"disableErrorPage",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"smartVariantRequired",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"bHeaderExpanded",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"containerLayout",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"showDateInRelativeFormat",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"disableTableCardFlexibility",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"enableLiveFilter",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"enableLazyRendering",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"refreshStrategyOnAppRestore",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"considerAnalyticalParameters",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"refreshIntervalInMinutes",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"useDateRangeType",2),y([T({manifest:{path:o(()=>Sn(),"path"),import:A_,export:P_}}),x({since:"1.80.0"})],Zt.prototype,"filterSettings",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"dataLoadSettings",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"resizableLayout",2),Zt=y([nr({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Zt);var WA=class WA{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let a=this.controls[r]?this.controls[r]:this.controls[n];return a||(a=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};o(WA,"MetadataFactory");var af=WA;var Jn=te(ce());var z7={},J7={Table:Oc,ResponsiveTableWithMultiSelect:Oc,ResponsiveTableWithInlineDelete:Oc},Z7={[Jn.v2.CardSettingsType.listCardSettings]:Gl,[Jn.v2.CardSettingsType.listCardSettingsv4]:Gl,[Jn.v2.CardSettingsType.analyticalCardSettings]:Wl,[Jn.v2.CardSettingsType.analyticalCardSettingsv4]:Wl,[Jn.v2.CardSettingsType.stackCardSettings]:Hu,[Jn.v2.CardSettingsType.linkListCardSettings]:Gu,[Jn.v2.CardSettingsType.tableCardSettings]:Kl,[Jn.v2.CardSettingsType.tableCardSettingsv4]:Kl},eQ={[Jn.SAPUI5_VIEW_CLASS]:mp,[Jn.SAPUI5_FRAGMENT_CLASS]:gp,Table:Uc,ObjectPageResponsiveTableWithMultiSelect:Uc,ObjectPageResponsiveTableWithInlineDelete:Uc},tQ={[Jn.PageTypeV2.AnalyticalListPage]:z7,[Jn.PageTypeV2.ListReport]:J7,[Jn.PageTypeV2.ObjectPage]:eQ,[Jn.PageTypeV2.OverviewPage]:Z7},KA=class KA extends af{constructor(){super(kA,GA,tQ)}};o(KA,"MetadataInstanceFactoryV2");var wi=KA;function nQ(e,t,n,i,r){if(e.filterBar=t.createInstance(Yt.PageTypeV2.ListReport,Yt.DefinitionName.ListReportFilterBar,e.filterBar),_n(e.filterBar,n.manifest,i[Yt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(Yt.PageTypeV2.ListReport,Yt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(Yt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),_n(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(nQ,"importFilterBar");function XA(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,g,m;let l=br(s),u={controlId:l.controlId,propertyId:(p=l.content)==null?void 0:p.property,newValue:(g=l.content)!=null&&g.newBinding?l.content.newBinding:(m=l.content)==null?void 0:m.newValue,controlType:l.controlType,creation:l.creation};Yh(n.table,u,t)});let i=t.properties.columns.$ref.split("/").pop(),r=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in r)s!=="custom"&&zh(e,n,s)}o(XA,"importFlexChangesOfTableAndColumns");function iQ(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[wm]&&t[Mm]&&(a=JSON.parse(JSON.stringify(t[wm])),a.properties={...a.properties,...t[Mm].properties}),_n(n.table,i.manifest,a,r,i.logger),XA(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&ae(i.logger,{severity:Yt.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}o(iQ,"importTable");function rQ(e,t,n,i){let r=e.jsonSchema.definitions,a=Zh(e.manifest,i);if(t.table=n.createInstance(Yt.PageTypeV2.ListReport,a,t.table),ey(t,n,r),iQ(a,r,t,e,i),t.table.toolBar=n.createInstance(Yt.PageTypeV2.ListReport,Yt.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,r[Yt.DefinitionName.ToolBarLR],i,e.logger),r[Yt.DefinitionName.ActionsLR])for(let l in r[Yt.DefinitionName.ActionsLR].properties){let u=Is(l);t.table.toolBar.actions[u]=n.createInstance(Yt.PageTypeV2.ListReport,Yt.DefinitionName.Action),_n(t.table.toolBar.actions[u],e.manifest,r[Yt.DefinitionName.Action],i,e.logger)}nQ(t,n,e,r,i),t.footer={actions:{}};let s=r[Yt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=Is(l);t.footer.actions[u]=n.createInstance(Yt.PageTypeV2.ListReport,Yt.DefinitionName.FooterAction),_n(t.footer.actions[u],e.manifest,r[Yt.DefinitionName.Action],i,e.logger)}}o(rQ,"addSettings");function x_(e){if(qt(),!nf(e))return;let n=new wi,i=n.createPageInstance(Yt.PageTypeV2.ListReport),r=[],a=tf(e.manifest[Yt.ManifestSection.generic].pages,r);if(rf(a,e.logger,a==null?void 0:a.entitySet),!!a)return rQ(e,i,n,r[0]),e.flex.forEach(s=>{br(s)&&Jh(i,s,e.jsonSchema,e.logger)}),Zl(i,e,a,Yt.PageTypeV2.ListReport),ry(i),i}o(x_,"createListReportConfig");var Se=te(ce());var Ap=require("@sap-ux/vocabularies-types/vocabularies/UI");var aQ=[Se.ControlType.Avatar,Se.ControlType.ObjectPageLayout,Se.ControlType.DynamicPage];function sQ(e,t){let n=e[0].split("--"),i=n[n.length-1];if(e[0].indexOf("::action::")>=0||e[0].startsWith("action::"))t=n[0].split("::action::")[0]||n[0].split(`${Ap.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Se.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Ap.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let r=i.split("::");r.length>1?t=r[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}o(sQ,"getSingleSelectorIdPart");function cQ(e){let t,n=e.split(":::");if(n.length===1)t=sQ(n,t);else if(e.indexOf("sSmartTableId")>=0){for(let i of n)if(i.startsWith("sSmartTableId")){t=i.split("sSmartTableId::")[1].split("::Table")[0].split("/responsiveTable")[0].replace(`::${Ap.UIAnnotationTerms.LineItem}`,`/@${Ap.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(cQ,"getFacetID");function lQ(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=br(s),m=g&&((l=g.controlId)==null?void 0:l.split("--"))||[];if(g&&((u=m[0])!=null&&u.includes(Se.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let h=m[1].replace(/:3a:3a/g,"::");r.exec(h)!==null&&(h=h.split("template:::TableColumn:::")[1]);let S=cQ(h);h=jA(h).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${h}::${g.content.property}`]={controlId:h,propertyId:g.content.property,facetId:S,newValue:g.content.newBinding!==void 0?g.content.newBinding:g.content.newValue,controlType:g.controlType,creation:g.creation}}}catch(g){ae(n,{severity:Se.LogSeverity.Error,message:Q.t("FLEXERROR")},...g)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,u])=>(s[l]=u,s),{})}o(lQ,"prepareFlexChanges");var fQ=o(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace($,"");if((i=(n=e.properties)==null?void 0:n.subsections)!=null&&i.$ref)return t=e.properties.subsections.$ref,t=t.includes("<")?t.split("<")[0]:t,t.replace($,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function uQ(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&UA(i,t,r)}o(uQ,"addFlexChangeToColumns");function C_(e,t,n,i,r,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,Se.VOCWITHSLASH)];for(let u in e){let p=e[u],g=p.propertyId===t,m=t==="columns"&&p.controlType===Se.ControlType.TableColumn;(g||m)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?uQ(a,p,r.properties,n):Yh(n,p,r))}}o(C_,"importFlexChangesOfTable");function pQ(e,t){return e.facetId==="template"&&t}o(pQ,"isStandardActionFlexChange");var I_=o((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),r=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,r);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function dQ(e,t,n,i,r,a){var O;let s=!1,l=!1;a?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let u=t.controlId.split("::"),p=t.controlType===Se.ControlType.GroupElement&&l,g=((O=t.facetId)==null?void 0:O.includes(Se.ACTIONTITLEPREFIX))&&!r&&s,m=r&&I_(u,r.split("::"))&&s,h=e.title&&I_(u,e.title.split("::"),!0),S=!t.facetId&&aQ.includes(t.controlType),b=pQ(t,l);return p||g||m||h||S||b}o(dQ,"matchSelector");function gQ(e,t,n,i,r,a){var u;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let p in n){let g=n[p];if(g.propertyId!==i||g.controlType!==((u=e.properties[g.propertyId])==null?void 0:u[Se.SchemaTag.controlType]))continue;dQ(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o(gQ,"importFlexChanges");function mQ(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(ae(n.logger,{severity:Se.LogSeverity.Warning,message:Nl(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(mQ,"checkDeprecatedProperties");function hQ(e,t,n,i,r,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,u,p;s!=null&&s.title?(u=e.manifest.path(t,{},s.title),p=Bn(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u))):(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u));let g=e.manifest.import;if(g&&typeof g=="function"){let m=g(p,s==null?void 0:s.id);m!==void 0&&(i[r]=m)}else{let m=e.manifest.key||r;m in p&&(i[r]=p[m])}return mQ(p,a,n,u),p}o(hQ,"importManifestSetting");function Mi(e,t,n,i,r,a){var u,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let g in n.properties||n){let m=Dn(t,g);if(g==="columns"||m!=null&&m.flex)if((u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSectionTableV2")||(p=r==null?void 0:r.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(g==="columns"){let h=n.properties[g].$ref.split($)[1],S=e.jsonSchema.definitions[h];C_(i.flexChanges,g,t,r,S,l)}else C_(i.flexChanges,g,t,r,n);else{let h=(r==null?void 0:r.title)||(r==null?void 0:r.id);gQ(n,t,i.flexChanges,g,h,a)}else m!=null&&m.manifest&&hQ(m,i.pageKeys,e,t,g,s,r)}}o(Mi,"transferSettingsAndFlexChanges");function R_(e,t,n,i){let r=Zi(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${a1}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${km}${r}`;break}}return r.replace(/@/g,"")}o(R_,"getActionId");function yQ(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split($)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],u=R_(s,a,"","");e.actions[a]=i.factory.createInstance(Se.PageTypeV2.ObjectPage,l,{}),Mi(n,e[Se.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},u)}}}o(yQ,"fillStandardActions");function ay(e,t,n,i,r,a){var l;n[Se.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let u={};a&&(u.id=a);for(let p in t){let g=Is(p),m=R_(s,g,r,a);m&&(n[Se.PropertyName.actions][g]=i.factory.createInstance(Se.PageTypeV2.ObjectPage,s),Mi(e,n[Se.PropertyName.actions][g],e.jsonSchema.definitions[s],i,u,m)),(l=n[Se.PropertyName.actions])!=null&&l[g]&&Object.keys(n[Se.PropertyName.actions][g]).length===0&&delete n[Se.PropertyName.actions][g]}}yQ(n,t,e,i),Object.keys(n[Se.PropertyName.actions]).length===0&&delete n[Se.PropertyName.actions]}o(ay,"fillActions");function TQ(e,t,n,i,r){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,"Field");let u=(s=t.title)!=null&&s.includes(Se.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;Mi(e,i[t.id].form.fields[l],e.jsonSchema.definitions[Se.DefinitionName.Field],r,{},u),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}o(TQ,"fillFields");function vQ(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`]&&n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`]&&(i=JSON.parse(JSON.stringify(n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`])),i.properties={...i.properties,...n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`].properties}),i}o(vQ,"prepareTableSchema");function bQ(e,t,n,i,r){var l,u;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",g=r.factory.createInstance(Se.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][Se.PropertyName.table]=g;let m=e.jsonSchema.definitions,h=vQ(p,t,m);Mi(e,i[t.id],t.schema,r,{title:t.title}),Mi(e,i[t.id][Se.PropertyName.table],h,r,t);let S=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(S!=null&&S.properties){let b=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");ay(e,S.properties,i[t.id][Se.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",b)}Object.keys(i[t.id][Se.PropertyName.table].toolBar).length===0&&delete i[t.id][Se.PropertyName.table].toolBar}}o(bQ,"fillTableInConfig");function SQ(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?Rm(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};Zl(n[t],e,i,Se.PageTypeV2.ObjectPage,l,r)}}o(SQ,"fillCustomColumnsInConfig");function EQ(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][Se.PropertyName.chart]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(Mi(e,i[t.id],t.schema,r,{title:t.title}),Mi(e,i[t.id][Se.PropertyName.chart],e.jsonSchema.definitions[Se.DefinitionName.ObjectPageChart],r,t))}o(EQ,"fillChartSection");function AQ(e,t,n,i){n[t.id]=i.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&Mi(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(AQ,"fillHeaderSection");function PQ(e,t,n,i){var u;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&Mi(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${r}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&ay(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&TQ(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}o(PQ,"fillFormSection");function O_(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Mi(e,i[t.id],t.schema,r,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,QA(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(O_,"fillSubSection");function QA(e,t,n,i,r){var s;let a=e.jsonSchema.definitions;for(let l in t){let u=l.replace(/\/@/g,"::"),p={id:u,type:fQ(t[l]),schema:t[l],title:lS(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],bQ(e,p,n,i,r),SQ(e,u,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],EQ(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],PQ(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${l}>`],O_(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],AQ(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],O_(e,p,n,i,r))}}o(QA,"fillSectionsInConfig");function xQ(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(Se.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(Se.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Mi(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(xQ,"fillCustomSectionsInConfig");function CQ(e,t){var g,m;let n=t.factory.createPageInstance(Se.PageTypeV2.ObjectPage);Mi(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Se.PageTypeV2.ObjectPage,Se.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Mi(e,n.globalTableSettings,i[Se.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(Se.PageTypeV2.ObjectPage,Se.DefinitionName.ObjectPageHeader);let r=i[Se.DefinitionName.ObjectPageHeader]?i[Se.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];Mi(e,n.header,r,t);let a=i[Se.DefinitionName.ObjectPageHeaderActions];a&&ay(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Se.DefinitionName.FooterActions];s&&ay(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Se.PageTypeV2.ObjectPage,"ObjectPageLayout"),Mi(e,n.layout,i[Se.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[Se.DefinitionName.HeaderSections];if(l){let h=(g=t.v2Page.component)==null?void 0:g.settings;QA(e,l.properties,h,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let u=i[Se.DefinitionName.Sections];if(u){let h=(m=t.v2Page.component)==null?void 0:m.settings;QA(e,u.properties,h,n.sections,t)}let p=v_(e.manifest,e.entitySet);return xQ(p,n,t,i,e),n}o(CQ,"fillConfig");function sy(e){qt();let t=nf(e);if(!t)return;let n=e.entitySet,i=[],r=$c(t,e.entitySet,i);if(rf(r,e.logger,n),!r)return;let a=lQ(e.flex,n),s=new wi;return CQ(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(sy,"createObjectPageConfigV2");var Xo=te(ce());var YA=te(Lb());var wt=te(ce());var IQ=["colorPalette","tabs"];function OQ(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(OQ,"createCard");function L_(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),L_(e,n.join("|"))}return t}o(L_,"findAvailableId");function Pp(e,t,n,i,r,a,s){i!=null&&i.properties&&qA(e,t,n,i.properties,r,a,s)}o(Pp,"transferManifestEntriesOVP");function Bc(e,t,n,i){return e.createInstance(wt.PageTypeV2.OverviewPage,i,n,t)}o(Bc,"assignReflectMetadataRules");function RQ(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split($),r=e.appSchema.definitions[i[1]];t=Bc(e.factory,i[1],t,"CustomCard"),Pp(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(RQ,"processAnyOfDefinitionsOfOVP");function LQ(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!IQ.includes(i)?t[i]=(0,YA.default)(t[i]||{},r||{},{arrayMerge:oS}):t[i]=r}o(LQ,"checkSyncRuleForExport");function NQ(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=Bn(i.manifest,s);if(n in wt.v2.CardSettingsType||n==="settings")l.settings=(0,YA.default)(l.settings||{},r||{},{arrayMerge:oS});else if(r!==void 0){let u=e.manifest.export;LQ(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(NQ,"transferToManifest");function FQ(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(wt.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(r=>{var s;let a=(s=e.appSchema.definitions[r].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=Bc(e.factory,i[0],e.currentObject[t],"CustomCard"),OQ(t,e.exportResults.manifest[wt.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=wt.ChangeIndicator.Updated,Pp(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[wt.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[wt.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=wt.ChangeIndicator.Updated)})}o(FQ,"transferCards");function DQ(e,t){if(t==="cards")FQ(e);else{let n=Mo(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,wt.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split($);e.currentObject=Bc(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],Pp(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],qA(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],e.factory,e.pathHierarchy,e.entityPathArray)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],qA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(DQ,"exportOfObject");function qA(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!Ol(a,s)&&a[a.length-1]!=="anyOf")continue;let u=e[l],p=Dn(e,l),g={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:u,configObject:e,factory:r,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(g.currentObject=e[a[a.length-2]],u=RQ(g)):u&&typeof u=="object"&&i[l]&&DQ(g,l),p!=null&&p.manifest&&NQ(p,a,l,t,u,e)}}o(qA,"processProperties");function _Q(e,t,n,i,r,a,s){let l;t.length===0?l=["page"]:l=t;let u=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),p=XD(a,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=Im(p,g);e.exportResults.flexChanges.find(S=>{let b=!1,O=JSON.parse(S);O={content:O.content,selector:O.selector};let N=JSON.parse(m);return N={content:N.content,selector:N.selector},JSON.stringify(O)===JSON.stringify(N)&&(b=!0),b})||e.exportResults.flexChanges.push(m)}o(_Q,"evaluateFlexRule");function VQ(e,t,n,i,r,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=wt.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,a):s!==!1&&(n[a]=i[r]),e.exportResults.manifestChangeIndicator=wt.ChangeIndicator.Updated}}o(VQ,"exportConfigValueToManifest");function wQ(e,t,n,i,r){let a=Bn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)VQ(e,n,a,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=wt.ChangeIndicator.Updated,is(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(wQ,"evaluateManifestRule");function MQ(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(wt.FACETTITLEPREFIX)?r.split(wt.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(MQ,"getManifestPathOfSections");function kQ(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}o(kQ,"getManifestPathOfTable");function UQ(e,t,n,i,r){let a;return t[0]===wt.PropertyName.sections?a=MQ(t,a,n,e,r):t[0]===wt.PropertyName.table?a=kQ(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}o(UQ,"getManifestPath");function jQ(e,t,n,i,r,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)_Q(e,i,t,r,a,n,s);else if(t.manifest){let u=UQ(e,i,t,n,a);wQ(e,u,t,s,n)}}o(jQ,"evaluateExportRule");function $Q(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(u=>(u.tabKey===a||a===void 0&&u.tabKey===""||a&&t.sectionKey===a)&&u.extensionType===t.extensionType);if((!l||l.length===0)&&(lh(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(wt.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(wt.ViewTemplateType.ResponsiveTableColumnsExtension,wt.ViewTemplateType.ResponsiveTableCellsExtension);lh(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o($Q,"deleteObsoleteColumn");function BQ(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=N1(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=wt.ChangeIndicator.Updated,$Q(r,e,n))}o(BQ,"deleteObsoleteColumnsFromFragment");function HQ(e,t,n,i,r){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:u}=fh(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o(HQ,"clusterConfigColumnsByPath");function N_(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in wt.v2.TableColumnExtensionTypeV2){let{path:u}=fh(e.v2Page,s,r,l);if(!u)continue;let p={path:u,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};try{BQ(p)}catch(g){e.logger.error(g.message)}}if(t){let l=HQ(t,n,e.v2Page,s,r);for(let u in l)xE(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(N_,"transferColumnExtensions");function GQ(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=L_(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(g)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(S=>{var b;return(b=S.$ref)==null?void 0:b.includes(t[p].constructor.name)}).$ref.split($),h=e.appSchema.definitions[m[m.length-1]];Os(e,t[p],i,[...r,s[p]],h)}let u=Bn(e.exportResults.manifest,YS());for(let p in u)$A(p,l)&&!s.includes(p)&&delete u[p]}o(GQ,"transferManifestExtensions");function WQ(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===wt.PropertyName.table){n=e[i-1];break}return qn(n,t)}o(WQ,"getSectionId");function KQ(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=Mo(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);Os(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(KQ,"transferIndexTable");function XQ(e,t,n,i,r,a){let s,l=Rm(e.$ref);l&&(s={target:l,key:WQ(t,n)}),N_(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(XQ,"transferCustomColumns");function QQ(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let u=Mo(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&Os(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(QQ,"handleAnyOfDefinitions");function qQ(e,t,n,i,r,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")GQ(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){XQ(l,t,s,e,n,a);return}else a?Os(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&QQ(l,e,s,n==null?void 0:n[r],r,i,t)}o(qQ,"transferComplexProperty");function Os(e,t,n,i,r,a){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!Ol(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&xm(t,l),p=u?[...n,u]:n,g=Dn(t,l),m=e.propertyDefinition=r.properties[l],h=e.nextDefinition=Mo(e.appSchema,a,s,m,l,e.factory,e.pageType);if(jQ(e,g,t,[...i],p,a,l),KQ(s,e,a,l,p,i),s===void 0||typeof s=="object")qQ(e,i,t,p,l,h,a);else if((m==null?void 0:m.$ref)===$+"TableCustomColumns"){N_(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(Os,"transferManifestEntriesAndFlexChange");function F_(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Bc(r,i,n[i],s),a.push(i),zA(r,n[i],e,l.properties,a)}o(F_,"transferSettingsOfRef");function YQ(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split($);F_(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${$}${Xo.v2.cardTemplateSettingsMap[e.template]}`.split($);F_(i,l,e,t,r,a)}}o(YQ,"processPropertiesOfObject");function zQ(e,t,n,i,r,a){let s=Dn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=Bn(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{Fl(s,u,t,e)}catch(p){ae(i.logger,{severity:Xo.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:Sm(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&YQ(e,t,r,i,a,n)}o(zQ,"processOvpProperty");function zA(e,t,n,i,r){for(let a in i)zQ(t,a,r,n,i,e)}o(zA,"processOvpProperties");function JQ(e,t,n){zA(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[Xo.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[Xo.ManifestSection.ovp].cards[i].template,a=Xo.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=Bc(n,a,{},"CustomCard"),e.cards=Bc(n,a,e.cards,"CustomCard"),zA(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}o(JQ,"addSettings");function cy(e){let t=new wi,n=t.createPageInstance(Xo.PageTypeV2.OverviewPage);return e.jsonSchema&&JQ(n,e,t),n}o(cy,"createOverviewPageConfig");var Pt=te(ce());function ZQ(e,t,n,i){var p,g;let r=Zh(e.manifest,i),a=e.jsonSchema.definitions;ey(t,n,a),t.table=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(_n(t.table,e.manifest,s,i,e.logger),XA(e,s,t),t.table.toolBar=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,a[Pt.DefinitionName.ToolBar],i,e.logger),a[Pt.DefinitionName.ActionsLR])for(let m in a[Pt.DefinitionName.ActionsLR].properties){let h=Is(m);t.table.toolBar.actions[h]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.Action),_n(t.table.toolBar.actions[h],e.manifest,a[Pt.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),_n(t.filterBar,e.manifest,a[Pt.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[Pt.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[Pt.DefinitionName.SelectionFields].properties;for(let h in m){let S=h;t.filterBar.selectionFields[S]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),_n(t.filterBar.selectionFields[S],e.manifest,a.SelectionFieldDateSettings,i,e.logger,S)}}t.chart=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),_n(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[Pt.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let h=Is(m);t.footer.actions[h]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.FooterAction),_n(t.footer.actions[h],e.manifest,a[Pt.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let u=(g=(p=e.manifest[Pt.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:g.keyPerformanceIndicators;u&&Object.keys(u).forEach(m=>{t.keyPerformanceIndicators[m]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),_n(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o(ZQ,"addSettings");function ly(e){if(qt(),!nf(e))return;let n=new wi,i=n.createPageInstance(Pt.PageTypeV2.AnalyticalListPage),r=[],a=of(e.manifest[Pt.ManifestSection.generic].pages,r,e.logger);if(rf(a,e.logger,a==null?void 0:a.entitySet),!!a)return ZQ(e,i,n,r[0]),e.flex.forEach(s=>{br(s)&&Jh(i,s,e.jsonSchema,e.logger)}),Zl(i,e,a,Pt.PageTypeV2.AnalyticalListPage),ry(i),i}o(ly,"createAnalyticalListPageConfig");var Zn=te(ce());var sf=require("@sap-ux/vocabularies-types/vocabularies/UI");var t9=["filterBar","table","footer"],n9=Zn.UIVOCABULARYALPHADOT.substring(1);function JA(e,t,n,i){ss(e,n,"QuickVariant"),b1(n,"QuickVariantX",t),S1(i,n,"QuickVariantX")}o(JA,"addEnumForVariantPaths");function i9(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[sf.UIAnnotationTerms.SelectionPresentationVariant,sf.UIAnnotationTerms.SelectionVariant,sf.UIAnnotationTerms.PresentationVariant];Fu(e,r,i)}o(i9,"addEnumForFilterBarAnnotationPath");function r9(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(sf.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(sf.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(n9,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(ae(n,{severity:Zn.LogSeverity.Warning,message:Q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(r9,"getPresentationVariantForLineItem");function o9(e,t,n){if(jc(t,"annotationPath",n))return;let i=r9(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=Nu("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||ae(n,{severity:Zn.LogSeverity.Warning,message:Q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(o9,"getLineItemAnnotation");function D_(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:$+Zn.DefinitionName.LineItems},r=$+Zn.DefinitionName.ToolBarLR;jS.forEach((u,p)=>{n.properties.table.anyOf[p.toString()].$ref=$+u;let g=u.replace("<LineItems>",""),m=JSON.parse(JSON.stringify(t.definitions[g]));m.properties.columns=i,m.properties.toolBar.$ref=r,n.definitions[u]=m});let{entityType:a,uIAnnotations:s}=Ml(e);if(s){let u=[],p=tf(e.manifest[Zn.ManifestSection.generic].pages,u);wl(n);let g=o9(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let h=vr(a.fullyQualifiedName,g.term,g.qualifier);jS.forEach(S=>{n.definitions[S][Zn.SchemaTag.annotationPath]=h})}_l(!1,n,g,a);let m=s.SelectionFields;if(jm(n,m,a),kl(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],p1(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return ae(e.logger,{severity:Zn.LogSeverity.Error,message:Q.t("NOLR"),location:{path:Zn.MANIFESTPATH,range:[Zn.ManifestSection.generic]}}),n;Vl(n,a,p,e.manifest,e.fragments),JA(a,e.entitySet,n,e.serviceAVT),i9(a,n,Zn.DefinitionName.ListReportFilterBar),E1(a,n,Zn.DefinitionName.MultiEditV2),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return ko(n,t9),n}o(D_,"generateListReportSchemaV2");var we=te(ce());var xp=o(e=>({flexChanges:[],manifest:{[we.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:we.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:we.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function __(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===we.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}o(__,"getClassesForSingleSection");function V_(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],__(n,i,t),V_(n,t)}}o(V_,"getSubsectionClasses");function a9(e,t,n){let i;for(let r in e.sections)i=t.sections[r],__(i,r,n),V_(i,n)}o(a9,"getExportClassesForSections");function s9(e,t){let n=tf(t.manifest[we.ManifestSection.generic].pages,e);if(!n){ae(t.logger,{severity:we.LogSeverity.Error,message:Q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){ae(t.logger,{severity:we.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(s9,"findV2Page");function ZA(e,t){let n=Cm(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(ZA,"calculateBaseId");function w_(e,t,n=!1){let i=xp(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let a=[],s=s9(a,e),l=new wi,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:ZA(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Os(p,u,[],[],e.jsonSchema)}return i}o(w_,"exportListReportPage");function M_(e,t,n=!1){let i=e.page.config,r=xp(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=of(e.manifest[we.ManifestSection.generic].pages,a,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new wi,u=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:ZA(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Os(p,u,[],[],e.jsonSchema)}return r}o(M_,"exportAnalyticalListPage");function k_(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=xp(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=$c(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return ae(e.logger,{severity:we.LogSeverity.Error,message:Q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let u=new wi,p=u.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&a9(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:ZA(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Os(g,p,[],[],e.jsonSchema)}}return a}o(k_,"exportObjectPage");var U_=o(e=>{let t=xp();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new wi,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Pp(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),c9=o((e,t,n)=>{var s;let i=xp();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new Ym,e);r.settings=Object.assign(new us,e.settings);for(let l in n.definitions.AppSettings.properties){let u=Dn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),g=Bn(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],is(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&qS(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function j_(e,t){if(e[we.SchemaType.ListReport])return tP(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return k_(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return U_(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return c9(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return M_(e[we.SchemaType.AnalyticalListPage],t)}o(j_,"exportPageV2");function eP(e,t,n=!1){if(e[we.SchemaType.ListReport])return tP(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return k_(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return U_(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return M_(e[we.SchemaType.AnalyticalListPage],t,n)}o(eP,"exportConfigEntityByPathV2");var Na=te(ce());function B_(e,t){e.anyOf&&e.anyOf.forEach(function(n){Hc(n,t)})}o(B_,"addAnyOfToReferredTypes");function uy(e){return typeof e.items!="object"||Array.isArray(e.items)?void 0:e.items}o(uy,"getSingleItem");function Hc(e,t){if(typeof e!="object")return;let n=va(e);n&&H_(n,t),B_(e,t),Hc(e.additionalProperties,t),Hc(uy(e),t)}o(Hc,"addReferredTypesFromElement");function H_(e,t){t.referredTypeNames.add(e);let n=t.types[e];Hc(n,t);let i=n.properties;i?Object.values(i).forEach(r=>Hc(r,t)):Hc(uy(n),t),Hc(n.additionalProperties,t)}o(H_,"addReferredTypesFromType");function fy(e,t,n,i,r){if(typeof t!="object")return;let a=va(t);if(a){let s=r.types[a];if(s||(s=e==null?void 0:e.refTypeDefinition,r.types[a]=s),e){let l;if(e.suffix){let p=`${a}<${e.suffix}>`;t.$ref=bm(p),l=structuredClone(s),r.types[p]=l,r.referredTypeNames.add(p)}else r.referredTypeNames.add(a),l=s;let u={pageInfo:i.pageInfo,specificParams:e.specificParams||i.specificParams};nP(n,u,e.syncRuleProvider,l,r)}else H_(a,r)}else nP(n,i,e==null?void 0:e.syncRuleProvider,t,r)}o(fy,"applyAdaptationInfoToElement");function $_(e,t,n,i){let r=i==null?void 0:i.elementAdapter;return r?r(n,t,e):{}}o($_,"applySyncRuleToElement");function nP(e,t,n,i,r){var h,S;let a=_D(n),s=$_(e,t,i,a);if(!s)return;fy(s.additionalPropertiesAdaptation,i.additionalProperties,e,t,r);let l={pageInfo:t.pageInfo,specificParams:((h=s.referenceAdaptation)==null?void 0:h.specificParams)||t.specificParams},u=i.properties,p;if(u)p=u;else{let b=uy(i);if(b)u={items:b},p=i;else return}let g,m=((S=s.referenceAdaptation)==null?void 0:S.processingRuleProvider)||function(b,O){g=g||n&&new n;let N=Dn(g,b);return $_(e,l,O,N)};for(let b in u){let O=u[b];if(typeof O!="object"){p[b]=O;continue}let N={...O},M=m(b,N);M?(M.controlId?N[Na.SchemaTag.controlId]=`${t.pageInfo.controlId}--${M.controlId}`:M.manifestPath&&(N[Na.SchemaTag.artifactType]="Manifest",N[Na.SchemaTag.manifestPath]=M.manifestPath),B_(N,r),fy(M.referenceAdaptation,N,e,l,r),fy(M.additionalPropertiesAdaptation,N.additionalProperties,e,l,r),fy(M.itemsAdaptation,uy(N),e,l,r),p[b]=N):delete p[b]}}o(nP,"adjustElement");function l9(e,t,n){let i=t.split("."),r=i[i.length-1],a=t+".view."+(r==="ObjectPage"?"Details":r);return`${e}::${a}::${n}`}o(l9,"getViewId");function G_(e,t,n){var re;qt();let i=dc(e.manifest,Na.FioriElementsVersion.v2,n);if(!i||i===Na.TemplateType.OverviewPageV2)return;let r=ef(e.pagePath,!1),{parent:a}=Ko(e.manifest,r);if(!a)return;let s=a.component;if(jc(a,"entitySet",n,"string",!0)||jc(s,"name",n,"string",!0))return;let l=a.entitySet,u=s.name,p=t(u),g=p==null?void 0:p.genericSchema,m=p==null?void 0:p.syncRuleProvider;if(!m||!g)return g;let h=e.parsedAnnotations||Hr(e.annotations,n),S=(re=h==null?void 0:h.entitySets)==null?void 0:re.find(Z=>Z.name===l);if(!S)return g;let b=structuredClone(g),O=l9(e.appId,u,l),M={pageInfo:{appId:e.appId,componentName:u,entitySet:l,controlId:O,pagePath:e.pagePath}},G={templateType:i,manifest:e.manifest,serviceAVT:h,fioriElementsVersion:Na.FioriElementsVersion.v2,entitySet:S,fragments:e.fragments,logger:n,entityType:S.entityType},j={types:b.definitions,referredTypeNames:new Set};nP(G,M,m,b,j);for(let Z in b.definitions)j.referredTypeNames.has(Z)||delete b.definitions[Z];return b}o(G_,"getAdaptedSchema");var W_=te(ce());var Qo=class{};o(Qo,"ListReportNew"),y([T({flex:{controlType:o(()=>W_.ControlType.DynamicPage,"controlType")},elementAdapter(){return{controlId:"page"}}})],Qo.prototype,"fitContent",2),Qo=y([nr({id:T_,pageId:Sp}),T({elementAdapter(e,t,n){let i=ef(t.pageInfo.pagePath),{entityType:r,uIAnnotations:a}=Ml(n),{value:s}=Ko(n.manifest,i);return{referenceAdaptation:{specificParams:{settings:s,entityType:r,uIAnnotations:a}}}}})],Qo);var aP=require("path"),Z_=require("fs");var Pr=te(ce());function f9(e){let t={};return e.flex.forEach(function(i){let r=br(i);if(r){let a=r,s=t[a.controlId]||[];s.push(a),t[a.controlId]=s}}),t}o(f9,"getChangeMapFormImportParameters");function iP(e,t,n,i,r){if(e===void 0)return;let a=va(t),s=a?n[a]:void 0;if(t[Pr.SchemaTag.conversionExit]&&(e=ny(!0,r.conversionExitProvider,t,e,i.fragments,void 0,i.logger),!s))return e;if(s)return iP(e,s,n,i,r);if(t.type==="object"&&t.properties&&typeof e=="object"){let l={},u=!1;for(let p in t.properties){let g=t.properties[p],m=iP(e[p],g,n,i,r);m!==void 0&&(u=!0,l[p]=m)}return u?l:void 0}return t.type==="array"&&!Array.isArray(e)?typeof e=="string"&&e!==""?e.split(","):void 0:e}o(iP,"getConfigRep");function K_(e,t,n,i,r,a,s,l){let u=iP(r,a,s,l,t);if(u===void 0)return;let p=e,g=[];n.forEach(function(m){g.push(m);let h=m.propertyName;p[h]=p[h]||t.propertyInstanceProvider(g),p=p[h]}),p[i]=u}o(K_,"transferValueToConfig");function u9(e,t,n,i,r,a,s,l){let u=r[Pr.SchemaTag.controlId],p=l[u];if(!p)return;let g=-1,m=p.find(function(h,S){return h.content.property===i?(g=S,!0):!1});m&&(K_(e,t,n,i,m.type==="propertyBindingChange"?m.content.newBinding:m.content.newValue,r,a,s),p.length===1?delete l[u]:p.splice(g,1))}o(u9,"importFlexChangesToConfigProperty");function p9(e,t,n,i,r,a,s){let l=r[Pr.SchemaTag.manifestPath],u,p;Array.isArray(l)?(p=l,u=!0):(p=l.path,u=l.addTargetPropertyToPath);let{hasPath:g,value:m,parent:h}=Ko(s.manifest,p,u?i:void 0);if(!g)return;K_(e,t,n,i,u?m:h,r,a,s)}o(p9,"importManifestToConfigProperty");function X_(e,t,n,i,r,a,s){if(La(n.properties))for(let l in n.properties){let u=n.properties[l];if(!La(u))continue;let p=u[Pr.SchemaTag.artifactType];if(p===Pr.ArtifactType.FlexChange)u9(e,t,i,l,u,r,a,s);else if(p===Pr.ArtifactType.Manifest&&u[Pr.SchemaTag.manifestPath])p9(e,t,i,l,u,r,a);else{let g=va(u),m=g?r[g]:void 0;if(La(m)){let h=i.concat([{propertyName:l,propertyType:g.split("<")[0]}]);X_(e,t,m,h,r,a,s)}}}}o(X_,"importDefinitionIntoConfig");function Q_(e,t,n){var h;let i=dc(e.manifest,Pr.FioriElementsVersion.v2,e.logger);if(!i||i===Pr.TemplateType.OverviewPageV2)return;let r=ef(t,!1),{parent:a}=Ko(e.manifest,r),s=(h=a==null?void 0:a.component)==null?void 0:h.name,l=typeof s=="string"?n(s):void 0;if(!l)return;let u=f9(e),p=e.jsonSchema,g=p.definitions,m=l.propertyInstanceProvider([]);return X_(m,l,p,[],g,e,u),m}o(Q_,"getConfigForPage");var xi=te(ce());function d9(e,t,n,i){let r=t===void 0?null:t,a=typeof r=="string"&&r.startsWith("{");i.push({controlId:e[xi.SchemaTag.controlId],controlType:e[xi.SchemaTag.controlType],propertyName:n,newValue:r,isBinding:a})}o(d9,"addFlexChangeInfoToList");function q_(e,t,n,i){var l;if(n[xi.SchemaTag.conversionExit])return ny(!1,i.conversionExitProvider,n,e,i.fragments,t);if(n.type==="array"&&((l=n.items)==null?void 0:l.type)==="string")return!Array.isArray(e)||e.length===0?t===""||typeof t!="string"?t:void 0:e.join(",");if(e===t||n.type!=="object"||!n.properties)return e;let r=typeof t=="object"&&t!==null?{...t}:{},a=!1,s=!1;for(let u in n.properties){let p=n.properties[u];if(!La(p))continue;let g=va(p);p=g&&i.globalTypeDefinitions[g]||p;let m=r[u];s=s||m!==void 0;let h=q_(e?e[u]:void 0,m,p,i);h===void 0?delete r[u]:(r[u]=h,a=!0)}return a?r:s?Object.keys(t).every(u=>La(n.properties[u]))?void 0:r:t}o(q_,"getValueForManifest");function rP(e,t){if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e!==t;if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length||e.some(function(r,a){return rP(r,t[a])}):!0;let n=Object.keys(e).filter(r=>e[r]!==void 0),i=Object.keys(t).filter(r=>t[r]!==void 0);return n.length!==i.length||n.some(function(r){return rP(e[r],t[r])})}o(rP,"isDifferent");function g9(e){return!e||!Object.keys(e).some(t=>e[t]!==void 0)}o(g9,"isEmpty");function m9(e,t,n,i,r){let a=n.manifest,s=e.length-1,l=e[s],u=[];e.some(function(m,h){if(h===s)return!0;let S=a[m];if(typeof S!="object"||S===null)return!0;a=S,u.push(a)});let p=u.length===s?a[l]:void 0,g=q_(t,p,i,r);if(rP(g,p))if(g===void 0){n.manifestChangeIndicator=xi.ChangeIndicator.Deleted;for(let m=s;m>0;m--){let h=u[m];if(!g9(h))break;let S=u[m-1],b=e[m];delete S[b]}}else{for(let m=u.length;m<s;m++){let h={};a[e[m]]=h,a=h}a[l]=g,n.manifestChangeIndicator=p===void 0?xi.ChangeIndicator.Created:xi.ChangeIndicator.Updated}}o(m9,"applyManifestChange");function h9(e,t,n,i,r){let a=e==null?void 0:e[n],s=i[xi.SchemaTag.artifactType];if(s===xi.ArtifactType.FlexChange)d9(i,a,n,t.flexList);else if(s===xi.ArtifactType.Manifest&&i[xi.SchemaTag.manifestPath]){let l,u=i[xi.SchemaTag.manifestPath];Array.isArray(u)?l=u.concat([n]):(l=u.path,u.addTargetPropertyToPath&&(l=l.concat([n]))),m9(l,a,t,i,r)}else{let l=va(i),u=l?r.globalTypeDefinitions[l]:void 0;La(u)&&Y_(a,t,u,r)}}o(h9,"transferConfigPropertyToExportResults");function Y_(e,t,n,i){let r=n.properties||{};for(let a in r){let s=n.properties[a];La(s)&&h9(e,t,a,s,i)}}o(Y_,"transferConfigToExportResults");function z_(e){let t=e.config,n=e.jsonSchema.definitions,i=(e.fragments||[]).map(function(s){return{...s,changeIndicator:xi.ChangeIndicator.NoChange}}),r={globalTypeDefinitions:n,conversionExitProvider:e.conversionExitProvider,fragments:i},a={manifest:structuredClone(e.manifest),manifestChangeIndicator:xi.ChangeIndicator.NoChange,flexList:[],fragments:i};return Y_(t,a,e.jsonSchema,r),a}o(z_,"exportPage");var y9=!1,T9={generateListReportSchemaV2(e,t){return D_(e,t)},createListReportConfig(e){return x_(e)},exportListReportPage(e,t,n){return w_(e,t,n)}},oP;function v9(){let e;if(__dirname.endsWith("dist"))e=__dirname;else{let i=__dirname.lastIndexOf("specification");e=(0,aP.join)(__dirname.substring(0,i+13),"dist")}let t=(0,aP.join)(e,"schemas","v2","ListReportNewConfig.json");return JSON.parse((0,Z_.readFileSync)(t,"utf8"))}o(v9,"getPersistentListReportNewSchema");function b9(){let e=v9();return function(t){return t===Sp?{genericSchema:e,syncRuleProvider:Qo}:void 0}}o(b9,"createGenericSchemaInfoProvider");function S9(e){return e===Sp?{propertyInstanceProvider:o(function(t){return new Qo},"propertyInstanceProvider")}:void 0}o(S9,"getConfigInfo");function J_(e){let{value:t}=Ko(e,[Rs.ManifestSection.generic],"pages");return Array.isArray(t)?[0]:t&&typeof t=="object"?[Object.keys(t)[0]]:void 0}o(J_,"getPagePathForRootPage");function E9(e,t,n){let i=!e.layer||e.layer===Rs.FlexChangeLayer.Customer,r={controlId:n.controlId,controlType:n.controlType,content:{property:n.propertyName},sapui5Version:e.ui5Version,isCustomer:i};return n.isBinding?(r.content.newBinding=n.newValue,r.type="propertyBindingChange"):r.content.newValue=n.newValue,Im(r,t)}o(E9,"flexInfoToChangeString");function A9(){let e=b9(),t=o(function(n,i,r){let a=structuredClone(i.manifest);return a[Rs.ManifestSection.app].id=n,i.flexList.map(E9.bind(null,r,a))},"getFlexChangesAsStrings");return{generateListReportSchemaV2(n){var s;let i=n.manifest,r=J_(i);if(!r)return null;let a={appId:((s=i[Rs.ManifestSection.app])==null?void 0:s.id)||"",manifest:i,pagePath:r,annotations:[],parsedAnnotations:n.serviceAVT,fragments:n.fragments};return G_(a,e,n.logger)},createListReportConfig(n){let i=J_(n.manifest);return Q_(n,i,S9)},exportListReportPage(n,i,r){let a=n.fragments?n.fragments.map(function(p){return{...p,changeIndicator:Rs.ChangeIndicator.NoChange}}):[],s={appId:n.appId,config:n.page.config,manifest:n.manifest,jsonSchema:n.jsonSchema,fragments:a,logger:n.logger},l=z_(s),u=t(n.appId,l,i);return{manifest:l.manifest,fragments:l.fragments,flexChanges:u,manifestChangeIndicator:l.manifestChangeIndicator}}}}o(A9,"createPageHandlerLRGeneric");function sP(){return y9?(oP=oP||A9(),oP):T9}o(sP,"getPageHandlerLR");function Cp(e,t){return sP().generateListReportSchemaV2(e,t)}o(Cp,"generateListReportSchemaV2");function py(e){return sP().createListReportConfig(e)}o(py,"createListReportConfig");function tP(e,t,n=!1){return sP().exportListReportPage(e,t,n)}o(tP,"exportListReportPage");function gy(e,t){var n,i;return(n=e.component)!=null&&n.name?Tm(ha((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(gy,"generateId");function P9(e,t,n,i){e.navigation={};let r=eV(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=gy(t.pages[a],a);e.entitySet?e.navigation[s]=r[s].navigationProperty?`${e.entitySet}.${r[s].navigationProperty}`:e.entitySet:e.navigation[s]=r[s].navigationProperty?r[s].navigationProperty:s}}o(P9,"getPageConfigsAndNavigations");function eV(e,t){var i;let n={};for(let r in e){let a=e[r],s=gy(a,r);if(!s)continue;let l={pageType:ha((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let u=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(u)if(l.pageType===Vn.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=py(p)}else if(l.pageType===Vn.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=ly(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=sy(p)}a.pages&&P9(l,a,t,n)}return n}o(eV,"getPagesAndConfigs");var cP=class cP extends fs{constructor(t){qt();let n;t.manifest[Vn.ManifestSection.generic]?n=t.manifest[Vn.ManifestSection.generic].pages:ae(t.logger,{severity:Vn.LogSeverity.Error,message:Q.t("NOFE"),location:{path:Vn.MANIFESTPATH,range:[Vn.ManifestSection.generic]}}),n||ae(t.logger,{severity:Vn.LogSeverity.Error,message:Q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:Vn.MANIFESTPATH,range:[Vn.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&gy(n[i],i),a=new us,s=_t(Vn.SchemaType.Application),l=t.appSchemas[s.filename];_n(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,eV(n,t),a)}};o(cP,"V2AppProvider");var dy=cP;function Ip(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||ae(n,{severity:Vn.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:Vn.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let u=gy(l,s);i[u]=l}if(t===Vn.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=Ip(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(Ip,"getPages");var Gc=te(ce());var lP=class lP extends fs{constructor(t){let n={},i=t.manifest[Gc.ManifestSection.ovp],r=new us,a=_t(Gc.SchemaType.Application);_n(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(Gc.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:Gc.PageTypeV2.OverviewPage,config:cy(l),entitySet:i.globalFilterEntitySet},p=Tm(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(lP,"V2OvpProvider");var my=lP;var _=te(ce()),Wc=require("@sap-ux/vocabularies-types/vocabularies/UI");var x9=["header","filterBar","chart","table"],fP="@UI.LineItem";function uP(e,t,n,i,r){if(i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=vr(e.fullyQualifiedName,Wc.UIAnnotationTerms.SelectionFields,r)),n){let a=0;n==null||n.forEach(s=>{var g,m;let l=s.value,u="SelectionField::"+ct(s.value);s.type==="PropertyPath"&&(l=gm(s,e)),i.properties[u]={$ref:$+u},i.properties[u][_.SchemaTag.propertyIndex]=a;let p=Kr(s);t.definitions[u]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[u][_.SchemaTag.isViewNode]=!0,t.definitions[u][_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:`${s.value}`}],((g=s.$target)==null?void 0:g.fullyQualifiedName.indexOf("@"))>-1?t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[u][_.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[u][_.SchemaTag.annotationPath]=`${i[_.SchemaTag.annotationPath]}/${a}`,a++})}return i}o(uP,"addSelectionFields");function C9(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${Wc.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let a={};return Object.keys(t).forEach(s=>{t[s].template||(a[s]=t[s])}),Object.keys(a).length>0?a:void 0}}o(C9,"getVisualFilters");function I9(e,t){let n=[];return e==null||e.forEach(i=>n.push(i.value)),t&&t.entityProperties.forEach(i=>n.includes(i.name)?void 0:n.push(i.name)),n}o(I9,"getPropertiesIndex");function O9(e,t,n,i){var s,l,u,p,g,m;let r=I9(i,e),a=t.definitions[_.DefinitionName.VisualFilters];a.properties={};for(let h in n){let S=n[h];if(!S.template){let b=a.properties[h]={$ref:oi(_.DefinitionName.VisualFilter,h)},O=r.indexOf(h);O!==-1&&(b[_.SchemaTag.propertyIndex]=O);let N=vt(_.DefinitionName.VisualFilter,h,t);(s=S.visualFilter)!=null&&s.valueList&&(N[_.SchemaTag.annotationPath]=`${h}/@${S.visualFilter.valueList}`);let M=(m=(g=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(G=>G.name===h))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:g.Label)==null?void 0:m.toString();N.description=M||h,N[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:h}]}}}o(O9,"addVisualFilters");function R9(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},n1(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&os(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}o(R9,"applyCustomFilterFields");function L9(e,t,n,i){var l,u;let r=C9(n),a=i&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[i])==null?void 0:u.SelectionFields),s;if(r)t.definitions[_.DefinitionName.SelectionFields][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.SelectionFields].properties={},s=t.definitions[_.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},O9(e,t,r,a);else{let p=t.definitions[_.DefinitionName.FilterBar];p.properties.initialLayout[_.SchemaTag.hidden]=!0,p.properties.layout[_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.CompactFilters][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.VisualFilters][_.SchemaTag.hidden]=!0}s=uP(e,t,a,s),R9(t,s,n)}o(L9,"addFilterBar");function tV(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let a=e.definitions[t];a.properties={},a.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${_.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(u=>{let p=ct(`${_.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=ai(u,r),m=u.$Type.split(`${_.UIVOCABULARY}.`)[1],h=a.properties[`${m}::${u.Action}`]={$ref:$+p,description:g};h[_.SchemaTag.propertyIndex]=l,h[_.SchemaTag.annotationType]=u.$Type,h[_.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[_.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][_.SchemaTag.annotationPath]=u.fullyQualifiedName,l++})}}o(tV,"defineActions");function nV(e,t,n,i){var l;let r,a,s;return e&&(n==="primary"?a=e.find(u=>u.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(u=>u.value.indexOf(_.FacetBase.LineItem)>-1):i?a=e.find(u=>u.value.indexOf(i)>-1):a=e[0],r=typeof(a==null?void 0:a.value)=="string"?Ll(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",_.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(nV,"findTheRightVisualization");function N9(e,t,n,i){let r="@UI.Chart",a=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:r,targetAnnotation:a,chartTitle:s}}o(N9,"analyzeChartAnnotation");function F9(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=nV((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(ae(r,{severity:_.LogSeverity.Error,message:Q.t("NOVISUALIZATIONS")}),s=fP,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(F9,"analyzeSPVforView");function cf(e,t,n,i,r,a){let s,l,u=e==null?void 0:e.split(`${_.UIVOCABULARY}.`)[1],p=u&&t[u];if(!p)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=p.Text,s=p.fullyQualifiedName.split(_.UIVOCABULARYALPHADOT)[0],u.startsWith("PresentationVariant")){let{visualization:g,targetAnnotation:m}=nV(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return F9(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=fP,m=`/${s}/@${Wc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=fP;p.qualifier&&(g+=`#${p.qualifier}`);let m=e.substring(0,1)==="@"?`/${s}/${e}`:`/${s}/@${e}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("Chart")){let{visualization:g,targetAnnotation:m,chartTitle:h}=N9(s,e,p,i);return{visualization:g,targetAnnotation:m,namespace:s,title:h}}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}o(cf,"analyzeViewAnnotation");function D9(e,t,n,i){let r=e.definitions[_.DefinitionName.ALPChartView];if(e.definitions[_.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.isViewNode],n&&(e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.annotationPath]=n),e.definitions[_.DefinitionName.ALPChart].properties.annotationPath[_.SchemaTag.hidden]=!0,r.properties.annotationPath[_.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${$}${_.DefinitionName.ALPChart}`,t){let a=t.split(_.UIVOCABULARYDOT)[1];if(i[a]){let s=i[a].fullyQualifiedName.split("@");r[_.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}else Pa(r,Q.t("UNEXISTING_ANNOTATION_PATH"))}r[_.SchemaTag.artifactType]=_.ArtifactType.Manifest,r[_.SchemaTag.key]="primary",r[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"primary"}]}o(D9,"addALPChartView");function _9(e,t,n,i,r,a){var M,G,j,re,Z,oe,Pe,D;let s=(M=n.entityType)==null?void 0:M.annotations.UI,l=(re=(j=(G=t==null?void 0:t[0])==null?void 0:G.primary)==null?void 0:j[0])==null?void 0:re[_.SchemaTag.annotationPath],{targetAnnotation:u}=cf(l,s,n.serviceAVT,"primary",void 0,n.logger);D9(e,l,u,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=$+p,tV(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=cf((Pe=(oe=(Z=t==null?void 0:t[0])==null?void 0:Z.secondary)==null?void 0:oe[0])==null?void 0:Pe[_.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),h=e.definitions[a];g||i?(h.properties.toolBar.$ref=`${$}${_.DefinitionName.ToolBarLR}`,h.properties.columns={$ref:$+_.DefinitionName.LineItems},h.properties.annotationPath[_.SchemaTag.hidden]=!0):h.properties={};let S=e.definitions[_.DefinitionName.ALPTableView];e.definitions[_.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(S)),delete e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.isViewNode],S.additionalProperties=!1,S.description="Table (key: secondary)",S.title="Table",g?(delete S.properties,S.$ref=`${$}${_.DefinitionName.ALPTable}`):i||(S.properties={}),S[_.SchemaTag.artifactType]=_.ArtifactType.Manifest;let b,O;if(g&&g.indexOf(_.FacetBase.LineItem)>-1?(b=g.split(".")[1],O=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(b=O=i.split(_.UIVOCABULARYDOT)[1]),b){let ut={isObjectPage:!1,appSchema:e,lineItemAnnotation:(D=n.entityType)==null?void 0:D.annotations.UI[b],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:_.DefinitionName.LineItems};Tc(ut,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let yt=s[O].fullyQualifiedName.split("@");S[_.SchemaTag.annotationPath]=`/${yt[0]}/@${yt[1]}`,S[_.SchemaTag.key]="secondary",S[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}yc(e,r,n.logger);let N=`${_.DefinitionName.Actions}<${ct(_.DefinitionName.LineItems)}>`;Ea(e,r,n.logger,void 0,N),uo(e,N,_.DefinitionName.CustomActionPosition)}o(_9,"addALPViews");function V9(e,t){let n=`${_.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][_.SchemaTag.isViewNode],e.appSchema.definitions[n][_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${_.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${$}${i}`;let r=`${_.DefinitionName.Actions}<${e.viewKey}>`;return tV(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${$}${r}`,n}o(V9,"addViewChartDefinitions");function w9(e,t,n,i,r,a){let s=V9(e,t);n.definitions[s].properties.annotationPath[_.SchemaTag.hidden]=!0,n.definitions[s].properties.index[_.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[_.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${$}${s}`,description:a||l,title:l}}o(w9,"addViewChart");function M9(e,t,n,i,r){var m;let a=`${_.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=vt(_.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[_.SchemaTag.isViewNode],l[_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),cs(l.properties.toolBar,_.DefinitionName.ToolBar,s);let u=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${$}${a}`,description:e.title||u,title:u},cs(l.properties.columns,s),l.properties.annotationPath[_.SchemaTag.hidden]=!0,l.properties.index[_.SchemaTag.hidden]=!0,l.properties.entitySet[_.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(_.UIVOCABULARYDOT)[1],g={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s};Tc(g,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}o(M9,"addViewLineItems");function k9(e,t,n,i){e.properties[t][_.SchemaTag.isViewNode]=!0,e.properties[t][_.SchemaTag.annotationPath]=n?`/${n}/@${i[_.SchemaTag.annotationPath]}`:void 0,e.properties[t][_.SchemaTag.artifactType]=_.ArtifactType.Manifest,e.properties[t][_.SchemaTag.key]=t,e.properties[t][_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:t}]}o(k9,"addTagsToView");function U9(e,t,n){var a;let i=n.entityType,r=e;return t.entitySet&&t.entitySet!==e.name&&(r=(a=n.serviceAVT)==null?void 0:a.entitySets.find(s=>s.name===t.entitySet),i=r.entityType),i}o(U9,"getTargetEntityType");function j9(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${Wc.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=vt(_.DefinitionName.ViewCustomColumn,r,e.appSchema);cs(l.properties.position,_.DefinitionName.ViewPosition,r),vt(_.DefinitionName.ViewPosition,r,e.appSchema),yc(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),vc(e.appSchema,r,i,`${_.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&delete e.appSchema.definitions.Position;let u=`${_.DefinitionName.Actions}<${r}>`,p=`${_.DefinitionName.ViewCustomAction}<${r}>`;Ea(e.appSchema,i,t.logger,p,u,s),vt(_.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${_.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${$}${g}`,uo(e.appSchema,u,g)}o(j9,"addViewCustomExtensions");function $9(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)M9(n,t,e,n.targetAnnotation,i),j9(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)w9(n,a,n.appSchema,t,n.viewKey,n.title);else if(s.template){let l=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${$}${_.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${$}${_.DefinitionName.LRTableView}`}}}o($9,"addLRViewParts");function B9(e,t,n,i,r){var l;let a=e.definitions[r];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let u of t){if(!u[_.SchemaTag.key])continue;let p,g=U9(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:h,targetAnnotation:S,namespace:b,title:O}=cf(u==null?void 0:u[_.SchemaTag.annotationPath],m,n.serviceAVT,u[_.SchemaTag.key],void 0,n.logger);u.entitySet&&(p=(l=n.entityType.navigationProperties.find(G=>G.targetTypeName===b))==null?void 0:l.name);let N=ct(u[_.SchemaTag.key]),M={viewKey:N,appSchema:e,targetAnnotation:S,navPropName:p,targetEntityType:g,title:O,entitySet:u.entitySet};$9(h,s,M,n,i,m,u),k9(s,N,b,u)}}o(B9,"addLRViews");function H9(e,t,n,i,r,a){var g,m,h,S,b,O,N,M,G,j,re,Z,oe;let s=e.definitions[a],{visualization:l,targetAnnotation:u,namespace:p}=cf(n,(g=t.entityType)==null?void 0:g.annotations.UI,t.serviceAVT,void 0,_.Visualization.LineItem,t.logger);if(l){let Pe=l.split(".")[1],D=`${_.DefinitionName.LineItems}OfSPV::${ct(Pe)}`,ut=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete ut[_.SchemaTag.isViewNode],cs(ut.properties.toolBar,_.DefinitionName.ToolBar,D),ut[_.SchemaTag.annotationPath]=u,ut.properties.columns={},cs(ut.properties.columns,D),delete s.properties,cs(s,`${a}SPV`),s[_.SchemaTag.annotationPath]=`/${p}/@${n}`;let yt=(m=t.entityType)==null?void 0:m.annotations.UI[Pe];yt||ae(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOTARGET",{target:Pe})});let je={isObjectPage:!1,appSchema:e,lineItemAnnotation:yt,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D};Tc(je);let cn=(h=Pe.split("#"))==null?void 0:h[1],Wn=cn?`@${Wc.UIAnnotationTerms.LineItem}#${cn}`:`@${Wc.UIAnnotationTerms.LineItem}`;yc(e,i,t.logger,void 0,D,Wn),vc(e,D,i,void 0,Wn);let nn=`${_.DefinitionName.Actions}<${D}>`,Nt=Qm(e,D,_.DefinitionName.CustomTableAction);Ea(e,i,t.logger,on(Nt),nn,Wn),uo(e,nn,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${$}${_.DefinitionName.ToolBarLR}`,cs(s.properties.columns,_.DefinitionName.LineItems);let Pe=(O=(b=(S=t.entityType)==null?void 0:S.annotations)==null?void 0:b[r])==null?void 0:O.LineItem;!Pe&&!((G=(M=(N=i.options)==null?void 0:N.settings)==null?void 0:M.views)!=null&&G.paths)&&ae(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOLINEITEMS")});let D={isObjectPage:!1,appSchema:e,lineItemAnnotation:Pe,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_.DefinitionName.LineItems};Tc(D),yc(e,i,t.logger),vc(e,_.DefinitionName.LineItems,i),Pe&&!((Z=(re=(j=i.options)==null?void 0:j.settings)==null?void 0:re.views)!=null&&Z.paths)&&(s[_.SchemaTag.annotationPath]=vr((oe=t.entityType)==null?void 0:oe.fullyQualifiedName,Pe.term,Pe.qualifier));let ut=`${_.DefinitionName.Actions}<${ct(_.DefinitionName.LineItems)}>`;Ea(e,i,t.logger,void 0,ut),uo(e,ut,_.DefinitionName.CustomActionPosition)}}o(H9,"adaptTableDefinition");function G9(e,t,n){var i,r,a,s,l,u,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===_.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===_.TemplateType.ListReportObjectPageV4)return((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((p=(u=t==null?void 0:t.annotations.UI)==null?void 0:u.PresentationVariant)==null?void 0:p.term)}}o(G9,"getDefaultAnnotationPath");function W9(e,t,n,i){var u,p,g,m,h;let r=(g=(p=(u=t.options)==null?void 0:u.settings)==null?void 0:p.views)==null?void 0:g.paths,a=n.entityType,s=G9(t,n.entityType,n.templateType),l=e1(e,n);L9(a,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(H9(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],B9(e,r,n,t,l)):(h=(m=t.options)==null?void 0:m.settings)!=null&&h.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[_.PropertyName.chart][_.SchemaTag.hidden]=!0):n.templateType===_.TemplateType.AnalyticalListPageV4&&(_9(e,r,n,s,t,l),vc(e,_.DefinitionName.LineItems,t))}o(W9,"addTableAndViews");function K9(e,t,n){let i=_.DefinitionName.HeaderActions,r=e.definitions[i];r[_.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=_.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[_.SchemaTag.isViewNode]=!0,s.description="Custom Action",Nm(e,t,n,a,i);let l=_.DefinitionName.CustomHeaderActionPosition;vt(l,l,e,!1),s.properties.position.$ref=`${$}${l}`,uo(e,i,l)}o(K9,"addHeaderActions");function Op(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&ii(_.UIVOCABULARY,e.serviceAVT);if(r.properties[_.PropertyName.defaultTemplateAnnotationPath][_.SchemaTag.hidden]=!0,ss(a,r,_.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[_.ManifestSection.ui5].routing.targets;if(!l)return ae(e.logger,{severity:_.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let u=Lm(l,n,e.entitySet,i);if(!u)return r;K9(r,u,e.logger),W9(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,ko(r,x9),r}o(Op,"generateListReportSchemaV4");var Bi=require("@sap-ux/vocabularies-types/vocabularies/UI"),R=te(ce());var QM=te(uc()),qM=te(XM()),YM=te(QP());var zM=te(ce()),JM=te(ce());function TY(e,t){var i;let n=e;for(let r of t){let a=(i=n==null?void 0:n.elements)==null?void 0:i.filter(s=>s.type!=="comment");n=a==null?void 0:a[r.index]}return n}o(TY,"findElementByXMLPath");function ZM(e,t){return e[t]?!1:(e[t]={},!0)}o(ZM,"ensureObjectExists");function vY(e,t){let n={},i=on(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(vY,"getPropertiesFromRef");function bY(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=ZM(l,i),m=l[i];return Jc({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(bY,"traverseDefaultAggregation");function SY(e,t){var n,i,r;return(t==null?void 0:t.defaultAggregation)&&((r=(i=(n=e[t.defaultAggregation])==null?void 0:n.metadata)==null?void 0:i.path)==null?void 0:r.length)===0}o(SY,"isDefaultAggregationAppliable");function Jc(e,t){var g,m;let{schema:n,element:i,contextPath:r,config:a={},fullSchema:s}=e,l=!1,{properties:u={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(u=vY(s,n.$ref));for(let h in u){let S=u[h],b=typeof S=="object";if(b&&(p==null?void 0:p.defaultAggregation)===h&&SY(u,p)&&(l=bY(e,t,p)||l,b=!1),!!b)if((m=(g=S.metadata)==null?void 0:g.path)!=null&&m.length){let O=S.metadata.path,N=O.slice(r.length),M=TY(i,N);l=ZM(a,h)||l;let G=a[h];l=Jc({fullSchema:e.fullSchema,schema:S,element:M,contextPath:O,config:G,parent:e},t)||l}else l=t(e,S,a,h)||l}return l}o(Jc,"traverseSchema");function xf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,YM.parse)(e.fileContent),s=(0,qM.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,QM.xml2js)(e.fileContent)}catch(r){ae(n,{severity:JM.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:Sm(r)}),location:{path:e.dataSourceUri}})}return i}o(xf,"parseXML");function Cf(e){return`${zM.DefinitionName.CustomExtensionFragment}<${e}>`}o(Cf,"getCustomExtensionFragmentDefinitionKey");function sT(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(sT,"getRootElement");var ox=te(ce()),ax=te(ce());var td=te(ce());function ws(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(ws,"getAttribute");function ek(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(ek,"getNodeByName");function EY(e){let t=e.split("/"),n=[],i;for(let r of t)if(r){if(r.startsWith("@")){i=r;break}n.push(r)}return n.length?{path:n.join("/"),term:i}:{term:e}}o(EY,"resolveMetaPath");function ex(e){var b;let{node:t,serviceAVT:n,connectionContext:i}=e,r=ws(t,"contextPath")||i.contextPath,a=ws(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(a){let O=EY(a);O.path&&(u=l?O.path:`${u}/${O.path}`,a=O.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((b=p==null?void 0:p.target)==null?void 0:b._type){case"EntitySet":{g=p.target.entityType;break}case"NavigationProperty":{g=p.target.targetType;break}case"EntityType":{g=p.target;break}}let m,h=a.split("#");h.length&&(m=h[1]);let S;if(a){let O=a.split(".");O.length&&(S=O[O.length-1])}return g?{entityType:g,metaPath:a,qualifier:m,annotationKey:S}:void 0}o(ex,"getEntityTypeResolution");function tk(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(tk,"applyAnnotationPath");function AY(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let g=cf(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(g.visualization){let m=g.visualization.split(".")[1];a=(p=(u=r==null?void 0:r.annotations)==null?void 0:u[n])==null?void 0:p[m],a!=null&&a.fullyQualifiedName&&(s=tS(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(AY,"getTableLineItemAnnotationData");var nk={"sap.fe.macros.Chart":o(e=>{let t=ex(e);tk(e.schema,t)},"sap.fe.macros.Chart"),"sap.fe.macros.FilterBar":o(e=>{var s,l,u,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=ex(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let g=ii(td.UIVOCABULARY,n),m=g&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[g])==null?void 0:p[r.annotationKey]);uP(r.entityType,i,m,a,r.qualifier)}},"sap.fe.macros.FilterBar"),"sap.fe.macros.Table":o(e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=ex(e),a=t.properties.columns,s=t.properties.actions;if(typeof a=="object"&&typeof s=="object"&&r){a.properties||(a.properties={}),s.properties||(s.properties={});let l=ii(td.UIVOCABULARY,n);if(tk(t,r),t.annotationPath){let u=AY(r,n,l);u!=null&&u.annotationPath&&(t.annotationPath=u.annotationPath);let p={isObjectPage:!1,appSchema:i,lineItemAnnotation:u.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:td.DefinitionName.LineItems,isMacro:!0};yS(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var ik=te(ce());var PY=new Map([["filterFields","SelectionField::"]]),xY=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),nd={anchor:"anchor",placement:"placement",key:"key"};function CY(e,t){var n;if(typeof(e==null?void 0:e.additionalProperties)=="object"&&(e!=null&&e.additionalProperties.$ref)){let i=(n=t.definitions)==null?void 0:n[on(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return nd.anchor in r&&nd.placement in r}return!1}o(CY,"isCustomExtensionSchema");function rk(e){let t=PY.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=xY.get(e),t&&(n.prefix=t)),n}o(rk,"getAnnotationPrefix");function IY(e,t,n,i){let r=t.properties[n],a=rk(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=ws(l,nd.key)||n,p=ws(l,nd.anchor),g=ws(l,nd.placement)||ik.v4.Placement.After,m=a.replace?`${a.prefix}${p}`:p,h={position:{anchor:m in t.properties?m:p,placement:g}};return{key:u,extension:h}}o(IY,"getExtensionData");function OY(e,t,n){let i={},r=[],a={};for(let s in t.properties){let l=t.properties[s];if("metadata"in l){let{extension:u,key:p}=IY(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}ba(i,r,"","position");for(let s=0;s<r.length;s++){let l=r[s][0],u=t.properties[l];r[s][1].$ref==="#/definitions/"&&l in a&&(u=t.properties[a[l]]),u&&(u.propertyIndex=s)}}o(OY,"updatePropertyIndices");function RY(e,t,n,i){var a;let r=t;if(n.prefix&&r.startsWith(n.prefix))n.replace&&(r=r.replace(n.prefix,""));else if((a=i==null?void 0:i.metadata)!=null&&a.path){let s=i.metadata.path[i.metadata.path.length-1].index;r=ws(e.subElements[s],"key")||r}return r}o(RY,"getCorrectedAnchorEnumKey");function LY(e,t,n,i){var a,s;let r=rk(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;os(n,t,{property:u,schema:p},{excludeKey:l,resolveDefinition:!0});let g=((s=(a=p.properties)==null?void 0:a[u])==null?void 0:s.oneOf)||[];for(let m of g)typeof m=="object"&&typeof m.const=="string"&&(m.const=RY(e,m.const,r,t.properties[m.const]))}}o(LY,"applyEnumsForAnchors");function ok(e,t,n,i){CY(t,n)&&(i=i||e.name,OY(e,t,i),LY(e,t,n,i))}o(ok,"handleExtensions");var di=[];for(let e=0;e<256;++e)di.push((e+256).toString(16).slice(1));function ak(e,t=0){return(di[e[t+0]]+di[e[t+1]]+di[e[t+2]]+di[e[t+3]]+"-"+di[e[t+4]]+di[e[t+5]]+"-"+di[e[t+6]]+di[e[t+7]]+"-"+di[e[t+8]]+di[e[t+9]]+"-"+di[e[t+10]]+di[e[t+11]]+di[e[t+12]]+di[e[t+13]]+di[e[t+14]]+di[e[t+15]]).toLowerCase()}o(ak,"unsafeStringify");var sk=require("crypto");var lT=new Uint8Array(256),cT=lT.length;function tx(){return cT>lT.length-16&&((0,sk.randomFillSync)(lT),cT=0),lT.slice(cT,cT+=16)}o(tx,"rng");var ck=require("crypto"),nx={randomUUID:ck.randomUUID};function NY(e,t,n){var r;if(nx.randomUUID&&!t&&!e)return nx.randomUUID();e=e||{};let i=e.random??((r=e.rng)==null?void 0:r.call(e))??tx();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[n+a]=i[a];return t}return ak(i)}o(NY,"v4");var ix=NY;var rx="sap.fe.macros",FY=["id","key","title","text","label","header"];function lk(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(lk,"getElementName");function DY(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(DY,"isElementWithNamespace");function _Y(e){let t={},n=e.attributes||[];for(let i of n){let{key:r,value:a}=i,s="",l="xmlns:";r.startsWith(l)&&(s=r.substring(l.length)),t[a]=s}return t}o(_Y,"getDependencies");function VY(e,t){let n="",i=e.attributes||[];for(let r of FY){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(VY,"getViewNodeDescription");function wY(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(wY,"findAvailableName");function fk(e,t){if(e.properties={},e.$ref){let n=on(e.$ref),i=t.definitions[n];typeof i=="object"&&i.properties&&(e.type=i.type,e.isViewNode=i.isViewNode,e.properties=JSON.parse(JSON.stringify(i.properties))),delete e.$ref}}o(fk,"prepareSchemaProperties");function MY(e,t,n){t.properties||fk(t,n);let{properties:i={}}=t;for(let r of e.attributes){let a=i[r.key];a&&a.metadata&&(a.metadata.position=r.position)}}o(MY,"handleAttributes");function kY(e){e.type===ax.MacrosPropertyType.Control&&(e.internalId=ix())}o(kY,"applyIdForMacros");function UY(e,t,n){var i,r;try{(r=(i=nk)[e])==null||r.call(i,t)}catch{ae(n,{severity:ox.LogSeverity.Error,message:Q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(UY,"callAnnotationHandler");function jY(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===ax.MacrosPropertyType.Control&&(e.controlName=n)}o(jY,"updateMetadataByReference");function $Y(e,t,n,i){var h,S,b,O,N;let r=n.schema;t.properties||fk(t,r);let a=t.properties[i],s=(h=a==null?void 0:a.metadata)==null?void 0:h.type,l=(S=a==null?void 0:a.metadata)==null?void 0:S.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(O=(b=a==null?void 0:a.metadata)==null?void 0:b.path)!=null&&O.length?wY(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(on(a.$ref)):g=[`${rx}.${i}`,`${rx}.table.${i}`,`${rx}.filterBar.${i}`];let m=!1;for(let M of g){let G=(N=r.definitions)==null?void 0:N[M];if(typeof G!="object")continue;jY(u,G,M);let j=VY(e,i),re={$ref:bm(M),description:j,propertyIndex:n.index,metadata:u};MY(e,re,r),t.properties[p]=re,m=!0,UY(M,{...n,node:e,schema:re,rootSchema:n.schema},n.logger);break}if(kY(u),!m)if(a!=null&&a.properties)a.metadata=u;else{let M={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=M}return p}o($Y,"addControlToSchema");function uk(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let a=r.$ref.split($)[1];a&&t.indexOf(a)===-1&&t.push(a)}uk(r,t)}}o(uk,"populateUsedDefinitionKeys");function BY(e,t){if(typeof t=="object"&&typeof t.additionalProperties=="object"&&t.additionalProperties.$ref){let i=t.additionalProperties.$ref.split(".");if(i[i.length-1]===e.name)return!0}return!1}o(BY,"isElementAddableToSchema");function HY(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!ek(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(HY,"getDefaultAggregation");function GY(e,t,n,i){let r={};for(let a=0;a<e.length;a++){let s=e[a],l=!r[s.name];r[s.name]=!0,pk(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:lk(s),index:a}]},i)}}o(GY,"handleSubElementsOfXMLNode");function pk(e,t,n,i){var g,m,h;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(g=n.schema.definitions)==null?void 0:g[on(t.$ref)]:t;if(DY(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let S=(h=t.metadata)==null?void 0:h.defaultAggregation;S&&BY(e,t.properties[S])&&(t=t.properties[S]);let b=e.name.split(":"),O=$Y(e,t,n,b[b.length-1]);if(t.properties[O])t=t.properties[O];else return}let{subElements:l=[]}=e,u=t!=null&&t.metadata?t.metadata.controlName:void 0;i&&u&&n.schema.definitions[u]&&i.indexOf(u)===-1&&(i.push(u),uk(t,i));let p=HY(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),GY(l,t,n,i),r.push({node:e,schema:t});for(let S of r)ok(S.node,S.schema,n.schema,S.name)}o(pk,"handleXMLNode");function WY(e,t){var i;let n=[];return(i=e==null?void 0:e.metadata)!=null&&i.namespaces&&e.metadata.namespaces.forEach(r=>{r in t&&n.push(t[r])}),n}o(WY,"getMacrosPrefixes");function Zc(e,t,n,i){let r=xf(t.file,!0,i),a=[];if(!r)return;qt();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){ae(i,{severity:ox.LogSeverity.Error,message:Q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=_Y(l),p=WY(e,u);if(p.length){s=JSON.parse(JSON.stringify(e));let g={};for(let m=0;m<l.subElements.length;m++){let h=l.subElements[m],S=!g[h.name];g[h.name]=!0,pk(h,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:S,path:[{name:lk(h),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},a)}for(let m in s.definitions)s.definitions[m].metadata&&!a.includes(m)&&delete s.definitions[m]}return s}o(Zc,"generateMacrosSchemaDefinition");function dk(e,t){if(typeof e=="object")for(let n in e){let i=e[n];"template"in i&&i.template&&typeof i.template=="string"&&t.push(i.template),"subSections"in i&&dk(i.subSections,t)}}o(dk,"populateTemplates");function gk(e,t,n,i){var s,l,u;let r=bc(n.manifest,i),a=[];dk(((u=(l=(s=r==null?void 0:r.options)==null?void 0:s.settings.content)==null?void 0:l.body)==null?void 0:u.sections)||{},a);for(let p of a){if(!p)continue;let g={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=Cf(p);e.definitions[m]=g;let h=Sc(n.fragments,r,n.manifest,"fragment",p);if(h){g.metadata.filePath=h.relativeFilePath;let{properties:S={},definitions:b={}}=Zc(t,h,n.serviceAVT,n.logger)||{};g.properties=S;for(let O in b)e.definitions[O]||(e.definitions[O]=b[O])}}return t}o(gk,"resolveFragments");var KY=["header","layout","sections","footer"],XY=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],cx="Custom Action";function vk(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=Gm(t.item,e),p=Wr(t.item),m=t.item.$Type===Bi.UIAnnotationTypes.DataFieldForActionGroup,h=m?R.DefinitionName.ObjectPageHeaderActionGroup:R.DefinitionName.ObjectPageHeaderAction,S=t.item.fullyQualifiedName.replace(`@${Bi.UIAnnotationTerms.Identification}`,`/@${Bi.UIAnnotationTerms.Identification}`),b=`${h}<${ct(p)}>`,O=i.definitions[b]={type:"object",$ref:`${$}${h}`,description:ai(t.item,r)};if(O[R.SchemaTag.isViewNode]=!0,O[R.SchemaTag.dataType]=Kr(t.item),O[R.SchemaTag.propertyIndex]=s,m){O.properties={},Pa(O,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let N=(t.item.Actions??[]).map((M,G)=>({item:M,index:G}));sx(N,e,i,r,O,R.ActionType.Annotation)}else O[R.SchemaTag.keys]=[],t.item[R.SchemaKeyName.semanticObject]&&O[R.SchemaTag.keys].push({name:R.SchemaKeyName.semanticObject,value:t.item[R.SchemaKeyName.semanticObject]}),O[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:l});u&&(i.definitions[b][R.SchemaTag.target]=u),O[R.SchemaTag.actionType]=n,O[R.SchemaTag.annotationPath]=`/${S}`,a.properties[p]={$ref:`${$}${b}`},a.properties[p][R.SchemaTag.propertyIndex]=s}o(vk,"addSingleHeaderActionV4");function mk(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[R.SchemaTag.isViewNode]=!0,s[R.SchemaTag.propertyIndex]=i,s[R.SchemaTag.keys]=[],s[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:e}),s[R.SchemaTag.actionType]=R.ActionType.Standard,n.properties[r]={$ref:`${$}${a}`},n.properties[r][R.SchemaTag.propertyIndex]=i,s}o(mk,"addStandardHeaderAction");function hk(e,t,n,i,r,a){let s=Wr(e.item),l=ai(e.item,n),u=ct(`${R.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Bi.UIAnnotationTerms.Identification}`,`/@${Bi.UIAnnotationTerms.Identification}`),g=i.definitions[u]={type:"object",$ref:`${$}${R.DefinitionName.FooterActionV4}`,description:l};g[R.SchemaTag.isViewNode]=!0,g[R.SchemaTag.actionType]=t,g[R.SchemaTag.propertyIndex]=a,g[R.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${$}${u}`}}o(hk,"addSingleFooterAction");function QY(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===Bi.UIAnnotationTypes.DataFieldForAction||i.$Type===Bi.UIAnnotationTypes.DataFieldForActionGroup||i.$Type===Bi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(XY.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(QY,"groupByCriticality");function qY(e,t,n,i,r,a){let s=e.findIndex(l=>{var u,p;return((p=(u=l.item.annotations)==null?void 0:u.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(vk(t,e[s],R.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(qY,"addCopyAction");function sx(e,t,n,i,r,a,s=0){let l=s;for(let u of e)vk(t,u,a,n,i,r,l),l++}o(sx,"addGroupedHeaderActions");function YY(e){let t="RelatedApps",n=e.properties[t]={$ref:`${$}${t}`,description:"Related Apps"};n[R.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[R.SchemaTag.artifactType]=R.ArtifactType.Manifest,n[R.SchemaTag.actionType]=R.ActionType.Standard,n[R.SchemaTag.isViewNode]=!0,n[R.SchemaTag.keys]=[{name:R.SchemaKeyName.action,value:t}]}o(YY,"addRelatedAppsButton");function yk(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[R.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`:e[R.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`}o(yk,"setAnnotationPathFromEntitySetOrEntityType");function zY(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?QY(n):{};if(sx(s,r.serviceAVT,t,e,i,R.ActionType.Criticality),r.entitySet){let p=d1(r.entitySet),g=g1(r.entitySet);if($m(r.entitySet)&&g){let m=mk("Edit",t,i,s.length);yk(m,r.entitySet,e,"UpdateHidden")}if(p){let m=mk("Delete",t,i,s.length+1);yk(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;qY(l,r.serviceAVT,t,e,i,u),sx(l,r.serviceAVT,t,e,i,R.ActionType.Annotation,u),bk(t,a,R.DefinitionName.CustomHeaderActionOP,r.logger),YY(i)}o(zY,"addHeaderActionCallBackV4");function JY(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===Bi.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?r.push({index:l,item:s}):a.push({index:l,item:s}))});for(let s=0;s<r.length;s++){let l=r[s];hk(l,R.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];hk(l,R.ActionType.Annotation,e,t,n,r.length+s)}}o(JY,"addFooterActionCallBackV4");function ZY(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Bi.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomColumnOP}<${n}>`:R.DefinitionName.CustomColumnOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${R.DefinitionName.CustomColumnOP}<${n}>`;yc(e,t,r,u,n,i);let p=a?n:R.DefinitionName.PositionOP;vt(R.DefinitionName.PositionOP,p,e,a);let g=a?`${R.DefinitionName.PositionOP}<${n}>`:R.DefinitionName.PositionOP;l.properties.position.$ref=`${$}${g}`,vc(e,n,t,g,i.replace(/::/g,"/"));let m=e.definitions[n];m&&gS(m,l)}o(ZY,"addCustomColumnsOP");function ez(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Bi.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomTableActionOP}<${n}>`:R.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description=cx;let u=`${R.DefinitionName.CustomTableActionOP}<${n}>`,p=`${R.DefinitionName.Actions}<${ct(n)}>`;Ea(e,t,r,u,p,i);let g=a?n:R.DefinitionName.CustomActionPositionOP;vt(R.DefinitionName.CustomActionPositionOP,g,e,a);let m=a?`${R.DefinitionName.CustomActionPositionOP}<${n}>`:R.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${$}${m}`,uo(e,p,m)}o(ez,"addTableCustomActionsOP");function bk(e,t,n,i){let r=e.definitions[n];r[R.SchemaTag.isViewNode]=!0,r.description=cx;let a=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.ObjectPageHeaderActions:R.DefinitionName.FooterActions;Nm(e,t,i,n,a);let s=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.CustomHeaderActionPositionOP:R.DefinitionName.CustomFooterActionPositionOP;vt(s,s,e,!1),r.properties.position.$ref=`${$}${s}`,uo(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${$}${n}`})}o(bk,"addHeaderFooterCustomActionsOP");function tz({tableType:e,facetKey:t,facet:n,appSchema:i,lineItemId:r,lineItemFacet:a}){let s=t.lastIndexOf("::"),l=s>-1?t.substring(s+2):t,u=vt(e,t,i);n.entityType&&l&&(u[R.SchemaTag.annotationPath]=`/${n.entityType.fullyQualifiedName}/${l}`),u.properties.columns={$ref:`${$}${r}`},u.properties.toolBar.$ref=oi(R.DefinitionName.ObjectPageToolBar,t),u.properties.quickVariantSelection.$ref=oi(R.DefinitionName.QuickVariantSelectionV4OP,t),u[R.SchemaTag.target]=a.namespace}o(tz,"addTableDefinition");function nz(e,t,n,i,r){let a=`${R.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[R.SchemaTag.isViewNode]=!0,s.description=cx;let l=`${R.DefinitionName.CustomFormActionOP}<${n}>`,u=`${R.DefinitionName.SectionActions}<${ct(n)}>`;Ea(e,t,r,l,u,i),vt(R.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${R.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${$}${p}`,uo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${$}${a}`})}o(nz,"addFormCustomActionsOP");function iz(e,t,n,i,r,a,s){let l=Ac(t);[R.DefinitionName.ObjectPageResponsiveTableV4,R.DefinitionName.ObjectPageAnalyticalTableV4,R.DefinitionName.ObjectPageGridTableV4,R.DefinitionName.ObjectPageTreeTableV4].forEach(m=>{tz({tableType:m,facetKey:t,facet:e,appSchema:n,lineItemId:l,lineItemFacet:i})});let p=vt(R.DefinitionName.QuickVariantSelectionV4OP,t,n);p.properties.paths.items.$ref=oi(R.DefinitionName.AnnotationPathAsObject,t),vt(R.DefinitionName.AnnotationPathAsObject,t,n),ss(e.entityType,n,`${R.DefinitionName.AnnotationPathAsObject}<${l}>`);let g={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};Tc(g,R.DefinitionName.ObjectPageTableColumn,R.DefinitionName.CustomColumnOP,R.DefinitionName.CustomTableActionOP),ZY(n,a,l,t,s),ez(n,a,l,t,s)}o(iz,"handleLineItem");function Sk(e,t,n,i,r,a,s){s&&fT(s,t,R.DefinitionName.ObjectPageSectionTableV4);let l=vt(R.DefinitionName.ObjectPageSectionTableV4,t,n);return Ta(e,l,Ac(t)),ns(e,l,Ac(t)),l[R.SchemaTag.annotationPath]=e.annotationPath,l[R.SchemaTag.target]=e.namespace,l.properties.table.anyOf=l.properties.table.anyOf.map(u=>{let p=u.$ref.split("/").pop();return{$ref:oi(p,t)}}),iz(e,t,n,i,r.serviceAVT,a,r.logger),l}o(Sk,"handleSectionTable");function rz(e,t,n,i,r,a,s){let l;a===R.SectionType.Section?l=R.DefinitionName.ObjectPageSectionForm:a===R.SectionType.HeaderSection&&(l=R.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:oi(l,n)};let u=vt(l,n,r);e.ID||(u.properties={}),Ta(e,u,n),ns(e,u,n),u[R.SchemaTag.annotationPath]=e.annotationPath,u[R.SchemaTag.target]=e.namespace,u[R.SchemaTag.isViewNode]=!0;let p=Hm(a,e,u,r,R.FioriElementsVersion.v4,n);if(e.base===R.FacetBase.Form){let g=Ac(n);vt(R.DefinitionName.CustomFormActionOP,p,r),nz(r,t,p,g,s)}}o(rz,"handleFormIdentification");function Tk(e,t,n,i,r){n.properties[t]={$ref:`${$}${r}`};let a=vt(R.DefinitionName.CommonHeaderFacetSettings,r,i,!1);Rl(e,a,t),a[R.SchemaTag.annotationPath]=e.annotationPath,a[R.SchemaTag.target]=e.namespace,a[R.SchemaTag.dataType]=Pc(e==null?void 0:e.target),a[R.SchemaTag.isViewNode]=!0}o(Tk,"handleHeaderFacet");function oz(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,u=ai(l,i),p=l.$Type.split(R.UIVOCABULARYDOT)[1],g=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:oi(R.DefinitionName.ObjectPageToolBarAction,g),description:u};m[R.SchemaTag.propertyIndex]=a,m[R.SchemaTag.annotationType]=l.$Type;let h=vt(R.DefinitionName.ObjectPageToolBarAction,ct(g),n);h[R.SchemaTag.annotationPath]=qm(l),h[R.SchemaTag.dataType]=Kr(l),h.properties={},a++})}return r}o(oz,"handleChartActions");function az(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[R.SchemaTag.annotationPath]=qm(e),r[R.SchemaTag.dataType]=Pc(e.target||e),r[R.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=oi(R.DefinitionName.ObjectPageToolBar,t);let a=vt(R.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=oi(R.DefinitionName.ObjectPageToolBarActions,t);let s=oz(e,t,n,i);return{chart:r,chartActions:s}}o(az,"handleChart");function Ek(e,t,n,i,r=e.entityType,a=!1,s){let l=a?R.DefinitionName.CommonHeaderFacetSettings:R.DefinitionName.ObjectPageSectionChart,u=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart;i&&fT(i,t,l);let p=Du(u,t),g=vt(l,p,n,!1);if(Rl(e,g,t),a)return delete g.properties.chart,{parentChartRef:g};g[R.SchemaTag.annotationPath]=qm(e),g.properties.chart.$ref=oi(R.DefinitionName.ObjectPageChart,t);let{chart:m,chartActions:h}=az(e.target||e,t,n,r);return m[R.SchemaTag.target]=s,{parentChartRef:g,chart:m,chartActions:h}}o(Ek,"handleSectionChart");function sz(e,t,n){let r=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${WS(r,n.serviceAVT)}`,l=s.split(R.UIVOCABULARYDOT)[1];return{key:s,type:l}}o(sz,"getVisualizationKeyAndType");function cz(e,t,n){var r,a;return(a=(r=e.entityType.navigationProperties.find(s=>s.name===t).targetType)==null?void 0:r.annotations)==null?void 0:a.UI[n]}o(cz,"getTargetFromNavigation");function lz(e,t,n){let i=e.target[R.FacetBase.PresentationVariant]?e.target[R.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let r=i[0].$target,a=r||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:u}=sz(!!r,a,n),p=r?a:cz(n,s,u),g=e.target[R.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:u,target:p,namespace:g,navigationPath:s}}o(lz,"getVisualizationProps");function fT(e,t,n,i){e.properties[t]={$ref:oi(n,i||t)}}o(fT,"addPropertyRef");function Ak(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}o(Ak,"getSectionPropertyRef");function fz(e,t,n,i,r,a,s){let{propertyKey:l,navigationKey:u}=Ak(t,r);fT(i,l,R.DefinitionName.ObjectPageSectionTableV4,u);let p=Sk(e,u,n,{target:r.target,entityType:e.entityType,annotationPath:`/${r.namespace}/${r.key}`,namespace:r.namespace},a,s);p[R.SchemaTag.annotationPath]=e.annotationPath,Rl(e,p,t),delete p[R.SchemaTag.isViewNode]}o(fz,"addPVLineItemSection");function uz(e,t,n,i,r,a=!1){let s=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:u}=Ak(t,r);fT(i,l,s,u);let{parentChartRef:p}=Ek(r.target,u,n,void 0,e.entityType,a,r.namespace);p[R.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(Ta(e,p,t),ID(e,p)):Rl(e,p,t)}o(uz,"addPVChartSection");function pz(e,t,n,i,r,a,s){if(!(e!=null&&e.target)){ae(a.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=lz(e,t,a),u=r===R.SectionType.HeaderSection;l&&(l.type.startsWith(R.Visualization.Chart)?uz(e,t,n,i,l,u):l.type.startsWith(R.Visualization.LineItem)&&fz(e,t,n,i,l,a,s))}o(pz,"handleSectionPresentationVariant");function dz(e){let t=e.facets||{};for(let n in t)if(t[n].base===R.FacetBase.CollectionFacet)return!0;return!1}o(dz,"containsCollectionFacet");function gz(e,t,n){var a;let i=`${R.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[R.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};gc(n,R.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(gz,"createCustomSubSectionReference");function mz(e,t,n,i){var a,s,l,u;let r=(u=(l=(s=(a=t.options)==null?void 0:a.settings)==null?void 0:s.content)==null?void 0:l.body)==null?void 0:u.sections;if(r)for(let p in r){let g=vt(n,p,e),m=vt(R.DefinitionName.ObjectPageCustomSectionActions,p,e),h=vt(R.DefinitionName.CustomSectionActionOP,p,e),S=`${R.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;g.properties.actions={$ref:`${$}${S}`};let b=`${R.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${$}${b}`},vt(R.DefinitionName.CustomSectionActionPositionOP,p,e);let O=`${R.DefinitionName.CustomSectionActionPositionOP}<${p}>`;h.properties.position.$ref=`${$}${O}`,h[R.SchemaTag.isViewNode]=!0,Ea(e,t,i,b,S,p),uo(e,S,O)}}o(mz,"applyCustomActionsToCustomSections");function lx(e,t,n,i,r,a,s){var m,h,S,b,O;let l=!1,u;a&&s?(l=!dz(a),u=gz(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${$}${u}`},t1(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&os(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[R.SchemaKeyName.id,R.SchemaKeyName.key],descriptionAsFallback:!0}),u.includes(R.DefinitionName.ObjectPageCustomSectionFragment)){let N=t.definitions[R.DefinitionName.ObjectPageCustomSectionActions];N.properties={},mz(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(R.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let N=(O=(b=(S=(h=(m=i.options)==null?void 0:m.settings)==null?void 0:h.content)==null?void 0:S.body)==null?void 0:b.sections)==null?void 0:O[s],M=N&&"subSections"in N?N.subSections:{};for(let G=g.oneOf.length-1;G>=0;G--){let j=g.oneOf[G];M[j.const]||(j.hidden=!0)}}}o(lx,"applyCustomSections");function hz(e,t,n,i,r,a,s,l){let u=l===0,p=i.properties[t]=wo(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[R.SchemaTag.annotationPath]=e.annotationPath,g[R.SchemaTag.target]=e.namespace,g[R.SchemaTag.keys]=[{name:R.SchemaKeyName.id,value:e.ID}],g[R.SchemaTag.isViewNode]=!0;let m=l+1;for(let h in e.facets)fx(a,e.facets,h,g,n,r,s,m);u&&lx(g,n,a,s,R.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(hz,"handleCollection");function fx(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${Ac(n)}>`;switch(u.base){case R.FacetBase.PresentationVariant:case R.FacetBase.SelectionPresentationVariant:{pz(u,n,r,i,a,e,s);break}case R.FacetBase.CollectionFacet:{hz(u,n,r,i,a,e,s,l);break}case R.FacetBase.LineItem:{if(a===R.SectionType.Section){let g=t[n];Sk(u,n,r,g,e,s,i)}break}case R.FacetBase.Form:case R.FacetBase.Identification:{rz(u,s,n,i,r,a,e.logger);break}case R.FacetBase.DataPoint:{Tk(u,n,i,r,p);break}case R.FacetBase.Chart:{a===R.SectionType.HeaderSection?Tk(u,n,i,r,p):a===R.SectionType.Section&&Ek(u,n,r,i);break}case R.FacetBase.Address:case R.FacetBase.Contact:{_u(u,n,i,r,a);break}default:i.properties[n]=wo(r,u,n)}}o(fx,"addSection");function yz(e,t,n){let i=ym(e.entityType,e.serviceAVT,R.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[R.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[R.DefinitionName.Sections];for(let a in i)fx(e,i,a,r,t,R.SectionType.Section,n);lx(r,t,e,n,R.DefinitionName.ObjectPageCustomSectionFragment)}o(yz,"addSections");function Tz(e,t,n,i){let r=hm(n,e.serviceAVT,R.FioriElementsVersion.v4,e.logger),a=t.definitions[R.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)fx(e,r,s,a,t,R.SectionType.HeaderSection,i);lx(a,t,e,i,R.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionAddress]}}o(Tz,"addHeaderSections");function vz(e,t,n){let i=e.entityType;Xm(t,i),Km(t,i,e,zY,n),i&&(t.definitions[R.DefinitionName.HeaderSections][R.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Bi.UIAnnotationTerms.HeaderFacets}`),Tz(e,t,i,n)}o(vz,"addHeader");function id(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${$}${R.DefinitionName.Sections}`},!e.manifest[R.ManifestSection.ui5].routing||!e.manifest[R.ManifestSection.ui5].routing.targets)return ae(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:R.MANIFESTPATH}}),r;let a=r.definitions[R.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:R.DefinitionName.Sections};if(a[R.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[R.ManifestSection.ui5].routing.targets;if(!s)return ae(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:R.MANIFESTPATH,range:[R.ManifestSection.generic]}}),r;let l=Lm(s,R.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(vz(e,r,l),a[R.SchemaTag.isViewNode]=!0,e.entityType&&(a[R.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${Bi.UIAnnotationTerms.Facets}`),gc(e.featureToggles,R.Features.BuildingBlocks)&&i){r.definitions[R.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{gk(r,i,e,l.id)}catch(u){ae(e.logger,{severity:R.LogSeverity.Error,message:u})}}yz(e,r,l),Wm(r,e,R.FioriElementsVersion.v4,JY),bk(r,l,R.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[R.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[R.DefinitionName.GenericColumnsOP],delete r.definitions[R.DefinitionName.GenericSections],delete r.definitions[R.DefinitionName.GenericSubSections],delete r.definitions[R.DefinitionName.ObjectPageChart],delete r.definitions[R.DefinitionName.ObjectPageSectionAddress],delete r.definitions[R.DefinitionName.ObjectPageSectionChart],delete r.definitions[R.DefinitionName.ObjectPageSectionContact],delete r.definitions[R.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[R.DefinitionName.ObjectPageSectionForm],delete r.definitions[R.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[R.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[R.DefinitionName.ObjectPageSubSections],delete r.definitions[R.DefinitionName.ObjectPageTable],delete r.definitions[R.DefinitionName.ObjectPageToolBar],delete r.definitions[R.DefinitionName.ObjectPageToolBarAction],delete r.definitions[R.DefinitionName.ObjectPageToolBarActions],delete r.definitions[R.DefinitionName.QuickVariantSelectionV4OP],ko(r,KY),r}o(id,"generateObjectPageSchemaV4");function ux(e,t){return JSON.parse(JSON.stringify(t))}o(ux,"generateFreestyleSchemaV4");var to=te(ce());function px(e,t,n,i,r,a,s,l,u){let p=Hr(n,r),{entitySet:g,entityType:m}=el(p,s,t,r),h={templateType:to.TemplateType.ListReportObjectPageV4,fioriElementsVersion:to.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return id(h,e,s,l)}o(px,"generateObjectPageInterfaceV4");function uT(e,t,n,i,r,a,s){qt();let l=Hr(i,r),{entitySet:u,entityType:p}=el(l,s,n,r),g={templateType:e,fioriElementsVersion:to.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===to.TemplateType.ListReportObjectPageV4?to.v4.FE_TEMPLATE_V4_LIST_REPORT:to.v4.FE_TEMPLATE_V4_ALP;return Op(g,t,m,s)}o(uT,"generateListReportInterfaceV4");function dx(e,t,n,i,r,a){let s=Hr(n,a),l={templateType:e,fioriElementsVersion:to.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return ux(l,t)}o(dx,"generateFreestyleInterfaceV4");function gx(e,t,n,i,r,a,s){let l={};if(gc(a,to.Features.BuildingBlocks)){let u=Hr(r,s),p=Uo(i||[],t,n,s);l=p!=null&&p.file.fileContent?Zc(e,p,u,s):{}}return l}o(gx,"generateFPMCustomPageInterfaceV4");var nl=require("@sap-ux/vocabularies-types/vocabularies/UI"),Ok=te(ce());var tl=te(ce());var Ck=new Map([[tl.PageTypeV2.ListReport,tl.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[tl.PageTypeV2.ObjectPage,tl.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),Pk=o((e,t)=>{let n=["controllerNames","controllerName"];for(let i of n)i in e?t[i]=e[i]:i in t&&delete t[i]},"applyControllerNameProperties"),xk=o(e=>{var t;for(let[n,i]of Ck)if(e!=null&&e.startsWith(i)){let r=n;if(e.includes("#")){let a=(t=e.split("#")[1])==null?void 0:t.split("::")[1];r+=`#${a}`}return r}},"getExtensionKeyForImport"),bz=o((e,t)=>{let n="";for(let[r,a]of Ck)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),Ik={manifest:{path:o(()=>`sap.ui5/extends/extensions/${tl.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=xk(n);i&&(t[i]={},Pk(e[n],t[i]))}return Object.keys(t).length?t:void 0},"import"),export:o((e,t,n)=>{var a;let i=(t==null?void 0:t.id)||"",r=((a=t==null?void 0:t.settings)==null?void 0:a[n])||{};for(let s in r){let l=bz(s,i);e[l]||(e[l]={}),Pk(r[s],e[l])}for(let s in e){let l=xk(s);l&&!r[l]&&delete e[s]}},"export")}};var ft=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),gT=o(e=>ft(e)+"/views/paths","getSettingsPathForLRViewsPaths"),mT=o(e=>ft(e)+"/content/header","getSettingsPathForHeaderOP"),Sz=o(e=>ft(e)+"/content/footer","getSettingsPathForFooterOP"),io=o(e=>ft(e)+"/controlConfiguration","getControlConfigurationPath"),hT=o((e,t,n)=>io(e)+`/@${nl.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),yT=o(e=>io(e)+`/@${nl.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Ms=o((e,t,n,i)=>io(e)+`/@${nl.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),mx=o((e,t,n,i)=>yT(e)+`/filterFields/${i}`,"getFilterFieldPath"),Hi=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?io(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),gi=o((e,t,n,i,r)=>r?Hi(e,t,n,i,r):io(e)+`/@${nl.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),TT=o((e,t,n,i,r)=>gi(e,t,n,i,r)+Ok.QUICKVARPATH,"getQuickVariantPath"),ar=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?io(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),mi=o((e,t,n,i,r)=>r?ar(e,t,n,i,r):io(e)+`/@${nl.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),ro=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?io(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Lr=o((e,t,n,i,r)=>r?ro(e,t,n,i,r):io(e)+`/@${nl.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Gi=o((e,t,n,i)=>io(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),Un=o((e,t,n,i)=>io(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),hi=o((e,t,n,i)=>mT(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),vT=o((e,t,n,i)=>ft(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),Ao=o((e,t,n,i)=>Sz(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),Lt=o((e,t,n)=>io(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),Of=o((e,t,n,i)=>{let r=ft(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),ks=o((e,t,n,i)=>ft(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Nr=o((e,t,n,i)=>{let r=ft(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),Rf=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=ft(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),dT=class dT{};o(dT,"ApplicationV4"),y([$t("settings")],dT.prototype,"settings",2);var pT=dT,no=class no{};o(no,"AppSettings"),y([T({manifest:{path:o(()=>"sap.app","path")}})],no.prototype,"title",2),y([T({manifest:{path:o(()=>"sap.app","path")}})],no.prototype,"description",2),y([T({manifest:{path:o(()=>"sap.fiori","path")}})],no.prototype,"cloudDevAdaptationStatus",2),y([T({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),x({since:"1.78.0"})],no.prototype,"flexibleColumnLayout",2),y([T({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"})],no.prototype,"flexEnabled",2),y([T({manifest:{path:o(()=>"sap.ui5","path")}})],no.prototype,"dependencies",2),y([T({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],no.prototype,"viewType",2),y([T({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],no.prototype,"path",2),y([T(Ik)],no.prototype,"controllerExtensions",2);var If=no;var ye=te(ce());var mI={};lc(mI,{ALPChart:()=>AC,ALPTable:()=>kf,ActionAfterExecutionConfiguration:()=>XC,ActionAfterExecutionConfigurationFooter:()=>wx,ActionAfterExecutionConfigurationForm:()=>jx,ActionAfterExecutionConfigurationOP:()=>Id,ActionAfterExecutionConfigurationObjectPageHeader:()=>Jx,ActionAfterExecutionConfigurationToolBarLR:()=>rI,Actions:()=>eI,AdditionalSemanticObject:()=>WC,CommonHeaderFacetSettings:()=>Xs,CommonViewSettings:()=>Mf,CustomActionPosition:()=>lI,CustomActionPositionOP:()=>jC,CustomFilterField:()=>vx,CustomFilterFieldPosition:()=>Tx,CustomFooterActionOP:()=>Ux,CustomFooterActionPositionOP:()=>kx,CustomFormActionOP:()=>Qx,CustomHeaderAction:()=>Px,CustomHeaderActionOP:()=>nC,CustomHeaderActionPosition:()=>sd,CustomHeaderActionPositionOP:()=>tC,CustomSectionActionOP:()=>Nx,CustomSectionActionPositionOP:()=>Lx,CustomTableAction:()=>fI,CustomTableActionOP:()=>$C,FilterBar:()=>hx,FlexSettings:()=>oC,FooterActionV4:()=>Mx,FormAction:()=>$x,Header:()=>Sx,HeaderActions:()=>bx,HeaderSections:()=>uC,LRChartView:()=>PC,LRTableView:()=>xC,MultiTableModeV4:()=>IC,ObjectPageAnalyticalTableV4:()=>Ed,ObjectPageCustomHeaderSectionFlexSettings:()=>xx,ObjectPageCustomHeaderSectionFragment:()=>Cx,ObjectPageCustomSectionActions:()=>Ix,ObjectPageCustomSectionFragment:()=>Nf,ObjectPageCustomSubSectionFragment:()=>Ox,ObjectPageFooter:()=>Dx,ObjectPageFooterActions:()=>Fx,ObjectPageForm:()=>Gx,ObjectPageFormActionGroup:()=>Bx,ObjectPageFormActions:()=>Hx,ObjectPageGridTableV4:()=>Ad,ObjectPageHeader:()=>Yx,ObjectPageHeaderAction:()=>Zx,ObjectPageHeaderActionGroup:()=>eC,ObjectPageHeaderActions:()=>qx,ObjectPageHeaderSectionAddress:()=>fC,ObjectPageHeaderSectionChart:()=>sC,ObjectPageHeaderSectionContact:()=>lC,ObjectPageHeaderSectionDataPoint:()=>cC,ObjectPageHeaderSectionForm:()=>aC,ObjectPageLayout:()=>TC,ObjectPageResponsiveTableV4:()=>Sd,ObjectPageTable:()=>bd,ObjectPageTableColumn:()=>Gf,ObjectPageTableColumnAction:()=>_C,ObjectPageTableRowCountable:()=>Bf,ObjectPageToolBarAction:()=>kC,ObjectPageToolBarActionGroup:()=>UC,ObjectPageToolBarActions:()=>BC,ObjectPageTreeTableV4:()=>Pd,PersonalizationType:()=>bC,PersonalizationTypeOP:()=>FC,Position:()=>YC,PositionOP:()=>VC,QuickVariantSelectionV4:()=>EC,QuickVariantSelectionV4OP:()=>DC,RelatedApps:()=>KC,Table:()=>OC,TableColumn:()=>MT,TableColumnAction:()=>QC,TableCreationModeOP:()=>NC,TableCustomColumn:()=>JC,TableCustomColumnOP:()=>wC,TableSettings:()=>CT,TableViewExtension:()=>CC,TableViewSettings:()=>hd,ToolBar:()=>tI,ToolBarAction:()=>oI,ToolBarActionGroup:()=>aI,ViewCustomActionPosition:()=>uI,ViewPersonalizationType:()=>SC,ViewPosition:()=>zC,ViewTableColumn:()=>kT,ViewTableColumnAction:()=>qC,ViewTableCustomAction:()=>pI,ViewTableCustomColumn:()=>ZC,ViewToolBarAction:()=>cI,ViewToolBarActionGroup:()=>sI,VisualFilter:()=>yx,checkViewOrder:()=>RC,deleteCreationModeProperty:()=>Td,deletePersonalizationProperty:()=>Co,exportCreationModeProperty:()=>yd,exportPersonalization:()=>LT,exportPersonalizationProperty:()=>xo});function Ez(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(Ez,"exportVisualFilterValueList");var Lf=class Lf{};o(Lf,"FilterBar"),y([T({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.99.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],Lf.prototype,"hideFilterBar",2),y([T({manifest:{path:yT}}),x({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Lf.prototype,"initialLayout",2),y([T({manifest:{path:yT}}),x({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Lf.prototype,"layout",2);var hx=Lf,rd=class rd{};o(rd,"VisualFilter"),y([T({manifest:{path:mx}}),x({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],rd.prototype,"availability",2),y([T({manifest:{path:mx,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:Ez,key:"visualFilter"}}),x({since:"1.93.0"})],rd.prototype,"visualFilterValueList",2);var yx=rd,od=class od{};o(od,"CustomFilterFieldPosition"),y([T({manifest:{path:o((t,n,i,r)=>Ms(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],od.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r)=>Ms(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],od.prototype,"placement",2);var Tx=od,Us=class Us{};o(Us,"CustomFilterField"),y([T({manifest:{path:Ms}}),x({since:"1.77.0"})],Us.prototype,"label",2),y([T({manifest:{path:Ms}}),x({since:"1.77.0"})],Us.prototype,"property",2),y([T({manifest:{path:Ms}}),x({since:"1.77.0"})],Us.prototype,"template",2),y([T({manifest:{path:Ms}}),x({since:"1.77.0"})],Us.prototype,"required",2),y([T({manifest:{path:Ms}}),x({since:"1.77.0"})],Us.prototype,"position",2);var vx=Us;var Ex=class Ex{};o(Ex,"HeaderActions");var bx=Ex,Ax=class Ax{};o(Ax,"Header");var Sx=Ax;var ad=class ad{};o(ad,"CustomHeaderActionPosition"),y([T({manifest:{path:o((t,n,i,r)=>hi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],ad.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r)=>hi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],ad.prototype,"placement",2);var sd=ad,js=class js{};o(js,"CustomHeaderAction"),y([T({manifest:{path:hi}}),x({since:"1.84.0"})],js.prototype,"text",2),y([T({manifest:{path:hi}}),x({since:"1.84.0"})],js.prototype,"position",2),y([T({manifest:{path:hi}}),x({since:"1.84.0"})],js.prototype,"press",2),y([T({manifest:{path:hi},generate:Yn}),x({since:"1.84.0"})],js.prototype,"visible",2),y([T({manifest:{path:hi},generate:Yn}),x({since:"1.84.0"})],js.prototype,"enabled",2);var Px=js;var bT=class bT{};o(bT,"ObjectPageCustomHeaderSectionFlexSettings"),y([T({manifest:{path:o((t,n,i)=>Nr(t,n,i,"flexSettings"),"path")}}),x({since:"1.81.0"})],bT.prototype,"designtime",2);var xx=bT,sr=class sr{};o(sr,"ObjectPageCustomHeaderSectionFragment"),y([T({manifest:{path:o((t,n,i)=>Nr(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],sr.prototype,"relatedFacet",2),y([T({manifest:{path:o((t,n,i)=>Nr(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],sr.prototype,"relativePosition",2),y([T({manifest:{path:Nr},generate:ri}),x({since:"1.84.0"})],sr.prototype,"visible",2),y([T({manifest:{path:Nr}}),x({since:"1.77.0"})],sr.prototype,"title",2),y([T({manifest:{path:Nr}}),x({since:"1.77.0"})],sr.prototype,"subTitle",2),y([T({manifest:{path:Nr,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],sr.prototype,"fragmentName",2),y([T({manifest:{path:Nr,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),x({since:"1.86.0"})],sr.prototype,"templateEdit",2),y([T({manifest:{path:Nr}}),x({since:"1.81.0"})],sr.prototype,"stashed",2),y([T({manifest:{path:Nr}}),x({since:"1.81.0"})],sr.prototype,"flexSettings",2),y([T({manifest:{path:Nr}}),x({since:"1.81.0"})],sr.prototype,"requestGroupId",2),y([T({manifest:{path:Nr,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],sr.prototype,"controls",2);var Cx=sr;var Rx=class Rx{};o(Rx,"ObjectPageCustomSectionActions");var Ix=Rx,$s=class $s{};o($s,"ObjectPageCustomSectionFragment"),y([T({manifest:{path:o((t,n,i)=>Of(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],$s.prototype,"relatedFacet",2),y([T({manifest:{path:o((t,n,i)=>Of(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],$s.prototype,"relativePosition",2),y([T({manifest:{path:Of}}),x({since:"1.77.0"})],$s.prototype,"title",2),y([T({manifest:{path:Of,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],$s.prototype,"fragmentName",2),y([T({manifest:{path:Of,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],$s.prototype,"controls",2);var Nf=$s,Bs=class Bs extends Nf{};o(Bs,"ObjectPageCustomSubSectionFragment"),y([T({manifest:{path:o((...t)=>`${Rf.apply({},t)}/position`,"path"),key:"anchor"}}),x({since:"1.77.0"})],Bs.prototype,"relatedFacet",2),y([T({manifest:{path:o((...t)=>`${Rf.apply({},t)}/position`,"path"),key:"placement"}}),x({since:"1.77.0"})],Bs.prototype,"relativePosition",2),y([T({manifest:{path:Rf}}),x({since:"1.77.0"})],Bs.prototype,"title",2),y([T({manifest:{path:Rf,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],Bs.prototype,"fragmentName",2),y([T({manifest:{path:Rf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],Bs.prototype,"controls",2);var Ox=Bs;var cd=class cd{};o(cd,"CustomSectionActionPositionOP"),y([T({manifest:{path:o((t,n,i,r)=>ks(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],cd.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r)=>ks(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],cd.prototype,"placement",2);var Lx=cd,Hs=class Hs{};o(Hs,"CustomSectionActionOP"),y([T({manifest:{path:ks}}),x({since:"1.84.0"})],Hs.prototype,"text",2),y([T({manifest:{path:ks}}),x({since:"1.84.0"})],Hs.prototype,"position",2),y([T({manifest:{path:ks}}),x({since:"1.84.0"})],Hs.prototype,"press",2),y([T({manifest:{path:ks},generate:ri}),x({since:"1.84.0"})],Hs.prototype,"visible",2),y([T({manifest:{path:ks},generate:ri}),x({since:"1.84.0"})],Hs.prototype,"enabled",2);var Nx=Hs;var _x=class _x{};o(_x,"ObjectPageFooterActions");var Fx=_x,Vx=class Vx{};o(Vx,"ObjectPageFooter");var Dx=Vx;var ld=class ld{};o(ld,"ActionAfterExecutionConfigurationFooter"),y([T({manifest:{path:o((t,n,i,r)=>Ao(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],ld.prototype,"navigateToInstance",2),y([T({manifest:{path:o((t,n,i,r)=>Ao(t,n,i,r)+"/afterExecution","path")}})],ld.prototype,"enableAutoScroll",2);var wx=ld,ST=class ST{};o(ST,"FooterActionV4"),y([T({manifest:{path:Ao}}),x({since:"1.84.0"})],ST.prototype,"afterExecution",2);var Mx=ST,fd=class fd{};o(fd,"CustomFooterActionPositionOP"),y([T({manifest:{path:o((t,n,i,r)=>Ao(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],fd.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r)=>Ao(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],fd.prototype,"placement",2);var kx=fd,Gs=class Gs{};o(Gs,"CustomFooterActionOP"),y([T({manifest:{path:Ao}}),x({since:"1.84.0"})],Gs.prototype,"text",2),y([T({manifest:{path:Ao}}),x({since:"1.84.0"})],Gs.prototype,"position",2),y([T({manifest:{path:Ao}}),x({since:"1.84.0"})],Gs.prototype,"press",2),y([T({manifest:{path:Ao},generate:ri}),x({since:"1.84.0"})],Gs.prototype,"visible",2),y([T({manifest:{path:Ao},generate:ri}),x({since:"1.84.0"})],Gs.prototype,"enabled",2);var Ux=Gs;var ud=class ud{};o(ud,"ActionAfterExecutionConfigurationForm"),y([T({manifest:{path:o((t,n,i,r)=>Un(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],ud.prototype,"navigateToInstance",2),y([T({manifest:{path:o((t,n,i,r)=>Un(t,n,i,r)+"/afterExecution","path")}})],ud.prototype,"enableAutoScroll",2);var jx=ud,ET=class ET{};o(ET,"FormAction"),y([T({manifest:{path:Un}}),x({since:"1.84.0"})],ET.prototype,"afterExecution",2);var $x=ET,Wx=class Wx{};o(Wx,"ObjectPageFormActionGroup");var Bx=Wx,Kx=class Kx{};o(Kx,"ObjectPageFormActions");var Hx=Kx,Xx=class Xx{};o(Xx,"ObjectPageForm");var Gx=Xx;var Ws=class Ws{};o(Ws,"CustomFormActionOP"),y([T({manifest:{path:Un}}),x({since:"1.84.0"})],Ws.prototype,"text",2),y([T({manifest:{path:Un}}),x({since:"1.84.0"})],Ws.prototype,"position",2),y([T({manifest:{path:Un}}),x({since:"1.84.0"})],Ws.prototype,"press",2),y([T({manifest:{path:Un},generate:ri}),x({since:"1.84.0"})],Ws.prototype,"visible",2),y([T({manifest:{path:Un},generate:ri}),x({since:"1.84.0"})],Ws.prototype,"enabled",2);var Qx=Ws;var zx=class zx{};o(zx,"ObjectPageHeaderActions");var qx=zx,Ff=class Ff{};o(Ff,"ObjectPageHeader"),y([T({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],Ff.prototype,"editableHeaderContent",2),y([T({manifest:{path:mT}}),x({since:"1.84.0"})],Ff.prototype,"visible",2),y([T({manifest:{path:mT}}),x({since:"1.84.0"})],Ff.prototype,"anchorBarVisible",2);var Yx=Ff;var pd=class pd{};o(pd,"ActionAfterExecutionConfigurationObjectPageHeader"),y([T({manifest:{path:o((t,n,i,r)=>hi(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],pd.prototype,"navigateToInstance",2),y([T({manifest:{path:o((t,n,i,r)=>hi(t,n,i,r)+"/afterExecution","path")}})],pd.prototype,"enableAutoScroll",2);var Jx=pd,AT=class AT{};o(AT,"ObjectPageHeaderAction"),y([T({manifest:{path:hi}}),x({since:"1.84.0"})],AT.prototype,"afterExecution",2);var Zx=AT,iC=class iC{};o(iC,"ObjectPageHeaderActionGroup");var eC=iC,rC=class rC extends sd{};o(rC,"CustomHeaderActionPositionOP");var tC=rC,Ks=class Ks{};o(Ks,"CustomHeaderActionOP"),y([T({manifest:{path:hi}}),x({since:"1.84.0"})],Ks.prototype,"text",2),y([T({manifest:{path:hi}}),x({since:"1.84.0"})],Ks.prototype,"position",2),y([T({manifest:{path:hi}}),x({since:"1.84.0"})],Ks.prototype,"press",2),y([T({manifest:{path:hi},generate:ri}),x({since:"1.84.0"})],Ks.prototype,"visible",2),y([T({manifest:{path:hi},generate:ri}),x({since:"1.84.0"})],Ks.prototype,"enabled",2);var nC=Ks;var PT=class PT{};o(PT,"FlexSettings"),y([T({manifest:{path:o((t,n,i)=>hT(t,n,i)+"/flexSettings","path")}}),x({since:"1.81.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],PT.prototype,"designtime",2);var oC=PT,dd=class dd{};o(dd,"CommonHeaderFacetSettings"),y([T({manifest:{path:hT}}),x({since:"1.81.0"})],dd.prototype,"stashed",2),y([T({manifest:{path:hT}}),x({since:"1.81.0"})],dd.prototype,"flexSettings",2);var Xs=dd,pC=class pC extends Xs{};o(pC,"ObjectPageHeaderSectionForm");var aC=pC,dC=class dC extends Xs{};o(dC,"ObjectPageHeaderSectionChart");var sC=dC,gC=class gC extends Xs{};o(gC,"ObjectPageHeaderSectionDataPoint");var cC=gC,mC=class mC extends Xs{};o(mC,"ObjectPageHeaderSectionContact");var lC=mC,hC=class hC extends Xs{};o(hC,"ObjectPageHeaderSectionAddress");var fC=hC,yC=class yC{};o(yC,"HeaderSections");var uC=yC;var xT=class xT{};o(xT,"ObjectPageLayout"),y([T({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],xT.prototype,"sectionLayout",2);var TC=xT;var NT=te(ce());var vC=te(ce());var Az=o((e,t)=>{let n=e;for(let i of t.split("/"))n[i]||(i==="paths"?n[i]=[]:n[i]={}),n=n[i];return n},"getManifestSectionByPathV4");function Po(e,t,n,i,r,a){let s=gT(e),l=Az(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[vC.SchemaTag.key]===(a==null?void 0:a.key)||g[vC.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(Po,"getSettingsPathForLRViewsPath");function Pz(e,t,n,i,r,a){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let u of l){let p=Number(u),g=e[u];t===g.key?s[n]=g:p>=i&&p<=r?s[Math.max(0,p+a)]=g:s[u]=g}return s}o(Pz,"fillNewlyOrderedViews");function RC(e,t){let n=t.key,i=e.findIndex(a=>(a==null?void 0:a.key)===n),r=t.index;if(i>-1&&i!==r){let a=r>i?-1:1,s=Math.min(Number(i),r),l=Math.max(Number(i),r),u=Pz(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(RC,"checkViewOrder");function LT(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(LT,"exportPersonalization");function xo(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(xo,"exportPersonalizationProperty");function Co(e,t,n,i){typeof e.personalization=="object"&&e.personalization[i]!==void 0?(delete e.personalization[i],Object.keys(e.personalization).length===0&&delete e.personalization):typeof e.personalization=="string"&&e.personalization!==void 0&&delete e.personalization}o(Co,"deletePersonalizationProperty");function LC(e,t,n,i,r,a){var l;let s;if(!t||Object.keys(t).length===0){let u=e;Object.keys(u).forEach(p=>{u[p]&&u[p].key===r&&(e[Number(p)]={},s=p)})}if(s){let u=(l=a.table)==null?void 0:l.views;for(let p in u)u[p].index>s&&u[p].index--}}o(LC,"deleteView");function yd(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(yd,"exportCreationModeProperty");function Td(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0?delete e.creationMode[t]:typeof e.creationMode=="string"&&e.creationMode!==void 0&&delete e.creationMode}o(Td,"deleteCreationModeProperty");function Rk(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(Rk,"importPersonalization");function Lk(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(Lk,"determineIndexOfView");var Df=class Df{};o(Df,"PersonalizationType"),y([T({manifest:{path:gi,export:xo,delete:Co}})],Df.prototype,"column",2),y([T({manifest:{path:gi,export:xo,delete:Co}})],Df.prototype,"sort",2),y([T({manifest:{path:gi,export:xo,delete:Co}})],Df.prototype,"filter",2);var bC=Df,_f=class _f{};o(_f,"ViewPersonalizationType"),y([T({manifest:{path:Hi,export:xo,delete:Co}})],_f.prototype,"column",2),y([T({manifest:{path:Hi,export:xo,delete:Co}})],_f.prototype,"sort",2),y([T({manifest:{path:gi,export:xo,delete:Co}})],_f.prototype,"filter",2);var SC=_f,Vf=class Vf{};o(Vf,"QuickVariantSelectionV4"),y([T({manifest:{path:TT}})],Vf.prototype,"paths",2),y([T({manifest:{path:TT}})],Vf.prototype,"hideTableTitle",2),y([T({manifest:{path:TT}})],Vf.prototype,"showCounts",2);var EC=Vf,cr=class cr{};o(cr,"TableSettings"),y([T({manifest:{path:gi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],cr.prototype,"type",2),y([T({manifest:{path:gi,import:Rk,export:LT}}),x({since:"1.86.0"})],cr.prototype,"personalization",2),y([T({manifest:{path:gi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],cr.prototype,"selectionMode",2),y([T({manifest:{path:gi}}),x({since:"1.84.0"})],cr.prototype,"selectAll",2),y([T({manifest:{path:gi}}),x({since:"1.84.0"})],cr.prototype,"selectionLimit",2),y([T({manifest:{path:gi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],cr.prototype,"enableExport",2),y([T({manifest:{path:gi}}),x({since:"1.84.0"})],cr.prototype,"quickVariantSelection",2),y([T({manifest:{path:gi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],cr.prototype,"condensedTableLayout",2),y([T({manifest:{path:gi}}),x({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],cr.prototype,"hierarchyQualifier",2),y([T({manifest:{path:gi}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],cr.prototype,"widthIncludingColumnHeader",2),y([T({manifest:{path:gi}}),x({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],cr.prototype,"disableCopyToClipboard",2);var CT=cr,IT=class IT{};o(IT,"ALPChart"),y([T({manifest:{path:o(t=>ft(t)+"/views/paths/0/primary/0","path"),delete:LC}})],IT.prototype,"annotationPath",2);var AC=IT,il=class il{};o(il,"CommonViewSettings"),y([T({manifest:{path:Po,delete:mc}})],il.prototype,"key",2),y([T({manifest:{path:gT,import:Lk,export:o((t,n)=>{RC(t,n)},"export"),delete:LC}})],il.prototype,"index",2),y([T({manifest:{path:Po,delete:mc}})],il.prototype,"annotationPath",2),y([T({manifest:{path:Po}})],il.prototype,"entitySet",2);var Mf=il,lr=class lr extends Mf{};o(lr,"TableViewSettings"),y([T({manifest:{path:Hi}}),x({since:"1.84.0"})],lr.prototype,"type",2),y([T({manifest:{path:Hi,import:Rk}}),x({since:"1.86.0"})],lr.prototype,"personalization",2),y([T({manifest:{path:Hi}}),x({since:"1.84.0"})],lr.prototype,"selectionMode",2),y([T({manifest:{path:Hi}}),x({since:"1.84.0"})],lr.prototype,"selectAll",2),y([T({manifest:{path:Hi}}),x({since:"1.84.0"})],lr.prototype,"selectionLimit",2),y([T({manifest:{path:Hi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],lr.prototype,"enableExport",2),y([T({manifest:{path:Hi}}),x({since:"1.84.0"})],lr.prototype,"quickVariantSelection",2),y([T({manifest:{path:Hi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],lr.prototype,"condensedTableLayout",2),y([T({manifest:{path:Hi}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],lr.prototype,"widthIncludingColumnHeader",2),y([T({manifest:{path:Hi}}),x({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],lr.prototype,"hierarchyQualifier",2),y([T({manifest:{path:Hi}}),x({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],lr.prototype,"disableCopyToClipboard",2);var hd=lr;function xz(e){return hd}o(xz,"getTableViewSettings");var gd=class gd extends hd{};o(gd,"ALPTable"),y([T({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:mc}})],gd.prototype,"annotationPath",2),y([T({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],gd.prototype,"initialLoad",2);var kf=gd,OT=class OT extends Mf{};o(OT,"LRChartView"),y([T({manifest:{path:Po},generate:Yn})],OT.prototype,"visible",2);var PC=OT,wf=class wf extends xz(Mf){};o(wf,"LRTableView"),y([T({manifest:{path:Po}})],wf.prototype,"keepPreviousPersonalization",2),y([T({manifest:{path:Po}})],wf.prototype,"entitySet",2),y([T({manifest:{path:Po},generate:Yn})],wf.prototype,"visible",2);var xC=wf,Qs=class Qs{};o(Qs,"TableViewExtension"),y([T({manifest:{path:Po}})],Qs.prototype,"key",2),y([T({manifest:{path:gT,import:Lk,export:o((t,n)=>{RC(t,n)},"export"),delete:LC}})],Qs.prototype,"index",2),y([T({manifest:{path:Po}})],Qs.prototype,"label",2),y([T({manifest:{path:Po}})],Qs.prototype,"template",2),y([T({manifest:{path:Po},generate:Yn})],Qs.prototype,"visible",2);var CC=Qs,RT=class RT{};o(RT,"MultiTableModeV4"),y([T({manifest:{path:o(t=>ft(t)+"/views","path")}})],RT.prototype,"showCounts",2);var IC=RT,md=class md extends CT{};o(md,"Table"),y([T({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:mc}})],md.prototype,"annotationPath",2),y([T({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],md.prototype,"initialLoad",2);var OC=md;var Uf=class Uf{};o(Uf,"TableCreationModeOP"),y([T({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:o((t,n,i)=>{yd(t,n,i)},"export"),delete:o((t,n,i,r)=>{Td(t,r)},"delete")}})],Uf.prototype,"name",2),y([T({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:o((t,n,i)=>{yd(t,n,i)},"export"),delete:o((t,n,i,r)=>{Td(t,r)},"delete")}})],Uf.prototype,"createAtEnd",2),y([T({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:o((t,n,i)=>{yd(t,n,i)},"export"),delete:o((t,n,i,r)=>{Td(t,r)},"delete")}})],Uf.prototype,"inlineCreationRowsHiddenInEditMode",2);var NC=Uf,jf=class jf{};o(jf,"PersonalizationTypeOP"),y([T({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:xo,delete:Co}})],jf.prototype,"column",2),y([T({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:xo,delete:Co}})],jf.prototype,"sort",2),y([T({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:xo,delete:Co}})],jf.prototype,"filter",2);var FC=jf,$f=class $f{};o($f,"QuickVariantSelectionV4OP"),y([T({manifest:{path:o((t,n,i)=>Lt(t,n,i)+NT.QUICKVARPATH,"path")}})],$f.prototype,"paths",2),y([T({manifest:{path:o((t,n,i)=>Lt(t,n,i)+NT.QUICKVARPATH,"path")}})],$f.prototype,"hideTableTitle",2),y([T({manifest:{path:o((t,n,i)=>Lt(t,n,i)+NT.QUICKVARPATH,"path")}})],$f.prototype,"showCounts",2);var DC=$f,yi=class yi{};o(yi,"ObjectPageTable"),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],yi.prototype,"type",2),y([T({manifest:{path:Lt,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),x({since:"1.84.0"})],yi.prototype,"creationMode",2),y([T({manifest:{path:Lt,import:o(t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}},"import"),export:LT}}),x({since:"1.86.0"})],yi.prototype,"personalization",2),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],yi.prototype,"selectionMode",2),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],yi.prototype,"selectAll",2),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],yi.prototype,"selectionLimit",2),y([T({manifest:{path:Lt}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],yi.prototype,"enableExport",2),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],yi.prototype,"quickVariantSelection",2),y([T({manifest:{path:Lt}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],yi.prototype,"condensedTableLayout",2),y([T({manifest:{path:Lt}}),x({since:"1.86.0"})],yi.prototype,"enableFullScreen",2),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],yi.prototype,"enablePaste",2),y([T({manifest:{path:Lt}}),x({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],yi.prototype,"hierarchyQualifier",2),y([T({manifest:{path:Lt}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],yi.prototype,"widthIncludingColumnHeader",2),y([T({manifest:{path:Lt}}),x({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],yi.prototype,"disableCopyToClipboard",2);var bd=yi,vd=class vd extends bd{};o(vd,"ObjectPageTableRowCountable"),y([T({manifest:{path:Lt}}),x({since:"1.120.0"})],vd.prototype,"rowCountMode",2),y([T({manifest:{path:Lt}}),x({since:"1.120.0"})],vd.prototype,"rowCount",2);var Bf=vd,FT=class FT extends bd{};o(FT,"ObjectPageResponsiveTableV4"),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],FT.prototype,"type",2);var Sd=FT,DT=class DT extends Bf{};o(DT,"ObjectPageAnalyticalTableV4"),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],DT.prototype,"type",2);var Ed=DT,_T=class _T extends Bf{};o(_T,"ObjectPageGridTableV4"),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],_T.prototype,"type",2);var Ad=_T,VT=class VT extends Bf{};o(VT,"ObjectPageTreeTableV4"),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],VT.prototype,"type",2);var Pd=VT;var xd=class xd{};o(xd,"ActionAfterExecutionConfigurationOP"),y([T({manifest:{path:o((t,n,i,r)=>Gi(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],xd.prototype,"navigateToInstance",2),y([T({manifest:{path:o((t,n,i,r)=>Gi(t,n,i,r)+"/afterExecution","path")}})],xd.prototype,"enableAutoScroll",2);var Id=xd,Hf=class Hf{};o(Hf,"ObjectPageTableColumn"),y([T({manifest:{path:Gi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Hf.prototype,"width",2),y([T({manifest:{path:Gi}}),x({since:"1.85.0"})],Hf.prototype,"availability",2),y([T({manifest:{path:Gi}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Hf.prototype,"widthIncludingColumnHeader",2);var Gf=Hf,MC=class MC extends Gf{};o(MC,"ObjectPageTableColumnAction");var _C=MC,Cd=class Cd{};o(Cd,"PositionOP"),y([T({manifest:{path:o((t,n,i,r)=>Gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Cd.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r)=>Gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Cd.prototype,"placement",2);var VC=Cd,Zo=class Zo{};o(Zo,"TableCustomColumnOP"),y([T({manifest:{path:Gi}}),x({since:"1.84.0"})],Zo.prototype,"position",2),y([T({manifest:{path:Gi}}),x({since:"1.84.0"})],Zo.prototype,"header",2),y([T({manifest:{path:Gi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Zo.prototype,"width",2),y([T({manifest:{path:Gi}}),x({since:"1.84.0"})],Zo.prototype,"template",2),y([T({manifest:{path:Gi}}),x({since:"1.86.0"})],Zo.prototype,"horizontalAlign",2),y([T({manifest:{path:Gi}}),x({since:"1.84.0"})],Zo.prototype,"availability",2),y([T({manifest:{path:Gi}}),x({since:"1.85.0"})],Zo.prototype,"properties",2);var wC=Zo;var wT=class wT{};o(wT,"ObjectPageToolBarAction"),y([T({manifest:{path:Un}})],wT.prototype,"enableOnSelect",2);var kC=wT,HC=class HC{};o(HC,"ObjectPageToolBarActionGroup");var UC=HC,Od=class Od{};o(Od,"CustomActionPositionOP"),y([T({manifest:{path:o((t,n,i,r)=>Un(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Od.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r)=>Un(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Od.prototype,"placement",2);var jC=Od,Ua=class Ua{};o(Ua,"CustomTableActionOP"),y([T({manifest:{path:Un}}),x({since:"1.84.0"})],Ua.prototype,"text",2),y([T({manifest:{path:Un}}),x({since:"1.84.0"})],Ua.prototype,"position",2),y([T({manifest:{path:Un}}),x({since:"1.84.0"})],Ua.prototype,"press",2),y([T({manifest:{path:Un}}),x({since:"1.84.0"})],Ua.prototype,"requiresSelection",2),y([T({manifest:{path:Un},generate:ri}),x({since:"1.84.0"})],Ua.prototype,"visible",2),y([T({manifest:{path:Un},generate:ri}),x({since:"1.84.0"})],Ua.prototype,"enabled",2);var $C=Ua,GC=class GC{};o(GC,"ObjectPageToolBarActions");var BC=GC;var Wf=class Wf{};o(Wf,"AdditionalSemanticObject"),y([T({manifest:{path:vT}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.108.0"})],Wf.prototype,"allowedActions",2),y([T({manifest:{path:vT}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Wf.prototype,"unavailableActions",2),y([T({manifest:{path:vT}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Wf.prototype,"mapping",2);var WC=Wf,Rd=class Rd{};o(Rd,"RelatedApps"),y([T({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],Rd.prototype,"showRelatedApps",2),y([T({manifest:{path:ft}})],Rd.prototype,"additionalSemanticObjects",2);var KC=Rd;var Ld=class Ld{};o(Ld,"ActionAfterExecutionConfiguration"),y([T({manifest:{path:o((t,n,i,r,a)=>mi(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Ld.prototype,"navigateToInstance",2),y([T({manifest:{path:o((t,n,i,r,a)=>mi(t,n,i,r,a)+"/afterExecution","path")}})],Ld.prototype,"enableAutoScroll",2);var XC=Ld,Kf=class Kf{};o(Kf,"TableColumn"),y([T({manifest:{path:mi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Kf.prototype,"width",2),y([T({manifest:{path:mi}}),x({since:"1.85.0"})],Kf.prototype,"availability",2),y([T({manifest:{path:mi}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Kf.prototype,"widthIncludingColumnHeader",2);var MT=Kf,Xf=class Xf{};o(Xf,"ViewTableColumn"),y([T({manifest:{path:ar}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Xf.prototype,"width",2),y([T({manifest:{path:ar}}),x({since:"1.85.0"})],Xf.prototype,"availability",2),y([T({manifest:{path:mi}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Xf.prototype,"widthIncludingColumnHeader",2);var kT=Xf,UT=class UT extends MT{};o(UT,"TableColumnAction"),y([T({manifest:{path:mi}}),x({since:"1.84.0"})],UT.prototype,"afterExecution",2);var QC=UT,jT=class jT extends kT{};o(jT,"ViewTableColumnAction"),y([T({manifest:{path:ar}}),x({since:"1.84.0"})],jT.prototype,"afterExecution",2);var qC=jT,Nd=class Nd{};o(Nd,"Position"),y([T({manifest:{path:o((t,n,i,r,a)=>mi(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Nd.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r,a)=>mi(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Nd.prototype,"placement",2);var YC=Nd,Fd=class Fd{};o(Fd,"ViewPosition"),y([T({manifest:{path:o((t,n,i,r,a)=>ar(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Fd.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r,a)=>ar(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Fd.prototype,"placement",2);var zC=Fd,ea=class ea{};o(ea,"TableCustomColumn"),y([T({manifest:{path:mi}}),x({since:"1.84.0"})],ea.prototype,"position",2),y([T({manifest:{path:mi}}),x({since:"1.84.0"})],ea.prototype,"header",2),y([T({manifest:{path:mi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ea.prototype,"width",2),y([T({manifest:{path:mi}}),x({since:"1.84.0"})],ea.prototype,"template",2),y([T({manifest:{path:mi}}),x({since:"1.86.0"})],ea.prototype,"horizontalAlign",2),y([T({manifest:{path:mi}}),x({since:"1.84.0"})],ea.prototype,"availability",2),y([T({manifest:{path:mi}}),x({since:"1.85.0"})],ea.prototype,"properties",2);var JC=ea,ta=class ta{};o(ta,"ViewTableCustomColumn"),y([T({manifest:{path:ar}}),x({since:"1.84.0"})],ta.prototype,"position",2),y([T({manifest:{path:ar}}),x({since:"1.84.0"})],ta.prototype,"header",2),y([T({manifest:{path:ar}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ta.prototype,"width",2),y([T({manifest:{path:ar}}),x({since:"1.84.0"})],ta.prototype,"template",2),y([T({manifest:{path:ar}}),x({since:"1.86.0"})],ta.prototype,"horizontalAlign",2),y([T({manifest:{path:ar}}),x({since:"1.84.0"})],ta.prototype,"availability",2),y([T({manifest:{path:ar}}),x({since:"1.85.0"})],ta.prototype,"properties",2);var ZC=ta;var nI=class nI{};o(nI,"Actions");var eI=nI,iI=class iI{};o(iI,"ToolBar");var tI=iI;var Dd=class Dd{};o(Dd,"ActionAfterExecutionConfigurationToolBarLR"),y([T({manifest:{path:o((t,n,i,r,a)=>Lr(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Dd.prototype,"navigateToInstance",2),y([T({manifest:{path:o((t,n,i,r,a)=>Lr(t,n,i,r,a)+"/afterExecution","path")}})],Dd.prototype,"enableAutoScroll",2);var rI=Dd,_d=class _d{};o(_d,"ToolBarAction"),y([T({manifest:{path:Lr}})],_d.prototype,"enableOnSelect",2),y([T({manifest:{path:Lr}})],_d.prototype,"afterExecution",2);var oI=_d,dI=class dI{};o(dI,"ToolBarActionGroup");var aI=dI,gI=class gI{};o(gI,"ViewToolBarActionGroup");var sI=gI,Vd=class Vd{};o(Vd,"ViewToolBarAction"),y([T({manifest:{path:ro}})],Vd.prototype,"enableOnSelect",2),y([T({manifest:{path:ro}})],Vd.prototype,"afterExecution",2);var cI=Vd,wd=class wd{};o(wd,"CustomActionPosition"),y([T({manifest:{path:o((t,n,i,r,a)=>Lr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],wd.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r,a)=>Lr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],wd.prototype,"placement",2);var lI=wd,ja=class ja{};o(ja,"CustomTableAction"),y([T({manifest:{path:Lr}}),x({since:"1.84.0"})],ja.prototype,"text",2),y([T({manifest:{path:Lr}}),x({since:"1.84.0"})],ja.prototype,"position",2),y([T({manifest:{path:Lr}}),x({since:"1.84.0"})],ja.prototype,"press",2),y([T({manifest:{path:Lr}}),x({since:"1.84.0"})],ja.prototype,"requiresSelection",2),y([T({manifest:{path:Lr},generate:Yn}),x({since:"1.84.0"})],ja.prototype,"visible",2),y([T({manifest:{path:Lr},generate:Yn}),x({since:"1.84.0"})],ja.prototype,"enabled",2);var fI=ja,Md=class Md{};o(Md,"ViewCustomActionPosition"),y([T({manifest:{path:o((t,n,i,r,a)=>ro(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Md.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r,a)=>ro(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Md.prototype,"placement",2);var uI=Md,$a=class $a{};o($a,"ViewTableCustomAction"),y([T({manifest:{path:ro}}),x({since:"1.84.0"})],$a.prototype,"text",2),y([T({manifest:{path:ro}}),x({since:"1.84.0"})],$a.prototype,"position",2),y([T({manifest:{path:ro}}),x({since:"1.84.0"})],$a.prototype,"press",2),y([T({manifest:{path:ro}}),x({since:"1.84.0"})],$a.prototype,"requiresSelection",2),y([T({manifest:{path:ro},generate:Yn}),x({since:"1.84.0"})],$a.prototype,"visible",2),y([T({manifest:{path:ro},generate:Yn}),x({since:"1.84.0"})],$a.prototype,"enabled",2);var pI=$a;var vI={};lc(vI,{FreestylePage:()=>yI,ListReport:()=>Fr,ObjectPage:()=>Io});function Cz(e){var t,n,i,r;((n=(t=e.paths)==null?void 0:t[0])!=null&&n.primary||(r=(i=e.paths)==null?void 0:i[0])!=null&&r.secondary)&&Object.keys(e).forEach(a=>delete e[a])}o(Cz,"deleteAllALPViews");function Iz(){}o(Iz,"doNotExport");function Oz(){}o(Oz,"doNotImport");var Fr=class{};o(Fr,"ListReport"),y([T({manifest:{path:o(t=>ft(t)+"/views","path"),import:Oz,export:Iz,delete:Cz}})],Fr.prototype,"chart",2),y([T({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],Fr.prototype,"variantManagement",2),y([T({manifest:{path:o(t=>ft(t)+"/views/paths/[]/0","path")}}),fe("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Fr.prototype,"defaultPath",2),y([T({manifest:{path:o(t=>ft(t),"path")}})],Fr.prototype,"defaultTemplateAnnotationPath",2),y([$t("header")],Fr.prototype,"header",2),y([$t("fe::FilterBar")],Fr.prototype,"filterBar",2),Fr=y([nr({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Fr);var hI=te(ce());var Io=class{};o(Io,"ObjectPage"),y([$t("header")],Io.prototype,"header",2),y([$t("layout")],Io.prototype,"layout",2),y([T({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],Io.prototype,"variantManagement",2),y([$t("sections")],Io.prototype,"sections",2),Io=y([nr({id:`${hI.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:hI.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],Io);var TI=class TI{};o(TI,"FreestylePage");var yI=TI;var Ba=te(ce());var Rz={ALPTableView:kf},Lz={ALPTableView:kf},Nz={[Ba.DefinitionName.ObjectPageResponsiveTableV4]:Sd,[Ba.DefinitionName.ObjectPageAnalyticalTableV4]:Ed,[Ba.DefinitionName.ObjectPageGridTableV4]:Ad,[Ba.DefinitionName.ObjectPageTreeTableV4]:Pd,TableColumn:Gf,ObjectPageCustomSectionView:Nf,ActionAfterExecutionConfiguration:Id},Fz={[Ba.PageTypeV4.AnalyticalListPage]:Rz,[Ba.PageTypeV4.ListReport]:Lz,[Ba.PageTypeV4.ObjectPage]:Nz},bI=class bI extends af{constructor(){super(mI,vI,Fz)}};o(bI,"MetadataInstanceFactoryV4");var Ha=bI;var SI=require("@sap-ux/vocabularies-types/vocabularies/UI");function EI(e,t,n,i,r,a,s){var g,m,h,S,b,O;let l=t.jsonSchema.definitions,u=a&&a!==`@${SI.UIAnnotationTerms.LineItem}`?a:ye.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let N in p.properties){let G=l[u].properties[N].$ref.split($)[1].split("<")[0];e.columns[N]=n.createInstance(i,G);let j=s||a;Ot(e.columns[N],t.manifest,l[G],r,[N,j],j,t.logger),Gr(e.columns,N)}Gr(e,"columns")}else{let N=(O=(b=(S=(h=(m=(g=t.manifest["sap.ui5"])==null?void 0:g.routing)==null?void 0:m.targets)==null?void 0:h[r])==null?void 0:S.options)==null?void 0:b.settings)==null?void 0:O.views;(!N||N.paths.length<1)&&ae(t.logger,{severity:ye.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}}o(EI,"transferColumns");function Dz(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[ye.DefinitionName.VisualFilters];if(t.visualFilters={},typeof s=="object"){for(let l in s.properties){let u=s.properties[l];if(typeof u=="object"&&u.$ref){let p=on(u.$ref),g=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,g),Ot(t.visualFilters[l],e.manifest,a[p],r,[l])}}Gr(t,"visualFilters")}}o(Dz,"importVisualFilters");function _z(e,t,n,i,r,a=ye.DefinitionName.LineItems,s){var g;let l=e.jsonSchema.definitions,u=s;!u&&[ye.DefinitionName.LineItems,`${ye.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(u=`@${SI.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${ye.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let m in p.properties){let h=p.properties[m];if(typeof h=="object"&&h.$ref){let b={actionPropertyDefinition:(g=p==null?void 0:p.properties)==null?void 0:g[m],appSchema:e.jsonSchema,factory:n,actionsInConfig:t.toolBar.actions,actionKey:m,manifest:e.manifest,routingId:r,targetAnnotation:u};Dl(b)}}}o(_z,"importActions");function AI(e,t,n,i,r,a=ye.DefinitionName.LineItems,s){let l=n.createInstance(i,ye.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,Ot(u.toolBar,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ToolBarLR],r,[]),_z(e,u,n,i,r,a,s),Gr(u.toolBar,"actions"),Gr(u,"toolBar")}o(AI,"transferToolBar");function Nk(e,t,n){var s;let i=(s=e[t])==null?void 0:s[ye.SchemaTag.annotationPath],r=n?`/${n}/`:"",a=i==null?void 0:i.substr(i.lastIndexOf("@"));return a=r?`${r}${a}`:a,a}o(Nk,"determineTargetAnnotationOfView");function Vz(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,ye.DefinitionName.ALPChart);let s=a[ye.DefinitionName.ALPChart],l=s[ye.SchemaTag.annotationPath];Ot(t.chart,e.manifest,s,r,[s[ye.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,ye.DefinitionName.ToolBar,{actions:{}}),Ot(t.chart.toolBar,e.manifest,a[ye.DefinitionName.ViewChartToolBar],r,[]);let u=a[ye.DefinitionName.ALPTable][ye.SchemaTag.annotationPath];if(u){let p=a[ye.DefinitionName.ALPTable],g=t.table=n.createInstance(i,ye.DefinitionName.ALPTable);AI(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));Ot(g,e.manifest,p,r,[p[ye.SchemaTag.key],m]),EI(g,e,n,i,r,void 0,m)}}o(Vz,"importALPViews");function wz(e){let t;return e.indexOf(ye.DefinitionName.LRTableView)>-1?t=ye.DefinitionName.LRTableView:e.indexOf(ye.DefinitionName.LRChartView)>-1?t=ye.DefinitionName.LRChartView:e===ye.DefinitionName.TableViewExtension&&(t=ye.DefinitionName.TableViewExtension),t}o(wz,"getViewTypeByDefinition");function Mz(e,t,n,i,r){let a=t.table.views=n.createInstance(i,ye.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;Ot(a,e.manifest,s[ye.DefinitionName.MultiTableModeV4],r,[]);let l=s[ye.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][ye.SchemaTag.propertyIndex]-g[1][ye.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split($)[1],m=wz(g),h=a[p[0]]=n.createInstance(i,m),S=s[g].entitySet,b=Nk(s,g,S);if(Ot(h,e.manifest,s[g],r,[p[0],b]),m===ye.DefinitionName.LRTableView){let O=`${ye.DefinitionName.LineItemsOfView}::${p[0]}`;AI(e,h,n,i,r,O,b),EI(h,e,n,i,r,O,b)}Object.keys(h).length===0&&delete a[p[0]]}Gr(t.table,"views")}o(Mz,"importLRViews");function kz(e,t,n,i,r){let a=ye.DefinitionName.HeaderActions,s=ye.PropertyName.header,l=e.definitions[a];if(typeof l=="object"){t[s].actions={};for(let u in l.properties){let p=l.properties[u];if(typeof p=="object"&&p.$ref){let g=on(p.$ref),m=e.definitions[g],h=on(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(ye.PageTypeV4.ObjectPage,h),Ot(t[s].actions[u],i,e.definitions[h],r,[u.replace("/","??")]),Gr(t.header,"actions"),Gr(t,"header")}}}}o(kz,"transferHeaderActions");function Uz(e,t,n,i){let r=e.jsonSchema.definitions,a={};for(let s of[ye.DefinitionName.SelectionFields,ye.DefinitionName.CompactFilters]){let l=r[s];typeof l=="object"&&l.properties&&Object.keys(l.properties).length&&(a=l.properties)}for(let s in a){let l=a[s];if(typeof l!="object"||l.$ref!==$+ye.DefinitionName.CustomFilterField)continue;let u=n.createInstance(ye.PageTypeV4.ListReport,ye.DefinitionName.CustomFilterField),p=l.$ref.split($)[1];Ot(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}o(Uz,"importCustomFilterFields");function jz(e,t,n,i,r,a){if(Ot(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,ye.DefinitionName.Header),Ot(t.header,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.Header],r,[]),kz(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,ye.DefinitionName.FilterBar),Ot(t.filterBar,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.FilterBar],r,[]),Dz(e,t.filterBar,n,i,r),Uz(e,t.filterBar,n,r),a===ye.SchemaType.ListReport){let s=ye.DefinitionName.Table,l=e.jsonSchema.definitions[s],u;l.$ref&&(s=l.$ref.split($)[1],l=e.jsonSchema.definitions[s],u=l.properties.columns.$ref.split($)[1]),t.table=n.createInstance(i,ye.DefinitionName.Table);let p=Nk(e.jsonSchema.definitions,s);Ot(t.table,e.manifest,l,r,[s,p]),AI(e,t,n,i,r,u),EI(t.table,e,n,i,r,u,p),Mz(e,t,n,i,r)}else a===ye.SchemaType.AnalyticalListPage&&Vz(e,t,n,i,r)}o(jz,"addSettings");function rl(e,t){if(qt(),!e.jsonSchema)return;if(!e.manifest[ye.ManifestSection.ui5]||!e.manifest[ye.ManifestSection.ui5].routing){ae(e.logger,{severity:ye.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5]}});return}let n=e.manifest[ye.ManifestSection.ui5].routing.targets;if(!n){ae(e.logger,{severity:ye.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5]}});return}let i=new Ha,r=i.createPageInstance(ye.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=Jb(s);if("name"in s&&(l===ye.PageTypeV4.ListReport||l===ye.PageTypeV4.AnalyticalListPage)){jz(e,r,i,ye.PageTypeV4.ListReport,a,t);break}}return r}o(rl,"createListReportConfig");var ve=te(ce()),qs=require("@sap-ux/vocabularies-types/vocabularies/UI");function $z(e,t){var i;let n="boolean";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?e==="true"||e==="false":!1}o($z,"isBoolean");function Bz(e,t){var i;let n="number";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?!isNaN(parseFloat(e.toString())):!1}o(Bz,"isNumber");function Hz(e,t){let n=e.toString();return $z(n,t)?n==="true":Bz(n,t)?parseFloat(n):e}o(Hz,"convertValue");function Gz(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=Hz(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(Gz,"importProperty");function Fk(e,t,n){let i,r=xf(e.file,!1,n);if(r){let a=sT(r);i={},Jc({fullSchema:t,schema:t,element:a,contextPath:[],config:i},Gz)}return i}o(Fk,"convertXmlFileToConfig");function $T(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=Uo(t||[],r,n,a),l;return s&&(l=Fk(s,i,e.logger)),l}o($T,"createCustomPageConfig");function kd(e,t){var h;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=Cf(t),u=(h=r.definitions)==null?void 0:h[l];if(!r||!u)return;let p=bc(i,a),g=Sc(n||[],p,i,"fragment",t),m;if(g){let S={...u,definitions:r.definitions};m=Fk(g,S,s)}return m}o(kd,"createCustomFragmentConfig");function PI(e,t=!1,n){var r,a,s;let i=t?(r=e.split("<")[1])==null?void 0:r.slice(0,-1):e;if(n){let l=i.split(`@${n}`);return`${(a=l[0])==null?void 0:a.replace(/::/g,"/")}@${n}${(s=l[1])==null?void 0:s.replace(/::/g,"#")}`}return`${e==null?void 0:e.replace(/::/g,"/").replace(/::/g,"#")}`}o(PI,"getManifestId");function Ud(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(Ud,"getDefinitionId");function Wz(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[Ud(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(ve.DefinitionName.CustomColumnOP)>-1?s=ve.DefinitionName.CustomColumnOP:s=ve.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(ve.PageTypeV4.ObjectPage,s);Ot(g,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],a),Object.keys(g).length>0&&(n[i].table.columns[u]=g)}}}o(Wz,"fillTableColumnsInConfig");function Vk(e,t,n,i,r,a){var s;if(typeof t=="object")for(let l in t.properties){let u=t.properties[l];if(typeof u=="object"&&u.$ref){let p=on(u.$ref),g=(s=t==null?void 0:t.properties)==null?void 0:s[l],m=p.split("<")[0],h;m.includes(ve.DefinitionName.CustomSectionActionOP)?h=i.actions:h=i[n].table.toolBar.actions;let S={actionPropertyDefinition:g,appSchema:e.jsonSchema,factory:r,actionsInConfig:h,actionKey:l,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Dl(S)}}}o(Vk,"fillSectionActionsInConfig");function Kz(e,t,n,i,r,a){if(t.actions){let s=i[n].form.actions={},u=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageSectionForm}<${Ud(a)}>`].properties.form.$ref.split($)[1],m=e.jsonSchema.definitions[u].properties.actions.$ref.split($)[1],h=e.jsonSchema.definitions[m];for(let S in h.properties){let b=h.properties[S],O=on(b.$ref),N=e.jsonSchema.definitions[O];if(N.annotationType===qs.UIAnnotationTypes.DataFieldForAction||N.annotationType===qs.UIAnnotationTypes.DataFieldForActionGroup||N.description==="Custom Action"){let M={actionPropertyDefinition:b,appSchema:e.jsonSchema,factory:r,actionsInConfig:s,actionKey:S,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Dl(M)}}}}o(Kz,"fillFormActionsInConfig");function Xz(e){return new Map([["AnalyticalTable",ve.DefinitionName.ObjectPageAnalyticalTableV4],["GridTable",ve.DefinitionName.ObjectPageGridTableV4],["ResponsiveTable",ve.DefinitionName.ObjectPageResponsiveTableV4],["TreeTable",ve.DefinitionName.ObjectPageTreeTableV4]]).get(e)??ve.DefinitionName.ObjectPageResponsiveTableV4}o(Xz,"getTableDefinitionNameByType");function Dk(e,t,n,i,r,a){var u;let s=a||PI(i,!1,qs.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){let{tableSettings:p={}}=l,g=p.type,m=Xz(g);n[i]={},n[i].table=r.createInstance(ve.PageTypeV4.ObjectPage,m);let h=`${m}<${a?Ud(a):i.replace("#","::")}>`;Ot(n[i].table,e.manifest,e.jsonSchema.definitions[h],e.routingId,[],s),n[i].table.toolBar=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ToolBar,{actions:{}});let S=e.jsonSchema.definitions[`${ve.DefinitionName.Actions}<${Ud(s)}>`];Vk(e,S,i,n,r,s),Wz(e,l,n,i,r,s)}}o(Dk,"fillTableInConfig");function Qz(e,t,n,i,r){var l;let a=PI(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageForm,{actions:{}}),Kz(e,s,i,n,r,a))}o(Qz,"fillFormInConfig");function qz(e,t,n,i,r,a){let s=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split($)[1];if(Ot(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let u=kd(e,s.fragmentName);s.controls=u}n[i]=s}o(qz,"fillCustomSubSectionInConfig");function wk(e,t,n,i,r,a){var s,l,u,p,g;for(let m in t){let h=t[m],S=m;if(m.includes(qs.UIAnnotationTerms.PresentationVariant)&&((s=h.$ref)!=null&&s.startsWith($+ve.DefinitionName.ObjectPageSectionTableV4))){let b=h.$ref.split($)[1];S=PI(b,!0,qs.UIAnnotationTerms.LineItem),Dk(e,n,i,m,r,S)}else(l=h.$ref)!=null&&l.startsWith($+ve.DefinitionName.ObjectPageSectionTableV4)?Dk(e,n,i,m,r):h.properties&&h.properties.subsections?(i[m]={subsections:{}},wk(e,h.properties.subsections.properties,n,i[m].subsections,r,m)):(u=h.$ref)!=null&&u.startsWith($+ve.DefinitionName.ObjectPageSectionForm)&&((p=h.$ref)!=null&&p.includes(`@${qs.UIAnnotationTerms.FieldGroup}::`))?Qz(e,n,i,m,r):(g=h.$ref)!=null&&g.startsWith($+ve.DefinitionName.ObjectPageCustomSubSectionFragment)&&qz(e,h,i,m,r,a)}}o(wk,"fillSectionsInConfig");function Yz(e,t,n,i){var a,s;let r=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(r)for(let l in r){let u=r[l];if("subSections"in u)continue;let p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionFragment);if(Ot(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),u.actions){p.actions=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageCustomSectionActions}<${Ud(l)}>`];Vk(e,m,l,p,i,l)}let g=u.template;if(g){let m=kd(e,g);p.controls=m}n.sections[l]=p}}o(Yz,"fillCustomSectionsInConfig");function zz(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,a=r&&"facets"in r?r.facets:void 0;if(a)for(let l in a){let u=a[l],p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomHeaderSectionFragment);Ot(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let h=kd(e,g);p.controls=h}let m=u.templateEdit;if(m){let h=kd(e,m);p.controlsEditMode=h}n.header.sections[l]=p}}o(zz,"fillCustomHeaderSectionsInConfig");function Jz(e,t,n,i,r){var s,l;let a=e.definitions[ve.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let u in a.properties){let p=a.properties[u],g,m=(s=a.properties[u].$ref)==null?void 0:s.split($)[1];m&&(p=e.definitions[m],g=m.split("<")[0]),(g==null?void 0:g.includes(ve.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=n.createInstance(ve.PageTypeV4.ObjectPage,g),Ot(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(ve.FACETTITLEPREFIX)[1]))}}}o(Jz,"fillHeaderFacets");function _k(e,t,n,i,r,a,s){let l=e.definitions[a];if(typeof l=="object"){let u=t[s].actions={};for(let p in l.properties){let g=l.properties[p];typeof g=="object"&&g.$ref&&Dl({actionPropertyDefinition:g,appSchema:e,factory:n,actionsInConfig:u,actionKey:p,manifest:i,routingId:r})}}}o(_k,"fillHeaderFooterActions");function Zz(e,t,n){var a,s;let i=n.createPageInstance(ve.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageHeader),Ot(i.header,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageFooter),Ot(i.footer,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageLayout),Ot(i.layout,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageLayout],e.routingId,[]),Ot(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[ve.DefinitionName.Sections]&&(i.sections={},wk(e,e.jsonSchema.definitions[ve.DefinitionName.Sections].properties,r,i.sections,n)),Yz(e,r,i,n),Jz(e.jsonSchema,i,n,e.manifest,e.routingId),zz(e,r,i,n),_k(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.ObjectPageHeaderActions,ve.PropertyName.header),_k(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.FooterActions,ve.PropertyName.footer)),i}o(Zz,"fillObjectPageConfig");function BT(e){if(qt(),!e.manifest[ve.ManifestSection.ui5]||!e.manifest[ve.ManifestSection.ui5].routing){ae(e.logger,{severity:ve.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5]}});return}let t=e.manifest[ve.ManifestSection.ui5].routing.targets;if(!t){ae(e.logger,{severity:ve.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){ae(e.logger,{severity:ve.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let i=new Ha;return Zz(e,n,i)}o(BT,"createObjectPageConfigV4");var Ge=te(ce());var xI=[],HT={};function eJ(e,t){let n=e.target,i=t.target,r=Array.isArray(n),a=Array.isArray(i);return r&&a?n.length-i.length:!r&&!a?0:r?1:-1}o(eJ,"routesSorter");function CI(e,t=[]){if(!Array.isArray(e))return e;let n=e;for(let i of t)n=n.filter(r=>!i.includes(r));return n[0]}o(CI,"resolveTarget");function tJ(e){let t={};e=e.concat().sort(eJ);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=CI(i.target,n),n.push(i.target)):a=i.target;for(let s of r){let l=s.split("(")[0];t[a]=t[a]?`${t[a]}.${l}`:l}}return t}o(tJ,"populateAssociations");function nJ(e,t,n){let i;return e.name?e.name===Ge.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ge.PageTypeV4.FPMCustomPage:e.name.endsWith(Ge.PageTypeV4.ListReport)||e.name.endsWith(Ge.PageTypeV4.AnalyticalListPage)?i=Ge.PageTypeV4.ListReport:e.name.endsWith(Ge.PageTypeV4.ObjectPage)?i=Ge.PageTypeV4.ObjectPage:i=Ge.PageTypeV4.CustomPage:"viewId"in e?i=Ge.PageTypeV4.CustomPage:(ae(t,{severity:Ge.LogSeverity.Error,message:Q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ge.MANIFESTPATH,range:[`${Ge.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ge.ViewTypes&&"viewName"in e&&(i=Ge.PageTypeV4.CustomPage)),i}o(nJ,"determinePageType");function iJ(e){let t=e.target.viewId||e.target.id,n=_t(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Ge.PageTypeV4.CustomPage)return;let i=Object.keys(e.schemas).find(r=>r.includes(n))||Object.keys(e.schemas).find(r=>r.includes(n.slice(0,-1)))||Object.keys(e.schemas).find(r=>r.includes(e.page.pageType));if(i){if(e.page.pageType===Ge.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=BT(r)}else if(e.page.pageType===Ge.PageTypeV4.FPMCustomPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger,routingId:e.id,fragments:e.extensionFiles.fragments,views:e.extensionFiles.views};e.page.config=$T(r)}else if(e.templateType===Ge.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=rl(r,Ge.SchemaType.ListReport)}else if(e.templateType===Ge.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=rl(r,Ge.SchemaType.AnalyticalListPage)}else if(e.templateType===Ge.TemplateType.FreestylePageV4&&e.page.pageType===Ge.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=Ou(e.target)===Ge.TemplateType.AnalyticalListPageV4?Ge.SchemaType.AnalyticalListPage:Ge.SchemaType.ListReport;e.page.config=rl(r,s)}}}o(iJ,"convertSettingsToConfig");function rJ(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");xI.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");xI.push(t[t.length-1])}}o(rJ,"updateUnhandledControllers");function oJ(e,t){if(e.options){e.options.settings.variantManagement&&(t.variantManagement=e.options.settings.variantManagement),t.navigation={};for(let n in e.options.settings.navigation){let i=e.options.settings.navigation[n];t.navigation[n]=i.detail}}}o(oJ,"setVariantManagmentAndNavigation");function aJ(e,t,n){var i,r;if(e.options){t.entitySet=(i=e.options.settings)==null?void 0:i.entitySet,t.contextPath=(r=e.options.settings)==null?void 0:r.contextPath;let{entitySet:a,entityType:s}=el(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(a==null?void 0:a.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}o(aJ,"setEntitySetEntityTypeContextPath");function sJ(e,t,n){var i,r;if("viewId"in e)t.view={id:e.viewId,name:e.viewName,...e.viewType&&{viewType:e.viewType},...e.viewPath&&{path:e.viewPath},...e.path&&{path:e.path}};else if([Ge.PageTypeV4.CustomPage,Ge.PageTypeV4.FPMCustomPage].includes(n)){let a=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName,s=e.name;!a&&n===Ge.PageTypeV4.CustomPage&&(a=s,s=void 0),t.view={...e.id&&{id:e.id},...a&&{name:a},...s&&{template:s},...e.viewType&&{viewType:e.viewType}}}}o(sJ,"evaluateCustomPageSettings");function cJ(e,t,n,i){var p;let r=e.targets[t],a=nJ(r,i.logger,t),s={pageType:a};if(aJ(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),HT[t]&&HT[t].indexOf(".")!==-1){let g=HT[t].split(".");s.navigationProperty=g[g.length-1]}sJ(r,s,a),oJ(r,s),rJ(r);let l=e.routes.find(g=>(g==null?void 0:g.target)&&g.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),!((p=s.view)!=null&&p.template)&&"name"in r&&r.name&&(s.template=r.name),n[t]=s;let u={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};iJ(u)}o(cJ,"getSinglePageAndConfig");function Mk(e){let t={},n=e.manifest[Ge.ManifestSection.ui5].routing;if(!n||!n.routes){let i=Q.t("NOROUTING");return ae(e.logger,{severity:Ge.LogSeverity.Error,message:i,location:{path:Ge.MANIFESTPATH,range:[Ge.ManifestSection.ui5]}}),t}HT=tJ(n.routes||[]);for(let i in n.targets)cJ(n,i,t,e);return t}o(Mk,"getPagesAndConfigs");function kk(e){let t;if(e&&e.routes&&e.routes.length>0){for(let n of e.routes)if(n.pattern.startsWith(":?query:")){t=n;break}else if(n.pattern.indexOf("/")===-1){t=n;continue}return CI(t?t.target:e.routes[0].target)}else return}o(kk,"getHome");function Uk(e){let t=e==null?void 0:e.config;return t?{...t.flexibleColumnLayout&&{flexibleColumnLayout:t.flexibleColumnLayout},...t.viewType&&{viewType:t.viewType},...t.viewPath&&{path:t.viewPath},...t.path&&{path:t.path}}:{}}o(Uk,"getSettings");function qf(e,t){let n=e[Ge.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];Am(t,a.name)&&(i[r]=a)}return i}o(qf,"getPages");var II=class II extends fs{constructor(t){qt();let n=new If,i=_t(Ge.SchemaType.Application),r=t.appSchemas[i.filename];Ot(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,kk(t.manifest[Ge.ManifestSection.ui5].routing),Mk(t),{...Uk(t.manifest[Ge.ManifestSection.ui5].routing),...n}),this.unhandledControllers=xI}};o(II,"V4AppProvider");var Qf=II;var jk=require("fs"),ol=require("path"),$k=te(ce()),jd=te(ce());var Bk=o((e,t,n=__dirname)=>{let i;switch(t){case jd.SchemaType.Application:{i=`${jd.SchemaType.Application}${e.toUpperCase()}.json`;break}case jd.SchemaType.FPMCustomPage:{i=`${jd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,ol.join)(n,"schemas",e,i);if(n.endsWith((0,ol.join)("specification","packages","specification")))return(0,ol.join)(n,"dist","schemas",e,i);if(n.endsWith((0,ol.join)("src","specification")))return(0,ol.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,ol.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),lJ=o(async e=>new Promise((t,n)=>{(0,jk.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),GT=o(async(e,t)=>{try{let n=Bk(e||$k.FioriElementsVersion.v4,t,__dirname);return await lJ(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function fJ(e,t){let n={},i=[];switch(i=[pe.SchemaType.Application],e){case pe.TemplateType.ListReportObjectPageV4:case pe.TemplateType.AnalyticalListPageV4:i.push(pe.SchemaType.ListReport,pe.SchemaType.ObjectPage,pe.SchemaType.FPMCustomPage);break;case pe.TemplateType.FreestylePageV4:i.push(pe.SchemaType.FreestylePage),t===pe.FioriElementsVersion.v4&&i.push(pe.SchemaType.ListReport,pe.SchemaType.ObjectPage,pe.SchemaType.FPMCustomPage);break;case pe.TemplateType.ListReportObjectPageV2:i.push(pe.SchemaType.ListReport,pe.SchemaType.ObjectPage);break;case pe.TemplateType.AnalyticalListPageV2:i.push(pe.SchemaType.AnalyticalListPage,pe.SchemaType.ObjectPage);break;case pe.TemplateType.OverviewPageV2:i.push(pe.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=_t(r);n[a.filename]=await GT(t,r)}return n}o(fJ,"getGenericSchemas");function Gk(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ii(pe.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(Gk,"getAnnotationsForUi");function $d(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o($d,"getEntitySetByEntitySetName");function uJ(e,t){var r;let n=e.target.targetType,i=e.objectPath[1];for(let a=2;a<e.objectPath.length;a++){let s=e.objectPath[a];if(i&&s._type==="NavigationProperty"){let l=s.containsTarget?`${s.name}/${s.partner}`:s.name,u=(r=i.navigationPropertyBinding)==null?void 0:r[l];i=t.entitySets.find(p=>p.name===(u==null?void 0:u.name))}}return{entityType:n,entitySet:i}}o(uJ,"resolveNavigationProperty");function el(e,t,n,i){var l,u,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),a,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(a=(u=r.target)==null?void 0:u.entityType,s=r==null?void 0:r.target):((p=r==null?void 0:r.target)==null?void 0:p._type)==="NavigationProperty"?{entityType:a,entitySet:s}=uJ(r,e):ae(i,{severity:pe.LogSeverity.Error,message:Q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:pe.MANIFESTPATH}}),n&&!a&&ae(i,{severity:pe.LogSeverity.Error,message:Q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(el,"getEntityTypeEntitySetFromContextPath");function Hk(e,t,n){let i=Ip(e.manifest[pe.ManifestSection.generic].pages,pe.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=$d(a,e.serviceAVT);s||ae(e.logger,{severity:pe.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=_t(pe.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),u=_t(pe.SchemaType.ObjectPage);n[l.filename]=Bd(e,t[u.filename])}}o(Hk,"generateObjectPageSchemasV2");function pJ(e,t,n){var l,u;let i=qf(e.manifest,pe.v4.FE_TEMPLATE_V4_LIST_REPORT),r=qf(e.manifest,pe.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let g=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(u=a[p].options.settings)==null?void 0:u.contextPath,{entitySet:h,entityType:S}=el(s,m,g,e.logger);e.entityType=S,e.entitySet=h;let b=_t(pe.SchemaType.ListReport,p),O=_t(pe.SchemaType.ListReport);e.templateType===pe.TemplateType.FreestylePageV4&&(e.templateType=Ou(a[p])),n[b.filename]=Op(e,t[O.filename],a[p].name,m)}}o(pJ,"generateListReportSchemasV4");function dJ(e,t,n){var r;let i=Ip(e.manifest[pe.ManifestSection.generic].pages,pe.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=$d(s,e.serviceAVT);let l=_t(pe.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=_t(pe.SchemaType.ListReport);t[l.filename]=Cp(e,n[u.filename])}}o(dJ,"generateAppSchemaV2LR");function gJ(e,t,n){var a,s;let i=qf(e.manifest,pe.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let u=(a=i[l].options.settings)==null?void 0:a.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:g,entitySet:m}=el(r,p,u);e.entitySet=m,e.entityType=g;let h=_t(pe.SchemaType.ObjectPage,l),S=_t(pe.SchemaType.ObjectPage),b=_t(pe.SchemaType.FPMCustomPage);n[h.filename]=id(e,t[S.filename],p,t[b.filename])}}o(gJ,"generateObjectPageSchemasV4");function mJ(e,t,n,i){var a;let r={};if(i===pe.TemplateType.ListReportObjectPageV2&&n)dJ(e,r,t),Hk(e,t,r);else if(i===pe.TemplateType.AnalyticalListPageV2&&n){let s=Ip(e.manifest[pe.ManifestSection.generic].pages,pe.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let u=s[l].entitySet;e.entitySet=$d(u,e.serviceAVT);let p=_t(pe.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||u),g=_t(pe.SchemaType.AnalyticalListPage);r[p.filename]=Hd(e,t[g.filename])}Hk(e,t,r)}else if(i===pe.TemplateType.OverviewPageV2){let s=_t(pe.SchemaType.OverviewPage),l=_t(pe.SchemaType.OverviewPage);r[s.filename]=Gd(t[l.filename],e.manifest)}return{...t,...r}}o(mJ,"generateAppSchemasV2");function hJ(e,t,n){if(!gc(e.featureToggles,pe.Features.BuildingBlocks))return;let i=qf(e.manifest,pe.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=Uo(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let u=_t(pe.SchemaType.FPMCustomPage,void 0,l),p=_t(pe.SchemaType.FPMCustomPage);n[u.filename]=Zc(t[p.filename],s,e.serviceAVT,e.logger)}}}o(hJ,"generateCustomPageSchemasV4");function yJ(e,t,n){let i={};return n&&(pJ(e,t,i),gJ(e,t,i),hJ(e,t,i)),{...t,...i}}o(yJ,"generateAppSchemasV4");async function Wk(e,t,n){let i=await fJ(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===pe.FioriElementsVersion.v4?yJ(e,i,t):mJ(e,i,t,n)}o(Wk,"generateAppSchemas");function TJ(e){let t,n=[];switch(e.templateType){case pe.TemplateType.ListReportObjectPageV2:case pe.TemplateType.AnalyticalListPageV2:t=new dy(e);break;case pe.TemplateType.AnalyticalListPageV4:case pe.TemplateType.ListReportObjectPageV4:case pe.TemplateType.FreestylePageV4:t=new Qf(e);break;case pe.TemplateType.OverviewPageV2:t=new my(e);break;default:t=new Qf(e);break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in r)n.push({dataSourceUri:a,fileContent:JSON.stringify(r[a],null,4)})}return n}o(TJ,"importConfigs");function Kk(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===pe.SchemaType.Application?r=`${pe.DirName.Schemas}/${pe.FileName.App[0].toUpperCase()}${pe.FileName.App.slice(1)}`:r=`${pe.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o(Kk,"getFileList");async function OI(e){var b,O;qt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new Vu().doesUi5VersionFitDistTags((O=(b=t["sap.ui5"])==null?void 0:b.dependencies)==null?void 0:O.minUI5Version,i);let u=iS(t),p=Hr(n,i),g=Gk(p),m=dc(t,u,i),S=await Wk({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return Kk(S)}o(OI,"importProjectSchema");async function RI(e){var G,j;qt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new Vu().doesUi5VersionFitDistTags((j=(G=t["sap.ui5"])==null?void 0:G.dependencies)==null?void 0:j.minUI5Version,i);let p=iS(t),g=CD(t),m=Hr(n,i),h=dc(t,p,i),S={templateType:h,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},b=Gk(m),O=await Wk(S,b,h),M=TJ({manifest:t,flexChanges:s,appSchemas:O,templateType:h,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return Kk(O,M)}o(RI,"importProjectSchemaAndConfig");var vJ=["header","sections","footer"];function bJ(e,t,n,i){t.properties[n][se.SchemaTag.artifactType]=se.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=se.ControlType.Section;break;case"ObjectPageSubSectionV2":r=se.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=se.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=se.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=se.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=se.ControlType.ObjectPageHeaderSection;break}r&&(mt(e,t,n),t.properties[n][se.SchemaTag.controlType]=r)}o(bJ,"addFlexChangeForSection");function SJ(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Oo.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=Gm(a,r.serviceAVT);if(!l)return;let p=a.Label||s,g=`ObjectPageHeaderAction<${ct(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${Oo.UIAnnotationTerms.Identification}`,`/@${Oo.UIAnnotationTerms.Identification}`);t.definitions[g][se.SchemaTag.annotationPath]=`/${m}`,t.definitions[g][se.SchemaTag.actionType]=se.ActionType.Annotation,t.definitions[g].description=p,t.definitions[g][se.SchemaTag.keys]=[{name:se.SchemaKeyName.action,value:s}],u&&(t.definitions[g][se.SchemaTag.target]=u),i.properties[l]={$ref:`${$}${g}`}}})}o(SJ,"addHeaderActionCallBackV2");function EJ(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Oo.UIAnnotationTypes.DataFieldForAction){let a=Wr(r).split("::").splice(1).join("::"),s=ai(r,e),l=ct(`${se.DefinitionName.ObjectPageFooterAction}<${a}>`),u=r.fullyQualifiedName.replace(`@${Oo.UIAnnotationTerms.Identification}`,`/@${Oo.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[se.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${u}`}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${$}${l}`}}})}o(EJ,"addFooterActionCallBackV2");function AJ(e,t,n,i,r,a,s,l){let u,p;if(a.ID&&a.Label?u=a.ID+a.Label.replace(/\s+/g,""):a.ID?u=a.ID:a.Label&&(u=a.Label.replace(/\s+/g,"")),u?p=`${se.DefinitionName.CustomColumns}<${n}><${s}><${u}>`:p=`${se.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let g=`${se.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[g]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let m=[],h=r==null?void 0:r.entityTypes.find(b=>b.name===i),S=$c(t[se.ManifestSection.generic].pages,n,m);return Vl(e,h,S,t,l,p,g,a.ID),p}o(AJ,"ensureCustomColumnDefinitionExists");function Kd(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&bJ(e,t,"visible",n)}o(Kd,"addAppSchemaDefinition");function PJ(e,t,n){e.properties[t]={$ref:`${$}${n}`}}o(PJ,"addSectionReference");function Wd(e,t,n,i){let r=ct(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=$+t,i.definitions[r].properties.toolBar.$ref=`${$}ObjectPageToolBar<${t}>`,i.definitions[r][se.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=se.FACETTITLEPREFIX+n.ID,i.definitions[r][se.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=se.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${$}QuickVariantSelectionOP<${t}>`,i.definitions[`QuickVariantSelectionOP<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariantSelectionOP)),i.definitions[`QuickVariant<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariant)),i.definitions[`QuickVariantSelectionOP<${t}>`].properties.variants.patternProperties["^[0-9]+$"].$ref=`${$}QuickVariant<${t}>`,ss(n.entityType,i,`QuickVariant<${t}>`)}o(Wd,"addTableDefinition");function xJ(e,t,n,i,r,a){if(i.base!==se.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=wo(n,i,t);let u=n.definitions[l];Kd(n,u,a,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[se.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${$}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${$}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${$}ObjectPageAnalyticalTable<${t}>`},{$ref:`${$}ObjectPageGridTable<${t}>`},{$ref:`${$}ObjectPageTreeTable<${t}>`}],u[se.SchemaTag.annotationPath]=i.annotationPath,Ta(i,u,t),ns(i,u,t),Wd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),Wd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),Wd("ObjectPageGridTable",t,i,n),Wd("ObjectPageTreeTable",t,i,n),Wd("ObjectPageAnalyticalTable",t,i,n);let p,g=T1(i.entityType,e.serviceAVT);g&&(p=AJ(n,e.manifest,g.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let h=r[m];h.base===se.FacetBase.LineItem&&(h.ID===s||m.includes(s))&&_l(!0,n,h.target,h.entityType,h.ID||m,p)}}o(xJ,"handleLineItem");function CJ(e,t,n,i,r,a=!1){e.definitions[t]=wo(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";Kd(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[se.SchemaTag.isViewNode]=!0}o(CJ,"handleSubSection");function IJ(e,t,n,i,r){e.definitions[t]=wo(e,n,i);let a=e.definitions[t];Kd(e,a,r,"ObjectPageSectionChartV2")}o(IJ,"handleSectionChart");function Xk(e,t,n,i,r,a){e.definitions[t]=wo(e,n,i);let s=e.definitions[t];Kd(e,s,r,a||"CommonHeaderFacetSettings"),s[se.SchemaTag.annotationPath]=n.annotationPath,s[se.SchemaTag.isViewNode]=!0,s[se.SchemaTag.dataType]=Pc(n==null?void 0:n.target)}o(Xk,"handleHeaderFacet");function OJ(e,t,n){let i=e.definitions[t],r=i[se.SchemaTag.dataType]=Pc(n==null?void 0:n.target);r==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:r==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}o(OJ,"addDataPointHeaderFacetDataType");function RJ(e,t,n,i,r){e.definitions[t]=wo(e,n,i);let a=e.definitions[t];return Kd(e,a,r,"ObjectPageSectionFormV2"),a[se.SchemaTag.annotationPath]=n.annotationPath,a[se.SchemaTag.isViewNode]=!0,a}o(RJ,"handleFormSection");function LJ(e,t,n){let i=new Map([[se.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[se.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[se.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[se.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[se.FacetBase.Form,"ObjectPageHeaderSectionForm"],[se.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[se.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[se.FacetBase.LineItem,"ObjectPageSectionTableV2"],[se.FacetBase.Chart,"ObjectPageSectionChartV2"],[se.FacetBase.Address,"ObjectPageSectionAddressV2"],[se.FacetBase.Contact,"ObjectPageSectionContactV2"],[se.FacetBase.Form,"ObjectPageSectionFormV2"],[se.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[se.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[se.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[se.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[se.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[se.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[se.FacetBase.Form,"ObjectPageSubSectionFormV2"],[se.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(LJ,"getSectionType");function NJ(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Oo.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(NJ,"getReferenceKey");function qk(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=LJ(l.base,a,s),p=NJ(l,n,u),g=`${u}<${p}>`;switch(PJ(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,CJ(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let h in l.facets)qk(e,l.facets,h,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{xJ(e,p,r,l,t,u),kl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{IJ(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=RJ(r,g,l,p,u);Hm(se.SectionType.Section,l,m,r,se.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{_u(l,p,i,r,se.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{_u(l,p,i,r,se.SectionType.Section,se.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{Xk(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{Xk(r,g,l,p,u),OJ(r,g,l);break}default:i.properties[n]=wo(r,l,p)}}o(qk,"addSection");function Qk(e,t,n,i,r,a=!1){if(e)for(let s in t)qk(i,t,s,n,r,!1,a)}o(Qk,"addSectionsFromFacets");function Yk(e,t,n){var g,m,h,S,b,O;let i=t.definitions[se.DefinitionName.Sections];i[se.SchemaTag.isViewNode]=!0,(g=e.entitySet)!=null&&g.entityType&&(i[se.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Oo.UIAnnotationTerms.Facets}`);let r=t.definitions[se.DefinitionName.HeaderSections];if(r[se.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[se.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Oo.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=ym((h=e.entitySet)==null?void 0:h.entityType,e.serviceAVT,se.FioriElementsVersion.v2,e.logger),s=hm((S=e.entitySet)==null?void 0:S.entityType,e.serviceAVT,se.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,u=s&&!!Object.keys(s).length;if(!l&&!u)return;for(let N in n){let M=n[N];(O=(b=e.entitySet)==null?void 0:b.name)!=null&&O.includes(M.entitySet)?(Qk(l,a,i,e,t),Qk(u,s,r,e,t,!0)):Yk(e,t,M.pages)}let p=t.definitions.CustomSections;for(let N in p.properties)i.properties[N]=p.properties[N]}o(Yk,"addSections");function FJ(e,t,n){Xm(e,n),Km(e,n,t,SJ,void 0,!0)}o(FJ,"addHeader");function DJ(e,t,n,i){let r=OD(t,n,i,void 0,!0);r&&A1(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(DJ,"addRelatedFacetKeysType");function Bd(e,t){var s;qt();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[se.PropertyName.sections]={$ref:$+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[se.ManifestSection.generic].pages;return a?(FJ(n,e,r),n.definitions[se.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Yk(e,n,a),DJ(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[se.SchemaTag.isViewNode]=!0):delete n.properties[se.PropertyName.sections]),Wm(n,e,se.FioriElementsVersion.v2,EJ,a),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.CommonHeaderFacetSettings,delete n.definitions.ObjectPageHeaderSection,delete n.definitions.ObjectPageCustomHeaderSectionFragment,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTableWithMultiSelect,delete n.definitions.ObjectPageResponsiveTableWithInlineDelete,delete n.definitions.ObjectPageAnalyticalTable,delete n.definitions.ObjectPageTreeTable,delete n.definitions.ObjectPageGridTable,delete n.definitions.ObjectPageToolBar,delete n.definitions.ObjectPageToolBarActions,delete n.definitions.ObjectPageForm,delete n.definitions.ObjectPageFormFields,delete n.definitions.ObjectPageFormActions,delete n.definitions.FieldPathOP,ko(n,vJ),n):(ae(e.logger,{severity:se.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:se.MANIFESTPATH,range:[se.ManifestSection.generic]}}),n)}o(Bd,"generateObjectPageSchemaV2");var tn=te(ce());var _J=["filterBar","keyPerformanceIndicators","chart","table","footer"];function VJ(e,t,n){var b;let i=(b=e==null?void 0:e.component)==null?void 0:b.settings;if(jc(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(O){let N=O+(r?"#"+r:"");return t[N]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let O=r?Q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):Q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return ae(n,{severity:tn.LogSeverity.Error,message:O}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(O){return p=p||Nu("LineItem",O),g=g||Nu("Chart",O),p&&g}),p=p||"LineItem",g=g||"Chart";let m=t[p],h=t[g],S=(m||i.quickVariantSelectionX?0:1)+(h?0:2);if(S>0){let O=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][S-1],N=Q.t(O);ae(n,{severity:tn.LogSeverity.Warning,message:N})}return{lineItemAnnotation:m,chartAnnotation:h}}o(VJ,"getLineItemAndChartAnnotation");function wJ(e,t){let n=e.definitions[tn.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[tn.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(wJ,"addChart");function Hd(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[tn.PropertyName.table].anyOf[0].$ref=$+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${$}${tn.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${$}${tn.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[tn.PropertyName.table].anyOf[1].$ref=`${$}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${$}${tn.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${$}${tn.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[tn.PropertyName.table].anyOf[2].$ref=`${$}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${$}${tn.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${$}${tn.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,u1(n.definitions.TableColumnExtensionTypeV2.enum,[tn.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=Ml(e);if(s){wl(n);let l=[],u=of(e.manifest[tn.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=VJ(u,s,e.logger);p&&o1.forEach(h=>{n.definitions[h][tn.SchemaTag.annotationPath]=vr(a.fullyQualifiedName,p.term,p.qualifier)}),_l(!1,n,p,a),g&&wJ(n,g);let m=s.SelectionFields;if(jm(n,m,a),kl(n,a),!u)return ae(e.logger,{severity:tn.LogSeverity.Error,message:Q.t("NOLR"),location:{path:tn.MANIFESTPATH,range:[tn.ManifestSection.generic]}}),n;Vl(n,a,u,e.manifest,e.fragments),JA(a,e.entitySet,n,e.serviceAVT),delete n.definitions.ALPGridTable,delete n.definitions.ALPResponsiveTable,delete n.definitions.ALPAnalyticalTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.GenericFooter,delete n.definitions.Actions,delete n.definitions.FieldPath}return ko(n,_J),n}o(Hd,"generateAnalyticalListReportSchemaV2");var zk=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function MJ(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let r=i.$ref.split("/");return r[r.length-1]})}o(MJ,"getCardDefinitionNames");function kJ(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),r=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(r).filter(u=>i.includes(r[u].dataSource)));let s=e.definitions;s.CardModel={type:"string"},Aa(a,s.CardModel);let l=MJ(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=$+"CardModel"}}o(kJ,"addModelsEnum");function UJ(e,t){let n=e.properties;for(let i in zk){let r=zk[i],a=r.key;n[a]&&(n[a].messages=[{text:Nl(a,{since:r.since,deprecated:{since:r.deprecated.since,text:r.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}o(UJ,"markDeprecatedProperties");function Jk(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},UJ(n,t),kJ(n,t),n}o(Jk,"generateOverviewPageSchemaV2");var Ys=te(ce());function LI(e,t,n,i,r,a){qt();let s=Hr(e,t),l={templateType:a,fioriElementsVersion:Ys.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=$d(r,l.serviceAVT),l.entitySet||ae(l.logger,{severity:Ys.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(LI,"prepareGenerationV2");function NI(e,t,n,i,r,a){let s=LI(n,a,i,r,t,Ys.TemplateType.ListReportObjectPageV2);return Bd(s,e)}o(NI,"generateObjectPageInterfaceV2");function FI(e,t,n,i,r,a){let s=LI(n,a,i,r,t,Ys.TemplateType.ListReportObjectPageV2);return Cp(s,e)}o(FI,"generateListReportInterfaceV2");function DI(e,t,n,i,r,a){let s=LI(n,a,i,r,t,Ys.TemplateType.AnalyticalListPageV2);return Hd(s,e)}o(DI,"generateAnalyticalListPageInterfaceV2");function Gd(e,t){return Jk(e,t)}o(Gd,"generateOVPInterfaceV2");var Yf=te(ce()),e2=require("@sap-ux/vocabularies-types/vocabularies/UI");function Zk(e,t,n=!0){n?(e.dependencies||(e.dependencies={}),e.dependencies.libs||(e.dependencies.libs={}),e.dependencies.libs[t]===void 0&&(e.dependencies.libs[t]={})):e.dependencies&&e.dependencies.libs&&e.dependencies.libs[t]!==void 0&&delete e.dependencies.libs[t]}o(Zk,"updateDependencyLib");function WT(e){let t=e;if(e.indexOf("<")>-1){t=e.substring(e.indexOf("<")+1,e.length-1);let n=e.substring(0,e.lastIndexOf("::")).replace(/::/g,"/");n&&(t=`${n}/${t}`)}return t}o(WT,"extractLastIdPart");function t2(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return ae(i,{severity:Yf.LogSeverity.Error,message:Q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(Yf.PropertyName.sections),s=a>-1?WT(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${e2.UIAnnotationTerms.LineItem}`,u=n.eventHandler===!0?!0:void 0,p={target:t.pageNameArray[0],targetEntity:l,position:n.position,name:e,...n.header&&{header:n.header},...n.width&&{width:n.width},...n.availability&&{availability:n.availability},...u&&{eventHandler:u}},g={customExtension:Yf.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return _I(g),!0}o(t2,"createNewCustomColumn");var Ga=te(ce());var i2=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),n2=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function jJ(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(jJ,"initializeRouting");function $J(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o($J,"setTargetOptions");function BJ(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Ga.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(BJ,"calculateQueryPattern");function r2(e,t,n,i,r){if(r){e.push(...r.split("/")),e.shift();return}e.unshift(t);let a;for(let s in n){if(typeof n[s].navigation=="object"){let l=Object.keys(n[s].navigation).find(u=>n[s].navigation[u].route===i);l&&(t=l,a=n[s])}if(a){r2(e,t,n,s);return}}}o(r2,"fillNavigationParts");function HJ(e){let t={},n=e==null?void 0:e.split("/");return n&&n.length>0&&n.forEach(i=>{let r=i.substring(0,i.indexOf("({")),a=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[r]=a}),t}o(HJ,"fillParentKeys");function GJ(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if($J(n,a,s),s!=null&&s.route&&!i.routes.some(u=>u.name===s.route)){let u=l==null?void 0:l.routePattern;if(!u){let p=[];r2(p,a,t,r,l==null?void 0:l.contextPath);let g=HJ(e.routePattern);u=BJ(p,l,g)}i.routes.push(i2(u,s.route,s.route))}}}o(GJ,"handlePageNavigation");function WJ(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(r=>r.name===n);i!==-1&&e.routes.splice(i,1)}}o(WJ,"removeDeletedPages");function KJ(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=n2({contextPath:e.contextPath},e.variantManagement)),t.options.settings.contextPath=e.contextPath):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.contextPath,e.entitySet?(t.options||(t.options=n2({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(a=(r=t.options)==null?void 0:r.settings)==null||delete a.entitySet}o(KJ,"transferEntitySetandContextPath");function XJ(e,t,n){let i=e.routes.find(r=>r.target&&r.target.indexOf(t)>-1);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}o(XJ,"updateRouteLayout");function QJ(e,t,n){var i;return e.pageType&&![Ga.PageTypeV4.CustomPage,Ga.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:e.template??`sap.fe.templates.${e.pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(e.pageType!==Ga.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Ga.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{...t==null?void 0:t.options,settings:{...(i=t==null?void 0:t.options)==null?void 0:i.settings,viewName:e.view.name}}}),t}o(QJ,"fillTarget");function o2(e,t,n){var r,a;let i=jJ(n[Ga.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(i2(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=QJ(u,l,s),KJ(u,l),l&&!u.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(a=(r=l==null?void 0:l.options)==null?void 0:r.settings)!=null&&a.navigation&&(l.options.settings.navigation={}),GJ(u,t,l,i,s),XJ(i,s,u),i.targets[s]=l}return WJ(i,t),i}o(o2,"transformRoutingV4");var Oi=te(ce());var a2=[Oi.FlexibleColumnLayoutAggregations.BeginColumnPages,Oi.FlexibleColumnLayoutAggregations.MidColumnPages,Oi.FlexibleColumnLayoutAggregations.EndColumnPages],s2=o((e,t,n,i=[],r=0)=>{var p;let a=e.routing.routes.find(g=>g.name===n);if(!a)return;typeof a.target=="string"&&(a.target=r<=2?[...i,a.target]:[a.target]);let s=e.routing.targets[n],l=(p=t.pages)==null?void 0:p[n];if(!l)return;"controlAggregation"in l?s.controlAggregation=l.controlAggregation:a2[r]?s.controlAggregation=a2[r]:s.controlAggregation=Oi.FlexibleColumnLayoutAggregations.EndColumnPages;let u=a.pattern.replace(":?query:","");if(u?s.contextPattern=u.startsWith("/")?u:`/${u}`:s.contextPattern="",l.navigation){r++;for(let g in l.navigation)s2(e,t,l.navigation[g].route,a.target,r)}},"applyFCLRouting"),qJ=o((e,t)=>{e.routing.config.routerClass=Oi.v4.FIORI_FCL_ROUTER_CLASS,s2(e,t,t.home);let n={viewName:Oi.FIORI_FCL_ROOT_VIEW_NAME,type:Oi.ViewTypes.XML,async:!0,id:Oi.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,Zk(e,Oi.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),YJ=o(e=>{var t;e.rootView&&e.rootView.viewName===Oi.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Oi.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),c2=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?qJ(e,t):YJ(e)},"updateFcl");var ie=te(ce()),Xd=require("@sap-ux/vocabularies-types/vocabularies/UI");var l2=te(uc()),KT=te(ce());function zJ(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(zJ,"isExportValueEquals");function JJ(e,t){var s;let{element:n,schema:i,parent:r,contextPath:a}=e;if(delete n.attributes[t],((s=i.metadata)==null?void 0:s.type)===KT.MacrosPropertyType.Property&&Object.keys(n.attributes).length===0&&(r!=null&&r.element.elements)){let l=a[a.length-1];l&&r.element.elements.splice(l.index,1)}}o(JJ,"deleteProperty");function f2(e,t,n,i){var u,p;let{contextPath:r,fullSchema:a,element:s}=e,l=!1;if(t.hidden)return!1;if(i in n&&n[i]!==void 0)if(t.isViewNode){s.elements||(s.elements=[]);let g={name:i,type:"element"};return s.elements.push(g),Jc({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},f2)}else zJ((u=s.attributes)==null?void 0:u[i],n[i])||(s.attributes||(s.attributes={}),s.attributes[i]=n[i],l=!0);else(p=s.attributes)!=null&&p[i]&&(JJ(e,i),l=!0);return l}o(f2,"exportProperty");function XT(e,t,n,i,r,a){let s=xf(e.file,!1,a);if(s){let l=sT(s);if(Jc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},f2)){let p=(0,l2.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:KT.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(XT,"getExtensionExportResult");var u2=o((e,t)=>{let{views:n,manifest:i,jsonSchema:r,page:a,logger:s}=e,l={...t,manifest:i},u;return r&&Object.keys(r).length>0&&(u=Uo(n||[],a.name,i,s)),u&&XT(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),p2=o((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:a,pageNameArray:s,logger:l}=e,{manifest:u}=r,p,g="fragment";if(i&&Object.keys(i).length>0){let m=bc(u,s[0]);p=Sc(a,m,u,g,t)}if(p){let m=Cf(t),S={...i.definitions[m],definitions:i.definitions};XT(p,r,n,S,g,l)}},"exportXMLFragmentConfig");var d2=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],ZJ=[...d2,"views","initialLoad","template"],QT=o(e=>{let t=ie.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function eZ(e,t,n){var s,l,u,p;let i=`@${Xd.UIAnnotationTerms.LineItem}`,r=`@${Xd.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[ie.DefinitionName.TableSPV])==null?void 0:s[ie.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let g=(u=t.appSchema.definitions[ie.DefinitionName.ALPTable])==null?void 0:u[ie.SchemaTag.annotationPath];i=r=g&&g.substr(g.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ie.PropertyName.table&&a){let g=a.split("/");i=r=g[g.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(eZ,"determineTargetAnnotationOfTable");function tZ(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ie.DefinitionName.ALPChart])==null?void 0:a[ie.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}o(tZ,"determineTargetAnnotationOfChart");function nZ(e,t,n,i,r){var a;if(e.length===3)t=n=i[ie.SchemaTag.annotationPath]&&i[ie.SchemaTag.annotationPath].substr(i[ie.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split($)[1],l=s&&r.appSchema.definitions[s],u=(l==null?void 0:l[ie.SchemaTag.annotationPath])&&l[ie.SchemaTag.annotationPath].substr(l[ie.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${u}`:u}return{targetAnnotation:t,targetAnnotationEncoded:n}}o(nZ,"determineTargetAnnotationBasedOnParentView");function iZ(e,t){var a;let n,i,r=(a=e.appSchema.definitions.MultiTableModeV4)==null?void 0:a.properties[t[2]];if(r)({targetAnnotation:n,targetAnnotationEncoded:i}=nZ(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ie.SchemaTag.annotationPath]&&l[ie.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let u=l[ie.SchemaTag.annotationPath].split("/");return n=i=u[u.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ie.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}o(iZ,"determineTargetAnnotationOfView");function rZ(e,t,n){let i,r;return e[2].split(`@${ie.UIVOCABULARY}`)[1]?n&&n.indexOf(ie.FACETTITLEPREFIX)>-1?i=r=n.split(ie.FACETTITLEPREFIX)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(rZ,"determineTargetAnnotationOfHeaderSections");function oZ(e,t){let n=e[1].split(`@${ie.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=WT(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(oZ,"determineTargetAnnotationOfSections");function aZ(e,t,n){let i,r,a=!1;return e[0]===ie.PropertyName.table&&e[1]!==ie.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=eZ(e,t,n):e[0]===ie.PropertyName.chart&&t.templateType===ie.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=tZ(e,t,n):e[0]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=oZ(e,a):e[1]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=rZ(e,a,t.title):e[1]===ie.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=iZ(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(aZ,"determineTargetAnnotation");function sZ(e){return e.includes(dS)}o(sZ,"isGroupingElement");function cZ(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ie.PropertyName.actions,ie.PropertyName.columns,ie.PropertyName.views,ie.PropertyName.visualFilters,ie.PropertyName.selectionFields].includes(ie.PropertyName[r])||sZ(r)){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o(cZ,"determineKeyForSyncRule");function lZ(e){e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):e.manifestSection[e.manifestKey]||(e.manifestSection[e.manifestKey]={})}o(lZ,"createNewObjectInManifest");function g2(e,t,n){var r,a;let i=!1;return t.type!=="array"&&((r=n==null?void 0:n.targetDefinition)==null?void 0:r.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(lZ(e),i=!0):e.syncRule.manifest.export!==!1&&(e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length||!Array.isArray(e.configObject[e.configPropertyKey])&&e.configObject[e.configPropertyKey]===void 0?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey],i=!0),i}o(g2,"transferPropertyToManifest");function fZ(e,t,n,i,r,a,s){var p,g,m;let l=!1,u=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((g=n.config.table)!=null&&g.views)||e[1]==="views"&&((m=n.config.table)!=null&&m.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&d2.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(u!=null&&u.annotationPath)&&!u.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&ZJ.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let h=t.syncRule.manifest.delete;typeof h=="function"&&(h(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config),l=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],l=!0);return is(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(fZ,"deleteFromManifest");function uZ(e,t,n,i){let r=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:l,targetAnnotation:u,custom:p}=aZ(e,n.transferParameters,n.configObject),g=cZ(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,g,u,n.configObject,a),h=Vo(n.transferParameters.exportResults.manifest,m,u,p?void 0:l);if(h){let S={syncRule:t,manifestSection:h,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:g};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&Ol([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?r=fZ(e,S,n.transferParameters,h,m,u,l):r=g2(S,n.propertyDefinition,i)}return r}o(uZ,"exportManifestChange");function pZ(e,t,n){let i=Dn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);p2(e.transferParameters,r,n.configObject)}else i.manifest&&uZ(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ie.ChangeIndicator.Updated)}o(pZ,"evaluateExportRule");function dZ(e,t,n,i,r){let a=[];e.propertyDefinition.$ref&&t||e.propertyDefinition.anyOf&&t?a.push(t.configObject):e.propertyDefinition.anyOf?a.push(n):e.propertyDefinition.type==="array"?a=n:a.push(n),e.index=0;for(let s of a)e.transferParameters.title=t==null?void 0:t.title,wI(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(dZ,"transferSubObject");function gZ(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=ft(e.pageNameArray)+"/views",a=Vo(e.exportResults.manifest,r);return!a.paths||Object.keys(a.paths).length===0?(a.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):a.paths[0].secondary||(a.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}o(gZ,"createALPTableView");function mZ(e){var a,s;let t=!1,n=e.key;if(!e.configObject[n]||Object.keys(e.configObject[n]).length===0)return{newElementCreated:t,stopProcessing:!0};let i=ft(e.transferParameters.pageNameArray)+"/views",r=Vo(e.transferParameters.exportResults.manifest,i);return!r.paths||Object.keys(r.paths).length===0?(r.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):r.paths[0].primary||(r.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),r.paths[0].secondary||(r.paths[0].secondary=[{annotationPath:((s=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||Xd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(mZ,"createALPChartView");function hZ(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=ft(e.pageNameArray),r=Vo(e.exportResults.manifest,i),a=`@${Xd.UIAnnotationTerms.SelectionFields}`;if(r.controlConfiguration?r.controlConfiguration[a]?r.controlConfiguration[a].filterFields||(r.controlConfiguration[a].filterFields={},n=!0):(r.controlConfiguration[a]={filterFields:{}},n=!0):(r.controlConfiguration={[a]:{filterFields:{}}},n=!0),n){let s=r.controlConfiguration[a].filterFields;Object.keys(t).forEach(l=>{let u=t[l];s[l]={};for(let p in u)p==="visualFilterValueList"?s[l].visualFilter={valueList:u[p]}:s[l][p]=u[p]})}return n}o(hZ,"createVisualFilters");function yZ(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=ft(t.pageNameArray)+"/views",s=Vo(t.exportResults.manifest,a),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],r=!0;else{let u=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(u===-1)s.paths.push(l),r=!0;else if(u!==i.index){let p=JSON.parse(JSON.stringify(s.paths[u]));s.paths.splice(u,1),s.paths.splice(e,0,p),r=!0}}return r}o(yZ,"createLRTableView");function TZ(e,t,n){let i=!1,r=!1;if(t&&!n&&!e.transferParameters.deletionRequest)if(t.startsWith(ie.DefinitionName.CustomColumn))i=t2(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ie.DefinitionName.ALPChartView&&e.key===ie.PropertyName.chart&&e.configObject)return mZ(e);if(t===ie.DefinitionName.ALPTableView&&e.key===ie.PropertyName.table&&e.configObject)return gZ(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ie.DefinitionName.LRTableView)||t.startsWith(ie.DefinitionName.LRChartView))?i=yZ(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ie.DefinitionName.VisualFilters)&&(i=hZ(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(TZ,"createNewElement");function vZ(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0||!!e.anyOf}o(vZ,"isDefinitionTraversable");function VI(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=xm(e.configObject,e.key),s=Mo(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=TZ(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split($)[1],i),p=a?[...t,a]:[...t,e.key];if(l||pZ(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||vZ(e.propertyDefinition)&&(s!=null&&s.configObject))&&!u){let m=a?[...n,a]:n;dZ(e,s,r,p,m)}}o(VI,"transferSortedListEntry");function bZ(e,t,n,i,r){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((l,u)=>l[1]&&l[1].index-u[1].index),s.forEach(l=>{var u;(u=n.properties)!=null&&u[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],VI(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,VI(e,i,r),a=!0)}),e.index++})}return a}o(bZ,"transferConfigEntriesWithAnyOfDefinitions");function SZ(e,t,n,i){let r=rS(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(SZ,"mergeEntriesForInsert");function EZ(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ie.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ie.SchemaTag.propertyIndex]-r[1][ie.SchemaTag.propertyIndex])),t}o(EZ,"sortProperties");function AZ(e,t,n,i,r,a){var l,u;let s=!1;if(e){let p=e.anyOf;if(!p){let g=(l=e.$ref)==null?void 0:l.split($)[1];p=g?(u=t.appSchema.definitions[g])==null?void 0:u.anyOf:void 0}s=bZ(n,p,i,r,a)}return s}o(AZ,"checkIfAnyOfDefinition");function wI(e,t,n,i,r,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:r,key:void 0,index:s,configObject:t,propertyDefinition:void 0},u=a.additionalProperties,p=AZ(u,e,l,a,n,i),g=EZ(a.properties);u!=null&&u.$ref&&SZ(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!Ol(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,VI(l,n,i,p),m[1].$ref&&s++)})}o(wI,"transferManifestEntriesAndFlexChange");function m2(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ie.PageTypeV4.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(m2,"getClassesForSingleSection");function h2(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],m2(n,i,t),h2(n,t)}}o(h2,"getSubsectionClasses");function PZ(e,t,n){let i;for(let r in e.sections)i=t.sections[r],m2(e,r,n),h2(i,n)}o(PZ,"getExportClassesForSections");function y2(e,t){let n=Cm(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(y2,"calculateBaseId");var T2=o((e,t,n=!1)=>{var l;let i=QT(e.manifest),r=new Ha,a=r.createPageInstance(ie.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ie.PropertyName.sections]&&PZ(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:y2(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ie.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return wI(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),xZ=o((e,t,n,i,r,a,s=!1)=>{var b,O;let l=QT(e.manifest),u=e.jsonSchema,p=(b=n.table)!=null&&b[ie.PropertyName.annotationPath]?ie.DefinitionName.ALPTableView:ie.DefinitionName.Table,g=n.table=t.createInstance(i,p,n.table),m=ie.DefinitionName.LineItems;u.definitions[ie.DefinitionName.TableSPV]&&(m=u.definitions[ie.DefinitionName.TableSPV].properties.columns.$ref.split($)[1]);let h=u.definitions[`${ie.DefinitionName.Actions}<${m}>`];if((O=g.toolBar)!=null&&O.actions&&h)for(let N in h.properties)g.toolBar.actions[N]=t.createInstance(i,ie.DefinitionName.ToolBarAction,g.toolBar.actions[N]);let S={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:y2(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return wI(S,n,[],[],[],u),l},"exportListPage"),MI=o((e,t,n,i=!1)=>{let r=new Ha,a=r.createPageInstance(ie.PageTypeV2.ListReport,e.page.config);return xZ(e,r,a,ie.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),b2=o((e,t,n=!1)=>MI(e,t,ie.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),CZ=o((e,t,n,i,r,a)=>{let s=Vo(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=Zb());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];g2(u,p,{}),!l&&Object.keys(s).length&&xD(r,t,s)},"applyExportRule"),IZ=o((e,t,n)=>{var a;let i=QT(t),r=Object.assign(new pT,e);r.settings=Object.assign(new If,r.settings);for(let s in n.definitions.AppSettings.properties){let l=Dn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)CZ(l,u,s,e,i.manifest,n);else{let p=Vo(i.manifest,u);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],is(i.manifest,u,!1))}}}return i.manifest[ie.ManifestSection.ui5].routing=o2(e.home,e.pages,i.manifest),c2(i.manifest[ie.ManifestSection.ui5],e),i},"exportApplicationV4"),S2=o((e,t)=>{if(e[ie.SchemaType.ListReport])return MI(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4);if(e[ie.SchemaType.ObjectPage])return T2(e[ie.SchemaType.ObjectPage],t);if(e[ie.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ie.SchemaType.Application];return IZ(n,i,r)}else{if(e[ie.SchemaType.AnalyticalListPage])return b2(e[ie.SchemaType.AnalyticalListPage],t);if(e[ie.SchemaType.FPMCustomPage])return u2(e[ie.SchemaType.FPMCustomPage],ie.defaultExportResult)}},"exportPageV4"),OZ=o(e=>{let{jsonSchema:t,views:n,page:i,manifest:r,logger:a}=e,s=QT(e.manifest),l;return t&&Object.keys(t).length>0&&(l=Uo(n||[],i.name,r,e.logger)),l&&XT(l,s,i.config,t,"view",a),s},"exportCustomPage"),kI=o((e,t,n=!1)=>{if(e[ie.SchemaType.ListReport])return MI(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4,n);if(e[ie.SchemaType.ObjectPage])return T2(e[ie.SchemaType.ObjectPage],t,n);if(e[ie.SchemaType.AnalyticalListPage])return b2(e[ie.SchemaType.AnalyticalListPage],t,n);if(e[ie.SchemaType.FPMCustomPage])return OZ(e[ie.SchemaType.FPMCustomPage])},"exportConfigEntityByPathV4");var Ht=require("@sap-ux/fe-fpm-writer");var RZ=new Map([[ge.CustomExtensionType.CustomPage,Ht.generateCustomPage],[ge.CustomExtensionType.CustomColumn,Ht.generateCustomColumn],[ge.CustomExtensionType.CustomSection,Ht.generateCustomSection],[ge.CustomExtensionType.ObjectPage,Ht.generateObjectPage],[ge.CustomExtensionType.ListReport,Ht.generateListReport],[ge.CustomExtensionType.CustomAction,Ht.generateCustomAction],[ge.CustomExtensionType.CustomView,Ht.generateCustomView],[ge.CustomExtensionType.ControllerExtension,Ht.generateControllerExtension],[ge.CustomExtensionType.CustomSubSection,Ht.generateCustomSubSection],[ge.CustomExtensionType.CustomFilterField,Ht.generateCustomFilter],[ge.CustomExtensionType.CustomHeaderSection,Ht.generateCustomHeaderSection]]),LZ={api:Ht.PromptsAPI,types:Ht.PromptsType};function NZ(e){let t;if(e[ge.FioriElementsVersion.v2]){let n=e[ge.FioriElementsVersion.v2];if(n[ge.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[ge.SchemaType.ListReport];t=FI(i,r,a,s,l,u)}else if(n[ge.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[ge.SchemaType.ObjectPage];t=NI(i,r,a,s,l,u)}else if(n[ge.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[ge.SchemaType.OverviewPage];t=Gd(i,r)}else if(n[ge.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[ge.SchemaType.AnalyticalListPage];t=DI(i,r,a,s,l,u)}}else if(e[ge.FioriElementsVersion.v4]){let n=e[ge.FioriElementsVersion.v4];if(n[ge.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[ge.SchemaType.ListReport];t=uT(ge.TemplateType.ListReportObjectPageV4,i,r,a,s,l,u)}else if(n[ge.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,logger:l,fragments:u,contextPath:p,genericMacrosSchema:g}=n[ge.SchemaType.ObjectPage];t=px(i,r,a,s,l,u,p,g,e.featureToggles)}else if(n[ge.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[ge.SchemaType.AnalyticalListPage];t=uT(ge.TemplateType.AnalyticalListPageV4,i,r,a,s,l,u)}else if(n[ge.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l}=n[ge.SchemaType.FreestylePage];t=dx(ge.TemplateType.FreestylePageV4,i,a,l,r,s)}else if(n[ge.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:a,views:s,logger:l,annotations:u}=n[ge.SchemaType.FPMCustomPage];t=gx(i,r,a,s,u,e.featureToggles,l)}}return t}o(NZ,"generateSchema");function FZ(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[ge.FioriElementsVersion.v2]){let i=e[ge.FioriElementsVersion.v2];t=j_(i,n)}else if(e[ge.FioriElementsVersion.v4]){let i=e[ge.FioriElementsVersion.v4];t=S2(i,n)}return t}o(FZ,"exportConfig");function DZ(e){let t=ge.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[ge.FioriElementsVersion.v2]){let i=e[ge.FioriElementsVersion.v2];t=eP(i,n)}else if(e[ge.FioriElementsVersion.v4]){let i=e[ge.FioriElementsVersion.v4];t=kI(i,n)}return t}o(DZ,"exportConfigEntityByPath");function _Z(e){let t=ge.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[ge.FioriElementsVersion.v2]){let i=e[ge.FioriElementsVersion.v2];t=eP(i,n,!0)}else if(e[ge.FioriElementsVersion.v4]){let i=e[ge.FioriElementsVersion.v4];t=kI(i,n,!0)}return t}o(_Z,"deleteConfigEntityByPath");function VZ(e){let t;if(e[ge.FioriElementsVersion.v2]){let n=e[ge.FioriElementsVersion.v2];n[ge.SchemaType.ListReport]?t=py(n[ge.SchemaType.ListReport]):n[ge.SchemaType.ObjectPage]?t=sy(n[ge.SchemaType.ObjectPage]):n[ge.SchemaType.OverviewPage]?t=cy(n[ge.SchemaType.OverviewPage]):n[ge.SchemaType.AnalyticalListPage]&&(t=ly(n[ge.SchemaType.AnalyticalListPage]))}else if(e[ge.FioriElementsVersion.v4]){let n=e[ge.FioriElementsVersion.v4];n[ge.SchemaType.ListReport]?t=rl(n[ge.SchemaType.ListReport],ge.SchemaType.ListReport):n[ge.SchemaType.ObjectPage]?t=BT(n[ge.SchemaType.ObjectPage]):n[ge.SchemaType.AnalyticalListPage]?t=rl(n[ge.SchemaType.AnalyticalListPage],ge.SchemaType.AnalyticalListPage):n[ge.SchemaType.FPMCustomPage]&&(t=$T(n[ge.SchemaType.FPMCustomPage]))}return t}o(VZ,"importConfig");async function wZ(e){return RI(e)}o(wZ,"importProject");async function MZ(e){return OI(e)}o(MZ,"importProjectSchema");function kZ(){return{version:"22",fpmWriter:"30",moduleVersion:O1.version}}o(kZ,"getApiVersion");function _I(e){let t=RZ.get(e.customExtension);if(t&&typeof t=="function")return(0,Ht.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(_I,"generateCustomExtension");var oo=require("path"),zs=require("fs");var zf=o(async e=>new Promise((t,n)=>{(0,zs.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),UZ=o(async e=>JSON.parse(await zf(e)),"readJSON"),UI=o(async e=>new Promise((t,n)=>{(0,zs.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),jZ=o(async e=>new Promise(t=>{(0,zs.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),A2=o(async e=>new Promise(t=>{(0,zs.exists)(e,n=>{t(n)})}),"resourceExists"),$Z=o(async e=>UZ((0,oo.join)(e,"manifest.json")),"getManifest"),P2=o(async e=>{let t=[],n=(0,oo.join)(e,"changes");if(!await A2(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await UI(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await zf((0,oo.join)(n,a)));return t},"getChanges"),E2=o(async(e,t="fragments")=>{let n=[],i=(0,oo.join)(e,"ext",t);if(!await A2(i))return n;let r=await UI(i);for(let a of r){let s=(0,oo.join)(i,a),l=await zf(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),BZ=o(async(e,t)=>{var r,a,s,l,u,p,g,m;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let h=(0,oo.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:h,fileContent:await zf(h)})}if((u=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&u.annotations){for(let h of i.mainService.settings.annotations)if((g=(p=i[h])==null?void 0:p.settings)!=null&&g.localUri){let S=(0,oo.join)(t,i[h].settings.localUri);n.push({dataSourceUri:S,fileContent:await zf(S)})}}if(n.length===0)for(let h in i){let S=i[h];if((S==null?void 0:S.type)==="ODataAnnotation"&&((m=S==null?void 0:S.settings)!=null&&m.localUri)){let b=(0,oo.join)(t,S.settings.localUri);n.push({dataSourceUri:b,fileContent:await zf(b)})}}return n},"getAnnotations"),HZ=o(async e=>{let t=(0,oo.basename)(e),n=(0,oo.join)(e,"webapp"),i=await $Z(n),r=await BZ(i,n),a=await P2(n),s=await E2(n),l=await E2(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");fc(Di,te(ce()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
|
|
294
|
+
`}),b_(Q)}o(qt,"initI18n");var GE={};lc(GE,{AnalyticalListPage:()=>Yr,ListReport:()=>vo,ObjectPage:()=>fi,OverviewPage:()=>Zt,exportFilterSettings:()=>P_,importDateSettingsOVP:()=>A_,importFilterSettings:()=>E_});var oy=te(ce());var Yr=class{};o(Yr,"AnalyticalListPage"),y([T({flex:{controlId:Pm,controlType:o(()=>oy.ControlType.DynamicPage,"controlType")}})],Yr.prototype,"fitContent",2),y([$t("table")],Yr.prototype,"table",2),y([$t("template::SmartFilterBar")],Yr.prototype,"filterBar",2),y([$t("analyticalListPageChart")],Yr.prototype,"chart",2),y([$t("analyticalListFooter")],Yr.prototype,"footer",2),Yr=y([nr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:oy.v2.FE_TEMPLATE_V2_ALP})],Yr);var Ap=te(ce());var vo=class{};o(vo,"ListReport"),y([T({flex:{controlId:Pm,controlType:o(()=>Ap.ControlType.DynamicPage,"controlType")}})],vo.prototype,"fitContent",2),y([$t("listReportFilter")],vo.prototype,"filterBar",2),y([$t("listReport")],vo.prototype,"table",2),y([$t("listReportFooter")],vo.prototype,"footer",2),vo=y([nr({id:Ap.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Ap.v2.FE_TEMPLATE_V2_LIST_REPORT})],vo);var HE=te(ce());var fi=class{};o(fi,"ObjectPage"),y([T({manifest:{path:o(t=>_i(t),"path")}}),x({since:"1.52.0"})],fi.prototype,"showConfirmationOnDraftActivate",2),y([T({manifest:{path:o(t=>_i(t),"path")}}),x({since:"1.52.1"})],fi.prototype,"hideChevronForUnauthorizedExtNav",2),y([T({manifest:{path:o(t=>_i(t),"path")}}),x({since:"1.48.0"})],fi.prototype,"allowDeepLinking",2),y([T({manifest:{path:o(t=>_i(t),"path")}}),x({since:"1.52.0"})],fi.prototype,"navToListOnSave",2),y([$t("header")],fi.prototype,"header",2),y([$t("sections")],fi.prototype,"sections",2),y([$t("layout")],fi.prototype,"layout",2),y([T({manifest:{path:o(t=>Jm(t),"path")}}),x({since:"1.77.0"})],fi.prototype,"defaultLayoutTypeIfExternalNavigation",2),y([T({manifest:{path:o(t=>_i(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),x({since:"1.78.0"})],fi.prototype,"globalChartSettings",2),y([T({manifest:{path:o(t=>_i(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:mc}}),x({since:"1.71.0"})],fi.prototype,"globalTableSettings",2),fi=y([nr({id:HE.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:HE.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],fi);function Y7(e,t){for(let n in e.dateSettings.fields){t.fields[n]=e.dateSettings.fields[n];let i=e.dateSettings.fields[n].selectedValues;typeof i=="string"&&(t.fields[n].selectedValues=i.split(","));for(let r in e.dateSettings.fields[n].filter){let a=e.dateSettings.fields[n].filter[r];t.fields[n].filter[r]=a,a.equals&&typeof a.equals=="string"&&(t.fields[n].filter[r].equals=a.equals.split(","))}}}o(Y7,"importDateSettingsFieldsOVP");function A_(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),e.dateSettings.fields&&Y7(e,t),t}o(A_,"importDateSettingsOVP");function E_(e){let t={};return t.dateSettings=A_(e.filterSettings),t}o(E_,"importFilterSettings");function z7(e,t,n){for(let i in e.filterSettings[t].fields){let r=e.filterSettings[t].fields[i];if(r.selectedValues&&(n.filterSettings[t].fields[i].selectedValues=r.selectedValues.join()),r.filter)for(let a in r.filter){let s=r.filter[a];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[a].equals=s.equals.join())}}}o(z7,"exportFilterFields");function P_(e,t){e.filterSettings||(e.filterSettings={});let n="dateSettings";t.filterSettings[n]===void 0?delete e.filterSettings[n]:(e.filterSettings[n]=JSON.parse(JSON.stringify(t.filterSettings[n])),t.filterSettings[n].selectedValues&&(e.filterSettings[n].selectedValues=t.filterSettings[n].selectedValues.join()),t.filterSettings[n].fields&&z7(t,n,e))}o(P_,"exportFilterSettings");var Zt=class{};o(Zt,"OverviewPage"),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"globalFilterModel",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"globalFilterEntityType",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"globalFilterEntitySet",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"showBasicSearch",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"disableErrorPage",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"smartVariantRequired",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"bHeaderExpanded",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"containerLayout",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"showDateInRelativeFormat",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"disableTableCardFlexibility",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"enableLiveFilter",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"enableLazyRendering",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"refreshStrategyOnAppRestore",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"considerAnalyticalParameters",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"refreshIntervalInMinutes",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"useDateRangeType",2),y([T({manifest:{path:o(()=>Sn(),"path"),import:E_,export:P_}}),x({since:"1.80.0"})],Zt.prototype,"filterSettings",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"dataLoadSettings",2),y([T({manifest:{path:o(()=>Sn(),"path")}})],Zt.prototype,"resizableLayout",2),Zt=y([nr({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Zt);var WE=class WE{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let a=this.controls[r]?this.controls[r]:this.controls[n];return a||(a=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};o(WE,"MetadataFactory");var af=WE;var Jn=te(ce());var J7={},Z7={Table:Oc,ResponsiveTableWithMultiSelect:Oc,ResponsiveTableWithInlineDelete:Oc},eQ={[Jn.v2.CardSettingsType.listCardSettings]:Gl,[Jn.v2.CardSettingsType.listCardSettingsv4]:Gl,[Jn.v2.CardSettingsType.analyticalCardSettings]:Wl,[Jn.v2.CardSettingsType.analyticalCardSettingsv4]:Wl,[Jn.v2.CardSettingsType.stackCardSettings]:Hu,[Jn.v2.CardSettingsType.linkListCardSettings]:Gu,[Jn.v2.CardSettingsType.tableCardSettings]:Kl,[Jn.v2.CardSettingsType.tableCardSettingsv4]:Kl},tQ={[Jn.SAPUI5_VIEW_CLASS]:mp,[Jn.SAPUI5_FRAGMENT_CLASS]:gp,Table:Uc,ObjectPageResponsiveTableWithMultiSelect:Uc,ObjectPageResponsiveTableWithInlineDelete:Uc},nQ={[Jn.PageTypeV2.AnalyticalListPage]:J7,[Jn.PageTypeV2.ListReport]:Z7,[Jn.PageTypeV2.ObjectPage]:tQ,[Jn.PageTypeV2.OverviewPage]:eQ},KE=class KE extends af{constructor(){super(kE,GE,nQ)}};o(KE,"MetadataInstanceFactoryV2");var wi=KE;function iQ(e,t,n,i,r){if(e.filterBar=t.createInstance(Yt.PageTypeV2.ListReport,Yt.DefinitionName.ListReportFilterBar,e.filterBar),_n(e.filterBar,n.manifest,i[Yt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(Yt.PageTypeV2.ListReport,Yt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(Yt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),_n(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(iQ,"importFilterBar");function XE(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,g,m;let l=br(s),u={controlId:l.controlId,propertyId:(p=l.content)==null?void 0:p.property,newValue:(g=l.content)!=null&&g.newBinding?l.content.newBinding:(m=l.content)==null?void 0:m.newValue,controlType:l.controlType,creation:l.creation};Yh(n.table,u,t)});let i=t.properties.columns.$ref.split("/").pop(),r=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in r)s!=="custom"&&zh(e,n,s)}o(XE,"importFlexChangesOfTableAndColumns");function rQ(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[wm]&&t[Mm]&&(a=JSON.parse(JSON.stringify(t[wm])),a.properties={...a.properties,...t[Mm].properties}),_n(n.table,i.manifest,a,r,i.logger),XE(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&ae(i.logger,{severity:Yt.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}o(rQ,"importTable");function oQ(e,t,n,i){let r=e.jsonSchema.definitions,a=Zh(e.manifest,i);if(t.table=n.createInstance(Yt.PageTypeV2.ListReport,a,t.table),ey(t,n,r),rQ(a,r,t,e,i),t.table.toolBar=n.createInstance(Yt.PageTypeV2.ListReport,Yt.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,r[Yt.DefinitionName.ToolBarLR],i,e.logger),r[Yt.DefinitionName.ActionsLR])for(let l in r[Yt.DefinitionName.ActionsLR].properties){let u=Is(l);t.table.toolBar.actions[u]=n.createInstance(Yt.PageTypeV2.ListReport,Yt.DefinitionName.Action),_n(t.table.toolBar.actions[u],e.manifest,r[Yt.DefinitionName.Action],i,e.logger)}iQ(t,n,e,r,i),t.footer={actions:{}};let s=r[Yt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=Is(l);t.footer.actions[u]=n.createInstance(Yt.PageTypeV2.ListReport,Yt.DefinitionName.FooterAction),_n(t.footer.actions[u],e.manifest,r[Yt.DefinitionName.Action],i,e.logger)}}o(oQ,"addSettings");function x_(e){if(qt(),!nf(e))return;let n=new wi,i=n.createPageInstance(Yt.PageTypeV2.ListReport),r=[],a=tf(e.manifest[Yt.ManifestSection.generic].pages,r);if(rf(a,e.logger,a==null?void 0:a.entitySet),!!a)return oQ(e,i,n,r[0]),e.flex.forEach(s=>{br(s)&&Jh(i,s,e.jsonSchema,e.logger)}),Zl(i,e,a,Yt.PageTypeV2.ListReport),ry(i),i}o(x_,"createListReportConfig");var Se=te(ce());var Ep=require("@sap-ux/vocabularies-types/vocabularies/UI");var sQ=[Se.ControlType.Avatar,Se.ControlType.ObjectPageLayout,Se.ControlType.DynamicPage];function cQ(e,t){let n=e[0].split("--"),i=n[n.length-1];if(e[0].indexOf("::action::")>=0||e[0].startsWith("action::"))t=n[0].split("::action::")[0]||n[0].split(`${Ep.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Se.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Ep.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let r=i.split("::");r.length>1?t=r[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}o(cQ,"getSingleSelectorIdPart");function lQ(e){let t,n=e.split(":::");if(n.length===1)t=cQ(n,t);else if(e.indexOf("sSmartTableId")>=0){for(let i of n)if(i.startsWith("sSmartTableId")){t=i.split("sSmartTableId::")[1].split("::Table")[0].split("/responsiveTable")[0].replace(`::${Ep.UIAnnotationTerms.LineItem}`,`/@${Ep.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(lQ,"getFacetID");function fQ(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=br(s),m=g&&((l=g.controlId)==null?void 0:l.split("--"))||[];if(g&&((u=m[0])!=null&&u.includes(Se.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let h=m[1].replace(/:3a:3a/g,"::");r.exec(h)!==null&&(h=h.split("template:::TableColumn:::")[1]);let S=lQ(h);h=jE(h).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${h}::${g.content.property}`]={controlId:h,propertyId:g.content.property,facetId:S,newValue:g.content.newBinding!==void 0?g.content.newBinding:g.content.newValue,controlType:g.controlType,creation:g.creation}}}catch(g){ae(n,{severity:Se.LogSeverity.Error,message:Q.t("FLEXERROR")},...g)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,u])=>(s[l]=u,s),{})}o(fQ,"prepareFlexChanges");var uQ=o(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace($,"");if((i=(n=e.properties)==null?void 0:n.subsections)!=null&&i.$ref)return t=e.properties.subsections.$ref,t=t.includes("<")?t.split("<")[0]:t,t.replace($,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function pQ(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&UE(i,t,r)}o(pQ,"addFlexChangeToColumns");function C_(e,t,n,i,r,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,Se.VOCWITHSLASH)];for(let u in e){let p=e[u],g=p.propertyId===t,m=t==="columns"&&p.controlType===Se.ControlType.TableColumn;(g||m)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?pQ(a,p,r.properties,n):Yh(n,p,r))}}o(C_,"importFlexChangesOfTable");function dQ(e,t){return e.facetId==="template"&&t}o(dQ,"isStandardActionFlexChange");var I_=o((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),r=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,r);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function gQ(e,t,n,i,r,a){var O;let s=!1,l=!1;a?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let u=t.controlId.split("::"),p=t.controlType===Se.ControlType.GroupElement&&l,g=((O=t.facetId)==null?void 0:O.includes(Se.ACTIONTITLEPREFIX))&&!r&&s,m=r&&I_(u,r.split("::"))&&s,h=e.title&&I_(u,e.title.split("::"),!0),S=!t.facetId&&sQ.includes(t.controlType),b=dQ(t,l);return p||g||m||h||S||b}o(gQ,"matchSelector");function mQ(e,t,n,i,r,a){var u;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let p in n){let g=n[p];if(g.propertyId!==i||g.controlType!==((u=e.properties[g.propertyId])==null?void 0:u[Se.SchemaTag.controlType]))continue;gQ(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o(mQ,"importFlexChanges");function hQ(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(ae(n.logger,{severity:Se.LogSeverity.Warning,message:Nl(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(hQ,"checkDeprecatedProperties");function yQ(e,t,n,i,r,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,u,p;s!=null&&s.title?(u=e.manifest.path(t,{},s.title),p=Bn(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u))):(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u));let g=e.manifest.import;if(g&&typeof g=="function"){let m=g(p,s==null?void 0:s.id);m!==void 0&&(i[r]=m)}else{let m=e.manifest.key||r;m in p&&(i[r]=p[m])}return hQ(p,a,n,u),p}o(yQ,"importManifestSetting");function Mi(e,t,n,i,r,a){var u,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let g in n.properties||n){let m=Dn(t,g);if(g==="columns"||m!=null&&m.flex)if((u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSectionTableV2")||(p=r==null?void 0:r.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(g==="columns"){let h=n.properties[g].$ref.split($)[1],S=e.jsonSchema.definitions[h];C_(i.flexChanges,g,t,r,S,l)}else C_(i.flexChanges,g,t,r,n);else{let h=(r==null?void 0:r.title)||(r==null?void 0:r.id);mQ(n,t,i.flexChanges,g,h,a)}else m!=null&&m.manifest&&yQ(m,i.pageKeys,e,t,g,s,r)}}o(Mi,"transferSettingsAndFlexChanges");function R_(e,t,n,i){let r=Zi(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${a1}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${km}${r}`;break}}return r.replace(/@/g,"")}o(R_,"getActionId");function TQ(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split($)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],u=R_(s,a,"","");e.actions[a]=i.factory.createInstance(Se.PageTypeV2.ObjectPage,l,{}),Mi(n,e[Se.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},u)}}}o(TQ,"fillStandardActions");function ay(e,t,n,i,r,a){var l;n[Se.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let u={};a&&(u.id=a);for(let p in t){let g=Is(p),m=R_(s,g,r,a);m&&(n[Se.PropertyName.actions][g]=i.factory.createInstance(Se.PageTypeV2.ObjectPage,s),Mi(e,n[Se.PropertyName.actions][g],e.jsonSchema.definitions[s],i,u,m)),(l=n[Se.PropertyName.actions])!=null&&l[g]&&Object.keys(n[Se.PropertyName.actions][g]).length===0&&delete n[Se.PropertyName.actions][g]}}TQ(n,t,e,i),Object.keys(n[Se.PropertyName.actions]).length===0&&delete n[Se.PropertyName.actions]}o(ay,"fillActions");function vQ(e,t,n,i,r){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,"Field");let u=(s=t.title)!=null&&s.includes(Se.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;Mi(e,i[t.id].form.fields[l],e.jsonSchema.definitions[Se.DefinitionName.Field],r,{},u),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}o(vQ,"fillFields");function bQ(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`]&&n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`]&&(i=JSON.parse(JSON.stringify(n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`])),i.properties={...i.properties,...n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`].properties}),i}o(bQ,"prepareTableSchema");function SQ(e,t,n,i,r){var l,u;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",g=r.factory.createInstance(Se.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][Se.PropertyName.table]=g;let m=e.jsonSchema.definitions,h=bQ(p,t,m);Mi(e,i[t.id],t.schema,r,{title:t.title}),Mi(e,i[t.id][Se.PropertyName.table],h,r,t);let S=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(S!=null&&S.properties){let b=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");ay(e,S.properties,i[t.id][Se.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",b)}Object.keys(i[t.id][Se.PropertyName.table].toolBar).length===0&&delete i[t.id][Se.PropertyName.table].toolBar}}o(SQ,"fillTableInConfig");function AQ(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?Rm(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};Zl(n[t],e,i,Se.PageTypeV2.ObjectPage,l,r)}}o(AQ,"fillCustomColumnsInConfig");function EQ(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][Se.PropertyName.chart]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(Mi(e,i[t.id],t.schema,r,{title:t.title}),Mi(e,i[t.id][Se.PropertyName.chart],e.jsonSchema.definitions[Se.DefinitionName.ObjectPageChart],r,t))}o(EQ,"fillChartSection");function PQ(e,t,n,i){n[t.id]=i.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&Mi(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(PQ,"fillHeaderSection");function xQ(e,t,n,i){var u;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&Mi(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${r}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&ay(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&vQ(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}o(xQ,"fillFormSection");function O_(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(Se.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Mi(e,i[t.id],t.schema,r,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,QE(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(O_,"fillSubSection");function QE(e,t,n,i,r){var s;let a=e.jsonSchema.definitions;for(let l in t){let u=l.replace(/\/@/g,"::"),p={id:u,type:uQ(t[l]),schema:t[l],title:lS(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],SQ(e,p,n,i,r),AQ(e,u,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],EQ(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],xQ(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${l}>`],O_(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],PQ(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],O_(e,p,n,i,r))}}o(QE,"fillSectionsInConfig");function CQ(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(Se.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(Se.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Mi(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(CQ,"fillCustomSectionsInConfig");function IQ(e,t){var g,m;let n=t.factory.createPageInstance(Se.PageTypeV2.ObjectPage);Mi(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Se.PageTypeV2.ObjectPage,Se.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Mi(e,n.globalTableSettings,i[Se.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(Se.PageTypeV2.ObjectPage,Se.DefinitionName.ObjectPageHeader);let r=i[Se.DefinitionName.ObjectPageHeader]?i[Se.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];Mi(e,n.header,r,t);let a=i[Se.DefinitionName.ObjectPageHeaderActions];a&&ay(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Se.DefinitionName.FooterActions];s&&ay(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Se.PageTypeV2.ObjectPage,"ObjectPageLayout"),Mi(e,n.layout,i[Se.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[Se.DefinitionName.HeaderSections];if(l){let h=(g=t.v2Page.component)==null?void 0:g.settings;QE(e,l.properties,h,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let u=i[Se.DefinitionName.Sections];if(u){let h=(m=t.v2Page.component)==null?void 0:m.settings;QE(e,u.properties,h,n.sections,t)}let p=v_(e.manifest,e.entitySet);return CQ(p,n,t,i,e),n}o(IQ,"fillConfig");function sy(e){qt();let t=nf(e);if(!t)return;let n=e.entitySet,i=[],r=$c(t,e.entitySet,i);if(rf(r,e.logger,n),!r)return;let a=fQ(e.flex,n),s=new wi;return IQ(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(sy,"createObjectPageConfigV2");var Xo=te(ce());var YE=te(Lb());var wt=te(ce());var OQ=["colorPalette","tabs"];function RQ(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(RQ,"createCard");function L_(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),L_(e,n.join("|"))}return t}o(L_,"findAvailableId");function Pp(e,t,n,i,r,a,s){i!=null&&i.properties&&qE(e,t,n,i.properties,r,a,s)}o(Pp,"transferManifestEntriesOVP");function Bc(e,t,n,i){return e.createInstance(wt.PageTypeV2.OverviewPage,i,n,t)}o(Bc,"assignReflectMetadataRules");function LQ(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split($),r=e.appSchema.definitions[i[1]];t=Bc(e.factory,i[1],t,"CustomCard"),Pp(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(LQ,"processAnyOfDefinitionsOfOVP");function NQ(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!OQ.includes(i)?t[i]=(0,YE.default)(t[i]||{},r||{},{arrayMerge:oS}):t[i]=r}o(NQ,"checkSyncRuleForExport");function FQ(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=Bn(i.manifest,s);if(n in wt.v2.CardSettingsType||n==="settings")l.settings=(0,YE.default)(l.settings||{},r||{},{arrayMerge:oS});else if(r!==void 0){let u=e.manifest.export;NQ(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(FQ,"transferToManifest");function DQ(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(wt.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(r=>{var s;let a=(s=e.appSchema.definitions[r].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=Bc(e.factory,i[0],e.currentObject[t],"CustomCard"),RQ(t,e.exportResults.manifest[wt.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=wt.ChangeIndicator.Updated,Pp(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[wt.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[wt.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=wt.ChangeIndicator.Updated)})}o(DQ,"transferCards");function _Q(e,t){if(t==="cards")DQ(e);else{let n=Mo(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,wt.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split($);e.currentObject=Bc(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],Pp(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],qE(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],e.factory,e.pathHierarchy,e.entityPathArray)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],qE(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(_Q,"exportOfObject");function qE(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!Ol(a,s)&&a[a.length-1]!=="anyOf")continue;let u=e[l],p=Dn(e,l),g={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:u,configObject:e,factory:r,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(g.currentObject=e[a[a.length-2]],u=LQ(g)):u&&typeof u=="object"&&i[l]&&_Q(g,l),p!=null&&p.manifest&&FQ(p,a,l,t,u,e)}}o(qE,"processProperties");function VQ(e,t,n,i,r,a,s){let l;t.length===0?l=["page"]:l=t;let u=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),p=XD(a,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=Im(p,g);e.exportResults.flexChanges.find(S=>{let b=!1,O=JSON.parse(S);O={content:O.content,selector:O.selector};let N=JSON.parse(m);return N={content:N.content,selector:N.selector},JSON.stringify(O)===JSON.stringify(N)&&(b=!0),b})||e.exportResults.flexChanges.push(m)}o(VQ,"evaluateFlexRule");function wQ(e,t,n,i,r,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=wt.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,a):s!==!1&&(n[a]=i[r]),e.exportResults.manifestChangeIndicator=wt.ChangeIndicator.Updated}}o(wQ,"exportConfigValueToManifest");function MQ(e,t,n,i,r){let a=Bn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)wQ(e,n,a,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=wt.ChangeIndicator.Updated,is(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(MQ,"evaluateManifestRule");function kQ(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(wt.FACETTITLEPREFIX)?r.split(wt.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(kQ,"getManifestPathOfSections");function UQ(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}o(UQ,"getManifestPathOfTable");function jQ(e,t,n,i,r){let a;return t[0]===wt.PropertyName.sections?a=kQ(t,a,n,e,r):t[0]===wt.PropertyName.table?a=UQ(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}o(jQ,"getManifestPath");function $Q(e,t,n,i,r,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)VQ(e,i,t,r,a,n,s);else if(t.manifest){let u=jQ(e,i,t,n,a);MQ(e,u,t,s,n)}}o($Q,"evaluateExportRule");function BQ(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(u=>(u.tabKey===a||a===void 0&&u.tabKey===""||a&&t.sectionKey===a)&&u.extensionType===t.extensionType);if((!l||l.length===0)&&(lh(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(wt.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(wt.ViewTemplateType.ResponsiveTableColumnsExtension,wt.ViewTemplateType.ResponsiveTableCellsExtension);lh(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o(BQ,"deleteObsoleteColumn");function HQ(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=N1(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=wt.ChangeIndicator.Updated,BQ(r,e,n))}o(HQ,"deleteObsoleteColumnsFromFragment");function GQ(e,t,n,i,r){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:u}=fh(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o(GQ,"clusterConfigColumnsByPath");function N_(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in wt.v2.TableColumnExtensionTypeV2){let{path:u}=fh(e.v2Page,s,r,l);if(!u)continue;let p={path:u,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};try{HQ(p)}catch(g){e.logger.error(g.message)}}if(t){let l=GQ(t,n,e.v2Page,s,r);for(let u in l)xA(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(N_,"transferColumnExtensions");function WQ(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=L_(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(g)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(S=>{var b;return(b=S.$ref)==null?void 0:b.includes(t[p].constructor.name)}).$ref.split($),h=e.appSchema.definitions[m[m.length-1]];Os(e,t[p],i,[...r,s[p]],h)}let u=Bn(e.exportResults.manifest,YS());for(let p in u)$E(p,l)&&!s.includes(p)&&delete u[p]}o(WQ,"transferManifestExtensions");function KQ(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===wt.PropertyName.table){n=e[i-1];break}return qn(n,t)}o(KQ,"getSectionId");function XQ(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=Mo(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);Os(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(XQ,"transferIndexTable");function QQ(e,t,n,i,r,a){let s,l=Rm(e.$ref);l&&(s={target:l,key:KQ(t,n)}),N_(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(QQ,"transferCustomColumns");function qQ(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let u=Mo(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&Os(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(qQ,"handleAnyOfDefinitions");function YQ(e,t,n,i,r,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")WQ(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){QQ(l,t,s,e,n,a);return}else a?Os(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&qQ(l,e,s,n==null?void 0:n[r],r,i,t)}o(YQ,"transferComplexProperty");function Os(e,t,n,i,r,a){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!Ol(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&xm(t,l),p=u?[...n,u]:n,g=Dn(t,l),m=e.propertyDefinition=r.properties[l],h=e.nextDefinition=Mo(e.appSchema,a,s,m,l,e.factory,e.pageType);if($Q(e,g,t,[...i],p,a,l),XQ(s,e,a,l,p,i),s===void 0||typeof s=="object")YQ(e,i,t,p,l,h,a);else if((m==null?void 0:m.$ref)===$+"TableCustomColumns"){N_(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(Os,"transferManifestEntriesAndFlexChange");function F_(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Bc(r,i,n[i],s),a.push(i),zE(r,n[i],e,l.properties,a)}o(F_,"transferSettingsOfRef");function zQ(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split($);F_(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${$}${Xo.v2.cardTemplateSettingsMap[e.template]}`.split($);F_(i,l,e,t,r,a)}}o(zQ,"processPropertiesOfObject");function JQ(e,t,n,i,r,a){let s=Dn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=Bn(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{Fl(s,u,t,e)}catch(p){ae(i.logger,{severity:Xo.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:Sm(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&zQ(e,t,r,i,a,n)}o(JQ,"processOvpProperty");function zE(e,t,n,i,r){for(let a in i)JQ(t,a,r,n,i,e)}o(zE,"processOvpProperties");function ZQ(e,t,n){zE(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[Xo.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[Xo.ManifestSection.ovp].cards[i].template,a=Xo.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=Bc(n,a,{},"CustomCard"),e.cards=Bc(n,a,e.cards,"CustomCard"),zE(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}o(ZQ,"addSettings");function cy(e){let t=new wi,n=t.createPageInstance(Xo.PageTypeV2.OverviewPage);return e.jsonSchema&&ZQ(n,e,t),n}o(cy,"createOverviewPageConfig");var Pt=te(ce());function e9(e,t,n,i){var p,g;let r=Zh(e.manifest,i),a=e.jsonSchema.definitions;ey(t,n,a),t.table=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(_n(t.table,e.manifest,s,i,e.logger),XE(e,s,t),t.table.toolBar=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,a[Pt.DefinitionName.ToolBar],i,e.logger),a[Pt.DefinitionName.ActionsLR])for(let m in a[Pt.DefinitionName.ActionsLR].properties){let h=Is(m);t.table.toolBar.actions[h]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.Action),_n(t.table.toolBar.actions[h],e.manifest,a[Pt.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),_n(t.filterBar,e.manifest,a[Pt.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[Pt.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[Pt.DefinitionName.SelectionFields].properties;for(let h in m){let S=h;t.filterBar.selectionFields[S]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),_n(t.filterBar.selectionFields[S],e.manifest,a.SelectionFieldDateSettings,i,e.logger,S)}}t.chart=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),_n(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[Pt.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let h=Is(m);t.footer.actions[h]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.FooterAction),_n(t.footer.actions[h],e.manifest,a[Pt.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let u=(g=(p=e.manifest[Pt.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:g.keyPerformanceIndicators;u&&Object.keys(u).forEach(m=>{t.keyPerformanceIndicators[m]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),_n(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o(e9,"addSettings");function ly(e){if(qt(),!nf(e))return;let n=new wi,i=n.createPageInstance(Pt.PageTypeV2.AnalyticalListPage),r=[],a=of(e.manifest[Pt.ManifestSection.generic].pages,r,e.logger);if(rf(a,e.logger,a==null?void 0:a.entitySet),!!a)return e9(e,i,n,r[0]),e.flex.forEach(s=>{br(s)&&Jh(i,s,e.jsonSchema,e.logger)}),Zl(i,e,a,Pt.PageTypeV2.AnalyticalListPage),ry(i),i}o(ly,"createAnalyticalListPageConfig");var Zn=te(ce());var sf=require("@sap-ux/vocabularies-types/vocabularies/UI");var n9=["filterBar","table","footer"],i9=Zn.UIVOCABULARYALPHADOT.substring(1);function JE(e,t,n,i){ss(e,n,"QuickVariant"),b1(n,"QuickVariantX",t),S1(i,n,"QuickVariantX")}o(JE,"addEnumForVariantPaths");function r9(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[sf.UIAnnotationTerms.SelectionPresentationVariant,sf.UIAnnotationTerms.SelectionVariant,sf.UIAnnotationTerms.PresentationVariant];Fu(e,r,i)}o(r9,"addEnumForFilterBarAnnotationPath");function o9(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(sf.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(sf.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(i9,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(ae(n,{severity:Zn.LogSeverity.Warning,message:Q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(o9,"getPresentationVariantForLineItem");function a9(e,t,n){if(jc(t,"annotationPath",n))return;let i=o9(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=Nu("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||ae(n,{severity:Zn.LogSeverity.Warning,message:Q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(a9,"getLineItemAnnotation");function D_(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:$+Zn.DefinitionName.LineItems},r=$+Zn.DefinitionName.ToolBarLR;jS.forEach((u,p)=>{n.properties.table.anyOf[p.toString()].$ref=$+u;let g=u.replace("<LineItems>",""),m=JSON.parse(JSON.stringify(t.definitions[g]));m.properties.columns=i,m.properties.toolBar.$ref=r,n.definitions[u]=m});let{entityType:a,uIAnnotations:s}=Ml(e);if(s){let u=[],p=tf(e.manifest[Zn.ManifestSection.generic].pages,u);wl(n);let g=a9(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let h=vr(a.fullyQualifiedName,g.term,g.qualifier);jS.forEach(S=>{n.definitions[S][Zn.SchemaTag.annotationPath]=h})}_l(!1,n,g,a);let m=s.SelectionFields;if(jm(n,m,a),kl(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],p1(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return ae(e.logger,{severity:Zn.LogSeverity.Error,message:Q.t("NOLR"),location:{path:Zn.MANIFESTPATH,range:[Zn.ManifestSection.generic]}}),n;Vl(n,a,p,e.manifest,e.fragments),JE(a,e.entitySet,n,e.serviceAVT),r9(a,n,Zn.DefinitionName.ListReportFilterBar),A1(a,n,Zn.DefinitionName.MultiEditV2),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return ko(n,n9),n}o(D_,"generateListReportSchemaV2");var we=te(ce());var xp=o(e=>({flexChanges:[],manifest:{[we.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:we.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:we.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function __(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===we.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}o(__,"getClassesForSingleSection");function V_(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],__(n,i,t),V_(n,t)}}o(V_,"getSubsectionClasses");function s9(e,t,n){let i;for(let r in e.sections)i=t.sections[r],__(i,r,n),V_(i,n)}o(s9,"getExportClassesForSections");function c9(e,t){let n=tf(t.manifest[we.ManifestSection.generic].pages,e);if(!n){ae(t.logger,{severity:we.LogSeverity.Error,message:Q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){ae(t.logger,{severity:we.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(c9,"findV2Page");function ZE(e,t){let n=Cm(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(ZE,"calculateBaseId");function w_(e,t,n=!1){let i=xp(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let a=[],s=c9(a,e),l=new wi,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:ZE(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Os(p,u,[],[],e.jsonSchema)}return i}o(w_,"exportListReportPage");function M_(e,t,n=!1){let i=e.page.config,r=xp(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=of(e.manifest[we.ManifestSection.generic].pages,a,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new wi,u=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:ZE(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Os(p,u,[],[],e.jsonSchema)}return r}o(M_,"exportAnalyticalListPage");function k_(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=xp(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=$c(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return ae(e.logger,{severity:we.LogSeverity.Error,message:Q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let u=new wi,p=u.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&s9(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:ZE(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Os(g,p,[],[],e.jsonSchema)}}return a}o(k_,"exportObjectPage");var U_=o(e=>{let t=xp();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new wi,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Pp(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),l9=o((e,t,n)=>{var s;let i=xp();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new Ym,e);r.settings=Object.assign(new us,e.settings);for(let l in n.definitions.AppSettings.properties){let u=Dn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),g=Bn(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],is(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&qS(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function j_(e,t){if(e[we.SchemaType.ListReport])return tP(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return k_(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return U_(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return l9(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return M_(e[we.SchemaType.AnalyticalListPage],t)}o(j_,"exportPageV2");function eP(e,t,n=!1){if(e[we.SchemaType.ListReport])return tP(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return k_(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return U_(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return M_(e[we.SchemaType.AnalyticalListPage],t,n)}o(eP,"exportConfigEntityByPathV2");var Na=te(ce());function B_(e,t){e.anyOf&&e.anyOf.forEach(function(n){Hc(n,t)})}o(B_,"addAnyOfToReferredTypes");function uy(e){return typeof e.items!="object"||Array.isArray(e.items)?void 0:e.items}o(uy,"getSingleItem");function Hc(e,t){if(typeof e!="object")return;let n=va(e);n&&H_(n,t),B_(e,t),Hc(e.additionalProperties,t),Hc(uy(e),t)}o(Hc,"addReferredTypesFromElement");function H_(e,t){t.referredTypeNames.add(e);let n=t.types[e];Hc(n,t);let i=n.properties;i?Object.values(i).forEach(r=>Hc(r,t)):Hc(uy(n),t),Hc(n.additionalProperties,t)}o(H_,"addReferredTypesFromType");function fy(e,t,n,i,r){if(typeof t!="object")return;let a=va(t);if(a){let s=r.types[a];if(s||(s=e==null?void 0:e.refTypeDefinition,r.types[a]=s),e){let l;if(e.suffix){let p=`${a}<${e.suffix}>`;t.$ref=bm(p),l=structuredClone(s),r.types[p]=l,r.referredTypeNames.add(p)}else r.referredTypeNames.add(a),l=s;let u={pageInfo:i.pageInfo,specificParams:e.specificParams||i.specificParams};nP(n,u,e.syncRuleProvider,l,r)}else H_(a,r)}else nP(n,i,e==null?void 0:e.syncRuleProvider,t,r)}o(fy,"applyAdaptationInfoToElement");function $_(e,t,n,i){let r=i==null?void 0:i.elementAdapter;return r?r(n,t,e):{}}o($_,"applySyncRuleToElement");function nP(e,t,n,i,r){var h,S;let a=_D(n),s=$_(e,t,i,a);if(!s)return;fy(s.additionalPropertiesAdaptation,i.additionalProperties,e,t,r);let l={pageInfo:t.pageInfo,specificParams:((h=s.referenceAdaptation)==null?void 0:h.specificParams)||t.specificParams},u=i.properties,p;if(u)p=u;else{let b=uy(i);if(b)u={items:b},p=i;else return}let g,m=((S=s.referenceAdaptation)==null?void 0:S.processingRuleProvider)||function(b,O){g=g||n&&new n;let N=Dn(g,b);return $_(e,l,O,N)};for(let b in u){let O=u[b];if(typeof O!="object"){p[b]=O;continue}let N={...O},M=m(b,N);M?(M.controlId?N[Na.SchemaTag.controlId]=`${t.pageInfo.controlId}--${M.controlId}`:M.manifestPath&&(N[Na.SchemaTag.artifactType]="Manifest",N[Na.SchemaTag.manifestPath]=M.manifestPath),B_(N,r),fy(M.referenceAdaptation,N,e,l,r),fy(M.additionalPropertiesAdaptation,N.additionalProperties,e,l,r),fy(M.itemsAdaptation,uy(N),e,l,r),p[b]=N):delete p[b]}}o(nP,"adjustElement");function f9(e,t,n){let i=t.split("."),r=i[i.length-1],a=t+".view."+(r==="ObjectPage"?"Details":r);return`${e}::${a}::${n}`}o(f9,"getViewId");function G_(e,t,n){var re;qt();let i=dc(e.manifest,Na.FioriElementsVersion.v2,n);if(!i||i===Na.TemplateType.OverviewPageV2)return;let r=ef(e.pagePath,!1),{parent:a}=Ko(e.manifest,r);if(!a)return;let s=a.component;if(jc(a,"entitySet",n,"string",!0)||jc(s,"name",n,"string",!0))return;let l=a.entitySet,u=s.name,p=t(u),g=p==null?void 0:p.genericSchema,m=p==null?void 0:p.syncRuleProvider;if(!m||!g)return g;let h=e.parsedAnnotations||Hr(e.annotations,n),S=(re=h==null?void 0:h.entitySets)==null?void 0:re.find(Z=>Z.name===l);if(!S)return g;let b=structuredClone(g),O=f9(e.appId,u,l),M={pageInfo:{appId:e.appId,componentName:u,entitySet:l,controlId:O,pagePath:e.pagePath}},G={templateType:i,manifest:e.manifest,serviceAVT:h,fioriElementsVersion:Na.FioriElementsVersion.v2,entitySet:S,fragments:e.fragments,logger:n,entityType:S.entityType},j={types:b.definitions,referredTypeNames:new Set};nP(G,M,m,b,j);for(let Z in b.definitions)j.referredTypeNames.has(Z)||delete b.definitions[Z];return b}o(G_,"getAdaptedSchema");var W_=te(ce());var Qo=class{};o(Qo,"ListReportNew"),y([T({flex:{controlType:o(()=>W_.ControlType.DynamicPage,"controlType")},elementAdapter(){return{controlId:"page"}}})],Qo.prototype,"fitContent",2),Qo=y([nr({id:T_,pageId:Sp}),T({elementAdapter(e,t,n){let i=ef(t.pageInfo.pagePath),{entityType:r,uIAnnotations:a}=Ml(n),{value:s}=Ko(n.manifest,i);return{referenceAdaptation:{specificParams:{settings:s,entityType:r,uIAnnotations:a}}}}})],Qo);var aP=require("path"),Z_=require("fs");var Pr=te(ce());function u9(e){let t={};return e.flex.forEach(function(i){let r=br(i);if(r){let a=r,s=t[a.controlId]||[];s.push(a),t[a.controlId]=s}}),t}o(u9,"getChangeMapFormImportParameters");function iP(e,t,n,i,r){if(e===void 0)return;let a=va(t),s=a?n[a]:void 0;if(t[Pr.SchemaTag.conversionExit]&&(e=ny(!0,r.conversionExitProvider,t,e,i.fragments,void 0,i.logger),!s))return e;if(s)return iP(e,s,n,i,r);if(t.type==="object"&&t.properties&&typeof e=="object"){let l={},u=!1;for(let p in t.properties){let g=t.properties[p],m=iP(e[p],g,n,i,r);m!==void 0&&(u=!0,l[p]=m)}return u?l:void 0}return t.type==="array"&&!Array.isArray(e)?typeof e=="string"&&e!==""?e.split(","):void 0:e}o(iP,"getConfigRep");function K_(e,t,n,i,r,a,s,l){let u=iP(r,a,s,l,t);if(u===void 0)return;let p=e,g=[];n.forEach(function(m){g.push(m);let h=m.propertyName;p[h]=p[h]||t.propertyInstanceProvider(g),p=p[h]}),p[i]=u}o(K_,"transferValueToConfig");function p9(e,t,n,i,r,a,s,l){let u=r[Pr.SchemaTag.controlId],p=l[u];if(!p)return;let g=-1,m=p.find(function(h,S){return h.content.property===i?(g=S,!0):!1});m&&(K_(e,t,n,i,m.type==="propertyBindingChange"?m.content.newBinding:m.content.newValue,r,a,s),p.length===1?delete l[u]:p.splice(g,1))}o(p9,"importFlexChangesToConfigProperty");function d9(e,t,n,i,r,a,s){let l=r[Pr.SchemaTag.manifestPath],u,p;Array.isArray(l)?(p=l,u=!0):(p=l.path,u=l.addTargetPropertyToPath);let{hasPath:g,value:m,parent:h}=Ko(s.manifest,p,u?i:void 0);if(!g)return;K_(e,t,n,i,u?m:h,r,a,s)}o(d9,"importManifestToConfigProperty");function X_(e,t,n,i,r,a,s){if(La(n.properties))for(let l in n.properties){let u=n.properties[l];if(!La(u))continue;let p=u[Pr.SchemaTag.artifactType];if(p===Pr.ArtifactType.FlexChange)p9(e,t,i,l,u,r,a,s);else if(p===Pr.ArtifactType.Manifest&&u[Pr.SchemaTag.manifestPath])d9(e,t,i,l,u,r,a);else{let g=va(u),m=g?r[g]:void 0;if(La(m)){let h=i.concat([{propertyName:l,propertyType:g.split("<")[0]}]);X_(e,t,m,h,r,a,s)}}}}o(X_,"importDefinitionIntoConfig");function Q_(e,t,n){var h;let i=dc(e.manifest,Pr.FioriElementsVersion.v2,e.logger);if(!i||i===Pr.TemplateType.OverviewPageV2)return;let r=ef(t,!1),{parent:a}=Ko(e.manifest,r),s=(h=a==null?void 0:a.component)==null?void 0:h.name,l=typeof s=="string"?n(s):void 0;if(!l)return;let u=u9(e),p=e.jsonSchema,g=p.definitions,m=l.propertyInstanceProvider([]);return X_(m,l,p,[],g,e,u),m}o(Q_,"getConfigForPage");var xi=te(ce());function g9(e,t,n,i){let r=t===void 0?null:t,a=typeof r=="string"&&r.startsWith("{");i.push({controlId:e[xi.SchemaTag.controlId],controlType:e[xi.SchemaTag.controlType],propertyName:n,newValue:r,isBinding:a})}o(g9,"addFlexChangeInfoToList");function q_(e,t,n,i){var l;if(n[xi.SchemaTag.conversionExit])return ny(!1,i.conversionExitProvider,n,e,i.fragments,t);if(n.type==="array"&&((l=n.items)==null?void 0:l.type)==="string")return!Array.isArray(e)||e.length===0?t===""||typeof t!="string"?t:void 0:e.join(",");if(e===t||n.type!=="object"||!n.properties)return e;let r=typeof t=="object"&&t!==null?{...t}:{},a=!1,s=!1;for(let u in n.properties){let p=n.properties[u];if(!La(p))continue;let g=va(p);p=g&&i.globalTypeDefinitions[g]||p;let m=r[u];s=s||m!==void 0;let h=q_(e?e[u]:void 0,m,p,i);h===void 0?delete r[u]:(r[u]=h,a=!0)}return a?r:s?Object.keys(t).every(u=>La(n.properties[u]))?void 0:r:t}o(q_,"getValueForManifest");function rP(e,t){if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e!==t;if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length||e.some(function(r,a){return rP(r,t[a])}):!0;let n=Object.keys(e).filter(r=>e[r]!==void 0),i=Object.keys(t).filter(r=>t[r]!==void 0);return n.length!==i.length||n.some(function(r){return rP(e[r],t[r])})}o(rP,"isDifferent");function m9(e){return!e||!Object.keys(e).some(t=>e[t]!==void 0)}o(m9,"isEmpty");function h9(e,t,n,i,r){let a=n.manifest,s=e.length-1,l=e[s],u=[];e.some(function(m,h){if(h===s)return!0;let S=a[m];if(typeof S!="object"||S===null)return!0;a=S,u.push(a)});let p=u.length===s?a[l]:void 0,g=q_(t,p,i,r);if(rP(g,p))if(g===void 0){n.manifestChangeIndicator=xi.ChangeIndicator.Deleted;for(let m=s;m>0;m--){let h=u[m];if(!m9(h))break;let S=u[m-1],b=e[m];delete S[b]}}else{for(let m=u.length;m<s;m++){let h={};a[e[m]]=h,a=h}a[l]=g,n.manifestChangeIndicator=p===void 0?xi.ChangeIndicator.Created:xi.ChangeIndicator.Updated}}o(h9,"applyManifestChange");function y9(e,t,n,i,r){let a=e==null?void 0:e[n],s=i[xi.SchemaTag.artifactType];if(s===xi.ArtifactType.FlexChange)g9(i,a,n,t.flexList);else if(s===xi.ArtifactType.Manifest&&i[xi.SchemaTag.manifestPath]){let l,u=i[xi.SchemaTag.manifestPath];Array.isArray(u)?l=u.concat([n]):(l=u.path,u.addTargetPropertyToPath&&(l=l.concat([n]))),h9(l,a,t,i,r)}else{let l=va(i),u=l?r.globalTypeDefinitions[l]:void 0;La(u)&&Y_(a,t,u,r)}}o(y9,"transferConfigPropertyToExportResults");function Y_(e,t,n,i){let r=n.properties||{};for(let a in r){let s=n.properties[a];La(s)&&y9(e,t,a,s,i)}}o(Y_,"transferConfigToExportResults");function z_(e){let t=e.config,n=e.jsonSchema.definitions,i=(e.fragments||[]).map(function(s){return{...s,changeIndicator:xi.ChangeIndicator.NoChange}}),r={globalTypeDefinitions:n,conversionExitProvider:e.conversionExitProvider,fragments:i},a={manifest:structuredClone(e.manifest),manifestChangeIndicator:xi.ChangeIndicator.NoChange,flexList:[],fragments:i};return Y_(t,a,e.jsonSchema,r),a}o(z_,"exportPage");var T9=!1,v9={generateListReportSchemaV2(e,t){return D_(e,t)},createListReportConfig(e){return x_(e)},exportListReportPage(e,t,n){return w_(e,t,n)}},oP;function b9(){let e;if(__dirname.endsWith("dist"))e=__dirname;else{let i=__dirname.lastIndexOf("specification");e=(0,aP.join)(__dirname.substring(0,i+13),"dist")}let t=(0,aP.join)(e,"schemas","v2","ListReportNewConfig.json");return JSON.parse((0,Z_.readFileSync)(t,"utf8"))}o(b9,"getPersistentListReportNewSchema");function S9(){let e=b9();return function(t){return t===Sp?{genericSchema:e,syncRuleProvider:Qo}:void 0}}o(S9,"createGenericSchemaInfoProvider");function A9(e){return e===Sp?{propertyInstanceProvider:o(function(t){return new Qo},"propertyInstanceProvider")}:void 0}o(A9,"getConfigInfo");function J_(e){let{value:t}=Ko(e,[Rs.ManifestSection.generic],"pages");return Array.isArray(t)?[0]:t&&typeof t=="object"?[Object.keys(t)[0]]:void 0}o(J_,"getPagePathForRootPage");function E9(e,t,n){let i=!e.layer||e.layer===Rs.FlexChangeLayer.Customer,r={controlId:n.controlId,controlType:n.controlType,content:{property:n.propertyName},sapui5Version:e.ui5Version,isCustomer:i};return n.isBinding?(r.content.newBinding=n.newValue,r.type="propertyBindingChange"):r.content.newValue=n.newValue,Im(r,t)}o(E9,"flexInfoToChangeString");function P9(){let e=S9(),t=o(function(n,i,r){let a=structuredClone(i.manifest);return a[Rs.ManifestSection.app].id=n,i.flexList.map(E9.bind(null,r,a))},"getFlexChangesAsStrings");return{generateListReportSchemaV2(n){var s;let i=n.manifest,r=J_(i);if(!r)return null;let a={appId:((s=i[Rs.ManifestSection.app])==null?void 0:s.id)||"",manifest:i,pagePath:r,annotations:[],parsedAnnotations:n.serviceAVT,fragments:n.fragments};return G_(a,e,n.logger)},createListReportConfig(n){let i=J_(n.manifest);return Q_(n,i,A9)},exportListReportPage(n,i,r){let a=n.fragments?n.fragments.map(function(p){return{...p,changeIndicator:Rs.ChangeIndicator.NoChange}}):[],s={appId:n.appId,config:n.page.config,manifest:n.manifest,jsonSchema:n.jsonSchema,fragments:a,logger:n.logger},l=z_(s),u=t(n.appId,l,i);return{manifest:l.manifest,fragments:l.fragments,flexChanges:u,manifestChangeIndicator:l.manifestChangeIndicator}}}}o(P9,"createPageHandlerLRGeneric");function sP(){return T9?(oP=oP||P9(),oP):v9}o(sP,"getPageHandlerLR");function Cp(e,t){return sP().generateListReportSchemaV2(e,t)}o(Cp,"generateListReportSchemaV2");function py(e){return sP().createListReportConfig(e)}o(py,"createListReportConfig");function tP(e,t,n=!1){return sP().exportListReportPage(e,t,n)}o(tP,"exportListReportPage");function gy(e,t){var n,i;return(n=e.component)!=null&&n.name?Tm(ha((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(gy,"generateId");function x9(e,t,n,i){e.navigation={};let r=eV(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=gy(t.pages[a],a);e.entitySet?e.navigation[s]=r[s].navigationProperty?`${e.entitySet}.${r[s].navigationProperty}`:e.entitySet:e.navigation[s]=r[s].navigationProperty?r[s].navigationProperty:s}}o(x9,"getPageConfigsAndNavigations");function eV(e,t){var i;let n={};for(let r in e){let a=e[r],s=gy(a,r);if(!s)continue;let l={pageType:ha((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let u=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(u)if(l.pageType===Vn.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=py(p)}else if(l.pageType===Vn.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=ly(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=sy(p)}a.pages&&x9(l,a,t,n)}return n}o(eV,"getPagesAndConfigs");var cP=class cP extends fs{constructor(t){qt();let n;t.manifest[Vn.ManifestSection.generic]?n=t.manifest[Vn.ManifestSection.generic].pages:ae(t.logger,{severity:Vn.LogSeverity.Error,message:Q.t("NOFE"),location:{path:Vn.MANIFESTPATH,range:[Vn.ManifestSection.generic]}}),n||ae(t.logger,{severity:Vn.LogSeverity.Error,message:Q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:Vn.MANIFESTPATH,range:[Vn.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&gy(n[i],i),a=new us,s=_t(Vn.SchemaType.Application),l=t.appSchemas[s.filename];_n(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,eV(n,t),a)}};o(cP,"V2AppProvider");var dy=cP;function Ip(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||ae(n,{severity:Vn.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:Vn.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let u=gy(l,s);i[u]=l}if(t===Vn.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=Ip(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(Ip,"getPages");var Gc=te(ce());var lP=class lP extends fs{constructor(t){let n={},i=t.manifest[Gc.ManifestSection.ovp],r=new us,a=_t(Gc.SchemaType.Application);_n(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(Gc.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:Gc.PageTypeV2.OverviewPage,config:cy(l),entitySet:i.globalFilterEntitySet},p=Tm(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(lP,"V2OvpProvider");var my=lP;var _=te(ce()),Wc=require("@sap-ux/vocabularies-types/vocabularies/UI");var C9=["header","filterBar","chart","table"],fP="@UI.LineItem";function uP(e,t,n,i,r){if(i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=vr(e.fullyQualifiedName,Wc.UIAnnotationTerms.SelectionFields,r)),n){let a=0;n==null||n.forEach(s=>{var g,m;let l=s.value,u="SelectionField::"+lt(s.value);s.type==="PropertyPath"&&(l=gm(s,e)),i.properties[u]={$ref:$+u},i.properties[u][_.SchemaTag.propertyIndex]=a;let p=Kr(s);t.definitions[u]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[u][_.SchemaTag.isViewNode]=!0,t.definitions[u][_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:`${s.value}`}],((g=s.$target)==null?void 0:g.fullyQualifiedName.indexOf("@"))>-1?t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[u][_.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[u][_.SchemaTag.annotationPath]=`${i[_.SchemaTag.annotationPath]}/${a}`,a++})}return i}o(uP,"addSelectionFields");function I9(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${Wc.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let a={};return Object.keys(t).forEach(s=>{t[s].template||(a[s]=t[s])}),Object.keys(a).length>0?a:void 0}}o(I9,"getVisualFilters");function O9(e,t){let n=[];return e==null||e.forEach(i=>n.push(i.value)),t&&t.entityProperties.forEach(i=>n.includes(i.name)?void 0:n.push(i.name)),n}o(O9,"getPropertiesIndex");function R9(e,t,n,i){var s,l,u,p,g,m;let r=O9(i,e),a=t.definitions[_.DefinitionName.VisualFilters];a.properties={};for(let h in n){let S=n[h];if(!S.template){let b=a.properties[h]={$ref:oi(_.DefinitionName.VisualFilter,h)},O=r.indexOf(h);O!==-1&&(b[_.SchemaTag.propertyIndex]=O);let N=vt(_.DefinitionName.VisualFilter,h,t);(s=S.visualFilter)!=null&&s.valueList&&(N[_.SchemaTag.annotationPath]=`${h}/@${S.visualFilter.valueList}`);let M=(m=(g=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(G=>G.name===h))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:g.Label)==null?void 0:m.toString();N.description=M||h,N[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:h}]}}}o(R9,"addVisualFilters");function L9(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},n1(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&os(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}o(L9,"applyCustomFilterFields");function N9(e,t,n,i){var l,u;let r=I9(n),a=i&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[i])==null?void 0:u.SelectionFields),s;if(r)t.definitions[_.DefinitionName.SelectionFields][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.SelectionFields].properties={},s=t.definitions[_.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},R9(e,t,r,a);else{let p=t.definitions[_.DefinitionName.FilterBar];p.properties.initialLayout[_.SchemaTag.hidden]=!0,p.properties.layout[_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.CompactFilters][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.VisualFilters][_.SchemaTag.hidden]=!0}s=uP(e,t,a,s),L9(t,s,n)}o(N9,"addFilterBar");function tV(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let a=e.definitions[t];a.properties={},a.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${_.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(u=>{let p=lt(`${_.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=ai(u,r),m=u.$Type.split(`${_.UIVOCABULARY}.`)[1],h=a.properties[`${m}::${u.Action}`]={$ref:$+p,description:g};h[_.SchemaTag.propertyIndex]=l,h[_.SchemaTag.annotationType]=u.$Type,h[_.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[_.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][_.SchemaTag.annotationPath]=u.fullyQualifiedName,l++})}}o(tV,"defineActions");function nV(e,t,n,i){var l;let r,a,s;return e&&(n==="primary"?a=e.find(u=>u.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(u=>u.value.indexOf(_.FacetBase.LineItem)>-1):i?a=e.find(u=>u.value.indexOf(i)>-1):a=e[0],r=typeof(a==null?void 0:a.value)=="string"?Ll(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",_.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(nV,"findTheRightVisualization");function F9(e,t,n,i){let r="@UI.Chart",a=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:r,targetAnnotation:a,chartTitle:s}}o(F9,"analyzeChartAnnotation");function D9(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=nV((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(ae(r,{severity:_.LogSeverity.Error,message:Q.t("NOVISUALIZATIONS")}),s=fP,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(D9,"analyzeSPVforView");function cf(e,t,n,i,r,a){let s,l,u=e==null?void 0:e.split(`${_.UIVOCABULARY}.`)[1],p=u&&t[u];if(!p)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=p.Text,s=p.fullyQualifiedName.split(_.UIVOCABULARYALPHADOT)[0],u.startsWith("PresentationVariant")){let{visualization:g,targetAnnotation:m}=nV(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return D9(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=fP,m=`/${s}/@${Wc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=fP;p.qualifier&&(g+=`#${p.qualifier}`);let m=e.substring(0,1)==="@"?`/${s}/${e}`:`/${s}/@${e}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("Chart")){let{visualization:g,targetAnnotation:m,chartTitle:h}=F9(s,e,p,i);return{visualization:g,targetAnnotation:m,namespace:s,title:h}}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}o(cf,"analyzeViewAnnotation");function _9(e,t,n,i){let r=e.definitions[_.DefinitionName.ALPChartView];if(e.definitions[_.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.isViewNode],n&&(e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.annotationPath]=n),e.definitions[_.DefinitionName.ALPChart].properties.annotationPath[_.SchemaTag.hidden]=!0,r.properties.annotationPath[_.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${$}${_.DefinitionName.ALPChart}`,t){let a=t.split(_.UIVOCABULARYDOT)[1];if(i[a]){let s=i[a].fullyQualifiedName.split("@");r[_.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}else Pa(r,Q.t("UNEXISTING_ANNOTATION_PATH"))}r[_.SchemaTag.artifactType]=_.ArtifactType.Manifest,r[_.SchemaTag.key]="primary",r[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"primary"}]}o(_9,"addALPChartView");function V9(e,t,n,i,r,a){var M,G,j,re,Z,oe,Pe,D;let s=(M=n.entityType)==null?void 0:M.annotations.UI,l=(re=(j=(G=t==null?void 0:t[0])==null?void 0:G.primary)==null?void 0:j[0])==null?void 0:re[_.SchemaTag.annotationPath],{targetAnnotation:u}=cf(l,s,n.serviceAVT,"primary",void 0,n.logger);_9(e,l,u,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=$+p,tV(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=cf((Pe=(oe=(Z=t==null?void 0:t[0])==null?void 0:Z.secondary)==null?void 0:oe[0])==null?void 0:Pe[_.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),h=e.definitions[a];g||i?(h.properties.toolBar.$ref=`${$}${_.DefinitionName.ToolBarLR}`,h.properties.columns={$ref:$+_.DefinitionName.LineItems},h.properties.annotationPath[_.SchemaTag.hidden]=!0):h.properties={};let S=e.definitions[_.DefinitionName.ALPTableView];e.definitions[_.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(S)),delete e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.isViewNode],S.additionalProperties=!1,S.description="Table (key: secondary)",S.title="Table",g?(delete S.properties,S.$ref=`${$}${_.DefinitionName.ALPTable}`):i||(S.properties={}),S[_.SchemaTag.artifactType]=_.ArtifactType.Manifest;let b,O;if(g&&g.indexOf(_.FacetBase.LineItem)>-1?(b=g.split(".")[1],O=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(b=O=i.split(_.UIVOCABULARYDOT)[1]),b){let pt={isObjectPage:!1,appSchema:e,lineItemAnnotation:(D=n.entityType)==null?void 0:D.annotations.UI[b],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:_.DefinitionName.LineItems};Tc(pt,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let yt=s[O].fullyQualifiedName.split("@");S[_.SchemaTag.annotationPath]=`/${yt[0]}/@${yt[1]}`,S[_.SchemaTag.key]="secondary",S[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}yc(e,r,n.logger);let N=`${_.DefinitionName.Actions}<${lt(_.DefinitionName.LineItems)}>`;Aa(e,r,n.logger,void 0,N),uo(e,N,_.DefinitionName.CustomActionPosition)}o(V9,"addALPViews");function w9(e,t){let n=`${_.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][_.SchemaTag.isViewNode],e.appSchema.definitions[n][_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${_.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${$}${i}`;let r=`${_.DefinitionName.Actions}<${e.viewKey}>`;return tV(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${$}${r}`,n}o(w9,"addViewChartDefinitions");function M9(e,t,n,i,r,a){let s=w9(e,t);n.definitions[s].properties.annotationPath[_.SchemaTag.hidden]=!0,n.definitions[s].properties.index[_.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[_.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${$}${s}`,description:a||l,title:l}}o(M9,"addViewChart");function k9(e,t,n,i,r){var m;let a=`${_.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=vt(_.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[_.SchemaTag.isViewNode],l[_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),cs(l.properties.toolBar,_.DefinitionName.ToolBar,s);let u=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${$}${a}`,description:e.title||u,title:u},cs(l.properties.columns,s),l.properties.annotationPath[_.SchemaTag.hidden]=!0,l.properties.index[_.SchemaTag.hidden]=!0,l.properties.entitySet[_.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(_.UIVOCABULARYDOT)[1],g={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s};Tc(g,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}o(k9,"addViewLineItems");function U9(e,t,n,i){e.properties[t][_.SchemaTag.isViewNode]=!0,e.properties[t][_.SchemaTag.annotationPath]=n?`/${n}/@${i[_.SchemaTag.annotationPath]}`:void 0,e.properties[t][_.SchemaTag.artifactType]=_.ArtifactType.Manifest,e.properties[t][_.SchemaTag.key]=t,e.properties[t][_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:t}]}o(U9,"addTagsToView");function j9(e,t,n){var a;let i=n.entityType,r=e;return t.entitySet&&t.entitySet!==e.name&&(r=(a=n.serviceAVT)==null?void 0:a.entitySets.find(s=>s.name===t.entitySet),i=r.entityType),i}o(j9,"getTargetEntityType");function $9(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${Wc.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=vt(_.DefinitionName.ViewCustomColumn,r,e.appSchema);cs(l.properties.position,_.DefinitionName.ViewPosition,r),vt(_.DefinitionName.ViewPosition,r,e.appSchema),yc(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),vc(e.appSchema,r,i,`${_.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&delete e.appSchema.definitions.Position;let u=`${_.DefinitionName.Actions}<${r}>`,p=`${_.DefinitionName.ViewCustomAction}<${r}>`;Aa(e.appSchema,i,t.logger,p,u,s),vt(_.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${_.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${$}${g}`,uo(e.appSchema,u,g)}o($9,"addViewCustomExtensions");function B9(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)k9(n,t,e,n.targetAnnotation,i),$9(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)M9(n,a,n.appSchema,t,n.viewKey,n.title);else if(s.template){let l=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${$}${_.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${$}${_.DefinitionName.LRTableView}`}}}o(B9,"addLRViewParts");function H9(e,t,n,i,r){var l;let a=e.definitions[r];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let u of t){if(!u[_.SchemaTag.key])continue;let p,g=j9(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:h,targetAnnotation:S,namespace:b,title:O}=cf(u==null?void 0:u[_.SchemaTag.annotationPath],m,n.serviceAVT,u[_.SchemaTag.key],void 0,n.logger);u.entitySet&&(p=(l=n.entityType.navigationProperties.find(G=>G.targetTypeName===b))==null?void 0:l.name);let N=lt(u[_.SchemaTag.key]),M={viewKey:N,appSchema:e,targetAnnotation:S,navPropName:p,targetEntityType:g,title:O,entitySet:u.entitySet};B9(h,s,M,n,i,m,u),U9(s,N,b,u)}}o(H9,"addLRViews");function G9(e,t,n,i,r,a){var g,m,h,S,b,O,N,M,G,j,re,Z,oe;let s=e.definitions[a],{visualization:l,targetAnnotation:u,namespace:p}=cf(n,(g=t.entityType)==null?void 0:g.annotations.UI,t.serviceAVT,void 0,_.Visualization.LineItem,t.logger);if(l){let Pe=l.split(".")[1],D=`${_.DefinitionName.LineItems}OfSPV::${lt(Pe)}`,pt=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete pt[_.SchemaTag.isViewNode],cs(pt.properties.toolBar,_.DefinitionName.ToolBar,D),pt[_.SchemaTag.annotationPath]=u,pt.properties.columns={},cs(pt.properties.columns,D),delete s.properties,cs(s,`${a}SPV`),s[_.SchemaTag.annotationPath]=`/${p}/@${n}`;let yt=(m=t.entityType)==null?void 0:m.annotations.UI[Pe];yt||ae(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOTARGET",{target:Pe})});let je={isObjectPage:!1,appSchema:e,lineItemAnnotation:yt,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D};Tc(je);let cn=(h=Pe.split("#"))==null?void 0:h[1],Wn=cn?`@${Wc.UIAnnotationTerms.LineItem}#${cn}`:`@${Wc.UIAnnotationTerms.LineItem}`;yc(e,i,t.logger,void 0,D,Wn),vc(e,D,i,void 0,Wn);let nn=`${_.DefinitionName.Actions}<${D}>`,Nt=Qm(e,D,_.DefinitionName.CustomTableAction);Aa(e,i,t.logger,on(Nt),nn,Wn),uo(e,nn,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${$}${_.DefinitionName.ToolBarLR}`,cs(s.properties.columns,_.DefinitionName.LineItems);let Pe=(O=(b=(S=t.entityType)==null?void 0:S.annotations)==null?void 0:b[r])==null?void 0:O.LineItem;!Pe&&!((G=(M=(N=i.options)==null?void 0:N.settings)==null?void 0:M.views)!=null&&G.paths)&&ae(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOLINEITEMS")});let D={isObjectPage:!1,appSchema:e,lineItemAnnotation:Pe,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_.DefinitionName.LineItems};Tc(D),yc(e,i,t.logger),vc(e,_.DefinitionName.LineItems,i),Pe&&!((Z=(re=(j=i.options)==null?void 0:j.settings)==null?void 0:re.views)!=null&&Z.paths)&&(s[_.SchemaTag.annotationPath]=vr((oe=t.entityType)==null?void 0:oe.fullyQualifiedName,Pe.term,Pe.qualifier));let pt=`${_.DefinitionName.Actions}<${lt(_.DefinitionName.LineItems)}>`;Aa(e,i,t.logger,void 0,pt),uo(e,pt,_.DefinitionName.CustomActionPosition)}}o(G9,"adaptTableDefinition");function W9(e,t,n){var i,r,a,s,l,u,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===_.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===_.TemplateType.ListReportObjectPageV4)return((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((p=(u=t==null?void 0:t.annotations.UI)==null?void 0:u.PresentationVariant)==null?void 0:p.term)}}o(W9,"getDefaultAnnotationPath");function K9(e,t,n,i){var u,p,g,m,h;let r=(g=(p=(u=t.options)==null?void 0:u.settings)==null?void 0:p.views)==null?void 0:g.paths,a=n.entityType,s=W9(t,n.entityType,n.templateType),l=e1(e,n);N9(a,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(G9(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],H9(e,r,n,t,l)):(h=(m=t.options)==null?void 0:m.settings)!=null&&h.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[_.PropertyName.chart][_.SchemaTag.hidden]=!0):n.templateType===_.TemplateType.AnalyticalListPageV4&&(V9(e,r,n,s,t,l),vc(e,_.DefinitionName.LineItems,t))}o(K9,"addTableAndViews");function X9(e,t,n){let i=_.DefinitionName.HeaderActions,r=e.definitions[i];r[_.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=_.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[_.SchemaTag.isViewNode]=!0,s.description="Custom Action",Nm(e,t,n,a,i);let l=_.DefinitionName.CustomHeaderActionPosition;vt(l,l,e,!1),s.properties.position.$ref=`${$}${l}`,uo(e,i,l)}o(X9,"addHeaderActions");function Op(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&ii(_.UIVOCABULARY,e.serviceAVT);if(r.properties[_.PropertyName.defaultTemplateAnnotationPath][_.SchemaTag.hidden]=!0,ss(a,r,_.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[_.ManifestSection.ui5].routing.targets;if(!l)return ae(e.logger,{severity:_.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let u=Lm(l,n,e.entitySet,i);if(!u)return r;X9(r,u,e.logger),K9(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,ko(r,C9),r}o(Op,"generateListReportSchemaV4");var Bi=require("@sap-ux/vocabularies-types/vocabularies/UI"),R=te(ce());var QM=te(uc()),qM=te(XM()),YM=te(QP());var zM=te(ce()),JM=te(ce());function vY(e,t){var i;let n=e;for(let r of t){let a=(i=n==null?void 0:n.elements)==null?void 0:i.filter(s=>s.type!=="comment");n=a==null?void 0:a[r.index]}return n}o(vY,"findElementByXMLPath");function ZM(e,t){return e[t]?!1:(e[t]={},!0)}o(ZM,"ensureObjectExists");function bY(e,t){let n={},i=on(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(bY,"getPropertiesFromRef");function SY(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=ZM(l,i),m=l[i];return Jc({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(SY,"traverseDefaultAggregation");function AY(e,t){var n,i,r;return(t==null?void 0:t.defaultAggregation)&&((r=(i=(n=e[t.defaultAggregation])==null?void 0:n.metadata)==null?void 0:i.path)==null?void 0:r.length)===0}o(AY,"isDefaultAggregationAppliable");function Jc(e,t){var g,m;let{schema:n,element:i,contextPath:r,config:a={},fullSchema:s}=e,l=!1,{properties:u={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(u=bY(s,n.$ref));for(let h in u){let S=u[h],b=typeof S=="object";if(b&&(p==null?void 0:p.defaultAggregation)===h&&AY(u,p)&&(l=SY(e,t,p)||l,b=!1),!!b)if((m=(g=S.metadata)==null?void 0:g.path)!=null&&m.length){let O=S.metadata.path,N=O.slice(r.length),M=vY(i,N);l=ZM(a,h)||l;let G=a[h];l=Jc({fullSchema:e.fullSchema,schema:S,element:M,contextPath:O,config:G,parent:e},t)||l}else l=t(e,S,a,h)||l}return l}o(Jc,"traverseSchema");function xf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,YM.parse)(e.fileContent),s=(0,qM.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,QM.xml2js)(e.fileContent)}catch(r){ae(n,{severity:JM.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:Sm(r)}),location:{path:e.dataSourceUri}})}return i}o(xf,"parseXML");function Cf(e){return`${zM.DefinitionName.CustomExtensionFragment}<${e}>`}o(Cf,"getCustomExtensionFragmentDefinitionKey");function sT(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(sT,"getRootElement");var ox=te(ce()),ax=te(ce());var td=te(ce());function ws(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(ws,"getAttribute");function ek(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(ek,"getNodeByName");function EY(e){let t=e.split("/"),n=[],i;for(let r of t)if(r){if(r.startsWith("@")){i=r;break}n.push(r)}return n.length?{path:n.join("/"),term:i}:{term:e}}o(EY,"resolveMetaPath");function ex(e){var b;let{node:t,serviceAVT:n,connectionContext:i}=e,r=ws(t,"contextPath")||i.contextPath,a=ws(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(a){let O=EY(a);O.path&&(u=l?O.path:`${u}/${O.path}`,a=O.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((b=p==null?void 0:p.target)==null?void 0:b._type){case"EntitySet":{g=p.target.entityType;break}case"NavigationProperty":{g=p.target.targetType;break}case"EntityType":{g=p.target;break}}let m,h=a.split("#");h.length&&(m=h[1]);let S;if(a){let O=a.split(".");O.length&&(S=O[O.length-1])}return g?{entityType:g,metaPath:a,qualifier:m,annotationKey:S}:void 0}o(ex,"getEntityTypeResolution");function tk(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(tk,"applyAnnotationPath");function PY(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let g=cf(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(g.visualization){let m=g.visualization.split(".")[1];a=(p=(u=r==null?void 0:r.annotations)==null?void 0:u[n])==null?void 0:p[m],a!=null&&a.fullyQualifiedName&&(s=tS(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(PY,"getTableLineItemAnnotationData");var nk={"sap.fe.macros.Chart":o(e=>{let t=ex(e);tk(e.schema,t)},"sap.fe.macros.Chart"),"sap.fe.macros.FilterBar":o(e=>{var s,l,u,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=ex(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let g=ii(td.UIVOCABULARY,n),m=g&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[g])==null?void 0:p[r.annotationKey]);uP(r.entityType,i,m,a,r.qualifier)}},"sap.fe.macros.FilterBar"),"sap.fe.macros.Table":o(e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=ex(e),a=t.properties.columns,s=t.properties.actions;if(typeof a=="object"&&typeof s=="object"&&r){a.properties||(a.properties={}),s.properties||(s.properties={});let l=ii(td.UIVOCABULARY,n);if(tk(t,r),t.annotationPath){let u=PY(r,n,l);u!=null&&u.annotationPath&&(t.annotationPath=u.annotationPath);let p={isObjectPage:!1,appSchema:i,lineItemAnnotation:u.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:td.DefinitionName.LineItems,isMacro:!0};yS(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var ik=te(ce());var xY=new Map([["filterFields","SelectionField::"]]),CY=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),nd={anchor:"anchor",placement:"placement",key:"key"};function IY(e,t){var n;if(typeof(e==null?void 0:e.additionalProperties)=="object"&&(e!=null&&e.additionalProperties.$ref)){let i=(n=t.definitions)==null?void 0:n[on(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return nd.anchor in r&&nd.placement in r}return!1}o(IY,"isCustomExtensionSchema");function rk(e){let t=xY.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=CY.get(e),t&&(n.prefix=t)),n}o(rk,"getAnnotationPrefix");function OY(e,t,n,i){let r=t.properties[n],a=rk(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=ws(l,nd.key)||n,p=ws(l,nd.anchor),g=ws(l,nd.placement)||ik.v4.Placement.After,m=a.replace?`${a.prefix}${p}`:p,h={position:{anchor:m in t.properties?m:p,placement:g}};return{key:u,extension:h}}o(OY,"getExtensionData");function RY(e,t,n){let i={},r=[],a={};for(let s in t.properties){let l=t.properties[s];if("metadata"in l){let{extension:u,key:p}=OY(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}ba(i,r,"","position");for(let s=0;s<r.length;s++){let l=r[s][0],u=t.properties[l];r[s][1].$ref==="#/definitions/"&&l in a&&(u=t.properties[a[l]]),u&&(u.propertyIndex=s)}}o(RY,"updatePropertyIndices");function LY(e,t,n,i){var a;let r=t;if(n.prefix&&r.startsWith(n.prefix))n.replace&&(r=r.replace(n.prefix,""));else if((a=i==null?void 0:i.metadata)!=null&&a.path){let s=i.metadata.path[i.metadata.path.length-1].index;r=ws(e.subElements[s],"key")||r}return r}o(LY,"getCorrectedAnchorEnumKey");function NY(e,t,n,i){var a,s;let r=rk(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;os(n,t,{property:u,schema:p},{excludeKey:l,resolveDefinition:!0});let g=((s=(a=p.properties)==null?void 0:a[u])==null?void 0:s.oneOf)||[];for(let m of g)typeof m=="object"&&typeof m.const=="string"&&(m.const=LY(e,m.const,r,t.properties[m.const]))}}o(NY,"applyEnumsForAnchors");function ok(e,t,n,i){IY(t,n)&&(i=i||e.name,RY(e,t,i),NY(e,t,n,i))}o(ok,"handleExtensions");var di=[];for(let e=0;e<256;++e)di.push((e+256).toString(16).slice(1));function ak(e,t=0){return(di[e[t+0]]+di[e[t+1]]+di[e[t+2]]+di[e[t+3]]+"-"+di[e[t+4]]+di[e[t+5]]+"-"+di[e[t+6]]+di[e[t+7]]+"-"+di[e[t+8]]+di[e[t+9]]+"-"+di[e[t+10]]+di[e[t+11]]+di[e[t+12]]+di[e[t+13]]+di[e[t+14]]+di[e[t+15]]).toLowerCase()}o(ak,"unsafeStringify");var sk=require("crypto");var lT=new Uint8Array(256),cT=lT.length;function tx(){return cT>lT.length-16&&((0,sk.randomFillSync)(lT),cT=0),lT.slice(cT,cT+=16)}o(tx,"rng");var ck=require("crypto"),nx={randomUUID:ck.randomUUID};function FY(e,t,n){var r;if(nx.randomUUID&&!t&&!e)return nx.randomUUID();e=e||{};let i=e.random??((r=e.rng)==null?void 0:r.call(e))??tx();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[n+a]=i[a];return t}return ak(i)}o(FY,"v4");var ix=FY;var rx="sap.fe.macros",DY=["id","key","title","text","label","header"];function lk(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(lk,"getElementName");function _Y(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(_Y,"isElementWithNamespace");function VY(e){let t={},n=e.attributes||[];for(let i of n){let{key:r,value:a}=i,s="",l="xmlns:";r.startsWith(l)&&(s=r.substring(l.length)),t[a]=s}return t}o(VY,"getDependencies");function wY(e,t){let n="",i=e.attributes||[];for(let r of DY){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(wY,"getViewNodeDescription");function MY(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(MY,"findAvailableName");function fk(e,t){if(e.properties={},e.$ref){let n=on(e.$ref),i=t.definitions[n];typeof i=="object"&&i.properties&&(e.type=i.type,e.isViewNode=i.isViewNode,e.properties=JSON.parse(JSON.stringify(i.properties))),delete e.$ref}}o(fk,"prepareSchemaProperties");function kY(e,t,n){t.properties||fk(t,n);let{properties:i={}}=t;for(let r of e.attributes){let a=i[r.key];a&&a.metadata&&(a.metadata.position=r.position)}}o(kY,"handleAttributes");function UY(e){e.type===ax.MacrosPropertyType.Control&&(e.internalId=ix())}o(UY,"applyIdForMacros");function jY(e,t,n){var i,r;try{(r=(i=nk)[e])==null||r.call(i,t)}catch{ae(n,{severity:ox.LogSeverity.Error,message:Q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(jY,"callAnnotationHandler");function $Y(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===ax.MacrosPropertyType.Control&&(e.controlName=n)}o($Y,"updateMetadataByReference");function BY(e,t,n,i){var h,S,b,O,N;let r=n.schema;t.properties||fk(t,r);let a=t.properties[i],s=(h=a==null?void 0:a.metadata)==null?void 0:h.type,l=(S=a==null?void 0:a.metadata)==null?void 0:S.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(O=(b=a==null?void 0:a.metadata)==null?void 0:b.path)!=null&&O.length?MY(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(on(a.$ref)):g=[`${rx}.${i}`,`${rx}.table.${i}`,`${rx}.filterBar.${i}`];let m=!1;for(let M of g){let G=(N=r.definitions)==null?void 0:N[M];if(typeof G!="object")continue;$Y(u,G,M);let j=wY(e,i),re={$ref:bm(M),description:j,propertyIndex:n.index,metadata:u};kY(e,re,r),t.properties[p]=re,m=!0,jY(M,{...n,node:e,schema:re,rootSchema:n.schema},n.logger);break}if(UY(u),!m)if(a!=null&&a.properties)a.metadata=u;else{let M={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=M}return p}o(BY,"addControlToSchema");function uk(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let a=r.$ref.split($)[1];a&&t.indexOf(a)===-1&&t.push(a)}uk(r,t)}}o(uk,"populateUsedDefinitionKeys");function HY(e,t){if(typeof t=="object"&&typeof t.additionalProperties=="object"&&t.additionalProperties.$ref){let i=t.additionalProperties.$ref.split(".");if(i[i.length-1]===e.name)return!0}return!1}o(HY,"isElementAddableToSchema");function GY(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!ek(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(GY,"getDefaultAggregation");function WY(e,t,n,i){let r={};for(let a=0;a<e.length;a++){let s=e[a],l=!r[s.name];r[s.name]=!0,pk(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:lk(s),index:a}]},i)}}o(WY,"handleSubElementsOfXMLNode");function pk(e,t,n,i){var g,m,h;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(g=n.schema.definitions)==null?void 0:g[on(t.$ref)]:t;if(_Y(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let S=(h=t.metadata)==null?void 0:h.defaultAggregation;S&&HY(e,t.properties[S])&&(t=t.properties[S]);let b=e.name.split(":"),O=BY(e,t,n,b[b.length-1]);if(t.properties[O])t=t.properties[O];else return}let{subElements:l=[]}=e,u=t!=null&&t.metadata?t.metadata.controlName:void 0;i&&u&&n.schema.definitions[u]&&i.indexOf(u)===-1&&(i.push(u),uk(t,i));let p=GY(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),WY(l,t,n,i),r.push({node:e,schema:t});for(let S of r)ok(S.node,S.schema,n.schema,S.name)}o(pk,"handleXMLNode");function KY(e,t){var i;let n=[];return(i=e==null?void 0:e.metadata)!=null&&i.namespaces&&e.metadata.namespaces.forEach(r=>{r in t&&n.push(t[r])}),n}o(KY,"getMacrosPrefixes");function Zc(e,t,n,i){let r=xf(t.file,!0,i),a=[];if(!r)return;qt();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){ae(i,{severity:ox.LogSeverity.Error,message:Q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=VY(l),p=KY(e,u);if(p.length){s=JSON.parse(JSON.stringify(e));let g={};for(let m=0;m<l.subElements.length;m++){let h=l.subElements[m],S=!g[h.name];g[h.name]=!0,pk(h,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:S,path:[{name:lk(h),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},a)}for(let m in s.definitions)s.definitions[m].metadata&&!a.includes(m)&&delete s.definitions[m]}return s}o(Zc,"generateMacrosSchemaDefinition");function dk(e,t){if(typeof e=="object")for(let n in e){let i=e[n];"template"in i&&i.template&&typeof i.template=="string"&&t.push(i.template),"subSections"in i&&dk(i.subSections,t)}}o(dk,"populateTemplates");function gk(e,t,n,i){var s,l,u;let r=bc(n.manifest,i),a=[];dk(((u=(l=(s=r==null?void 0:r.options)==null?void 0:s.settings.content)==null?void 0:l.body)==null?void 0:u.sections)||{},a);for(let p of a){if(!p)continue;let g={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=Cf(p);e.definitions[m]=g;let h=Sc(n.fragments,r,n.manifest,"fragment",p);if(h){g.metadata.filePath=h.relativeFilePath;let{properties:S={},definitions:b={}}=Zc(t,h,n.serviceAVT,n.logger)||{};g.properties=S;for(let O in b)e.definitions[O]||(e.definitions[O]=b[O])}}return t}o(gk,"resolveFragments");var XY=["header","layout","sections","footer"],QY=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],cx="Custom Action";function vk(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=Gm(t.item,e),p=Wr(t.item),m=t.item.$Type===Bi.UIAnnotationTypes.DataFieldForActionGroup,h=m?R.DefinitionName.ObjectPageHeaderActionGroup:R.DefinitionName.ObjectPageHeaderAction,S=t.item.fullyQualifiedName.replace(`@${Bi.UIAnnotationTerms.Identification}`,`/@${Bi.UIAnnotationTerms.Identification}`),b=`${h}<${lt(p)}>`,O=i.definitions[b]={type:"object",$ref:`${$}${h}`,description:ai(t.item,r)};if(O[R.SchemaTag.isViewNode]=!0,O[R.SchemaTag.dataType]=Kr(t.item),O[R.SchemaTag.propertyIndex]=s,m){O.properties={},Pa(O,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let N=(t.item.Actions??[]).map((M,G)=>({item:M,index:G}));sx(N,e,i,r,O,R.ActionType.Annotation)}else O[R.SchemaTag.keys]=[],t.item[R.SchemaKeyName.semanticObject]&&O[R.SchemaTag.keys].push({name:R.SchemaKeyName.semanticObject,value:t.item[R.SchemaKeyName.semanticObject]}),O[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:l});u&&(i.definitions[b][R.SchemaTag.target]=u),O[R.SchemaTag.actionType]=n,O[R.SchemaTag.annotationPath]=`/${S}`,a.properties[p]={$ref:`${$}${b}`},a.properties[p][R.SchemaTag.propertyIndex]=s}o(vk,"addSingleHeaderActionV4");function mk(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[R.SchemaTag.isViewNode]=!0,s[R.SchemaTag.propertyIndex]=i,s[R.SchemaTag.keys]=[],s[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:e}),s[R.SchemaTag.actionType]=R.ActionType.Standard,n.properties[r]={$ref:`${$}${a}`},n.properties[r][R.SchemaTag.propertyIndex]=i,s}o(mk,"addStandardHeaderAction");function hk(e,t,n,i,r,a){let s=Wr(e.item),l=ai(e.item,n),u=lt(`${R.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Bi.UIAnnotationTerms.Identification}`,`/@${Bi.UIAnnotationTerms.Identification}`),g=i.definitions[u]={type:"object",$ref:`${$}${R.DefinitionName.FooterActionV4}`,description:l};g[R.SchemaTag.isViewNode]=!0,g[R.SchemaTag.actionType]=t,g[R.SchemaTag.propertyIndex]=a,g[R.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${$}${u}`}}o(hk,"addSingleFooterAction");function qY(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===Bi.UIAnnotationTypes.DataFieldForAction||i.$Type===Bi.UIAnnotationTypes.DataFieldForActionGroup||i.$Type===Bi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(QY.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(qY,"groupByCriticality");function YY(e,t,n,i,r,a){let s=e.findIndex(l=>{var u,p;return((p=(u=l.item.annotations)==null?void 0:u.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(vk(t,e[s],R.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(YY,"addCopyAction");function sx(e,t,n,i,r,a,s=0){let l=s;for(let u of e)vk(t,u,a,n,i,r,l),l++}o(sx,"addGroupedHeaderActions");function zY(e){let t="RelatedApps",n=e.properties[t]={$ref:`${$}${t}`,description:"Related Apps"};n[R.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[R.SchemaTag.artifactType]=R.ArtifactType.Manifest,n[R.SchemaTag.actionType]=R.ActionType.Standard,n[R.SchemaTag.isViewNode]=!0,n[R.SchemaTag.keys]=[{name:R.SchemaKeyName.action,value:t}]}o(zY,"addRelatedAppsButton");function yk(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[R.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`:e[R.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`}o(yk,"setAnnotationPathFromEntitySetOrEntityType");function JY(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?qY(n):{};if(sx(s,r.serviceAVT,t,e,i,R.ActionType.Criticality),r.entitySet){let p=d1(r.entitySet),g=g1(r.entitySet);if($m(r.entitySet)&&g){let m=mk("Edit",t,i,s.length);yk(m,r.entitySet,e,"UpdateHidden")}if(p){let m=mk("Delete",t,i,s.length+1);yk(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;YY(l,r.serviceAVT,t,e,i,u),sx(l,r.serviceAVT,t,e,i,R.ActionType.Annotation,u),bk(t,a,R.DefinitionName.CustomHeaderActionOP,r.logger),zY(i)}o(JY,"addHeaderActionCallBackV4");function ZY(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===Bi.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?r.push({index:l,item:s}):a.push({index:l,item:s}))});for(let s=0;s<r.length;s++){let l=r[s];hk(l,R.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];hk(l,R.ActionType.Annotation,e,t,n,r.length+s)}}o(ZY,"addFooterActionCallBackV4");function ez(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Bi.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomColumnOP}<${n}>`:R.DefinitionName.CustomColumnOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${R.DefinitionName.CustomColumnOP}<${n}>`;yc(e,t,r,u,n,i);let p=a?n:R.DefinitionName.PositionOP;vt(R.DefinitionName.PositionOP,p,e,a);let g=a?`${R.DefinitionName.PositionOP}<${n}>`:R.DefinitionName.PositionOP;l.properties.position.$ref=`${$}${g}`,vc(e,n,t,g,i.replace(/::/g,"/"));let m=e.definitions[n];m&&gS(m,l)}o(ez,"addCustomColumnsOP");function tz(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Bi.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomTableActionOP}<${n}>`:R.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description=cx;let u=`${R.DefinitionName.CustomTableActionOP}<${n}>`,p=`${R.DefinitionName.Actions}<${lt(n)}>`;Aa(e,t,r,u,p,i);let g=a?n:R.DefinitionName.CustomActionPositionOP;vt(R.DefinitionName.CustomActionPositionOP,g,e,a);let m=a?`${R.DefinitionName.CustomActionPositionOP}<${n}>`:R.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${$}${m}`,uo(e,p,m)}o(tz,"addTableCustomActionsOP");function bk(e,t,n,i){let r=e.definitions[n];r[R.SchemaTag.isViewNode]=!0,r.description=cx;let a=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.ObjectPageHeaderActions:R.DefinitionName.FooterActions;Nm(e,t,i,n,a);let s=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.CustomHeaderActionPositionOP:R.DefinitionName.CustomFooterActionPositionOP;vt(s,s,e,!1),r.properties.position.$ref=`${$}${s}`,uo(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${$}${n}`})}o(bk,"addHeaderFooterCustomActionsOP");function nz({tableType:e,facetKey:t,facet:n,appSchema:i,lineItemId:r,lineItemFacet:a}){let s=t.lastIndexOf("::"),l=s>-1?t.substring(s+2):t,u=vt(e,t,i);n.entityType&&l&&(u[R.SchemaTag.annotationPath]=`/${n.entityType.fullyQualifiedName}/${l}`),u.properties.columns={$ref:`${$}${r}`},u.properties.toolBar.$ref=oi(R.DefinitionName.ObjectPageToolBar,t),u.properties.quickVariantSelection.$ref=oi(R.DefinitionName.QuickVariantSelectionV4OP,t),u[R.SchemaTag.target]=a.namespace}o(nz,"addTableDefinition");function iz(e,t,n,i,r){let a=`${R.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[R.SchemaTag.isViewNode]=!0,s.description=cx;let l=`${R.DefinitionName.CustomFormActionOP}<${n}>`,u=`${R.DefinitionName.SectionActions}<${lt(n)}>`;Aa(e,t,r,l,u,i),vt(R.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${R.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${$}${p}`,uo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${$}${a}`})}o(iz,"addFormCustomActionsOP");function rz(e,t,n,i,r,a,s){let l=Ec(t);[R.DefinitionName.ObjectPageResponsiveTableV4,R.DefinitionName.ObjectPageAnalyticalTableV4,R.DefinitionName.ObjectPageGridTableV4,R.DefinitionName.ObjectPageTreeTableV4].forEach(m=>{nz({tableType:m,facetKey:t,facet:e,appSchema:n,lineItemId:l,lineItemFacet:i})});let p=vt(R.DefinitionName.QuickVariantSelectionV4OP,t,n);p.properties.paths.items.$ref=oi(R.DefinitionName.AnnotationPathAsObject,t),vt(R.DefinitionName.AnnotationPathAsObject,t,n),ss(e.entityType,n,`${R.DefinitionName.AnnotationPathAsObject}<${l}>`);let g={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};Tc(g,R.DefinitionName.ObjectPageTableColumn,R.DefinitionName.CustomColumnOP,R.DefinitionName.CustomTableActionOP),ez(n,a,l,t,s),tz(n,a,l,t,s)}o(rz,"handleLineItem");function Sk(e,t,n,i,r,a,s){s&&fT(s,t,R.DefinitionName.ObjectPageSectionTableV4);let l=vt(R.DefinitionName.ObjectPageSectionTableV4,t,n);return Ta(e,l,Ec(t)),ns(e,l,Ec(t)),l[R.SchemaTag.annotationPath]=e.annotationPath,l[R.SchemaTag.target]=e.namespace,l.properties.table.anyOf=l.properties.table.anyOf.map(u=>{let p=u.$ref.split("/").pop();return{$ref:oi(p,t)}}),rz(e,t,n,i,r.serviceAVT,a,r.logger),l}o(Sk,"handleSectionTable");function oz(e,t,n,i,r,a,s){let l;a===R.SectionType.Section?l=R.DefinitionName.ObjectPageSectionForm:a===R.SectionType.HeaderSection&&(l=R.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:oi(l,n)};let u=vt(l,n,r);e.ID||(u.properties={}),Ta(e,u,n),ns(e,u,n),u[R.SchemaTag.annotationPath]=e.annotationPath,u[R.SchemaTag.target]=e.namespace,u[R.SchemaTag.isViewNode]=!0;let p=Hm(a,e,u,r,R.FioriElementsVersion.v4,n);if(e.base===R.FacetBase.Form){let g=Ec(n);vt(R.DefinitionName.CustomFormActionOP,p,r),iz(r,t,p,g,s)}}o(oz,"handleFormIdentification");function Tk(e,t,n,i,r){n.properties[t]={$ref:`${$}${r}`};let a=vt(R.DefinitionName.CommonHeaderFacetSettings,r,i,!1);Rl(e,a,t),a[R.SchemaTag.annotationPath]=e.annotationPath,a[R.SchemaTag.target]=e.namespace,a[R.SchemaTag.dataType]=Pc(e==null?void 0:e.target),a[R.SchemaTag.isViewNode]=!0}o(Tk,"handleHeaderFacet");function az(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,u=ai(l,i),p=l.$Type.split(R.UIVOCABULARYDOT)[1],g=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:oi(R.DefinitionName.ObjectPageToolBarAction,g),description:u};m[R.SchemaTag.propertyIndex]=a,m[R.SchemaTag.annotationType]=l.$Type;let h=vt(R.DefinitionName.ObjectPageToolBarAction,lt(g),n);h[R.SchemaTag.annotationPath]=qm(l),h[R.SchemaTag.dataType]=Kr(l),h.properties={},a++})}return r}o(az,"handleChartActions");function sz(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[R.SchemaTag.annotationPath]=qm(e),r[R.SchemaTag.dataType]=Pc(e.target||e),r[R.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=oi(R.DefinitionName.ObjectPageToolBar,t);let a=vt(R.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=oi(R.DefinitionName.ObjectPageToolBarActions,t);let s=az(e,t,n,i);return{chart:r,chartActions:s}}o(sz,"handleChart");function Ak(e,t,n,i,r=e.entityType,a=!1,s){let l=a?R.DefinitionName.CommonHeaderFacetSettings:R.DefinitionName.ObjectPageSectionChart,u=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart;i&&fT(i,t,l);let p=Du(u,t),g=vt(l,p,n,!1);if(Rl(e,g,t),a)return delete g.properties.chart,{parentChartRef:g};g[R.SchemaTag.annotationPath]=qm(e),g.properties.chart.$ref=oi(R.DefinitionName.ObjectPageChart,t);let{chart:m,chartActions:h}=sz(e.target||e,t,n,r);return m[R.SchemaTag.target]=s,{parentChartRef:g,chart:m,chartActions:h}}o(Ak,"handleSectionChart");function cz(e,t,n){let r=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${WS(r,n.serviceAVT)}`,l=s.split(R.UIVOCABULARYDOT)[1];return{key:s,type:l}}o(cz,"getVisualizationKeyAndType");function lz(e,t,n){var r,a;return(a=(r=e.entityType.navigationProperties.find(s=>s.name===t).targetType)==null?void 0:r.annotations)==null?void 0:a.UI[n]}o(lz,"getTargetFromNavigation");function fz(e,t,n){let i=e.target[R.FacetBase.PresentationVariant]?e.target[R.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let r=i[0].$target,a=r||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:u}=cz(!!r,a,n),p=r?a:lz(n,s,u),g=e.target[R.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:u,target:p,namespace:g,navigationPath:s}}o(fz,"getVisualizationProps");function fT(e,t,n,i){e.properties[t]={$ref:oi(n,i||t)}}o(fT,"addPropertyRef");function Ek(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}o(Ek,"getSectionPropertyRef");function uz(e,t,n,i,r,a,s){let{propertyKey:l,navigationKey:u}=Ek(t,r);fT(i,l,R.DefinitionName.ObjectPageSectionTableV4,u);let p=Sk(e,u,n,{target:r.target,entityType:e.entityType,annotationPath:`/${r.namespace}/${r.key}`,namespace:r.namespace},a,s);p[R.SchemaTag.annotationPath]=e.annotationPath,Rl(e,p,t),delete p[R.SchemaTag.isViewNode]}o(uz,"addPVLineItemSection");function pz(e,t,n,i,r,a=!1){let s=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:u}=Ek(t,r);fT(i,l,s,u);let{parentChartRef:p}=Ak(r.target,u,n,void 0,e.entityType,a,r.namespace);p[R.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(Ta(e,p,t),ID(e,p)):Rl(e,p,t)}o(pz,"addPVChartSection");function dz(e,t,n,i,r,a,s){if(!(e!=null&&e.target)){ae(a.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=fz(e,t,a),u=r===R.SectionType.HeaderSection;l&&(l.type.startsWith(R.Visualization.Chart)?pz(e,t,n,i,l,u):l.type.startsWith(R.Visualization.LineItem)&&uz(e,t,n,i,l,a,s))}o(dz,"handleSectionPresentationVariant");function gz(e){let t=e.facets||{};for(let n in t)if(t[n].base===R.FacetBase.CollectionFacet)return!0;return!1}o(gz,"containsCollectionFacet");function mz(e,t,n){var a;let i=`${R.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[R.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};gc(n,R.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(mz,"createCustomSubSectionReference");function hz(e,t,n,i){var a,s,l,u;let r=(u=(l=(s=(a=t.options)==null?void 0:a.settings)==null?void 0:s.content)==null?void 0:l.body)==null?void 0:u.sections;if(r)for(let p in r){let g=vt(n,p,e),m=vt(R.DefinitionName.ObjectPageCustomSectionActions,p,e),h=vt(R.DefinitionName.CustomSectionActionOP,p,e),S=`${R.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;g.properties.actions={$ref:`${$}${S}`};let b=`${R.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${$}${b}`},vt(R.DefinitionName.CustomSectionActionPositionOP,p,e);let O=`${R.DefinitionName.CustomSectionActionPositionOP}<${p}>`;h.properties.position.$ref=`${$}${O}`,h[R.SchemaTag.isViewNode]=!0,Aa(e,t,i,b,S,p),uo(e,S,O)}}o(hz,"applyCustomActionsToCustomSections");function lx(e,t,n,i,r,a,s){var m,h,S,b,O;let l=!1,u;a&&s?(l=!gz(a),u=mz(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${$}${u}`},t1(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&os(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[R.SchemaKeyName.id,R.SchemaKeyName.key],descriptionAsFallback:!0}),u.includes(R.DefinitionName.ObjectPageCustomSectionFragment)){let N=t.definitions[R.DefinitionName.ObjectPageCustomSectionActions];N.properties={},hz(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(R.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let N=(O=(b=(S=(h=(m=i.options)==null?void 0:m.settings)==null?void 0:h.content)==null?void 0:S.body)==null?void 0:b.sections)==null?void 0:O[s],M=N&&"subSections"in N?N.subSections:{};for(let G=g.oneOf.length-1;G>=0;G--){let j=g.oneOf[G];M[j.const]||(j.hidden=!0)}}}o(lx,"applyCustomSections");function yz(e,t,n,i,r,a,s,l){let u=l===0,p=i.properties[t]=wo(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[R.SchemaTag.annotationPath]=e.annotationPath,g[R.SchemaTag.target]=e.namespace,g[R.SchemaTag.keys]=[{name:R.SchemaKeyName.id,value:e.ID}],g[R.SchemaTag.isViewNode]=!0;let m=l+1;for(let h in e.facets)fx(a,e.facets,h,g,n,r,s,m);u&&lx(g,n,a,s,R.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(yz,"handleCollection");function fx(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${Ec(n)}>`;switch(u.base){case R.FacetBase.PresentationVariant:case R.FacetBase.SelectionPresentationVariant:{dz(u,n,r,i,a,e,s);break}case R.FacetBase.CollectionFacet:{yz(u,n,r,i,a,e,s,l);break}case R.FacetBase.LineItem:{if(a===R.SectionType.Section){let g=t[n];Sk(u,n,r,g,e,s,i)}break}case R.FacetBase.Form:case R.FacetBase.Identification:{oz(u,s,n,i,r,a,e.logger);break}case R.FacetBase.DataPoint:{Tk(u,n,i,r,p);break}case R.FacetBase.Chart:{a===R.SectionType.HeaderSection?Tk(u,n,i,r,p):a===R.SectionType.Section&&Ak(u,n,r,i);break}case R.FacetBase.Address:case R.FacetBase.Contact:{_u(u,n,i,r,a);break}default:i.properties[n]=wo(r,u,n)}}o(fx,"addSection");function Tz(e,t,n){let i=ym(e.entityType,e.serviceAVT,R.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[R.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[R.DefinitionName.Sections];for(let a in i)fx(e,i,a,r,t,R.SectionType.Section,n);lx(r,t,e,n,R.DefinitionName.ObjectPageCustomSectionFragment)}o(Tz,"addSections");function vz(e,t,n,i){let r=hm(n,e.serviceAVT,R.FioriElementsVersion.v4,e.logger),a=t.definitions[R.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)fx(e,r,s,a,t,R.SectionType.HeaderSection,i);lx(a,t,e,i,R.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionAddress]}}o(vz,"addHeaderSections");function bz(e,t,n){let i=e.entityType;Xm(t,i),Km(t,i,e,JY,n),i&&(t.definitions[R.DefinitionName.HeaderSections][R.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Bi.UIAnnotationTerms.HeaderFacets}`),vz(e,t,i,n)}o(bz,"addHeader");function id(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${$}${R.DefinitionName.Sections}`},!e.manifest[R.ManifestSection.ui5].routing||!e.manifest[R.ManifestSection.ui5].routing.targets)return ae(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:R.MANIFESTPATH}}),r;let a=r.definitions[R.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:R.DefinitionName.Sections};if(a[R.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[R.ManifestSection.ui5].routing.targets;if(!s)return ae(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:R.MANIFESTPATH,range:[R.ManifestSection.generic]}}),r;let l=Lm(s,R.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(bz(e,r,l),a[R.SchemaTag.isViewNode]=!0,e.entityType&&(a[R.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${Bi.UIAnnotationTerms.Facets}`),gc(e.featureToggles,R.Features.BuildingBlocks)&&i){r.definitions[R.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{gk(r,i,e,l.id)}catch(u){ae(e.logger,{severity:R.LogSeverity.Error,message:u})}}Tz(e,r,l),Wm(r,e,R.FioriElementsVersion.v4,ZY),bk(r,l,R.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[R.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[R.DefinitionName.GenericColumnsOP],delete r.definitions[R.DefinitionName.GenericSections],delete r.definitions[R.DefinitionName.GenericSubSections],delete r.definitions[R.DefinitionName.ObjectPageChart],delete r.definitions[R.DefinitionName.ObjectPageSectionAddress],delete r.definitions[R.DefinitionName.ObjectPageSectionChart],delete r.definitions[R.DefinitionName.ObjectPageSectionContact],delete r.definitions[R.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[R.DefinitionName.ObjectPageSectionForm],delete r.definitions[R.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[R.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[R.DefinitionName.ObjectPageSubSections],delete r.definitions[R.DefinitionName.ObjectPageTable],delete r.definitions[R.DefinitionName.ObjectPageToolBar],delete r.definitions[R.DefinitionName.ObjectPageToolBarAction],delete r.definitions[R.DefinitionName.ObjectPageToolBarActions],delete r.definitions[R.DefinitionName.QuickVariantSelectionV4OP],ko(r,XY),r}o(id,"generateObjectPageSchemaV4");function ux(e,t){return JSON.parse(JSON.stringify(t))}o(ux,"generateFreestyleSchemaV4");var to=te(ce());function px(e,t,n,i,r,a,s,l,u){let p=Hr(n,r),{entitySet:g,entityType:m}=el(p,s,t,r),h={templateType:to.TemplateType.ListReportObjectPageV4,fioriElementsVersion:to.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return id(h,e,s,l)}o(px,"generateObjectPageInterfaceV4");function uT(e,t,n,i,r,a,s){qt();let l=Hr(i,r),{entitySet:u,entityType:p}=el(l,s,n,r),g={templateType:e,fioriElementsVersion:to.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===to.TemplateType.ListReportObjectPageV4?to.v4.FE_TEMPLATE_V4_LIST_REPORT:to.v4.FE_TEMPLATE_V4_ALP;return Op(g,t,m,s)}o(uT,"generateListReportInterfaceV4");function dx(e,t,n,i,r,a){let s=Hr(n,a),l={templateType:e,fioriElementsVersion:to.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return ux(l,t)}o(dx,"generateFreestyleInterfaceV4");function gx(e,t,n,i,r,a,s){let l={};if(gc(a,to.Features.BuildingBlocks)){let u=Hr(r,s),p=Uo(i||[],t,n,s);l=p!=null&&p.file.fileContent?Zc(e,p,u,s):{}}return l}o(gx,"generateFPMCustomPageInterfaceV4");var nl=require("@sap-ux/vocabularies-types/vocabularies/UI"),Ok=te(ce());var tl=te(ce());var Ck=new Map([[tl.PageTypeV2.ListReport,tl.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[tl.PageTypeV2.ObjectPage,tl.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),Pk=o((e,t)=>{let n=["controllerNames","controllerName"];for(let i of n)i in e?t[i]=e[i]:i in t&&delete t[i]},"applyControllerNameProperties"),xk=o(e=>{var t;for(let[n,i]of Ck)if(e!=null&&e.startsWith(i)){let r=n;if(e.includes("#")){let a=(t=e.split("#")[1])==null?void 0:t.split("::")[1];r+=`#${a}`}return r}},"getExtensionKeyForImport"),Sz=o((e,t)=>{let n="";for(let[r,a]of Ck)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),Ik={manifest:{path:o(()=>`sap.ui5/extends/extensions/${tl.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=xk(n);i&&(t[i]={},Pk(e[n],t[i]))}return Object.keys(t).length?t:void 0},"import"),export:o((e,t,n)=>{var a;let i=(t==null?void 0:t.id)||"",r=((a=t==null?void 0:t.settings)==null?void 0:a[n])||{};for(let s in r){let l=Sz(s,i);e[l]||(e[l]={}),Pk(r[s],e[l])}for(let s in e){let l=xk(s);l&&!r[l]&&delete e[s]}},"export")}};var ut=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),gT=o(e=>ut(e)+"/views/paths","getSettingsPathForLRViewsPaths"),mT=o(e=>ut(e)+"/content/header","getSettingsPathForHeaderOP"),Az=o(e=>ut(e)+"/content/footer","getSettingsPathForFooterOP"),io=o(e=>ut(e)+"/controlConfiguration","getControlConfigurationPath"),hT=o((e,t,n)=>io(e)+`/@${nl.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),yT=o(e=>io(e)+`/@${nl.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Ms=o((e,t,n,i)=>io(e)+`/@${nl.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),mx=o((e,t,n,i)=>yT(e)+`/filterFields/${i}`,"getFilterFieldPath"),Hi=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?io(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),gi=o((e,t,n,i,r)=>r?Hi(e,t,n,i,r):io(e)+`/@${nl.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),TT=o((e,t,n,i,r)=>gi(e,t,n,i,r)+Ok.QUICKVARPATH,"getQuickVariantPath"),ar=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?io(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),mi=o((e,t,n,i,r)=>r?ar(e,t,n,i,r):io(e)+`/@${nl.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),ro=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?io(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Lr=o((e,t,n,i,r)=>r?ro(e,t,n,i,r):io(e)+`/@${nl.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Gi=o((e,t,n,i)=>io(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),Un=o((e,t,n,i)=>io(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),hi=o((e,t,n,i)=>mT(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),vT=o((e,t,n,i)=>ut(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),Eo=o((e,t,n,i)=>Az(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),Lt=o((e,t,n)=>io(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),Of=o((e,t,n,i)=>{let r=ut(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),ks=o((e,t,n,i)=>ut(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Nr=o((e,t,n,i)=>{let r=ut(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),Rf=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=ut(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),dT=class dT{};o(dT,"ApplicationV4"),y([$t("settings")],dT.prototype,"settings",2);var pT=dT,no=class no{};o(no,"AppSettings"),y([T({manifest:{path:o(()=>"sap.app","path")}})],no.prototype,"title",2),y([T({manifest:{path:o(()=>"sap.app","path")}})],no.prototype,"description",2),y([T({manifest:{path:o(()=>"sap.fiori","path")}})],no.prototype,"cloudDevAdaptationStatus",2),y([T({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),x({since:"1.78.0"})],no.prototype,"flexibleColumnLayout",2),y([T({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"})],no.prototype,"flexEnabled",2),y([T({manifest:{path:o(()=>"sap.ui5","path")}})],no.prototype,"dependencies",2),y([T({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],no.prototype,"viewType",2),y([T({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],no.prototype,"path",2),y([T(Ik)],no.prototype,"controllerExtensions",2);var If=no;var ye=te(ce());var mI={};lc(mI,{ALPChart:()=>EC,ALPTable:()=>kf,ActionAfterExecutionConfiguration:()=>XC,ActionAfterExecutionConfigurationFooter:()=>wx,ActionAfterExecutionConfigurationForm:()=>jx,ActionAfterExecutionConfigurationOP:()=>Id,ActionAfterExecutionConfigurationObjectPageHeader:()=>Jx,ActionAfterExecutionConfigurationToolBarLR:()=>rI,Actions:()=>eI,AdditionalSemanticObject:()=>WC,CommonHeaderFacetSettings:()=>Xs,CommonViewSettings:()=>Mf,CustomActionPosition:()=>lI,CustomActionPositionOP:()=>jC,CustomFilterField:()=>vx,CustomFilterFieldPosition:()=>Tx,CustomFooterActionOP:()=>Ux,CustomFooterActionPositionOP:()=>kx,CustomFormActionOP:()=>Qx,CustomHeaderAction:()=>Px,CustomHeaderActionOP:()=>nC,CustomHeaderActionPosition:()=>sd,CustomHeaderActionPositionOP:()=>tC,CustomSectionActionOP:()=>Nx,CustomSectionActionPositionOP:()=>Lx,CustomTableAction:()=>fI,CustomTableActionOP:()=>$C,FilterBar:()=>hx,FlexSettings:()=>oC,FooterActionV4:()=>Mx,FormAction:()=>$x,Header:()=>Sx,HeaderActions:()=>bx,HeaderSections:()=>uC,LRChartView:()=>PC,LRTableView:()=>xC,MultiTableModeV4:()=>IC,ObjectPageAnalyticalTableV4:()=>Ad,ObjectPageCustomHeaderSectionFlexSettings:()=>xx,ObjectPageCustomHeaderSectionFragment:()=>Cx,ObjectPageCustomSectionActions:()=>Ix,ObjectPageCustomSectionFragment:()=>Nf,ObjectPageCustomSubSectionFragment:()=>Ox,ObjectPageFooter:()=>Dx,ObjectPageFooterActions:()=>Fx,ObjectPageForm:()=>Gx,ObjectPageFormActionGroup:()=>Bx,ObjectPageFormActions:()=>Hx,ObjectPageGridTableV4:()=>Ed,ObjectPageHeader:()=>Yx,ObjectPageHeaderAction:()=>Zx,ObjectPageHeaderActionGroup:()=>eC,ObjectPageHeaderActions:()=>qx,ObjectPageHeaderSectionAddress:()=>fC,ObjectPageHeaderSectionChart:()=>sC,ObjectPageHeaderSectionContact:()=>lC,ObjectPageHeaderSectionDataPoint:()=>cC,ObjectPageHeaderSectionForm:()=>aC,ObjectPageLayout:()=>TC,ObjectPageResponsiveTableV4:()=>Sd,ObjectPageTable:()=>bd,ObjectPageTableColumn:()=>Gf,ObjectPageTableColumnAction:()=>_C,ObjectPageTableRowCountable:()=>Bf,ObjectPageToolBarAction:()=>kC,ObjectPageToolBarActionGroup:()=>UC,ObjectPageToolBarActions:()=>BC,ObjectPageTreeTableV4:()=>Pd,PersonalizationType:()=>bC,PersonalizationTypeOP:()=>FC,Position:()=>YC,PositionOP:()=>VC,QuickVariantSelectionV4:()=>AC,QuickVariantSelectionV4OP:()=>DC,RelatedApps:()=>KC,Table:()=>OC,TableColumn:()=>MT,TableColumnAction:()=>QC,TableCreationModeOP:()=>NC,TableCustomColumn:()=>JC,TableCustomColumnOP:()=>wC,TableSettings:()=>CT,TableViewExtension:()=>CC,TableViewSettings:()=>hd,ToolBar:()=>tI,ToolBarAction:()=>oI,ToolBarActionGroup:()=>aI,ViewCustomActionPosition:()=>uI,ViewPersonalizationType:()=>SC,ViewPosition:()=>zC,ViewTableColumn:()=>kT,ViewTableColumnAction:()=>qC,ViewTableCustomAction:()=>pI,ViewTableCustomColumn:()=>ZC,ViewToolBarAction:()=>cI,ViewToolBarActionGroup:()=>sI,VisualFilter:()=>yx,checkViewOrder:()=>RC,deleteCreationModeProperty:()=>Td,deletePersonalizationProperty:()=>Co,exportCreationModeProperty:()=>yd,exportPersonalization:()=>LT,exportPersonalizationProperty:()=>xo});function Ez(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(Ez,"exportVisualFilterValueList");var Lf=class Lf{};o(Lf,"FilterBar"),y([T({manifest:{path:o(t=>ut(t),"path")}}),x({since:"1.99.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],Lf.prototype,"hideFilterBar",2),y([T({manifest:{path:yT}}),x({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Lf.prototype,"initialLayout",2),y([T({manifest:{path:yT}}),x({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Lf.prototype,"layout",2);var hx=Lf,rd=class rd{};o(rd,"VisualFilter"),y([T({manifest:{path:mx}}),x({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],rd.prototype,"availability",2),y([T({manifest:{path:mx,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:Ez,key:"visualFilter"}}),x({since:"1.93.0"})],rd.prototype,"visualFilterValueList",2);var yx=rd,od=class od{};o(od,"CustomFilterFieldPosition"),y([T({manifest:{path:o((t,n,i,r)=>Ms(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],od.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r)=>Ms(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],od.prototype,"placement",2);var Tx=od,Us=class Us{};o(Us,"CustomFilterField"),y([T({manifest:{path:Ms}}),x({since:"1.77.0"})],Us.prototype,"label",2),y([T({manifest:{path:Ms}}),x({since:"1.77.0"})],Us.prototype,"property",2),y([T({manifest:{path:Ms}}),x({since:"1.77.0"})],Us.prototype,"template",2),y([T({manifest:{path:Ms}}),x({since:"1.77.0"})],Us.prototype,"required",2),y([T({manifest:{path:Ms}}),x({since:"1.77.0"})],Us.prototype,"position",2);var vx=Us;var Ax=class Ax{};o(Ax,"HeaderActions");var bx=Ax,Ex=class Ex{};o(Ex,"Header");var Sx=Ex;var ad=class ad{};o(ad,"CustomHeaderActionPosition"),y([T({manifest:{path:o((t,n,i,r)=>hi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],ad.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r)=>hi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],ad.prototype,"placement",2);var sd=ad,js=class js{};o(js,"CustomHeaderAction"),y([T({manifest:{path:hi}}),x({since:"1.84.0"})],js.prototype,"text",2),y([T({manifest:{path:hi}}),x({since:"1.84.0"})],js.prototype,"position",2),y([T({manifest:{path:hi}}),x({since:"1.84.0"})],js.prototype,"press",2),y([T({manifest:{path:hi},generate:Yn}),x({since:"1.84.0"})],js.prototype,"visible",2),y([T({manifest:{path:hi},generate:Yn}),x({since:"1.84.0"})],js.prototype,"enabled",2);var Px=js;var bT=class bT{};o(bT,"ObjectPageCustomHeaderSectionFlexSettings"),y([T({manifest:{path:o((t,n,i)=>Nr(t,n,i,"flexSettings"),"path")}}),x({since:"1.81.0"})],bT.prototype,"designtime",2);var xx=bT,sr=class sr{};o(sr,"ObjectPageCustomHeaderSectionFragment"),y([T({manifest:{path:o((t,n,i)=>Nr(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],sr.prototype,"relatedFacet",2),y([T({manifest:{path:o((t,n,i)=>Nr(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],sr.prototype,"relativePosition",2),y([T({manifest:{path:Nr},generate:ri}),x({since:"1.84.0"})],sr.prototype,"visible",2),y([T({manifest:{path:Nr}}),x({since:"1.77.0"})],sr.prototype,"title",2),y([T({manifest:{path:Nr}}),x({since:"1.77.0"})],sr.prototype,"subTitle",2),y([T({manifest:{path:Nr,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],sr.prototype,"fragmentName",2),y([T({manifest:{path:Nr,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),x({since:"1.86.0"})],sr.prototype,"templateEdit",2),y([T({manifest:{path:Nr}}),x({since:"1.81.0"})],sr.prototype,"stashed",2),y([T({manifest:{path:Nr}}),x({since:"1.81.0"})],sr.prototype,"flexSettings",2),y([T({manifest:{path:Nr}}),x({since:"1.81.0"})],sr.prototype,"requestGroupId",2),y([T({manifest:{path:Nr,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],sr.prototype,"controls",2);var Cx=sr;var Rx=class Rx{};o(Rx,"ObjectPageCustomSectionActions");var Ix=Rx,$s=class $s{};o($s,"ObjectPageCustomSectionFragment"),y([T({manifest:{path:o((t,n,i)=>Of(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],$s.prototype,"relatedFacet",2),y([T({manifest:{path:o((t,n,i)=>Of(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],$s.prototype,"relativePosition",2),y([T({manifest:{path:Of}}),x({since:"1.77.0"})],$s.prototype,"title",2),y([T({manifest:{path:Of,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],$s.prototype,"fragmentName",2),y([T({manifest:{path:Of,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],$s.prototype,"controls",2);var Nf=$s,Bs=class Bs extends Nf{};o(Bs,"ObjectPageCustomSubSectionFragment"),y([T({manifest:{path:o((...t)=>`${Rf.apply({},t)}/position`,"path"),key:"anchor"}}),x({since:"1.77.0"})],Bs.prototype,"relatedFacet",2),y([T({manifest:{path:o((...t)=>`${Rf.apply({},t)}/position`,"path"),key:"placement"}}),x({since:"1.77.0"})],Bs.prototype,"relativePosition",2),y([T({manifest:{path:Rf}}),x({since:"1.77.0"})],Bs.prototype,"title",2),y([T({manifest:{path:Rf,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],Bs.prototype,"fragmentName",2),y([T({manifest:{path:Rf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],Bs.prototype,"controls",2);var Ox=Bs;var cd=class cd{};o(cd,"CustomSectionActionPositionOP"),y([T({manifest:{path:o((t,n,i,r)=>ks(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],cd.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r)=>ks(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],cd.prototype,"placement",2);var Lx=cd,Hs=class Hs{};o(Hs,"CustomSectionActionOP"),y([T({manifest:{path:ks}}),x({since:"1.84.0"})],Hs.prototype,"text",2),y([T({manifest:{path:ks}}),x({since:"1.84.0"})],Hs.prototype,"position",2),y([T({manifest:{path:ks}}),x({since:"1.84.0"})],Hs.prototype,"press",2),y([T({manifest:{path:ks},generate:ri}),x({since:"1.84.0"})],Hs.prototype,"visible",2),y([T({manifest:{path:ks},generate:ri}),x({since:"1.84.0"})],Hs.prototype,"enabled",2);var Nx=Hs;var _x=class _x{};o(_x,"ObjectPageFooterActions");var Fx=_x,Vx=class Vx{};o(Vx,"ObjectPageFooter");var Dx=Vx;var ld=class ld{};o(ld,"ActionAfterExecutionConfigurationFooter"),y([T({manifest:{path:o((t,n,i,r)=>Eo(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],ld.prototype,"navigateToInstance",2),y([T({manifest:{path:o((t,n,i,r)=>Eo(t,n,i,r)+"/afterExecution","path")}})],ld.prototype,"enableAutoScroll",2);var wx=ld,ST=class ST{};o(ST,"FooterActionV4"),y([T({manifest:{path:Eo}}),x({since:"1.84.0"})],ST.prototype,"afterExecution",2);var Mx=ST,fd=class fd{};o(fd,"CustomFooterActionPositionOP"),y([T({manifest:{path:o((t,n,i,r)=>Eo(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],fd.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r)=>Eo(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],fd.prototype,"placement",2);var kx=fd,Gs=class Gs{};o(Gs,"CustomFooterActionOP"),y([T({manifest:{path:Eo}}),x({since:"1.84.0"})],Gs.prototype,"text",2),y([T({manifest:{path:Eo}}),x({since:"1.84.0"})],Gs.prototype,"position",2),y([T({manifest:{path:Eo}}),x({since:"1.84.0"})],Gs.prototype,"press",2),y([T({manifest:{path:Eo},generate:ri}),x({since:"1.84.0"})],Gs.prototype,"visible",2),y([T({manifest:{path:Eo},generate:ri}),x({since:"1.84.0"})],Gs.prototype,"enabled",2);var Ux=Gs;var ud=class ud{};o(ud,"ActionAfterExecutionConfigurationForm"),y([T({manifest:{path:o((t,n,i,r)=>Un(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],ud.prototype,"navigateToInstance",2),y([T({manifest:{path:o((t,n,i,r)=>Un(t,n,i,r)+"/afterExecution","path")}})],ud.prototype,"enableAutoScroll",2);var jx=ud,AT=class AT{};o(AT,"FormAction"),y([T({manifest:{path:Un}}),x({since:"1.84.0"})],AT.prototype,"afterExecution",2);var $x=AT,Wx=class Wx{};o(Wx,"ObjectPageFormActionGroup");var Bx=Wx,Kx=class Kx{};o(Kx,"ObjectPageFormActions");var Hx=Kx,Xx=class Xx{};o(Xx,"ObjectPageForm");var Gx=Xx;var Ws=class Ws{};o(Ws,"CustomFormActionOP"),y([T({manifest:{path:Un}}),x({since:"1.84.0"})],Ws.prototype,"text",2),y([T({manifest:{path:Un}}),x({since:"1.84.0"})],Ws.prototype,"position",2),y([T({manifest:{path:Un}}),x({since:"1.84.0"})],Ws.prototype,"press",2),y([T({manifest:{path:Un},generate:ri}),x({since:"1.84.0"})],Ws.prototype,"visible",2),y([T({manifest:{path:Un},generate:ri}),x({since:"1.84.0"})],Ws.prototype,"enabled",2);var Qx=Ws;var zx=class zx{};o(zx,"ObjectPageHeaderActions");var qx=zx,Ff=class Ff{};o(Ff,"ObjectPageHeader"),y([T({manifest:{path:o(t=>ut(t),"path")}}),x({since:"1.84.0"})],Ff.prototype,"editableHeaderContent",2),y([T({manifest:{path:mT}}),x({since:"1.84.0"})],Ff.prototype,"visible",2),y([T({manifest:{path:mT}}),x({since:"1.84.0"})],Ff.prototype,"anchorBarVisible",2);var Yx=Ff;var pd=class pd{};o(pd,"ActionAfterExecutionConfigurationObjectPageHeader"),y([T({manifest:{path:o((t,n,i,r)=>hi(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],pd.prototype,"navigateToInstance",2),y([T({manifest:{path:o((t,n,i,r)=>hi(t,n,i,r)+"/afterExecution","path")}})],pd.prototype,"enableAutoScroll",2);var Jx=pd,ET=class ET{};o(ET,"ObjectPageHeaderAction"),y([T({manifest:{path:hi}}),x({since:"1.84.0"})],ET.prototype,"afterExecution",2);var Zx=ET,iC=class iC{};o(iC,"ObjectPageHeaderActionGroup");var eC=iC,rC=class rC extends sd{};o(rC,"CustomHeaderActionPositionOP");var tC=rC,Ks=class Ks{};o(Ks,"CustomHeaderActionOP"),y([T({manifest:{path:hi}}),x({since:"1.84.0"})],Ks.prototype,"text",2),y([T({manifest:{path:hi}}),x({since:"1.84.0"})],Ks.prototype,"position",2),y([T({manifest:{path:hi}}),x({since:"1.84.0"})],Ks.prototype,"press",2),y([T({manifest:{path:hi},generate:ri}),x({since:"1.84.0"})],Ks.prototype,"visible",2),y([T({manifest:{path:hi},generate:ri}),x({since:"1.84.0"})],Ks.prototype,"enabled",2);var nC=Ks;var PT=class PT{};o(PT,"FlexSettings"),y([T({manifest:{path:o((t,n,i)=>hT(t,n,i)+"/flexSettings","path")}}),x({since:"1.81.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],PT.prototype,"designtime",2);var oC=PT,dd=class dd{};o(dd,"CommonHeaderFacetSettings"),y([T({manifest:{path:hT}}),x({since:"1.81.0"})],dd.prototype,"stashed",2),y([T({manifest:{path:hT}}),x({since:"1.81.0"})],dd.prototype,"flexSettings",2);var Xs=dd,pC=class pC extends Xs{};o(pC,"ObjectPageHeaderSectionForm");var aC=pC,dC=class dC extends Xs{};o(dC,"ObjectPageHeaderSectionChart");var sC=dC,gC=class gC extends Xs{};o(gC,"ObjectPageHeaderSectionDataPoint");var cC=gC,mC=class mC extends Xs{};o(mC,"ObjectPageHeaderSectionContact");var lC=mC,hC=class hC extends Xs{};o(hC,"ObjectPageHeaderSectionAddress");var fC=hC,yC=class yC{};o(yC,"HeaderSections");var uC=yC;var xT=class xT{};o(xT,"ObjectPageLayout"),y([T({manifest:{path:o(t=>ut(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],xT.prototype,"sectionLayout",2);var TC=xT;var NT=te(ce());var vC=te(ce());var Pz=o((e,t)=>{let n=e;for(let i of t.split("/"))n[i]||(i==="paths"?n[i]=[]:n[i]={}),n=n[i];return n},"getManifestSectionByPathV4");function Po(e,t,n,i,r,a){let s=gT(e),l=Pz(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[vC.SchemaTag.key]===(a==null?void 0:a.key)||g[vC.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(Po,"getSettingsPathForLRViewsPath");function xz(e,t,n,i,r,a){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let u of l){let p=Number(u),g=e[u];t===g.key?s[n]=g:p>=i&&p<=r?s[Math.max(0,p+a)]=g:s[u]=g}return s}o(xz,"fillNewlyOrderedViews");function RC(e,t){let n=t.key,i=e.findIndex(a=>(a==null?void 0:a.key)===n),r=t.index;if(i>-1&&i!==r){let a=r>i?-1:1,s=Math.min(Number(i),r),l=Math.max(Number(i),r),u=xz(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(RC,"checkViewOrder");function LT(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(LT,"exportPersonalization");function xo(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(xo,"exportPersonalizationProperty");function Co(e,t,n,i){typeof e.personalization=="object"&&e.personalization[i]!==void 0?(delete e.personalization[i],Object.keys(e.personalization).length===0&&delete e.personalization):typeof e.personalization=="string"&&e.personalization!==void 0&&delete e.personalization}o(Co,"deletePersonalizationProperty");function LC(e,t,n,i,r,a){var l;let s;if(!t||Object.keys(t).length===0){let u=e;Object.keys(u).forEach(p=>{u[p]&&u[p].key===r&&(e[Number(p)]={},s=p)})}if(s){let u=(l=a.table)==null?void 0:l.views;for(let p in u)u[p].index>s&&u[p].index--}}o(LC,"deleteView");function yd(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(yd,"exportCreationModeProperty");function Td(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0?delete e.creationMode[t]:typeof e.creationMode=="string"&&e.creationMode!==void 0&&delete e.creationMode}o(Td,"deleteCreationModeProperty");function Rk(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(Rk,"importPersonalization");function Lk(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(Lk,"determineIndexOfView");var Df=class Df{};o(Df,"PersonalizationType"),y([T({manifest:{path:gi,export:xo,delete:Co}})],Df.prototype,"column",2),y([T({manifest:{path:gi,export:xo,delete:Co}})],Df.prototype,"sort",2),y([T({manifest:{path:gi,export:xo,delete:Co}})],Df.prototype,"filter",2);var bC=Df,_f=class _f{};o(_f,"ViewPersonalizationType"),y([T({manifest:{path:Hi,export:xo,delete:Co}})],_f.prototype,"column",2),y([T({manifest:{path:Hi,export:xo,delete:Co}})],_f.prototype,"sort",2),y([T({manifest:{path:gi,export:xo,delete:Co}})],_f.prototype,"filter",2);var SC=_f,Vf=class Vf{};o(Vf,"QuickVariantSelectionV4"),y([T({manifest:{path:TT}})],Vf.prototype,"paths",2),y([T({manifest:{path:TT}})],Vf.prototype,"hideTableTitle",2),y([T({manifest:{path:TT}})],Vf.prototype,"showCounts",2);var AC=Vf,cr=class cr{};o(cr,"TableSettings"),y([T({manifest:{path:gi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],cr.prototype,"type",2),y([T({manifest:{path:gi,import:Rk,export:LT}}),x({since:"1.86.0"})],cr.prototype,"personalization",2),y([T({manifest:{path:gi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],cr.prototype,"selectionMode",2),y([T({manifest:{path:gi}}),x({since:"1.84.0"})],cr.prototype,"selectAll",2),y([T({manifest:{path:gi}}),x({since:"1.84.0"})],cr.prototype,"selectionLimit",2),y([T({manifest:{path:gi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],cr.prototype,"enableExport",2),y([T({manifest:{path:gi}}),x({since:"1.84.0"})],cr.prototype,"quickVariantSelection",2),y([T({manifest:{path:gi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],cr.prototype,"condensedTableLayout",2),y([T({manifest:{path:gi}}),x({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],cr.prototype,"hierarchyQualifier",2),y([T({manifest:{path:gi}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],cr.prototype,"widthIncludingColumnHeader",2),y([T({manifest:{path:gi}}),x({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],cr.prototype,"disableCopyToClipboard",2);var CT=cr,IT=class IT{};o(IT,"ALPChart"),y([T({manifest:{path:o(t=>ut(t)+"/views/paths/0/primary/0","path"),delete:LC}})],IT.prototype,"annotationPath",2);var EC=IT,il=class il{};o(il,"CommonViewSettings"),y([T({manifest:{path:Po,delete:mc}})],il.prototype,"key",2),y([T({manifest:{path:gT,import:Lk,export:o((t,n)=>{RC(t,n)},"export"),delete:LC}})],il.prototype,"index",2),y([T({manifest:{path:Po,delete:mc}})],il.prototype,"annotationPath",2),y([T({manifest:{path:Po}})],il.prototype,"entitySet",2);var Mf=il,lr=class lr extends Mf{};o(lr,"TableViewSettings"),y([T({manifest:{path:Hi}}),x({since:"1.84.0"})],lr.prototype,"type",2),y([T({manifest:{path:Hi,import:Rk}}),x({since:"1.86.0"})],lr.prototype,"personalization",2),y([T({manifest:{path:Hi}}),x({since:"1.84.0"})],lr.prototype,"selectionMode",2),y([T({manifest:{path:Hi}}),x({since:"1.84.0"})],lr.prototype,"selectAll",2),y([T({manifest:{path:Hi}}),x({since:"1.84.0"})],lr.prototype,"selectionLimit",2),y([T({manifest:{path:Hi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],lr.prototype,"enableExport",2),y([T({manifest:{path:Hi}}),x({since:"1.84.0"})],lr.prototype,"quickVariantSelection",2),y([T({manifest:{path:Hi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],lr.prototype,"condensedTableLayout",2),y([T({manifest:{path:Hi}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],lr.prototype,"widthIncludingColumnHeader",2),y([T({manifest:{path:Hi}}),x({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],lr.prototype,"hierarchyQualifier",2),y([T({manifest:{path:Hi}}),x({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],lr.prototype,"disableCopyToClipboard",2);var hd=lr;function Cz(e){return hd}o(Cz,"getTableViewSettings");var gd=class gd extends hd{};o(gd,"ALPTable"),y([T({manifest:{path:o(t=>ut(t)+"/views/paths/0/secondary/0","path"),delete:mc}})],gd.prototype,"annotationPath",2),y([T({manifest:{path:o(t=>ut(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],gd.prototype,"initialLoad",2);var kf=gd,OT=class OT extends Mf{};o(OT,"LRChartView"),y([T({manifest:{path:Po},generate:Yn})],OT.prototype,"visible",2);var PC=OT,wf=class wf extends Cz(Mf){};o(wf,"LRTableView"),y([T({manifest:{path:Po}})],wf.prototype,"keepPreviousPersonalization",2),y([T({manifest:{path:Po}})],wf.prototype,"entitySet",2),y([T({manifest:{path:Po},generate:Yn})],wf.prototype,"visible",2);var xC=wf,Qs=class Qs{};o(Qs,"TableViewExtension"),y([T({manifest:{path:Po}})],Qs.prototype,"key",2),y([T({manifest:{path:gT,import:Lk,export:o((t,n)=>{RC(t,n)},"export"),delete:LC}})],Qs.prototype,"index",2),y([T({manifest:{path:Po}})],Qs.prototype,"label",2),y([T({manifest:{path:Po}})],Qs.prototype,"template",2),y([T({manifest:{path:Po},generate:Yn})],Qs.prototype,"visible",2);var CC=Qs,RT=class RT{};o(RT,"MultiTableModeV4"),y([T({manifest:{path:o(t=>ut(t)+"/views","path")}})],RT.prototype,"showCounts",2);var IC=RT,md=class md extends CT{};o(md,"Table"),y([T({manifest:{path:o(t=>ut(t)+"/views/paths/0/secondary/0","path"),delete:mc}})],md.prototype,"annotationPath",2),y([T({manifest:{path:o(t=>ut(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],md.prototype,"initialLoad",2);var OC=md;var Uf=class Uf{};o(Uf,"TableCreationModeOP"),y([T({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:o((t,n,i)=>{yd(t,n,i)},"export"),delete:o((t,n,i,r)=>{Td(t,r)},"delete")}})],Uf.prototype,"name",2),y([T({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:o((t,n,i)=>{yd(t,n,i)},"export"),delete:o((t,n,i,r)=>{Td(t,r)},"delete")}})],Uf.prototype,"createAtEnd",2),y([T({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:o((t,n,i)=>{yd(t,n,i)},"export"),delete:o((t,n,i,r)=>{Td(t,r)},"delete")}})],Uf.prototype,"inlineCreationRowsHiddenInEditMode",2);var NC=Uf,jf=class jf{};o(jf,"PersonalizationTypeOP"),y([T({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:xo,delete:Co}})],jf.prototype,"column",2),y([T({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:xo,delete:Co}})],jf.prototype,"sort",2),y([T({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:xo,delete:Co}})],jf.prototype,"filter",2);var FC=jf,$f=class $f{};o($f,"QuickVariantSelectionV4OP"),y([T({manifest:{path:o((t,n,i)=>Lt(t,n,i)+NT.QUICKVARPATH,"path")}})],$f.prototype,"paths",2),y([T({manifest:{path:o((t,n,i)=>Lt(t,n,i)+NT.QUICKVARPATH,"path")}})],$f.prototype,"hideTableTitle",2),y([T({manifest:{path:o((t,n,i)=>Lt(t,n,i)+NT.QUICKVARPATH,"path")}})],$f.prototype,"showCounts",2);var DC=$f,yi=class yi{};o(yi,"ObjectPageTable"),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],yi.prototype,"type",2),y([T({manifest:{path:Lt,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),x({since:"1.84.0"})],yi.prototype,"creationMode",2),y([T({manifest:{path:Lt,import:o(t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}},"import"),export:LT}}),x({since:"1.86.0"})],yi.prototype,"personalization",2),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],yi.prototype,"selectionMode",2),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],yi.prototype,"selectAll",2),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],yi.prototype,"selectionLimit",2),y([T({manifest:{path:Lt}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],yi.prototype,"enableExport",2),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],yi.prototype,"quickVariantSelection",2),y([T({manifest:{path:Lt}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],yi.prototype,"condensedTableLayout",2),y([T({manifest:{path:Lt}}),x({since:"1.86.0"})],yi.prototype,"enableFullScreen",2),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],yi.prototype,"enablePaste",2),y([T({manifest:{path:Lt}}),x({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],yi.prototype,"hierarchyQualifier",2),y([T({manifest:{path:Lt}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],yi.prototype,"widthIncludingColumnHeader",2),y([T({manifest:{path:Lt}}),x({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],yi.prototype,"disableCopyToClipboard",2);var bd=yi,vd=class vd extends bd{};o(vd,"ObjectPageTableRowCountable"),y([T({manifest:{path:Lt}}),x({since:"1.120.0"})],vd.prototype,"rowCountMode",2),y([T({manifest:{path:Lt}}),x({since:"1.120.0"})],vd.prototype,"rowCount",2);var Bf=vd,FT=class FT extends bd{};o(FT,"ObjectPageResponsiveTableV4"),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],FT.prototype,"type",2);var Sd=FT,DT=class DT extends Bf{};o(DT,"ObjectPageAnalyticalTableV4"),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],DT.prototype,"type",2);var Ad=DT,_T=class _T extends Bf{};o(_T,"ObjectPageGridTableV4"),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],_T.prototype,"type",2);var Ed=_T,VT=class VT extends Bf{};o(VT,"ObjectPageTreeTableV4"),y([T({manifest:{path:Lt}}),x({since:"1.84.0"})],VT.prototype,"type",2);var Pd=VT;var xd=class xd{};o(xd,"ActionAfterExecutionConfigurationOP"),y([T({manifest:{path:o((t,n,i,r)=>Gi(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],xd.prototype,"navigateToInstance",2),y([T({manifest:{path:o((t,n,i,r)=>Gi(t,n,i,r)+"/afterExecution","path")}})],xd.prototype,"enableAutoScroll",2);var Id=xd,Hf=class Hf{};o(Hf,"ObjectPageTableColumn"),y([T({manifest:{path:Gi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Hf.prototype,"width",2),y([T({manifest:{path:Gi}}),x({since:"1.85.0"})],Hf.prototype,"availability",2),y([T({manifest:{path:Gi}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Hf.prototype,"widthIncludingColumnHeader",2);var Gf=Hf,MC=class MC extends Gf{};o(MC,"ObjectPageTableColumnAction");var _C=MC,Cd=class Cd{};o(Cd,"PositionOP"),y([T({manifest:{path:o((t,n,i,r)=>Gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Cd.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r)=>Gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Cd.prototype,"placement",2);var VC=Cd,Zo=class Zo{};o(Zo,"TableCustomColumnOP"),y([T({manifest:{path:Gi}}),x({since:"1.84.0"})],Zo.prototype,"position",2),y([T({manifest:{path:Gi}}),x({since:"1.84.0"})],Zo.prototype,"header",2),y([T({manifest:{path:Gi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Zo.prototype,"width",2),y([T({manifest:{path:Gi}}),x({since:"1.84.0"})],Zo.prototype,"template",2),y([T({manifest:{path:Gi}}),x({since:"1.86.0"})],Zo.prototype,"horizontalAlign",2),y([T({manifest:{path:Gi}}),x({since:"1.84.0"})],Zo.prototype,"availability",2),y([T({manifest:{path:Gi}}),x({since:"1.85.0"})],Zo.prototype,"properties",2);var wC=Zo;var wT=class wT{};o(wT,"ObjectPageToolBarAction"),y([T({manifest:{path:Un}})],wT.prototype,"enableOnSelect",2);var kC=wT,HC=class HC{};o(HC,"ObjectPageToolBarActionGroup");var UC=HC,Od=class Od{};o(Od,"CustomActionPositionOP"),y([T({manifest:{path:o((t,n,i,r)=>Un(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Od.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r)=>Un(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Od.prototype,"placement",2);var jC=Od,Ua=class Ua{};o(Ua,"CustomTableActionOP"),y([T({manifest:{path:Un}}),x({since:"1.84.0"})],Ua.prototype,"text",2),y([T({manifest:{path:Un}}),x({since:"1.84.0"})],Ua.prototype,"position",2),y([T({manifest:{path:Un}}),x({since:"1.84.0"})],Ua.prototype,"press",2),y([T({manifest:{path:Un}}),x({since:"1.84.0"})],Ua.prototype,"requiresSelection",2),y([T({manifest:{path:Un},generate:ri}),x({since:"1.84.0"})],Ua.prototype,"visible",2),y([T({manifest:{path:Un},generate:ri}),x({since:"1.84.0"})],Ua.prototype,"enabled",2);var $C=Ua,GC=class GC{};o(GC,"ObjectPageToolBarActions");var BC=GC;var Wf=class Wf{};o(Wf,"AdditionalSemanticObject"),y([T({manifest:{path:vT}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.108.0"})],Wf.prototype,"allowedActions",2),y([T({manifest:{path:vT}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Wf.prototype,"unavailableActions",2),y([T({manifest:{path:vT}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Wf.prototype,"mapping",2);var WC=Wf,Rd=class Rd{};o(Rd,"RelatedApps"),y([T({manifest:{path:o(t=>ut(t),"path")}}),x({since:"1.84.0"})],Rd.prototype,"showRelatedApps",2),y([T({manifest:{path:ut}})],Rd.prototype,"additionalSemanticObjects",2);var KC=Rd;var Ld=class Ld{};o(Ld,"ActionAfterExecutionConfiguration"),y([T({manifest:{path:o((t,n,i,r,a)=>mi(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Ld.prototype,"navigateToInstance",2),y([T({manifest:{path:o((t,n,i,r,a)=>mi(t,n,i,r,a)+"/afterExecution","path")}})],Ld.prototype,"enableAutoScroll",2);var XC=Ld,Kf=class Kf{};o(Kf,"TableColumn"),y([T({manifest:{path:mi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Kf.prototype,"width",2),y([T({manifest:{path:mi}}),x({since:"1.85.0"})],Kf.prototype,"availability",2),y([T({manifest:{path:mi}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Kf.prototype,"widthIncludingColumnHeader",2);var MT=Kf,Xf=class Xf{};o(Xf,"ViewTableColumn"),y([T({manifest:{path:ar}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Xf.prototype,"width",2),y([T({manifest:{path:ar}}),x({since:"1.85.0"})],Xf.prototype,"availability",2),y([T({manifest:{path:mi}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Xf.prototype,"widthIncludingColumnHeader",2);var kT=Xf,UT=class UT extends MT{};o(UT,"TableColumnAction"),y([T({manifest:{path:mi}}),x({since:"1.84.0"})],UT.prototype,"afterExecution",2);var QC=UT,jT=class jT extends kT{};o(jT,"ViewTableColumnAction"),y([T({manifest:{path:ar}}),x({since:"1.84.0"})],jT.prototype,"afterExecution",2);var qC=jT,Nd=class Nd{};o(Nd,"Position"),y([T({manifest:{path:o((t,n,i,r,a)=>mi(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Nd.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r,a)=>mi(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Nd.prototype,"placement",2);var YC=Nd,Fd=class Fd{};o(Fd,"ViewPosition"),y([T({manifest:{path:o((t,n,i,r,a)=>ar(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Fd.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r,a)=>ar(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Fd.prototype,"placement",2);var zC=Fd,ea=class ea{};o(ea,"TableCustomColumn"),y([T({manifest:{path:mi}}),x({since:"1.84.0"})],ea.prototype,"position",2),y([T({manifest:{path:mi}}),x({since:"1.84.0"})],ea.prototype,"header",2),y([T({manifest:{path:mi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ea.prototype,"width",2),y([T({manifest:{path:mi}}),x({since:"1.84.0"})],ea.prototype,"template",2),y([T({manifest:{path:mi}}),x({since:"1.86.0"})],ea.prototype,"horizontalAlign",2),y([T({manifest:{path:mi}}),x({since:"1.84.0"})],ea.prototype,"availability",2),y([T({manifest:{path:mi}}),x({since:"1.85.0"})],ea.prototype,"properties",2);var JC=ea,ta=class ta{};o(ta,"ViewTableCustomColumn"),y([T({manifest:{path:ar}}),x({since:"1.84.0"})],ta.prototype,"position",2),y([T({manifest:{path:ar}}),x({since:"1.84.0"})],ta.prototype,"header",2),y([T({manifest:{path:ar}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ta.prototype,"width",2),y([T({manifest:{path:ar}}),x({since:"1.84.0"})],ta.prototype,"template",2),y([T({manifest:{path:ar}}),x({since:"1.86.0"})],ta.prototype,"horizontalAlign",2),y([T({manifest:{path:ar}}),x({since:"1.84.0"})],ta.prototype,"availability",2),y([T({manifest:{path:ar}}),x({since:"1.85.0"})],ta.prototype,"properties",2);var ZC=ta;var nI=class nI{};o(nI,"Actions");var eI=nI,iI=class iI{};o(iI,"ToolBar");var tI=iI;var Dd=class Dd{};o(Dd,"ActionAfterExecutionConfigurationToolBarLR"),y([T({manifest:{path:o((t,n,i,r,a)=>Lr(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Dd.prototype,"navigateToInstance",2),y([T({manifest:{path:o((t,n,i,r,a)=>Lr(t,n,i,r,a)+"/afterExecution","path")}})],Dd.prototype,"enableAutoScroll",2);var rI=Dd,_d=class _d{};o(_d,"ToolBarAction"),y([T({manifest:{path:Lr}})],_d.prototype,"enableOnSelect",2),y([T({manifest:{path:Lr}})],_d.prototype,"afterExecution",2);var oI=_d,dI=class dI{};o(dI,"ToolBarActionGroup");var aI=dI,gI=class gI{};o(gI,"ViewToolBarActionGroup");var sI=gI,Vd=class Vd{};o(Vd,"ViewToolBarAction"),y([T({manifest:{path:ro}})],Vd.prototype,"enableOnSelect",2),y([T({manifest:{path:ro}})],Vd.prototype,"afterExecution",2);var cI=Vd,wd=class wd{};o(wd,"CustomActionPosition"),y([T({manifest:{path:o((t,n,i,r,a)=>Lr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],wd.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r,a)=>Lr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],wd.prototype,"placement",2);var lI=wd,ja=class ja{};o(ja,"CustomTableAction"),y([T({manifest:{path:Lr}}),x({since:"1.84.0"})],ja.prototype,"text",2),y([T({manifest:{path:Lr}}),x({since:"1.84.0"})],ja.prototype,"position",2),y([T({manifest:{path:Lr}}),x({since:"1.84.0"})],ja.prototype,"press",2),y([T({manifest:{path:Lr}}),x({since:"1.84.0"})],ja.prototype,"requiresSelection",2),y([T({manifest:{path:Lr},generate:Yn}),x({since:"1.84.0"})],ja.prototype,"visible",2),y([T({manifest:{path:Lr},generate:Yn}),x({since:"1.84.0"})],ja.prototype,"enabled",2);var fI=ja,Md=class Md{};o(Md,"ViewCustomActionPosition"),y([T({manifest:{path:o((t,n,i,r,a)=>ro(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Md.prototype,"anchor",2),y([T({manifest:{path:o((t,n,i,r,a)=>ro(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Md.prototype,"placement",2);var uI=Md,$a=class $a{};o($a,"ViewTableCustomAction"),y([T({manifest:{path:ro}}),x({since:"1.84.0"})],$a.prototype,"text",2),y([T({manifest:{path:ro}}),x({since:"1.84.0"})],$a.prototype,"position",2),y([T({manifest:{path:ro}}),x({since:"1.84.0"})],$a.prototype,"press",2),y([T({manifest:{path:ro}}),x({since:"1.84.0"})],$a.prototype,"requiresSelection",2),y([T({manifest:{path:ro},generate:Yn}),x({since:"1.84.0"})],$a.prototype,"visible",2),y([T({manifest:{path:ro},generate:Yn}),x({since:"1.84.0"})],$a.prototype,"enabled",2);var pI=$a;var vI={};lc(vI,{FreestylePage:()=>yI,ListReport:()=>Fr,ObjectPage:()=>Io});function Iz(e){var t,n,i,r;((n=(t=e.paths)==null?void 0:t[0])!=null&&n.primary||(r=(i=e.paths)==null?void 0:i[0])!=null&&r.secondary)&&Object.keys(e).forEach(a=>delete e[a])}o(Iz,"deleteAllALPViews");function Oz(){}o(Oz,"doNotExport");function Rz(){}o(Rz,"doNotImport");var Fr=class{};o(Fr,"ListReport"),y([T({manifest:{path:o(t=>ut(t)+"/views","path"),import:Rz,export:Oz,delete:Iz}})],Fr.prototype,"chart",2),y([T({manifest:{path:o(t=>ut(t),"path")}}),x({since:"1.84.0"})],Fr.prototype,"variantManagement",2),y([T({manifest:{path:o(t=>ut(t)+"/views/paths/[]/0","path")}}),fe("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Fr.prototype,"defaultPath",2),y([T({manifest:{path:o(t=>ut(t),"path")}})],Fr.prototype,"defaultTemplateAnnotationPath",2),y([$t("header")],Fr.prototype,"header",2),y([$t("fe::FilterBar")],Fr.prototype,"filterBar",2),Fr=y([nr({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Fr);var hI=te(ce());var Io=class{};o(Io,"ObjectPage"),y([$t("header")],Io.prototype,"header",2),y([$t("layout")],Io.prototype,"layout",2),y([T({manifest:{path:o(t=>ut(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],Io.prototype,"variantManagement",2),y([$t("sections")],Io.prototype,"sections",2),Io=y([nr({id:`${hI.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:hI.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],Io);var TI=class TI{};o(TI,"FreestylePage");var yI=TI;var Ba=te(ce());var Lz={ALPTableView:kf},Nz={ALPTableView:kf},Fz={[Ba.DefinitionName.ObjectPageResponsiveTableV4]:Sd,[Ba.DefinitionName.ObjectPageAnalyticalTableV4]:Ad,[Ba.DefinitionName.ObjectPageGridTableV4]:Ed,[Ba.DefinitionName.ObjectPageTreeTableV4]:Pd,TableColumn:Gf,ObjectPageCustomSectionView:Nf,ActionAfterExecutionConfiguration:Id},Dz={[Ba.PageTypeV4.AnalyticalListPage]:Lz,[Ba.PageTypeV4.ListReport]:Nz,[Ba.PageTypeV4.ObjectPage]:Fz},bI=class bI extends af{constructor(){super(mI,vI,Dz)}};o(bI,"MetadataInstanceFactoryV4");var Ha=bI;var SI=require("@sap-ux/vocabularies-types/vocabularies/UI");function AI(e,t,n,i,r,a,s){var g,m,h,S,b,O;let l=t.jsonSchema.definitions,u=a&&a!==`@${SI.UIAnnotationTerms.LineItem}`?a:ye.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let N in p.properties){let G=l[u].properties[N].$ref.split($)[1].split("<")[0];e.columns[N]=n.createInstance(i,G);let j=s||a;Ot(e.columns[N],t.manifest,l[G],r,[N,j],j,t.logger),Gr(e.columns,N)}Gr(e,"columns")}else{let N=(O=(b=(S=(h=(m=(g=t.manifest["sap.ui5"])==null?void 0:g.routing)==null?void 0:m.targets)==null?void 0:h[r])==null?void 0:S.options)==null?void 0:b.settings)==null?void 0:O.views;(!N||N.paths.length<1)&&ae(t.logger,{severity:ye.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}}o(AI,"transferColumns");function _z(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[ye.DefinitionName.VisualFilters];if(t.visualFilters={},typeof s=="object"){for(let l in s.properties){let u=s.properties[l];if(typeof u=="object"&&u.$ref){let p=on(u.$ref),g=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,g),Ot(t.visualFilters[l],e.manifest,a[p],r,[l])}}Gr(t,"visualFilters")}}o(_z,"importVisualFilters");function Vz(e,t,n,i,r,a=ye.DefinitionName.LineItems,s){var g;let l=e.jsonSchema.definitions,u=s;!u&&[ye.DefinitionName.LineItems,`${ye.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(u=`@${SI.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${ye.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let m in p.properties){let h=p.properties[m];if(typeof h=="object"&&h.$ref){let b={actionPropertyDefinition:(g=p==null?void 0:p.properties)==null?void 0:g[m],appSchema:e.jsonSchema,factory:n,actionsInConfig:t.toolBar.actions,actionKey:m,manifest:e.manifest,routingId:r,targetAnnotation:u};Dl(b)}}}o(Vz,"importActions");function EI(e,t,n,i,r,a=ye.DefinitionName.LineItems,s){let l=n.createInstance(i,ye.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,Ot(u.toolBar,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ToolBarLR],r,[]),Vz(e,u,n,i,r,a,s),Gr(u.toolBar,"actions"),Gr(u,"toolBar")}o(EI,"transferToolBar");function Nk(e,t,n){var s;let i=(s=e[t])==null?void 0:s[ye.SchemaTag.annotationPath],r=n?`/${n}/`:"",a=i==null?void 0:i.substr(i.lastIndexOf("@"));return a=r?`${r}${a}`:a,a}o(Nk,"determineTargetAnnotationOfView");function wz(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,ye.DefinitionName.ALPChart);let s=a[ye.DefinitionName.ALPChart],l=s[ye.SchemaTag.annotationPath];Ot(t.chart,e.manifest,s,r,[s[ye.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,ye.DefinitionName.ToolBar,{actions:{}}),Ot(t.chart.toolBar,e.manifest,a[ye.DefinitionName.ViewChartToolBar],r,[]);let u=a[ye.DefinitionName.ALPTable][ye.SchemaTag.annotationPath];if(u){let p=a[ye.DefinitionName.ALPTable],g=t.table=n.createInstance(i,ye.DefinitionName.ALPTable);EI(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));Ot(g,e.manifest,p,r,[p[ye.SchemaTag.key],m]),AI(g,e,n,i,r,void 0,m)}}o(wz,"importALPViews");function Mz(e){let t;return e.indexOf(ye.DefinitionName.LRTableView)>-1?t=ye.DefinitionName.LRTableView:e.indexOf(ye.DefinitionName.LRChartView)>-1?t=ye.DefinitionName.LRChartView:e===ye.DefinitionName.TableViewExtension&&(t=ye.DefinitionName.TableViewExtension),t}o(Mz,"getViewTypeByDefinition");function kz(e,t,n,i,r){let a=t.table.views=n.createInstance(i,ye.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;Ot(a,e.manifest,s[ye.DefinitionName.MultiTableModeV4],r,[]);let l=s[ye.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][ye.SchemaTag.propertyIndex]-g[1][ye.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split($)[1],m=Mz(g),h=a[p[0]]=n.createInstance(i,m),S=s[g].entitySet,b=Nk(s,g,S);if(Ot(h,e.manifest,s[g],r,[p[0],b]),m===ye.DefinitionName.LRTableView){let O=`${ye.DefinitionName.LineItemsOfView}::${p[0]}`;EI(e,h,n,i,r,O,b),AI(h,e,n,i,r,O,b)}Object.keys(h).length===0&&delete a[p[0]]}Gr(t.table,"views")}o(kz,"importLRViews");function Uz(e,t,n,i,r){let a=ye.DefinitionName.HeaderActions,s=ye.PropertyName.header,l=e.definitions[a];if(typeof l=="object"){t[s].actions={};for(let u in l.properties){let p=l.properties[u];if(typeof p=="object"&&p.$ref){let g=on(p.$ref),m=e.definitions[g],h=on(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(ye.PageTypeV4.ObjectPage,h),Ot(t[s].actions[u],i,e.definitions[h],r,[u.replace("/","??")]),Gr(t.header,"actions"),Gr(t,"header")}}}}o(Uz,"transferHeaderActions");function jz(e,t,n,i){let r=e.jsonSchema.definitions,a={};for(let s of[ye.DefinitionName.SelectionFields,ye.DefinitionName.CompactFilters]){let l=r[s];typeof l=="object"&&l.properties&&Object.keys(l.properties).length&&(a=l.properties)}for(let s in a){let l=a[s];if(typeof l!="object"||l.$ref!==$+ye.DefinitionName.CustomFilterField)continue;let u=n.createInstance(ye.PageTypeV4.ListReport,ye.DefinitionName.CustomFilterField),p=l.$ref.split($)[1];Ot(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}o(jz,"importCustomFilterFields");function $z(e,t,n,i,r,a){if(Ot(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,ye.DefinitionName.Header),Ot(t.header,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.Header],r,[]),Uz(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,ye.DefinitionName.FilterBar),Ot(t.filterBar,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.FilterBar],r,[]),_z(e,t.filterBar,n,i,r),jz(e,t.filterBar,n,r),a===ye.SchemaType.ListReport){let s=ye.DefinitionName.Table,l=e.jsonSchema.definitions[s],u;l.$ref&&(s=l.$ref.split($)[1],l=e.jsonSchema.definitions[s],u=l.properties.columns.$ref.split($)[1]),t.table=n.createInstance(i,ye.DefinitionName.Table);let p=Nk(e.jsonSchema.definitions,s);Ot(t.table,e.manifest,l,r,[s,p]),EI(e,t,n,i,r,u),AI(t.table,e,n,i,r,u,p),kz(e,t,n,i,r)}else a===ye.SchemaType.AnalyticalListPage&&wz(e,t,n,i,r)}o($z,"addSettings");function rl(e,t){if(qt(),!e.jsonSchema)return;if(!e.manifest[ye.ManifestSection.ui5]||!e.manifest[ye.ManifestSection.ui5].routing){ae(e.logger,{severity:ye.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5]}});return}let n=e.manifest[ye.ManifestSection.ui5].routing.targets;if(!n){ae(e.logger,{severity:ye.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5]}});return}let i=new Ha,r=i.createPageInstance(ye.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=Jb(s);if("name"in s&&(l===ye.PageTypeV4.ListReport||l===ye.PageTypeV4.AnalyticalListPage)){$z(e,r,i,ye.PageTypeV4.ListReport,a,t);break}}return r}o(rl,"createListReportConfig");var ve=te(ce()),qs=require("@sap-ux/vocabularies-types/vocabularies/UI");function Bz(e,t){var i;let n="boolean";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?e==="true"||e==="false":!1}o(Bz,"isBoolean");function Hz(e,t){var i;let n="number";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?!isNaN(parseFloat(e.toString())):!1}o(Hz,"isNumber");function Gz(e,t){let n=e.toString();return Bz(n,t)?n==="true":Hz(n,t)?parseFloat(n):e}o(Gz,"convertValue");function Wz(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=Gz(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(Wz,"importProperty");function Fk(e,t,n){let i,r=xf(e.file,!1,n);if(r){let a=sT(r);i={},Jc({fullSchema:t,schema:t,element:a,contextPath:[],config:i},Wz)}return i}o(Fk,"convertXmlFileToConfig");function $T(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=Uo(t||[],r,n,a),l;return s&&(l=Fk(s,i,e.logger)),l}o($T,"createCustomPageConfig");function kd(e,t){var h;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=Cf(t),u=(h=r.definitions)==null?void 0:h[l];if(!r||!u)return;let p=bc(i,a),g=Sc(n||[],p,i,"fragment",t),m;if(g){let S={...u,definitions:r.definitions};m=Fk(g,S,s)}return m}o(kd,"createCustomFragmentConfig");function PI(e,t=!1,n){var r,a,s;let i=t?(r=e.split("<")[1])==null?void 0:r.slice(0,-1):e;if(n){let l=i.split(`@${n}`);return`${(a=l[0])==null?void 0:a.replace(/::/g,"/")}@${n}${(s=l[1])==null?void 0:s.replace(/::/g,"#")}`}return`${e==null?void 0:e.replace(/::/g,"/").replace(/::/g,"#")}`}o(PI,"getManifestId");function Ud(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(Ud,"getDefinitionId");function Kz(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[Ud(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(ve.DefinitionName.CustomColumnOP)>-1?s=ve.DefinitionName.CustomColumnOP:s=ve.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(ve.PageTypeV4.ObjectPage,s);Ot(g,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],a),Object.keys(g).length>0&&(n[i].table.columns[u]=g)}}}o(Kz,"fillTableColumnsInConfig");function Vk(e,t,n,i,r,a){var s;if(typeof t=="object")for(let l in t.properties){let u=t.properties[l];if(typeof u=="object"&&u.$ref){let p=on(u.$ref),g=(s=t==null?void 0:t.properties)==null?void 0:s[l],m=p.split("<")[0],h;m.includes(ve.DefinitionName.CustomSectionActionOP)?h=i.actions:h=i[n].table.toolBar.actions;let S={actionPropertyDefinition:g,appSchema:e.jsonSchema,factory:r,actionsInConfig:h,actionKey:l,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Dl(S)}}}o(Vk,"fillSectionActionsInConfig");function Xz(e,t,n,i,r,a){if(t.actions){let s=i[n].form.actions={},u=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageSectionForm}<${Ud(a)}>`].properties.form.$ref.split($)[1],m=e.jsonSchema.definitions[u].properties.actions.$ref.split($)[1],h=e.jsonSchema.definitions[m];for(let S in h.properties){let b=h.properties[S],O=on(b.$ref),N=e.jsonSchema.definitions[O];if(N.annotationType===qs.UIAnnotationTypes.DataFieldForAction||N.annotationType===qs.UIAnnotationTypes.DataFieldForActionGroup||N.description==="Custom Action"){let M={actionPropertyDefinition:b,appSchema:e.jsonSchema,factory:r,actionsInConfig:s,actionKey:S,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Dl(M)}}}}o(Xz,"fillFormActionsInConfig");function Qz(e){return new Map([["AnalyticalTable",ve.DefinitionName.ObjectPageAnalyticalTableV4],["GridTable",ve.DefinitionName.ObjectPageGridTableV4],["ResponsiveTable",ve.DefinitionName.ObjectPageResponsiveTableV4],["TreeTable",ve.DefinitionName.ObjectPageTreeTableV4]]).get(e)??ve.DefinitionName.ObjectPageResponsiveTableV4}o(Qz,"getTableDefinitionNameByType");function Dk(e,t,n,i,r,a){var u;let s=a||PI(i,!1,qs.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){let{tableSettings:p={}}=l,g=p.type,m=Qz(g);n[i]={},n[i].table=r.createInstance(ve.PageTypeV4.ObjectPage,m);let h=`${m}<${a?Ud(a):i.replace("#","::")}>`;Ot(n[i].table,e.manifest,e.jsonSchema.definitions[h],e.routingId,[],s),n[i].table.toolBar=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ToolBar,{actions:{}});let S=e.jsonSchema.definitions[`${ve.DefinitionName.Actions}<${Ud(s)}>`];Vk(e,S,i,n,r,s),Kz(e,l,n,i,r,s)}}o(Dk,"fillTableInConfig");function qz(e,t,n,i,r){var l;let a=PI(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageForm,{actions:{}}),Xz(e,s,i,n,r,a))}o(qz,"fillFormInConfig");function Yz(e,t,n,i,r,a){let s=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split($)[1];if(Ot(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let u=kd(e,s.fragmentName);s.controls=u}n[i]=s}o(Yz,"fillCustomSubSectionInConfig");function wk(e,t,n,i,r,a){var s,l,u,p,g;for(let m in t){let h=t[m],S=m;if(m.includes(qs.UIAnnotationTerms.PresentationVariant)&&((s=h.$ref)!=null&&s.startsWith($+ve.DefinitionName.ObjectPageSectionTableV4))){let b=h.$ref.split($)[1];S=PI(b,!0,qs.UIAnnotationTerms.LineItem),Dk(e,n,i,m,r,S)}else(l=h.$ref)!=null&&l.startsWith($+ve.DefinitionName.ObjectPageSectionTableV4)?Dk(e,n,i,m,r):h.properties&&h.properties.subsections?(i[m]={subsections:{}},wk(e,h.properties.subsections.properties,n,i[m].subsections,r,m)):(u=h.$ref)!=null&&u.startsWith($+ve.DefinitionName.ObjectPageSectionForm)&&((p=h.$ref)!=null&&p.includes(`@${qs.UIAnnotationTerms.FieldGroup}::`))?qz(e,n,i,m,r):(g=h.$ref)!=null&&g.startsWith($+ve.DefinitionName.ObjectPageCustomSubSectionFragment)&&Yz(e,h,i,m,r,a)}}o(wk,"fillSectionsInConfig");function zz(e,t,n,i){var a,s;let r=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(r)for(let l in r){let u=r[l];if("subSections"in u)continue;let p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionFragment);if(Ot(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),u.actions){p.actions=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageCustomSectionActions}<${Ud(l)}>`];Vk(e,m,l,p,i,l)}let g=u.template;if(g){let m=kd(e,g);p.controls=m}n.sections[l]=p}}o(zz,"fillCustomSectionsInConfig");function Jz(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,a=r&&"facets"in r?r.facets:void 0;if(a)for(let l in a){let u=a[l],p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomHeaderSectionFragment);Ot(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let h=kd(e,g);p.controls=h}let m=u.templateEdit;if(m){let h=kd(e,m);p.controlsEditMode=h}n.header.sections[l]=p}}o(Jz,"fillCustomHeaderSectionsInConfig");function Zz(e,t,n,i,r){var s,l;let a=e.definitions[ve.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let u in a.properties){let p=a.properties[u],g,m=(s=a.properties[u].$ref)==null?void 0:s.split($)[1];m&&(p=e.definitions[m],g=m.split("<")[0]),(g==null?void 0:g.includes(ve.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=n.createInstance(ve.PageTypeV4.ObjectPage,g),Ot(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(ve.FACETTITLEPREFIX)[1]))}}}o(Zz,"fillHeaderFacets");function _k(e,t,n,i,r,a,s){let l=e.definitions[a];if(typeof l=="object"){let u=t[s].actions={};for(let p in l.properties){let g=l.properties[p];typeof g=="object"&&g.$ref&&Dl({actionPropertyDefinition:g,appSchema:e,factory:n,actionsInConfig:u,actionKey:p,manifest:i,routingId:r})}}}o(_k,"fillHeaderFooterActions");function eJ(e,t,n){var a,s;let i=n.createPageInstance(ve.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageHeader),Ot(i.header,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageFooter),Ot(i.footer,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageLayout),Ot(i.layout,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageLayout],e.routingId,[]),Ot(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[ve.DefinitionName.Sections]&&(i.sections={},wk(e,e.jsonSchema.definitions[ve.DefinitionName.Sections].properties,r,i.sections,n)),zz(e,r,i,n),Zz(e.jsonSchema,i,n,e.manifest,e.routingId),Jz(e,r,i,n),_k(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.ObjectPageHeaderActions,ve.PropertyName.header),_k(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.FooterActions,ve.PropertyName.footer)),i}o(eJ,"fillObjectPageConfig");function BT(e){if(qt(),!e.manifest[ve.ManifestSection.ui5]||!e.manifest[ve.ManifestSection.ui5].routing){ae(e.logger,{severity:ve.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5]}});return}let t=e.manifest[ve.ManifestSection.ui5].routing.targets;if(!t){ae(e.logger,{severity:ve.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){ae(e.logger,{severity:ve.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let i=new Ha;return eJ(e,n,i)}o(BT,"createObjectPageConfigV4");var Ge=te(ce());var xI=[],HT={};function tJ(e,t){let n=e.target,i=t.target,r=Array.isArray(n),a=Array.isArray(i);return r&&a?n.length-i.length:!r&&!a?0:r?1:-1}o(tJ,"routesSorter");function CI(e,t=[]){if(!Array.isArray(e))return e;let n=e;for(let i of t)n=n.filter(r=>!i.includes(r));return n[0]}o(CI,"resolveTarget");function nJ(e){let t={};e=e.concat().sort(tJ);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=CI(i.target,n),n.push(i.target)):a=i.target;for(let s of r){let l=s.split("(")[0];t[a]=t[a]?`${t[a]}.${l}`:l}}return t}o(nJ,"populateAssociations");function iJ(e,t,n){let i;return e.name?e.name===Ge.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ge.PageTypeV4.FPMCustomPage:e.name.endsWith(Ge.PageTypeV4.ListReport)||e.name.endsWith(Ge.PageTypeV4.AnalyticalListPage)?i=Ge.PageTypeV4.ListReport:e.name.endsWith(Ge.PageTypeV4.ObjectPage)?i=Ge.PageTypeV4.ObjectPage:i=Ge.PageTypeV4.CustomPage:"viewId"in e?i=Ge.PageTypeV4.CustomPage:(ae(t,{severity:Ge.LogSeverity.Error,message:Q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ge.MANIFESTPATH,range:[`${Ge.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ge.ViewTypes&&"viewName"in e&&(i=Ge.PageTypeV4.CustomPage)),i}o(iJ,"determinePageType");function rJ(e){let t=e.target.viewId||e.target.id,n=_t(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Ge.PageTypeV4.CustomPage)return;let i=Object.keys(e.schemas).find(r=>r.includes(n))||Object.keys(e.schemas).find(r=>r.includes(n.slice(0,-1)))||Object.keys(e.schemas).find(r=>r.includes(e.page.pageType));if(i){if(e.page.pageType===Ge.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=BT(r)}else if(e.page.pageType===Ge.PageTypeV4.FPMCustomPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger,routingId:e.id,fragments:e.extensionFiles.fragments,views:e.extensionFiles.views};e.page.config=$T(r)}else if(e.templateType===Ge.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=rl(r,Ge.SchemaType.ListReport)}else if(e.templateType===Ge.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=rl(r,Ge.SchemaType.AnalyticalListPage)}else if(e.templateType===Ge.TemplateType.FreestylePageV4&&e.page.pageType===Ge.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=Ou(e.target)===Ge.TemplateType.AnalyticalListPageV4?Ge.SchemaType.AnalyticalListPage:Ge.SchemaType.ListReport;e.page.config=rl(r,s)}}}o(rJ,"convertSettingsToConfig");function oJ(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");xI.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");xI.push(t[t.length-1])}}o(oJ,"updateUnhandledControllers");function aJ(e,t){if(e.options){e.options.settings.variantManagement&&(t.variantManagement=e.options.settings.variantManagement),t.navigation={};for(let n in e.options.settings.navigation){let i=e.options.settings.navigation[n];t.navigation[n]=i.detail}}}o(aJ,"setVariantManagmentAndNavigation");function sJ(e,t,n){var i,r;if(e.options){t.entitySet=(i=e.options.settings)==null?void 0:i.entitySet,t.contextPath=(r=e.options.settings)==null?void 0:r.contextPath;let{entitySet:a,entityType:s}=el(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(a==null?void 0:a.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}o(sJ,"setEntitySetEntityTypeContextPath");function cJ(e,t,n){var i,r;if("viewId"in e)t.view={id:e.viewId,name:e.viewName,...e.viewType&&{viewType:e.viewType},...e.viewPath&&{path:e.viewPath},...e.path&&{path:e.path}};else if([Ge.PageTypeV4.CustomPage,Ge.PageTypeV4.FPMCustomPage].includes(n)){let a=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName,s=e.name;!a&&n===Ge.PageTypeV4.CustomPage&&(a=s,s=void 0),t.view={...e.id&&{id:e.id},...a&&{name:a},...s&&{template:s},...e.viewType&&{viewType:e.viewType}}}}o(cJ,"evaluateCustomPageSettings");function lJ(e,t,n,i){var p;let r=e.targets[t],a=iJ(r,i.logger,t),s={pageType:a};if(sJ(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),HT[t]&&HT[t].indexOf(".")!==-1){let g=HT[t].split(".");s.navigationProperty=g[g.length-1]}cJ(r,s,a),aJ(r,s),oJ(r);let l=e.routes.find(g=>(g==null?void 0:g.target)&&g.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),!((p=s.view)!=null&&p.template)&&"name"in r&&r.name&&(s.template=r.name),n[t]=s;let u={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};rJ(u)}o(lJ,"getSinglePageAndConfig");function Mk(e){let t={},n=e.manifest[Ge.ManifestSection.ui5].routing;if(!n||!n.routes){let i=Q.t("NOROUTING");return ae(e.logger,{severity:Ge.LogSeverity.Error,message:i,location:{path:Ge.MANIFESTPATH,range:[Ge.ManifestSection.ui5]}}),t}HT=nJ(n.routes||[]);for(let i in n.targets)lJ(n,i,t,e);return t}o(Mk,"getPagesAndConfigs");function kk(e){let t;if(e&&e.routes&&e.routes.length>0){for(let n of e.routes)if(n.pattern.startsWith(":?query:")){t=n;break}else if(n.pattern.indexOf("/")===-1){t=n;continue}return CI(t?t.target:e.routes[0].target)}else return}o(kk,"getHome");function Uk(e){let t=e==null?void 0:e.config;return t?{...t.flexibleColumnLayout&&{flexibleColumnLayout:t.flexibleColumnLayout},...t.viewType&&{viewType:t.viewType},...t.viewPath&&{path:t.viewPath},...t.path&&{path:t.path}}:{}}o(Uk,"getSettings");function qf(e,t){let n=e[Ge.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];Em(t,a.name)&&(i[r]=a)}return i}o(qf,"getPages");var II=class II extends fs{constructor(t){qt();let n=new If,i=_t(Ge.SchemaType.Application),r=t.appSchemas[i.filename];Ot(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,kk(t.manifest[Ge.ManifestSection.ui5].routing),Mk(t),{...Uk(t.manifest[Ge.ManifestSection.ui5].routing),...n}),this.unhandledControllers=xI}};o(II,"V4AppProvider");var Qf=II;var jk=require("fs"),ol=require("path"),$k=te(ce()),jd=te(ce());var Bk=o((e,t,n=__dirname)=>{let i;switch(t){case jd.SchemaType.Application:{i=`${jd.SchemaType.Application}${e.toUpperCase()}.json`;break}case jd.SchemaType.FPMCustomPage:{i=`${jd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,ol.join)(n,"schemas",e,i);if(n.endsWith((0,ol.join)("specification","packages","specification")))return(0,ol.join)(n,"dist","schemas",e,i);if(n.endsWith((0,ol.join)("src","specification")))return(0,ol.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,ol.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),fJ=o(async e=>new Promise((t,n)=>{(0,jk.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),GT=o(async(e,t)=>{try{let n=Bk(e||$k.FioriElementsVersion.v4,t,__dirname);return await fJ(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function uJ(e,t){let n={},i=[];switch(i=[pe.SchemaType.Application],e){case pe.TemplateType.ListReportObjectPageV4:case pe.TemplateType.AnalyticalListPageV4:i.push(pe.SchemaType.ListReport,pe.SchemaType.ObjectPage,pe.SchemaType.FPMCustomPage);break;case pe.TemplateType.FreestylePageV4:i.push(pe.SchemaType.FreestylePage),t===pe.FioriElementsVersion.v4&&i.push(pe.SchemaType.ListReport,pe.SchemaType.ObjectPage,pe.SchemaType.FPMCustomPage);break;case pe.TemplateType.ListReportObjectPageV2:i.push(pe.SchemaType.ListReport,pe.SchemaType.ObjectPage);break;case pe.TemplateType.AnalyticalListPageV2:i.push(pe.SchemaType.AnalyticalListPage,pe.SchemaType.ObjectPage);break;case pe.TemplateType.OverviewPageV2:i.push(pe.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=_t(r);n[a.filename]=await GT(t,r)}return n}o(uJ,"getGenericSchemas");function Gk(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ii(pe.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(Gk,"getAnnotationsForUi");function $d(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o($d,"getEntitySetByEntitySetName");function pJ(e,t){var r;let n=e.target.targetType,i=e.objectPath[1];for(let a=2;a<e.objectPath.length;a++){let s=e.objectPath[a];if(i&&s._type==="NavigationProperty"){let l=s.containsTarget?`${s.name}/${s.partner}`:s.name,u=(r=i.navigationPropertyBinding)==null?void 0:r[l];i=t.entitySets.find(p=>p.name===(u==null?void 0:u.name))}}return{entityType:n,entitySet:i}}o(pJ,"resolveNavigationProperty");function el(e,t,n,i){var l,u,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),a,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(a=(u=r.target)==null?void 0:u.entityType,s=r==null?void 0:r.target):((p=r==null?void 0:r.target)==null?void 0:p._type)==="NavigationProperty"?{entityType:a,entitySet:s}=pJ(r,e):ae(i,{severity:pe.LogSeverity.Error,message:Q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:pe.MANIFESTPATH}}),n&&!a&&ae(i,{severity:pe.LogSeverity.Error,message:Q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(el,"getEntityTypeEntitySetFromContextPath");function Hk(e,t,n){let i=Ip(e.manifest[pe.ManifestSection.generic].pages,pe.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=$d(a,e.serviceAVT);s||ae(e.logger,{severity:pe.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=_t(pe.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),u=_t(pe.SchemaType.ObjectPage);n[l.filename]=Bd(e,t[u.filename])}}o(Hk,"generateObjectPageSchemasV2");function dJ(e,t,n){var l,u;let i=qf(e.manifest,pe.v4.FE_TEMPLATE_V4_LIST_REPORT),r=qf(e.manifest,pe.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let g=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(u=a[p].options.settings)==null?void 0:u.contextPath,{entitySet:h,entityType:S}=el(s,m,g,e.logger);e.entityType=S,e.entitySet=h;let b=_t(pe.SchemaType.ListReport,p),O=_t(pe.SchemaType.ListReport);e.templateType===pe.TemplateType.FreestylePageV4&&(e.templateType=Ou(a[p])),n[b.filename]=Op(e,t[O.filename],a[p].name,m)}}o(dJ,"generateListReportSchemasV4");function gJ(e,t,n){var r;let i=Ip(e.manifest[pe.ManifestSection.generic].pages,pe.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=$d(s,e.serviceAVT);let l=_t(pe.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=_t(pe.SchemaType.ListReport);t[l.filename]=Cp(e,n[u.filename])}}o(gJ,"generateAppSchemaV2LR");function mJ(e,t,n){var a,s;let i=qf(e.manifest,pe.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let u=(a=i[l].options.settings)==null?void 0:a.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:g,entitySet:m}=el(r,p,u);e.entitySet=m,e.entityType=g;let h=_t(pe.SchemaType.ObjectPage,l),S=_t(pe.SchemaType.ObjectPage),b=_t(pe.SchemaType.FPMCustomPage);n[h.filename]=id(e,t[S.filename],p,t[b.filename])}}o(mJ,"generateObjectPageSchemasV4");function hJ(e,t,n,i){var a;let r={};if(i===pe.TemplateType.ListReportObjectPageV2&&n)gJ(e,r,t),Hk(e,t,r);else if(i===pe.TemplateType.AnalyticalListPageV2&&n){let s=Ip(e.manifest[pe.ManifestSection.generic].pages,pe.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let u=s[l].entitySet;e.entitySet=$d(u,e.serviceAVT);let p=_t(pe.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||u),g=_t(pe.SchemaType.AnalyticalListPage);r[p.filename]=Hd(e,t[g.filename])}Hk(e,t,r)}else if(i===pe.TemplateType.OverviewPageV2){let s=_t(pe.SchemaType.OverviewPage),l=_t(pe.SchemaType.OverviewPage);r[s.filename]=Gd(t[l.filename],e.manifest)}return{...t,...r}}o(hJ,"generateAppSchemasV2");function yJ(e,t,n){if(!gc(e.featureToggles,pe.Features.BuildingBlocks))return;let i=qf(e.manifest,pe.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=Uo(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let u=_t(pe.SchemaType.FPMCustomPage,void 0,l),p=_t(pe.SchemaType.FPMCustomPage);n[u.filename]=Zc(t[p.filename],s,e.serviceAVT,e.logger)}}}o(yJ,"generateCustomPageSchemasV4");function TJ(e,t,n){let i={};return n&&(dJ(e,t,i),mJ(e,t,i),yJ(e,t,i)),{...t,...i}}o(TJ,"generateAppSchemasV4");async function Wk(e,t,n){let i=await uJ(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===pe.FioriElementsVersion.v4?TJ(e,i,t):hJ(e,i,t,n)}o(Wk,"generateAppSchemas");function vJ(e){let t,n=[];switch(e.templateType){case pe.TemplateType.ListReportObjectPageV2:case pe.TemplateType.AnalyticalListPageV2:t=new dy(e);break;case pe.TemplateType.AnalyticalListPageV4:case pe.TemplateType.ListReportObjectPageV4:case pe.TemplateType.FreestylePageV4:t=new Qf(e);break;case pe.TemplateType.OverviewPageV2:t=new my(e);break;default:t=new Qf(e);break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in r)n.push({dataSourceUri:a,fileContent:JSON.stringify(r[a],null,4)})}return n}o(vJ,"importConfigs");function Kk(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===pe.SchemaType.Application?r=`${pe.DirName.Schemas}/${pe.FileName.App[0].toUpperCase()}${pe.FileName.App.slice(1)}`:r=`${pe.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o(Kk,"getFileList");async function OI(e){var b,O;qt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new Vu().doesUi5VersionFitDistTags((O=(b=t["sap.ui5"])==null?void 0:b.dependencies)==null?void 0:O.minUI5Version,i);let u=iS(t),p=Hr(n,i),g=Gk(p),m=dc(t,u,i),S=await Wk({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return Kk(S)}o(OI,"importProjectSchema");async function RI(e){var G,j;qt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new Vu().doesUi5VersionFitDistTags((j=(G=t["sap.ui5"])==null?void 0:G.dependencies)==null?void 0:j.minUI5Version,i);let p=iS(t),g=CD(t),m=Hr(n,i),h=dc(t,p,i),S={templateType:h,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},b=Gk(m),O=await Wk(S,b,h),M=vJ({manifest:t,flexChanges:s,appSchemas:O,templateType:h,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return Kk(O,M)}o(RI,"importProjectSchemaAndConfig");var bJ=["header","sections","footer"];function SJ(e,t,n,i){t.properties[n][se.SchemaTag.artifactType]=se.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=se.ControlType.Section;break;case"ObjectPageSubSectionV2":r=se.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=se.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=se.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=se.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=se.ControlType.ObjectPageHeaderSection;break}r&&(mt(e,t,n),t.properties[n][se.SchemaTag.controlType]=r)}o(SJ,"addFlexChangeForSection");function AJ(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Oo.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=Gm(a,r.serviceAVT);if(!l)return;let p=a.Label||s,g=`ObjectPageHeaderAction<${lt(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${Oo.UIAnnotationTerms.Identification}`,`/@${Oo.UIAnnotationTerms.Identification}`);t.definitions[g][se.SchemaTag.annotationPath]=`/${m}`,t.definitions[g][se.SchemaTag.actionType]=se.ActionType.Annotation,t.definitions[g].description=p,t.definitions[g][se.SchemaTag.keys]=[{name:se.SchemaKeyName.action,value:s}],u&&(t.definitions[g][se.SchemaTag.target]=u),i.properties[l]={$ref:`${$}${g}`}}})}o(AJ,"addHeaderActionCallBackV2");function EJ(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Oo.UIAnnotationTypes.DataFieldForAction){let a=Wr(r).split("::").splice(1).join("::"),s=ai(r,e),l=lt(`${se.DefinitionName.ObjectPageFooterAction}<${a}>`),u=r.fullyQualifiedName.replace(`@${Oo.UIAnnotationTerms.Identification}`,`/@${Oo.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[se.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${u}`}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${$}${l}`}}})}o(EJ,"addFooterActionCallBackV2");function PJ(e,t,n,i,r,a,s,l){let u,p;if(a.ID&&a.Label?u=a.ID+a.Label.replace(/\s+/g,""):a.ID?u=a.ID:a.Label&&(u=a.Label.replace(/\s+/g,"")),u?p=`${se.DefinitionName.CustomColumns}<${n}><${s}><${u}>`:p=`${se.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let g=`${se.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[g]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let m=[],h=r==null?void 0:r.entityTypes.find(b=>b.name===i),S=$c(t[se.ManifestSection.generic].pages,n,m);return Vl(e,h,S,t,l,p,g,a.ID),p}o(PJ,"ensureCustomColumnDefinitionExists");function Kd(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&SJ(e,t,"visible",n)}o(Kd,"addAppSchemaDefinition");function xJ(e,t,n){e.properties[t]={$ref:`${$}${n}`}}o(xJ,"addSectionReference");function Wd(e,t,n,i){let r=lt(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=$+t,i.definitions[r].properties.toolBar.$ref=`${$}ObjectPageToolBar<${t}>`,i.definitions[r][se.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=se.FACETTITLEPREFIX+n.ID,i.definitions[r][se.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=se.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${$}QuickVariantSelectionOP<${t}>`,i.definitions[`QuickVariantSelectionOP<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariantSelectionOP)),i.definitions[`QuickVariant<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariant)),i.definitions[`QuickVariantSelectionOP<${t}>`].properties.variants.patternProperties["^[0-9]+$"].$ref=`${$}QuickVariant<${t}>`,ss(n.entityType,i,`QuickVariant<${t}>`)}o(Wd,"addTableDefinition");function CJ(e,t,n,i,r,a){if(i.base!==se.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=wo(n,i,t);let u=n.definitions[l];Kd(n,u,a,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[se.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${$}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${$}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${$}ObjectPageAnalyticalTable<${t}>`},{$ref:`${$}ObjectPageGridTable<${t}>`},{$ref:`${$}ObjectPageTreeTable<${t}>`}],u[se.SchemaTag.annotationPath]=i.annotationPath,Ta(i,u,t),ns(i,u,t),Wd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),Wd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),Wd("ObjectPageGridTable",t,i,n),Wd("ObjectPageTreeTable",t,i,n),Wd("ObjectPageAnalyticalTable",t,i,n);let p,g=T1(i.entityType,e.serviceAVT);g&&(p=PJ(n,e.manifest,g.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let h=r[m];h.base===se.FacetBase.LineItem&&(h.ID===s||m.includes(s))&&_l(!0,n,h.target,h.entityType,h.ID||m,p)}}o(CJ,"handleLineItem");function IJ(e,t,n,i,r,a=!1){e.definitions[t]=wo(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";Kd(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[se.SchemaTag.isViewNode]=!0}o(IJ,"handleSubSection");function OJ(e,t,n,i,r){e.definitions[t]=wo(e,n,i);let a=e.definitions[t];Kd(e,a,r,"ObjectPageSectionChartV2")}o(OJ,"handleSectionChart");function Xk(e,t,n,i,r,a){e.definitions[t]=wo(e,n,i);let s=e.definitions[t];Kd(e,s,r,a||"CommonHeaderFacetSettings"),s[se.SchemaTag.annotationPath]=n.annotationPath,s[se.SchemaTag.isViewNode]=!0,s[se.SchemaTag.dataType]=Pc(n==null?void 0:n.target)}o(Xk,"handleHeaderFacet");function RJ(e,t,n){let i=e.definitions[t],r=i[se.SchemaTag.dataType]=Pc(n==null?void 0:n.target);r==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:r==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}o(RJ,"addDataPointHeaderFacetDataType");function LJ(e,t,n,i,r){e.definitions[t]=wo(e,n,i);let a=e.definitions[t];return Kd(e,a,r,"ObjectPageSectionFormV2"),a[se.SchemaTag.annotationPath]=n.annotationPath,a[se.SchemaTag.isViewNode]=!0,a}o(LJ,"handleFormSection");function NJ(e,t,n){let i=new Map([[se.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[se.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[se.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[se.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[se.FacetBase.Form,"ObjectPageHeaderSectionForm"],[se.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[se.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[se.FacetBase.LineItem,"ObjectPageSectionTableV2"],[se.FacetBase.Chart,"ObjectPageSectionChartV2"],[se.FacetBase.Address,"ObjectPageSectionAddressV2"],[se.FacetBase.Contact,"ObjectPageSectionContactV2"],[se.FacetBase.Form,"ObjectPageSectionFormV2"],[se.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[se.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[se.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[se.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[se.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[se.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[se.FacetBase.Form,"ObjectPageSubSectionFormV2"],[se.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(NJ,"getSectionType");function FJ(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Oo.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(FJ,"getReferenceKey");function qk(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=NJ(l.base,a,s),p=FJ(l,n,u),g=`${u}<${p}>`;switch(xJ(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,IJ(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let h in l.facets)qk(e,l.facets,h,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{CJ(e,p,r,l,t,u),kl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{OJ(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=LJ(r,g,l,p,u);Hm(se.SectionType.Section,l,m,r,se.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{_u(l,p,i,r,se.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{_u(l,p,i,r,se.SectionType.Section,se.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{Xk(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{Xk(r,g,l,p,u),RJ(r,g,l);break}default:i.properties[n]=wo(r,l,p)}}o(qk,"addSection");function Qk(e,t,n,i,r,a=!1){if(e)for(let s in t)qk(i,t,s,n,r,!1,a)}o(Qk,"addSectionsFromFacets");function Yk(e,t,n){var g,m,h,S,b,O;let i=t.definitions[se.DefinitionName.Sections];i[se.SchemaTag.isViewNode]=!0,(g=e.entitySet)!=null&&g.entityType&&(i[se.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Oo.UIAnnotationTerms.Facets}`);let r=t.definitions[se.DefinitionName.HeaderSections];if(r[se.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[se.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Oo.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=ym((h=e.entitySet)==null?void 0:h.entityType,e.serviceAVT,se.FioriElementsVersion.v2,e.logger),s=hm((S=e.entitySet)==null?void 0:S.entityType,e.serviceAVT,se.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,u=s&&!!Object.keys(s).length;if(!l&&!u)return;for(let N in n){let M=n[N];(O=(b=e.entitySet)==null?void 0:b.name)!=null&&O.includes(M.entitySet)?(Qk(l,a,i,e,t),Qk(u,s,r,e,t,!0)):Yk(e,t,M.pages)}let p=t.definitions.CustomSections;for(let N in p.properties)i.properties[N]=p.properties[N]}o(Yk,"addSections");function DJ(e,t,n){Xm(e,n),Km(e,n,t,AJ,void 0,!0)}o(DJ,"addHeader");function _J(e,t,n,i){let r=OD(t,n,i,void 0,!0);r&&E1(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(_J,"addRelatedFacetKeysType");function Bd(e,t){var s;qt();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[se.PropertyName.sections]={$ref:$+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[se.ManifestSection.generic].pages;return a?(DJ(n,e,r),n.definitions[se.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Yk(e,n,a),_J(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[se.SchemaTag.isViewNode]=!0):delete n.properties[se.PropertyName.sections]),Wm(n,e,se.FioriElementsVersion.v2,EJ,a),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.CommonHeaderFacetSettings,delete n.definitions.ObjectPageHeaderSection,delete n.definitions.ObjectPageCustomHeaderSectionFragment,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTableWithMultiSelect,delete n.definitions.ObjectPageResponsiveTableWithInlineDelete,delete n.definitions.ObjectPageAnalyticalTable,delete n.definitions.ObjectPageTreeTable,delete n.definitions.ObjectPageGridTable,delete n.definitions.ObjectPageToolBar,delete n.definitions.ObjectPageToolBarActions,delete n.definitions.ObjectPageForm,delete n.definitions.ObjectPageFormFields,delete n.definitions.ObjectPageFormActions,delete n.definitions.FieldPathOP,ko(n,bJ),n):(ae(e.logger,{severity:se.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:se.MANIFESTPATH,range:[se.ManifestSection.generic]}}),n)}o(Bd,"generateObjectPageSchemaV2");var tn=te(ce());var VJ=["filterBar","keyPerformanceIndicators","chart","table","footer"];function wJ(e,t,n){var b;let i=(b=e==null?void 0:e.component)==null?void 0:b.settings;if(jc(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(O){let N=O+(r?"#"+r:"");return t[N]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let O=r?Q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):Q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return ae(n,{severity:tn.LogSeverity.Error,message:O}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(O){return p=p||Nu("LineItem",O),g=g||Nu("Chart",O),p&&g}),p=p||"LineItem",g=g||"Chart";let m=t[p],h=t[g],S=(m||i.quickVariantSelectionX?0:1)+(h?0:2);if(S>0){let O=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][S-1],N=Q.t(O);ae(n,{severity:tn.LogSeverity.Warning,message:N})}return{lineItemAnnotation:m,chartAnnotation:h}}o(wJ,"getLineItemAndChartAnnotation");function MJ(e,t){let n=e.definitions[tn.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[tn.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(MJ,"addChart");function Hd(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[tn.PropertyName.table].anyOf[0].$ref=$+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${$}${tn.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${$}${tn.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[tn.PropertyName.table].anyOf[1].$ref=`${$}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${$}${tn.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${$}${tn.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[tn.PropertyName.table].anyOf[2].$ref=`${$}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${$}${tn.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${$}${tn.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,u1(n.definitions.TableColumnExtensionTypeV2.enum,[tn.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=Ml(e);if(s){wl(n);let l=[],u=of(e.manifest[tn.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=wJ(u,s,e.logger);p&&o1.forEach(h=>{n.definitions[h][tn.SchemaTag.annotationPath]=vr(a.fullyQualifiedName,p.term,p.qualifier)}),_l(!1,n,p,a),g&&MJ(n,g);let m=s.SelectionFields;if(jm(n,m,a),kl(n,a),!u)return ae(e.logger,{severity:tn.LogSeverity.Error,message:Q.t("NOLR"),location:{path:tn.MANIFESTPATH,range:[tn.ManifestSection.generic]}}),n;Vl(n,a,u,e.manifest,e.fragments),JE(a,e.entitySet,n,e.serviceAVT),delete n.definitions.ALPGridTable,delete n.definitions.ALPResponsiveTable,delete n.definitions.ALPAnalyticalTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.GenericFooter,delete n.definitions.Actions,delete n.definitions.FieldPath}return ko(n,VJ),n}o(Hd,"generateAnalyticalListReportSchemaV2");var zk=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function kJ(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let r=i.$ref.split("/");return r[r.length-1]})}o(kJ,"getCardDefinitionNames");function UJ(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),r=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(r).filter(u=>i.includes(r[u].dataSource)));let s=e.definitions;s.CardModel={type:"string"},Ea(a,s.CardModel);let l=kJ(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=$+"CardModel"}}o(UJ,"addModelsEnum");function jJ(e,t){let n=e.properties;for(let i in zk){let r=zk[i],a=r.key;n[a]&&(n[a].messages=[{text:Nl(a,{since:r.since,deprecated:{since:r.deprecated.since,text:r.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}o(jJ,"markDeprecatedProperties");function Jk(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},jJ(n,t),UJ(n,t),n}o(Jk,"generateOverviewPageSchemaV2");var Ys=te(ce());function LI(e,t,n,i,r,a){qt();let s=Hr(e,t),l={templateType:a,fioriElementsVersion:Ys.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=$d(r,l.serviceAVT),l.entitySet||ae(l.logger,{severity:Ys.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(LI,"prepareGenerationV2");function NI(e,t,n,i,r,a){let s=LI(n,a,i,r,t,Ys.TemplateType.ListReportObjectPageV2);return Bd(s,e)}o(NI,"generateObjectPageInterfaceV2");function FI(e,t,n,i,r,a){let s=LI(n,a,i,r,t,Ys.TemplateType.ListReportObjectPageV2);return Cp(s,e)}o(FI,"generateListReportInterfaceV2");function DI(e,t,n,i,r,a){let s=LI(n,a,i,r,t,Ys.TemplateType.AnalyticalListPageV2);return Hd(s,e)}o(DI,"generateAnalyticalListPageInterfaceV2");function Gd(e,t){return Jk(e,t)}o(Gd,"generateOVPInterfaceV2");var Yf=te(ce()),e2=require("@sap-ux/vocabularies-types/vocabularies/UI");function Zk(e,t,n=!0){n?(e.dependencies||(e.dependencies={}),e.dependencies.libs||(e.dependencies.libs={}),e.dependencies.libs[t]===void 0&&(e.dependencies.libs[t]={})):e.dependencies&&e.dependencies.libs&&e.dependencies.libs[t]!==void 0&&delete e.dependencies.libs[t]}o(Zk,"updateDependencyLib");function WT(e){let t=e;if(e.indexOf("<")>-1){t=e.substring(e.indexOf("<")+1,e.length-1);let n=e.substring(0,e.lastIndexOf("::")).replace(/::/g,"/");n&&(t=`${n}/${t}`)}return t}o(WT,"extractLastIdPart");function t2(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return ae(i,{severity:Yf.LogSeverity.Error,message:Q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(Yf.PropertyName.sections),s=a>-1?WT(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${e2.UIAnnotationTerms.LineItem}`,u=n.eventHandler===!0?!0:void 0,p={target:t.pageNameArray[0],targetEntity:l,position:n.position,name:e,...n.header&&{header:n.header},...n.width&&{width:n.width},...n.availability&&{availability:n.availability},...u&&{eventHandler:u}},g={customExtension:Yf.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return _I(g),!0}o(t2,"createNewCustomColumn");var Ga=te(ce());var i2=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),n2=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function $J(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o($J,"initializeRouting");function BJ(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(BJ,"setTargetOptions");function HJ(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Ga.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(HJ,"calculateQueryPattern");function r2(e,t,n,i,r){if(r){e.push(...r.split("/")),e.shift();return}e.unshift(t);let a;for(let s in n){if(typeof n[s].navigation=="object"){let l=Object.keys(n[s].navigation).find(u=>n[s].navigation[u].route===i);l&&(t=l,a=n[s])}if(a){r2(e,t,n,s);return}}}o(r2,"fillNavigationParts");function GJ(e){let t={},n=e==null?void 0:e.split("/");return n&&n.length>0&&n.forEach(i=>{let r=i.substring(0,i.indexOf("({")),a=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[r]=a}),t}o(GJ,"fillParentKeys");function WJ(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(BJ(n,a,s),s!=null&&s.route&&!i.routes.some(u=>u.name===s.route)){let u=l==null?void 0:l.routePattern;if(!u){let p=[];r2(p,a,t,r,l==null?void 0:l.contextPath);let g=GJ(e.routePattern);u=HJ(p,l,g)}i.routes.push(i2(u,s.route,s.route))}}}o(WJ,"handlePageNavigation");function KJ(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(r=>r.name===n);i!==-1&&e.routes.splice(i,1)}}o(KJ,"removeDeletedPages");function XJ(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=n2({contextPath:e.contextPath},e.variantManagement)),t.options.settings.contextPath=e.contextPath):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.contextPath,e.entitySet?(t.options||(t.options=n2({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(a=(r=t.options)==null?void 0:r.settings)==null||delete a.entitySet}o(XJ,"transferEntitySetandContextPath");function QJ(e,t,n){let i=e.routes.find(r=>r.target&&r.target.indexOf(t)>-1);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}o(QJ,"updateRouteLayout");function qJ(e,t,n){var i;return e.pageType&&![Ga.PageTypeV4.CustomPage,Ga.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:e.template??`sap.fe.templates.${e.pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(e.pageType!==Ga.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Ga.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{...t==null?void 0:t.options,settings:{...(i=t==null?void 0:t.options)==null?void 0:i.settings,viewName:e.view.name}}}),t}o(qJ,"fillTarget");function o2(e,t,n){var r,a;let i=$J(n[Ga.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(i2(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=qJ(u,l,s),XJ(u,l),l&&!u.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(a=(r=l==null?void 0:l.options)==null?void 0:r.settings)!=null&&a.navigation&&(l.options.settings.navigation={}),WJ(u,t,l,i,s),QJ(i,s,u),i.targets[s]=l}return KJ(i,t),i}o(o2,"transformRoutingV4");var Oi=te(ce());var a2=[Oi.FlexibleColumnLayoutAggregations.BeginColumnPages,Oi.FlexibleColumnLayoutAggregations.MidColumnPages,Oi.FlexibleColumnLayoutAggregations.EndColumnPages],s2=o((e,t,n,i=[],r=0)=>{var p;let a=e.routing.routes.find(g=>g.name===n);if(!a)return;typeof a.target=="string"&&(a.target=r<=2?[...i,a.target]:[a.target]);let s=e.routing.targets[n],l=(p=t.pages)==null?void 0:p[n];if(!l)return;"controlAggregation"in l?s.controlAggregation=l.controlAggregation:a2[r]?s.controlAggregation=a2[r]:s.controlAggregation=Oi.FlexibleColumnLayoutAggregations.EndColumnPages;let u=a.pattern.replace(":?query:","");if(u?s.contextPattern=u.startsWith("/")?u:`/${u}`:s.contextPattern="",l.navigation){r++;for(let g in l.navigation)s2(e,t,l.navigation[g].route,a.target,r)}},"applyFCLRouting"),YJ=o((e,t)=>{e.routing.config.routerClass=Oi.v4.FIORI_FCL_ROUTER_CLASS,s2(e,t,t.home);let n={viewName:Oi.FIORI_FCL_ROOT_VIEW_NAME,type:Oi.ViewTypes.XML,async:!0,id:Oi.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,Zk(e,Oi.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),zJ=o(e=>{var t;e.rootView&&e.rootView.viewName===Oi.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Oi.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),c2=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?YJ(e,t):zJ(e)},"updateFcl");var ie=te(ce()),Xd=require("@sap-ux/vocabularies-types/vocabularies/UI");var l2=te(uc()),KT=te(ce());function JJ(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(JJ,"isExportValueEquals");function ZJ(e,t){var s;let{element:n,schema:i,parent:r,contextPath:a}=e;if(delete n.attributes[t],((s=i.metadata)==null?void 0:s.type)===KT.MacrosPropertyType.Property&&Object.keys(n.attributes).length===0&&(r!=null&&r.element.elements)){let l=a[a.length-1];l&&r.element.elements.splice(l.index,1)}}o(ZJ,"deleteProperty");function f2(e,t,n,i){var u,p;let{contextPath:r,fullSchema:a,element:s}=e,l=!1;if(t.hidden)return!1;if(i in n&&n[i]!==void 0)if(t.isViewNode){s.elements||(s.elements=[]);let g={name:i,type:"element"};return s.elements.push(g),Jc({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},f2)}else JJ((u=s.attributes)==null?void 0:u[i],n[i])||(s.attributes||(s.attributes={}),s.attributes[i]=n[i],l=!0);else(p=s.attributes)!=null&&p[i]&&(ZJ(e,i),l=!0);return l}o(f2,"exportProperty");function XT(e,t,n,i,r,a){let s=xf(e.file,!1,a);if(s){let l=sT(s);if(Jc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},f2)){let p=(0,l2.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:KT.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(XT,"getExtensionExportResult");var u2=o((e,t)=>{let{views:n,manifest:i,jsonSchema:r,page:a,logger:s}=e,l={...t,manifest:i},u;return r&&Object.keys(r).length>0&&(u=Uo(n||[],a.name,i,s)),u&&XT(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),p2=o((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:a,pageNameArray:s,logger:l}=e,{manifest:u}=r,p,g="fragment";if(i&&Object.keys(i).length>0){let m=bc(u,s[0]);p=Sc(a,m,u,g,t)}if(p){let m=Cf(t),S={...i.definitions[m],definitions:i.definitions};XT(p,r,n,S,g,l)}},"exportXMLFragmentConfig");var d2=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],eZ=[...d2,"views","initialLoad","template"],QT=o(e=>{let t=ie.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function tZ(e,t,n){var s,l,u,p;let i=`@${Xd.UIAnnotationTerms.LineItem}`,r=`@${Xd.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[ie.DefinitionName.TableSPV])==null?void 0:s[ie.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let g=(u=t.appSchema.definitions[ie.DefinitionName.ALPTable])==null?void 0:u[ie.SchemaTag.annotationPath];i=r=g&&g.substr(g.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ie.PropertyName.table&&a){let g=a.split("/");i=r=g[g.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(tZ,"determineTargetAnnotationOfTable");function nZ(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ie.DefinitionName.ALPChart])==null?void 0:a[ie.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}o(nZ,"determineTargetAnnotationOfChart");function iZ(e,t,n,i,r){var a;if(e.length===3)t=n=i[ie.SchemaTag.annotationPath]&&i[ie.SchemaTag.annotationPath].substr(i[ie.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split($)[1],l=s&&r.appSchema.definitions[s],u=(l==null?void 0:l[ie.SchemaTag.annotationPath])&&l[ie.SchemaTag.annotationPath].substr(l[ie.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${u}`:u}return{targetAnnotation:t,targetAnnotationEncoded:n}}o(iZ,"determineTargetAnnotationBasedOnParentView");function rZ(e,t){var a;let n,i,r=(a=e.appSchema.definitions.MultiTableModeV4)==null?void 0:a.properties[t[2]];if(r)({targetAnnotation:n,targetAnnotationEncoded:i}=iZ(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ie.SchemaTag.annotationPath]&&l[ie.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let u=l[ie.SchemaTag.annotationPath].split("/");return n=i=u[u.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ie.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}o(rZ,"determineTargetAnnotationOfView");function oZ(e,t,n){let i,r;return e[2].split(`@${ie.UIVOCABULARY}`)[1]?n&&n.indexOf(ie.FACETTITLEPREFIX)>-1?i=r=n.split(ie.FACETTITLEPREFIX)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(oZ,"determineTargetAnnotationOfHeaderSections");function aZ(e,t){let n=e[1].split(`@${ie.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=WT(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(aZ,"determineTargetAnnotationOfSections");function sZ(e,t,n){let i,r,a=!1;return e[0]===ie.PropertyName.table&&e[1]!==ie.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=tZ(e,t,n):e[0]===ie.PropertyName.chart&&t.templateType===ie.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=nZ(e,t,n):e[0]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=aZ(e,a):e[1]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=oZ(e,a,t.title):e[1]===ie.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=rZ(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(sZ,"determineTargetAnnotation");function cZ(e){return e.includes(dS)}o(cZ,"isGroupingElement");function lZ(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ie.PropertyName.actions,ie.PropertyName.columns,ie.PropertyName.views,ie.PropertyName.visualFilters,ie.PropertyName.selectionFields].includes(ie.PropertyName[r])||cZ(r)){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o(lZ,"determineKeyForSyncRule");function fZ(e){e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):e.manifestSection[e.manifestKey]||(e.manifestSection[e.manifestKey]={})}o(fZ,"createNewObjectInManifest");function g2(e,t,n){var r,a;let i=!1;return t.type!=="array"&&((r=n==null?void 0:n.targetDefinition)==null?void 0:r.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(fZ(e),i=!0):e.syncRule.manifest.export!==!1&&(e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length||!Array.isArray(e.configObject[e.configPropertyKey])&&e.configObject[e.configPropertyKey]===void 0?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey],i=!0),i}o(g2,"transferPropertyToManifest");function uZ(e,t,n,i,r,a,s){var p,g,m;let l=!1,u=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((g=n.config.table)!=null&&g.views)||e[1]==="views"&&((m=n.config.table)!=null&&m.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&d2.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(u!=null&&u.annotationPath)&&!u.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&eZ.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let h=t.syncRule.manifest.delete;typeof h=="function"&&(h(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config),l=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],l=!0);return is(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(uZ,"deleteFromManifest");function pZ(e,t,n,i){let r=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:l,targetAnnotation:u,custom:p}=sZ(e,n.transferParameters,n.configObject),g=lZ(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,g,u,n.configObject,a),h=Vo(n.transferParameters.exportResults.manifest,m,u,p?void 0:l);if(h){let S={syncRule:t,manifestSection:h,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:g};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&Ol([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?r=uZ(e,S,n.transferParameters,h,m,u,l):r=g2(S,n.propertyDefinition,i)}return r}o(pZ,"exportManifestChange");function dZ(e,t,n){let i=Dn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);p2(e.transferParameters,r,n.configObject)}else i.manifest&&pZ(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ie.ChangeIndicator.Updated)}o(dZ,"evaluateExportRule");function gZ(e,t,n,i,r){let a=[];e.propertyDefinition.$ref&&t||e.propertyDefinition.anyOf&&t?a.push(t.configObject):e.propertyDefinition.anyOf?a.push(n):e.propertyDefinition.type==="array"?a=n:a.push(n),e.index=0;for(let s of a)e.transferParameters.title=t==null?void 0:t.title,wI(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(gZ,"transferSubObject");function mZ(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=ut(e.pageNameArray)+"/views",a=Vo(e.exportResults.manifest,r);return!a.paths||Object.keys(a.paths).length===0?(a.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):a.paths[0].secondary||(a.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}o(mZ,"createALPTableView");function hZ(e){var a,s;let t=!1,n=e.key;if(!e.configObject[n]||Object.keys(e.configObject[n]).length===0)return{newElementCreated:t,stopProcessing:!0};let i=ut(e.transferParameters.pageNameArray)+"/views",r=Vo(e.transferParameters.exportResults.manifest,i);return!r.paths||Object.keys(r.paths).length===0?(r.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):r.paths[0].primary||(r.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),r.paths[0].secondary||(r.paths[0].secondary=[{annotationPath:((s=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||Xd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(hZ,"createALPChartView");function yZ(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=ut(e.pageNameArray),r=Vo(e.exportResults.manifest,i),a=`@${Xd.UIAnnotationTerms.SelectionFields}`;if(r.controlConfiguration?r.controlConfiguration[a]?r.controlConfiguration[a].filterFields||(r.controlConfiguration[a].filterFields={},n=!0):(r.controlConfiguration[a]={filterFields:{}},n=!0):(r.controlConfiguration={[a]:{filterFields:{}}},n=!0),n){let s=r.controlConfiguration[a].filterFields;Object.keys(t).forEach(l=>{let u=t[l];s[l]={};for(let p in u)p==="visualFilterValueList"?s[l].visualFilter={valueList:u[p]}:s[l][p]=u[p]})}return n}o(yZ,"createVisualFilters");function TZ(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=ut(t.pageNameArray)+"/views",s=Vo(t.exportResults.manifest,a),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],r=!0;else{let u=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(u===-1)s.paths.push(l),r=!0;else if(u!==i.index){let p=JSON.parse(JSON.stringify(s.paths[u]));s.paths.splice(u,1),s.paths.splice(e,0,p),r=!0}}return r}o(TZ,"createLRTableView");function vZ(e,t,n){let i=!1,r=!1;if(t&&!n&&!e.transferParameters.deletionRequest)if(t.startsWith(ie.DefinitionName.CustomColumn))i=t2(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ie.DefinitionName.ALPChartView&&e.key===ie.PropertyName.chart&&e.configObject)return hZ(e);if(t===ie.DefinitionName.ALPTableView&&e.key===ie.PropertyName.table&&e.configObject)return mZ(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ie.DefinitionName.LRTableView)||t.startsWith(ie.DefinitionName.LRChartView))?i=TZ(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ie.DefinitionName.VisualFilters)&&(i=yZ(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(vZ,"createNewElement");function bZ(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0||!!e.anyOf}o(bZ,"isDefinitionTraversable");function VI(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=xm(e.configObject,e.key),s=Mo(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=vZ(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split($)[1],i),p=a?[...t,a]:[...t,e.key];if(l||dZ(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||bZ(e.propertyDefinition)&&(s!=null&&s.configObject))&&!u){let m=a?[...n,a]:n;gZ(e,s,r,p,m)}}o(VI,"transferSortedListEntry");function SZ(e,t,n,i,r){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((l,u)=>l[1]&&l[1].index-u[1].index),s.forEach(l=>{var u;(u=n.properties)!=null&&u[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],VI(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,VI(e,i,r),a=!0)}),e.index++})}return a}o(SZ,"transferConfigEntriesWithAnyOfDefinitions");function AZ(e,t,n,i){let r=rS(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(AZ,"mergeEntriesForInsert");function EZ(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ie.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ie.SchemaTag.propertyIndex]-r[1][ie.SchemaTag.propertyIndex])),t}o(EZ,"sortProperties");function PZ(e,t,n,i,r,a){var l,u;let s=!1;if(e){let p=e.anyOf;if(!p){let g=(l=e.$ref)==null?void 0:l.split($)[1];p=g?(u=t.appSchema.definitions[g])==null?void 0:u.anyOf:void 0}s=SZ(n,p,i,r,a)}return s}o(PZ,"checkIfAnyOfDefinition");function wI(e,t,n,i,r,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:r,key:void 0,index:s,configObject:t,propertyDefinition:void 0},u=a.additionalProperties,p=PZ(u,e,l,a,n,i),g=EZ(a.properties);u!=null&&u.$ref&&AZ(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!Ol(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,VI(l,n,i,p),m[1].$ref&&s++)})}o(wI,"transferManifestEntriesAndFlexChange");function m2(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ie.PageTypeV4.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(m2,"getClassesForSingleSection");function h2(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],m2(n,i,t),h2(n,t)}}o(h2,"getSubsectionClasses");function xZ(e,t,n){let i;for(let r in e.sections)i=t.sections[r],m2(e,r,n),h2(i,n)}o(xZ,"getExportClassesForSections");function y2(e,t){let n=Cm(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(y2,"calculateBaseId");var T2=o((e,t,n=!1)=>{var l;let i=QT(e.manifest),r=new Ha,a=r.createPageInstance(ie.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ie.PropertyName.sections]&&xZ(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:y2(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ie.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return wI(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),CZ=o((e,t,n,i,r,a,s=!1)=>{var b,O;let l=QT(e.manifest),u=e.jsonSchema,p=(b=n.table)!=null&&b[ie.PropertyName.annotationPath]?ie.DefinitionName.ALPTableView:ie.DefinitionName.Table,g=n.table=t.createInstance(i,p,n.table),m=ie.DefinitionName.LineItems;u.definitions[ie.DefinitionName.TableSPV]&&(m=u.definitions[ie.DefinitionName.TableSPV].properties.columns.$ref.split($)[1]);let h=u.definitions[`${ie.DefinitionName.Actions}<${m}>`];if((O=g.toolBar)!=null&&O.actions&&h)for(let N in h.properties)g.toolBar.actions[N]=t.createInstance(i,ie.DefinitionName.ToolBarAction,g.toolBar.actions[N]);let S={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:y2(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return wI(S,n,[],[],[],u),l},"exportListPage"),MI=o((e,t,n,i=!1)=>{let r=new Ha,a=r.createPageInstance(ie.PageTypeV2.ListReport,e.page.config);return CZ(e,r,a,ie.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),b2=o((e,t,n=!1)=>MI(e,t,ie.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),IZ=o((e,t,n,i,r,a)=>{let s=Vo(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=Zb());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];g2(u,p,{}),!l&&Object.keys(s).length&&xD(r,t,s)},"applyExportRule"),OZ=o((e,t,n)=>{var a;let i=QT(t),r=Object.assign(new pT,e);r.settings=Object.assign(new If,r.settings);for(let s in n.definitions.AppSettings.properties){let l=Dn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)IZ(l,u,s,e,i.manifest,n);else{let p=Vo(i.manifest,u);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],is(i.manifest,u,!1))}}}return i.manifest[ie.ManifestSection.ui5].routing=o2(e.home,e.pages,i.manifest),c2(i.manifest[ie.ManifestSection.ui5],e),i},"exportApplicationV4"),S2=o((e,t)=>{if(e[ie.SchemaType.ListReport])return MI(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4);if(e[ie.SchemaType.ObjectPage])return T2(e[ie.SchemaType.ObjectPage],t);if(e[ie.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ie.SchemaType.Application];return OZ(n,i,r)}else{if(e[ie.SchemaType.AnalyticalListPage])return b2(e[ie.SchemaType.AnalyticalListPage],t);if(e[ie.SchemaType.FPMCustomPage])return u2(e[ie.SchemaType.FPMCustomPage],ie.defaultExportResult)}},"exportPageV4"),RZ=o(e=>{let{jsonSchema:t,views:n,page:i,manifest:r,logger:a}=e,s=QT(e.manifest),l;return t&&Object.keys(t).length>0&&(l=Uo(n||[],i.name,r,e.logger)),l&&XT(l,s,i.config,t,"view",a),s},"exportCustomPage"),kI=o((e,t,n=!1)=>{if(e[ie.SchemaType.ListReport])return MI(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4,n);if(e[ie.SchemaType.ObjectPage])return T2(e[ie.SchemaType.ObjectPage],t,n);if(e[ie.SchemaType.AnalyticalListPage])return b2(e[ie.SchemaType.AnalyticalListPage],t,n);if(e[ie.SchemaType.FPMCustomPage])return RZ(e[ie.SchemaType.FPMCustomPage])},"exportConfigEntityByPathV4");var Ht=require("@sap-ux/fe-fpm-writer");var LZ=new Map([[ge.CustomExtensionType.CustomPage,Ht.generateCustomPage],[ge.CustomExtensionType.CustomColumn,Ht.generateCustomColumn],[ge.CustomExtensionType.CustomSection,Ht.generateCustomSection],[ge.CustomExtensionType.ObjectPage,Ht.generateObjectPage],[ge.CustomExtensionType.ListReport,Ht.generateListReport],[ge.CustomExtensionType.CustomAction,Ht.generateCustomAction],[ge.CustomExtensionType.CustomView,Ht.generateCustomView],[ge.CustomExtensionType.ControllerExtension,Ht.generateControllerExtension],[ge.CustomExtensionType.CustomSubSection,Ht.generateCustomSubSection],[ge.CustomExtensionType.CustomFilterField,Ht.generateCustomFilter],[ge.CustomExtensionType.CustomHeaderSection,Ht.generateCustomHeaderSection]]),NZ={api:Ht.PromptsAPI,types:Ht.PromptsType};function FZ(e){let t;if(e[ge.FioriElementsVersion.v2]){let n=e[ge.FioriElementsVersion.v2];if(n[ge.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[ge.SchemaType.ListReport];t=FI(i,r,a,s,l,u)}else if(n[ge.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[ge.SchemaType.ObjectPage];t=NI(i,r,a,s,l,u)}else if(n[ge.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[ge.SchemaType.OverviewPage];t=Gd(i,r)}else if(n[ge.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[ge.SchemaType.AnalyticalListPage];t=DI(i,r,a,s,l,u)}}else if(e[ge.FioriElementsVersion.v4]){let n=e[ge.FioriElementsVersion.v4];if(n[ge.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[ge.SchemaType.ListReport];t=uT(ge.TemplateType.ListReportObjectPageV4,i,r,a,s,l,u)}else if(n[ge.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,logger:l,fragments:u,contextPath:p,genericMacrosSchema:g}=n[ge.SchemaType.ObjectPage];t=px(i,r,a,s,l,u,p,g,e.featureToggles)}else if(n[ge.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[ge.SchemaType.AnalyticalListPage];t=uT(ge.TemplateType.AnalyticalListPageV4,i,r,a,s,l,u)}else if(n[ge.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l}=n[ge.SchemaType.FreestylePage];t=dx(ge.TemplateType.FreestylePageV4,i,a,l,r,s)}else if(n[ge.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:a,views:s,logger:l,annotations:u}=n[ge.SchemaType.FPMCustomPage];t=gx(i,r,a,s,u,e.featureToggles,l)}}return t}o(FZ,"generateSchema");function DZ(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[ge.FioriElementsVersion.v2]){let i=e[ge.FioriElementsVersion.v2];t=j_(i,n)}else if(e[ge.FioriElementsVersion.v4]){let i=e[ge.FioriElementsVersion.v4];t=S2(i,n)}return t}o(DZ,"exportConfig");function _Z(e){let t=ge.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[ge.FioriElementsVersion.v2]){let i=e[ge.FioriElementsVersion.v2];t=eP(i,n)}else if(e[ge.FioriElementsVersion.v4]){let i=e[ge.FioriElementsVersion.v4];t=kI(i,n)}return t}o(_Z,"exportConfigEntityByPath");function VZ(e){let t=ge.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[ge.FioriElementsVersion.v2]){let i=e[ge.FioriElementsVersion.v2];t=eP(i,n,!0)}else if(e[ge.FioriElementsVersion.v4]){let i=e[ge.FioriElementsVersion.v4];t=kI(i,n,!0)}return t}o(VZ,"deleteConfigEntityByPath");function wZ(e){let t;if(e[ge.FioriElementsVersion.v2]){let n=e[ge.FioriElementsVersion.v2];n[ge.SchemaType.ListReport]?t=py(n[ge.SchemaType.ListReport]):n[ge.SchemaType.ObjectPage]?t=sy(n[ge.SchemaType.ObjectPage]):n[ge.SchemaType.OverviewPage]?t=cy(n[ge.SchemaType.OverviewPage]):n[ge.SchemaType.AnalyticalListPage]&&(t=ly(n[ge.SchemaType.AnalyticalListPage]))}else if(e[ge.FioriElementsVersion.v4]){let n=e[ge.FioriElementsVersion.v4];n[ge.SchemaType.ListReport]?t=rl(n[ge.SchemaType.ListReport],ge.SchemaType.ListReport):n[ge.SchemaType.ObjectPage]?t=BT(n[ge.SchemaType.ObjectPage]):n[ge.SchemaType.AnalyticalListPage]?t=rl(n[ge.SchemaType.AnalyticalListPage],ge.SchemaType.AnalyticalListPage):n[ge.SchemaType.FPMCustomPage]&&(t=$T(n[ge.SchemaType.FPMCustomPage]))}return t}o(wZ,"importConfig");async function MZ(e){return RI(e)}o(MZ,"importProject");async function kZ(e){return OI(e)}o(kZ,"importProjectSchema");function UZ(){return{version:"22",fpmWriter:"30",moduleVersion:O1.version}}o(UZ,"getApiVersion");function _I(e){let t=LZ.get(e.customExtension);if(t&&typeof t=="function")return(0,Ht.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(_I,"generateCustomExtension");var oo=require("path"),zs=require("fs");var zf=o(async e=>new Promise((t,n)=>{(0,zs.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),jZ=o(async e=>JSON.parse(await zf(e)),"readJSON"),UI=o(async e=>new Promise((t,n)=>{(0,zs.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),$Z=o(async e=>new Promise(t=>{(0,zs.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),E2=o(async e=>new Promise(t=>{(0,zs.exists)(e,n=>{t(n)})}),"resourceExists"),BZ=o(async e=>jZ((0,oo.join)(e,"manifest.json")),"getManifest"),P2=o(async e=>{let t=[],n=(0,oo.join)(e,"changes");if(!await E2(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await UI(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await zf((0,oo.join)(n,a)));return t},"getChanges"),A2=o(async(e,t="fragments")=>{let n=[],i=(0,oo.join)(e,"ext",t);if(!await E2(i))return n;let r=await UI(i);for(let a of r){let s=(0,oo.join)(i,a),l=await zf(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),HZ=o(async(e,t)=>{var r,a,s,l,u,p,g,m;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let h=(0,oo.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:h,fileContent:await zf(h)})}if((u=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&u.annotations){for(let h of i.mainService.settings.annotations)if((g=(p=i[h])==null?void 0:p.settings)!=null&&g.localUri){let S=(0,oo.join)(t,i[h].settings.localUri);n.push({dataSourceUri:S,fileContent:await zf(S)})}}if(n.length===0)for(let h in i){let S=i[h];if((S==null?void 0:S.type)==="ODataAnnotation"&&((m=S==null?void 0:S.settings)!=null&&m.localUri)){let b=(0,oo.join)(t,S.settings.localUri);n.push({dataSourceUri:b,fileContent:await zf(b)})}}return n},"getAnnotations"),GZ=o(async e=>{let t=(0,oo.basename)(e),n=(0,oo.join)(e,"webapp"),i=await BZ(n),r=await HZ(i,n),a=await P2(n),s=await A2(n),l=await A2(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");fc(Di,te(ce()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
|
|
295
295
|
/*! Bundled license information:
|
|
296
296
|
|
|
297
297
|
sax/lib/sax.js:
|