@sap/ux-specification 1.71.138 → 1.71.139

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
  3. package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
  4. package/dist/documentation/v2/v2-ListReport.html +2 -2
  5. package/dist/documentation/v2/v2-ListReportNew.html +2 -2
  6. package/dist/documentation/v2/v2-ObjectPage.html +2 -2
  7. package/dist/documentation/v2/v2-OverviewPage.html +2 -2
  8. package/dist/index-min.js +24 -24
  9. package/dist/index-min.js.map +4 -4
  10. package/dist/schemas/v2/ListReportNewConfig.json +42 -0
  11. package/dist/specification/package.json +4 -5
  12. package/dist/specification/scripts/extractDocu.js +72 -106
  13. package/dist/specification/scripts/extractDocu.js.map +1 -1
  14. package/dist/specification/scripts/schema/to-json-schema.d.ts.map +1 -1
  15. package/dist/specification/scripts/schema/to-json-schema.js +3 -2
  16. package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
  17. package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts +1 -1
  18. package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts.map +1 -1
  19. package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +1 -2
  20. package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
  21. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Action.d.ts +5 -0
  22. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Action.d.ts.map +1 -0
  23. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Action.js +27 -0
  24. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Action.js.map +1 -0
  25. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/ListHeader.d.ts +12 -0
  26. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/ListHeader.d.ts.map +1 -0
  27. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/ListHeader.js +58 -0
  28. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/ListHeader.js.map +1 -0
  29. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts +7 -0
  30. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts.map +1 -0
  31. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js +23 -0
  32. package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js.map +1 -0
  33. package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.d.ts +2 -0
  34. package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.d.ts.map +1 -1
  35. package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.js +15 -2
  36. package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.js.map +1 -1
  37. package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.d.ts +3 -3
  38. package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.d.ts.map +1 -1
  39. package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js +10 -8
  40. package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js.map +1 -1
  41. package/dist/specification/src/sync/v2/import/importPage.d.ts.map +1 -1
  42. package/dist/specification/src/sync/v2/import/importPage.js +1 -2
  43. package/dist/specification/src/sync/v2/import/importPage.js.map +1 -1
  44. package/dist/specification/src/sync/v2/utils.d.ts +5 -6
  45. package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
  46. package/dist/specification/src/sync/v2/utils.js +8 -17
  47. package/dist/specification/src/sync/v2/utils.js.map +1 -1
  48. package/dist/types/src/common/types.d.ts +1 -5
  49. package/dist/types/src/common/types.d.ts.map +1 -1
  50. package/dist/types/src/common/types.js.map +1 -1
  51. package/package.json +4 -5
package/dist/index-min.js CHANGED
@@ -1,4 +1,4 @@
1
- var rh=Object.create;var Ri=Object.defineProperty;var Qp=Object.getOwnPropertyDescriptor;var ah=Object.getOwnPropertyNames;var sh=Object.getPrototypeOf,ch=Object.prototype.hasOwnProperty;var r=(e,t)=>Ri(e,"name",{value:t,configurable:!0});var Ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$r=(e,t)=>{for(var n in t)Ri(e,n,{get:t[n],enumerable:!0})},wr=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ah(t))!ch.call(e,o)&&o!==n&&Ri(e,o,{get:()=>t[o],enumerable:!(i=Qp(t,o))||i.enumerable});return e},oi=(e,t,n)=>(wr(e,t,"default"),n&&wr(n,t,"default")),M=(e,t,n)=>(n=e!=null?rh(sh(e)):{},wr(t||!e||!e.__esModule?Ri(n,"default",{value:e,enumerable:!0}):n,e)),lh=e=>wr(Ri({},"__esModule",{value:!0}),e),m=(e,t,n,i)=>{for(var o=i>1?void 0:i?Qp(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(t,n,o):s(o))||o);return i&&o&&Ri(t,n,o),o};var nu=Ie((lA,tu)=>{var Rs=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,fh=Object.getOwnPropertyNames,uh=Object.prototype.hasOwnProperty,Xp=r((e,t)=>{for(var n in t)Rs(e,n,{get:t[n],enumerable:!0})},"u"),dh=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of fh(t))!uh.call(e,o)&&o!==n&&Rs(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=ph(t,o))||i.enumerable});return e},"Ve"),gh=r(e=>dh(Rs({},"__esModule",{value:!0}),e),"Oe"),qp={};Xp(qp,{ACTIONTITLEPREFIX:r(()=>bh,"ACTIONTITLEPREFIX"),ALPViewType:r(()=>of,"ALPViewType"),ActionType:r(()=>sf,"ActionType"),ArtifactType:r(()=>af,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:r(()=>vh,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:r(()=>df,"ChangeIndicator"),CloudDevAdaptationStatus:r(()=>Pf,"CloudDevAdaptationStatus"),ControlType:r(()=>cf,"ControlType"),DataSourceType:r(()=>Af,"DataSourceType"),DefinitionName:r(()=>yf,"DefinitionName"),DirName:r(()=>ff,"DirName"),DraftDiscardEnabledSettings:r(()=>vf,"DraftDiscardEnabledSettings"),ExportArtifacts:r(()=>nf,"ExportArtifacts"),ExportType:r(()=>pf,"ExportType"),FACETTITLEPREFIX:r(()=>hh,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:r(()=>jh,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:r(()=>Vh,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:r(()=>Nh,"FRAGMENTNAMEPART"),FacetBase:r(()=>gf,"FacetBase"),Features:r(()=>Lf,"Features"),FileName:r(()=>uf,"FileName"),FioriElementsVersion:r(()=>zp,"FioriElementsVersion"),FlexChangeLayer:r(()=>ef,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:r(()=>Cf,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:r(()=>Zp,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:r(()=>Lh,"GENERICAPPSETTINGS"),LogSeverity:r(()=>Of,"LogSeverity"),MANIFESTPATH:r(()=>Sh,"MANIFESTPATH"),ManifestSection:r(()=>Ef,"ManifestSection"),OdataVersion:r(()=>Yp,"OdataVersion"),PACKAGEJSON:r(()=>xh,"PACKAGEJSON"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:r(()=>yh,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:r(()=>mh,"PageType"),PageTypeV2:r(()=>ws,"PageTypeV2"),PropertyMessageType:r(()=>Ff,"PropertyMessageType"),PropertyName:r(()=>hf,"PropertyName"),QUICKVARPATH:r(()=>Oh,"QUICKVARPATH"),QUICKVARPATHX:r(()=>Fh,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:r(()=>Rh,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:r(()=>Dh,"SAPUI5_VIEW_CLASS"),SchemaKeyName:r(()=>Tf,"SchemaKeyName"),SchemaTag:r(()=>bf,"SchemaTag"),SchemaType:r(()=>tf,"SchemaType"),SectionType:r(()=>rf,"SectionType"),StatePreservationMode:r(()=>xf,"StatePreservationMode"),TableColumnVerticalAlignment:r(()=>Sf,"TableColumnVerticalAlignment"),TemplateType:r(()=>Nf,"TemplateType"),UIVOCABULARY:r(()=>Ah,"UIVOCABULARY"),UIVOCABULARYALPHADOT:r(()=>Ih,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:r(()=>Eh,"UIVOCABULARYDOT"),VOCWITHCOLONS:r(()=>Ph,"VOCWITHCOLONS"),VOCWITHSLASH:r(()=>Ch,"VOCWITHSLASH"),ViewTemplateType:r(()=>mf,"ViewTemplateType"),ViewTypes:r(()=>If,"ViewTypes"),Visualization:r(()=>lf,"Visualization"),defaultExportResult:r(()=>Th,"defaultExportResult"),logSeverityLabel:r(()=>wh,"logSeverityLabel"),v2:r(()=>Vf,"v2")});tu.exports=gh(qp);var ws=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(ws||{}),mh={...ws},yh=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"]]),zp=(e=>(e.v2="v2",e.v4="v4",e))(zp||{}),Yp=(e=>(e.v2="v2",e.v4="v4",e))(Yp||{}),Zp=(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))(Zp||{}),ef=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(ef||{}),tf=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e))(tf||{}),nf=(e=>(e.flex="flex",e.manifest="manifest",e))(nf||{}),of=(e=>(e.Primary="primary",e.Secondary="secondary",e))(of||{}),rf=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(rf||{}),af=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.Fragment="Fragment",e))(af||{}),sf=(e=>(e.Annotation="Annotation",e.Custom="Custom",e.Standard="Standard",e))(sf||{}),cf=(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))(cf||{}),lf=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(lf||{}),pf=(e=>(e.GW="GW",e.UI5Client="UI5Client",e))(pf||{}),ff=(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))(ff||{}),uf=(e=>(e.App="app.json",e))(uf||{}),hh="Facet ID: ",bh="Action ID: ",df=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(df||{}),Th={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[]},gf=(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))(gf||{}),vh="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",mf=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(mf||{}),yf=(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))(yf||{}),hf=(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))(hf||{}),bf=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlId="controlId",e.controlType="controlType",e.conversionExit="conversionExit",e.dataType="dataType",e.deletable="deletable",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.icon="icon",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.manifestPath="manifestPath",e.messages="messages",e.propertyIndex="propertyIndex",e.target="target",e))(bf||{}),Tf=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(Tf||{}),Sh="webapp/manifest.json",xh="package.json",Ch="/@com.sap.vocabularies",Ph="::@com.sap.vocabularies",Ah="com.sap.vocabularies.UI.v1",Eh="com.sap.vocabularies.UI.v1.",Ih="@com.sap.vocabularies.UI.v1.",Oh="/quickVariantSelection",Fh="/quickVariantSelectionX",Nh=".fragment.",vf=(e=>(e.restricted="restricted",e))(vf||{}),Sf=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(Sf||{}),xf=(e=>(e.persistence="persistence",e.discovery="discovery",e))(xf||{}),Cf=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(Cf||{}),Pf=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(Pf||{}),Af=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(Af||{}),Ef=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e.fiori="sap.fiori",e))(Ef||{}),Lh="sap.ui.generic.app/settings",Vh="sap.fe.templates.RootContainer.view.Fcl",jh="appRootView",If=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e.JS="JS",e))(If||{}),Dh="sap.ui.core.mvc.View",Rh="sap.ui.core.Fragment",Of=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(Of||{}),wh={error:"Error",warning:"Warning",info:"Information"},Ff=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(Ff||{}),Nf=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(Nf||{}),Lf=(e=>(e.BuildingBlocks="BuildingBlocks",e))(Lf||{}),Vf={};Xp(Vf,{AvatarShape:r(()=>qf,"AvatarShape"),ButtonType:r(()=>jf,"ButtonType"),CardSettingsType:r(()=>wf,"CardSettingsType"),CardTemplateType:r(()=>Rf,"CardTemplateType"),ChartCardType:r(()=>Df,"ChartCardType"),ChartType:r(()=>Xf,"ChartType"),ContainerLayoutType:r(()=>eu,"ContainerLayoutType"),CreateMode:r(()=>Zf,"CreateMode"),DefaultContentView:r(()=>Jf,"DefaultContentView"),DefaultFilterMode:r(()=>Qf,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>Yf,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>Mh,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>Bh,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>Uh,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>kh,"FE_TEMPLATE_V2_OBJECT_PAGE"),HAlign:r(()=>Uf,"HAlign"),LinkListFlavorType:r(()=>kf,"LinkListFlavorType"),ListFlavorType:r(()=>$f,"ListFlavorType"),ListTypeType:r(()=>_f,"ListTypeType"),PopinLayout:r(()=>Wf,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>Hh,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>Gh,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>Jh,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>Kh,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>Wh,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>zf,"SectionPosition"),SortOrderType:r(()=>Mf,"SortOrderType"),Strategy:r(()=>Kf,"Strategy"),TableColumnExtensionTypeV2:r(()=>Hf,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>Gf,"TableTypeV2"),cardTemplateSettingsMap:r(()=>_h,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>$h,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>Bf,"customColumnViewTypes")});var jf=(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))(jf||{}),Df=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(Df||{}),Rf=(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))(Rf||{}),$h={"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"},_h={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},wf=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(wf||{}),$f=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))($f||{}),_f=(e=>(e.extended="extended",e.condensed="condensed",e))(_f||{}),Mf=(e=>(e.ascending="ascending",e.descending="descending",e))(Mf||{}),kf=(e=>(e.standard="standard",e.carousel="carousel",e))(kf||{}),Uf=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(Uf||{}),Bf=(e=>(e.XML="XML",e))(Bf||{}),Gf=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(Gf||{}),Hf=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(Hf||{}),Wf=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Wf||{}),Kf=(e=>(e.extension="extension",e))(Kf||{}),Jf=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Jf||{}),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||{}),qf=(e=>(e.Circle="Circle",e.Square="Square",e))(qf||{}),zf=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(zf||{}),Yf=(e=>(e.XML="XML",e))(Yf||{}),Zf=(e=>(e.inline="inline",e))(Zf||{}),Mh="sap.suite.ui.generic.template",kh="sap.suite.ui.generic.template.ObjectPage",Uh="sap.suite.ui.generic.template.ListReport",Bh="sap.suite.ui.generic.template.AnalyticalListPage",Gh="sap.ui.viewExtensions",Hh="sap.ui.controllerExtensions",Wh="sap.suite.ui.generic.template.ObjectPage.view.Details",Kh="sap.suite.ui.generic.template.ListReport.view.ListReport",Jh="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",eu=(e=>(e.fixed="fixed",e.resizable="resizable",e))(eu||{})});var su=Ie(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.Features=Rt.TemplateType=Rt.PropertyMessageType=Rt.logSeverityLabel=Rt.LogSeverity=void 0;var iu;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(iu||(Rt.LogSeverity=iu={}));Rt.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var ou;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(ou||(Rt.PropertyMessageType=ou={}));var ru;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(ru||(Rt.TemplateType=ru={}));var au;(function(e){e.BuildingBlocks="BuildingBlocks"})(au||(Rt.Features=au={}))});var Vu=Ie((uA,Lu)=>{var $s=Object.defineProperty,Qh=Object.getOwnPropertyDescriptor,Xh=Object.getOwnPropertyNames,qh=Object.prototype.hasOwnProperty,zh=r((e,t)=>{for(var n in t)$s(e,n,{get:t[n],enumerable:!0})},"R"),Yh=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Xh(t))!qh.call(e,o)&&o!==n&&$s(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=Qh(t,o))||i.enumerable});return e},"h"),Zh=r(e=>Yh($s({},"__esModule",{value:!0}),e),"N"),cu={};zh(cu,{AvatarShape:r(()=>Eu,"AvatarShape"),ButtonType:r(()=>lu,"ButtonType"),CardSettingsType:r(()=>uu,"CardSettingsType"),CardTemplateType:r(()=>fu,"CardTemplateType"),ChartCardType:r(()=>pu,"ChartCardType"),ChartType:r(()=>Au,"ChartType"),ContainerLayoutType:r(()=>Nu,"ContainerLayoutType"),CreateMode:r(()=>Fu,"CreateMode"),DefaultContentView:r(()=>Cu,"DefaultContentView"),DefaultFilterMode:r(()=>Pu,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>Ou,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>nb,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>rb,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>ob,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>ib,"FE_TEMPLATE_V2_OBJECT_PAGE"),HAlign:r(()=>hu,"HAlign"),LinkListFlavorType:r(()=>yu,"LinkListFlavorType"),ListFlavorType:r(()=>du,"ListFlavorType"),ListTypeType:r(()=>gu,"ListTypeType"),PopinLayout:r(()=>Su,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>sb,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>ab,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>pb,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>lb,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>cb,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>Iu,"SectionPosition"),SortOrderType:r(()=>mu,"SortOrderType"),Strategy:r(()=>xu,"Strategy"),TableColumnExtensionTypeV2:r(()=>vu,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>Tu,"TableTypeV2"),cardTemplateSettingsMap:r(()=>tb,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>eb,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>bu,"customColumnViewTypes")});Lu.exports=Zh(cu);var lu=(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))(lu||{}),pu=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(pu||{}),fu=(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))(fu||{}),eb={"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"},tb={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},uu=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(uu||{}),du=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(du||{}),gu=(e=>(e.extended="extended",e.condensed="condensed",e))(gu||{}),mu=(e=>(e.ascending="ascending",e.descending="descending",e))(mu||{}),yu=(e=>(e.standard="standard",e.carousel="carousel",e))(yu||{}),hu=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(hu||{}),bu=(e=>(e.XML="XML",e))(bu||{}),Tu=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(Tu||{}),vu=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(vu||{}),Su=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Su||{}),xu=(e=>(e.extension="extension",e))(xu||{}),Cu=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Cu||{}),Pu=(e=>(e.visual="visual",e.compact="compact",e))(Pu||{}),Au=(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))(Au||{}),Eu=(e=>(e.Circle="Circle",e.Square="Square",e))(Eu||{}),Iu=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Iu||{}),Ou=(e=>(e.XML="XML",e))(Ou||{}),Fu=(e=>(e.inline="inline",e))(Fu||{}),nb="sap.suite.ui.generic.template",ib="sap.suite.ui.generic.template.ObjectPage",ob="sap.suite.ui.generic.template.ListReport",rb="sap.suite.ui.generic.template.AnalyticalListPage",ab="sap.ui.viewExtensions",sb="sap.ui.controllerExtensions",cb="sap.suite.ui.generic.template.ObjectPage.view.Details",lb="sap.suite.ui.generic.template.ListReport.view.ListReport",pb="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Nu=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Nu||{})});var W=Ie(Tt=>{"use strict";var ju=Tt&&Tt.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:r(function(){return t[n]},"get")}),Object.defineProperty(e,i,o)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),fb=Tt&&Tt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Du=Tt&&Tt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ju(t,e,n)},ub=Tt&&Tt.__importStar||function(){var e=r(function(t){return e=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var i=e(t),o=0;o<i.length;o++)i[o]!=="default"&&ju(n,t,i[o]);return fb(n,t),n}}();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.v2=void 0;Du(nu(),Tt);Du(su(),Tt);Tt.v2=ub(Vu())});var tc=Ie((VA,Qu)=>{"use strict";var Lb=r(function(t){return Vb(t)&&!jb(t)},"isMergeableObject");function Vb(e){return!!e&&typeof e=="object"}r(Vb,"isNonNullObject");function jb(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||wb(e)}r(jb,"isSpecial");var Db=typeof Symbol=="function"&&Symbol.for,Rb=Db?Symbol.for("react.element"):60103;function wb(e){return e.$$typeof===Rb}r(wb,"isReactElement");function $b(e){return Array.isArray(e)?[]:{}}r($b,"emptyTarget");function Co(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Mi($b(e),e,t):e}r(Co,"cloneUnlessOtherwiseSpecified");function _b(e,t,n){return e.concat(t).map(function(i){return Co(i,n)})}r(_b,"defaultArrayMerge");function Mb(e,t){if(!t.customMerge)return Mi;var n=t.customMerge(e);return typeof n=="function"?n:Mi}r(Mb,"getMergeFunction");function kb(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}r(kb,"getEnumerableOwnPropertySymbols");function Ku(e){return Object.keys(e).concat(kb(e))}r(Ku,"getKeys");function Ju(e,t){try{return t in e}catch{return!1}}r(Ju,"propertyIsOnObject");function Ub(e,t){return Ju(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}r(Ub,"propertyIsUnsafe");function Bb(e,t,n){var i={};return n.isMergeableObject(e)&&Ku(e).forEach(function(o){i[o]=Co(e[o],n)}),Ku(t).forEach(function(o){Ub(e,o)||(Ju(e,o)&&n.isMergeableObject(t[o])?i[o]=Mb(o,n)(e[o],t[o],n):i[o]=Co(t[o],n))}),i}r(Bb,"mergeObject");function Mi(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||_b,n.isMergeableObject=n.isMergeableObject||Lb,n.cloneUnlessOtherwiseSpecified=Co;var i=Array.isArray(t),o=Array.isArray(e),a=i===o;return a?i?n.arrayMerge(e,t,n):Bb(e,t,n):Co(t,n)}r(Mi,"deepmerge");Mi.all=r(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,o){return Mi(i,o,n)},{})},"deepmergeAll");var Gb=Mi;Qu.exports=Gb});var Jr=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 Hb=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(be,"EnumIsFlag",{enumerable:!0,get:r(function(){return Hb.EnumIsFlag},"get")});var Wb=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(be,"TermToTypes",{enumerable:!0,get:r(function(){return Wb.TermToTypes},"get")});var Kb=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(be,"defaultReferences",{enumerable:!0,get:r(function(){return Kb.VocabularyReferences},"get")});function Xu(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}r(Xu,"splitAt");function qu(e,t){return t<0?e:e.substring(0,t)}r(qu,"substringAt");function Kr(e,t){return Xu(e,e.indexOf(t))}r(Kr,"splitAtFirst");be.splitAtFirst=Kr;function zu(e,t){return Xu(e,e.lastIndexOf(t))}r(zu,"splitAtLast");be.splitAtLast=zu;function Jb(e,t){return qu(e,e.indexOf(t))}r(Jb,"substringBeforeFirst");be.substringBeforeFirst=Jb;function Qb(e,t){return qu(e,e.lastIndexOf(t))}r(Qb,"substringBeforeLast");be.substringBeforeLast=Qb;function Yu(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=zu(t,"."),o=e.reverseReferenceMap[n];if(o)return`${o.alias}.${i}`;if(t.includes("@")){let[a,s]=Kr(t,"@");return`${a}@${Yu(e,s)}`}else return t}r(Yu,"alias");be.alias=Yu;function nc(e,t,n){var i;let o=r(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(f=>[f.alias,f])));let[s,c]=Kr(a,".");if(!c||c.includes("."))return a;let l=s.startsWith("@"),p=l?s.substring(1):s,u=e.referenceMap[p];return u?l?`@${u.namespace}.${c}`:`${u.namespace}.${c}`:n&&!l?`${n}.${c}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[c,l]=Kr(s,"("),p=[o(c)];if(l){let u=l.slice(0,-1);p.push(`(${o(u)})`)}return a.push(p.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}r(nc,"unalias");be.unalias=nc;function Xb(e){return!!e&&e._type==="ComplexType"&&!!e.properties}r(Xb,"isComplexTypeDefinition");be.isComplexTypeDefinition=Xb;function qb(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(qb,"Double");be.Double=qb;function zb(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(zb,"Decimal");be.Decimal=zb;function Yb(e,t,n){let i=Symbol("initial"),o=i;Object.defineProperty(e,t,{enumerable:!0,get(){return o===i&&(o=n()),o},set(a){o=a}})}r(Yb,"lazy");be.lazy=Yb;function Zu(e,t){let n=new Map;return r(function(o){let a=n.get(o);return(a==null?void 0:a[t])===o?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let c=s[t];return n.set(c,s),c===o})},"find")}r(Zu,"createIndexedFind");be.createIndexedFind=Zu;function Zb(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:Zu(e,t)});else throw new Error(`Property '${n}' already exists`);return e}r(Zb,"addGetByValue");be.addGetByValue=Zb;function eT(e,...t){return t.reduceRight((n,{name:i,annotationList:o})=>{var a;for(let{target:s,annotations:c}of o){let l=(a=nc(e,s))!==null&&a!==void 0?a:s;n[l]||(n[l]=[]);let p=c.map(u=>{var f;return u.term=(f=nc(e,u.term))!==null&&f!==void 0?f:u.term,u.fullyQualifiedName=u.qualifier?`${l}@${u.term}#${u.qualifier}`:`${l}@${u.term}`,u.__source=i,u}).filter(u=>!n[l].some(f=>f.term===u.term&&f.qualifier===u.qualifier));n[l].push(...p)}return n},{})}r(eT,"mergeAnnotations");be.mergeAnnotations=eT});var dd=Ie(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.convert=void 0;var Qr=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),U=Jr(),Bt=Symbol("Annotation Target");function dn(e,t){return e[e.length-1]!==t&&e.push(t),e}r(dn,"appendObjectPath");function It(e,t,n,i){var o,a,s,c,l;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let p=n.split("/").reduce((f,d)=>{if(d.includes("@")){let[b,x]=(0,U.splitAtFirst)(d,"@");f.push(b),f.push(`@${x}`)}else f.push(d);return f},[]);if(t===void 0)p[0].startsWith(`${e.rawSchema.namespace}.`)&&p[0]!==((o=e.getConvertedEntityContainer())===null||o===void 0?void 0:o.fullyQualifiedName)?(t=(c=(s=(a=e.getConvertedEntityType(p[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(p[0]))!==null&&s!==void 0?s:e.getConvertedAction(p[0]))!==null&&c!==void 0?c:e.getConvertedAction(`${p[0]}()`),p.shift()):t=e.getConvertedEntityContainer();else if(t[Bt]!==void 0)t=t[Bt];else if(t._type==="Property"){let f=(0,U.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(l=e.getConvertedEntityType(f))!==null&&l!==void 0?l:e.getConvertedComplexType(f)}let u=p.reduce((f,d)=>{var b,x,I,O,$;let re=r(q=>(f.messages.push({message:q}),f.target=void 0,f),"error");if(f.target===void 0)return f;if(f.objectPath=dn(f.objectPath,f.target),d.startsWith("@")&&d!=="@$ui5.overload"){let[q,te]=e.splitTerm(d),J=(b=f.target.annotations[q.substring(1)])===null||b===void 0?void 0:b[te];return J!==void 0?(f.target=J,f):re(`Annotation '${d.substring(1)}' not found on ${f.target._type} '${f.target.fullyQualifiedName}'`)}if(f.target.$target){let q;if(d==="$AnnotationPath"?q=f.target.value:d==="$Path"&&(q=f.target.path),q!==void 0){let te=It(e,f.target[Bt],q);return te.objectPath.forEach(J=>{f.objectPath.includes(J)||(f.objectPath=dn(f.objectPath,J))}),f.target=te.target,f.objectPath=dn(f.objectPath,f.target),f}}switch((x=f.target)===null||x===void 0?void 0:x._type){case"Schema":break;case"EntityContainer":{let J=f.target;if(d===""||e.unalias(d)===J.fullyQualifiedName)return f;let ce=(O=(I=J.entitySets.by_name(d))!==null&&I!==void 0?I:J.singletons.by_name(d))!==null&&O!==void 0?O:J.actionImports.by_name(d);if(ce)return f.target=ce,f}break;case"EntitySet":case"Singleton":{let J=f.target;if(d===""||d==="$Type")return f.target=J.entityType,f;if(d==="$")return f;if(d==="$NavigationPropertyBinding"){let Pe=J.navigationPropertyBinding;return f.target=Pe,f}let ce=It(e,J.entityType,d);return f.target=ce.target,f.objectPath=ce.objectPath.reduce(dn,f.objectPath),f}case"EntityType":{let J=f.target;if(d===""||d==="$Type")return f;let ce=J.entityProperties.by_name(d);if(ce)return f.target=ce,f;let Pe=J.navigationProperties.by_name(d);if(Pe)return f.target=Pe,f;let S=(0,U.substringBeforeFirst)(e.unalias(d),"("),pn=J.actions[S];if(pn)return f.target=pn,f}break;case"ActionImport":{let J=It(e,f.target.action,d);return f.target=J.target,f.objectPath=J.objectPath.reduce(dn,f.objectPath),f}case"Action":{let J=f.target;if(d===""||d==="@$ui5.overload"||d==="0")return f;if(d==="$Parameter"&&J.isBound)return f.target=J.parameters,f;let ce=($=J.parameters[d])!==null&&$!==void 0?$:J.parameters.find(Pe=>Pe.name===d);if(ce)return f.target=ce,f;break}case"Property":{let ce=f.target.targetType;if(ce!==void 0){let Pe=ce.properties.by_name(d);if(Pe)return f.target=Pe,f;let S=ce.navigationProperties.by_name(d);if(S)return f.target=S,f}}break;case"ActionParameter":let q=f.target.typeReference;if(q!==void 0){let J=It(e,q,d);return f.target=J.target,f.objectPath=J.objectPath.reduce(dn,f.objectPath),f}break;case"NavigationProperty":let te=It(e,f.target.targetType,d);return f.target=te.target,f.objectPath=te.objectPath.reduce(dn,f.objectPath),f;default:if(d==="")return f;if(f.target[d])return f.target=f.target[d],f.objectPath=dn(f.objectPath,f.target),f}return re(`Element '${d}' not found at ${f.target._type} '${f.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(u.messages.forEach(f=>e.logError(f.message)),!u.target)if(i){let f=od(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
1
+ var fh=Object.create;var $i=Object.defineProperty;var Yp=Object.getOwnPropertyDescriptor;var uh=Object.getOwnPropertyNames;var dh=Object.getPrototypeOf,gh=Object.prototype.hasOwnProperty;var r=(e,t)=>$i(e,"name",{value:t,configurable:!0});var Ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_r=(e,t)=>{for(var n in t)$i(e,n,{get:t[n],enumerable:!0})},$r=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of uh(t))!gh.call(e,o)&&o!==n&&$i(e,o,{get:()=>t[o],enumerable:!(i=Yp(t,o))||i.enumerable});return e},ai=(e,t,n)=>($r(e,t,"default"),n&&$r(n,t,"default")),$=(e,t,n)=>(n=e!=null?fh(dh(e)):{},$r(t||!e||!e.__esModule?$i(n,"default",{value:e,enumerable:!0}):n,e)),mh=e=>$r($i({},"__esModule",{value:!0}),e),m=(e,t,n,i)=>{for(var o=i>1?void 0:i?Yp(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(o=(i?s(t,n,o):s(o))||o);return i&&o&&$i(t,n,o),o};var au=Ie((mA,ru)=>{var _s=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,hh=Object.getOwnPropertyNames,bh=Object.prototype.hasOwnProperty,Zp=r((e,t)=>{for(var n in t)_s(e,n,{get:t[n],enumerable:!0})},"u"),Th=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of hh(t))!bh.call(e,o)&&o!==n&&_s(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=yh(t,o))||i.enumerable});return e},"Ve"),vh=r(e=>Th(_s({},"__esModule",{value:!0}),e),"Oe"),ef={};Zp(ef,{ACTIONTITLEPREFIX:r(()=>Ph,"ACTIONTITLEPREFIX"),ALPViewType:r(()=>cf,"ALPViewType"),ActionType:r(()=>ff,"ActionType"),ArtifactType:r(()=>pf,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:r(()=>Eh,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:r(()=>hf,"ChangeIndicator"),CloudDevAdaptationStatus:r(()=>Of,"CloudDevAdaptationStatus"),ControlType:r(()=>uf,"ControlType"),DataSourceType:r(()=>Ff,"DataSourceType"),DefinitionName:r(()=>vf,"DefinitionName"),DirName:r(()=>mf,"DirName"),DraftDiscardEnabledSettings:r(()=>Pf,"DraftDiscardEnabledSettings"),ExportArtifacts:r(()=>sf,"ExportArtifacts"),ExportType:r(()=>gf,"ExportType"),FACETTITLEPREFIX:r(()=>Ch,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:r(()=>Mh,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:r(()=>_h,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:r(()=>wh,"FRAGMENTNAMEPART"),FacetBase:r(()=>bf,"FacetBase"),Features:r(()=>Rf,"Features"),FileName:r(()=>yf,"FileName"),FioriElementsVersion:r(()=>tf,"FioriElementsVersion"),FlexChangeLayer:r(()=>rf,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:r(()=>If,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:r(()=>of,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:r(()=>$h,"GENERICAPPSETTINGS"),LogSeverity:r(()=>Vf,"LogSeverity"),MANIFESTPATH:r(()=>Ih,"MANIFESTPATH"),ManifestSection:r(()=>Nf,"ManifestSection"),OdataVersion:r(()=>nf,"OdataVersion"),PACKAGEJSON:r(()=>Oh,"PACKAGEJSON"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:r(()=>xh,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:r(()=>Sh,"PageType"),PageTypeV2:r(()=>Ms,"PageTypeV2"),PropertyMessageType:r(()=>jf,"PropertyMessageType"),PropertyName:r(()=>Sf,"PropertyName"),QUICKVARPATH:r(()=>Dh,"QUICKVARPATH"),QUICKVARPATHX:r(()=>Rh,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:r(()=>Uh,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:r(()=>kh,"SAPUI5_VIEW_CLASS"),SchemaKeyName:r(()=>Cf,"SchemaKeyName"),SchemaTag:r(()=>xf,"SchemaTag"),SchemaType:r(()=>af,"SchemaType"),SectionType:r(()=>lf,"SectionType"),StatePreservationMode:r(()=>Ef,"StatePreservationMode"),TableColumnVerticalAlignment:r(()=>Af,"TableColumnVerticalAlignment"),TemplateType:r(()=>Df,"TemplateType"),UIVOCABULARY:r(()=>Lh,"UIVOCABULARY"),UIVOCABULARYALPHADOT:r(()=>jh,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:r(()=>Vh,"UIVOCABULARYDOT"),VOCWITHCOLONS:r(()=>Nh,"VOCWITHCOLONS"),VOCWITHSLASH:r(()=>Fh,"VOCWITHSLASH"),ViewTemplateType:r(()=>Tf,"ViewTemplateType"),ViewTypes:r(()=>Lf,"ViewTypes"),Visualization:r(()=>df,"Visualization"),defaultExportResult:r(()=>Ah,"defaultExportResult"),logSeverityLabel:r(()=>Bh,"logSeverityLabel"),v2:r(()=>wf,"v2")});ru.exports=vh(ef);var Ms=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(Ms||{}),Sh={...Ms},xh=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"]]),tf=(e=>(e.v2="v2",e.v4="v4",e))(tf||{}),nf=(e=>(e.v2="v2",e.v4="v4",e))(nf||{}),of=(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))(of||{}),rf=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(rf||{}),af=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e))(af||{}),sf=(e=>(e.flex="flex",e.manifest="manifest",e))(sf||{}),cf=(e=>(e.Primary="primary",e.Secondary="secondary",e))(cf||{}),lf=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(lf||{}),pf=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.Fragment="Fragment",e))(pf||{}),ff=(e=>(e.Annotation="Annotation",e.Custom="Custom",e.Standard="Standard",e))(ff||{}),uf=(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))(uf||{}),df=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(df||{}),gf=(e=>(e.GW="GW",e.UI5Client="UI5Client",e))(gf||{}),mf=(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))(mf||{}),yf=(e=>(e.App="app.json",e))(yf||{}),Ch="Facet ID: ",Ph="Action ID: ",hf=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(hf||{}),Ah={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[]},bf=(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))(bf||{}),Eh="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",Tf=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(Tf||{}),vf=(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))(vf||{}),Sf=(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))(Sf||{}),xf=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlId="controlId",e.controlType="controlType",e.conversionExit="conversionExit",e.dataType="dataType",e.deletable="deletable",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.icon="icon",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.manifestPath="manifestPath",e.messages="messages",e.propertyIndex="propertyIndex",e.target="target",e))(xf||{}),Cf=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(Cf||{}),Ih="webapp/manifest.json",Oh="package.json",Fh="/@com.sap.vocabularies",Nh="::@com.sap.vocabularies",Lh="com.sap.vocabularies.UI.v1",Vh="com.sap.vocabularies.UI.v1.",jh="@com.sap.vocabularies.UI.v1.",Dh="/quickVariantSelection",Rh="/quickVariantSelectionX",wh=".fragment.",Pf=(e=>(e.restricted="restricted",e))(Pf||{}),Af=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(Af||{}),Ef=(e=>(e.persistence="persistence",e.discovery="discovery",e))(Ef||{}),If=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(If||{}),Of=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(Of||{}),Ff=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(Ff||{}),Nf=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e.fiori="sap.fiori",e))(Nf||{}),$h="sap.ui.generic.app/settings",_h="sap.fe.templates.RootContainer.view.Fcl",Mh="appRootView",Lf=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e.JS="JS",e))(Lf||{}),kh="sap.ui.core.mvc.View",Uh="sap.ui.core.Fragment",Vf=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(Vf||{}),Bh={error:"Error",warning:"Warning",info:"Information"},jf=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(jf||{}),Df=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(Df||{}),Rf=(e=>(e.BuildingBlocks="BuildingBlocks",e))(Rf||{}),wf={};Zp(wf,{AvatarShape:r(()=>eu,"AvatarShape"),ButtonType:r(()=>$f,"ButtonType"),CardSettingsType:r(()=>kf,"CardSettingsType"),CardTemplateType:r(()=>Mf,"CardTemplateType"),ChartCardType:r(()=>_f,"ChartCardType"),ChartType:r(()=>Zf,"ChartType"),ContainerLayoutType:r(()=>ou,"ContainerLayoutType"),CreateMode:r(()=>iu,"CreateMode"),DefaultContentView:r(()=>zf,"DefaultContentView"),DefaultFilterMode:r(()=>Yf,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>nu,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>Wh,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>Qh,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>Jh,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>Kh,"FE_TEMPLATE_V2_OBJECT_PAGE"),HAlign:r(()=>Wf,"HAlign"),LinkListFlavorType:r(()=>Hf,"LinkListFlavorType"),ListFlavorType:r(()=>Uf,"ListFlavorType"),ListTypeType:r(()=>Bf,"ListTypeType"),PopinLayout:r(()=>Xf,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>qh,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>Xh,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>Zh,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>Yh,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>zh,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>tu,"SectionPosition"),SortOrderType:r(()=>Gf,"SortOrderType"),Strategy:r(()=>qf,"Strategy"),TableColumnExtensionTypeV2:r(()=>Qf,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>Jf,"TableTypeV2"),cardTemplateSettingsMap:r(()=>Hh,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>Gh,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>Kf,"customColumnViewTypes")});var $f=(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))($f||{}),_f=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(_f||{}),Mf=(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))(Mf||{}),Gh={"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"},Hh={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},kf=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(kf||{}),Uf=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(Uf||{}),Bf=(e=>(e.extended="extended",e.condensed="condensed",e))(Bf||{}),Gf=(e=>(e.ascending="ascending",e.descending="descending",e))(Gf||{}),Hf=(e=>(e.standard="standard",e.carousel="carousel",e))(Hf||{}),Wf=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(Wf||{}),Kf=(e=>(e.XML="XML",e))(Kf||{}),Jf=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(Jf||{}),Qf=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(Qf||{}),Xf=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Xf||{}),qf=(e=>(e.extension="extension",e))(qf||{}),zf=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(zf||{}),Yf=(e=>(e.visual="visual",e.compact="compact",e))(Yf||{}),Zf=(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))(Zf||{}),eu=(e=>(e.Circle="Circle",e.Square="Square",e))(eu||{}),tu=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(tu||{}),nu=(e=>(e.XML="XML",e))(nu||{}),iu=(e=>(e.inline="inline",e))(iu||{}),Wh="sap.suite.ui.generic.template",Kh="sap.suite.ui.generic.template.ObjectPage",Jh="sap.suite.ui.generic.template.ListReport",Qh="sap.suite.ui.generic.template.AnalyticalListPage",Xh="sap.ui.viewExtensions",qh="sap.ui.controllerExtensions",zh="sap.suite.ui.generic.template.ObjectPage.view.Details",Yh="sap.suite.ui.generic.template.ListReport.view.ListReport",Zh="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",ou=(e=>(e.fixed="fixed",e.resizable="resizable",e))(ou||{})});var fu=Ie(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.Features=Rt.TemplateType=Rt.PropertyMessageType=Rt.logSeverityLabel=Rt.LogSeverity=void 0;var su;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(su||(Rt.LogSeverity=su={}));Rt.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var cu;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(cu||(Rt.PropertyMessageType=cu={}));var lu;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(lu||(Rt.TemplateType=lu={}));var pu;(function(e){e.BuildingBlocks="BuildingBlocks"})(pu||(Rt.Features=pu={}))});var wu=Ie((bA,Ru)=>{var ks=Object.defineProperty,eb=Object.getOwnPropertyDescriptor,tb=Object.getOwnPropertyNames,nb=Object.prototype.hasOwnProperty,ib=r((e,t)=>{for(var n in t)ks(e,n,{get:t[n],enumerable:!0})},"R"),ob=r((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of tb(t))!nb.call(e,o)&&o!==n&&ks(e,o,{get:r(()=>t[o],"get"),enumerable:!(i=eb(t,o))||i.enumerable});return e},"h"),rb=r(e=>ob(ks({},"__esModule",{value:!0}),e),"N"),uu={};ib(uu,{AvatarShape:r(()=>Nu,"AvatarShape"),ButtonType:r(()=>du,"ButtonType"),CardSettingsType:r(()=>yu,"CardSettingsType"),CardTemplateType:r(()=>mu,"CardTemplateType"),ChartCardType:r(()=>gu,"ChartCardType"),ChartType:r(()=>Fu,"ChartType"),ContainerLayoutType:r(()=>Du,"ContainerLayoutType"),CreateMode:r(()=>ju,"CreateMode"),DefaultContentView:r(()=>Iu,"DefaultContentView"),DefaultFilterMode:r(()=>Ou,"DefaultFilterMode"),ExtensionFragmentTypes:r(()=>Vu,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:r(()=>cb,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:r(()=>fb,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:r(()=>pb,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:r(()=>lb,"FE_TEMPLATE_V2_OBJECT_PAGE"),HAlign:r(()=>Su,"HAlign"),LinkListFlavorType:r(()=>vu,"LinkListFlavorType"),ListFlavorType:r(()=>hu,"ListFlavorType"),ListTypeType:r(()=>bu,"ListTypeType"),PopinLayout:r(()=>Au,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:r(()=>db,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:r(()=>ub,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:r(()=>yb,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:r(()=>mb,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:r(()=>gb,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:r(()=>Lu,"SectionPosition"),SortOrderType:r(()=>Tu,"SortOrderType"),Strategy:r(()=>Eu,"Strategy"),TableColumnExtensionTypeV2:r(()=>Pu,"TableColumnExtensionTypeV2"),TableTypeV2:r(()=>Cu,"TableTypeV2"),cardTemplateSettingsMap:r(()=>sb,"cardTemplateSettingsMap"),cardTemplateTypeMap:r(()=>ab,"cardTemplateTypeMap"),customColumnViewTypes:r(()=>xu,"customColumnViewTypes")});Ru.exports=rb(uu);var du=(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))(du||{}),gu=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(gu||{}),mu=(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))(mu||{}),ab={"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"},sb={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},yu=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(yu||{}),hu=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(hu||{}),bu=(e=>(e.extended="extended",e.condensed="condensed",e))(bu||{}),Tu=(e=>(e.ascending="ascending",e.descending="descending",e))(Tu||{}),vu=(e=>(e.standard="standard",e.carousel="carousel",e))(vu||{}),Su=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(Su||{}),xu=(e=>(e.XML="XML",e))(xu||{}),Cu=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(Cu||{}),Pu=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(Pu||{}),Au=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(Au||{}),Eu=(e=>(e.extension="extension",e))(Eu||{}),Iu=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Iu||{}),Ou=(e=>(e.visual="visual",e.compact="compact",e))(Ou||{}),Fu=(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))(Fu||{}),Nu=(e=>(e.Circle="Circle",e.Square="Square",e))(Nu||{}),Lu=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(Lu||{}),Vu=(e=>(e.XML="XML",e))(Vu||{}),ju=(e=>(e.inline="inline",e))(ju||{}),cb="sap.suite.ui.generic.template",lb="sap.suite.ui.generic.template.ObjectPage",pb="sap.suite.ui.generic.template.ListReport",fb="sap.suite.ui.generic.template.AnalyticalListPage",ub="sap.ui.viewExtensions",db="sap.ui.controllerExtensions",gb="sap.suite.ui.generic.template.ObjectPage.view.Details",mb="sap.suite.ui.generic.template.ListReport.view.ListReport",yb="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",Du=(e=>(e.fixed="fixed",e.resizable="resizable",e))(Du||{})});var G=Ie(Tt=>{"use strict";var $u=Tt&&Tt.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:r(function(){return t[n]},"get")}),Object.defineProperty(e,i,o)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),hb=Tt&&Tt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),_u=Tt&&Tt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&$u(t,e,n)},bb=Tt&&Tt.__importStar||function(){var e=r(function(t){return e=Object.getOwnPropertyNames||function(n){var i=[];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[i.length]=o);return i},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var i=e(t),o=0;o<i.length;o++)i[o]!=="default"&&$u(n,t,i[o]);return hb(n,t),n}}();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.v2=void 0;_u(au(),Tt);_u(fu(),Tt);Tt.v2=bb(wu())});var oc=Ie((_A,Yu)=>{"use strict";var $b=r(function(t){return _b(t)&&!Mb(t)},"isMergeableObject");function _b(e){return!!e&&typeof e=="object"}r(_b,"isNonNullObject");function Mb(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Bb(e)}r(Mb,"isSpecial");var kb=typeof Symbol=="function"&&Symbol.for,Ub=kb?Symbol.for("react.element"):60103;function Bb(e){return e.$$typeof===Ub}r(Bb,"isReactElement");function Gb(e){return Array.isArray(e)?[]:{}}r(Gb,"emptyTarget");function Po(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ui(Gb(e),e,t):e}r(Po,"cloneUnlessOtherwiseSpecified");function Hb(e,t,n){return e.concat(t).map(function(i){return Po(i,n)})}r(Hb,"defaultArrayMerge");function Wb(e,t){if(!t.customMerge)return Ui;var n=t.customMerge(e);return typeof n=="function"?n:Ui}r(Wb,"getMergeFunction");function Kb(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}r(Kb,"getEnumerableOwnPropertySymbols");function qu(e){return Object.keys(e).concat(Kb(e))}r(qu,"getKeys");function zu(e,t){try{return t in e}catch{return!1}}r(zu,"propertyIsOnObject");function Jb(e,t){return zu(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}r(Jb,"propertyIsUnsafe");function Qb(e,t,n){var i={};return n.isMergeableObject(e)&&qu(e).forEach(function(o){i[o]=Po(e[o],n)}),qu(t).forEach(function(o){Jb(e,o)||(zu(e,o)&&n.isMergeableObject(t[o])?i[o]=Wb(o,n)(e[o],t[o],n):i[o]=Po(t[o],n))}),i}r(Qb,"mergeObject");function Ui(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Hb,n.isMergeableObject=n.isMergeableObject||$b,n.cloneUnlessOtherwiseSpecified=Po;var i=Array.isArray(t),o=Array.isArray(e),a=i===o;return a?i?n.arrayMerge(e,t,n):Qb(e,t,n):Po(t,n)}r(Ui,"deepmerge");Ui.all=r(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,o){return Ui(i,o,n)},{})},"deepmergeAll");var Xb=Ui;Yu.exports=Xb});var Qr=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 qb=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(be,"EnumIsFlag",{enumerable:!0,get:r(function(){return qb.EnumIsFlag},"get")});var zb=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(be,"TermToTypes",{enumerable:!0,get:r(function(){return zb.TermToTypes},"get")});var Yb=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(be,"defaultReferences",{enumerable:!0,get:r(function(){return Yb.VocabularyReferences},"get")});function Zu(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}r(Zu,"splitAt");function ed(e,t){return t<0?e:e.substring(0,t)}r(ed,"substringAt");function Jr(e,t){return Zu(e,e.indexOf(t))}r(Jr,"splitAtFirst");be.splitAtFirst=Jr;function td(e,t){return Zu(e,e.lastIndexOf(t))}r(td,"splitAtLast");be.splitAtLast=td;function Zb(e,t){return ed(e,e.indexOf(t))}r(Zb,"substringBeforeFirst");be.substringBeforeFirst=Zb;function eT(e,t){return ed(e,e.lastIndexOf(t))}r(eT,"substringBeforeLast");be.substringBeforeLast=eT;function nd(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=td(t,"."),o=e.reverseReferenceMap[n];if(o)return`${o.alias}.${i}`;if(t.includes("@")){let[a,s]=Jr(t,"@");return`${a}@${nd(e,s)}`}else return t}r(nd,"alias");be.alias=nd;function rc(e,t,n){var i;let o=r(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(f=>[f.alias,f])));let[s,c]=Jr(a,".");if(!c||c.includes("."))return a;let l=s.startsWith("@"),p=l?s.substring(1):s,u=e.referenceMap[p];return u?l?`@${u.namespace}.${c}`:`${u.namespace}.${c}`:n&&!l?`${n}.${c}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[c,l]=Jr(s,"("),p=[o(c)];if(l){let u=l.slice(0,-1);p.push(`(${o(u)})`)}return a.push(p.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}r(rc,"unalias");be.unalias=rc;function tT(e){return!!e&&e._type==="ComplexType"&&!!e.properties}r(tT,"isComplexTypeDefinition");be.isComplexTypeDefinition=tT;function nT(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(nT,"Double");be.Double=nT;function iT(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}r(iT,"Decimal");be.Decimal=iT;function oT(e,t,n){let i=Symbol("initial"),o=i;Object.defineProperty(e,t,{enumerable:!0,get(){return o===i&&(o=n()),o},set(a){o=a}})}r(oT,"lazy");be.lazy=oT;function id(e,t){let n=new Map;return r(function(o){let a=n.get(o);return(a==null?void 0:a[t])===o?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let c=s[t];return n.set(c,s),c===o})},"find")}r(id,"createIndexedFind");be.createIndexedFind=id;function rT(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:id(e,t)});else throw new Error(`Property '${n}' already exists`);return e}r(rT,"addGetByValue");be.addGetByValue=rT;function aT(e,...t){return t.reduceRight((n,{name:i,annotationList:o})=>{var a;for(let{target:s,annotations:c}of o){let l=(a=rc(e,s))!==null&&a!==void 0?a:s;n[l]||(n[l]=[]);let p=c.map(u=>{var f;return u.term=(f=rc(e,u.term))!==null&&f!==void 0?f:u.term,u.fullyQualifiedName=u.qualifier?`${l}@${u.term}#${u.qualifier}`:`${l}@${u.term}`,u.__source=i,u}).filter(u=>!n[l].some(f=>f.term===u.term&&f.qualifier===u.qualifier));n[l].push(...p)}return n},{})}r(aT,"mergeAnnotations");be.mergeAnnotations=aT});var hd=Ie(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.convert=void 0;var Xr=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),U=Qr(),Bt=Symbol("Annotation Target");function gn(e,t){return e[e.length-1]!==t&&e.push(t),e}r(gn,"appendObjectPath");function It(e,t,n,i){var o,a,s,c,l;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let p=n.split("/").reduce((f,d)=>{if(d.includes("@")){let[b,x]=(0,U.splitAtFirst)(d,"@");f.push(b),f.push(`@${x}`)}else f.push(d);return f},[]);if(t===void 0)p[0].startsWith(`${e.rawSchema.namespace}.`)&&p[0]!==((o=e.getConvertedEntityContainer())===null||o===void 0?void 0:o.fullyQualifiedName)?(t=(c=(s=(a=e.getConvertedEntityType(p[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(p[0]))!==null&&s!==void 0?s:e.getConvertedAction(p[0]))!==null&&c!==void 0?c:e.getConvertedAction(`${p[0]}()`),p.shift()):t=e.getConvertedEntityContainer();else if(t[Bt]!==void 0)t=t[Bt];else if(t._type==="Property"){let f=(0,U.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(l=e.getConvertedEntityType(f))!==null&&l!==void 0?l:e.getConvertedComplexType(f)}let u=p.reduce((f,d)=>{var b,x,I,O,_;let ie=r(q=>(f.messages.push({message:q}),f.target=void 0,f),"error");if(f.target===void 0)return f;if(f.objectPath=gn(f.objectPath,f.target),d.startsWith("@")&&d!=="@$ui5.overload"){let[q,Z]=e.splitTerm(d),Q=(b=f.target.annotations[q.substring(1)])===null||b===void 0?void 0:b[Z];return Q!==void 0?(f.target=Q,f):ie(`Annotation '${d.substring(1)}' not found on ${f.target._type} '${f.target.fullyQualifiedName}'`)}if(f.target.$target){let q;if(d==="$AnnotationPath"?q=f.target.value:d==="$Path"&&(q=f.target.path),q!==void 0){let Z=It(e,f.target[Bt],q);return Z.objectPath.forEach(Q=>{f.objectPath.includes(Q)||(f.objectPath=gn(f.objectPath,Q))}),f.target=Z.target,f.objectPath=gn(f.objectPath,f.target),f}}switch((x=f.target)===null||x===void 0?void 0:x._type){case"Schema":break;case"EntityContainer":{let Q=f.target;if(d===""||e.unalias(d)===Q.fullyQualifiedName)return f;let ce=(O=(I=Q.entitySets.by_name(d))!==null&&I!==void 0?I:Q.singletons.by_name(d))!==null&&O!==void 0?O:Q.actionImports.by_name(d);if(ce)return f.target=ce,f}break;case"EntitySet":case"Singleton":{let Q=f.target;if(d===""||d==="$Type")return f.target=Q.entityType,f;if(d==="$")return f;if(d==="$NavigationPropertyBinding"){let Pe=Q.navigationPropertyBinding;return f.target=Pe,f}let ce=It(e,Q.entityType,d);return f.target=ce.target,f.objectPath=ce.objectPath.reduce(gn,f.objectPath),f}case"EntityType":{let Q=f.target;if(d===""||d==="$Type")return f;let ce=Q.entityProperties.by_name(d);if(ce)return f.target=ce,f;let Pe=Q.navigationProperties.by_name(d);if(Pe)return f.target=Pe,f;let S=(0,U.substringBeforeFirst)(e.unalias(d),"("),fn=Q.actions[S];if(fn)return f.target=fn,f}break;case"ActionImport":{let Q=It(e,f.target.action,d);return f.target=Q.target,f.objectPath=Q.objectPath.reduce(gn,f.objectPath),f}case"Action":{let Q=f.target;if(d===""||d==="@$ui5.overload"||d==="0")return f;if(d==="$Parameter"&&Q.isBound)return f.target=Q.parameters,f;let ce=(_=Q.parameters[d])!==null&&_!==void 0?_:Q.parameters.find(Pe=>Pe.name===d);if(ce)return f.target=ce,f;break}case"Property":{let ce=f.target.targetType;if(ce!==void 0){let Pe=ce.properties.by_name(d);if(Pe)return f.target=Pe,f;let S=ce.navigationProperties.by_name(d);if(S)return f.target=S,f}}break;case"ActionParameter":let q=f.target.typeReference;if(q!==void 0){let Q=It(e,q,d);return f.target=Q.target,f.objectPath=Q.objectPath.reduce(gn,f.objectPath),f}break;case"NavigationProperty":let Z=It(e,f.target.targetType,d);return f.target=Z.target,f.objectPath=Z.objectPath.reduce(gn,f.objectPath),f;default:if(d==="")return f;if(f.target[d])return f.target=f.target[d],f.objectPath=gn(f.objectPath,f.target),f}return ie(`Element '${d}' not found at ${f.target._type} '${f.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(u.messages.forEach(f=>e.logError(f.message)),!u.target)if(i){let f=cd(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
2
2
  `+n+`
3
3
 
4
4
  Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
@@ -10,23 +10,23 @@ Hint: Check and correct the path values under the following structure in the met
10
10
  Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
11
11
 
12
12
  <Annotation Term = `+p[0]+`>
13
- <PropertyValue Path= `+p[1]+">");return u}r(It,"resolveTarget");function tT(e){return e.includes("@")}r(tT,"isAnnotationPath");function ed(e,t,n,i,o){let a={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[Bt]:i};return(0,U.lazy)(a,"$target",()=>It(e,i,t.PropertyPath,o).target),a}r(ed,"mapPropertyPath");function td(e,t,n,i,o){let a={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[Bt]:i};return(0,U.lazy)(a,"$target",()=>It(e,i,a.value,o).target),a}r(td,"mapAnnotationPath");function nd(e,t,n,i,o){var a;let s={type:"NavigationPropertyPath",value:(a=t.NavigationPropertyPath)!==null&&a!==void 0?a:"",fullyQualifiedName:n,[Bt]:i};return(0,U.lazy)(s,"$target",()=>It(e,i,t.NavigationPropertyPath,o).target),s}r(nd,"mapNavigationPropertyPath");function nT(e,t,n,i,o){let a={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[Bt]:i};return(0,U.lazy)(a,"$target",()=>It(e,i,t.Path,o).target),a}r(nT,"mapPath");function id(e,t,n,i,o,a,s){if(a!==void 0)switch(a.type){case"String":return a.String;case"Int":return a.Int;case"Bool":return a.Bool;case"Double":return(0,U.Double)(a.Double);case"Decimal":return(0,U.Decimal)(a.Decimal);case"Date":return a.Date;case"EnumMember":let c=a.EnumMember.split(" ").map(l=>{var p;let u=(p=e.unalias(l))!==null&&p!==void 0?p:"";return(0,U.alias)(Qr.VocabularyReferences,u)});return c[0]!==void 0&&U.EnumIsFlag[(0,U.substringBeforeFirst)(c[0],"/")]?c:c[0];case"PropertyPath":return ed(e,a,s,t,n);case"NavigationPropertyPath":return nd(e,a,s,t,n);case"AnnotationPath":return td(e,a,s,t,n);case"Path":return tT(a.Path)?It(e,t,e.unalias(a.Path),n).target:nT(e,a,s,t,n);case"Record":return rc(e,n,t,i,o,a.Record,s);case"Collection":return rd(e,t,n,i,o,a.Collection,s);case"Apply":case"Null":case"Not":case"Eq":case"Ne":case"Gt":case"Ge":case"Lt":case"Le":case"If":case"And":case"Or":default:return a}}r(id,"parseValue");function od(e,t,n,i){let o=U.TermToTypes[t];return i&&(t=`${(0,U.substringBeforeLast)(t,".")}.${i}`,o=U.TermToTypes[t]),e.logError(`The type of the record used within the term ${t} was not defined and was inferred as ${o}.
13
+ <PropertyValue Path= `+p[1]+">");return u}r(It,"resolveTarget");function sT(e){return e.includes("@")}r(sT,"isAnnotationPath");function od(e,t,n,i,o){let a={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[Bt]:i};return(0,U.lazy)(a,"$target",()=>It(e,i,t.PropertyPath,o).target),a}r(od,"mapPropertyPath");function rd(e,t,n,i,o){let a={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[Bt]:i};return(0,U.lazy)(a,"$target",()=>It(e,i,a.value,o).target),a}r(rd,"mapAnnotationPath");function ad(e,t,n,i,o){var a;let s={type:"NavigationPropertyPath",value:(a=t.NavigationPropertyPath)!==null&&a!==void 0?a:"",fullyQualifiedName:n,[Bt]:i};return(0,U.lazy)(s,"$target",()=>It(e,i,t.NavigationPropertyPath,o).target),s}r(ad,"mapNavigationPropertyPath");function cT(e,t,n,i,o){let a={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[Bt]:i};return(0,U.lazy)(a,"$target",()=>It(e,i,t.Path,o).target),a}r(cT,"mapPath");function sd(e,t,n,i,o,a,s){if(a!==void 0)switch(a.type){case"String":return a.String;case"Int":return a.Int;case"Bool":return a.Bool;case"Double":return(0,U.Double)(a.Double);case"Decimal":return(0,U.Decimal)(a.Decimal);case"Date":return a.Date;case"EnumMember":let c=a.EnumMember.split(" ").map(l=>{var p;let u=(p=e.unalias(l))!==null&&p!==void 0?p:"";return(0,U.alias)(Xr.VocabularyReferences,u)});return c[0]!==void 0&&U.EnumIsFlag[(0,U.substringBeforeFirst)(c[0],"/")]?c:c[0];case"PropertyPath":return od(e,a,s,t,n);case"NavigationPropertyPath":return ad(e,a,s,t,n);case"AnnotationPath":return rd(e,a,s,t,n);case"Path":return sT(a.Path)?It(e,t,e.unalias(a.Path),n).target:cT(e,a,s,t,n);case"Record":return cc(e,n,t,i,o,a.Record,s);case"Collection":return ld(e,t,n,i,o,a.Collection,s);case"Apply":case"Null":case"Not":case"Eq":case"Ne":case"Gt":case"Ge":case"Lt":case"Le":case"If":case"And":case"Or":default:return a}}r(sd,"parseValue");function cd(e,t,n,i){let o=U.TermToTypes[t];return i&&(t=`${(0,U.substringBeforeLast)(t,".")}.${i}`,o=U.TermToTypes[t]),e.logError(`The type of the record used within the term ${t} was not defined and was inferred as ${o}.
14
14
  Hint: If possible, try to maintain the Type property for each Record.
15
15
  <Annotations Target="${n}">
16
16
  <Annotation Term="${t}">
17
17
  <Record>...</Record>
18
18
  </Annotation>
19
- </Annotations>`),o}r(od,"inferTypeFromTerm");function iT(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}r(iT,"isDataFieldWithForAction");function oT(e,t,n,i,o){let a;return!o.type&&t?a=od(e,t,n.fullyQualifiedName,i):a=e.unalias(o.type),a}r(oT,"parseRecordType");function rc(e,t,n,i,o,a,s){let c={$Type:oT(e,t,n,i,a),fullyQualifiedName:s,[Bt]:n,__source:o};for(let l of a.propertyValues)(0,U.lazy)(c,l.name,()=>id(e,n,t,l.name,o,l.value,`${s}/${l.name}`));return(0,U.lazy)(c,"annotations",sd(e,a,c)),iT(c)&&(0,U.lazy)(c,"ActionTarget",()=>{var l,p;let u=e.unalias((l=c.Action)===null||l===void 0?void 0:l.toString()),f=n.actions[u];return f||(f=(p=e.getConvertedActionImport(u))===null||p===void 0?void 0:p.action),f||(f=e.getConvertedAction(u),f!=null&&f.isBound||(f=void 0)),f||e.logError(`${c.fullyQualifiedName}: Unable to resolve '${c.Action}' ('${u}')`),f}),c}r(rc,"parseRecord");function rT(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}r(rT,"getOrInferCollectionType");function rd(e,t,n,i,o,a,s){switch(rT(a)){case"PropertyPath":return a.map((l,p)=>ed(e,l,`${s}/${p}`,t,n));case"Path":return a.map(l=>It(e,t,l.Path,n).target);case"AnnotationPath":return a.map((l,p)=>td(e,l,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((l,p)=>nd(e,l,`${s}/${p}`,t,n));case"Record":return a.map((l,p)=>rc(e,n,t,i,o,l,`${s}/${p}`));case"Apply":case"Null":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return a.map(l=>l);case"String":return a.map(l=>typeof l=="string"||l===void 0?l:l.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}r(rd,"parseCollection");function aT(e){return!!e.targetTypeName}r(aT,"isV4NavigationProperty");function sT(e,t,n){var i;let o;if(n.record)o=rc(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)o=id(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)o=rd(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof o){case"string":o=new String(o);break;case"boolean":o=new Boolean(o);break;case"number":o=new Number(o);break;default:break}o.fullyQualifiedName=n.fullyQualifiedName,o[Bt]=t;let[a,s]=e.splitTerm(n.term);o.term=e.unalias(`${a}.${s}`,Qr.VocabularyReferences),o.qualifier=n.qualifier,o.__source=n.__source;try{(0,U.lazy)(o,"annotations",sd(e,n,o))}catch{}return o}r(sT,"convertAnnotation");var ac=class ac{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(o=>({name:o,annotationList:this.rawSchema.annotations[o]}));this.annotationsByTarget=(0,U.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,cd)}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((o,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&o.push(s),o},[]);return(0,U.addGetByValue)(i,"name"),(0,U.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 o=this.convertedElements.get(t);if(o===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(o=i.apply(void 0,[this,a]),this.convertedElements.set(t,o))}return o}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,U.alias)(Qr.VocabularyReferences,t);return(0,U.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,U.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};r(ac,"Converter");var ic=ac;function Po(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}r(Po,"resolveEntityType");function ad(e,t){return()=>Object.keys(t).reduce((n,i)=>{let o=t[i];return(0,U.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(o))!==null&&a!==void 0?a:e.getConvertedSingleton(o)}),n},{})}r(ad,"resolveNavigationPropertyBindings");function gn(e,t){let n=t.annotations;return()=>Xr(e,t,n??e.getAnnotations(t.fullyQualifiedName))}r(gn,"resolveAnnotations");function sd(e,t,n){return()=>{let i=n.fullyQualifiedName,o;return t.annotations&&t.annotations.length>0?o=t.annotations:o=e.getAnnotations(i),o==null||o.forEach(a=>{a.target=i,a.__source=n.__source,a[Bt]=n[Bt],a.fullyQualifiedName=`${i}@${a.term}`}),Xr(e,n,o??[])}}r(sd,"resolveAnnotationsOnAnnotation");function Xr(e,t,n){return n.reduce((i,o)=>{let[a,s]=e.splitTerm(o.term),c=`${s}${o.qualifier?"#"+o.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(c)||(0,U.lazy)(i[a],c,()=>e.getConvertedElement(o.fullyQualifiedName,o,(l,p)=>sT(l,t,p))),i},{})}r(Xr,"createAnnotationsObject");function cd(e,t){let n=t;return(0,U.lazy)(n,"annotations",gn(e,t)),(0,U.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,pd)),(0,U.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,ld)),(0,U.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,ud)),n}r(cd,"convertEntityContainer");function ld(e,t){let n=t;(0,U.lazy)(n,"entityType",Po(e,t.entityTypeName)),(0,U.lazy)(n,"annotations",gn(e,n));let i=t.navigationPropertyBinding;return(0,U.lazy)(n,"navigationPropertyBinding",ad(e,i)),n}r(ld,"convertSingleton");function pd(e,t){let n=t;(0,U.lazy)(n,"entityType",Po(e,t.entityTypeName)),(0,U.lazy)(n,"annotations",gn(e,n));let i=t.navigationPropertyBinding;return(0,U.lazy)(n,"navigationPropertyBinding",ad(e,i)),n}r(pd,"convertEntitySet");function cT(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,U.lazy)(n,"annotations",gn(e,t)),(0,U.lazy)(n,"keys",e.convert(t.keys,oc)),(0,U.lazy)(n,"entityProperties",e.convert(t.entityProperties,oc)),(0,U.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,fd)),(0,U.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,o)=>{let a=`${e.rawSchema.namespace}.${o.name}`;return i[a]=e.getConvertedAction(o.fullyQualifiedName),i},{})),n.resolvePath=(i,o)=>{let a=It(e,t,i);return o?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}r(cT,"convertEntityType");function oc(e,t){let n=t;return(0,U.lazy)(n,"annotations",gn(e,t)),(0,U.lazy)(n,"targetType",()=>{var i;let o=t.type,a=o.startsWith("Collection")?o.substring(11,o.length-1):o;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}r(oc,"convertProperty");function fd(e,t){var n,i,o;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!aT(t)){let s=(i=e.rawSchema.associations.find(c=>c.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(c=>c.role===t.toRole);a.isCollection=(s==null?void 0:s.multiplicity)==="*",a.targetTypeName=(o=s==null?void 0:s.type)!==null&&o!==void 0?o:""}return(0,U.lazy)(a,"targetType",Po(e,t.targetTypeName)),(0,U.lazy)(a,"annotations",gn(e,t)),a}r(fd,"convertNavigationProperty");function ud(e,t){let n=t;return(0,U.lazy)(n,"annotations",gn(e,t)),(0,U.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(o=>!o.isBound&&o.fullyQualifiedName.startsWith(t.actionName));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}r(ud,"convertActionImport");function lT(e,t){let n=t;return n.sourceType&&(0,U.lazy)(n,"sourceEntityType",Po(e,t.sourceType)),n.returnType&&(0,U.lazy)(n,"returnEntityType",Po(e,t.returnType)),(0,U.lazy)(n,"parameters",e.convert(t.parameters,pT)),(0,U.lazy)(n,"annotations",()=>{let i=(0,U.substringBeforeFirst)(t.fullyQualifiedName,"("),o=t.fullyQualifiedName,a=e.getAnnotations(o),s=e.getAnnotations(i);for(let c of s)a.some(l=>l.term===c.term&&l.qualifier===c.qualifier)||a.push(c);return Xr(e,t,a)}),n}r(lT,"convertAction");function pT(e,t){let n=t;return(0,U.lazy)(n,"typeReference",()=>{var i,o;return(o=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&o!==void 0?o:e.getConvertedTypeDefinition(t.type)}),(0,U.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),o=t.fullyQualifiedName,a=e.getAnnotations(o),s=e.getAnnotations(i);for(let c of s)a.some(l=>l.term===c.term&&l.qualifier===c.qualifier)||a.push(c);return Xr(e,t,a)}),n}r(pT,"convertActionParameter");function fT(e,t){let n=t;return(0,U.lazy)(n,"properties",e.convert(t.properties,oc)),(0,U.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,fd)),(0,U.lazy)(n,"annotations",gn(e,t)),n}r(fT,"convertComplexType");function uT(e,t){let n=t;return(0,U.lazy)(n,"annotations",gn(e,t)),n}r(uT,"convertTypeDefinition");function dT(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:Qr.VocabularyReferences,diagnostics:[]},n=new ic(e,t);return(0,U.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,cd)),(0,U.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,pd)),(0,U.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,ld)),(0,U.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,cT)),(0,U.lazy)(t,"actions",n.convert(n.rawSchema.actions,lT)),(0,U.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,fT)),(0,U.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,ud)),(0,U.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,uT)),t.resolvePath=r(function(o){let a=It(n,void 0,o);return a.target&&dn(a.objectPath,a.target),a},"resolvePath"),t}r(dT,"convert");qr.convert=dT});var hd=Ie(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.revertTermToGenericType=void 0;var sc=Jr();function gT(e,t){var n,i,o,a,s,c,l;let p;if(Array.isArray(t)){let u=t[0],f=!1;if(u&&typeof u=="string"){let d=u.valueOf().split(".");d.length>1&&e.find(b=>b.alias===d[0])&&(f=sc.EnumIsFlag[(0,sc.substringBeforeFirst)(u,"/")])}f?p={type:"EnumMember",EnumMember:t.map(d=>d.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(d=>zr(e,d))}}else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))p={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))p={type:"Double",Double:t.valueOf()};else if(!((o=t.isString)===null||o===void 0)&&o.call(t)){let u=t.valueOf().split(".");u.length>1&&e.find(f=>f.alias===u[0])?p={type:"EnumMember",EnumMember:t.valueOf()}:p={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?p={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?p={type:"Float",Float:t.valueOf()}:!((c=t.isDate)===null||c===void 0)&&c.call(t)?p={type:"Date",Date:t.valueOf()}:!((l=t.isBoolean)===null||l===void 0)&&l.call(t)?p={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?p={type:"Path",Path:t.path}:t.type==="AnnotationPath"?p={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?p={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?p={type:"Null"}:t.type==="PropertyPath"?p={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?p={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(p={type:"Record",Record:zr(e,t)});return p}r(gT,"revertObjectToRawType");function gd(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let o=t.toString().split(".");o.length>1&&e.find(a=>a.alias===o[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=gT(e,t);break}return n}r(gd,"revertValueToRawType");var mT=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function md(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(o=>{let a=yd(e,t[i][o]);if(!a.term){let s=(0,sc.unalias)(e,`${i}.${o}`);if(s){let c=s.split("#");a.term=c[0],c.length>1&&(a.qualifier=c[1])}}n.push(a)})})}r(md,"revertAnnotationsToRawType");function zr(e,t){if(typeof t=="string")return{type:"String",String:t};if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(mT.indexOf(i)===-1){let o=t[i];n.propertyValues.push({name:i,value:gd(e,o)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],md(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}}r(zr,"revertCollectionItemToRawType");function yd(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=[],md(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>zr(e,i))}):t.hasOwnProperty("$Type")?{...n,record:zr(e,t)}:{...n,value:gd(e,t)}}r(yd,"revertTermToGenericType");Yr.revertTermToGenericType=yd});var bd=Ie(mn=>{"use strict";var yT=mn&&mn.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:r(function(){return t[n]},"get")}),Object.defineProperty(e,i,o)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),cc=mn&&mn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&yT(t,e,n)};Object.defineProperty(mn,"__esModule",{value:!0});cc(dd(),mn);cc(Jr(),mn);cc(hd(),mn)});var dc=Ie(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.MergedRawMetadata=jn.RawMetadataInstance=jn.ensureArray=void 0;function hT(e){return e==null?[]:Array.isArray(e)?e:[e]}r(hT,"ensureArray");jn.ensureArray=hT;var fc=class fc{constructor(t,n,i,o){this.identification=t,this.references=o,this.version=n,this.schema=i}};r(fc,"RawMetadataInstance");var lc=fc;jn.RawMetadataInstance=lc;var uc=class uc{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))}};r(uc,"MergedRawMetadata");var pc=uc;jn.MergedRawMetadata=pc});var Td=Ie(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.merge=void 0;var bT=dc();function TT(...e){let t=new bT.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}r(TT,"merge");Zr.merge=TT});var vd=Ie(ea=>{(function(e){e.parser=function(h,g){return new n(h,g)},e.SAXParser=n,e.SAXStream=p,e.createStream=l,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,g){if(!(this instanceof n))return new n(h,g);var E=this;o(E),E.q=E.c="",E.bufferCheckPosition=e.MAX_BUFFER_LENGTH,E.opt=g||{},E.opt.lowercase=E.opt.lowercase||E.opt.lowercasetags,E.looseCase=E.opt.lowercase?"toLowerCase":"toUpperCase",E.tags=[],E.closed=E.closedRoot=E.sawRoot=!1,E.tag=E.error=null,E.strict=!!h,E.noscript=!!(h||E.opt.noscript),E.state=S.BEGIN,E.strictEntities=E.opt.strictEntities,E.ENTITIES=E.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),E.attribList=[],E.opt.xmlns&&(E.ns=Object.create(x)),E.opt.unquotedAttributeValues===void 0&&(E.opt.unquotedAttributeValues=!h),E.trackPosition=E.opt.position!==!1,E.trackPosition&&(E.position=E.line=E.column=0),Qt(E,"onready")}r(n,"SAXParser"),Object.create||(Object.create=function(h){function g(){}r(g,"F"),g.prototype=h;var E=new g;return E}),Object.keys||(Object.keys=function(h){var g=[];for(var E in h)h.hasOwnProperty(E)&&g.push(E);return g});function i(h){for(var g=Math.max(e.MAX_BUFFER_LENGTH,10),E=0,T=0,se=t.length;T<se;T++){var ke=h[t[T]].length;if(ke>g)switch(t[T]){case"textNode":Vn(h);break;case"cdata":Ee(h,"oncdata",h.cdata),h.cdata="";break;case"script":Ee(h,"onscript",h.script),h.script="";break;default:ht(h,"Max buffer length exceeded: "+t[T])}E=Math.max(E,ke)}var Le=e.MAX_BUFFER_LENGTH-E;h.bufferCheckPosition=Le+h.position}r(i,"checkBufferLength");function o(h){for(var g=0,E=t.length;g<E;g++)h[t[g]]=""}r(o,"clearBuffers");function a(h){Vn(h),h.cdata!==""&&(Ee(h,"oncdata",h.cdata),h.cdata=""),h.script!==""&&(Ee(h,"onscript",h.script),h.script="")}r(a,"flushBuffers"),n.prototype={end:r(function(){jt(this)},"end"),write:$e,resume:r(function(){return this.error=null,this},"resume"),close:r(function(){return this.write(null)},"close"),flush:r(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=r(function(){},"Stream")}s||(s=r(function(){},"Stream"));var c=e.EVENTS.filter(function(h){return h!=="error"&&h!=="end"});function l(h,g){return new p(h,g)}r(l,"createStream");function p(h,g){if(!(this instanceof p))return new p(h,g);s.apply(this),this._parser=new n(h,g),this.writable=!0,this.readable=!0;var E=this;this._parser.onend=function(){E.emit("end")},this._parser.onerror=function(T){E.emit("error",T),E._parser.error=null},this._decoder=null,c.forEach(function(T){Object.defineProperty(E,"on"+T,{get:r(function(){return E._parser["on"+T]},"get"),set:r(function(se){if(!se)return E.removeAllListeners(T),E._parser["on"+T]=se,se;E.on(T,se)},"set"),enumerable:!0,configurable:!1})})}r(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(h){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(h)){if(!this._decoder){var g=require("string_decoder").StringDecoder;this._decoder=new g("utf8")}h=this._decoder.write(h)}return this._parser.write(h.toString()),this.emit("data",h),!0},p.prototype.end=function(h){return h&&h.length&&this.write(h),this._parser.end(),!0},p.prototype.on=function(h,g){var E=this;return!E._parser["on"+h]&&c.indexOf(h)!==-1&&(E._parser["on"+h]=function(){var T=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);T.splice(0,0,h),E.emit.apply(E,T)}),s.prototype.on.call(E,h,g)};var u="[CDATA[",f="DOCTYPE",d="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",x={xml:d,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]/,O=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,$=/[#:_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]/,re=/[#:_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 q(h){return h===" "||h===`
20
- `||h==="\r"||h===" "}r(q,"isWhitespace");function te(h){return h==='"'||h==="'"}r(te,"isQuote");function J(h){return h===">"||q(h)}r(J,"isAttribEnd");function ce(h,g){return h.test(g)}r(ce,"isMatch");function Pe(h,g){return!ce(h,g)}r(Pe,"notMatch");var S=0;e.STATE={BEGIN:S++,BEGIN_WHITESPACE:S++,TEXT:S++,TEXT_ENTITY:S++,OPEN_WAKA:S++,SGML_DECL:S++,SGML_DECL_QUOTED:S++,DOCTYPE:S++,DOCTYPE_QUOTED:S++,DOCTYPE_DTD:S++,DOCTYPE_DTD_QUOTED:S++,COMMENT_STARTING:S++,COMMENT:S++,COMMENT_ENDING:S++,COMMENT_ENDED:S++,CDATA:S++,CDATA_ENDING:S++,CDATA_ENDING_2:S++,PROC_INST:S++,PROC_INST_BODY:S++,PROC_INST_ENDING:S++,OPEN_TAG:S++,OPEN_TAG_SLASH:S++,ATTRIB:S++,ATTRIB_NAME:S++,ATTRIB_NAME_SAW_WHITE:S++,ATTRIB_VALUE:S++,ATTRIB_VALUE_QUOTED:S++,ATTRIB_VALUE_CLOSED:S++,ATTRIB_VALUE_UNQUOTED:S++,ATTRIB_VALUE_ENTITY_Q:S++,ATTRIB_VALUE_ENTITY_U:S++,CLOSE_TAG:S++,CLOSE_TAG_SAW_WHITE:S++,SCRIPT:S++,SCRIPT_ENDING:S++},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 g=e.ENTITIES[h],E=typeof g=="number"?String.fromCharCode(g):g;e.ENTITIES[h]=E});for(var pn in e.STATE)e.STATE[e.STATE[pn]]=pn;S=e.STATE;function Qt(h,g,E){h[g]&&h[g](E)}r(Qt,"emit");function Ee(h,g,E){h.textNode&&Vn(h),Qt(h,g,E)}r(Ee,"emitNode");function Vn(h){h.textNode=Vi(h.opt,h.textNode),h.textNode&&Qt(h,"ontext",h.textNode),h.textNode=""}r(Vn,"closeText");function Vi(h,g){return h.trim&&(g=g.trim()),h.normalize&&(g=g.replace(/\s+/g," ")),g}r(Vi,"textopts");function ht(h,g){return Vn(h),h.trackPosition&&(g+=`
19
+ </Annotations>`),o}r(cd,"inferTypeFromTerm");function lT(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}r(lT,"isDataFieldWithForAction");function pT(e,t,n,i,o){let a;return!o.type&&t?a=cd(e,t,n.fullyQualifiedName,i):a=e.unalias(o.type),a}r(pT,"parseRecordType");function cc(e,t,n,i,o,a,s){let c={$Type:pT(e,t,n,i,a),fullyQualifiedName:s,[Bt]:n,__source:o};for(let l of a.propertyValues)(0,U.lazy)(c,l.name,()=>sd(e,n,t,l.name,o,l.value,`${s}/${l.name}`));return(0,U.lazy)(c,"annotations",fd(e,a,c)),lT(c)&&(0,U.lazy)(c,"ActionTarget",()=>{var l,p;let u=e.unalias((l=c.Action)===null||l===void 0?void 0:l.toString()),f=n.actions[u];return f||(f=(p=e.getConvertedActionImport(u))===null||p===void 0?void 0:p.action),f||(f=e.getConvertedAction(u),f!=null&&f.isBound||(f=void 0)),f||e.logError(`${c.fullyQualifiedName}: Unable to resolve '${c.Action}' ('${u}')`),f}),c}r(cc,"parseRecord");function fT(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}r(fT,"getOrInferCollectionType");function ld(e,t,n,i,o,a,s){switch(fT(a)){case"PropertyPath":return a.map((l,p)=>od(e,l,`${s}/${p}`,t,n));case"Path":return a.map(l=>It(e,t,l.Path,n).target);case"AnnotationPath":return a.map((l,p)=>rd(e,l,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((l,p)=>ad(e,l,`${s}/${p}`,t,n));case"Record":return a.map((l,p)=>cc(e,n,t,i,o,l,`${s}/${p}`));case"Apply":case"Null":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return a.map(l=>l);case"String":return a.map(l=>typeof l=="string"||l===void 0?l:l.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}r(ld,"parseCollection");function uT(e){return!!e.targetTypeName}r(uT,"isV4NavigationProperty");function dT(e,t,n){var i;let o;if(n.record)o=cc(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)o=sd(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)o=ld(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof o){case"string":o=new String(o);break;case"boolean":o=new Boolean(o);break;case"number":o=new Number(o);break;default:break}o.fullyQualifiedName=n.fullyQualifiedName,o[Bt]=t;let[a,s]=e.splitTerm(n.term);o.term=e.unalias(`${a}.${s}`,Xr.VocabularyReferences),o.qualifier=n.qualifier,o.__source=n.__source;try{(0,U.lazy)(o,"annotations",fd(e,n,o))}catch{}return o}r(dT,"convertAnnotation");var lc=class lc{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(o=>({name:o,annotationList:this.rawSchema.annotations[o]}));this.annotationsByTarget=(0,U.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,ud)}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((o,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&o.push(s),o},[]);return(0,U.addGetByValue)(i,"name"),(0,U.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 o=this.convertedElements.get(t);if(o===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(o=i.apply(void 0,[this,a]),this.convertedElements.set(t,o))}return o}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,U.alias)(Xr.VocabularyReferences,t);return(0,U.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,U.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};r(lc,"Converter");var ac=lc;function Ao(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}r(Ao,"resolveEntityType");function pd(e,t){return()=>Object.keys(t).reduce((n,i)=>{let o=t[i];return(0,U.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(o))!==null&&a!==void 0?a:e.getConvertedSingleton(o)}),n},{})}r(pd,"resolveNavigationPropertyBindings");function mn(e,t){let n=t.annotations;return()=>qr(e,t,n??e.getAnnotations(t.fullyQualifiedName))}r(mn,"resolveAnnotations");function fd(e,t,n){return()=>{let i=n.fullyQualifiedName,o;return t.annotations&&t.annotations.length>0?o=t.annotations:o=e.getAnnotations(i),o==null||o.forEach(a=>{a.target=i,a.__source=n.__source,a[Bt]=n[Bt],a.fullyQualifiedName=`${i}@${a.term}`}),qr(e,n,o??[])}}r(fd,"resolveAnnotationsOnAnnotation");function qr(e,t,n){return n.reduce((i,o)=>{let[a,s]=e.splitTerm(o.term),c=`${s}${o.qualifier?"#"+o.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(c)||(0,U.lazy)(i[a],c,()=>e.getConvertedElement(o.fullyQualifiedName,o,(l,p)=>dT(l,t,p))),i},{})}r(qr,"createAnnotationsObject");function ud(e,t){let n=t;return(0,U.lazy)(n,"annotations",mn(e,t)),(0,U.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,gd)),(0,U.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,dd)),(0,U.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,yd)),n}r(ud,"convertEntityContainer");function dd(e,t){let n=t;(0,U.lazy)(n,"entityType",Ao(e,t.entityTypeName)),(0,U.lazy)(n,"annotations",mn(e,n));let i=t.navigationPropertyBinding;return(0,U.lazy)(n,"navigationPropertyBinding",pd(e,i)),n}r(dd,"convertSingleton");function gd(e,t){let n=t;(0,U.lazy)(n,"entityType",Ao(e,t.entityTypeName)),(0,U.lazy)(n,"annotations",mn(e,n));let i=t.navigationPropertyBinding;return(0,U.lazy)(n,"navigationPropertyBinding",pd(e,i)),n}r(gd,"convertEntitySet");function gT(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,U.lazy)(n,"annotations",mn(e,t)),(0,U.lazy)(n,"keys",e.convert(t.keys,sc)),(0,U.lazy)(n,"entityProperties",e.convert(t.entityProperties,sc)),(0,U.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,md)),(0,U.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,o)=>{let a=`${e.rawSchema.namespace}.${o.name}`;return i[a]=e.getConvertedAction(o.fullyQualifiedName),i},{})),n.resolvePath=(i,o)=>{let a=It(e,t,i);return o?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}r(gT,"convertEntityType");function sc(e,t){let n=t;return(0,U.lazy)(n,"annotations",mn(e,t)),(0,U.lazy)(n,"targetType",()=>{var i;let o=t.type,a=o.startsWith("Collection")?o.substring(11,o.length-1):o;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}r(sc,"convertProperty");function md(e,t){var n,i,o;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!uT(t)){let s=(i=e.rawSchema.associations.find(c=>c.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(c=>c.role===t.toRole);a.isCollection=(s==null?void 0:s.multiplicity)==="*",a.targetTypeName=(o=s==null?void 0:s.type)!==null&&o!==void 0?o:""}return(0,U.lazy)(a,"targetType",Ao(e,t.targetTypeName)),(0,U.lazy)(a,"annotations",mn(e,t)),a}r(md,"convertNavigationProperty");function yd(e,t){let n=t;return(0,U.lazy)(n,"annotations",mn(e,t)),(0,U.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(o=>!o.isBound&&o.fullyQualifiedName.startsWith(t.actionName));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}r(yd,"convertActionImport");function mT(e,t){let n=t;return n.sourceType&&(0,U.lazy)(n,"sourceEntityType",Ao(e,t.sourceType)),n.returnType&&(0,U.lazy)(n,"returnEntityType",Ao(e,t.returnType)),(0,U.lazy)(n,"parameters",e.convert(t.parameters,yT)),(0,U.lazy)(n,"annotations",()=>{let i=(0,U.substringBeforeFirst)(t.fullyQualifiedName,"("),o=t.fullyQualifiedName,a=e.getAnnotations(o),s=e.getAnnotations(i);for(let c of s)a.some(l=>l.term===c.term&&l.qualifier===c.qualifier)||a.push(c);return qr(e,t,a)}),n}r(mT,"convertAction");function yT(e,t){let n=t;return(0,U.lazy)(n,"typeReference",()=>{var i,o;return(o=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&o!==void 0?o:e.getConvertedTypeDefinition(t.type)}),(0,U.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),o=t.fullyQualifiedName,a=e.getAnnotations(o),s=e.getAnnotations(i);for(let c of s)a.some(l=>l.term===c.term&&l.qualifier===c.qualifier)||a.push(c);return qr(e,t,a)}),n}r(yT,"convertActionParameter");function hT(e,t){let n=t;return(0,U.lazy)(n,"properties",e.convert(t.properties,sc)),(0,U.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,md)),(0,U.lazy)(n,"annotations",mn(e,t)),n}r(hT,"convertComplexType");function bT(e,t){let n=t;return(0,U.lazy)(n,"annotations",mn(e,t)),n}r(bT,"convertTypeDefinition");function TT(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:Xr.VocabularyReferences,diagnostics:[]},n=new ac(e,t);return(0,U.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,ud)),(0,U.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,gd)),(0,U.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,dd)),(0,U.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,gT)),(0,U.lazy)(t,"actions",n.convert(n.rawSchema.actions,mT)),(0,U.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,hT)),(0,U.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,yd)),(0,U.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,bT)),t.resolvePath=r(function(o){let a=It(n,void 0,o);return a.target&&gn(a.objectPath,a.target),a},"resolvePath"),t}r(TT,"convert");zr.convert=TT});var Sd=Ie(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.revertTermToGenericType=void 0;var pc=Qr();function vT(e,t){var n,i,o,a,s,c,l;let p;if(Array.isArray(t)){let u=t[0],f=!1;if(u&&typeof u=="string"){let d=u.valueOf().split(".");d.length>1&&e.find(b=>b.alias===d[0])&&(f=pc.EnumIsFlag[(0,pc.substringBeforeFirst)(u,"/")])}f?p={type:"EnumMember",EnumMember:t.map(d=>d.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(d=>Yr(e,d))}}else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))p={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))p={type:"Double",Double:t.valueOf()};else if(!((o=t.isString)===null||o===void 0)&&o.call(t)){let u=t.valueOf().split(".");u.length>1&&e.find(f=>f.alias===u[0])?p={type:"EnumMember",EnumMember:t.valueOf()}:p={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?p={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?p={type:"Float",Float:t.valueOf()}:!((c=t.isDate)===null||c===void 0)&&c.call(t)?p={type:"Date",Date:t.valueOf()}:!((l=t.isBoolean)===null||l===void 0)&&l.call(t)?p={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?p={type:"Path",Path:t.path}:t.type==="AnnotationPath"?p={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?p={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?p={type:"Null"}:t.type==="PropertyPath"?p={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?p={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(p={type:"Record",Record:Yr(e,t)});return p}r(vT,"revertObjectToRawType");function bd(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let o=t.toString().split(".");o.length>1&&e.find(a=>a.alias===o[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=vT(e,t);break}return n}r(bd,"revertValueToRawType");var ST=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function Td(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(o=>{let a=vd(e,t[i][o]);if(!a.term){let s=(0,pc.unalias)(e,`${i}.${o}`);if(s){let c=s.split("#");a.term=c[0],c.length>1&&(a.qualifier=c[1])}}n.push(a)})})}r(Td,"revertAnnotationsToRawType");function Yr(e,t){if(typeof t=="string")return{type:"String",String:t};if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(ST.indexOf(i)===-1){let o=t[i];n.propertyValues.push({name:i,value:bd(e,o)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],Td(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}}r(Yr,"revertCollectionItemToRawType");function vd(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=[],Td(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Yr(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Yr(e,t)}:{...n,value:bd(e,t)}}r(vd,"revertTermToGenericType");Zr.revertTermToGenericType=vd});var xd=Ie(yn=>{"use strict";var xT=yn&&yn.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:r(function(){return t[n]},"get")}),Object.defineProperty(e,i,o)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),fc=yn&&yn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&xT(t,e,n)};Object.defineProperty(yn,"__esModule",{value:!0});fc(hd(),yn);fc(Qr(),yn);fc(Sd(),yn)});var yc=Ie(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.MergedRawMetadata=Rn.RawMetadataInstance=Rn.ensureArray=void 0;function CT(e){return e==null?[]:Array.isArray(e)?e:[e]}r(CT,"ensureArray");Rn.ensureArray=CT;var gc=class gc{constructor(t,n,i,o){this.identification=t,this.references=o,this.version=n,this.schema=i}};r(gc,"RawMetadataInstance");var uc=gc;Rn.RawMetadataInstance=uc;var mc=class mc{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))}};r(mc,"MergedRawMetadata");var dc=mc;Rn.MergedRawMetadata=dc});var Cd=Ie(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.merge=void 0;var PT=yc();function AT(...e){let t=new PT.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}r(AT,"merge");ea.merge=AT});var Pd=Ie(ta=>{(function(e){e.parser=function(h,g){return new n(h,g)},e.SAXParser=n,e.SAXStream=p,e.createStream=l,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,g){if(!(this instanceof n))return new n(h,g);var E=this;o(E),E.q=E.c="",E.bufferCheckPosition=e.MAX_BUFFER_LENGTH,E.opt=g||{},E.opt.lowercase=E.opt.lowercase||E.opt.lowercasetags,E.looseCase=E.opt.lowercase?"toLowerCase":"toUpperCase",E.tags=[],E.closed=E.closedRoot=E.sawRoot=!1,E.tag=E.error=null,E.strict=!!h,E.noscript=!!(h||E.opt.noscript),E.state=S.BEGIN,E.strictEntities=E.opt.strictEntities,E.ENTITIES=E.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),E.attribList=[],E.opt.xmlns&&(E.ns=Object.create(x)),E.opt.unquotedAttributeValues===void 0&&(E.opt.unquotedAttributeValues=!h),E.trackPosition=E.opt.position!==!1,E.trackPosition&&(E.position=E.line=E.column=0),Xt(E,"onready")}r(n,"SAXParser"),Object.create||(Object.create=function(h){function g(){}r(g,"F"),g.prototype=h;var E=new g;return E}),Object.keys||(Object.keys=function(h){var g=[];for(var E in h)h.hasOwnProperty(E)&&g.push(E);return g});function i(h){for(var g=Math.max(e.MAX_BUFFER_LENGTH,10),E=0,T=0,se=t.length;T<se;T++){var ke=h[t[T]].length;if(ke>g)switch(t[T]){case"textNode":Dn(h);break;case"cdata":Ee(h,"oncdata",h.cdata),h.cdata="";break;case"script":Ee(h,"onscript",h.script),h.script="";break;default:ht(h,"Max buffer length exceeded: "+t[T])}E=Math.max(E,ke)}var Le=e.MAX_BUFFER_LENGTH-E;h.bufferCheckPosition=Le+h.position}r(i,"checkBufferLength");function o(h){for(var g=0,E=t.length;g<E;g++)h[t[g]]=""}r(o,"clearBuffers");function a(h){Dn(h),h.cdata!==""&&(Ee(h,"oncdata",h.cdata),h.cdata=""),h.script!==""&&(Ee(h,"onscript",h.script),h.script="")}r(a,"flushBuffers"),n.prototype={end:r(function(){jt(this)},"end"),write:$e,resume:r(function(){return this.error=null,this},"resume"),close:r(function(){return this.write(null)},"close"),flush:r(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=r(function(){},"Stream")}s||(s=r(function(){},"Stream"));var c=e.EVENTS.filter(function(h){return h!=="error"&&h!=="end"});function l(h,g){return new p(h,g)}r(l,"createStream");function p(h,g){if(!(this instanceof p))return new p(h,g);s.apply(this),this._parser=new n(h,g),this.writable=!0,this.readable=!0;var E=this;this._parser.onend=function(){E.emit("end")},this._parser.onerror=function(T){E.emit("error",T),E._parser.error=null},this._decoder=null,c.forEach(function(T){Object.defineProperty(E,"on"+T,{get:r(function(){return E._parser["on"+T]},"get"),set:r(function(se){if(!se)return E.removeAllListeners(T),E._parser["on"+T]=se,se;E.on(T,se)},"set"),enumerable:!0,configurable:!1})})}r(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(h){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(h)){if(!this._decoder){var g=require("string_decoder").StringDecoder;this._decoder=new g("utf8")}h=this._decoder.write(h)}return this._parser.write(h.toString()),this.emit("data",h),!0},p.prototype.end=function(h){return h&&h.length&&this.write(h),this._parser.end(),!0},p.prototype.on=function(h,g){var E=this;return!E._parser["on"+h]&&c.indexOf(h)!==-1&&(E._parser["on"+h]=function(){var T=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);T.splice(0,0,h),E.emit.apply(E,T)}),s.prototype.on.call(E,h,g)};var u="[CDATA[",f="DOCTYPE",d="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",x={xml:d,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]/,O=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,_=/[#:_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]/,ie=/[#:_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 q(h){return h===" "||h===`
20
+ `||h==="\r"||h===" "}r(q,"isWhitespace");function Z(h){return h==='"'||h==="'"}r(Z,"isQuote");function Q(h){return h===">"||q(h)}r(Q,"isAttribEnd");function ce(h,g){return h.test(g)}r(ce,"isMatch");function Pe(h,g){return!ce(h,g)}r(Pe,"notMatch");var S=0;e.STATE={BEGIN:S++,BEGIN_WHITESPACE:S++,TEXT:S++,TEXT_ENTITY:S++,OPEN_WAKA:S++,SGML_DECL:S++,SGML_DECL_QUOTED:S++,DOCTYPE:S++,DOCTYPE_QUOTED:S++,DOCTYPE_DTD:S++,DOCTYPE_DTD_QUOTED:S++,COMMENT_STARTING:S++,COMMENT:S++,COMMENT_ENDING:S++,COMMENT_ENDED:S++,CDATA:S++,CDATA_ENDING:S++,CDATA_ENDING_2:S++,PROC_INST:S++,PROC_INST_BODY:S++,PROC_INST_ENDING:S++,OPEN_TAG:S++,OPEN_TAG_SLASH:S++,ATTRIB:S++,ATTRIB_NAME:S++,ATTRIB_NAME_SAW_WHITE:S++,ATTRIB_VALUE:S++,ATTRIB_VALUE_QUOTED:S++,ATTRIB_VALUE_CLOSED:S++,ATTRIB_VALUE_UNQUOTED:S++,ATTRIB_VALUE_ENTITY_Q:S++,ATTRIB_VALUE_ENTITY_U:S++,CLOSE_TAG:S++,CLOSE_TAG_SAW_WHITE:S++,SCRIPT:S++,SCRIPT_ENDING:S++},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 g=e.ENTITIES[h],E=typeof g=="number"?String.fromCharCode(g):g;e.ENTITIES[h]=E});for(var fn in e.STATE)e.STATE[e.STATE[fn]]=fn;S=e.STATE;function Xt(h,g,E){h[g]&&h[g](E)}r(Xt,"emit");function Ee(h,g,E){h.textNode&&Dn(h),Xt(h,g,E)}r(Ee,"emitNode");function Dn(h){h.textNode=Di(h.opt,h.textNode),h.textNode&&Xt(h,"ontext",h.textNode),h.textNode=""}r(Dn,"closeText");function Di(h,g){return h.trim&&(g=g.trim()),h.normalize&&(g=g.replace(/\s+/g," ")),g}r(Di,"textopts");function ht(h,g){return Dn(h),h.trackPosition&&(g+=`
21
21
  Line: `+h.line+`
22
22
  Column: `+h.column+`
23
- Char: `+h.c),g=new Error(g),h.error=g,Qt(h,"onerror",g),h}r(ht,"error");function jt(h){return h.sawRoot&&!h.closedRoot&&ye(h,"Unclosed root tag"),h.state!==S.BEGIN&&h.state!==S.BEGIN_WHITESPACE&&h.state!==S.TEXT&&ht(h,"Unexpected end"),Vn(h),h.c="",h.closed=!0,Qt(h,"onend"),n.call(h,h.strict,h.opt),h}r(jt,"end");function ye(h,g){if(typeof h!="object"||!(h instanceof n))throw new Error("bad call to strictFail");h.strict&&ht(h,g)}r(ye,"strictFail");function ii(h){h.strict||(h.tagName=h.tagName[h.looseCase]());var g=h.tags[h.tags.length-1]||h,E=h.tag={name:h.tagName,attributes:{}};h.opt.xmlns&&(E.ns=g.ns),h.attribList.length=0,Ee(h,"onopentagstart",E)}r(ii,"newTag");function Je(h,g){var E=h.indexOf(":"),T=E<0?["",h]:h.split(":"),se=T[0],ke=T[1];return g&&h==="xmlns"&&(se="xmlns",ke=""),{prefix:se,local:ke}}r(Je,"qname");function bt(h){if(h.strict||(h.attribName=h.attribName[h.looseCase]()),h.attribList.indexOf(h.attribName)!==-1||h.tag.attributes.hasOwnProperty(h.attribName)){h.attribName=h.attribValue="";return}if(h.opt.xmlns){var g=Je(h.attribName,!0),E=g.prefix,T=g.local;if(E==="xmlns")if(T==="xml"&&h.attribValue!==d)ye(h,"xml: prefix must be bound to "+d+`
23
+ Char: `+h.c),g=new Error(g),h.error=g,Xt(h,"onerror",g),h}r(ht,"error");function jt(h){return h.sawRoot&&!h.closedRoot&&ye(h,"Unclosed root tag"),h.state!==S.BEGIN&&h.state!==S.BEGIN_WHITESPACE&&h.state!==S.TEXT&&ht(h,"Unexpected end"),Dn(h),h.c="",h.closed=!0,Xt(h,"onend"),n.call(h,h.strict,h.opt),h}r(jt,"end");function ye(h,g){if(typeof h!="object"||!(h instanceof n))throw new Error("bad call to strictFail");h.strict&&ht(h,g)}r(ye,"strictFail");function ri(h){h.strict||(h.tagName=h.tagName[h.looseCase]());var g=h.tags[h.tags.length-1]||h,E=h.tag={name:h.tagName,attributes:{}};h.opt.xmlns&&(E.ns=g.ns),h.attribList.length=0,Ee(h,"onopentagstart",E)}r(ri,"newTag");function Je(h,g){var E=h.indexOf(":"),T=E<0?["",h]:h.split(":"),se=T[0],ke=T[1];return g&&h==="xmlns"&&(se="xmlns",ke=""),{prefix:se,local:ke}}r(Je,"qname");function bt(h){if(h.strict||(h.attribName=h.attribName[h.looseCase]()),h.attribList.indexOf(h.attribName)!==-1||h.tag.attributes.hasOwnProperty(h.attribName)){h.attribName=h.attribValue="";return}if(h.opt.xmlns){var g=Je(h.attribName,!0),E=g.prefix,T=g.local;if(E==="xmlns")if(T==="xml"&&h.attribValue!==d)ye(h,"xml: prefix must be bound to "+d+`
24
24
  Actual: `+h.attribValue);else if(T==="xmlns"&&h.attribValue!==b)ye(h,"xmlns: prefix must be bound to "+b+`
25
- Actual: `+h.attribValue);else{var se=h.tag,ke=h.tags[h.tags.length-1]||h;se.ns===ke.ns&&(se.ns=Object.create(ke.ns)),se.ns[T]=h.attribValue}h.attribList.push([h.attribName,h.attribValue])}else h.tag.attributes[h.attribName]=h.attribValue,Ee(h,"onattribute",{name:h.attribName,value:h.attribValue});h.attribName=h.attribValue=""}r(bt,"attrib");function ot(h,g){if(h.opt.xmlns){var E=h.tag,T=Je(h.tagName);E.prefix=T.prefix,E.local=T.local,E.uri=E.ns[T.prefix]||"",E.prefix&&!E.uri&&(ye(h,"Unbound namespace prefix: "+JSON.stringify(h.tagName)),E.uri=T.prefix);var se=h.tags[h.tags.length-1]||h;E.ns&&se.ns!==E.ns&&Object.keys(E.ns).forEach(function(Di){Ee(h,"onopennamespace",{prefix:Di,uri:E.ns[Di]})});for(var ke=0,Le=h.attribList.length;ke<Le;ke++){var nt=h.attribList[ke],rt=nt[0],Xt=nt[1],Qe=Je(rt,!0),Dt=Qe.prefix,Rr=Qe.local,ho=Dt===""?"":E.ns[Dt]||"",ji={name:rt,value:Xt,prefix:Dt,local:Rr,uri:ho};Dt&&Dt!=="xmlns"&&!ho&&(ye(h,"Unbound namespace prefix: "+JSON.stringify(Dt)),ji.uri=Dt),h.tag.attributes[rt]=ji,Ee(h,"onattribute",ji)}h.attribList.length=0}h.tag.isSelfClosing=!!g,h.sawRoot=!0,h.tags.push(h.tag),Ee(h,"onopentag",h.tag),g||(!h.noscript&&h.tagName.toLowerCase()==="script"?h.state=S.SCRIPT:h.state=S.TEXT,h.tag=null,h.tagName=""),h.attribName=h.attribValue="",h.attribList.length=0}r(ot,"openTag");function fn(h){if(!h.tagName){ye(h,"Weird empty close tag."),h.textNode+="</>",h.state=S.TEXT;return}if(h.script){if(h.tagName!=="script"){h.script+="</"+h.tagName+">",h.tagName="",h.state=S.SCRIPT;return}Ee(h,"onscript",h.script),h.script=""}var g=h.tags.length,E=h.tagName;h.strict||(E=E[h.looseCase]());for(var T=E;g--;){var se=h.tags[g];if(se.name!==T)ye(h,"Unexpected close tag");else break}if(g<0){ye(h,"Unmatched closing tag: "+h.tagName),h.textNode+="</"+h.tagName+">",h.state=S.TEXT;return}h.tagName=E;for(var ke=h.tags.length;ke-- >g;){var Le=h.tag=h.tags.pop();h.tagName=h.tag.name,Ee(h,"onclosetag",h.tagName);var nt={};for(var rt in Le.ns)nt[rt]=Le.ns[rt];var Xt=h.tags[h.tags.length-1]||h;h.opt.xmlns&&Le.ns!==Xt.ns&&Object.keys(Le.ns).forEach(function(Qe){var Dt=Le.ns[Qe];Ee(h,"onclosenamespace",{prefix:Qe,uri:Dt})})}g===0&&(h.closedRoot=!0),h.tagName=h.attribValue=h.attribName="",h.attribList.length=0,h.state=S.TEXT}r(fn,"closeTag");function Z(h){var g=h.entity,E=g.toLowerCase(),T,se="";return h.ENTITIES[g]?h.ENTITIES[g]:h.ENTITIES[E]?h.ENTITIES[E]:(g=E,g.charAt(0)==="#"&&(g.charAt(1)==="x"?(g=g.slice(2),T=parseInt(g,16),se=T.toString(16)):(g=g.slice(1),T=parseInt(g,10),se=T.toString(10))),g=g.replace(/^0+/,""),isNaN(T)||se.toLowerCase()!==g?(ye(h,"Invalid character entity"),"&"+h.entity+";"):String.fromCodePoint(T))}r(Z,"parseEntity");function un(h,g){g==="<"?(h.state=S.OPEN_WAKA,h.startTagPosition=h.position):q(g)||(ye(h,"Non-whitespace before first tag."),h.textNode=g,h.state=S.TEXT)}r(un,"beginWhiteSpace");function Dr(h,g){var E="";return g<h.length&&(E=h.charAt(g)),E}r(Dr,"charAt");function $e(h){var g=this;if(this.error)throw this.error;if(g.closed)return ht(g,"Cannot write after close. Assign an onready handler.");if(h===null)return jt(g);typeof h=="object"&&(h=h.toString());for(var E=0,T="";T=Dr(h,E++),g.c=T,!!T;)switch(g.trackPosition&&(g.position++,T===`
26
- `?(g.line++,g.column=0):g.column++),g.state){case S.BEGIN:if(g.state=S.BEGIN_WHITESPACE,T==="\uFEFF")continue;un(g,T);continue;case S.BEGIN_WHITESPACE:un(g,T);continue;case S.TEXT:if(g.sawRoot&&!g.closedRoot){for(var se=E-1;T&&T!=="<"&&T!=="&";)T=Dr(h,E++),T&&g.trackPosition&&(g.position++,T===`
27
- `?(g.line++,g.column=0):g.column++);g.textNode+=h.substring(se,E-1)}T==="<"&&!(g.sawRoot&&g.closedRoot&&!g.strict)?(g.state=S.OPEN_WAKA,g.startTagPosition=g.position):(!q(T)&&(!g.sawRoot||g.closedRoot)&&ye(g,"Text data outside of root node."),T==="&"?g.state=S.TEXT_ENTITY:g.textNode+=T);continue;case S.SCRIPT:T==="<"?g.state=S.SCRIPT_ENDING:g.script+=T;continue;case S.SCRIPT_ENDING:T==="/"?g.state=S.CLOSE_TAG:(g.script+="<"+T,g.state=S.SCRIPT);continue;case S.OPEN_WAKA:if(T==="!")g.state=S.SGML_DECL,g.sgmlDecl="";else if(!q(T))if(ce(I,T))g.state=S.OPEN_TAG,g.tagName=T;else if(T==="/")g.state=S.CLOSE_TAG,g.tagName="";else if(T==="?")g.state=S.PROC_INST,g.procInstName=g.procInstBody="";else{if(ye(g,"Unencoded <"),g.startTagPosition+1<g.position){var ke=g.position-g.startTagPosition;T=new Array(ke).join(" ")+T}g.textNode+="<"+T,g.state=S.TEXT}continue;case S.SGML_DECL:if(g.sgmlDecl+T==="--"){g.state=S.COMMENT,g.comment="",g.sgmlDecl="";continue}g.doctype&&g.doctype!==!0&&g.sgmlDecl?(g.state=S.DOCTYPE_DTD,g.doctype+="<!"+g.sgmlDecl+T,g.sgmlDecl=""):(g.sgmlDecl+T).toUpperCase()===u?(Ee(g,"onopencdata"),g.state=S.CDATA,g.sgmlDecl="",g.cdata=""):(g.sgmlDecl+T).toUpperCase()===f?(g.state=S.DOCTYPE,(g.doctype||g.sawRoot)&&ye(g,"Inappropriately located doctype declaration"),g.doctype="",g.sgmlDecl=""):T===">"?(Ee(g,"onsgmldeclaration",g.sgmlDecl),g.sgmlDecl="",g.state=S.TEXT):(te(T)&&(g.state=S.SGML_DECL_QUOTED),g.sgmlDecl+=T);continue;case S.SGML_DECL_QUOTED:T===g.q&&(g.state=S.SGML_DECL,g.q=""),g.sgmlDecl+=T;continue;case S.DOCTYPE:T===">"?(g.state=S.TEXT,Ee(g,"ondoctype",g.doctype),g.doctype=!0):(g.doctype+=T,T==="["?g.state=S.DOCTYPE_DTD:te(T)&&(g.state=S.DOCTYPE_QUOTED,g.q=T));continue;case S.DOCTYPE_QUOTED:g.doctype+=T,T===g.q&&(g.q="",g.state=S.DOCTYPE);continue;case S.DOCTYPE_DTD:T==="]"?(g.doctype+=T,g.state=S.DOCTYPE):T==="<"?(g.state=S.OPEN_WAKA,g.startTagPosition=g.position):te(T)?(g.doctype+=T,g.state=S.DOCTYPE_DTD_QUOTED,g.q=T):g.doctype+=T;continue;case S.DOCTYPE_DTD_QUOTED:g.doctype+=T,T===g.q&&(g.state=S.DOCTYPE_DTD,g.q="");continue;case S.COMMENT:T==="-"?g.state=S.COMMENT_ENDING:g.comment+=T;continue;case S.COMMENT_ENDING:T==="-"?(g.state=S.COMMENT_ENDED,g.comment=Vi(g.opt,g.comment),g.comment&&Ee(g,"oncomment",g.comment),g.comment=""):(g.comment+="-"+T,g.state=S.COMMENT);continue;case S.COMMENT_ENDED:T!==">"?(ye(g,"Malformed comment"),g.comment+="--"+T,g.state=S.COMMENT):g.doctype&&g.doctype!==!0?g.state=S.DOCTYPE_DTD:g.state=S.TEXT;continue;case S.CDATA:T==="]"?g.state=S.CDATA_ENDING:g.cdata+=T;continue;case S.CDATA_ENDING:T==="]"?g.state=S.CDATA_ENDING_2:(g.cdata+="]"+T,g.state=S.CDATA);continue;case S.CDATA_ENDING_2:T===">"?(g.cdata&&Ee(g,"oncdata",g.cdata),Ee(g,"onclosecdata"),g.cdata="",g.state=S.TEXT):T==="]"?g.cdata+="]":(g.cdata+="]]"+T,g.state=S.CDATA);continue;case S.PROC_INST:T==="?"?g.state=S.PROC_INST_ENDING:q(T)?g.state=S.PROC_INST_BODY:g.procInstName+=T;continue;case S.PROC_INST_BODY:if(!g.procInstBody&&q(T))continue;T==="?"?g.state=S.PROC_INST_ENDING:g.procInstBody+=T;continue;case S.PROC_INST_ENDING:T===">"?(Ee(g,"onprocessinginstruction",{name:g.procInstName,body:g.procInstBody}),g.procInstName=g.procInstBody="",g.state=S.TEXT):(g.procInstBody+="?"+T,g.state=S.PROC_INST_BODY);continue;case S.OPEN_TAG:ce(O,T)?g.tagName+=T:(ii(g),T===">"?ot(g):T==="/"?g.state=S.OPEN_TAG_SLASH:(q(T)||ye(g,"Invalid character in tag name"),g.state=S.ATTRIB));continue;case S.OPEN_TAG_SLASH:T===">"?(ot(g,!0),fn(g)):(ye(g,"Forward-slash in opening tag not followed by >"),g.state=S.ATTRIB);continue;case S.ATTRIB:if(q(T))continue;T===">"?ot(g):T==="/"?g.state=S.OPEN_TAG_SLASH:ce(I,T)?(g.attribName=T,g.attribValue="",g.state=S.ATTRIB_NAME):ye(g,"Invalid attribute name");continue;case S.ATTRIB_NAME:T==="="?g.state=S.ATTRIB_VALUE:T===">"?(ye(g,"Attribute without value"),g.attribValue=g.attribName,bt(g),ot(g)):q(T)?g.state=S.ATTRIB_NAME_SAW_WHITE:ce(O,T)?g.attribName+=T:ye(g,"Invalid attribute name");continue;case S.ATTRIB_NAME_SAW_WHITE:if(T==="=")g.state=S.ATTRIB_VALUE;else{if(q(T))continue;ye(g,"Attribute without value"),g.tag.attributes[g.attribName]="",g.attribValue="",Ee(g,"onattribute",{name:g.attribName,value:""}),g.attribName="",T===">"?ot(g):ce(I,T)?(g.attribName=T,g.state=S.ATTRIB_NAME):(ye(g,"Invalid attribute name"),g.state=S.ATTRIB)}continue;case S.ATTRIB_VALUE:if(q(T))continue;te(T)?(g.q=T,g.state=S.ATTRIB_VALUE_QUOTED):(g.opt.unquotedAttributeValues||ht(g,"Unquoted attribute value"),g.state=S.ATTRIB_VALUE_UNQUOTED,g.attribValue=T);continue;case S.ATTRIB_VALUE_QUOTED:if(T!==g.q){T==="&"?g.state=S.ATTRIB_VALUE_ENTITY_Q:g.attribValue+=T;continue}bt(g),g.q="",g.state=S.ATTRIB_VALUE_CLOSED;continue;case S.ATTRIB_VALUE_CLOSED:q(T)?g.state=S.ATTRIB:T===">"?ot(g):T==="/"?g.state=S.OPEN_TAG_SLASH:ce(I,T)?(ye(g,"No whitespace between attributes"),g.attribName=T,g.attribValue="",g.state=S.ATTRIB_NAME):ye(g,"Invalid attribute name");continue;case S.ATTRIB_VALUE_UNQUOTED:if(!J(T)){T==="&"?g.state=S.ATTRIB_VALUE_ENTITY_U:g.attribValue+=T;continue}bt(g),T===">"?ot(g):g.state=S.ATTRIB;continue;case S.CLOSE_TAG:if(g.tagName)T===">"?fn(g):ce(O,T)?g.tagName+=T:g.script?(g.script+="</"+g.tagName,g.tagName="",g.state=S.SCRIPT):(q(T)||ye(g,"Invalid tagname in closing tag"),g.state=S.CLOSE_TAG_SAW_WHITE);else{if(q(T))continue;Pe(I,T)?g.script?(g.script+="</"+T,g.state=S.SCRIPT):ye(g,"Invalid tagname in closing tag."):g.tagName=T}continue;case S.CLOSE_TAG_SAW_WHITE:if(q(T))continue;T===">"?fn(g):ye(g,"Invalid characters in closing tag");continue;case S.TEXT_ENTITY:case S.ATTRIB_VALUE_ENTITY_Q:case S.ATTRIB_VALUE_ENTITY_U:var Le,nt;switch(g.state){case S.TEXT_ENTITY:Le=S.TEXT,nt="textNode";break;case S.ATTRIB_VALUE_ENTITY_Q:Le=S.ATTRIB_VALUE_QUOTED,nt="attribValue";break;case S.ATTRIB_VALUE_ENTITY_U:Le=S.ATTRIB_VALUE_UNQUOTED,nt="attribValue";break}if(T===";"){var rt=Z(g);g.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(rt)?(g.entity="",g.state=Le,g.write(rt)):(g[nt]+=rt,g.entity="",g.state=Le)}else ce(g.entity.length?re:$,T)?g.entity+=T:(ye(g,"Invalid character in entity name"),g[nt]+="&"+g.entity+T,g.entity="",g.state=Le);continue;default:throw new Error(g,"Unknown state: "+g.state)}return g.position>=g.bufferCheckPosition&&i(g),g}r($e,"write");String.fromCodePoint||function(){var h=String.fromCharCode,g=Math.floor,E=r(function(){var T=16384,se=[],ke,Le,nt=-1,rt=arguments.length;if(!rt)return"";for(var Xt="";++nt<rt;){var Qe=Number(arguments[nt]);if(!isFinite(Qe)||Qe<0||Qe>1114111||g(Qe)!==Qe)throw RangeError("Invalid code point: "+Qe);Qe<=65535?se.push(Qe):(Qe-=65536,ke=(Qe>>10)+55296,Le=Qe%1024+56320,se.push(ke,Le)),(nt+1===rt||se.length>T)&&(Xt+=h.apply(null,se),se.length=0)}return Xt},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:E,configurable:!0,writable:!0}):String.fromCodePoint=E}()})(typeof ea>"u"?ea.sax={}:ea)});var ta=Ie((QA,Sd)=>{Sd.exports={isArray:r(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var na=Ie((qA,xd)=>{var vT=ta().isArray;xd.exports={copyOptions:r(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},"copyOptions"),ensureFlagExists:r(function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},"ensureFlagExists"),ensureSpacesExists:r(function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},"ensureSpacesExists"),ensureAlwaysArrayExists:r(function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!vT(e.alwaysArray))&&(e.alwaysArray=!1)},"ensureAlwaysArrayExists"),ensureKeyExists:r(function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},"ensureKeyExists"),checkFnExists:r(function(e,t){return e+"Fn"in t},"checkFnExists")}});var mc=Ie((YA,Nd)=>{var ST=vd(),xT={on:r(function(){},"on"),parse:r(function(){},"parse")},le=na(),ki=ta().isArray,P,gc=!0,ne;function CT(e){return P=le.copyOptions(e),le.ensureFlagExists("ignoreDeclaration",P),le.ensureFlagExists("ignoreInstruction",P),le.ensureFlagExists("ignoreAttributes",P),le.ensureFlagExists("ignoreText",P),le.ensureFlagExists("ignoreComment",P),le.ensureFlagExists("ignoreCdata",P),le.ensureFlagExists("ignoreDoctype",P),le.ensureFlagExists("compact",P),le.ensureFlagExists("alwaysChildren",P),le.ensureFlagExists("addParent",P),le.ensureFlagExists("trim",P),le.ensureFlagExists("nativeType",P),le.ensureFlagExists("nativeTypeAttributes",P),le.ensureFlagExists("sanitize",P),le.ensureFlagExists("instructionHasAttributes",P),le.ensureFlagExists("captureSpacesBetweenElements",P),le.ensureAlwaysArrayExists(P),le.ensureKeyExists("declaration",P),le.ensureKeyExists("instruction",P),le.ensureKeyExists("attributes",P),le.ensureKeyExists("text",P),le.ensureKeyExists("comment",P),le.ensureKeyExists("cdata",P),le.ensureKeyExists("doctype",P),le.ensureKeyExists("type",P),le.ensureKeyExists("name",P),le.ensureKeyExists("elements",P),le.ensureKeyExists("parent",P),le.checkFnExists("doctype",P),le.checkFnExists("instruction",P),le.checkFnExists("cdata",P),le.checkFnExists("comment",P),le.checkFnExists("text",P),le.checkFnExists("instructionName",P),le.checkFnExists("elementName",P),le.checkFnExists("attributeName",P),le.checkFnExists("attributeValue",P),le.checkFnExists("attributes",P),P}r(CT,"validateOptions");function Od(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}r(Od,"nativeType");function Ao(e,t){var n;if(P.compact){if(!ne[P[e+"Key"]]&&(ki(P.alwaysArray)?P.alwaysArray.indexOf(P[e+"Key"])!==-1:P.alwaysArray)&&(ne[P[e+"Key"]]=[]),ne[P[e+"Key"]]&&!ki(ne[P[e+"Key"]])&&(ne[P[e+"Key"]]=[ne[P[e+"Key"]]]),e+"Fn"in P&&typeof t=="string"&&(t=P[e+"Fn"](t,ne)),e==="instruction"&&("instructionFn"in P||"instructionNameFn"in P)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in P)t[n]=P.instructionFn(t[n],n,ne);else{var i=t[n];delete t[n],t[P.instructionNameFn(n,i,ne)]=i}}ki(ne[P[e+"Key"]])?ne[P[e+"Key"]].push(t):ne[P[e+"Key"]]=t}else{ne[P.elementsKey]||(ne[P.elementsKey]=[]);var o={};if(o[P.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;o[P.nameKey]="instructionNameFn"in P?P.instructionNameFn(n,t,ne):n,P.instructionHasAttributes?(o[P.attributesKey]=t[n][P.attributesKey],"instructionFn"in P&&(o[P.attributesKey]=P.instructionFn(o[P.attributesKey],n,ne))):("instructionFn"in P&&(t[n]=P.instructionFn(t[n],n,ne)),o[P.instructionKey]=t[n])}else e+"Fn"in P&&(t=P[e+"Fn"](t,ne)),o[P[e+"Key"]]=t;P.addParent&&(o[P.parentKey]=ne),ne[P.elementsKey].push(o)}}r(Ao,"addField");function Fd(e){if("attributesFn"in P&&e&&(e=P.attributesFn(e,ne)),(P.trim||"attributeValueFn"in P||"attributeNameFn"in P||P.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(P.trim&&(e[t]=e[t].trim()),P.nativeTypeAttributes&&(e[t]=Od(e[t])),"attributeValueFn"in P&&(e[t]=P.attributeValueFn(e[t],t,ne)),"attributeNameFn"in P)){var n=e[t];delete e[t],e[P.attributeNameFn(t,e[t],ne)]=n}}return e}r(Fd,"manipulateAttributes");function PT(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||P.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,i;(i=n.exec(e.body))!==null;)t[i[1]]=i[2]||i[3]||i[4];t=Fd(t)}if(e.name.toLowerCase()==="xml"){if(P.ignoreDeclaration)return;ne[P.declarationKey]={},Object.keys(t).length&&(ne[P.declarationKey][P.attributesKey]=t),P.addParent&&(ne[P.declarationKey][P.parentKey]=ne)}else{if(P.ignoreInstruction)return;P.trim&&(e.body=e.body.trim());var o={};P.instructionHasAttributes&&Object.keys(t).length?(o[e.name]={},o[e.name][P.attributesKey]=t):o[e.name]=e.body,Ao("instruction",o)}}r(PT,"onInstruction");function Cd(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=Fd(t),"elementNameFn"in P&&(e=P.elementNameFn(e,ne)),P.compact){if(n={},!P.ignoreAttributes&&t&&Object.keys(t).length){n[P.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[P.attributesKey][i]=t[i])}!(e in ne)&&(ki(P.alwaysArray)?P.alwaysArray.indexOf(e)!==-1:P.alwaysArray)&&(ne[e]=[]),ne[e]&&!ki(ne[e])&&(ne[e]=[ne[e]]),ki(ne[e])?ne[e].push(n):ne[e]=n}else ne[P.elementsKey]||(ne[P.elementsKey]=[]),n={},n[P.typeKey]="element",n[P.nameKey]=e,!P.ignoreAttributes&&t&&Object.keys(t).length&&(n[P.attributesKey]=t),P.alwaysChildren&&(n[P.elementsKey]=[]),ne[P.elementsKey].push(n);n[P.parentKey]=ne,ne=n}r(Cd,"onStartElement");function Pd(e){P.ignoreText||!e.trim()&&!P.captureSpacesBetweenElements||(P.trim&&(e=e.trim()),P.nativeType&&(e=Od(e)),P.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),Ao("text",e))}r(Pd,"onText");function Ad(e){P.ignoreComment||(P.trim&&(e=e.trim()),Ao("comment",e))}r(Ad,"onComment");function Ed(e){var t=ne[P.parentKey];P.addParent||delete ne[P.parentKey],ne=t}r(Ed,"onEndElement");function AT(e){P.ignoreCdata||(P.trim&&(e=e.trim()),Ao("cdata",e))}r(AT,"onCdata");function ET(e){P.ignoreDoctype||(e=e.replace(/^ /,""),P.trim&&(e=e.trim()),Ao("doctype",e))}r(ET,"onDoctype");function Id(e){e.note=e}r(Id,"onError");Nd.exports=function(e,t){var n=gc?ST.parser(!0,{}):n=new xT.Parser("UTF-8"),i={};if(ne=i,P=CT(t),gc?(n.opt={strictEntities:!0},n.onopentag=Cd,n.ontext=Pd,n.oncomment=Ad,n.onclosetag=Ed,n.onerror=Id,n.oncdata=AT,n.ondoctype=ET,n.onprocessinginstruction=PT):(n.on("startElement",Cd),n.on("text",Pd),n.on("comment",Ad),n.on("endElement",Ed),n.on("error",Id)),gc)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[P.elementsKey]){var o=i[P.elementsKey];delete i[P.elementsKey],i[P.elementsKey]=o,delete i.text}return i}});var jd=Ie((eE,Vd)=>{var Ld=na(),IT=mc();function OT(e){var t=Ld.copyOptions(e);return Ld.ensureSpacesExists(t),t}r(OT,"validateOptions");Vd.exports=function(e,t){var n,i,o,a;return n=OT(t),i=IT(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?o=JSON.stringify(i,function(s,c){return s===a?"_":c},n.spaces):o=JSON.stringify(i,null,n.spaces),o.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var hc=Ie((nE,Bd)=>{var ue=na(),FT=ta().isArray,at,st;function NT(e){var t=ue.copyOptions(e);return ue.ensureFlagExists("ignoreDeclaration",t),ue.ensureFlagExists("ignoreInstruction",t),ue.ensureFlagExists("ignoreAttributes",t),ue.ensureFlagExists("ignoreText",t),ue.ensureFlagExists("ignoreComment",t),ue.ensureFlagExists("ignoreCdata",t),ue.ensureFlagExists("ignoreDoctype",t),ue.ensureFlagExists("compact",t),ue.ensureFlagExists("indentText",t),ue.ensureFlagExists("indentCdata",t),ue.ensureFlagExists("indentAttributes",t),ue.ensureFlagExists("indentInstruction",t),ue.ensureFlagExists("fullTagEmptyElement",t),ue.ensureFlagExists("noQuotesForNativeAttributes",t),ue.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),ue.ensureKeyExists("declaration",t),ue.ensureKeyExists("instruction",t),ue.ensureKeyExists("attributes",t),ue.ensureKeyExists("text",t),ue.ensureKeyExists("comment",t),ue.ensureKeyExists("cdata",t),ue.ensureKeyExists("doctype",t),ue.ensureKeyExists("type",t),ue.ensureKeyExists("name",t),ue.ensureKeyExists("elements",t),ue.checkFnExists("doctype",t),ue.checkFnExists("instruction",t),ue.checkFnExists("cdata",t),ue.checkFnExists("comment",t),ue.checkFnExists("text",t),ue.checkFnExists("instructionName",t),ue.checkFnExists("elementName",t),ue.checkFnExists("attributeName",t),ue.checkFnExists("attributeValue",t),ue.checkFnExists("attributes",t),ue.checkFnExists("fullTagEmptyElement",t),t}r(NT,"validateOptions");function zt(e,t,n){return(!n&&e.spaces?`
28
- `:"")+Array(t+1).join(e.spaces)}r(zt,"writeIndentation");function ia(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,st,at));var i,o,a,s,c=[];for(i in e)e.hasOwnProperty(i)&&e[i]!==null&&e[i]!==void 0&&(s=t.noQuotesForNativeAttributes&&typeof e[i]!="string"?"":'"',o=""+e[i],o=o.replace(/"/g,"&quot;"),a="attributeNameFn"in t?t.attributeNameFn(i,o,st,at):i,c.push(t.spaces&&t.indentAttributes?zt(t,n+1,!1):" "),c.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(o,i,st,at):o)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&c.push(zt(t,n,!1)),c.join("")}r(ia,"writeAttributes");function Dd(e,t,n){return at=e,st="xml",t.ignoreDeclaration?"":"<?xml"+ia(e[t.attributesKey],t,n)+"?>"}r(Dd,"writeDeclaration");function Rd(e,t,n){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var o="instructionNameFn"in t?t.instructionNameFn(i,e[i],st,at):i;if(typeof e[i]=="object")return at=e,st=o,"<?"+o+ia(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,st,at)),"<?"+o+(a?" "+a:"")+"?>"}r(Rd,"writeInstruction");function wd(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,st,at):e)+"-->"}r(wd,"writeComment");function $d(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,st,at):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}r($d,"writeCdata");function _d(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,st,at):e)+">"}r(_d,"writeDoctype");function yc(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&amp;/g,"&"),e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in t?t.textFn(e,st,at):e)}r(yc,"writeText");function LT(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n<e.elements.length;++n)switch(e.elements[n][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}r(LT,"hasContent");function VT(e,t,n){at=e,st=e.name;var i=[],o="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+o),e[t.attributesKey]&&i.push(ia(e[t.attributesKey],t,n));var a=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey]["xml:space"]==="preserve";return a||("fullTagEmptyElementFn"in t?a=t.fullTagEmptyElementFn(e.name,e):a=t.fullTagEmptyElement),a?(i.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(i.push(Md(e[t.elementsKey],t,n+1)),at=e,st=e.name),i.push(t.spaces&&LT(e,t)?`
29
- `+Array(n+1).join(t.spaces):""),i.push("</"+o+">")):i.push("/>"),i.join("")}r(VT,"writeElement");function Md(e,t,n,i){return e.reduce(function(o,a){var s=zt(t,n,i&&!o);switch(a.type){case"element":return o+s+VT(a,t,n);case"comment":return o+s+wd(a[t.commentKey],t);case"doctype":return o+s+_d(a[t.doctypeKey],t);case"cdata":return o+(t.indentCdata?s:"")+$d(a[t.cdataKey],t);case"text":return o+(t.indentText?s:"")+yc(a[t.textKey],t);case"instruction":var c={};return c[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],o+(t.indentInstruction?s:"")+Rd(c,t,n)}},"")}r(Md,"writeElements");function kd(e,t,n){var i;for(i in e)if(e.hasOwnProperty(i))switch(i){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}r(kd,"hasContentCompact");function jT(e,t,n,i,o){at=e,st=t;var a="elementNameFn"in n?n.elementNameFn(t,e):t;if(typeof e>"u"||e===null||e==="")return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?"<"+a+"></"+a+">":"<"+a+"/>";var s=[];if(t){if(s.push("<"+a),typeof e!="object")return s.push(">"+yc(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(ia(e[n.attributesKey],n,i));var c=kd(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(c||("fullTagEmptyElementFn"in n?c=n.fullTagEmptyElementFn(t,e):c=n.fullTagEmptyElement),c)s.push(">");else return s.push("/>"),s.join("")}return s.push(Ud(e,n,i+1,!1)),at=e,st=t,t&&s.push((o?zt(n,i,!1):"")+"</"+a+">"),s.join("")}r(jT,"writeElementCompact");function Ud(e,t,n,i){var o,a,s,c=[];for(a in e)if(e.hasOwnProperty(a))for(s=FT(e[a])?e[a]:[e[a]],o=0;o<s.length;++o){switch(a){case t.declarationKey:c.push(Dd(s[o],t,n));break;case t.instructionKey:c.push((t.indentInstruction?zt(t,n,i):"")+Rd(s[o],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:c.push((t.indentText?zt(t,n,i):"")+yc(s[o],t));break;case t.cdataKey:c.push((t.indentCdata?zt(t,n,i):"")+$d(s[o],t));break;case t.doctypeKey:c.push(zt(t,n,i)+_d(s[o],t));break;case t.commentKey:c.push(zt(t,n,i)+wd(s[o],t));break;default:c.push(zt(t,n,i)+jT(s[o],a,t,n,kd(s[o],t)))}i=i&&!c.length}return c.join("")}r(Ud,"writeElementsCompact");Bd.exports=function(e,t){t=NT(t);var n=[];return at=e,st="_root_",t.compact?n.push(Ud(e,t,0,!0)):(e[t.declarationKey]&&n.push(Dd(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(Md(e[t.elementsKey],t,0,!n.length))),n.join("")}});var Hd=Ie((oE,Gd)=>{var DT=hc();Gd.exports=function(e,t){e instanceof Buffer&&(e=e.toString());var n=null;if(typeof e=="string")try{n=JSON.parse(e)}catch{throw new Error("The JSON structure is invalid")}else n=e;return DT(n,t)}});var Eo=Ie((rE,Wd)=>{var RT=mc(),wT=jd(),$T=hc(),_T=Hd();Wd.exports={xml2js:RT,xml2json:wT,js2xml:$T,json2xml:_T}});var zd=Ie(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.convertEntityTypeAnnotations=vt.convertPropertyAnnotations=vt.convertNavigationPropertyAnnotations=vt.convertEntitySetAnnotations=vt.convertGenericAnnotations=vt.convertV2Annotations=void 0;function MT(e,t,n){let i=[];switch(t){case"EntitySet":Jd(e,i);break;case"EntityType":qd(e,i);break;case"NavigationProperty":Qd(e,n,i);break;case"Property":Xd(e,n,i);break;case"Singleton":break;default:break}return Kd(e,n,i),i}r(MT,"convertV2Annotations");vt.convertV2Annotations=MT;function Kd(e,t,n){function i(o,a){o&&n.push(a)}if(r(i,"pushToAnnotations"),i(e["sap:schema-version"]!==void 0,{term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),i(e["sap:searchable"]!==void 0,{term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searchable",value:{type:"Bool",Bool:e["sap:searchable"]==="true"}}]}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:topable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:topable"]==="true"}}),i(e["sap:requires-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiresFilter",value:{type:"Bool",Bool:e["sap:requires-filter"]==="true"}}]}}),i(e["sap:required-in-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiredProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}}),i(e["sap:filter-restricton"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"String",String:e["sap:filter-restricton"]}},{name:"Property",value:{type:"PropertyPath",PropertyPath:t}}]}]}}]}}),i(e["sap:sortable"]==="false",{term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:t}}]}}),i(e["sap:visible"]==="false",{term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),i(e["sap:label"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),i(e["sap:heading"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),i(e["sap:quickinfo"]!==void 0,{term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),i(e["sap:text"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:precision"]!==void 0,{term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"],10)}}),i(e["sap:value-list"]==="fixed-value",{term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="NonNegative",{term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="UpperCase",{term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){let o=[];e["sap:lower-boundary"]&&o.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&o.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:o}})}i(e["sap:field-control"]!==void 0,{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),i(e["sap:applicable-path"]!==void 0,{term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),i(e["sap:minoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"],10)}}),i(e["sap:maxoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"],10)}}),i(e["sap:parameter"]==="mandatory",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),i(e["sap:parameter"]==="optional",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),i(e["sap:attribute-for"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}})}r(Kd,"convertGenericAnnotations");vt.convertGenericAnnotations=Kd;function Jd(e,t){e["sap:creatable"]&&t.push({term:"Org.OData.Capabilities.V1.InsertRestrictions",record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}),e["sap:updatable"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:updatable-path"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Path",Path:e["sap:updatable-path"]}}]}}),e["sap:deletable"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:deletable-path"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Path",Path:e["sap:deletable-path"]}}]}})}r(Jd,"convertEntitySetAnnotations");vt.convertEntitySetAnnotations=Jd;function Qd(e,t,n){e["sap:creatable"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}}]}}}]}}),e["sap:creatable-path"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Path",Path:e["sap:creatable-path"]}}]}}}]}}}]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"NavigationProperty",value:{type:"NavigationPropertyPath",NavigationPropertyPath:t}},{name:"FilterRestrictions",value:{type:"Record",Record:{propertyValues:[{name:"Filterable",value:{type:"Bool",Bool:!1}}]}}}]}]}}]}})}r(Qd,"convertNavigationPropertyAnnotations");vt.convertNavigationPropertyAnnotations=Qd;function Xd(e,t,n){e["sap:creatable"]==="true"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Immutable",value:{type:"Bool",Bool:!0}}),e["sap:creatable"]==="false"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Computed",value:{type:"Bool",Bool:!0}}),e["sap:updatable-path"]&&n.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:updatable-path"]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"NonFilterableProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}})}r(Xd,"convertPropertyAnnotations");vt.convertPropertyAnnotations=Xd;function qd(e,t){e["sap:semantics"]==="aggregate"&&t.push({term:"Org.OData.Aggregation.V1.ApplySupported",record:{propertyValues:[{name:"PropertyRestrictions",value:{type:"Collection",Collection:[]}},{name:"GroupableProperties",value:{type:"Collection",Collection:[]}},{name:"AggregatableProperties",value:{type:"Collection",Collection:[]}}]}})}r(qd,"convertEntityTypeAnnotations");vt.convertEntityTypeAnnotations=qd});var ig=Ie(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.parse=void 0;var kT=Eo(),oe=dc(),Io=zd(),aa=/^Collection\((.+)\)$/;function UT(e){return e.Type!==null&&e.Type!==void 0}r(UT,"isV4NavProperty");function BT(e){return e.map(t=>t._attributes.Name)}r(BT,"getEntityTypeKeys");function eg(e,t,n,i){return e.reduce((o,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:Ui(a._attributes.Type).type};if(a._attributes.MaxLength&&(s.maxLength=parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(s.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(s.scale=parseInt(a._attributes.Scale,10)),s.nullable=a._attributes.Nullable!=="false",a._attributes.DefaultValue)switch(s.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":s.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":s.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=a._attributes.DefaultValue==="true";break;default:s.defaultValue=a._attributes.DefaultValue;break}o.entityProperties.push(s),t.indexOf(s.name)!==-1&&o.entityKeys.push(s);let c=(0,Io.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return c.length>0&&i.push(ri(s.fullyQualifiedName,c)),o},{entityProperties:[],entityKeys:[]})}r(eg,"parseProperties");function GT(e,t,n){return e.reduce((i,o)=>(i.push({sourceTypeName:t,sourceProperty:o._attributes.Property,targetTypeName:n,targetProperty:o._attributes.ReferencedProperty}),i),[])}r(GT,"parseReferentialConstraint");function HT(e,t){return e.reduce((n,i)=>{let o=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(o!==void 0&&a!==void 0){let s=(0,oe.ensureArray)(i.Principal.PropertyRef),c=(0,oe.ensureArray)(i.Dependent.PropertyRef);o.multiplicity!=="1"&&(a=o,o=t.find(l=>l.role===i.Dependent._attributes.Role),c=s,s=(0,oe.ensureArray)(i.Dependent.PropertyRef));for(let l of s){let p=s.indexOf(l);n.push({sourceTypeName:o.type,sourceProperty:l._attributes.Name,targetTypeName:a.type,targetProperty:c[p]._attributes.Name})}}return n},[])}r(HT,"parseV2ReferentialConstraint");function tg(e,t,n,i){return e.reduce((o,a)=>{let s=a._attributes;if(UT(s)){let c=s.Type.match(aa),l=c!==null,p=Yt(c?c[1]:s.Type);o.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:l,targetTypeName:p,referentialConstraint:GT((0,oe.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:c,ToRole:l,FromRole:p}=s;o.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:c,toRole:l,fromRole:p});let u=(0,Io.convertV2Annotations)(s,"NavigationProperty",s.Name);u.length>0&&i.push(ri(`${n}/${s.Name}`,u))}return o},[])}r(tg,"parseNavigationProperties");function WT(e,t,n){return e.map(i=>{let o=`${t}.${i._attributes.Name}`,a=(0,oe.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:o,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}r(WT,"parseAssociationSets");function KT(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,o=(0,oe.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:o,referentialConstraints:HT((0,oe.ensureArray)(n.ReferentialConstraint),o)}})}r(KT,"parseAssociations");function JT(e,t,n){return e.reduce((i,o)=>{let a=o.Key?BT((0,oe.ensureArray)(o.Key.PropertyRef)):[],s=`${n}.${o._attributes.Name}`,{entityProperties:c,entityKeys:l}=eg((0,oe.ensureArray)(o.Property),a,s,t),p=tg((0,oe.ensureArray)(o.NavigationProperty),o,s,t),u={_type:"EntityType",name:o._attributes.Name,fullyQualifiedName:s,keys:l,entityProperties:c,actions:{},navigationProperties:p},f=(0,Io.convertV2Annotations)(o._attributes,"EntityType",o._attributes.Name);return f.length>0&&t.push(ri(u.fullyQualifiedName,f)),i.push(u),i},[])}r(JT,"parseEntityTypes");function QT(e,t,n){return e.reduce((i,o)=>{let a=`${n}.${o._attributes.Name}`,{entityProperties:s}=eg((0,oe.ensureArray)(o.Property),[],a,t),c=tg((0,oe.ensureArray)(o.NavigationProperty),o,a,t);return i.push({_type:"ComplexType",name:o._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:c}),i},[])}r(QT,"parseComplexTypes");function XT(e,t){return e.reduce((n,i)=>{let o=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:o,underlyingType:i._attributes.UnderlyingType}),n},[])}r(XT,"parseTypeDefinitions");function qT(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,oe.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),c={_type:"EntitySet",name:a._attributes.Name,entityTypeName:Yt(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},l=(0,Io.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return l.length>0&&i.push(ri(c.fullyQualifiedName,l)),c})}r(qT,"parseEntitySets");function zT(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,oe.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),c={_type:"Singleton",name:a._attributes.Name,entityTypeName:Yt(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},l=(0,Io.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return l.length>0&&i.push(ri(c.fullyQualifiedName,l)),c})}r(zT,"parseSingletons");function Yd(e,t,n){return e.map(i=>{let o=(0,oe.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=o.map(l=>Ui(l._attributes.Type).type).join(","):s=a?Ui(o[0]._attributes.Type).type:"";let c=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?Ui(o[0]._attributes.Type).type:"",fullyQualifiedName:c,isFunction:n,parameters:o.map(l=>{let{isCollection:p,type:u}=Ui(l._attributes.Type),f={_type:"ActionParameter",fullyQualifiedName:`${c}/${l._attributes.Name}`,name:`${l._attributes.Name}`,type:u,isCollection:p};return l._attributes.MaxLength&&(f.maxLength=parseInt(l._attributes.MaxLength,10)),l._attributes.Precision&&(f.precision=parseInt(l._attributes.Precision,10)),l._attributes.Scale&&(f.scale=parseInt(l._attributes.Scale,10)),f.nullable=l._attributes.Nullable!=="false",f}),returnType:i.ReturnType?Ui(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(aa)!==null:!1}})}r(Yd,"parseActions");function YT(e,t,n){return e.map(i=>{let o=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:o?o.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,oe.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${a}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:"",returnCollection:i._attributes.ReturnType?i._attributes.ReturnType.match(aa)!==null:!1}})}r(YT,"parseV2FunctionImport");function Zd(e,t){return e.map(n=>{var i;let o=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:Yt(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Yt(o)}})}r(Zd,"parseActionImports");function ZT(e,t,n){return e.map(i=>{let{Annotation:o,_attributes:a,...s}=i,c={};if(a){let l=Object.keys(a).find(u=>u!=="Property");c.name=a.Property;let p=`${t}/${c.name}`;if(s&&Object.keys(s).length>0?c.value=ra(s,p,n,!1):l&&(c.value=ng({[l]:a[l]},p,n)),i.Annotation){let u=ca((0,oe.ensureArray)(i.Annotation),p,n);u&&u.length>0&&n.push(ri(p,u))}}return c})}r(ZT,"parsePropertyValues");function sa(e,t,n){let i=ca((0,oe.ensureArray)(e.Annotation),t,n),o={type:e._attributes?Yt(e._attributes.Type):void 0,propertyValues:ZT((0,oe.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(o.annotations=i),o}r(sa,"parseRecord");function yn(e,t){return e[t]!=null}r(yn,"isExpressionOfType");function oa(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}r(oa,"parseModelPath");function Tc(e,t,n){if(yn(e,"Record")){let i=(0,oe.ensureArray)(e.Record).map((o,a)=>sa(o,t+"/"+a,n));return i.type="Record",i}else if(yn(e,"PropertyPath")){let i=(0,oe.ensureArray)(e.PropertyPath).map(o=>oa(o,"PropertyPath"));return i.type="PropertyPath",i}else if(yn(e,"NavigationPropertyPath")){let i=(0,oe.ensureArray)(e.NavigationPropertyPath).map(o=>oa(o,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(yn(e,"String")){let i=(0,oe.ensureArray)(e.String).map(o=>o._text);return i.type="String",i}else if(yn(e,"AnnotationPath")){let i=(0,oe.ensureArray)(e.AnnotationPath).map(o=>oa(o,"AnnotationPath"));return i.type="AnnotationPath",i}else if(yn(e,"Path")){let i=(0,oe.ensureArray)(e.Path).map(o=>oa(o,"Path"));return i.type="Path",i}else if(yn(e,"If")){let i=(0,oe.ensureArray)(e.If).map(o=>o._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}r(Tc,"parseCollection");function Ue(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(o=>ra({[i]:o},"",[],!0))):n.push(ra({[i]:e[i]},"",[],!0))}),n}r(Ue,"parseChildren");function ng(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let o=i[0];switch(o){case"String":return{type:"String",String:e[o]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Double":return{type:"Double",Double:parseFloat(e.Double)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[o]};case"Collection":return{type:"Collection",Collection:Tc(e.Collection,t,n)};case"Record":return{type:"Record",Record:sa(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Ue(e.Apply),$Function:Ue(e.Function)};case"And":return{type:"And",$And:Ue(e.And)};case"Or":return{type:"Or",$Or:Ue(e.Or)};case"Eq":return{type:"Eq",$Eq:Ue(e.Eq)};case"Gt":return{type:"Gt",$Gt:Ue(e.Gt)};case"Ge":return{type:"Ge",$Ge:Ue(e.Ge)};case"Lt":return{type:"Lt",$Lt:Ue(e.Lt)};case"Le":return{type:"Le",$Le:Ue(e.Le)};case"If":return{type:"If",$If:Ue(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+o),{type:"Unknown"}}}r(ng,"parseInlineExpression");function ra(e,t,n,i){let o=Object.keys(e);if(o.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=o[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:Ue(e.LabeledElement)[0]};case"Bool":return i?e.Bool._text==="true":{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return i?parseInt(e.Int._text,10):{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return i?parseFloat(e.Decimal._text):{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Double":return i?parseFloat(e.Double._text):{type:"Double",Decimal:parseFloat(e.Double._text)};case"Path":return{type:"Path",Path:e.Path._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath._text};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath._text};case"EnumMember":return{type:"EnumMember",EnumMember:e[a]._text};case"Collection":return{type:"Collection",Collection:Tc(e.Collection,t,n)};case"Record":return{type:"Record",Record:sa(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Ue(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:Ue(e.And)};case"Ne":return{type:"Ne",$Ne:Ue(e.Ne)};case"Not":return{type:"Not",$Not:Ue(e.Not)[0]};case"Or":return{type:"Or",$Or:Ue(e.Or)};case"Eq":return{type:"Eq",$Eq:Ue(e.Eq)};case"If":return{type:"If",$If:Ue(e.If)};case"Gt":return{type:"Gt",$Gt:Ue(e.Gt)};case"Ge":return{type:"Ge",$Ge:Ue(e.Ge)};case"Lt":return{type:"Lt",$Lt:Ue(e.Lt)};case"Le":return{type:"Le",$Le:Ue(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}r(ra,"parseExpression");function ev(e,t,n){let{Term:i,Qualifier:o,...a}=e._attributes,s={term:Yt(i),qualifier:o},c=`${t}@${Yt(i)}`;if(o!==""&&o!==void 0&&(c+=`#${o}`),a&&Object.keys(a).length>0&&(s.value=ng(a,c,n)),e.Annotation){let p=ca((0,oe.ensureArray)(e.Annotation),c,n);p&&p.length>0&&(s.annotations=p)}let l=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return yn(e,"Record")?s.record=sa(e.Record,c,n):yn(e,"Collection")?s.collection=Tc(e.Collection,c,n):l.length===1?s.value=ra({[l[0]]:e[l[0]]},c,n,!1):l.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}r(ev,"parseAnnotation");function ca(e,t,n){return e.map(i=>ev(i,t,n))}r(ca,"parseAnnotations");function ri(e,t){return{target:e,annotations:t}}r(ri,"createAnnotationList");function tv(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(ri(Yt(n._attributes.Target),ca((0,oe.ensureArray)(n.Annotation),n._attributes.Target,t)))})}r(tv,"parseAnnotationLists");function nv(e,t,n){let i=e._attributes.Namespace,o=[],a=JT((0,oe.ensureArray)(e.EntityType),o,i),s=QT((0,oe.ensureArray)(e.ComplexType),o,i),c=XT((0,oe.ensureArray)(e.TypeDefinition),i),l=[],p=[],u=[],f={_type:"EntityContainer",fullyQualifiedName:""},d=[],b=[];if(e.EntityContainer)if(l=qT((0,oe.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,o),p=zT((0,oe.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,o),u=WT((0,oe.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),f={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")d=d.concat(YT((0,oe.ensureArray)(e.EntityContainer.FunctionImport),l,f.fullyQualifiedName));else if(t==="4.0")b=b.concat(Zd((0,oe.ensureArray)(e.EntityContainer.FunctionImport),f.fullyQualifiedName)),b=b.concat(Zd((0,oe.ensureArray)(e.EntityContainer.ActionImport),f.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(d=d.concat(Yd((0,oe.ensureArray)(e.Action),i,!1)),d=d.concat(Yd((0,oe.ensureArray)(e.Function),i,!0)));let x=KT((0,oe.ensureArray)(e.Association),i);tv((0,oe.ensureArray)(e.Annotations),o);let I={};return I[n]=o,{associations:x,associationSets:u,annotations:I,entityContainer:f,namespace:i,entitySets:l,singletons:p,complexTypes:s,typeDefinitions:c,actions:d,actionImports:b,entityTypes:a}}r(nv,"parseSchema");function iv(e){return e.reduce((t,n)=>((0,oe.ensureArray)(n["edmx:Include"]).forEach(o=>{t.push({uri:n._attributes.Uri,alias:o._attributes.Alias,namespace:o._attributes.Namespace})}),t),[])}r(iv,"parseReferences");var bc={};function Ui(e){let t=e.match(aa),n=t?t[1]:e,i=Yt(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}r(Ui,"unaliasType");function Yt(e){var t;if(!e)return e;let n=["@","/","("],i=[],o=0;for(let a=0,s=!0;a<e.length;a++){let c=e[a];if(s&&c==="."){let l=e.substring(o,a);i.push((t=bc[l])!==null&&t!==void 0?t:l),o=a,s=!1}n.includes(c)&&(i.push(e.substring(o,a+1)),o=a+1,s=!0)}return i.push(e.substring(o)),i.join("")}r(Yt,"unalias");function ov(e){let t=e.reduce((b,x)=>b.concat(x.associations),[]),n=e.reduce((b,x)=>b.concat(x.associationSets),[]),i=e.reduce((b,x)=>b.concat(x.entitySets),[]),o=e.reduce((b,x)=>b.concat(x.singletons),[]),a=e.reduce((b,x)=>b.concat(x.entityTypes),[]),s=e.reduce((b,x)=>b.concat(x.actions),[]),c=e.reduce((b,x)=>b.concat(x.actionImports),[]),l=e.reduce((b,x)=>b.concat(x.complexTypes),[]),p=e.reduce((b,x)=>b.concat(x.typeDefinitions),[]),u={};e.forEach(b=>{u=Object.assign(u,b.annotations)});let f,d;return e.forEach(b=>{b.entityContainer&&Object.keys(b.entityContainer).length>0&&(f=b.entityContainer,d=b.namespace)}),i.forEach(b=>{let x=a.find(I=>I.fullyQualifiedName===b.entityTypeName);x==null||x.navigationProperties.forEach(I=>{let O=I,$=n.find(re=>re.association===O.relationship);if($){let re=$.associationEnd.find(q=>q.entitySet!==b.fullyQualifiedName);re&&(b.navigationPropertyBinding[I.name]=re.entitySet)}})}),a.forEach(b=>{b.navigationProperties.forEach(x=>{let I=x,O=t.find($=>$.fullyQualifiedName===I.relationship);O&&O.referentialConstraints&&O.referentialConstraints.length>0&&(O.referentialConstraints[0].sourceTypeName===b.fullyQualifiedName?I.referentialConstraint=O.referentialConstraints:I.referentialConstraint=O.referentialConstraints.map($=>({sourceTypeName:$.targetTypeName,sourceProperty:$.targetProperty,targetTypeName:$.sourceTypeName,targetProperty:$.sourceProperty})))})}),{associations:t,associationSets:n,annotations:u,entityContainer:f,namespace:d,entitySets:i,singletons:o,complexTypes:l,typeDefinitions:p,actions:s,actionImports:c,entityTypes:a}}r(ov,"mergeSchemas");function rv(e,t){bc=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{bc[n._attributes.Alias]=n._attributes.Namespace})}r(rv,"createAliasMap");function av(e,t="serviceFile"){let n=(0,kT.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,o=(0,oe.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=iv((0,oe.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));rv(a,o);let s=o.map(l=>nv(l,i,t));return new oe.RawMetadataInstance(t,i,ov(s),a)}r(av,"parse");la.parse=av});var og=Ie(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.parse=Bi.merge=void 0;var sv=Td();Object.defineProperty(Bi,"merge",{enumerable:!0,get:r(function(){return sv.merge},"get")});var cv=ig();Object.defineProperty(Bi,"parse",{enumerable:!0,get:r(function(){return cv.parse},"get")})});var xg=Ie(()=>{var Sg;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:c(),i=o(e);typeof n.Reflect<"u"&&(i=o(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function o(l,p){return function(u,f){Object.defineProperty(l,u,{configurable:!0,writable:!0,value:f}),p&&p(u,f)}}r(o,"makeExporter");function a(){try{return Function("return this;")()}catch{}}r(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}r(s,"indirectEvalThis");function c(){return a()||s()}r(c,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",a=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",l={__proto__:[]}instanceof Array,p=!c&&!l,u={create:c?function(){return Ds(Object.create(null))}:l?function(){return Ds({__proto__:null})}:function(){return Ds({})},has:p?function(v,C){return i.call(v,C)}:function(v,C){return C in v},get:p?function(v,C){return i.call(v,C)?v[C]:void 0}:function(v,C){return v[C]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:eh(),b=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:th(),x=typeof WeakMap=="function"?WeakMap:nh(),I=o?Symbol.for("@reflect-metadata:registry"):void 0,O=zy(),$=Yy(O);function re(v,C,A,D){if(Z(A)){if(!ke(v))throw new TypeError;if(!nt(C))throw new TypeError;return Vn(v,C)}else{if(!ke(v))throw new TypeError;if(!$e(C))throw new TypeError;if(!$e(D)&&!Z(D)&&!un(D))throw new TypeError;return un(D)&&(D=void 0),A=se(A),Vi(v,C,A,D)}}r(re,"decorate"),t("decorate",re);function q(v,C){function A(D,X){if(!$e(D))throw new TypeError;if(!Z(X)&&!rt(X))throw new TypeError;Je(v,C,D,X)}return r(A,"decorator"),A}r(q,"metadata"),t("metadata",q);function te(v,C,A,D){if(!$e(A))throw new TypeError;return Z(D)||(D=se(D)),Je(v,C,A,D)}r(te,"defineMetadata"),t("defineMetadata",te);function J(v,C,A){if(!$e(C))throw new TypeError;return Z(A)||(A=se(A)),ht(v,C,A)}r(J,"hasMetadata"),t("hasMetadata",J);function ce(v,C,A){if(!$e(C))throw new TypeError;return Z(A)||(A=se(A)),jt(v,C,A)}r(ce,"hasOwnMetadata"),t("hasOwnMetadata",ce);function Pe(v,C,A){if(!$e(C))throw new TypeError;return Z(A)||(A=se(A)),ye(v,C,A)}r(Pe,"getMetadata"),t("getMetadata",Pe);function S(v,C,A){if(!$e(C))throw new TypeError;return Z(A)||(A=se(A)),ii(v,C,A)}r(S,"getOwnMetadata"),t("getOwnMetadata",S);function pn(v,C){if(!$e(v))throw new TypeError;return Z(C)||(C=se(C)),bt(v,C)}r(pn,"getMetadataKeys"),t("getMetadataKeys",pn);function Qt(v,C){if(!$e(v))throw new TypeError;return Z(C)||(C=se(C)),ot(v,C)}r(Qt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",Qt);function Ee(v,C,A){if(!$e(C))throw new TypeError;if(Z(A)||(A=se(A)),!$e(C))throw new TypeError;Z(A)||(A=se(A));var D=bo(C,A,!1);return Z(D)?!1:D.OrdinaryDeleteMetadata(v,C,A)}r(Ee,"deleteMetadata"),t("deleteMetadata",Ee);function Vn(v,C){for(var A=v.length-1;A>=0;--A){var D=v[A],X=D(C);if(!Z(X)&&!un(X)){if(!nt(X))throw new TypeError;C=X}}return C}r(Vn,"DecorateConstructor");function Vi(v,C,A,D){for(var X=v.length-1;X>=0;--X){var Ge=v[X],Xe=Ge(C,A,D);if(!Z(Xe)&&!un(Xe)){if(!$e(Xe))throw new TypeError;D=Xe}}return D}r(Vi,"DecorateProperty");function ht(v,C,A){var D=jt(v,C,A);if(D)return!0;var X=Di(C);return un(X)?!1:ht(v,X,A)}r(ht,"OrdinaryHasMetadata");function jt(v,C,A){var D=bo(C,A,!1);return Z(D)?!1:E(D.OrdinaryHasOwnMetadata(v,C,A))}r(jt,"OrdinaryHasOwnMetadata");function ye(v,C,A){var D=jt(v,C,A);if(D)return ii(v,C,A);var X=Di(C);if(!un(X))return ye(v,X,A)}r(ye,"OrdinaryGetMetadata");function ii(v,C,A){var D=bo(C,A,!1);if(!Z(D))return D.OrdinaryGetOwnMetadata(v,C,A)}r(ii,"OrdinaryGetOwnMetadata");function Je(v,C,A,D){var X=bo(A,D,!0);X.OrdinaryDefineOwnMetadata(v,C,A,D)}r(Je,"OrdinaryDefineOwnMetadata");function bt(v,C){var A=ot(v,C),D=Di(v);if(D===null)return A;var X=bt(D,C);if(X.length<=0)return A;if(A.length<=0)return X;for(var Ge=new b,Xe=[],fe=0,_=A;fe<_.length;fe++){var B=_[fe],G=Ge.has(B);G||(Ge.add(B),Xe.push(B))}for(var K=0,me=X;K<me.length;K++){var B=me[K],G=Ge.has(B);G||(Ge.add(B),Xe.push(B))}return Xe}r(bt,"OrdinaryMetadataKeys");function ot(v,C){var A=bo(v,C,!1);return A?A.OrdinaryOwnMetadataKeys(v,C):[]}r(ot,"OrdinaryOwnMetadataKeys");function fn(v){if(v===null)return 1;switch(typeof v){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return v===null?1:6;default:return 6}}r(fn,"Type");function Z(v){return v===void 0}r(Z,"IsUndefined");function un(v){return v===null}r(un,"IsNull");function Dr(v){return typeof v=="symbol"}r(Dr,"IsSymbol");function $e(v){return typeof v=="object"?v!==null:typeof v=="function"}r($e,"IsObject");function h(v,C){switch(fn(v)){case 0:return v;case 1:return v;case 2:return v;case 3:return v;case 4:return v;case 5:return v}var A=C===3?"string":C===5?"number":"default",D=Qe(v,a);if(D!==void 0){var X=D.call(v,A);if($e(X))throw new TypeError;return X}return g(v,A==="default"?"number":A)}r(h,"ToPrimitive");function g(v,C){if(C==="string"){var A=v.toString;if(Le(A)){var D=A.call(v);if(!$e(D))return D}var X=v.valueOf;if(Le(X)){var D=X.call(v);if(!$e(D))return D}}else{var X=v.valueOf;if(Le(X)){var D=X.call(v);if(!$e(D))return D}var Ge=v.toString;if(Le(Ge)){var D=Ge.call(v);if(!$e(D))return D}}throw new TypeError}r(g,"OrdinaryToPrimitive");function E(v){return!!v}r(E,"ToBoolean");function T(v){return""+v}r(T,"ToString");function se(v){var C=h(v,3);return Dr(C)?C:T(C)}r(se,"ToPropertyKey");function ke(v){return Array.isArray?Array.isArray(v):v instanceof Object?v instanceof Array:Object.prototype.toString.call(v)==="[object Array]"}r(ke,"IsArray");function Le(v){return typeof v=="function"}r(Le,"IsCallable");function nt(v){return typeof v=="function"}r(nt,"IsConstructor");function rt(v){switch(fn(v)){case 3:return!0;case 4:return!0;default:return!1}}r(rt,"IsPropertyKey");function Xt(v,C){return v===C||v!==v&&C!==C}r(Xt,"SameValueZero");function Qe(v,C){var A=v[C];if(A!=null){if(!Le(A))throw new TypeError;return A}}r(Qe,"GetMethod");function Dt(v){var C=Qe(v,s);if(!Le(C))throw new TypeError;var A=C.call(v);if(!$e(A))throw new TypeError;return A}r(Dt,"GetIterator");function Rr(v){return v.value}r(Rr,"IteratorValue");function ho(v){var C=v.next();return C.done?!1:C}r(ho,"IteratorStep");function ji(v){var C=v.return;C&&C.call(v)}r(ji,"IteratorClose");function Di(v){var C=Object.getPrototypeOf(v);if(typeof v!="function"||v===f||C!==f)return C;var A=v.prototype,D=A&&Object.getPrototypeOf(A);if(D==null||D===Object.prototype)return C;var X=D.constructor;return typeof X!="function"||X===v?C:X}r(Di,"OrdinaryGetPrototypeOf");function qy(){var v;!Z(I)&&typeof n.Reflect<"u"&&!(I in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(v=Zy(n.Reflect));var C,A,D,X=new x,Ge={registerProvider:Xe,getProvider:_,setProvider:G};return Ge;function Xe(K){if(!Object.isExtensible(Ge))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case v===K:break;case Z(C):C=K;break;case C===K:break;case Z(A):A=K;break;case A===K:break;default:D===void 0&&(D=new b),D.add(K);break}}function fe(K,me){if(!Z(C)){if(C.isProviderFor(K,me))return C;if(!Z(A)){if(A.isProviderFor(K,me))return C;if(!Z(D))for(var De=Dt(D);;){var He=ho(De);if(!He)return;var Ut=Rr(He);if(Ut.isProviderFor(K,me))return ji(De),Ut}}}if(!Z(v)&&v.isProviderFor(K,me))return v}function _(K,me){var De=X.get(K),He;return Z(De)||(He=De.get(me)),Z(He)&&(He=fe(K,me),Z(He)||(Z(De)&&(De=new d,X.set(K,De)),De.set(me,He))),He}function B(K){if(Z(K))throw new TypeError;return C===K||A===K||!Z(D)&&D.has(K)}function G(K,me,De){if(!B(De))throw new Error("Metadata provider not registered.");var He=_(K,me);if(He!==De){if(!Z(He))return!1;var Ut=X.get(K);Z(Ut)&&(Ut=new d,X.set(K,Ut)),Ut.set(me,De)}return!0}}r(qy,"CreateMetadataRegistry");function zy(){var v;return!Z(I)&&$e(n.Reflect)&&Object.isExtensible(n.Reflect)&&(v=n.Reflect[I]),Z(v)&&(v=qy()),!Z(I)&&$e(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,I,{enumerable:!1,configurable:!1,writable:!1,value:v}),v}r(zy,"GetOrCreateMetadataRegistry");function Yy(v){var C=new x,A={isProviderFor:r(function(B,G){var K=C.get(B);return Z(K)?!1:K.has(G)},"isProviderFor"),OrdinaryDefineOwnMetadata:Xe,OrdinaryHasOwnMetadata:X,OrdinaryGetOwnMetadata:Ge,OrdinaryOwnMetadataKeys:fe,OrdinaryDeleteMetadata:_};return O.registerProvider(A),A;function D(B,G,K){var me=C.get(B),De=!1;if(Z(me)){if(!K)return;me=new d,C.set(B,me),De=!0}var He=me.get(G);if(Z(He)){if(!K)return;if(He=new d,me.set(G,He),!v.setProvider(B,G,A))throw me.delete(G),De&&C.delete(B),new Error("Wrong provider for target.")}return He}r(D,"GetOrCreateMetadataMap");function X(B,G,K){var me=D(G,K,!1);return Z(me)?!1:E(me.has(B))}r(X,"OrdinaryHasOwnMetadata");function Ge(B,G,K){var me=D(G,K,!1);if(!Z(me))return me.get(B)}r(Ge,"OrdinaryGetOwnMetadata");function Xe(B,G,K,me){var De=D(K,me,!0);De.set(B,G)}r(Xe,"OrdinaryDefineOwnMetadata");function fe(B,G){var K=[],me=D(B,G,!1);if(Z(me))return K;for(var De=me.keys(),He=Dt(De),Ut=0;;){var Jp=ho(He);if(!Jp)return K.length=Ut,K;var ih=Rr(Jp);try{K[Ut]=ih}catch(oh){try{ji(He)}finally{throw oh}}Ut++}}r(fe,"OrdinaryOwnMetadataKeys");function _(B,G,K){var me=D(G,K,!1);if(Z(me)||!me.delete(B))return!1;if(me.size===0){var De=C.get(G);Z(De)||(De.delete(K),De.size===0&&C.delete(De))}return!0}r(_,"OrdinaryDeleteMetadata")}r(Yy,"CreateMetadataProvider");function Zy(v){var C=v.defineMetadata,A=v.hasOwnMetadata,D=v.getOwnMetadata,X=v.getOwnMetadataKeys,Ge=v.deleteMetadata,Xe=new x,fe={isProviderFor:r(function(_,B){var G=Xe.get(_);return!Z(G)&&G.has(B)?!0:X(_,B).length?(Z(G)&&(G=new b,Xe.set(_,G)),G.add(B),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:C,OrdinaryHasOwnMetadata:A,OrdinaryGetOwnMetadata:D,OrdinaryOwnMetadataKeys:X,OrdinaryDeleteMetadata:Ge};return fe}r(Zy,"CreateFallbackProvider");function bo(v,C,A){var D=O.getProvider(v,C);if(!Z(D))return D;if(A){if(O.setProvider(v,C,$))return $;throw new Error("Illegal state.")}}r(bo,"GetMetadataProvider");function eh(){var v={},C=[],A=function(){function fe(_,B,G){this._index=0,this._keys=_,this._values=B,this._selector=G}return r(fe,"MapIterator"),fe.prototype["@@iterator"]=function(){return this},fe.prototype[s]=function(){return this},fe.prototype.next=function(){var _=this._index;if(_>=0&&_<this._keys.length){var B=this._selector(this._keys[_],this._values[_]);return _+1>=this._keys.length?(this._index=-1,this._keys=C,this._values=C):this._index++,{value:B,done:!1}}return{value:void 0,done:!0}},fe.prototype.throw=function(_){throw this._index>=0&&(this._index=-1,this._keys=C,this._values=C),_},fe.prototype.return=function(_){return this._index>=0&&(this._index=-1,this._keys=C,this._values=C),{value:_,done:!0}},fe}(),D=function(){function fe(){this._keys=[],this._values=[],this._cacheKey=v,this._cacheIndex=-2}return r(fe,"Map"),Object.defineProperty(fe.prototype,"size",{get:r(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),fe.prototype.has=function(_){return this._find(_,!1)>=0},fe.prototype.get=function(_){var B=this._find(_,!1);return B>=0?this._values[B]:void 0},fe.prototype.set=function(_,B){var G=this._find(_,!0);return this._values[G]=B,this},fe.prototype.delete=function(_){var B=this._find(_,!1);if(B>=0){for(var G=this._keys.length,K=B+1;K<G;K++)this._keys[K-1]=this._keys[K],this._values[K-1]=this._values[K];return this._keys.length--,this._values.length--,Xt(_,this._cacheKey)&&(this._cacheKey=v,this._cacheIndex=-2),!0}return!1},fe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=v,this._cacheIndex=-2},fe.prototype.keys=function(){return new A(this._keys,this._values,X)},fe.prototype.values=function(){return new A(this._keys,this._values,Ge)},fe.prototype.entries=function(){return new A(this._keys,this._values,Xe)},fe.prototype["@@iterator"]=function(){return this.entries()},fe.prototype[s]=function(){return this.entries()},fe.prototype._find=function(_,B){if(!Xt(this._cacheKey,_)){this._cacheIndex=-1;for(var G=0;G<this._keys.length;G++)if(Xt(this._keys[G],_)){this._cacheIndex=G;break}}return this._cacheIndex<0&&B&&(this._cacheIndex=this._keys.length,this._keys.push(_),this._values.push(void 0)),this._cacheIndex},fe}();return D;function X(fe,_){return fe}function Ge(fe,_){return _}function Xe(fe,_){return[fe,_]}}r(eh,"CreateMapPolyfill");function th(){var v=function(){function C(){this._map=new d}return r(C,"Set"),Object.defineProperty(C.prototype,"size",{get:r(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),C.prototype.has=function(A){return this._map.has(A)},C.prototype.add=function(A){return this._map.set(A,A),this},C.prototype.delete=function(A){return this._map.delete(A)},C.prototype.clear=function(){this._map.clear()},C.prototype.keys=function(){return this._map.keys()},C.prototype.values=function(){return this._map.keys()},C.prototype.entries=function(){return this._map.entries()},C.prototype["@@iterator"]=function(){return this.keys()},C.prototype[s]=function(){return this.keys()},C}();return v}r(th,"CreateSetPolyfill");function nh(){var v=16,C=u.create(),A=D();return function(){function _(){this._key=D()}return r(_,"WeakMap"),_.prototype.has=function(B){var G=X(B,!1);return G!==void 0?u.has(G,this._key):!1},_.prototype.get=function(B){var G=X(B,!1);return G!==void 0?u.get(G,this._key):void 0},_.prototype.set=function(B,G){var K=X(B,!0);return K[this._key]=G,this},_.prototype.delete=function(B){var G=X(B,!1);return G!==void 0?delete G[this._key]:!1},_.prototype.clear=function(){this._key=D()},_}();function D(){var _;do _="@@WeakMap@@"+fe();while(u.has(C,_));return C[_]=!0,_}function X(_,B){if(!i.call(_,A)){if(!B)return;Object.defineProperty(_,A,{value:u.create()})}return _[A]}function Ge(_,B){for(var G=0;G<B;++G)_[G]=Math.random()*255|0;return _}function Xe(_){if(typeof Uint8Array=="function"){var B=new Uint8Array(_);return typeof crypto<"u"?crypto.getRandomValues(B):typeof msCrypto<"u"?msCrypto.getRandomValues(B):Ge(B,_),B}return Ge(new Array(_),_)}function fe(){var _=Xe(v);_[6]=_[6]&79|64,_[8]=_[8]&191|128;for(var B="",G=0;G<v;++G){var K=_[G];(G===4||G===6||G===8)&&(B+="-"),K<16&&(B+="0"),B+=K.toString(16).toLowerCase()}return B}}r(nh,"CreateWeakMapPolyfill");function Ds(v){return v.__=void 0,delete v.__,v}r(Ds,"MakeDictionary")})})(Sg||(Sg={}))});var Ng=Ie((IE,Fg)=>{var Fv=0,Og="changeUtils: ";function Nv(){return"id-"+new Date().valueOf()+"-"+Fv++}r(Nv,"uid");function Lv(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}r(Lv,"appendComponentToReference");function Vv(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return Lv(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}r(Vv,"getFlexReference");function jv(e){let t=e["sap.app"];if(!t||!t.applicationVersion||!t.applicationVersion.version)throw Error("app version could not be determined");return t.applicationVersion.version}r(jv,"getAppVersion");function Dv(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}r(Dv,"getProjectId");function Ig(e){return JSON.stringify({fileName:e.id||Nv().replace(/-/g,"_")+"_"+e.type,fileType:"change",changeType:e.type,moduleName:"",reference:e.reference,packageName:"",content:e.content||{},selector:{id:e.controlId,idIsLocal:!1,type:e.controlType},layer:e.isCustomer?"CUSTOMER_BASE":"VENDOR",texts:{},namespace:"apps/"+e.reference.replace(".Component","")+"/changes/",projectId:e.projectId,creation:e.creation||new Date().valueOf(),originalLanguage:"",support:{generator:Og+e.creatingTool,service:"",user:"",sapui5Version:e.sapui5Version,sourceChangeFileName:"",compositeCommand:""},oDataInformation:{},dependentSelector:{},validAppVersions:{from:e.appVersion,to:e.appVersion,creation:e.appVersion},jsOnly:!1,variantReference:"",appDescriptorChange:!1})}r(Ig,"createString");Fg.exports={parse:r(function(e){let t=JSON.parse(e);if(!t.fileName||!t.changeType||!t.selector||!t.reference||!t.creation||!t.content||!t.layer||!t.support)throw Error("Parsed object does not contain all required parameters");return{id:t.fileName,reference:t.reference,appVersion:t.validAppVersions?t.validAppVersions.creation:"",creation:t.creation,projectId:t.projectId,type:t.changeType,controlId:t.selector.id,controlType:t.selector.type,isCustomer:t.layer==="CUSTOMER_BASE",creatingTool:t.support.generator.replace(Og,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:r(function(e,t){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool)throw Error("not all property parameters of the change were provided");if(!t)throw Error("no manifest was provided");return e.reference=Vv(t),e.appVersion=jv(t),e.projectId=Dv(t,e.reference),Ig(e)},"createChangeString"),toString:r(function(e){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool||!(e.reference&&e.appVersion))throw Error("not all parameters of the change were provided");return Ig(e)},"toString")}});var Vg=Ie((FE,Lg)=>{Lg.exports={change:Ng()}});var Am=Ie(_t=>{"use strict";var aS=/[|\\{}()[\]^$+*?.]/g,sS=Object.prototype.hasOwnProperty,Yc=r(function(e,t){return sS.apply(e,[t])},"hasOwn");_t.escapeRegExpChars=function(e){return e?String(e).replace(aS,"\\$&"):""};var cS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},lS=/[&<>'"]/g;function pS(e){return cS[e]||e}r(pS,"encode_char");var fS=`var _ENCODE_HTML_RULES = {
25
+ Actual: `+h.attribValue);else{var se=h.tag,ke=h.tags[h.tags.length-1]||h;se.ns===ke.ns&&(se.ns=Object.create(ke.ns)),se.ns[T]=h.attribValue}h.attribList.push([h.attribName,h.attribValue])}else h.tag.attributes[h.attribName]=h.attribValue,Ee(h,"onattribute",{name:h.attribName,value:h.attribValue});h.attribName=h.attribValue=""}r(bt,"attrib");function ot(h,g){if(h.opt.xmlns){var E=h.tag,T=Je(h.tagName);E.prefix=T.prefix,E.local=T.local,E.uri=E.ns[T.prefix]||"",E.prefix&&!E.uri&&(ye(h,"Unbound namespace prefix: "+JSON.stringify(h.tagName)),E.uri=T.prefix);var se=h.tags[h.tags.length-1]||h;E.ns&&se.ns!==E.ns&&Object.keys(E.ns).forEach(function(wi){Ee(h,"onopennamespace",{prefix:wi,uri:E.ns[wi]})});for(var ke=0,Le=h.attribList.length;ke<Le;ke++){var nt=h.attribList[ke],rt=nt[0],qt=nt[1],Qe=Je(rt,!0),Dt=Qe.prefix,wr=Qe.local,bo=Dt===""?"":E.ns[Dt]||"",Ri={name:rt,value:qt,prefix:Dt,local:wr,uri:bo};Dt&&Dt!=="xmlns"&&!bo&&(ye(h,"Unbound namespace prefix: "+JSON.stringify(Dt)),Ri.uri=Dt),h.tag.attributes[rt]=Ri,Ee(h,"onattribute",Ri)}h.attribList.length=0}h.tag.isSelfClosing=!!g,h.sawRoot=!0,h.tags.push(h.tag),Ee(h,"onopentag",h.tag),g||(!h.noscript&&h.tagName.toLowerCase()==="script"?h.state=S.SCRIPT:h.state=S.TEXT,h.tag=null,h.tagName=""),h.attribName=h.attribValue="",h.attribList.length=0}r(ot,"openTag");function un(h){if(!h.tagName){ye(h,"Weird empty close tag."),h.textNode+="</>",h.state=S.TEXT;return}if(h.script){if(h.tagName!=="script"){h.script+="</"+h.tagName+">",h.tagName="",h.state=S.SCRIPT;return}Ee(h,"onscript",h.script),h.script=""}var g=h.tags.length,E=h.tagName;h.strict||(E=E[h.looseCase]());for(var T=E;g--;){var se=h.tags[g];if(se.name!==T)ye(h,"Unexpected close tag");else break}if(g<0){ye(h,"Unmatched closing tag: "+h.tagName),h.textNode+="</"+h.tagName+">",h.state=S.TEXT;return}h.tagName=E;for(var ke=h.tags.length;ke-- >g;){var Le=h.tag=h.tags.pop();h.tagName=h.tag.name,Ee(h,"onclosetag",h.tagName);var nt={};for(var rt in Le.ns)nt[rt]=Le.ns[rt];var qt=h.tags[h.tags.length-1]||h;h.opt.xmlns&&Le.ns!==qt.ns&&Object.keys(Le.ns).forEach(function(Qe){var Dt=Le.ns[Qe];Ee(h,"onclosenamespace",{prefix:Qe,uri:Dt})})}g===0&&(h.closedRoot=!0),h.tagName=h.attribValue=h.attribName="",h.attribList.length=0,h.state=S.TEXT}r(un,"closeTag");function ee(h){var g=h.entity,E=g.toLowerCase(),T,se="";return h.ENTITIES[g]?h.ENTITIES[g]:h.ENTITIES[E]?h.ENTITIES[E]:(g=E,g.charAt(0)==="#"&&(g.charAt(1)==="x"?(g=g.slice(2),T=parseInt(g,16),se=T.toString(16)):(g=g.slice(1),T=parseInt(g,10),se=T.toString(10))),g=g.replace(/^0+/,""),isNaN(T)||se.toLowerCase()!==g?(ye(h,"Invalid character entity"),"&"+h.entity+";"):String.fromCodePoint(T))}r(ee,"parseEntity");function dn(h,g){g==="<"?(h.state=S.OPEN_WAKA,h.startTagPosition=h.position):q(g)||(ye(h,"Non-whitespace before first tag."),h.textNode=g,h.state=S.TEXT)}r(dn,"beginWhiteSpace");function Rr(h,g){var E="";return g<h.length&&(E=h.charAt(g)),E}r(Rr,"charAt");function $e(h){var g=this;if(this.error)throw this.error;if(g.closed)return ht(g,"Cannot write after close. Assign an onready handler.");if(h===null)return jt(g);typeof h=="object"&&(h=h.toString());for(var E=0,T="";T=Rr(h,E++),g.c=T,!!T;)switch(g.trackPosition&&(g.position++,T===`
26
+ `?(g.line++,g.column=0):g.column++),g.state){case S.BEGIN:if(g.state=S.BEGIN_WHITESPACE,T==="\uFEFF")continue;dn(g,T);continue;case S.BEGIN_WHITESPACE:dn(g,T);continue;case S.TEXT:if(g.sawRoot&&!g.closedRoot){for(var se=E-1;T&&T!=="<"&&T!=="&";)T=Rr(h,E++),T&&g.trackPosition&&(g.position++,T===`
27
+ `?(g.line++,g.column=0):g.column++);g.textNode+=h.substring(se,E-1)}T==="<"&&!(g.sawRoot&&g.closedRoot&&!g.strict)?(g.state=S.OPEN_WAKA,g.startTagPosition=g.position):(!q(T)&&(!g.sawRoot||g.closedRoot)&&ye(g,"Text data outside of root node."),T==="&"?g.state=S.TEXT_ENTITY:g.textNode+=T);continue;case S.SCRIPT:T==="<"?g.state=S.SCRIPT_ENDING:g.script+=T;continue;case S.SCRIPT_ENDING:T==="/"?g.state=S.CLOSE_TAG:(g.script+="<"+T,g.state=S.SCRIPT);continue;case S.OPEN_WAKA:if(T==="!")g.state=S.SGML_DECL,g.sgmlDecl="";else if(!q(T))if(ce(I,T))g.state=S.OPEN_TAG,g.tagName=T;else if(T==="/")g.state=S.CLOSE_TAG,g.tagName="";else if(T==="?")g.state=S.PROC_INST,g.procInstName=g.procInstBody="";else{if(ye(g,"Unencoded <"),g.startTagPosition+1<g.position){var ke=g.position-g.startTagPosition;T=new Array(ke).join(" ")+T}g.textNode+="<"+T,g.state=S.TEXT}continue;case S.SGML_DECL:if(g.sgmlDecl+T==="--"){g.state=S.COMMENT,g.comment="",g.sgmlDecl="";continue}g.doctype&&g.doctype!==!0&&g.sgmlDecl?(g.state=S.DOCTYPE_DTD,g.doctype+="<!"+g.sgmlDecl+T,g.sgmlDecl=""):(g.sgmlDecl+T).toUpperCase()===u?(Ee(g,"onopencdata"),g.state=S.CDATA,g.sgmlDecl="",g.cdata=""):(g.sgmlDecl+T).toUpperCase()===f?(g.state=S.DOCTYPE,(g.doctype||g.sawRoot)&&ye(g,"Inappropriately located doctype declaration"),g.doctype="",g.sgmlDecl=""):T===">"?(Ee(g,"onsgmldeclaration",g.sgmlDecl),g.sgmlDecl="",g.state=S.TEXT):(Z(T)&&(g.state=S.SGML_DECL_QUOTED),g.sgmlDecl+=T);continue;case S.SGML_DECL_QUOTED:T===g.q&&(g.state=S.SGML_DECL,g.q=""),g.sgmlDecl+=T;continue;case S.DOCTYPE:T===">"?(g.state=S.TEXT,Ee(g,"ondoctype",g.doctype),g.doctype=!0):(g.doctype+=T,T==="["?g.state=S.DOCTYPE_DTD:Z(T)&&(g.state=S.DOCTYPE_QUOTED,g.q=T));continue;case S.DOCTYPE_QUOTED:g.doctype+=T,T===g.q&&(g.q="",g.state=S.DOCTYPE);continue;case S.DOCTYPE_DTD:T==="]"?(g.doctype+=T,g.state=S.DOCTYPE):T==="<"?(g.state=S.OPEN_WAKA,g.startTagPosition=g.position):Z(T)?(g.doctype+=T,g.state=S.DOCTYPE_DTD_QUOTED,g.q=T):g.doctype+=T;continue;case S.DOCTYPE_DTD_QUOTED:g.doctype+=T,T===g.q&&(g.state=S.DOCTYPE_DTD,g.q="");continue;case S.COMMENT:T==="-"?g.state=S.COMMENT_ENDING:g.comment+=T;continue;case S.COMMENT_ENDING:T==="-"?(g.state=S.COMMENT_ENDED,g.comment=Di(g.opt,g.comment),g.comment&&Ee(g,"oncomment",g.comment),g.comment=""):(g.comment+="-"+T,g.state=S.COMMENT);continue;case S.COMMENT_ENDED:T!==">"?(ye(g,"Malformed comment"),g.comment+="--"+T,g.state=S.COMMENT):g.doctype&&g.doctype!==!0?g.state=S.DOCTYPE_DTD:g.state=S.TEXT;continue;case S.CDATA:T==="]"?g.state=S.CDATA_ENDING:g.cdata+=T;continue;case S.CDATA_ENDING:T==="]"?g.state=S.CDATA_ENDING_2:(g.cdata+="]"+T,g.state=S.CDATA);continue;case S.CDATA_ENDING_2:T===">"?(g.cdata&&Ee(g,"oncdata",g.cdata),Ee(g,"onclosecdata"),g.cdata="",g.state=S.TEXT):T==="]"?g.cdata+="]":(g.cdata+="]]"+T,g.state=S.CDATA);continue;case S.PROC_INST:T==="?"?g.state=S.PROC_INST_ENDING:q(T)?g.state=S.PROC_INST_BODY:g.procInstName+=T;continue;case S.PROC_INST_BODY:if(!g.procInstBody&&q(T))continue;T==="?"?g.state=S.PROC_INST_ENDING:g.procInstBody+=T;continue;case S.PROC_INST_ENDING:T===">"?(Ee(g,"onprocessinginstruction",{name:g.procInstName,body:g.procInstBody}),g.procInstName=g.procInstBody="",g.state=S.TEXT):(g.procInstBody+="?"+T,g.state=S.PROC_INST_BODY);continue;case S.OPEN_TAG:ce(O,T)?g.tagName+=T:(ri(g),T===">"?ot(g):T==="/"?g.state=S.OPEN_TAG_SLASH:(q(T)||ye(g,"Invalid character in tag name"),g.state=S.ATTRIB));continue;case S.OPEN_TAG_SLASH:T===">"?(ot(g,!0),un(g)):(ye(g,"Forward-slash in opening tag not followed by >"),g.state=S.ATTRIB);continue;case S.ATTRIB:if(q(T))continue;T===">"?ot(g):T==="/"?g.state=S.OPEN_TAG_SLASH:ce(I,T)?(g.attribName=T,g.attribValue="",g.state=S.ATTRIB_NAME):ye(g,"Invalid attribute name");continue;case S.ATTRIB_NAME:T==="="?g.state=S.ATTRIB_VALUE:T===">"?(ye(g,"Attribute without value"),g.attribValue=g.attribName,bt(g),ot(g)):q(T)?g.state=S.ATTRIB_NAME_SAW_WHITE:ce(O,T)?g.attribName+=T:ye(g,"Invalid attribute name");continue;case S.ATTRIB_NAME_SAW_WHITE:if(T==="=")g.state=S.ATTRIB_VALUE;else{if(q(T))continue;ye(g,"Attribute without value"),g.tag.attributes[g.attribName]="",g.attribValue="",Ee(g,"onattribute",{name:g.attribName,value:""}),g.attribName="",T===">"?ot(g):ce(I,T)?(g.attribName=T,g.state=S.ATTRIB_NAME):(ye(g,"Invalid attribute name"),g.state=S.ATTRIB)}continue;case S.ATTRIB_VALUE:if(q(T))continue;Z(T)?(g.q=T,g.state=S.ATTRIB_VALUE_QUOTED):(g.opt.unquotedAttributeValues||ht(g,"Unquoted attribute value"),g.state=S.ATTRIB_VALUE_UNQUOTED,g.attribValue=T);continue;case S.ATTRIB_VALUE_QUOTED:if(T!==g.q){T==="&"?g.state=S.ATTRIB_VALUE_ENTITY_Q:g.attribValue+=T;continue}bt(g),g.q="",g.state=S.ATTRIB_VALUE_CLOSED;continue;case S.ATTRIB_VALUE_CLOSED:q(T)?g.state=S.ATTRIB:T===">"?ot(g):T==="/"?g.state=S.OPEN_TAG_SLASH:ce(I,T)?(ye(g,"No whitespace between attributes"),g.attribName=T,g.attribValue="",g.state=S.ATTRIB_NAME):ye(g,"Invalid attribute name");continue;case S.ATTRIB_VALUE_UNQUOTED:if(!Q(T)){T==="&"?g.state=S.ATTRIB_VALUE_ENTITY_U:g.attribValue+=T;continue}bt(g),T===">"?ot(g):g.state=S.ATTRIB;continue;case S.CLOSE_TAG:if(g.tagName)T===">"?un(g):ce(O,T)?g.tagName+=T:g.script?(g.script+="</"+g.tagName,g.tagName="",g.state=S.SCRIPT):(q(T)||ye(g,"Invalid tagname in closing tag"),g.state=S.CLOSE_TAG_SAW_WHITE);else{if(q(T))continue;Pe(I,T)?g.script?(g.script+="</"+T,g.state=S.SCRIPT):ye(g,"Invalid tagname in closing tag."):g.tagName=T}continue;case S.CLOSE_TAG_SAW_WHITE:if(q(T))continue;T===">"?un(g):ye(g,"Invalid characters in closing tag");continue;case S.TEXT_ENTITY:case S.ATTRIB_VALUE_ENTITY_Q:case S.ATTRIB_VALUE_ENTITY_U:var Le,nt;switch(g.state){case S.TEXT_ENTITY:Le=S.TEXT,nt="textNode";break;case S.ATTRIB_VALUE_ENTITY_Q:Le=S.ATTRIB_VALUE_QUOTED,nt="attribValue";break;case S.ATTRIB_VALUE_ENTITY_U:Le=S.ATTRIB_VALUE_UNQUOTED,nt="attribValue";break}if(T===";"){var rt=ee(g);g.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(rt)?(g.entity="",g.state=Le,g.write(rt)):(g[nt]+=rt,g.entity="",g.state=Le)}else ce(g.entity.length?ie:_,T)?g.entity+=T:(ye(g,"Invalid character in entity name"),g[nt]+="&"+g.entity+T,g.entity="",g.state=Le);continue;default:throw new Error(g,"Unknown state: "+g.state)}return g.position>=g.bufferCheckPosition&&i(g),g}r($e,"write");String.fromCodePoint||function(){var h=String.fromCharCode,g=Math.floor,E=r(function(){var T=16384,se=[],ke,Le,nt=-1,rt=arguments.length;if(!rt)return"";for(var qt="";++nt<rt;){var Qe=Number(arguments[nt]);if(!isFinite(Qe)||Qe<0||Qe>1114111||g(Qe)!==Qe)throw RangeError("Invalid code point: "+Qe);Qe<=65535?se.push(Qe):(Qe-=65536,ke=(Qe>>10)+55296,Le=Qe%1024+56320,se.push(ke,Le)),(nt+1===rt||se.length>T)&&(qt+=h.apply(null,se),se.length=0)}return qt},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:E,configurable:!0,writable:!0}):String.fromCodePoint=E}()})(typeof ta>"u"?ta.sax={}:ta)});var na=Ie((eE,Ad)=>{Ad.exports={isArray:r(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var ia=Ie((nE,Ed)=>{var ET=na().isArray;Ed.exports={copyOptions:r(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},"copyOptions"),ensureFlagExists:r(function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},"ensureFlagExists"),ensureSpacesExists:r(function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},"ensureSpacesExists"),ensureAlwaysArrayExists:r(function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!ET(e.alwaysArray))&&(e.alwaysArray=!1)},"ensureAlwaysArrayExists"),ensureKeyExists:r(function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},"ensureKeyExists"),checkFnExists:r(function(e,t){return e+"Fn"in t},"checkFnExists")}});var bc=Ie((oE,Dd)=>{var IT=Pd(),OT={on:r(function(){},"on"),parse:r(function(){},"parse")},le=ia(),Bi=na().isArray,P,hc=!0,ne;function FT(e){return P=le.copyOptions(e),le.ensureFlagExists("ignoreDeclaration",P),le.ensureFlagExists("ignoreInstruction",P),le.ensureFlagExists("ignoreAttributes",P),le.ensureFlagExists("ignoreText",P),le.ensureFlagExists("ignoreComment",P),le.ensureFlagExists("ignoreCdata",P),le.ensureFlagExists("ignoreDoctype",P),le.ensureFlagExists("compact",P),le.ensureFlagExists("alwaysChildren",P),le.ensureFlagExists("addParent",P),le.ensureFlagExists("trim",P),le.ensureFlagExists("nativeType",P),le.ensureFlagExists("nativeTypeAttributes",P),le.ensureFlagExists("sanitize",P),le.ensureFlagExists("instructionHasAttributes",P),le.ensureFlagExists("captureSpacesBetweenElements",P),le.ensureAlwaysArrayExists(P),le.ensureKeyExists("declaration",P),le.ensureKeyExists("instruction",P),le.ensureKeyExists("attributes",P),le.ensureKeyExists("text",P),le.ensureKeyExists("comment",P),le.ensureKeyExists("cdata",P),le.ensureKeyExists("doctype",P),le.ensureKeyExists("type",P),le.ensureKeyExists("name",P),le.ensureKeyExists("elements",P),le.ensureKeyExists("parent",P),le.checkFnExists("doctype",P),le.checkFnExists("instruction",P),le.checkFnExists("cdata",P),le.checkFnExists("comment",P),le.checkFnExists("text",P),le.checkFnExists("instructionName",P),le.checkFnExists("elementName",P),le.checkFnExists("attributeName",P),le.checkFnExists("attributeValue",P),le.checkFnExists("attributes",P),P}r(FT,"validateOptions");function Vd(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}r(Vd,"nativeType");function Eo(e,t){var n;if(P.compact){if(!ne[P[e+"Key"]]&&(Bi(P.alwaysArray)?P.alwaysArray.indexOf(P[e+"Key"])!==-1:P.alwaysArray)&&(ne[P[e+"Key"]]=[]),ne[P[e+"Key"]]&&!Bi(ne[P[e+"Key"]])&&(ne[P[e+"Key"]]=[ne[P[e+"Key"]]]),e+"Fn"in P&&typeof t=="string"&&(t=P[e+"Fn"](t,ne)),e==="instruction"&&("instructionFn"in P||"instructionNameFn"in P)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in P)t[n]=P.instructionFn(t[n],n,ne);else{var i=t[n];delete t[n],t[P.instructionNameFn(n,i,ne)]=i}}Bi(ne[P[e+"Key"]])?ne[P[e+"Key"]].push(t):ne[P[e+"Key"]]=t}else{ne[P.elementsKey]||(ne[P.elementsKey]=[]);var o={};if(o[P.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;o[P.nameKey]="instructionNameFn"in P?P.instructionNameFn(n,t,ne):n,P.instructionHasAttributes?(o[P.attributesKey]=t[n][P.attributesKey],"instructionFn"in P&&(o[P.attributesKey]=P.instructionFn(o[P.attributesKey],n,ne))):("instructionFn"in P&&(t[n]=P.instructionFn(t[n],n,ne)),o[P.instructionKey]=t[n])}else e+"Fn"in P&&(t=P[e+"Fn"](t,ne)),o[P[e+"Key"]]=t;P.addParent&&(o[P.parentKey]=ne),ne[P.elementsKey].push(o)}}r(Eo,"addField");function jd(e){if("attributesFn"in P&&e&&(e=P.attributesFn(e,ne)),(P.trim||"attributeValueFn"in P||"attributeNameFn"in P||P.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(P.trim&&(e[t]=e[t].trim()),P.nativeTypeAttributes&&(e[t]=Vd(e[t])),"attributeValueFn"in P&&(e[t]=P.attributeValueFn(e[t],t,ne)),"attributeNameFn"in P)){var n=e[t];delete e[t],e[P.attributeNameFn(t,e[t],ne)]=n}}return e}r(jd,"manipulateAttributes");function NT(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||P.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,i;(i=n.exec(e.body))!==null;)t[i[1]]=i[2]||i[3]||i[4];t=jd(t)}if(e.name.toLowerCase()==="xml"){if(P.ignoreDeclaration)return;ne[P.declarationKey]={},Object.keys(t).length&&(ne[P.declarationKey][P.attributesKey]=t),P.addParent&&(ne[P.declarationKey][P.parentKey]=ne)}else{if(P.ignoreInstruction)return;P.trim&&(e.body=e.body.trim());var o={};P.instructionHasAttributes&&Object.keys(t).length?(o[e.name]={},o[e.name][P.attributesKey]=t):o[e.name]=e.body,Eo("instruction",o)}}r(NT,"onInstruction");function Id(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=jd(t),"elementNameFn"in P&&(e=P.elementNameFn(e,ne)),P.compact){if(n={},!P.ignoreAttributes&&t&&Object.keys(t).length){n[P.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[P.attributesKey][i]=t[i])}!(e in ne)&&(Bi(P.alwaysArray)?P.alwaysArray.indexOf(e)!==-1:P.alwaysArray)&&(ne[e]=[]),ne[e]&&!Bi(ne[e])&&(ne[e]=[ne[e]]),Bi(ne[e])?ne[e].push(n):ne[e]=n}else ne[P.elementsKey]||(ne[P.elementsKey]=[]),n={},n[P.typeKey]="element",n[P.nameKey]=e,!P.ignoreAttributes&&t&&Object.keys(t).length&&(n[P.attributesKey]=t),P.alwaysChildren&&(n[P.elementsKey]=[]),ne[P.elementsKey].push(n);n[P.parentKey]=ne,ne=n}r(Id,"onStartElement");function Od(e){P.ignoreText||!e.trim()&&!P.captureSpacesBetweenElements||(P.trim&&(e=e.trim()),P.nativeType&&(e=Vd(e)),P.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),Eo("text",e))}r(Od,"onText");function Fd(e){P.ignoreComment||(P.trim&&(e=e.trim()),Eo("comment",e))}r(Fd,"onComment");function Nd(e){var t=ne[P.parentKey];P.addParent||delete ne[P.parentKey],ne=t}r(Nd,"onEndElement");function LT(e){P.ignoreCdata||(P.trim&&(e=e.trim()),Eo("cdata",e))}r(LT,"onCdata");function VT(e){P.ignoreDoctype||(e=e.replace(/^ /,""),P.trim&&(e=e.trim()),Eo("doctype",e))}r(VT,"onDoctype");function Ld(e){e.note=e}r(Ld,"onError");Dd.exports=function(e,t){var n=hc?IT.parser(!0,{}):n=new OT.Parser("UTF-8"),i={};if(ne=i,P=FT(t),hc?(n.opt={strictEntities:!0},n.onopentag=Id,n.ontext=Od,n.oncomment=Fd,n.onclosetag=Nd,n.onerror=Ld,n.oncdata=LT,n.ondoctype=VT,n.onprocessinginstruction=NT):(n.on("startElement",Id),n.on("text",Od),n.on("comment",Fd),n.on("endElement",Nd),n.on("error",Ld)),hc)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[P.elementsKey]){var o=i[P.elementsKey];delete i[P.elementsKey],i[P.elementsKey]=o,delete i.text}return i}});var $d=Ie((aE,wd)=>{var Rd=ia(),jT=bc();function DT(e){var t=Rd.copyOptions(e);return Rd.ensureSpacesExists(t),t}r(DT,"validateOptions");wd.exports=function(e,t){var n,i,o,a;return n=DT(t),i=jT(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?o=JSON.stringify(i,function(s,c){return s===a?"_":c},n.spaces):o=JSON.stringify(i,null,n.spaces),o.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var vc=Ie((cE,Kd)=>{var ue=ia(),RT=na().isArray,at,st;function wT(e){var t=ue.copyOptions(e);return ue.ensureFlagExists("ignoreDeclaration",t),ue.ensureFlagExists("ignoreInstruction",t),ue.ensureFlagExists("ignoreAttributes",t),ue.ensureFlagExists("ignoreText",t),ue.ensureFlagExists("ignoreComment",t),ue.ensureFlagExists("ignoreCdata",t),ue.ensureFlagExists("ignoreDoctype",t),ue.ensureFlagExists("compact",t),ue.ensureFlagExists("indentText",t),ue.ensureFlagExists("indentCdata",t),ue.ensureFlagExists("indentAttributes",t),ue.ensureFlagExists("indentInstruction",t),ue.ensureFlagExists("fullTagEmptyElement",t),ue.ensureFlagExists("noQuotesForNativeAttributes",t),ue.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),ue.ensureKeyExists("declaration",t),ue.ensureKeyExists("instruction",t),ue.ensureKeyExists("attributes",t),ue.ensureKeyExists("text",t),ue.ensureKeyExists("comment",t),ue.ensureKeyExists("cdata",t),ue.ensureKeyExists("doctype",t),ue.ensureKeyExists("type",t),ue.ensureKeyExists("name",t),ue.ensureKeyExists("elements",t),ue.checkFnExists("doctype",t),ue.checkFnExists("instruction",t),ue.checkFnExists("cdata",t),ue.checkFnExists("comment",t),ue.checkFnExists("text",t),ue.checkFnExists("instructionName",t),ue.checkFnExists("elementName",t),ue.checkFnExists("attributeName",t),ue.checkFnExists("attributeValue",t),ue.checkFnExists("attributes",t),ue.checkFnExists("fullTagEmptyElement",t),t}r(wT,"validateOptions");function Yt(e,t,n){return(!n&&e.spaces?`
28
+ `:"")+Array(t+1).join(e.spaces)}r(Yt,"writeIndentation");function oa(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,st,at));var i,o,a,s,c=[];for(i in e)e.hasOwnProperty(i)&&e[i]!==null&&e[i]!==void 0&&(s=t.noQuotesForNativeAttributes&&typeof e[i]!="string"?"":'"',o=""+e[i],o=o.replace(/"/g,"&quot;"),a="attributeNameFn"in t?t.attributeNameFn(i,o,st,at):i,c.push(t.spaces&&t.indentAttributes?Yt(t,n+1,!1):" "),c.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(o,i,st,at):o)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&c.push(Yt(t,n,!1)),c.join("")}r(oa,"writeAttributes");function _d(e,t,n){return at=e,st="xml",t.ignoreDeclaration?"":"<?xml"+oa(e[t.attributesKey],t,n)+"?>"}r(_d,"writeDeclaration");function Md(e,t,n){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var o="instructionNameFn"in t?t.instructionNameFn(i,e[i],st,at):i;if(typeof e[i]=="object")return at=e,st=o,"<?"+o+oa(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,st,at)),"<?"+o+(a?" "+a:"")+"?>"}r(Md,"writeInstruction");function kd(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,st,at):e)+"-->"}r(kd,"writeComment");function Ud(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,st,at):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}r(Ud,"writeCdata");function Bd(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,st,at):e)+">"}r(Bd,"writeDoctype");function Tc(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&amp;/g,"&"),e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in t?t.textFn(e,st,at):e)}r(Tc,"writeText");function $T(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n<e.elements.length;++n)switch(e.elements[n][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}r($T,"hasContent");function _T(e,t,n){at=e,st=e.name;var i=[],o="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+o),e[t.attributesKey]&&i.push(oa(e[t.attributesKey],t,n));var a=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey]["xml:space"]==="preserve";return a||("fullTagEmptyElementFn"in t?a=t.fullTagEmptyElementFn(e.name,e):a=t.fullTagEmptyElement),a?(i.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(i.push(Gd(e[t.elementsKey],t,n+1)),at=e,st=e.name),i.push(t.spaces&&$T(e,t)?`
29
+ `+Array(n+1).join(t.spaces):""),i.push("</"+o+">")):i.push("/>"),i.join("")}r(_T,"writeElement");function Gd(e,t,n,i){return e.reduce(function(o,a){var s=Yt(t,n,i&&!o);switch(a.type){case"element":return o+s+_T(a,t,n);case"comment":return o+s+kd(a[t.commentKey],t);case"doctype":return o+s+Bd(a[t.doctypeKey],t);case"cdata":return o+(t.indentCdata?s:"")+Ud(a[t.cdataKey],t);case"text":return o+(t.indentText?s:"")+Tc(a[t.textKey],t);case"instruction":var c={};return c[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],o+(t.indentInstruction?s:"")+Md(c,t,n)}},"")}r(Gd,"writeElements");function Hd(e,t,n){var i;for(i in e)if(e.hasOwnProperty(i))switch(i){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}r(Hd,"hasContentCompact");function MT(e,t,n,i,o){at=e,st=t;var a="elementNameFn"in n?n.elementNameFn(t,e):t;if(typeof e>"u"||e===null||e==="")return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?"<"+a+"></"+a+">":"<"+a+"/>";var s=[];if(t){if(s.push("<"+a),typeof e!="object")return s.push(">"+Tc(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(oa(e[n.attributesKey],n,i));var c=Hd(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(c||("fullTagEmptyElementFn"in n?c=n.fullTagEmptyElementFn(t,e):c=n.fullTagEmptyElement),c)s.push(">");else return s.push("/>"),s.join("")}return s.push(Wd(e,n,i+1,!1)),at=e,st=t,t&&s.push((o?Yt(n,i,!1):"")+"</"+a+">"),s.join("")}r(MT,"writeElementCompact");function Wd(e,t,n,i){var o,a,s,c=[];for(a in e)if(e.hasOwnProperty(a))for(s=RT(e[a])?e[a]:[e[a]],o=0;o<s.length;++o){switch(a){case t.declarationKey:c.push(_d(s[o],t,n));break;case t.instructionKey:c.push((t.indentInstruction?Yt(t,n,i):"")+Md(s[o],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:c.push((t.indentText?Yt(t,n,i):"")+Tc(s[o],t));break;case t.cdataKey:c.push((t.indentCdata?Yt(t,n,i):"")+Ud(s[o],t));break;case t.doctypeKey:c.push(Yt(t,n,i)+Bd(s[o],t));break;case t.commentKey:c.push(Yt(t,n,i)+kd(s[o],t));break;default:c.push(Yt(t,n,i)+MT(s[o],a,t,n,Hd(s[o],t)))}i=i&&!c.length}return c.join("")}r(Wd,"writeElementsCompact");Kd.exports=function(e,t){t=wT(t);var n=[];return at=e,st="_root_",t.compact?n.push(Wd(e,t,0,!0)):(e[t.declarationKey]&&n.push(_d(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(Gd(e[t.elementsKey],t,0,!n.length))),n.join("")}});var Qd=Ie((pE,Jd)=>{var kT=vc();Jd.exports=function(e,t){e instanceof Buffer&&(e=e.toString());var n=null;if(typeof e=="string")try{n=JSON.parse(e)}catch{throw new Error("The JSON structure is invalid")}else n=e;return kT(n,t)}});var Io=Ie((fE,Xd)=>{var UT=bc(),BT=$d(),GT=vc(),HT=Qd();Xd.exports={xml2js:UT,xml2json:BT,js2xml:GT,json2xml:HT}});var tg=Ie(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.convertEntityTypeAnnotations=vt.convertPropertyAnnotations=vt.convertNavigationPropertyAnnotations=vt.convertEntitySetAnnotations=vt.convertGenericAnnotations=vt.convertV2Annotations=void 0;function WT(e,t,n){let i=[];switch(t){case"EntitySet":zd(e,i);break;case"EntityType":eg(e,i);break;case"NavigationProperty":Yd(e,n,i);break;case"Property":Zd(e,n,i);break;case"Singleton":break;default:break}return qd(e,n,i),i}r(WT,"convertV2Annotations");vt.convertV2Annotations=WT;function qd(e,t,n){function i(o,a){o&&n.push(a)}if(r(i,"pushToAnnotations"),i(e["sap:schema-version"]!==void 0,{term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),i(e["sap:searchable"]!==void 0,{term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searchable",value:{type:"Bool",Bool:e["sap:searchable"]==="true"}}]}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:topable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:topable"]==="true"}}),i(e["sap:requires-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiresFilter",value:{type:"Bool",Bool:e["sap:requires-filter"]==="true"}}]}}),i(e["sap:required-in-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiredProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}}),i(e["sap:filter-restricton"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"String",String:e["sap:filter-restricton"]}},{name:"Property",value:{type:"PropertyPath",PropertyPath:t}}]}]}}]}}),i(e["sap:sortable"]==="false",{term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:t}}]}}),i(e["sap:visible"]==="false",{term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),i(e["sap:label"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),i(e["sap:heading"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),i(e["sap:quickinfo"]!==void 0,{term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),i(e["sap:text"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:precision"]!==void 0,{term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"],10)}}),i(e["sap:value-list"]==="fixed-value",{term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="NonNegative",{term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="UpperCase",{term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){let o=[];e["sap:lower-boundary"]&&o.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&o.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:o}})}i(e["sap:field-control"]!==void 0,{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),i(e["sap:applicable-path"]!==void 0,{term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),i(e["sap:minoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"],10)}}),i(e["sap:maxoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"],10)}}),i(e["sap:parameter"]==="mandatory",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),i(e["sap:parameter"]==="optional",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),i(e["sap:attribute-for"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}})}r(qd,"convertGenericAnnotations");vt.convertGenericAnnotations=qd;function zd(e,t){e["sap:creatable"]&&t.push({term:"Org.OData.Capabilities.V1.InsertRestrictions",record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}),e["sap:updatable"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:updatable-path"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Path",Path:e["sap:updatable-path"]}}]}}),e["sap:deletable"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:deletable-path"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Path",Path:e["sap:deletable-path"]}}]}})}r(zd,"convertEntitySetAnnotations");vt.convertEntitySetAnnotations=zd;function Yd(e,t,n){e["sap:creatable"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}}]}}}]}}),e["sap:creatable-path"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Path",Path:e["sap:creatable-path"]}}]}}}]}}}]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"NavigationProperty",value:{type:"NavigationPropertyPath",NavigationPropertyPath:t}},{name:"FilterRestrictions",value:{type:"Record",Record:{propertyValues:[{name:"Filterable",value:{type:"Bool",Bool:!1}}]}}}]}]}}]}})}r(Yd,"convertNavigationPropertyAnnotations");vt.convertNavigationPropertyAnnotations=Yd;function Zd(e,t,n){e["sap:creatable"]==="true"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Immutable",value:{type:"Bool",Bool:!0}}),e["sap:creatable"]==="false"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Computed",value:{type:"Bool",Bool:!0}}),e["sap:updatable-path"]&&n.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:updatable-path"]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"NonFilterableProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}})}r(Zd,"convertPropertyAnnotations");vt.convertPropertyAnnotations=Zd;function eg(e,t){e["sap:semantics"]==="aggregate"&&t.push({term:"Org.OData.Aggregation.V1.ApplySupported",record:{propertyValues:[{name:"PropertyRestrictions",value:{type:"Collection",Collection:[]}},{name:"GroupableProperties",value:{type:"Collection",Collection:[]}},{name:"AggregatableProperties",value:{type:"Collection",Collection:[]}}]}})}r(eg,"convertEntityTypeAnnotations");vt.convertEntityTypeAnnotations=eg});var sg=Ie(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.parse=void 0;var KT=Io(),re=yc(),Oo=tg(),sa=/^Collection\((.+)\)$/;function JT(e){return e.Type!==null&&e.Type!==void 0}r(JT,"isV4NavProperty");function QT(e){return e.map(t=>t._attributes.Name)}r(QT,"getEntityTypeKeys");function og(e,t,n,i){return e.reduce((o,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:Gi(a._attributes.Type).type};if(a._attributes.MaxLength&&(s.maxLength=parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(s.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(s.scale=parseInt(a._attributes.Scale,10)),s.nullable=a._attributes.Nullable!=="false",a._attributes.DefaultValue)switch(s.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":s.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":s.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=a._attributes.DefaultValue==="true";break;default:s.defaultValue=a._attributes.DefaultValue;break}o.entityProperties.push(s),t.indexOf(s.name)!==-1&&o.entityKeys.push(s);let c=(0,Oo.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return c.length>0&&i.push(si(s.fullyQualifiedName,c)),o},{entityProperties:[],entityKeys:[]})}r(og,"parseProperties");function XT(e,t,n){return e.reduce((i,o)=>(i.push({sourceTypeName:t,sourceProperty:o._attributes.Property,targetTypeName:n,targetProperty:o._attributes.ReferencedProperty}),i),[])}r(XT,"parseReferentialConstraint");function qT(e,t){return e.reduce((n,i)=>{let o=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(o!==void 0&&a!==void 0){let s=(0,re.ensureArray)(i.Principal.PropertyRef),c=(0,re.ensureArray)(i.Dependent.PropertyRef);o.multiplicity!=="1"&&(a=o,o=t.find(l=>l.role===i.Dependent._attributes.Role),c=s,s=(0,re.ensureArray)(i.Dependent.PropertyRef));for(let l of s){let p=s.indexOf(l);n.push({sourceTypeName:o.type,sourceProperty:l._attributes.Name,targetTypeName:a.type,targetProperty:c[p]._attributes.Name})}}return n},[])}r(qT,"parseV2ReferentialConstraint");function rg(e,t,n,i){return e.reduce((o,a)=>{let s=a._attributes;if(JT(s)){let c=s.Type.match(sa),l=c!==null,p=Zt(c?c[1]:s.Type);o.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:l,targetTypeName:p,referentialConstraint:XT((0,re.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:c,ToRole:l,FromRole:p}=s;o.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:c,toRole:l,fromRole:p});let u=(0,Oo.convertV2Annotations)(s,"NavigationProperty",s.Name);u.length>0&&i.push(si(`${n}/${s.Name}`,u))}return o},[])}r(rg,"parseNavigationProperties");function zT(e,t,n){return e.map(i=>{let o=`${t}.${i._attributes.Name}`,a=(0,re.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:o,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}r(zT,"parseAssociationSets");function YT(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,o=(0,re.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:o,referentialConstraints:qT((0,re.ensureArray)(n.ReferentialConstraint),o)}})}r(YT,"parseAssociations");function ZT(e,t,n){return e.reduce((i,o)=>{let a=o.Key?QT((0,re.ensureArray)(o.Key.PropertyRef)):[],s=`${n}.${o._attributes.Name}`,{entityProperties:c,entityKeys:l}=og((0,re.ensureArray)(o.Property),a,s,t),p=rg((0,re.ensureArray)(o.NavigationProperty),o,s,t),u={_type:"EntityType",name:o._attributes.Name,fullyQualifiedName:s,keys:l,entityProperties:c,actions:{},navigationProperties:p},f=(0,Oo.convertV2Annotations)(o._attributes,"EntityType",o._attributes.Name);return f.length>0&&t.push(si(u.fullyQualifiedName,f)),i.push(u),i},[])}r(ZT,"parseEntityTypes");function ev(e,t,n){return e.reduce((i,o)=>{let a=`${n}.${o._attributes.Name}`,{entityProperties:s}=og((0,re.ensureArray)(o.Property),[],a,t),c=rg((0,re.ensureArray)(o.NavigationProperty),o,a,t);return i.push({_type:"ComplexType",name:o._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:c}),i},[])}r(ev,"parseComplexTypes");function tv(e,t){return e.reduce((n,i)=>{let o=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:o,underlyingType:i._attributes.UnderlyingType}),n},[])}r(tv,"parseTypeDefinitions");function nv(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,re.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),c={_type:"EntitySet",name:a._attributes.Name,entityTypeName:Zt(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},l=(0,Oo.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return l.length>0&&i.push(si(c.fullyQualifiedName,l)),c})}r(nv,"parseEntitySets");function iv(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,re.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),c={_type:"Singleton",name:a._attributes.Name,entityTypeName:Zt(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},l=(0,Oo.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return l.length>0&&i.push(si(c.fullyQualifiedName,l)),c})}r(iv,"parseSingletons");function ng(e,t,n){return e.map(i=>{let o=(0,re.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=o.map(l=>Gi(l._attributes.Type).type).join(","):s=a?Gi(o[0]._attributes.Type).type:"";let c=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?Gi(o[0]._attributes.Type).type:"",fullyQualifiedName:c,isFunction:n,parameters:o.map(l=>{let{isCollection:p,type:u}=Gi(l._attributes.Type),f={_type:"ActionParameter",fullyQualifiedName:`${c}/${l._attributes.Name}`,name:`${l._attributes.Name}`,type:u,isCollection:p};return l._attributes.MaxLength&&(f.maxLength=parseInt(l._attributes.MaxLength,10)),l._attributes.Precision&&(f.precision=parseInt(l._attributes.Precision,10)),l._attributes.Scale&&(f.scale=parseInt(l._attributes.Scale,10)),f.nullable=l._attributes.Nullable!=="false",f}),returnType:i.ReturnType?Gi(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(sa)!==null:!1}})}r(ng,"parseActions");function ov(e,t,n){return e.map(i=>{let o=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:o?o.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,re.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${a}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:"",returnCollection:i._attributes.ReturnType?i._attributes.ReturnType.match(sa)!==null:!1}})}r(ov,"parseV2FunctionImport");function ig(e,t){return e.map(n=>{var i;let o=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:Zt(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Zt(o)}})}r(ig,"parseActionImports");function rv(e,t,n){return e.map(i=>{let{Annotation:o,_attributes:a,...s}=i,c={};if(a){let l=Object.keys(a).find(u=>u!=="Property");c.name=a.Property;let p=`${t}/${c.name}`;if(s&&Object.keys(s).length>0?c.value=aa(s,p,n,!1):l&&(c.value=ag({[l]:a[l]},p,n)),i.Annotation){let u=la((0,re.ensureArray)(i.Annotation),p,n);u&&u.length>0&&n.push(si(p,u))}}return c})}r(rv,"parsePropertyValues");function ca(e,t,n){let i=la((0,re.ensureArray)(e.Annotation),t,n),o={type:e._attributes?Zt(e._attributes.Type):void 0,propertyValues:rv((0,re.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(o.annotations=i),o}r(ca,"parseRecord");function hn(e,t){return e[t]!=null}r(hn,"isExpressionOfType");function ra(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}r(ra,"parseModelPath");function xc(e,t,n){if(hn(e,"Record")){let i=(0,re.ensureArray)(e.Record).map((o,a)=>ca(o,t+"/"+a,n));return i.type="Record",i}else if(hn(e,"PropertyPath")){let i=(0,re.ensureArray)(e.PropertyPath).map(o=>ra(o,"PropertyPath"));return i.type="PropertyPath",i}else if(hn(e,"NavigationPropertyPath")){let i=(0,re.ensureArray)(e.NavigationPropertyPath).map(o=>ra(o,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(hn(e,"String")){let i=(0,re.ensureArray)(e.String).map(o=>o._text);return i.type="String",i}else if(hn(e,"AnnotationPath")){let i=(0,re.ensureArray)(e.AnnotationPath).map(o=>ra(o,"AnnotationPath"));return i.type="AnnotationPath",i}else if(hn(e,"Path")){let i=(0,re.ensureArray)(e.Path).map(o=>ra(o,"Path"));return i.type="Path",i}else if(hn(e,"If")){let i=(0,re.ensureArray)(e.If).map(o=>o._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}r(xc,"parseCollection");function Ue(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(o=>aa({[i]:o},"",[],!0))):n.push(aa({[i]:e[i]},"",[],!0))}),n}r(Ue,"parseChildren");function ag(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let o=i[0];switch(o){case"String":return{type:"String",String:e[o]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Double":return{type:"Double",Double:parseFloat(e.Double)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[o]};case"Collection":return{type:"Collection",Collection:xc(e.Collection,t,n)};case"Record":return{type:"Record",Record:ca(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Ue(e.Apply),$Function:Ue(e.Function)};case"And":return{type:"And",$And:Ue(e.And)};case"Or":return{type:"Or",$Or:Ue(e.Or)};case"Eq":return{type:"Eq",$Eq:Ue(e.Eq)};case"Gt":return{type:"Gt",$Gt:Ue(e.Gt)};case"Ge":return{type:"Ge",$Ge:Ue(e.Ge)};case"Lt":return{type:"Lt",$Lt:Ue(e.Lt)};case"Le":return{type:"Le",$Le:Ue(e.Le)};case"If":return{type:"If",$If:Ue(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+o),{type:"Unknown"}}}r(ag,"parseInlineExpression");function aa(e,t,n,i){let o=Object.keys(e);if(o.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=o[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:Ue(e.LabeledElement)[0]};case"Bool":return i?e.Bool._text==="true":{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return i?parseInt(e.Int._text,10):{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return i?parseFloat(e.Decimal._text):{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Double":return i?parseFloat(e.Double._text):{type:"Double",Decimal:parseFloat(e.Double._text)};case"Path":return{type:"Path",Path:e.Path._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath._text};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath._text};case"EnumMember":return{type:"EnumMember",EnumMember:e[a]._text};case"Collection":return{type:"Collection",Collection:xc(e.Collection,t,n)};case"Record":return{type:"Record",Record:ca(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Ue(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:Ue(e.And)};case"Ne":return{type:"Ne",$Ne:Ue(e.Ne)};case"Not":return{type:"Not",$Not:Ue(e.Not)[0]};case"Or":return{type:"Or",$Or:Ue(e.Or)};case"Eq":return{type:"Eq",$Eq:Ue(e.Eq)};case"If":return{type:"If",$If:Ue(e.If)};case"Gt":return{type:"Gt",$Gt:Ue(e.Gt)};case"Ge":return{type:"Ge",$Ge:Ue(e.Ge)};case"Lt":return{type:"Lt",$Lt:Ue(e.Lt)};case"Le":return{type:"Le",$Le:Ue(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}r(aa,"parseExpression");function av(e,t,n){let{Term:i,Qualifier:o,...a}=e._attributes,s={term:Zt(i),qualifier:o},c=`${t}@${Zt(i)}`;if(o!==""&&o!==void 0&&(c+=`#${o}`),a&&Object.keys(a).length>0&&(s.value=ag(a,c,n)),e.Annotation){let p=la((0,re.ensureArray)(e.Annotation),c,n);p&&p.length>0&&(s.annotations=p)}let l=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return hn(e,"Record")?s.record=ca(e.Record,c,n):hn(e,"Collection")?s.collection=xc(e.Collection,c,n):l.length===1?s.value=aa({[l[0]]:e[l[0]]},c,n,!1):l.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}r(av,"parseAnnotation");function la(e,t,n){return e.map(i=>av(i,t,n))}r(la,"parseAnnotations");function si(e,t){return{target:e,annotations:t}}r(si,"createAnnotationList");function sv(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(si(Zt(n._attributes.Target),la((0,re.ensureArray)(n.Annotation),n._attributes.Target,t)))})}r(sv,"parseAnnotationLists");function cv(e,t,n){let i=e._attributes.Namespace,o=[],a=ZT((0,re.ensureArray)(e.EntityType),o,i),s=ev((0,re.ensureArray)(e.ComplexType),o,i),c=tv((0,re.ensureArray)(e.TypeDefinition),i),l=[],p=[],u=[],f={_type:"EntityContainer",fullyQualifiedName:""},d=[],b=[];if(e.EntityContainer)if(l=nv((0,re.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,o),p=iv((0,re.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,o),u=zT((0,re.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),f={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")d=d.concat(ov((0,re.ensureArray)(e.EntityContainer.FunctionImport),l,f.fullyQualifiedName));else if(t==="4.0")b=b.concat(ig((0,re.ensureArray)(e.EntityContainer.FunctionImport),f.fullyQualifiedName)),b=b.concat(ig((0,re.ensureArray)(e.EntityContainer.ActionImport),f.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(d=d.concat(ng((0,re.ensureArray)(e.Action),i,!1)),d=d.concat(ng((0,re.ensureArray)(e.Function),i,!0)));let x=YT((0,re.ensureArray)(e.Association),i);sv((0,re.ensureArray)(e.Annotations),o);let I={};return I[n]=o,{associations:x,associationSets:u,annotations:I,entityContainer:f,namespace:i,entitySets:l,singletons:p,complexTypes:s,typeDefinitions:c,actions:d,actionImports:b,entityTypes:a}}r(cv,"parseSchema");function lv(e){return e.reduce((t,n)=>((0,re.ensureArray)(n["edmx:Include"]).forEach(o=>{t.push({uri:n._attributes.Uri,alias:o._attributes.Alias,namespace:o._attributes.Namespace})}),t),[])}r(lv,"parseReferences");var Sc={};function Gi(e){let t=e.match(sa),n=t?t[1]:e,i=Zt(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}r(Gi,"unaliasType");function Zt(e){var t;if(!e)return e;let n=["@","/","("],i=[],o=0;for(let a=0,s=!0;a<e.length;a++){let c=e[a];if(s&&c==="."){let l=e.substring(o,a);i.push((t=Sc[l])!==null&&t!==void 0?t:l),o=a,s=!1}n.includes(c)&&(i.push(e.substring(o,a+1)),o=a+1,s=!0)}return i.push(e.substring(o)),i.join("")}r(Zt,"unalias");function pv(e){let t=e.reduce((b,x)=>b.concat(x.associations),[]),n=e.reduce((b,x)=>b.concat(x.associationSets),[]),i=e.reduce((b,x)=>b.concat(x.entitySets),[]),o=e.reduce((b,x)=>b.concat(x.singletons),[]),a=e.reduce((b,x)=>b.concat(x.entityTypes),[]),s=e.reduce((b,x)=>b.concat(x.actions),[]),c=e.reduce((b,x)=>b.concat(x.actionImports),[]),l=e.reduce((b,x)=>b.concat(x.complexTypes),[]),p=e.reduce((b,x)=>b.concat(x.typeDefinitions),[]),u={};e.forEach(b=>{u=Object.assign(u,b.annotations)});let f,d;return e.forEach(b=>{b.entityContainer&&Object.keys(b.entityContainer).length>0&&(f=b.entityContainer,d=b.namespace)}),i.forEach(b=>{let x=a.find(I=>I.fullyQualifiedName===b.entityTypeName);x==null||x.navigationProperties.forEach(I=>{let O=I,_=n.find(ie=>ie.association===O.relationship);if(_){let ie=_.associationEnd.find(q=>q.entitySet!==b.fullyQualifiedName);ie&&(b.navigationPropertyBinding[I.name]=ie.entitySet)}})}),a.forEach(b=>{b.navigationProperties.forEach(x=>{let I=x,O=t.find(_=>_.fullyQualifiedName===I.relationship);O&&O.referentialConstraints&&O.referentialConstraints.length>0&&(O.referentialConstraints[0].sourceTypeName===b.fullyQualifiedName?I.referentialConstraint=O.referentialConstraints:I.referentialConstraint=O.referentialConstraints.map(_=>({sourceTypeName:_.targetTypeName,sourceProperty:_.targetProperty,targetTypeName:_.sourceTypeName,targetProperty:_.sourceProperty})))})}),{associations:t,associationSets:n,annotations:u,entityContainer:f,namespace:d,entitySets:i,singletons:o,complexTypes:l,typeDefinitions:p,actions:s,actionImports:c,entityTypes:a}}r(pv,"mergeSchemas");function fv(e,t){Sc=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{Sc[n._attributes.Alias]=n._attributes.Namespace})}r(fv,"createAliasMap");function uv(e,t="serviceFile"){let n=(0,KT.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,o=(0,re.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=lv((0,re.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));fv(a,o);let s=o.map(l=>cv(l,i,t));return new re.RawMetadataInstance(t,i,pv(s),a)}r(uv,"parse");pa.parse=uv});var cg=Ie(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.parse=Hi.merge=void 0;var dv=Cd();Object.defineProperty(Hi,"merge",{enumerable:!0,get:r(function(){return dv.merge},"get")});var gv=sg();Object.defineProperty(Hi,"parse",{enumerable:!0,get:r(function(){return gv.parse},"get")})});var Eg=Ie(()=>{var Ag;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:c(),i=o(e);typeof n.Reflect<"u"&&(i=o(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function o(l,p){return function(u,f){Object.defineProperty(l,u,{configurable:!0,writable:!0,value:f}),p&&p(u,f)}}r(o,"makeExporter");function a(){try{return Function("return this;")()}catch{}}r(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}r(s,"indirectEvalThis");function c(){return a()||s()}r(c,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",a=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",l={__proto__:[]}instanceof Array,p=!c&&!l,u={create:c?function(){return $s(Object.create(null))}:l?function(){return $s({__proto__:null})}:function(){return $s({})},has:p?function(v,C){return i.call(v,C)}:function(v,C){return C in v},get:p?function(v,C){return i.call(v,C)?v[C]:void 0}:function(v,C){return v[C]}},f=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:ah(),b=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:sh(),x=typeof WeakMap=="function"?WeakMap:ch(),I=o?Symbol.for("@reflect-metadata:registry"):void 0,O=ih(),_=oh(O);function ie(v,C,A,R){if(ee(A)){if(!ke(v))throw new TypeError;if(!nt(C))throw new TypeError;return Dn(v,C)}else{if(!ke(v))throw new TypeError;if(!$e(C))throw new TypeError;if(!$e(R)&&!ee(R)&&!dn(R))throw new TypeError;return dn(R)&&(R=void 0),A=se(A),Di(v,C,A,R)}}r(ie,"decorate"),t("decorate",ie);function q(v,C){function A(R,X){if(!$e(R))throw new TypeError;if(!ee(X)&&!rt(X))throw new TypeError;Je(v,C,R,X)}return r(A,"decorator"),A}r(q,"metadata"),t("metadata",q);function Z(v,C,A,R){if(!$e(A))throw new TypeError;return ee(R)||(R=se(R)),Je(v,C,A,R)}r(Z,"defineMetadata"),t("defineMetadata",Z);function Q(v,C,A){if(!$e(C))throw new TypeError;return ee(A)||(A=se(A)),ht(v,C,A)}r(Q,"hasMetadata"),t("hasMetadata",Q);function ce(v,C,A){if(!$e(C))throw new TypeError;return ee(A)||(A=se(A)),jt(v,C,A)}r(ce,"hasOwnMetadata"),t("hasOwnMetadata",ce);function Pe(v,C,A){if(!$e(C))throw new TypeError;return ee(A)||(A=se(A)),ye(v,C,A)}r(Pe,"getMetadata"),t("getMetadata",Pe);function S(v,C,A){if(!$e(C))throw new TypeError;return ee(A)||(A=se(A)),ri(v,C,A)}r(S,"getOwnMetadata"),t("getOwnMetadata",S);function fn(v,C){if(!$e(v))throw new TypeError;return ee(C)||(C=se(C)),bt(v,C)}r(fn,"getMetadataKeys"),t("getMetadataKeys",fn);function Xt(v,C){if(!$e(v))throw new TypeError;return ee(C)||(C=se(C)),ot(v,C)}r(Xt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",Xt);function Ee(v,C,A){if(!$e(C))throw new TypeError;if(ee(A)||(A=se(A)),!$e(C))throw new TypeError;ee(A)||(A=se(A));var R=To(C,A,!1);return ee(R)?!1:R.OrdinaryDeleteMetadata(v,C,A)}r(Ee,"deleteMetadata"),t("deleteMetadata",Ee);function Dn(v,C){for(var A=v.length-1;A>=0;--A){var R=v[A],X=R(C);if(!ee(X)&&!dn(X)){if(!nt(X))throw new TypeError;C=X}}return C}r(Dn,"DecorateConstructor");function Di(v,C,A,R){for(var X=v.length-1;X>=0;--X){var Ge=v[X],Xe=Ge(C,A,R);if(!ee(Xe)&&!dn(Xe)){if(!$e(Xe))throw new TypeError;R=Xe}}return R}r(Di,"DecorateProperty");function ht(v,C,A){var R=jt(v,C,A);if(R)return!0;var X=wi(C);return dn(X)?!1:ht(v,X,A)}r(ht,"OrdinaryHasMetadata");function jt(v,C,A){var R=To(C,A,!1);return ee(R)?!1:E(R.OrdinaryHasOwnMetadata(v,C,A))}r(jt,"OrdinaryHasOwnMetadata");function ye(v,C,A){var R=jt(v,C,A);if(R)return ri(v,C,A);var X=wi(C);if(!dn(X))return ye(v,X,A)}r(ye,"OrdinaryGetMetadata");function ri(v,C,A){var R=To(C,A,!1);if(!ee(R))return R.OrdinaryGetOwnMetadata(v,C,A)}r(ri,"OrdinaryGetOwnMetadata");function Je(v,C,A,R){var X=To(A,R,!0);X.OrdinaryDefineOwnMetadata(v,C,A,R)}r(Je,"OrdinaryDefineOwnMetadata");function bt(v,C){var A=ot(v,C),R=wi(v);if(R===null)return A;var X=bt(R,C);if(X.length<=0)return A;if(A.length<=0)return X;for(var Ge=new b,Xe=[],fe=0,M=A;fe<M.length;fe++){var B=M[fe],H=Ge.has(B);H||(Ge.add(B),Xe.push(B))}for(var K=0,me=X;K<me.length;K++){var B=me[K],H=Ge.has(B);H||(Ge.add(B),Xe.push(B))}return Xe}r(bt,"OrdinaryMetadataKeys");function ot(v,C){var A=To(v,C,!1);return A?A.OrdinaryOwnMetadataKeys(v,C):[]}r(ot,"OrdinaryOwnMetadataKeys");function un(v){if(v===null)return 1;switch(typeof v){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return v===null?1:6;default:return 6}}r(un,"Type");function ee(v){return v===void 0}r(ee,"IsUndefined");function dn(v){return v===null}r(dn,"IsNull");function Rr(v){return typeof v=="symbol"}r(Rr,"IsSymbol");function $e(v){return typeof v=="object"?v!==null:typeof v=="function"}r($e,"IsObject");function h(v,C){switch(un(v)){case 0:return v;case 1:return v;case 2:return v;case 3:return v;case 4:return v;case 5:return v}var A=C===3?"string":C===5?"number":"default",R=Qe(v,a);if(R!==void 0){var X=R.call(v,A);if($e(X))throw new TypeError;return X}return g(v,A==="default"?"number":A)}r(h,"ToPrimitive");function g(v,C){if(C==="string"){var A=v.toString;if(Le(A)){var R=A.call(v);if(!$e(R))return R}var X=v.valueOf;if(Le(X)){var R=X.call(v);if(!$e(R))return R}}else{var X=v.valueOf;if(Le(X)){var R=X.call(v);if(!$e(R))return R}var Ge=v.toString;if(Le(Ge)){var R=Ge.call(v);if(!$e(R))return R}}throw new TypeError}r(g,"OrdinaryToPrimitive");function E(v){return!!v}r(E,"ToBoolean");function T(v){return""+v}r(T,"ToString");function se(v){var C=h(v,3);return Rr(C)?C:T(C)}r(se,"ToPropertyKey");function ke(v){return Array.isArray?Array.isArray(v):v instanceof Object?v instanceof Array:Object.prototype.toString.call(v)==="[object Array]"}r(ke,"IsArray");function Le(v){return typeof v=="function"}r(Le,"IsCallable");function nt(v){return typeof v=="function"}r(nt,"IsConstructor");function rt(v){switch(un(v)){case 3:return!0;case 4:return!0;default:return!1}}r(rt,"IsPropertyKey");function qt(v,C){return v===C||v!==v&&C!==C}r(qt,"SameValueZero");function Qe(v,C){var A=v[C];if(A!=null){if(!Le(A))throw new TypeError;return A}}r(Qe,"GetMethod");function Dt(v){var C=Qe(v,s);if(!Le(C))throw new TypeError;var A=C.call(v);if(!$e(A))throw new TypeError;return A}r(Dt,"GetIterator");function wr(v){return v.value}r(wr,"IteratorValue");function bo(v){var C=v.next();return C.done?!1:C}r(bo,"IteratorStep");function Ri(v){var C=v.return;C&&C.call(v)}r(Ri,"IteratorClose");function wi(v){var C=Object.getPrototypeOf(v);if(typeof v!="function"||v===f||C!==f)return C;var A=v.prototype,R=A&&Object.getPrototypeOf(A);if(R==null||R===Object.prototype)return C;var X=R.constructor;return typeof X!="function"||X===v?C:X}r(wi,"OrdinaryGetPrototypeOf");function nh(){var v;!ee(I)&&typeof n.Reflect<"u"&&!(I in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(v=rh(n.Reflect));var C,A,R,X=new x,Ge={registerProvider:Xe,getProvider:M,setProvider:H};return Ge;function Xe(K){if(!Object.isExtensible(Ge))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case v===K:break;case ee(C):C=K;break;case C===K:break;case ee(A):A=K;break;case A===K:break;default:R===void 0&&(R=new b),R.add(K);break}}function fe(K,me){if(!ee(C)){if(C.isProviderFor(K,me))return C;if(!ee(A)){if(A.isProviderFor(K,me))return C;if(!ee(R))for(var De=Dt(R);;){var He=bo(De);if(!He)return;var Ut=wr(He);if(Ut.isProviderFor(K,me))return Ri(De),Ut}}}if(!ee(v)&&v.isProviderFor(K,me))return v}function M(K,me){var De=X.get(K),He;return ee(De)||(He=De.get(me)),ee(He)&&(He=fe(K,me),ee(He)||(ee(De)&&(De=new d,X.set(K,De)),De.set(me,He))),He}function B(K){if(ee(K))throw new TypeError;return C===K||A===K||!ee(R)&&R.has(K)}function H(K,me,De){if(!B(De))throw new Error("Metadata provider not registered.");var He=M(K,me);if(He!==De){if(!ee(He))return!1;var Ut=X.get(K);ee(Ut)&&(Ut=new d,X.set(K,Ut)),Ut.set(me,De)}return!0}}r(nh,"CreateMetadataRegistry");function ih(){var v;return!ee(I)&&$e(n.Reflect)&&Object.isExtensible(n.Reflect)&&(v=n.Reflect[I]),ee(v)&&(v=nh()),!ee(I)&&$e(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,I,{enumerable:!1,configurable:!1,writable:!1,value:v}),v}r(ih,"GetOrCreateMetadataRegistry");function oh(v){var C=new x,A={isProviderFor:r(function(B,H){var K=C.get(B);return ee(K)?!1:K.has(H)},"isProviderFor"),OrdinaryDefineOwnMetadata:Xe,OrdinaryHasOwnMetadata:X,OrdinaryGetOwnMetadata:Ge,OrdinaryOwnMetadataKeys:fe,OrdinaryDeleteMetadata:M};return O.registerProvider(A),A;function R(B,H,K){var me=C.get(B),De=!1;if(ee(me)){if(!K)return;me=new d,C.set(B,me),De=!0}var He=me.get(H);if(ee(He)){if(!K)return;if(He=new d,me.set(H,He),!v.setProvider(B,H,A))throw me.delete(H),De&&C.delete(B),new Error("Wrong provider for target.")}return He}r(R,"GetOrCreateMetadataMap");function X(B,H,K){var me=R(H,K,!1);return ee(me)?!1:E(me.has(B))}r(X,"OrdinaryHasOwnMetadata");function Ge(B,H,K){var me=R(H,K,!1);if(!ee(me))return me.get(B)}r(Ge,"OrdinaryGetOwnMetadata");function Xe(B,H,K,me){var De=R(K,me,!0);De.set(B,H)}r(Xe,"OrdinaryDefineOwnMetadata");function fe(B,H){var K=[],me=R(B,H,!1);if(ee(me))return K;for(var De=me.keys(),He=Dt(De),Ut=0;;){var zp=bo(He);if(!zp)return K.length=Ut,K;var lh=wr(zp);try{K[Ut]=lh}catch(ph){try{Ri(He)}finally{throw ph}}Ut++}}r(fe,"OrdinaryOwnMetadataKeys");function M(B,H,K){var me=R(H,K,!1);if(ee(me)||!me.delete(B))return!1;if(me.size===0){var De=C.get(H);ee(De)||(De.delete(K),De.size===0&&C.delete(De))}return!0}r(M,"OrdinaryDeleteMetadata")}r(oh,"CreateMetadataProvider");function rh(v){var C=v.defineMetadata,A=v.hasOwnMetadata,R=v.getOwnMetadata,X=v.getOwnMetadataKeys,Ge=v.deleteMetadata,Xe=new x,fe={isProviderFor:r(function(M,B){var H=Xe.get(M);return!ee(H)&&H.has(B)?!0:X(M,B).length?(ee(H)&&(H=new b,Xe.set(M,H)),H.add(B),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:C,OrdinaryHasOwnMetadata:A,OrdinaryGetOwnMetadata:R,OrdinaryOwnMetadataKeys:X,OrdinaryDeleteMetadata:Ge};return fe}r(rh,"CreateFallbackProvider");function To(v,C,A){var R=O.getProvider(v,C);if(!ee(R))return R;if(A){if(O.setProvider(v,C,_))return _;throw new Error("Illegal state.")}}r(To,"GetMetadataProvider");function ah(){var v={},C=[],A=function(){function fe(M,B,H){this._index=0,this._keys=M,this._values=B,this._selector=H}return r(fe,"MapIterator"),fe.prototype["@@iterator"]=function(){return this},fe.prototype[s]=function(){return this},fe.prototype.next=function(){var M=this._index;if(M>=0&&M<this._keys.length){var B=this._selector(this._keys[M],this._values[M]);return M+1>=this._keys.length?(this._index=-1,this._keys=C,this._values=C):this._index++,{value:B,done:!1}}return{value:void 0,done:!0}},fe.prototype.throw=function(M){throw this._index>=0&&(this._index=-1,this._keys=C,this._values=C),M},fe.prototype.return=function(M){return this._index>=0&&(this._index=-1,this._keys=C,this._values=C),{value:M,done:!0}},fe}(),R=function(){function fe(){this._keys=[],this._values=[],this._cacheKey=v,this._cacheIndex=-2}return r(fe,"Map"),Object.defineProperty(fe.prototype,"size",{get:r(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),fe.prototype.has=function(M){return this._find(M,!1)>=0},fe.prototype.get=function(M){var B=this._find(M,!1);return B>=0?this._values[B]:void 0},fe.prototype.set=function(M,B){var H=this._find(M,!0);return this._values[H]=B,this},fe.prototype.delete=function(M){var B=this._find(M,!1);if(B>=0){for(var H=this._keys.length,K=B+1;K<H;K++)this._keys[K-1]=this._keys[K],this._values[K-1]=this._values[K];return this._keys.length--,this._values.length--,qt(M,this._cacheKey)&&(this._cacheKey=v,this._cacheIndex=-2),!0}return!1},fe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=v,this._cacheIndex=-2},fe.prototype.keys=function(){return new A(this._keys,this._values,X)},fe.prototype.values=function(){return new A(this._keys,this._values,Ge)},fe.prototype.entries=function(){return new A(this._keys,this._values,Xe)},fe.prototype["@@iterator"]=function(){return this.entries()},fe.prototype[s]=function(){return this.entries()},fe.prototype._find=function(M,B){if(!qt(this._cacheKey,M)){this._cacheIndex=-1;for(var H=0;H<this._keys.length;H++)if(qt(this._keys[H],M)){this._cacheIndex=H;break}}return this._cacheIndex<0&&B&&(this._cacheIndex=this._keys.length,this._keys.push(M),this._values.push(void 0)),this._cacheIndex},fe}();return R;function X(fe,M){return fe}function Ge(fe,M){return M}function Xe(fe,M){return[fe,M]}}r(ah,"CreateMapPolyfill");function sh(){var v=function(){function C(){this._map=new d}return r(C,"Set"),Object.defineProperty(C.prototype,"size",{get:r(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),C.prototype.has=function(A){return this._map.has(A)},C.prototype.add=function(A){return this._map.set(A,A),this},C.prototype.delete=function(A){return this._map.delete(A)},C.prototype.clear=function(){this._map.clear()},C.prototype.keys=function(){return this._map.keys()},C.prototype.values=function(){return this._map.keys()},C.prototype.entries=function(){return this._map.entries()},C.prototype["@@iterator"]=function(){return this.keys()},C.prototype[s]=function(){return this.keys()},C}();return v}r(sh,"CreateSetPolyfill");function ch(){var v=16,C=u.create(),A=R();return function(){function M(){this._key=R()}return r(M,"WeakMap"),M.prototype.has=function(B){var H=X(B,!1);return H!==void 0?u.has(H,this._key):!1},M.prototype.get=function(B){var H=X(B,!1);return H!==void 0?u.get(H,this._key):void 0},M.prototype.set=function(B,H){var K=X(B,!0);return K[this._key]=H,this},M.prototype.delete=function(B){var H=X(B,!1);return H!==void 0?delete H[this._key]:!1},M.prototype.clear=function(){this._key=R()},M}();function R(){var M;do M="@@WeakMap@@"+fe();while(u.has(C,M));return C[M]=!0,M}function X(M,B){if(!i.call(M,A)){if(!B)return;Object.defineProperty(M,A,{value:u.create()})}return M[A]}function Ge(M,B){for(var H=0;H<B;++H)M[H]=Math.random()*255|0;return M}function Xe(M){if(typeof Uint8Array=="function"){var B=new Uint8Array(M);return typeof crypto<"u"?crypto.getRandomValues(B):typeof msCrypto<"u"?msCrypto.getRandomValues(B):Ge(B,M),B}return Ge(new Array(M),M)}function fe(){var M=Xe(v);M[6]=M[6]&79|64,M[8]=M[8]&191|128;for(var B="",H=0;H<v;++H){var K=M[H];(H===4||H===6||H===8)&&(B+="-"),K<16&&(B+="0"),B+=K.toString(16).toLowerCase()}return B}}r(ch,"CreateWeakMapPolyfill");function $s(v){return v.__=void 0,delete v.__,v}r($s,"MakeDictionary")})})(Ag||(Ag={}))});var Dg=Ie((jE,jg)=>{var Rv=0,Vg="changeUtils: ";function wv(){return"id-"+new Date().valueOf()+"-"+Rv++}r(wv,"uid");function $v(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}r($v,"appendComponentToReference");function _v(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return $v(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}r(_v,"getFlexReference");function Mv(e){let t=e["sap.app"];if(!t||!t.applicationVersion||!t.applicationVersion.version)throw Error("app version could not be determined");return t.applicationVersion.version}r(Mv,"getAppVersion");function kv(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}r(kv,"getProjectId");function Lg(e){return JSON.stringify({fileName:e.id||wv().replace(/-/g,"_")+"_"+e.type,fileType:"change",changeType:e.type,moduleName:"",reference:e.reference,packageName:"",content:e.content||{},selector:{id:e.controlId,idIsLocal:!1,type:e.controlType},layer:e.isCustomer?"CUSTOMER_BASE":"VENDOR",texts:{},namespace:"apps/"+e.reference.replace(".Component","")+"/changes/",projectId:e.projectId,creation:e.creation||new Date().valueOf(),originalLanguage:"",support:{generator:Vg+e.creatingTool,service:"",user:"",sapui5Version:e.sapui5Version,sourceChangeFileName:"",compositeCommand:""},oDataInformation:{},dependentSelector:{},validAppVersions:{from:e.appVersion,to:e.appVersion,creation:e.appVersion},jsOnly:!1,variantReference:"",appDescriptorChange:!1})}r(Lg,"createString");jg.exports={parse:r(function(e){let t=JSON.parse(e);if(!t.fileName||!t.changeType||!t.selector||!t.reference||!t.creation||!t.content||!t.layer||!t.support)throw Error("Parsed object does not contain all required parameters");return{id:t.fileName,reference:t.reference,appVersion:t.validAppVersions?t.validAppVersions.creation:"",creation:t.creation,projectId:t.projectId,type:t.changeType,controlId:t.selector.id,controlType:t.selector.type,isCustomer:t.layer==="CUSTOMER_BASE",creatingTool:t.support.generator.replace(Vg,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:r(function(e,t){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool)throw Error("not all property parameters of the change were provided");if(!t)throw Error("no manifest was provided");return e.reference=_v(t),e.appVersion=Mv(t),e.projectId=kv(t,e.reference),Lg(e)},"createChangeString"),toString:r(function(e){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool||!(e.reference&&e.appVersion))throw Error("not all parameters of the change were provided");return Lg(e)},"toString")}});var wg=Ie((RE,Rg)=>{Rg.exports={change:Dg()}});var Fm=Ie(_t=>{"use strict";var uS=/[|\\{}()[\]^$+*?.]/g,dS=Object.prototype.hasOwnProperty,tl=r(function(e,t){return dS.apply(e,[t])},"hasOwn");_t.escapeRegExpChars=function(e){return e?String(e).replace(uS,"\\$&"):""};var gS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},mS=/[&<>'"]/g;function yS(e){return gS[e]||e}r(yS,"encode_char");var hS=`var _ENCODE_HTML_RULES = {
30
30
  "&": "&amp;"
31
31
  , "<": "&lt;"
32
32
  , ">": "&gt;"
@@ -37,17 +37,17 @@ Actual: `+h.attribValue);else{var se=h.tag,ke=h.tags[h.tags.length-1]||h;se.ns==
37
37
  function encode_char(c) {
38
38
  return _ENCODE_HTML_RULES[c] || c;
39
39
  };
40
- `;_t.escapeXML=function(e){return e==null?"":String(e).replace(lS,pS)};function Pm(){return Function.prototype.toString.call(this)+`;
41
- `+fS}r(Pm,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(_t.escapeXML,"toString",{value:Pm}):_t.escapeXML.toString=Pm}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}_t.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)Yc(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};_t.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},e!=null)for(var i=0;i<n.length;i++){var o=n[i];if(typeof t[o]<"u"){if(!Yc(t,o)||o==="__proto__"||o==="constructor")continue;e[o]=t[o]}}return e};_t.cache={_data:{},set:r(function(e,t){this._data[e]=t},"set"),get:r(function(e){return this._data[e]},"get"),remove:r(function(e){delete this._data[e]},"remove"),reset:r(function(){this._data={}},"reset")};_t.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};_t.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();_t.hasOwnOnlyObject=function(e){var t=_t.createNullProtoObjWherePossible();for(var n in e)Yc(e,n)&&(t[n]=e[n]);return t}});var Em=Ie((JI,uS)=>{uS.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.10",author:"Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",license:"Apache-2.0",bin:{ejs:"./bin/cli.js"},main:"./lib/ejs.js",jsdelivr:"ejs.min.js",unpkg:"ejs.min.js",repository:{type:"git",url:"git://github.com/mde/ejs.git"},bugs:"https://github.com/mde/ejs/issues",homepage:"https://github.com/mde/ejs",dependencies:{jake:"^10.8.5"},devDependencies:{browserify:"^16.5.1",eslint:"^6.8.0","git-directory-deploy":"^1.5.1",jsdoc:"^4.0.2","lru-cache":"^4.0.1",mocha:"^10.2.0","uglify-js":"^3.3.16"},engines:{node:">=0.10.0"},scripts:{test:"npx jake test"}}});var Rm=Ie(Se=>{"use strict";var el=require("fs"),Xo=require("path"),Ke=Am(),Im=!1,dS=Em().version,gS="<",mS=">",yS="%",jm="locals",hS="ejs",bS="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",Dm=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],TS=Dm.concat("cache"),Om=/^\uFEFF/,Zc=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Se.cache=Ke.cache;Se.fileLoader=el.readFileSync;Se.localsName=jm;Se.promiseImpl=new Function("return this;")().Promise;Se.resolveInclude=function(e,t,n){var i=Xo.dirname,o=Xo.extname,a=Xo.resolve,s=a(n?t:i(t),e),c=o(e);return c||(s+=".ejs"),s};function Fm(e,t){var n;if(t.some(function(i){return n=Se.resolveInclude(e,i,!0),el.existsSync(n)}))return n}r(Fm,"resolvePaths");function vS(e,t){var n,i,o=t.views,a=/^[A-Za-z]+:\\|^\//.exec(e);if(a&&a.length)e=e.replace(/^\/*/,""),Array.isArray(t.root)?n=Fm(e,t.root):n=Se.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=Se.resolveInclude(e,t.filename),el.existsSync(i)&&(n=i)),!n&&Array.isArray(o)&&(n=Fm(e,o)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}r(vS,"getIncludePath");function qo(e,t){var n,i=e.filename,o=arguments.length>1;if(e.cache){if(!i)throw new Error("cache option requires a filename");if(n=Se.cache.get(i),n)return n;o||(t=Nm(i).toString().replace(Om,""))}else if(!o){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=Nm(i).toString().replace(Om,"")}return n=Se.compile(t,e),e.cache&&Se.cache.set(i,n),n}r(qo,"handleCache");function SS(e,t,n){var i;if(n){try{i=qo(e)(t)}catch(o){return n(o)}n(null,i)}else{if(typeof Se.promiseImpl=="function")return new Se.promiseImpl(function(o,a){try{i=qo(e)(t),o(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}r(SS,"tryHandleCache");function Nm(e){return Se.fileLoader(e)}r(Nm,"fileLoader");function xS(e,t){var n=Ke.shallowCopy(Ke.createNullProtoObjWherePossible(),t);if(n.filename=vS(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return qo(n,i.template)}return qo(n)}r(xS,"includeFile");function Lm(e,t,n,i,o){var a=t.split(`
40
+ `;_t.escapeXML=function(e){return e==null?"":String(e).replace(mS,yS)};function Om(){return Function.prototype.toString.call(this)+`;
41
+ `+hS}r(Om,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(_t.escapeXML,"toString",{value:Om}):_t.escapeXML.toString=Om}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}_t.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)tl(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};_t.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},e!=null)for(var i=0;i<n.length;i++){var o=n[i];if(typeof t[o]<"u"){if(!tl(t,o)||o==="__proto__"||o==="constructor")continue;e[o]=t[o]}}return e};_t.cache={_data:{},set:r(function(e,t){this._data[e]=t},"set"),get:r(function(e){return this._data[e]},"get"),remove:r(function(e){delete this._data[e]},"remove"),reset:r(function(){this._data={}},"reset")};_t.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};_t.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();_t.hasOwnOnlyObject=function(e){var t=_t.createNullProtoObjWherePossible();for(var n in e)tl(e,n)&&(t[n]=e[n]);return t}});var Nm=Ie((ZI,bS)=>{bS.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.10",author:"Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",license:"Apache-2.0",bin:{ejs:"./bin/cli.js"},main:"./lib/ejs.js",jsdelivr:"ejs.min.js",unpkg:"ejs.min.js",repository:{type:"git",url:"git://github.com/mde/ejs.git"},bugs:"https://github.com/mde/ejs/issues",homepage:"https://github.com/mde/ejs",dependencies:{jake:"^10.8.5"},devDependencies:{browserify:"^16.5.1",eslint:"^6.8.0","git-directory-deploy":"^1.5.1",jsdoc:"^4.0.2","lru-cache":"^4.0.1",mocha:"^10.2.0","uglify-js":"^3.3.16"},engines:{node:">=0.10.0"},scripts:{test:"npx jake test"}}});var Mm=Ie(Se=>{"use strict";var il=require("fs"),qo=require("path"),Ke=Fm(),Lm=!1,TS=Nm().version,vS="<",SS=">",xS="%",$m="locals",CS="ejs",PS="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",_m=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],AS=_m.concat("cache"),Vm=/^\uFEFF/,nl=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Se.cache=Ke.cache;Se.fileLoader=il.readFileSync;Se.localsName=$m;Se.promiseImpl=new Function("return this;")().Promise;Se.resolveInclude=function(e,t,n){var i=qo.dirname,o=qo.extname,a=qo.resolve,s=a(n?t:i(t),e),c=o(e);return c||(s+=".ejs"),s};function jm(e,t){var n;if(t.some(function(i){return n=Se.resolveInclude(e,i,!0),il.existsSync(n)}))return n}r(jm,"resolvePaths");function ES(e,t){var n,i,o=t.views,a=/^[A-Za-z]+:\\|^\//.exec(e);if(a&&a.length)e=e.replace(/^\/*/,""),Array.isArray(t.root)?n=jm(e,t.root):n=Se.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=Se.resolveInclude(e,t.filename),il.existsSync(i)&&(n=i)),!n&&Array.isArray(o)&&(n=jm(e,o)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}r(ES,"getIncludePath");function zo(e,t){var n,i=e.filename,o=arguments.length>1;if(e.cache){if(!i)throw new Error("cache option requires a filename");if(n=Se.cache.get(i),n)return n;o||(t=Dm(i).toString().replace(Vm,""))}else if(!o){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=Dm(i).toString().replace(Vm,"")}return n=Se.compile(t,e),e.cache&&Se.cache.set(i,n),n}r(zo,"handleCache");function IS(e,t,n){var i;if(n){try{i=zo(e)(t)}catch(o){return n(o)}n(null,i)}else{if(typeof Se.promiseImpl=="function")return new Se.promiseImpl(function(o,a){try{i=zo(e)(t),o(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}r(IS,"tryHandleCache");function Dm(e){return Se.fileLoader(e)}r(Dm,"fileLoader");function OS(e,t){var n=Ke.shallowCopy(Ke.createNullProtoObjWherePossible(),t);if(n.filename=ES(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return zo(n,i.template)}return zo(n)}r(OS,"includeFile");function Rm(e,t,n,i,o){var a=t.split(`
42
42
  `),s=Math.max(i-3,0),c=Math.min(a.length,i+3),l=o(n),p=a.slice(s,c).map(function(u,f){var d=f+s+1;return(d==i?" >> ":" ")+d+"| "+u}).join(`
43
43
  `);throw e.path=l,e.message=(l||"ejs")+":"+i+`
44
44
  `+p+`
45
45
 
46
- `+e.message,e}r(Lm,"rethrow");function Vm(e){return e.replace(/;(\s*$)/,"$1")}r(Vm,"stripSemi");Se.compile=r(function(t,n){var i;return n&&n.scope&&(Im||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),Im=!0),n.context||(n.context=n.scope),delete n.scope),i=new Ye(t,n),i.compile()},"compile");Se.render=function(e,t,n){var i=t||Ke.createNullProtoObjWherePossible(),o=n||Ke.createNullProtoObjWherePossible();return arguments.length==2&&Ke.shallowCopyFromList(o,i,Dm),qo(o,e)(i)};Se.renderFile=function(){var e=Array.prototype.slice.call(arguments),t=e.shift(),n,i={filename:t},o,a;return typeof arguments[arguments.length-1]=="function"&&(n=e.pop()),e.length?(o=e.shift(),e.length?Ke.shallowCopy(i,e.pop()):(o.settings&&(o.settings.views&&(i.views=o.settings.views),o.settings["view cache"]&&(i.cache=!0),a=o.settings["view options"],a&&Ke.shallowCopy(i,a)),Ke.shallowCopyFromList(i,o,TS)),i.filename=t):o=Ke.createNullProtoObjWherePossible(),SS(i,o,n)};Se.Template=Ye;Se.clearCache=function(){Se.cache.reset()};function Ye(e,t){var n=Ke.hasOwnOnlyObject(t),i=Ke.createNullProtoObjWherePossible();this.templateText=e,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",i.client=n.client||!1,i.escapeFunction=n.escape||n.escapeFunction||Ke.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||Se.openDelimiter||gS,i.closeDelimiter=n.closeDelimiter||Se.closeDelimiter||mS,i.delimiter=n.delimiter||Se.delimiter||yS,i.strict=n.strict||!1,i.context=n.context,i.cache=n.cache||!1,i.rmWhitespace=n.rmWhitespace,i.root=n.root,i.includer=n.includer,i.outputFunctionName=n.outputFunctionName,i.localsName=n.localsName||Se.localsName||jm,i.views=n.views,i.async=n.async,i.destructuredLocals=n.destructuredLocals,i.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,i.strict?i._with=!1:i._with=typeof n._with<"u"?n._with:!0,this.opts=i,this.regex=this.createRegex()}r(Ye,"Template");Ye.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Ye.prototype={createRegex:r(function(){var e=bS,t=Ke.escapeRegExpChars(this.opts.delimiter),n=Ke.escapeRegExpChars(this.opts.openDelimiter),i=Ke.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,n).replace(/>/g,i),new RegExp(e)},"createRegex"),compile:r(function(){var e,t,n=this.opts,i="",o="",a=n.escapeFunction,s,c=n.filename?JSON.stringify(n.filename):"undefined";if(!this.source){if(this.generateSource(),i+=` var __output = "";
46
+ `+e.message,e}r(Rm,"rethrow");function wm(e){return e.replace(/;(\s*$)/,"$1")}r(wm,"stripSemi");Se.compile=r(function(t,n){var i;return n&&n.scope&&(Lm||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),Lm=!0),n.context||(n.context=n.scope),delete n.scope),i=new Ye(t,n),i.compile()},"compile");Se.render=function(e,t,n){var i=t||Ke.createNullProtoObjWherePossible(),o=n||Ke.createNullProtoObjWherePossible();return arguments.length==2&&Ke.shallowCopyFromList(o,i,_m),zo(o,e)(i)};Se.renderFile=function(){var e=Array.prototype.slice.call(arguments),t=e.shift(),n,i={filename:t},o,a;return typeof arguments[arguments.length-1]=="function"&&(n=e.pop()),e.length?(o=e.shift(),e.length?Ke.shallowCopy(i,e.pop()):(o.settings&&(o.settings.views&&(i.views=o.settings.views),o.settings["view cache"]&&(i.cache=!0),a=o.settings["view options"],a&&Ke.shallowCopy(i,a)),Ke.shallowCopyFromList(i,o,AS)),i.filename=t):o=Ke.createNullProtoObjWherePossible(),IS(i,o,n)};Se.Template=Ye;Se.clearCache=function(){Se.cache.reset()};function Ye(e,t){var n=Ke.hasOwnOnlyObject(t),i=Ke.createNullProtoObjWherePossible();this.templateText=e,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",i.client=n.client||!1,i.escapeFunction=n.escape||n.escapeFunction||Ke.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||Se.openDelimiter||vS,i.closeDelimiter=n.closeDelimiter||Se.closeDelimiter||SS,i.delimiter=n.delimiter||Se.delimiter||xS,i.strict=n.strict||!1,i.context=n.context,i.cache=n.cache||!1,i.rmWhitespace=n.rmWhitespace,i.root=n.root,i.includer=n.includer,i.outputFunctionName=n.outputFunctionName,i.localsName=n.localsName||Se.localsName||$m,i.views=n.views,i.async=n.async,i.destructuredLocals=n.destructuredLocals,i.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,i.strict?i._with=!1:i._with=typeof n._with<"u"?n._with:!0,this.opts=i,this.regex=this.createRegex()}r(Ye,"Template");Ye.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Ye.prototype={createRegex:r(function(){var e=PS,t=Ke.escapeRegExpChars(this.opts.delimiter),n=Ke.escapeRegExpChars(this.opts.openDelimiter),i=Ke.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,n).replace(/>/g,i),new RegExp(e)},"createRegex"),compile:r(function(){var e,t,n=this.opts,i="",o="",a=n.escapeFunction,s,c=n.filename?JSON.stringify(n.filename):"undefined";if(!this.source){if(this.generateSource(),i+=` var __output = "";
47
47
  function __append(s) { if (s !== undefined && s !== null) __output += s }
48
- `,n.outputFunctionName){if(!Zc.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
49
- `}if(n.localsName&&!Zc.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){for(var l=" var __locals = ("+n.localsName+` || {}),
50
- `,p=0;p<n.destructuredLocals.length;p++){var u=n.destructuredLocals[p];if(!Zc.test(u))throw new Error("destructuredLocals["+p+"] is not a valid JS identifier.");p>0&&(l+=`,
48
+ `,n.outputFunctionName){if(!nl.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
49
+ `}if(n.localsName&&!nl.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){for(var l=" var __locals = ("+n.localsName+` || {}),
50
+ `,p=0;p<n.destructuredLocals.length;p++){var u=n.destructuredLocals[p];if(!nl.test(u))throw new Error("destructuredLocals["+p+"] is not a valid JS identifier.");p>0&&(l+=`,
51
51
  `),l+=u+" = __locals."+u}i+=l+`;
52
52
  `}n._with!==!1&&(i+=" with ("+n.localsName+` || {}) {
53
53
  `,o+=` }
@@ -60,7 +60,7 @@ try {
60
60
  rethrow(e, __lines, __filename, __line, escapeFn);
61
61
  }
62
62
  `:e=this.source,n.client&&(e="escapeFn = escapeFn || "+a.toString()+`;
63
- `+e,n.compileDebug&&(e="rethrow = rethrow || "+Lm.toString()+`;
63
+ `+e,n.compileDebug&&(e="rethrow = rethrow || "+Rm.toString()+`;
64
64
  `+e)),n.strict&&(e=`"use strict";
65
65
  `+e),n.debug&&console.log(e),n.compileDebug&&n.filename&&(e=e+`
66
66
  //# sourceURL=`+c+`
@@ -68,7 +68,7 @@ try {
68
68
 
69
69
  `,x.message+=`If the above error is not helpful, you may want to try EJS-Lint:
70
70
  `,x.message+="https://github.com/RyanZim/EJS-Lint",n.async||(x.message+=`
71
- `,x.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),x}var f=n.client?t:r(function(I){var O=r(function($,re){var q=Ke.shallowCopy(Ke.createNullProtoObjWherePossible(),I);return re&&(q=Ke.shallowCopy(q,re)),xS($,n)(q)},"include");return t.apply(n.context,[I||Ke.createNullProtoObjWherePossible(),a,O,Lm])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var d=n.filename,b=Xo.basename(d,Xo.extname(d));try{Object.defineProperty(f,"name",{value:b,writable:!1,enumerable:!1,configurable:!0})}catch{}}return f},"compile"),generateSource:r(function(){var e=this.opts;e.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
71
+ `,x.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),x}var f=n.client?t:r(function(I){var O=r(function(_,ie){var q=Ke.shallowCopy(Ke.createNullProtoObjWherePossible(),I);return ie&&(q=Ke.shallowCopy(q,ie)),OS(_,n)(q)},"include");return t.apply(n.context,[I||Ke.createNullProtoObjWherePossible(),a,O,Rm])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var d=n.filename,b=qo.basename(d,qo.extname(d));try{Object.defineProperty(f,"name",{value:b,writable:!1,enumerable:!1,configurable:!0})}catch{}}return f},"compile"),generateSource:r(function(){var e=this.opts;e.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
72
72
  `).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var t=this,n=this.parseTemplateText(),i=this.opts.delimiter,o=this.opts.openDelimiter,a=this.opts.closeDelimiter;n&&n.length&&n.forEach(function(s,c){var l;if(s.indexOf(o+i)===0&&s.indexOf(o+i+i)!==0&&(l=n[c+2],!(l==i+a||l=="-"+i+a||l=="_"+i+a)))throw new Error('Could not find matching close tag for "'+s+'".');t.scanLine(s)})},"generateSource"),parseTemplateText:r(function(){for(var e=this.templateText,t=this.regex,n=t.exec(e),i=[],o;n;)o=n.index,o!==0&&(i.push(e.substring(0,o)),e=e.slice(o)),i.push(n[0]),e=e.slice(n[0].length),n=t.exec(e);return e&&i.push(e),i},"parseTemplateText"),_addOutput:r(function(e){if(this.truncate&&(e=e.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!e)return e;e=e.replace(/\\/g,"\\\\"),e=e.replace(/\n/g,"\\n"),e=e.replace(/\r/g,"\\r"),e=e.replace(/"/g,'\\"'),this.source+=' ; __append("'+e+`")
73
73
  `},"_addOutput"),scanLine:r(function(e){var t=this,n=this.opts.delimiter,i=this.opts.openDelimiter,o=this.opts.closeDelimiter,a=0;switch(a=e.split(`
74
74
  `).length-1,e){case i+n:case i+n+"_":this.mode=Ye.modes.EVAL;break;case i+n+"=":this.mode=Ye.modes.ESCAPED;break;case i+n+"-":this.mode=Ye.modes.RAW;break;case i+n+"#":this.mode=Ye.modes.COMMENT;break;case i+n+n:this.mode=Ye.modes.LITERAL,this.source+=' ; __append("'+e.replace(i+n+n,i+n)+`")
@@ -76,16 +76,16 @@ try {
76
76
  `;break;case n+o:case"-"+n+o:case"_"+n+o:this.mode==Ye.modes.LITERAL&&this._addOutput(e),this.mode=null,this.truncate=e.indexOf("-")===0||e.indexOf("_")===0;break;default:if(this.mode){switch(this.mode){case Ye.modes.EVAL:case Ye.modes.ESCAPED:case Ye.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf(`
77
77
  `)&&(e+=`
78
78
  `)}switch(this.mode){case Ye.modes.EVAL:this.source+=" ; "+e+`
79
- `;break;case Ye.modes.ESCAPED:this.source+=" ; __append(escapeFn("+Vm(e)+`))
80
- `;break;case Ye.modes.RAW:this.source+=" ; __append("+Vm(e)+`)
79
+ `;break;case Ye.modes.ESCAPED:this.source+=" ; __append(escapeFn("+wm(e)+`))
80
+ `;break;case Ye.modes.RAW:this.source+=" ; __append("+wm(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")};Se.escapeXML=Ke.escapeXML;Se.__express=Se.renderFile;Se.VERSION=dS;Se.name=hS;typeof window<"u"&&(window.ejs=Se)});var On={};$r(On,{deleteConfigEntityByPath:()=>zP,exportConfig:()=>XP,exportConfigEntityByPath:()=>qP,generateSchema:()=>QP,getApiVersion:()=>tA,getChanges:()=>Xy,getGenericSchema:()=>Vs,getPathToGenericSchema:()=>wy,getProject:()=>sA,importConfig:()=>YP,importProject:()=>ZP,importProjectSchema:()=>eA,isDirectory:()=>iA,log:()=>Q,readDirectory:()=>Kp});module.exports=lh(On);var xe=M(W());var L=M(W());var ie=r(e=>typeof e=="string","isString"),To=r(()=>{let e,t,n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n},"defer"),Ru=r(e=>e==null?"":""+e,"makeString"),db=r((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),gb=/###/g,wu=r(e=>e&&e.indexOf("###")>-1?e.replace(gb,"."):e,"cleanKey"),$u=r(e=>!e||ie(e),"canNotTraverseDeeper"),vo=r((e,t,n)=>{let i=ie(t)?t.split("."):t,o=0;for(;o<i.length-1;){if($u(e))return{};let a=wu(i[o]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return $u(e)?{}:{obj:e,k:wu(i[o])}},"getLastOfPath"),_u=r((e,t,n)=>{let{obj:i,k:o}=vo(e,t,Object);if(i!==void 0||t.length===1){i[o]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),c=vo(e,s,Object);for(;c.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),c=vo(e,s,Object),c&&c.obj&&typeof c.obj[`${c.k}.${a}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${a}`]=n},"setPath"),mb=r((e,t,n,i)=>{let{obj:o,k:a}=vo(e,t,Object);o[a]=o[a]||[],o[a].push(n)},"pushPath"),Mr=r((e,t)=>{let{obj:n,k:i}=vo(e,t);if(n)return n[i]},"getPath"),yb=r((e,t,n)=>{let i=Mr(e,n);return i!==void 0?i:Mr(t,n)},"getPathWithDefaults"),Hu=r((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?ie(e[i])||e[i]instanceof String||ie(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):Hu(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),wi=r(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),hb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},bb=r(e=>ie(e)?e.replace(/[&<>"'\/]/g,t=>hb[t]):e,"escape"),Js=class Js{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}};r(Js,"RegExpCache");var ks=Js,Tb=[" ",",","?","!",";"],vb=new ks(20),Sb=r((e,t,n)=>{t=t||"",n=n||"";let i=Tb.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let o=vb.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!o.test(e);if(!a){let s=e.indexOf(n);s>0&&!o.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),Us=r(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),o=e;for(let a=0;a<i.length;){if(!o||typeof o!="object")return;let s,c="";for(let l=a;l<i.length;++l)if(l!==a&&(c+=n),c+=i[l],s=o[c],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<i.length-1)continue;a+=l-a+1;break}o=s}return o},"deepFind"),kr=r(e=>e&&e.replace("_","-"),"getCleanedCode"),xb={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)}},So=class So{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||xb,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,o){return o&&!this.debug?null:(ie(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new So(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new So(this.logger,t)}};r(So,"Logger");var Bs=So,qt=new Bs,Qs=class Qs{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let o=this.observers[i].get(n)||0;this.observers[i].set(n,o+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),o=1;o<n;o++)i[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[c,l]=s;for(let p=0;p<l;p++)c(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[c,l]=s;for(let p=0;p<l;p++)c.apply(c,[t,...i])})}};r(Qs,"EventEmitter");var _i=Qs,Xs=class Xs extends _i{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 o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],i&&(Array.isArray(i)?c.push(...i):ie(i)&&a?c.push(...i.split(a)):c.push(i)));let l=Mr(this.data,c);return!l&&!n&&!i&&t.indexOf(".")>-1&&(t=c[0],n=c[1],i=c.slice(2).join(".")),l||!s||!ie(i)?l:Us(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,o){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,c=[t,n];i&&(c=c.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(c=t.split("."),o=n,n=c[1]),this.addNamespaces(n),_u(this.data,c,o),a.silent||this.emit("added",t,n,i,o)}addResources(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(ie(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});o.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,o,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),o=i,i=n,n=c[1]),this.addNamespaces(n);let l=Mr(this.data,c)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),o?Hu(l,i,a):l={...l,...i},_u(this.data,c,l),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(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}};r(Xs,"ResourceStore");var Ur=Xs,Wu={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,o){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,o))}),t}},Mu={},Wr=class Wr extends _i{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),db(["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 o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Sb(t,i,o);if(s&&!c){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:ie(a)?[a]:a};let p=t.split(i);(i!==o||i===o&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(o)}return{key:t,namespaces:ie(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 o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],n),l=c[c.length-1],p=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(u){let te=n.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${te}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${te}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}let f=this.resolve(t,n),d=f&&f.res,b=f&&f.usedKey||s,x=f&&f.exactUsedKey||s,I=Object.prototype.toString.apply(d),O=["[object Number]","[object Function]","[object RegExp]"],$=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,re=!this.i18nFormat||this.i18nFormat.handleAsObject,q=!ie(d)&&typeof d!="boolean"&&typeof d!="number";if(re&&d&&q&&O.indexOf(I)<0&&!(ie($)&&Array.isArray(d))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let te=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,d,{...n,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(f.res=te,f.usedParams=this.getUsedParamsDetails(n),f):te}if(a){let te=Array.isArray(d),J=te?[]:{},ce=te?x:b;for(let Pe in d)if(Object.prototype.hasOwnProperty.call(d,Pe)){let S=`${ce}${a}${Pe}`;J[Pe]=this.translate(S,{...n,joinArrays:!1,ns:c}),J[Pe]===S&&(J[Pe]=d[Pe])}d=J}}else if(re&&ie($)&&Array.isArray(d))d=d.join($),d&&(d=this.extendTranslation(d,t,n,i));else{let te=!1,J=!1,ce=n.count!==void 0&&!ie(n.count),Pe=Wr.hasDefaultValue(n),S=ce?this.pluralResolver.getSuffix(p,n.count,n):"",pn=n.ordinal&&ce?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",Qt=ce&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Ee=Qt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${S}`]||n[`defaultValue${pn}`]||n.defaultValue;!this.isValidLookup(d)&&Pe&&(te=!0,d=Ee),this.isValidLookup(d)||(J=!0,d=s);let Vi=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&J?void 0:d,ht=Pe&&Ee!==d&&this.options.updateMissing;if(J||te||ht){if(this.logger.log(ht?"updateKey":"missingKey",p,l,s,ht?Ee:d),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 jt=[],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++)jt.push(ye[Je]);else this.options.saveMissingTo==="all"?jt=this.languageUtils.toResolveHierarchy(n.lng||this.language):jt.push(n.lng||this.language);let ii=r((Je,bt,ot)=>{let fn=Pe&&ot!==d?ot:Vi;this.options.missingKeyHandler?this.options.missingKeyHandler(Je,l,bt,fn,ht,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Je,l,bt,fn,ht,n),this.emit("missingKey",Je,l,bt,d)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&ce?jt.forEach(Je=>{let bt=this.pluralResolver.getSuffixes(Je,n);Qt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&bt.indexOf(`${this.options.pluralSeparator}zero`)<0&&bt.push(`${this.options.pluralSeparator}zero`),bt.forEach(ot=>{ii([Je],s+ot,n[`defaultValue${ot}`]||Ee)})}):ii(jt,s,Ee))}d=this.extendTranslation(d,t,n,f,i),J&&d===s&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${s}`),(J||te)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,te?d:void 0):d=this.options.parseMissingKeyHandler(d))}return o?(f.res=d,f.usedParams=this.getUsedParamsDetails(n),f):d}extendTranslation(t,n,i,o,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let p=ie(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),u;if(p){let d=t.match(this.interpolator.nestingRegexp);u=d&&d.length}let f=i.replace&&!ie(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,i.lng||this.language||o.usedLng,i),p){let d=t.match(this.interpolator.nestingRegexp),b=d&&d.length;u<b&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(i.lng=this.language||o.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var d=arguments.length,b=new Array(d),x=0;x<d;x++)b[x]=arguments[x];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 c=i.postProcess||this.options.postProcess,l=ie(c)?[c]:c;return t!=null&&l&&l.length&&i.applyPostProcessor!==!1&&(t=Wu.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,o,a,s,c;return ie(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(l,n),u=p.key;o=u;let f=p.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));let d=n.count!==void 0&&!ie(n.count),b=d&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),x=n.context!==void 0&&(ie(n.context)||typeof n.context=="number")&&n.context!=="",I=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(O=>{this.isValidLookup(i)||(c=O,!Mu[`${I[0]}-${O}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(c)&&(Mu[`${I[0]}-${O}`]=!0,this.logger.warn(`key "${o}" for languages "${I.join(", ")}" won't get resolved as namespace "${c}" 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($=>{if(this.isValidLookup(i))return;s=$;let re=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(re,u,$,O,n);else{let te;d&&(te=this.pluralResolver.getSuffix($,n.count,n));let J=`${this.options.pluralSeparator}zero`,ce=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(re.push(u+te),n.ordinal&&te.indexOf(ce)===0&&re.push(u+te.replace(ce,this.options.pluralSeparator)),b&&re.push(u+J)),x){let Pe=`${u}${this.options.contextSeparator}${n.context}`;re.push(Pe),d&&(re.push(Pe+te),n.ordinal&&te.indexOf(ce)===0&&re.push(Pe+te.replace(ce,this.options.pluralSeparator)),b&&re.push(Pe+J))}}let q;for(;q=re.pop();)this.isValidLookup(i)||(a=q,i=this.getResource($,O,q,n))}))})}),{res:i,usedKey:o,exactUsedKey:a,usedLng:s,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,o):this.resourceStore.getResource(t,n,i,o)}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&&!ie(t.replace),o=i?t.replace:t;if(i&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!i){o={...o};for(let a of n)delete o[a]}return o}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}};r(Wr,"Translator");var Br=Wr,_s=r(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),qs=class qs{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=qt.create("languageUtils")}getScriptPartFromCode(t){if(t=kr(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=kr(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(ie(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let o=Intl.getCanonicalLocales(t)[0];if(o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o)return o}catch{}let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(o=>o.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=_s(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]=_s(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=_s(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 o=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let o=this.getLanguagePartFromCode(i);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(a=>{if(a===o)return a;if(!(a.indexOf("-")<0&&o.indexOf("-")<0)&&(a.indexOf("-")>0&&o.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===o||a.indexOf(o)===0&&o.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)),ie(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),o=[],a=r(s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return ie(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))):ie(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{o.indexOf(s)<0&&a(this.formatLanguageCode(s))}),o}};r(qs,"LanguageUtil");var Gr=qs,Cb=[{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}],Pb={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},Ab=["v1","v2","v3"],Eb=["v4"],ku={zero:0,one:1,two:2,few:3,many:4,other:5},Ib=r(()=>{let e={};return Cb.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Pb[t.fc]}})}),e},"createRules"),zs=class zs{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||Eb.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=Ib(),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=kr(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:o});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:o})}catch{if(!t.match(/-|_/))return;let l=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(l,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(o=>`${n}${o}`)}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((o,a)=>ku[o]-ku[a]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):i.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(t,i);return o?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,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)),o=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));let a=r(()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.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!Ab.includes(this.options.compatibilityJSON)}};r(zs,"PluralResolver");var Gs=zs,Uu=r(function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=yb(e,t,n);return!a&&o&&ie(n)&&(a=Us(e,n,i),a===void 0&&(a=Us(t,n,i))),a},"deepFindWithDefaults"),Ms=r(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),Ys=class Ys{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:o,prefix:a,prefixEscaped:s,suffix:c,suffixEscaped:l,formatSeparator:p,unescapeSuffix:u,unescapePrefix:f,nestingPrefix:d,nestingPrefixEscaped:b,nestingSuffix:x,nestingSuffixEscaped:I,nestingOptionsSeparator:O,maxReplaces:$,alwaysFormat:re}=t.interpolation;this.escape=n!==void 0?n:bb,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?wi(a):s||"{{",this.suffix=c?wi(c):l||"}}",this.formatSeparator=p||",",this.unescapePrefix=u?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?wi(d):b||wi("$t("),this.nestingSuffix=x?wi(x):I||wi(")"),this.nestingOptionsSeparator=O||",",this.maxReplaces=$||1e3,this.alwaysFormat=re!==void 0?re:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=r((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,o){let a,s,c,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=r(b=>{if(b.indexOf(this.formatSeparator)<0){let $=Uu(n,l,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format($,void 0,i,{...o,...n,interpolationkey:b}):$}let x=b.split(this.formatSeparator),I=x.shift().trim(),O=x.join(this.formatSeparator).trim();return this.format(Uu(n,l,I,this.options.keySeparator,this.options.ignoreJSONStructure),O,i,{...o,...n,interpolationkey:I})},"handleFormat");this.resetRegExp();let u=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:r(b=>Ms(b),"safeValue")},{regex:this.regexp,safeValue:r(b=>this.escapeValue?Ms(this.escape(b)):Ms(b),"safeValue")}].forEach(b=>{for(c=0;a=b.regex.exec(t);){let x=a[1].trim();if(s=p(x),s===void 0)if(typeof u=="function"){let O=u(t,a,o);s=ie(O)?O:""}else if(o&&Object.prototype.hasOwnProperty.call(o,x))s="";else if(f){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${x} for interpolating ${t}`),s="";else!ie(s)&&!this.useRawValueToEscape&&(s=Ru(s));let I=b.safeValue(s);if(t=t.replace(a[0],I),f?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,a,s,c=r((l,p)=>{let u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;let f=l.split(new RegExp(`${u}[ ]*{`)),d=`{${f[1]}`;l=f[0],d=this.interpolate(d,s);let b=d.match(/'/g),x=d.match(/"/g);(b&&b.length%2===0&&!x||x.length%2!==0)&&(d=d.replace(/'/g,'"'));try{s=JSON.parse(d),p&&(s={...p,...s})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,I),`${l}${u}${d}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l},"handleHasOptions");for(;o=this.nestingRegexp.exec(t);){let l=[];s={...i},s=s.replace&&!ie(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){let u=o[1].split(this.formatSeparator).map(f=>f.trim());o[1]=u.shift(),l=u,p=!0}if(a=n(c.call(this,o[1].trim(),s),s),a&&o[0]===t&&!ie(a))return a;ie(a)||(a=Ru(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),p&&(a=l.reduce((u,f)=>this.format(u,f,i.lng,{...i,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}};r(Ys,"Interpolator");var Hs=Ys,Ob=r(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let o=i[1].substring(0,i[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(s=>{if(s){let[c,...l]=s.split(":"),p=l.join(":").trim().replace(/^'+|'+$/g,""),u=c.trim();n[u]||(n[u]=p),p==="false"&&(n[u]=!1),p==="true"&&(n[u]=!0),isNaN(p)||(n[u]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),$i=r(e=>{let t={};return(n,i,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={...a,[o.interpolationkey]:void 0});let s=i+JSON.stringify(a),c=t[s];return c||(c=e(kr(i),o),t[s]=c),c(n)}},"createCachedFormatter"),Zs=class Zs{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=qt.create("formatter"),this.options=t,this.formats={number:$i((n,i)=>{let o=new Intl.NumberFormat(n,{...i});return a=>o.format(a)}),currency:$i((n,i)=>{let o=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>o.format(a)}),datetime:$i((n,i)=>{let o=new Intl.DateTimeFormat(n,{...i});return a=>o.format(a)}),relativetime:$i((n,i)=>{let o=new Intl.RelativeTimeFormat(n,{...i});return a=>o.format(a,i.range||"day")}),list:$i((n,i)=>{let o=new Intl.ListFormat(n,{...i});return a=>o.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()]=$i(n)}format(t,n,i){let o=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(c=>c.indexOf(")")>-1)){let c=a.findIndex(l=>l.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,c)].join(this.formatSeparator)}return a.reduce((c,l)=>{let{formatName:p,formatOptions:u}=Ob(l);if(this.formats[p]){let f=c;try{let d=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},b=d.locale||d.lng||o.locale||o.lng||i;f=this.formats[p](c,b,{...u,...o,...d})}catch(d){this.logger.warn(d)}return f}else this.logger.warn(`there was no format function for ${p}`);return c},t)}};r(Zs,"Formatter");var Ws=Zs,Fb=r((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),ec=class ec extends _i{constructor(t,n,i){let o=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=o,this.logger=qt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,o.backend,o)}queueLoad(t,n,i,o){let a={},s={},c={},l={};return t.forEach(p=>{let u=!0;n.forEach(f=>{let d=`${p}|${f}`;!i.reload&&this.store.hasResourceBundle(p,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?s[d]===void 0&&(s[d]=!0):(this.state[d]=1,u=!1,s[d]===void 0&&(s[d]=!0),a[d]===void 0&&(a[d]=!0),l[f]===void 0&&(l[f]=!0)))}),u||(c[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(l)}}loaded(t,n,i){let o=t.split("|"),a=o[0],s=o[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 c={};this.queue.forEach(l=>{mb(l.loaded,[a],s),Fb(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(p=>{c[p]||(c[p]={});let u=l.loaded[p];u.length&&u.forEach(f=>{c[p][f]===void 0&&(c[p][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(l=>!l.done)}read(t,n,i){let o=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:o,wait:a,callback:s});return}this.readingCalls++;let c=r((p,u)=>{if(this.readingCalls--,this.waitingReads.length>0){let f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(p&&u&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,o+1,a*2,s)},a);return}s(p,u)},"resolver"),l=this.backend[i].bind(this.backend);if(l.length===2){try{let p=l(t,n);p&&typeof p.then=="function"?p.then(u=>c(null,u)).catch(c):c(null,p)}catch(p){c(p)}return}return l(t,n,c)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=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."),o&&o();ie(t)&&(t=this.languageUtils.toResolveHierarchy(t)),ie(n)&&(n=[n]);let a=this.queueLoad(t,n,i,o);if(!a.toLoad.length)return a.pending.length||o(),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("|"),o=i[0],a=i[1];this.read(o,a,"read",void 0,void 0,(s,c)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${o} failed`,s),!s&&c&&this.logger.log(`${n}loaded namespace ${a} for language ${o}`,c),this.loaded(t,s,c)})}saveMissing(t,n,i,o,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=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 l={...s,isUpdate:a},p=this.backend.create.bind(this.backend);if(p.length<6)try{let u;p.length===5?u=p(t,n,i,o,l):u=p(t,n,i,o),u&&typeof u.then=="function"?u.then(f=>c(null,f)).catch(c):c(null,u)}catch(u){c(u)}else p(t,n,i,o,c,l)}!t||!t[0]||this.store.addResource(t[0],n,i,o)}}};r(ec,"Connector");var Ks=ec,Bu=r(()=>({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:r(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),ie(e[1])&&(t.defaultValue=e[1]),ie(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:r(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),Gu=r(e=>(ie(e.ns)&&(e.ns=[e.ns]),ie(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ie(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),_r=r(()=>{},"noop"),Nb=r(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),xo=class xo extends _i{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Gu(t),this.services={},this.logger=qt,this.modules={external:[]},Nb(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&&(ie(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let o=Bu();this.options={...o,...this.options,...Gu(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);let a=r(u=>u?typeof u=="function"?new u:u:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?qt.init(a(this.modules.logger),this.options):qt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=Ws);let f=new Gr(this.options);this.store=new Ur(this.options.resources,this.options);let d=this.services;d.logger=qt,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new Gs(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(d.formatter=a(u),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Hs(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new Ks(a(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(b){for(var x=arguments.length,I=new Array(x>1?x-1:0),O=1;O<x;O++)I[O-1]=arguments[O];t.emit(b,...I)}),this.modules.languageDetector&&(d.languageDetector=a(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=a(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Br(this.services,this.options),this.translator.on("*",function(b){for(var x=arguments.length,I=new Array(x>1?x-1:0),O=1;O<x;O++)I[O-1]=arguments[O];t.emit(b,...I)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,i||(i=_r),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[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(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});let l=To(),p=r(()=>{let u=r((f,d)=>{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),l.resolve(d),i(f,d)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),l}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_r,o=ie(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=r(c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(p=>{p!=="cimode"&&a.indexOf(p)<0&&a.push(p)})},"append");o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(c=>s(c)),this.services.backendConnector.load(a,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(c)})}else i(null)}reloadResources(t,n,i){let o=To();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=_r),this.services.backendConnector.reload(t,n,a=>{o.resolve(),i(a)}),o}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"&&Wu.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 o=To();this.emit("languageChanging",t);let a=r(l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},"setLngProps"),s=r((l,p)=>{p?(a(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,o.resolve(function(){return i.t(...arguments)}),n&&n(l,function(){return i.t(...arguments)})},"done"),c=r(l=>{!t&&!l&&this.services.languageDetector&&(l=[]);let p=ie(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);p&&(this.language||a(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,u=>{s(u,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),o}getFixedT(t,n,i){var o=this;let a=r(function(s,c){let l;if(typeof c!="object"){for(var p=arguments.length,u=new Array(p>2?p-2:0),f=2;f<p;f++)u[f-2]=arguments[f];l=o.options.overloadTranslationOptionHandler([s,c].concat(u))}else l={...c};l.lng=l.lng||a.lng,l.lngs=l.lngs||a.lngs,l.ns=l.ns||a.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||i||a.keyPrefix);let d=o.options.keySeparator||".",b;return l.keyPrefix&&Array.isArray(s)?b=s.map(x=>`${l.keyPrefix}${d}${x}`):b=l.keyPrefix?`${l.keyPrefix}${d}${s}`:s,o.t(b,l)},"fixedT");return ie(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],o=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=r((c,l)=>{let p=this.services.backendConnector.state[`${c}|${l}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let c=n.precheck(this,s);if(c!==void 0)return c}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!o||s(a,t)))}loadNamespaces(t,n){let i=To();return this.options.ns?(ie(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{i.resolve(),n&&n(o)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=To();ie(t)&&(t=[t]);let o=this.options.preload||[],a=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=o.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 Gr(Bu());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 xo(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_r,i=t.forkResourceStore;i&&delete t.forkResourceStore;let o={...this.options,...t,isClone:!0},a=new xo(o);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(c=>{a[c]=this[c]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new Ur(this.store.data,o),a.services.resourceStore=a.store),a.translator=new Br(a.services,o),a.translator.on("*",function(c){for(var l=arguments.length,p=new Array(l>1?l-1:0),u=1;u<l;u++)p[u-1]=arguments[u];a.emit(c,...p)}),a.init(o,n),a.translator.options=o,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}}};r(xo,"I18n");var Hr=xo,w=Hr.createInstance();w.createInstance=Hr.createInstance;var yA=w.createInstance,hA=w.dir,bA=w.init,TA=w.loadResources,vA=w.reloadResources,SA=w.use,xA=w.changeLanguage,CA=w.getFixedT,PA=w.t,AA=w.exists,EA=w.setDefaultNamespace,IA=w.hasLoadedNamespace,OA=w.loadNamespaces,FA=w.loadLanguages;var sg=M(tc()),cg=M(bd()),fa=M(og()),ae=require("@sap-ux/vocabularies-types/vocabularies/UI"),Oo=require("@sap-ux/vocabularies-types/vocabularies/Communication");var vc=M(W());var Q=r((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(`${vc.logSeverityLabel[t.severity]}: ${t.message}; location: ${t.location}`,...n):console.log(`${vc.logSeverityLabel[t.severity]}: '${t.message}`,...n)},"log");var j="#/definitions/",Sc=r((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),Gt=r((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function ai(e,t){let n=[],i;return e&&e.forEach(function(o){try{n.push((0,fa.parse)(o.fileContent,o.dataSourceUri))}catch(a){return Q(t,{severity:L.LogSeverity.Error,message:w.t("ANNOERR"),location:{path:w.t("ANNOTATIONFILE",{file:o.dataSourceUri})}},a),i}}),n.length>0&&(i=(0,cg.convert)((0,fa.merge)(...n))),i}r(ai,"parseAndMergeAndConvert");var Gi=r(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function xc(e,t,n){var i,o,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 c=t&&t.resolvePath(e.Common.Label.path);c!=null&&c.value?n=c.value:typeof((o=c==null?void 0:c.Common)==null?void 0:o.Label)=="string"&&(n=c.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}r(xc,"evaluateCommonLabel");function lg(e,t){let n=e.value;return e.$target&&(n=xc(e.$target.annotations,t,n)),n}r(lg,"getLabelForPropertyPath");function pa(e,t){var o,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=(o=i==null?void 0:i.annotations)==null?void 0:o.Common)!=null&&a.Label&&(n=xc(i.annotations,t,n)),n}r(pa,"getLabelForDataField");function lv(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let o=t&&t.resolvePath(e.path);if(!o||o.length===0)return;{let a=o[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return xc(a.annotations,t,s)}}}else return}r(lv,"getLabel");function rg(e,t,n){let i=pa(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}r(rg,"getTitleForDataField");function Fo(e,t){var s,c,l,p;let n="",i,o,a="";try{let u=lv(e.Label,t);switch(e.$Type){case ae.UIAnnotationTypes.DataField:n=rg(e,t,u);break;case ae.UIAnnotationTypes.DataFieldWithUrl:i=pa(e,t),n=u||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:o=e,i=pa(e,t),n=u||i||((c=(s=o.Target)==null?void 0:s.$target)==null?void 0:c.Title)||((l=o.Target)==null?void 0:l.value.split("UI.v1.")[1]);break;case ae.UIAnnotationTypes.DataFieldForAction:case ae.UIAnnotationTypes.DataFieldWithAction:case ae.UIAnnotationTypes.DataFieldForIntentBasedNavigation:o=e,a=typeof e.Action=="string"?o.Action:(p=o.Action)==null?void 0:p.path,u?n=typeof u=="string"?u:a:n=a;break;case ae.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=pa(e,t),n=i||e.Value.path;break;case ae.UIAnnotationTypes.DataFieldWithNavigationPath:o=e,n=rg(o,t,u);break;default:break}return n}catch{return n}}r(Fo,"getDatafieldDescription");function _e(e){return e.replace("#","::").replace(/\//g,":2f")}r(_e,"prepareRef");function hn(e){if(e){let t=`${L.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}r(hn,"getPageTypeV2");function pv(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}r(pv,"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}r(Zt,"findAlias");function fv(e,t,n){var s,c;let i=e[e.length-1],o=i.substring(i.lastIndexOf(".")+1,i.length),a=Zt(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(c=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:c[o]}r(fv,"determineTargetAnnotation");function uv(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let o=e.split("::");o[o.length-1]=`${n?"":"@"}${ae.UIAnnotationTerms.LineItem}`,e=o.join("::")}else e=i.replace("@UI",`${n?"":"@"}${L.UIVOCABULARY}`);return e}r(uv,"adjustKey");function dv(e,t,n,i,o=L.FioriElementsVersion.v2,a=!1){var f,d;let s=!1,c,l=i.split("/"),p=l.length>1;p&&n&&(n=(f=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:f.targetType),t=uv(t,l,a);let u=fv(l,n,e);if(u){let b=o===L.FioriElementsVersion.v2?"::":"#";t=pv(u,a).replace("#",b),c=(d=u.fullyQualifiedName)==null?void 0:d.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:c};if(p){let b=o===L.FioriElementsVersion.v2?"::":"/";l.pop(),t=`${[...l].join(b)}${b}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:c}}r(dv,"getKeyAndEntityTypeOfReferenceFacet");function pg(e,t,n,i,o=L.FioriElementsVersion.v2,a=!1){var u,f,d;let s=(f=e.fullyQualifiedName)==null?void 0:f.substring((u=e.fullyQualifiedName)==null?void 0:u.lastIndexOf("@")),c=e.ID?e.ID.toString():s,l=(d=e.fullyQualifiedName)==null?void 0:d.split("@")[0],p=t;if(e.$Type!==ae.UIAnnotationTypes.CollectionFacet&&"Target"in e){let b=Gi(e.Target);if(!b){Q(i,{severity:L.LogSeverity.Error,message:w.t("NOTARGET",{target:e.Target})});return}let{key:x,entityType:I,stopProcessing:O,namespace:$}=dv(n,c,p,b,o,a);if(O)return;c=x,p=I,l=$}if(c=c.replace(/\//gi,"::"),c)return{key:c,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:l}}r(pg,"getSectionFacet");function Cc(e){let t,n,i;switch(e.$Type){case ae.UIAnnotationTypes.DataField:t=Gi(e.Value);break;case ae.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Gi(e.Value);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${L.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=Gi(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=Gi(e.Value),n=Gi(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}r(Cc,"getSchemaKeyOfLineItemRecord");function gv(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}r(gv,"getUIAnnotationTerm");function mv(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Oo.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Oo.CommunicationAnnotationTerms.Address:void 0}r(mv,"getCommunicationAnnotationTerm");function yv(e,t,n){return gv(e,t,n)||mv(e,t)}r(yv,"getAnnotationTerm");function hv(e,t,n,i,o){var p,u,f,d,b,x,I,O,$;let a=Zt(L.UIVOCABULARY,o),s=e?e.key:"",c=e.entityType;switch(yv(s,a,i)){case ae.UIAnnotationTerms.Chart:{n[s]={base:L.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.Identification:{n[s]={base:L.FacetBase.Identification},n[s].target=(u=t==null?void 0:t.Target)==null?void 0:u.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.LineItem:{if(!s.includes(ae.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let re=s.split("::");re[re.length-1]=`@${ae.UIAnnotationTerms.LineItem}`,s=re.join("::")}n[s]={base:L.FacetBase.LineItem},n[s].target=(f=t==null?void 0:t.Target)==null?void 0:f.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.FieldGroup:{n[s]={base:L.FacetBase.Form},n[s].target=(d=t==null?void 0:t.Target)==null?void 0:d.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.DataPoint:{n[s]={base:L.FacetBase.DataPoint},n[s].Label=(b=t==null?void 0:t.Target)==null?void 0:b.$target.Title,n[s].target=(x=t==null?void 0:t.Target)==null?void 0:x.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.PresentationVariant:{n[s]={base:L.FacetBase.PresentationVariant},n[s].target=(I=t==null?void 0:t.Target)==null?void 0:I.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case Oo.CommunicationAnnotationTerms.Contact:{n[s]={base:L.FacetBase.Contact},n[s].target=(O=t==null?void 0:t.Target)==null?void 0:O.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case Oo.CommunicationAnnotationTerms.Address:{n[s]={base:L.FacetBase.Address},n[s].target=($=t==null?void 0:t.Target)==null?void 0:$.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}default:n[s]={base:L.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",L.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}r(hv,"evaluateTargetAnnotation");function Pc(e,t,n,i,o,a=L.FioriElementsVersion.v2,s){var l;let c=pg(e,i,t,s,a,!1);if(c)switch(e.$Type){case ae.UIAnnotationTypes.ReferenceFacet:{hv(c,e,o,i,t);break}case ae.UIAnnotationTypes.CollectionFacet:{let p=`/${i.fullyQualifiedName}/${e.fullyQualifiedName.split(i.fullyQualifiedName)[1]}`,u=o[c.key]={base:L.FacetBase.CollectionFacet,facets:{},ID:c.ID,annotationPath:p,Label:c.label,namespace:c.namespace};(l=e.Facets)==null||l.forEach(f=>{Pc(f,t,n,i,u.facets,a,s)});break}}}r(Pc,"addFacetToConfig");function fg(e,t,n=L.FioriElementsVersion.v2,i){var c,l;let o={};if(!e||!e.annotations)return;let a=Zt(L.UIVOCABULARY,t),s=a&&((l=(c=e==null?void 0:e.annotations)==null?void 0:c[a])==null?void 0:l.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),u=e&&e.fullyQualifiedName.substring(0,p);s.forEach(f=>{Pc(f,t,u,e,o,n,i)})}return o}r(fg,"getObjectPageHeaderFacets");function ug(e,t,n=L.FioriElementsVersion.v2,i){var c;let o={};if(!e||!e.annotations)return;let a=Zt(L.UIVOCABULARY,t),s=a&&((c=e==null?void 0:e.annotations[a])==null?void 0:c.Facets);if(s){let l=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,l);s.forEach(u=>{Pc(u,t,p,e,o,n,i)})}return o}r(ug,"getObjectPageFacets");function Ac(e){return e[L.ManifestSection.generic]||e[L.ManifestSection.ovp]?L.FioriElementsVersion.v2:L.FioriElementsVersion.v4}r(Ac,"getFEVersionFromManifest");function bv(e){var n,i,o,a;let t=typeof((n=e==null?void 0:e[L.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[L.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(o=(i=e==null?void 0:e[L.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:o[t])==null?void 0:a.dataSource)=="string"?e[L.ManifestSection.ui5].models[t].dataSource:void 0}r(bv,"getMainService");function dg(e){var i,o;let t=bv(e);if(!t)return L.OdataVersion.v2;let n=(i=e[L.ManifestSection.app].dataSources)==null?void 0:i[t];return((o=n==null?void 0:n.settings)==null?void 0:o.odataVersion)==="4.0"?L.OdataVersion.v4:L.OdataVersion.v2}r(dg,"getODataVersionFromManifest");function Tv(e,t){var i,o;let n;if(e[L.ManifestSection.generic]){let a=e[L.ManifestSection.generic].pages;if(!a){Q(t,{severity:L.LogSeverity.Error,message:w.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:L.MANIFESTPATH,range:[L.ManifestSection.generic]}});return}for(let s in a){let c=a[s];if(hn((i=c.component)==null?void 0:i.name)===L.PageTypeV2.AnalyticalListPage){n=L.TemplateType.AnalyticalListPageV2;break}else if(hn((o=c.component)==null?void 0:o.name)===L.PageTypeV2.ListReport){n=L.TemplateType.ListReportObjectPageV2;break}}}else n||Q(t,{severity:L.LogSeverity.Error,message:w.t("NOTEMPLATE",{section:L.ManifestSection.generic}),location:{path:L.MANIFESTPATH,range:[L.ManifestSection.generic]}});return n}r(Tv,"determineV2Template");function si(e,t,n){let i;return e[L.ManifestSection.ovp]?i=L.TemplateType.OverviewPageV2:t===L.FioriElementsVersion.v2&&(i=Tv(e,n)),i}r(si,"getTemplateTypeFromManifest");function No(e,t,n){e!=null&&e.ID?(t.title=L.FACETTITLEPREFIX+e.ID,t[L.SchemaTag.keys]=[{name:L.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[L.SchemaTag.keys]=[{name:L.SchemaKeyName.id,value:n.replace(L.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}r(No,"addSectionTitleAndDescription");function vv(e,t,n){var i,o;No(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:(o=e==null?void 0:e.target)!=null&&o.Label&&(t.description=e.target.Label))}r(vv,"addTargetTitleAndSectionDescription");function ci(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[L.SchemaTag.isViewNode]=!0,i[L.SchemaTag.annotationPath]=t.annotationPath,vv(t,i,n),i}r(ci,"createDefaultSection");function gg(e,t,n,i=L.FioriElementsVersion.v2,o=!1){var c,l;let a=Zt(L.UIVOCABULARY,t),s=[];if(e){let p=a&&((l=(c=e==null?void 0:e.annotations)==null?void 0:c[a])==null?void 0:l.Facets);return p&&(s=p.reduce(function(u,f){if(o&&!f.ID&&!("Target"in f&&f.Target))return u;let d=pg(f,e,t,n,i,!0);return d&&u.push(d),u},s)),s}}r(gg,"getObjectPageFacetSection");var Lo=r((e,t,n,i,o,a)=>{if(!t)return;let s=e,c=t.split("/");c.forEach(function(l){let p=a&&a===l?o:l.replace("??","/");if(!(!s[p]&&(a===l&&(p=a),!s[p]))){if(Object.keys(s[p]).length===0||i&&i[i.length-1]===p&&n){Array.isArray(s)?s.splice(Number(p),1):delete s[p],c.pop(),Lo(e,c.join("/"),n,i,o,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),ag=r(e=>`${e}`,"getGenericSchemaFileName"),Ze=r((e,t)=>{let n={filename:"",path:""};switch(e){case L.SchemaType.Application:{n.filename="App",n.path=`./${L.DirName.Schemas}/${n.filename}`;break}case L.SchemaType.ListReport:case L.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:ag(e),n.path=`../${L.DirName.Schemas}/${n.filename}`;break}default:{n.filename=ag(e),n.path=`../${L.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function ua(e,t,n,i){if(e===L.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let o=[];return o.push(e),t?o.push(t):i&&o.push(i.replace("|","").replace(e,"")),o.join("_")}r(ua,"generatePageId");function Sv(e,t,n,i){let o=e.$ref;if(o){let a=o.split(j)[1];if(t.definitions[a]){let s=t.definitions[a].controlProperty;o.includes(n[s])&&i.push(a)}}}r(Sv,"fillArrayFromAnyOfReference");function xv(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(j)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(o=>{Sv(o,n,t,i)}),i.length===0))return;return i}r(xv,"fillArrayFromPropertyDefinition");function Cv(e,t,n,i,o,a,s,c){var p,u,f,d;let l={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(l.targetDefinition=t.definitions[b],(p=l==null?void 0:l.targetDefinition)!=null&&p.$ref||((u=l==null?void 0:l.targetDefinition)==null?void 0:u.type)==="array")return l=Dn(t,n,i,l.targetDefinition,o,a,s),l;e.length>1&&e.forEach(O=>{O!==""&&(l.targetDefinition.properties={...l.targetDefinition.properties,...t.definitions[O].properties})}),l.title=(f=l==null?void 0:l.targetDefinition)!=null&&f.title?l.targetDefinition.title:n;let x=b==null?void 0:b.split("<")[0],I=i||{};l.configObject=a.createInstance(s,x,I,(d=l==null?void 0:l.targetDefinition)==null?void 0:d.controlProperty)}else l.targetDefinition=c,l.title=l.targetDefinition.title?l.targetDefinition.title:o,l.configObject=i;return l}r(Cv,"determineNextDefinitionFromDefinitionArray");function Dn(e,t,n,i,o,a,s){let c;if(i.type==="array")return c=Dn(e,t,n,i.items,o,a,s),c;let l=xv(i,n,e);if(l)return c=Cv(l,e,t,n,o,a,s,i),c}r(Dn,"getNextTargetDefinition");var Ec=r((e,t,n)=>{let i=e.slice();return t.forEach((o,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(o,n):n.isMergeableObject(o)?i[a]=(0,sg.default)(e[a],o,n):e.indexOf(o)===-1&&i.push(o)}),i},"arrayCombineMerge");function St(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}r(St,"convertActionKeyToStableId");function mg(e){return e instanceof Error?e.message:String(e)}r(mg,"getErrorMessage");function Hi(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}r(Hi,"updatePropertyIndices");function yg(e){return e=e.replace(L.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}r(yg,"removeNamespaces");function da(e){return e=e.replace(L.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}r(da,"replaceNamespaces");function bn(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith(j))return t.substring(j.length)}r(bn,"getRefType");function hg(e){return`#/definitions/${e}`}r(hg,"getDefinitionsRef");var ei=require("@sap-ux/vocabularies-types/vocabularies/UI"),V=M(W());var xt=M(W());var Fe=r((e,t)=>e+t.join("::"),"buildControlIdFromParent"),ga=r((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),et=r((e,t)=>{let n,i=xt.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 Pv(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}r(Pv,"escapeId");var bg=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(bg||{});function Av(e,t,n){let i;return e=e.map(function(o){if(o===xt.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===xt.PropertyName.sections)return i=t[a+1],t[a+1]=et(i,n)+"::Table",t[a+1]}return o}),{idBreadcrumbs:e}}r(Av,"mapBreadcrumbs");var Ic=r((e,t,n,i,o)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=Av(t,s,o)),s[0]===xt.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,xt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,xt.VOCWITHSLASH):t[0]===xt.PropertyName.table&&(a=t[0]);let l=s[s.length-1].replace(/::com.sap.vocabularies/g,xt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,xt.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,u=l.indexOf(":::");return l.startsWith("DataField")&&u>-1?(l=l.replace("/",":2f"),p=`${e}template:::TableColumn:::${l.substring(0,u)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${l.substring(u+3)}`):(l=l.replace("/","_"),p=`${e}${t.join("::")}-${l}`),Pv(p)},"buildColumnControlId"),Ct=r(e=>{let t=e[e.length-1].split(":::"),n,i,o;return t.length>2?(n=t[0],i=t[1].split("::")[1],o=t[2].split("::")[1]):t.length===2?(n=t[0],o=t[1].split("sAction::")[1]):o=t[0],{actionType:n,semanticObjectId:i,actionId:o}},"getActionBreadcrumbParts");function Ev(e){let t=xt.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}r(Ev,"determinePattern");var Tg=r((e,t,n,i)=>{let o=t&&t.properties;if(o[n].pattern)return;let a=o[n],s=a,c=a.$ref?e.definitions[a.$ref.split(j)[1]]:a,l=a.description?a.description:c.description,p=Ev(c);c.type&&c.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(u=>{s.enum.indexOf(u)===-1&&s.enum.push(u)}),o[n]={pattern:p,anyOf:[s,{type:"string"}]},l&&(o[n].description=l,delete a.description)},"addPatternForBindingChangeOfEnum"),Wi=r((e,t,n)=>{Tg(e,t,n)},"addPatternForBindingChangeOfEnumLR"),he=r((e,t,n)=>{let i=Object.values(bg);Tg(e,t,n,i)},"addPatternForBindingChangeOfEnumOP");function vg(){}r(vg,"doNotDelete");var PE=M(xg());var Oc=Symbol("specificationMetadataKey"),y=r(e=>Reflect.metadata(Oc,e),"syncRule");function lt(e,t){let n;return e&&(n=Reflect.getMetadata(Oc,e,t)),n}r(lt,"getReflectMetadata");function Cg(e){let t;return e&&(t=Reflect.getMetadata(Oc,e)),t}r(Cg,"getReflectTypeMetadata");var en=r(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),Pg=Symbol("childId"),qe=r(e=>Reflect.metadata(Pg,e),"childId"),Ag=r((e,t)=>Reflect.getMetadata(Pg,e,t),"getChildId"),Eg=r(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),Iv=Symbol("descriptionSrcURL"),Tn=r(e=>Reflect.metadata(Iv,e),"descriptionSrcURL");var Ov=Symbol("validityMetadataKey"),N=r(e=>Reflect.metadata(Ov,e),"validity");function Ki(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}r(Ki,"getTextForDeprecated");var Dg=M(Vg()),Rg=M(W());var wg=Dg.default.change,jg={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function $g(e,t){let n="";try{for(let i in jg)e[i]===void 0&&(e[i]=jg[i]);n=wg.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}r($g,"createChangeString");function Ot(e){try{return wg.parse(e)}catch{return!1}}r(Ot,"parseChangeString");function _g(e,t,n,i,o){let a=n.layer?n.layer===Rg.FlexChangeLayer.Customer:!0,s={controlId:o,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}r(_g,"fillFlexChangeContent");function R(e,t){return $g(e,t)}r(R,"exportToFlexChange");var li=M(W());function ma(e,t,n,i,o,a){let s=e.manifest.key||n,c=e.manifest.import;if(c&&typeof c=="function"){let l=c(t,o,n,a);l!==void 0&&(i[n]=l)}else t[s]!==void 0&&(i[n]=t[s])}r(ma,"importProperty");function Mg(e,t,n,i){if(t&&e)for(let o in t){let a=e[o];a&&(Q(i,{severity:li.LogSeverity.Warning,message:Ki(o,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[o])}}r(Mg,"checkDeprecatedProperties");function Fc(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(j)[1]];return Fc(n,t)}else return e.title?e.title.startsWith(li.FACETTITLEPREFIX)?e.title.split(li.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}r(Fc,"getSectionTitle");function ya(e){let t=e.split(`${li.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}r(ya,"getTargetFromCustomColumnRef");var Ve=require("@sap-ux/vocabularies-types/vocabularies/UI");var vn=require("@sap-ux/vocabularies-types/vocabularies/UI");function Ug(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}}r(Ug,"replaceSpecialChars");var pi=r(function(e){return Ug(yg(e))},"prepareId");function Rv(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}r(Rv,"evaluateConcat");function fi(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 Rv(e);if(e&&typeof e=="string")return Ug(e.replace(/ /g,"_"))}r(fi,"getStableIdPartFromValue");var kg=r(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"),Bg=r(function(e){let t="";if(e.$Type&&e.$Type===vn.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,pi(t);if(e.$Type&&e.$Type===vn.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=kg(e),t;if(e.$Type&&e.$Type===vn.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=pi(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===vn.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=fi(e.Value)+"::"),t+=e.Action,pi(t);if(e.$Type&&e.$Type===vn.UIAnnotationTypes.DataField)return t="DataField::",t+=fi(e.Value),pi(t);if(e.$Type&&e.$Type===vn.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=fi(e.Value)+"::",t+=kg(e),pi(t);if(e.$Type&&e.$Type===vn.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=fi(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),pi(t);if(e.$Type&&e.$Type===vn.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=fi(e.Value),pi(t)},"getStableIdPartFromDataField");var F=M(W());var z=M(W());var Pt=require("@sap-ux/vocabularies-types/vocabularies/UI"),Jg=require("path"),Qg=M(Eo());var Ji="ResponsiveTable<LineItems>",Vo="TreeTable<LineItems>",jo="AnalyticalTable<LineItems>",Do="GridTable<LineItems>",Gg=[Vo,jo,Do],Hg=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],Wg="template::",ha="template:::ObjectPageAction:::";function wv(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)}r(wv,"addCustomColumnDefinition");function $v(e,t){let n;return e==="TableColumnActionIntentBased"?n=Cc(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=_e(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Pt.UIAnnotationTypes.DataFieldForAction?n=_e(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=_e(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}r($v,"getActionId");function Nc(e,t,n,i,o){let a,s=n.lineItemId===z.DefinitionName.LineItems?"":"ObjectPage",c=$v(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let l=`${s}${i}<${c}>`,p=Fo(n.lineItemRecord,n.entityType);t.properties[c]={$ref:j+l},t.properties[c][z.SchemaTag.propertyIndex]=o;let{key:u,ns:f}=Ro(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[l]={...JSON.parse(JSON.stringify(e.definitions[a])),description:p,keys:[{name:"Action",value:u}],annotationPath:`${n.lineItemPath}/${o}`},f&&(e.definitions[l][z.SchemaTag.target]=f)):(e.definitions[l]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[l][z.SchemaTag.isViewNode]=!0,e.definitions[l][z.SchemaTag.keys]=[{name:z.SchemaKeyName.action,value:u}],f&&(e.definitions[l][z.SchemaTag.target]=f),e.definitions[l][z.SchemaTag.annotationPath]=`${n.lineItemPath}/${o}`)}r(Nc,"handleActionRecord");function _v(e,t,n){e!==z.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Pt.UIAnnotationTypes.DataFieldForAction||t.$Type===Pt.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Pt.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Pt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}r(_v,"getColumnActionType");function Mv(e,t){let n=[];if(!(e.$Type!==Pt.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Pt.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Pt.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Pt.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Pt.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Pt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),_v(t,e,n),n}r(Mv,"getActionType");function Xg(e,t,n){let i=Cc(e.lineItemRecord);if(i){let o=t.definitions[e.lineItemId];o.properties[i]={$ref:j+z.DefinitionName.TableColumn,description:Fo(e.lineItemRecord,e.entityType)},o.properties[i][z.SchemaTag.propertyIndex]=n,o.properties[i][z.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,va(o.properties[i],e.lineItemRecord),tm(e.lineItemRecord,o.properties,i)}}r(Xg,"generateGenericColumn");function kv(e,t,n,i,o,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{Nc(t,n,i,e,o);break}case"FooterAction":case"FooterActionIntentBased":{a&&Nc(t,a,i,e,o);break}case"TableColumnAction":case"TableColumnActionIntentBased":{Nc(t,t.definitions[s],i,e,o);break}case"ObjectPageTableColumnAction":Xg(i,t,o)}}r(kv,"handleAnyAction");function Qi(e,t,n,i,o,a){o=o||z.DefinitionName.LineItems;let{actions:s,footerActions:c,lineItemPath:l}=em(e,t,n,i,o);if(n){let p=0;n.forEach(u=>{let f={lineItemPath:l,lineItemRecord:u,lineItemId:o,entityType:i},d=Mv(u,o);d?d.forEach(b=>{kv(b,t,s,f,p,c,o)}):Xg(f,t,p),p++})}a&&(t.definitions[o].properties.custom={$ref:`${j}${a}`})}r(Qi,"addLineItemsType");function Uv(e,t,n){var o,a;let i=(a=(o=e.definitions[n])==null?void 0:o.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((c,l)=>(c.includes(l.name)||c.push(l.name),c),[])}}r(Uv,"addListReportLeadingProperties");function Bv(e,t,n,i){var s,c,l,p,u,f;let o=(c=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:c.tabKey;if(!n){i&&(o.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",o.enum=[i]);return}let a=(u=(p=(l=n.component)==null?void 0:l.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:u.variants;if(a){let d=[];for(let b in a){let x=(f=a[b])==null?void 0:f.key;x!==void 0&&!d.includes(x)&&d.push(x)}ui(d,o)}}r(Bv,"addTabkeyEnum");function ba(e,t,n,i,o){var s,c;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(l=>{let p=l.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let u=JSON.parse((0,Qg.xml2json)(l.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!u||u.Column||u["table:Column"]||u["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!u||!u.Column&&!u["table:Column"]&&!u["table:AnalyticalColumn"]&&!u["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+Jg.sep,"g"),"/");let f=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(f)}}}),ui(a,(c=(s=e.definitions[o])==null?void 0:s.properties)==null?void 0:c[i])}r(ba,"addFragmentEnum");function Xi(e,t,n,i,o,a=z.DefinitionName.CustomColumns,s=z.DefinitionName.CustomColumn,c){wv(e,a,s),Uv(e,t,s),Bv(e,s,n,c);let l=i&&i["sap.app"]&&i["sap.app"].id;ba(e,o,l,"fragmentName",s),ba(e,o,l,"fragmentName",z.DefinitionName.CustomColumn),ba(e,o,l,"cellsFragmentName",s),ba(e,o,l,"cellsFragmentName",z.DefinitionName.CustomColumn)}r(Xi,"addTableColumnExtensions");function qg(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}r(qg,"removeElementsFromEnum");function Ta(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,o=Gt(n==null?void 0:n.fullyQualifiedName,Pt.UIAnnotationTerms.SelectionFields);if(o&&(i[z.SchemaTag.annotationPath]=o),!t)return;let a=0;t.forEach(s=>{let c=s.value,l=`SelectionField<${_e(s.value)}>`,p=Lc(s);s.type==="PropertyPath"&&(c=lg(s,n)),i.properties[s.value]={$ref:j+l},i.properties[s.value][z.SchemaTag.propertyIndex]=a,e.definitions[l]={type:"object",description:c,additionalProperties:!1},e.definitions[l][z.SchemaTag.isViewNode]=!0,e.definitions[l][z.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[l][z.SchemaTag.dataType]=p,e.definitions[l][z.SchemaTag.keys]=[{name:z.SchemaKeyName.value,value:`${s.value}`}],e.definitions[l][z.SchemaTag.annotationPath]=`${i[z.SchemaTag.annotationPath]}/${a}`,e.definitions[l].properties={},a++})}r(Ta,"addSelectionFields");function zg(e){return!!e.navigationProperties.find(n=>n.name==="DraftAdministrativeData")}r(zg,"isDraftEnabled");function qi(e,t=!1,n){let i=z.DefinitionName.HeaderActionsStandard,o=z.DefinitionName.HeaderActionsStandard,a=z.DefinitionName.HeaderActionStandard;t&&(i=z.DefinitionName.GenericActions,o=z.DefinitionName.HeaderActions,a=z.DefinitionName.ObjectPageHeaderActionStandard);let s=e.definitions[i],c=e.definitions[o];c[z.SchemaTag.isViewNode]=!0,c.description="Actions",Object.entries((n||s).properties).forEach(([p,u])=>{let f=u.$ref.split(j)[1],d=`${a}<${f}>`;c.properties[p]={$ref:`${j}${d}`},e.definitions[d]=e.definitions[f],e.definitions[f][z.SchemaTag.actionType]=z.ActionType.Standard})}r(qi,"addStandardHeaderActions");function Yg(e,t){let n=e.definitions[z.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let o=n.properties[i].$ref.split(j)[1],a=`${z.DefinitionName.ObjectPageFooterActionStandard}<${o}>`;t.properties[i]={$ref:`${j}${a}`},e.definitions[a]=e.definitions[o],e.definitions[o][z.SchemaTag.actionType]=z.ActionType.Standard}}r(Yg,"addStandardFooterActionsOP");function Zg(e){var i,o,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(o=t==null?void 0:t.annotations)==null?void 0:o.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?w.t("NOUIANNOTATIONS",{entityType:t.name}):w.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});Q(e.logger,{severity:z.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}r(Zg,"getUIAnnotationForEntitySet");function Gv(e,t,n,i){if(e===F.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===F.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}}}r(Gv,"copyFieldProperties");function Hv(e,t,n,i){let o=e===F.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===F.FioriElementsVersion.v2?`${o}<${n}::${i}>`:`${n}::${i}`}r(Hv,"determineFieldDefinitionName");function Wv(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][F.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][F.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][F.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][F.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}r(Wv,"addKeysTagForDataField");function Kv(e,t,n){if(e.$Type===Ve.UIAnnotationTypes.DataField||e.$Type===Ve.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ve.UIAnnotationTypes.DataFieldWithNavigationPath)Wv(e,t,n);else if(e.$Type===Ve.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][F.SchemaTag.keys]=[{name:"Target",value:da(e.Target.value)}],t.definitions[n][F.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][F.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][F.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][F.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Ve.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][F.SchemaTag.keys]=[{name:F.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][F.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][F.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}r(Kv,"addKeysTagToField");function nm(e,t,n,i,o,a,s,c=!0){var f;let l=Bg(n),p=s===F.FioriElementsVersion.v2&&l&&l.includes("::")?l.split("::").splice(1).join("::"):l,u=Hv(s,l,i,p);if(!(!n||!n.$Type)){if(n.$Type===Ve.UIAnnotationTypes.DataFieldForAction||n.$Type===Ve.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(c&&e===F.SectionType.Section){let d=_e(`${e}${F.DefinitionName.Actions}<${i}>`),b=t.definitions[d].properties[p]={$ref:`${j}${u}`};b[F.SchemaTag.propertyIndex]=parseInt(o)}}else{let d=_e(`${e}${F.DefinitionName.Fields}<${i}>`);t.definitions[d].properties[p]={$ref:`${j}${u}`,propertyIndex:parseInt(o)}}t.definitions[u]={type:"object",properties:{},description:Fo(n,a.entityType),additionalProperties:!1},Kv(n,t,u),t.definitions[u][F.SchemaTag.annotationPath]=`/${a.entityType.fullyQualifiedName}/${n.fullyQualifiedName.split(a.entityType.fullyQualifiedName)[1]}`,t.definitions[u][F.SchemaTag.annotationType]=n.$Type,t.definitions[u][F.SchemaTag.isViewNode]=!0,va(t.definitions[u],n),Gv(s,t,n,u),n.$Type===Ve.UIAnnotationTypes.DataFieldForAction&&((f=t.definitions)!=null&&f.FormAction)&&(t.definitions[u].properties=t.definitions[F.DefinitionName.FormAction].properties)}}r(nm,"addField");function Jv(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}r(Jv,"determineTargetIdOfForm");function Qv(e,t,n,i,o,a=!0){var p;if(!e.target)return;let s=_e(`${t}${F.DefinitionName.Form}<${i}>`),c=_e(`${t}${F.DefinitionName.Fields}<${i}>`),l=_e(`${t}${F.DefinitionName.Actions}<${i}>`);if(n.properties.form={$ref:`${j}${s}`},t===F.SectionType.Section&&a?(n.definitions[s]={type:"object",properties:{actions:{$ref:`${j}${l}`},fields:{$ref:`${j}${c}`}},description:"Form",additionalProperties:!1},n.definitions[l]={type:"object",properties:{},description:"Actions",additionalProperties:!1},n.definitions[l][F.SchemaTag.isViewNode]=!0):n.definitions[s]={type:"object",properties:{fields:{$ref:`${j}${c}`}},description:"Form",additionalProperties:!1},n.definitions[s][F.SchemaTag.isViewNode]=!0,(p=e.entityType)!=null&&p.name&&(n.definitions[s][F.SchemaTag.annotationPath]=Gt(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier)),n.definitions[c]={type:"object",properties:{},description:"Fields",additionalProperties:!1},n.definitions[c][F.SchemaTag.isViewNode]=!0,e.base===F.FacetBase.Identification)for(let u in e.target){let f=e.target[u];f&&nm(t,n,f,i,u,e,o,a)}else for(let u in e.target.Data){let f=e.target.Data[u];nm(t,n,f,i,u,e,o)}}r(Qv,"addFieldsToFormDefinition");function Xv(e,t,n){var i,o;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][F.SchemaTag.keys]=[{name:F.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][F.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][F.SchemaTag.isViewNode]=!0,(o=e.entityType)!=null&&o.name&&(t.definitions[n][F.SchemaTag.annotationPath]=Gt(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}r(Xv,"addTagsToFormDefinition");function im(e,t,n,i,o,a){if(!t.target)return;let s=Jv(t),c=_e(`${e}${F.DefinitionName.Form}<${s}>`),l=_e(`${e}${F.DefinitionName.Fields}<${s}>`),p=_e(`${e}${F.DefinitionName.Actions}<${s}>`),u=!(t.base===F.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${j}${c}`},e===F.SectionType.Section&&u?(i.definitions[c]={type:"object",properties:{actions:{$ref:`${j}${p}`},fields:{$ref:`${j}${l}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][F.SchemaTag.isViewNode]=!0):i.definitions[c]={type:"object",properties:{fields:{$ref:`${j}${l}`}},description:"Form",additionalProperties:!1},Xv(t,i,c),i.definitions[l]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[l][F.SchemaTag.isViewNode]=!0,Qv(t,e,i,s,o,u),s}r(im,"handleForm");function qv(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let o=n.replace("SAP__",""),a=t.references.find(s=>s.alias===o);a&&(i=e.replace(n,a.namespace))}return i}r(qv,"replaceAlias");function Vc(e,t){let n=qv(e.Action,t),i=n,o=n.indexOf("(");o>0&&(i=n.substring(0,o)),o=i.lastIndexOf("/"),o===-1&&(o=i.lastIndexOf("."));let a,s,c;return o>-1?(a=i.substring(o+1),c=i.substring(0,o),s=`${i.substring(0,o)}::${a}`):(a=i,c=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${c.substring(0,c.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:c}}r(Vc,"getActionNameAndId");function om(e,t){var n,i;for(let o in e){let a=e[o];return((n=a.component)==null?void 0:n.name)===F.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:om(a.pages,t)}}r(om,"isFirstObjectPage");function rm(e,t,n,i){var l,p,u;e.definitions[F.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${F.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${j}${F.DefinitionName.ObjectPageFooter}`},e.definitions[F.DefinitionName.ObjectPageFooter].properties[F.PropertyName.actions]={$ref:`${j}${F.DefinitionName.FooterActions}`};let o=e.definitions[F.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};o[F.SchemaTag.isViewNode]=!0;let a=Zt(F.UIVOCABULARY,t.serviceAVT),s=(l=t.entitySet)==null?void 0:l.entityType,c=a&&((u=(p=s==null?void 0:s.annotations)==null?void 0:p[a])==null?void 0:u.Identification);if(c){let f=c.fullyQualifiedName.replace(`@${Ve.UIAnnotationTerms.Identification}`,`/@${Ve.UIAnnotationTerms.Identification}`);o[F.SchemaTag.annotationPath]=`/${f}`,c.forEach((d,b)=>{if(d.Determining&&d.$Type===Ve.UIAnnotationTypes.DataFieldForAction){let{actionName:x,actionId:I}=Vc(d,t.serviceAVT),O=d.Label||x,$=_e(`${F.DefinitionName.ObjectPageFooterAction}<${I}>`);e.definitions[F.DefinitionName.ObjectPageFooterAction]?e.definitions[$]={...JSON.parse(JSON.stringify(e.definitions[F.DefinitionName.ObjectPageFooterAction])),description:O,annotationPath:`/${f}/${b}`}:(e.definitions[$]={type:"object",properties:{},description:O},e.definitions[$][F.SchemaTag.isViewNode]=!0,e.definitions[$][F.SchemaTag.annotationPath]=`/${f}/${b}`),o.properties[I]={$ref:`${j}${$}`}}})}else s&&(o[F.SchemaTag.annotationPath]=`/${s.fullyQualifiedName}/@${Ve.UIAnnotationTerms.Identification}`);n===F.FioriElementsVersion.v2&&om(i,t)&&!zg(s)&&Yg(e,o),delete e.definitions[F.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${F.DefinitionName.ObjectPageFooter}<${F.DefinitionName.ObjectPageFooterActions}>`]}r(rm,"addFooterActions");function am(e,t,n,i,o=!1){var u,f;let a=F.DefinitionName.HeaderActions,s=e.definitions[a];e.definitions[F.DefinitionName.ObjectPageHeader].properties[F.PropertyName.actions]={$ref:`${j}${a}`};let c=e.definitions[a]={type:"object",properties:{},description:"Actions",additionalProperties:!1};c[F.SchemaTag.isViewNode]=!0;let l=Zt(F.UIVOCABULARY,n),p=l&&((f=(u=t==null?void 0:t.annotations)==null?void 0:u[l])==null?void 0:f.Identification);p?(c[F.SchemaTag.annotationPath]="/"+p.fullyQualifiedName.replace(`@${Ve.UIAnnotationTerms.Identification}`,`/@${Ve.UIAnnotationTerms.Identification}`),p.forEach(i(t,e,p,c,n))):t&&(c[F.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ve.UIAnnotationTerms.Identification}`),o&&qi(e,!0,s),delete e.definitions[F.DefinitionName.GenericActions],delete e.definitions[`${F.DefinitionName.ObjectPageHeader}<${F.DefinitionName.GenericActions}>`]}r(am,"addHeaderActions");function sm(e,t){e.properties.header={$ref:`${j}${F.DefinitionName.ObjectPageHeader}`},e.definitions[F.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${F.DefinitionName.ObjectPageHeader}<${F.DefinitionName.GenericActions}>`])),t&&(e.definitions[F.DefinitionName.ObjectPageHeader][F.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ve.UIAnnotationTerms.HeaderInfo}`)}r(sm,"addCommonHeaderSchema");function cm(e,t){return e.entityType?t.entitySets.find(n=>n.entityType.name===e.entityType.name||n.name===e.entityType.name):void 0}r(cm,"determineEntitySetOfFacet");var Ht=require("@sap-ux/vocabularies-types/vocabularies/UI");var Te=M(W());function ui(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}r(ui,"addEnumToSchema");function lm(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let o=[];for(let s in i){let c=i[s];if(t.indexOf(c.term)>-1){let l=c.qualifier?`${c.term}#${c.qualifier}`:`${c.term}`;o.indexOf(l)===-1&&o.push(l)}}ui(o,n)}r(lm,"addEnumForValidAnnotations");function Sa(e,t,n){let i=t.definitions[n].properties.annotationPath,o=[Ht.UIAnnotationTerms.SelectionVariant,Ht.UIAnnotationTerms.SelectionPresentationVariant];lm(e,o,i)}r(Sa,"addEnumForSingleTabVariant");function pm(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,o=[Ht.UIAnnotationTerms.SelectionVariant,Ht.UIAnnotationTerms.SelectionPresentationVariant];lm(n.entityType,o,i)}r(pm,"addEnumForMultiTabVariant");function fm(e,t,n){let i=t.definitions[n].properties.entitySet,o=[];e.entitySets.forEach(a=>{o.push(a.name)}),ui(o,i)}r(fm,"addEnumForVariantEntitySet");function um(e,t,n,i){let o=n.map(a=>{let s=i.find(l=>!!a[l]);return{const:a[s],...a.label&&{description:a.label},...a.custom&&{custom:a.custom}}});if(o.length){e.definitions.RelatedFacetKeys={type:"string",oneOf:o};for(let a of t){let s=e.definitions[a],c=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{$ref:j+"RelatedFacetKeys"},c]}}}}r(um,"addDefinitionForRelatedFacetKeys");function zv(e){return e.replace("#","::")}r(zv,"getFacetKeyInSchema");function dm(e,t){return`${e}<${zv(t)}>`}r(dm,"getFacetDefinitionKey");function Yv(e,t,n,i=!0,o){let a=t;if(i&&(a=dm(o||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]}r(Yv,"parseSchemaDefinition");function em(e,t,n,i,o){let a;t.definitions[o]={type:"object",properties:{},description:"Columns"},t.definitions[o].additionalProperties=!1,t.definitions[o][Te.SchemaTag.isViewNode]=!0;let s=e?Te.DefinitionName.ObjectPageToolBar:Te.DefinitionName.ToolBar,c=`${s}<${o}>`;try{t.definitions[c]=JSON.parse(JSON.stringify(t.definitions[`${s}`]))}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${s}`}))}let l=`Actions<${_e(o)}>`;t.definitions[c].properties.actions.$ref=j+l;let p=e?Te.DefinitionName.ObjectPageToolBarActions:Te.DefinitionName.Actions,u;try{u=t.definitions[l]=JSON.parse(JSON.stringify(t.definitions[p])),u.properties={},u.additionalProperties=!1}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${p}`}))}let f,d;if(o===Te.DefinitionName.LineItems&&t.properties.footer){d=`${Te.DefinitionName.Footer}<${o}>`,t.properties.footer.$ref=`${j}${d}`;try{t.definitions[d]=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(o)}>`;t.definitions[d].properties.actions.$ref=j+b;try{f=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}))}f.properties={},f.additionalProperties=!1}return n&&(a=Gt(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),a&&(t.definitions[o][Te.SchemaTag.annotationPath]=t.definitions[c][Te.SchemaTag.annotationPath]=a,f&&(t.definitions[d][Te.SchemaTag.annotationPath]=a))),{actions:u,footerActions:f,lineItemPath:a}}r(em,"addCommonLineItemDefinitions");function gm(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}r(gm,"getDataTypeFromAnnotation");function xa(e){var n,i,o;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.",""):(o=e==null?void 0:e.$Type)!=null&&o.startsWith("com.sap.vocabularies.")&&(t=gm(e.$Type)),t}r(xa,"determineDataTypeOfTarget");function Lc(e){var n,i,o;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=xa((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(o=e.$Type)!=null&&o.startsWith("com.sap.vocabularies.")?t=gm(e.$Type):e.type&&(t=e.type),t}catch{return t}}r(Lc,"determineDataType");function va(e,t){let n=Lc(t);n&&(e[Te.SchemaTag.dataType]=n)}r(va,"addDataTypeToDefinition");function Zv(e,t){return`${j}${dm(e,t)}`}r(Zv,"getFacetDefinitionLink");function jc(e,t,n,i,o,a,s=""){let c=`ObjectPage${o}${e.base}${s}`,l=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:Zv(a?l:c,t)};let p=Yv(a?l:c,t,i,!0,a?l:void 0);No(e,p,t),p[Te.SchemaTag.annotationPath]=e.annotationPath,p[Te.SchemaTag.isViewNode]=!0}r(jc,"handleAddressContact");function Ro(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let o=n.indexOf("/"),a=n.lastIndexOf(".");i=o>0?n.substring(0,o):n.substring(0,a),n=o>0?n.substring(o+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}r(Ro,"getActionKey");function tm(e,t,n){var i,o,a;try{if(e.Value)t[n][Te.SchemaTag.keys]=[{name:Te.SchemaKeyName.value,value:fi(e.Value)}];else if(e.$Type===Ht.UIAnnotationTypes.DataFieldWithAction||e.$Type===Ht.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:c}=Ro(e.Action,!0);t[n][Te.SchemaTag.keys]=[{name:Te.SchemaKeyName.action,value:s}],c&&(t[n][Te.SchemaTag.target]=c)}else if(e.$Type===Ht.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=Ro(e.Target.value,!1);t[n][Te.SchemaTag.keys]=[{name:Te.SchemaKeyName.target,value:da(s)}],t[n][Te.SchemaTag.target]=(a=(o=(i=e.Target)==null?void 0:i.$target)==null?void 0:o.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===Ht.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Ht.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:c,ns:l}=Ro(s,!0);t[n][Te.SchemaTag.keys]=[{name:"SemanticObject",value:e[Te.SchemaKeyName.semanticObject]},{name:"Action",value:c}],l&&(t[n][Te.SchemaTag.target]=l)}}catch{return}}r(tm,"addKeyToDefinition");var zi=M(W());var mm=[{version:"1.136",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.136","UI5-1.137","UI5-1.138","UI5-1.139","UI5-1.140"]},{version:"1.124",distTag:["UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130","UI5-1.131","UI5-1.132","UI5-1.133","UI5-1.134","UI5-1.135"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.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 hm="1.71.138";var bm={name:"@sap/ux-specification",version:hm,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas 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/schema/index.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",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.10.3","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.71.138","@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.11.0",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.8",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2",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 Rn=class Rn{constructor(){Rn.distTagsOfSpec.length===0&&(Rn.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Rn.distTagsOfSpec=[]}getSpecVersion(){return hm}getDistTagsOfVersion(){let t=[],n=mm,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let o=n.find(a=>a.version.startsWith(i));o&&(t=o.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let o=w.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});Q(n,{severity:zi.LogSeverity.Info,message:o,location:{path:zi.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(Rn.distTagsOfSpec.findIndex(o=>o.endsWith(i))===-1){let o=w.t("WRONGMINUI5VERSION",{minUI5Version:t});Q(n,{severity:zi.LogSeverity.Warning,message:o,location:{path:zi.MANIFESTPATH}})}}};r(Rn,"DistTagEvaluator"),Rn.distTagsOfSpec=[];var wo=Rn;var ee=M(W());var Be=M(W());var Ft=M(W());var Dc=class Dc{constructor(t,n,i,o,a,s,c){this.unhandledControllers=[];let l=Ze(Ft.SchemaType.Application);this.app={$schema:l.path,id:t["sap.app"].id,pages:o,home:i,target:{fioriElements:a,odata:a===Ft.FioriElementsVersion.v2?Ft.OdataVersion.v2:Ft.OdataVersion.v4},...s&&{settings:s}},this.schemas=n,this.logger=c}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!==Ft.PageType.CustomPage){let c=Ze(i.pageType,i.entitySet);if(this.schemas[c.filename])s.$schema=c.path;else{let l=Ze(i.pageType);s.$schema=l.path}t[`${Ft.DirName.Pages}/${a}.json`]=s}}let o=JSON.parse(JSON.stringify(this.app));for(let a in o.pages)delete o.pages[a].config;return n[Ft.FileName.App]=o,{appConfig:n,pageConfigs:t}}};r(Dc,"AppProvider");var Yi=Dc;var ge=M(W());var Zi=M(W());var ze=r((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),Tm=r((e,t)=>{let n=e,i=t.split("/");for(let o of i){if(!n[o])return;n=n&&n[o]}return n||{}},"getManifestSectionByPathV2");var vm=r((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let o=t.split("/")[i];i===t.split("/").length-1?delete n[o]:n=n&&n[o]}},"deleteManifestSectionByPathV2");function Rc(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}r(Rc,"getNewPageTemplate");function nS(e,t,n){if(e)for(let i in e){let o=e[i];if(o.entitySet===t&&o.navigationProperty===n)return o}}r(nS,"findPageInManifest");function iS(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=Rc(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:Rc(e[t].pageType)}),!Array.isArray(n.pages))){let i=nS(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=Rc(e[t].pageType)),wc(t,e,i)}}r(iS,"transformPageFromAssociation");function oS(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let o=e.pages[i];if(((a=o.component)==null?void 0:a.name)===Zi.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${o.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Zi.PageTypeV2.ListReport||n.pageType===Zi.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}r(oS,"deletePage");function wc(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Zi.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 o in i.navigation)iS(t,o,n);Array.isArray(n.pages)||oS(n,t,i)}}r(wc,"transformPageToNewManifestV2");var ey=M(Eo());var up={};$r(up,{ALPAnalyticalTable:()=>gl,ALPGridTable:()=>dl,ALPResponsiveTable:()=>ul,Action:()=>bl,AnalyticalCard:()=>Ho,AnalyticalCardSettings:()=>Bc,AnalyticalListPageFilterBar:()=>Qc,AnalyticalTable:()=>fl,BaseCustomSection:()=>gr,ChartSettings:()=>wl,ChartSettingsType:()=>_c,CommonCardSettings:()=>kn,CommonHeaderFacetSettings:()=>vi,CommonTableSettings:()=>Hn,CommonTableSettingsForSections:()=>Ei,CreateWithFilters:()=>sl,CustomCard:()=>kc,DefaultSpanObject:()=>Mc,FRAGMENT_DEFINITION:()=>an,Field:()=>Kc,FieldForAction:()=>zc,FooterAction:()=>vl,FormAction:()=>qc,GlobalTableSettings:()=>pp,GridTable:()=>ml,HeaderAction:()=>Ml,HeaderActionStandard:()=>Al,HeaderSections:()=>Hl,KPISettings:()=>$l,LinkListCardSettings:()=>Hc,LinklistCard:()=>Ko,ListCard:()=>Go,ListCardSettings:()=>Uc,ListReportFilterBar:()=>Oa,ObjectPageAnalyticalTable:()=>sp,ObjectPageCustomSectionFragment:()=>mr,ObjectPageCustomSectionView:()=>yr,ObjectPageFooterAction:()=>Kl,ObjectPageFooterActionStandard:()=>Il,ObjectPageGridTable:()=>cp,ObjectPageHeader:()=>_l,ObjectPageHeaderActionStandard:()=>El,ObjectPageHeaderSectionAddress:()=>Gl,ObjectPageHeaderSectionChart:()=>Ul,ObjectPageHeaderSectionDataPoint:()=>Bl,ObjectPageHeaderSectionForm:()=>kl,ObjectPageLayout:()=>Ql,ObjectPageResponsiveTable:()=>Ii,ObjectPageSectionAddressV2:()=>Zl,ObjectPageSectionChartV2:()=>zl,ObjectPageSectionContactV2:()=>ep,ObjectPageSectionFormV2:()=>ql,ObjectPageSectionTableV2:()=>Yl,ObjectPageSectionV2:()=>Xl,ObjectPageSubSectionChartV2:()=>ip,ObjectPageSubSectionContactV2:()=>op,ObjectPageSubSectionFormV2:()=>np,ObjectPageSubSectionTableV2:()=>rp,ObjectPageSubSectionV2:()=>tp,ObjectPageToolBarAction:()=>fp,ObjectPageTreeTable:()=>lp,QuickVariantSelection:()=>cl,QuickVariantSelectionOP:()=>ap,QuickVariantSelectionX:()=>ll,ResponsiveTable:()=>gi,SAP_UI_TABLE:()=>Fa,SaveAndEditOP:()=>Pl,Share:()=>Sl,ShareOP:()=>xl,StackCard:()=>Wo,StackCardSettings:()=>Gc,TableALP:()=>ao,TableCard:()=>Jo,TableCardSettings:()=>Wc,TableColumn:()=>Nl,TableColumnAction:()=>Wa,TableColumnActionIntentBased:()=>Ll,TableCustomColumn:()=>Vl,ToolBar:()=>Dl,ToolBarAction:()=>Tl,TreeTable:()=>pl,UpAndDownNavigationOP:()=>Cl,buildIntentBasedActionId:()=>Ol,deleteColumnFromFragment:()=>Va,deleteType:()=>co,exportCustomColumnsToFragment:()=>al,exportDefaultSpan:()=>xm,exportType:()=>so,getChartSectionControlId:()=>Xm,getContactSubSectionControlId:()=>zm,getCustomColumnPath:()=>ja,getFormSectionControlId:()=>Qm,getRootCustomColumnFromFragmentJSON:()=>zo,getSectionControlId:()=>Ci,getSmartChartControlId:()=>ar,getSmartTableControlId:()=>Gn,getSubSectionControlId:()=>qm,getTableSectionControlId:()=>Jm});var pt=M(W());var de=r(e=>`${pt.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),Aa=r(e=>de(e)+"/tableSettings","getTableSettingPathV2");var We=r(()=>pt.ManifestSection.ovp,"getOVPsettingPath"),H=r(e=>{let t=[pt.ManifestSection.ovp];return e.forEach(n=>{n in pt.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var di=r((e,t)=>`${pt.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Sm=r(e=>{let t=[pt.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),wt=r(e=>{let t=[];return t.push(Sm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),eo=r(e=>wt(e)+"/tableSettings","getGlobalTableSettingsPathV2"),tn=r((e,t,n)=>{let i=[];i.push(Sm(e));let o=n.replace(pt.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+o),i.join("/")},"getAppSettingOBJsectionPathV2"),$n=r((e,t,n)=>tn(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2");var $c=r(()=>`sap.ui5/extends/extensions/${pt.v2.SAPUI5_VIEW_EXTENSION}/${pt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),xn=r((e,t,n,...i)=>{let a=n.split("|"),s=e[e.length-1].split("|"),c="";a.length===4?c=[a[2],a[3]].join("|"):a.length===3&&(c=a[2]);let l=[a[0],s[s.length-1],c].join("|");return i.unshift(l),`${$c()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),Pa=class Pa{};r(Pa,"ApplicationV2"),m([qe("settings")],Pa.prototype,"settings",2);var Ca=Pa,Sn=class Sn{};r(Sn,"AppSettings"),m([y({manifest:{path:r(()=>"sap.app","path")}})],Sn.prototype,"title",2),m([y({manifest:{path:r(()=>"sap.app","path")}})],Sn.prototype,"description",2),m([y({manifest:{path:r(()=>"sap.fiori","path")}})],Sn.prototype,"cloudDevAdaptationStatus",2),m([y({manifest:{path:r(()=>pt.GENERICAPPSETTINGS,"path")}}),N({since:"1.50.0"})],Sn.prototype,"flexibleColumnLayout",2),m([y({manifest:{path:r(()=>pt.GENERICAPPSETTINGS,"path")}}),N({since:"1.46.0"})],Sn.prototype,"forceGlobalRefresh",2),m([y({manifest:{path:r(()=>"sap.ui5","path")}}),N({since:"1.56.0"}),Tn("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Sn.prototype,"flexEnabled",2);var wn=Sn;function xm(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}r(xm,"exportDefaultSpan");var Ea=class Ea{};r(Ea,"ChartSettingsType"),m([y({manifest:{path:r(()=>We()+"/chartSettings","path")}})],Ea.prototype,"showDataLabel",2);var _c=Ea,_n=class _n{};r(_n,"DefaultSpanObject"),m([y({manifest:{path:r(t=>H(t),"path")}})],_n.prototype,"cols",2),m([y({manifest:{path:r(t=>H(t),"path")}})],_n.prototype,"rows",2),m([y({manifest:{path:r(t=>H(t),"path")}})],_n.prototype,"showOnlyHeader",2),m([y({manifest:{path:r(t=>H(t),"path")}})],_n.prototype,"minimumTitleRow",2),m([y({manifest:{path:r(t=>H(t),"path")}})],_n.prototype,"minimumSubTitleRow",2);var Mc=_n,Ne=class Ne{};r(Ne,"CommonCardSettings"),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"entitySet",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"title",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"subTitle",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"annotationPath",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"dataPointAnnotationPath",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"selectionPresentationAnnotationPath",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"kpiAnnotationPath",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"category",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"dynamicSubtitleAnnotationPath",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"valueSelectionInfo",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"showFilterInHeader",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"sortBy",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"sortOrder",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"identificationAnnotationPath",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"selectionAnnotationPath",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"presentationAnnotationPath",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"enableLocaleCurrencyFormatting",2),m([y({manifest:{path:r(t=>H(t),"path"),export:xm}})],Ne.prototype,"defaultSpan",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"requireAppAuthorization",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"showSortingInHeader",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"tabs",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"addODataSelect",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"showRefresh",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Ne.prototype,"customParams",2);var kn=Ne,to=class to{};r(to,"CustomCard"),m([y({manifest:{path:r(t=>H(t),"path")}})],to.prototype,"model",2),m([y({manifest:{path:r(t=>H(t),"path")}})],to.prototype,"template",2),m([y({manifest:{path:r(t=>H(t),"path")}})],to.prototype,"settings",2);var kc=to,Mn=class Mn extends kn{};r(Mn,"ListCardSettings"),m([y({manifest:{path:r(t=>H(t),"path")}})],Mn.prototype,"showLineItemDetail",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Mn.prototype,"imageSupported",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Mn.prototype,"enableAddToInsights",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Mn.prototype,"listFlavor",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Mn.prototype,"listType",2);var Uc=Mn,$o=class $o{};r($o,"ListCard"),m([y({manifest:{path:r(t=>H(t),"path")}})],$o.prototype,"model",2),m([y({manifest:{path:r(t=>H(t),"path")}})],$o.prototype,"template",2);var Go=$o,nn=class nn extends kn{};r(nn,"AnalyticalCardSettings"),m([y({manifest:{path:r(t=>H(t),"path")}})],nn.prototype,"chartAnnotationPath",2),m([y({manifest:{path:r(t=>H(t),"path")}})],nn.prototype,"ignoreSapText",2),m([y({manifest:{path:r(t=>H(t),"path")}})],nn.prototype,"enableAddToInsights",2),m([y({manifest:{path:r(t=>H(t),"path")}})],nn.prototype,"navigation",2),m([y({manifest:{path:r(t=>H(t),"path")}})],nn.prototype,"valueSelectionInfo",2),m([y({manifest:{path:r(t=>H(t),"path")}})],nn.prototype,"chartProperties",2),m([y({manifest:{path:r(t=>H(t),"path")}})],nn.prototype,"colorPalette",2);var Bc=nn,_o=class _o{};r(_o,"AnalyticalCard"),m([y({manifest:{path:r(t=>H(t),"path")}})],_o.prototype,"model",2),m([y({manifest:{path:r(t=>H(t),"path")}})],_o.prototype,"template",2);var Ho=_o,no=class no extends kn{};r(no,"StackCardSettings"),m([y({manifest:{path:r(t=>H(t),"path")}})],no.prototype,"itemText",2),m([y({manifest:{path:r(t=>H(t),"path")}})],no.prototype,"objectStreamCardsNavigationProperty",2),m([y({manifest:{path:r(t=>H(t),"path")}})],no.prototype,"objectStreamCardsSettings",2);var Gc=no,Mo=class Mo{};r(Mo,"StackCard"),m([y({manifest:{path:r(t=>H(t),"path")}})],Mo.prototype,"model",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Mo.prototype,"template",2);var Wo=Mo,io=class io extends kn{};r(io,"LinkListCardSettings"),m([y({manifest:{path:r(t=>H(t),"path")}})],io.prototype,"listFlavor",2),m([y({manifest:{path:r(t=>H(t),"path")}})],io.prototype,"headerAnnotationPath",2),m([y({manifest:{path:r(t=>H(t),"path")}})],io.prototype,"staticContent",2);var Hc=io,ko=class ko{};r(ko,"LinklistCard"),m([y({manifest:{path:r(t=>H(t),"path")}})],ko.prototype,"model",2),m([y({manifest:{path:r(t=>H(t),"path")}})],ko.prototype,"template",2);var Ko=ko,Uo=class Uo extends kn{};r(Uo,"TableCardSettings"),m([y({manifest:{path:r(t=>H(t),"path")}})],Uo.prototype,"showLineItemDetail",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Uo.prototype,"enableAddToInsights",2);var Wc=Uo,Bo=class Bo{};r(Bo,"TableCard"),m([y({manifest:{path:r(t=>H(t),"path")}})],Bo.prototype,"model",2),m([y({manifest:{path:r(t=>H(t),"path")}})],Bo.prototype,"template",2);var Jo=Bo;var Cm=M(W());var rS=r((e,t,n,i,o)=>{let a=et(n[1],o),s=n.slice(-1)[0];return Fe(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Ia=class Ia{};r(Ia,"Field"),m([y({flex:{controlId:rS,controlType:r(()=>Cm.ControlType.GroupElement,"controlType"),createFlexChange:R},generate:he})],Ia.prototype,"visible",2);var Kc=Ia;var Xc=M(W());var Jc={controlId:Fe,controlType:r(()=>Xc.ControlType.SmartFilterBar,"controlType"),createFlexChange:R},on=class on{};r(on,"ListReportFilterBar"),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.38.0"})],on.prototype,"smartVariantManagement",2),m([y({flex:Jc}),N({since:"1.40.0"})],on.prototype,"liveMode",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.48.0"})],on.prototype,"variantManagementHidden",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.52.0"})],on.prototype,"subTitleIfVariantMgmtHidden",2),m([y({flex:{controlId:Fe,controlType:r(()=>Xc.ControlType.SmartFilterBar,"controlType"),createFlexChange:R}}),N({since:"1.28.0"})],on.prototype,"showClearOnFB",2),m([y({flex:Jc}),N({since:"1.38.0"})],on.prototype,"showFilterConfiguration",2),m([y({flex:Jc}),N({since:"1.28.0"})],on.prototype,"showRestoreOnFB",2);var Oa=on,Qo=class Qo extends Oa{};r(Qo,"AnalyticalListPageFilterBar"),m([y({manifest:{path:r(t=>de(t),"path")}})],Qo.prototype,"showGoButtonOnFilterBar",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.60.0"})],Qo.prototype,"filterDefaultsFromSelectionVariant",2);var Qc=Qo;var $t=M(W());var rn=r((e,t,n,i,o)=>{if(i()===$t.ControlType.Button){let a=n[n.length-1],s=et(n[1],o);return`${e}action::${a}::${s}::FormAction`}return Fe(e,t)},"getFormActionButtonId"),Un=class Un{};r(Un,"FormAction"),m([y({flex:{controlId:rn,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:R},generate:he})],Un.prototype,"visible",2),m([y({flex:{controlId:rn,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:R}})],Un.prototype,"tooltip",2),m([y({flex:{controlId:rn,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:R}})],Un.prototype,"icon",2),m([y({flex:{controlId:rn,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:R}})],Un.prototype,"activeIcon",2),m([y({flex:{controlId:rn,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:R}})],Un.prototype,"type",2);var qc=Un,Bn=class Bn{};r(Bn,"FieldForAction"),m([y({flex:{controlId:rn,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:R},generate:he})],Bn.prototype,"visible",2),m([y({flex:{controlId:rn,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:R}})],Bn.prototype,"tooltip",2),m([y({flex:{controlId:rn,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:R}})],Bn.prototype,"icon",2),m([y({flex:{controlId:rn,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:R}})],Bn.prototype,"activeIcon",2),m([y({flex:{controlId:rn,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:R}})],Bn.prototype,"type",2);var zc=Bn;var ve=M(W()),Wt=M(Eo());var tl=require("path"),CS=M(W()),wm=M(Rm()),$m=require("fs");var PS=(0,tl.join)(__dirname,"templates");var AS=r((e,t)=>{let n=(0,$m.readFileSync)(e,"utf8");return(0,wm.render)(n,t)},"renderTemplate");var nl=r((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 AS((0,tl.join)(PS,t+".xml"),n)},"getSingleColumnContent"),il=r((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 o=nl(i,t);n=n+`
82
+ `)},"scanLine")};Se.escapeXML=Ke.escapeXML;Se.__express=Se.renderFile;Se.VERSION=TS;Se.name=CS;typeof window<"u"&&(window.ejs=Se)});var Fn={};_r(Fn,{deleteConfigEntityByPath:()=>iA,exportConfig:()=>tA,exportConfigEntityByPath:()=>nA,generateSchema:()=>eA,getApiVersion:()=>sA,getChanges:()=>th,getGenericSchema:()=>Rs,getPathToGenericSchema:()=>By,getProject:()=>dA,importConfig:()=>oA,importProject:()=>rA,importProjectSchema:()=>aA,isDirectory:()=>lA,log:()=>J,readDirectory:()=>qp});module.exports=mh(Fn);var xe=$(G());var L=$(G());var oe=r(e=>typeof e=="string","isString"),vo=r(()=>{let e,t,n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n},"defer"),Mu=r(e=>e==null?"":""+e,"makeString"),Tb=r((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),vb=/###/g,ku=r(e=>e&&e.indexOf("###")>-1?e.replace(vb,"."):e,"cleanKey"),Uu=r(e=>!e||oe(e),"canNotTraverseDeeper"),So=r((e,t,n)=>{let i=oe(t)?t.split("."):t,o=0;for(;o<i.length-1;){if(Uu(e))return{};let a=ku(i[o]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return Uu(e)?{}:{obj:e,k:ku(i[o])}},"getLastOfPath"),Bu=r((e,t,n)=>{let{obj:i,k:o}=So(e,t,Object);if(i!==void 0||t.length===1){i[o]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),c=So(e,s,Object);for(;c.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),c=So(e,s,Object),c&&c.obj&&typeof c.obj[`${c.k}.${a}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${a}`]=n},"setPath"),Sb=r((e,t,n,i)=>{let{obj:o,k:a}=So(e,t,Object);o[a]=o[a]||[],o[a].push(n)},"pushPath"),kr=r((e,t)=>{let{obj:n,k:i}=So(e,t);if(n)return n[i]},"getPath"),xb=r((e,t,n)=>{let i=kr(e,n);return i!==void 0?i:kr(t,n)},"getPathWithDefaults"),Qu=r((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?oe(e[i])||e[i]instanceof String||oe(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):Qu(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),_i=r(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),Cb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},Pb=r(e=>oe(e)?e.replace(/[&<>"'\/]/g,t=>Cb[t]):e,"escape"),qs=class qs{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}};r(qs,"RegExpCache");var Gs=qs,Ab=[" ",",","?","!",";"],Eb=new Gs(20),Ib=r((e,t,n)=>{t=t||"",n=n||"";let i=Ab.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let o=Eb.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!o.test(e);if(!a){let s=e.indexOf(n);s>0&&!o.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),Hs=r(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),o=e;for(let a=0;a<i.length;){if(!o||typeof o!="object")return;let s,c="";for(let l=a;l<i.length;++l)if(l!==a&&(c+=n),c+=i[l],s=o[c],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<i.length-1)continue;a+=l-a+1;break}o=s}return o},"deepFind"),Ur=r(e=>e&&e.replace("_","-"),"getCleanedCode"),Ob={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)}},xo=class xo{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||Ob,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,o){return o&&!this.debug?null:(oe(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new xo(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new xo(this.logger,t)}};r(xo,"Logger");var Ws=xo,zt=new Ws,zs=class zs{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let o=this.observers[i].get(n)||0;this.observers[i].set(n,o+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),o=1;o<n;o++)i[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[c,l]=s;for(let p=0;p<l;p++)c(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[c,l]=s;for(let p=0;p<l;p++)c.apply(c,[t,...i])})}};r(zs,"EventEmitter");var ki=zs,Ys=class Ys extends ki{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 o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],i&&(Array.isArray(i)?c.push(...i):oe(i)&&a?c.push(...i.split(a)):c.push(i)));let l=kr(this.data,c);return!l&&!n&&!i&&t.indexOf(".")>-1&&(t=c[0],n=c[1],i=c.slice(2).join(".")),l||!s||!oe(i)?l:Hs(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,o){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,c=[t,n];i&&(c=c.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(c=t.split("."),o=n,n=c[1]),this.addNamespaces(n),Bu(this.data,c,o),a.silent||this.emit("added",t,n,i,o)}addResources(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(oe(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});o.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,o,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),o=i,i=n,n=c[1]),this.addNamespaces(n);let l=kr(this.data,c)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),o?Qu(l,i,a):l={...l,...i},Bu(this.data,c,l),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(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}};r(Ys,"ResourceStore");var Br=Ys,Xu={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,o){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,o))}),t}},Gu={},Kr=class Kr extends ki{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Tb(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=zt.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 o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Ib(t,i,o);if(s&&!c){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:oe(a)?[a]:a};let p=t.split(i);(i!==o||i===o&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(o)}return{key:t,namespaces:oe(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 o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],n),l=c[c.length-1],p=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(u){let Z=n.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${Z}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${Z}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}let f=this.resolve(t,n),d=f&&f.res,b=f&&f.usedKey||s,x=f&&f.exactUsedKey||s,I=Object.prototype.toString.apply(d),O=["[object Number]","[object Function]","[object RegExp]"],_=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,ie=!this.i18nFormat||this.i18nFormat.handleAsObject,q=!oe(d)&&typeof d!="boolean"&&typeof d!="number";if(ie&&d&&q&&O.indexOf(I)<0&&!(oe(_)&&Array.isArray(d))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let Z=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,d,{...n,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(f.res=Z,f.usedParams=this.getUsedParamsDetails(n),f):Z}if(a){let Z=Array.isArray(d),Q=Z?[]:{},ce=Z?x:b;for(let Pe in d)if(Object.prototype.hasOwnProperty.call(d,Pe)){let S=`${ce}${a}${Pe}`;Q[Pe]=this.translate(S,{...n,joinArrays:!1,ns:c}),Q[Pe]===S&&(Q[Pe]=d[Pe])}d=Q}}else if(ie&&oe(_)&&Array.isArray(d))d=d.join(_),d&&(d=this.extendTranslation(d,t,n,i));else{let Z=!1,Q=!1,ce=n.count!==void 0&&!oe(n.count),Pe=Kr.hasDefaultValue(n),S=ce?this.pluralResolver.getSuffix(p,n.count,n):"",fn=n.ordinal&&ce?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",Xt=ce&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Ee=Xt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${S}`]||n[`defaultValue${fn}`]||n.defaultValue;!this.isValidLookup(d)&&Pe&&(Z=!0,d=Ee),this.isValidLookup(d)||(Q=!0,d=s);let Di=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Q?void 0:d,ht=Pe&&Ee!==d&&this.options.updateMissing;if(Q||Z||ht){if(this.logger.log(ht?"updateKey":"missingKey",p,l,s,ht?Ee:d),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 jt=[],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++)jt.push(ye[Je]);else this.options.saveMissingTo==="all"?jt=this.languageUtils.toResolveHierarchy(n.lng||this.language):jt.push(n.lng||this.language);let ri=r((Je,bt,ot)=>{let un=Pe&&ot!==d?ot:Di;this.options.missingKeyHandler?this.options.missingKeyHandler(Je,l,bt,un,ht,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Je,l,bt,un,ht,n),this.emit("missingKey",Je,l,bt,d)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&ce?jt.forEach(Je=>{let bt=this.pluralResolver.getSuffixes(Je,n);Xt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&bt.indexOf(`${this.options.pluralSeparator}zero`)<0&&bt.push(`${this.options.pluralSeparator}zero`),bt.forEach(ot=>{ri([Je],s+ot,n[`defaultValue${ot}`]||Ee)})}):ri(jt,s,Ee))}d=this.extendTranslation(d,t,n,f,i),Q&&d===s&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${s}`),(Q||Z)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,Z?d:void 0):d=this.options.parseMissingKeyHandler(d))}return o?(f.res=d,f.usedParams=this.getUsedParamsDetails(n),f):d}extendTranslation(t,n,i,o,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let p=oe(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),u;if(p){let d=t.match(this.interpolator.nestingRegexp);u=d&&d.length}let f=i.replace&&!oe(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,i.lng||this.language||o.usedLng,i),p){let d=t.match(this.interpolator.nestingRegexp),b=d&&d.length;u<b&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(i.lng=this.language||o.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var d=arguments.length,b=new Array(d),x=0;x<d;x++)b[x]=arguments[x];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 c=i.postProcess||this.options.postProcess,l=oe(c)?[c]:c;return t!=null&&l&&l.length&&i.applyPostProcessor!==!1&&(t=Xu.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,o,a,s,c;return oe(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(l,n),u=p.key;o=u;let f=p.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));let d=n.count!==void 0&&!oe(n.count),b=d&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),x=n.context!==void 0&&(oe(n.context)||typeof n.context=="number")&&n.context!=="",I=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(O=>{this.isValidLookup(i)||(c=O,!Gu[`${I[0]}-${O}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(c)&&(Gu[`${I[0]}-${O}`]=!0,this.logger.warn(`key "${o}" for languages "${I.join(", ")}" won't get resolved as namespace "${c}" 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(_=>{if(this.isValidLookup(i))return;s=_;let ie=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(ie,u,_,O,n);else{let Z;d&&(Z=this.pluralResolver.getSuffix(_,n.count,n));let Q=`${this.options.pluralSeparator}zero`,ce=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(ie.push(u+Z),n.ordinal&&Z.indexOf(ce)===0&&ie.push(u+Z.replace(ce,this.options.pluralSeparator)),b&&ie.push(u+Q)),x){let Pe=`${u}${this.options.contextSeparator}${n.context}`;ie.push(Pe),d&&(ie.push(Pe+Z),n.ordinal&&Z.indexOf(ce)===0&&ie.push(Pe+Z.replace(ce,this.options.pluralSeparator)),b&&ie.push(Pe+Q))}}let q;for(;q=ie.pop();)this.isValidLookup(i)||(a=q,i=this.getResource(_,O,q,n))}))})}),{res:i,usedKey:o,exactUsedKey:a,usedLng:s,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,o):this.resourceStore.getResource(t,n,i,o)}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&&!oe(t.replace),o=i?t.replace:t;if(i&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!i){o={...o};for(let a of n)delete o[a]}return o}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}};r(Kr,"Translator");var Gr=Kr,Us=r(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),Zs=class Zs{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=zt.create("languageUtils")}getScriptPartFromCode(t){if(t=Ur(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=Ur(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(oe(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let o=Intl.getCanonicalLocales(t)[0];if(o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o)return o}catch{}let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(o=>o.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=Us(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]=Us(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=Us(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 o=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let o=this.getLanguagePartFromCode(i);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(a=>{if(a===o)return a;if(!(a.indexOf("-")<0&&o.indexOf("-")<0)&&(a.indexOf("-")>0&&o.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===o||a.indexOf(o)===0&&o.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)),oe(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),o=[],a=r(s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return oe(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))):oe(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{o.indexOf(s)<0&&a(this.formatLanguageCode(s))}),o}};r(Zs,"LanguageUtil");var Hr=Zs,Fb=[{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}],Nb={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},Lb=["v1","v2","v3"],Vb=["v4"],Hu={zero:0,one:1,two:2,few:3,many:4,other:5},jb=r(()=>{let e={};return Fb.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Nb[t.fc]}})}),e},"createRules"),ec=class ec{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=zt.create("pluralResolver"),(!this.options.compatibilityJSON||Vb.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=jb(),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=Ur(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:o});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:o})}catch{if(!t.match(/-|_/))return;let l=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(l,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(o=>`${n}${o}`)}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((o,a)=>Hu[o]-Hu[a]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):i.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(t,i);return o?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,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)),o=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));let a=r(()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.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!Lb.includes(this.options.compatibilityJSON)}};r(ec,"PluralResolver");var Ks=ec,Wu=r(function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=xb(e,t,n);return!a&&o&&oe(n)&&(a=Hs(e,n,i),a===void 0&&(a=Hs(t,n,i))),a},"deepFindWithDefaults"),Bs=r(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),tc=class tc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=zt.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:o,prefix:a,prefixEscaped:s,suffix:c,suffixEscaped:l,formatSeparator:p,unescapeSuffix:u,unescapePrefix:f,nestingPrefix:d,nestingPrefixEscaped:b,nestingSuffix:x,nestingSuffixEscaped:I,nestingOptionsSeparator:O,maxReplaces:_,alwaysFormat:ie}=t.interpolation;this.escape=n!==void 0?n:Pb,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?_i(a):s||"{{",this.suffix=c?_i(c):l||"}}",this.formatSeparator=p||",",this.unescapePrefix=u?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?_i(d):b||_i("$t("),this.nestingSuffix=x?_i(x):I||_i(")"),this.nestingOptionsSeparator=O||",",this.maxReplaces=_||1e3,this.alwaysFormat=ie!==void 0?ie:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=r((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,o){let a,s,c,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=r(b=>{if(b.indexOf(this.formatSeparator)<0){let _=Wu(n,l,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(_,void 0,i,{...o,...n,interpolationkey:b}):_}let x=b.split(this.formatSeparator),I=x.shift().trim(),O=x.join(this.formatSeparator).trim();return this.format(Wu(n,l,I,this.options.keySeparator,this.options.ignoreJSONStructure),O,i,{...o,...n,interpolationkey:I})},"handleFormat");this.resetRegExp();let u=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:r(b=>Bs(b),"safeValue")},{regex:this.regexp,safeValue:r(b=>this.escapeValue?Bs(this.escape(b)):Bs(b),"safeValue")}].forEach(b=>{for(c=0;a=b.regex.exec(t);){let x=a[1].trim();if(s=p(x),s===void 0)if(typeof u=="function"){let O=u(t,a,o);s=oe(O)?O:""}else if(o&&Object.prototype.hasOwnProperty.call(o,x))s="";else if(f){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${x} for interpolating ${t}`),s="";else!oe(s)&&!this.useRawValueToEscape&&(s=Mu(s));let I=b.safeValue(s);if(t=t.replace(a[0],I),f?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,a,s,c=r((l,p)=>{let u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;let f=l.split(new RegExp(`${u}[ ]*{`)),d=`{${f[1]}`;l=f[0],d=this.interpolate(d,s);let b=d.match(/'/g),x=d.match(/"/g);(b&&b.length%2===0&&!x||x.length%2!==0)&&(d=d.replace(/'/g,'"'));try{s=JSON.parse(d),p&&(s={...p,...s})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,I),`${l}${u}${d}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l},"handleHasOptions");for(;o=this.nestingRegexp.exec(t);){let l=[];s={...i},s=s.replace&&!oe(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){let u=o[1].split(this.formatSeparator).map(f=>f.trim());o[1]=u.shift(),l=u,p=!0}if(a=n(c.call(this,o[1].trim(),s),s),a&&o[0]===t&&!oe(a))return a;oe(a)||(a=Mu(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),p&&(a=l.reduce((u,f)=>this.format(u,f,i.lng,{...i,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}};r(tc,"Interpolator");var Js=tc,Db=r(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let o=i[1].substring(0,i[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(s=>{if(s){let[c,...l]=s.split(":"),p=l.join(":").trim().replace(/^'+|'+$/g,""),u=c.trim();n[u]||(n[u]=p),p==="false"&&(n[u]=!1),p==="true"&&(n[u]=!0),isNaN(p)||(n[u]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),Mi=r(e=>{let t={};return(n,i,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={...a,[o.interpolationkey]:void 0});let s=i+JSON.stringify(a),c=t[s];return c||(c=e(Ur(i),o),t[s]=c),c(n)}},"createCachedFormatter"),nc=class nc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=zt.create("formatter"),this.options=t,this.formats={number:Mi((n,i)=>{let o=new Intl.NumberFormat(n,{...i});return a=>o.format(a)}),currency:Mi((n,i)=>{let o=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>o.format(a)}),datetime:Mi((n,i)=>{let o=new Intl.DateTimeFormat(n,{...i});return a=>o.format(a)}),relativetime:Mi((n,i)=>{let o=new Intl.RelativeTimeFormat(n,{...i});return a=>o.format(a,i.range||"day")}),list:Mi((n,i)=>{let o=new Intl.ListFormat(n,{...i});return a=>o.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()]=Mi(n)}format(t,n,i){let o=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(c=>c.indexOf(")")>-1)){let c=a.findIndex(l=>l.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,c)].join(this.formatSeparator)}return a.reduce((c,l)=>{let{formatName:p,formatOptions:u}=Db(l);if(this.formats[p]){let f=c;try{let d=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},b=d.locale||d.lng||o.locale||o.lng||i;f=this.formats[p](c,b,{...u,...o,...d})}catch(d){this.logger.warn(d)}return f}else this.logger.warn(`there was no format function for ${p}`);return c},t)}};r(nc,"Formatter");var Qs=nc,Rb=r((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),ic=class ic extends ki{constructor(t,n,i){let o=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=o,this.logger=zt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,o.backend,o)}queueLoad(t,n,i,o){let a={},s={},c={},l={};return t.forEach(p=>{let u=!0;n.forEach(f=>{let d=`${p}|${f}`;!i.reload&&this.store.hasResourceBundle(p,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?s[d]===void 0&&(s[d]=!0):(this.state[d]=1,u=!1,s[d]===void 0&&(s[d]=!0),a[d]===void 0&&(a[d]=!0),l[f]===void 0&&(l[f]=!0)))}),u||(c[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(l)}}loaded(t,n,i){let o=t.split("|"),a=o[0],s=o[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 c={};this.queue.forEach(l=>{Sb(l.loaded,[a],s),Rb(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(p=>{c[p]||(c[p]={});let u=l.loaded[p];u.length&&u.forEach(f=>{c[p][f]===void 0&&(c[p][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(l=>!l.done)}read(t,n,i){let o=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:o,wait:a,callback:s});return}this.readingCalls++;let c=r((p,u)=>{if(this.readingCalls--,this.waitingReads.length>0){let f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(p&&u&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,o+1,a*2,s)},a);return}s(p,u)},"resolver"),l=this.backend[i].bind(this.backend);if(l.length===2){try{let p=l(t,n);p&&typeof p.then=="function"?p.then(u=>c(null,u)).catch(c):c(null,p)}catch(p){c(p)}return}return l(t,n,c)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=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."),o&&o();oe(t)&&(t=this.languageUtils.toResolveHierarchy(t)),oe(n)&&(n=[n]);let a=this.queueLoad(t,n,i,o);if(!a.toLoad.length)return a.pending.length||o(),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("|"),o=i[0],a=i[1];this.read(o,a,"read",void 0,void 0,(s,c)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${o} failed`,s),!s&&c&&this.logger.log(`${n}loaded namespace ${a} for language ${o}`,c),this.loaded(t,s,c)})}saveMissing(t,n,i,o,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=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 l={...s,isUpdate:a},p=this.backend.create.bind(this.backend);if(p.length<6)try{let u;p.length===5?u=p(t,n,i,o,l):u=p(t,n,i,o),u&&typeof u.then=="function"?u.then(f=>c(null,f)).catch(c):c(null,u)}catch(u){c(u)}else p(t,n,i,o,c,l)}!t||!t[0]||this.store.addResource(t[0],n,i,o)}}};r(ic,"Connector");var Xs=ic,Ku=r(()=>({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:r(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),oe(e[1])&&(t.defaultValue=e[1]),oe(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:r(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),Ju=r(e=>(oe(e.ns)&&(e.ns=[e.ns]),oe(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),oe(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),Mr=r(()=>{},"noop"),wb=r(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Co=class Co extends ki{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Ju(t),this.services={},this.logger=zt,this.modules={external:[]},wb(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&&(oe(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let o=Ku();this.options={...o,...this.options,...Ju(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);let a=r(u=>u?typeof u=="function"?new u:u:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?zt.init(a(this.modules.logger),this.options):zt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=Qs);let f=new Hr(this.options);this.store=new Br(this.options.resources,this.options);let d=this.services;d.logger=zt,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new Ks(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(d.formatter=a(u),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Js(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new Xs(a(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(b){for(var x=arguments.length,I=new Array(x>1?x-1:0),O=1;O<x;O++)I[O-1]=arguments[O];t.emit(b,...I)}),this.modules.languageDetector&&(d.languageDetector=a(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=a(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Gr(this.services,this.options),this.translator.on("*",function(b){for(var x=arguments.length,I=new Array(x>1?x-1:0),O=1;O<x;O++)I[O-1]=arguments[O];t.emit(b,...I)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Mr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[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(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});let l=vo(),p=r(()=>{let u=r((f,d)=>{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),l.resolve(d),i(f,d)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),l}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mr,o=oe(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=r(c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(p=>{p!=="cimode"&&a.indexOf(p)<0&&a.push(p)})},"append");o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(c=>s(c)),this.services.backendConnector.load(a,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(c)})}else i(null)}reloadResources(t,n,i){let o=vo();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=Mr),this.services.backendConnector.reload(t,n,a=>{o.resolve(),i(a)}),o}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"&&Xu.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 o=vo();this.emit("languageChanging",t);let a=r(l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},"setLngProps"),s=r((l,p)=>{p?(a(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,o.resolve(function(){return i.t(...arguments)}),n&&n(l,function(){return i.t(...arguments)})},"done"),c=r(l=>{!t&&!l&&this.services.languageDetector&&(l=[]);let p=oe(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);p&&(this.language||a(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,u=>{s(u,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),o}getFixedT(t,n,i){var o=this;let a=r(function(s,c){let l;if(typeof c!="object"){for(var p=arguments.length,u=new Array(p>2?p-2:0),f=2;f<p;f++)u[f-2]=arguments[f];l=o.options.overloadTranslationOptionHandler([s,c].concat(u))}else l={...c};l.lng=l.lng||a.lng,l.lngs=l.lngs||a.lngs,l.ns=l.ns||a.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||i||a.keyPrefix);let d=o.options.keySeparator||".",b;return l.keyPrefix&&Array.isArray(s)?b=s.map(x=>`${l.keyPrefix}${d}${x}`):b=l.keyPrefix?`${l.keyPrefix}${d}${s}`:s,o.t(b,l)},"fixedT");return oe(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],o=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=r((c,l)=>{let p=this.services.backendConnector.state[`${c}|${l}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let c=n.precheck(this,s);if(c!==void 0)return c}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!o||s(a,t)))}loadNamespaces(t,n){let i=vo();return this.options.ns?(oe(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{i.resolve(),n&&n(o)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=vo();oe(t)&&(t=[t]);let o=this.options.preload||[],a=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=o.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 Hr(Ku());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 Co(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mr,i=t.forkResourceStore;i&&delete t.forkResourceStore;let o={...this.options,...t,isClone:!0},a=new Co(o);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(c=>{a[c]=this[c]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new Br(this.store.data,o),a.services.resourceStore=a.store),a.translator=new Gr(a.services,o),a.translator.on("*",function(c){for(var l=arguments.length,p=new Array(l>1?l-1:0),u=1;u<l;u++)p[u-1]=arguments[u];a.emit(c,...p)}),a.init(o,n),a.translator.options=o,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}}};r(Co,"I18n");var Wr=Co,w=Wr.createInstance();w.createInstance=Wr.createInstance;var xA=w.createInstance,CA=w.dir,PA=w.init,AA=w.loadResources,EA=w.reloadResources,IA=w.use,OA=w.changeLanguage,FA=w.getFixedT,NA=w.t,LA=w.exists,VA=w.setDefaultNamespace,jA=w.hasLoadedNamespace,DA=w.loadNamespaces,RA=w.loadLanguages;var fg=$(oc()),ug=$(xd()),ua=$(cg()),ae=require("@sap-ux/vocabularies-types/vocabularies/UI"),Fo=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Cc=$(G());var J=r((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(`${Cc.logSeverityLabel[t.severity]}: ${t.message}; location: ${t.location}`,...n):console.log(`${Cc.logSeverityLabel[t.severity]}: '${t.message}`,...n)},"log");var j="#/definitions/",Pc=r((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),Gt=r((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function ci(e,t){let n=[],i;return e&&e.forEach(function(o){try{n.push((0,ua.parse)(o.fileContent,o.dataSourceUri))}catch(a){return J(t,{severity:L.LogSeverity.Error,message:w.t("ANNOERR"),location:{path:w.t("ANNOTATIONFILE",{file:o.dataSourceUri})}},a),i}}),n.length>0&&(i=(0,ug.convert)((0,ua.merge)(...n))),i}r(ci,"parseAndMergeAndConvert");var Wi=r(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Ac(e,t,n){var i,o,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 c=t&&t.resolvePath(e.Common.Label.path);c!=null&&c.value?n=c.value:typeof((o=c==null?void 0:c.Common)==null?void 0:o.Label)=="string"&&(n=c.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}r(Ac,"evaluateCommonLabel");function dg(e,t){let n=e.value;return e.$target&&(n=Ac(e.$target.annotations,t,n)),n}r(dg,"getLabelForPropertyPath");function fa(e,t){var o,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=(o=i==null?void 0:i.annotations)==null?void 0:o.Common)!=null&&a.Label&&(n=Ac(i.annotations,t,n)),n}r(fa,"getLabelForDataField");function mv(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let o=t&&t.resolvePath(e.path);if(!o||o.length===0)return;{let a=o[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return Ac(a.annotations,t,s)}}}else return}r(mv,"getLabel");function lg(e,t,n){let i=fa(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}r(lg,"getTitleForDataField");function No(e,t){var s,c,l,p;let n="",i,o,a="";try{let u=mv(e.Label,t);switch(e.$Type){case ae.UIAnnotationTypes.DataField:n=lg(e,t,u);break;case ae.UIAnnotationTypes.DataFieldWithUrl:i=fa(e,t),n=u||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:o=e,i=fa(e,t),n=u||i||((c=(s=o.Target)==null?void 0:s.$target)==null?void 0:c.Title)||((l=o.Target)==null?void 0:l.value.split("UI.v1.")[1]);break;case ae.UIAnnotationTypes.DataFieldForAction:case ae.UIAnnotationTypes.DataFieldWithAction:case ae.UIAnnotationTypes.DataFieldForIntentBasedNavigation:o=e,a=typeof e.Action=="string"?o.Action:(p=o.Action)==null?void 0:p.path,u?n=typeof u=="string"?u:a:n=a;break;case ae.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=fa(e,t),n=i||e.Value.path;break;case ae.UIAnnotationTypes.DataFieldWithNavigationPath:o=e,n=lg(o,t,u);break;default:break}return n}catch{return n}}r(No,"getDatafieldDescription");function _e(e){return e.replace("#","::").replace(/\//g,":2f")}r(_e,"prepareRef");function bn(e){if(e){let t=`${L.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}r(bn,"getPageTypeV2");function yv(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}r(yv,"getTargetAnnotationName");function en(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}r(en,"findAlias");function hv(e,t,n){var s,c;let i=e[e.length-1],o=i.substring(i.lastIndexOf(".")+1,i.length),a=en(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(c=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:c[o]}r(hv,"determineTargetAnnotation");function bv(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let o=e.split("::");o[o.length-1]=`${n?"":"@"}${ae.UIAnnotationTerms.LineItem}`,e=o.join("::")}else e=i.replace("@UI",`${n?"":"@"}${L.UIVOCABULARY}`);return e}r(bv,"adjustKey");function Tv(e,t,n,i,o=L.FioriElementsVersion.v2,a=!1){var f,d;let s=!1,c,l=i.split("/"),p=l.length>1;p&&n&&(n=(f=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:f.targetType),t=bv(t,l,a);let u=hv(l,n,e);if(u){let b=o===L.FioriElementsVersion.v2?"::":"#";t=yv(u,a).replace("#",b),c=(d=u.fullyQualifiedName)==null?void 0:d.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:c};if(p){let b=o===L.FioriElementsVersion.v2?"::":"/";l.pop(),t=`${[...l].join(b)}${b}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:c}}r(Tv,"getKeyAndEntityTypeOfReferenceFacet");function gg(e,t,n,i,o=L.FioriElementsVersion.v2,a=!1){var u,f,d;let s=(f=e.fullyQualifiedName)==null?void 0:f.substring((u=e.fullyQualifiedName)==null?void 0:u.lastIndexOf("@")),c=e.ID?e.ID.toString():s,l=(d=e.fullyQualifiedName)==null?void 0:d.split("@")[0],p=t;if(e.$Type!==ae.UIAnnotationTypes.CollectionFacet&&"Target"in e){let b=Wi(e.Target);if(!b){J(i,{severity:L.LogSeverity.Error,message:w.t("NOTARGET",{target:e.Target})});return}let{key:x,entityType:I,stopProcessing:O,namespace:_}=Tv(n,c,p,b,o,a);if(O)return;c=x,p=I,l=_}if(c=c.replace(/\//gi,"::"),c)return{key:c,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:l}}r(gg,"getSectionFacet");function Ec(e){let t,n,i;switch(e.$Type){case ae.UIAnnotationTypes.DataField:t=Wi(e.Value);break;case ae.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Wi(e.Value);break;case ae.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${L.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=Wi(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=Wi(e.Value),n=Wi(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}r(Ec,"getSchemaKeyOfLineItemRecord");function vv(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}r(vv,"getUIAnnotationTerm");function Sv(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Fo.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Fo.CommunicationAnnotationTerms.Address:void 0}r(Sv,"getCommunicationAnnotationTerm");function xv(e,t,n){return vv(e,t,n)||Sv(e,t)}r(xv,"getAnnotationTerm");function Cv(e,t,n,i,o){var p,u,f,d,b,x,I,O,_;let a=en(L.UIVOCABULARY,o),s=e?e.key:"",c=e.entityType;switch(xv(s,a,i)){case ae.UIAnnotationTerms.Chart:{n[s]={base:L.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.Identification:{n[s]={base:L.FacetBase.Identification},n[s].target=(u=t==null?void 0:t.Target)==null?void 0:u.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.LineItem:{if(!s.includes(ae.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let ie=s.split("::");ie[ie.length-1]=`@${ae.UIAnnotationTerms.LineItem}`,s=ie.join("::")}n[s]={base:L.FacetBase.LineItem},n[s].target=(f=t==null?void 0:t.Target)==null?void 0:f.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.FieldGroup:{n[s]={base:L.FacetBase.Form},n[s].target=(d=t==null?void 0:t.Target)==null?void 0:d.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.DataPoint:{n[s]={base:L.FacetBase.DataPoint},n[s].Label=(b=t==null?void 0:t.Target)==null?void 0:b.$target.Title,n[s].target=(x=t==null?void 0:t.Target)==null?void 0:x.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case ae.UIAnnotationTerms.PresentationVariant:{n[s]={base:L.FacetBase.PresentationVariant},n[s].target=(I=t==null?void 0:t.Target)==null?void 0:I.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case Fo.CommunicationAnnotationTerms.Contact:{n[s]={base:L.FacetBase.Contact},n[s].target=(O=t==null?void 0:t.Target)==null?void 0:O.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}case Fo.CommunicationAnnotationTerms.Address:{n[s]={base:L.FacetBase.Address},n[s].target=(_=t==null?void 0:t.Target)==null?void 0:_.$target,n[s].entityType=c,n[s].namespace=e.namespace;break}default:n[s]={base:L.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",L.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}r(Cv,"evaluateTargetAnnotation");function Ic(e,t,n,i,o,a=L.FioriElementsVersion.v2,s){var l;let c=gg(e,i,t,s,a,!1);if(c)switch(e.$Type){case ae.UIAnnotationTypes.ReferenceFacet:{Cv(c,e,o,i,t);break}case ae.UIAnnotationTypes.CollectionFacet:{let p=`/${i.fullyQualifiedName}/${e.fullyQualifiedName.split(i.fullyQualifiedName)[1]}`,u=o[c.key]={base:L.FacetBase.CollectionFacet,facets:{},ID:c.ID,annotationPath:p,Label:c.label,namespace:c.namespace};(l=e.Facets)==null||l.forEach(f=>{Ic(f,t,n,i,u.facets,a,s)});break}}}r(Ic,"addFacetToConfig");function mg(e,t,n=L.FioriElementsVersion.v2,i){var c,l;let o={};if(!e||!e.annotations)return;let a=en(L.UIVOCABULARY,t),s=a&&((l=(c=e==null?void 0:e.annotations)==null?void 0:c[a])==null?void 0:l.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),u=e&&e.fullyQualifiedName.substring(0,p);s.forEach(f=>{Ic(f,t,u,e,o,n,i)})}return o}r(mg,"getObjectPageHeaderFacets");function yg(e,t,n=L.FioriElementsVersion.v2,i){var c;let o={};if(!e||!e.annotations)return;let a=en(L.UIVOCABULARY,t),s=a&&((c=e==null?void 0:e.annotations[a])==null?void 0:c.Facets);if(s){let l=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,l);s.forEach(u=>{Ic(u,t,p,e,o,n,i)})}return o}r(yg,"getObjectPageFacets");function Oc(e){return e[L.ManifestSection.generic]||e[L.ManifestSection.ovp]?L.FioriElementsVersion.v2:L.FioriElementsVersion.v4}r(Oc,"getFEVersionFromManifest");function Pv(e){var n,i,o,a;let t=typeof((n=e==null?void 0:e[L.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[L.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(o=(i=e==null?void 0:e[L.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:o[t])==null?void 0:a.dataSource)=="string"?e[L.ManifestSection.ui5].models[t].dataSource:void 0}r(Pv,"getMainService");function hg(e){var i,o;let t=Pv(e);if(!t)return L.OdataVersion.v2;let n=(i=e[L.ManifestSection.app].dataSources)==null?void 0:i[t];return((o=n==null?void 0:n.settings)==null?void 0:o.odataVersion)==="4.0"?L.OdataVersion.v4:L.OdataVersion.v2}r(hg,"getODataVersionFromManifest");function Av(e,t){var i,o;let n;if(e[L.ManifestSection.generic]){let a=e[L.ManifestSection.generic].pages;if(!a){J(t,{severity:L.LogSeverity.Error,message:w.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:L.MANIFESTPATH,range:[L.ManifestSection.generic]}});return}for(let s in a){let c=a[s];if(bn((i=c.component)==null?void 0:i.name)===L.PageTypeV2.AnalyticalListPage){n=L.TemplateType.AnalyticalListPageV2;break}else if(bn((o=c.component)==null?void 0:o.name)===L.PageTypeV2.ListReport){n=L.TemplateType.ListReportObjectPageV2;break}}}else n||J(t,{severity:L.LogSeverity.Error,message:w.t("NOTEMPLATE",{section:L.ManifestSection.generic}),location:{path:L.MANIFESTPATH,range:[L.ManifestSection.generic]}});return n}r(Av,"determineV2Template");function li(e,t,n){let i;return e[L.ManifestSection.ovp]?i=L.TemplateType.OverviewPageV2:t===L.FioriElementsVersion.v2&&(i=Av(e,n)),i}r(li,"getTemplateTypeFromManifest");function Lo(e,t,n){e!=null&&e.ID?(t.title=L.FACETTITLEPREFIX+e.ID,t[L.SchemaTag.keys]=[{name:L.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[L.SchemaTag.keys]=[{name:L.SchemaKeyName.id,value:n.replace(L.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}r(Lo,"addSectionTitleAndDescription");function Ev(e,t,n){var i,o;Lo(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:(o=e==null?void 0:e.target)!=null&&o.Label&&(t.description=e.target.Label))}r(Ev,"addTargetTitleAndSectionDescription");function pi(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[L.SchemaTag.isViewNode]=!0,i[L.SchemaTag.annotationPath]=t.annotationPath,Ev(t,i,n),i}r(pi,"createDefaultSection");function bg(e,t,n,i=L.FioriElementsVersion.v2,o=!1){var c,l;let a=en(L.UIVOCABULARY,t),s=[];if(e){let p=a&&((l=(c=e==null?void 0:e.annotations)==null?void 0:c[a])==null?void 0:l.Facets);return p&&(s=p.reduce(function(u,f){if(o&&!f.ID&&!("Target"in f&&f.Target))return u;let d=gg(f,e,t,n,i,!0);return d&&u.push(d),u},s)),s}}r(bg,"getObjectPageFacetSection");var Vo=r((e,t,n,i,o,a)=>{if(!t)return;let s=e,c=t.split("/");c.forEach(function(l){let p=a&&a===l?o:l.replace("??","/");if(!(!s[p]&&(a===l&&(p=a),!s[p]))){if(Object.keys(s[p]).length===0||i&&i[i.length-1]===p&&n){Array.isArray(s)?s.splice(Number(p),1):delete s[p],c.pop(),Vo(e,c.join("/"),n,i,o,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),pg=r(e=>`${e}`,"getGenericSchemaFileName"),Ze=r((e,t)=>{let n={filename:"",path:""};switch(e){case L.SchemaType.Application:{n.filename="App",n.path=`./${L.DirName.Schemas}/${n.filename}`;break}case L.SchemaType.ListReport:case L.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:pg(e),n.path=`../${L.DirName.Schemas}/${n.filename}`;break}default:{n.filename=pg(e),n.path=`../${L.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function da(e,t,n,i){if(e===L.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let o=[];return o.push(e),t?o.push(t):i&&o.push(i.replace("|","").replace(e,"")),o.join("_")}r(da,"generatePageId");function Iv(e,t,n,i){let o=e.$ref;if(o){let a=o.split(j)[1];if(t.definitions[a]){let s=t.definitions[a].controlProperty;o.includes(n[s])&&i.push(a)}}}r(Iv,"fillArrayFromAnyOfReference");function Ov(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(j)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(o=>{Iv(o,n,t,i)}),i.length===0))return;return i}r(Ov,"fillArrayFromPropertyDefinition");function Fv(e,t,n,i,o,a,s,c){var p,u,f,d;let l={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(l.targetDefinition=t.definitions[b],(p=l==null?void 0:l.targetDefinition)!=null&&p.$ref||((u=l==null?void 0:l.targetDefinition)==null?void 0:u.type)==="array")return l=wn(t,n,i,l.targetDefinition,o,a,s),l;e.length>1&&e.forEach(O=>{O!==""&&(l.targetDefinition.properties={...l.targetDefinition.properties,...t.definitions[O].properties})}),l.title=(f=l==null?void 0:l.targetDefinition)!=null&&f.title?l.targetDefinition.title:n;let x=b==null?void 0:b.split("<")[0],I=i||{};l.configObject=a.createInstance(s,x,I,(d=l==null?void 0:l.targetDefinition)==null?void 0:d.controlProperty)}else l.targetDefinition=c,l.title=l.targetDefinition.title?l.targetDefinition.title:o,l.configObject=i;return l}r(Fv,"determineNextDefinitionFromDefinitionArray");function wn(e,t,n,i,o,a,s){let c;if(i.type==="array")return c=wn(e,t,n,i.items,o,a,s),c;let l=Ov(i,n,e);if(l)return c=Fv(l,e,t,n,o,a,s,i),c}r(wn,"getNextTargetDefinition");var Fc=r((e,t,n)=>{let i=e.slice();return t.forEach((o,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(o,n):n.isMergeableObject(o)?i[a]=(0,fg.default)(e[a],o,n):e.indexOf(o)===-1&&i.push(o)}),i},"arrayCombineMerge");function St(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}r(St,"convertActionKeyToStableId");function Tg(e){return e instanceof Error?e.message:String(e)}r(Tg,"getErrorMessage");function Ki(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}r(Ki,"updatePropertyIndices");function vg(e){return e=e.replace(L.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}r(vg,"removeNamespaces");function ga(e){return e=e.replace(L.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}r(ga,"replaceNamespaces");function Tn(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith(j))return t.substring(j.length)}r(Tn,"getRefType");function Sg(e){return`#/definitions/${e}`}r(Sg,"getDefinitionsRef");var ni=require("@sap-ux/vocabularies-types/vocabularies/UI"),V=$(G());var xt=$(G());var Fe=r((e,t)=>e+t.join("::"),"buildControlIdFromParent"),ma=r((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),et=r((e,t)=>{let n,i=xt.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 Nv(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}r(Nv,"escapeId");var xg=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(xg||{});function Lv(e,t,n){let i;return e=e.map(function(o){if(o===xt.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===xt.PropertyName.sections)return i=t[a+1],t[a+1]=et(i,n)+"::Table",t[a+1]}return o}),{idBreadcrumbs:e}}r(Lv,"mapBreadcrumbs");var Nc=r((e,t,n,i,o)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=Lv(t,s,o)),s[0]===xt.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,xt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,xt.VOCWITHSLASH):t[0]===xt.PropertyName.table&&(a=t[0]);let l=s[s.length-1].replace(/::com.sap.vocabularies/g,xt.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,xt.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,u=l.indexOf(":::");return l.startsWith("DataField")&&u>-1?(l=l.replace("/",":2f"),p=`${e}template:::TableColumn:::${l.substring(0,u)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${l.substring(u+3)}`):(l=l.replace("/","_"),p=`${e}${t.join("::")}-${l}`),Nv(p)},"buildColumnControlId"),Ct=r(e=>{let t=e[e.length-1].split(":::"),n,i,o;return t.length>2?(n=t[0],i=t[1].split("::")[1],o=t[2].split("::")[1]):t.length===2?(n=t[0],o=t[1].split("sAction::")[1]):o=t[0],{actionType:n,semanticObjectId:i,actionId:o}},"getActionBreadcrumbParts");function Vv(e){let t=xt.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}r(Vv,"determinePattern");var Cg=r((e,t,n,i)=>{let o=t&&t.properties;if(o[n].pattern)return;let a=o[n],s=a,c=a.$ref?e.definitions[a.$ref.split(j)[1]]:a,l=a.description?a.description:c.description,p=Vv(c);c.type&&c.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(u=>{s.enum.indexOf(u)===-1&&s.enum.push(u)}),o[n]={pattern:p,anyOf:[s,{type:"string"}]},l&&(o[n].description=l,delete a.description)},"addPatternForBindingChangeOfEnum"),Ji=r((e,t,n)=>{Cg(e,t,n)},"addPatternForBindingChangeOfEnumLR"),he=r((e,t,n)=>{let i=Object.values(xg);Cg(e,t,n,i)},"addPatternForBindingChangeOfEnumOP");function Pg(){}r(Pg,"doNotDelete");var NE=$(Eg());var Lc=Symbol("specificationMetadataKey"),y=r(e=>Reflect.metadata(Lc,e),"syncRule");function lt(e,t){let n;return e&&(n=Reflect.getMetadata(Lc,e,t)),n}r(lt,"getReflectMetadata");function Ig(e){let t;return e&&(t=Reflect.getMetadata(Lc,e)),t}r(Ig,"getReflectTypeMetadata");var tn=r(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),Og=Symbol("childId"),qe=r(e=>Reflect.metadata(Og,e),"childId"),Fg=r((e,t)=>Reflect.getMetadata(Og,e,t),"getChildId"),Ng=r(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),jv=Symbol("descriptionSrcURL"),vn=r(e=>Reflect.metadata(jv,e),"descriptionSrcURL");var Dv=Symbol("validityMetadataKey"),N=r(e=>Reflect.metadata(Dv,e),"validity");function Qi(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}r(Qi,"getTextForDeprecated");var _g=$(wg()),Mg=$(G());var kg=_g.default.change,$g={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function Ug(e,t){let n="";try{for(let i in $g)e[i]===void 0&&(e[i]=$g[i]);n=kg.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}r(Ug,"createChangeString");function Ot(e){try{return kg.parse(e)}catch{return!1}}r(Ot,"parseChangeString");function Bg(e,t,n,i,o){let a=n.layer?n.layer===Mg.FlexChangeLayer.Customer:!0,s={controlId:o,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}r(Bg,"fillFlexChangeContent");function D(e,t){return Ug(e,t)}r(D,"exportToFlexChange");var fi=$(G());function ya(e,t,n,i,o,a){let s=e.manifest.key||n,c=e.manifest.import;if(c&&typeof c=="function"){let l=c(t,o,n,a);l!==void 0&&(i[n]=l)}else t[s]!==void 0&&(i[n]=t[s])}r(ya,"importProperty");function Gg(e,t,n,i){if(t&&e)for(let o in t){let a=e[o];a&&(J(i,{severity:fi.LogSeverity.Warning,message:Qi(o,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[o])}}r(Gg,"checkDeprecatedProperties");function Vc(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(j)[1]];return Vc(n,t)}else return e.title?e.title.startsWith(fi.FACETTITLEPREFIX)?e.title.split(fi.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}r(Vc,"getSectionTitle");function ha(e){let t=e.split(`${fi.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}r(ha,"getTargetFromCustomColumnRef");var Ve=require("@sap-ux/vocabularies-types/vocabularies/UI");var Sn=require("@sap-ux/vocabularies-types/vocabularies/UI");function Wg(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}}r(Wg,"replaceSpecialChars");var ui=r(function(e){return Wg(vg(e))},"prepareId");function Uv(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}r(Uv,"evaluateConcat");function di(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 Uv(e);if(e&&typeof e=="string")return Wg(e.replace(/ /g,"_"))}r(di,"getStableIdPartFromValue");var Hg=r(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"),Kg=r(function(e){let t="";if(e.$Type&&e.$Type===Sn.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,ui(t);if(e.$Type&&e.$Type===Sn.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=Hg(e),t;if(e.$Type&&e.$Type===Sn.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=ui(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===Sn.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=di(e.Value)+"::"),t+=e.Action,ui(t);if(e.$Type&&e.$Type===Sn.UIAnnotationTypes.DataField)return t="DataField::",t+=di(e.Value),ui(t);if(e.$Type&&e.$Type===Sn.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=di(e.Value)+"::",t+=Hg(e),ui(t);if(e.$Type&&e.$Type===Sn.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=di(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),ui(t);if(e.$Type&&e.$Type===Sn.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=di(e.Value),ui(t)},"getStableIdPartFromDataField");var F=$(G());var z=$(G());var Pt=require("@sap-ux/vocabularies-types/vocabularies/UI"),zg=require("path"),Yg=$(Io());var Xi="ResponsiveTable<LineItems>",jo="TreeTable<LineItems>",Do="AnalyticalTable<LineItems>",Ro="GridTable<LineItems>",Jg=[jo,Do,Ro],Qg=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],Xg="template::",ba="template:::ObjectPageAction:::";function Bv(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)}r(Bv,"addCustomColumnDefinition");function Gv(e,t){let n;return e==="TableColumnActionIntentBased"?n=Ec(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=_e(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Pt.UIAnnotationTypes.DataFieldForAction?n=_e(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=_e(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}r(Gv,"getActionId");function jc(e,t,n,i,o){let a,s=n.lineItemId===z.DefinitionName.LineItems?"":"ObjectPage",c=Gv(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let l=`${s}${i}<${c}>`,p=No(n.lineItemRecord,n.entityType);t.properties[c]={$ref:j+l},t.properties[c][z.SchemaTag.propertyIndex]=o;let{key:u,ns:f}=wo(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[l]={...JSON.parse(JSON.stringify(e.definitions[a])),description:p,keys:[{name:"Action",value:u}],annotationPath:`${n.lineItemPath}/${o}`},f&&(e.definitions[l][z.SchemaTag.target]=f)):(e.definitions[l]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[l][z.SchemaTag.isViewNode]=!0,e.definitions[l][z.SchemaTag.keys]=[{name:z.SchemaKeyName.action,value:u}],f&&(e.definitions[l][z.SchemaTag.target]=f),e.definitions[l][z.SchemaTag.annotationPath]=`${n.lineItemPath}/${o}`)}r(jc,"handleActionRecord");function Hv(e,t,n){e!==z.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Pt.UIAnnotationTypes.DataFieldForAction||t.$Type===Pt.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Pt.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Pt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}r(Hv,"getColumnActionType");function Wv(e,t){let n=[];if(!(e.$Type!==Pt.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Pt.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Pt.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Pt.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Pt.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Pt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),Hv(t,e,n),n}r(Wv,"getActionType");function Zg(e,t,n){let i=Ec(e.lineItemRecord);if(i){let o=t.definitions[e.lineItemId];o.properties[i]={$ref:j+z.DefinitionName.TableColumn,description:No(e.lineItemRecord,e.entityType)},o.properties[i][z.SchemaTag.propertyIndex]=n,o.properties[i][z.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Sa(o.properties[i],e.lineItemRecord),rm(e.lineItemRecord,o.properties,i)}}r(Zg,"generateGenericColumn");function Kv(e,t,n,i,o,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{jc(t,n,i,e,o);break}case"FooterAction":case"FooterActionIntentBased":{a&&jc(t,a,i,e,o);break}case"TableColumnAction":case"TableColumnActionIntentBased":{jc(t,t.definitions[s],i,e,o);break}case"ObjectPageTableColumnAction":Zg(i,t,o)}}r(Kv,"handleAnyAction");function qi(e,t,n,i,o,a){o=o||z.DefinitionName.LineItems;let{actions:s,footerActions:c,lineItemPath:l}=om(e,t,n,i,o);if(n){let p=0;n.forEach(u=>{let f={lineItemPath:l,lineItemRecord:u,lineItemId:o,entityType:i},d=Wv(u,o);d?d.forEach(b=>{Kv(b,t,s,f,p,c,o)}):Zg(f,t,p),p++})}a&&(t.definitions[o].properties.custom={$ref:`${j}${a}`})}r(qi,"addLineItemsType");function Jv(e,t,n){var o,a;let i=(a=(o=e.definitions[n])==null?void 0:o.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((c,l)=>(c.includes(l.name)||c.push(l.name),c),[])}}r(Jv,"addListReportLeadingProperties");function Qv(e,t,n,i){var s,c,l,p,u,f;let o=(c=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:c.tabKey;if(!n){i&&(o.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",o.enum=[i]);return}let a=(u=(p=(l=n.component)==null?void 0:l.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:u.variants;if(a){let d=[];for(let b in a){let x=(f=a[b])==null?void 0:f.key;x!==void 0&&!d.includes(x)&&d.push(x)}gi(d,o)}}r(Qv,"addTabkeyEnum");function Ta(e,t,n,i,o){var s,c;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(l=>{let p=l.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let u=JSON.parse((0,Yg.xml2json)(l.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!u||u.Column||u["table:Column"]||u["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!u||!u.Column&&!u["table:Column"]&&!u["table:AnalyticalColumn"]&&!u["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+zg.sep,"g"),"/");let f=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(f)}}}),gi(a,(c=(s=e.definitions[o])==null?void 0:s.properties)==null?void 0:c[i])}r(Ta,"addFragmentEnum");function zi(e,t,n,i,o,a=z.DefinitionName.CustomColumns,s=z.DefinitionName.CustomColumn,c){Bv(e,a,s),Jv(e,t,s),Qv(e,s,n,c);let l=i&&i["sap.app"]&&i["sap.app"].id;Ta(e,o,l,"fragmentName",s),Ta(e,o,l,"fragmentName",z.DefinitionName.CustomColumn),Ta(e,o,l,"cellsFragmentName",s),Ta(e,o,l,"cellsFragmentName",z.DefinitionName.CustomColumn)}r(zi,"addTableColumnExtensions");function em(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}r(em,"removeElementsFromEnum");function va(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,o=Gt(n==null?void 0:n.fullyQualifiedName,Pt.UIAnnotationTerms.SelectionFields);if(o&&(i[z.SchemaTag.annotationPath]=o),!t)return;let a=0;t.forEach(s=>{let c=s.value,l=`SelectionField<${_e(s.value)}>`,p=Dc(s);s.type==="PropertyPath"&&(c=dg(s,n)),i.properties[s.value]={$ref:j+l},i.properties[s.value][z.SchemaTag.propertyIndex]=a,e.definitions[l]={type:"object",description:c,additionalProperties:!1},e.definitions[l][z.SchemaTag.isViewNode]=!0,e.definitions[l][z.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[l][z.SchemaTag.dataType]=p,e.definitions[l][z.SchemaTag.keys]=[{name:z.SchemaKeyName.value,value:`${s.value}`}],e.definitions[l][z.SchemaTag.annotationPath]=`${i[z.SchemaTag.annotationPath]}/${a}`,e.definitions[l].properties={},a++})}r(va,"addSelectionFields");function tm(e){return!!e.navigationProperties.find(n=>n.name==="DraftAdministrativeData")}r(tm,"isDraftEnabled");function Yi(e,t=!1,n){let i=z.DefinitionName.HeaderActionsStandard,o=z.DefinitionName.HeaderActionsStandard,a=z.DefinitionName.HeaderActionStandard;t&&(i=z.DefinitionName.GenericActions,o=z.DefinitionName.HeaderActions,a=z.DefinitionName.ObjectPageHeaderActionStandard);let s=e.definitions[i],c=e.definitions[o];c[z.SchemaTag.isViewNode]=!0,c.description="Actions",Object.entries((n||s).properties).forEach(([p,u])=>{let f=u.$ref.split(j)[1],d=`${a}<${f}>`;c.properties[p]={$ref:`${j}${d}`},e.definitions[d]=e.definitions[f],e.definitions[f][z.SchemaTag.actionType]=z.ActionType.Standard})}r(Yi,"addStandardHeaderActions");function nm(e,t){let n=e.definitions[z.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let o=n.properties[i].$ref.split(j)[1],a=`${z.DefinitionName.ObjectPageFooterActionStandard}<${o}>`;t.properties[i]={$ref:`${j}${a}`},e.definitions[a]=e.definitions[o],e.definitions[o][z.SchemaTag.actionType]=z.ActionType.Standard}}r(nm,"addStandardFooterActionsOP");function im(e){var i,o,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(o=t==null?void 0:t.annotations)==null?void 0:o.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?w.t("NOUIANNOTATIONS",{entityType:t.name}):w.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});J(e.logger,{severity:z.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}r(im,"getUIAnnotationForEntitySet");function Xv(e,t,n,i){if(e===F.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===F.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}}}r(Xv,"copyFieldProperties");function qv(e,t,n,i){let o=e===F.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===F.FioriElementsVersion.v2?`${o}<${n}::${i}>`:`${n}::${i}`}r(qv,"determineFieldDefinitionName");function zv(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][F.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][F.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][F.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][F.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}r(zv,"addKeysTagForDataField");function Yv(e,t,n){if(e.$Type===Ve.UIAnnotationTypes.DataField||e.$Type===Ve.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ve.UIAnnotationTypes.DataFieldWithNavigationPath)zv(e,t,n);else if(e.$Type===Ve.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][F.SchemaTag.keys]=[{name:"Target",value:ga(e.Target.value)}],t.definitions[n][F.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][F.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][F.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][F.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Ve.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][F.SchemaTag.keys]=[{name:F.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][F.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][F.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}r(Yv,"addKeysTagToField");function am(e,t,n,i,o,a,s,c=!0){var f;let l=Kg(n),p=s===F.FioriElementsVersion.v2&&l&&l.includes("::")?l.split("::").splice(1).join("::"):l,u=qv(s,l,i,p);if(!(!n||!n.$Type)){if(n.$Type===Ve.UIAnnotationTypes.DataFieldForAction||n.$Type===Ve.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(c&&e===F.SectionType.Section){let d=_e(`${e}${F.DefinitionName.Actions}<${i}>`),b=t.definitions[d].properties[p]={$ref:`${j}${u}`};b[F.SchemaTag.propertyIndex]=parseInt(o)}}else{let d=_e(`${e}${F.DefinitionName.Fields}<${i}>`);t.definitions[d].properties[p]={$ref:`${j}${u}`,propertyIndex:parseInt(o)}}t.definitions[u]={type:"object",properties:{},description:No(n,a.entityType),additionalProperties:!1},Yv(n,t,u),t.definitions[u][F.SchemaTag.annotationPath]=`/${a.entityType.fullyQualifiedName}/${n.fullyQualifiedName.split(a.entityType.fullyQualifiedName)[1]}`,t.definitions[u][F.SchemaTag.annotationType]=n.$Type,t.definitions[u][F.SchemaTag.isViewNode]=!0,Sa(t.definitions[u],n),Xv(s,t,n,u),n.$Type===Ve.UIAnnotationTypes.DataFieldForAction&&((f=t.definitions)!=null&&f.FormAction)&&(t.definitions[u].properties=t.definitions[F.DefinitionName.FormAction].properties)}}r(am,"addField");function Zv(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}r(Zv,"determineTargetIdOfForm");function eS(e,t,n,i,o,a=!0){var p;if(!e.target)return;let s=_e(`${t}${F.DefinitionName.Form}<${i}>`),c=_e(`${t}${F.DefinitionName.Fields}<${i}>`),l=_e(`${t}${F.DefinitionName.Actions}<${i}>`);if(n.properties.form={$ref:`${j}${s}`},t===F.SectionType.Section&&a?(n.definitions[s]={type:"object",properties:{actions:{$ref:`${j}${l}`},fields:{$ref:`${j}${c}`}},description:"Form",additionalProperties:!1},n.definitions[l]={type:"object",properties:{},description:"Actions",additionalProperties:!1},n.definitions[l][F.SchemaTag.isViewNode]=!0):n.definitions[s]={type:"object",properties:{fields:{$ref:`${j}${c}`}},description:"Form",additionalProperties:!1},n.definitions[s][F.SchemaTag.isViewNode]=!0,(p=e.entityType)!=null&&p.name&&(n.definitions[s][F.SchemaTag.annotationPath]=Gt(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier)),n.definitions[c]={type:"object",properties:{},description:"Fields",additionalProperties:!1},n.definitions[c][F.SchemaTag.isViewNode]=!0,e.base===F.FacetBase.Identification)for(let u in e.target){let f=e.target[u];f&&am(t,n,f,i,u,e,o,a)}else for(let u in e.target.Data){let f=e.target.Data[u];am(t,n,f,i,u,e,o)}}r(eS,"addFieldsToFormDefinition");function tS(e,t,n){var i,o;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][F.SchemaTag.keys]=[{name:F.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][F.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][F.SchemaTag.isViewNode]=!0,(o=e.entityType)!=null&&o.name&&(t.definitions[n][F.SchemaTag.annotationPath]=Gt(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}r(tS,"addTagsToFormDefinition");function sm(e,t,n,i,o,a){if(!t.target)return;let s=Zv(t),c=_e(`${e}${F.DefinitionName.Form}<${s}>`),l=_e(`${e}${F.DefinitionName.Fields}<${s}>`),p=_e(`${e}${F.DefinitionName.Actions}<${s}>`),u=!(t.base===F.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${j}${c}`},e===F.SectionType.Section&&u?(i.definitions[c]={type:"object",properties:{actions:{$ref:`${j}${p}`},fields:{$ref:`${j}${l}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][F.SchemaTag.isViewNode]=!0):i.definitions[c]={type:"object",properties:{fields:{$ref:`${j}${l}`}},description:"Form",additionalProperties:!1},tS(t,i,c),i.definitions[l]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[l][F.SchemaTag.isViewNode]=!0,eS(t,e,i,s,o,u),s}r(sm,"handleForm");function nS(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let o=n.replace("SAP__",""),a=t.references.find(s=>s.alias===o);a&&(i=e.replace(n,a.namespace))}return i}r(nS,"replaceAlias");function Rc(e,t){let n=nS(e.Action,t),i=n,o=n.indexOf("(");o>0&&(i=n.substring(0,o)),o=i.lastIndexOf("/"),o===-1&&(o=i.lastIndexOf("."));let a,s,c;return o>-1?(a=i.substring(o+1),c=i.substring(0,o),s=`${i.substring(0,o)}::${a}`):(a=i,c=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${c.substring(0,c.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:c}}r(Rc,"getActionNameAndId");function cm(e,t){var n,i;for(let o in e){let a=e[o];return((n=a.component)==null?void 0:n.name)===F.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:cm(a.pages,t)}}r(cm,"isFirstObjectPage");function lm(e,t,n,i){var l,p,u;e.definitions[F.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${F.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${j}${F.DefinitionName.ObjectPageFooter}`},e.definitions[F.DefinitionName.ObjectPageFooter].properties[F.PropertyName.actions]={$ref:`${j}${F.DefinitionName.FooterActions}`};let o=e.definitions[F.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};o[F.SchemaTag.isViewNode]=!0;let a=en(F.UIVOCABULARY,t.serviceAVT),s=(l=t.entitySet)==null?void 0:l.entityType,c=a&&((u=(p=s==null?void 0:s.annotations)==null?void 0:p[a])==null?void 0:u.Identification);if(c){let f=c.fullyQualifiedName.replace(`@${Ve.UIAnnotationTerms.Identification}`,`/@${Ve.UIAnnotationTerms.Identification}`);o[F.SchemaTag.annotationPath]=`/${f}`,c.forEach((d,b)=>{if(d.Determining&&d.$Type===Ve.UIAnnotationTypes.DataFieldForAction){let{actionName:x,actionId:I}=Rc(d,t.serviceAVT),O=d.Label||x,_=_e(`${F.DefinitionName.ObjectPageFooterAction}<${I}>`);e.definitions[F.DefinitionName.ObjectPageFooterAction]?e.definitions[_]={...JSON.parse(JSON.stringify(e.definitions[F.DefinitionName.ObjectPageFooterAction])),description:O,annotationPath:`/${f}/${b}`}:(e.definitions[_]={type:"object",properties:{},description:O},e.definitions[_][F.SchemaTag.isViewNode]=!0,e.definitions[_][F.SchemaTag.annotationPath]=`/${f}/${b}`),o.properties[I]={$ref:`${j}${_}`}}})}else s&&(o[F.SchemaTag.annotationPath]=`/${s.fullyQualifiedName}/@${Ve.UIAnnotationTerms.Identification}`);n===F.FioriElementsVersion.v2&&cm(i,t)&&!tm(s)&&nm(e,o),delete e.definitions[F.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${F.DefinitionName.ObjectPageFooter}<${F.DefinitionName.ObjectPageFooterActions}>`]}r(lm,"addFooterActions");function pm(e,t,n,i,o=!1){var u,f;let a=F.DefinitionName.HeaderActions,s=e.definitions[a];e.definitions[F.DefinitionName.ObjectPageHeader].properties[F.PropertyName.actions]={$ref:`${j}${a}`};let c=e.definitions[a]={type:"object",properties:{},description:"Actions",additionalProperties:!1};c[F.SchemaTag.isViewNode]=!0;let l=en(F.UIVOCABULARY,n),p=l&&((f=(u=t==null?void 0:t.annotations)==null?void 0:u[l])==null?void 0:f.Identification);p?(c[F.SchemaTag.annotationPath]="/"+p.fullyQualifiedName.replace(`@${Ve.UIAnnotationTerms.Identification}`,`/@${Ve.UIAnnotationTerms.Identification}`),p.forEach(i(t,e,p,c,n))):t&&(c[F.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ve.UIAnnotationTerms.Identification}`),o&&Yi(e,!0,s),delete e.definitions[F.DefinitionName.GenericActions],delete e.definitions[`${F.DefinitionName.ObjectPageHeader}<${F.DefinitionName.GenericActions}>`]}r(pm,"addHeaderActions");function fm(e,t){e.properties.header={$ref:`${j}${F.DefinitionName.ObjectPageHeader}`},e.definitions[F.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${F.DefinitionName.ObjectPageHeader}<${F.DefinitionName.GenericActions}>`])),t&&(e.definitions[F.DefinitionName.ObjectPageHeader][F.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ve.UIAnnotationTerms.HeaderInfo}`)}r(fm,"addCommonHeaderSchema");function um(e,t){return e.entityType?t.entitySets.find(n=>n.entityType.name===e.entityType.name||n.name===e.entityType.name):void 0}r(um,"determineEntitySetOfFacet");var Ht=require("@sap-ux/vocabularies-types/vocabularies/UI");var Te=$(G());function gi(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}r(gi,"addEnumToSchema");function dm(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let o=[];for(let s in i){let c=i[s];if(t.indexOf(c.term)>-1){let l=c.qualifier?`${c.term}#${c.qualifier}`:`${c.term}`;o.indexOf(l)===-1&&o.push(l)}}gi(o,n)}r(dm,"addEnumForValidAnnotations");function xa(e,t,n){let i=t.definitions[n].properties.annotationPath,o=[Ht.UIAnnotationTerms.SelectionVariant,Ht.UIAnnotationTerms.SelectionPresentationVariant];dm(e,o,i)}r(xa,"addEnumForSingleTabVariant");function gm(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,o=[Ht.UIAnnotationTerms.SelectionVariant,Ht.UIAnnotationTerms.SelectionPresentationVariant];dm(n.entityType,o,i)}r(gm,"addEnumForMultiTabVariant");function mm(e,t,n){let i=t.definitions[n].properties.entitySet,o=[];e.entitySets.forEach(a=>{o.push(a.name)}),gi(o,i)}r(mm,"addEnumForVariantEntitySet");function ym(e,t,n,i){let o=n.map(a=>{let s=i.find(l=>!!a[l]);return{const:a[s],...a.label&&{description:a.label},...a.custom&&{custom:a.custom}}});if(o.length){e.definitions.RelatedFacetKeys={type:"string",oneOf:o};for(let a of t){let s=e.definitions[a],c=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{$ref:j+"RelatedFacetKeys"},c]}}}}r(ym,"addDefinitionForRelatedFacetKeys");function iS(e){return e.replace("#","::")}r(iS,"getFacetKeyInSchema");function hm(e,t){return`${e}<${iS(t)}>`}r(hm,"getFacetDefinitionKey");function oS(e,t,n,i=!0,o){let a=t;if(i&&(a=hm(o||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]}r(oS,"parseSchemaDefinition");function om(e,t,n,i,o){let a;t.definitions[o]={type:"object",properties:{},description:"Columns"},t.definitions[o].additionalProperties=!1,t.definitions[o][Te.SchemaTag.isViewNode]=!0;let s=e?Te.DefinitionName.ObjectPageToolBar:Te.DefinitionName.ToolBar,c=`${s}<${o}>`;try{t.definitions[c]=JSON.parse(JSON.stringify(t.definitions[`${s}`]))}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${s}`}))}let l=`Actions<${_e(o)}>`;t.definitions[c].properties.actions.$ref=j+l;let p=e?Te.DefinitionName.ObjectPageToolBarActions:Te.DefinitionName.Actions,u;try{u=t.definitions[l]=JSON.parse(JSON.stringify(t.definitions[p])),u.properties={},u.additionalProperties=!1}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${p}`}))}let f,d;if(o===Te.DefinitionName.LineItems&&t.properties.footer){d=`${Te.DefinitionName.Footer}<${o}>`,t.properties.footer.$ref=`${j}${d}`;try{t.definitions[d]=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(o)}>`;t.definitions[d].properties.actions.$ref=j+b;try{f=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}))}f.properties={},f.additionalProperties=!1}return n&&(a=Gt(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),a&&(t.definitions[o][Te.SchemaTag.annotationPath]=t.definitions[c][Te.SchemaTag.annotationPath]=a,f&&(t.definitions[d][Te.SchemaTag.annotationPath]=a))),{actions:u,footerActions:f,lineItemPath:a}}r(om,"addCommonLineItemDefinitions");function bm(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}r(bm,"getDataTypeFromAnnotation");function Ca(e){var n,i,o;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.",""):(o=e==null?void 0:e.$Type)!=null&&o.startsWith("com.sap.vocabularies.")&&(t=bm(e.$Type)),t}r(Ca,"determineDataTypeOfTarget");function Dc(e){var n,i,o;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=Ca((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(o=e.$Type)!=null&&o.startsWith("com.sap.vocabularies.")?t=bm(e.$Type):e.type&&(t=e.type),t}catch{return t}}r(Dc,"determineDataType");function Sa(e,t){let n=Dc(t);n&&(e[Te.SchemaTag.dataType]=n)}r(Sa,"addDataTypeToDefinition");function rS(e,t){return`${j}${hm(e,t)}`}r(rS,"getFacetDefinitionLink");function wc(e,t,n,i,o,a,s=""){let c=`ObjectPage${o}${e.base}${s}`,l=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:rS(a?l:c,t)};let p=oS(a?l:c,t,i,!0,a?l:void 0);Lo(e,p,t),p[Te.SchemaTag.annotationPath]=e.annotationPath,p[Te.SchemaTag.isViewNode]=!0}r(wc,"handleAddressContact");function wo(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let o=n.indexOf("/"),a=n.lastIndexOf(".");i=o>0?n.substring(0,o):n.substring(0,a),n=o>0?n.substring(o+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}r(wo,"getActionKey");function rm(e,t,n){var i,o,a;try{if(e.Value)t[n][Te.SchemaTag.keys]=[{name:Te.SchemaKeyName.value,value:di(e.Value)}];else if(e.$Type===Ht.UIAnnotationTypes.DataFieldWithAction||e.$Type===Ht.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:c}=wo(e.Action,!0);t[n][Te.SchemaTag.keys]=[{name:Te.SchemaKeyName.action,value:s}],c&&(t[n][Te.SchemaTag.target]=c)}else if(e.$Type===Ht.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=wo(e.Target.value,!1);t[n][Te.SchemaTag.keys]=[{name:Te.SchemaKeyName.target,value:ga(s)}],t[n][Te.SchemaTag.target]=(a=(o=(i=e.Target)==null?void 0:i.$target)==null?void 0:o.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===Ht.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Ht.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:c,ns:l}=wo(s,!0);t[n][Te.SchemaTag.keys]=[{name:"SemanticObject",value:e[Te.SchemaKeyName.semanticObject]},{name:"Action",value:c}],l&&(t[n][Te.SchemaTag.target]=l)}}catch{return}}r(rm,"addKeyToDefinition");var Zi=$(G());var Tm=[{version:"1.136",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.136","UI5-1.137","UI5-1.138","UI5-1.139","UI5-1.140"]},{version:"1.124",distTag:["UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130","UI5-1.131","UI5-1.132","UI5-1.133","UI5-1.134","UI5-1.135"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.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 Sm="1.71.139";var xm={name:"@sap/ux-specification",version:Sm,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas 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/schema/index.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",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 -s 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.10.3","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.71.139","@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.11.0",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.8",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2",path:"0.12.7","reflect-metadata":"0.2.2","typescript-json-schema":"0.65.1","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 $n=class $n{constructor(){$n.distTagsOfSpec.length===0&&($n.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){$n.distTagsOfSpec=[]}getSpecVersion(){return Sm}getDistTagsOfVersion(){let t=[],n=Tm,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let o=n.find(a=>a.version.startsWith(i));o&&(t=o.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let o=w.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});J(n,{severity:Zi.LogSeverity.Info,message:o,location:{path:Zi.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if($n.distTagsOfSpec.findIndex(o=>o.endsWith(i))===-1){let o=w.t("WRONGMINUI5VERSION",{minUI5Version:t});J(n,{severity:Zi.LogSeverity.Warning,message:o,location:{path:Zi.MANIFESTPATH}})}}};r($n,"DistTagEvaluator"),$n.distTagsOfSpec=[];var $o=$n;var te=$(G());var Be=$(G());var Ft=$(G());var $c=class $c{constructor(t,n,i,o,a,s,c){this.unhandledControllers=[];let l=Ze(Ft.SchemaType.Application);this.app={$schema:l.path,id:t["sap.app"].id,pages:o,home:i,target:{fioriElements:a,odata:a===Ft.FioriElementsVersion.v2?Ft.OdataVersion.v2:Ft.OdataVersion.v4},...s&&{settings:s}},this.schemas=n,this.logger=c}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!==Ft.PageType.CustomPage){let c=Ze(i.pageType,i.entitySet);if(this.schemas[c.filename])s.$schema=c.path;else{let l=Ze(i.pageType);s.$schema=l.path}t[`${Ft.DirName.Pages}/${a}.json`]=s}}let o=JSON.parse(JSON.stringify(this.app));for(let a in o.pages)delete o.pages[a].config;return n[Ft.FileName.App]=o,{appConfig:n,pageConfigs:t}}};r($c,"AppProvider");var eo=$c;var ge=$(G());var to=$(G());var ze=r((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),Cm=r((e,t)=>{let n=e,i=t.split("/");for(let o of i){if(!n[o])return;n=n&&n[o]}return n||{}},"getManifestSectionByPathV2");var Pm=r((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let o=t.split("/")[i];i===t.split("/").length-1?delete n[o]:n=n&&n[o]}},"deleteManifestSectionByPathV2");function _c(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}r(_c,"getNewPageTemplate");function cS(e,t,n){if(e)for(let i in e){let o=e[i];if(o.entitySet===t&&o.navigationProperty===n)return o}}r(cS,"findPageInManifest");function lS(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=_c(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:_c(e[t].pageType)}),!Array.isArray(n.pages))){let i=cS(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=_c(e[t].pageType)),Mc(t,e,i)}}r(lS,"transformPageFromAssociation");function pS(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let o=e.pages[i];if(((a=o.component)==null?void 0:a.name)===to.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${o.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===to.PageTypeV2.ListReport||n.pageType===to.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}r(pS,"deletePage");function Mc(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===to.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 o in i.navigation)lS(t,o,n);Array.isArray(n.pages)||pS(n,t,i)}}r(Mc,"transformPageToNewManifestV2");var oy=$(Io());var mp={};_r(mp,{ALPAnalyticalTable:()=>hl,ALPGridTable:()=>yl,ALPResponsiveTable:()=>ml,Action:()=>Sl,AnalyticalCard:()=>Wo,AnalyticalCardSettings:()=>Wc,AnalyticalListPageFilterBar:()=>zc,AnalyticalTable:()=>gl,BaseCustomSection:()=>mr,ChartSettings:()=>Ml,ChartSettingsType:()=>Uc,CommonCardSettings:()=>Bn,CommonHeaderFacetSettings:()=>xi,CommonTableSettings:()=>Kn,CommonTableSettingsForSections:()=>Oi,CreateWithFilters:()=>pl,CustomCard:()=>Gc,DefaultSpanObject:()=>Bc,FRAGMENT_DEFINITION:()=>sn,Field:()=>Xc,FieldForAction:()=>el,FooterAction:()=>Cl,FormAction:()=>Zc,GlobalTableSettings:()=>dp,GridTable:()=>bl,HeaderAction:()=>Bl,HeaderActionStandard:()=>Ol,HeaderSections:()=>Jl,KPISettings:()=>kl,LinkListCardSettings:()=>Jc,LinklistCard:()=>Jo,ListCard:()=>Ho,ListCardSettings:()=>Hc,ListReportFilterBar:()=>Fa,ObjectPageAnalyticalTable:()=>pp,ObjectPageCustomSectionFragment:()=>yr,ObjectPageCustomSectionView:()=>hr,ObjectPageFooterAction:()=>Xl,ObjectPageFooterActionStandard:()=>Nl,ObjectPageGridTable:()=>fp,ObjectPageHeader:()=>Ul,ObjectPageHeaderActionStandard:()=>Fl,ObjectPageHeaderSectionAddress:()=>Kl,ObjectPageHeaderSectionChart:()=>Hl,ObjectPageHeaderSectionDataPoint:()=>Wl,ObjectPageHeaderSectionForm:()=>Gl,ObjectPageLayout:()=>zl,ObjectPageResponsiveTable:()=>Fi,ObjectPageSectionAddressV2:()=>np,ObjectPageSectionChartV2:()=>ep,ObjectPageSectionContactV2:()=>ip,ObjectPageSectionFormV2:()=>Zl,ObjectPageSectionTableV2:()=>tp,ObjectPageSectionV2:()=>Yl,ObjectPageSubSectionChartV2:()=>ap,ObjectPageSubSectionContactV2:()=>sp,ObjectPageSubSectionFormV2:()=>rp,ObjectPageSubSectionTableV2:()=>cp,ObjectPageSubSectionV2:()=>op,ObjectPageToolBarAction:()=>gp,ObjectPageTreeTable:()=>up,QuickVariantSelection:()=>fl,QuickVariantSelectionOP:()=>lp,QuickVariantSelectionX:()=>ul,ResponsiveTable:()=>yi,SAP_UI_TABLE:()=>Na,SaveAndEditOP:()=>Il,Share:()=>Pl,ShareOP:()=>Al,StackCard:()=>Ko,StackCardSettings:()=>Kc,TableALP:()=>co,TableCard:()=>Qo,TableCardSettings:()=>Qc,TableColumn:()=>jl,TableColumnAction:()=>Ka,TableColumnActionIntentBased:()=>Dl,TableCustomColumn:()=>Rl,ToolBar:()=>$l,ToolBarAction:()=>xl,TreeTable:()=>dl,UpAndDownNavigationOP:()=>El,buildIntentBasedActionId:()=>Ll,deleteColumnFromFragment:()=>ja,deleteType:()=>po,exportCustomColumnsToFragment:()=>ll,exportDefaultSpan:()=>Em,exportType:()=>lo,getChartSectionControlId:()=>Zm,getContactSubSectionControlId:()=>ty,getCustomColumnPath:()=>Da,getFormSectionControlId:()=>Ym,getRootCustomColumnFromFragmentJSON:()=>Yo,getSectionControlId:()=>Ai,getSmartChartControlId:()=>sr,getSmartTableControlId:()=>Wn,getSubSectionControlId:()=>ey,getTableSectionControlId:()=>zm});var pt=$(G());var de=r(e=>`${pt.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),Ea=r(e=>de(e)+"/tableSettings","getTableSettingPathV2");var We=r(()=>pt.ManifestSection.ovp,"getOVPsettingPath"),W=r(e=>{let t=[pt.ManifestSection.ovp];return e.forEach(n=>{n in pt.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var mi=r((e,t)=>`${pt.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Am=r(e=>{let t=[pt.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),wt=r(e=>{let t=[];return t.push(Am(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),no=r(e=>wt(e)+"/tableSettings","getGlobalTableSettingsPathV2"),nn=r((e,t,n)=>{let i=[];i.push(Am(e));let o=n.replace(pt.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+o),i.join("/")},"getAppSettingOBJsectionPathV2"),Mn=r((e,t,n)=>nn(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2");var kc=r(()=>`sap.ui5/extends/extensions/${pt.v2.SAPUI5_VIEW_EXTENSION}/${pt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),Cn=r((e,t,n,...i)=>{let a=n.split("|"),s=e[e.length-1].split("|"),c="";a.length===4?c=[a[2],a[3]].join("|"):a.length===3&&(c=a[2]);let l=[a[0],s[s.length-1],c].join("|");return i.unshift(l),`${kc()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),Aa=class Aa{};r(Aa,"ApplicationV2"),m([qe("settings")],Aa.prototype,"settings",2);var Pa=Aa,xn=class xn{};r(xn,"AppSettings"),m([y({manifest:{path:r(()=>"sap.app","path")}})],xn.prototype,"title",2),m([y({manifest:{path:r(()=>"sap.app","path")}})],xn.prototype,"description",2),m([y({manifest:{path:r(()=>"sap.fiori","path")}})],xn.prototype,"cloudDevAdaptationStatus",2),m([y({manifest:{path:r(()=>pt.GENERICAPPSETTINGS,"path")}}),N({since:"1.50.0"})],xn.prototype,"flexibleColumnLayout",2),m([y({manifest:{path:r(()=>pt.GENERICAPPSETTINGS,"path")}}),N({since:"1.46.0"})],xn.prototype,"forceGlobalRefresh",2),m([y({manifest:{path:r(()=>"sap.ui5","path")}}),N({since:"1.56.0"}),vn("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],xn.prototype,"flexEnabled",2);var _n=xn;function Em(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}r(Em,"exportDefaultSpan");var Ia=class Ia{};r(Ia,"ChartSettingsType"),m([y({manifest:{path:r(()=>We()+"/chartSettings","path")}})],Ia.prototype,"showDataLabel",2);var Uc=Ia,kn=class kn{};r(kn,"DefaultSpanObject"),m([y({manifest:{path:r(t=>W(t),"path")}})],kn.prototype,"cols",2),m([y({manifest:{path:r(t=>W(t),"path")}})],kn.prototype,"rows",2),m([y({manifest:{path:r(t=>W(t),"path")}})],kn.prototype,"showOnlyHeader",2),m([y({manifest:{path:r(t=>W(t),"path")}})],kn.prototype,"minimumTitleRow",2),m([y({manifest:{path:r(t=>W(t),"path")}})],kn.prototype,"minimumSubTitleRow",2);var Bc=kn,Ne=class Ne{};r(Ne,"CommonCardSettings"),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"entitySet",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"title",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"subTitle",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"annotationPath",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"dataPointAnnotationPath",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"selectionPresentationAnnotationPath",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"kpiAnnotationPath",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"category",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"dynamicSubtitleAnnotationPath",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"valueSelectionInfo",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"showFilterInHeader",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"sortBy",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"sortOrder",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"identificationAnnotationPath",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"selectionAnnotationPath",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"presentationAnnotationPath",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"enableLocaleCurrencyFormatting",2),m([y({manifest:{path:r(t=>W(t),"path"),export:Em}})],Ne.prototype,"defaultSpan",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"requireAppAuthorization",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"showSortingInHeader",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"tabs",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"addODataSelect",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"showRefresh",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Ne.prototype,"customParams",2);var Bn=Ne,io=class io{};r(io,"CustomCard"),m([y({manifest:{path:r(t=>W(t),"path")}})],io.prototype,"model",2),m([y({manifest:{path:r(t=>W(t),"path")}})],io.prototype,"template",2),m([y({manifest:{path:r(t=>W(t),"path")}})],io.prototype,"settings",2);var Gc=io,Un=class Un extends Bn{};r(Un,"ListCardSettings"),m([y({manifest:{path:r(t=>W(t),"path")}})],Un.prototype,"showLineItemDetail",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Un.prototype,"imageSupported",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Un.prototype,"enableAddToInsights",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Un.prototype,"listFlavor",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Un.prototype,"listType",2);var Hc=Un,_o=class _o{};r(_o,"ListCard"),m([y({manifest:{path:r(t=>W(t),"path")}})],_o.prototype,"model",2),m([y({manifest:{path:r(t=>W(t),"path")}})],_o.prototype,"template",2);var Ho=_o,on=class on extends Bn{};r(on,"AnalyticalCardSettings"),m([y({manifest:{path:r(t=>W(t),"path")}})],on.prototype,"chartAnnotationPath",2),m([y({manifest:{path:r(t=>W(t),"path")}})],on.prototype,"ignoreSapText",2),m([y({manifest:{path:r(t=>W(t),"path")}})],on.prototype,"enableAddToInsights",2),m([y({manifest:{path:r(t=>W(t),"path")}})],on.prototype,"navigation",2),m([y({manifest:{path:r(t=>W(t),"path")}})],on.prototype,"valueSelectionInfo",2),m([y({manifest:{path:r(t=>W(t),"path")}})],on.prototype,"chartProperties",2),m([y({manifest:{path:r(t=>W(t),"path")}})],on.prototype,"colorPalette",2);var Wc=on,Mo=class Mo{};r(Mo,"AnalyticalCard"),m([y({manifest:{path:r(t=>W(t),"path")}})],Mo.prototype,"model",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Mo.prototype,"template",2);var Wo=Mo,oo=class oo extends Bn{};r(oo,"StackCardSettings"),m([y({manifest:{path:r(t=>W(t),"path")}})],oo.prototype,"itemText",2),m([y({manifest:{path:r(t=>W(t),"path")}})],oo.prototype,"objectStreamCardsNavigationProperty",2),m([y({manifest:{path:r(t=>W(t),"path")}})],oo.prototype,"objectStreamCardsSettings",2);var Kc=oo,ko=class ko{};r(ko,"StackCard"),m([y({manifest:{path:r(t=>W(t),"path")}})],ko.prototype,"model",2),m([y({manifest:{path:r(t=>W(t),"path")}})],ko.prototype,"template",2);var Ko=ko,ro=class ro extends Bn{};r(ro,"LinkListCardSettings"),m([y({manifest:{path:r(t=>W(t),"path")}})],ro.prototype,"listFlavor",2),m([y({manifest:{path:r(t=>W(t),"path")}})],ro.prototype,"headerAnnotationPath",2),m([y({manifest:{path:r(t=>W(t),"path")}})],ro.prototype,"staticContent",2);var Jc=ro,Uo=class Uo{};r(Uo,"LinklistCard"),m([y({manifest:{path:r(t=>W(t),"path")}})],Uo.prototype,"model",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Uo.prototype,"template",2);var Jo=Uo,Bo=class Bo extends Bn{};r(Bo,"TableCardSettings"),m([y({manifest:{path:r(t=>W(t),"path")}})],Bo.prototype,"showLineItemDetail",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Bo.prototype,"enableAddToInsights",2);var Qc=Bo,Go=class Go{};r(Go,"TableCard"),m([y({manifest:{path:r(t=>W(t),"path")}})],Go.prototype,"model",2),m([y({manifest:{path:r(t=>W(t),"path")}})],Go.prototype,"template",2);var Qo=Go;var Im=$(G());var fS=r((e,t,n,i,o)=>{let a=et(n[1],o),s=n.slice(-1)[0];return Fe(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Oa=class Oa{};r(Oa,"Field"),m([y({flex:{controlId:fS,controlType:r(()=>Im.ControlType.GroupElement,"controlType"),createFlexChange:D},generate:he})],Oa.prototype,"visible",2);var Xc=Oa;var Yc=$(G());var qc={controlId:Fe,controlType:r(()=>Yc.ControlType.SmartFilterBar,"controlType"),createFlexChange:D},rn=class rn{};r(rn,"ListReportFilterBar"),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.38.0"})],rn.prototype,"smartVariantManagement",2),m([y({flex:qc}),N({since:"1.40.0"})],rn.prototype,"liveMode",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.48.0"})],rn.prototype,"variantManagementHidden",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.52.0"})],rn.prototype,"subTitleIfVariantMgmtHidden",2),m([y({flex:{controlId:Fe,controlType:r(()=>Yc.ControlType.SmartFilterBar,"controlType"),createFlexChange:D}}),N({since:"1.28.0"})],rn.prototype,"showClearOnFB",2),m([y({flex:qc}),N({since:"1.38.0"})],rn.prototype,"showFilterConfiguration",2),m([y({flex:qc}),N({since:"1.28.0"})],rn.prototype,"showRestoreOnFB",2);var Fa=rn,Xo=class Xo extends Fa{};r(Xo,"AnalyticalListPageFilterBar"),m([y({manifest:{path:r(t=>de(t),"path")}})],Xo.prototype,"showGoButtonOnFilterBar",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.60.0"})],Xo.prototype,"filterDefaultsFromSelectionVariant",2);var zc=Xo;var $t=$(G());var an=r((e,t,n,i,o)=>{if(i()===$t.ControlType.Button){let a=n[n.length-1],s=et(n[1],o);return`${e}action::${a}::${s}::FormAction`}return Fe(e,t)},"getFormActionButtonId"),Gn=class Gn{};r(Gn,"FormAction"),m([y({flex:{controlId:an,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:D},generate:he})],Gn.prototype,"visible",2),m([y({flex:{controlId:an,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:D}})],Gn.prototype,"tooltip",2),m([y({flex:{controlId:an,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:D}})],Gn.prototype,"icon",2),m([y({flex:{controlId:an,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:D}})],Gn.prototype,"activeIcon",2),m([y({flex:{controlId:an,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:D}})],Gn.prototype,"type",2);var Zc=Gn,Hn=class Hn{};r(Hn,"FieldForAction"),m([y({flex:{controlId:an,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:D},generate:he})],Hn.prototype,"visible",2),m([y({flex:{controlId:an,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:D}})],Hn.prototype,"tooltip",2),m([y({flex:{controlId:an,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:D}})],Hn.prototype,"icon",2),m([y({flex:{controlId:an,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:D}})],Hn.prototype,"activeIcon",2),m([y({flex:{controlId:an,controlType:r(()=>$t.ControlType.Button,"controlType"),createFlexChange:D}})],Hn.prototype,"type",2);var el=Hn;var ve=$(G()),Wt=$(Io());var ol=require("path"),FS=$(G()),km=$(Mm()),Um=require("fs");var NS=(0,ol.join)(__dirname,"templates");var LS=r((e,t)=>{let n=(0,Um.readFileSync)(e,"utf8");return(0,km.render)(n,t)},"renderTemplate");var rl=r((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 LS((0,ol.join)(NS,t+".xml"),n)},"getSingleColumnContent"),al=r((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 o=rl(i,t);n=n+`
83
83
  `+o}return n+`
84
- </core:FragmentDefinition>`},"getColumnFragmentContent"),ol=r(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
84
+ </core:FragmentDefinition>`},"getColumnFragmentContent"),sl=r(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+`
86
- </core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var Na=require("path");var an="core:FragmentDefinition",Fa="sap.ui.table",rl=new Map([[ve.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[ve.ViewTemplateType.TreeTableColumnsExtension,{namespace:Fa,name:"Column"}],[ve.ViewTemplateType.GridTableColumnsExtension,{namespace:Fa,name:"Column"}],[ve.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Fa,name:"AnalyticalColumn"}]]),ES=new Map([[ve.v2.FE_TEMPLATE_V2_LIST_REPORT,ve.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[ve.v2.FE_TEMPLATE_V2_ALP,ve.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[ve.v2.FE_TEMPLATE_V2_OBJECT_PAGE,ve.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),Mm={type:"element",name:"Text",attributes:{text:"Placeholder"}},IS=JSON.stringify(Mm);function OS(e,t){var i;let n=t?(i=e==null?void 0:e[an])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let o=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=o.get(n[a]);o.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),o}else throw new Error("Invalid fragment, please check content")}r(OS,"getFragmentNamespaces");function _m(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}r(_m,"getTagName");function La(e,t,n=e){let i=OS(n,!!(t||n!==e));if(t){let o=rl.get(t);return _m(o,i.get(o.namespace))}else{let o=rl.keys();for(let a of o){let s=rl.get(a),c=i?_m(s,i.get(s.namespace)):s.name;if(e[c])return c}}}r(La,"getTagNameFromFragmentJSON");function zo(e,t=e){let n=La(e,void 0,t);return e[n]}r(zo,"getRootCustomColumnFromFragmentJSON");function FS(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let o in e[t]){let a=e[t][o];!n.includes(o)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${o}": "${a.toString()}"`)}return i+="}",i}r(FS,"addP13nData");function km(e,t){var c,l,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let o=i["core:CustomData"]._attributes.value,a=JSON.parse(o.substr(1,o.length)),s=t.findIndex(u=>u.columnKey===a.columnKey);return s<0?!1:(n=!0,o=FS(t,s),i["core:CustomData"]._attributes.value=o,!e.Text&&!e.Label&&((c=t[s])!=null&&c.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(l=t[s])==null?void 0:l.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(p=t[s])==null?void 0:p.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}r(km,"handleFragmentColumn");function NS(e,t,n,i){let o=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=o.split("."),c=s[s.length-1]+ve.FRAGMENTNAMEPART+a;for(let l of t){let p=l.dataSourceUri.split(Na.sep);if(p[p.length-1]===c){let u=JSON.parse((0,Wt.xml2json)(l.fileContent,{compact:!0}));try{let f=La(u[an]);f&&(delete u[an][f],l.fileContent=(0,Wt.json2xml)(JSON.stringify(u),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${l.dataSourceUri}, please check content`)}break}}}r(NS,"deleteColumnsFromFragment");function Um(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===IS&&(e.splice(n,1),t-=1,t===0));n++);}r(Um,"deleteNumberOfCells");function LS(e,t,n){let i=e.type?e.type.toLowerCase():"xml",o=e.fragmentName.substr(n.length+1).split("."),a=o[o.length-1]+ve.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let c=JSON.parse((0,Wt.xml2json)(s.fileContent)),l=c.elements[0].elements&&c.elements[0].elements.filter(p=>p.type==="element");l&&Um(c.elements[0].elements,l.length),s.fileContent=(0,Wt.json2xml)(JSON.stringify(c),{spaces:4});break}}r(LS,"deleteCellsFromFragment");function Va(e,t,n,i){if(i){NS(e,i,t,n);let o=t.replace(ve.ViewTemplateType.ResponsiveTableColumnsExtension,ve.ViewTemplateType.ResponsiveTableCellsExtension),a=e[o];a&&LS(a,i,n)}}r(Va,"deleteColumnFromFragment");function VS(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let o=i;o<Object.keys(n).length;o++)t.elements[0].elements.push(Mm)}r(VS,"addNewColumnsInFragment");function jS(e,t){let n=JSON.parse((0,Wt.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(o=>o.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)VS(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let o=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;Um(a,o)}e.fileContent=(0,Wt.json2xml)(JSON.stringify(n),{spaces:4})}}r(jS,"updateNonEmptyCellsFragment");function DS(e,t,n){let i=!1;for(let o of e){let a=o.dataSourceUri.split(Na.sep);if(a[a.length-1]===t){i=!0,o.changeIndicator=ve.ChangeIndicator.Updated,!o.fileContent||Object.keys(o.fileContent).length===0?o.fileContent=ol(n):jS(o,n);break}}return i}r(DS,"updateCellsFragment");function RS(e,t,n,i,o){var u;let a,s,c=t.manifest,l=ze(c,e),p=l.type?l.type.toLowerCase():"xml";l.type=p.toUpperCase();for(let f of n){if(!f.fragmentName){Q(o,{severity:ve.LogSeverity.Error,message:w.t("NOFRAGMENT",{columnKey:f.columnKey})});continue}t.manifestChangeIndicator=ve.ChangeIndicator.Updated,l.fragmentName=f.fragmentName,l.className=f.className,a=((u=f.fragmentName)==null?void 0:u.replace(i,"<root>/webapp").replace(/[.]/g,Na.sep))+ve.FRAGMENTNAMEPART+p}if(e.indexOf(ve.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=ve.ChangeIndicator.Updated;let f=e.replace(ve.ViewTemplateType.ResponsiveTableColumnsExtension,ve.ViewTemplateType.ResponsiveTableCellsExtension),d=ze(c,f),b=n.reduce((x,I)=>I.cellsFragmentName?I:x);b&&b.cellsFragmentName?(d.fragmentName=s=b.cellsFragmentName,d.className=n[0].className,d.type=p.toUpperCase()):vm(c,f)}return{manifestSection:l,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}r(RS,"exportCustomColumnsToManifest");function wS(e,t,n,i,o){let a=nl(e,t);if(a){let s=JSON.parse((0,Wt.xml2json)(a,{compact:!0})),c=zo(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(c))||n.push(c);else if(n){let l=[n];l.splice(o,0,c),n=l}else n=[c]}return n}r(wS,"insertNewColumnInFragment");function $S(e,t){let n=[];for(let i=0;i<e.length;i++)km(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}r($S,"processCustomColumnInArray");function _S(e,t,n){if(e){if(Array.isArray(e))$S(e,t);else if(!km(e,t)){let o=La(n[an]);o&&(delete n[an][o],e=void 0)}}return e}r(_S,"maintainExistingColumnInFragment");function MS(e,t,n,i,o){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=wS(a,i,n,o,s)}return n}r(MS,"insertNewColumnsInFragment");function kS(e,t,n,i,o){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let c={};if(a=!0,s.changeIndicator=ve.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=il(i,o);else{let l=JSON.parse((0,Wt.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(l);c=zo(l[an]),c=_S(c,i,l),c=MS(i,n,c,o,l);let u=La(l,o);l[an][u]=c;let f=JSON.stringify(l);f!==p&&(s.fileContent=(0,Wt.json2xml)(f,{compact:!0,spaces:4}))}break}return a}r(kS,"updateColumnsInFragment");function al(e,t,n,i,o,a){let s=e.fragments,{manifestSection:c,lsFilePath:l,cellsFragmentName:p,fragmentType:u}=RS(t,e,n,i,a),f=JSON.parse(JSON.stringify(n)),d=c.fragmentName,b=d.substr(i.length+1),x=b.split(".");d=x[x.length-1]+ve.FRAGMENTNAMEPART+u;let O=p==null?void 0:p.split("."),$=O?O[O.length-1]:null,re=$?$+ve.FRAGMENTNAMEPART+u:null,q=kS(s,d,b,f,o),te=!1;if(p?te=DS(s,re,n):te=!0,!q){let J={fileContent:il(f,o),dataSourceUri:l,changeIndicator:ve.ChangeIndicator.Deleted};e.fragments.push(J)}if(!te){let J={fileContent:ol(n),dataSourceUri:l.replace(d,re),changeIndicator:ve.ChangeIndicator.Deleted};e.fragments.push(J)}}r(al,"exportCustomColumnsToFragment");var ja=r((e,t,n,i)=>{var l,p,u,f;if(!e)return;let o=ES.get((l=e.component)==null?void 0:l.name);if(!i){let d=(f=(u=(p=e.component)==null?void 0:p.settings)==null?void 0:u.tableSettings)==null?void 0:f.type;d||(d="ResponsiveTable"),o==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(d="AnalyticalTable"),i=d+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+o+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var Me=M(W());var Gn=r((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+Me.PropertyName.table:Fe(e,t),"getSmartTableControlId");function US(e,t){let n=e.variants||{},i=t.variants||{};Object.keys(n).filter(a=>!Object.keys(i).includes(a)).forEach(a=>{delete n[a]});for(let a in i){let s=i[a],c=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let l in s)c.indexOf(l)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[l]=s[l],delete s[l]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}r(US,"exportVariants");function BS(e,t){t.variants&&(Object.keys(t.variants).length>0?US(e,t):delete e.variants)}r(BS,"exportQuickVariantSelectionX");var Da=class Da{};r(Da,"CreateWithFilters"),m([y({manifest:{path:r(t=>de(t)+"/createWithFilters","path")}})],Da.prototype,"strategy",2);var sl=Da;function er(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}r(er,"importType");function so(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}r(so,"exportType");function co(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}r(co,"deleteType");var Yo=class Yo{};r(Yo,"QuickVariantSelection"),m([y({manifest:{path:r(t=>de(t)+Me.QUICKVARPATH,"path")}}),N({since:"1.48.0"})],Yo.prototype,"showCounts",2),m([y({manifest:{path:r(t=>de(t)+Me.QUICKVARPATH,"path")}}),N({since:"1.48.0"})],Yo.prototype,"variants",2);var cl=Yo,oo=class oo{};r(oo,"QuickVariantSelectionX"),m([y({manifest:{path:r(t=>de(t)+Me.QUICKVARPATHX,"path")}}),N({since:"1.48.0"})],oo.prototype,"showCounts",2),m([y({manifest:{path:r(t=>de(t)+Me.QUICKVARPATHX,"path")}}),N({since:"1.48.0"})],oo.prototype,"enableAutoBinding",2),m([y({manifest:{path:r(t=>de(t)+Me.QUICKVARPATHX,"path"),export:BS}}),N({since:"1.48.0"})],oo.prototype,"variants",2);var ll=oo,ft=class ft{constructor(){this.getDeprecated=r(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};r(ft,"CommonTableSettings"),m([y({flex:{controlId:Fe,controlType:r(()=>Me.ControlType.SmartTable,"controlType"),createFlexChange:R}}),N({since:"1.38.0"})],ft.prototype,"showTablePersonalisation",2),m([y({flex:{controlId:Gn,controlType:r(()=>Me.ControlType.SmartTable,"controlType"),createFlexChange:R}}),N({since:"1.26.0"})],ft.prototype,"useExportToExcel",2),m([y({flex:{controlId:Gn,controlType:r(()=>Me.ControlType.SmartTable,"controlType"),createFlexChange:R}}),N({since:"1.50.0"})],ft.prototype,"exportType",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.48.0"})],ft.prototype,"quickVariantSelection",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.48.0"})],ft.prototype,"quickVariantSelectionX",2),m([y({manifest:{path:r(t=>Aa(t),"path")}}),N({since:"1.38.0"})],ft.prototype,"multiSelect",2),m([y({manifest:{path:r(t=>Aa(t),"path")}}),N({since:"1.70.0"})],ft.prototype,"selectAll",2),m([y({manifest:{path:r(t=>Aa(t),"path")}}),N({since:"1.70.0"})],ft.prototype,"selectionLimit",2),m([y({flex:{controlId:Gn,controlType:r(()=>Me.ControlType.SmartTable,"controlType"),createFlexChange:R}}),N({since:"1.40.0"})],ft.prototype,"enableAutoBinding",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.42.0"})],ft.prototype,"condensedTableLayout",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.56.0"}),Tn("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],ft.prototype,"enableTableFilterInPageVariant",2),m([qe("toolBar")],ft.prototype,"toolBar",2);var Hn=ft,Cn=class Cn extends Hn{};r(Cn,"ResponsiveTable"),m([y({manifest:{path:r(t=>de(t),"path"),import:er,export:so,delete:co}}),N({since:"1.50.0"})],Cn.prototype,"type",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.54.0"})],Cn.prototype,"createWithFilters",2),m([y({flex:{controlId:Gn,controlType:r(()=>Me.ControlType.Table,"controlType"),createFlexChange:R},generate:Wi}),N({since:"1.52.0"})],Cn.prototype,"popinLayout",2),m([y({flex:{controlId:Gn,controlType:r(()=>Me.ControlType.Table,"controlType"),createFlexChange:R}})],Cn.prototype,"includeItemInSelection",2),m([y({manifest:{path:r(()=>Me.GENERICAPPSETTINGS,"path")}}),N({since:"1.63.0"})],Cn.prototype,"showDraftToggle",2),m([y({flex:{controlId:Gn,controlType:r(()=>Me.ControlType.Table,"controlType"),createFlexChange:R}}),N({since:"1.16.0"})],Cn.prototype,"growingThreshold",2);var gi=Cn,Zo=class Zo extends Hn{};r(Zo,"TreeTable"),m([y({manifest:{path:r(t=>de(t),"path"),import:er,export:so,delete:co}}),N({since:"1.50.0"})],Zo.prototype,"type",2),m([y({manifest:{path:r(()=>Me.GENERICAPPSETTINGS,"path")}}),N({since:"1.63.0"})],Zo.prototype,"showDraftToggle",2);var pl=Zo,Kt=class Kt extends Hn{};r(Kt,"AnalyticalTable"),m([y({manifest:{path:r(t=>de(t),"path"),import:er,export:so,delete:co}}),N({since:"1.50.0"})],Kt.prototype,"type",2),m([y({manifest:{path:r(t=>de(t),"path")}})],Kt.prototype,"qualifier",2),m([y({manifest:{path:r(t=>de(t),"path")}})],Kt.prototype,"defaultContentView",2),m([y({manifest:{path:r(t=>de(t),"path")}})],Kt.prototype,"defaultFilterMode",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.60.0"})],Kt.prototype,"contentTitle",2),m([y({manifest:{path:r(t=>de(t),"path")}})],Kt.prototype,"autoHide",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.54.0"})],Kt.prototype,"createWithFilters",2),m([y({manifest:{path:r(()=>Me.GENERICAPPSETTINGS,"path")}}),N({since:"1.63.0"})],Kt.prototype,"showDraftToggle",2);var fl=Kt,Pn=class Pn extends Hn{};r(Pn,"TableALP"),m([y({manifest:{path:r(t=>de(t),"path"),import:er,export:so,delete:co}}),N({since:"1.50.0"})],Pn.prototype,"type",2),m([y({manifest:{path:r(t=>de(t),"path")}})],Pn.prototype,"qualifier",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.38.0"}),y({manifest:{path:r(t=>de(t),"path")}})],Pn.prototype,"defaultContentView",2),m([y({manifest:{path:r(t=>de(t),"path")}})],Pn.prototype,"defaultFilterMode",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.60.0"})],Pn.prototype,"contentTitle",2),m([y({manifest:{path:r(t=>de(t),"path")}})],Pn.prototype,"autoHide",2);var ao=Pn,Ra=class Ra extends ao{};r(Ra,"ALPResponsiveTable"),m([y({flex:{controlId:Gn,controlType:r(()=>Me.ControlType.Table,"controlType"),createFlexChange:R}}),N({since:"1.16.0"})],Ra.prototype,"growingThreshold",2);var ul=Ra,yl=class yl extends ao{};r(yl,"ALPGridTable");var dl=yl,hl=class hl extends ao{};r(hl,"ALPAnalyticalTable");var gl=hl,ro=class ro extends Hn{};r(ro,"GridTable"),m([y({manifest:{path:r(t=>de(t),"path"),import:er,export:so,delete:co}}),N({since:"1.50.0"})],ro.prototype,"type",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.54.0"})],ro.prototype,"createWithFilters",2),m([y({manifest:{path:r(()=>Me.GENERICAPPSETTINGS,"path")}}),N({since:"1.63.0"})],ro.prototype,"showDraftToggle",2);var ml=ro;var tr=M(W());var GS=r((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}action::${St(i).replace(":2f","::")}`},"getActionButtonId"),HS=r((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}template::${i}`},"getStandardActionButtonId"),WS=r((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}${ha}${i}`},"getStandardFooterActionOPButtonId"),Ol=r((e,t,n)=>{let{semanticObjectId:i,actionId:o}=Ct(n);return`${e}action::${i}::${St(o)}`},"buildIntentBasedActionId"),KS=r((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}action::${St(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),Wn={controlId:GS,controlType:r(()=>tr.ControlType.Button,"controlType"),createFlexChange:R},nr={controlId:HS,controlType:r(()=>tr.ControlType.Button,"controlType"),createFlexChange:R},Bm={controlId:WS,controlType:r(()=>tr.ControlType.Button,"controlType"),createFlexChange:R},wa={controlId:KS,controlType:r(()=>tr.ControlType.Button,"controlType"),createFlexChange:R},mi=class mi{};r(mi,"Action"),m([y({flex:Wn})],mi.prototype,"tooltip",2),m([y({flex:Wn})],mi.prototype,"icon",2),m([y({flex:Wn})],mi.prototype,"activeIcon",2),m([y({flex:Wn})],mi.prototype,"type",2);var bl=mi,yi=class yi{};r(yi,"ToolBarAction"),m([y({flex:Wn})],yi.prototype,"tooltip",2),m([y({flex:Wn})],yi.prototype,"icon",2),m([y({flex:Wn})],yi.prototype,"activeIcon",2),m([y({flex:Wn})],yi.prototype,"type",2);var Tl=yi,hi=class hi{};r(hi,"FooterAction"),m([y({flex:wa})],hi.prototype,"tooltip",2),m([y({flex:wa})],hi.prototype,"icon",2),m([y({flex:wa})],hi.prototype,"activeIcon",2),m([y({flex:wa})],hi.prototype,"type",2);var vl=hi,$a=class $a{};r($a,"Share"),m([y({flex:nr})],$a.prototype,"visible",2);var Sl=$a,_a=class _a{};r(_a,"ShareOP"),m([y({flex:nr})],_a.prototype,"visible",2);var xl=_a,Ma=class Ma{};r(Ma,"UpAndDownNavigationOP"),m([y({flex:nr})],Ma.prototype,"visible",2);var Cl=Ma,ka=class ka{};r(ka,"SaveAndEditOP"),m([y({flex:Bm,generate:he})],ka.prototype,"visible",2);var Pl=ka,Ua=class Ua{};r(Ua,"HeaderActionStandard"),m([y({flex:nr})],Ua.prototype,"visible",2);var Al=Ua,Ba=class Ba{};r(Ba,"ObjectPageHeaderActionStandard"),m([y({flex:nr})],Ba.prototype,"visible",2);var El=Ba,Ga=class Ga{};r(Ga,"ObjectPageFooterActionStandard"),m([y({flex:Bm})],Ga.prototype,"visible",2);var Il=Ga;var rr=M(W());var JS=r((e,t,n)=>{let i="template:::TableColumn",{actionType:o,actionId:a}=Ct(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${o}:::${s}:::sAction::${a}`},"buildColumnActionId"),QS=r((e,t,n)=>{let i="template:::TableColumn",{actionType:o,actionId:a,semanticObjectId:s}=Ct(n),c=`sSmartTableId::${t[0]}`;return`${e}${i}:::${o}:::${c}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),XS=r((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),Fl={controlId:JS,controlType:r(()=>rr.ControlType.TableColumn,"controlType"),createFlexChange:R},ir={controlId:XS,controlType:r(()=>rr.ControlType.Button,"controlType"),createFlexChange:R},Gm={...Fl,controlId:QS},Ha={...ir,controlId:Ol},or=class or{};r(or,"TableColumn"),m([y({flex:{controlId:Ic,controlType:r(()=>rr.ControlType.TableColumn,"controlType"),createFlexChange:R}})],or.prototype,"width",2),m([y({flex:{controlId:Ic,controlType:r(()=>rr.ControlType.TableColumn,"controlType"),createFlexChange:R},generate:Wi})],or.prototype,"hAlign",2);var Nl=or,An=class An{};r(An,"TableColumnAction"),m([y({flex:Fl})],An.prototype,"width",2),m([y({flex:Fl,generate:Wi})],An.prototype,"hAlign",2),m([y({flex:ir})],An.prototype,"tooltip",2),m([y({flex:ir})],An.prototype,"icon",2),m([y({flex:ir})],An.prototype,"activeIcon",2),m([y({flex:ir})],An.prototype,"type",2);var Wa=An,En=class En extends Wa{};r(En,"TableColumnActionIntentBased"),m([y({flex:Gm})],En.prototype,"width",2),m([y({flex:Gm,generate:Wi})],En.prototype,"hAlign",2),m([y({flex:Ha})],En.prototype,"tooltip",2),m([y({flex:Ha})],En.prototype,"icon",2),m([y({flex:Ha})],En.prototype,"activeIcon",2),m([y({flex:Ha})],En.prototype,"type",2);var Ll=En,jl=class jl{};r(jl,"TableCustomColumn");var Vl=jl;var Rl=class Rl{};r(Rl,"ToolBar");var Dl=Rl;var Ti=M(W());var ar=r(e=>e+Ti.PropertyName.chart,"getSmartChartControlId"),bi=class bi{};r(bi,"ChartSettings"),m([y({flex:{controlId:ar,controlType:r(()=>Ti.ControlType.SmartChart,"controlType"),createFlexChange:R}})],bi.prototype,"showLegendButton",2),m([y({flex:{controlId:ar,controlType:r(()=>Ti.ControlType.SmartChart,"controlType"),createFlexChange:R}})],bi.prototype,"showDownloadButton",2),m([y({flex:{controlId:ar,controlType:r(()=>Ti.ControlType.SmartChart,"controlType"),createFlexChange:R}})],bi.prototype,"showChartTypeSelectionButton",2),m([y({flex:{controlId:ar,controlType:r(()=>Ti.ControlType.SmartChart,"controlType"),exportFlexValue:r((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:r((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue"),createFlexChange:R}})],bi.prototype,"ignoredChartTypes",2);var wl=bi;var In=class In{};r(In,"KPISettings"),m([y({manifest:{path:r((t,n,i)=>di(t,i),"path")}})],In.prototype,"model",2),m([y({manifest:{path:r((t,n,i)=>di(t,i),"path")}})],In.prototype,"entitySet",2),m([y({manifest:{path:r((t,n,i)=>di(t,i),"path")}})],In.prototype,"qualifier",2),m([y({manifest:{path:r((t,n,i)=>di(t,i),"path")}})],In.prototype,"filterable",2),m([y({manifest:{path:r((t,n,i)=>di(t,i),"path")}})],In.prototype,"detailNavigation",2),m([y({manifest:{path:r((t,n,i)=>di(t,i),"path")}})],In.prototype,"groupId",2);var $l=In;var Hm=M(W());var qS=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Fe(e,n)},"getAvatarControlId"),Kn=class Kn{};r(Kn,"ObjectPageHeader"),m([y({manifest:{path:r(t=>wt(t),"path")}}),N({since:"1.46.0"})],Kn.prototype,"showRelatedApps",2),m([y({manifest:{path:r(t=>wt(t),"path")}}),N({since:"1.46.0"})],Kn.prototype,"editableHeaderContent",2),m([y({manifest:{path:r(t=>wt(t),"path")}}),N({since:"1.48.0"})],Kn.prototype,"simpleHeaderFacets",2),m([y({manifest:{path:r(t=>wt(t),"path")}}),N({since:"1.48.0"}),Tn("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],Kn.prototype,"showHeaderAsCarouselOnDesktop",2),m([y({flex:{controlId:qS,controlType:r(()=>Hm.ControlType.Avatar,"controlType"),createFlexChange:R},generate:he})],Kn.prototype,"displayShape",2);var _l=Kn;var Ka=M(W());var zS=r((e,t,n,i)=>{if(i()===Ka.ControlType.Button||i()===Ka.ControlType.HeaderAction){let o=n[2];return`${e}action::${St(o)}`}return Fe(e,t)},"getActionButtonId"),sr={controlId:zS,controlType:r(()=>Ka.ControlType.HeaderAction,"controlType"),createFlexChange:R},Jn=class Jn{};r(Jn,"HeaderAction"),m([y({flex:sr,generate:he})],Jn.prototype,"visible",2),m([y({flex:sr})],Jn.prototype,"tooltip",2),m([y({flex:sr})],Jn.prototype,"icon",2),m([y({flex:sr})],Jn.prototype,"activeIcon",2),m([y({flex:sr})],Jn.prototype,"type",2);var Ml=Jn;var cr=M(W());var Ya="header::headerEditable::",YS=r((e,t,n,i,o)=>`${e}${Ya}${o}`,"getDataPointHeaderSectionId"),ZS=r((e,t,n,i,o)=>`${e}${Ya}${o}::ContactAddress`,"getAddressHeaderSectionId"),ex=r((e,t,n,i,o)=>`${e}${Ya}${o}::SmartMicroChartVBox`,"getChartHeaderSectionId"),Wm=r((e,t,n,i,o)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=o!=null&&o.includes(cr.FACETTITLEPREFIX)?o.split(cr.FACETTITLEPREFIX)[1]:a;return`${e}${Ya}${s}::Form`},"getFormHeaderSectionId"),lr={controlType:r(()=>cr.ControlType.ObjectPageHeaderSection,"controlType"),createFlexChange:R},Ja=class Ja{};r(Ja,"CommonHeaderFacetSettings"),m([y({flex:{...lr,controlId:Wm},generate:he})],Ja.prototype,"visible",2);var vi=Ja,Qa=class Qa extends vi{};r(Qa,"ObjectPageHeaderSectionForm"),m([y({flex:{...lr,controlId:Wm}})],Qa.prototype,"visible",2);var kl=Qa,Xa=class Xa extends vi{};r(Xa,"ObjectPageHeaderSectionChart"),m([y({flex:{...lr,controlId:ex}})],Xa.prototype,"visible",2);var Ul=Xa,qa=class qa extends vi{};r(qa,"ObjectPageHeaderSectionDataPoint"),m([y({flex:{...lr,controlId:YS}})],qa.prototype,"visible",2);var Bl=qa,za=class za extends vi{};r(za,"ObjectPageHeaderSectionAddress"),m([y({flex:{...lr,controlId:ZS}})],za.prototype,"visible",2);var Gl=za,Wl=class Wl{};r(Wl,"HeaderSections");var Hl=Wl;var Jl=M(W());var tx=r((e,t,n,i)=>{if(i()===Jl.ControlType.Button){let{actionId:o}=Ct(n);return`${e}action::${St(o)}::Determining`}return Fe(e,t)},"getFooterActionButtonId"),pr={controlId:tx,controlType:r(()=>Jl.ControlType.Button,"controlType"),createFlexChange:R},Qn=class Qn{};r(Qn,"ObjectPageFooterAction"),m([y({flex:pr,generate:he})],Qn.prototype,"visible",2),m([y({flex:pr})],Qn.prototype,"tooltip",2),m([y({flex:pr})],Qn.prototype,"icon",2),m([y({flex:pr})],Qn.prototype,"activeIcon",2),m([y({flex:pr})],Qn.prototype,"type",2);var Kl=Qn;var fr=M(W());var Za=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Fe(e,n)},"getControlId"),Si=class Si{};r(Si,"ObjectPageLayout"),m([y({flex:{controlId:Za,controlType:r(()=>fr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:R},generate:he})],Si.prototype,"showHeaderContent",2),m([y({flex:{controlId:Za,controlType:r(()=>fr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:R}})],Si.prototype,"showAnchorBar",2),m([y({flex:{controlId:Za,controlType:r(()=>fr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:R}})],Si.prototype,"useIconTabBar",2),m([y({flex:{controlId:Za,controlType:r(()=>fr.ControlType.ObjectPageLayout,"controlType"),createFlexChange:R}}),N({since:"1.34.0"})],Si.prototype,"alwaysShowContentHeader",2);var Ql=Si;var Km=M(W());var xi=class xi{};r(xi,"BaseCustomSection"),m([y({manifest:{path:xn,export:!1,import:r((t,n)=>n.split("|")[2],"import")}}),N({since:"1.52.0"})],xi.prototype,"relatedFacet",2),m([y({manifest:{path:xn,export:!1,import:r((t,n)=>n.split("|")[0],"import")}}),N({since:"1.52.0"})],xi.prototype,"relativePosition",2),m([y({manifest:{path:r((t,n,i)=>xn(t,{},i,Km.ManifestSection.generic),"path")}}),N({since:"1.52.0"})],xi.prototype,"title",2),m([y({manifest:{path:xn}}),N({since:"1.52.0"})],xi.prototype,"className",2);var gr=xi,ur=class ur extends gr{};r(ur,"ObjectPageCustomSectionFragment"),m([y({manifest:{path:xn}}),N({since:"1.52.0"})],ur.prototype,"fragmentName",2),m([y({manifest:{path:xn}}),N({since:"1.52.0"})],ur.prototype,"type",2);var mr=ur,dr=class dr extends gr{};r(dr,"ObjectPageCustomSectionView"),m([y({manifest:{path:xn}}),N({since:"1.52.0"})],dr.prototype,"viewName",2),m([y({manifest:{path:xn}}),N({since:"1.52.0"})],dr.prototype,"type",2);var yr=dr;var At=M(W());var Jm=r((e,t,n,i,o)=>{let s=[et(n[1],o),At.DefinitionName.Table];return Fe(e,s)},"getTableSectionControlId"),Qm=r((e,t,n,i,o)=>{let s=[et(n[1],o),"FormGroup"];return Fe(e,s)},"getFormSectionControlId"),Xm=r((e,t,n,i,o)=>{let s=[et(n[1],o),"Chart"];return Fe(e,s)},"getChartSectionControlId"),Ci=r((e,t,n,i,o)=>{let s=[et(n[1],o),"Section"];return Fe(e,s)},"getSectionControlId"),qm=r((e,t,n,i,o)=>{let s=[et(n[1],o),"SubSection"];return Fe(e,s)},"getSubSectionControlId"),zm=r((e,t,n,i,o)=>{let s=[et(n[1],o),"ContactsList"];return Fe(e,s)},"getContactSubSectionControlId"),es=class es{};r(es,"ObjectPageSectionV2"),m([y({flex:{controlId:Ci,controlType:r(()=>At.ControlType.Section,"controlType"),createFlexChange:R},generate:he})],es.prototype,"visible",2);var Xl=es,ts=class ts{};r(ts,"ObjectPageSectionFormV2"),m([y({flex:{controlId:Ci,controlType:r(()=>At.ControlType.Section,"controlType"),createFlexChange:R},generate:he})],ts.prototype,"visible",2);var ql=ts,ns=class ns{};r(ns,"ObjectPageSectionChartV2"),m([y({flex:{controlId:Ci,controlType:r(()=>At.ControlType.Section,"controlType"),createFlexChange:R},generate:he})],ns.prototype,"visible",2);var zl=ns,is=class is{};r(is,"ObjectPageSectionTableV2"),m([y({flex:{controlId:Ci,controlType:r(()=>At.ControlType.Section,"controlType"),createFlexChange:R},generate:he})],is.prototype,"visible",2);var Yl=is,os=class os{};r(os,"ObjectPageSectionAddressV2"),m([y({flex:{controlId:Ci,controlType:r(()=>At.ControlType.Section,"controlType"),createFlexChange:R},generate:he})],os.prototype,"visible",2);var Zl=os,rs=class rs{};r(rs,"ObjectPageSectionContactV2"),m([y({flex:{controlId:Ci,controlType:r(()=>At.ControlType.Section,"controlType"),createFlexChange:R},generate:he})],rs.prototype,"visible",2);var ep=rs,as=class as{};r(as,"ObjectPageSubSectionV2"),m([y({flex:{controlId:qm,controlType:r(()=>At.ControlType.SubSection,"controlType"),createFlexChange:R},generate:he})],as.prototype,"visible",2);var tp=as,ss=class ss{};r(ss,"ObjectPageSubSectionFormV2"),m([y({flex:{controlId:Qm,controlType:r(()=>At.ControlType.Group,"controlType"),createFlexChange:R},generate:he})],ss.prototype,"visible",2);var np=ss,cs=class cs{};r(cs,"ObjectPageSubSectionChartV2"),m([y({flex:{controlId:Xm,controlType:r(()=>At.ControlType.SmartChart,"controlType"),createFlexChange:R},generate:he})],cs.prototype,"visible",2);var ip=cs,ls=class ls{};r(ls,"ObjectPageSubSectionContactV2"),m([y({flex:{controlId:zm,controlType:r(()=>At.ControlType.SubSection,"controlType"),createFlexChange:R},generate:he})],ls.prototype,"visible",2);var op=ls,ps=class ps{};r(ps,"ObjectPageSubSectionTableV2"),m([y({flex:{controlId:Jm,controlType:r(()=>At.ControlType.SmartTable,"controlType"),createFlexChange:R},generate:he})],ps.prototype,"visible",2);var rp=ps;var Nt=M(W());var Ai=r((e,t,n,i,o)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=Nt.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=et(a[0],o),Fe(e,a)},"getSmartTableControlId"),hr=class hr{};r(hr,"QuickVariantSelectionOP"),m([y({manifest:{path:r((t,n,i)=>tn(t,n,i)+Nt.QUICKVARPATH,"path")}}),N({since:"1.48.0"})],hr.prototype,"showCounts",2),m([y({manifest:{path:r((t,n,i)=>tn(t,n,i)+Nt.QUICKVARPATH,"path")}}),N({since:"1.48.0"})],hr.prototype,"variants",2);var ap=hr,Et=class Et{constructor(){this.getDeprecated=r(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};r(Et,"CommonTableSettingsForSections"),m([y({flex:{controlId:Ai,controlType:r(()=>Nt.ControlType.SmartTable,"controlType"),createFlexChange:R}}),N({since:"1.28.0"})],Et.prototype,"editable",2),m([y({flex:{controlId:Ai,controlType:r(()=>Nt.ControlType.SmartTable,"controlType"),createFlexChange:R}}),N({since:"1.95.0"}),Tn("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],Et.prototype,"showPasteButton",2),m([y({manifest:{path:$n}}),N({since:"1.54.0"})],Et.prototype,"multiSelect",2),m([y({manifest:{path:$n}}),N({since:"1.70.0"})],Et.prototype,"selectAll",2),m([y({manifest:{path:$n}}),N({since:"1.70.0"})],Et.prototype,"selectionLimit",2),m([y({manifest:{path:tn}}),N({since:"1.63.0"})],Et.prototype,"quickVariantSelection",2),m([y({flex:{controlId:Ai,controlType:r(()=>Nt.ControlType.SmartTable,"controlType"),createFlexChange:R}}),N({since:"1.26.0"})],Et.prototype,"useExportToExcel",2),m([y({flex:{controlId:Ai,controlType:r(()=>Nt.ControlType.SmartTable,"controlType"),createFlexChange:R}}),N({since:"1.50.0"})],Et.prototype,"exportType",2),m([y({manifest:{path:tn}}),N({since:"1.48.5"}),Tn("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],Et.prototype,"createMode",2),m([y({manifest:{path:tn}}),N({since:"1.61.0"})],Et.prototype,"disableDefaultInlineCreateSort",2),m([qe("toolBar")],Et.prototype,"toolBar",2);var Ei=Et,Pi=class Pi extends Ei{};r(Pi,"ObjectPageResponsiveTable"),m([y({manifest:{path:$n}})],Pi.prototype,"type",2),m([y({flex:{controlId:Ai,controlType:r(()=>Nt.ControlType.Table,"controlType"),createFlexChange:R}})],Pi.prototype,"includeItemInSelection",2),m([y({flex:{controlId:Ai,controlType:r(()=>Nt.ControlType.Table,"controlType"),createFlexChange:R},generate:he}),N({since:"1.52.0"})],Pi.prototype,"popinLayout",2),m([y({flex:{controlId:Ai,controlType:r(()=>Nt.ControlType.Table,"controlType"),createFlexChange:R}}),N({since:"1.16.0"})],Pi.prototype,"growingThreshold",2);var Ii=Pi,br=class br extends Ei{};r(br,"ObjectPageAnalyticalTable"),m([y({manifest:{path:$n}})],br.prototype,"type",2),m([y({manifest:{path:tn}}),N({since:"1.67.0"})],br.prototype,"condensedTableLayout",2);var sp=br,Tr=class Tr extends Ei{};r(Tr,"ObjectPageGridTable"),m([y({manifest:{path:$n}})],Tr.prototype,"type",2),m([y({manifest:{path:tn}}),N({since:"1.67.0"})],Tr.prototype,"condensedTableLayout",2);var cp=Tr,vr=class vr extends Ei{};r(vr,"ObjectPageTreeTable"),m([y({manifest:{path:$n}})],vr.prototype,"type",2),m([y({manifest:{path:tn}}),N({since:"1.67.0"})],vr.prototype,"condensedTableLayout",2);var lp=vr,Xn=class Xn{};r(Xn,"GlobalTableSettings"),m([y({manifest:{path:eo}}),N({since:"1.70.0"})],Xn.prototype,"selectAll",2),m([y({manifest:{path:eo}}),N({since:"1.78.0"})],Xn.prototype,"variantManagement",2),m([y({manifest:{path:eo}})],Xn.prototype,"type",2),m([y({manifest:{path:eo}}),N({since:"1.54.0"})],Xn.prototype,"multiSelect",2),m([y({manifest:{path:eo}}),N({since:"1.67.0"})],Xn.prototype,"condensedTableLayout",2);var pp=Xn;var Ym=M(W());var nx=r((e,t,n,i,o)=>{let{actionId:a}=Ct(n),s=et(n[1],o);return`${e}${s}::action::${St(a).replace(":2f","::")}`},"getActionButtonId"),Sr={controlId:nx,controlType:r(()=>Ym.ControlType.Button,"controlType"),createFlexChange:R},qn=class qn{};r(qn,"ObjectPageToolBarAction"),m([y({flex:Sr,generate:he})],qn.prototype,"visible",2),m([y({flex:Sr})],qn.prototype,"tooltip",2),m([y({flex:Sr})],qn.prototype,"icon",2),m([y({flex:Sr})],qn.prototype,"activeIcon",2),m([y({flex:Sr})],qn.prototype,"type",2);var fp=qn;var ut=M(W());function dp(e,t,n,i){if(t.controlType===ut.ControlType.TableColumn||t.controlType===ut.ControlType.Button){let o=t.controlId.split("-"),a=o[o.length-1],s=t.controlType===ut.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],c=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",ut.VOCWITHCOLONS),l=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(l!=null&&l.startsWith("DataField")?l=l==null?void 0:l.replace("/",":2f"):l=l==null?void 0:l.replace("/","_"),l!==c&&n!==c)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}r(dp,"addFlexChangeToConfigTableColumn");function fs(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(ut.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}r(fs,"addFlexChangeToConfigTable");function us(e,t,n,i,o="LineItems"){e.flex.forEach(a=>{var p,u,f,d,b;let s=Ot(a),c={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(u=s.content)!=null&&u.newBinding?s.content.newBinding:(f=s.content)==null?void 0:f.newValue,controlType:s.controlType,creation:s.creation},l;if(s.controlType===ut.ControlType.TableColumn)l=e.jsonSchema.definitions.TableColumn.properties[c.propertyId];else{let x=(!t.table.type||t.table.type===ut.v2.TableTypeV2.ResponsiveTable)&&!((d=c.controlId)!=null&&d.includes(ut.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(ut.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;l=(b=e.jsonSchema.definitions[`${x}<${o}>`])==null?void 0:b.properties[c.propertyId]}l&&dp(t.table,c,n,i)})}r(us,"importFlexChangesOfColumn");function zn(e){return e.replace("/","::")}r(zn,"convertActionKey");function gp(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}r(gp,"convertSelector");function ix(e,t,n,i){var a,s,c,l;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((l=(c=i.definitions)==null?void 0:c.AnalyticalListPageFilterBar)==null?void 0:l.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}r(ix,"addSmartFilterBarFlex");function ox(e,t){let n=Object.keys(t.definitions).filter(o=>o.startsWith(`${e}`)&&o.includes("<")),i=new Map;return n.forEach(o=>{var c;let a=St((c=o.split("<")[1])==null?void 0:c.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let l=a.split(":::"),p=l.find(d=>d.startsWith("sSemanticObject")),u=l.find(d=>d.startsWith("sAction")),f=u.split("sAction::")[1].replace(":2f","::");if(p){let d=`${p.split("::")[1]}::${f}`,b=`${l[0]}:::${p}:::${u}`;i.set(d,o),i.set(o,b)}else i.set(f,o),i.set(o,a)}else i.set(a.replace(":2f","::"),o),i.set(o,a)}),i}r(ox,"filterActions");function rx(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}r(rx,"addColumnActionConfigPart");function ax(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}r(ax,"getActionId");function sx(e,t,n,i,o){[{name:"HeaderActionStandard",configPart:e.header.actions,id:o},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:o},{name:"FooterAction",configPart:e.footer.actions,id:o&&o.includes("Determining")&&o.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:o},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:o},{name:"TableColumnAction",configPart:e.table.columns,id:o}].forEach(s=>{var l,p;let c=ox(s.name,i);if(c.has(s.id)){let u=c.get(s.id),f=(l=u.split("<")[1])==null?void 0:l.split(">")[0];s.name==="TableColumnAction"&&rx(s,e,f);let d=s.configPart[f];((p=i.definitions[u])==null?void 0:p.properties[t])&&d&&(d[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}r(sx,"addActionFlex");function cx(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=lt(e[ge.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[ge.PropertyName.chart],t):e[ge.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}r(cx,"addSmartChartFlex");function ds(e,t,n,i){var o,a;try{let s=Ot(t),c=s.content.property;if((o=s.controlId)!=null&&o.includes(ge.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(ge.PageTypeV2.AnalyticalListPage))switch(s.controlId=gp(s.controlId),s.controlType){case ge.ControlType.SmartFilterBar:{ix(e,c,s,n);break}case ge.ControlType.DynamicPage:{n.properties[c]&&(e[s.content.property]=s.content.newValue);break}case ge.ControlType.Button:{let l=ax(s);l&&sx(e,c,s,n,l);break}case ge.ControlType.SmartChart:{cx(e,c,s,n);break}default:break}}catch(s){Q(i,{severity:ge.LogSeverity.Error,message:w.t("FLEXERROR")},...s)}}r(ds,"addFlex");function tt(e,t,n,i,o,a){if(!n)return;let s={},c=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let l in n.properties){let p=lt(e,l);if(p!=null&&p.manifest){let u=p.manifest.path([i],t,a);s=ze(t,u),ma(p,s,l,e),Mg(c,s,u,o)}}}r(tt,"transferSettingsOfObject");function gs(e,t){var o,a,s,c,l,p,u,f,d;let n=e[ge.ManifestSection.generic].pages[t],i=ge.v2.TableTypeV2.ResponsiveTable;return(o=e[ge.ManifestSection.generic].pages[t].component)!=null&&o.settings&&((s=(a=e[ge.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(c=e[ge.ManifestSection.generic].pages[t].component.settings)!=null&&c.tableType)?i=((u=(p=(l=n.component)==null?void 0:l.settings)==null?void 0:p.tableSettings)==null?void 0:u.type)||((f=n.component)==null?void 0:f.settings.tableType):((d=n.component)==null?void 0:d.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=ge.v2.TableTypeV2.AnalyticalTable),i}r(gs,"determineTableType");function Zm(e,t,n,i,o,a,s){var c,l;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,u=JSON.parse(p.substr(1,p.length)),f=e.Text&&e.Text._attributes&&e.Text._attributes.text;f||(f=e.Label&&e.Label._attributes&&e.Label._attributes.text);let d={...(c=e._attributes)!=null&&c.id?{id:(l=e._attributes)==null?void 0:l.id}:{},...f?{text:f}:{},...u,...u.columnKey?{columnKey:u.columnKey}:{},...u.columnIndex?{columnIndex:Number(u.columnIndex)}:{},...u.leadingProperty?{leadingProperty:u.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(d.cellsFragmentName=s),o.table.columns.custom||(o.table.columns.custom=[]),o.table.columns.custom.push(d)}}r(Zm,"evaluateFragmentColumn");function lx(e,t,n,i){let o;if(e===ge.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,c,l]=a.split("|");s===ge.ViewTemplateType.ResponsiveTableCellsExtension&&c===n&&l===i&&(o=t[a].fragmentName)}return o}r(lx,"determineCellsFragmentName");function px(e,t,n,i,o,a,s){var c;if(e[0]){let p=JSON.parse((0,ey.xml2json)(e[0].fileContent,{compact:!0}))[an];try{let u=zo(p);if(u)if((c=t[ge.PropertyName.table])!=null&&c.columns||(t[ge.PropertyName.table].columns={}),Array.isArray(u))for(let f of u)Zm(f,n,i,o,t,a,s);else Zm(u,n,i,o,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}r(px,"analyzeFilteredFragments");function fx(e,t,n,i,o){var a;for(let s of Object.keys(e)){let c=s.split("|"),[l,p]=c,u=c[2];if(l&&p===t){let f=e[s].type?e[s].type.toLowerCase():"xml",d=e[s].fragmentName;if(!d)continue;let b=lx(l,e,p,u),x=d.split(".");d=x[x.length-1]+ge.FRAGMENTNAMEPART+f;let I=i.fragments.filter(O=>O.dataSourceUri.endsWith(d));try{px(I,n,e,s,u,l,b)}catch(O){i.logger.error(O.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(O=>{us(i,n,O.id,O,o)})}}}r(fx,"processViewExtensions");function lo(e,t,n,i,o,a="LineItems"){var s,c,l;if(t.fragments&&(l=(c=(s=t.manifest[ge.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:c.extensions)!=null&&l["sap.ui.viewExtensions"]){let p=ge.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),u=t.manifest[ge.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!u)return;let f=o&&o.target?o.target:n.entitySet;fx(u,f,e,t,a)}}r(lo,"addFragments");function ms(e,t,n){if(e.header={actions:{}},n[ge.DefinitionName.HeaderActionsStandard]){let i=n[ge.DefinitionName.HeaderActionsStandard].properties;for(let o in i)e.header.actions[o]=t.createInstance(ge.PageTypeV2.ListReport,o,{})}}r(ms,"importHeaderActions");var Zn=M(W());var xr="sap.suite.ui.generic.template.ListReport";var ty="sap.suite.ui.generic.template.ListReport.view.ListReport";var Oe=M(W());function Oi(e,t,n){var o;let i;for(let a in e){let s=e[a];if(hn((o=s.component)==null?void 0:o.name)===Oe.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=Oi(s.pages,t,n),i))return n.unshift(a),i}}r(Oi,"findObjectPageV2");function po(e,t){var n;for(let i in e){let o=e[i];if(hn((n=o.component)==null?void 0:n.name)===Oe.PageTypeV2.ListReport)return t.push(i),o}}r(po,"findListReportPageV2");function fo(e){if(!e.manifest[Oe.ManifestSection.generic]){Q(e.logger,{severity:Oe.LogSeverity.Error,message:w.t("NOFE"),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}});return}let t=e.manifest[Oe.ManifestSection.generic].pages;if(!t){Q(e.logger,{severity:Oe.LogSeverity.Error,message:w.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}});return}return t}r(fo,"getV2Pages");function uo(e,t,n){var i;if(!e){Q(t,{severity:Oe.LogSeverity.Error,message:w.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}});return}if(!e.entitySet){let o=(i=e.component)==null?void 0:i.name;Q(t,{severity:Oe.LogSeverity.Error,message:w.t("NOENTITYSET",{pageName:o}),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}})}}r(uo,"checkV2Page");function go(e,t,n){var i;for(let o in e){let a=e[o];if(t.push(o),hn((i=a.component)==null?void 0:i.name)===Oe.PageTypeV2.AnalyticalListPage)return a}Q(n,{severity:Oe.LogSeverity.Error,message:w.t("NOALP"),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}})}r(go,"findAnalyticalListPage");function mp(e,t){let n=e.split("|");return Oe.v2.SectionPosition[n[0]]&&n[1]===t}r(mp,"isAssociatedCustomSection");function ny(e,t){let n=ze(e,`sap.ui5/extends/extensions/${Oe.v2.SAPUI5_VIEW_EXTENSION}/${Oe.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let o in n)mp(o,t)&&(i[o]=n[o]);return i}r(ny,"findCustomSectionExtensions");function ux(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}r(ux,"removeEmptySettingsOfFooter");function dx(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let o in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[o]).length===0&&delete e.filterBar.selectionFields[o];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}r(dx,"removeEmptySettingsOfFilterBar");function gx(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}r(gx,"removeEmptySettingsOfToolBar");function ys(e){gx(e),dx(e),ux(e)}r(ys,"removeEmptySettings");var we=M(W());var oy=M(W());var yp={};$r(yp,{ANNOERR:()=>jx,ANNOTATIONFILE:()=>Dx,COMPONENTNOTDEFINED:()=>Rx,CONTEXTPATHCOULDNOTBERESOLVED:()=>Fx,ENTITYSETNOTFOUND:()=>Ox,FLEXERROR:()=>Wx,INCONSISTENTSCHEMA:()=>zx,INVALIDANCHOR:()=>Kx,INVALIDSPECFORV4:()=>hx,INVALIDTARGETDEFINITION:()=>Qx,NOALP:()=>Lx,NOBASEPATH:()=>bx,NOCHARTS:()=>Mx,NOENTITYSET:()=>Cx,NOENTITYTYPE4SET:()=>Px,NOFE:()=>vx,NOFRAGMENT:()=>Jx,NOGENERICSCHEMA:()=>Sx,NOID4SECTION:()=>Xx,NOLINEITEMANDCHARTS:()=>kx,NOLINEITEMS:()=>_x,NOLR:()=>Nx,NOPAGEFORENTITYSET:()=>xx,NOPAGES:()=>Tx,NOPRESENTATIONVARIANT:()=>Ax,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>Ex,NOPRESENTATIONVARIANTFORSPV:()=>Ix,NOROUTING:()=>wx,NOROUTINGID:()=>Hx,NOTARGET:()=>Gx,NOTARGETS:()=>Bx,NOTEMPLATE:()=>Vx,NOUIANNOTATIONS:()=>$x,NOVISUALIZATIONS:()=>Ux,TYPEERROR:()=>Yx,UNKNOWNMINUI5VERSION:()=>yx,WRONGMINUI5VERSION:()=>mx,XMLPARSEFAILURE:()=>qx,default:()=>Zx});var mx="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",yx="The minUI5Version can not be determined from the pattern {{- minUI5Version}}",hx="The given specification version cannot be used for this app, you would need to upgrade to SAPUI5 version 1.84 or higher and update the version of @sap/ux-specification accordingly.",bx="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",Tx="No pages found in manifest for app with id '{{- appId}}'",vx="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",Sx="No generic schema found while generating page schema for {{- pageType}}",xx="No page found in manifest for entitySet '{{- entitySet}}'",Cx="No entitySet defined for page '{{- pageName}}'",Px="No entityType could be found for the given entity set '{{- entitySetName}}'",Ax="No PresentationVariant defined for '{{- key}}'",Ex="No PresentationVariant found for default SelectionPresentationVariant",Ix="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",Ox="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",Fx="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",Nx="No page found in manifest for list report",Lx="No page found in manifest for analytical list page",Vx="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",jx="Error while parsing annotation files",Dx="Annotation file: '{{- file}}'",Rx="Component name is not defined for page '{{- pageName}}'",wx="Incomplete manifest definition: no routing defined",$x="No UI Annotation defined for entity type '{{- entityType }}'",_x="UI.LineItem annotation has not been defined",Mx="UI.Chart annotation has not been defined",kx="Neither UI.LineItem nor UI.Chart annotation has been defined",Ux="Empty Collection for Visualizations",Bx="Incomplete manifest definition: no targets defined",Gx="Invalid reference: annotation target '{{- target}}' not found",Hx="No page found in manifest for routingId '{{- routingId}}'",Wx="Error while parsing flex change",Kx="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",Jx="fragmentName is undefined for columnKey '{{- columnKey}}'",Qx="Invalid routing target definition in manifest: '{{- target}}'",Xx="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",qx="Parsing of XML file failed with error - {{- error}}",zx="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",Yx="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",Zx={WRONGMINUI5VERSION:mx,UNKNOWNMINUI5VERSION:yx,INVALIDSPECFORV4:hx,NOBASEPATH:bx,NOPAGES:Tx,NOFE:vx,NOGENERICSCHEMA:Sx,NOPAGEFORENTITYSET:xx,NOENTITYSET:Cx,NOENTITYTYPE4SET:Px,NOPRESENTATIONVARIANT:Ax,NOPRESENTATIONVARIANTFORDEFAULTSPV:Ex,NOPRESENTATIONVARIANTFORSPV:Ix,ENTITYSETNOTFOUND:Ox,CONTEXTPATHCOULDNOTBERESOLVED:Fx,NOLR:Nx,NOALP:Lx,NOTEMPLATE:Vx,ANNOERR:jx,ANNOTATIONFILE:Dx,COMPONENTNOTDEFINED:Rx,NOROUTING:wx,NOUIANNOTATIONS:$x,NOLINEITEMS:_x,NOCHARTS:Mx,NOLINEITEMANDCHARTS:kx,NOVISUALIZATIONS:Ux,NOTARGETS:Bx,NOTARGET:Gx,NOROUTINGID:Hx,FLEXERROR:Wx,INVALIDANCHOR:Kx,NOFRAGMENT:Jx,INVALIDTARGETDEFINITION:Qx,NOID4SECTION:Xx,XMLPARSEFAILURE:qx,INCONSISTENTSCHEMA:zx,TYPEERROR:Yx};function iy(e){e.addResourceBundle(e.language,"translation",yp)}r(iy,"initI18n");function it(e="en"){w.init({resources:{en:{translation:oy.default}},lng:e,fallbackLng:"en",joinArrays:`
86
+ </core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var La=require("path");var sn="core:FragmentDefinition",Na="sap.ui.table",cl=new Map([[ve.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[ve.ViewTemplateType.TreeTableColumnsExtension,{namespace:Na,name:"Column"}],[ve.ViewTemplateType.GridTableColumnsExtension,{namespace:Na,name:"Column"}],[ve.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Na,name:"AnalyticalColumn"}]]),VS=new Map([[ve.v2.FE_TEMPLATE_V2_LIST_REPORT,ve.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[ve.v2.FE_TEMPLATE_V2_ALP,ve.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[ve.v2.FE_TEMPLATE_V2_OBJECT_PAGE,ve.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),Gm={type:"element",name:"Text",attributes:{text:"Placeholder"}},jS=JSON.stringify(Gm);function DS(e,t){var i;let n=t?(i=e==null?void 0:e[sn])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let o=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=o.get(n[a]);o.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),o}else throw new Error("Invalid fragment, please check content")}r(DS,"getFragmentNamespaces");function Bm(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}r(Bm,"getTagName");function Va(e,t,n=e){let i=DS(n,!!(t||n!==e));if(t){let o=cl.get(t);return Bm(o,i.get(o.namespace))}else{let o=cl.keys();for(let a of o){let s=cl.get(a),c=i?Bm(s,i.get(s.namespace)):s.name;if(e[c])return c}}}r(Va,"getTagNameFromFragmentJSON");function Yo(e,t=e){let n=Va(e,void 0,t);return e[n]}r(Yo,"getRootCustomColumnFromFragmentJSON");function RS(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let o in e[t]){let a=e[t][o];!n.includes(o)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${o}": "${a.toString()}"`)}return i+="}",i}r(RS,"addP13nData");function Hm(e,t){var c,l,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let o=i["core:CustomData"]._attributes.value,a=JSON.parse(o.substr(1,o.length)),s=t.findIndex(u=>u.columnKey===a.columnKey);return s<0?!1:(n=!0,o=RS(t,s),i["core:CustomData"]._attributes.value=o,!e.Text&&!e.Label&&((c=t[s])!=null&&c.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(l=t[s])==null?void 0:l.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(p=t[s])==null?void 0:p.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}r(Hm,"handleFragmentColumn");function wS(e,t,n,i){let o=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=o.split("."),c=s[s.length-1]+ve.FRAGMENTNAMEPART+a;for(let l of t){let p=l.dataSourceUri.split(La.sep);if(p[p.length-1]===c){let u=JSON.parse((0,Wt.xml2json)(l.fileContent,{compact:!0}));try{let f=Va(u[sn]);f&&(delete u[sn][f],l.fileContent=(0,Wt.json2xml)(JSON.stringify(u),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${l.dataSourceUri}, please check content`)}break}}}r(wS,"deleteColumnsFromFragment");function Wm(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===jS&&(e.splice(n,1),t-=1,t===0));n++);}r(Wm,"deleteNumberOfCells");function $S(e,t,n){let i=e.type?e.type.toLowerCase():"xml",o=e.fragmentName.substr(n.length+1).split("."),a=o[o.length-1]+ve.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let c=JSON.parse((0,Wt.xml2json)(s.fileContent)),l=c.elements[0].elements&&c.elements[0].elements.filter(p=>p.type==="element");l&&Wm(c.elements[0].elements,l.length),s.fileContent=(0,Wt.json2xml)(JSON.stringify(c),{spaces:4});break}}r($S,"deleteCellsFromFragment");function ja(e,t,n,i){if(i){wS(e,i,t,n);let o=t.replace(ve.ViewTemplateType.ResponsiveTableColumnsExtension,ve.ViewTemplateType.ResponsiveTableCellsExtension),a=e[o];a&&$S(a,i,n)}}r(ja,"deleteColumnFromFragment");function _S(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let o=i;o<Object.keys(n).length;o++)t.elements[0].elements.push(Gm)}r(_S,"addNewColumnsInFragment");function MS(e,t){let n=JSON.parse((0,Wt.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(o=>o.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)_S(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let o=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;Wm(a,o)}e.fileContent=(0,Wt.json2xml)(JSON.stringify(n),{spaces:4})}}r(MS,"updateNonEmptyCellsFragment");function kS(e,t,n){let i=!1;for(let o of e){let a=o.dataSourceUri.split(La.sep);if(a[a.length-1]===t){i=!0,o.changeIndicator=ve.ChangeIndicator.Updated,!o.fileContent||Object.keys(o.fileContent).length===0?o.fileContent=sl(n):MS(o,n);break}}return i}r(kS,"updateCellsFragment");function US(e,t,n,i,o){var u;let a,s,c=t.manifest,l=ze(c,e),p=l.type?l.type.toLowerCase():"xml";l.type=p.toUpperCase();for(let f of n){if(!f.fragmentName){J(o,{severity:ve.LogSeverity.Error,message:w.t("NOFRAGMENT",{columnKey:f.columnKey})});continue}t.manifestChangeIndicator=ve.ChangeIndicator.Updated,l.fragmentName=f.fragmentName,l.className=f.className,a=((u=f.fragmentName)==null?void 0:u.replace(i,"<root>/webapp").replace(/[.]/g,La.sep))+ve.FRAGMENTNAMEPART+p}if(e.indexOf(ve.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=ve.ChangeIndicator.Updated;let f=e.replace(ve.ViewTemplateType.ResponsiveTableColumnsExtension,ve.ViewTemplateType.ResponsiveTableCellsExtension),d=ze(c,f),b=n.reduce((x,I)=>I.cellsFragmentName?I:x);b&&b.cellsFragmentName?(d.fragmentName=s=b.cellsFragmentName,d.className=n[0].className,d.type=p.toUpperCase()):Pm(c,f)}return{manifestSection:l,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}r(US,"exportCustomColumnsToManifest");function BS(e,t,n,i,o){let a=rl(e,t);if(a){let s=JSON.parse((0,Wt.xml2json)(a,{compact:!0})),c=Yo(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(c))||n.push(c);else if(n){let l=[n];l.splice(o,0,c),n=l}else n=[c]}return n}r(BS,"insertNewColumnInFragment");function GS(e,t){let n=[];for(let i=0;i<e.length;i++)Hm(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}r(GS,"processCustomColumnInArray");function HS(e,t,n){if(e){if(Array.isArray(e))GS(e,t);else if(!Hm(e,t)){let o=Va(n[sn]);o&&(delete n[sn][o],e=void 0)}}return e}r(HS,"maintainExistingColumnInFragment");function WS(e,t,n,i,o){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=BS(a,i,n,o,s)}return n}r(WS,"insertNewColumnsInFragment");function KS(e,t,n,i,o){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let c={};if(a=!0,s.changeIndicator=ve.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=al(i,o);else{let l=JSON.parse((0,Wt.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(l);c=Yo(l[sn]),c=HS(c,i,l),c=WS(i,n,c,o,l);let u=Va(l,o);l[sn][u]=c;let f=JSON.stringify(l);f!==p&&(s.fileContent=(0,Wt.json2xml)(f,{compact:!0,spaces:4}))}break}return a}r(KS,"updateColumnsInFragment");function ll(e,t,n,i,o,a){let s=e.fragments,{manifestSection:c,lsFilePath:l,cellsFragmentName:p,fragmentType:u}=US(t,e,n,i,a),f=JSON.parse(JSON.stringify(n)),d=c.fragmentName,b=d.substr(i.length+1),x=b.split(".");d=x[x.length-1]+ve.FRAGMENTNAMEPART+u;let O=p==null?void 0:p.split("."),_=O?O[O.length-1]:null,ie=_?_+ve.FRAGMENTNAMEPART+u:null,q=KS(s,d,b,f,o),Z=!1;if(p?Z=kS(s,ie,n):Z=!0,!q){let Q={fileContent:al(f,o),dataSourceUri:l,changeIndicator:ve.ChangeIndicator.Deleted};e.fragments.push(Q)}if(!Z){let Q={fileContent:sl(n),dataSourceUri:l.replace(d,ie),changeIndicator:ve.ChangeIndicator.Deleted};e.fragments.push(Q)}}r(ll,"exportCustomColumnsToFragment");var Da=r((e,t,n,i)=>{var l,p,u,f;if(!e)return;let o=VS.get((l=e.component)==null?void 0:l.name);if(!i){let d=(f=(u=(p=e.component)==null?void 0:p.settings)==null?void 0:u.tableSettings)==null?void 0:f.type;d||(d="ResponsiveTable"),o==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(d="AnalyticalTable"),i=d+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+o+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var Me=$(G());var Wn=r((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+Me.PropertyName.table:Fe(e,t),"getSmartTableControlId");function JS(e,t){let n=e.variants||{},i=t.variants||{};Object.keys(n).filter(a=>!Object.keys(i).includes(a)).forEach(a=>{delete n[a]});for(let a in i){let s=i[a],c=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let l in s)c.indexOf(l)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[l]=s[l],delete s[l]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}r(JS,"exportVariants");function QS(e,t){t.variants&&(Object.keys(t.variants).length>0?JS(e,t):delete e.variants)}r(QS,"exportQuickVariantSelectionX");var Ra=class Ra{};r(Ra,"CreateWithFilters"),m([y({manifest:{path:r(t=>de(t)+"/createWithFilters","path")}})],Ra.prototype,"strategy",2);var pl=Ra;function tr(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}r(tr,"importType");function lo(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}r(lo,"exportType");function po(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}r(po,"deleteType");var Zo=class Zo{};r(Zo,"QuickVariantSelection"),m([y({manifest:{path:r(t=>de(t)+Me.QUICKVARPATH,"path")}}),N({since:"1.48.0"})],Zo.prototype,"showCounts",2),m([y({manifest:{path:r(t=>de(t)+Me.QUICKVARPATH,"path")}}),N({since:"1.48.0"})],Zo.prototype,"variants",2);var fl=Zo,ao=class ao{};r(ao,"QuickVariantSelectionX"),m([y({manifest:{path:r(t=>de(t)+Me.QUICKVARPATHX,"path")}}),N({since:"1.48.0"})],ao.prototype,"showCounts",2),m([y({manifest:{path:r(t=>de(t)+Me.QUICKVARPATHX,"path")}}),N({since:"1.48.0"})],ao.prototype,"enableAutoBinding",2),m([y({manifest:{path:r(t=>de(t)+Me.QUICKVARPATHX,"path"),export:QS}}),N({since:"1.48.0"})],ao.prototype,"variants",2);var ul=ao,ft=class ft{constructor(){this.getDeprecated=r(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};r(ft,"CommonTableSettings"),m([y({flex:{controlId:Fe,controlType:r(()=>Me.ControlType.SmartTable,"controlType"),createFlexChange:D}}),N({since:"1.38.0"})],ft.prototype,"showTablePersonalisation",2),m([y({flex:{controlId:Wn,controlType:r(()=>Me.ControlType.SmartTable,"controlType"),createFlexChange:D}}),N({since:"1.26.0"})],ft.prototype,"useExportToExcel",2),m([y({flex:{controlId:Wn,controlType:r(()=>Me.ControlType.SmartTable,"controlType"),createFlexChange:D}}),N({since:"1.50.0"})],ft.prototype,"exportType",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.48.0"})],ft.prototype,"quickVariantSelection",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.48.0"})],ft.prototype,"quickVariantSelectionX",2),m([y({manifest:{path:r(t=>Ea(t),"path")}}),N({since:"1.38.0"})],ft.prototype,"multiSelect",2),m([y({manifest:{path:r(t=>Ea(t),"path")}}),N({since:"1.70.0"})],ft.prototype,"selectAll",2),m([y({manifest:{path:r(t=>Ea(t),"path")}}),N({since:"1.70.0"})],ft.prototype,"selectionLimit",2),m([y({flex:{controlId:Wn,controlType:r(()=>Me.ControlType.SmartTable,"controlType"),createFlexChange:D}}),N({since:"1.40.0"})],ft.prototype,"enableAutoBinding",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.42.0"})],ft.prototype,"condensedTableLayout",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.56.0"}),vn("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],ft.prototype,"enableTableFilterInPageVariant",2),m([qe("toolBar")],ft.prototype,"toolBar",2);var Kn=ft,Pn=class Pn extends Kn{};r(Pn,"ResponsiveTable"),m([y({manifest:{path:r(t=>de(t),"path"),import:tr,export:lo,delete:po}}),N({since:"1.50.0"})],Pn.prototype,"type",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.54.0"})],Pn.prototype,"createWithFilters",2),m([y({flex:{controlId:Wn,controlType:r(()=>Me.ControlType.Table,"controlType"),createFlexChange:D},generate:Ji}),N({since:"1.52.0"})],Pn.prototype,"popinLayout",2),m([y({flex:{controlId:Wn,controlType:r(()=>Me.ControlType.Table,"controlType"),createFlexChange:D}})],Pn.prototype,"includeItemInSelection",2),m([y({manifest:{path:r(()=>Me.GENERICAPPSETTINGS,"path")}}),N({since:"1.63.0"})],Pn.prototype,"showDraftToggle",2),m([y({flex:{controlId:Wn,controlType:r(()=>Me.ControlType.Table,"controlType"),createFlexChange:D}}),N({since:"1.16.0"})],Pn.prototype,"growingThreshold",2);var yi=Pn,er=class er extends Kn{};r(er,"TreeTable"),m([y({manifest:{path:r(t=>de(t),"path"),import:tr,export:lo,delete:po}}),N({since:"1.50.0"})],er.prototype,"type",2),m([y({manifest:{path:r(()=>Me.GENERICAPPSETTINGS,"path")}}),N({since:"1.63.0"})],er.prototype,"showDraftToggle",2);var dl=er,Kt=class Kt extends Kn{};r(Kt,"AnalyticalTable"),m([y({manifest:{path:r(t=>de(t),"path"),import:tr,export:lo,delete:po}}),N({since:"1.50.0"})],Kt.prototype,"type",2),m([y({manifest:{path:r(t=>de(t),"path")}})],Kt.prototype,"qualifier",2),m([y({manifest:{path:r(t=>de(t),"path")}})],Kt.prototype,"defaultContentView",2),m([y({manifest:{path:r(t=>de(t),"path")}})],Kt.prototype,"defaultFilterMode",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.60.0"})],Kt.prototype,"contentTitle",2),m([y({manifest:{path:r(t=>de(t),"path")}})],Kt.prototype,"autoHide",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.54.0"})],Kt.prototype,"createWithFilters",2),m([y({manifest:{path:r(()=>Me.GENERICAPPSETTINGS,"path")}}),N({since:"1.63.0"})],Kt.prototype,"showDraftToggle",2);var gl=Kt,An=class An extends Kn{};r(An,"TableALP"),m([y({manifest:{path:r(t=>de(t),"path"),import:tr,export:lo,delete:po}}),N({since:"1.50.0"})],An.prototype,"type",2),m([y({manifest:{path:r(t=>de(t),"path")}})],An.prototype,"qualifier",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.38.0"}),y({manifest:{path:r(t=>de(t),"path")}})],An.prototype,"defaultContentView",2),m([y({manifest:{path:r(t=>de(t),"path")}})],An.prototype,"defaultFilterMode",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.60.0"})],An.prototype,"contentTitle",2),m([y({manifest:{path:r(t=>de(t),"path")}})],An.prototype,"autoHide",2);var co=An,wa=class wa extends co{};r(wa,"ALPResponsiveTable"),m([y({flex:{controlId:Wn,controlType:r(()=>Me.ControlType.Table,"controlType"),createFlexChange:D}}),N({since:"1.16.0"})],wa.prototype,"growingThreshold",2);var ml=wa,Tl=class Tl extends co{};r(Tl,"ALPGridTable");var yl=Tl,vl=class vl extends co{};r(vl,"ALPAnalyticalTable");var hl=vl,so=class so extends Kn{};r(so,"GridTable"),m([y({manifest:{path:r(t=>de(t),"path"),import:tr,export:lo,delete:po}}),N({since:"1.50.0"})],so.prototype,"type",2),m([y({manifest:{path:r(t=>de(t),"path")}}),N({since:"1.54.0"})],so.prototype,"createWithFilters",2),m([y({manifest:{path:r(()=>Me.GENERICAPPSETTINGS,"path")}}),N({since:"1.63.0"})],so.prototype,"showDraftToggle",2);var bl=so;var nr=$(G());var XS=r((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}action::${St(i).replace(":2f","::")}`},"getActionButtonId"),qS=r((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}template::${i}`},"getStandardActionButtonId"),zS=r((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}${ba}${i}`},"getStandardFooterActionOPButtonId"),Ll=r((e,t,n)=>{let{semanticObjectId:i,actionId:o}=Ct(n);return`${e}action::${i}::${St(o)}`},"buildIntentBasedActionId"),YS=r((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}action::${St(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),Jn={controlId:XS,controlType:r(()=>nr.ControlType.Button,"controlType"),createFlexChange:D},ir={controlId:qS,controlType:r(()=>nr.ControlType.Button,"controlType"),createFlexChange:D},Km={controlId:zS,controlType:r(()=>nr.ControlType.Button,"controlType"),createFlexChange:D},$a={controlId:YS,controlType:r(()=>nr.ControlType.Button,"controlType"),createFlexChange:D},hi=class hi{};r(hi,"Action"),m([y({flex:Jn})],hi.prototype,"tooltip",2),m([y({flex:Jn})],hi.prototype,"icon",2),m([y({flex:Jn})],hi.prototype,"activeIcon",2),m([y({flex:Jn})],hi.prototype,"type",2);var Sl=hi,bi=class bi{};r(bi,"ToolBarAction"),m([y({flex:Jn})],bi.prototype,"tooltip",2),m([y({flex:Jn})],bi.prototype,"icon",2),m([y({flex:Jn})],bi.prototype,"activeIcon",2),m([y({flex:Jn})],bi.prototype,"type",2);var xl=bi,Ti=class Ti{};r(Ti,"FooterAction"),m([y({flex:$a})],Ti.prototype,"tooltip",2),m([y({flex:$a})],Ti.prototype,"icon",2),m([y({flex:$a})],Ti.prototype,"activeIcon",2),m([y({flex:$a})],Ti.prototype,"type",2);var Cl=Ti,_a=class _a{};r(_a,"Share"),m([y({flex:ir})],_a.prototype,"visible",2);var Pl=_a,Ma=class Ma{};r(Ma,"ShareOP"),m([y({flex:ir})],Ma.prototype,"visible",2);var Al=Ma,ka=class ka{};r(ka,"UpAndDownNavigationOP"),m([y({flex:ir})],ka.prototype,"visible",2);var El=ka,Ua=class Ua{};r(Ua,"SaveAndEditOP"),m([y({flex:Km,generate:he})],Ua.prototype,"visible",2);var Il=Ua,Ba=class Ba{};r(Ba,"HeaderActionStandard"),m([y({flex:ir})],Ba.prototype,"visible",2);var Ol=Ba,Ga=class Ga{};r(Ga,"ObjectPageHeaderActionStandard"),m([y({flex:ir})],Ga.prototype,"visible",2);var Fl=Ga,Ha=class Ha{};r(Ha,"ObjectPageFooterActionStandard"),m([y({flex:Km})],Ha.prototype,"visible",2);var Nl=Ha;var ar=$(G());var ZS=r((e,t,n)=>{let i="template:::TableColumn",{actionType:o,actionId:a}=Ct(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${o}:::${s}:::sAction::${a}`},"buildColumnActionId"),ex=r((e,t,n)=>{let i="template:::TableColumn",{actionType:o,actionId:a,semanticObjectId:s}=Ct(n),c=`sSmartTableId::${t[0]}`;return`${e}${i}:::${o}:::${c}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),tx=r((e,t,n)=>{let{actionId:i}=Ct(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),Vl={controlId:ZS,controlType:r(()=>ar.ControlType.TableColumn,"controlType"),createFlexChange:D},or={controlId:tx,controlType:r(()=>ar.ControlType.Button,"controlType"),createFlexChange:D},Jm={...Vl,controlId:ex},Wa={...or,controlId:Ll},rr=class rr{};r(rr,"TableColumn"),m([y({flex:{controlId:Nc,controlType:r(()=>ar.ControlType.TableColumn,"controlType"),createFlexChange:D}})],rr.prototype,"width",2),m([y({flex:{controlId:Nc,controlType:r(()=>ar.ControlType.TableColumn,"controlType"),createFlexChange:D},generate:Ji})],rr.prototype,"hAlign",2);var jl=rr,En=class En{};r(En,"TableColumnAction"),m([y({flex:Vl})],En.prototype,"width",2),m([y({flex:Vl,generate:Ji})],En.prototype,"hAlign",2),m([y({flex:or})],En.prototype,"tooltip",2),m([y({flex:or})],En.prototype,"icon",2),m([y({flex:or})],En.prototype,"activeIcon",2),m([y({flex:or})],En.prototype,"type",2);var Ka=En,In=class In extends Ka{};r(In,"TableColumnActionIntentBased"),m([y({flex:Jm})],In.prototype,"width",2),m([y({flex:Jm,generate:Ji})],In.prototype,"hAlign",2),m([y({flex:Wa})],In.prototype,"tooltip",2),m([y({flex:Wa})],In.prototype,"icon",2),m([y({flex:Wa})],In.prototype,"activeIcon",2),m([y({flex:Wa})],In.prototype,"type",2);var Dl=In,wl=class wl{};r(wl,"TableCustomColumn");var Rl=wl;var _l=class _l{};r(_l,"ToolBar");var $l=_l;var Si=$(G());var sr=r(e=>e+Si.PropertyName.chart,"getSmartChartControlId"),vi=class vi{};r(vi,"ChartSettings"),m([y({flex:{controlId:sr,controlType:r(()=>Si.ControlType.SmartChart,"controlType"),createFlexChange:D}})],vi.prototype,"showLegendButton",2),m([y({flex:{controlId:sr,controlType:r(()=>Si.ControlType.SmartChart,"controlType"),createFlexChange:D}})],vi.prototype,"showDownloadButton",2),m([y({flex:{controlId:sr,controlType:r(()=>Si.ControlType.SmartChart,"controlType"),createFlexChange:D}})],vi.prototype,"showChartTypeSelectionButton",2),m([y({flex:{controlId:sr,controlType:r(()=>Si.ControlType.SmartChart,"controlType"),exportFlexValue:r((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:r((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue"),createFlexChange:D}})],vi.prototype,"ignoredChartTypes",2);var Ml=vi;var On=class On{};r(On,"KPISettings"),m([y({manifest:{path:r((t,n,i)=>mi(t,i),"path")}})],On.prototype,"model",2),m([y({manifest:{path:r((t,n,i)=>mi(t,i),"path")}})],On.prototype,"entitySet",2),m([y({manifest:{path:r((t,n,i)=>mi(t,i),"path")}})],On.prototype,"qualifier",2),m([y({manifest:{path:r((t,n,i)=>mi(t,i),"path")}})],On.prototype,"filterable",2),m([y({manifest:{path:r((t,n,i)=>mi(t,i),"path")}})],On.prototype,"detailNavigation",2),m([y({manifest:{path:r((t,n,i)=>mi(t,i),"path")}})],On.prototype,"groupId",2);var kl=On;var Qm=$(G());var nx=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Fe(e,n)},"getAvatarControlId"),Qn=class Qn{};r(Qn,"ObjectPageHeader"),m([y({manifest:{path:r(t=>wt(t),"path")}}),N({since:"1.46.0"})],Qn.prototype,"showRelatedApps",2),m([y({manifest:{path:r(t=>wt(t),"path")}}),N({since:"1.46.0"})],Qn.prototype,"editableHeaderContent",2),m([y({manifest:{path:r(t=>wt(t),"path")}}),N({since:"1.48.0"})],Qn.prototype,"simpleHeaderFacets",2),m([y({manifest:{path:r(t=>wt(t),"path")}}),N({since:"1.48.0"}),vn("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],Qn.prototype,"showHeaderAsCarouselOnDesktop",2),m([y({flex:{controlId:nx,controlType:r(()=>Qm.ControlType.Avatar,"controlType"),createFlexChange:D},generate:he})],Qn.prototype,"displayShape",2);var Ul=Qn;var Ja=$(G());var ix=r((e,t,n,i)=>{if(i()===Ja.ControlType.Button||i()===Ja.ControlType.HeaderAction){let o=n[2];return`${e}action::${St(o)}`}return Fe(e,t)},"getActionButtonId"),cr={controlId:ix,controlType:r(()=>Ja.ControlType.HeaderAction,"controlType"),createFlexChange:D},Xn=class Xn{};r(Xn,"HeaderAction"),m([y({flex:cr,generate:he})],Xn.prototype,"visible",2),m([y({flex:cr})],Xn.prototype,"tooltip",2),m([y({flex:cr})],Xn.prototype,"icon",2),m([y({flex:cr})],Xn.prototype,"activeIcon",2),m([y({flex:cr})],Xn.prototype,"type",2);var Bl=Xn;var lr=$(G());var Za="header::headerEditable::",ox=r((e,t,n,i,o)=>`${e}${Za}${o}`,"getDataPointHeaderSectionId"),rx=r((e,t,n,i,o)=>`${e}${Za}${o}::ContactAddress`,"getAddressHeaderSectionId"),ax=r((e,t,n,i,o)=>`${e}${Za}${o}::SmartMicroChartVBox`,"getChartHeaderSectionId"),Xm=r((e,t,n,i,o)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=o!=null&&o.includes(lr.FACETTITLEPREFIX)?o.split(lr.FACETTITLEPREFIX)[1]:a;return`${e}${Za}${s}::Form`},"getFormHeaderSectionId"),pr={controlType:r(()=>lr.ControlType.ObjectPageHeaderSection,"controlType"),createFlexChange:D},Qa=class Qa{};r(Qa,"CommonHeaderFacetSettings"),m([y({flex:{...pr,controlId:Xm},generate:he})],Qa.prototype,"visible",2);var xi=Qa,Xa=class Xa extends xi{};r(Xa,"ObjectPageHeaderSectionForm"),m([y({flex:{...pr,controlId:Xm}})],Xa.prototype,"visible",2);var Gl=Xa,qa=class qa extends xi{};r(qa,"ObjectPageHeaderSectionChart"),m([y({flex:{...pr,controlId:ax}})],qa.prototype,"visible",2);var Hl=qa,za=class za extends xi{};r(za,"ObjectPageHeaderSectionDataPoint"),m([y({flex:{...pr,controlId:ox}})],za.prototype,"visible",2);var Wl=za,Ya=class Ya extends xi{};r(Ya,"ObjectPageHeaderSectionAddress"),m([y({flex:{...pr,controlId:rx}})],Ya.prototype,"visible",2);var Kl=Ya,Ql=class Ql{};r(Ql,"HeaderSections");var Jl=Ql;var ql=$(G());var sx=r((e,t,n,i)=>{if(i()===ql.ControlType.Button){let{actionId:o}=Ct(n);return`${e}action::${St(o)}::Determining`}return Fe(e,t)},"getFooterActionButtonId"),fr={controlId:sx,controlType:r(()=>ql.ControlType.Button,"controlType"),createFlexChange:D},qn=class qn{};r(qn,"ObjectPageFooterAction"),m([y({flex:fr,generate:he})],qn.prototype,"visible",2),m([y({flex:fr})],qn.prototype,"tooltip",2),m([y({flex:fr})],qn.prototype,"icon",2),m([y({flex:fr})],qn.prototype,"activeIcon",2),m([y({flex:fr})],qn.prototype,"type",2);var Xl=qn;var ur=$(G());var es=r((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Fe(e,n)},"getControlId"),Ci=class Ci{};r(Ci,"ObjectPageLayout"),m([y({flex:{controlId:es,controlType:r(()=>ur.ControlType.ObjectPageLayout,"controlType"),createFlexChange:D},generate:he})],Ci.prototype,"showHeaderContent",2),m([y({flex:{controlId:es,controlType:r(()=>ur.ControlType.ObjectPageLayout,"controlType"),createFlexChange:D}})],Ci.prototype,"showAnchorBar",2),m([y({flex:{controlId:es,controlType:r(()=>ur.ControlType.ObjectPageLayout,"controlType"),createFlexChange:D}})],Ci.prototype,"useIconTabBar",2),m([y({flex:{controlId:es,controlType:r(()=>ur.ControlType.ObjectPageLayout,"controlType"),createFlexChange:D}}),N({since:"1.34.0"})],Ci.prototype,"alwaysShowContentHeader",2);var zl=Ci;var qm=$(G());var Pi=class Pi{};r(Pi,"BaseCustomSection"),m([y({manifest:{path:Cn,export:!1,import:r((t,n)=>n.split("|")[2],"import")}}),N({since:"1.52.0"})],Pi.prototype,"relatedFacet",2),m([y({manifest:{path:Cn,export:!1,import:r((t,n)=>n.split("|")[0],"import")}}),N({since:"1.52.0"})],Pi.prototype,"relativePosition",2),m([y({manifest:{path:r((t,n,i)=>Cn(t,{},i,qm.ManifestSection.generic),"path")}}),N({since:"1.52.0"})],Pi.prototype,"title",2),m([y({manifest:{path:Cn}}),N({since:"1.52.0"})],Pi.prototype,"className",2);var mr=Pi,dr=class dr extends mr{};r(dr,"ObjectPageCustomSectionFragment"),m([y({manifest:{path:Cn}}),N({since:"1.52.0"})],dr.prototype,"fragmentName",2),m([y({manifest:{path:Cn}}),N({since:"1.52.0"})],dr.prototype,"type",2);var yr=dr,gr=class gr extends mr{};r(gr,"ObjectPageCustomSectionView"),m([y({manifest:{path:Cn}}),N({since:"1.52.0"})],gr.prototype,"viewName",2),m([y({manifest:{path:Cn}}),N({since:"1.52.0"})],gr.prototype,"type",2);var hr=gr;var At=$(G());var zm=r((e,t,n,i,o)=>{let s=[et(n[1],o),At.DefinitionName.Table];return Fe(e,s)},"getTableSectionControlId"),Ym=r((e,t,n,i,o)=>{let s=[et(n[1],o),"FormGroup"];return Fe(e,s)},"getFormSectionControlId"),Zm=r((e,t,n,i,o)=>{let s=[et(n[1],o),"Chart"];return Fe(e,s)},"getChartSectionControlId"),Ai=r((e,t,n,i,o)=>{let s=[et(n[1],o),"Section"];return Fe(e,s)},"getSectionControlId"),ey=r((e,t,n,i,o)=>{let s=[et(n[1],o),"SubSection"];return Fe(e,s)},"getSubSectionControlId"),ty=r((e,t,n,i,o)=>{let s=[et(n[1],o),"ContactsList"];return Fe(e,s)},"getContactSubSectionControlId"),ts=class ts{};r(ts,"ObjectPageSectionV2"),m([y({flex:{controlId:Ai,controlType:r(()=>At.ControlType.Section,"controlType"),createFlexChange:D},generate:he})],ts.prototype,"visible",2);var Yl=ts,ns=class ns{};r(ns,"ObjectPageSectionFormV2"),m([y({flex:{controlId:Ai,controlType:r(()=>At.ControlType.Section,"controlType"),createFlexChange:D},generate:he})],ns.prototype,"visible",2);var Zl=ns,is=class is{};r(is,"ObjectPageSectionChartV2"),m([y({flex:{controlId:Ai,controlType:r(()=>At.ControlType.Section,"controlType"),createFlexChange:D},generate:he})],is.prototype,"visible",2);var ep=is,os=class os{};r(os,"ObjectPageSectionTableV2"),m([y({flex:{controlId:Ai,controlType:r(()=>At.ControlType.Section,"controlType"),createFlexChange:D},generate:he})],os.prototype,"visible",2);var tp=os,rs=class rs{};r(rs,"ObjectPageSectionAddressV2"),m([y({flex:{controlId:Ai,controlType:r(()=>At.ControlType.Section,"controlType"),createFlexChange:D},generate:he})],rs.prototype,"visible",2);var np=rs,as=class as{};r(as,"ObjectPageSectionContactV2"),m([y({flex:{controlId:Ai,controlType:r(()=>At.ControlType.Section,"controlType"),createFlexChange:D},generate:he})],as.prototype,"visible",2);var ip=as,ss=class ss{};r(ss,"ObjectPageSubSectionV2"),m([y({flex:{controlId:ey,controlType:r(()=>At.ControlType.SubSection,"controlType"),createFlexChange:D},generate:he})],ss.prototype,"visible",2);var op=ss,cs=class cs{};r(cs,"ObjectPageSubSectionFormV2"),m([y({flex:{controlId:Ym,controlType:r(()=>At.ControlType.Group,"controlType"),createFlexChange:D},generate:he})],cs.prototype,"visible",2);var rp=cs,ls=class ls{};r(ls,"ObjectPageSubSectionChartV2"),m([y({flex:{controlId:Zm,controlType:r(()=>At.ControlType.SmartChart,"controlType"),createFlexChange:D},generate:he})],ls.prototype,"visible",2);var ap=ls,ps=class ps{};r(ps,"ObjectPageSubSectionContactV2"),m([y({flex:{controlId:ty,controlType:r(()=>At.ControlType.SubSection,"controlType"),createFlexChange:D},generate:he})],ps.prototype,"visible",2);var sp=ps,fs=class fs{};r(fs,"ObjectPageSubSectionTableV2"),m([y({flex:{controlId:zm,controlType:r(()=>At.ControlType.SmartTable,"controlType"),createFlexChange:D},generate:he})],fs.prototype,"visible",2);var cp=fs;var Nt=$(G());var Ii=r((e,t,n,i,o)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=Nt.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=et(a[0],o),Fe(e,a)},"getSmartTableControlId"),br=class br{};r(br,"QuickVariantSelectionOP"),m([y({manifest:{path:r((t,n,i)=>nn(t,n,i)+Nt.QUICKVARPATH,"path")}}),N({since:"1.48.0"})],br.prototype,"showCounts",2),m([y({manifest:{path:r((t,n,i)=>nn(t,n,i)+Nt.QUICKVARPATH,"path")}}),N({since:"1.48.0"})],br.prototype,"variants",2);var lp=br,Et=class Et{constructor(){this.getDeprecated=r(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};r(Et,"CommonTableSettingsForSections"),m([y({flex:{controlId:Ii,controlType:r(()=>Nt.ControlType.SmartTable,"controlType"),createFlexChange:D}}),N({since:"1.28.0"})],Et.prototype,"editable",2),m([y({flex:{controlId:Ii,controlType:r(()=>Nt.ControlType.SmartTable,"controlType"),createFlexChange:D}}),N({since:"1.95.0"}),vn("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],Et.prototype,"showPasteButton",2),m([y({manifest:{path:Mn}}),N({since:"1.54.0"})],Et.prototype,"multiSelect",2),m([y({manifest:{path:Mn}}),N({since:"1.70.0"})],Et.prototype,"selectAll",2),m([y({manifest:{path:Mn}}),N({since:"1.70.0"})],Et.prototype,"selectionLimit",2),m([y({manifest:{path:nn}}),N({since:"1.63.0"})],Et.prototype,"quickVariantSelection",2),m([y({flex:{controlId:Ii,controlType:r(()=>Nt.ControlType.SmartTable,"controlType"),createFlexChange:D}}),N({since:"1.26.0"})],Et.prototype,"useExportToExcel",2),m([y({flex:{controlId:Ii,controlType:r(()=>Nt.ControlType.SmartTable,"controlType"),createFlexChange:D}}),N({since:"1.50.0"})],Et.prototype,"exportType",2),m([y({manifest:{path:nn}}),N({since:"1.48.5"}),vn("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],Et.prototype,"createMode",2),m([y({manifest:{path:nn}}),N({since:"1.61.0"})],Et.prototype,"disableDefaultInlineCreateSort",2),m([qe("toolBar")],Et.prototype,"toolBar",2);var Oi=Et,Ei=class Ei extends Oi{};r(Ei,"ObjectPageResponsiveTable"),m([y({manifest:{path:Mn}})],Ei.prototype,"type",2),m([y({flex:{controlId:Ii,controlType:r(()=>Nt.ControlType.Table,"controlType"),createFlexChange:D}})],Ei.prototype,"includeItemInSelection",2),m([y({flex:{controlId:Ii,controlType:r(()=>Nt.ControlType.Table,"controlType"),createFlexChange:D},generate:he}),N({since:"1.52.0"})],Ei.prototype,"popinLayout",2),m([y({flex:{controlId:Ii,controlType:r(()=>Nt.ControlType.Table,"controlType"),createFlexChange:D}}),N({since:"1.16.0"})],Ei.prototype,"growingThreshold",2);var Fi=Ei,Tr=class Tr extends Oi{};r(Tr,"ObjectPageAnalyticalTable"),m([y({manifest:{path:Mn}})],Tr.prototype,"type",2),m([y({manifest:{path:nn}}),N({since:"1.67.0"})],Tr.prototype,"condensedTableLayout",2);var pp=Tr,vr=class vr extends Oi{};r(vr,"ObjectPageGridTable"),m([y({manifest:{path:Mn}})],vr.prototype,"type",2),m([y({manifest:{path:nn}}),N({since:"1.67.0"})],vr.prototype,"condensedTableLayout",2);var fp=vr,Sr=class Sr extends Oi{};r(Sr,"ObjectPageTreeTable"),m([y({manifest:{path:Mn}})],Sr.prototype,"type",2),m([y({manifest:{path:nn}}),N({since:"1.67.0"})],Sr.prototype,"condensedTableLayout",2);var up=Sr,zn=class zn{};r(zn,"GlobalTableSettings"),m([y({manifest:{path:no}}),N({since:"1.70.0"})],zn.prototype,"selectAll",2),m([y({manifest:{path:no}}),N({since:"1.78.0"})],zn.prototype,"variantManagement",2),m([y({manifest:{path:no}})],zn.prototype,"type",2),m([y({manifest:{path:no}}),N({since:"1.54.0"})],zn.prototype,"multiSelect",2),m([y({manifest:{path:no}}),N({since:"1.67.0"})],zn.prototype,"condensedTableLayout",2);var dp=zn;var ny=$(G());var cx=r((e,t,n,i,o)=>{let{actionId:a}=Ct(n),s=et(n[1],o);return`${e}${s}::action::${St(a).replace(":2f","::")}`},"getActionButtonId"),xr={controlId:cx,controlType:r(()=>ny.ControlType.Button,"controlType"),createFlexChange:D},Yn=class Yn{};r(Yn,"ObjectPageToolBarAction"),m([y({flex:xr,generate:he})],Yn.prototype,"visible",2),m([y({flex:xr})],Yn.prototype,"tooltip",2),m([y({flex:xr})],Yn.prototype,"icon",2),m([y({flex:xr})],Yn.prototype,"activeIcon",2),m([y({flex:xr})],Yn.prototype,"type",2);var gp=Yn;var ut=$(G());function yp(e,t,n,i){if(t.controlType===ut.ControlType.TableColumn||t.controlType===ut.ControlType.Button){let o=t.controlId.split("-"),a=o[o.length-1],s=t.controlType===ut.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],c=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",ut.VOCWITHCOLONS),l=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(l!=null&&l.startsWith("DataField")?l=l==null?void 0:l.replace("/",":2f"):l=l==null?void 0:l.replace("/","_"),l!==c&&n!==c)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}r(yp,"addFlexChangeToConfigTableColumn");function us(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(ut.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}r(us,"addFlexChangeToConfigTable");function ds(e,t,n,i,o="LineItems"){e.flex.forEach(a=>{var p,u,f,d,b;let s=Ot(a),c={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(u=s.content)!=null&&u.newBinding?s.content.newBinding:(f=s.content)==null?void 0:f.newValue,controlType:s.controlType,creation:s.creation},l;if(s.controlType===ut.ControlType.TableColumn)l=e.jsonSchema.definitions.TableColumn.properties[c.propertyId];else{let x=(!t.table.type||t.table.type===ut.v2.TableTypeV2.ResponsiveTable)&&!((d=c.controlId)!=null&&d.includes(ut.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(ut.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;l=(b=e.jsonSchema.definitions[`${x}<${o}>`])==null?void 0:b.properties[c.propertyId]}l&&yp(t.table,c,n,i)})}r(ds,"importFlexChangesOfColumn");function Zn(e){return e.replace("/","::")}r(Zn,"convertActionKey");function hp(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}r(hp,"convertSelector");function lx(e,t,n,i){var a,s,c,l;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((l=(c=i.definitions)==null?void 0:c.AnalyticalListPageFilterBar)==null?void 0:l.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}r(lx,"addSmartFilterBarFlex");function px(e,t){let n=Object.keys(t.definitions).filter(o=>o.startsWith(`${e}`)&&o.includes("<")),i=new Map;return n.forEach(o=>{var c;let a=St((c=o.split("<")[1])==null?void 0:c.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let l=a.split(":::"),p=l.find(d=>d.startsWith("sSemanticObject")),u=l.find(d=>d.startsWith("sAction")),f=u.split("sAction::")[1].replace(":2f","::");if(p){let d=`${p.split("::")[1]}::${f}`,b=`${l[0]}:::${p}:::${u}`;i.set(d,o),i.set(o,b)}else i.set(f,o),i.set(o,a)}else i.set(a.replace(":2f","::"),o),i.set(o,a)}),i}r(px,"filterActions");function fx(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}r(fx,"addColumnActionConfigPart");function ux(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}r(ux,"getActionId");function dx(e,t,n,i,o){[{name:"HeaderActionStandard",configPart:e.header.actions,id:o},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:o},{name:"FooterAction",configPart:e.footer.actions,id:o&&o.includes("Determining")&&o.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:o},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:o},{name:"TableColumnAction",configPart:e.table.columns,id:o}].forEach(s=>{var l,p;let c=px(s.name,i);if(c.has(s.id)){let u=c.get(s.id),f=(l=u.split("<")[1])==null?void 0:l.split(">")[0];s.name==="TableColumnAction"&&fx(s,e,f);let d=s.configPart[f];((p=i.definitions[u])==null?void 0:p.properties[t])&&d&&(d[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}r(dx,"addActionFlex");function gx(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=lt(e[ge.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[ge.PropertyName.chart],t):e[ge.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}r(gx,"addSmartChartFlex");function gs(e,t,n,i){var o,a;try{let s=Ot(t),c=s.content.property;if((o=s.controlId)!=null&&o.includes(ge.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(ge.PageTypeV2.AnalyticalListPage))switch(s.controlId=hp(s.controlId),s.controlType){case ge.ControlType.SmartFilterBar:{lx(e,c,s,n);break}case ge.ControlType.DynamicPage:{n.properties[c]&&(e[s.content.property]=s.content.newValue);break}case ge.ControlType.Button:{let l=ux(s);l&&dx(e,c,s,n,l);break}case ge.ControlType.SmartChart:{gx(e,c,s,n);break}default:break}}catch(s){J(i,{severity:ge.LogSeverity.Error,message:w.t("FLEXERROR")},...s)}}r(gs,"addFlex");function tt(e,t,n,i,o,a){if(!n)return;let s={},c=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let l in n.properties){let p=lt(e,l);if(p!=null&&p.manifest){let u=p.manifest.path([i],t,a);s=ze(t,u),ya(p,s,l,e),Gg(c,s,u,o)}}}r(tt,"transferSettingsOfObject");function ms(e,t){var o,a,s,c,l,p,u,f,d;let n=e[ge.ManifestSection.generic].pages[t],i=ge.v2.TableTypeV2.ResponsiveTable;return(o=e[ge.ManifestSection.generic].pages[t].component)!=null&&o.settings&&((s=(a=e[ge.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(c=e[ge.ManifestSection.generic].pages[t].component.settings)!=null&&c.tableType)?i=((u=(p=(l=n.component)==null?void 0:l.settings)==null?void 0:p.tableSettings)==null?void 0:u.type)||((f=n.component)==null?void 0:f.settings.tableType):((d=n.component)==null?void 0:d.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=ge.v2.TableTypeV2.AnalyticalTable),i}r(ms,"determineTableType");function iy(e,t,n,i,o,a,s){var c,l;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,u=JSON.parse(p.substr(1,p.length)),f=e.Text&&e.Text._attributes&&e.Text._attributes.text;f||(f=e.Label&&e.Label._attributes&&e.Label._attributes.text);let d={...(c=e._attributes)!=null&&c.id?{id:(l=e._attributes)==null?void 0:l.id}:{},...f?{text:f}:{},...u,...u.columnKey?{columnKey:u.columnKey}:{},...u.columnIndex?{columnIndex:Number(u.columnIndex)}:{},...u.leadingProperty?{leadingProperty:u.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(d.cellsFragmentName=s),o.table.columns.custom||(o.table.columns.custom=[]),o.table.columns.custom.push(d)}}r(iy,"evaluateFragmentColumn");function mx(e,t,n,i){let o;if(e===ge.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,c,l]=a.split("|");s===ge.ViewTemplateType.ResponsiveTableCellsExtension&&c===n&&l===i&&(o=t[a].fragmentName)}return o}r(mx,"determineCellsFragmentName");function yx(e,t,n,i,o,a,s){var c;if(e[0]){let p=JSON.parse((0,oy.xml2json)(e[0].fileContent,{compact:!0}))[sn];try{let u=Yo(p);if(u)if((c=t[ge.PropertyName.table])!=null&&c.columns||(t[ge.PropertyName.table].columns={}),Array.isArray(u))for(let f of u)iy(f,n,i,o,t,a,s);else iy(u,n,i,o,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}r(yx,"analyzeFilteredFragments");function hx(e,t,n,i,o){var a;for(let s of Object.keys(e)){let c=s.split("|"),[l,p]=c,u=c[2];if(l&&p===t){let f=e[s].type?e[s].type.toLowerCase():"xml",d=e[s].fragmentName;if(!d)continue;let b=mx(l,e,p,u),x=d.split(".");d=x[x.length-1]+ge.FRAGMENTNAMEPART+f;let I=i.fragments.filter(O=>O.dataSourceUri.endsWith(d));try{yx(I,n,e,s,u,l,b)}catch(O){i.logger.error(O.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(O=>{ds(i,n,O.id,O,o)})}}}r(hx,"processViewExtensions");function fo(e,t,n,i,o,a="LineItems"){var s,c,l;if(t.fragments&&(l=(c=(s=t.manifest[ge.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:c.extensions)!=null&&l["sap.ui.viewExtensions"]){let p=ge.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),u=t.manifest[ge.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!u)return;let f=o&&o.target?o.target:n.entitySet;hx(u,f,e,t,a)}}r(fo,"addFragments");function ys(e,t,n){if(e.header={actions:{}},n[ge.DefinitionName.HeaderActionsStandard]){let i=n[ge.DefinitionName.HeaderActionsStandard].properties;for(let o in i)e.header.actions[o]=t.createInstance(ge.PageTypeV2.ListReport,o,{})}}r(ys,"importHeaderActions");var pn=$(G());var Cr="sap.suite.ui.generic.template.ListReport";var ry="sap.suite.ui.generic.template.ListReport.view.ListReport";var Oe=$(G());function Ni(e,t,n){var o;let i;for(let a in e){let s=e[a];if(bn((o=s.component)==null?void 0:o.name)===Oe.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=Ni(s.pages,t,n),i))return n.unshift(a),i}}r(Ni,"findObjectPageV2");function uo(e,t){var n;for(let i in e){let o=e[i];if(bn((n=o.component)==null?void 0:n.name)===Oe.PageTypeV2.ListReport)return t.push(i),o}}r(uo,"findListReportPageV2");function go(e){if(!e.manifest[Oe.ManifestSection.generic]){J(e.logger,{severity:Oe.LogSeverity.Error,message:w.t("NOFE"),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}});return}let t=e.manifest[Oe.ManifestSection.generic].pages;if(!t){J(e.logger,{severity:Oe.LogSeverity.Error,message:w.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}});return}return t}r(go,"getV2Pages");function mo(e,t,n){var i;if(!e){J(t,{severity:Oe.LogSeverity.Error,message:w.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}});return}if(!e.entitySet){let o=(i=e.component)==null?void 0:i.name;J(t,{severity:Oe.LogSeverity.Error,message:w.t("NOENTITYSET",{pageName:o}),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}})}}r(mo,"checkV2Page");function yo(e,t,n){var i;for(let o in e){let a=e[o];if(t.push(o),bn((i=a.component)==null?void 0:i.name)===Oe.PageTypeV2.AnalyticalListPage)return a}J(n,{severity:Oe.LogSeverity.Error,message:w.t("NOALP"),location:{path:Oe.MANIFESTPATH,range:[Oe.ManifestSection.generic]}})}r(yo,"findAnalyticalListPage");function bp(e,t){let n=e.split("|");return Oe.v2.SectionPosition[n[0]]&&n[1]===t}r(bp,"isAssociatedCustomSection");function ay(e,t){let n=ze(e,`sap.ui5/extends/extensions/${Oe.v2.SAPUI5_VIEW_EXTENSION}/${Oe.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let o in n)bp(o,t)&&(i[o]=n[o]);return i}r(ay,"findCustomSectionExtensions");function bx(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}r(bx,"removeEmptySettingsOfFooter");function Tx(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let o in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[o]).length===0&&delete e.filterBar.selectionFields[o];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}r(Tx,"removeEmptySettingsOfFilterBar");function vx(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}r(vx,"removeEmptySettingsOfToolBar");function hs(e){vx(e),Tx(e),bx(e)}r(hs,"removeEmptySettings");var we=$(G());var cy=$(G());var Tp={};_r(Tp,{ANNOERR:()=>Mx,ANNOTATIONFILE:()=>kx,COMPONENTNOTDEFINED:()=>Ux,CONTEXTPATHCOULDNOTBERESOLVED:()=>Rx,ENTITYSETNOTFOUND:()=>Dx,FLEXERROR:()=>zx,INCONSISTENTSCHEMA:()=>iC,INVALIDANCHOR:()=>Yx,INVALIDSPECFORV4:()=>Cx,INVALIDTARGETDEFINITION:()=>eC,NOALP:()=>$x,NOBASEPATH:()=>Px,NOCHARTS:()=>Wx,NOENTITYSET:()=>Fx,NOENTITYTYPE4SET:()=>Nx,NOFE:()=>Ex,NOFRAGMENT:()=>Zx,NOGENERICSCHEMA:()=>Ix,NOID4SECTION:()=>tC,NOLINEITEMANDCHARTS:()=>Kx,NOLINEITEMS:()=>Hx,NOLR:()=>wx,NOPAGEFORENTITYSET:()=>Ox,NOPAGES:()=>Ax,NOPRESENTATIONVARIANT:()=>Lx,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>Vx,NOPRESENTATIONVARIANTFORSPV:()=>jx,NOROUTING:()=>Bx,NOROUTINGID:()=>qx,NOTARGET:()=>Xx,NOTARGETS:()=>Qx,NOTEMPLATE:()=>_x,NOUIANNOTATIONS:()=>Gx,NOVISUALIZATIONS:()=>Jx,TYPEERROR:()=>oC,UNKNOWNMINUI5VERSION:()=>xx,WRONGMINUI5VERSION:()=>Sx,XMLPARSEFAILURE:()=>nC,default:()=>rC});var Sx="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",xx="The minUI5Version can not be determined from the pattern {{- minUI5Version}}",Cx="The given specification version cannot be used for this app, you would need to upgrade to SAPUI5 version 1.84 or higher and update the version of @sap/ux-specification accordingly.",Px="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",Ax="No pages found in manifest for app with id '{{- appId}}'",Ex="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",Ix="No generic schema found while generating page schema for {{- pageType}}",Ox="No page found in manifest for entitySet '{{- entitySet}}'",Fx="No entitySet defined for page '{{- pageName}}'",Nx="No entityType could be found for the given entity set '{{- entitySetName}}'",Lx="No PresentationVariant defined for '{{- key}}'",Vx="No PresentationVariant found for default SelectionPresentationVariant",jx="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",Dx="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",Rx="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",wx="No page found in manifest for list report",$x="No page found in manifest for analytical list page",_x="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",Mx="Error while parsing annotation files",kx="Annotation file: '{{- file}}'",Ux="Component name is not defined for page '{{- pageName}}'",Bx="Incomplete manifest definition: no routing defined",Gx="No UI Annotation defined for entity type '{{- entityType }}'",Hx="UI.LineItem annotation has not been defined",Wx="UI.Chart annotation has not been defined",Kx="Neither UI.LineItem nor UI.Chart annotation has been defined",Jx="Empty Collection for Visualizations",Qx="Incomplete manifest definition: no targets defined",Xx="Invalid reference: annotation target '{{- target}}' not found",qx="No page found in manifest for routingId '{{- routingId}}'",zx="Error while parsing flex change",Yx="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",Zx="fragmentName is undefined for columnKey '{{- columnKey}}'",eC="Invalid routing target definition in manifest: '{{- target}}'",tC="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",nC="Parsing of XML file failed with error - {{- error}}",iC="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",oC="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",rC={WRONGMINUI5VERSION:Sx,UNKNOWNMINUI5VERSION:xx,INVALIDSPECFORV4:Cx,NOBASEPATH:Px,NOPAGES:Ax,NOFE:Ex,NOGENERICSCHEMA:Ix,NOPAGEFORENTITYSET:Ox,NOENTITYSET:Fx,NOENTITYTYPE4SET:Nx,NOPRESENTATIONVARIANT:Lx,NOPRESENTATIONVARIANTFORDEFAULTSPV:Vx,NOPRESENTATIONVARIANTFORSPV:jx,ENTITYSETNOTFOUND:Dx,CONTEXTPATHCOULDNOTBERESOLVED:Rx,NOLR:wx,NOALP:$x,NOTEMPLATE:_x,ANNOERR:Mx,ANNOTATIONFILE:kx,COMPONENTNOTDEFINED:Ux,NOROUTING:Bx,NOUIANNOTATIONS:Gx,NOLINEITEMS:Hx,NOCHARTS:Wx,NOLINEITEMANDCHARTS:Kx,NOVISUALIZATIONS:Jx,NOTARGETS:Qx,NOTARGET:Xx,NOROUTINGID:qx,FLEXERROR:zx,INVALIDANCHOR:Yx,NOFRAGMENT:Zx,INVALIDTARGETDEFINITION:eC,NOID4SECTION:tC,XMLPARSEFAILURE:nC,INCONSISTENTSCHEMA:iC,TYPEERROR:oC};function sy(e){e.addResourceBundle(e.language,"translation",Tp)}r(sy,"initI18n");function it(e="en"){w.init({resources:{en:{translation:cy.default}},lng:e,fallbackLng:"en",joinArrays:`
87
87
 
88
- `}),iy(w)}r(it,"initI18n");var bp={};$r(bp,{AnalyticalListPage:()=>Mt,ListReport:()=>Jt,ObjectPage:()=>dt,OverviewPage:()=>Re});var hs=M(W());var Mt=class{};r(Mt,"AnalyticalListPage"),m([y({flex:{controlId:ga,controlType:r(()=>hs.ControlType.DynamicPage,"controlType"),createFlexChange:R}})],Mt.prototype,"fitContent",2),m([qe("table")],Mt.prototype,"table",2),m([qe("template::SmartFilterBar")],Mt.prototype,"filterBar",2),m([qe("analyticalListPageChart")],Mt.prototype,"chart",2),m([qe("analyticalListFooter")],Mt.prototype,"footer",2),Mt=m([en({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:hs.v2.FE_TEMPLATE_V2_ALP})],Mt);var Cr=M(W());var Jt=class{};r(Jt,"ListReport"),m([y({flex:{controlId:ga,controlType:r(()=>Cr.ControlType.DynamicPage,"controlType"),createFlexChange:R}})],Jt.prototype,"fitContent",2),m([qe("listReportFilter")],Jt.prototype,"filterBar",2),m([qe("listReport")],Jt.prototype,"table",2),m([qe("listReportFooter")],Jt.prototype,"footer",2),Jt=m([en({id:Cr.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Cr.v2.FE_TEMPLATE_V2_LIST_REPORT})],Jt);var hp=M(W());var dt=class{};r(dt,"ObjectPage"),m([y({manifest:{path:r(t=>wt(t),"path")}}),N({since:"1.52.0"})],dt.prototype,"showConfirmationOnDraftActivate",2),m([y({manifest:{path:r(t=>wt(t),"path")}}),N({since:"1.52.1"})],dt.prototype,"hideChevronForUnauthorizedExtNav",2),m([y({manifest:{path:r(t=>wt(t),"path")}}),N({since:"1.48.0"})],dt.prototype,"allowDeepLinking",2),m([y({manifest:{path:r(t=>wt(t),"path")}}),N({since:"1.52.0"})],dt.prototype,"navToListOnSave",2),m([qe("header")],dt.prototype,"header",2),m([qe("sections")],dt.prototype,"sections",2),m([qe("layout")],dt.prototype,"layout",2),m([y({manifest:{path:r(t=>wt(t),"path"),import:r(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:vg}}),N({since:"1.71.0"})],dt.prototype,"globalTableSettings",2),dt=m([en({id:hp.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:hp.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],dt);var Re=class{};r(Re,"OverviewPage"),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"globalFilterModel",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"globalFilterEntityType",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"globalFilterEntitySet",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"showBasicSearch",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"disableErrorPage",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"smartVariantRequired",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"bHeaderExpanded",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"containerLayout",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"showDateInRelativeFormat",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"disableTableCardFlexibility",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"enableLiveFilter",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"enableLazyRendering",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"refreshStrategyOnAppRestore",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"considerAnalyticalParameters",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"refreshIntervalInMinutes",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"useDateRangeType",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"dataLoadSettings",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"resizableLayout",2),Re=m([en({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Re);var Tp=class Tp{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,o){let a=this.controls[o]?this.controls[o]:this.controls[n];return a||(a=this.pageTypes[t][o]?this.pageTypes[t][o]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};r(Tp,"MetadataFactory");var bs=Tp;var gt=M(W());var eC={},tC={Table:gi,ResponsiveTableWithMultiSelect:gi,ResponsiveTableWithInlineDelete:gi},nC={[gt.v2.CardSettingsType.listCardSettings]:Go,[gt.v2.CardSettingsType.analyticalCardSettings]:Ho,[gt.v2.CardSettingsType.stackCardSettings]:Wo,[gt.v2.CardSettingsType.linkListCardSettings]:Ko,[gt.v2.CardSettingsType.tableCardSettings]:Jo},iC={[gt.SAPUI5_VIEW_CLASS]:yr,[gt.SAPUI5_FRAGMENT_CLASS]:mr,Table:Ii,ObjectPageResponsiveTableWithMultiSelect:Ii,ObjectPageResponsiveTableWithInlineDelete:Ii},oC={[gt.PageTypeV2.AnalyticalListPage]:eC,[gt.PageTypeV2.ListReport]:tC,[gt.PageTypeV2.ObjectPage]:iC,[gt.PageTypeV2.OverviewPage]:nC},vp=class vp extends bs{constructor(){super(up,bp,oC)}};r(vp,"MetadataInstanceFactoryV2");var mt=vp;function rC(e,t,n,i,o){e.filterBar=t.createInstance(we.PageTypeV2.ListReport,we.DefinitionName.ListReportFilterBar,e.filterBar),tt(e.filterBar,n.manifest,i[we.DefinitionName.ListReportFilterBar],o,n.logger)}r(rC,"importFilterBar");function Sp(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,u,f;let c=Ot(s),l={controlId:c.controlId,propertyId:(p=c.content)==null?void 0:p.property,newValue:(u=c.content)!=null&&u.newBinding?c.content.newBinding:(f=c.content)==null?void 0:f.newValue,controlType:c.controlType,creation:c.creation};fs(n.table,l,t)});let i=t.properties.columns.$ref.split("/").pop(),o=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in o)s!=="custom"&&us(e,n,s)}r(Sp,"importFlexChangesOfTableAndColumns");function aC(e,t,n,i,o){var s;let a;e?a=i.jsonSchema.definitions[e+"<LineItems>"]:a=i.jsonSchema.definitions[Ji],tt(n.table,i.manifest,a,o,i.logger),Sp(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(c=>c!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&Q(i.logger,{severity:we.LogSeverity.Error,message:w.t("NOLINEITEMS")})}r(aC,"importTable");function sC(e,t,n,i){let o=e.jsonSchema.definitions,a=gs(e.manifest,i);if(t.table=n.createInstance(we.PageTypeV2.ListReport,a,t.table),ms(t,n,o),aC(a,o,t,e,i),t.table.toolBar=n.createInstance(we.PageTypeV2.ListReport,we.DefinitionName.ToolBar,{actions:{}}),tt(t.table.toolBar,e.manifest,o[we.DefinitionName.ToolBar],i,e.logger),o[we.DefinitionName.ActionsLR])for(let c in o[we.DefinitionName.ActionsLR].properties){let l=zn(c);t.table.toolBar.actions[l]=n.createInstance(we.PageTypeV2.ListReport,we.DefinitionName.Action),tt(t.table.toolBar.actions[l],e.manifest,o[we.DefinitionName.Action],i,e.logger)}rC(t,n,e,o,i),t.footer={actions:{}};let s=o[we.DefinitionName.FooterActionsLR];if(s)for(let c in s.properties){let l=zn(c);t.footer.actions[l]=n.createInstance(we.PageTypeV2.ListReport,we.DefinitionName.FooterAction),tt(t.footer.actions[l],e.manifest,o[we.DefinitionName.Action],i,e.logger)}}r(sC,"addSettings");function ry(e){if(it(),!fo(e))return;let n=new mt,i=n.createPageInstance(we.PageTypeV2.ListReport),o=[],a=po(e.manifest[we.ManifestSection.generic].pages,o);if(uo(a,e.logger,a==null?void 0:a.entitySet),!!a)return sC(e,i,n,o[0]),e.flex.forEach(s=>{Ot(s)&&ds(i,s,e.jsonSchema,e.logger)}),lo(i,e,a,we.PageTypeV2.ListReport),ys(i),i}r(ry,"createListReportConfig");var k=M(W());var Pr=require("@sap-ux/vocabularies-types/vocabularies/UI");var lC=[k.ControlType.Avatar,k.ControlType.ObjectPageLayout,k.ControlType.DynamicPage];function pC(e,t){let n=e[0].split("--"),i=n[n.length-1];if(e[0].indexOf("::action::")>=0||e[0].startsWith("action::"))t=n[0].split("::action::")[0]||n[0].split(`${Pr.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${k.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Pr.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let o=i.split("::");o.length>1?t=o[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}r(pC,"getSingleSelectorIdPart");function fC(e){let t,n=e.split(":::");if(n.length===1)t=pC(n,t);else if(e.indexOf("sSmartTableId")>=0){for(let i of n)if(i.startsWith("sSmartTableId")){t=i.split("sSmartTableId::")[1].split("::Table")[0].split("/responsiveTable")[0].replace(`::${Pr.UIAnnotationTerms.LineItem}`,`/@${Pr.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}r(fC,"getFacetID");function uC(e,t,n){let i={},o=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var c,l,p;try{let u=Ot(s),f=u&&((c=u.controlId)==null?void 0:c.split("--"))||[];if(u&&((l=f[0])!=null&&l.includes(k.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=f[0])!=null&&p.endsWith(t))){let d=f[1].replace(/:3a:3a/g,"::");o.exec(d)!==null&&(d=d.split("template:::TableColumn:::")[1]);let b=fC(d);d=gp(d).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${d}::${u.content.property}`]={controlId:d,propertyId:u.content.property,facetId:b,newValue:u.content.newBinding!==void 0?u.content.newBinding:u.content.newValue,controlType:u.controlType,creation:u.creation}}}catch(u){Q(n,{severity:k.LogSeverity.Error,message:w.t("FLEXERROR")},...u)}}),Object.entries(i).sort((s,c)=>s[1].creation-c[1].creation).reduce((s,[c,l])=>(s[c]=l,s),{})}r(uC,"prepareFlexChanges");var dC=r(e=>{var n,i,o;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(j,"");if((i=(n=e.properties)==null?void 0:n.subsections)!=null&&i.$ref)return t=e.properties.subsections.$ref,t=t.includes("<")?t.split("<")[0]:t,t.replace(j,"");if((o=e.properties)!=null&&o.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function gC(e,t,n,i){if(Object.keys(e.properties).some(o=>o===t.propertyId))for(let o in n)o!=="custom"&&dp(i,t,o)}r(gC,"addFlexChangeToColumns");function ay(e,t,n,i,o,a){var c;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(c=i.id)==null?void 0:c.replace(/::@com.sap.vocabularies/g,k.VOCWITHSLASH)];for(let l in e){let p=e[l],u=p.propertyId===t,f=t==="columns"&&p.controlType===k.ControlType.TableColumn;(u||f)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?gC(a,p,o.properties,n):fs(n,p,o))}}r(ay,"importFlexChangesOfTable");function mC(e,t){return e.facetId==="template"&&t}r(mC,"isStandardActionFlexChange");var sy=r((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),o=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,o);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function yC(e,t,n,i,o,a){var I;let s=!1,c=!1;a?(s=c=n.test(t.controlId),o&&(s=c&&i.test(t.controlId))):o&&(s=i.test(t.controlId));let l=t.controlId.split("::"),p=t.controlType===k.ControlType.GroupElement&&c,u=((I=t.facetId)==null?void 0:I.includes(k.ACTIONTITLEPREFIX))&&!o&&s,f=o&&sy(l,o.split("::"))&&s,d=e.title&&sy(l,e.title.split("::"),!0),b=!t.facetId&&lC.includes(t.controlType),x=mC(t,c);return p||u||f||d||b||x}r(yC,"matchSelector");function hC(e,t,n,i,o,a){var l;let s=new RegExp(`.*${a}`),c=new RegExp(`.*${o}`);for(let p in n){let u=n[p];if(u.propertyId!==i||u.controlType!==((l=e.properties[u.propertyId])==null?void 0:l[k.SchemaTag.controlType]))continue;yC(e,u,s,c,o,a)&&(t[i]=u.newValue)}}r(hC,"importFlexChanges");function bC(e,t,n,i){if(e&&t)for(let o in e){let a=t[o];a&&(Q(n.logger,{severity:k.LogSeverity.Warning,message:Ki(o,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[o])}}r(bC,"checkDeprecatedProperties");function TC(e,t,n,i,o,a,s){let c=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,l,p;s!=null&&s.title?(l=e.manifest.path(t,{},s.title),p=ze(n.manifest,l),Object.values(p).length===0&&(l=e.manifest.path(t,{},c),p=ze(n.manifest,l))):(l=e.manifest.path(t,{},c),p=ze(n.manifest,l));let u=e.manifest.import;if(u&&typeof u=="function"){let f=u(p,s==null?void 0:s.id);f!==void 0&&(i[o]=f)}else{let f=e.manifest.key||o;f in p&&(i[o]=p[f])}return bC(p,a,n,l),p}r(TC,"importManifestSetting");function yt(e,t,n,i,o,a){var l,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},c=e.jsonSchema.definitions.TableColumn;for(let u in n.properties||n){let f=lt(t,u);if(u==="columns"||f!=null&&f.flex)if((l=o==null?void 0:o.type)!=null&&l.startsWith("ObjectPageSectionTableV2")||(p=o==null?void 0:o.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(u==="columns"){let d=n.properties[u].$ref.split(j)[1],b=e.jsonSchema.definitions[d];ay(i.flexChanges,u,t,o,b,c)}else ay(i.flexChanges,u,t,o,n);else{let d=(o==null?void 0:o.title)||(o==null?void 0:o.id);hC(n,t,i.flexChanges,u,d,a)}else f!=null&&f.manifest&&TC(f,i.pageKeys,e,t,u,s,o)}}r(yt,"transferSettingsAndFlexChanges");function ly(e,t,n,i){let o=St(t);switch(e){case"FormAction":{o=`action::${o}::${i}::${n}`;break}case"ObjectPageFooterAction":{o=`action::${o}::Determining`;break}case"ObjectPageToolBarAction":{o=o.includes("sAction::")?`action::${o.split("sAction::")[1]}`:`action::${o.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{o=`${Wg}${o}`;break}case"ObjectPageFooterActionStandard":{o=`${ha}${o}`;break}}return o.replace(/@/g,"")}r(ly,"getActionId");function vC(e,t,n,i){var o;for(let a in t){let s=t[a].$ref.split(j)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let c=(o=t[a].$ref.split("<"))==null?void 0:o[1].split(">")[0],l=ly(s,a,"","");e.actions[a]=i.factory.createInstance(k.PageTypeV2.ObjectPage,c,{}),yt(n,e[k.PropertyName.actions][a],n.jsonSchema.definitions[c],i,{},l)}}}r(vC,"fillStandardActions");function Ts(e,t,n,i,o,a){var c;n[k.PropertyName.actions]={};let s=o.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let l={};a&&(l.id=a);for(let p in t){let u=zn(p),f=ly(s,u,o,a);f&&(n[k.PropertyName.actions][u]=i.factory.createInstance(k.PageTypeV2.ObjectPage,s),yt(e,n[k.PropertyName.actions][u],e.jsonSchema.definitions[s],i,l,f)),(c=n[k.PropertyName.actions])!=null&&c[u]&&Object.keys(n[k.PropertyName.actions][u]).length===0&&delete n[k.PropertyName.actions][u]}}vC(n,t,e,i),Object.keys(n[k.PropertyName.actions]).length===0&&delete n[k.PropertyName.actions]}r(Ts,"fillActions");function SC(e,t,n,i,o){var s;let a;i[t.id].form.fields={};for(let c in n){a=`${c}::GroupElement`,i[t.id].form.fields[c]=o.factory.createInstance(k.PageTypeV2.ObjectPage,"Field");let l=(s=t.title)!=null&&s.includes(k.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;yt(e,i[t.id].form.fields[c],e.jsonSchema.definitions[k.DefinitionName.Field],o,{},l),Object.keys(i[t.id].form.fields[c]).length===0&&delete i[t.id].form.fields[c]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}r(SC,"fillFields");function xC(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:i=n[`ObjectPageResponsiveTable<${t.id}>`],i}r(xC,"prepareTableSchema");function CC(e,t,n,i,o){var c,l;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||o.flexChanges){let p=((c=s==null?void 0:s.tableSettings)==null?void 0:c.type)||"ResponsiveTable",u=o.factory.createInstance(k.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=o.factory.createInstance(k.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][k.PropertyName.table]=u;let f=e.jsonSchema.definitions,d=xC(p,t,f);yt(e,i[t.id],t.schema,o,{title:t.title}),yt(e,i[t.id][k.PropertyName.table],d,o,t);let b=JSON.parse(JSON.stringify(f))[`Actions<${t.id}>`];if(b!=null&&b.properties){let x=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(l=t==null?void 0:t.id)==null?void 0:l.replace(/@/g,"::").replace(/::com/g,"com");Ts(e,b.properties,i[t.id][k.PropertyName.table].toolBar,o,"ObjectPageToolBarAction",x)}Object.keys(i[t.id][k.PropertyName.table].toolBar).length===0&&delete i[t.id][k.PropertyName.table].toolBar}}r(CC,"fillTableInConfig");function PC(e,t,n,i,o){let a=e.jsonSchema.definitions[t].properties.custom,s=a?ya(a.$ref):void 0;if(s){let c={key:t.replace("@",""),target:s};lo(n[t],e,i,k.PageTypeV2.ObjectPage,c,o)}}r(PC,"fillCustomColumnsInConfig");function AC(e,t,n,i,o){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=o.factory.createInstance(k.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][k.PropertyName.chart]=o.factory.createInstance(k.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||o.flexChanges)&&(yt(e,i[t.id],t.schema,o,{title:t.title}),yt(e,i[t.id][k.PropertyName.chart],e.jsonSchema.definitions[k.DefinitionName.ObjectPageChart],o,t))}r(AC,"fillChartSection");function EC(e,t,n,i){n[t.id]=i.factory.createInstance(k.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&yt(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}r(EC,"fillHeaderSection");function IC(e,t,n,i){var l;let o=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(k.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&yt(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${o}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(l=t==null?void 0:t.id)==null?void 0:l.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&Ts(e,a.properties,n[t.id].form,i,"FormAction",s);let c=e.jsonSchema.definitions[`SectionFields${o}`];c!=null&&c.properties&&SC(e,t,c.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}r(IC,"fillFormSection");function cy(e,t,n,i,o){var c;i[t.id]=o.factory.createInstance(k.PageTypeV2.ObjectPage,t.type,{subsections:{}}),o.flexChanges&&yt(e,i[t.id],t.schema,o,t);let a,s=t.schema.properties;(c=s==null?void 0:s.subsections)!=null&&c.properties?a=s.subsections.properties:a=s,xp(e,a,n,i[t.id].subsections,o),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}r(cy,"fillSubSection");function xp(e,t,n,i,o){var s;let a=e.jsonSchema.definitions;for(let c in t){let l=c.replace(/\/@/g,"::"),p={id:l,type:dC(t[c]),schema:t[c],title:Fc(t[c],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${c}>`],CC(e,p,n,i,o),PC(e,l,i,o.v2Page,c);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${c}>`],AC(e,p,n,i,o);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${c}>`],IC(e,p,i,o);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${c}>`],cy(e,p,n,i,o);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${c}>`],EC(e,p,i,o);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${c}>`],cy(e,p,n,i,o))}}r(xp,"fillSectionsInConfig");function OC(e,t,n,i,o){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(k.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(k.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),c=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];yt(o,s,c,n,{id:a}),t.sections.custom.push(s)}}}r(OC,"fillCustomSectionsInConfig");function FC(e,t){var u,f;let n=t.factory.createPageInstance(k.PageTypeV2.ObjectPage);yt(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(k.PageTypeV2.ObjectPage,k.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;yt(e,n.globalTableSettings,i[k.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(k.PageTypeV2.ObjectPage,k.DefinitionName.ObjectPageHeader);let o=i[k.DefinitionName.ObjectPageHeader]?i[k.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];yt(e,n.header,o,t);let a=i[k.DefinitionName.HeaderActions];a&&Ts(e,a.properties,n.header,t,"HeaderAction"),n.footer={};let s=i[k.DefinitionName.FooterActions];s&&Ts(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(k.PageTypeV2.ObjectPage,"ObjectPageLayout"),yt(e,n.layout,i[k.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let c=i[k.DefinitionName.HeaderSections];if(c){let d=(u=t.v2Page.component)==null?void 0:u.settings;xp(e,c.properties,d,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let l=i[k.DefinitionName.Sections];if(l){let d=(f=t.v2Page.component)==null?void 0:f.settings;xp(e,l.properties,d,n.sections,t)}let p=ny(e.manifest,e.entitySet);return OC(p,n,t,i,e),n}r(FC,"fillConfig");function vs(e){it();let t=fo(e);if(!t)return;let n=e.entitySet,i=[],o=Oi(t,e.entitySet,i);if(uo(o,e.logger,n),!o)return;let a=uC(e.flex,n),s=new mt;return FC(e,{pageKeys:i,flexChanges:a,v2Page:o,factory:s})}r(vs,"createObjectPageConfigV2");var sn=M(W());var Pp=M(tc());var Ae=M(W());var NC=["colorPalette","tabs"];function LC(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}r(LC,"createCard");function py(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),py(e,n.join("|"))}return t}r(py,"findAvailableId");function Ar(e,t,n,i,o,a,s){i!=null&&i.properties&&Cp(e,t,n,i.properties,o,a,s)}r(Ar,"transferManifestEntriesOVP");function Fi(e,t,n,i){return e.createInstance(Ae.PageTypeV2.OverviewPage,i,n,t)}r(Fi,"assignReflectMetadataRules");function VC(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split(j),o=e.appSchema.definitions[i[1]];t=Fi(e.factory,i[1],t,"CustomCard"),Ar(t,e.exportResults,e.appSchema,o,e.factory,[...e.pathHierarchy])}return t}r(VC,"processAnyOfDefinitionsOfOVP");function jC(e,t,n,i,o){e&&typeof e=="function"?e(t,n,i):typeof o=="object"&&!NC.includes(i)?t[i]=(0,Pp.default)(t[i]||{},o||{},{arrayMerge:Ec}):t[i]=o}r(jC,"checkSyncRuleForExport");function DC(e,t,n,i,o,a){let s=e.manifest.path([...t,n]),c=ze(i.manifest,s);if(n in Ae.v2.CardSettingsType||n==="settings")c.settings=(0,Pp.default)(c.settings||{},o||{},{arrayMerge:Ec});else if(o!==void 0){let l=e.manifest.export;jC(l,c,a,n,o)}else c[n]!==void 0&&delete c[n]}r(DC,"transferToManifest");function RC(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(Ae.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(o=>{var s;let a=(s=e.appSchema.definitions[o].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=Fi(e.factory,i[0],e.currentObject[t],"CustomCard"),LC(t,e.exportResults.manifest[Ae.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Ae.ChangeIndicator.Updated,Ar(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[Ae.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[Ae.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=Ae.ChangeIndicator.Updated)})}r(RC,"transferCards");function wC(e,t){if(t==="cards")RC(e);else{let n=Dn(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,Ae.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split(j);e.currentObject=Fi(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],Ar(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],Cp(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],e.factory,e.pathHierarchy,e.entityPathArray)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],Cp(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}r(wC,"exportOfObject");function Cp(e,t,n,i,o,a,s){for(let c in i){if(c==="description"||s&&a&&s[a.length]!==c&&!Sc(a,s)&&a[a.length-1]!=="anyOf")continue;let l=e[c],p=lt(e,c),u={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:l,configObject:e,factory:o,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(u.currentObject=e[a[a.length-2]],l=VC(u)):l&&typeof l=="object"&&i[c]&&wC(u,c),p!=null&&p.manifest&&DC(p,a,c,t,l,e)}}r(Cp,"processProperties");function $C(e,t,n,i,o,a,s){let c;t.length===0?c=["page"]:c=t;let l=n.flex.controlId(e.baseId,i,c,n.flex.controlType,o),p=_g(a,n,e.ui5Version,s,l),u=JSON.parse(JSON.stringify(e.exportResults.manifest));u["sap.app"].id=e.appId;let f=n.flex.createFlexChange(p,u);e.exportResults.flexChanges.find(b=>{let x=!1,I=JSON.parse(b);I={content:I.content,selector:I.selector};let O=JSON.parse(f);return O={content:O.content,selector:O.selector},JSON.stringify(I)===JSON.stringify(O)&&(x=!0),x})||e.exportResults.flexChanges.push(f)}r($C,"evaluateFlexRule");function _C(e,t,n,i,o,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=Ae.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,o,a):s!==!1&&(n[a]=i[o]),e.exportResults.manifestChangeIndicator=Ae.ChangeIndicator.Updated}}r(_C,"exportConfigValueToManifest");function MC(e,t,n,i,o){let a=ze(e.exportResults.manifest,t),s=n.manifest.key||i;if(o[i]!==void 0)_C(e,n,a,o,i,s);else{let c=n.manifest.delete;c&&typeof c=="function"?c(a,o,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=Ae.ChangeIndicator.Updated,Lo(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}r(MC,"evaluateManifestRule");function kC(e,t,n,i,o){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},o!=null&&o.startsWith(Ae.FACETTITLEPREFIX)?o.split(Ae.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}r(kC,"getManifestPathOfSections");function UC(e,t,n,i,o){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,o.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}r(UC,"getManifestPathOfTable");function BC(e,t,n,i,o){let a;return t[0]===Ae.PropertyName.sections?a=kC(t,a,n,e,o):t[0]===Ae.PropertyName.table?a=UC(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,o):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}r(BC,"getManifestPath");function GC(e,t,n,i,o,a,s){if(!t)return;let c=i.indexOf("subsections");for(;c>-1;)i.splice(c-1,2),c=i.indexOf("subsections");if(t.flex)$C(e,i,t,o,a,n,s);else if(t.manifest){let l=BC(e,i,t,n,a);MC(e,l,t,s,n)}}r(GC,"evaluateExportRule");function HC(e,t,n){var s;let i=e.split("|"),o=i[1],a=i[2];if(o===t.entitySet){let c=(s=t.config)==null?void 0:s.filter(l=>(l.tabKey===a||a===void 0&&l.tabKey===""||a&&t.sectionKey===a)&&l.extensionType===t.extensionType);if((!c||c.length===0)&&(Va(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Ae.ViewTemplateType.ResponsiveTableColumnsExtension))){let l=e.replace(Ae.ViewTemplateType.ResponsiveTableColumnsExtension,Ae.ViewTemplateType.ResponsiveTableCellsExtension);Va(n,l,t.appId,t.exportResults.fragments),delete n[l]}}}r(HC,"deleteObsoleteColumn");function WC(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=Tm(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let o in n)o.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Ae.ChangeIndicator.Updated,HC(o,e,n))}r(WC,"deleteObsoleteColumnsFromFragment");function KC(e,t,n,i,o){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:c,viewTemplateType:l}=ja(n,i,s.tabKey||o,s.extensionType);a[c]||(a[c]={viewTemplateType:l,columns:[]}),a[c].columns.push(s)}return a}r(KC,"clusterConfigColumnsByPath");function fy(e,t,n,i){if(!e.v2Page)return;let o=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let c in Ae.v2.TableColumnExtensionTypeV2){let{path:l}=ja(e.v2Page,s,o,c);if(!l)continue;let p={path:l,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:o,extensionType:c,appId:e.appId};try{WC(p)}catch(u){e.logger.error(u.message)}}if(t){let c=KC(t,n,e.v2Page,s,o);for(let l in c)al(e.exportResults,l,c[l].columns,e.appId,c[l].viewTemplateType,e.logger)}}r(fy,"transferColumnExtensions");function JC(e,t,n,i,o,a){let s=[],c=n.split("|")[1];if(!t)return;for(let p of t){let u=py(s,[p.relativePosition,c,p.relatedFacet].join("|"));s.push(u)}for(let p=0;p<s.length;p++){let f=a.anyOf.find(b=>{var x;return(x=b.$ref)==null?void 0:x.includes(t[p].constructor.name)}).$ref.split(j),d=e.appSchema.definitions[f[f.length-1]];Yn(e,t[p],i,[...o,s[p]],d)}let l=ze(e.exportResults.manifest,$c());for(let p in l)mp(p,c)&&!s.includes(p)&&delete l[p]}r(JC,"transferManifestExtensions");function QC(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Ae.PropertyName.table){n=e[i-1];break}return et(n,t)}r(QC,"getSectionId");function XC(e,t,n,i,o,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(c=>{let l=Dn(t.appSchema,n,e[c],s.additionalProperties,i,t.factory,t.pageType);Yn(t,l.configObject,o,[...a,i],l.targetDefinition,c)})}r(XC,"transferIndexTable");function qC(e,t,n,i,o,a){let s,c=ya(e.$ref);c&&(s={target:c,key:QC(t,n)}),fy(i,o==null?void 0:o.custom,a.targetDefinition,s)}r(qC,"transferCustomColumns");function zC(e,t,n,i,o,a,s){e.anyOf.forEach(c=>{let l=Dn(t.appSchema,n,i,c,o,t.factory,t.pageType);l&&Yn(t,l.configObject,a,[...s,o],l.targetDefinition,l.title)})}r(zC,"handleAnyOfDefinitions");function YC(e,t,n,i,o,a,s){let c=e.propertyDefinition;if((c==null?void 0:c.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&o==="custom")JC(e,n[o],e.pageKeys[e.pageKeys.length-1],i,[...t,o],c==null?void 0:c.items);else if(a&&o==="custom"){qC(c,t,s,e,n,a);return}else a?Yn(e,a.configObject,i,[...t,o],a.targetDefinition,a.title):c.anyOf&&zC(c,e,s,n==null?void 0:n[o],o,i,t)}r(YC,"transferComplexProperty");function Yn(e,t,n,i,o,a){let s;if(o!=null&&o.properties)for(let c in o.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==c&&!Sc(i,e.entityPathArray))continue;s=t==null?void 0:t[c];let l=t&&Ag(t,c),p=l?[...n,l]:n,u=lt(t,c),f=e.propertyDefinition=o.properties[c],d=e.nextDefinition=Dn(e.appSchema,a,s,f,c,e.factory,e.pageType);if(GC(e,u,t,[...i],p,a,c),XC(s,e,a,c,p,i),s===void 0||typeof s=="object")YC(e,i,t,p,c,d,a);else if((f==null?void 0:f.$ref)===j+"TableCustomColumns"){fy(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}r(Yn,"transferManifestEntriesAndFlexChange");function uy(e,t,n,i,o,a){let s=t[t.length-1],c=e.jsonSchema.definitions[s];n[i]=Fi(o,i,n[i],s),a.push(i),Ap(o,n[i],e,c.properties,a)}r(uy,"transferSettingsOfRef");function ZC(e,t,n,i,o,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split(j);uy(i,s,e,t,o,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let c=`${j}${sn.v2.cardTemplateSettingsMap[e.template]}`.split(j);uy(i,c,e,t,o,a)}}r(ZC,"processPropertiesOfObject");function eP(e,t,n,i,o,a){let s=lt(e,t);if(s!=null&&s.manifest){let c=s.manifest.path([...n,t]),l=ze(i.manifest,c);if(Object.prototype.hasOwnProperty.call(l,t))try{ma(s,l,t,e)}catch(p){Q(i.logger,{severity:sn.LogSeverity.Error,message:w.t("XMLPARSEFAILURE",{error:mg(p)}),location:{path:c}})}}else t!=="cards"&&t!=="$schema"&&typeof o[t]=="object"&&ZC(e,t,o,i,a,n)}r(eP,"processOvpProperty");function Ap(e,t,n,i,o){for(let a in i)eP(t,a,o,n,i,e)}r(Ap,"processOvpProperties");function tP(e,t,n){Ap(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[sn.ManifestSection.ovp].cards).forEach(i=>{let o=t.manifest[sn.ManifestSection.ovp].cards[i].template,a=sn.v2.cardTemplateTypeMap[o]??"CustomCard";e.cards[i]=Fi(n,a,{},"CustomCard"),e.cards=Fi(n,a,e.cards,"CustomCard"),Ap(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}r(tP,"addSettings");function Ss(e){let t=new mt,n=t.createPageInstance(sn.PageTypeV2.OverviewPage);return e.jsonSchema&&tP(n,e,t),n}r(Ss,"createOverviewPageConfig");var je=M(W());function nP(e,t,n,i){var p,u;let o=gs(e.manifest,i),a=e.jsonSchema.definitions;ms(t,n,a),t.table=n.createInstance(je.PageTypeV2.AnalyticalListPage,`ALP${o}`,t.table);let s=a[`ALP${o}<LineItems>`];if(tt(t.table,e.manifest,s,i,e.logger),Sp(e,s,t),t.table.toolBar=n.createInstance(je.PageTypeV2.AnalyticalListPage,je.DefinitionName.ToolBar,{actions:{}}),tt(t.table.toolBar,e.manifest,a[je.DefinitionName.ToolBar],i,e.logger),a[je.DefinitionName.ActionsLR])for(let f in a[je.DefinitionName.ActionsLR].properties){let d=zn(f);t.table.toolBar.actions[d]=n.createInstance(je.PageTypeV2.AnalyticalListPage,je.DefinitionName.Action),tt(t.table.toolBar.actions[d],e.manifest,a[je.DefinitionName.Action],i,e.logger)}t.filterBar=n.createInstance(je.PageTypeV2.AnalyticalListPage,je.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),tt(t.filterBar,e.manifest,a[je.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),t.chart=n.createInstance(je.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),tt(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let c=a[je.DefinitionName.FooterActionsLR];if(c)for(let f in c.properties){let d=zn(f);t.footer.actions[d]=n.createInstance(je.PageTypeV2.AnalyticalListPage,je.DefinitionName.FooterAction),tt(t.footer.actions[d],e.manifest,a[je.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let l=(u=(p=e.manifest[je.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:u.keyPerformanceIndicators;l&&Object.keys(l).forEach(f=>{t.keyPerformanceIndicators[f]=n.createInstance(je.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(je.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),tt(t.keyPerformanceIndicators[f],e.manifest,a.KPISettings,i,e.logger,f)})}r(nP,"addSettings");function xs(e){if(it(),!fo(e))return;let n=new mt,i=n.createPageInstance(je.PageTypeV2.AnalyticalListPage),o=[],a=go(e.manifest[je.ManifestSection.generic].pages,o,e.logger);if(uo(a,e.logger,a==null?void 0:a.entitySet),!!a)return nP(e,i,n,o[0]),e.flex.forEach(s=>{Ot(s)&&ds(i,s,e.jsonSchema,e.logger)}),lo(i,e,a,je.PageTypeV2.AnalyticalListPage),ys(i),i}r(xs,"createAnalyticalListPageConfig");var Lt=M(W());var iP=["filterBar","table","footer"];function Ep(e,t,n,i){Sa(e,n,"QuickVariant"),pm(n,"QuickVariantX",t),fm(i,n,"QuickVariantX")}r(Ep,"addEnumForVariantPaths");function dy(e,t){var u,f,d,b,x,I,O;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=j+Ji,n.properties.table.anyOf[1].$ref=j+Vo,n.properties.table.anyOf[2].$ref=j+jo,n.properties.table.anyOf[3].$ref=j+Do;let i=JSON.parse(JSON.stringify(n.definitions.ResponsiveTable)),o=JSON.parse(JSON.stringify(n.definitions.TreeTable)),a=JSON.parse(JSON.stringify(n.definitions.AnalyticalTable)),s=JSON.parse(JSON.stringify(n.definitions.GridTable)),c={$ref:j+Lt.DefinitionName.LineItems};i.properties.columns=c,o.properties.columns=c,a.properties.columns=c,s.properties.columns=c;let l=j+Lt.DefinitionName.ToolBarLR;n.definitions[Ji]=i,n.definitions[Ji].properties.toolBar.$ref=l,n.definitions[Vo]=o,n.definitions[Vo].properties.toolBar.$ref=l,n.definitions[jo]=a,n.definitions[jo].properties.toolBar.$ref=l,n.definitions[Do]=s,n.definitions[Do].properties.toolBar.$ref=l;let p=(u=e.entitySet)==null?void 0:u.entityType;if(!p)(f=e.entitySet)!=null&&f.name&&Q(e.logger,{severity:Lt.LogSeverity.Error,message:w.t("NOENTITYTYPE4SET",{entitySetName:(d=e.entitySet)==null?void 0:d.name})});else{qi(n);let $=(x=(b=p==null?void 0:p.annotations)==null?void 0:b.UI)==null?void 0:x.LineItem;$&&Gg.forEach(J=>{n.definitions[J][Lt.SchemaTag.annotationPath]=Gt(p==null?void 0:p.fullyQualifiedName,$.term,$.qualifier)}),Qi(!1,n,$,p);let re=(O=(I=p==null?void 0:p.annotations)==null?void 0:I.UI)==null?void 0:O.SelectionFields;Ta(n,re,p);let q=[],te=po(e.manifest[Lt.ManifestSection.generic].pages,q);if(!te)return Q(e.logger,{severity:Lt.LogSeverity.Error,message:w.t("NOLR"),location:{path:Lt.MANIFESTPATH,range:[Lt.ManifestSection.generic]}}),n;Xi(n,p,te,e.manifest,e.fragments),Ep(p,e.entitySet,n,e.serviceAVT),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return Hi(n,iP),n}r(dy,"generateListReportSchemaV2");var Y=M(W());var Er=r(e=>({flexChanges:[],manifest:{[Y.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:Y.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:Y.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function gy(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===Y.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(Y.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(Y.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}r(gy,"getClassesForSingleSection");function my(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],gy(n,i,t),my(n,t)}}r(my,"getSubsectionClasses");function oP(e,t,n){let i;for(let o in e.sections)i=t.sections[o],gy(i,o,n),my(i,n)}r(oP,"getExportClassesForSections");function rP(e,t){let n=po(t.manifest[Y.ManifestSection.generic].pages,e);if(!n){Q(t.logger,{severity:Y.LogSeverity.Error,message:w.t("NOLR"),location:{path:Y.MANIFESTPATH,range:[Y.ManifestSection.generic]}});return}if(!n.component){Q(t.logger,{severity:Y.LogSeverity.Error,message:w.t("COMPONENTNOTDEFINED",{pageName:Y.PageTypeV2.ListReport}),location:{path:Y.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}r(rP,"findV2Page");function Ip(e,t){let n=Eg(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}r(Ip,"calculateBaseId");function yy(e,t,n=!1){let i=Er(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let o=e.page.config;if(o&&Object.keys(o).length!==0){let a=[],s=rP(a,e),c=new mt,l=c.createPageInstance(Y.PageTypeV2.ListReport,o),p={v2Page:s,exportResults:i,appId:e.appId,baseId:Ip(l,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:a,pageType:Y.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Yn(p,l,[],[],e.jsonSchema)}return i}r(yy,"exportListReportPage");function hy(e,t,n=!1){let i=e.page.config,o=Er(e.fragments);o.flexChanges=[],o.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=go(e.manifest[Y.ManifestSection.generic].pages,a,e.logger);if(!s)return o;if(s.component.settings||(s.component.settings={}),o.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let c=new mt,l=c.createPageInstance(Y.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:o,appId:e.appId,baseId:Ip(l,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:a,pageType:Y.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Yn(p,l,[],[],e.jsonSchema)}return o}r(hy,"exportAnalyticalListPage");function by(e,t,n=!1){let i=e.page.config,o=e.page.entitySet,a=Er(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],c=Oi(e.manifest[Y.ManifestSection.generic].pages,o,s);if(!c)return Q(e.logger,{severity:Y.LogSeverity.Error,message:w.t("NOOBJECTPAGE",{entitySetName:o}),location:{path:Y.MANIFESTPATH,range:[Y.ManifestSection.generic]}}),a;let l=new mt,p=l.createPageInstance(Y.PageTypeV2.ObjectPage,i);if(i.sections&&oP(i,p,l),Object.keys(i).length!==0){let u={v2Page:c,exportResults:a,appId:e.appId,baseId:Ip(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:s,pageType:Y.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Yn(u,p,[],[],e.jsonSchema)}}return a}r(by,"exportObjectPage");var Ty=r(e=>{let t=Er();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new mt,i=n.createPageInstance(Y.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Ar(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),aP=r((e,t,n)=>{var s;let i=Er();i.manifest=JSON.parse(JSON.stringify(t));let o=Object.assign(new Ca,e);o.settings=Object.assign(new wn,e.settings);for(let c in n.definitions.AppSettings.properties){let l=lt(o.settings,c);if(l&&l.manifest){let p=l.manifest.path(),u=ze(i.manifest,p);e.settings&&e.settings[c]!==void 0?u[c]=e.settings[c]:(delete u[c],Lo(i.manifest,p,!1))}}let a=(s=i.manifest[Y.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&wc(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function vy(e,t){if(e[Y.SchemaType.ListReport])return Fp(e[Y.SchemaType.ListReport],t);if(e[Y.SchemaType.ObjectPage])return by(e[Y.SchemaType.ObjectPage],t);if(e[Y.SchemaType.OverviewPage])return Ty(e[Y.SchemaType.OverviewPage]);if(e[Y.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:o}=e[Y.SchemaType.Application];return aP(n,i,o)}else if(e[Y.SchemaType.AnalyticalListPage])return hy(e[Y.SchemaType.AnalyticalListPage],t)}r(vy,"exportPageV2");function Op(e,t,n=!1){if(e[Y.SchemaType.ListReport])return Fp(e[Y.SchemaType.ListReport],t,n);if(e[Y.SchemaType.ObjectPage])return by(e[Y.SchemaType.ObjectPage],t,n);if(e[Y.SchemaType.OverviewPage])return Ty(e[Y.SchemaType.OverviewPage]);if(e[Y.SchemaType.AnalyticalListPage])return hy(e[Y.SchemaType.AnalyticalListPage],t,n)}r(Op,"exportConfigEntityByPathV2");var Nn=M(W());var As=M(W());var Cs=M(W());function mo(e,t=!0,n=[]){let i=[Cs.ManifestSection.generic];return e.forEach(function(o){i.push("pages"),i.push(o)}),t&&(i.push("component"),i.push("settings")),i.concat(n)}r(mo,"getManifestPathFromPagePath");function cn(e,t,n){let i=e,o=t.every(function(a){return!i||typeof i!="object"||Array.isArray(i)&&typeof a!="number"?!1:(i=i[a],!0)})&&typeof i=="object"&&i!==null;return{hasPath:o,value:o&&n?i[n]:void 0,parent:o?i:void 0}}r(cn,"getManifestPropertyByPath");function Fn(e){return e!==null&&typeof e=="object"}r(Fn,"isDefinition");function Ps(e,t,n,i,o,a,s){let c=n[Cs.SchemaTag.conversionExit],l=c==null?void 0:c.name,p=t?t(l):void 0;if(!p)return i;let u=c.params;return e?p.appToConfig(i,u,o??[],n,s):p.configToApp(i,u,o??[],n,a)}r(Ps,"executeConversionExit");function Np(e,t,n,i="string",o=!1){let a;if(e===void 0)a=o;else if(e===null||typeof e!="object")a=!0;else{let s=e[t];s===void 0?a=o:a=typeof s!==i||s===null&&o}return a&&Q(n,{severity:As.LogSeverity.Error,message:w.t("TYPEERROR",{propertyName:t,expectedType:i})}),a}r(Np,"hasPropertyTypeError");var KL=Symbol("Property is suppressed without explanation");function xy(e,t){e.anyOf&&e.anyOf.forEach(function(n){Ni(n,t)})}r(xy,"addAnyOfToReferredTypes");function Is(e){return typeof e.items!="object"||Array.isArray(e.items)?void 0:e.items}r(Is,"getSingleItem");function Ni(e,t){if(typeof e!="object")return;let n=bn(e);n&&Cy(n,t),xy(e,t),Ni(e.additionalProperties,t),Ni(Is(e),t)}r(Ni,"addReferredTypesFromElement");function Cy(e,t){t.referredTypeNames.add(e);let n=t.types[e];Ni(n,t);let i=n.properties;i?Object.values(i).forEach(o=>Ni(o,t)):Ni(Is(n),t),Ni(n.additionalProperties,t)}r(Cy,"addReferredTypesFromType");function Es(e,t,n,i,o){if(typeof t!="object")return;let a=bn(t);if(a){let s=o.types[a];if(s||(s=e==null?void 0:e.refTypeDefinition,o.types[a]=s),e){let c;if(e.suffix){let p=`${a}<${e.suffix}>`;t.$ref=hg(p),c=structuredClone(s),o.types[p]=c,o.referredTypeNames.add(p)}else o.referredTypeNames.add(a),c=s;let l={pageInfo:i.pageInfo,specificParams:e.specificParams||i.specificParams};Lp(n,l,e.syncRuleProvider,c,o)}else Cy(a,o)}else Lp(n,i,e==null?void 0:e.syncRuleProvider,t,o)}r(Es,"applyAdaptationInfoToElement");function Sy(e,t,n,i){let o=i==null?void 0:i.elementAdapter;return o?o(n,t,e):{}}r(Sy,"applySyncRuleToElement");function Lp(e,t,n,i,o){var d,b;let a=Cg(n),s=Sy(e,t,i,a);if(!s)return;Es(s.additionalPropertiesAdaptation,i.additionalProperties,e,t,o);let c={pageInfo:t.pageInfo,specificParams:((d=s.referenceAdaptation)==null?void 0:d.specificParams)||t.specificParams},l=i.properties,p;if(l)p=l;else{let x=Is(i);if(x)l={items:x},p=i;else return}let u,f=((b=s.referenceAdaptation)==null?void 0:b.processingRuleProvider)||function(x,I){u=u||n&&new n;let O=lt(u,x);return Sy(e,c,I,O)};for(let x in l){let I=l[x];if(typeof I!="object"){p[x]=I;continue}let O={...I},$=f(x,O);$?($.controlId?O[Nn.SchemaTag.controlId]=`${t.pageInfo.controlId}--${$.controlId}`:$.manifestPath&&(O[Nn.SchemaTag.artifactType]="Manifest",O[Nn.SchemaTag.manifestPath]=$.manifestPath),xy(O,o),Es($.referenceAdaptation,O,e,c,o),Es($.additionalPropertiesAdaptation,O.additionalProperties,e,c,o),Es($.itemsAdaptation,Is(O),e,c,o),p[x]=O):delete p[x]}}r(Lp,"adjustElement");function sP(e,t,n){let i=t.split("."),o=i[i.length-1],a=t+".view."+(o==="ObjectPage"?"Details":o);return`${e}::${a}::${n}`}r(sP,"getViewId");function Py(e,t,n){var te;it();let i=si(e.manifest,Nn.FioriElementsVersion.v2,n);if(!i||i===Nn.TemplateType.OverviewPageV2)return;let o=mo(e.pagePath,!1),{parent:a}=cn(e.manifest,o);if(!a)return;let s=a.component;if(Np(a,"entitySet",n,"string",!0)||Np(s,"name",n,"string",!0))return;let c=a.entitySet,l=s.name,p=t(l),u=p==null?void 0:p.genericSchema,f=p==null?void 0:p.syncRuleProvider;if(!f||!u)return u;let d=e.parsedAnnotations||ai(e.annotations,n),b=(te=d==null?void 0:d.entitySets)==null?void 0:te.find(J=>J.name===c);if(!b)return u;let x=structuredClone(u),I=sP(e.appId,l,c),$={pageInfo:{appId:e.appId,componentName:l,entitySet:c,controlId:I,pagePath:e.pagePath}},re={templateType:i,manifest:e.manifest,serviceAVT:d,fioriElementsVersion:Nn.FioriElementsVersion.v2,entitySet:b,fragments:e.fragments,logger:n,entityType:b.entityType},q={types:x.definitions,referredTypeNames:new Set};Lp(re,$,f,x,q);for(let J in x.definitions)q.referredTypeNames.has(J)||delete x.definitions[J];return x}r(Py,"getAdaptedSchema");var Ay=M(W());var ln=class{};r(ln,"ListReportNew"),m([y({flex:{controlType:r(()=>Ay.ControlType.DynamicPage,"controlType"),createFlexChange:R},elementAdapter(){return{controlId:"page"}}})],ln.prototype,"fitContent",2),ln=m([en({id:ty,pageId:xr}),y({elementAdapter(e,t,n){let i=mo(t.pageInfo.pagePath),{entityType:o,uIAnnotations:a}=Zg(n),{value:s}=cn(n.manifest,i);return{referenceAdaptation:{specificParams:{settings:s,entityType:o,uIAnnotations:a}}}}})],ln);var Rp=require("path"),jy=require("fs");var Vt=M(W());function cP(e){let t={};return e.flex.forEach(function(i){let o=Ot(i);if(o){let a=o,s=t[a.controlId]||[];s.push(a),t[a.controlId]=s}}),t}r(cP,"getChangeMapFormImportParameters");function Vp(e,t,n,i,o){if(e===void 0)return;let a=bn(t),s=a?n[a]:void 0;if(t[Vt.SchemaTag.conversionExit]&&(e=Ps(!0,o.conversionExitProvider,t,e,i.fragments,void 0,i.logger),!s))return e;if(s)return Vp(e,s,n,i,o);if(t.type==="object"&&t.properties&&typeof e=="object"){let c={},l=!1;for(let p in t.properties){let u=t.properties[p],f=Vp(e[p],u,n,i,o);f!==void 0&&(l=!0,c[p]=f)}return l?c:void 0}return t.type==="array"&&!Array.isArray(e)?typeof e=="string"&&e!==""?e.split(","):void 0:e}r(Vp,"getConfigRep");function Ey(e,t,n,i,o,a,s,c){let l=Vp(o,a,s,c,t);if(l===void 0)return;let p=e,u=[];n.forEach(function(f){u.push(f);let d=f.propertyName;p[d]=p[d]||t.propertyInstanceProvider(u),p=p[d]}),p[i]=l}r(Ey,"transferValueToConfig");function lP(e,t,n,i,o,a,s,c){let l=o[Vt.SchemaTag.controlId],p=c[l];if(!p)return;let u=-1,f=p.find(function(d,b){return d.content.property===i?(u=b,!0):!1});f&&(Ey(e,t,n,i,f.type==="propertyBindingChange"?f.content.newBinding:f.content.newValue,o,a,s),p.length===1?delete c[l]:p.splice(u,1))}r(lP,"importFlexChangesToConfigProperty");function pP(e,t,n,i,o,a,s){let c=o[Vt.SchemaTag.manifestPath],l,p;Array.isArray(c)?(p=c,l=!0):(p=c.path,l=c.addTargetPropertyToPath);let{hasPath:u,value:f,parent:d}=cn(s.manifest,p,l?i:void 0);if(!u)return;Ey(e,t,n,i,l?f:d,o,a,s)}r(pP,"importManifestToConfigProperty");function Iy(e,t,n,i,o,a,s){if(Fn(n.properties))for(let c in n.properties){let l=n.properties[c];if(!Fn(l))continue;let p=l[Vt.SchemaTag.artifactType];if(p===Vt.ArtifactType.FlexChange)lP(e,t,i,c,l,o,a,s);else if(p===Vt.ArtifactType.Manifest&&l[Vt.SchemaTag.manifestPath])pP(e,t,i,c,l,o,a);else{let u=bn(l),f=u?o[u]:void 0;if(Fn(f)){let d=i.concat([{propertyName:c,propertyType:u.split("<")[0]}]);Iy(e,t,f,d,o,a,s)}}}}r(Iy,"importDefinitionIntoConfig");function Oy(e,t,n){var d;let i=si(e.manifest,Vt.FioriElementsVersion.v2,e.logger);if(!i||i===Vt.TemplateType.OverviewPageV2)return;let o=mo(t,!1),{parent:a}=cn(e.manifest,o),s=(d=a==null?void 0:a.component)==null?void 0:d.name,c=typeof s=="string"?n(s):void 0;if(!c)return;let l=cP(e),p=e.jsonSchema,u=p.definitions,f=c.propertyInstanceProvider([]);return Iy(f,c,p,[],u,e,l),f}r(Oy,"getConfigForPage");var ct=M(W());function fP(e,t,n,i){let o=t===void 0?null:t,a=typeof o=="string"&&o.startsWith("{");i.push({controlId:e[ct.SchemaTag.controlId],controlType:e[ct.SchemaTag.controlType],propertyName:n,newValue:o,isBinding:a})}r(fP,"addFlexChangeInfoToList");function Fy(e,t,n,i){var c;if(n[ct.SchemaTag.conversionExit])return Ps(!1,i.conversionExitProvider,n,e,i.fragments,t);if(n.type==="array"&&((c=n.items)==null?void 0:c.type)==="string")return!Array.isArray(e)||e.length===0?t===""||typeof t!="string"?t:void 0:e.join(",");if(e===t||n.type!=="object"||!n.properties)return e;let o=typeof t=="object"&&t!==null?{...t}:{},a=!1,s=!1;for(let l in n.properties){let p=n.properties[l];if(!Fn(p))continue;let u=bn(p);p=u&&i.globalTypeDefinitions[u]||p;let f=o[l];s=s||f!==void 0;let d=Fy(e?e[l]:void 0,f,p,i);d===void 0?delete o[l]:(o[l]=d,a=!0)}return a?o:s?Object.keys(t).every(l=>Fn(n.properties[l]))?void 0:o:t}r(Fy,"getValueForManifest");function jp(e,t){if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e!==t;if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length||e.some(function(o,a){return jp(o,t[a])}):!0;let n=Object.keys(e).filter(o=>e[o]!==void 0),i=Object.keys(t).filter(o=>t[o]!==void 0);return n.length!==i.length||n.some(function(o){return jp(e[o],t[o])})}r(jp,"isDifferent");function uP(e){return!e||!Object.keys(e).some(t=>e[t]!==void 0)}r(uP,"isEmpty");function dP(e,t,n,i,o){let a=n.manifest,s=e.length-1,c=e[s],l=[];e.some(function(f,d){if(d===s)return!0;let b=a[f];if(typeof b!="object"||b===null)return!0;a=b,l.push(a)});let p=l.length===s?a[c]:void 0,u=Fy(t,p,i,o);if(jp(u,p))if(u===void 0){n.manifestChangeIndicator=ct.ChangeIndicator.Deleted;for(let f=s;f>0;f--){let d=l[f];if(!uP(d))break;let b=l[f-1],x=e[f];delete b[x]}}else{for(let f=l.length;f<s;f++){let d={};a[e[f]]=d,a=d}a[c]=u,n.manifestChangeIndicator=p===void 0?ct.ChangeIndicator.Created:ct.ChangeIndicator.Updated}}r(dP,"applyManifestChange");function gP(e,t,n,i,o){let a=e==null?void 0:e[n],s=i[ct.SchemaTag.artifactType];if(s===ct.ArtifactType.FlexChange)fP(i,a,n,t.flexList);else if(s===ct.ArtifactType.Manifest&&i[ct.SchemaTag.manifestPath]){let c,l=i[ct.SchemaTag.manifestPath];Array.isArray(l)?c=l.concat([n]):(c=l.path,l.addTargetPropertyToPath&&(c=c.concat([n]))),dP(c,a,t,i,o)}else{let c=bn(i),l=c?o.globalTypeDefinitions[c]:void 0;Fn(l)&&Ny(a,t,l,o)}}r(gP,"transferConfigPropertyToExportResults");function Ny(e,t,n,i){let o=n.properties||{};for(let a in o){let s=n.properties[a];Fn(s)&&gP(e,t,a,s,i)}}r(Ny,"transferConfigToExportResults");function Ly(e){let t=e.config,n=e.jsonSchema.definitions,i=(e.fragments||[]).map(function(s){return{...s,changeIndicator:ct.ChangeIndicator.NoChange}}),o={globalTypeDefinitions:n,conversionExitProvider:e.conversionExitProvider,fragments:i},a={manifest:structuredClone(e.manifest),manifestChangeIndicator:ct.ChangeIndicator.NoChange,flexList:[],fragments:i};return Ny(t,a,e.jsonSchema,o),a}r(Ly,"exportPage");var mP=!1,yP={generateListReportSchemaV2(e,t){return dy(e,t)},createListReportConfig(e){return ry(e)},exportListReportPage(e,t,n){return yy(e,t,n)}},Dp;function hP(){let e;if(__dirname.endsWith("dist"))e=__dirname;else{let i=__dirname.lastIndexOf("specification");e=(0,Rp.join)(__dirname.substring(0,i+13),"dist")}let t=(0,Rp.join)(e,"schemas","v2","ListReportNewConfig.json");return JSON.parse((0,jy.readFileSync)(t,"utf8"))}r(hP,"getPersistentListReportNewSchema");function bP(){let e=hP();return function(t){return t===xr?{genericSchema:e,syncRuleProvider:ln}:void 0}}r(bP,"createGenericSchemaInfoProvider");function TP(e){return e===xr?{propertyInstanceProvider:r(function(t){return new ln},"propertyInstanceProvider")}:void 0}r(TP,"getConfigInfo");function Vy(e){let{value:t}=cn(e,[Zn.ManifestSection.generic],"pages");return Array.isArray(t)?[0]:t&&typeof t=="object"?[Object.keys(t)[0]]:void 0}r(Vy,"getPagePathForRootPage");function vP(e,t,n){let i=!e.layer||e.layer===Zn.FlexChangeLayer.Customer,o={controlId:n.controlId,controlType:n.controlType,content:{property:n.propertyName},sapui5Version:e.ui5Version,isCustomer:i};return n.isBinding?(o.content.newBinding=n.newValue,o.type="propertyBindingChange"):o.content.newValue=n.newValue,R(o,t)}r(vP,"flexInfoToChangeString");function SP(){let e=bP(),t=r(function(n,i,o){let a=structuredClone(i.manifest);return a[Zn.ManifestSection.app].id=n,i.flexList.map(vP.bind(null,o,a))},"getFlexChangesAsStrings");return{generateListReportSchemaV2(n){var s;let i=n.manifest,o=Vy(i);if(!o)return null;let a={appId:((s=i[Zn.ManifestSection.app])==null?void 0:s.id)||"",manifest:i,pagePath:o,annotations:[],parsedAnnotations:n.serviceAVT,fragments:n.fragments};return Py(a,e,n.logger)},createListReportConfig(n){let i=Vy(n.manifest);return Oy(n,i,TP)},exportListReportPage(n,i,o){let a=n.fragments?n.fragments.map(function(p){return{...p,changeIndicator:Zn.ChangeIndicator.NoChange}}):[],s={appId:n.appId,config:n.page.config,manifest:n.manifest,jsonSchema:n.jsonSchema,fragments:a,logger:n.logger},c=Ly(s),l=t(n.appId,c,i);return{manifest:c.manifest,fragments:c.fragments,flexChanges:l,manifestChangeIndicator:c.manifestChangeIndicator}}}}r(SP,"createPageHandlerLRGeneric");function wp(){return mP?(Dp=Dp||SP(),Dp):yP}r(wp,"getPageHandlerLR");function Ir(e,t){return wp().generateListReportSchemaV2(e,t)}r(Ir,"generateListReportSchemaV2");function Os(e){return wp().createListReportConfig(e)}r(Os,"createListReportConfig");function Fp(e,t,n=!1){return wp().exportListReportPage(e,t,n)}r(Fp,"exportListReportPage");function Ns(e,t){var n,i;return(n=e.component)!=null&&n.name?ua(hn((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}r(Ns,"generateId");function xP(e,t,n,i,o,a,s){e.navigation={};let c=Dy(t.pages,n,i,o,a);for(let l in c){let p=c[l];s[l]=p}for(let l in t.pages){let p=Ns(t.pages[l],l);e.entitySet?e.navigation[p]=c[p].navigationProperty?`${e.entitySet}.${c[p].navigationProperty}`:e.entitySet:e.navigation[p]=c[p].navigationProperty?c[p].navigationProperty:p}}r(xP,"getPageConfigsAndNavigations");function Dy(e,t,n,i,o,a){var c;let s={};for(let l in e){let p=e[l],u=Ns(p,l);if(!u)continue;let f={pageType:hn((c=p.component)==null?void 0:c.name),entitySet:p.entitySet,...p.navigationProperty&&{navigationProperty:p.navigationProperty},...p.defaultLayoutType&&{defaultLayoutType:p.defaultLayoutType}};s[u]=f;let d=Object.keys(i).find(b=>b.includes(u))||Object.keys(i).find(b=>b.includes(u.slice(0,-1)))||Object.keys(i).find(b=>b.includes(f.pageType));if(d)if(f.pageType===Be.PageTypeV2.ListReport){let b={manifest:n,flex:t,jsonSchema:i[d],fragments:o,logger:a};f.config=Os(b)}else if(f.pageType===Be.PageTypeV2.AnalyticalListPage){let b={manifest:n,flex:t,jsonSchema:i[d],fragments:o,logger:a};f.config=xs(b)}else{let b={manifest:n,flex:t,jsonSchema:i[d],entitySet:f.entitySet,fragments:o,logger:a};f.config=vs(b)}p.pages&&xP(f,p,t,n,i,o,s)}return s}r(Dy,"getPagesAndConfigs");var $p=class $p extends Yi{constructor(t){it();let n;t.manifest[Be.ManifestSection.generic]?n=t.manifest[Be.ManifestSection.generic].pages:Q(t.logger,{severity:Be.LogSeverity.Error,message:w.t("NOFE"),location:{path:Be.MANIFESTPATH,range:[Be.ManifestSection.generic]}}),n||Q(t.logger,{severity:Be.LogSeverity.Error,message:w.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:Be.MANIFESTPATH,range:[Be.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],o=n&&Ns(n[i],i),a=new wn,s=Ze(Be.SchemaType.Application),c=t.appSchemas[s.filename];tt(a,t.manifest,c.definitions.AppSettings,void 0),super(t.manifest,t.appSchemas,o,Dy(n,t.flexChanges,t.manifest,t.appSchemas,t.fragments,t.logger),Be.FioriElementsVersion.v2,a)}};r($p,"V2AppProvider");var Fs=$p;function Or(e,t,n){var o,a;let i={};for(let s in e){let c=e[s];if((o=c.component)!=null&&o.name||Q(n,{severity:Be.LogSeverity.Error,message:w.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:Be.MANIFESTPATH}}),((a=c.component)==null?void 0:a.name)===t){let l=Ns(c,s);i[l]=c}if(t===Be.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&c.pages){let l=Or(c.pages,t,n);for(let p in l)i[p]=l[p]}}return i}r(Or,"getPages");var Ln=M(W());var _p=class _p extends Yi{constructor(t){let n={},i=t.manifest[Ln.ManifestSection.ovp],o=new wn,a=Ze(Ln.SchemaType.Application);tt(o,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(u=>u.includes(Ln.PageTypeV2.OverviewPage)),c={manifest:t.manifest,jsonSchema:t.appSchemas[s]},l={pageType:Ln.PageTypeV2.OverviewPage,config:Ss(c),entitySet:i.globalFilterEntitySet},p=ua(l.pageType,l.entitySet);n[p]=l,super(t.manifest,t.appSchemas,p,n,Ln.FioriElementsVersion.v2,o,t.logger)}};r(_p,"V2OvpProvider");var Ls=_p;var Ry=require("fs"),Li=require("path"),Mp=M(W());var wy=r((e,t,n=__dirname)=>{let i=t===Mp.SchemaType.Application?`${Mp.SchemaType.Application}${e.toUpperCase()}.json`:`${t}Config.json`;if(n.endsWith("dist"))return(0,Li.join)(n,"schemas",e,i);if(n.endsWith((0,Li.join)("specification","packages","specification")))return(0,Li.join)(n,"dist","schemas",e,i);if(n.endsWith((0,Li.join)("src","specification")))return(0,Li.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let o=n.substring(0,n.indexOf("node_modules")+12);return(0,Li.join)(o,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),CP=r(async e=>new Promise((t,n)=>{(0,Ry.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(JSON.parse(o))})}),"readJsonSchema"),Vs=r(async(e,t)=>{try{let n=wy(e,t,__dirname);return await CP(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function PP(e,t){let n={},i=[];switch(i=[ee.SchemaType.Application],e){case ee.TemplateType.ListReportObjectPageV2:i.push(ee.SchemaType.ListReport,ee.SchemaType.ObjectPage);break;case ee.TemplateType.AnalyticalListPageV2:i.push(ee.SchemaType.AnalyticalListPage,ee.SchemaType.ObjectPage);break;case ee.TemplateType.OverviewPageV2:i.push(ee.SchemaType.OverviewPage);break;default:break}for(let o of i){let a=Ze(o);n[a.filename]=await Vs(t,o)}return n}r(PP,"getGenericSchemas");function _y(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=Zt(ee.UIVOCABULARY,e);for(let o of n){if(!o.annotations||!o.annotations[i])continue;let{LineItem:a,Facets:s}=o.annotations[i];a&&!a.qualifier&&t.LineItems.push(o.name),s&&!s.qualifier&&t.Facets.push(o.name)}return t}r(_y,"getAnnotationsForUi");function Fr(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}r(Fr,"getEntitySetByEntitySetName");function AP(e,t,n){var o;let i=Or(e.manifest[ee.ManifestSection.generic].pages,ee.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=Fr(s,e.serviceAVT);let c=Ze(ee.SchemaType.ListReport,((o=e.entitySet)==null?void 0:o.name)||s),l=Ze(ee.SchemaType.ListReport);t[c.filename]=Ir(e,n[l.filename])}}r(AP,"generateAppSchemaV2LR");function $y(e,t,n){let i=Or(e.manifest[ee.ManifestSection.generic].pages,ee.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let o in i){let a=i[o].entitySet,s=Fr(a,e.serviceAVT);s||Q(e.logger,{severity:ee.LogSeverity.Error,message:w.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let c=Ze(ee.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),l=Ze(ee.SchemaType.ObjectPage);n[c.filename]=Nr(e,t[l.filename])}}r($y,"generateObjectPageSchemasV2");function EP(e,t,n,i){var a;let o={};if(i===ee.TemplateType.ListReportObjectPageV2&&n)AP(e,o,t),$y(e,t,o);else if(i===ee.TemplateType.AnalyticalListPageV2&&n){let s=Or(e.manifest[ee.ManifestSection.generic].pages,ee.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let c in s){let l=s[c].entitySet;e.entitySet=Fr(l,e.serviceAVT);let p=Ze(ee.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||l),u=Ze(ee.SchemaType.AnalyticalListPage);o[p.filename]=Lr(e,t[u.filename])}$y(e,t,o)}else if(i===ee.TemplateType.OverviewPageV2){let s=Ze(ee.SchemaType.OverviewPage),c=Ze(ee.SchemaType.OverviewPage);o[s.filename]=Vr(t[c.filename],e.manifest)}return{...t,...o}}r(EP,"generateAppSchemasV2");async function My(e,t,n){if(e.fioriElementsVersion===ee.FioriElementsVersion.v2){let i=await PP(n,e.fioriElementsVersion);return EP(e,i,t,n)}else{let i=w.t("INVALIDSPECFORV4");Q(e.logger,{severity:ee.LogSeverity.Info,message:i})}}r(My,"generateAppSchemas");function IP(e){let t,n=[];switch(e.templateType){case ee.TemplateType.ListReportObjectPageV2:case ee.TemplateType.AnalyticalListPageV2:t=new Fs(e);break;case ee.TemplateType.OverviewPageV2:t=new Ls(e);break;default:break}if(t){let{appConfig:i,pageConfigs:o}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in o)n.push({dataSourceUri:a,fileContent:JSON.stringify(o[a],null,4)})}return n}r(IP,"importConfigs");function ky(e,t){let n=[];for(let i of Object.keys(e).sort()){let o;i===ee.SchemaType.Application?o=`${ee.DirName.Schemas}/${ee.FileName.App[0].toUpperCase()}${ee.FileName.App.slice(1)}`:o=`${ee.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:o,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}r(ky,"getFileList");async function kp(e){var x,I;it();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,featureToggles:s}=e;new wo().doesUi5VersionFitDistTags((I=(x=t["sap.ui5"])==null?void 0:x.dependencies)==null?void 0:I.minUI5Version,i);let l=Ac(t),p=ai(n,i),u=_y(p),f=si(t,l,i),b=await My({templateType:f,manifest:t,serviceAVT:p,fragments:o,views:a,fioriElementsVersion:l,logger:i,featureToggles:s},u,f);if(b)return ky(b)}r(kp,"importProjectSchema");async function Up(e){var re,q;it();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,flex:s,featureToggles:c}=e;new wo().doesUi5VersionFitDistTags((q=(re=t["sap.ui5"])==null?void 0:re.dependencies)==null?void 0:q.minUI5Version,i);let p=Ac(t),u=dg(t),f=ai(n,i),d=si(t,p,i),b={templateType:d,manifest:t,serviceAVT:f,fragments:o,views:a,fioriElementsVersion:p,logger:i,featureToggles:c},x=_y(f),I=await My(b,x,d);if(!I)return;let $=IP({manifest:t,flexChanges:s,appSchemas:I,templateType:d,logger:i,serviceAVT:f,fragments:o,views:a,fioriElementsVersion:p,oDataVersion:u});return ky(I,$)}r(Up,"importProjectSchemaAndConfig");var OP=["header","sections","footer"];function FP(e,t,n,i){t.properties[n][V.SchemaTag.artifactType]=V.ArtifactType.FlexChange;let o;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":o=V.ControlType.Section;break;case"ObjectPageSubSectionV2":o=V.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":o=V.ControlType.Group;break;case"ObjectPageSubSectionChartV2":o=V.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":o=V.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":o=V.ControlType.ObjectPageHeaderSection;break}o&&(he(e,t,n),t.properties[n][V.SchemaTag.controlType]=o)}r(FP,"addFlexChangeForSection");function NP(e,t,n,i,o){return(a,s)=>{if(!a.Determining&&a.$Type===ei.UIAnnotationTypes.DataFieldForAction){let{actionName:c,actionId:l,namespace:p}=Vc(a,o);if(!l)return;let u=a.Label||c,f=`HeaderAction<${_e(l)}>`;t.definitions[f]=JSON.parse(JSON.stringify(t.definitions.HeaderAction));let d=n.fullyQualifiedName.replace(`@${ei.UIAnnotationTerms.Identification}`,`/@${ei.UIAnnotationTerms.Identification}`);t.definitions[f][V.SchemaTag.annotationPath]=`/${d}/${s}`,t.definitions[f][V.SchemaTag.actionType]=V.ActionType.Annotation,t.definitions[f].description=u,t.definitions[f][V.SchemaTag.keys]=[{name:V.SchemaKeyName.action,value:c}],p&&(t.definitions[f][V.SchemaTag.target]=p),i.properties[l]={$ref:`${j}${f}`}}}}r(NP,"addHeaderActionCallBackV2");function LP(e,t,n,i,o,a,s,c){let l,p;if(a.ID&&a.Label?l=a.ID+a.Label.replace(/\s+/g,""):a.ID?l=a.ID:a.Label&&(l=a.Label.replace(/\s+/g,"")),l?p=`${V.DefinitionName.CustomColumns}<${n}><${s}><${l}>`:p=`${V.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let u=`${V.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[u]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let f=[],d=o==null?void 0:o.entityTypes.find(x=>x.name===i),b=Oi(t[V.ManifestSection.generic].pages,n,f);return Xi(e,d,b,t,c,p,u,a.ID),p}r(LP,"ensureCustomColumnDefinitionExists");function jr(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&FP(e,t,"visible",n)}r(jr,"addAppSchemaDefinition");function VP(e,t,n){e.properties[t]={$ref:`${j}${n}`}}r(VP,"addSectionReference");function js(e,t,n,i){let o=_e(`${e}<${t}>`);try{i.definitions[o]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[o].properties.columns.$ref=j+t,i.definitions[o].properties.toolBar.$ref=`${j}ObjectPageToolBar<${t}>`,i.definitions[o][V.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[o].title=V.FACETTITLEPREFIX+n.ID,i.definitions[o][V.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[o].description=V.DefinitionName.Table,i.definitions[o].properties.quickVariantSelection.$ref=`${j}QuickVariantSelectionOP<${t}>`,i.definitions[`QuickVariantSelectionOP<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariantSelectionOP)),i.definitions[`QuickVariant<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariant)),i.definitions[`QuickVariantSelectionOP<${t}>`].properties.variants.patternProperties["^[0-9]+$"].$ref=`${j}QuickVariant<${t}>`,Sa(n.entityType,i,`QuickVariant<${t}>`)}r(js,"addTableDefinition");function jP(e,t,n,i,o,a){if(i.base!==V.FacetBase.LineItem||!t)return;let s=t.split("::")[0],c=`${a}<${t}>`;n.definitions[c]=ci(n,i,t);let l=n.definitions[c];jr(n,l,a,"ObjectPageSectionTableV2"),l.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[V.PropertyName.table])),l.properties.table.anyOf=[{$ref:`${j}ObjectPageResponsiveTable<${t}>`},{$ref:`${j}ObjectPageAnalyticalTable<${t}>`},{$ref:`${j}ObjectPageGridTable<${t}>`},{$ref:`${j}ObjectPageTreeTable<${t}>`}],l[V.SchemaTag.annotationPath]=i.annotationPath,No(i,l,t),js("ObjectPageResponsiveTable",t,i,n),js("ObjectPageGridTable",t,i,n),js("ObjectPageTreeTable",t,i,n),js("ObjectPageAnalyticalTable",t,i,n);let p,u=cm(i,e.serviceAVT);u&&(p=LP(n,e.manifest,u.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let f in o){let d=o[f];d.base===V.FacetBase.LineItem&&(d.ID===s||f.includes(s))&&Qi(!0,n,d.target,d.entityType,d.ID||f,p)}}r(jP,"handleLineItem");function DP(e,t,n,i,o,a=!1){e.definitions[t]=ci(e,n,i);let s=e.definitions[t],c=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";jr(e,s,o,c),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[V.SchemaTag.isViewNode]=!0}r(DP,"handleSubSection");function RP(e,t,n,i,o){e.definitions[t]=ci(e,n,i);let a=e.definitions[t];jr(e,a,o,"ObjectPageSectionChartV2")}r(RP,"handleSectionChart");function Uy(e,t,n,i,o,a){e.definitions[t]=ci(e,n,i);let s=e.definitions[t];jr(e,s,o,a||"CommonHeaderFacetSettings"),s[V.SchemaTag.annotationPath]=n.annotationPath,s[V.SchemaTag.isViewNode]=!0,s[V.SchemaTag.dataType]=xa(n==null?void 0:n.target)}r(Uy,"handleHeaderFacet");function wP(e,t,n){let i=e.definitions[t],o=i[V.SchemaTag.dataType]=xa(n==null?void 0:n.target);o==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:o==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}r(wP,"addDataPointHeaderFacetDataType");function $P(e,t,n,i,o){e.definitions[t]=ci(e,n,i);let a=e.definitions[t];return jr(e,a,o,"ObjectPageSectionFormV2"),a[V.SchemaTag.annotationPath]=n.annotationPath,a[V.SchemaTag.isViewNode]=!0,a}r($P,"handleFormSection");function _P(e,t,n){let i=new Map([[V.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[V.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[V.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[V.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[V.FacetBase.Form,"ObjectPageHeaderSectionForm"],[V.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),o=new Map([[V.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[V.FacetBase.LineItem,"ObjectPageSectionTableV2"],[V.FacetBase.Chart,"ObjectPageSectionChartV2"],[V.FacetBase.Address,"ObjectPageSectionAddressV2"],[V.FacetBase.Contact,"ObjectPageSectionContactV2"],[V.FacetBase.Form,"ObjectPageSectionFormV2"],[V.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[V.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[V.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[V.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[V.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[V.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[V.FacetBase.Form,"ObjectPageSubSectionFormV2"],[V.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):o.get(e)}r(_P,"getSectionType");function MP(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${ei.UIAnnotationTerms.Facets}`,e.base)),`${i}`}r(MP,"getReferenceKey");function Gy(e,t,n,i,o,a=!1,s=!1){let c=t[n],l=_P(c.base,a,s),p=MP(c,n,l),u=`${l}<${p}>`;switch(VP(i,p,u),l){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,DP(o,u,c,n,l,s);let f=o.definitions[u].properties.subsections;for(let d in c.facets)Gy(e,c.facets,d,f,o,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{jP(e,p,o,c,t,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{RP(o,u,c,p,l);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let f=$P(o,u,c,p,l);im(V.SectionType.Section,c,f,o,V.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{jc(c,p,i,o,V.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{jc(c,p,i,o,V.SectionType.Section,V.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{Uy(o,u,c,p,l);break}case"ObjectPageHeaderSectionDataPoint":{Uy(o,u,c,p,l),wP(o,u,c);break}default:i.properties[n]=ci(o,c,p)}}r(Gy,"addSection");function By(e,t,n,i,o,a=!1){if(e)for(let s in t)Gy(i,t,s,n,o,!1,a)}r(By,"addSectionsFromFacets");function Hy(e,t,n){var u,f,d,b,x,I;let i=t.definitions[V.DefinitionName.Sections];i[V.SchemaTag.isViewNode]=!0,(u=e.entitySet)!=null&&u.entityType&&(i[V.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${ei.UIAnnotationTerms.Facets}`);let o=t.definitions[V.DefinitionName.HeaderSections];if(o[V.SchemaTag.isViewNode]=!0,o.properties||(o.properties={}),o.additionalProperties=!1,(f=e.entitySet)!=null&&f.entityType&&(o[V.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${ei.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=ug((d=e.entitySet)==null?void 0:d.entityType,e.serviceAVT,V.FioriElementsVersion.v2,e.logger),s=fg((b=e.entitySet)==null?void 0:b.entityType,e.serviceAVT,V.FioriElementsVersion.v2,e.logger),c=a&&!!Object.keys(a).length,l=s&&!!Object.keys(s).length;if(!c&&!l)return;for(let O in n){let $=n[O];(I=(x=e.entitySet)==null?void 0:x.name)!=null&&I.includes($.entitySet)?(By(c,a,i,e,t),By(l,s,o,e,t,!0)):Hy(e,t,$.pages)}let p=t.definitions.CustomSections;for(let O in p.properties)i.properties[O]=p.properties[O]}r(Hy,"addSections");function kP(e,t,n){sm(e,t),am(e,t,n,NP,!0)}r(kP,"addHeader");function UP(e,t,n,i){let o=gg(t,n,i,void 0,!0);o&&um(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],o,["ID","key"])}r(UP,"addRelatedFacetKeysType");function Nr(e,t){var s;it();let n=JSON.parse(JSON.stringify(t)),i={};for(let c in n.definitions.CustomSections.properties)i[c]=n.definitions.CustomSections.properties[c];n.properties[V.PropertyName.sections]={$ref:j+"Sections"};let o=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=o;let a=e.manifest[V.ManifestSection.generic].pages;return a?(kP(n,o,e.serviceAVT),n.definitions[V.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Hy(e,n,a),UP(n,o,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[V.SchemaTag.isViewNode]=!0):delete n.properties[V.PropertyName.sections]),rm(n,e,V.FioriElementsVersion.v2,a),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.CommonHeaderFacetSettings,delete n.definitions.ObjectPageHeaderSection,delete n.definitions.ObjectPageCustomHeaderSectionFragment,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTable,delete n.definitions.ObjectPageAnalyticalTable,delete n.definitions.ObjectPageTreeTable,delete n.definitions.ObjectPageGridTable,delete n.definitions.ObjectPageToolBar,delete n.definitions.ObjectPageToolBarActions,delete n.definitions.ObjectPageForm,delete n.definitions.ObjectPageFormFields,delete n.definitions.ObjectPageFormActions,delete n.definitions.FieldPathOP,Hi(n,OP),n):(Q(e.logger,{severity:V.LogSeverity.Error,message:w.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:V.MANIFESTPATH,range:[V.ManifestSection.generic]}}),n)}r(Nr,"generateObjectPageSchemaV2");var Ce=M(W());var BP=["filterBar","keyPerformanceIndicators","chart","table","footer"];function Wy(e,t){let n=t.value;return n.includes(Ce.UIVOCABULARYALPHADOT+e)?n.replace(Ce.UIVOCABULARYALPHADOT,""):""}r(Wy,"retrieveNameWithoutVocabulary");function GP(e,t,n){var x;let i=(x=e==null?void 0:e.component)==null?void 0:x.settings,o=i==null?void 0:i.qualifier,a=r(function(I){let O=I+(o?"#"+o:"");return t[O]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),c=s?s.PresentationVariant:a("PresentationVariant");if(s&&!c){let I=o?w.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:o}):w.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return Q(n,{severity:Ce.LogSeverity.Error,message:I}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let l=(c==null?void 0:c.Visualizations)||[],p="",u="";l.some(function(I){return p=p||Wy("LineItem",I),u=u||Wy("Chart",I),p&&u}),p=p||"LineItem",u=u||"Chart";let f=t[p],d=t[u],b=(f||i.quickVariantSelectionX?0:1)+(d?0:2);if(b>0){let I=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][b-1],O=w.t(I);Q(n,{severity:Ce.LogSeverity.Warning,message:O})}return{lineItemAnnotation:f,chartAnnotation:d}}r(GP,"getLineItemAndChartAnnotation");function HP(e,t){let n=e.definitions[Ce.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Ce.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}r(HP,"addChart");function Lr(e,t){var s,c,l,p,u;let n=JSON.parse(JSON.stringify(t));n.properties[Ce.PropertyName.table].anyOf[0].$ref=j+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${j}${Ce.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${j}${Ce.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[Ce.PropertyName.table].anyOf[1].$ref=`${j}ALPGridTable<LineItems>`;try{let f=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));f.properties.columns.$ref=`${j}${Ce.DefinitionName.LineItems}`,f.properties.toolBar.$ref=`${j}${Ce.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=f}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[Ce.PropertyName.table].anyOf[2].$ref=`${j}ALPAnalyticalTable<LineItems>`;let o=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));o.properties.columns.$ref=`${j}${Ce.DefinitionName.LineItems}`,o.properties.toolBar.$ref=`${j}${Ce.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=o,qg(n.definitions.TableColumnExtensionTypeV2.enum,[Ce.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let a=(s=e.entitySet)==null?void 0:s.entityType;if(!a)Q(e.logger,{severity:Ce.LogSeverity.Error,message:w.t("NOENTITYTYPE4SET",{entitySetName:(c=e.entitySet)==null?void 0:c.name})});else{qi(n);let f=[],d=go(e.manifest[Ce.ManifestSection.generic].pages,f,e.logger),b=(l=a==null?void 0:a.annotations)==null?void 0:l.UI,{lineItemAnnotation:x,chartAnnotation:I}=GP(d,b,e.logger);x&&Hg.forEach($=>{n.definitions[$][Ce.SchemaTag.annotationPath]=Gt(a==null?void 0:a.fullyQualifiedName,x.term,x.qualifier)}),Qi(!1,n,x,a),I&&HP(n,I);let O=(u=(p=a==null?void 0:a.annotations)==null?void 0:p.UI)==null?void 0:u.SelectionFields;if(Ta(n,O,a),!d)return Q(e.logger,{severity:Ce.LogSeverity.Error,message:w.t("NOLR"),location:{path:Ce.MANIFESTPATH,range:[Ce.ManifestSection.generic]}}),n;Xi(n,a,d,e.manifest,e.fragments),Ep(a,e.entitySet,n,e.serviceAVT),delete n.definitions.ALPGridTable,delete n.definitions.ALPResponsiveTable,delete n.definitions.ALPAnalyticalTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.GenericFooter,delete n.definitions.Actions,delete n.definitions.FieldPath}return Hi(n,BP),n}r(Lr,"generateAnalyticalListReportSchemaV2");var Ky=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function WP(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let o=i.$ref.split("/");return o[o.length-1]})}r(WP,"getCardDefinitionNames");function KP(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),o=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(o).filter(l=>i.includes(o[l].dataSource)));let s=e.definitions;s.CardModel={type:"string"},ui(a,s.CardModel);let c=WP(e);for(let l of c){let p=s[l].properties.model;delete p.type,p.$ref=j+"CardModel"}}r(KP,"addModelsEnum");function JP(e,t){let n=e.properties;for(let i in Ky){let o=Ky[i],a=o.key;n[a]&&(n[a].messages=[{text:Ki(a,{since:o.since,deprecated:{since:o.deprecated.since,text:o.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}r(JP,"markDeprecatedProperties");function Jy(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},JP(n,t),KP(n,t),n}r(Jy,"generateOverviewPageSchemaV2");var ti=M(W());function Bp(e,t,n,i,o,a){it();let s=ai(e,t),c={templateType:a,fioriElementsVersion:ti.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return c.entitySet=Fr(o,c.serviceAVT),c.entitySet||Q(c.logger,{severity:ti.LogSeverity.Error,message:w.t("ENTITYSETNOTFOUND",{entitySetName:o})}),c}r(Bp,"prepareGenerationV2");function Gp(e,t,n,i,o,a){let s=Bp(n,a,i,o,t,ti.TemplateType.ListReportObjectPageV2);return Nr(s,e)}r(Gp,"generateObjectPageInterfaceV2");function Hp(e,t,n,i,o,a){let s=Bp(n,a,i,o,t,ti.TemplateType.ListReportObjectPageV2);return Ir(s,e)}r(Hp,"generateListReportInterfaceV2");function Wp(e,t,n,i,o,a){let s=Bp(n,a,i,o,t,ti.TemplateType.AnalyticalListPageV2);return Lr(s,e)}r(Wp,"generateAnalyticalListPageInterfaceV2");function Vr(e,t){return Jy(e,t)}r(Vr,"generateOVPInterfaceV2");function QP(e){let t;if(e[xe.FioriElementsVersion.v2]){let n=e[xe.FioriElementsVersion.v2];if(n[xe.SchemaType.ListReport]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:c,logger:l}=n[xe.SchemaType.ListReport];t=Hp(i,o,a,s,c,l)}else if(n[xe.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:c,logger:l}=n[xe.SchemaType.ObjectPage];t=Gp(i,o,a,s,c,l)}else if(n[xe.SchemaType.OverviewPage]){let{genericSchema:i,manifest:o}=n[xe.SchemaType.OverviewPage];t=Vr(i,o)}else if(n[xe.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:c,logger:l}=n[xe.SchemaType.AnalyticalListPage];t=Wp(i,o,a,s,c,l)}}return t}r(QP,"generateSchema");function XP(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[xe.FioriElementsVersion.v2]){let i=e[xe.FioriElementsVersion.v2];t=vy(i,n)}return t}r(XP,"exportConfig");function qP(e){let t=xe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[xe.FioriElementsVersion.v2]){let i=e[xe.FioriElementsVersion.v2];t=Op(i,n)}return t}r(qP,"exportConfigEntityByPath");function zP(e){let t=xe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[xe.FioriElementsVersion.v2]){let i=e[xe.FioriElementsVersion.v2];t=Op(i,n,!0)}return t}r(zP,"deleteConfigEntityByPath");function YP(e){let t;if(e[xe.FioriElementsVersion.v2]){let n=e[xe.FioriElementsVersion.v2];n[xe.SchemaType.ListReport]?t=Os(n[xe.SchemaType.ListReport]):n[xe.SchemaType.ObjectPage]?t=vs(n[xe.SchemaType.ObjectPage]):n[xe.SchemaType.OverviewPage]?t=Ss(n[xe.SchemaType.OverviewPage]):n[xe.SchemaType.AnalyticalListPage]&&(t=xs(n[xe.SchemaType.AnalyticalListPage]))}return t}r(YP,"importConfig");async function ZP(e){return Up(e)}r(ZP,"importProject");async function eA(e){return kp(e)}r(eA,"importProjectSchema");function tA(){return{version:"20",moduleVersion:bm.version}}r(tA,"getApiVersion");var kt=require("path"),ni=require("fs");var yo=r(async e=>new Promise((t,n)=>{(0,ni.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readFile"),nA=r(async e=>JSON.parse(await yo(e)),"readJSON"),Kp=r(async e=>new Promise((t,n)=>{(0,ni.readdir)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readDirectory"),iA=r(async e=>new Promise(t=>{(0,ni.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),Qy=r(async e=>new Promise(t=>{(0,ni.exists)(e,n=>{t(n)})}),"resourceExists"),oA=r(async e=>nA((0,kt.join)(e,"manifest.json")),"getManifest"),Xy=r(async e=>{let t=[],n=(0,kt.join)(e,"changes");if(!await Qy(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],o=await Kp(n);for(let a of o)i.some(s=>a.endsWith(s))&&t.push(await yo((0,kt.join)(n,a)));return t},"getChanges"),rA=r(async e=>{let t=[],n=(0,kt.join)(e,"ext","fragments");if(!await Qy(n))return t;let i=await Kp(n);for(let o of i){let a=(0,kt.join)(n,o),s=await yo(a);t.push({dataSourceUri:a,fileContent:s})}return t},"getFragments"),aA=r(async(e,t)=>{var o,a,s,c,l,p,u,f;let n=[],i=(o=e==null?void 0:e["sap.app"])==null?void 0:o.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let d=(0,kt.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:d,fileContent:await yo(d)})}if((l=(c=i==null?void 0:i.mainService)==null?void 0:c.settings)!=null&&l.annotations){for(let d of i.mainService.settings.annotations)if((u=(p=i[d])==null?void 0:p.settings)!=null&&u.localUri){let b=(0,kt.join)(t,i[d].settings.localUri);n.push({dataSourceUri:b,fileContent:await yo(b)})}}if(n.length===0)for(let d in i){let b=i[d];if((b==null?void 0:b.type)==="ODataAnnotation"&&((f=b==null?void 0:b.settings)!=null&&f.localUri)){let x=(0,kt.join)(t,b.settings.localUri);n.push({dataSourceUri:x,fileContent:await yo(x)})}}return n},"getAnnotations"),sA=r(async e=>{let t=(0,kt.basename)(e),n=(0,kt.join)(e,"webapp"),i=await oA(n),o=await aA(i,n),a=await Xy(n),s=await rA(n);return{root:e,name:t,manifest:i,annotations:o,changes:a,fragments:s}},"getProject");oi(On,M(W()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,readDirectory});
88
+ `}),sy(w)}r(it,"initI18n");var Sp={};_r(Sp,{AnalyticalListPage:()=>Mt,ListReport:()=>Jt,ObjectPage:()=>dt,OverviewPage:()=>Re});var bs=$(G());var Mt=class{};r(Mt,"AnalyticalListPage"),m([y({flex:{controlId:ma,controlType:r(()=>bs.ControlType.DynamicPage,"controlType"),createFlexChange:D}})],Mt.prototype,"fitContent",2),m([qe("table")],Mt.prototype,"table",2),m([qe("template::SmartFilterBar")],Mt.prototype,"filterBar",2),m([qe("analyticalListPageChart")],Mt.prototype,"chart",2),m([qe("analyticalListFooter")],Mt.prototype,"footer",2),Mt=m([tn({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:bs.v2.FE_TEMPLATE_V2_ALP})],Mt);var Pr=$(G());var Jt=class{};r(Jt,"ListReport"),m([y({flex:{controlId:ma,controlType:r(()=>Pr.ControlType.DynamicPage,"controlType"),createFlexChange:D}})],Jt.prototype,"fitContent",2),m([qe("listReportFilter")],Jt.prototype,"filterBar",2),m([qe("listReport")],Jt.prototype,"table",2),m([qe("listReportFooter")],Jt.prototype,"footer",2),Jt=m([tn({id:Pr.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Pr.v2.FE_TEMPLATE_V2_LIST_REPORT})],Jt);var vp=$(G());var dt=class{};r(dt,"ObjectPage"),m([y({manifest:{path:r(t=>wt(t),"path")}}),N({since:"1.52.0"})],dt.prototype,"showConfirmationOnDraftActivate",2),m([y({manifest:{path:r(t=>wt(t),"path")}}),N({since:"1.52.1"})],dt.prototype,"hideChevronForUnauthorizedExtNav",2),m([y({manifest:{path:r(t=>wt(t),"path")}}),N({since:"1.48.0"})],dt.prototype,"allowDeepLinking",2),m([y({manifest:{path:r(t=>wt(t),"path")}}),N({since:"1.52.0"})],dt.prototype,"navToListOnSave",2),m([qe("header")],dt.prototype,"header",2),m([qe("sections")],dt.prototype,"sections",2),m([qe("layout")],dt.prototype,"layout",2),m([y({manifest:{path:r(t=>wt(t),"path"),import:r(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:Pg}}),N({since:"1.71.0"})],dt.prototype,"globalTableSettings",2),dt=m([tn({id:vp.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:vp.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],dt);var Re=class{};r(Re,"OverviewPage"),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"globalFilterModel",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"globalFilterEntityType",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"globalFilterEntitySet",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"showBasicSearch",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"disableErrorPage",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"smartVariantRequired",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"bHeaderExpanded",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"containerLayout",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"showDateInRelativeFormat",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"disableTableCardFlexibility",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"enableLiveFilter",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"enableLazyRendering",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"refreshStrategyOnAppRestore",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"considerAnalyticalParameters",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"refreshIntervalInMinutes",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"useDateRangeType",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"dataLoadSettings",2),m([y({manifest:{path:r(()=>We(),"path")}})],Re.prototype,"resizableLayout",2),Re=m([tn({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Re);var xp=class xp{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,o){let a=this.controls[o]?this.controls[o]:this.controls[n];return a||(a=this.pageTypes[t][o]?this.pageTypes[t][o]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};r(xp,"MetadataFactory");var Ts=xp;var gt=$(G());var aC={},sC={Table:yi,ResponsiveTableWithMultiSelect:yi,ResponsiveTableWithInlineDelete:yi},cC={[gt.v2.CardSettingsType.listCardSettings]:Ho,[gt.v2.CardSettingsType.analyticalCardSettings]:Wo,[gt.v2.CardSettingsType.stackCardSettings]:Ko,[gt.v2.CardSettingsType.linkListCardSettings]:Jo,[gt.v2.CardSettingsType.tableCardSettings]:Qo},lC={[gt.SAPUI5_VIEW_CLASS]:hr,[gt.SAPUI5_FRAGMENT_CLASS]:yr,Table:Fi,ObjectPageResponsiveTableWithMultiSelect:Fi,ObjectPageResponsiveTableWithInlineDelete:Fi},pC={[gt.PageTypeV2.AnalyticalListPage]:aC,[gt.PageTypeV2.ListReport]:sC,[gt.PageTypeV2.ObjectPage]:lC,[gt.PageTypeV2.OverviewPage]:cC},Cp=class Cp extends Ts{constructor(){super(mp,Sp,pC)}};r(Cp,"MetadataInstanceFactoryV2");var mt=Cp;function fC(e,t,n,i,o){e.filterBar=t.createInstance(we.PageTypeV2.ListReport,we.DefinitionName.ListReportFilterBar,e.filterBar),tt(e.filterBar,n.manifest,i[we.DefinitionName.ListReportFilterBar],o,n.logger)}r(fC,"importFilterBar");function Pp(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,u,f;let c=Ot(s),l={controlId:c.controlId,propertyId:(p=c.content)==null?void 0:p.property,newValue:(u=c.content)!=null&&u.newBinding?c.content.newBinding:(f=c.content)==null?void 0:f.newValue,controlType:c.controlType,creation:c.creation};us(n.table,l,t)});let i=t.properties.columns.$ref.split("/").pop(),o=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in o)s!=="custom"&&ds(e,n,s)}r(Pp,"importFlexChangesOfTableAndColumns");function uC(e,t,n,i,o){var s;let a;e?a=i.jsonSchema.definitions[e+"<LineItems>"]:a=i.jsonSchema.definitions[Xi],tt(n.table,i.manifest,a,o,i.logger),Pp(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(c=>c!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&J(i.logger,{severity:we.LogSeverity.Error,message:w.t("NOLINEITEMS")})}r(uC,"importTable");function dC(e,t,n,i){let o=e.jsonSchema.definitions,a=ms(e.manifest,i);if(t.table=n.createInstance(we.PageTypeV2.ListReport,a,t.table),ys(t,n,o),uC(a,o,t,e,i),t.table.toolBar=n.createInstance(we.PageTypeV2.ListReport,we.DefinitionName.ToolBar,{actions:{}}),tt(t.table.toolBar,e.manifest,o[we.DefinitionName.ToolBar],i,e.logger),o[we.DefinitionName.ActionsLR])for(let c in o[we.DefinitionName.ActionsLR].properties){let l=Zn(c);t.table.toolBar.actions[l]=n.createInstance(we.PageTypeV2.ListReport,we.DefinitionName.Action),tt(t.table.toolBar.actions[l],e.manifest,o[we.DefinitionName.Action],i,e.logger)}fC(t,n,e,o,i),t.footer={actions:{}};let s=o[we.DefinitionName.FooterActionsLR];if(s)for(let c in s.properties){let l=Zn(c);t.footer.actions[l]=n.createInstance(we.PageTypeV2.ListReport,we.DefinitionName.FooterAction),tt(t.footer.actions[l],e.manifest,o[we.DefinitionName.Action],i,e.logger)}}r(dC,"addSettings");function ly(e){if(it(),!go(e))return;let n=new mt,i=n.createPageInstance(we.PageTypeV2.ListReport),o=[],a=uo(e.manifest[we.ManifestSection.generic].pages,o);if(mo(a,e.logger,a==null?void 0:a.entitySet),!!a)return dC(e,i,n,o[0]),e.flex.forEach(s=>{Ot(s)&&gs(i,s,e.jsonSchema,e.logger)}),fo(i,e,a,we.PageTypeV2.ListReport),hs(i),i}r(ly,"createListReportConfig");var k=$(G());var Ar=require("@sap-ux/vocabularies-types/vocabularies/UI");var mC=[k.ControlType.Avatar,k.ControlType.ObjectPageLayout,k.ControlType.DynamicPage];function yC(e,t){let n=e[0].split("--"),i=n[n.length-1];if(e[0].indexOf("::action::")>=0||e[0].startsWith("action::"))t=n[0].split("::action::")[0]||n[0].split(`${Ar.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${k.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Ar.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let o=i.split("::");o.length>1?t=o[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}r(yC,"getSingleSelectorIdPart");function hC(e){let t,n=e.split(":::");if(n.length===1)t=yC(n,t);else if(e.indexOf("sSmartTableId")>=0){for(let i of n)if(i.startsWith("sSmartTableId")){t=i.split("sSmartTableId::")[1].split("::Table")[0].split("/responsiveTable")[0].replace(`::${Ar.UIAnnotationTerms.LineItem}`,`/@${Ar.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}r(hC,"getFacetID");function bC(e,t,n){let i={},o=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var c,l,p;try{let u=Ot(s),f=u&&((c=u.controlId)==null?void 0:c.split("--"))||[];if(u&&((l=f[0])!=null&&l.includes(k.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=f[0])!=null&&p.endsWith(t))){let d=f[1].replace(/:3a:3a/g,"::");o.exec(d)!==null&&(d=d.split("template:::TableColumn:::")[1]);let b=hC(d);d=hp(d).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${d}::${u.content.property}`]={controlId:d,propertyId:u.content.property,facetId:b,newValue:u.content.newBinding!==void 0?u.content.newBinding:u.content.newValue,controlType:u.controlType,creation:u.creation}}}catch(u){J(n,{severity:k.LogSeverity.Error,message:w.t("FLEXERROR")},...u)}}),Object.entries(i).sort((s,c)=>s[1].creation-c[1].creation).reduce((s,[c,l])=>(s[c]=l,s),{})}r(bC,"prepareFlexChanges");var TC=r(e=>{var n,i,o;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(j,"");if((i=(n=e.properties)==null?void 0:n.subsections)!=null&&i.$ref)return t=e.properties.subsections.$ref,t=t.includes("<")?t.split("<")[0]:t,t.replace(j,"");if((o=e.properties)!=null&&o.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function vC(e,t,n,i){if(Object.keys(e.properties).some(o=>o===t.propertyId))for(let o in n)o!=="custom"&&yp(i,t,o)}r(vC,"addFlexChangeToColumns");function py(e,t,n,i,o,a){var c;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(c=i.id)==null?void 0:c.replace(/::@com.sap.vocabularies/g,k.VOCWITHSLASH)];for(let l in e){let p=e[l],u=p.propertyId===t,f=t==="columns"&&p.controlType===k.ControlType.TableColumn;(u||f)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?vC(a,p,o.properties,n):us(n,p,o))}}r(py,"importFlexChangesOfTable");function SC(e,t){return e.facetId==="template"&&t}r(SC,"isStandardActionFlexChange");var fy=r((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),o=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,o);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function xC(e,t,n,i,o,a){var I;let s=!1,c=!1;a?(s=c=n.test(t.controlId),o&&(s=c&&i.test(t.controlId))):o&&(s=i.test(t.controlId));let l=t.controlId.split("::"),p=t.controlType===k.ControlType.GroupElement&&c,u=((I=t.facetId)==null?void 0:I.includes(k.ACTIONTITLEPREFIX))&&!o&&s,f=o&&fy(l,o.split("::"))&&s,d=e.title&&fy(l,e.title.split("::"),!0),b=!t.facetId&&mC.includes(t.controlType),x=SC(t,c);return p||u||f||d||b||x}r(xC,"matchSelector");function CC(e,t,n,i,o,a){var l;let s=new RegExp(`.*${a}`),c=new RegExp(`.*${o}`);for(let p in n){let u=n[p];if(u.propertyId!==i||u.controlType!==((l=e.properties[u.propertyId])==null?void 0:l[k.SchemaTag.controlType]))continue;xC(e,u,s,c,o,a)&&(t[i]=u.newValue)}}r(CC,"importFlexChanges");function PC(e,t,n,i){if(e&&t)for(let o in e){let a=t[o];a&&(J(n.logger,{severity:k.LogSeverity.Warning,message:Qi(o,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[o])}}r(PC,"checkDeprecatedProperties");function AC(e,t,n,i,o,a,s){let c=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,l,p;s!=null&&s.title?(l=e.manifest.path(t,{},s.title),p=ze(n.manifest,l),Object.values(p).length===0&&(l=e.manifest.path(t,{},c),p=ze(n.manifest,l))):(l=e.manifest.path(t,{},c),p=ze(n.manifest,l));let u=e.manifest.import;if(u&&typeof u=="function"){let f=u(p,s==null?void 0:s.id);f!==void 0&&(i[o]=f)}else{let f=e.manifest.key||o;f in p&&(i[o]=p[f])}return PC(p,a,n,l),p}r(AC,"importManifestSetting");function yt(e,t,n,i,o,a){var l,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},c=e.jsonSchema.definitions.TableColumn;for(let u in n.properties||n){let f=lt(t,u);if(u==="columns"||f!=null&&f.flex)if((l=o==null?void 0:o.type)!=null&&l.startsWith("ObjectPageSectionTableV2")||(p=o==null?void 0:o.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(u==="columns"){let d=n.properties[u].$ref.split(j)[1],b=e.jsonSchema.definitions[d];py(i.flexChanges,u,t,o,b,c)}else py(i.flexChanges,u,t,o,n);else{let d=(o==null?void 0:o.title)||(o==null?void 0:o.id);CC(n,t,i.flexChanges,u,d,a)}else f!=null&&f.manifest&&AC(f,i.pageKeys,e,t,u,s,o)}}r(yt,"transferSettingsAndFlexChanges");function dy(e,t,n,i){let o=St(t);switch(e){case"FormAction":{o=`action::${o}::${i}::${n}`;break}case"ObjectPageFooterAction":{o=`action::${o}::Determining`;break}case"ObjectPageToolBarAction":{o=o.includes("sAction::")?`action::${o.split("sAction::")[1]}`:`action::${o.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{o=`${Xg}${o}`;break}case"ObjectPageFooterActionStandard":{o=`${ba}${o}`;break}}return o.replace(/@/g,"")}r(dy,"getActionId");function EC(e,t,n,i){var o;for(let a in t){let s=t[a].$ref.split(j)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let c=(o=t[a].$ref.split("<"))==null?void 0:o[1].split(">")[0],l=dy(s,a,"","");e.actions[a]=i.factory.createInstance(k.PageTypeV2.ObjectPage,c,{}),yt(n,e[k.PropertyName.actions][a],n.jsonSchema.definitions[c],i,{},l)}}}r(EC,"fillStandardActions");function vs(e,t,n,i,o,a){var c;n[k.PropertyName.actions]={};let s=o.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let l={};a&&(l.id=a);for(let p in t){let u=Zn(p),f=dy(s,u,o,a);f&&(n[k.PropertyName.actions][u]=i.factory.createInstance(k.PageTypeV2.ObjectPage,s),yt(e,n[k.PropertyName.actions][u],e.jsonSchema.definitions[s],i,l,f)),(c=n[k.PropertyName.actions])!=null&&c[u]&&Object.keys(n[k.PropertyName.actions][u]).length===0&&delete n[k.PropertyName.actions][u]}}EC(n,t,e,i),Object.keys(n[k.PropertyName.actions]).length===0&&delete n[k.PropertyName.actions]}r(vs,"fillActions");function IC(e,t,n,i,o){var s;let a;i[t.id].form.fields={};for(let c in n){a=`${c}::GroupElement`,i[t.id].form.fields[c]=o.factory.createInstance(k.PageTypeV2.ObjectPage,"Field");let l=(s=t.title)!=null&&s.includes(k.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;yt(e,i[t.id].form.fields[c],e.jsonSchema.definitions[k.DefinitionName.Field],o,{},l),Object.keys(i[t.id].form.fields[c]).length===0&&delete i[t.id].form.fields[c]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}r(IC,"fillFields");function OC(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:i=n[`ObjectPageResponsiveTable<${t.id}>`],i}r(OC,"prepareTableSchema");function FC(e,t,n,i,o){var c,l;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||o.flexChanges){let p=((c=s==null?void 0:s.tableSettings)==null?void 0:c.type)||"ResponsiveTable",u=o.factory.createInstance(k.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=o.factory.createInstance(k.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][k.PropertyName.table]=u;let f=e.jsonSchema.definitions,d=OC(p,t,f);yt(e,i[t.id],t.schema,o,{title:t.title}),yt(e,i[t.id][k.PropertyName.table],d,o,t);let b=JSON.parse(JSON.stringify(f))[`Actions<${t.id}>`];if(b!=null&&b.properties){let x=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(l=t==null?void 0:t.id)==null?void 0:l.replace(/@/g,"::").replace(/::com/g,"com");vs(e,b.properties,i[t.id][k.PropertyName.table].toolBar,o,"ObjectPageToolBarAction",x)}Object.keys(i[t.id][k.PropertyName.table].toolBar).length===0&&delete i[t.id][k.PropertyName.table].toolBar}}r(FC,"fillTableInConfig");function NC(e,t,n,i,o){let a=e.jsonSchema.definitions[t].properties.custom,s=a?ha(a.$ref):void 0;if(s){let c={key:t.replace("@",""),target:s};fo(n[t],e,i,k.PageTypeV2.ObjectPage,c,o)}}r(NC,"fillCustomColumnsInConfig");function LC(e,t,n,i,o){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=o.factory.createInstance(k.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][k.PropertyName.chart]=o.factory.createInstance(k.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||o.flexChanges)&&(yt(e,i[t.id],t.schema,o,{title:t.title}),yt(e,i[t.id][k.PropertyName.chart],e.jsonSchema.definitions[k.DefinitionName.ObjectPageChart],o,t))}r(LC,"fillChartSection");function VC(e,t,n,i){n[t.id]=i.factory.createInstance(k.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&yt(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}r(VC,"fillHeaderSection");function jC(e,t,n,i){var l;let o=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(k.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&yt(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${o}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(l=t==null?void 0:t.id)==null?void 0:l.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&vs(e,a.properties,n[t.id].form,i,"FormAction",s);let c=e.jsonSchema.definitions[`SectionFields${o}`];c!=null&&c.properties&&IC(e,t,c.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}r(jC,"fillFormSection");function uy(e,t,n,i,o){var c;i[t.id]=o.factory.createInstance(k.PageTypeV2.ObjectPage,t.type,{subsections:{}}),o.flexChanges&&yt(e,i[t.id],t.schema,o,t);let a,s=t.schema.properties;(c=s==null?void 0:s.subsections)!=null&&c.properties?a=s.subsections.properties:a=s,Ap(e,a,n,i[t.id].subsections,o),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}r(uy,"fillSubSection");function Ap(e,t,n,i,o){var s;let a=e.jsonSchema.definitions;for(let c in t){let l=c.replace(/\/@/g,"::"),p={id:l,type:TC(t[c]),schema:t[c],title:Vc(t[c],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${c}>`],FC(e,p,n,i,o),NC(e,l,i,o.v2Page,c);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${c}>`],LC(e,p,n,i,o);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${c}>`],jC(e,p,i,o);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${c}>`],uy(e,p,n,i,o);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${c}>`],VC(e,p,i,o);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${c}>`],uy(e,p,n,i,o))}}r(Ap,"fillSectionsInConfig");function DC(e,t,n,i,o){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(k.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(k.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),c=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];yt(o,s,c,n,{id:a}),t.sections.custom.push(s)}}}r(DC,"fillCustomSectionsInConfig");function RC(e,t){var u,f;let n=t.factory.createPageInstance(k.PageTypeV2.ObjectPage);yt(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(k.PageTypeV2.ObjectPage,k.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;yt(e,n.globalTableSettings,i[k.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(k.PageTypeV2.ObjectPage,k.DefinitionName.ObjectPageHeader);let o=i[k.DefinitionName.ObjectPageHeader]?i[k.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];yt(e,n.header,o,t);let a=i[k.DefinitionName.HeaderActions];a&&vs(e,a.properties,n.header,t,"HeaderAction"),n.footer={};let s=i[k.DefinitionName.FooterActions];s&&vs(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(k.PageTypeV2.ObjectPage,"ObjectPageLayout"),yt(e,n.layout,i[k.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let c=i[k.DefinitionName.HeaderSections];if(c){let d=(u=t.v2Page.component)==null?void 0:u.settings;Ap(e,c.properties,d,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let l=i[k.DefinitionName.Sections];if(l){let d=(f=t.v2Page.component)==null?void 0:f.settings;Ap(e,l.properties,d,n.sections,t)}let p=ay(e.manifest,e.entitySet);return DC(p,n,t,i,e),n}r(RC,"fillConfig");function Ss(e){it();let t=go(e);if(!t)return;let n=e.entitySet,i=[],o=Ni(t,e.entitySet,i);if(mo(o,e.logger,n),!o)return;let a=bC(e.flex,n),s=new mt;return RC(e,{pageKeys:i,flexChanges:a,v2Page:o,factory:s})}r(Ss,"createObjectPageConfigV2");var cn=$(G());var Ip=$(oc());var Ae=$(G());var wC=["colorPalette","tabs"];function $C(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}r($C,"createCard");function gy(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),gy(e,n.join("|"))}return t}r(gy,"findAvailableId");function Er(e,t,n,i,o,a,s){i!=null&&i.properties&&Ep(e,t,n,i.properties,o,a,s)}r(Er,"transferManifestEntriesOVP");function Li(e,t,n,i){return e.createInstance(Ae.PageTypeV2.OverviewPage,i,n,t)}r(Li,"assignReflectMetadataRules");function _C(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split(j),o=e.appSchema.definitions[i[1]];t=Li(e.factory,i[1],t,"CustomCard"),Er(t,e.exportResults,e.appSchema,o,e.factory,[...e.pathHierarchy])}return t}r(_C,"processAnyOfDefinitionsOfOVP");function MC(e,t,n,i,o){e&&typeof e=="function"?e(t,n,i):typeof o=="object"&&!wC.includes(i)?t[i]=(0,Ip.default)(t[i]||{},o||{},{arrayMerge:Fc}):t[i]=o}r(MC,"checkSyncRuleForExport");function kC(e,t,n,i,o,a){let s=e.manifest.path([...t,n]),c=ze(i.manifest,s);if(n in Ae.v2.CardSettingsType||n==="settings")c.settings=(0,Ip.default)(c.settings||{},o||{},{arrayMerge:Fc});else if(o!==void 0){let l=e.manifest.export;MC(l,c,a,n,o)}else c[n]!==void 0&&delete c[n]}r(kC,"transferToManifest");function UC(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(Ae.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(o=>{var s;let a=(s=e.appSchema.definitions[o].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=Li(e.factory,i[0],e.currentObject[t],"CustomCard"),$C(t,e.exportResults.manifest[Ae.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Ae.ChangeIndicator.Updated,Er(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[Ae.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[Ae.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=Ae.ChangeIndicator.Updated)})}r(UC,"transferCards");function BC(e,t){if(t==="cards")UC(e);else{let n=wn(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,Ae.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split(j);e.currentObject=Li(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],Er(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],Ep(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],e.factory,e.pathHierarchy,e.entityPathArray)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],Ep(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}r(BC,"exportOfObject");function Ep(e,t,n,i,o,a,s){for(let c in i){if(c==="description"||s&&a&&s[a.length]!==c&&!Pc(a,s)&&a[a.length-1]!=="anyOf")continue;let l=e[c],p=lt(e,c),u={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:l,configObject:e,factory:o,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(u.currentObject=e[a[a.length-2]],l=_C(u)):l&&typeof l=="object"&&i[c]&&BC(u,c),p!=null&&p.manifest&&kC(p,a,c,t,l,e)}}r(Ep,"processProperties");function GC(e,t,n,i,o,a,s){let c;t.length===0?c=["page"]:c=t;let l=n.flex.controlId(e.baseId,i,c,n.flex.controlType,o),p=Bg(a,n,e.ui5Version,s,l),u=JSON.parse(JSON.stringify(e.exportResults.manifest));u["sap.app"].id=e.appId;let f=n.flex.createFlexChange(p,u);e.exportResults.flexChanges.find(b=>{let x=!1,I=JSON.parse(b);I={content:I.content,selector:I.selector};let O=JSON.parse(f);return O={content:O.content,selector:O.selector},JSON.stringify(I)===JSON.stringify(O)&&(x=!0),x})||e.exportResults.flexChanges.push(f)}r(GC,"evaluateFlexRule");function HC(e,t,n,i,o,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=Ae.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,o,a):s!==!1&&(n[a]=i[o]),e.exportResults.manifestChangeIndicator=Ae.ChangeIndicator.Updated}}r(HC,"exportConfigValueToManifest");function WC(e,t,n,i,o){let a=ze(e.exportResults.manifest,t),s=n.manifest.key||i;if(o[i]!==void 0)HC(e,n,a,o,i,s);else{let c=n.manifest.delete;c&&typeof c=="function"?c(a,o,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=Ae.ChangeIndicator.Updated,Vo(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}r(WC,"evaluateManifestRule");function KC(e,t,n,i,o){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},o!=null&&o.startsWith(Ae.FACETTITLEPREFIX)?o.split(Ae.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}r(KC,"getManifestPathOfSections");function JC(e,t,n,i,o){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,o.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}r(JC,"getManifestPathOfTable");function QC(e,t,n,i,o){let a;return t[0]===Ae.PropertyName.sections?a=KC(t,a,n,e,o):t[0]===Ae.PropertyName.table?a=JC(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,o):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}r(QC,"getManifestPath");function XC(e,t,n,i,o,a,s){if(!t)return;let c=i.indexOf("subsections");for(;c>-1;)i.splice(c-1,2),c=i.indexOf("subsections");if(t.flex)GC(e,i,t,o,a,n,s);else if(t.manifest){let l=QC(e,i,t,n,a);WC(e,l,t,s,n)}}r(XC,"evaluateExportRule");function qC(e,t,n){var s;let i=e.split("|"),o=i[1],a=i[2];if(o===t.entitySet){let c=(s=t.config)==null?void 0:s.filter(l=>(l.tabKey===a||a===void 0&&l.tabKey===""||a&&t.sectionKey===a)&&l.extensionType===t.extensionType);if((!c||c.length===0)&&(ja(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Ae.ViewTemplateType.ResponsiveTableColumnsExtension))){let l=e.replace(Ae.ViewTemplateType.ResponsiveTableColumnsExtension,Ae.ViewTemplateType.ResponsiveTableCellsExtension);ja(n,l,t.appId,t.exportResults.fragments),delete n[l]}}}r(qC,"deleteObsoleteColumn");function zC(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=Cm(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let o in n)o.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Ae.ChangeIndicator.Updated,qC(o,e,n))}r(zC,"deleteObsoleteColumnsFromFragment");function YC(e,t,n,i,o){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:c,viewTemplateType:l}=Da(n,i,s.tabKey||o,s.extensionType);a[c]||(a[c]={viewTemplateType:l,columns:[]}),a[c].columns.push(s)}return a}r(YC,"clusterConfigColumnsByPath");function my(e,t,n,i){if(!e.v2Page)return;let o=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let c in Ae.v2.TableColumnExtensionTypeV2){let{path:l}=Da(e.v2Page,s,o,c);if(!l)continue;let p={path:l,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:o,extensionType:c,appId:e.appId};try{zC(p)}catch(u){e.logger.error(u.message)}}if(t){let c=YC(t,n,e.v2Page,s,o);for(let l in c)ll(e.exportResults,l,c[l].columns,e.appId,c[l].viewTemplateType,e.logger)}}r(my,"transferColumnExtensions");function ZC(e,t,n,i,o,a){let s=[],c=n.split("|")[1];if(!t)return;for(let p of t){let u=gy(s,[p.relativePosition,c,p.relatedFacet].join("|"));s.push(u)}for(let p=0;p<s.length;p++){let f=a.anyOf.find(b=>{var x;return(x=b.$ref)==null?void 0:x.includes(t[p].constructor.name)}).$ref.split(j),d=e.appSchema.definitions[f[f.length-1]];ei(e,t[p],i,[...o,s[p]],d)}let l=ze(e.exportResults.manifest,kc());for(let p in l)bp(p,c)&&!s.includes(p)&&delete l[p]}r(ZC,"transferManifestExtensions");function eP(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Ae.PropertyName.table){n=e[i-1];break}return et(n,t)}r(eP,"getSectionId");function tP(e,t,n,i,o,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(c=>{let l=wn(t.appSchema,n,e[c],s.additionalProperties,i,t.factory,t.pageType);ei(t,l.configObject,o,[...a,i],l.targetDefinition,c)})}r(tP,"transferIndexTable");function nP(e,t,n,i,o,a){let s,c=ha(e.$ref);c&&(s={target:c,key:eP(t,n)}),my(i,o==null?void 0:o.custom,a.targetDefinition,s)}r(nP,"transferCustomColumns");function iP(e,t,n,i,o,a,s){e.anyOf.forEach(c=>{let l=wn(t.appSchema,n,i,c,o,t.factory,t.pageType);l&&ei(t,l.configObject,a,[...s,o],l.targetDefinition,l.title)})}r(iP,"handleAnyOfDefinitions");function oP(e,t,n,i,o,a,s){let c=e.propertyDefinition;if((c==null?void 0:c.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&o==="custom")ZC(e,n[o],e.pageKeys[e.pageKeys.length-1],i,[...t,o],c==null?void 0:c.items);else if(a&&o==="custom"){nP(c,t,s,e,n,a);return}else a?ei(e,a.configObject,i,[...t,o],a.targetDefinition,a.title):c.anyOf&&iP(c,e,s,n==null?void 0:n[o],o,i,t)}r(oP,"transferComplexProperty");function ei(e,t,n,i,o,a){let s;if(o!=null&&o.properties)for(let c in o.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==c&&!Pc(i,e.entityPathArray))continue;s=t==null?void 0:t[c];let l=t&&Fg(t,c),p=l?[...n,l]:n,u=lt(t,c),f=e.propertyDefinition=o.properties[c],d=e.nextDefinition=wn(e.appSchema,a,s,f,c,e.factory,e.pageType);if(XC(e,u,t,[...i],p,a,c),tP(s,e,a,c,p,i),s===void 0||typeof s=="object")oP(e,i,t,p,c,d,a);else if((f==null?void 0:f.$ref)===j+"TableCustomColumns"){my(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}r(ei,"transferManifestEntriesAndFlexChange");function yy(e,t,n,i,o,a){let s=t[t.length-1],c=e.jsonSchema.definitions[s];n[i]=Li(o,i,n[i],s),a.push(i),Op(o,n[i],e,c.properties,a)}r(yy,"transferSettingsOfRef");function rP(e,t,n,i,o,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split(j);yy(i,s,e,t,o,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let c=`${j}${cn.v2.cardTemplateSettingsMap[e.template]}`.split(j);yy(i,c,e,t,o,a)}}r(rP,"processPropertiesOfObject");function aP(e,t,n,i,o,a){let s=lt(e,t);if(s!=null&&s.manifest){let c=s.manifest.path([...n,t]),l=ze(i.manifest,c);if(Object.prototype.hasOwnProperty.call(l,t))try{ya(s,l,t,e)}catch(p){J(i.logger,{severity:cn.LogSeverity.Error,message:w.t("XMLPARSEFAILURE",{error:Tg(p)}),location:{path:c}})}}else t!=="cards"&&t!=="$schema"&&typeof o[t]=="object"&&rP(e,t,o,i,a,n)}r(aP,"processOvpProperty");function Op(e,t,n,i,o){for(let a in i)aP(t,a,o,n,i,e)}r(Op,"processOvpProperties");function sP(e,t,n){Op(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[cn.ManifestSection.ovp].cards).forEach(i=>{let o=t.manifest[cn.ManifestSection.ovp].cards[i].template,a=cn.v2.cardTemplateTypeMap[o]??"CustomCard";e.cards[i]=Li(n,a,{},"CustomCard"),e.cards=Li(n,a,e.cards,"CustomCard"),Op(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}r(sP,"addSettings");function xs(e){let t=new mt,n=t.createPageInstance(cn.PageTypeV2.OverviewPage);return e.jsonSchema&&sP(n,e,t),n}r(xs,"createOverviewPageConfig");var je=$(G());function cP(e,t,n,i){var p,u;let o=ms(e.manifest,i),a=e.jsonSchema.definitions;ys(t,n,a),t.table=n.createInstance(je.PageTypeV2.AnalyticalListPage,`ALP${o}`,t.table);let s=a[`ALP${o}<LineItems>`];if(tt(t.table,e.manifest,s,i,e.logger),Pp(e,s,t),t.table.toolBar=n.createInstance(je.PageTypeV2.AnalyticalListPage,je.DefinitionName.ToolBar,{actions:{}}),tt(t.table.toolBar,e.manifest,a[je.DefinitionName.ToolBar],i,e.logger),a[je.DefinitionName.ActionsLR])for(let f in a[je.DefinitionName.ActionsLR].properties){let d=Zn(f);t.table.toolBar.actions[d]=n.createInstance(je.PageTypeV2.AnalyticalListPage,je.DefinitionName.Action),tt(t.table.toolBar.actions[d],e.manifest,a[je.DefinitionName.Action],i,e.logger)}t.filterBar=n.createInstance(je.PageTypeV2.AnalyticalListPage,je.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),tt(t.filterBar,e.manifest,a[je.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),t.chart=n.createInstance(je.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),tt(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let c=a[je.DefinitionName.FooterActionsLR];if(c)for(let f in c.properties){let d=Zn(f);t.footer.actions[d]=n.createInstance(je.PageTypeV2.AnalyticalListPage,je.DefinitionName.FooterAction),tt(t.footer.actions[d],e.manifest,a[je.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let l=(u=(p=e.manifest[je.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:u.keyPerformanceIndicators;l&&Object.keys(l).forEach(f=>{t.keyPerformanceIndicators[f]=n.createInstance(je.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(je.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),tt(t.keyPerformanceIndicators[f],e.manifest,a.KPISettings,i,e.logger,f)})}r(cP,"addSettings");function Cs(e){if(it(),!go(e))return;let n=new mt,i=n.createPageInstance(je.PageTypeV2.AnalyticalListPage),o=[],a=yo(e.manifest[je.ManifestSection.generic].pages,o,e.logger);if(mo(a,e.logger,a==null?void 0:a.entitySet),!!a)return cP(e,i,n,o[0]),e.flex.forEach(s=>{Ot(s)&&gs(i,s,e.jsonSchema,e.logger)}),fo(i,e,a,je.PageTypeV2.AnalyticalListPage),hs(i),i}r(Cs,"createAnalyticalListPageConfig");var Lt=$(G());var lP=["filterBar","table","footer"];function Fp(e,t,n,i){xa(e,n,"QuickVariant"),gm(n,"QuickVariantX",t),mm(i,n,"QuickVariantX")}r(Fp,"addEnumForVariantPaths");function hy(e,t){var u,f,d,b,x,I,O;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=j+Xi,n.properties.table.anyOf[1].$ref=j+jo,n.properties.table.anyOf[2].$ref=j+Do,n.properties.table.anyOf[3].$ref=j+Ro;let i=JSON.parse(JSON.stringify(n.definitions.ResponsiveTable)),o=JSON.parse(JSON.stringify(n.definitions.TreeTable)),a=JSON.parse(JSON.stringify(n.definitions.AnalyticalTable)),s=JSON.parse(JSON.stringify(n.definitions.GridTable)),c={$ref:j+Lt.DefinitionName.LineItems};i.properties.columns=c,o.properties.columns=c,a.properties.columns=c,s.properties.columns=c;let l=j+Lt.DefinitionName.ToolBarLR;n.definitions[Xi]=i,n.definitions[Xi].properties.toolBar.$ref=l,n.definitions[jo]=o,n.definitions[jo].properties.toolBar.$ref=l,n.definitions[Do]=a,n.definitions[Do].properties.toolBar.$ref=l,n.definitions[Ro]=s,n.definitions[Ro].properties.toolBar.$ref=l;let p=(u=e.entitySet)==null?void 0:u.entityType;if(!p)(f=e.entitySet)!=null&&f.name&&J(e.logger,{severity:Lt.LogSeverity.Error,message:w.t("NOENTITYTYPE4SET",{entitySetName:(d=e.entitySet)==null?void 0:d.name})});else{Yi(n);let _=(x=(b=p==null?void 0:p.annotations)==null?void 0:b.UI)==null?void 0:x.LineItem;_&&Jg.forEach(Q=>{n.definitions[Q][Lt.SchemaTag.annotationPath]=Gt(p==null?void 0:p.fullyQualifiedName,_.term,_.qualifier)}),qi(!1,n,_,p);let ie=(O=(I=p==null?void 0:p.annotations)==null?void 0:I.UI)==null?void 0:O.SelectionFields;va(n,ie,p);let q=[],Z=uo(e.manifest[Lt.ManifestSection.generic].pages,q);if(!Z)return J(e.logger,{severity:Lt.LogSeverity.Error,message:w.t("NOLR"),location:{path:Lt.MANIFESTPATH,range:[Lt.ManifestSection.generic]}}),n;zi(n,p,Z,e.manifest,e.fragments),Fp(p,e.entitySet,n,e.serviceAVT),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return Ki(n,lP),n}r(hy,"generateListReportSchemaV2");var Y=$(G());var Ir=r(e=>({flexChanges:[],manifest:{[Y.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:Y.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:Y.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function by(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===Y.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(Y.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(Y.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}r(by,"getClassesForSingleSection");function Ty(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],by(n,i,t),Ty(n,t)}}r(Ty,"getSubsectionClasses");function pP(e,t,n){let i;for(let o in e.sections)i=t.sections[o],by(i,o,n),Ty(i,n)}r(pP,"getExportClassesForSections");function fP(e,t){let n=uo(t.manifest[Y.ManifestSection.generic].pages,e);if(!n){J(t.logger,{severity:Y.LogSeverity.Error,message:w.t("NOLR"),location:{path:Y.MANIFESTPATH,range:[Y.ManifestSection.generic]}});return}if(!n.component){J(t.logger,{severity:Y.LogSeverity.Error,message:w.t("COMPONENTNOTDEFINED",{pageName:Y.PageTypeV2.ListReport}),location:{path:Y.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}r(fP,"findV2Page");function Np(e,t){let n=Ng(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}r(Np,"calculateBaseId");function vy(e,t,n=!1){let i=Ir(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let o=e.page.config;if(o&&Object.keys(o).length!==0){let a=[],s=fP(a,e),c=new mt,l=c.createPageInstance(Y.PageTypeV2.ListReport,o),p={v2Page:s,exportResults:i,appId:e.appId,baseId:Np(l,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:a,pageType:Y.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ei(p,l,[],[],e.jsonSchema)}return i}r(vy,"exportListReportPage");function Sy(e,t,n=!1){let i=e.page.config,o=Ir(e.fragments);o.flexChanges=[],o.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=yo(e.manifest[Y.ManifestSection.generic].pages,a,e.logger);if(!s)return o;if(s.component.settings||(s.component.settings={}),o.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let c=new mt,l=c.createPageInstance(Y.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:o,appId:e.appId,baseId:Np(l,e),appSchema:e.jsonSchema,ui5Version:t,factory:c,pageKeys:a,pageType:Y.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ei(p,l,[],[],e.jsonSchema)}return o}r(Sy,"exportAnalyticalListPage");function xy(e,t,n=!1){let i=e.page.config,o=e.page.entitySet,a=Ir(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],c=Ni(e.manifest[Y.ManifestSection.generic].pages,o,s);if(!c)return J(e.logger,{severity:Y.LogSeverity.Error,message:w.t("NOOBJECTPAGE",{entitySetName:o}),location:{path:Y.MANIFESTPATH,range:[Y.ManifestSection.generic]}}),a;let l=new mt,p=l.createPageInstance(Y.PageTypeV2.ObjectPage,i);if(i.sections&&pP(i,p,l),Object.keys(i).length!==0){let u={v2Page:c,exportResults:a,appId:e.appId,baseId:Np(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:s,pageType:Y.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ei(u,p,[],[],e.jsonSchema)}}return a}r(xy,"exportObjectPage");var Cy=r(e=>{let t=Ir();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new mt,i=n.createPageInstance(Y.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Er(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),uP=r((e,t,n)=>{var s;let i=Ir();i.manifest=JSON.parse(JSON.stringify(t));let o=Object.assign(new Pa,e);o.settings=Object.assign(new _n,e.settings);for(let c in n.definitions.AppSettings.properties){let l=lt(o.settings,c);if(l&&l.manifest){let p=l.manifest.path(),u=ze(i.manifest,p);e.settings&&e.settings[c]!==void 0?u[c]=e.settings[c]:(delete u[c],Vo(i.manifest,p,!1))}}let a=(s=i.manifest[Y.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&Mc(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function Py(e,t){if(e[Y.SchemaType.ListReport])return Vp(e[Y.SchemaType.ListReport],t);if(e[Y.SchemaType.ObjectPage])return xy(e[Y.SchemaType.ObjectPage],t);if(e[Y.SchemaType.OverviewPage])return Cy(e[Y.SchemaType.OverviewPage]);if(e[Y.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:o}=e[Y.SchemaType.Application];return uP(n,i,o)}else if(e[Y.SchemaType.AnalyticalListPage])return Sy(e[Y.SchemaType.AnalyticalListPage],t)}r(Py,"exportPageV2");function Lp(e,t,n=!1){if(e[Y.SchemaType.ListReport])return Vp(e[Y.SchemaType.ListReport],t,n);if(e[Y.SchemaType.ObjectPage])return xy(e[Y.SchemaType.ObjectPage],t,n);if(e[Y.SchemaType.OverviewPage])return Cy(e[Y.SchemaType.OverviewPage]);if(e[Y.SchemaType.AnalyticalListPage])return Sy(e[Y.SchemaType.AnalyticalListPage],t,n)}r(Lp,"exportConfigEntityByPathV2");var Ln=$(G());var As=$(G());var Ay=$(G());function Ey(e,t=[]){return e.concat(["component","settings"]).concat(t)}r(Ey,"getManifestPathToPageSettings");function ln(e,t,n){let i=e,o=t.every(function(a){return!i||typeof i!="object"||Array.isArray(i)&&typeof a!="number"?!1:(i=i[a],!0)})&&typeof i=="object"&&i!==null;return{hasPath:o,value:o&&n?i[n]:void 0,parent:o?i:void 0}}r(ln,"getManifestPropertyByPath");function Nn(e){return e!==null&&typeof e=="object"}r(Nn,"isDefinition");function Ps(e,t,n,i,o,a,s){let c=n[Ay.SchemaTag.conversionExit],l=c==null?void 0:c.name,p=t?t(l):void 0;if(!p)return i;let u=c.params;return e?p.appToConfig(i,u,o??[],n,s):p.configToApp(i,u,o??[],n,a)}r(Ps,"executeConversionExit");function jp(e,t,n,i="string",o=!1){let a;if(e===void 0)a=o;else if(e===null||typeof e!="object")a=!0;else{let s=e[t];s===void 0?a=o:a=typeof s!==i||s===null&&o}return a&&J(n,{severity:As.LogSeverity.Error,message:w.t("TYPEERROR",{propertyName:t,expectedType:i})}),a}r(jp,"hasPropertyTypeError");var ZL=Symbol("Property is suppressed without explanation");function Oy(e,t){e.anyOf&&e.anyOf.forEach(function(n){Vi(n,t)})}r(Oy,"addAnyOfToReferredTypes");function Is(e){return typeof e.items!="object"||Array.isArray(e.items)?void 0:e.items}r(Is,"getSingleItem");function Vi(e,t){if(typeof e!="object")return;let n=Tn(e);n&&Fy(n,t),Oy(e,t),Vi(e.additionalProperties,t),Vi(Is(e),t)}r(Vi,"addReferredTypesFromElement");function Fy(e,t){t.referredTypeNames.add(e);let n=t.types[e];Vi(n,t);let i=n.properties;i?Object.values(i).forEach(o=>Vi(o,t)):Vi(Is(n),t),Vi(n.additionalProperties,t)}r(Fy,"addReferredTypesFromType");function Es(e,t,n,i,o){if(typeof t!="object")return;let a=Tn(t);if(a){let s=o.types[a];if(s||(s=e==null?void 0:e.refTypeDefinition,o.types[a]=s),e){let c;if(e.suffix){let p=`${a}<${e.suffix}>`;t.$ref=Sg(p),c=structuredClone(s),o.types[p]=c,o.referredTypeNames.add(p)}else o.referredTypeNames.add(a),c=s;let l={pageInfo:i.pageInfo,specificParams:e.specificParams||i.specificParams};Dp(n,l,e.syncRuleProvider,c,o)}else Fy(a,o)}else Dp(n,i,e==null?void 0:e.syncRuleProvider,t,o)}r(Es,"applyAdaptationInfoToElement");function Iy(e,t,n,i){let o=i==null?void 0:i.elementAdapter;return o?o(n,t,e):{}}r(Iy,"applySyncRuleToElement");function Dp(e,t,n,i,o){var d,b;let a=Ig(n),s=Iy(e,t,i,a);if(!s)return;Es(s.additionalPropertiesAdaptation,i.additionalProperties,e,t,o);let c={pageInfo:t.pageInfo,specificParams:((d=s.referenceAdaptation)==null?void 0:d.specificParams)||t.specificParams},l=i.properties,p;if(l)p=l;else{let x=Is(i);if(x)l={items:x},p=i;else return}let u,f=((b=s.referenceAdaptation)==null?void 0:b.processingRuleProvider)||function(x,I){u=u||n&&new n;let O=lt(u,x);return Iy(e,c,I,O)};for(let x in l){let I=l[x];if(typeof I!="object"){p[x]=I;continue}let O={...I},_=f(x,O);_?(_.controlId?O[Ln.SchemaTag.controlId]=`${t.pageInfo.controlId}--${_.controlId}`:_.manifestPath&&(O[Ln.SchemaTag.artifactType]="Manifest",O[Ln.SchemaTag.manifestPath]=_.manifestPath),Oy(O,o),Es(_.referenceAdaptation,O,e,c,o),Es(_.additionalPropertiesAdaptation,O.additionalProperties,e,c,o),Es(_.itemsAdaptation,Is(O),e,c,o),p[x]=O):delete p[x]}}r(Dp,"adjustElement");function dP(e,t,n){let i=t.split("."),o=i[i.length-1],a=t+".view."+(o==="ObjectPage"?"Details":o);return`${e}::${a}::${n}`}r(dP,"getViewId");function Ny(e,t,n){var q;it();let i=li(e.manifest,Ln.FioriElementsVersion.v2,n);if(!i||i===Ln.TemplateType.OverviewPageV2)return;let{parent:o}=ln(e.manifest,e.pagePath);if(!o)return;let a=o.component;if(jp(o,"entitySet",n,"string",!0)||jp(a,"name",n,"string",!0))return;let s=o.entitySet,c=a.name,l=t(c),p=l==null?void 0:l.genericSchema,u=l==null?void 0:l.syncRuleProvider;if(!u||!p)return p;let f=e.parsedAnnotations||ci(e.annotations,n),d=(q=f==null?void 0:f.entitySets)==null?void 0:q.find(Z=>Z.name===s);if(!d)return p;let b=structuredClone(p),x=dP(e.appId,c,s),O={pageInfo:{appId:e.appId,componentName:c,entitySet:s,controlId:x,pagePath:e.pagePath}},_={templateType:i,manifest:e.manifest,serviceAVT:f,fioriElementsVersion:Ln.FioriElementsVersion.v2,entitySet:d,fragments:e.fragments,logger:n,entityType:d.entityType},ie={types:b.definitions,referredTypeNames:new Set};Dp(_,O,u,b,ie);for(let Z in b.definitions)ie.referredTypeNames.has(Z)||delete b.definitions[Z];return b}r(Ny,"getAdaptedSchema");var Ns=$(G());var Rp=$(G());var Ly=$(G());var Fs=class Fs{};r(Fs,"Share"),m([y({flex:{controlType:r(()=>Ly.ControlType.Button,"controlType"),createFlexChange:D},elementAdapter:r(()=>({controlId:"template::Share"}),"elementAdapter")})],Fs.prototype,"visible",2);var Os=Fs;var ti=class{};r(ti,"ListHeaderActions"),m([y({elementAdapter:r(()=>({referenceAdaptation:{syncRuleProvider:Os}}),"elementAdapter")})],ti.prototype,"Share",2),ti=m([y({elementAdapter:r(function(e){return e[Rp.SchemaTag.icon]="Export",{}},"elementAdapter")})],ti);var Vn=class{};r(Vn,"ListHeader"),m([y({elementAdapter:r(()=>({referenceAdaptation:{syncRuleProvider:ti}}),"elementAdapter")})],Vn.prototype,"actions",2),Vn=m([y({elementAdapter(e){return e[Rp.SchemaTag.icon]="Header",{}}})],Vn);var Qt=class{};r(Qt,"ListReportNew"),m([y({flex:{controlType:r(()=>Ns.ControlType.DynamicPage,"controlType"),createFlexChange:D},elementAdapter(){return{controlId:"page"}}})],Qt.prototype,"fitContent",2),m([y({elementAdapter:r(function(t){return t[Ns.SchemaTag.propertyIndex]=0,{referenceAdaptation:{syncRuleProvider:Vn}}},"elementAdapter")})],Qt.prototype,"header",2),Qt=m([tn({id:ry,pageId:Cr}),y({elementAdapter(e,t,n){let i=Ey(t.pageInfo.pagePath),{entityType:o,uIAnnotations:a}=im(n),{value:s}=ln(n.manifest,i);return{referenceAdaptation:{specificParams:{settings:s,entityType:o,uIAnnotations:a}}}}})],Qt);var Mp=require("path"),My=require("fs");var Vt=$(G());function gP(e){let t={};return e.flex.forEach(function(i){let o=Ot(i);if(o){let a=o,s=t[a.controlId]||[];s.push(a),t[a.controlId]=s}}),t}r(gP,"getChangeMapFormImportParameters");function wp(e,t,n,i,o){if(e===void 0)return;let a=Tn(t),s=a?n[a]:void 0;if(t[Vt.SchemaTag.conversionExit]&&(e=Ps(!0,o.conversionExitProvider,t,e,i.fragments,void 0,i.logger),!s))return e;if(s)return wp(e,s,n,i,o);if(t.type==="object"&&t.properties&&typeof e=="object"){let c={},l=!1;for(let p in t.properties){let u=t.properties[p],f=wp(e[p],u,n,i,o);f!==void 0&&(l=!0,c[p]=f)}return l?c:void 0}return t.type==="array"&&!Array.isArray(e)?typeof e=="string"&&e!==""?e.split(","):void 0:e}r(wp,"getConfigRep");function Vy(e,t,n,i,o,a,s,c){let l=wp(o,a,s,c,t);if(l===void 0)return;let p=e,u=[];n.forEach(function(f){u.push(f);let d=f.propertyName;p[d]=p[d]||t.propertyInstanceProvider(u),p=p[d]}),p[i]=l}r(Vy,"transferValueToConfig");function mP(e,t,n,i,o,a,s,c){let l=o[Vt.SchemaTag.controlId],p=c[l];if(!p)return;let u=-1,f=p.find(function(d,b){return d.content.property===i?(u=b,!0):!1});f&&(Vy(e,t,n,i,f.type==="propertyBindingChange"?f.content.newBinding:f.content.newValue,o,a,s),p.length===1?delete c[l]:p.splice(u,1))}r(mP,"importFlexChangesToConfigProperty");function yP(e,t,n,i,o,a,s){let c=o[Vt.SchemaTag.manifestPath],l,p;Array.isArray(c)?(p=c,l=!0):(p=c.path,l=c.addTargetPropertyToPath);let{hasPath:u,value:f,parent:d}=ln(s.manifest,p,l?i:void 0);if(!u)return;Vy(e,t,n,i,l?f:d,o,a,s)}r(yP,"importManifestToConfigProperty");function jy(e,t,n,i,o,a,s){if(Nn(n.properties))for(let c in n.properties){let l=n.properties[c];if(!Nn(l))continue;let p=l[Vt.SchemaTag.artifactType];if(p===Vt.ArtifactType.FlexChange)mP(e,t,i,c,l,o,a,s);else if(p===Vt.ArtifactType.Manifest&&l[Vt.SchemaTag.manifestPath])yP(e,t,i,c,l,o,a);else{let u=Tn(l),f=u?o[u]:void 0;if(Nn(f)){let d=i.concat([{propertyName:c,propertyType:u.split("<")[0]}]);jy(e,t,f,d,o,a,s)}}}}r(jy,"importDefinitionIntoConfig");function Dy(e,t,n){var f;let i=li(e.manifest,Vt.FioriElementsVersion.v2,e.logger);if(!i||i===Vt.TemplateType.OverviewPageV2)return;let{parent:o}=ln(e.manifest,t),a=(f=o==null?void 0:o.component)==null?void 0:f.name,s=typeof a=="string"?n(a):void 0;if(!s)return;let c=gP(e),l=e.jsonSchema,p=l.definitions,u=s.propertyInstanceProvider([]);return jy(u,s,l,[],p,e,c),u}r(Dy,"getConfigForPage");var ct=$(G());function hP(e,t,n,i){let o=t===void 0?null:t,a=typeof o=="string"&&o.startsWith("{");i.push({controlId:e[ct.SchemaTag.controlId],controlType:e[ct.SchemaTag.controlType],propertyName:n,newValue:o,isBinding:a})}r(hP,"addFlexChangeInfoToList");function Ry(e,t,n,i){var c;if(n[ct.SchemaTag.conversionExit])return Ps(!1,i.conversionExitProvider,n,e,i.fragments,t);if(n.type==="array"&&((c=n.items)==null?void 0:c.type)==="string")return!Array.isArray(e)||e.length===0?t===""||typeof t!="string"?t:void 0:e.join(",");if(e===t||n.type!=="object"||!n.properties)return e;let o=typeof t=="object"&&t!==null?{...t}:{},a=!1,s=!1;for(let l in n.properties){let p=n.properties[l];if(!Nn(p))continue;let u=Tn(p);p=u&&i.globalTypeDefinitions[u]||p;let f=o[l];s=s||f!==void 0;let d=Ry(e?e[l]:void 0,f,p,i);d===void 0?delete o[l]:(o[l]=d,a=!0)}return a?o:s?Object.keys(t).every(l=>Nn(n.properties[l]))?void 0:o:t}r(Ry,"getValueForManifest");function $p(e,t){if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e!==t;if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length||e.some(function(o,a){return $p(o,t[a])}):!0;let n=Object.keys(e).filter(o=>e[o]!==void 0),i=Object.keys(t).filter(o=>t[o]!==void 0);return n.length!==i.length||n.some(function(o){return $p(e[o],t[o])})}r($p,"isDifferent");function bP(e){return!e||!Object.keys(e).some(t=>e[t]!==void 0)}r(bP,"isEmpty");function TP(e,t,n,i,o){let a=n.manifest,s=e.length-1,c=e[s],l=[];e.some(function(f,d){if(d===s)return!0;let b=a[f];if(typeof b!="object"||b===null)return!0;a=b,l.push(a)});let p=l.length===s?a[c]:void 0,u=Ry(t,p,i,o);if($p(u,p))if(u===void 0){n.manifestChangeIndicator=ct.ChangeIndicator.Deleted;for(let f=s;f>0;f--){let d=l[f];if(!bP(d))break;let b=l[f-1],x=e[f];delete b[x]}}else{for(let f=l.length;f<s;f++){let d={};a[e[f]]=d,a=d}a[c]=u,n.manifestChangeIndicator=p===void 0?ct.ChangeIndicator.Created:ct.ChangeIndicator.Updated}}r(TP,"applyManifestChange");function vP(e,t,n,i,o){let a=e==null?void 0:e[n],s=i[ct.SchemaTag.artifactType];if(s===ct.ArtifactType.FlexChange)hP(i,a,n,t.flexList);else if(s===ct.ArtifactType.Manifest&&i[ct.SchemaTag.manifestPath]){let c,l=i[ct.SchemaTag.manifestPath];Array.isArray(l)?c=l.concat([n]):(c=l.path,l.addTargetPropertyToPath&&(c=c.concat([n]))),TP(c,a,t,i,o)}else{let c=Tn(i),l=c?o.globalTypeDefinitions[c]:void 0;Nn(l)&&wy(a,t,l,o)}}r(vP,"transferConfigPropertyToExportResults");function wy(e,t,n,i){let o=n.properties||{};for(let a in o){let s=n.properties[a];Nn(s)&&vP(e,t,a,s,i)}}r(wy,"transferConfigToExportResults");function $y(e){let t=e.config,n=e.jsonSchema.definitions,i=(e.fragments||[]).map(function(s){return{...s,changeIndicator:ct.ChangeIndicator.NoChange}}),o={globalTypeDefinitions:n,conversionExitProvider:e.conversionExitProvider,fragments:i},a={manifest:structuredClone(e.manifest),manifestChangeIndicator:ct.ChangeIndicator.NoChange,flexList:[],fragments:i};return wy(t,a,e.jsonSchema,o),a}r($y,"exportPage");var SP=!1,xP={generateListReportSchemaV2(e,t){return hy(e,t)},createListReportConfig(e){return ly(e)},exportListReportPage(e,t,n){return vy(e,t,n)}},_p;function CP(){let e;if(__dirname.endsWith("dist"))e=__dirname;else{let i=__dirname.lastIndexOf("specification");e=(0,Mp.join)(__dirname.substring(0,i+13),"dist")}let t=(0,Mp.join)(e,"schemas","v2","ListReportNewConfig.json");return JSON.parse((0,My.readFileSync)(t,"utf8"))}r(CP,"getPersistentListReportNewSchema");function PP(){let e=CP();return function(t){return t===Cr?{genericSchema:e,syncRuleProvider:Qt}:void 0}}r(PP,"createGenericSchemaInfoProvider");function AP(e){return e===Cr?{propertyInstanceProvider:r(function(t){return new Qt},"propertyInstanceProvider")}:void 0}r(AP,"getConfigInfo");function _y(e){let{value:t}=ln(e,[pn.ManifestSection.generic],"pages");return Array.isArray(t)?[pn.ManifestSection.generic,"pages",0]:t&&typeof t=="object"?[pn.ManifestSection.generic,"pages",Object.keys(t)[0]]:void 0}r(_y,"getPathForRootPage");function EP(e,t,n){let i=!e.layer||e.layer===pn.FlexChangeLayer.Customer,o={controlId:n.controlId,controlType:n.controlType,content:{property:n.propertyName},sapui5Version:e.ui5Version,isCustomer:i};return n.isBinding?(o.content.newBinding=n.newValue,o.type="propertyBindingChange"):o.content.newValue=n.newValue,D(o,t)}r(EP,"flexInfoToChangeString");function IP(){let e=PP(),t=r(function(n,i,o){let a=structuredClone(i.manifest);return a[pn.ManifestSection.app].id=n,i.flexList.map(EP.bind(null,o,a))},"getFlexChangesAsStrings");return{generateListReportSchemaV2(n){var s;let i=n.manifest,o=_y(i);if(!o)return null;let a={appId:((s=i[pn.ManifestSection.app])==null?void 0:s.id)||"",manifest:i,pagePath:o,annotations:[],parsedAnnotations:n.serviceAVT,fragments:n.fragments};return Ny(a,e,n.logger)},createListReportConfig(n){let i=_y(n.manifest);return Dy(n,i,AP)},exportListReportPage(n,i,o){let a=n.fragments?n.fragments.map(function(p){return{...p,changeIndicator:pn.ChangeIndicator.NoChange}}):[],s={appId:n.appId,config:n.page.config,manifest:n.manifest,jsonSchema:n.jsonSchema,fragments:a,logger:n.logger},c=$y(s),l=t(n.appId,c,i);return{manifest:c.manifest,fragments:c.fragments,flexChanges:l,manifestChangeIndicator:c.manifestChangeIndicator}}}}r(IP,"createPageHandlerLRGeneric");function kp(){return SP?(_p=_p||IP(),_p):xP}r(kp,"getPageHandlerLR");function Or(e,t){return kp().generateListReportSchemaV2(e,t)}r(Or,"generateListReportSchemaV2");function Ls(e){return kp().createListReportConfig(e)}r(Ls,"createListReportConfig");function Vp(e,t,n=!1){return kp().exportListReportPage(e,t,n)}r(Vp,"exportListReportPage");function js(e,t){var n,i;return(n=e.component)!=null&&n.name?da(bn((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}r(js,"generateId");function OP(e,t,n,i,o,a,s){e.navigation={};let c=ky(t.pages,n,i,o,a);for(let l in c){let p=c[l];s[l]=p}for(let l in t.pages){let p=js(t.pages[l],l);e.entitySet?e.navigation[p]=c[p].navigationProperty?`${e.entitySet}.${c[p].navigationProperty}`:e.entitySet:e.navigation[p]=c[p].navigationProperty?c[p].navigationProperty:p}}r(OP,"getPageConfigsAndNavigations");function ky(e,t,n,i,o,a){var c;let s={};for(let l in e){let p=e[l],u=js(p,l);if(!u)continue;let f={pageType:bn((c=p.component)==null?void 0:c.name),entitySet:p.entitySet,...p.navigationProperty&&{navigationProperty:p.navigationProperty},...p.defaultLayoutType&&{defaultLayoutType:p.defaultLayoutType}};s[u]=f;let d=Object.keys(i).find(b=>b.includes(u))||Object.keys(i).find(b=>b.includes(u.slice(0,-1)))||Object.keys(i).find(b=>b.includes(f.pageType));if(d)if(f.pageType===Be.PageTypeV2.ListReport){let b={manifest:n,flex:t,jsonSchema:i[d],fragments:o,logger:a};f.config=Ls(b)}else if(f.pageType===Be.PageTypeV2.AnalyticalListPage){let b={manifest:n,flex:t,jsonSchema:i[d],fragments:o,logger:a};f.config=Cs(b)}else{let b={manifest:n,flex:t,jsonSchema:i[d],entitySet:f.entitySet,fragments:o,logger:a};f.config=Ss(b)}p.pages&&OP(f,p,t,n,i,o,s)}return s}r(ky,"getPagesAndConfigs");var Up=class Up extends eo{constructor(t){it();let n;t.manifest[Be.ManifestSection.generic]?n=t.manifest[Be.ManifestSection.generic].pages:J(t.logger,{severity:Be.LogSeverity.Error,message:w.t("NOFE"),location:{path:Be.MANIFESTPATH,range:[Be.ManifestSection.generic]}}),n||J(t.logger,{severity:Be.LogSeverity.Error,message:w.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:Be.MANIFESTPATH,range:[Be.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],o=n&&js(n[i],i),a=new _n,s=Ze(Be.SchemaType.Application),c=t.appSchemas[s.filename];tt(a,t.manifest,c.definitions.AppSettings,void 0),super(t.manifest,t.appSchemas,o,ky(n,t.flexChanges,t.manifest,t.appSchemas,t.fragments,t.logger),Be.FioriElementsVersion.v2,a)}};r(Up,"V2AppProvider");var Vs=Up;function Fr(e,t,n){var o,a;let i={};for(let s in e){let c=e[s];if((o=c.component)!=null&&o.name||J(n,{severity:Be.LogSeverity.Error,message:w.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:Be.MANIFESTPATH}}),((a=c.component)==null?void 0:a.name)===t){let l=js(c,s);i[l]=c}if(t===Be.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&c.pages){let l=Fr(c.pages,t,n);for(let p in l)i[p]=l[p]}}return i}r(Fr,"getPages");var jn=$(G());var Bp=class Bp extends eo{constructor(t){let n={},i=t.manifest[jn.ManifestSection.ovp],o=new _n,a=Ze(jn.SchemaType.Application);tt(o,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(u=>u.includes(jn.PageTypeV2.OverviewPage)),c={manifest:t.manifest,jsonSchema:t.appSchemas[s]},l={pageType:jn.PageTypeV2.OverviewPage,config:xs(c),entitySet:i.globalFilterEntitySet},p=da(l.pageType,l.entitySet);n[p]=l,super(t.manifest,t.appSchemas,p,n,jn.FioriElementsVersion.v2,o,t.logger)}};r(Bp,"V2OvpProvider");var Ds=Bp;var Uy=require("fs"),ji=require("path"),Gp=$(G());var By=r((e,t,n=__dirname)=>{let i=t===Gp.SchemaType.Application?`${Gp.SchemaType.Application}${e.toUpperCase()}.json`:`${t}Config.json`;if(n.endsWith("dist"))return(0,ji.join)(n,"schemas",e,i);if(n.endsWith((0,ji.join)("specification","packages","specification")))return(0,ji.join)(n,"dist","schemas",e,i);if(n.endsWith((0,ji.join)("src","specification")))return(0,ji.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let o=n.substring(0,n.indexOf("node_modules")+12);return(0,ji.join)(o,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),FP=r(async e=>new Promise((t,n)=>{(0,Uy.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(JSON.parse(o))})}),"readJsonSchema"),Rs=r(async(e,t)=>{try{let n=By(e,t,__dirname);return await FP(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function NP(e,t){let n={},i=[];switch(i=[te.SchemaType.Application],e){case te.TemplateType.ListReportObjectPageV2:i.push(te.SchemaType.ListReport,te.SchemaType.ObjectPage);break;case te.TemplateType.AnalyticalListPageV2:i.push(te.SchemaType.AnalyticalListPage,te.SchemaType.ObjectPage);break;case te.TemplateType.OverviewPageV2:i.push(te.SchemaType.OverviewPage);break;default:break}for(let o of i){let a=Ze(o);n[a.filename]=await Rs(t,o)}return n}r(NP,"getGenericSchemas");function Hy(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=en(te.UIVOCABULARY,e);for(let o of n){if(!o.annotations||!o.annotations[i])continue;let{LineItem:a,Facets:s}=o.annotations[i];a&&!a.qualifier&&t.LineItems.push(o.name),s&&!s.qualifier&&t.Facets.push(o.name)}return t}r(Hy,"getAnnotationsForUi");function Nr(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}r(Nr,"getEntitySetByEntitySetName");function LP(e,t,n){var o;let i=Fr(e.manifest[te.ManifestSection.generic].pages,te.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=Nr(s,e.serviceAVT);let c=Ze(te.SchemaType.ListReport,((o=e.entitySet)==null?void 0:o.name)||s),l=Ze(te.SchemaType.ListReport);t[c.filename]=Or(e,n[l.filename])}}r(LP,"generateAppSchemaV2LR");function Gy(e,t,n){let i=Fr(e.manifest[te.ManifestSection.generic].pages,te.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let o in i){let a=i[o].entitySet,s=Nr(a,e.serviceAVT);s||J(e.logger,{severity:te.LogSeverity.Error,message:w.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let c=Ze(te.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),l=Ze(te.SchemaType.ObjectPage);n[c.filename]=Lr(e,t[l.filename])}}r(Gy,"generateObjectPageSchemasV2");function VP(e,t,n,i){var a;let o={};if(i===te.TemplateType.ListReportObjectPageV2&&n)LP(e,o,t),Gy(e,t,o);else if(i===te.TemplateType.AnalyticalListPageV2&&n){let s=Fr(e.manifest[te.ManifestSection.generic].pages,te.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let c in s){let l=s[c].entitySet;e.entitySet=Nr(l,e.serviceAVT);let p=Ze(te.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||l),u=Ze(te.SchemaType.AnalyticalListPage);o[p.filename]=Vr(e,t[u.filename])}Gy(e,t,o)}else if(i===te.TemplateType.OverviewPageV2){let s=Ze(te.SchemaType.OverviewPage),c=Ze(te.SchemaType.OverviewPage);o[s.filename]=jr(t[c.filename],e.manifest)}return{...t,...o}}r(VP,"generateAppSchemasV2");async function Wy(e,t,n){if(e.fioriElementsVersion===te.FioriElementsVersion.v2){let i=await NP(n,e.fioriElementsVersion);return VP(e,i,t,n)}else{let i=w.t("INVALIDSPECFORV4");J(e.logger,{severity:te.LogSeverity.Info,message:i})}}r(Wy,"generateAppSchemas");function jP(e){let t,n=[];switch(e.templateType){case te.TemplateType.ListReportObjectPageV2:case te.TemplateType.AnalyticalListPageV2:t=new Vs(e);break;case te.TemplateType.OverviewPageV2:t=new Ds(e);break;default:break}if(t){let{appConfig:i,pageConfigs:o}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in o)n.push({dataSourceUri:a,fileContent:JSON.stringify(o[a],null,4)})}return n}r(jP,"importConfigs");function Ky(e,t){let n=[];for(let i of Object.keys(e).sort()){let o;i===te.SchemaType.Application?o=`${te.DirName.Schemas}/${te.FileName.App[0].toUpperCase()}${te.FileName.App.slice(1)}`:o=`${te.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:o,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}r(Ky,"getFileList");async function Hp(e){var x,I;it();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,featureToggles:s}=e;new $o().doesUi5VersionFitDistTags((I=(x=t["sap.ui5"])==null?void 0:x.dependencies)==null?void 0:I.minUI5Version,i);let l=Oc(t),p=ci(n,i),u=Hy(p),f=li(t,l,i),b=await Wy({templateType:f,manifest:t,serviceAVT:p,fragments:o,views:a,fioriElementsVersion:l,logger:i,featureToggles:s},u,f);if(b)return Ky(b)}r(Hp,"importProjectSchema");async function Wp(e){var ie,q;it();let{manifest:t,annotations:n,logger:i,fragments:o,views:a,flex:s,featureToggles:c}=e;new $o().doesUi5VersionFitDistTags((q=(ie=t["sap.ui5"])==null?void 0:ie.dependencies)==null?void 0:q.minUI5Version,i);let p=Oc(t),u=hg(t),f=ci(n,i),d=li(t,p,i),b={templateType:d,manifest:t,serviceAVT:f,fragments:o,views:a,fioriElementsVersion:p,logger:i,featureToggles:c},x=Hy(f),I=await Wy(b,x,d);if(!I)return;let _=jP({manifest:t,flexChanges:s,appSchemas:I,templateType:d,logger:i,serviceAVT:f,fragments:o,views:a,fioriElementsVersion:p,oDataVersion:u});return Ky(I,_)}r(Wp,"importProjectSchemaAndConfig");var DP=["header","sections","footer"];function RP(e,t,n,i){t.properties[n][V.SchemaTag.artifactType]=V.ArtifactType.FlexChange;let o;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":o=V.ControlType.Section;break;case"ObjectPageSubSectionV2":o=V.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":o=V.ControlType.Group;break;case"ObjectPageSubSectionChartV2":o=V.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":o=V.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":o=V.ControlType.ObjectPageHeaderSection;break}o&&(he(e,t,n),t.properties[n][V.SchemaTag.controlType]=o)}r(RP,"addFlexChangeForSection");function wP(e,t,n,i,o){return(a,s)=>{if(!a.Determining&&a.$Type===ni.UIAnnotationTypes.DataFieldForAction){let{actionName:c,actionId:l,namespace:p}=Rc(a,o);if(!l)return;let u=a.Label||c,f=`HeaderAction<${_e(l)}>`;t.definitions[f]=JSON.parse(JSON.stringify(t.definitions.HeaderAction));let d=n.fullyQualifiedName.replace(`@${ni.UIAnnotationTerms.Identification}`,`/@${ni.UIAnnotationTerms.Identification}`);t.definitions[f][V.SchemaTag.annotationPath]=`/${d}/${s}`,t.definitions[f][V.SchemaTag.actionType]=V.ActionType.Annotation,t.definitions[f].description=u,t.definitions[f][V.SchemaTag.keys]=[{name:V.SchemaKeyName.action,value:c}],p&&(t.definitions[f][V.SchemaTag.target]=p),i.properties[l]={$ref:`${j}${f}`}}}}r(wP,"addHeaderActionCallBackV2");function $P(e,t,n,i,o,a,s,c){let l,p;if(a.ID&&a.Label?l=a.ID+a.Label.replace(/\s+/g,""):a.ID?l=a.ID:a.Label&&(l=a.Label.replace(/\s+/g,"")),l?p=`${V.DefinitionName.CustomColumns}<${n}><${s}><${l}>`:p=`${V.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let u=`${V.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[u]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let f=[],d=o==null?void 0:o.entityTypes.find(x=>x.name===i),b=Ni(t[V.ManifestSection.generic].pages,n,f);return zi(e,d,b,t,c,p,u,a.ID),p}r($P,"ensureCustomColumnDefinitionExists");function Dr(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&RP(e,t,"visible",n)}r(Dr,"addAppSchemaDefinition");function _P(e,t,n){e.properties[t]={$ref:`${j}${n}`}}r(_P,"addSectionReference");function ws(e,t,n,i){let o=_e(`${e}<${t}>`);try{i.definitions[o]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[o].properties.columns.$ref=j+t,i.definitions[o].properties.toolBar.$ref=`${j}ObjectPageToolBar<${t}>`,i.definitions[o][V.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[o].title=V.FACETTITLEPREFIX+n.ID,i.definitions[o][V.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[o].description=V.DefinitionName.Table,i.definitions[o].properties.quickVariantSelection.$ref=`${j}QuickVariantSelectionOP<${t}>`,i.definitions[`QuickVariantSelectionOP<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariantSelectionOP)),i.definitions[`QuickVariant<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariant)),i.definitions[`QuickVariantSelectionOP<${t}>`].properties.variants.patternProperties["^[0-9]+$"].$ref=`${j}QuickVariant<${t}>`,xa(n.entityType,i,`QuickVariant<${t}>`)}r(ws,"addTableDefinition");function MP(e,t,n,i,o,a){if(i.base!==V.FacetBase.LineItem||!t)return;let s=t.split("::")[0],c=`${a}<${t}>`;n.definitions[c]=pi(n,i,t);let l=n.definitions[c];Dr(n,l,a,"ObjectPageSectionTableV2"),l.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[V.PropertyName.table])),l.properties.table.anyOf=[{$ref:`${j}ObjectPageResponsiveTable<${t}>`},{$ref:`${j}ObjectPageAnalyticalTable<${t}>`},{$ref:`${j}ObjectPageGridTable<${t}>`},{$ref:`${j}ObjectPageTreeTable<${t}>`}],l[V.SchemaTag.annotationPath]=i.annotationPath,Lo(i,l,t),ws("ObjectPageResponsiveTable",t,i,n),ws("ObjectPageGridTable",t,i,n),ws("ObjectPageTreeTable",t,i,n),ws("ObjectPageAnalyticalTable",t,i,n);let p,u=um(i,e.serviceAVT);u&&(p=$P(n,e.manifest,u.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let f in o){let d=o[f];d.base===V.FacetBase.LineItem&&(d.ID===s||f.includes(s))&&qi(!0,n,d.target,d.entityType,d.ID||f,p)}}r(MP,"handleLineItem");function kP(e,t,n,i,o,a=!1){e.definitions[t]=pi(e,n,i);let s=e.definitions[t],c=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";Dr(e,s,o,c),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[V.SchemaTag.isViewNode]=!0}r(kP,"handleSubSection");function UP(e,t,n,i,o){e.definitions[t]=pi(e,n,i);let a=e.definitions[t];Dr(e,a,o,"ObjectPageSectionChartV2")}r(UP,"handleSectionChart");function Jy(e,t,n,i,o,a){e.definitions[t]=pi(e,n,i);let s=e.definitions[t];Dr(e,s,o,a||"CommonHeaderFacetSettings"),s[V.SchemaTag.annotationPath]=n.annotationPath,s[V.SchemaTag.isViewNode]=!0,s[V.SchemaTag.dataType]=Ca(n==null?void 0:n.target)}r(Jy,"handleHeaderFacet");function BP(e,t,n){let i=e.definitions[t],o=i[V.SchemaTag.dataType]=Ca(n==null?void 0:n.target);o==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:o==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}r(BP,"addDataPointHeaderFacetDataType");function GP(e,t,n,i,o){e.definitions[t]=pi(e,n,i);let a=e.definitions[t];return Dr(e,a,o,"ObjectPageSectionFormV2"),a[V.SchemaTag.annotationPath]=n.annotationPath,a[V.SchemaTag.isViewNode]=!0,a}r(GP,"handleFormSection");function HP(e,t,n){let i=new Map([[V.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[V.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[V.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[V.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[V.FacetBase.Form,"ObjectPageHeaderSectionForm"],[V.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),o=new Map([[V.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[V.FacetBase.LineItem,"ObjectPageSectionTableV2"],[V.FacetBase.Chart,"ObjectPageSectionChartV2"],[V.FacetBase.Address,"ObjectPageSectionAddressV2"],[V.FacetBase.Contact,"ObjectPageSectionContactV2"],[V.FacetBase.Form,"ObjectPageSectionFormV2"],[V.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[V.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[V.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[V.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[V.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[V.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[V.FacetBase.Form,"ObjectPageSubSectionFormV2"],[V.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):o.get(e)}r(HP,"getSectionType");function WP(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${ni.UIAnnotationTerms.Facets}`,e.base)),`${i}`}r(WP,"getReferenceKey");function Xy(e,t,n,i,o,a=!1,s=!1){let c=t[n],l=HP(c.base,a,s),p=WP(c,n,l),u=`${l}<${p}>`;switch(_P(i,p,u),l){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,kP(o,u,c,n,l,s);let f=o.definitions[u].properties.subsections;for(let d in c.facets)Xy(e,c.facets,d,f,o,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{MP(e,p,o,c,t,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{UP(o,u,c,p,l);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let f=GP(o,u,c,p,l);sm(V.SectionType.Section,c,f,o,V.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{wc(c,p,i,o,V.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{wc(c,p,i,o,V.SectionType.Section,V.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{Jy(o,u,c,p,l);break}case"ObjectPageHeaderSectionDataPoint":{Jy(o,u,c,p,l),BP(o,u,c);break}default:i.properties[n]=pi(o,c,p)}}r(Xy,"addSection");function Qy(e,t,n,i,o,a=!1){if(e)for(let s in t)Xy(i,t,s,n,o,!1,a)}r(Qy,"addSectionsFromFacets");function qy(e,t,n){var u,f,d,b,x,I;let i=t.definitions[V.DefinitionName.Sections];i[V.SchemaTag.isViewNode]=!0,(u=e.entitySet)!=null&&u.entityType&&(i[V.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${ni.UIAnnotationTerms.Facets}`);let o=t.definitions[V.DefinitionName.HeaderSections];if(o[V.SchemaTag.isViewNode]=!0,o.properties||(o.properties={}),o.additionalProperties=!1,(f=e.entitySet)!=null&&f.entityType&&(o[V.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${ni.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=yg((d=e.entitySet)==null?void 0:d.entityType,e.serviceAVT,V.FioriElementsVersion.v2,e.logger),s=mg((b=e.entitySet)==null?void 0:b.entityType,e.serviceAVT,V.FioriElementsVersion.v2,e.logger),c=a&&!!Object.keys(a).length,l=s&&!!Object.keys(s).length;if(!c&&!l)return;for(let O in n){let _=n[O];(I=(x=e.entitySet)==null?void 0:x.name)!=null&&I.includes(_.entitySet)?(Qy(c,a,i,e,t),Qy(l,s,o,e,t,!0)):qy(e,t,_.pages)}let p=t.definitions.CustomSections;for(let O in p.properties)i.properties[O]=p.properties[O]}r(qy,"addSections");function KP(e,t,n){fm(e,t),pm(e,t,n,wP,!0)}r(KP,"addHeader");function JP(e,t,n,i){let o=bg(t,n,i,void 0,!0);o&&ym(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],o,["ID","key"])}r(JP,"addRelatedFacetKeysType");function Lr(e,t){var s;it();let n=JSON.parse(JSON.stringify(t)),i={};for(let c in n.definitions.CustomSections.properties)i[c]=n.definitions.CustomSections.properties[c];n.properties[V.PropertyName.sections]={$ref:j+"Sections"};let o=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=o;let a=e.manifest[V.ManifestSection.generic].pages;return a?(KP(n,o,e.serviceAVT),n.definitions[V.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},qy(e,n,a),JP(n,o,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[V.SchemaTag.isViewNode]=!0):delete n.properties[V.PropertyName.sections]),lm(n,e,V.FioriElementsVersion.v2,a),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.CommonHeaderFacetSettings,delete n.definitions.ObjectPageHeaderSection,delete n.definitions.ObjectPageCustomHeaderSectionFragment,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTable,delete n.definitions.ObjectPageAnalyticalTable,delete n.definitions.ObjectPageTreeTable,delete n.definitions.ObjectPageGridTable,delete n.definitions.ObjectPageToolBar,delete n.definitions.ObjectPageToolBarActions,delete n.definitions.ObjectPageForm,delete n.definitions.ObjectPageFormFields,delete n.definitions.ObjectPageFormActions,delete n.definitions.FieldPathOP,Ki(n,DP),n):(J(e.logger,{severity:V.LogSeverity.Error,message:w.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:V.MANIFESTPATH,range:[V.ManifestSection.generic]}}),n)}r(Lr,"generateObjectPageSchemaV2");var Ce=$(G());var QP=["filterBar","keyPerformanceIndicators","chart","table","footer"];function zy(e,t){let n=t.value;return n.includes(Ce.UIVOCABULARYALPHADOT+e)?n.replace(Ce.UIVOCABULARYALPHADOT,""):""}r(zy,"retrieveNameWithoutVocabulary");function XP(e,t,n){var x;let i=(x=e==null?void 0:e.component)==null?void 0:x.settings,o=i==null?void 0:i.qualifier,a=r(function(I){let O=I+(o?"#"+o:"");return t[O]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),c=s?s.PresentationVariant:a("PresentationVariant");if(s&&!c){let I=o?w.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:o}):w.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return J(n,{severity:Ce.LogSeverity.Error,message:I}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let l=(c==null?void 0:c.Visualizations)||[],p="",u="";l.some(function(I){return p=p||zy("LineItem",I),u=u||zy("Chart",I),p&&u}),p=p||"LineItem",u=u||"Chart";let f=t[p],d=t[u],b=(f||i.quickVariantSelectionX?0:1)+(d?0:2);if(b>0){let I=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][b-1],O=w.t(I);J(n,{severity:Ce.LogSeverity.Warning,message:O})}return{lineItemAnnotation:f,chartAnnotation:d}}r(XP,"getLineItemAndChartAnnotation");function qP(e,t){let n=e.definitions[Ce.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Ce.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}r(qP,"addChart");function Vr(e,t){var s,c,l,p,u;let n=JSON.parse(JSON.stringify(t));n.properties[Ce.PropertyName.table].anyOf[0].$ref=j+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${j}${Ce.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${j}${Ce.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[Ce.PropertyName.table].anyOf[1].$ref=`${j}ALPGridTable<LineItems>`;try{let f=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));f.properties.columns.$ref=`${j}${Ce.DefinitionName.LineItems}`,f.properties.toolBar.$ref=`${j}${Ce.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=f}catch{throw new Error(w.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[Ce.PropertyName.table].anyOf[2].$ref=`${j}ALPAnalyticalTable<LineItems>`;let o=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));o.properties.columns.$ref=`${j}${Ce.DefinitionName.LineItems}`,o.properties.toolBar.$ref=`${j}${Ce.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=o,em(n.definitions.TableColumnExtensionTypeV2.enum,[Ce.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let a=(s=e.entitySet)==null?void 0:s.entityType;if(!a)J(e.logger,{severity:Ce.LogSeverity.Error,message:w.t("NOENTITYTYPE4SET",{entitySetName:(c=e.entitySet)==null?void 0:c.name})});else{Yi(n);let f=[],d=yo(e.manifest[Ce.ManifestSection.generic].pages,f,e.logger),b=(l=a==null?void 0:a.annotations)==null?void 0:l.UI,{lineItemAnnotation:x,chartAnnotation:I}=XP(d,b,e.logger);x&&Qg.forEach(_=>{n.definitions[_][Ce.SchemaTag.annotationPath]=Gt(a==null?void 0:a.fullyQualifiedName,x.term,x.qualifier)}),qi(!1,n,x,a),I&&qP(n,I);let O=(u=(p=a==null?void 0:a.annotations)==null?void 0:p.UI)==null?void 0:u.SelectionFields;if(va(n,O,a),!d)return J(e.logger,{severity:Ce.LogSeverity.Error,message:w.t("NOLR"),location:{path:Ce.MANIFESTPATH,range:[Ce.ManifestSection.generic]}}),n;zi(n,a,d,e.manifest,e.fragments),Fp(a,e.entitySet,n,e.serviceAVT),delete n.definitions.ALPGridTable,delete n.definitions.ALPResponsiveTable,delete n.definitions.ALPAnalyticalTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.GenericFooter,delete n.definitions.Actions,delete n.definitions.FieldPath}return Ki(n,QP),n}r(Vr,"generateAnalyticalListReportSchemaV2");var Yy=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function zP(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let o=i.$ref.split("/");return o[o.length-1]})}r(zP,"getCardDefinitionNames");function YP(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),o=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(o).filter(l=>i.includes(o[l].dataSource)));let s=e.definitions;s.CardModel={type:"string"},gi(a,s.CardModel);let c=zP(e);for(let l of c){let p=s[l].properties.model;delete p.type,p.$ref=j+"CardModel"}}r(YP,"addModelsEnum");function ZP(e,t){let n=e.properties;for(let i in Yy){let o=Yy[i],a=o.key;n[a]&&(n[a].messages=[{text:Qi(a,{since:o.since,deprecated:{since:o.deprecated.since,text:o.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}r(ZP,"markDeprecatedProperties");function Zy(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},ZP(n,t),YP(n,t),n}r(Zy,"generateOverviewPageSchemaV2");var ii=$(G());function Kp(e,t,n,i,o,a){it();let s=ci(e,t),c={templateType:a,fioriElementsVersion:ii.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return c.entitySet=Nr(o,c.serviceAVT),c.entitySet||J(c.logger,{severity:ii.LogSeverity.Error,message:w.t("ENTITYSETNOTFOUND",{entitySetName:o})}),c}r(Kp,"prepareGenerationV2");function Jp(e,t,n,i,o,a){let s=Kp(n,a,i,o,t,ii.TemplateType.ListReportObjectPageV2);return Lr(s,e)}r(Jp,"generateObjectPageInterfaceV2");function Qp(e,t,n,i,o,a){let s=Kp(n,a,i,o,t,ii.TemplateType.ListReportObjectPageV2);return Or(s,e)}r(Qp,"generateListReportInterfaceV2");function Xp(e,t,n,i,o,a){let s=Kp(n,a,i,o,t,ii.TemplateType.AnalyticalListPageV2);return Vr(s,e)}r(Xp,"generateAnalyticalListPageInterfaceV2");function jr(e,t){return Zy(e,t)}r(jr,"generateOVPInterfaceV2");function eA(e){let t;if(e[xe.FioriElementsVersion.v2]){let n=e[xe.FioriElementsVersion.v2];if(n[xe.SchemaType.ListReport]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:c,logger:l}=n[xe.SchemaType.ListReport];t=Qp(i,o,a,s,c,l)}else if(n[xe.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:c,logger:l}=n[xe.SchemaType.ObjectPage];t=Jp(i,o,a,s,c,l)}else if(n[xe.SchemaType.OverviewPage]){let{genericSchema:i,manifest:o}=n[xe.SchemaType.OverviewPage];t=jr(i,o)}else if(n[xe.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:o,annotations:a,manifest:s,fragments:c,logger:l}=n[xe.SchemaType.AnalyticalListPage];t=Xp(i,o,a,s,c,l)}}return t}r(eA,"generateSchema");function tA(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[xe.FioriElementsVersion.v2]){let i=e[xe.FioriElementsVersion.v2];t=Py(i,n)}return t}r(tA,"exportConfig");function nA(e){let t=xe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[xe.FioriElementsVersion.v2]){let i=e[xe.FioriElementsVersion.v2];t=Lp(i,n)}return t}r(nA,"exportConfigEntityByPath");function iA(e){let t=xe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[xe.FioriElementsVersion.v2]){let i=e[xe.FioriElementsVersion.v2];t=Lp(i,n,!0)}return t}r(iA,"deleteConfigEntityByPath");function oA(e){let t;if(e[xe.FioriElementsVersion.v2]){let n=e[xe.FioriElementsVersion.v2];n[xe.SchemaType.ListReport]?t=Ls(n[xe.SchemaType.ListReport]):n[xe.SchemaType.ObjectPage]?t=Ss(n[xe.SchemaType.ObjectPage]):n[xe.SchemaType.OverviewPage]?t=xs(n[xe.SchemaType.OverviewPage]):n[xe.SchemaType.AnalyticalListPage]&&(t=Cs(n[xe.SchemaType.AnalyticalListPage]))}return t}r(oA,"importConfig");async function rA(e){return Wp(e)}r(rA,"importProject");async function aA(e){return Hp(e)}r(aA,"importProjectSchema");function sA(){return{version:"20",moduleVersion:xm.version}}r(sA,"getApiVersion");var kt=require("path"),oi=require("fs");var ho=r(async e=>new Promise((t,n)=>{(0,oi.readFile)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readFile"),cA=r(async e=>JSON.parse(await ho(e)),"readJSON"),qp=r(async e=>new Promise((t,n)=>{(0,oi.readdir)(e,{encoding:"utf8"},(i,o)=>{i?n(i):t(o)})}),"readDirectory"),lA=r(async e=>new Promise(t=>{(0,oi.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),eh=r(async e=>new Promise(t=>{(0,oi.exists)(e,n=>{t(n)})}),"resourceExists"),pA=r(async e=>cA((0,kt.join)(e,"manifest.json")),"getManifest"),th=r(async e=>{let t=[],n=(0,kt.join)(e,"changes");if(!await eh(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],o=await qp(n);for(let a of o)i.some(s=>a.endsWith(s))&&t.push(await ho((0,kt.join)(n,a)));return t},"getChanges"),fA=r(async e=>{let t=[],n=(0,kt.join)(e,"ext","fragments");if(!await eh(n))return t;let i=await qp(n);for(let o of i){let a=(0,kt.join)(n,o),s=await ho(a);t.push({dataSourceUri:a,fileContent:s})}return t},"getFragments"),uA=r(async(e,t)=>{var o,a,s,c,l,p,u,f;let n=[],i=(o=e==null?void 0:e["sap.app"])==null?void 0:o.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let d=(0,kt.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:d,fileContent:await ho(d)})}if((l=(c=i==null?void 0:i.mainService)==null?void 0:c.settings)!=null&&l.annotations){for(let d of i.mainService.settings.annotations)if((u=(p=i[d])==null?void 0:p.settings)!=null&&u.localUri){let b=(0,kt.join)(t,i[d].settings.localUri);n.push({dataSourceUri:b,fileContent:await ho(b)})}}if(n.length===0)for(let d in i){let b=i[d];if((b==null?void 0:b.type)==="ODataAnnotation"&&((f=b==null?void 0:b.settings)!=null&&f.localUri)){let x=(0,kt.join)(t,b.settings.localUri);n.push({dataSourceUri:x,fileContent:await ho(x)})}}return n},"getAnnotations"),dA=r(async e=>{let t=(0,kt.basename)(e),n=(0,kt.join)(e,"webapp"),i=await pA(n),o=await uA(i,n),a=await th(n),s=await fA(n);return{root:e,name:t,manifest:i,annotations:o,changes:a,fragments:s}},"getProject");ai(Fn,$(G()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,readDirectory});
89
89
  /*! Bundled license information:
90
90
 
91
91
  sax/lib/sax.js: