@sap/ux-specification 1.71.100 → 1.71.102
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 +38 -37
- 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-ObjectPage.html +2 -2
- package/dist/documentation/v2/v2-OverviewPage.html +2 -2
- package/dist/index-min.js +13 -13
- package/dist/index-min.js.map +3 -3
- package/dist/package.json +5 -5
- package/dist/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/src/sync/common/generate/utils.js +10 -7
- package/dist/src/sync/common/generate/utils.js.map +1 -1
- package/dist/src/sync/common/i18n.json +1 -1
- package/dist/src/sync/common/utils.d.ts.map +1 -1
- package/dist/src/sync/common/utils.js +10 -10
- package/dist/src/sync/common/utils.js.map +1 -1
- package/dist/src/sync/v2/import/pages/overviewPage.d.ts.map +1 -1
- package/dist/src/sync/v2/import/pages/overviewPage.js +10 -0
- package/dist/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/package.json +5 -5
package/dist/index-min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Dm=Object.create;var Li=Object.defineProperty;var Qc=Object.getOwnPropertyDescriptor;var Lm=Object.getOwnPropertyNames;var jm=Object.getPrototypeOf,Vm=Object.prototype.hasOwnProperty;var s=(e,t)=>Li(e,"name",{value:t,configurable:!0});var xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Oa=(e,t)=>{for(var n in t)Li(e,n,{get:t[n],enumerable:!0})},Ea=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Lm(t))!Vm.call(e,r)&&r!==n&&Li(e,r,{get:()=>t[r],enumerable:!(i=Qc(t,r))||i.enumerable});return e},ii=(e,t,n)=>(Ea(e,t,"default"),n&&Ea(n,t,"default")),H=(e,t,n)=>(n=e!=null?Dm(jm(e)):{},Ea(t||!e||!e.__esModule?Li(n,"default",{value:e,enumerable:!0}):n,e)),_m=e=>Ea(Li({},"__esModule",{value:!0}),e),g=(e,t,n,i)=>{for(var r=i>1?void 0:i?Qc(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&Li(t,n,r),r};var Zf=xe((hS,Yf)=>{var ps=Object.defineProperty,wm=Object.getOwnPropertyDescriptor,Rm=Object.getOwnPropertyNames,$m=Object.prototype.hasOwnProperty,zc=s((e,t)=>{for(var n in t)ps(e,n,{get:t[n],enumerable:!0})},"P"),Mm=s((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Rm(t))!$m.call(e,r)&&r!==n&&ps(e,r,{get:()=>t[r],enumerable:!(i=wm(t,r))||i.enumerable});return e},"Ce"),km=s(e=>Mm(ps({},"__esModule",{value:!0}),e),"ye"),qc={};zc(qc,{ALPViewType:()=>rf,ActionTitlePrefix:()=>Hm,ActionType:()=>sf,ArtifactType:()=>of,BindingPropertyRegexAsString:()=>Km,ControlType:()=>lf,DataSourceType:()=>Sf,DefinitionName:()=>mf,DirName:()=>uf,DraftDiscardEnabledSettings:()=>vf,ExportArtifacts:()=>nf,ExportType:()=>ff,FIORI_FCL_ROOT_ID:()=>iy,FIORI_FCL_ROOT_VIEW_NAME:()=>ny,FRAGMENTNAMEPART:()=>ey,FacetBase:()=>df,FacetTitlePrefix:()=>Gm,Features:()=>If,FileName:()=>pf,FioriElementsVersion:()=>Xc,FlexChangeLayer:()=>ef,FlexibleColumnLayoutAggregations:()=>Cf,FlexibleColumnLayoutType:()=>Zc,GENERICAPPSETTINGS:()=>ty,LogSeverity:()=>Of,LogSeverityLabel:()=>oy,MANIFESTPATH:()=>Wm,ManifestSection:()=>Pf,OdataVersion:()=>Yc,PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:()=>Um,PageType:()=>Bm,PageTypeV2:()=>ds,PropertyName:()=>yf,QUICKVARPATH:()=>Ym,QUICKVARPATHX:()=>Zm,SAPUI5_FRAGMENT_CLASS:()=>ay,SAPUI5_VIEW_CLASS:()=>ry,SchemaKeyName:()=>bf,SchemaTag:()=>hf,SchemaType:()=>tf,SectionType:()=>af,StatePreservationMode:()=>xf,TableColumnVerticalAlignment:()=>Tf,TemplateType:()=>Af,UIVOCABULARY:()=>zm,UIVOCABULARYALPHADOT:()=>Xm,UIVOCABULARYDOT:()=>qm,VOCWITHCOLONS:()=>Qm,VOCWITHSLASH:()=>Jm,ViewTemplateType:()=>gf,ViewTypes:()=>Ef,Visualization:()=>cf,v2:()=>Ff});Yf.exports=km(qc);var ds=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(ds||{}),Bm={...ds},Um=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"]]),Xc=(e=>(e.v2="v2",e.v4="v4",e))(Xc||{}),Yc=(e=>(e.v2="v2",e.v4="v4",e))(Yc||{}),Zc=(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))(Zc||{}),ef=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(ef||{}),tf=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e))(tf||{}),nf=(e=>(e.flex="flex",e.manifest="manifest",e))(nf||{}),rf=(e=>(e.Primary="primary",e.Secondary="secondary",e))(rf||{}),af=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(af||{}),of=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.Fragment="Fragment",e))(of||{}),sf=(e=>(e.Annotation="Annotation",e.Custom="Custom",e.Standard="Standard",e))(sf||{}),lf=(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.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))(lf||{}),cf=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(cf||{}),ff=(e=>(e.GW="GW",e.UI5Client="UI5Client",e))(ff||{}),uf=(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))(uf||{}),pf=(e=>(e.App="app.json",e))(pf||{}),Gm="Facet ID: ",Hm="Action ID: ",df=(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.Unknown="",e))(df||{}),Km="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",gf=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(gf||{}),mf=(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.CustomAction="CustomAction",e.CustomActionOP="CustomActionOP",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.Footer="Footer",e.FooterAction="FooterAction",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.FormCustomActionOP="FormCustomActionOP",e.SectionActions="SectionActions",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.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.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",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.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",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.SelectionFields="SelectionFields",e.Table="Table",e.TableSPV="TableSPV",e.TableColumn="TableColumn",e.TableViewExtension="TableViewExtension",e.ToolBarAction="ToolBarAction",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.SaveAndEdit="SaveAndEdit",e))(mf||{}),yf=(e=>(e.actions="actions",e.annotationPath="annotationPath",e.chart="chart",e.defaultPath="defaultPath",e.defaultTemplateAnnotationPath="defaultTemplateAnnotationPath",e.sections="sections",e.table="table",e.views="views",e))(yf||{}),hf=(e=>(e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlType="controlType",e.actionType="actionType",e.dataType="dataType",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.target="target",e.propertyIndex="propertyIndex",e))(hf||{}),bf=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(bf||{}),Wm="webapp/manifest.json",Jm="/@com.sap.vocabularies",Qm="::@com.sap.vocabularies",zm="com.sap.vocabularies.UI.v1",qm="com.sap.vocabularies.UI.v1.",Xm="@com.sap.vocabularies.UI.v1.",Ym="/quickVariantSelection",Zm="/quickVariantSelectionX",ey=".fragment.",vf=(e=>(e.restricted="restricted",e))(vf||{}),Tf=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(Tf||{}),xf=(e=>(e.persistence="persistence",e.discovery="discovery",e))(xf||{}),Cf=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(Cf||{}),Sf=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(Sf||{}),Pf=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e))(Pf||{}),ty="sap.ui.generic.app/settings",ny="sap.fe.templates.RootContainer.view.Fcl",iy="appRootView",Ef=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e.JS="JS",e))(Ef||{}),ry="sap.ui.core.mvc.View",ay="sap.ui.core.Fragment",Of=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(Of||{}),oy={error:"Error",warning:"Warning",info:"Information"},Af=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(Af||{}),If=(e=>(e.BuildingBlocks="BuildingBlocks",e))(If||{}),Ff={};zc(Ff,{AvatarShape:()=>Jf,ButtonType:()=>Nf,CardSettingsType:()=>jf,CardTemplateType:()=>Lf,ChartCardType:()=>Df,ChartType:()=>Wf,ContainerLayoutType:()=>Xf,CreateMode:()=>qf,DefaultContentView:()=>Hf,DefaultFilterMode:()=>Kf,ExtensionFragmentTypes:()=>zf,FE_TEMPLATE_V2:()=>cy,FE_TEMPLATE_V2_ALP:()=>py,FE_TEMPLATE_V2_LIST_REPORT:()=>uy,FE_TEMPLATE_V2_OBJECT_PAGE:()=>fy,HAlign:()=>$f,LinkListFlavorType:()=>Rf,ListFlavorType:()=>Vf,ListTypeType:()=>_f,PopinLayout:()=>Uf,SAPUI5_CONTROLLER_EXTENSION:()=>gy,SAPUI5_VIEW_EXTENSION:()=>dy,SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:()=>hy,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>yy,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>my,SectionPosition:()=>Qf,SortOrderType:()=>wf,Strategy:()=>Gf,TableColumnExtensionTypeV2:()=>Bf,TableTypeV2:()=>kf,cardTemplateSettingsMap:()=>ly,cardTemplateTypeMap:()=>sy,customColumnViewTypes:()=>Mf});var Nf=(e=>(e.Accept="Accept",e.Back="Back",e.Default="Default",e.Emphasized="Emphasized",e.Ghost="Ghost",e.Reject="Reject",e.Transparent="Transparent",e.Unstyled="Unstyled",e.Up="Up",e))(Nf||{}),Df=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(Df||{}),Lf=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.list="sap.ovp.cards.list",e.linklist="sap.ovp.cards.linklist",e.table="sap.ovp.cards.table",e.stack="sap.ovp.cards.stack",e))(Lf||{}),sy={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.stack":"StackCard"},ly={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},jf=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(jf||{}),Vf=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(Vf||{}),_f=(e=>(e.extended="extended",e.condensed="condensed",e))(_f||{}),wf=(e=>(e.ascending="ascending",e.descending="descending",e))(wf||{}),Rf=(e=>(e.standard="standard",e.carousel="carousel",e))(Rf||{}),$f=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))($f||{}),Mf=(e=>(e.XML="XML",e))(Mf||{}),kf=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(kf||{}),Bf=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(Bf||{}),Uf=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Uf||{}),Gf=(e=>(e.extension="extension",e))(Gf||{}),Hf=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Hf||{}),Kf=(e=>(e.visual="visual",e.compact="compact",e))(Kf||{}),Wf=(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))(Wf||{}),Jf=(e=>(e.Circle="Circle",e.Square="Square",e))(Jf||{}),Qf=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Qf||{}),zf=(e=>(e.XML="XML",e))(zf||{}),qf=(e=>(e.inline="inline",e))(qf||{}),cy="sap.suite.ui.generic.template",fy="sap.suite.ui.generic.template.ObjectPage",uy="sap.suite.ui.generic.template.ListReport",py="sap.suite.ui.generic.template.AnalyticalListPage",dy="sap.ui.viewExtensions",gy="sap.ui.controllerExtensions",my="sap.suite.ui.generic.template.ObjectPage.view.Details",yy="sap.suite.ui.generic.template.ListReport.view.ListReport",hy="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Xf=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Xf||{})});var eu=xe(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.Features=xt.TemplateType=xt.LogSeverityLabel=xt.LogSeverity=void 0;var by;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(by=xt.LogSeverity||(xt.LogSeverity={}));xt.LogSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var vy;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(vy=xt.TemplateType||(xt.TemplateType={}));var Ty;(function(e){e.BuildingBlocks="BuildingBlocks"})(Ty=xt.Features||(xt.Features={}))});var Eu=xe((TS,Pu)=>{var gs=Object.defineProperty,xy=Object.getOwnPropertyDescriptor,Cy=Object.getOwnPropertyNames,Sy=Object.prototype.hasOwnProperty,Py=s((e,t)=>{for(var n in t)gs(e,n,{get:t[n],enumerable:!0})},"R"),Ey=s((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Cy(t))!Sy.call(e,r)&&r!==n&&gs(e,r,{get:()=>t[r],enumerable:!(i=xy(t,r))||i.enumerable});return e},"h"),Oy=s(e=>Ey(gs({},"__esModule",{value:!0}),e),"N"),tu={};Py(tu,{AvatarShape:()=>vu,ButtonType:()=>nu,CardSettingsType:()=>au,CardTemplateType:()=>ru,ChartCardType:()=>iu,ChartType:()=>bu,ContainerLayoutType:()=>Su,CreateMode:()=>Cu,DefaultContentView:()=>yu,DefaultFilterMode:()=>hu,ExtensionFragmentTypes:()=>xu,FE_TEMPLATE_V2:()=>Fy,FE_TEMPLATE_V2_ALP:()=>Ly,FE_TEMPLATE_V2_LIST_REPORT:()=>Dy,FE_TEMPLATE_V2_OBJECT_PAGE:()=>Ny,HAlign:()=>fu,LinkListFlavorType:()=>cu,ListFlavorType:()=>ou,ListTypeType:()=>su,PopinLayout:()=>gu,SAPUI5_CONTROLLER_EXTENSION:()=>Vy,SAPUI5_VIEW_EXTENSION:()=>jy,SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:()=>Ry,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>wy,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>_y,SectionPosition:()=>Tu,SortOrderType:()=>lu,Strategy:()=>mu,TableColumnExtensionTypeV2:()=>du,TableTypeV2:()=>pu,cardTemplateSettingsMap:()=>Iy,cardTemplateTypeMap:()=>Ay,customColumnViewTypes:()=>uu});Pu.exports=Oy(tu);var nu=(e=>(e.Accept="Accept",e.Back="Back",e.Default="Default",e.Emphasized="Emphasized",e.Ghost="Ghost",e.Reject="Reject",e.Transparent="Transparent",e.Unstyled="Unstyled",e.Up="Up",e))(nu||{}),iu=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(iu||{}),ru=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.list="sap.ovp.cards.list",e.linklist="sap.ovp.cards.linklist",e.table="sap.ovp.cards.table",e.stack="sap.ovp.cards.stack",e))(ru||{}),Ay={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.stack":"StackCard"},Iy={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},au=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(au||{}),ou=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(ou||{}),su=(e=>(e.extended="extended",e.condensed="condensed",e))(su||{}),lu=(e=>(e.ascending="ascending",e.descending="descending",e))(lu||{}),cu=(e=>(e.standard="standard",e.carousel="carousel",e))(cu||{}),fu=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(fu||{}),uu=(e=>(e.XML="XML",e))(uu||{}),pu=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(pu||{}),du=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(du||{}),gu=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(gu||{}),mu=(e=>(e.extension="extension",e))(mu||{}),yu=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(yu||{}),hu=(e=>(e.visual="visual",e.compact="compact",e))(hu||{}),bu=(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))(bu||{}),vu=(e=>(e.Circle="Circle",e.Square="Square",e))(vu||{}),Tu=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Tu||{}),xu=(e=>(e.XML="XML",e))(xu||{}),Cu=(e=>(e.inline="inline",e))(Cu||{}),Fy="sap.suite.ui.generic.template",Ny="sap.suite.ui.generic.template.ObjectPage",Dy="sap.suite.ui.generic.template.ListReport",Ly="sap.suite.ui.generic.template.AnalyticalListPage",jy="sap.ui.viewExtensions",Vy="sap.ui.controllerExtensions",_y="sap.suite.ui.generic.template.ObjectPage.view.Details",wy="sap.suite.ui.generic.template.ListReport.view.ListReport",Ry="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Su=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Su||{})});var q=xe(gt=>{"use strict";var Ou=gt&>.__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:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),$y=gt&>.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Au=gt&>.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Ou(t,e,n)},My=gt&>.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Ou(t,e,n);return $y(t,e),t};Object.defineProperty(gt,"__esModule",{value:!0});gt.v2=void 0;Au(Zf(),gt);Au(eu(),gt);gt.v2=My(Eu())});var Ss=xe((BP,Xu)=>{"use strict";var mh=s(function(t){return yh(t)&&!hh(t)},"isMergeableObject");function yh(e){return!!e&&typeof e=="object"}s(yh,"isNonNullObject");function hh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Th(e)}s(hh,"isSpecial");var bh=typeof Symbol=="function"&&Symbol.for,vh=bh?Symbol.for("react.element"):60103;function Th(e){return e.$$typeof===vh}s(Th,"isReactElement");function xh(e){return Array.isArray(e)?[]:{}}s(xh,"emptyTarget");function hr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?wi(xh(e),e,t):e}s(hr,"cloneUnlessOtherwiseSpecified");function Ch(e,t,n){return e.concat(t).map(function(i){return hr(i,n)})}s(Ch,"defaultArrayMerge");function Sh(e,t){if(!t.customMerge)return wi;var n=t.customMerge(e);return typeof n=="function"?n:wi}s(Sh,"getMergeFunction");function Ph(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}s(Ph,"getEnumerableOwnPropertySymbols");function zu(e){return Object.keys(e).concat(Ph(e))}s(zu,"getKeys");function qu(e,t){try{return t in e}catch{return!1}}s(qu,"propertyIsOnObject");function Eh(e,t){return qu(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}s(Eh,"propertyIsUnsafe");function Oh(e,t,n){var i={};return n.isMergeableObject(e)&&zu(e).forEach(function(r){i[r]=hr(e[r],n)}),zu(t).forEach(function(r){Eh(e,r)||(qu(e,r)&&n.isMergeableObject(t[r])?i[r]=Sh(r,n)(e[r],t[r],n):i[r]=hr(t[r],n))}),i}s(Oh,"mergeObject");function wi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Ch,n.isMergeableObject=n.isMergeableObject||mh,n.cloneUnlessOtherwiseSpecified=hr;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):Oh(e,t,n):hr(t,n)}s(wi,"deepmerge");wi.all=s(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return wi(i,r,n)},{})},"deepmergeAll");var Ah=wi;Xu.exports=Ah});var _a=xe(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.mergeAnnotations=me.addGetByValue=me.createIndexedFind=me.lazy=me.Decimal=me.isComplexTypeDefinition=me.unalias=me.alias=me.substringBeforeLast=me.substringBeforeFirst=me.splitAtLast=me.splitAtFirst=me.defaultReferences=me.TermToTypes=me.EnumIsFlag=void 0;var Ih=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(me,"EnumIsFlag",{enumerable:!0,get:function(){return Ih.EnumIsFlag}});var Fh=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(me,"TermToTypes",{enumerable:!0,get:function(){return Fh.TermToTypes}});var Nh=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(me,"defaultReferences",{enumerable:!0,get:function(){return Nh.VocabularyReferences}});function Yu(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}s(Yu,"splitAt");function Zu(e,t){return t<0?e:e.substring(0,t)}s(Zu,"substringAt");function Va(e,t){return Yu(e,e.indexOf(t))}s(Va,"splitAtFirst");me.splitAtFirst=Va;function ep(e,t){return Yu(e,e.lastIndexOf(t))}s(ep,"splitAtLast");me.splitAtLast=ep;function Dh(e,t){return Zu(e,e.indexOf(t))}s(Dh,"substringBeforeFirst");me.substringBeforeFirst=Dh;function Lh(e,t){return Zu(e,e.lastIndexOf(t))}s(Lh,"substringBeforeLast");me.substringBeforeLast=Lh;function tp(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,o)=>(a[o.namespace]=o,a),{})),!t)return t;let[n,i]=ep(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,o]=Va(t,"@");return`${a}@${tp(e,o)}`}else return t}s(tp,"alias");me.alias=tp;function Ps(e,t,n){var i;let r=s(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(p=>[p.alias,p])));let[o,l]=Va(a,".");if(!l||l.includes("."))return a;let c=o.startsWith("@"),u=c?o.substring(1):o,f=e.referenceMap[u];return f?c?`@${f.namespace}.${l}`:`${f.namespace}.${l}`:n&&!c?`${n}.${l}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,o)=>{let[l,c]=Va(o,"("),u=[r(l)];if(c){let f=c.slice(0,-1);u.push(`(${r(f)})`)}return a.push(u.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}s(Ps,"unalias");me.unalias=Ps;function jh(e){return!!e&&e._type==="ComplexType"&&!!e.properties}s(jh,"isComplexTypeDefinition");me.isComplexTypeDefinition=jh;function Vh(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}s(Vh,"Decimal");me.Decimal=Vh;function _h(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}})}s(_h,"lazy");me.lazy=_h;function np(e,t){let n=new Map;return s(function(r){let a=n.get(r);return(a==null?void 0:a[t])===r?a:e.find(o=>{if(!(o!=null&&o.hasOwnProperty(t)))return!1;let l=o[t];return n.set(l,o),l===r})},"find")}s(np,"createIndexedFind");me.createIndexedFind=np;function wh(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:np(e,t)});else throw new Error(`Property '${n}' already exists`);return e}s(wh,"addGetByValue");me.addGetByValue=wh;function Rh(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:o,annotations:l}of r){let c=(a=Ps(e,o))!==null&&a!==void 0?a:o;n[c]||(n[c]=[]);let u=l.map(f=>{var p;return f.term=(p=Ps(e,f.term))!==null&&p!==void 0?p:f.term,f.fullyQualifiedName=f.qualifier?`${c}@${f.term}#${f.qualifier}`:`${c}@${f.term}`,f.__source=i,f}).filter(f=>!n[c].some(p=>p.term===f.term&&p.qualifier===f.qualifier));n[c].push(...u)}return n},{})}s(Rh,"mergeAnnotations");me.mergeAnnotations=Rh});var yp=xe(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.convert=void 0;var br=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),B=_a(),Ut=Symbol("Annotation Target");function mn(e,t){return e[e.length-1]!==t&&e.push(t),e}s(mn,"appendObjectPath");function Ct(e,t,n,i){var r,a,o,l;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let c=n.split("/").reduce((f,p)=>{if(p.includes("@")){let[h,b]=(0,B.splitAtFirst)(p,"@");f.push(h),f.push(`@${b}`)}else f.push(p);return f},[]);if(t===void 0)c[0].startsWith(`${e.rawSchema.namespace}.`)&&c[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(o=(a=e.getConvertedEntityType(c[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(c[0]))!==null&&o!==void 0?o:e.getConvertedAction(c[0]),c.shift()):t=e.getConvertedEntityContainer();else if(t[Ut]!==void 0)t=t[Ut];else if(t._type==="Property"){let f=(0,B.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(l=e.getConvertedEntityType(f))!==null&&l!==void 0?l:e.getConvertedComplexType(f)}let u=c.reduce((f,p)=>{var h,b,C,F,N;let E=s(I=>(f.messages.push({message:I}),f.target=void 0,f),"error");if(f.target===void 0)return f;if(f.objectPath=mn(f.objectPath,f.target),p.startsWith("@")&&p!=="@$ui5.overload"){let[I,k]=e.splitTerm(p),w=(h=f.target.annotations[I.substring(1)])===null||h===void 0?void 0:h[k];return w!==void 0?(f.target=w,f):E(`Annotation '${p.substring(1)}' not found on ${f.target._type} '${f.target.fullyQualifiedName}'`)}if(f.target.$target){let I;if(p==="$AnnotationPath"?I=f.target.value:p==="$Path"&&(I=f.target.path),I!==void 0){let k=Ct(e,f.target[Ut],I);return k.objectPath.forEach(w=>{f.objectPath.includes(w)||(f.objectPath=mn(f.objectPath,w))}),f.target=k.target,f.objectPath=mn(f.objectPath,f.target),f}}switch((b=f.target)===null||b===void 0?void 0:b._type){case"Schema":break;case"EntityContainer":{let w=f.target;if(p===""||e.unalias(p)===w.fullyQualifiedName)return f;let oe=(F=(C=w.entitySets.by_name(p))!==null&&C!==void 0?C:w.singletons.by_name(p))!==null&&F!==void 0?F:w.actionImports.by_name(p);if(oe)return f.target=oe,f}break;case"EntitySet":case"Singleton":{let w=f.target;if(p===""||p==="$Type")return f.target=w.entityType,f;if(p==="$")return f;if(p==="$NavigationPropertyBinding"){let ye=w.navigationPropertyBinding;return f.target=ye,f}let oe=Ct(e,w.entityType,p);return f.target=oe.target,f.objectPath=oe.objectPath.reduce(mn,f.objectPath),f}case"EntityType":{let w=f.target;if(p===""||p==="$Type")return f;let oe=w.entityProperties.by_name(p);if(oe)return f.target=oe,f;let ye=w.navigationProperties.by_name(p);if(ye)return f.target=ye,f;let tt=(0,B.substringBeforeFirst)(e.unalias(p),"("),x=w.actions[tt];if(x)return f.target=x,f}break;case"ActionImport":{let w=Ct(e,f.target.action,p);return f.target=w.target,f.objectPath=w.objectPath.reduce(mn,f.objectPath),f}case"Action":{let w=f.target;if(p===""||p==="@$ui5.overload"||p==="0")return f;if(p==="$Parameter"&&w.isBound)return f.target=w.parameters,f;let oe=(N=w.parameters[p])!==null&&N!==void 0?N:w.parameters.find(ye=>ye.name===p);if(oe)return f.target=oe,f;break}case"Property":{let oe=f.target.targetType;if(oe!==void 0){let ye=oe.properties.by_name(p);if(ye)return f.target=ye,f;let tt=oe.navigationProperties.by_name(p);if(tt)return f.target=tt,f}}break;case"ActionParameter":let I=f.target.typeReference;if(I!==void 0){let w=Ct(e,I,p);return f.target=w.target,f.objectPath=w.objectPath.reduce(mn,f.objectPath),f}break;case"NavigationProperty":let k=Ct(e,f.target.targetType,p);return f.target=k.target,f.objectPath=k.objectPath.reduce(mn,f.objectPath),f;default:if(p==="")return f;if(f.target[p])return f.target=f.target[p],f.objectPath=mn(f.objectPath,f.target),f}return E(`Element '${p}' not found at ${f.target._type} '${f.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(u.messages.forEach(f=>e.logError(f.message)),!u.target)if(i){let f=sp(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
1
|
+
var Dm=Object.create;var Li=Object.defineProperty;var Qc=Object.getOwnPropertyDescriptor;var Lm=Object.getOwnPropertyNames;var jm=Object.getPrototypeOf,Vm=Object.prototype.hasOwnProperty;var s=(e,t)=>Li(e,"name",{value:t,configurable:!0});var xe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Aa=(e,t)=>{for(var n in t)Li(e,n,{get:t[n],enumerable:!0})},Oa=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Lm(t))!Vm.call(e,r)&&r!==n&&Li(e,r,{get:()=>t[r],enumerable:!(i=Qc(t,r))||i.enumerable});return e},ii=(e,t,n)=>(Oa(e,t,"default"),n&&Oa(n,t,"default")),H=(e,t,n)=>(n=e!=null?Dm(jm(e)):{},Oa(t||!e||!e.__esModule?Li(n,"default",{value:e,enumerable:!0}):n,e)),_m=e=>Oa(Li({},"__esModule",{value:!0}),e),g=(e,t,n,i)=>{for(var r=i>1?void 0:i?Qc(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&Li(t,n,r),r};var Zf=xe((hS,Yf)=>{var ps=Object.defineProperty,wm=Object.getOwnPropertyDescriptor,Rm=Object.getOwnPropertyNames,$m=Object.prototype.hasOwnProperty,zc=s((e,t)=>{for(var n in t)ps(e,n,{get:t[n],enumerable:!0})},"P"),Mm=s((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Rm(t))!$m.call(e,r)&&r!==n&&ps(e,r,{get:()=>t[r],enumerable:!(i=wm(t,r))||i.enumerable});return e},"Ce"),km=s(e=>Mm(ps({},"__esModule",{value:!0}),e),"ye"),qc={};zc(qc,{ALPViewType:()=>rf,ActionTitlePrefix:()=>Hm,ActionType:()=>sf,ArtifactType:()=>of,BindingPropertyRegexAsString:()=>Km,ControlType:()=>lf,DataSourceType:()=>Sf,DefinitionName:()=>mf,DirName:()=>uf,DraftDiscardEnabledSettings:()=>vf,ExportArtifacts:()=>nf,ExportType:()=>ff,FIORI_FCL_ROOT_ID:()=>iy,FIORI_FCL_ROOT_VIEW_NAME:()=>ny,FRAGMENTNAMEPART:()=>ey,FacetBase:()=>df,FacetTitlePrefix:()=>Gm,Features:()=>If,FileName:()=>pf,FioriElementsVersion:()=>Xc,FlexChangeLayer:()=>ef,FlexibleColumnLayoutAggregations:()=>Cf,FlexibleColumnLayoutType:()=>Zc,GENERICAPPSETTINGS:()=>ty,LogSeverity:()=>Of,LogSeverityLabel:()=>oy,MANIFESTPATH:()=>Wm,ManifestSection:()=>Pf,OdataVersion:()=>Yc,PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:()=>Um,PageType:()=>Bm,PageTypeV2:()=>ds,PropertyName:()=>yf,QUICKVARPATH:()=>Ym,QUICKVARPATHX:()=>Zm,SAPUI5_FRAGMENT_CLASS:()=>ay,SAPUI5_VIEW_CLASS:()=>ry,SchemaKeyName:()=>bf,SchemaTag:()=>hf,SchemaType:()=>tf,SectionType:()=>af,StatePreservationMode:()=>xf,TableColumnVerticalAlignment:()=>Tf,TemplateType:()=>Af,UIVOCABULARY:()=>zm,UIVOCABULARYALPHADOT:()=>Xm,UIVOCABULARYDOT:()=>qm,VOCWITHCOLONS:()=>Qm,VOCWITHSLASH:()=>Jm,ViewTemplateType:()=>gf,ViewTypes:()=>Ef,Visualization:()=>cf,v2:()=>Ff});Yf.exports=km(qc);var ds=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(ds||{}),Bm={...ds},Um=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"]]),Xc=(e=>(e.v2="v2",e.v4="v4",e))(Xc||{}),Yc=(e=>(e.v2="v2",e.v4="v4",e))(Yc||{}),Zc=(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))(Zc||{}),ef=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(ef||{}),tf=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e))(tf||{}),nf=(e=>(e.flex="flex",e.manifest="manifest",e))(nf||{}),rf=(e=>(e.Primary="primary",e.Secondary="secondary",e))(rf||{}),af=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(af||{}),of=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.Fragment="Fragment",e))(of||{}),sf=(e=>(e.Annotation="Annotation",e.Custom="Custom",e.Standard="Standard",e))(sf||{}),lf=(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.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))(lf||{}),cf=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(cf||{}),ff=(e=>(e.GW="GW",e.UI5Client="UI5Client",e))(ff||{}),uf=(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))(uf||{}),pf=(e=>(e.App="app.json",e))(pf||{}),Gm="Facet ID: ",Hm="Action ID: ",df=(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.Unknown="",e))(df||{}),Km="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",gf=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(gf||{}),mf=(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.CustomAction="CustomAction",e.CustomActionOP="CustomActionOP",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.Footer="Footer",e.FooterAction="FooterAction",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.FormCustomActionOP="FormCustomActionOP",e.SectionActions="SectionActions",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.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.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",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.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",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.SelectionFields="SelectionFields",e.Table="Table",e.TableSPV="TableSPV",e.TableColumn="TableColumn",e.TableViewExtension="TableViewExtension",e.ToolBarAction="ToolBarAction",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.SaveAndEdit="SaveAndEdit",e))(mf||{}),yf=(e=>(e.actions="actions",e.annotationPath="annotationPath",e.chart="chart",e.defaultPath="defaultPath",e.defaultTemplateAnnotationPath="defaultTemplateAnnotationPath",e.sections="sections",e.table="table",e.views="views",e))(yf||{}),hf=(e=>(e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlType="controlType",e.actionType="actionType",e.dataType="dataType",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.target="target",e.propertyIndex="propertyIndex",e))(hf||{}),bf=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(bf||{}),Wm="webapp/manifest.json",Jm="/@com.sap.vocabularies",Qm="::@com.sap.vocabularies",zm="com.sap.vocabularies.UI.v1",qm="com.sap.vocabularies.UI.v1.",Xm="@com.sap.vocabularies.UI.v1.",Ym="/quickVariantSelection",Zm="/quickVariantSelectionX",ey=".fragment.",vf=(e=>(e.restricted="restricted",e))(vf||{}),Tf=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(Tf||{}),xf=(e=>(e.persistence="persistence",e.discovery="discovery",e))(xf||{}),Cf=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(Cf||{}),Sf=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(Sf||{}),Pf=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e))(Pf||{}),ty="sap.ui.generic.app/settings",ny="sap.fe.templates.RootContainer.view.Fcl",iy="appRootView",Ef=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e.JS="JS",e))(Ef||{}),ry="sap.ui.core.mvc.View",ay="sap.ui.core.Fragment",Of=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(Of||{}),oy={error:"Error",warning:"Warning",info:"Information"},Af=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(Af||{}),If=(e=>(e.BuildingBlocks="BuildingBlocks",e))(If||{}),Ff={};zc(Ff,{AvatarShape:()=>Jf,ButtonType:()=>Nf,CardSettingsType:()=>jf,CardTemplateType:()=>Lf,ChartCardType:()=>Df,ChartType:()=>Wf,ContainerLayoutType:()=>Xf,CreateMode:()=>qf,DefaultContentView:()=>Hf,DefaultFilterMode:()=>Kf,ExtensionFragmentTypes:()=>zf,FE_TEMPLATE_V2:()=>cy,FE_TEMPLATE_V2_ALP:()=>py,FE_TEMPLATE_V2_LIST_REPORT:()=>uy,FE_TEMPLATE_V2_OBJECT_PAGE:()=>fy,HAlign:()=>$f,LinkListFlavorType:()=>Rf,ListFlavorType:()=>Vf,ListTypeType:()=>_f,PopinLayout:()=>Uf,SAPUI5_CONTROLLER_EXTENSION:()=>gy,SAPUI5_VIEW_EXTENSION:()=>dy,SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:()=>hy,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>yy,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>my,SectionPosition:()=>Qf,SortOrderType:()=>wf,Strategy:()=>Gf,TableColumnExtensionTypeV2:()=>Bf,TableTypeV2:()=>kf,cardTemplateSettingsMap:()=>ly,cardTemplateTypeMap:()=>sy,customColumnViewTypes:()=>Mf});var Nf=(e=>(e.Accept="Accept",e.Back="Back",e.Default="Default",e.Emphasized="Emphasized",e.Ghost="Ghost",e.Reject="Reject",e.Transparent="Transparent",e.Unstyled="Unstyled",e.Up="Up",e))(Nf||{}),Df=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(Df||{}),Lf=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.list="sap.ovp.cards.list",e.linklist="sap.ovp.cards.linklist",e.table="sap.ovp.cards.table",e.stack="sap.ovp.cards.stack",e))(Lf||{}),sy={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.stack":"StackCard"},ly={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},jf=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(jf||{}),Vf=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(Vf||{}),_f=(e=>(e.extended="extended",e.condensed="condensed",e))(_f||{}),wf=(e=>(e.ascending="ascending",e.descending="descending",e))(wf||{}),Rf=(e=>(e.standard="standard",e.carousel="carousel",e))(Rf||{}),$f=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))($f||{}),Mf=(e=>(e.XML="XML",e))(Mf||{}),kf=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(kf||{}),Bf=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(Bf||{}),Uf=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Uf||{}),Gf=(e=>(e.extension="extension",e))(Gf||{}),Hf=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Hf||{}),Kf=(e=>(e.visual="visual",e.compact="compact",e))(Kf||{}),Wf=(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))(Wf||{}),Jf=(e=>(e.Circle="Circle",e.Square="Square",e))(Jf||{}),Qf=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Qf||{}),zf=(e=>(e.XML="XML",e))(zf||{}),qf=(e=>(e.inline="inline",e))(qf||{}),cy="sap.suite.ui.generic.template",fy="sap.suite.ui.generic.template.ObjectPage",uy="sap.suite.ui.generic.template.ListReport",py="sap.suite.ui.generic.template.AnalyticalListPage",dy="sap.ui.viewExtensions",gy="sap.ui.controllerExtensions",my="sap.suite.ui.generic.template.ObjectPage.view.Details",yy="sap.suite.ui.generic.template.ListReport.view.ListReport",hy="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Xf=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Xf||{})});var eu=xe(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.Features=xt.TemplateType=xt.LogSeverityLabel=xt.LogSeverity=void 0;var by;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(by=xt.LogSeverity||(xt.LogSeverity={}));xt.LogSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var vy;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(vy=xt.TemplateType||(xt.TemplateType={}));var Ty;(function(e){e.BuildingBlocks="BuildingBlocks"})(Ty=xt.Features||(xt.Features={}))});var Eu=xe((TS,Pu)=>{var gs=Object.defineProperty,xy=Object.getOwnPropertyDescriptor,Cy=Object.getOwnPropertyNames,Sy=Object.prototype.hasOwnProperty,Py=s((e,t)=>{for(var n in t)gs(e,n,{get:t[n],enumerable:!0})},"R"),Ey=s((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Cy(t))!Sy.call(e,r)&&r!==n&&gs(e,r,{get:()=>t[r],enumerable:!(i=xy(t,r))||i.enumerable});return e},"h"),Oy=s(e=>Ey(gs({},"__esModule",{value:!0}),e),"N"),tu={};Py(tu,{AvatarShape:()=>vu,ButtonType:()=>nu,CardSettingsType:()=>au,CardTemplateType:()=>ru,ChartCardType:()=>iu,ChartType:()=>bu,ContainerLayoutType:()=>Su,CreateMode:()=>Cu,DefaultContentView:()=>yu,DefaultFilterMode:()=>hu,ExtensionFragmentTypes:()=>xu,FE_TEMPLATE_V2:()=>Fy,FE_TEMPLATE_V2_ALP:()=>Ly,FE_TEMPLATE_V2_LIST_REPORT:()=>Dy,FE_TEMPLATE_V2_OBJECT_PAGE:()=>Ny,HAlign:()=>fu,LinkListFlavorType:()=>cu,ListFlavorType:()=>ou,ListTypeType:()=>su,PopinLayout:()=>gu,SAPUI5_CONTROLLER_EXTENSION:()=>Vy,SAPUI5_VIEW_EXTENSION:()=>jy,SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:()=>Ry,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>wy,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>_y,SectionPosition:()=>Tu,SortOrderType:()=>lu,Strategy:()=>mu,TableColumnExtensionTypeV2:()=>du,TableTypeV2:()=>pu,cardTemplateSettingsMap:()=>Iy,cardTemplateTypeMap:()=>Ay,customColumnViewTypes:()=>uu});Pu.exports=Oy(tu);var nu=(e=>(e.Accept="Accept",e.Back="Back",e.Default="Default",e.Emphasized="Emphasized",e.Ghost="Ghost",e.Reject="Reject",e.Transparent="Transparent",e.Unstyled="Unstyled",e.Up="Up",e))(nu||{}),iu=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(iu||{}),ru=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.list="sap.ovp.cards.list",e.linklist="sap.ovp.cards.linklist",e.table="sap.ovp.cards.table",e.stack="sap.ovp.cards.stack",e))(ru||{}),Ay={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.stack":"StackCard"},Iy={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},au=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(au||{}),ou=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(ou||{}),su=(e=>(e.extended="extended",e.condensed="condensed",e))(su||{}),lu=(e=>(e.ascending="ascending",e.descending="descending",e))(lu||{}),cu=(e=>(e.standard="standard",e.carousel="carousel",e))(cu||{}),fu=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(fu||{}),uu=(e=>(e.XML="XML",e))(uu||{}),pu=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(pu||{}),du=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(du||{}),gu=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(gu||{}),mu=(e=>(e.extension="extension",e))(mu||{}),yu=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(yu||{}),hu=(e=>(e.visual="visual",e.compact="compact",e))(hu||{}),bu=(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))(bu||{}),vu=(e=>(e.Circle="Circle",e.Square="Square",e))(vu||{}),Tu=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Tu||{}),xu=(e=>(e.XML="XML",e))(xu||{}),Cu=(e=>(e.inline="inline",e))(Cu||{}),Fy="sap.suite.ui.generic.template",Ny="sap.suite.ui.generic.template.ObjectPage",Dy="sap.suite.ui.generic.template.ListReport",Ly="sap.suite.ui.generic.template.AnalyticalListPage",jy="sap.ui.viewExtensions",Vy="sap.ui.controllerExtensions",_y="sap.suite.ui.generic.template.ObjectPage.view.Details",wy="sap.suite.ui.generic.template.ListReport.view.ListReport",Ry="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Su=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Su||{})});var q=xe(gt=>{"use strict";var Ou=gt&>.__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:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),$y=gt&>.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Au=gt&>.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Ou(t,e,n)},My=gt&>.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Ou(t,e,n);return $y(t,e),t};Object.defineProperty(gt,"__esModule",{value:!0});gt.v2=void 0;Au(Zf(),gt);Au(eu(),gt);gt.v2=My(Eu())});var Ss=xe((BP,Xu)=>{"use strict";var mh=s(function(t){return yh(t)&&!hh(t)},"isMergeableObject");function yh(e){return!!e&&typeof e=="object"}s(yh,"isNonNullObject");function hh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Th(e)}s(hh,"isSpecial");var bh=typeof Symbol=="function"&&Symbol.for,vh=bh?Symbol.for("react.element"):60103;function Th(e){return e.$$typeof===vh}s(Th,"isReactElement");function xh(e){return Array.isArray(e)?[]:{}}s(xh,"emptyTarget");function hr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?wi(xh(e),e,t):e}s(hr,"cloneUnlessOtherwiseSpecified");function Ch(e,t,n){return e.concat(t).map(function(i){return hr(i,n)})}s(Ch,"defaultArrayMerge");function Sh(e,t){if(!t.customMerge)return wi;var n=t.customMerge(e);return typeof n=="function"?n:wi}s(Sh,"getMergeFunction");function Ph(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}s(Ph,"getEnumerableOwnPropertySymbols");function zu(e){return Object.keys(e).concat(Ph(e))}s(zu,"getKeys");function qu(e,t){try{return t in e}catch{return!1}}s(qu,"propertyIsOnObject");function Eh(e,t){return qu(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}s(Eh,"propertyIsUnsafe");function Oh(e,t,n){var i={};return n.isMergeableObject(e)&&zu(e).forEach(function(r){i[r]=hr(e[r],n)}),zu(t).forEach(function(r){Eh(e,r)||(qu(e,r)&&n.isMergeableObject(t[r])?i[r]=Sh(r,n)(e[r],t[r],n):i[r]=hr(t[r],n))}),i}s(Oh,"mergeObject");function wi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Ch,n.isMergeableObject=n.isMergeableObject||mh,n.cloneUnlessOtherwiseSpecified=hr;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):Oh(e,t,n):hr(t,n)}s(wi,"deepmerge");wi.all=s(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return wi(i,r,n)},{})},"deepmergeAll");var Ah=wi;Xu.exports=Ah});var wa=xe(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.mergeAnnotations=me.addGetByValue=me.createIndexedFind=me.lazy=me.Decimal=me.isComplexTypeDefinition=me.unalias=me.alias=me.substringBeforeLast=me.substringBeforeFirst=me.splitAtLast=me.splitAtFirst=me.defaultReferences=me.TermToTypes=me.EnumIsFlag=void 0;var Ih=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(me,"EnumIsFlag",{enumerable:!0,get:function(){return Ih.EnumIsFlag}});var Fh=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(me,"TermToTypes",{enumerable:!0,get:function(){return Fh.TermToTypes}});var Nh=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(me,"defaultReferences",{enumerable:!0,get:function(){return Nh.VocabularyReferences}});function Yu(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}s(Yu,"splitAt");function Zu(e,t){return t<0?e:e.substring(0,t)}s(Zu,"substringAt");function _a(e,t){return Yu(e,e.indexOf(t))}s(_a,"splitAtFirst");me.splitAtFirst=_a;function ep(e,t){return Yu(e,e.lastIndexOf(t))}s(ep,"splitAtLast");me.splitAtLast=ep;function Dh(e,t){return Zu(e,e.indexOf(t))}s(Dh,"substringBeforeFirst");me.substringBeforeFirst=Dh;function Lh(e,t){return Zu(e,e.lastIndexOf(t))}s(Lh,"substringBeforeLast");me.substringBeforeLast=Lh;function tp(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,o)=>(a[o.namespace]=o,a),{})),!t)return t;let[n,i]=ep(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,o]=_a(t,"@");return`${a}@${tp(e,o)}`}else return t}s(tp,"alias");me.alias=tp;function Ps(e,t,n){var i;let r=s(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(p=>[p.alias,p])));let[o,l]=_a(a,".");if(!l||l.includes("."))return a;let c=o.startsWith("@"),u=c?o.substring(1):o,f=e.referenceMap[u];return f?c?`@${f.namespace}.${l}`:`${f.namespace}.${l}`:n&&!c?`${n}.${l}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,o)=>{let[l,c]=_a(o,"("),u=[r(l)];if(c){let f=c.slice(0,-1);u.push(`(${r(f)})`)}return a.push(u.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}s(Ps,"unalias");me.unalias=Ps;function jh(e){return!!e&&e._type==="ComplexType"&&!!e.properties}s(jh,"isComplexTypeDefinition");me.isComplexTypeDefinition=jh;function Vh(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}s(Vh,"Decimal");me.Decimal=Vh;function _h(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}})}s(_h,"lazy");me.lazy=_h;function np(e,t){let n=new Map;return s(function(r){let a=n.get(r);return(a==null?void 0:a[t])===r?a:e.find(o=>{if(!(o!=null&&o.hasOwnProperty(t)))return!1;let l=o[t];return n.set(l,o),l===r})},"find")}s(np,"createIndexedFind");me.createIndexedFind=np;function wh(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:np(e,t)});else throw new Error(`Property '${n}' already exists`);return e}s(wh,"addGetByValue");me.addGetByValue=wh;function Rh(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:o,annotations:l}of r){let c=(a=Ps(e,o))!==null&&a!==void 0?a:o;n[c]||(n[c]=[]);let u=l.map(f=>{var p;return f.term=(p=Ps(e,f.term))!==null&&p!==void 0?p:f.term,f.fullyQualifiedName=f.qualifier?`${c}@${f.term}#${f.qualifier}`:`${c}@${f.term}`,f.__source=i,f}).filter(f=>!n[c].some(p=>p.term===f.term&&p.qualifier===f.qualifier));n[c].push(...u)}return n},{})}s(Rh,"mergeAnnotations");me.mergeAnnotations=Rh});var yp=xe($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.convert=void 0;var br=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),B=wa(),Ut=Symbol("Annotation Target");function mn(e,t){return e[e.length-1]!==t&&e.push(t),e}s(mn,"appendObjectPath");function Ct(e,t,n,i){var r,a,o,l;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let c=n.split("/").reduce((f,p)=>{if(p.includes("@")){let[h,b]=(0,B.splitAtFirst)(p,"@");f.push(h),f.push(`@${b}`)}else f.push(p);return f},[]);if(t===void 0)c[0].startsWith(`${e.rawSchema.namespace}.`)&&c[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(o=(a=e.getConvertedEntityType(c[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(c[0]))!==null&&o!==void 0?o:e.getConvertedAction(c[0]),c.shift()):t=e.getConvertedEntityContainer();else if(t[Ut]!==void 0)t=t[Ut];else if(t._type==="Property"){let f=(0,B.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(l=e.getConvertedEntityType(f))!==null&&l!==void 0?l:e.getConvertedComplexType(f)}let u=c.reduce((f,p)=>{var h,b,C,F,N;let E=s(I=>(f.messages.push({message:I}),f.target=void 0,f),"error");if(f.target===void 0)return f;if(f.objectPath=mn(f.objectPath,f.target),p.startsWith("@")&&p!=="@$ui5.overload"){let[I,k]=e.splitTerm(p),w=(h=f.target.annotations[I.substring(1)])===null||h===void 0?void 0:h[k];return w!==void 0?(f.target=w,f):E(`Annotation '${p.substring(1)}' not found on ${f.target._type} '${f.target.fullyQualifiedName}'`)}if(f.target.$target){let I;if(p==="$AnnotationPath"?I=f.target.value:p==="$Path"&&(I=f.target.path),I!==void 0){let k=Ct(e,f.target[Ut],I);return k.objectPath.forEach(w=>{f.objectPath.includes(w)||(f.objectPath=mn(f.objectPath,w))}),f.target=k.target,f.objectPath=mn(f.objectPath,f.target),f}}switch((b=f.target)===null||b===void 0?void 0:b._type){case"Schema":break;case"EntityContainer":{let w=f.target;if(p===""||e.unalias(p)===w.fullyQualifiedName)return f;let oe=(F=(C=w.entitySets.by_name(p))!==null&&C!==void 0?C:w.singletons.by_name(p))!==null&&F!==void 0?F:w.actionImports.by_name(p);if(oe)return f.target=oe,f}break;case"EntitySet":case"Singleton":{let w=f.target;if(p===""||p==="$Type")return f.target=w.entityType,f;if(p==="$")return f;if(p==="$NavigationPropertyBinding"){let ye=w.navigationPropertyBinding;return f.target=ye,f}let oe=Ct(e,w.entityType,p);return f.target=oe.target,f.objectPath=oe.objectPath.reduce(mn,f.objectPath),f}case"EntityType":{let w=f.target;if(p===""||p==="$Type")return f;let oe=w.entityProperties.by_name(p);if(oe)return f.target=oe,f;let ye=w.navigationProperties.by_name(p);if(ye)return f.target=ye,f;let tt=(0,B.substringBeforeFirst)(e.unalias(p),"("),x=w.actions[tt];if(x)return f.target=x,f}break;case"ActionImport":{let w=Ct(e,f.target.action,p);return f.target=w.target,f.objectPath=w.objectPath.reduce(mn,f.objectPath),f}case"Action":{let w=f.target;if(p===""||p==="@$ui5.overload"||p==="0")return f;if(p==="$Parameter"&&w.isBound)return f.target=w.parameters,f;let oe=(N=w.parameters[p])!==null&&N!==void 0?N:w.parameters.find(ye=>ye.name===p);if(oe)return f.target=oe,f;break}case"Property":{let oe=f.target.targetType;if(oe!==void 0){let ye=oe.properties.by_name(p);if(ye)return f.target=ye,f;let tt=oe.navigationProperties.by_name(p);if(tt)return f.target=tt,f}}break;case"ActionParameter":let I=f.target.typeReference;if(I!==void 0){let w=Ct(e,I,p);return f.target=w.target,f.objectPath=w.objectPath.reduce(mn,f.objectPath),f}break;case"NavigationProperty":let k=Ct(e,f.target.targetType,p);return f.target=k.target,f.objectPath=k.objectPath.reduce(mn,f.objectPath),f;default:if(p==="")return f;if(f.target[p])return f.target=f.target[p],f.objectPath=mn(f.objectPath,f.target),f}return E(`Element '${p}' not found at ${f.target._type} '${f.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(u.messages.forEach(f=>e.logError(f.message)),!u.target)if(i){let f=sp(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):
|
|
@@ -16,17 +16,17 @@ Hint: If possible, try to maintain the Type property for each Record.
|
|
|
16
16
|
<Annotation Term="${t}">
|
|
17
17
|
<Record>...</Record>
|
|
18
18
|
</Annotation>
|
|
19
|
-
</Annotations>`),r}s(sp,"inferTypeFromTerm");function kh(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}s(kh,"isDataFieldWithForAction");function Bh(e,t,n,i,r){let a;return!r.type&&t?a=sp(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}s(Bh,"parseRecordType");function As(e,t,n,i,r,a,o){let l={$Type:Bh(e,t,n,i,a),fullyQualifiedName:o,[Ut]:n,__source:r};for(let c of a.propertyValues)(0,B.lazy)(l,c.name,()=>op(e,n,t,c.name,r,c.value,`${o}/${c.name}`));return(0,B.lazy)(l,"annotations",fp(e,a,l)),kh(l)&&(0,B.lazy)(l,"ActionTarget",()=>{var c,u;let f=e.unalias((c=l.Action)===null||c===void 0?void 0:c.toString()),p=n.actions[f];return p||(p=(u=e.getConvertedActionImport(f))===null||u===void 0?void 0:u.action),p||(p=e.getConvertedAction(f),p!=null&&p.isBound||(p=void 0)),p||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${f}')`),p}),l}s(As,"parseRecord");function Uh(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}s(Uh,"getOrInferCollectionType");function lp(e,t,n,i,r,a,o){switch(Uh(a)){case"PropertyPath":return a.map((c,u)=>ip(e,c,`${o}/${u}`,t,n));case"Path":return a.map(c=>Ct(e,t,c.Path,n).target);case"AnnotationPath":return a.map((c,u)=>rp(e,c,`${o}/${u}`,t,n));case"NavigationPropertyPath":return a.map((c,u)=>ap(e,c,`${o}/${u}`,t,n));case"Record":return a.map((c,u)=>As(e,n,t,i,r,c,`${o}/${u}`));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(c=>c);case"String":return a.map(c=>typeof c=="string"||c===void 0?c:c.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}s(lp,"parseCollection");function Gh(e){return!!e.targetTypeName}s(Gh,"isV4NavigationProperty");function Hh(e,t,n){var i;let r;if(n.record)r=As(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=op(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=lp(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[Ut]=t;let[a,o]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${o}`,br.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,B.lazy)(r,"annotations",fp(e,n,r))}catch{}return r}s(Hh,"convertAnnotation");var Is=class Is{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,B.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,up)}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 o=this.getConvertedElement(a.fullyQualifiedName,a,n);return o&&r.push(o),r},[]);return(0,B.addGetByValue)(i,"name"),(0,B.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,B.alias)(br.VocabularyReferences,t);return(0,B.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,B.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};s(Is,"Converter");var Es=Is;function vr(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}s(vr,"resolveEntityType");function cp(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,B.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}s(cp,"resolveNavigationPropertyBindings");function yn(e,t){let n=t.annotations;return()=>wa(e,t,n??e.getAnnotations(t.fullyQualifiedName))}s(yn,"resolveAnnotations");function fp(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[Ut]=n[Ut],a.fullyQualifiedName=`${i}@${a.term}`}),wa(e,n,r??[])}}s(fp,"resolveAnnotationsOnAnnotation");function wa(e,t,n){return n.reduce((i,r)=>{let[a,o]=e.splitTerm(r.term),l=`${o}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,B.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(c,u)=>Hh(c,t,u))),i},{})}s(wa,"createAnnotationsObject");function up(e,t){let n=t;return(0,B.lazy)(n,"annotations",yn(e,t)),(0,B.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,dp)),(0,B.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,pp)),(0,B.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,mp)),n}s(up,"convertEntityContainer");function pp(e,t){let n=t;(0,B.lazy)(n,"entityType",vr(e,t.entityTypeName)),(0,B.lazy)(n,"annotations",yn(e,n));let i=t.navigationPropertyBinding;return(0,B.lazy)(n,"navigationPropertyBinding",cp(e,i)),n}s(pp,"convertSingleton");function dp(e,t){let n=t;(0,B.lazy)(n,"entityType",vr(e,t.entityTypeName)),(0,B.lazy)(n,"annotations",yn(e,n));let i=t.navigationPropertyBinding;return(0,B.lazy)(n,"navigationPropertyBinding",cp(e,i)),n}s(dp,"convertEntitySet");function Kh(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,B.lazy)(n,"annotations",yn(e,t)),(0,B.lazy)(n,"keys",e.convert(t.keys,Os)),(0,B.lazy)(n,"entityProperties",e.convert(t.entityProperties,Os)),(0,B.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,gp)),(0,B.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=Ct(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}s(Kh,"convertEntityType");function Os(e,t){let n=t;return(0,B.lazy)(n,"annotations",yn(e,t)),(0,B.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}s(Os,"convertProperty");function gp(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!Gh(t)){let o=(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=(o==null?void 0:o.multiplicity)==="*",a.targetTypeName=(r=o==null?void 0:o.type)!==null&&r!==void 0?r:""}return(0,B.lazy)(a,"targetType",vr(e,t.targetTypeName)),(0,B.lazy)(a,"annotations",yn(e,t)),a}s(gp,"convertNavigationProperty");function mp(e,t){let n=t;return(0,B.lazy)(n,"annotations",yn(e,t)),(0,B.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}s(mp,"convertActionImport");function Wh(e,t){let n=t;return n.sourceType&&(0,B.lazy)(n,"sourceEntityType",vr(e,t.sourceType)),n.returnType&&(0,B.lazy)(n,"returnEntityType",vr(e,t.returnType)),(0,B.lazy)(n,"parameters",e.convert(t.parameters,Jh)),(0,B.lazy)(n,"annotations",()=>{let i=(0,B.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),o=e.getAnnotations(i);for(let l of o)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return wa(e,t,a)}),n}s(Wh,"convertAction");function Jh(e,t){let n=t;return(0,B.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,B.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.indexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),o=e.getAnnotations(i);for(let l of o)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return wa(e,t,a)}),n}s(Jh,"convertActionParameter");function Qh(e,t){let n=t;return(0,B.lazy)(n,"properties",e.convert(t.properties,Os)),(0,B.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,gp)),(0,B.lazy)(n,"annotations",yn(e,t)),n}s(Qh,"convertComplexType");function zh(e,t){let n=t;return(0,B.lazy)(n,"annotations",yn(e,t)),n}s(zh,"convertTypeDefinition");function qh(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:br.VocabularyReferences,diagnostics:[]};e.references.length===0&&(e.references=br.VocabularyReferences);let n=new Es(e,t);return(0,B.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,up)),(0,B.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,dp)),(0,B.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,pp)),(0,B.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,Kh)),(0,B.lazy)(t,"actions",n.convert(n.rawSchema.actions,Wh)),(0,B.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,Qh)),(0,B.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,mp)),(0,B.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,zh)),t.resolvePath=s(function(r){let a=Ct(n,void 0,r);return a.target&&mn(a.objectPath,a.target),a},"resolvePath"),t}s(qh,"convert");Ra.convert=qh});var Tp=xe(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.revertTermToGenericType=void 0;var Xh=_a();function Yh(e,t){var n,i,r,a,o,l;let c;if(Array.isArray(t))c={type:"Collection",Collection:t.map(u=>$a(e,u))};else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))c={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isString)===null||i===void 0)&&i.call(t)){let u=t.valueOf().split(".");u.length>1&&e.find(f=>f.alias===u[0])?c={type:"EnumMember",EnumMember:t.valueOf()}:c={type:"String",String:t.valueOf()}}else!((r=t.isInt)===null||r===void 0)&&r.call(t)?c={type:"Int",Int:t.valueOf()}:!((a=t.isFloat)===null||a===void 0)&&a.call(t)?c={type:"Float",Float:t.valueOf()}:!((o=t.isDate)===null||o===void 0)&&o.call(t)?c={type:"Date",Date:t.valueOf()}:!((l=t.isBoolean)===null||l===void 0)&&l.call(t)?c={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?c={type:"Path",Path:t.path}:t.type==="AnnotationPath"?c={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?c={type:"Apply",Apply:t.Apply}:t.type==="Null"?c={type:"Null"}:t.type==="PropertyPath"?c={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?c={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(c={type:"Record",Record:$a(e,t)});return c}s(Yh,"revertObjectToRawType");function hp(e,t){let n;switch(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=Yh(e,t);break}return n}s(hp,"revertValueToRawType");var Zh=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function bp(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=vp(e,t[i][r]);if(!a.term){let o=(0,Xh.unalias)(e,`${i}.${r}`);if(o){let l=o.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}s(bp,"revertAnnotationsToRawType");function $a(e,t){if(typeof t=="string")return t;if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(Zh.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:hp(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],bp(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}}}s($a,"revertCollectionItemToRawType");function vp(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=[],bp(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>$a(e,i))}):t.hasOwnProperty("$Type")?{...n,record:$a(e,t)}:{...n,value:hp(e,t)}}s(vp,"revertTermToGenericType");Ma.revertTermToGenericType=vp});var xp=xe(hn=>{"use strict";var eb=hn&&hn.__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:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),Fs=hn&&hn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&eb(t,e,n)};Object.defineProperty(hn,"__esModule",{value:!0});Fs(yp(),hn);Fs(_a(),hn);Fs(Tp(),hn)});var Vs=xe(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.MergedRawMetadata=Ln.RawMetadataInstance=Ln.ensureArray=void 0;function tb(e){return e==null?[]:Array.isArray(e)?e:[e]}s(tb,"ensureArray");Ln.ensureArray=tb;var Ls=class Ls{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};s(Ls,"RawMetadataInstance");var Ns=Ls;Ln.RawMetadataInstance=Ns;var js=class js{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))}};s(js,"MergedRawMetadata");var Ds=js;Ln.MergedRawMetadata=Ds});var Cp=xe(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.merge=void 0;var nb=Vs();function ib(...e){let t=new nb.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}s(ib,"merge");ka.merge=ib});var Sp=xe(Ba=>{(function(e){e.parser=function(y,d){return new n(y,d)},e.SAXParser=n,e.SAXStream=u,e.createStream=c,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(y,d){if(!(this instanceof n))return new n(y,d);var A=this;r(A),A.q=A.c="",A.bufferCheckPosition=e.MAX_BUFFER_LENGTH,A.opt=d||{},A.opt.lowercase=A.opt.lowercase||A.opt.lowercasetags,A.looseCase=A.opt.lowercase?"toLowerCase":"toUpperCase",A.tags=[],A.closed=A.closedRoot=A.sawRoot=!1,A.tag=A.error=null,A.strict=!!y,A.noscript=!!(y||A.opt.noscript),A.state=x.BEGIN,A.strictEntities=A.opt.strictEntities,A.ENTITIES=A.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),A.attribList=[],A.opt.xmlns&&(A.ns=Object.create(C)),A.trackPosition=A.opt.position!==!1,A.trackPosition&&(A.position=A.line=A.column=0),pt(A,"onready")}s(n,"SAXParser"),Object.create||(Object.create=function(y){function d(){}s(d,"F"),d.prototype=y;var A=new d;return A}),Object.keys||(Object.keys=function(y){var d=[];for(var A in y)y.hasOwnProperty(A)&&d.push(A);return d});function i(y){for(var d=Math.max(e.MAX_BUFFER_LENGTH,10),A=0,v=0,re=t.length;v<re;v++){var ve=y[t[v]].length;if(ve>d)switch(t[v]){case"textNode":At(y);break;case"cdata":Fe(y,"oncdata",y.cdata),y.cdata="";break;case"script":Fe(y,"onscript",y.script),y.script="";break;default:dt(y,"Max buffer length exceeded: "+t[v])}A=Math.max(A,ve)}var be=e.MAX_BUFFER_LENGTH-A;y.bufferCheckPosition=be+y.position}s(i,"checkBufferLength");function r(y){for(var d=0,A=t.length;d<A;d++)y[t[d]]=""}s(r,"clearBuffers");function a(y){At(y),y.cdata!==""&&(Fe(y,"oncdata",y.cdata),y.cdata=""),y.script!==""&&(Fe(y,"onscript",y.script),y.script="")}s(a,"flushBuffers"),n.prototype={end:function(){pn(this)},write:Oe,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var o;try{o=require("stream").Stream}catch{o=s(function(){},"Stream")}o||(o=s(function(){},"Stream"));var l=e.EVENTS.filter(function(y){return y!=="error"&&y!=="end"});function c(y,d){return new u(y,d)}s(c,"createStream");function u(y,d){if(!(this instanceof u))return new u(y,d);o.apply(this),this._parser=new n(y,d),this.writable=!0,this.readable=!0;var A=this;this._parser.onend=function(){A.emit("end")},this._parser.onerror=function(v){A.emit("error",v),A._parser.error=null},this._decoder=null,l.forEach(function(v){Object.defineProperty(A,"on"+v,{get:function(){return A._parser["on"+v]},set:function(re){if(!re)return A.removeAllListeners(v),A._parser["on"+v]=re,re;A.on(v,re)},enumerable:!0,configurable:!1})})}s(u,"SAXStream"),u.prototype=Object.create(o.prototype,{constructor:{value:u}}),u.prototype.write=function(y){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(y)){if(!this._decoder){var d=require("string_decoder").StringDecoder;this._decoder=new d("utf8")}y=this._decoder.write(y)}return this._parser.write(y.toString()),this.emit("data",y),!0},u.prototype.end=function(y){return y&&y.length&&this.write(y),this._parser.end(),!0},u.prototype.on=function(y,d){var A=this;return!A._parser["on"+y]&&l.indexOf(y)!==-1&&(A._parser["on"+y]=function(){var v=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);v.splice(0,0,y),A.emit.apply(A,v)}),o.prototype.on.call(A,y,d)};var f="[CDATA[",p="DOCTYPE",h="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",C={xml:h,xmlns:b},F=/[:_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-]/,E=/[#:_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]/,I=/[#:_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 k(y){return y===" "||y===`
|
|
19
|
+
</Annotations>`),r}s(sp,"inferTypeFromTerm");function kh(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}s(kh,"isDataFieldWithForAction");function Bh(e,t,n,i,r){let a;return!r.type&&t?a=sp(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}s(Bh,"parseRecordType");function As(e,t,n,i,r,a,o){let l={$Type:Bh(e,t,n,i,a),fullyQualifiedName:o,[Ut]:n,__source:r};for(let c of a.propertyValues)(0,B.lazy)(l,c.name,()=>op(e,n,t,c.name,r,c.value,`${o}/${c.name}`));return(0,B.lazy)(l,"annotations",fp(e,a,l)),kh(l)&&(0,B.lazy)(l,"ActionTarget",()=>{var c,u;let f=e.unalias((c=l.Action)===null||c===void 0?void 0:c.toString()),p=n.actions[f];return p||(p=(u=e.getConvertedActionImport(f))===null||u===void 0?void 0:u.action),p||(p=e.getConvertedAction(f),p!=null&&p.isBound||(p=void 0)),p||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${f}')`),p}),l}s(As,"parseRecord");function Uh(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}s(Uh,"getOrInferCollectionType");function lp(e,t,n,i,r,a,o){switch(Uh(a)){case"PropertyPath":return a.map((c,u)=>ip(e,c,`${o}/${u}`,t,n));case"Path":return a.map(c=>Ct(e,t,c.Path,n).target);case"AnnotationPath":return a.map((c,u)=>rp(e,c,`${o}/${u}`,t,n));case"NavigationPropertyPath":return a.map((c,u)=>ap(e,c,`${o}/${u}`,t,n));case"Record":return a.map((c,u)=>As(e,n,t,i,r,c,`${o}/${u}`));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(c=>c);case"String":return a.map(c=>typeof c=="string"||c===void 0?c:c.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}s(lp,"parseCollection");function Gh(e){return!!e.targetTypeName}s(Gh,"isV4NavigationProperty");function Hh(e,t,n){var i;let r;if(n.record)r=As(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=op(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=lp(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[Ut]=t;let[a,o]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${o}`,br.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,B.lazy)(r,"annotations",fp(e,n,r))}catch{}return r}s(Hh,"convertAnnotation");var Is=class Is{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,B.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,up)}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 o=this.getConvertedElement(a.fullyQualifiedName,a,n);return o&&r.push(o),r},[]);return(0,B.addGetByValue)(i,"name"),(0,B.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,B.alias)(br.VocabularyReferences,t);return(0,B.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,B.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};s(Is,"Converter");var Es=Is;function vr(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}s(vr,"resolveEntityType");function cp(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,B.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}s(cp,"resolveNavigationPropertyBindings");function yn(e,t){let n=t.annotations;return()=>Ra(e,t,n??e.getAnnotations(t.fullyQualifiedName))}s(yn,"resolveAnnotations");function fp(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[Ut]=n[Ut],a.fullyQualifiedName=`${i}@${a.term}`}),Ra(e,n,r??[])}}s(fp,"resolveAnnotationsOnAnnotation");function Ra(e,t,n){return n.reduce((i,r)=>{let[a,o]=e.splitTerm(r.term),l=`${o}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,B.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(c,u)=>Hh(c,t,u))),i},{})}s(Ra,"createAnnotationsObject");function up(e,t){let n=t;return(0,B.lazy)(n,"annotations",yn(e,t)),(0,B.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,dp)),(0,B.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,pp)),(0,B.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,mp)),n}s(up,"convertEntityContainer");function pp(e,t){let n=t;(0,B.lazy)(n,"entityType",vr(e,t.entityTypeName)),(0,B.lazy)(n,"annotations",yn(e,n));let i=t.navigationPropertyBinding;return(0,B.lazy)(n,"navigationPropertyBinding",cp(e,i)),n}s(pp,"convertSingleton");function dp(e,t){let n=t;(0,B.lazy)(n,"entityType",vr(e,t.entityTypeName)),(0,B.lazy)(n,"annotations",yn(e,n));let i=t.navigationPropertyBinding;return(0,B.lazy)(n,"navigationPropertyBinding",cp(e,i)),n}s(dp,"convertEntitySet");function Kh(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,B.lazy)(n,"annotations",yn(e,t)),(0,B.lazy)(n,"keys",e.convert(t.keys,Os)),(0,B.lazy)(n,"entityProperties",e.convert(t.entityProperties,Os)),(0,B.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,gp)),(0,B.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=Ct(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}s(Kh,"convertEntityType");function Os(e,t){let n=t;return(0,B.lazy)(n,"annotations",yn(e,t)),(0,B.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}s(Os,"convertProperty");function gp(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!Gh(t)){let o=(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=(o==null?void 0:o.multiplicity)==="*",a.targetTypeName=(r=o==null?void 0:o.type)!==null&&r!==void 0?r:""}return(0,B.lazy)(a,"targetType",vr(e,t.targetTypeName)),(0,B.lazy)(a,"annotations",yn(e,t)),a}s(gp,"convertNavigationProperty");function mp(e,t){let n=t;return(0,B.lazy)(n,"annotations",yn(e,t)),(0,B.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}s(mp,"convertActionImport");function Wh(e,t){let n=t;return n.sourceType&&(0,B.lazy)(n,"sourceEntityType",vr(e,t.sourceType)),n.returnType&&(0,B.lazy)(n,"returnEntityType",vr(e,t.returnType)),(0,B.lazy)(n,"parameters",e.convert(t.parameters,Jh)),(0,B.lazy)(n,"annotations",()=>{let i=(0,B.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),o=e.getAnnotations(i);for(let l of o)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return Ra(e,t,a)}),n}s(Wh,"convertAction");function Jh(e,t){let n=t;return(0,B.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,B.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.indexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),o=e.getAnnotations(i);for(let l of o)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return Ra(e,t,a)}),n}s(Jh,"convertActionParameter");function Qh(e,t){let n=t;return(0,B.lazy)(n,"properties",e.convert(t.properties,Os)),(0,B.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,gp)),(0,B.lazy)(n,"annotations",yn(e,t)),n}s(Qh,"convertComplexType");function zh(e,t){let n=t;return(0,B.lazy)(n,"annotations",yn(e,t)),n}s(zh,"convertTypeDefinition");function qh(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:br.VocabularyReferences,diagnostics:[]};e.references.length===0&&(e.references=br.VocabularyReferences);let n=new Es(e,t);return(0,B.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,up)),(0,B.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,dp)),(0,B.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,pp)),(0,B.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,Kh)),(0,B.lazy)(t,"actions",n.convert(n.rawSchema.actions,Wh)),(0,B.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,Qh)),(0,B.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,mp)),(0,B.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,zh)),t.resolvePath=s(function(r){let a=Ct(n,void 0,r);return a.target&&mn(a.objectPath,a.target),a},"resolvePath"),t}s(qh,"convert");$a.convert=qh});var Tp=xe(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.revertTermToGenericType=void 0;var Xh=wa();function Yh(e,t){var n,i,r,a,o,l;let c;if(Array.isArray(t))c={type:"Collection",Collection:t.map(u=>Ma(e,u))};else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))c={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isString)===null||i===void 0)&&i.call(t)){let u=t.valueOf().split(".");u.length>1&&e.find(f=>f.alias===u[0])?c={type:"EnumMember",EnumMember:t.valueOf()}:c={type:"String",String:t.valueOf()}}else!((r=t.isInt)===null||r===void 0)&&r.call(t)?c={type:"Int",Int:t.valueOf()}:!((a=t.isFloat)===null||a===void 0)&&a.call(t)?c={type:"Float",Float:t.valueOf()}:!((o=t.isDate)===null||o===void 0)&&o.call(t)?c={type:"Date",Date:t.valueOf()}:!((l=t.isBoolean)===null||l===void 0)&&l.call(t)?c={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?c={type:"Path",Path:t.path}:t.type==="AnnotationPath"?c={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?c={type:"Apply",Apply:t.Apply}:t.type==="Null"?c={type:"Null"}:t.type==="PropertyPath"?c={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?c={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(c={type:"Record",Record:Ma(e,t)});return c}s(Yh,"revertObjectToRawType");function hp(e,t){let n;switch(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=Yh(e,t);break}return n}s(hp,"revertValueToRawType");var Zh=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function bp(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=vp(e,t[i][r]);if(!a.term){let o=(0,Xh.unalias)(e,`${i}.${r}`);if(o){let l=o.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}s(bp,"revertAnnotationsToRawType");function Ma(e,t){if(typeof t=="string")return t;if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(Zh.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:hp(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],bp(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}}}s(Ma,"revertCollectionItemToRawType");function vp(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=[],bp(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Ma(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Ma(e,t)}:{...n,value:hp(e,t)}}s(vp,"revertTermToGenericType");ka.revertTermToGenericType=vp});var xp=xe(hn=>{"use strict";var eb=hn&&hn.__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:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),Fs=hn&&hn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&eb(t,e,n)};Object.defineProperty(hn,"__esModule",{value:!0});Fs(yp(),hn);Fs(wa(),hn);Fs(Tp(),hn)});var Vs=xe(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.MergedRawMetadata=Ln.RawMetadataInstance=Ln.ensureArray=void 0;function tb(e){return e==null?[]:Array.isArray(e)?e:[e]}s(tb,"ensureArray");Ln.ensureArray=tb;var Ls=class Ls{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};s(Ls,"RawMetadataInstance");var Ns=Ls;Ln.RawMetadataInstance=Ns;var js=class js{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))}};s(js,"MergedRawMetadata");var Ds=js;Ln.MergedRawMetadata=Ds});var Cp=xe(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.merge=void 0;var nb=Vs();function ib(...e){let t=new nb.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}s(ib,"merge");Ba.merge=ib});var Sp=xe(Ua=>{(function(e){e.parser=function(y,d){return new n(y,d)},e.SAXParser=n,e.SAXStream=u,e.createStream=c,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(y,d){if(!(this instanceof n))return new n(y,d);var A=this;r(A),A.q=A.c="",A.bufferCheckPosition=e.MAX_BUFFER_LENGTH,A.opt=d||{},A.opt.lowercase=A.opt.lowercase||A.opt.lowercasetags,A.looseCase=A.opt.lowercase?"toLowerCase":"toUpperCase",A.tags=[],A.closed=A.closedRoot=A.sawRoot=!1,A.tag=A.error=null,A.strict=!!y,A.noscript=!!(y||A.opt.noscript),A.state=x.BEGIN,A.strictEntities=A.opt.strictEntities,A.ENTITIES=A.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),A.attribList=[],A.opt.xmlns&&(A.ns=Object.create(C)),A.trackPosition=A.opt.position!==!1,A.trackPosition&&(A.position=A.line=A.column=0),pt(A,"onready")}s(n,"SAXParser"),Object.create||(Object.create=function(y){function d(){}s(d,"F"),d.prototype=y;var A=new d;return A}),Object.keys||(Object.keys=function(y){var d=[];for(var A in y)y.hasOwnProperty(A)&&d.push(A);return d});function i(y){for(var d=Math.max(e.MAX_BUFFER_LENGTH,10),A=0,v=0,re=t.length;v<re;v++){var ve=y[t[v]].length;if(ve>d)switch(t[v]){case"textNode":At(y);break;case"cdata":Fe(y,"oncdata",y.cdata),y.cdata="";break;case"script":Fe(y,"onscript",y.script),y.script="";break;default:dt(y,"Max buffer length exceeded: "+t[v])}A=Math.max(A,ve)}var be=e.MAX_BUFFER_LENGTH-A;y.bufferCheckPosition=be+y.position}s(i,"checkBufferLength");function r(y){for(var d=0,A=t.length;d<A;d++)y[t[d]]=""}s(r,"clearBuffers");function a(y){At(y),y.cdata!==""&&(Fe(y,"oncdata",y.cdata),y.cdata=""),y.script!==""&&(Fe(y,"onscript",y.script),y.script="")}s(a,"flushBuffers"),n.prototype={end:function(){pn(this)},write:Oe,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var o;try{o=require("stream").Stream}catch{o=s(function(){},"Stream")}o||(o=s(function(){},"Stream"));var l=e.EVENTS.filter(function(y){return y!=="error"&&y!=="end"});function c(y,d){return new u(y,d)}s(c,"createStream");function u(y,d){if(!(this instanceof u))return new u(y,d);o.apply(this),this._parser=new n(y,d),this.writable=!0,this.readable=!0;var A=this;this._parser.onend=function(){A.emit("end")},this._parser.onerror=function(v){A.emit("error",v),A._parser.error=null},this._decoder=null,l.forEach(function(v){Object.defineProperty(A,"on"+v,{get:function(){return A._parser["on"+v]},set:function(re){if(!re)return A.removeAllListeners(v),A._parser["on"+v]=re,re;A.on(v,re)},enumerable:!0,configurable:!1})})}s(u,"SAXStream"),u.prototype=Object.create(o.prototype,{constructor:{value:u}}),u.prototype.write=function(y){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(y)){if(!this._decoder){var d=require("string_decoder").StringDecoder;this._decoder=new d("utf8")}y=this._decoder.write(y)}return this._parser.write(y.toString()),this.emit("data",y),!0},u.prototype.end=function(y){return y&&y.length&&this.write(y),this._parser.end(),!0},u.prototype.on=function(y,d){var A=this;return!A._parser["on"+y]&&l.indexOf(y)!==-1&&(A._parser["on"+y]=function(){var v=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);v.splice(0,0,y),A.emit.apply(A,v)}),o.prototype.on.call(A,y,d)};var f="[CDATA[",p="DOCTYPE",h="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",C={xml:h,xmlns:b},F=/[:_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-]/,E=/[#:_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]/,I=/[#:_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 k(y){return y===" "||y===`
|
|
20
20
|
`||y==="\r"||y===" "}s(k,"isWhitespace");function w(y){return y==='"'||y==="'"}s(w,"isQuote");function oe(y){return y===">"||k(y)}s(oe,"isAttribEnd");function ye(y,d){return y.test(d)}s(ye,"isMatch");function tt(y,d){return!ye(y,d)}s(tt,"notMatch");var x=0;e.STATE={BEGIN:x++,BEGIN_WHITESPACE:x++,TEXT:x++,TEXT_ENTITY:x++,OPEN_WAKA:x++,SGML_DECL:x++,SGML_DECL_QUOTED:x++,DOCTYPE:x++,DOCTYPE_QUOTED:x++,DOCTYPE_DTD:x++,DOCTYPE_DTD_QUOTED:x++,COMMENT_STARTING:x++,COMMENT:x++,COMMENT_ENDING:x++,COMMENT_ENDED:x++,CDATA:x++,CDATA_ENDING:x++,CDATA_ENDING_2:x++,PROC_INST:x++,PROC_INST_BODY:x++,PROC_INST_ENDING:x++,OPEN_TAG:x++,OPEN_TAG_SLASH:x++,ATTRIB:x++,ATTRIB_NAME:x++,ATTRIB_NAME_SAW_WHITE:x++,ATTRIB_VALUE:x++,ATTRIB_VALUE_QUOTED:x++,ATTRIB_VALUE_CLOSED:x++,ATTRIB_VALUE_UNQUOTED:x++,ATTRIB_VALUE_ENTITY_Q:x++,ATTRIB_VALUE_ENTITY_U:x++,CLOSE_TAG:x++,CLOSE_TAG_SAW_WHITE:x++,SCRIPT:x++,SCRIPT_ENDING:x++},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(y){var d=e.ENTITIES[y],A=typeof d=="number"?String.fromCharCode(d):d;e.ENTITIES[y]=A});for(var Qt in e.STATE)e.STATE[e.STATE[Qt]]=Qt;x=e.STATE;function pt(y,d,A){y[d]&&y[d](A)}s(pt,"emit");function Fe(y,d,A){y.textNode&&At(y),pt(y,d,A)}s(Fe,"emitNode");function At(y){y.textNode=Fi(y.opt,y.textNode),y.textNode&&pt(y,"ontext",y.textNode),y.textNode=""}s(At,"closeText");function Fi(y,d){return y.trim&&(d=d.trim()),y.normalize&&(d=d.replace(/\s+/g," ")),d}s(Fi,"textopts");function dt(y,d){return At(y),y.trackPosition&&(d+=`
|
|
21
21
|
Line: `+y.line+`
|
|
22
22
|
Column: `+y.column+`
|
|
23
23
|
Char: `+y.c),d=new Error(d),y.error=d,pt(y,"onerror",d),y}s(dt,"error");function pn(y){return y.sawRoot&&!y.closedRoot&&pe(y,"Unclosed root tag"),y.state!==x.BEGIN&&y.state!==x.BEGIN_WHITESPACE&&y.state!==x.TEXT&&dt(y,"Unexpected end"),At(y),y.c="",y.closed=!0,pt(y,"onend"),n.call(y,y.strict,y.opt),y}s(pn,"end");function pe(y,d){if(typeof y!="object"||!(y instanceof n))throw new Error("bad call to strictFail");y.strict&&dt(y,d)}s(pe,"strictFail");function zt(y){y.strict||(y.tagName=y.tagName[y.looseCase]());var d=y.tags[y.tags.length-1]||y,A=y.tag={name:y.tagName,attributes:{}};y.opt.xmlns&&(A.ns=d.ns),y.attribList.length=0,Fe(y,"onopentagstart",A)}s(zt,"newTag");function dn(y,d){var A=y.indexOf(":"),v=A<0?["",y]:y.split(":"),re=v[0],ve=v[1];return d&&y==="xmlns"&&(re="xmlns",ve=""),{prefix:re,local:ve}}s(dn,"qname");function qt(y){if(y.strict||(y.attribName=y.attribName[y.looseCase]()),y.attribList.indexOf(y.attribName)!==-1||y.tag.attributes.hasOwnProperty(y.attribName)){y.attribName=y.attribValue="";return}if(y.opt.xmlns){var d=dn(y.attribName,!0),A=d.prefix,v=d.local;if(A==="xmlns")if(v==="xml"&&y.attribValue!==h)pe(y,"xml: prefix must be bound to "+h+`
|
|
24
24
|
Actual: `+y.attribValue);else if(v==="xmlns"&&y.attribValue!==b)pe(y,"xmlns: prefix must be bound to "+b+`
|
|
25
|
-
Actual: `+y.attribValue);else{var re=y.tag,ve=y.tags[y.tags.length-1]||y;re.ns===ve.ns&&(re.ns=Object.create(ve.ns)),re.ns[v]=y.attribValue}y.attribList.push([y.attribName,y.attribValue])}else y.tag.attributes[y.attribName]=y.attribValue,Fe(y,"onattribute",{name:y.attribName,value:y.attribValue});y.attribName=y.attribValue=""}s(qt,"attrib");function It(y,d){if(y.opt.xmlns){var A=y.tag,v=dn(y.tagName);A.prefix=v.prefix,A.local=v.local,A.uri=A.ns[v.prefix]||"",A.prefix&&!A.uri&&(pe(y,"Unbound namespace prefix: "+JSON.stringify(y.tagName)),A.uri=v.prefix);var re=y.tags[y.tags.length-1]||y;A.ns&&re.ns!==A.ns&&Object.keys(A.ns).forEach(function(Di){Fe(y,"onopennamespace",{prefix:Di,uri:A.ns[Di]})});for(var ve=0,be=y.attribList.length;ve<be;ve++){var He=y.attribList[ve],Ze=He[0],Yt=He[1],Ke=dn(Ze,!0),Nt=Ke.prefix,
|
|
25
|
+
Actual: `+y.attribValue);else{var re=y.tag,ve=y.tags[y.tags.length-1]||y;re.ns===ve.ns&&(re.ns=Object.create(ve.ns)),re.ns[v]=y.attribValue}y.attribList.push([y.attribName,y.attribValue])}else y.tag.attributes[y.attribName]=y.attribValue,Fe(y,"onattribute",{name:y.attribName,value:y.attribValue});y.attribName=y.attribValue=""}s(qt,"attrib");function It(y,d){if(y.opt.xmlns){var A=y.tag,v=dn(y.tagName);A.prefix=v.prefix,A.local=v.local,A.uri=A.ns[v.prefix]||"",A.prefix&&!A.uri&&(pe(y,"Unbound namespace prefix: "+JSON.stringify(y.tagName)),A.uri=v.prefix);var re=y.tags[y.tags.length-1]||y;A.ns&&re.ns!==A.ns&&Object.keys(A.ns).forEach(function(Di){Fe(y,"onopennamespace",{prefix:Di,uri:A.ns[Di]})});for(var ve=0,be=y.attribList.length;ve<be;ve++){var He=y.attribList[ve],Ze=He[0],Yt=He[1],Ke=dn(Ze,!0),Nt=Ke.prefix,Ea=Ke.local,pr=Nt===""?"":A.ns[Nt]||"",Ni={name:Ze,value:Yt,prefix:Nt,local:Ea,uri:pr};Nt&&Nt!=="xmlns"&&!pr&&(pe(y,"Unbound namespace prefix: "+JSON.stringify(Nt)),Ni.uri=Nt),y.tag.attributes[Ze]=Ni,Fe(y,"onattribute",Ni)}y.attribList.length=0}y.tag.isSelfClosing=!!d,y.sawRoot=!0,y.tags.push(y.tag),Fe(y,"onopentag",y.tag),d||(!y.noscript&&y.tagName.toLowerCase()==="script"?y.state=x.SCRIPT:y.state=x.TEXT,y.tag=null,y.tagName=""),y.attribName=y.attribValue="",y.attribList.length=0}s(It,"openTag");function Ft(y){if(!y.tagName){pe(y,"Weird empty close tag."),y.textNode+="</>",y.state=x.TEXT;return}if(y.script){if(y.tagName!=="script"){y.script+="</"+y.tagName+">",y.tagName="",y.state=x.SCRIPT;return}Fe(y,"onscript",y.script),y.script=""}var d=y.tags.length,A=y.tagName;y.strict||(A=A[y.looseCase]());for(var v=A;d--;){var re=y.tags[d];if(re.name!==v)pe(y,"Unexpected close tag");else break}if(d<0){pe(y,"Unmatched closing tag: "+y.tagName),y.textNode+="</"+y.tagName+">",y.state=x.TEXT;return}y.tagName=A;for(var ve=y.tags.length;ve-- >d;){var be=y.tag=y.tags.pop();y.tagName=y.tag.name,Fe(y,"onclosetag",y.tagName);var He={};for(var Ze in be.ns)He[Ze]=be.ns[Ze];var Yt=y.tags[y.tags.length-1]||y;y.opt.xmlns&&be.ns!==Yt.ns&&Object.keys(be.ns).forEach(function(Ke){var Nt=be.ns[Ke];Fe(y,"onclosenamespace",{prefix:Ke,uri:Nt})})}d===0&&(y.closedRoot=!0),y.tagName=y.attribValue=y.attribName="",y.attribList.length=0,y.state=x.TEXT}s(Ft,"closeTag");function X(y){var d=y.entity,A=d.toLowerCase(),v,re="";return y.ENTITIES[d]?y.ENTITIES[d]:y.ENTITIES[A]?y.ENTITIES[A]:(d=A,d.charAt(0)==="#"&&(d.charAt(1)==="x"?(d=d.slice(2),v=parseInt(d,16),re=v.toString(16)):(d=d.slice(1),v=parseInt(d,10),re=v.toString(10))),d=d.replace(/^0+/,""),isNaN(v)||re.toLowerCase()!==d?(pe(y,"Invalid character entity"),"&"+y.entity+";"):String.fromCodePoint(v))}s(X,"parseEntity");function $t(y,d){d==="<"?(y.state=x.OPEN_WAKA,y.startTagPosition=y.position):k(d)||(pe(y,"Non-whitespace before first tag."),y.textNode=d,y.state=x.TEXT)}s($t,"beginWhiteSpace");function Xt(y,d){var A="";return d<y.length&&(A=y.charAt(d)),A}s(Xt,"charAt");function Oe(y){var d=this;if(this.error)throw this.error;if(d.closed)return dt(d,"Cannot write after close. Assign an onready handler.");if(y===null)return pn(d);typeof y=="object"&&(y=y.toString());for(var A=0,v="";v=Xt(y,A++),d.c=v,!!v;)switch(d.trackPosition&&(d.position++,v===`
|
|
26
26
|
`?(d.line++,d.column=0):d.column++),d.state){case x.BEGIN:if(d.state=x.BEGIN_WHITESPACE,v==="\uFEFF")continue;$t(d,v);continue;case x.BEGIN_WHITESPACE:$t(d,v);continue;case x.TEXT:if(d.sawRoot&&!d.closedRoot){for(var re=A-1;v&&v!=="<"&&v!=="&";)v=Xt(y,A++),v&&d.trackPosition&&(d.position++,v===`
|
|
27
|
-
`?(d.line++,d.column=0):d.column++);d.textNode+=y.substring(re,A-1)}v==="<"&&!(d.sawRoot&&d.closedRoot&&!d.strict)?(d.state=x.OPEN_WAKA,d.startTagPosition=d.position):(!k(v)&&(!d.sawRoot||d.closedRoot)&&pe(d,"Text data outside of root node."),v==="&"?d.state=x.TEXT_ENTITY:d.textNode+=v);continue;case x.SCRIPT:v==="<"?d.state=x.SCRIPT_ENDING:d.script+=v;continue;case x.SCRIPT_ENDING:v==="/"?d.state=x.CLOSE_TAG:(d.script+="<"+v,d.state=x.SCRIPT);continue;case x.OPEN_WAKA:if(v==="!")d.state=x.SGML_DECL,d.sgmlDecl="";else if(!k(v))if(ye(F,v))d.state=x.OPEN_TAG,d.tagName=v;else if(v==="/")d.state=x.CLOSE_TAG,d.tagName="";else if(v==="?")d.state=x.PROC_INST,d.procInstName=d.procInstBody="";else{if(pe(d,"Unencoded <"),d.startTagPosition+1<d.position){var ve=d.position-d.startTagPosition;v=new Array(ve).join(" ")+v}d.textNode+="<"+v,d.state=x.TEXT}continue;case x.SGML_DECL:(d.sgmlDecl+v).toUpperCase()===f?(Fe(d,"onopencdata"),d.state=x.CDATA,d.sgmlDecl="",d.cdata=""):d.sgmlDecl+v==="--"?(d.state=x.COMMENT,d.comment="",d.sgmlDecl=""):(d.sgmlDecl+v).toUpperCase()===p?(d.state=x.DOCTYPE,(d.doctype||d.sawRoot)&&pe(d,"Inappropriately located doctype declaration"),d.doctype="",d.sgmlDecl=""):v===">"?(Fe(d,"onsgmldeclaration",d.sgmlDecl),d.sgmlDecl="",d.state=x.TEXT):(w(v)&&(d.state=x.SGML_DECL_QUOTED),d.sgmlDecl+=v);continue;case x.SGML_DECL_QUOTED:v===d.q&&(d.state=x.SGML_DECL,d.q=""),d.sgmlDecl+=v;continue;case x.DOCTYPE:v===">"?(d.state=x.TEXT,Fe(d,"ondoctype",d.doctype),d.doctype=!0):(d.doctype+=v,v==="["?d.state=x.DOCTYPE_DTD:w(v)&&(d.state=x.DOCTYPE_QUOTED,d.q=v));continue;case x.DOCTYPE_QUOTED:d.doctype+=v,v===d.q&&(d.q="",d.state=x.DOCTYPE);continue;case x.DOCTYPE_DTD:d.doctype+=v,v==="]"?d.state=x.DOCTYPE:w(v)&&(d.state=x.DOCTYPE_DTD_QUOTED,d.q=v);continue;case x.DOCTYPE_DTD_QUOTED:d.doctype+=v,v===d.q&&(d.state=x.DOCTYPE_DTD,d.q="");continue;case x.COMMENT:v==="-"?d.state=x.COMMENT_ENDING:d.comment+=v;continue;case x.COMMENT_ENDING:v==="-"?(d.state=x.COMMENT_ENDED,d.comment=Fi(d.opt,d.comment),d.comment&&Fe(d,"oncomment",d.comment),d.comment=""):(d.comment+="-"+v,d.state=x.COMMENT);continue;case x.COMMENT_ENDED:v!==">"?(pe(d,"Malformed comment"),d.comment+="--"+v,d.state=x.COMMENT):d.state=x.TEXT;continue;case x.CDATA:v==="]"?d.state=x.CDATA_ENDING:d.cdata+=v;continue;case x.CDATA_ENDING:v==="]"?d.state=x.CDATA_ENDING_2:(d.cdata+="]"+v,d.state=x.CDATA);continue;case x.CDATA_ENDING_2:v===">"?(d.cdata&&Fe(d,"oncdata",d.cdata),Fe(d,"onclosecdata"),d.cdata="",d.state=x.TEXT):v==="]"?d.cdata+="]":(d.cdata+="]]"+v,d.state=x.CDATA);continue;case x.PROC_INST:v==="?"?d.state=x.PROC_INST_ENDING:k(v)?d.state=x.PROC_INST_BODY:d.procInstName+=v;continue;case x.PROC_INST_BODY:if(!d.procInstBody&&k(v))continue;v==="?"?d.state=x.PROC_INST_ENDING:d.procInstBody+=v;continue;case x.PROC_INST_ENDING:v===">"?(Fe(d,"onprocessinginstruction",{name:d.procInstName,body:d.procInstBody}),d.procInstName=d.procInstBody="",d.state=x.TEXT):(d.procInstBody+="?"+v,d.state=x.PROC_INST_BODY);continue;case x.OPEN_TAG:ye(N,v)?d.tagName+=v:(zt(d),v===">"?It(d):v==="/"?d.state=x.OPEN_TAG_SLASH:(k(v)||pe(d,"Invalid character in tag name"),d.state=x.ATTRIB));continue;case x.OPEN_TAG_SLASH:v===">"?(It(d,!0),Ft(d)):(pe(d,"Forward-slash in opening tag not followed by >"),d.state=x.ATTRIB);continue;case x.ATTRIB:if(k(v))continue;v===">"?It(d):v==="/"?d.state=x.OPEN_TAG_SLASH:ye(F,v)?(d.attribName=v,d.attribValue="",d.state=x.ATTRIB_NAME):pe(d,"Invalid attribute name");continue;case x.ATTRIB_NAME:v==="="?d.state=x.ATTRIB_VALUE:v===">"?(pe(d,"Attribute without value"),d.attribValue=d.attribName,qt(d),It(d)):k(v)?d.state=x.ATTRIB_NAME_SAW_WHITE:ye(N,v)?d.attribName+=v:pe(d,"Invalid attribute name");continue;case x.ATTRIB_NAME_SAW_WHITE:if(v==="=")d.state=x.ATTRIB_VALUE;else{if(k(v))continue;pe(d,"Attribute without value"),d.tag.attributes[d.attribName]="",d.attribValue="",Fe(d,"onattribute",{name:d.attribName,value:""}),d.attribName="",v===">"?It(d):ye(F,v)?(d.attribName=v,d.state=x.ATTRIB_NAME):(pe(d,"Invalid attribute name"),d.state=x.ATTRIB)}continue;case x.ATTRIB_VALUE:if(k(v))continue;w(v)?(d.q=v,d.state=x.ATTRIB_VALUE_QUOTED):(pe(d,"Unquoted attribute value"),d.state=x.ATTRIB_VALUE_UNQUOTED,d.attribValue=v);continue;case x.ATTRIB_VALUE_QUOTED:if(v!==d.q){v==="&"?d.state=x.ATTRIB_VALUE_ENTITY_Q:d.attribValue+=v;continue}qt(d),d.q="",d.state=x.ATTRIB_VALUE_CLOSED;continue;case x.ATTRIB_VALUE_CLOSED:k(v)?d.state=x.ATTRIB:v===">"?It(d):v==="/"?d.state=x.OPEN_TAG_SLASH:ye(F,v)?(pe(d,"No whitespace between attributes"),d.attribName=v,d.attribValue="",d.state=x.ATTRIB_NAME):pe(d,"Invalid attribute name");continue;case x.ATTRIB_VALUE_UNQUOTED:if(!oe(v)){v==="&"?d.state=x.ATTRIB_VALUE_ENTITY_U:d.attribValue+=v;continue}qt(d),v===">"?It(d):d.state=x.ATTRIB;continue;case x.CLOSE_TAG:if(d.tagName)v===">"?Ft(d):ye(N,v)?d.tagName+=v:d.script?(d.script+="</"+d.tagName,d.tagName="",d.state=x.SCRIPT):(k(v)||pe(d,"Invalid tagname in closing tag"),d.state=x.CLOSE_TAG_SAW_WHITE);else{if(k(v))continue;tt(F,v)?d.script?(d.script+="</"+v,d.state=x.SCRIPT):pe(d,"Invalid tagname in closing tag."):d.tagName=v}continue;case x.CLOSE_TAG_SAW_WHITE:if(k(v))continue;v===">"?Ft(d):pe(d,"Invalid characters in closing tag");continue;case x.TEXT_ENTITY:case x.ATTRIB_VALUE_ENTITY_Q:case x.ATTRIB_VALUE_ENTITY_U:var be,He;switch(d.state){case x.TEXT_ENTITY:be=x.TEXT,He="textNode";break;case x.ATTRIB_VALUE_ENTITY_Q:be=x.ATTRIB_VALUE_QUOTED,He="attribValue";break;case x.ATTRIB_VALUE_ENTITY_U:be=x.ATTRIB_VALUE_UNQUOTED,He="attribValue";break}if(v===";")if(d.opt.unparsedEntities){var Ze=X(d);d.entity="",d.state=be,d.write(Ze)}else d[He]+=X(d),d.entity="",d.state=be;else ye(d.entity.length?I:E,v)?d.entity+=v:(pe(d,"Invalid character in entity name"),d[He]+="&"+d.entity+v,d.entity="",d.state=be);continue;default:throw new Error(d,"Unknown state: "+d.state)}return d.position>=d.bufferCheckPosition&&i(d),d}s(Oe,"write");String.fromCodePoint||function(){var y=String.fromCharCode,d=Math.floor,A=s(function(){var v=16384,re=[],ve,be,He=-1,Ze=arguments.length;if(!Ze)return"";for(var Yt="";++He<Ze;){var Ke=Number(arguments[He]);if(!isFinite(Ke)||Ke<0||Ke>1114111||d(Ke)!==Ke)throw RangeError("Invalid code point: "+Ke);Ke<=65535?re.push(Ke):(Ke-=65536,ve=(Ke>>10)+55296,be=Ke%1024+56320,re.push(ve,be)),(He+1===Ze||re.length>v)&&(Yt+=y.apply(null,re),re.length=0)}return Yt},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:A,configurable:!0,writable:!0}):String.fromCodePoint=A}()})(typeof Ba>"u"?Ba.sax={}:Ba)});var Ua=xe((nE,Pp)=>{Pp.exports={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}});var Ga=xe((iE,Ep)=>{var rb=Ua().isArray;Ep.exports={copyOptions:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},ensureFlagExists:function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!rb(e.alwaysArray))&&(e.alwaysArray=!1)},ensureKeyExists:function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}});var ws=xe((rE,jp)=>{var ab=Sp(),ob={on:function(){},parse:function(){}},se=Ga(),Ri=Ua().isArray,P,_s=!0,Z;function sb(e){return P=se.copyOptions(e),se.ensureFlagExists("ignoreDeclaration",P),se.ensureFlagExists("ignoreInstruction",P),se.ensureFlagExists("ignoreAttributes",P),se.ensureFlagExists("ignoreText",P),se.ensureFlagExists("ignoreComment",P),se.ensureFlagExists("ignoreCdata",P),se.ensureFlagExists("ignoreDoctype",P),se.ensureFlagExists("compact",P),se.ensureFlagExists("alwaysChildren",P),se.ensureFlagExists("addParent",P),se.ensureFlagExists("trim",P),se.ensureFlagExists("nativeType",P),se.ensureFlagExists("nativeTypeAttributes",P),se.ensureFlagExists("sanitize",P),se.ensureFlagExists("instructionHasAttributes",P),se.ensureFlagExists("captureSpacesBetweenElements",P),se.ensureAlwaysArrayExists(P),se.ensureKeyExists("declaration",P),se.ensureKeyExists("instruction",P),se.ensureKeyExists("attributes",P),se.ensureKeyExists("text",P),se.ensureKeyExists("comment",P),se.ensureKeyExists("cdata",P),se.ensureKeyExists("doctype",P),se.ensureKeyExists("type",P),se.ensureKeyExists("name",P),se.ensureKeyExists("elements",P),se.ensureKeyExists("parent",P),se.checkFnExists("doctype",P),se.checkFnExists("instruction",P),se.checkFnExists("cdata",P),se.checkFnExists("comment",P),se.checkFnExists("text",P),se.checkFnExists("instructionName",P),se.checkFnExists("elementName",P),se.checkFnExists("attributeName",P),se.checkFnExists("attributeValue",P),se.checkFnExists("attributes",P),P}s(sb,"validateOptions");function Dp(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}s(Dp,"nativeType");function Tr(e,t){var n;if(P.compact){if(!Z[P[e+"Key"]]&&(Ri(P.alwaysArray)?P.alwaysArray.indexOf(P[e+"Key"])!==-1:P.alwaysArray)&&(Z[P[e+"Key"]]=[]),Z[P[e+"Key"]]&&!Ri(Z[P[e+"Key"]])&&(Z[P[e+"Key"]]=[Z[P[e+"Key"]]]),e+"Fn"in P&&typeof t=="string"&&(t=P[e+"Fn"](t,Z)),e==="instruction"&&("instructionFn"in P||"instructionNameFn"in P)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in P)t[n]=P.instructionFn(t[n],n,Z);else{var i=t[n];delete t[n],t[P.instructionNameFn(n,i,Z)]=i}}Ri(Z[P[e+"Key"]])?Z[P[e+"Key"]].push(t):Z[P[e+"Key"]]=t}else{Z[P.elementsKey]||(Z[P.elementsKey]=[]);var r={};if(r[P.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[P.nameKey]="instructionNameFn"in P?P.instructionNameFn(n,t,Z):n,P.instructionHasAttributes?(r[P.attributesKey]=t[n][P.attributesKey],"instructionFn"in P&&(r[P.attributesKey]=P.instructionFn(r[P.attributesKey],n,Z))):("instructionFn"in P&&(t[n]=P.instructionFn(t[n],n,Z)),r[P.instructionKey]=t[n])}else e+"Fn"in P&&(t=P[e+"Fn"](t,Z)),r[P[e+"Key"]]=t;P.addParent&&(r[P.parentKey]=Z),Z[P.elementsKey].push(r)}}s(Tr,"addField");function Lp(e){if("attributesFn"in P&&e&&(e=P.attributesFn(e,Z)),(P.trim||"attributeValueFn"in P||"attributeNameFn"in P||P.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(P.trim&&(e[t]=e[t].trim()),P.nativeTypeAttributes&&(e[t]=Dp(e[t])),"attributeValueFn"in P&&(e[t]=P.attributeValueFn(e[t],t,Z)),"attributeNameFn"in P)){var n=e[t];delete e[t],e[P.attributeNameFn(t,e[t],Z)]=n}}return e}s(Lp,"manipulateAttributes");function lb(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||P.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=Lp(t)}if(e.name.toLowerCase()==="xml"){if(P.ignoreDeclaration)return;Z[P.declarationKey]={},Object.keys(t).length&&(Z[P.declarationKey][P.attributesKey]=t),P.addParent&&(Z[P.declarationKey][P.parentKey]=Z)}else{if(P.ignoreInstruction)return;P.trim&&(e.body=e.body.trim());var r={};P.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][P.attributesKey]=t):r[e.name]=e.body,Tr("instruction",r)}}s(lb,"onInstruction");function Op(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=Lp(t),"elementNameFn"in P&&(e=P.elementNameFn(e,Z)),P.compact){if(n={},!P.ignoreAttributes&&t&&Object.keys(t).length){n[P.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[P.attributesKey][i]=t[i])}!(e in Z)&&(Ri(P.alwaysArray)?P.alwaysArray.indexOf(e)!==-1:P.alwaysArray)&&(Z[e]=[]),Z[e]&&!Ri(Z[e])&&(Z[e]=[Z[e]]),Ri(Z[e])?Z[e].push(n):Z[e]=n}else Z[P.elementsKey]||(Z[P.elementsKey]=[]),n={},n[P.typeKey]="element",n[P.nameKey]=e,!P.ignoreAttributes&&t&&Object.keys(t).length&&(n[P.attributesKey]=t),P.alwaysChildren&&(n[P.elementsKey]=[]),Z[P.elementsKey].push(n);n[P.parentKey]=Z,Z=n}s(Op,"onStartElement");function Ap(e){P.ignoreText||!e.trim()&&!P.captureSpacesBetweenElements||(P.trim&&(e=e.trim()),P.nativeType&&(e=Dp(e)),P.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),Tr("text",e))}s(Ap,"onText");function Ip(e){P.ignoreComment||(P.trim&&(e=e.trim()),Tr("comment",e))}s(Ip,"onComment");function Fp(e){var t=Z[P.parentKey];P.addParent||delete Z[P.parentKey],Z=t}s(Fp,"onEndElement");function cb(e){P.ignoreCdata||(P.trim&&(e=e.trim()),Tr("cdata",e))}s(cb,"onCdata");function fb(e){P.ignoreDoctype||(e=e.replace(/^ /,""),P.trim&&(e=e.trim()),Tr("doctype",e))}s(fb,"onDoctype");function Np(e){e.note=e}s(Np,"onError");jp.exports=function(e,t){var n=_s?ab.parser(!0,{}):n=new ob.Parser("UTF-8"),i={};if(Z=i,P=sb(t),_s?(n.opt={strictEntities:!0},n.onopentag=Op,n.ontext=Ap,n.oncomment=Ip,n.onclosetag=Fp,n.onerror=Np,n.oncdata=cb,n.ondoctype=fb,n.onprocessinginstruction=lb):(n.on("startElement",Op),n.on("text",Ap),n.on("comment",Ip),n.on("endElement",Fp),n.on("error",Np)),_s)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[P.elementsKey]){var r=i[P.elementsKey];delete i[P.elementsKey],i[P.elementsKey]=r,delete i.text}return i}});var wp=xe((oE,_p)=>{var Vp=Ga(),ub=ws();function pb(e){var t=Vp.copyOptions(e);return Vp.ensureSpacesExists(t),t}s(pb,"validateOptions");_p.exports=function(e,t){var n,i,r,a;return n=pb(t),i=ub(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?r=JSON.stringify(i,function(o,l){return o===a?"_":l},n.spaces):r=JSON.stringify(i,null,n.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var $s=xe((lE,Kp)=>{var ce=Ga(),db=Ua().isArray,it,rt;function gb(e){var t=ce.copyOptions(e);return ce.ensureFlagExists("ignoreDeclaration",t),ce.ensureFlagExists("ignoreInstruction",t),ce.ensureFlagExists("ignoreAttributes",t),ce.ensureFlagExists("ignoreText",t),ce.ensureFlagExists("ignoreComment",t),ce.ensureFlagExists("ignoreCdata",t),ce.ensureFlagExists("ignoreDoctype",t),ce.ensureFlagExists("compact",t),ce.ensureFlagExists("indentText",t),ce.ensureFlagExists("indentCdata",t),ce.ensureFlagExists("indentAttributes",t),ce.ensureFlagExists("indentInstruction",t),ce.ensureFlagExists("fullTagEmptyElement",t),ce.ensureFlagExists("noQuotesForNativeAttributes",t),ce.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),ce.ensureKeyExists("declaration",t),ce.ensureKeyExists("instruction",t),ce.ensureKeyExists("attributes",t),ce.ensureKeyExists("text",t),ce.ensureKeyExists("comment",t),ce.ensureKeyExists("cdata",t),ce.ensureKeyExists("doctype",t),ce.ensureKeyExists("type",t),ce.ensureKeyExists("name",t),ce.ensureKeyExists("elements",t),ce.checkFnExists("doctype",t),ce.checkFnExists("instruction",t),ce.checkFnExists("cdata",t),ce.checkFnExists("comment",t),ce.checkFnExists("text",t),ce.checkFnExists("instructionName",t),ce.checkFnExists("elementName",t),ce.checkFnExists("attributeName",t),ce.checkFnExists("attributeValue",t),ce.checkFnExists("attributes",t),ce.checkFnExists("fullTagEmptyElement",t),t}s(gb,"validateOptions");function nn(e,t,n){return(!n&&e.spaces?`
|
|
28
|
-
`:"")+Array(t+1).join(e.spaces)}s(nn,"writeIndentation");function
|
|
29
|
-
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}s(yb,"writeElement");function Up(e,t,n,i){return e.reduce(function(r,a){var o=nn(t,n,i&&!r);switch(a.type){case"element":return r+o+yb(a,t,n);case"comment":return r+o+Mp(a[t.commentKey],t);case"doctype":return r+o+Bp(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?o:"")+kp(a[t.cdataKey],t);case"text":return r+(t.indentText?o:"")+Rs(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?o:"")+$p(l,t,n)}},"")}s(Up,"writeElements");function Gp(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}s(Gp,"hasContentCompact");function hb(e,t,n,i,r){it=e,rt=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 o=[];if(t){if(o.push("<"+a),typeof e!="object")return o.push(">"+Rs(e,n)+"</"+a+">"),o.join("");e[n.attributesKey]&&o.push(Ha(e[n.attributesKey],n,i));var l=Gp(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)o.push(">");else return o.push("/>"),o.join("")}return o.push(Hp(e,n,i+1,!1)),it=e,rt=t,t&&o.push((r?nn(n,i,!1):"")+"</"+a+">"),o.join("")}s(hb,"writeElementCompact");function Hp(e,t,n,i){var r,a,o,l=[];for(a in e)if(e.hasOwnProperty(a))for(o=db(e[a])?e[a]:[e[a]],r=0;r<o.length;++r){switch(a){case t.declarationKey:l.push(Rp(o[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?nn(t,n,i):"")+$p(o[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?nn(t,n,i):"")+Rs(o[r],t));break;case t.cdataKey:l.push((t.indentCdata?nn(t,n,i):"")+kp(o[r],t));break;case t.doctypeKey:l.push(nn(t,n,i)+Bp(o[r],t));break;case t.commentKey:l.push(nn(t,n,i)+Mp(o[r],t));break;default:l.push(nn(t,n,i)+hb(o[r],a,t,n,Gp(o[r],t)))}i=i&&!l.length}return l.join("")}s(Hp,"writeElementsCompact");Kp.exports=function(e,t){t=gb(t);var n=[];return it=e,rt="_root_",t.compact?n.push(Hp(e,t,0,!0)):(e[t.declarationKey]&&n.push(Rp(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(Up(e[t.elementsKey],t,0,!n.length))),n.join("")}});var Jp=xe((fE,Wp)=>{var bb=$s();Wp.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 bb(n,t)}});var xr=xe((uE,Qp)=>{var vb=ws(),Tb=wp(),xb=$s(),Cb=Jp();Qp.exports={xml2js:vb,xml2json:Tb,js2xml:xb,json2xml:Cb}});var ed=xe(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.convertEntityTypeAnnotations=mt.convertPropertyAnnotations=mt.convertNavigationPropertyAnnotations=mt.convertEntitySetAnnotations=mt.convertGenericAnnotations=mt.convertV2Annotations=void 0;function Sb(e,t,n){let i=[];switch(t){case"EntitySet":qp(e,i);break;case"EntityType":Zp(e,i);break;case"NavigationProperty":Xp(e,n,i);break;case"Property":Yp(e,n,i);break;case"Singleton":break;default:break}return zp(e,n,i),i}s(Sb,"convertV2Annotations");mt.convertV2Annotations=Sb;function zp(e,t,n){function i(r,a){r&&n.push(a)}if(s(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}]}})}s(zp,"convertGenericAnnotations");mt.convertGenericAnnotations=zp;function qp(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"]}}]}})}s(qp,"convertEntitySetAnnotations");mt.convertEntitySetAnnotations=qp;function Xp(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}}]}}}]}]}}]}})}s(Xp,"convertNavigationPropertyAnnotations");mt.convertNavigationPropertyAnnotations=Xp;function Yp(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}]}}]}})}s(Yp,"convertPropertyAnnotations");mt.convertPropertyAnnotations=Yp;function Zp(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:[]}}]}})}s(Zp,"convertEntityTypeAnnotations");mt.convertEntityTypeAnnotations=Zp});var ld=xe(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.parse=void 0;var Pb=xr(),te=Vs(),Cr=ed(),id=/^Collection\((.+)\)$/;function Eb(e){return e.Type!==null&&e.Type!==void 0}s(Eb,"isV4NavProperty");function Ob(e){return e.map(t=>t._attributes.Name)}s(Ob,"getEntityTypeKeys");function rd(e,t,n,i){return e.reduce((r,a)=>{let o={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:$i(a._attributes.Type).type};if(a._attributes.MaxLength&&(o.maxLength=parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(o.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(o.scale=parseInt(a._attributes.Scale,10)),a._attributes.Nullable&&(o.nullable=a._attributes.Nullable!=="false"),a._attributes.DefaultValue)switch(o.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":o.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":o.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":o.defaultValue=a._attributes.DefaultValue==="true";break;default:o.defaultValue=a._attributes.DefaultValue;break}r.entityProperties.push(o),t.indexOf(o.name)!==-1&&r.entityKeys.push(o);let l=(0,Cr.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(ai(o.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}s(rd,"parseProperties");function Ab(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}s(Ab,"parseReferentialConstraint");function Ib(e,t){return e.reduce((n,i)=>{let r=t.find(o=>o.role===i.Principal._attributes.Role),a=t.find(o=>o.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let o=(0,te.ensureArray)(i.Principal.PropertyRef),l=(0,te.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(c=>c.role===i.Dependent._attributes.Role),l=o,o=(0,te.ensureArray)(i.Dependent.PropertyRef));for(let c of o){let u=o.indexOf(c);n.push({sourceTypeName:r.type,sourceProperty:c._attributes.Name,targetTypeName:a.type,targetProperty:l[u]._attributes.Name})}}return n},[])}s(Ib,"parseV2ReferentialConstraint");function ad(e,t,n,i){return e.reduce((r,a)=>{let o=a._attributes;if(Eb(o)){let l=o.Type.match(id),c=l!==null,u=rn(l?l[1]:o.Type);r.push({_type:"NavigationProperty",name:o.Name,fullyQualifiedName:`${n}/${o.Name}`,partner:o.Partner,containsTarget:o.ContainsTarget==="true",isCollection:c,targetTypeName:u,referentialConstraint:Ab((0,te.ensureArray)(a.ReferentialConstraint),t._attributes.Name,u)})}else{let{Relationship:l,ToRole:c,FromRole:u}=o;r.push({_type:"NavigationProperty",name:o.Name,fullyQualifiedName:`${n}/${o.Name}`,relationship:l,toRole:c,fromRole:u});let f=(0,Cr.convertV2Annotations)(o,"NavigationProperty",o.Name);f.length>0&&i.push(ai(`${n}/${o.Name}`,f))}return r},[])}s(ad,"parseNavigationProperties");function Fb(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,te.ensureArray)(i.End).map(o=>({entitySet:`${t}.${n._attributes.Name}/${o._attributes.EntitySet}`,role:o._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}s(Fb,"parseAssociationSets");function Nb(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,te.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:Ib((0,te.ensureArray)(n.ReferentialConstraint),r)}})}s(Nb,"parseAssociations");function Db(e,t,n){return e.reduce((i,r)=>{let a=r.Key?Ob((0,te.ensureArray)(r.Key.PropertyRef)):[],o=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:c}=rd((0,te.ensureArray)(r.Property),a,o,t),u=ad((0,te.ensureArray)(r.NavigationProperty),r,o,t),f={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:o,keys:c,entityProperties:l,actions:{},navigationProperties:u},p=(0,Cr.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return p.length>0&&t.push(ai(f.fullyQualifiedName,p)),i.push(f),i},[])}s(Db,"parseEntityTypes");function Lb(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:o}=rd((0,te.ensureArray)(r.Property),[],a,t),l=ad((0,te.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:o,navigationProperties:l}),i},[])}s(Lb,"parseComplexTypes");function jb(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},[])}s(jb,"parseTypeDefinitions");function Vb(e,t,n,i){return e.map(a=>{let o=Object.fromEntries((0,te.ensureArray)(a.NavigationPropertyBinding).map(u=>[u._attributes.Path,`${t}.${n}/${u._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:rn(a._attributes.EntityType),navigationPropertyBinding:o,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},c=(0,Cr.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return c.length>0&&i.push(ai(l.fullyQualifiedName,c)),l})}s(Vb,"parseEntitySets");function _b(e,t,n,i){return e.map(a=>{let o=Object.fromEntries((0,te.ensureArray)(a.NavigationPropertyBinding).map(u=>[u._attributes.Path,`${t}.${n}/${u._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:rn(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:o,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},c=(0,Cr.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return c.length>0&&i.push(ai(l.fullyQualifiedName,c)),l})}s(_b,"parseSingletons");function td(e,t,n){return e.map(i=>{let r=(0,te.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",o;n?o=r.map(c=>$i(c._attributes.Type).type).join(","):o=a?$i(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${o})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?$i(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(c=>{let{isCollection:u,type:f}=$i(c._attributes.Type),p={_type:"ActionParameter",fullyQualifiedName:`${l}/${c._attributes.Name}`,name:`${c._attributes.Name}`,type:f,isCollection:u};return c._attributes.MaxLength&&(p.maxLength=parseInt(c._attributes.MaxLength,10)),c._attributes.Precision&&(p.precision=parseInt(c._attributes.Precision,10)),c._attributes.Scale&&(p.scale=parseInt(c._attributes.Scale,10)),c._attributes.Nullable&&(p.nullable=c._attributes.Nullable!=="false"),p}),returnType:i.ReturnType?$i(i.ReturnType._attributes.Type).type:""}})}s(td,"parseActions");function wb(e,t,n){return e.map(i=>{let r=t.find(o=>o.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,te.ensureArray)(i.Parameter).map(o=>({_type:"ActionParameter",name:o._attributes.Name,fullyQualifiedName:`${a}/${o._attributes.Name}`,type:o._attributes.Type,isCollection:o._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:""}})}s(wb,"parseV2FunctionImport");function nd(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:rn(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:rn(r)}})}s(nd,"parseActionImports");function Rb(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...o}=i,l={};if(a){let c=Object.keys(a).find(f=>f!=="Property");l.name=a.Property;let u=`${t}/${l.name}`;if(o&&Object.keys(o).length>0?l.value=sd(o,u,n):c&&(l.value=od({[c]:a[c]},u,n)),i.Annotation){let f=Ja((0,te.ensureArray)(i.Annotation),u,n);f&&f.length>0&&n.push(ai(u,f))}}return l})}s(Rb,"parsePropertyValues");function Wa(e,t,n){let i=Ja((0,te.ensureArray)(e.Annotation),t,n),r={type:e._attributes?rn(e._attributes.Type):void 0,propertyValues:Rb((0,te.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}s(Wa,"parseRecord");function bn(e,t){return e[t]!=null}s(bn,"isExpressionOfType");function Ka(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}}}s(Ka,"parseModelPath");function ks(e,t,n){if(bn(e,"Record")){let i=(0,te.ensureArray)(e.Record).map((r,a)=>Wa(r,t+"/"+a,n));return i.type="Record",i}else if(bn(e,"PropertyPath")){let i=(0,te.ensureArray)(e.PropertyPath).map(r=>Ka(r,"PropertyPath"));return i.type="PropertyPath",i}else if(bn(e,"NavigationPropertyPath")){let i=(0,te.ensureArray)(e.NavigationPropertyPath).map(r=>Ka(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(bn(e,"String")){let i=(0,te.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(bn(e,"AnnotationPath")){let i=(0,te.ensureArray)(e.AnnotationPath).map(r=>Ka(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(bn(e,"Path")){let i=(0,te.ensureArray)(e.Path).map(r=>Ka(r,"Path"));return i.type="Path",i}else if(bn(e,"If")){let i=(0,te.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[]}s(ks,"parseCollection");function od(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"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:ks(e.Collection,t,n)};case"Record":return{type:"Record",Record:Wa(e.Record,t,n)};case"Apply":return{type:"Apply",Apply:e.Apply};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}s(od,"parseInlineExpression");function sd(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]._text};case"Bool":return{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal._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[r]._text};case"Collection":return{type:"Collection",Collection:ks(e.Collection,t,n)};case"Record":return{type:"Record",Record:Wa(e.Record,t,n)};case"Apply":return{type:"Apply",Apply:e.Apply};case"Null":return{type:"Null"};default:return console.error("Unsupported expression type "+r),{type:"Unknown"}}}s(sd,"parseExpression");function $b(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,o={term:rn(i),qualifier:r},l=`${t}@${rn(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(o.value=od(a,l,n)),e.Annotation){let u=Ja((0,te.ensureArray)(e.Annotation),l,n);u&&u.length>0&&(o.annotations=u)}let c=Object.keys(e).filter(u=>u!=="_attributes"&&u!=="Annotation");return bn(e,"Record")?o.record=Wa(e.Record,l,n):bn(e,"Collection")?o.collection=ks(e.Collection,l,n):c.length===1?o.value=sd({[c[0]]:e[c[0]]},l,n):c.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),o}s($b,"parseAnnotation");function Ja(e,t,n){return e.map(i=>$b(i,t,n))}s(Ja,"parseAnnotations");function ai(e,t){return{target:e,annotations:t}}s(ai,"createAnnotationList");function Mb(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(ai(rn(n._attributes.Target),Ja((0,te.ensureArray)(n.Annotation),n._attributes.Target,t)))})}s(Mb,"parseAnnotationLists");function kb(e,t,n){let i=e._attributes.Namespace,r=[],a=Db((0,te.ensureArray)(e.EntityType),r,i),o=Lb((0,te.ensureArray)(e.ComplexType),r,i),l=jb((0,te.ensureArray)(e.TypeDefinition),i),c=[],u=[],f=[],p={_type:"EntityContainer",fullyQualifiedName:""},h=[],b=[];if(e.EntityContainer)if(c=Vb((0,te.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),u=_b((0,te.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),f=Fb((0,te.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),p={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")h=h.concat(wb((0,te.ensureArray)(e.EntityContainer.FunctionImport),c,p.fullyQualifiedName));else if(t==="4.0")b=b.concat(nd((0,te.ensureArray)(e.EntityContainer.FunctionImport),p.fullyQualifiedName)),b=b.concat(nd((0,te.ensureArray)(e.EntityContainer.ActionImport),p.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(h=h.concat(td((0,te.ensureArray)(e.Action),i,!1)),h=h.concat(td((0,te.ensureArray)(e.Function),i,!0)));let C=Nb((0,te.ensureArray)(e.Association),i);Mb((0,te.ensureArray)(e.Annotations),r);let F={};return F[n]=r,{associations:C,associationSets:f,annotations:F,entityContainer:p,namespace:i,entitySets:c,singletons:u,complexTypes:o,typeDefinitions:l,actions:h,actionImports:b,entityTypes:a}}s(kb,"parseSchema");function Bb(e){return e.reduce((t,n)=>((0,te.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}s(Bb,"parseReferences");var Ms={};function $i(e){let t=e.match(id),n=t?t[1]:e,i=rn(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}s($i,"unaliasType");function rn(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let a=0,o=!0;a<e.length;a++){let l=e[a];if(o&&l==="."){let c=e.substring(r,a);i.push((t=Ms[c])!==null&&t!==void 0?t:c),r=a,o=!1}n.includes(l)&&(i.push(e.substring(r,a+1)),r=a+1,o=!0)}return i.push(e.substring(r)),i.join("")}s(rn,"unalias");function Ub(e){let t=e.reduce((b,C)=>b.concat(C.associations),[]),n=e.reduce((b,C)=>b.concat(C.associationSets),[]),i=e.reduce((b,C)=>b.concat(C.entitySets),[]),r=e.reduce((b,C)=>b.concat(C.singletons),[]),a=e.reduce((b,C)=>b.concat(C.entityTypes),[]),o=e.reduce((b,C)=>b.concat(C.actions),[]),l=e.reduce((b,C)=>b.concat(C.actionImports),[]),c=e.reduce((b,C)=>b.concat(C.complexTypes),[]),u=e.reduce((b,C)=>b.concat(C.typeDefinitions),[]),f={};e.forEach(b=>{f=Object.assign(f,b.annotations)});let p,h;return e.forEach(b=>{b.entityContainer&&Object.keys(b.entityContainer).length>0&&(p=b.entityContainer,h=b.namespace)}),i.forEach(b=>{let C=a.find(F=>F.fullyQualifiedName===b.entityTypeName);C==null||C.navigationProperties.forEach(F=>{let N=F,E=n.find(I=>I.association===N.relationship);if(E){let I=E.associationEnd.find(k=>k.entitySet!==b.fullyQualifiedName);I&&(b.navigationPropertyBinding[F.name]=I.entitySet)}})}),a.forEach(b=>{b.navigationProperties.forEach(C=>{let F=C,N=t.find(E=>E.fullyQualifiedName===F.relationship);N&&N.referentialConstraints&&N.referentialConstraints.length>0&&(N.referentialConstraints[0].sourceTypeName===b.fullyQualifiedName?F.referentialConstraint=N.referentialConstraints:F.referentialConstraint=N.referentialConstraints.map(E=>({sourceTypeName:E.targetTypeName,sourceProperty:E.targetProperty,targetTypeName:E.sourceTypeName,targetProperty:E.sourceProperty})))})}),{associations:t,associationSets:n,annotations:f,entityContainer:p,namespace:h,entitySets:i,singletons:r,complexTypes:c,typeDefinitions:u,actions:o,actionImports:l,entityTypes:a}}s(Ub,"mergeSchemas");function Gb(e,t){Ms=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{Ms[n._attributes.Alias]=n._attributes.Namespace})}s(Gb,"createAliasMap");function Hb(e,t="serviceFile"){let n=(0,Pb.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,te.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=Bb((0,te.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));Gb(a,r);let o=r.map(c=>kb(c,i,t));return new te.RawMetadataInstance(t,i,Ub(o),a)}s(Hb,"parse");Qa.parse=Hb});var cd=xe(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.parse=Mi.merge=void 0;var Kb=Cp();Object.defineProperty(Mi,"merge",{enumerable:!0,get:function(){return Kb.merge}});var Wb=ld();Object.defineProperty(Mi,"parse",{enumerable:!0,get:function(){return Wb.parse}})});var Pd=xe(()=>{var Sd;(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(c,u){return function(f,p){Object.defineProperty(c,f,{configurable:!0,writable:!0,value:p}),u&&u(f,p)}}s(r,"makeExporter");function a(){try{return Function("return this;")()}catch{}}s(a,"functionThis");function o(){try{return(0,eval)("(function() { return this; })()")}catch{}}s(o,"indirectEvalThis");function l(){return a()||o()}s(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",o=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",c={__proto__:[]}instanceof Array,u=!l&&!c,f={create:l?function(){return us(Object.create(null))}:c?function(){return us({__proto__:null})}:function(){return us({})},has:u?function(T,S){return i.call(T,S)}:function(T,S){return S in T},get:u?function(T,S){return i.call(T,S)?T[S]:void 0}:function(T,S){return T[S]}},p=Object.getPrototypeOf(Function),h=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Om(),b=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Am(),C=typeof WeakMap=="function"?WeakMap:Im(),F=r?Symbol.for("@reflect-metadata:registry"):void 0,N=Sm(),E=Pm(N);function I(T,S,O,j){if(X(O)){if(!ve(T))throw new TypeError;if(!He(S))throw new TypeError;return At(T,S)}else{if(!ve(T))throw new TypeError;if(!Oe(S))throw new TypeError;if(!Oe(j)&&!X(j)&&!$t(j))throw new TypeError;return $t(j)&&(j=void 0),O=re(O),Fi(T,S,O,j)}}s(I,"decorate"),t("decorate",I);function k(T,S){function O(j,z){if(!Oe(j))throw new TypeError;if(!X(z)&&!Ze(z))throw new TypeError;dn(T,S,j,z)}return s(O,"decorator"),O}s(k,"metadata"),t("metadata",k);function w(T,S,O,j){if(!Oe(O))throw new TypeError;return X(j)||(j=re(j)),dn(T,S,O,j)}s(w,"defineMetadata"),t("defineMetadata",w);function oe(T,S,O){if(!Oe(S))throw new TypeError;return X(O)||(O=re(O)),dt(T,S,O)}s(oe,"hasMetadata"),t("hasMetadata",oe);function ye(T,S,O){if(!Oe(S))throw new TypeError;return X(O)||(O=re(O)),pn(T,S,O)}s(ye,"hasOwnMetadata"),t("hasOwnMetadata",ye);function tt(T,S,O){if(!Oe(S))throw new TypeError;return X(O)||(O=re(O)),pe(T,S,O)}s(tt,"getMetadata"),t("getMetadata",tt);function x(T,S,O){if(!Oe(S))throw new TypeError;return X(O)||(O=re(O)),zt(T,S,O)}s(x,"getOwnMetadata"),t("getOwnMetadata",x);function Qt(T,S){if(!Oe(T))throw new TypeError;return X(S)||(S=re(S)),qt(T,S)}s(Qt,"getMetadataKeys"),t("getMetadataKeys",Qt);function pt(T,S){if(!Oe(T))throw new TypeError;return X(S)||(S=re(S)),It(T,S)}s(pt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",pt);function Fe(T,S,O){if(!Oe(S))throw new TypeError;if(X(O)||(O=re(O)),!Oe(S))throw new TypeError;X(O)||(O=re(O));var j=dr(S,O,!1);return X(j)?!1:j.OrdinaryDeleteMetadata(T,S,O)}s(Fe,"deleteMetadata"),t("deleteMetadata",Fe);function At(T,S){for(var O=T.length-1;O>=0;--O){var j=T[O],z=j(S);if(!X(z)&&!$t(z)){if(!He(z))throw new TypeError;S=z}}return S}s(At,"DecorateConstructor");function Fi(T,S,O,j){for(var z=T.length-1;z>=0;--z){var ke=T[z],We=ke(S,O,j);if(!X(We)&&!$t(We)){if(!Oe(We))throw new TypeError;j=We}}return j}s(Fi,"DecorateProperty");function dt(T,S,O){var j=pn(T,S,O);if(j)return!0;var z=Di(S);return $t(z)?!1:dt(T,z,O)}s(dt,"OrdinaryHasMetadata");function pn(T,S,O){var j=dr(S,O,!1);return X(j)?!1:A(j.OrdinaryHasOwnMetadata(T,S,O))}s(pn,"OrdinaryHasOwnMetadata");function pe(T,S,O){var j=pn(T,S,O);if(j)return zt(T,S,O);var z=Di(S);if(!$t(z))return pe(T,z,O)}s(pe,"OrdinaryGetMetadata");function zt(T,S,O){var j=dr(S,O,!1);if(!X(j))return j.OrdinaryGetOwnMetadata(T,S,O)}s(zt,"OrdinaryGetOwnMetadata");function dn(T,S,O,j){var z=dr(O,j,!0);z.OrdinaryDefineOwnMetadata(T,S,O,j)}s(dn,"OrdinaryDefineOwnMetadata");function qt(T,S){var O=It(T,S),j=Di(T);if(j===null)return O;var z=qt(j,S);if(z.length<=0)return O;if(O.length<=0)return z;for(var ke=new b,We=[],le=0,M=O;le<M.length;le++){var W=M[le],G=ke.has(W);G||(ke.add(W),We.push(W))}for(var J=0,de=z;J<de.length;J++){var W=de[J],G=ke.has(W);G||(ke.add(W),We.push(W))}return We}s(qt,"OrdinaryMetadataKeys");function It(T,S){var O=dr(T,S,!1);return O?O.OrdinaryOwnMetadataKeys(T,S):[]}s(It,"OrdinaryOwnMetadataKeys");function Ft(T){if(T===null)return 1;switch(typeof T){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return T===null?1:6;default:return 6}}s(Ft,"Type");function X(T){return T===void 0}s(X,"IsUndefined");function $t(T){return T===null}s($t,"IsNull");function Xt(T){return typeof T=="symbol"}s(Xt,"IsSymbol");function Oe(T){return typeof T=="object"?T!==null:typeof T=="function"}s(Oe,"IsObject");function y(T,S){switch(Ft(T)){case 0:return T;case 1:return T;case 2:return T;case 3:return T;case 4:return T;case 5:return T}var O=S===3?"string":S===5?"number":"default",j=Ke(T,a);if(j!==void 0){var z=j.call(T,O);if(Oe(z))throw new TypeError;return z}return d(T,O==="default"?"number":O)}s(y,"ToPrimitive");function d(T,S){if(S==="string"){var O=T.toString;if(be(O)){var j=O.call(T);if(!Oe(j))return j}var z=T.valueOf;if(be(z)){var j=z.call(T);if(!Oe(j))return j}}else{var z=T.valueOf;if(be(z)){var j=z.call(T);if(!Oe(j))return j}var ke=T.toString;if(be(ke)){var j=ke.call(T);if(!Oe(j))return j}}throw new TypeError}s(d,"OrdinaryToPrimitive");function A(T){return!!T}s(A,"ToBoolean");function v(T){return""+T}s(v,"ToString");function re(T){var S=y(T,3);return Xt(S)?S:v(S)}s(re,"ToPropertyKey");function ve(T){return Array.isArray?Array.isArray(T):T instanceof Object?T instanceof Array:Object.prototype.toString.call(T)==="[object Array]"}s(ve,"IsArray");function be(T){return typeof T=="function"}s(be,"IsCallable");function He(T){return typeof T=="function"}s(He,"IsConstructor");function Ze(T){switch(Ft(T)){case 3:return!0;case 4:return!0;default:return!1}}s(Ze,"IsPropertyKey");function Yt(T,S){return T===S||T!==T&&S!==S}s(Yt,"SameValueZero");function Ke(T,S){var O=T[S];if(O!=null){if(!be(O))throw new TypeError;return O}}s(Ke,"GetMethod");function Nt(T){var S=Ke(T,o);if(!be(S))throw new TypeError;var O=S.call(T);if(!Oe(O))throw new TypeError;return O}s(Nt,"GetIterator");function Pa(T){return T.value}s(Pa,"IteratorValue");function pr(T){var S=T.next();return S.done?!1:S}s(pr,"IteratorStep");function Ni(T){var S=T.return;S&&S.call(T)}s(Ni,"IteratorClose");function Di(T){var S=Object.getPrototypeOf(T);if(typeof T!="function"||T===p||S!==p)return S;var O=T.prototype,j=O&&Object.getPrototypeOf(O);if(j==null||j===Object.prototype)return S;var z=j.constructor;return typeof z!="function"||z===T?S:z}s(Di,"OrdinaryGetPrototypeOf");function Cm(){var T;!X(F)&&typeof n.Reflect<"u"&&!(F in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(T=Em(n.Reflect));var S,O,j,z=new C,ke={registerProvider:We,getProvider:M,setProvider:G};return ke;function We(J){if(!Object.isExtensible(ke))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case T===J:break;case X(S):S=J;break;case S===J:break;case X(O):O=J;break;case O===J:break;default:j===void 0&&(j=new b),j.add(J);break}}function le(J,de){if(!X(S)){if(S.isProviderFor(J,de))return S;if(!X(O)){if(O.isProviderFor(J,de))return S;if(!X(j))for(var Ne=Nt(j);;){var Be=pr(Ne);if(!Be)return;var Mt=Pa(Be);if(Mt.isProviderFor(J,de))return Ni(Ne),Mt}}}if(!X(T)&&T.isProviderFor(J,de))return T}function M(J,de){var Ne=z.get(J),Be;return X(Ne)||(Be=Ne.get(de)),X(Be)&&(Be=le(J,de),X(Be)||(X(Ne)&&(Ne=new h,z.set(J,Ne)),Ne.set(de,Be))),Be}function W(J){if(X(J))throw new TypeError;return S===J||O===J||!X(j)&&j.has(J)}function G(J,de,Ne){if(!W(Ne))throw new Error("Metadata provider not registered.");var Be=M(J,de);if(Be!==Ne){if(!X(Be))return!1;var Mt=z.get(J);X(Mt)&&(Mt=new h,z.set(J,Mt)),Mt.set(de,Ne)}return!0}}s(Cm,"CreateMetadataRegistry");function Sm(){var T;return!X(F)&&Oe(n.Reflect)&&Object.isExtensible(n.Reflect)&&(T=n.Reflect[F]),X(T)&&(T=Cm()),!X(F)&&Oe(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,F,{enumerable:!1,configurable:!1,writable:!1,value:T}),T}s(Sm,"GetOrCreateMetadataRegistry");function Pm(T){var S=new C,O={isProviderFor:function(W,G){var J=S.get(W);return X(J)?!1:J.has(G)},OrdinaryDefineOwnMetadata:We,OrdinaryHasOwnMetadata:z,OrdinaryGetOwnMetadata:ke,OrdinaryOwnMetadataKeys:le,OrdinaryDeleteMetadata:M};return N.registerProvider(O),O;function j(W,G,J){var de=S.get(W),Ne=!1;if(X(de)){if(!J)return;de=new h,S.set(W,de),Ne=!0}var Be=de.get(G);if(X(Be)){if(!J)return;if(Be=new h,de.set(G,Be),!T.setProvider(W,G,O))throw de.delete(G),Ne&&S.delete(W),new Error("Wrong provider for target.")}return Be}s(j,"GetOrCreateMetadataMap");function z(W,G,J){var de=j(G,J,!1);return X(de)?!1:A(de.has(W))}s(z,"OrdinaryHasOwnMetadata");function ke(W,G,J){var de=j(G,J,!1);if(!X(de))return de.get(W)}s(ke,"OrdinaryGetOwnMetadata");function We(W,G,J,de){var Ne=j(J,de,!0);Ne.set(W,G)}s(We,"OrdinaryDefineOwnMetadata");function le(W,G){var J=[],de=j(W,G,!1);if(X(de))return J;for(var Ne=de.keys(),Be=Nt(Ne),Mt=0;;){var Jc=pr(Be);if(!Jc)return J.length=Mt,J;var Fm=Pa(Jc);try{J[Mt]=Fm}catch(Nm){try{Ni(Be)}finally{throw Nm}}Mt++}}s(le,"OrdinaryOwnMetadataKeys");function M(W,G,J){var de=j(G,J,!1);if(X(de)||!de.delete(W))return!1;if(de.size===0){var Ne=S.get(G);X(Ne)||(Ne.delete(J),Ne.size===0&&S.delete(Ne))}return!0}s(M,"OrdinaryDeleteMetadata")}s(Pm,"CreateMetadataProvider");function Em(T){var S=T.defineMetadata,O=T.hasOwnMetadata,j=T.getOwnMetadata,z=T.getOwnMetadataKeys,ke=T.deleteMetadata,We=new C,le={isProviderFor:function(M,W){var G=We.get(M);return X(G)?z(M,W).length?(X(G)&&(G=new b,We.set(M,G)),G.add(W),!0):!1:G.has(W)},OrdinaryDefineOwnMetadata:S,OrdinaryHasOwnMetadata:O,OrdinaryGetOwnMetadata:j,OrdinaryOwnMetadataKeys:z,OrdinaryDeleteMetadata:ke};return le}s(Em,"CreateFallbackProvider");function dr(T,S,O){var j=N.getProvider(T,S);if(!X(j))return j;if(O){if(N.setProvider(T,S,E))return E;throw new Error("Illegal state.")}}s(dr,"GetMetadataProvider");function Om(){var T={},S=[],O=function(){function le(M,W,G){this._index=0,this._keys=M,this._values=W,this._selector=G}return s(le,"MapIterator"),le.prototype["@@iterator"]=function(){return this},le.prototype[o]=function(){return this},le.prototype.next=function(){var M=this._index;if(M>=0&&M<this._keys.length){var W=this._selector(this._keys[M],this._values[M]);return M+1>=this._keys.length?(this._index=-1,this._keys=S,this._values=S):this._index++,{value:W,done:!1}}return{value:void 0,done:!0}},le.prototype.throw=function(M){throw this._index>=0&&(this._index=-1,this._keys=S,this._values=S),M},le.prototype.return=function(M){return this._index>=0&&(this._index=-1,this._keys=S,this._values=S),{value:M,done:!0}},le}(),j=function(){function le(){this._keys=[],this._values=[],this._cacheKey=T,this._cacheIndex=-2}return s(le,"Map"),Object.defineProperty(le.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),le.prototype.has=function(M){return this._find(M,!1)>=0},le.prototype.get=function(M){var W=this._find(M,!1);return W>=0?this._values[W]:void 0},le.prototype.set=function(M,W){var G=this._find(M,!0);return this._values[G]=W,this},le.prototype.delete=function(M){var W=this._find(M,!1);if(W>=0){for(var G=this._keys.length,J=W+1;J<G;J++)this._keys[J-1]=this._keys[J],this._values[J-1]=this._values[J];return this._keys.length--,this._values.length--,Yt(M,this._cacheKey)&&(this._cacheKey=T,this._cacheIndex=-2),!0}return!1},le.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=T,this._cacheIndex=-2},le.prototype.keys=function(){return new O(this._keys,this._values,z)},le.prototype.values=function(){return new O(this._keys,this._values,ke)},le.prototype.entries=function(){return new O(this._keys,this._values,We)},le.prototype["@@iterator"]=function(){return this.entries()},le.prototype[o]=function(){return this.entries()},le.prototype._find=function(M,W){if(!Yt(this._cacheKey,M)){this._cacheIndex=-1;for(var G=0;G<this._keys.length;G++)if(Yt(this._keys[G],M)){this._cacheIndex=G;break}}return this._cacheIndex<0&&W&&(this._cacheIndex=this._keys.length,this._keys.push(M),this._values.push(void 0)),this._cacheIndex},le}();return j;function z(le,M){return le}function ke(le,M){return M}function We(le,M){return[le,M]}}s(Om,"CreateMapPolyfill");function Am(){var T=function(){function S(){this._map=new h}return s(S,"Set"),Object.defineProperty(S.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),S.prototype.has=function(O){return this._map.has(O)},S.prototype.add=function(O){return this._map.set(O,O),this},S.prototype.delete=function(O){return this._map.delete(O)},S.prototype.clear=function(){this._map.clear()},S.prototype.keys=function(){return this._map.keys()},S.prototype.values=function(){return this._map.keys()},S.prototype.entries=function(){return this._map.entries()},S.prototype["@@iterator"]=function(){return this.keys()},S.prototype[o]=function(){return this.keys()},S}();return T}s(Am,"CreateSetPolyfill");function Im(){var T=16,S=f.create(),O=j();return function(){function M(){this._key=j()}return s(M,"WeakMap"),M.prototype.has=function(W){var G=z(W,!1);return G!==void 0?f.has(G,this._key):!1},M.prototype.get=function(W){var G=z(W,!1);return G!==void 0?f.get(G,this._key):void 0},M.prototype.set=function(W,G){var J=z(W,!0);return J[this._key]=G,this},M.prototype.delete=function(W){var G=z(W,!1);return G!==void 0?delete G[this._key]:!1},M.prototype.clear=function(){this._key=j()},M}();function j(){var M;do M="@@WeakMap@@"+le();while(f.has(S,M));return S[M]=!0,M}function z(M,W){if(!i.call(M,O)){if(!W)return;Object.defineProperty(M,O,{value:f.create()})}return M[O]}function ke(M,W){for(var G=0;G<W;++G)M[G]=Math.random()*255|0;return M}function We(M){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(M)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(M)):ke(new Uint8Array(M),M):ke(new Array(M),M)}function le(){var M=We(T);M[6]=M[6]&79|64,M[8]=M[8]&191|128;for(var W="",G=0;G<T;++G){var J=M[G];(G===4||G===6||G===8)&&(W+="-"),J<16&&(W+="0"),W+=J.toString(16).toLowerCase()}return W}}s(Im,"CreateWeakMapPolyfill");function us(T){return T.__=void 0,delete T.__,T}s(us,"MakeDictionary")})})(Sd||(Sd={}))});var Dd=xe((LE,Nd)=>{var fv=0,Fd="changeUtils: ";function uv(){return"id-"+new Date().valueOf()+"-"+fv++}s(uv,"uid");function pv(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}s(pv,"appendComponentToReference");function dv(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return pv(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}s(dv,"getFlexReference");function gv(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}s(gv,"getAppVersion");function mv(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}s(mv,"getProjectId");function Id(e){return JSON.stringify({fileName:e.id||uv().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:Fd+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})}s(Id,"createString");Nd.exports={parse: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(Fd,""),content:t.content,sapui5Version:t.support.sapui5Version}},createChangeString: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=dv(t),e.appVersion=gv(t),e.projectId=mv(t,e.reference),Id(e)},toString: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 Id(e)}}});var jd=xe((VE,Ld)=>{Ld.exports={change:Dd()}});var Sg=xe(cn=>{"use strict";var Gv=/[|\\{}()[\]^$+*?.]/g,Hv=Object.prototype.hasOwnProperty,Cg=s(function(e,t){return Hv.apply(e,[t])},"hasOwn");cn.escapeRegExpChars=function(e){return e?String(e).replace(Gv,"\\$&"):""};var Kv={"&":"&","<":"<",">":">",'"':""","'":"'"},Wv=/[&<>'"]/g;function Jv(e){return Kv[e]||e}s(Jv,"encode_char");var Qv=`var _ENCODE_HTML_RULES = {
|
|
27
|
+
`?(d.line++,d.column=0):d.column++);d.textNode+=y.substring(re,A-1)}v==="<"&&!(d.sawRoot&&d.closedRoot&&!d.strict)?(d.state=x.OPEN_WAKA,d.startTagPosition=d.position):(!k(v)&&(!d.sawRoot||d.closedRoot)&&pe(d,"Text data outside of root node."),v==="&"?d.state=x.TEXT_ENTITY:d.textNode+=v);continue;case x.SCRIPT:v==="<"?d.state=x.SCRIPT_ENDING:d.script+=v;continue;case x.SCRIPT_ENDING:v==="/"?d.state=x.CLOSE_TAG:(d.script+="<"+v,d.state=x.SCRIPT);continue;case x.OPEN_WAKA:if(v==="!")d.state=x.SGML_DECL,d.sgmlDecl="";else if(!k(v))if(ye(F,v))d.state=x.OPEN_TAG,d.tagName=v;else if(v==="/")d.state=x.CLOSE_TAG,d.tagName="";else if(v==="?")d.state=x.PROC_INST,d.procInstName=d.procInstBody="";else{if(pe(d,"Unencoded <"),d.startTagPosition+1<d.position){var ve=d.position-d.startTagPosition;v=new Array(ve).join(" ")+v}d.textNode+="<"+v,d.state=x.TEXT}continue;case x.SGML_DECL:(d.sgmlDecl+v).toUpperCase()===f?(Fe(d,"onopencdata"),d.state=x.CDATA,d.sgmlDecl="",d.cdata=""):d.sgmlDecl+v==="--"?(d.state=x.COMMENT,d.comment="",d.sgmlDecl=""):(d.sgmlDecl+v).toUpperCase()===p?(d.state=x.DOCTYPE,(d.doctype||d.sawRoot)&&pe(d,"Inappropriately located doctype declaration"),d.doctype="",d.sgmlDecl=""):v===">"?(Fe(d,"onsgmldeclaration",d.sgmlDecl),d.sgmlDecl="",d.state=x.TEXT):(w(v)&&(d.state=x.SGML_DECL_QUOTED),d.sgmlDecl+=v);continue;case x.SGML_DECL_QUOTED:v===d.q&&(d.state=x.SGML_DECL,d.q=""),d.sgmlDecl+=v;continue;case x.DOCTYPE:v===">"?(d.state=x.TEXT,Fe(d,"ondoctype",d.doctype),d.doctype=!0):(d.doctype+=v,v==="["?d.state=x.DOCTYPE_DTD:w(v)&&(d.state=x.DOCTYPE_QUOTED,d.q=v));continue;case x.DOCTYPE_QUOTED:d.doctype+=v,v===d.q&&(d.q="",d.state=x.DOCTYPE);continue;case x.DOCTYPE_DTD:d.doctype+=v,v==="]"?d.state=x.DOCTYPE:w(v)&&(d.state=x.DOCTYPE_DTD_QUOTED,d.q=v);continue;case x.DOCTYPE_DTD_QUOTED:d.doctype+=v,v===d.q&&(d.state=x.DOCTYPE_DTD,d.q="");continue;case x.COMMENT:v==="-"?d.state=x.COMMENT_ENDING:d.comment+=v;continue;case x.COMMENT_ENDING:v==="-"?(d.state=x.COMMENT_ENDED,d.comment=Fi(d.opt,d.comment),d.comment&&Fe(d,"oncomment",d.comment),d.comment=""):(d.comment+="-"+v,d.state=x.COMMENT);continue;case x.COMMENT_ENDED:v!==">"?(pe(d,"Malformed comment"),d.comment+="--"+v,d.state=x.COMMENT):d.state=x.TEXT;continue;case x.CDATA:v==="]"?d.state=x.CDATA_ENDING:d.cdata+=v;continue;case x.CDATA_ENDING:v==="]"?d.state=x.CDATA_ENDING_2:(d.cdata+="]"+v,d.state=x.CDATA);continue;case x.CDATA_ENDING_2:v===">"?(d.cdata&&Fe(d,"oncdata",d.cdata),Fe(d,"onclosecdata"),d.cdata="",d.state=x.TEXT):v==="]"?d.cdata+="]":(d.cdata+="]]"+v,d.state=x.CDATA);continue;case x.PROC_INST:v==="?"?d.state=x.PROC_INST_ENDING:k(v)?d.state=x.PROC_INST_BODY:d.procInstName+=v;continue;case x.PROC_INST_BODY:if(!d.procInstBody&&k(v))continue;v==="?"?d.state=x.PROC_INST_ENDING:d.procInstBody+=v;continue;case x.PROC_INST_ENDING:v===">"?(Fe(d,"onprocessinginstruction",{name:d.procInstName,body:d.procInstBody}),d.procInstName=d.procInstBody="",d.state=x.TEXT):(d.procInstBody+="?"+v,d.state=x.PROC_INST_BODY);continue;case x.OPEN_TAG:ye(N,v)?d.tagName+=v:(zt(d),v===">"?It(d):v==="/"?d.state=x.OPEN_TAG_SLASH:(k(v)||pe(d,"Invalid character in tag name"),d.state=x.ATTRIB));continue;case x.OPEN_TAG_SLASH:v===">"?(It(d,!0),Ft(d)):(pe(d,"Forward-slash in opening tag not followed by >"),d.state=x.ATTRIB);continue;case x.ATTRIB:if(k(v))continue;v===">"?It(d):v==="/"?d.state=x.OPEN_TAG_SLASH:ye(F,v)?(d.attribName=v,d.attribValue="",d.state=x.ATTRIB_NAME):pe(d,"Invalid attribute name");continue;case x.ATTRIB_NAME:v==="="?d.state=x.ATTRIB_VALUE:v===">"?(pe(d,"Attribute without value"),d.attribValue=d.attribName,qt(d),It(d)):k(v)?d.state=x.ATTRIB_NAME_SAW_WHITE:ye(N,v)?d.attribName+=v:pe(d,"Invalid attribute name");continue;case x.ATTRIB_NAME_SAW_WHITE:if(v==="=")d.state=x.ATTRIB_VALUE;else{if(k(v))continue;pe(d,"Attribute without value"),d.tag.attributes[d.attribName]="",d.attribValue="",Fe(d,"onattribute",{name:d.attribName,value:""}),d.attribName="",v===">"?It(d):ye(F,v)?(d.attribName=v,d.state=x.ATTRIB_NAME):(pe(d,"Invalid attribute name"),d.state=x.ATTRIB)}continue;case x.ATTRIB_VALUE:if(k(v))continue;w(v)?(d.q=v,d.state=x.ATTRIB_VALUE_QUOTED):(pe(d,"Unquoted attribute value"),d.state=x.ATTRIB_VALUE_UNQUOTED,d.attribValue=v);continue;case x.ATTRIB_VALUE_QUOTED:if(v!==d.q){v==="&"?d.state=x.ATTRIB_VALUE_ENTITY_Q:d.attribValue+=v;continue}qt(d),d.q="",d.state=x.ATTRIB_VALUE_CLOSED;continue;case x.ATTRIB_VALUE_CLOSED:k(v)?d.state=x.ATTRIB:v===">"?It(d):v==="/"?d.state=x.OPEN_TAG_SLASH:ye(F,v)?(pe(d,"No whitespace between attributes"),d.attribName=v,d.attribValue="",d.state=x.ATTRIB_NAME):pe(d,"Invalid attribute name");continue;case x.ATTRIB_VALUE_UNQUOTED:if(!oe(v)){v==="&"?d.state=x.ATTRIB_VALUE_ENTITY_U:d.attribValue+=v;continue}qt(d),v===">"?It(d):d.state=x.ATTRIB;continue;case x.CLOSE_TAG:if(d.tagName)v===">"?Ft(d):ye(N,v)?d.tagName+=v:d.script?(d.script+="</"+d.tagName,d.tagName="",d.state=x.SCRIPT):(k(v)||pe(d,"Invalid tagname in closing tag"),d.state=x.CLOSE_TAG_SAW_WHITE);else{if(k(v))continue;tt(F,v)?d.script?(d.script+="</"+v,d.state=x.SCRIPT):pe(d,"Invalid tagname in closing tag."):d.tagName=v}continue;case x.CLOSE_TAG_SAW_WHITE:if(k(v))continue;v===">"?Ft(d):pe(d,"Invalid characters in closing tag");continue;case x.TEXT_ENTITY:case x.ATTRIB_VALUE_ENTITY_Q:case x.ATTRIB_VALUE_ENTITY_U:var be,He;switch(d.state){case x.TEXT_ENTITY:be=x.TEXT,He="textNode";break;case x.ATTRIB_VALUE_ENTITY_Q:be=x.ATTRIB_VALUE_QUOTED,He="attribValue";break;case x.ATTRIB_VALUE_ENTITY_U:be=x.ATTRIB_VALUE_UNQUOTED,He="attribValue";break}if(v===";")if(d.opt.unparsedEntities){var Ze=X(d);d.entity="",d.state=be,d.write(Ze)}else d[He]+=X(d),d.entity="",d.state=be;else ye(d.entity.length?I:E,v)?d.entity+=v:(pe(d,"Invalid character in entity name"),d[He]+="&"+d.entity+v,d.entity="",d.state=be);continue;default:throw new Error(d,"Unknown state: "+d.state)}return d.position>=d.bufferCheckPosition&&i(d),d}s(Oe,"write");String.fromCodePoint||function(){var y=String.fromCharCode,d=Math.floor,A=s(function(){var v=16384,re=[],ve,be,He=-1,Ze=arguments.length;if(!Ze)return"";for(var Yt="";++He<Ze;){var Ke=Number(arguments[He]);if(!isFinite(Ke)||Ke<0||Ke>1114111||d(Ke)!==Ke)throw RangeError("Invalid code point: "+Ke);Ke<=65535?re.push(Ke):(Ke-=65536,ve=(Ke>>10)+55296,be=Ke%1024+56320,re.push(ve,be)),(He+1===Ze||re.length>v)&&(Yt+=y.apply(null,re),re.length=0)}return Yt},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:A,configurable:!0,writable:!0}):String.fromCodePoint=A}()})(typeof Ua>"u"?Ua.sax={}:Ua)});var Ga=xe((nE,Pp)=>{Pp.exports={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}});var Ha=xe((iE,Ep)=>{var rb=Ga().isArray;Ep.exports={copyOptions:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},ensureFlagExists:function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!rb(e.alwaysArray))&&(e.alwaysArray=!1)},ensureKeyExists:function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}});var ws=xe((rE,jp)=>{var ab=Sp(),ob={on:function(){},parse:function(){}},se=Ha(),Ri=Ga().isArray,P,_s=!0,Z;function sb(e){return P=se.copyOptions(e),se.ensureFlagExists("ignoreDeclaration",P),se.ensureFlagExists("ignoreInstruction",P),se.ensureFlagExists("ignoreAttributes",P),se.ensureFlagExists("ignoreText",P),se.ensureFlagExists("ignoreComment",P),se.ensureFlagExists("ignoreCdata",P),se.ensureFlagExists("ignoreDoctype",P),se.ensureFlagExists("compact",P),se.ensureFlagExists("alwaysChildren",P),se.ensureFlagExists("addParent",P),se.ensureFlagExists("trim",P),se.ensureFlagExists("nativeType",P),se.ensureFlagExists("nativeTypeAttributes",P),se.ensureFlagExists("sanitize",P),se.ensureFlagExists("instructionHasAttributes",P),se.ensureFlagExists("captureSpacesBetweenElements",P),se.ensureAlwaysArrayExists(P),se.ensureKeyExists("declaration",P),se.ensureKeyExists("instruction",P),se.ensureKeyExists("attributes",P),se.ensureKeyExists("text",P),se.ensureKeyExists("comment",P),se.ensureKeyExists("cdata",P),se.ensureKeyExists("doctype",P),se.ensureKeyExists("type",P),se.ensureKeyExists("name",P),se.ensureKeyExists("elements",P),se.ensureKeyExists("parent",P),se.checkFnExists("doctype",P),se.checkFnExists("instruction",P),se.checkFnExists("cdata",P),se.checkFnExists("comment",P),se.checkFnExists("text",P),se.checkFnExists("instructionName",P),se.checkFnExists("elementName",P),se.checkFnExists("attributeName",P),se.checkFnExists("attributeValue",P),se.checkFnExists("attributes",P),P}s(sb,"validateOptions");function Dp(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}s(Dp,"nativeType");function Tr(e,t){var n;if(P.compact){if(!Z[P[e+"Key"]]&&(Ri(P.alwaysArray)?P.alwaysArray.indexOf(P[e+"Key"])!==-1:P.alwaysArray)&&(Z[P[e+"Key"]]=[]),Z[P[e+"Key"]]&&!Ri(Z[P[e+"Key"]])&&(Z[P[e+"Key"]]=[Z[P[e+"Key"]]]),e+"Fn"in P&&typeof t=="string"&&(t=P[e+"Fn"](t,Z)),e==="instruction"&&("instructionFn"in P||"instructionNameFn"in P)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in P)t[n]=P.instructionFn(t[n],n,Z);else{var i=t[n];delete t[n],t[P.instructionNameFn(n,i,Z)]=i}}Ri(Z[P[e+"Key"]])?Z[P[e+"Key"]].push(t):Z[P[e+"Key"]]=t}else{Z[P.elementsKey]||(Z[P.elementsKey]=[]);var r={};if(r[P.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[P.nameKey]="instructionNameFn"in P?P.instructionNameFn(n,t,Z):n,P.instructionHasAttributes?(r[P.attributesKey]=t[n][P.attributesKey],"instructionFn"in P&&(r[P.attributesKey]=P.instructionFn(r[P.attributesKey],n,Z))):("instructionFn"in P&&(t[n]=P.instructionFn(t[n],n,Z)),r[P.instructionKey]=t[n])}else e+"Fn"in P&&(t=P[e+"Fn"](t,Z)),r[P[e+"Key"]]=t;P.addParent&&(r[P.parentKey]=Z),Z[P.elementsKey].push(r)}}s(Tr,"addField");function Lp(e){if("attributesFn"in P&&e&&(e=P.attributesFn(e,Z)),(P.trim||"attributeValueFn"in P||"attributeNameFn"in P||P.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(P.trim&&(e[t]=e[t].trim()),P.nativeTypeAttributes&&(e[t]=Dp(e[t])),"attributeValueFn"in P&&(e[t]=P.attributeValueFn(e[t],t,Z)),"attributeNameFn"in P)){var n=e[t];delete e[t],e[P.attributeNameFn(t,e[t],Z)]=n}}return e}s(Lp,"manipulateAttributes");function lb(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||P.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=Lp(t)}if(e.name.toLowerCase()==="xml"){if(P.ignoreDeclaration)return;Z[P.declarationKey]={},Object.keys(t).length&&(Z[P.declarationKey][P.attributesKey]=t),P.addParent&&(Z[P.declarationKey][P.parentKey]=Z)}else{if(P.ignoreInstruction)return;P.trim&&(e.body=e.body.trim());var r={};P.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][P.attributesKey]=t):r[e.name]=e.body,Tr("instruction",r)}}s(lb,"onInstruction");function Op(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=Lp(t),"elementNameFn"in P&&(e=P.elementNameFn(e,Z)),P.compact){if(n={},!P.ignoreAttributes&&t&&Object.keys(t).length){n[P.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[P.attributesKey][i]=t[i])}!(e in Z)&&(Ri(P.alwaysArray)?P.alwaysArray.indexOf(e)!==-1:P.alwaysArray)&&(Z[e]=[]),Z[e]&&!Ri(Z[e])&&(Z[e]=[Z[e]]),Ri(Z[e])?Z[e].push(n):Z[e]=n}else Z[P.elementsKey]||(Z[P.elementsKey]=[]),n={},n[P.typeKey]="element",n[P.nameKey]=e,!P.ignoreAttributes&&t&&Object.keys(t).length&&(n[P.attributesKey]=t),P.alwaysChildren&&(n[P.elementsKey]=[]),Z[P.elementsKey].push(n);n[P.parentKey]=Z,Z=n}s(Op,"onStartElement");function Ap(e){P.ignoreText||!e.trim()&&!P.captureSpacesBetweenElements||(P.trim&&(e=e.trim()),P.nativeType&&(e=Dp(e)),P.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),Tr("text",e))}s(Ap,"onText");function Ip(e){P.ignoreComment||(P.trim&&(e=e.trim()),Tr("comment",e))}s(Ip,"onComment");function Fp(e){var t=Z[P.parentKey];P.addParent||delete Z[P.parentKey],Z=t}s(Fp,"onEndElement");function cb(e){P.ignoreCdata||(P.trim&&(e=e.trim()),Tr("cdata",e))}s(cb,"onCdata");function fb(e){P.ignoreDoctype||(e=e.replace(/^ /,""),P.trim&&(e=e.trim()),Tr("doctype",e))}s(fb,"onDoctype");function Np(e){e.note=e}s(Np,"onError");jp.exports=function(e,t){var n=_s?ab.parser(!0,{}):n=new ob.Parser("UTF-8"),i={};if(Z=i,P=sb(t),_s?(n.opt={strictEntities:!0},n.onopentag=Op,n.ontext=Ap,n.oncomment=Ip,n.onclosetag=Fp,n.onerror=Np,n.oncdata=cb,n.ondoctype=fb,n.onprocessinginstruction=lb):(n.on("startElement",Op),n.on("text",Ap),n.on("comment",Ip),n.on("endElement",Fp),n.on("error",Np)),_s)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[P.elementsKey]){var r=i[P.elementsKey];delete i[P.elementsKey],i[P.elementsKey]=r,delete i.text}return i}});var wp=xe((oE,_p)=>{var Vp=Ha(),ub=ws();function pb(e){var t=Vp.copyOptions(e);return Vp.ensureSpacesExists(t),t}s(pb,"validateOptions");_p.exports=function(e,t){var n,i,r,a;return n=pb(t),i=ub(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?r=JSON.stringify(i,function(o,l){return o===a?"_":l},n.spaces):r=JSON.stringify(i,null,n.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var $s=xe((lE,Kp)=>{var ce=Ha(),db=Ga().isArray,it,rt;function gb(e){var t=ce.copyOptions(e);return ce.ensureFlagExists("ignoreDeclaration",t),ce.ensureFlagExists("ignoreInstruction",t),ce.ensureFlagExists("ignoreAttributes",t),ce.ensureFlagExists("ignoreText",t),ce.ensureFlagExists("ignoreComment",t),ce.ensureFlagExists("ignoreCdata",t),ce.ensureFlagExists("ignoreDoctype",t),ce.ensureFlagExists("compact",t),ce.ensureFlagExists("indentText",t),ce.ensureFlagExists("indentCdata",t),ce.ensureFlagExists("indentAttributes",t),ce.ensureFlagExists("indentInstruction",t),ce.ensureFlagExists("fullTagEmptyElement",t),ce.ensureFlagExists("noQuotesForNativeAttributes",t),ce.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),ce.ensureKeyExists("declaration",t),ce.ensureKeyExists("instruction",t),ce.ensureKeyExists("attributes",t),ce.ensureKeyExists("text",t),ce.ensureKeyExists("comment",t),ce.ensureKeyExists("cdata",t),ce.ensureKeyExists("doctype",t),ce.ensureKeyExists("type",t),ce.ensureKeyExists("name",t),ce.ensureKeyExists("elements",t),ce.checkFnExists("doctype",t),ce.checkFnExists("instruction",t),ce.checkFnExists("cdata",t),ce.checkFnExists("comment",t),ce.checkFnExists("text",t),ce.checkFnExists("instructionName",t),ce.checkFnExists("elementName",t),ce.checkFnExists("attributeName",t),ce.checkFnExists("attributeValue",t),ce.checkFnExists("attributes",t),ce.checkFnExists("fullTagEmptyElement",t),t}s(gb,"validateOptions");function nn(e,t,n){return(!n&&e.spaces?`
|
|
28
|
+
`:"")+Array(t+1).join(e.spaces)}s(nn,"writeIndentation");function Ka(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,rt,it));var i,r,a,o,l=[];for(i in e)e.hasOwnProperty(i)&&e[i]!==null&&e[i]!==void 0&&(o=t.noQuotesForNativeAttributes&&typeof e[i]!="string"?"":'"',r=""+e[i],r=r.replace(/"/g,"""),a="attributeNameFn"in t?t.attributeNameFn(i,r,rt,it):i,l.push(t.spaces&&t.indentAttributes?nn(t,n+1,!1):" "),l.push(a+"="+o+("attributeValueFn"in t?t.attributeValueFn(r,i,rt,it):r)+o));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(nn(t,n,!1)),l.join("")}s(Ka,"writeAttributes");function Rp(e,t,n){return it=e,rt="xml",t.ignoreDeclaration?"":"<?xml"+Ka(e[t.attributesKey],t,n)+"?>"}s(Rp,"writeDeclaration");function $p(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],rt,it):i;if(typeof e[i]=="object")return it=e,rt=r,"<?"+r+Ka(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,rt,it)),"<?"+r+(a?" "+a:"")+"?>"}s($p,"writeInstruction");function Mp(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,rt,it):e)+"-->"}s(Mp,"writeComment");function kp(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,rt,it):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}s(kp,"writeCdata");function Bp(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,rt,it):e)+">"}s(Bp,"writeDoctype");function Rs(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,rt,it):e)}s(Rs,"writeText");function mb(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}s(mb,"hasContent");function yb(e,t,n){it=e,rt=e.name;var i=[],r="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+r),e[t.attributesKey]&&i.push(Ka(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(Up(e[t.elementsKey],t,n+1)),it=e,rt=e.name),i.push(t.spaces&&mb(e,t)?`
|
|
29
|
+
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}s(yb,"writeElement");function Up(e,t,n,i){return e.reduce(function(r,a){var o=nn(t,n,i&&!r);switch(a.type){case"element":return r+o+yb(a,t,n);case"comment":return r+o+Mp(a[t.commentKey],t);case"doctype":return r+o+Bp(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?o:"")+kp(a[t.cdataKey],t);case"text":return r+(t.indentText?o:"")+Rs(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?o:"")+$p(l,t,n)}},"")}s(Up,"writeElements");function Gp(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}s(Gp,"hasContentCompact");function hb(e,t,n,i,r){it=e,rt=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 o=[];if(t){if(o.push("<"+a),typeof e!="object")return o.push(">"+Rs(e,n)+"</"+a+">"),o.join("");e[n.attributesKey]&&o.push(Ka(e[n.attributesKey],n,i));var l=Gp(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)o.push(">");else return o.push("/>"),o.join("")}return o.push(Hp(e,n,i+1,!1)),it=e,rt=t,t&&o.push((r?nn(n,i,!1):"")+"</"+a+">"),o.join("")}s(hb,"writeElementCompact");function Hp(e,t,n,i){var r,a,o,l=[];for(a in e)if(e.hasOwnProperty(a))for(o=db(e[a])?e[a]:[e[a]],r=0;r<o.length;++r){switch(a){case t.declarationKey:l.push(Rp(o[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?nn(t,n,i):"")+$p(o[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?nn(t,n,i):"")+Rs(o[r],t));break;case t.cdataKey:l.push((t.indentCdata?nn(t,n,i):"")+kp(o[r],t));break;case t.doctypeKey:l.push(nn(t,n,i)+Bp(o[r],t));break;case t.commentKey:l.push(nn(t,n,i)+Mp(o[r],t));break;default:l.push(nn(t,n,i)+hb(o[r],a,t,n,Gp(o[r],t)))}i=i&&!l.length}return l.join("")}s(Hp,"writeElementsCompact");Kp.exports=function(e,t){t=gb(t);var n=[];return it=e,rt="_root_",t.compact?n.push(Hp(e,t,0,!0)):(e[t.declarationKey]&&n.push(Rp(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(Up(e[t.elementsKey],t,0,!n.length))),n.join("")}});var Jp=xe((fE,Wp)=>{var bb=$s();Wp.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 bb(n,t)}});var xr=xe((uE,Qp)=>{var vb=ws(),Tb=wp(),xb=$s(),Cb=Jp();Qp.exports={xml2js:vb,xml2json:Tb,js2xml:xb,json2xml:Cb}});var ed=xe(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.convertEntityTypeAnnotations=mt.convertPropertyAnnotations=mt.convertNavigationPropertyAnnotations=mt.convertEntitySetAnnotations=mt.convertGenericAnnotations=mt.convertV2Annotations=void 0;function Sb(e,t,n){let i=[];switch(t){case"EntitySet":qp(e,i);break;case"EntityType":Zp(e,i);break;case"NavigationProperty":Xp(e,n,i);break;case"Property":Yp(e,n,i);break;case"Singleton":break;default:break}return zp(e,n,i),i}s(Sb,"convertV2Annotations");mt.convertV2Annotations=Sb;function zp(e,t,n){function i(r,a){r&&n.push(a)}if(s(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}]}})}s(zp,"convertGenericAnnotations");mt.convertGenericAnnotations=zp;function qp(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"]}}]}})}s(qp,"convertEntitySetAnnotations");mt.convertEntitySetAnnotations=qp;function Xp(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}}]}}}]}]}}]}})}s(Xp,"convertNavigationPropertyAnnotations");mt.convertNavigationPropertyAnnotations=Xp;function Yp(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}]}}]}})}s(Yp,"convertPropertyAnnotations");mt.convertPropertyAnnotations=Yp;function Zp(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:[]}}]}})}s(Zp,"convertEntityTypeAnnotations");mt.convertEntityTypeAnnotations=Zp});var ld=xe(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.parse=void 0;var Pb=xr(),te=Vs(),Cr=ed(),id=/^Collection\((.+)\)$/;function Eb(e){return e.Type!==null&&e.Type!==void 0}s(Eb,"isV4NavProperty");function Ob(e){return e.map(t=>t._attributes.Name)}s(Ob,"getEntityTypeKeys");function rd(e,t,n,i){return e.reduce((r,a)=>{let o={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:$i(a._attributes.Type).type};if(a._attributes.MaxLength&&(o.maxLength=parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(o.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(o.scale=parseInt(a._attributes.Scale,10)),a._attributes.Nullable&&(o.nullable=a._attributes.Nullable!=="false"),a._attributes.DefaultValue)switch(o.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":o.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":o.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":o.defaultValue=a._attributes.DefaultValue==="true";break;default:o.defaultValue=a._attributes.DefaultValue;break}r.entityProperties.push(o),t.indexOf(o.name)!==-1&&r.entityKeys.push(o);let l=(0,Cr.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(ai(o.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}s(rd,"parseProperties");function Ab(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}s(Ab,"parseReferentialConstraint");function Ib(e,t){return e.reduce((n,i)=>{let r=t.find(o=>o.role===i.Principal._attributes.Role),a=t.find(o=>o.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let o=(0,te.ensureArray)(i.Principal.PropertyRef),l=(0,te.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(c=>c.role===i.Dependent._attributes.Role),l=o,o=(0,te.ensureArray)(i.Dependent.PropertyRef));for(let c of o){let u=o.indexOf(c);n.push({sourceTypeName:r.type,sourceProperty:c._attributes.Name,targetTypeName:a.type,targetProperty:l[u]._attributes.Name})}}return n},[])}s(Ib,"parseV2ReferentialConstraint");function ad(e,t,n,i){return e.reduce((r,a)=>{let o=a._attributes;if(Eb(o)){let l=o.Type.match(id),c=l!==null,u=rn(l?l[1]:o.Type);r.push({_type:"NavigationProperty",name:o.Name,fullyQualifiedName:`${n}/${o.Name}`,partner:o.Partner,containsTarget:o.ContainsTarget==="true",isCollection:c,targetTypeName:u,referentialConstraint:Ab((0,te.ensureArray)(a.ReferentialConstraint),t._attributes.Name,u)})}else{let{Relationship:l,ToRole:c,FromRole:u}=o;r.push({_type:"NavigationProperty",name:o.Name,fullyQualifiedName:`${n}/${o.Name}`,relationship:l,toRole:c,fromRole:u});let f=(0,Cr.convertV2Annotations)(o,"NavigationProperty",o.Name);f.length>0&&i.push(ai(`${n}/${o.Name}`,f))}return r},[])}s(ad,"parseNavigationProperties");function Fb(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,te.ensureArray)(i.End).map(o=>({entitySet:`${t}.${n._attributes.Name}/${o._attributes.EntitySet}`,role:o._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}s(Fb,"parseAssociationSets");function Nb(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,te.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:Ib((0,te.ensureArray)(n.ReferentialConstraint),r)}})}s(Nb,"parseAssociations");function Db(e,t,n){return e.reduce((i,r)=>{let a=r.Key?Ob((0,te.ensureArray)(r.Key.PropertyRef)):[],o=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:c}=rd((0,te.ensureArray)(r.Property),a,o,t),u=ad((0,te.ensureArray)(r.NavigationProperty),r,o,t),f={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:o,keys:c,entityProperties:l,actions:{},navigationProperties:u},p=(0,Cr.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return p.length>0&&t.push(ai(f.fullyQualifiedName,p)),i.push(f),i},[])}s(Db,"parseEntityTypes");function Lb(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:o}=rd((0,te.ensureArray)(r.Property),[],a,t),l=ad((0,te.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:o,navigationProperties:l}),i},[])}s(Lb,"parseComplexTypes");function jb(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},[])}s(jb,"parseTypeDefinitions");function Vb(e,t,n,i){return e.map(a=>{let o=Object.fromEntries((0,te.ensureArray)(a.NavigationPropertyBinding).map(u=>[u._attributes.Path,`${t}.${n}/${u._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:rn(a._attributes.EntityType),navigationPropertyBinding:o,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},c=(0,Cr.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return c.length>0&&i.push(ai(l.fullyQualifiedName,c)),l})}s(Vb,"parseEntitySets");function _b(e,t,n,i){return e.map(a=>{let o=Object.fromEntries((0,te.ensureArray)(a.NavigationPropertyBinding).map(u=>[u._attributes.Path,`${t}.${n}/${u._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:rn(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:o,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},c=(0,Cr.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return c.length>0&&i.push(ai(l.fullyQualifiedName,c)),l})}s(_b,"parseSingletons");function td(e,t,n){return e.map(i=>{let r=(0,te.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",o;n?o=r.map(c=>$i(c._attributes.Type).type).join(","):o=a?$i(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${o})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?$i(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(c=>{let{isCollection:u,type:f}=$i(c._attributes.Type),p={_type:"ActionParameter",fullyQualifiedName:`${l}/${c._attributes.Name}`,name:`${c._attributes.Name}`,type:f,isCollection:u};return c._attributes.MaxLength&&(p.maxLength=parseInt(c._attributes.MaxLength,10)),c._attributes.Precision&&(p.precision=parseInt(c._attributes.Precision,10)),c._attributes.Scale&&(p.scale=parseInt(c._attributes.Scale,10)),c._attributes.Nullable&&(p.nullable=c._attributes.Nullable!=="false"),p}),returnType:i.ReturnType?$i(i.ReturnType._attributes.Type).type:""}})}s(td,"parseActions");function wb(e,t,n){return e.map(i=>{let r=t.find(o=>o.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,te.ensureArray)(i.Parameter).map(o=>({_type:"ActionParameter",name:o._attributes.Name,fullyQualifiedName:`${a}/${o._attributes.Name}`,type:o._attributes.Type,isCollection:o._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:""}})}s(wb,"parseV2FunctionImport");function nd(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:rn(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:rn(r)}})}s(nd,"parseActionImports");function Rb(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...o}=i,l={};if(a){let c=Object.keys(a).find(f=>f!=="Property");l.name=a.Property;let u=`${t}/${l.name}`;if(o&&Object.keys(o).length>0?l.value=sd(o,u,n):c&&(l.value=od({[c]:a[c]},u,n)),i.Annotation){let f=Qa((0,te.ensureArray)(i.Annotation),u,n);f&&f.length>0&&n.push(ai(u,f))}}return l})}s(Rb,"parsePropertyValues");function Ja(e,t,n){let i=Qa((0,te.ensureArray)(e.Annotation),t,n),r={type:e._attributes?rn(e._attributes.Type):void 0,propertyValues:Rb((0,te.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}s(Ja,"parseRecord");function bn(e,t){return e[t]!=null}s(bn,"isExpressionOfType");function Wa(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}}}s(Wa,"parseModelPath");function ks(e,t,n){if(bn(e,"Record")){let i=(0,te.ensureArray)(e.Record).map((r,a)=>Ja(r,t+"/"+a,n));return i.type="Record",i}else if(bn(e,"PropertyPath")){let i=(0,te.ensureArray)(e.PropertyPath).map(r=>Wa(r,"PropertyPath"));return i.type="PropertyPath",i}else if(bn(e,"NavigationPropertyPath")){let i=(0,te.ensureArray)(e.NavigationPropertyPath).map(r=>Wa(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(bn(e,"String")){let i=(0,te.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(bn(e,"AnnotationPath")){let i=(0,te.ensureArray)(e.AnnotationPath).map(r=>Wa(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(bn(e,"Path")){let i=(0,te.ensureArray)(e.Path).map(r=>Wa(r,"Path"));return i.type="Path",i}else if(bn(e,"If")){let i=(0,te.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[]}s(ks,"parseCollection");function od(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"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:ks(e.Collection,t,n)};case"Record":return{type:"Record",Record:Ja(e.Record,t,n)};case"Apply":return{type:"Apply",Apply:e.Apply};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}s(od,"parseInlineExpression");function sd(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]._text};case"Bool":return{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal._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[r]._text};case"Collection":return{type:"Collection",Collection:ks(e.Collection,t,n)};case"Record":return{type:"Record",Record:Ja(e.Record,t,n)};case"Apply":return{type:"Apply",Apply:e.Apply};case"Null":return{type:"Null"};default:return console.error("Unsupported expression type "+r),{type:"Unknown"}}}s(sd,"parseExpression");function $b(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,o={term:rn(i),qualifier:r},l=`${t}@${rn(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(o.value=od(a,l,n)),e.Annotation){let u=Qa((0,te.ensureArray)(e.Annotation),l,n);u&&u.length>0&&(o.annotations=u)}let c=Object.keys(e).filter(u=>u!=="_attributes"&&u!=="Annotation");return bn(e,"Record")?o.record=Ja(e.Record,l,n):bn(e,"Collection")?o.collection=ks(e.Collection,l,n):c.length===1?o.value=sd({[c[0]]:e[c[0]]},l,n):c.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),o}s($b,"parseAnnotation");function Qa(e,t,n){return e.map(i=>$b(i,t,n))}s(Qa,"parseAnnotations");function ai(e,t){return{target:e,annotations:t}}s(ai,"createAnnotationList");function Mb(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(ai(rn(n._attributes.Target),Qa((0,te.ensureArray)(n.Annotation),n._attributes.Target,t)))})}s(Mb,"parseAnnotationLists");function kb(e,t,n){let i=e._attributes.Namespace,r=[],a=Db((0,te.ensureArray)(e.EntityType),r,i),o=Lb((0,te.ensureArray)(e.ComplexType),r,i),l=jb((0,te.ensureArray)(e.TypeDefinition),i),c=[],u=[],f=[],p={_type:"EntityContainer",fullyQualifiedName:""},h=[],b=[];if(e.EntityContainer)if(c=Vb((0,te.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),u=_b((0,te.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),f=Fb((0,te.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),p={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")h=h.concat(wb((0,te.ensureArray)(e.EntityContainer.FunctionImport),c,p.fullyQualifiedName));else if(t==="4.0")b=b.concat(nd((0,te.ensureArray)(e.EntityContainer.FunctionImport),p.fullyQualifiedName)),b=b.concat(nd((0,te.ensureArray)(e.EntityContainer.ActionImport),p.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(h=h.concat(td((0,te.ensureArray)(e.Action),i,!1)),h=h.concat(td((0,te.ensureArray)(e.Function),i,!0)));let C=Nb((0,te.ensureArray)(e.Association),i);Mb((0,te.ensureArray)(e.Annotations),r);let F={};return F[n]=r,{associations:C,associationSets:f,annotations:F,entityContainer:p,namespace:i,entitySets:c,singletons:u,complexTypes:o,typeDefinitions:l,actions:h,actionImports:b,entityTypes:a}}s(kb,"parseSchema");function Bb(e){return e.reduce((t,n)=>((0,te.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}s(Bb,"parseReferences");var Ms={};function $i(e){let t=e.match(id),n=t?t[1]:e,i=rn(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}s($i,"unaliasType");function rn(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let a=0,o=!0;a<e.length;a++){let l=e[a];if(o&&l==="."){let c=e.substring(r,a);i.push((t=Ms[c])!==null&&t!==void 0?t:c),r=a,o=!1}n.includes(l)&&(i.push(e.substring(r,a+1)),r=a+1,o=!0)}return i.push(e.substring(r)),i.join("")}s(rn,"unalias");function Ub(e){let t=e.reduce((b,C)=>b.concat(C.associations),[]),n=e.reduce((b,C)=>b.concat(C.associationSets),[]),i=e.reduce((b,C)=>b.concat(C.entitySets),[]),r=e.reduce((b,C)=>b.concat(C.singletons),[]),a=e.reduce((b,C)=>b.concat(C.entityTypes),[]),o=e.reduce((b,C)=>b.concat(C.actions),[]),l=e.reduce((b,C)=>b.concat(C.actionImports),[]),c=e.reduce((b,C)=>b.concat(C.complexTypes),[]),u=e.reduce((b,C)=>b.concat(C.typeDefinitions),[]),f={};e.forEach(b=>{f=Object.assign(f,b.annotations)});let p,h;return e.forEach(b=>{b.entityContainer&&Object.keys(b.entityContainer).length>0&&(p=b.entityContainer,h=b.namespace)}),i.forEach(b=>{let C=a.find(F=>F.fullyQualifiedName===b.entityTypeName);C==null||C.navigationProperties.forEach(F=>{let N=F,E=n.find(I=>I.association===N.relationship);if(E){let I=E.associationEnd.find(k=>k.entitySet!==b.fullyQualifiedName);I&&(b.navigationPropertyBinding[F.name]=I.entitySet)}})}),a.forEach(b=>{b.navigationProperties.forEach(C=>{let F=C,N=t.find(E=>E.fullyQualifiedName===F.relationship);N&&N.referentialConstraints&&N.referentialConstraints.length>0&&(N.referentialConstraints[0].sourceTypeName===b.fullyQualifiedName?F.referentialConstraint=N.referentialConstraints:F.referentialConstraint=N.referentialConstraints.map(E=>({sourceTypeName:E.targetTypeName,sourceProperty:E.targetProperty,targetTypeName:E.sourceTypeName,targetProperty:E.sourceProperty})))})}),{associations:t,associationSets:n,annotations:f,entityContainer:p,namespace:h,entitySets:i,singletons:r,complexTypes:c,typeDefinitions:u,actions:o,actionImports:l,entityTypes:a}}s(Ub,"mergeSchemas");function Gb(e,t){Ms=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{Ms[n._attributes.Alias]=n._attributes.Namespace})}s(Gb,"createAliasMap");function Hb(e,t="serviceFile"){let n=(0,Pb.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,te.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=Bb((0,te.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));Gb(a,r);let o=r.map(c=>kb(c,i,t));return new te.RawMetadataInstance(t,i,Ub(o),a)}s(Hb,"parse");za.parse=Hb});var cd=xe(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.parse=Mi.merge=void 0;var Kb=Cp();Object.defineProperty(Mi,"merge",{enumerable:!0,get:function(){return Kb.merge}});var Wb=ld();Object.defineProperty(Mi,"parse",{enumerable:!0,get:function(){return Wb.parse}})});var Pd=xe(()=>{var Sd;(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(c,u){return function(f,p){Object.defineProperty(c,f,{configurable:!0,writable:!0,value:p}),u&&u(f,p)}}s(r,"makeExporter");function a(){try{return Function("return this;")()}catch{}}s(a,"functionThis");function o(){try{return(0,eval)("(function() { return this; })()")}catch{}}s(o,"indirectEvalThis");function l(){return a()||o()}s(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",o=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",c={__proto__:[]}instanceof Array,u=!l&&!c,f={create:l?function(){return us(Object.create(null))}:c?function(){return us({__proto__:null})}:function(){return us({})},has:u?function(T,S){return i.call(T,S)}:function(T,S){return S in T},get:u?function(T,S){return i.call(T,S)?T[S]:void 0}:function(T,S){return T[S]}},p=Object.getPrototypeOf(Function),h=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Om(),b=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Am(),C=typeof WeakMap=="function"?WeakMap:Im(),F=r?Symbol.for("@reflect-metadata:registry"):void 0,N=Sm(),E=Pm(N);function I(T,S,O,j){if(X(O)){if(!ve(T))throw new TypeError;if(!He(S))throw new TypeError;return At(T,S)}else{if(!ve(T))throw new TypeError;if(!Oe(S))throw new TypeError;if(!Oe(j)&&!X(j)&&!$t(j))throw new TypeError;return $t(j)&&(j=void 0),O=re(O),Fi(T,S,O,j)}}s(I,"decorate"),t("decorate",I);function k(T,S){function O(j,z){if(!Oe(j))throw new TypeError;if(!X(z)&&!Ze(z))throw new TypeError;dn(T,S,j,z)}return s(O,"decorator"),O}s(k,"metadata"),t("metadata",k);function w(T,S,O,j){if(!Oe(O))throw new TypeError;return X(j)||(j=re(j)),dn(T,S,O,j)}s(w,"defineMetadata"),t("defineMetadata",w);function oe(T,S,O){if(!Oe(S))throw new TypeError;return X(O)||(O=re(O)),dt(T,S,O)}s(oe,"hasMetadata"),t("hasMetadata",oe);function ye(T,S,O){if(!Oe(S))throw new TypeError;return X(O)||(O=re(O)),pn(T,S,O)}s(ye,"hasOwnMetadata"),t("hasOwnMetadata",ye);function tt(T,S,O){if(!Oe(S))throw new TypeError;return X(O)||(O=re(O)),pe(T,S,O)}s(tt,"getMetadata"),t("getMetadata",tt);function x(T,S,O){if(!Oe(S))throw new TypeError;return X(O)||(O=re(O)),zt(T,S,O)}s(x,"getOwnMetadata"),t("getOwnMetadata",x);function Qt(T,S){if(!Oe(T))throw new TypeError;return X(S)||(S=re(S)),qt(T,S)}s(Qt,"getMetadataKeys"),t("getMetadataKeys",Qt);function pt(T,S){if(!Oe(T))throw new TypeError;return X(S)||(S=re(S)),It(T,S)}s(pt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",pt);function Fe(T,S,O){if(!Oe(S))throw new TypeError;if(X(O)||(O=re(O)),!Oe(S))throw new TypeError;X(O)||(O=re(O));var j=dr(S,O,!1);return X(j)?!1:j.OrdinaryDeleteMetadata(T,S,O)}s(Fe,"deleteMetadata"),t("deleteMetadata",Fe);function At(T,S){for(var O=T.length-1;O>=0;--O){var j=T[O],z=j(S);if(!X(z)&&!$t(z)){if(!He(z))throw new TypeError;S=z}}return S}s(At,"DecorateConstructor");function Fi(T,S,O,j){for(var z=T.length-1;z>=0;--z){var ke=T[z],We=ke(S,O,j);if(!X(We)&&!$t(We)){if(!Oe(We))throw new TypeError;j=We}}return j}s(Fi,"DecorateProperty");function dt(T,S,O){var j=pn(T,S,O);if(j)return!0;var z=Di(S);return $t(z)?!1:dt(T,z,O)}s(dt,"OrdinaryHasMetadata");function pn(T,S,O){var j=dr(S,O,!1);return X(j)?!1:A(j.OrdinaryHasOwnMetadata(T,S,O))}s(pn,"OrdinaryHasOwnMetadata");function pe(T,S,O){var j=pn(T,S,O);if(j)return zt(T,S,O);var z=Di(S);if(!$t(z))return pe(T,z,O)}s(pe,"OrdinaryGetMetadata");function zt(T,S,O){var j=dr(S,O,!1);if(!X(j))return j.OrdinaryGetOwnMetadata(T,S,O)}s(zt,"OrdinaryGetOwnMetadata");function dn(T,S,O,j){var z=dr(O,j,!0);z.OrdinaryDefineOwnMetadata(T,S,O,j)}s(dn,"OrdinaryDefineOwnMetadata");function qt(T,S){var O=It(T,S),j=Di(T);if(j===null)return O;var z=qt(j,S);if(z.length<=0)return O;if(O.length<=0)return z;for(var ke=new b,We=[],le=0,M=O;le<M.length;le++){var W=M[le],G=ke.has(W);G||(ke.add(W),We.push(W))}for(var J=0,de=z;J<de.length;J++){var W=de[J],G=ke.has(W);G||(ke.add(W),We.push(W))}return We}s(qt,"OrdinaryMetadataKeys");function It(T,S){var O=dr(T,S,!1);return O?O.OrdinaryOwnMetadataKeys(T,S):[]}s(It,"OrdinaryOwnMetadataKeys");function Ft(T){if(T===null)return 1;switch(typeof T){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return T===null?1:6;default:return 6}}s(Ft,"Type");function X(T){return T===void 0}s(X,"IsUndefined");function $t(T){return T===null}s($t,"IsNull");function Xt(T){return typeof T=="symbol"}s(Xt,"IsSymbol");function Oe(T){return typeof T=="object"?T!==null:typeof T=="function"}s(Oe,"IsObject");function y(T,S){switch(Ft(T)){case 0:return T;case 1:return T;case 2:return T;case 3:return T;case 4:return T;case 5:return T}var O=S===3?"string":S===5?"number":"default",j=Ke(T,a);if(j!==void 0){var z=j.call(T,O);if(Oe(z))throw new TypeError;return z}return d(T,O==="default"?"number":O)}s(y,"ToPrimitive");function d(T,S){if(S==="string"){var O=T.toString;if(be(O)){var j=O.call(T);if(!Oe(j))return j}var z=T.valueOf;if(be(z)){var j=z.call(T);if(!Oe(j))return j}}else{var z=T.valueOf;if(be(z)){var j=z.call(T);if(!Oe(j))return j}var ke=T.toString;if(be(ke)){var j=ke.call(T);if(!Oe(j))return j}}throw new TypeError}s(d,"OrdinaryToPrimitive");function A(T){return!!T}s(A,"ToBoolean");function v(T){return""+T}s(v,"ToString");function re(T){var S=y(T,3);return Xt(S)?S:v(S)}s(re,"ToPropertyKey");function ve(T){return Array.isArray?Array.isArray(T):T instanceof Object?T instanceof Array:Object.prototype.toString.call(T)==="[object Array]"}s(ve,"IsArray");function be(T){return typeof T=="function"}s(be,"IsCallable");function He(T){return typeof T=="function"}s(He,"IsConstructor");function Ze(T){switch(Ft(T)){case 3:return!0;case 4:return!0;default:return!1}}s(Ze,"IsPropertyKey");function Yt(T,S){return T===S||T!==T&&S!==S}s(Yt,"SameValueZero");function Ke(T,S){var O=T[S];if(O!=null){if(!be(O))throw new TypeError;return O}}s(Ke,"GetMethod");function Nt(T){var S=Ke(T,o);if(!be(S))throw new TypeError;var O=S.call(T);if(!Oe(O))throw new TypeError;return O}s(Nt,"GetIterator");function Ea(T){return T.value}s(Ea,"IteratorValue");function pr(T){var S=T.next();return S.done?!1:S}s(pr,"IteratorStep");function Ni(T){var S=T.return;S&&S.call(T)}s(Ni,"IteratorClose");function Di(T){var S=Object.getPrototypeOf(T);if(typeof T!="function"||T===p||S!==p)return S;var O=T.prototype,j=O&&Object.getPrototypeOf(O);if(j==null||j===Object.prototype)return S;var z=j.constructor;return typeof z!="function"||z===T?S:z}s(Di,"OrdinaryGetPrototypeOf");function Cm(){var T;!X(F)&&typeof n.Reflect<"u"&&!(F in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(T=Em(n.Reflect));var S,O,j,z=new C,ke={registerProvider:We,getProvider:M,setProvider:G};return ke;function We(J){if(!Object.isExtensible(ke))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case T===J:break;case X(S):S=J;break;case S===J:break;case X(O):O=J;break;case O===J:break;default:j===void 0&&(j=new b),j.add(J);break}}function le(J,de){if(!X(S)){if(S.isProviderFor(J,de))return S;if(!X(O)){if(O.isProviderFor(J,de))return S;if(!X(j))for(var Ne=Nt(j);;){var Be=pr(Ne);if(!Be)return;var Mt=Ea(Be);if(Mt.isProviderFor(J,de))return Ni(Ne),Mt}}}if(!X(T)&&T.isProviderFor(J,de))return T}function M(J,de){var Ne=z.get(J),Be;return X(Ne)||(Be=Ne.get(de)),X(Be)&&(Be=le(J,de),X(Be)||(X(Ne)&&(Ne=new h,z.set(J,Ne)),Ne.set(de,Be))),Be}function W(J){if(X(J))throw new TypeError;return S===J||O===J||!X(j)&&j.has(J)}function G(J,de,Ne){if(!W(Ne))throw new Error("Metadata provider not registered.");var Be=M(J,de);if(Be!==Ne){if(!X(Be))return!1;var Mt=z.get(J);X(Mt)&&(Mt=new h,z.set(J,Mt)),Mt.set(de,Ne)}return!0}}s(Cm,"CreateMetadataRegistry");function Sm(){var T;return!X(F)&&Oe(n.Reflect)&&Object.isExtensible(n.Reflect)&&(T=n.Reflect[F]),X(T)&&(T=Cm()),!X(F)&&Oe(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,F,{enumerable:!1,configurable:!1,writable:!1,value:T}),T}s(Sm,"GetOrCreateMetadataRegistry");function Pm(T){var S=new C,O={isProviderFor:function(W,G){var J=S.get(W);return X(J)?!1:J.has(G)},OrdinaryDefineOwnMetadata:We,OrdinaryHasOwnMetadata:z,OrdinaryGetOwnMetadata:ke,OrdinaryOwnMetadataKeys:le,OrdinaryDeleteMetadata:M};return N.registerProvider(O),O;function j(W,G,J){var de=S.get(W),Ne=!1;if(X(de)){if(!J)return;de=new h,S.set(W,de),Ne=!0}var Be=de.get(G);if(X(Be)){if(!J)return;if(Be=new h,de.set(G,Be),!T.setProvider(W,G,O))throw de.delete(G),Ne&&S.delete(W),new Error("Wrong provider for target.")}return Be}s(j,"GetOrCreateMetadataMap");function z(W,G,J){var de=j(G,J,!1);return X(de)?!1:A(de.has(W))}s(z,"OrdinaryHasOwnMetadata");function ke(W,G,J){var de=j(G,J,!1);if(!X(de))return de.get(W)}s(ke,"OrdinaryGetOwnMetadata");function We(W,G,J,de){var Ne=j(J,de,!0);Ne.set(W,G)}s(We,"OrdinaryDefineOwnMetadata");function le(W,G){var J=[],de=j(W,G,!1);if(X(de))return J;for(var Ne=de.keys(),Be=Nt(Ne),Mt=0;;){var Jc=pr(Be);if(!Jc)return J.length=Mt,J;var Fm=Ea(Jc);try{J[Mt]=Fm}catch(Nm){try{Ni(Be)}finally{throw Nm}}Mt++}}s(le,"OrdinaryOwnMetadataKeys");function M(W,G,J){var de=j(G,J,!1);if(X(de)||!de.delete(W))return!1;if(de.size===0){var Ne=S.get(G);X(Ne)||(Ne.delete(J),Ne.size===0&&S.delete(Ne))}return!0}s(M,"OrdinaryDeleteMetadata")}s(Pm,"CreateMetadataProvider");function Em(T){var S=T.defineMetadata,O=T.hasOwnMetadata,j=T.getOwnMetadata,z=T.getOwnMetadataKeys,ke=T.deleteMetadata,We=new C,le={isProviderFor:function(M,W){var G=We.get(M);return X(G)?z(M,W).length?(X(G)&&(G=new b,We.set(M,G)),G.add(W),!0):!1:G.has(W)},OrdinaryDefineOwnMetadata:S,OrdinaryHasOwnMetadata:O,OrdinaryGetOwnMetadata:j,OrdinaryOwnMetadataKeys:z,OrdinaryDeleteMetadata:ke};return le}s(Em,"CreateFallbackProvider");function dr(T,S,O){var j=N.getProvider(T,S);if(!X(j))return j;if(O){if(N.setProvider(T,S,E))return E;throw new Error("Illegal state.")}}s(dr,"GetMetadataProvider");function Om(){var T={},S=[],O=function(){function le(M,W,G){this._index=0,this._keys=M,this._values=W,this._selector=G}return s(le,"MapIterator"),le.prototype["@@iterator"]=function(){return this},le.prototype[o]=function(){return this},le.prototype.next=function(){var M=this._index;if(M>=0&&M<this._keys.length){var W=this._selector(this._keys[M],this._values[M]);return M+1>=this._keys.length?(this._index=-1,this._keys=S,this._values=S):this._index++,{value:W,done:!1}}return{value:void 0,done:!0}},le.prototype.throw=function(M){throw this._index>=0&&(this._index=-1,this._keys=S,this._values=S),M},le.prototype.return=function(M){return this._index>=0&&(this._index=-1,this._keys=S,this._values=S),{value:M,done:!0}},le}(),j=function(){function le(){this._keys=[],this._values=[],this._cacheKey=T,this._cacheIndex=-2}return s(le,"Map"),Object.defineProperty(le.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),le.prototype.has=function(M){return this._find(M,!1)>=0},le.prototype.get=function(M){var W=this._find(M,!1);return W>=0?this._values[W]:void 0},le.prototype.set=function(M,W){var G=this._find(M,!0);return this._values[G]=W,this},le.prototype.delete=function(M){var W=this._find(M,!1);if(W>=0){for(var G=this._keys.length,J=W+1;J<G;J++)this._keys[J-1]=this._keys[J],this._values[J-1]=this._values[J];return this._keys.length--,this._values.length--,Yt(M,this._cacheKey)&&(this._cacheKey=T,this._cacheIndex=-2),!0}return!1},le.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=T,this._cacheIndex=-2},le.prototype.keys=function(){return new O(this._keys,this._values,z)},le.prototype.values=function(){return new O(this._keys,this._values,ke)},le.prototype.entries=function(){return new O(this._keys,this._values,We)},le.prototype["@@iterator"]=function(){return this.entries()},le.prototype[o]=function(){return this.entries()},le.prototype._find=function(M,W){if(!Yt(this._cacheKey,M)){this._cacheIndex=-1;for(var G=0;G<this._keys.length;G++)if(Yt(this._keys[G],M)){this._cacheIndex=G;break}}return this._cacheIndex<0&&W&&(this._cacheIndex=this._keys.length,this._keys.push(M),this._values.push(void 0)),this._cacheIndex},le}();return j;function z(le,M){return le}function ke(le,M){return M}function We(le,M){return[le,M]}}s(Om,"CreateMapPolyfill");function Am(){var T=function(){function S(){this._map=new h}return s(S,"Set"),Object.defineProperty(S.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),S.prototype.has=function(O){return this._map.has(O)},S.prototype.add=function(O){return this._map.set(O,O),this},S.prototype.delete=function(O){return this._map.delete(O)},S.prototype.clear=function(){this._map.clear()},S.prototype.keys=function(){return this._map.keys()},S.prototype.values=function(){return this._map.keys()},S.prototype.entries=function(){return this._map.entries()},S.prototype["@@iterator"]=function(){return this.keys()},S.prototype[o]=function(){return this.keys()},S}();return T}s(Am,"CreateSetPolyfill");function Im(){var T=16,S=f.create(),O=j();return function(){function M(){this._key=j()}return s(M,"WeakMap"),M.prototype.has=function(W){var G=z(W,!1);return G!==void 0?f.has(G,this._key):!1},M.prototype.get=function(W){var G=z(W,!1);return G!==void 0?f.get(G,this._key):void 0},M.prototype.set=function(W,G){var J=z(W,!0);return J[this._key]=G,this},M.prototype.delete=function(W){var G=z(W,!1);return G!==void 0?delete G[this._key]:!1},M.prototype.clear=function(){this._key=j()},M}();function j(){var M;do M="@@WeakMap@@"+le();while(f.has(S,M));return S[M]=!0,M}function z(M,W){if(!i.call(M,O)){if(!W)return;Object.defineProperty(M,O,{value:f.create()})}return M[O]}function ke(M,W){for(var G=0;G<W;++G)M[G]=Math.random()*255|0;return M}function We(M){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(M)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(M)):ke(new Uint8Array(M),M):ke(new Array(M),M)}function le(){var M=We(T);M[6]=M[6]&79|64,M[8]=M[8]&191|128;for(var W="",G=0;G<T;++G){var J=M[G];(G===4||G===6||G===8)&&(W+="-"),J<16&&(W+="0"),W+=J.toString(16).toLowerCase()}return W}}s(Im,"CreateWeakMapPolyfill");function us(T){return T.__=void 0,delete T.__,T}s(us,"MakeDictionary")})})(Sd||(Sd={}))});var Dd=xe((LE,Nd)=>{var fv=0,Fd="changeUtils: ";function uv(){return"id-"+new Date().valueOf()+"-"+fv++}s(uv,"uid");function pv(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}s(pv,"appendComponentToReference");function dv(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return pv(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}s(dv,"getFlexReference");function gv(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}s(gv,"getAppVersion");function mv(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}s(mv,"getProjectId");function Id(e){return JSON.stringify({fileName:e.id||uv().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:Fd+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})}s(Id,"createString");Nd.exports={parse: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(Fd,""),content:t.content,sapui5Version:t.support.sapui5Version}},createChangeString: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=dv(t),e.appVersion=gv(t),e.projectId=mv(t,e.reference),Id(e)},toString: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 Id(e)}}});var jd=xe((VE,Ld)=>{Ld.exports={change:Dd()}});var Sg=xe(cn=>{"use strict";var Gv=/[|\\{}()[\]^$+*?.]/g,Hv=Object.prototype.hasOwnProperty,Cg=s(function(e,t){return Hv.apply(e,[t])},"hasOwn");cn.escapeRegExpChars=function(e){return e?String(e).replace(Gv,"\\$&"):""};var Kv={"&":"&","<":"<",">":">",'"':""","'":"'"},Wv=/[&<>'"]/g;function Jv(e){return Kv[e]||e}s(Jv,"encode_char");var Qv=`var _ENCODE_HTML_RULES = {
|
|
30
30
|
"&": "&"
|
|
31
31
|
, "<": "<"
|
|
32
32
|
, ">": ">"
|
|
@@ -38,12 +38,12 @@ function encode_char(c) {
|
|
|
38
38
|
return _ENCODE_HTML_RULES[c] || c;
|
|
39
39
|
};
|
|
40
40
|
`;cn.escapeXML=function(e){return e==null?"":String(e).replace(Wv,Jv)};function xg(){return Function.prototype.toString.call(this)+`;
|
|
41
|
-
`+Qv}s(xg,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(cn.escapeXML,"toString",{value:xg}):cn.escapeXML.toString=xg}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}cn.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)Cg(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};cn.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(!Cg(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};cn.cache={_data:{},set:function(e,t){this._data[e]=t},get:function(e){return this._data[e]},remove:function(e){delete this._data[e]},reset:function(){this._data={}}};cn.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};cn.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}()});var Pg=xe((qO,zv)=>{zv.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.9",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:"mocha -u tdd"}}});var jg=xe(he=>{"use strict";var vl=require("fs"),
|
|
41
|
+
`+Qv}s(xg,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(cn.escapeXML,"toString",{value:xg}):cn.escapeXML.toString=xg}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}cn.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)Cg(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};cn.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(!Cg(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};cn.cache={_data:{},set:function(e,t){this._data[e]=t},get:function(e){return this._data[e]},remove:function(e){delete this._data[e]},reset:function(){this._data={}}};cn.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};cn.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}()});var Pg=xe((qO,zv)=>{zv.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.9",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:"mocha -u tdd"}}});var jg=xe(he=>{"use strict";var vl=require("fs"),Hr=require("path"),Ge=Sg(),Eg=!1,qv=Pg().version,Xv="<",Yv=">",Zv="%",Dg="locals",eT="ejs",tT="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",Lg=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],nT=Lg.concat("cache"),Og=/^\uFEFF/,bl=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;he.cache=Ge.cache;he.fileLoader=vl.readFileSync;he.localsName=Dg;he.promiseImpl=new Function("return this;")().Promise;he.resolveInclude=function(e,t,n){var i=Hr.dirname,r=Hr.extname,a=Hr.resolve,o=a(n?t:i(t),e),l=r(e);return l||(o+=".ejs"),o};function Ag(e,t){var n;if(t.some(function(i){return n=he.resolveInclude(e,i,!0),vl.existsSync(n)}))return n}s(Ag,"resolvePaths");function iT(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=Ag(e,t.root):n=he.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=he.resolveInclude(e,t.filename),vl.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=Ag(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}s(iT,"getIncludePath");function Kr(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=he.cache.get(i),n)return n;r||(t=Ig(i).toString().replace(Og,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=Ig(i).toString().replace(Og,"")}return n=he.compile(t,e),e.cache&&he.cache.set(i,n),n}s(Kr,"handleCache");function rT(e,t,n){var i;if(n){try{i=Kr(e)(t)}catch(r){return n(r)}n(null,i)}else{if(typeof he.promiseImpl=="function")return new he.promiseImpl(function(r,a){try{i=Kr(e)(t),r(i)}catch(o){a(o)}});throw new Error("Please provide a callback function")}}s(rT,"tryHandleCache");function Ig(e){return he.fileLoader(e)}s(Ig,"fileLoader");function aT(e,t){var n=Ge.shallowCopy(Ge.createNullProtoObjWherePossible(),t);if(n.filename=iT(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return Kr(n,i.template)}return Kr(n)}s(aT,"includeFile");function Fg(e,t,n,i,r){var a=t.split(`
|
|
42
42
|
`),o=Math.max(i-3,0),l=Math.min(a.length,i+3),c=r(n),u=a.slice(o,l).map(function(f,p){var h=p+o+1;return(h==i?" >> ":" ")+h+"| "+f}).join(`
|
|
43
43
|
`);throw e.path=c,e.message=(c||"ejs")+":"+i+`
|
|
44
44
|
`+u+`
|
|
45
45
|
|
|
46
|
-
`+e.message,e}s(Fg,"rethrow");function Ng(e){return e.replace(/;(\s*$)/,"$1")}s(Ng,"stripSemi");he.compile=s(function(t,n){var i;return n&&n.scope&&(Eg||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),Eg=!0),n.context||(n.context=n.scope),delete n.scope),i=new ze(t,n),i.compile()},"compile");he.render=function(e,t,n){var i=t||Ge.createNullProtoObjWherePossible(),r=n||Ge.createNullProtoObjWherePossible();return arguments.length==2&&Ge.shallowCopyFromList(r,i,Lg),
|
|
46
|
+
`+e.message,e}s(Fg,"rethrow");function Ng(e){return e.replace(/;(\s*$)/,"$1")}s(Ng,"stripSemi");he.compile=s(function(t,n){var i;return n&&n.scope&&(Eg||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),Eg=!0),n.context||(n.context=n.scope),delete n.scope),i=new ze(t,n),i.compile()},"compile");he.render=function(e,t,n){var i=t||Ge.createNullProtoObjWherePossible(),r=n||Ge.createNullProtoObjWherePossible();return arguments.length==2&&Ge.shallowCopyFromList(r,i,Lg),Kr(r,e)(i)};he.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?Ge.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&&Ge.shallowCopy(i,a)),Ge.shallowCopyFromList(i,r,nT)),i.filename=t):r=Ge.createNullProtoObjWherePossible(),rT(i,r,n)};he.Template=ze;he.clearCache=function(){he.cache.reset()};function ze(e,t){t=t||Ge.createNullProtoObjWherePossible();var n=Ge.createNullProtoObjWherePossible();this.templateText=e,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",n.client=t.client||!1,n.escapeFunction=t.escape||t.escapeFunction||Ge.escapeXML,n.compileDebug=t.compileDebug!==!1,n.debug=!!t.debug,n.filename=t.filename,n.openDelimiter=t.openDelimiter||he.openDelimiter||Xv,n.closeDelimiter=t.closeDelimiter||he.closeDelimiter||Yv,n.delimiter=t.delimiter||he.delimiter||Zv,n.strict=t.strict||!1,n.context=t.context,n.cache=t.cache||!1,n.rmWhitespace=t.rmWhitespace,n.root=t.root,n.includer=t.includer,n.outputFunctionName=t.outputFunctionName,n.localsName=t.localsName||he.localsName||Dg,n.views=t.views,n.async=t.async,n.destructuredLocals=t.destructuredLocals,n.legacyInclude=typeof t.legacyInclude<"u"?!!t.legacyInclude:!0,n.strict?n._with=!1:n._with=typeof t._with<"u"?t._with:!0,this.opts=n,this.regex=this.createRegex()}s(ze,"Template");ze.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};ze.prototype={createRegex:function(){var e=tT,t=Ge.escapeRegExpChars(this.opts.delimiter),n=Ge.escapeRegExpChars(this.opts.openDelimiter),i=Ge.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,n).replace(/>/g,i),new RegExp(e)},compile:function(){var e,t,n=this.opts,i="",r="",a=n.escapeFunction,o,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
48
|
`,n.outputFunctionName){if(!bl.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
|
|
49
49
|
`}if(n.localsName&&!bl.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){for(var c=" var __locals = ("+n.localsName+` || {}),
|
|
@@ -68,7 +68,7 @@ try {
|
|
|
68
68
|
|
|
69
69
|
`,C.message+=`If the above error is not helpful, you may want to try EJS-Lint:
|
|
70
70
|
`,C.message+="https://github.com/RyanZim/EJS-Lint",n.async||(C.message+=`
|
|
71
|
-
`,C.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),C}var p=n.client?t:s(function(F){var N=s(function(E,I){var k=Ge.shallowCopy(Ge.createNullProtoObjWherePossible(),F);return I&&(k=Ge.shallowCopy(k,I)),aT(E,n)(k)},"include");return t.apply(n.context,[F||Ge.createNullProtoObjWherePossible(),a,N,Fg])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var h=n.filename,b=
|
|
71
|
+
`,C.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),C}var p=n.client?t:s(function(F){var N=s(function(E,I){var k=Ge.shallowCopy(Ge.createNullProtoObjWherePossible(),F);return I&&(k=Ge.shallowCopy(k,I)),aT(E,n)(k)},"include");return t.apply(n.context,[F||Ge.createNullProtoObjWherePossible(),a,N,Fg])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var h=n.filename,b=Hr.basename(h,Hr.extname(h));try{Object.defineProperty(p,"name",{value:b,writable:!1,enumerable:!1,configurable:!0})}catch{}}return p},generateSource: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(o,l){var c;if(o.indexOf(r+i)===0&&o.indexOf(r+i+i)!==0&&(c=n[l+2],!(c==i+a||c=="-"+i+a||c=="_"+i+a)))throw new Error('Could not find matching close tag for "'+o+'".');t.scanLine(o)})},parseTemplateText: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},_addOutput: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
|
`},scanLine: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=ze.modes.EVAL;break;case i+n+"=":this.mode=ze.modes.ESCAPED;break;case i+n+"-":this.mode=ze.modes.RAW;break;case i+n+"#":this.mode=ze.modes.COMMENT;break;case i+n+n:this.mode=ze.modes.LITERAL,this.source+=' ; __append("'+e.replace(i+n+n,i+n)+`")
|
|
@@ -79,14 +79,14 @@ try {
|
|
|
79
79
|
`;break;case ze.modes.ESCAPED:this.source+=" ; __append(escapeFn("+Ng(e)+`))
|
|
80
80
|
`;break;case ze.modes.RAW:this.source+=" ; __append("+Ng(e)+`)
|
|
81
81
|
`;break;case ze.modes.COMMENT:break;case ze.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&a&&(this.currentLine+=a,this.source+=" ; __line = "+this.currentLine+`
|
|
82
|
-
`)}};he.escapeXML=Ge.escapeXML;he.__express=he.renderFile;he.VERSION=qv;he.name=eT;typeof window<"u"&&(window.ejs=he)});var ni={};
|
|
83
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}s(vs,"_nonIterableRest");function Ts(e){return ys(e)||hs(e)||bs(e)||vs()}s(Ts,"_toArray");function Fu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}s(Fu,"ownKeys$6");function Nu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fu(Object(n),!0).forEach(function(i){Zt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}s(Nu,"_objectSpread$6");var ky={type:"logger",log:s(function(t){this.output("log",t)},"log"),warn:s(function(t){this.output("warn",t)},"warn"),error:s(function(t){this.output("error",t)},"error"),output:s(function(t,n){console&&console[t]&&console[t].apply(console,n)},"output")},By=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Dt(this,e),this.init(t,n)}return s(e,"Logger"),Lt(e,[{key:"init",value:s(function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=n||ky,this.options=i,this.debug=i.debug},"init")},{key:"setDebug",value:s(function(n){this.debug=n},"setDebug")},{key:"log",value:s(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"log","",!0)},"log")},{key:"warn",value:s(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"warn","",!0)},"warn")},{key:"error",value:s(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"error","")},"error")},{key:"deprecate",value:s(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"warn","WARNING DEPRECATED: ",!0)},"deprecate")},{key:"forward",value:s(function(n,i,r,a){return a&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(r).concat(this.prefix," ").concat(n[0])),this.logger[i](n))},"forward")},{key:"create",value:s(function(n){return new e(this.logger,Nu(Nu({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))},"create")},{key:"clone",value:s(function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)},"clone")}]),e}(),tn=new By,Dn=function(){function e(){Dt(this,e),this.observers={}}return s(e,"EventEmitter"),Lt(e,[{key:"on",value:s(function(n,i){var r=this;return n.split(" ").forEach(function(a){r.observers[a]=r.observers[a]||[],r.observers[a].push(i)}),this},"on")},{key:"off",value:s(function(n,i){if(this.observers[n]){if(!i){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(r){return r!==i})}},"off")},{key:"emit",value:s(function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];if(this.observers[n]){var o=[].concat(this.observers[n]);o.forEach(function(c){c.apply(void 0,r)})}if(this.observers["*"]){var l=[].concat(this.observers["*"]);l.forEach(function(c){c.apply(c,[n].concat(r))})}},"emit")}]),e}();function yr(){var e,t,n=new Promise(function(i,r){e=i,t=r});return n.resolve=e,n.reject=t,n}s(yr,"defer");function Du(e){return e==null?"":""+e}s(Du,"makeString");function Uy(e,t,n){e.forEach(function(i){t[i]&&(n[i]=t[i])})}s(Uy,"copy");function Cs(e,t,n){function i(l){return l&&l.indexOf("###")>-1?l.replace(/###/g,"."):l}s(i,"cleanKey");function r(){return!e||typeof e=="string"}s(r,"canNotTraverseDeeper");for(var a=typeof t!="string"?[].concat(t):t.split(".");a.length>1;){if(r())return{};var o=i(a.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return r()?{}:{obj:e,k:i(a.shift())}}s(Cs,"getLastOfPath");function Lu(e,t,n){var i=Cs(e,t,Object),r=i.obj,a=i.k;r[a]=n}s(Lu,"setPath");function Gy(e,t,n,i){var r=Cs(e,t,Object),a=r.obj,o=r.k;a[o]=a[o]||[],i&&(a[o]=a[o].concat(n)),i||a[o].push(n)}s(Gy,"pushPath");function Na(e,t){var n=Cs(e,t),i=n.obj,r=n.k;if(i)return i[r]}s(Na,"getPath");function Hy(e,t,n){var i=Na(e,n);return i!==void 0?i:Na(t,n)}s(Hy,"getPathWithDefaults");function Ju(e,t,n){for(var i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?typeof e[i]=="string"||e[i]instanceof String||typeof t[i]=="string"||t[i]instanceof String?n&&(e[i]=t[i]):Ju(e[i],t[i],n):e[i]=t[i]);return e}s(Ju,"deepExtend");function Vi(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}s(Vi,"regexEscape");var Ky={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Wy(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Ky[t]}):e}s(Wy,"escape");var ja=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Jy=[" ",",","?","!",";"];function Qy(e,t,n){t=t||"",n=n||"";var i=Jy.filter(function(l){return t.indexOf(l)<0&&n.indexOf(l)<0});if(i.length===0)return!0;var r=new RegExp("(".concat(i.map(function(l){return l==="?"?"\\?":l}).join("|"),")")),a=!r.test(e);if(!a){var o=e.indexOf(n);o>0&&!r.test(e.substring(0,o))&&(a=!0)}return a}s(Qy,"looksLikeObjectPath");function Da(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var i=t.split(n),r=e,a=0;a<i.length;++a){if(!r||typeof r[i[a]]=="string"&&a+1<i.length)return;if(r[i[a]]===void 0){for(var o=2,l=i.slice(a,a+o).join(n),c=r[l];c===void 0&&i.length>a+o;)o++,l=i.slice(a,a+o).join(n),c=r[l];if(c===void 0)return;if(c===null)return null;if(t.endsWith(l)){if(typeof c=="string")return c;if(l&&typeof c[l]=="string")return c[l]}var u=i.slice(a+o).join(n);return u?Da(c,u,n):void 0}r=r[i[a]]}return r}}s(Da,"deepFind");function ju(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}s(ju,"ownKeys$5");function Ia(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ju(Object(n),!0).forEach(function(i){Zt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ju(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}s(Ia,"_objectSpread$5");function zy(e){var t=qy();return s(function(){var i=jt(e),r;if(t){var a=jt(this).constructor;r=Reflect.construct(i,arguments,a)}else r=i.apply(this,arguments);return ri(this,r)},"_createSuperInternal")}s(zy,"_createSuper$3");function qy(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}s(qy,"_isNativeReflectConstruct$3");var Xy=function(e){ji(n,e);var t=zy(n);function n(i){var r,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Dt(this,n),r=t.call(this),ja&&Dn.call(kt(r)),r.data=i||{},r.options=a,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return s(n,"ResourceStore"),Lt(n,[{key:"addNamespaces",value:s(function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)},"addNamespaces")},{key:"removeNamespaces",value:s(function(r){var a=this.options.ns.indexOf(r);a>-1&&this.options.ns.splice(a,1)},"removeNamespaces")},{key:"getResource",value:s(function(r,a,o){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,u=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure,f=[r,a];o&&typeof o!="string"&&(f=f.concat(o)),o&&typeof o=="string"&&(f=f.concat(c?o.split(c):o)),r.indexOf(".")>-1&&(f=r.split("."));var p=Na(this.data,f);return p||!u||typeof o!="string"?p:Da(this.data&&this.data[r]&&this.data[r][a],o,c)},"getResource")},{key:"addResource",value:s(function(r,a,o,l){var c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,f=[r,a];o&&(f=f.concat(u?o.split(u):o)),r.indexOf(".")>-1&&(f=r.split("."),l=a,a=f[1]),this.addNamespaces(a),Lu(this.data,f,l),c.silent||this.emit("added",r,a,o,l)},"addResource")},{key:"addResources",value:s(function(r,a,o){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var c in o)(typeof o[c]=="string"||Object.prototype.toString.apply(o[c])==="[object Array]")&&this.addResource(r,a,c,o[c],{silent:!0});l.silent||this.emit("added",r,a,o)},"addResources")},{key:"addResourceBundle",value:s(function(r,a,o,l,c){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},f=[r,a];r.indexOf(".")>-1&&(f=r.split("."),l=o,o=a,a=f[1]),this.addNamespaces(a);var p=Na(this.data,f)||{};l?Ju(p,o,c):p=Ia(Ia({},p),o),Lu(this.data,f,p),u.silent||this.emit("added",r,a,o)},"addResourceBundle")},{key:"removeResourceBundle",value:s(function(r,a){this.hasResourceBundle(r,a)&&delete this.data[r][a],this.removeNamespaces(a),this.emit("removed",r,a)},"removeResourceBundle")},{key:"hasResourceBundle",value:s(function(r,a){return this.getResource(r,a)!==void 0},"hasResourceBundle")},{key:"getResourceBundle",value:s(function(r,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Ia(Ia({},{}),this.getResource(r,a)):this.getResource(r,a)},"getResourceBundle")},{key:"getDataByLanguage",value:s(function(r){return this.data[r]},"getDataByLanguage")},{key:"hasLanguageSomeTranslations",value:s(function(r){var a=this.getDataByLanguage(r),o=a&&Object.keys(a)||[];return!!o.find(function(l){return a[l]&&Object.keys(a[l]).length>0})},"hasLanguageSomeTranslations")},{key:"toJSON",value:s(function(){return this.data},"toJSON")}]),n}(Dn),Qu={processors:{},addPostProcessor:s(function(t){this.processors[t.name]=t},"addPostProcessor"),handle:s(function(t,n,i,r,a){var o=this;return t.forEach(function(l){o.processors[l]&&(n=o.processors[l].process(n,i,r,a))}),n},"handle")};function Vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}s(Vu,"ownKeys$4");function nt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vu(Object(n),!0).forEach(function(i){Zt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}s(nt,"_objectSpread$4");function Yy(e){var t=Zy();return s(function(){var i=jt(e),r;if(t){var a=jt(this).constructor;r=Reflect.construct(i,arguments,a)}else r=i.apply(this,arguments);return ri(this,r)},"_createSuperInternal")}s(Yy,"_createSuper$2");function Zy(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}s(Zy,"_isNativeReflectConstruct$2");var _u={},wu=function(e){ji(n,e);var t=Yy(n);function n(i){var r,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Dt(this,n),r=t.call(this),ja&&Dn.call(kt(r)),Uy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,kt(r)),r.options=a,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=tn.create("translator"),r}return s(n,"Translator"),Lt(n,[{key:"changeLanguage",value:s(function(r){r&&(this.language=r)},"changeLanguage")},{key:"exists",value:s(function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var o=this.resolve(r,a);return o&&o.res!==void 0},"exists")},{key:"extractFromKey",value:s(function(r,a){var o=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,c=a.ns||this.options.defaultNS||[],u=o&&r.indexOf(o)>-1,f=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!Qy(r,o,l);if(u&&!f){var p=r.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:r,namespaces:c};var h=r.split(o);(o!==l||o===l&&this.options.ns.indexOf(h[0])>-1)&&(c=h.shift()),r=h.join(l)}return typeof c=="string"&&(c=[c]),{key:r,namespaces:c}},"extractFromKey")},{key:"translate",value:s(function(r,a,o){var l=this;if(et(a)!=="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),et(a)==="object"&&(a=nt({},a)),a||(a={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var c=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,u=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,f=this.extractFromKey(r[r.length-1],a),p=f.key,h=f.namespaces,b=h[h.length-1],C=a.lng||this.language,F=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(C&&C.toLowerCase()==="cimode"){if(F){var N=a.nsSeparator||this.options.nsSeparator;return c?{res:"".concat(b).concat(N).concat(p),usedKey:p,exactUsedKey:p,usedLng:C,usedNS:b}:"".concat(b).concat(N).concat(p)}return c?{res:p,usedKey:p,exactUsedKey:p,usedLng:C,usedNS:b}:p}var E=this.resolve(r,a),I=E&&E.res,k=E&&E.usedKey||p,w=E&&E.exactUsedKey||p,oe=Object.prototype.toString.apply(I),ye=["[object Number]","[object Function]","[object RegExp]"],tt=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,Qt=typeof I!="string"&&typeof I!="boolean"&&typeof I!="number";if(x&&I&&Qt&&ye.indexOf(oe)<0&&!(typeof tt=="string"&&oe==="[object Array]")){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var pt=this.options.returnedObjectHandler?this.options.returnedObjectHandler(k,I,nt(nt({},a),{},{ns:h})):"key '".concat(p," (").concat(this.language,")' returned an object instead of string.");return c?(E.res=pt,E):pt}if(u){var Fe=oe==="[object Array]",At=Fe?[]:{},Fi=Fe?w:k;for(var dt in I)if(Object.prototype.hasOwnProperty.call(I,dt)){var pn="".concat(Fi).concat(u).concat(dt);At[dt]=this.translate(pn,nt(nt({},a),{joinArrays:!1,ns:h})),At[dt]===pn&&(At[dt]=I[dt])}I=At}}else if(x&&typeof tt=="string"&&oe==="[object Array]")I=I.join(tt),I&&(I=this.extendTranslation(I,r,a,o));else{var pe=!1,zt=!1,dn=a.count!==void 0&&typeof a.count!="string",qt=n.hasDefaultValue(a),It=dn?this.pluralResolver.getSuffix(C,a.count,a):"",Ft=a["defaultValue".concat(It)]||a.defaultValue;!this.isValidLookup(I)&&qt&&(pe=!0,I=Ft),this.isValidLookup(I)||(zt=!0,I=p);var X=a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,$t=X&&zt?void 0:I,Xt=qt&&Ft!==I&&this.options.updateMissing;if(zt||pe||Xt){if(this.logger.log(Xt?"updateKey":"missingKey",C,b,p,Xt?Ft:I),u){var Oe=this.resolve(p,nt(nt({},a),{},{keySeparator:!1}));Oe&&Oe.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.")}var y=[],d=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&d&&d[0])for(var A=0;A<d.length;A++)y.push(d[A]);else this.options.saveMissingTo==="all"?y=this.languageUtils.toResolveHierarchy(a.lng||this.language):y.push(a.lng||this.language);var v=s(function(ve,be,He){var Ze=qt&&He!==I?He:$t;l.options.missingKeyHandler?l.options.missingKeyHandler(ve,b,be,Ze,Xt,a):l.backendConnector&&l.backendConnector.saveMissing&&l.backendConnector.saveMissing(ve,b,be,Ze,Xt,a),l.emit("missingKey",ve,b,be,I)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&dn?y.forEach(function(re){l.pluralResolver.getSuffixes(re,a).forEach(function(ve){v([re],p+ve,a["defaultValue".concat(ve)]||Ft)})}):v(y,p,Ft))}I=this.extendTranslation(I,r,a,E,o),zt&&I===p&&this.options.appendNamespaceToMissingKey&&(I="".concat(b,":").concat(p)),(zt||pe)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?I=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(b,":").concat(p):p,pe?I:void 0):I=this.options.parseMissingKeyHandler(I))}return c?(E.res=I,E):I},"translate")},{key:"extendTranslation",value:s(function(r,a,o,l,c){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,nt(nt({},this.options.interpolation.defaultVariables),o),l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(nt(nt({},o),{interpolation:nt(nt({},this.options.interpolation),o.interpolation)}));var f=typeof r=="string"&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),p;if(f){var h=r.match(this.interpolator.nestingRegexp);p=h&&h.length}var b=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(b=nt(nt({},this.options.interpolation.defaultVariables),b)),r=this.interpolator.interpolate(r,b,o.lng||this.language,o),f){var C=r.match(this.interpolator.nestingRegexp),F=C&&C.length;p<F&&(o.nest=!1)}!o.lng&&this.options.compatibilityAPI!=="v1"&&l&&l.res&&(o.lng=l.usedLng),o.nest!==!1&&(r=this.interpolator.nest(r,function(){for(var I=arguments.length,k=new Array(I),w=0;w<I;w++)k[w]=arguments[w];return c&&c[0]===k[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(k[0]," in key: ").concat(a[0])),null):u.translate.apply(u,k.concat([a]))},o)),o.interpolation&&this.interpolator.reset()}var N=o.postProcess||this.options.postProcess,E=typeof N=="string"?[N]:N;return r!=null&&E&&E.length&&o.applyPostProcessor!==!1&&(r=Qu.handle(E,r,a,this.options&&this.options.postProcessPassResolved?nt({i18nResolved:l},o):o,this)),r},"extendTranslation")},{key:"resolve",value:s(function(r){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,c,u,f,p;return typeof r=="string"&&(r=[r]),r.forEach(function(h){if(!a.isValidLookup(l)){var b=a.extractFromKey(h,o),C=b.key;c=C;var F=b.namespaces;a.options.fallbackNS&&(F=F.concat(a.options.fallbackNS));var N=o.count!==void 0&&typeof o.count!="string",E=N&&!o.ordinal&&o.count===0&&a.pluralResolver.shouldUseIntlApi(),I=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",k=o.lngs?o.lngs:a.languageUtils.toResolveHierarchy(o.lng||a.language,o.fallbackLng);F.forEach(function(w){a.isValidLookup(l)||(p=w,!_u["".concat(k[0],"-").concat(w)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(p)&&(_u["".concat(k[0],"-").concat(w)]=!0,a.logger.warn('key "'.concat(c,'" for languages "').concat(k.join(", "),`" won't get resolved as namespace "`).concat(p,'" 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!!!")),k.forEach(function(oe){if(!a.isValidLookup(l)){f=oe;var ye=[C];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(ye,C,oe,w,o);else{var tt;N&&(tt=a.pluralResolver.getSuffix(oe,o.count,o));var x="".concat(a.options.pluralSeparator,"zero");if(N&&(ye.push(C+tt),E&&ye.push(C+x)),I){var Qt="".concat(C).concat(a.options.contextSeparator).concat(o.context);ye.push(Qt),N&&(ye.push(Qt+tt),E&&ye.push(Qt+x))}}for(var pt;pt=ye.pop();)a.isValidLookup(l)||(u=pt,l=a.getResource(oe,w,pt,o))}}))})}}),{res:l,usedKey:c,exactUsedKey:u,usedLng:f,usedNS:p}},"resolve")},{key:"isValidLookup",value:s(function(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")},"isValidLookup")},{key:"getResource",value:s(function(r,a,o){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,a,o,l):this.resourceStore.getResource(r,a,o,l)},"getResource")}],[{key:"hasDefaultValue",value:s(function(r){var a="defaultValue";for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&a===o.substring(0,a.length)&&r[o]!==void 0)return!0;return!1},"hasDefaultValue")}]),n}(Dn);function xs(e){return e.charAt(0).toUpperCase()+e.slice(1)}s(xs,"capitalize");var Ru=function(){function e(t){Dt(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=tn.create("languageUtils")}return s(e,"LanguageUtil"),Lt(e,[{key:"getScriptPartFromCode",value:s(function(n){if(!n||n.indexOf("-")<0)return null;var i=n.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))},"getScriptPartFromCode")},{key:"getLanguagePartFromCode",value:s(function(n){if(!n||n.indexOf("-")<0)return n;var i=n.split("-");return this.formatLanguageCode(i[0])},"getLanguagePartFromCode")},{key:"formatLanguageCode",value:s(function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var i=["hans","hant","latn","cyrl","cans","mong","arab"],r=n.split("-");return this.options.lowerCaseLng?r=r.map(function(a){return a.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),i.indexOf(r[1].toLowerCase())>-1&&(r[1]=xs(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),i.indexOf(r[1].toLowerCase())>-1&&(r[1]=xs(r[1].toLowerCase())),i.indexOf(r[2].toLowerCase())>-1&&(r[2]=xs(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n},"formatLanguageCode")},{key:"isSupportedCode",value:s(function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1},"isSupportedCode")},{key:"getBestMatchFromCodes",value:s(function(n){var i=this;if(!n)return null;var r;return n.forEach(function(a){if(!r){var o=i.formatLanguageCode(a);(!i.options.supportedLngs||i.isSupportedCode(o))&&(r=o)}}),!r&&this.options.supportedLngs&&n.forEach(function(a){if(!r){var o=i.getLanguagePartFromCode(a);if(i.isSupportedCode(o))return r=o;r=i.options.supportedLngs.find(function(l){if(l===o)return l;if(!(l.indexOf("-")<0&&o.indexOf("-")<0)&&l.indexOf(o)===0)return l})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r},"getBestMatchFromCodes")},{key:"getFallbackCodes",value:s(function(n,i){if(!n)return[];if(typeof n=="function"&&(n=n(i)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!i)return n.default||[];var r=n[i];return r||(r=n[this.getScriptPartFromCode(i)]),r||(r=n[this.formatLanguageCode(i)]),r||(r=n[this.getLanguagePartFromCode(i)]),r||(r=n.default),r||[]},"getFallbackCodes")},{key:"toResolveHierarchy",value:s(function(n,i){var r=this,a=this.getFallbackCodes(i||this.options.fallbackLng||[],n),o=[],l=s(function(u){u&&(r.isSupportedCode(u)?o.push(u):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))},"addCode");return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(n))):typeof n=="string"&&l(this.formatLanguageCode(n)),a.forEach(function(c){o.indexOf(c)<0&&l(r.formatLanguageCode(c))}),o},"toResolveHierarchy")}]),e}(),eh=[{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}],th={1:s(function(t){return+(t>1)},"_"),2:s(function(t){return+(t!=1)},"_"),3:s(function(t){return 0},"_"),4:s(function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},"_"),5:s(function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},"_"),6:s(function(t){return t==1?0:t>=2&&t<=4?1:2},"_"),7:s(function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},"_"),8:s(function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},"_"),9:s(function(t){return+(t>=2)},"_"),10:s(function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},"_"),11:s(function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},"_"),12:s(function(t){return+(t%10!=1||t%100==11)},"_"),13:s(function(t){return+(t!==0)},"_"),14:s(function(t){return t==1?0:t==2?1:t==3?2:3},"_"),15:s(function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},"_"),16:s(function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},"_"),17:s(function(t){return t==1||t%10==1&&t%100!=11?0:1},"_"),18:s(function(t){return t==0?0:t==1?1:2},"_"),19:s(function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},"_"),20:s(function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},"_"),21:s(function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},"_"),22:s(function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3},"_")},nh=["v1","v2","v3"],$u={zero:0,one:1,two:2,few:3,many:4,other:5};function ih(){var e={};return eh.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:th[t.fc]}})}),e}s(ih,"createRules");var rh=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Dt(this,e),this.languageUtils=t,this.options=n,this.logger=tn.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(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=ih()}return s(e,"PluralResolver"),Lt(e,[{key:"addRule",value:s(function(n,i){this.rules[n]=i},"addRule")},{key:"getRule",value:s(function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:i.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]},"getRule")},{key:"needsPlural",value:s(function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(n,i);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1},"needsPlural")},{key:"getPluralFormsOfKey",value:s(function(n,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,r).map(function(a){return"".concat(i).concat(a)})},"getPluralFormsOfKey")},{key:"getSuffixes",value:s(function(n){var i=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(n,r);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort(function(o,l){return $u[o]-$u[l]}).map(function(o){return"".concat(i.options.prepend).concat(o)}):a.numbers.map(function(o){return i.getSuffix(n,o,r)}):[]},"getSuffixes")},{key:"getSuffix",value:s(function(n,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this.getRule(n,r);return a?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(a.select(i)):this.getSuffixRetroCompatible(a,i):(this.logger.warn("no plural rule found for: ".concat(n)),"")},"getSuffix")},{key:"getSuffixRetroCompatible",value:s(function(n,i){var r=this,a=n.noAbs?n.plurals(i):n.plurals(Math.abs(i)),o=n.numbers[a];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));var l=s(function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()},"returnSuffix");return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?"_plural_".concat(o.toString()):l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?l():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()},"getSuffixRetroCompatible")},{key:"shouldUseIntlApi",value:s(function(){return!nh.includes(this.options.compatibilityJSON)},"shouldUseIntlApi")}]),e}();function Mu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}s(Mu,"ownKeys$3");function Bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mu(Object(n),!0).forEach(function(i){Zt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}s(Bt,"_objectSpread$3");function ku(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=Hy(e,t,n);return!a&&r&&typeof n=="string"&&(a=Da(e,n,i),a===void 0&&(a=Da(t,n,i))),a}s(ku,"deepFindWithDefaults");var ah=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Dt(this,e),this.logger=tn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return s(e,"Interpolator"),Lt(e,[{key:"init",value:s(function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var i=n.interpolation;this.escape=i.escape!==void 0?i.escape:Wy,this.escapeValue=i.escapeValue!==void 0?i.escapeValue:!0,this.useRawValueToEscape=i.useRawValueToEscape!==void 0?i.useRawValueToEscape:!1,this.prefix=i.prefix?Vi(i.prefix):i.prefixEscaped||"{{",this.suffix=i.suffix?Vi(i.suffix):i.suffixEscaped||"}}",this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||",",this.unescapePrefix=i.unescapeSuffix?"":i.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":i.unescapeSuffix||"",this.nestingPrefix=i.nestingPrefix?Vi(i.nestingPrefix):i.nestingPrefixEscaped||Vi("$t("),this.nestingSuffix=i.nestingSuffix?Vi(i.nestingSuffix):i.nestingSuffixEscaped||Vi(")"),this.nestingOptionsSeparator=i.nestingOptionsSeparator?i.nestingOptionsSeparator:i.nestingOptionsSeparator||",",this.maxReplaces=i.maxReplaces?i.maxReplaces:1e3,this.alwaysFormat=i.alwaysFormat!==void 0?i.alwaysFormat:!1,this.resetRegExp()},"init")},{key:"reset",value:s(function(){this.options&&this.init(this.options)},"reset")},{key:"resetRegExp",value:s(function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var i="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(i,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")},"resetRegExp")},{key:"interpolate",value:s(function(n,i,r,a){var o=this,l,c,u,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function p(N){return N.replace(/\$/g,"$$$$")}s(p,"regexSafe");var h=s(function(E){if(E.indexOf(o.formatSeparator)<0){var I=ku(i,f,E,o.options.keySeparator,o.options.ignoreJSONStructure);return o.alwaysFormat?o.format(I,void 0,r,Bt(Bt(Bt({},a),i),{},{interpolationkey:E})):I}var k=E.split(o.formatSeparator),w=k.shift().trim(),oe=k.join(o.formatSeparator).trim();return o.format(ku(i,f,w,o.options.keySeparator,o.options.ignoreJSONStructure),oe,r,Bt(Bt(Bt({},a),i),{},{interpolationkey:w}))},"handleFormat");this.resetRegExp();var b=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,C=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,F=[{regex:this.regexpUnescape,safeValue:s(function(E){return p(E)},"safeValue")},{regex:this.regexp,safeValue:s(function(E){return o.escapeValue?p(o.escape(E)):p(E)},"safeValue")}];return F.forEach(function(N){for(u=0;l=N.regex.exec(n);){var E=l[1].trim();if(c=h(E),c===void 0)if(typeof b=="function"){var I=b(n,l,a);c=typeof I=="string"?I:""}else if(a&&Object.prototype.hasOwnProperty.call(a,E))c="";else if(C){c=l[0];continue}else o.logger.warn("missed to pass in variable ".concat(E," for interpolating ").concat(n)),c="";else typeof c!="string"&&!o.useRawValueToEscape&&(c=Du(c));var k=N.safeValue(c);if(n=n.replace(l[0],k),C?(N.regex.lastIndex+=c.length,N.regex.lastIndex-=l[0].length):N.regex.lastIndex=0,u++,u>=o.maxReplaces)break}}),n},"interpolate")},{key:"nest",value:s(function(n,i){var r=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,l,c;function u(b,C){var F=this.nestingOptionsSeparator;if(b.indexOf(F)<0)return b;var N=b.split(new RegExp("".concat(F,"[ ]*{"))),E="{".concat(N[1]);b=N[0],E=this.interpolate(E,c);var I=E.match(/'/g),k=E.match(/"/g);(I&&I.length%2===0&&!k||k.length%2!==0)&&(E=E.replace(/'/g,'"'));try{c=JSON.parse(E),C&&(c=Bt(Bt({},C),c))}catch(w){return this.logger.warn("failed parsing options string in nesting for key ".concat(b),w),"".concat(b).concat(F).concat(E)}return delete c.defaultValue,b}for(s(u,"handleHasOptions");o=this.nestingRegexp.exec(n);){var f=[];c=Bt({},a),c=c.replace&&typeof c.replace!="string"?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;var p=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){var h=o[1].split(this.formatSeparator).map(function(b){return b.trim()});o[1]=h.shift(),f=h,p=!0}if(l=i(u.call(this,o[1].trim(),c),c),l&&o[0]===n&&typeof l!="string")return l;typeof l!="string"&&(l=Du(l)),l||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(n)),l=""),p&&(l=f.reduce(function(b,C){return r.format(b,C,a.lng,Bt(Bt({},a),{},{interpolationkey:o[1].trim()}))},l.trim())),n=n.replace(o[0],l),this.regexp.lastIndex=0}return n},"nest")}]),e}();function Bu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}s(Bu,"ownKeys$2");function gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bu(Object(n),!0).forEach(function(i){Zt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}s(gn,"_objectSpread$2");function oh(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var i=e.split("(");t=i[0].toLowerCase().trim();var r=i[1].substring(0,i[1].length-1);if(t==="currency"&&r.indexOf(":")<0)n.currency||(n.currency=r.trim());else if(t==="relativetime"&&r.indexOf(":")<0)n.range||(n.range=r.trim());else{var a=r.split(";");a.forEach(function(o){if(o){var l=o.split(":"),c=Ts(l),u=c[0],f=c.slice(1),p=f.join(":").trim().replace(/^'+|'+$/g,"");n[u.trim()]||(n[u.trim()]=p),p==="false"&&(n[u.trim()]=!1),p==="true"&&(n[u.trim()]=!0),isNaN(p)||(n[u.trim()]=parseInt(p,10))}})}}return{formatName:t,formatOptions:n}}s(oh,"parseFormatStr");function _i(e){var t={};return s(function(i,r,a){var o=r+JSON.stringify(a),l=t[o];return l||(l=e(r,a),t[o]=l),l(i)},"invokeFormatter")}s(_i,"createCachedFormatter");var sh=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Dt(this,e),this.logger=tn.create("formatter"),this.options=t,this.formats={number:_i(function(n,i){var r=new Intl.NumberFormat(n,gn({},i));return function(a){return r.format(a)}}),currency:_i(function(n,i){var r=new Intl.NumberFormat(n,gn(gn({},i),{},{style:"currency"}));return function(a){return r.format(a)}}),datetime:_i(function(n,i){var r=new Intl.DateTimeFormat(n,gn({},i));return function(a){return r.format(a)}}),relativetime:_i(function(n,i){var r=new Intl.RelativeTimeFormat(n,gn({},i));return function(a){return r.format(a,i.range||"day")}}),list:_i(function(n,i){var r=new Intl.ListFormat(n,gn({},i));return function(a){return r.format(a)}})},this.init(t)}return s(e,"Formatter"),Lt(e,[{key:"init",value:s(function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},r=i.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","},"init")},{key:"add",value:s(function(n,i){this.formats[n.toLowerCase().trim()]=i},"add")},{key:"addCached",value:s(function(n,i){this.formats[n.toLowerCase().trim()]=_i(i)},"addCached")},{key:"format",value:s(function(n,i,r){var a=this,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=i.split(this.formatSeparator),c=l.reduce(function(u,f){var p=oh(f),h=p.formatName,b=p.formatOptions;if(a.formats[h]){var C=u;try{var F=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},N=F.locale||F.lng||o.locale||o.lng||r;C=a.formats[h](u,N,gn(gn(gn({},b),o),F))}catch(E){a.logger.warn(E)}return C}else a.logger.warn("there was no format function for ".concat(h));return u},n);return c},"format")}]),e}();function Uu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}s(Uu,"ownKeys$1");function Gu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uu(Object(n),!0).forEach(function(i){Zt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}s(Gu,"_objectSpread$1");function lh(e){var t=ch();return s(function(){var i=jt(e),r;if(t){var a=jt(this).constructor;r=Reflect.construct(i,arguments,a)}else r=i.apply(this,arguments);return ri(this,r)},"_createSuperInternal")}s(lh,"_createSuper$1");function ch(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}s(ch,"_isNativeReflectConstruct$1");function fh(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}s(fh,"removePending");var uh=function(e){ji(n,e);var t=lh(n);function n(i,r,a){var o,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Dt(this,n),o=t.call(this),ja&&Dn.call(kt(o)),o.backend=i,o.store=r,o.services=a,o.languageUtils=a.languageUtils,o.options=l,o.logger=tn.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=l.maxParallelReads||10,o.readingCalls=0,o.maxRetries=l.maxRetries>=0?l.maxRetries:5,o.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(a,l.backend,l),o}return s(n,"Connector"),Lt(n,[{key:"queueLoad",value:s(function(r,a,o,l){var c=this,u={},f={},p={},h={};return r.forEach(function(b){var C=!0;a.forEach(function(F){var N="".concat(b,"|").concat(F);!o.reload&&c.store.hasResourceBundle(b,F)?c.state[N]=2:c.state[N]<0||(c.state[N]===1?f[N]===void 0&&(f[N]=!0):(c.state[N]=1,C=!1,f[N]===void 0&&(f[N]=!0),u[N]===void 0&&(u[N]=!0),h[F]===void 0&&(h[F]=!0)))}),C||(p[b]=!0)}),(Object.keys(u).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(u),pending:Object.keys(f),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(h)}},"queueLoad")},{key:"loaded",value:s(function(r,a,o){var l=r.split("|"),c=l[0],u=l[1];a&&this.emit("failedLoading",c,u,a),o&&this.store.addResourceBundle(c,u,o),this.state[r]=a?-1:2;var f={};this.queue.forEach(function(p){Gy(p.loaded,[c],u),fh(p,r),a&&p.errors.push(a),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(function(h){f[h]||(f[h]={});var b=p.loaded[h];b.length&&b.forEach(function(C){f[h][C]===void 0&&(f[h][C]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(function(p){return!p.done})},"loaded")},{key:"read",value:s(function(r,a,o){var l=this,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,f=arguments.length>5?arguments[5]:void 0;if(!r.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:a,fcName:o,tried:c,wait:u,callback:f});return}this.readingCalls++;var p=s(function(F,N){if(l.readingCalls--,l.waitingReads.length>0){var E=l.waitingReads.shift();l.read(E.lng,E.ns,E.fcName,E.tried,E.wait,E.callback)}if(F&&N&&c<l.maxRetries){setTimeout(function(){l.read.call(l,r,a,o,c+1,u*2,f)},u);return}f(F,N)},"resolver"),h=this.backend[o].bind(this.backend);if(h.length===2){try{var b=h(r,a);b&&typeof b.then=="function"?b.then(function(C){return p(null,C)}).catch(p):p(null,b)}catch(C){p(C)}return}return h(r,a,p)},"read")},{key:"prepareLoading",value:s(function(r,a){var o=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=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."),c&&c();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof a=="string"&&(a=[a]);var u=this.queueLoad(r,a,l,c);if(!u.toLoad.length)return u.pending.length||c(),null;u.toLoad.forEach(function(f){o.loadOne(f)})},"prepareLoading")},{key:"load",value:s(function(r,a,o){this.prepareLoading(r,a,{},o)},"load")},{key:"reload",value:s(function(r,a,o){this.prepareLoading(r,a,{reload:!0},o)},"reload")},{key:"loadOne",value:s(function(r){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=r.split("|"),c=l[0],u=l[1];this.read(c,u,"read",void 0,void 0,function(f,p){f&&a.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(c," failed"),f),!f&&p&&a.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(c),p),a.loaded(r,f,p)})},"loadOne")},{key:"saveMissing",value:s(function(r,a,o,l,c){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},f=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(a,'" 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(!(o==null||o==="")){if(this.backend&&this.backend.create){var p=Gu(Gu({},u),{},{isUpdate:c}),h=this.backend.create.bind(this.backend);if(h.length<6)try{var b;h.length===5?b=h(r,a,o,l,p):b=h(r,a,o,l),b&&typeof b.then=="function"?b.then(function(C){return f(null,C)}).catch(f):f(null,b)}catch(C){f(C)}else h(r,a,o,l,f,p)}!r||!r[0]||this.store.addResource(r[0],a,o,l)}},"saveMissing")}]),n}(Dn);function Hu(){return{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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:s(function(t){var n={};if(et(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),et(t[2])==="object"||et(t[3])==="object"){var i=t[3]||t[2];Object.keys(i).forEach(function(r){n[r]=i[r]})}return n},"handle"),interpolation:{escapeValue:!0,format:s(function(t,n,i,r){return t},"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}s(Hu,"get");function Ku(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}s(Ku,"transformOptions");function Wu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}s(Wu,"ownKeys");function en(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wu(Object(n),!0).forEach(function(i){Zt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}s(en,"_objectSpread");function ph(e){var t=dh();return s(function(){var i=jt(e),r;if(t){var a=jt(this).constructor;r=Reflect.construct(i,arguments,a)}else r=i.apply(this,arguments);return ri(this,r)},"_createSuperInternal")}s(ph,"_createSuper");function dh(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}s(dh,"_isNativeReflectConstruct");function Fa(){}s(Fa,"noop");function gh(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}s(gh,"bindMemberFunctions");var La=function(e){ji(n,e);var t=ph(n);function n(){var i,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(Dt(this,n),i=t.call(this),ja&&Dn.call(kt(i)),i.options=Ku(r),i.services={},i.logger=tn,i.modules={external:[]},gh(kt(i)),a&&!i.isInitialized&&!r.isClone){if(!i.options.initImmediate)return i.init(r,a),ri(i,kt(i));setTimeout(function(){i.init(r,a)},0)}return i}return s(n,"I18n"),Lt(n,[{key:"init",value:s(function(){var r=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;typeof a=="function"&&(o=a,a={}),!a.defaultNS&&a.defaultNS!==!1&&a.ns&&(typeof a.ns=="string"?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));var l=Hu();this.options=en(en(en({},l),this.options),Ku(a)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=en(en({},l.interpolation),this.options.interpolation)),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);function c(E){return E?typeof E=="function"?new E:E:null}if(s(c,"createClassOnDemand"),!this.options.isClone){this.modules.logger?tn.init(c(this.modules.logger),this.options):tn.init(null,this.options);var u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=sh);var f=new Ru(this.options);this.store=new Xy(this.options.resources,this.options);var p=this.services;p.logger=tn,p.resourceStore=this.store,p.languageUtils=f,p.pluralResolver=new rh(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(p.formatter=c(u),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new ah(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new uh(c(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(E){for(var I=arguments.length,k=new Array(I>1?I-1:0),w=1;w<I;w++)k[w-1]=arguments[w];r.emit.apply(r,[E].concat(k))}),this.modules.languageDetector&&(p.languageDetector=c(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=c(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new wu(this.services,this.options),this.translator.on("*",function(E){for(var I=arguments.length,k=new Array(I>1?I-1:0),w=1;w<I;w++)k[w-1]=arguments[w];r.emit.apply(r,[E].concat(k))}),this.modules.external.forEach(function(E){E.init&&E.init(r)})}if(this.format=this.options.interpolation.format,o||(o=Fa),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var b=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];b.forEach(function(E){r[E]=function(){var I;return(I=r.store)[E].apply(I,arguments)}});var C=["addResource","addResources","addResourceBundle","removeResourceBundle"];C.forEach(function(E){r[E]=function(){var I;return(I=r.store)[E].apply(I,arguments),r}});var F=yr(),N=s(function(){var I=s(function(w,oe){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),F.resolve(oe),o(w,oe)},"finish");if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return I(null,r.t.bind(r));r.changeLanguage(r.options.lng,I)},"load");return this.options.resources||!this.options.initImmediate?N():setTimeout(N,0),F},"init")},{key:"loadResources",value:s(function(r){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fa,l=o,c=typeof r=="string"?r:this.language;if(typeof r=="function"&&(l=r),!this.options.resources||this.options.partialBundledLanguages){if(c&&c.toLowerCase()==="cimode")return l();var u=[],f=s(function(b){if(b){var C=a.services.languageUtils.toResolveHierarchy(b);C.forEach(function(F){u.indexOf(F)<0&&u.push(F)})}},"append");if(c)f(c);else{var p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.forEach(function(h){return f(h)})}this.options.preload&&this.options.preload.forEach(function(h){return f(h)}),this.services.backendConnector.load(u,this.options.ns,function(h){!h&&!a.resolvedLanguage&&a.language&&a.setResolvedLanguage(a.language),l(h)})}else l(null)},"loadResources")},{key:"reloadResources",value:s(function(r,a,o){var l=yr();return r||(r=this.languages),a||(a=this.options.ns),o||(o=Fa),this.services.backendConnector.reload(r,a,function(c){l.resolve(),o(c)}),l},"reloadResources")},{key:"use",value:s(function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&Qu.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this},"use")},{key:"setResolvedLanguage",value:s(function(r){if(!(!r||!this.languages)&&!(["cimode","dev"].indexOf(r)>-1))for(var a=0;a<this.languages.length;a++){var o=this.languages[a];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}},"setResolvedLanguage")},{key:"changeLanguage",value:s(function(r,a){var o=this;this.isLanguageChangingTo=r;var l=yr();this.emit("languageChanging",r);var c=s(function(h){o.language=h,o.languages=o.services.languageUtils.toResolveHierarchy(h),o.resolvedLanguage=void 0,o.setResolvedLanguage(h)},"setLngProps"),u=s(function(h,b){b?(c(b),o.translator.changeLanguage(b),o.isLanguageChangingTo=void 0,o.emit("languageChanged",b),o.logger.log("languageChanged",b)):o.isLanguageChangingTo=void 0,l.resolve(function(){return o.t.apply(o,arguments)}),a&&a(h,function(){return o.t.apply(o,arguments)})},"done"),f=s(function(h){!r&&!h&&o.services.languageDetector&&(h=[]);var b=typeof h=="string"?h:o.services.languageUtils.getBestMatchFromCodes(h);b&&(o.language||c(b),o.translator.language||o.translator.changeLanguage(b),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage&&o.services.languageDetector.cacheUserLanguage(b)),o.loadResources(b,function(C){u(C,b)})},"setLng");return!r&&this.services.languageDetector&&!this.services.languageDetector.async?f(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(f):this.services.languageDetector.detect(f):f(r),l},"changeLanguage")},{key:"getFixedT",value:s(function(r,a,o){var l=this,c=s(function u(f,p){var h;if(et(p)!=="object"){for(var b=arguments.length,C=new Array(b>2?b-2:0),F=2;F<b;F++)C[F-2]=arguments[F];h=l.options.overloadTranslationOptionHandler([f,p].concat(C))}else h=en({},p);h.lng=h.lng||u.lng,h.lngs=h.lngs||u.lngs,h.ns=h.ns||u.ns,h.keyPrefix=h.keyPrefix||o||u.keyPrefix;var N=l.options.keySeparator||".",E;return h.keyPrefix&&Array.isArray(f)?E=f.map(function(I){return"".concat(h.keyPrefix).concat(N).concat(I)}):E=h.keyPrefix?"".concat(h.keyPrefix).concat(N).concat(f):f,l.t(E,h)},"fixedT");return typeof r=="string"?c.lng=r:c.lngs=r,c.ns=a,c.keyPrefix=o,c},"getFixedT")},{key:"t",value:s(function(){var r;return this.translator&&(r=this.translator).translate.apply(r,arguments)},"t")},{key:"exists",value:s(function(){var r;return this.translator&&(r=this.translator).exists.apply(r,arguments)},"exists")},{key:"setDefaultNamespace",value:s(function(r){this.options.defaultNS=r},"setDefaultNamespace")},{key:"hasLoadedNamespace",value:s(function(r){var a=this,o=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;var l=o.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;var f=s(function(b,C){var F=a.services.backendConnector.state["".concat(b,"|").concat(C)];return F===-1||F===2},"loadNotPending");if(o.precheck){var p=o.precheck(this,f);if(p!==void 0)return p}return!!(this.hasResourceBundle(l,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(l,r)&&(!c||f(u,r)))},"hasLoadedNamespace")},{key:"loadNamespaces",value:s(function(r,a){var o=this,l=yr();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(c){o.options.ns.indexOf(c)<0&&o.options.ns.push(c)}),this.loadResources(function(c){l.resolve(),a&&a(c)}),l):(a&&a(),Promise.resolve())},"loadNamespaces")},{key:"loadLanguages",value:s(function(r,a){var o=yr();typeof r=="string"&&(r=[r]);var l=this.options.preload||[],c=r.filter(function(u){return l.indexOf(u)<0});return c.length?(this.options.preload=l.concat(c),this.loadResources(function(u){o.resolve(),a&&a(u)}),o):(a&&a(),Promise.resolve())},"loadLanguages")},{key:"dir",value:s(function(r){if(r||(r=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!r)return"rtl";var a=["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"],o=this.services&&this.services.languageUtils||new Ru(Hu());return a.indexOf(o.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"},"dir")},{key:"cloneInstance",value:s(function(){var r=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fa,l=en(en(en({},this.options),a),{isClone:!0}),c=new n(l);(a.debug!==void 0||a.prefix!==void 0)&&(c.logger=c.logger.clone(a));var u=["store","services","language"];return u.forEach(function(f){c[f]=r[f]}),c.services=en({},this.services),c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c.translator=new wu(c.services,c.options),c.translator.on("*",function(f){for(var p=arguments.length,h=new Array(p>1?p-1:0),b=1;b<p;b++)h[b-1]=arguments[b];c.emit.apply(c,[f].concat(h))}),c.init(l,o),c.translator.options=c.options,c.translator.backendConnector.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c},"cloneInstance")},{key:"toJSON",value:s(function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}},"toJSON")}]),n}(Dn);Zt(La,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new La(e,t)});var Q=La.createInstance();Q.createInstance=La.createInstance;var EP=Q.createInstance,OP=Q.dir,AP=Q.init,IP=Q.loadResources,FP=Q.reloadResources,NP=Q.use,DP=Q.changeLanguage,LP=Q.getFixedT,jP=Q.t,VP=Q.exists,_P=Q.setDefaultNamespace,wP=Q.hasLoadedNamespace,RP=Q.loadNamespaces,$P=Q.loadLanguages;var pd=H(Ss()),dd=H(xp()),qa=H(cd()),ae=require("@sap-ux/vocabularies-types/vocabularies/UI"),Sr=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Bs=H(q());var ne=s((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?console.log(`${Bs.LogSeverityLabel[t.severity]}: ${t.message}; location: ${t.location}`,...n):console.log(`${Bs.LogSeverityLabel[t.severity]}: '${t.message}`,...n)},"log");var V="#/definitions/",Tn=s((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Pr(e,t){let n=[],i;return e&&e.forEach(function(r){try{n.push((0,qa.parse)(r.fileContent,r.dataSourceUri))}catch(a){return ne(t,{severity:_.LogSeverity.Error,message:Q.t("ANNOERR"),location:{path:Q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0&&(i=(0,dd.convert)((0,qa.merge)(...n))),i}s(Pr,"parseAndMergeAndConvert");var ki=s(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Us(e,t,n){var i,r,a,o;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((o=(a=e.Common)==null?void 0:a.Label)==null?void 0:o.toString())=="string"&&(n=e.Common.Label.toString());return n}s(Us,"evaluateCommonLabel");function gd(e,t){let n=e.value;return e.$target&&(n=Us(e.$target.annotations,t,n)),n}s(gd,"getLabelForPropertyPath");function za(e,t){var r,a;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(o=>o.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),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=Us(i.annotations,t,n)),n}s(za,"getLabelForDataField");function Jb(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 o=e;return Us(a.annotations,t,o)}}}else return}s(Jb,"getLabel");function fd(e,t,n){let i=za(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}s(fd,"getTitleForDataField");function Er(e,t){var a,o,l;let n="",i,r;try{let c=Jb(e.Label,t);switch(e.$Type){case ae.UIAnnotationTypes.DataField:r=e,n=fd(r,t,c);break;case ae.UIAnnotationTypes.DataFieldWithUrl:r=e,i=za(e,t),n=c||i||(typeof r.Value=="string"?r.Value:r.Value.path);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=za(e,t),n=c||i||((o=(a=r.Target)==null?void 0:a.$target)==null?void 0:o.Title)||((l=r.Target)==null?void 0:l.value.split("UI.v1.")[1]);break;case ae.UIAnnotationTypes.DataFieldForAction:case ae.UIAnnotationTypes.DataFieldWithAction:case ae.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,c?n=typeof c=="string"?c:r.Action:n=e.Action;break;case ae.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:r=e,i=za(e,t),n=i||r.Value.path;break;case ae.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=fd(r,t,c);break;default:break}return n}catch{return n}}s(Er,"getDatafieldDescription");function Re(e){return e.replace("#","::").replace(/\//g,":2f")}s(Re,"prepareRef");function vn(e){if(e){let t=`${_.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}s(vn,"getPageTypeV2");function Qb(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}s(Qb,"getTargetAnnotationName");function xn(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}s(xn,"findAlias");function zb(e,t,n){var o;let i=e[e.length-1],r=i.substring(i.lastIndexOf(".")+1,i.length),a=xn(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(o=t==null?void 0:t.annotations[a])==null?void 0:o[r]}s(zb,"determineTargetAnnotation");function qb(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${ae.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${_.UIVOCABULARY}`);return e}s(qb,"adjustKey");function Xb(e,t,n,i,r=_.FioriElementsVersion.v2,a=!1){var p,h;let o=!1,l,c=i.split("/"),u=c.length>1;u&&n&&(n=(p=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:p.targetType),t=qb(t,c,a);let f=zb(c,n,e);if(f){let b=r===_.FioriElementsVersion.v2?"::":"#";t=Qb(f,a).replace("#",b),l=(h=f.fullyQualifiedName)==null?void 0:h.split("@")[0]}else return o=!0,{key:t,entityType:n,stopProcessing:o,namespace:l};if(u){let b=r===_.FioriElementsVersion.v2?"::":"/";c.pop(),t=`${[...c].join(b)}${b}${t}`}return{key:t,entityType:n,stopProcessing:o,namespace:l}}s(Xb,"getKeyAndEntityTypeOfReferenceFacet");function md(e,t,n,i,r=_.FioriElementsVersion.v2,a=!1){var f,p,h;let o=(p=e.fullyQualifiedName)==null?void 0:p.substring((f=e.fullyQualifiedName)==null?void 0:f.lastIndexOf("@")),l=e.ID?e.ID.toString():o,c=(h=e.fullyQualifiedName)==null?void 0:h.split("@")[0],u=t;if(e.$Type!==ae.UIAnnotationTypes.CollectionFacet&&"Target"in e){let b=ki(e.Target);if(!b){ne(i,{severity:_.LogSeverity.Error,message:Q.t("NOTARGET",{target:e.Target})});return}let{key:C,entityType:F,stopProcessing:N,namespace:E}=Xb(n,l,u,b,r,a);if(N)return;l=C,u=F,c=E}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:u,namespace:c}}s(md,"getSectionFacet");function Gs(e){let t,n,i;switch(e.$Type){case ae.UIAnnotationTypes.DataField:t=ki(e.Value);break;case ae.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:ki(e.Value);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${_.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case ae.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${Re(e.Action)}`);break;case ae.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=ki(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case ae.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${Re(e.Action)}`);break;case ae.UIAnnotationTypes.DataFieldWithNavigationPath:i=ki(e.Value),n=ki(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}s(Gs,"getSchemaKeyOfLineItemRecord");function Yb(e,t,n){return e.includes(ae.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?ae.UIAnnotationTerms.Chart:e.includes(ae.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?ae.UIAnnotationTerms.Identification:n&&e.includes(ae.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?ae.UIAnnotationTerms.LineItem:e.includes(ae.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?ae.UIAnnotationTerms.FieldGroup:e.includes(ae.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?ae.UIAnnotationTerms.DataPoint:e.includes(ae.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?ae.UIAnnotationTerms.PresentationVariant:void 0}s(Yb,"getUIAnnotationTerm");function Zb(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Sr.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Sr.CommunicationAnnotationTerms.Address:void 0}s(Zb,"getCommunicationAnnotationTerm");function ev(e,t,n){return Yb(e,t,n)||Zb(e,t)}s(ev,"getAnnotationTerm");function tv(e,t,n,i,r,a=_.FioriElementsVersion.v2,o){var p,h,b,C,F,N,E,I,k;let l=xn(_.UIVOCABULARY,r),c=e?e.key:"",u=e.entityType;switch(ev(c,l,i)){case ae.UIAnnotationTerms.Chart:{n[c]={base:_.FacetBase.Chart},n[c].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case ae.UIAnnotationTerms.Identification:{n[c]={base:_.FacetBase.Identification},n[c].target=(h=t==null?void 0:t.Target)==null?void 0:h.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case ae.UIAnnotationTerms.LineItem:{if(!c.includes(ae.UIAnnotationTerms.LineItem)&&c.includes(".LineItem")){let w=c.split("::");w[w.length-1]=`@${ae.UIAnnotationTerms.LineItem}`,c=w.join("::")}n[c]={base:_.FacetBase.LineItem},n[c].target=(b=t==null?void 0:t.Target)==null?void 0:b.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case ae.UIAnnotationTerms.FieldGroup:{n[c]={base:_.FacetBase.Form},n[c].target=(C=t==null?void 0:t.Target)==null?void 0:C.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case ae.UIAnnotationTerms.DataPoint:{n[c]={base:_.FacetBase.DataPoint},n[c].Label=(F=t==null?void 0:t.Target)==null?void 0:F.$target.Title,n[c].target=(N=t==null?void 0:t.Target)==null?void 0:N.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case ae.UIAnnotationTerms.PresentationVariant:{n[c]={base:_.FacetBase.PresentationVariant},n[c].target=(E=t==null?void 0:t.Target)==null?void 0:E.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case Sr.CommunicationAnnotationTerms.Contact:{n[c]={base:_.FacetBase.Contact},n[c].target=(I=t==null?void 0:t.Target)==null?void 0:I.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case Sr.CommunicationAnnotationTerms.Address:{n[c]={base:_.FacetBase.Address},n[c].target=(k=t==null?void 0:t.Target)==null?void 0:k.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}default:n[c]={base:_.FacetBase.Unknown}}n[c]&&(n[c].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",_.VOCWITHSLASH)}`,t.Label&&(n[c].Label=t.Label),t.ID&&(n[c].ID=t.ID),e&&e.entityType&&(n[c].entityType=e.entityType))}s(tv,"evaluateTargetAnnotation");function yd(e,t,n,i,r,a=_.FioriElementsVersion.v2,o){var c;let l=md(e,i,t,o,a,!1);if(l)switch(e.$Type){case ae.UIAnnotationTypes.ReferenceFacet:{tv(l,e,r,i,t,a,o);break}case ae.UIAnnotationTypes.CollectionFacet:{let u=`/${i.fullyQualifiedName}/${e.fullyQualifiedName.split(i.fullyQualifiedName)[1]}`,f=r[l.key]={base:_.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:u,Label:l.label,namespace:l.namespace};(c=e.Facets)==null||c.forEach(p=>{yd(p,t,n,i,f.facets,a,o)});break}}}s(yd,"addFacetToConfig");function hd(e,t,n=_.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=xn(_.UIVOCABULARY,t),o=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(o){let c=e&&e.fullyQualifiedName.lastIndexOf("."),u=e&&e.fullyQualifiedName.substring(0,c);o.forEach(f=>{yd(f,t,u,e,r,n,i)})}return r}s(hd,"getObjectPageFacets");function Hs(e){return e[_.ManifestSection.generic]||e[_.ManifestSection.ovp]?_.FioriElementsVersion.v2:_.FioriElementsVersion.v4}s(Hs,"getVersionFromManifest");function nv(e,t){var i,r;let n;if(e[_.ManifestSection.generic]){let a=e[_.ManifestSection.generic].pages;if(!a){ne(t,{severity:_.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}});return}for(let o in a){let l=a[o];if(vn((i=l.component)==null?void 0:i.name)===_.PageTypeV2.AnalyticalListPage){n=_.TemplateType.AnalyticalListPageV2;break}else if(vn((r=l.component)==null?void 0:r.name)===_.PageTypeV2.ListReport){n=_.TemplateType.ListReportObjectPageV2;break}}}else n||ne(t,{severity:_.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:_.ManifestSection.generic}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}});return n}s(nv,"determineV2Template");function Ks(e,t,n){let i;return e[_.ManifestSection.ovp]?i=_.TemplateType.OverviewPageV2:t===_.FioriElementsVersion.v2&&(i=nv(e,n)),i}s(Ks,"getTemplateTypeFromManifest");function Or(e,t,n){e!=null&&e.ID?(t.title=_.FacetTitlePrefix+e.ID,t[_.SchemaTag.keys]=[{name:_.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[_.SchemaTag.keys]=[{name:_.SchemaKeyName.id,value:n.replace(_.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}s(Or,"addSectionTitleAndDescription");function Bi(e,t,n){if(!t)return;let i;return e.definitions.ObjectPageSection?i=JSON.parse(JSON.stringify(e.definitions.ObjectPageSection)):(i={type:"object",properties:{},additionalProperties:!1},i[_.SchemaTag.isViewNode]=!0),i[_.SchemaTag.annotationPath]=t.annotationPath,Or(t,i,n),i}s(Bi,"createDefaultSection");function bd(e,t,n,i=_.FioriElementsVersion.v2,r=!1){var l,c;let a=xn(_.UIVOCABULARY,t),o=[];if(e){let u=a&&((c=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:c.Facets);return u&&(o=u.reduce(function(f,p){if(r&&!p.ID&&!("Target"in p&&p.Target))return f;let h=md(p,e,t,n,i,!0);return h&&f.push(h),f},o)),o}}s(bd,"getObjectPageFacetSection");var Ws=s((e,t,n,i)=>{if(!t)return;let r=e,a=t.split("/");a.forEach(function(o){let l=i&&i===o?n:o.replace("??","/");if(r[l]){if(Object.keys(r[l]).length===0){Array.isArray(r)?r.splice(Number(l),1):delete r[l],a.pop(),Ws(e,a.join("/"),n,i);return}r=r&&r[l]}})},"deleteEmptyStructure"),ud=s(e=>`${e}`,"getGenericSchemaFileName"),qe=s((e,t)=>{let n={filename:"",path:""};switch(e){case _.SchemaType.Application:{n.filename="App",n.path=`./${_.DirName.Schemas}/${n.filename}`;break}case _.SchemaType.ListReport:case _.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:ud(e),n.path=`../${_.DirName.Schemas}/${n.filename}`;break}default:{n.filename=ud(e),n.path=`../${_.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function Xa(e,t,n,i){if(e===_.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("_")}s(Xa,"generatePageId");function iv(e,t,n,i){let r=e.$ref;if(r){let a=r.split(V)[1];if(t.definitions[a]){let o=t.definitions[a].controlProperty;r.includes(n[o])&&i.push(a)}}}s(iv,"fillArrayFromAnyOfReference");function rv(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(V)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{iv(r,n,t,i)}),i.length===0))return;return i}s(rv,"fillArrayFromPropertyDefinition");function av(e,t,n,i,r,a,o,l){var u,f,p,h;let c={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(c.targetDefinition=t.definitions[b],(u=c==null?void 0:c.targetDefinition)!=null&&u.$ref||((f=c==null?void 0:c.targetDefinition)==null?void 0:f.type)==="array")return c=jn(t,n,i,c.targetDefinition,r,a,o),c;e.length>1&&e.forEach(N=>{N!==""&&(c.targetDefinition.properties={...c.targetDefinition.properties,...t.definitions[N].properties})}),c.title=(p=c==null?void 0:c.targetDefinition)!=null&&p.title?c.targetDefinition.title:n;let C=b==null?void 0:b.split("<")[0],F=i||{};c.configObject=a.createInstance(o,C,F,(h=c==null?void 0:c.targetDefinition)==null?void 0:h.controlProperty)}else c.targetDefinition=l,c.title=c.targetDefinition.title?c.targetDefinition.title:r,c.configObject=i;return c}s(av,"determineNextDefinitionFromDefinitionArray");function jn(e,t,n,i,r,a,o){let l;if(i.type==="array")return l=jn(e,t,n,i.items,r,a,o),l;let c=rv(i,n,e);if(c)return l=av(c,e,t,n,r,a,o,i),l}s(jn,"getNextTargetDefinition");var Js=s((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,pd.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function yt(e){if(e)return(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::")}s(yt,"convertActionKeyToStableId");function Ui(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}s(Ui,"updatePropertyIndices");function vd(e){return e=e.replace(_.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}s(vd,"removeNamespaces");function Ya(e){return e=e.replace(_.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}s(Ya,"replaceNamespaces");var Ii=require("@sap-ux/vocabularies-types/vocabularies/UI"),$=H(q());var at=H(q());var Se=s((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Za=s((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),Xe=s((e,t)=>{let n,i=at.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 ov(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}s(ov,"escapeId");var Td=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(Td||{});function sv(e,t,n){let i;return e=e.map(function(r){if(r===at.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===at.PropertyName.sections&&(i=t[a+1],i.indexOf(at.FacetBase.LineItem)!==-1))return t[a+1]=Xe(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}s(sv,"mapBreadcrumbs");var Qs=s((e,t,n,i,r)=>{let a="listReport",o=[...n];({idBreadcrumbs:t}=sv(t,o,r)),o[0]===at.PropertyName.sections?a=o[1].replace(/::com.sap.vocabularies/g,at.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,at.VOCWITHSLASH):t[0]===at.PropertyName.table&&(a=t[0]);let l=o[o.length-1].replace(/::com.sap.vocabularies/g,at.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,at.VOCWITHSLASH).replace("sTarget/@","sTarget::@").replace("/",":2f"),c,u=l.indexOf(":::");return l.startsWith("DataField")&&u>-1?c=`${e}template:::TableColumn:::${l.substring(0,u)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${l.substring(u+3)}`:c=`${e}${t.join("::")}-${l}`,ov(c)},"buildColumnControlId"),ht=s(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 lv(e){let t=at.BindingPropertyRegexAsString;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}s(lv,"determinePattern");var xd=s((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],o=a,l=a.$ref?e.definitions[a.$ref.split(V)[1]]:a,c=a.description?a.description:l.description,u=lv(l);l.type&&l.type==="boolean"&&(o={enum:[!1,!0]}),i&&o.enum&&i.forEach(f=>{o.enum.indexOf(f)===-1&&o.enum.push(f)}),r[n]={pattern:u,anyOf:[o,{type:"string"}]},c&&(r[n].description=c,delete a.description)},"addPatternForBindingChangeOfEnum"),Gi=s((e,t,n)=>{xd(e,t,n)},"addPatternForBindingChangeOfEnumLR"),ge=s((e,t,n)=>{let i=Object.values(Td);xd(e,t,n,i)},"addPatternForBindingChangeOfEnumOP");function Cd(){}s(Cd,"doNotDelete");var FE=H(Pd());var Ed=Symbol("specificationMetadataKey"),m=s(e=>Reflect.metadata(Ed,e),"syncRule");function St(e,t){let n;return e&&(n=Reflect.getMetadata(Ed,e,t)),n}s(St,"getReflectMetadata");var Vn=s(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),Od=Symbol("childId"),Je=s(e=>Reflect.metadata(Od,e),"childId"),Ad=s((e,t)=>Reflect.getMetadata(Od,e,t),"getChildId"),eo=s(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),cv=Symbol("validityMetadataKey"),L=s(e=>Reflect.metadata(cv,e),"validity");function to(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}s(to,"getTextForDeprecated");var _d=H(jd()),wd=H(q());var Rd=_d.default.change,Vd={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function $d(e,t){let n="";try{for(let i in Vd)e[i]===void 0&&(e[i]=Vd[i]);n=Rd.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}s($d,"createChangeString");function _n(e){try{return Rd.parse(e)}catch{return!1}}s(_n,"parseChangeString");function Md(e,t,n,i,r){let a=n.layer?n.layer===wd.FlexChangeLayer.Customer:!0,o={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(o,e,i):e[i].toString().startsWith("{")?(o.content.newBinding=e[i],o.type="propertyBindingChange"):o.content.newValue=e[i]:o.content.newValue=null,o}s(Md,"fillFlexChangeContent");function R(e,t){return $d(e,t)}s(R,"exportToFlexChange");var oi=H(q());function no(e,t,n,i,r,a){let o=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let c=l(t,r,n,a);c!==void 0&&(i[n]=c)}else t[o]!==void 0&&(i[n]=t[o])}s(no,"importProperty");function kd(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(ne(i,{severity:oi.LogSeverity.Warning,message:to(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}s(kd,"checkDeprecatedProperties");function zs(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(V)[1]];return zs(n,t)}else return e.title?e.title.startsWith(oi.FacetTitlePrefix)?e.title.split(oi.FacetTitlePrefix)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}s(zs,"getSectionTitle");function io(e){let t=e.split(`${oi.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}s(io,"getTargetFromCustomColumnRef");var Ae=require("@sap-ux/vocabularies-types/vocabularies/UI");var Cn=require("@sap-ux/vocabularies-types/vocabularies/UI");function Ud(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}}s(Ud,"replaceSpecialChars");var si=s(function(e){return Ud(vd(e))},"prepareId");function yv(e){let t="";for(let n of e.Apply.Path)n._text&&(t&&(t+="::"),t+=n._text);return t}s(yv,"evaluateConcat");function li(e){var t;if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if(((t=e==null?void 0:e.Apply)==null?void 0:t._attributes.Function)==="odata.concat")return yv(e);if(e&&typeof e=="string")return Ud(e.replace(/ /g,"_"))}s(li,"getStableIdPartFromValue");var Bd=s(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"),Gd=s(function(e){let t="";if(e.$Type&&e.$Type===Cn.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,si(t);if(e.$Type&&e.$Type===Cn.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=Bd(e),t;if(e.$Type&&e.$Type===Cn.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=si(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===Cn.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=li(e.Value)+"::"),t+=e.Action,si(t);if(e.$Type&&e.$Type===Cn.UIAnnotationTypes.DataField)return t="DataField::",t+=li(e.Value),si(t);if(e.$Type&&e.$Type===Cn.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=li(e.Value)+"::",t+=Bd(e),si(t);if(e.$Type&&e.$Type===Cn.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=li(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),si(t);if(e.$Type&&e.$Type===Cn.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=li(e.Value),si(t)},"getStableIdPartFromDataField");var D=H(q());var Y=H(q());var bt=require("@sap-ux/vocabularies-types/vocabularies/UI"),Jd=require("path"),Qd=H(xr());var Hi="ResponsiveTable<LineItems>",Ar="TreeTable<LineItems>",Ir="AnalyticalTable<LineItems>",Fr="GridTable<LineItems>",Hd=[Ar,Ir,Fr],Kd="template::",ro="template:::ObjectPageAction:::";function hv(e,t,n){e.definitions[Y.DefinitionName.LineItems]&&(e.definitions[Y.DefinitionName.LineItems].properties.custom={$ref:`${V}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${V}${n}`},description:"Custom Columns"},e.definitions[t][Y.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[Y.SchemaTag.artifactType]=Y.ArtifactType.Manifest)}s(hv,"addCustomColumnDefinition");function bv(e,t){let n;return e==="TableColumnActionIntentBased"?n=Gs(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=Re(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===bt.UIAnnotationTypes.DataFieldForAction?n=Re(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=Re(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}s(bv,"getActionId");function qs(e,t,n,i,r){let a,o=n.lineItemId===Y.DefinitionName.LineItems?"":"ObjectPage",l=bv(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=o!==""?`${o}${i}`:"Action",i="ToolBarAction");let c=`${o}${i}<${l}>`,u=Er(n.lineItemRecord,n.entityType);t.properties[l]={$ref:V+c},t.properties[l][Y.SchemaTag.propertyIndex]=r;let{key:f,ns:p}=lo(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[c]={...JSON.parse(JSON.stringify(e.definitions[a])),description:u,keys:[{name:"Action",value:f}],annotationPath:`${n.lineItemPath}/${r}`},p&&(e.definitions[c][Y.SchemaTag.target]=p)):(e.definitions[c]={type:"object",properties:{},description:u,additionalProperties:!1},e.definitions[c][Y.SchemaTag.isViewNode]=!0,e.definitions[c][Y.SchemaTag.keys]=[{name:Y.SchemaKeyName.action,value:f}],p&&(e.definitions[c][Y.SchemaTag.target]=p),e.definitions[c][Y.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}s(qs,"handleActionRecord");function vv(e,t,n){e!==Y.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===bt.UIAnnotationTypes.DataFieldForAction||t.$Type===bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===bt.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}s(vv,"getColumnActionType");function Tv(e,t){let n=[];if(!(e.$Type!==bt.UIAnnotationTypes.DataFieldForAction&&e.$Type!==bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===bt.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===bt.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),vv(t,e,n),n}s(Tv,"getActionType");function zd(e,t,n){let i=Gs(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:V+Y.DefinitionName.TableColumn,description:Er(e.lineItemRecord,e.entityType)},r.properties[i][Y.SchemaTag.propertyIndex]=n,r.properties[i][Y.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,so(r.properties[i],e.lineItemRecord),eg(e.lineItemRecord,r.properties,i)}}s(zd,"generateGenericColumn");function xv(e,t,n,i,r,a,o){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{qs(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&qs(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{qs(t,t.definitions[o],i,e,r);break}case"ObjectPageTableColumnAction":zd(i,t,r)}}s(xv,"handleAnyAction");function Ki(e,t,n,i,r){i=i||Y.DefinitionName.LineItems;let{actions:a,footerActions:o,lineItemPath:l}=Zd(e,t,n,i);if(t){let c=0;t.forEach(u=>{let f={lineItemPath:l,lineItemRecord:u,lineItemId:i,entityType:n},p=Tv(u,i);p?p.forEach(h=>{xv(h,e,a,f,c,o,i)}):zd(f,e,c),c++})}r&&(e.definitions[i].properties.custom={$ref:`${V}${r}`})}s(Ki,"addLineItemsType");function Cv(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 o=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=o==null?void 0:o.reduce((l,c)=>(l.includes(c.name)||l.push(c.name),l),[])}}s(Cv,"addListReportLeadingProperties");function Sv(e,t,n,i){var o,l,c,u,f;let r=(l=(o=e.definitions[t])==null?void 0:o.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=(f=(u=(c=n.component)==null?void 0:c.settings)==null?void 0:u.quickVariantSelectionX)==null?void 0:f.variants;if(a){let p=[];Object.keys(a).reduce((h,b)=>{let C=a[b]&&a[b].key!==void 0?a[b].key:void 0;return C!==void 0&&!h.includes(C)&&h.push(C),h},p),ci(p,r)}}s(Sv,"addTabkeyEnum");function ao(e,t,n,i,r){var o,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(c=>{let u=c.dataSourceUri.split("webapp")[1];if(u&&u.indexOf(".fragment.xml")>0){let f=JSON.parse((0,Qd.xml2json)(c.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!f||f.Column||f["table:Column"]||f["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!f||!f.Column&&!f["table:Column"]&&!f["table:AnalyticalColumn"]&&!f["smartfilterbar:ControlConfiguration"])){u=u.replace(new RegExp("\\"+Jd.sep,"g"),"/");let p=n+u.split(".fragment.xml")[0].replace(/\//g,".");a.push(p)}}}),ci(a,(l=(o=e.definitions[r])==null?void 0:o.properties)==null?void 0:l[i])}s(ao,"addFragmentEnum");function Wi(e,t,n,i,r,a=Y.DefinitionName.CustomColumns,o=Y.DefinitionName.CustomColumn,l){hv(e,a,o),Cv(e,t,o),Sv(e,o,n,l);let c=i&&i["sap.app"]&&i["sap.app"].id;ao(e,r,c,"fragmentName",o),ao(e,r,c,"fragmentName",Y.DefinitionName.CustomColumn),ao(e,r,c,"cellsFragmentName",o),ao(e,r,c,"cellsFragmentName",Y.DefinitionName.CustomColumn)}s(Wi,"addTableColumnExtensions");function qd(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}s(qd,"removeElementsFromEnum");function oo(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=Tn(n==null?void 0:n.fullyQualifiedName,bt.UIAnnotationTerms.SelectionFields);if(r&&(i[Y.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(o=>{let l=o.value,c=`SelectionField<${Re(o.value)}>`,u=Xs(o);o.type==="PropertyPath"&&(l=gd(o,n)),i.properties[o.value]={$ref:V+c},i.properties[o.value][Y.SchemaTag.propertyIndex]=a,e.definitions[c]={type:"object",description:l,additionalProperties:!1},e.definitions[c][Y.SchemaTag.isViewNode]=!0,e.definitions[c][Y.SchemaTag.annotationType]=o==null?void 0:o.type,e.definitions[c][Y.SchemaTag.dataType]=u,e.definitions[c][Y.SchemaTag.keys]=[{name:Y.SchemaKeyName.value,value:`${o.value}`}],e.definitions[c][Y.SchemaTag.annotationPath]=`${i[Y.SchemaTag.annotationPath]}/${a}`,e.definitions[c].properties={},a++})}s(oo,"addSelectionFields");function Xd(e){return!!e.navigationProperties.find(n=>n.name==="DraftAdministrativeData")}s(Xd,"isDraftEnabled");function Ji(e,t=!1,n){let i=Y.DefinitionName.HeaderActionsStandard,r=Y.DefinitionName.HeaderActionsStandard,a=Y.DefinitionName.HeaderActionStandard;t&&(i=Y.DefinitionName.GenericActions,r=Y.DefinitionName.HeaderActions,a=Y.DefinitionName.ObjectPageHeaderActionStandard);let o=e.definitions[i],l=e.definitions[r];l[Y.SchemaTag.isViewNode]=!0,l.description="Actions",Object.entries((n||o).properties).forEach(([u,f])=>{let p=f.$ref.split(V)[1],h=`${a}<${p}>`;l.properties[u]={$ref:`${V}${h}`},e.definitions[h]=e.definitions[p],e.definitions[p][Y.SchemaTag.actionType]=Y.ActionType.Standard})}s(Ji,"addStandardHeaderActions");function Yd(e,t){let n=e.definitions[Y.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split(V)[1],a=`${Y.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${V}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][Y.SchemaTag.actionType]=Y.ActionType.Standard}}s(Yd,"addStandardFooterActionsOP");function Pv(e,t,n,i){if(e===D.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Ae.UIAnnotationTypes.DataField:case Ae.UIAnnotationTypes.DataFieldForAnnotation:case Ae.UIAnnotationTypes.DataFieldWithNavigationPath:case Ae.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===D.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Ae.UIAnnotationTypes.DataField:case Ae.UIAnnotationTypes.DataFieldForAnnotation:case Ae.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}s(Pv,"copyFieldProperties");function Ev(e,t,n,i){let r=e===D.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===D.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}s(Ev,"determineFieldDefinitionName");function Ov(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][D.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][D.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][D.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][D.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}s(Ov,"addKeysTagForDataField");function Av(e,t,n){if(e.$Type===Ae.UIAnnotationTypes.DataField||e.$Type===Ae.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ae.UIAnnotationTypes.DataFieldWithNavigationPath)Ov(e,t,n);else if(e.$Type===Ae.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][D.SchemaTag.keys]=[{name:"Target",value:Ya(e.Target.value)}],t.definitions[n][D.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Ae.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][D.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][D.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][D.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Ae.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][D.SchemaTag.keys]=[{name:D.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][D.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][D.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}s(Av,"addKeysTagToField");function tg(e,t,n,i,r,a,o,l=!0){var p;let c=Gd(n),u=o===D.FioriElementsVersion.v2&&c&&c.includes("::")?c.split("::").splice(1).join("::"):c,f=Ev(o,c,i,u);if(!(!n||!n.$Type)){if(n.$Type===Ae.UIAnnotationTypes.DataFieldForAction||n.$Type===Ae.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===D.SectionType.Section){let h=Re(`${e}${D.DefinitionName.Actions}<${i}>`),b=t.definitions[h].properties[u]={$ref:`${V}${f}`};b[D.SchemaTag.propertyIndex]=parseInt(r)}}else{let h=Re(`${e}${D.DefinitionName.Fields}<${i}>`);t.definitions[h].properties[u]={$ref:`${V}${f}`,propertyIndex:parseInt(r)}}t.definitions[f]={type:"object",properties:{},description:Er(n,a.entityType),additionalProperties:!1},Av(n,t,f),t.definitions[f][D.SchemaTag.annotationPath]=`/${a.entityType.fullyQualifiedName}/${n.fullyQualifiedName.split(a.entityType.fullyQualifiedName)[1]}`,t.definitions[f][D.SchemaTag.annotationType]=n.$Type,t.definitions[f][D.SchemaTag.isViewNode]=!0,so(t.definitions[f],n),Pv(o,t,n,f),n.$Type===Ae.UIAnnotationTypes.DataFieldForAction&&((p=t.definitions)!=null&&p.FormAction)&&(t.definitions[f].properties=t.definitions[D.DefinitionName.FormAction].properties)}}s(tg,"addField");function Iv(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}s(Iv,"determineTargetIdOfForm");function Fv(e,t,n,i,r,a=!0){var u;if(!e.target)return;let o=Re(`${t}${D.DefinitionName.Form}<${i}>`),l=Re(`${t}${D.DefinitionName.Fields}<${i}>`),c=Re(`${t}${D.DefinitionName.Actions}<${i}>`);if(n.properties.form={$ref:`${V}${o}`},t===D.SectionType.Section&&a?(n.definitions[o]={type:"object",properties:{actions:{$ref:`${V}${c}`},fields:{$ref:`${V}${l}`}},description:"Form",additionalProperties:!1},n.definitions[c]={type:"object",properties:{},description:"Actions",additionalProperties:!1},n.definitions[c][D.SchemaTag.isViewNode]=!0):n.definitions[o]={type:"object",properties:{fields:{$ref:`${V}${l}`}},description:"Form",additionalProperties:!1},n.definitions[o][D.SchemaTag.isViewNode]=!0,(u=e.entityType)!=null&&u.name&&(n.definitions[o][D.SchemaTag.annotationPath]=Tn(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier)),n.definitions[l]={type:"object",properties:{},description:"Fields",additionalProperties:!1},n.definitions[l][D.SchemaTag.isViewNode]=!0,e.base===D.FacetBase.Identification)for(let f in e.target){let p=e.target[f];p&&tg(t,n,p,i,f,e,r,a)}else for(let f in e.target.Data){let p=e.target.Data[f];tg(t,n,p,i,f,e,r)}}s(Fv,"addFieldsToFormDefinition");function Nv(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][D.SchemaTag.keys]=[{name:D.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][D.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][D.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][D.SchemaTag.annotationPath]=Tn(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}s(Nv,"addTagsToFormDefinition");function ng(e,t,n,i,r,a){if(!t.target)return;let o=Iv(t),l=Re(`${e}${D.DefinitionName.Form}<${o}>`),c=Re(`${e}${D.DefinitionName.Fields}<${o}>`),u=Re(`${e}${D.DefinitionName.Actions}<${o}>`),f=!(t.base===D.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${V}${l}`},e===D.SectionType.Section&&f?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${V}${u}`},fields:{$ref:`${V}${c}`}},description:"Form",additionalProperties:!1},i.definitions[u]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[u][D.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${V}${c}`}},description:"Form",additionalProperties:!1},Nv(t,i,l),i.definitions[c]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[c][D.SchemaTag.isViewNode]=!0,Fv(t,e,i,o,r,f),o}s(ng,"handleForm");function Dv(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(o=>o.alias===r);a&&(i=e.replace(n,a.namespace))}return i}s(Dv,"replaceAlias");function Ys(e,t){let n=Dv(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,o,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),o=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(o=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:o,namespace:l}}s(Ys,"getActionNameAndId");function ig(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===D.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:ig(a.pages,t)}}s(ig,"isFirstObjectPage");function rg(e,t,n,i){var c,u,f;e.definitions[D.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${D.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${V}${D.DefinitionName.ObjectPageFooter}`},e.definitions[D.DefinitionName.ObjectPageFooter].properties[D.PropertyName.actions]={$ref:`${V}${D.DefinitionName.FooterActions}`};let r=e.definitions[D.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};r[D.SchemaTag.isViewNode]=!0;let a=xn(D.UIVOCABULARY,t.serviceAVT),o=(c=t.entitySet)==null?void 0:c.entityType,l=a&&((f=(u=o==null?void 0:o.annotations)==null?void 0:u[a])==null?void 0:f.Identification);if(l){let p=l.fullyQualifiedName.replace(`@${Ae.UIAnnotationTerms.Identification}`,`/@${Ae.UIAnnotationTerms.Identification}`);r[D.SchemaTag.annotationPath]=`/${p}`,l.forEach((h,b)=>{if(h.Determining&&h.$Type===Ae.UIAnnotationTypes.DataFieldForAction){let{actionName:C,actionId:F}=Ys(h,t.serviceAVT),N=h.Label||C,E=Re(`${D.DefinitionName.ObjectPageFooterAction}<${F}>`);e.definitions[D.DefinitionName.ObjectPageFooterAction]?e.definitions[E]={...JSON.parse(JSON.stringify(e.definitions[D.DefinitionName.ObjectPageFooterAction])),description:N,annotationPath:`/${p}/${b}`}:(e.definitions[E]={type:"object",properties:{},description:N},e.definitions[E][D.SchemaTag.isViewNode]=!0,e.definitions[E][D.SchemaTag.annotationPath]=`/${p}/${b}`),r.properties[F]={$ref:`${V}${E}`}}})}else o&&(r[D.SchemaTag.annotationPath]=`/${o.fullyQualifiedName}/@${Ae.UIAnnotationTerms.Identification}`);n===D.FioriElementsVersion.v2&&ig(i,t)&&!Xd(o)&&Yd(e,r),delete e.definitions[D.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${D.DefinitionName.ObjectPageFooter}<${D.DefinitionName.ObjectPageFooterActions}>`]}s(rg,"addFooterActions");function ag(e,t,n,i,r=!1){var f,p;let a=D.DefinitionName.HeaderActions,o=e.definitions[a];e.definitions[D.DefinitionName.ObjectPageHeader].properties[D.PropertyName.actions]={$ref:`${V}${a}`};let l=e.definitions[a]={type:"object",properties:{},description:"Actions",additionalProperties:!1};l[D.SchemaTag.isViewNode]=!0;let c=xn(D.UIVOCABULARY,n),u=c&&((p=(f=t==null?void 0:t.annotations)==null?void 0:f[c])==null?void 0:p.Identification);u?(l[D.SchemaTag.annotationPath]="/"+u.fullyQualifiedName.replace(`@${Ae.UIAnnotationTerms.Identification}`,`/@${Ae.UIAnnotationTerms.Identification}`),u.forEach(i(t,e,u,l,n))):t&&(l[D.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ae.UIAnnotationTerms.Identification}`),r&&Ji(e,!0,o),delete e.definitions[D.DefinitionName.GenericActions],delete e.definitions[`${D.DefinitionName.ObjectPageHeader}<${D.DefinitionName.GenericActions}>`]}s(ag,"addHeaderActions");function og(e,t){e.properties.header={$ref:`${V}${D.DefinitionName.ObjectPageHeader}`},e.definitions[D.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${D.DefinitionName.ObjectPageHeader}<${D.DefinitionName.GenericActions}>`])),t&&(e.definitions[D.DefinitionName.ObjectPageHeader][D.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ae.UIAnnotationTerms.HeaderInfo}`)}s(og,"addCommonHeaderSchema");function sg(e,t){return e.entityType?t.entitySets.find(n=>n.entityType.name===e.entityType.name||n.name===e.entityType.name):void 0}s(sg,"determineEntitySetOfFacet");var Gt=require("@sap-ux/vocabularies-types/vocabularies/UI");var je=H(q());function ci(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}s(ci,"addEnumToSchema");function lg(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 o in i){let l=i[o];if(t.indexOf(l.term)>-1){let c=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(c)===-1&&r.push(c)}}ci(r,n)}s(lg,"addEnumForValidAnnotations");function co(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Gt.UIAnnotationTerms.SelectionVariant,Gt.UIAnnotationTerms.SelectionPresentationVariant];lg(e,r,i)}s(co,"addEnumForSingleTabVariant");function cg(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[Gt.UIAnnotationTerms.SelectionVariant,Gt.UIAnnotationTerms.SelectionPresentationVariant];lg(n.entityType,r,i)}s(cg,"addEnumForMultiTabVariant");function fg(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),ci(r,i)}s(fg,"addEnumForVariantEntitySet");function ug(e,t,n,i){let r=n.map(a=>{let o=i.find(c=>!!a[c]);return{const:a[o],...a.label&&{description:a.label},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions.RelatedFacetKeys={type:"string",oneOf:r};for(let a of t){let o=e.definitions[a],l=o.properties.relatedFacet;o.properties.relatedFacet={anyOf:[{$ref:V+"RelatedFacetKeys"},l]}}}}s(ug,"addDefinitionForRelatedFacetKeys");function Lv(e){return e.replace("#","::")}s(Lv,"getFacetKeyInSchema");function pg(e,t){return`${e}<${Lv(t)}>`}s(pg,"getFacetDefinitionKey");function jv(e,t,n,i=!0,r){let a=t;if(i&&(a=pg(r||e,t)),e&&e!==a){let o=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[a]=o}return n.definitions[a]}s(jv,"parseSchemaDefinition");function Zd(e,t,n,i){let r;e.definitions[i]={type:"object",properties:{},description:"Columns"},e.definitions[i].additionalProperties=!1,e.definitions[i][je.SchemaTag.isViewNode]=!0;let a=i.startsWith(je.DefinitionName.LineItems)?"ToolBar":"ObjectPageToolBar",o=`${a}<${i}>`;e.definitions[o]=JSON.parse(JSON.stringify(e.definitions[`${a}`]));let l=`Actions<${Re(i)}>`;e.definitions[o].properties.actions.$ref=V+l;let c=i.startsWith(je.DefinitionName.LineItems)?"Actions":"ObjectPageToolBarActions",u=e.definitions[l]=JSON.parse(JSON.stringify(e.definitions[c]));u.properties={},u.additionalProperties=!1;let f,p;if(i===je.DefinitionName.LineItems&&e.properties.footer){p=`Footer<${i}>`,e.properties.footer.$ref=V+p,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions.GenericFooter));let h=`FooterActions<${Re(i)}>`;e.definitions[p].properties.actions.$ref=V+h,f=e.definitions[h]=JSON.parse(JSON.stringify(e.definitions.Actions)),f.properties={},f.additionalProperties=!1}return t&&(r=Tn(n==null?void 0:n.fullyQualifiedName,t.term,t.qualifier),r&&(e.definitions[i][je.SchemaTag.annotationPath]=e.definitions[o][je.SchemaTag.annotationPath]=r,f&&(e.definitions[p][je.SchemaTag.annotationPath]=r))),{actions:u,footerActions:f,lineItemPath:r}}s(Zd,"addCommonLineItemDefinitions");function dg(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}s(dg,"getDataTypeFromAnnotation");function Vv(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=dg(e.$Type)),t}s(Vv,"determineDataTypeOfTarget");function Xs(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=Vv((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=dg(e.$Type):e.type&&(t=e.type),t}catch{return t}}s(Xs,"determineDataType");function so(e,t){let n=Xs(t);n&&(e[je.SchemaTag.dataType]=n)}s(so,"addDataTypeToDefinition");function _v(e,t){return`${V}${pg(e,t)}`}s(_v,"getFacetDefinitionLink");function Zs(e,t,n,i,r,a,o=""){let l=`ObjectPage${r}${e.base}${o}`,c=`ObjectPage${a}${e.base}${o}`;n.properties[t]={$ref:_v(a?c:l,t)};let u=jv(a?c:l,t,i,!0,a?c:void 0);Or(e,u,t),u[je.SchemaTag.annotationPath]=e.annotationPath,u[je.SchemaTag.isViewNode]=!0}s(Zs,"handleAddressContact");function lo(e,t){let n=e,i;return n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf("/")>0&&(i=n.substring(0,n.indexOf("/")),n=n.substring(n.lastIndexOf("/")+1)),t&&n.indexOf(".")>0&&(i=n.substring(0,n.lastIndexOf(".")),n=n.substring(n.lastIndexOf(".")+1)),i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}s(lo,"getActionKey");function eg(e,t,n){var i,r,a;try{if(e.Value)t[n][je.SchemaTag.keys]=[{name:je.SchemaKeyName.value,value:li(e.Value)}];else if(e.$Type===Gt.UIAnnotationTypes.DataFieldWithAction||e.$Type===Gt.UIAnnotationTypes.DataFieldForAction){let{key:o,ns:l}=lo(e.Action,!0);t[n][je.SchemaTag.keys]=[{name:je.SchemaKeyName.action,value:o}],l&&(t[n][je.SchemaTag.target]=l)}else if(e.$Type===Gt.UIAnnotationTypes.DataFieldForAnnotation){let{key:o}=lo(e.Target.value,!1);t[n][je.SchemaTag.keys]=[{name:je.SchemaKeyName.target,value:Ya(o)}],t[n][je.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else(e.$Type===Gt.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Gt.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)&&(t[n][je.SchemaTag.keys]=[{name:"SemanticObject",value:e[je.SchemaKeyName.semanticObject]},{name:"Action",value:e.Action}])}catch{return}}s(eg,"addKeyToDefinition");var Qi=H(q());var gg=[{version:"1.120",distTag:["latest","UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123","UI5-1.124"]},{version:"1.108",distTag:["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.102",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"]},{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 mg="1.71.100";var wn=class wn{constructor(){wn.distTagsOfSpec.length===0&&(wn.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){wn.distTagsOfSpec=[]}getSpecVersion(){return mg}getDistTagsOfVersion(){let t=[],n=gg,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;if(!t||t.startsWith("$")){let r=Q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});ne(n,{severity:Qi.LogSeverity.Info,message:r,location:{path:Qi.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(wn.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=Q.t("WRONGMINUI5VERSION",{minUI5Version:t});ne(n,{severity:Qi.LogSeverity.Warning,message:r,location:{path:Qi.MANIFESTPATH}})}}};s(wn,"DistTagEvaluator"),wn.distTagsOfSpec=[];var Nr=wn;var ee=H(q());var $e=H(q());var Pt=H(q());var el=class el{constructor(t,n,i,r,a,o,l){this.unhandledControllers=[];let c=qe(Pt.SchemaType.Application);this.app={$schema:c.path,id:t["sap.app"].id,pages:r,home:i,target:{fioriElements:a,odata:a===Pt.FioriElementsVersion.v2?Pt.OdataVersion.v2:Pt.OdataVersion.v4},...o&&{settings:o}},this.schemas=n,this.logger=l}createConfigFiles(){let t={},n={},i;for(let a in this.app.pages)if(i=this.app.pages[a],i.config){let o=i.config;if(i.pageType!==Pt.PageType.CustomPage){let l=qe(i.pageType,i.entitySet);if(this.schemas[l.filename])o.$schema=l.path;else{let c=qe(i.pageType);o.$schema=c.path}t[`${Pt.DirName.Pages}/${a}.json`]=o}}let r=JSON.parse(JSON.stringify(this.app));for(let a in r.pages)delete r.pages[a].config;return n[Pt.FileName.App]=r,{appConfig:n,pageConfigs:t}}};s(el,"AppProvider");var zi=el;var ie=H(q());var fi=H(q());function fo(e,t,n){if(t.controlType.endsWith(fi.DefinitionName.Table))e[t.propertyId]=t.newValue;else if(t.controlType===fi.ControlType.TableColumn){if(!(n==null?void 0:n.definitions[fi.DefinitionName.TableColumn]).properties[t.propertyId])return;let r=t.controlId.split("-"),o=r[r.length-1].split("template:::TableColumn:::"),l=o[o.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",fi.VOCWITHCOLONS).replace("/",":2f");e.columns||(e.columns={}),e.columns[l]||(e.columns[l]={}),e.columns[l][t.propertyId]=t.newValue}}s(fo,"addFlexForTable");var qi=H(q());var Qe=s((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),yg=s((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2");var hg=s((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 tl(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}s(tl,"getNewPageTemplate");function Mv(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}s(Mv,"findPageInManifest");function kv(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=tl(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:tl(e[t].pageType)}),!Array.isArray(n.pages))){let i=Mv(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=tl(e[t].pageType)),nl(t,e,i)}}s(kv,"transformPageFromAssociation");function Bv(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)===qi.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let o=`ObjectPage_${r.entitySet}`;t[o]||delete e.pages[i]}}),(n.pageType===qi.PageTypeV2.ListReport||n.pageType===qi.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}s(Bv,"deletePage");function nl(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===qi.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)kv(t,r,n);Array.isArray(n.pages)||Bv(n,t,i)}}s(nl,"transformPageToNewManifestV2");var Xg=H(xr());var Ec={};Oa(Ec,{ALPAnalyticalTable:()=>jl,ALPGridTable:()=>Ll,ALPResponsiveTable:()=>Dl,Action:()=>Rl,AnalyticalCard:()=>$r,AnalyticalCardSettings:()=>ll,AnalyticalListPageFilterBar:()=>gl,AnalyticalTable:()=>Nl,BaseCustomSection:()=>oa,ChartSettings:()=>tc,ChartSettingsType:()=>rl,CommonCardSettings:()=>Gn,CommonTableSettings:()=>Wn,CommonTableSettingsForSections:()=>Si,CreateWithFilters:()=>Ol,CustomCard:()=>ol,DefaultSpanObject:()=>al,FRAGMENT_DEFINITION:()=>fn,Field:()=>pl,FieldForAction:()=>hl,FooterAction:()=>Ml,FormAction:()=>yl,GlobalTableSettings:()=>Sc,GridTable:()=>Vl,HeaderAction:()=>rc,HeaderActionStandard:()=>Hl,KPISettings:()=>nc,LinkListCardSettings:()=>fl,LinklistCard:()=>kr,ListCard:()=>Rr,ListCardSettings:()=>sl,ListReportFilterBar:()=>ho,ObjectPageAnalyticalTable:()=>Tc,ObjectPageCustomSectionFragment:()=>sa,ObjectPageCustomSectionView:()=>la,ObjectPageFooterAction:()=>ac,ObjectPageFooterActionStandard:()=>Wl,ObjectPageGridTable:()=>xc,ObjectPageHeader:()=>ic,ObjectPageHeaderActionStandard:()=>Kl,ObjectPageLayout:()=>sc,ObjectPageResponsiveTable:()=>Pi,ObjectPageSectionAddressV2:()=>pc,ObjectPageSectionChartV2:()=>fc,ObjectPageSectionContactV2:()=>dc,ObjectPageSectionFormV2:()=>cc,ObjectPageSectionTableV2:()=>uc,ObjectPageSectionV2:()=>lc,ObjectPageSubSectionChartV2:()=>yc,ObjectPageSubSectionContactV2:()=>hc,ObjectPageSubSectionFormV2:()=>mc,ObjectPageSubSectionTableV2:()=>bc,ObjectPageSubSectionV2:()=>gc,ObjectPageToolBarAction:()=>Pc,ObjectPageTreeTable:()=>Cc,QuickVariantSelection:()=>Al,QuickVariantSelectionOP:()=>vc,QuickVariantSelectionX:()=>Il,ResponsiveTable:()=>pi,SAP_UI_TABLE:()=>bo,SaveAndEditOP:()=>Gl,Share:()=>kl,ShareOP:()=>Bl,StackCard:()=>Mr,StackCardSettings:()=>cl,TableALP:()=>nr,TableCard:()=>Br,TableCardSettings:()=>ul,TableColumn:()=>zl,TableColumnAction:()=>Vo,TableColumnActionIntentBased:()=>ql,TableCustomColumn:()=>Xl,ToolBar:()=>Zl,ToolBarAction:()=>$l,TreeTable:()=>Fl,UpAndDownNavigationOP:()=>Ul,buildIntentBasedActionId:()=>Jl,deleteColumnFromFragment:()=>xo,deleteType:()=>rr,exportCustomColumnsToFragment:()=>El,exportDefaultSpan:()=>vg,exportType:()=>ir,getChartSectionControlId:()=>Wg,getContactSubSectionControlId:()=>Qg,getCustomColumnPath:()=>Co,getFormSectionControlId:()=>Kg,getRootCustomColumnFromFragmentJSON:()=>Kr,getSectionControlId:()=>xi,getSmartChartControlId:()=>ea,getSmartTableControlId:()=>On,getSubSectionControlId:()=>Jg,getTableSectionControlId:()=>Hg});var st=H(q());var fe=s(e=>`${st.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),go=s(e=>fe(e)+"/tableSettings","getTableSettingPathV2");var Ue=s(()=>st.ManifestSection.ovp,"getOVPsettingPath"),K=s(e=>{let t=[st.ManifestSection.ovp+"/cards"];return e.forEach(n=>{n in st.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var ui=s((e,t)=>`${st.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),bg=s(e=>{let t=[st.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Ht=s(e=>{let t=[];return t.push(bg(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Mn=s(e=>Ht(e)+"/tableSettings","getGlobalTableSettingsPathV2"),an=s((e,t,n)=>{let i=[];i.push(bg(e));let r=n.replace(st.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),kn=s((e,t,n)=>an(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2");var il=s(()=>`sap.ui5/extends/extensions/${st.v2.SAPUI5_VIEW_EXTENSION}/${st.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),Sn=s((e,t,n,...i)=>{let r="|",a=n.split(r),o=e[e.length-1].split(r),l="";a.length===4?l=[a[2],a[3]].join(r):a.length===3&&(l=a[2]);let c=[a[0],o[o.length-1],l].join(r);return i.unshift(c),`${il()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),po=class po{};s(po,"ApplicationV2"),g([Je("settings")],po.prototype,"settings",2);var uo=po,Rn=class Rn{};s(Rn,"AppSettings"),g([m({manifest:{path:()=>"sap.app"}})],Rn.prototype,"title",2),g([m({manifest:{path:()=>"sap.app"}})],Rn.prototype,"description",2),g([m({manifest:{path:()=>st.GENERICAPPSETTINGS}}),L({since:"1.50.0"})],Rn.prototype,"flexibleColumnLayout",2),g([m({manifest:{path:()=>st.GENERICAPPSETTINGS}}),L({since:"1.46.0"})],Rn.prototype,"forceGlobalRefresh",2),g([m({manifest:{path:()=>"sap.ui5"}}),L({since:"1.56.0"})],Rn.prototype,"flexEnabled",2);var $n=Rn;function vg(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}s(vg,"exportDefaultSpan");var mo=class mo{};s(mo,"ChartSettingsType"),g([m({manifest:{path:()=>Ue()+"/chartSettings"}})],mo.prototype,"showDataLabel",2);var rl=mo,Bn=class Bn{};s(Bn,"DefaultSpanObject"),g([m({manifest:{path:t=>K(t)}})],Bn.prototype,"cols",2),g([m({manifest:{path:t=>K(t)}})],Bn.prototype,"rows",2),g([m({manifest:{path:t=>K(t)}})],Bn.prototype,"showOnlyHeader",2),g([m({manifest:{path:t=>K(t)}})],Bn.prototype,"minimumTitleRow",2),g([m({manifest:{path:t=>K(t)}})],Bn.prototype,"minimumSubTitleRow",2);var al=Bn,Pe=class Pe{};s(Pe,"CommonCardSettings"),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"entitySet",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"title",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"subTitle",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"annotationPath",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"dataPointAnnotationPath",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"selectionPresentationAnnotationPath",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"kpiAnnotationPath",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"category",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"dynamicSubtitleAnnotationPath",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"valueSelectionInfo",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"showFilterInHeader",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"sortBy",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"sortOrder",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"identificationAnnotationPath",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"selectionAnnotationPath",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"presentationAnnotationPath",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"enableLocaleCurrencyFormatting",2),g([m({manifest:{path:t=>K(t),export:vg}})],Pe.prototype,"defaultSpan",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"requireAppAuthorization",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"showSortingInHeader",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"tabs",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"addODataSelect",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"showRefresh",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"customParams",2);var Gn=Pe,Xi=class Xi{};s(Xi,"CustomCard"),g([m({manifest:{path:t=>K(t)}})],Xi.prototype,"model",2),g([m({manifest:{path:t=>K(t)}})],Xi.prototype,"template",2),g([m({manifest:{path:t=>K(t)}})],Xi.prototype,"settings",2);var ol=Xi,Un=class Un extends Gn{};s(Un,"ListCardSettings"),g([m({manifest:{path:t=>K(t)}})],Un.prototype,"showLineItemDetail",2),g([m({manifest:{path:t=>K(t)}})],Un.prototype,"imageSupported",2),g([m({manifest:{path:t=>K(t)}})],Un.prototype,"enableAddToInsights",2),g([m({manifest:{path:t=>K(t)}})],Un.prototype,"listFlavor",2),g([m({manifest:{path:t=>K(t)}})],Un.prototype,"listType",2);var sl=Un,Dr=class Dr{};s(Dr,"ListCard"),g([m({manifest:{path:t=>K(t)}})],Dr.prototype,"model",2),g([m({manifest:{path:t=>K(t)}})],Dr.prototype,"template",2);var Rr=Dr,on=class on extends Gn{};s(on,"AnalyticalCardSettings"),g([m({manifest:{path:t=>K(t)}})],on.prototype,"chartAnnotationPath",2),g([m({manifest:{path:t=>K(t)}})],on.prototype,"ignoreSapText",2),g([m({manifest:{path:t=>K(t)}})],on.prototype,"enableAddToInsights",2),g([m({manifest:{path:t=>K(t)}})],on.prototype,"navigation",2),g([m({manifest:{path:t=>K(t)}})],on.prototype,"valueSelectionInfo",2),g([m({manifest:{path:t=>K(t)}})],on.prototype,"chartProperties",2),g([m({manifest:{path:t=>K(t)}})],on.prototype,"colorPalette",2);var ll=on,Lr=class Lr{};s(Lr,"AnalyticalCard"),g([m({manifest:{path:t=>K(t)}})],Lr.prototype,"model",2),g([m({manifest:{path:t=>K(t)}})],Lr.prototype,"template",2);var $r=Lr,Yi=class Yi extends Gn{};s(Yi,"StackCardSettings"),g([m({manifest:{path:t=>K(t)}})],Yi.prototype,"itemText",2),g([m({manifest:{path:t=>K(t)}})],Yi.prototype,"objectStreamCardsNavigationProperty",2),g([m({manifest:{path:t=>K(t)}})],Yi.prototype,"objectStreamCardsSettings",2);var cl=Yi,jr=class jr{};s(jr,"StackCard"),g([m({manifest:{path:t=>K(t)}})],jr.prototype,"model",2),g([m({manifest:{path:t=>K(t)}})],jr.prototype,"template",2);var Mr=jr,Zi=class Zi extends Gn{};s(Zi,"LinkListCardSettings"),g([m({manifest:{path:t=>K(t)}})],Zi.prototype,"listFlavor",2),g([m({manifest:{path:t=>K(t)}})],Zi.prototype,"headerAnnotationPath",2),g([m({manifest:{path:t=>K(t)}})],Zi.prototype,"staticContent",2);var fl=Zi,Vr=class Vr{};s(Vr,"LinklistCard"),g([m({manifest:{path:t=>K(t)}})],Vr.prototype,"model",2),g([m({manifest:{path:t=>K(t)}})],Vr.prototype,"template",2);var kr=Vr,_r=class _r extends Gn{};s(_r,"TableCardSettings"),g([m({manifest:{path:t=>K(t)}})],_r.prototype,"showLineItemDetail",2),g([m({manifest:{path:t=>K(t)}})],_r.prototype,"enableAddToInsights",2);var ul=_r,wr=class wr{};s(wr,"TableCard"),g([m({manifest:{path:t=>K(t)}})],wr.prototype,"model",2),g([m({manifest:{path:t=>K(t)}})],wr.prototype,"template",2);var Br=wr;var Tg=H(q());var Uv=s((e,t,n,i,r)=>{let a=Xe(n[1],r),o=n.slice(-1)[0];return Se(e,[a,o,"GroupElement"])},"getSmartFieldControlId"),yo=class yo{};s(yo,"Field"),g([m({flex:{controlId:Uv,controlType:()=>Tg.ControlType.GroupElement,createFlexChange:R},generate:ge})],yo.prototype,"visible",2);var pl=yo;var ml=H(q());var dl={controlId:Se,controlType:()=>ml.ControlType.SmartFilterBar,createFlexChange:R},sn=class sn{};s(sn,"ListReportFilterBar"),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.38.0"})],sn.prototype,"smartVariantManagement",2),g([m({flex:dl}),L({since:"1.40.0"})],sn.prototype,"liveMode",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.48.0"})],sn.prototype,"variantManagementHidden",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.52.0"})],sn.prototype,"subTitleIfVariantMgmtHidden",2),g([m({flex:{controlId:Se,controlType:()=>ml.ControlType.SmartFilterBar,createFlexChange:R}}),L({since:"1.28.0"})],sn.prototype,"showClearOnFB",2),g([m({flex:dl}),L({since:"1.38.0"})],sn.prototype,"showFilterConfiguration",2),g([m({flex:dl}),L({since:"1.28.0"})],sn.prototype,"showRestoreOnFB",2);var ho=sn,Ur=class Ur extends ho{};s(Ur,"AnalyticalListPageFilterBar"),g([m({manifest:{path:t=>fe(t)}})],Ur.prototype,"showGoButtonOnFilterBar",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.60.0"})],Ur.prototype,"filterDefaultsFromSelectionVariant",2);var gl=Ur;var Vt=H(q());var ln=s((e,t,n,i,r)=>{if(i()===Vt.ControlType.Button){let a=n[n.length-1],o=Xe(n[1],r);return`${e}action::${a}::${o}::FormAction`}return Se(e,t)},"getFormActionButtonId"),Hn=class Hn{};s(Hn,"FormAction"),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R},generate:ge})],Hn.prototype,"visible",2),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R}})],Hn.prototype,"tooltip",2),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R}})],Hn.prototype,"icon",2),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R}})],Hn.prototype,"activeIcon",2),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R}})],Hn.prototype,"type",2);var yl=Hn,Kn=class Kn{};s(Kn,"FieldForAction"),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R},generate:ge})],Kn.prototype,"visible",2),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R}})],Kn.prototype,"tooltip",2),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R}})],Kn.prototype,"icon",2),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R}})],Kn.prototype,"activeIcon",2),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R}})],Kn.prototype,"type",2);var hl=Kn;var De=H(q()),Kt=H(xr());var Tl=require("path"),oT=H(q()),Vg=H(jg()),_g=require("fs");var sT=(0,Tl.join)(__dirname,"templates");var lT=s((e,t)=>{let n=(0,_g.readFileSync)(e,"utf8");return(0,Vg.render)(n,t)},"renderTemplate");var xl=s((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 lT((0,Tl.join)(sT,t+".xml"),n)},"getSingleColumnContent"),Cl=s((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=xl(i,t);n=n+`
|
|
82
|
+
`)}};he.escapeXML=Ge.escapeXML;he.__express=he.renderFile;he.VERSION=qv;he.name=eT;typeof window<"u"&&(window.ejs=he)});var ni={};Aa(ni,{exportConfig:()=>aS,generateSchema:()=>rS,getApiVersion:()=>cS,getChanges:()=>xm,getGenericSchema:()=>ls,getPathToGenericSchema:()=>cm,getProject:()=>mS,importConfig:()=>oS,importProject:()=>sS,importProjectSchema:()=>lS,isDirectory:()=>uS,log:()=>ne,readDirectory:()=>Wc});module.exports=_m(ni);var we=H(q());var _=H(q());function et(e){"@babel/helpers - typeof";return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et(e)}s(et,"_typeof");function Dt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}s(Dt,"_classCallCheck");function ms(e,t){if(et(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(et(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}s(ms,"toPrimitive");function gr(e){var t=ms(e,"string");return et(t)=="symbol"?t:String(t)}s(gr,"toPropertyKey");function Iu(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,gr(i.key),i)}}s(Iu,"_defineProperties");function Lt(e,t,n){return t&&Iu(e.prototype,t),n&&Iu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}s(Lt,"_createClass");function kt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}s(kt,"_assertThisInitialized");function mr(e,t){return mr=Object.setPrototypeOf?Object.setPrototypeOf.bind():s(function(i,r){return i.__proto__=r,i},"_setPrototypeOf"),mr(e,t)}s(mr,"_setPrototypeOf");function ji(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mr(e,t)}s(ji,"_inherits");function ri(e,t){if(t&&(et(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kt(e)}s(ri,"_possibleConstructorReturn");function jt(e){return jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():s(function(n){return n.__proto__||Object.getPrototypeOf(n)},"_getPrototypeOf"),jt(e)}s(jt,"_getPrototypeOf");function Zt(e,t,n){return t=gr(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}s(Zt,"_defineProperty");function ys(e){if(Array.isArray(e))return e}s(ys,"_arrayWithHoles");function hs(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}s(hs,"_iterableToArray");function Ia(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}s(Ia,"_arrayLikeToArray");function bs(e,t){if(e){if(typeof e=="string")return Ia(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ia(e,t)}}s(bs,"_unsupportedIterableToArray");function vs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
83
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}s(vs,"_nonIterableRest");function Ts(e){return ys(e)||hs(e)||bs(e)||vs()}s(Ts,"_toArray");function Fu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}s(Fu,"ownKeys$6");function Nu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fu(Object(n),!0).forEach(function(i){Zt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}s(Nu,"_objectSpread$6");var ky={type:"logger",log:s(function(t){this.output("log",t)},"log"),warn:s(function(t){this.output("warn",t)},"warn"),error:s(function(t){this.output("error",t)},"error"),output:s(function(t,n){console&&console[t]&&console[t].apply(console,n)},"output")},By=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Dt(this,e),this.init(t,n)}return s(e,"Logger"),Lt(e,[{key:"init",value:s(function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=n||ky,this.options=i,this.debug=i.debug},"init")},{key:"setDebug",value:s(function(n){this.debug=n},"setDebug")},{key:"log",value:s(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"log","",!0)},"log")},{key:"warn",value:s(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"warn","",!0)},"warn")},{key:"error",value:s(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"error","")},"error")},{key:"deprecate",value:s(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"warn","WARNING DEPRECATED: ",!0)},"deprecate")},{key:"forward",value:s(function(n,i,r,a){return a&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(r).concat(this.prefix," ").concat(n[0])),this.logger[i](n))},"forward")},{key:"create",value:s(function(n){return new e(this.logger,Nu(Nu({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))},"create")},{key:"clone",value:s(function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)},"clone")}]),e}(),tn=new By,Dn=function(){function e(){Dt(this,e),this.observers={}}return s(e,"EventEmitter"),Lt(e,[{key:"on",value:s(function(n,i){var r=this;return n.split(" ").forEach(function(a){r.observers[a]=r.observers[a]||[],r.observers[a].push(i)}),this},"on")},{key:"off",value:s(function(n,i){if(this.observers[n]){if(!i){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(r){return r!==i})}},"off")},{key:"emit",value:s(function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];if(this.observers[n]){var o=[].concat(this.observers[n]);o.forEach(function(c){c.apply(void 0,r)})}if(this.observers["*"]){var l=[].concat(this.observers["*"]);l.forEach(function(c){c.apply(c,[n].concat(r))})}},"emit")}]),e}();function yr(){var e,t,n=new Promise(function(i,r){e=i,t=r});return n.resolve=e,n.reject=t,n}s(yr,"defer");function Du(e){return e==null?"":""+e}s(Du,"makeString");function Uy(e,t,n){e.forEach(function(i){t[i]&&(n[i]=t[i])})}s(Uy,"copy");function Cs(e,t,n){function i(l){return l&&l.indexOf("###")>-1?l.replace(/###/g,"."):l}s(i,"cleanKey");function r(){return!e||typeof e=="string"}s(r,"canNotTraverseDeeper");for(var a=typeof t!="string"?[].concat(t):t.split(".");a.length>1;){if(r())return{};var o=i(a.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return r()?{}:{obj:e,k:i(a.shift())}}s(Cs,"getLastOfPath");function Lu(e,t,n){var i=Cs(e,t,Object),r=i.obj,a=i.k;r[a]=n}s(Lu,"setPath");function Gy(e,t,n,i){var r=Cs(e,t,Object),a=r.obj,o=r.k;a[o]=a[o]||[],i&&(a[o]=a[o].concat(n)),i||a[o].push(n)}s(Gy,"pushPath");function Da(e,t){var n=Cs(e,t),i=n.obj,r=n.k;if(i)return i[r]}s(Da,"getPath");function Hy(e,t,n){var i=Da(e,n);return i!==void 0?i:Da(t,n)}s(Hy,"getPathWithDefaults");function Ju(e,t,n){for(var i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?typeof e[i]=="string"||e[i]instanceof String||typeof t[i]=="string"||t[i]instanceof String?n&&(e[i]=t[i]):Ju(e[i],t[i],n):e[i]=t[i]);return e}s(Ju,"deepExtend");function Vi(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}s(Vi,"regexEscape");var Ky={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Wy(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return Ky[t]}):e}s(Wy,"escape");var Va=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Jy=[" ",",","?","!",";"];function Qy(e,t,n){t=t||"",n=n||"";var i=Jy.filter(function(l){return t.indexOf(l)<0&&n.indexOf(l)<0});if(i.length===0)return!0;var r=new RegExp("(".concat(i.map(function(l){return l==="?"?"\\?":l}).join("|"),")")),a=!r.test(e);if(!a){var o=e.indexOf(n);o>0&&!r.test(e.substring(0,o))&&(a=!0)}return a}s(Qy,"looksLikeObjectPath");function La(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var i=t.split(n),r=e,a=0;a<i.length;++a){if(!r||typeof r[i[a]]=="string"&&a+1<i.length)return;if(r[i[a]]===void 0){for(var o=2,l=i.slice(a,a+o).join(n),c=r[l];c===void 0&&i.length>a+o;)o++,l=i.slice(a,a+o).join(n),c=r[l];if(c===void 0)return;if(c===null)return null;if(t.endsWith(l)){if(typeof c=="string")return c;if(l&&typeof c[l]=="string")return c[l]}var u=i.slice(a+o).join(n);return u?La(c,u,n):void 0}r=r[i[a]]}return r}}s(La,"deepFind");function ju(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}s(ju,"ownKeys$5");function Fa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ju(Object(n),!0).forEach(function(i){Zt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ju(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}s(Fa,"_objectSpread$5");function zy(e){var t=qy();return s(function(){var i=jt(e),r;if(t){var a=jt(this).constructor;r=Reflect.construct(i,arguments,a)}else r=i.apply(this,arguments);return ri(this,r)},"_createSuperInternal")}s(zy,"_createSuper$3");function qy(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}s(qy,"_isNativeReflectConstruct$3");var Xy=function(e){ji(n,e);var t=zy(n);function n(i){var r,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Dt(this,n),r=t.call(this),Va&&Dn.call(kt(r)),r.data=i||{},r.options=a,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return s(n,"ResourceStore"),Lt(n,[{key:"addNamespaces",value:s(function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)},"addNamespaces")},{key:"removeNamespaces",value:s(function(r){var a=this.options.ns.indexOf(r);a>-1&&this.options.ns.splice(a,1)},"removeNamespaces")},{key:"getResource",value:s(function(r,a,o){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,u=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure,f=[r,a];o&&typeof o!="string"&&(f=f.concat(o)),o&&typeof o=="string"&&(f=f.concat(c?o.split(c):o)),r.indexOf(".")>-1&&(f=r.split("."));var p=Da(this.data,f);return p||!u||typeof o!="string"?p:La(this.data&&this.data[r]&&this.data[r][a],o,c)},"getResource")},{key:"addResource",value:s(function(r,a,o,l){var c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,f=[r,a];o&&(f=f.concat(u?o.split(u):o)),r.indexOf(".")>-1&&(f=r.split("."),l=a,a=f[1]),this.addNamespaces(a),Lu(this.data,f,l),c.silent||this.emit("added",r,a,o,l)},"addResource")},{key:"addResources",value:s(function(r,a,o){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var c in o)(typeof o[c]=="string"||Object.prototype.toString.apply(o[c])==="[object Array]")&&this.addResource(r,a,c,o[c],{silent:!0});l.silent||this.emit("added",r,a,o)},"addResources")},{key:"addResourceBundle",value:s(function(r,a,o,l,c){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},f=[r,a];r.indexOf(".")>-1&&(f=r.split("."),l=o,o=a,a=f[1]),this.addNamespaces(a);var p=Da(this.data,f)||{};l?Ju(p,o,c):p=Fa(Fa({},p),o),Lu(this.data,f,p),u.silent||this.emit("added",r,a,o)},"addResourceBundle")},{key:"removeResourceBundle",value:s(function(r,a){this.hasResourceBundle(r,a)&&delete this.data[r][a],this.removeNamespaces(a),this.emit("removed",r,a)},"removeResourceBundle")},{key:"hasResourceBundle",value:s(function(r,a){return this.getResource(r,a)!==void 0},"hasResourceBundle")},{key:"getResourceBundle",value:s(function(r,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Fa(Fa({},{}),this.getResource(r,a)):this.getResource(r,a)},"getResourceBundle")},{key:"getDataByLanguage",value:s(function(r){return this.data[r]},"getDataByLanguage")},{key:"hasLanguageSomeTranslations",value:s(function(r){var a=this.getDataByLanguage(r),o=a&&Object.keys(a)||[];return!!o.find(function(l){return a[l]&&Object.keys(a[l]).length>0})},"hasLanguageSomeTranslations")},{key:"toJSON",value:s(function(){return this.data},"toJSON")}]),n}(Dn),Qu={processors:{},addPostProcessor:s(function(t){this.processors[t.name]=t},"addPostProcessor"),handle:s(function(t,n,i,r,a){var o=this;return t.forEach(function(l){o.processors[l]&&(n=o.processors[l].process(n,i,r,a))}),n},"handle")};function Vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}s(Vu,"ownKeys$4");function nt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vu(Object(n),!0).forEach(function(i){Zt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}s(nt,"_objectSpread$4");function Yy(e){var t=Zy();return s(function(){var i=jt(e),r;if(t){var a=jt(this).constructor;r=Reflect.construct(i,arguments,a)}else r=i.apply(this,arguments);return ri(this,r)},"_createSuperInternal")}s(Yy,"_createSuper$2");function Zy(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}s(Zy,"_isNativeReflectConstruct$2");var _u={},wu=function(e){ji(n,e);var t=Yy(n);function n(i){var r,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Dt(this,n),r=t.call(this),Va&&Dn.call(kt(r)),Uy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,kt(r)),r.options=a,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=tn.create("translator"),r}return s(n,"Translator"),Lt(n,[{key:"changeLanguage",value:s(function(r){r&&(this.language=r)},"changeLanguage")},{key:"exists",value:s(function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var o=this.resolve(r,a);return o&&o.res!==void 0},"exists")},{key:"extractFromKey",value:s(function(r,a){var o=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,c=a.ns||this.options.defaultNS||[],u=o&&r.indexOf(o)>-1,f=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!Qy(r,o,l);if(u&&!f){var p=r.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:r,namespaces:c};var h=r.split(o);(o!==l||o===l&&this.options.ns.indexOf(h[0])>-1)&&(c=h.shift()),r=h.join(l)}return typeof c=="string"&&(c=[c]),{key:r,namespaces:c}},"extractFromKey")},{key:"translate",value:s(function(r,a,o){var l=this;if(et(a)!=="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),et(a)==="object"&&(a=nt({},a)),a||(a={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var c=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,u=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,f=this.extractFromKey(r[r.length-1],a),p=f.key,h=f.namespaces,b=h[h.length-1],C=a.lng||this.language,F=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(C&&C.toLowerCase()==="cimode"){if(F){var N=a.nsSeparator||this.options.nsSeparator;return c?{res:"".concat(b).concat(N).concat(p),usedKey:p,exactUsedKey:p,usedLng:C,usedNS:b}:"".concat(b).concat(N).concat(p)}return c?{res:p,usedKey:p,exactUsedKey:p,usedLng:C,usedNS:b}:p}var E=this.resolve(r,a),I=E&&E.res,k=E&&E.usedKey||p,w=E&&E.exactUsedKey||p,oe=Object.prototype.toString.apply(I),ye=["[object Number]","[object Function]","[object RegExp]"],tt=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,Qt=typeof I!="string"&&typeof I!="boolean"&&typeof I!="number";if(x&&I&&Qt&&ye.indexOf(oe)<0&&!(typeof tt=="string"&&oe==="[object Array]")){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var pt=this.options.returnedObjectHandler?this.options.returnedObjectHandler(k,I,nt(nt({},a),{},{ns:h})):"key '".concat(p," (").concat(this.language,")' returned an object instead of string.");return c?(E.res=pt,E):pt}if(u){var Fe=oe==="[object Array]",At=Fe?[]:{},Fi=Fe?w:k;for(var dt in I)if(Object.prototype.hasOwnProperty.call(I,dt)){var pn="".concat(Fi).concat(u).concat(dt);At[dt]=this.translate(pn,nt(nt({},a),{joinArrays:!1,ns:h})),At[dt]===pn&&(At[dt]=I[dt])}I=At}}else if(x&&typeof tt=="string"&&oe==="[object Array]")I=I.join(tt),I&&(I=this.extendTranslation(I,r,a,o));else{var pe=!1,zt=!1,dn=a.count!==void 0&&typeof a.count!="string",qt=n.hasDefaultValue(a),It=dn?this.pluralResolver.getSuffix(C,a.count,a):"",Ft=a["defaultValue".concat(It)]||a.defaultValue;!this.isValidLookup(I)&&qt&&(pe=!0,I=Ft),this.isValidLookup(I)||(zt=!0,I=p);var X=a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,$t=X&&zt?void 0:I,Xt=qt&&Ft!==I&&this.options.updateMissing;if(zt||pe||Xt){if(this.logger.log(Xt?"updateKey":"missingKey",C,b,p,Xt?Ft:I),u){var Oe=this.resolve(p,nt(nt({},a),{},{keySeparator:!1}));Oe&&Oe.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.")}var y=[],d=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&d&&d[0])for(var A=0;A<d.length;A++)y.push(d[A]);else this.options.saveMissingTo==="all"?y=this.languageUtils.toResolveHierarchy(a.lng||this.language):y.push(a.lng||this.language);var v=s(function(ve,be,He){var Ze=qt&&He!==I?He:$t;l.options.missingKeyHandler?l.options.missingKeyHandler(ve,b,be,Ze,Xt,a):l.backendConnector&&l.backendConnector.saveMissing&&l.backendConnector.saveMissing(ve,b,be,Ze,Xt,a),l.emit("missingKey",ve,b,be,I)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&dn?y.forEach(function(re){l.pluralResolver.getSuffixes(re,a).forEach(function(ve){v([re],p+ve,a["defaultValue".concat(ve)]||Ft)})}):v(y,p,Ft))}I=this.extendTranslation(I,r,a,E,o),zt&&I===p&&this.options.appendNamespaceToMissingKey&&(I="".concat(b,":").concat(p)),(zt||pe)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?I=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(b,":").concat(p):p,pe?I:void 0):I=this.options.parseMissingKeyHandler(I))}return c?(E.res=I,E):I},"translate")},{key:"extendTranslation",value:s(function(r,a,o,l,c){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,nt(nt({},this.options.interpolation.defaultVariables),o),l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(nt(nt({},o),{interpolation:nt(nt({},this.options.interpolation),o.interpolation)}));var f=typeof r=="string"&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),p;if(f){var h=r.match(this.interpolator.nestingRegexp);p=h&&h.length}var b=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(b=nt(nt({},this.options.interpolation.defaultVariables),b)),r=this.interpolator.interpolate(r,b,o.lng||this.language,o),f){var C=r.match(this.interpolator.nestingRegexp),F=C&&C.length;p<F&&(o.nest=!1)}!o.lng&&this.options.compatibilityAPI!=="v1"&&l&&l.res&&(o.lng=l.usedLng),o.nest!==!1&&(r=this.interpolator.nest(r,function(){for(var I=arguments.length,k=new Array(I),w=0;w<I;w++)k[w]=arguments[w];return c&&c[0]===k[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(k[0]," in key: ").concat(a[0])),null):u.translate.apply(u,k.concat([a]))},o)),o.interpolation&&this.interpolator.reset()}var N=o.postProcess||this.options.postProcess,E=typeof N=="string"?[N]:N;return r!=null&&E&&E.length&&o.applyPostProcessor!==!1&&(r=Qu.handle(E,r,a,this.options&&this.options.postProcessPassResolved?nt({i18nResolved:l},o):o,this)),r},"extendTranslation")},{key:"resolve",value:s(function(r){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,c,u,f,p;return typeof r=="string"&&(r=[r]),r.forEach(function(h){if(!a.isValidLookup(l)){var b=a.extractFromKey(h,o),C=b.key;c=C;var F=b.namespaces;a.options.fallbackNS&&(F=F.concat(a.options.fallbackNS));var N=o.count!==void 0&&typeof o.count!="string",E=N&&!o.ordinal&&o.count===0&&a.pluralResolver.shouldUseIntlApi(),I=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",k=o.lngs?o.lngs:a.languageUtils.toResolveHierarchy(o.lng||a.language,o.fallbackLng);F.forEach(function(w){a.isValidLookup(l)||(p=w,!_u["".concat(k[0],"-").concat(w)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(p)&&(_u["".concat(k[0],"-").concat(w)]=!0,a.logger.warn('key "'.concat(c,'" for languages "').concat(k.join(", "),`" won't get resolved as namespace "`).concat(p,'" 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!!!")),k.forEach(function(oe){if(!a.isValidLookup(l)){f=oe;var ye=[C];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(ye,C,oe,w,o);else{var tt;N&&(tt=a.pluralResolver.getSuffix(oe,o.count,o));var x="".concat(a.options.pluralSeparator,"zero");if(N&&(ye.push(C+tt),E&&ye.push(C+x)),I){var Qt="".concat(C).concat(a.options.contextSeparator).concat(o.context);ye.push(Qt),N&&(ye.push(Qt+tt),E&&ye.push(Qt+x))}}for(var pt;pt=ye.pop();)a.isValidLookup(l)||(u=pt,l=a.getResource(oe,w,pt,o))}}))})}}),{res:l,usedKey:c,exactUsedKey:u,usedLng:f,usedNS:p}},"resolve")},{key:"isValidLookup",value:s(function(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")},"isValidLookup")},{key:"getResource",value:s(function(r,a,o){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,a,o,l):this.resourceStore.getResource(r,a,o,l)},"getResource")}],[{key:"hasDefaultValue",value:s(function(r){var a="defaultValue";for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&a===o.substring(0,a.length)&&r[o]!==void 0)return!0;return!1},"hasDefaultValue")}]),n}(Dn);function xs(e){return e.charAt(0).toUpperCase()+e.slice(1)}s(xs,"capitalize");var Ru=function(){function e(t){Dt(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=tn.create("languageUtils")}return s(e,"LanguageUtil"),Lt(e,[{key:"getScriptPartFromCode",value:s(function(n){if(!n||n.indexOf("-")<0)return null;var i=n.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))},"getScriptPartFromCode")},{key:"getLanguagePartFromCode",value:s(function(n){if(!n||n.indexOf("-")<0)return n;var i=n.split("-");return this.formatLanguageCode(i[0])},"getLanguagePartFromCode")},{key:"formatLanguageCode",value:s(function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var i=["hans","hant","latn","cyrl","cans","mong","arab"],r=n.split("-");return this.options.lowerCaseLng?r=r.map(function(a){return a.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),i.indexOf(r[1].toLowerCase())>-1&&(r[1]=xs(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),i.indexOf(r[1].toLowerCase())>-1&&(r[1]=xs(r[1].toLowerCase())),i.indexOf(r[2].toLowerCase())>-1&&(r[2]=xs(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n},"formatLanguageCode")},{key:"isSupportedCode",value:s(function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1},"isSupportedCode")},{key:"getBestMatchFromCodes",value:s(function(n){var i=this;if(!n)return null;var r;return n.forEach(function(a){if(!r){var o=i.formatLanguageCode(a);(!i.options.supportedLngs||i.isSupportedCode(o))&&(r=o)}}),!r&&this.options.supportedLngs&&n.forEach(function(a){if(!r){var o=i.getLanguagePartFromCode(a);if(i.isSupportedCode(o))return r=o;r=i.options.supportedLngs.find(function(l){if(l===o)return l;if(!(l.indexOf("-")<0&&o.indexOf("-")<0)&&l.indexOf(o)===0)return l})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r},"getBestMatchFromCodes")},{key:"getFallbackCodes",value:s(function(n,i){if(!n)return[];if(typeof n=="function"&&(n=n(i)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!i)return n.default||[];var r=n[i];return r||(r=n[this.getScriptPartFromCode(i)]),r||(r=n[this.formatLanguageCode(i)]),r||(r=n[this.getLanguagePartFromCode(i)]),r||(r=n.default),r||[]},"getFallbackCodes")},{key:"toResolveHierarchy",value:s(function(n,i){var r=this,a=this.getFallbackCodes(i||this.options.fallbackLng||[],n),o=[],l=s(function(u){u&&(r.isSupportedCode(u)?o.push(u):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))},"addCode");return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(n))):typeof n=="string"&&l(this.formatLanguageCode(n)),a.forEach(function(c){o.indexOf(c)<0&&l(r.formatLanguageCode(c))}),o},"toResolveHierarchy")}]),e}(),eh=[{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}],th={1:s(function(t){return+(t>1)},"_"),2:s(function(t){return+(t!=1)},"_"),3:s(function(t){return 0},"_"),4:s(function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},"_"),5:s(function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},"_"),6:s(function(t){return t==1?0:t>=2&&t<=4?1:2},"_"),7:s(function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},"_"),8:s(function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},"_"),9:s(function(t){return+(t>=2)},"_"),10:s(function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},"_"),11:s(function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},"_"),12:s(function(t){return+(t%10!=1||t%100==11)},"_"),13:s(function(t){return+(t!==0)},"_"),14:s(function(t){return t==1?0:t==2?1:t==3?2:3},"_"),15:s(function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},"_"),16:s(function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},"_"),17:s(function(t){return t==1||t%10==1&&t%100!=11?0:1},"_"),18:s(function(t){return t==0?0:t==1?1:2},"_"),19:s(function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},"_"),20:s(function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},"_"),21:s(function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},"_"),22:s(function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3},"_")},nh=["v1","v2","v3"],$u={zero:0,one:1,two:2,few:3,many:4,other:5};function ih(){var e={};return eh.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:th[t.fc]}})}),e}s(ih,"createRules");var rh=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Dt(this,e),this.languageUtils=t,this.options=n,this.logger=tn.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(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=ih()}return s(e,"PluralResolver"),Lt(e,[{key:"addRule",value:s(function(n,i){this.rules[n]=i},"addRule")},{key:"getRule",value:s(function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:i.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]},"getRule")},{key:"needsPlural",value:s(function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(n,i);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1},"needsPlural")},{key:"getPluralFormsOfKey",value:s(function(n,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,r).map(function(a){return"".concat(i).concat(a)})},"getPluralFormsOfKey")},{key:"getSuffixes",value:s(function(n){var i=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(n,r);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort(function(o,l){return $u[o]-$u[l]}).map(function(o){return"".concat(i.options.prepend).concat(o)}):a.numbers.map(function(o){return i.getSuffix(n,o,r)}):[]},"getSuffixes")},{key:"getSuffix",value:s(function(n,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this.getRule(n,r);return a?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(a.select(i)):this.getSuffixRetroCompatible(a,i):(this.logger.warn("no plural rule found for: ".concat(n)),"")},"getSuffix")},{key:"getSuffixRetroCompatible",value:s(function(n,i){var r=this,a=n.noAbs?n.plurals(i):n.plurals(Math.abs(i)),o=n.numbers[a];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));var l=s(function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()},"returnSuffix");return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?"_plural_".concat(o.toString()):l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?l():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()},"getSuffixRetroCompatible")},{key:"shouldUseIntlApi",value:s(function(){return!nh.includes(this.options.compatibilityJSON)},"shouldUseIntlApi")}]),e}();function Mu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}s(Mu,"ownKeys$3");function Bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mu(Object(n),!0).forEach(function(i){Zt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}s(Bt,"_objectSpread$3");function ku(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=Hy(e,t,n);return!a&&r&&typeof n=="string"&&(a=La(e,n,i),a===void 0&&(a=La(t,n,i))),a}s(ku,"deepFindWithDefaults");var ah=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Dt(this,e),this.logger=tn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return s(e,"Interpolator"),Lt(e,[{key:"init",value:s(function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var i=n.interpolation;this.escape=i.escape!==void 0?i.escape:Wy,this.escapeValue=i.escapeValue!==void 0?i.escapeValue:!0,this.useRawValueToEscape=i.useRawValueToEscape!==void 0?i.useRawValueToEscape:!1,this.prefix=i.prefix?Vi(i.prefix):i.prefixEscaped||"{{",this.suffix=i.suffix?Vi(i.suffix):i.suffixEscaped||"}}",this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||",",this.unescapePrefix=i.unescapeSuffix?"":i.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":i.unescapeSuffix||"",this.nestingPrefix=i.nestingPrefix?Vi(i.nestingPrefix):i.nestingPrefixEscaped||Vi("$t("),this.nestingSuffix=i.nestingSuffix?Vi(i.nestingSuffix):i.nestingSuffixEscaped||Vi(")"),this.nestingOptionsSeparator=i.nestingOptionsSeparator?i.nestingOptionsSeparator:i.nestingOptionsSeparator||",",this.maxReplaces=i.maxReplaces?i.maxReplaces:1e3,this.alwaysFormat=i.alwaysFormat!==void 0?i.alwaysFormat:!1,this.resetRegExp()},"init")},{key:"reset",value:s(function(){this.options&&this.init(this.options)},"reset")},{key:"resetRegExp",value:s(function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var i="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(i,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")},"resetRegExp")},{key:"interpolate",value:s(function(n,i,r,a){var o=this,l,c,u,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function p(N){return N.replace(/\$/g,"$$$$")}s(p,"regexSafe");var h=s(function(E){if(E.indexOf(o.formatSeparator)<0){var I=ku(i,f,E,o.options.keySeparator,o.options.ignoreJSONStructure);return o.alwaysFormat?o.format(I,void 0,r,Bt(Bt(Bt({},a),i),{},{interpolationkey:E})):I}var k=E.split(o.formatSeparator),w=k.shift().trim(),oe=k.join(o.formatSeparator).trim();return o.format(ku(i,f,w,o.options.keySeparator,o.options.ignoreJSONStructure),oe,r,Bt(Bt(Bt({},a),i),{},{interpolationkey:w}))},"handleFormat");this.resetRegExp();var b=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,C=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,F=[{regex:this.regexpUnescape,safeValue:s(function(E){return p(E)},"safeValue")},{regex:this.regexp,safeValue:s(function(E){return o.escapeValue?p(o.escape(E)):p(E)},"safeValue")}];return F.forEach(function(N){for(u=0;l=N.regex.exec(n);){var E=l[1].trim();if(c=h(E),c===void 0)if(typeof b=="function"){var I=b(n,l,a);c=typeof I=="string"?I:""}else if(a&&Object.prototype.hasOwnProperty.call(a,E))c="";else if(C){c=l[0];continue}else o.logger.warn("missed to pass in variable ".concat(E," for interpolating ").concat(n)),c="";else typeof c!="string"&&!o.useRawValueToEscape&&(c=Du(c));var k=N.safeValue(c);if(n=n.replace(l[0],k),C?(N.regex.lastIndex+=c.length,N.regex.lastIndex-=l[0].length):N.regex.lastIndex=0,u++,u>=o.maxReplaces)break}}),n},"interpolate")},{key:"nest",value:s(function(n,i){var r=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,l,c;function u(b,C){var F=this.nestingOptionsSeparator;if(b.indexOf(F)<0)return b;var N=b.split(new RegExp("".concat(F,"[ ]*{"))),E="{".concat(N[1]);b=N[0],E=this.interpolate(E,c);var I=E.match(/'/g),k=E.match(/"/g);(I&&I.length%2===0&&!k||k.length%2!==0)&&(E=E.replace(/'/g,'"'));try{c=JSON.parse(E),C&&(c=Bt(Bt({},C),c))}catch(w){return this.logger.warn("failed parsing options string in nesting for key ".concat(b),w),"".concat(b).concat(F).concat(E)}return delete c.defaultValue,b}for(s(u,"handleHasOptions");o=this.nestingRegexp.exec(n);){var f=[];c=Bt({},a),c=c.replace&&typeof c.replace!="string"?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;var p=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){var h=o[1].split(this.formatSeparator).map(function(b){return b.trim()});o[1]=h.shift(),f=h,p=!0}if(l=i(u.call(this,o[1].trim(),c),c),l&&o[0]===n&&typeof l!="string")return l;typeof l!="string"&&(l=Du(l)),l||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(n)),l=""),p&&(l=f.reduce(function(b,C){return r.format(b,C,a.lng,Bt(Bt({},a),{},{interpolationkey:o[1].trim()}))},l.trim())),n=n.replace(o[0],l),this.regexp.lastIndex=0}return n},"nest")}]),e}();function Bu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}s(Bu,"ownKeys$2");function gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bu(Object(n),!0).forEach(function(i){Zt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}s(gn,"_objectSpread$2");function oh(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var i=e.split("(");t=i[0].toLowerCase().trim();var r=i[1].substring(0,i[1].length-1);if(t==="currency"&&r.indexOf(":")<0)n.currency||(n.currency=r.trim());else if(t==="relativetime"&&r.indexOf(":")<0)n.range||(n.range=r.trim());else{var a=r.split(";");a.forEach(function(o){if(o){var l=o.split(":"),c=Ts(l),u=c[0],f=c.slice(1),p=f.join(":").trim().replace(/^'+|'+$/g,"");n[u.trim()]||(n[u.trim()]=p),p==="false"&&(n[u.trim()]=!1),p==="true"&&(n[u.trim()]=!0),isNaN(p)||(n[u.trim()]=parseInt(p,10))}})}}return{formatName:t,formatOptions:n}}s(oh,"parseFormatStr");function _i(e){var t={};return s(function(i,r,a){var o=r+JSON.stringify(a),l=t[o];return l||(l=e(r,a),t[o]=l),l(i)},"invokeFormatter")}s(_i,"createCachedFormatter");var sh=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Dt(this,e),this.logger=tn.create("formatter"),this.options=t,this.formats={number:_i(function(n,i){var r=new Intl.NumberFormat(n,gn({},i));return function(a){return r.format(a)}}),currency:_i(function(n,i){var r=new Intl.NumberFormat(n,gn(gn({},i),{},{style:"currency"}));return function(a){return r.format(a)}}),datetime:_i(function(n,i){var r=new Intl.DateTimeFormat(n,gn({},i));return function(a){return r.format(a)}}),relativetime:_i(function(n,i){var r=new Intl.RelativeTimeFormat(n,gn({},i));return function(a){return r.format(a,i.range||"day")}}),list:_i(function(n,i){var r=new Intl.ListFormat(n,gn({},i));return function(a){return r.format(a)}})},this.init(t)}return s(e,"Formatter"),Lt(e,[{key:"init",value:s(function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},r=i.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","},"init")},{key:"add",value:s(function(n,i){this.formats[n.toLowerCase().trim()]=i},"add")},{key:"addCached",value:s(function(n,i){this.formats[n.toLowerCase().trim()]=_i(i)},"addCached")},{key:"format",value:s(function(n,i,r){var a=this,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=i.split(this.formatSeparator),c=l.reduce(function(u,f){var p=oh(f),h=p.formatName,b=p.formatOptions;if(a.formats[h]){var C=u;try{var F=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},N=F.locale||F.lng||o.locale||o.lng||r;C=a.formats[h](u,N,gn(gn(gn({},b),o),F))}catch(E){a.logger.warn(E)}return C}else a.logger.warn("there was no format function for ".concat(h));return u},n);return c},"format")}]),e}();function Uu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}s(Uu,"ownKeys$1");function Gu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uu(Object(n),!0).forEach(function(i){Zt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}s(Gu,"_objectSpread$1");function lh(e){var t=ch();return s(function(){var i=jt(e),r;if(t){var a=jt(this).constructor;r=Reflect.construct(i,arguments,a)}else r=i.apply(this,arguments);return ri(this,r)},"_createSuperInternal")}s(lh,"_createSuper$1");function ch(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}s(ch,"_isNativeReflectConstruct$1");function fh(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}s(fh,"removePending");var uh=function(e){ji(n,e);var t=lh(n);function n(i,r,a){var o,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Dt(this,n),o=t.call(this),Va&&Dn.call(kt(o)),o.backend=i,o.store=r,o.services=a,o.languageUtils=a.languageUtils,o.options=l,o.logger=tn.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=l.maxParallelReads||10,o.readingCalls=0,o.maxRetries=l.maxRetries>=0?l.maxRetries:5,o.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(a,l.backend,l),o}return s(n,"Connector"),Lt(n,[{key:"queueLoad",value:s(function(r,a,o,l){var c=this,u={},f={},p={},h={};return r.forEach(function(b){var C=!0;a.forEach(function(F){var N="".concat(b,"|").concat(F);!o.reload&&c.store.hasResourceBundle(b,F)?c.state[N]=2:c.state[N]<0||(c.state[N]===1?f[N]===void 0&&(f[N]=!0):(c.state[N]=1,C=!1,f[N]===void 0&&(f[N]=!0),u[N]===void 0&&(u[N]=!0),h[F]===void 0&&(h[F]=!0)))}),C||(p[b]=!0)}),(Object.keys(u).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(u),pending:Object.keys(f),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(h)}},"queueLoad")},{key:"loaded",value:s(function(r,a,o){var l=r.split("|"),c=l[0],u=l[1];a&&this.emit("failedLoading",c,u,a),o&&this.store.addResourceBundle(c,u,o),this.state[r]=a?-1:2;var f={};this.queue.forEach(function(p){Gy(p.loaded,[c],u),fh(p,r),a&&p.errors.push(a),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(function(h){f[h]||(f[h]={});var b=p.loaded[h];b.length&&b.forEach(function(C){f[h][C]===void 0&&(f[h][C]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(function(p){return!p.done})},"loaded")},{key:"read",value:s(function(r,a,o){var l=this,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,f=arguments.length>5?arguments[5]:void 0;if(!r.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:a,fcName:o,tried:c,wait:u,callback:f});return}this.readingCalls++;var p=s(function(F,N){if(l.readingCalls--,l.waitingReads.length>0){var E=l.waitingReads.shift();l.read(E.lng,E.ns,E.fcName,E.tried,E.wait,E.callback)}if(F&&N&&c<l.maxRetries){setTimeout(function(){l.read.call(l,r,a,o,c+1,u*2,f)},u);return}f(F,N)},"resolver"),h=this.backend[o].bind(this.backend);if(h.length===2){try{var b=h(r,a);b&&typeof b.then=="function"?b.then(function(C){return p(null,C)}).catch(p):p(null,b)}catch(C){p(C)}return}return h(r,a,p)},"read")},{key:"prepareLoading",value:s(function(r,a){var o=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=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."),c&&c();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof a=="string"&&(a=[a]);var u=this.queueLoad(r,a,l,c);if(!u.toLoad.length)return u.pending.length||c(),null;u.toLoad.forEach(function(f){o.loadOne(f)})},"prepareLoading")},{key:"load",value:s(function(r,a,o){this.prepareLoading(r,a,{},o)},"load")},{key:"reload",value:s(function(r,a,o){this.prepareLoading(r,a,{reload:!0},o)},"reload")},{key:"loadOne",value:s(function(r){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=r.split("|"),c=l[0],u=l[1];this.read(c,u,"read",void 0,void 0,function(f,p){f&&a.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(c," failed"),f),!f&&p&&a.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(c),p),a.loaded(r,f,p)})},"loadOne")},{key:"saveMissing",value:s(function(r,a,o,l,c){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},f=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(a,'" 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(!(o==null||o==="")){if(this.backend&&this.backend.create){var p=Gu(Gu({},u),{},{isUpdate:c}),h=this.backend.create.bind(this.backend);if(h.length<6)try{var b;h.length===5?b=h(r,a,o,l,p):b=h(r,a,o,l),b&&typeof b.then=="function"?b.then(function(C){return f(null,C)}).catch(f):f(null,b)}catch(C){f(C)}else h(r,a,o,l,f,p)}!r||!r[0]||this.store.addResource(r[0],a,o,l)}},"saveMissing")}]),n}(Dn);function Hu(){return{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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:s(function(t){var n={};if(et(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),et(t[2])==="object"||et(t[3])==="object"){var i=t[3]||t[2];Object.keys(i).forEach(function(r){n[r]=i[r]})}return n},"handle"),interpolation:{escapeValue:!0,format:s(function(t,n,i,r){return t},"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}s(Hu,"get");function Ku(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}s(Ku,"transformOptions");function Wu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}s(Wu,"ownKeys");function en(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wu(Object(n),!0).forEach(function(i){Zt(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wu(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}s(en,"_objectSpread");function ph(e){var t=dh();return s(function(){var i=jt(e),r;if(t){var a=jt(this).constructor;r=Reflect.construct(i,arguments,a)}else r=i.apply(this,arguments);return ri(this,r)},"_createSuperInternal")}s(ph,"_createSuper");function dh(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}s(dh,"_isNativeReflectConstruct");function Na(){}s(Na,"noop");function gh(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}s(gh,"bindMemberFunctions");var ja=function(e){ji(n,e);var t=ph(n);function n(){var i,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(Dt(this,n),i=t.call(this),Va&&Dn.call(kt(i)),i.options=Ku(r),i.services={},i.logger=tn,i.modules={external:[]},gh(kt(i)),a&&!i.isInitialized&&!r.isClone){if(!i.options.initImmediate)return i.init(r,a),ri(i,kt(i));setTimeout(function(){i.init(r,a)},0)}return i}return s(n,"I18n"),Lt(n,[{key:"init",value:s(function(){var r=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;typeof a=="function"&&(o=a,a={}),!a.defaultNS&&a.defaultNS!==!1&&a.ns&&(typeof a.ns=="string"?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));var l=Hu();this.options=en(en(en({},l),this.options),Ku(a)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=en(en({},l.interpolation),this.options.interpolation)),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);function c(E){return E?typeof E=="function"?new E:E:null}if(s(c,"createClassOnDemand"),!this.options.isClone){this.modules.logger?tn.init(c(this.modules.logger),this.options):tn.init(null,this.options);var u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=sh);var f=new Ru(this.options);this.store=new Xy(this.options.resources,this.options);var p=this.services;p.logger=tn,p.resourceStore=this.store,p.languageUtils=f,p.pluralResolver=new rh(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(p.formatter=c(u),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new ah(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new uh(c(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(E){for(var I=arguments.length,k=new Array(I>1?I-1:0),w=1;w<I;w++)k[w-1]=arguments[w];r.emit.apply(r,[E].concat(k))}),this.modules.languageDetector&&(p.languageDetector=c(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=c(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new wu(this.services,this.options),this.translator.on("*",function(E){for(var I=arguments.length,k=new Array(I>1?I-1:0),w=1;w<I;w++)k[w-1]=arguments[w];r.emit.apply(r,[E].concat(k))}),this.modules.external.forEach(function(E){E.init&&E.init(r)})}if(this.format=this.options.interpolation.format,o||(o=Na),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var b=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];b.forEach(function(E){r[E]=function(){var I;return(I=r.store)[E].apply(I,arguments)}});var C=["addResource","addResources","addResourceBundle","removeResourceBundle"];C.forEach(function(E){r[E]=function(){var I;return(I=r.store)[E].apply(I,arguments),r}});var F=yr(),N=s(function(){var I=s(function(w,oe){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),F.resolve(oe),o(w,oe)},"finish");if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return I(null,r.t.bind(r));r.changeLanguage(r.options.lng,I)},"load");return this.options.resources||!this.options.initImmediate?N():setTimeout(N,0),F},"init")},{key:"loadResources",value:s(function(r){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Na,l=o,c=typeof r=="string"?r:this.language;if(typeof r=="function"&&(l=r),!this.options.resources||this.options.partialBundledLanguages){if(c&&c.toLowerCase()==="cimode")return l();var u=[],f=s(function(b){if(b){var C=a.services.languageUtils.toResolveHierarchy(b);C.forEach(function(F){u.indexOf(F)<0&&u.push(F)})}},"append");if(c)f(c);else{var p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.forEach(function(h){return f(h)})}this.options.preload&&this.options.preload.forEach(function(h){return f(h)}),this.services.backendConnector.load(u,this.options.ns,function(h){!h&&!a.resolvedLanguage&&a.language&&a.setResolvedLanguage(a.language),l(h)})}else l(null)},"loadResources")},{key:"reloadResources",value:s(function(r,a,o){var l=yr();return r||(r=this.languages),a||(a=this.options.ns),o||(o=Na),this.services.backendConnector.reload(r,a,function(c){l.resolve(),o(c)}),l},"reloadResources")},{key:"use",value:s(function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&Qu.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this},"use")},{key:"setResolvedLanguage",value:s(function(r){if(!(!r||!this.languages)&&!(["cimode","dev"].indexOf(r)>-1))for(var a=0;a<this.languages.length;a++){var o=this.languages[a];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}},"setResolvedLanguage")},{key:"changeLanguage",value:s(function(r,a){var o=this;this.isLanguageChangingTo=r;var l=yr();this.emit("languageChanging",r);var c=s(function(h){o.language=h,o.languages=o.services.languageUtils.toResolveHierarchy(h),o.resolvedLanguage=void 0,o.setResolvedLanguage(h)},"setLngProps"),u=s(function(h,b){b?(c(b),o.translator.changeLanguage(b),o.isLanguageChangingTo=void 0,o.emit("languageChanged",b),o.logger.log("languageChanged",b)):o.isLanguageChangingTo=void 0,l.resolve(function(){return o.t.apply(o,arguments)}),a&&a(h,function(){return o.t.apply(o,arguments)})},"done"),f=s(function(h){!r&&!h&&o.services.languageDetector&&(h=[]);var b=typeof h=="string"?h:o.services.languageUtils.getBestMatchFromCodes(h);b&&(o.language||c(b),o.translator.language||o.translator.changeLanguage(b),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage&&o.services.languageDetector.cacheUserLanguage(b)),o.loadResources(b,function(C){u(C,b)})},"setLng");return!r&&this.services.languageDetector&&!this.services.languageDetector.async?f(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(f):this.services.languageDetector.detect(f):f(r),l},"changeLanguage")},{key:"getFixedT",value:s(function(r,a,o){var l=this,c=s(function u(f,p){var h;if(et(p)!=="object"){for(var b=arguments.length,C=new Array(b>2?b-2:0),F=2;F<b;F++)C[F-2]=arguments[F];h=l.options.overloadTranslationOptionHandler([f,p].concat(C))}else h=en({},p);h.lng=h.lng||u.lng,h.lngs=h.lngs||u.lngs,h.ns=h.ns||u.ns,h.keyPrefix=h.keyPrefix||o||u.keyPrefix;var N=l.options.keySeparator||".",E;return h.keyPrefix&&Array.isArray(f)?E=f.map(function(I){return"".concat(h.keyPrefix).concat(N).concat(I)}):E=h.keyPrefix?"".concat(h.keyPrefix).concat(N).concat(f):f,l.t(E,h)},"fixedT");return typeof r=="string"?c.lng=r:c.lngs=r,c.ns=a,c.keyPrefix=o,c},"getFixedT")},{key:"t",value:s(function(){var r;return this.translator&&(r=this.translator).translate.apply(r,arguments)},"t")},{key:"exists",value:s(function(){var r;return this.translator&&(r=this.translator).exists.apply(r,arguments)},"exists")},{key:"setDefaultNamespace",value:s(function(r){this.options.defaultNS=r},"setDefaultNamespace")},{key:"hasLoadedNamespace",value:s(function(r){var a=this,o=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;var l=o.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;var f=s(function(b,C){var F=a.services.backendConnector.state["".concat(b,"|").concat(C)];return F===-1||F===2},"loadNotPending");if(o.precheck){var p=o.precheck(this,f);if(p!==void 0)return p}return!!(this.hasResourceBundle(l,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(l,r)&&(!c||f(u,r)))},"hasLoadedNamespace")},{key:"loadNamespaces",value:s(function(r,a){var o=this,l=yr();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(c){o.options.ns.indexOf(c)<0&&o.options.ns.push(c)}),this.loadResources(function(c){l.resolve(),a&&a(c)}),l):(a&&a(),Promise.resolve())},"loadNamespaces")},{key:"loadLanguages",value:s(function(r,a){var o=yr();typeof r=="string"&&(r=[r]);var l=this.options.preload||[],c=r.filter(function(u){return l.indexOf(u)<0});return c.length?(this.options.preload=l.concat(c),this.loadResources(function(u){o.resolve(),a&&a(u)}),o):(a&&a(),Promise.resolve())},"loadLanguages")},{key:"dir",value:s(function(r){if(r||(r=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!r)return"rtl";var a=["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"],o=this.services&&this.services.languageUtils||new Ru(Hu());return a.indexOf(o.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"},"dir")},{key:"cloneInstance",value:s(function(){var r=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Na,l=en(en(en({},this.options),a),{isClone:!0}),c=new n(l);(a.debug!==void 0||a.prefix!==void 0)&&(c.logger=c.logger.clone(a));var u=["store","services","language"];return u.forEach(function(f){c[f]=r[f]}),c.services=en({},this.services),c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c.translator=new wu(c.services,c.options),c.translator.on("*",function(f){for(var p=arguments.length,h=new Array(p>1?p-1:0),b=1;b<p;b++)h[b-1]=arguments[b];c.emit.apply(c,[f].concat(h))}),c.init(l,o),c.translator.options=c.options,c.translator.backendConnector.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c},"cloneInstance")},{key:"toJSON",value:s(function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}},"toJSON")}]),n}(Dn);Zt(ja,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ja(e,t)});var Q=ja.createInstance();Q.createInstance=ja.createInstance;var EP=Q.createInstance,OP=Q.dir,AP=Q.init,IP=Q.loadResources,FP=Q.reloadResources,NP=Q.use,DP=Q.changeLanguage,LP=Q.getFixedT,jP=Q.t,VP=Q.exists,_P=Q.setDefaultNamespace,wP=Q.hasLoadedNamespace,RP=Q.loadNamespaces,$P=Q.loadLanguages;var pd=H(Ss()),dd=H(xp()),Xa=H(cd()),ae=require("@sap-ux/vocabularies-types/vocabularies/UI"),Sr=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Bs=H(q());var ne=s((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?console.log(`${Bs.LogSeverityLabel[t.severity]}: ${t.message}; location: ${t.location}`,...n):console.log(`${Bs.LogSeverityLabel[t.severity]}: '${t.message}`,...n)},"log");var V="#/definitions/",Tn=s((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Pr(e,t){let n=[],i;return e&&e.forEach(function(r){try{n.push((0,Xa.parse)(r.fileContent,r.dataSourceUri))}catch(a){return ne(t,{severity:_.LogSeverity.Error,message:Q.t("ANNOERR"),location:{path:Q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0&&(i=(0,dd.convert)((0,Xa.merge)(...n))),i}s(Pr,"parseAndMergeAndConvert");var ki=s(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Us(e,t,n){var i,r,a,o;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((o=(a=e.Common)==null?void 0:a.Label)==null?void 0:o.toString())=="string"&&(n=e.Common.Label.toString());return n}s(Us,"evaluateCommonLabel");function gd(e,t){let n=e.value;return e.$target&&(n=Us(e.$target.annotations,t,n)),n}s(gd,"getLabelForPropertyPath");function qa(e,t){var r,a;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(o=>o.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),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=Us(i.annotations,t,n)),n}s(qa,"getLabelForDataField");function Jb(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 o=e;return Us(a.annotations,t,o)}}}else return}s(Jb,"getLabel");function fd(e,t,n){let i=qa(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}s(fd,"getTitleForDataField");function Er(e,t){var o,l,c,u;let n="",i,r,a="";try{let f=Jb(e.Label,t);switch(e.$Type){case ae.UIAnnotationTypes.DataField:n=fd(e,t,f);break;case ae.UIAnnotationTypes.DataFieldWithUrl:i=qa(e,t),n=f||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=qa(e,t),n=f||i||((l=(o=r.Target)==null?void 0:o.$target)==null?void 0:l.Title)||((c=r.Target)==null?void 0:c.value.split("UI.v1.")[1]);break;case ae.UIAnnotationTypes.DataFieldForAction:case ae.UIAnnotationTypes.DataFieldWithAction:case ae.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,a=typeof e.Action=="string"?r.Action:(u=r.Action)==null?void 0:u.path,f?n=typeof f=="string"?f:a:n=a;break;case ae.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=qa(e,t),n=i||e.Value.path;break;case ae.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=fd(r,t,f);break;default:break}return n}catch{return n}}s(Er,"getDatafieldDescription");function Re(e){return e.replace("#","::").replace(/\//g,":2f")}s(Re,"prepareRef");function vn(e){if(e){let t=`${_.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}s(vn,"getPageTypeV2");function Qb(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}s(Qb,"getTargetAnnotationName");function xn(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}s(xn,"findAlias");function zb(e,t,n){var o,l;let i=e[e.length-1],r=i.substring(i.lastIndexOf(".")+1,i.length),a=xn(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(o=t==null?void 0:t.annotations)==null?void 0:o[a])==null?void 0:l[r]}s(zb,"determineTargetAnnotation");function qb(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${ae.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${_.UIVOCABULARY}`);return e}s(qb,"adjustKey");function Xb(e,t,n,i,r=_.FioriElementsVersion.v2,a=!1){var p,h;let o=!1,l,c=i.split("/"),u=c.length>1;u&&n&&(n=(p=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:p.targetType),t=qb(t,c,a);let f=zb(c,n,e);if(f){let b=r===_.FioriElementsVersion.v2?"::":"#";t=Qb(f,a).replace("#",b),l=(h=f.fullyQualifiedName)==null?void 0:h.split("@")[0]}else return o=!0,{key:t,entityType:n,stopProcessing:o,namespace:l};if(u){let b=r===_.FioriElementsVersion.v2?"::":"/";c.pop(),t=`${[...c].join(b)}${b}${t}`}return{key:t,entityType:n,stopProcessing:o,namespace:l}}s(Xb,"getKeyAndEntityTypeOfReferenceFacet");function md(e,t,n,i,r=_.FioriElementsVersion.v2,a=!1){var f,p,h;let o=(p=e.fullyQualifiedName)==null?void 0:p.substring((f=e.fullyQualifiedName)==null?void 0:f.lastIndexOf("@")),l=e.ID?e.ID.toString():o,c=(h=e.fullyQualifiedName)==null?void 0:h.split("@")[0],u=t;if(e.$Type!==ae.UIAnnotationTypes.CollectionFacet&&"Target"in e){let b=ki(e.Target);if(!b){ne(i,{severity:_.LogSeverity.Error,message:Q.t("NOTARGET",{target:e.Target})});return}let{key:C,entityType:F,stopProcessing:N,namespace:E}=Xb(n,l,u,b,r,a);if(N)return;l=C,u=F,c=E}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:u,namespace:c}}s(md,"getSectionFacet");function Gs(e){let t,n,i;switch(e.$Type){case ae.UIAnnotationTypes.DataField:t=ki(e.Value);break;case ae.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:ki(e.Value);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${_.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case ae.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${Re(e.Action)}`);break;case ae.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=ki(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case ae.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${Re(e.Action)}`);break;case ae.UIAnnotationTypes.DataFieldWithNavigationPath:i=ki(e.Value),n=ki(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}s(Gs,"getSchemaKeyOfLineItemRecord");function Yb(e,t,n){return e.includes(ae.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?ae.UIAnnotationTerms.Chart:e.includes(ae.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?ae.UIAnnotationTerms.Identification:n&&e.includes(ae.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?ae.UIAnnotationTerms.LineItem:e.includes(ae.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?ae.UIAnnotationTerms.FieldGroup:e.includes(ae.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?ae.UIAnnotationTerms.DataPoint:e.includes(ae.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?ae.UIAnnotationTerms.PresentationVariant:void 0}s(Yb,"getUIAnnotationTerm");function Zb(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Sr.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Sr.CommunicationAnnotationTerms.Address:void 0}s(Zb,"getCommunicationAnnotationTerm");function ev(e,t,n){return Yb(e,t,n)||Zb(e,t)}s(ev,"getAnnotationTerm");function tv(e,t,n,i,r,a=_.FioriElementsVersion.v2,o){var p,h,b,C,F,N,E,I,k;let l=xn(_.UIVOCABULARY,r),c=e?e.key:"",u=e.entityType;switch(ev(c,l,i)){case ae.UIAnnotationTerms.Chart:{n[c]={base:_.FacetBase.Chart},n[c].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case ae.UIAnnotationTerms.Identification:{n[c]={base:_.FacetBase.Identification},n[c].target=(h=t==null?void 0:t.Target)==null?void 0:h.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case ae.UIAnnotationTerms.LineItem:{if(!c.includes(ae.UIAnnotationTerms.LineItem)&&c.includes(".LineItem")){let w=c.split("::");w[w.length-1]=`@${ae.UIAnnotationTerms.LineItem}`,c=w.join("::")}n[c]={base:_.FacetBase.LineItem},n[c].target=(b=t==null?void 0:t.Target)==null?void 0:b.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case ae.UIAnnotationTerms.FieldGroup:{n[c]={base:_.FacetBase.Form},n[c].target=(C=t==null?void 0:t.Target)==null?void 0:C.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case ae.UIAnnotationTerms.DataPoint:{n[c]={base:_.FacetBase.DataPoint},n[c].Label=(F=t==null?void 0:t.Target)==null?void 0:F.$target.Title,n[c].target=(N=t==null?void 0:t.Target)==null?void 0:N.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case ae.UIAnnotationTerms.PresentationVariant:{n[c]={base:_.FacetBase.PresentationVariant},n[c].target=(E=t==null?void 0:t.Target)==null?void 0:E.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case Sr.CommunicationAnnotationTerms.Contact:{n[c]={base:_.FacetBase.Contact},n[c].target=(I=t==null?void 0:t.Target)==null?void 0:I.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}case Sr.CommunicationAnnotationTerms.Address:{n[c]={base:_.FacetBase.Address},n[c].target=(k=t==null?void 0:t.Target)==null?void 0:k.$target,n[c].entityType=u,n[c].namespace=e.namespace;break}default:n[c]={base:_.FacetBase.Unknown}}n[c]&&(n[c].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",_.VOCWITHSLASH)}`,t.Label&&(n[c].Label=t.Label),t.ID&&(n[c].ID=t.ID),e&&e.entityType&&(n[c].entityType=e.entityType))}s(tv,"evaluateTargetAnnotation");function yd(e,t,n,i,r,a=_.FioriElementsVersion.v2,o){var c;let l=md(e,i,t,o,a,!1);if(l)switch(e.$Type){case ae.UIAnnotationTypes.ReferenceFacet:{tv(l,e,r,i,t,a,o);break}case ae.UIAnnotationTypes.CollectionFacet:{let u=`/${i.fullyQualifiedName}/${e.fullyQualifiedName.split(i.fullyQualifiedName)[1]}`,f=r[l.key]={base:_.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:u,Label:l.label,namespace:l.namespace};(c=e.Facets)==null||c.forEach(p=>{yd(p,t,n,i,f.facets,a,o)});break}}}s(yd,"addFacetToConfig");function hd(e,t,n=_.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=xn(_.UIVOCABULARY,t),o=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(o){let c=e&&e.fullyQualifiedName.lastIndexOf("."),u=e&&e.fullyQualifiedName.substring(0,c);o.forEach(f=>{yd(f,t,u,e,r,n,i)})}return r}s(hd,"getObjectPageFacets");function Hs(e){return e[_.ManifestSection.generic]||e[_.ManifestSection.ovp]?_.FioriElementsVersion.v2:_.FioriElementsVersion.v4}s(Hs,"getVersionFromManifest");function nv(e,t){var i,r;let n;if(e[_.ManifestSection.generic]){let a=e[_.ManifestSection.generic].pages;if(!a){ne(t,{severity:_.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}});return}for(let o in a){let l=a[o];if(vn((i=l.component)==null?void 0:i.name)===_.PageTypeV2.AnalyticalListPage){n=_.TemplateType.AnalyticalListPageV2;break}else if(vn((r=l.component)==null?void 0:r.name)===_.PageTypeV2.ListReport){n=_.TemplateType.ListReportObjectPageV2;break}}}else n||ne(t,{severity:_.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:_.ManifestSection.generic}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}});return n}s(nv,"determineV2Template");function Ks(e,t,n){let i;return e[_.ManifestSection.ovp]?i=_.TemplateType.OverviewPageV2:t===_.FioriElementsVersion.v2&&(i=nv(e,n)),i}s(Ks,"getTemplateTypeFromManifest");function Or(e,t,n){e!=null&&e.ID?(t.title=_.FacetTitlePrefix+e.ID,t[_.SchemaTag.keys]=[{name:_.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[_.SchemaTag.keys]=[{name:_.SchemaKeyName.id,value:n.replace(_.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}s(Or,"addSectionTitleAndDescription");function Bi(e,t,n){if(!t)return;let i;return e.definitions.ObjectPageSection?i=JSON.parse(JSON.stringify(e.definitions.ObjectPageSection)):(i={type:"object",properties:{},additionalProperties:!1},i[_.SchemaTag.isViewNode]=!0),i[_.SchemaTag.annotationPath]=t.annotationPath,Or(t,i,n),i}s(Bi,"createDefaultSection");function bd(e,t,n,i=_.FioriElementsVersion.v2,r=!1){var l,c;let a=xn(_.UIVOCABULARY,t),o=[];if(e){let u=a&&((c=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:c.Facets);return u&&(o=u.reduce(function(f,p){if(r&&!p.ID&&!("Target"in p&&p.Target))return f;let h=md(p,e,t,n,i,!0);return h&&f.push(h),f},o)),o}}s(bd,"getObjectPageFacetSection");var Ws=s((e,t,n,i)=>{if(!t)return;let r=e,a=t.split("/");a.forEach(function(o){let l=i&&i===o?n:o.replace("??","/");if(r[l]){if(Object.keys(r[l]).length===0){Array.isArray(r)?r.splice(Number(l),1):delete r[l],a.pop(),Ws(e,a.join("/"),n,i);return}r=r&&r[l]}})},"deleteEmptyStructure"),ud=s(e=>`${e}`,"getGenericSchemaFileName"),qe=s((e,t)=>{let n={filename:"",path:""};switch(e){case _.SchemaType.Application:{n.filename="App",n.path=`./${_.DirName.Schemas}/${n.filename}`;break}case _.SchemaType.ListReport:case _.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:ud(e),n.path=`../${_.DirName.Schemas}/${n.filename}`;break}default:{n.filename=ud(e),n.path=`../${_.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function Ya(e,t,n,i){if(e===_.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("_")}s(Ya,"generatePageId");function iv(e,t,n,i){let r=e.$ref;if(r){let a=r.split(V)[1];if(t.definitions[a]){let o=t.definitions[a].controlProperty;r.includes(n[o])&&i.push(a)}}}s(iv,"fillArrayFromAnyOfReference");function rv(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(V)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{iv(r,n,t,i)}),i.length===0))return;return i}s(rv,"fillArrayFromPropertyDefinition");function av(e,t,n,i,r,a,o,l){var u,f,p,h;let c={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(c.targetDefinition=t.definitions[b],(u=c==null?void 0:c.targetDefinition)!=null&&u.$ref||((f=c==null?void 0:c.targetDefinition)==null?void 0:f.type)==="array")return c=jn(t,n,i,c.targetDefinition,r,a,o),c;e.length>1&&e.forEach(N=>{N!==""&&(c.targetDefinition.properties={...c.targetDefinition.properties,...t.definitions[N].properties})}),c.title=(p=c==null?void 0:c.targetDefinition)!=null&&p.title?c.targetDefinition.title:n;let C=b==null?void 0:b.split("<")[0],F=i||{};c.configObject=a.createInstance(o,C,F,(h=c==null?void 0:c.targetDefinition)==null?void 0:h.controlProperty)}else c.targetDefinition=l,c.title=c.targetDefinition.title?c.targetDefinition.title:r,c.configObject=i;return c}s(av,"determineNextDefinitionFromDefinitionArray");function jn(e,t,n,i,r,a,o){let l;if(i.type==="array")return l=jn(e,t,n,i.items,r,a,o),l;let c=rv(i,n,e);if(c)return l=av(c,e,t,n,r,a,o,i),l}s(jn,"getNextTargetDefinition");var Js=s((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,pd.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function yt(e){if(e)return(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::")}s(yt,"convertActionKeyToStableId");function Ui(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}s(Ui,"updatePropertyIndices");function vd(e){return e=e.replace(_.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}s(vd,"removeNamespaces");function Za(e){return e=e.replace(_.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}s(Za,"replaceNamespaces");var Ii=require("@sap-ux/vocabularies-types/vocabularies/UI"),$=H(q());var at=H(q());var Se=s((e,t)=>e+t.join("::"),"buildControlIdFromParent"),eo=s((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),Xe=s((e,t)=>{let n,i=at.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 ov(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}s(ov,"escapeId");var Td=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(Td||{});function sv(e,t,n){let i;return e=e.map(function(r){if(r===at.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===at.PropertyName.sections&&(i=t[a+1],i.indexOf(at.FacetBase.LineItem)!==-1))return t[a+1]=Xe(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}s(sv,"mapBreadcrumbs");var Qs=s((e,t,n,i,r)=>{let a="listReport",o=[...n];({idBreadcrumbs:t}=sv(t,o,r)),o[0]===at.PropertyName.sections?a=o[1].replace(/::com.sap.vocabularies/g,at.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,at.VOCWITHSLASH):t[0]===at.PropertyName.table&&(a=t[0]);let l=o[o.length-1].replace(/::com.sap.vocabularies/g,at.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,at.VOCWITHSLASH).replace("sTarget/@","sTarget::@").replace("/",":2f"),c,u=l.indexOf(":::");return l.startsWith("DataField")&&u>-1?c=`${e}template:::TableColumn:::${l.substring(0,u)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${l.substring(u+3)}`:c=`${e}${t.join("::")}-${l}`,ov(c)},"buildColumnControlId"),ht=s(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 lv(e){let t=at.BindingPropertyRegexAsString;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}s(lv,"determinePattern");var xd=s((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],o=a,l=a.$ref?e.definitions[a.$ref.split(V)[1]]:a,c=a.description?a.description:l.description,u=lv(l);l.type&&l.type==="boolean"&&(o={enum:[!1,!0]}),i&&o.enum&&i.forEach(f=>{o.enum.indexOf(f)===-1&&o.enum.push(f)}),r[n]={pattern:u,anyOf:[o,{type:"string"}]},c&&(r[n].description=c,delete a.description)},"addPatternForBindingChangeOfEnum"),Gi=s((e,t,n)=>{xd(e,t,n)},"addPatternForBindingChangeOfEnumLR"),ge=s((e,t,n)=>{let i=Object.values(Td);xd(e,t,n,i)},"addPatternForBindingChangeOfEnumOP");function Cd(){}s(Cd,"doNotDelete");var FE=H(Pd());var Ed=Symbol("specificationMetadataKey"),m=s(e=>Reflect.metadata(Ed,e),"syncRule");function St(e,t){let n;return e&&(n=Reflect.getMetadata(Ed,e,t)),n}s(St,"getReflectMetadata");var Vn=s(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),Od=Symbol("childId"),Je=s(e=>Reflect.metadata(Od,e),"childId"),Ad=s((e,t)=>Reflect.getMetadata(Od,e,t),"getChildId"),to=s(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),cv=Symbol("validityMetadataKey"),L=s(e=>Reflect.metadata(cv,e),"validity");function no(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}s(no,"getTextForDeprecated");var _d=H(jd()),wd=H(q());var Rd=_d.default.change,Vd={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function $d(e,t){let n="";try{for(let i in Vd)e[i]===void 0&&(e[i]=Vd[i]);n=Rd.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}s($d,"createChangeString");function _n(e){try{return Rd.parse(e)}catch{return!1}}s(_n,"parseChangeString");function Md(e,t,n,i,r){let a=n.layer?n.layer===wd.FlexChangeLayer.Customer:!0,o={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(o,e,i):e[i].toString().startsWith("{")?(o.content.newBinding=e[i],o.type="propertyBindingChange"):o.content.newValue=e[i]:o.content.newValue=null,o}s(Md,"fillFlexChangeContent");function R(e,t){return $d(e,t)}s(R,"exportToFlexChange");var oi=H(q());function io(e,t,n,i,r,a){let o=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let c=l(t,r,n,a);c!==void 0&&(i[n]=c)}else t[o]!==void 0&&(i[n]=t[o])}s(io,"importProperty");function kd(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(ne(i,{severity:oi.LogSeverity.Warning,message:no(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}s(kd,"checkDeprecatedProperties");function zs(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(V)[1]];return zs(n,t)}else return e.title?e.title.startsWith(oi.FacetTitlePrefix)?e.title.split(oi.FacetTitlePrefix)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}s(zs,"getSectionTitle");function ro(e){let t=e.split(`${oi.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}s(ro,"getTargetFromCustomColumnRef");var Ae=require("@sap-ux/vocabularies-types/vocabularies/UI");var Cn=require("@sap-ux/vocabularies-types/vocabularies/UI");function Ud(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}}s(Ud,"replaceSpecialChars");var si=s(function(e){return Ud(vd(e))},"prepareId");function yv(e){let t="";for(let n of e.Apply.Path)n._text&&(t&&(t+="::"),t+=n._text);return t}s(yv,"evaluateConcat");function li(e){var t;if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if(((t=e==null?void 0:e.Apply)==null?void 0:t._attributes.Function)==="odata.concat")return yv(e);if(e&&typeof e=="string")return Ud(e.replace(/ /g,"_"))}s(li,"getStableIdPartFromValue");var Bd=s(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"),Gd=s(function(e){let t="";if(e.$Type&&e.$Type===Cn.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,si(t);if(e.$Type&&e.$Type===Cn.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=Bd(e),t;if(e.$Type&&e.$Type===Cn.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=si(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===Cn.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=li(e.Value)+"::"),t+=e.Action,si(t);if(e.$Type&&e.$Type===Cn.UIAnnotationTypes.DataField)return t="DataField::",t+=li(e.Value),si(t);if(e.$Type&&e.$Type===Cn.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=li(e.Value)+"::",t+=Bd(e),si(t);if(e.$Type&&e.$Type===Cn.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=li(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),si(t);if(e.$Type&&e.$Type===Cn.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=li(e.Value),si(t)},"getStableIdPartFromDataField");var D=H(q());var Y=H(q());var bt=require("@sap-ux/vocabularies-types/vocabularies/UI"),Jd=require("path"),Qd=H(xr());var Hi="ResponsiveTable<LineItems>",Ar="TreeTable<LineItems>",Ir="AnalyticalTable<LineItems>",Fr="GridTable<LineItems>",Hd=[Ar,Ir,Fr],Kd="template::",ao="template:::ObjectPageAction:::";function hv(e,t,n){e.definitions[Y.DefinitionName.LineItems]&&(e.definitions[Y.DefinitionName.LineItems].properties.custom={$ref:`${V}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${V}${n}`},description:"Custom Columns"},e.definitions[t][Y.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[Y.SchemaTag.artifactType]=Y.ArtifactType.Manifest)}s(hv,"addCustomColumnDefinition");function bv(e,t){let n;return e==="TableColumnActionIntentBased"?n=Gs(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=Re(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===bt.UIAnnotationTypes.DataFieldForAction?n=Re(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=Re(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}s(bv,"getActionId");function qs(e,t,n,i,r){let a,o=n.lineItemId===Y.DefinitionName.LineItems?"":"ObjectPage",l=bv(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=o!==""?`${o}${i}`:"Action",i="ToolBarAction");let c=`${o}${i}<${l}>`,u=Er(n.lineItemRecord,n.entityType);t.properties[l]={$ref:V+c},t.properties[l][Y.SchemaTag.propertyIndex]=r;let{key:f,ns:p}=Nr(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[c]={...JSON.parse(JSON.stringify(e.definitions[a])),description:u,keys:[{name:"Action",value:f}],annotationPath:`${n.lineItemPath}/${r}`},p&&(e.definitions[c][Y.SchemaTag.target]=p)):(e.definitions[c]={type:"object",properties:{},description:u,additionalProperties:!1},e.definitions[c][Y.SchemaTag.isViewNode]=!0,e.definitions[c][Y.SchemaTag.keys]=[{name:Y.SchemaKeyName.action,value:f}],p&&(e.definitions[c][Y.SchemaTag.target]=p),e.definitions[c][Y.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}s(qs,"handleActionRecord");function vv(e,t,n){e!==Y.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===bt.UIAnnotationTypes.DataFieldForAction||t.$Type===bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===bt.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}s(vv,"getColumnActionType");function Tv(e,t){let n=[];if(!(e.$Type!==bt.UIAnnotationTypes.DataFieldForAction&&e.$Type!==bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===bt.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===bt.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===bt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),vv(t,e,n),n}s(Tv,"getActionType");function zd(e,t,n){let i=Gs(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:V+Y.DefinitionName.TableColumn,description:Er(e.lineItemRecord,e.entityType)},r.properties[i][Y.SchemaTag.propertyIndex]=n,r.properties[i][Y.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,lo(r.properties[i],e.lineItemRecord),eg(e.lineItemRecord,r.properties,i)}}s(zd,"generateGenericColumn");function xv(e,t,n,i,r,a,o){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{qs(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&qs(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{qs(t,t.definitions[o],i,e,r);break}case"ObjectPageTableColumnAction":zd(i,t,r)}}s(xv,"handleAnyAction");function Ki(e,t,n,i,r){i=i||Y.DefinitionName.LineItems;let{actions:a,footerActions:o,lineItemPath:l}=Zd(e,t,n,i);if(t){let c=0;t.forEach(u=>{let f={lineItemPath:l,lineItemRecord:u,lineItemId:i,entityType:n},p=Tv(u,i);p?p.forEach(h=>{xv(h,e,a,f,c,o,i)}):zd(f,e,c),c++})}r&&(e.definitions[i].properties.custom={$ref:`${V}${r}`})}s(Ki,"addLineItemsType");function Cv(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 o=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=o==null?void 0:o.reduce((l,c)=>(l.includes(c.name)||l.push(c.name),l),[])}}s(Cv,"addListReportLeadingProperties");function Sv(e,t,n,i){var o,l,c,u,f;let r=(l=(o=e.definitions[t])==null?void 0:o.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=(f=(u=(c=n.component)==null?void 0:c.settings)==null?void 0:u.quickVariantSelectionX)==null?void 0:f.variants;if(a){let p=[];Object.keys(a).reduce((h,b)=>{let C=a[b]&&a[b].key!==void 0?a[b].key:void 0;return C!==void 0&&!h.includes(C)&&h.push(C),h},p),ci(p,r)}}s(Sv,"addTabkeyEnum");function oo(e,t,n,i,r){var o,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(c=>{let u=c.dataSourceUri.split("webapp")[1];if(u&&u.indexOf(".fragment.xml")>0){let f=JSON.parse((0,Qd.xml2json)(c.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!f||f.Column||f["table:Column"]||f["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!f||!f.Column&&!f["table:Column"]&&!f["table:AnalyticalColumn"]&&!f["smartfilterbar:ControlConfiguration"])){u=u.replace(new RegExp("\\"+Jd.sep,"g"),"/");let p=n+u.split(".fragment.xml")[0].replace(/\//g,".");a.push(p)}}}),ci(a,(l=(o=e.definitions[r])==null?void 0:o.properties)==null?void 0:l[i])}s(oo,"addFragmentEnum");function Wi(e,t,n,i,r,a=Y.DefinitionName.CustomColumns,o=Y.DefinitionName.CustomColumn,l){hv(e,a,o),Cv(e,t,o),Sv(e,o,n,l);let c=i&&i["sap.app"]&&i["sap.app"].id;oo(e,r,c,"fragmentName",o),oo(e,r,c,"fragmentName",Y.DefinitionName.CustomColumn),oo(e,r,c,"cellsFragmentName",o),oo(e,r,c,"cellsFragmentName",Y.DefinitionName.CustomColumn)}s(Wi,"addTableColumnExtensions");function qd(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}s(qd,"removeElementsFromEnum");function so(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=Tn(n==null?void 0:n.fullyQualifiedName,bt.UIAnnotationTerms.SelectionFields);if(r&&(i[Y.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(o=>{let l=o.value,c=`SelectionField<${Re(o.value)}>`,u=Xs(o);o.type==="PropertyPath"&&(l=gd(o,n)),i.properties[o.value]={$ref:V+c},i.properties[o.value][Y.SchemaTag.propertyIndex]=a,e.definitions[c]={type:"object",description:l,additionalProperties:!1},e.definitions[c][Y.SchemaTag.isViewNode]=!0,e.definitions[c][Y.SchemaTag.annotationType]=o==null?void 0:o.type,e.definitions[c][Y.SchemaTag.dataType]=u,e.definitions[c][Y.SchemaTag.keys]=[{name:Y.SchemaKeyName.value,value:`${o.value}`}],e.definitions[c][Y.SchemaTag.annotationPath]=`${i[Y.SchemaTag.annotationPath]}/${a}`,e.definitions[c].properties={},a++})}s(so,"addSelectionFields");function Xd(e){return!!e.navigationProperties.find(n=>n.name==="DraftAdministrativeData")}s(Xd,"isDraftEnabled");function Ji(e,t=!1,n){let i=Y.DefinitionName.HeaderActionsStandard,r=Y.DefinitionName.HeaderActionsStandard,a=Y.DefinitionName.HeaderActionStandard;t&&(i=Y.DefinitionName.GenericActions,r=Y.DefinitionName.HeaderActions,a=Y.DefinitionName.ObjectPageHeaderActionStandard);let o=e.definitions[i],l=e.definitions[r];l[Y.SchemaTag.isViewNode]=!0,l.description="Actions",Object.entries((n||o).properties).forEach(([u,f])=>{let p=f.$ref.split(V)[1],h=`${a}<${p}>`;l.properties[u]={$ref:`${V}${h}`},e.definitions[h]=e.definitions[p],e.definitions[p][Y.SchemaTag.actionType]=Y.ActionType.Standard})}s(Ji,"addStandardHeaderActions");function Yd(e,t){let n=e.definitions[Y.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split(V)[1],a=`${Y.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${V}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][Y.SchemaTag.actionType]=Y.ActionType.Standard}}s(Yd,"addStandardFooterActionsOP");function Pv(e,t,n,i){if(e===D.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Ae.UIAnnotationTypes.DataField:case Ae.UIAnnotationTypes.DataFieldForAnnotation:case Ae.UIAnnotationTypes.DataFieldWithNavigationPath:case Ae.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===D.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Ae.UIAnnotationTypes.DataField:case Ae.UIAnnotationTypes.DataFieldForAnnotation:case Ae.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}s(Pv,"copyFieldProperties");function Ev(e,t,n,i){let r=e===D.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===D.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}s(Ev,"determineFieldDefinitionName");function Ov(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][D.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][D.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][D.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][D.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}s(Ov,"addKeysTagForDataField");function Av(e,t,n){if(e.$Type===Ae.UIAnnotationTypes.DataField||e.$Type===Ae.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ae.UIAnnotationTypes.DataFieldWithNavigationPath)Ov(e,t,n);else if(e.$Type===Ae.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][D.SchemaTag.keys]=[{name:"Target",value:Za(e.Target.value)}],t.definitions[n][D.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Ae.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][D.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][D.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][D.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Ae.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][D.SchemaTag.keys]=[{name:D.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][D.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][D.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}s(Av,"addKeysTagToField");function tg(e,t,n,i,r,a,o,l=!0){var p;let c=Gd(n),u=o===D.FioriElementsVersion.v2&&c&&c.includes("::")?c.split("::").splice(1).join("::"):c,f=Ev(o,c,i,u);if(!(!n||!n.$Type)){if(n.$Type===Ae.UIAnnotationTypes.DataFieldForAction||n.$Type===Ae.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===D.SectionType.Section){let h=Re(`${e}${D.DefinitionName.Actions}<${i}>`),b=t.definitions[h].properties[u]={$ref:`${V}${f}`};b[D.SchemaTag.propertyIndex]=parseInt(r)}}else{let h=Re(`${e}${D.DefinitionName.Fields}<${i}>`);t.definitions[h].properties[u]={$ref:`${V}${f}`,propertyIndex:parseInt(r)}}t.definitions[f]={type:"object",properties:{},description:Er(n,a.entityType),additionalProperties:!1},Av(n,t,f),t.definitions[f][D.SchemaTag.annotationPath]=`/${a.entityType.fullyQualifiedName}/${n.fullyQualifiedName.split(a.entityType.fullyQualifiedName)[1]}`,t.definitions[f][D.SchemaTag.annotationType]=n.$Type,t.definitions[f][D.SchemaTag.isViewNode]=!0,lo(t.definitions[f],n),Pv(o,t,n,f),n.$Type===Ae.UIAnnotationTypes.DataFieldForAction&&((p=t.definitions)!=null&&p.FormAction)&&(t.definitions[f].properties=t.definitions[D.DefinitionName.FormAction].properties)}}s(tg,"addField");function Iv(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}s(Iv,"determineTargetIdOfForm");function Fv(e,t,n,i,r,a=!0){var u;if(!e.target)return;let o=Re(`${t}${D.DefinitionName.Form}<${i}>`),l=Re(`${t}${D.DefinitionName.Fields}<${i}>`),c=Re(`${t}${D.DefinitionName.Actions}<${i}>`);if(n.properties.form={$ref:`${V}${o}`},t===D.SectionType.Section&&a?(n.definitions[o]={type:"object",properties:{actions:{$ref:`${V}${c}`},fields:{$ref:`${V}${l}`}},description:"Form",additionalProperties:!1},n.definitions[c]={type:"object",properties:{},description:"Actions",additionalProperties:!1},n.definitions[c][D.SchemaTag.isViewNode]=!0):n.definitions[o]={type:"object",properties:{fields:{$ref:`${V}${l}`}},description:"Form",additionalProperties:!1},n.definitions[o][D.SchemaTag.isViewNode]=!0,(u=e.entityType)!=null&&u.name&&(n.definitions[o][D.SchemaTag.annotationPath]=Tn(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier)),n.definitions[l]={type:"object",properties:{},description:"Fields",additionalProperties:!1},n.definitions[l][D.SchemaTag.isViewNode]=!0,e.base===D.FacetBase.Identification)for(let f in e.target){let p=e.target[f];p&&tg(t,n,p,i,f,e,r,a)}else for(let f in e.target.Data){let p=e.target.Data[f];tg(t,n,p,i,f,e,r)}}s(Fv,"addFieldsToFormDefinition");function Nv(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][D.SchemaTag.keys]=[{name:D.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][D.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][D.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][D.SchemaTag.annotationPath]=Tn(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}s(Nv,"addTagsToFormDefinition");function ng(e,t,n,i,r,a){if(!t.target)return;let o=Iv(t),l=Re(`${e}${D.DefinitionName.Form}<${o}>`),c=Re(`${e}${D.DefinitionName.Fields}<${o}>`),u=Re(`${e}${D.DefinitionName.Actions}<${o}>`),f=!(t.base===D.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${V}${l}`},e===D.SectionType.Section&&f?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${V}${u}`},fields:{$ref:`${V}${c}`}},description:"Form",additionalProperties:!1},i.definitions[u]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[u][D.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${V}${c}`}},description:"Form",additionalProperties:!1},Nv(t,i,l),i.definitions[c]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[c][D.SchemaTag.isViewNode]=!0,Fv(t,e,i,o,r,f),o}s(ng,"handleForm");function Dv(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(o=>o.alias===r);a&&(i=e.replace(n,a.namespace))}return i}s(Dv,"replaceAlias");function Ys(e,t){let n=Dv(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,o,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),o=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(o=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:o,namespace:l}}s(Ys,"getActionNameAndId");function ig(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===D.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:ig(a.pages,t)}}s(ig,"isFirstObjectPage");function rg(e,t,n,i){var c,u,f;e.definitions[D.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${D.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${V}${D.DefinitionName.ObjectPageFooter}`},e.definitions[D.DefinitionName.ObjectPageFooter].properties[D.PropertyName.actions]={$ref:`${V}${D.DefinitionName.FooterActions}`};let r=e.definitions[D.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};r[D.SchemaTag.isViewNode]=!0;let a=xn(D.UIVOCABULARY,t.serviceAVT),o=(c=t.entitySet)==null?void 0:c.entityType,l=a&&((f=(u=o==null?void 0:o.annotations)==null?void 0:u[a])==null?void 0:f.Identification);if(l){let p=l.fullyQualifiedName.replace(`@${Ae.UIAnnotationTerms.Identification}`,`/@${Ae.UIAnnotationTerms.Identification}`);r[D.SchemaTag.annotationPath]=`/${p}`,l.forEach((h,b)=>{if(h.Determining&&h.$Type===Ae.UIAnnotationTypes.DataFieldForAction){let{actionName:C,actionId:F}=Ys(h,t.serviceAVT),N=h.Label||C,E=Re(`${D.DefinitionName.ObjectPageFooterAction}<${F}>`);e.definitions[D.DefinitionName.ObjectPageFooterAction]?e.definitions[E]={...JSON.parse(JSON.stringify(e.definitions[D.DefinitionName.ObjectPageFooterAction])),description:N,annotationPath:`/${p}/${b}`}:(e.definitions[E]={type:"object",properties:{},description:N},e.definitions[E][D.SchemaTag.isViewNode]=!0,e.definitions[E][D.SchemaTag.annotationPath]=`/${p}/${b}`),r.properties[F]={$ref:`${V}${E}`}}})}else o&&(r[D.SchemaTag.annotationPath]=`/${o.fullyQualifiedName}/@${Ae.UIAnnotationTerms.Identification}`);n===D.FioriElementsVersion.v2&&ig(i,t)&&!Xd(o)&&Yd(e,r),delete e.definitions[D.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${D.DefinitionName.ObjectPageFooter}<${D.DefinitionName.ObjectPageFooterActions}>`]}s(rg,"addFooterActions");function ag(e,t,n,i,r=!1){var f,p;let a=D.DefinitionName.HeaderActions,o=e.definitions[a];e.definitions[D.DefinitionName.ObjectPageHeader].properties[D.PropertyName.actions]={$ref:`${V}${a}`};let l=e.definitions[a]={type:"object",properties:{},description:"Actions",additionalProperties:!1};l[D.SchemaTag.isViewNode]=!0;let c=xn(D.UIVOCABULARY,n),u=c&&((p=(f=t==null?void 0:t.annotations)==null?void 0:f[c])==null?void 0:p.Identification);u?(l[D.SchemaTag.annotationPath]="/"+u.fullyQualifiedName.replace(`@${Ae.UIAnnotationTerms.Identification}`,`/@${Ae.UIAnnotationTerms.Identification}`),u.forEach(i(t,e,u,l,n))):t&&(l[D.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ae.UIAnnotationTerms.Identification}`),r&&Ji(e,!0,o),delete e.definitions[D.DefinitionName.GenericActions],delete e.definitions[`${D.DefinitionName.ObjectPageHeader}<${D.DefinitionName.GenericActions}>`]}s(ag,"addHeaderActions");function og(e,t){e.properties.header={$ref:`${V}${D.DefinitionName.ObjectPageHeader}`},e.definitions[D.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${D.DefinitionName.ObjectPageHeader}<${D.DefinitionName.GenericActions}>`])),t&&(e.definitions[D.DefinitionName.ObjectPageHeader][D.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ae.UIAnnotationTerms.HeaderInfo}`)}s(og,"addCommonHeaderSchema");function sg(e,t){return e.entityType?t.entitySets.find(n=>n.entityType.name===e.entityType.name||n.name===e.entityType.name):void 0}s(sg,"determineEntitySetOfFacet");var Gt=require("@sap-ux/vocabularies-types/vocabularies/UI");var De=H(q());function ci(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}s(ci,"addEnumToSchema");function lg(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 o in i){let l=i[o];if(t.indexOf(l.term)>-1){let c=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(c)===-1&&r.push(c)}}ci(r,n)}s(lg,"addEnumForValidAnnotations");function co(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Gt.UIAnnotationTerms.SelectionVariant,Gt.UIAnnotationTerms.SelectionPresentationVariant];lg(e,r,i)}s(co,"addEnumForSingleTabVariant");function cg(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[Gt.UIAnnotationTerms.SelectionVariant,Gt.UIAnnotationTerms.SelectionPresentationVariant];lg(n.entityType,r,i)}s(cg,"addEnumForMultiTabVariant");function fg(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),ci(r,i)}s(fg,"addEnumForVariantEntitySet");function ug(e,t,n,i){let r=n.map(a=>{let o=i.find(c=>!!a[c]);return{const:a[o],...a.label&&{description:a.label},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions.RelatedFacetKeys={type:"string",oneOf:r};for(let a of t){let o=e.definitions[a],l=o.properties.relatedFacet;o.properties.relatedFacet={anyOf:[{$ref:V+"RelatedFacetKeys"},l]}}}}s(ug,"addDefinitionForRelatedFacetKeys");function Lv(e){return e.replace("#","::")}s(Lv,"getFacetKeyInSchema");function pg(e,t){return`${e}<${Lv(t)}>`}s(pg,"getFacetDefinitionKey");function jv(e,t,n,i=!0,r){let a=t;if(i&&(a=pg(r||e,t)),e&&e!==a){let o=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[a]=o}return n.definitions[a]}s(jv,"parseSchemaDefinition");function Zd(e,t,n,i){let r;e.definitions[i]={type:"object",properties:{},description:"Columns"},e.definitions[i].additionalProperties=!1,e.definitions[i][De.SchemaTag.isViewNode]=!0;let a=i.startsWith(De.DefinitionName.LineItems)?"ToolBar":"ObjectPageToolBar",o=`${a}<${i}>`;e.definitions[o]=JSON.parse(JSON.stringify(e.definitions[`${a}`]));let l=`Actions<${Re(i)}>`;e.definitions[o].properties.actions.$ref=V+l;let c=i.startsWith(De.DefinitionName.LineItems)?"Actions":"ObjectPageToolBarActions",u=e.definitions[l]=JSON.parse(JSON.stringify(e.definitions[c]));u.properties={},u.additionalProperties=!1;let f,p;if(i===De.DefinitionName.LineItems&&e.properties.footer){p=`Footer<${i}>`,e.properties.footer.$ref=V+p,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions.GenericFooter));let h=`FooterActions<${Re(i)}>`;e.definitions[p].properties.actions.$ref=V+h,f=e.definitions[h]=JSON.parse(JSON.stringify(e.definitions.Actions)),f.properties={},f.additionalProperties=!1}return t&&(r=Tn(n==null?void 0:n.fullyQualifiedName,t.term,t.qualifier),r&&(e.definitions[i][De.SchemaTag.annotationPath]=e.definitions[o][De.SchemaTag.annotationPath]=r,f&&(e.definitions[p][De.SchemaTag.annotationPath]=r))),{actions:u,footerActions:f,lineItemPath:r}}s(Zd,"addCommonLineItemDefinitions");function dg(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}s(dg,"getDataTypeFromAnnotation");function Vv(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=dg(e.$Type)),t}s(Vv,"determineDataTypeOfTarget");function Xs(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=Vv((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=dg(e.$Type):e.type&&(t=e.type),t}catch{return t}}s(Xs,"determineDataType");function lo(e,t){let n=Xs(t);n&&(e[De.SchemaTag.dataType]=n)}s(lo,"addDataTypeToDefinition");function _v(e,t){return`${V}${pg(e,t)}`}s(_v,"getFacetDefinitionLink");function Zs(e,t,n,i,r,a,o=""){let l=`ObjectPage${r}${e.base}${o}`,c=`ObjectPage${a}${e.base}${o}`;n.properties[t]={$ref:_v(a?c:l,t)};let u=jv(a?c:l,t,i,!0,a?c:void 0);Or(e,u,t),u[De.SchemaTag.annotationPath]=e.annotationPath,u[De.SchemaTag.isViewNode]=!0}s(Zs,"handleAddressContact");function Nr(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}}s(Nr,"getActionKey");function eg(e,t,n){var i,r,a;try{if(e.Value)t[n][De.SchemaTag.keys]=[{name:De.SchemaKeyName.value,value:li(e.Value)}];else if(e.$Type===Gt.UIAnnotationTypes.DataFieldWithAction||e.$Type===Gt.UIAnnotationTypes.DataFieldForAction){let{key:o,ns:l}=Nr(e.Action,!0);t[n][De.SchemaTag.keys]=[{name:De.SchemaKeyName.action,value:o}],l&&(t[n][De.SchemaTag.target]=l)}else if(e.$Type===Gt.UIAnnotationTypes.DataFieldForAnnotation){let{key:o}=Nr(e.Target.value,!1);t[n][De.SchemaTag.keys]=[{name:De.SchemaKeyName.target,value:Za(o)}],t[n][De.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===Gt.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Gt.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let o=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:c}=Nr(o,!0);t[n][De.SchemaTag.keys]=[{name:"SemanticObject",value:e[De.SchemaKeyName.semanticObject]},{name:"Action",value:l}],c&&(t[n][De.SchemaTag.target]=c)}}catch{return}}s(eg,"addKeyToDefinition");var Qi=H(q());var gg=[{version:"1.120",distTag:["latest","UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123","UI5-1.124"]},{version:"1.108",distTag:["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.102",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"]},{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 mg="1.71.102";var wn=class wn{constructor(){wn.distTagsOfSpec.length===0&&(wn.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){wn.distTagsOfSpec=[]}getSpecVersion(){return mg}getDistTagsOfVersion(){let t=[],n=gg,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;if(!t||t.startsWith("$")){let r=Q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});ne(n,{severity:Qi.LogSeverity.Info,message:r,location:{path:Qi.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(wn.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=Q.t("WRONGMINUI5VERSION",{minUI5Version:t});ne(n,{severity:Qi.LogSeverity.Warning,message:r,location:{path:Qi.MANIFESTPATH}})}}};s(wn,"DistTagEvaluator"),wn.distTagsOfSpec=[];var Dr=wn;var ee=H(q());var $e=H(q());var Pt=H(q());var el=class el{constructor(t,n,i,r,a,o,l){this.unhandledControllers=[];let c=qe(Pt.SchemaType.Application);this.app={$schema:c.path,id:t["sap.app"].id,pages:r,home:i,target:{fioriElements:a,odata:a===Pt.FioriElementsVersion.v2?Pt.OdataVersion.v2:Pt.OdataVersion.v4},...o&&{settings:o}},this.schemas=n,this.logger=l}createConfigFiles(){let t={},n={},i;for(let a in this.app.pages)if(i=this.app.pages[a],i.config){let o=i.config;if(i.pageType!==Pt.PageType.CustomPage){let l=qe(i.pageType,i.entitySet);if(this.schemas[l.filename])o.$schema=l.path;else{let c=qe(i.pageType);o.$schema=c.path}t[`${Pt.DirName.Pages}/${a}.json`]=o}}let r=JSON.parse(JSON.stringify(this.app));for(let a in r.pages)delete r.pages[a].config;return n[Pt.FileName.App]=r,{appConfig:n,pageConfigs:t}}};s(el,"AppProvider");var zi=el;var ie=H(q());var fi=H(q());function fo(e,t,n){if(t.controlType.endsWith(fi.DefinitionName.Table))e[t.propertyId]=t.newValue;else if(t.controlType===fi.ControlType.TableColumn){if(!(n==null?void 0:n.definitions[fi.DefinitionName.TableColumn]).properties[t.propertyId])return;let r=t.controlId.split("-"),o=r[r.length-1].split("template:::TableColumn:::"),l=o[o.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",fi.VOCWITHCOLONS).replace("/",":2f");e.columns||(e.columns={}),e.columns[l]||(e.columns[l]={}),e.columns[l][t.propertyId]=t.newValue}}s(fo,"addFlexForTable");var qi=H(q());var Qe=s((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),yg=s((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2");var hg=s((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 tl(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}s(tl,"getNewPageTemplate");function Mv(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}s(Mv,"findPageInManifest");function kv(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=tl(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:tl(e[t].pageType)}),!Array.isArray(n.pages))){let i=Mv(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=tl(e[t].pageType)),nl(t,e,i)}}s(kv,"transformPageFromAssociation");function Bv(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)===qi.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let o=`ObjectPage_${r.entitySet}`;t[o]||delete e.pages[i]}}),(n.pageType===qi.PageTypeV2.ListReport||n.pageType===qi.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}s(Bv,"deletePage");function nl(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===qi.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)kv(t,r,n);Array.isArray(n.pages)||Bv(n,t,i)}}s(nl,"transformPageToNewManifestV2");var Xg=H(xr());var Ec={};Aa(Ec,{ALPAnalyticalTable:()=>jl,ALPGridTable:()=>Ll,ALPResponsiveTable:()=>Dl,Action:()=>Rl,AnalyticalCard:()=>Mr,AnalyticalCardSettings:()=>ll,AnalyticalListPageFilterBar:()=>gl,AnalyticalTable:()=>Nl,BaseCustomSection:()=>sa,ChartSettings:()=>tc,ChartSettingsType:()=>rl,CommonCardSettings:()=>Gn,CommonTableSettings:()=>Wn,CommonTableSettingsForSections:()=>Si,CreateWithFilters:()=>Ol,CustomCard:()=>ol,DefaultSpanObject:()=>al,FRAGMENT_DEFINITION:()=>fn,Field:()=>pl,FieldForAction:()=>hl,FooterAction:()=>Ml,FormAction:()=>yl,GlobalTableSettings:()=>Sc,GridTable:()=>Vl,HeaderAction:()=>rc,HeaderActionStandard:()=>Hl,KPISettings:()=>nc,LinkListCardSettings:()=>fl,LinklistCard:()=>Br,ListCard:()=>$r,ListCardSettings:()=>sl,ListReportFilterBar:()=>ho,ObjectPageAnalyticalTable:()=>Tc,ObjectPageCustomSectionFragment:()=>la,ObjectPageCustomSectionView:()=>ca,ObjectPageFooterAction:()=>ac,ObjectPageFooterActionStandard:()=>Wl,ObjectPageGridTable:()=>xc,ObjectPageHeader:()=>ic,ObjectPageHeaderActionStandard:()=>Kl,ObjectPageLayout:()=>sc,ObjectPageResponsiveTable:()=>Pi,ObjectPageSectionAddressV2:()=>pc,ObjectPageSectionChartV2:()=>fc,ObjectPageSectionContactV2:()=>dc,ObjectPageSectionFormV2:()=>cc,ObjectPageSectionTableV2:()=>uc,ObjectPageSectionV2:()=>lc,ObjectPageSubSectionChartV2:()=>yc,ObjectPageSubSectionContactV2:()=>hc,ObjectPageSubSectionFormV2:()=>mc,ObjectPageSubSectionTableV2:()=>bc,ObjectPageSubSectionV2:()=>gc,ObjectPageToolBarAction:()=>Pc,ObjectPageTreeTable:()=>Cc,QuickVariantSelection:()=>Al,QuickVariantSelectionOP:()=>vc,QuickVariantSelectionX:()=>Il,ResponsiveTable:()=>pi,SAP_UI_TABLE:()=>bo,SaveAndEditOP:()=>Gl,Share:()=>kl,ShareOP:()=>Bl,StackCard:()=>kr,StackCardSettings:()=>cl,TableALP:()=>nr,TableCard:()=>Ur,TableCardSettings:()=>ul,TableColumn:()=>zl,TableColumnAction:()=>Vo,TableColumnActionIntentBased:()=>ql,TableCustomColumn:()=>Xl,ToolBar:()=>Zl,ToolBarAction:()=>$l,TreeTable:()=>Fl,UpAndDownNavigationOP:()=>Ul,buildIntentBasedActionId:()=>Jl,deleteColumnFromFragment:()=>xo,deleteType:()=>rr,exportCustomColumnsToFragment:()=>El,exportDefaultSpan:()=>vg,exportType:()=>ir,getChartSectionControlId:()=>Wg,getContactSubSectionControlId:()=>Qg,getCustomColumnPath:()=>Co,getFormSectionControlId:()=>Kg,getRootCustomColumnFromFragmentJSON:()=>Wr,getSectionControlId:()=>xi,getSmartChartControlId:()=>ta,getSmartTableControlId:()=>On,getSubSectionControlId:()=>Jg,getTableSectionControlId:()=>Hg});var st=H(q());var fe=s(e=>`${st.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),go=s(e=>fe(e)+"/tableSettings","getTableSettingPathV2");var Ue=s(()=>st.ManifestSection.ovp,"getOVPsettingPath"),K=s(e=>{let t=[st.ManifestSection.ovp+"/cards"];return e.forEach(n=>{n in st.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var ui=s((e,t)=>`${st.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),bg=s(e=>{let t=[st.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Ht=s(e=>{let t=[];return t.push(bg(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Mn=s(e=>Ht(e)+"/tableSettings","getGlobalTableSettingsPathV2"),an=s((e,t,n)=>{let i=[];i.push(bg(e));let r=n.replace(st.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),kn=s((e,t,n)=>an(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2");var il=s(()=>`sap.ui5/extends/extensions/${st.v2.SAPUI5_VIEW_EXTENSION}/${st.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),Sn=s((e,t,n,...i)=>{let r="|",a=n.split(r),o=e[e.length-1].split(r),l="";a.length===4?l=[a[2],a[3]].join(r):a.length===3&&(l=a[2]);let c=[a[0],o[o.length-1],l].join(r);return i.unshift(c),`${il()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),po=class po{};s(po,"ApplicationV2"),g([Je("settings")],po.prototype,"settings",2);var uo=po,Rn=class Rn{};s(Rn,"AppSettings"),g([m({manifest:{path:()=>"sap.app"}})],Rn.prototype,"title",2),g([m({manifest:{path:()=>"sap.app"}})],Rn.prototype,"description",2),g([m({manifest:{path:()=>st.GENERICAPPSETTINGS}}),L({since:"1.50.0"})],Rn.prototype,"flexibleColumnLayout",2),g([m({manifest:{path:()=>st.GENERICAPPSETTINGS}}),L({since:"1.46.0"})],Rn.prototype,"forceGlobalRefresh",2),g([m({manifest:{path:()=>"sap.ui5"}}),L({since:"1.56.0"})],Rn.prototype,"flexEnabled",2);var $n=Rn;function vg(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}s(vg,"exportDefaultSpan");var mo=class mo{};s(mo,"ChartSettingsType"),g([m({manifest:{path:()=>Ue()+"/chartSettings"}})],mo.prototype,"showDataLabel",2);var rl=mo,Bn=class Bn{};s(Bn,"DefaultSpanObject"),g([m({manifest:{path:t=>K(t)}})],Bn.prototype,"cols",2),g([m({manifest:{path:t=>K(t)}})],Bn.prototype,"rows",2),g([m({manifest:{path:t=>K(t)}})],Bn.prototype,"showOnlyHeader",2),g([m({manifest:{path:t=>K(t)}})],Bn.prototype,"minimumTitleRow",2),g([m({manifest:{path:t=>K(t)}})],Bn.prototype,"minimumSubTitleRow",2);var al=Bn,Pe=class Pe{};s(Pe,"CommonCardSettings"),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"entitySet",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"title",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"subTitle",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"annotationPath",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"dataPointAnnotationPath",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"selectionPresentationAnnotationPath",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"kpiAnnotationPath",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"category",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"dynamicSubtitleAnnotationPath",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"valueSelectionInfo",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"showFilterInHeader",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"sortBy",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"sortOrder",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"identificationAnnotationPath",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"selectionAnnotationPath",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"presentationAnnotationPath",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"enableLocaleCurrencyFormatting",2),g([m({manifest:{path:t=>K(t),export:vg}})],Pe.prototype,"defaultSpan",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"requireAppAuthorization",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"showSortingInHeader",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"tabs",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"addODataSelect",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"showRefresh",2),g([m({manifest:{path:t=>K(t)}})],Pe.prototype,"customParams",2);var Gn=Pe,Xi=class Xi{};s(Xi,"CustomCard"),g([m({manifest:{path:t=>K(t)}})],Xi.prototype,"model",2),g([m({manifest:{path:t=>K(t)}})],Xi.prototype,"template",2),g([m({manifest:{path:t=>K(t)}})],Xi.prototype,"settings",2);var ol=Xi,Un=class Un extends Gn{};s(Un,"ListCardSettings"),g([m({manifest:{path:t=>K(t)}})],Un.prototype,"showLineItemDetail",2),g([m({manifest:{path:t=>K(t)}})],Un.prototype,"imageSupported",2),g([m({manifest:{path:t=>K(t)}})],Un.prototype,"enableAddToInsights",2),g([m({manifest:{path:t=>K(t)}})],Un.prototype,"listFlavor",2),g([m({manifest:{path:t=>K(t)}})],Un.prototype,"listType",2);var sl=Un,Lr=class Lr{};s(Lr,"ListCard"),g([m({manifest:{path:t=>K(t)}})],Lr.prototype,"model",2),g([m({manifest:{path:t=>K(t)}})],Lr.prototype,"template",2);var $r=Lr,on=class on extends Gn{};s(on,"AnalyticalCardSettings"),g([m({manifest:{path:t=>K(t)}})],on.prototype,"chartAnnotationPath",2),g([m({manifest:{path:t=>K(t)}})],on.prototype,"ignoreSapText",2),g([m({manifest:{path:t=>K(t)}})],on.prototype,"enableAddToInsights",2),g([m({manifest:{path:t=>K(t)}})],on.prototype,"navigation",2),g([m({manifest:{path:t=>K(t)}})],on.prototype,"valueSelectionInfo",2),g([m({manifest:{path:t=>K(t)}})],on.prototype,"chartProperties",2),g([m({manifest:{path:t=>K(t)}})],on.prototype,"colorPalette",2);var ll=on,jr=class jr{};s(jr,"AnalyticalCard"),g([m({manifest:{path:t=>K(t)}})],jr.prototype,"model",2),g([m({manifest:{path:t=>K(t)}})],jr.prototype,"template",2);var Mr=jr,Yi=class Yi extends Gn{};s(Yi,"StackCardSettings"),g([m({manifest:{path:t=>K(t)}})],Yi.prototype,"itemText",2),g([m({manifest:{path:t=>K(t)}})],Yi.prototype,"objectStreamCardsNavigationProperty",2),g([m({manifest:{path:t=>K(t)}})],Yi.prototype,"objectStreamCardsSettings",2);var cl=Yi,Vr=class Vr{};s(Vr,"StackCard"),g([m({manifest:{path:t=>K(t)}})],Vr.prototype,"model",2),g([m({manifest:{path:t=>K(t)}})],Vr.prototype,"template",2);var kr=Vr,Zi=class Zi extends Gn{};s(Zi,"LinkListCardSettings"),g([m({manifest:{path:t=>K(t)}})],Zi.prototype,"listFlavor",2),g([m({manifest:{path:t=>K(t)}})],Zi.prototype,"headerAnnotationPath",2),g([m({manifest:{path:t=>K(t)}})],Zi.prototype,"staticContent",2);var fl=Zi,_r=class _r{};s(_r,"LinklistCard"),g([m({manifest:{path:t=>K(t)}})],_r.prototype,"model",2),g([m({manifest:{path:t=>K(t)}})],_r.prototype,"template",2);var Br=_r,wr=class wr extends Gn{};s(wr,"TableCardSettings"),g([m({manifest:{path:t=>K(t)}})],wr.prototype,"showLineItemDetail",2),g([m({manifest:{path:t=>K(t)}})],wr.prototype,"enableAddToInsights",2);var ul=wr,Rr=class Rr{};s(Rr,"TableCard"),g([m({manifest:{path:t=>K(t)}})],Rr.prototype,"model",2),g([m({manifest:{path:t=>K(t)}})],Rr.prototype,"template",2);var Ur=Rr;var Tg=H(q());var Uv=s((e,t,n,i,r)=>{let a=Xe(n[1],r),o=n.slice(-1)[0];return Se(e,[a,o,"GroupElement"])},"getSmartFieldControlId"),yo=class yo{};s(yo,"Field"),g([m({flex:{controlId:Uv,controlType:()=>Tg.ControlType.GroupElement,createFlexChange:R},generate:ge})],yo.prototype,"visible",2);var pl=yo;var ml=H(q());var dl={controlId:Se,controlType:()=>ml.ControlType.SmartFilterBar,createFlexChange:R},sn=class sn{};s(sn,"ListReportFilterBar"),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.38.0"})],sn.prototype,"smartVariantManagement",2),g([m({flex:dl}),L({since:"1.40.0"})],sn.prototype,"liveMode",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.48.0"})],sn.prototype,"variantManagementHidden",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.52.0"})],sn.prototype,"subTitleIfVariantMgmtHidden",2),g([m({flex:{controlId:Se,controlType:()=>ml.ControlType.SmartFilterBar,createFlexChange:R}}),L({since:"1.28.0"})],sn.prototype,"showClearOnFB",2),g([m({flex:dl}),L({since:"1.38.0"})],sn.prototype,"showFilterConfiguration",2),g([m({flex:dl}),L({since:"1.28.0"})],sn.prototype,"showRestoreOnFB",2);var ho=sn,Gr=class Gr extends ho{};s(Gr,"AnalyticalListPageFilterBar"),g([m({manifest:{path:t=>fe(t)}})],Gr.prototype,"showGoButtonOnFilterBar",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.60.0"})],Gr.prototype,"filterDefaultsFromSelectionVariant",2);var gl=Gr;var Vt=H(q());var ln=s((e,t,n,i,r)=>{if(i()===Vt.ControlType.Button){let a=n[n.length-1],o=Xe(n[1],r);return`${e}action::${a}::${o}::FormAction`}return Se(e,t)},"getFormActionButtonId"),Hn=class Hn{};s(Hn,"FormAction"),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R},generate:ge})],Hn.prototype,"visible",2),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R}})],Hn.prototype,"tooltip",2),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R}})],Hn.prototype,"icon",2),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R}})],Hn.prototype,"activeIcon",2),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R}})],Hn.prototype,"type",2);var yl=Hn,Kn=class Kn{};s(Kn,"FieldForAction"),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R},generate:ge})],Kn.prototype,"visible",2),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R}})],Kn.prototype,"tooltip",2),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R}})],Kn.prototype,"icon",2),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R}})],Kn.prototype,"activeIcon",2),g([m({flex:{controlId:ln,controlType:()=>Vt.ControlType.Button,createFlexChange:R}})],Kn.prototype,"type",2);var hl=Kn;var Le=H(q()),Kt=H(xr());var Tl=require("path"),oT=H(q()),Vg=H(jg()),_g=require("fs");var sT=(0,Tl.join)(__dirname,"templates");var lT=s((e,t)=>{let n=(0,_g.readFileSync)(e,"utf8");return(0,Vg.render)(n,t)},"renderTemplate");var xl=s((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 lT((0,Tl.join)(sT,t+".xml"),n)},"getSingleColumnContent"),Cl=s((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=xl(i,t);n=n+`
|
|
84
84
|
`+r}return n+`
|
|
85
85
|
</core:FragmentDefinition>`},"getColumnFragmentContent"),Sl=s(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
|
|
86
86
|
<Text text="Placeholder"></Text>`}),t+`
|
|
87
|
-
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var vo=require("path");var fn="core:FragmentDefinition",bo="sap.ui.table",Pl=new Map([[De.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[De.ViewTemplateType.TreeTableColumnsExtension,{namespace:bo,name:"Column"}],[De.ViewTemplateType.GridTableColumnsExtension,{namespace:bo,name:"Column"}],[De.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:bo,name:"AnalyticalColumn"}]]),cT=new Map([[De.v2.FE_TEMPLATE_V2_LIST_REPORT,De.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[De.v2.FE_TEMPLATE_V2_ALP,De.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[De.v2.FE_TEMPLATE_V2_OBJECT_PAGE,De.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),Rg={type:"element",name:"Text",attributes:{text:"Placeholder"}},fT=JSON.stringify(Rg);function uT(e,t){let n=t?e[fn]._attributes:e._attributes;if(n){let i=new Map;return Object.keys(n).filter(r=>r.startsWith("xmlns")).forEach(r=>{let a=i.get(n[r]);i.set(n[r],a?[...a,r.split(":")[1]||r]:[r.split(":")[1]||r])}),i}}s(uT,"getFragmentNamespaces");function wg(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}s(wg,"getTagName");function To(e,t,n=e){let i=uT(n,!!(t||n!==e));if(t){let r=Pl.get(t);return wg(r,i.get(r.namespace))}else{let r=Pl.keys();for(let a of r){let o=Pl.get(a),l=i?wg(o,i.get(o.namespace)):o.name;if(e[l])return l}}}s(To,"getTagNameFromFragmentJSON");function Kr(e,t=e){let n=To(e,void 0,t);return e[n]}s(Kr,"getRootCustomColumnFromFragmentJSON");function pT(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}s(pT,"addP13nData");function $g(e,t){var l,c,u;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)),o=t.findIndex(f=>f.columnKey===a.columnKey);return o<0?!1:(n=!0,r=pT(t,o),i["core:CustomData"]._attributes.value=r,!e.Text&&!e.Label&&((l=t[o])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(c=t[o])==null?void 0:c.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(u=t[o])==null?void 0:u.text),e._attributes||(e._attributes={}),e._attributes.id=t[o].id,t.splice(o,1),n)}s($g,"handleFragmentColumn");function dT(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",o=r.split("."),l=o[o.length-1]+De.FRAGMENTNAMEPART+a;for(let c of t){let u=c.dataSourceUri.split(vo.sep);if(u[u.length-1]===l){let f=JSON.parse((0,Kt.xml2json)(c.fileContent,{compact:!0})),p=To(f[fn]);p&&(delete f[fn][p],c.fileContent=(0,Kt.json2xml)(JSON.stringify(f),{compact:!0,spaces:4}));break}}}s(dT,"deleteColumnsFromFragment");function Mg(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===fT&&(e.splice(n,1),t-=1,t===0));n++);}s(Mg,"deleteNumberOfCells");function gT(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+De.FRAGMENTNAMEPART+i;for(let o of t)if(o.dataSourceUri.endsWith(a)){let l=JSON.parse((0,Kt.xml2json)(o.fileContent)),c=l.elements[0].elements&&l.elements[0].elements.filter(u=>u.type==="element");c&&Mg(l.elements[0].elements,c.length),o.fileContent=(0,Kt.json2xml)(JSON.stringify(l),{spaces:4});break}}s(gT,"deleteCellsFromFragment");function xo(e,t,n,i){if(i){dT(e,i,t,n);let r=t.replace(De.ViewTemplateType.ResponsiveTableColumnsExtension,De.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&gT(a,i,n)}}s(xo,"deleteColumnFromFragment");function mT(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(Rg)}s(mT,"addNewColumnsInFragment");function yT(e,t){let n=JSON.parse((0,Kt.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)mT(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;Mg(a,r)}e.fileContent=(0,Kt.json2xml)(JSON.stringify(n),{spaces:4})}}s(yT,"updateNonEmptyCellsFragment");function hT(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(vo.sep);if(a[a.length-1]===t){i=!0,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=Sl(n):yT(r,n);break}}return i}s(hT,"updateCellsFragment");function bT(e,t,n,i,r){var f;let a,o,l=t.manifest,c=Qe(l,e),u=c.type?c.type.toLowerCase():"xml";c.type=u.toUpperCase();for(let p of n){if(!p.fragmentName){ne(r,{severity:De.LogSeverity.Error,message:Q.t("NOFRAGMENT",{columnKey:p.columnKey})});continue}c.fragmentName=p.fragmentName,c.className=p.className,a=((f=p.fragmentName)==null?void 0:f.replace(i,"<root>/webapp").replace(/[.]/g,vo.sep))+De.FRAGMENTNAMEPART+u}if(e.indexOf(De.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){let p=e.replace(De.ViewTemplateType.ResponsiveTableColumnsExtension,De.ViewTemplateType.ResponsiveTableCellsExtension),h=Qe(l,p),b=n.reduce((C,F)=>F.cellsFragmentName?F:C);b&&b.cellsFragmentName?(h.fragmentName=o=b.cellsFragmentName,h.className=n[0].className,h.type=u.toUpperCase()):hg(l,p)}return{manifestSection:c,lsFilePath:a,cellsFragmentName:o,fragmentType:u}}s(bT,"exportCustomColumnsToManifest");function vT(e,t,n,i,r){let a=xl(e,t);if(a){let o=JSON.parse((0,Kt.xml2json)(a,{compact:!0})),l=Kr(o,i);if(Array.isArray(n))n.some(u=>JSON.stringify(u)===JSON.stringify(l))||n.push(l);else if(n){let c=[n];c.splice(r,0,l),n=c}else n=[l]}return n}s(vT,"insertNewColumnInFragment");function TT(e,t){let n=[];for(let i=0;i<e.length;i++)$g(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}s(TT,"processCustomColumnInArray");function xT(e,t,n){if(e){if(Array.isArray(e))TT(e,t);else if(!$g(e,t)){let r=To(n[fn]);r&&(delete n[fn][r],e=void 0)}}return e}s(xT,"maintainExistingColumnInFragment");function CT(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let o=e.indexOf(a);n=vT(a,i,n,r,o)}return n}s(CT,"insertNewColumnsInFragment");function ST(e,t,n,i,r){let a=!1;if(!e)return a;for(let o of e)if(o.dataSourceUri.endsWith(t)){let l={};if(a=!0,!o.fileContent||o.fileContent.length===0)o.fileContent=Cl(i,r);else{let c=JSON.parse((0,Kt.xml2json)(o.fileContent,{compact:!0})),u=JSON.stringify(c);l=Kr(c[fn]),l=xT(l,i,c),l=CT(i,n,l,r,c);let f=To(c,r);c[fn][f]=l;let p=JSON.stringify(c);p!==u&&(o.fileContent=(0,Kt.json2xml)(p,{compact:!0,spaces:4}))}break}return a}s(ST,"updateColumnsInFragment");function El(e,t,n,i,r,a){let o=e.fragments,{manifestSection:l,lsFilePath:c,cellsFragmentName:u,fragmentType:f}=bT(t,e,n,i,a),p=JSON.parse(JSON.stringify(n)),h=l.fragmentName,b=h.substr(i.length+1),C=b.split(".");h=C[C.length-1]+De.FRAGMENTNAMEPART+f;let N=u==null?void 0:u.split("."),E=N?N[N.length-1]:null,I=E?E+De.FRAGMENTNAMEPART+f:null,k=ST(o,h,b,p,r),w=!1;if(u?w=hT(o,I,n):w=!0,!k){let oe={fileContent:Cl(p,r),dataSourceUri:c};e.fragments.push(oe)}if(!w){let oe={fileContent:Sl(n),dataSourceUri:c.replace(h,I)};e.fragments.push(oe)}}s(El,"exportCustomColumnsToFragment");var Co=s((e,t,n,i)=>{var c,u,f,p;let r=cT.get((c=e.component)==null?void 0:c.name);if(!i){let h=(p=(f=(u=e.component)==null?void 0:u.settings)==null?void 0:f.tableSettings)==null?void 0:p.type;h||(h="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(h="AnalyticalTable"),i=h+"ColumnsExtension"}let a=i,o=`${i}|${t}`;return n&&(o+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+o,viewTemplateType:a}},"getCustomColumnPath");var Ve=H(q());var On=s((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+Ve.PropertyName.table:Se(e,t),"getSmartTableControlId");function PT(e,t){for(let n in t.variants){let i=t.variants[n],r=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let a in i)r.indexOf(a)!==-1&&(i.tableSettings||(i.tableSettings={}),i.tableSettings[a]=i[a],delete i[a]);e.variants?e.variants[n]=i:e.variants={[n]:i}}}s(PT,"exportVariants");function ET(e,t){t.variants&&(Object.keys(t.variants).length>0?PT(e,t):delete e.variants)}s(ET,"exportQuickVariantSelectionX");var So=class So{};s(So,"CreateWithFilters"),g([m({manifest:{path:t=>fe(t)+"/createWithFilters"}})],So.prototype,"strategy",2);var Ol=So;function Qr(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}s(Qr,"importType");function ir(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}s(ir,"exportType");function rr(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}s(rr,"deleteType");var Wr=class Wr{};s(Wr,"QuickVariantSelection"),g([m({manifest:{path:t=>fe(t)+Ve.QUICKVARPATH}}),L({since:"1.48.0"})],Wr.prototype,"showCounts",2),g([m({manifest:{path:t=>fe(t)+Ve.QUICKVARPATH}}),L({since:"1.48.0"})],Wr.prototype,"variants",2);var Al=Wr,er=class er{};s(er,"QuickVariantSelectionX"),g([m({manifest:{path:t=>fe(t)+Ve.QUICKVARPATHX}}),L({since:"1.48.0"})],er.prototype,"showCounts",2),g([m({manifest:{path:t=>fe(t)+Ve.QUICKVARPATHX}}),L({since:"1.48.0"})],er.prototype,"enableAutoBinding",2),g([m({manifest:{path:t=>fe(t)+Ve.QUICKVARPATHX,export:ET}}),L({since:"1.48.0"})],er.prototype,"variants",2);var Il=er,ot=class ot{constructor(){this.getDeprecated=()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}})}};s(ot,"CommonTableSettings"),g([m({flex:{controlId:Se,controlType:()=>Ve.ControlType.SmartTable,createFlexChange:R}}),L({since:"1.38.0"})],ot.prototype,"showTablePersonalisation",2),g([m({flex:{controlId:On,controlType:()=>Ve.ControlType.SmartTable,createFlexChange:R}}),L({since:"1.26.0"})],ot.prototype,"useExportToExcel",2),g([m({flex:{controlId:On,controlType:()=>Ve.ControlType.SmartTable,createFlexChange:R}}),L({since:"1.50.0"})],ot.prototype,"exportType",2),g([m({flex:{controlId:On,controlType:()=>Ve.ControlType.SmartTable,createFlexChange:R}})],ot.prototype,"fitContainer",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.48.0"})],ot.prototype,"quickVariantSelection",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.48.0"})],ot.prototype,"quickVariantSelectionX",2),g([m({manifest:{path:t=>go(t)}}),L({since:"1.38.0"})],ot.prototype,"multiSelect",2),g([m({manifest:{path:t=>go(t)}}),L({since:"1.70.0"})],ot.prototype,"selectAll",2),g([m({manifest:{path:t=>go(t)}}),L({since:"1.70.0"})],ot.prototype,"selectionLimit",2),g([m({flex:{controlId:On,controlType:()=>Ve.ControlType.SmartTable,createFlexChange:R}}),L({since:"1.40.0"})],ot.prototype,"enableAutoBinding",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.42.0"})],ot.prototype,"condensedTableLayout",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.56.0"})],ot.prototype,"enableTableFilterInPageVariant",2),g([Je("toolBar")],ot.prototype,"toolBar",2);var Wn=ot,Pn=class Pn extends Wn{};s(Pn,"ResponsiveTable"),g([m({manifest:{path:t=>fe(t),import:Qr,export:ir,delete:rr}}),L({since:"1.50.0"})],Pn.prototype,"type",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.54.0"})],Pn.prototype,"createWithFilters",2),g([m({flex:{controlId:On,controlType:()=>Ve.ControlType.Table,createFlexChange:R},generate:Gi}),L({since:"1.52.0"})],Pn.prototype,"popinLayout",2),g([m({flex:{controlId:On,controlType:()=>Ve.ControlType.Table,createFlexChange:R}})],Pn.prototype,"includeItemInSelection",2),g([m({manifest:{path:()=>Ve.GENERICAPPSETTINGS}}),L({since:"1.63.0"})],Pn.prototype,"showDraftToggle",2),g([m({flex:{controlId:On,controlType:()=>Ve.ControlType.Table,createFlexChange:R}}),L({since:"1.16.0"})],Pn.prototype,"growingThreshold",2);var pi=Pn,Jr=class Jr extends Wn{};s(Jr,"TreeTable"),g([m({manifest:{path:t=>fe(t),import:Qr,export:ir,delete:rr}}),L({since:"1.50.0"})],Jr.prototype,"type",2),g([m({manifest:{path:()=>Ve.GENERICAPPSETTINGS}}),L({since:"1.63.0"})],Jr.prototype,"showDraftToggle",2);var Fl=Jr,Wt=class Wt extends Wn{};s(Wt,"AnalyticalTable"),g([m({manifest:{path:t=>fe(t),import:Qr,export:ir,delete:rr}}),L({since:"1.50.0"})],Wt.prototype,"type",2),g([m({manifest:{path:t=>fe(t)}})],Wt.prototype,"qualifier",2),g([m({manifest:{path:t=>fe(t)}})],Wt.prototype,"defaultContentView",2),g([m({manifest:{path:t=>fe(t)}})],Wt.prototype,"defaultFilterMode",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.60.0"})],Wt.prototype,"contentTitle",2),g([m({manifest:{path:t=>fe(t)}})],Wt.prototype,"autoHide",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.54.0"})],Wt.prototype,"createWithFilters",2),g([m({manifest:{path:()=>Ve.GENERICAPPSETTINGS}}),L({since:"1.63.0"})],Wt.prototype,"showDraftToggle",2);var Nl=Wt,En=class En extends Wn{};s(En,"TableALP"),g([m({manifest:{path:t=>fe(t),import:Qr,export:ir,delete:rr}}),L({since:"1.50.0"})],En.prototype,"type",2),g([m({manifest:{path:t=>fe(t)}})],En.prototype,"qualifier",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.38.0"}),m({manifest:{path:t=>fe(t)}})],En.prototype,"defaultContentView",2),g([m({manifest:{path:t=>fe(t)}})],En.prototype,"defaultFilterMode",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.60.0"})],En.prototype,"contentTitle",2),g([m({manifest:{path:t=>fe(t)}})],En.prototype,"autoHide",2);var nr=En,Po=class Po extends nr{};s(Po,"ALPResponsiveTable"),g([m({flex:{controlId:On,controlType:()=>Ve.ControlType.Table,createFlexChange:R}}),L({since:"1.16.0"})],Po.prototype,"growingThreshold",2);var Dl=Po,_l=class _l extends nr{};s(_l,"ALPGridTable");var Ll=_l,wl=class wl extends nr{};s(wl,"ALPAnalyticalTable");var jl=wl,tr=class tr extends Wn{};s(tr,"GridTable"),g([m({manifest:{path:t=>fe(t),import:Qr,export:ir,delete:rr}}),L({since:"1.50.0"})],tr.prototype,"type",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.54.0"})],tr.prototype,"createWithFilters",2),g([m({manifest:{path:()=>Ve.GENERICAPPSETTINGS}}),L({since:"1.63.0"})],tr.prototype,"showDraftToggle",2);var Vl=tr;var zr=H(q());var OT=s((e,t,n)=>{let{actionId:i}=ht(n);return`${e}action::${yt(i).replace(":2f","::")}`},"getActionButtonId"),AT=s((e,t,n)=>{let{actionId:i}=ht(n);return`${e}template::${i}`},"getStandardActionButtonId"),IT=s((e,t,n)=>{let{actionId:i}=ht(n);return`${e}${ro}${i}`},"getStandardFooterActionOPButtonId"),Jl=s((e,t,n)=>{let{semanticObjectId:i,actionId:r}=ht(n);return`${e}action::${i}::${yt(r)}`},"buildIntentBasedActionId"),FT=s((e,t,n)=>{let{actionId:i}=ht(n);return`${e}action::${yt(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),Jn={controlId:OT,controlType:()=>zr.ControlType.Button,createFlexChange:R},qr={controlId:AT,controlType:()=>zr.ControlType.Button,createFlexChange:R},kg={controlId:IT,controlType:()=>zr.ControlType.Button,createFlexChange:R},Eo={controlId:FT,controlType:()=>zr.ControlType.Button,createFlexChange:R},di=class di{};s(di,"Action"),g([m({flex:Jn})],di.prototype,"tooltip",2),g([m({flex:Jn})],di.prototype,"icon",2),g([m({flex:Jn})],di.prototype,"activeIcon",2),g([m({flex:Jn})],di.prototype,"type",2);var Rl=di,gi=class gi{};s(gi,"ToolBarAction"),g([m({flex:Jn})],gi.prototype,"tooltip",2),g([m({flex:Jn})],gi.prototype,"icon",2),g([m({flex:Jn})],gi.prototype,"activeIcon",2),g([m({flex:Jn})],gi.prototype,"type",2);var $l=gi,mi=class mi{};s(mi,"FooterAction"),g([m({flex:Eo})],mi.prototype,"tooltip",2),g([m({flex:Eo})],mi.prototype,"icon",2),g([m({flex:Eo})],mi.prototype,"activeIcon",2),g([m({flex:Eo})],mi.prototype,"type",2);var Ml=mi,Oo=class Oo{};s(Oo,"Share"),g([m({flex:qr})],Oo.prototype,"visible",2);var kl=Oo,Ao=class Ao{};s(Ao,"ShareOP"),g([m({flex:qr})],Ao.prototype,"visible",2);var Bl=Ao,Io=class Io{};s(Io,"UpAndDownNavigationOP"),g([m({flex:qr})],Io.prototype,"visible",2);var Ul=Io,Fo=class Fo{};s(Fo,"SaveAndEditOP"),g([m({flex:kg,generate:ge})],Fo.prototype,"visible",2);var Gl=Fo,No=class No{};s(No,"HeaderActionStandard"),g([m({flex:qr})],No.prototype,"visible",2);var Hl=No,Do=class Do{};s(Do,"ObjectPageHeaderActionStandard"),g([m({flex:qr})],Do.prototype,"visible",2);var Kl=Do,Lo=class Lo{};s(Lo,"ObjectPageFooterActionStandard"),g([m({flex:kg})],Lo.prototype,"visible",2);var Wl=Lo;var Zr=H(q());var NT=s((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=ht(n),o=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${o}:::sAction::${a}`},"buildColumnActionId"),DT=s((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:o}=ht(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${o}:::sAction::${a}`},"buildColumnIntentBasedId"),LT=s((e,t,n)=>{let{actionId:i}=ht(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),Ql={controlId:NT,controlType:()=>Zr.ControlType.TableColumn,createFlexChange:R},Xr={controlId:LT,controlType:()=>Zr.ControlType.Button,createFlexChange:R},Bg={...Ql,controlId:DT},jo={...Xr,controlId:Jl},Yr=class Yr{};s(Yr,"TableColumn"),g([m({flex:{controlId:Qs,controlType:()=>Zr.ControlType.TableColumn,createFlexChange:R}})],Yr.prototype,"width",2),g([m({flex:{controlId:Qs,controlType:()=>Zr.ControlType.TableColumn,createFlexChange:R},generate:Gi})],Yr.prototype,"hAlign",2);var zl=Yr,An=class An{};s(An,"TableColumnAction"),g([m({flex:Ql})],An.prototype,"width",2),g([m({flex:Ql,generate:Gi})],An.prototype,"hAlign",2),g([m({flex:Xr})],An.prototype,"tooltip",2),g([m({flex:Xr})],An.prototype,"icon",2),g([m({flex:Xr})],An.prototype,"activeIcon",2),g([m({flex:Xr})],An.prototype,"type",2);var Vo=An,In=class In extends Vo{};s(In,"TableColumnActionIntentBased"),g([m({flex:Bg})],In.prototype,"width",2),g([m({flex:Bg,generate:Gi})],In.prototype,"hAlign",2),g([m({flex:jo})],In.prototype,"tooltip",2),g([m({flex:jo})],In.prototype,"icon",2),g([m({flex:jo})],In.prototype,"activeIcon",2),g([m({flex:jo})],In.prototype,"type",2);var ql=In,Yl=class Yl{};s(Yl,"TableCustomColumn");var Xl=Yl;var ec=class ec{};s(ec,"ToolBar");var Zl=ec;var hi=H(q());var ea=s(e=>e+hi.PropertyName.chart,"getSmartChartControlId"),yi=class yi{};s(yi,"ChartSettings"),g([m({flex:{controlId:ea,controlType:()=>hi.ControlType.SmartChart,createFlexChange:R}})],yi.prototype,"showLegendButton",2),g([m({flex:{controlId:ea,controlType:()=>hi.ControlType.SmartChart,createFlexChange:R}})],yi.prototype,"showDownloadButton",2),g([m({flex:{controlId:ea,controlType:()=>hi.ControlType.SmartChart,createFlexChange:R}})],yi.prototype,"showChartTypeSelectionButton",2),g([m({flex:{controlId:ea,controlType:()=>hi.ControlType.SmartChart,exportFlexValue:(t,n,i)=>{t.content.newValue=n[i].join()},importFlexValue:(t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},createFlexChange:R}})],yi.prototype,"ignoredChartTypes",2);var tc=yi;var Fn=class Fn{};s(Fn,"KPISettings"),g([m({manifest:{path:(t,n,i)=>ui(t,i)}})],Fn.prototype,"model",2),g([m({manifest:{path:(t,n,i)=>ui(t,i)}})],Fn.prototype,"entitySet",2),g([m({manifest:{path:(t,n,i)=>ui(t,i)}})],Fn.prototype,"qualifier",2),g([m({manifest:{path:(t,n,i)=>ui(t,i)}})],Fn.prototype,"filterable",2),g([m({manifest:{path:(t,n,i)=>ui(t,i)}})],Fn.prototype,"detailNavigation",2),g([m({manifest:{path:(t,n,i)=>ui(t,i)}})],Fn.prototype,"groupId",2);var nc=Fn;var Ug=H(q());var jT=s((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Se(e,n)},"getAvatarControlId"),bi=class bi{};s(bi,"ObjectPageHeader"),g([m({manifest:{path:t=>Ht(t)}}),L({since:"1.46.0"})],bi.prototype,"showRelatedApps",2),g([m({manifest:{path:t=>Ht(t)}}),L({since:"1.46.0"})],bi.prototype,"editableHeaderContent",2),g([m({manifest:{path:t=>Ht(t)}}),L({since:"1.48.0"})],bi.prototype,"simpleHeaderFacets",2),g([m({flex:{controlId:jT,controlType:()=>Ug.ControlType.Avatar,createFlexChange:R},generate:ge})],bi.prototype,"displayShape",2);var ic=bi;var _o=H(q());var VT=s((e,t,n,i)=>{if(i()===_o.ControlType.Button||i()===_o.ControlType.HeaderAction){let r=n[2];return`${e}action::${yt(r)}`}return Se(e,t)},"getActionButtonId"),ta={controlId:VT,controlType:()=>_o.ControlType.HeaderAction,createFlexChange:R},Qn=class Qn{};s(Qn,"HeaderAction"),g([m({flex:ta,generate:ge})],Qn.prototype,"visible",2),g([m({flex:ta})],Qn.prototype,"tooltip",2),g([m({flex:ta})],Qn.prototype,"icon",2),g([m({flex:ta})],Qn.prototype,"activeIcon",2),g([m({flex:ta})],Qn.prototype,"type",2);var rc=Qn;var oc=H(q());var _T=s((e,t,n,i)=>{if(i()===oc.ControlType.Button){let{actionId:r}=ht(n);return`${e}action::${yt(r)}::Determining`}return Se(e,t)},"getFooterActionButtonId"),na={controlId:_T,controlType:()=>oc.ControlType.Button,createFlexChange:R},zn=class zn{};s(zn,"ObjectPageFooterAction"),g([m({flex:na,generate:ge})],zn.prototype,"visible",2),g([m({flex:na})],zn.prototype,"tooltip",2),g([m({flex:na})],zn.prototype,"icon",2),g([m({flex:na})],zn.prototype,"activeIcon",2),g([m({flex:na})],zn.prototype,"type",2);var ac=zn;var ia=H(q());var wo=s((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Se(e,n)},"getControlId"),vi=class vi{};s(vi,"ObjectPageLayout"),g([m({flex:{controlId:wo,controlType:()=>ia.ControlType.ObjectPageLayout,createFlexChange:R},generate:ge})],vi.prototype,"showHeaderContent",2),g([m({flex:{controlId:wo,controlType:()=>ia.ControlType.ObjectPageLayout,createFlexChange:R}})],vi.prototype,"showAnchorBar",2),g([m({flex:{controlId:wo,controlType:()=>ia.ControlType.ObjectPageLayout,createFlexChange:R}})],vi.prototype,"useIconTabBar",2),g([m({flex:{controlId:wo,controlType:()=>ia.ControlType.ObjectPageLayout,createFlexChange:R}}),L({since:"1.34.0"})],vi.prototype,"alwaysShowContentHeader",2);var sc=vi;var Gg=H(q());var Ti=class Ti{};s(Ti,"BaseCustomSection"),g([m({manifest:{path:Sn,export:!1,import:(t,n)=>n.split("|")[2]}}),L({since:"1.52.0"})],Ti.prototype,"relatedFacet",2),g([m({manifest:{path:Sn,export:!1,import:(t,n)=>n.split("|")[0]}}),L({since:"1.52.0"})],Ti.prototype,"relativePosition",2),g([m({manifest:{path:(t,n,i)=>Sn(t,{},i,Gg.ManifestSection.generic)}}),L({since:"1.52.0"})],Ti.prototype,"title",2),g([m({manifest:{path:Sn}}),L({since:"1.52.0"})],Ti.prototype,"className",2);var oa=Ti,ra=class ra extends oa{};s(ra,"ObjectPageCustomSectionFragment"),g([m({manifest:{path:Sn}}),L({since:"1.52.0"})],ra.prototype,"fragmentName",2),g([m({manifest:{path:Sn}}),L({since:"1.52.0"})],ra.prototype,"type",2);var sa=ra,aa=class aa extends oa{};s(aa,"ObjectPageCustomSectionView"),g([m({manifest:{path:Sn}}),L({since:"1.52.0"})],aa.prototype,"viewName",2),g([m({manifest:{path:Sn}}),L({since:"1.52.0"})],aa.prototype,"type",2);var la=aa;var vt=H(q());var Hg=s((e,t,n,i,r)=>{let o=[Xe(n[1],r),vt.DefinitionName.Table];return Se(e,o)},"getTableSectionControlId"),Kg=s((e,t,n,i,r)=>{let o=[Xe(n[1],r),"FormGroup"];return Se(e,o)},"getFormSectionControlId"),Wg=s((e,t,n,i,r)=>{let o=[Xe(n[1],r),"Chart"];return Se(e,o)},"getChartSectionControlId"),xi=s((e,t,n,i,r)=>{let o=[Xe(n[1],r),"Section"];return Se(e,o)},"getSectionControlId"),Jg=s((e,t,n,i,r)=>{let o=[Xe(n[1],r),"SubSection"];return Se(e,o)},"getSubSectionControlId"),Qg=s((e,t,n,i,r)=>{let o=[Xe(n[1],r),"ContactsList"];return Se(e,o)},"getContactSubSectionControlId"),Ro=class Ro{};s(Ro,"ObjectPageSectionV2"),g([m({flex:{controlId:xi,controlType:()=>vt.ControlType.Section,createFlexChange:R},generate:ge})],Ro.prototype,"visible",2);var lc=Ro,$o=class $o{};s($o,"ObjectPageSectionFormV2"),g([m({flex:{controlId:xi,controlType:()=>vt.ControlType.Section,createFlexChange:R},generate:ge})],$o.prototype,"visible",2);var cc=$o,Mo=class Mo{};s(Mo,"ObjectPageSectionChartV2"),g([m({flex:{controlId:xi,controlType:()=>vt.ControlType.Section,createFlexChange:R},generate:ge})],Mo.prototype,"visible",2);var fc=Mo,ko=class ko{};s(ko,"ObjectPageSectionTableV2"),g([m({flex:{controlId:xi,controlType:()=>vt.ControlType.Section,createFlexChange:R},generate:ge})],ko.prototype,"visible",2);var uc=ko,Bo=class Bo{};s(Bo,"ObjectPageSectionAddressV2"),g([m({flex:{controlId:xi,controlType:()=>vt.ControlType.Section,createFlexChange:R},generate:ge})],Bo.prototype,"visible",2);var pc=Bo,Uo=class Uo{};s(Uo,"ObjectPageSectionContactV2"),g([m({flex:{controlId:xi,controlType:()=>vt.ControlType.Section,createFlexChange:R},generate:ge})],Uo.prototype,"visible",2);var dc=Uo,Go=class Go{};s(Go,"ObjectPageSubSectionV2"),g([m({flex:{controlId:Jg,controlType:()=>vt.ControlType.SubSection,createFlexChange:R},generate:ge})],Go.prototype,"visible",2);var gc=Go,Ho=class Ho{};s(Ho,"ObjectPageSubSectionFormV2"),g([m({flex:{controlId:Kg,controlType:()=>vt.ControlType.Group,createFlexChange:R},generate:ge})],Ho.prototype,"visible",2);var mc=Ho,Ko=class Ko{};s(Ko,"ObjectPageSubSectionChartV2"),g([m({flex:{controlId:Wg,controlType:()=>vt.ControlType.SmartChart,createFlexChange:R},generate:ge})],Ko.prototype,"visible",2);var yc=Ko,Wo=class Wo{};s(Wo,"ObjectPageSubSectionContactV2"),g([m({flex:{controlId:Qg,controlType:()=>vt.ControlType.SubSection,createFlexChange:R},generate:ge})],Wo.prototype,"visible",2);var hc=Wo,Jo=class Jo{};s(Jo,"ObjectPageSubSectionTableV2"),g([m({flex:{controlId:Hg,controlType:()=>vt.ControlType.SmartTable,createFlexChange:R},generate:ge})],Jo.prototype,"visible",2);var bc=Jo;var _t=H(q());var ar=s((e,t,n,i,r)=>{let a=n.slice(1,2),o;return i()==="sap.ui.comp.smarttable.SmartTable"?o=_t.DefinitionName.Table:i()==="sap.m.Table"&&(o="responsiveTable"),a.push(o),a[0]=Xe(a[0],r),Se(e,a)},"getSmartTableControlId"),ca=class ca{};s(ca,"QuickVariantSelectionOP"),g([m({manifest:{path:(t,n,i)=>an(t,n,i)+_t.QUICKVARPATH}}),L({since:"1.48.0"})],ca.prototype,"showCounts",2),g([m({manifest:{path:(t,n,i)=>an(t,n,i)+_t.QUICKVARPATH}}),L({since:"1.48.0"})],ca.prototype,"variants",2);var vc=ca,Et=class Et{constructor(){this.getDeprecated=()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}})}};s(Et,"CommonTableSettingsForSections"),g([m({flex:{controlId:ar,controlType:()=>_t.ControlType.SmartTable,createFlexChange:R}}),L({since:"1.28.0"})],Et.prototype,"editable",2),g([m({manifest:{path:kn}}),L({since:"1.54.0"})],Et.prototype,"multiSelect",2),g([m({manifest:{path:kn}}),L({since:"1.70.0"})],Et.prototype,"selectAll",2),g([m({manifest:{path:kn}}),L({since:"1.70.0"})],Et.prototype,"selectionLimit",2),g([m({manifest:{path:an}}),L({since:"1.63.0"})],Et.prototype,"quickVariantSelection",2),g([m({flex:{controlId:ar,controlType:()=>_t.ControlType.SmartTable,createFlexChange:R}}),L({since:"1.26.0"})],Et.prototype,"useExportToExcel",2),g([m({flex:{controlId:ar,controlType:()=>_t.ControlType.SmartTable,createFlexChange:R}}),L({since:"1.50.0"})],Et.prototype,"exportType",2),g([m({manifest:{path:an}}),L({since:"1.48.5"})],Et.prototype,"createMode",2),g([m({manifest:{path:an}}),L({since:"1.61.0"})],Et.prototype,"disableDefaultInlineCreateSort",2),g([Je("toolBar")],Et.prototype,"toolBar",2);var Si=Et,Ci=class Ci extends Si{};s(Ci,"ObjectPageResponsiveTable"),g([m({manifest:{path:kn}})],Ci.prototype,"type",2),g([m({flex:{controlId:ar,controlType:()=>_t.ControlType.Table,createFlexChange:R}})],Ci.prototype,"includeItemInSelection",2),g([m({flex:{controlId:ar,controlType:()=>_t.ControlType.Table,createFlexChange:R},generate:ge}),L({since:"1.52.0"})],Ci.prototype,"popinLayout",2),g([m({flex:{controlId:ar,controlType:()=>_t.ControlType.Table,createFlexChange:R}}),L({since:"1.16.0"})],Ci.prototype,"growingThreshold",2);var Pi=Ci,fa=class fa extends Si{};s(fa,"ObjectPageAnalyticalTable"),g([m({manifest:{path:kn}})],fa.prototype,"type",2),g([m({manifest:{path:an}}),L({since:"1.67.0"})],fa.prototype,"condensedTableLayout",2);var Tc=fa,ua=class ua extends Si{};s(ua,"ObjectPageGridTable"),g([m({manifest:{path:kn}})],ua.prototype,"type",2),g([m({manifest:{path:an}}),L({since:"1.67.0"})],ua.prototype,"condensedTableLayout",2);var xc=ua,pa=class pa extends Si{};s(pa,"ObjectPageTreeTable"),g([m({manifest:{path:kn}})],pa.prototype,"type",2),g([m({manifest:{path:an}}),L({since:"1.67.0"})],pa.prototype,"condensedTableLayout",2);var Cc=pa,un=class un{};s(un,"GlobalTableSettings"),g([m({manifest:{path:Mn}}),L({since:"1.70.0"})],un.prototype,"selectAll",2),g([m({manifest:{path:Mn}}),L({since:"1.70.0"})],un.prototype,"selectionLimit",2),g([m({manifest:{path:Mn}}),L({since:"1.48.5"})],un.prototype,"createMode",2),g([m({manifest:{path:Mn}}),L({since:"1.61.0"})],un.prototype,"disableDefaultInlineCreateSort",2),g([m({manifest:{path:Mn}})],un.prototype,"type",2),g([m({manifest:{path:Mn}}),L({since:"1.54.0"})],un.prototype,"multiSelect",2),g([m({manifest:{path:Mn}}),L({since:"1.67.0"})],un.prototype,"condensedTableLayout",2);var Sc=un;var zg=H(q());var wT=s((e,t,n,i,r)=>{let{actionId:a}=ht(n),o=Xe(n[1],r);return`${e}${o}::action::${yt(a).replace(":2f","::")}`},"getActionButtonId"),da={controlId:wT,controlType:()=>zg.ControlType.Button,createFlexChange:R},qn=class qn{};s(qn,"ObjectPageToolBarAction"),g([m({flex:da,generate:ge})],qn.prototype,"visible",2),g([m({flex:da})],qn.prototype,"tooltip",2),g([m({flex:da})],qn.prototype,"icon",2),g([m({flex:da})],qn.prototype,"activeIcon",2),g([m({flex:da})],qn.prototype,"type",2);var Pc=qn;function Xn(e){return e.replace("/","::")}s(Xn,"convertActionKey");function Oc(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}s(Oc,"convertSelector");function RT(e,t,n,i){var a,o,l,c;(((o=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:o.properties[t])||((c=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:c.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}s(RT,"addSmartFilterBarFlex");function $T(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=yt((l=r.split("<")[1])==null?void 0:l.split(">")[0]),o=a.indexOf(":::");if(a.startsWith("DataField")&&o>-1){let c=a.split(":::"),u=c.find(h=>h.startsWith("sSemanticObject")),f=c.find(h=>h.startsWith("sAction")),p=f.split("sAction::")[1].replace(":2f","::");if(u){let h=`${u.split("::")[1]}::${p}`,b=`${c[0]}:::${u}:::${f}`;i.set(h,r),i.set(r,b)}else i.set(p,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}s($T,"filterActions");function MT(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}s(MT,"addColumnActionConfigPart");function kT(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]}s(kT,"getActionId");function BT(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(o=>{var c,u;let l=$T(o.name,i);if(l.has(o.id)){let f=l.get(o.id),p=(c=f.split("<")[1])==null?void 0:c.split(">")[0];o.name==="TableColumnAction"&&MT(o,e,p);let h=o.configPart[p];((u=i.definitions[f])==null?void 0:u.properties[t])&&h&&(h[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}s(BT,"addActionFlex");function UT(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let o=St(e[ie.PropertyName.chart],t);(a=o==null?void 0:o.flex)!=null&&a.importFlexValue?o.flex.importFlexValue(n,e[ie.PropertyName.chart],t):e[ie.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}s(UT,"addSmartChartFlex");function GT(e,t,n){var o;let i={controlId:t.controlId,propertyId:t.content.property,newValue:t.content.newBinding?t.content.newBinding:t.content.newValue,controlType:t.controlType,creation:t.creation},r;(!e.table.type||e.table.type===ie.v2.TableTypeV2.ResponsiveTable)&&!((o=i.controlId)!=null&&o.includes(ie.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(ie.PageTypeV2.AnalyticalListPage)))?r="ResponsiveTable":r=e.table.constructor.name,(n.definitions[`${r}<LineItems>`].properties[i.propertyId]||i.controlType===ie.ControlType.TableColumn)&&fo(e.table,i,n)}s(GT,"addAdditionalFlexChanges");function Qo(e,t,n,i){var r,a;try{let o=_n(t),l=o.content.property;if((r=o.controlId)!=null&&r.includes(ie.PageTypeV2.ListReport)||(a=o.controlId)!=null&&a.includes(ie.PageTypeV2.AnalyticalListPage))switch(o.controlId=Oc(o.controlId),o.controlType){case ie.ControlType.SmartFilterBar:{RT(e,l,o,n);break}case ie.ControlType.DynamicPage:{n.properties[l]&&(e[o.content.property]=o.content.newValue);break}case ie.ControlType.Button:{let c=kT(o);c&&BT(e,l,o,n,c);break}case ie.ControlType.SmartChart:{UT(e,l,o,n);break}default:{GT(e,o,n);break}}}catch(o){ne(i,{severity:ie.LogSeverity.Error,message:Q.t("FLEXERROR")},...o)}}s(Qo,"addFlex");function Ye(e,t,n,i,r,a){if(!n)return;let o={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let c in n.properties){let u=St(e,c);if(u!=null&&u.manifest){let f=u.manifest.path([i],t,a);o=Qe(t,f),no(u,o,c,e),kd(l,o,f,r)}}}s(Ye,"transferSettingsOfObject");function zo(e,t){var r,a,o,l,c,u,f,p,h;let n=e[ie.ManifestSection.generic].pages[t],i=ie.v2.TableTypeV2.ResponsiveTable;return(r=e[ie.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((o=(a=e[ie.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&o.type||(l=e[ie.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((f=(u=(c=n.component)==null?void 0:c.settings)==null?void 0:u.tableSettings)==null?void 0:f.type)||((p=n.component)==null?void 0:p.settings.tableType):((h=n.component)==null?void 0:h.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=ie.v2.TableTypeV2.AnalyticalTable),i}s(zo,"determineTableType");function qg(e,t,n,i,r,a,o){if(e.customData||e["table:customData"]){let l=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,c=JSON.parse(l.substr(1,l.length)),u=e.Text&&e.Text._attributes&&e.Text._attributes.text;u||(u=e.Label&&e.Label._attributes&&e.Label._attributes.text);let f={id:e._attributes&&e._attributes.id,text:u,...c,columnKey:c.columnKey,columnIndex:c.columnIndex!==void 0?Number(c.columnIndex):void 0,leadingProperty:c.leadingProperty,className:t[n].className,fragmentName:t[n].fragmentName,tabKey:i,extensionType:a};o&&(f.cellsFragmentName=o),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(f)}}s(qg,"evaluateFragmentColumn");function HT(e,t,n,i){let r;if(e===ie.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[o,l,c]=a.split("|");o===ie.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&c===i&&(r=t[a].fragmentName)}return r}s(HT,"determineCellsFragmentName");function KT(e,t,n,i,r,a,o){var l;if(e[0]){let u=JSON.parse((0,Xg.xml2json)(e[0].fileContent,{compact:!0}))[fn],f=Kr(u);if(f)if((l=t[ie.PropertyName.table])!=null&&l.columns||(t[ie.PropertyName.table].columns={}),Array.isArray(f))for(let p of f)qg(p,n,i,r,t,a,o);else qg(f,n,i,r,t,a,o)}}s(KT,"analyzeFilteredFragments");function WT(e,t,n,i,r){for(let a of Object.keys(e)){let o=a.split("|"),[l,c]=o,u=o[2],f=n&&u===n.key?void 0:u,p=ie.ViewTemplateType[l];if(p&&"|"+c===t){let h=e[a].type?e[a].type.toLowerCase():"xml",b=e[a].fragmentName;if(!b)continue;let C=HT(p,e,c,u),F=b.split(".");b=F[F.length-1]+ie.FRAGMENTNAMEPART+h;let N=r.filter(E=>E.dataSourceUri.endsWith(b));KT(N,i,e,a,f,p,C)}}}s(WT,"processViewExtensions");function or(e,t,n,i,r,a){if(!r)return;let o="|"+(a&&a.target?a.target:n.entitySet);if(t[ie.ManifestSection.ui5]&&t[ie.ManifestSection.ui5].extends&&t[ie.ManifestSection.ui5].extends.extensions&&t[ie.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"]){let l=ie.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),c=t[ie.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][l];if(!c)return;WT(c,o,a,e,r)}}s(or,"addFragments");function qo(e,t,n){if(e.header={actions:{}},n[ie.DefinitionName.HeaderActionsStandard]){let i=n[ie.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(ie.PageTypeV2.ListReport,r,{})}}s(qo,"importHeaderActions");var _e=H(q());var Zg=H(q());var Ac={};Oa(Ac,{ANNOERR:()=>sx,ANNOTATIONFILE:()=>lx,COMPONENTNOTDEFINED:()=>cx,CONTEXTPATHCOULDNOTBERESOLVED:()=>ix,ENTITYSETNOTFOUND:()=>nx,FLEXERROR:()=>mx,INVALIDANCHOR:()=>yx,INVALIDTARGETDEFINITION:()=>bx,NOALP:()=>ax,NOBASEPATH:()=>zT,NOENTITYSET:()=>ex,NOENTITYTYPE4SET:()=>tx,NOFE:()=>XT,NOFRAGMENT:()=>hx,NOGENERICSCHEMA:()=>YT,NOID4SECTION:()=>vx,NOLINEITEMS:()=>ux,NOLR:()=>rx,NOPAGEFORENTITYSET:()=>ZT,NOPAGES:()=>qT,NOROUTING:()=>fx,NOROUTINGID:()=>gx,NOTARGET:()=>dx,NOTARGETS:()=>px,NOTEMPLATE:()=>ox,UNKNOWNMINUI5VERSION:()=>QT,WRONGMINUI5VERSION:()=>JT,XMLPARSEFAILURE:()=>Tx,default:()=>xx});var JT="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",QT="The minUI5Version can not be determined from the pattern {{- minUI5Version}}",zT="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",qT="No pages found in manifest for app with id '{{- appId}}'",XT="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",YT="No generic schema found while generating page schema for {{- pageType}}",ZT="No page found in manifest for entitySet '{{- entitySet}}'",ex="No entitySet defined for page '{{- pageName}}'",tx="No entityType could be found for the given entity set '{{- entitySetName}}'",nx="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",ix="Either entitySet '{{- entitySet}}' or contextPath '{{- contextPath}}' was incorrectly specified in manifest, as this entity set or contextPath could not be found in metadata",rx="No page found in manifest for list report",ax="No page found in manifest for analytical list page",ox="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",sx="Error while parsing annotation files",lx="Annotation file: '{{- file}}'",cx="Component name is not defined for page '{{- pageName}}'",fx="Incomplete manifest definition: no routing defined",ux="UI.LineItem annotation has not been defined",px="Incomplete manifest definition: no targets defined",dx="Invalid reference: annotation target '{{- target}}' not found",gx="No page found in manifest for routingId '{{- routingId}}'",mx="Error while parsing flex change",yx="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",hx="fragmentName is undefined for columnKey '{{- columnKey}}'",bx="Invalid routing target definition in manifest: '{{- target}}'",vx="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",Tx="Parsing of XML file failed with error - {{- error}}",xx={WRONGMINUI5VERSION:JT,UNKNOWNMINUI5VERSION:QT,NOBASEPATH:zT,NOPAGES:qT,NOFE:XT,NOGENERICSCHEMA:YT,NOPAGEFORENTITYSET:ZT,NOENTITYSET:ex,NOENTITYTYPE4SET:tx,ENTITYSETNOTFOUND:nx,CONTEXTPATHCOULDNOTBERESOLVED:ix,NOLR:rx,NOALP:ax,NOTEMPLATE:ox,ANNOERR:sx,ANNOTATIONFILE:lx,COMPONENTNOTDEFINED:cx,NOROUTING:fx,NOLINEITEMS:ux,NOTARGETS:px,NOTARGET:dx,NOROUTINGID:gx,FLEXERROR:mx,INVALIDANCHOR:yx,NOFRAGMENT:hx,INVALIDTARGETDEFINITION:bx,NOID4SECTION:vx,XMLPARSEFAILURE:Tx};function Yg(e){e.addResourceBundle(e.language,"translation",Ac)}s(Yg,"initI18n");function lt(e="en"){Q.init({resources:{en:{translation:Zg.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
87
|
+
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var vo=require("path");var fn="core:FragmentDefinition",bo="sap.ui.table",Pl=new Map([[Le.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Le.ViewTemplateType.TreeTableColumnsExtension,{namespace:bo,name:"Column"}],[Le.ViewTemplateType.GridTableColumnsExtension,{namespace:bo,name:"Column"}],[Le.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:bo,name:"AnalyticalColumn"}]]),cT=new Map([[Le.v2.FE_TEMPLATE_V2_LIST_REPORT,Le.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Le.v2.FE_TEMPLATE_V2_ALP,Le.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Le.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Le.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),Rg={type:"element",name:"Text",attributes:{text:"Placeholder"}},fT=JSON.stringify(Rg);function uT(e,t){let n=t?e[fn]._attributes:e._attributes;if(n){let i=new Map;return Object.keys(n).filter(r=>r.startsWith("xmlns")).forEach(r=>{let a=i.get(n[r]);i.set(n[r],a?[...a,r.split(":")[1]||r]:[r.split(":")[1]||r])}),i}}s(uT,"getFragmentNamespaces");function wg(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}s(wg,"getTagName");function To(e,t,n=e){let i=uT(n,!!(t||n!==e));if(t){let r=Pl.get(t);return wg(r,i.get(r.namespace))}else{let r=Pl.keys();for(let a of r){let o=Pl.get(a),l=i?wg(o,i.get(o.namespace)):o.name;if(e[l])return l}}}s(To,"getTagNameFromFragmentJSON");function Wr(e,t=e){let n=To(e,void 0,t);return e[n]}s(Wr,"getRootCustomColumnFromFragmentJSON");function pT(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}s(pT,"addP13nData");function $g(e,t){var l,c,u;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)),o=t.findIndex(f=>f.columnKey===a.columnKey);return o<0?!1:(n=!0,r=pT(t,o),i["core:CustomData"]._attributes.value=r,!e.Text&&!e.Label&&((l=t[o])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(c=t[o])==null?void 0:c.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(u=t[o])==null?void 0:u.text),e._attributes||(e._attributes={}),e._attributes.id=t[o].id,t.splice(o,1),n)}s($g,"handleFragmentColumn");function dT(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",o=r.split("."),l=o[o.length-1]+Le.FRAGMENTNAMEPART+a;for(let c of t){let u=c.dataSourceUri.split(vo.sep);if(u[u.length-1]===l){let f=JSON.parse((0,Kt.xml2json)(c.fileContent,{compact:!0})),p=To(f[fn]);p&&(delete f[fn][p],c.fileContent=(0,Kt.json2xml)(JSON.stringify(f),{compact:!0,spaces:4}));break}}}s(dT,"deleteColumnsFromFragment");function Mg(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===fT&&(e.splice(n,1),t-=1,t===0));n++);}s(Mg,"deleteNumberOfCells");function gT(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+Le.FRAGMENTNAMEPART+i;for(let o of t)if(o.dataSourceUri.endsWith(a)){let l=JSON.parse((0,Kt.xml2json)(o.fileContent)),c=l.elements[0].elements&&l.elements[0].elements.filter(u=>u.type==="element");c&&Mg(l.elements[0].elements,c.length),o.fileContent=(0,Kt.json2xml)(JSON.stringify(l),{spaces:4});break}}s(gT,"deleteCellsFromFragment");function xo(e,t,n,i){if(i){dT(e,i,t,n);let r=t.replace(Le.ViewTemplateType.ResponsiveTableColumnsExtension,Le.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&gT(a,i,n)}}s(xo,"deleteColumnFromFragment");function mT(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(Rg)}s(mT,"addNewColumnsInFragment");function yT(e,t){let n=JSON.parse((0,Kt.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)mT(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;Mg(a,r)}e.fileContent=(0,Kt.json2xml)(JSON.stringify(n),{spaces:4})}}s(yT,"updateNonEmptyCellsFragment");function hT(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(vo.sep);if(a[a.length-1]===t){i=!0,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=Sl(n):yT(r,n);break}}return i}s(hT,"updateCellsFragment");function bT(e,t,n,i,r){var f;let a,o,l=t.manifest,c=Qe(l,e),u=c.type?c.type.toLowerCase():"xml";c.type=u.toUpperCase();for(let p of n){if(!p.fragmentName){ne(r,{severity:Le.LogSeverity.Error,message:Q.t("NOFRAGMENT",{columnKey:p.columnKey})});continue}c.fragmentName=p.fragmentName,c.className=p.className,a=((f=p.fragmentName)==null?void 0:f.replace(i,"<root>/webapp").replace(/[.]/g,vo.sep))+Le.FRAGMENTNAMEPART+u}if(e.indexOf(Le.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){let p=e.replace(Le.ViewTemplateType.ResponsiveTableColumnsExtension,Le.ViewTemplateType.ResponsiveTableCellsExtension),h=Qe(l,p),b=n.reduce((C,F)=>F.cellsFragmentName?F:C);b&&b.cellsFragmentName?(h.fragmentName=o=b.cellsFragmentName,h.className=n[0].className,h.type=u.toUpperCase()):hg(l,p)}return{manifestSection:c,lsFilePath:a,cellsFragmentName:o,fragmentType:u}}s(bT,"exportCustomColumnsToManifest");function vT(e,t,n,i,r){let a=xl(e,t);if(a){let o=JSON.parse((0,Kt.xml2json)(a,{compact:!0})),l=Wr(o,i);if(Array.isArray(n))n.some(u=>JSON.stringify(u)===JSON.stringify(l))||n.push(l);else if(n){let c=[n];c.splice(r,0,l),n=c}else n=[l]}return n}s(vT,"insertNewColumnInFragment");function TT(e,t){let n=[];for(let i=0;i<e.length;i++)$g(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}s(TT,"processCustomColumnInArray");function xT(e,t,n){if(e){if(Array.isArray(e))TT(e,t);else if(!$g(e,t)){let r=To(n[fn]);r&&(delete n[fn][r],e=void 0)}}return e}s(xT,"maintainExistingColumnInFragment");function CT(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let o=e.indexOf(a);n=vT(a,i,n,r,o)}return n}s(CT,"insertNewColumnsInFragment");function ST(e,t,n,i,r){let a=!1;if(!e)return a;for(let o of e)if(o.dataSourceUri.endsWith(t)){let l={};if(a=!0,!o.fileContent||o.fileContent.length===0)o.fileContent=Cl(i,r);else{let c=JSON.parse((0,Kt.xml2json)(o.fileContent,{compact:!0})),u=JSON.stringify(c);l=Wr(c[fn]),l=xT(l,i,c),l=CT(i,n,l,r,c);let f=To(c,r);c[fn][f]=l;let p=JSON.stringify(c);p!==u&&(o.fileContent=(0,Kt.json2xml)(p,{compact:!0,spaces:4}))}break}return a}s(ST,"updateColumnsInFragment");function El(e,t,n,i,r,a){let o=e.fragments,{manifestSection:l,lsFilePath:c,cellsFragmentName:u,fragmentType:f}=bT(t,e,n,i,a),p=JSON.parse(JSON.stringify(n)),h=l.fragmentName,b=h.substr(i.length+1),C=b.split(".");h=C[C.length-1]+Le.FRAGMENTNAMEPART+f;let N=u==null?void 0:u.split("."),E=N?N[N.length-1]:null,I=E?E+Le.FRAGMENTNAMEPART+f:null,k=ST(o,h,b,p,r),w=!1;if(u?w=hT(o,I,n):w=!0,!k){let oe={fileContent:Cl(p,r),dataSourceUri:c};e.fragments.push(oe)}if(!w){let oe={fileContent:Sl(n),dataSourceUri:c.replace(h,I)};e.fragments.push(oe)}}s(El,"exportCustomColumnsToFragment");var Co=s((e,t,n,i)=>{var c,u,f,p;let r=cT.get((c=e.component)==null?void 0:c.name);if(!i){let h=(p=(f=(u=e.component)==null?void 0:u.settings)==null?void 0:f.tableSettings)==null?void 0:p.type;h||(h="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(h="AnalyticalTable"),i=h+"ColumnsExtension"}let a=i,o=`${i}|${t}`;return n&&(o+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+o,viewTemplateType:a}},"getCustomColumnPath");var Ve=H(q());var On=s((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+Ve.PropertyName.table:Se(e,t),"getSmartTableControlId");function PT(e,t){for(let n in t.variants){let i=t.variants[n],r=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let a in i)r.indexOf(a)!==-1&&(i.tableSettings||(i.tableSettings={}),i.tableSettings[a]=i[a],delete i[a]);e.variants?e.variants[n]=i:e.variants={[n]:i}}}s(PT,"exportVariants");function ET(e,t){t.variants&&(Object.keys(t.variants).length>0?PT(e,t):delete e.variants)}s(ET,"exportQuickVariantSelectionX");var So=class So{};s(So,"CreateWithFilters"),g([m({manifest:{path:t=>fe(t)+"/createWithFilters"}})],So.prototype,"strategy",2);var Ol=So;function zr(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}s(zr,"importType");function ir(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}s(ir,"exportType");function rr(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}s(rr,"deleteType");var Jr=class Jr{};s(Jr,"QuickVariantSelection"),g([m({manifest:{path:t=>fe(t)+Ve.QUICKVARPATH}}),L({since:"1.48.0"})],Jr.prototype,"showCounts",2),g([m({manifest:{path:t=>fe(t)+Ve.QUICKVARPATH}}),L({since:"1.48.0"})],Jr.prototype,"variants",2);var Al=Jr,er=class er{};s(er,"QuickVariantSelectionX"),g([m({manifest:{path:t=>fe(t)+Ve.QUICKVARPATHX}}),L({since:"1.48.0"})],er.prototype,"showCounts",2),g([m({manifest:{path:t=>fe(t)+Ve.QUICKVARPATHX}}),L({since:"1.48.0"})],er.prototype,"enableAutoBinding",2),g([m({manifest:{path:t=>fe(t)+Ve.QUICKVARPATHX,export:ET}}),L({since:"1.48.0"})],er.prototype,"variants",2);var Il=er,ot=class ot{constructor(){this.getDeprecated=()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}})}};s(ot,"CommonTableSettings"),g([m({flex:{controlId:Se,controlType:()=>Ve.ControlType.SmartTable,createFlexChange:R}}),L({since:"1.38.0"})],ot.prototype,"showTablePersonalisation",2),g([m({flex:{controlId:On,controlType:()=>Ve.ControlType.SmartTable,createFlexChange:R}}),L({since:"1.26.0"})],ot.prototype,"useExportToExcel",2),g([m({flex:{controlId:On,controlType:()=>Ve.ControlType.SmartTable,createFlexChange:R}}),L({since:"1.50.0"})],ot.prototype,"exportType",2),g([m({flex:{controlId:On,controlType:()=>Ve.ControlType.SmartTable,createFlexChange:R}})],ot.prototype,"fitContainer",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.48.0"})],ot.prototype,"quickVariantSelection",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.48.0"})],ot.prototype,"quickVariantSelectionX",2),g([m({manifest:{path:t=>go(t)}}),L({since:"1.38.0"})],ot.prototype,"multiSelect",2),g([m({manifest:{path:t=>go(t)}}),L({since:"1.70.0"})],ot.prototype,"selectAll",2),g([m({manifest:{path:t=>go(t)}}),L({since:"1.70.0"})],ot.prototype,"selectionLimit",2),g([m({flex:{controlId:On,controlType:()=>Ve.ControlType.SmartTable,createFlexChange:R}}),L({since:"1.40.0"})],ot.prototype,"enableAutoBinding",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.42.0"})],ot.prototype,"condensedTableLayout",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.56.0"})],ot.prototype,"enableTableFilterInPageVariant",2),g([Je("toolBar")],ot.prototype,"toolBar",2);var Wn=ot,Pn=class Pn extends Wn{};s(Pn,"ResponsiveTable"),g([m({manifest:{path:t=>fe(t),import:zr,export:ir,delete:rr}}),L({since:"1.50.0"})],Pn.prototype,"type",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.54.0"})],Pn.prototype,"createWithFilters",2),g([m({flex:{controlId:On,controlType:()=>Ve.ControlType.Table,createFlexChange:R},generate:Gi}),L({since:"1.52.0"})],Pn.prototype,"popinLayout",2),g([m({flex:{controlId:On,controlType:()=>Ve.ControlType.Table,createFlexChange:R}})],Pn.prototype,"includeItemInSelection",2),g([m({manifest:{path:()=>Ve.GENERICAPPSETTINGS}}),L({since:"1.63.0"})],Pn.prototype,"showDraftToggle",2),g([m({flex:{controlId:On,controlType:()=>Ve.ControlType.Table,createFlexChange:R}}),L({since:"1.16.0"})],Pn.prototype,"growingThreshold",2);var pi=Pn,Qr=class Qr extends Wn{};s(Qr,"TreeTable"),g([m({manifest:{path:t=>fe(t),import:zr,export:ir,delete:rr}}),L({since:"1.50.0"})],Qr.prototype,"type",2),g([m({manifest:{path:()=>Ve.GENERICAPPSETTINGS}}),L({since:"1.63.0"})],Qr.prototype,"showDraftToggle",2);var Fl=Qr,Wt=class Wt extends Wn{};s(Wt,"AnalyticalTable"),g([m({manifest:{path:t=>fe(t),import:zr,export:ir,delete:rr}}),L({since:"1.50.0"})],Wt.prototype,"type",2),g([m({manifest:{path:t=>fe(t)}})],Wt.prototype,"qualifier",2),g([m({manifest:{path:t=>fe(t)}})],Wt.prototype,"defaultContentView",2),g([m({manifest:{path:t=>fe(t)}})],Wt.prototype,"defaultFilterMode",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.60.0"})],Wt.prototype,"contentTitle",2),g([m({manifest:{path:t=>fe(t)}})],Wt.prototype,"autoHide",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.54.0"})],Wt.prototype,"createWithFilters",2),g([m({manifest:{path:()=>Ve.GENERICAPPSETTINGS}}),L({since:"1.63.0"})],Wt.prototype,"showDraftToggle",2);var Nl=Wt,En=class En extends Wn{};s(En,"TableALP"),g([m({manifest:{path:t=>fe(t),import:zr,export:ir,delete:rr}}),L({since:"1.50.0"})],En.prototype,"type",2),g([m({manifest:{path:t=>fe(t)}})],En.prototype,"qualifier",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.38.0"}),m({manifest:{path:t=>fe(t)}})],En.prototype,"defaultContentView",2),g([m({manifest:{path:t=>fe(t)}})],En.prototype,"defaultFilterMode",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.60.0"})],En.prototype,"contentTitle",2),g([m({manifest:{path:t=>fe(t)}})],En.prototype,"autoHide",2);var nr=En,Po=class Po extends nr{};s(Po,"ALPResponsiveTable"),g([m({flex:{controlId:On,controlType:()=>Ve.ControlType.Table,createFlexChange:R}}),L({since:"1.16.0"})],Po.prototype,"growingThreshold",2);var Dl=Po,_l=class _l extends nr{};s(_l,"ALPGridTable");var Ll=_l,wl=class wl extends nr{};s(wl,"ALPAnalyticalTable");var jl=wl,tr=class tr extends Wn{};s(tr,"GridTable"),g([m({manifest:{path:t=>fe(t),import:zr,export:ir,delete:rr}}),L({since:"1.50.0"})],tr.prototype,"type",2),g([m({manifest:{path:t=>fe(t)}}),L({since:"1.54.0"})],tr.prototype,"createWithFilters",2),g([m({manifest:{path:()=>Ve.GENERICAPPSETTINGS}}),L({since:"1.63.0"})],tr.prototype,"showDraftToggle",2);var Vl=tr;var qr=H(q());var OT=s((e,t,n)=>{let{actionId:i}=ht(n);return`${e}action::${yt(i).replace(":2f","::")}`},"getActionButtonId"),AT=s((e,t,n)=>{let{actionId:i}=ht(n);return`${e}template::${i}`},"getStandardActionButtonId"),IT=s((e,t,n)=>{let{actionId:i}=ht(n);return`${e}${ao}${i}`},"getStandardFooterActionOPButtonId"),Jl=s((e,t,n)=>{let{semanticObjectId:i,actionId:r}=ht(n);return`${e}action::${i}::${yt(r)}`},"buildIntentBasedActionId"),FT=s((e,t,n)=>{let{actionId:i}=ht(n);return`${e}action::${yt(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),Jn={controlId:OT,controlType:()=>qr.ControlType.Button,createFlexChange:R},Xr={controlId:AT,controlType:()=>qr.ControlType.Button,createFlexChange:R},kg={controlId:IT,controlType:()=>qr.ControlType.Button,createFlexChange:R},Eo={controlId:FT,controlType:()=>qr.ControlType.Button,createFlexChange:R},di=class di{};s(di,"Action"),g([m({flex:Jn})],di.prototype,"tooltip",2),g([m({flex:Jn})],di.prototype,"icon",2),g([m({flex:Jn})],di.prototype,"activeIcon",2),g([m({flex:Jn})],di.prototype,"type",2);var Rl=di,gi=class gi{};s(gi,"ToolBarAction"),g([m({flex:Jn})],gi.prototype,"tooltip",2),g([m({flex:Jn})],gi.prototype,"icon",2),g([m({flex:Jn})],gi.prototype,"activeIcon",2),g([m({flex:Jn})],gi.prototype,"type",2);var $l=gi,mi=class mi{};s(mi,"FooterAction"),g([m({flex:Eo})],mi.prototype,"tooltip",2),g([m({flex:Eo})],mi.prototype,"icon",2),g([m({flex:Eo})],mi.prototype,"activeIcon",2),g([m({flex:Eo})],mi.prototype,"type",2);var Ml=mi,Oo=class Oo{};s(Oo,"Share"),g([m({flex:Xr})],Oo.prototype,"visible",2);var kl=Oo,Ao=class Ao{};s(Ao,"ShareOP"),g([m({flex:Xr})],Ao.prototype,"visible",2);var Bl=Ao,Io=class Io{};s(Io,"UpAndDownNavigationOP"),g([m({flex:Xr})],Io.prototype,"visible",2);var Ul=Io,Fo=class Fo{};s(Fo,"SaveAndEditOP"),g([m({flex:kg,generate:ge})],Fo.prototype,"visible",2);var Gl=Fo,No=class No{};s(No,"HeaderActionStandard"),g([m({flex:Xr})],No.prototype,"visible",2);var Hl=No,Do=class Do{};s(Do,"ObjectPageHeaderActionStandard"),g([m({flex:Xr})],Do.prototype,"visible",2);var Kl=Do,Lo=class Lo{};s(Lo,"ObjectPageFooterActionStandard"),g([m({flex:kg})],Lo.prototype,"visible",2);var Wl=Lo;var ea=H(q());var NT=s((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=ht(n),o=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${o}:::sAction::${a}`},"buildColumnActionId"),DT=s((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:o}=ht(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${o}:::sAction::${a}`},"buildColumnIntentBasedId"),LT=s((e,t,n)=>{let{actionId:i}=ht(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),Ql={controlId:NT,controlType:()=>ea.ControlType.TableColumn,createFlexChange:R},Yr={controlId:LT,controlType:()=>ea.ControlType.Button,createFlexChange:R},Bg={...Ql,controlId:DT},jo={...Yr,controlId:Jl},Zr=class Zr{};s(Zr,"TableColumn"),g([m({flex:{controlId:Qs,controlType:()=>ea.ControlType.TableColumn,createFlexChange:R}})],Zr.prototype,"width",2),g([m({flex:{controlId:Qs,controlType:()=>ea.ControlType.TableColumn,createFlexChange:R},generate:Gi})],Zr.prototype,"hAlign",2);var zl=Zr,An=class An{};s(An,"TableColumnAction"),g([m({flex:Ql})],An.prototype,"width",2),g([m({flex:Ql,generate:Gi})],An.prototype,"hAlign",2),g([m({flex:Yr})],An.prototype,"tooltip",2),g([m({flex:Yr})],An.prototype,"icon",2),g([m({flex:Yr})],An.prototype,"activeIcon",2),g([m({flex:Yr})],An.prototype,"type",2);var Vo=An,In=class In extends Vo{};s(In,"TableColumnActionIntentBased"),g([m({flex:Bg})],In.prototype,"width",2),g([m({flex:Bg,generate:Gi})],In.prototype,"hAlign",2),g([m({flex:jo})],In.prototype,"tooltip",2),g([m({flex:jo})],In.prototype,"icon",2),g([m({flex:jo})],In.prototype,"activeIcon",2),g([m({flex:jo})],In.prototype,"type",2);var ql=In,Yl=class Yl{};s(Yl,"TableCustomColumn");var Xl=Yl;var ec=class ec{};s(ec,"ToolBar");var Zl=ec;var hi=H(q());var ta=s(e=>e+hi.PropertyName.chart,"getSmartChartControlId"),yi=class yi{};s(yi,"ChartSettings"),g([m({flex:{controlId:ta,controlType:()=>hi.ControlType.SmartChart,createFlexChange:R}})],yi.prototype,"showLegendButton",2),g([m({flex:{controlId:ta,controlType:()=>hi.ControlType.SmartChart,createFlexChange:R}})],yi.prototype,"showDownloadButton",2),g([m({flex:{controlId:ta,controlType:()=>hi.ControlType.SmartChart,createFlexChange:R}})],yi.prototype,"showChartTypeSelectionButton",2),g([m({flex:{controlId:ta,controlType:()=>hi.ControlType.SmartChart,exportFlexValue:(t,n,i)=>{t.content.newValue=n[i].join()},importFlexValue:(t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},createFlexChange:R}})],yi.prototype,"ignoredChartTypes",2);var tc=yi;var Fn=class Fn{};s(Fn,"KPISettings"),g([m({manifest:{path:(t,n,i)=>ui(t,i)}})],Fn.prototype,"model",2),g([m({manifest:{path:(t,n,i)=>ui(t,i)}})],Fn.prototype,"entitySet",2),g([m({manifest:{path:(t,n,i)=>ui(t,i)}})],Fn.prototype,"qualifier",2),g([m({manifest:{path:(t,n,i)=>ui(t,i)}})],Fn.prototype,"filterable",2),g([m({manifest:{path:(t,n,i)=>ui(t,i)}})],Fn.prototype,"detailNavigation",2),g([m({manifest:{path:(t,n,i)=>ui(t,i)}})],Fn.prototype,"groupId",2);var nc=Fn;var Ug=H(q());var jT=s((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Se(e,n)},"getAvatarControlId"),bi=class bi{};s(bi,"ObjectPageHeader"),g([m({manifest:{path:t=>Ht(t)}}),L({since:"1.46.0"})],bi.prototype,"showRelatedApps",2),g([m({manifest:{path:t=>Ht(t)}}),L({since:"1.46.0"})],bi.prototype,"editableHeaderContent",2),g([m({manifest:{path:t=>Ht(t)}}),L({since:"1.48.0"})],bi.prototype,"simpleHeaderFacets",2),g([m({flex:{controlId:jT,controlType:()=>Ug.ControlType.Avatar,createFlexChange:R},generate:ge})],bi.prototype,"displayShape",2);var ic=bi;var _o=H(q());var VT=s((e,t,n,i)=>{if(i()===_o.ControlType.Button||i()===_o.ControlType.HeaderAction){let r=n[2];return`${e}action::${yt(r)}`}return Se(e,t)},"getActionButtonId"),na={controlId:VT,controlType:()=>_o.ControlType.HeaderAction,createFlexChange:R},Qn=class Qn{};s(Qn,"HeaderAction"),g([m({flex:na,generate:ge})],Qn.prototype,"visible",2),g([m({flex:na})],Qn.prototype,"tooltip",2),g([m({flex:na})],Qn.prototype,"icon",2),g([m({flex:na})],Qn.prototype,"activeIcon",2),g([m({flex:na})],Qn.prototype,"type",2);var rc=Qn;var oc=H(q());var _T=s((e,t,n,i)=>{if(i()===oc.ControlType.Button){let{actionId:r}=ht(n);return`${e}action::${yt(r)}::Determining`}return Se(e,t)},"getFooterActionButtonId"),ia={controlId:_T,controlType:()=>oc.ControlType.Button,createFlexChange:R},zn=class zn{};s(zn,"ObjectPageFooterAction"),g([m({flex:ia,generate:ge})],zn.prototype,"visible",2),g([m({flex:ia})],zn.prototype,"tooltip",2),g([m({flex:ia})],zn.prototype,"icon",2),g([m({flex:ia})],zn.prototype,"activeIcon",2),g([m({flex:ia})],zn.prototype,"type",2);var ac=zn;var ra=H(q());var wo=s((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Se(e,n)},"getControlId"),vi=class vi{};s(vi,"ObjectPageLayout"),g([m({flex:{controlId:wo,controlType:()=>ra.ControlType.ObjectPageLayout,createFlexChange:R},generate:ge})],vi.prototype,"showHeaderContent",2),g([m({flex:{controlId:wo,controlType:()=>ra.ControlType.ObjectPageLayout,createFlexChange:R}})],vi.prototype,"showAnchorBar",2),g([m({flex:{controlId:wo,controlType:()=>ra.ControlType.ObjectPageLayout,createFlexChange:R}})],vi.prototype,"useIconTabBar",2),g([m({flex:{controlId:wo,controlType:()=>ra.ControlType.ObjectPageLayout,createFlexChange:R}}),L({since:"1.34.0"})],vi.prototype,"alwaysShowContentHeader",2);var sc=vi;var Gg=H(q());var Ti=class Ti{};s(Ti,"BaseCustomSection"),g([m({manifest:{path:Sn,export:!1,import:(t,n)=>n.split("|")[2]}}),L({since:"1.52.0"})],Ti.prototype,"relatedFacet",2),g([m({manifest:{path:Sn,export:!1,import:(t,n)=>n.split("|")[0]}}),L({since:"1.52.0"})],Ti.prototype,"relativePosition",2),g([m({manifest:{path:(t,n,i)=>Sn(t,{},i,Gg.ManifestSection.generic)}}),L({since:"1.52.0"})],Ti.prototype,"title",2),g([m({manifest:{path:Sn}}),L({since:"1.52.0"})],Ti.prototype,"className",2);var sa=Ti,aa=class aa extends sa{};s(aa,"ObjectPageCustomSectionFragment"),g([m({manifest:{path:Sn}}),L({since:"1.52.0"})],aa.prototype,"fragmentName",2),g([m({manifest:{path:Sn}}),L({since:"1.52.0"})],aa.prototype,"type",2);var la=aa,oa=class oa extends sa{};s(oa,"ObjectPageCustomSectionView"),g([m({manifest:{path:Sn}}),L({since:"1.52.0"})],oa.prototype,"viewName",2),g([m({manifest:{path:Sn}}),L({since:"1.52.0"})],oa.prototype,"type",2);var ca=oa;var vt=H(q());var Hg=s((e,t,n,i,r)=>{let o=[Xe(n[1],r),vt.DefinitionName.Table];return Se(e,o)},"getTableSectionControlId"),Kg=s((e,t,n,i,r)=>{let o=[Xe(n[1],r),"FormGroup"];return Se(e,o)},"getFormSectionControlId"),Wg=s((e,t,n,i,r)=>{let o=[Xe(n[1],r),"Chart"];return Se(e,o)},"getChartSectionControlId"),xi=s((e,t,n,i,r)=>{let o=[Xe(n[1],r),"Section"];return Se(e,o)},"getSectionControlId"),Jg=s((e,t,n,i,r)=>{let o=[Xe(n[1],r),"SubSection"];return Se(e,o)},"getSubSectionControlId"),Qg=s((e,t,n,i,r)=>{let o=[Xe(n[1],r),"ContactsList"];return Se(e,o)},"getContactSubSectionControlId"),Ro=class Ro{};s(Ro,"ObjectPageSectionV2"),g([m({flex:{controlId:xi,controlType:()=>vt.ControlType.Section,createFlexChange:R},generate:ge})],Ro.prototype,"visible",2);var lc=Ro,$o=class $o{};s($o,"ObjectPageSectionFormV2"),g([m({flex:{controlId:xi,controlType:()=>vt.ControlType.Section,createFlexChange:R},generate:ge})],$o.prototype,"visible",2);var cc=$o,Mo=class Mo{};s(Mo,"ObjectPageSectionChartV2"),g([m({flex:{controlId:xi,controlType:()=>vt.ControlType.Section,createFlexChange:R},generate:ge})],Mo.prototype,"visible",2);var fc=Mo,ko=class ko{};s(ko,"ObjectPageSectionTableV2"),g([m({flex:{controlId:xi,controlType:()=>vt.ControlType.Section,createFlexChange:R},generate:ge})],ko.prototype,"visible",2);var uc=ko,Bo=class Bo{};s(Bo,"ObjectPageSectionAddressV2"),g([m({flex:{controlId:xi,controlType:()=>vt.ControlType.Section,createFlexChange:R},generate:ge})],Bo.prototype,"visible",2);var pc=Bo,Uo=class Uo{};s(Uo,"ObjectPageSectionContactV2"),g([m({flex:{controlId:xi,controlType:()=>vt.ControlType.Section,createFlexChange:R},generate:ge})],Uo.prototype,"visible",2);var dc=Uo,Go=class Go{};s(Go,"ObjectPageSubSectionV2"),g([m({flex:{controlId:Jg,controlType:()=>vt.ControlType.SubSection,createFlexChange:R},generate:ge})],Go.prototype,"visible",2);var gc=Go,Ho=class Ho{};s(Ho,"ObjectPageSubSectionFormV2"),g([m({flex:{controlId:Kg,controlType:()=>vt.ControlType.Group,createFlexChange:R},generate:ge})],Ho.prototype,"visible",2);var mc=Ho,Ko=class Ko{};s(Ko,"ObjectPageSubSectionChartV2"),g([m({flex:{controlId:Wg,controlType:()=>vt.ControlType.SmartChart,createFlexChange:R},generate:ge})],Ko.prototype,"visible",2);var yc=Ko,Wo=class Wo{};s(Wo,"ObjectPageSubSectionContactV2"),g([m({flex:{controlId:Qg,controlType:()=>vt.ControlType.SubSection,createFlexChange:R},generate:ge})],Wo.prototype,"visible",2);var hc=Wo,Jo=class Jo{};s(Jo,"ObjectPageSubSectionTableV2"),g([m({flex:{controlId:Hg,controlType:()=>vt.ControlType.SmartTable,createFlexChange:R},generate:ge})],Jo.prototype,"visible",2);var bc=Jo;var _t=H(q());var ar=s((e,t,n,i,r)=>{let a=n.slice(1,2),o;return i()==="sap.ui.comp.smarttable.SmartTable"?o=_t.DefinitionName.Table:i()==="sap.m.Table"&&(o="responsiveTable"),a.push(o),a[0]=Xe(a[0],r),Se(e,a)},"getSmartTableControlId"),fa=class fa{};s(fa,"QuickVariantSelectionOP"),g([m({manifest:{path:(t,n,i)=>an(t,n,i)+_t.QUICKVARPATH}}),L({since:"1.48.0"})],fa.prototype,"showCounts",2),g([m({manifest:{path:(t,n,i)=>an(t,n,i)+_t.QUICKVARPATH}}),L({since:"1.48.0"})],fa.prototype,"variants",2);var vc=fa,Et=class Et{constructor(){this.getDeprecated=()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}})}};s(Et,"CommonTableSettingsForSections"),g([m({flex:{controlId:ar,controlType:()=>_t.ControlType.SmartTable,createFlexChange:R}}),L({since:"1.28.0"})],Et.prototype,"editable",2),g([m({manifest:{path:kn}}),L({since:"1.54.0"})],Et.prototype,"multiSelect",2),g([m({manifest:{path:kn}}),L({since:"1.70.0"})],Et.prototype,"selectAll",2),g([m({manifest:{path:kn}}),L({since:"1.70.0"})],Et.prototype,"selectionLimit",2),g([m({manifest:{path:an}}),L({since:"1.63.0"})],Et.prototype,"quickVariantSelection",2),g([m({flex:{controlId:ar,controlType:()=>_t.ControlType.SmartTable,createFlexChange:R}}),L({since:"1.26.0"})],Et.prototype,"useExportToExcel",2),g([m({flex:{controlId:ar,controlType:()=>_t.ControlType.SmartTable,createFlexChange:R}}),L({since:"1.50.0"})],Et.prototype,"exportType",2),g([m({manifest:{path:an}}),L({since:"1.48.5"})],Et.prototype,"createMode",2),g([m({manifest:{path:an}}),L({since:"1.61.0"})],Et.prototype,"disableDefaultInlineCreateSort",2),g([Je("toolBar")],Et.prototype,"toolBar",2);var Si=Et,Ci=class Ci extends Si{};s(Ci,"ObjectPageResponsiveTable"),g([m({manifest:{path:kn}})],Ci.prototype,"type",2),g([m({flex:{controlId:ar,controlType:()=>_t.ControlType.Table,createFlexChange:R}})],Ci.prototype,"includeItemInSelection",2),g([m({flex:{controlId:ar,controlType:()=>_t.ControlType.Table,createFlexChange:R},generate:ge}),L({since:"1.52.0"})],Ci.prototype,"popinLayout",2),g([m({flex:{controlId:ar,controlType:()=>_t.ControlType.Table,createFlexChange:R}}),L({since:"1.16.0"})],Ci.prototype,"growingThreshold",2);var Pi=Ci,ua=class ua extends Si{};s(ua,"ObjectPageAnalyticalTable"),g([m({manifest:{path:kn}})],ua.prototype,"type",2),g([m({manifest:{path:an}}),L({since:"1.67.0"})],ua.prototype,"condensedTableLayout",2);var Tc=ua,pa=class pa extends Si{};s(pa,"ObjectPageGridTable"),g([m({manifest:{path:kn}})],pa.prototype,"type",2),g([m({manifest:{path:an}}),L({since:"1.67.0"})],pa.prototype,"condensedTableLayout",2);var xc=pa,da=class da extends Si{};s(da,"ObjectPageTreeTable"),g([m({manifest:{path:kn}})],da.prototype,"type",2),g([m({manifest:{path:an}}),L({since:"1.67.0"})],da.prototype,"condensedTableLayout",2);var Cc=da,un=class un{};s(un,"GlobalTableSettings"),g([m({manifest:{path:Mn}}),L({since:"1.70.0"})],un.prototype,"selectAll",2),g([m({manifest:{path:Mn}}),L({since:"1.70.0"})],un.prototype,"selectionLimit",2),g([m({manifest:{path:Mn}}),L({since:"1.48.5"})],un.prototype,"createMode",2),g([m({manifest:{path:Mn}}),L({since:"1.61.0"})],un.prototype,"disableDefaultInlineCreateSort",2),g([m({manifest:{path:Mn}})],un.prototype,"type",2),g([m({manifest:{path:Mn}}),L({since:"1.54.0"})],un.prototype,"multiSelect",2),g([m({manifest:{path:Mn}}),L({since:"1.67.0"})],un.prototype,"condensedTableLayout",2);var Sc=un;var zg=H(q());var wT=s((e,t,n,i,r)=>{let{actionId:a}=ht(n),o=Xe(n[1],r);return`${e}${o}::action::${yt(a).replace(":2f","::")}`},"getActionButtonId"),ga={controlId:wT,controlType:()=>zg.ControlType.Button,createFlexChange:R},qn=class qn{};s(qn,"ObjectPageToolBarAction"),g([m({flex:ga,generate:ge})],qn.prototype,"visible",2),g([m({flex:ga})],qn.prototype,"tooltip",2),g([m({flex:ga})],qn.prototype,"icon",2),g([m({flex:ga})],qn.prototype,"activeIcon",2),g([m({flex:ga})],qn.prototype,"type",2);var Pc=qn;function Xn(e){return e.replace("/","::")}s(Xn,"convertActionKey");function Oc(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}s(Oc,"convertSelector");function RT(e,t,n,i){var a,o,l,c;(((o=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:o.properties[t])||((c=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:c.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}s(RT,"addSmartFilterBarFlex");function $T(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=yt((l=r.split("<")[1])==null?void 0:l.split(">")[0]),o=a.indexOf(":::");if(a.startsWith("DataField")&&o>-1){let c=a.split(":::"),u=c.find(h=>h.startsWith("sSemanticObject")),f=c.find(h=>h.startsWith("sAction")),p=f.split("sAction::")[1].replace(":2f","::");if(u){let h=`${u.split("::")[1]}::${p}`,b=`${c[0]}:::${u}:::${f}`;i.set(h,r),i.set(r,b)}else i.set(p,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}s($T,"filterActions");function MT(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}s(MT,"addColumnActionConfigPart");function kT(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]}s(kT,"getActionId");function BT(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(o=>{var c,u;let l=$T(o.name,i);if(l.has(o.id)){let f=l.get(o.id),p=(c=f.split("<")[1])==null?void 0:c.split(">")[0];o.name==="TableColumnAction"&&MT(o,e,p);let h=o.configPart[p];((u=i.definitions[f])==null?void 0:u.properties[t])&&h&&(h[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}s(BT,"addActionFlex");function UT(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let o=St(e[ie.PropertyName.chart],t);(a=o==null?void 0:o.flex)!=null&&a.importFlexValue?o.flex.importFlexValue(n,e[ie.PropertyName.chart],t):e[ie.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}s(UT,"addSmartChartFlex");function GT(e,t,n){var o;let i={controlId:t.controlId,propertyId:t.content.property,newValue:t.content.newBinding?t.content.newBinding:t.content.newValue,controlType:t.controlType,creation:t.creation},r;(!e.table.type||e.table.type===ie.v2.TableTypeV2.ResponsiveTable)&&!((o=i.controlId)!=null&&o.includes(ie.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(ie.PageTypeV2.AnalyticalListPage)))?r="ResponsiveTable":r=e.table.constructor.name,(n.definitions[`${r}<LineItems>`].properties[i.propertyId]||i.controlType===ie.ControlType.TableColumn)&&fo(e.table,i,n)}s(GT,"addAdditionalFlexChanges");function Qo(e,t,n,i){var r,a;try{let o=_n(t),l=o.content.property;if((r=o.controlId)!=null&&r.includes(ie.PageTypeV2.ListReport)||(a=o.controlId)!=null&&a.includes(ie.PageTypeV2.AnalyticalListPage))switch(o.controlId=Oc(o.controlId),o.controlType){case ie.ControlType.SmartFilterBar:{RT(e,l,o,n);break}case ie.ControlType.DynamicPage:{n.properties[l]&&(e[o.content.property]=o.content.newValue);break}case ie.ControlType.Button:{let c=kT(o);c&&BT(e,l,o,n,c);break}case ie.ControlType.SmartChart:{UT(e,l,o,n);break}default:{GT(e,o,n);break}}}catch(o){ne(i,{severity:ie.LogSeverity.Error,message:Q.t("FLEXERROR")},...o)}}s(Qo,"addFlex");function Ye(e,t,n,i,r,a){if(!n)return;let o={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let c in n.properties){let u=St(e,c);if(u!=null&&u.manifest){let f=u.manifest.path([i],t,a);o=Qe(t,f),io(u,o,c,e),kd(l,o,f,r)}}}s(Ye,"transferSettingsOfObject");function zo(e,t){var r,a,o,l,c,u,f,p,h;let n=e[ie.ManifestSection.generic].pages[t],i=ie.v2.TableTypeV2.ResponsiveTable;return(r=e[ie.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((o=(a=e[ie.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&o.type||(l=e[ie.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((f=(u=(c=n.component)==null?void 0:c.settings)==null?void 0:u.tableSettings)==null?void 0:f.type)||((p=n.component)==null?void 0:p.settings.tableType):((h=n.component)==null?void 0:h.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=ie.v2.TableTypeV2.AnalyticalTable),i}s(zo,"determineTableType");function qg(e,t,n,i,r,a,o){if(e.customData||e["table:customData"]){let l=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,c=JSON.parse(l.substr(1,l.length)),u=e.Text&&e.Text._attributes&&e.Text._attributes.text;u||(u=e.Label&&e.Label._attributes&&e.Label._attributes.text);let f={id:e._attributes&&e._attributes.id,text:u,...c,columnKey:c.columnKey,columnIndex:c.columnIndex!==void 0?Number(c.columnIndex):void 0,leadingProperty:c.leadingProperty,className:t[n].className,fragmentName:t[n].fragmentName,tabKey:i,extensionType:a};o&&(f.cellsFragmentName=o),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(f)}}s(qg,"evaluateFragmentColumn");function HT(e,t,n,i){let r;if(e===ie.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[o,l,c]=a.split("|");o===ie.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&c===i&&(r=t[a].fragmentName)}return r}s(HT,"determineCellsFragmentName");function KT(e,t,n,i,r,a,o){var l;if(e[0]){let u=JSON.parse((0,Xg.xml2json)(e[0].fileContent,{compact:!0}))[fn],f=Wr(u);if(f)if((l=t[ie.PropertyName.table])!=null&&l.columns||(t[ie.PropertyName.table].columns={}),Array.isArray(f))for(let p of f)qg(p,n,i,r,t,a,o);else qg(f,n,i,r,t,a,o)}}s(KT,"analyzeFilteredFragments");function WT(e,t,n,i,r){for(let a of Object.keys(e)){let o=a.split("|"),[l,c]=o,u=o[2],f=n&&u===n.key?void 0:u,p=ie.ViewTemplateType[l];if(p&&"|"+c===t){let h=e[a].type?e[a].type.toLowerCase():"xml",b=e[a].fragmentName;if(!b)continue;let C=HT(p,e,c,u),F=b.split(".");b=F[F.length-1]+ie.FRAGMENTNAMEPART+h;let N=r.filter(E=>E.dataSourceUri.endsWith(b));KT(N,i,e,a,f,p,C)}}}s(WT,"processViewExtensions");function or(e,t,n,i,r,a){if(!r)return;let o="|"+(a&&a.target?a.target:n.entitySet);if(t[ie.ManifestSection.ui5]&&t[ie.ManifestSection.ui5].extends&&t[ie.ManifestSection.ui5].extends.extensions&&t[ie.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"]){let l=ie.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),c=t[ie.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][l];if(!c)return;WT(c,o,a,e,r)}}s(or,"addFragments");function qo(e,t,n){if(e.header={actions:{}},n[ie.DefinitionName.HeaderActionsStandard]){let i=n[ie.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(ie.PageTypeV2.ListReport,r,{})}}s(qo,"importHeaderActions");var _e=H(q());var Zg=H(q());var Ac={};Aa(Ac,{ANNOERR:()=>sx,ANNOTATIONFILE:()=>lx,COMPONENTNOTDEFINED:()=>cx,CONTEXTPATHCOULDNOTBERESOLVED:()=>ix,ENTITYSETNOTFOUND:()=>nx,FLEXERROR:()=>mx,INVALIDANCHOR:()=>yx,INVALIDTARGETDEFINITION:()=>bx,NOALP:()=>ax,NOBASEPATH:()=>zT,NOENTITYSET:()=>ex,NOENTITYTYPE4SET:()=>tx,NOFE:()=>XT,NOFRAGMENT:()=>hx,NOGENERICSCHEMA:()=>YT,NOID4SECTION:()=>vx,NOLINEITEMS:()=>ux,NOLR:()=>rx,NOPAGEFORENTITYSET:()=>ZT,NOPAGES:()=>qT,NOROUTING:()=>fx,NOROUTINGID:()=>gx,NOTARGET:()=>dx,NOTARGETS:()=>px,NOTEMPLATE:()=>ox,UNKNOWNMINUI5VERSION:()=>QT,WRONGMINUI5VERSION:()=>JT,XMLPARSEFAILURE:()=>Tx,default:()=>xx});var JT="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",QT="The minUI5Version can not be determined from the pattern {{- minUI5Version}}",zT="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",qT="No pages found in manifest for app with id '{{- appId}}'",XT="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",YT="No generic schema found while generating page schema for {{- pageType}}",ZT="No page found in manifest for entitySet '{{- entitySet}}'",ex="No entitySet defined for page '{{- pageName}}'",tx="No entityType could be found for the given entity set '{{- entitySetName}}'",nx="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",ix="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",rx="No page found in manifest for list report",ax="No page found in manifest for analytical list page",ox="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",sx="Error while parsing annotation files",lx="Annotation file: '{{- file}}'",cx="Component name is not defined for page '{{- pageName}}'",fx="Incomplete manifest definition: no routing defined",ux="UI.LineItem annotation has not been defined",px="Incomplete manifest definition: no targets defined",dx="Invalid reference: annotation target '{{- target}}' not found",gx="No page found in manifest for routingId '{{- routingId}}'",mx="Error while parsing flex change",yx="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",hx="fragmentName is undefined for columnKey '{{- columnKey}}'",bx="Invalid routing target definition in manifest: '{{- target}}'",vx="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",Tx="Parsing of XML file failed with error - {{- error}}",xx={WRONGMINUI5VERSION:JT,UNKNOWNMINUI5VERSION:QT,NOBASEPATH:zT,NOPAGES:qT,NOFE:XT,NOGENERICSCHEMA:YT,NOPAGEFORENTITYSET:ZT,NOENTITYSET:ex,NOENTITYTYPE4SET:tx,ENTITYSETNOTFOUND:nx,CONTEXTPATHCOULDNOTBERESOLVED:ix,NOLR:rx,NOALP:ax,NOTEMPLATE:ox,ANNOERR:sx,ANNOTATIONFILE:lx,COMPONENTNOTDEFINED:cx,NOROUTING:fx,NOLINEITEMS:ux,NOTARGETS:px,NOTARGET:dx,NOROUTINGID:gx,FLEXERROR:mx,INVALIDANCHOR:yx,NOFRAGMENT:hx,INVALIDTARGETDEFINITION:bx,NOID4SECTION:vx,XMLPARSEFAILURE:Tx};function Yg(e){e.addResourceBundle(e.language,"translation",Ac)}s(Yg,"initI18n");function lt(e="en"){Q.init({resources:{en:{translation:Zg.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
88
88
|
|
|
89
|
-
`}),Yg(Q)}s(lt,"initI18n");var Ce=H(q());function Ei(e,t,n){var r;let i;for(let a in e){let o=e[a];if(vn((r=o.component)==null?void 0:r.name)===Ce.PageTypeV2.ObjectPage&&o.entitySet===t)return n.unshift(a),o;if(o.pages&&(i=Ei(o.pages,t,n),i))return n.unshift(a),i}}s(Ei,"findObjectPageV2");function sr(e,t){var n;for(let i in e){let r=e[i];if(vn((n=r.component)==null?void 0:n.name)===Ce.PageTypeV2.ListReport)return t.push(i),r}}s(sr,"findListReportPageV2");function lr(e){if(!e.manifest[Ce.ManifestSection.generic]){ne(e.logger,{severity:Ce.LogSeverity.Error,message:Q.t("NOFE"),location:{path:Ce.MANIFESTPATH,range:[Ce.ManifestSection.generic]}});return}let t=e.manifest[Ce.ManifestSection.generic].pages;if(!t){ne(e.logger,{severity:Ce.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:Ce.MANIFESTPATH,range:[Ce.ManifestSection.generic]}});return}return t}s(lr,"getV2Pages");function cr(e,t,n){var i;if(!e){ne(t,{severity:Ce.LogSeverity.Error,message:Q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:Ce.MANIFESTPATH,range:[Ce.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;ne(t,{severity:Ce.LogSeverity.Error,message:Q.t("NOENTITYSET",{pageName:r}),location:{path:Ce.MANIFESTPATH,range:[Ce.ManifestSection.generic]}})}}s(cr,"checkV2Page");function fr(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),vn((i=a.component)==null?void 0:i.name)===Ce.PageTypeV2.AnalyticalListPage)return a}ne(n,{severity:Ce.LogSeverity.Error,message:Q.t("NOALP"),location:{path:Ce.MANIFESTPATH,range:[Ce.ManifestSection.generic]}})}s(fr,"findAnalyticalListPage");function Ic(e,t){let n=e.split("|");return Ce.v2.SectionPosition[n[0]]&&n[1]===t}s(Ic,"isAssociatedCustomSection");function em(e,t){let n=Qe(e,`sap.ui5/extends/extensions/${Ce.v2.SAPUI5_VIEW_EXTENSION}/${Ce.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)Ic(r,t)&&(i[r]=n[r]);return i}s(em,"findCustomSectionExtensions");function Cx(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}}s(Cx,"removeEmptySettingsOfFooter");function Sx(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}}s(Sx,"removeEmptySettingsOfFilterBar");function Px(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}}s(Px,"removeEmptySettingsOfToolBar");function Xo(e){Px(e),Sx(e),Cx(e)}s(Xo,"removeEmptySettings");var Nc={};Oa(Nc,{AnalyticalListPage:()=>wt,ListReport:()=>Jt,ObjectPage:()=>ct,OverviewPage:()=>Le});var Yo=H(q());var wt=class{};s(wt,"AnalyticalListPage"),g([m({flex:{controlId:Za,controlType:()=>Yo.ControlType.DynamicPage,createFlexChange:R}})],wt.prototype,"fitContent",2),g([Je("table")],wt.prototype,"table",2),g([Je("template::SmartFilterBar")],wt.prototype,"filterBar",2),g([Je("analyticalListPageChart")],wt.prototype,"chart",2),g([Je("analyticalListFooter")],wt.prototype,"footer",2),wt=g([Vn({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Yo.v2.FE_TEMPLATE_V2_ALP})],wt);var ga=H(q());var Jt=class{};s(Jt,"ListReport"),g([m({flex:{controlId:Za,controlType:()=>ga.ControlType.DynamicPage,createFlexChange:R}})],Jt.prototype,"fitContent",2),g([Je("listReportFilter")],Jt.prototype,"filterBar",2),g([Je("listReport")],Jt.prototype,"table",2),g([Je("listReportFooter")],Jt.prototype,"footer",2),Jt=g([Vn({id:ga.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:ga.v2.FE_TEMPLATE_V2_LIST_REPORT})],Jt);var Fc=H(q());var ct=class{};s(ct,"ObjectPage"),g([m({manifest:{path:t=>Ht(t)}}),L({since:"1.52.0"})],ct.prototype,"showConfirmationOnDraftActivate",2),g([m({manifest:{path:t=>Ht(t)}}),L({since:"1.52.1"})],ct.prototype,"hideChevronForUnauthorizedExtNav",2),g([m({manifest:{path:t=>Ht(t)}}),L({since:"1.48.0"})],ct.prototype,"allowDeepLinking",2),g([m({manifest:{path:t=>Ht(t)}}),L({since:"1.52.0"})],ct.prototype,"navToListOnSave",2),g([Je("header")],ct.prototype,"header",2),g([Je("sections")],ct.prototype,"sections",2),g([Je("layout")],ct.prototype,"layout",2),g([m({manifest:{path:t=>Ht(t),import:t=>{if("tableSettings"in t)return t.tableSettings},key:"tableSettings",delete:Cd}}),L({since:"1.71.0"})],ct.prototype,"globalTableSettings",2),ct=g([Vn({id:Fc.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:Fc.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ct);var Le=class{};s(Le,"OverviewPage"),g([m({manifest:{path:()=>Ue()}})],Le.prototype,"globalFilterModel",2),g([m({manifest:{path:()=>Ue()}})],Le.prototype,"globalFilterEntityType",2),g([m({manifest:{path:()=>Ue()}})],Le.prototype,"globalFilterEntitySet",2),g([m({manifest:{path:()=>Ue()}})],Le.prototype,"showBasicSearch",2),g([m({manifest:{path:()=>Ue()}})],Le.prototype,"disableErrorPage",2),g([m({manifest:{path:()=>Ue()}})],Le.prototype,"smartVariantRequired",2),g([m({manifest:{path:()=>Ue()}})],Le.prototype,"bHeaderExpanded",2),g([m({manifest:{path:()=>Ue()}})],Le.prototype,"containerLayout",2),g([m({manifest:{path:()=>Ue()}})],Le.prototype,"showDateInRelativeFormat",2),g([m({manifest:{path:()=>Ue()}})],Le.prototype,"disableTableCardFlexibility",2),g([m({manifest:{path:()=>Ue()}})],Le.prototype,"enableLiveFilter",2),g([m({manifest:{path:()=>Ue()}})],Le.prototype,"enableLazyRendering",2),g([m({manifest:{path:()=>Ue()}})],Le.prototype,"refreshStrategyOnAppRestore",2),g([m({manifest:{path:()=>Ue()}})],Le.prototype,"considerAnalyticalParameters",2),g([m({manifest:{path:()=>Ue()}})],Le.prototype,"refreshIntervalInMinutes",2),g([m({manifest:{path:()=>Ue()}})],Le.prototype,"useDateRangeType",2),g([m({manifest:{path:()=>Ue()}})],Le.prototype,"dataLoadSettings",2),g([m({manifest:{path:()=>Ue()}})],Le.prototype,"resizableLayout",2),Le=g([Vn({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Le);var Dc=class Dc{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)}};s(Dc,"MetadataFactory");var Zo=Dc;var ft=H(q());var Ex={},Ox={Table:pi,ResponsiveTableWithMultiSelect:pi,ResponsiveTableWithInlineDelete:pi},Ax={[ft.v2.CardSettingsType.listCardSettings]:Rr,[ft.v2.CardSettingsType.analyticalCardSettings]:$r,[ft.v2.CardSettingsType.stackCardSettings]:Mr,[ft.v2.CardSettingsType.linkListCardSettings]:kr,[ft.v2.CardSettingsType.tableCardSettings]:Br},Ix={[ft.SAPUI5_VIEW_CLASS]:la,[ft.SAPUI5_FRAGMENT_CLASS]:sa,Table:Pi,ObjectPageResponsiveTableWithMultiSelect:Pi,ObjectPageResponsiveTableWithInlineDelete:Pi},Fx={[ft.PageTypeV2.AnalyticalListPage]:Ex,[ft.PageTypeV2.ListReport]:Ox,[ft.PageTypeV2.ObjectPage]:Ix,[ft.PageTypeV2.OverviewPage]:Ax},Lc=class Lc extends Zo{constructor(){super(Ec,Nc,Fx)}};s(Lc,"MetadataInstanceFactoryV2");var ut=Lc;function Nx(e,t,n,i,r){e.filterBar=t.createInstance(_e.PageTypeV2.ListReport,_e.DefinitionName.ListReportFilterBar,e.filterBar),Ye(e.filterBar,n.manifest,i[_e.DefinitionName.ListReportFilterBar],r,n.logger)}s(Nx,"importFilterBar");function Dx(e,t,n,i,r){var o;let a;e?a=i.jsonSchema.definitions[e+"<LineItems>"]:a=i.jsonSchema.definitions[Hi],Ye(n.table,i.manifest,a,r,i.logger),(!((o=t.LineItems)!=null&&o.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&ne(i.logger,{severity:_e.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}s(Dx,"importTable");function Lx(e,t,n,i){let r=e.jsonSchema.definitions,a=zo(e.manifest,i);if(t.table=n.createInstance(_e.PageTypeV2.ListReport,a,t.table),qo(t,n,r),Dx(a,r,t,e,i),t.table.toolBar=n.createInstance(_e.PageTypeV2.ListReport,_e.DefinitionName.ToolBar,{actions:{}}),Ye(t.table.toolBar,e.manifest,r[_e.DefinitionName.ToolBar],i,e.logger),r[_e.DefinitionName.ActionsLR])for(let l in r[_e.DefinitionName.ActionsLR].properties){let c=Xn(l);t.table.toolBar.actions[c]=n.createInstance(_e.PageTypeV2.ListReport,_e.DefinitionName.Action),Ye(t.table.toolBar.actions[c],e.manifest,r[_e.DefinitionName.Action],i,e.logger)}Nx(t,n,e,r,i),t.footer={actions:{}};let o=r[_e.DefinitionName.FooterActionsLR];if(o)for(let l in o.properties){let c=Xn(l);t.footer.actions[c]=n.createInstance(_e.PageTypeV2.ListReport,_e.DefinitionName.FooterAction),Ye(t.footer.actions[c],e.manifest,r[_e.DefinitionName.Action],i,e.logger)}}s(Lx,"addSettings");function es(e){if(lt(),!lr(e))return;let n=new ut,i=n.createPageInstance(_e.PageTypeV2.ListReport),r=[],a=sr(e.manifest[_e.ManifestSection.generic].pages,r);if(cr(a,e.logger,a==null?void 0:a.entitySet),!!a)return Lx(e,i,n,r[0]),e.flex.forEach(o=>{_n(o)&&Qo(i,o,e.jsonSchema,e.logger)}),or(i,e.manifest,a,_e.PageTypeV2.ListReport,e.fragments),Xo(i),i}s(es,"createListReportConfig");var Ie=H(q());function jx(e,t,n,i){var c,u;let r=zo(e.manifest,i),a=e.jsonSchema.definitions;if(qo(t,n,a),t.table=n.createInstance(Ie.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table),Ye(t.table,e.manifest,a[`ALP${r}<LineItems>`],i,e.logger),t.table.toolBar=n.createInstance(Ie.PageTypeV2.AnalyticalListPage,Ie.DefinitionName.ToolBar,{actions:{}}),Ye(t.table.toolBar,e.manifest,a[Ie.DefinitionName.ToolBar],i,e.logger),a[Ie.DefinitionName.ActionsLR])for(let f in a[Ie.DefinitionName.ActionsLR].properties){let p=Xn(f);t.table.toolBar.actions[p]=n.createInstance(Ie.PageTypeV2.AnalyticalListPage,Ie.DefinitionName.Action),Ye(t.table.toolBar.actions[p],e.manifest,a[Ie.DefinitionName.Action],i,e.logger)}t.filterBar=n.createInstance(Ie.PageTypeV2.AnalyticalListPage,Ie.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),Ye(t.filterBar,e.manifest,a[Ie.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),t.chart=n.createInstance(Ie.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),Ye(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let o=a[Ie.DefinitionName.FooterActionsLR];if(o)for(let f in o.properties){let p=Xn(f);t.footer.actions[p]=n.createInstance(Ie.PageTypeV2.AnalyticalListPage,Ie.DefinitionName.FooterAction),Ye(t.footer.actions[p],e.manifest,a[Ie.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let l=(u=(c=e.manifest[Ie.ManifestSection.generic].pages[i].component)==null?void 0:c.settings)==null?void 0:u.keyPerformanceIndicators;l&&Object.keys(l).forEach(f=>{t.keyPerformanceIndicators[f]=n.createInstance(Ie.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(Ie.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),Ye(t.keyPerformanceIndicators[f],e.manifest,a.KPISettings,i,e.logger,f)})}s(jx,"addSettings");function ts(e){if(lt(),!lr(e))return;let n=new ut,i=n.createPageInstance(Ie.PageTypeV2.AnalyticalListPage),r=[],a=fr(e.manifest[Ie.ManifestSection.generic].pages,r,e.logger);if(cr(a,e.logger,a==null?void 0:a.entitySet),!!a)return jx(e,i,n,r[0]),e.flex.forEach(o=>{_n(o)&&Qo(i,o,e.jsonSchema)}),or(i,e.manifest,a,Ie.PageTypeV2.AnalyticalListPage,e.fragments),Xo(i),i}s(ts,"createAnalyticalListPageConfig");var U=H(q());var ma=require("@sap-ux/vocabularies-types/vocabularies/UI");var _x=[U.ControlType.Avatar,U.ControlType.ObjectPageLayout,U.ControlType.DynamicPage];function wx(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(`${ma.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${U.ActionTitlePrefix}${t}`;else if(e[0].indexOf(ma.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}s(wx,"getSingleSelectorIdPart");function Rx(e){let t,n=e.split(":::");if(n.length===1)t=wx(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(`::${ma.UIAnnotationTerms.LineItem}`,`/@${ma.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}s(Rx,"getFacetID");function $x(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(o=>{var l,c,u;try{let f=_n(o),p=f&&((l=f.controlId)==null?void 0:l.split("--"))||[];if(f&&((c=p[0])!=null&&c.includes(U.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((u=p[0])!=null&&u.endsWith(t))){let h=p[1].replace(/:3a:3a/g,"::");r.exec(h)!==null&&(h=h.split("template:::TableColumn:::")[1]);let b=Rx(h);h=Oc(h).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${h}::${f.content.property}`]={controlId:h,propertyId:f.content.property,facetId:b,newValue:f.content.newBinding!==void 0?f.content.newBinding:f.content.newValue,controlType:f.controlType,creation:f.creation}}}catch(f){ne(n,{severity:U.LogSeverity.Error,message:Q.t("FLEXERROR")},...f)}}),Object.entries(i).sort((o,l)=>o[1].creation-l[1].creation).reduce((o,[l,c])=>(o[l]=c,o),{})}s($x,"prepareFlexChanges");var Mx=s(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(V,"");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(V,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function kx(e,t,n,i,r,a){let o;r?o=[r.replace(/@/g,"")]:o=[a.replace(/@/g,""),a==null?void 0:a.replace(/::@com.sap.vocabularies/g,U.VOCWITHSLASH)];for(let l in e){let c=e[l],u=c.propertyId===t,f=t==="columns"&&c.controlType===U.ControlType.TableColumn;(u||f)&&o.indexOf(c==null?void 0:c.facetId)>-1&&fo(n,c,i.jsonSchema)}}s(kx,"importFlexChangesOfTable");function Bx(e,t){return e.facetId==="template"&&t}s(Bx,"isStandardActionFlexChange");function Ux(e,t,n,i,r,a){var f;let o=!1,l=!1,c=s((p,h)=>h.every(b=>p.includes(b)),"idElementChecker");a?(o=l=n.test(t.controlId),r&&(o=l&&i.test(t.controlId))):r&&(o=i.test(t.controlId));let u=t.controlId.split("::");return t.controlType===U.ControlType.GroupElement&&l||((f=t.facetId)==null?void 0:f.includes(U.ActionTitlePrefix))&&!r&&o||r&&c(u,r.split("::"))&&o||e.title&&c(u,e.title.split("::"))||!t.facetId&&_x.includes(t.controlType)||Bx(t,l)}s(Ux,"matchSelector");function Gx(e,t,n,i,r,a){var c;let o=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let u in n){let f=n[u];if(f.propertyId!==i||f.controlType!==((c=e.properties[f.propertyId])==null?void 0:c[U.SchemaTag.controlType]))continue;Ux(e,f,o,l,r,a)&&(t[i]=f.newValue)}}s(Gx,"importFlexChanges");function Hx(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(ne(n.logger,{severity:U.LogSeverity.Warning,message:to(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}s(Hx,"checkDeprecatedProperties");function Kx(e,t,n,i,r,a,o){let l=o!=null&&o.id?o.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,c,u;o!=null&&o.title?(c=e.manifest.path(t,{},o.title),u=Qe(n.manifest,c),Object.values(u).length===0&&(c=e.manifest.path(t,{},l),u=Qe(n.manifest,c))):(c=e.manifest.path(t,{},l),u=Qe(n.manifest,c));let f=e.manifest.import;if(f&&typeof f=="function"){let p=f(u,o==null?void 0:o.id);p!==void 0&&(i[r]=p)}else{let p=e.manifest.key||r;p in u&&(i[r]=u[p])}return Hx(u,a,n,c),u}s(Kx,"importManifestSetting");function Tt(e,t,n,i,r,a){var l,c;if(!n)return;let o=t!=null&&t.getDeprecated?t.getDeprecated():{};for(let u in n.properties||n){let f=St(t,u);if(u==="columns"||f!=null&&f.flex)if((l=r==null?void 0:r.type)!=null&&l.startsWith("ObjectPageSectionTableV2")||(c=r==null?void 0:r.type)!=null&&c.startsWith("ObjectPageSubSectionTableV2"))kx(i.flexChanges,u,t,e,r.title,r.id);else{let p=(r==null?void 0:r.title)||(r==null?void 0:r.id);Gx(n,t,i.flexChanges,u,p,a)}else f!=null&&f.manifest&&Kx(f,i.pageKeys,e,t,u,o,r)}}s(Tt,"transferSettingsAndFlexChanges");function nm(e,t,n,i){let r=yt(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=`${Kd}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${ro}${r}`;break}}return r.replace(/@/g,"")}s(nm,"getActionId");function Wx(e,t,n,i){var r;for(let a in t){let o=t[a].$ref.split(V)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(o)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],c=nm(o,a,"","");e.actions[a]=i.factory.createInstance(U.PageTypeV2.ObjectPage,l,{}),Tt(n,e[U.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},c)}}}s(Wx,"fillStandardActions");function ns(e,t,n,i,r,a){var l;n[U.PropertyName.actions]={};let o=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let c={};a&&(c.id=a);for(let u in t){let f=Xn(u),p=nm(o,f,r,a);p&&(n[U.PropertyName.actions][f]=i.factory.createInstance(U.PageTypeV2.ObjectPage,o),Tt(e,n[U.PropertyName.actions][f],e.jsonSchema.definitions[o],i,c,p)),(l=n[U.PropertyName.actions])!=null&&l[f]&&Object.keys(n[U.PropertyName.actions][f]).length===0&&delete n[U.PropertyName.actions][f]}}Wx(n,t,e,i),Object.keys(n[U.PropertyName.actions]).length===0&&delete n[U.PropertyName.actions]}s(ns,"fillActions");function Jx(e,t,n,i,r){var o;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(U.PageTypeV2.ObjectPage,"Field");let c=(o=t.title)!=null&&o.includes(U.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;Tt(e,i[t.id].form.fields[l],e.jsonSchema.definitions[U.DefinitionName.Field],r,{},c),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}s(Jx,"fillFields");function Qx(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:i=n[`ObjectPageResponsiveTable<${t.id}>`],i}s(Qx,"prepareTableSchema");function zx(e,t,n,i,r){var l,c;let a=t.title||t.id.replace("@com.sap","com.sap"),o=n&&n.sections&&n.sections[a];if(o||r.flexChanges){let u=((l=o==null?void 0:o.tableSettings)==null?void 0:l.type)||"ResponsiveTable",f=r.factory.createInstance(U.PageTypeV2.ObjectPage,`ObjectPage${u}`,{toolBar:{}});i[t.id]=r.factory.createInstance(U.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][U.PropertyName.table]=f;let p=e.jsonSchema.definitions,h=Qx(u,t,p);Tt(e,i[t.id],t.schema,r,{title:t.title}),Tt(e,i[t.id][U.PropertyName.table],h,r,t);let b=JSON.parse(JSON.stringify(p))[`Actions<${t.id}>`];if(b!=null&&b.properties){let C=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(c=t==null?void 0:t.id)==null?void 0:c.replace(/@/g,"::").replace(/::com/g,"com");ns(e,b.properties,i[t.id][U.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",C)}Object.keys(i[t.id][U.PropertyName.table].toolBar).length===0&&delete i[t.id][U.PropertyName.table].toolBar}}s(zx,"fillTableInConfig");function qx(e,t,n,i){let r=e.jsonSchema.definitions[t].properties.custom,a=r?io(r.$ref):void 0;if(a){let o={key:t.replace("@",""),target:a};or(n[t],e.manifest,i,U.PageTypeV2.ObjectPage,e.fragments,o)}}s(qx,"fillCustomColumnsInConfig");function Xx(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),o=n&&n.sections&&n.sections[a];i[t.id]=r.factory.createInstance(U.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][U.PropertyName.chart]=r.factory.createInstance(U.PageTypeV2.ObjectPage,"ObjectPageChart"),(o||r.flexChanges)&&(Tt(e,i[t.id],t.schema,r,{title:t.title}),Tt(e,i[t.id][U.PropertyName.chart],e.jsonSchema.definitions[U.DefinitionName.ObjectPageChart],r,t))}s(Xx,"fillChartSection");function Yx(e,t,n,i){var c;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(U.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&Tt(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${r}`],o=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(c=t==null?void 0:t.id)==null?void 0:c.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&ns(e,a.properties,n[t.id].form,i,"FormAction",o);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&Jx(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]}s(Yx,"fillFormSection");function tm(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(U.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Tt(e,i[t.id],t.schema,r,t);let a,o=t.schema.properties;(l=o==null?void 0:o.subsections)!=null&&l.properties?a=o.subsections.properties:a=o,im(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}s(tm,"fillSubSection");function im(e,t,n,i,r){var o;let a=e.jsonSchema.definitions;for(let l in t){let c=l.replace(/\/@/g,"::"),u={id:c,type:Mx(t[l]),schema:t[l],title:zs(t[l],e.jsonSchema)};if(u.schema.$ref&&u.type)switch(u.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{u.schema=a[`${u.type}<${l}>`],zx(e,u,n,i,r),qx(e,c,i,r.v2Page);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{u.schema=a[`${u.type}<${l}>`],Xx(e,u,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{u.schema=a[`${u.type}<${l}>`],Yx(e,u,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":{u.schema=a[`${u.type}<${l}>`],tm(e,u,n,i,r);break}}else(o=u.schema.properties)!=null&&o.subsections&&(u.schema=a[`${u.type}<${l}>`],tm(e,u,n,i,r))}}s(im,"fillSectionsInConfig");function Zx(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let o="fragmentName"in e[a]?n.factory.createInstance(U.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(U.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Tt(r,o,l,n,{id:a}),t.sections.custom.push(o)}}}s(Zx,"fillCustomSectionsInConfig");function eC(e,t){var u;let n=t.factory.createPageInstance(U.PageTypeV2.ObjectPage);Tt(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(U.PageTypeV2.ObjectPage,U.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Tt(e,n.globalTableSettings,i[U.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(U.PageTypeV2.ObjectPage,U.DefinitionName.ObjectPageHeader);let r=i[U.DefinitionName.ObjectPageHeader]?i[U.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];Tt(e,n.header,r,t);let a=i[U.DefinitionName.HeaderActions];a&&ns(e,a.properties,n.header,t,"HeaderAction"),n.footer={};let o=i[U.DefinitionName.FooterActions];o&&ns(e,o.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(U.PageTypeV2.ObjectPage,"ObjectPageLayout"),Tt(e,n.layout,i[U.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.sections={};let l=i[U.DefinitionName.Sections];if(l){let f=(u=t.v2Page.component)==null?void 0:u.settings;im(e,l.properties,f,n.sections,t)}let c=em(e.manifest,e.entitySet);return Zx(c,n,t,i,e),n}s(eC,"fillConfig");function is(e){lt();let t=lr(e);if(!t)return;let n=e.entitySet,i=[],r=Ei(t,e.entitySet,i);if(cr(r,e.logger,n),!r)return;let a=$x(e.flex,n),o=new ut;return eC(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:o})}s(is,"createObjectPageConfigV2");function as(e,t){var n,i;return(n=e.component)!=null&&n.name?Xa(vn((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}s(as,"generateId");function tC(e,t,n,i,r,a,o){e.navigation={};let l=rm(t.pages,n,i,r,a);for(let c in l){let u=l[c];o[c]=u}for(let c in t.pages){let u=as(t.pages[c],c);e.entitySet?e.navigation[u]=l[u].navigationProperty?`${e.entitySet}.${l[u].navigationProperty}`:e.entitySet:e.navigation[u]=l[u].navigationProperty?l[u].navigationProperty:u}}s(tC,"getPageConfigsAndNavigations");function rm(e,t,n,i,r,a){var l;let o={};for(let c in e){let u=e[c],f=as(u,c);if(!f)continue;let p={pageType:vn((l=u.component)==null?void 0:l.name),entitySet:u.entitySet,...u.navigationProperty&&{navigationProperty:u.navigationProperty},...u.defaultLayoutType&&{defaultLayoutType:u.defaultLayoutType}};o[f]=p;let h=Object.keys(i).find(b=>b.includes(f))||Object.keys(i).find(b=>b.includes(f.slice(0,-1)))||Object.keys(i).find(b=>b.includes(p.pageType));if(h)if(p.pageType===$e.PageTypeV2.ListReport){let b={manifest:n,flex:t,jsonSchema:i[h],fragments:r,logger:a};p.config=es(b)}else if(p.pageType===$e.PageTypeV2.AnalyticalListPage){let b={manifest:n,flex:t,jsonSchema:i[h],fragments:r,logger:a};p.config=ts(b)}else{let b={manifest:n,flex:t,jsonSchema:i[h],entitySet:p.entitySet,fragments:r,logger:a};p.config=is(b)}u.pages&&tC(p,u,t,n,i,r,o)}return o}s(rm,"getPagesAndConfigs");var jc=class jc extends zi{constructor(t){lt();let n;t.manifest[$e.ManifestSection.generic]?n=t.manifest[$e.ManifestSection.generic].pages:ne(t.logger,{severity:$e.LogSeverity.Error,message:Q.t("NOFE"),location:{path:$e.MANIFESTPATH,range:[$e.ManifestSection.generic]}}),n||ne(t.logger,{severity:$e.LogSeverity.Error,message:Q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:$e.MANIFESTPATH,range:[$e.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&as(n[i],i),a=new $n,o=qe($e.SchemaType.Application),l=t.appSchemas[o.filename];Ye(a,t.manifest,l.definitions.AppSettings,void 0),super(t.manifest,t.appSchemas,r,rm(n,t.flexChanges,t.manifest,t.appSchemas,t.fragments,t.logger),$e.FioriElementsVersion.v2,a)}};s(jc,"V2AppProvider");var rs=jc;function ya(e,t,n){var r,a;let i={};for(let o in e){let l=e[o];if((r=l.component)!=null&&r.name||ne(n,{severity:$e.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:o}),location:{path:$e.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let c=as(l,o);i[c]=l}if(t===$e.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let c=ya(l.pages,t,n);for(let u in c)i[u]=c[u]}}return i}s(ya,"getPages");var Nn=H(q());var Zn=H(q());var _c=H(Ss());var Me=H(q());var nC=["colorPalette","tabs"];function iC(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}s(iC,"createCard");function am(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),am(e,n.join("|"))}return t}s(am,"findAvailableId");function ha(e,t,n,i,r,a){i!=null&&i.properties&&Vc(e,t,n,i.properties,r,a)}s(ha,"transferManifestEntriesOVP");function Oi(e,t,n,i){return e.createInstance(Me.PageTypeV2.OverviewPage,i,n,t)}s(Oi,"assignReflectMetadataRules");function rC(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(V),r=e.appSchema.definitions[i[1]];t=Oi(e.factory,i[1],t,"CustomCard"),ha(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}s(rC,"processAnyOfDefinitionsOfOVP");function aC(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!nC.includes(i)?t[i]=(0,_c.default)(t[i]||{},r||{},{arrayMerge:Js}):t[i]=r}s(aC,"checkSyncRuleForExport");function oC(e,t,n,i,r,a){let o=e.manifest.path([...t,n]),l=Qe(i.manifest,o);if(n in Me.v2.CardSettingsType||n==="settings")l.settings=(0,_c.default)(l.settings||{},r||{},{arrayMerge:Js});else if(r!==void 0){let c=e.manifest.export;aC(c,l,a,n,r)}else l[n]!==void 0&&delete l[n]}s(oC,"transferToManifest");function sC(e,t,n,i){Object.keys(e).forEach(r=>{let a=e[r].template,o;Object.values(Me.v2.CardTemplateType).includes(a)?o=Object.keys(t.definitions).filter(l=>{var u;let c=(u=t.definitions[l].properties)==null?void 0:u.template;if(c!=null&&c.enum)return c.enum.indexOf(e[r].template)>-1;if(c!=null&&c.const)return c.const===e[r].template}):o=["CustomCard"],e[r]=Oi(n,o[0],e[r],"CustomCard"),iC(r,i.manifest[Me.ManifestSection.ovp]),ha(e[r],i,t,t.definitions[o[0]],n,[r])}),Object.keys(i.manifest[Me.ManifestSection.ovp].cards).forEach(r=>{e[r]||delete i.manifest[Me.ManifestSection.ovp].cards[r]})}s(sC,"transferCards");function lC(e,t,n){if(t==="cards")sC(e.currentObject,e.appSchema,n,e.exportResults);else{let i=jn(e.appSchema,"",e.currentObject,e.propertyList[t],t,n,Me.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let r=e.propertyList[t].$ref.split(V);e.currentObject=Oi(e.factory,t,e.currentObject,r[1]),e.pathHierarchy=[...e.pathHierarchy,t],ha(e.currentObject,e.exportResults,e.appSchema,i.targetDefinition,n,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],Vc(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],n,e.pathHierarchy)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],Vc(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy))}}s(lC,"exportOfObject");function Vc(e,t,n,i,r,a){for(let o in i){if(o==="description")continue;let l=e[o],c=St(e,o),u={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:l,configObject:e,factory:r,exportResults:t};a[a.length-1]==="anyOf"?(u.currentObject=e[a[a.length-2]],l=rC(u)):l&&typeof l=="object"&&i[o]&&lC(u,o,r),c!=null&&c.manifest&&oC(c,a,o,t,l,e)}}s(Vc,"processProperties");function cC(e,t,n,i,r,a,o){let l;t.length===0?l=["page"]:l=t;let c=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),u=Md(a,n,e.ui5Version,o,c),f=JSON.parse(JSON.stringify(e.exportResults.manifest));f["sap.app"].id=e.appId;let p=n.flex.createFlexChange(u,f);e.exportResults.flexChanges.find(b=>{let C=!1,F=JSON.parse(b);F={content:F.content,selector:F.selector};let N=JSON.parse(p);return N={content:N.content,selector:N.selector},JSON.stringify(F)===JSON.stringify(N)&&(C=!0),C})||e.exportResults.flexChanges.push(p)}s(cC,"evaluateFlexRule");function fC(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]={});else{let o=t.manifest.export;o&&typeof o=="function"?o(n,i,r,a):o!==!1&&(n[a]=i[r])}}s(fC,"exportConfigValue");function uC(e,t,n,i,r){let a=Qe(e.exportResults.manifest,t),o=n.manifest.key||i;if(r[i]!==void 0)fC(e,n,a,r,i,o);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,o):Object.prototype.hasOwnProperty.call(a,o)&&delete a[o]}Ws(e.exportResults.manifest,t)}s(uC,"evaluateManifestRule");function pC(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(Me.FacetTitlePrefix)?r.split(Me.FacetTitlePrefix)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}s(pC,"getManifestPathOfSections");function dC(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}s(dC,"getManifestPathOfTable");function gC(e,t,n,i,r){let a;return t[0]===Me.PropertyName.sections?a=pC(t,a,n,e,r):t[0]===Me.PropertyName.table?a=dC(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}s(gC,"getManifestPath");function mC(e,t,n,i,r,a,o){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)cC(e,i,t,r,a,n,o);else if(t.manifest){let c=gC(e,i,t,n,a);uC(e,c,t,o,n)}}s(mC,"evaluateExportRule");function yC(e,t,n){var o;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(o=t.config)==null?void 0:o.filter(c=>(c.tabKey===a||a===void 0&&c.tabKey===""||a&&t.sectionKey===a)&&c.extensionType===t.extensionType);if((!l||l.length===0)&&(xo(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Me.ViewTemplateType.ResponsiveTableColumnsExtension))){let c=e.replace(Me.ViewTemplateType.ResponsiveTableColumnsExtension,Me.ViewTemplateType.ResponsiveTableCellsExtension);xo(n,c,t.appId,t.exportResults.fragments),delete n[c]}}}s(yC,"deleteObsoleteColumn");function hC(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=yg(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&yC(r,e,n)}s(hC,"deleteObsoleteColumnsFromFragment");function bC(e,t,n,i,r){let a={};for(let o of e){if(!o.className||!o.fragmentName||!o.columnKey||!o.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(o.fragmentName)===!1)continue;let{path:l,viewTemplateType:c}=Co(n,i,o.tabKey||r,o.extensionType);a[l]||(a[l]={viewTemplateType:c,columns:[]}),a[l].columns.push(o)}return a}s(bC,"clusterConfigColumnsByPath");function om(e,t,n,i){let r=i?i.key:void 0,o=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in Me.v2.TableColumnExtensionTypeV2){let{path:c}=Co(e.v2Page,o,r,l);if(!c)continue;let u={path:c,exportResults:e.exportResults,entitySet:o,config:t,sectionKey:r,extensionType:l,appId:e.appId};hC(u)}if(t){let l=bC(t,n,e.v2Page,o,r);for(let c in l)El(e.exportResults,c,l[c].columns,e.appId,l[c].viewTemplateType,e.logger)}}s(om,"transferColumnExtensions");function vC(e,t,n,i,r,a){let o=[],l=n.split("|")[1];if(!t)return;for(let u of t){let f=am(o,[u.relativePosition,l,u.relatedFacet].join("|"));o.push(f)}for(let u=0;u<o.length;u++){let p=a.anyOf.find(b=>{var C;return(C=b.$ref)==null?void 0:C.includes(t[u].constructor.name)}).$ref.split(V),h=e.appSchema.definitions[p[p.length-1]];Yn(e,t[u],i,[...r,o[u]],h)}let c=Qe(e.exportResults.manifest,il());for(let u in c)Ic(u,l)&&!o.includes(u)&&delete c[u]}s(vC,"transferManifestExtensions");function TC(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Me.PropertyName.table){n=e[i-1];break}return Xe(n,t)}s(TC,"getSectionId");function xC(e,t,n,i,r,a){let o=t.propertyDefinition;!e||!(o!=null&&o.additionalProperties)||Object.keys(e).forEach(l=>{let c=jn(t.appSchema,n,e[l],o.additionalProperties,i,t.factory,t.pageType);Yn(t,c.configObject,r,[...a,i],c.targetDefinition,l)})}s(xC,"transferIndexTable");function CC(e,t,n,i,r,a){let o,l=io(e.$ref);l&&(o={target:l,key:TC(t,n)}),om(i,r==null?void 0:r.custom,a.targetDefinition,o)}s(CC,"transferCustomColumns");function SC(e,t,n,i,r,a,o){e.anyOf.forEach(l=>{let c=jn(t.appSchema,n,i,l,r,t.factory,t.pageType);c&&Yn(t,c.configObject,a,[...o,r],c.targetDefinition,c.title)})}s(SC,"handleAnyOfDefinitions");function PC(e,t,n,i,r,a,o){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")vC(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){CC(l,t,o,e,n,a);return}else a?Yn(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&SC(l,e,o,n==null?void 0:n[r],r,i,t)}s(PC,"transferComplexProperty");function Yn(e,t,n,i,r,a){let o;if(r!=null&&r.properties)for(let l in r.properties){o=t==null?void 0:t[l];let c=t&&Ad(t,l),u=c?[...n,c]:n,f=St(t,l),p=e.propertyDefinition=r.properties[l],h=e.nextDefinition=jn(e.appSchema,a,o,p,l,e.factory,e.pageType);if(mC(e,f,t,[...i],u,a,l),xC(o,e,a,l,u,i),o===void 0||typeof o=="object")PC(e,i,t,u,l,h,a);else if((p==null?void 0:p.$ref)===V+"TableCustomColumns"){om(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}s(Yn,"transferManifestEntriesAndFlexChange");function sm(e,t,n,i,r,a,o){let l=t[t.length-1],c=e.definitions[l];n[i]=Oi(r,i,n[i],l),a.push(i),wc(r,n[i],o,c.properties,e,a)}s(sm,"transferSettingsOfRef");function EC(e,t,n,i,r,a,o){if(n[t].$ref){e[t]={};let l=n[t].$ref.split(V);sm(i,l,e,t,r,a,o)}else if(t==="settings"&&n[t].anyOf){e[t]={};let c=`${V}${Zn.v2.cardTemplateSettingsMap[e.template]}`.split(V);sm(i,c,e,t,r,a,o)}}s(EC,"processPropertiesOfObject");function OC(e,t,n,i,r,a,o){let l=St(e,t);if(l!=null&&l.manifest){let c=l.manifest.path([...n,t]),u=Qe(i,c);Object.prototype.hasOwnProperty.call(u,t)&&no(l,u,t,e)}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&EC(e,t,r,a,o,n,i)}s(OC,"processOvpProperty");function wc(e,t,n,i,r,a){for(let o in i)OC(t,o,a,n,i,r,e)}s(wc,"processOvpProperties");function AC(e,t,n,i){wc(i,e,t,n.properties,n,[]),e.cards={},Object.keys(t[Zn.ManifestSection.ovp].cards).forEach(r=>{let a=t[Zn.ManifestSection.ovp].cards[r].template,o=Zn.v2.cardTemplateTypeMap[a]??"CustomCard";e.cards[r]=Oi(i,o,{},"CustomCard"),e.cards=Oi(i,o,e.cards,"CustomCard"),wc(i,e.cards[r],t,n.definitions[o].properties,n,[r])})}s(AC,"addSettings");function os(e){let t=new ut,n=t.createPageInstance(Zn.PageTypeV2.OverviewPage);return e.jsonSchema&&AC(n,e.manifest,e.jsonSchema,t),n}s(os,"createOverviewPageConfig");var Rc=class Rc extends zi{constructor(t){let n={},i=t.manifest[Nn.ManifestSection.ovp],r=new $n,a=qe(Nn.SchemaType.Application);Ye(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let o=Object.keys(t.appSchemas).find(f=>f.includes(Nn.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[o]},c={pageType:Nn.PageTypeV2.OverviewPage,config:os(l),entitySet:i.globalFilterEntitySet},u=Xa(c.pageType,c.entitySet);n[u]=c,super(t.manifest,t.appSchemas,u,n,Nn.FioriElementsVersion.v2,r,t.logger)}};s(Rc,"V2OvpProvider");var ss=Rc;var lm=require("fs"),Ai=require("path"),$c=H(q());var cm=s((e,t,n=__dirname)=>{let i=t===$c.SchemaType.Application?`${$c.SchemaType.Application}${e.toUpperCase()}.json`:`${t}Config.json`;if(n.endsWith("dist"))return(0,Ai.join)(n,"schemas",e,i);if(n.endsWith((0,Ai.join)("specification","packages","specification")))return(0,Ai.join)(n,"dist","schemas",e,i);if(n.endsWith((0,Ai.join)("src","specification")))return(0,Ai.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,Ai.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),IC=s(async e=>new Promise((t,n)=>{(0,lm.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),ls=s(async(e,t)=>{try{let n=cm(e,t,__dirname);return await IC(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function FC(e,t){let n={},i=[];switch(i=[ee.SchemaType.Application],e){case ee.TemplateType.ListReportObjectPageV2:i.push(ee.SchemaType.ListReport,ee.SchemaType.ObjectPage);break;case ee.TemplateType.AnalyticalListPageV2:i.push(ee.SchemaType.AnalyticalListPage,ee.SchemaType.ObjectPage);break;case ee.TemplateType.OverviewPageV2:i.push(ee.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=qe(r);n[a.filename]=await ls(t,r)}return n}s(FC,"getGenericSchemas");function um(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=xn(ee.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:o}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),o&&!o.qualifier&&t.Facets.push(r.name)}return t}s(um,"getAnnotationsForUi");function ba(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}s(ba,"getEntitySetByEntitySetName");function NC(e,t,n){var r;let i=ya(e.manifest[ee.ManifestSection.generic].pages,ee.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let o=i[a].entitySet;e.entitySet=ba(o,e.serviceAVT);let l=qe(ee.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||o),c=qe(ee.SchemaType.ListReport);t[l.filename]=Ta(e,n[c.filename])}}s(NC,"generateAppSchemaV2LR");function fm(e,t,n){let i=ya(e.manifest[ee.ManifestSection.generic].pages,ee.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,o=ba(a,e.serviceAVT);o||ne(e.logger,{severity:ee.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=o;let l=qe(ee.SchemaType.ObjectPage,(o==null?void 0:o.name)||a),c=qe(ee.SchemaType.ObjectPage);n[l.filename]=va(e,t[c.filename])}}s(fm,"generateObjectPageSchemasV2");function DC(e,t,n,i){var a;let r={};if(i===ee.TemplateType.ListReportObjectPageV2&&n)NC(e,r,t),fm(e,t,r);else if(i===ee.TemplateType.AnalyticalListPageV2&&n){let o=ya(e.manifest[ee.ManifestSection.generic].pages,ee.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in o){let c=o[l].entitySet;e.entitySet=ba(c,e.serviceAVT);let u=qe(ee.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||c),f=qe(ee.SchemaType.AnalyticalListPage);r[u.filename]=xa(e,t[f.filename])}fm(e,t,r)}else if(i===ee.TemplateType.OverviewPageV2){let o=qe(ee.SchemaType.OverviewPage),l=qe(ee.SchemaType.OverviewPage);r[o.filename]=Ca(t[l.filename],e.manifest)}return{...t,...r}}s(DC,"generateAppSchemasV2");async function pm(e,t,n){if(e.fioriElementsVersion===ee.FioriElementsVersion.v2){let i=await FC(n,e.fioriElementsVersion);return DC(e,i,t,n)}}s(pm,"generateAppSchemas");function LC(e){let t,n=[];switch(e.templateType){case ee.TemplateType.ListReportObjectPageV2:case ee.TemplateType.AnalyticalListPageV2:t=new rs(e);break;case ee.TemplateType.OverviewPageV2:t=new ss(e);break;default: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}s(LC,"importConfigs");function dm(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===ee.SchemaType.Application?r=`${ee.DirName.Schemas}/${ee.FileName.App[0].toUpperCase()}${ee.FileName.App.slice(1)}`:r=`${ee.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}s(dm,"getFileList");async function Mc(e){var C,F;lt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:o}=e;new Nr().doesUi5VersionFitDistTags((F=(C=t["sap.ui5"])==null?void 0:C.dependencies)==null?void 0:F.minUI5Version,i);let c=Hs(t),u=Pr(n,i),f=um(u),p=Ks(t,c,i),b=await pm({templateType:p,manifest:t,serviceAVT:u,fragments:r,views:a,fioriElementsVersion:c,logger:i,featureToggles:o},f,p);return dm(b)}s(Mc,"importProjectSchema");async function kc(e){var E,I;lt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:o,featureToggles:l}=e;new Nr().doesUi5VersionFitDistTags((I=(E=t["sap.ui5"])==null?void 0:E.dependencies)==null?void 0:I.minUI5Version,i);let u=Hs(t),f=Pr(n,i),p=Ks(t,u,i),h={templateType:p,manifest:t,serviceAVT:f,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:l},b=um(f),C=await pm(h,b,p),N=LC({manifest:t,flexChanges:o,appSchemas:C,templateType:p,logger:i,serviceAVT:f,fragments:r,views:a});return dm(C,N)}s(kc,"importProjectSchemaAndConfig");var jC=["header","sections","footer"];function VC(e,t,n,i){t.properties[n][$.SchemaTag.artifactType]=$.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=$.ControlType.Section;break;case"ObjectPageSubSectionV2":r=$.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=$.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=$.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=$.ControlType.SmartTable;break}r&&(ge(e,t,n),t.properties[n][$.SchemaTag.controlType]=r)}s(VC,"addFlexChangeForSection");function _C(e,t,n,i,r){return(a,o)=>{if(!a.Determining&&a.$Type===Ii.UIAnnotationTypes.DataFieldForAction){let{actionName:l,actionId:c,namespace:u}=Ys(a,r);if(!c)return;let f=a.Label||l,p=`HeaderAction<${Re(c)}>`;t.definitions[p]=JSON.parse(JSON.stringify(t.definitions.HeaderAction));let h=n.fullyQualifiedName.replace(`@${Ii.UIAnnotationTerms.Identification}`,`/@${Ii.UIAnnotationTerms.Identification}`);t.definitions[p][$.SchemaTag.annotationPath]=`/${h}/${o}`,t.definitions[p][$.SchemaTag.actionType]=$.ActionType.Annotation,t.definitions[p].description=f,t.definitions[p][$.SchemaTag.keys]=[{name:$.SchemaKeyName.action,value:l}],u&&(t.definitions[p][$.SchemaTag.target]=u),i.properties[c]={$ref:`${V}${p}`}}}}s(_C,"addHeaderActionCallBackV2");function wC(e,t,n,i,r,a,o,l){let c,u;if(a.ID&&a.Label?c=a.ID+a.Label.replace(/\s+/g,""):a.ID?c=a.ID:a.Label&&(c=a.Label.replace(/\s+/g,"")),c?u=`${$.DefinitionName.CustomColumns}<${n}><${o}><${c}>`:u=`${$.DefinitionName.CustomColumns}<${n}><${o}>`,e.definitions[u])return u;let f=`${$.DefinitionName.CustomColumn}<${n}>`,p=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn));e.definitions[f]=p;let h=[],b=r==null?void 0:r.entityTypes.find(F=>F.name===i),C=Ei(t[$.ManifestSection.generic].pages,n,h);return Wi(e,b,C,t,l,u,f,a.ID),u}s(wC,"ensureCustomColumnDefinitionExists");function fs(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&VC(e,t,"visible",n)}s(fs,"addAppSchemaDefinition");function RC(e,t,n){e.properties[t]={$ref:`${V}${n}`}}s(RC,"addSectionReference");function cs(e,t,n,i){let r=Re(`${e}<${t}>`);i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e])),i.definitions[r].properties.columns.$ref=V+t,i.definitions[r].properties.toolBar.$ref=`${V}ObjectPageToolBar<${t}>`,i.definitions[r][$.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=$.FacetTitlePrefix+n.ID,i.definitions[r][$.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=$.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${V}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=`${V}QuickVariant<${t}>`,co(n.entityType,i,`QuickVariant<${t}>`)}s(cs,"addTableDefinition");function $C(e,t,n,i,r,a){if(i.base!==$.FacetBase.LineItem||!t)return;let o=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=Bi(n,i,t);let c=n.definitions[l];fs(n,c,a,"ObjectPageSectionTableV2"),c.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[$.PropertyName.table])),c.properties.table.anyOf=[{$ref:`${V}ObjectPageResponsiveTable<${t}>`},{$ref:`${V}ObjectPageAnalyticalTable<${t}>`},{$ref:`${V}ObjectPageGridTable<${t}>`},{$ref:`${V}ObjectPageTreeTable<${t}>`}],c[$.SchemaTag.annotationPath]=i.annotationPath,Or(i,c,t),cs("ObjectPageResponsiveTable",t,i,n),cs("ObjectPageGridTable",t,i,n),cs("ObjectPageTreeTable",t,i,n),cs("ObjectPageAnalyticalTable",t,i,n);let u,f=sg(i,e.serviceAVT);f&&(u=wC(n,e.manifest,f.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let p in r)r[p].base===$.FacetBase.LineItem&&p.includes(o)&&Ki(n,r[p].target,r[p].entityType,p,u)}s($C,"handleLineItem");function MC(e,t,n,i,r){e.definitions[t]=Bi(e,n,i);let a=e.definitions[t];fs(e,a,r,"ObjectPageSubSectionV2"),a.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},a.properties.subsections[$.SchemaTag.isViewNode]=!0}s(MC,"handleSubSection");function kC(e,t,n,i,r){e.definitions[t]=Bi(e,n,i);let a=e.definitions[t];fs(e,a,r,"ObjectPageSectionChartV2")}s(kC,"handleSectionChart");function BC(e,t,n,i,r){e.definitions[t]=Bi(e,n,i);let a=e.definitions[t];return fs(e,a,r,"ObjectPageSectionFormV2"),a[$.SchemaTag.annotationPath]=n.annotationPath,a[$.SchemaTag.isViewNode]=!0,a}s(BC,"handleFormSection");function UC(e,t){let n=new Map([[$.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[$.FacetBase.LineItem,"ObjectPageSectionTableV2"],[$.FacetBase.Chart,"ObjectPageSectionChartV2"],[$.FacetBase.Address,"ObjectPageSectionAddressV2"],[$.FacetBase.Contact,"ObjectPageSectionContactV2"],[$.FacetBase.Form,"ObjectPageSectionFormV2"],[$.FacetBase.Identification,"ObjectPageSectionFormV2"]]),i=new Map([[$.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[$.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[$.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[$.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[$.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[$.FacetBase.Form,"ObjectPageSubSectionFormV2"],[$.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return t?i.get(e):n.get(e)}s(UC,"getSectionType");function GC(e,t,n){let i=t;return n===("ObjectPageSectionV2"||"ObjectPageSubSectionV2")&&(i=i.replace(`@${Ii.UIAnnotationTerms.Facets}`,e.base)),`${i}`}s(GC,"getReferenceKey");function gm(e,t,n,i,r,a=!1){let o=t[n],l=UC(o.base,a),c=GC(o,n,l),u=`${l}<${c}>`;switch(RC(i,c,u),l){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":{a=!0,MC(r,u,o,n,l);let f=r.definitions[u].properties.subsections;for(let p in o.facets)gm(e,o.facets,p,f,r,a);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{$C(e,n,r,o,t,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{kC(r,u,o,n,l);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let f=BC(r,u,o,n,l);ng($.SectionType.Section,o,f,r,$.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{Zs(o,n,i,r,$.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{Zs(o,n,i,r,$.SectionType.Section,$.SectionType.SubSection,"V2");break}default:i.properties[n]=Bi(r,o,n)}}s(gm,"addSection");function mm(e,t,n){var o,l,c,u;let i=t.definitions[$.DefinitionName.Sections];if(i[$.SchemaTag.isViewNode]=!0,(o=e.entitySet)!=null&&o.entityType&&(i[$.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Ii.UIAnnotationTerms.Facets}`),!n)return;let r=hd((l=e.entitySet)==null?void 0:l.entityType,e.serviceAVT,$.FioriElementsVersion.v2,e.logger);if(!r||Object.keys(r).length===0)return;for(let f in n){let p=n[f];if((u=(c=e.entitySet)==null?void 0:c.name)!=null&&u.includes(p.entitySet))for(let h in r)gm(e,r,h,i,t);else mm(e,t,p.pages)}let a=t.definitions.CustomSections;for(let f in a.properties)i.properties[f]=a.properties[f]}s(mm,"addSections");function HC(e,t,n){og(e,t),ag(e,t,n,_C,!0)}s(HC,"addHeader");function KC(e,t,n,i){let r=bd(t,n,i,void 0,!0);r&&ug(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}s(KC,"addRelatedFacetKeysType");function va(e,t){var o;lt();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[$.PropertyName.sections]={$ref:V+"Sections"};let r=(o=e.entitySet)==null?void 0:o.entityType;e.entityType=r;let a=e.manifest[$.ManifestSection.generic].pages;return a?(HC(n,r,e.serviceAVT),n.definitions[$.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},mm(e,n,a),KC(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[$.SchemaTag.isViewNode]=!0):delete n.properties[$.PropertyName.sections]),rg(n,e,$.FioriElementsVersion.v2,a),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTable,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,Ui(n,jC),n):(ne(e.logger,{severity:$.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:$.MANIFESTPATH,range:[$.ManifestSection.generic]}}),n)}s(va,"generateObjectPageSchemaV2");var Ot=H(q());var WC=["filterBar","table","footer"];function Bc(e,t,n,i){co(e,n,"QuickVariant"),cg(n,"QuickVariantX",t),fg(i,n,"QuickVariantX")}s(Bc,"addEnumForVariantPaths");function Ta(e,t){var f,p,h,b,C,F,N;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=V+Hi,n.properties.table.anyOf[1].$ref=V+Ar,n.properties.table.anyOf[2].$ref=V+Ir,n.properties.table.anyOf[3].$ref=V+Fr;let i=JSON.parse(JSON.stringify(n.definitions.ResponsiveTable)),r=JSON.parse(JSON.stringify(n.definitions.TreeTable)),a=JSON.parse(JSON.stringify(n.definitions.AnalyticalTable)),o=JSON.parse(JSON.stringify(n.definitions.GridTable)),l={$ref:V+Ot.DefinitionName.LineItems};i.properties.columns=l,r.properties.columns=l,a.properties.columns=l,o.properties.columns=l;let c=V+Ot.DefinitionName.ToolBarLR;n.definitions[Hi]=i,n.definitions[Hi].properties.toolBar.$ref=c,n.definitions[Ar]=r,n.definitions[Ar].properties.toolBar.$ref=c,n.definitions[Ir]=a,n.definitions[Ir].properties.toolBar.$ref=c,n.definitions[Fr]=o,n.definitions[Fr].properties.toolBar.$ref=c;let u=(f=e.entitySet)==null?void 0:f.entityType;if(!u)(p=e.entitySet)!=null&&p.name&&ne(e.logger,{severity:Ot.LogSeverity.Error,message:Q.t("NOENTITYTYPE4SET",{entitySetName:(h=e.entitySet)==null?void 0:h.name})});else{Ji(n);let E=(C=(b=u==null?void 0:u.annotations)==null?void 0:b.UI)==null?void 0:C.LineItem;E&&Hd.forEach(oe=>{n.definitions[oe][Ot.SchemaTag.annotationPath]=Tn(u==null?void 0:u.fullyQualifiedName,E.term,E.qualifier)}),Ki(n,E,u);let I=(N=(F=u==null?void 0:u.annotations)==null?void 0:F.UI)==null?void 0:N.SelectionFields;oo(n,I,u);let k=[],w=sr(e.manifest[Ot.ManifestSection.generic].pages,k);if(!w)return ne(e.logger,{severity:Ot.LogSeverity.Error,message:Q.t("NOLR"),location:{path:Ot.MANIFESTPATH,range:[Ot.ManifestSection.generic]}}),n;Wi(n,u,w,e.manifest,e.fragments),Bc(u,e.entitySet,n,e.serviceAVT),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 Ui(n,WC),n}s(Ta,"generateListReportSchemaV2");var Ee=H(q());var JC=["filterBar","keyPerformanceIndicators","chart","table","footer"];function QC(e,t){var c,u;let n=(u=(c=e==null?void 0:e.component)==null?void 0:c.settings)==null?void 0:u.qualifier,i=t[`SelectionPresentationVariant#${n}`],r=i!==void 0?i.PresentationVariant:void 0,a=r!==void 0?r.Visualizations:[],o,l;for(let f in a){let p=a[f];if(p.value.includes("@com.sap.vocabularies.UI.v1.LineItem")){let h=p.value.replace(Ee.UIVOCABULARYALPHADOT,"");o=t[h]}else if(p.value.includes("@com.sap.vocabularies.UI.v1.Chart")){let h=p.value.replace(Ee.UIVOCABULARYALPHADOT,"");l=t[h]}}return{lineItem:o,chart:l}}s(QC,"getVisualizations");function zC(e,t){let n=e.definitions[Ee.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Ee.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}s(zC,"addChart");function xa(e,t){var l,c,u,f,p;let n=JSON.parse(JSON.stringify(t));n.properties[Ee.PropertyName.table].anyOf[0].$ref=V+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${V}${Ee.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${V}${Ee.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[Ee.PropertyName.table].anyOf[1].$ref=`${V}ALPGridTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));r.properties.columns.$ref=`${V}${Ee.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${V}${Ee.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=r,n.properties[Ee.PropertyName.table].anyOf[2].$ref=`${V}ALPAnalyticalTable<LineItems>`;let a=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));a.properties.columns.$ref=`${V}${Ee.DefinitionName.LineItems}`,a.properties.toolBar.$ref=`${V}${Ee.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=a,qd(n.definitions.TableColumnExtensionTypeV2.enum,[Ee.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let o=(l=e.entitySet)==null?void 0:l.entityType;if(!o)ne(e.logger,{severity:Ee.LogSeverity.Error,message:Q.t("NOENTITYTYPE4SET",{entitySetName:(c=e.entitySet)==null?void 0:c.name})});else{Ji(n);let h=[],b=fr(e.manifest[Ee.ManifestSection.generic].pages,h,e.logger),C=(u=o==null?void 0:o.annotations)==null?void 0:u.UI,{lineItem:F,chart:N}=QC(b,C),E=F||C.LineItem,I=N||C.Chart;Ki(n,E,o),I&&zC(n,I);let k=(p=(f=o==null?void 0:o.annotations)==null?void 0:f.UI)==null?void 0:p.SelectionFields;if(oo(n,k,o),!b)return ne(e.logger,{severity:Ee.LogSeverity.Error,message:Q.t("NOLR"),location:{path:Ee.MANIFESTPATH,range:[Ee.ManifestSection.generic]}}),n;Wi(n,o,b,e.manifest,e.fragments),Bc(o,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 Ui(n,JC),n}s(xa,"generateAnalyticalListReportSchemaV2");function qC(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]})}s(qC,"getCardDefinitionNames");function XC(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(c=>i.includes(r[c].dataSource)));let o=e.definitions;o.CardModel={type:"string"},ci(a,o.CardModel);let l=qC(e);for(let c of l){let u=o[c].properties.model;delete u.type,u.$ref=V+"CardModel"}}s(XC,"addModelsEnum");function ym(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},XC(n,t),n}s(ym,"generateOverviewPageSchemaV2");var ei=H(q());function Uc(e,t,n,i,r,a){lt();let o=Pr(e,t),l={templateType:a,fioriElementsVersion:ei.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:o,logger:t};return l.entitySet=ba(r,l.serviceAVT),l.entitySet||ne(l.logger,{severity:ei.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}s(Uc,"prepareGenerationV2");function Gc(e,t,n,i,r,a){let o=Uc(n,a,i,r,t,ei.TemplateType.ListReportObjectPageV2);return va(o,e)}s(Gc,"generateObjectPageInterfaceV2");function Hc(e,t,n,i,r,a){let o=Uc(n,a,i,r,t,ei.TemplateType.ListReportObjectPageV2);return Ta(o,e)}s(Hc,"generateListReportInterfaceV2");function Kc(e,t,n,i,r,a){let o=Uc(n,a,i,r,t,ei.TemplateType.AnalyticalListPageV2);return xa(o,e)}s(Kc,"generateAnalyticalListPageInterfaceV2");function Ca(e,t){return ym(e,t)}s(Ca,"generateOVPInterfaceV2");var ue=H(q());var Sa=s(e=>({flexChanges:[],manifest:{[ue.ManifestSection.generic]:{pages:{}}},fragments:e||[]}),"getDefaultExportResult");function hm(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===ue.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(ue.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(ue.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}s(hm,"getClassesForSingleSection");function bm(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],hm(n,i,t),bm(n,t)}}s(bm,"getSubsectionClasses");function YC(e,t,n){let i;for(let r in e.sections)i=t.sections[r],hm(i,r,n),bm(i,n)}s(YC,"getExportClassesForSections");function ZC(e,t){let n=e.page.config,i=e.page.entitySet,r=Sa(e.fragments),a=new ut,o=a.createPageInstance(ue.PageTypeV2.ListReport,n),l=eo(o),c=`${e.appId}::${l.id}::${i}--`,u=[],f=sr(e.manifest[ue.ManifestSection.generic].pages,u);if(!f){ne(e.logger,{severity:ue.LogSeverity.Error,message:Q.t("NOLR"),location:{path:ue.MANIFESTPATH,range:[ue.ManifestSection.generic]}});return}if(!f.component){ne(e.logger,{severity:ue.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:ue.PageTypeV2.ListReport}),location:{path:ue.MANIFESTPATH}});return}if(f.component.settings||(f.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),n&&Object.keys(n).length!==0){let p={v2Page:f,exportResults:r,appId:e.appId,baseId:c,appSchema:e.jsonSchema,ui5Version:t,factory:a,pageKeys:u,pageType:ue.PageTypeV2.ListReport,logger:e.logger};Yn(p,o,[],[],e.jsonSchema)}return r}s(ZC,"exportListReportPage");function eS(e,t){let n=e.page.config,i=e.page.entitySet,r=Sa(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=new ut,o=a.createPageInstance(ue.PageTypeV2.AnalyticalListPage,n),l=eo(o),c=`${e.appId}::${l.id}::${i}--`,u=[],f=fr(e.manifest[ue.ManifestSection.generic].pages,u,e.logger);if(f){if(f.component.settings||(f.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),n&&Object.keys(n).length!==0){let p={v2Page:f,exportResults:r,appId:e.appId,baseId:c,appSchema:e.jsonSchema,ui5Version:t,factory:a,pageKeys:u,pageType:ue.PageTypeV2.AnalyticalListPage,logger:e.logger};Yn(p,o,[],[],e.jsonSchema)}return r}}s(eS,"exportAnalyticalListPage");function tS(e,t){let n=e.page.config,i=e.page.entitySet,r=Sa(e.fragments),a=new ut,o=a.createPageInstance(ue.PageTypeV2.ObjectPage,n);if(r.manifest=JSON.parse(JSON.stringify(e.manifest)),n){let l=eo(o),c=`${e.appId}::${l.id}::${i}--`,u=[],f=Ei(e.manifest[ue.ManifestSection.generic].pages,i,u);if(!f)return r;if(n.sections&&YC(n,o,a),Object.keys(n).length!==0){let p={v2Page:f,exportResults:r,appId:e.appId,baseId:c,appSchema:e.jsonSchema,ui5Version:t,factory:a,pageKeys:u,pageType:ue.PageTypeV2.ObjectPage,logger:e.logger};Yn(p,o,[],[],e.jsonSchema)}}return r}s(tS,"exportObjectPage");var nS=s(e=>{let t=Sa();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new ut,i=n.createPageInstance(ue.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&ha(i,t,e.jsonSchema,e.jsonSchema,n,[]),t},"exportOverviewPage"),iS=s((e,t,n)=>{var o;let i=Sa();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new uo,e);r.settings=Object.assign(new $n,e.settings);for(let l in n.definitions.AppSettings.properties){let c=St(r.settings,l);if(c&&c.manifest){let u=c.manifest.path(),f=Qe(i.manifest,u);e.settings&&e.settings[l]!==void 0?f[l]=e.settings[l]:delete f[l]}}let a=(o=i.manifest[ue.ManifestSection.generic])==null?void 0:o.pages;return a&&e.pages&&nl(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function vm(e,t){if(e[ue.SchemaType.ListReport])return ZC(e[ue.SchemaType.ListReport],t);if(e[ue.SchemaType.ObjectPage])return tS(e[ue.SchemaType.ObjectPage],t);if(e[ue.SchemaType.OverviewPage])return nS(e[ue.SchemaType.OverviewPage]);if(e[ue.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ue.SchemaType.Application];return iS(n,i,r)}else if(e[ue.SchemaType.AnalyticalListPage])return eS(e[ue.SchemaType.AnalyticalListPage],t)}s(vm,"exportPageV2");function rS(e){let t;if(e[we.FioriElementsVersion.v2]){let n=e[we.FioriElementsVersion.v2];if(n[we.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:o,fragments:l,logger:c}=n[we.SchemaType.ListReport];t=Hc(i,r,a,o,l,c)}else if(n[we.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:o,fragments:l,logger:c}=n[we.SchemaType.ObjectPage];t=Gc(i,r,a,o,l,c)}else if(n[we.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[we.SchemaType.OverviewPage];t=Ca(i,r)}else if(n[we.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:o,fragments:l,logger:c}=n[we.SchemaType.AnalyticalListPage];t=Kc(i,r,a,o,l,c)}}return t}s(rS,"generateSchema");function aS(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[we.FioriElementsVersion.v2]){let i=e[we.FioriElementsVersion.v2];t=vm(i,n)}return t}s(aS,"exportConfig");function oS(e){let t;if(e[we.FioriElementsVersion.v2]){let n=e[we.FioriElementsVersion.v2];n[we.SchemaType.ListReport]?t=es(n[we.SchemaType.ListReport]):n[we.SchemaType.ObjectPage]?t=is(n[we.SchemaType.ObjectPage]):n[we.SchemaType.OverviewPage]?t=os(n[we.SchemaType.OverviewPage]):n[we.SchemaType.AnalyticalListPage]&&(t=ts(n[we.SchemaType.AnalyticalListPage]))}return t}s(oS,"importConfig");async function sS(e){return kc(e)}s(sS,"importProject");async function lS(e){return Mc(e)}s(lS,"importProjectSchema");function cS(){return{version:"13"}}s(cS,"getApiVersion");var Rt=require("path"),ti=require("fs");var ur=s(async e=>new Promise((t,n)=>{(0,ti.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),fS=s(async e=>JSON.parse(await ur(e)),"readJSON"),Wc=s(async e=>new Promise((t,n)=>{(0,ti.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),uS=s(async e=>new Promise(t=>{(0,ti.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),Tm=s(async e=>new Promise(t=>{(0,ti.exists)(e,n=>{t(n)})}),"resourceExists"),pS=s(async e=>fS((0,Rt.join)(e,"manifest.json")),"getManifest"),xm=s(async e=>{let t=[],n=(0,Rt.join)(e,"changes");if(!await Tm(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await Wc(n);for(let a of r)i.some(o=>a.endsWith(o))&&t.push(await ur((0,Rt.join)(n,a)));return t},"getChanges"),dS=s(async e=>{let t=[],n=(0,Rt.join)(e,"ext","fragments");if(!await Tm(n))return t;let i=await Wc(n);for(let r of i){let a=(0,Rt.join)(n,r),o=await ur(a);t.push({dataSourceUri:a,fileContent:o})}return t},"getFragments"),gS=s(async(e,t)=>{var r,a,o,l,c,u,f,p;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((o=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&o.localUri){let h=(0,Rt.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:h,fileContent:await ur(h)})}if((c=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&c.annotations){for(let h of i.mainService.settings.annotations)if((f=(u=i[h])==null?void 0:u.settings)!=null&&f.localUri){let b=(0,Rt.join)(t,i[h].settings.localUri);n.push({dataSourceUri:b,fileContent:await ur(b)})}}if(n.length===0)for(let h in i){let b=i[h];if((b==null?void 0:b.type)==="ODataAnnotation"&&((p=b==null?void 0:b.settings)!=null&&p.localUri)){let C=(0,Rt.join)(t,b.settings.localUri);n.push({dataSourceUri:C,fileContent:await ur(C)})}}return n},"getAnnotations"),mS=s(async e=>{let t=(0,Rt.basename)(e),n=(0,Rt.join)(e,"webapp"),i=await pS(n),r=await gS(i,n),a=await xm(n),o=await dS(n);return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:o}},"getProject");ii(ni,H(q()),module.exports);0&&(module.exports={exportConfig,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,readDirectory});
|
|
89
|
+
`}),Yg(Q)}s(lt,"initI18n");var Ce=H(q());function Ei(e,t,n){var r;let i;for(let a in e){let o=e[a];if(vn((r=o.component)==null?void 0:r.name)===Ce.PageTypeV2.ObjectPage&&o.entitySet===t)return n.unshift(a),o;if(o.pages&&(i=Ei(o.pages,t,n),i))return n.unshift(a),i}}s(Ei,"findObjectPageV2");function sr(e,t){var n;for(let i in e){let r=e[i];if(vn((n=r.component)==null?void 0:n.name)===Ce.PageTypeV2.ListReport)return t.push(i),r}}s(sr,"findListReportPageV2");function lr(e){if(!e.manifest[Ce.ManifestSection.generic]){ne(e.logger,{severity:Ce.LogSeverity.Error,message:Q.t("NOFE"),location:{path:Ce.MANIFESTPATH,range:[Ce.ManifestSection.generic]}});return}let t=e.manifest[Ce.ManifestSection.generic].pages;if(!t){ne(e.logger,{severity:Ce.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:Ce.MANIFESTPATH,range:[Ce.ManifestSection.generic]}});return}return t}s(lr,"getV2Pages");function cr(e,t,n){var i;if(!e){ne(t,{severity:Ce.LogSeverity.Error,message:Q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:Ce.MANIFESTPATH,range:[Ce.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;ne(t,{severity:Ce.LogSeverity.Error,message:Q.t("NOENTITYSET",{pageName:r}),location:{path:Ce.MANIFESTPATH,range:[Ce.ManifestSection.generic]}})}}s(cr,"checkV2Page");function fr(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),vn((i=a.component)==null?void 0:i.name)===Ce.PageTypeV2.AnalyticalListPage)return a}ne(n,{severity:Ce.LogSeverity.Error,message:Q.t("NOALP"),location:{path:Ce.MANIFESTPATH,range:[Ce.ManifestSection.generic]}})}s(fr,"findAnalyticalListPage");function Ic(e,t){let n=e.split("|");return Ce.v2.SectionPosition[n[0]]&&n[1]===t}s(Ic,"isAssociatedCustomSection");function em(e,t){let n=Qe(e,`sap.ui5/extends/extensions/${Ce.v2.SAPUI5_VIEW_EXTENSION}/${Ce.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)Ic(r,t)&&(i[r]=n[r]);return i}s(em,"findCustomSectionExtensions");function Cx(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}}s(Cx,"removeEmptySettingsOfFooter");function Sx(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}}s(Sx,"removeEmptySettingsOfFilterBar");function Px(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}}s(Px,"removeEmptySettingsOfToolBar");function Xo(e){Px(e),Sx(e),Cx(e)}s(Xo,"removeEmptySettings");var Nc={};Aa(Nc,{AnalyticalListPage:()=>wt,ListReport:()=>Jt,ObjectPage:()=>ct,OverviewPage:()=>je});var Yo=H(q());var wt=class{};s(wt,"AnalyticalListPage"),g([m({flex:{controlId:eo,controlType:()=>Yo.ControlType.DynamicPage,createFlexChange:R}})],wt.prototype,"fitContent",2),g([Je("table")],wt.prototype,"table",2),g([Je("template::SmartFilterBar")],wt.prototype,"filterBar",2),g([Je("analyticalListPageChart")],wt.prototype,"chart",2),g([Je("analyticalListFooter")],wt.prototype,"footer",2),wt=g([Vn({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Yo.v2.FE_TEMPLATE_V2_ALP})],wt);var ma=H(q());var Jt=class{};s(Jt,"ListReport"),g([m({flex:{controlId:eo,controlType:()=>ma.ControlType.DynamicPage,createFlexChange:R}})],Jt.prototype,"fitContent",2),g([Je("listReportFilter")],Jt.prototype,"filterBar",2),g([Je("listReport")],Jt.prototype,"table",2),g([Je("listReportFooter")],Jt.prototype,"footer",2),Jt=g([Vn({id:ma.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:ma.v2.FE_TEMPLATE_V2_LIST_REPORT})],Jt);var Fc=H(q());var ct=class{};s(ct,"ObjectPage"),g([m({manifest:{path:t=>Ht(t)}}),L({since:"1.52.0"})],ct.prototype,"showConfirmationOnDraftActivate",2),g([m({manifest:{path:t=>Ht(t)}}),L({since:"1.52.1"})],ct.prototype,"hideChevronForUnauthorizedExtNav",2),g([m({manifest:{path:t=>Ht(t)}}),L({since:"1.48.0"})],ct.prototype,"allowDeepLinking",2),g([m({manifest:{path:t=>Ht(t)}}),L({since:"1.52.0"})],ct.prototype,"navToListOnSave",2),g([Je("header")],ct.prototype,"header",2),g([Je("sections")],ct.prototype,"sections",2),g([Je("layout")],ct.prototype,"layout",2),g([m({manifest:{path:t=>Ht(t),import:t=>{if("tableSettings"in t)return t.tableSettings},key:"tableSettings",delete:Cd}}),L({since:"1.71.0"})],ct.prototype,"globalTableSettings",2),ct=g([Vn({id:Fc.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:Fc.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ct);var je=class{};s(je,"OverviewPage"),g([m({manifest:{path:()=>Ue()}})],je.prototype,"globalFilterModel",2),g([m({manifest:{path:()=>Ue()}})],je.prototype,"globalFilterEntityType",2),g([m({manifest:{path:()=>Ue()}})],je.prototype,"globalFilterEntitySet",2),g([m({manifest:{path:()=>Ue()}})],je.prototype,"showBasicSearch",2),g([m({manifest:{path:()=>Ue()}})],je.prototype,"disableErrorPage",2),g([m({manifest:{path:()=>Ue()}})],je.prototype,"smartVariantRequired",2),g([m({manifest:{path:()=>Ue()}})],je.prototype,"bHeaderExpanded",2),g([m({manifest:{path:()=>Ue()}})],je.prototype,"containerLayout",2),g([m({manifest:{path:()=>Ue()}})],je.prototype,"showDateInRelativeFormat",2),g([m({manifest:{path:()=>Ue()}})],je.prototype,"disableTableCardFlexibility",2),g([m({manifest:{path:()=>Ue()}})],je.prototype,"enableLiveFilter",2),g([m({manifest:{path:()=>Ue()}})],je.prototype,"enableLazyRendering",2),g([m({manifest:{path:()=>Ue()}})],je.prototype,"refreshStrategyOnAppRestore",2),g([m({manifest:{path:()=>Ue()}})],je.prototype,"considerAnalyticalParameters",2),g([m({manifest:{path:()=>Ue()}})],je.prototype,"refreshIntervalInMinutes",2),g([m({manifest:{path:()=>Ue()}})],je.prototype,"useDateRangeType",2),g([m({manifest:{path:()=>Ue()}})],je.prototype,"dataLoadSettings",2),g([m({manifest:{path:()=>Ue()}})],je.prototype,"resizableLayout",2),je=g([Vn({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],je);var Dc=class Dc{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)}};s(Dc,"MetadataFactory");var Zo=Dc;var ft=H(q());var Ex={},Ox={Table:pi,ResponsiveTableWithMultiSelect:pi,ResponsiveTableWithInlineDelete:pi},Ax={[ft.v2.CardSettingsType.listCardSettings]:$r,[ft.v2.CardSettingsType.analyticalCardSettings]:Mr,[ft.v2.CardSettingsType.stackCardSettings]:kr,[ft.v2.CardSettingsType.linkListCardSettings]:Br,[ft.v2.CardSettingsType.tableCardSettings]:Ur},Ix={[ft.SAPUI5_VIEW_CLASS]:ca,[ft.SAPUI5_FRAGMENT_CLASS]:la,Table:Pi,ObjectPageResponsiveTableWithMultiSelect:Pi,ObjectPageResponsiveTableWithInlineDelete:Pi},Fx={[ft.PageTypeV2.AnalyticalListPage]:Ex,[ft.PageTypeV2.ListReport]:Ox,[ft.PageTypeV2.ObjectPage]:Ix,[ft.PageTypeV2.OverviewPage]:Ax},Lc=class Lc extends Zo{constructor(){super(Ec,Nc,Fx)}};s(Lc,"MetadataInstanceFactoryV2");var ut=Lc;function Nx(e,t,n,i,r){e.filterBar=t.createInstance(_e.PageTypeV2.ListReport,_e.DefinitionName.ListReportFilterBar,e.filterBar),Ye(e.filterBar,n.manifest,i[_e.DefinitionName.ListReportFilterBar],r,n.logger)}s(Nx,"importFilterBar");function Dx(e,t,n,i,r){var o;let a;e?a=i.jsonSchema.definitions[e+"<LineItems>"]:a=i.jsonSchema.definitions[Hi],Ye(n.table,i.manifest,a,r,i.logger),(!((o=t.LineItems)!=null&&o.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&ne(i.logger,{severity:_e.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}s(Dx,"importTable");function Lx(e,t,n,i){let r=e.jsonSchema.definitions,a=zo(e.manifest,i);if(t.table=n.createInstance(_e.PageTypeV2.ListReport,a,t.table),qo(t,n,r),Dx(a,r,t,e,i),t.table.toolBar=n.createInstance(_e.PageTypeV2.ListReport,_e.DefinitionName.ToolBar,{actions:{}}),Ye(t.table.toolBar,e.manifest,r[_e.DefinitionName.ToolBar],i,e.logger),r[_e.DefinitionName.ActionsLR])for(let l in r[_e.DefinitionName.ActionsLR].properties){let c=Xn(l);t.table.toolBar.actions[c]=n.createInstance(_e.PageTypeV2.ListReport,_e.DefinitionName.Action),Ye(t.table.toolBar.actions[c],e.manifest,r[_e.DefinitionName.Action],i,e.logger)}Nx(t,n,e,r,i),t.footer={actions:{}};let o=r[_e.DefinitionName.FooterActionsLR];if(o)for(let l in o.properties){let c=Xn(l);t.footer.actions[c]=n.createInstance(_e.PageTypeV2.ListReport,_e.DefinitionName.FooterAction),Ye(t.footer.actions[c],e.manifest,r[_e.DefinitionName.Action],i,e.logger)}}s(Lx,"addSettings");function es(e){if(lt(),!lr(e))return;let n=new ut,i=n.createPageInstance(_e.PageTypeV2.ListReport),r=[],a=sr(e.manifest[_e.ManifestSection.generic].pages,r);if(cr(a,e.logger,a==null?void 0:a.entitySet),!!a)return Lx(e,i,n,r[0]),e.flex.forEach(o=>{_n(o)&&Qo(i,o,e.jsonSchema,e.logger)}),or(i,e.manifest,a,_e.PageTypeV2.ListReport,e.fragments),Xo(i),i}s(es,"createListReportConfig");var Ie=H(q());function jx(e,t,n,i){var c,u;let r=zo(e.manifest,i),a=e.jsonSchema.definitions;if(qo(t,n,a),t.table=n.createInstance(Ie.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table),Ye(t.table,e.manifest,a[`ALP${r}<LineItems>`],i,e.logger),t.table.toolBar=n.createInstance(Ie.PageTypeV2.AnalyticalListPage,Ie.DefinitionName.ToolBar,{actions:{}}),Ye(t.table.toolBar,e.manifest,a[Ie.DefinitionName.ToolBar],i,e.logger),a[Ie.DefinitionName.ActionsLR])for(let f in a[Ie.DefinitionName.ActionsLR].properties){let p=Xn(f);t.table.toolBar.actions[p]=n.createInstance(Ie.PageTypeV2.AnalyticalListPage,Ie.DefinitionName.Action),Ye(t.table.toolBar.actions[p],e.manifest,a[Ie.DefinitionName.Action],i,e.logger)}t.filterBar=n.createInstance(Ie.PageTypeV2.AnalyticalListPage,Ie.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),Ye(t.filterBar,e.manifest,a[Ie.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),t.chart=n.createInstance(Ie.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),Ye(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let o=a[Ie.DefinitionName.FooterActionsLR];if(o)for(let f in o.properties){let p=Xn(f);t.footer.actions[p]=n.createInstance(Ie.PageTypeV2.AnalyticalListPage,Ie.DefinitionName.FooterAction),Ye(t.footer.actions[p],e.manifest,a[Ie.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let l=(u=(c=e.manifest[Ie.ManifestSection.generic].pages[i].component)==null?void 0:c.settings)==null?void 0:u.keyPerformanceIndicators;l&&Object.keys(l).forEach(f=>{t.keyPerformanceIndicators[f]=n.createInstance(Ie.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(Ie.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),Ye(t.keyPerformanceIndicators[f],e.manifest,a.KPISettings,i,e.logger,f)})}s(jx,"addSettings");function ts(e){if(lt(),!lr(e))return;let n=new ut,i=n.createPageInstance(Ie.PageTypeV2.AnalyticalListPage),r=[],a=fr(e.manifest[Ie.ManifestSection.generic].pages,r,e.logger);if(cr(a,e.logger,a==null?void 0:a.entitySet),!!a)return jx(e,i,n,r[0]),e.flex.forEach(o=>{_n(o)&&Qo(i,o,e.jsonSchema)}),or(i,e.manifest,a,Ie.PageTypeV2.AnalyticalListPage,e.fragments),Xo(i),i}s(ts,"createAnalyticalListPageConfig");var U=H(q());var ya=require("@sap-ux/vocabularies-types/vocabularies/UI");var _x=[U.ControlType.Avatar,U.ControlType.ObjectPageLayout,U.ControlType.DynamicPage];function wx(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(`${ya.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${U.ActionTitlePrefix}${t}`;else if(e[0].indexOf(ya.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}s(wx,"getSingleSelectorIdPart");function Rx(e){let t,n=e.split(":::");if(n.length===1)t=wx(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(`::${ya.UIAnnotationTerms.LineItem}`,`/@${ya.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}s(Rx,"getFacetID");function $x(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(o=>{var l,c,u;try{let f=_n(o),p=f&&((l=f.controlId)==null?void 0:l.split("--"))||[];if(f&&((c=p[0])!=null&&c.includes(U.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((u=p[0])!=null&&u.endsWith(t))){let h=p[1].replace(/:3a:3a/g,"::");r.exec(h)!==null&&(h=h.split("template:::TableColumn:::")[1]);let b=Rx(h);h=Oc(h).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${h}::${f.content.property}`]={controlId:h,propertyId:f.content.property,facetId:b,newValue:f.content.newBinding!==void 0?f.content.newBinding:f.content.newValue,controlType:f.controlType,creation:f.creation}}}catch(f){ne(n,{severity:U.LogSeverity.Error,message:Q.t("FLEXERROR")},...f)}}),Object.entries(i).sort((o,l)=>o[1].creation-l[1].creation).reduce((o,[l,c])=>(o[l]=c,o),{})}s($x,"prepareFlexChanges");var Mx=s(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(V,"");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(V,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function kx(e,t,n,i,r,a){let o;r?o=[r.replace(/@/g,"")]:o=[a.replace(/@/g,""),a==null?void 0:a.replace(/::@com.sap.vocabularies/g,U.VOCWITHSLASH)];for(let l in e){let c=e[l],u=c.propertyId===t,f=t==="columns"&&c.controlType===U.ControlType.TableColumn;(u||f)&&o.indexOf(c==null?void 0:c.facetId)>-1&&fo(n,c,i.jsonSchema)}}s(kx,"importFlexChangesOfTable");function Bx(e,t){return e.facetId==="template"&&t}s(Bx,"isStandardActionFlexChange");function Ux(e,t,n,i,r,a){var f;let o=!1,l=!1,c=s((p,h)=>h.every(b=>p.includes(b)),"idElementChecker");a?(o=l=n.test(t.controlId),r&&(o=l&&i.test(t.controlId))):r&&(o=i.test(t.controlId));let u=t.controlId.split("::");return t.controlType===U.ControlType.GroupElement&&l||((f=t.facetId)==null?void 0:f.includes(U.ActionTitlePrefix))&&!r&&o||r&&c(u,r.split("::"))&&o||e.title&&c(u,e.title.split("::"))||!t.facetId&&_x.includes(t.controlType)||Bx(t,l)}s(Ux,"matchSelector");function Gx(e,t,n,i,r,a){var c;let o=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let u in n){let f=n[u];if(f.propertyId!==i||f.controlType!==((c=e.properties[f.propertyId])==null?void 0:c[U.SchemaTag.controlType]))continue;Ux(e,f,o,l,r,a)&&(t[i]=f.newValue)}}s(Gx,"importFlexChanges");function Hx(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(ne(n.logger,{severity:U.LogSeverity.Warning,message:no(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}s(Hx,"checkDeprecatedProperties");function Kx(e,t,n,i,r,a,o){let l=o!=null&&o.id?o.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,c,u;o!=null&&o.title?(c=e.manifest.path(t,{},o.title),u=Qe(n.manifest,c),Object.values(u).length===0&&(c=e.manifest.path(t,{},l),u=Qe(n.manifest,c))):(c=e.manifest.path(t,{},l),u=Qe(n.manifest,c));let f=e.manifest.import;if(f&&typeof f=="function"){let p=f(u,o==null?void 0:o.id);p!==void 0&&(i[r]=p)}else{let p=e.manifest.key||r;p in u&&(i[r]=u[p])}return Hx(u,a,n,c),u}s(Kx,"importManifestSetting");function Tt(e,t,n,i,r,a){var l,c;if(!n)return;let o=t!=null&&t.getDeprecated?t.getDeprecated():{};for(let u in n.properties||n){let f=St(t,u);if(u==="columns"||f!=null&&f.flex)if((l=r==null?void 0:r.type)!=null&&l.startsWith("ObjectPageSectionTableV2")||(c=r==null?void 0:r.type)!=null&&c.startsWith("ObjectPageSubSectionTableV2"))kx(i.flexChanges,u,t,e,r.title,r.id);else{let p=(r==null?void 0:r.title)||(r==null?void 0:r.id);Gx(n,t,i.flexChanges,u,p,a)}else f!=null&&f.manifest&&Kx(f,i.pageKeys,e,t,u,o,r)}}s(Tt,"transferSettingsAndFlexChanges");function nm(e,t,n,i){let r=yt(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=`${Kd}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${ao}${r}`;break}}return r.replace(/@/g,"")}s(nm,"getActionId");function Wx(e,t,n,i){var r;for(let a in t){let o=t[a].$ref.split(V)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(o)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],c=nm(o,a,"","");e.actions[a]=i.factory.createInstance(U.PageTypeV2.ObjectPage,l,{}),Tt(n,e[U.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},c)}}}s(Wx,"fillStandardActions");function ns(e,t,n,i,r,a){var l;n[U.PropertyName.actions]={};let o=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let c={};a&&(c.id=a);for(let u in t){let f=Xn(u),p=nm(o,f,r,a);p&&(n[U.PropertyName.actions][f]=i.factory.createInstance(U.PageTypeV2.ObjectPage,o),Tt(e,n[U.PropertyName.actions][f],e.jsonSchema.definitions[o],i,c,p)),(l=n[U.PropertyName.actions])!=null&&l[f]&&Object.keys(n[U.PropertyName.actions][f]).length===0&&delete n[U.PropertyName.actions][f]}}Wx(n,t,e,i),Object.keys(n[U.PropertyName.actions]).length===0&&delete n[U.PropertyName.actions]}s(ns,"fillActions");function Jx(e,t,n,i,r){var o;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(U.PageTypeV2.ObjectPage,"Field");let c=(o=t.title)!=null&&o.includes(U.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;Tt(e,i[t.id].form.fields[l],e.jsonSchema.definitions[U.DefinitionName.Field],r,{},c),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}s(Jx,"fillFields");function Qx(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:i=n[`ObjectPageResponsiveTable<${t.id}>`],i}s(Qx,"prepareTableSchema");function zx(e,t,n,i,r){var l,c;let a=t.title||t.id.replace("@com.sap","com.sap"),o=n&&n.sections&&n.sections[a];if(o||r.flexChanges){let u=((l=o==null?void 0:o.tableSettings)==null?void 0:l.type)||"ResponsiveTable",f=r.factory.createInstance(U.PageTypeV2.ObjectPage,`ObjectPage${u}`,{toolBar:{}});i[t.id]=r.factory.createInstance(U.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][U.PropertyName.table]=f;let p=e.jsonSchema.definitions,h=Qx(u,t,p);Tt(e,i[t.id],t.schema,r,{title:t.title}),Tt(e,i[t.id][U.PropertyName.table],h,r,t);let b=JSON.parse(JSON.stringify(p))[`Actions<${t.id}>`];if(b!=null&&b.properties){let C=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(c=t==null?void 0:t.id)==null?void 0:c.replace(/@/g,"::").replace(/::com/g,"com");ns(e,b.properties,i[t.id][U.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",C)}Object.keys(i[t.id][U.PropertyName.table].toolBar).length===0&&delete i[t.id][U.PropertyName.table].toolBar}}s(zx,"fillTableInConfig");function qx(e,t,n,i){let r=e.jsonSchema.definitions[t].properties.custom,a=r?ro(r.$ref):void 0;if(a){let o={key:t.replace("@",""),target:a};or(n[t],e.manifest,i,U.PageTypeV2.ObjectPage,e.fragments,o)}}s(qx,"fillCustomColumnsInConfig");function Xx(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),o=n&&n.sections&&n.sections[a];i[t.id]=r.factory.createInstance(U.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][U.PropertyName.chart]=r.factory.createInstance(U.PageTypeV2.ObjectPage,"ObjectPageChart"),(o||r.flexChanges)&&(Tt(e,i[t.id],t.schema,r,{title:t.title}),Tt(e,i[t.id][U.PropertyName.chart],e.jsonSchema.definitions[U.DefinitionName.ObjectPageChart],r,t))}s(Xx,"fillChartSection");function Yx(e,t,n,i){var c;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(U.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&Tt(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${r}`],o=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(c=t==null?void 0:t.id)==null?void 0:c.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&ns(e,a.properties,n[t.id].form,i,"FormAction",o);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&Jx(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]}s(Yx,"fillFormSection");function tm(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(U.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Tt(e,i[t.id],t.schema,r,t);let a,o=t.schema.properties;(l=o==null?void 0:o.subsections)!=null&&l.properties?a=o.subsections.properties:a=o,im(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}s(tm,"fillSubSection");function im(e,t,n,i,r){var o;let a=e.jsonSchema.definitions;for(let l in t){let c=l.replace(/\/@/g,"::"),u={id:c,type:Mx(t[l]),schema:t[l],title:zs(t[l],e.jsonSchema)};if(u.schema.$ref&&u.type)switch(u.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{u.schema=a[`${u.type}<${l}>`],zx(e,u,n,i,r),qx(e,c,i,r.v2Page);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{u.schema=a[`${u.type}<${l}>`],Xx(e,u,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{u.schema=a[`${u.type}<${l}>`],Yx(e,u,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":{u.schema=a[`${u.type}<${l}>`],tm(e,u,n,i,r);break}}else(o=u.schema.properties)!=null&&o.subsections&&(u.schema=a[`${u.type}<${l}>`],tm(e,u,n,i,r))}}s(im,"fillSectionsInConfig");function Zx(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let o="fragmentName"in e[a]?n.factory.createInstance(U.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(U.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Tt(r,o,l,n,{id:a}),t.sections.custom.push(o)}}}s(Zx,"fillCustomSectionsInConfig");function eC(e,t){var u;let n=t.factory.createPageInstance(U.PageTypeV2.ObjectPage);Tt(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(U.PageTypeV2.ObjectPage,U.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Tt(e,n.globalTableSettings,i[U.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(U.PageTypeV2.ObjectPage,U.DefinitionName.ObjectPageHeader);let r=i[U.DefinitionName.ObjectPageHeader]?i[U.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];Tt(e,n.header,r,t);let a=i[U.DefinitionName.HeaderActions];a&&ns(e,a.properties,n.header,t,"HeaderAction"),n.footer={};let o=i[U.DefinitionName.FooterActions];o&&ns(e,o.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(U.PageTypeV2.ObjectPage,"ObjectPageLayout"),Tt(e,n.layout,i[U.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.sections={};let l=i[U.DefinitionName.Sections];if(l){let f=(u=t.v2Page.component)==null?void 0:u.settings;im(e,l.properties,f,n.sections,t)}let c=em(e.manifest,e.entitySet);return Zx(c,n,t,i,e),n}s(eC,"fillConfig");function is(e){lt();let t=lr(e);if(!t)return;let n=e.entitySet,i=[],r=Ei(t,e.entitySet,i);if(cr(r,e.logger,n),!r)return;let a=$x(e.flex,n),o=new ut;return eC(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:o})}s(is,"createObjectPageConfigV2");function as(e,t){var n,i;return(n=e.component)!=null&&n.name?Ya(vn((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}s(as,"generateId");function tC(e,t,n,i,r,a,o){e.navigation={};let l=rm(t.pages,n,i,r,a);for(let c in l){let u=l[c];o[c]=u}for(let c in t.pages){let u=as(t.pages[c],c);e.entitySet?e.navigation[u]=l[u].navigationProperty?`${e.entitySet}.${l[u].navigationProperty}`:e.entitySet:e.navigation[u]=l[u].navigationProperty?l[u].navigationProperty:u}}s(tC,"getPageConfigsAndNavigations");function rm(e,t,n,i,r,a){var l;let o={};for(let c in e){let u=e[c],f=as(u,c);if(!f)continue;let p={pageType:vn((l=u.component)==null?void 0:l.name),entitySet:u.entitySet,...u.navigationProperty&&{navigationProperty:u.navigationProperty},...u.defaultLayoutType&&{defaultLayoutType:u.defaultLayoutType}};o[f]=p;let h=Object.keys(i).find(b=>b.includes(f))||Object.keys(i).find(b=>b.includes(f.slice(0,-1)))||Object.keys(i).find(b=>b.includes(p.pageType));if(h)if(p.pageType===$e.PageTypeV2.ListReport){let b={manifest:n,flex:t,jsonSchema:i[h],fragments:r,logger:a};p.config=es(b)}else if(p.pageType===$e.PageTypeV2.AnalyticalListPage){let b={manifest:n,flex:t,jsonSchema:i[h],fragments:r,logger:a};p.config=ts(b)}else{let b={manifest:n,flex:t,jsonSchema:i[h],entitySet:p.entitySet,fragments:r,logger:a};p.config=is(b)}u.pages&&tC(p,u,t,n,i,r,o)}return o}s(rm,"getPagesAndConfigs");var jc=class jc extends zi{constructor(t){lt();let n;t.manifest[$e.ManifestSection.generic]?n=t.manifest[$e.ManifestSection.generic].pages:ne(t.logger,{severity:$e.LogSeverity.Error,message:Q.t("NOFE"),location:{path:$e.MANIFESTPATH,range:[$e.ManifestSection.generic]}}),n||ne(t.logger,{severity:$e.LogSeverity.Error,message:Q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:$e.MANIFESTPATH,range:[$e.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&as(n[i],i),a=new $n,o=qe($e.SchemaType.Application),l=t.appSchemas[o.filename];Ye(a,t.manifest,l.definitions.AppSettings,void 0),super(t.manifest,t.appSchemas,r,rm(n,t.flexChanges,t.manifest,t.appSchemas,t.fragments,t.logger),$e.FioriElementsVersion.v2,a)}};s(jc,"V2AppProvider");var rs=jc;function ha(e,t,n){var r,a;let i={};for(let o in e){let l=e[o];if((r=l.component)!=null&&r.name||ne(n,{severity:$e.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:o}),location:{path:$e.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let c=as(l,o);i[c]=l}if(t===$e.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let c=ha(l.pages,t,n);for(let u in c)i[u]=c[u]}}return i}s(ha,"getPages");var Nn=H(q());var Zn=H(q());var _c=H(Ss());var Me=H(q());var nC=["colorPalette","tabs"];function iC(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}s(iC,"createCard");function am(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),am(e,n.join("|"))}return t}s(am,"findAvailableId");function ba(e,t,n,i,r,a){i!=null&&i.properties&&Vc(e,t,n,i.properties,r,a)}s(ba,"transferManifestEntriesOVP");function Oi(e,t,n,i){return e.createInstance(Me.PageTypeV2.OverviewPage,i,n,t)}s(Oi,"assignReflectMetadataRules");function rC(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(V),r=e.appSchema.definitions[i[1]];t=Oi(e.factory,i[1],t,"CustomCard"),ba(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}s(rC,"processAnyOfDefinitionsOfOVP");function aC(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!nC.includes(i)?t[i]=(0,_c.default)(t[i]||{},r||{},{arrayMerge:Js}):t[i]=r}s(aC,"checkSyncRuleForExport");function oC(e,t,n,i,r,a){let o=e.manifest.path([...t,n]),l=Qe(i.manifest,o);if(n in Me.v2.CardSettingsType||n==="settings")l.settings=(0,_c.default)(l.settings||{},r||{},{arrayMerge:Js});else if(r!==void 0){let c=e.manifest.export;aC(c,l,a,n,r)}else l[n]!==void 0&&delete l[n]}s(oC,"transferToManifest");function sC(e,t,n,i){Object.keys(e).forEach(r=>{let a=e[r].template,o;Object.values(Me.v2.CardTemplateType).includes(a)?o=Object.keys(t.definitions).filter(l=>{var u;let c=(u=t.definitions[l].properties)==null?void 0:u.template;if(c!=null&&c.enum)return c.enum.indexOf(e[r].template)>-1;if(c!=null&&c.const)return c.const===e[r].template}):o=["CustomCard"],e[r]=Oi(n,o[0],e[r],"CustomCard"),iC(r,i.manifest[Me.ManifestSection.ovp]),ba(e[r],i,t,t.definitions[o[0]],n,[r])}),Object.keys(i.manifest[Me.ManifestSection.ovp].cards).forEach(r=>{e[r]||delete i.manifest[Me.ManifestSection.ovp].cards[r]})}s(sC,"transferCards");function lC(e,t,n){if(t==="cards")sC(e.currentObject,e.appSchema,n,e.exportResults);else{let i=jn(e.appSchema,"",e.currentObject,e.propertyList[t],t,n,Me.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let r=e.propertyList[t].$ref.split(V);e.currentObject=Oi(e.factory,t,e.currentObject,r[1]),e.pathHierarchy=[...e.pathHierarchy,t],ba(e.currentObject,e.exportResults,e.appSchema,i.targetDefinition,n,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],Vc(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],n,e.pathHierarchy)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],Vc(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy))}}s(lC,"exportOfObject");function Vc(e,t,n,i,r,a){for(let o in i){if(o==="description")continue;let l=e[o],c=St(e,o),u={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:l,configObject:e,factory:r,exportResults:t};a[a.length-1]==="anyOf"?(u.currentObject=e[a[a.length-2]],l=rC(u)):l&&typeof l=="object"&&i[o]&&lC(u,o,r),c!=null&&c.manifest&&oC(c,a,o,t,l,e)}}s(Vc,"processProperties");function cC(e,t,n,i,r,a,o){let l;t.length===0?l=["page"]:l=t;let c=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),u=Md(a,n,e.ui5Version,o,c),f=JSON.parse(JSON.stringify(e.exportResults.manifest));f["sap.app"].id=e.appId;let p=n.flex.createFlexChange(u,f);e.exportResults.flexChanges.find(b=>{let C=!1,F=JSON.parse(b);F={content:F.content,selector:F.selector};let N=JSON.parse(p);return N={content:N.content,selector:N.selector},JSON.stringify(F)===JSON.stringify(N)&&(C=!0),C})||e.exportResults.flexChanges.push(p)}s(cC,"evaluateFlexRule");function fC(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]={});else{let o=t.manifest.export;o&&typeof o=="function"?o(n,i,r,a):o!==!1&&(n[a]=i[r])}}s(fC,"exportConfigValue");function uC(e,t,n,i,r){let a=Qe(e.exportResults.manifest,t),o=n.manifest.key||i;if(r[i]!==void 0)fC(e,n,a,r,i,o);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,o):Object.prototype.hasOwnProperty.call(a,o)&&delete a[o]}Ws(e.exportResults.manifest,t)}s(uC,"evaluateManifestRule");function pC(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(Me.FacetTitlePrefix)?r.split(Me.FacetTitlePrefix)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}s(pC,"getManifestPathOfSections");function dC(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}s(dC,"getManifestPathOfTable");function gC(e,t,n,i,r){let a;return t[0]===Me.PropertyName.sections?a=pC(t,a,n,e,r):t[0]===Me.PropertyName.table?a=dC(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}s(gC,"getManifestPath");function mC(e,t,n,i,r,a,o){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)cC(e,i,t,r,a,n,o);else if(t.manifest){let c=gC(e,i,t,n,a);uC(e,c,t,o,n)}}s(mC,"evaluateExportRule");function yC(e,t,n){var o;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(o=t.config)==null?void 0:o.filter(c=>(c.tabKey===a||a===void 0&&c.tabKey===""||a&&t.sectionKey===a)&&c.extensionType===t.extensionType);if((!l||l.length===0)&&(xo(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Me.ViewTemplateType.ResponsiveTableColumnsExtension))){let c=e.replace(Me.ViewTemplateType.ResponsiveTableColumnsExtension,Me.ViewTemplateType.ResponsiveTableCellsExtension);xo(n,c,t.appId,t.exportResults.fragments),delete n[c]}}}s(yC,"deleteObsoleteColumn");function hC(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=yg(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&yC(r,e,n)}s(hC,"deleteObsoleteColumnsFromFragment");function bC(e,t,n,i,r){let a={};for(let o of e){if(!o.className||!o.fragmentName||!o.columnKey||!o.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(o.fragmentName)===!1)continue;let{path:l,viewTemplateType:c}=Co(n,i,o.tabKey||r,o.extensionType);a[l]||(a[l]={viewTemplateType:c,columns:[]}),a[l].columns.push(o)}return a}s(bC,"clusterConfigColumnsByPath");function om(e,t,n,i){let r=i?i.key:void 0,o=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in Me.v2.TableColumnExtensionTypeV2){let{path:c}=Co(e.v2Page,o,r,l);if(!c)continue;let u={path:c,exportResults:e.exportResults,entitySet:o,config:t,sectionKey:r,extensionType:l,appId:e.appId};hC(u)}if(t){let l=bC(t,n,e.v2Page,o,r);for(let c in l)El(e.exportResults,c,l[c].columns,e.appId,l[c].viewTemplateType,e.logger)}}s(om,"transferColumnExtensions");function vC(e,t,n,i,r,a){let o=[],l=n.split("|")[1];if(!t)return;for(let u of t){let f=am(o,[u.relativePosition,l,u.relatedFacet].join("|"));o.push(f)}for(let u=0;u<o.length;u++){let p=a.anyOf.find(b=>{var C;return(C=b.$ref)==null?void 0:C.includes(t[u].constructor.name)}).$ref.split(V),h=e.appSchema.definitions[p[p.length-1]];Yn(e,t[u],i,[...r,o[u]],h)}let c=Qe(e.exportResults.manifest,il());for(let u in c)Ic(u,l)&&!o.includes(u)&&delete c[u]}s(vC,"transferManifestExtensions");function TC(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Me.PropertyName.table){n=e[i-1];break}return Xe(n,t)}s(TC,"getSectionId");function xC(e,t,n,i,r,a){let o=t.propertyDefinition;!e||!(o!=null&&o.additionalProperties)||Object.keys(e).forEach(l=>{let c=jn(t.appSchema,n,e[l],o.additionalProperties,i,t.factory,t.pageType);Yn(t,c.configObject,r,[...a,i],c.targetDefinition,l)})}s(xC,"transferIndexTable");function CC(e,t,n,i,r,a){let o,l=ro(e.$ref);l&&(o={target:l,key:TC(t,n)}),om(i,r==null?void 0:r.custom,a.targetDefinition,o)}s(CC,"transferCustomColumns");function SC(e,t,n,i,r,a,o){e.anyOf.forEach(l=>{let c=jn(t.appSchema,n,i,l,r,t.factory,t.pageType);c&&Yn(t,c.configObject,a,[...o,r],c.targetDefinition,c.title)})}s(SC,"handleAnyOfDefinitions");function PC(e,t,n,i,r,a,o){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")vC(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){CC(l,t,o,e,n,a);return}else a?Yn(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&SC(l,e,o,n==null?void 0:n[r],r,i,t)}s(PC,"transferComplexProperty");function Yn(e,t,n,i,r,a){let o;if(r!=null&&r.properties)for(let l in r.properties){o=t==null?void 0:t[l];let c=t&&Ad(t,l),u=c?[...n,c]:n,f=St(t,l),p=e.propertyDefinition=r.properties[l],h=e.nextDefinition=jn(e.appSchema,a,o,p,l,e.factory,e.pageType);if(mC(e,f,t,[...i],u,a,l),xC(o,e,a,l,u,i),o===void 0||typeof o=="object")PC(e,i,t,u,l,h,a);else if((p==null?void 0:p.$ref)===V+"TableCustomColumns"){om(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}s(Yn,"transferManifestEntriesAndFlexChange");function sm(e,t,n,i,r,a,o){let l=t[t.length-1],c=e.definitions[l];n[i]=Oi(r,i,n[i],l),a.push(i),wc(r,n[i],o,c.properties,e,a)}s(sm,"transferSettingsOfRef");function EC(e,t,n,i,r,a,o){if(n[t].$ref){e[t]={};let l=n[t].$ref.split(V);sm(i,l,e,t,r,a,o)}else if(t==="settings"&&n[t].anyOf){e[t]={};let c=`${V}${Zn.v2.cardTemplateSettingsMap[e.template]}`.split(V);sm(i,c,e,t,r,a,o)}}s(EC,"processPropertiesOfObject");function OC(e,t,n,i,r,a,o){let l=St(e,t);if(l!=null&&l.manifest){let c=l.manifest.path([...n,t]),u=Qe(i,c);Object.prototype.hasOwnProperty.call(u,t)&&io(l,u,t,e)}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&EC(e,t,r,a,o,n,i)}s(OC,"processOvpProperty");function wc(e,t,n,i,r,a){for(let o in i)OC(t,o,a,n,i,r,e)}s(wc,"processOvpProperties");function AC(e,t,n,i){wc(i,e,t,n.properties,n,[]),e.cards={},Object.keys(t[Zn.ManifestSection.ovp].cards).forEach(r=>{let a=t[Zn.ManifestSection.ovp].cards[r].template,o=Zn.v2.cardTemplateTypeMap[a]??"CustomCard";e.cards[r]=Oi(i,o,{},"CustomCard"),e.cards=Oi(i,o,e.cards,"CustomCard"),wc(i,e.cards[r],t,n.definitions[o].properties,n,[r])})}s(AC,"addSettings");function os(e){let t=new ut,n=t.createPageInstance(Zn.PageTypeV2.OverviewPage);return e.jsonSchema&&AC(n,e.manifest,e.jsonSchema,t),n}s(os,"createOverviewPageConfig");var Rc=class Rc extends zi{constructor(t){let n={},i=t.manifest[Nn.ManifestSection.ovp],r=new $n,a=qe(Nn.SchemaType.Application);Ye(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let o=Object.keys(t.appSchemas).find(f=>f.includes(Nn.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[o]},c={pageType:Nn.PageTypeV2.OverviewPage,config:os(l),entitySet:i.globalFilterEntitySet},u=Ya(c.pageType,c.entitySet);n[u]=c,super(t.manifest,t.appSchemas,u,n,Nn.FioriElementsVersion.v2,r,t.logger)}};s(Rc,"V2OvpProvider");var ss=Rc;var lm=require("fs"),Ai=require("path"),$c=H(q());var cm=s((e,t,n=__dirname)=>{let i=t===$c.SchemaType.Application?`${$c.SchemaType.Application}${e.toUpperCase()}.json`:`${t}Config.json`;if(n.endsWith("dist"))return(0,Ai.join)(n,"schemas",e,i);if(n.endsWith((0,Ai.join)("specification","packages","specification")))return(0,Ai.join)(n,"dist","schemas",e,i);if(n.endsWith((0,Ai.join)("src","specification")))return(0,Ai.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,Ai.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),IC=s(async e=>new Promise((t,n)=>{(0,lm.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),ls=s(async(e,t)=>{try{let n=cm(e,t,__dirname);return await IC(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function FC(e,t){let n={},i=[];switch(i=[ee.SchemaType.Application],e){case ee.TemplateType.ListReportObjectPageV2:i.push(ee.SchemaType.ListReport,ee.SchemaType.ObjectPage);break;case ee.TemplateType.AnalyticalListPageV2:i.push(ee.SchemaType.AnalyticalListPage,ee.SchemaType.ObjectPage);break;case ee.TemplateType.OverviewPageV2:i.push(ee.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=qe(r);n[a.filename]=await ls(t,r)}return n}s(FC,"getGenericSchemas");function um(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=xn(ee.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:o}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),o&&!o.qualifier&&t.Facets.push(r.name)}return t}s(um,"getAnnotationsForUi");function va(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}s(va,"getEntitySetByEntitySetName");function NC(e,t,n){var r;let i=ha(e.manifest[ee.ManifestSection.generic].pages,ee.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let o=i[a].entitySet;e.entitySet=va(o,e.serviceAVT);let l=qe(ee.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||o),c=qe(ee.SchemaType.ListReport);t[l.filename]=xa(e,n[c.filename])}}s(NC,"generateAppSchemaV2LR");function fm(e,t,n){let i=ha(e.manifest[ee.ManifestSection.generic].pages,ee.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,o=va(a,e.serviceAVT);o||ne(e.logger,{severity:ee.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=o;let l=qe(ee.SchemaType.ObjectPage,(o==null?void 0:o.name)||a),c=qe(ee.SchemaType.ObjectPage);n[l.filename]=Ta(e,t[c.filename])}}s(fm,"generateObjectPageSchemasV2");function DC(e,t,n,i){var a;let r={};if(i===ee.TemplateType.ListReportObjectPageV2&&n)NC(e,r,t),fm(e,t,r);else if(i===ee.TemplateType.AnalyticalListPageV2&&n){let o=ha(e.manifest[ee.ManifestSection.generic].pages,ee.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in o){let c=o[l].entitySet;e.entitySet=va(c,e.serviceAVT);let u=qe(ee.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||c),f=qe(ee.SchemaType.AnalyticalListPage);r[u.filename]=Ca(e,t[f.filename])}fm(e,t,r)}else if(i===ee.TemplateType.OverviewPageV2){let o=qe(ee.SchemaType.OverviewPage),l=qe(ee.SchemaType.OverviewPage);r[o.filename]=Sa(t[l.filename],e.manifest)}return{...t,...r}}s(DC,"generateAppSchemasV2");async function pm(e,t,n){if(e.fioriElementsVersion===ee.FioriElementsVersion.v2){let i=await FC(n,e.fioriElementsVersion);return DC(e,i,t,n)}}s(pm,"generateAppSchemas");function LC(e){let t,n=[];switch(e.templateType){case ee.TemplateType.ListReportObjectPageV2:case ee.TemplateType.AnalyticalListPageV2:t=new rs(e);break;case ee.TemplateType.OverviewPageV2:t=new ss(e);break;default: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}s(LC,"importConfigs");function dm(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===ee.SchemaType.Application?r=`${ee.DirName.Schemas}/${ee.FileName.App[0].toUpperCase()}${ee.FileName.App.slice(1)}`:r=`${ee.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}s(dm,"getFileList");async function Mc(e){var C,F;lt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:o}=e;new Dr().doesUi5VersionFitDistTags((F=(C=t["sap.ui5"])==null?void 0:C.dependencies)==null?void 0:F.minUI5Version,i);let c=Hs(t),u=Pr(n,i),f=um(u),p=Ks(t,c,i),b=await pm({templateType:p,manifest:t,serviceAVT:u,fragments:r,views:a,fioriElementsVersion:c,logger:i,featureToggles:o},f,p);return dm(b)}s(Mc,"importProjectSchema");async function kc(e){var E,I;lt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:o,featureToggles:l}=e;new Dr().doesUi5VersionFitDistTags((I=(E=t["sap.ui5"])==null?void 0:E.dependencies)==null?void 0:I.minUI5Version,i);let u=Hs(t),f=Pr(n,i),p=Ks(t,u,i),h={templateType:p,manifest:t,serviceAVT:f,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:l},b=um(f),C=await pm(h,b,p),N=LC({manifest:t,flexChanges:o,appSchemas:C,templateType:p,logger:i,serviceAVT:f,fragments:r,views:a});return dm(C,N)}s(kc,"importProjectSchemaAndConfig");var jC=["header","sections","footer"];function VC(e,t,n,i){t.properties[n][$.SchemaTag.artifactType]=$.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=$.ControlType.Section;break;case"ObjectPageSubSectionV2":r=$.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=$.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=$.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=$.ControlType.SmartTable;break}r&&(ge(e,t,n),t.properties[n][$.SchemaTag.controlType]=r)}s(VC,"addFlexChangeForSection");function _C(e,t,n,i,r){return(a,o)=>{if(!a.Determining&&a.$Type===Ii.UIAnnotationTypes.DataFieldForAction){let{actionName:l,actionId:c,namespace:u}=Ys(a,r);if(!c)return;let f=a.Label||l,p=`HeaderAction<${Re(c)}>`;t.definitions[p]=JSON.parse(JSON.stringify(t.definitions.HeaderAction));let h=n.fullyQualifiedName.replace(`@${Ii.UIAnnotationTerms.Identification}`,`/@${Ii.UIAnnotationTerms.Identification}`);t.definitions[p][$.SchemaTag.annotationPath]=`/${h}/${o}`,t.definitions[p][$.SchemaTag.actionType]=$.ActionType.Annotation,t.definitions[p].description=f,t.definitions[p][$.SchemaTag.keys]=[{name:$.SchemaKeyName.action,value:l}],u&&(t.definitions[p][$.SchemaTag.target]=u),i.properties[c]={$ref:`${V}${p}`}}}}s(_C,"addHeaderActionCallBackV2");function wC(e,t,n,i,r,a,o,l){let c,u;if(a.ID&&a.Label?c=a.ID+a.Label.replace(/\s+/g,""):a.ID?c=a.ID:a.Label&&(c=a.Label.replace(/\s+/g,"")),c?u=`${$.DefinitionName.CustomColumns}<${n}><${o}><${c}>`:u=`${$.DefinitionName.CustomColumns}<${n}><${o}>`,e.definitions[u])return u;let f=`${$.DefinitionName.CustomColumn}<${n}>`,p=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn));e.definitions[f]=p;let h=[],b=r==null?void 0:r.entityTypes.find(F=>F.name===i),C=Ei(t[$.ManifestSection.generic].pages,n,h);return Wi(e,b,C,t,l,u,f,a.ID),u}s(wC,"ensureCustomColumnDefinitionExists");function fs(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&VC(e,t,"visible",n)}s(fs,"addAppSchemaDefinition");function RC(e,t,n){e.properties[t]={$ref:`${V}${n}`}}s(RC,"addSectionReference");function cs(e,t,n,i){let r=Re(`${e}<${t}>`);i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e])),i.definitions[r].properties.columns.$ref=V+t,i.definitions[r].properties.toolBar.$ref=`${V}ObjectPageToolBar<${t}>`,i.definitions[r][$.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=$.FacetTitlePrefix+n.ID,i.definitions[r][$.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=$.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${V}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=`${V}QuickVariant<${t}>`,co(n.entityType,i,`QuickVariant<${t}>`)}s(cs,"addTableDefinition");function $C(e,t,n,i,r,a){if(i.base!==$.FacetBase.LineItem||!t)return;let o=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=Bi(n,i,t);let c=n.definitions[l];fs(n,c,a,"ObjectPageSectionTableV2"),c.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[$.PropertyName.table])),c.properties.table.anyOf=[{$ref:`${V}ObjectPageResponsiveTable<${t}>`},{$ref:`${V}ObjectPageAnalyticalTable<${t}>`},{$ref:`${V}ObjectPageGridTable<${t}>`},{$ref:`${V}ObjectPageTreeTable<${t}>`}],c[$.SchemaTag.annotationPath]=i.annotationPath,Or(i,c,t),cs("ObjectPageResponsiveTable",t,i,n),cs("ObjectPageGridTable",t,i,n),cs("ObjectPageTreeTable",t,i,n),cs("ObjectPageAnalyticalTable",t,i,n);let u,f=sg(i,e.serviceAVT);f&&(u=wC(n,e.manifest,f.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let p in r)r[p].base===$.FacetBase.LineItem&&p.includes(o)&&Ki(n,r[p].target,r[p].entityType,p,u)}s($C,"handleLineItem");function MC(e,t,n,i,r){e.definitions[t]=Bi(e,n,i);let a=e.definitions[t];fs(e,a,r,"ObjectPageSubSectionV2"),a.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},a.properties.subsections[$.SchemaTag.isViewNode]=!0}s(MC,"handleSubSection");function kC(e,t,n,i,r){e.definitions[t]=Bi(e,n,i);let a=e.definitions[t];fs(e,a,r,"ObjectPageSectionChartV2")}s(kC,"handleSectionChart");function BC(e,t,n,i,r){e.definitions[t]=Bi(e,n,i);let a=e.definitions[t];return fs(e,a,r,"ObjectPageSectionFormV2"),a[$.SchemaTag.annotationPath]=n.annotationPath,a[$.SchemaTag.isViewNode]=!0,a}s(BC,"handleFormSection");function UC(e,t){let n=new Map([[$.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[$.FacetBase.LineItem,"ObjectPageSectionTableV2"],[$.FacetBase.Chart,"ObjectPageSectionChartV2"],[$.FacetBase.Address,"ObjectPageSectionAddressV2"],[$.FacetBase.Contact,"ObjectPageSectionContactV2"],[$.FacetBase.Form,"ObjectPageSectionFormV2"],[$.FacetBase.Identification,"ObjectPageSectionFormV2"]]),i=new Map([[$.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[$.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[$.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[$.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[$.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[$.FacetBase.Form,"ObjectPageSubSectionFormV2"],[$.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return t?i.get(e):n.get(e)}s(UC,"getSectionType");function GC(e,t,n){let i=t;return n===("ObjectPageSectionV2"||"ObjectPageSubSectionV2")&&(i=i.replace(`@${Ii.UIAnnotationTerms.Facets}`,e.base)),`${i}`}s(GC,"getReferenceKey");function gm(e,t,n,i,r,a=!1){let o=t[n],l=UC(o.base,a),c=GC(o,n,l),u=`${l}<${c}>`;switch(RC(i,c,u),l){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":{a=!0,MC(r,u,o,n,l);let f=r.definitions[u].properties.subsections;for(let p in o.facets)gm(e,o.facets,p,f,r,a);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{$C(e,n,r,o,t,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{kC(r,u,o,n,l);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let f=BC(r,u,o,n,l);ng($.SectionType.Section,o,f,r,$.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{Zs(o,n,i,r,$.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{Zs(o,n,i,r,$.SectionType.Section,$.SectionType.SubSection,"V2");break}default:i.properties[n]=Bi(r,o,n)}}s(gm,"addSection");function mm(e,t,n){var o,l,c,u;let i=t.definitions[$.DefinitionName.Sections];if(i[$.SchemaTag.isViewNode]=!0,(o=e.entitySet)!=null&&o.entityType&&(i[$.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Ii.UIAnnotationTerms.Facets}`),!n)return;let r=hd((l=e.entitySet)==null?void 0:l.entityType,e.serviceAVT,$.FioriElementsVersion.v2,e.logger);if(!r||Object.keys(r).length===0)return;for(let f in n){let p=n[f];if((u=(c=e.entitySet)==null?void 0:c.name)!=null&&u.includes(p.entitySet))for(let h in r)gm(e,r,h,i,t);else mm(e,t,p.pages)}let a=t.definitions.CustomSections;for(let f in a.properties)i.properties[f]=a.properties[f]}s(mm,"addSections");function HC(e,t,n){og(e,t),ag(e,t,n,_C,!0)}s(HC,"addHeader");function KC(e,t,n,i){let r=bd(t,n,i,void 0,!0);r&&ug(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}s(KC,"addRelatedFacetKeysType");function Ta(e,t){var o;lt();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[$.PropertyName.sections]={$ref:V+"Sections"};let r=(o=e.entitySet)==null?void 0:o.entityType;e.entityType=r;let a=e.manifest[$.ManifestSection.generic].pages;return a?(HC(n,r,e.serviceAVT),n.definitions[$.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},mm(e,n,a),KC(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[$.SchemaTag.isViewNode]=!0):delete n.properties[$.PropertyName.sections]),rg(n,e,$.FioriElementsVersion.v2,a),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTable,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,Ui(n,jC),n):(ne(e.logger,{severity:$.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:$.MANIFESTPATH,range:[$.ManifestSection.generic]}}),n)}s(Ta,"generateObjectPageSchemaV2");var Ot=H(q());var WC=["filterBar","table","footer"];function Bc(e,t,n,i){co(e,n,"QuickVariant"),cg(n,"QuickVariantX",t),fg(i,n,"QuickVariantX")}s(Bc,"addEnumForVariantPaths");function xa(e,t){var f,p,h,b,C,F,N;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=V+Hi,n.properties.table.anyOf[1].$ref=V+Ar,n.properties.table.anyOf[2].$ref=V+Ir,n.properties.table.anyOf[3].$ref=V+Fr;let i=JSON.parse(JSON.stringify(n.definitions.ResponsiveTable)),r=JSON.parse(JSON.stringify(n.definitions.TreeTable)),a=JSON.parse(JSON.stringify(n.definitions.AnalyticalTable)),o=JSON.parse(JSON.stringify(n.definitions.GridTable)),l={$ref:V+Ot.DefinitionName.LineItems};i.properties.columns=l,r.properties.columns=l,a.properties.columns=l,o.properties.columns=l;let c=V+Ot.DefinitionName.ToolBarLR;n.definitions[Hi]=i,n.definitions[Hi].properties.toolBar.$ref=c,n.definitions[Ar]=r,n.definitions[Ar].properties.toolBar.$ref=c,n.definitions[Ir]=a,n.definitions[Ir].properties.toolBar.$ref=c,n.definitions[Fr]=o,n.definitions[Fr].properties.toolBar.$ref=c;let u=(f=e.entitySet)==null?void 0:f.entityType;if(!u)(p=e.entitySet)!=null&&p.name&&ne(e.logger,{severity:Ot.LogSeverity.Error,message:Q.t("NOENTITYTYPE4SET",{entitySetName:(h=e.entitySet)==null?void 0:h.name})});else{Ji(n);let E=(C=(b=u==null?void 0:u.annotations)==null?void 0:b.UI)==null?void 0:C.LineItem;E&&Hd.forEach(oe=>{n.definitions[oe][Ot.SchemaTag.annotationPath]=Tn(u==null?void 0:u.fullyQualifiedName,E.term,E.qualifier)}),Ki(n,E,u);let I=(N=(F=u==null?void 0:u.annotations)==null?void 0:F.UI)==null?void 0:N.SelectionFields;so(n,I,u);let k=[],w=sr(e.manifest[Ot.ManifestSection.generic].pages,k);if(!w)return ne(e.logger,{severity:Ot.LogSeverity.Error,message:Q.t("NOLR"),location:{path:Ot.MANIFESTPATH,range:[Ot.ManifestSection.generic]}}),n;Wi(n,u,w,e.manifest,e.fragments),Bc(u,e.entitySet,n,e.serviceAVT),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 Ui(n,WC),n}s(xa,"generateListReportSchemaV2");var Ee=H(q());var JC=["filterBar","keyPerformanceIndicators","chart","table","footer"];function QC(e,t){var c,u;let n=(u=(c=e==null?void 0:e.component)==null?void 0:c.settings)==null?void 0:u.qualifier,i=t[`SelectionPresentationVariant#${n}`],r=i!==void 0?i.PresentationVariant:void 0,a=r!==void 0?r.Visualizations:[],o,l;for(let f in a){let p=a[f];if(p.value.includes("@com.sap.vocabularies.UI.v1.LineItem")){let h=p.value.replace(Ee.UIVOCABULARYALPHADOT,"");o=t[h]}else if(p.value.includes("@com.sap.vocabularies.UI.v1.Chart")){let h=p.value.replace(Ee.UIVOCABULARYALPHADOT,"");l=t[h]}}return{lineItem:o,chart:l}}s(QC,"getVisualizations");function zC(e,t){let n=e.definitions[Ee.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Ee.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}s(zC,"addChart");function Ca(e,t){var l,c,u,f,p;let n=JSON.parse(JSON.stringify(t));n.properties[Ee.PropertyName.table].anyOf[0].$ref=V+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${V}${Ee.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${V}${Ee.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[Ee.PropertyName.table].anyOf[1].$ref=`${V}ALPGridTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));r.properties.columns.$ref=`${V}${Ee.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${V}${Ee.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=r,n.properties[Ee.PropertyName.table].anyOf[2].$ref=`${V}ALPAnalyticalTable<LineItems>`;let a=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));a.properties.columns.$ref=`${V}${Ee.DefinitionName.LineItems}`,a.properties.toolBar.$ref=`${V}${Ee.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=a,qd(n.definitions.TableColumnExtensionTypeV2.enum,[Ee.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let o=(l=e.entitySet)==null?void 0:l.entityType;if(!o)ne(e.logger,{severity:Ee.LogSeverity.Error,message:Q.t("NOENTITYTYPE4SET",{entitySetName:(c=e.entitySet)==null?void 0:c.name})});else{Ji(n);let h=[],b=fr(e.manifest[Ee.ManifestSection.generic].pages,h,e.logger),C=(u=o==null?void 0:o.annotations)==null?void 0:u.UI,{lineItem:F,chart:N}=QC(b,C),E=F||C.LineItem,I=N||C.Chart;Ki(n,E,o),I&&zC(n,I);let k=(p=(f=o==null?void 0:o.annotations)==null?void 0:f.UI)==null?void 0:p.SelectionFields;if(so(n,k,o),!b)return ne(e.logger,{severity:Ee.LogSeverity.Error,message:Q.t("NOLR"),location:{path:Ee.MANIFESTPATH,range:[Ee.ManifestSection.generic]}}),n;Wi(n,o,b,e.manifest,e.fragments),Bc(o,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 Ui(n,JC),n}s(Ca,"generateAnalyticalListReportSchemaV2");function qC(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]})}s(qC,"getCardDefinitionNames");function XC(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(c=>i.includes(r[c].dataSource)));let o=e.definitions;o.CardModel={type:"string"},ci(a,o.CardModel);let l=qC(e);for(let c of l){let u=o[c].properties.model;delete u.type,u.$ref=V+"CardModel"}}s(XC,"addModelsEnum");function ym(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},XC(n,t),n}s(ym,"generateOverviewPageSchemaV2");var ei=H(q());function Uc(e,t,n,i,r,a){lt();let o=Pr(e,t),l={templateType:a,fioriElementsVersion:ei.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:o,logger:t};return l.entitySet=va(r,l.serviceAVT),l.entitySet||ne(l.logger,{severity:ei.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}s(Uc,"prepareGenerationV2");function Gc(e,t,n,i,r,a){let o=Uc(n,a,i,r,t,ei.TemplateType.ListReportObjectPageV2);return Ta(o,e)}s(Gc,"generateObjectPageInterfaceV2");function Hc(e,t,n,i,r,a){let o=Uc(n,a,i,r,t,ei.TemplateType.ListReportObjectPageV2);return xa(o,e)}s(Hc,"generateListReportInterfaceV2");function Kc(e,t,n,i,r,a){let o=Uc(n,a,i,r,t,ei.TemplateType.AnalyticalListPageV2);return Ca(o,e)}s(Kc,"generateAnalyticalListPageInterfaceV2");function Sa(e,t){return ym(e,t)}s(Sa,"generateOVPInterfaceV2");var ue=H(q());var Pa=s(e=>({flexChanges:[],manifest:{[ue.ManifestSection.generic]:{pages:{}}},fragments:e||[]}),"getDefaultExportResult");function hm(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===ue.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(ue.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(ue.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}s(hm,"getClassesForSingleSection");function bm(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],hm(n,i,t),bm(n,t)}}s(bm,"getSubsectionClasses");function YC(e,t,n){let i;for(let r in e.sections)i=t.sections[r],hm(i,r,n),bm(i,n)}s(YC,"getExportClassesForSections");function ZC(e,t){let n=e.page.config,i=e.page.entitySet,r=Pa(e.fragments),a=new ut,o=a.createPageInstance(ue.PageTypeV2.ListReport,n),l=to(o),c=`${e.appId}::${l.id}::${i}--`,u=[],f=sr(e.manifest[ue.ManifestSection.generic].pages,u);if(!f){ne(e.logger,{severity:ue.LogSeverity.Error,message:Q.t("NOLR"),location:{path:ue.MANIFESTPATH,range:[ue.ManifestSection.generic]}});return}if(!f.component){ne(e.logger,{severity:ue.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:ue.PageTypeV2.ListReport}),location:{path:ue.MANIFESTPATH}});return}if(f.component.settings||(f.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),n&&Object.keys(n).length!==0){let p={v2Page:f,exportResults:r,appId:e.appId,baseId:c,appSchema:e.jsonSchema,ui5Version:t,factory:a,pageKeys:u,pageType:ue.PageTypeV2.ListReport,logger:e.logger};Yn(p,o,[],[],e.jsonSchema)}return r}s(ZC,"exportListReportPage");function eS(e,t){let n=e.page.config,i=e.page.entitySet,r=Pa(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=new ut,o=a.createPageInstance(ue.PageTypeV2.AnalyticalListPage,n),l=to(o),c=`${e.appId}::${l.id}::${i}--`,u=[],f=fr(e.manifest[ue.ManifestSection.generic].pages,u,e.logger);if(f){if(f.component.settings||(f.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),n&&Object.keys(n).length!==0){let p={v2Page:f,exportResults:r,appId:e.appId,baseId:c,appSchema:e.jsonSchema,ui5Version:t,factory:a,pageKeys:u,pageType:ue.PageTypeV2.AnalyticalListPage,logger:e.logger};Yn(p,o,[],[],e.jsonSchema)}return r}}s(eS,"exportAnalyticalListPage");function tS(e,t){let n=e.page.config,i=e.page.entitySet,r=Pa(e.fragments),a=new ut,o=a.createPageInstance(ue.PageTypeV2.ObjectPage,n);if(r.manifest=JSON.parse(JSON.stringify(e.manifest)),n){let l=to(o),c=`${e.appId}::${l.id}::${i}--`,u=[],f=Ei(e.manifest[ue.ManifestSection.generic].pages,i,u);if(!f)return r;if(n.sections&&YC(n,o,a),Object.keys(n).length!==0){let p={v2Page:f,exportResults:r,appId:e.appId,baseId:c,appSchema:e.jsonSchema,ui5Version:t,factory:a,pageKeys:u,pageType:ue.PageTypeV2.ObjectPage,logger:e.logger};Yn(p,o,[],[],e.jsonSchema)}}return r}s(tS,"exportObjectPage");var nS=s(e=>{let t=Pa();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new ut,i=n.createPageInstance(ue.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&ba(i,t,e.jsonSchema,e.jsonSchema,n,[]),t},"exportOverviewPage"),iS=s((e,t,n)=>{var o;let i=Pa();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new uo,e);r.settings=Object.assign(new $n,e.settings);for(let l in n.definitions.AppSettings.properties){let c=St(r.settings,l);if(c&&c.manifest){let u=c.manifest.path(),f=Qe(i.manifest,u);e.settings&&e.settings[l]!==void 0?f[l]=e.settings[l]:delete f[l]}}let a=(o=i.manifest[ue.ManifestSection.generic])==null?void 0:o.pages;return a&&e.pages&&nl(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function vm(e,t){if(e[ue.SchemaType.ListReport])return ZC(e[ue.SchemaType.ListReport],t);if(e[ue.SchemaType.ObjectPage])return tS(e[ue.SchemaType.ObjectPage],t);if(e[ue.SchemaType.OverviewPage])return nS(e[ue.SchemaType.OverviewPage]);if(e[ue.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ue.SchemaType.Application];return iS(n,i,r)}else if(e[ue.SchemaType.AnalyticalListPage])return eS(e[ue.SchemaType.AnalyticalListPage],t)}s(vm,"exportPageV2");function rS(e){let t;if(e[we.FioriElementsVersion.v2]){let n=e[we.FioriElementsVersion.v2];if(n[we.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:o,fragments:l,logger:c}=n[we.SchemaType.ListReport];t=Hc(i,r,a,o,l,c)}else if(n[we.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:o,fragments:l,logger:c}=n[we.SchemaType.ObjectPage];t=Gc(i,r,a,o,l,c)}else if(n[we.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[we.SchemaType.OverviewPage];t=Sa(i,r)}else if(n[we.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:o,fragments:l,logger:c}=n[we.SchemaType.AnalyticalListPage];t=Kc(i,r,a,o,l,c)}}return t}s(rS,"generateSchema");function aS(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[we.FioriElementsVersion.v2]){let i=e[we.FioriElementsVersion.v2];t=vm(i,n)}return t}s(aS,"exportConfig");function oS(e){let t;if(e[we.FioriElementsVersion.v2]){let n=e[we.FioriElementsVersion.v2];n[we.SchemaType.ListReport]?t=es(n[we.SchemaType.ListReport]):n[we.SchemaType.ObjectPage]?t=is(n[we.SchemaType.ObjectPage]):n[we.SchemaType.OverviewPage]?t=os(n[we.SchemaType.OverviewPage]):n[we.SchemaType.AnalyticalListPage]&&(t=ts(n[we.SchemaType.AnalyticalListPage]))}return t}s(oS,"importConfig");async function sS(e){return kc(e)}s(sS,"importProject");async function lS(e){return Mc(e)}s(lS,"importProjectSchema");function cS(){return{version:"13"}}s(cS,"getApiVersion");var Rt=require("path"),ti=require("fs");var ur=s(async e=>new Promise((t,n)=>{(0,ti.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),fS=s(async e=>JSON.parse(await ur(e)),"readJSON"),Wc=s(async e=>new Promise((t,n)=>{(0,ti.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),uS=s(async e=>new Promise(t=>{(0,ti.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),Tm=s(async e=>new Promise(t=>{(0,ti.exists)(e,n=>{t(n)})}),"resourceExists"),pS=s(async e=>fS((0,Rt.join)(e,"manifest.json")),"getManifest"),xm=s(async e=>{let t=[],n=(0,Rt.join)(e,"changes");if(!await Tm(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await Wc(n);for(let a of r)i.some(o=>a.endsWith(o))&&t.push(await ur((0,Rt.join)(n,a)));return t},"getChanges"),dS=s(async e=>{let t=[],n=(0,Rt.join)(e,"ext","fragments");if(!await Tm(n))return t;let i=await Wc(n);for(let r of i){let a=(0,Rt.join)(n,r),o=await ur(a);t.push({dataSourceUri:a,fileContent:o})}return t},"getFragments"),gS=s(async(e,t)=>{var r,a,o,l,c,u,f,p;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((o=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&o.localUri){let h=(0,Rt.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:h,fileContent:await ur(h)})}if((c=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&c.annotations){for(let h of i.mainService.settings.annotations)if((f=(u=i[h])==null?void 0:u.settings)!=null&&f.localUri){let b=(0,Rt.join)(t,i[h].settings.localUri);n.push({dataSourceUri:b,fileContent:await ur(b)})}}if(n.length===0)for(let h in i){let b=i[h];if((b==null?void 0:b.type)==="ODataAnnotation"&&((p=b==null?void 0:b.settings)!=null&&p.localUri)){let C=(0,Rt.join)(t,b.settings.localUri);n.push({dataSourceUri:C,fileContent:await ur(C)})}}return n},"getAnnotations"),mS=s(async e=>{let t=(0,Rt.basename)(e),n=(0,Rt.join)(e,"webapp"),i=await pS(n),r=await gS(i,n),a=await xm(n),o=await dS(n);return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:o}},"getProject");ii(ni,H(q()),module.exports);0&&(module.exports={exportConfig,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,readDirectory});
|
|
90
90
|
/*! Bundled license information:
|
|
91
91
|
|
|
92
92
|
sax/lib/sax.js:
|