@sap/ux-specification 1.71.122 → 1.71.123
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 +28 -0
- 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 +3 -3
- package/dist/index-min.js.map +3 -3
- package/dist/specification/package.json +6 -6
- package/dist/specification/scripts/extractDocu.js +17 -7
- package/dist/specification/scripts/extractDocu.js.map +1 -1
- package/dist/specification/scripts/to-json-schema.js +17 -7
- package/dist/specification/scripts/to-json-schema.js.map +1 -1
- package/dist/specification/src/sync/common/distTagEvaluator.js +17 -7
- package/dist/specification/src/sync/common/distTagEvaluator.js.map +1 -1
- package/dist/specification/src/sync/common/flexUtils.js +17 -7
- package/dist/specification/src/sync/common/flexUtils.js.map +1 -1
- package/dist/specification/src/sync/i18n.js +17 -7
- package/dist/specification/src/sync/i18n.js.map +1 -1
- package/dist/specification/src/sync/v2/export/factory.js +17 -7
- package/dist/specification/src/sync/v2/export/factory.js.map +1 -1
- package/package.json +6 -6
package/dist/index-min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var fy=Object.create;var Ei=Object.defineProperty;var Su=Object.getOwnPropertyDescriptor;var py=Object.getOwnPropertyNames;var dy=Object.getPrototypeOf,gy=Object.prototype.hasOwnProperty;var o=(e,t)=>Ei(e,"name",{value:t,configurable:!0});var Ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Eo=(e,t)=>{for(var n in t)Ei(e,n,{get:t[n],enumerable:!0})},xo=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of py(t))!gy.call(e,r)&&r!==n&&Ei(e,r,{get:()=>t[r],enumerable:!(i=Su(t,r))||i.enumerable});return e},Xn=(e,t,n)=>(xo(e,t,"default"),n&&xo(n,t,"default")),U=(e,t,n)=>(n=e!=null?fy(dy(e)):{},xo(t||!e||!e.__esModule?Ei(n,"default",{value:e,enumerable:!0}):n,e)),my=e=>xo(Ei({},"__esModule",{value:!0}),e),m=(e,t,n,i)=>{for(var r=i>1?void 0:i?Su(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&Ei(t,n,r),r};var Of=Ie((Yx,If)=>{var bs=Object.defineProperty,yy=Object.getOwnPropertyDescriptor,hy=Object.getOwnPropertyNames,by=Object.prototype.hasOwnProperty,xu=o((e,t)=>{for(var n in t)bs(e,n,{get:t[n],enumerable:!0})},"u"),Ty=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of hy(t))!by.call(e,r)&&r!==n&&bs(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=yy(t,r))||i.enumerable});return e},"Ce"),vy=o(e=>Ty(bs({},"__esModule",{value:!0}),e),"Te"),Eu={};xu(Eu,{ACTIONTITLEPREFIX:o(()=>Ey,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>Lu,"ALPViewType"),ActionType:o(()=>Du,"ActionType"),ArtifactType:o(()=>ju,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>Py,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>ku,"ChangeIndicator"),ControlType:o(()=>$u,"ControlType"),DataSourceType:o(()=>zu,"DataSourceType"),DefinitionName:o(()=>Hu,"DefinitionName"),DirName:o(()=>_u,"DirName"),DraftDiscardEnabledSettings:o(()=>Ju,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>Nu,"ExportArtifacts"),ExportType:o(()=>Ru,"ExportType"),FACETTITLEPREFIX:o(()=>xy,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>My,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>_y,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>wy,"FRAGMENTNAMEPART"),FacetBase:o(()=>Uu,"FacetBase"),Features:o(()=>nf,"Features"),FileName:o(()=>Mu,"FileName"),FioriElementsVersion:o(()=>Au,"FioriElementsVersion"),FlexChangeLayer:o(()=>Ou,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>Xu,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>Iu,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>Ry,"GENERICAPPSETTINGS"),LogSeverity:o(()=>ef,"LogSeverity"),MANIFESTPATH:o(()=>Iy,"MANIFESTPATH"),ManifestSection:o(()=>Yu,"ManifestSection"),OdataVersion:o(()=>Pu,"OdataVersion"),PACKAGEJSON:o(()=>Oy,"PACKAGEJSON"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>Sy,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>Cy,"PageType"),PageTypeV2:o(()=>Ts,"PageTypeV2"),PropertyName:o(()=>Gu,"PropertyName"),QUICKVARPATH:o(()=>Dy,"QUICKVARPATH"),QUICKVARPATHX:o(()=>$y,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>Uy,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>ky,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>Ku,"SchemaKeyName"),SchemaTag:o(()=>Wu,"SchemaTag"),SchemaType:o(()=>Fu,"SchemaType"),SectionType:o(()=>Vu,"SectionType"),StatePreservationMode:o(()=>qu,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>Qu,"TableColumnVerticalAlignment"),TemplateType:o(()=>tf,"TemplateType"),UIVOCABULARY:o(()=>Ly,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>jy,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>Vy,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>Ny,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>Fy,"VOCWITHSLASH"),ViewTemplateType:o(()=>Bu,"ViewTemplateType"),ViewTypes:o(()=>Zu,"ViewTypes"),Visualization:o(()=>wu,"Visualization"),defaultExportResult:o(()=>Ay,"defaultExportResult"),logSeverityLabel:o(()=>By,"logSeverityLabel"),v2:o(()=>rf,"v2")});If.exports=vy(Eu);var Ts=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(Ts||{}),Cy={...Ts},Sy=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"]]),Au=(e=>(e.v2="v2",e.v4="v4",e))(Au||{}),Pu=(e=>(e.v2="v2",e.v4="v4",e))(Pu||{}),Iu=(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))(Iu||{}),Ou=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(Ou||{}),Fu=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e))(Fu||{}),Nu=(e=>(e.flex="flex",e.manifest="manifest",e))(Nu||{}),Lu=(e=>(e.Primary="primary",e.Secondary="secondary",e))(Lu||{}),Vu=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(Vu||{}),ju=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.Fragment="Fragment",e))(ju||{}),Du=(e=>(e.Annotation="Annotation",e.Custom="Custom",e.Standard="Standard",e))(Du||{}),$u=(e=>(e.Table="sap.m.Table",e.TableColumn="sap.m.Column",e.SmartTable="sap.ui.comp.smarttable.SmartTable",e.SmartFilterBar="sap.ui.comp.smartfilterbar.SmartFilterBar",e.SmartChart="sap.ui.comp.smartchart.SmartChart",e.Group="sap.ui.comp.smartform.Group",e.GroupElement="sap.ui.comp.smartform.GroupElement",e.Button="sap.m.Button",e.ToolbarButton="sap.m.OverflowToolbarButton",e.Avatar="sap.f.Avatar",e.ObjectPageDynamicHeaderTitle="sap.uxap.ObjectPageDynamicHeaderTitle",e.ObjectPageGridProperties="sap.ui.layout.GridData",e.ObjectPageHeader="sap.uxap.ObjectPageHeader",e.ObjectPageLayout="sap.uxap.ObjectPageLayout",e.HeaderAction="sap.uxap.ObjectPageHeaderActionButton",e.ObjectPageHeaderSection="sap.m.VBox",e.DynamicPage="sap.f.DynamicPage",e.Form="sap.ui.layout.form",e.Chart="sap.suite.ui.microchart",e.Section="sap.uxap.ObjectPageSection",e.SubSection="sap.uxap.ObjectPageSubSection",e))($u||{}),wu=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(wu||{}),Ru=(e=>(e.GW="GW",e.UI5Client="UI5Client",e))(Ru||{}),_u=(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))(_u||{}),Mu=(e=>(e.App="app.json",e))(Mu||{}),xy="Facet ID: ",Ey="Action ID: ",ku=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(ku||{}),Ay={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[]},Uu=(e=>(e.LineItem="LineItem",e.CollectionFacet="CollectionFacet",e.Chart="Chart",e.Form="Form",e.Identification="Identification",e.DataPoint="DataPoint",e.Address="Address",e.Contact="Contact",e.PresentationVariant="PresentationVariant",e.SelectionPresentationVariant="SelectionPresentationVariant",e.Unknown="",e))(Uu||{}),Py="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",Bu=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(Bu||{}),Hu=(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.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))(Hu||{}),Gu=(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))(Gu||{}),Wu=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlType="controlType",e.dataType="dataType",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.propertyIndex="propertyIndex",e.target="target",e))(Wu||{}),Ku=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(Ku||{}),Iy="webapp/manifest.json",Oy="package.json",Fy="/@com.sap.vocabularies",Ny="::@com.sap.vocabularies",Ly="com.sap.vocabularies.UI.v1",Vy="com.sap.vocabularies.UI.v1.",jy="@com.sap.vocabularies.UI.v1.",Dy="/quickVariantSelection",$y="/quickVariantSelectionX",wy=".fragment.",Ju=(e=>(e.restricted="restricted",e))(Ju||{}),Qu=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(Qu||{}),qu=(e=>(e.persistence="persistence",e.discovery="discovery",e))(qu||{}),Xu=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(Xu||{}),zu=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(zu||{}),Yu=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e))(Yu||{}),Ry="sap.ui.generic.app/settings",_y="sap.fe.templates.RootContainer.view.Fcl",My="appRootView",Zu=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e.JS="JS",e))(Zu||{}),ky="sap.ui.core.mvc.View",Uy="sap.ui.core.Fragment",ef=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(ef||{}),By={error:"Error",warning:"Warning",info:"Information"},tf=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(tf||{}),nf=(e=>(e.BuildingBlocks="BuildingBlocks",e))(nf||{}),rf={};xu(rf,{AvatarShape:o(()=>Sf,"AvatarShape"),ButtonType:o(()=>of,"ButtonType"),CardSettingsType:o(()=>lf,"CardSettingsType"),CardTemplateType:o(()=>sf,"CardTemplateType"),ChartCardType:o(()=>af,"ChartCardType"),ChartType:o(()=>Cf,"ChartType"),ContainerLayoutType:o(()=>Pf,"ContainerLayoutType"),CreateMode:o(()=>Af,"CreateMode"),DefaultContentView:o(()=>Tf,"DefaultContentView"),DefaultFilterMode:o(()=>vf,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>Ef,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>Wy,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>Qy,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>Jy,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>Ky,"FE_TEMPLATE_V2_OBJECT_PAGE"),HAlign:o(()=>df,"HAlign"),LinkListFlavorType:o(()=>pf,"LinkListFlavorType"),ListFlavorType:o(()=>cf,"ListFlavorType"),ListTypeType:o(()=>uf,"ListTypeType"),PopinLayout:o(()=>hf,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:o(()=>Xy,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>qy,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>Zy,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>Yy,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>zy,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>xf,"SectionPosition"),SortOrderType:o(()=>ff,"SortOrderType"),Strategy:o(()=>bf,"Strategy"),TableColumnExtensionTypeV2:o(()=>yf,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>mf,"TableTypeV2"),cardTemplateSettingsMap:o(()=>Gy,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>Hy,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>gf,"customColumnViewTypes")});var of=(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))(of||{}),af=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(af||{}),sf=(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))(sf||{}),Hy={"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"},Gy={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},lf=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(lf||{}),cf=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(cf||{}),uf=(e=>(e.extended="extended",e.condensed="condensed",e))(uf||{}),ff=(e=>(e.ascending="ascending",e.descending="descending",e))(ff||{}),pf=(e=>(e.standard="standard",e.carousel="carousel",e))(pf||{}),df=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(df||{}),gf=(e=>(e.XML="XML",e))(gf||{}),mf=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(mf||{}),yf=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(yf||{}),hf=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(hf||{}),bf=(e=>(e.extension="extension",e))(bf||{}),Tf=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Tf||{}),vf=(e=>(e.visual="visual",e.compact="compact",e))(vf||{}),Cf=(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))(Cf||{}),Sf=(e=>(e.Circle="Circle",e.Square="Square",e))(Sf||{}),xf=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(xf||{}),Ef=(e=>(e.XML="XML",e))(Ef||{}),Af=(e=>(e.inline="inline",e))(Af||{}),Wy="sap.suite.ui.generic.template",Ky="sap.suite.ui.generic.template.ObjectPage",Jy="sap.suite.ui.generic.template.ListReport",Qy="sap.suite.ui.generic.template.AnalyticalListPage",qy="sap.ui.viewExtensions",Xy="sap.ui.controllerExtensions",zy="sap.suite.ui.generic.template.ObjectPage.view.Details",Yy="sap.suite.ui.generic.template.ListReport.view.ListReport",Zy="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Pf=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Pf||{})});var Vf=Ie(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.Features=Jt.TemplateType=Jt.logSeverityLabel=Jt.LogSeverity=void 0;var Ff;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(Ff||(Jt.LogSeverity=Ff={}));Jt.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var Nf;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(Nf||(Jt.TemplateType=Nf={}));var Lf;(function(e){e.BuildingBlocks="BuildingBlocks"})(Lf||(Jt.Features=Lf={}))});var ip=Ie((tE,np)=>{var vs=Object.defineProperty,eh=Object.getOwnPropertyDescriptor,th=Object.getOwnPropertyNames,nh=Object.prototype.hasOwnProperty,ih=o((e,t)=>{for(var n in t)vs(e,n,{get:t[n],enumerable:!0})},"R"),rh=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of th(t))!nh.call(e,r)&&r!==n&&vs(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=eh(t,r))||i.enumerable});return e},"h"),oh=o(e=>rh(vs({},"__esModule",{value:!0}),e),"N"),jf={};ih(jf,{AvatarShape:o(()=>zf,"AvatarShape"),ButtonType:o(()=>Df,"ButtonType"),CardSettingsType:o(()=>Rf,"CardSettingsType"),CardTemplateType:o(()=>wf,"CardTemplateType"),ChartCardType:o(()=>$f,"ChartCardType"),ChartType:o(()=>Xf,"ChartType"),ContainerLayoutType:o(()=>tp,"ContainerLayoutType"),CreateMode:o(()=>ep,"CreateMode"),DefaultContentView:o(()=>Qf,"DefaultContentView"),DefaultFilterMode:o(()=>qf,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>Zf,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>lh,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>fh,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>uh,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>ch,"FE_TEMPLATE_V2_OBJECT_PAGE"),HAlign:o(()=>Bf,"HAlign"),LinkListFlavorType:o(()=>Uf,"LinkListFlavorType"),ListFlavorType:o(()=>_f,"ListFlavorType"),ListTypeType:o(()=>Mf,"ListTypeType"),PopinLayout:o(()=>Kf,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:o(()=>dh,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>ph,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>yh,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>mh,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>gh,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>Yf,"SectionPosition"),SortOrderType:o(()=>kf,"SortOrderType"),Strategy:o(()=>Jf,"Strategy"),TableColumnExtensionTypeV2:o(()=>Wf,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>Gf,"TableTypeV2"),cardTemplateSettingsMap:o(()=>sh,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>ah,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>Hf,"customColumnViewTypes")});np.exports=oh(jf);var Df=(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))(Df||{}),$f=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))($f||{}),wf=(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))(wf||{}),ah={"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"},sh={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},Rf=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(Rf||{}),_f=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(_f||{}),Mf=(e=>(e.extended="extended",e.condensed="condensed",e))(Mf||{}),kf=(e=>(e.ascending="ascending",e.descending="descending",e))(kf||{}),Uf=(e=>(e.standard="standard",e.carousel="carousel",e))(Uf||{}),Bf=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(Bf||{}),Hf=(e=>(e.XML="XML",e))(Hf||{}),Gf=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(Gf||{}),Wf=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(Wf||{}),Kf=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Kf||{}),Jf=(e=>(e.extension="extension",e))(Jf||{}),Qf=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Qf||{}),qf=(e=>(e.visual="visual",e.compact="compact",e))(qf||{}),Xf=(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))(Xf||{}),zf=(e=>(e.Circle="Circle",e.Square="Square",e))(zf||{}),Yf=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Yf||{}),Zf=(e=>(e.XML="XML",e))(Zf||{}),ep=(e=>(e.inline="inline",e))(ep||{}),lh="sap.suite.ui.generic.template",ch="sap.suite.ui.generic.template.ObjectPage",uh="sap.suite.ui.generic.template.ListReport",fh="sap.suite.ui.generic.template.AnalyticalListPage",ph="sap.ui.viewExtensions",dh="sap.ui.controllerExtensions",gh="sap.suite.ui.generic.template.ObjectPage.view.Details",mh="sap.suite.ui.generic.template.ListReport.view.ListReport",yh="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",tp=(e=>(e.fixed="fixed",e.resizable="resizable",e))(tp||{})});var K=Ie(ht=>{"use strict";var rp=ht&&ht.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),hh=ht&&ht.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),op=ht&&ht.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&rp(t,e,n)},bh=ht&&ht.__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)&&rp(t,e,n);return hh(t,e),t};Object.defineProperty(ht,"__esModule",{value:!0});ht.v2=void 0;op(Of(),ht);op(Vf(),ht);ht.v2=bh(ip())});var _s=Ie((CE,Tp)=>{"use strict";var Rh=o(function(t){return _h(t)&&!Mh(t)},"isMergeableObject");function _h(e){return!!e&&typeof e=="object"}o(_h,"isNonNullObject");function Mh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Bh(e)}o(Mh,"isSpecial");var kh=typeof Symbol=="function"&&Symbol.for,Uh=kh?Symbol.for("react.element"):60103;function Bh(e){return e.$$typeof===Uh}o(Bh,"isReactElement");function Hh(e){return Array.isArray(e)?[]:{}}o(Hh,"emptyTarget");function cr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Oi(Hh(e),e,t):e}o(cr,"cloneUnlessOtherwiseSpecified");function Gh(e,t,n){return e.concat(t).map(function(i){return cr(i,n)})}o(Gh,"defaultArrayMerge");function Wh(e,t){if(!t.customMerge)return Oi;var n=t.customMerge(e);return typeof n=="function"?n:Oi}o(Wh,"getMergeFunction");function Kh(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(Kh,"getEnumerableOwnPropertySymbols");function hp(e){return Object.keys(e).concat(Kh(e))}o(hp,"getKeys");function bp(e,t){try{return t in e}catch{return!1}}o(bp,"propertyIsOnObject");function Jh(e,t){return bp(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(Jh,"propertyIsUnsafe");function Qh(e,t,n){var i={};return n.isMergeableObject(e)&&hp(e).forEach(function(r){i[r]=cr(e[r],n)}),hp(t).forEach(function(r){Jh(e,r)||(bp(e,r)&&n.isMergeableObject(t[r])?i[r]=Wh(r,n)(e[r],t[r],n):i[r]=cr(t[r],n))}),i}o(Qh,"mergeObject");function Oi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Gh,n.isMergeableObject=n.isMergeableObject||Rh,n.cloneUnlessOtherwiseSpecified=cr;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):Qh(e,t,n):cr(t,n)}o(Oi,"deepmerge");Oi.all=o(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return Oi(i,r,n)},{})},"deepmergeAll");var qh=Oi;Tp.exports=qh});var Do=Ie(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.mergeAnnotations=be.addGetByValue=be.createIndexedFind=be.lazy=be.Decimal=be.Double=be.isComplexTypeDefinition=be.unalias=be.alias=be.substringBeforeLast=be.substringBeforeFirst=be.splitAtLast=be.splitAtFirst=be.defaultReferences=be.TermToTypes=be.EnumIsFlag=void 0;var Xh=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(be,"EnumIsFlag",{enumerable:!0,get:o(function(){return Xh.EnumIsFlag},"get")});var zh=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(be,"TermToTypes",{enumerable:!0,get:o(function(){return zh.TermToTypes},"get")});var Yh=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(be,"defaultReferences",{enumerable:!0,get:o(function(){return Yh.VocabularyReferences},"get")});function vp(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(vp,"splitAt");function Cp(e,t){return t<0?e:e.substring(0,t)}o(Cp,"substringAt");function jo(e,t){return vp(e,e.indexOf(t))}o(jo,"splitAtFirst");be.splitAtFirst=jo;function Sp(e,t){return vp(e,e.lastIndexOf(t))}o(Sp,"splitAtLast");be.splitAtLast=Sp;function Zh(e,t){return Cp(e,e.indexOf(t))}o(Zh,"substringBeforeFirst");be.substringBeforeFirst=Zh;function eb(e,t){return Cp(e,e.lastIndexOf(t))}o(eb,"substringBeforeLast");be.substringBeforeLast=eb;function xp(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=Sp(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=jo(t,"@");return`${a}@${xp(e,s)}`}else return t}o(xp,"alias");be.alias=xp;function Ms(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(p=>[p.alias,p])));let[s,l]=jo(a,".");if(!l||l.includes("."))return a;let c=s.startsWith("@"),u=c?s.substring(1):s,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,s)=>{let[l,c]=jo(s,"("),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("/")}o(Ms,"unalias");be.unalias=Ms;function tb(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(tb,"isComplexTypeDefinition");be.isComplexTypeDefinition=tb;function nb(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(nb,"Double");be.Double=nb;function ib(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(ib,"Decimal");be.Decimal=ib;function rb(e,t,n){let i=Symbol("initial"),r=i;Object.defineProperty(e,t,{enumerable:!0,get(){return r===i&&(r=n()),r},set(a){r=a}})}o(rb,"lazy");be.lazy=rb;function Ep(e,t){let n=new Map;return o(function(r){let a=n.get(r);return(a==null?void 0:a[t])===r?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===r})},"find")}o(Ep,"createIndexedFind");be.createIndexedFind=Ep;function ob(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:Ep(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(ob,"addGetByValue");be.addGetByValue=ob;function ab(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let c=(a=Ms(e,s))!==null&&a!==void 0?a:s;n[c]||(n[c]=[]);let u=l.map(f=>{var p;return f.term=(p=Ms(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},{})}o(ab,"mergeAnnotations");be.mergeAnnotations=ab});var _p=Ie(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.convert=void 0;var $o=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),M=Do(),_t=Symbol("Annotation Target");function ln(e,t){return e[e.length-1]!==t&&e.push(t),e}o(ln,"appendObjectPath");function At(e,t,n,i){var r,a,s,l,c;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let u=n.split("/").reduce((p,g)=>{if(g.includes("@")){let[b,E]=(0,M.splitAtFirst)(g,"@");p.push(b),p.push(`@${E}`)}else p.push(g);return p},[]);if(t===void 0)u[0].startsWith(`${e.rawSchema.namespace}.`)&&u[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(l=(s=(a=e.getConvertedEntityType(u[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(u[0]))!==null&&s!==void 0?s:e.getConvertedAction(u[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${u[0]}()`),u.shift()):t=e.getConvertedEntityContainer();else if(t[_t]!==void 0)t=t[_t];else if(t._type==="Property"){let p=(0,M.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(c=e.getConvertedEntityType(p))!==null&&c!==void 0?c:e.getConvertedComplexType(p)}let f=u.reduce((p,g)=>{var b,E,I,L,G;let oe=o(Y=>(p.messages.push({message:Y}),p.target=void 0,p),"error");if(p.target===void 0)return p;if(p.objectPath=ln(p.objectPath,p.target),g.startsWith("@")&&g!=="@$ui5.overload"){let[Y,re]=e.splitTerm(g),J=(b=p.target.annotations[Y.substring(1)])===null||b===void 0?void 0:b[re];return J!==void 0?(p.target=J,p):oe(`Annotation '${g.substring(1)}' not found on ${p.target._type} '${p.target.fullyQualifiedName}'`)}if(p.target.$target){let Y;if(g==="$AnnotationPath"?Y=p.target.value:g==="$Path"&&(Y=p.target.path),Y!==void 0){let re=At(e,p.target[_t],Y);return re.objectPath.forEach(J=>{p.objectPath.includes(J)||(p.objectPath=ln(p.objectPath,J))}),p.target=re.target,p.objectPath=ln(p.objectPath,p.target),p}}switch((E=p.target)===null||E===void 0?void 0:E._type){case"Schema":break;case"EntityContainer":{let J=p.target;if(g===""||e.unalias(g)===J.fullyQualifiedName)return p;let le=(L=(I=J.entitySets.by_name(g))!==null&&I!==void 0?I:J.singletons.by_name(g))!==null&&L!==void 0?L:J.actionImports.by_name(g);if(le)return p.target=le,p}break;case"EntitySet":case"Singleton":{let J=p.target;if(g===""||g==="$Type")return p.target=J.entityType,p;if(g==="$")return p;if(g==="$NavigationPropertyBinding"){let Ee=J.navigationPropertyBinding;return p.target=Ee,p}let le=At(e,J.entityType,g);return p.target=le.target,p.objectPath=le.objectPath.reduce(ln,p.objectPath),p}case"EntityType":{let J=p.target;if(g===""||g==="$Type")return p;let le=J.entityProperties.by_name(g);if(le)return p.target=le,p;let Ee=J.navigationProperties.by_name(g);if(Ee)return p.target=Ee,p;let C=(0,M.substringBeforeFirst)(e.unalias(g),"("),on=J.actions[C];if(on)return p.target=on,p}break;case"ActionImport":{let J=At(e,p.target.action,g);return p.target=J.target,p.objectPath=J.objectPath.reduce(ln,p.objectPath),p}case"Action":{let J=p.target;if(g===""||g==="@$ui5.overload"||g==="0")return p;if(g==="$Parameter"&&J.isBound)return p.target=J.parameters,p;let le=(G=J.parameters[g])!==null&&G!==void 0?G:J.parameters.find(Ee=>Ee.name===g);if(le)return p.target=le,p;break}case"Property":{let le=p.target.targetType;if(le!==void 0){let Ee=le.properties.by_name(g);if(Ee)return p.target=Ee,p;let C=le.navigationProperties.by_name(g);if(C)return p.target=C,p}}break;case"ActionParameter":let Y=p.target.typeReference;if(Y!==void 0){let J=At(e,Y,g);return p.target=J.target,p.objectPath=J.objectPath.reduce(ln,p.objectPath),p}break;case"NavigationProperty":let re=At(e,p.target.targetType,g);return p.target=re.target,p.objectPath=re.objectPath.reduce(ln,p.objectPath),p;default:if(g==="")return p;if(p.target[g])return p.target=p.target[g],p.objectPath=ln(p.objectPath,p.target),p}return oe(`Element '${g}' not found at ${p.target._type} '${p.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(f.messages.forEach(p=>e.logError(p.message)),!f.target)if(i){let p=Fp(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
1
|
+
var fy=Object.create;var Ei=Object.defineProperty;var Su=Object.getOwnPropertyDescriptor;var py=Object.getOwnPropertyNames;var dy=Object.getPrototypeOf,gy=Object.prototype.hasOwnProperty;var o=(e,t)=>Ei(e,"name",{value:t,configurable:!0});var Ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Eo=(e,t)=>{for(var n in t)Ei(e,n,{get:t[n],enumerable:!0})},xo=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of py(t))!gy.call(e,r)&&r!==n&&Ei(e,r,{get:()=>t[r],enumerable:!(i=Su(t,r))||i.enumerable});return e},Xn=(e,t,n)=>(xo(e,t,"default"),n&&xo(n,t,"default")),U=(e,t,n)=>(n=e!=null?fy(dy(e)):{},xo(t||!e||!e.__esModule?Ei(n,"default",{value:e,enumerable:!0}):n,e)),my=e=>xo(Ei({},"__esModule",{value:!0}),e),m=(e,t,n,i)=>{for(var r=i>1?void 0:i?Su(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&Ei(t,n,r),r};var Of=Ie((Yx,If)=>{var bs=Object.defineProperty,yy=Object.getOwnPropertyDescriptor,hy=Object.getOwnPropertyNames,by=Object.prototype.hasOwnProperty,xu=o((e,t)=>{for(var n in t)bs(e,n,{get:t[n],enumerable:!0})},"u"),Ty=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of hy(t))!by.call(e,r)&&r!==n&&bs(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=yy(t,r))||i.enumerable});return e},"Ce"),vy=o(e=>Ty(bs({},"__esModule",{value:!0}),e),"Te"),Eu={};xu(Eu,{ACTIONTITLEPREFIX:o(()=>Ey,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>Lu,"ALPViewType"),ActionType:o(()=>Du,"ActionType"),ArtifactType:o(()=>ju,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>Py,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>ku,"ChangeIndicator"),ControlType:o(()=>$u,"ControlType"),DataSourceType:o(()=>zu,"DataSourceType"),DefinitionName:o(()=>Hu,"DefinitionName"),DirName:o(()=>_u,"DirName"),DraftDiscardEnabledSettings:o(()=>Ju,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>Nu,"ExportArtifacts"),ExportType:o(()=>Ru,"ExportType"),FACETTITLEPREFIX:o(()=>xy,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>My,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>_y,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>wy,"FRAGMENTNAMEPART"),FacetBase:o(()=>Uu,"FacetBase"),Features:o(()=>nf,"Features"),FileName:o(()=>Mu,"FileName"),FioriElementsVersion:o(()=>Au,"FioriElementsVersion"),FlexChangeLayer:o(()=>Ou,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>Xu,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>Iu,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>Ry,"GENERICAPPSETTINGS"),LogSeverity:o(()=>ef,"LogSeverity"),MANIFESTPATH:o(()=>Iy,"MANIFESTPATH"),ManifestSection:o(()=>Yu,"ManifestSection"),OdataVersion:o(()=>Pu,"OdataVersion"),PACKAGEJSON:o(()=>Oy,"PACKAGEJSON"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>Sy,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>Cy,"PageType"),PageTypeV2:o(()=>Ts,"PageTypeV2"),PropertyName:o(()=>Gu,"PropertyName"),QUICKVARPATH:o(()=>Dy,"QUICKVARPATH"),QUICKVARPATHX:o(()=>$y,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>Uy,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>ky,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>Ku,"SchemaKeyName"),SchemaTag:o(()=>Wu,"SchemaTag"),SchemaType:o(()=>Fu,"SchemaType"),SectionType:o(()=>Vu,"SectionType"),StatePreservationMode:o(()=>qu,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>Qu,"TableColumnVerticalAlignment"),TemplateType:o(()=>tf,"TemplateType"),UIVOCABULARY:o(()=>Ly,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>jy,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>Vy,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>Ny,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>Fy,"VOCWITHSLASH"),ViewTemplateType:o(()=>Bu,"ViewTemplateType"),ViewTypes:o(()=>Zu,"ViewTypes"),Visualization:o(()=>wu,"Visualization"),defaultExportResult:o(()=>Ay,"defaultExportResult"),logSeverityLabel:o(()=>By,"logSeverityLabel"),v2:o(()=>rf,"v2")});If.exports=vy(Eu);var Ts=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(Ts||{}),Cy={...Ts},Sy=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"]]),Au=(e=>(e.v2="v2",e.v4="v4",e))(Au||{}),Pu=(e=>(e.v2="v2",e.v4="v4",e))(Pu||{}),Iu=(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))(Iu||{}),Ou=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(Ou||{}),Fu=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e))(Fu||{}),Nu=(e=>(e.flex="flex",e.manifest="manifest",e))(Nu||{}),Lu=(e=>(e.Primary="primary",e.Secondary="secondary",e))(Lu||{}),Vu=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(Vu||{}),ju=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.Fragment="Fragment",e))(ju||{}),Du=(e=>(e.Annotation="Annotation",e.Custom="Custom",e.Standard="Standard",e))(Du||{}),$u=(e=>(e.Table="sap.m.Table",e.TableColumn="sap.m.Column",e.SmartTable="sap.ui.comp.smarttable.SmartTable",e.SmartFilterBar="sap.ui.comp.smartfilterbar.SmartFilterBar",e.SmartChart="sap.ui.comp.smartchart.SmartChart",e.Group="sap.ui.comp.smartform.Group",e.GroupElement="sap.ui.comp.smartform.GroupElement",e.Button="sap.m.Button",e.ToolbarButton="sap.m.OverflowToolbarButton",e.Avatar="sap.f.Avatar",e.ObjectPageDynamicHeaderTitle="sap.uxap.ObjectPageDynamicHeaderTitle",e.ObjectPageGridProperties="sap.ui.layout.GridData",e.ObjectPageHeader="sap.uxap.ObjectPageHeader",e.ObjectPageLayout="sap.uxap.ObjectPageLayout",e.HeaderAction="sap.uxap.ObjectPageHeaderActionButton",e.ObjectPageHeaderSection="sap.m.VBox",e.DynamicPage="sap.f.DynamicPage",e.Form="sap.ui.layout.form",e.Chart="sap.suite.ui.microchart",e.Section="sap.uxap.ObjectPageSection",e.SubSection="sap.uxap.ObjectPageSubSection",e))($u||{}),wu=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(wu||{}),Ru=(e=>(e.GW="GW",e.UI5Client="UI5Client",e))(Ru||{}),_u=(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))(_u||{}),Mu=(e=>(e.App="app.json",e))(Mu||{}),xy="Facet ID: ",Ey="Action ID: ",ku=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(ku||{}),Ay={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[]},Uu=(e=>(e.LineItem="LineItem",e.CollectionFacet="CollectionFacet",e.Chart="Chart",e.Form="Form",e.Identification="Identification",e.DataPoint="DataPoint",e.Address="Address",e.Contact="Contact",e.PresentationVariant="PresentationVariant",e.SelectionPresentationVariant="SelectionPresentationVariant",e.Unknown="",e))(Uu||{}),Py="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",Bu=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(Bu||{}),Hu=(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.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))(Hu||{}),Gu=(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))(Gu||{}),Wu=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlType="controlType",e.dataType="dataType",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.propertyIndex="propertyIndex",e.target="target",e))(Wu||{}),Ku=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(Ku||{}),Iy="webapp/manifest.json",Oy="package.json",Fy="/@com.sap.vocabularies",Ny="::@com.sap.vocabularies",Ly="com.sap.vocabularies.UI.v1",Vy="com.sap.vocabularies.UI.v1.",jy="@com.sap.vocabularies.UI.v1.",Dy="/quickVariantSelection",$y="/quickVariantSelectionX",wy=".fragment.",Ju=(e=>(e.restricted="restricted",e))(Ju||{}),Qu=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(Qu||{}),qu=(e=>(e.persistence="persistence",e.discovery="discovery",e))(qu||{}),Xu=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(Xu||{}),zu=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(zu||{}),Yu=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e))(Yu||{}),Ry="sap.ui.generic.app/settings",_y="sap.fe.templates.RootContainer.view.Fcl",My="appRootView",Zu=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e.JS="JS",e))(Zu||{}),ky="sap.ui.core.mvc.View",Uy="sap.ui.core.Fragment",ef=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(ef||{}),By={error:"Error",warning:"Warning",info:"Information"},tf=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(tf||{}),nf=(e=>(e.BuildingBlocks="BuildingBlocks",e))(nf||{}),rf={};xu(rf,{AvatarShape:o(()=>Sf,"AvatarShape"),ButtonType:o(()=>of,"ButtonType"),CardSettingsType:o(()=>lf,"CardSettingsType"),CardTemplateType:o(()=>sf,"CardTemplateType"),ChartCardType:o(()=>af,"ChartCardType"),ChartType:o(()=>Cf,"ChartType"),ContainerLayoutType:o(()=>Pf,"ContainerLayoutType"),CreateMode:o(()=>Af,"CreateMode"),DefaultContentView:o(()=>Tf,"DefaultContentView"),DefaultFilterMode:o(()=>vf,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>Ef,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>Wy,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>Qy,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>Jy,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>Ky,"FE_TEMPLATE_V2_OBJECT_PAGE"),HAlign:o(()=>df,"HAlign"),LinkListFlavorType:o(()=>pf,"LinkListFlavorType"),ListFlavorType:o(()=>cf,"ListFlavorType"),ListTypeType:o(()=>uf,"ListTypeType"),PopinLayout:o(()=>hf,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:o(()=>Xy,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>qy,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>Zy,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>Yy,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>zy,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>xf,"SectionPosition"),SortOrderType:o(()=>ff,"SortOrderType"),Strategy:o(()=>bf,"Strategy"),TableColumnExtensionTypeV2:o(()=>yf,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>mf,"TableTypeV2"),cardTemplateSettingsMap:o(()=>Gy,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>Hy,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>gf,"customColumnViewTypes")});var of=(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))(of||{}),af=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(af||{}),sf=(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))(sf||{}),Hy={"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"},Gy={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},lf=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(lf||{}),cf=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(cf||{}),uf=(e=>(e.extended="extended",e.condensed="condensed",e))(uf||{}),ff=(e=>(e.ascending="ascending",e.descending="descending",e))(ff||{}),pf=(e=>(e.standard="standard",e.carousel="carousel",e))(pf||{}),df=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(df||{}),gf=(e=>(e.XML="XML",e))(gf||{}),mf=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(mf||{}),yf=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(yf||{}),hf=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(hf||{}),bf=(e=>(e.extension="extension",e))(bf||{}),Tf=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Tf||{}),vf=(e=>(e.visual="visual",e.compact="compact",e))(vf||{}),Cf=(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))(Cf||{}),Sf=(e=>(e.Circle="Circle",e.Square="Square",e))(Sf||{}),xf=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(xf||{}),Ef=(e=>(e.XML="XML",e))(Ef||{}),Af=(e=>(e.inline="inline",e))(Af||{}),Wy="sap.suite.ui.generic.template",Ky="sap.suite.ui.generic.template.ObjectPage",Jy="sap.suite.ui.generic.template.ListReport",Qy="sap.suite.ui.generic.template.AnalyticalListPage",qy="sap.ui.viewExtensions",Xy="sap.ui.controllerExtensions",zy="sap.suite.ui.generic.template.ObjectPage.view.Details",Yy="sap.suite.ui.generic.template.ListReport.view.ListReport",Zy="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Pf=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Pf||{})});var Vf=Ie(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.Features=Jt.TemplateType=Jt.logSeverityLabel=Jt.LogSeverity=void 0;var Ff;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(Ff||(Jt.LogSeverity=Ff={}));Jt.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var Nf;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(Nf||(Jt.TemplateType=Nf={}));var Lf;(function(e){e.BuildingBlocks="BuildingBlocks"})(Lf||(Jt.Features=Lf={}))});var ip=Ie((tE,np)=>{var vs=Object.defineProperty,eh=Object.getOwnPropertyDescriptor,th=Object.getOwnPropertyNames,nh=Object.prototype.hasOwnProperty,ih=o((e,t)=>{for(var n in t)vs(e,n,{get:t[n],enumerable:!0})},"R"),rh=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of th(t))!nh.call(e,r)&&r!==n&&vs(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=eh(t,r))||i.enumerable});return e},"h"),oh=o(e=>rh(vs({},"__esModule",{value:!0}),e),"N"),jf={};ih(jf,{AvatarShape:o(()=>zf,"AvatarShape"),ButtonType:o(()=>Df,"ButtonType"),CardSettingsType:o(()=>Rf,"CardSettingsType"),CardTemplateType:o(()=>wf,"CardTemplateType"),ChartCardType:o(()=>$f,"ChartCardType"),ChartType:o(()=>Xf,"ChartType"),ContainerLayoutType:o(()=>tp,"ContainerLayoutType"),CreateMode:o(()=>ep,"CreateMode"),DefaultContentView:o(()=>Qf,"DefaultContentView"),DefaultFilterMode:o(()=>qf,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>Zf,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>lh,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>fh,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>uh,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>ch,"FE_TEMPLATE_V2_OBJECT_PAGE"),HAlign:o(()=>Bf,"HAlign"),LinkListFlavorType:o(()=>Uf,"LinkListFlavorType"),ListFlavorType:o(()=>_f,"ListFlavorType"),ListTypeType:o(()=>Mf,"ListTypeType"),PopinLayout:o(()=>Kf,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:o(()=>dh,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>ph,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>yh,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>mh,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>gh,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>Yf,"SectionPosition"),SortOrderType:o(()=>kf,"SortOrderType"),Strategy:o(()=>Jf,"Strategy"),TableColumnExtensionTypeV2:o(()=>Wf,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>Gf,"TableTypeV2"),cardTemplateSettingsMap:o(()=>sh,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>ah,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>Hf,"customColumnViewTypes")});np.exports=oh(jf);var Df=(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))(Df||{}),$f=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))($f||{}),wf=(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))(wf||{}),ah={"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"},sh={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},Rf=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(Rf||{}),_f=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(_f||{}),Mf=(e=>(e.extended="extended",e.condensed="condensed",e))(Mf||{}),kf=(e=>(e.ascending="ascending",e.descending="descending",e))(kf||{}),Uf=(e=>(e.standard="standard",e.carousel="carousel",e))(Uf||{}),Bf=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(Bf||{}),Hf=(e=>(e.XML="XML",e))(Hf||{}),Gf=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(Gf||{}),Wf=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(Wf||{}),Kf=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Kf||{}),Jf=(e=>(e.extension="extension",e))(Jf||{}),Qf=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Qf||{}),qf=(e=>(e.visual="visual",e.compact="compact",e))(qf||{}),Xf=(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))(Xf||{}),zf=(e=>(e.Circle="Circle",e.Square="Square",e))(zf||{}),Yf=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Yf||{}),Zf=(e=>(e.XML="XML",e))(Zf||{}),ep=(e=>(e.inline="inline",e))(ep||{}),lh="sap.suite.ui.generic.template",ch="sap.suite.ui.generic.template.ObjectPage",uh="sap.suite.ui.generic.template.ListReport",fh="sap.suite.ui.generic.template.AnalyticalListPage",ph="sap.ui.viewExtensions",dh="sap.ui.controllerExtensions",gh="sap.suite.ui.generic.template.ObjectPage.view.Details",mh="sap.suite.ui.generic.template.ListReport.view.ListReport",yh="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",tp=(e=>(e.fixed="fixed",e.resizable="resizable",e))(tp||{})});var K=Ie(ht=>{"use strict";var rp=ht&&ht.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),hh=ht&&ht.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),op=ht&&ht.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&rp(t,e,n)},bh=ht&&ht.__importStar||function(){var e=o(function(t){return e=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var i=e(t),r=0;r<i.length;r++)i[r]!=="default"&&rp(n,t,i[r]);return hh(n,t),n}}();Object.defineProperty(ht,"__esModule",{value:!0});ht.v2=void 0;op(Of(),ht);op(Vf(),ht);ht.v2=bh(ip())});var _s=Ie((CE,Tp)=>{"use strict";var Rh=o(function(t){return _h(t)&&!Mh(t)},"isMergeableObject");function _h(e){return!!e&&typeof e=="object"}o(_h,"isNonNullObject");function Mh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Bh(e)}o(Mh,"isSpecial");var kh=typeof Symbol=="function"&&Symbol.for,Uh=kh?Symbol.for("react.element"):60103;function Bh(e){return e.$$typeof===Uh}o(Bh,"isReactElement");function Hh(e){return Array.isArray(e)?[]:{}}o(Hh,"emptyTarget");function cr(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Oi(Hh(e),e,t):e}o(cr,"cloneUnlessOtherwiseSpecified");function Gh(e,t,n){return e.concat(t).map(function(i){return cr(i,n)})}o(Gh,"defaultArrayMerge");function Wh(e,t){if(!t.customMerge)return Oi;var n=t.customMerge(e);return typeof n=="function"?n:Oi}o(Wh,"getMergeFunction");function Kh(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(Kh,"getEnumerableOwnPropertySymbols");function hp(e){return Object.keys(e).concat(Kh(e))}o(hp,"getKeys");function bp(e,t){try{return t in e}catch{return!1}}o(bp,"propertyIsOnObject");function Jh(e,t){return bp(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(Jh,"propertyIsUnsafe");function Qh(e,t,n){var i={};return n.isMergeableObject(e)&&hp(e).forEach(function(r){i[r]=cr(e[r],n)}),hp(t).forEach(function(r){Jh(e,r)||(bp(e,r)&&n.isMergeableObject(t[r])?i[r]=Wh(r,n)(e[r],t[r],n):i[r]=cr(t[r],n))}),i}o(Qh,"mergeObject");function Oi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Gh,n.isMergeableObject=n.isMergeableObject||Rh,n.cloneUnlessOtherwiseSpecified=cr;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):Qh(e,t,n):cr(t,n)}o(Oi,"deepmerge");Oi.all=o(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return Oi(i,r,n)},{})},"deepmergeAll");var qh=Oi;Tp.exports=qh});var Do=Ie(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.mergeAnnotations=be.addGetByValue=be.createIndexedFind=be.lazy=be.Decimal=be.Double=be.isComplexTypeDefinition=be.unalias=be.alias=be.substringBeforeLast=be.substringBeforeFirst=be.splitAtLast=be.splitAtFirst=be.defaultReferences=be.TermToTypes=be.EnumIsFlag=void 0;var Xh=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(be,"EnumIsFlag",{enumerable:!0,get:o(function(){return Xh.EnumIsFlag},"get")});var zh=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(be,"TermToTypes",{enumerable:!0,get:o(function(){return zh.TermToTypes},"get")});var Yh=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(be,"defaultReferences",{enumerable:!0,get:o(function(){return Yh.VocabularyReferences},"get")});function vp(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(vp,"splitAt");function Cp(e,t){return t<0?e:e.substring(0,t)}o(Cp,"substringAt");function jo(e,t){return vp(e,e.indexOf(t))}o(jo,"splitAtFirst");be.splitAtFirst=jo;function Sp(e,t){return vp(e,e.lastIndexOf(t))}o(Sp,"splitAtLast");be.splitAtLast=Sp;function Zh(e,t){return Cp(e,e.indexOf(t))}o(Zh,"substringBeforeFirst");be.substringBeforeFirst=Zh;function eb(e,t){return Cp(e,e.lastIndexOf(t))}o(eb,"substringBeforeLast");be.substringBeforeLast=eb;function xp(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=Sp(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=jo(t,"@");return`${a}@${xp(e,s)}`}else return t}o(xp,"alias");be.alias=xp;function Ms(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(p=>[p.alias,p])));let[s,l]=jo(a,".");if(!l||l.includes("."))return a;let c=s.startsWith("@"),u=c?s.substring(1):s,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,s)=>{let[l,c]=jo(s,"("),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("/")}o(Ms,"unalias");be.unalias=Ms;function tb(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(tb,"isComplexTypeDefinition");be.isComplexTypeDefinition=tb;function nb(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(nb,"Double");be.Double=nb;function ib(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(ib,"Decimal");be.Decimal=ib;function rb(e,t,n){let i=Symbol("initial"),r=i;Object.defineProperty(e,t,{enumerable:!0,get(){return r===i&&(r=n()),r},set(a){r=a}})}o(rb,"lazy");be.lazy=rb;function Ep(e,t){let n=new Map;return o(function(r){let a=n.get(r);return(a==null?void 0:a[t])===r?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===r})},"find")}o(Ep,"createIndexedFind");be.createIndexedFind=Ep;function ob(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:Ep(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(ob,"addGetByValue");be.addGetByValue=ob;function ab(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let c=(a=Ms(e,s))!==null&&a!==void 0?a:s;n[c]||(n[c]=[]);let u=l.map(f=>{var p;return f.term=(p=Ms(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},{})}o(ab,"mergeAnnotations");be.mergeAnnotations=ab});var _p=Ie(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.convert=void 0;var $o=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),M=Do(),_t=Symbol("Annotation Target");function ln(e,t){return e[e.length-1]!==t&&e.push(t),e}o(ln,"appendObjectPath");function At(e,t,n,i){var r,a,s,l,c;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let u=n.split("/").reduce((p,g)=>{if(g.includes("@")){let[b,E]=(0,M.splitAtFirst)(g,"@");p.push(b),p.push(`@${E}`)}else p.push(g);return p},[]);if(t===void 0)u[0].startsWith(`${e.rawSchema.namespace}.`)&&u[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(l=(s=(a=e.getConvertedEntityType(u[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(u[0]))!==null&&s!==void 0?s:e.getConvertedAction(u[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${u[0]}()`),u.shift()):t=e.getConvertedEntityContainer();else if(t[_t]!==void 0)t=t[_t];else if(t._type==="Property"){let p=(0,M.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(c=e.getConvertedEntityType(p))!==null&&c!==void 0?c:e.getConvertedComplexType(p)}let f=u.reduce((p,g)=>{var b,E,I,L,G;let oe=o(Y=>(p.messages.push({message:Y}),p.target=void 0,p),"error");if(p.target===void 0)return p;if(p.objectPath=ln(p.objectPath,p.target),g.startsWith("@")&&g!=="@$ui5.overload"){let[Y,re]=e.splitTerm(g),J=(b=p.target.annotations[Y.substring(1)])===null||b===void 0?void 0:b[re];return J!==void 0?(p.target=J,p):oe(`Annotation '${g.substring(1)}' not found on ${p.target._type} '${p.target.fullyQualifiedName}'`)}if(p.target.$target){let Y;if(g==="$AnnotationPath"?Y=p.target.value:g==="$Path"&&(Y=p.target.path),Y!==void 0){let re=At(e,p.target[_t],Y);return re.objectPath.forEach(J=>{p.objectPath.includes(J)||(p.objectPath=ln(p.objectPath,J))}),p.target=re.target,p.objectPath=ln(p.objectPath,p.target),p}}switch((E=p.target)===null||E===void 0?void 0:E._type){case"Schema":break;case"EntityContainer":{let J=p.target;if(g===""||e.unalias(g)===J.fullyQualifiedName)return p;let le=(L=(I=J.entitySets.by_name(g))!==null&&I!==void 0?I:J.singletons.by_name(g))!==null&&L!==void 0?L:J.actionImports.by_name(g);if(le)return p.target=le,p}break;case"EntitySet":case"Singleton":{let J=p.target;if(g===""||g==="$Type")return p.target=J.entityType,p;if(g==="$")return p;if(g==="$NavigationPropertyBinding"){let Ee=J.navigationPropertyBinding;return p.target=Ee,p}let le=At(e,J.entityType,g);return p.target=le.target,p.objectPath=le.objectPath.reduce(ln,p.objectPath),p}case"EntityType":{let J=p.target;if(g===""||g==="$Type")return p;let le=J.entityProperties.by_name(g);if(le)return p.target=le,p;let Ee=J.navigationProperties.by_name(g);if(Ee)return p.target=Ee,p;let C=(0,M.substringBeforeFirst)(e.unalias(g),"("),on=J.actions[C];if(on)return p.target=on,p}break;case"ActionImport":{let J=At(e,p.target.action,g);return p.target=J.target,p.objectPath=J.objectPath.reduce(ln,p.objectPath),p}case"Action":{let J=p.target;if(g===""||g==="@$ui5.overload"||g==="0")return p;if(g==="$Parameter"&&J.isBound)return p.target=J.parameters,p;let le=(G=J.parameters[g])!==null&&G!==void 0?G:J.parameters.find(Ee=>Ee.name===g);if(le)return p.target=le,p;break}case"Property":{let le=p.target.targetType;if(le!==void 0){let Ee=le.properties.by_name(g);if(Ee)return p.target=Ee,p;let C=le.navigationProperties.by_name(g);if(C)return p.target=C,p}}break;case"ActionParameter":let Y=p.target.typeReference;if(Y!==void 0){let J=At(e,Y,g);return p.target=J.target,p.objectPath=J.objectPath.reduce(ln,p.objectPath),p}break;case"NavigationProperty":let re=At(e,p.target.targetType,g);return p.target=re.target,p.objectPath=re.objectPath.reduce(ln,p.objectPath),p;default:if(g==="")return p;if(p.target[g])return p.target=p.target[g],p.objectPath=ln(p.objectPath,p.target),p}return oe(`Element '${g}' not found at ${p.target._type} '${p.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(f.messages.forEach(p=>e.logError(p.message)),!f.target)if(i){let p=Fp(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,7 +16,7 @@ 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}o(Fp,"inferTypeFromTerm");function cb(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(cb,"isDataFieldWithForAction");function ub(e,t,n,i,r){let a;return!r.type&&t?a=Fp(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(ub,"parseRecordType");function Bs(e,t,n,i,r,a,s){let l={$Type:ub(e,t,n,i,a),fullyQualifiedName:s,[_t]:n,__source:r};for(let c of a.propertyValues)(0,M.lazy)(l,c.name,()=>Op(e,n,t,c.name,r,c.value,`${s}/${c.name}`));return(0,M.lazy)(l,"annotations",Vp(e,a,l)),cb(l)&&(0,M.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}o(Bs,"parseRecord");function fb(e){let t=e.type;if(t===void 0&&e.length>0){let n=e[0];n.hasOwnProperty("PropertyPath")?t="PropertyPath":n.hasOwnProperty("Path")?t="Path":n.hasOwnProperty("AnnotationPath")?t="AnnotationPath":n.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":typeof n=="object"&&(n.hasOwnProperty("type")||n.hasOwnProperty("propertyValues"))?t="Record":typeof n=="string"&&(t="String")}else t===void 0&&(t="EmptyCollection");return t}o(fb,"getOrInferCollectionType");function Np(e,t,n,i,r,a,s){switch(fb(a)){case"PropertyPath":return a.map((c,u)=>Ap(e,c,`${s}/${u}`,t,n));case"Path":return a.map(c=>At(e,t,c.Path,n).target);case"AnnotationPath":return a.map((c,u)=>Pp(e,c,`${s}/${u}`,t,n));case"NavigationPropertyPath":return a.map((c,u)=>Ip(e,c,`${s}/${u}`,t,n));case"Record":return a.map((c,u)=>Bs(e,n,t,i,r,c,`${s}/${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")}}o(Np,"parseCollection");function pb(e){return!!e.targetTypeName}o(pb,"isV4NavigationProperty");function db(e,t,n){var i;let r;if(n.record)r=Bs(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=Np(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[_t]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,$o.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,M.lazy)(r,"annotations",Vp(e,n,r))}catch{}return r}o(db,"convertAnnotation");var Hs=class Hs{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,M.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,jp)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&r.push(s),r},[]);return(0,M.addGetByValue)(i,"name"),(0,M.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,M.alias)($o.VocabularyReferences,t);return(0,M.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,M.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(Hs,"Converter");var ks=Hs;function ur(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(ur,"resolveEntityType");function Lp(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,M.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(Lp,"resolveNavigationPropertyBindings");function cn(e,t){let n=t.annotations;return()=>wo(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(cn,"resolveAnnotations");function Vp(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[_t]=n[_t],a.fullyQualifiedName=`${i}@${a.term}`}),wo(e,n,r??[])}}o(Vp,"resolveAnnotationsOnAnnotation");function wo(e,t,n){return n.reduce((i,r)=>{let[a,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,M.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(c,u)=>db(c,t,u))),i},{})}o(wo,"createAnnotationsObject");function jp(e,t){let n=t;return(0,M.lazy)(n,"annotations",cn(e,t)),(0,M.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,$p)),(0,M.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,Dp)),(0,M.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,Rp)),n}o(jp,"convertEntityContainer");function Dp(e,t){let n=t;(0,M.lazy)(n,"entityType",ur(e,t.entityTypeName)),(0,M.lazy)(n,"annotations",cn(e,n));let i=t.navigationPropertyBinding;return(0,M.lazy)(n,"navigationPropertyBinding",Lp(e,i)),n}o(Dp,"convertSingleton");function $p(e,t){let n=t;(0,M.lazy)(n,"entityType",ur(e,t.entityTypeName)),(0,M.lazy)(n,"annotations",cn(e,n));let i=t.navigationPropertyBinding;return(0,M.lazy)(n,"navigationPropertyBinding",Lp(e,i)),n}o($p,"convertEntitySet");function gb(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,M.lazy)(n,"annotations",cn(e,t)),(0,M.lazy)(n,"keys",e.convert(t.keys,Us)),(0,M.lazy)(n,"entityProperties",e.convert(t.entityProperties,Us)),(0,M.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,wp)),(0,M.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=At(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(gb,"convertEntityType");function Us(e,t){let n=t;return(0,M.lazy)(n,"annotations",cn(e,t)),(0,M.lazy)(n,"targetType",()=>{var i;let r=t.type,a=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}o(Us,"convertProperty");function wp(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!pb(t)){let s=(i=e.rawSchema.associations.find(l=>l.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(l=>l.role===t.toRole);a.isCollection=(s==null?void 0:s.multiplicity)==="*",a.targetTypeName=(r=s==null?void 0:s.type)!==null&&r!==void 0?r:""}return(0,M.lazy)(a,"targetType",ur(e,t.targetTypeName)),(0,M.lazy)(a,"annotations",cn(e,t)),a}o(wp,"convertNavigationProperty");function Rp(e,t){let n=t;return(0,M.lazy)(n,"annotations",cn(e,t)),(0,M.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}o(Rp,"convertActionImport");function mb(e,t){let n=t;return n.sourceType&&(0,M.lazy)(n,"sourceEntityType",ur(e,t.sourceType)),n.returnType&&(0,M.lazy)(n,"returnEntityType",ur(e,t.returnType)),(0,M.lazy)(n,"parameters",e.convert(t.parameters,yb)),(0,M.lazy)(n,"annotations",()=>{let i=(0,M.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return wo(e,t,a)}),n}o(mb,"convertAction");function yb(e,t){let n=t;return(0,M.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,M.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return wo(e,t,a)}),n}o(yb,"convertActionParameter");function hb(e,t){let n=t;return(0,M.lazy)(n,"properties",e.convert(t.properties,Us)),(0,M.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,wp)),(0,M.lazy)(n,"annotations",cn(e,t)),n}o(hb,"convertComplexType");function bb(e,t){let n=t;return(0,M.lazy)(n,"annotations",cn(e,t)),n}o(bb,"convertTypeDefinition");function Tb(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:$o.VocabularyReferences,diagnostics:[]},n=new ks(e,t);return(0,M.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,jp)),(0,M.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,$p)),(0,M.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,Dp)),(0,M.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,gb)),(0,M.lazy)(t,"actions",n.convert(n.rawSchema.actions,mb)),(0,M.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,hb)),(0,M.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,Rp)),(0,M.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,bb)),t.resolvePath=o(function(r){let a=At(n,void 0,r);return a.target&&ln(a.objectPath,a.target),a},"resolvePath"),t}o(Tb,"convert");Ro.convert=Tb});var Bp=Ie(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.revertTermToGenericType=void 0;var vb=Do();function Cb(e,t){var n,i,r,a,s,l,c;let u;if(Array.isArray(t))u={type:"Collection",Collection:t.map(f=>_o(e,f))};else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))u={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))u={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let f=t.valueOf().split(".");f.length>1&&e.find(p=>p.alias===f[0])?u={type:"EnumMember",EnumMember:t.valueOf()}:u={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?u={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?u={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?u={type:"Date",Date:t.valueOf()}:!((c=t.isBoolean)===null||c===void 0)&&c.call(t)?u={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?u={type:"Path",Path:t.path}:t.type==="AnnotationPath"?u={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?u={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?u={type:"Null"}:t.type==="PropertyPath"?u={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?u={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(u={type:"Record",Record:_o(e,t)});return u}o(Cb,"revertObjectToRawType");function Mp(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=Cb(e,t);break}return n}o(Mp,"revertValueToRawType");var Sb=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function kp(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=Up(e,t[i][r]);if(!a.term){let s=(0,vb.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}o(kp,"revertAnnotationsToRawType");function _o(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(Sb.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:Mp(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],kp(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}}}o(_o,"revertCollectionItemToRawType");function Up(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=[],kp(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>_o(e,i))}):t.hasOwnProperty("$Type")?{...n,record:_o(e,t)}:{...n,value:Mp(e,t)}}o(Up,"revertTermToGenericType");Mo.revertTermToGenericType=Up});var Hp=Ie(un=>{"use strict";var xb=un&&un.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),Gs=un&&un.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&xb(t,e,n)};Object.defineProperty(un,"__esModule",{value:!0});Gs(_p(),un);Gs(Do(),un);Gs(Bp(),un)});var qs=Ie(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.MergedRawMetadata=En.RawMetadataInstance=En.ensureArray=void 0;function Eb(e){return e==null?[]:Array.isArray(e)?e:[e]}o(Eb,"ensureArray");En.ensureArray=Eb;var Js=class Js{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(Js,"RawMetadataInstance");var Ws=Js;En.RawMetadataInstance=Ws;var Qs=class Qs{get references(){return this._references}get schema(){return{associations:this._associations,associationSets:this._associationSets,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,singletons:this._singletons,complexTypes:this._complexTypes,typeDefinitions:this._typeDefinitions,actions:this._actions,actionImports:this._actionImports,entityTypes:this._entityTypes}}constructor(t){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._associationSets=[],this._entitySets=[],this._singletons=[],this._actions=[],this._actionImports=[],this._entityContainer={_type:"EntityContainer",fullyQualifiedName:""},this._entityTypes=[],this._complexTypes=[],this._typeDefinitions=[],this.identification="mergedParserInstance",this.version=t.version,this._namespace=t.schema.namespace}addParserOutput(t){this._parserOutput.push(t),this._references=this._references.concat(t.references),this._associations=this._associations.concat(t.schema.associations),this._associationSets=this._associationSets.concat(t.schema.associationSets),this._annotations=Object.assign(this._annotations,t.schema.annotations),this._entitySets=this._entitySets.concat(t.schema.entitySets),this._singletons=this._singletons.concat(t.schema.singletons),this._actions=this._actions.concat(t.schema.actions),this._actionImports=this._actionImports.concat(t.schema.actionImports),this._entityTypes=this._entityTypes.concat(t.schema.entityTypes),this._complexTypes=this._complexTypes.concat(t.schema.complexTypes),this._typeDefinitions=this._typeDefinitions.concat(t.schema.typeDefinitions),t.schema.entityContainer.fullyQualifiedName.length>0&&(this._entityContainer=Object.assign(this._entityContainer,t.schema.entityContainer))}};o(Qs,"MergedRawMetadata");var Ks=Qs;En.MergedRawMetadata=Ks});var Gp=Ie(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.merge=void 0;var Ab=qs();function Pb(...e){let t=new Ab.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(Pb,"merge");ko.merge=Pb});var Wp=Ie(Uo=>{(function(e){e.parser=function(h,d){return new n(h,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(h,d){if(!(this instanceof n))return new n(h,d);var P=this;r(P),P.q=P.c="",P.bufferCheckPosition=e.MAX_BUFFER_LENGTH,P.opt=d||{},P.opt.lowercase=P.opt.lowercase||P.opt.lowercasetags,P.looseCase=P.opt.lowercase?"toLowerCase":"toUpperCase",P.tags=[],P.closed=P.closedRoot=P.sawRoot=!1,P.tag=P.error=null,P.strict=!!h,P.noscript=!!(h||P.opt.noscript),P.state=C.BEGIN,P.strictEntities=P.opt.strictEntities,P.ENTITIES=P.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),P.attribList=[],P.opt.xmlns&&(P.ns=Object.create(E)),P.opt.unquotedAttributeValues===void 0&&(P.opt.unquotedAttributeValues=!h),P.trackPosition=P.opt.position!==!1,P.trackPosition&&(P.position=P.line=P.column=0),Wt(P,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(h){function d(){}o(d,"F"),d.prototype=h;var P=new d;return P}),Object.keys||(Object.keys=function(h){var d=[];for(var P in h)h.hasOwnProperty(P)&&d.push(P);return d});function i(h){for(var d=Math.max(e.MAX_BUFFER_LENGTH,10),P=0,T=0,se=t.length;T<se;T++){var ke=h[t[T]].length;if(ke>d)switch(t[T]){case"textNode":xn(h);break;case"cdata":Pe(h,"oncdata",h.cdata),h.cdata="";break;case"script":Pe(h,"onscript",h.script),h.script="";break;default:mt(h,"Max buffer length exceeded: "+t[T])}P=Math.max(P,ke)}var Le=e.MAX_BUFFER_LENGTH-P;h.bufferCheckPosition=Le+h.position}o(i,"checkBufferLength");function r(h){for(var d=0,P=t.length;d<P;d++)h[t[d]]=""}o(r,"clearBuffers");function a(h){xn(h),h.cdata!==""&&(Pe(h,"oncdata",h.cdata),h.cdata=""),h.script!==""&&(Pe(h,"onscript",h.script),h.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Nt(this)},"end"),write:Re,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(h){return h!=="error"&&h!=="end"});function c(h,d){return new u(h,d)}o(c,"createStream");function u(h,d){if(!(this instanceof u))return new u(h,d);s.apply(this),this._parser=new n(h,d),this.writable=!0,this.readable=!0;var P=this;this._parser.onend=function(){P.emit("end")},this._parser.onerror=function(T){P.emit("error",T),P._parser.error=null},this._decoder=null,l.forEach(function(T){Object.defineProperty(P,"on"+T,{get:o(function(){return P._parser["on"+T]},"get"),set:o(function(se){if(!se)return P.removeAllListeners(T),P._parser["on"+T]=se,se;P.on(T,se)},"set"),enumerable:!0,configurable:!1})})}o(u,"SAXStream"),u.prototype=Object.create(s.prototype,{constructor:{value:u}}),u.prototype.write=function(h){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(h)){if(!this._decoder){var d=require("string_decoder").StringDecoder;this._decoder=new d("utf8")}h=this._decoder.write(h)}return this._parser.write(h.toString()),this.emit("data",h),!0},u.prototype.end=function(h){return h&&h.length&&this.write(h),this._parser.end(),!0},u.prototype.on=function(h,d){var P=this;return!P._parser["on"+h]&&l.indexOf(h)!==-1&&(P._parser["on"+h]=function(){var T=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);T.splice(0,0,h),P.emit.apply(P,T)}),s.prototype.on.call(P,h,d)};var f="[CDATA[",p="DOCTYPE",g="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",E={xml:g,xmlns:b},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]/,L=/[:_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-]/,G=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,oe=/[#:_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 Y(h){return h===" "||h===`
|
|
19
|
+
</Annotations>`),r}o(Fp,"inferTypeFromTerm");function cb(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(cb,"isDataFieldWithForAction");function ub(e,t,n,i,r){let a;return!r.type&&t?a=Fp(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(ub,"parseRecordType");function Bs(e,t,n,i,r,a,s){let l={$Type:ub(e,t,n,i,a),fullyQualifiedName:s,[_t]:n,__source:r};for(let c of a.propertyValues)(0,M.lazy)(l,c.name,()=>Op(e,n,t,c.name,r,c.value,`${s}/${c.name}`));return(0,M.lazy)(l,"annotations",Vp(e,a,l)),cb(l)&&(0,M.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}o(Bs,"parseRecord");function fb(e){let t=e.type;if(t===void 0&&e.length>0){let n=e[0];n.hasOwnProperty("PropertyPath")?t="PropertyPath":n.hasOwnProperty("Path")?t="Path":n.hasOwnProperty("AnnotationPath")?t="AnnotationPath":n.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":typeof n=="object"&&(n.hasOwnProperty("type")||n.hasOwnProperty("propertyValues"))?t="Record":typeof n=="string"&&(t="String")}else t===void 0&&(t="EmptyCollection");return t}o(fb,"getOrInferCollectionType");function Np(e,t,n,i,r,a,s){switch(fb(a)){case"PropertyPath":return a.map((c,u)=>Ap(e,c,`${s}/${u}`,t,n));case"Path":return a.map(c=>At(e,t,c.Path,n).target);case"AnnotationPath":return a.map((c,u)=>Pp(e,c,`${s}/${u}`,t,n));case"NavigationPropertyPath":return a.map((c,u)=>Ip(e,c,`${s}/${u}`,t,n));case"Record":return a.map((c,u)=>Bs(e,n,t,i,r,c,`${s}/${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")}}o(Np,"parseCollection");function pb(e){return!!e.targetTypeName}o(pb,"isV4NavigationProperty");function db(e,t,n){var i;let r;if(n.record)r=Bs(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=Np(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[_t]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,$o.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,M.lazy)(r,"annotations",Vp(e,n,r))}catch{}return r}o(db,"convertAnnotation");var Hs=class Hs{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,M.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,jp)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&r.push(s),r},[]);return(0,M.addGetByValue)(i,"name"),(0,M.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,M.alias)($o.VocabularyReferences,t);return(0,M.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,M.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(Hs,"Converter");var ks=Hs;function ur(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(ur,"resolveEntityType");function Lp(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,M.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(Lp,"resolveNavigationPropertyBindings");function cn(e,t){let n=t.annotations;return()=>wo(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(cn,"resolveAnnotations");function Vp(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[_t]=n[_t],a.fullyQualifiedName=`${i}@${a.term}`}),wo(e,n,r??[])}}o(Vp,"resolveAnnotationsOnAnnotation");function wo(e,t,n){return n.reduce((i,r)=>{let[a,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,M.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(c,u)=>db(c,t,u))),i},{})}o(wo,"createAnnotationsObject");function jp(e,t){let n=t;return(0,M.lazy)(n,"annotations",cn(e,t)),(0,M.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,$p)),(0,M.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,Dp)),(0,M.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,Rp)),n}o(jp,"convertEntityContainer");function Dp(e,t){let n=t;(0,M.lazy)(n,"entityType",ur(e,t.entityTypeName)),(0,M.lazy)(n,"annotations",cn(e,n));let i=t.navigationPropertyBinding;return(0,M.lazy)(n,"navigationPropertyBinding",Lp(e,i)),n}o(Dp,"convertSingleton");function $p(e,t){let n=t;(0,M.lazy)(n,"entityType",ur(e,t.entityTypeName)),(0,M.lazy)(n,"annotations",cn(e,n));let i=t.navigationPropertyBinding;return(0,M.lazy)(n,"navigationPropertyBinding",Lp(e,i)),n}o($p,"convertEntitySet");function gb(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,M.lazy)(n,"annotations",cn(e,t)),(0,M.lazy)(n,"keys",e.convert(t.keys,Us)),(0,M.lazy)(n,"entityProperties",e.convert(t.entityProperties,Us)),(0,M.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,wp)),(0,M.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=At(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(gb,"convertEntityType");function Us(e,t){let n=t;return(0,M.lazy)(n,"annotations",cn(e,t)),(0,M.lazy)(n,"targetType",()=>{var i;let r=t.type,a=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}o(Us,"convertProperty");function wp(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!pb(t)){let s=(i=e.rawSchema.associations.find(l=>l.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(l=>l.role===t.toRole);a.isCollection=(s==null?void 0:s.multiplicity)==="*",a.targetTypeName=(r=s==null?void 0:s.type)!==null&&r!==void 0?r:""}return(0,M.lazy)(a,"targetType",ur(e,t.targetTypeName)),(0,M.lazy)(a,"annotations",cn(e,t)),a}o(wp,"convertNavigationProperty");function Rp(e,t){let n=t;return(0,M.lazy)(n,"annotations",cn(e,t)),(0,M.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}o(Rp,"convertActionImport");function mb(e,t){let n=t;return n.sourceType&&(0,M.lazy)(n,"sourceEntityType",ur(e,t.sourceType)),n.returnType&&(0,M.lazy)(n,"returnEntityType",ur(e,t.returnType)),(0,M.lazy)(n,"parameters",e.convert(t.parameters,yb)),(0,M.lazy)(n,"annotations",()=>{let i=(0,M.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return wo(e,t,a)}),n}o(mb,"convertAction");function yb(e,t){let n=t;return(0,M.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,M.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(c=>c.term===l.term&&c.qualifier===l.qualifier)||a.push(l);return wo(e,t,a)}),n}o(yb,"convertActionParameter");function hb(e,t){let n=t;return(0,M.lazy)(n,"properties",e.convert(t.properties,Us)),(0,M.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,wp)),(0,M.lazy)(n,"annotations",cn(e,t)),n}o(hb,"convertComplexType");function bb(e,t){let n=t;return(0,M.lazy)(n,"annotations",cn(e,t)),n}o(bb,"convertTypeDefinition");function Tb(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:$o.VocabularyReferences,diagnostics:[]},n=new ks(e,t);return(0,M.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,jp)),(0,M.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,$p)),(0,M.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,Dp)),(0,M.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,gb)),(0,M.lazy)(t,"actions",n.convert(n.rawSchema.actions,mb)),(0,M.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,hb)),(0,M.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,Rp)),(0,M.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,bb)),t.resolvePath=o(function(r){let a=At(n,void 0,r);return a.target&&ln(a.objectPath,a.target),a},"resolvePath"),t}o(Tb,"convert");Ro.convert=Tb});var Bp=Ie(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.revertTermToGenericType=void 0;var vb=Do();function Cb(e,t){var n,i,r,a,s,l,c;let u;if(Array.isArray(t))u={type:"Collection",Collection:t.map(f=>_o(e,f))};else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))u={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))u={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let f=t.valueOf().split(".");f.length>1&&e.find(p=>p.alias===f[0])?u={type:"EnumMember",EnumMember:t.valueOf()}:u={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?u={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?u={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?u={type:"Date",Date:t.valueOf()}:!((c=t.isBoolean)===null||c===void 0)&&c.call(t)?u={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?u={type:"Path",Path:t.path}:t.type==="AnnotationPath"?u={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?u={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?u={type:"Null"}:t.type==="PropertyPath"?u={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?u={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(u={type:"Record",Record:_o(e,t)});return u}o(Cb,"revertObjectToRawType");function Mp(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=Cb(e,t);break}return n}o(Mp,"revertValueToRawType");var Sb=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function kp(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=Up(e,t[i][r]);if(!a.term){let s=(0,vb.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}o(kp,"revertAnnotationsToRawType");function _o(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(Sb.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:Mp(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],kp(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value};if(t.type==="Constant")return t.value}}o(_o,"revertCollectionItemToRawType");function Up(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=[],kp(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>_o(e,i))}):t.hasOwnProperty("$Type")?{...n,record:_o(e,t)}:{...n,value:Mp(e,t)}}o(Up,"revertTermToGenericType");Mo.revertTermToGenericType=Up});var Hp=Ie(un=>{"use strict";var xb=un&&un.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),Gs=un&&un.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&xb(t,e,n)};Object.defineProperty(un,"__esModule",{value:!0});Gs(_p(),un);Gs(Do(),un);Gs(Bp(),un)});var qs=Ie(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.MergedRawMetadata=En.RawMetadataInstance=En.ensureArray=void 0;function Eb(e){return e==null?[]:Array.isArray(e)?e:[e]}o(Eb,"ensureArray");En.ensureArray=Eb;var Js=class Js{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(Js,"RawMetadataInstance");var Ws=Js;En.RawMetadataInstance=Ws;var Qs=class Qs{get references(){return this._references}get schema(){return{associations:this._associations,associationSets:this._associationSets,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,singletons:this._singletons,complexTypes:this._complexTypes,typeDefinitions:this._typeDefinitions,actions:this._actions,actionImports:this._actionImports,entityTypes:this._entityTypes}}constructor(t){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._associationSets=[],this._entitySets=[],this._singletons=[],this._actions=[],this._actionImports=[],this._entityContainer={_type:"EntityContainer",fullyQualifiedName:""},this._entityTypes=[],this._complexTypes=[],this._typeDefinitions=[],this.identification="mergedParserInstance",this.version=t.version,this._namespace=t.schema.namespace}addParserOutput(t){this._parserOutput.push(t),this._references=this._references.concat(t.references),this._associations=this._associations.concat(t.schema.associations),this._associationSets=this._associationSets.concat(t.schema.associationSets),this._annotations=Object.assign(this._annotations,t.schema.annotations),this._entitySets=this._entitySets.concat(t.schema.entitySets),this._singletons=this._singletons.concat(t.schema.singletons),this._actions=this._actions.concat(t.schema.actions),this._actionImports=this._actionImports.concat(t.schema.actionImports),this._entityTypes=this._entityTypes.concat(t.schema.entityTypes),this._complexTypes=this._complexTypes.concat(t.schema.complexTypes),this._typeDefinitions=this._typeDefinitions.concat(t.schema.typeDefinitions),t.schema.entityContainer.fullyQualifiedName.length>0&&(this._entityContainer=Object.assign(this._entityContainer,t.schema.entityContainer))}};o(Qs,"MergedRawMetadata");var Ks=Qs;En.MergedRawMetadata=Ks});var Gp=Ie(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.merge=void 0;var Ab=qs();function Pb(...e){let t=new Ab.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(Pb,"merge");ko.merge=Pb});var Wp=Ie(Uo=>{(function(e){e.parser=function(h,d){return new n(h,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(h,d){if(!(this instanceof n))return new n(h,d);var P=this;r(P),P.q=P.c="",P.bufferCheckPosition=e.MAX_BUFFER_LENGTH,P.opt=d||{},P.opt.lowercase=P.opt.lowercase||P.opt.lowercasetags,P.looseCase=P.opt.lowercase?"toLowerCase":"toUpperCase",P.tags=[],P.closed=P.closedRoot=P.sawRoot=!1,P.tag=P.error=null,P.strict=!!h,P.noscript=!!(h||P.opt.noscript),P.state=C.BEGIN,P.strictEntities=P.opt.strictEntities,P.ENTITIES=P.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),P.attribList=[],P.opt.xmlns&&(P.ns=Object.create(E)),P.opt.unquotedAttributeValues===void 0&&(P.opt.unquotedAttributeValues=!h),P.trackPosition=P.opt.position!==!1,P.trackPosition&&(P.position=P.line=P.column=0),Wt(P,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(h){function d(){}o(d,"F"),d.prototype=h;var P=new d;return P}),Object.keys||(Object.keys=function(h){var d=[];for(var P in h)h.hasOwnProperty(P)&&d.push(P);return d});function i(h){for(var d=Math.max(e.MAX_BUFFER_LENGTH,10),P=0,T=0,se=t.length;T<se;T++){var ke=h[t[T]].length;if(ke>d)switch(t[T]){case"textNode":xn(h);break;case"cdata":Pe(h,"oncdata",h.cdata),h.cdata="";break;case"script":Pe(h,"onscript",h.script),h.script="";break;default:mt(h,"Max buffer length exceeded: "+t[T])}P=Math.max(P,ke)}var Le=e.MAX_BUFFER_LENGTH-P;h.bufferCheckPosition=Le+h.position}o(i,"checkBufferLength");function r(h){for(var d=0,P=t.length;d<P;d++)h[t[d]]=""}o(r,"clearBuffers");function a(h){xn(h),h.cdata!==""&&(Pe(h,"oncdata",h.cdata),h.cdata=""),h.script!==""&&(Pe(h,"onscript",h.script),h.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Nt(this)},"end"),write:Re,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(h){return h!=="error"&&h!=="end"});function c(h,d){return new u(h,d)}o(c,"createStream");function u(h,d){if(!(this instanceof u))return new u(h,d);s.apply(this),this._parser=new n(h,d),this.writable=!0,this.readable=!0;var P=this;this._parser.onend=function(){P.emit("end")},this._parser.onerror=function(T){P.emit("error",T),P._parser.error=null},this._decoder=null,l.forEach(function(T){Object.defineProperty(P,"on"+T,{get:o(function(){return P._parser["on"+T]},"get"),set:o(function(se){if(!se)return P.removeAllListeners(T),P._parser["on"+T]=se,se;P.on(T,se)},"set"),enumerable:!0,configurable:!1})})}o(u,"SAXStream"),u.prototype=Object.create(s.prototype,{constructor:{value:u}}),u.prototype.write=function(h){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(h)){if(!this._decoder){var d=require("string_decoder").StringDecoder;this._decoder=new d("utf8")}h=this._decoder.write(h)}return this._parser.write(h.toString()),this.emit("data",h),!0},u.prototype.end=function(h){return h&&h.length&&this.write(h),this._parser.end(),!0},u.prototype.on=function(h,d){var P=this;return!P._parser["on"+h]&&l.indexOf(h)!==-1&&(P._parser["on"+h]=function(){var T=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);T.splice(0,0,h),P.emit.apply(P,T)}),s.prototype.on.call(P,h,d)};var f="[CDATA[",p="DOCTYPE",g="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",E={xml:g,xmlns:b},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]/,L=/[:_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-]/,G=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,oe=/[#:_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 Y(h){return h===" "||h===`
|
|
20
20
|
`||h==="\r"||h===" "}o(Y,"isWhitespace");function re(h){return h==='"'||h==="'"}o(re,"isQuote");function J(h){return h===">"||Y(h)}o(J,"isAttribEnd");function le(h,d){return h.test(d)}o(le,"isMatch");function Ee(h,d){return!le(h,d)}o(Ee,"notMatch");var C=0;e.STATE={BEGIN:C++,BEGIN_WHITESPACE:C++,TEXT:C++,TEXT_ENTITY:C++,OPEN_WAKA:C++,SGML_DECL:C++,SGML_DECL_QUOTED:C++,DOCTYPE:C++,DOCTYPE_QUOTED:C++,DOCTYPE_DTD:C++,DOCTYPE_DTD_QUOTED:C++,COMMENT_STARTING:C++,COMMENT:C++,COMMENT_ENDING:C++,COMMENT_ENDED:C++,CDATA:C++,CDATA_ENDING:C++,CDATA_ENDING_2:C++,PROC_INST:C++,PROC_INST_BODY:C++,PROC_INST_ENDING:C++,OPEN_TAG:C++,OPEN_TAG_SLASH:C++,ATTRIB:C++,ATTRIB_NAME:C++,ATTRIB_NAME_SAW_WHITE:C++,ATTRIB_VALUE:C++,ATTRIB_VALUE_QUOTED:C++,ATTRIB_VALUE_CLOSED:C++,ATTRIB_VALUE_UNQUOTED:C++,ATTRIB_VALUE_ENTITY_Q:C++,ATTRIB_VALUE_ENTITY_U:C++,CLOSE_TAG:C++,CLOSE_TAG_SAW_WHITE:C++,SCRIPT:C++,SCRIPT_ENDING:C++},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(h){var d=e.ENTITIES[h],P=typeof d=="number"?String.fromCharCode(d):d;e.ENTITIES[h]=P});for(var on in e.STATE)e.STATE[e.STATE[on]]=on;C=e.STATE;function Wt(h,d,P){h[d]&&h[d](P)}o(Wt,"emit");function Pe(h,d,P){h.textNode&&xn(h),Wt(h,d,P)}o(Pe,"emitNode");function xn(h){h.textNode=Ci(h.opt,h.textNode),h.textNode&&Wt(h,"ontext",h.textNode),h.textNode=""}o(xn,"closeText");function Ci(h,d){return h.trim&&(d=d.trim()),h.normalize&&(d=d.replace(/\s+/g," ")),d}o(Ci,"textopts");function mt(h,d){return xn(h),h.trackPosition&&(d+=`
|
|
21
21
|
Line: `+h.line+`
|
|
22
22
|
Column: `+h.column+`
|
|
@@ -79,7 +79,7 @@ try {
|
|
|
79
79
|
`;break;case Ye.modes.ESCAPED:this.source+=" ; __append(escapeFn("+tm(e)+`))
|
|
80
80
|
`;break;case Ye.modes.RAW:this.source+=" ; __append("+tm(e)+`)
|
|
81
81
|
`;break;case Ye.modes.COMMENT:break;case Ye.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&a&&(this.currentLine+=a,this.source+=" ; __line = "+this.currentLine+`
|
|
82
|
-
`)},"scanLine")};Ce.escapeXML=Ke.escapeXML;Ce.__express=Ce.renderFile;Ce.VERSION=vv;Ce.name=Ev;typeof window<"u"&&(window.ejs=Ce)});var Cn={};Eo(Cn,{deleteConfigEntityByPath:()=>kx,exportConfig:()=>_x,exportConfigEntityByPath:()=>Mx,generateSchema:()=>Rx,getApiVersion:()=>Gx,getChanges:()=>ty,getGenericSchema:()=>ms,getPathToGenericSchema:()=>wm,getProject:()=>Xx,importConfig:()=>Ux,importProject:()=>Bx,importProjectSchema:()=>Hx,isDirectory:()=>Kx,log:()=>q,readDirectory:()=>vu});module.exports=my(Cn);var Se=U(K());var N=U(K());var ne=o(e=>typeof e=="string","isString"),or=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),ap=o(e=>e==null?"":""+e,"makeString"),Th=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),vh=/###/g,sp=o(e=>e&&e.indexOf("###")>-1?e.replace(vh,"."):e,"cleanKey"),lp=o(e=>!e||ne(e),"canNotTraverseDeeper"),ar=o((e,t,n)=>{let i=ne(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(lp(e))return{};let a=sp(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return lp(e)?{}:{obj:e,k:sp(i[r])}},"getLastOfPath"),cp=o((e,t,n)=>{let{obj:i,k:r}=ar(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=ar(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=ar(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),Ch=o((e,t,n,i)=>{let{obj:r,k:a}=ar(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),Po=o((e,t)=>{let{obj:n,k:i}=ar(e,t);if(n)return n[i]},"getPath"),Sh=o((e,t,n)=>{let i=Po(e,n);return i!==void 0?i:Po(t,n)},"getPathWithDefaults"),mp=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?ne(e[i])||e[i]instanceof String||ne(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):mp(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),Ai=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),xh={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},Eh=o(e=>ne(e)?e.replace(/[&<>"'\/]/g,t=>xh[t]):e,"escape"),Ns=class Ns{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let n=this.regExpMap.get(t);if(n!==void 0)return n;let i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}};o(Ns,"RegExpCache");var xs=Ns,Ah=[" ",",","?","!",";"],Ph=new xs(20),Ih=o((e,t,n)=>{t=t||"",n=n||"";let i=Ah.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=Ph.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),Es=o(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let c=a;c<i.length;++c)if(c!==a&&(l+=n),l+=i[c],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&c<i.length-1)continue;a+=c-a+1;break}r=s}return r},"deepFind"),Io=o(e=>e&&e.replace("_","-"),"getCleanedCode"),Oh={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},sr=class sr{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Oh,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(ne(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new sr(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new sr(this.logger,t)}};o(sr,"Logger");var As=sr,Qt=new As,Ls=class Ls{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,c]=s;for(let u=0;u<c;u++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,c]=s;for(let u=0;u<c;u++)l.apply(l,[t,...i])})}};o(Ls,"EventEmitter");var Ii=Ls,Vs=class Vs extends Ii{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):ne(i)&&a?l.push(...i.split(a)):l.push(i)));let c=Po(this.data,l);return!c&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),c||!s||!ne(i)?c:Es(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),cp(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(ne(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let c=Po(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?mp(c,i,a):c={...c,...i},cp(this.data,l,c),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(Vs,"ResourceStore");var Oo=Vs,yp={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,r))}),t}},up={},Vo=class Vo extends Ii{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Th(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Qt.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let i=this.resolve(t,n);return i&&i.res!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Ih(t,i,r);if(s&&!l){let c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:ne(a)?[a]:a};let u=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),t=u.join(r)}return{key:t,namespaces:ne(a)?[a]:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),c=l[l.length-1],u=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(f){let re=n.nsSeparator||this.options.nsSeparator;return r?{res:`${c}${re}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${re}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:s}let p=this.resolve(t,n),g=p&&p.res,b=p&&p.usedKey||s,E=p&&p.exactUsedKey||s,I=Object.prototype.toString.apply(g),L=["[object Number]","[object Function]","[object RegExp]"],G=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,oe=!this.i18nFormat||this.i18nFormat.handleAsObject,Y=!ne(g)&&typeof g!="boolean"&&typeof g!="number";if(oe&&g&&Y&&L.indexOf(I)<0&&!(ne(G)&&Array.isArray(g))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let re=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,g,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(p.res=re,p.usedParams=this.getUsedParamsDetails(n),p):re}if(a){let re=Array.isArray(g),J=re?[]:{},le=re?E:b;for(let Ee in g)if(Object.prototype.hasOwnProperty.call(g,Ee)){let C=`${le}${a}${Ee}`;J[Ee]=this.translate(C,{...n,joinArrays:!1,ns:l}),J[Ee]===C&&(J[Ee]=g[Ee])}g=J}}else if(oe&&ne(G)&&Array.isArray(g))g=g.join(G),g&&(g=this.extendTranslation(g,t,n,i));else{let re=!1,J=!1,le=n.count!==void 0&&!ne(n.count),Ee=Vo.hasDefaultValue(n),C=le?this.pluralResolver.getSuffix(u,n.count,n):"",on=n.ordinal&&le?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",Wt=le&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Pe=Wt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${C}`]||n[`defaultValue${on}`]||n.defaultValue;!this.isValidLookup(g)&&Ee&&(re=!0,g=Pe),this.isValidLookup(g)||(J=!0,g=s);let Ci=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&J?void 0:g,mt=Ee&&Pe!==g&&this.options.updateMissing;if(J||re||mt){if(this.logger.log(mt?"updateKey":"missingKey",u,c,s,mt?Pe:g),a){let Je=this.resolve(s,{...n,keySeparator:!1});Je&&Je.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Nt=[],ye=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ye&&ye[0])for(let Je=0;Je<ye.length;Je++)Nt.push(ye[Je]);else this.options.saveMissingTo==="all"?Nt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Nt.push(n.lng||this.language);let qn=o((Je,yt,it)=>{let an=Ee&&it!==g?it:Ci;this.options.missingKeyHandler?this.options.missingKeyHandler(Je,c,yt,an,mt,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Je,c,yt,an,mt,n),this.emit("missingKey",Je,c,yt,g)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&le?Nt.forEach(Je=>{let yt=this.pluralResolver.getSuffixes(Je,n);Wt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&yt.indexOf(`${this.options.pluralSeparator}zero`)<0&&yt.push(`${this.options.pluralSeparator}zero`),yt.forEach(it=>{qn([Je],s+it,n[`defaultValue${it}`]||Pe)})}):qn(Nt,s,Pe))}g=this.extendTranslation(g,t,n,p,i),J&&g===s&&this.options.appendNamespaceToMissingKey&&(g=`${c}:${s}`),(J||re)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${s}`:s,re?g:void 0):g=this.options.parseMissingKeyHandler(g))}return r?(p.res=g,p.usedParams=this.getUsedParamsDetails(n),p):g}extendTranslation(t,n,i,r,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let u=ne(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(u){let g=t.match(this.interpolator.nestingRegexp);f=g&&g.length}let p=i.replace&&!ne(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,i.lng||this.language||r.usedLng,i),u){let g=t.match(this.interpolator.nestingRegexp),b=g&&g.length;f<b&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var g=arguments.length,b=new Array(g),E=0;E<g;E++)b[E]=arguments[E];return a&&a[0]===b[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${n[0]}`),null):s.translate(...b,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,c=ne(l)?[l]:l;return t!=null&&c&&c.length&&i.applyPostProcessor!==!1&&(t=yp.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,a,s,l;return ne(t)&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(i))return;let u=this.extractFromKey(c,n),f=u.key;r=f;let p=u.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));let g=n.count!==void 0&&!ne(n.count),b=g&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),E=n.context!==void 0&&(ne(n.context)||typeof n.context=="number")&&n.context!=="",I=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(L=>{this.isValidLookup(i)||(l=L,!up[`${I[0]}-${L}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(up[`${I[0]}-${L}`]=!0,this.logger.warn(`key "${r}" for languages "${I.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),I.forEach(G=>{if(this.isValidLookup(i))return;s=G;let oe=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(oe,f,G,L,n);else{let re;g&&(re=this.pluralResolver.getSuffix(G,n.count,n));let J=`${this.options.pluralSeparator}zero`,le=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(oe.push(f+re),n.ordinal&&re.indexOf(le)===0&&oe.push(f+re.replace(le,this.options.pluralSeparator)),b&&oe.push(f+J)),E){let Ee=`${f}${this.options.contextSeparator}${n.context}`;oe.push(Ee),g&&(oe.push(Ee+re),n.ordinal&&re.indexOf(le)===0&&oe.push(Ee+re.replace(le,this.options.pluralSeparator)),b&&oe.push(Ee+J))}}let Y;for(;Y=oe.pop();)this.isValidLookup(i)||(a=Y,i=this.getResource(G,L,Y,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!ne(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(Vo,"Translator");var Fo=Vo,Cs=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),js=class js{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Qt.create("languageUtils")}getScriptPartFromCode(t){if(t=Io(t),!t||t.indexOf("-")<0)return null;let n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Io(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(ne(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(t)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Cs(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Cs(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=Cs(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),ne(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return ne(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):ne(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(js,"LanguageUtil");var No=js,Fh=[{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}],Nh={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3},Lh=["v1","v2","v3"],Vh=["v4"],fp={zero:0,one:1,two:2,few:3,many:4,other:5},jh=o(()=>{let e={};return Fh.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Nh[t.fc]}})}),e},"createRules"),Ds=class Ds{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Qt.create("pluralResolver"),(!this.options.compatibilityJSON||Vh.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=jh(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{let i=Io(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s=new Intl.PluralRules(i,{type:r});return this.pluralRulesCache[a]=s,s}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,a)=>fp[r]-fp[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(t,r,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(t,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){let i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n)),r=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));let a=o(()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!Lh.includes(this.options.compatibilityJSON)}};o(Ds,"PluralResolver");var Ps=Ds,pp=o(function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=Sh(e,t,n);return!a&&r&&ne(n)&&(a=Es(e,n,i),a===void 0&&(a=Es(t,n,i))),a},"deepFindWithDefaults"),Ss=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),$s=class $s{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Qt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:f,unescapePrefix:p,nestingPrefix:g,nestingPrefixEscaped:b,nestingSuffix:E,nestingSuffixEscaped:I,nestingOptionsSeparator:L,maxReplaces:G,alwaysFormat:oe}=t.interpolation;this.escape=n!==void 0?n:Eh,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?Ai(a):s||"{{",this.suffix=l?Ai(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=f?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=g?Ai(g):b||Ai("$t("),this.nestingSuffix=E?Ai(E):I||Ai(")"),this.nestingOptionsSeparator=L||",",this.maxReplaces=G||1e3,this.alwaysFormat=oe!==void 0?oe:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,r){let a,s,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=o(b=>{if(b.indexOf(this.formatSeparator)<0){let G=pp(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(G,void 0,i,{...r,...n,interpolationkey:b}):G}let E=b.split(this.formatSeparator),I=E.shift().trim(),L=E.join(this.formatSeparator).trim();return this.format(pp(n,c,I,this.options.keySeparator,this.options.ignoreJSONStructure),L,i,{...r,...n,interpolationkey:I})},"handleFormat");this.resetRegExp();let f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(b=>Ss(b),"safeValue")},{regex:this.regexp,safeValue:o(b=>this.escapeValue?Ss(this.escape(b)):Ss(b),"safeValue")}].forEach(b=>{for(l=0;a=b.regex.exec(t);){let E=a[1].trim();if(s=u(E),s===void 0)if(typeof f=="function"){let L=f(t,a,r);s=ne(L)?L:""}else if(r&&Object.prototype.hasOwnProperty.call(r,E))s="";else if(p){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${E} for interpolating ${t}`),s="";else!ne(s)&&!this.useRawValueToEscape&&(s=ap(s));let I=b.safeValue(s);if(t=t.replace(a[0],I),p?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((c,u)=>{let f=this.nestingOptionsSeparator;if(c.indexOf(f)<0)return c;let p=c.split(new RegExp(`${f}[ ]*{`)),g=`{${p[1]}`;c=p[0],g=this.interpolate(g,s);let b=g.match(/'/g),E=g.match(/"/g);(b&&b.length%2===0&&!E||E.length%2!==0)&&(g=g.replace(/'/g,'"'));try{s=JSON.parse(g),u&&(s={...u,...s})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,I),`${c}${f}${g}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,c},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let c=[];s={...i},s=s.replace&&!ne(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let f=r[1].split(this.formatSeparator).map(p=>p.trim());r[1]=f.shift(),c=f,u=!0}if(a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!ne(a))return a;ne(a)||(a=ap(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),u&&(a=c.reduce((f,p)=>this.format(f,p,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o($s,"Interpolator");var Is=$s,Dh=o(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...c]=s.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),f=l.trim();n[f]||(n[f]=u),u==="false"&&(n[f]=!1),u==="true"&&(n[f]=!0),isNaN(u)||(n[f]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),Pi=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(Io(i),r),t[s]=l),l(n)}},"createCachedFormatter"),ws=class ws{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Qt.create("formatter"),this.options=t,this.formats={number:Pi((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:Pi((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:Pi((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:Pi((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:Pi((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Pi(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{let{formatName:u,formatOptions:f}=Dh(c);if(this.formats[u]){let p=l;try{let g=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},b=g.locale||g.lng||r.locale||r.lng||i;p=this.formats[u](l,b,{...f,...r,...g})}catch(g){this.logger.warn(g)}return p}else this.logger.warn(`there was no format function for ${u}`);return l},t)}};o(ws,"Formatter");var Os=ws,$h=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),Rs=class Rs extends Ii{constructor(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=Qt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},c={};return t.forEach(u=>{let f=!0;n.forEach(p=>{let g=`${u}|${p}`;!i.reload&&this.store.hasResourceBundle(u,p)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?s[g]===void 0&&(s[g]=!0):(this.state[g]=1,f=!1,s[g]===void 0&&(s[g]=!0),a[g]===void 0&&(a[g]=!0),c[p]===void 0&&(c[p]=!0)))}),f||(l[u]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(c=>{Ch(c.loaded,[a],s),$h(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});let f=c.loaded[u];f.length&&f.forEach(p=>{l[u][p]===void 0&&(l[u][p]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((u,f)=>{if(this.readingCalls--,this.waitingReads.length>0){let p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(u&&f&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(u,f)},"resolver"),c=this.backend[i].bind(this.backend);if(c.length===2){try{let u=c(t,n);u&&typeof u.then=="function"?u.then(f=>l(null,f)).catch(l):l(null,u)}catch(u){l(u)}return}return c(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();ne(t)&&(t=this.languageUtils.toResolveHierarchy(t)),ne(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){let c={...s,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let f;u.length===5?f=u(t,n,i,r,c):f=u(t,n,i,r),f&&typeof f.then=="function"?f.then(p=>l(null,p)).catch(l):l(null,f)}catch(f){l(f)}else u(t,n,i,r,l,c)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(Rs,"Connector");var Fs=Rs,dp=o(()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),ne(e[1])&&(t.defaultValue=e[1]),ne(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),gp=o(e=>(ne(e.ns)&&(e.ns=[e.ns]),ne(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ne(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),Ao=o(()=>{},"noop"),wh=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),lr=class lr extends Ii{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=gp(t),this.services={},this.logger=Qt,this.modules={external:[]},wh(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(ne(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=dp();this.options={...r,...this.options,...gp(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);let a=o(f=>f?typeof f=="function"?new f:f:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Qt.init(a(this.modules.logger),this.options):Qt.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=Os);let p=new No(this.options);this.store=new Oo(this.options.resources,this.options);let g=this.services;g.logger=Qt,g.resourceStore=this.store,g.languageUtils=p,g.pluralResolver=new Ps(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(g.formatter=a(f),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new Is(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new Fs(a(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(b){for(var E=arguments.length,I=new Array(E>1?E-1:0),L=1;L<E;L++)I[L-1]=arguments[L];t.emit(b,...I)}),this.modules.languageDetector&&(g.languageDetector=a(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=a(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new Fo(this.services,this.options),this.translator.on("*",function(b){for(var E=arguments.length,I=new Array(E>1?E-1:0),L=1;L<E;L++)I[L-1]=arguments[L];t.emit(b,...I)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Ao),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});let c=or(),u=o(()=>{let f=o((p,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(g),i(p,g)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)},"load");return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ao,r=ne(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=o(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})},"append");r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>s(c)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let r=or();return typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),i||(i=Ao),this.services.backendConnector.reload(t,n,a=>{r.resolve(),i(a)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&yp.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;let r=or();this.emit("languageChanging",t);let a=o(c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},"setLngProps"),s=o((c,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(c,function(){return i.t(...arguments)})},"done"),l=o(c=>{!t&&!c&&this.services.languageDetector&&(c=[]);let u=ne(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,f=>{s(f,u)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),r}getFixedT(t,n,i){var r=this;let a=o(function(s,l){let c;if(typeof l!="object"){for(var u=arguments.length,f=new Array(u>2?u-2:0),p=2;p<u;p++)f[p-2]=arguments[p];c=r.options.overloadTranslationOptionHandler([s,l].concat(f))}else c={...l};c.lng=c.lng||a.lng,c.lngs=c.lngs||a.lngs,c.ns=c.ns||a.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||i||a.keyPrefix);let g=r.options.keySeparator||".",b;return c.keyPrefix&&Array.isArray(s)?b=s.map(E=>`${c.keyPrefix}${g}${E}`):b=c.keyPrefix?`${c.keyPrefix}${g}${s}`:s,r.t(b,c)},"fixedT");return ne(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,c)=>{let u=this.services.backendConnector.state[`${l}|${c}`];return u===-1||u===0||u===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=or();return this.options.ns?(ne(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=or();ne(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new No(dp());return n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new lr(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ao,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new lr(r);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new Oo(this.store.data,r),a.services.resourceStore=a.store),a.translator=new Fo(a.services,r),a.translator.on("*",function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),f=1;f<c;f++)u[f-1]=arguments[f];a.emit(l,...u)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(lr,"I18n");var Lo=lr,w=Lo.createInstance();w.createInstance=Lo.createInstance;var oE=w.createInstance,aE=w.dir,sE=w.init,lE=w.loadResources,cE=w.reloadResources,uE=w.use,fE=w.changeLanguage,pE=w.getFixedT,dE=w.t,gE=w.exists,mE=w.setDefaultNamespace,yE=w.hasLoadedNamespace,hE=w.loadNamespaces,bE=w.loadLanguages;var Vd=U(_s()),jd=U(Hp()),Yo=U(Fd()),ae=require("@sap-ux/vocabularies-types/vocabularies/UI"),gr=require("@sap-ux/vocabularies-types/vocabularies/Communication");var nl=U(K());var q=o((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(`${nl.logSeverityLabel[t.severity]}: ${t.message}; location: ${t.location}`,...n):console.log(`${nl.logSeverityLabel[t.severity]}: '${t.message}`,...n)},"log");var j="#/definitions/",il=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),Mt=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function mr(e,t){let n=[],i;return e&&e.forEach(function(r){try{n.push((0,Yo.parse)(r.fileContent,r.dataSourceUri))}catch(a){return q(t,{severity:N.LogSeverity.Error,message:w.t("ANNOERR"),location:{path:w.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0&&(i=(0,jd.convert)((0,Yo.merge)(...n))),i}o(mr,"parseAndMergeAndConvert");var Vi=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function rl(e,t,n){var i,r,a,s;if((i=e==null?void 0:e.Common)!=null&&i.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((r=l==null?void 0:l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(a=e.Common)==null?void 0:a.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}o(rl,"evaluateCommonLabel");function Dd(e,t){let n=e.value;return e.$target&&(n=rl(e.$target.annotations,t,n)),n}o(Dd,"getLabelForPropertyPath");function zo(e,t){var r,a;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(s=>s.name===e.Value):(i=t&&t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&e.Target.$target.Value&&(i=e.Target.$target.Value.$target),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=rl(i.annotations,t,n)),n}o(zo,"getLabelForDataField");function yT(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return rl(a.annotations,t,s)}}}else return}o(yT,"getLabel");function Nd(e,t,n){let i=zo(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(Nd,"getTitleForDataField");function yr(e,t){var s,l,c,u;let n="",i,r,a="";try{let f=yT(e.Label,t);switch(e.$Type){case ae.UIAnnotationTypes.DataField:n=Nd(e,t,f);break;case ae.UIAnnotationTypes.DataFieldWithUrl:i=zo(e,t),n=f||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=zo(e,t),n=f||i||((l=(s=r.Target)==null?void 0:s.$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=zo(e,t),n=i||e.Value.path;break;case ae.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=Nd(r,t,f);break;default:break}return n}catch{return n}}o(yr,"getDatafieldDescription");function _e(e){return e.replace("#","::").replace(/\//g,":2f")}o(_e,"prepareRef");function pn(e){if(e){let t=`${N.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(pn,"getPageTypeV2");function hT(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(hT,"getTargetAnnotationName");function zt(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(zt,"findAlias");function bT(e,t,n){var s,l;let i=e[e.length-1],r=i.substring(i.lastIndexOf(".")+1,i.length),a=zt(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(bT,"determineTargetAnnotation");function TT(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?"":"@"}${N.UIVOCABULARY}`);return e}o(TT,"adjustKey");function vT(e,t,n,i,r=N.FioriElementsVersion.v2,a=!1){var p,g;let s=!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=TT(t,c,a);let f=bT(c,n,e);if(f){let b=r===N.FioriElementsVersion.v2?"::":"#";t=hT(f,a).replace("#",b),l=(g=f.fullyQualifiedName)==null?void 0:g.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(u){let b=r===N.FioriElementsVersion.v2?"::":"/";c.pop(),t=`${[...c].join(b)}${b}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(vT,"getKeyAndEntityTypeOfReferenceFacet");function $d(e,t,n,i,r=N.FioriElementsVersion.v2,a=!1){var f,p,g;let s=(p=e.fullyQualifiedName)==null?void 0:p.substring((f=e.fullyQualifiedName)==null?void 0:f.lastIndexOf("@")),l=e.ID?e.ID.toString():s,c=(g=e.fullyQualifiedName)==null?void 0:g.split("@")[0],u=t;if(e.$Type!==ae.UIAnnotationTypes.CollectionFacet&&"Target"in e){let b=Vi(e.Target);if(!b){q(i,{severity:N.LogSeverity.Error,message:w.t("NOTARGET",{target:e.Target})});return}let{key:E,entityType:I,stopProcessing:L,namespace:G}=vT(n,l,u,b,r,a);if(L)return;l=E,u=I,c=G}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}}o($d,"getSectionFacet");function ol(e){let t,n,i;switch(e.$Type){case ae.UIAnnotationTypes.DataField:t=Vi(e.Value);break;case ae.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Vi(e.Value);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${N.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::${_e(e.Action)}`);break;case ae.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Vi(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::${_e(e.Action)}`);break;case ae.UIAnnotationTypes.DataFieldWithNavigationPath:i=Vi(e.Value),n=Vi(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(ol,"getSchemaKeyOfLineItemRecord");function CT(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}o(CT,"getUIAnnotationTerm");function ST(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?gr.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?gr.CommunicationAnnotationTerms.Address:void 0}o(ST,"getCommunicationAnnotationTerm");function xT(e,t,n){return CT(e,t,n)||ST(e,t)}o(xT,"getAnnotationTerm");function ET(e,t,n,i,r){var u,f,p,g,b,E,I,L,G;let a=zt(N.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(xT(s,a,i)){case ae.UIAnnotationTerms.Chart:{n[s]={base:N.FacetBase.Chart},n[s].target=(u=t==null?void 0:t.Target)==null?void 0:u.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.Identification:{n[s]={base:N.FacetBase.Identification},n[s].target=(f=t==null?void 0:t.Target)==null?void 0:f.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.LineItem:{if(!s.includes(ae.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let oe=s.split("::");oe[oe.length-1]=`@${ae.UIAnnotationTerms.LineItem}`,s=oe.join("::")}n[s]={base:N.FacetBase.LineItem},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.FieldGroup:{n[s]={base:N.FacetBase.Form},n[s].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.DataPoint:{n[s]={base:N.FacetBase.DataPoint},n[s].Label=(b=t==null?void 0:t.Target)==null?void 0:b.$target.Title,n[s].target=(E=t==null?void 0:t.Target)==null?void 0:E.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.PresentationVariant:{n[s]={base:N.FacetBase.PresentationVariant},n[s].target=(I=t==null?void 0:t.Target)==null?void 0:I.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case gr.CommunicationAnnotationTerms.Contact:{n[s]={base:N.FacetBase.Contact},n[s].target=(L=t==null?void 0:t.Target)==null?void 0:L.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case gr.CommunicationAnnotationTerms.Address:{n[s]={base:N.FacetBase.Address},n[s].target=(G=t==null?void 0:t.Target)==null?void 0:G.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:N.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",N.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(ET,"evaluateTargetAnnotation");function al(e,t,n,i,r,a=N.FioriElementsVersion.v2,s){var c;let l=$d(e,i,t,s,a,!1);if(l)switch(e.$Type){case ae.UIAnnotationTypes.ReferenceFacet:{ET(l,e,r,i,t);break}case ae.UIAnnotationTypes.CollectionFacet:{let u=`/${i.fullyQualifiedName}/${e.fullyQualifiedName.split(i.fullyQualifiedName)[1]}`,f=r[l.key]={base:N.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:u,Label:l.label,namespace:l.namespace};(c=e.Facets)==null||c.forEach(p=>{al(p,t,n,i,f.facets,a,s)});break}}}o(al,"addFacetToConfig");function wd(e,t,n=N.FioriElementsVersion.v2,i){var l,c;let r={};if(!e||!e.annotations)return;let a=zt(N.UIVOCABULARY,t),s=a&&((c=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:c.HeaderFacets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),f=e&&e.fullyQualifiedName.substring(0,u);s.forEach(p=>{al(p,t,f,e,r,n,i)})}return r}o(wd,"getObjectPageHeaderFacets");function Rd(e,t,n=N.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=zt(N.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let c=e&&e.fullyQualifiedName.lastIndexOf("."),u=e&&e.fullyQualifiedName.substring(0,c);s.forEach(f=>{al(f,t,u,e,r,n,i)})}return r}o(Rd,"getObjectPageFacets");function sl(e){return e[N.ManifestSection.generic]||e[N.ManifestSection.ovp]?N.FioriElementsVersion.v2:N.FioriElementsVersion.v4}o(sl,"getFEVersionFromManifest");function AT(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[N.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[N.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[N.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[N.ManifestSection.ui5].models[t].dataSource:void 0}o(AT,"getMainService");function _d(e){var i,r;let t=AT(e);if(!t)return N.OdataVersion.v2;let n=(i=e[N.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?N.OdataVersion.v4:N.OdataVersion.v2}o(_d,"getODataVersionFromManifest");function PT(e,t){var i,r;let n;if(e[N.ManifestSection.generic]){let a=e[N.ManifestSection.generic].pages;if(!a){q(t,{severity:N.LogSeverity.Error,message:w.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(pn((i=l.component)==null?void 0:i.name)===N.PageTypeV2.AnalyticalListPage){n=N.TemplateType.AnalyticalListPageV2;break}else if(pn((r=l.component)==null?void 0:r.name)===N.PageTypeV2.ListReport){n=N.TemplateType.ListReportObjectPageV2;break}}}else n||q(t,{severity:N.LogSeverity.Error,message:w.t("NOTEMPLATE",{section:N.ManifestSection.generic}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}});return n}o(PT,"determineV2Template");function ll(e,t,n){let i;return e[N.ManifestSection.ovp]?i=N.TemplateType.OverviewPageV2:t===N.FioriElementsVersion.v2&&(i=PT(e,n)),i}o(ll,"getTemplateTypeFromManifest");function hr(e,t,n){e!=null&&e.ID?(t.title=N.FACETTITLEPREFIX+e.ID,t[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:n.replace(N.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(hr,"addSectionTitleAndDescription");function IT(e,t,n){var i,r;hr(e,t,n),!(e!=null&&e.ID||e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}o(IT,"addTargetTitleAndSectionDescription");function Yn(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[N.SchemaTag.isViewNode]=!0,i[N.SchemaTag.annotationPath]=t.annotationPath,IT(t,i,n),i}o(Yn,"createDefaultSection");function Md(e,t,n,i=N.FioriElementsVersion.v2,r=!1){var l,c;let a=zt(N.UIVOCABULARY,t),s=[];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&&(s=u.reduce(function(f,p){if(r&&!p.ID&&!("Target"in p&&p.Target))return f;let g=$d(p,e,t,n,i,!0);return g&&f.push(g),f},s)),s}}o(Md,"getObjectPageFacetSection");var br=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(c){let u=a&&a===c?r:c.replace("??","/");if(!(!s[u]&&(a===c&&(u=a),!s[u]))){if(Object.keys(s[u]).length===0||i&&i[i.length-1]===u&&n){Array.isArray(s)?s.splice(Number(u),1):delete s[u],l.pop(),br(e,l.join("/"),n,i,r,a);return}s=s&&s[u]}})},"deleteEmptyStructure"),Ld=o(e=>`${e}`,"getGenericSchemaFileName"),Ze=o((e,t)=>{let n={filename:"",path:""};switch(e){case N.SchemaType.Application:{n.filename="App",n.path=`./${N.DirName.Schemas}/${n.filename}`;break}case N.SchemaType.ListReport:case N.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:Ld(e),n.path=`../${N.DirName.Schemas}/${n.filename}`;break}default:{n.filename=Ld(e),n.path=`../${N.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function Zo(e,t,n,i){if(e===N.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o(Zo,"generatePageId");function OT(e,t,n,i){let r=e.$ref;if(r){let a=r.split(j)[1];if(t.definitions[a]){let s=t.definitions[a].controlProperty;r.includes(n[s])&&i.push(a)}}}o(OT,"fillArrayFromAnyOfReference");function FT(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(j)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{OT(r,n,t,i)}),i.length===0))return;return i}o(FT,"fillArrayFromPropertyDefinition");function NT(e,t,n,i,r,a,s,l){var u,f,p,g;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=An(t,n,i,c.targetDefinition,r,a,s),c;e.length>1&&e.forEach(L=>{L!==""&&(c.targetDefinition.properties={...c.targetDefinition.properties,...t.definitions[L].properties})}),c.title=(p=c==null?void 0:c.targetDefinition)!=null&&p.title?c.targetDefinition.title:n;let E=b==null?void 0:b.split("<")[0],I=i||{};c.configObject=a.createInstance(s,E,I,(g=c==null?void 0:c.targetDefinition)==null?void 0:g.controlProperty)}else c.targetDefinition=l,c.title=c.targetDefinition.title?c.targetDefinition.title:r,c.configObject=i;return c}o(NT,"determineNextDefinitionFromDefinitionArray");function An(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=An(e,t,n,i.items,r,a,s),l;let c=FT(i,n,e);if(c)return l=NT(c,e,t,n,r,a,s,i),l}o(An,"getNextTargetDefinition");var cl=o((e,t,n)=>{let i=e.slice();return t.forEach((r,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[a]=(0,Vd.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function Tt(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Tt,"convertActionKeyToStableId");function ji(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(ji,"updatePropertyIndices");function kd(e){return e=e.replace(N.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(kd,"removeNamespaces");function ea(e){return e=e.replace(N.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(ea,"replaceNamespaces");function Ud(e){return e instanceof Error?e.message:String(e)}o(Ud,"getErrorMessage");var Kn=require("@sap-ux/vocabularies-types/vocabularies/UI"),V=U(K());var vt=U(K());var Fe=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),ta=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),et=o((e,t)=>{let n,i=vt.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 LT(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o(LT,"escapeId");var Bd=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(Bd||{});function VT(e,t,n){let i;return e=e.map(function(r){if(r===vt.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===vt.PropertyName.sections)return i=t[a+1],t[a+1]=et(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(VT,"mapBreadcrumbs");var ul=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=VT(t,s,r)),s[0]===vt.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,vt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,vt.VOCWITHSLASH):t[0]===vt.PropertyName.table&&(a=t[0]);let c=s[s.length-1].replace(/::com.sap.vocabularies/g,vt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,vt.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),u,f=c.indexOf(":::");return c.startsWith("DataField")&&f>-1?(c=c.replace("/",":2f"),u=`${e}template:::TableColumn:::${c.substring(0,f)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${c.substring(f+3)}`):(c=c.replace("/","_"),u=`${e}${t.join("::")}-${c}`),LT(u)},"buildColumnControlId"),Ct=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function jT(e){let t=vt.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(jT,"determinePattern");var Hd=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split(j)[1]]:a,c=a.description?a.description:l.description,u=jT(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(f=>{s.enum.indexOf(f)===-1&&s.enum.push(f)}),r[n]={pattern:u,anyOf:[s,{type:"string"}]},c&&(r[n].description=c,delete a.description)},"addPatternForBindingChangeOfEnum"),Di=o((e,t,n)=>{Hd(e,t,n)},"addPatternForBindingChangeOfEnumLR"),he=o((e,t,n)=>{let i=Object.values(Bd);Hd(e,t,n,i)},"addPatternForBindingChangeOfEnumOP");function Gd(){}o(Gd,"doNotDelete");var dA=U(Kd());var Jd=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(Jd,e),"syncRule");function Pt(e,t){let n;return e&&(n=Reflect.getMetadata(Jd,e,t)),n}o(Pt,"getReflectMetadata");var Pn=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),Qd=Symbol("childId"),Xe=o(e=>Reflect.metadata(Qd,e),"childId"),qd=o((e,t)=>Reflect.getMetadata(Qd,e,t),"getChildId"),Xd=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),DT=Symbol("descriptionSrcURL"),dn=o(e=>Reflect.metadata(DT,e),"descriptionSrcURL");var $T=Symbol("validityMetadataKey"),F=o(e=>Reflect.metadata($T,e),"validity");function na(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(na,"getTextForDeprecated");var rg=U(ng()),og=U(K());var ag=rg.default.change,ig={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function sg(e,t){let n="";try{for(let i in ig)e[i]===void 0&&(e[i]=ig[i]);n=ag.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(sg,"createChangeString");function kt(e){try{return ag.parse(e)}catch{return!1}}o(kt,"parseChangeString");function lg(e,t,n,i,r){let a=n.layer?n.layer===og.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:a};return e[i]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,i):e[i].toString().startsWith("{")?(s.content.newBinding=e[i],s.type="propertyBindingChange"):s.content.newValue=e[i]:s.content.newValue=null,s}o(lg,"fillFlexChangeContent");function $(e,t){return sg(e,t)}o($,"exportToFlexChange");var Zn=U(K());function ia(e,t,n,i,r,a){let s=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[s]!==void 0&&(i[n]=t[s])}o(ia,"importProperty");function cg(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(q(i,{severity:Zn.LogSeverity.Warning,message:na(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(cg,"checkDeprecatedProperties");function fl(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(j)[1]];return fl(n,t)}else return e.title?e.title.startsWith(Zn.FACETTITLEPREFIX)?e.title.split(Zn.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(fl,"getSectionTitle");function ra(e){let t=e.split(`${Zn.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(ra,"getTargetFromCustomColumnRef");var Ve=require("@sap-ux/vocabularies-types/vocabularies/UI");var gn=require("@sap-ux/vocabularies-types/vocabularies/UI");function fg(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/\/|@|\(|\)|#|\*/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(fg,"replaceSpecialChars");var ei=o(function(e){return fg(kd(e))},"prepareId");function BT(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(BT,"evaluateConcat");function ti(e){if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if((e==null?void 0:e.$Function)==="odata.concat")return BT(e);if(e&&typeof e=="string")return fg(e.replace(/ /g,"_"))}o(ti,"getStableIdPartFromValue");var ug=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),pg=o(function(e){let t="";if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,ei(t);if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=ug(e),t;if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=ei(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=ti(e.Value)+"::"),t+=e.Action,ei(t);if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataField)return t="DataField::",t+=ti(e.Value),ei(t);if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=ti(e.Value)+"::",t+=ug(e),ei(t);if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=ti(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),ei(t);if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=ti(e.Value),ei(t)},"getStableIdPartFromDataField");var O=U(K());var z=U(K());var St=require("@sap-ux/vocabularies-types/vocabularies/UI"),hg=require("path"),bg=U(pr());var $i="ResponsiveTable<LineItems>",Tr="TreeTable<LineItems>",vr="AnalyticalTable<LineItems>",Cr="GridTable<LineItems>",dg=[Tr,vr,Cr],gg=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],mg="template::",oa="template:::ObjectPageAction:::";function HT(e,t,n){e.definitions[z.DefinitionName.LineItems]&&(e.definitions[z.DefinitionName.LineItems].properties.custom={$ref:`${j}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${j}${n}`},description:"Custom Columns"},e.definitions[t][z.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[z.SchemaTag.artifactType]=z.ArtifactType.Manifest)}o(HT,"addCustomColumnDefinition");function GT(e,t){let n;return e==="TableColumnActionIntentBased"?n=ol(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=_e(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===St.UIAnnotationTypes.DataFieldForAction?n=_e(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=_e(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(GT,"getActionId");function pl(e,t,n,i,r){let a,s=n.lineItemId===z.DefinitionName.LineItems?"":"ObjectPage",l=GT(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let c=`${s}${i}<${l}>`,u=yr(n.lineItemRecord,n.entityType);t.properties[l]={$ref:j+c},t.properties[l][z.SchemaTag.propertyIndex]=r;let{key:f,ns:p}=Sr(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][z.SchemaTag.target]=p)):(e.definitions[c]={type:"object",properties:{},description:u,additionalProperties:!1},e.definitions[c][z.SchemaTag.isViewNode]=!0,e.definitions[c][z.SchemaTag.keys]=[{name:z.SchemaKeyName.action,value:f}],p&&(e.definitions[c][z.SchemaTag.target]=p),e.definitions[c][z.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}o(pl,"handleActionRecord");function WT(e,t,n){e!==z.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===St.UIAnnotationTypes.DataFieldForAction||t.$Type===St.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===St.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===St.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(WT,"getColumnActionType");function KT(e,t){let n=[];if(!(e.$Type!==St.UIAnnotationTypes.DataFieldForAction&&e.$Type!==St.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===St.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===St.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===St.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===St.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),WT(t,e,n),n}o(KT,"getActionType");function Tg(e,t,n){let i=ol(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:j+z.DefinitionName.TableColumn,description:yr(e.lineItemRecord,e.entityType)},r.properties[i][z.SchemaTag.propertyIndex]=n,r.properties[i][z.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,la(r.properties[i],e.lineItemRecord),Eg(e.lineItemRecord,r.properties,i)}}o(Tg,"generateGenericColumn");function JT(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{pl(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&pl(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{pl(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":Tg(i,t,r)}}o(JT,"handleAnyAction");function wi(e,t,n,i,r,a){r=r||z.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:c}=xg(e,t,n,i,r);if(n){let u=0;n.forEach(f=>{let p={lineItemPath:c,lineItemRecord:f,lineItemId:r,entityType:i},g=KT(f,r);g?g.forEach(b=>{JT(b,t,s,p,u,l,r)}):Tg(p,t,u),u++})}a&&(t.definitions[r].properties.custom={$ref:`${j}${a}`})}o(wi,"addLineItemsType");function QT(e,t,n){var r,a;let i=(a=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:a.leadingProperty;if(i){let s=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=s==null?void 0:s.reduce((l,c)=>(l.includes(c.name)||l.push(c.name),l),[])}}o(QT,"addListReportLeadingProperties");function qT(e,t,n,i){var s,l,c,u,f,p;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let a=(f=(u=(c=n.component)==null?void 0:c.settings)==null?void 0:u.quickVariantSelectionX)==null?void 0:f.variants;if(a){let g=[];for(let b in a){let E=(p=a[b])==null?void 0:p.key;E!==void 0&&!g.includes(E)&&g.push(E)}ni(g,r)}}o(qT,"addTabkeyEnum");function aa(e,t,n,i,r){var s,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,bg.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("\\"+hg.sep,"g"),"/");let p=n+u.split(".fragment.xml")[0].replace(/\//g,".");a.push(p)}}}),ni(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(aa,"addFragmentEnum");function Ri(e,t,n,i,r,a=z.DefinitionName.CustomColumns,s=z.DefinitionName.CustomColumn,l){HT(e,a,s),QT(e,t,s),qT(e,s,n,l);let c=i&&i["sap.app"]&&i["sap.app"].id;aa(e,r,c,"fragmentName",s),aa(e,r,c,"fragmentName",z.DefinitionName.CustomColumn),aa(e,r,c,"cellsFragmentName",s),aa(e,r,c,"cellsFragmentName",z.DefinitionName.CustomColumn)}o(Ri,"addTableColumnExtensions");function vg(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(vg,"removeElementsFromEnum");function sa(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=Mt(n==null?void 0:n.fullyQualifiedName,St.UIAnnotationTerms.SelectionFields);if(r&&(i[z.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,c=`SelectionField<${_e(s.value)}>`,u=dl(s);s.type==="PropertyPath"&&(l=Dd(s,n)),i.properties[s.value]={$ref:j+c},i.properties[s.value][z.SchemaTag.propertyIndex]=a,e.definitions[c]={type:"object",description:l,additionalProperties:!1},e.definitions[c][z.SchemaTag.isViewNode]=!0,e.definitions[c][z.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[c][z.SchemaTag.dataType]=u,e.definitions[c][z.SchemaTag.keys]=[{name:z.SchemaKeyName.value,value:`${s.value}`}],e.definitions[c][z.SchemaTag.annotationPath]=`${i[z.SchemaTag.annotationPath]}/${a}`,e.definitions[c].properties={},a++})}o(sa,"addSelectionFields");function Cg(e){return!!e.navigationProperties.find(n=>n.name==="DraftAdministrativeData")}o(Cg,"isDraftEnabled");function _i(e,t=!1,n){let i=z.DefinitionName.HeaderActionsStandard,r=z.DefinitionName.HeaderActionsStandard,a=z.DefinitionName.HeaderActionStandard;t&&(i=z.DefinitionName.GenericActions,r=z.DefinitionName.HeaderActions,a=z.DefinitionName.ObjectPageHeaderActionStandard);let s=e.definitions[i],l=e.definitions[r];l[z.SchemaTag.isViewNode]=!0,l.description="Actions",Object.entries((n||s).properties).forEach(([u,f])=>{let p=f.$ref.split(j)[1],g=`${a}<${p}>`;l.properties[u]={$ref:`${j}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][z.SchemaTag.actionType]=z.ActionType.Standard})}o(_i,"addStandardHeaderActions");function Sg(e,t){let n=e.definitions[z.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split(j)[1],a=`${z.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${j}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][z.SchemaTag.actionType]=z.ActionType.Standard}}o(Sg,"addStandardFooterActionsOP");function XT(e,t,n,i){if(e===O.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Ve.UIAnnotationTypes.DataField:case Ve.UIAnnotationTypes.DataFieldForAnnotation:case Ve.UIAnnotationTypes.DataFieldWithNavigationPath:case Ve.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===O.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Ve.UIAnnotationTypes.DataField:case Ve.UIAnnotationTypes.DataFieldForAnnotation:case Ve.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(XT,"copyFieldProperties");function zT(e,t,n,i){let r=e===O.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===O.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(zT,"determineFieldDefinitionName");function YT(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][O.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][O.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][O.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][O.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(YT,"addKeysTagForDataField");function ZT(e,t,n){if(e.$Type===Ve.UIAnnotationTypes.DataField||e.$Type===Ve.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ve.UIAnnotationTypes.DataFieldWithNavigationPath)YT(e,t,n);else if(e.$Type===Ve.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][O.SchemaTag.keys]=[{name:"Target",value:ea(e.Target.value)}],t.definitions[n][O.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Ve.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][O.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][O.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][O.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Ve.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][O.SchemaTag.keys]=[{name:O.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][O.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][O.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(ZT,"addKeysTagToField");function Ag(e,t,n,i,r,a,s,l=!0){var p;let c=pg(n),u=s===O.FioriElementsVersion.v2&&c&&c.includes("::")?c.split("::").splice(1).join("::"):c,f=zT(s,c,i,u);if(!(!n||!n.$Type)){if(n.$Type===Ve.UIAnnotationTypes.DataFieldForAction||n.$Type===Ve.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===O.SectionType.Section){let g=_e(`${e}${O.DefinitionName.Actions}<${i}>`),b=t.definitions[g].properties[u]={$ref:`${j}${f}`};b[O.SchemaTag.propertyIndex]=parseInt(r)}}else{let g=_e(`${e}${O.DefinitionName.Fields}<${i}>`);t.definitions[g].properties[u]={$ref:`${j}${f}`,propertyIndex:parseInt(r)}}t.definitions[f]={type:"object",properties:{},description:yr(n,a.entityType),additionalProperties:!1},ZT(n,t,f),t.definitions[f][O.SchemaTag.annotationPath]=`/${a.entityType.fullyQualifiedName}/${n.fullyQualifiedName.split(a.entityType.fullyQualifiedName)[1]}`,t.definitions[f][O.SchemaTag.annotationType]=n.$Type,t.definitions[f][O.SchemaTag.isViewNode]=!0,la(t.definitions[f],n),XT(s,t,n,f),n.$Type===Ve.UIAnnotationTypes.DataFieldForAction&&((p=t.definitions)!=null&&p.FormAction)&&(t.definitions[f].properties=t.definitions[O.DefinitionName.FormAction].properties)}}o(Ag,"addField");function ev(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}o(ev,"determineTargetIdOfForm");function tv(e,t,n,i,r,a=!0){var u;if(!e.target)return;let s=_e(`${t}${O.DefinitionName.Form}<${i}>`),l=_e(`${t}${O.DefinitionName.Fields}<${i}>`),c=_e(`${t}${O.DefinitionName.Actions}<${i}>`);if(n.properties.form={$ref:`${j}${s}`},t===O.SectionType.Section&&a?(n.definitions[s]={type:"object",properties:{actions:{$ref:`${j}${c}`},fields:{$ref:`${j}${l}`}},description:"Form",additionalProperties:!1},n.definitions[c]={type:"object",properties:{},description:"Actions",additionalProperties:!1},n.definitions[c][O.SchemaTag.isViewNode]=!0):n.definitions[s]={type:"object",properties:{fields:{$ref:`${j}${l}`}},description:"Form",additionalProperties:!1},n.definitions[s][O.SchemaTag.isViewNode]=!0,(u=e.entityType)!=null&&u.name&&(n.definitions[s][O.SchemaTag.annotationPath]=Mt(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier)),n.definitions[l]={type:"object",properties:{},description:"Fields",additionalProperties:!1},n.definitions[l][O.SchemaTag.isViewNode]=!0,e.base===O.FacetBase.Identification)for(let f in e.target){let p=e.target[f];p&&Ag(t,n,p,i,f,e,r,a)}else for(let f in e.target.Data){let p=e.target.Data[f];Ag(t,n,p,i,f,e,r)}}o(tv,"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][O.SchemaTag.keys]=[{name:O.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][O.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][O.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][O.SchemaTag.annotationPath]=Mt(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(nv,"addTagsToFormDefinition");function Pg(e,t,n,i,r,a){if(!t.target)return;let s=ev(t),l=_e(`${e}${O.DefinitionName.Form}<${s}>`),c=_e(`${e}${O.DefinitionName.Fields}<${s}>`),u=_e(`${e}${O.DefinitionName.Actions}<${s}>`),f=!(t.base===O.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${j}${l}`},e===O.SectionType.Section&&f?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${j}${u}`},fields:{$ref:`${j}${c}`}},description:"Form",additionalProperties:!1},i.definitions[u]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[u][O.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${j}${c}`}},description:"Form",additionalProperties:!1},nv(t,i,l),i.definitions[c]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[c][O.SchemaTag.isViewNode]=!0,tv(t,e,i,s,r,f),s}o(Pg,"handleForm");function iv(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),a=t.references.find(s=>s.alias===r);a&&(i=e.replace(n,a.namespace))}return i}o(iv,"replaceAlias");function gl(e,t){let n=iv(e.Action,t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(gl,"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)===O.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:Ig(a.pages,t)}}o(Ig,"isFirstObjectPage");function Og(e,t,n,i){var c,u,f;e.definitions[O.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${O.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${j}${O.DefinitionName.ObjectPageFooter}`},e.definitions[O.DefinitionName.ObjectPageFooter].properties[O.PropertyName.actions]={$ref:`${j}${O.DefinitionName.FooterActions}`};let r=e.definitions[O.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};r[O.SchemaTag.isViewNode]=!0;let a=zt(O.UIVOCABULARY,t.serviceAVT),s=(c=t.entitySet)==null?void 0:c.entityType,l=a&&((f=(u=s==null?void 0:s.annotations)==null?void 0:u[a])==null?void 0:f.Identification);if(l){let p=l.fullyQualifiedName.replace(`@${Ve.UIAnnotationTerms.Identification}`,`/@${Ve.UIAnnotationTerms.Identification}`);r[O.SchemaTag.annotationPath]=`/${p}`,l.forEach((g,b)=>{if(g.Determining&&g.$Type===Ve.UIAnnotationTypes.DataFieldForAction){let{actionName:E,actionId:I}=gl(g,t.serviceAVT),L=g.Label||E,G=_e(`${O.DefinitionName.ObjectPageFooterAction}<${I}>`);e.definitions[O.DefinitionName.ObjectPageFooterAction]?e.definitions[G]={...JSON.parse(JSON.stringify(e.definitions[O.DefinitionName.ObjectPageFooterAction])),description:L,annotationPath:`/${p}/${b}`}:(e.definitions[G]={type:"object",properties:{},description:L},e.definitions[G][O.SchemaTag.isViewNode]=!0,e.definitions[G][O.SchemaTag.annotationPath]=`/${p}/${b}`),r.properties[I]={$ref:`${j}${G}`}}})}else s&&(r[O.SchemaTag.annotationPath]=`/${s.fullyQualifiedName}/@${Ve.UIAnnotationTerms.Identification}`);n===O.FioriElementsVersion.v2&&Ig(i,t)&&!Cg(s)&&Sg(e,r),delete e.definitions[O.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${O.DefinitionName.ObjectPageFooter}<${O.DefinitionName.ObjectPageFooterActions}>`]}o(Og,"addFooterActions");function Fg(e,t,n,i,r=!1){var f,p;let a=O.DefinitionName.HeaderActions,s=e.definitions[a];e.definitions[O.DefinitionName.ObjectPageHeader].properties[O.PropertyName.actions]={$ref:`${j}${a}`};let l=e.definitions[a]={type:"object",properties:{},description:"Actions",additionalProperties:!1};l[O.SchemaTag.isViewNode]=!0;let c=zt(O.UIVOCABULARY,n),u=c&&((p=(f=t==null?void 0:t.annotations)==null?void 0:f[c])==null?void 0:p.Identification);u?(l[O.SchemaTag.annotationPath]="/"+u.fullyQualifiedName.replace(`@${Ve.UIAnnotationTerms.Identification}`,`/@${Ve.UIAnnotationTerms.Identification}`),u.forEach(i(t,e,u,l,n))):t&&(l[O.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ve.UIAnnotationTerms.Identification}`),r&&_i(e,!0,s),delete e.definitions[O.DefinitionName.GenericActions],delete e.definitions[`${O.DefinitionName.ObjectPageHeader}<${O.DefinitionName.GenericActions}>`]}o(Fg,"addHeaderActions");function Ng(e,t){e.properties.header={$ref:`${j}${O.DefinitionName.ObjectPageHeader}`},e.definitions[O.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${O.DefinitionName.ObjectPageHeader}<${O.DefinitionName.GenericActions}>`])),t&&(e.definitions[O.DefinitionName.ObjectPageHeader][O.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ve.UIAnnotationTerms.HeaderInfo}`)}o(Ng,"addCommonHeaderSchema");function Lg(e,t){return e.entityType?t.entitySets.find(n=>n.entityType.name===e.entityType.name||n.name===e.entityType.name):void 0}o(Lg,"determineEntitySetOfFacet");var Ut=require("@sap-ux/vocabularies-types/vocabularies/UI");var Te=U(K());function ni(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(ni,"addEnumToSchema");function Vg(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let r=[];for(let s in i){let l=i[s];if(t.indexOf(l.term)>-1){let c=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(c)===-1&&r.push(c)}}ni(r,n)}o(Vg,"addEnumForValidAnnotations");function ca(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Ut.UIAnnotationTerms.SelectionVariant,Ut.UIAnnotationTerms.SelectionPresentationVariant];Vg(e,r,i)}o(ca,"addEnumForSingleTabVariant");function jg(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[Ut.UIAnnotationTerms.SelectionVariant,Ut.UIAnnotationTerms.SelectionPresentationVariant];Vg(n.entityType,r,i)}o(jg,"addEnumForMultiTabVariant");function Dg(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),ni(r,i)}o(Dg,"addEnumForVariantEntitySet");function $g(e,t,n,i){let r=n.map(a=>{let s=i.find(c=>!!a[c]);return{const:a[s],...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 s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{$ref:j+"RelatedFacetKeys"},l]}}}}o($g,"addDefinitionForRelatedFacetKeys");function rv(e){return e.replace("#","::")}o(rv,"getFacetKeyInSchema");function wg(e,t){return`${e}<${rv(t)}>`}o(wg,"getFacetDefinitionKey");function ov(e,t,n,i=!0,r){let a=t;if(i&&(a=wg(r||e,t)),e&&e!==a)try{let s=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[a]=s}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[a]}o(ov,"parseSchemaDefinition");function xg(e,t,n,i,r){let a;t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r].additionalProperties=!1,t.definitions[r][Te.SchemaTag.isViewNode]=!0;let s=e?Te.DefinitionName.ObjectPageToolBar:Te.DefinitionName.ToolBar,l=`${s}<${r}>`;try{t.definitions[l]=JSON.parse(JSON.stringify(t.definitions[`${s}`]))}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${s}`}))}let c=`Actions<${_e(r)}>`;t.definitions[l].properties.actions.$ref=j+c;let u=e?Te.DefinitionName.ObjectPageToolBarActions:Te.DefinitionName.Actions,f;try{f=t.definitions[c]=JSON.parse(JSON.stringify(t.definitions[u])),f.properties={},f.additionalProperties=!1}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let p,g;if(r===Te.DefinitionName.LineItems&&t.properties.footer){g=`${Te.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${j}${g}`;try{t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[Te.DefinitionName.GenericFooter]))}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Te.DefinitionName.GenericFooter}))}let b=`${Te.DefinitionName.FooterActions}<${_e(r)}>`;t.definitions[g].properties.actions.$ref=j+b;try{p=t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[Te.DefinitionName.Actions]))}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Te.DefinitionName.Actions}))}p.properties={},p.additionalProperties=!1}return n&&(a=Mt(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),a&&(t.definitions[r][Te.SchemaTag.annotationPath]=t.definitions[l][Te.SchemaTag.annotationPath]=a,p&&(t.definitions[g][Te.SchemaTag.annotationPath]=a))),{actions:f,footerActions:p,lineItemPath:a}}o(xg,"addCommonLineItemDefinitions");function Rg(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(Rg,"getDataTypeFromAnnotation");function ua(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=Rg(e.$Type)),t}o(ua,"determineDataTypeOfTarget");function dl(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=ua((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=Rg(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(dl,"determineDataType");function la(e,t){let n=dl(t);n&&(e[Te.SchemaTag.dataType]=n)}o(la,"addDataTypeToDefinition");function av(e,t){return`${j}${wg(e,t)}`}o(av,"getFacetDefinitionLink");function ml(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,c=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:av(a?c:l,t)};let u=ov(a?c:l,t,i,!0,a?c:void 0);hr(e,u,t),u[Te.SchemaTag.annotationPath]=e.annotationPath,u[Te.SchemaTag.isViewNode]=!0}o(ml,"handleAddressContact");function Sr(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),a=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,a),n=r>0?n.substring(r+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}o(Sr,"getActionKey");function Eg(e,t,n){var i,r,a;try{if(e.Value)t[n][Te.SchemaTag.keys]=[{name:Te.SchemaKeyName.value,value:ti(e.Value)}];else if(e.$Type===Ut.UIAnnotationTypes.DataFieldWithAction||e.$Type===Ut.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=Sr(e.Action,!0);t[n][Te.SchemaTag.keys]=[{name:Te.SchemaKeyName.action,value:s}],l&&(t[n][Te.SchemaTag.target]=l)}else if(e.$Type===Ut.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=Sr(e.Target.value,!1);t[n][Te.SchemaTag.keys]=[{name:Te.SchemaKeyName.target,value:ea(s)}],t[n][Te.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===Ut.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Ut.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:c}=Sr(s,!0);t[n][Te.SchemaTag.keys]=[{name:"SemanticObject",value:e[Te.SchemaKeyName.semanticObject]},{name:"Action",value:l}],c&&(t[n][Te.SchemaTag.target]=c)}}catch{return}}o(Eg,"addKeyToDefinition");var Mi=U(K());var _g=[{version:"1.124",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{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 kg="1.71.122";var Ug={name:"@sap/ux-specification",version:kg,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">= 18.0.0 < 19.0.0 || >= 20.0.0 < 21.0.0 || >= 22.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -p copy-json-schemas htmlV2 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/to-json-schema.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",iXiaSoftV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=iXiaSoft",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/vocabularies-types":"0.11.6"},devDependencies:{"@sap-ux/annotation-converter":"0.9.9","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.71.122","@types/d3":"7.4.3","@types/jquery":"3.5.32","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.7.7",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.5",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2",path:"0.12.7","reflect-metadata":"0.2.2","typescript-json-schema":"0.57.0","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var In=class In{constructor(){In.distTagsOfSpec.length===0&&(In.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){In.distTagsOfSpec=[]}getSpecVersion(){return kg}getDistTagsOfVersion(){let t=[],n=_g,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=w.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});q(n,{severity:Mi.LogSeverity.Info,message:r,location:{path:Mi.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(In.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=w.t("WRONGMINUI5VERSION",{minUI5Version:t});q(n,{severity:Mi.LogSeverity.Warning,message:r,location:{path:Mi.MANIFESTPATH}})}}};o(In,"DistTagEvaluator"),In.distTagsOfSpec=[];var xr=In;var ee=U(K());var Be=U(K());var It=U(K());var yl=class yl{constructor(t,n,i,r,a,s,l){this.unhandledControllers=[];let c=Ze(It.SchemaType.Application);this.app={$schema:c.path,id:t["sap.app"].id,pages:r,home:i,target:{fioriElements:a,odata:a===It.FioriElementsVersion.v2?It.OdataVersion.v2:It.OdataVersion.v4},...s&&{settings:s}},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 s=i.config;if(i.pageType!==It.PageType.CustomPage){let l=Ze(i.pageType,i.entitySet);if(this.schemas[l.filename])s.$schema=l.path;else{let c=Ze(i.pageType);s.$schema=c.path}t[`${It.DirName.Pages}/${a}.json`]=s}}let r=JSON.parse(JSON.stringify(this.app));for(let a in r.pages)delete r.pages[a].config;return n[It.FileName.App]=r,{appConfig:n,pageConfigs:t}}};o(yl,"AppProvider");var ki=yl;var de=U(K());var Ui=U(K());var ze=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),Bg=o((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2");var Hg=o((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function hl(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(hl,"getNewPageTemplate");function cv(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(cv,"findPageInManifest");function uv(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=hl(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:hl(e[t].pageType)}),!Array.isArray(n.pages))){let i=cv(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=hl(e[t].pageType)),bl(t,e,i)}}o(uv,"transformPageFromAssociation");function fv(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)===Ui.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Ui.PageTypeV2.ListReport||n.pageType===Ui.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(fv,"deletePage");function bl(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Ui.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)uv(t,r,n);Array.isArray(n.pages)||fv(n,t,i)}}o(bl,"transformPageToNewManifestV2");var xm=U(pr());var Qc={};Eo(Qc,{ALPAnalyticalTable:()=>Xl,ALPGridTable:()=>ql,ALPResponsiveTable:()=>Ql,Action:()=>ec,AnalyticalCard:()=>Lr,AnalyticalCardSettings:()=>El,AnalyticalListPageFilterBar:()=>Nl,AnalyticalTable:()=>Jl,BaseCustomSection:()=>to,ChartSettings:()=>bc,ChartSettingsType:()=>vl,CommonCardSettings:()=>jn,CommonHeaderFacetSettings:()=>ui,CommonTableSettings:()=>Rn,CommonTableSettingsForSections:()=>yi,CreateWithFilters:()=>Hl,CustomCard:()=>Sl,DefaultSpanObject:()=>Cl,FRAGMENT_DEFINITION:()=>nn,Field:()=>Ol,FieldForAction:()=>jl,FooterAction:()=>nc,FormAction:()=>Vl,GlobalTableSettings:()=>Kc,GridTable:()=>zl,HeaderAction:()=>Cc,HeaderActionStandard:()=>sc,HeaderSections:()=>Pc,KPISettings:()=>Tc,LinkListCardSettings:()=>Pl,LinklistCard:()=>jr,ListCard:()=>Nr,ListCardSettings:()=>xl,ListReportFilterBar:()=>ya,ObjectPageAnalyticalTable:()=>Hc,ObjectPageCustomSectionFragment:()=>no,ObjectPageCustomSectionView:()=>io,ObjectPageFooterAction:()=>Oc,ObjectPageFooterActionStandard:()=>cc,ObjectPageGridTable:()=>Gc,ObjectPageHeader:()=>vc,ObjectPageHeaderActionStandard:()=>lc,ObjectPageHeaderSectionAddress:()=>Ac,ObjectPageHeaderSectionChart:()=>xc,ObjectPageHeaderSectionDataPoint:()=>Ec,ObjectPageHeaderSectionForm:()=>Sc,ObjectPageLayout:()=>Nc,ObjectPageResponsiveTable:()=>hi,ObjectPageSectionAddressV2:()=>$c,ObjectPageSectionChartV2:()=>jc,ObjectPageSectionContactV2:()=>wc,ObjectPageSectionFormV2:()=>Vc,ObjectPageSectionTableV2:()=>Dc,ObjectPageSectionV2:()=>Lc,ObjectPageSubSectionChartV2:()=>Mc,ObjectPageSubSectionContactV2:()=>kc,ObjectPageSubSectionFormV2:()=>_c,ObjectPageSubSectionTableV2:()=>Uc,ObjectPageSubSectionV2:()=>Rc,ObjectPageToolBarAction:()=>Jc,ObjectPageTreeTable:()=>Wc,QuickVariantSelection:()=>Gl,QuickVariantSelectionOP:()=>Bc,QuickVariantSelectionX:()=>Wl,ResponsiveTable:()=>ri,SAP_UI_TABLE:()=>ha,SaveAndEditOP:()=>ac,Share:()=>ic,ShareOP:()=>rc,StackCard:()=>Vr,StackCardSettings:()=>Al,TableALP:()=>Qi,TableCard:()=>Dr,TableCardSettings:()=>Il,TableColumn:()=>pc,TableColumnAction:()=>ja,TableColumnActionIntentBased:()=>dc,TableCustomColumn:()=>gc,ToolBar:()=>yc,ToolBarAction:()=>tc,TreeTable:()=>Kl,UpAndDownNavigationOP:()=>oc,buildIntentBasedActionId:()=>uc,deleteColumnFromFragment:()=>va,deleteType:()=>Xi,exportCustomColumnsToFragment:()=>Bl,exportDefaultSpan:()=>Wg,exportType:()=>qi,getChartSectionControlId:()=>bm,getContactSubSectionControlId:()=>vm,getCustomColumnPath:()=>Ca,getFormSectionControlId:()=>hm,getRootCustomColumnFromFragmentJSON:()=>_r,getSectionControlId:()=>di,getSmartChartControlId:()=>Jr,getSmartTableControlId:()=>wn,getSubSectionControlId:()=>Tm,getTableSectionControlId:()=>ym});var st=U(K());var pe=o(e=>`${st.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),da=o(e=>pe(e)+"/tableSettings","getTableSettingPathV2");var We=o(()=>st.ManifestSection.ovp,"getOVPsettingPath"),H=o(e=>{let t=[st.ManifestSection.ovp];return e.forEach(n=>{n in st.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var ii=o((e,t)=>`${st.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Gg=o(e=>{let t=[st.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Vt=o(e=>{let t=[];return t.push(Gg(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Bi=o(e=>Vt(e)+"/tableSettings","getGlobalTableSettingsPathV2"),Yt=o((e,t,n)=>{let i=[];i.push(Gg(e));let r=n.replace(st.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),Nn=o((e,t,n)=>Yt(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2");var Tl=o(()=>`sap.ui5/extends/extensions/${st.v2.SAPUI5_VIEW_EXTENSION}/${st.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),mn=o((e,t,n,...i)=>{let r="|",a=n.split(r),s=e[e.length-1].split(r),l="";a.length===4?l=[a[2],a[3]].join(r):a.length===3&&(l=a[2]);let c=[a[0],s[s.length-1],l].join(r);return i.unshift(c),`${Tl()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),pa=class pa{};o(pa,"ApplicationV2"),m([Xe("settings")],pa.prototype,"settings",2);var fa=pa,On=class On{};o(On,"AppSettings"),m([y({manifest:{path:o(()=>"sap.app","path")}})],On.prototype,"title",2),m([y({manifest:{path:o(()=>"sap.app","path")}})],On.prototype,"description",2),m([y({manifest:{path:o(()=>st.GENERICAPPSETTINGS,"path")}}),F({since:"1.50.0"})],On.prototype,"flexibleColumnLayout",2),m([y({manifest:{path:o(()=>st.GENERICAPPSETTINGS,"path")}}),F({since:"1.46.0"})],On.prototype,"forceGlobalRefresh",2),m([y({manifest:{path:o(()=>"sap.ui5","path")}}),F({since:"1.56.0"}),dn("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],On.prototype,"flexEnabled",2);var Fn=On;function Wg(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(Wg,"exportDefaultSpan");var ga=class ga{};o(ga,"ChartSettingsType"),m([y({manifest:{path:o(()=>We()+"/chartSettings","path")}})],ga.prototype,"showDataLabel",2);var vl=ga,Ln=class Ln{};o(Ln,"DefaultSpanObject"),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"cols",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"rows",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"showOnlyHeader",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"minimumTitleRow",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"minimumSubTitleRow",2);var Cl=Ln,Ne=class Ne{};o(Ne,"CommonCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"entitySet",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"title",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"subTitle",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"annotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"dataPointAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"selectionPresentationAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"kpiAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"category",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"dynamicSubtitleAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"valueSelectionInfo",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"showFilterInHeader",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"sortBy",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"sortOrder",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"identificationAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"selectionAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"presentationAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"enableLocaleCurrencyFormatting",2),m([y({manifest:{path:o(t=>H(t),"path"),export:Wg}})],Ne.prototype,"defaultSpan",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"requireAppAuthorization",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"showSortingInHeader",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"tabs",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"addODataSelect",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"showRefresh",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"customParams",2);var jn=Ne,Hi=class Hi{};o(Hi,"CustomCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Hi.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Hi.prototype,"template",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Hi.prototype,"settings",2);var Sl=Hi,Vn=class Vn extends jn{};o(Vn,"ListCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"showLineItemDetail",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"imageSupported",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"enableAddToInsights",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"listFlavor",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"listType",2);var xl=Vn,Er=class Er{};o(Er,"ListCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Er.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Er.prototype,"template",2);var Nr=Er,Zt=class Zt extends jn{};o(Zt,"AnalyticalCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"chartAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"ignoreSapText",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"enableAddToInsights",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"navigation",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"valueSelectionInfo",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"chartProperties",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"colorPalette",2);var El=Zt,Ar=class Ar{};o(Ar,"AnalyticalCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Ar.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ar.prototype,"template",2);var Lr=Ar,Gi=class Gi extends jn{};o(Gi,"StackCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Gi.prototype,"itemText",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Gi.prototype,"objectStreamCardsNavigationProperty",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Gi.prototype,"objectStreamCardsSettings",2);var Al=Gi,Pr=class Pr{};o(Pr,"StackCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Pr.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Pr.prototype,"template",2);var Vr=Pr,Wi=class Wi extends jn{};o(Wi,"LinkListCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Wi.prototype,"listFlavor",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Wi.prototype,"headerAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Wi.prototype,"staticContent",2);var Pl=Wi,Ir=class Ir{};o(Ir,"LinklistCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Ir.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ir.prototype,"template",2);var jr=Ir,Or=class Or extends jn{};o(Or,"TableCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Or.prototype,"showLineItemDetail",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Or.prototype,"enableAddToInsights",2);var Il=Or,Fr=class Fr{};o(Fr,"TableCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Fr.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Fr.prototype,"template",2);var Dr=Fr;var Kg=U(K());var pv=o((e,t,n,i,r)=>{let a=et(n[1],r),s=n.slice(-1)[0];return Fe(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),ma=class ma{};o(ma,"Field"),m([y({flex:{controlId:pv,controlType:o(()=>Kg.ControlType.GroupElement,"controlType"),createFlexChange:$},generate:he})],ma.prototype,"visible",2);var Ol=ma;var Ll=U(K());var Fl={controlId:Fe,controlType:o(()=>Ll.ControlType.SmartFilterBar,"controlType"),createFlexChange:$},en=class en{};o(en,"ListReportFilterBar"),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.38.0"})],en.prototype,"smartVariantManagement",2),m([y({flex:Fl}),F({since:"1.40.0"})],en.prototype,"liveMode",2),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.48.0"})],en.prototype,"variantManagementHidden",2),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.52.0"})],en.prototype,"subTitleIfVariantMgmtHidden",2),m([y({flex:{controlId:Fe,controlType:o(()=>Ll.ControlType.SmartFilterBar,"controlType"),createFlexChange:$}}),F({since:"1.28.0"})],en.prototype,"showClearOnFB",2),m([y({flex:Fl}),F({since:"1.38.0"})],en.prototype,"showFilterConfiguration",2),m([y({flex:Fl}),F({since:"1.28.0"})],en.prototype,"showRestoreOnFB",2);var ya=en,$r=class $r extends ya{};o($r,"AnalyticalListPageFilterBar"),m([y({manifest:{path:o(t=>pe(t),"path")}})],$r.prototype,"showGoButtonOnFilterBar",2),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.60.0"})],$r.prototype,"filterDefaultsFromSelectionVariant",2);var Nl=$r;var jt=U(K());var tn=o((e,t,n,i,r)=>{if(i()===jt.ControlType.Button){let a=n[n.length-1],s=et(n[1],r);return`${e}action::${a}::${s}::FormAction`}return Fe(e,t)},"getFormActionButtonId"),Dn=class Dn{};o(Dn,"FormAction"),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$},generate:he})],Dn.prototype,"visible",2),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],Dn.prototype,"tooltip",2),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],Dn.prototype,"icon",2),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],Dn.prototype,"activeIcon",2),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],Dn.prototype,"type",2);var Vl=Dn,$n=class $n{};o($n,"FieldForAction"),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$},generate:he})],$n.prototype,"visible",2),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],$n.prototype,"tooltip",2),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],$n.prototype,"icon",2),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],$n.prototype,"activeIcon",2),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],$n.prototype,"type",2);var jl=$n;var ve=U(K()),Bt=U(pr());var Rl=require("path"),Nv=U(K()),om=U(rm()),am=require("fs");var Lv=(0,Rl.join)(__dirname,"templates");var Vv=o((e,t)=>{let n=(0,am.readFileSync)(e,"utf8");return(0,om.render)(n,t)},"renderTemplate");var _l=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return Vv((0,Rl.join)(Lv,t+".xml"),n)},"getSingleColumnContent"),Ml=o((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let i of e){let r=_l(i,t);n=n+`
|
|
82
|
+
`)},"scanLine")};Ce.escapeXML=Ke.escapeXML;Ce.__express=Ce.renderFile;Ce.VERSION=vv;Ce.name=Ev;typeof window<"u"&&(window.ejs=Ce)});var Cn={};Eo(Cn,{deleteConfigEntityByPath:()=>kx,exportConfig:()=>_x,exportConfigEntityByPath:()=>Mx,generateSchema:()=>Rx,getApiVersion:()=>Gx,getChanges:()=>ty,getGenericSchema:()=>ms,getPathToGenericSchema:()=>wm,getProject:()=>Xx,importConfig:()=>Ux,importProject:()=>Bx,importProjectSchema:()=>Hx,isDirectory:()=>Kx,log:()=>q,readDirectory:()=>vu});module.exports=my(Cn);var Se=U(K());var N=U(K());var ne=o(e=>typeof e=="string","isString"),or=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),ap=o(e=>e==null?"":""+e,"makeString"),Th=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),vh=/###/g,sp=o(e=>e&&e.indexOf("###")>-1?e.replace(vh,"."):e,"cleanKey"),lp=o(e=>!e||ne(e),"canNotTraverseDeeper"),ar=o((e,t,n)=>{let i=ne(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(lp(e))return{};let a=sp(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return lp(e)?{}:{obj:e,k:sp(i[r])}},"getLastOfPath"),cp=o((e,t,n)=>{let{obj:i,k:r}=ar(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=ar(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=ar(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),Ch=o((e,t,n,i)=>{let{obj:r,k:a}=ar(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),Po=o((e,t)=>{let{obj:n,k:i}=ar(e,t);if(n)return n[i]},"getPath"),Sh=o((e,t,n)=>{let i=Po(e,n);return i!==void 0?i:Po(t,n)},"getPathWithDefaults"),mp=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?ne(e[i])||e[i]instanceof String||ne(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):mp(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),Ai=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),xh={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},Eh=o(e=>ne(e)?e.replace(/[&<>"'\/]/g,t=>xh[t]):e,"escape"),Ns=class Ns{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let n=this.regExpMap.get(t);if(n!==void 0)return n;let i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}};o(Ns,"RegExpCache");var xs=Ns,Ah=[" ",",","?","!",";"],Ph=new xs(20),Ih=o((e,t,n)=>{t=t||"",n=n||"";let i=Ah.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=Ph.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),Es=o(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let c=a;c<i.length;++c)if(c!==a&&(l+=n),l+=i[c],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&c<i.length-1)continue;a+=c-a+1;break}r=s}return r},"deepFind"),Io=o(e=>e&&e.replace("_","-"),"getCleanedCode"),Oh={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},sr=class sr{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Oh,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(ne(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new sr(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new sr(this.logger,t)}};o(sr,"Logger");var As=sr,Qt=new As,Ls=class Ls{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,c]=s;for(let u=0;u<c;u++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,c]=s;for(let u=0;u<c;u++)l.apply(l,[t,...i])})}};o(Ls,"EventEmitter");var Ii=Ls,Vs=class Vs extends Ii{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):ne(i)&&a?l.push(...i.split(a)):l.push(i)));let c=Po(this.data,l);return!c&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),c||!s||!ne(i)?c:Es(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),cp(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(ne(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let c=Po(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?mp(c,i,a):c={...c,...i},cp(this.data,l,c),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(Vs,"ResourceStore");var Oo=Vs,yp={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,r))}),t}},up={},Vo=class Vo extends Ii{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Th(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Qt.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let i=this.resolve(t,n);return i&&i.res!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Ih(t,i,r);if(s&&!l){let c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:ne(a)?[a]:a};let u=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),t=u.join(r)}return{key:t,namespaces:ne(a)?[a]:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),c=l[l.length-1],u=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(f){let re=n.nsSeparator||this.options.nsSeparator;return r?{res:`${c}${re}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${re}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:s}let p=this.resolve(t,n),g=p&&p.res,b=p&&p.usedKey||s,E=p&&p.exactUsedKey||s,I=Object.prototype.toString.apply(g),L=["[object Number]","[object Function]","[object RegExp]"],G=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,oe=!this.i18nFormat||this.i18nFormat.handleAsObject,Y=!ne(g)&&typeof g!="boolean"&&typeof g!="number";if(oe&&g&&Y&&L.indexOf(I)<0&&!(ne(G)&&Array.isArray(g))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let re=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,g,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(p.res=re,p.usedParams=this.getUsedParamsDetails(n),p):re}if(a){let re=Array.isArray(g),J=re?[]:{},le=re?E:b;for(let Ee in g)if(Object.prototype.hasOwnProperty.call(g,Ee)){let C=`${le}${a}${Ee}`;J[Ee]=this.translate(C,{...n,joinArrays:!1,ns:l}),J[Ee]===C&&(J[Ee]=g[Ee])}g=J}}else if(oe&&ne(G)&&Array.isArray(g))g=g.join(G),g&&(g=this.extendTranslation(g,t,n,i));else{let re=!1,J=!1,le=n.count!==void 0&&!ne(n.count),Ee=Vo.hasDefaultValue(n),C=le?this.pluralResolver.getSuffix(u,n.count,n):"",on=n.ordinal&&le?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",Wt=le&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Pe=Wt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${C}`]||n[`defaultValue${on}`]||n.defaultValue;!this.isValidLookup(g)&&Ee&&(re=!0,g=Pe),this.isValidLookup(g)||(J=!0,g=s);let Ci=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&J?void 0:g,mt=Ee&&Pe!==g&&this.options.updateMissing;if(J||re||mt){if(this.logger.log(mt?"updateKey":"missingKey",u,c,s,mt?Pe:g),a){let Je=this.resolve(s,{...n,keySeparator:!1});Je&&Je.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Nt=[],ye=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ye&&ye[0])for(let Je=0;Je<ye.length;Je++)Nt.push(ye[Je]);else this.options.saveMissingTo==="all"?Nt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Nt.push(n.lng||this.language);let qn=o((Je,yt,it)=>{let an=Ee&&it!==g?it:Ci;this.options.missingKeyHandler?this.options.missingKeyHandler(Je,c,yt,an,mt,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Je,c,yt,an,mt,n),this.emit("missingKey",Je,c,yt,g)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&le?Nt.forEach(Je=>{let yt=this.pluralResolver.getSuffixes(Je,n);Wt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&yt.indexOf(`${this.options.pluralSeparator}zero`)<0&&yt.push(`${this.options.pluralSeparator}zero`),yt.forEach(it=>{qn([Je],s+it,n[`defaultValue${it}`]||Pe)})}):qn(Nt,s,Pe))}g=this.extendTranslation(g,t,n,p,i),J&&g===s&&this.options.appendNamespaceToMissingKey&&(g=`${c}:${s}`),(J||re)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${s}`:s,re?g:void 0):g=this.options.parseMissingKeyHandler(g))}return r?(p.res=g,p.usedParams=this.getUsedParamsDetails(n),p):g}extendTranslation(t,n,i,r,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let u=ne(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(u){let g=t.match(this.interpolator.nestingRegexp);f=g&&g.length}let p=i.replace&&!ne(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,i.lng||this.language||r.usedLng,i),u){let g=t.match(this.interpolator.nestingRegexp),b=g&&g.length;f<b&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var g=arguments.length,b=new Array(g),E=0;E<g;E++)b[E]=arguments[E];return a&&a[0]===b[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${n[0]}`),null):s.translate(...b,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,c=ne(l)?[l]:l;return t!=null&&c&&c.length&&i.applyPostProcessor!==!1&&(t=yp.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,a,s,l;return ne(t)&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(i))return;let u=this.extractFromKey(c,n),f=u.key;r=f;let p=u.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));let g=n.count!==void 0&&!ne(n.count),b=g&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),E=n.context!==void 0&&(ne(n.context)||typeof n.context=="number")&&n.context!=="",I=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(L=>{this.isValidLookup(i)||(l=L,!up[`${I[0]}-${L}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(up[`${I[0]}-${L}`]=!0,this.logger.warn(`key "${r}" for languages "${I.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),I.forEach(G=>{if(this.isValidLookup(i))return;s=G;let oe=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(oe,f,G,L,n);else{let re;g&&(re=this.pluralResolver.getSuffix(G,n.count,n));let J=`${this.options.pluralSeparator}zero`,le=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(oe.push(f+re),n.ordinal&&re.indexOf(le)===0&&oe.push(f+re.replace(le,this.options.pluralSeparator)),b&&oe.push(f+J)),E){let Ee=`${f}${this.options.contextSeparator}${n.context}`;oe.push(Ee),g&&(oe.push(Ee+re),n.ordinal&&re.indexOf(le)===0&&oe.push(Ee+re.replace(le,this.options.pluralSeparator)),b&&oe.push(Ee+J))}}let Y;for(;Y=oe.pop();)this.isValidLookup(i)||(a=Y,i=this.getResource(G,L,Y,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!ne(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(Vo,"Translator");var Fo=Vo,Cs=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),js=class js{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Qt.create("languageUtils")}getScriptPartFromCode(t){if(t=Io(t),!t||t.indexOf("-")<0)return null;let n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Io(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(ne(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(t)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Cs(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Cs(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=Cs(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),ne(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return ne(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):ne(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(js,"LanguageUtil");var No=js,Fh=[{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}],Nh={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3},Lh=["v1","v2","v3"],Vh=["v4"],fp={zero:0,one:1,two:2,few:3,many:4,other:5},jh=o(()=>{let e={};return Fh.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Nh[t.fc]}})}),e},"createRules"),Ds=class Ds{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Qt.create("pluralResolver"),(!this.options.compatibilityJSON||Vh.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=jh(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let i=Io(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!t.match(/-|_/))return;let c=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(c,n)}return this.pluralRulesCache[a]=s,s}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,a)=>fp[r]-fp[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(t,r,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(t,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){let i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n)),r=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));let a=o(()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!Lh.includes(this.options.compatibilityJSON)}};o(Ds,"PluralResolver");var Ps=Ds,pp=o(function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=Sh(e,t,n);return!a&&r&&ne(n)&&(a=Es(e,n,i),a===void 0&&(a=Es(t,n,i))),a},"deepFindWithDefaults"),Ss=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),$s=class $s{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Qt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:f,unescapePrefix:p,nestingPrefix:g,nestingPrefixEscaped:b,nestingSuffix:E,nestingSuffixEscaped:I,nestingOptionsSeparator:L,maxReplaces:G,alwaysFormat:oe}=t.interpolation;this.escape=n!==void 0?n:Eh,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?Ai(a):s||"{{",this.suffix=l?Ai(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=f?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=g?Ai(g):b||Ai("$t("),this.nestingSuffix=E?Ai(E):I||Ai(")"),this.nestingOptionsSeparator=L||",",this.maxReplaces=G||1e3,this.alwaysFormat=oe!==void 0?oe:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,r){let a,s,l,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=o(b=>{if(b.indexOf(this.formatSeparator)<0){let G=pp(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(G,void 0,i,{...r,...n,interpolationkey:b}):G}let E=b.split(this.formatSeparator),I=E.shift().trim(),L=E.join(this.formatSeparator).trim();return this.format(pp(n,c,I,this.options.keySeparator,this.options.ignoreJSONStructure),L,i,{...r,...n,interpolationkey:I})},"handleFormat");this.resetRegExp();let f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(b=>Ss(b),"safeValue")},{regex:this.regexp,safeValue:o(b=>this.escapeValue?Ss(this.escape(b)):Ss(b),"safeValue")}].forEach(b=>{for(l=0;a=b.regex.exec(t);){let E=a[1].trim();if(s=u(E),s===void 0)if(typeof f=="function"){let L=f(t,a,r);s=ne(L)?L:""}else if(r&&Object.prototype.hasOwnProperty.call(r,E))s="";else if(p){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${E} for interpolating ${t}`),s="";else!ne(s)&&!this.useRawValueToEscape&&(s=ap(s));let I=b.safeValue(s);if(t=t.replace(a[0],I),p?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((c,u)=>{let f=this.nestingOptionsSeparator;if(c.indexOf(f)<0)return c;let p=c.split(new RegExp(`${f}[ ]*{`)),g=`{${p[1]}`;c=p[0],g=this.interpolate(g,s);let b=g.match(/'/g),E=g.match(/"/g);(b&&b.length%2===0&&!E||E.length%2!==0)&&(g=g.replace(/'/g,'"'));try{s=JSON.parse(g),u&&(s={...u,...s})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,I),`${c}${f}${g}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,c},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let c=[];s={...i},s=s.replace&&!ne(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let f=r[1].split(this.formatSeparator).map(p=>p.trim());r[1]=f.shift(),c=f,u=!0}if(a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!ne(a))return a;ne(a)||(a=ap(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),u&&(a=c.reduce((f,p)=>this.format(f,p,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o($s,"Interpolator");var Is=$s,Dh=o(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...c]=s.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),f=l.trim();n[f]||(n[f]=u),u==="false"&&(n[f]=!1),u==="true"&&(n[f]=!0),isNaN(u)||(n[f]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),Pi=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(Io(i),r),t[s]=l),l(n)}},"createCachedFormatter"),ws=class ws{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Qt.create("formatter"),this.options=t,this.formats={number:Pi((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:Pi((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:Pi((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:Pi((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:Pi((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Pi(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{let{formatName:u,formatOptions:f}=Dh(c);if(this.formats[u]){let p=l;try{let g=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},b=g.locale||g.lng||r.locale||r.lng||i;p=this.formats[u](l,b,{...f,...r,...g})}catch(g){this.logger.warn(g)}return p}else this.logger.warn(`there was no format function for ${u}`);return l},t)}};o(ws,"Formatter");var Os=ws,$h=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),Rs=class Rs extends Ii{constructor(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=Qt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},c={};return t.forEach(u=>{let f=!0;n.forEach(p=>{let g=`${u}|${p}`;!i.reload&&this.store.hasResourceBundle(u,p)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?s[g]===void 0&&(s[g]=!0):(this.state[g]=1,f=!1,s[g]===void 0&&(s[g]=!0),a[g]===void 0&&(a[g]=!0),c[p]===void 0&&(c[p]=!0)))}),f||(l[u]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(c=>{Ch(c.loaded,[a],s),$h(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});let f=c.loaded[u];f.length&&f.forEach(p=>{l[u][p]===void 0&&(l[u][p]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((u,f)=>{if(this.readingCalls--,this.waitingReads.length>0){let p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(u&&f&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(u,f)},"resolver"),c=this.backend[i].bind(this.backend);if(c.length===2){try{let u=c(t,n);u&&typeof u.then=="function"?u.then(f=>l(null,f)).catch(l):l(null,u)}catch(u){l(u)}return}return c(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();ne(t)&&(t=this.languageUtils.toResolveHierarchy(t)),ne(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){let c={...s,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let f;u.length===5?f=u(t,n,i,r,c):f=u(t,n,i,r),f&&typeof f.then=="function"?f.then(p=>l(null,p)).catch(l):l(null,f)}catch(f){l(f)}else u(t,n,i,r,l,c)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(Rs,"Connector");var Fs=Rs,dp=o(()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),ne(e[1])&&(t.defaultValue=e[1]),ne(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),gp=o(e=>(ne(e.ns)&&(e.ns=[e.ns]),ne(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ne(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),Ao=o(()=>{},"noop"),wh=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),lr=class lr extends Ii{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=gp(t),this.services={},this.logger=Qt,this.modules={external:[]},wh(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(ne(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=dp();this.options={...r,...this.options,...gp(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);let a=o(f=>f?typeof f=="function"?new f:f:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Qt.init(a(this.modules.logger),this.options):Qt.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=Os);let p=new No(this.options);this.store=new Oo(this.options.resources,this.options);let g=this.services;g.logger=Qt,g.resourceStore=this.store,g.languageUtils=p,g.pluralResolver=new Ps(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(g.formatter=a(f),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new Is(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new Fs(a(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(b){for(var E=arguments.length,I=new Array(E>1?E-1:0),L=1;L<E;L++)I[L-1]=arguments[L];t.emit(b,...I)}),this.modules.languageDetector&&(g.languageDetector=a(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=a(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new Fo(this.services,this.options),this.translator.on("*",function(b){for(var E=arguments.length,I=new Array(E>1?E-1:0),L=1;L<E;L++)I[L-1]=arguments[L];t.emit(b,...I)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Ao),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});let c=or(),u=o(()=>{let f=o((p,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(g),i(p,g)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)},"load");return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ao,r=ne(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=o(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})},"append");r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>s(c)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let r=or();return typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),i||(i=Ao),this.services.backendConnector.reload(t,n,a=>{r.resolve(),i(a)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&yp.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;let r=or();this.emit("languageChanging",t);let a=o(c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},"setLngProps"),s=o((c,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(c,function(){return i.t(...arguments)})},"done"),l=o(c=>{!t&&!c&&this.services.languageDetector&&(c=[]);let u=ne(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,f=>{s(f,u)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),r}getFixedT(t,n,i){var r=this;let a=o(function(s,l){let c;if(typeof l!="object"){for(var u=arguments.length,f=new Array(u>2?u-2:0),p=2;p<u;p++)f[p-2]=arguments[p];c=r.options.overloadTranslationOptionHandler([s,l].concat(f))}else c={...l};c.lng=c.lng||a.lng,c.lngs=c.lngs||a.lngs,c.ns=c.ns||a.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||i||a.keyPrefix);let g=r.options.keySeparator||".",b;return c.keyPrefix&&Array.isArray(s)?b=s.map(E=>`${c.keyPrefix}${g}${E}`):b=c.keyPrefix?`${c.keyPrefix}${g}${s}`:s,r.t(b,c)},"fixedT");return ne(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,c)=>{let u=this.services.backendConnector.state[`${l}|${c}`];return u===-1||u===0||u===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=or();return this.options.ns?(ne(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=or();ne(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new No(dp());return n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new lr(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ao,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new lr(r);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new Oo(this.store.data,r),a.services.resourceStore=a.store),a.translator=new Fo(a.services,r),a.translator.on("*",function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),f=1;f<c;f++)u[f-1]=arguments[f];a.emit(l,...u)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(lr,"I18n");var Lo=lr,w=Lo.createInstance();w.createInstance=Lo.createInstance;var oE=w.createInstance,aE=w.dir,sE=w.init,lE=w.loadResources,cE=w.reloadResources,uE=w.use,fE=w.changeLanguage,pE=w.getFixedT,dE=w.t,gE=w.exists,mE=w.setDefaultNamespace,yE=w.hasLoadedNamespace,hE=w.loadNamespaces,bE=w.loadLanguages;var Vd=U(_s()),jd=U(Hp()),Yo=U(Fd()),ae=require("@sap-ux/vocabularies-types/vocabularies/UI"),gr=require("@sap-ux/vocabularies-types/vocabularies/Communication");var nl=U(K());var q=o((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(`${nl.logSeverityLabel[t.severity]}: ${t.message}; location: ${t.location}`,...n):console.log(`${nl.logSeverityLabel[t.severity]}: '${t.message}`,...n)},"log");var j="#/definitions/",il=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),Mt=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function mr(e,t){let n=[],i;return e&&e.forEach(function(r){try{n.push((0,Yo.parse)(r.fileContent,r.dataSourceUri))}catch(a){return q(t,{severity:N.LogSeverity.Error,message:w.t("ANNOERR"),location:{path:w.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0&&(i=(0,jd.convert)((0,Yo.merge)(...n))),i}o(mr,"parseAndMergeAndConvert");var Vi=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function rl(e,t,n){var i,r,a,s;if((i=e==null?void 0:e.Common)!=null&&i.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((r=l==null?void 0:l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(a=e.Common)==null?void 0:a.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}o(rl,"evaluateCommonLabel");function Dd(e,t){let n=e.value;return e.$target&&(n=rl(e.$target.annotations,t,n)),n}o(Dd,"getLabelForPropertyPath");function zo(e,t){var r,a;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(s=>s.name===e.Value):(i=t&&t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&e.Target.$target.Value&&(i=e.Target.$target.Value.$target),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=rl(i.annotations,t,n)),n}o(zo,"getLabelForDataField");function yT(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return rl(a.annotations,t,s)}}}else return}o(yT,"getLabel");function Nd(e,t,n){let i=zo(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(Nd,"getTitleForDataField");function yr(e,t){var s,l,c,u;let n="",i,r,a="";try{let f=yT(e.Label,t);switch(e.$Type){case ae.UIAnnotationTypes.DataField:n=Nd(e,t,f);break;case ae.UIAnnotationTypes.DataFieldWithUrl:i=zo(e,t),n=f||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=zo(e,t),n=f||i||((l=(s=r.Target)==null?void 0:s.$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=zo(e,t),n=i||e.Value.path;break;case ae.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=Nd(r,t,f);break;default:break}return n}catch{return n}}o(yr,"getDatafieldDescription");function _e(e){return e.replace("#","::").replace(/\//g,":2f")}o(_e,"prepareRef");function pn(e){if(e){let t=`${N.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(pn,"getPageTypeV2");function hT(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(hT,"getTargetAnnotationName");function zt(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(zt,"findAlias");function bT(e,t,n){var s,l;let i=e[e.length-1],r=i.substring(i.lastIndexOf(".")+1,i.length),a=zt(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(bT,"determineTargetAnnotation");function TT(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?"":"@"}${N.UIVOCABULARY}`);return e}o(TT,"adjustKey");function vT(e,t,n,i,r=N.FioriElementsVersion.v2,a=!1){var p,g;let s=!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=TT(t,c,a);let f=bT(c,n,e);if(f){let b=r===N.FioriElementsVersion.v2?"::":"#";t=hT(f,a).replace("#",b),l=(g=f.fullyQualifiedName)==null?void 0:g.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(u){let b=r===N.FioriElementsVersion.v2?"::":"/";c.pop(),t=`${[...c].join(b)}${b}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(vT,"getKeyAndEntityTypeOfReferenceFacet");function $d(e,t,n,i,r=N.FioriElementsVersion.v2,a=!1){var f,p,g;let s=(p=e.fullyQualifiedName)==null?void 0:p.substring((f=e.fullyQualifiedName)==null?void 0:f.lastIndexOf("@")),l=e.ID?e.ID.toString():s,c=(g=e.fullyQualifiedName)==null?void 0:g.split("@")[0],u=t;if(e.$Type!==ae.UIAnnotationTypes.CollectionFacet&&"Target"in e){let b=Vi(e.Target);if(!b){q(i,{severity:N.LogSeverity.Error,message:w.t("NOTARGET",{target:e.Target})});return}let{key:E,entityType:I,stopProcessing:L,namespace:G}=vT(n,l,u,b,r,a);if(L)return;l=E,u=I,c=G}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}}o($d,"getSectionFacet");function ol(e){let t,n,i;switch(e.$Type){case ae.UIAnnotationTypes.DataField:t=Vi(e.Value);break;case ae.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Vi(e.Value);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${N.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::${_e(e.Action)}`);break;case ae.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Vi(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::${_e(e.Action)}`);break;case ae.UIAnnotationTypes.DataFieldWithNavigationPath:i=Vi(e.Value),n=Vi(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(ol,"getSchemaKeyOfLineItemRecord");function CT(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}o(CT,"getUIAnnotationTerm");function ST(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?gr.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?gr.CommunicationAnnotationTerms.Address:void 0}o(ST,"getCommunicationAnnotationTerm");function xT(e,t,n){return CT(e,t,n)||ST(e,t)}o(xT,"getAnnotationTerm");function ET(e,t,n,i,r){var u,f,p,g,b,E,I,L,G;let a=zt(N.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(xT(s,a,i)){case ae.UIAnnotationTerms.Chart:{n[s]={base:N.FacetBase.Chart},n[s].target=(u=t==null?void 0:t.Target)==null?void 0:u.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.Identification:{n[s]={base:N.FacetBase.Identification},n[s].target=(f=t==null?void 0:t.Target)==null?void 0:f.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.LineItem:{if(!s.includes(ae.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let oe=s.split("::");oe[oe.length-1]=`@${ae.UIAnnotationTerms.LineItem}`,s=oe.join("::")}n[s]={base:N.FacetBase.LineItem},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.FieldGroup:{n[s]={base:N.FacetBase.Form},n[s].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.DataPoint:{n[s]={base:N.FacetBase.DataPoint},n[s].Label=(b=t==null?void 0:t.Target)==null?void 0:b.$target.Title,n[s].target=(E=t==null?void 0:t.Target)==null?void 0:E.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.PresentationVariant:{n[s]={base:N.FacetBase.PresentationVariant},n[s].target=(I=t==null?void 0:t.Target)==null?void 0:I.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case gr.CommunicationAnnotationTerms.Contact:{n[s]={base:N.FacetBase.Contact},n[s].target=(L=t==null?void 0:t.Target)==null?void 0:L.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case gr.CommunicationAnnotationTerms.Address:{n[s]={base:N.FacetBase.Address},n[s].target=(G=t==null?void 0:t.Target)==null?void 0:G.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:N.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",N.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(ET,"evaluateTargetAnnotation");function al(e,t,n,i,r,a=N.FioriElementsVersion.v2,s){var c;let l=$d(e,i,t,s,a,!1);if(l)switch(e.$Type){case ae.UIAnnotationTypes.ReferenceFacet:{ET(l,e,r,i,t);break}case ae.UIAnnotationTypes.CollectionFacet:{let u=`/${i.fullyQualifiedName}/${e.fullyQualifiedName.split(i.fullyQualifiedName)[1]}`,f=r[l.key]={base:N.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:u,Label:l.label,namespace:l.namespace};(c=e.Facets)==null||c.forEach(p=>{al(p,t,n,i,f.facets,a,s)});break}}}o(al,"addFacetToConfig");function wd(e,t,n=N.FioriElementsVersion.v2,i){var l,c;let r={};if(!e||!e.annotations)return;let a=zt(N.UIVOCABULARY,t),s=a&&((c=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:c.HeaderFacets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),f=e&&e.fullyQualifiedName.substring(0,u);s.forEach(p=>{al(p,t,f,e,r,n,i)})}return r}o(wd,"getObjectPageHeaderFacets");function Rd(e,t,n=N.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=zt(N.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let c=e&&e.fullyQualifiedName.lastIndexOf("."),u=e&&e.fullyQualifiedName.substring(0,c);s.forEach(f=>{al(f,t,u,e,r,n,i)})}return r}o(Rd,"getObjectPageFacets");function sl(e){return e[N.ManifestSection.generic]||e[N.ManifestSection.ovp]?N.FioriElementsVersion.v2:N.FioriElementsVersion.v4}o(sl,"getFEVersionFromManifest");function AT(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[N.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[N.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[N.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[N.ManifestSection.ui5].models[t].dataSource:void 0}o(AT,"getMainService");function _d(e){var i,r;let t=AT(e);if(!t)return N.OdataVersion.v2;let n=(i=e[N.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?N.OdataVersion.v4:N.OdataVersion.v2}o(_d,"getODataVersionFromManifest");function PT(e,t){var i,r;let n;if(e[N.ManifestSection.generic]){let a=e[N.ManifestSection.generic].pages;if(!a){q(t,{severity:N.LogSeverity.Error,message:w.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(pn((i=l.component)==null?void 0:i.name)===N.PageTypeV2.AnalyticalListPage){n=N.TemplateType.AnalyticalListPageV2;break}else if(pn((r=l.component)==null?void 0:r.name)===N.PageTypeV2.ListReport){n=N.TemplateType.ListReportObjectPageV2;break}}}else n||q(t,{severity:N.LogSeverity.Error,message:w.t("NOTEMPLATE",{section:N.ManifestSection.generic}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}});return n}o(PT,"determineV2Template");function ll(e,t,n){let i;return e[N.ManifestSection.ovp]?i=N.TemplateType.OverviewPageV2:t===N.FioriElementsVersion.v2&&(i=PT(e,n)),i}o(ll,"getTemplateTypeFromManifest");function hr(e,t,n){e!=null&&e.ID?(t.title=N.FACETTITLEPREFIX+e.ID,t[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:n.replace(N.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(hr,"addSectionTitleAndDescription");function IT(e,t,n){var i,r;hr(e,t,n),!(e!=null&&e.ID||e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}o(IT,"addTargetTitleAndSectionDescription");function Yn(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[N.SchemaTag.isViewNode]=!0,i[N.SchemaTag.annotationPath]=t.annotationPath,IT(t,i,n),i}o(Yn,"createDefaultSection");function Md(e,t,n,i=N.FioriElementsVersion.v2,r=!1){var l,c;let a=zt(N.UIVOCABULARY,t),s=[];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&&(s=u.reduce(function(f,p){if(r&&!p.ID&&!("Target"in p&&p.Target))return f;let g=$d(p,e,t,n,i,!0);return g&&f.push(g),f},s)),s}}o(Md,"getObjectPageFacetSection");var br=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(c){let u=a&&a===c?r:c.replace("??","/");if(!(!s[u]&&(a===c&&(u=a),!s[u]))){if(Object.keys(s[u]).length===0||i&&i[i.length-1]===u&&n){Array.isArray(s)?s.splice(Number(u),1):delete s[u],l.pop(),br(e,l.join("/"),n,i,r,a);return}s=s&&s[u]}})},"deleteEmptyStructure"),Ld=o(e=>`${e}`,"getGenericSchemaFileName"),Ze=o((e,t)=>{let n={filename:"",path:""};switch(e){case N.SchemaType.Application:{n.filename="App",n.path=`./${N.DirName.Schemas}/${n.filename}`;break}case N.SchemaType.ListReport:case N.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:Ld(e),n.path=`../${N.DirName.Schemas}/${n.filename}`;break}default:{n.filename=Ld(e),n.path=`../${N.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function Zo(e,t,n,i){if(e===N.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o(Zo,"generatePageId");function OT(e,t,n,i){let r=e.$ref;if(r){let a=r.split(j)[1];if(t.definitions[a]){let s=t.definitions[a].controlProperty;r.includes(n[s])&&i.push(a)}}}o(OT,"fillArrayFromAnyOfReference");function FT(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(j)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{OT(r,n,t,i)}),i.length===0))return;return i}o(FT,"fillArrayFromPropertyDefinition");function NT(e,t,n,i,r,a,s,l){var u,f,p,g;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=An(t,n,i,c.targetDefinition,r,a,s),c;e.length>1&&e.forEach(L=>{L!==""&&(c.targetDefinition.properties={...c.targetDefinition.properties,...t.definitions[L].properties})}),c.title=(p=c==null?void 0:c.targetDefinition)!=null&&p.title?c.targetDefinition.title:n;let E=b==null?void 0:b.split("<")[0],I=i||{};c.configObject=a.createInstance(s,E,I,(g=c==null?void 0:c.targetDefinition)==null?void 0:g.controlProperty)}else c.targetDefinition=l,c.title=c.targetDefinition.title?c.targetDefinition.title:r,c.configObject=i;return c}o(NT,"determineNextDefinitionFromDefinitionArray");function An(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=An(e,t,n,i.items,r,a,s),l;let c=FT(i,n,e);if(c)return l=NT(c,e,t,n,r,a,s,i),l}o(An,"getNextTargetDefinition");var cl=o((e,t,n)=>{let i=e.slice();return t.forEach((r,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[a]=(0,Vd.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function Tt(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Tt,"convertActionKeyToStableId");function ji(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(ji,"updatePropertyIndices");function kd(e){return e=e.replace(N.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(kd,"removeNamespaces");function ea(e){return e=e.replace(N.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(ea,"replaceNamespaces");function Ud(e){return e instanceof Error?e.message:String(e)}o(Ud,"getErrorMessage");var Kn=require("@sap-ux/vocabularies-types/vocabularies/UI"),V=U(K());var vt=U(K());var Fe=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),ta=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),et=o((e,t)=>{let n,i=vt.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 LT(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o(LT,"escapeId");var Bd=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(Bd||{});function VT(e,t,n){let i;return e=e.map(function(r){if(r===vt.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===vt.PropertyName.sections)return i=t[a+1],t[a+1]=et(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(VT,"mapBreadcrumbs");var ul=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=VT(t,s,r)),s[0]===vt.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,vt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,vt.VOCWITHSLASH):t[0]===vt.PropertyName.table&&(a=t[0]);let c=s[s.length-1].replace(/::com.sap.vocabularies/g,vt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,vt.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),u,f=c.indexOf(":::");return c.startsWith("DataField")&&f>-1?(c=c.replace("/",":2f"),u=`${e}template:::TableColumn:::${c.substring(0,f)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${c.substring(f+3)}`):(c=c.replace("/","_"),u=`${e}${t.join("::")}-${c}`),LT(u)},"buildColumnControlId"),Ct=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function jT(e){let t=vt.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(jT,"determinePattern");var Hd=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split(j)[1]]:a,c=a.description?a.description:l.description,u=jT(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(f=>{s.enum.indexOf(f)===-1&&s.enum.push(f)}),r[n]={pattern:u,anyOf:[s,{type:"string"}]},c&&(r[n].description=c,delete a.description)},"addPatternForBindingChangeOfEnum"),Di=o((e,t,n)=>{Hd(e,t,n)},"addPatternForBindingChangeOfEnumLR"),he=o((e,t,n)=>{let i=Object.values(Bd);Hd(e,t,n,i)},"addPatternForBindingChangeOfEnumOP");function Gd(){}o(Gd,"doNotDelete");var dA=U(Kd());var Jd=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(Jd,e),"syncRule");function Pt(e,t){let n;return e&&(n=Reflect.getMetadata(Jd,e,t)),n}o(Pt,"getReflectMetadata");var Pn=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),Qd=Symbol("childId"),Xe=o(e=>Reflect.metadata(Qd,e),"childId"),qd=o((e,t)=>Reflect.getMetadata(Qd,e,t),"getChildId"),Xd=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),DT=Symbol("descriptionSrcURL"),dn=o(e=>Reflect.metadata(DT,e),"descriptionSrcURL");var $T=Symbol("validityMetadataKey"),F=o(e=>Reflect.metadata($T,e),"validity");function na(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(na,"getTextForDeprecated");var rg=U(ng()),og=U(K());var ag=rg.default.change,ig={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function sg(e,t){let n="";try{for(let i in ig)e[i]===void 0&&(e[i]=ig[i]);n=ag.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(sg,"createChangeString");function kt(e){try{return ag.parse(e)}catch{return!1}}o(kt,"parseChangeString");function lg(e,t,n,i,r){let a=n.layer?n.layer===og.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:a};return e[i]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,i):e[i].toString().startsWith("{")?(s.content.newBinding=e[i],s.type="propertyBindingChange"):s.content.newValue=e[i]:s.content.newValue=null,s}o(lg,"fillFlexChangeContent");function $(e,t){return sg(e,t)}o($,"exportToFlexChange");var Zn=U(K());function ia(e,t,n,i,r,a){let s=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[s]!==void 0&&(i[n]=t[s])}o(ia,"importProperty");function cg(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(q(i,{severity:Zn.LogSeverity.Warning,message:na(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(cg,"checkDeprecatedProperties");function fl(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(j)[1]];return fl(n,t)}else return e.title?e.title.startsWith(Zn.FACETTITLEPREFIX)?e.title.split(Zn.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(fl,"getSectionTitle");function ra(e){let t=e.split(`${Zn.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(ra,"getTargetFromCustomColumnRef");var Ve=require("@sap-ux/vocabularies-types/vocabularies/UI");var gn=require("@sap-ux/vocabularies-types/vocabularies/UI");function fg(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/\/|@|\(|\)|#|\*/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(fg,"replaceSpecialChars");var ei=o(function(e){return fg(kd(e))},"prepareId");function BT(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(BT,"evaluateConcat");function ti(e){if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if((e==null?void 0:e.$Function)==="odata.concat")return BT(e);if(e&&typeof e=="string")return fg(e.replace(/ /g,"_"))}o(ti,"getStableIdPartFromValue");var ug=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),pg=o(function(e){let t="";if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,ei(t);if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=ug(e),t;if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=ei(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=ti(e.Value)+"::"),t+=e.Action,ei(t);if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataField)return t="DataField::",t+=ti(e.Value),ei(t);if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=ti(e.Value)+"::",t+=ug(e),ei(t);if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=ti(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),ei(t);if(e.$Type&&e.$Type===gn.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=ti(e.Value),ei(t)},"getStableIdPartFromDataField");var O=U(K());var z=U(K());var St=require("@sap-ux/vocabularies-types/vocabularies/UI"),hg=require("path"),bg=U(pr());var $i="ResponsiveTable<LineItems>",Tr="TreeTable<LineItems>",vr="AnalyticalTable<LineItems>",Cr="GridTable<LineItems>",dg=[Tr,vr,Cr],gg=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],mg="template::",oa="template:::ObjectPageAction:::";function HT(e,t,n){e.definitions[z.DefinitionName.LineItems]&&(e.definitions[z.DefinitionName.LineItems].properties.custom={$ref:`${j}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${j}${n}`},description:"Custom Columns"},e.definitions[t][z.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[z.SchemaTag.artifactType]=z.ArtifactType.Manifest)}o(HT,"addCustomColumnDefinition");function GT(e,t){let n;return e==="TableColumnActionIntentBased"?n=ol(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=_e(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===St.UIAnnotationTypes.DataFieldForAction?n=_e(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=_e(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(GT,"getActionId");function pl(e,t,n,i,r){let a,s=n.lineItemId===z.DefinitionName.LineItems?"":"ObjectPage",l=GT(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let c=`${s}${i}<${l}>`,u=yr(n.lineItemRecord,n.entityType);t.properties[l]={$ref:j+c},t.properties[l][z.SchemaTag.propertyIndex]=r;let{key:f,ns:p}=Sr(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][z.SchemaTag.target]=p)):(e.definitions[c]={type:"object",properties:{},description:u,additionalProperties:!1},e.definitions[c][z.SchemaTag.isViewNode]=!0,e.definitions[c][z.SchemaTag.keys]=[{name:z.SchemaKeyName.action,value:f}],p&&(e.definitions[c][z.SchemaTag.target]=p),e.definitions[c][z.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}o(pl,"handleActionRecord");function WT(e,t,n){e!==z.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===St.UIAnnotationTypes.DataFieldForAction||t.$Type===St.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===St.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===St.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(WT,"getColumnActionType");function KT(e,t){let n=[];if(!(e.$Type!==St.UIAnnotationTypes.DataFieldForAction&&e.$Type!==St.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===St.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===St.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===St.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===St.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),WT(t,e,n),n}o(KT,"getActionType");function Tg(e,t,n){let i=ol(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:j+z.DefinitionName.TableColumn,description:yr(e.lineItemRecord,e.entityType)},r.properties[i][z.SchemaTag.propertyIndex]=n,r.properties[i][z.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,la(r.properties[i],e.lineItemRecord),Eg(e.lineItemRecord,r.properties,i)}}o(Tg,"generateGenericColumn");function JT(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{pl(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&pl(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{pl(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":Tg(i,t,r)}}o(JT,"handleAnyAction");function wi(e,t,n,i,r,a){r=r||z.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:c}=xg(e,t,n,i,r);if(n){let u=0;n.forEach(f=>{let p={lineItemPath:c,lineItemRecord:f,lineItemId:r,entityType:i},g=KT(f,r);g?g.forEach(b=>{JT(b,t,s,p,u,l,r)}):Tg(p,t,u),u++})}a&&(t.definitions[r].properties.custom={$ref:`${j}${a}`})}o(wi,"addLineItemsType");function QT(e,t,n){var r,a;let i=(a=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:a.leadingProperty;if(i){let s=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=s==null?void 0:s.reduce((l,c)=>(l.includes(c.name)||l.push(c.name),l),[])}}o(QT,"addListReportLeadingProperties");function qT(e,t,n,i){var s,l,c,u,f,p;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let a=(f=(u=(c=n.component)==null?void 0:c.settings)==null?void 0:u.quickVariantSelectionX)==null?void 0:f.variants;if(a){let g=[];for(let b in a){let E=(p=a[b])==null?void 0:p.key;E!==void 0&&!g.includes(E)&&g.push(E)}ni(g,r)}}o(qT,"addTabkeyEnum");function aa(e,t,n,i,r){var s,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,bg.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("\\"+hg.sep,"g"),"/");let p=n+u.split(".fragment.xml")[0].replace(/\//g,".");a.push(p)}}}),ni(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(aa,"addFragmentEnum");function Ri(e,t,n,i,r,a=z.DefinitionName.CustomColumns,s=z.DefinitionName.CustomColumn,l){HT(e,a,s),QT(e,t,s),qT(e,s,n,l);let c=i&&i["sap.app"]&&i["sap.app"].id;aa(e,r,c,"fragmentName",s),aa(e,r,c,"fragmentName",z.DefinitionName.CustomColumn),aa(e,r,c,"cellsFragmentName",s),aa(e,r,c,"cellsFragmentName",z.DefinitionName.CustomColumn)}o(Ri,"addTableColumnExtensions");function vg(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(vg,"removeElementsFromEnum");function sa(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=Mt(n==null?void 0:n.fullyQualifiedName,St.UIAnnotationTerms.SelectionFields);if(r&&(i[z.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,c=`SelectionField<${_e(s.value)}>`,u=dl(s);s.type==="PropertyPath"&&(l=Dd(s,n)),i.properties[s.value]={$ref:j+c},i.properties[s.value][z.SchemaTag.propertyIndex]=a,e.definitions[c]={type:"object",description:l,additionalProperties:!1},e.definitions[c][z.SchemaTag.isViewNode]=!0,e.definitions[c][z.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[c][z.SchemaTag.dataType]=u,e.definitions[c][z.SchemaTag.keys]=[{name:z.SchemaKeyName.value,value:`${s.value}`}],e.definitions[c][z.SchemaTag.annotationPath]=`${i[z.SchemaTag.annotationPath]}/${a}`,e.definitions[c].properties={},a++})}o(sa,"addSelectionFields");function Cg(e){return!!e.navigationProperties.find(n=>n.name==="DraftAdministrativeData")}o(Cg,"isDraftEnabled");function _i(e,t=!1,n){let i=z.DefinitionName.HeaderActionsStandard,r=z.DefinitionName.HeaderActionsStandard,a=z.DefinitionName.HeaderActionStandard;t&&(i=z.DefinitionName.GenericActions,r=z.DefinitionName.HeaderActions,a=z.DefinitionName.ObjectPageHeaderActionStandard);let s=e.definitions[i],l=e.definitions[r];l[z.SchemaTag.isViewNode]=!0,l.description="Actions",Object.entries((n||s).properties).forEach(([u,f])=>{let p=f.$ref.split(j)[1],g=`${a}<${p}>`;l.properties[u]={$ref:`${j}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][z.SchemaTag.actionType]=z.ActionType.Standard})}o(_i,"addStandardHeaderActions");function Sg(e,t){let n=e.definitions[z.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split(j)[1],a=`${z.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${j}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][z.SchemaTag.actionType]=z.ActionType.Standard}}o(Sg,"addStandardFooterActionsOP");function XT(e,t,n,i){if(e===O.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Ve.UIAnnotationTypes.DataField:case Ve.UIAnnotationTypes.DataFieldForAnnotation:case Ve.UIAnnotationTypes.DataFieldWithNavigationPath:case Ve.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===O.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Ve.UIAnnotationTypes.DataField:case Ve.UIAnnotationTypes.DataFieldForAnnotation:case Ve.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(XT,"copyFieldProperties");function zT(e,t,n,i){let r=e===O.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===O.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(zT,"determineFieldDefinitionName");function YT(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][O.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][O.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][O.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][O.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(YT,"addKeysTagForDataField");function ZT(e,t,n){if(e.$Type===Ve.UIAnnotationTypes.DataField||e.$Type===Ve.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ve.UIAnnotationTypes.DataFieldWithNavigationPath)YT(e,t,n);else if(e.$Type===Ve.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][O.SchemaTag.keys]=[{name:"Target",value:ea(e.Target.value)}],t.definitions[n][O.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Ve.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][O.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][O.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][O.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Ve.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][O.SchemaTag.keys]=[{name:O.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][O.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][O.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(ZT,"addKeysTagToField");function Ag(e,t,n,i,r,a,s,l=!0){var p;let c=pg(n),u=s===O.FioriElementsVersion.v2&&c&&c.includes("::")?c.split("::").splice(1).join("::"):c,f=zT(s,c,i,u);if(!(!n||!n.$Type)){if(n.$Type===Ve.UIAnnotationTypes.DataFieldForAction||n.$Type===Ve.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===O.SectionType.Section){let g=_e(`${e}${O.DefinitionName.Actions}<${i}>`),b=t.definitions[g].properties[u]={$ref:`${j}${f}`};b[O.SchemaTag.propertyIndex]=parseInt(r)}}else{let g=_e(`${e}${O.DefinitionName.Fields}<${i}>`);t.definitions[g].properties[u]={$ref:`${j}${f}`,propertyIndex:parseInt(r)}}t.definitions[f]={type:"object",properties:{},description:yr(n,a.entityType),additionalProperties:!1},ZT(n,t,f),t.definitions[f][O.SchemaTag.annotationPath]=`/${a.entityType.fullyQualifiedName}/${n.fullyQualifiedName.split(a.entityType.fullyQualifiedName)[1]}`,t.definitions[f][O.SchemaTag.annotationType]=n.$Type,t.definitions[f][O.SchemaTag.isViewNode]=!0,la(t.definitions[f],n),XT(s,t,n,f),n.$Type===Ve.UIAnnotationTypes.DataFieldForAction&&((p=t.definitions)!=null&&p.FormAction)&&(t.definitions[f].properties=t.definitions[O.DefinitionName.FormAction].properties)}}o(Ag,"addField");function ev(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}o(ev,"determineTargetIdOfForm");function tv(e,t,n,i,r,a=!0){var u;if(!e.target)return;let s=_e(`${t}${O.DefinitionName.Form}<${i}>`),l=_e(`${t}${O.DefinitionName.Fields}<${i}>`),c=_e(`${t}${O.DefinitionName.Actions}<${i}>`);if(n.properties.form={$ref:`${j}${s}`},t===O.SectionType.Section&&a?(n.definitions[s]={type:"object",properties:{actions:{$ref:`${j}${c}`},fields:{$ref:`${j}${l}`}},description:"Form",additionalProperties:!1},n.definitions[c]={type:"object",properties:{},description:"Actions",additionalProperties:!1},n.definitions[c][O.SchemaTag.isViewNode]=!0):n.definitions[s]={type:"object",properties:{fields:{$ref:`${j}${l}`}},description:"Form",additionalProperties:!1},n.definitions[s][O.SchemaTag.isViewNode]=!0,(u=e.entityType)!=null&&u.name&&(n.definitions[s][O.SchemaTag.annotationPath]=Mt(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier)),n.definitions[l]={type:"object",properties:{},description:"Fields",additionalProperties:!1},n.definitions[l][O.SchemaTag.isViewNode]=!0,e.base===O.FacetBase.Identification)for(let f in e.target){let p=e.target[f];p&&Ag(t,n,p,i,f,e,r,a)}else for(let f in e.target.Data){let p=e.target.Data[f];Ag(t,n,p,i,f,e,r)}}o(tv,"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][O.SchemaTag.keys]=[{name:O.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][O.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][O.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][O.SchemaTag.annotationPath]=Mt(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(nv,"addTagsToFormDefinition");function Pg(e,t,n,i,r,a){if(!t.target)return;let s=ev(t),l=_e(`${e}${O.DefinitionName.Form}<${s}>`),c=_e(`${e}${O.DefinitionName.Fields}<${s}>`),u=_e(`${e}${O.DefinitionName.Actions}<${s}>`),f=!(t.base===O.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${j}${l}`},e===O.SectionType.Section&&f?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${j}${u}`},fields:{$ref:`${j}${c}`}},description:"Form",additionalProperties:!1},i.definitions[u]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[u][O.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${j}${c}`}},description:"Form",additionalProperties:!1},nv(t,i,l),i.definitions[c]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[c][O.SchemaTag.isViewNode]=!0,tv(t,e,i,s,r,f),s}o(Pg,"handleForm");function iv(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),a=t.references.find(s=>s.alias===r);a&&(i=e.replace(n,a.namespace))}return i}o(iv,"replaceAlias");function gl(e,t){let n=iv(e.Action,t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(gl,"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)===O.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:Ig(a.pages,t)}}o(Ig,"isFirstObjectPage");function Og(e,t,n,i){var c,u,f;e.definitions[O.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${O.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${j}${O.DefinitionName.ObjectPageFooter}`},e.definitions[O.DefinitionName.ObjectPageFooter].properties[O.PropertyName.actions]={$ref:`${j}${O.DefinitionName.FooterActions}`};let r=e.definitions[O.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};r[O.SchemaTag.isViewNode]=!0;let a=zt(O.UIVOCABULARY,t.serviceAVT),s=(c=t.entitySet)==null?void 0:c.entityType,l=a&&((f=(u=s==null?void 0:s.annotations)==null?void 0:u[a])==null?void 0:f.Identification);if(l){let p=l.fullyQualifiedName.replace(`@${Ve.UIAnnotationTerms.Identification}`,`/@${Ve.UIAnnotationTerms.Identification}`);r[O.SchemaTag.annotationPath]=`/${p}`,l.forEach((g,b)=>{if(g.Determining&&g.$Type===Ve.UIAnnotationTypes.DataFieldForAction){let{actionName:E,actionId:I}=gl(g,t.serviceAVT),L=g.Label||E,G=_e(`${O.DefinitionName.ObjectPageFooterAction}<${I}>`);e.definitions[O.DefinitionName.ObjectPageFooterAction]?e.definitions[G]={...JSON.parse(JSON.stringify(e.definitions[O.DefinitionName.ObjectPageFooterAction])),description:L,annotationPath:`/${p}/${b}`}:(e.definitions[G]={type:"object",properties:{},description:L},e.definitions[G][O.SchemaTag.isViewNode]=!0,e.definitions[G][O.SchemaTag.annotationPath]=`/${p}/${b}`),r.properties[I]={$ref:`${j}${G}`}}})}else s&&(r[O.SchemaTag.annotationPath]=`/${s.fullyQualifiedName}/@${Ve.UIAnnotationTerms.Identification}`);n===O.FioriElementsVersion.v2&&Ig(i,t)&&!Cg(s)&&Sg(e,r),delete e.definitions[O.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${O.DefinitionName.ObjectPageFooter}<${O.DefinitionName.ObjectPageFooterActions}>`]}o(Og,"addFooterActions");function Fg(e,t,n,i,r=!1){var f,p;let a=O.DefinitionName.HeaderActions,s=e.definitions[a];e.definitions[O.DefinitionName.ObjectPageHeader].properties[O.PropertyName.actions]={$ref:`${j}${a}`};let l=e.definitions[a]={type:"object",properties:{},description:"Actions",additionalProperties:!1};l[O.SchemaTag.isViewNode]=!0;let c=zt(O.UIVOCABULARY,n),u=c&&((p=(f=t==null?void 0:t.annotations)==null?void 0:f[c])==null?void 0:p.Identification);u?(l[O.SchemaTag.annotationPath]="/"+u.fullyQualifiedName.replace(`@${Ve.UIAnnotationTerms.Identification}`,`/@${Ve.UIAnnotationTerms.Identification}`),u.forEach(i(t,e,u,l,n))):t&&(l[O.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ve.UIAnnotationTerms.Identification}`),r&&_i(e,!0,s),delete e.definitions[O.DefinitionName.GenericActions],delete e.definitions[`${O.DefinitionName.ObjectPageHeader}<${O.DefinitionName.GenericActions}>`]}o(Fg,"addHeaderActions");function Ng(e,t){e.properties.header={$ref:`${j}${O.DefinitionName.ObjectPageHeader}`},e.definitions[O.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${O.DefinitionName.ObjectPageHeader}<${O.DefinitionName.GenericActions}>`])),t&&(e.definitions[O.DefinitionName.ObjectPageHeader][O.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ve.UIAnnotationTerms.HeaderInfo}`)}o(Ng,"addCommonHeaderSchema");function Lg(e,t){return e.entityType?t.entitySets.find(n=>n.entityType.name===e.entityType.name||n.name===e.entityType.name):void 0}o(Lg,"determineEntitySetOfFacet");var Ut=require("@sap-ux/vocabularies-types/vocabularies/UI");var Te=U(K());function ni(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(ni,"addEnumToSchema");function Vg(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let r=[];for(let s in i){let l=i[s];if(t.indexOf(l.term)>-1){let c=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(c)===-1&&r.push(c)}}ni(r,n)}o(Vg,"addEnumForValidAnnotations");function ca(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Ut.UIAnnotationTerms.SelectionVariant,Ut.UIAnnotationTerms.SelectionPresentationVariant];Vg(e,r,i)}o(ca,"addEnumForSingleTabVariant");function jg(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[Ut.UIAnnotationTerms.SelectionVariant,Ut.UIAnnotationTerms.SelectionPresentationVariant];Vg(n.entityType,r,i)}o(jg,"addEnumForMultiTabVariant");function Dg(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),ni(r,i)}o(Dg,"addEnumForVariantEntitySet");function $g(e,t,n,i){let r=n.map(a=>{let s=i.find(c=>!!a[c]);return{const:a[s],...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 s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{$ref:j+"RelatedFacetKeys"},l]}}}}o($g,"addDefinitionForRelatedFacetKeys");function rv(e){return e.replace("#","::")}o(rv,"getFacetKeyInSchema");function wg(e,t){return`${e}<${rv(t)}>`}o(wg,"getFacetDefinitionKey");function ov(e,t,n,i=!0,r){let a=t;if(i&&(a=wg(r||e,t)),e&&e!==a)try{let s=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[a]=s}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[a]}o(ov,"parseSchemaDefinition");function xg(e,t,n,i,r){let a;t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r].additionalProperties=!1,t.definitions[r][Te.SchemaTag.isViewNode]=!0;let s=e?Te.DefinitionName.ObjectPageToolBar:Te.DefinitionName.ToolBar,l=`${s}<${r}>`;try{t.definitions[l]=JSON.parse(JSON.stringify(t.definitions[`${s}`]))}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${s}`}))}let c=`Actions<${_e(r)}>`;t.definitions[l].properties.actions.$ref=j+c;let u=e?Te.DefinitionName.ObjectPageToolBarActions:Te.DefinitionName.Actions,f;try{f=t.definitions[c]=JSON.parse(JSON.stringify(t.definitions[u])),f.properties={},f.additionalProperties=!1}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let p,g;if(r===Te.DefinitionName.LineItems&&t.properties.footer){g=`${Te.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${j}${g}`;try{t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[Te.DefinitionName.GenericFooter]))}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Te.DefinitionName.GenericFooter}))}let b=`${Te.DefinitionName.FooterActions}<${_e(r)}>`;t.definitions[g].properties.actions.$ref=j+b;try{p=t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[Te.DefinitionName.Actions]))}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Te.DefinitionName.Actions}))}p.properties={},p.additionalProperties=!1}return n&&(a=Mt(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),a&&(t.definitions[r][Te.SchemaTag.annotationPath]=t.definitions[l][Te.SchemaTag.annotationPath]=a,p&&(t.definitions[g][Te.SchemaTag.annotationPath]=a))),{actions:f,footerActions:p,lineItemPath:a}}o(xg,"addCommonLineItemDefinitions");function Rg(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(Rg,"getDataTypeFromAnnotation");function ua(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=Rg(e.$Type)),t}o(ua,"determineDataTypeOfTarget");function dl(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=ua((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=Rg(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(dl,"determineDataType");function la(e,t){let n=dl(t);n&&(e[Te.SchemaTag.dataType]=n)}o(la,"addDataTypeToDefinition");function av(e,t){return`${j}${wg(e,t)}`}o(av,"getFacetDefinitionLink");function ml(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,c=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:av(a?c:l,t)};let u=ov(a?c:l,t,i,!0,a?c:void 0);hr(e,u,t),u[Te.SchemaTag.annotationPath]=e.annotationPath,u[Te.SchemaTag.isViewNode]=!0}o(ml,"handleAddressContact");function Sr(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),a=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,a),n=r>0?n.substring(r+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}o(Sr,"getActionKey");function Eg(e,t,n){var i,r,a;try{if(e.Value)t[n][Te.SchemaTag.keys]=[{name:Te.SchemaKeyName.value,value:ti(e.Value)}];else if(e.$Type===Ut.UIAnnotationTypes.DataFieldWithAction||e.$Type===Ut.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=Sr(e.Action,!0);t[n][Te.SchemaTag.keys]=[{name:Te.SchemaKeyName.action,value:s}],l&&(t[n][Te.SchemaTag.target]=l)}else if(e.$Type===Ut.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=Sr(e.Target.value,!1);t[n][Te.SchemaTag.keys]=[{name:Te.SchemaKeyName.target,value:ea(s)}],t[n][Te.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===Ut.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Ut.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:c}=Sr(s,!0);t[n][Te.SchemaTag.keys]=[{name:"SemanticObject",value:e[Te.SchemaKeyName.semanticObject]},{name:"Action",value:l}],c&&(t[n][Te.SchemaTag.target]=c)}}catch{return}}o(Eg,"addKeyToDefinition");var Mi=U(K());var _g=[{version:"1.124",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{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 kg="1.71.123";var Ug={name:"@sap/ux-specification",version:kg,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">= 18.0.0 < 19.0.0 || >= 20.0.0 < 21.0.0 || >= 22.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -p copy-json-schemas htmlV2 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/to-json-schema.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",iXiaSoftV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=iXiaSoft",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/vocabularies-types":"0.12.0"},devDependencies:{"@sap-ux/annotation-converter":"0.9.11","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.71.123","@types/d3":"7.4.3","@types/jquery":"3.5.32","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.7.9",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.8",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2",path:"0.12.7","reflect-metadata":"0.2.2","typescript-json-schema":"0.57.0","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var In=class In{constructor(){In.distTagsOfSpec.length===0&&(In.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){In.distTagsOfSpec=[]}getSpecVersion(){return kg}getDistTagsOfVersion(){let t=[],n=_g,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=w.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});q(n,{severity:Mi.LogSeverity.Info,message:r,location:{path:Mi.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(In.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=w.t("WRONGMINUI5VERSION",{minUI5Version:t});q(n,{severity:Mi.LogSeverity.Warning,message:r,location:{path:Mi.MANIFESTPATH}})}}};o(In,"DistTagEvaluator"),In.distTagsOfSpec=[];var xr=In;var ee=U(K());var Be=U(K());var It=U(K());var yl=class yl{constructor(t,n,i,r,a,s,l){this.unhandledControllers=[];let c=Ze(It.SchemaType.Application);this.app={$schema:c.path,id:t["sap.app"].id,pages:r,home:i,target:{fioriElements:a,odata:a===It.FioriElementsVersion.v2?It.OdataVersion.v2:It.OdataVersion.v4},...s&&{settings:s}},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 s=i.config;if(i.pageType!==It.PageType.CustomPage){let l=Ze(i.pageType,i.entitySet);if(this.schemas[l.filename])s.$schema=l.path;else{let c=Ze(i.pageType);s.$schema=c.path}t[`${It.DirName.Pages}/${a}.json`]=s}}let r=JSON.parse(JSON.stringify(this.app));for(let a in r.pages)delete r.pages[a].config;return n[It.FileName.App]=r,{appConfig:n,pageConfigs:t}}};o(yl,"AppProvider");var ki=yl;var de=U(K());var Ui=U(K());var ze=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),Bg=o((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2");var Hg=o((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function hl(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(hl,"getNewPageTemplate");function cv(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(cv,"findPageInManifest");function uv(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=hl(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:hl(e[t].pageType)}),!Array.isArray(n.pages))){let i=cv(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=hl(e[t].pageType)),bl(t,e,i)}}o(uv,"transformPageFromAssociation");function fv(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)===Ui.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Ui.PageTypeV2.ListReport||n.pageType===Ui.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(fv,"deletePage");function bl(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Ui.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)uv(t,r,n);Array.isArray(n.pages)||fv(n,t,i)}}o(bl,"transformPageToNewManifestV2");var xm=U(pr());var Qc={};Eo(Qc,{ALPAnalyticalTable:()=>Xl,ALPGridTable:()=>ql,ALPResponsiveTable:()=>Ql,Action:()=>ec,AnalyticalCard:()=>Lr,AnalyticalCardSettings:()=>El,AnalyticalListPageFilterBar:()=>Nl,AnalyticalTable:()=>Jl,BaseCustomSection:()=>to,ChartSettings:()=>bc,ChartSettingsType:()=>vl,CommonCardSettings:()=>jn,CommonHeaderFacetSettings:()=>ui,CommonTableSettings:()=>Rn,CommonTableSettingsForSections:()=>yi,CreateWithFilters:()=>Hl,CustomCard:()=>Sl,DefaultSpanObject:()=>Cl,FRAGMENT_DEFINITION:()=>nn,Field:()=>Ol,FieldForAction:()=>jl,FooterAction:()=>nc,FormAction:()=>Vl,GlobalTableSettings:()=>Kc,GridTable:()=>zl,HeaderAction:()=>Cc,HeaderActionStandard:()=>sc,HeaderSections:()=>Pc,KPISettings:()=>Tc,LinkListCardSettings:()=>Pl,LinklistCard:()=>jr,ListCard:()=>Nr,ListCardSettings:()=>xl,ListReportFilterBar:()=>ya,ObjectPageAnalyticalTable:()=>Hc,ObjectPageCustomSectionFragment:()=>no,ObjectPageCustomSectionView:()=>io,ObjectPageFooterAction:()=>Oc,ObjectPageFooterActionStandard:()=>cc,ObjectPageGridTable:()=>Gc,ObjectPageHeader:()=>vc,ObjectPageHeaderActionStandard:()=>lc,ObjectPageHeaderSectionAddress:()=>Ac,ObjectPageHeaderSectionChart:()=>xc,ObjectPageHeaderSectionDataPoint:()=>Ec,ObjectPageHeaderSectionForm:()=>Sc,ObjectPageLayout:()=>Nc,ObjectPageResponsiveTable:()=>hi,ObjectPageSectionAddressV2:()=>$c,ObjectPageSectionChartV2:()=>jc,ObjectPageSectionContactV2:()=>wc,ObjectPageSectionFormV2:()=>Vc,ObjectPageSectionTableV2:()=>Dc,ObjectPageSectionV2:()=>Lc,ObjectPageSubSectionChartV2:()=>Mc,ObjectPageSubSectionContactV2:()=>kc,ObjectPageSubSectionFormV2:()=>_c,ObjectPageSubSectionTableV2:()=>Uc,ObjectPageSubSectionV2:()=>Rc,ObjectPageToolBarAction:()=>Jc,ObjectPageTreeTable:()=>Wc,QuickVariantSelection:()=>Gl,QuickVariantSelectionOP:()=>Bc,QuickVariantSelectionX:()=>Wl,ResponsiveTable:()=>ri,SAP_UI_TABLE:()=>ha,SaveAndEditOP:()=>ac,Share:()=>ic,ShareOP:()=>rc,StackCard:()=>Vr,StackCardSettings:()=>Al,TableALP:()=>Qi,TableCard:()=>Dr,TableCardSettings:()=>Il,TableColumn:()=>pc,TableColumnAction:()=>ja,TableColumnActionIntentBased:()=>dc,TableCustomColumn:()=>gc,ToolBar:()=>yc,ToolBarAction:()=>tc,TreeTable:()=>Kl,UpAndDownNavigationOP:()=>oc,buildIntentBasedActionId:()=>uc,deleteColumnFromFragment:()=>va,deleteType:()=>Xi,exportCustomColumnsToFragment:()=>Bl,exportDefaultSpan:()=>Wg,exportType:()=>qi,getChartSectionControlId:()=>bm,getContactSubSectionControlId:()=>vm,getCustomColumnPath:()=>Ca,getFormSectionControlId:()=>hm,getRootCustomColumnFromFragmentJSON:()=>_r,getSectionControlId:()=>di,getSmartChartControlId:()=>Jr,getSmartTableControlId:()=>wn,getSubSectionControlId:()=>Tm,getTableSectionControlId:()=>ym});var st=U(K());var pe=o(e=>`${st.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),da=o(e=>pe(e)+"/tableSettings","getTableSettingPathV2");var We=o(()=>st.ManifestSection.ovp,"getOVPsettingPath"),H=o(e=>{let t=[st.ManifestSection.ovp];return e.forEach(n=>{n in st.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var ii=o((e,t)=>`${st.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Gg=o(e=>{let t=[st.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Vt=o(e=>{let t=[];return t.push(Gg(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Bi=o(e=>Vt(e)+"/tableSettings","getGlobalTableSettingsPathV2"),Yt=o((e,t,n)=>{let i=[];i.push(Gg(e));let r=n.replace(st.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),Nn=o((e,t,n)=>Yt(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2");var Tl=o(()=>`sap.ui5/extends/extensions/${st.v2.SAPUI5_VIEW_EXTENSION}/${st.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),mn=o((e,t,n,...i)=>{let r="|",a=n.split(r),s=e[e.length-1].split(r),l="";a.length===4?l=[a[2],a[3]].join(r):a.length===3&&(l=a[2]);let c=[a[0],s[s.length-1],l].join(r);return i.unshift(c),`${Tl()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),pa=class pa{};o(pa,"ApplicationV2"),m([Xe("settings")],pa.prototype,"settings",2);var fa=pa,On=class On{};o(On,"AppSettings"),m([y({manifest:{path:o(()=>"sap.app","path")}})],On.prototype,"title",2),m([y({manifest:{path:o(()=>"sap.app","path")}})],On.prototype,"description",2),m([y({manifest:{path:o(()=>st.GENERICAPPSETTINGS,"path")}}),F({since:"1.50.0"})],On.prototype,"flexibleColumnLayout",2),m([y({manifest:{path:o(()=>st.GENERICAPPSETTINGS,"path")}}),F({since:"1.46.0"})],On.prototype,"forceGlobalRefresh",2),m([y({manifest:{path:o(()=>"sap.ui5","path")}}),F({since:"1.56.0"}),dn("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],On.prototype,"flexEnabled",2);var Fn=On;function Wg(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(Wg,"exportDefaultSpan");var ga=class ga{};o(ga,"ChartSettingsType"),m([y({manifest:{path:o(()=>We()+"/chartSettings","path")}})],ga.prototype,"showDataLabel",2);var vl=ga,Ln=class Ln{};o(Ln,"DefaultSpanObject"),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"cols",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"rows",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"showOnlyHeader",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"minimumTitleRow",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ln.prototype,"minimumSubTitleRow",2);var Cl=Ln,Ne=class Ne{};o(Ne,"CommonCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"entitySet",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"title",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"subTitle",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"annotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"dataPointAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"selectionPresentationAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"kpiAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"category",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"dynamicSubtitleAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"valueSelectionInfo",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"showFilterInHeader",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"sortBy",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"sortOrder",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"identificationAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"selectionAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"presentationAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"enableLocaleCurrencyFormatting",2),m([y({manifest:{path:o(t=>H(t),"path"),export:Wg}})],Ne.prototype,"defaultSpan",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"requireAppAuthorization",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"showSortingInHeader",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"tabs",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"addODataSelect",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"showRefresh",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ne.prototype,"customParams",2);var jn=Ne,Hi=class Hi{};o(Hi,"CustomCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Hi.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Hi.prototype,"template",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Hi.prototype,"settings",2);var Sl=Hi,Vn=class Vn extends jn{};o(Vn,"ListCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"showLineItemDetail",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"imageSupported",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"enableAddToInsights",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"listFlavor",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Vn.prototype,"listType",2);var xl=Vn,Er=class Er{};o(Er,"ListCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Er.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Er.prototype,"template",2);var Nr=Er,Zt=class Zt extends jn{};o(Zt,"AnalyticalCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"chartAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"ignoreSapText",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"enableAddToInsights",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"navigation",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"valueSelectionInfo",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"chartProperties",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Zt.prototype,"colorPalette",2);var El=Zt,Ar=class Ar{};o(Ar,"AnalyticalCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Ar.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ar.prototype,"template",2);var Lr=Ar,Gi=class Gi extends jn{};o(Gi,"StackCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Gi.prototype,"itemText",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Gi.prototype,"objectStreamCardsNavigationProperty",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Gi.prototype,"objectStreamCardsSettings",2);var Al=Gi,Pr=class Pr{};o(Pr,"StackCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Pr.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Pr.prototype,"template",2);var Vr=Pr,Wi=class Wi extends jn{};o(Wi,"LinkListCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Wi.prototype,"listFlavor",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Wi.prototype,"headerAnnotationPath",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Wi.prototype,"staticContent",2);var Pl=Wi,Ir=class Ir{};o(Ir,"LinklistCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Ir.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Ir.prototype,"template",2);var jr=Ir,Or=class Or extends jn{};o(Or,"TableCardSettings"),m([y({manifest:{path:o(t=>H(t),"path")}})],Or.prototype,"showLineItemDetail",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Or.prototype,"enableAddToInsights",2);var Il=Or,Fr=class Fr{};o(Fr,"TableCard"),m([y({manifest:{path:o(t=>H(t),"path")}})],Fr.prototype,"model",2),m([y({manifest:{path:o(t=>H(t),"path")}})],Fr.prototype,"template",2);var Dr=Fr;var Kg=U(K());var pv=o((e,t,n,i,r)=>{let a=et(n[1],r),s=n.slice(-1)[0];return Fe(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),ma=class ma{};o(ma,"Field"),m([y({flex:{controlId:pv,controlType:o(()=>Kg.ControlType.GroupElement,"controlType"),createFlexChange:$},generate:he})],ma.prototype,"visible",2);var Ol=ma;var Ll=U(K());var Fl={controlId:Fe,controlType:o(()=>Ll.ControlType.SmartFilterBar,"controlType"),createFlexChange:$},en=class en{};o(en,"ListReportFilterBar"),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.38.0"})],en.prototype,"smartVariantManagement",2),m([y({flex:Fl}),F({since:"1.40.0"})],en.prototype,"liveMode",2),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.48.0"})],en.prototype,"variantManagementHidden",2),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.52.0"})],en.prototype,"subTitleIfVariantMgmtHidden",2),m([y({flex:{controlId:Fe,controlType:o(()=>Ll.ControlType.SmartFilterBar,"controlType"),createFlexChange:$}}),F({since:"1.28.0"})],en.prototype,"showClearOnFB",2),m([y({flex:Fl}),F({since:"1.38.0"})],en.prototype,"showFilterConfiguration",2),m([y({flex:Fl}),F({since:"1.28.0"})],en.prototype,"showRestoreOnFB",2);var ya=en,$r=class $r extends ya{};o($r,"AnalyticalListPageFilterBar"),m([y({manifest:{path:o(t=>pe(t),"path")}})],$r.prototype,"showGoButtonOnFilterBar",2),m([y({manifest:{path:o(t=>pe(t),"path")}}),F({since:"1.60.0"})],$r.prototype,"filterDefaultsFromSelectionVariant",2);var Nl=$r;var jt=U(K());var tn=o((e,t,n,i,r)=>{if(i()===jt.ControlType.Button){let a=n[n.length-1],s=et(n[1],r);return`${e}action::${a}::${s}::FormAction`}return Fe(e,t)},"getFormActionButtonId"),Dn=class Dn{};o(Dn,"FormAction"),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$},generate:he})],Dn.prototype,"visible",2),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],Dn.prototype,"tooltip",2),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],Dn.prototype,"icon",2),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],Dn.prototype,"activeIcon",2),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],Dn.prototype,"type",2);var Vl=Dn,$n=class $n{};o($n,"FieldForAction"),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$},generate:he})],$n.prototype,"visible",2),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],$n.prototype,"tooltip",2),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],$n.prototype,"icon",2),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],$n.prototype,"activeIcon",2),m([y({flex:{controlId:tn,controlType:o(()=>jt.ControlType.Button,"controlType"),createFlexChange:$}})],$n.prototype,"type",2);var jl=$n;var ve=U(K()),Bt=U(pr());var Rl=require("path"),Nv=U(K()),om=U(rm()),am=require("fs");var Lv=(0,Rl.join)(__dirname,"templates");var Vv=o((e,t)=>{let n=(0,am.readFileSync)(e,"utf8");return(0,om.render)(n,t)},"renderTemplate");var _l=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return Vv((0,Rl.join)(Lv,t+".xml"),n)},"getSingleColumnContent"),Ml=o((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let i of e){let r=_l(i,t);n=n+`
|
|
83
83
|
`+r}return n+`
|
|
84
84
|
</core:FragmentDefinition>`},"getColumnFragmentContent"),kl=o(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
|
|
85
85
|
<Text text="Placeholder"/>`}),t+`
|