@sap/ux-specification 1.120.22 → 1.120.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -20
- package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
- package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
- package/dist/documentation/v2/v2-ListReport.html +2 -2
- package/dist/documentation/v2/v2-ObjectPage.html +2 -2
- package/dist/documentation/v2/v2-OverviewPage.html +2 -2
- package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
- package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
- package/dist/documentation/v4/v4-FreestylePage.html +2 -2
- package/dist/documentation/v4/v4-ListReport.html +2 -2
- package/dist/documentation/v4/v4-ObjectPage.html +2 -2
- package/dist/index-min.js +101 -101
- package/dist/index-min.js.map +3 -3
- package/dist/schemas/v2/AnalyticalListPageConfig.json +76 -76
- package/dist/schemas/v2/ApplicationV2.json +5 -5
- package/dist/schemas/v2/ListReportConfig.json +86 -85
- package/dist/schemas/v2/ObjectPageConfig.json +83 -83
- package/dist/schemas/v2/OverviewPageConfig.json +84 -84
- package/dist/schemas/v4/ApplicationV4.json +4 -4
- package/dist/schemas/v4/ListReportConfig.json +47 -47
- package/dist/schemas/v4/ObjectPageConfig.json +46 -46
- package/dist/specification/package.json +5 -5
- package/dist/specification/src/api.js +1 -1
- package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Fragment.js +14 -6
- package/dist/specification/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/specification/src/sync/v2/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/export.js +6 -1
- package/dist/specification/src/sync/v2/export/export.js.map +1 -1
- package/dist/specification/src/sync/v2/import/common/index.d.ts +3 -2
- package/dist/specification/src/sync/v2/import/common/index.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/common/index.js +38 -23
- package/dist/specification/src/sync/v2/import/common/index.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js +1 -1
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/listReport.js +1 -1
- package/dist/specification/src/sync/v2/import/pages/listReport.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/objectPage.js +1 -1
- package/dist/specification/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/types/src/common/Application.d.ts +4 -8
- package/dist/types/src/common/Application.d.ts.map +1 -1
- package/dist/types/src/v2/application.d.ts +1 -1
- package/dist/types/src/v2/controls/Action.d.ts +4 -2
- package/dist/types/src/v2/controls/Action.d.ts.map +1 -1
- package/dist/types/src/v2/controls/AnalyticalListPageKPI.d.ts +6 -6
- package/dist/types/src/v2/controls/Card.d.ts +37 -36
- package/dist/types/src/v2/controls/Card.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Card.js.map +1 -1
- package/dist/types/src/v2/controls/Field.d.ts +1 -1
- package/dist/types/src/v2/controls/FilterBar.d.ts +18 -14
- package/dist/types/src/v2/controls/FilterBar.d.ts.map +1 -1
- package/dist/types/src/v2/controls/FilterBar.js.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageChart.d.ts +2 -2
- package/dist/types/src/v2/controls/ObjectPageHeader.d.ts +2 -2
- package/dist/types/src/v2/controls/ObjectPageLayout.d.ts +4 -4
- package/dist/types/src/v2/controls/ObjectPageSection.d.ts +2 -2
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts +20 -20
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Table.d.ts +52 -47
- package/dist/types/src/v2/controls/Table.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Table.js.map +1 -1
- package/dist/types/src/v2/overviewPage.d.ts +2 -2
- package/dist/types/src/v2/pages/ObjectPageConfigV2.d.ts +4 -4
- package/dist/types/src/v2/pages/OverviewPageConfigV2.d.ts +5 -5
- package/dist/types/src/v4/controls/CustomAction.d.ts +3 -3
- package/dist/types/src/v4/controls/FilterBar.d.ts +5 -7
- package/dist/types/src/v4/controls/FilterBar.d.ts.map +1 -1
- package/dist/types/src/v4/controls/FilterBar.js.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageFooter.d.ts +1 -1
- package/dist/types/src/v4/controls/ObjectPageForm.d.ts +1 -1
- package/dist/types/src/v4/controls/ObjectPageHeader.d.ts +6 -6
- package/dist/types/src/v4/controls/ObjectPageHeaderSection.d.ts +2 -2
- package/dist/types/src/v4/controls/ObjectPageLayout.d.ts +1 -2
- package/dist/types/src/v4/controls/ObjectPageLayout.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageSection.d.ts +2 -2
- package/dist/types/src/v4/controls/ObjectPageTable.d.ts +4 -4
- package/dist/types/src/v4/controls/ObjectPageToolBar.d.ts +2 -2
- package/dist/types/src/v4/controls/Table.d.ts +27 -34
- package/dist/types/src/v4/controls/Table.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ToolBar.d.ts +3 -3
- package/dist/types/src/v4/pages/ListReportConfigV4.d.ts +1 -2
- package/dist/types/src/v4/pages/ListReportConfigV4.d.ts.map +1 -1
- package/dist/types/src/v4/pages/ObjectPageConfigV4.d.ts +3 -4
- package/dist/types/src/v4/pages/ObjectPageConfigV4.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts +10 -8
- package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/sapUi5.d.ts +1 -1
- package/package.json +5 -5
package/dist/index-min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var MB=Object.create;var el=Object.defineProperty;var xO=Object.getOwnPropertyDescriptor;var wB=Object.getOwnPropertyNames;var kB=Object.getPrototypeOf,UB=Object.prototype.hasOwnProperty;var o=(e,t)=>el(e,"name",{value:t,configurable:!0});var qe=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Gs=(e,t)=>{for(var n in t)el(e,n,{get:t[n],enumerable:!0})},og=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of wB(t))!UB.call(e,r)&&r!==n&&el(e,r,{get:()=>t[r],enumerable:!(i=xO(t,r))||i.enumerable});return e},Ws=(e,t,n)=>(og(e,t,"default"),n&&og(n,t,"default")),ne=(e,t,n)=>(n=e!=null?MB(kB(e)):{},og(t||!e||!e.__esModule?el(n,"default",{value:e,enumerable:!0}):n,e)),ag=e=>og(el({},"__esModule",{value:!0}),e),h=(e,t,n,i)=>{for(var r=i>1?void 0:i?xO(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&el(t,n,r),r};var tL=Ye((lz,eL)=>{var yT=Object.defineProperty,jB=Object.getOwnPropertyDescriptor,$B=Object.getOwnPropertyNames,BB=Object.prototype.hasOwnProperty,vT=o((e,t)=>{for(var n in t)yT(e,n,{get:t[n],enumerable:!0})},"C"),HB=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of $B(t))!BB.call(e,r)&&r!==n&&yT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=jB(t,r))||i.enumerable});return e},"$e"),GB=o(e=>HB(yT({},"__esModule",{value:!0}),e),"Ze"),CO={};vT(CO,{ACTIONTITLEPREFIX:o(()=>QB,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>_O,"ALPViewType"),ActionType:o(()=>MO,"ActionType"),ArtifactType:o(()=>VO,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>YB,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>$O,"ChangeIndicator"),ChartColor:o(()=>iN,"ChartColor"),ColorPaletteDefinitionType:o(()=>tN,"ColorPaletteDefinitionType"),ControlType:o(()=>wO,"ControlType"),CustomExtensionType:o(()=>aN,"CustomExtensionType"),DATESETTINGSPATH:o(()=>oH,"DATESETTINGSPATH"),DataSourceType:o(()=>ZO,"DataSourceType"),DefinitionName:o(()=>GO,"DefinitionName"),DirName:o(()=>UO,"DirName"),DraftDiscardEnabledSettings:o(()=>qO,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>FO,"ExportArtifacts"),FACETTITLEPREFIX:o(()=>XB,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>lH,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>cH,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>aH,"FRAGMENTNAMEPART"),FacetBase:o(()=>BO,"FacetBase"),Features:o(()=>sN,"Features"),FileName:o(()=>jO,"FileName"),FioriElementsVersion:o(()=>IO,"FioriElementsVersion"),FlexChangeLayer:o(()=>LO,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>JO,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>NO,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>sH,"GENERICAPPSETTINGS"),LogSeverity:o(()=>rN,"LogSeverity"),MANIFESTPATH:o(()=>zB,"MANIFESTPATH"),MacrosPropertyType:o(()=>QO,"MacrosPropertyType"),ManifestSection:o(()=>eN,"ManifestSection"),OdataVersion:o(()=>OO,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>KB,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>WB,"PageType"),PageTypeV2:o(()=>TT,"PageTypeV2"),PageTypeV4:o(()=>ET,"PageTypeV4"),PropertyName:o(()=>WO,"PropertyName"),QUICKVARPATH:o(()=>iH,"QUICKVARPATH"),QUICKVARPATHX:o(()=>rH,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>uH,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>fH,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>XO,"SchemaKeyName"),SchemaTag:o(()=>KO,"SchemaTag"),SchemaType:o(()=>RO,"SchemaType"),SectionType:o(()=>DO,"SectionType"),StatePreservationMode:o(()=>zO,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>YO,"TableColumnVerticalAlignment"),TemplateType:o(()=>oN,"TemplateType"),UIVOCABULARY:o(()=>eH,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>nH,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>tH,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>ZB,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>JB,"VOCWITHSLASH"),ViewTemplateType:o(()=>HO,"ViewTemplateType"),ViewTypes:o(()=>nN,"ViewTypes"),Visualization:o(()=>kO,"Visualization"),defaultExportResult:o(()=>qB,"defaultExportResult"),logSeverityLabel:o(()=>pH,"logSeverityLabel"),v2:o(()=>cN,"v2"),v4:o(()=>_N,"v4")});eL.exports=GB(CO);var TT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(TT||{}),ET=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(ET||{}),WB={...TT,...ET},KB=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"]]),IO=(e=>(e.v2="v2",e.v4="v4",e))(IO||{}),OO=(e=>(e.v2="v2",e.v4="v4",e))(OO||{}),NO=(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))(NO||{}),LO=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(LO||{}),RO=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e.FPMCustomPage="FPMCustomPage",e.BuildingBlocks="BuildingBlocks",e))(RO||{}),FO=(e=>(e.flex="flex",e.manifest="manifest",e))(FO||{}),_O=(e=>(e.Primary="primary",e.Secondary="secondary",e))(_O||{}),DO=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(DO||{}),VO=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(VO||{}),MO=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(MO||{}),wO=(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))(wO||{}),kO=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(kO||{}),UO=(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))(UO||{}),jO=(e=>(e.App="app.json",e))(jO||{}),XB="Facet ID: ",QB="Action ID: ",$O=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))($O||{}),qB={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},BO=(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))(BO||{}),YB="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",HO=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(HO||{}),GO=(e=>(e.Action="Action",e.Actions="Actions",e.ActionsLR="Actions<LineItems>",e.ALPChart="ALPChart",e.ALPChartView="ALPChartView",e.ALPTable="ALPTable",e.ALPTableView="ALPTableView",e.AnalyticalListPageFilterBar="AnalyticalListPageFilterBar",e.AnnotationPathAsObject="AnnotationPathAsObject",e.ChartSettings="ChartSettings",e.ChartToolBarAction="ChartToolBarAction",e.CommonHeaderFacetSettings="CommonHeaderFacetSettings",e.CompactFilters="CompactFilters",e.CustomFooterActionOP="CustomFooterActionOP",e.CustomHeaderAction="CustomHeaderAction",e.CustomHeaderActionOP="CustomHeaderActionOP",e.CustomFormActionOP="CustomFormActionOP",e.CustomTableAction="CustomTableAction",e.CustomTableActionOP="CustomTableActionOP",e.CustomColumn="TableCustomColumn",e.CustomColumnOP="TableCustomColumnOP",e.CustomColumns="TableCustomColumns",e.CustomSections="CustomSections",e.FieldPath="FieldPath",e.Field="Field",e.Fields="Fields",e.Fields4Dialog="Fields4Dialog",e.FilterBar="FilterBar",e.FilterBarVisualFilters="FilterBarVisualFilters",e.Footer="Footer",e.FooterAction="FooterAction",e.FooterActionV4="FooterActionV4",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.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.ObjectPageCustomHeaderSectionFragment="ObjectPageCustomHeaderSectionFragment",e.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",e.ObjectPageCustomSubSectionFragment="ObjectPageCustomSubSectionFragment",e.ObjectPageForm="ObjectPageForm",e.ObjectPageFooter="ObjectPageFooter",e.ObjectPageFooterAction="ObjectPageFooterAction",e.ObjectPageFooterActions="ObjectPageFooterActions",e.ObjectPageFooterActionStandard="ObjectPageFooterActionStandard",e.ObjectPageHeader="ObjectPageHeader",e.ObjectPageHeaderSectionForm="ObjectPageHeaderSectionForm",e.ObjectPageHeaderSectionChart="ObjectPageHeaderSectionChart",e.ObjectPageHeaderSectionDataPoint="ObjectPageHeaderSectionDataPoint",e.ObjectPageHeaderSectionContact="ObjectPageHeaderSectionContact",e.ObjectPageHeaderSectionAddress="ObjectPageHeaderSectionAddress",e.ObjectPageLayout="ObjectPageLayout",e.ObjectPagePresentationVariant="ObjectPagePresentationVariant",e.ObjectPageSectionAddress="ObjectPageSectionAddress",e.ObjectPageSectionChart="ObjectPageSectionChart",e.ObjectPageSectionContact="ObjectPageSectionContact",e.ObjectPageSectionDataPoint="ObjectPageSectionDataPoint",e.ObjectPageSectionForm="ObjectPageSectionForm",e.ObjectPageSectionPresentationVariant="ObjectPageSectionPresentationVariant",e.ObjectPageSectionTableV4="ObjectPageSectionTableV4",e.ObjectPageSubSections="ObjectPageSubSections",e.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.SectionActions="SectionActions",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.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.CustomHeaderActionPosition="CustomHeaderActionPosition",e.CustomHeaderActionPositionOP="CustomHeaderActionPositionOP",e.CustomFooterActionPositionOP="CustomFooterActionPositionOP",e.CustomExtensionFragment="CustomExtensionFragment",e.CustomFilterField="CustomFilterField",e.CustomFilterFieldPosition="CustomFilterFieldPosition",e.SaveAndEdit="SaveAndEdit",e.ObjectPageCustomSectionActions="ObjectPageCustomSectionActions",e.CustomSectionActionOP="CustomSectionActionOP",e.CustomSectionActionPositionOP="CustomSectionActionPositionOP",e))(GO||{}),WO=(e=>(e.actions="actions",e.annotationPath="annotationPath",e.chart="chart",e.columns="columns",e.defaultPath="defaultPath",e.defaultTemplateAnnotationPath="defaultTemplateAnnotationPath",e.footer="footer",e.header="header",e.sections="sections",e.table="table",e.views="views",e.visualFilters="visualFilters",e.selectionFields="selectionFields",e))(WO||{}),KO=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlType="controlType",e.dataType="dataType",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.propertyIndex="propertyIndex",e.target="target",e))(KO||{}),XO=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(XO||{}),zB="webapp/manifest.json",JB="/@com.sap.vocabularies",ZB="::@com.sap.vocabularies",eH="com.sap.vocabularies.UI.v1",tH="com.sap.vocabularies.UI.v1.",nH="@com.sap.vocabularies.UI.v1.",iH="/quickVariantSelection",rH="/quickVariantSelectionX",oH="/filterSettings/dateSettings",aH=".fragment.",QO=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(QO||{}),qO=(e=>(e.restricted="restricted",e))(qO||{}),YO=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(YO||{}),zO=(e=>(e.persistence="persistence",e.discovery="discovery",e))(zO||{}),JO=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(JO||{}),ZO=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(ZO||{}),eN=(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))(eN||{}),sH="sap.ui.generic.app/settings",tN=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(tN||{}),cH="sap.fe.templates.RootContainer.view.Fcl",lH="appRootView",nN=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(nN||{}),fH="sap.ui.core.mvc.View",uH="sap.ui.core.Fragment",iN=(e=>(e.sapUiChartPaletteQualitativeHue1="sapUiChartPaletteQualitativeHue1",e.sapUiChartPaletteQualitativeHue2="sapUiChartPaletteQualitativeHue2",e.sapUiChartPaletteQualitativeHue3="sapUiChartPaletteQualitativeHue3",e.sapUiChartPaletteQualitativeHue4="sapUiChartPaletteQualitativeHue4",e.sapUiChartPaletteQualitativeHue5="sapUiChartPaletteQualitativeHue5",e.sapUiChartPaletteQualitativeHue6="sapUiChartPaletteQualitativeHue6",e.sapUiChartPaletteQualitativeHue7="sapUiChartPaletteQualitativeHue7",e.sapUiChartPaletteQualitativeHue8="sapUiChartPaletteQualitativeHue8",e.sapUiChartPaletteQualitativeHue9="sapUiChartPaletteQualitativeHue9",e.sapUiChartPaletteQualitativeHue10="sapUiChartPaletteQualitativeHue10",e.sapUiChartPaletteQualitativeHue11="sapUiChartPaletteQualitativeHue11",e.sapUiChartPaletteQualitativeHue12="sapUiChartPaletteQualitativeHue12",e.sapUiChartPaletteQualitativeHue13="sapUiChartPaletteQualitativeHue13",e.sapUiChartPaletteQualitativeHue14="sapUiChartPaletteQualitativeHue14",e.sapUiChartPaletteQualitativeHue15="sapUiChartPaletteQualitativeHue15",e.sapUiChartPaletteQualitativeHue16="sapUiChartPaletteQualitativeHue16",e.sapUiChartPaletteQualitativeHue17="sapUiChartPaletteQualitativeHue17",e.sapUiChartPaletteQualitativeHue18="sapUiChartPaletteQualitativeHue18",e.sapUiChartPaletteQualitativeHue19="sapUiChartPaletteQualitativeHue19",e.sapUiChartPaletteQualitativeHue20="sapUiChartPaletteQualitativeHue20",e.sapUiChartPaletteQualitativeHue21="sapUiChartPaletteQualitativeHue21",e.sapUiChartPaletteQualitativeHue22="sapUiChartPaletteQualitativeHue22",e.sapUiChartPaletteSemanticBadLight3="sapUiChartPaletteSemanticBadLight3",e.sapUiChartPaletteSemanticBadLight2="sapUiChartPaletteSemanticBadLight2",e.sapUiChartPaletteSemanticBadLight1="sapUiChartPaletteSemanticBadLight1",e.sapUiChartPaletteSemanticBad="sapUiChartPaletteSemanticBad",e.sapUiChartPaletteSemanticBadDark1="sapUiChartPaletteSemanticBadDark1",e.sapUiChartPaletteSemanticBadDark2="sapUiChartPaletteSemanticBadDark2",e.sapUiChartPaletteSemanticCriticalLight3="sapUiChartPaletteSemanticCriticalLight3",e.sapUiChartPaletteSemanticCriticalLight2="sapUiChartPaletteSemanticCriticalLight2",e.sapUiChartPaletteSemanticCriticalLight1="sapUiChartPaletteSemanticCriticalLight1",e.sapUiChartPaletteSemanticCritical="sapUiChartPaletteSemanticCritical",e.sapUiChartPaletteSemanticCriticalDark1="sapUiChartPaletteSemanticCriticalDark1",e.sapUiChartPaletteSemanticCriticalDark2="sapUiChartPaletteSemanticCriticalDark2",e.sapUiChartPaletteSemanticGoodLight3="sapUiChartPaletteSemanticGoodLight3",e.sapUiChartPaletteSemanticGoodLight2="sapUiChartPaletteSemanticGoodLight2",e.sapUiChartPaletteSemanticGoodLight1="sapUiChartPaletteSemanticGoodLight1",e.sapUiChartPaletteSemanticGood="sapUiChartPaletteSemanticGood",e.sapUiChartPaletteSemanticGoodDark1="sapUiChartPaletteSemanticGoodDark1",e.sapUiChartPaletteSemanticGoodDark2="sapUiChartPaletteSemanticGoodDark2",e.sapUiChartPaletteSemanticNeutralLight3="sapUiChartPaletteSemanticNeutralLight3",e.sapUiChartPaletteSemanticNeutralLight2="sapUiChartPaletteSemanticNeutralLight2",e.sapUiChartPaletteSemanticNeutralLight1="sapUiChartPaletteSemanticNeutralLight1",e.sapUiChartPaletteSemanticNeutral="sapUiChartPaletteSemanticNeutral",e.sapUiChartPaletteSemanticNeutralDark1="sapUiChartPaletteSemanticNeutralDark1",e.sapUiChartPaletteSemanticNeutralDark2="sapUiChartPaletteSemanticNeutralDark2",e.sapUiChartPaletteNoSemDiv1Dark2="sapUiChartPaletteNoSemDiv1Dark2",e.sapUiChartPaletteNoSemDiv1Dark1="sapUiChartPaletteNoSemDiv1Dark1",e.sapUiChartPaletteNoSemDiv1="sapUiChartPaletteNoSemDiv1",e.sapUiChartPaletteNoSemDiv1Light1="sapUiChartPaletteNoSemDiv1Light1",e.sapUiChartPaletteNoSemDiv1Light2="sapUiChartPaletteNoSemDiv1Light2",e.sapUiChartPaletteNoSemDiv1Light3="sapUiChartPaletteNoSemDiv1Light3",e.sapUiChartPaletteSequentialHue1Light3="sapUiChartPaletteSequentialHue1Light3",e.sapUiChartPaletteSequentialHue1Light2="sapUiChartPaletteSequentialHue1Light2",e.sapUiChartPaletteSequentialHue1Light1="sapUiChartPaletteSequentialHue1Light1",e.sapUiChartPaletteSequentialHue1="sapUiChartPaletteSequentialHue1",e.sapUiChartPaletteSequentialHue1Dark1="sapUiChartPaletteSequentialHue1Dark1",e.sapUiChartPaletteSequentialHue1Dark2="sapUiChartPaletteSequentialHue1Dark2",e.sapUiChartPaletteSequentialHue2Light3="sapUiChartPaletteSequentialHue2Light3",e.sapUiChartPaletteSequentialHue2Light2="sapUiChartPaletteSequentialHue2Light2",e.sapUiChartPaletteSequentialHue2Light1="sapUiChartPaletteSequentialHue2Light1",e.sapUiChartPaletteSequentialHue2="sapUiChartPaletteSequentialHue2",e.sapUiChartPaletteSequentialHue2Dark1="sapUiChartPaletteSequentialHue2Dark1",e.sapUiChartPaletteSequentialHue2Dark2="sapUiChartPaletteSequentialHue2Dark2",e.sapUiChartPaletteSequentialHue3Light3="sapUiChartPaletteSequentialHue3Light3",e.sapUiChartPaletteSequentialHue3Light2="sapUiChartPaletteSequentialHue3Light2",e.sapUiChartPaletteSequentialHue3Light1="sapUiChartPaletteSequentialHue3Light1",e.sapUiChartPaletteSequentialHue3="sapUiChartPaletteSequentialHue3",e.sapUiChartPaletteSequentialHue3Dark1="sapUiChartPaletteSequentialHue3Dark1",e.sapUiChartPaletteSequentialHue3Dark2="sapUiChartPaletteSequentialHue3Dark2",e.sapUiChartPaletteSequentialHue6Light3="sapUiChartPaletteSequentialHue6Light3",e.sapUiChartPaletteSequentialHue6Light2="sapUiChartPaletteSequentialHue6Light2",e.sapUiChartPaletteSequentialHue6Light1="sapUiChartPaletteSequentialHue6Light1",e.sapUiChartPaletteSequentialHue6="sapUiChartPaletteSequentialHue6",e.sapUiChartPaletteSequentialHue6Dark1="sapUiChartPaletteSequentialHue6Dark1",e.sapUiChartPaletteSequentialHue6Dark2="sapUiChartPaletteSequentialHue6Dark2",e.sapUiChartPaletteSequentialNeutralLight3="sapUiChartPaletteSequentialNeutralLight3",e.sapUiChartPaletteSequentialNeutralLight2="sapUiChartPaletteSequentialNeutralLight2",e.sapUiChartPaletteSequentialNeutralLight1="sapUiChartPaletteSequentialNeutralLight1",e.sapUiChartPaletteSequentialNeutral="sapUiChartPaletteSequentialNeutral",e.sapUiChartPaletteSequentialNeutralDark1="sapUiChartPaletteSequentialNeutralDark1",e.sapUiChartPaletteSequentialNeutralDark2="sapUiChartPaletteSequentialNeutralDark2",e.sapUiChoroplethRegionBG="sapUiChoroplethRegionBG",e.sapUiChartZeroAxisColor="sapUiChartZeroAxisColor",e.sapUiNegativeElement="sapUiNegativeElement",e.sapUiCriticalElement="sapUiCriticalElement",e.sapUiPositiveElement="sapUiPositiveElement",e.sapUiNeutralElement="sapUiNeutralElement",e))(iN||{}),rN=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(rN||{}),pH={error:"Error",warning:"Warning",info:"Information"},oN=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(oN||{}),aN=(e=>(e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage",e))(aN||{}),sN=(e=>(e.BuildingBlocks="BuildingBlocks",e))(sN||{}),cN={};vT(cN,{CardSettingsType:o(()=>uN,"CardSettingsType"),CardTemplateType:o(()=>fN,"CardTemplateType"),ChartCardType:o(()=>lN,"ChartCardType"),ChartType:o(()=>ON,"ChartType"),ContainerLayoutType:o(()=>FN,"ContainerLayoutType"),CreateMode:o(()=>RN,"CreateMode"),DateRangeType:o(()=>yN,"DateRangeType"),DefaultContentView:o(()=>xN,"DefaultContentView"),DefaultDateRangeValueType:o(()=>vN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>CN,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>LN,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>mH,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>vH,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>yH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>hH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>TN,"FilterPathType"),IgnoredFieldsType:o(()=>PN,"IgnoredFieldsType"),LinkListFlavorType:o(()=>hN,"LinkListFlavorType"),ListFlavorType:o(()=>dN,"ListFlavorType"),ListTypeType:o(()=>gN,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>IN,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>pN,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>EH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>TH,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>SH,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>AH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>bH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>NN,"SectionPosition"),SortOrderType:o(()=>mN,"SortOrderType"),Strategy:o(()=>SN,"Strategy"),TableColumnExtensionTypeV2:o(()=>AN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>bN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>gH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>dH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>EN,"customColumnViewTypes")});var lN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(lN||{}),fN=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(fN||{}),dH={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},gH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},uN=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(uN||{}),pN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(pN||{}),dN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(dN||{}),gN=(e=>(e.extended="extended",e.condensed="condensed",e))(gN||{}),mN=(e=>(e.ascending="ascending",e.descending="descending",e))(mN||{}),hN=(e=>(e.standard="standard",e.carousel="carousel",e))(hN||{}),yN=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(yN||{}),vN=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(vN||{}),TN=(e=>(e.key="key",e.catgory="category",e))(TN||{}),EN=(e=>(e.XML="XML",e))(EN||{}),bN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(bN||{}),AN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(AN||{}),SN=(e=>(e.extension="extension",e))(SN||{}),PN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(PN||{}),xN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(xN||{}),CN=(e=>(e.visual="visual",e.compact="compact",e))(CN||{}),IN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(IN||{}),ON=(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))(ON||{}),NN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(NN||{}),LN=(e=>(e.XML="XML",e))(LN||{}),RN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(RN||{}),mH="sap.suite.ui.generic.template",hH="sap.suite.ui.generic.template.ObjectPage",yH="sap.suite.ui.generic.template.ListReport",vH="sap.suite.ui.generic.template.AnalyticalListPage",TH="sap.ui.viewExtensions",EH="sap.ui.controllerExtensions",bH="sap.suite.ui.generic.template.ObjectPage.view.Details",AH="sap.suite.ui.generic.template.ListReport.view.ListReport",SH="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",FN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(FN||{}),_N={};vT(_N,{ActionPlacement:o(()=>DN,"ActionPlacement"),Availability:o(()=>qN,"Availability"),CloudDevAdaptationStatus:o(()=>ZN,"CloudDevAdaptationStatus"),CustomSectionViewTypesV4:o(()=>WN,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>kN,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>PH,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>OH,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>xH,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>IH,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>CH,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>LH,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>$N,"FilterFieldPlacement"),HorizontalAlign:o(()=>YN,"HorizontalAlign"),InitialLayoutType:o(()=>jN,"InitialLayoutType"),InitialLoadType:o(()=>wN,"InitialLoadType"),LayoutType:o(()=>UN,"LayoutType"),Placement:o(()=>QN,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>FH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>RH,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>NH,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>DH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>_H,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>HN,"SectionLayoutType"),SectionPosition:o(()=>GN,"SectionPosition"),SectionPositionV4:o(()=>XN,"SectionPositionV4"),SelectType:o(()=>BN,"SelectType"),SelectionMode:o(()=>VN,"SelectionMode"),TableCreationModeType:o(()=>KN,"TableCreationModeType"),TableTypeV4:o(()=>MN,"TableTypeV4"),VariantManagementTypeListReport:o(()=>JN,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>zN,"VariantManagementTypeObjectPage")});var DN=(e=>(e.After="After",e.Before="Before",e))(DN||{}),VN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(VN||{}),MN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(MN||{}),wN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(wN||{}),kN=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(kN||{}),UN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(UN||{}),jN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(jN||{}),$N=(e=>(e.After="After",e.Before="Before",e))($N||{}),BN=(e=>(e.single="single",e.multi="multi",e))(BN||{}),HN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(HN||{}),GN=(e=>(e.After="After",e.Before="Before",e))(GN||{}),WN=(e=>(e.XML="XML",e))(WN||{}),KN=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(KN||{}),PH="sap.fe.templates",xH="sap.fe.core.fpm",CH="sap.fe.templates.ObjectPage",IH="sap.fe.templates.ListReport",OH="sap.fe.templates.AnalyticalListPage",NH="XMLFragment",XN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(XN||{}),LH="sap.f.routing.Router",RH="sap.f",FH="sap.ui.controllerExtensions",_H="sap.fe.templates.ObjectPage.ObjectPageController",DH="sap.fe.templates.ListReport.ListReportController",QN=(e=>(e.After="After",e.Before="Before",e))(QN||{}),qN=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(qN||{}),YN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(YN||{}),zN=(e=>(e.None="None",e.Control="Control",e))(zN||{}),JN=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(JN||{}),ZN=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(ZN||{})});var aL=Ye(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.Features=Mr.CustomExtensionType=Mr.TemplateType=Mr.logSeverityLabel=Mr.LogSeverity=void 0;var nL;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(nL||(Mr.LogSeverity=nL={}));Mr.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var iL;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(iL||(Mr.TemplateType=iL={}));var rL;(function(e){e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage"})(rL||(Mr.CustomExtensionType=rL={}));var oL;(function(e){e.BuildingBlocks="BuildingBlocks"})(oL||(Mr.Features=oL={}))});var _L=Ye((pz,FL)=>{var bT=Object.defineProperty,VH=Object.getOwnPropertyDescriptor,MH=Object.getOwnPropertyNames,wH=Object.prototype.hasOwnProperty,kH=o((e,t)=>{for(var n in t)bT(e,n,{get:t[n],enumerable:!0})},"h"),UH=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of MH(t))!wH.call(e,r)&&r!==n&&bT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=VH(t,r))||i.enumerable});return e},"M"),jH=o(e=>UH(bT({},"__esModule",{value:!0}),e),"Q"),sL={};kH(sL,{CardSettingsType:o(()=>fL,"CardSettingsType"),CardTemplateType:o(()=>lL,"CardTemplateType"),ChartCardType:o(()=>cL,"ChartCardType"),ChartType:o(()=>IL,"ChartType"),ContainerLayoutType:o(()=>RL,"ContainerLayoutType"),CreateMode:o(()=>LL,"CreateMode"),DateRangeType:o(()=>hL,"DateRangeType"),DefaultContentView:o(()=>PL,"DefaultContentView"),DefaultDateRangeValueType:o(()=>yL,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>xL,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>NL,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>HH,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>KH,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>WH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>GH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>vL,"FilterPathType"),IgnoredFieldsType:o(()=>SL,"IgnoredFieldsType"),LinkListFlavorType:o(()=>mL,"LinkListFlavorType"),ListFlavorType:o(()=>pL,"ListFlavorType"),ListTypeType:o(()=>dL,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>CL,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>uL,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>QH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>XH,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>zH,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>YH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>qH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>OL,"SectionPosition"),SortOrderType:o(()=>gL,"SortOrderType"),Strategy:o(()=>AL,"Strategy"),TableColumnExtensionTypeV2:o(()=>bL,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>EL,"TableTypeV2"),cardTemplateSettingsMap:o(()=>BH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>$H,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>TL,"customColumnViewTypes")});FL.exports=jH(sL);var cL=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(cL||{}),lL=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(lL||{}),$H={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},BH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},fL=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(fL||{}),uL=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(uL||{}),pL=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(pL||{}),dL=(e=>(e.extended="extended",e.condensed="condensed",e))(dL||{}),gL=(e=>(e.ascending="ascending",e.descending="descending",e))(gL||{}),mL=(e=>(e.standard="standard",e.carousel="carousel",e))(mL||{}),hL=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(hL||{}),yL=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(yL||{}),vL=(e=>(e.key="key",e.catgory="category",e))(vL||{}),TL=(e=>(e.XML="XML",e))(TL||{}),EL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(EL||{}),bL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(bL||{}),AL=(e=>(e.extension="extension",e))(AL||{}),SL=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(SL||{}),PL=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(PL||{}),xL=(e=>(e.visual="visual",e.compact="compact",e))(xL||{}),CL=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(CL||{}),IL=(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))(IL||{}),OL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(OL||{}),NL=(e=>(e.XML="XML",e))(NL||{}),LL=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(LL||{}),HH="sap.suite.ui.generic.template",GH="sap.suite.ui.generic.template.ObjectPage",WH="sap.suite.ui.generic.template.ListReport",KH="sap.suite.ui.generic.template.AnalyticalListPage",XH="sap.ui.viewExtensions",QH="sap.ui.controllerExtensions",qH="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",RL=(e=>(e.fixed="fixed",e.resizable="resizable",e))(RL||{})});var nR=Ye((gz,tR)=>{var AT=Object.defineProperty,JH=Object.getOwnPropertyDescriptor,ZH=Object.getOwnPropertyNames,e5=Object.prototype.hasOwnProperty,t5=o((e,t)=>{for(var n in t)AT(e,n,{get:t[n],enumerable:!0})},"h"),n5=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ZH(t))!e5.call(e,r)&&r!==n&&AT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=JH(t,r))||i.enumerable});return e},"R"),i5=o(e=>n5(AT({},"__esModule",{value:!0}),e),"j"),DL={};t5(DL,{ActionPlacement:o(()=>VL,"ActionPlacement"),Availability:o(()=>YL,"Availability"),CloudDevAdaptationStatus:o(()=>eR,"CloudDevAdaptationStatus"),CustomSectionViewTypesV4:o(()=>KL,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>UL,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>r5,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>c5,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>o5,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>s5,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>a5,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>f5,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>BL,"FilterFieldPlacement"),HorizontalAlign:o(()=>zL,"HorizontalAlign"),InitialLayoutType:o(()=>$L,"InitialLayoutType"),InitialLoadType:o(()=>kL,"InitialLoadType"),LayoutType:o(()=>jL,"LayoutType"),Placement:o(()=>qL,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>p5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>u5,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>l5,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>g5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>d5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>GL,"SectionLayoutType"),SectionPosition:o(()=>WL,"SectionPosition"),SectionPositionV4:o(()=>QL,"SectionPositionV4"),SelectType:o(()=>HL,"SelectType"),SelectionMode:o(()=>ML,"SelectionMode"),TableCreationModeType:o(()=>XL,"TableCreationModeType"),TableTypeV4:o(()=>wL,"TableTypeV4"),VariantManagementTypeListReport:o(()=>ZL,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>JL,"VariantManagementTypeObjectPage")});tR.exports=i5(DL);var VL=(e=>(e.After="After",e.Before="Before",e))(VL||{}),ML=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(ML||{}),wL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(wL||{}),kL=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(kL||{}),UL=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(UL||{}),jL=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(jL||{}),$L=(e=>(e.Compact="Compact",e.Visual="Visual",e))($L||{}),BL=(e=>(e.After="After",e.Before="Before",e))(BL||{}),HL=(e=>(e.single="single",e.multi="multi",e))(HL||{}),GL=(e=>(e.Tabs="Tabs",e.Page="Page",e))(GL||{}),WL=(e=>(e.After="After",e.Before="Before",e))(WL||{}),KL=(e=>(e.XML="XML",e))(KL||{}),XL=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(XL||{}),r5="sap.fe.templates",o5="sap.fe.core.fpm",a5="sap.fe.templates.ObjectPage",s5="sap.fe.templates.ListReport",c5="sap.fe.templates.AnalyticalListPage",l5="XMLFragment",QL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(QL||{}),f5="sap.f.routing.Router",u5="sap.f",p5="sap.ui.controllerExtensions",d5="sap.fe.templates.ObjectPage.ObjectPageController",g5="sap.fe.templates.ListReport.ListReportController",qL=(e=>(e.After="After",e.Before="Before",e))(qL||{}),YL=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(YL||{}),zL=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(zL||{}),JL=(e=>(e.None="None",e.Control="Control",e))(JL||{}),ZL=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(ZL||{}),eR=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(eR||{})});var le=Ye(yi=>{"use strict";var iR=yi&&yi.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),m5=yi&&yi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),rR=yi&&yi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&iR(t,e,n)},oR=yi&&yi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&iR(t,e,n);return m5(t,e),t};Object.defineProperty(yi,"__esModule",{value:!0});yi.v4=yi.v2=void 0;rR(tL(),yi);rR(aL(),yi);yi.v2=oR(_L());yi.v4=oR(nR())});var jT=Ye((Dz,TR)=>{"use strict";var D5=o(function(t){return V5(t)&&!M5(t)},"isMergeableObject");function V5(e){return!!e&&typeof e=="object"}o(V5,"isNonNullObject");function M5(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||U5(e)}o(M5,"isSpecial");var w5=typeof Symbol=="function"&&Symbol.for,k5=w5?Symbol.for("react.element"):60103;function U5(e){return e.$$typeof===k5}o(U5,"isReactElement");function j5(e){return Array.isArray(e)?[]:{}}o(j5,"emptyTarget");function Jf(e,t){return t.clone!==!1&&t.isMergeableObject(e)?rl(j5(e),e,t):e}o(Jf,"cloneUnlessOtherwiseSpecified");function $5(e,t,n){return e.concat(t).map(function(i){return Jf(i,n)})}o($5,"defaultArrayMerge");function B5(e,t){if(!t.customMerge)return rl;var n=t.customMerge(e);return typeof n=="function"?n:rl}o(B5,"getMergeFunction");function H5(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(H5,"getEnumerableOwnPropertySymbols");function yR(e){return Object.keys(e).concat(H5(e))}o(yR,"getKeys");function vR(e,t){try{return t in e}catch{return!1}}o(vR,"propertyIsOnObject");function G5(e,t){return vR(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(G5,"propertyIsUnsafe");function W5(e,t,n){var i={};return n.isMergeableObject(e)&&yR(e).forEach(function(r){i[r]=Jf(e[r],n)}),yR(t).forEach(function(r){G5(e,r)||(vR(e,r)&&n.isMergeableObject(t[r])?i[r]=B5(r,n)(e[r],t[r],n):i[r]=Jf(t[r],n))}),i}o(W5,"mergeObject");function rl(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||$5,n.isMergeableObject=n.isMergeableObject||D5,n.cloneUnlessOtherwiseSpecified=Jf;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):W5(e,t,n):Jf(t,n)}o(rl,"deepmerge");rl.all=o(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return rl(i,r,n)},{})},"deepmergeAll");var K5=rl;TR.exports=K5});var hg=Ye(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.mergeAnnotations=vt.addGetByValue=vt.createIndexedFind=vt.lazy=vt.Decimal=vt.isComplexTypeDefinition=vt.unalias=vt.alias=vt.substringBeforeLast=vt.substringBeforeFirst=vt.splitAtLast=vt.splitAtFirst=vt.defaultReferences=vt.TermToTypes=vt.EnumIsFlag=void 0;var X5=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(vt,"EnumIsFlag",{enumerable:!0,get:o(function(){return X5.EnumIsFlag},"get")});var Q5=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(vt,"TermToTypes",{enumerable:!0,get:o(function(){return Q5.TermToTypes},"get")});var q5=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(vt,"defaultReferences",{enumerable:!0,get:o(function(){return q5.VocabularyReferences},"get")});function ER(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(ER,"splitAt");function bR(e,t){return t<0?e:e.substring(0,t)}o(bR,"substringAt");function mg(e,t){return ER(e,e.indexOf(t))}o(mg,"splitAtFirst");vt.splitAtFirst=mg;function AR(e,t){return ER(e,e.lastIndexOf(t))}o(AR,"splitAtLast");vt.splitAtLast=AR;function Y5(e,t){return bR(e,e.indexOf(t))}o(Y5,"substringBeforeFirst");vt.substringBeforeFirst=Y5;function z5(e,t){return bR(e,e.lastIndexOf(t))}o(z5,"substringBeforeLast");vt.substringBeforeLast=z5;function SR(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=AR(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=mg(t,"@");return`${a}@${SR(e,s)}`}else return t}o(SR,"alias");vt.alias=SR;function $T(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=mg(a,".");if(!l||l.includes("."))return a;let u=s.startsWith("@"),p=u?s.substring(1):s,g=e.referenceMap[p];return g?u?`@${g.namespace}.${l}`:`${g.namespace}.${l}`:n&&!u?`${n}.${l}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[l,u]=mg(s,"("),p=[r(l)];if(u){let g=u.slice(0,-1);p.push(`(${r(g)})`)}return a.push(p.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}o($T,"unalias");vt.unalias=$T;function J5(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(J5,"isComplexTypeDefinition");vt.isComplexTypeDefinition=J5;function Z5(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(Z5,"Decimal");vt.Decimal=Z5;function eG(e,t,n){let i=Symbol("initial"),r=i;Object.defineProperty(e,t,{enumerable:!0,get(){return r===i&&(r=n()),r},set(a){r=a}})}o(eG,"lazy");vt.lazy=eG;function PR(e,t){let n=new Map;return o(function(r){let a=n.get(r);return(a==null?void 0:a[t])===r?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===r})},"find")}o(PR,"createIndexedFind");vt.createIndexedFind=PR;function tG(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:PR(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(tG,"addGetByValue");vt.addGetByValue=tG;function nG(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let u=(a=$T(e,s))!==null&&a!==void 0?a:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=$T(e,g.term))!==null&&m!==void 0?m:g.term,g.fullyQualifiedName=g.qualifier?`${u}@${g.term}#${g.qualifier}`:`${u}@${g.term}`,g.__source=i,g}).filter(g=>!n[u].some(m=>m.term===g.term&&m.qualifier===g.qualifier));n[u].push(...p)}return n},{})}o(nG,"mergeAnnotations");vt.mergeAnnotations=nG});var kR=Ye(Tg=>{"use strict";Object.defineProperty(Tg,"__esModule",{value:!0});Tg.convert=void 0;var yg=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Se=hg(),eo=Symbol("Annotation Target");function na(e,t){return e[e.length-1]!==t&&e.push(t),e}o(na,"appendObjectPath");function fr(e,t,n,i){var r,a,s,l,u;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let p=n.split("/").reduce((m,T)=>{if(T.includes("@")){let[A,E]=(0,Se.splitAtFirst)(T,"@");m.push(A),m.push(`@${E}`)}else m.push(T);return m},[]);if(t===void 0)p[0].startsWith(`${e.rawSchema.namespace}.`)&&p[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(l=(s=(a=e.getConvertedEntityType(p[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(p[0]))!==null&&s!==void 0?s:e.getConvertedAction(p[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${p[0]}()`),p.shift()):t=e.getConvertedEntityContainer();else if(t[eo]!==void 0)t=t[eo];else if(t._type==="Property"){let m=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(u=e.getConvertedEntityType(m))!==null&&u!==void 0?u:e.getConvertedComplexType(m)}let g=p.reduce((m,T)=>{var A,E,O,F,U;let K=o(j=>(m.messages.push({message:j}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=na(m.objectPath,m.target),T.startsWith("@")&&T!=="@$ui5.overload"){let[j,ae]=e.splitTerm(T),Z=(A=m.target.annotations[j.substring(1)])===null||A===void 0?void 0:A[ae];return Z!==void 0?(m.target=Z,m):K(`Annotation '${T.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let j;if(T==="$AnnotationPath"?j=m.target.value:T==="$Path"&&(j=m.target.path),j!==void 0){let ae=fr(e,m.target[eo],j);return ae.objectPath.forEach(Z=>{m.objectPath.includes(Z)||(m.objectPath=na(m.objectPath,Z))}),m.target=ae.target,m.objectPath=na(m.objectPath,m.target),m}}switch((E=m.target)===null||E===void 0?void 0:E._type){case"Schema":break;case"EntityContainer":{let Z=m.target;if(T===""||e.unalias(T)===Z.fullyQualifiedName)return m;let re=(F=(O=Z.entitySets.by_name(T))!==null&&O!==void 0?O:Z.singletons.by_name(T))!==null&&F!==void 0?F:Z.actionImports.by_name(T);if(re)return m.target=re,m}break;case"EntitySet":case"Singleton":{let Z=m.target;if(T===""||T==="$Type")return m.target=Z.entityType,m;if(T==="$")return m;if(T==="$NavigationPropertyBinding"){let Pe=Z.navigationPropertyBinding;return m.target=Pe,m}let re=fr(e,Z.entityType,T);return m.target=re.target,m.objectPath=re.objectPath.reduce(na,m.objectPath),m}case"EntityType":{let Z=m.target;if(T===""||T==="$Type")return m;let re=Z.entityProperties.by_name(T);if(re)return m.target=re,m;let Pe=Z.navigationProperties.by_name(T);if(Pe)return m.target=Pe,m;let _=(0,Se.substringBeforeFirst)(e.unalias(T),"("),ft=Z.actions[_];if(ft)return m.target=ft,m}break;case"ActionImport":{let Z=fr(e,m.target.action,T);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(na,m.objectPath),m}case"Action":{let Z=m.target;if(T===""||T==="@$ui5.overload"||T==="0")return m;if(T==="$Parameter"&&Z.isBound)return m.target=Z.parameters,m;let re=(U=Z.parameters[T])!==null&&U!==void 0?U:Z.parameters.find(Pe=>Pe.name===T);if(re)return m.target=re,m;break}case"Property":{let re=m.target.targetType;if(re!==void 0){let Pe=re.properties.by_name(T);if(Pe)return m.target=Pe,m;let _=re.navigationProperties.by_name(T);if(_)return m.target=_,m}}break;case"ActionParameter":let j=m.target.typeReference;if(j!==void 0){let Z=fr(e,j,T);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(na,m.objectPath),m}break;case"NavigationProperty":let ae=fr(e,m.target.targetType,T);return m.target=ae.target,m.objectPath=ae.objectPath.reduce(na,m.objectPath),m;default:if(T==="")return m;if(m.target[T])return m.target=m.target[T],m.objectPath=na(m.objectPath,m.target),m}return K(`Element '${T}' not found at ${m.target._type} '${m.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(g.messages.forEach(m=>e.logError(m.message)),!g.target)if(i){let m=NR(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
1
|
+
var MB=Object.create;var tl=Object.defineProperty;var xO=Object.getOwnPropertyDescriptor;var kB=Object.getOwnPropertyNames;var UB=Object.getPrototypeOf,jB=Object.prototype.hasOwnProperty;var o=(e,t)=>tl(e,"name",{value:t,configurable:!0});var qe=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ws=(e,t)=>{for(var n in t)tl(e,n,{get:t[n],enumerable:!0})},ag=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of kB(t))!jB.call(e,r)&&r!==n&&tl(e,r,{get:()=>t[r],enumerable:!(i=xO(t,r))||i.enumerable});return e},Ks=(e,t,n)=>(ag(e,t,"default"),n&&ag(n,t,"default")),ne=(e,t,n)=>(n=e!=null?MB(UB(e)):{},ag(t||!e||!e.__esModule?tl(n,"default",{value:e,enumerable:!0}):n,e)),sg=e=>ag(tl({},"__esModule",{value:!0}),e),h=(e,t,n,i)=>{for(var r=i>1?void 0:i?xO(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&tl(t,n,r),r};var nL=Ye((fz,tL)=>{var vT=Object.defineProperty,$B=Object.getOwnPropertyDescriptor,BB=Object.getOwnPropertyNames,HB=Object.prototype.hasOwnProperty,TT=o((e,t)=>{for(var n in t)vT(e,n,{get:t[n],enumerable:!0})},"C"),GB=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of BB(t))!HB.call(e,r)&&r!==n&&vT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=$B(t,r))||i.enumerable});return e},"$e"),WB=o(e=>GB(vT({},"__esModule",{value:!0}),e),"Ze"),IO={};TT(IO,{ACTIONTITLEPREFIX:o(()=>qB,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>DO,"ALPViewType"),ActionType:o(()=>MO,"ActionType"),ArtifactType:o(()=>wO,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>zB,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>BO,"ChangeIndicator"),ChartColor:o(()=>rN,"ChartColor"),ColorPaletteDefinitionType:o(()=>nN,"ColorPaletteDefinitionType"),ControlType:o(()=>kO,"ControlType"),CustomExtensionType:o(()=>sN,"CustomExtensionType"),DATESETTINGSPATH:o(()=>aH,"DATESETTINGSPATH"),DataSourceType:o(()=>eN,"DataSourceType"),DefinitionName:o(()=>WO,"DefinitionName"),DirName:o(()=>jO,"DirName"),DraftDiscardEnabledSettings:o(()=>YO,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>_O,"ExportArtifacts"),FACETTITLEPREFIX:o(()=>QB,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>fH,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>lH,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>sH,"FRAGMENTNAMEPART"),FacetBase:o(()=>HO,"FacetBase"),Features:o(()=>cN,"Features"),FileName:o(()=>$O,"FileName"),FioriElementsVersion:o(()=>OO,"FioriElementsVersion"),FlexChangeLayer:o(()=>RO,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>ZO,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>LO,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>cH,"GENERICAPPSETTINGS"),LogSeverity:o(()=>oN,"LogSeverity"),MANIFESTPATH:o(()=>JB,"MANIFESTPATH"),MacrosPropertyType:o(()=>qO,"MacrosPropertyType"),ManifestSection:o(()=>tN,"ManifestSection"),OdataVersion:o(()=>NO,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>XB,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>KB,"PageType"),PageTypeV2:o(()=>ET,"PageTypeV2"),PageTypeV4:o(()=>bT,"PageTypeV4"),PropertyName:o(()=>KO,"PropertyName"),QUICKVARPATH:o(()=>rH,"QUICKVARPATH"),QUICKVARPATHX:o(()=>oH,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>pH,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>uH,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>QO,"SchemaKeyName"),SchemaTag:o(()=>XO,"SchemaTag"),SchemaType:o(()=>FO,"SchemaType"),SectionType:o(()=>VO,"SectionType"),StatePreservationMode:o(()=>JO,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>zO,"TableColumnVerticalAlignment"),TemplateType:o(()=>aN,"TemplateType"),UIVOCABULARY:o(()=>tH,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>iH,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>nH,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>eH,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>ZB,"VOCWITHSLASH"),ViewTemplateType:o(()=>GO,"ViewTemplateType"),ViewTypes:o(()=>iN,"ViewTypes"),Visualization:o(()=>UO,"Visualization"),defaultExportResult:o(()=>YB,"defaultExportResult"),logSeverityLabel:o(()=>dH,"logSeverityLabel"),v2:o(()=>lN,"v2"),v4:o(()=>DN,"v4")});tL.exports=WB(IO);var ET=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(ET||{}),bT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(bT||{}),KB={...ET,...bT},XB=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"]]),OO=(e=>(e.v2="v2",e.v4="v4",e))(OO||{}),NO=(e=>(e.v2="v2",e.v4="v4",e))(NO||{}),LO=(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))(LO||{}),RO=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(RO||{}),FO=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e.FPMCustomPage="FPMCustomPage",e.BuildingBlocks="BuildingBlocks",e))(FO||{}),_O=(e=>(e.flex="flex",e.manifest="manifest",e))(_O||{}),DO=(e=>(e.Primary="primary",e.Secondary="secondary",e))(DO||{}),VO=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(VO||{}),wO=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(wO||{}),MO=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(MO||{}),kO=(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))(kO||{}),UO=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(UO||{}),jO=(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))(jO||{}),$O=(e=>(e.App="app.json",e))($O||{}),QB="Facet ID: ",qB="Action ID: ",BO=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(BO||{}),YB={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},HO=(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))(HO||{}),zB="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",GO=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(GO||{}),WO=(e=>(e.Action="Action",e.Actions="Actions",e.ActionsLR="Actions<LineItems>",e.ALPChart="ALPChart",e.ALPChartView="ALPChartView",e.ALPTable="ALPTable",e.ALPTableView="ALPTableView",e.AnalyticalListPageFilterBar="AnalyticalListPageFilterBar",e.AnnotationPathAsObject="AnnotationPathAsObject",e.ChartSettings="ChartSettings",e.ChartToolBarAction="ChartToolBarAction",e.CommonHeaderFacetSettings="CommonHeaderFacetSettings",e.CompactFilters="CompactFilters",e.CustomFooterActionOP="CustomFooterActionOP",e.CustomHeaderAction="CustomHeaderAction",e.CustomHeaderActionOP="CustomHeaderActionOP",e.CustomFormActionOP="CustomFormActionOP",e.CustomTableAction="CustomTableAction",e.CustomTableActionOP="CustomTableActionOP",e.CustomColumn="TableCustomColumn",e.CustomColumnOP="TableCustomColumnOP",e.CustomColumns="TableCustomColumns",e.CustomSections="CustomSections",e.FieldPath="FieldPath",e.Field="Field",e.Fields="Fields",e.Fields4Dialog="Fields4Dialog",e.FilterBar="FilterBar",e.FilterBarVisualFilters="FilterBarVisualFilters",e.Footer="Footer",e.FooterAction="FooterAction",e.FooterActionV4="FooterActionV4",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.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.ObjectPageCustomHeaderSectionFragment="ObjectPageCustomHeaderSectionFragment",e.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",e.ObjectPageCustomSubSectionFragment="ObjectPageCustomSubSectionFragment",e.ObjectPageForm="ObjectPageForm",e.ObjectPageFooter="ObjectPageFooter",e.ObjectPageFooterAction="ObjectPageFooterAction",e.ObjectPageFooterActions="ObjectPageFooterActions",e.ObjectPageFooterActionStandard="ObjectPageFooterActionStandard",e.ObjectPageHeader="ObjectPageHeader",e.ObjectPageHeaderSectionForm="ObjectPageHeaderSectionForm",e.ObjectPageHeaderSectionChart="ObjectPageHeaderSectionChart",e.ObjectPageHeaderSectionDataPoint="ObjectPageHeaderSectionDataPoint",e.ObjectPageHeaderSectionContact="ObjectPageHeaderSectionContact",e.ObjectPageHeaderSectionAddress="ObjectPageHeaderSectionAddress",e.ObjectPageLayout="ObjectPageLayout",e.ObjectPagePresentationVariant="ObjectPagePresentationVariant",e.ObjectPageSectionAddress="ObjectPageSectionAddress",e.ObjectPageSectionChart="ObjectPageSectionChart",e.ObjectPageSectionContact="ObjectPageSectionContact",e.ObjectPageSectionDataPoint="ObjectPageSectionDataPoint",e.ObjectPageSectionForm="ObjectPageSectionForm",e.ObjectPageSectionPresentationVariant="ObjectPageSectionPresentationVariant",e.ObjectPageSectionTableV4="ObjectPageSectionTableV4",e.ObjectPageSubSections="ObjectPageSubSections",e.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.SectionActions="SectionActions",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.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.CustomHeaderActionPosition="CustomHeaderActionPosition",e.CustomHeaderActionPositionOP="CustomHeaderActionPositionOP",e.CustomFooterActionPositionOP="CustomFooterActionPositionOP",e.CustomExtensionFragment="CustomExtensionFragment",e.CustomFilterField="CustomFilterField",e.CustomFilterFieldPosition="CustomFilterFieldPosition",e.SaveAndEdit="SaveAndEdit",e.ObjectPageCustomSectionActions="ObjectPageCustomSectionActions",e.CustomSectionActionOP="CustomSectionActionOP",e.CustomSectionActionPositionOP="CustomSectionActionPositionOP",e))(WO||{}),KO=(e=>(e.actions="actions",e.annotationPath="annotationPath",e.chart="chart",e.columns="columns",e.defaultPath="defaultPath",e.defaultTemplateAnnotationPath="defaultTemplateAnnotationPath",e.footer="footer",e.header="header",e.sections="sections",e.table="table",e.views="views",e.visualFilters="visualFilters",e.selectionFields="selectionFields",e))(KO||{}),XO=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlType="controlType",e.dataType="dataType",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.propertyIndex="propertyIndex",e.target="target",e))(XO||{}),QO=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(QO||{}),JB="webapp/manifest.json",ZB="/@com.sap.vocabularies",eH="::@com.sap.vocabularies",tH="com.sap.vocabularies.UI.v1",nH="com.sap.vocabularies.UI.v1.",iH="@com.sap.vocabularies.UI.v1.",rH="/quickVariantSelection",oH="/quickVariantSelectionX",aH="/filterSettings/dateSettings",sH=".fragment.",qO=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(qO||{}),YO=(e=>(e.restricted="restricted",e))(YO||{}),zO=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(zO||{}),JO=(e=>(e.persistence="persistence",e.discovery="discovery",e))(JO||{}),ZO=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(ZO||{}),eN=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(eN||{}),tN=(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))(tN||{}),cH="sap.ui.generic.app/settings",nN=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(nN||{}),lH="sap.fe.templates.RootContainer.view.Fcl",fH="appRootView",iN=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(iN||{}),uH="sap.ui.core.mvc.View",pH="sap.ui.core.Fragment",rN=(e=>(e.sapUiChartPaletteQualitativeHue1="sapUiChartPaletteQualitativeHue1",e.sapUiChartPaletteQualitativeHue2="sapUiChartPaletteQualitativeHue2",e.sapUiChartPaletteQualitativeHue3="sapUiChartPaletteQualitativeHue3",e.sapUiChartPaletteQualitativeHue4="sapUiChartPaletteQualitativeHue4",e.sapUiChartPaletteQualitativeHue5="sapUiChartPaletteQualitativeHue5",e.sapUiChartPaletteQualitativeHue6="sapUiChartPaletteQualitativeHue6",e.sapUiChartPaletteQualitativeHue7="sapUiChartPaletteQualitativeHue7",e.sapUiChartPaletteQualitativeHue8="sapUiChartPaletteQualitativeHue8",e.sapUiChartPaletteQualitativeHue9="sapUiChartPaletteQualitativeHue9",e.sapUiChartPaletteQualitativeHue10="sapUiChartPaletteQualitativeHue10",e.sapUiChartPaletteQualitativeHue11="sapUiChartPaletteQualitativeHue11",e.sapUiChartPaletteQualitativeHue12="sapUiChartPaletteQualitativeHue12",e.sapUiChartPaletteQualitativeHue13="sapUiChartPaletteQualitativeHue13",e.sapUiChartPaletteQualitativeHue14="sapUiChartPaletteQualitativeHue14",e.sapUiChartPaletteQualitativeHue15="sapUiChartPaletteQualitativeHue15",e.sapUiChartPaletteQualitativeHue16="sapUiChartPaletteQualitativeHue16",e.sapUiChartPaletteQualitativeHue17="sapUiChartPaletteQualitativeHue17",e.sapUiChartPaletteQualitativeHue18="sapUiChartPaletteQualitativeHue18",e.sapUiChartPaletteQualitativeHue19="sapUiChartPaletteQualitativeHue19",e.sapUiChartPaletteQualitativeHue20="sapUiChartPaletteQualitativeHue20",e.sapUiChartPaletteQualitativeHue21="sapUiChartPaletteQualitativeHue21",e.sapUiChartPaletteQualitativeHue22="sapUiChartPaletteQualitativeHue22",e.sapUiChartPaletteSemanticBadLight3="sapUiChartPaletteSemanticBadLight3",e.sapUiChartPaletteSemanticBadLight2="sapUiChartPaletteSemanticBadLight2",e.sapUiChartPaletteSemanticBadLight1="sapUiChartPaletteSemanticBadLight1",e.sapUiChartPaletteSemanticBad="sapUiChartPaletteSemanticBad",e.sapUiChartPaletteSemanticBadDark1="sapUiChartPaletteSemanticBadDark1",e.sapUiChartPaletteSemanticBadDark2="sapUiChartPaletteSemanticBadDark2",e.sapUiChartPaletteSemanticCriticalLight3="sapUiChartPaletteSemanticCriticalLight3",e.sapUiChartPaletteSemanticCriticalLight2="sapUiChartPaletteSemanticCriticalLight2",e.sapUiChartPaletteSemanticCriticalLight1="sapUiChartPaletteSemanticCriticalLight1",e.sapUiChartPaletteSemanticCritical="sapUiChartPaletteSemanticCritical",e.sapUiChartPaletteSemanticCriticalDark1="sapUiChartPaletteSemanticCriticalDark1",e.sapUiChartPaletteSemanticCriticalDark2="sapUiChartPaletteSemanticCriticalDark2",e.sapUiChartPaletteSemanticGoodLight3="sapUiChartPaletteSemanticGoodLight3",e.sapUiChartPaletteSemanticGoodLight2="sapUiChartPaletteSemanticGoodLight2",e.sapUiChartPaletteSemanticGoodLight1="sapUiChartPaletteSemanticGoodLight1",e.sapUiChartPaletteSemanticGood="sapUiChartPaletteSemanticGood",e.sapUiChartPaletteSemanticGoodDark1="sapUiChartPaletteSemanticGoodDark1",e.sapUiChartPaletteSemanticGoodDark2="sapUiChartPaletteSemanticGoodDark2",e.sapUiChartPaletteSemanticNeutralLight3="sapUiChartPaletteSemanticNeutralLight3",e.sapUiChartPaletteSemanticNeutralLight2="sapUiChartPaletteSemanticNeutralLight2",e.sapUiChartPaletteSemanticNeutralLight1="sapUiChartPaletteSemanticNeutralLight1",e.sapUiChartPaletteSemanticNeutral="sapUiChartPaletteSemanticNeutral",e.sapUiChartPaletteSemanticNeutralDark1="sapUiChartPaletteSemanticNeutralDark1",e.sapUiChartPaletteSemanticNeutralDark2="sapUiChartPaletteSemanticNeutralDark2",e.sapUiChartPaletteNoSemDiv1Dark2="sapUiChartPaletteNoSemDiv1Dark2",e.sapUiChartPaletteNoSemDiv1Dark1="sapUiChartPaletteNoSemDiv1Dark1",e.sapUiChartPaletteNoSemDiv1="sapUiChartPaletteNoSemDiv1",e.sapUiChartPaletteNoSemDiv1Light1="sapUiChartPaletteNoSemDiv1Light1",e.sapUiChartPaletteNoSemDiv1Light2="sapUiChartPaletteNoSemDiv1Light2",e.sapUiChartPaletteNoSemDiv1Light3="sapUiChartPaletteNoSemDiv1Light3",e.sapUiChartPaletteSequentialHue1Light3="sapUiChartPaletteSequentialHue1Light3",e.sapUiChartPaletteSequentialHue1Light2="sapUiChartPaletteSequentialHue1Light2",e.sapUiChartPaletteSequentialHue1Light1="sapUiChartPaletteSequentialHue1Light1",e.sapUiChartPaletteSequentialHue1="sapUiChartPaletteSequentialHue1",e.sapUiChartPaletteSequentialHue1Dark1="sapUiChartPaletteSequentialHue1Dark1",e.sapUiChartPaletteSequentialHue1Dark2="sapUiChartPaletteSequentialHue1Dark2",e.sapUiChartPaletteSequentialHue2Light3="sapUiChartPaletteSequentialHue2Light3",e.sapUiChartPaletteSequentialHue2Light2="sapUiChartPaletteSequentialHue2Light2",e.sapUiChartPaletteSequentialHue2Light1="sapUiChartPaletteSequentialHue2Light1",e.sapUiChartPaletteSequentialHue2="sapUiChartPaletteSequentialHue2",e.sapUiChartPaletteSequentialHue2Dark1="sapUiChartPaletteSequentialHue2Dark1",e.sapUiChartPaletteSequentialHue2Dark2="sapUiChartPaletteSequentialHue2Dark2",e.sapUiChartPaletteSequentialHue3Light3="sapUiChartPaletteSequentialHue3Light3",e.sapUiChartPaletteSequentialHue3Light2="sapUiChartPaletteSequentialHue3Light2",e.sapUiChartPaletteSequentialHue3Light1="sapUiChartPaletteSequentialHue3Light1",e.sapUiChartPaletteSequentialHue3="sapUiChartPaletteSequentialHue3",e.sapUiChartPaletteSequentialHue3Dark1="sapUiChartPaletteSequentialHue3Dark1",e.sapUiChartPaletteSequentialHue3Dark2="sapUiChartPaletteSequentialHue3Dark2",e.sapUiChartPaletteSequentialHue6Light3="sapUiChartPaletteSequentialHue6Light3",e.sapUiChartPaletteSequentialHue6Light2="sapUiChartPaletteSequentialHue6Light2",e.sapUiChartPaletteSequentialHue6Light1="sapUiChartPaletteSequentialHue6Light1",e.sapUiChartPaletteSequentialHue6="sapUiChartPaletteSequentialHue6",e.sapUiChartPaletteSequentialHue6Dark1="sapUiChartPaletteSequentialHue6Dark1",e.sapUiChartPaletteSequentialHue6Dark2="sapUiChartPaletteSequentialHue6Dark2",e.sapUiChartPaletteSequentialNeutralLight3="sapUiChartPaletteSequentialNeutralLight3",e.sapUiChartPaletteSequentialNeutralLight2="sapUiChartPaletteSequentialNeutralLight2",e.sapUiChartPaletteSequentialNeutralLight1="sapUiChartPaletteSequentialNeutralLight1",e.sapUiChartPaletteSequentialNeutral="sapUiChartPaletteSequentialNeutral",e.sapUiChartPaletteSequentialNeutralDark1="sapUiChartPaletteSequentialNeutralDark1",e.sapUiChartPaletteSequentialNeutralDark2="sapUiChartPaletteSequentialNeutralDark2",e.sapUiChoroplethRegionBG="sapUiChoroplethRegionBG",e.sapUiChartZeroAxisColor="sapUiChartZeroAxisColor",e.sapUiNegativeElement="sapUiNegativeElement",e.sapUiCriticalElement="sapUiCriticalElement",e.sapUiPositiveElement="sapUiPositiveElement",e.sapUiNeutralElement="sapUiNeutralElement",e))(rN||{}),oN=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(oN||{}),dH={error:"Error",warning:"Warning",info:"Information"},aN=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(aN||{}),sN=(e=>(e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage",e))(sN||{}),cN=(e=>(e.BuildingBlocks="BuildingBlocks",e))(cN||{}),lN={};TT(lN,{CardSettingsType:o(()=>pN,"CardSettingsType"),CardTemplateType:o(()=>uN,"CardTemplateType"),ChartCardType:o(()=>fN,"ChartCardType"),ChartType:o(()=>NN,"ChartType"),ContainerLayoutType:o(()=>_N,"ContainerLayoutType"),CreateMode:o(()=>FN,"CreateMode"),DateRangeType:o(()=>vN,"DateRangeType"),DefaultContentView:o(()=>xN,"DefaultContentView"),DefaultDateRangeValueType:o(()=>TN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>IN,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>RN,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>hH,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>TH,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>vH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>yH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>EN,"FilterPathType"),IgnoredFieldsType:o(()=>CN,"IgnoredFieldsType"),LinkListFlavorType:o(()=>yN,"LinkListFlavorType"),ListFlavorType:o(()=>gN,"ListFlavorType"),ListTypeType:o(()=>mN,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>ON,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>dN,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>bH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>EH,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>PH,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>SH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>AH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>LN,"SectionPosition"),SortOrderType:o(()=>hN,"SortOrderType"),Strategy:o(()=>PN,"Strategy"),TableColumnExtensionTypeV2:o(()=>SN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>AN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>mH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>gH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>bN,"customColumnViewTypes")});var fN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(fN||{}),uN=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(uN||{}),gH={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},mH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},pN=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(pN||{}),dN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(dN||{}),gN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(gN||{}),mN=(e=>(e.extended="extended",e.condensed="condensed",e))(mN||{}),hN=(e=>(e.ascending="ascending",e.descending="descending",e))(hN||{}),yN=(e=>(e.standard="standard",e.carousel="carousel",e))(yN||{}),vN=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(vN||{}),TN=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(TN||{}),EN=(e=>(e.key="key",e.catgory="category",e))(EN||{}),bN=(e=>(e.XML="XML",e))(bN||{}),AN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(AN||{}),SN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(SN||{}),PN=(e=>(e.extension="extension",e))(PN||{}),CN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(CN||{}),xN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(xN||{}),IN=(e=>(e.visual="visual",e.compact="compact",e))(IN||{}),ON=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(ON||{}),NN=(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))(NN||{}),LN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(LN||{}),RN=(e=>(e.XML="XML",e))(RN||{}),FN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(FN||{}),hH="sap.suite.ui.generic.template",yH="sap.suite.ui.generic.template.ObjectPage",vH="sap.suite.ui.generic.template.ListReport",TH="sap.suite.ui.generic.template.AnalyticalListPage",EH="sap.ui.viewExtensions",bH="sap.ui.controllerExtensions",AH="sap.suite.ui.generic.template.ObjectPage.view.Details",SH="sap.suite.ui.generic.template.ListReport.view.ListReport",PH="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",_N=(e=>(e.fixed="fixed",e.resizable="resizable",e))(_N||{}),DN={};TT(DN,{ActionPlacement:o(()=>VN,"ActionPlacement"),Availability:o(()=>YN,"Availability"),CloudDevAdaptationStatus:o(()=>eL,"CloudDevAdaptationStatus"),CustomSectionViewTypesV4:o(()=>KN,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>UN,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>CH,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>NH,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>xH,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>OH,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>IH,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>RH,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>BN,"FilterFieldPlacement"),HorizontalAlign:o(()=>zN,"HorizontalAlign"),InitialLayoutType:o(()=>$N,"InitialLayoutType"),InitialLoadType:o(()=>kN,"InitialLoadType"),LayoutType:o(()=>jN,"LayoutType"),Placement:o(()=>qN,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>_H,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>FH,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>LH,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>VH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>DH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>GN,"SectionLayoutType"),SectionPosition:o(()=>WN,"SectionPosition"),SectionPositionV4:o(()=>QN,"SectionPositionV4"),SelectType:o(()=>HN,"SelectType"),SelectionMode:o(()=>wN,"SelectionMode"),TableCreationModeType:o(()=>XN,"TableCreationModeType"),TableTypeV4:o(()=>MN,"TableTypeV4"),VariantManagementTypeListReport:o(()=>ZN,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>JN,"VariantManagementTypeObjectPage")});var VN=(e=>(e.After="After",e.Before="Before",e))(VN||{}),wN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(wN||{}),MN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(MN||{}),kN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(kN||{}),UN=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(UN||{}),jN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(jN||{}),$N=(e=>(e.Compact="Compact",e.Visual="Visual",e))($N||{}),BN=(e=>(e.After="After",e.Before="Before",e))(BN||{}),HN=(e=>(e.single="single",e.multi="multi",e))(HN||{}),GN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(GN||{}),WN=(e=>(e.After="After",e.Before="Before",e))(WN||{}),KN=(e=>(e.XML="XML",e))(KN||{}),XN=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(XN||{}),CH="sap.fe.templates",xH="sap.fe.core.fpm",IH="sap.fe.templates.ObjectPage",OH="sap.fe.templates.ListReport",NH="sap.fe.templates.AnalyticalListPage",LH="XMLFragment",QN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(QN||{}),RH="sap.f.routing.Router",FH="sap.f",_H="sap.ui.controllerExtensions",DH="sap.fe.templates.ObjectPage.ObjectPageController",VH="sap.fe.templates.ListReport.ListReportController",qN=(e=>(e.After="After",e.Before="Before",e))(qN||{}),YN=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(YN||{}),zN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(zN||{}),JN=(e=>(e.None="None",e.Control="Control",e))(JN||{}),ZN=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(ZN||{}),eL=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(eL||{})});var sL=Ye(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.Features=Mr.CustomExtensionType=Mr.TemplateType=Mr.logSeverityLabel=Mr.LogSeverity=void 0;var iL;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(iL||(Mr.LogSeverity=iL={}));Mr.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var rL;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(rL||(Mr.TemplateType=rL={}));var oL;(function(e){e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage"})(oL||(Mr.CustomExtensionType=oL={}));var aL;(function(e){e.BuildingBlocks="BuildingBlocks"})(aL||(Mr.Features=aL={}))});var DL=Ye((dz,_L)=>{var AT=Object.defineProperty,wH=Object.getOwnPropertyDescriptor,MH=Object.getOwnPropertyNames,kH=Object.prototype.hasOwnProperty,UH=o((e,t)=>{for(var n in t)AT(e,n,{get:t[n],enumerable:!0})},"h"),jH=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of MH(t))!kH.call(e,r)&&r!==n&&AT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=wH(t,r))||i.enumerable});return e},"M"),$H=o(e=>jH(AT({},"__esModule",{value:!0}),e),"Q"),cL={};UH(cL,{CardSettingsType:o(()=>uL,"CardSettingsType"),CardTemplateType:o(()=>fL,"CardTemplateType"),ChartCardType:o(()=>lL,"ChartCardType"),ChartType:o(()=>OL,"ChartType"),ContainerLayoutType:o(()=>FL,"ContainerLayoutType"),CreateMode:o(()=>RL,"CreateMode"),DateRangeType:o(()=>yL,"DateRangeType"),DefaultContentView:o(()=>CL,"DefaultContentView"),DefaultDateRangeValueType:o(()=>vL,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>xL,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>LL,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>GH,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>XH,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>KH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>WH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>TL,"FilterPathType"),IgnoredFieldsType:o(()=>PL,"IgnoredFieldsType"),LinkListFlavorType:o(()=>hL,"LinkListFlavorType"),ListFlavorType:o(()=>dL,"ListFlavorType"),ListTypeType:o(()=>gL,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>IL,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>pL,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>qH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>QH,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>JH,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>zH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>YH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>NL,"SectionPosition"),SortOrderType:o(()=>mL,"SortOrderType"),Strategy:o(()=>SL,"Strategy"),TableColumnExtensionTypeV2:o(()=>AL,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>bL,"TableTypeV2"),cardTemplateSettingsMap:o(()=>HH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>BH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>EL,"customColumnViewTypes")});_L.exports=$H(cL);var lL=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(lL||{}),fL=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(fL||{}),BH={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},HH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},uL=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(uL||{}),pL=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(pL||{}),dL=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(dL||{}),gL=(e=>(e.extended="extended",e.condensed="condensed",e))(gL||{}),mL=(e=>(e.ascending="ascending",e.descending="descending",e))(mL||{}),hL=(e=>(e.standard="standard",e.carousel="carousel",e))(hL||{}),yL=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(yL||{}),vL=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(vL||{}),TL=(e=>(e.key="key",e.catgory="category",e))(TL||{}),EL=(e=>(e.XML="XML",e))(EL||{}),bL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(bL||{}),AL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(AL||{}),SL=(e=>(e.extension="extension",e))(SL||{}),PL=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(PL||{}),CL=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(CL||{}),xL=(e=>(e.visual="visual",e.compact="compact",e))(xL||{}),IL=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(IL||{}),OL=(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))(OL||{}),NL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(NL||{}),LL=(e=>(e.XML="XML",e))(LL||{}),RL=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(RL||{}),GH="sap.suite.ui.generic.template",WH="sap.suite.ui.generic.template.ObjectPage",KH="sap.suite.ui.generic.template.ListReport",XH="sap.suite.ui.generic.template.AnalyticalListPage",QH="sap.ui.viewExtensions",qH="sap.ui.controllerExtensions",YH="sap.suite.ui.generic.template.ObjectPage.view.Details",zH="sap.suite.ui.generic.template.ListReport.view.ListReport",JH="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",FL=(e=>(e.fixed="fixed",e.resizable="resizable",e))(FL||{})});var iR=Ye((mz,nR)=>{var ST=Object.defineProperty,ZH=Object.getOwnPropertyDescriptor,e5=Object.getOwnPropertyNames,t5=Object.prototype.hasOwnProperty,n5=o((e,t)=>{for(var n in t)ST(e,n,{get:t[n],enumerable:!0})},"R"),i5=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of e5(t))!t5.call(e,r)&&r!==n&&ST(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=ZH(t,r))||i.enumerable});return e},"h"),r5=o(e=>i5(ST({},"__esModule",{value:!0}),e),"j"),VL={};n5(VL,{ActionPlacement:o(()=>wL,"ActionPlacement"),Availability:o(()=>zL,"Availability"),CloudDevAdaptationStatus:o(()=>tR,"CloudDevAdaptationStatus"),CustomSectionViewTypesV4:o(()=>XL,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>jL,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>o5,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>l5,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>a5,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>c5,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>s5,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>u5,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>HL,"FilterFieldPlacement"),HorizontalAlign:o(()=>JL,"HorizontalAlign"),InitialLayoutType:o(()=>BL,"InitialLayoutType"),InitialLoadType:o(()=>UL,"InitialLoadType"),LayoutType:o(()=>$L,"LayoutType"),Placement:o(()=>YL,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>d5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>p5,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>f5,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>m5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>g5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>WL,"SectionLayoutType"),SectionPosition:o(()=>KL,"SectionPosition"),SectionPositionV4:o(()=>qL,"SectionPositionV4"),SelectType:o(()=>GL,"SelectType"),SelectionMode:o(()=>ML,"SelectionMode"),TableCreationModeType:o(()=>QL,"TableCreationModeType"),TableTypeV4:o(()=>kL,"TableTypeV4"),VariantManagementTypeListReport:o(()=>eR,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>ZL,"VariantManagementTypeObjectPage")});nR.exports=r5(VL);var wL=(e=>(e.After="After",e.Before="Before",e))(wL||{}),ML=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(ML||{}),kL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(kL||{}),UL=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(UL||{}),jL=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(jL||{}),$L=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))($L||{}),BL=(e=>(e.Compact="Compact",e.Visual="Visual",e))(BL||{}),HL=(e=>(e.After="After",e.Before="Before",e))(HL||{}),GL=(e=>(e.single="single",e.multi="multi",e))(GL||{}),WL=(e=>(e.Tabs="Tabs",e.Page="Page",e))(WL||{}),KL=(e=>(e.After="After",e.Before="Before",e))(KL||{}),XL=(e=>(e.XML="XML",e))(XL||{}),QL=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(QL||{}),o5="sap.fe.templates",a5="sap.fe.core.fpm",s5="sap.fe.templates.ObjectPage",c5="sap.fe.templates.ListReport",l5="sap.fe.templates.AnalyticalListPage",f5="XMLFragment",qL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(qL||{}),u5="sap.f.routing.Router",p5="sap.f",d5="sap.ui.controllerExtensions",g5="sap.fe.templates.ObjectPage.ObjectPageController",m5="sap.fe.templates.ListReport.ListReportController",YL=(e=>(e.After="After",e.Before="Before",e))(YL||{}),zL=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(zL||{}),JL=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(JL||{}),ZL=(e=>(e.None="None",e.Control="Control",e))(ZL||{}),eR=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(eR||{}),tR=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(tR||{})});var le=Ye(vi=>{"use strict";var rR=vi&&vi.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),h5=vi&&vi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),oR=vi&&vi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&rR(t,e,n)},aR=vi&&vi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&rR(t,e,n);return h5(t,e),t};Object.defineProperty(vi,"__esModule",{value:!0});vi.v4=vi.v2=void 0;oR(nL(),vi);oR(sL(),vi);vi.v2=aR(DL());vi.v4=aR(iR())});var $T=Ye((Vz,ER)=>{"use strict";var V5=o(function(t){return w5(t)&&!M5(t)},"isMergeableObject");function w5(e){return!!e&&typeof e=="object"}o(w5,"isNonNullObject");function M5(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||j5(e)}o(M5,"isSpecial");var k5=typeof Symbol=="function"&&Symbol.for,U5=k5?Symbol.for("react.element"):60103;function j5(e){return e.$$typeof===U5}o(j5,"isReactElement");function $5(e){return Array.isArray(e)?[]:{}}o($5,"emptyTarget");function Zf(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ol($5(e),e,t):e}o(Zf,"cloneUnlessOtherwiseSpecified");function B5(e,t,n){return e.concat(t).map(function(i){return Zf(i,n)})}o(B5,"defaultArrayMerge");function H5(e,t){if(!t.customMerge)return ol;var n=t.customMerge(e);return typeof n=="function"?n:ol}o(H5,"getMergeFunction");function G5(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(G5,"getEnumerableOwnPropertySymbols");function vR(e){return Object.keys(e).concat(G5(e))}o(vR,"getKeys");function TR(e,t){try{return t in e}catch{return!1}}o(TR,"propertyIsOnObject");function W5(e,t){return TR(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(W5,"propertyIsUnsafe");function K5(e,t,n){var i={};return n.isMergeableObject(e)&&vR(e).forEach(function(r){i[r]=Zf(e[r],n)}),vR(t).forEach(function(r){W5(e,r)||(TR(e,r)&&n.isMergeableObject(t[r])?i[r]=H5(r,n)(e[r],t[r],n):i[r]=Zf(t[r],n))}),i}o(K5,"mergeObject");function ol(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||B5,n.isMergeableObject=n.isMergeableObject||V5,n.cloneUnlessOtherwiseSpecified=Zf;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):K5(e,t,n):Zf(t,n)}o(ol,"deepmerge");ol.all=o(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return ol(i,r,n)},{})},"deepmergeAll");var X5=ol;ER.exports=X5});var yg=Ye(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.mergeAnnotations=Tt.addGetByValue=Tt.createIndexedFind=Tt.lazy=Tt.Decimal=Tt.isComplexTypeDefinition=Tt.unalias=Tt.alias=Tt.substringBeforeLast=Tt.substringBeforeFirst=Tt.splitAtLast=Tt.splitAtFirst=Tt.defaultReferences=Tt.TermToTypes=Tt.EnumIsFlag=void 0;var Q5=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(Tt,"EnumIsFlag",{enumerable:!0,get:o(function(){return Q5.EnumIsFlag},"get")});var q5=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(Tt,"TermToTypes",{enumerable:!0,get:o(function(){return q5.TermToTypes},"get")});var Y5=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(Tt,"defaultReferences",{enumerable:!0,get:o(function(){return Y5.VocabularyReferences},"get")});function bR(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(bR,"splitAt");function AR(e,t){return t<0?e:e.substring(0,t)}o(AR,"substringAt");function hg(e,t){return bR(e,e.indexOf(t))}o(hg,"splitAtFirst");Tt.splitAtFirst=hg;function SR(e,t){return bR(e,e.lastIndexOf(t))}o(SR,"splitAtLast");Tt.splitAtLast=SR;function z5(e,t){return AR(e,e.indexOf(t))}o(z5,"substringBeforeFirst");Tt.substringBeforeFirst=z5;function J5(e,t){return AR(e,e.lastIndexOf(t))}o(J5,"substringBeforeLast");Tt.substringBeforeLast=J5;function PR(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=SR(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=hg(t,"@");return`${a}@${PR(e,s)}`}else return t}o(PR,"alias");Tt.alias=PR;function BT(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=hg(a,".");if(!l||l.includes("."))return a;let u=s.startsWith("@"),p=u?s.substring(1):s,g=e.referenceMap[p];return g?u?`@${g.namespace}.${l}`:`${g.namespace}.${l}`:n&&!u?`${n}.${l}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[l,u]=hg(s,"("),p=[r(l)];if(u){let g=u.slice(0,-1);p.push(`(${r(g)})`)}return a.push(p.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}o(BT,"unalias");Tt.unalias=BT;function Z5(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(Z5,"isComplexTypeDefinition");Tt.isComplexTypeDefinition=Z5;function eG(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(eG,"Decimal");Tt.Decimal=eG;function tG(e,t,n){let i=Symbol("initial"),r=i;Object.defineProperty(e,t,{enumerable:!0,get(){return r===i&&(r=n()),r},set(a){r=a}})}o(tG,"lazy");Tt.lazy=tG;function CR(e,t){let n=new Map;return o(function(r){let a=n.get(r);return(a==null?void 0:a[t])===r?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===r})},"find")}o(CR,"createIndexedFind");Tt.createIndexedFind=CR;function nG(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:CR(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(nG,"addGetByValue");Tt.addGetByValue=nG;function iG(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let u=(a=BT(e,s))!==null&&a!==void 0?a:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=BT(e,g.term))!==null&&m!==void 0?m:g.term,g.fullyQualifiedName=g.qualifier?`${u}@${g.term}#${g.qualifier}`:`${u}@${g.term}`,g.__source=i,g}).filter(g=>!n[u].some(m=>m.term===g.term&&m.qualifier===g.qualifier));n[u].push(...p)}return n},{})}o(iG,"mergeAnnotations");Tt.mergeAnnotations=iG});var UR=Ye(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});Eg.convert=void 0;var vg=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Se=yg(),to=Symbol("Annotation Target");function ia(e,t){return e[e.length-1]!==t&&e.push(t),e}o(ia,"appendObjectPath");function ur(e,t,n,i){var r,a,s,l,u;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let p=n.split("/").reduce((m,T)=>{if(T.includes("@")){let[A,E]=(0,Se.splitAtFirst)(T,"@");m.push(A),m.push(`@${E}`)}else m.push(T);return m},[]);if(t===void 0)p[0].startsWith(`${e.rawSchema.namespace}.`)&&p[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(l=(s=(a=e.getConvertedEntityType(p[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(p[0]))!==null&&s!==void 0?s:e.getConvertedAction(p[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${p[0]}()`),p.shift()):t=e.getConvertedEntityContainer();else if(t[to]!==void 0)t=t[to];else if(t._type==="Property"){let m=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(u=e.getConvertedEntityType(m))!==null&&u!==void 0?u:e.getConvertedComplexType(m)}let g=p.reduce((m,T)=>{var A,E,O,F,U;let K=o(j=>(m.messages.push({message:j}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=ia(m.objectPath,m.target),T.startsWith("@")&&T!=="@$ui5.overload"){let[j,ae]=e.splitTerm(T),Z=(A=m.target.annotations[j.substring(1)])===null||A===void 0?void 0:A[ae];return Z!==void 0?(m.target=Z,m):K(`Annotation '${T.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let j;if(T==="$AnnotationPath"?j=m.target.value:T==="$Path"&&(j=m.target.path),j!==void 0){let ae=ur(e,m.target[to],j);return ae.objectPath.forEach(Z=>{m.objectPath.includes(Z)||(m.objectPath=ia(m.objectPath,Z))}),m.target=ae.target,m.objectPath=ia(m.objectPath,m.target),m}}switch((E=m.target)===null||E===void 0?void 0:E._type){case"Schema":break;case"EntityContainer":{let Z=m.target;if(T===""||e.unalias(T)===Z.fullyQualifiedName)return m;let re=(F=(O=Z.entitySets.by_name(T))!==null&&O!==void 0?O:Z.singletons.by_name(T))!==null&&F!==void 0?F:Z.actionImports.by_name(T);if(re)return m.target=re,m}break;case"EntitySet":case"Singleton":{let Z=m.target;if(T===""||T==="$Type")return m.target=Z.entityType,m;if(T==="$")return m;if(T==="$NavigationPropertyBinding"){let Pe=Z.navigationPropertyBinding;return m.target=Pe,m}let re=ur(e,Z.entityType,T);return m.target=re.target,m.objectPath=re.objectPath.reduce(ia,m.objectPath),m}case"EntityType":{let Z=m.target;if(T===""||T==="$Type")return m;let re=Z.entityProperties.by_name(T);if(re)return m.target=re,m;let Pe=Z.navigationProperties.by_name(T);if(Pe)return m.target=Pe,m;let _=(0,Se.substringBeforeFirst)(e.unalias(T),"("),ut=Z.actions[_];if(ut)return m.target=ut,m}break;case"ActionImport":{let Z=ur(e,m.target.action,T);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(ia,m.objectPath),m}case"Action":{let Z=m.target;if(T===""||T==="@$ui5.overload"||T==="0")return m;if(T==="$Parameter"&&Z.isBound)return m.target=Z.parameters,m;let re=(U=Z.parameters[T])!==null&&U!==void 0?U:Z.parameters.find(Pe=>Pe.name===T);if(re)return m.target=re,m;break}case"Property":{let re=m.target.targetType;if(re!==void 0){let Pe=re.properties.by_name(T);if(Pe)return m.target=Pe,m;let _=re.navigationProperties.by_name(T);if(_)return m.target=_,m}}break;case"ActionParameter":let j=m.target.typeReference;if(j!==void 0){let Z=ur(e,j,T);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(ia,m.objectPath),m}break;case"NavigationProperty":let ae=ur(e,m.target.targetType,T);return m.target=ae.target,m.objectPath=ae.objectPath.reduce(ia,m.objectPath),m;default:if(T==="")return m;if(m.target[T])return m.target=m.target[T],m.objectPath=ia(m.objectPath,m.target),m}return K(`Element '${T}' not found at ${m.target._type} '${m.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(g.messages.forEach(m=>e.logError(m.message)),!g.target)if(i){let m=LR(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
2
2
|
`+n+`
|
|
3
3
|
|
|
4
4
|
Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
|
|
@@ -10,23 +10,23 @@ Hint: Check and correct the path values under the following structure in the met
|
|
|
10
10
|
Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
|
|
11
11
|
|
|
12
12
|
<Annotation Term = `+p[0]+`>
|
|
13
|
-
<PropertyValue Path= `+p[1]+">");return g}o(
|
|
13
|
+
<PropertyValue Path= `+p[1]+">");return g}o(ur,"resolveTarget");function rG(e){return e.includes("@")}o(rG,"isAnnotationPath");function xR(e,t,n,i,r){let a={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[to]:i};return(0,Se.lazy)(a,"$target",()=>ur(e,i,t.PropertyPath,r).target),a}o(xR,"mapPropertyPath");function IR(e,t,n,i,r){let a={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[to]:i};return(0,Se.lazy)(a,"$target",()=>ur(e,i,a.value,r).target),a}o(IR,"mapAnnotationPath");function OR(e,t,n,i,r){var a;let s={type:"NavigationPropertyPath",value:(a=t.NavigationPropertyPath)!==null&&a!==void 0?a:"",fullyQualifiedName:n,[to]:i};return(0,Se.lazy)(s,"$target",()=>ur(e,i,t.NavigationPropertyPath,r).target),s}o(OR,"mapNavigationPropertyPath");function oG(e,t,n,i,r){let a={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[to]:i};return(0,Se.lazy)(a,"$target",()=>ur(e,i,t.Path,r).target),a}o(oG,"mapPath");function NR(e,t,n,i,r,a,s){if(a!==void 0)switch(a.type){case"String":return a.String;case"Int":return a.Int;case"Bool":return a.Bool;case"Decimal":return(0,Se.Decimal)(a.Decimal);case"Date":return a.Date;case"EnumMember":let l=a.EnumMember.split(" ").map(u=>{var p;let g=(p=e.unalias(u))!==null&&p!==void 0?p:"";return(0,Se.alias)(vg.VocabularyReferences,g)});return l[0]!==void 0&&Se.EnumIsFlag[(0,Se.substringBeforeFirst)(l[0],"/")]?l:l[0];case"PropertyPath":return xR(e,a,s,t,n);case"NavigationPropertyPath":return OR(e,a,s,t,n);case"AnnotationPath":return IR(e,a,s,t,n);case"Path":return rG(a.Path)?ur(e,t,a.Path,n).target:oG(e,a,s,t,n);case"Record":return WT(e,n,t,i,r,a.Record,s);case"Collection":return RR(e,t,n,i,r,a.Collection,s);case"Apply":case"Null":case"Not":case"Eq":case"Ne":case"Gt":case"Ge":case"Lt":case"Le":case"If":case"And":case"Or":default:return a}}o(NR,"parseValue");function LR(e,t,n,i){let r=Se.TermToTypes[t];return i&&(t=`${(0,Se.substringBeforeLast)(t,".")}.${i}`,r=Se.TermToTypes[t]),e.logError(`The type of the record used within the term ${t} was not defined and was inferred as ${r}.
|
|
14
14
|
Hint: If possible, try to maintain the Type property for each Record.
|
|
15
15
|
<Annotations Target="${n}">
|
|
16
16
|
<Annotation Term="${t}">
|
|
17
17
|
<Record>...</Record>
|
|
18
18
|
</Annotation>
|
|
19
|
-
</Annotations>`),r}o(NR,"inferTypeFromTerm");function oG(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(oG,"isDataFieldWithForAction");function aG(e,t,n,i,r){let a;return!r.type&&t?a=NR(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(aG,"parseRecordType");function GT(e,t,n,i,r,a,s){let l={$Type:aG(e,t,n,i,a),fullyQualifiedName:s,[eo]:n,__source:r};for(let u of a.propertyValues)(0,Se.lazy)(l,u.name,()=>OR(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Se.lazy)(l,"annotations",FR(e,a,l)),oG(l)&&(0,Se.lazy)(l,"ActionTarget",()=>{var u,p;let g=e.unalias((u=l.Action)===null||u===void 0?void 0:u.toString()),m=n.actions[g];return m||(m=(p=e.getConvertedActionImport(g))===null||p===void 0?void 0:p.action),m||(m=e.getConvertedAction(g),m!=null&&m.isBound||(m=void 0)),m||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${g}')`),m}),l}o(GT,"parseRecord");function sG(e){let t=e.type;if(t===void 0&&e.length>0){let n=e[0];n.hasOwnProperty("PropertyPath")?t="PropertyPath":n.hasOwnProperty("Path")?t="Path":n.hasOwnProperty("AnnotationPath")?t="AnnotationPath":n.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":typeof n=="object"&&(n.hasOwnProperty("type")||n.hasOwnProperty("propertyValues"))?t="Record":typeof n=="string"&&(t="String")}else t===void 0&&(t="EmptyCollection");return t}o(sG,"getOrInferCollectionType");function LR(e,t,n,i,r,a,s){switch(sG(a)){case"PropertyPath":return a.map((u,p)=>xR(e,u,`${s}/${p}`,t,n));case"Path":return a.map(u=>fr(e,t,u.Path,n).target);case"AnnotationPath":return a.map((u,p)=>CR(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((u,p)=>IR(e,u,`${s}/${p}`,t,n));case"Record":return a.map((u,p)=>GT(e,n,t,i,r,u,`${s}/${p}`));case"Apply":case"Null":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return a.map(u=>u);case"String":return a.map(u=>typeof u=="string"||u===void 0?u:u.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}o(LR,"parseCollection");function cG(e){return!!e.targetTypeName}o(cG,"isV4NavigationProperty");function lG(e,t,n){var i;let r;if(n.record)r=GT(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=OR(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)r=LR(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof r){case"string":r=new String(r);break;case"boolean":r=new Boolean(r);break;case"number":r=new Number(r);break;default:break}r.fullyQualifiedName=n.fullyQualifiedName,r[eo]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,yg.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Se.lazy)(r,"annotations",FR(e,n,r))}catch{}return r}o(lG,"convertAnnotation");var WT=class WT{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(r=>({name:r,annotationList:this.rawSchema.annotations[r]}));this.annotationsByTarget=(0,Se.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,_R)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&r.push(s),r},[]);return(0,Se.addGetByValue)(i,"name"),(0,Se.addGetByValue)(i,"fullyQualifiedName"),i}:()=>this.getConvertedElement(t.fullyQualifiedName,t,n)}constructor(t,n){this.convertedElements=new Map,this.rawMetadata=t,this.rawSchema=t.schema,this.convertedOutput=n}getConvertedElement(t,n,i){let r=this.convertedElements.get(t);if(r===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(r=i.apply(void 0,[this,a]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,Se.alias)(yg.VocabularyReferences,t);return(0,Se.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Se.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(WT,"Converter");var BT=WT;function Zf(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(Zf,"resolveEntityType");function RR(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Se.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(RR,"resolveNavigationPropertyBindings");function ia(e,t){let n=t.annotations;return()=>vg(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(ia,"resolveAnnotations");function FR(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(a=>{a.target=i,a.__source=n.__source,a[eo]=n[eo],a.fullyQualifiedName=`${i}@${a.term}`}),vg(e,n,r??[])}}o(FR,"resolveAnnotationsOnAnnotation");function vg(e,t,n){return n.reduce((i,r)=>{let[a,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,Se.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(u,p)=>lG(u,t,p))),i},{})}o(vg,"createAnnotationsObject");function _R(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ia(e,t)),(0,Se.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,VR)),(0,Se.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,DR)),(0,Se.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,wR)),n}o(_R,"convertEntityContainer");function DR(e,t){let n=t;(0,Se.lazy)(n,"entityType",Zf(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",ia(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",RR(e,i)),n}o(DR,"convertSingleton");function VR(e,t){let n=t;(0,Se.lazy)(n,"entityType",Zf(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",ia(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",RR(e,i)),n}o(VR,"convertEntitySet");function fG(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Se.lazy)(n,"annotations",ia(e,t)),(0,Se.lazy)(n,"keys",e.convert(t.keys,HT)),(0,Se.lazy)(n,"entityProperties",e.convert(t.entityProperties,HT)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,MR)),(0,Se.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,r)=>{let a=`${e.rawSchema.namespace}.${r.name}`;return i[a]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let a=fr(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(fG,"convertEntityType");function HT(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ia(e,t)),(0,Se.lazy)(n,"targetType",()=>{var i;let r=t.type,a=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}o(HT,"convertProperty");function MR(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!cG(t)){let s=(i=e.rawSchema.associations.find(l=>l.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(l=>l.role===t.toRole);a.isCollection=(s==null?void 0:s.multiplicity)==="*",a.targetTypeName=(r=s==null?void 0:s.type)!==null&&r!==void 0?r:""}return(0,Se.lazy)(a,"targetType",Zf(e,t.targetTypeName)),(0,Se.lazy)(a,"annotations",ia(e,t)),a}o(MR,"convertNavigationProperty");function wR(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ia(e,t)),(0,Se.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}o(wR,"convertActionImport");function uG(e,t){let n=t;return n.sourceType&&(0,Se.lazy)(n,"sourceEntityType",Zf(e,t.sourceType)),n.returnType&&(0,Se.lazy)(n,"returnEntityType",Zf(e,t.returnType)),(0,Se.lazy)(n,"parameters",e.convert(t.parameters,pG)),(0,Se.lazy)(n,"annotations",()=>{let i=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return vg(e,t,a)}),n}o(uG,"convertAction");function pG(e,t){let n=t;return(0,Se.lazy)(n,"typeReference",()=>{var i,r;return(r=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&r!==void 0?r:e.getConvertedTypeDefinition(t.type)}),(0,Se.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.indexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return vg(e,t,a)}),n}o(pG,"convertActionParameter");function dG(e,t){let n=t;return(0,Se.lazy)(n,"properties",e.convert(t.properties,HT)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,MR)),(0,Se.lazy)(n,"annotations",ia(e,t)),n}o(dG,"convertComplexType");function gG(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ia(e,t)),n}o(gG,"convertTypeDefinition");function mG(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:yg.VocabularyReferences,diagnostics:[]},n=new BT(e,t);return(0,Se.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,_R)),(0,Se.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,VR)),(0,Se.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,DR)),(0,Se.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,fG)),(0,Se.lazy)(t,"actions",n.convert(n.rawSchema.actions,uG)),(0,Se.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,dG)),(0,Se.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,wR)),(0,Se.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,gG)),t.resolvePath=o(function(r){let a=fr(n,void 0,r);return a.target&&na(a.objectPath,a.target),a},"resolvePath"),t}o(mG,"convert");Tg.convert=mG});var BR=Ye(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});bg.revertTermToGenericType=void 0;var hG=hg();function yG(e,t){var n,i,r,a,s,l;let u;if(Array.isArray(t))u={type:"Collection",Collection:t.map(p=>Eg(e,p))};else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))u={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isString)===null||i===void 0)&&i.call(t)){let p=t.valueOf().split(".");p.length>1&&e.find(g=>g.alias===p[0])?u={type:"EnumMember",EnumMember:t.valueOf()}:u={type:"String",String:t.valueOf()}}else!((r=t.isInt)===null||r===void 0)&&r.call(t)?u={type:"Int",Int:t.valueOf()}:!((a=t.isFloat)===null||a===void 0)&&a.call(t)?u={type:"Float",Float:t.valueOf()}:!((s=t.isDate)===null||s===void 0)&&s.call(t)?u={type:"Date",Date:t.valueOf()}:!((l=t.isBoolean)===null||l===void 0)&&l.call(t)?u={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?u={type:"Path",Path:t.path}:t.type==="AnnotationPath"?u={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?u={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?u={type:"Null"}:t.type==="PropertyPath"?u={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?u={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(u={type:"Record",Record:Eg(e,t)});return u}o(yG,"revertObjectToRawType");function UR(e,t){let n;switch(t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=yG(e,t);break}return n}o(UR,"revertValueToRawType");var vG=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function jR(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=$R(e,t[i][r]);if(!a.term){let s=(0,hG.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}o(jR,"revertAnnotationsToRawType");function Eg(e,t){if(typeof t=="string")return t;if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(vG.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:UR(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],jR(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value}}}o(Eg,"revertCollectionItemToRawType");function $R(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=[],jR(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Eg(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Eg(e,t)}:{...n,value:UR(e,t)}}o($R,"revertTermToGenericType");bg.revertTermToGenericType=$R});var HR=Ye(ra=>{"use strict";var TG=ra&&ra.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),KT=ra&&ra.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&TG(t,e,n)};Object.defineProperty(ra,"__esModule",{value:!0});KT(kR(),ra);KT(hg(),ra);KT(BR(),ra)});var zT=Ye(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});wa.MergedRawMetadata=wa.RawMetadataInstance=wa.ensureArray=void 0;function EG(e){return e==null?[]:Array.isArray(e)?e:[e]}o(EG,"ensureArray");wa.ensureArray=EG;var qT=class qT{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(qT,"RawMetadataInstance");var XT=qT;wa.RawMetadataInstance=XT;var YT=class YT{get references(){return this._references}get schema(){return{associations:this._associations,associationSets:this._associationSets,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,singletons:this._singletons,complexTypes:this._complexTypes,typeDefinitions:this._typeDefinitions,actions:this._actions,actionImports:this._actionImports,entityTypes:this._entityTypes}}constructor(t){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._associationSets=[],this._entitySets=[],this._singletons=[],this._actions=[],this._actionImports=[],this._entityContainer={_type:"EntityContainer",fullyQualifiedName:""},this._entityTypes=[],this._complexTypes=[],this._typeDefinitions=[],this.identification="mergedParserInstance",this.version=t.version,this._namespace=t.schema.namespace}addParserOutput(t){this._parserOutput.push(t),this._references=this._references.concat(t.references),this._associations=this._associations.concat(t.schema.associations),this._associationSets=this._associationSets.concat(t.schema.associationSets),this._annotations=Object.assign(this._annotations,t.schema.annotations),this._entitySets=this._entitySets.concat(t.schema.entitySets),this._singletons=this._singletons.concat(t.schema.singletons),this._actions=this._actions.concat(t.schema.actions),this._actionImports=this._actionImports.concat(t.schema.actionImports),this._entityTypes=this._entityTypes.concat(t.schema.entityTypes),this._complexTypes=this._complexTypes.concat(t.schema.complexTypes),this._typeDefinitions=this._typeDefinitions.concat(t.schema.typeDefinitions),t.schema.entityContainer.fullyQualifiedName.length>0&&(this._entityContainer=Object.assign(this._entityContainer,t.schema.entityContainer))}};o(YT,"MergedRawMetadata");var QT=YT;wa.MergedRawMetadata=QT});var GR=Ye(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.merge=void 0;var bG=zT();function AG(...e){let t=new bG.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(AG,"merge");Ag.merge=AG});var WR=Ye(Sg=>{(function(e){e.parser=function(I,S){return new n(I,S)},e.SAXParser=n,e.SAXStream=p,e.createStream=u,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(I,S){if(!(this instanceof n))return new n(I,S);var Y=this;r(Y),Y.q=Y.c="",Y.bufferCheckPosition=e.MAX_BUFFER_LENGTH,Y.opt=S||{},Y.opt.lowercase=Y.opt.lowercase||Y.opt.lowercasetags,Y.looseCase=Y.opt.lowercase?"toLowerCase":"toUpperCase",Y.tags=[],Y.closed=Y.closedRoot=Y.sawRoot=!1,Y.tag=Y.error=null,Y.strict=!!I,Y.noscript=!!(I||Y.opt.noscript),Y.state=_.BEGIN,Y.strictEntities=Y.opt.strictEntities,Y.ENTITIES=Y.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),Y.attribList=[],Y.opt.xmlns&&(Y.ns=Object.create(E)),Y.opt.unquotedAttributeValues===void 0&&(Y.opt.unquotedAttributeValues=!I),Y.trackPosition=Y.opt.position!==!1,Y.trackPosition&&(Y.position=Y.line=Y.column=0),ht(Y,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(I){function S(){}o(S,"F"),S.prototype=I;var Y=new S;return Y}),Object.keys||(Object.keys=function(I){var S=[];for(var Y in I)I.hasOwnProperty(Y)&&S.push(Y);return S});function i(I){for(var S=Math.max(e.MAX_BUFFER_LENGTH,10),Y=0,V=0,De=t.length;V<De;V++){var Lt=I[t[V]].length;if(Lt>S)switch(t[V]){case"textNode":on(I);break;case"cdata":je(I,"oncdata",I.cdata),I.cdata="";break;case"script":je(I,"onscript",I.script),I.script="";break;default:Zt(I,"Max buffer length exceeded: "+t[V])}Y=Math.max(Y,Lt)}var Qe=e.MAX_BUFFER_LENGTH-Y;I.bufferCheckPosition=Qe+I.position}o(i,"checkBufferLength");function r(I){for(var S=0,Y=t.length;S<Y;S++)I[t[S]]=""}o(r,"clearBuffers");function a(I){on(I),I.cdata!==""&&(je(I,"oncdata",I.cdata),I.cdata=""),I.script!==""&&(je(I,"onscript",I.script),I.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Nt(this)},"end"),write:at,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(I){return I!=="error"&&I!=="end"});function u(I,S){return new p(I,S)}o(u,"createStream");function p(I,S){if(!(this instanceof p))return new p(I,S);s.apply(this),this._parser=new n(I,S),this.writable=!0,this.readable=!0;var Y=this;this._parser.onend=function(){Y.emit("end")},this._parser.onerror=function(V){Y.emit("error",V),Y._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(Y,"on"+V,{get:o(function(){return Y._parser["on"+V]},"get"),set:o(function(De){if(!De)return Y.removeAllListeners(V),Y._parser["on"+V]=De,De;Y.on(V,De)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(I){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(I)){if(!this._decoder){var S=require("string_decoder").StringDecoder;this._decoder=new S("utf8")}I=this._decoder.write(I)}return this._parser.write(I.toString()),this.emit("data",I),!0},p.prototype.end=function(I){return I&&I.length&&this.write(I),this._parser.end(),!0},p.prototype.on=function(I,S){var Y=this;return!Y._parser["on"+I]&&l.indexOf(I)!==-1&&(Y._parser["on"+I]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,I),Y.emit.apply(Y,V)}),s.prototype.on.call(Y,I,S)};var g="[CDATA[",m="DOCTYPE",T="http://www.w3.org/XML/1998/namespace",A="http://www.w3.org/2000/xmlns/",E={xml:T,xmlns:A},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]/,F=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,U=/[#:_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]/,K=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function j(I){return I===" "||I===`
|
|
20
|
-
`||I==="\r"||I===" "}o(j,"isWhitespace");function ae(I){return I==='"'||I==="'"}o(ae,"isQuote");function Z(I){return I===">"||j(I)}o(Z,"isAttribEnd");function re(I,S){return I.test(S)}o(re,"isMatch");function Pe(I,S){return!re(I,S)}o(Pe,"notMatch");var _=0;e.STATE={BEGIN:_++,BEGIN_WHITESPACE:_++,TEXT:_++,TEXT_ENTITY:_++,OPEN_WAKA:_++,SGML_DECL:_++,SGML_DECL_QUOTED:_++,DOCTYPE:_++,DOCTYPE_QUOTED:_++,DOCTYPE_DTD:_++,DOCTYPE_DTD_QUOTED:_++,COMMENT_STARTING:_++,COMMENT:_++,COMMENT_ENDING:_++,COMMENT_ENDED:_++,CDATA:_++,CDATA_ENDING:_++,CDATA_ENDING_2:_++,PROC_INST:_++,PROC_INST_BODY:_++,PROC_INST_ENDING:_++,OPEN_TAG:_++,OPEN_TAG_SLASH:_++,ATTRIB:_++,ATTRIB_NAME:_++,ATTRIB_NAME_SAW_WHITE:_++,ATTRIB_VALUE:_++,ATTRIB_VALUE_QUOTED:_++,ATTRIB_VALUE_CLOSED:_++,ATTRIB_VALUE_UNQUOTED:_++,ATTRIB_VALUE_ENTITY_Q:_++,ATTRIB_VALUE_ENTITY_U:_++,CLOSE_TAG:_++,CLOSE_TAG_SAW_WHITE:_++,SCRIPT:_++,SCRIPT_ENDING:_++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(I){var S=e.ENTITIES[I],Y=typeof S=="number"?String.fromCharCode(S):S;e.ENTITIES[I]=Y});for(var
|
|
19
|
+
</Annotations>`),r}o(LR,"inferTypeFromTerm");function aG(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(aG,"isDataFieldWithForAction");function sG(e,t,n,i,r){let a;return!r.type&&t?a=LR(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(sG,"parseRecordType");function WT(e,t,n,i,r,a,s){let l={$Type:sG(e,t,n,i,a),fullyQualifiedName:s,[to]:n,__source:r};for(let u of a.propertyValues)(0,Se.lazy)(l,u.name,()=>NR(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Se.lazy)(l,"annotations",_R(e,a,l)),aG(l)&&(0,Se.lazy)(l,"ActionTarget",()=>{var u,p;let g=e.unalias((u=l.Action)===null||u===void 0?void 0:u.toString()),m=n.actions[g];return m||(m=(p=e.getConvertedActionImport(g))===null||p===void 0?void 0:p.action),m||(m=e.getConvertedAction(g),m!=null&&m.isBound||(m=void 0)),m||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${g}')`),m}),l}o(WT,"parseRecord");function cG(e){let t=e.type;if(t===void 0&&e.length>0){let n=e[0];n.hasOwnProperty("PropertyPath")?t="PropertyPath":n.hasOwnProperty("Path")?t="Path":n.hasOwnProperty("AnnotationPath")?t="AnnotationPath":n.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":typeof n=="object"&&(n.hasOwnProperty("type")||n.hasOwnProperty("propertyValues"))?t="Record":typeof n=="string"&&(t="String")}else t===void 0&&(t="EmptyCollection");return t}o(cG,"getOrInferCollectionType");function RR(e,t,n,i,r,a,s){switch(cG(a)){case"PropertyPath":return a.map((u,p)=>xR(e,u,`${s}/${p}`,t,n));case"Path":return a.map(u=>ur(e,t,u.Path,n).target);case"AnnotationPath":return a.map((u,p)=>IR(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((u,p)=>OR(e,u,`${s}/${p}`,t,n));case"Record":return a.map((u,p)=>WT(e,n,t,i,r,u,`${s}/${p}`));case"Apply":case"Null":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return a.map(u=>u);case"String":return a.map(u=>typeof u=="string"||u===void 0?u:u.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}o(RR,"parseCollection");function lG(e){return!!e.targetTypeName}o(lG,"isV4NavigationProperty");function fG(e,t,n){var i;let r;if(n.record)r=WT(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=NR(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)r=RR(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof r){case"string":r=new String(r);break;case"boolean":r=new Boolean(r);break;case"number":r=new Number(r);break;default:break}r.fullyQualifiedName=n.fullyQualifiedName,r[to]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,vg.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Se.lazy)(r,"annotations",_R(e,n,r))}catch{}return r}o(fG,"convertAnnotation");var KT=class KT{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(r=>({name:r,annotationList:this.rawSchema.annotations[r]}));this.annotationsByTarget=(0,Se.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,DR)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&r.push(s),r},[]);return(0,Se.addGetByValue)(i,"name"),(0,Se.addGetByValue)(i,"fullyQualifiedName"),i}:()=>this.getConvertedElement(t.fullyQualifiedName,t,n)}constructor(t,n){this.convertedElements=new Map,this.rawMetadata=t,this.rawSchema=t.schema,this.convertedOutput=n}getConvertedElement(t,n,i){let r=this.convertedElements.get(t);if(r===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(r=i.apply(void 0,[this,a]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,Se.alias)(vg.VocabularyReferences,t);return(0,Se.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Se.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(KT,"Converter");var HT=KT;function eu(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(eu,"resolveEntityType");function FR(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Se.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(FR,"resolveNavigationPropertyBindings");function ra(e,t){let n=t.annotations;return()=>Tg(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(ra,"resolveAnnotations");function _R(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(a=>{a.target=i,a.__source=n.__source,a[to]=n[to],a.fullyQualifiedName=`${i}@${a.term}`}),Tg(e,n,r??[])}}o(_R,"resolveAnnotationsOnAnnotation");function Tg(e,t,n){return n.reduce((i,r)=>{let[a,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,Se.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(u,p)=>fG(u,t,p))),i},{})}o(Tg,"createAnnotationsObject");function DR(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ra(e,t)),(0,Se.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,wR)),(0,Se.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,VR)),(0,Se.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,kR)),n}o(DR,"convertEntityContainer");function VR(e,t){let n=t;(0,Se.lazy)(n,"entityType",eu(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",ra(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",FR(e,i)),n}o(VR,"convertSingleton");function wR(e,t){let n=t;(0,Se.lazy)(n,"entityType",eu(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",ra(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",FR(e,i)),n}o(wR,"convertEntitySet");function uG(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Se.lazy)(n,"annotations",ra(e,t)),(0,Se.lazy)(n,"keys",e.convert(t.keys,GT)),(0,Se.lazy)(n,"entityProperties",e.convert(t.entityProperties,GT)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,MR)),(0,Se.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,r)=>{let a=`${e.rawSchema.namespace}.${r.name}`;return i[a]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let a=ur(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(uG,"convertEntityType");function GT(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ra(e,t)),(0,Se.lazy)(n,"targetType",()=>{var i;let r=t.type,a=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}o(GT,"convertProperty");function MR(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!lG(t)){let s=(i=e.rawSchema.associations.find(l=>l.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(l=>l.role===t.toRole);a.isCollection=(s==null?void 0:s.multiplicity)==="*",a.targetTypeName=(r=s==null?void 0:s.type)!==null&&r!==void 0?r:""}return(0,Se.lazy)(a,"targetType",eu(e,t.targetTypeName)),(0,Se.lazy)(a,"annotations",ra(e,t)),a}o(MR,"convertNavigationProperty");function kR(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ra(e,t)),(0,Se.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}o(kR,"convertActionImport");function pG(e,t){let n=t;return n.sourceType&&(0,Se.lazy)(n,"sourceEntityType",eu(e,t.sourceType)),n.returnType&&(0,Se.lazy)(n,"returnEntityType",eu(e,t.returnType)),(0,Se.lazy)(n,"parameters",e.convert(t.parameters,dG)),(0,Se.lazy)(n,"annotations",()=>{let i=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Tg(e,t,a)}),n}o(pG,"convertAction");function dG(e,t){let n=t;return(0,Se.lazy)(n,"typeReference",()=>{var i,r;return(r=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&r!==void 0?r:e.getConvertedTypeDefinition(t.type)}),(0,Se.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.indexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Tg(e,t,a)}),n}o(dG,"convertActionParameter");function gG(e,t){let n=t;return(0,Se.lazy)(n,"properties",e.convert(t.properties,GT)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,MR)),(0,Se.lazy)(n,"annotations",ra(e,t)),n}o(gG,"convertComplexType");function mG(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ra(e,t)),n}o(mG,"convertTypeDefinition");function hG(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:vg.VocabularyReferences,diagnostics:[]},n=new HT(e,t);return(0,Se.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,DR)),(0,Se.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,wR)),(0,Se.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,VR)),(0,Se.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,uG)),(0,Se.lazy)(t,"actions",n.convert(n.rawSchema.actions,pG)),(0,Se.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,gG)),(0,Se.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,kR)),(0,Se.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,mG)),t.resolvePath=o(function(r){let a=ur(n,void 0,r);return a.target&&ia(a.objectPath,a.target),a},"resolvePath"),t}o(hG,"convert");Eg.convert=hG});var HR=Ye(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.revertTermToGenericType=void 0;var yG=yg();function vG(e,t){var n,i,r,a,s,l;let u;if(Array.isArray(t))u={type:"Collection",Collection:t.map(p=>bg(e,p))};else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))u={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isString)===null||i===void 0)&&i.call(t)){let p=t.valueOf().split(".");p.length>1&&e.find(g=>g.alias===p[0])?u={type:"EnumMember",EnumMember:t.valueOf()}:u={type:"String",String:t.valueOf()}}else!((r=t.isInt)===null||r===void 0)&&r.call(t)?u={type:"Int",Int:t.valueOf()}:!((a=t.isFloat)===null||a===void 0)&&a.call(t)?u={type:"Float",Float:t.valueOf()}:!((s=t.isDate)===null||s===void 0)&&s.call(t)?u={type:"Date",Date:t.valueOf()}:!((l=t.isBoolean)===null||l===void 0)&&l.call(t)?u={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?u={type:"Path",Path:t.path}:t.type==="AnnotationPath"?u={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?u={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?u={type:"Null"}:t.type==="PropertyPath"?u={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?u={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(u={type:"Record",Record:bg(e,t)});return u}o(vG,"revertObjectToRawType");function jR(e,t){let n;switch(t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=vG(e,t);break}return n}o(jR,"revertValueToRawType");var TG=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function $R(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=BR(e,t[i][r]);if(!a.term){let s=(0,yG.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}o($R,"revertAnnotationsToRawType");function bg(e,t){if(typeof t=="string")return t;if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(TG.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:jR(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],$R(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value}}}o(bg,"revertCollectionItemToRawType");function BR(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=[],$R(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>bg(e,i))}):t.hasOwnProperty("$Type")?{...n,record:bg(e,t)}:{...n,value:jR(e,t)}}o(BR,"revertTermToGenericType");Ag.revertTermToGenericType=BR});var GR=Ye(oa=>{"use strict";var EG=oa&&oa.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),XT=oa&&oa.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&EG(t,e,n)};Object.defineProperty(oa,"__esModule",{value:!0});XT(UR(),oa);XT(yg(),oa);XT(HR(),oa)});var JT=Ye(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.MergedRawMetadata=ka.RawMetadataInstance=ka.ensureArray=void 0;function bG(e){return e==null?[]:Array.isArray(e)?e:[e]}o(bG,"ensureArray");ka.ensureArray=bG;var YT=class YT{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(YT,"RawMetadataInstance");var QT=YT;ka.RawMetadataInstance=QT;var zT=class zT{get references(){return this._references}get schema(){return{associations:this._associations,associationSets:this._associationSets,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,singletons:this._singletons,complexTypes:this._complexTypes,typeDefinitions:this._typeDefinitions,actions:this._actions,actionImports:this._actionImports,entityTypes:this._entityTypes}}constructor(t){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._associationSets=[],this._entitySets=[],this._singletons=[],this._actions=[],this._actionImports=[],this._entityContainer={_type:"EntityContainer",fullyQualifiedName:""},this._entityTypes=[],this._complexTypes=[],this._typeDefinitions=[],this.identification="mergedParserInstance",this.version=t.version,this._namespace=t.schema.namespace}addParserOutput(t){this._parserOutput.push(t),this._references=this._references.concat(t.references),this._associations=this._associations.concat(t.schema.associations),this._associationSets=this._associationSets.concat(t.schema.associationSets),this._annotations=Object.assign(this._annotations,t.schema.annotations),this._entitySets=this._entitySets.concat(t.schema.entitySets),this._singletons=this._singletons.concat(t.schema.singletons),this._actions=this._actions.concat(t.schema.actions),this._actionImports=this._actionImports.concat(t.schema.actionImports),this._entityTypes=this._entityTypes.concat(t.schema.entityTypes),this._complexTypes=this._complexTypes.concat(t.schema.complexTypes),this._typeDefinitions=this._typeDefinitions.concat(t.schema.typeDefinitions),t.schema.entityContainer.fullyQualifiedName.length>0&&(this._entityContainer=Object.assign(this._entityContainer,t.schema.entityContainer))}};o(zT,"MergedRawMetadata");var qT=zT;ka.MergedRawMetadata=qT});var WR=Ye(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.merge=void 0;var AG=JT();function SG(...e){let t=new AG.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(SG,"merge");Sg.merge=SG});var KR=Ye(Pg=>{(function(e){e.parser=function(I,S){return new n(I,S)},e.SAXParser=n,e.SAXStream=p,e.createStream=u,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(I,S){if(!(this instanceof n))return new n(I,S);var Y=this;r(Y),Y.q=Y.c="",Y.bufferCheckPosition=e.MAX_BUFFER_LENGTH,Y.opt=S||{},Y.opt.lowercase=Y.opt.lowercase||Y.opt.lowercasetags,Y.looseCase=Y.opt.lowercase?"toLowerCase":"toUpperCase",Y.tags=[],Y.closed=Y.closedRoot=Y.sawRoot=!1,Y.tag=Y.error=null,Y.strict=!!I,Y.noscript=!!(I||Y.opt.noscript),Y.state=_.BEGIN,Y.strictEntities=Y.opt.strictEntities,Y.ENTITIES=Y.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),Y.attribList=[],Y.opt.xmlns&&(Y.ns=Object.create(E)),Y.opt.unquotedAttributeValues===void 0&&(Y.opt.unquotedAttributeValues=!I),Y.trackPosition=Y.opt.position!==!1,Y.trackPosition&&(Y.position=Y.line=Y.column=0),yt(Y,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(I){function S(){}o(S,"F"),S.prototype=I;var Y=new S;return Y}),Object.keys||(Object.keys=function(I){var S=[];for(var Y in I)I.hasOwnProperty(Y)&&S.push(Y);return S});function i(I){for(var S=Math.max(e.MAX_BUFFER_LENGTH,10),Y=0,V=0,De=t.length;V<De;V++){var Rt=I[t[V]].length;if(Rt>S)switch(t[V]){case"textNode":an(I);break;case"cdata":je(I,"oncdata",I.cdata),I.cdata="";break;case"script":je(I,"onscript",I.script),I.script="";break;default:en(I,"Max buffer length exceeded: "+t[V])}Y=Math.max(Y,Rt)}var Qe=e.MAX_BUFFER_LENGTH-Y;I.bufferCheckPosition=Qe+I.position}o(i,"checkBufferLength");function r(I){for(var S=0,Y=t.length;S<Y;S++)I[t[S]]=""}o(r,"clearBuffers");function a(I){an(I),I.cdata!==""&&(je(I,"oncdata",I.cdata),I.cdata=""),I.script!==""&&(je(I,"onscript",I.script),I.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Lt(this)},"end"),write:st,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(I){return I!=="error"&&I!=="end"});function u(I,S){return new p(I,S)}o(u,"createStream");function p(I,S){if(!(this instanceof p))return new p(I,S);s.apply(this),this._parser=new n(I,S),this.writable=!0,this.readable=!0;var Y=this;this._parser.onend=function(){Y.emit("end")},this._parser.onerror=function(V){Y.emit("error",V),Y._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(Y,"on"+V,{get:o(function(){return Y._parser["on"+V]},"get"),set:o(function(De){if(!De)return Y.removeAllListeners(V),Y._parser["on"+V]=De,De;Y.on(V,De)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(I){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(I)){if(!this._decoder){var S=require("string_decoder").StringDecoder;this._decoder=new S("utf8")}I=this._decoder.write(I)}return this._parser.write(I.toString()),this.emit("data",I),!0},p.prototype.end=function(I){return I&&I.length&&this.write(I),this._parser.end(),!0},p.prototype.on=function(I,S){var Y=this;return!Y._parser["on"+I]&&l.indexOf(I)!==-1&&(Y._parser["on"+I]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,I),Y.emit.apply(Y,V)}),s.prototype.on.call(Y,I,S)};var g="[CDATA[",m="DOCTYPE",T="http://www.w3.org/XML/1998/namespace",A="http://www.w3.org/2000/xmlns/",E={xml:T,xmlns:A},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]/,F=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,U=/[#:_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]/,K=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function j(I){return I===" "||I===`
|
|
20
|
+
`||I==="\r"||I===" "}o(j,"isWhitespace");function ae(I){return I==='"'||I==="'"}o(ae,"isQuote");function Z(I){return I===">"||j(I)}o(Z,"isAttribEnd");function re(I,S){return I.test(S)}o(re,"isMatch");function Pe(I,S){return!re(I,S)}o(Pe,"notMatch");var _=0;e.STATE={BEGIN:_++,BEGIN_WHITESPACE:_++,TEXT:_++,TEXT_ENTITY:_++,OPEN_WAKA:_++,SGML_DECL:_++,SGML_DECL_QUOTED:_++,DOCTYPE:_++,DOCTYPE_QUOTED:_++,DOCTYPE_DTD:_++,DOCTYPE_DTD_QUOTED:_++,COMMENT_STARTING:_++,COMMENT:_++,COMMENT_ENDING:_++,COMMENT_ENDED:_++,CDATA:_++,CDATA_ENDING:_++,CDATA_ENDING_2:_++,PROC_INST:_++,PROC_INST_BODY:_++,PROC_INST_ENDING:_++,OPEN_TAG:_++,OPEN_TAG_SLASH:_++,ATTRIB:_++,ATTRIB_NAME:_++,ATTRIB_NAME_SAW_WHITE:_++,ATTRIB_VALUE:_++,ATTRIB_VALUE_QUOTED:_++,ATTRIB_VALUE_CLOSED:_++,ATTRIB_VALUE_UNQUOTED:_++,ATTRIB_VALUE_ENTITY_Q:_++,ATTRIB_VALUE_ENTITY_U:_++,CLOSE_TAG:_++,CLOSE_TAG_SAW_WHITE:_++,SCRIPT:_++,SCRIPT_ENDING:_++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(I){var S=e.ENTITIES[I],Y=typeof S=="number"?String.fromCharCode(S):S;e.ENTITIES[I]=Y});for(var ut in e.STATE)e.STATE[e.STATE[ut]]=ut;_=e.STATE;function yt(I,S,Y){I[S]&&I[S](Y)}o(yt,"emit");function je(I,S,Y){I.textNode&&an(I),yt(I,S,Y)}o(je,"emitNode");function an(I){I.textNode=Wn(I.opt,I.textNode),I.textNode&&yt(I,"ontext",I.textNode),I.textNode=""}o(an,"closeText");function Wn(I,S){return I.trim&&(S=S.trim()),I.normalize&&(S=S.replace(/\s+/g," ")),S}o(Wn,"textopts");function en(I,S){return an(I),I.trackPosition&&(S+=`
|
|
21
21
|
Line: `+I.line+`
|
|
22
22
|
Column: `+I.column+`
|
|
23
|
-
Char: `+I.c),S=new Error(S),I.error=S,
|
|
23
|
+
Char: `+I.c),S=new Error(S),I.error=S,yt(I,"onerror",S),I}o(en,"error");function Lt(I){return I.sawRoot&&!I.closedRoot&&Re(I,"Unclosed root tag"),I.state!==_.BEGIN&&I.state!==_.BEGIN_WHITESPACE&&I.state!==_.TEXT&&en(I,"Unexpected end"),an(I),I.c="",I.closed=!0,yt(I,"onend"),n.call(I,I.strict,I.opt),I}o(Lt,"end");function Re(I,S){if(typeof I!="object"||!(I instanceof n))throw new Error("bad call to strictFail");I.strict&&en(I,S)}o(Re,"strictFail");function Oi(I){I.strict||(I.tagName=I.tagName[I.looseCase]());var S=I.tags[I.tags.length-1]||I,Y=I.tag={name:I.tagName,attributes:{}};I.opt.xmlns&&(Y.ns=S.ns),I.attribList.length=0,je(I,"onopentagstart",Y)}o(Oi,"newTag");function It(I,S){var Y=I.indexOf(":"),V=Y<0?["",I]:I.split(":"),De=V[0],Rt=V[1];return S&&I==="xmlns"&&(De="xmlns",Rt=""),{prefix:De,local:Rt}}o(It,"qname");function Mt(I){if(I.strict||(I.attribName=I.attribName[I.looseCase]()),I.attribList.indexOf(I.attribName)!==-1||I.tag.attributes.hasOwnProperty(I.attribName)){I.attribName=I.attribValue="";return}if(I.opt.xmlns){var S=It(I.attribName,!0),Y=S.prefix,V=S.local;if(Y==="xmlns")if(V==="xml"&&I.attribValue!==T)Re(I,"xml: prefix must be bound to "+T+`
|
|
24
24
|
Actual: `+I.attribValue);else if(V==="xmlns"&&I.attribValue!==A)Re(I,"xmlns: prefix must be bound to "+A+`
|
|
25
|
-
Actual: `+I.attribValue);else{var De=I.tag,
|
|
26
|
-
`?(S.line++,S.column=0):S.column++),S.state){case _.BEGIN:if(S.state=_.BEGIN_WHITESPACE,V==="\uFEFF")continue;
|
|
27
|
-
`?(S.line++,S.column=0):S.column++);S.textNode+=I.substring(De,Y-1)}V==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)?(S.state=_.OPEN_WAKA,S.startTagPosition=S.position):(!j(V)&&(!S.sawRoot||S.closedRoot)&&Re(S,"Text data outside of root node."),V==="&"?S.state=_.TEXT_ENTITY:S.textNode+=V);continue;case _.SCRIPT:V==="<"?S.state=_.SCRIPT_ENDING:S.script+=V;continue;case _.SCRIPT_ENDING:V==="/"?S.state=_.CLOSE_TAG:(S.script+="<"+V,S.state=_.SCRIPT);continue;case _.OPEN_WAKA:if(V==="!")S.state=_.SGML_DECL,S.sgmlDecl="";else if(!j(V))if(re(O,V))S.state=_.OPEN_TAG,S.tagName=V;else if(V==="/")S.state=_.CLOSE_TAG,S.tagName="";else if(V==="?")S.state=_.PROC_INST,S.procInstName=S.procInstBody="";else{if(Re(S,"Unencoded <"),S.startTagPosition+1<S.position){var Lt=S.position-S.startTagPosition;V=new Array(Lt).join(" ")+V}S.textNode+="<"+V,S.state=_.TEXT}continue;case _.SGML_DECL:if(S.sgmlDecl+V==="--"){S.state=_.COMMENT,S.comment="",S.sgmlDecl="";continue}S.doctype&&S.doctype!==!0&&S.sgmlDecl?(S.state=_.DOCTYPE_DTD,S.doctype+="<!"+S.sgmlDecl+V,S.sgmlDecl=""):(S.sgmlDecl+V).toUpperCase()===g?(je(S,"onopencdata"),S.state=_.CDATA,S.sgmlDecl="",S.cdata=""):(S.sgmlDecl+V).toUpperCase()===m?(S.state=_.DOCTYPE,(S.doctype||S.sawRoot)&&Re(S,"Inappropriately located doctype declaration"),S.doctype="",S.sgmlDecl=""):V===">"?(je(S,"onsgmldeclaration",S.sgmlDecl),S.sgmlDecl="",S.state=_.TEXT):(ae(V)&&(S.state=_.SGML_DECL_QUOTED),S.sgmlDecl+=V);continue;case _.SGML_DECL_QUOTED:V===S.q&&(S.state=_.SGML_DECL,S.q=""),S.sgmlDecl+=V;continue;case _.DOCTYPE:V===">"?(S.state=_.TEXT,je(S,"ondoctype",S.doctype),S.doctype=!0):(S.doctype+=V,V==="["?S.state=_.DOCTYPE_DTD:ae(V)&&(S.state=_.DOCTYPE_QUOTED,S.q=V));continue;case _.DOCTYPE_QUOTED:S.doctype+=V,V===S.q&&(S.q="",S.state=_.DOCTYPE);continue;case _.DOCTYPE_DTD:V==="]"?(S.doctype+=V,S.state=_.DOCTYPE):V==="<"?(S.state=_.OPEN_WAKA,S.startTagPosition=S.position):ae(V)?(S.doctype+=V,S.state=_.DOCTYPE_DTD_QUOTED,S.q=V):S.doctype+=V;continue;case _.DOCTYPE_DTD_QUOTED:S.doctype+=V,V===S.q&&(S.state=_.DOCTYPE_DTD,S.q="");continue;case _.COMMENT:V==="-"?S.state=_.COMMENT_ENDING:S.comment+=V;continue;case _.COMMENT_ENDING:V==="-"?(S.state=_.COMMENT_ENDED,S.comment=Gn(S.opt,S.comment),S.comment&&je(S,"oncomment",S.comment),S.comment=""):(S.comment+="-"+V,S.state=_.COMMENT);continue;case _.COMMENT_ENDED:V!==">"?(Re(S,"Malformed comment"),S.comment+="--"+V,S.state=_.COMMENT):S.doctype&&S.doctype!==!0?S.state=_.DOCTYPE_DTD:S.state=_.TEXT;continue;case _.CDATA:V==="]"?S.state=_.CDATA_ENDING:S.cdata+=V;continue;case _.CDATA_ENDING:V==="]"?S.state=_.CDATA_ENDING_2:(S.cdata+="]"+V,S.state=_.CDATA);continue;case _.CDATA_ENDING_2:V===">"?(S.cdata&&je(S,"oncdata",S.cdata),je(S,"onclosecdata"),S.cdata="",S.state=_.TEXT):V==="]"?S.cdata+="]":(S.cdata+="]]"+V,S.state=_.CDATA);continue;case _.PROC_INST:V==="?"?S.state=_.PROC_INST_ENDING:j(V)?S.state=_.PROC_INST_BODY:S.procInstName+=V;continue;case _.PROC_INST_BODY:if(!S.procInstBody&&j(V))continue;V==="?"?S.state=_.PROC_INST_ENDING:S.procInstBody+=V;continue;case _.PROC_INST_ENDING:V===">"?(je(S,"onprocessinginstruction",{name:S.procInstName,body:S.procInstBody}),S.procInstName=S.procInstBody="",S.state=_.TEXT):(S.procInstBody+="?"+V,S.state=_.PROC_INST_BODY);continue;case _.OPEN_TAG:re(F,V)?S.tagName+=V:(Ii(S),V===">"?an(S):V==="/"?S.state=_.OPEN_TAG_SLASH:(j(V)||Re(S,"Invalid character in tag name"),S.state=_.ATTRIB));continue;case _.OPEN_TAG_SLASH:V===">"?(an(S,!0),ji(S)):(Re(S,"Forward-slash in opening tag not followed by >"),S.state=_.ATTRIB);continue;case _.ATTRIB:if(j(V))continue;V===">"?an(S):V==="/"?S.state=_.OPEN_TAG_SLASH:re(O,V)?(S.attribName=V,S.attribValue="",S.state=_.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case _.ATTRIB_NAME:V==="="?S.state=_.ATTRIB_VALUE:V===">"?(Re(S,"Attribute without value"),S.attribValue=S.attribName,Mt(S),an(S)):j(V)?S.state=_.ATTRIB_NAME_SAW_WHITE:re(F,V)?S.attribName+=V:Re(S,"Invalid attribute name");continue;case _.ATTRIB_NAME_SAW_WHITE:if(V==="=")S.state=_.ATTRIB_VALUE;else{if(j(V))continue;Re(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",je(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",V===">"?an(S):re(O,V)?(S.attribName=V,S.state=_.ATTRIB_NAME):(Re(S,"Invalid attribute name"),S.state=_.ATTRIB)}continue;case _.ATTRIB_VALUE:if(j(V))continue;ae(V)?(S.q=V,S.state=_.ATTRIB_VALUE_QUOTED):(S.opt.unquotedAttributeValues||Zt(S,"Unquoted attribute value"),S.state=_.ATTRIB_VALUE_UNQUOTED,S.attribValue=V);continue;case _.ATTRIB_VALUE_QUOTED:if(V!==S.q){V==="&"?S.state=_.ATTRIB_VALUE_ENTITY_Q:S.attribValue+=V;continue}Mt(S),S.q="",S.state=_.ATTRIB_VALUE_CLOSED;continue;case _.ATTRIB_VALUE_CLOSED:j(V)?S.state=_.ATTRIB:V===">"?an(S):V==="/"?S.state=_.OPEN_TAG_SLASH:re(O,V)?(Re(S,"No whitespace between attributes"),S.attribName=V,S.attribValue="",S.state=_.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case _.ATTRIB_VALUE_UNQUOTED:if(!Z(V)){V==="&"?S.state=_.ATTRIB_VALUE_ENTITY_U:S.attribValue+=V;continue}Mt(S),V===">"?an(S):S.state=_.ATTRIB;continue;case _.CLOSE_TAG:if(S.tagName)V===">"?ji(S):re(F,V)?S.tagName+=V:S.script?(S.script+="</"+S.tagName,S.tagName="",S.state=_.SCRIPT):(j(V)||Re(S,"Invalid tagname in closing tag"),S.state=_.CLOSE_TAG_SAW_WHITE);else{if(j(V))continue;Pe(O,V)?S.script?(S.script+="</"+V,S.state=_.SCRIPT):Re(S,"Invalid tagname in closing tag."):S.tagName=V}continue;case _.CLOSE_TAG_SAW_WHITE:if(j(V))continue;V===">"?ji(S):Re(S,"Invalid characters in closing tag");continue;case _.TEXT_ENTITY:case _.ATTRIB_VALUE_ENTITY_Q:case _.ATTRIB_VALUE_ENTITY_U:var Qe,wt;switch(S.state){case _.TEXT_ENTITY:Qe=_.TEXT,wt="textNode";break;case _.ATTRIB_VALUE_ENTITY_Q:Qe=_.ATTRIB_VALUE_QUOTED,wt="attribValue";break;case _.ATTRIB_VALUE_ENTITY_U:Qe=_.ATTRIB_VALUE_UNQUOTED,wt="attribValue";break}if(V===";"){var yn=Fe(S);S.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(yn)?(S.entity="",S.state=Qe,S.write(yn)):(S[wt]+=yn,S.entity="",S.state=Qe)}else re(S.entity.length?K:U,V)?S.entity+=V:(Re(S,"Invalid character in entity name"),S[wt]+="&"+S.entity+V,S.entity="",S.state=Qe);continue;default:throw new Error(S,"Unknown state: "+S.state)}return S.position>=S.bufferCheckPosition&&i(S),S}o(at,"write");String.fromCodePoint||function(){var I=String.fromCharCode,S=Math.floor,Y=o(function(){var V=16384,De=[],Lt,Qe,wt=-1,yn=arguments.length;if(!yn)return"";for(var sn="";++wt<yn;){var Bt=Number(arguments[wt]);if(!isFinite(Bt)||Bt<0||Bt>1114111||S(Bt)!==Bt)throw RangeError("Invalid code point: "+Bt);Bt<=65535?De.push(Bt):(Bt-=65536,Lt=(Bt>>10)+55296,Qe=Bt%1024+56320,De.push(Lt,Qe)),(wt+1===yn||De.length>V)&&(sn+=I.apply(null,De),De.length=0)}return sn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Y,configurable:!0,writable:!0}):String.fromCodePoint=Y}()})(typeof Sg>"u"?Sg.sax={}:Sg)});var Pg=Ye((Yz,KR)=>{KR.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var xg=Ye((Jz,XR)=>{var SG=Pg().isArray;XR.exports={copyOptions:o(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},"copyOptions"),ensureFlagExists:o(function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},"ensureFlagExists"),ensureSpacesExists:o(function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},"ensureSpacesExists"),ensureAlwaysArrayExists:o(function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!SG(e.alwaysArray))&&(e.alwaysArray=!1)},"ensureAlwaysArrayExists"),ensureKeyExists:o(function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},"ensureKeyExists"),checkFnExists:o(function(e,t){return e+"Fn"in t},"checkFnExists")}});var ZT=Ye((eJ,tF)=>{var PG=WR(),xG={on:o(function(){},"on"),parse:o(function(){},"parse")},it=xg(),ol=Pg().isArray,H,JT=!0,$e;function CG(e){return H=it.copyOptions(e),it.ensureFlagExists("ignoreDeclaration",H),it.ensureFlagExists("ignoreInstruction",H),it.ensureFlagExists("ignoreAttributes",H),it.ensureFlagExists("ignoreText",H),it.ensureFlagExists("ignoreComment",H),it.ensureFlagExists("ignoreCdata",H),it.ensureFlagExists("ignoreDoctype",H),it.ensureFlagExists("compact",H),it.ensureFlagExists("alwaysChildren",H),it.ensureFlagExists("addParent",H),it.ensureFlagExists("trim",H),it.ensureFlagExists("nativeType",H),it.ensureFlagExists("nativeTypeAttributes",H),it.ensureFlagExists("sanitize",H),it.ensureFlagExists("instructionHasAttributes",H),it.ensureFlagExists("captureSpacesBetweenElements",H),it.ensureAlwaysArrayExists(H),it.ensureKeyExists("declaration",H),it.ensureKeyExists("instruction",H),it.ensureKeyExists("attributes",H),it.ensureKeyExists("text",H),it.ensureKeyExists("comment",H),it.ensureKeyExists("cdata",H),it.ensureKeyExists("doctype",H),it.ensureKeyExists("type",H),it.ensureKeyExists("name",H),it.ensureKeyExists("elements",H),it.ensureKeyExists("parent",H),it.checkFnExists("doctype",H),it.checkFnExists("instruction",H),it.checkFnExists("cdata",H),it.checkFnExists("comment",H),it.checkFnExists("text",H),it.checkFnExists("instructionName",H),it.checkFnExists("elementName",H),it.checkFnExists("attributeName",H),it.checkFnExists("attributeValue",H),it.checkFnExists("attributes",H),H}o(CG,"validateOptions");function ZR(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(ZR,"nativeType");function eu(e,t){var n;if(H.compact){if(!$e[H[e+"Key"]]&&(ol(H.alwaysArray)?H.alwaysArray.indexOf(H[e+"Key"])!==-1:H.alwaysArray)&&($e[H[e+"Key"]]=[]),$e[H[e+"Key"]]&&!ol($e[H[e+"Key"]])&&($e[H[e+"Key"]]=[$e[H[e+"Key"]]]),e+"Fn"in H&&typeof t=="string"&&(t=H[e+"Fn"](t,$e)),e==="instruction"&&("instructionFn"in H||"instructionNameFn"in H)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in H)t[n]=H.instructionFn(t[n],n,$e);else{var i=t[n];delete t[n],t[H.instructionNameFn(n,i,$e)]=i}}ol($e[H[e+"Key"]])?$e[H[e+"Key"]].push(t):$e[H[e+"Key"]]=t}else{$e[H.elementsKey]||($e[H.elementsKey]=[]);var r={};if(r[H.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[H.nameKey]="instructionNameFn"in H?H.instructionNameFn(n,t,$e):n,H.instructionHasAttributes?(r[H.attributesKey]=t[n][H.attributesKey],"instructionFn"in H&&(r[H.attributesKey]=H.instructionFn(r[H.attributesKey],n,$e))):("instructionFn"in H&&(t[n]=H.instructionFn(t[n],n,$e)),r[H.instructionKey]=t[n])}else e+"Fn"in H&&(t=H[e+"Fn"](t,$e)),r[H[e+"Key"]]=t;H.addParent&&(r[H.parentKey]=$e),$e[H.elementsKey].push(r)}}o(eu,"addField");function eF(e){if("attributesFn"in H&&e&&(e=H.attributesFn(e,$e)),(H.trim||"attributeValueFn"in H||"attributeNameFn"in H||H.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(H.trim&&(e[t]=e[t].trim()),H.nativeTypeAttributes&&(e[t]=ZR(e[t])),"attributeValueFn"in H&&(e[t]=H.attributeValueFn(e[t],t,$e)),"attributeNameFn"in H)){var n=e[t];delete e[t],e[H.attributeNameFn(t,e[t],$e)]=n}}return e}o(eF,"manipulateAttributes");function IG(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||H.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,i;(i=n.exec(e.body))!==null;)t[i[1]]=i[2]||i[3]||i[4];t=eF(t)}if(e.name.toLowerCase()==="xml"){if(H.ignoreDeclaration)return;$e[H.declarationKey]={},Object.keys(t).length&&($e[H.declarationKey][H.attributesKey]=t),H.addParent&&($e[H.declarationKey][H.parentKey]=$e)}else{if(H.ignoreInstruction)return;H.trim&&(e.body=e.body.trim());var r={};H.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][H.attributesKey]=t):r[e.name]=e.body,eu("instruction",r)}}o(IG,"onInstruction");function QR(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=eF(t),"elementNameFn"in H&&(e=H.elementNameFn(e,$e)),H.compact){if(n={},!H.ignoreAttributes&&t&&Object.keys(t).length){n[H.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[H.attributesKey][i]=t[i])}!(e in $e)&&(ol(H.alwaysArray)?H.alwaysArray.indexOf(e)!==-1:H.alwaysArray)&&($e[e]=[]),$e[e]&&!ol($e[e])&&($e[e]=[$e[e]]),ol($e[e])?$e[e].push(n):$e[e]=n}else $e[H.elementsKey]||($e[H.elementsKey]=[]),n={},n[H.typeKey]="element",n[H.nameKey]=e,!H.ignoreAttributes&&t&&Object.keys(t).length&&(n[H.attributesKey]=t),H.alwaysChildren&&(n[H.elementsKey]=[]),$e[H.elementsKey].push(n);n[H.parentKey]=$e,$e=n}o(QR,"onStartElement");function qR(e){H.ignoreText||!e.trim()&&!H.captureSpacesBetweenElements||(H.trim&&(e=e.trim()),H.nativeType&&(e=ZR(e)),H.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),eu("text",e))}o(qR,"onText");function YR(e){H.ignoreComment||(H.trim&&(e=e.trim()),eu("comment",e))}o(YR,"onComment");function zR(e){var t=$e[H.parentKey];H.addParent||delete $e[H.parentKey],$e=t}o(zR,"onEndElement");function OG(e){H.ignoreCdata||(H.trim&&(e=e.trim()),eu("cdata",e))}o(OG,"onCdata");function NG(e){H.ignoreDoctype||(e=e.replace(/^ /,""),H.trim&&(e=e.trim()),eu("doctype",e))}o(NG,"onDoctype");function JR(e){e.note=e}o(JR,"onError");tF.exports=function(e,t){var n=JT?PG.parser(!0,{}):n=new xG.Parser("UTF-8"),i={};if($e=i,H=CG(t),JT?(n.opt={strictEntities:!0},n.onopentag=QR,n.ontext=qR,n.oncomment=YR,n.onclosetag=zR,n.onerror=JR,n.oncdata=OG,n.ondoctype=NG,n.onprocessinginstruction=IG):(n.on("startElement",QR),n.on("text",qR),n.on("comment",YR),n.on("endElement",zR),n.on("error",JR)),JT)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[H.elementsKey]){var r=i[H.elementsKey];delete i[H.elementsKey],i[H.elementsKey]=r,delete i.text}return i}});var rF=Ye((nJ,iF)=>{var nF=xg(),LG=ZT();function RG(e){var t=nF.copyOptions(e);return nF.ensureSpacesExists(t),t}o(RG,"validateOptions");iF.exports=function(e,t){var n,i,r,a;return n=RG(t),i=LG(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?r=JSON.stringify(i,function(s,l){return s===a?"_":l},n.spaces):r=JSON.stringify(i,null,n.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var tE=Ye((rJ,dF)=>{var ct=xg(),FG=Pg().isArray,vi,Ti;function _G(e){var t=ct.copyOptions(e);return ct.ensureFlagExists("ignoreDeclaration",t),ct.ensureFlagExists("ignoreInstruction",t),ct.ensureFlagExists("ignoreAttributes",t),ct.ensureFlagExists("ignoreText",t),ct.ensureFlagExists("ignoreComment",t),ct.ensureFlagExists("ignoreCdata",t),ct.ensureFlagExists("ignoreDoctype",t),ct.ensureFlagExists("compact",t),ct.ensureFlagExists("indentText",t),ct.ensureFlagExists("indentCdata",t),ct.ensureFlagExists("indentAttributes",t),ct.ensureFlagExists("indentInstruction",t),ct.ensureFlagExists("fullTagEmptyElement",t),ct.ensureFlagExists("noQuotesForNativeAttributes",t),ct.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),ct.ensureKeyExists("declaration",t),ct.ensureKeyExists("instruction",t),ct.ensureKeyExists("attributes",t),ct.ensureKeyExists("text",t),ct.ensureKeyExists("comment",t),ct.ensureKeyExists("cdata",t),ct.ensureKeyExists("doctype",t),ct.ensureKeyExists("type",t),ct.ensureKeyExists("name",t),ct.ensureKeyExists("elements",t),ct.checkFnExists("doctype",t),ct.checkFnExists("instruction",t),ct.checkFnExists("cdata",t),ct.checkFnExists("comment",t),ct.checkFnExists("text",t),ct.checkFnExists("instructionName",t),ct.checkFnExists("elementName",t),ct.checkFnExists("attributeName",t),ct.checkFnExists("attributeValue",t),ct.checkFnExists("attributes",t),ct.checkFnExists("fullTagEmptyElement",t),t}o(_G,"validateOptions");function Po(e,t,n){return(!n&&e.spaces?`
|
|
28
|
-
`:"")+Array(t+1).join(e.spaces)}o(
|
|
29
|
-
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(VG,"writeElement");function fF(e,t,n,i){return e.reduce(function(r,a){var s=Po(t,n,i&&!r);switch(a.type){case"element":return r+s+VG(a,t,n);case"comment":return r+s+sF(a[t.commentKey],t);case"doctype":return r+s+lF(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+cF(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+eE(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+aF(l,t,n)}},"")}o(fF,"writeElements");function uF(e,t,n){var i;for(i in e)if(e.hasOwnProperty(i))switch(i){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}o(uF,"hasContentCompact");function MG(e,t,n,i,r){vi=e,Ti=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(">"+eE(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(Cg(e[n.attributesKey],n,i));var l=uF(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(l||("fullTagEmptyElementFn"in n?l=n.fullTagEmptyElementFn(t,e):l=n.fullTagEmptyElement),l)s.push(">");else return s.push("/>"),s.join("")}return s.push(pF(e,n,i+1,!1)),vi=e,Ti=t,t&&s.push((r?Po(n,i,!1):"")+"</"+a+">"),s.join("")}o(MG,"writeElementCompact");function pF(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=FG(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(oF(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Po(t,n,i):"")+aF(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Po(t,n,i):"")+eE(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Po(t,n,i):"")+cF(s[r],t));break;case t.doctypeKey:l.push(Po(t,n,i)+lF(s[r],t));break;case t.commentKey:l.push(Po(t,n,i)+sF(s[r],t));break;default:l.push(Po(t,n,i)+MG(s[r],a,t,n,uF(s[r],t)))}i=i&&!l.length}return l.join("")}o(pF,"writeElementsCompact");dF.exports=function(e,t){t=_G(t);var n=[];return vi=e,Ti="_root_",t.compact?n.push(pF(e,t,0,!0)):(e[t.declarationKey]&&n.push(oF(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(fF(e[t.elementsKey],t,0,!n.length))),n.join("")}});var mF=Ye((aJ,gF)=>{var wG=tE();gF.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 wG(n,t)}});var Ks=Ye((sJ,hF)=>{var kG=ZT(),UG=rF(),jG=tE(),$G=mF();hF.exports={xml2js:kG,xml2json:UG,js2xml:jG,json2xml:$G}});var AF=Ye(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.convertEntityTypeAnnotations=Ki.convertPropertyAnnotations=Ki.convertNavigationPropertyAnnotations=Ki.convertEntitySetAnnotations=Ki.convertGenericAnnotations=Ki.convertV2Annotations=void 0;function BG(e,t,n){let i=[];switch(t){case"EntitySet":vF(e,i);break;case"EntityType":bF(e,i);break;case"NavigationProperty":TF(e,n,i);break;case"Property":EF(e,n,i);break;case"Singleton":break;default:break}return yF(e,n,i),i}o(BG,"convertV2Annotations");Ki.convertV2Annotations=BG;function yF(e,t,n){function i(r,a){r&&n.push(a)}if(o(i,"pushToAnnotations"),i(e["sap:schema-version"]!==void 0,{term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),i(e["sap:searchable"]!==void 0,{term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searchable",value:{type:"Bool",Bool:e["sap:searchable"]==="true"}}]}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:topable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:topable"]==="true"}}),i(e["sap:requires-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiresFilter",value:{type:"Bool",Bool:e["sap:requires-filter"]==="true"}}]}}),i(e["sap:required-in-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiredProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}}),i(e["sap:filter-restricton"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"String",String:e["sap:filter-restricton"]}},{name:"Property",value:{type:"PropertyPath",PropertyPath:t}}]}]}}]}}),i(e["sap:sortable"]==="false",{term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:t}}]}}),i(e["sap:visible"]==="false",{term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),i(e["sap:label"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),i(e["sap:heading"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),i(e["sap:quickinfo"]!==void 0,{term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),i(e["sap:text"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:precision"]!==void 0,{term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"],10)}}),i(e["sap:value-list"]==="fixed-value",{term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="NonNegative",{term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="UpperCase",{term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){let r=[];e["sap:lower-boundary"]&&r.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&r.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:r}})}i(e["sap:field-control"]!==void 0,{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),i(e["sap:applicable-path"]!==void 0,{term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),i(e["sap:minoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"],10)}}),i(e["sap:maxoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"],10)}}),i(e["sap:parameter"]==="mandatory",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),i(e["sap:parameter"]==="optional",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),i(e["sap:attribute-for"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}})}o(yF,"convertGenericAnnotations");Ki.convertGenericAnnotations=yF;function vF(e,t){e["sap:creatable"]&&t.push({term:"Org.OData.Capabilities.V1.InsertRestrictions",record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}),e["sap:updatable"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:updatable-path"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Path",Path:e["sap:updatable-path"]}}]}}),e["sap:deletable"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:deletable-path"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Path",Path:e["sap:deletable-path"]}}]}})}o(vF,"convertEntitySetAnnotations");Ki.convertEntitySetAnnotations=vF;function TF(e,t,n){e["sap:creatable"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}}]}}}]}}),e["sap:creatable-path"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Path",Path:e["sap:creatable-path"]}}]}}}]}}}]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"NavigationProperty",value:{type:"NavigationPropertyPath",NavigationPropertyPath:t}},{name:"FilterRestrictions",value:{type:"Record",Record:{propertyValues:[{name:"Filterable",value:{type:"Bool",Bool:!1}}]}}}]}]}}]}})}o(TF,"convertNavigationPropertyAnnotations");Ki.convertNavigationPropertyAnnotations=TF;function EF(e,t,n){e["sap:creatable"]==="true"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Immutable",value:{type:"Bool",Bool:!0}}),e["sap:creatable"]==="false"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Computed",value:{type:"Bool",Bool:!0}}),e["sap:updatable-path"]&&n.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:updatable-path"]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"NonFilterableProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}})}o(EF,"convertPropertyAnnotations");Ki.convertPropertyAnnotations=EF;function bF(e,t){e["sap:semantics"]==="aggregate"&&t.push({term:"Org.OData.Aggregation.V1.ApplySupported",record:{propertyValues:[{name:"PropertyRestrictions",value:{type:"Collection",Collection:[]}},{name:"GroupableProperties",value:{type:"Collection",Collection:[]}},{name:"AggregatableProperties",value:{type:"Collection",Collection:[]}}]}})}o(bF,"convertEntityTypeAnnotations");Ki.convertEntityTypeAnnotations=bF});var OF=Ye(Fg=>{"use strict";Object.defineProperty(Fg,"__esModule",{value:!0});Fg.parse=void 0;var HG=Ks(),Be=zT(),tu=AF(),Ng=/^Collection\((.+)\)$/;function GG(e){return e.Type!==null&&e.Type!==void 0}o(GG,"isV4NavProperty");function WG(e){return e.map(t=>t._attributes.Name)}o(WG,"getEntityTypeKeys");function xF(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:al(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":s.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=a._attributes.DefaultValue==="true";break;default:s.defaultValue=a._attributes.DefaultValue;break}r.entityProperties.push(s),t.indexOf(s.name)!==-1&&r.entityKeys.push(s);let l=(0,tu.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(Xs(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(xF,"parseProperties");function KG(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(KG,"parseReferentialConstraint");function XG(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let s=(0,Be.ensureArray)(i.Principal.PropertyRef),l=(0,Be.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(u=>u.role===i.Dependent._attributes.Role),l=s,s=(0,Be.ensureArray)(i.Dependent.PropertyRef));for(let u of s){let p=s.indexOf(u);n.push({sourceTypeName:r.type,sourceProperty:u._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}o(XG,"parseV2ReferentialConstraint");function CF(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(GG(s)){let l=s.Type.match(Ng),u=l!==null,p=xo(l?l[1]:s.Type);r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:u,targetTypeName:p,referentialConstraint:KG((0,Be.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:u,FromRole:p}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:u,fromRole:p});let g=(0,tu.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(Xs(`${n}/${s.Name}`,g))}return r},[])}o(CF,"parseNavigationProperties");function QG(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,Be.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}o(QG,"parseAssociationSets");function qG(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,Be.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:XG((0,Be.ensureArray)(n.ReferentialConstraint),r)}})}o(qG,"parseAssociations");function YG(e,t,n){return e.reduce((i,r)=>{let a=r.Key?WG((0,Be.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=xF((0,Be.ensureArray)(r.Property),a,s,t),p=CF((0,Be.ensureArray)(r.NavigationProperty),r,s,t),g={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:u,entityProperties:l,actions:{},navigationProperties:p},m=(0,tu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(Xs(g.fullyQualifiedName,m)),i.push(g),i},[])}o(YG,"parseEntityTypes");function zG(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=xF((0,Be.ensureArray)(r.Property),[],a,t),l=CF((0,Be.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(zG,"parseComplexTypes");function JG(e,t){return e.reduce((n,i)=>{let r=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:r,underlyingType:i._attributes.UnderlyingType}),n},[])}o(JG,"parseTypeDefinitions");function ZG(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,Be.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:xo(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,tu.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(Xs(l.fullyQualifiedName,u)),l})}o(ZG,"parseEntitySets");function eW(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,Be.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:xo(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,tu.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(Xs(l.fullyQualifiedName,u)),l})}o(eW,"parseSingletons");function SF(e,t,n){return e.map(i=>{let r=(0,Be.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(u=>al(u._attributes.Type).type).join(","):s=a?al(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?al(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:g}=al(u._attributes.Type),m={_type:"ActionParameter",fullyQualifiedName:`${l}/${u._attributes.Name}`,name:`${u._attributes.Name}`,type:g,isCollection:p};return u._attributes.MaxLength&&(m.maxLength=parseInt(u._attributes.MaxLength,10)),u._attributes.Precision&&(m.precision=parseInt(u._attributes.Precision,10)),u._attributes.Scale&&(m.scale=parseInt(u._attributes.Scale,10)),m.nullable=u._attributes.Nullable!=="false",m}),returnType:i.ReturnType?al(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(Ng)!==null:!1}})}o(SF,"parseActions");function tW(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,Be.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(Ng)!==null:!1}})}o(tW,"parseV2FunctionImport");function PF(e,t){return e.map(n=>{var i;let r=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:xo(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:xo(r)}})}o(PF,"parseActionImports");function nW(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...s}=i,l={};if(a){let u=Object.keys(a).find(g=>g!=="Property");l.name=a.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=Og(s,p,n,!1):u&&(l.value=IF({[u]:a[u]},p,n)),i.Annotation){let g=Rg((0,Be.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(Xs(p,g))}}return l})}o(nW,"parsePropertyValues");function Lg(e,t,n){let i=Rg((0,Be.ensureArray)(e.Annotation),t,n),r={type:e._attributes?xo(e._attributes.Type):void 0,propertyValues:nW((0,Be.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(Lg,"parseRecord");function oa(e,t){return e[t]!=null}o(oa,"isExpressionOfType");function Ig(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}o(Ig,"parseModelPath");function iE(e,t,n){if(oa(e,"Record")){let i=(0,Be.ensureArray)(e.Record).map((r,a)=>Lg(r,t+"/"+a,n));return i.type="Record",i}else if(oa(e,"PropertyPath")){let i=(0,Be.ensureArray)(e.PropertyPath).map(r=>Ig(r,"PropertyPath"));return i.type="PropertyPath",i}else if(oa(e,"NavigationPropertyPath")){let i=(0,Be.ensureArray)(e.NavigationPropertyPath).map(r=>Ig(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(oa(e,"String")){let i=(0,Be.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(oa(e,"AnnotationPath")){let i=(0,Be.ensureArray)(e.AnnotationPath).map(r=>Ig(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(oa(e,"Path")){let i=(0,Be.ensureArray)(e.Path).map(r=>Ig(r,"Path"));return i.type="Path",i}else if(oa(e,"If")){let i=(0,Be.ensureArray)(e.If).map(r=>r._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}o(iE,"parseCollection");function Tn(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(r=>Og({[i]:r},"",[],!0))):n.push(Og({[i]:e[i]},"",[],!0))}),n}o(Tn,"parseChildren");function IF(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:iE(e.Collection,t,n)};case"Record":return{type:"Record",Record:Lg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Tn(e.Apply),$Function:Tn(e.Function)};case"And":return{type:"And",$And:Tn(e.And)};case"Or":return{type:"Or",$Or:Tn(e.Or)};case"Eq":return{type:"Eq",$Eq:Tn(e.Eq)};case"Gt":return{type:"Gt",$Gt:Tn(e.Gt)};case"Ge":return{type:"Ge",$Ge:Tn(e.Ge)};case"Lt":return{type:"Lt",$Lt:Tn(e.Lt)};case"Le":return{type:"Le",$Le:Tn(e.Le)};case"If":return{type:"If",$If:Tn(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(IF,"parseInlineExpression");function Og(e,t,n,i){let r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=r[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:Tn(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"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:iE(e.Collection,t,n)};case"Record":return{type:"Record",Record:Lg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Tn(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:Tn(e.And)};case"Ne":return{type:"Ne",$Ne:Tn(e.Ne)};case"Not":return{type:"Not",$Not:Tn(e.Not)[0]};case"Or":return{type:"Or",$Or:Tn(e.Or)};case"Eq":return{type:"Eq",$Eq:Tn(e.Eq)};case"If":return{type:"If",$If:Tn(e.If)};case"Gt":return{type:"Gt",$Gt:Tn(e.Gt)};case"Ge":return{type:"Ge",$Ge:Tn(e.Ge)};case"Lt":return{type:"Lt",$Lt:Tn(e.Lt)};case"Le":return{type:"Le",$Le:Tn(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(Og,"parseExpression");function iW(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:xo(i),qualifier:r},l=`${t}@${xo(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=IF(a,l,n)),e.Annotation){let p=Rg((0,Be.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let u=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return oa(e,"Record")?s.record=Lg(e.Record,l,n):oa(e,"Collection")?s.collection=iE(e.Collection,l,n):u.length===1?s.value=Og({[u[0]]:e[u[0]]},l,n,!1):u.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}o(iW,"parseAnnotation");function Rg(e,t,n){return e.map(i=>iW(i,t,n))}o(Rg,"parseAnnotations");function Xs(e,t){return{target:e,annotations:t}}o(Xs,"createAnnotationList");function rW(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(Xs(xo(n._attributes.Target),Rg((0,Be.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(rW,"parseAnnotationLists");function oW(e,t,n){let i=e._attributes.Namespace,r=[],a=YG((0,Be.ensureArray)(e.EntityType),r,i),s=zG((0,Be.ensureArray)(e.ComplexType),r,i),l=JG((0,Be.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},T=[],A=[];if(e.EntityContainer)if(u=ZG((0,Be.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=eW((0,Be.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=QG((0,Be.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),m={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")T=T.concat(tW((0,Be.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")A=A.concat(PF((0,Be.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),A=A.concat(PF((0,Be.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(T=T.concat(SF((0,Be.ensureArray)(e.Action),i,!1)),T=T.concat(SF((0,Be.ensureArray)(e.Function),i,!0)));let E=qG((0,Be.ensureArray)(e.Association),i);rW((0,Be.ensureArray)(e.Annotations),r);let O={};return O[n]=r,{associations:E,associationSets:g,annotations:O,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:T,actionImports:A,entityTypes:a}}o(oW,"parseSchema");function aW(e){return e.reduce((t,n)=>((0,Be.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(aW,"parseReferences");var nE={};function al(e){let t=e.match(Ng),n=t?t[1]:e,i=xo(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(al,"unaliasType");function xo(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let a=0,s=!0;a<e.length;a++){let l=e[a];if(s&&l==="."){let u=e.substring(r,a);i.push((t=nE[u])!==null&&t!==void 0?t:u),r=a,s=!1}n.includes(l)&&(i.push(e.substring(r,a+1)),r=a+1,s=!0)}return i.push(e.substring(r)),i.join("")}o(xo,"unalias");function sW(e){let t=e.reduce((A,E)=>A.concat(E.associations),[]),n=e.reduce((A,E)=>A.concat(E.associationSets),[]),i=e.reduce((A,E)=>A.concat(E.entitySets),[]),r=e.reduce((A,E)=>A.concat(E.singletons),[]),a=e.reduce((A,E)=>A.concat(E.entityTypes),[]),s=e.reduce((A,E)=>A.concat(E.actions),[]),l=e.reduce((A,E)=>A.concat(E.actionImports),[]),u=e.reduce((A,E)=>A.concat(E.complexTypes),[]),p=e.reduce((A,E)=>A.concat(E.typeDefinitions),[]),g={};e.forEach(A=>{g=Object.assign(g,A.annotations)});let m,T;return e.forEach(A=>{A.entityContainer&&Object.keys(A.entityContainer).length>0&&(m=A.entityContainer,T=A.namespace)}),i.forEach(A=>{let E=a.find(O=>O.fullyQualifiedName===A.entityTypeName);E==null||E.navigationProperties.forEach(O=>{let F=O,U=n.find(K=>K.association===F.relationship);if(U){let K=U.associationEnd.find(j=>j.entitySet!==A.fullyQualifiedName);K&&(A.navigationPropertyBinding[O.name]=K.entitySet)}})}),a.forEach(A=>{A.navigationProperties.forEach(E=>{let O=E,F=t.find(U=>U.fullyQualifiedName===O.relationship);F&&F.referentialConstraints&&F.referentialConstraints.length>0&&(F.referentialConstraints[0].sourceTypeName===A.fullyQualifiedName?O.referentialConstraint=F.referentialConstraints:O.referentialConstraint=F.referentialConstraints.map(U=>({sourceTypeName:U.targetTypeName,sourceProperty:U.targetProperty,targetTypeName:U.sourceTypeName,targetProperty:U.sourceProperty})))})}),{associations:t,associationSets:n,annotations:g,entityContainer:m,namespace:T,entitySets:i,singletons:r,complexTypes:u,typeDefinitions:p,actions:s,actionImports:l,entityTypes:a}}o(sW,"mergeSchemas");function cW(e,t){nE=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{nE[n._attributes.Alias]=n._attributes.Namespace})}o(cW,"createAliasMap");function lW(e,t="serviceFile"){let n=(0,HG.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,Be.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=aW((0,Be.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));cW(a,r);let s=r.map(u=>oW(u,i,t));return new Be.RawMetadataInstance(t,i,sW(s),a)}o(lW,"parse");Fg.parse=lW});var NF=Ye(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.parse=sl.merge=void 0;var fW=GR();Object.defineProperty(sl,"merge",{enumerable:!0,get:o(function(){return fW.merge},"get")});var uW=OF();Object.defineProperty(sl,"parse",{enumerable:!0,get:o(function(){return uW.parse},"get")})});var HF=Ye(()=>{var BF;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=r(e);typeof n.Reflect<"u"&&(i=r(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function r(u,p){return function(g,m){Object.defineProperty(u,g,{configurable:!0,writable:!0,value:m}),p&&p(g,m)}}o(r,"makeExporter");function a(){try{return Function("return this;")()}catch{}}o(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(s,"indirectEvalThis");function l(){return a()||s()}o(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",u={__proto__:[]}instanceof Array,p=!l&&!u,g={create:l?function(){return Ds(Object.create(null))}:u?function(){return Ds({__proto__:null})}:function(){return Ds({})},has:p?function(k,B){return i.call(k,B)}:function(k,B){return B in k},get:p?function(k,B){return i.call(k,B)?k[B]:void 0}:function(k,B){return k[B]}},m=Object.getPrototypeOf(Function),T=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Nf(),A=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Lf(),E=typeof WeakMap=="function"?WeakMap:Rf(),O=r?Symbol.for("@reflect-metadata:registry"):void 0,F=$i(),U=Of(F);function K(k,B,Q,ce){if(Fe(Q)){if(!Lt(k))throw new TypeError;if(!wt(B))throw new TypeError;return on(k,B)}else{if(!Lt(k))throw new TypeError;if(!at(B))throw new TypeError;if(!at(ce)&&!Fe(ce)&&!Wn(ce))throw new TypeError;return Wn(ce)&&(ce=void 0),Q=De(Q),Gn(k,B,Q,ce)}}o(K,"decorate"),t("decorate",K);function j(k,B){function Q(ce,Le){if(!at(ce))throw new TypeError;if(!Fe(Le)&&!yn(Le))throw new TypeError;Ct(k,B,ce,Le)}return o(Q,"decorator"),Q}o(j,"metadata"),t("metadata",j);function ae(k,B,Q,ce){if(!at(Q))throw new TypeError;return Fe(ce)||(ce=De(ce)),Ct(k,B,Q,ce)}o(ae,"defineMetadata"),t("defineMetadata",ae);function Z(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=De(Q)),Zt(k,B,Q)}o(Z,"hasMetadata"),t("hasMetadata",Z);function re(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=De(Q)),Nt(k,B,Q)}o(re,"hasOwnMetadata"),t("hasOwnMetadata",re);function Pe(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=De(Q)),Re(k,B,Q)}o(Pe,"getMetadata"),t("getMetadata",Pe);function _(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=De(Q)),Ii(k,B,Q)}o(_,"getOwnMetadata"),t("getOwnMetadata",_);function ft(k,B){if(!at(k))throw new TypeError;return Fe(B)||(B=De(B)),Mt(k,B)}o(ft,"getMetadataKeys"),t("getMetadataKeys",ft);function ht(k,B){if(!at(k))throw new TypeError;return Fe(B)||(B=De(B)),an(k,B)}o(ht,"getOwnMetadataKeys"),t("getOwnMetadataKeys",ht);function je(k,B,Q){if(!at(B))throw new TypeError;if(Fe(Q)||(Q=De(Q)),!at(B))throw new TypeError;Fe(Q)||(Q=De(Q));var ce=Ir(B,Q,!1);return Fe(ce)?!1:ce.OrdinaryDeleteMetadata(k,B,Q)}o(je,"deleteMetadata"),t("deleteMetadata",je);function on(k,B){for(var Q=k.length-1;Q>=0;--Q){var ce=k[Q],Le=ce(B);if(!Fe(Le)&&!Wn(Le)){if(!wt(Le))throw new TypeError;B=Le}}return B}o(on,"DecorateConstructor");function Gn(k,B,Q,ce){for(var Le=k.length-1;Le>=0;--Le){var dn=k[Le],xn=dn(B,Q,ce);if(!Fe(xn)&&!Wn(xn)){if(!at(xn))throw new TypeError;ce=xn}}return ce}o(Gn,"DecorateProperty");function Zt(k,B,Q){var ce=Nt(k,B,Q);if(ce)return!0;var Le=Ht(B);return Wn(Le)?!1:Zt(k,Le,Q)}o(Zt,"OrdinaryHasMetadata");function Nt(k,B,Q){var ce=Ir(B,Q,!1);return Fe(ce)?!1:Y(ce.OrdinaryHasOwnMetadata(k,B,Q))}o(Nt,"OrdinaryHasOwnMetadata");function Re(k,B,Q){var ce=Nt(k,B,Q);if(ce)return Ii(k,B,Q);var Le=Ht(B);if(!Wn(Le))return Re(k,Le,Q)}o(Re,"OrdinaryGetMetadata");function Ii(k,B,Q){var ce=Ir(B,Q,!1);if(!Fe(ce))return ce.OrdinaryGetOwnMetadata(k,B,Q)}o(Ii,"OrdinaryGetOwnMetadata");function Ct(k,B,Q,ce){var Le=Ir(Q,ce,!0);Le.OrdinaryDefineOwnMetadata(k,B,Q,ce)}o(Ct,"OrdinaryDefineOwnMetadata");function Mt(k,B){var Q=an(k,B),ce=Ht(k);if(ce===null)return Q;var Le=Mt(ce,B);if(Le.length<=0)return Q;if(Q.length<=0)return Le;for(var dn=new A,xn=[],tt=0,me=Q;tt<me.length;tt++){var Te=me[tt],xe=dn.has(Te);xe||(dn.add(Te),xn.push(Te))}for(var Oe=0,rt=Le;Oe<rt.length;Oe++){var Te=rt[Oe],xe=dn.has(Te);xe||(dn.add(Te),xn.push(Te))}return xn}o(Mt,"OrdinaryMetadataKeys");function an(k,B){var Q=Ir(k,B,!1);return Q?Q.OrdinaryOwnMetadataKeys(k,B):[]}o(an,"OrdinaryOwnMetadataKeys");function ji(k){if(k===null)return 1;switch(typeof k){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return k===null?1:6;default:return 6}}o(ji,"Type");function Fe(k){return k===void 0}o(Fe,"IsUndefined");function Wn(k){return k===null}o(Wn,"IsNull");function Cr(k){return typeof k=="symbol"}o(Cr,"IsSymbol");function at(k){return typeof k=="object"?k!==null:typeof k=="function"}o(at,"IsObject");function I(k,B){switch(ji(k)){case 0:return k;case 1:return k;case 2:return k;case 3:return k;case 4:return k;case 5:return k}var Q=B===3?"string":B===5?"number":"default",ce=Bt(k,a);if(ce!==void 0){var Le=ce.call(k,Q);if(at(Le))throw new TypeError;return Le}return S(k,Q==="default"?"number":Q)}o(I,"ToPrimitive");function S(k,B){if(B==="string"){var Q=k.toString;if(Qe(Q)){var ce=Q.call(k);if(!at(ce))return ce}var Le=k.valueOf;if(Qe(Le)){var ce=Le.call(k);if(!at(ce))return ce}}else{var Le=k.valueOf;if(Qe(Le)){var ce=Le.call(k);if(!at(ce))return ce}var dn=k.toString;if(Qe(dn)){var ce=dn.call(k);if(!at(ce))return ce}}throw new TypeError}o(S,"OrdinaryToPrimitive");function Y(k){return!!k}o(Y,"ToBoolean");function V(k){return""+k}o(V,"ToString");function De(k){var B=I(k,3);return Cr(B)?B:V(B)}o(De,"ToPropertyKey");function Lt(k){return Array.isArray?Array.isArray(k):k instanceof Object?k instanceof Array:Object.prototype.toString.call(k)==="[object Array]"}o(Lt,"IsArray");function Qe(k){return typeof k=="function"}o(Qe,"IsCallable");function wt(k){return typeof k=="function"}o(wt,"IsConstructor");function yn(k){switch(ji(k)){case 3:return!0;case 4:return!0;default:return!1}}o(yn,"IsPropertyKey");function sn(k,B){return k===B||k!==k&&B!==B}o(sn,"SameValueZero");function Bt(k,B){var Q=k[B];if(Q!=null){if(!Qe(Q))throw new TypeError;return Q}}o(Bt,"GetMethod");function ti(k){var B=Bt(k,s);if(!Qe(B))throw new TypeError;var Q=B.call(k);if(!at(Q))throw new TypeError;return Q}o(ti,"GetIterator");function nr(k){return k.value}o(nr,"IteratorValue");function pn(k){var B=k.next();return B.done?!1:B}o(pn,"IteratorStep");function gi(k){var B=k.return;B&&B.call(k)}o(gi,"IteratorClose");function Ht(k){var B=Object.getPrototypeOf(k);if(typeof k!="function"||k===m||B!==m)return B;var Q=k.prototype,ce=Q&&Object.getPrototypeOf(Q);if(ce==null||ce===Object.prototype)return B;var Le=ce.constructor;return typeof Le!="function"||Le===k?B:Le}o(Ht,"OrdinaryGetPrototypeOf");function Ko(){var k;!Fe(O)&&typeof n.Reflect<"u"&&!(O in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(k=_s(n.Reflect));var B,Q,ce,Le=new E,dn={registerProvider:xn,getProvider:me,setProvider:xe};return dn;function xn(Oe){if(!Object.isExtensible(dn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case k===Oe:break;case Fe(B):B=Oe;break;case B===Oe:break;case Fe(Q):Q=Oe;break;case Q===Oe:break;default:ce===void 0&&(ce=new A),ce.add(Oe);break}}function tt(Oe,rt){if(!Fe(B)){if(B.isProviderFor(Oe,rt))return B;if(!Fe(Q)){if(Q.isProviderFor(Oe,rt))return B;if(!Fe(ce))for(var Gt=ti(ce);;){var cn=pn(Gt);if(!cn)return;var ir=nr(cn);if(ir.isProviderFor(Oe,rt))return gi(Gt),ir}}}if(!Fe(k)&&k.isProviderFor(Oe,rt))return k}function me(Oe,rt){var Gt=Le.get(Oe),cn;return Fe(Gt)||(cn=Gt.get(rt)),Fe(cn)&&(cn=tt(Oe,rt),Fe(cn)||(Fe(Gt)&&(Gt=new T,Le.set(Oe,Gt)),Gt.set(rt,cn))),cn}function Te(Oe){if(Fe(Oe))throw new TypeError;return B===Oe||Q===Oe||!Fe(ce)&&ce.has(Oe)}function xe(Oe,rt,Gt){if(!Te(Gt))throw new Error("Metadata provider not registered.");var cn=me(Oe,rt);if(cn!==Gt){if(!Fe(cn))return!1;var ir=Le.get(Oe);Fe(ir)&&(ir=new T,Le.set(Oe,ir)),ir.set(rt,Gt)}return!0}}o(Ko,"CreateMetadataRegistry");function $i(){var k;return!Fe(O)&&at(n.Reflect)&&Object.isExtensible(n.Reflect)&&(k=n.Reflect[O]),Fe(k)&&(k=Ko()),!Fe(O)&&at(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,O,{enumerable:!1,configurable:!1,writable:!1,value:k}),k}o($i,"GetOrCreateMetadataRegistry");function Of(k){var B=new E,Q={isProviderFor:o(function(Te,xe){var Oe=B.get(Te);return Fe(Oe)?!1:Oe.has(xe)},"isProviderFor"),OrdinaryDefineOwnMetadata:xn,OrdinaryHasOwnMetadata:Le,OrdinaryGetOwnMetadata:dn,OrdinaryOwnMetadataKeys:tt,OrdinaryDeleteMetadata:me};return F.registerProvider(Q),Q;function ce(Te,xe,Oe){var rt=B.get(Te),Gt=!1;if(Fe(rt)){if(!Oe)return;rt=new T,B.set(Te,rt),Gt=!0}var cn=rt.get(xe);if(Fe(cn)){if(!Oe)return;if(cn=new T,rt.set(xe,cn),!k.setProvider(Te,xe,Q))throw rt.delete(xe),Gt&&B.delete(Te),new Error("Wrong provider for target.")}return cn}o(ce,"GetOrCreateMetadataMap");function Le(Te,xe,Oe){var rt=ce(xe,Oe,!1);return Fe(rt)?!1:Y(rt.has(Te))}o(Le,"OrdinaryHasOwnMetadata");function dn(Te,xe,Oe){var rt=ce(xe,Oe,!1);if(!Fe(rt))return rt.get(Te)}o(dn,"OrdinaryGetOwnMetadata");function xn(Te,xe,Oe,rt){var Gt=ce(Oe,rt,!0);Gt.set(Te,xe)}o(xn,"OrdinaryDefineOwnMetadata");function tt(Te,xe){var Oe=[],rt=ce(Te,xe,!1);if(Fe(rt))return Oe;for(var Gt=rt.keys(),cn=ti(Gt),ir=0;;){var hd=pn(cn);if(!hd)return Oe.length=ir,Oe;var ov=nr(hd);try{Oe[ir]=ov}catch(Ff){try{gi(cn)}finally{throw Ff}}ir++}}o(tt,"OrdinaryOwnMetadataKeys");function me(Te,xe,Oe){var rt=ce(xe,Oe,!1);if(Fe(rt)||!rt.delete(Te))return!1;if(rt.size===0){var Gt=B.get(xe);Fe(Gt)||(Gt.delete(Oe),Gt.size===0&&B.delete(Gt))}return!0}o(me,"OrdinaryDeleteMetadata")}o(Of,"CreateMetadataProvider");function _s(k){var B=k.defineMetadata,Q=k.hasOwnMetadata,ce=k.getOwnMetadata,Le=k.getOwnMetadataKeys,dn=k.deleteMetadata,xn=new E,tt={isProviderFor:o(function(me,Te){var xe=xn.get(me);return!Fe(xe)&&xe.has(Te)?!0:Le(me,Te).length?(Fe(xe)&&(xe=new A,xn.set(me,xe)),xe.add(Te),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:ce,OrdinaryOwnMetadataKeys:Le,OrdinaryDeleteMetadata:dn};return tt}o(_s,"CreateFallbackProvider");function Ir(k,B,Q){var ce=F.getProvider(k,B);if(!Fe(ce))return ce;if(Q){if(F.setProvider(k,B,U))return U;throw new Error("Illegal state.")}}o(Ir,"GetMetadataProvider");function Nf(){var k={},B=[],Q=function(){function tt(me,Te,xe){this._index=0,this._keys=me,this._values=Te,this._selector=xe}return o(tt,"MapIterator"),tt.prototype["@@iterator"]=function(){return this},tt.prototype[s]=function(){return this},tt.prototype.next=function(){var me=this._index;if(me>=0&&me<this._keys.length){var Te=this._selector(this._keys[me],this._values[me]);return me+1>=this._keys.length?(this._index=-1,this._keys=B,this._values=B):this._index++,{value:Te,done:!1}}return{value:void 0,done:!0}},tt.prototype.throw=function(me){throw this._index>=0&&(this._index=-1,this._keys=B,this._values=B),me},tt.prototype.return=function(me){return this._index>=0&&(this._index=-1,this._keys=B,this._values=B),{value:me,done:!0}},tt}(),ce=function(){function tt(){this._keys=[],this._values=[],this._cacheKey=k,this._cacheIndex=-2}return o(tt,"Map"),Object.defineProperty(tt.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),tt.prototype.has=function(me){return this._find(me,!1)>=0},tt.prototype.get=function(me){var Te=this._find(me,!1);return Te>=0?this._values[Te]:void 0},tt.prototype.set=function(me,Te){var xe=this._find(me,!0);return this._values[xe]=Te,this},tt.prototype.delete=function(me){var Te=this._find(me,!1);if(Te>=0){for(var xe=this._keys.length,Oe=Te+1;Oe<xe;Oe++)this._keys[Oe-1]=this._keys[Oe],this._values[Oe-1]=this._values[Oe];return this._keys.length--,this._values.length--,sn(me,this._cacheKey)&&(this._cacheKey=k,this._cacheIndex=-2),!0}return!1},tt.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=k,this._cacheIndex=-2},tt.prototype.keys=function(){return new Q(this._keys,this._values,Le)},tt.prototype.values=function(){return new Q(this._keys,this._values,dn)},tt.prototype.entries=function(){return new Q(this._keys,this._values,xn)},tt.prototype["@@iterator"]=function(){return this.entries()},tt.prototype[s]=function(){return this.entries()},tt.prototype._find=function(me,Te){if(!sn(this._cacheKey,me)){this._cacheIndex=-1;for(var xe=0;xe<this._keys.length;xe++)if(sn(this._keys[xe],me)){this._cacheIndex=xe;break}}return this._cacheIndex<0&&Te&&(this._cacheIndex=this._keys.length,this._keys.push(me),this._values.push(void 0)),this._cacheIndex},tt}();return ce;function Le(tt,me){return tt}function dn(tt,me){return me}function xn(tt,me){return[tt,me]}}o(Nf,"CreateMapPolyfill");function Lf(){var k=function(){function B(){this._map=new T}return o(B,"Set"),Object.defineProperty(B.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),B.prototype.has=function(Q){return this._map.has(Q)},B.prototype.add=function(Q){return this._map.set(Q,Q),this},B.prototype.delete=function(Q){return this._map.delete(Q)},B.prototype.clear=function(){this._map.clear()},B.prototype.keys=function(){return this._map.keys()},B.prototype.values=function(){return this._map.keys()},B.prototype.entries=function(){return this._map.entries()},B.prototype["@@iterator"]=function(){return this.keys()},B.prototype[s]=function(){return this.keys()},B}();return k}o(Lf,"CreateSetPolyfill");function Rf(){var k=16,B=g.create(),Q=ce();return function(){function me(){this._key=ce()}return o(me,"WeakMap"),me.prototype.has=function(Te){var xe=Le(Te,!1);return xe!==void 0?g.has(xe,this._key):!1},me.prototype.get=function(Te){var xe=Le(Te,!1);return xe!==void 0?g.get(xe,this._key):void 0},me.prototype.set=function(Te,xe){var Oe=Le(Te,!0);return Oe[this._key]=xe,this},me.prototype.delete=function(Te){var xe=Le(Te,!1);return xe!==void 0?delete xe[this._key]:!1},me.prototype.clear=function(){this._key=ce()},me}();function ce(){var me;do me="@@WeakMap@@"+tt();while(g.has(B,me));return B[me]=!0,me}function Le(me,Te){if(!i.call(me,Q)){if(!Te)return;Object.defineProperty(me,Q,{value:g.create()})}return me[Q]}function dn(me,Te){for(var xe=0;xe<Te;++xe)me[xe]=Math.random()*255|0;return me}function xn(me){if(typeof Uint8Array=="function"){var Te=new Uint8Array(me);return typeof crypto<"u"?crypto.getRandomValues(Te):typeof msCrypto<"u"?msCrypto.getRandomValues(Te):dn(Te,me),Te}return dn(new Array(me),me)}function tt(){var me=xn(k);me[6]=me[6]&79|64,me[8]=me[8]&191|128;for(var Te="",xe=0;xe<k;++xe){var Oe=me[xe];(xe===4||xe===6||xe===8)&&(Te+="-"),Oe<16&&(Te+="0"),Te+=Oe.toString(16).toLowerCase()}return Te}}o(Rf,"CreateWeakMapPolyfill");function Ds(k){return k.__=void 0,delete k.__,k}o(Ds,"MakeDictionary")})})(BF||(BF={}))});var qF=Ye((NJ,QF)=>{var wW=0,XF="changeUtils: ";function kW(){return"id-"+new Date().valueOf()+"-"+wW++}o(kW,"uid");function UW(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(UW,"appendComponentToReference");function jW(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return UW(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(jW,"getFlexReference");function $W(e){let t=e["sap.app"];if(!t||!t.applicationVersion||!t.applicationVersion.version)throw Error("app version could not be determined");return t.applicationVersion.version}o($W,"getAppVersion");function BW(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(BW,"getProjectId");function KF(e){return JSON.stringify({fileName:e.id||kW().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:XF+e.creatingTool,service:"",user:"",sapui5Version:e.sapui5Version,sourceChangeFileName:"",compositeCommand:""},oDataInformation:{},dependentSelector:{},validAppVersions:{from:e.appVersion,to:e.appVersion,creation:e.appVersion},jsOnly:!1,variantReference:"",appDescriptorChange:!1})}o(KF,"createString");QF.exports={parse:o(function(e){let t=JSON.parse(e);if(!t.fileName||!t.changeType||!t.selector||!t.reference||!t.creation||!t.content||!t.layer||!t.support)throw Error("Parsed object does not contain all required parameters");return{id:t.fileName,reference:t.reference,appVersion:t.validAppVersions?t.validAppVersions.creation:"",creation:t.creation,projectId:t.projectId,type:t.changeType,controlId:t.selector.id,controlType:t.selector.type,isCustomer:t.layer==="CUSTOMER_BASE",creatingTool:t.support.generator.replace(XF,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:o(function(e,t){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool)throw Error("not all property parameters of the change were provided");if(!t)throw Error("no manifest was provided");return e.reference=jW(t),e.appVersion=$W(t),e.projectId=BW(t,e.reference),KF(e)},"createChangeString"),toString:o(function(e){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool||!(e.reference&&e.appVersion))throw Error("not all parameters of the change were provided");return KF(e)},"toString")}});var zF=Ye((RJ,YF)=>{YF.exports={change:qF()}});var B0=Ye(Ur=>{"use strict";var S8=/[|\\{}()[\]^$+*?.]/g,P8=Object.prototype.hasOwnProperty,KE=o(function(e,t){return P8.apply(e,[t])},"hasOwn");Ur.escapeRegExpChars=function(e){return e?String(e).replace(S8,"\\$&"):""};var x8={"&":"&","<":"<",">":">",'"':""","'":"'"},C8=/[&<>'"]/g;function I8(e){return x8[e]||e}o(I8,"encode_char");var O8=`var _ENCODE_HTML_RULES = {
|
|
25
|
+
Actual: `+I.attribValue);else{var De=I.tag,Rt=I.tags[I.tags.length-1]||I;De.ns===Rt.ns&&(De.ns=Object.create(Rt.ns)),De.ns[V]=I.attribValue}I.attribList.push([I.attribName,I.attribValue])}else I.tag.attributes[I.attribName]=I.attribValue,je(I,"onattribute",{name:I.attribName,value:I.attribValue});I.attribName=I.attribValue=""}o(Mt,"attrib");function sn(I,S){if(I.opt.xmlns){var Y=I.tag,V=It(I.tagName);Y.prefix=V.prefix,Y.local=V.local,Y.uri=Y.ns[V.prefix]||"",Y.prefix&&!Y.uri&&(Re(I,"Unbound namespace prefix: "+JSON.stringify(I.tagName)),Y.uri=V.prefix);var De=I.tags[I.tags.length-1]||I;Y.ns&&De.ns!==Y.ns&&Object.keys(Y.ns).forEach(function(Gt){je(I,"onopennamespace",{prefix:Gt,uri:Y.ns[Gt]})});for(var Rt=0,Qe=I.attribList.length;Rt<Qe;Rt++){var kt=I.attribList[Rt],vn=kt[0],cn=kt[1],Ht=It(vn,!0),ni=Ht.prefix,ir=Ht.local,dn=ni===""?"":Y.ns[ni]||"",mi={name:vn,value:cn,prefix:ni,local:ir,uri:dn};ni&&ni!=="xmlns"&&!dn&&(Re(I,"Unbound namespace prefix: "+JSON.stringify(ni)),mi.uri=ni),I.tag.attributes[vn]=mi,je(I,"onattribute",mi)}I.attribList.length=0}I.tag.isSelfClosing=!!S,I.sawRoot=!0,I.tags.push(I.tag),je(I,"onopentag",I.tag),S||(!I.noscript&&I.tagName.toLowerCase()==="script"?I.state=_.SCRIPT:I.state=_.TEXT,I.tag=null,I.tagName=""),I.attribName=I.attribValue="",I.attribList.length=0}o(sn,"openTag");function $i(I){if(!I.tagName){Re(I,"Weird empty close tag."),I.textNode+="</>",I.state=_.TEXT;return}if(I.script){if(I.tagName!=="script"){I.script+="</"+I.tagName+">",I.tagName="",I.state=_.SCRIPT;return}je(I,"onscript",I.script),I.script=""}var S=I.tags.length,Y=I.tagName;I.strict||(Y=Y[I.looseCase]());for(var V=Y;S--;){var De=I.tags[S];if(De.name!==V)Re(I,"Unexpected close tag");else break}if(S<0){Re(I,"Unmatched closing tag: "+I.tagName),I.textNode+="</"+I.tagName+">",I.state=_.TEXT;return}I.tagName=Y;for(var Rt=I.tags.length;Rt-- >S;){var Qe=I.tag=I.tags.pop();I.tagName=I.tag.name,je(I,"onclosetag",I.tagName);var kt={};for(var vn in Qe.ns)kt[vn]=Qe.ns[vn];var cn=I.tags[I.tags.length-1]||I;I.opt.xmlns&&Qe.ns!==cn.ns&&Object.keys(Qe.ns).forEach(function(Ht){var ni=Qe.ns[Ht];je(I,"onclosenamespace",{prefix:Ht,uri:ni})})}S===0&&(I.closedRoot=!0),I.tagName=I.attribValue=I.attribName="",I.attribList.length=0,I.state=_.TEXT}o($i,"closeTag");function Fe(I){var S=I.entity,Y=S.toLowerCase(),V,De="";return I.ENTITIES[S]?I.ENTITIES[S]:I.ENTITIES[Y]?I.ENTITIES[Y]:(S=Y,S.charAt(0)==="#"&&(S.charAt(1)==="x"?(S=S.slice(2),V=parseInt(S,16),De=V.toString(16)):(S=S.slice(1),V=parseInt(S,10),De=V.toString(10))),S=S.replace(/^0+/,""),isNaN(V)||De.toLowerCase()!==S?(Re(I,"Invalid character entity"),"&"+I.entity+";"):String.fromCodePoint(V))}o(Fe,"parseEntity");function Kn(I,S){S==="<"?(I.state=_.OPEN_WAKA,I.startTagPosition=I.position):j(S)||(Re(I,"Non-whitespace before first tag."),I.textNode=S,I.state=_.TEXT)}o(Kn,"beginWhiteSpace");function Ir(I,S){var Y="";return S<I.length&&(Y=I.charAt(S)),Y}o(Ir,"charAt");function st(I){var S=this;if(this.error)throw this.error;if(S.closed)return en(S,"Cannot write after close. Assign an onready handler.");if(I===null)return Lt(S);typeof I=="object"&&(I=I.toString());for(var Y=0,V="";V=Ir(I,Y++),S.c=V,!!V;)switch(S.trackPosition&&(S.position++,V===`
|
|
26
|
+
`?(S.line++,S.column=0):S.column++),S.state){case _.BEGIN:if(S.state=_.BEGIN_WHITESPACE,V==="\uFEFF")continue;Kn(S,V);continue;case _.BEGIN_WHITESPACE:Kn(S,V);continue;case _.TEXT:if(S.sawRoot&&!S.closedRoot){for(var De=Y-1;V&&V!=="<"&&V!=="&";)V=Ir(I,Y++),V&&S.trackPosition&&(S.position++,V===`
|
|
27
|
+
`?(S.line++,S.column=0):S.column++);S.textNode+=I.substring(De,Y-1)}V==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)?(S.state=_.OPEN_WAKA,S.startTagPosition=S.position):(!j(V)&&(!S.sawRoot||S.closedRoot)&&Re(S,"Text data outside of root node."),V==="&"?S.state=_.TEXT_ENTITY:S.textNode+=V);continue;case _.SCRIPT:V==="<"?S.state=_.SCRIPT_ENDING:S.script+=V;continue;case _.SCRIPT_ENDING:V==="/"?S.state=_.CLOSE_TAG:(S.script+="<"+V,S.state=_.SCRIPT);continue;case _.OPEN_WAKA:if(V==="!")S.state=_.SGML_DECL,S.sgmlDecl="";else if(!j(V))if(re(O,V))S.state=_.OPEN_TAG,S.tagName=V;else if(V==="/")S.state=_.CLOSE_TAG,S.tagName="";else if(V==="?")S.state=_.PROC_INST,S.procInstName=S.procInstBody="";else{if(Re(S,"Unencoded <"),S.startTagPosition+1<S.position){var Rt=S.position-S.startTagPosition;V=new Array(Rt).join(" ")+V}S.textNode+="<"+V,S.state=_.TEXT}continue;case _.SGML_DECL:if(S.sgmlDecl+V==="--"){S.state=_.COMMENT,S.comment="",S.sgmlDecl="";continue}S.doctype&&S.doctype!==!0&&S.sgmlDecl?(S.state=_.DOCTYPE_DTD,S.doctype+="<!"+S.sgmlDecl+V,S.sgmlDecl=""):(S.sgmlDecl+V).toUpperCase()===g?(je(S,"onopencdata"),S.state=_.CDATA,S.sgmlDecl="",S.cdata=""):(S.sgmlDecl+V).toUpperCase()===m?(S.state=_.DOCTYPE,(S.doctype||S.sawRoot)&&Re(S,"Inappropriately located doctype declaration"),S.doctype="",S.sgmlDecl=""):V===">"?(je(S,"onsgmldeclaration",S.sgmlDecl),S.sgmlDecl="",S.state=_.TEXT):(ae(V)&&(S.state=_.SGML_DECL_QUOTED),S.sgmlDecl+=V);continue;case _.SGML_DECL_QUOTED:V===S.q&&(S.state=_.SGML_DECL,S.q=""),S.sgmlDecl+=V;continue;case _.DOCTYPE:V===">"?(S.state=_.TEXT,je(S,"ondoctype",S.doctype),S.doctype=!0):(S.doctype+=V,V==="["?S.state=_.DOCTYPE_DTD:ae(V)&&(S.state=_.DOCTYPE_QUOTED,S.q=V));continue;case _.DOCTYPE_QUOTED:S.doctype+=V,V===S.q&&(S.q="",S.state=_.DOCTYPE);continue;case _.DOCTYPE_DTD:V==="]"?(S.doctype+=V,S.state=_.DOCTYPE):V==="<"?(S.state=_.OPEN_WAKA,S.startTagPosition=S.position):ae(V)?(S.doctype+=V,S.state=_.DOCTYPE_DTD_QUOTED,S.q=V):S.doctype+=V;continue;case _.DOCTYPE_DTD_QUOTED:S.doctype+=V,V===S.q&&(S.state=_.DOCTYPE_DTD,S.q="");continue;case _.COMMENT:V==="-"?S.state=_.COMMENT_ENDING:S.comment+=V;continue;case _.COMMENT_ENDING:V==="-"?(S.state=_.COMMENT_ENDED,S.comment=Wn(S.opt,S.comment),S.comment&&je(S,"oncomment",S.comment),S.comment=""):(S.comment+="-"+V,S.state=_.COMMENT);continue;case _.COMMENT_ENDED:V!==">"?(Re(S,"Malformed comment"),S.comment+="--"+V,S.state=_.COMMENT):S.doctype&&S.doctype!==!0?S.state=_.DOCTYPE_DTD:S.state=_.TEXT;continue;case _.CDATA:V==="]"?S.state=_.CDATA_ENDING:S.cdata+=V;continue;case _.CDATA_ENDING:V==="]"?S.state=_.CDATA_ENDING_2:(S.cdata+="]"+V,S.state=_.CDATA);continue;case _.CDATA_ENDING_2:V===">"?(S.cdata&&je(S,"oncdata",S.cdata),je(S,"onclosecdata"),S.cdata="",S.state=_.TEXT):V==="]"?S.cdata+="]":(S.cdata+="]]"+V,S.state=_.CDATA);continue;case _.PROC_INST:V==="?"?S.state=_.PROC_INST_ENDING:j(V)?S.state=_.PROC_INST_BODY:S.procInstName+=V;continue;case _.PROC_INST_BODY:if(!S.procInstBody&&j(V))continue;V==="?"?S.state=_.PROC_INST_ENDING:S.procInstBody+=V;continue;case _.PROC_INST_ENDING:V===">"?(je(S,"onprocessinginstruction",{name:S.procInstName,body:S.procInstBody}),S.procInstName=S.procInstBody="",S.state=_.TEXT):(S.procInstBody+="?"+V,S.state=_.PROC_INST_BODY);continue;case _.OPEN_TAG:re(F,V)?S.tagName+=V:(Oi(S),V===">"?sn(S):V==="/"?S.state=_.OPEN_TAG_SLASH:(j(V)||Re(S,"Invalid character in tag name"),S.state=_.ATTRIB));continue;case _.OPEN_TAG_SLASH:V===">"?(sn(S,!0),$i(S)):(Re(S,"Forward-slash in opening tag not followed by >"),S.state=_.ATTRIB);continue;case _.ATTRIB:if(j(V))continue;V===">"?sn(S):V==="/"?S.state=_.OPEN_TAG_SLASH:re(O,V)?(S.attribName=V,S.attribValue="",S.state=_.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case _.ATTRIB_NAME:V==="="?S.state=_.ATTRIB_VALUE:V===">"?(Re(S,"Attribute without value"),S.attribValue=S.attribName,Mt(S),sn(S)):j(V)?S.state=_.ATTRIB_NAME_SAW_WHITE:re(F,V)?S.attribName+=V:Re(S,"Invalid attribute name");continue;case _.ATTRIB_NAME_SAW_WHITE:if(V==="=")S.state=_.ATTRIB_VALUE;else{if(j(V))continue;Re(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",je(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",V===">"?sn(S):re(O,V)?(S.attribName=V,S.state=_.ATTRIB_NAME):(Re(S,"Invalid attribute name"),S.state=_.ATTRIB)}continue;case _.ATTRIB_VALUE:if(j(V))continue;ae(V)?(S.q=V,S.state=_.ATTRIB_VALUE_QUOTED):(S.opt.unquotedAttributeValues||en(S,"Unquoted attribute value"),S.state=_.ATTRIB_VALUE_UNQUOTED,S.attribValue=V);continue;case _.ATTRIB_VALUE_QUOTED:if(V!==S.q){V==="&"?S.state=_.ATTRIB_VALUE_ENTITY_Q:S.attribValue+=V;continue}Mt(S),S.q="",S.state=_.ATTRIB_VALUE_CLOSED;continue;case _.ATTRIB_VALUE_CLOSED:j(V)?S.state=_.ATTRIB:V===">"?sn(S):V==="/"?S.state=_.OPEN_TAG_SLASH:re(O,V)?(Re(S,"No whitespace between attributes"),S.attribName=V,S.attribValue="",S.state=_.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case _.ATTRIB_VALUE_UNQUOTED:if(!Z(V)){V==="&"?S.state=_.ATTRIB_VALUE_ENTITY_U:S.attribValue+=V;continue}Mt(S),V===">"?sn(S):S.state=_.ATTRIB;continue;case _.CLOSE_TAG:if(S.tagName)V===">"?$i(S):re(F,V)?S.tagName+=V:S.script?(S.script+="</"+S.tagName,S.tagName="",S.state=_.SCRIPT):(j(V)||Re(S,"Invalid tagname in closing tag"),S.state=_.CLOSE_TAG_SAW_WHITE);else{if(j(V))continue;Pe(O,V)?S.script?(S.script+="</"+V,S.state=_.SCRIPT):Re(S,"Invalid tagname in closing tag."):S.tagName=V}continue;case _.CLOSE_TAG_SAW_WHITE:if(j(V))continue;V===">"?$i(S):Re(S,"Invalid characters in closing tag");continue;case _.TEXT_ENTITY:case _.ATTRIB_VALUE_ENTITY_Q:case _.ATTRIB_VALUE_ENTITY_U:var Qe,kt;switch(S.state){case _.TEXT_ENTITY:Qe=_.TEXT,kt="textNode";break;case _.ATTRIB_VALUE_ENTITY_Q:Qe=_.ATTRIB_VALUE_QUOTED,kt="attribValue";break;case _.ATTRIB_VALUE_ENTITY_U:Qe=_.ATTRIB_VALUE_UNQUOTED,kt="attribValue";break}if(V===";"){var vn=Fe(S);S.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(vn)?(S.entity="",S.state=Qe,S.write(vn)):(S[kt]+=vn,S.entity="",S.state=Qe)}else re(S.entity.length?K:U,V)?S.entity+=V:(Re(S,"Invalid character in entity name"),S[kt]+="&"+S.entity+V,S.entity="",S.state=Qe);continue;default:throw new Error(S,"Unknown state: "+S.state)}return S.position>=S.bufferCheckPosition&&i(S),S}o(st,"write");String.fromCodePoint||function(){var I=String.fromCharCode,S=Math.floor,Y=o(function(){var V=16384,De=[],Rt,Qe,kt=-1,vn=arguments.length;if(!vn)return"";for(var cn="";++kt<vn;){var Ht=Number(arguments[kt]);if(!isFinite(Ht)||Ht<0||Ht>1114111||S(Ht)!==Ht)throw RangeError("Invalid code point: "+Ht);Ht<=65535?De.push(Ht):(Ht-=65536,Rt=(Ht>>10)+55296,Qe=Ht%1024+56320,De.push(Rt,Qe)),(kt+1===vn||De.length>V)&&(cn+=I.apply(null,De),De.length=0)}return cn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Y,configurable:!0,writable:!0}):String.fromCodePoint=Y}()})(typeof Pg>"u"?Pg.sax={}:Pg)});var Cg=Ye((zz,XR)=>{XR.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var xg=Ye((Zz,QR)=>{var PG=Cg().isArray;QR.exports={copyOptions:o(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},"copyOptions"),ensureFlagExists:o(function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},"ensureFlagExists"),ensureSpacesExists:o(function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},"ensureSpacesExists"),ensureAlwaysArrayExists:o(function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!PG(e.alwaysArray))&&(e.alwaysArray=!1)},"ensureAlwaysArrayExists"),ensureKeyExists:o(function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},"ensureKeyExists"),checkFnExists:o(function(e,t){return e+"Fn"in t},"checkFnExists")}});var eE=Ye((tJ,nF)=>{var CG=KR(),xG={on:o(function(){},"on"),parse:o(function(){},"parse")},rt=xg(),al=Cg().isArray,H,ZT=!0,$e;function IG(e){return H=rt.copyOptions(e),rt.ensureFlagExists("ignoreDeclaration",H),rt.ensureFlagExists("ignoreInstruction",H),rt.ensureFlagExists("ignoreAttributes",H),rt.ensureFlagExists("ignoreText",H),rt.ensureFlagExists("ignoreComment",H),rt.ensureFlagExists("ignoreCdata",H),rt.ensureFlagExists("ignoreDoctype",H),rt.ensureFlagExists("compact",H),rt.ensureFlagExists("alwaysChildren",H),rt.ensureFlagExists("addParent",H),rt.ensureFlagExists("trim",H),rt.ensureFlagExists("nativeType",H),rt.ensureFlagExists("nativeTypeAttributes",H),rt.ensureFlagExists("sanitize",H),rt.ensureFlagExists("instructionHasAttributes",H),rt.ensureFlagExists("captureSpacesBetweenElements",H),rt.ensureAlwaysArrayExists(H),rt.ensureKeyExists("declaration",H),rt.ensureKeyExists("instruction",H),rt.ensureKeyExists("attributes",H),rt.ensureKeyExists("text",H),rt.ensureKeyExists("comment",H),rt.ensureKeyExists("cdata",H),rt.ensureKeyExists("doctype",H),rt.ensureKeyExists("type",H),rt.ensureKeyExists("name",H),rt.ensureKeyExists("elements",H),rt.ensureKeyExists("parent",H),rt.checkFnExists("doctype",H),rt.checkFnExists("instruction",H),rt.checkFnExists("cdata",H),rt.checkFnExists("comment",H),rt.checkFnExists("text",H),rt.checkFnExists("instructionName",H),rt.checkFnExists("elementName",H),rt.checkFnExists("attributeName",H),rt.checkFnExists("attributeValue",H),rt.checkFnExists("attributes",H),H}o(IG,"validateOptions");function eF(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(eF,"nativeType");function tu(e,t){var n;if(H.compact){if(!$e[H[e+"Key"]]&&(al(H.alwaysArray)?H.alwaysArray.indexOf(H[e+"Key"])!==-1:H.alwaysArray)&&($e[H[e+"Key"]]=[]),$e[H[e+"Key"]]&&!al($e[H[e+"Key"]])&&($e[H[e+"Key"]]=[$e[H[e+"Key"]]]),e+"Fn"in H&&typeof t=="string"&&(t=H[e+"Fn"](t,$e)),e==="instruction"&&("instructionFn"in H||"instructionNameFn"in H)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in H)t[n]=H.instructionFn(t[n],n,$e);else{var i=t[n];delete t[n],t[H.instructionNameFn(n,i,$e)]=i}}al($e[H[e+"Key"]])?$e[H[e+"Key"]].push(t):$e[H[e+"Key"]]=t}else{$e[H.elementsKey]||($e[H.elementsKey]=[]);var r={};if(r[H.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[H.nameKey]="instructionNameFn"in H?H.instructionNameFn(n,t,$e):n,H.instructionHasAttributes?(r[H.attributesKey]=t[n][H.attributesKey],"instructionFn"in H&&(r[H.attributesKey]=H.instructionFn(r[H.attributesKey],n,$e))):("instructionFn"in H&&(t[n]=H.instructionFn(t[n],n,$e)),r[H.instructionKey]=t[n])}else e+"Fn"in H&&(t=H[e+"Fn"](t,$e)),r[H[e+"Key"]]=t;H.addParent&&(r[H.parentKey]=$e),$e[H.elementsKey].push(r)}}o(tu,"addField");function tF(e){if("attributesFn"in H&&e&&(e=H.attributesFn(e,$e)),(H.trim||"attributeValueFn"in H||"attributeNameFn"in H||H.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(H.trim&&(e[t]=e[t].trim()),H.nativeTypeAttributes&&(e[t]=eF(e[t])),"attributeValueFn"in H&&(e[t]=H.attributeValueFn(e[t],t,$e)),"attributeNameFn"in H)){var n=e[t];delete e[t],e[H.attributeNameFn(t,e[t],$e)]=n}}return e}o(tF,"manipulateAttributes");function OG(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||H.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,i;(i=n.exec(e.body))!==null;)t[i[1]]=i[2]||i[3]||i[4];t=tF(t)}if(e.name.toLowerCase()==="xml"){if(H.ignoreDeclaration)return;$e[H.declarationKey]={},Object.keys(t).length&&($e[H.declarationKey][H.attributesKey]=t),H.addParent&&($e[H.declarationKey][H.parentKey]=$e)}else{if(H.ignoreInstruction)return;H.trim&&(e.body=e.body.trim());var r={};H.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][H.attributesKey]=t):r[e.name]=e.body,tu("instruction",r)}}o(OG,"onInstruction");function qR(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=tF(t),"elementNameFn"in H&&(e=H.elementNameFn(e,$e)),H.compact){if(n={},!H.ignoreAttributes&&t&&Object.keys(t).length){n[H.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[H.attributesKey][i]=t[i])}!(e in $e)&&(al(H.alwaysArray)?H.alwaysArray.indexOf(e)!==-1:H.alwaysArray)&&($e[e]=[]),$e[e]&&!al($e[e])&&($e[e]=[$e[e]]),al($e[e])?$e[e].push(n):$e[e]=n}else $e[H.elementsKey]||($e[H.elementsKey]=[]),n={},n[H.typeKey]="element",n[H.nameKey]=e,!H.ignoreAttributes&&t&&Object.keys(t).length&&(n[H.attributesKey]=t),H.alwaysChildren&&(n[H.elementsKey]=[]),$e[H.elementsKey].push(n);n[H.parentKey]=$e,$e=n}o(qR,"onStartElement");function YR(e){H.ignoreText||!e.trim()&&!H.captureSpacesBetweenElements||(H.trim&&(e=e.trim()),H.nativeType&&(e=eF(e)),H.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),tu("text",e))}o(YR,"onText");function zR(e){H.ignoreComment||(H.trim&&(e=e.trim()),tu("comment",e))}o(zR,"onComment");function JR(e){var t=$e[H.parentKey];H.addParent||delete $e[H.parentKey],$e=t}o(JR,"onEndElement");function NG(e){H.ignoreCdata||(H.trim&&(e=e.trim()),tu("cdata",e))}o(NG,"onCdata");function LG(e){H.ignoreDoctype||(e=e.replace(/^ /,""),H.trim&&(e=e.trim()),tu("doctype",e))}o(LG,"onDoctype");function ZR(e){e.note=e}o(ZR,"onError");nF.exports=function(e,t){var n=ZT?CG.parser(!0,{}):n=new xG.Parser("UTF-8"),i={};if($e=i,H=IG(t),ZT?(n.opt={strictEntities:!0},n.onopentag=qR,n.ontext=YR,n.oncomment=zR,n.onclosetag=JR,n.onerror=ZR,n.oncdata=NG,n.ondoctype=LG,n.onprocessinginstruction=OG):(n.on("startElement",qR),n.on("text",YR),n.on("comment",zR),n.on("endElement",JR),n.on("error",ZR)),ZT)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[H.elementsKey]){var r=i[H.elementsKey];delete i[H.elementsKey],i[H.elementsKey]=r,delete i.text}return i}});var oF=Ye((iJ,rF)=>{var iF=xg(),RG=eE();function FG(e){var t=iF.copyOptions(e);return iF.ensureSpacesExists(t),t}o(FG,"validateOptions");rF.exports=function(e,t){var n,i,r,a;return n=FG(t),i=RG(e,n),a="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?r=JSON.stringify(i,function(s,l){return s===a?"_":l},n.spaces):r=JSON.stringify(i,null,n.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var nE=Ye((oJ,gF)=>{var lt=xg(),_G=Cg().isArray,Ti,Ei;function DG(e){var t=lt.copyOptions(e);return lt.ensureFlagExists("ignoreDeclaration",t),lt.ensureFlagExists("ignoreInstruction",t),lt.ensureFlagExists("ignoreAttributes",t),lt.ensureFlagExists("ignoreText",t),lt.ensureFlagExists("ignoreComment",t),lt.ensureFlagExists("ignoreCdata",t),lt.ensureFlagExists("ignoreDoctype",t),lt.ensureFlagExists("compact",t),lt.ensureFlagExists("indentText",t),lt.ensureFlagExists("indentCdata",t),lt.ensureFlagExists("indentAttributes",t),lt.ensureFlagExists("indentInstruction",t),lt.ensureFlagExists("fullTagEmptyElement",t),lt.ensureFlagExists("noQuotesForNativeAttributes",t),lt.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),lt.ensureKeyExists("declaration",t),lt.ensureKeyExists("instruction",t),lt.ensureKeyExists("attributes",t),lt.ensureKeyExists("text",t),lt.ensureKeyExists("comment",t),lt.ensureKeyExists("cdata",t),lt.ensureKeyExists("doctype",t),lt.ensureKeyExists("type",t),lt.ensureKeyExists("name",t),lt.ensureKeyExists("elements",t),lt.checkFnExists("doctype",t),lt.checkFnExists("instruction",t),lt.checkFnExists("cdata",t),lt.checkFnExists("comment",t),lt.checkFnExists("text",t),lt.checkFnExists("instructionName",t),lt.checkFnExists("elementName",t),lt.checkFnExists("attributeName",t),lt.checkFnExists("attributeValue",t),lt.checkFnExists("attributes",t),lt.checkFnExists("fullTagEmptyElement",t),t}o(DG,"validateOptions");function Co(e,t,n){return(!n&&e.spaces?`
|
|
28
|
+
`:"")+Array(t+1).join(e.spaces)}o(Co,"writeIndentation");function Ig(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,Ei,Ti));var i,r,a,s,l=[];for(i in e)e.hasOwnProperty(i)&&e[i]!==null&&e[i]!==void 0&&(s=t.noQuotesForNativeAttributes&&typeof e[i]!="string"?"":'"',r=""+e[i],r=r.replace(/"/g,"""),a="attributeNameFn"in t?t.attributeNameFn(i,r,Ei,Ti):i,l.push(t.spaces&&t.indentAttributes?Co(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,Ei,Ti):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(Co(t,n,!1)),l.join("")}o(Ig,"writeAttributes");function aF(e,t,n){return Ti=e,Ei="xml",t.ignoreDeclaration?"":"<?xml"+Ig(e[t.attributesKey],t,n)+"?>"}o(aF,"writeDeclaration");function sF(e,t,n){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var r="instructionNameFn"in t?t.instructionNameFn(i,e[i],Ei,Ti):i;if(typeof e[i]=="object")return Ti=e,Ei=r,"<?"+r+Ig(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,Ei,Ti)),"<?"+r+(a?" "+a:"")+"?>"}o(sF,"writeInstruction");function cF(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,Ei,Ti):e)+"-->"}o(cF,"writeComment");function lF(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,Ei,Ti):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}o(lF,"writeCdata");function fF(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,Ei,Ti):e)+">"}o(fF,"writeDoctype");function tE(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&/g,"&"),e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in t?t.textFn(e,Ei,Ti):e)}o(tE,"writeText");function VG(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n<e.elements.length;++n)switch(e.elements[n][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}o(VG,"hasContent");function wG(e,t,n){Ti=e,Ei=e.name;var i=[],r="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+r),e[t.attributesKey]&&i.push(Ig(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(uF(e[t.elementsKey],t,n+1)),Ti=e,Ei=e.name),i.push(t.spaces&&VG(e,t)?`
|
|
29
|
+
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(wG,"writeElement");function uF(e,t,n,i){return e.reduce(function(r,a){var s=Co(t,n,i&&!r);switch(a.type){case"element":return r+s+wG(a,t,n);case"comment":return r+s+cF(a[t.commentKey],t);case"doctype":return r+s+fF(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+lF(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+tE(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+sF(l,t,n)}},"")}o(uF,"writeElements");function pF(e,t,n){var i;for(i in e)if(e.hasOwnProperty(i))switch(i){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}o(pF,"hasContentCompact");function MG(e,t,n,i,r){Ti=e,Ei=t;var a="elementNameFn"in n?n.elementNameFn(t,e):t;if(typeof e>"u"||e===null||e==="")return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?"<"+a+"></"+a+">":"<"+a+"/>";var s=[];if(t){if(s.push("<"+a),typeof e!="object")return s.push(">"+tE(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(Ig(e[n.attributesKey],n,i));var l=pF(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(l||("fullTagEmptyElementFn"in n?l=n.fullTagEmptyElementFn(t,e):l=n.fullTagEmptyElement),l)s.push(">");else return s.push("/>"),s.join("")}return s.push(dF(e,n,i+1,!1)),Ti=e,Ei=t,t&&s.push((r?Co(n,i,!1):"")+"</"+a+">"),s.join("")}o(MG,"writeElementCompact");function dF(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=_G(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(aF(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Co(t,n,i):"")+sF(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Co(t,n,i):"")+tE(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Co(t,n,i):"")+lF(s[r],t));break;case t.doctypeKey:l.push(Co(t,n,i)+fF(s[r],t));break;case t.commentKey:l.push(Co(t,n,i)+cF(s[r],t));break;default:l.push(Co(t,n,i)+MG(s[r],a,t,n,pF(s[r],t)))}i=i&&!l.length}return l.join("")}o(dF,"writeElementsCompact");gF.exports=function(e,t){t=DG(t);var n=[];return Ti=e,Ei="_root_",t.compact?n.push(dF(e,t,0,!0)):(e[t.declarationKey]&&n.push(aF(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(uF(e[t.elementsKey],t,0,!n.length))),n.join("")}});var hF=Ye((sJ,mF)=>{var kG=nE();mF.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 kG(n,t)}});var Xs=Ye((cJ,yF)=>{var UG=eE(),jG=oF(),$G=nE(),BG=hF();yF.exports={xml2js:UG,xml2json:jG,js2xml:$G,json2xml:BG}});var SF=Ye(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.convertEntityTypeAnnotations=Xi.convertPropertyAnnotations=Xi.convertNavigationPropertyAnnotations=Xi.convertEntitySetAnnotations=Xi.convertGenericAnnotations=Xi.convertV2Annotations=void 0;function HG(e,t,n){let i=[];switch(t){case"EntitySet":TF(e,i);break;case"EntityType":AF(e,i);break;case"NavigationProperty":EF(e,n,i);break;case"Property":bF(e,n,i);break;case"Singleton":break;default:break}return vF(e,n,i),i}o(HG,"convertV2Annotations");Xi.convertV2Annotations=HG;function vF(e,t,n){function i(r,a){r&&n.push(a)}if(o(i,"pushToAnnotations"),i(e["sap:schema-version"]!==void 0,{term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),i(e["sap:searchable"]!==void 0,{term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searchable",value:{type:"Bool",Bool:e["sap:searchable"]==="true"}}]}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:topable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:topable"]==="true"}}),i(e["sap:requires-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiresFilter",value:{type:"Bool",Bool:e["sap:requires-filter"]==="true"}}]}}),i(e["sap:required-in-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiredProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}}),i(e["sap:filter-restricton"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"String",String:e["sap:filter-restricton"]}},{name:"Property",value:{type:"PropertyPath",PropertyPath:t}}]}]}}]}}),i(e["sap:sortable"]==="false",{term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:t}}]}}),i(e["sap:visible"]==="false",{term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),i(e["sap:label"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),i(e["sap:heading"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),i(e["sap:quickinfo"]!==void 0,{term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),i(e["sap:text"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:precision"]!==void 0,{term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"],10)}}),i(e["sap:value-list"]==="fixed-value",{term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="NonNegative",{term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="UpperCase",{term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){let r=[];e["sap:lower-boundary"]&&r.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&r.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:r}})}i(e["sap:field-control"]!==void 0,{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),i(e["sap:applicable-path"]!==void 0,{term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),i(e["sap:minoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"],10)}}),i(e["sap:maxoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"],10)}}),i(e["sap:parameter"]==="mandatory",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),i(e["sap:parameter"]==="optional",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),i(e["sap:attribute-for"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}})}o(vF,"convertGenericAnnotations");Xi.convertGenericAnnotations=vF;function TF(e,t){e["sap:creatable"]&&t.push({term:"Org.OData.Capabilities.V1.InsertRestrictions",record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}),e["sap:updatable"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:updatable-path"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Path",Path:e["sap:updatable-path"]}}]}}),e["sap:deletable"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:deletable-path"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Path",Path:e["sap:deletable-path"]}}]}})}o(TF,"convertEntitySetAnnotations");Xi.convertEntitySetAnnotations=TF;function EF(e,t,n){e["sap:creatable"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}}]}}}]}}),e["sap:creatable-path"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Path",Path:e["sap:creatable-path"]}}]}}}]}}}]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"NavigationProperty",value:{type:"NavigationPropertyPath",NavigationPropertyPath:t}},{name:"FilterRestrictions",value:{type:"Record",Record:{propertyValues:[{name:"Filterable",value:{type:"Bool",Bool:!1}}]}}}]}]}}]}})}o(EF,"convertNavigationPropertyAnnotations");Xi.convertNavigationPropertyAnnotations=EF;function bF(e,t,n){e["sap:creatable"]==="true"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Immutable",value:{type:"Bool",Bool:!0}}),e["sap:creatable"]==="false"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Computed",value:{type:"Bool",Bool:!0}}),e["sap:updatable-path"]&&n.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:updatable-path"]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"NonFilterableProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}})}o(bF,"convertPropertyAnnotations");Xi.convertPropertyAnnotations=bF;function AF(e,t){e["sap:semantics"]==="aggregate"&&t.push({term:"Org.OData.Aggregation.V1.ApplySupported",record:{propertyValues:[{name:"PropertyRestrictions",value:{type:"Collection",Collection:[]}},{name:"GroupableProperties",value:{type:"Collection",Collection:[]}},{name:"AggregatableProperties",value:{type:"Collection",Collection:[]}}]}})}o(AF,"convertEntityTypeAnnotations");Xi.convertEntityTypeAnnotations=AF});var NF=Ye(_g=>{"use strict";Object.defineProperty(_g,"__esModule",{value:!0});_g.parse=void 0;var GG=Xs(),Be=JT(),nu=SF(),Lg=/^Collection\((.+)\)$/;function WG(e){return e.Type!==null&&e.Type!==void 0}o(WG,"isV4NavProperty");function KG(e){return e.map(t=>t._attributes.Name)}o(KG,"getEntityTypeKeys");function xF(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:sl(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":s.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=a._attributes.DefaultValue==="true";break;default:s.defaultValue=a._attributes.DefaultValue;break}r.entityProperties.push(s),t.indexOf(s.name)!==-1&&r.entityKeys.push(s);let l=(0,nu.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(Qs(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(xF,"parseProperties");function XG(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(XG,"parseReferentialConstraint");function QG(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let s=(0,Be.ensureArray)(i.Principal.PropertyRef),l=(0,Be.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(u=>u.role===i.Dependent._attributes.Role),l=s,s=(0,Be.ensureArray)(i.Dependent.PropertyRef));for(let u of s){let p=s.indexOf(u);n.push({sourceTypeName:r.type,sourceProperty:u._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}o(QG,"parseV2ReferentialConstraint");function IF(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(WG(s)){let l=s.Type.match(Lg),u=l!==null,p=xo(l?l[1]:s.Type);r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:u,targetTypeName:p,referentialConstraint:XG((0,Be.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:u,FromRole:p}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:u,fromRole:p});let g=(0,nu.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(Qs(`${n}/${s.Name}`,g))}return r},[])}o(IF,"parseNavigationProperties");function qG(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,Be.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}o(qG,"parseAssociationSets");function YG(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,Be.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:QG((0,Be.ensureArray)(n.ReferentialConstraint),r)}})}o(YG,"parseAssociations");function zG(e,t,n){return e.reduce((i,r)=>{let a=r.Key?KG((0,Be.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=xF((0,Be.ensureArray)(r.Property),a,s,t),p=IF((0,Be.ensureArray)(r.NavigationProperty),r,s,t),g={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:u,entityProperties:l,actions:{},navigationProperties:p},m=(0,nu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(Qs(g.fullyQualifiedName,m)),i.push(g),i},[])}o(zG,"parseEntityTypes");function JG(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=xF((0,Be.ensureArray)(r.Property),[],a,t),l=IF((0,Be.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(JG,"parseComplexTypes");function ZG(e,t){return e.reduce((n,i)=>{let r=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:r,underlyingType:i._attributes.UnderlyingType}),n},[])}o(ZG,"parseTypeDefinitions");function eW(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,Be.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:xo(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,nu.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(Qs(l.fullyQualifiedName,u)),l})}o(eW,"parseEntitySets");function tW(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,Be.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:xo(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,nu.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(Qs(l.fullyQualifiedName,u)),l})}o(tW,"parseSingletons");function PF(e,t,n){return e.map(i=>{let r=(0,Be.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(u=>sl(u._attributes.Type).type).join(","):s=a?sl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?sl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:g}=sl(u._attributes.Type),m={_type:"ActionParameter",fullyQualifiedName:`${l}/${u._attributes.Name}`,name:`${u._attributes.Name}`,type:g,isCollection:p};return u._attributes.MaxLength&&(m.maxLength=parseInt(u._attributes.MaxLength,10)),u._attributes.Precision&&(m.precision=parseInt(u._attributes.Precision,10)),u._attributes.Scale&&(m.scale=parseInt(u._attributes.Scale,10)),m.nullable=u._attributes.Nullable!=="false",m}),returnType:i.ReturnType?sl(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(Lg)!==null:!1}})}o(PF,"parseActions");function nW(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,Be.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(Lg)!==null:!1}})}o(nW,"parseV2FunctionImport");function CF(e,t){return e.map(n=>{var i;let r=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:xo(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:xo(r)}})}o(CF,"parseActionImports");function iW(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...s}=i,l={};if(a){let u=Object.keys(a).find(g=>g!=="Property");l.name=a.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=Ng(s,p,n,!1):u&&(l.value=OF({[u]:a[u]},p,n)),i.Annotation){let g=Fg((0,Be.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(Qs(p,g))}}return l})}o(iW,"parsePropertyValues");function Rg(e,t,n){let i=Fg((0,Be.ensureArray)(e.Annotation),t,n),r={type:e._attributes?xo(e._attributes.Type):void 0,propertyValues:iW((0,Be.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(Rg,"parseRecord");function aa(e,t){return e[t]!=null}o(aa,"isExpressionOfType");function Og(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}o(Og,"parseModelPath");function rE(e,t,n){if(aa(e,"Record")){let i=(0,Be.ensureArray)(e.Record).map((r,a)=>Rg(r,t+"/"+a,n));return i.type="Record",i}else if(aa(e,"PropertyPath")){let i=(0,Be.ensureArray)(e.PropertyPath).map(r=>Og(r,"PropertyPath"));return i.type="PropertyPath",i}else if(aa(e,"NavigationPropertyPath")){let i=(0,Be.ensureArray)(e.NavigationPropertyPath).map(r=>Og(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(aa(e,"String")){let i=(0,Be.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(aa(e,"AnnotationPath")){let i=(0,Be.ensureArray)(e.AnnotationPath).map(r=>Og(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(aa(e,"Path")){let i=(0,Be.ensureArray)(e.Path).map(r=>Og(r,"Path"));return i.type="Path",i}else if(aa(e,"If")){let i=(0,Be.ensureArray)(e.If).map(r=>r._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}o(rE,"parseCollection");function En(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(r=>Ng({[i]:r},"",[],!0))):n.push(Ng({[i]:e[i]},"",[],!0))}),n}o(En,"parseChildren");function OF(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:rE(e.Collection,t,n)};case"Record":return{type:"Record",Record:Rg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:En(e.Apply),$Function:En(e.Function)};case"And":return{type:"And",$And:En(e.And)};case"Or":return{type:"Or",$Or:En(e.Or)};case"Eq":return{type:"Eq",$Eq:En(e.Eq)};case"Gt":return{type:"Gt",$Gt:En(e.Gt)};case"Ge":return{type:"Ge",$Ge:En(e.Ge)};case"Lt":return{type:"Lt",$Lt:En(e.Lt)};case"Le":return{type:"Le",$Le:En(e.Le)};case"If":return{type:"If",$If:En(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(OF,"parseInlineExpression");function Ng(e,t,n,i){let r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=r[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:En(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"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:rE(e.Collection,t,n)};case"Record":return{type:"Record",Record:Rg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:En(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:En(e.And)};case"Ne":return{type:"Ne",$Ne:En(e.Ne)};case"Not":return{type:"Not",$Not:En(e.Not)[0]};case"Or":return{type:"Or",$Or:En(e.Or)};case"Eq":return{type:"Eq",$Eq:En(e.Eq)};case"If":return{type:"If",$If:En(e.If)};case"Gt":return{type:"Gt",$Gt:En(e.Gt)};case"Ge":return{type:"Ge",$Ge:En(e.Ge)};case"Lt":return{type:"Lt",$Lt:En(e.Lt)};case"Le":return{type:"Le",$Le:En(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(Ng,"parseExpression");function rW(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:xo(i),qualifier:r},l=`${t}@${xo(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=OF(a,l,n)),e.Annotation){let p=Fg((0,Be.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let u=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return aa(e,"Record")?s.record=Rg(e.Record,l,n):aa(e,"Collection")?s.collection=rE(e.Collection,l,n):u.length===1?s.value=Ng({[u[0]]:e[u[0]]},l,n,!1):u.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}o(rW,"parseAnnotation");function Fg(e,t,n){return e.map(i=>rW(i,t,n))}o(Fg,"parseAnnotations");function Qs(e,t){return{target:e,annotations:t}}o(Qs,"createAnnotationList");function oW(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(Qs(xo(n._attributes.Target),Fg((0,Be.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(oW,"parseAnnotationLists");function aW(e,t,n){let i=e._attributes.Namespace,r=[],a=zG((0,Be.ensureArray)(e.EntityType),r,i),s=JG((0,Be.ensureArray)(e.ComplexType),r,i),l=ZG((0,Be.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},T=[],A=[];if(e.EntityContainer)if(u=eW((0,Be.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=tW((0,Be.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=qG((0,Be.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),m={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")T=T.concat(nW((0,Be.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")A=A.concat(CF((0,Be.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),A=A.concat(CF((0,Be.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(T=T.concat(PF((0,Be.ensureArray)(e.Action),i,!1)),T=T.concat(PF((0,Be.ensureArray)(e.Function),i,!0)));let E=YG((0,Be.ensureArray)(e.Association),i);oW((0,Be.ensureArray)(e.Annotations),r);let O={};return O[n]=r,{associations:E,associationSets:g,annotations:O,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:T,actionImports:A,entityTypes:a}}o(aW,"parseSchema");function sW(e){return e.reduce((t,n)=>((0,Be.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(sW,"parseReferences");var iE={};function sl(e){let t=e.match(Lg),n=t?t[1]:e,i=xo(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(sl,"unaliasType");function xo(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let a=0,s=!0;a<e.length;a++){let l=e[a];if(s&&l==="."){let u=e.substring(r,a);i.push((t=iE[u])!==null&&t!==void 0?t:u),r=a,s=!1}n.includes(l)&&(i.push(e.substring(r,a+1)),r=a+1,s=!0)}return i.push(e.substring(r)),i.join("")}o(xo,"unalias");function cW(e){let t=e.reduce((A,E)=>A.concat(E.associations),[]),n=e.reduce((A,E)=>A.concat(E.associationSets),[]),i=e.reduce((A,E)=>A.concat(E.entitySets),[]),r=e.reduce((A,E)=>A.concat(E.singletons),[]),a=e.reduce((A,E)=>A.concat(E.entityTypes),[]),s=e.reduce((A,E)=>A.concat(E.actions),[]),l=e.reduce((A,E)=>A.concat(E.actionImports),[]),u=e.reduce((A,E)=>A.concat(E.complexTypes),[]),p=e.reduce((A,E)=>A.concat(E.typeDefinitions),[]),g={};e.forEach(A=>{g=Object.assign(g,A.annotations)});let m,T;return e.forEach(A=>{A.entityContainer&&Object.keys(A.entityContainer).length>0&&(m=A.entityContainer,T=A.namespace)}),i.forEach(A=>{let E=a.find(O=>O.fullyQualifiedName===A.entityTypeName);E==null||E.navigationProperties.forEach(O=>{let F=O,U=n.find(K=>K.association===F.relationship);if(U){let K=U.associationEnd.find(j=>j.entitySet!==A.fullyQualifiedName);K&&(A.navigationPropertyBinding[O.name]=K.entitySet)}})}),a.forEach(A=>{A.navigationProperties.forEach(E=>{let O=E,F=t.find(U=>U.fullyQualifiedName===O.relationship);F&&F.referentialConstraints&&F.referentialConstraints.length>0&&(F.referentialConstraints[0].sourceTypeName===A.fullyQualifiedName?O.referentialConstraint=F.referentialConstraints:O.referentialConstraint=F.referentialConstraints.map(U=>({sourceTypeName:U.targetTypeName,sourceProperty:U.targetProperty,targetTypeName:U.sourceTypeName,targetProperty:U.sourceProperty})))})}),{associations:t,associationSets:n,annotations:g,entityContainer:m,namespace:T,entitySets:i,singletons:r,complexTypes:u,typeDefinitions:p,actions:s,actionImports:l,entityTypes:a}}o(cW,"mergeSchemas");function lW(e,t){iE=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{iE[n._attributes.Alias]=n._attributes.Namespace})}o(lW,"createAliasMap");function fW(e,t="serviceFile"){let n=(0,GG.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,Be.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=sW((0,Be.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));lW(a,r);let s=r.map(u=>aW(u,i,t));return new Be.RawMetadataInstance(t,i,cW(s),a)}o(fW,"parse");_g.parse=fW});var LF=Ye(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.parse=cl.merge=void 0;var uW=WR();Object.defineProperty(cl,"merge",{enumerable:!0,get:o(function(){return uW.merge},"get")});var pW=NF();Object.defineProperty(cl,"parse",{enumerable:!0,get:o(function(){return pW.parse},"get")})});var GF=Ye(()=>{var HF;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=r(e);typeof n.Reflect<"u"&&(i=r(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function r(u,p){return function(g,m){Object.defineProperty(u,g,{configurable:!0,writable:!0,value:m}),p&&p(g,m)}}o(r,"makeExporter");function a(){try{return Function("return this;")()}catch{}}o(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(s,"indirectEvalThis");function l(){return a()||s()}o(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",u={__proto__:[]}instanceof Array,p=!l&&!u,g={create:l?function(){return Vs(Object.create(null))}:u?function(){return Vs({__proto__:null})}:function(){return Vs({})},has:p?function(k,B){return i.call(k,B)}:function(k,B){return B in k},get:p?function(k,B){return i.call(k,B)?k[B]:void 0}:function(k,B){return k[B]}},m=Object.getPrototypeOf(Function),T=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Lf(),A=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Rf(),E=typeof WeakMap=="function"?WeakMap:Ff(),O=r?Symbol.for("@reflect-metadata:registry"):void 0,F=Bi(),U=Nf(F);function K(k,B,Q,ce){if(Fe(Q)){if(!Rt(k))throw new TypeError;if(!kt(B))throw new TypeError;return an(k,B)}else{if(!Rt(k))throw new TypeError;if(!st(B))throw new TypeError;if(!st(ce)&&!Fe(ce)&&!Kn(ce))throw new TypeError;return Kn(ce)&&(ce=void 0),Q=De(Q),Wn(k,B,Q,ce)}}o(K,"decorate"),t("decorate",K);function j(k,B){function Q(ce,Le){if(!st(ce))throw new TypeError;if(!Fe(Le)&&!vn(Le))throw new TypeError;It(k,B,ce,Le)}return o(Q,"decorator"),Q}o(j,"metadata"),t("metadata",j);function ae(k,B,Q,ce){if(!st(Q))throw new TypeError;return Fe(ce)||(ce=De(ce)),It(k,B,Q,ce)}o(ae,"defineMetadata"),t("defineMetadata",ae);function Z(k,B,Q){if(!st(B))throw new TypeError;return Fe(Q)||(Q=De(Q)),en(k,B,Q)}o(Z,"hasMetadata"),t("hasMetadata",Z);function re(k,B,Q){if(!st(B))throw new TypeError;return Fe(Q)||(Q=De(Q)),Lt(k,B,Q)}o(re,"hasOwnMetadata"),t("hasOwnMetadata",re);function Pe(k,B,Q){if(!st(B))throw new TypeError;return Fe(Q)||(Q=De(Q)),Re(k,B,Q)}o(Pe,"getMetadata"),t("getMetadata",Pe);function _(k,B,Q){if(!st(B))throw new TypeError;return Fe(Q)||(Q=De(Q)),Oi(k,B,Q)}o(_,"getOwnMetadata"),t("getOwnMetadata",_);function ut(k,B){if(!st(k))throw new TypeError;return Fe(B)||(B=De(B)),Mt(k,B)}o(ut,"getMetadataKeys"),t("getMetadataKeys",ut);function yt(k,B){if(!st(k))throw new TypeError;return Fe(B)||(B=De(B)),sn(k,B)}o(yt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",yt);function je(k,B,Q){if(!st(B))throw new TypeError;if(Fe(Q)||(Q=De(Q)),!st(B))throw new TypeError;Fe(Q)||(Q=De(Q));var ce=Or(B,Q,!1);return Fe(ce)?!1:ce.OrdinaryDeleteMetadata(k,B,Q)}o(je,"deleteMetadata"),t("deleteMetadata",je);function an(k,B){for(var Q=k.length-1;Q>=0;--Q){var ce=k[Q],Le=ce(B);if(!Fe(Le)&&!Kn(Le)){if(!kt(Le))throw new TypeError;B=Le}}return B}o(an,"DecorateConstructor");function Wn(k,B,Q,ce){for(var Le=k.length-1;Le>=0;--Le){var gn=k[Le],xn=gn(B,Q,ce);if(!Fe(xn)&&!Kn(xn)){if(!st(xn))throw new TypeError;ce=xn}}return ce}o(Wn,"DecorateProperty");function en(k,B,Q){var ce=Lt(k,B,Q);if(ce)return!0;var Le=Gt(B);return Kn(Le)?!1:en(k,Le,Q)}o(en,"OrdinaryHasMetadata");function Lt(k,B,Q){var ce=Or(B,Q,!1);return Fe(ce)?!1:Y(ce.OrdinaryHasOwnMetadata(k,B,Q))}o(Lt,"OrdinaryHasOwnMetadata");function Re(k,B,Q){var ce=Lt(k,B,Q);if(ce)return Oi(k,B,Q);var Le=Gt(B);if(!Kn(Le))return Re(k,Le,Q)}o(Re,"OrdinaryGetMetadata");function Oi(k,B,Q){var ce=Or(B,Q,!1);if(!Fe(ce))return ce.OrdinaryGetOwnMetadata(k,B,Q)}o(Oi,"OrdinaryGetOwnMetadata");function It(k,B,Q,ce){var Le=Or(Q,ce,!0);Le.OrdinaryDefineOwnMetadata(k,B,Q,ce)}o(It,"OrdinaryDefineOwnMetadata");function Mt(k,B){var Q=sn(k,B),ce=Gt(k);if(ce===null)return Q;var Le=Mt(ce,B);if(Le.length<=0)return Q;if(Q.length<=0)return Le;for(var gn=new A,xn=[],nt=0,me=Q;nt<me.length;nt++){var Te=me[nt],Ce=gn.has(Te);Ce||(gn.add(Te),xn.push(Te))}for(var Oe=0,ot=Le;Oe<ot.length;Oe++){var Te=ot[Oe],Ce=gn.has(Te);Ce||(gn.add(Te),xn.push(Te))}return xn}o(Mt,"OrdinaryMetadataKeys");function sn(k,B){var Q=Or(k,B,!1);return Q?Q.OrdinaryOwnMetadataKeys(k,B):[]}o(sn,"OrdinaryOwnMetadataKeys");function $i(k){if(k===null)return 1;switch(typeof k){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return k===null?1:6;default:return 6}}o($i,"Type");function Fe(k){return k===void 0}o(Fe,"IsUndefined");function Kn(k){return k===null}o(Kn,"IsNull");function Ir(k){return typeof k=="symbol"}o(Ir,"IsSymbol");function st(k){return typeof k=="object"?k!==null:typeof k=="function"}o(st,"IsObject");function I(k,B){switch($i(k)){case 0:return k;case 1:return k;case 2:return k;case 3:return k;case 4:return k;case 5:return k}var Q=B===3?"string":B===5?"number":"default",ce=Ht(k,a);if(ce!==void 0){var Le=ce.call(k,Q);if(st(Le))throw new TypeError;return Le}return S(k,Q==="default"?"number":Q)}o(I,"ToPrimitive");function S(k,B){if(B==="string"){var Q=k.toString;if(Qe(Q)){var ce=Q.call(k);if(!st(ce))return ce}var Le=k.valueOf;if(Qe(Le)){var ce=Le.call(k);if(!st(ce))return ce}}else{var Le=k.valueOf;if(Qe(Le)){var ce=Le.call(k);if(!st(ce))return ce}var gn=k.toString;if(Qe(gn)){var ce=gn.call(k);if(!st(ce))return ce}}throw new TypeError}o(S,"OrdinaryToPrimitive");function Y(k){return!!k}o(Y,"ToBoolean");function V(k){return""+k}o(V,"ToString");function De(k){var B=I(k,3);return Ir(B)?B:V(B)}o(De,"ToPropertyKey");function Rt(k){return Array.isArray?Array.isArray(k):k instanceof Object?k instanceof Array:Object.prototype.toString.call(k)==="[object Array]"}o(Rt,"IsArray");function Qe(k){return typeof k=="function"}o(Qe,"IsCallable");function kt(k){return typeof k=="function"}o(kt,"IsConstructor");function vn(k){switch($i(k)){case 3:return!0;case 4:return!0;default:return!1}}o(vn,"IsPropertyKey");function cn(k,B){return k===B||k!==k&&B!==B}o(cn,"SameValueZero");function Ht(k,B){var Q=k[B];if(Q!=null){if(!Qe(Q))throw new TypeError;return Q}}o(Ht,"GetMethod");function ni(k){var B=Ht(k,s);if(!Qe(B))throw new TypeError;var Q=B.call(k);if(!st(Q))throw new TypeError;return Q}o(ni,"GetIterator");function ir(k){return k.value}o(ir,"IteratorValue");function dn(k){var B=k.next();return B.done?!1:B}o(dn,"IteratorStep");function mi(k){var B=k.return;B&&B.call(k)}o(mi,"IteratorClose");function Gt(k){var B=Object.getPrototypeOf(k);if(typeof k!="function"||k===m||B!==m)return B;var Q=k.prototype,ce=Q&&Object.getPrototypeOf(Q);if(ce==null||ce===Object.prototype)return B;var Le=ce.constructor;return typeof Le!="function"||Le===k?B:Le}o(Gt,"OrdinaryGetPrototypeOf");function Xo(){var k;!Fe(O)&&typeof n.Reflect<"u"&&!(O in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(k=Ds(n.Reflect));var B,Q,ce,Le=new E,gn={registerProvider:xn,getProvider:me,setProvider:Ce};return gn;function xn(Oe){if(!Object.isExtensible(gn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case k===Oe:break;case Fe(B):B=Oe;break;case B===Oe:break;case Fe(Q):Q=Oe;break;case Q===Oe:break;default:ce===void 0&&(ce=new A),ce.add(Oe);break}}function nt(Oe,ot){if(!Fe(B)){if(B.isProviderFor(Oe,ot))return B;if(!Fe(Q)){if(Q.isProviderFor(Oe,ot))return B;if(!Fe(ce))for(var Wt=ni(ce);;){var ln=dn(Wt);if(!ln)return;var rr=ir(ln);if(rr.isProviderFor(Oe,ot))return mi(Wt),rr}}}if(!Fe(k)&&k.isProviderFor(Oe,ot))return k}function me(Oe,ot){var Wt=Le.get(Oe),ln;return Fe(Wt)||(ln=Wt.get(ot)),Fe(ln)&&(ln=nt(Oe,ot),Fe(ln)||(Fe(Wt)&&(Wt=new T,Le.set(Oe,Wt)),Wt.set(ot,ln))),ln}function Te(Oe){if(Fe(Oe))throw new TypeError;return B===Oe||Q===Oe||!Fe(ce)&&ce.has(Oe)}function Ce(Oe,ot,Wt){if(!Te(Wt))throw new Error("Metadata provider not registered.");var ln=me(Oe,ot);if(ln!==Wt){if(!Fe(ln))return!1;var rr=Le.get(Oe);Fe(rr)&&(rr=new T,Le.set(Oe,rr)),rr.set(ot,Wt)}return!0}}o(Xo,"CreateMetadataRegistry");function Bi(){var k;return!Fe(O)&&st(n.Reflect)&&Object.isExtensible(n.Reflect)&&(k=n.Reflect[O]),Fe(k)&&(k=Xo()),!Fe(O)&&st(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,O,{enumerable:!1,configurable:!1,writable:!1,value:k}),k}o(Bi,"GetOrCreateMetadataRegistry");function Nf(k){var B=new E,Q={isProviderFor:o(function(Te,Ce){var Oe=B.get(Te);return Fe(Oe)?!1:Oe.has(Ce)},"isProviderFor"),OrdinaryDefineOwnMetadata:xn,OrdinaryHasOwnMetadata:Le,OrdinaryGetOwnMetadata:gn,OrdinaryOwnMetadataKeys:nt,OrdinaryDeleteMetadata:me};return F.registerProvider(Q),Q;function ce(Te,Ce,Oe){var ot=B.get(Te),Wt=!1;if(Fe(ot)){if(!Oe)return;ot=new T,B.set(Te,ot),Wt=!0}var ln=ot.get(Ce);if(Fe(ln)){if(!Oe)return;if(ln=new T,ot.set(Ce,ln),!k.setProvider(Te,Ce,Q))throw ot.delete(Ce),Wt&&B.delete(Te),new Error("Wrong provider for target.")}return ln}o(ce,"GetOrCreateMetadataMap");function Le(Te,Ce,Oe){var ot=ce(Ce,Oe,!1);return Fe(ot)?!1:Y(ot.has(Te))}o(Le,"OrdinaryHasOwnMetadata");function gn(Te,Ce,Oe){var ot=ce(Ce,Oe,!1);if(!Fe(ot))return ot.get(Te)}o(gn,"OrdinaryGetOwnMetadata");function xn(Te,Ce,Oe,ot){var Wt=ce(Oe,ot,!0);Wt.set(Te,Ce)}o(xn,"OrdinaryDefineOwnMetadata");function nt(Te,Ce){var Oe=[],ot=ce(Te,Ce,!1);if(Fe(ot))return Oe;for(var Wt=ot.keys(),ln=ni(Wt),rr=0;;){var yd=dn(ln);if(!yd)return Oe.length=rr,Oe;var av=ir(yd);try{Oe[rr]=av}catch(_f){try{mi(ln)}finally{throw _f}}rr++}}o(nt,"OrdinaryOwnMetadataKeys");function me(Te,Ce,Oe){var ot=ce(Ce,Oe,!1);if(Fe(ot)||!ot.delete(Te))return!1;if(ot.size===0){var Wt=B.get(Ce);Fe(Wt)||(Wt.delete(Oe),Wt.size===0&&B.delete(Wt))}return!0}o(me,"OrdinaryDeleteMetadata")}o(Nf,"CreateMetadataProvider");function Ds(k){var B=k.defineMetadata,Q=k.hasOwnMetadata,ce=k.getOwnMetadata,Le=k.getOwnMetadataKeys,gn=k.deleteMetadata,xn=new E,nt={isProviderFor:o(function(me,Te){var Ce=xn.get(me);return!Fe(Ce)&&Ce.has(Te)?!0:Le(me,Te).length?(Fe(Ce)&&(Ce=new A,xn.set(me,Ce)),Ce.add(Te),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:ce,OrdinaryOwnMetadataKeys:Le,OrdinaryDeleteMetadata:gn};return nt}o(Ds,"CreateFallbackProvider");function Or(k,B,Q){var ce=F.getProvider(k,B);if(!Fe(ce))return ce;if(Q){if(F.setProvider(k,B,U))return U;throw new Error("Illegal state.")}}o(Or,"GetMetadataProvider");function Lf(){var k={},B=[],Q=function(){function nt(me,Te,Ce){this._index=0,this._keys=me,this._values=Te,this._selector=Ce}return o(nt,"MapIterator"),nt.prototype["@@iterator"]=function(){return this},nt.prototype[s]=function(){return this},nt.prototype.next=function(){var me=this._index;if(me>=0&&me<this._keys.length){var Te=this._selector(this._keys[me],this._values[me]);return me+1>=this._keys.length?(this._index=-1,this._keys=B,this._values=B):this._index++,{value:Te,done:!1}}return{value:void 0,done:!0}},nt.prototype.throw=function(me){throw this._index>=0&&(this._index=-1,this._keys=B,this._values=B),me},nt.prototype.return=function(me){return this._index>=0&&(this._index=-1,this._keys=B,this._values=B),{value:me,done:!0}},nt}(),ce=function(){function nt(){this._keys=[],this._values=[],this._cacheKey=k,this._cacheIndex=-2}return o(nt,"Map"),Object.defineProperty(nt.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),nt.prototype.has=function(me){return this._find(me,!1)>=0},nt.prototype.get=function(me){var Te=this._find(me,!1);return Te>=0?this._values[Te]:void 0},nt.prototype.set=function(me,Te){var Ce=this._find(me,!0);return this._values[Ce]=Te,this},nt.prototype.delete=function(me){var Te=this._find(me,!1);if(Te>=0){for(var Ce=this._keys.length,Oe=Te+1;Oe<Ce;Oe++)this._keys[Oe-1]=this._keys[Oe],this._values[Oe-1]=this._values[Oe];return this._keys.length--,this._values.length--,cn(me,this._cacheKey)&&(this._cacheKey=k,this._cacheIndex=-2),!0}return!1},nt.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=k,this._cacheIndex=-2},nt.prototype.keys=function(){return new Q(this._keys,this._values,Le)},nt.prototype.values=function(){return new Q(this._keys,this._values,gn)},nt.prototype.entries=function(){return new Q(this._keys,this._values,xn)},nt.prototype["@@iterator"]=function(){return this.entries()},nt.prototype[s]=function(){return this.entries()},nt.prototype._find=function(me,Te){if(!cn(this._cacheKey,me)){this._cacheIndex=-1;for(var Ce=0;Ce<this._keys.length;Ce++)if(cn(this._keys[Ce],me)){this._cacheIndex=Ce;break}}return this._cacheIndex<0&&Te&&(this._cacheIndex=this._keys.length,this._keys.push(me),this._values.push(void 0)),this._cacheIndex},nt}();return ce;function Le(nt,me){return nt}function gn(nt,me){return me}function xn(nt,me){return[nt,me]}}o(Lf,"CreateMapPolyfill");function Rf(){var k=function(){function B(){this._map=new T}return o(B,"Set"),Object.defineProperty(B.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),B.prototype.has=function(Q){return this._map.has(Q)},B.prototype.add=function(Q){return this._map.set(Q,Q),this},B.prototype.delete=function(Q){return this._map.delete(Q)},B.prototype.clear=function(){this._map.clear()},B.prototype.keys=function(){return this._map.keys()},B.prototype.values=function(){return this._map.keys()},B.prototype.entries=function(){return this._map.entries()},B.prototype["@@iterator"]=function(){return this.keys()},B.prototype[s]=function(){return this.keys()},B}();return k}o(Rf,"CreateSetPolyfill");function Ff(){var k=16,B=g.create(),Q=ce();return function(){function me(){this._key=ce()}return o(me,"WeakMap"),me.prototype.has=function(Te){var Ce=Le(Te,!1);return Ce!==void 0?g.has(Ce,this._key):!1},me.prototype.get=function(Te){var Ce=Le(Te,!1);return Ce!==void 0?g.get(Ce,this._key):void 0},me.prototype.set=function(Te,Ce){var Oe=Le(Te,!0);return Oe[this._key]=Ce,this},me.prototype.delete=function(Te){var Ce=Le(Te,!1);return Ce!==void 0?delete Ce[this._key]:!1},me.prototype.clear=function(){this._key=ce()},me}();function ce(){var me;do me="@@WeakMap@@"+nt();while(g.has(B,me));return B[me]=!0,me}function Le(me,Te){if(!i.call(me,Q)){if(!Te)return;Object.defineProperty(me,Q,{value:g.create()})}return me[Q]}function gn(me,Te){for(var Ce=0;Ce<Te;++Ce)me[Ce]=Math.random()*255|0;return me}function xn(me){if(typeof Uint8Array=="function"){var Te=new Uint8Array(me);return typeof crypto<"u"?crypto.getRandomValues(Te):typeof msCrypto<"u"?msCrypto.getRandomValues(Te):gn(Te,me),Te}return gn(new Array(me),me)}function nt(){var me=xn(k);me[6]=me[6]&79|64,me[8]=me[8]&191|128;for(var Te="",Ce=0;Ce<k;++Ce){var Oe=me[Ce];(Ce===4||Ce===6||Ce===8)&&(Te+="-"),Oe<16&&(Te+="0"),Te+=Oe.toString(16).toLowerCase()}return Te}}o(Ff,"CreateWeakMapPolyfill");function Vs(k){return k.__=void 0,delete k.__,k}o(Vs,"MakeDictionary")})})(HF||(HF={}))});var YF=Ye((LJ,qF)=>{var kW=0,QF="changeUtils: ";function UW(){return"id-"+new Date().valueOf()+"-"+kW++}o(UW,"uid");function jW(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(jW,"appendComponentToReference");function $W(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return jW(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o($W,"getFlexReference");function BW(e){let t=e["sap.app"];if(!t||!t.applicationVersion||!t.applicationVersion.version)throw Error("app version could not be determined");return t.applicationVersion.version}o(BW,"getAppVersion");function HW(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(HW,"getProjectId");function XF(e){return JSON.stringify({fileName:e.id||UW().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:QF+e.creatingTool,service:"",user:"",sapui5Version:e.sapui5Version,sourceChangeFileName:"",compositeCommand:""},oDataInformation:{},dependentSelector:{},validAppVersions:{from:e.appVersion,to:e.appVersion,creation:e.appVersion},jsOnly:!1,variantReference:"",appDescriptorChange:!1})}o(XF,"createString");qF.exports={parse:o(function(e){let t=JSON.parse(e);if(!t.fileName||!t.changeType||!t.selector||!t.reference||!t.creation||!t.content||!t.layer||!t.support)throw Error("Parsed object does not contain all required parameters");return{id:t.fileName,reference:t.reference,appVersion:t.validAppVersions?t.validAppVersions.creation:"",creation:t.creation,projectId:t.projectId,type:t.changeType,controlId:t.selector.id,controlType:t.selector.type,isCustomer:t.layer==="CUSTOMER_BASE",creatingTool:t.support.generator.replace(QF,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:o(function(e,t){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool)throw Error("not all property parameters of the change were provided");if(!t)throw Error("no manifest was provided");return e.reference=$W(t),e.appVersion=BW(t),e.projectId=HW(t,e.reference),XF(e)},"createChangeString"),toString:o(function(e){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool||!(e.reference&&e.appVersion))throw Error("not all parameters of the change were provided");return XF(e)},"toString")}});var JF=Ye((FJ,zF)=>{zF.exports={change:YF()}});var H0=Ye(jr=>{"use strict";var P8=/[|\\{}()[\]^$+*?.]/g,C8=Object.prototype.hasOwnProperty,XE=o(function(e,t){return C8.apply(e,[t])},"hasOwn");jr.escapeRegExpChars=function(e){return e?String(e).replace(P8,"\\$&"):""};var x8={"&":"&","<":"<",">":">",'"':""","'":"'"},I8=/[&<>'"]/g;function O8(e){return x8[e]||e}o(O8,"encode_char");var N8=`var _ENCODE_HTML_RULES = {
|
|
30
30
|
"&": "&"
|
|
31
31
|
, "<": "<"
|
|
32
32
|
, ">": ">"
|
|
@@ -37,17 +37,17 @@ Actual: `+I.attribValue);else{var De=I.tag,Lt=I.tags[I.tags.length-1]||I;De.ns==
|
|
|
37
37
|
function encode_char(c) {
|
|
38
38
|
return _ENCODE_HTML_RULES[c] || c;
|
|
39
39
|
};
|
|
40
|
-
`;
|
|
41
|
-
`+
|
|
40
|
+
`;jr.escapeXML=function(e){return e==null?"":String(e).replace(I8,O8)};function B0(){return Function.prototype.toString.call(this)+`;
|
|
41
|
+
`+N8}o(B0,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(jr.escapeXML,"toString",{value:B0}):jr.escapeXML.toString=B0}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}jr.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)XE(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};jr.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},e!=null)for(var i=0;i<n.length;i++){var r=n[i];if(typeof t[r]<"u"){if(!XE(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};jr.cache={_data:{},set:o(function(e,t){this._data[e]=t},"set"),get:o(function(e){return this._data[e]},"get"),remove:o(function(e){delete this._data[e]},"remove"),reset:o(function(){this._data={}},"reset")};jr.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};jr.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();jr.hasOwnOnlyObject=function(e){var t=jr.createNullProtoObjWherePossible();for(var n in e)XE(e,n)&&(t[n]=e[n]);return t}});var G0=Ye((ZZ,L8)=>{L8.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 Z0=Ye(Pt=>{"use strict";var qE=require("fs"),Au=require("path"),Nn=H0(),W0=!1,R8=G0().version,F8="<",_8=">",D8="%",z0="locals",V8="ejs",w8="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",J0=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],M8=J0.concat("cache"),K0=/^\uFEFF/,QE=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Pt.cache=Nn.cache;Pt.fileLoader=qE.readFileSync;Pt.localsName=z0;Pt.promiseImpl=new Function("return this;")().Promise;Pt.resolveInclude=function(e,t,n){var i=Au.dirname,r=Au.extname,a=Au.resolve,s=a(n?t:i(t),e),l=r(e);return l||(s+=".ejs"),s};function X0(e,t){var n;if(t.some(function(i){return n=Pt.resolveInclude(e,i,!0),qE.existsSync(n)}))return n}o(X0,"resolvePaths");function k8(e,t){var n,i,r=t.views,a=/^[A-Za-z]+:\\|^\//.exec(e);if(a&&a.length)e=e.replace(/^\/*/,""),Array.isArray(t.root)?n=X0(e,t.root):n=Pt.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=Pt.resolveInclude(e,t.filename),qE.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=X0(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}o(k8,"getIncludePath");function Su(e,t){var n,i=e.filename,r=arguments.length>1;if(e.cache){if(!i)throw new Error("cache option requires a filename");if(n=Pt.cache.get(i),n)return n;r||(t=Q0(i).toString().replace(K0,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=Q0(i).toString().replace(K0,"")}return n=Pt.compile(t,e),e.cache&&Pt.cache.set(i,n),n}o(Su,"handleCache");function U8(e,t,n){var i;if(n){try{i=Su(e)(t)}catch(r){return n(r)}n(null,i)}else{if(typeof Pt.promiseImpl=="function")return new Pt.promiseImpl(function(r,a){try{i=Su(e)(t),r(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}o(U8,"tryHandleCache");function Q0(e){return Pt.fileLoader(e)}o(Q0,"fileLoader");function j8(e,t){var n=Nn.shallowCopy(Nn.createNullProtoObjWherePossible(),t);if(n.filename=k8(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return Su(n,i.template)}return Su(n)}o(j8,"includeFile");function q0(e,t,n,i,r){var a=t.split(`
|
|
42
42
|
`),s=Math.max(i-3,0),l=Math.min(a.length,i+3),u=r(n),p=a.slice(s,l).map(function(g,m){var T=m+s+1;return(T==i?" >> ":" ")+T+"| "+g}).join(`
|
|
43
43
|
`);throw e.path=u,e.message=(u||"ejs")+":"+i+`
|
|
44
44
|
`+p+`
|
|
45
45
|
|
|
46
|
-
`+e.message,e}o(
|
|
46
|
+
`+e.message,e}o(q0,"rethrow");function Y0(e){return e.replace(/;(\s*$)/,"$1")}o(Y0,"stripSemi");Pt.compile=o(function(t,n){var i;return n&&n.scope&&(W0||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),W0=!0),n.context||(n.context=n.scope),delete n.scope),i=new Hn(t,n),i.compile()},"compile");Pt.render=function(e,t,n){var i=t||Nn.createNullProtoObjWherePossible(),r=n||Nn.createNullProtoObjWherePossible();return arguments.length==2&&Nn.shallowCopyFromList(r,i,J0),Su(r,e)(i)};Pt.renderFile=function(){var e=Array.prototype.slice.call(arguments),t=e.shift(),n,i={filename:t},r,a;return typeof arguments[arguments.length-1]=="function"&&(n=e.pop()),e.length?(r=e.shift(),e.length?Nn.shallowCopy(i,e.pop()):(r.settings&&(r.settings.views&&(i.views=r.settings.views),r.settings["view cache"]&&(i.cache=!0),a=r.settings["view options"],a&&Nn.shallowCopy(i,a)),Nn.shallowCopyFromList(i,r,M8)),i.filename=t):r=Nn.createNullProtoObjWherePossible(),U8(i,r,n)};Pt.Template=Hn;Pt.clearCache=function(){Pt.cache.reset()};function Hn(e,t){var n=Nn.hasOwnOnlyObject(t),i=Nn.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||Nn.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||Pt.openDelimiter||F8,i.closeDelimiter=n.closeDelimiter||Pt.closeDelimiter||_8,i.delimiter=n.delimiter||Pt.delimiter||D8,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||Pt.localsName||z0,i.views=n.views,i.async=n.async,i.destructuredLocals=n.destructuredLocals,i.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,i.strict?i._with=!1:i._with=typeof n._with<"u"?n._with:!0,this.opts=i,this.regex=this.createRegex()}o(Hn,"Template");Hn.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Hn.prototype={createRegex:o(function(){var e=w8,t=Nn.escapeRegExpChars(this.opts.delimiter),n=Nn.escapeRegExpChars(this.opts.openDelimiter),i=Nn.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,n).replace(/>/g,i),new RegExp(e)},"createRegex"),compile:o(function(){var e,t,n=this.opts,i="",r="",a=n.escapeFunction,s,l=n.filename?JSON.stringify(n.filename):"undefined";if(!this.source){if(this.generateSource(),i+=` var __output = "";
|
|
47
47
|
function __append(s) { if (s !== undefined && s !== null) __output += s }
|
|
48
|
-
`,n.outputFunctionName){if(!
|
|
49
|
-
`}if(n.localsName&&!
|
|
50
|
-
`,p=0;p<n.destructuredLocals.length;p++){var g=n.destructuredLocals[p];if(!
|
|
48
|
+
`,n.outputFunctionName){if(!QE.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
|
|
49
|
+
`}if(n.localsName&&!QE.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){for(var u=" var __locals = ("+n.localsName+` || {}),
|
|
50
|
+
`,p=0;p<n.destructuredLocals.length;p++){var g=n.destructuredLocals[p];if(!QE.test(g))throw new Error("destructuredLocals["+p+"] is not a valid JS identifier.");p>0&&(u+=`,
|
|
51
51
|
`),u+=g+" = __locals."+g}i+=u+`;
|
|
52
52
|
`}n._with!==!1&&(i+=" with ("+n.localsName+` || {}) {
|
|
53
53
|
`,r+=` }
|
|
@@ -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 || "+
|
|
63
|
+
`+e,n.compileDebug&&(e="rethrow = rethrow || "+q0.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=`+l+`
|
|
@@ -68,18 +68,18 @@ try {
|
|
|
68
68
|
|
|
69
69
|
`,E.message+=`If the above error is not helpful, you may want to try EJS-Lint:
|
|
70
70
|
`,E.message+="https://github.com/RyanZim/EJS-Lint",n.async||(E.message+=`
|
|
71
|
-
`,E.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),E}var m=n.client?t:o(function(O){var F=o(function(U,K){var j=
|
|
71
|
+
`,E.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),E}var m=n.client?t:o(function(O){var F=o(function(U,K){var j=Nn.shallowCopy(Nn.createNullProtoObjWherePossible(),O);return K&&(j=Nn.shallowCopy(j,K)),j8(U,n)(j)},"include");return t.apply(n.context,[O||Nn.createNullProtoObjWherePossible(),a,F,q0])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var T=n.filename,A=Au.basename(T,Au.extname(T));try{Object.defineProperty(m,"name",{value:A,writable:!1,enumerable:!1,configurable:!0})}catch{}}return m},"compile"),generateSource:o(function(){var e=this.opts;e.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
|
|
72
72
|
`).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var t=this,n=this.parseTemplateText(),i=this.opts.delimiter,r=this.opts.openDelimiter,a=this.opts.closeDelimiter;n&&n.length&&n.forEach(function(s,l){var u;if(s.indexOf(r+i)===0&&s.indexOf(r+i+i)!==0&&(u=n[l+2],!(u==i+a||u=="-"+i+a||u=="_"+i+a)))throw new Error('Could not find matching close tag for "'+s+'".');t.scanLine(s)})},"generateSource"),parseTemplateText:o(function(){for(var e=this.templateText,t=this.regex,n=t.exec(e),i=[],r;n;)r=n.index,r!==0&&(i.push(e.substring(0,r)),e=e.slice(r)),i.push(n[0]),e=e.slice(n[0].length),n=t.exec(e);return e&&i.push(e),i},"parseTemplateText"),_addOutput:o(function(e){if(this.truncate&&(e=e.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!e)return e;e=e.replace(/\\/g,"\\\\"),e=e.replace(/\n/g,"\\n"),e=e.replace(/\r/g,"\\r"),e=e.replace(/"/g,'\\"'),this.source+=' ; __append("'+e+`")
|
|
73
73
|
`},"_addOutput"),scanLine:o(function(e){var t=this,n=this.opts.delimiter,i=this.opts.openDelimiter,r=this.opts.closeDelimiter,a=0;switch(a=e.split(`
|
|
74
|
-
`).length-1,e){case i+n:case i+n+"_":this.mode=
|
|
75
|
-
`;break;case n+n+r:this.mode=
|
|
76
|
-
`;break;case n+r:case"-"+n+r:case"_"+n+r:this.mode==
|
|
74
|
+
`).length-1,e){case i+n:case i+n+"_":this.mode=Hn.modes.EVAL;break;case i+n+"=":this.mode=Hn.modes.ESCAPED;break;case i+n+"-":this.mode=Hn.modes.RAW;break;case i+n+"#":this.mode=Hn.modes.COMMENT;break;case i+n+n:this.mode=Hn.modes.LITERAL,this.source+=' ; __append("'+e.replace(i+n+n,i+n)+`")
|
|
75
|
+
`;break;case n+n+r:this.mode=Hn.modes.LITERAL,this.source+=' ; __append("'+e.replace(n+n+r,n+r)+`")
|
|
76
|
+
`;break;case n+r:case"-"+n+r:case"_"+n+r:this.mode==Hn.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 Hn.modes.EVAL:case Hn.modes.ESCAPED:case Hn.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf(`
|
|
77
77
|
`)&&(e+=`
|
|
78
|
-
`)}switch(this.mode){case
|
|
79
|
-
`;break;case
|
|
80
|
-
`;break;case
|
|
81
|
-
`;break;case
|
|
82
|
-
`)},"scanLine")};
|
|
78
|
+
`)}switch(this.mode){case Hn.modes.EVAL:this.source+=" ; "+e+`
|
|
79
|
+
`;break;case Hn.modes.ESCAPED:this.source+=" ; __append(escapeFn("+Y0(e)+`))
|
|
80
|
+
`;break;case Hn.modes.RAW:this.source+=" ; __append("+Y0(e)+`)
|
|
81
|
+
`;break;case Hn.modes.COMMENT:break;case Hn.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&a&&(this.currentLine+=a,this.source+=" ; __line = "+this.currentLine+`
|
|
82
|
+
`)},"scanLine")};Pt.escapeXML=Nn.escapeXML;Pt.__express=Pt.renderFile;Pt.VERSION=R8;Pt.name=V8;typeof window<"u"&&(window.ejs=Pt)});var tp,DA=qe(()=>{tp="7.1.1"});function at(e){return e&&e.length===0}function wi(e){return e==null?[]:Object.keys(e)}function Vn(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++)t.push(e[n[i]]);return t}function U1(e,t){for(var n=[],i=wi(e),r=0;r<i.length;r++){var a=i[r];n.push(t.call(null,e[a],a))}return n}function ue(e,t){for(var n=[],i=0;i<e.length;i++)n.push(t.call(null,e[i],i));return n}function Ln(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?t=t.concat(Ln(i)):t.push(i)}return t}function Si(e){return at(e)?void 0:e[0]}function _h(e){var t=e&&e.length;return t?e[t-1]:void 0}function ye(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t.call(null,e[n],n);else if(Dh(e))for(var i=wi(e),n=0;n<i.length;n++){var r=i[n],a=e[r];t.call(null,a,r)}else throw Error("non exhaustive match")}function Br(e){return typeof e=="string"}function Pi(e){return e===void 0}function uo(e){return e instanceof Function}function wn(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function ps(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function Hr(e,t){var n=[];if(Array.isArray(e))for(var i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function ya(e,t){return Hr(e,function(n){return!t(n)})}function hr(e,t){for(var n=Object.keys(e),i={},r=0;r<n.length;r++){var a=n[r],s=e[a];t(s)&&(i[a]=s)}return i}function Ie(e,t){return Dh(e)?e.hasOwnProperty(t):!1}function Vt(e,t){return va(e,function(n){return n===t})!==void 0}function An(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function ds(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function va(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t.call(null,i))return i}}function j1(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function un(e,t,n){for(var i=Array.isArray(e),r=i?e:Vn(e),a=i?[]:wi(e),s=n,l=0;l<r.length;l++)s=t.call(null,s,r[l],i?l:a[l]);return s}function Ta(e){return ya(e,function(t){return t==null})}function np(e,t){t===void 0&&(t=o(function(i){return i},"identity"));var n=[];return un(e,function(i,r){var a=t(r);return Vt(n,a)?i:(n.push(a),i.concat(r))},[])}function lre(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=[null],r=i.concat(t);return Function.bind.apply(e,r)}function fi(e){return Array.isArray(e)}function po(e){return e instanceof RegExp}function Dh(e){return e instanceof Object}function ui(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function Ic(e,t){return ya(e,function(n){return Vt(t,n)})}function Vh(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function $1(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function fre(e,t){var n=An(e);return n.sort(function(i,r){return t(i)-t(r)}),n}function ure(e,t){if(e.length!==t.length)throw Error("can't zipObject with different number of keys and values!");for(var n={},i=0;i<e.length;i++)n[e[i]]=t[i];return n}function yr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++)for(var r=t[i],a=wi(r),s=0;s<a.length;s++){var l=a[s];e[l]=r[l]}return e}function u7(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++)for(var r=t[i],a=wi(r),s=0;s<a.length;s++){var l=a[s];Ie(e,l)||(e[l]=r[l])}return e}function ip(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u7.apply(null,[{}].concat(e))}function B1(e,t){var n={};return ye(e,function(i){var r=t(i),a=n[r];a?a.push(i):n[r]=[i]}),n}function VA(e,t){for(var n=ds(e),i=wi(t),r=0;r<i.length;r++){var a=i[r],s=t[a];n[a]=s}return n}function Mn(){}function wA(e){return e}function H1(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(i!==void 0?i:void 0)}return t}function rp(e){console&&console.error&&console.error("Error: "+e)}function wh(e){console&&console.warn&&console.warn("Warning: "+e)}function MA(){return typeof Map=="function"}function G1(e,t){t.forEach(function(n){var i=n.prototype;Object.getOwnPropertyNames(i).forEach(function(r){if(r!=="constructor"){var a=Object.getOwnPropertyDescriptor(i,r);a&&(a.get||a.set)?Object.defineProperty(e.prototype,r,a):e.prototype[r]=n.prototype[r]}})})}function Mh(toBecomeFast){function FakeConstructor(){}o(FakeConstructor,"FakeConstructor"),FakeConstructor.prototype=toBecomeFast;var fakeInstance=new FakeConstructor;function fakeAccess(){return typeof fakeInstance.bar}return o(fakeAccess,"fakeAccess"),fakeAccess(),fakeAccess(),toBecomeFast;eval(toBecomeFast)}function op(e){return e[e.length-1]}function kh(e){var t=new Date().getTime(),n=e(),i=new Date().getTime(),r=i-t;return{time:r,value:n}}var vt=qe(()=>{o(at,"isEmpty");o(wi,"keys");o(Vn,"values");o(U1,"mapValues");o(ue,"map");o(Ln,"flatten");o(Si,"first");o(_h,"last");o(ye,"forEach");o(Br,"isString");o(Pi,"isUndefined");o(uo,"isFunction");o(wn,"drop");o(ps,"dropRight");o(Hr,"filter");o(ya,"reject");o(hr,"pick");o(Ie,"has");o(Vt,"contains");o(An,"cloneArr");o(ds,"cloneObj");o(va,"find");o(j1,"findAll");o(un,"reduce");o(Ta,"compact");o(np,"uniq");o(lre,"partial");o(fi,"isArray");o(po,"isRegExp");o(Dh,"isObject");o(ui,"every");o(Ic,"difference");o(Vh,"some");o($1,"indexOf");o(fre,"sortBy");o(ure,"zipObject");o(yr,"assign");o(u7,"assignNoOverwrite");o(ip,"defaults");o(B1,"groupBy");o(VA,"merge");o(Mn,"NOOP");o(wA,"IDENTITY");o(H1,"packArray");o(rp,"PRINT_ERROR");o(wh,"PRINT_WARNING");o(MA,"isES2015MapSupported");o(G1,"applyMixins");o(Mh,"toFastProperties");o(op,"peek");o(kh,"timer")});var jh=Ye((K1,Uh)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Uh=="object"&&Uh.exports?Uh.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:K1,function(){function e(){}o(e,"RegExpParser"),e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(E){this.idx=E.idx,this.input=E.input,this.groupIdx=E.groupIdx},e.prototype.pattern=function(E){this.idx=0,this.input=E,this.groupIdx=0,this.consumeChar("/");var O=this.disjunction();this.consumeChar("/");for(var F={type:"Flags",loc:{begin:this.idx,end:E.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(F,"global");break;case"i":s(F,"ignoreCase");break;case"m":s(F,"multiLine");break;case"u":s(F,"unicode");break;case"y":s(F,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:F,value:O,loc:this.loc(0)}},e.prototype.disjunction=function(){var E=[],O=this.idx;for(E.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),E.push(this.alternative());return{type:"Disjunction",value:E,loc:this.loc(O)}},e.prototype.alternative=function(){for(var E=[],O=this.idx;this.isTerm();)E.push(this.term());return{type:"Alternative",value:E,loc:this.loc(O)}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){var E=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(E)};case"$":return{type:"EndAnchor",loc:this.loc(E)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(E)};case"B":return{type:"NonWordBoundary",loc:this.loc(E)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");var O;switch(this.popChar()){case"=":O="Lookahead";break;case"!":O="NegativeLookahead";break}l(O);var F=this.disjunction();return this.consumeChar(")"),{type:O,value:F,loc:this.loc(E)}}u()},e.prototype.quantifier=function(E){var O,F=this.idx;switch(this.popChar()){case"*":O={atLeast:0,atMost:1/0};break;case"+":O={atLeast:1,atMost:1/0};break;case"?":O={atLeast:0,atMost:1};break;case"{":var U=this.integerIncludingZero();switch(this.popChar()){case"}":O={atLeast:U,atMost:U};break;case",":var K;this.isDigit()?(K=this.integerIncludingZero(),O={atLeast:U,atMost:K}):O={atLeast:U,atMost:1/0},this.consumeChar("}");break}if(E===!0&&O===void 0)return;l(O);break}if(!(E===!0&&O===void 0))return l(O),this.peekChar(0)==="?"?(this.consumeChar("?"),O.greedy=!1):O.greedy=!0,O.type="Quantifier",O.loc=this.loc(F),O},e.prototype.atom=function(){var E,O=this.idx;switch(this.peekChar()){case".":E=this.dotAll();break;case"\\":E=this.atomEscape();break;case"[":E=this.characterClass();break;case"(":E=this.group();break}return E===void 0&&this.isPatternCharacter()&&(E=this.patternCharacter()),l(E),E.loc=this.loc(O),this.isQuantifier()&&(E.quantifier=this.quantifier()),E},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[r(`
|
|
83
83
|
`),r("\r"),r("\u2028"),r("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){var E=this.positiveInteger();return{type:"GroupBackReference",value:E}},e.prototype.characterClassEscape=function(){var E,O=!1;switch(this.popChar()){case"d":E=g;break;case"D":E=g,O=!0;break;case"s":E=T;break;case"S":E=T,O=!0;break;case"w":E=m;break;case"W":E=m,O=!0;break}return l(E),{type:"Set",value:E,complement:O}},e.prototype.controlEscapeAtom=function(){var E;switch(this.popChar()){case"f":E=r("\f");break;case"n":E=r(`
|
|
84
84
|
`);break;case"r":E=r("\r");break;case"t":E=r(" ");break;case"v":E=r("\v");break}return l(E),{type:"Character",value:E}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var E=this.popChar();if(/[a-zA-Z]/.test(E)===!1)throw Error("Invalid ");var O=E.toUpperCase().charCodeAt(0)-64;return{type:"Character",value:O}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:r("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){var E=this.popChar();return{type:"Character",value:r(E)}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case`
|
|
85
85
|
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:var E=this.popChar();return{type:"Character",value:r(E)}}},e.prototype.characterClass=function(){var E=[],O=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),O=!0);this.isClassAtom();){var F=this.classAtom(),U=F.type==="Character";if(U&&this.isRangeDash()){this.consumeChar("-");var K=this.classAtom(),j=K.type==="Character";if(j){if(K.value<F.value)throw Error("Range out of order in character class");E.push({from:F.value,to:K.value})}else a(F.value,E),E.push(r("-")),a(K.value,E)}else a(F.value,E)}return this.consumeChar("]"),{type:"Set",complement:O,value:E}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case`
|
|
@@ -87,57 +87,57 @@ try {
|
|
|
87
87
|
`:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:r(E)}}},e.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},e.prototype.isRangeDash=function(){return this.peekChar()==="-"&&this.isClassAtom(1)},e.prototype.isDigit=function(){return n.test(this.peekChar(0))},e.prototype.isClassAtom=function(E){switch(E===void 0&&(E=0),this.peekChar(E)){case"]":case`
|
|
88
88
|
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},e.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},e.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!");default:return!1}},e.prototype.isQuantifier=function(){var E=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(E)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
|
|
89
89
|
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(E){for(var O="",F=0;F<E;F++){var U=this.popChar();if(t.test(U)===!1)throw Error("Expecting a HexDecimal digits");O+=U}var K=parseInt(O,16);return{type:"Character",value:K}},e.prototype.peekChar=function(E){return E===void 0&&(E=0),this.input[this.idx+E]},e.prototype.popChar=function(){var E=this.peekChar(0);return this.consumeChar(),E},e.prototype.consumeChar=function(E){if(E!==void 0&&this.input[this.idx]!==E)throw Error("Expected: '"+E+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++},e.prototype.loc=function(E){return{begin:E,end:this.idx}};var t=/[0-9a-fA-F]/,n=/[0-9]/,i=/[1-9]/;function r(E){return E.charCodeAt(0)}o(r,"cc");function a(E,O){E.length!==void 0?E.forEach(function(F){O.push(F)}):O.push(E)}o(a,"insertToSet");function s(E,O){if(E[O]===!0)throw"duplicate flag "+O;E[O]=!0}o(s,"addFlag");function l(E){if(E===void 0)throw Error("Internal Error - Should never get here!")}o(l,"ASSERT_EXISTS");function u(){throw Error("Internal Error - Should never get here!")}o(u,"ASSERT_NEVER_REACH_HERE");var p,g=[];for(p=r("0");p<=r("9");p++)g.push(p);var m=[r("_")].concat(g);for(p=r("a");p<=r("z");p++)m.push(p);for(p=r("A");p<=r("Z");p++)m.push(p);var T=[r(" "),r("\f"),r(`
|
|
90
|
-
`),r("\r"),r(" "),r("\v"),r(" "),r("\xA0"),r("\u1680"),r("\u2000"),r("\u2001"),r("\u2002"),r("\u2003"),r("\u2004"),r("\u2005"),r("\u2006"),r("\u2007"),r("\u2008"),r("\u2009"),r("\u200A"),r("\u2028"),r("\u2029"),r("\u202F"),r("\u205F"),r("\u3000"),r("\uFEFF")];function A(){}return o(A,"BaseRegExpVisitor"),A.prototype.visitChildren=function(E){for(var O in E){var F=E[O];E.hasOwnProperty(O)&&(F.type!==void 0?this.visit(F):Array.isArray(F)&&F.forEach(function(U){this.visit(U)},this))}},A.prototype.visit=function(E){switch(E.type){case"Pattern":this.visitPattern(E);break;case"Flags":this.visitFlags(E);break;case"Disjunction":this.visitDisjunction(E);break;case"Alternative":this.visitAlternative(E);break;case"StartAnchor":this.visitStartAnchor(E);break;case"EndAnchor":this.visitEndAnchor(E);break;case"WordBoundary":this.visitWordBoundary(E);break;case"NonWordBoundary":this.visitNonWordBoundary(E);break;case"Lookahead":this.visitLookahead(E);break;case"NegativeLookahead":this.visitNegativeLookahead(E);break;case"Character":this.visitCharacter(E);break;case"Set":this.visitSet(E);break;case"Group":this.visitGroup(E);break;case"GroupBackReference":this.visitGroupBackReference(E);break;case"Quantifier":this.visitQuantifier(E);break}this.visitChildren(E)},A.prototype.visitPattern=function(E){},A.prototype.visitFlags=function(E){},A.prototype.visitDisjunction=function(E){},A.prototype.visitAlternative=function(E){},A.prototype.visitStartAnchor=function(E){},A.prototype.visitEndAnchor=function(E){},A.prototype.visitWordBoundary=function(E){},A.prototype.visitNonWordBoundary=function(E){},A.prototype.visitLookahead=function(E){},A.prototype.visitNegativeLookahead=function(E){},A.prototype.visitCharacter=function(E){},A.prototype.visitSet=function(E){},A.prototype.visitGroup=function(E){},A.prototype.visitGroupBackReference=function(E){},A.prototype.visitQuantifier=function(E){},{RegExpParser:e,BaseRegExpVisitor:A,VERSION:"0.5.0"}})});function
|
|
90
|
+
`),r("\r"),r(" "),r("\v"),r(" "),r("\xA0"),r("\u1680"),r("\u2000"),r("\u2001"),r("\u2002"),r("\u2003"),r("\u2004"),r("\u2005"),r("\u2006"),r("\u2007"),r("\u2008"),r("\u2009"),r("\u200A"),r("\u2028"),r("\u2029"),r("\u202F"),r("\u205F"),r("\u3000"),r("\uFEFF")];function A(){}return o(A,"BaseRegExpVisitor"),A.prototype.visitChildren=function(E){for(var O in E){var F=E[O];E.hasOwnProperty(O)&&(F.type!==void 0?this.visit(F):Array.isArray(F)&&F.forEach(function(U){this.visit(U)},this))}},A.prototype.visit=function(E){switch(E.type){case"Pattern":this.visitPattern(E);break;case"Flags":this.visitFlags(E);break;case"Disjunction":this.visitDisjunction(E);break;case"Alternative":this.visitAlternative(E);break;case"StartAnchor":this.visitStartAnchor(E);break;case"EndAnchor":this.visitEndAnchor(E);break;case"WordBoundary":this.visitWordBoundary(E);break;case"NonWordBoundary":this.visitNonWordBoundary(E);break;case"Lookahead":this.visitLookahead(E);break;case"NegativeLookahead":this.visitNegativeLookahead(E);break;case"Character":this.visitCharacter(E);break;case"Set":this.visitSet(E);break;case"Group":this.visitGroup(E);break;case"GroupBackReference":this.visitGroupBackReference(E);break;case"Quantifier":this.visitQuantifier(E);break}this.visitChildren(E)},A.prototype.visitPattern=function(E){},A.prototype.visitFlags=function(E){},A.prototype.visitDisjunction=function(E){},A.prototype.visitAlternative=function(E){},A.prototype.visitStartAnchor=function(E){},A.prototype.visitEndAnchor=function(E){},A.prototype.visitWordBoundary=function(E){},A.prototype.visitNonWordBoundary=function(E){},A.prototype.visitLookahead=function(E){},A.prototype.visitNegativeLookahead=function(E){},A.prototype.visitCharacter=function(E){},A.prototype.visitSet=function(E){},A.prototype.visitGroup=function(E){},A.prototype.visitGroupBackReference=function(E){},A.prototype.visitQuantifier=function(E){},{RegExpParser:e,BaseRegExpVisitor:A,VERSION:"0.5.0"}})});function Ul(e){var t=e.toString();if($h.hasOwnProperty(t))return $h[t];var n=p7.pattern(t);return $h[t]=n,n}function Q1(){$h={}}var X1,$h,p7,Bh=qe(()=>{X1=ne(jh()),$h={},p7=new X1.RegExpParser;o(Ul,"getRegExpAst");o(Q1,"clearRegExpParserCache")});function z1(e,t){t===void 0&&(t=!1);try{var n=Ul(e),i=kA(n.value,{},n.flags.ignoreCase);return i}catch(a){if(a.message===Y1)t&&wh(""+ap+(" Unable to optimize: < "+e.toString()+` >
|
|
91
91
|
`)+` Complement Sets cannot be automatically optimized.
|
|
92
92
|
This will disable the lexer's first char optimizations.
|
|
93
93
|
See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{var r="";t&&(r=`
|
|
94
94
|
This will disable the lexer's first char optimizations.
|
|
95
|
-
See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),
|
|
95
|
+
See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),rp(ap+`
|
|
96
96
|
`+(" Failed parsing: < "+e.toString()+` >
|
|
97
|
-
`)+(" Using the regexp-to-ast library version: "+
|
|
98
|
-
`)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function
|
|
99
|
-
`;o(
|
|
100
|
-
`],tracer:o(function(K,j){return j()},"tracer")});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){
|
|
97
|
+
`)+(" Using the regexp-to-ast library version: "+Gh.VERSION+`
|
|
98
|
+
`)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function kA(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)kA(e.value[i],t,n);break;case"Alternative":for(var r=e.value,i=0;i<r.length;i++){var a=r[i];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var s=a;switch(s.type){case"Character":Hh(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(Y1);ye(s.value,function(p){if(typeof p=="number")Hh(p,t,n);else{var g=p;if(n===!0)for(var m=g.from;m<=g.to;m++)Hh(m,t,n);else{for(var m=g.from;m<=g.to&&m<jl;m++)Hh(m,t,n);if(g.to>=jl)for(var T=g.from>=jl?g.from:jl,A=g.to,E=jo(T),O=jo(A),F=E;F<=O;F++)t[F]=F}}});break;case"Group":kA(s.value,t,n);break;default:throw Error("Non Exhaustive Match")}var l=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&UA(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Vn(t)}function Hh(e,t,n){var i=jo(e);t[i]=i,n===!0&&g7(e,t)}function g7(e,t){var n=String.fromCharCode(e),i=n.toUpperCase();if(i!==n){var r=jo(i.charCodeAt(0));t[r]=r}else{var a=n.toLowerCase();if(a!==n){var r=jo(a.charCodeAt(0));t[r]=r}}}function q1(e,t){return va(e.value,function(n){if(typeof n=="number")return Vt(t,n);var i=n;return va(t,function(r){return i.from<=r&&r<=i.to})!==void 0})}function UA(e){return e.quantifier&&e.quantifier.atLeast===0?!0:e.value?fi(e.value)?ui(e.value,UA):UA(e.value):!1}function Wh(e,t){if(t instanceof RegExp){var n=Ul(t),i=new m7(e);return i.visit(n),i.found}else return va(t,function(r){return Vt(e,r.charCodeAt(0))})!==void 0}var Gh,d7,Y1,ap,m7,J1=qe(()=>{Gh=ne(jh());vt();Bh();jA();d7=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Y1="Complement Sets are not supported for first char optimization",ap=`Unable to use "first char" lexer optimizations:
|
|
99
|
+
`;o(z1,"getOptimizedStartCodesIndices");o(kA,"firstCharOptimizedIndices");o(Hh,"addOptimizedIdxToResult");o(g7,"handleIgnoreCase");o(q1,"findCode");o(UA,"isWholeOptional");m7=function(e){d7(t,e);function t(n){var i=e.call(this)||this;return i.targetCharCodes=n,i.found=!1,i}return o(t,"CharCodeFinder"),t.prototype.visitChildren=function(n){if(this.found!==!0){switch(n.type){case"Lookahead":this.visitLookahead(n);return;case"NegativeLookahead":this.visitNegativeLookahead(n);return}e.prototype.visitChildren.call(this,n)}},t.prototype.visitCharacter=function(n){Vt(this.targetCharCodes,n.value)&&(this.found=!0)},t.prototype.visitSet=function(n){n.complement?q1(n,this.targetCharCodes)===void 0&&(this.found=!0):q1(n,this.targetCharCodes)!==void 0&&(this.found=!0)},t}(Gh.BaseRegExpVisitor);o(Wh,"canMatchCharCode")});function n_(e,t){t=ip(t,{useSticky:HA,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
|
|
100
|
+
`],tracer:o(function(K,j){return j()},"tracer")});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){_7()});var i;n("Reject Lexer.NA",function(){i=ya(e,function(K){return K[$o]===Mi.NA})});var r=!1,a;n("Transform Patterns",function(){r=!1,a=ue(i,function(K){var j=K[$o];if(po(j)){var ae=j.source;return ae.length===1&&ae!=="^"&&ae!=="$"&&ae!=="."&&!j.ignoreCase?ae:ae.length===2&&ae[0]==="\\"&&!Vt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],ae[1])?ae[1]:t.useSticky?e_(j):Z1(j)}else{if(uo(j))return r=!0,{exec:j};if(Ie(j,"exec"))return r=!0,j;if(typeof j=="string"){if(j.length===1)return j;var Z=j.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),re=new RegExp(Z);return t.useSticky?e_(re):Z1(re)}else throw Error("non exhaustive match")}})});var s,l,u,p,g;n("misc mapping",function(){s=ue(i,function(K){return K.tokenTypeIdx}),l=ue(i,function(K){var j=K.GROUP;if(j!==Mi.SKIPPED){if(Br(j))return j;if(Pi(j))return!1;throw Error("non exhaustive match")}}),u=ue(i,function(K){var j=K.LONGER_ALT;if(j){var ae=$1(i,j);return ae}}),p=ue(i,function(K){return K.PUSH_MODE}),g=ue(i,function(K){return Ie(K,"POP_MODE")})});var m;n("Line Terminator Handling",function(){var K=f_(t.lineTerminatorCharacters);m=ue(i,function(j){return!1}),t.positionTracking!=="onlyOffset"&&(m=ue(i,function(j){if(Ie(j,"LINE_BREAKS"))return j.LINE_BREAKS;if(l_(j,K)===!1)return Wh(K,j.PATTERN)}))});var T,A,E,O;n("Misc Mapping #2",function(){T=ue(i,s_),A=ue(a,R7),E=un(i,function(K,j){var ae=j.GROUP;return Br(ae)&&ae!==Mi.SKIPPED&&(K[ae]=[]),K},{}),O=ue(a,function(K,j){return{pattern:a[j],longerAlt:u[j],canLineTerminator:m[j],isCustom:T[j],short:A[j],group:l[j],push:p[j],pop:g[j],tokenTypeIdx:s[j],tokenType:i[j]}})});var F=!0,U=[];return t.safeMode||n("First Char Optimization",function(){U=un(i,function(K,j,ae){if(typeof j.PATTERN=="string"){var Z=j.PATTERN.charCodeAt(0),re=jo(Z);$A(K,re,O[ae])}else if(fi(j.START_CHARS_HINT)){var Pe;ye(j.START_CHARS_HINT,function(ut){var yt=typeof ut=="string"?ut.charCodeAt(0):ut,je=jo(yt);Pe!==je&&(Pe=je,$A(K,je,O[ae]))})}else if(po(j.PATTERN))if(j.PATTERN.unicode)F=!1,t.ensureOptimizations&&rp(""+ap+(" Unable to analyze < "+j.PATTERN.toString()+` > pattern.
|
|
101
101
|
`)+` The regexp unicode flag is not currently supported by the regexp-to-ast library.
|
|
102
102
|
This will disable the lexer's first char optimizations.
|
|
103
|
-
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{var _=
|
|
103
|
+
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{var _=z1(j.PATTERN,t.ensureOptimizations);at(_)&&(F=!1),ye(_,function(ut){$A(K,ut,O[ae])})}else t.ensureOptimizations&&rp(""+ap+(" TokenType: <"+j.name+`> is using a custom token pattern without providing <start_chars_hint> parameter.
|
|
104
104
|
`)+` This will disable the lexer's first char optimizations.
|
|
105
|
-
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),F=!1;return K},[])}),n("ArrayPacking",function(){U=
|
|
105
|
+
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),F=!1;return K},[])}),n("ArrayPacking",function(){U=H1(U)}),{emptyGroups:E,patternIdxToConfig:O,charCodeToPatternIdxToConfig:U,hasCustom:r,canBeOptimized:F}}function i_(e,t){var n=[],i=y7(e);n=n.concat(i.errors);var r=v7(i.valid),a=r.valid;return n=n.concat(r.errors),n=n.concat(h7(a)),n=n.concat(x7(a)),n=n.concat(I7(a,t)),n=n.concat(O7(a)),n}function h7(e){var t=[],n=Hr(e,function(i){return po(i[$o])});return t=t.concat(E7(n)),t=t.concat(S7(n)),t=t.concat(P7(n)),t=t.concat(C7(n)),t=t.concat(b7(n)),t}function y7(e){var t=Hr(e,function(r){return!Ie(r,$o)}),n=ue(t,function(r){return{message:"Token Type: ->"+r.name+"<- missing static 'PATTERN' property",type:pn.MISSING_PATTERN,tokenTypes:[r]}}),i=Ic(e,t);return{errors:n,valid:i}}function v7(e){var t=Hr(e,function(r){var a=r[$o];return!po(a)&&!uo(a)&&!Ie(a,"exec")&&!Br(a)}),n=ue(t,function(r){return{message:"Token Type: ->"+r.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:pn.INVALID_PATTERN,tokenTypes:[r]}}),i=Ic(e,t);return{errors:n,valid:i}}function E7(e){var t=function(r){t_(a,r);function a(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return o(a,"EndAnchorFinder"),a.prototype.visitEndAnchor=function(s){this.found=!0},a}(BA.BaseRegExpVisitor),n=Hr(e,function(r){var a=r[$o];try{var s=Ul(a),l=new t;return l.visit(s),l.found}catch{return T7.test(a.source)}}),i=ue(n,function(r){return{message:`Unexpected RegExp Anchor Error:
|
|
106
106
|
Token Type: ->`+r.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
|
|
107
|
-
See sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:
|
|
107
|
+
See sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:pn.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function b7(e){var t=Hr(e,function(i){var r=i[$o];return r.test("")}),n=ue(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' must not match an empty string",type:pn.EMPTY_MATCH_PATTERN,tokenTypes:[i]}});return n}function S7(e){var t=function(r){t_(a,r);function a(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return o(a,"StartAnchorFinder"),a.prototype.visitStartAnchor=function(s){this.found=!0},a}(BA.BaseRegExpVisitor),n=Hr(e,function(r){var a=r[$o];try{var s=Ul(a),l=new t;return l.visit(s),l.found}catch{return A7.test(a.source)}}),i=ue(n,function(r){return{message:`Unexpected RegExp Anchor Error:
|
|
108
108
|
Token Type: ->`+r.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
|
|
109
|
-
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:
|
|
109
|
+
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:pn.SOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function P7(e){var t=Hr(e,function(i){var r=i[$o];return r instanceof RegExp&&(r.multiline||r.global)}),n=ue(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:pn.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}});return n}function C7(e){var t=[],n=ue(e,function(a){return un(e,function(s,l){return a.PATTERN.source===l.PATTERN.source&&!Vt(t,l)&&l.PATTERN!==Mi.NA&&(t.push(l),s.push(l)),s},[])});n=Ta(n);var i=Hr(n,function(a){return a.length>1}),r=ue(i,function(a){var s=ue(a,function(u){return u.name}),l=Si(a).PATTERN;return{message:"The same RegExp pattern ->"+l+"<-"+("has been used in all of the following Token Types: "+s.join(", ")+" <-"),type:pn.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}});return r}function x7(e){var t=Hr(e,function(i){if(!Ie(i,"GROUP"))return!1;var r=i.GROUP;return r!==Mi.SKIPPED&&r!==Mi.NA&&!Br(r)}),n=ue(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:pn.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}});return n}function I7(e,t){var n=Hr(e,function(r){return r.PUSH_MODE!==void 0&&!Vt(t,r.PUSH_MODE)}),i=ue(n,function(r){var a="Token Type: ->"+r.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+r.PUSH_MODE+"<-which does not exist";return{message:a,type:pn.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[r]}});return i}function O7(e){var t=[],n=un(e,function(i,r,a){var s=r.PATTERN;return s===Mi.NA||(Br(s)?i.push({str:s,idx:a,tokenType:r}):po(s)&&L7(s)&&i.push({str:s.source,idx:a,tokenType:r})),i},[]);return ye(e,function(i,r){ye(n,function(a){var s=a.str,l=a.idx,u=a.tokenType;if(r<l&&N7(s,i.PATTERN)){var p="Token: ->"+u.name+`<- can never be matched.
|
|
110
110
|
`+("Because it appears AFTER the Token Type ->"+i.name+"<-")+`in the lexer's definition.
|
|
111
|
-
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:p,type:
|
|
112
|
-
`,type:
|
|
113
|
-
`,type:
|
|
114
|
-
`,type:
|
|
115
|
-
`),type:
|
|
111
|
+
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:p,type:pn.UNREACHABLE_PATTERN,tokenTypes:[i,u]})}})}),t}function N7(e,t){if(po(t)){var n=t.exec(e);return n!==null&&n.index===0}else{if(uo(t))return t(e,0,[],{});if(Ie(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function L7(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return va(t,function(n){return e.source.indexOf(n)!==-1})===void 0}function Z1(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function e_(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function r_(e,t,n){var i=[];return Ie(e,gs)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+gs+`> property in its definition
|
|
112
|
+
`,type:pn.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Ie(e,Kh)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Kh+`> property in its definition
|
|
113
|
+
`,type:pn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Ie(e,Kh)&&Ie(e,gs)&&!Ie(e.modes,e.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+gs+": <"+e.defaultMode+`>which does not exist
|
|
114
|
+
`,type:pn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Ie(e,Kh)&&ye(e.modes,function(r,a){ye(r,function(s,l){Pi(s)&&i.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+("<"+a+"> at index: <"+l+`>
|
|
115
|
+
`),type:pn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function o_(e,t,n){var i=[],r=!1,a=Ta(Ln(U1(e.modes,function(u){return u}))),s=ya(a,function(u){return u[$o]===Mi.NA}),l=f_(n);return t&&ye(s,function(u){var p=l_(u,l);if(p!==!1){var g=F7(u,p),m={message:g,type:p.issue,tokenType:u};i.push(m)}else Ie(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(r=!0):Wh(l,u.PATTERN)&&(r=!0)}),t&&!r&&i.push({message:`Warning: No LINE_BREAKS Found.
|
|
116
116
|
This Lexer has been defined to track line and column information,
|
|
117
117
|
But none of the Token Types can be identified as matching a line terminator.
|
|
118
118
|
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
|
|
119
|
-
for details.`,type:
|
|
119
|
+
for details.`,type:pn.NO_LINE_BREAKS_FLAGS}),i}function a_(e){var t={},n=wi(e);return ye(n,function(i){var r=e[i];if(fi(r))t[i]=[];else throw Error("non exhaustive match")}),t}function s_(e){var t=e.PATTERN;if(po(t))return!1;if(uo(t))return!0;if(Ie(t,"exec"))return!0;if(Br(t))return!1;throw Error("non exhaustive match")}function R7(e){return Br(e)&&e.length===1?e.charCodeAt(0):!1}function l_(e,t){if(Ie(e,"LINE_BREAKS"))return!1;if(po(e.PATTERN)){try{Wh(t,e.PATTERN)}catch(n){return{issue:pn.IDENTIFY_TERMINATOR,errMsg:n.message}}return!1}else{if(Br(e.PATTERN))return!1;if(s_(e))return{issue:pn.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function F7(e,t){if(t.issue===pn.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
|
|
120
120
|
`+(" The problem is in the <"+e.name+`> Token Type
|
|
121
121
|
`)+(" Root cause: "+t.errMsg+`.
|
|
122
|
-
`)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(t.issue===
|
|
122
|
+
`)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(t.issue===pn.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
|
|
123
123
|
`+(" The problem is in the <"+e.name+`> Token Type
|
|
124
|
-
`)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function
|
|
125
|
-
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:
|
|
126
|
-
a boolean 2nd argument is no longer supported`);this.config=
|
|
127
|
-
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(n.safeMode&&n.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');i.trackStartLines=/full|onlyStart/i.test(i.config.positionTracking),i.trackEndLines=/full/i.test(i.config.positionTracking),
|
|
124
|
+
`)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function f_(e){var t=ue(e,function(n){return Br(n)&&n.length>0?n.charCodeAt(0):n});return t}function $A(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function jo(e){return e<jl?e:Xh[e]}function _7(){if(at(Xh)){Xh=new Array(65536);for(var e=0;e<65536;e++)Xh[e]=e>255?255+~~(e/255):e}}var BA,t_,$o,gs,Kh,HA,T7,A7,c_,jl,Xh,jA=qe(()=>{BA=ne(jh());sp();vt();J1();Bh();t_=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),$o="PATTERN",gs="defaultMode",Kh="modes",HA=typeof new RegExp("(?:)").sticky=="boolean";o(n_,"analyzeTokenTypes");o(i_,"validatePatterns");o(h7,"validateRegExpPattern");o(y7,"findMissingPatterns");o(v7,"findInvalidPatterns");T7=/[^\\][\$]/;o(E7,"findEndOfInputAnchor");o(b7,"findEmptyMatchRegExps");A7=/[^\\[][\^]|^\^/;o(S7,"findStartOfInputAnchor");o(P7,"findUnsupportedFlags");o(C7,"findDuplicatePatterns");o(x7,"findInvalidGroupType");o(I7,"findModesThatDoNotExist");o(O7,"findUnreachablePatterns");o(N7,"testTokenType");o(L7,"noMetaChar");o(Z1,"addStartOfInput");o(e_,"addStickyFlag");o(r_,"performRuntimeChecks");o(o_,"performWarningRuntimeChecks");o(a_,"cloneEmptyGroups");o(s_,"isCustomPattern");o(R7,"isShortPattern");c_={test:o(function(e){for(var t=e.length,n=this.lastIndex;n<t;n++){var i=e.charCodeAt(n);if(i===10)return this.lastIndex=n+1,!0;if(i===13)return e.charCodeAt(n+1)===10?this.lastIndex=n+2:this.lastIndex=n+1,!0}return!1},"test"),lastIndex:0};o(l_,"checkLineBreaksIssues");o(F7,"buildLineBreakIssueMessage");o(f_,"getCharCodes");o($A,"addToMapOfArrays");jl=256;o(jo,"charCodeToOptimizedIndex");Xh=[];o(_7,"initCharCodeToOptimizedIndexMap")});function Oc(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}function $l(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function Ea(e){var t=D7(e);V7(t),M7(t),w7(t),ye(t,function(n){n.isParent=n.categoryMatches.length>0})}function D7(e){for(var t=An(e),n=e,i=!0;i;){n=Ta(Ln(ue(n,function(a){return a.CATEGORIES})));var r=Ic(n,t);t=t.concat(r),at(r)?i=!1:n=r}return t}function V7(e){ye(e,function(t){GA(t)||(d_[u_]=t,t.tokenTypeIdx=u_++),p_(t)&&!fi(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),p_(t)||(t.CATEGORIES=[]),k7(t)||(t.categoryMatches=[]),U7(t)||(t.categoryMatchesMap={})})}function w7(e){ye(e,function(t){t.categoryMatches=[],ye(t.categoryMatchesMap,function(n,i){t.categoryMatches.push(d_[i].tokenTypeIdx)})})}function M7(e){ye(e,function(t){g_([],t)})}function g_(e,t){ye(e,function(n){t.categoryMatchesMap[n.tokenTypeIdx]=!0}),ye(t.CATEGORIES,function(n){var i=e.concat(t);Vt(i,n)||g_(i,n)})}function GA(e){return Ie(e,"tokenTypeIdx")}function p_(e){return Ie(e,"CATEGORIES")}function k7(e){return Ie(e,"categoryMatches")}function U7(e){return Ie(e,"categoryMatchesMap")}function m_(e){return Ie(e,"tokenTypeIdx")}var u_,d_,Bl=qe(()=>{vt();o(Oc,"tokenStructuredMatcher");o($l,"tokenStructuredMatcherNoCategories");u_=1,d_={};o(Ea,"augmentTokenTypes");o(D7,"expandCategories");o(V7,"assignTokenDefaultProps");o(w7,"assignCategoriesTokensProp");o(M7,"assignCategoriesMapProp");o(g_,"singleAssignCategoriesToksMap");o(GA,"hasShortKeyProperty");o(p_,"hasCategoriesProperty");o(k7,"hasExtendingTokensTypesProperty");o(U7,"hasExtendingTokensTypesMapProperty");o(m_,"isTokenType")});var Qh,WA=qe(()=>{Qh={buildUnableToPopLexerModeMessage:o(function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},"buildUnableToPopLexerModeMessage"),buildUnexpectedCharactersMessage:o(function(e,t,n,i,r){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+","+(" skipped "+n+" characters.")},"buildUnexpectedCharactersMessage")}});var pn,cp,Mi,sp=qe(()=>{jA();vt();Bl();WA();Bh();(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"})(pn||(pn={}));cp={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
|
|
125
|
+
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Qh,traceInitPerf:!1,skipValidations:!1};Object.freeze(cp);Mi=function(){function e(t,n){var i=this;if(n===void 0&&(n=cp),this.lexerDefinition=t,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},typeof n=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
|
|
126
|
+
a boolean 2nd argument is no longer supported`);this.config=VA(cp,n);var r=this.config.traceInitPerf;r===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof r=="number"&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",function(){var a,s=!0;i.TRACE_INIT("Lexer Config handling",function(){if(i.config.lineTerminatorsPattern===cp.lineTerminatorsPattern)i.config.lineTerminatorsPattern=c_;else if(i.config.lineTerminatorCharacters===cp.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
|
|
127
|
+
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(n.safeMode&&n.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');i.trackStartLines=/full|onlyStart/i.test(i.config.positionTracking),i.trackEndLines=/full/i.test(i.config.positionTracking),fi(t)?(a={modes:{}},a.modes[gs]=An(t),a[gs]=gs):(s=!1,a=ds(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(r_(a,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat(o_(a,i.trackStartLines,i.config.lineTerminatorCharacters))})),a.modes=a.modes?a.modes:{},ye(a.modes,function(g,m){a.modes[m]=ya(g,function(T){return Pi(T)})});var l=wi(a.modes);if(ye(a.modes,function(g,m){i.TRACE_INIT("Mode: <"+m+"> processing",function(){if(i.modes.push(m),i.config.skipValidations===!1&&i.TRACE_INIT("validatePatterns",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(i_(g,l))}),at(i.lexerDefinitionErrors)){Ea(g);var T;i.TRACE_INIT("analyzeTokenTypes",function(){T=n_(g,{lineTerminatorCharacters:i.config.lineTerminatorCharacters,positionTracking:n.positionTracking,ensureOptimizations:n.ensureOptimizations,safeMode:n.safeMode,tracer:i.TRACE_INIT.bind(i)})}),i.patternIdxToConfig[m]=T.patternIdxToConfig,i.charCodeToPatternIdxToConfig[m]=T.charCodeToPatternIdxToConfig,i.emptyGroups=VA(i.emptyGroups,T.emptyGroups),i.hasCustom=T.hasCustom||i.hasCustom,i.canModeBeOptimized[m]=T.canBeOptimized}})}),i.defaultMode=a.defaultMode,!at(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling){var u=ue(i.lexerDefinitionErrors,function(g){return g.message}),p=u.join(`-----------------------
|
|
128
128
|
`);throw new Error(`Errors detected in definition of Lexer:
|
|
129
|
-
`+p)}ye(i.lexerDefinitionWarning,function(g){
|
|
129
|
+
`+p)}ye(i.lexerDefinitionWarning,function(g){wh(g.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(HA?(i.chopInput=wA,i.match=i.matchWithTest):(i.updateLastIndex=Mn,i.match=i.matchWithExec),s&&(i.handleModes=Mn),i.trackStartLines===!1&&(i.computeNewColumn=wA),i.trackEndLines===!1&&(i.updateTokenEndLineColumnLocation=Mn),/full/i.test(i.config.positionTracking))i.createTokenInstance=i.createFullToken;else if(/onlyStart/i.test(i.config.positionTracking))i.createTokenInstance=i.createStartOnlyToken;else if(/onlyOffset/i.test(i.config.positionTracking))i.createTokenInstance=i.createOffsetOnlyToken;else throw Error('Invalid <positionTracking> config option: "'+i.config.positionTracking+'"');i.hasCustom?(i.addToken=i.addTokenUsingPush,i.handlePayload=i.handlePayloadWithCustom):(i.addToken=i.addTokenUsingMemberAccess,i.handlePayload=i.handlePayloadNoCustom)}),i.TRACE_INIT("Failed Optimization Warnings",function(){var g=un(i.canModeBeOptimized,function(m,T,A){return T===!1&&m.push(A),m},[]);if(n.ensureOptimizations&&!at(g))throw Error("Lexer Modes: < "+g.join(", ")+` > cannot be optimized.
|
|
130
130
|
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
|
|
131
|
-
Or inspect the console log for details on how to resolve these issues.`)}),i.TRACE_INIT("clearRegExpParserCache",function(){
|
|
131
|
+
Or inspect the console log for details on how to resolve these issues.`)}),i.TRACE_INIT("clearRegExpParserCache",function(){Q1()}),i.TRACE_INIT("toFastProperties",function(){Mh(i)})})}return o(e,"Lexer"),e.prototype.tokenize=function(t,n){if(n===void 0&&(n=this.defaultMode),!at(this.lexerDefinitionErrors)){var i=ue(this.lexerDefinitionErrors,function(s){return s.message}),r=i.join(`-----------------------
|
|
132
132
|
`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
|
|
133
|
-
`+r)}var a=this.tokenizeInternal(t,n);return a},e.prototype.tokenizeInternal=function(t,n){var i=this,r,a,s,l,u,p,g,m,T,A,E,O,F,U,K,j=t,ae=j.length,Z=0,re=0,Pe=this.hasCustom?0:Math.floor(t.length/10),_=new Array(Pe),
|
|
134
|
-
See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Ie(e,m_)&&(n.CATEGORIES=e[m_]),Ta([n]),Ie(e,h_)&&(n.LABEL=e[h_]),Ie(e,y_)&&(n.GROUP=e[y_]),Ie(e,T_)&&(n.POP_MODE=e[T_]),Ie(e,v_)&&(n.PUSH_MODE=e[v_]),Ie(e,E_)&&(n.LONGER_ALT=e[E_]),Ie(e,b_)&&(n.LINE_BREAKS=e[b_]),Ie(e,A_)&&(n.START_CHARS_HINT=e[A_]),n}function gs(e,t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:i,startLine:r,endLine:a,startColumn:s,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function P_(e,t){return Ic(e,t)}var U7,m_,h_,y_,v_,T_,E_,b_,A_,Hr,ms=qe(()=>{yt();ap();$l();o($o,"tokenLabel");o(S_,"tokenName");o(WA,"hasTokenLabel");U7="parent",m_="categories",h_="label",y_="group",v_="push_mode",T_="pop_mode",E_="longer_alt",b_="line_breaks",A_="start_chars_hint";o(cp,"createToken");o(j7,"createTokenInternal");Hr=cp({name:"EOF",pattern:Mi.NA});Ta([Hr]);o(gs,"createTokenInstance");o(P_,"tokenMatcher")});function Qh(e){return ue(e,Bl)}function Bl(e){function t(r){return ue(r,Bl)}if(o(t,"convertDefinition"),e instanceof nn)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof zt)return{type:"Alternative",definition:t(e.definition)};if(e instanceof rn)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Ln)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Rn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Bl(new mt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof An)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Bl(new mt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Ot)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Sn)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof mt){var n={type:"Terminal",name:e.terminalType.name,label:$o(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=uo(i)?i.source:i),n}else{if(e instanceof yr)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var Ea,po,nn,yr,zt,rn,Ln,Rn,Ot,An,Sn,mt,wi=qe(()=>{yt();ms();Ea=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),po=function(){function e(t){this._definition=t}return o(e,"AbstractProduction"),Object.defineProperty(e.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(t){this._definition=t},"set"),enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this),ye(this.definition,function(n){n.accept(t)})},e}(),nn=function(e){Ea(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"NonTerminal"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},"get"),set:o(function(n){},"set"),enumerable:!1,configurable:!0}),t.prototype.accept=function(n){n.visit(this)},t}(po),yr=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t}(po),zt=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t}(po),rn=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"Option"),t}(po),Ln=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t}(po),Rn=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t}(po),Ot=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t}(po),An=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t}(po),Sn=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,hr(i,mr(n,function(r){return r!==void 0})),i}return o(t,"Alternation"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(n){this._definition=n},"set"),enumerable:!1,configurable:!0}),t}(po),mt=function(){function e(t){this.idx=1,hr(this,mr(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();o(Qh,"serializeGrammar");o(Bl,"serializeProduction")});function x_(e,t,n){var i=[new rn({definition:[new mt({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Oc,qh=qe(()=>{yt();wi();Oc=function(){function e(){}return o(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),ye(t.definition,function(r,a){var s=Vn(t.definition,a+1);if(r instanceof nn)i.walkProdRef(r,s,n);else if(r instanceof mt)i.walkTerminal(r,s,n);else if(r instanceof zt)i.walkFlat(r,s,n);else if(r instanceof rn)i.walkOption(r,s,n);else if(r instanceof Ln)i.walkAtLeastOne(r,s,n);else if(r instanceof Rn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof An)i.walkManySep(r,s,n);else if(r instanceof Ot)i.walkMany(r,s,n);else if(r instanceof Sn)i.walkOr(r,s,n);else throw Error("non exhaustive match")})},e.prototype.walkTerminal=function(t,n,i){},e.prototype.walkProdRef=function(t,n,i){},e.prototype.walkFlat=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkOption=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkAtLeastOne=function(t,n,i){var r=[new rn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=x_(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new rn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=x_(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,a=n.concat(i);ye(t.definition,function(s){var l=new zt({definition:[s]});r.walk(l,a)})},e}();o(x_,"restForRepetitionWithSeparator")});var Gr,Hl=qe(()=>{wi();Gr=function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case nn:return this.visitNonTerminal(n);case zt:return this.visitAlternative(n);case rn:return this.visitOption(n);case Ln:return this.visitRepetitionMandatory(n);case Rn:return this.visitRepetitionMandatoryWithSeparator(n);case An:return this.visitRepetitionWithSeparator(n);case Ot:return this.visitRepetition(n);case Sn:return this.visitAlternation(n);case mt:return this.visitTerminal(n);case yr:return this.visitRule(n);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(t){},e.prototype.visitAlternative=function(t){},e.prototype.visitOption=function(t){},e.prototype.visitRepetition=function(t){},e.prototype.visitRepetitionMandatory=function(t){},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){},e.prototype.visitRepetitionWithSeparator=function(t){},e.prototype.visitAlternation=function(t){},e.prototype.visitTerminal=function(t){},e.prototype.visitRule=function(t){},e}()});function C_(e){return e instanceof zt||e instanceof rn||e instanceof Ot||e instanceof Ln||e instanceof Rn||e instanceof An||e instanceof mt||e instanceof yr}function Gl(e,t){t===void 0&&(t=[]);var n=e instanceof rn||e instanceof Ot||e instanceof An;return n?!0:e instanceof Sn?Dh(e.definition,function(i){return Gl(i,t)}):e instanceof nn&&Dt(t,e)?!1:e instanceof po?(e instanceof nn&&t.push(e),fi(e.definition,function(i){return Gl(i,t)})):!1}function I_(e){return e instanceof Sn}function vr(e){if(e instanceof nn)return"SUBRULE";if(e instanceof rn)return"OPTION";if(e instanceof Sn)return"OR";if(e instanceof Ln)return"AT_LEAST_ONE";if(e instanceof Rn)return"AT_LEAST_ONE_SEP";if(e instanceof An)return"MANY_SEP";if(e instanceof Ot)return"MANY";if(e instanceof mt)return"CONSUME";throw Error("non exhaustive match")}function O_(e){Yh.reset(),e.accept(Yh);var t=Yh.dslMethods;return Yh.reset(),t}var $7,KA,Yh,Wl=qe(()=>{yt();wi();Hl();$7=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(C_,"isSequenceProd");o(Gl,"isOptionalProd");o(I_,"isBranchingProd");o(vr,"getProductionDslName");KA=function(e){$7(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.separator="-",n.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},n}return o(t,"DslMethodsCollectorVisitor"),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(n){var i=n.terminalType.name+this.separator+"Terminal";Ie(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";Ie(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitOption=function(n){this.dslMethods.option.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.dslMethods.repetitionWithSeparator.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.dslMethods.repetitionMandatory.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.dslMethods.repetitionMandatoryWithSeparator.push(n)},t.prototype.visitRepetition=function(n){this.dslMethods.repetition.push(n)},t.prototype.visitAlternation=function(n){this.dslMethods.alternation.push(n)},t}(Gr),Yh=new KA;o(O_,"collectMethods")});function Nc(e){if(e instanceof nn)return Nc(e.referencedRule);if(e instanceof mt)return G7(e);if(C_(e))return B7(e);if(I_(e))return H7(e);throw Error("non exhaustive match")}function B7(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=Gl(a),t=t.concat(Nc(a)),i=i+1,r=n.length>i;return tp(t)}function H7(e){var t=ue(e.definition,function(n){return Nc(n)});return tp(Nn(t))}function G7(e){return[e.terminalType]}var XA=qe(()=>{yt();wi();Wl();o(Nc,"first");o(B7,"firstForSequence");o(H7,"firstForBranching");o(G7,"firstForTerminal")});var zh,QA=qe(()=>{zh="_~IN~_"});function N_(e){var t={};return ye(e,function(n){var i=new K7(n).startWalking();hr(t,i)}),t}function X7(e,t){return e.name+t+zh}var W7,K7,L_=qe(()=>{qh();XA();yt();QA();wi();W7=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),K7=function(e){W7(t,e);function t(n){var i=e.call(this)||this;return i.topProd=n,i.follows={},i}return o(t,"ResyncFollowsWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(n,i,r){},t.prototype.walkProdRef=function(n,i,r){var a=X7(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new zt({definition:s}),u=Nc(l);this.follows[a]=u},t}(Oc);o(N_,"computeAllProdsFollows");o(X7,"buildBetweenProdsFollowPrefix")});var lp,Jh,hs,fp=qe(()=>{ms();yt();yt();wi();Wl();lp={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=WA(t),s=a?"--> "+$o(t)+" <--":"token of type --> "+t.name+" <--",l="Expecting "+s+" but found --> '"+n.image+"' <--";return l},"buildMismatchTokenMessage"),buildNotAllInputParsedMessage:o(function(e){var t=e.firstRedundant,n=e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},"buildNotAllInputParsedMessage"),buildNoViableAltMessage:o(function(e){var t=e.expectedPathsPerAlt,n=e.actual,i=e.previous,r=e.customUserDescription,a=e.ruleName,s="Expecting: ",l=Ai(n).image,u=`
|
|
135
|
-
but found: '`+l+"'";if(r)return s+r+u;var p=
|
|
133
|
+
`+r)}var a=this.tokenizeInternal(t,n);return a},e.prototype.tokenizeInternal=function(t,n){var i=this,r,a,s,l,u,p,g,m,T,A,E,O,F,U,K,j=t,ae=j.length,Z=0,re=0,Pe=this.hasCustom?0:Math.floor(t.length/10),_=new Array(Pe),ut=[],yt=this.trackStartLines?1:void 0,je=this.trackStartLines?1:void 0,an=a_(this.emptyGroups),Wn=this.trackStartLines,en=this.config.lineTerminatorsPattern,Lt=0,Re=[],Oi=[],It=[],Mt=[];Object.freeze(Mt);var sn=void 0;function $i(){return Re}o($i,"getPossiblePatternsSlow");function Fe(Gt){var Xo=jo(Gt),Bi=Oi[Xo];return Bi===void 0?Mt:Bi}o(Fe,"getPossiblePatternsOptimized");var Kn=o(function(Gt){if(It.length===1&&Gt.tokenType.PUSH_MODE===void 0){var Xo=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Gt);ut.push({offset:Gt.startOffset,line:Gt.startLine!==void 0?Gt.startLine:void 0,column:Gt.startColumn!==void 0?Gt.startColumn:void 0,length:Gt.image.length,message:Xo})}else{It.pop();var Bi=_h(It);Re=i.patternIdxToConfig[Bi],Oi=i.charCodeToPatternIdxToConfig[Bi],Lt=Re.length;var Nf=i.canModeBeOptimized[Bi]&&i.config.safeMode===!1;Oi&&Nf?sn=Fe:sn=$i}},"pop_mode");function Ir(Gt){It.push(Gt),Oi=this.charCodeToPatternIdxToConfig[Gt],Re=this.patternIdxToConfig[Gt],Lt=Re.length,Lt=Re.length;var Xo=this.canModeBeOptimized[Gt]&&this.config.safeMode===!1;Oi&&Xo?sn=Fe:sn=$i}o(Ir,"push_mode"),Ir.call(this,n);for(var st;Z<ae;){u=null;var I=j.charCodeAt(Z),S=sn(I),Y=S.length;for(r=0;r<Y;r++){st=S[r];var V=st.pattern;p=null;var De=st.short;if(De!==!1?I===De&&(u=V):st.isCustom===!0?(K=V.exec(j,Z,_,an),K!==null?(u=K[0],K.payload!==void 0&&(p=K.payload)):u=null):(this.updateLastIndex(V,Z),u=this.match(V,t,Z)),u!==null){if(l=st.longerAlt,l!==void 0){var Rt=Re[l],Qe=Rt.pattern;g=null,Rt.isCustom===!0?(K=Qe.exec(j,Z,_,an),K!==null?(s=K[0],K.payload!==void 0&&(g=K.payload)):s=null):(this.updateLastIndex(Qe,Z),s=this.match(Qe,t,Z)),s&&s.length>u.length&&(u=s,p=g,st=Rt)}break}}if(u!==null){if(m=u.length,T=st.group,T!==void 0&&(A=st.tokenTypeIdx,E=this.createTokenInstance(u,Z,A,st.tokenType,yt,je,m),this.handlePayload(E,p),T===!1?re=this.addToken(_,re,E):an[T].push(E)),t=this.chopInput(t,m),Z=Z+m,je=this.computeNewColumn(je,m),Wn===!0&&st.canLineTerminator===!0){var kt=0,vn=void 0,cn=void 0;en.lastIndex=0;do vn=en.test(u),vn===!0&&(cn=en.lastIndex-1,kt++);while(vn===!0);kt!==0&&(yt=yt+kt,je=m-cn,this.updateTokenEndLineColumnLocation(E,T,cn,kt,yt,je,m))}this.handleModes(st,Kn,Ir,E)}else{for(var Ht=Z,ni=yt,ir=je,dn=!1;!dn&&Z<ae;)for(F=j.charCodeAt(Z),t=this.chopInput(t,1),Z++,a=0;a<Lt;a++){var mi=Re[a],V=mi.pattern,De=mi.short;if(De!==!1?j.charCodeAt(Z)===De&&(dn=!0):mi.isCustom===!0?dn=V.exec(j,Z,_,an)!==null:(this.updateLastIndex(V,Z),dn=V.exec(t)!==null),dn===!0)break}O=Z-Ht,U=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(j,Ht,O,ni,ir),ut.push({offset:Ht,line:ni,column:ir,length:O,message:U})}}return this.hasCustom||(_.length=re),{tokens:_,groups:an,errors:ut}},e.prototype.handleModes=function(t,n,i,r){if(t.pop===!0){var a=t.push;n(r),a!==void 0&&i.call(this,a)}else t.push!==void 0&&i.call(this,t.push)},e.prototype.chopInput=function(t,n){return t.substring(n)},e.prototype.updateLastIndex=function(t,n){t.lastIndex=n},e.prototype.updateTokenEndLineColumnLocation=function(t,n,i,r,a,s,l){var u,p;n!==void 0&&(u=i===l-1,p=u?-1:0,r===1&&u===!0||(t.endLine=a+p,t.endColumn=s-1+-p))},e.prototype.computeNewColumn=function(t,n){return t+n},e.prototype.createTokenInstance=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null},e.prototype.createOffsetOnlyToken=function(t,n,i,r){return{image:t,startOffset:n,tokenTypeIdx:i,tokenType:r}},e.prototype.createStartOnlyToken=function(t,n,i,r,a,s){return{image:t,startOffset:n,startLine:a,startColumn:s,tokenTypeIdx:i,tokenType:r}},e.prototype.createFullToken=function(t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:n+l-1,startLine:a,endLine:a,startColumn:s,endColumn:s+l-1,tokenTypeIdx:i,tokenType:r}},e.prototype.addToken=function(t,n,i){return 666},e.prototype.addTokenUsingPush=function(t,n,i){return t.push(i),n},e.prototype.addTokenUsingMemberAccess=function(t,n,i){return t[n]=i,n++,n},e.prototype.handlePayload=function(t,n){},e.prototype.handlePayloadNoCustom=function(t,n){},e.prototype.handlePayloadWithCustom=function(t,n){n!==null&&(t.payload=n)},e.prototype.match=function(t,n,i){return null},e.prototype.matchWithTest=function(t,n,i){var r=t.test(n);return r===!0?n.substring(i,t.lastIndex):null},e.prototype.matchWithExec=function(t,n){var i=t.exec(n);return i!==null?i[0]:i},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=kh(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",e.NA=/NOT_APPLICABLE/,e}()});function Bo(e){return KA(e)?e.LABEL:e.name}function P_(e){return e.name}function KA(e){return Br(e.LABEL)&&e.LABEL!==""}function lp(e){return $7(e)}function $7(e){var t=e.pattern,n={};if(n.name=e.name,Pi(t)||(n.PATTERN=t),Ie(e,j7))throw`The parent property is no longer supported.
|
|
134
|
+
See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Ie(e,h_)&&(n.CATEGORIES=e[h_]),Ea([n]),Ie(e,y_)&&(n.LABEL=e[y_]),Ie(e,v_)&&(n.GROUP=e[v_]),Ie(e,E_)&&(n.POP_MODE=e[E_]),Ie(e,T_)&&(n.PUSH_MODE=e[T_]),Ie(e,b_)&&(n.LONGER_ALT=e[b_]),Ie(e,A_)&&(n.LINE_BREAKS=e[A_]),Ie(e,S_)&&(n.START_CHARS_HINT=e[S_]),n}function ms(e,t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:i,startLine:r,endLine:a,startColumn:s,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function C_(e,t){return Oc(e,t)}var j7,h_,y_,v_,T_,E_,b_,A_,S_,Gr,hs=qe(()=>{vt();sp();Bl();o(Bo,"tokenLabel");o(P_,"tokenName");o(KA,"hasTokenLabel");j7="parent",h_="categories",y_="label",v_="group",T_="push_mode",E_="pop_mode",b_="longer_alt",A_="line_breaks",S_="start_chars_hint";o(lp,"createToken");o($7,"createTokenInternal");Gr=lp({name:"EOF",pattern:Mi.NA});Ea([Gr]);o(ms,"createTokenInstance");o(C_,"tokenMatcher")});function qh(e){return ue(e,Hl)}function Hl(e){function t(r){return ue(r,Hl)}if(o(t,"convertDefinition"),e instanceof rn)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof Jt)return{type:"Alternative",definition:t(e.definition)};if(e instanceof on)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Rn)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Fn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Hl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Sn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Hl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Nt)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Pn)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof ht){var n={type:"Terminal",name:e.terminalType.name,label:Bo(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=po(i)?i.source:i),n}else{if(e instanceof vr)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var ba,go,rn,vr,Jt,on,Rn,Fn,Nt,Sn,Pn,ht,ki=qe(()=>{vt();hs();ba=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),go=function(){function e(t){this._definition=t}return o(e,"AbstractProduction"),Object.defineProperty(e.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(t){this._definition=t},"set"),enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this),ye(this.definition,function(n){n.accept(t)})},e}(),rn=function(e){ba(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,yr(i,hr(n,function(r){return r!==void 0})),i}return o(t,"NonTerminal"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},"get"),set:o(function(n){},"set"),enumerable:!1,configurable:!0}),t.prototype.accept=function(n){n.visit(this)},t}(go),vr=function(e){ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",yr(i,hr(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t}(go),Jt=function(e){ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,yr(i,hr(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t}(go),on=function(e){ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,yr(i,hr(n,function(r){return r!==void 0})),i}return o(t,"Option"),t}(go),Rn=function(e){ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,yr(i,hr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t}(go),Fn=function(e){ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,yr(i,hr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t}(go),Nt=function(e){ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,yr(i,hr(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t}(go),Sn=function(e){ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,yr(i,hr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t}(go),Pn=function(e){ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,yr(i,hr(n,function(r){return r!==void 0})),i}return o(t,"Alternation"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(n){this._definition=n},"set"),enumerable:!1,configurable:!0}),t}(go),ht=function(){function e(t){this.idx=1,yr(this,hr(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();o(qh,"serializeGrammar");o(Hl,"serializeProduction")});function x_(e,t,n){var i=[new on({definition:[new ht({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Nc,Yh=qe(()=>{vt();ki();Nc=function(){function e(){}return o(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),ye(t.definition,function(r,a){var s=wn(t.definition,a+1);if(r instanceof rn)i.walkProdRef(r,s,n);else if(r instanceof ht)i.walkTerminal(r,s,n);else if(r instanceof Jt)i.walkFlat(r,s,n);else if(r instanceof on)i.walkOption(r,s,n);else if(r instanceof Rn)i.walkAtLeastOne(r,s,n);else if(r instanceof Fn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof Sn)i.walkManySep(r,s,n);else if(r instanceof Nt)i.walkMany(r,s,n);else if(r instanceof Pn)i.walkOr(r,s,n);else throw Error("non exhaustive match")})},e.prototype.walkTerminal=function(t,n,i){},e.prototype.walkProdRef=function(t,n,i){},e.prototype.walkFlat=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkOption=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkAtLeastOne=function(t,n,i){var r=[new on({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=x_(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new on({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=x_(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,a=n.concat(i);ye(t.definition,function(s){var l=new Jt({definition:[s]});r.walk(l,a)})},e}();o(x_,"restForRepetitionWithSeparator")});var Wr,Gl=qe(()=>{ki();Wr=function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case rn:return this.visitNonTerminal(n);case Jt:return this.visitAlternative(n);case on:return this.visitOption(n);case Rn:return this.visitRepetitionMandatory(n);case Fn:return this.visitRepetitionMandatoryWithSeparator(n);case Sn:return this.visitRepetitionWithSeparator(n);case Nt:return this.visitRepetition(n);case Pn:return this.visitAlternation(n);case ht:return this.visitTerminal(n);case vr:return this.visitRule(n);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(t){},e.prototype.visitAlternative=function(t){},e.prototype.visitOption=function(t){},e.prototype.visitRepetition=function(t){},e.prototype.visitRepetitionMandatory=function(t){},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){},e.prototype.visitRepetitionWithSeparator=function(t){},e.prototype.visitAlternation=function(t){},e.prototype.visitTerminal=function(t){},e.prototype.visitRule=function(t){},e}()});function I_(e){return e instanceof Jt||e instanceof on||e instanceof Nt||e instanceof Rn||e instanceof Fn||e instanceof Sn||e instanceof ht||e instanceof vr}function Wl(e,t){t===void 0&&(t=[]);var n=e instanceof on||e instanceof Nt||e instanceof Sn;return n?!0:e instanceof Pn?Vh(e.definition,function(i){return Wl(i,t)}):e instanceof rn&&Vt(t,e)?!1:e instanceof go?(e instanceof rn&&t.push(e),ui(e.definition,function(i){return Wl(i,t)})):!1}function O_(e){return e instanceof Pn}function Tr(e){if(e instanceof rn)return"SUBRULE";if(e instanceof on)return"OPTION";if(e instanceof Pn)return"OR";if(e instanceof Rn)return"AT_LEAST_ONE";if(e instanceof Fn)return"AT_LEAST_ONE_SEP";if(e instanceof Sn)return"MANY_SEP";if(e instanceof Nt)return"MANY";if(e instanceof ht)return"CONSUME";throw Error("non exhaustive match")}function N_(e){zh.reset(),e.accept(zh);var t=zh.dslMethods;return zh.reset(),t}var B7,XA,zh,Kl=qe(()=>{vt();ki();Gl();B7=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(I_,"isSequenceProd");o(Wl,"isOptionalProd");o(O_,"isBranchingProd");o(Tr,"getProductionDslName");XA=function(e){B7(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.separator="-",n.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},n}return o(t,"DslMethodsCollectorVisitor"),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(n){var i=n.terminalType.name+this.separator+"Terminal";Ie(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";Ie(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitOption=function(n){this.dslMethods.option.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.dslMethods.repetitionWithSeparator.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.dslMethods.repetitionMandatory.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.dslMethods.repetitionMandatoryWithSeparator.push(n)},t.prototype.visitRepetition=function(n){this.dslMethods.repetition.push(n)},t.prototype.visitAlternation=function(n){this.dslMethods.alternation.push(n)},t}(Wr),zh=new XA;o(N_,"collectMethods")});function Lc(e){if(e instanceof rn)return Lc(e.referencedRule);if(e instanceof ht)return W7(e);if(I_(e))return H7(e);if(O_(e))return G7(e);throw Error("non exhaustive match")}function H7(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=Wl(a),t=t.concat(Lc(a)),i=i+1,r=n.length>i;return np(t)}function G7(e){var t=ue(e.definition,function(n){return Lc(n)});return np(Ln(t))}function W7(e){return[e.terminalType]}var QA=qe(()=>{vt();ki();Kl();o(Lc,"first");o(H7,"firstForSequence");o(G7,"firstForBranching");o(W7,"firstForTerminal")});var Jh,qA=qe(()=>{Jh="_~IN~_"});function L_(e){var t={};return ye(e,function(n){var i=new X7(n).startWalking();yr(t,i)}),t}function Q7(e,t){return e.name+t+Jh}var K7,X7,R_=qe(()=>{Yh();QA();vt();qA();ki();K7=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),X7=function(e){K7(t,e);function t(n){var i=e.call(this)||this;return i.topProd=n,i.follows={},i}return o(t,"ResyncFollowsWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(n,i,r){},t.prototype.walkProdRef=function(n,i,r){var a=Q7(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new Jt({definition:s}),u=Lc(l);this.follows[a]=u},t}(Nc);o(L_,"computeAllProdsFollows");o(Q7,"buildBetweenProdsFollowPrefix")});var fp,Zh,ys,up=qe(()=>{hs();vt();vt();ki();Kl();fp={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=KA(t),s=a?"--> "+Bo(t)+" <--":"token of type --> "+t.name+" <--",l="Expecting "+s+" but found --> '"+n.image+"' <--";return l},"buildMismatchTokenMessage"),buildNotAllInputParsedMessage:o(function(e){var t=e.firstRedundant,n=e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},"buildNotAllInputParsedMessage"),buildNoViableAltMessage:o(function(e){var t=e.expectedPathsPerAlt,n=e.actual,i=e.previous,r=e.customUserDescription,a=e.ruleName,s="Expecting: ",l=Si(n).image,u=`
|
|
135
|
+
but found: '`+l+"'";if(r)return s+r+u;var p=un(t,function(A,E){return A.concat(E)},[]),g=ue(p,function(A){return"["+ue(A,function(E){return Bo(E)}).join(", ")+"]"}),m=ue(g,function(A,E){return" "+(E+1)+". "+A}),T=`one of these possible Token sequences:
|
|
136
136
|
`+m.join(`
|
|
137
|
-
`);return s+T+u},"buildNoViableAltMessage"),buildEarlyExitMessage:o(function(e){var t=e.expectedIterationPaths,n=e.actual,i=e.customUserDescription,r=e.ruleName,a="Expecting: ",s=
|
|
138
|
-
but found: '`+s+"'";if(i)return a+i+l;var u=ue(t,function(g){return"["+ue(g,function(m){return
|
|
139
|
-
`+("<"+u.join(" ,")+">");return a+p+l},"buildEarlyExitMessage")};Object.freeze(
|
|
140
|
-
inside top level rule: ->`+e.name+"<-";return n},"buildRuleNotFoundError")},
|
|
137
|
+
`);return s+T+u},"buildNoViableAltMessage"),buildEarlyExitMessage:o(function(e){var t=e.expectedIterationPaths,n=e.actual,i=e.customUserDescription,r=e.ruleName,a="Expecting: ",s=Si(n).image,l=`
|
|
138
|
+
but found: '`+s+"'";if(i)return a+i+l;var u=ue(t,function(g){return"["+ue(g,function(m){return Bo(m)}).join(",")+"]"}),p=`expecting at least one iteration which starts with one of these possible Token sequences::
|
|
139
|
+
`+("<"+u.join(" ,")+">");return a+p+l},"buildEarlyExitMessage")};Object.freeze(fp);Zh={buildRuleNotFoundError:o(function(e,t){var n="Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<-
|
|
140
|
+
inside top level rule: ->`+e.name+"<-";return n},"buildRuleNotFoundError")},ys={buildDuplicateFoundError:o(function(e,t){function n(g){return g instanceof ht?g.terminalType.name:g instanceof rn?g.nonTerminalName:""}o(n,"getExtraProductionArgument");var i=e.name,r=Si(t),a=r.idx,s=Tr(r),l=n(r),u=a>0,p="->"+s+(u?a:"")+"<- "+(l?"with argument: ->"+l+"<-":"")+`
|
|
141
141
|
appears more than once (`+t.length+" times) in the top level rule: ->"+i+`<-.
|
|
142
142
|
For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES
|
|
143
143
|
`;return p=p.replace(/[ \t]+/g," "),p=p.replace(/\s\s+/g,`
|
|
@@ -145,14 +145,14 @@ inside top level rule: ->`+e.name+"<-";return n},"buildRuleNotFoundError")},hs={
|
|
|
145
145
|
`+("The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <"+e.name+`>.
|
|
146
146
|
`)+`To resolve this make sure each Terminal and Non-Terminal names are unique
|
|
147
147
|
This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
|
|
148
|
-
and Non-Terminal names start with a lower case letter.`;return t},"buildNamespaceConflictError"),buildAlternationPrefixAmbiguityError:o(function(e){var t=ue(e.prefixPath,function(r){return
|
|
148
|
+
and Non-Terminal names start with a lower case letter.`;return t},"buildNamespaceConflictError"),buildAlternationPrefixAmbiguityError:o(function(e){var t=ue(e.prefixPath,function(r){return Bo(r)}).join(", "),n=e.alternation.idx===0?"":e.alternation.idx,i="Ambiguous alternatives: <"+e.ambiguityIndices.join(" ,")+`> due to common lookahead prefix
|
|
149
149
|
`+("in <OR"+n+"> inside <"+e.topLevelRule.name+`> Rule,
|
|
150
150
|
`)+("<"+t+`> may appears as a prefix path in all these alternatives.
|
|
151
151
|
`)+`See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
|
|
152
|
-
For Further details.`;return i},"buildAlternationPrefixAmbiguityError"),buildAlternationAmbiguityError:o(function(e){var t=ue(e.prefixPath,function(r){return
|
|
152
|
+
For Further details.`;return i},"buildAlternationPrefixAmbiguityError"),buildAlternationAmbiguityError:o(function(e){var t=ue(e.prefixPath,function(r){return Bo(r)}).join(", "),n=e.alternation.idx===0?"":e.alternation.idx,i="Ambiguous Alternatives Detected: <"+e.ambiguityIndices.join(" ,")+"> in <OR"+n+">"+(" inside <"+e.topLevelRule.name+`> Rule,
|
|
153
153
|
`)+("<"+t+`> may appears as a prefix path in all these alternatives.
|
|
154
154
|
`);return i=i+`See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
|
155
|
-
For Further details.`,i},"buildAlternationAmbiguityError"),buildEmptyRepetitionError:o(function(e){var t=
|
|
155
|
+
For Further details.`,i},"buildAlternationAmbiguityError"),buildEmptyRepetitionError:o(function(e){var t=Tr(e.repetition);e.repetition.idx!==0&&(t+=e.repetition.idx);var n="The repetition <"+t+"> within Rule <"+e.topLevelRule.name+`> can never consume any tokens.
|
|
156
156
|
This could lead to an infinite loop.`;return n},"buildEmptyRepetitionError"),buildTokenNameError:o(function(e){return"deprecated"},"buildTokenNameError"),buildEmptyAlternationError:o(function(e){var t="Ambiguous empty alternative: <"+(e.emptyChoiceIdx+1)+">"+(" in <OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+`> Rule.
|
|
157
157
|
`)+"Only the last alternative may be an empty alternative.";return t},"buildEmptyAlternationError"),buildTooManyAlternativesError:o(function(e){var t=`An Alternation cannot have more than 256 alternatives:
|
|
158
158
|
`+("<OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+`> Rule.
|
|
@@ -161,33 +161,33 @@ This could lead to an infinite loop.`;return n},"buildEmptyRepetitionError"),bui
|
|
|
161
161
|
`)+(`without consuming any Tokens. The grammar path that causes this is:
|
|
162
162
|
`+i+`
|
|
163
163
|
`)+` To fix this refactor your grammar to remove the left recursion.
|
|
164
|
-
see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return r},"buildLeftRecursionError"),buildInvalidRuleNameError:o(function(e){return"deprecated"},"buildInvalidRuleNameError"),buildDuplicateRuleNameError:o(function(e){var t;e.topLevelRule instanceof yr?t=e.topLevelRule.name:t=e.topLevelRule;var n="Duplicate definition, rule: ->"+t+"<- is already defined in the grammar: ->"+e.grammarName+"<-";return n},"buildDuplicateRuleNameError")}});function R_(e,t){var n=new q7(e,t);return n.resolveRefs(),n.errors}var Q7,q7,F_=qe(()=>{Tr();yt();Hl();Q7=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(R_,"resolveGrammar");q7=function(e){Q7(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return o(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;ye(Dn(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Hn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(Gr)});function ey(e,t,n){n===void 0&&(n=[]),n=bn(n);var i=[],r=0;function a(p){return p.concat(Vn(e,r+1))}o(a,"remainingPathWith");function s(p){var g=ey(a(p),t,n);return i.concat(g)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof zt)return s(l.definition);if(l instanceof nn)return s(l.definition);if(l instanceof rn)i=s(l.definition);else if(l instanceof Ln){var u=l.definition.concat([new Ot({definition:l.definition})]);return s(u)}else if(l instanceof Rn){var u=[new zt({definition:l.definition}),new Ot({definition:[new mt({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof An){var u=l.definition.concat([new Ot({definition:[new mt({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Ot){var u=l.definition.concat([new Ot({definition:l.definition})]);i=s(u)}else{if(l instanceof Sn)return ye(l.definition,function(p){ot(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof mt)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:Vn(e,r)}),i}function ty(e,t,n,i){var r="EXIT_NONE_TERMINAL",a=[r],s="EXIT_ALTERNATIVE",l=!1,u=t.length,p=u-i-1,g=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!ot(m);){var T=m.pop();if(T===s){l&&Fh(m).idx<=p&&m.pop();continue}var A=T.def,E=T.idx,O=T.ruleStack,F=T.occurrenceStack;if(!ot(A)){var U=A[0];if(U===r){var K={idx:E,def:Vn(A),ruleStack:us(O),occurrenceStack:us(F)};m.push(K)}else if(U instanceof mt)if(E<u-1){var j=E+1,ae=t[j];if(n(ae,U.terminalType)){var K={idx:j,def:Vn(A),ruleStack:O,occurrenceStack:F};m.push(K)}}else if(E===u-1)g.push({nextTokenType:U.terminalType,nextTokenOccurrence:U.idx,ruleStack:O,occurrenceStack:F}),l=!0;else throw Error("non exhaustive match");else if(U instanceof nn){var Z=bn(O);Z.push(U.nonTerminalName);var re=bn(F);re.push(U.idx);var K={idx:E,def:U.definition.concat(a,Vn(A)),ruleStack:Z,occurrenceStack:re};m.push(K)}else if(U instanceof rn){var Pe={idx:E,def:Vn(A),ruleStack:O,occurrenceStack:F};m.push(Pe),m.push(s);var _={idx:E,def:U.definition.concat(Vn(A)),ruleStack:O,occurrenceStack:F};m.push(_)}else if(U instanceof Ln){var ft=new Ot({definition:U.definition,idx:U.idx}),ht=U.definition.concat([ft],Vn(A)),K={idx:E,def:ht,ruleStack:O,occurrenceStack:F};m.push(K)}else if(U instanceof Rn){var je=new mt({terminalType:U.separator}),ft=new Ot({definition:[je].concat(U.definition),idx:U.idx}),ht=U.definition.concat([ft],Vn(A)),K={idx:E,def:ht,ruleStack:O,occurrenceStack:F};m.push(K)}else if(U instanceof An){var Pe={idx:E,def:Vn(A),ruleStack:O,occurrenceStack:F};m.push(Pe),m.push(s);var je=new mt({terminalType:U.separator}),on=new Ot({definition:[je].concat(U.definition),idx:U.idx}),ht=U.definition.concat([on],Vn(A)),_={idx:E,def:ht,ruleStack:O,occurrenceStack:F};m.push(_)}else if(U instanceof Ot){var Pe={idx:E,def:Vn(A),ruleStack:O,occurrenceStack:F};m.push(Pe),m.push(s);var on=new Ot({definition:U.definition,idx:U.idx}),ht=U.definition.concat([on],Vn(A)),_={idx:E,def:ht,ruleStack:O,occurrenceStack:F};m.push(_)}else if(U instanceof Sn)for(var Gn=U.definition.length-1;Gn>=0;Gn--){var Zt=U.definition[Gn],Nt={idx:E,def:Zt.definition.concat(Vn(A)),ruleStack:O,occurrenceStack:F};m.push(Nt),m.push(s)}else if(U instanceof zt)m.push({idx:E,def:U.definition.concat(Vn(A)),ruleStack:O,occurrenceStack:F});else if(U instanceof yr)m.push(z7(U,E,O,F));else throw Error("non exhaustive match")}}return g}function z7(e,t,n,i){var r=bn(n);r.push(e.name);var a=bn(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var Lc,Y7,__,Zh,D_,qA,V_,YA,up=qe(()=>{qh();yt();XA();wi();Lc=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Y7=function(e){Lc(t,e);function t(n,i){var r=e.call(this)||this;return r.topProd=n,r.path=i,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return o(t,"AbstractNextPossibleTokensWalker"),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=bn(this.path.ruleStack).reverse(),this.occurrenceStack=bn(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(n,i){i===void 0&&(i=[]),this.found||e.prototype.walk.call(this,n,i)},t.prototype.walkProdRef=function(n,i,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){var a=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,a)}},t.prototype.updateExpectedNext=function(){ot(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Oc),__=function(e){Lc(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new zt({definition:a});this.possibleTokTypes=Nc(s),this.found=!0}},t}(Y7),Zh=function(e){Lc(t,e);function t(n,i){var r=e.call(this)||this;return r.topRule=n,r.occurrence=i,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return o(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(Oc),D_=function(e){Lc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkMany.call(this,n,i,r)},t}(Zh),qA=function(e){Lc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t}(Zh),V_=function(e){Lc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t}(Zh),YA=function(e){Lc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var a=Ai(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof mt&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t}(Zh);o(ey,"possiblePathsFrom");o(ty,"nextPossibleTokensAfter");o(z7,"expandTopLevelRule")});function k_(e){if(e instanceof rn)return Vt.OPTION;if(e instanceof Ot)return Vt.REPETITION;if(e instanceof Ln)return Vt.REPETITION_MANDATORY;if(e instanceof Rn)return Vt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof An)return Vt.REPETITION_WITH_SEPARATOR;if(e instanceof Sn)return Vt.ALTERNATION;throw Error("non exhaustive match")}function U_(e,t,n,i,r,a){var s=pp(e,t,n),l=K_(s)?jl:Ic;return a(s,i,l,r)}function j_(e,t,n,i,r,a){var s=dp(e,t,r,n),l=K_(s)?jl:Ic;return a(s[0],l,i)}function $_(e,t,n,i){var r=e.length,a=fi(e,function(u){return fi(u,function(p){return p.length===1})});if(t)return function(u){for(var p=ue(u,function(j){return j.GATE}),g=0;g<r;g++){var m=e[g],T=m.length,A=p[g];if(!(A!==void 0&&A.call(this)===!1))e:for(var E=0;E<T;E++){for(var O=m[E],F=O.length,U=0;U<F;U++){var K=this.LA(U+1);if(n(K,O[U])===!1)continue e}return g}}};if(a&&!i){var s=ue(e,function(u){return Nn(u)}),l=fn(s,function(u,p,g){return ye(p,function(m){Ie(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),ye(m.categoryMatches,function(T){Ie(u,T)||(u[T]=g)})}),u},[]);return function(){var u=this.LA(1);return l[u.tokenTypeIdx]}}else return function(){for(var u=0;u<r;u++){var p=e[u],g=p.length;e:for(var m=0;m<g;m++){for(var T=p[m],A=T.length,E=0;E<A;E++){var O=this.LA(E+1);if(n(O,T[E])===!1)continue e}return u}}}}function B_(e,t,n){var i=fi(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Nn(e);if(a.length===1&&ot(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=fn(a,function(p,g,m){return p[g.tokenTypeIdx]=!0,ye(g.categoryMatches,function(T){p[T]=!0}),p},[]);return function(){var p=this.LA(1);return u[p.tokenTypeIdx]===!0}}}else return function(){e:for(var p=0;p<r;p++){for(var g=e[p],m=g.length,T=0;T<m;T++){var A=this.LA(T+1);if(t(A,g[T])===!1)continue e}return!0}return!1}}function M_(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function zA(e){for(var t=[""],n=0;n<e.length;n++){for(var i=e[n],r=[],a=0;a<t.length;a++){var s=t[a];r.push(s+"_"+i.tokenTypeIdx);for(var l=0;l<i.categoryMatches.length;l++){var u="_"+i.categoryMatches[l];r.push(s+u)}}t=r}return t}function Z7(e,t,n){for(var i=0;i<e.length;i++)if(i!==n)for(var r=e[i],a=0;a<t.length;a++){var s=t[a];if(r[s]===!0)return!1}return!0}function G_(e,t){for(var n=ue(e,function(g){return ey([g],1)}),i=M_(n.length),r=ue(n,function(g){var m={};return ye(g,function(T){var A=zA(T.partialPath);ye(A,function(E){m[E]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=M_(l.length);for(var u=o(function(g){for(var m=l[g],T=0;T<m.length;T++){var A=m[T].partialPath,E=m[T].suffixDef,O=zA(A),F=Z7(r,O,g);if(F||ot(E)||A.length===t){var U=i[g];if(ny(U,A)===!1){U.push(A);for(var K=0;K<O.length;K++){var j=O[K];r[g][j]=!0}}}else{var ae=ey(E,s+1,A);a[g]=a[g].concat(ae),ye(ae,function(Z){var re=zA(Z.partialPath);ye(re,function(Pe){r[g][Pe]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function pp(e,t,n,i){var r=new H_(e,Vt.ALTERNATION,i);return t.accept(r),G_(r.result,n)}function dp(e,t,n,i){var r=new H_(e,n);t.accept(r);var a=r.result,s=new J7(t,e,n),l=s.startWalking(),u=new zt({definition:a}),p=new zt({definition:l});return G_([u,p],i)}function ny(e,t){e:for(var n=0;n<e.length;n++){var i=e[n];if(i.length===t.length){for(var r=0;r<i.length;r++){var a=t[r],s=i[r],l=a===s||s.categoryMatchesMap[a.tokenTypeIdx]!==void 0;if(l===!1)continue e}return!0}}return!1}function W_(e,t){return e.length<t.length&&fi(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function K_(e){return fi(e,function(t){return fi(t,function(n){return fi(n,function(i){return ot(i.categoryMatches)})})})}var w_,Vt,J7,H_,gp=qe(()=>{yt();up();qh();$l();wi();Hl();w_=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(Vt||(Vt={}));o(k_,"getProdType");o(U_,"buildLookaheadFuncForOr");o(j_,"buildLookaheadFuncForOptionalProd");o($_,"buildAlternativesLookAheadFunc");o(B_,"buildSingleAlternativeLookaheadFunction");J7=function(e){w_(t,e);function t(n,i,r){var a=e.call(this)||this;return a.topProd=n,a.targetOccurrence=i,a.targetProdType=r,a}return o(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,a){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(a),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,Vt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,Vt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,Vt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,Vt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,Vt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Oc),H_=function(e){w_(t,e);function t(n,i,r){var a=e.call(this)||this;return a.targetOccurrence=n,a.targetProdType=i,a.targetRef=r,a.result=[],a}return o(t,"InsideDefinitionFinderVisitor"),t.prototype.checkIsTarget=function(n,i){n.idx===this.targetOccurrence&&this.targetProdType===i&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)},t.prototype.visitOption=function(n){this.checkIsTarget(n,Vt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,Vt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,Vt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,Vt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,Vt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,Vt.ALTERNATION)},t}(Gr);o(M_,"initializeArrayOfArrays");o(zA,"pathToHashKeys");o(Z7,"isUniquePrefixHash");o(G_,"lookAheadSequenceFromAlternatives");o(pp,"getLookaheadPathsForOr");o(dp,"getLookaheadPathsForOptionalProd");o(ny,"containsPath");o(W_,"isStrictPrefixOfPath");o(K_,"areTokenCategoriesNotUsed")});function X_(e,t,n,i,r){var a=ue(e,function(A){return e6(A,i)}),s=ue(e,function(A){return Y_(A,A,i)}),l=[],u=[],p=[];fi(s,ot)&&(l=ue(e,function(A){return r6(A,i)}),u=ue(e,function(A){return o6(A,t,i)}),p=c6(e,t,i));var g=u6(e,n,i),m=ue(e,function(A){return s6(A,i)}),T=ue(e,function(A){return i6(A,e,r,i)});return Nn(a.concat(p,s,l,u,g,m,T))}function e6(e,t){var n=new n6;e.accept(n);var i=n.allProductions,r=$1(i,t6),a=mr(r,function(l){return l.length>1}),s=ue(Dn(a),function(l){var u=Ai(l),p=t.buildDuplicateFoundError(e,l),g=vr(u),m={message:p,type:Hn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},T=Q_(u);return T&&(m.parameter=T),m});return s}function t6(e){return vr(e)+"_#_"+e.idx+"_#_"+Q_(e)}function Q_(e){return e instanceof mt?e.terminalType.name:e instanceof nn?e.nonTerminalName:""}function i6(e,t,n,i){var r=[],a=fn(t,function(l,u){return u.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Hn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function q_(e,t,n){var i=[],r;return Dt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Hn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function Y_(e,t,n,i){i===void 0&&(i=[]);var r=[],a=iy(t.definition);if(ot(a))return[];var s=e.name,l=Dt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Hn.LEFT_RECURSION,ruleName:s});var u=Cc(a,i.concat([e])),p=ue(u,function(g){var m=bn(i);return m.push(g),Y_(e,g,n,m)});return r.concat(Nn(p))}function iy(e){var t=[];if(ot(e))return t;var n=Ai(e);if(n instanceof nn)t.push(n.referencedRule);else if(n instanceof zt||n instanceof rn||n instanceof Ln||n instanceof Rn||n instanceof An||n instanceof Ot)t=t.concat(iy(n.definition));else if(n instanceof Sn)t=Nn(ue(n.definition,function(s){return iy(s.definition)}));else if(!(n instanceof mt))throw Error("non exhaustive match");var i=Gl(n),r=e.length>1;if(i&&r){var a=Vn(e);return t.concat(iy(a))}else return t}function r6(e,t){var n=new ZA;e.accept(n);var i=n.alternations,r=fn(i,function(a,s){var l=us(s.definition),u=ue(l,function(p,g){var m=ty([p],[],null,1);return ot(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Hn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(va(u))},[]);return r}function o6(e,t,n){var i=new ZA;e.accept(i);var r=i.alternations;r=ha(r,function(s){return s.ignoreAmbiguities===!0});var a=fn(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=pp(u,e,p,l),m=l6(g,l,e,n),T=f6(g,l,e,n);return s.concat(m,T)},[]);return a}function s6(e,t){var n=new ZA;e.accept(n);var i=n.alternations,r=fn(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Hn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function c6(e,t,n){var i=[];return ye(e,function(r){var a=new a6;r.accept(a);var s=a.allProductions;ye(s,function(l){var u=k_(l),p=l.maxLookahead||t,g=l.idx,m=dp(g,r,u,p),T=m[0];if(ot(Nn(T))){var A=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:A,type:Hn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function l6(e,t,n,i){var r=[],a=fn(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||ye(u,function(g){var m=[p];ye(e,function(T,A){p!==A&&ny(T,g)&&t.definition[A].ignoreAmbiguities!==!0&&m.push(A)}),m.length>1&&!ny(r,g)&&(r.push(g),l.push({alts:m,path:g}))}),l},[]),s=ue(a,function(l){var u=ue(l.alts,function(g){return g+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Hn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function f6(e,t,n,i){var r=[],a=fn(e,function(s,l,u){var p=ue(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return ye(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=U1(a,function(T){return t.definition[T.idx].ignoreAmbiguities!==!0&&T.idx<u&&W_(T.path,p)}),m=ue(g,function(T){var A=[T.idx+1,u+1],E=t.idx===0?"":t.idx,O=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:A,prefixPath:T.path});return{message:O,type:Hn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:E,alternatives:A}});r=r.concat(m)}}),r}function u6(e,t,n){var i=[],r=ue(t,function(a){return a.name});return ye(e,function(a){var s=a.name;if(Dt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Hn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var JA,n6,ZA,a6,eS=qe(()=>{yt();yt();Tr();Wl();gp();up();wi();Hl();JA=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(X_,"validateGrammar");o(e6,"validateDuplicateProductions");o(t6,"identifyProductionForDuplicates");o(Q_,"getExtraProductionArgument");n6=function(e){JA(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"OccurrenceValidationCollector"),t.prototype.visitNonTerminal=function(n){this.allProductions.push(n)},t.prototype.visitOption=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t.prototype.visitAlternation=function(n){this.allProductions.push(n)},t.prototype.visitTerminal=function(n){this.allProductions.push(n)},t}(Gr);o(i6,"validateRuleDoesNotAlreadyExist");o(q_,"validateRuleIsOverridden");o(Y_,"validateNoLeftRecursion");o(iy,"getFirstNoneTerminal");ZA=function(e){JA(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return o(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t}(Gr);o(r6,"validateEmptyOrAlternative");o(o6,"validateAmbiguousAlternationAlternatives");a6=function(e){JA(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"RepetionCollector"),t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t}(Gr);o(s6,"validateTooManyAlts");o(c6,"validateSomeNonEmptyLookaheadPath");o(l6,"checkAlternativesAmbiguities");o(f6,"checkPrefixAlternativesAmbiguities");o(u6,"checkTerminalAndNoneTerminalsNameSpace")});function ry(e){e=np(e,{errMsgProvider:Jh});var t={};return ye(e.rules,function(n){t[n.name]=n}),R_(t,e.errMsgProvider)}function oy(e){return e=np(e,{errMsgProvider:hs}),X_(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function z_(e){ye(e.rules,function(t){var n=new KA;t.accept(n),ye(n.dslMethods,function(i){ye(i,function(r,a){r.idx=a+1})})})}var tS=qe(()=>{yt();F_();eS();fp();Wl();o(ry,"resolveGrammar");o(oy,"validateGrammar");o(z_,"assignOccurrenceIndices")});function ba(e){return Dt(nD,e.name)}var mp,J_,Z_,eD,tD,nD,ay,Kl,sy,cy,ly,Xl=qe(()=>{yt();mp=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),J_="MismatchedTokenException",Z_="NoViableAltException",eD="EarlyExitException",tD="NotAllInputParsedException",nD=[J_,Z_,eD,tD];Object.freeze(nD);o(ba,"isRecognitionException");ay=function(e){mp(t,e);function t(n,i){var r=this.constructor,a=e.call(this,n)||this;return a.token=i,a.resyncedTokens=[],Object.setPrototypeOf(a,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return o(t,"RecognitionException"),t}(Error),Kl=function(e){mp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=J_,a}return o(t,"MismatchedTokenException"),t}(ay),sy=function(e){mp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=Z_,a}return o(t,"NoViableAltException"),t}(ay),cy=function(e){mp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=tD,r}return o(t,"NotAllInputParsedException"),t}(ay),ly=function(e){mp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=eD,a}return o(t,"EarlyExitException"),t}(ay)});function iD(e){this.name=iS,this.message=e}function p6(e,t,n,i,r,a,s){var l=this.getKeyForAutomaticLookahead(i,r),u=this.firstAfterRepMap[l];if(u===void 0){var p=this.getCurrRuleFullName(),g=this.getGAstProductions()[p],m=new a(g,r);u=m.startWalking(),this.firstAfterRepMap[l]=u}var T=u.token,A=u.occurrence,E=u.isEndOfRule;this.RULE_STACK.length===1&&E&&T===void 0&&(T=Hr,A=1),this.shouldInRepetitionRecoveryBeTried(T,A,s)&&this.tryInRepetitionRecovery(e,t,n,T)}var nS,iS,rD,rS=qe(()=>{ms();yt();Xl();QA();Tr();nS={},iS="InRuleRecoveryException";o(iD,"InRuleRecoveryException");iD.prototype=Error.prototype;rD=function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Ie(t,"recoveryEnabled")?t.recoveryEnabled:Ji.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=p6)},e.prototype.getTokenToInsert=function(t){var n=gs(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return n.isInsertedInRecovery=!0,n},e.prototype.canTokenTypeBeInsertedInRecovery=function(t){return!0},e.prototype.tryInRepetitionRecovery=function(t,n,i,r){for(var a=this,s=this.findReSyncTokenType(),l=this.exportLexerState(),u=[],p=!1,g=this.LA(1),m=this.LA(1),T=o(function(){var A=a.LA(0),E=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:g,previous:A,ruleName:a.getCurrRuleFullName()}),O=new Kl(E,g,a.LA(0));O.resyncedTokens=us(u),a.SAVE_ERROR(O)},"generateErrorMessage");!p;)if(this.tokenMatcher(m,r)){T();return}else if(i.call(this)){T(),t.apply(this,n);return}else this.tokenMatcher(m,s)?p=!0:(m=this.SKIP_TOKEN(),this.addToResyncTokens(m,u));this.importLexerState(l)},e.prototype.shouldInRepetitionRecoveryBeTried=function(t,n,i){return!(i===!1||t===void 0||n===void 0||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,n)))},e.prototype.getFollowsForInRuleRecovery=function(t,n){var i=this.getCurrentGrammarPath(t,n),r=this.getNextPossibleTokenTypes(i);return r},e.prototype.tryInRuleRecovery=function(t,n){if(this.canRecoverWithSingleTokenInsertion(t,n)){var i=this.getTokenToInsert(t);return i}if(this.canRecoverWithSingleTokenDeletion(t)){var r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new iD("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(t,n){return this.canRecoverWithSingleTokenInsertion(t,n)||this.canRecoverWithSingleTokenDeletion(t)},e.prototype.canRecoverWithSingleTokenInsertion=function(t,n){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(t)||ot(n))return!1;var r=this.LA(1),a=ya(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return a},e.prototype.canRecoverWithSingleTokenDeletion=function(t){var n=this.tokenMatcher(this.LA(2),t);return n},e.prototype.isInCurrentRuleReSyncSet=function(t){var n=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(n);return Dt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Dt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return nS;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return ue(n,function(r,a){return a===0?nS:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=ue(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return Nn(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===nS)return[Hr];var n=t.ruleName+t.idxInCallingRule+zh+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Hr)||n.push(t),n},e.prototype.reSyncTo=function(t){for(var n=[],i=this.LA(1);this.tokenMatcher(i,t)===!1;)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,n);return us(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=bn(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return ue(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();o(p6,"attemptInRepetitionRecovery")});function py(e,t,n){return n|t|e}var oD,Bo,d6,fy,uy,hp,yp,vp,Ql,mae,dy=qe(()=>{oD=4,Bo=8,d6=8,fy=1<<Bo,uy=2<<Bo,hp=3<<Bo,yp=4<<Bo,vp=5<<Bo,Ql=6<<Bo;o(py,"getKeyForAutomaticLookahead");mae=32-d6});var aD,sD=qe(()=>{gp();yt();Tr();dy();Wl();aD=function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Ie(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:Ji.dynamicTokensEnabled,this.maxLookahead=Ie(t,"maxLookahead")?t.maxLookahead:Ji.maxLookahead,this.lookAheadFuncsCache=MA()?new Map:[],MA()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;ye(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=O_(i),a=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,g=r.repetitionWithSeparator;ye(a,function(m){var T=m.idx===0?"":m.idx;n.TRACE_INIT(""+vr(m)+T,function(){var A=U_(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),E=py(n.fullRuleNameToShort[i.name],fy,m.idx);n.setLaFuncCache(E,A)})}),ye(s,function(m){n.computeLookaheadFunc(i,m.idx,hp,Vt.REPETITION,m.maxLookahead,vr(m))}),ye(l,function(m){n.computeLookaheadFunc(i,m.idx,uy,Vt.OPTION,m.maxLookahead,vr(m))}),ye(u,function(m){n.computeLookaheadFunc(i,m.idx,yp,Vt.REPETITION_MANDATORY,m.maxLookahead,vr(m))}),ye(p,function(m){n.computeLookaheadFunc(i,m.idx,Ql,Vt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,vr(m))}),ye(g,function(m){n.computeLookaheadFunc(i,m.idx,vp,Vt.REPETITION_WITH_SEPARATOR,m.maxLookahead,vr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=j_(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=py(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return B_(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return $_(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return py(i,t,n)},e.prototype.getLaFuncFromCache=function(t){},e.prototype.getLaFuncFromMap=function(t){return this.lookAheadFuncsCache.get(t)},e.prototype.getLaFuncFromObj=function(t){return this.lookAheadFuncsCache[t]},e.prototype.setLaFuncCache=function(t,n){},e.prototype.setLaFuncCacheUsingMap=function(t,n){this.lookAheadFuncsCache.set(t,n)},e.prototype.setLaFuncUsingObj=function(t,n){this.lookAheadFuncsCache[t]=n},e}()});function oS(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function aS(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function cD(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function lD(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var fD=qe(()=>{o(oS,"setNodeLocationOnlyOffset");o(aS,"setNodeLocationFull");o(cD,"addTerminalToCst");o(lD,"addNoneTerminalToCst")});function pD(e){return Tp(e.constructor)}function Tp(e){var t=e.name;return t||"anonymous"}function sS(e,t){var n=Object.getOwnPropertyDescriptor(e,uD);return Si(n)||n.configurable?(Object.defineProperty(e,uD,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var uD,cS=qe(()=>{yt();o(pD,"classNameFromInstance");uD="name";o(Tp,"functionName");o(sS,"defineNameProp")});function g6(e,t){for(var n=Vi(e),i=n.length,r=0;r<i;r++)for(var a=n[r],s=e[a],l=s.length,u=0;u<l;u++){var p=s[u];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function dD(e,t){var n=o(function(){},"derivedConstructor");sS(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(li(r)&&(r=r[0]),!Si(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=m6(this,t);if(!ot(r)){var a=ue(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+Tp(this.constructor)+`>:
|
|
164
|
+
see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return r},"buildLeftRecursionError"),buildInvalidRuleNameError:o(function(e){return"deprecated"},"buildInvalidRuleNameError"),buildDuplicateRuleNameError:o(function(e){var t;e.topLevelRule instanceof vr?t=e.topLevelRule.name:t=e.topLevelRule;var n="Duplicate definition, rule: ->"+t+"<- is already defined in the grammar: ->"+e.grammarName+"<-";return n},"buildDuplicateRuleNameError")}});function F_(e,t){var n=new Y7(e,t);return n.resolveRefs(),n.errors}var q7,Y7,__=qe(()=>{Er();vt();Gl();q7=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(F_,"resolveGrammar");Y7=function(e){q7(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return o(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;ye(Vn(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Gn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(Wr)});function ty(e,t,n){n===void 0&&(n=[]),n=An(n);var i=[],r=0;function a(p){return p.concat(wn(e,r+1))}o(a,"remainingPathWith");function s(p){var g=ty(a(p),t,n);return i.concat(g)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof Jt)return s(l.definition);if(l instanceof rn)return s(l.definition);if(l instanceof on)i=s(l.definition);else if(l instanceof Rn){var u=l.definition.concat([new Nt({definition:l.definition})]);return s(u)}else if(l instanceof Fn){var u=[new Jt({definition:l.definition}),new Nt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof Sn){var u=l.definition.concat([new Nt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Nt){var u=l.definition.concat([new Nt({definition:l.definition})]);i=s(u)}else{if(l instanceof Pn)return ye(l.definition,function(p){at(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof ht)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:wn(e,r)}),i}function ny(e,t,n,i){var r="EXIT_NONE_TERMINAL",a=[r],s="EXIT_ALTERNATIVE",l=!1,u=t.length,p=u-i-1,g=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!at(m);){var T=m.pop();if(T===s){l&&_h(m).idx<=p&&m.pop();continue}var A=T.def,E=T.idx,O=T.ruleStack,F=T.occurrenceStack;if(!at(A)){var U=A[0];if(U===r){var K={idx:E,def:wn(A),ruleStack:ps(O),occurrenceStack:ps(F)};m.push(K)}else if(U instanceof ht)if(E<u-1){var j=E+1,ae=t[j];if(n(ae,U.terminalType)){var K={idx:j,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(K)}}else if(E===u-1)g.push({nextTokenType:U.terminalType,nextTokenOccurrence:U.idx,ruleStack:O,occurrenceStack:F}),l=!0;else throw Error("non exhaustive match");else if(U instanceof rn){var Z=An(O);Z.push(U.nonTerminalName);var re=An(F);re.push(U.idx);var K={idx:E,def:U.definition.concat(a,wn(A)),ruleStack:Z,occurrenceStack:re};m.push(K)}else if(U instanceof on){var Pe={idx:E,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(Pe),m.push(s);var _={idx:E,def:U.definition.concat(wn(A)),ruleStack:O,occurrenceStack:F};m.push(_)}else if(U instanceof Rn){var ut=new Nt({definition:U.definition,idx:U.idx}),yt=U.definition.concat([ut],wn(A)),K={idx:E,def:yt,ruleStack:O,occurrenceStack:F};m.push(K)}else if(U instanceof Fn){var je=new ht({terminalType:U.separator}),ut=new Nt({definition:[je].concat(U.definition),idx:U.idx}),yt=U.definition.concat([ut],wn(A)),K={idx:E,def:yt,ruleStack:O,occurrenceStack:F};m.push(K)}else if(U instanceof Sn){var Pe={idx:E,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(Pe),m.push(s);var je=new ht({terminalType:U.separator}),an=new Nt({definition:[je].concat(U.definition),idx:U.idx}),yt=U.definition.concat([an],wn(A)),_={idx:E,def:yt,ruleStack:O,occurrenceStack:F};m.push(_)}else if(U instanceof Nt){var Pe={idx:E,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(Pe),m.push(s);var an=new Nt({definition:U.definition,idx:U.idx}),yt=U.definition.concat([an],wn(A)),_={idx:E,def:yt,ruleStack:O,occurrenceStack:F};m.push(_)}else if(U instanceof Pn)for(var Wn=U.definition.length-1;Wn>=0;Wn--){var en=U.definition[Wn],Lt={idx:E,def:en.definition.concat(wn(A)),ruleStack:O,occurrenceStack:F};m.push(Lt),m.push(s)}else if(U instanceof Jt)m.push({idx:E,def:U.definition.concat(wn(A)),ruleStack:O,occurrenceStack:F});else if(U instanceof vr)m.push(J7(U,E,O,F));else throw Error("non exhaustive match")}}return g}function J7(e,t,n,i){var r=An(n);r.push(e.name);var a=An(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var Rc,z7,D_,ey,V_,YA,w_,zA,pp=qe(()=>{Yh();vt();QA();ki();Rc=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),z7=function(e){Rc(t,e);function t(n,i){var r=e.call(this)||this;return r.topProd=n,r.path=i,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return o(t,"AbstractNextPossibleTokensWalker"),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=An(this.path.ruleStack).reverse(),this.occurrenceStack=An(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(n,i){i===void 0&&(i=[]),this.found||e.prototype.walk.call(this,n,i)},t.prototype.walkProdRef=function(n,i,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){var a=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,a)}},t.prototype.updateExpectedNext=function(){at(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Nc),D_=function(e){Rc(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new Jt({definition:a});this.possibleTokTypes=Lc(s),this.found=!0}},t}(z7),ey=function(e){Rc(t,e);function t(n,i){var r=e.call(this)||this;return r.topRule=n,r.occurrence=i,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return o(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(Nc),V_=function(e){Rc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var a=Si(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkMany.call(this,n,i,r)},t}(ey),YA=function(e){Rc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var a=Si(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t}(ey),w_=function(e){Rc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var a=Si(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t}(ey),zA=function(e){Rc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var a=Si(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t}(ey);o(ty,"possiblePathsFrom");o(ny,"nextPossibleTokensAfter");o(J7,"expandTopLevelRule")});function U_(e){if(e instanceof on)return wt.OPTION;if(e instanceof Nt)return wt.REPETITION;if(e instanceof Rn)return wt.REPETITION_MANDATORY;if(e instanceof Fn)return wt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Sn)return wt.REPETITION_WITH_SEPARATOR;if(e instanceof Pn)return wt.ALTERNATION;throw Error("non exhaustive match")}function j_(e,t,n,i,r,a){var s=dp(e,t,n),l=X_(s)?$l:Oc;return a(s,i,l,r)}function $_(e,t,n,i,r,a){var s=gp(e,t,r,n),l=X_(s)?$l:Oc;return a(s[0],l,i)}function B_(e,t,n,i){var r=e.length,a=ui(e,function(u){return ui(u,function(p){return p.length===1})});if(t)return function(u){for(var p=ue(u,function(j){return j.GATE}),g=0;g<r;g++){var m=e[g],T=m.length,A=p[g];if(!(A!==void 0&&A.call(this)===!1))e:for(var E=0;E<T;E++){for(var O=m[E],F=O.length,U=0;U<F;U++){var K=this.LA(U+1);if(n(K,O[U])===!1)continue e}return g}}};if(a&&!i){var s=ue(e,function(u){return Ln(u)}),l=un(s,function(u,p,g){return ye(p,function(m){Ie(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),ye(m.categoryMatches,function(T){Ie(u,T)||(u[T]=g)})}),u},[]);return function(){var u=this.LA(1);return l[u.tokenTypeIdx]}}else return function(){for(var u=0;u<r;u++){var p=e[u],g=p.length;e:for(var m=0;m<g;m++){for(var T=p[m],A=T.length,E=0;E<A;E++){var O=this.LA(E+1);if(n(O,T[E])===!1)continue e}return u}}}}function H_(e,t,n){var i=ui(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Ln(e);if(a.length===1&&at(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=un(a,function(p,g,m){return p[g.tokenTypeIdx]=!0,ye(g.categoryMatches,function(T){p[T]=!0}),p},[]);return function(){var p=this.LA(1);return u[p.tokenTypeIdx]===!0}}}else return function(){e:for(var p=0;p<r;p++){for(var g=e[p],m=g.length,T=0;T<m;T++){var A=this.LA(T+1);if(t(A,g[T])===!1)continue e}return!0}return!1}}function M_(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function JA(e){for(var t=[""],n=0;n<e.length;n++){for(var i=e[n],r=[],a=0;a<t.length;a++){var s=t[a];r.push(s+"_"+i.tokenTypeIdx);for(var l=0;l<i.categoryMatches.length;l++){var u="_"+i.categoryMatches[l];r.push(s+u)}}t=r}return t}function e6(e,t,n){for(var i=0;i<e.length;i++)if(i!==n)for(var r=e[i],a=0;a<t.length;a++){var s=t[a];if(r[s]===!0)return!1}return!0}function W_(e,t){for(var n=ue(e,function(g){return ty([g],1)}),i=M_(n.length),r=ue(n,function(g){var m={};return ye(g,function(T){var A=JA(T.partialPath);ye(A,function(E){m[E]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=M_(l.length);for(var u=o(function(g){for(var m=l[g],T=0;T<m.length;T++){var A=m[T].partialPath,E=m[T].suffixDef,O=JA(A),F=e6(r,O,g);if(F||at(E)||A.length===t){var U=i[g];if(iy(U,A)===!1){U.push(A);for(var K=0;K<O.length;K++){var j=O[K];r[g][j]=!0}}}else{var ae=ty(E,s+1,A);a[g]=a[g].concat(ae),ye(ae,function(Z){var re=JA(Z.partialPath);ye(re,function(Pe){r[g][Pe]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function dp(e,t,n,i){var r=new G_(e,wt.ALTERNATION,i);return t.accept(r),W_(r.result,n)}function gp(e,t,n,i){var r=new G_(e,n);t.accept(r);var a=r.result,s=new Z7(t,e,n),l=s.startWalking(),u=new Jt({definition:a}),p=new Jt({definition:l});return W_([u,p],i)}function iy(e,t){e:for(var n=0;n<e.length;n++){var i=e[n];if(i.length===t.length){for(var r=0;r<i.length;r++){var a=t[r],s=i[r],l=a===s||s.categoryMatchesMap[a.tokenTypeIdx]!==void 0;if(l===!1)continue e}return!0}}return!1}function K_(e,t){return e.length<t.length&&ui(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function X_(e){return ui(e,function(t){return ui(t,function(n){return ui(n,function(i){return at(i.categoryMatches)})})})}var k_,wt,Z7,G_,mp=qe(()=>{vt();pp();Yh();Bl();ki();Gl();k_=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(wt||(wt={}));o(U_,"getProdType");o(j_,"buildLookaheadFuncForOr");o($_,"buildLookaheadFuncForOptionalProd");o(B_,"buildAlternativesLookAheadFunc");o(H_,"buildSingleAlternativeLookaheadFunction");Z7=function(e){k_(t,e);function t(n,i,r){var a=e.call(this)||this;return a.topProd=n,a.targetOccurrence=i,a.targetProdType=r,a}return o(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,a){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(a),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,wt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,wt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Nc),G_=function(e){k_(t,e);function t(n,i,r){var a=e.call(this)||this;return a.targetOccurrence=n,a.targetProdType=i,a.targetRef=r,a.result=[],a}return o(t,"InsideDefinitionFinderVisitor"),t.prototype.checkIsTarget=function(n,i){n.idx===this.targetOccurrence&&this.targetProdType===i&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)},t.prototype.visitOption=function(n){this.checkIsTarget(n,wt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,wt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,wt.ALTERNATION)},t}(Wr);o(M_,"initializeArrayOfArrays");o(JA,"pathToHashKeys");o(e6,"isUniquePrefixHash");o(W_,"lookAheadSequenceFromAlternatives");o(dp,"getLookaheadPathsForOr");o(gp,"getLookaheadPathsForOptionalProd");o(iy,"containsPath");o(K_,"isStrictPrefixOfPath");o(X_,"areTokenCategoriesNotUsed")});function Q_(e,t,n,i,r){var a=ue(e,function(A){return t6(A,i)}),s=ue(e,function(A){return z_(A,A,i)}),l=[],u=[],p=[];ui(s,at)&&(l=ue(e,function(A){return o6(A,i)}),u=ue(e,function(A){return a6(A,t,i)}),p=l6(e,t,i));var g=p6(e,n,i),m=ue(e,function(A){return c6(A,i)}),T=ue(e,function(A){return r6(A,e,r,i)});return Ln(a.concat(p,s,l,u,g,m,T))}function t6(e,t){var n=new i6;e.accept(n);var i=n.allProductions,r=B1(i,n6),a=hr(r,function(l){return l.length>1}),s=ue(Vn(a),function(l){var u=Si(l),p=t.buildDuplicateFoundError(e,l),g=Tr(u),m={message:p,type:Gn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},T=q_(u);return T&&(m.parameter=T),m});return s}function n6(e){return Tr(e)+"_#_"+e.idx+"_#_"+q_(e)}function q_(e){return e instanceof ht?e.terminalType.name:e instanceof rn?e.nonTerminalName:""}function r6(e,t,n,i){var r=[],a=un(t,function(l,u){return u.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Gn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function Y_(e,t,n){var i=[],r;return Vt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Gn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function z_(e,t,n,i){i===void 0&&(i=[]);var r=[],a=ry(t.definition);if(at(a))return[];var s=e.name,l=Vt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Gn.LEFT_RECURSION,ruleName:s});var u=Ic(a,i.concat([e])),p=ue(u,function(g){var m=An(i);return m.push(g),z_(e,g,n,m)});return r.concat(Ln(p))}function ry(e){var t=[];if(at(e))return t;var n=Si(e);if(n instanceof rn)t.push(n.referencedRule);else if(n instanceof Jt||n instanceof on||n instanceof Rn||n instanceof Fn||n instanceof Sn||n instanceof Nt)t=t.concat(ry(n.definition));else if(n instanceof Pn)t=Ln(ue(n.definition,function(s){return ry(s.definition)}));else if(!(n instanceof ht))throw Error("non exhaustive match");var i=Wl(n),r=e.length>1;if(i&&r){var a=wn(e);return t.concat(ry(a))}else return t}function o6(e,t){var n=new eS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){var l=ps(s.definition),u=ue(l,function(p,g){var m=ny([p],[],null,1);return at(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Gn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(Ta(u))},[]);return r}function a6(e,t,n){var i=new eS;e.accept(i);var r=i.alternations;r=ya(r,function(s){return s.ignoreAmbiguities===!0});var a=un(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=dp(u,e,p,l),m=f6(g,l,e,n),T=u6(g,l,e,n);return s.concat(m,T)},[]);return a}function c6(e,t){var n=new eS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Gn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function l6(e,t,n){var i=[];return ye(e,function(r){var a=new s6;r.accept(a);var s=a.allProductions;ye(s,function(l){var u=U_(l),p=l.maxLookahead||t,g=l.idx,m=gp(g,r,u,p),T=m[0];if(at(Ln(T))){var A=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:A,type:Gn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function f6(e,t,n,i){var r=[],a=un(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||ye(u,function(g){var m=[p];ye(e,function(T,A){p!==A&&iy(T,g)&&t.definition[A].ignoreAmbiguities!==!0&&m.push(A)}),m.length>1&&!iy(r,g)&&(r.push(g),l.push({alts:m,path:g}))}),l},[]),s=ue(a,function(l){var u=ue(l.alts,function(g){return g+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Gn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function u6(e,t,n,i){var r=[],a=un(e,function(s,l,u){var p=ue(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return ye(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=j1(a,function(T){return t.definition[T.idx].ignoreAmbiguities!==!0&&T.idx<u&&K_(T.path,p)}),m=ue(g,function(T){var A=[T.idx+1,u+1],E=t.idx===0?"":t.idx,O=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:A,prefixPath:T.path});return{message:O,type:Gn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:E,alternatives:A}});r=r.concat(m)}}),r}function p6(e,t,n){var i=[],r=ue(t,function(a){return a.name});return ye(e,function(a){var s=a.name;if(Vt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Gn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var ZA,i6,eS,s6,tS=qe(()=>{vt();vt();Er();Kl();mp();pp();ki();Gl();ZA=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(Q_,"validateGrammar");o(t6,"validateDuplicateProductions");o(n6,"identifyProductionForDuplicates");o(q_,"getExtraProductionArgument");i6=function(e){ZA(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"OccurrenceValidationCollector"),t.prototype.visitNonTerminal=function(n){this.allProductions.push(n)},t.prototype.visitOption=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t.prototype.visitAlternation=function(n){this.allProductions.push(n)},t.prototype.visitTerminal=function(n){this.allProductions.push(n)},t}(Wr);o(r6,"validateRuleDoesNotAlreadyExist");o(Y_,"validateRuleIsOverridden");o(z_,"validateNoLeftRecursion");o(ry,"getFirstNoneTerminal");eS=function(e){ZA(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return o(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t}(Wr);o(o6,"validateEmptyOrAlternative");o(a6,"validateAmbiguousAlternationAlternatives");s6=function(e){ZA(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"RepetionCollector"),t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t}(Wr);o(c6,"validateTooManyAlts");o(l6,"validateSomeNonEmptyLookaheadPath");o(f6,"checkAlternativesAmbiguities");o(u6,"checkPrefixAlternativesAmbiguities");o(p6,"checkTerminalAndNoneTerminalsNameSpace")});function oy(e){e=ip(e,{errMsgProvider:Zh});var t={};return ye(e.rules,function(n){t[n.name]=n}),F_(t,e.errMsgProvider)}function ay(e){return e=ip(e,{errMsgProvider:ys}),Q_(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function J_(e){ye(e.rules,function(t){var n=new XA;t.accept(n),ye(n.dslMethods,function(i){ye(i,function(r,a){r.idx=a+1})})})}var nS=qe(()=>{vt();__();tS();up();Kl();o(oy,"resolveGrammar");o(ay,"validateGrammar");o(J_,"assignOccurrenceIndices")});function Aa(e){return Vt(iD,e.name)}var hp,Z_,eD,tD,nD,iD,sy,Xl,cy,ly,fy,Ql=qe(()=>{vt();hp=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Z_="MismatchedTokenException",eD="NoViableAltException",tD="EarlyExitException",nD="NotAllInputParsedException",iD=[Z_,eD,tD,nD];Object.freeze(iD);o(Aa,"isRecognitionException");sy=function(e){hp(t,e);function t(n,i){var r=this.constructor,a=e.call(this,n)||this;return a.token=i,a.resyncedTokens=[],Object.setPrototypeOf(a,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return o(t,"RecognitionException"),t}(Error),Xl=function(e){hp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=Z_,a}return o(t,"MismatchedTokenException"),t}(sy),cy=function(e){hp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=eD,a}return o(t,"NoViableAltException"),t}(sy),ly=function(e){hp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=nD,r}return o(t,"NotAllInputParsedException"),t}(sy),fy=function(e){hp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=tD,a}return o(t,"EarlyExitException"),t}(sy)});function rD(e){this.name=rS,this.message=e}function d6(e,t,n,i,r,a,s){var l=this.getKeyForAutomaticLookahead(i,r),u=this.firstAfterRepMap[l];if(u===void 0){var p=this.getCurrRuleFullName(),g=this.getGAstProductions()[p],m=new a(g,r);u=m.startWalking(),this.firstAfterRepMap[l]=u}var T=u.token,A=u.occurrence,E=u.isEndOfRule;this.RULE_STACK.length===1&&E&&T===void 0&&(T=Gr,A=1),this.shouldInRepetitionRecoveryBeTried(T,A,s)&&this.tryInRepetitionRecovery(e,t,n,T)}var iS,rS,oD,oS=qe(()=>{hs();vt();Ql();qA();Er();iS={},rS="InRuleRecoveryException";o(rD,"InRuleRecoveryException");rD.prototype=Error.prototype;oD=function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Ie(t,"recoveryEnabled")?t.recoveryEnabled:Zi.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=d6)},e.prototype.getTokenToInsert=function(t){var n=ms(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return n.isInsertedInRecovery=!0,n},e.prototype.canTokenTypeBeInsertedInRecovery=function(t){return!0},e.prototype.tryInRepetitionRecovery=function(t,n,i,r){for(var a=this,s=this.findReSyncTokenType(),l=this.exportLexerState(),u=[],p=!1,g=this.LA(1),m=this.LA(1),T=o(function(){var A=a.LA(0),E=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:g,previous:A,ruleName:a.getCurrRuleFullName()}),O=new Xl(E,g,a.LA(0));O.resyncedTokens=ps(u),a.SAVE_ERROR(O)},"generateErrorMessage");!p;)if(this.tokenMatcher(m,r)){T();return}else if(i.call(this)){T(),t.apply(this,n);return}else this.tokenMatcher(m,s)?p=!0:(m=this.SKIP_TOKEN(),this.addToResyncTokens(m,u));this.importLexerState(l)},e.prototype.shouldInRepetitionRecoveryBeTried=function(t,n,i){return!(i===!1||t===void 0||n===void 0||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,n)))},e.prototype.getFollowsForInRuleRecovery=function(t,n){var i=this.getCurrentGrammarPath(t,n),r=this.getNextPossibleTokenTypes(i);return r},e.prototype.tryInRuleRecovery=function(t,n){if(this.canRecoverWithSingleTokenInsertion(t,n)){var i=this.getTokenToInsert(t);return i}if(this.canRecoverWithSingleTokenDeletion(t)){var r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new rD("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(t,n){return this.canRecoverWithSingleTokenInsertion(t,n)||this.canRecoverWithSingleTokenDeletion(t)},e.prototype.canRecoverWithSingleTokenInsertion=function(t,n){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(t)||at(n))return!1;var r=this.LA(1),a=va(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return a},e.prototype.canRecoverWithSingleTokenDeletion=function(t){var n=this.tokenMatcher(this.LA(2),t);return n},e.prototype.isInCurrentRuleReSyncSet=function(t){var n=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(n);return Vt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Vt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return iS;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return ue(n,function(r,a){return a===0?iS:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=ue(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return Ln(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===iS)return[Gr];var n=t.ruleName+t.idxInCallingRule+Jh+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Gr)||n.push(t),n},e.prototype.reSyncTo=function(t){for(var n=[],i=this.LA(1);this.tokenMatcher(i,t)===!1;)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,n);return ps(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=An(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return ue(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();o(d6,"attemptInRepetitionRecovery")});function dy(e,t,n){return n|t|e}var aD,Ho,g6,uy,py,yp,vp,Tp,ql,hae,gy=qe(()=>{aD=4,Ho=8,g6=8,uy=1<<Ho,py=2<<Ho,yp=3<<Ho,vp=4<<Ho,Tp=5<<Ho,ql=6<<Ho;o(dy,"getKeyForAutomaticLookahead");hae=32-g6});var sD,cD=qe(()=>{mp();vt();Er();gy();Kl();sD=function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Ie(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:Zi.dynamicTokensEnabled,this.maxLookahead=Ie(t,"maxLookahead")?t.maxLookahead:Zi.maxLookahead,this.lookAheadFuncsCache=MA()?new Map:[],MA()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;ye(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=N_(i),a=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,g=r.repetitionWithSeparator;ye(a,function(m){var T=m.idx===0?"":m.idx;n.TRACE_INIT(""+Tr(m)+T,function(){var A=j_(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),E=dy(n.fullRuleNameToShort[i.name],uy,m.idx);n.setLaFuncCache(E,A)})}),ye(s,function(m){n.computeLookaheadFunc(i,m.idx,yp,wt.REPETITION,m.maxLookahead,Tr(m))}),ye(l,function(m){n.computeLookaheadFunc(i,m.idx,py,wt.OPTION,m.maxLookahead,Tr(m))}),ye(u,function(m){n.computeLookaheadFunc(i,m.idx,vp,wt.REPETITION_MANDATORY,m.maxLookahead,Tr(m))}),ye(p,function(m){n.computeLookaheadFunc(i,m.idx,ql,wt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,Tr(m))}),ye(g,function(m){n.computeLookaheadFunc(i,m.idx,Tp,wt.REPETITION_WITH_SEPARATOR,m.maxLookahead,Tr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=$_(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=dy(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return H_(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return B_(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return dy(i,t,n)},e.prototype.getLaFuncFromCache=function(t){},e.prototype.getLaFuncFromMap=function(t){return this.lookAheadFuncsCache.get(t)},e.prototype.getLaFuncFromObj=function(t){return this.lookAheadFuncsCache[t]},e.prototype.setLaFuncCache=function(t,n){},e.prototype.setLaFuncCacheUsingMap=function(t,n){this.lookAheadFuncsCache.set(t,n)},e.prototype.setLaFuncUsingObj=function(t,n){this.lookAheadFuncsCache[t]=n},e}()});function aS(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function sS(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function lD(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function fD(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var uD=qe(()=>{o(aS,"setNodeLocationOnlyOffset");o(sS,"setNodeLocationFull");o(lD,"addTerminalToCst");o(fD,"addNoneTerminalToCst")});function dD(e){return Ep(e.constructor)}function Ep(e){var t=e.name;return t||"anonymous"}function cS(e,t){var n=Object.getOwnPropertyDescriptor(e,pD);return Pi(n)||n.configurable?(Object.defineProperty(e,pD,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var pD,lS=qe(()=>{vt();o(dD,"classNameFromInstance");pD="name";o(Ep,"functionName");o(cS,"defineNameProp")});function m6(e,t){for(var n=wi(e),i=n.length,r=0;r<i;r++)for(var a=n[r],s=e[a],l=s.length,u=0;u<l;u++){var p=s[u];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function gD(e,t){var n=o(function(){},"derivedConstructor");cS(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(fi(r)&&(r=r[0]),!Pi(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=h6(this,t);if(!at(r)){var a=ue(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+Ep(this.constructor)+`>:
|
|
165
165
|
`+(""+a.join(`
|
|
166
166
|
|
|
167
167
|
`).replace(/\n/g,`
|
|
168
|
-
`)))}},"validateVisitor")};return n.prototype=i,n.prototype.constructor=n,n._RULE_NAMES=t,n}function
|
|
168
|
+
`)))}},"validateVisitor")};return n.prototype=i,n.prototype.constructor=n,n._RULE_NAMES=t,n}function mD(e,t,n){var i=o(function(){},"derivedConstructor");cS(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return ye(t,function(a){r[a]=m6}),i.prototype=r,i.prototype.constructor=i,i}function h6(e,t){var n=y6(e,t),i=T6(e,t);return n.concat(i)}function y6(e,t){var n=ue(t,function(i){if(!uo(e[i]))return{msg:"Missing visitor method: <"+i+"> on "+Ep(e.constructor)+" CST Visitor.",type:my.MISSING_METHOD,methodName:i}});return Ta(n)}function T6(e,t){var n=[];for(var i in e)uo(e[i])&&!Vt(v6,i)&&!Vt(t,i)&&n.push({msg:"Redundant visitor method: <"+i+"> on "+Ep(e.constructor)+` CST Visitor
|
|
169
169
|
There is no Grammar Rule corresponding to this method's name.
|
|
170
|
-
`,type:gy.REDUNDANT_METHOD,methodName:i});return n}var gy,y6,mD=qe(()=>{yt();cS();o(g6,"defaultVisit");o(dD,"createBaseSemanticVisitorConstructor");o(gD,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(gy||(gy={}));o(m6,"validateVisitor");o(h6,"validateMissingCstMethods");y6=["constructor","visit","validateVisitor"];o(v6,"validateRedundantMethods")});var hD,yD=qe(()=>{fD();yt();mD();Tr();hD=function(){function e(){}return o(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=Ie(t,"nodeLocationTracking")?t.nodeLocationTracking:Ji.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Mn,this.cstFinallyStateUpdate=Mn,this.cstPostTerminal=Mn,this.cstPostNonTerminal=Mn,this.cstPostRule=Mn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=aS,this.setNodeLocationFromNode=aS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=oS,this.setNodeLocationFromNode=oS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=Mn,this.setInitialNodeLocation=Mn;else throw Error('Invalid <nodeLocationTracking> config option: "'+t.nodeLocationTracking+'"')},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(t){t.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(t){var n=this.LA(1);t.location={startOffset:n.startOffset,startLine:n.startLine,startColumn:n.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstInvocationStateUpdate=function(t,n){var i={name:t,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},e.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},e.prototype.cstPostRuleFull=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?(i.endOffset=n.endOffset,i.endLine=n.endLine,i.endColumn=n.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?i.endOffset=n.endOffset:i.startOffset=NaN},e.prototype.cstPostTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];cD(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];lD(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Si(this.baseCstVisitorConstructor)){var t=dD(this.className,Vi(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Si(this.baseCstVisitorWithDefaultsConstructor)){var t=gD(this.className,Vi(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.getLastExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]},e}()});var vD,TD=qe(()=>{Tr();vD=function(){function e(){}return o(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:o(function(){return this.tokVector},"get"),set:o(function(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},"set"),enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):ql},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?ql:this.tokVector[n]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(t){this.currIdx=t},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}()});var ED,bD=qe(()=>{yt();Xl();Tr();fp();eS();wi();ED=function(){function e(){}return o(e,"RecognizerApi"),e.prototype.ACTION=function(t){return t.call(this)},e.prototype.consume=function(t,n,i){return this.consumeInternal(n,t,i)},e.prototype.subrule=function(t,n,i){return this.subruleInternal(n,t,i)},e.prototype.option=function(t,n){return this.optionInternal(n,t)},e.prototype.or=function(t,n){return this.orInternal(n,t)},e.prototype.many=function(t,n){return this.manyInternal(t,n)},e.prototype.atLeastOne=function(t,n){return this.atLeastOneInternal(t,n)},e.prototype.CONSUME=function(t,n){return this.consumeInternal(t,0,n)},e.prototype.CONSUME1=function(t,n){return this.consumeInternal(t,1,n)},e.prototype.CONSUME2=function(t,n){return this.consumeInternal(t,2,n)},e.prototype.CONSUME3=function(t,n){return this.consumeInternal(t,3,n)},e.prototype.CONSUME4=function(t,n){return this.consumeInternal(t,4,n)},e.prototype.CONSUME5=function(t,n){return this.consumeInternal(t,5,n)},e.prototype.CONSUME6=function(t,n){return this.consumeInternal(t,6,n)},e.prototype.CONSUME7=function(t,n){return this.consumeInternal(t,7,n)},e.prototype.CONSUME8=function(t,n){return this.consumeInternal(t,8,n)},e.prototype.CONSUME9=function(t,n){return this.consumeInternal(t,9,n)},e.prototype.SUBRULE=function(t,n){return this.subruleInternal(t,0,n)},e.prototype.SUBRULE1=function(t,n){return this.subruleInternal(t,1,n)},e.prototype.SUBRULE2=function(t,n){return this.subruleInternal(t,2,n)},e.prototype.SUBRULE3=function(t,n){return this.subruleInternal(t,3,n)},e.prototype.SUBRULE4=function(t,n){return this.subruleInternal(t,4,n)},e.prototype.SUBRULE5=function(t,n){return this.subruleInternal(t,5,n)},e.prototype.SUBRULE6=function(t,n){return this.subruleInternal(t,6,n)},e.prototype.SUBRULE7=function(t,n){return this.subruleInternal(t,7,n)},e.prototype.SUBRULE8=function(t,n){return this.subruleInternal(t,8,n)},e.prototype.SUBRULE9=function(t,n){return this.subruleInternal(t,9,n)},e.prototype.OPTION=function(t){return this.optionInternal(t,0)},e.prototype.OPTION1=function(t){return this.optionInternal(t,1)},e.prototype.OPTION2=function(t){return this.optionInternal(t,2)},e.prototype.OPTION3=function(t){return this.optionInternal(t,3)},e.prototype.OPTION4=function(t){return this.optionInternal(t,4)},e.prototype.OPTION5=function(t){return this.optionInternal(t,5)},e.prototype.OPTION6=function(t){return this.optionInternal(t,6)},e.prototype.OPTION7=function(t){return this.optionInternal(t,7)},e.prototype.OPTION8=function(t){return this.optionInternal(t,8)},e.prototype.OPTION9=function(t){return this.optionInternal(t,9)},e.prototype.OR=function(t){return this.orInternal(t,0)},e.prototype.OR1=function(t){return this.orInternal(t,1)},e.prototype.OR2=function(t){return this.orInternal(t,2)},e.prototype.OR3=function(t){return this.orInternal(t,3)},e.prototype.OR4=function(t){return this.orInternal(t,4)},e.prototype.OR5=function(t){return this.orInternal(t,5)},e.prototype.OR6=function(t){return this.orInternal(t,6)},e.prototype.OR7=function(t){return this.orInternal(t,7)},e.prototype.OR8=function(t){return this.orInternal(t,8)},e.prototype.OR9=function(t){return this.orInternal(t,9)},e.prototype.MANY=function(t){this.manyInternal(0,t)},e.prototype.MANY1=function(t){this.manyInternal(1,t)},e.prototype.MANY2=function(t){this.manyInternal(2,t)},e.prototype.MANY3=function(t){this.manyInternal(3,t)},e.prototype.MANY4=function(t){this.manyInternal(4,t)},e.prototype.MANY5=function(t){this.manyInternal(5,t)},e.prototype.MANY6=function(t){this.manyInternal(6,t)},e.prototype.MANY7=function(t){this.manyInternal(7,t)},e.prototype.MANY8=function(t){this.manyInternal(8,t)},e.prototype.MANY9=function(t){this.manyInternal(9,t)},e.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},e.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},e.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},e.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},e.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},e.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},e.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},e.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},e.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},e.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},e.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},e.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},e.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},e.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},e.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},e.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},e.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},e.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},e.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},e.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},e.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},e.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},e.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},e.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},e.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},e.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},e.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},e.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},e.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},e.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},e.prototype.RULE=function(t,n,i){if(i===void 0&&(i=Yl),Dt(this.definedRulesNames,t)){var r=hs.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Hn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=Yl);var r=[];r=r.concat(q_(t,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var a=this.defineRule(t,n,i);return this[t]=a,a},e.prototype.BACKTRACK=function(t,n){return function(){this.isBackTrackingStack.push(1);var i=this.saveRecogState();try{return t.apply(this,n),!0}catch(r){if(ba(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Qh(Dn(this.gastProductionsCache))},e}()});var AD,SD=qe(()=>{yt();dy();Xl();gp();up();Tr();rS();ms();$l();cS();AD=function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=pD(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=jl,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Ie(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
|
|
170
|
+
`,type:my.REDUNDANT_METHOD,methodName:i});return n}var my,v6,hD=qe(()=>{vt();lS();o(m6,"defaultVisit");o(gD,"createBaseSemanticVisitorConstructor");o(mD,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(my||(my={}));o(h6,"validateVisitor");o(y6,"validateMissingCstMethods");v6=["constructor","visit","validateVisitor"];o(T6,"validateRedundantMethods")});var yD,vD=qe(()=>{uD();vt();hD();Er();yD=function(){function e(){}return o(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=Ie(t,"nodeLocationTracking")?t.nodeLocationTracking:Zi.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Mn,this.cstFinallyStateUpdate=Mn,this.cstPostTerminal=Mn,this.cstPostNonTerminal=Mn,this.cstPostRule=Mn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=sS,this.setNodeLocationFromNode=sS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=aS,this.setNodeLocationFromNode=aS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=Mn,this.setInitialNodeLocation=Mn;else throw Error('Invalid <nodeLocationTracking> config option: "'+t.nodeLocationTracking+'"')},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(t){t.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(t){var n=this.LA(1);t.location={startOffset:n.startOffset,startLine:n.startLine,startColumn:n.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstInvocationStateUpdate=function(t,n){var i={name:t,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},e.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},e.prototype.cstPostRuleFull=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?(i.endOffset=n.endOffset,i.endLine=n.endLine,i.endColumn=n.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?i.endOffset=n.endOffset:i.startOffset=NaN},e.prototype.cstPostTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];lD(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];fD(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Pi(this.baseCstVisitorConstructor)){var t=gD(this.className,wi(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Pi(this.baseCstVisitorWithDefaultsConstructor)){var t=mD(this.className,wi(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=t,t}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.getLastExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var t=this.RULE_STACK;return t[t.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var t=this.RULE_OCCURRENCE_STACK;return t[t.length-1]},e}()});var TD,ED=qe(()=>{Er();TD=function(){function e(){}return o(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:o(function(){return this.tokVector},"get"),set:o(function(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},"set"),enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Yl},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?Yl:this.tokVector[n]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(t){this.currIdx=t},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}()});var bD,AD=qe(()=>{vt();Ql();Er();up();tS();ki();bD=function(){function e(){}return o(e,"RecognizerApi"),e.prototype.ACTION=function(t){return t.call(this)},e.prototype.consume=function(t,n,i){return this.consumeInternal(n,t,i)},e.prototype.subrule=function(t,n,i){return this.subruleInternal(n,t,i)},e.prototype.option=function(t,n){return this.optionInternal(n,t)},e.prototype.or=function(t,n){return this.orInternal(n,t)},e.prototype.many=function(t,n){return this.manyInternal(t,n)},e.prototype.atLeastOne=function(t,n){return this.atLeastOneInternal(t,n)},e.prototype.CONSUME=function(t,n){return this.consumeInternal(t,0,n)},e.prototype.CONSUME1=function(t,n){return this.consumeInternal(t,1,n)},e.prototype.CONSUME2=function(t,n){return this.consumeInternal(t,2,n)},e.prototype.CONSUME3=function(t,n){return this.consumeInternal(t,3,n)},e.prototype.CONSUME4=function(t,n){return this.consumeInternal(t,4,n)},e.prototype.CONSUME5=function(t,n){return this.consumeInternal(t,5,n)},e.prototype.CONSUME6=function(t,n){return this.consumeInternal(t,6,n)},e.prototype.CONSUME7=function(t,n){return this.consumeInternal(t,7,n)},e.prototype.CONSUME8=function(t,n){return this.consumeInternal(t,8,n)},e.prototype.CONSUME9=function(t,n){return this.consumeInternal(t,9,n)},e.prototype.SUBRULE=function(t,n){return this.subruleInternal(t,0,n)},e.prototype.SUBRULE1=function(t,n){return this.subruleInternal(t,1,n)},e.prototype.SUBRULE2=function(t,n){return this.subruleInternal(t,2,n)},e.prototype.SUBRULE3=function(t,n){return this.subruleInternal(t,3,n)},e.prototype.SUBRULE4=function(t,n){return this.subruleInternal(t,4,n)},e.prototype.SUBRULE5=function(t,n){return this.subruleInternal(t,5,n)},e.prototype.SUBRULE6=function(t,n){return this.subruleInternal(t,6,n)},e.prototype.SUBRULE7=function(t,n){return this.subruleInternal(t,7,n)},e.prototype.SUBRULE8=function(t,n){return this.subruleInternal(t,8,n)},e.prototype.SUBRULE9=function(t,n){return this.subruleInternal(t,9,n)},e.prototype.OPTION=function(t){return this.optionInternal(t,0)},e.prototype.OPTION1=function(t){return this.optionInternal(t,1)},e.prototype.OPTION2=function(t){return this.optionInternal(t,2)},e.prototype.OPTION3=function(t){return this.optionInternal(t,3)},e.prototype.OPTION4=function(t){return this.optionInternal(t,4)},e.prototype.OPTION5=function(t){return this.optionInternal(t,5)},e.prototype.OPTION6=function(t){return this.optionInternal(t,6)},e.prototype.OPTION7=function(t){return this.optionInternal(t,7)},e.prototype.OPTION8=function(t){return this.optionInternal(t,8)},e.prototype.OPTION9=function(t){return this.optionInternal(t,9)},e.prototype.OR=function(t){return this.orInternal(t,0)},e.prototype.OR1=function(t){return this.orInternal(t,1)},e.prototype.OR2=function(t){return this.orInternal(t,2)},e.prototype.OR3=function(t){return this.orInternal(t,3)},e.prototype.OR4=function(t){return this.orInternal(t,4)},e.prototype.OR5=function(t){return this.orInternal(t,5)},e.prototype.OR6=function(t){return this.orInternal(t,6)},e.prototype.OR7=function(t){return this.orInternal(t,7)},e.prototype.OR8=function(t){return this.orInternal(t,8)},e.prototype.OR9=function(t){return this.orInternal(t,9)},e.prototype.MANY=function(t){this.manyInternal(0,t)},e.prototype.MANY1=function(t){this.manyInternal(1,t)},e.prototype.MANY2=function(t){this.manyInternal(2,t)},e.prototype.MANY3=function(t){this.manyInternal(3,t)},e.prototype.MANY4=function(t){this.manyInternal(4,t)},e.prototype.MANY5=function(t){this.manyInternal(5,t)},e.prototype.MANY6=function(t){this.manyInternal(6,t)},e.prototype.MANY7=function(t){this.manyInternal(7,t)},e.prototype.MANY8=function(t){this.manyInternal(8,t)},e.prototype.MANY9=function(t){this.manyInternal(9,t)},e.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},e.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},e.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},e.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},e.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},e.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},e.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},e.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},e.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},e.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},e.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},e.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},e.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},e.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},e.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},e.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},e.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},e.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},e.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},e.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},e.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},e.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},e.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},e.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},e.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},e.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},e.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},e.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},e.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},e.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},e.prototype.RULE=function(t,n,i){if(i===void 0&&(i=zl),Vt(this.definedRulesNames,t)){var r=ys.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Gn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=zl);var r=[];r=r.concat(Y_(t,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var a=this.defineRule(t,n,i);return this[t]=a,a},e.prototype.BACKTRACK=function(t,n){return function(){this.isBackTrackingStack.push(1);var i=this.saveRecogState();try{return t.apply(this,n),!0}catch(r){if(Aa(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return qh(Vn(this.gastProductionsCache))},e}()});var SD,PD=qe(()=>{vt();gy();Ql();mp();pp();Er();oS();hs();Bl();lS();SD=function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=dD(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=$l,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Ie(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
|
|
171
171
|
See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0
|
|
172
|
-
For Further details.`);if(
|
|
172
|
+
For Further details.`);if(fi(t)){if(at(t))throw Error(`A Token Vocabulary cannot be empty.
|
|
173
173
|
Note that the first argument for the parser constructor
|
|
174
174
|
is no longer a Token vector (since v4.0).`);if(typeof t[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
|
|
175
175
|
See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0
|
|
176
|
-
For Further details.`)}if(
|
|
177
|
-
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=Ie(i,"resyncEnabled")?i.resyncEnabled:Yl.resyncEnabled,a=Ie(i,"recoveryValueFunc")?i.recoveryValueFunc:Yl.recoveryValueFunc,s=this.ruleShortNameIdx<<oD+Bo;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=t,this.fullRuleNameToShort[t]=s;function l(g){try{if(this.outputCst===!0){n.apply(this,g);var m=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(m),m}else return n.apply(this,g)}catch(T){return this.invokeRuleCatch(T,r,a)}finally{this.ruleFinallyStateUpdate()}}o(l,"invokeRuleWithTry");var u;u=o(function(g,m){return g===void 0&&(g=0),this.ruleInvocationStateUpdate(s,t,g),l.call(this,m)},"wrappedGrammarRule");var p="ruleName";return u[p]=t,u.originalGrammarAction=n,u},e.prototype.invokeRuleCatch=function(t,n,i){var r=this.RULE_STACK.length===1,a=n&&!this.isBackTracking()&&this.recoveryEnabled;if(ba(t)){var s=t;if(a){var l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))if(s.resyncedTokens=this.reSyncTo(l),this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];return u.recoveredNode=!0,u}else return i();else{if(this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];u.recoveredNode=!0,s.partialCstResult=u}throw s}}else{if(r)return this.moveToTerminatedState(),i();throw s}}else throw t},e.prototype.optionInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(uy,n);return this.optionInternalLogic(t,n,i)},e.prototype.optionInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(t.DEF!==void 0){if(s=t.DEF,l=t.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=t;if(a.call(this)===!0)return s.call(this)},e.prototype.atLeastOneInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(yp,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=n;if(a.call(this)===!0)for(var p=this.doSingleRepetition(s);a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,Vt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,yp,t,V_)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Ql,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,YA],u,Ql,t,YA)}else throw this.raiseEarlyExitException(t,Vt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(hp,t);return this.manyInternalLogic(t,n,i)},e.prototype.manyInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookaheadFunction")}}else s=n;for(var p=!0;a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);this.attemptInRepetitionRecovery(this.manyInternal,[t,n],a,hp,t,D_,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(vp,t);this.manySepFirstInternalLogic(t,n,i)},e.prototype.manySepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,qA],u,vp,t,qA)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,a){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,a],i,Ql,t,a)},e.prototype.doSingleRepetition=function(t){var n=this.getLexerPosition();t.call(this);var i=this.getLexerPosition();return i>n},e.prototype.orInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(fy,n),r=li(t)?t:t.DEF,a=this.getLaFuncFromCache(i),s=a.call(this,r);if(s!==void 0){var l=r[s];return l.ALT.call(this)}this.raiseNoAltException(n,t.ERR_MSG)},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){var t=this.LA(1),n=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new cy(n,t))}},e.prototype.subruleInternal=function(t,n,i){var r;try{var a=i!==void 0?i.ARGS:void 0;return r=t.call(this,n,a),this.cstPostNonTerminal(r,i!==void 0&&i.LABEL!==void 0?i.LABEL:t.ruleName),r}catch(s){this.subruleInternalError(s,i,t.ruleName)}},e.prototype.subruleInternalError=function(t,n,i){throw ba(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,n!==void 0&&n.LABEL!==void 0?n.LABEL:i),delete t.partialCstResult),t},e.prototype.consumeInternal=function(t,n,i){var r;try{var a=this.LA(1);this.tokenMatcher(a,t)===!0?(this.consumeToken(),r=a):this.consumeInternalError(t,a,i)}catch(s){r=this.consumeInternalRecovery(t,n,s)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:t.name,r),r},e.prototype.consumeInternalError=function(t,n,i){var r,a=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Kl(r,n,a))},e.prototype.consumeInternalRecovery=function(t,n,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){var r=this.getFollowsForInRuleRecovery(t,n);try{return this.tryInRuleRecovery(t,r)}catch(a){throw a.name===iS?i:a}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=bn(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:n,CST_STACK:this.CST_STACK}},e.prototype.reloadRecogState=function(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(t,n,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(n,t)},e.prototype.isBackTracking=function(){return this.isBackTrackingStack.length!==0},e.prototype.getCurrRuleFullName=function(){var t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]},e.prototype.shortRuleNameToFullName=function(t){return this.shortRuleNameToFull[t]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),Hr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var PD,xD=qe(()=>{Xl();yt();gp();Tr();PD=function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Ie(t,"errorMessageProvider")?t.errorMessageProvider:Ji.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(ba(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:bn(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:o(function(){return bn(this._errors)},"get"),set:o(function(t){this._errors=t},"set"),enumerable:!1,configurable:!0}),e.prototype.raiseEarlyExitException=function(t,n,i){for(var r=this.getCurrRuleFullName(),a=this.getGAstProductions()[r],s=dp(t,a,n,this.maxLookahead),l=s[0],u=[],p=1;p<=this.maxLookahead;p++)u.push(this.LA(p));var g=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:l,actual:u,previous:this.LA(0),customUserDescription:i,ruleName:r});throw this.SAVE_ERROR(new ly(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=pp(t,r,this.maxLookahead),s=[],l=1;l<=this.maxLookahead;l++)s.push(this.LA(l));var u=this.LA(0),p=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:u,customUserDescription:n,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new sy(p,this.LA(1),u))},e}()});var CD,ID=qe(()=>{up();yt();CD=function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Si(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return ty([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Ai(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new __(r,t).startWalking();return a},e}()});function Ep(e,t,n,i){i===void 0&&(i=!1),my(n);var r=rp(this.recordingProdStack),a=fo(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),Ie(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),r.definition.push(s),this.recordingProdStack.pop(),hy}function E6(e,t){var n=this;my(t);var i=rp(this.recordingProdStack),r=li(e)===!1,a=r===!1?e:e.DEF,s=new Sn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Ie(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=Dh(a,function(u){return fo(u.GATE)});return s.hasPredicates=l,i.definition.push(s),ye(a,function(u){var p=new zt({definition:[]});s.definition.push(p),Ie(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:Ie(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),hy}function LD(e){return e===0?"":""+e}function my(e){if(e<0||e>ND){var t=new Error("Invalid DSL Method idx value: <"+e+`>
|
|
178
|
-
`+("Idx value must be a none negative value smaller than "+(
|
|
179
|
-
See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(
|
|
180
|
-
See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,children:{}},
|
|
176
|
+
For Further details.`)}if(fi(t))this.tokensMap=un(t,function(s,l){return s[l.name]=l,s},{});else if(Ie(t,"modes")&&ui(Ln(Vn(t.modes)),m_)){var i=Ln(Vn(t.modes)),r=np(i);this.tokensMap=un(r,function(s,l){return s[l.name]=l,s},{})}else if(Dh(t))this.tokensMap=ds(t);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=Gr;var a=ui(Vn(t),function(s){return at(s.categoryMatches)});this.tokenMatcher=a?$l:Oc,Ea(Vn(this.tokensMap))},e.prototype.defineRule=function(t,n,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+t+`> may not be defined after the 'performSelfAnalysis' method has been called'
|
|
177
|
+
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=Ie(i,"resyncEnabled")?i.resyncEnabled:zl.resyncEnabled,a=Ie(i,"recoveryValueFunc")?i.recoveryValueFunc:zl.recoveryValueFunc,s=this.ruleShortNameIdx<<aD+Ho;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=t,this.fullRuleNameToShort[t]=s;function l(g){try{if(this.outputCst===!0){n.apply(this,g);var m=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(m),m}else return n.apply(this,g)}catch(T){return this.invokeRuleCatch(T,r,a)}finally{this.ruleFinallyStateUpdate()}}o(l,"invokeRuleWithTry");var u;u=o(function(g,m){return g===void 0&&(g=0),this.ruleInvocationStateUpdate(s,t,g),l.call(this,m)},"wrappedGrammarRule");var p="ruleName";return u[p]=t,u.originalGrammarAction=n,u},e.prototype.invokeRuleCatch=function(t,n,i){var r=this.RULE_STACK.length===1,a=n&&!this.isBackTracking()&&this.recoveryEnabled;if(Aa(t)){var s=t;if(a){var l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))if(s.resyncedTokens=this.reSyncTo(l),this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];return u.recoveredNode=!0,u}else return i();else{if(this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];u.recoveredNode=!0,s.partialCstResult=u}throw s}}else{if(r)return this.moveToTerminatedState(),i();throw s}}else throw t},e.prototype.optionInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(py,n);return this.optionInternalLogic(t,n,i)},e.prototype.optionInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(t.DEF!==void 0){if(s=t.DEF,l=t.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=t;if(a.call(this)===!0)return s.call(this)},e.prototype.atLeastOneInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(vp,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=n;if(a.call(this)===!0)for(var p=this.doSingleRepetition(s);a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,vp,t,w_)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(ql,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,zA],u,ql,t,zA)}else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(yp,t);return this.manyInternalLogic(t,n,i)},e.prototype.manyInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookaheadFunction")}}else s=n;for(var p=!0;a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);this.attemptInRepetitionRecovery(this.manyInternal,[t,n],a,yp,t,V_,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Tp,t);this.manySepFirstInternalLogic(t,n,i)},e.prototype.manySepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,YA],u,Tp,t,YA)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,a){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,a],i,ql,t,a)},e.prototype.doSingleRepetition=function(t){var n=this.getLexerPosition();t.call(this);var i=this.getLexerPosition();return i>n},e.prototype.orInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(uy,n),r=fi(t)?t:t.DEF,a=this.getLaFuncFromCache(i),s=a.call(this,r);if(s!==void 0){var l=r[s];return l.ALT.call(this)}this.raiseNoAltException(n,t.ERR_MSG)},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){var t=this.LA(1),n=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new ly(n,t))}},e.prototype.subruleInternal=function(t,n,i){var r;try{var a=i!==void 0?i.ARGS:void 0;return r=t.call(this,n,a),this.cstPostNonTerminal(r,i!==void 0&&i.LABEL!==void 0?i.LABEL:t.ruleName),r}catch(s){this.subruleInternalError(s,i,t.ruleName)}},e.prototype.subruleInternalError=function(t,n,i){throw Aa(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,n!==void 0&&n.LABEL!==void 0?n.LABEL:i),delete t.partialCstResult),t},e.prototype.consumeInternal=function(t,n,i){var r;try{var a=this.LA(1);this.tokenMatcher(a,t)===!0?(this.consumeToken(),r=a):this.consumeInternalError(t,a,i)}catch(s){r=this.consumeInternalRecovery(t,n,s)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:t.name,r),r},e.prototype.consumeInternalError=function(t,n,i){var r,a=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Xl(r,n,a))},e.prototype.consumeInternalRecovery=function(t,n,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){var r=this.getFollowsForInRuleRecovery(t,n);try{return this.tryInRuleRecovery(t,r)}catch(a){throw a.name===rS?i:a}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=An(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:n,CST_STACK:this.CST_STACK}},e.prototype.reloadRecogState=function(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(t,n,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(n,t)},e.prototype.isBackTracking=function(){return this.isBackTrackingStack.length!==0},e.prototype.getCurrRuleFullName=function(){var t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]},e.prototype.shortRuleNameToFullName=function(t){return this.shortRuleNameToFull[t]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),Gr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var CD,xD=qe(()=>{Ql();vt();mp();Er();CD=function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Ie(t,"errorMessageProvider")?t.errorMessageProvider:Zi.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(Aa(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:An(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:o(function(){return An(this._errors)},"get"),set:o(function(t){this._errors=t},"set"),enumerable:!1,configurable:!0}),e.prototype.raiseEarlyExitException=function(t,n,i){for(var r=this.getCurrRuleFullName(),a=this.getGAstProductions()[r],s=gp(t,a,n,this.maxLookahead),l=s[0],u=[],p=1;p<=this.maxLookahead;p++)u.push(this.LA(p));var g=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:l,actual:u,previous:this.LA(0),customUserDescription:i,ruleName:r});throw this.SAVE_ERROR(new fy(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=dp(t,r,this.maxLookahead),s=[],l=1;l<=this.maxLookahead;l++)s.push(this.LA(l));var u=this.LA(0),p=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:u,customUserDescription:n,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new cy(p,this.LA(1),u))},e}()});var ID,OD=qe(()=>{pp();vt();ID=function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Pi(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return ny([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Si(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new D_(r,t).startWalking();return a},e}()});function bp(e,t,n,i){i===void 0&&(i=!1),hy(n);var r=op(this.recordingProdStack),a=uo(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),Ie(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),r.definition.push(s),this.recordingProdStack.pop(),yy}function b6(e,t){var n=this;hy(t);var i=op(this.recordingProdStack),r=fi(e)===!1,a=r===!1?e:e.DEF,s=new Pn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Ie(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=Vh(a,function(u){return uo(u.GATE)});return s.hasPredicates=l,i.definition.push(s),ye(a,function(u){var p=new Jt({definition:[]});s.definition.push(p),Ie(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:Ie(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),yy}function RD(e){return e===0?"":""+e}function hy(e){if(e<0||e>LD){var t=new Error("Invalid DSL Method idx value: <"+e+`>
|
|
178
|
+
`+("Idx value must be a none negative value smaller than "+(LD+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var yy,ND,LD,FD,_D,E6,DD,VD=qe(()=>{vt();ki();sp();Bl();hs();Er();gy();yy={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(yy);ND=!0,LD=Math.pow(2,Ho)-1,FD=lp({name:"RECORDING_PHASE_TOKEN",pattern:Mi.NA});Ea([FD]);_D=ms(FD,`This IToken indicates the Parser is in Recording Phase
|
|
179
|
+
See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(_D);E6={name:`This CSTNode indicates the Parser is in Recording Phase
|
|
180
|
+
See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,children:{}},DD=function(){function e(){}return o(e,"GastRecorder"),e.prototype.initGastRecorder=function(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1},e.prototype.enableRecording=function(){var t=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",function(){for(var n=o(function(r){var a=r>0?r:"";t["CONSUME"+a]=function(s,l){return this.consumeInternalRecord(s,r,l)},t["SUBRULE"+a]=function(s,l){return this.subruleInternalRecord(s,r,l)},t["OPTION"+a]=function(s){return this.optionInternalRecord(s,r)},t["OR"+a]=function(s){return this.orInternalRecord(s,r)},t["MANY"+a]=function(s){this.manyInternalRecord(r,s)},t["MANY_SEP"+a]=function(s){this.manySepFirstInternalRecord(r,s)},t["AT_LEAST_ONE"+a]=function(s){this.atLeastOneInternalRecord(r,s)},t["AT_LEAST_ONE_SEP"+a]=function(s){this.atLeastOneSepFirstInternalRecord(r,s)}},"_loop_1"),i=0;i<10;i++)n(i);t.consume=function(r,a,s){return this.consumeInternalRecord(a,r,s)},t.subrule=function(r,a,s){return this.subruleInternalRecord(a,r,s)},t.option=function(r,a){return this.optionInternalRecord(a,r)},t.or=function(r,a){return this.orInternalRecord(a,r)},t.many=function(r,a){this.manyInternalRecord(r,a)},t.atLeastOne=function(r,a){this.atLeastOneInternalRecord(r,a)},t.ACTION=t.ACTION_RECORD,t.BACKTRACK=t.BACKTRACK_RECORD,t.LA=t.LA_RECORD})},e.prototype.disableRecording=function(){var t=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",function(){for(var n=0;n<10;n++){var i=n>0?n:"";delete t["CONSUME"+i],delete t["SUBRULE"+i],delete t["OPTION"+i],delete t["OR"+i],delete t["MANY"+i],delete t["MANY_SEP"+i],delete t["AT_LEAST_ONE"+i],delete t["AT_LEAST_ONE_SEP"+i]}delete t.consume,delete t.subrule,delete t.option,delete t.or,delete t.many,delete t.atLeastOne,delete t.ACTION,delete t.BACKTRACK,delete t.LA})},e.prototype.ACTION_RECORD=function(t){},e.prototype.BACKTRACK_RECORD=function(t,n){return function(){return!0}},e.prototype.LA_RECORD=function(t){return Yl},e.prototype.topLevelRuleRecord=function(t,n){try{var i=new vr({definition:[],name:t});return i.name=t,this.recordingProdStack.push(i),n.call(this),this.recordingProdStack.pop(),i}catch(r){if(r.KNOWN_RECORDER_ERROR!==!0)try{r.message=r.message+`
|
|
181
181
|
This error was thrown during the "grammar recording phase" For more info see:
|
|
182
|
-
https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}},e.prototype.optionInternalRecord=function(t,n){return
|
|
183
|
-
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=
|
|
184
|
-
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=
|
|
182
|
+
https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}},e.prototype.optionInternalRecord=function(t,n){return bp.call(this,on,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){bp.call(this,Rn,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){bp.call(this,Fn,n,t,ND)},e.prototype.manyInternalRecord=function(t,n){bp.call(this,Nt,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){bp.call(this,Sn,n,t,ND)},e.prototype.orInternalRecord=function(t,n){return b6.call(this,t,n)},e.prototype.subruleInternalRecord=function(t,n,i){if(hy(n),!t||Ie(t,"ruleName")===!1){var r=new Error("<SUBRULE"+RD(n)+"> argument is invalid"+(" expecting a Parser method reference but got: <"+JSON.stringify(t)+">")+(`
|
|
183
|
+
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=op(this.recordingProdStack),s=t.ruleName,l=new rn({idx:n,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?E6:yy},e.prototype.consumeInternalRecord=function(t,n,i){if(hy(n),!GA(t)){var r=new Error("<CONSUME"+RD(n)+"> argument is invalid"+(" expecting a TokenType reference but got: <"+JSON.stringify(t)+">")+(`
|
|
184
|
+
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=op(this.recordingProdStack),s=new ht({idx:n,terminalType:t});return a.definition.push(s),_D},e}();o(bp,"recordProd");o(b6,"recordOrProd");o(RD,"getIdxSuffix");o(hy,"assertMethodIdxIsValid")});var wD,MD=qe(()=>{vt();Er();wD=function(){function e(){}return o(e,"PerformanceTracer"),e.prototype.initPerformanceTracer=function(t){if(Ie(t,"traceInitPerf")){var n=t.traceInitPerf,i=typeof n=="number";this.traceInitMaxIdent=i?n:1/0,this.traceInitPerf=i?n>0:n}else this.traceInitMaxIdent=0,this.traceInitPerf=Zi.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=kh(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e}()});function UD(e){return e===void 0&&(e=void 0),function(){return e}}var kD,Yl,Zi,zl,Gn,fS,jD,$D,Er=qe(()=>{vt();R_();hs();up();nS();oS();cD();vD();ED();AD();PD();xD();OD();VD();MD();kD=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Yl=ms(Gr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Yl);Zi=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:fp,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),zl=Object.freeze({recoveryValueFunc:o(function(){},"recoveryValueFunc"),resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(Gn||(Gn={}));o(UD,"EMPTY_ALT");fS=function(){function e(t,n){this.definitionErrors=[],this.selfAnalysisDone=!1;var i=this;if(i.initErrorHandler(n),i.initLexerAdapter(),i.initLooksAhead(n),i.initRecognizerEngine(t,n),i.initRecoverable(n),i.initTreeBuilder(n),i.initContentAssist(),i.initGastRecorder(n),i.initPerformanceTracer(n),Ie(n,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
|
|
185
185
|
Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
|
|
186
186
|
See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
|
|
187
|
-
For further details.`);this.skipValidations=Ie(n,"skipValidations")?n.skipValidations:
|
|
187
|
+
For further details.`);this.skipValidations=Ie(n,"skipValidations")?n.skipValidations:Zi.skipValidations}return o(e,"Parser"),e.performSelfAnalysis=function(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",function(){var n;t.selfAnalysisDone=!0;var i=t.className;t.TRACE_INIT("toFastProps",function(){Mh(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),ye(t.definedRulesNames,function(a){var s=t[a],l=s.originalGrammarAction,u=void 0;t.TRACE_INIT(a+" Rule",function(){u=t.topLevelRuleRecord(a,l)}),t.gastProductionsCache[a]=u})}finally{t.disableRecording()}});var r=[];if(t.TRACE_INIT("Grammar Resolving",function(){r=oy({rules:Vn(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(at(r)&&t.skipValidations===!1){var a=ay({rules:Vn(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Vn(t.tokensMap),errMsgProvider:ys,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,a)}}),at(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var a=L_(Vn(t.gastProductionsCache));t.resyncFollows=a}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(Vn(t.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!at(t.definitionErrors))throw n=ue(t.definitionErrors,function(a){return a.message}),new Error(`Parser Definition Errors detected:
|
|
188
188
|
`+n.join(`
|
|
189
189
|
-------------------------------
|
|
190
|
-
`))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();
|
|
190
|
+
`))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();G1(fS,[oD,sD,yD,TD,SD,bD,CD,ID,DD,wD]);jD=function(e){kD(t,e);function t(n,i){i===void 0&&(i=Zi);var r=this,a=ds(i);return a.outputCst=!0,r=e.call(this,n,a)||this,r}return o(t,"CstParser"),t}(fS),$D=function(e){kD(t,e);function t(n,i){i===void 0&&(i=Zi);var r=this,a=ds(i);return a.outputCst=!1,r=e.call(this,n,a)||this,r}return o(t,"EmbeddedActionsParser"),t}(fS)});function BD(e,t){var n=t===void 0?{}:t,i=n.resourceBase,r=i===void 0?"https://unpkg.com/chevrotain@"+tp+"/diagrams/":i,a=n.css,s=a===void 0?"https://unpkg.com/chevrotain@"+tp+"/diagrams/diagrams.css":a,l=`
|
|
191
191
|
<!-- This is a generated file -->
|
|
192
192
|
<!DOCTYPE html>
|
|
193
193
|
<meta charset="utf-8">
|
|
@@ -215,7 +215,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
215
215
|
var diagramsDiv = document.getElementById("diagrams");
|
|
216
216
|
main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv);
|
|
217
217
|
</script>
|
|
218
|
-
`;return l+u+p+g+m+T}var
|
|
218
|
+
`;return l+u+p+g+m+T}var HD=qe(()=>{DA();o(BD,"createSyntaxDiagramsCode")});function WD(e){return`
|
|
219
219
|
(function (root, factory) {
|
|
220
220
|
if (typeof define === 'function' && define.amd) {
|
|
221
221
|
// AMD. Register as an anonymous module.
|
|
@@ -231,16 +231,16 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
|
|
|
231
231
|
}
|
|
232
232
|
}(typeof self !== 'undefined' ? self : this, function (chevrotain) {
|
|
233
233
|
|
|
234
|
-
`+
|
|
234
|
+
`+XD(e)+`
|
|
235
235
|
|
|
236
236
|
return {
|
|
237
237
|
`+e.name+": "+e.name+`
|
|
238
238
|
}
|
|
239
239
|
}));
|
|
240
|
-
`}function
|
|
241
|
-
`+
|
|
240
|
+
`}function KD(e){return`
|
|
241
|
+
`+XD(e)+`
|
|
242
242
|
return new `+e.name+`(tokenVocabulary, config)
|
|
243
|
-
`}function
|
|
243
|
+
`}function XD(e){var t=`
|
|
244
244
|
function `+e.name+`(tokenVocabulary, config) {
|
|
245
245
|
// invoke super constructor
|
|
246
246
|
// No support for embedded actions currently, so we can 'hardcode'
|
|
@@ -249,7 +249,7 @@ function `+e.name+`(tokenVocabulary, config) {
|
|
|
249
249
|
|
|
250
250
|
const $ = this
|
|
251
251
|
|
|
252
|
-
`+
|
|
252
|
+
`+A6(e.rules)+`
|
|
253
253
|
|
|
254
254
|
// very important to call this after all the rules have been defined.
|
|
255
255
|
// otherwise the parser may not work correctly as it will lack information
|
|
@@ -260,38 +260,38 @@ function `+e.name+`(tokenVocabulary, config) {
|
|
|
260
260
|
// inheritance as implemented in javascript in the previous decade... :(
|
|
261
261
|
`+e.name+`.prototype = Object.create(chevrotain.CstParser.prototype)
|
|
262
262
|
`+e.name+".prototype.constructor = "+e.name+`
|
|
263
|
-
`;return t}function
|
|
264
|
-
`)}function
|
|
265
|
-
`;o(
|
|
263
|
+
`;return t}function A6(e){var t=ue(e,function(n){return S6(n,1)});return t.join(`
|
|
264
|
+
`)}function S6(e,t){var n=Ui(t,'$.RULE("'+e.name+'", function() {')+ei;return n+=vy(e.definition,t+1),n+=Ui(t+1,"})")+ei,n}function P6(e,t){var n=e.terminalType.name;return Ui(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+ei)}function C6(e,t){return Ui(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+ei)}function x6(e,t){var n=Ui(t,"$.OR"+e.idx+"([")+ei,i=ue(e.definition,function(r){return I6(r,t+1)});return n+=i.join(","+ei),n+=ei+Ui(t,"])"+ei),n}function I6(e,t){var n=Ui(t,"{")+ei;return n+=Ui(t+1,"ALT: function() {")+ei,n+=vy(e.definition,t+1),n+=Ui(t+1,"}")+ei,n+=Ui(t,"}"),n}function O6(e,t){if(e instanceof rn)return C6(e,t);if(e instanceof on)return Ap("OPTION",e,t);if(e instanceof Rn)return Ap("AT_LEAST_ONE",e,t);if(e instanceof Fn)return Ap("AT_LEAST_ONE_SEP",e,t);if(e instanceof Sn)return Ap("MANY_SEP",e,t);if(e instanceof Nt)return Ap("MANY",e,t);if(e instanceof Pn)return x6(e,t);if(e instanceof ht)return P6(e,t);if(e instanceof Jt)return vy(e.definition,t);throw Error("non exhaustive match")}function Ap(e,t,n){var i=Ui(n,"$."+(e+t.idx)+"(");return t.separator?(i+="{"+ei,i+=Ui(n+1,"SEP: this.tokensMap."+t.separator.name)+","+ei,i+="DEF: "+GD(t.definition,n+2)+ei,i+=Ui(n,"}")+ei):i+=GD(t.definition,n+1),i+=Ui(n,")")+ei,i}function GD(e,t){var n="function() {"+ei;return n+=vy(e,t),n+=Ui(t,"}")+ei,n}function vy(e,t){var n="";return ye(e,function(i){n+=O6(i,t+1)}),n}function Ui(e,t){var n=Array(e*4+1).join(" ");return n+t}var ei,QD=qe(()=>{vt();ki();ei=`
|
|
265
|
+
`;o(WD,"genUmdModule");o(KD,"genWrapperFunction");o(XD,"genClass");o(A6,"genAllRules");o(S6,"genRule");o(P6,"genTerminal");o(C6,"genNonTerminal");o(x6,"genAlternation");o(I6,"genSingleAlt");o(O6,"genProd");o(Ap,"genDSLRule");o(GD,"genDefFunction");o(vy,"genDefinition");o(Ui,"indent")});function qD(e){var t=KD({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(Ey(),sg(Ty)))}}function YD(e){return WD({name:e.name,rules:e.rules})}var zD=qe(()=>{QD();o(qD,"generateParserFactory");o(YD,"generateParserModule")});var Ty={};Ws(Ty,{Alternation:()=>Pn,Alternative:()=>Jt,CstParser:()=>jD,EMPTY_ALT:()=>UD,EOF:()=>Gr,EarlyExitException:()=>fy,EmbeddedActionsParser:()=>$D,GAstVisitor:()=>Wr,Lexer:()=>Mi,LexerDefinitionErrorType:()=>pn,MismatchedTokenException:()=>Xl,NoViableAltException:()=>cy,NonTerminal:()=>rn,NotAllInputParsedException:()=>ly,Option:()=>on,Parser:()=>L6,ParserDefinitionErrorType:()=>Gn,Repetition:()=>Nt,RepetitionMandatory:()=>Rn,RepetitionMandatoryWithSeparator:()=>Fn,RepetitionWithSeparator:()=>Sn,Rule:()=>vr,Terminal:()=>ht,VERSION:()=>tp,assignOccurrenceIndices:()=>J_,clearCache:()=>N6,createSyntaxDiagramsCode:()=>BD,createToken:()=>lp,createTokenInstance:()=>ms,defaultGrammarResolverErrorProvider:()=>Zh,defaultGrammarValidatorErrorProvider:()=>ys,defaultLexerErrorProvider:()=>Qh,defaultParserErrorProvider:()=>fp,generateParserFactory:()=>qD,generateParserModule:()=>YD,isRecognitionException:()=>Aa,resolveGrammar:()=>oy,serializeGrammar:()=>qh,serializeProduction:()=>Hl,tokenLabel:()=>Bo,tokenMatcher:()=>C_,tokenName:()=>P_,validateGrammar:()=>ay});function N6(){console.warn(`The clearCache function was 'soft' removed from the Chevrotain API.
|
|
266
266
|
It performs no action other than printing this message.
|
|
267
|
-
Please avoid using it as it will be completely removed in the future`)}var
|
|
268
|
-
See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0`)}return o(e,"Parser"),e}()});var
|
|
269
|
-
`],lineTerminatorsPattern:/\n|\r\n/g});nV.exports={xmlLexer:J6,tokensDictionary:ZD}});var rV=Ye((bce,iV)=>{var{CstParser:Z6,tokenMatcher:e9}=(Ty(),ag(vy)),{tokensDictionary:xt}=pS(),gS=class gS extends Z6{constructor(){super(xt,{maxLookahead:1,recoveryEnabled:!0,nodeLocationTracking:"full"}),this.deletionRecoveryEnabled=!0;let t=this;t.RULE("document",()=>{t.OPTION(()=>{t.SUBRULE(t.prolog)}),t.MANY(()=>{t.SUBRULE(t.misc)}),t.OPTION2(()=>{t.SUBRULE(t.docTypeDecl)}),t.MANY2(()=>{t.SUBRULE2(t.misc)}),t.SUBRULE(t.element),t.MANY3(()=>{t.SUBRULE3(t.misc)})}),t.RULE("prolog",()=>{t.CONSUME(xt.XMLDeclOpen),t.MANY(()=>{t.SUBRULE(t.attribute)}),t.CONSUME(xt.SPECIAL_CLOSE)}),t.RULE("docTypeDecl",()=>{t.CONSUME(xt.DocType),t.CONSUME(xt.Name),t.OPTION(()=>{t.SUBRULE(t.externalID)}),t.CONSUME(xt.CLOSE)}),t.RULE("externalID",()=>{t.OR([{GATE:o(()=>t.LA(1).image==="SYSTEM","GATE"),ALT:o(()=>{t.CONSUME2(xt.Name,{LABEL:"System"}),t.CONSUME(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")},{GATE:o(()=>t.LA(1).image==="PUBLIC","GATE"),ALT:o(()=>{t.CONSUME3(xt.Name,{LABEL:"Public"}),t.CONSUME2(xt.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")}])}),t.RULE("content",()=>{t.MANY(()=>{t.OR([{ALT:o(()=>t.SUBRULE(t.element),"ALT")},{ALT:o(()=>t.SUBRULE(t.chardata),"ALT")},{ALT:o(()=>t.SUBRULE(t.reference),"ALT")},{ALT:o(()=>t.CONSUME(xt.CData),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")}])})}),t.RULE("element",()=>{t.CONSUME(xt.OPEN);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.Name)}finally{this.deletionRecoveryEnabled=!0}t.MANY(()=>{t.SUBRULE(t.attribute)}),t.OR([{ALT:o(()=>{t.CONSUME(xt.CLOSE,{LABEL:"START_CLOSE"}),t.SUBRULE(t.content),t.CONSUME(xt.SLASH_OPEN),t.CONSUME2(xt.Name,{LABEL:"END_NAME"}),t.CONSUME2(xt.CLOSE,{LABEL:"END"})},"ALT")},{ALT:o(()=>{t.CONSUME(xt.SLASH_CLOSE)},"ALT")}])}),t.RULE("reference",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.EntityRef),"ALT")},{ALT:o(()=>t.CONSUME(xt.CharRef),"ALT")}])}),t.RULE("attribute",()=>{t.CONSUME(xt.Name);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.EQUALS),t.CONSUME(xt.STRING)}finally{this.deletionRecoveryEnabled=!0}}),t.RULE("chardata",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.TEXT),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),t.RULE("misc",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),this.performSelfAnalysis()}canRecoverWithSingleTokenDeletion(t){return this.deletionRecoveryEnabled===!1?!1:super.canRecoverWithSingleTokenDeletion(t)}findReSyncTokenType(){let t=this.flattenFollowSet(),n=this.LA(1),i=2;for(;;){let r=t.find(a=>e9(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(gS,"Parser");var dS=gS,t9=new dS;iV.exports={xmlParser:t9}});var mS=Ye((Sce,oV)=>{var{xmlLexer:n9}=pS(),{xmlParser:Ey}=rV();oV.exports={parse:o(function(t){let n=n9.tokenize(t);return Ey.input=n.tokens,{cst:Ey.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:Ey.errors}},"parse"),BaseXmlCstVisitor:Ey.getBaseCstVisitorConstructor()}});var Pp=Ye((Jl,Sp)=>{(function(){var e,t="4.17.21",n=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",r="Expected a function",a="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",l=500,u="__lodash_placeholder__",p=1,g=2,m=4,T=1,A=2,E=1,O=2,F=4,U=8,K=16,j=32,ae=64,Z=128,re=256,Pe=512,_=30,ft="...",ht=800,je=16,on=1,Gn=2,Zt=3,Nt=1/0,Re=9007199254740991,Ii=17976931348623157e292,Ct=NaN,Mt=4294967295,an=Mt-1,ji=Mt>>>1,Fe=[["ary",Z],["bind",E],["bindKey",O],["curry",U],["curryRight",K],["flip",Pe],["partial",j],["partialRight",ae],["rearg",re]],Wn="[object Arguments]",Cr="[object Array]",at="[object AsyncFunction]",I="[object Boolean]",S="[object Date]",Y="[object DOMException]",V="[object Error]",De="[object Function]",Lt="[object GeneratorFunction]",Qe="[object Map]",wt="[object Number]",yn="[object Null]",sn="[object Object]",Bt="[object Promise]",ti="[object Proxy]",nr="[object RegExp]",pn="[object Set]",gi="[object String]",Ht="[object Symbol]",Ko="[object Undefined]",$i="[object WeakMap]",Of="[object WeakSet]",_s="[object ArrayBuffer]",Ir="[object DataView]",Nf="[object Float32Array]",Lf="[object Float64Array]",Rf="[object Int8Array]",Ds="[object Int16Array]",k="[object Int32Array]",B="[object Uint8Array]",Q="[object Uint8ClampedArray]",ce="[object Uint16Array]",Le="[object Uint32Array]",dn=/\b__p \+= '';/g,xn=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,me=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,xe=RegExp(me.source),Oe=RegExp(Te.source),rt=/<%-([\s\S]+?)%>/g,Gt=/<%([\s\S]+?)%>/g,cn=/<%=([\s\S]+?)%>/g,ir=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hd=/^\w*$/,ov=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ff=/[\\^$.*+?()[\]{}|]/g,uw=RegExp(Ff.source),av=/^\s+/,pw=/\s/,dw=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gw=/\{\n\/\* \[wrapped with (.+)\] \*/,mw=/,? & /,hw=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,yw=/[()=,{}\[\]\/\s]/,vw=/\\(\\)?/g,Tw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Zx=/\w*$/,Ew=/^[-+]0x[0-9a-f]+$/i,bw=/^0b[01]+$/i,Aw=/^\[object .+?Constructor\]$/,Sw=/^0o[0-7]+$/i,Pw=/^(?:0|[1-9]\d*)$/,xw=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yd=/($^)/,Cw=/['\n\r\u2028\u2029\\]/g,vd="\\ud800-\\udfff",Iw="\\u0300-\\u036f",Ow="\\ufe20-\\ufe2f",Nw="\\u20d0-\\u20ff",eC=Iw+Ow+Nw,tC="\\u2700-\\u27bf",nC="a-z\\xdf-\\xf6\\xf8-\\xff",Lw="\\xac\\xb1\\xd7\\xf7",Rw="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Fw="\\u2000-\\u206f",_w=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",iC="A-Z\\xc0-\\xd6\\xd8-\\xde",rC="\\ufe0e\\ufe0f",oC=Lw+Rw+Fw+_w,sv="['\u2019]",Dw="["+vd+"]",aC="["+oC+"]",Td="["+eC+"]",sC="\\d+",Vw="["+tC+"]",cC="["+nC+"]",lC="[^"+vd+oC+sC+tC+nC+iC+"]",cv="\\ud83c[\\udffb-\\udfff]",Mw="(?:"+Td+"|"+cv+")",fC="[^"+vd+"]",lv="(?:\\ud83c[\\udde6-\\uddff]){2}",fv="[\\ud800-\\udbff][\\udc00-\\udfff]",$c="["+iC+"]",uC="\\u200d",pC="(?:"+cC+"|"+lC+")",ww="(?:"+$c+"|"+lC+")",dC="(?:"+sv+"(?:d|ll|m|re|s|t|ve))?",gC="(?:"+sv+"(?:D|LL|M|RE|S|T|VE))?",mC=Mw+"?",hC="["+rC+"]?",kw="(?:"+uC+"(?:"+[fC,lv,fv].join("|")+")"+hC+mC+")*",Uw="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jw="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",yC=hC+mC+kw,$w="(?:"+[Vw,lv,fv].join("|")+")"+yC,Bw="(?:"+[fC+Td+"?",Td,lv,fv,Dw].join("|")+")",Hw=RegExp(sv,"g"),Gw=RegExp(Td,"g"),uv=RegExp(cv+"(?="+cv+")|"+Bw+yC,"g"),Ww=RegExp([$c+"?"+cC+"+"+dC+"(?="+[aC,$c,"$"].join("|")+")",ww+"+"+gC+"(?="+[aC,$c+pC,"$"].join("|")+")",$c+"?"+pC+"+"+dC,$c+"+"+gC,jw,Uw,sC,$w].join("|"),"g"),Kw=RegExp("["+uC+vd+eC+rC+"]"),Xw=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qw=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],qw=-1,en={};en[Nf]=en[Lf]=en[Rf]=en[Ds]=en[k]=en[B]=en[Q]=en[ce]=en[Le]=!0,en[Wn]=en[Cr]=en[_s]=en[I]=en[Ir]=en[S]=en[V]=en[De]=en[Qe]=en[wt]=en[sn]=en[nr]=en[pn]=en[gi]=en[$i]=!1;var Qt={};Qt[Wn]=Qt[Cr]=Qt[_s]=Qt[Ir]=Qt[I]=Qt[S]=Qt[Nf]=Qt[Lf]=Qt[Rf]=Qt[Ds]=Qt[k]=Qt[Qe]=Qt[wt]=Qt[sn]=Qt[nr]=Qt[pn]=Qt[gi]=Qt[Ht]=Qt[B]=Qt[Q]=Qt[ce]=Qt[Le]=!0,Qt[V]=Qt[De]=Qt[$i]=!1;var Yw={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},zw={"&":"&","<":"<",">":">",'"':""","'":"'"},Jw={"&":"&","<":"<",">":">",""":'"',"'":"'"},Zw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},e2=parseFloat,t2=parseInt,vC=typeof global=="object"&&global&&global.Object===Object&&global,n2=typeof self=="object"&&self&&self.Object===Object&&self,Kn=vC||n2||Function("return this")(),pv=typeof Jl=="object"&&Jl&&!Jl.nodeType&&Jl,Vs=pv&&typeof Sp=="object"&&Sp&&!Sp.nodeType&&Sp,TC=Vs&&Vs.exports===pv,dv=TC&&vC.process,Or=function(){try{var M=Vs&&Vs.require&&Vs.require("util").types;return M||dv&&dv.binding&&dv.binding("util")}catch{}}(),EC=Or&&Or.isArrayBuffer,bC=Or&&Or.isDate,AC=Or&&Or.isMap,SC=Or&&Or.isRegExp,PC=Or&&Or.isSet,xC=Or&&Or.isTypedArray;function rr(M,X,W){switch(W.length){case 0:return M.call(X);case 1:return M.call(X,W[0]);case 2:return M.call(X,W[0],W[1]);case 3:return M.call(X,W[0],W[1],W[2])}return M.apply(X,W)}o(rr,"apply");function i2(M,X,W,be){for(var Ge=-1,At=M==null?0:M.length;++Ge<At;){var kn=M[Ge];X(be,kn,W(kn),M)}return be}o(i2,"arrayAggregator");function Nr(M,X){for(var W=-1,be=M==null?0:M.length;++W<be&&X(M[W],W,M)!==!1;);return M}o(Nr,"arrayEach");function r2(M,X){for(var W=M==null?0:M.length;W--&&X(M[W],W,M)!==!1;);return M}o(r2,"arrayEachRight");function CC(M,X){for(var W=-1,be=M==null?0:M.length;++W<be;)if(!X(M[W],W,M))return!1;return!0}o(CC,"arrayEvery");function Ia(M,X){for(var W=-1,be=M==null?0:M.length,Ge=0,At=[];++W<be;){var kn=M[W];X(kn,W,M)&&(At[Ge++]=kn)}return At}o(Ia,"arrayFilter");function Ed(M,X){var W=M==null?0:M.length;return!!W&&Bc(M,X,0)>-1}o(Ed,"arrayIncludes");function gv(M,X,W){for(var be=-1,Ge=M==null?0:M.length;++be<Ge;)if(W(X,M[be]))return!0;return!1}o(gv,"arrayIncludesWith");function ln(M,X){for(var W=-1,be=M==null?0:M.length,Ge=Array(be);++W<be;)Ge[W]=X(M[W],W,M);return Ge}o(ln,"arrayMap");function Oa(M,X){for(var W=-1,be=X.length,Ge=M.length;++W<be;)M[Ge+W]=X[W];return M}o(Oa,"arrayPush");function mv(M,X,W,be){var Ge=-1,At=M==null?0:M.length;for(be&&At&&(W=M[++Ge]);++Ge<At;)W=X(W,M[Ge],Ge,M);return W}o(mv,"arrayReduce");function o2(M,X,W,be){var Ge=M==null?0:M.length;for(be&&Ge&&(W=M[--Ge]);Ge--;)W=X(W,M[Ge],Ge,M);return W}o(o2,"arrayReduceRight");function hv(M,X){for(var W=-1,be=M==null?0:M.length;++W<be;)if(X(M[W],W,M))return!0;return!1}o(hv,"arraySome");var a2=yv("length");function s2(M){return M.split("")}o(s2,"asciiToArray");function c2(M){return M.match(hw)||[]}o(c2,"asciiWords");function IC(M,X,W){var be;return W(M,function(Ge,At,kn){if(X(Ge,At,kn))return be=At,!1}),be}o(IC,"baseFindKey");function bd(M,X,W,be){for(var Ge=M.length,At=W+(be?1:-1);be?At--:++At<Ge;)if(X(M[At],At,M))return At;return-1}o(bd,"baseFindIndex");function Bc(M,X,W){return X===X?b2(M,X,W):bd(M,OC,W)}o(Bc,"baseIndexOf");function l2(M,X,W,be){for(var Ge=W-1,At=M.length;++Ge<At;)if(be(M[Ge],X))return Ge;return-1}o(l2,"baseIndexOfWith");function OC(M){return M!==M}o(OC,"baseIsNaN");function NC(M,X){var W=M==null?0:M.length;return W?Tv(M,X)/W:Ct}o(NC,"baseMean");function yv(M){return function(X){return X==null?e:X[M]}}o(yv,"baseProperty");function vv(M){return function(X){return M==null?e:M[X]}}o(vv,"basePropertyOf");function LC(M,X,W,be,Ge){return Ge(M,function(At,kn,Wt){W=be?(be=!1,At):X(W,At,kn,Wt)}),W}o(LC,"baseReduce");function f2(M,X){var W=M.length;for(M.sort(X);W--;)M[W]=M[W].value;return M}o(f2,"baseSortBy");function Tv(M,X){for(var W,be=-1,Ge=M.length;++be<Ge;){var At=X(M[be]);At!==e&&(W=W===e?At:W+At)}return W}o(Tv,"baseSum");function Ev(M,X){for(var W=-1,be=Array(M);++W<M;)be[W]=X(W);return be}o(Ev,"baseTimes");function u2(M,X){return ln(X,function(W){return[W,M[W]]})}o(u2,"baseToPairs");function RC(M){return M&&M.slice(0,VC(M)+1).replace(av,"")}o(RC,"baseTrim");function or(M){return function(X){return M(X)}}o(or,"baseUnary");function bv(M,X){return ln(X,function(W){return M[W]})}o(bv,"baseValues");function _f(M,X){return M.has(X)}o(_f,"cacheHas");function FC(M,X){for(var W=-1,be=M.length;++W<be&&Bc(X,M[W],0)>-1;);return W}o(FC,"charsStartIndex");function _C(M,X){for(var W=M.length;W--&&Bc(X,M[W],0)>-1;);return W}o(_C,"charsEndIndex");function p2(M,X){for(var W=M.length,be=0;W--;)M[W]===X&&++be;return be}o(p2,"countHolders");var d2=vv(Yw),g2=vv(zw);function m2(M){return"\\"+Zw[M]}o(m2,"escapeStringChar");function h2(M,X){return M==null?e:M[X]}o(h2,"getValue");function Hc(M){return Kw.test(M)}o(Hc,"hasUnicode");function y2(M){return Xw.test(M)}o(y2,"hasUnicodeWord");function T2(M){for(var X,W=[];!(X=M.next()).done;)W.push(X.value);return W}o(T2,"iteratorToArray");function Av(M){var X=-1,W=Array(M.size);return M.forEach(function(be,Ge){W[++X]=[Ge,be]}),W}o(Av,"mapToArray");function DC(M,X){return function(W){return M(X(W))}}o(DC,"overArg");function Na(M,X){for(var W=-1,be=M.length,Ge=0,At=[];++W<be;){var kn=M[W];(kn===X||kn===u)&&(M[W]=u,At[Ge++]=W)}return At}o(Na,"replaceHolders");function Ad(M){var X=-1,W=Array(M.size);return M.forEach(function(be){W[++X]=be}),W}o(Ad,"setToArray");function E2(M){var X=-1,W=Array(M.size);return M.forEach(function(be){W[++X]=[be,be]}),W}o(E2,"setToPairs");function b2(M,X,W){for(var be=W-1,Ge=M.length;++be<Ge;)if(M[be]===X)return be;return-1}o(b2,"strictIndexOf");function A2(M,X,W){for(var be=W+1;be--;)if(M[be]===X)return be;return be}o(A2,"strictLastIndexOf");function Gc(M){return Hc(M)?P2(M):a2(M)}o(Gc,"stringSize");function Yr(M){return Hc(M)?x2(M):s2(M)}o(Yr,"stringToArray");function VC(M){for(var X=M.length;X--&&pw.test(M.charAt(X)););return X}o(VC,"trimmedEndIndex");var S2=vv(Jw);function P2(M){for(var X=uv.lastIndex=0;uv.test(M);)++X;return X}o(P2,"unicodeSize");function x2(M){return M.match(uv)||[]}o(x2,"unicodeToArray");function C2(M){return M.match(Ww)||[]}o(C2,"unicodeWords");var I2=o(function M(X){X=X==null?Kn:La.defaults(Kn.Object(),X,La.pick(Kn,Qw));var W=X.Array,be=X.Date,Ge=X.Error,At=X.Function,kn=X.Math,Wt=X.Object,Sv=X.RegExp,O2=X.String,Lr=X.TypeError,Sd=W.prototype,N2=At.prototype,Wc=Wt.prototype,Pd=X["__core-js_shared__"],xd=N2.toString,Rt=Wc.hasOwnProperty,L2=0,MC=function(){var c=/[^.]+$/.exec(Pd&&Pd.keys&&Pd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Cd=Wc.toString,R2=xd.call(Wt),F2=Kn._,_2=Sv("^"+xd.call(Rt).replace(Ff,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Id=TC?X.Buffer:e,Ra=X.Symbol,Od=X.Uint8Array,wC=Id?Id.allocUnsafe:e,Nd=DC(Wt.getPrototypeOf,Wt),kC=Wt.create,UC=Wc.propertyIsEnumerable,Ld=Sd.splice,jC=Ra?Ra.isConcatSpreadable:e,Df=Ra?Ra.iterator:e,Ms=Ra?Ra.toStringTag:e,Rd=function(){try{var c=$s(Wt,"defineProperty");return c({},"",{}),c}catch{}}(),D2=X.clearTimeout!==Kn.clearTimeout&&X.clearTimeout,V2=be&&be.now!==Kn.Date.now&&be.now,M2=X.setTimeout!==Kn.setTimeout&&X.setTimeout,Fd=kn.ceil,_d=kn.floor,Pv=Wt.getOwnPropertySymbols,w2=Id?Id.isBuffer:e,$C=X.isFinite,k2=Sd.join,U2=DC(Wt.keys,Wt),Un=kn.max,mi=kn.min,j2=be.now,$2=X.parseInt,BC=kn.random,B2=Sd.reverse,xv=$s(X,"DataView"),Vf=$s(X,"Map"),Cv=$s(X,"Promise"),Kc=$s(X,"Set"),Mf=$s(X,"WeakMap"),wf=$s(Wt,"create"),Dd=Mf&&new Mf,Xc={},H2=Bs(xv),G2=Bs(Vf),W2=Bs(Cv),K2=Bs(Kc),X2=Bs(Mf),Vd=Ra?Ra.prototype:e,kf=Vd?Vd.valueOf:e,HC=Vd?Vd.toString:e;function P(c){if(vn(c)&&!Xe(c)&&!(c instanceof ut)){if(c instanceof Rr)return c;if(Rt.call(c,"__wrapped__"))return GI(c)}return new Rr(c)}o(P,"lodash");var Qc=function(){function c(){}return o(c,"object"),function(f){if(!gn(f))return{};if(kC)return kC(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function Md(){}o(Md,"baseLodash");function Rr(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}o(Rr,"LodashWrapper"),P.templateSettings={escape:rt,evaluate:Gt,interpolate:cn,variable:"",imports:{_:P}},P.prototype=Md.prototype,P.prototype.constructor=P,Rr.prototype=Qc(Md.prototype),Rr.prototype.constructor=Rr;function ut(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Mt,this.__views__=[]}o(ut,"LazyWrapper");function Q2(){var c=new ut(this.__wrapped__);return c.__actions__=Bi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Bi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Bi(this.__views__),c}o(Q2,"lazyClone");function q2(){if(this.__filtered__){var c=new ut(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(q2,"lazyReverse");function Y2(){var c=this.__wrapped__.value(),f=this.__dir__,d=Xe(c),v=f<0,b=d?c.length:0,C=cU(0,b,this.__views__),L=C.start,R=C.end,w=R-L,z=v?R:L-1,J=this.__iteratees__,ee=J.length,ge=0,Ne=mi(w,this.__takeCount__);if(!d||!v&&b==w&&Ne==w)return dI(c,this.__actions__);var we=[];e:for(;w--&&ge<Ne;){z+=f;for(var Ze=-1,ke=c[z];++Ze<ee;){var st=J[Ze],dt=st.iteratee,cr=st.type,Li=dt(ke);if(cr==Gn)ke=Li;else if(!Li){if(cr==on)continue e;break e}}we[ge++]=ke}return we}o(Y2,"lazyValue"),ut.prototype=Qc(Md.prototype),ut.prototype.constructor=ut;function ws(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(ws,"Hash");function z2(){this.__data__=wf?wf(null):{},this.size=0}o(z2,"hashClear");function J2(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(J2,"hashDelete");function Z2(c){var f=this.__data__;if(wf){var d=f[c];return d===s?e:d}return Rt.call(f,c)?f[c]:e}o(Z2,"hashGet");function ek(c){var f=this.__data__;return wf?f[c]!==e:Rt.call(f,c)}o(ek,"hashHas");function tk(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=wf&&f===e?s:f,this}o(tk,"hashSet"),ws.prototype.clear=z2,ws.prototype.delete=J2,ws.prototype.get=Z2,ws.prototype.has=ek,ws.prototype.set=tk;function Xo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(Xo,"ListCache");function nk(){this.__data__=[],this.size=0}o(nk,"listCacheClear");function ik(c){var f=this.__data__,d=wd(f,c);if(d<0)return!1;var v=f.length-1;return d==v?f.pop():Ld.call(f,d,1),--this.size,!0}o(ik,"listCacheDelete");function rk(c){var f=this.__data__,d=wd(f,c);return d<0?e:f[d][1]}o(rk,"listCacheGet");function ok(c){return wd(this.__data__,c)>-1}o(ok,"listCacheHas");function ak(c,f){var d=this.__data__,v=wd(d,c);return v<0?(++this.size,d.push([c,f])):d[v][1]=f,this}o(ak,"listCacheSet"),Xo.prototype.clear=nk,Xo.prototype.delete=ik,Xo.prototype.get=rk,Xo.prototype.has=ok,Xo.prototype.set=ak;function Qo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(Qo,"MapCache");function sk(){this.size=0,this.__data__={hash:new ws,map:new(Vf||Xo),string:new ws}}o(sk,"mapCacheClear");function ck(c){var f=qd(this,c).delete(c);return this.size-=f?1:0,f}o(ck,"mapCacheDelete");function lk(c){return qd(this,c).get(c)}o(lk,"mapCacheGet");function fk(c){return qd(this,c).has(c)}o(fk,"mapCacheHas");function uk(c,f){var d=qd(this,c),v=d.size;return d.set(c,f),this.size+=d.size==v?0:1,this}o(uk,"mapCacheSet"),Qo.prototype.clear=sk,Qo.prototype.delete=ck,Qo.prototype.get=lk,Qo.prototype.has=fk,Qo.prototype.set=uk;function ks(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new Qo;++f<d;)this.add(c[f])}o(ks,"SetCache");function pk(c){return this.__data__.set(c,s),this}o(pk,"setCacheAdd");function dk(c){return this.__data__.has(c)}o(dk,"setCacheHas"),ks.prototype.add=ks.prototype.push=pk,ks.prototype.has=dk;function zr(c){var f=this.__data__=new Xo(c);this.size=f.size}o(zr,"Stack");function gk(){this.__data__=new Xo,this.size=0}o(gk,"stackClear");function mk(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(mk,"stackDelete");function hk(c){return this.__data__.get(c)}o(hk,"stackGet");function yk(c){return this.__data__.has(c)}o(yk,"stackHas");function vk(c,f){var d=this.__data__;if(d instanceof Xo){var v=d.__data__;if(!Vf||v.length<n-1)return v.push([c,f]),this.size=++d.size,this;d=this.__data__=new Qo(v)}return d.set(c,f),this.size=d.size,this}o(vk,"stackSet"),zr.prototype.clear=gk,zr.prototype.delete=mk,zr.prototype.get=hk,zr.prototype.has=yk,zr.prototype.set=vk;function GC(c,f){var d=Xe(c),v=!d&&Hs(c),b=!d&&!v&&Ma(c),C=!d&&!v&&!b&&Jc(c),L=d||v||b||C,R=L?Ev(c.length,O2):[],w=R.length;for(var z in c)(f||Rt.call(c,z))&&!(L&&(z=="length"||b&&(z=="offset"||z=="parent")||C&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||Jo(z,w)))&&R.push(z);return R}o(GC,"arrayLikeKeys");function WC(c){var f=c.length;return f?c[wv(0,f-1)]:e}o(WC,"arraySample");function Tk(c,f){return Yd(Bi(c),Us(f,0,c.length))}o(Tk,"arraySampleSize");function Ek(c){return Yd(Bi(c))}o(Ek,"arrayShuffle");function Iv(c,f,d){(d!==e&&!Jr(c[f],d)||d===e&&!(f in c))&&qo(c,f,d)}o(Iv,"assignMergeValue");function Uf(c,f,d){var v=c[f];(!(Rt.call(c,f)&&Jr(v,d))||d===e&&!(f in c))&&qo(c,f,d)}o(Uf,"assignValue");function wd(c,f){for(var d=c.length;d--;)if(Jr(c[d][0],f))return d;return-1}o(wd,"assocIndexOf");function bk(c,f,d,v){return Fa(c,function(b,C,L){f(v,b,d(b),L)}),v}o(bk,"baseAggregator");function KC(c,f){return c&&bo(f,Xn(f),c)}o(KC,"baseAssign");function Ak(c,f){return c&&bo(f,Gi(f),c)}o(Ak,"baseAssignIn");function qo(c,f,d){f=="__proto__"&&Rd?Rd(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(qo,"baseAssignValue");function Ov(c,f){for(var d=-1,v=f.length,b=W(v),C=c==null;++d<v;)b[d]=C?e:cT(c,f[d]);return b}o(Ov,"baseAt");function Us(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o(Us,"baseClamp");function Fr(c,f,d,v,b,C){var L,R=f&p,w=f&g,z=f&m;if(d&&(L=b?d(c,v,b,C):d(c)),L!==e)return L;if(!gn(c))return c;var J=Xe(c);if(J){if(L=fU(c),!R)return Bi(c,L)}else{var ee=hi(c),ge=ee==De||ee==Lt;if(Ma(c))return hI(c,R);if(ee==sn||ee==Wn||ge&&!b){if(L=w||ge?{}:VI(c),!R)return w?Zk(c,Ak(L,c)):Jk(c,KC(L,c))}else{if(!Qt[ee])return b?c:{};L=uU(c,ee,R)}}C||(C=new zr);var Ne=C.get(c);if(Ne)return Ne;C.set(c,L),fO(c)?c.forEach(function(ke){L.add(Fr(ke,f,d,ke,c,C))}):cO(c)&&c.forEach(function(ke,st){L.set(st,Fr(ke,f,d,st,c,C))});var we=z?w?Qv:Xv:w?Gi:Xn,Ze=J?e:we(c);return Nr(Ze||c,function(ke,st){Ze&&(st=ke,ke=c[st]),Uf(L,st,Fr(ke,f,d,st,c,C))}),L}o(Fr,"baseClone");function Sk(c){var f=Xn(c);return function(d){return XC(d,c,f)}}o(Sk,"baseConforms");function XC(c,f,d){var v=d.length;if(c==null)return!v;for(c=Wt(c);v--;){var b=d[v],C=f[b],L=c[b];if(L===e&&!(b in c)||!C(L))return!1}return!0}o(XC,"baseConformsTo");function QC(c,f,d){if(typeof c!="function")throw new Lr(r);return Kf(function(){c.apply(e,d)},f)}o(QC,"baseDelay");function jf(c,f,d,v){var b=-1,C=Ed,L=!0,R=c.length,w=[],z=f.length;if(!R)return w;d&&(f=ln(f,or(d))),v?(C=gv,L=!1):f.length>=n&&(C=_f,L=!1,f=new ks(f));e:for(;++b<R;){var J=c[b],ee=d==null?J:d(J);if(J=v||J!==0?J:0,L&&ee===ee){for(var ge=z;ge--;)if(f[ge]===ee)continue e;w.push(J)}else C(f,ee,v)||w.push(J)}return w}o(jf,"baseDifference");var Fa=bI(Eo),qC=bI(Lv,!0);function Pk(c,f){var d=!0;return Fa(c,function(v,b,C){return d=!!f(v,b,C),d}),d}o(Pk,"baseEvery");function kd(c,f,d){for(var v=-1,b=c.length;++v<b;){var C=c[v],L=f(C);if(L!=null&&(R===e?L===L&&!sr(L):d(L,R)))var R=L,w=C}return w}o(kd,"baseExtremum");function xk(c,f,d,v){var b=c.length;for(d=Je(d),d<0&&(d=-d>b?0:b+d),v=v===e||v>b?b:Je(v),v<0&&(v+=b),v=d>v?0:pO(v);d<v;)c[d++]=f;return c}o(xk,"baseFill");function YC(c,f){var d=[];return Fa(c,function(v,b,C){f(v,b,C)&&d.push(v)}),d}o(YC,"baseFilter");function ni(c,f,d,v,b){var C=-1,L=c.length;for(d||(d=dU),b||(b=[]);++C<L;){var R=c[C];f>0&&d(R)?f>1?ni(R,f-1,d,v,b):Oa(b,R):v||(b[b.length]=R)}return b}o(ni,"baseFlatten");var Nv=AI(),zC=AI(!0);function Eo(c,f){return c&&Nv(c,f,Xn)}o(Eo,"baseForOwn");function Lv(c,f){return c&&zC(c,f,Xn)}o(Lv,"baseForOwnRight");function Ud(c,f){return Ia(f,function(d){return Zo(c[d])})}o(Ud,"baseFunctions");function js(c,f){f=Da(f,c);for(var d=0,v=f.length;c!=null&&d<v;)c=c[Ao(f[d++])];return d&&d==v?c:e}o(js,"baseGet");function JC(c,f,d){var v=f(c);return Xe(c)?v:Oa(v,d(c))}o(JC,"baseGetAllKeys");function Oi(c){return c==null?c===e?Ko:yn:Ms&&Ms in Wt(c)?sU(c):EU(c)}o(Oi,"baseGetTag");function Rv(c,f){return c>f}o(Rv,"baseGt");function Ck(c,f){return c!=null&&Rt.call(c,f)}o(Ck,"baseHas");function Ik(c,f){return c!=null&&f in Wt(c)}o(Ik,"baseHasIn");function Ok(c,f,d){return c>=mi(f,d)&&c<Un(f,d)}o(Ok,"baseInRange");function Fv(c,f,d){for(var v=d?gv:Ed,b=c[0].length,C=c.length,L=C,R=W(C),w=1/0,z=[];L--;){var J=c[L];L&&f&&(J=ln(J,or(f))),w=mi(J.length,w),R[L]=!d&&(f||b>=120&&J.length>=120)?new ks(L&&J):e}J=c[0];var ee=-1,ge=R[0];e:for(;++ee<b&&z.length<w;){var Ne=J[ee],we=f?f(Ne):Ne;if(Ne=d||Ne!==0?Ne:0,!(ge?_f(ge,we):v(z,we,d))){for(L=C;--L;){var Ze=R[L];if(!(Ze?_f(Ze,we):v(c[L],we,d)))continue e}ge&&ge.push(we),z.push(Ne)}}return z}o(Fv,"baseIntersection");function Nk(c,f,d,v){return Eo(c,function(b,C,L){f(v,d(b),C,L)}),v}o(Nk,"baseInverter");function $f(c,f,d){f=Da(f,c),c=UI(c,f);var v=c==null?c:c[Ao(Dr(f))];return v==null?e:rr(v,c,d)}o($f,"baseInvoke");function ZC(c){return vn(c)&&Oi(c)==Wn}o(ZC,"baseIsArguments");function Lk(c){return vn(c)&&Oi(c)==_s}o(Lk,"baseIsArrayBuffer");function Rk(c){return vn(c)&&Oi(c)==S}o(Rk,"baseIsDate");function Bf(c,f,d,v,b){return c===f?!0:c==null||f==null||!vn(c)&&!vn(f)?c!==c&&f!==f:Fk(c,f,d,v,Bf,b)}o(Bf,"baseIsEqual");function Fk(c,f,d,v,b,C){var L=Xe(c),R=Xe(f),w=L?Cr:hi(c),z=R?Cr:hi(f);w=w==Wn?sn:w,z=z==Wn?sn:z;var J=w==sn,ee=z==sn,ge=w==z;if(ge&&Ma(c)){if(!Ma(f))return!1;L=!0,J=!1}if(ge&&!J)return C||(C=new zr),L||Jc(c)?FI(c,f,d,v,b,C):oU(c,f,w,d,v,b,C);if(!(d&T)){var Ne=J&&Rt.call(c,"__wrapped__"),we=ee&&Rt.call(f,"__wrapped__");if(Ne||we){var Ze=Ne?c.value():c,ke=we?f.value():f;return C||(C=new zr),b(Ze,ke,d,v,C)}}return ge?(C||(C=new zr),aU(c,f,d,v,b,C)):!1}o(Fk,"baseIsEqualDeep");function _k(c){return vn(c)&&hi(c)==Qe}o(_k,"baseIsMap");function _v(c,f,d,v){var b=d.length,C=b,L=!v;if(c==null)return!C;for(c=Wt(c);b--;){var R=d[b];if(L&&R[2]?R[1]!==c[R[0]]:!(R[0]in c))return!1}for(;++b<C;){R=d[b];var w=R[0],z=c[w],J=R[1];if(L&&R[2]){if(z===e&&!(w in c))return!1}else{var ee=new zr;if(v)var ge=v(z,J,w,c,f,ee);if(!(ge===e?Bf(J,z,T|A,v,ee):ge))return!1}}return!0}o(_v,"baseIsMatch");function eI(c){if(!gn(c)||mU(c))return!1;var f=Zo(c)?_2:Aw;return f.test(Bs(c))}o(eI,"baseIsNative");function Dk(c){return vn(c)&&Oi(c)==nr}o(Dk,"baseIsRegExp");function Vk(c){return vn(c)&&hi(c)==pn}o(Vk,"baseIsSet");function Mk(c){return vn(c)&&ng(c.length)&&!!en[Oi(c)]}o(Mk,"baseIsTypedArray");function tI(c){return typeof c=="function"?c:c==null?Wi:typeof c=="object"?Xe(c)?rI(c[0],c[1]):iI(c):SO(c)}o(tI,"baseIteratee");function Dv(c){if(!Wf(c))return U2(c);var f=[];for(var d in Wt(c))Rt.call(c,d)&&d!="constructor"&&f.push(d);return f}o(Dv,"baseKeys");function wk(c){if(!gn(c))return TU(c);var f=Wf(c),d=[];for(var v in c)v=="constructor"&&(f||!Rt.call(c,v))||d.push(v);return d}o(wk,"baseKeysIn");function Vv(c,f){return c<f}o(Vv,"baseLt");function nI(c,f){var d=-1,v=Hi(c)?W(c.length):[];return Fa(c,function(b,C,L){v[++d]=f(b,C,L)}),v}o(nI,"baseMap");function iI(c){var f=Yv(c);return f.length==1&&f[0][2]?wI(f[0][0],f[0][1]):function(d){return d===c||_v(d,c,f)}}o(iI,"baseMatches");function rI(c,f){return Jv(c)&&MI(f)?wI(Ao(c),f):function(d){var v=cT(d,c);return v===e&&v===f?lT(d,c):Bf(f,v,T|A)}}o(rI,"baseMatchesProperty");function jd(c,f,d,v,b){c!==f&&Nv(f,function(C,L){if(b||(b=new zr),gn(C))kk(c,f,L,d,jd,v,b);else{var R=v?v(eT(c,L),C,L+"",c,f,b):e;R===e&&(R=C),Iv(c,L,R)}},Gi)}o(jd,"baseMerge");function kk(c,f,d,v,b,C,L){var R=eT(c,d),w=eT(f,d),z=L.get(w);if(z){Iv(c,d,z);return}var J=C?C(R,w,d+"",c,f,L):e,ee=J===e;if(ee){var ge=Xe(w),Ne=!ge&&Ma(w),we=!ge&&!Ne&&Jc(w);J=w,ge||Ne||we?Xe(R)?J=R:Cn(R)?J=Bi(R):Ne?(ee=!1,J=hI(w,!0)):we?(ee=!1,J=yI(w,!0)):J=[]:Xf(w)||Hs(w)?(J=R,Hs(R)?J=dO(R):(!gn(R)||Zo(R))&&(J=VI(w))):ee=!1}ee&&(L.set(w,J),b(J,w,v,C,L),L.delete(w)),Iv(c,d,J)}o(kk,"baseMergeDeep");function oI(c,f){var d=c.length;if(d)return f+=f<0?d:0,Jo(f,d)?c[f]:e}o(oI,"baseNth");function aI(c,f,d){f.length?f=ln(f,function(C){return Xe(C)?function(L){return js(L,C.length===1?C[0]:C)}:C}):f=[Wi];var v=-1;f=ln(f,or(Ve()));var b=nI(c,function(C,L,R){var w=ln(f,function(z){return z(C)});return{criteria:w,index:++v,value:C}});return f2(b,function(C,L){return zk(C,L,d)})}o(aI,"baseOrderBy");function Uk(c,f){return sI(c,f,function(d,v){return lT(c,v)})}o(Uk,"basePick");function sI(c,f,d){for(var v=-1,b=f.length,C={};++v<b;){var L=f[v],R=js(c,L);d(R,L)&&Hf(C,Da(L,c),R)}return C}o(sI,"basePickBy");function jk(c){return function(f){return js(f,c)}}o(jk,"basePropertyDeep");function Mv(c,f,d,v){var b=v?l2:Bc,C=-1,L=f.length,R=c;for(c===f&&(f=Bi(f)),d&&(R=ln(c,or(d)));++C<L;)for(var w=0,z=f[C],J=d?d(z):z;(w=b(R,J,w,v))>-1;)R!==c&&Ld.call(R,w,1),Ld.call(c,w,1);return c}o(Mv,"basePullAll");function cI(c,f){for(var d=c?f.length:0,v=d-1;d--;){var b=f[d];if(d==v||b!==C){var C=b;Jo(b)?Ld.call(c,b,1):jv(c,b)}}return c}o(cI,"basePullAt");function wv(c,f){return c+_d(BC()*(f-c+1))}o(wv,"baseRandom");function $k(c,f,d,v){for(var b=-1,C=Un(Fd((f-c)/(d||1)),0),L=W(C);C--;)L[v?C:++b]=c,c+=d;return L}o($k,"baseRange");function kv(c,f){var d="";if(!c||f<1||f>Re)return d;do f%2&&(d+=c),f=_d(f/2),f&&(c+=c);while(f);return d}o(kv,"baseRepeat");function nt(c,f){return tT(kI(c,f,Wi),c+"")}o(nt,"baseRest");function Bk(c){return WC(Zc(c))}o(Bk,"baseSample");function Hk(c,f){var d=Zc(c);return Yd(d,Us(f,0,d.length))}o(Hk,"baseSampleSize");function Hf(c,f,d,v){if(!gn(c))return c;f=Da(f,c);for(var b=-1,C=f.length,L=C-1,R=c;R!=null&&++b<C;){var w=Ao(f[b]),z=d;if(w==="__proto__"||w==="constructor"||w==="prototype")return c;if(b!=L){var J=R[w];z=v?v(J,w,R):e,z===e&&(z=gn(J)?J:Jo(f[b+1])?[]:{})}Uf(R,w,z),R=R[w]}return c}o(Hf,"baseSet");var lI=Dd?function(c,f){return Dd.set(c,f),c}:Wi,Gk=Rd?function(c,f){return Rd(c,"toString",{configurable:!0,enumerable:!1,value:uT(f),writable:!0})}:Wi;function Wk(c){return Yd(Zc(c))}o(Wk,"baseShuffle");function _r(c,f,d){var v=-1,b=c.length;f<0&&(f=-f>b?0:b+f),d=d>b?b:d,d<0&&(d+=b),b=f>d?0:d-f>>>0,f>>>=0;for(var C=W(b);++v<b;)C[v]=c[v+f];return C}o(_r,"baseSlice");function Kk(c,f){var d;return Fa(c,function(v,b,C){return d=f(v,b,C),!d}),!!d}o(Kk,"baseSome");function $d(c,f,d){var v=0,b=c==null?v:c.length;if(typeof f=="number"&&f===f&&b<=ji){for(;v<b;){var C=v+b>>>1,L=c[C];L!==null&&!sr(L)&&(d?L<=f:L<f)?v=C+1:b=C}return b}return Uv(c,f,Wi,d)}o($d,"baseSortedIndex");function Uv(c,f,d,v){var b=0,C=c==null?0:c.length;if(C===0)return 0;f=d(f);for(var L=f!==f,R=f===null,w=sr(f),z=f===e;b<C;){var J=_d((b+C)/2),ee=d(c[J]),ge=ee!==e,Ne=ee===null,we=ee===ee,Ze=sr(ee);if(L)var ke=v||we;else z?ke=we&&(v||ge):R?ke=we&&ge&&(v||!Ne):w?ke=we&&ge&&!Ne&&(v||!Ze):Ne||Ze?ke=!1:ke=v?ee<=f:ee<f;ke?b=J+1:C=J}return mi(C,an)}o(Uv,"baseSortedIndexBy");function fI(c,f){for(var d=-1,v=c.length,b=0,C=[];++d<v;){var L=c[d],R=f?f(L):L;if(!d||!Jr(R,w)){var w=R;C[b++]=L===0?0:L}}return C}o(fI,"baseSortedUniq");function uI(c){return typeof c=="number"?c:sr(c)?Ct:+c}o(uI,"baseToNumber");function ar(c){if(typeof c=="string")return c;if(Xe(c))return ln(c,ar)+"";if(sr(c))return HC?HC.call(c):"";var f=c+"";return f=="0"&&1/c==-Nt?"-0":f}o(ar,"baseToString");function _a(c,f,d){var v=-1,b=Ed,C=c.length,L=!0,R=[],w=R;if(d)L=!1,b=gv;else if(C>=n){var z=f?null:iU(c);if(z)return Ad(z);L=!1,b=_f,w=new ks}else w=f?[]:R;e:for(;++v<C;){var J=c[v],ee=f?f(J):J;if(J=d||J!==0?J:0,L&&ee===ee){for(var ge=w.length;ge--;)if(w[ge]===ee)continue e;f&&w.push(ee),R.push(J)}else b(w,ee,d)||(w!==R&&w.push(ee),R.push(J))}return R}o(_a,"baseUniq");function jv(c,f){return f=Da(f,c),c=UI(c,f),c==null||delete c[Ao(Dr(f))]}o(jv,"baseUnset");function pI(c,f,d,v){return Hf(c,f,d(js(c,f)),v)}o(pI,"baseUpdate");function Bd(c,f,d,v){for(var b=c.length,C=v?b:-1;(v?C--:++C<b)&&f(c[C],C,c););return d?_r(c,v?0:C,v?C+1:b):_r(c,v?C+1:0,v?b:C)}o(Bd,"baseWhile");function dI(c,f){var d=c;return d instanceof ut&&(d=d.value()),mv(f,function(v,b){return b.func.apply(b.thisArg,Oa([v],b.args))},d)}o(dI,"baseWrapperValue");function $v(c,f,d){var v=c.length;if(v<2)return v?_a(c[0]):[];for(var b=-1,C=W(v);++b<v;)for(var L=c[b],R=-1;++R<v;)R!=b&&(C[b]=jf(C[b]||L,c[R],f,d));return _a(ni(C,1),f,d)}o($v,"baseXor");function gI(c,f,d){for(var v=-1,b=c.length,C=f.length,L={};++v<b;){var R=v<C?f[v]:e;d(L,c[v],R)}return L}o(gI,"baseZipObject");function Bv(c){return Cn(c)?c:[]}o(Bv,"castArrayLikeObject");function Hv(c){return typeof c=="function"?c:Wi}o(Hv,"castFunction");function Da(c,f){return Xe(c)?c:Jv(c,f)?[c]:HI(It(c))}o(Da,"castPath");var Xk=nt;function Va(c,f,d){var v=c.length;return d=d===e?v:d,!f&&d>=v?c:_r(c,f,d)}o(Va,"castSlice");var mI=D2||function(c){return Kn.clearTimeout(c)};function hI(c,f){if(f)return c.slice();var d=c.length,v=wC?wC(d):new c.constructor(d);return c.copy(v),v}o(hI,"cloneBuffer");function Gv(c){var f=new c.constructor(c.byteLength);return new Od(f).set(new Od(c)),f}o(Gv,"cloneArrayBuffer");function Qk(c,f){var d=f?Gv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(Qk,"cloneDataView");function qk(c){var f=new c.constructor(c.source,Zx.exec(c));return f.lastIndex=c.lastIndex,f}o(qk,"cloneRegExp");function Yk(c){return kf?Wt(kf.call(c)):{}}o(Yk,"cloneSymbol");function yI(c,f){var d=f?Gv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(yI,"cloneTypedArray");function vI(c,f){if(c!==f){var d=c!==e,v=c===null,b=c===c,C=sr(c),L=f!==e,R=f===null,w=f===f,z=sr(f);if(!R&&!z&&!C&&c>f||C&&L&&w&&!R&&!z||v&&L&&w||!d&&w||!b)return 1;if(!v&&!C&&!z&&c<f||z&&d&&b&&!v&&!C||R&&d&&b||!L&&b||!w)return-1}return 0}o(vI,"compareAscending");function zk(c,f,d){for(var v=-1,b=c.criteria,C=f.criteria,L=b.length,R=d.length;++v<L;){var w=vI(b[v],C[v]);if(w){if(v>=R)return w;var z=d[v];return w*(z=="desc"?-1:1)}}return c.index-f.index}o(zk,"compareMultiple");function TI(c,f,d,v){for(var b=-1,C=c.length,L=d.length,R=-1,w=f.length,z=Un(C-L,0),J=W(w+z),ee=!v;++R<w;)J[R]=f[R];for(;++b<L;)(ee||b<C)&&(J[d[b]]=c[b]);for(;z--;)J[R++]=c[b++];return J}o(TI,"composeArgs");function EI(c,f,d,v){for(var b=-1,C=c.length,L=-1,R=d.length,w=-1,z=f.length,J=Un(C-R,0),ee=W(J+z),ge=!v;++b<J;)ee[b]=c[b];for(var Ne=b;++w<z;)ee[Ne+w]=f[w];for(;++L<R;)(ge||b<C)&&(ee[Ne+d[L]]=c[b++]);return ee}o(EI,"composeArgsRight");function Bi(c,f){var d=-1,v=c.length;for(f||(f=W(v));++d<v;)f[d]=c[d];return f}o(Bi,"copyArray");function bo(c,f,d,v){var b=!d;d||(d={});for(var C=-1,L=f.length;++C<L;){var R=f[C],w=v?v(d[R],c[R],R,d,c):e;w===e&&(w=c[R]),b?qo(d,R,w):Uf(d,R,w)}return d}o(bo,"copyObject");function Jk(c,f){return bo(c,zv(c),f)}o(Jk,"copySymbols");function Zk(c,f){return bo(c,_I(c),f)}o(Zk,"copySymbolsIn");function Hd(c,f){return function(d,v){var b=Xe(d)?i2:bk,C=f?f():{};return b(d,c,Ve(v,2),C)}}o(Hd,"createAggregator");function qc(c){return nt(function(f,d){var v=-1,b=d.length,C=b>1?d[b-1]:e,L=b>2?d[2]:e;for(C=c.length>3&&typeof C=="function"?(b--,C):e,L&&Ni(d[0],d[1],L)&&(C=b<3?e:C,b=1),f=Wt(f);++v<b;){var R=d[v];R&&c(f,R,v,C)}return f})}o(qc,"createAssigner");function bI(c,f){return function(d,v){if(d==null)return d;if(!Hi(d))return c(d,v);for(var b=d.length,C=f?b:-1,L=Wt(d);(f?C--:++C<b)&&v(L[C],C,L)!==!1;);return d}}o(bI,"createBaseEach");function AI(c){return function(f,d,v){for(var b=-1,C=Wt(f),L=v(f),R=L.length;R--;){var w=L[c?R:++b];if(d(C[w],w,C)===!1)break}return f}}o(AI,"createBaseFor");function eU(c,f,d){var v=f&E,b=Gf(c);function C(){var L=this&&this!==Kn&&this instanceof C?b:c;return L.apply(v?d:this,arguments)}return o(C,"wrapper"),C}o(eU,"createBind");function SI(c){return function(f){f=It(f);var d=Hc(f)?Yr(f):e,v=d?d[0]:f.charAt(0),b=d?Va(d,1).join(""):f.slice(1);return v[c]()+b}}o(SI,"createCaseFirst");function Yc(c){return function(f){return mv(bO(EO(f).replace(Hw,"")),c,"")}}o(Yc,"createCompounder");function Gf(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var d=Qc(c.prototype),v=c.apply(d,f);return gn(v)?v:d}}o(Gf,"createCtor");function tU(c,f,d){var v=Gf(c);function b(){for(var C=arguments.length,L=W(C),R=C,w=zc(b);R--;)L[R]=arguments[R];var z=C<3&&L[0]!==w&&L[C-1]!==w?[]:Na(L,w);if(C-=z.length,C<d)return OI(c,f,Gd,b.placeholder,e,L,z,e,e,d-C);var J=this&&this!==Kn&&this instanceof b?v:c;return rr(J,this,L)}return o(b,"wrapper"),b}o(tU,"createCurry");function PI(c){return function(f,d,v){var b=Wt(f);if(!Hi(f)){var C=Ve(d,3);f=Xn(f),d=o(function(R){return C(b[R],R,b)},"predicate")}var L=c(f,d,v);return L>-1?b[C?f[L]:L]:e}}o(PI,"createFind");function xI(c){return zo(function(f){var d=f.length,v=d,b=Rr.prototype.thru;for(c&&f.reverse();v--;){var C=f[v];if(typeof C!="function")throw new Lr(r);if(b&&!L&&Qd(C)=="wrapper")var L=new Rr([],!0)}for(v=L?v:d;++v<d;){C=f[v];var R=Qd(C),w=R=="wrapper"?qv(C):e;w&&Zv(w[0])&&w[1]==(Z|U|j|re)&&!w[4].length&&w[9]==1?L=L[Qd(w[0])].apply(L,w[3]):L=C.length==1&&Zv(C)?L[R]():L.thru(C)}return function(){var z=arguments,J=z[0];if(L&&z.length==1&&Xe(J))return L.plant(J).value();for(var ee=0,ge=d?f[ee].apply(this,z):J;++ee<d;)ge=f[ee].call(this,ge);return ge}})}o(xI,"createFlow");function Gd(c,f,d,v,b,C,L,R,w,z){var J=f&Z,ee=f&E,ge=f&O,Ne=f&(U|K),we=f&Pe,Ze=ge?e:Gf(c);function ke(){for(var st=arguments.length,dt=W(st),cr=st;cr--;)dt[cr]=arguments[cr];if(Ne)var Li=zc(ke),lr=p2(dt,Li);if(v&&(dt=TI(dt,v,b,Ne)),C&&(dt=EI(dt,C,L,Ne)),st-=lr,Ne&&st<z){var In=Na(dt,Li);return OI(c,f,Gd,ke.placeholder,d,dt,In,R,w,z-st)}var Zr=ee?d:this,ta=ge?Zr[c]:c;return st=dt.length,R?dt=bU(dt,R):we&&st>1&&dt.reverse(),J&&w<st&&(dt.length=w),this&&this!==Kn&&this instanceof ke&&(ta=Ze||Gf(ta)),ta.apply(Zr,dt)}return o(ke,"wrapper"),ke}o(Gd,"createHybrid");function CI(c,f){return function(d,v){return Nk(d,c,f(v),{})}}o(CI,"createInverter");function Wd(c,f){return function(d,v){var b;if(d===e&&v===e)return f;if(d!==e&&(b=d),v!==e){if(b===e)return v;typeof d=="string"||typeof v=="string"?(d=ar(d),v=ar(v)):(d=uI(d),v=uI(v)),b=c(d,v)}return b}}o(Wd,"createMathOperation");function Wv(c){return zo(function(f){return f=ln(f,or(Ve())),nt(function(d){var v=this;return c(f,function(b){return rr(b,v,d)})})})}o(Wv,"createOver");function Kd(c,f){f=f===e?" ":ar(f);var d=f.length;if(d<2)return d?kv(f,c):f;var v=kv(f,Fd(c/Gc(f)));return Hc(f)?Va(Yr(v),0,c).join(""):v.slice(0,c)}o(Kd,"createPadding");function nU(c,f,d,v){var b=f&E,C=Gf(c);function L(){for(var R=-1,w=arguments.length,z=-1,J=v.length,ee=W(J+w),ge=this&&this!==Kn&&this instanceof L?C:c;++z<J;)ee[z]=v[z];for(;w--;)ee[z++]=arguments[++R];return rr(ge,b?d:this,ee)}return o(L,"wrapper"),L}o(nU,"createPartial");function II(c){return function(f,d,v){return v&&typeof v!="number"&&Ni(f,d,v)&&(d=v=e),f=ea(f),d===e?(d=f,f=0):d=ea(d),v=v===e?f<d?1:-1:ea(v),$k(f,d,v,c)}}o(II,"createRange");function Xd(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=Vr(f),d=Vr(d)),c(f,d)}}o(Xd,"createRelationalOperation");function OI(c,f,d,v,b,C,L,R,w,z){var J=f&U,ee=J?L:e,ge=J?e:L,Ne=J?C:e,we=J?e:C;f|=J?j:ae,f&=~(J?ae:j),f&F||(f&=~(E|O));var Ze=[c,f,b,Ne,ee,we,ge,R,w,z],ke=d.apply(e,Ze);return Zv(c)&&jI(ke,Ze),ke.placeholder=v,$I(ke,c,f)}o(OI,"createRecurry");function Kv(c){var f=kn[c];return function(d,v){if(d=Vr(d),v=v==null?0:mi(Je(v),292),v&&$C(d)){var b=(It(d)+"e").split("e"),C=f(b[0]+"e"+(+b[1]+v));return b=(It(C)+"e").split("e"),+(b[0]+"e"+(+b[1]-v))}return f(d)}}o(Kv,"createRound");var iU=Kc&&1/Ad(new Kc([,-0]))[1]==Nt?function(c){return new Kc(c)}:gT;function NI(c){return function(f){var d=hi(f);return d==Qe?Av(f):d==pn?E2(f):u2(f,c(f))}}o(NI,"createToPairs");function Yo(c,f,d,v,b,C,L,R){var w=f&O;if(!w&&typeof c!="function")throw new Lr(r);var z=v?v.length:0;if(z||(f&=~(j|ae),v=b=e),L=L===e?L:Un(Je(L),0),R=R===e?R:Je(R),z-=b?b.length:0,f&ae){var J=v,ee=b;v=b=e}var ge=w?e:qv(c),Ne=[c,f,d,v,b,J,ee,C,L,R];if(ge&&vU(Ne,ge),c=Ne[0],f=Ne[1],d=Ne[2],v=Ne[3],b=Ne[4],R=Ne[9]=Ne[9]===e?w?0:c.length:Un(Ne[9]-z,0),!R&&f&(U|K)&&(f&=~(U|K)),!f||f==E)var we=eU(c,f,d);else f==U||f==K?we=tU(c,f,R):(f==j||f==(E|j))&&!b.length?we=nU(c,f,d,v):we=Gd.apply(e,Ne);var Ze=ge?lI:jI;return $I(Ze(we,Ne),c,f)}o(Yo,"createWrap");function LI(c,f,d,v){return c===e||Jr(c,Wc[d])&&!Rt.call(v,d)?f:c}o(LI,"customDefaultsAssignIn");function RI(c,f,d,v,b,C){return gn(c)&&gn(f)&&(C.set(f,c),jd(c,f,e,RI,C),C.delete(f)),c}o(RI,"customDefaultsMerge");function rU(c){return Xf(c)?e:c}o(rU,"customOmitClone");function FI(c,f,d,v,b,C){var L=d&T,R=c.length,w=f.length;if(R!=w&&!(L&&w>R))return!1;var z=C.get(c),J=C.get(f);if(z&&J)return z==f&&J==c;var ee=-1,ge=!0,Ne=d&A?new ks:e;for(C.set(c,f),C.set(f,c);++ee<R;){var we=c[ee],Ze=f[ee];if(v)var ke=L?v(Ze,we,ee,f,c,C):v(we,Ze,ee,c,f,C);if(ke!==e){if(ke)continue;ge=!1;break}if(Ne){if(!hv(f,function(st,dt){if(!_f(Ne,dt)&&(we===st||b(we,st,d,v,C)))return Ne.push(dt)})){ge=!1;break}}else if(!(we===Ze||b(we,Ze,d,v,C))){ge=!1;break}}return C.delete(c),C.delete(f),ge}o(FI,"equalArrays");function oU(c,f,d,v,b,C,L){switch(d){case Ir:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case _s:return!(c.byteLength!=f.byteLength||!C(new Od(c),new Od(f)));case I:case S:case wt:return Jr(+c,+f);case V:return c.name==f.name&&c.message==f.message;case nr:case gi:return c==f+"";case Qe:var R=Av;case pn:var w=v&T;if(R||(R=Ad),c.size!=f.size&&!w)return!1;var z=L.get(c);if(z)return z==f;v|=A,L.set(c,f);var J=FI(R(c),R(f),v,b,C,L);return L.delete(c),J;case Ht:if(kf)return kf.call(c)==kf.call(f)}return!1}o(oU,"equalByTag");function aU(c,f,d,v,b,C){var L=d&T,R=Xv(c),w=R.length,z=Xv(f),J=z.length;if(w!=J&&!L)return!1;for(var ee=w;ee--;){var ge=R[ee];if(!(L?ge in f:Rt.call(f,ge)))return!1}var Ne=C.get(c),we=C.get(f);if(Ne&&we)return Ne==f&&we==c;var Ze=!0;C.set(c,f),C.set(f,c);for(var ke=L;++ee<w;){ge=R[ee];var st=c[ge],dt=f[ge];if(v)var cr=L?v(dt,st,ge,f,c,C):v(st,dt,ge,c,f,C);if(!(cr===e?st===dt||b(st,dt,d,v,C):cr)){Ze=!1;break}ke||(ke=ge=="constructor")}if(Ze&&!ke){var Li=c.constructor,lr=f.constructor;Li!=lr&&"constructor"in c&&"constructor"in f&&!(typeof Li=="function"&&Li instanceof Li&&typeof lr=="function"&&lr instanceof lr)&&(Ze=!1)}return C.delete(c),C.delete(f),Ze}o(aU,"equalObjects");function zo(c){return tT(kI(c,e,XI),c+"")}o(zo,"flatRest");function Xv(c){return JC(c,Xn,zv)}o(Xv,"getAllKeys");function Qv(c){return JC(c,Gi,_I)}o(Qv,"getAllKeysIn");var qv=Dd?function(c){return Dd.get(c)}:gT;function Qd(c){for(var f=c.name+"",d=Xc[f],v=Rt.call(Xc,f)?d.length:0;v--;){var b=d[v],C=b.func;if(C==null||C==c)return b.name}return f}o(Qd,"getFuncName");function zc(c){var f=Rt.call(P,"placeholder")?P:c;return f.placeholder}o(zc,"getHolder");function Ve(){var c=P.iteratee||pT;return c=c===pT?tI:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function qd(c,f){var d=c.__data__;return gU(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(qd,"getMapData");function Yv(c){for(var f=Xn(c),d=f.length;d--;){var v=f[d],b=c[v];f[d]=[v,b,MI(b)]}return f}o(Yv,"getMatchData");function $s(c,f){var d=h2(c,f);return eI(d)?d:e}o($s,"getNative");function sU(c){var f=Rt.call(c,Ms),d=c[Ms];try{c[Ms]=e;var v=!0}catch{}var b=Cd.call(c);return v&&(f?c[Ms]=d:delete c[Ms]),b}o(sU,"getRawTag");var zv=Pv?function(c){return c==null?[]:(c=Wt(c),Ia(Pv(c),function(f){return UC.call(c,f)}))}:mT,_I=Pv?function(c){for(var f=[];c;)Oa(f,zv(c)),c=Nd(c);return f}:mT,hi=Oi;(xv&&hi(new xv(new ArrayBuffer(1)))!=Ir||Vf&&hi(new Vf)!=Qe||Cv&&hi(Cv.resolve())!=Bt||Kc&&hi(new Kc)!=pn||Mf&&hi(new Mf)!=$i)&&(hi=o(function(c){var f=Oi(c),d=f==sn?c.constructor:e,v=d?Bs(d):"";if(v)switch(v){case H2:return Ir;case G2:return Qe;case W2:return Bt;case K2:return pn;case X2:return $i}return f},"getTag"));function cU(c,f,d){for(var v=-1,b=d.length;++v<b;){var C=d[v],L=C.size;switch(C.type){case"drop":c+=L;break;case"dropRight":f-=L;break;case"take":f=mi(f,c+L);break;case"takeRight":c=Un(c,f-L);break}}return{start:c,end:f}}o(cU,"getView");function lU(c){var f=c.match(gw);return f?f[1].split(mw):[]}o(lU,"getWrapDetails");function DI(c,f,d){f=Da(f,c);for(var v=-1,b=f.length,C=!1;++v<b;){var L=Ao(f[v]);if(!(C=c!=null&&d(c,L)))break;c=c[L]}return C||++v!=b?C:(b=c==null?0:c.length,!!b&&ng(b)&&Jo(L,b)&&(Xe(c)||Hs(c)))}o(DI,"hasPath");function fU(c){var f=c.length,d=new c.constructor(f);return f&&typeof c[0]=="string"&&Rt.call(c,"index")&&(d.index=c.index,d.input=c.input),d}o(fU,"initCloneArray");function VI(c){return typeof c.constructor=="function"&&!Wf(c)?Qc(Nd(c)):{}}o(VI,"initCloneObject");function uU(c,f,d){var v=c.constructor;switch(f){case _s:return Gv(c);case I:case S:return new v(+c);case Ir:return Qk(c,d);case Nf:case Lf:case Rf:case Ds:case k:case B:case Q:case ce:case Le:return yI(c,d);case Qe:return new v;case wt:case gi:return new v(c);case nr:return qk(c);case pn:return new v;case Ht:return Yk(c)}}o(uU,"initCloneByTag");function pU(c,f){var d=f.length;if(!d)return c;var v=d-1;return f[v]=(d>1?"& ":"")+f[v],f=f.join(d>2?", ":" "),c.replace(dw,`{
|
|
267
|
+
Please avoid using it as it will be completely removed in the future`)}var L6,Ey=qe(()=>{DA();Er();sp();hs();up();Ql();WA();ki();ki();Gl();nS();HD();zD();o(N6,"clearCache");L6=function(){function e(){throw new Error(`The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.
|
|
268
|
+
See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0`)}return o(e,"Parser"),e}()});var dS=Ye((Ece,iV)=>{var{createToken:R6,Lexer:uS}=(Ey(),sg(Ty)),ZD={},Jl=ZD;function pS(e,t){ZD[e]=typeof t=="string"?t:t.source}o(pS,"FRAGMENT");function Sp(e,...t){let n="";for(let i=0;i<e.length;i++)if(n+=e[i],i<t.length){let r=t[i];n+=`(?:${r})`}return new RegExp(n)}o(Sp,"makePattern");var F6=[],eV={};function Cn(e){let t=R6(e);return F6.push(t),eV[e.name]=t,t}o(Cn,"createToken");pS("NameStartChar","(:|[a-zA-Z]|_|\\u2070-\\u218F|\\u2C00-\\u2FEF|\\u3001-\\uD7FF|\\uF900-\\uFDCF|\\uFDF0-\\uFFFD)");pS("NameChar",Sp`${Jl.NameStartChar}|-|\\.|\\d|\\u00B7||[\\u0300-\\u036F]|[\\u203F-\\u2040]`);pS("Name",Sp`${Jl.NameStartChar}(${Jl.NameChar})*`);var JD=Cn({name:"Comment",pattern:/<!--(.|\r?\n)*?-->/,line_breaks:!0}),_6=Cn({name:"CData",pattern:/<!\[CDATA\[(.|\r?\n)*?]]>/,line_breaks:!0}),D6=Cn({name:"DocType",pattern:/<!DOCTYPE/,push_mode:"INSIDE"}),V6=Cn({name:"DTD",pattern:/<!.*?>/,group:uS.SKIPPED}),w6=Cn({name:"EntityRef",pattern:Sp`&${Jl.Name};`}),M6=Cn({name:"CharRef",pattern:/&#\d+;|&#x[a-fA-F0-9]/}),k6=Cn({name:"SEA_WS",pattern:/( |\t|\n|\r\n)+/}),U6=Cn({name:"XMLDeclOpen",pattern:/<\?xml[ \t\r\n]/,push_mode:"INSIDE"}),tV=Cn({name:"SLASH_OPEN",pattern:/<\//,push_mode:"INSIDE"}),j6=Cn({name:"INVALID_SLASH_OPEN",pattern:/<\//,categories:[tV]}),$6=Cn({name:"PROCESSING_INSTRUCTION",pattern:Sp`<\\?${Jl.Name}.*\\?>`}),nV=Cn({name:"OPEN",pattern:/</,push_mode:"INSIDE"}),B6=Cn({name:"INVALID_OPEN_INSIDE",pattern:/</,categories:[nV]}),H6=Cn({name:"TEXT",pattern:/[^<&]+/}),G6=Cn({name:"CLOSE",pattern:/>/,pop_mode:!0}),W6=Cn({name:"SPECIAL_CLOSE",pattern:/\?>/,pop_mode:!0}),K6=Cn({name:"SLASH_CLOSE",pattern:/\/>/,pop_mode:!0}),X6=Cn({name:"SLASH",pattern:/\//}),Q6=Cn({name:"STRING",pattern:/"[^<"]*"|'[^<']*'/}),q6=Cn({name:"EQUALS",pattern:/=/}),Y6=Cn({name:"Name",pattern:Sp`${Jl.Name}`}),z6=Cn({name:"S",pattern:/[ \t\r\n]/,group:uS.SKIPPED}),J6={defaultMode:"OUTSIDE",modes:{OUTSIDE:[JD,_6,D6,V6,w6,M6,k6,U6,tV,$6,nV,H6],INSIDE:[JD,j6,B6,G6,W6,K6,X6,q6,Q6,Y6,z6]}},Z6=new uS(J6,{positionTracking:"full",ensureOptimizations:!1,lineTerminatorCharacters:[`
|
|
269
|
+
`],lineTerminatorsPattern:/\n|\r\n/g});iV.exports={xmlLexer:Z6,tokensDictionary:eV}});var oV=Ye((Ace,rV)=>{var{CstParser:e9,tokenMatcher:t9}=(Ey(),sg(Ty)),{tokensDictionary:xt}=dS(),mS=class mS extends e9{constructor(){super(xt,{maxLookahead:1,recoveryEnabled:!0,nodeLocationTracking:"full"}),this.deletionRecoveryEnabled=!0;let t=this;t.RULE("document",()=>{t.OPTION(()=>{t.SUBRULE(t.prolog)}),t.MANY(()=>{t.SUBRULE(t.misc)}),t.OPTION2(()=>{t.SUBRULE(t.docTypeDecl)}),t.MANY2(()=>{t.SUBRULE2(t.misc)}),t.SUBRULE(t.element),t.MANY3(()=>{t.SUBRULE3(t.misc)})}),t.RULE("prolog",()=>{t.CONSUME(xt.XMLDeclOpen),t.MANY(()=>{t.SUBRULE(t.attribute)}),t.CONSUME(xt.SPECIAL_CLOSE)}),t.RULE("docTypeDecl",()=>{t.CONSUME(xt.DocType),t.CONSUME(xt.Name),t.OPTION(()=>{t.SUBRULE(t.externalID)}),t.CONSUME(xt.CLOSE)}),t.RULE("externalID",()=>{t.OR([{GATE:o(()=>t.LA(1).image==="SYSTEM","GATE"),ALT:o(()=>{t.CONSUME2(xt.Name,{LABEL:"System"}),t.CONSUME(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")},{GATE:o(()=>t.LA(1).image==="PUBLIC","GATE"),ALT:o(()=>{t.CONSUME3(xt.Name,{LABEL:"Public"}),t.CONSUME2(xt.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")}])}),t.RULE("content",()=>{t.MANY(()=>{t.OR([{ALT:o(()=>t.SUBRULE(t.element),"ALT")},{ALT:o(()=>t.SUBRULE(t.chardata),"ALT")},{ALT:o(()=>t.SUBRULE(t.reference),"ALT")},{ALT:o(()=>t.CONSUME(xt.CData),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")}])})}),t.RULE("element",()=>{t.CONSUME(xt.OPEN);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.Name)}finally{this.deletionRecoveryEnabled=!0}t.MANY(()=>{t.SUBRULE(t.attribute)}),t.OR([{ALT:o(()=>{t.CONSUME(xt.CLOSE,{LABEL:"START_CLOSE"}),t.SUBRULE(t.content),t.CONSUME(xt.SLASH_OPEN),t.CONSUME2(xt.Name,{LABEL:"END_NAME"}),t.CONSUME2(xt.CLOSE,{LABEL:"END"})},"ALT")},{ALT:o(()=>{t.CONSUME(xt.SLASH_CLOSE)},"ALT")}])}),t.RULE("reference",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.EntityRef),"ALT")},{ALT:o(()=>t.CONSUME(xt.CharRef),"ALT")}])}),t.RULE("attribute",()=>{t.CONSUME(xt.Name);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.EQUALS),t.CONSUME(xt.STRING)}finally{this.deletionRecoveryEnabled=!0}}),t.RULE("chardata",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.TEXT),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),t.RULE("misc",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),this.performSelfAnalysis()}canRecoverWithSingleTokenDeletion(t){return this.deletionRecoveryEnabled===!1?!1:super.canRecoverWithSingleTokenDeletion(t)}findReSyncTokenType(){let t=this.flattenFollowSet(),n=this.LA(1),i=2;for(;;){let r=t.find(a=>t9(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(mS,"Parser");var gS=mS,n9=new gS;rV.exports={xmlParser:n9}});var hS=Ye((Pce,aV)=>{var{xmlLexer:i9}=dS(),{xmlParser:by}=oV();aV.exports={parse:o(function(t){let n=i9.tokenize(t);return by.input=n.tokens,{cst:by.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:by.errors}},"parse"),BaseXmlCstVisitor:by.getBaseCstVisitorConstructor()}});var Cp=Ye((Zl,Pp)=>{(function(){var e,t="4.17.21",n=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",r="Expected a function",a="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",l=500,u="__lodash_placeholder__",p=1,g=2,m=4,T=1,A=2,E=1,O=2,F=4,U=8,K=16,j=32,ae=64,Z=128,re=256,Pe=512,_=30,ut="...",yt=800,je=16,an=1,Wn=2,en=3,Lt=1/0,Re=9007199254740991,Oi=17976931348623157e292,It=NaN,Mt=4294967295,sn=Mt-1,$i=Mt>>>1,Fe=[["ary",Z],["bind",E],["bindKey",O],["curry",U],["curryRight",K],["flip",Pe],["partial",j],["partialRight",ae],["rearg",re]],Kn="[object Arguments]",Ir="[object Array]",st="[object AsyncFunction]",I="[object Boolean]",S="[object Date]",Y="[object DOMException]",V="[object Error]",De="[object Function]",Rt="[object GeneratorFunction]",Qe="[object Map]",kt="[object Number]",vn="[object Null]",cn="[object Object]",Ht="[object Promise]",ni="[object Proxy]",ir="[object RegExp]",dn="[object Set]",mi="[object String]",Gt="[object Symbol]",Xo="[object Undefined]",Bi="[object WeakMap]",Nf="[object WeakSet]",Ds="[object ArrayBuffer]",Or="[object DataView]",Lf="[object Float32Array]",Rf="[object Float64Array]",Ff="[object Int8Array]",Vs="[object Int16Array]",k="[object Int32Array]",B="[object Uint8Array]",Q="[object Uint8ClampedArray]",ce="[object Uint16Array]",Le="[object Uint32Array]",gn=/\b__p \+= '';/g,xn=/\b(__p \+=) '' \+/g,nt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,me=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,Ce=RegExp(me.source),Oe=RegExp(Te.source),ot=/<%-([\s\S]+?)%>/g,Wt=/<%([\s\S]+?)%>/g,ln=/<%=([\s\S]+?)%>/g,rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yd=/^\w*$/,av=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_f=/[\\^$.*+?()[\]{}|]/g,pM=RegExp(_f.source),sv=/^\s+/,dM=/\s/,gM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mM=/\{\n\/\* \[wrapped with (.+)\] \*/,hM=/,? & /,yM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vM=/[()=,{}\[\]\/\s]/,TM=/\\(\\)?/g,EM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ex=/\w*$/,bM=/^[-+]0x[0-9a-f]+$/i,AM=/^0b[01]+$/i,SM=/^\[object .+?Constructor\]$/,PM=/^0o[0-7]+$/i,CM=/^(?:0|[1-9]\d*)$/,xM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vd=/($^)/,IM=/['\n\r\u2028\u2029\\]/g,Td="\\ud800-\\udfff",OM="\\u0300-\\u036f",NM="\\ufe20-\\ufe2f",LM="\\u20d0-\\u20ff",tx=OM+NM+LM,nx="\\u2700-\\u27bf",ix="a-z\\xdf-\\xf6\\xf8-\\xff",RM="\\xac\\xb1\\xd7\\xf7",FM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",_M="\\u2000-\\u206f",DM=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rx="A-Z\\xc0-\\xd6\\xd8-\\xde",ox="\\ufe0e\\ufe0f",ax=RM+FM+_M+DM,cv="['\u2019]",VM="["+Td+"]",sx="["+ax+"]",Ed="["+tx+"]",cx="\\d+",wM="["+nx+"]",lx="["+ix+"]",fx="[^"+Td+ax+cx+nx+ix+rx+"]",lv="\\ud83c[\\udffb-\\udfff]",MM="(?:"+Ed+"|"+lv+")",ux="[^"+Td+"]",fv="(?:\\ud83c[\\udde6-\\uddff]){2}",uv="[\\ud800-\\udbff][\\udc00-\\udfff]",Bc="["+rx+"]",px="\\u200d",dx="(?:"+lx+"|"+fx+")",kM="(?:"+Bc+"|"+fx+")",gx="(?:"+cv+"(?:d|ll|m|re|s|t|ve))?",mx="(?:"+cv+"(?:D|LL|M|RE|S|T|VE))?",hx=MM+"?",yx="["+ox+"]?",UM="(?:"+px+"(?:"+[ux,fv,uv].join("|")+")"+yx+hx+")*",jM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$M="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vx=yx+hx+UM,BM="(?:"+[wM,fv,uv].join("|")+")"+vx,HM="(?:"+[ux+Ed+"?",Ed,fv,uv,VM].join("|")+")",GM=RegExp(cv,"g"),WM=RegExp(Ed,"g"),pv=RegExp(lv+"(?="+lv+")|"+HM+vx,"g"),KM=RegExp([Bc+"?"+lx+"+"+gx+"(?="+[sx,Bc,"$"].join("|")+")",kM+"+"+mx+"(?="+[sx,Bc+dx,"$"].join("|")+")",Bc+"?"+dx+"+"+gx,Bc+"+"+mx,$M,jM,cx,BM].join("|"),"g"),XM=RegExp("["+px+Td+tx+ox+"]"),QM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qM=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],YM=-1,tn={};tn[Lf]=tn[Rf]=tn[Ff]=tn[Vs]=tn[k]=tn[B]=tn[Q]=tn[ce]=tn[Le]=!0,tn[Kn]=tn[Ir]=tn[Ds]=tn[I]=tn[Or]=tn[S]=tn[V]=tn[De]=tn[Qe]=tn[kt]=tn[cn]=tn[ir]=tn[dn]=tn[mi]=tn[Bi]=!1;var qt={};qt[Kn]=qt[Ir]=qt[Ds]=qt[Or]=qt[I]=qt[S]=qt[Lf]=qt[Rf]=qt[Ff]=qt[Vs]=qt[k]=qt[Qe]=qt[kt]=qt[cn]=qt[ir]=qt[dn]=qt[mi]=qt[Gt]=qt[B]=qt[Q]=qt[ce]=qt[Le]=!0,qt[V]=qt[De]=qt[Bi]=!1;var zM={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},JM={"&":"&","<":"<",">":">",'"':""","'":"'"},ZM={"&":"&","<":"<",">":">",""":'"',"'":"'"},e2={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},t2=parseFloat,n2=parseInt,Tx=typeof global=="object"&&global&&global.Object===Object&&global,i2=typeof self=="object"&&self&&self.Object===Object&&self,Xn=Tx||i2||Function("return this")(),dv=typeof Zl=="object"&&Zl&&!Zl.nodeType&&Zl,ws=dv&&typeof Pp=="object"&&Pp&&!Pp.nodeType&&Pp,Ex=ws&&ws.exports===dv,gv=Ex&&Tx.process,Nr=function(){try{var w=ws&&ws.require&&ws.require("util").types;return w||gv&&gv.binding&&gv.binding("util")}catch{}}(),bx=Nr&&Nr.isArrayBuffer,Ax=Nr&&Nr.isDate,Sx=Nr&&Nr.isMap,Px=Nr&&Nr.isRegExp,Cx=Nr&&Nr.isSet,xx=Nr&&Nr.isTypedArray;function or(w,X,W){switch(W.length){case 0:return w.call(X);case 1:return w.call(X,W[0]);case 2:return w.call(X,W[0],W[1]);case 3:return w.call(X,W[0],W[1],W[2])}return w.apply(X,W)}o(or,"apply");function r2(w,X,W,be){for(var He=-1,St=w==null?0:w.length;++He<St;){var Un=w[He];X(be,Un,W(Un),w)}return be}o(r2,"arrayAggregator");function Lr(w,X){for(var W=-1,be=w==null?0:w.length;++W<be&&X(w[W],W,w)!==!1;);return w}o(Lr,"arrayEach");function o2(w,X){for(var W=w==null?0:w.length;W--&&X(w[W],W,w)!==!1;);return w}o(o2,"arrayEachRight");function Ix(w,X){for(var W=-1,be=w==null?0:w.length;++W<be;)if(!X(w[W],W,w))return!1;return!0}o(Ix,"arrayEvery");function Oa(w,X){for(var W=-1,be=w==null?0:w.length,He=0,St=[];++W<be;){var Un=w[W];X(Un,W,w)&&(St[He++]=Un)}return St}o(Oa,"arrayFilter");function bd(w,X){var W=w==null?0:w.length;return!!W&&Hc(w,X,0)>-1}o(bd,"arrayIncludes");function mv(w,X,W){for(var be=-1,He=w==null?0:w.length;++be<He;)if(W(X,w[be]))return!0;return!1}o(mv,"arrayIncludesWith");function fn(w,X){for(var W=-1,be=w==null?0:w.length,He=Array(be);++W<be;)He[W]=X(w[W],W,w);return He}o(fn,"arrayMap");function Na(w,X){for(var W=-1,be=X.length,He=w.length;++W<be;)w[He+W]=X[W];return w}o(Na,"arrayPush");function hv(w,X,W,be){var He=-1,St=w==null?0:w.length;for(be&&St&&(W=w[++He]);++He<St;)W=X(W,w[He],He,w);return W}o(hv,"arrayReduce");function a2(w,X,W,be){var He=w==null?0:w.length;for(be&&He&&(W=w[--He]);He--;)W=X(W,w[He],He,w);return W}o(a2,"arrayReduceRight");function yv(w,X){for(var W=-1,be=w==null?0:w.length;++W<be;)if(X(w[W],W,w))return!0;return!1}o(yv,"arraySome");var s2=vv("length");function c2(w){return w.split("")}o(c2,"asciiToArray");function l2(w){return w.match(yM)||[]}o(l2,"asciiWords");function Ox(w,X,W){var be;return W(w,function(He,St,Un){if(X(He,St,Un))return be=St,!1}),be}o(Ox,"baseFindKey");function Ad(w,X,W,be){for(var He=w.length,St=W+(be?1:-1);be?St--:++St<He;)if(X(w[St],St,w))return St;return-1}o(Ad,"baseFindIndex");function Hc(w,X,W){return X===X?A2(w,X,W):Ad(w,Nx,W)}o(Hc,"baseIndexOf");function f2(w,X,W,be){for(var He=W-1,St=w.length;++He<St;)if(be(w[He],X))return He;return-1}o(f2,"baseIndexOfWith");function Nx(w){return w!==w}o(Nx,"baseIsNaN");function Lx(w,X){var W=w==null?0:w.length;return W?Ev(w,X)/W:It}o(Lx,"baseMean");function vv(w){return function(X){return X==null?e:X[w]}}o(vv,"baseProperty");function Tv(w){return function(X){return w==null?e:w[X]}}o(Tv,"basePropertyOf");function Rx(w,X,W,be,He){return He(w,function(St,Un,Kt){W=be?(be=!1,St):X(W,St,Un,Kt)}),W}o(Rx,"baseReduce");function u2(w,X){var W=w.length;for(w.sort(X);W--;)w[W]=w[W].value;return w}o(u2,"baseSortBy");function Ev(w,X){for(var W,be=-1,He=w.length;++be<He;){var St=X(w[be]);St!==e&&(W=W===e?St:W+St)}return W}o(Ev,"baseSum");function bv(w,X){for(var W=-1,be=Array(w);++W<w;)be[W]=X(W);return be}o(bv,"baseTimes");function p2(w,X){return fn(X,function(W){return[W,w[W]]})}o(p2,"baseToPairs");function Fx(w){return w&&w.slice(0,wx(w)+1).replace(sv,"")}o(Fx,"baseTrim");function ar(w){return function(X){return w(X)}}o(ar,"baseUnary");function Av(w,X){return fn(X,function(W){return w[W]})}o(Av,"baseValues");function Df(w,X){return w.has(X)}o(Df,"cacheHas");function _x(w,X){for(var W=-1,be=w.length;++W<be&&Hc(X,w[W],0)>-1;);return W}o(_x,"charsStartIndex");function Dx(w,X){for(var W=w.length;W--&&Hc(X,w[W],0)>-1;);return W}o(Dx,"charsEndIndex");function d2(w,X){for(var W=w.length,be=0;W--;)w[W]===X&&++be;return be}o(d2,"countHolders");var g2=Tv(zM),m2=Tv(JM);function h2(w){return"\\"+e2[w]}o(h2,"escapeStringChar");function y2(w,X){return w==null?e:w[X]}o(y2,"getValue");function Gc(w){return XM.test(w)}o(Gc,"hasUnicode");function T2(w){return QM.test(w)}o(T2,"hasUnicodeWord");function E2(w){for(var X,W=[];!(X=w.next()).done;)W.push(X.value);return W}o(E2,"iteratorToArray");function Sv(w){var X=-1,W=Array(w.size);return w.forEach(function(be,He){W[++X]=[He,be]}),W}o(Sv,"mapToArray");function Vx(w,X){return function(W){return w(X(W))}}o(Vx,"overArg");function La(w,X){for(var W=-1,be=w.length,He=0,St=[];++W<be;){var Un=w[W];(Un===X||Un===u)&&(w[W]=u,St[He++]=W)}return St}o(La,"replaceHolders");function Sd(w){var X=-1,W=Array(w.size);return w.forEach(function(be){W[++X]=be}),W}o(Sd,"setToArray");function b2(w){var X=-1,W=Array(w.size);return w.forEach(function(be){W[++X]=[be,be]}),W}o(b2,"setToPairs");function A2(w,X,W){for(var be=W-1,He=w.length;++be<He;)if(w[be]===X)return be;return-1}o(A2,"strictIndexOf");function S2(w,X,W){for(var be=W+1;be--;)if(w[be]===X)return be;return be}o(S2,"strictLastIndexOf");function Wc(w){return Gc(w)?C2(w):s2(w)}o(Wc,"stringSize");function zr(w){return Gc(w)?x2(w):c2(w)}o(zr,"stringToArray");function wx(w){for(var X=w.length;X--&&dM.test(w.charAt(X)););return X}o(wx,"trimmedEndIndex");var P2=Tv(ZM);function C2(w){for(var X=pv.lastIndex=0;pv.test(w);)++X;return X}o(C2,"unicodeSize");function x2(w){return w.match(pv)||[]}o(x2,"unicodeToArray");function I2(w){return w.match(KM)||[]}o(I2,"unicodeWords");var O2=o(function w(X){X=X==null?Xn:Ra.defaults(Xn.Object(),X,Ra.pick(Xn,qM));var W=X.Array,be=X.Date,He=X.Error,St=X.Function,Un=X.Math,Kt=X.Object,Pv=X.RegExp,N2=X.String,Rr=X.TypeError,Pd=W.prototype,L2=St.prototype,Kc=Kt.prototype,Cd=X["__core-js_shared__"],xd=L2.toString,Ft=Kc.hasOwnProperty,R2=0,Mx=function(){var c=/[^.]+$/.exec(Cd&&Cd.keys&&Cd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Id=Kc.toString,F2=xd.call(Kt),_2=Xn._,D2=Pv("^"+xd.call(Ft).replace(_f,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Od=Ex?X.Buffer:e,Fa=X.Symbol,Nd=X.Uint8Array,kx=Od?Od.allocUnsafe:e,Ld=Vx(Kt.getPrototypeOf,Kt),Ux=Kt.create,jx=Kc.propertyIsEnumerable,Rd=Pd.splice,$x=Fa?Fa.isConcatSpreadable:e,Vf=Fa?Fa.iterator:e,Ms=Fa?Fa.toStringTag:e,Fd=function(){try{var c=Bs(Kt,"defineProperty");return c({},"",{}),c}catch{}}(),V2=X.clearTimeout!==Xn.clearTimeout&&X.clearTimeout,w2=be&&be.now!==Xn.Date.now&&be.now,M2=X.setTimeout!==Xn.setTimeout&&X.setTimeout,_d=Un.ceil,Dd=Un.floor,Cv=Kt.getOwnPropertySymbols,k2=Od?Od.isBuffer:e,Bx=X.isFinite,U2=Pd.join,j2=Vx(Kt.keys,Kt),jn=Un.max,hi=Un.min,$2=be.now,B2=X.parseInt,Hx=Un.random,H2=Pd.reverse,xv=Bs(X,"DataView"),wf=Bs(X,"Map"),Iv=Bs(X,"Promise"),Xc=Bs(X,"Set"),Mf=Bs(X,"WeakMap"),kf=Bs(Kt,"create"),Vd=Mf&&new Mf,Qc={},G2=Hs(xv),W2=Hs(wf),K2=Hs(Iv),X2=Hs(Xc),Q2=Hs(Mf),wd=Fa?Fa.prototype:e,Uf=wd?wd.valueOf:e,Gx=wd?wd.toString:e;function P(c){if(Tn(c)&&!Xe(c)&&!(c instanceof pt)){if(c instanceof Fr)return c;if(Ft.call(c,"__wrapped__"))return WI(c)}return new Fr(c)}o(P,"lodash");var qc=function(){function c(){}return o(c,"object"),function(f){if(!mn(f))return{};if(Ux)return Ux(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function Md(){}o(Md,"baseLodash");function Fr(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}o(Fr,"LodashWrapper"),P.templateSettings={escape:ot,evaluate:Wt,interpolate:ln,variable:"",imports:{_:P}},P.prototype=Md.prototype,P.prototype.constructor=P,Fr.prototype=qc(Md.prototype),Fr.prototype.constructor=Fr;function pt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Mt,this.__views__=[]}o(pt,"LazyWrapper");function q2(){var c=new pt(this.__wrapped__);return c.__actions__=Hi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Hi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Hi(this.__views__),c}o(q2,"lazyClone");function Y2(){if(this.__filtered__){var c=new pt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(Y2,"lazyReverse");function z2(){var c=this.__wrapped__.value(),f=this.__dir__,d=Xe(c),v=f<0,b=d?c.length:0,x=lU(0,b,this.__views__),L=x.start,R=x.end,M=R-L,z=v?R:L-1,J=this.__iteratees__,ee=J.length,ge=0,Ne=hi(M,this.__takeCount__);if(!d||!v&&b==M&&Ne==M)return gI(c,this.__actions__);var Me=[];e:for(;M--&&ge<Ne;){z+=f;for(var et=-1,ke=c[z];++et<ee;){var ct=J[et],gt=ct.iteratee,lr=ct.type,Ri=gt(ke);if(lr==Wn)ke=Ri;else if(!Ri){if(lr==an)continue e;break e}}Me[ge++]=ke}return Me}o(z2,"lazyValue"),pt.prototype=qc(Md.prototype),pt.prototype.constructor=pt;function ks(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(ks,"Hash");function J2(){this.__data__=kf?kf(null):{},this.size=0}o(J2,"hashClear");function Z2(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(Z2,"hashDelete");function ek(c){var f=this.__data__;if(kf){var d=f[c];return d===s?e:d}return Ft.call(f,c)?f[c]:e}o(ek,"hashGet");function tk(c){var f=this.__data__;return kf?f[c]!==e:Ft.call(f,c)}o(tk,"hashHas");function nk(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=kf&&f===e?s:f,this}o(nk,"hashSet"),ks.prototype.clear=J2,ks.prototype.delete=Z2,ks.prototype.get=ek,ks.prototype.has=tk,ks.prototype.set=nk;function Qo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(Qo,"ListCache");function ik(){this.__data__=[],this.size=0}o(ik,"listCacheClear");function rk(c){var f=this.__data__,d=kd(f,c);if(d<0)return!1;var v=f.length-1;return d==v?f.pop():Rd.call(f,d,1),--this.size,!0}o(rk,"listCacheDelete");function ok(c){var f=this.__data__,d=kd(f,c);return d<0?e:f[d][1]}o(ok,"listCacheGet");function ak(c){return kd(this.__data__,c)>-1}o(ak,"listCacheHas");function sk(c,f){var d=this.__data__,v=kd(d,c);return v<0?(++this.size,d.push([c,f])):d[v][1]=f,this}o(sk,"listCacheSet"),Qo.prototype.clear=ik,Qo.prototype.delete=rk,Qo.prototype.get=ok,Qo.prototype.has=ak,Qo.prototype.set=sk;function qo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(qo,"MapCache");function ck(){this.size=0,this.__data__={hash:new ks,map:new(wf||Qo),string:new ks}}o(ck,"mapCacheClear");function lk(c){var f=Yd(this,c).delete(c);return this.size-=f?1:0,f}o(lk,"mapCacheDelete");function fk(c){return Yd(this,c).get(c)}o(fk,"mapCacheGet");function uk(c){return Yd(this,c).has(c)}o(uk,"mapCacheHas");function pk(c,f){var d=Yd(this,c),v=d.size;return d.set(c,f),this.size+=d.size==v?0:1,this}o(pk,"mapCacheSet"),qo.prototype.clear=ck,qo.prototype.delete=lk,qo.prototype.get=fk,qo.prototype.has=uk,qo.prototype.set=pk;function Us(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new qo;++f<d;)this.add(c[f])}o(Us,"SetCache");function dk(c){return this.__data__.set(c,s),this}o(dk,"setCacheAdd");function gk(c){return this.__data__.has(c)}o(gk,"setCacheHas"),Us.prototype.add=Us.prototype.push=dk,Us.prototype.has=gk;function Jr(c){var f=this.__data__=new Qo(c);this.size=f.size}o(Jr,"Stack");function mk(){this.__data__=new Qo,this.size=0}o(mk,"stackClear");function hk(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(hk,"stackDelete");function yk(c){return this.__data__.get(c)}o(yk,"stackGet");function vk(c){return this.__data__.has(c)}o(vk,"stackHas");function Tk(c,f){var d=this.__data__;if(d instanceof Qo){var v=d.__data__;if(!wf||v.length<n-1)return v.push([c,f]),this.size=++d.size,this;d=this.__data__=new qo(v)}return d.set(c,f),this.size=d.size,this}o(Tk,"stackSet"),Jr.prototype.clear=mk,Jr.prototype.delete=hk,Jr.prototype.get=yk,Jr.prototype.has=vk,Jr.prototype.set=Tk;function Wx(c,f){var d=Xe(c),v=!d&&Gs(c),b=!d&&!v&&Ma(c),x=!d&&!v&&!b&&Zc(c),L=d||v||b||x,R=L?bv(c.length,N2):[],M=R.length;for(var z in c)(f||Ft.call(c,z))&&!(L&&(z=="length"||b&&(z=="offset"||z=="parent")||x&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||Zo(z,M)))&&R.push(z);return R}o(Wx,"arrayLikeKeys");function Kx(c){var f=c.length;return f?c[kv(0,f-1)]:e}o(Kx,"arraySample");function Ek(c,f){return zd(Hi(c),js(f,0,c.length))}o(Ek,"arraySampleSize");function bk(c){return zd(Hi(c))}o(bk,"arrayShuffle");function Ov(c,f,d){(d!==e&&!Zr(c[f],d)||d===e&&!(f in c))&&Yo(c,f,d)}o(Ov,"assignMergeValue");function jf(c,f,d){var v=c[f];(!(Ft.call(c,f)&&Zr(v,d))||d===e&&!(f in c))&&Yo(c,f,d)}o(jf,"assignValue");function kd(c,f){for(var d=c.length;d--;)if(Zr(c[d][0],f))return d;return-1}o(kd,"assocIndexOf");function Ak(c,f,d,v){return _a(c,function(b,x,L){f(v,b,d(b),L)}),v}o(Ak,"baseAggregator");function Xx(c,f){return c&&Ao(f,Qn(f),c)}o(Xx,"baseAssign");function Sk(c,f){return c&&Ao(f,Wi(f),c)}o(Sk,"baseAssignIn");function Yo(c,f,d){f=="__proto__"&&Fd?Fd(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(Yo,"baseAssignValue");function Nv(c,f){for(var d=-1,v=f.length,b=W(v),x=c==null;++d<v;)b[d]=x?e:lT(c,f[d]);return b}o(Nv,"baseAt");function js(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o(js,"baseClamp");function _r(c,f,d,v,b,x){var L,R=f&p,M=f&g,z=f&m;if(d&&(L=b?d(c,v,b,x):d(c)),L!==e)return L;if(!mn(c))return c;var J=Xe(c);if(J){if(L=uU(c),!R)return Hi(c,L)}else{var ee=yi(c),ge=ee==De||ee==Rt;if(Ma(c))return yI(c,R);if(ee==cn||ee==Kn||ge&&!b){if(L=M||ge?{}:wI(c),!R)return M?eU(c,Sk(L,c)):Zk(c,Xx(L,c))}else{if(!qt[ee])return b?c:{};L=pU(c,ee,R)}}x||(x=new Jr);var Ne=x.get(c);if(Ne)return Ne;x.set(c,L),uO(c)?c.forEach(function(ke){L.add(_r(ke,f,d,ke,c,x))}):lO(c)&&c.forEach(function(ke,ct){L.set(ct,_r(ke,f,d,ct,c,x))});var Me=z?M?qv:Qv:M?Wi:Qn,et=J?e:Me(c);return Lr(et||c,function(ke,ct){et&&(ct=ke,ke=c[ct]),jf(L,ct,_r(ke,f,d,ct,c,x))}),L}o(_r,"baseClone");function Pk(c){var f=Qn(c);return function(d){return Qx(d,c,f)}}o(Pk,"baseConforms");function Qx(c,f,d){var v=d.length;if(c==null)return!v;for(c=Kt(c);v--;){var b=d[v],x=f[b],L=c[b];if(L===e&&!(b in c)||!x(L))return!1}return!0}o(Qx,"baseConformsTo");function qx(c,f,d){if(typeof c!="function")throw new Rr(r);return Xf(function(){c.apply(e,d)},f)}o(qx,"baseDelay");function $f(c,f,d,v){var b=-1,x=bd,L=!0,R=c.length,M=[],z=f.length;if(!R)return M;d&&(f=fn(f,ar(d))),v?(x=mv,L=!1):f.length>=n&&(x=Df,L=!1,f=new Us(f));e:for(;++b<R;){var J=c[b],ee=d==null?J:d(J);if(J=v||J!==0?J:0,L&&ee===ee){for(var ge=z;ge--;)if(f[ge]===ee)continue e;M.push(J)}else x(f,ee,v)||M.push(J)}return M}o($f,"baseDifference");var _a=AI(bo),Yx=AI(Rv,!0);function Ck(c,f){var d=!0;return _a(c,function(v,b,x){return d=!!f(v,b,x),d}),d}o(Ck,"baseEvery");function Ud(c,f,d){for(var v=-1,b=c.length;++v<b;){var x=c[v],L=f(x);if(L!=null&&(R===e?L===L&&!cr(L):d(L,R)))var R=L,M=x}return M}o(Ud,"baseExtremum");function xk(c,f,d,v){var b=c.length;for(d=Ze(d),d<0&&(d=-d>b?0:b+d),v=v===e||v>b?b:Ze(v),v<0&&(v+=b),v=d>v?0:dO(v);d<v;)c[d++]=f;return c}o(xk,"baseFill");function zx(c,f){var d=[];return _a(c,function(v,b,x){f(v,b,x)&&d.push(v)}),d}o(zx,"baseFilter");function ii(c,f,d,v,b){var x=-1,L=c.length;for(d||(d=gU),b||(b=[]);++x<L;){var R=c[x];f>0&&d(R)?f>1?ii(R,f-1,d,v,b):Na(b,R):v||(b[b.length]=R)}return b}o(ii,"baseFlatten");var Lv=SI(),Jx=SI(!0);function bo(c,f){return c&&Lv(c,f,Qn)}o(bo,"baseForOwn");function Rv(c,f){return c&&Jx(c,f,Qn)}o(Rv,"baseForOwnRight");function jd(c,f){return Oa(f,function(d){return ea(c[d])})}o(jd,"baseFunctions");function $s(c,f){f=Va(f,c);for(var d=0,v=f.length;c!=null&&d<v;)c=c[So(f[d++])];return d&&d==v?c:e}o($s,"baseGet");function Zx(c,f,d){var v=f(c);return Xe(c)?v:Na(v,d(c))}o(Zx,"baseGetAllKeys");function Ni(c){return c==null?c===e?Xo:vn:Ms&&Ms in Kt(c)?cU(c):bU(c)}o(Ni,"baseGetTag");function Fv(c,f){return c>f}o(Fv,"baseGt");function Ik(c,f){return c!=null&&Ft.call(c,f)}o(Ik,"baseHas");function Ok(c,f){return c!=null&&f in Kt(c)}o(Ok,"baseHasIn");function Nk(c,f,d){return c>=hi(f,d)&&c<jn(f,d)}o(Nk,"baseInRange");function _v(c,f,d){for(var v=d?mv:bd,b=c[0].length,x=c.length,L=x,R=W(x),M=1/0,z=[];L--;){var J=c[L];L&&f&&(J=fn(J,ar(f))),M=hi(J.length,M),R[L]=!d&&(f||b>=120&&J.length>=120)?new Us(L&&J):e}J=c[0];var ee=-1,ge=R[0];e:for(;++ee<b&&z.length<M;){var Ne=J[ee],Me=f?f(Ne):Ne;if(Ne=d||Ne!==0?Ne:0,!(ge?Df(ge,Me):v(z,Me,d))){for(L=x;--L;){var et=R[L];if(!(et?Df(et,Me):v(c[L],Me,d)))continue e}ge&&ge.push(Me),z.push(Ne)}}return z}o(_v,"baseIntersection");function Lk(c,f,d,v){return bo(c,function(b,x,L){f(v,d(b),x,L)}),v}o(Lk,"baseInverter");function Bf(c,f,d){f=Va(f,c),c=jI(c,f);var v=c==null?c:c[So(Vr(f))];return v==null?e:or(v,c,d)}o(Bf,"baseInvoke");function eI(c){return Tn(c)&&Ni(c)==Kn}o(eI,"baseIsArguments");function Rk(c){return Tn(c)&&Ni(c)==Ds}o(Rk,"baseIsArrayBuffer");function Fk(c){return Tn(c)&&Ni(c)==S}o(Fk,"baseIsDate");function Hf(c,f,d,v,b){return c===f?!0:c==null||f==null||!Tn(c)&&!Tn(f)?c!==c&&f!==f:_k(c,f,d,v,Hf,b)}o(Hf,"baseIsEqual");function _k(c,f,d,v,b,x){var L=Xe(c),R=Xe(f),M=L?Ir:yi(c),z=R?Ir:yi(f);M=M==Kn?cn:M,z=z==Kn?cn:z;var J=M==cn,ee=z==cn,ge=M==z;if(ge&&Ma(c)){if(!Ma(f))return!1;L=!0,J=!1}if(ge&&!J)return x||(x=new Jr),L||Zc(c)?_I(c,f,d,v,b,x):aU(c,f,M,d,v,b,x);if(!(d&T)){var Ne=J&&Ft.call(c,"__wrapped__"),Me=ee&&Ft.call(f,"__wrapped__");if(Ne||Me){var et=Ne?c.value():c,ke=Me?f.value():f;return x||(x=new Jr),b(et,ke,d,v,x)}}return ge?(x||(x=new Jr),sU(c,f,d,v,b,x)):!1}o(_k,"baseIsEqualDeep");function Dk(c){return Tn(c)&&yi(c)==Qe}o(Dk,"baseIsMap");function Dv(c,f,d,v){var b=d.length,x=b,L=!v;if(c==null)return!x;for(c=Kt(c);b--;){var R=d[b];if(L&&R[2]?R[1]!==c[R[0]]:!(R[0]in c))return!1}for(;++b<x;){R=d[b];var M=R[0],z=c[M],J=R[1];if(L&&R[2]){if(z===e&&!(M in c))return!1}else{var ee=new Jr;if(v)var ge=v(z,J,M,c,f,ee);if(!(ge===e?Hf(J,z,T|A,v,ee):ge))return!1}}return!0}o(Dv,"baseIsMatch");function tI(c){if(!mn(c)||hU(c))return!1;var f=ea(c)?D2:SM;return f.test(Hs(c))}o(tI,"baseIsNative");function Vk(c){return Tn(c)&&Ni(c)==ir}o(Vk,"baseIsRegExp");function wk(c){return Tn(c)&&yi(c)==dn}o(wk,"baseIsSet");function Mk(c){return Tn(c)&&ig(c.length)&&!!tn[Ni(c)]}o(Mk,"baseIsTypedArray");function nI(c){return typeof c=="function"?c:c==null?Ki:typeof c=="object"?Xe(c)?oI(c[0],c[1]):rI(c):PO(c)}o(nI,"baseIteratee");function Vv(c){if(!Kf(c))return j2(c);var f=[];for(var d in Kt(c))Ft.call(c,d)&&d!="constructor"&&f.push(d);return f}o(Vv,"baseKeys");function kk(c){if(!mn(c))return EU(c);var f=Kf(c),d=[];for(var v in c)v=="constructor"&&(f||!Ft.call(c,v))||d.push(v);return d}o(kk,"baseKeysIn");function wv(c,f){return c<f}o(wv,"baseLt");function iI(c,f){var d=-1,v=Gi(c)?W(c.length):[];return _a(c,function(b,x,L){v[++d]=f(b,x,L)}),v}o(iI,"baseMap");function rI(c){var f=zv(c);return f.length==1&&f[0][2]?kI(f[0][0],f[0][1]):function(d){return d===c||Dv(d,c,f)}}o(rI,"baseMatches");function oI(c,f){return Zv(c)&&MI(f)?kI(So(c),f):function(d){var v=lT(d,c);return v===e&&v===f?fT(d,c):Hf(f,v,T|A)}}o(oI,"baseMatchesProperty");function $d(c,f,d,v,b){c!==f&&Lv(f,function(x,L){if(b||(b=new Jr),mn(x))Uk(c,f,L,d,$d,v,b);else{var R=v?v(tT(c,L),x,L+"",c,f,b):e;R===e&&(R=x),Ov(c,L,R)}},Wi)}o($d,"baseMerge");function Uk(c,f,d,v,b,x,L){var R=tT(c,d),M=tT(f,d),z=L.get(M);if(z){Ov(c,d,z);return}var J=x?x(R,M,d+"",c,f,L):e,ee=J===e;if(ee){var ge=Xe(M),Ne=!ge&&Ma(M),Me=!ge&&!Ne&&Zc(M);J=M,ge||Ne||Me?Xe(R)?J=R:In(R)?J=Hi(R):Ne?(ee=!1,J=yI(M,!0)):Me?(ee=!1,J=vI(M,!0)):J=[]:Qf(M)||Gs(M)?(J=R,Gs(R)?J=gO(R):(!mn(R)||ea(R))&&(J=wI(M))):ee=!1}ee&&(L.set(M,J),b(J,M,v,x,L),L.delete(M)),Ov(c,d,J)}o(Uk,"baseMergeDeep");function aI(c,f){var d=c.length;if(d)return f+=f<0?d:0,Zo(f,d)?c[f]:e}o(aI,"baseNth");function sI(c,f,d){f.length?f=fn(f,function(x){return Xe(x)?function(L){return $s(L,x.length===1?x[0]:x)}:x}):f=[Ki];var v=-1;f=fn(f,ar(Ve()));var b=iI(c,function(x,L,R){var M=fn(f,function(z){return z(x)});return{criteria:M,index:++v,value:x}});return u2(b,function(x,L){return Jk(x,L,d)})}o(sI,"baseOrderBy");function jk(c,f){return cI(c,f,function(d,v){return fT(c,v)})}o(jk,"basePick");function cI(c,f,d){for(var v=-1,b=f.length,x={};++v<b;){var L=f[v],R=$s(c,L);d(R,L)&&Gf(x,Va(L,c),R)}return x}o(cI,"basePickBy");function $k(c){return function(f){return $s(f,c)}}o($k,"basePropertyDeep");function Mv(c,f,d,v){var b=v?f2:Hc,x=-1,L=f.length,R=c;for(c===f&&(f=Hi(f)),d&&(R=fn(c,ar(d)));++x<L;)for(var M=0,z=f[x],J=d?d(z):z;(M=b(R,J,M,v))>-1;)R!==c&&Rd.call(R,M,1),Rd.call(c,M,1);return c}o(Mv,"basePullAll");function lI(c,f){for(var d=c?f.length:0,v=d-1;d--;){var b=f[d];if(d==v||b!==x){var x=b;Zo(b)?Rd.call(c,b,1):$v(c,b)}}return c}o(lI,"basePullAt");function kv(c,f){return c+Dd(Hx()*(f-c+1))}o(kv,"baseRandom");function Bk(c,f,d,v){for(var b=-1,x=jn(_d((f-c)/(d||1)),0),L=W(x);x--;)L[v?x:++b]=c,c+=d;return L}o(Bk,"baseRange");function Uv(c,f){var d="";if(!c||f<1||f>Re)return d;do f%2&&(d+=c),f=Dd(f/2),f&&(c+=c);while(f);return d}o(Uv,"baseRepeat");function it(c,f){return nT(UI(c,f,Ki),c+"")}o(it,"baseRest");function Hk(c){return Kx(el(c))}o(Hk,"baseSample");function Gk(c,f){var d=el(c);return zd(d,js(f,0,d.length))}o(Gk,"baseSampleSize");function Gf(c,f,d,v){if(!mn(c))return c;f=Va(f,c);for(var b=-1,x=f.length,L=x-1,R=c;R!=null&&++b<x;){var M=So(f[b]),z=d;if(M==="__proto__"||M==="constructor"||M==="prototype")return c;if(b!=L){var J=R[M];z=v?v(J,M,R):e,z===e&&(z=mn(J)?J:Zo(f[b+1])?[]:{})}jf(R,M,z),R=R[M]}return c}o(Gf,"baseSet");var fI=Vd?function(c,f){return Vd.set(c,f),c}:Ki,Wk=Fd?function(c,f){return Fd(c,"toString",{configurable:!0,enumerable:!1,value:pT(f),writable:!0})}:Ki;function Kk(c){return zd(el(c))}o(Kk,"baseShuffle");function Dr(c,f,d){var v=-1,b=c.length;f<0&&(f=-f>b?0:b+f),d=d>b?b:d,d<0&&(d+=b),b=f>d?0:d-f>>>0,f>>>=0;for(var x=W(b);++v<b;)x[v]=c[v+f];return x}o(Dr,"baseSlice");function Xk(c,f){var d;return _a(c,function(v,b,x){return d=f(v,b,x),!d}),!!d}o(Xk,"baseSome");function Bd(c,f,d){var v=0,b=c==null?v:c.length;if(typeof f=="number"&&f===f&&b<=$i){for(;v<b;){var x=v+b>>>1,L=c[x];L!==null&&!cr(L)&&(d?L<=f:L<f)?v=x+1:b=x}return b}return jv(c,f,Ki,d)}o(Bd,"baseSortedIndex");function jv(c,f,d,v){var b=0,x=c==null?0:c.length;if(x===0)return 0;f=d(f);for(var L=f!==f,R=f===null,M=cr(f),z=f===e;b<x;){var J=Dd((b+x)/2),ee=d(c[J]),ge=ee!==e,Ne=ee===null,Me=ee===ee,et=cr(ee);if(L)var ke=v||Me;else z?ke=Me&&(v||ge):R?ke=Me&&ge&&(v||!Ne):M?ke=Me&&ge&&!Ne&&(v||!et):Ne||et?ke=!1:ke=v?ee<=f:ee<f;ke?b=J+1:x=J}return hi(x,sn)}o(jv,"baseSortedIndexBy");function uI(c,f){for(var d=-1,v=c.length,b=0,x=[];++d<v;){var L=c[d],R=f?f(L):L;if(!d||!Zr(R,M)){var M=R;x[b++]=L===0?0:L}}return x}o(uI,"baseSortedUniq");function pI(c){return typeof c=="number"?c:cr(c)?It:+c}o(pI,"baseToNumber");function sr(c){if(typeof c=="string")return c;if(Xe(c))return fn(c,sr)+"";if(cr(c))return Gx?Gx.call(c):"";var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(sr,"baseToString");function Da(c,f,d){var v=-1,b=bd,x=c.length,L=!0,R=[],M=R;if(d)L=!1,b=mv;else if(x>=n){var z=f?null:rU(c);if(z)return Sd(z);L=!1,b=Df,M=new Us}else M=f?[]:R;e:for(;++v<x;){var J=c[v],ee=f?f(J):J;if(J=d||J!==0?J:0,L&&ee===ee){for(var ge=M.length;ge--;)if(M[ge]===ee)continue e;f&&M.push(ee),R.push(J)}else b(M,ee,d)||(M!==R&&M.push(ee),R.push(J))}return R}o(Da,"baseUniq");function $v(c,f){return f=Va(f,c),c=jI(c,f),c==null||delete c[So(Vr(f))]}o($v,"baseUnset");function dI(c,f,d,v){return Gf(c,f,d($s(c,f)),v)}o(dI,"baseUpdate");function Hd(c,f,d,v){for(var b=c.length,x=v?b:-1;(v?x--:++x<b)&&f(c[x],x,c););return d?Dr(c,v?0:x,v?x+1:b):Dr(c,v?x+1:0,v?b:x)}o(Hd,"baseWhile");function gI(c,f){var d=c;return d instanceof pt&&(d=d.value()),hv(f,function(v,b){return b.func.apply(b.thisArg,Na([v],b.args))},d)}o(gI,"baseWrapperValue");function Bv(c,f,d){var v=c.length;if(v<2)return v?Da(c[0]):[];for(var b=-1,x=W(v);++b<v;)for(var L=c[b],R=-1;++R<v;)R!=b&&(x[b]=$f(x[b]||L,c[R],f,d));return Da(ii(x,1),f,d)}o(Bv,"baseXor");function mI(c,f,d){for(var v=-1,b=c.length,x=f.length,L={};++v<b;){var R=v<x?f[v]:e;d(L,c[v],R)}return L}o(mI,"baseZipObject");function Hv(c){return In(c)?c:[]}o(Hv,"castArrayLikeObject");function Gv(c){return typeof c=="function"?c:Ki}o(Gv,"castFunction");function Va(c,f){return Xe(c)?c:Zv(c,f)?[c]:GI(Ot(c))}o(Va,"castPath");var Qk=it;function wa(c,f,d){var v=c.length;return d=d===e?v:d,!f&&d>=v?c:Dr(c,f,d)}o(wa,"castSlice");var hI=V2||function(c){return Xn.clearTimeout(c)};function yI(c,f){if(f)return c.slice();var d=c.length,v=kx?kx(d):new c.constructor(d);return c.copy(v),v}o(yI,"cloneBuffer");function Wv(c){var f=new c.constructor(c.byteLength);return new Nd(f).set(new Nd(c)),f}o(Wv,"cloneArrayBuffer");function qk(c,f){var d=f?Wv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(qk,"cloneDataView");function Yk(c){var f=new c.constructor(c.source,ex.exec(c));return f.lastIndex=c.lastIndex,f}o(Yk,"cloneRegExp");function zk(c){return Uf?Kt(Uf.call(c)):{}}o(zk,"cloneSymbol");function vI(c,f){var d=f?Wv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(vI,"cloneTypedArray");function TI(c,f){if(c!==f){var d=c!==e,v=c===null,b=c===c,x=cr(c),L=f!==e,R=f===null,M=f===f,z=cr(f);if(!R&&!z&&!x&&c>f||x&&L&&M&&!R&&!z||v&&L&&M||!d&&M||!b)return 1;if(!v&&!x&&!z&&c<f||z&&d&&b&&!v&&!x||R&&d&&b||!L&&b||!M)return-1}return 0}o(TI,"compareAscending");function Jk(c,f,d){for(var v=-1,b=c.criteria,x=f.criteria,L=b.length,R=d.length;++v<L;){var M=TI(b[v],x[v]);if(M){if(v>=R)return M;var z=d[v];return M*(z=="desc"?-1:1)}}return c.index-f.index}o(Jk,"compareMultiple");function EI(c,f,d,v){for(var b=-1,x=c.length,L=d.length,R=-1,M=f.length,z=jn(x-L,0),J=W(M+z),ee=!v;++R<M;)J[R]=f[R];for(;++b<L;)(ee||b<x)&&(J[d[b]]=c[b]);for(;z--;)J[R++]=c[b++];return J}o(EI,"composeArgs");function bI(c,f,d,v){for(var b=-1,x=c.length,L=-1,R=d.length,M=-1,z=f.length,J=jn(x-R,0),ee=W(J+z),ge=!v;++b<J;)ee[b]=c[b];for(var Ne=b;++M<z;)ee[Ne+M]=f[M];for(;++L<R;)(ge||b<x)&&(ee[Ne+d[L]]=c[b++]);return ee}o(bI,"composeArgsRight");function Hi(c,f){var d=-1,v=c.length;for(f||(f=W(v));++d<v;)f[d]=c[d];return f}o(Hi,"copyArray");function Ao(c,f,d,v){var b=!d;d||(d={});for(var x=-1,L=f.length;++x<L;){var R=f[x],M=v?v(d[R],c[R],R,d,c):e;M===e&&(M=c[R]),b?Yo(d,R,M):jf(d,R,M)}return d}o(Ao,"copyObject");function Zk(c,f){return Ao(c,Jv(c),f)}o(Zk,"copySymbols");function eU(c,f){return Ao(c,DI(c),f)}o(eU,"copySymbolsIn");function Gd(c,f){return function(d,v){var b=Xe(d)?r2:Ak,x=f?f():{};return b(d,c,Ve(v,2),x)}}o(Gd,"createAggregator");function Yc(c){return it(function(f,d){var v=-1,b=d.length,x=b>1?d[b-1]:e,L=b>2?d[2]:e;for(x=c.length>3&&typeof x=="function"?(b--,x):e,L&&Li(d[0],d[1],L)&&(x=b<3?e:x,b=1),f=Kt(f);++v<b;){var R=d[v];R&&c(f,R,v,x)}return f})}o(Yc,"createAssigner");function AI(c,f){return function(d,v){if(d==null)return d;if(!Gi(d))return c(d,v);for(var b=d.length,x=f?b:-1,L=Kt(d);(f?x--:++x<b)&&v(L[x],x,L)!==!1;);return d}}o(AI,"createBaseEach");function SI(c){return function(f,d,v){for(var b=-1,x=Kt(f),L=v(f),R=L.length;R--;){var M=L[c?R:++b];if(d(x[M],M,x)===!1)break}return f}}o(SI,"createBaseFor");function tU(c,f,d){var v=f&E,b=Wf(c);function x(){var L=this&&this!==Xn&&this instanceof x?b:c;return L.apply(v?d:this,arguments)}return o(x,"wrapper"),x}o(tU,"createBind");function PI(c){return function(f){f=Ot(f);var d=Gc(f)?zr(f):e,v=d?d[0]:f.charAt(0),b=d?wa(d,1).join(""):f.slice(1);return v[c]()+b}}o(PI,"createCaseFirst");function zc(c){return function(f){return hv(AO(bO(f).replace(GM,"")),c,"")}}o(zc,"createCompounder");function Wf(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var d=qc(c.prototype),v=c.apply(d,f);return mn(v)?v:d}}o(Wf,"createCtor");function nU(c,f,d){var v=Wf(c);function b(){for(var x=arguments.length,L=W(x),R=x,M=Jc(b);R--;)L[R]=arguments[R];var z=x<3&&L[0]!==M&&L[x-1]!==M?[]:La(L,M);if(x-=z.length,x<d)return NI(c,f,Wd,b.placeholder,e,L,z,e,e,d-x);var J=this&&this!==Xn&&this instanceof b?v:c;return or(J,this,L)}return o(b,"wrapper"),b}o(nU,"createCurry");function CI(c){return function(f,d,v){var b=Kt(f);if(!Gi(f)){var x=Ve(d,3);f=Qn(f),d=o(function(R){return x(b[R],R,b)},"predicate")}var L=c(f,d,v);return L>-1?b[x?f[L]:L]:e}}o(CI,"createFind");function xI(c){return Jo(function(f){var d=f.length,v=d,b=Fr.prototype.thru;for(c&&f.reverse();v--;){var x=f[v];if(typeof x!="function")throw new Rr(r);if(b&&!L&&qd(x)=="wrapper")var L=new Fr([],!0)}for(v=L?v:d;++v<d;){x=f[v];var R=qd(x),M=R=="wrapper"?Yv(x):e;M&&eT(M[0])&&M[1]==(Z|U|j|re)&&!M[4].length&&M[9]==1?L=L[qd(M[0])].apply(L,M[3]):L=x.length==1&&eT(x)?L[R]():L.thru(x)}return function(){var z=arguments,J=z[0];if(L&&z.length==1&&Xe(J))return L.plant(J).value();for(var ee=0,ge=d?f[ee].apply(this,z):J;++ee<d;)ge=f[ee].call(this,ge);return ge}})}o(xI,"createFlow");function Wd(c,f,d,v,b,x,L,R,M,z){var J=f&Z,ee=f&E,ge=f&O,Ne=f&(U|K),Me=f&Pe,et=ge?e:Wf(c);function ke(){for(var ct=arguments.length,gt=W(ct),lr=ct;lr--;)gt[lr]=arguments[lr];if(Ne)var Ri=Jc(ke),fr=d2(gt,Ri);if(v&&(gt=EI(gt,v,b,Ne)),x&&(gt=bI(gt,x,L,Ne)),ct-=fr,Ne&&ct<z){var On=La(gt,Ri);return NI(c,f,Wd,ke.placeholder,d,gt,On,R,M,z-ct)}var eo=ee?d:this,na=ge?eo[c]:c;return ct=gt.length,R?gt=AU(gt,R):Me&&ct>1&>.reverse(),J&&M<ct&&(gt.length=M),this&&this!==Xn&&this instanceof ke&&(na=et||Wf(na)),na.apply(eo,gt)}return o(ke,"wrapper"),ke}o(Wd,"createHybrid");function II(c,f){return function(d,v){return Lk(d,c,f(v),{})}}o(II,"createInverter");function Kd(c,f){return function(d,v){var b;if(d===e&&v===e)return f;if(d!==e&&(b=d),v!==e){if(b===e)return v;typeof d=="string"||typeof v=="string"?(d=sr(d),v=sr(v)):(d=pI(d),v=pI(v)),b=c(d,v)}return b}}o(Kd,"createMathOperation");function Kv(c){return Jo(function(f){return f=fn(f,ar(Ve())),it(function(d){var v=this;return c(f,function(b){return or(b,v,d)})})})}o(Kv,"createOver");function Xd(c,f){f=f===e?" ":sr(f);var d=f.length;if(d<2)return d?Uv(f,c):f;var v=Uv(f,_d(c/Wc(f)));return Gc(f)?wa(zr(v),0,c).join(""):v.slice(0,c)}o(Xd,"createPadding");function iU(c,f,d,v){var b=f&E,x=Wf(c);function L(){for(var R=-1,M=arguments.length,z=-1,J=v.length,ee=W(J+M),ge=this&&this!==Xn&&this instanceof L?x:c;++z<J;)ee[z]=v[z];for(;M--;)ee[z++]=arguments[++R];return or(ge,b?d:this,ee)}return o(L,"wrapper"),L}o(iU,"createPartial");function OI(c){return function(f,d,v){return v&&typeof v!="number"&&Li(f,d,v)&&(d=v=e),f=ta(f),d===e?(d=f,f=0):d=ta(d),v=v===e?f<d?1:-1:ta(v),Bk(f,d,v,c)}}o(OI,"createRange");function Qd(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=wr(f),d=wr(d)),c(f,d)}}o(Qd,"createRelationalOperation");function NI(c,f,d,v,b,x,L,R,M,z){var J=f&U,ee=J?L:e,ge=J?e:L,Ne=J?x:e,Me=J?e:x;f|=J?j:ae,f&=~(J?ae:j),f&F||(f&=~(E|O));var et=[c,f,b,Ne,ee,Me,ge,R,M,z],ke=d.apply(e,et);return eT(c)&&$I(ke,et),ke.placeholder=v,BI(ke,c,f)}o(NI,"createRecurry");function Xv(c){var f=Un[c];return function(d,v){if(d=wr(d),v=v==null?0:hi(Ze(v),292),v&&Bx(d)){var b=(Ot(d)+"e").split("e"),x=f(b[0]+"e"+(+b[1]+v));return b=(Ot(x)+"e").split("e"),+(b[0]+"e"+(+b[1]-v))}return f(d)}}o(Xv,"createRound");var rU=Xc&&1/Sd(new Xc([,-0]))[1]==Lt?function(c){return new Xc(c)}:mT;function LI(c){return function(f){var d=yi(f);return d==Qe?Sv(f):d==dn?b2(f):p2(f,c(f))}}o(LI,"createToPairs");function zo(c,f,d,v,b,x,L,R){var M=f&O;if(!M&&typeof c!="function")throw new Rr(r);var z=v?v.length:0;if(z||(f&=~(j|ae),v=b=e),L=L===e?L:jn(Ze(L),0),R=R===e?R:Ze(R),z-=b?b.length:0,f&ae){var J=v,ee=b;v=b=e}var ge=M?e:Yv(c),Ne=[c,f,d,v,b,J,ee,x,L,R];if(ge&&TU(Ne,ge),c=Ne[0],f=Ne[1],d=Ne[2],v=Ne[3],b=Ne[4],R=Ne[9]=Ne[9]===e?M?0:c.length:jn(Ne[9]-z,0),!R&&f&(U|K)&&(f&=~(U|K)),!f||f==E)var Me=tU(c,f,d);else f==U||f==K?Me=nU(c,f,R):(f==j||f==(E|j))&&!b.length?Me=iU(c,f,d,v):Me=Wd.apply(e,Ne);var et=ge?fI:$I;return BI(et(Me,Ne),c,f)}o(zo,"createWrap");function RI(c,f,d,v){return c===e||Zr(c,Kc[d])&&!Ft.call(v,d)?f:c}o(RI,"customDefaultsAssignIn");function FI(c,f,d,v,b,x){return mn(c)&&mn(f)&&(x.set(f,c),$d(c,f,e,FI,x),x.delete(f)),c}o(FI,"customDefaultsMerge");function oU(c){return Qf(c)?e:c}o(oU,"customOmitClone");function _I(c,f,d,v,b,x){var L=d&T,R=c.length,M=f.length;if(R!=M&&!(L&&M>R))return!1;var z=x.get(c),J=x.get(f);if(z&&J)return z==f&&J==c;var ee=-1,ge=!0,Ne=d&A?new Us:e;for(x.set(c,f),x.set(f,c);++ee<R;){var Me=c[ee],et=f[ee];if(v)var ke=L?v(et,Me,ee,f,c,x):v(Me,et,ee,c,f,x);if(ke!==e){if(ke)continue;ge=!1;break}if(Ne){if(!yv(f,function(ct,gt){if(!Df(Ne,gt)&&(Me===ct||b(Me,ct,d,v,x)))return Ne.push(gt)})){ge=!1;break}}else if(!(Me===et||b(Me,et,d,v,x))){ge=!1;break}}return x.delete(c),x.delete(f),ge}o(_I,"equalArrays");function aU(c,f,d,v,b,x,L){switch(d){case Or:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Ds:return!(c.byteLength!=f.byteLength||!x(new Nd(c),new Nd(f)));case I:case S:case kt:return Zr(+c,+f);case V:return c.name==f.name&&c.message==f.message;case ir:case mi:return c==f+"";case Qe:var R=Sv;case dn:var M=v&T;if(R||(R=Sd),c.size!=f.size&&!M)return!1;var z=L.get(c);if(z)return z==f;v|=A,L.set(c,f);var J=_I(R(c),R(f),v,b,x,L);return L.delete(c),J;case Gt:if(Uf)return Uf.call(c)==Uf.call(f)}return!1}o(aU,"equalByTag");function sU(c,f,d,v,b,x){var L=d&T,R=Qv(c),M=R.length,z=Qv(f),J=z.length;if(M!=J&&!L)return!1;for(var ee=M;ee--;){var ge=R[ee];if(!(L?ge in f:Ft.call(f,ge)))return!1}var Ne=x.get(c),Me=x.get(f);if(Ne&&Me)return Ne==f&&Me==c;var et=!0;x.set(c,f),x.set(f,c);for(var ke=L;++ee<M;){ge=R[ee];var ct=c[ge],gt=f[ge];if(v)var lr=L?v(gt,ct,ge,f,c,x):v(ct,gt,ge,c,f,x);if(!(lr===e?ct===gt||b(ct,gt,d,v,x):lr)){et=!1;break}ke||(ke=ge=="constructor")}if(et&&!ke){var Ri=c.constructor,fr=f.constructor;Ri!=fr&&"constructor"in c&&"constructor"in f&&!(typeof Ri=="function"&&Ri instanceof Ri&&typeof fr=="function"&&fr instanceof fr)&&(et=!1)}return x.delete(c),x.delete(f),et}o(sU,"equalObjects");function Jo(c){return nT(UI(c,e,QI),c+"")}o(Jo,"flatRest");function Qv(c){return Zx(c,Qn,Jv)}o(Qv,"getAllKeys");function qv(c){return Zx(c,Wi,DI)}o(qv,"getAllKeysIn");var Yv=Vd?function(c){return Vd.get(c)}:mT;function qd(c){for(var f=c.name+"",d=Qc[f],v=Ft.call(Qc,f)?d.length:0;v--;){var b=d[v],x=b.func;if(x==null||x==c)return b.name}return f}o(qd,"getFuncName");function Jc(c){var f=Ft.call(P,"placeholder")?P:c;return f.placeholder}o(Jc,"getHolder");function Ve(){var c=P.iteratee||dT;return c=c===dT?nI:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function Yd(c,f){var d=c.__data__;return mU(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(Yd,"getMapData");function zv(c){for(var f=Qn(c),d=f.length;d--;){var v=f[d],b=c[v];f[d]=[v,b,MI(b)]}return f}o(zv,"getMatchData");function Bs(c,f){var d=y2(c,f);return tI(d)?d:e}o(Bs,"getNative");function cU(c){var f=Ft.call(c,Ms),d=c[Ms];try{c[Ms]=e;var v=!0}catch{}var b=Id.call(c);return v&&(f?c[Ms]=d:delete c[Ms]),b}o(cU,"getRawTag");var Jv=Cv?function(c){return c==null?[]:(c=Kt(c),Oa(Cv(c),function(f){return jx.call(c,f)}))}:hT,DI=Cv?function(c){for(var f=[];c;)Na(f,Jv(c)),c=Ld(c);return f}:hT,yi=Ni;(xv&&yi(new xv(new ArrayBuffer(1)))!=Or||wf&&yi(new wf)!=Qe||Iv&&yi(Iv.resolve())!=Ht||Xc&&yi(new Xc)!=dn||Mf&&yi(new Mf)!=Bi)&&(yi=o(function(c){var f=Ni(c),d=f==cn?c.constructor:e,v=d?Hs(d):"";if(v)switch(v){case G2:return Or;case W2:return Qe;case K2:return Ht;case X2:return dn;case Q2:return Bi}return f},"getTag"));function lU(c,f,d){for(var v=-1,b=d.length;++v<b;){var x=d[v],L=x.size;switch(x.type){case"drop":c+=L;break;case"dropRight":f-=L;break;case"take":f=hi(f,c+L);break;case"takeRight":c=jn(c,f-L);break}}return{start:c,end:f}}o(lU,"getView");function fU(c){var f=c.match(mM);return f?f[1].split(hM):[]}o(fU,"getWrapDetails");function VI(c,f,d){f=Va(f,c);for(var v=-1,b=f.length,x=!1;++v<b;){var L=So(f[v]);if(!(x=c!=null&&d(c,L)))break;c=c[L]}return x||++v!=b?x:(b=c==null?0:c.length,!!b&&ig(b)&&Zo(L,b)&&(Xe(c)||Gs(c)))}o(VI,"hasPath");function uU(c){var f=c.length,d=new c.constructor(f);return f&&typeof c[0]=="string"&&Ft.call(c,"index")&&(d.index=c.index,d.input=c.input),d}o(uU,"initCloneArray");function wI(c){return typeof c.constructor=="function"&&!Kf(c)?qc(Ld(c)):{}}o(wI,"initCloneObject");function pU(c,f,d){var v=c.constructor;switch(f){case Ds:return Wv(c);case I:case S:return new v(+c);case Or:return qk(c,d);case Lf:case Rf:case Ff:case Vs:case k:case B:case Q:case ce:case Le:return vI(c,d);case Qe:return new v;case kt:case mi:return new v(c);case ir:return Yk(c);case dn:return new v;case Gt:return zk(c)}}o(pU,"initCloneByTag");function dU(c,f){var d=f.length;if(!d)return c;var v=d-1;return f[v]=(d>1?"& ":"")+f[v],f=f.join(d>2?", ":" "),c.replace(gM,`{
|
|
270
270
|
/* [wrapped with `+f+`] */
|
|
271
|
-
`)}o(pU,"insertWrapDetails");function dU(c){return Xe(c)||Hs(c)||!!(jC&&c&&c[jC])}o(dU,"isFlattenable");function Jo(c,f){var d=typeof c;return f=f??Re,!!f&&(d=="number"||d!="symbol"&&Pw.test(c))&&c>-1&&c%1==0&&c<f}o(Jo,"isIndex");function Ni(c,f,d){if(!gn(d))return!1;var v=typeof f;return(v=="number"?Hi(d)&&Jo(f,d.length):v=="string"&&f in d)?Jr(d[f],c):!1}o(Ni,"isIterateeCall");function Jv(c,f){if(Xe(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||sr(c)?!0:hd.test(c)||!ir.test(c)||f!=null&&c in Wt(f)}o(Jv,"isKey");function gU(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}o(gU,"isKeyable");function Zv(c){var f=Qd(c),d=P[f];if(typeof d!="function"||!(f in ut.prototype))return!1;if(c===d)return!0;var v=qv(d);return!!v&&c===v[0]}o(Zv,"isLaziable");function mU(c){return!!MC&&MC in c}o(mU,"isMasked");var hU=Pd?Zo:hT;function Wf(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||Wc;return c===d}o(Wf,"isPrototype");function MI(c){return c===c&&!gn(c)}o(MI,"isStrictComparable");function wI(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Wt(d))}}o(wI,"matchesStrictComparable");function yU(c){var f=eg(c,function(v){return d.size===l&&d.clear(),v}),d=f.cache;return f}o(yU,"memoizeCapped");function vU(c,f){var d=c[1],v=f[1],b=d|v,C=b<(E|O|Z),L=v==Z&&d==U||v==Z&&d==re&&c[7].length<=f[8]||v==(Z|re)&&f[7].length<=f[8]&&d==U;if(!(C||L))return c;v&E&&(c[2]=f[2],b|=d&E?0:F);var R=f[3];if(R){var w=c[3];c[3]=w?TI(w,R,f[4]):R,c[4]=w?Na(c[3],u):f[4]}return R=f[5],R&&(w=c[5],c[5]=w?EI(w,R,f[6]):R,c[6]=w?Na(c[5],u):f[6]),R=f[7],R&&(c[7]=R),v&Z&&(c[8]=c[8]==null?f[8]:mi(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=b,c}o(vU,"mergeData");function TU(c){var f=[];if(c!=null)for(var d in Wt(c))f.push(d);return f}o(TU,"nativeKeysIn");function EU(c){return Cd.call(c)}o(EU,"objectToString");function kI(c,f,d){return f=Un(f===e?c.length-1:f,0),function(){for(var v=arguments,b=-1,C=Un(v.length-f,0),L=W(C);++b<C;)L[b]=v[f+b];b=-1;for(var R=W(f+1);++b<f;)R[b]=v[b];return R[f]=d(L),rr(c,this,R)}}o(kI,"overRest");function UI(c,f){return f.length<2?c:js(c,_r(f,0,-1))}o(UI,"parent");function bU(c,f){for(var d=c.length,v=mi(f.length,d),b=Bi(c);v--;){var C=f[v];c[v]=Jo(C,d)?b[C]:e}return c}o(bU,"reorder");function eT(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}o(eT,"safeGet");var jI=BI(lI),Kf=M2||function(c,f){return Kn.setTimeout(c,f)},tT=BI(Gk);function $I(c,f,d){var v=f+"";return tT(c,pU(v,AU(lU(v),d)))}o($I,"setWrapToString");function BI(c){var f=0,d=0;return function(){var v=j2(),b=je-(v-d);if(d=v,b>0){if(++f>=ht)return arguments[0]}else f=0;return c.apply(e,arguments)}}o(BI,"shortOut");function Yd(c,f){var d=-1,v=c.length,b=v-1;for(f=f===e?v:f;++d<f;){var C=wv(d,b),L=c[C];c[C]=c[d],c[d]=L}return c.length=f,c}o(Yd,"shuffleSelf");var HI=yU(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(ov,function(d,v,b,C){f.push(b?C.replace(vw,"$1"):v||d)}),f});function Ao(c){if(typeof c=="string"||sr(c))return c;var f=c+"";return f=="0"&&1/c==-Nt?"-0":f}o(Ao,"toKey");function Bs(c){if(c!=null){try{return xd.call(c)}catch{}try{return c+""}catch{}}return""}o(Bs,"toSource");function AU(c,f){return Nr(Fe,function(d){var v="_."+d[0];f&d[1]&&!Ed(c,v)&&c.push(v)}),c.sort()}o(AU,"updateWrapDetails");function GI(c){if(c instanceof ut)return c.clone();var f=new Rr(c.__wrapped__,c.__chain__);return f.__actions__=Bi(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}o(GI,"wrapperClone");function SU(c,f,d){(d?Ni(c,f,d):f===e)?f=1:f=Un(Je(f),0);var v=c==null?0:c.length;if(!v||f<1)return[];for(var b=0,C=0,L=W(Fd(v/f));b<v;)L[C++]=_r(c,b,b+=f);return L}o(SU,"chunk");function PU(c){for(var f=-1,d=c==null?0:c.length,v=0,b=[];++f<d;){var C=c[f];C&&(b[v++]=C)}return b}o(PU,"compact");function xU(){var c=arguments.length;if(!c)return[];for(var f=W(c-1),d=arguments[0],v=c;v--;)f[v-1]=arguments[v];return Oa(Xe(d)?Bi(d):[d],ni(f,1))}o(xU,"concat");var CU=nt(function(c,f){return Cn(c)?jf(c,ni(f,1,Cn,!0)):[]}),IU=nt(function(c,f){var d=Dr(f);return Cn(d)&&(d=e),Cn(c)?jf(c,ni(f,1,Cn,!0),Ve(d,2)):[]}),OU=nt(function(c,f){var d=Dr(f);return Cn(d)&&(d=e),Cn(c)?jf(c,ni(f,1,Cn,!0),e,d):[]});function NU(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Je(f),_r(c,f<0?0:f,v)):[]}o(NU,"drop");function LU(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Je(f),f=v-f,_r(c,0,f<0?0:f)):[]}o(LU,"dropRight");function RU(c,f){return c&&c.length?Bd(c,Ve(f,3),!0,!0):[]}o(RU,"dropRightWhile");function FU(c,f){return c&&c.length?Bd(c,Ve(f,3),!0):[]}o(FU,"dropWhile");function _U(c,f,d,v){var b=c==null?0:c.length;return b?(d&&typeof d!="number"&&Ni(c,f,d)&&(d=0,v=b),xk(c,f,d,v)):[]}o(_U,"fill");function WI(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var b=d==null?0:Je(d);return b<0&&(b=Un(v+b,0)),bd(c,Ve(f,3),b)}o(WI,"findIndex");function KI(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var b=v-1;return d!==e&&(b=Je(d),b=d<0?Un(v+b,0):mi(b,v-1)),bd(c,Ve(f,3),b,!0)}o(KI,"findLastIndex");function XI(c){var f=c==null?0:c.length;return f?ni(c,1):[]}o(XI,"flatten");function DU(c){var f=c==null?0:c.length;return f?ni(c,Nt):[]}o(DU,"flattenDeep");function VU(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:Je(f),ni(c,f)):[]}o(VU,"flattenDepth");function MU(c){for(var f=-1,d=c==null?0:c.length,v={};++f<d;){var b=c[f];v[b[0]]=b[1]}return v}o(MU,"fromPairs");function QI(c){return c&&c.length?c[0]:e}o(QI,"head");function wU(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var b=d==null?0:Je(d);return b<0&&(b=Un(v+b,0)),Bc(c,f,b)}o(wU,"indexOf");function kU(c){var f=c==null?0:c.length;return f?_r(c,0,-1):[]}o(kU,"initial");var UU=nt(function(c){var f=ln(c,Bv);return f.length&&f[0]===c[0]?Fv(f):[]}),jU=nt(function(c){var f=Dr(c),d=ln(c,Bv);return f===Dr(d)?f=e:d.pop(),d.length&&d[0]===c[0]?Fv(d,Ve(f,2)):[]}),$U=nt(function(c){var f=Dr(c),d=ln(c,Bv);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?Fv(d,e,f):[]});function BU(c,f){return c==null?"":k2.call(c,f)}o(BU,"join");function Dr(c){var f=c==null?0:c.length;return f?c[f-1]:e}o(Dr,"last");function HU(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var b=v;return d!==e&&(b=Je(d),b=b<0?Un(v+b,0):mi(b,v-1)),f===f?A2(c,f,b):bd(c,OC,b,!0)}o(HU,"lastIndexOf");function GU(c,f){return c&&c.length?oI(c,Je(f)):e}o(GU,"nth");var WU=nt(qI);function qI(c,f){return c&&c.length&&f&&f.length?Mv(c,f):c}o(qI,"pullAll");function KU(c,f,d){return c&&c.length&&f&&f.length?Mv(c,f,Ve(d,2)):c}o(KU,"pullAllBy");function XU(c,f,d){return c&&c.length&&f&&f.length?Mv(c,f,e,d):c}o(XU,"pullAllWith");var QU=zo(function(c,f){var d=c==null?0:c.length,v=Ov(c,f);return cI(c,ln(f,function(b){return Jo(b,d)?+b:b}).sort(vI)),v});function qU(c,f){var d=[];if(!(c&&c.length))return d;var v=-1,b=[],C=c.length;for(f=Ve(f,3);++v<C;){var L=c[v];f(L,v,c)&&(d.push(L),b.push(v))}return cI(c,b),d}o(qU,"remove");function nT(c){return c==null?c:B2.call(c)}o(nT,"reverse");function YU(c,f,d){var v=c==null?0:c.length;return v?(d&&typeof d!="number"&&Ni(c,f,d)?(f=0,d=v):(f=f==null?0:Je(f),d=d===e?v:Je(d)),_r(c,f,d)):[]}o(YU,"slice");function zU(c,f){return $d(c,f)}o(zU,"sortedIndex");function JU(c,f,d){return Uv(c,f,Ve(d,2))}o(JU,"sortedIndexBy");function ZU(c,f){var d=c==null?0:c.length;if(d){var v=$d(c,f);if(v<d&&Jr(c[v],f))return v}return-1}o(ZU,"sortedIndexOf");function ej(c,f){return $d(c,f,!0)}o(ej,"sortedLastIndex");function tj(c,f,d){return Uv(c,f,Ve(d,2),!0)}o(tj,"sortedLastIndexBy");function nj(c,f){var d=c==null?0:c.length;if(d){var v=$d(c,f,!0)-1;if(Jr(c[v],f))return v}return-1}o(nj,"sortedLastIndexOf");function ij(c){return c&&c.length?fI(c):[]}o(ij,"sortedUniq");function rj(c,f){return c&&c.length?fI(c,Ve(f,2)):[]}o(rj,"sortedUniqBy");function oj(c){var f=c==null?0:c.length;return f?_r(c,1,f):[]}o(oj,"tail");function aj(c,f,d){return c&&c.length?(f=d||f===e?1:Je(f),_r(c,0,f<0?0:f)):[]}o(aj,"take");function sj(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Je(f),f=v-f,_r(c,f<0?0:f,v)):[]}o(sj,"takeRight");function cj(c,f){return c&&c.length?Bd(c,Ve(f,3),!1,!0):[]}o(cj,"takeRightWhile");function lj(c,f){return c&&c.length?Bd(c,Ve(f,3)):[]}o(lj,"takeWhile");var fj=nt(function(c){return _a(ni(c,1,Cn,!0))}),uj=nt(function(c){var f=Dr(c);return Cn(f)&&(f=e),_a(ni(c,1,Cn,!0),Ve(f,2))}),pj=nt(function(c){var f=Dr(c);return f=typeof f=="function"?f:e,_a(ni(c,1,Cn,!0),e,f)});function dj(c){return c&&c.length?_a(c):[]}o(dj,"uniq");function gj(c,f){return c&&c.length?_a(c,Ve(f,2)):[]}o(gj,"uniqBy");function mj(c,f){return f=typeof f=="function"?f:e,c&&c.length?_a(c,e,f):[]}o(mj,"uniqWith");function iT(c){if(!(c&&c.length))return[];var f=0;return c=Ia(c,function(d){if(Cn(d))return f=Un(d.length,f),!0}),Ev(f,function(d){return ln(c,yv(d))})}o(iT,"unzip");function YI(c,f){if(!(c&&c.length))return[];var d=iT(c);return f==null?d:ln(d,function(v){return rr(f,e,v)})}o(YI,"unzipWith");var hj=nt(function(c,f){return Cn(c)?jf(c,f):[]}),yj=nt(function(c){return $v(Ia(c,Cn))}),vj=nt(function(c){var f=Dr(c);return Cn(f)&&(f=e),$v(Ia(c,Cn),Ve(f,2))}),Tj=nt(function(c){var f=Dr(c);return f=typeof f=="function"?f:e,$v(Ia(c,Cn),e,f)}),Ej=nt(iT);function bj(c,f){return gI(c||[],f||[],Uf)}o(bj,"zipObject");function Aj(c,f){return gI(c||[],f||[],Hf)}o(Aj,"zipObjectDeep");var Sj=nt(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,YI(c,d)});function zI(c){var f=P(c);return f.__chain__=!0,f}o(zI,"chain");function Pj(c,f){return f(c),c}o(Pj,"tap");function zd(c,f){return f(c)}o(zd,"thru");var xj=zo(function(c){var f=c.length,d=f?c[0]:0,v=this.__wrapped__,b=o(function(C){return Ov(C,c)},"interceptor");return f>1||this.__actions__.length||!(v instanceof ut)||!Jo(d)?this.thru(b):(v=v.slice(d,+d+(f?1:0)),v.__actions__.push({func:zd,args:[b],thisArg:e}),new Rr(v,this.__chain__).thru(function(C){return f&&!C.length&&C.push(e),C}))});function Cj(){return zI(this)}o(Cj,"wrapperChain");function Ij(){return new Rr(this.value(),this.__chain__)}o(Ij,"wrapperCommit");function Oj(){this.__values__===e&&(this.__values__=uO(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}o(Oj,"wrapperNext");function Nj(){return this}o(Nj,"wrapperToIterator");function Lj(c){for(var f,d=this;d instanceof Md;){var v=GI(d);v.__index__=0,v.__values__=e,f?b.__wrapped__=v:f=v;var b=v;d=d.__wrapped__}return b.__wrapped__=c,f}o(Lj,"wrapperPlant");function Rj(){var c=this.__wrapped__;if(c instanceof ut){var f=c;return this.__actions__.length&&(f=new ut(this)),f=f.reverse(),f.__actions__.push({func:zd,args:[nT],thisArg:e}),new Rr(f,this.__chain__)}return this.thru(nT)}o(Rj,"wrapperReverse");function Fj(){return dI(this.__wrapped__,this.__actions__)}o(Fj,"wrapperValue");var _j=Hd(function(c,f,d){Rt.call(c,d)?++c[d]:qo(c,d,1)});function Dj(c,f,d){var v=Xe(c)?CC:Pk;return d&&Ni(c,f,d)&&(f=e),v(c,Ve(f,3))}o(Dj,"every");function Vj(c,f){var d=Xe(c)?Ia:YC;return d(c,Ve(f,3))}o(Vj,"filter");var Mj=PI(WI),wj=PI(KI);function kj(c,f){return ni(Jd(c,f),1)}o(kj,"flatMap");function Uj(c,f){return ni(Jd(c,f),Nt)}o(Uj,"flatMapDeep");function jj(c,f,d){return d=d===e?1:Je(d),ni(Jd(c,f),d)}o(jj,"flatMapDepth");function JI(c,f){var d=Xe(c)?Nr:Fa;return d(c,Ve(f,3))}o(JI,"forEach");function ZI(c,f){var d=Xe(c)?r2:qC;return d(c,Ve(f,3))}o(ZI,"forEachRight");var $j=Hd(function(c,f,d){Rt.call(c,d)?c[d].push(f):qo(c,d,[f])});function Bj(c,f,d,v){c=Hi(c)?c:Zc(c),d=d&&!v?Je(d):0;var b=c.length;return d<0&&(d=Un(b+d,0)),ig(c)?d<=b&&c.indexOf(f,d)>-1:!!b&&Bc(c,f,d)>-1}o(Bj,"includes");var Hj=nt(function(c,f,d){var v=-1,b=typeof f=="function",C=Hi(c)?W(c.length):[];return Fa(c,function(L){C[++v]=b?rr(f,L,d):$f(L,f,d)}),C}),Gj=Hd(function(c,f,d){qo(c,d,f)});function Jd(c,f){var d=Xe(c)?ln:nI;return d(c,Ve(f,3))}o(Jd,"map");function Wj(c,f,d,v){return c==null?[]:(Xe(f)||(f=f==null?[]:[f]),d=v?e:d,Xe(d)||(d=d==null?[]:[d]),aI(c,f,d))}o(Wj,"orderBy");var Kj=Hd(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function Xj(c,f,d){var v=Xe(c)?mv:LC,b=arguments.length<3;return v(c,Ve(f,4),d,b,Fa)}o(Xj,"reduce");function Qj(c,f,d){var v=Xe(c)?o2:LC,b=arguments.length<3;return v(c,Ve(f,4),d,b,qC)}o(Qj,"reduceRight");function qj(c,f){var d=Xe(c)?Ia:YC;return d(c,tg(Ve(f,3)))}o(qj,"reject");function Yj(c){var f=Xe(c)?WC:Bk;return f(c)}o(Yj,"sample");function zj(c,f,d){(d?Ni(c,f,d):f===e)?f=1:f=Je(f);var v=Xe(c)?Tk:Hk;return v(c,f)}o(zj,"sampleSize");function Jj(c){var f=Xe(c)?Ek:Wk;return f(c)}o(Jj,"shuffle");function Zj(c){if(c==null)return 0;if(Hi(c))return ig(c)?Gc(c):c.length;var f=hi(c);return f==Qe||f==pn?c.size:Dv(c).length}o(Zj,"size");function e$(c,f,d){var v=Xe(c)?hv:Kk;return d&&Ni(c,f,d)&&(f=e),v(c,Ve(f,3))}o(e$,"some");var t$=nt(function(c,f){if(c==null)return[];var d=f.length;return d>1&&Ni(c,f[0],f[1])?f=[]:d>2&&Ni(f[0],f[1],f[2])&&(f=[f[0]]),aI(c,ni(f,1),[])}),Zd=V2||function(){return Kn.Date.now()};function n$(c,f){if(typeof f!="function")throw new Lr(r);return c=Je(c),function(){if(--c<1)return f.apply(this,arguments)}}o(n$,"after");function eO(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,Yo(c,Z,e,e,e,e,f)}o(eO,"ary");function tO(c,f){var d;if(typeof f!="function")throw new Lr(r);return c=Je(c),function(){return--c>0&&(d=f.apply(this,arguments)),c<=1&&(f=e),d}}o(tO,"before");var rT=nt(function(c,f,d){var v=E;if(d.length){var b=Na(d,zc(rT));v|=j}return Yo(c,v,f,d,b)}),nO=nt(function(c,f,d){var v=E|O;if(d.length){var b=Na(d,zc(nO));v|=j}return Yo(f,v,c,d,b)});function iO(c,f,d){f=d?e:f;var v=Yo(c,U,e,e,e,e,e,f);return v.placeholder=iO.placeholder,v}o(iO,"curry");function rO(c,f,d){f=d?e:f;var v=Yo(c,K,e,e,e,e,e,f);return v.placeholder=rO.placeholder,v}o(rO,"curryRight");function oO(c,f,d){var v,b,C,L,R,w,z=0,J=!1,ee=!1,ge=!0;if(typeof c!="function")throw new Lr(r);f=Vr(f)||0,gn(d)&&(J=!!d.leading,ee="maxWait"in d,C=ee?Un(Vr(d.maxWait)||0,f):C,ge="trailing"in d?!!d.trailing:ge);function Ne(In){var Zr=v,ta=b;return v=b=e,z=In,L=c.apply(ta,Zr),L}o(Ne,"invokeFunc");function we(In){return z=In,R=Kf(st,f),J?Ne(In):L}o(we,"leadingEdge");function Ze(In){var Zr=In-w,ta=In-z,PO=f-Zr;return ee?mi(PO,C-ta):PO}o(Ze,"remainingWait");function ke(In){var Zr=In-w,ta=In-z;return w===e||Zr>=f||Zr<0||ee&&ta>=C}o(ke,"shouldInvoke");function st(){var In=Zd();if(ke(In))return dt(In);R=Kf(st,Ze(In))}o(st,"timerExpired");function dt(In){return R=e,ge&&v?Ne(In):(v=b=e,L)}o(dt,"trailingEdge");function cr(){R!==e&&mI(R),z=0,v=w=b=R=e}o(cr,"cancel");function Li(){return R===e?L:dt(Zd())}o(Li,"flush");function lr(){var In=Zd(),Zr=ke(In);if(v=arguments,b=this,w=In,Zr){if(R===e)return we(w);if(ee)return mI(R),R=Kf(st,f),Ne(w)}return R===e&&(R=Kf(st,f)),L}return o(lr,"debounced"),lr.cancel=cr,lr.flush=Li,lr}o(oO,"debounce");var i$=nt(function(c,f){return QC(c,1,f)}),r$=nt(function(c,f,d){return QC(c,Vr(f)||0,d)});function o$(c){return Yo(c,Pe)}o(o$,"flip");function eg(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new Lr(r);var d=o(function(){var v=arguments,b=f?f.apply(this,v):v[0],C=d.cache;if(C.has(b))return C.get(b);var L=c.apply(this,v);return d.cache=C.set(b,L)||C,L},"memoized");return d.cache=new(eg.Cache||Qo),d}o(eg,"memoize"),eg.Cache=Qo;function tg(c){if(typeof c!="function")throw new Lr(r);return function(){var f=arguments;switch(f.length){case 0:return!c.call(this);case 1:return!c.call(this,f[0]);case 2:return!c.call(this,f[0],f[1]);case 3:return!c.call(this,f[0],f[1],f[2])}return!c.apply(this,f)}}o(tg,"negate");function a$(c){return tO(2,c)}o(a$,"once");var s$=Xk(function(c,f){f=f.length==1&&Xe(f[0])?ln(f[0],or(Ve())):ln(ni(f,1),or(Ve()));var d=f.length;return nt(function(v){for(var b=-1,C=mi(v.length,d);++b<C;)v[b]=f[b].call(this,v[b]);return rr(c,this,v)})}),oT=nt(function(c,f){var d=Na(f,zc(oT));return Yo(c,j,e,f,d)}),aO=nt(function(c,f){var d=Na(f,zc(aO));return Yo(c,ae,e,f,d)}),c$=zo(function(c,f){return Yo(c,re,e,e,e,f)});function l$(c,f){if(typeof c!="function")throw new Lr(r);return f=f===e?f:Je(f),nt(c,f)}o(l$,"rest");function f$(c,f){if(typeof c!="function")throw new Lr(r);return f=f==null?0:Un(Je(f),0),nt(function(d){var v=d[f],b=Va(d,0,f);return v&&Oa(b,v),rr(c,this,b)})}o(f$,"spread");function u$(c,f,d){var v=!0,b=!0;if(typeof c!="function")throw new Lr(r);return gn(d)&&(v="leading"in d?!!d.leading:v,b="trailing"in d?!!d.trailing:b),oO(c,f,{leading:v,maxWait:f,trailing:b})}o(u$,"throttle");function p$(c){return eO(c,1)}o(p$,"unary");function d$(c,f){return oT(Hv(f),c)}o(d$,"wrap");function g$(){if(!arguments.length)return[];var c=arguments[0];return Xe(c)?c:[c]}o(g$,"castArray");function m$(c){return Fr(c,m)}o(m$,"clone");function h$(c,f){return f=typeof f=="function"?f:e,Fr(c,m,f)}o(h$,"cloneWith");function y$(c){return Fr(c,p|m)}o(y$,"cloneDeep");function v$(c,f){return f=typeof f=="function"?f:e,Fr(c,p|m,f)}o(v$,"cloneDeepWith");function T$(c,f){return f==null||XC(c,f,Xn(f))}o(T$,"conformsTo");function Jr(c,f){return c===f||c!==c&&f!==f}o(Jr,"eq");var E$=Xd(Rv),b$=Xd(function(c,f){return c>=f}),Hs=ZC(function(){return arguments}())?ZC:function(c){return vn(c)&&Rt.call(c,"callee")&&!UC.call(c,"callee")},Xe=W.isArray,A$=EC?or(EC):Lk;function Hi(c){return c!=null&&ng(c.length)&&!Zo(c)}o(Hi,"isArrayLike");function Cn(c){return vn(c)&&Hi(c)}o(Cn,"isArrayLikeObject");function S$(c){return c===!0||c===!1||vn(c)&&Oi(c)==I}o(S$,"isBoolean");var Ma=w2||hT,P$=bC?or(bC):Rk;function x$(c){return vn(c)&&c.nodeType===1&&!Xf(c)}o(x$,"isElement");function C$(c){if(c==null)return!0;if(Hi(c)&&(Xe(c)||typeof c=="string"||typeof c.splice=="function"||Ma(c)||Jc(c)||Hs(c)))return!c.length;var f=hi(c);if(f==Qe||f==pn)return!c.size;if(Wf(c))return!Dv(c).length;for(var d in c)if(Rt.call(c,d))return!1;return!0}o(C$,"isEmpty");function I$(c,f){return Bf(c,f)}o(I$,"isEqual");function O$(c,f,d){d=typeof d=="function"?d:e;var v=d?d(c,f):e;return v===e?Bf(c,f,e,d):!!v}o(O$,"isEqualWith");function aT(c){if(!vn(c))return!1;var f=Oi(c);return f==V||f==Y||typeof c.message=="string"&&typeof c.name=="string"&&!Xf(c)}o(aT,"isError");function N$(c){return typeof c=="number"&&$C(c)}o(N$,"isFinite");function Zo(c){if(!gn(c))return!1;var f=Oi(c);return f==De||f==Lt||f==at||f==ti}o(Zo,"isFunction");function sO(c){return typeof c=="number"&&c==Je(c)}o(sO,"isInteger");function ng(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Re}o(ng,"isLength");function gn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}o(gn,"isObject");function vn(c){return c!=null&&typeof c=="object"}o(vn,"isObjectLike");var cO=AC?or(AC):_k;function L$(c,f){return c===f||_v(c,f,Yv(f))}o(L$,"isMatch");function R$(c,f,d){return d=typeof d=="function"?d:e,_v(c,f,Yv(f),d)}o(R$,"isMatchWith");function F$(c){return lO(c)&&c!=+c}o(F$,"isNaN");function _$(c){if(hU(c))throw new Ge(i);return eI(c)}o(_$,"isNative");function D$(c){return c===null}o(D$,"isNull");function V$(c){return c==null}o(V$,"isNil");function lO(c){return typeof c=="number"||vn(c)&&Oi(c)==wt}o(lO,"isNumber");function Xf(c){if(!vn(c)||Oi(c)!=sn)return!1;var f=Nd(c);if(f===null)return!0;var d=Rt.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&xd.call(d)==R2}o(Xf,"isPlainObject");var sT=SC?or(SC):Dk;function M$(c){return sO(c)&&c>=-Re&&c<=Re}o(M$,"isSafeInteger");var fO=PC?or(PC):Vk;function ig(c){return typeof c=="string"||!Xe(c)&&vn(c)&&Oi(c)==gi}o(ig,"isString");function sr(c){return typeof c=="symbol"||vn(c)&&Oi(c)==Ht}o(sr,"isSymbol");var Jc=xC?or(xC):Mk;function w$(c){return c===e}o(w$,"isUndefined");function k$(c){return vn(c)&&hi(c)==$i}o(k$,"isWeakMap");function U$(c){return vn(c)&&Oi(c)==Of}o(U$,"isWeakSet");var j$=Xd(Vv),$$=Xd(function(c,f){return c<=f});function uO(c){if(!c)return[];if(Hi(c))return ig(c)?Yr(c):Bi(c);if(Df&&c[Df])return T2(c[Df]());var f=hi(c),d=f==Qe?Av:f==pn?Ad:Zc;return d(c)}o(uO,"toArray");function ea(c){if(!c)return c===0?c:0;if(c=Vr(c),c===Nt||c===-Nt){var f=c<0?-1:1;return f*Ii}return c===c?c:0}o(ea,"toFinite");function Je(c){var f=ea(c),d=f%1;return f===f?d?f-d:f:0}o(Je,"toInteger");function pO(c){return c?Us(Je(c),0,Mt):0}o(pO,"toLength");function Vr(c){if(typeof c=="number")return c;if(sr(c))return Ct;if(gn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=gn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=RC(c);var d=bw.test(c);return d||Sw.test(c)?t2(c.slice(2),d?2:8):Ew.test(c)?Ct:+c}o(Vr,"toNumber");function dO(c){return bo(c,Gi(c))}o(dO,"toPlainObject");function B$(c){return c?Us(Je(c),-Re,Re):c===0?c:0}o(B$,"toSafeInteger");function It(c){return c==null?"":ar(c)}o(It,"toString");var H$=qc(function(c,f){if(Wf(f)||Hi(f)){bo(f,Xn(f),c);return}for(var d in f)Rt.call(f,d)&&Uf(c,d,f[d])}),gO=qc(function(c,f){bo(f,Gi(f),c)}),rg=qc(function(c,f,d,v){bo(f,Gi(f),c,v)}),G$=qc(function(c,f,d,v){bo(f,Xn(f),c,v)}),W$=zo(Ov);function K$(c,f){var d=Qc(c);return f==null?d:KC(d,f)}o(K$,"create");var X$=nt(function(c,f){c=Wt(c);var d=-1,v=f.length,b=v>2?f[2]:e;for(b&&Ni(f[0],f[1],b)&&(v=1);++d<v;)for(var C=f[d],L=Gi(C),R=-1,w=L.length;++R<w;){var z=L[R],J=c[z];(J===e||Jr(J,Wc[z])&&!Rt.call(c,z))&&(c[z]=C[z])}return c}),Q$=nt(function(c){return c.push(e,RI),rr(mO,e,c)});function q$(c,f){return IC(c,Ve(f,3),Eo)}o(q$,"findKey");function Y$(c,f){return IC(c,Ve(f,3),Lv)}o(Y$,"findLastKey");function z$(c,f){return c==null?c:Nv(c,Ve(f,3),Gi)}o(z$,"forIn");function J$(c,f){return c==null?c:zC(c,Ve(f,3),Gi)}o(J$,"forInRight");function Z$(c,f){return c&&Eo(c,Ve(f,3))}o(Z$,"forOwn");function e4(c,f){return c&&Lv(c,Ve(f,3))}o(e4,"forOwnRight");function t4(c){return c==null?[]:Ud(c,Xn(c))}o(t4,"functions");function n4(c){return c==null?[]:Ud(c,Gi(c))}o(n4,"functionsIn");function cT(c,f,d){var v=c==null?e:js(c,f);return v===e?d:v}o(cT,"get");function i4(c,f){return c!=null&&DI(c,f,Ck)}o(i4,"has");function lT(c,f){return c!=null&&DI(c,f,Ik)}o(lT,"hasIn");var r4=CI(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Cd.call(f)),c[f]=d},uT(Wi)),o4=CI(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Cd.call(f)),Rt.call(c,f)?c[f].push(d):c[f]=[d]},Ve),a4=nt($f);function Xn(c){return Hi(c)?GC(c):Dv(c)}o(Xn,"keys");function Gi(c){return Hi(c)?GC(c,!0):wk(c)}o(Gi,"keysIn");function s4(c,f){var d={};return f=Ve(f,3),Eo(c,function(v,b,C){qo(d,f(v,b,C),v)}),d}o(s4,"mapKeys");function c4(c,f){var d={};return f=Ve(f,3),Eo(c,function(v,b,C){qo(d,b,f(v,b,C))}),d}o(c4,"mapValues");var l4=qc(function(c,f,d){jd(c,f,d)}),mO=qc(function(c,f,d,v){jd(c,f,d,v)}),f4=zo(function(c,f){var d={};if(c==null)return d;var v=!1;f=ln(f,function(C){return C=Da(C,c),v||(v=C.length>1),C}),bo(c,Qv(c),d),v&&(d=Fr(d,p|g|m,rU));for(var b=f.length;b--;)jv(d,f[b]);return d});function u4(c,f){return hO(c,tg(Ve(f)))}o(u4,"omitBy");var p4=zo(function(c,f){return c==null?{}:Uk(c,f)});function hO(c,f){if(c==null)return{};var d=ln(Qv(c),function(v){return[v]});return f=Ve(f),sI(c,d,function(v,b){return f(v,b[0])})}o(hO,"pickBy");function d4(c,f,d){f=Da(f,c);var v=-1,b=f.length;for(b||(b=1,c=e);++v<b;){var C=c==null?e:c[Ao(f[v])];C===e&&(v=b,C=d),c=Zo(C)?C.call(c):C}return c}o(d4,"result");function g4(c,f,d){return c==null?c:Hf(c,f,d)}o(g4,"set");function m4(c,f,d,v){return v=typeof v=="function"?v:e,c==null?c:Hf(c,f,d,v)}o(m4,"setWith");var yO=NI(Xn),vO=NI(Gi);function h4(c,f,d){var v=Xe(c),b=v||Ma(c)||Jc(c);if(f=Ve(f,4),d==null){var C=c&&c.constructor;b?d=v?new C:[]:gn(c)?d=Zo(C)?Qc(Nd(c)):{}:d={}}return(b?Nr:Eo)(c,function(L,R,w){return f(d,L,R,w)}),d}o(h4,"transform");function y4(c,f){return c==null?!0:jv(c,f)}o(y4,"unset");function T4(c,f,d){return c==null?c:pI(c,f,Hv(d))}o(T4,"update");function E4(c,f,d,v){return v=typeof v=="function"?v:e,c==null?c:pI(c,f,Hv(d),v)}o(E4,"updateWith");function Zc(c){return c==null?[]:bv(c,Xn(c))}o(Zc,"values");function b4(c){return c==null?[]:bv(c,Gi(c))}o(b4,"valuesIn");function A4(c,f,d){return d===e&&(d=f,f=e),d!==e&&(d=Vr(d),d=d===d?d:0),f!==e&&(f=Vr(f),f=f===f?f:0),Us(Vr(c),f,d)}o(A4,"clamp");function S4(c,f,d){return f=ea(f),d===e?(d=f,f=0):d=ea(d),c=Vr(c),Ok(c,f,d)}o(S4,"inRange");function P4(c,f,d){if(d&&typeof d!="boolean"&&Ni(c,f,d)&&(f=d=e),d===e&&(typeof f=="boolean"?(d=f,f=e):typeof c=="boolean"&&(d=c,c=e)),c===e&&f===e?(c=0,f=1):(c=ea(c),f===e?(f=c,c=0):f=ea(f)),c>f){var v=c;c=f,f=v}if(d||c%1||f%1){var b=BC();return mi(c+b*(f-c+e2("1e-"+((b+"").length-1))),f)}return wv(c,f)}o(P4,"random");var x4=Yc(function(c,f,d){return f=f.toLowerCase(),c+(d?TO(f):f)});function TO(c){return fT(It(c).toLowerCase())}o(TO,"capitalize");function EO(c){return c=It(c),c&&c.replace(xw,d2).replace(Gw,"")}o(EO,"deburr");function C4(c,f,d){c=It(c),f=ar(f);var v=c.length;d=d===e?v:Us(Je(d),0,v);var b=d;return d-=f.length,d>=0&&c.slice(d,b)==f}o(C4,"endsWith");function I4(c){return c=It(c),c&&Oe.test(c)?c.replace(Te,g2):c}o(I4,"escape");function O4(c){return c=It(c),c&&uw.test(c)?c.replace(Ff,"\\$&"):c}o(O4,"escapeRegExp");var N4=Yc(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),L4=Yc(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),R4=SI("toLowerCase");function F4(c,f,d){c=It(c),f=Je(f);var v=f?Gc(c):0;if(!f||v>=f)return c;var b=(f-v)/2;return Kd(_d(b),d)+c+Kd(Fd(b),d)}o(F4,"pad");function _4(c,f,d){c=It(c),f=Je(f);var v=f?Gc(c):0;return f&&v<f?c+Kd(f-v,d):c}o(_4,"padEnd");function D4(c,f,d){c=It(c),f=Je(f);var v=f?Gc(c):0;return f&&v<f?Kd(f-v,d)+c:c}o(D4,"padStart");function V4(c,f,d){return d||f==null?f=0:f&&(f=+f),$2(It(c).replace(av,""),f||0)}o(V4,"parseInt");function M4(c,f,d){return(d?Ni(c,f,d):f===e)?f=1:f=Je(f),kv(It(c),f)}o(M4,"repeat");function w4(){var c=arguments,f=It(c[0]);return c.length<3?f:f.replace(c[1],c[2])}o(w4,"replace");var k4=Yc(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function U4(c,f,d){return d&&typeof d!="number"&&Ni(c,f,d)&&(f=d=e),d=d===e?Mt:d>>>0,d?(c=It(c),c&&(typeof f=="string"||f!=null&&!sT(f))&&(f=ar(f),!f&&Hc(c))?Va(Yr(c),0,d):c.split(f,d)):[]}o(U4,"split");var j4=Yc(function(c,f,d){return c+(d?" ":"")+fT(f)});function $4(c,f,d){return c=It(c),d=d==null?0:Us(Je(d),0,c.length),f=ar(f),c.slice(d,d+f.length)==f}o($4,"startsWith");function B4(c,f,d){var v=P.templateSettings;d&&Ni(c,f,d)&&(f=e),c=It(c),f=rg({},f,v,LI);var b=rg({},f.imports,v.imports,LI),C=Xn(b),L=bv(b,C),R,w,z=0,J=f.interpolate||yd,ee="__p += '",ge=Sv((f.escape||yd).source+"|"+J.source+"|"+(J===cn?Tw:yd).source+"|"+(f.evaluate||yd).source+"|$","g"),Ne="//# sourceURL="+(Rt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qw+"]")+`
|
|
272
|
-
`;c.replace(ge,function(ke,
|
|
273
|
-
__e(`+
|
|
274
|
-
'`),
|
|
275
|
-
`+
|
|
276
|
-
__p += '`),
|
|
277
|
-
((__t = (`+
|
|
278
|
-
'`),z=
|
|
279
|
-
`;var
|
|
271
|
+
`)}o(dU,"insertWrapDetails");function gU(c){return Xe(c)||Gs(c)||!!($x&&c&&c[$x])}o(gU,"isFlattenable");function Zo(c,f){var d=typeof c;return f=f??Re,!!f&&(d=="number"||d!="symbol"&&CM.test(c))&&c>-1&&c%1==0&&c<f}o(Zo,"isIndex");function Li(c,f,d){if(!mn(d))return!1;var v=typeof f;return(v=="number"?Gi(d)&&Zo(f,d.length):v=="string"&&f in d)?Zr(d[f],c):!1}o(Li,"isIterateeCall");function Zv(c,f){if(Xe(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||cr(c)?!0:yd.test(c)||!rr.test(c)||f!=null&&c in Kt(f)}o(Zv,"isKey");function mU(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}o(mU,"isKeyable");function eT(c){var f=qd(c),d=P[f];if(typeof d!="function"||!(f in pt.prototype))return!1;if(c===d)return!0;var v=Yv(d);return!!v&&c===v[0]}o(eT,"isLaziable");function hU(c){return!!Mx&&Mx in c}o(hU,"isMasked");var yU=Cd?ea:yT;function Kf(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||Kc;return c===d}o(Kf,"isPrototype");function MI(c){return c===c&&!mn(c)}o(MI,"isStrictComparable");function kI(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Kt(d))}}o(kI,"matchesStrictComparable");function vU(c){var f=tg(c,function(v){return d.size===l&&d.clear(),v}),d=f.cache;return f}o(vU,"memoizeCapped");function TU(c,f){var d=c[1],v=f[1],b=d|v,x=b<(E|O|Z),L=v==Z&&d==U||v==Z&&d==re&&c[7].length<=f[8]||v==(Z|re)&&f[7].length<=f[8]&&d==U;if(!(x||L))return c;v&E&&(c[2]=f[2],b|=d&E?0:F);var R=f[3];if(R){var M=c[3];c[3]=M?EI(M,R,f[4]):R,c[4]=M?La(c[3],u):f[4]}return R=f[5],R&&(M=c[5],c[5]=M?bI(M,R,f[6]):R,c[6]=M?La(c[5],u):f[6]),R=f[7],R&&(c[7]=R),v&Z&&(c[8]=c[8]==null?f[8]:hi(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=b,c}o(TU,"mergeData");function EU(c){var f=[];if(c!=null)for(var d in Kt(c))f.push(d);return f}o(EU,"nativeKeysIn");function bU(c){return Id.call(c)}o(bU,"objectToString");function UI(c,f,d){return f=jn(f===e?c.length-1:f,0),function(){for(var v=arguments,b=-1,x=jn(v.length-f,0),L=W(x);++b<x;)L[b]=v[f+b];b=-1;for(var R=W(f+1);++b<f;)R[b]=v[b];return R[f]=d(L),or(c,this,R)}}o(UI,"overRest");function jI(c,f){return f.length<2?c:$s(c,Dr(f,0,-1))}o(jI,"parent");function AU(c,f){for(var d=c.length,v=hi(f.length,d),b=Hi(c);v--;){var x=f[v];c[v]=Zo(x,d)?b[x]:e}return c}o(AU,"reorder");function tT(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}o(tT,"safeGet");var $I=HI(fI),Xf=M2||function(c,f){return Xn.setTimeout(c,f)},nT=HI(Wk);function BI(c,f,d){var v=f+"";return nT(c,dU(v,SU(fU(v),d)))}o(BI,"setWrapToString");function HI(c){var f=0,d=0;return function(){var v=$2(),b=je-(v-d);if(d=v,b>0){if(++f>=yt)return arguments[0]}else f=0;return c.apply(e,arguments)}}o(HI,"shortOut");function zd(c,f){var d=-1,v=c.length,b=v-1;for(f=f===e?v:f;++d<f;){var x=kv(d,b),L=c[x];c[x]=c[d],c[d]=L}return c.length=f,c}o(zd,"shuffleSelf");var GI=vU(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(av,function(d,v,b,x){f.push(b?x.replace(TM,"$1"):v||d)}),f});function So(c){if(typeof c=="string"||cr(c))return c;var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(So,"toKey");function Hs(c){if(c!=null){try{return xd.call(c)}catch{}try{return c+""}catch{}}return""}o(Hs,"toSource");function SU(c,f){return Lr(Fe,function(d){var v="_."+d[0];f&d[1]&&!bd(c,v)&&c.push(v)}),c.sort()}o(SU,"updateWrapDetails");function WI(c){if(c instanceof pt)return c.clone();var f=new Fr(c.__wrapped__,c.__chain__);return f.__actions__=Hi(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}o(WI,"wrapperClone");function PU(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=jn(Ze(f),0);var v=c==null?0:c.length;if(!v||f<1)return[];for(var b=0,x=0,L=W(_d(v/f));b<v;)L[x++]=Dr(c,b,b+=f);return L}o(PU,"chunk");function CU(c){for(var f=-1,d=c==null?0:c.length,v=0,b=[];++f<d;){var x=c[f];x&&(b[v++]=x)}return b}o(CU,"compact");function xU(){var c=arguments.length;if(!c)return[];for(var f=W(c-1),d=arguments[0],v=c;v--;)f[v-1]=arguments[v];return Na(Xe(d)?Hi(d):[d],ii(f,1))}o(xU,"concat");var IU=it(function(c,f){return In(c)?$f(c,ii(f,1,In,!0)):[]}),OU=it(function(c,f){var d=Vr(f);return In(d)&&(d=e),In(c)?$f(c,ii(f,1,In,!0),Ve(d,2)):[]}),NU=it(function(c,f){var d=Vr(f);return In(d)&&(d=e),In(c)?$f(c,ii(f,1,In,!0),e,d):[]});function LU(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Ze(f),Dr(c,f<0?0:f,v)):[]}o(LU,"drop");function RU(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Ze(f),f=v-f,Dr(c,0,f<0?0:f)):[]}o(RU,"dropRight");function FU(c,f){return c&&c.length?Hd(c,Ve(f,3),!0,!0):[]}o(FU,"dropRightWhile");function _U(c,f){return c&&c.length?Hd(c,Ve(f,3),!0):[]}o(_U,"dropWhile");function DU(c,f,d,v){var b=c==null?0:c.length;return b?(d&&typeof d!="number"&&Li(c,f,d)&&(d=0,v=b),xk(c,f,d,v)):[]}o(DU,"fill");function KI(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var b=d==null?0:Ze(d);return b<0&&(b=jn(v+b,0)),Ad(c,Ve(f,3),b)}o(KI,"findIndex");function XI(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var b=v-1;return d!==e&&(b=Ze(d),b=d<0?jn(v+b,0):hi(b,v-1)),Ad(c,Ve(f,3),b,!0)}o(XI,"findLastIndex");function QI(c){var f=c==null?0:c.length;return f?ii(c,1):[]}o(QI,"flatten");function VU(c){var f=c==null?0:c.length;return f?ii(c,Lt):[]}o(VU,"flattenDeep");function wU(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:Ze(f),ii(c,f)):[]}o(wU,"flattenDepth");function MU(c){for(var f=-1,d=c==null?0:c.length,v={};++f<d;){var b=c[f];v[b[0]]=b[1]}return v}o(MU,"fromPairs");function qI(c){return c&&c.length?c[0]:e}o(qI,"head");function kU(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var b=d==null?0:Ze(d);return b<0&&(b=jn(v+b,0)),Hc(c,f,b)}o(kU,"indexOf");function UU(c){var f=c==null?0:c.length;return f?Dr(c,0,-1):[]}o(UU,"initial");var jU=it(function(c){var f=fn(c,Hv);return f.length&&f[0]===c[0]?_v(f):[]}),$U=it(function(c){var f=Vr(c),d=fn(c,Hv);return f===Vr(d)?f=e:d.pop(),d.length&&d[0]===c[0]?_v(d,Ve(f,2)):[]}),BU=it(function(c){var f=Vr(c),d=fn(c,Hv);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?_v(d,e,f):[]});function HU(c,f){return c==null?"":U2.call(c,f)}o(HU,"join");function Vr(c){var f=c==null?0:c.length;return f?c[f-1]:e}o(Vr,"last");function GU(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var b=v;return d!==e&&(b=Ze(d),b=b<0?jn(v+b,0):hi(b,v-1)),f===f?S2(c,f,b):Ad(c,Nx,b,!0)}o(GU,"lastIndexOf");function WU(c,f){return c&&c.length?aI(c,Ze(f)):e}o(WU,"nth");var KU=it(YI);function YI(c,f){return c&&c.length&&f&&f.length?Mv(c,f):c}o(YI,"pullAll");function XU(c,f,d){return c&&c.length&&f&&f.length?Mv(c,f,Ve(d,2)):c}o(XU,"pullAllBy");function QU(c,f,d){return c&&c.length&&f&&f.length?Mv(c,f,e,d):c}o(QU,"pullAllWith");var qU=Jo(function(c,f){var d=c==null?0:c.length,v=Nv(c,f);return lI(c,fn(f,function(b){return Zo(b,d)?+b:b}).sort(TI)),v});function YU(c,f){var d=[];if(!(c&&c.length))return d;var v=-1,b=[],x=c.length;for(f=Ve(f,3);++v<x;){var L=c[v];f(L,v,c)&&(d.push(L),b.push(v))}return lI(c,b),d}o(YU,"remove");function iT(c){return c==null?c:H2.call(c)}o(iT,"reverse");function zU(c,f,d){var v=c==null?0:c.length;return v?(d&&typeof d!="number"&&Li(c,f,d)?(f=0,d=v):(f=f==null?0:Ze(f),d=d===e?v:Ze(d)),Dr(c,f,d)):[]}o(zU,"slice");function JU(c,f){return Bd(c,f)}o(JU,"sortedIndex");function ZU(c,f,d){return jv(c,f,Ve(d,2))}o(ZU,"sortedIndexBy");function ej(c,f){var d=c==null?0:c.length;if(d){var v=Bd(c,f);if(v<d&&Zr(c[v],f))return v}return-1}o(ej,"sortedIndexOf");function tj(c,f){return Bd(c,f,!0)}o(tj,"sortedLastIndex");function nj(c,f,d){return jv(c,f,Ve(d,2),!0)}o(nj,"sortedLastIndexBy");function ij(c,f){var d=c==null?0:c.length;if(d){var v=Bd(c,f,!0)-1;if(Zr(c[v],f))return v}return-1}o(ij,"sortedLastIndexOf");function rj(c){return c&&c.length?uI(c):[]}o(rj,"sortedUniq");function oj(c,f){return c&&c.length?uI(c,Ve(f,2)):[]}o(oj,"sortedUniqBy");function aj(c){var f=c==null?0:c.length;return f?Dr(c,1,f):[]}o(aj,"tail");function sj(c,f,d){return c&&c.length?(f=d||f===e?1:Ze(f),Dr(c,0,f<0?0:f)):[]}o(sj,"take");function cj(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Ze(f),f=v-f,Dr(c,f<0?0:f,v)):[]}o(cj,"takeRight");function lj(c,f){return c&&c.length?Hd(c,Ve(f,3),!1,!0):[]}o(lj,"takeRightWhile");function fj(c,f){return c&&c.length?Hd(c,Ve(f,3)):[]}o(fj,"takeWhile");var uj=it(function(c){return Da(ii(c,1,In,!0))}),pj=it(function(c){var f=Vr(c);return In(f)&&(f=e),Da(ii(c,1,In,!0),Ve(f,2))}),dj=it(function(c){var f=Vr(c);return f=typeof f=="function"?f:e,Da(ii(c,1,In,!0),e,f)});function gj(c){return c&&c.length?Da(c):[]}o(gj,"uniq");function mj(c,f){return c&&c.length?Da(c,Ve(f,2)):[]}o(mj,"uniqBy");function hj(c,f){return f=typeof f=="function"?f:e,c&&c.length?Da(c,e,f):[]}o(hj,"uniqWith");function rT(c){if(!(c&&c.length))return[];var f=0;return c=Oa(c,function(d){if(In(d))return f=jn(d.length,f),!0}),bv(f,function(d){return fn(c,vv(d))})}o(rT,"unzip");function zI(c,f){if(!(c&&c.length))return[];var d=rT(c);return f==null?d:fn(d,function(v){return or(f,e,v)})}o(zI,"unzipWith");var yj=it(function(c,f){return In(c)?$f(c,f):[]}),vj=it(function(c){return Bv(Oa(c,In))}),Tj=it(function(c){var f=Vr(c);return In(f)&&(f=e),Bv(Oa(c,In),Ve(f,2))}),Ej=it(function(c){var f=Vr(c);return f=typeof f=="function"?f:e,Bv(Oa(c,In),e,f)}),bj=it(rT);function Aj(c,f){return mI(c||[],f||[],jf)}o(Aj,"zipObject");function Sj(c,f){return mI(c||[],f||[],Gf)}o(Sj,"zipObjectDeep");var Pj=it(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,zI(c,d)});function JI(c){var f=P(c);return f.__chain__=!0,f}o(JI,"chain");function Cj(c,f){return f(c),c}o(Cj,"tap");function Jd(c,f){return f(c)}o(Jd,"thru");var xj=Jo(function(c){var f=c.length,d=f?c[0]:0,v=this.__wrapped__,b=o(function(x){return Nv(x,c)},"interceptor");return f>1||this.__actions__.length||!(v instanceof pt)||!Zo(d)?this.thru(b):(v=v.slice(d,+d+(f?1:0)),v.__actions__.push({func:Jd,args:[b],thisArg:e}),new Fr(v,this.__chain__).thru(function(x){return f&&!x.length&&x.push(e),x}))});function Ij(){return JI(this)}o(Ij,"wrapperChain");function Oj(){return new Fr(this.value(),this.__chain__)}o(Oj,"wrapperCommit");function Nj(){this.__values__===e&&(this.__values__=pO(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}o(Nj,"wrapperNext");function Lj(){return this}o(Lj,"wrapperToIterator");function Rj(c){for(var f,d=this;d instanceof Md;){var v=WI(d);v.__index__=0,v.__values__=e,f?b.__wrapped__=v:f=v;var b=v;d=d.__wrapped__}return b.__wrapped__=c,f}o(Rj,"wrapperPlant");function Fj(){var c=this.__wrapped__;if(c instanceof pt){var f=c;return this.__actions__.length&&(f=new pt(this)),f=f.reverse(),f.__actions__.push({func:Jd,args:[iT],thisArg:e}),new Fr(f,this.__chain__)}return this.thru(iT)}o(Fj,"wrapperReverse");function _j(){return gI(this.__wrapped__,this.__actions__)}o(_j,"wrapperValue");var Dj=Gd(function(c,f,d){Ft.call(c,d)?++c[d]:Yo(c,d,1)});function Vj(c,f,d){var v=Xe(c)?Ix:Ck;return d&&Li(c,f,d)&&(f=e),v(c,Ve(f,3))}o(Vj,"every");function wj(c,f){var d=Xe(c)?Oa:zx;return d(c,Ve(f,3))}o(wj,"filter");var Mj=CI(KI),kj=CI(XI);function Uj(c,f){return ii(Zd(c,f),1)}o(Uj,"flatMap");function jj(c,f){return ii(Zd(c,f),Lt)}o(jj,"flatMapDeep");function $j(c,f,d){return d=d===e?1:Ze(d),ii(Zd(c,f),d)}o($j,"flatMapDepth");function ZI(c,f){var d=Xe(c)?Lr:_a;return d(c,Ve(f,3))}o(ZI,"forEach");function eO(c,f){var d=Xe(c)?o2:Yx;return d(c,Ve(f,3))}o(eO,"forEachRight");var Bj=Gd(function(c,f,d){Ft.call(c,d)?c[d].push(f):Yo(c,d,[f])});function Hj(c,f,d,v){c=Gi(c)?c:el(c),d=d&&!v?Ze(d):0;var b=c.length;return d<0&&(d=jn(b+d,0)),rg(c)?d<=b&&c.indexOf(f,d)>-1:!!b&&Hc(c,f,d)>-1}o(Hj,"includes");var Gj=it(function(c,f,d){var v=-1,b=typeof f=="function",x=Gi(c)?W(c.length):[];return _a(c,function(L){x[++v]=b?or(f,L,d):Bf(L,f,d)}),x}),Wj=Gd(function(c,f,d){Yo(c,d,f)});function Zd(c,f){var d=Xe(c)?fn:iI;return d(c,Ve(f,3))}o(Zd,"map");function Kj(c,f,d,v){return c==null?[]:(Xe(f)||(f=f==null?[]:[f]),d=v?e:d,Xe(d)||(d=d==null?[]:[d]),sI(c,f,d))}o(Kj,"orderBy");var Xj=Gd(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function Qj(c,f,d){var v=Xe(c)?hv:Rx,b=arguments.length<3;return v(c,Ve(f,4),d,b,_a)}o(Qj,"reduce");function qj(c,f,d){var v=Xe(c)?a2:Rx,b=arguments.length<3;return v(c,Ve(f,4),d,b,Yx)}o(qj,"reduceRight");function Yj(c,f){var d=Xe(c)?Oa:zx;return d(c,ng(Ve(f,3)))}o(Yj,"reject");function zj(c){var f=Xe(c)?Kx:Hk;return f(c)}o(zj,"sample");function Jj(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=Ze(f);var v=Xe(c)?Ek:Gk;return v(c,f)}o(Jj,"sampleSize");function Zj(c){var f=Xe(c)?bk:Kk;return f(c)}o(Zj,"shuffle");function e$(c){if(c==null)return 0;if(Gi(c))return rg(c)?Wc(c):c.length;var f=yi(c);return f==Qe||f==dn?c.size:Vv(c).length}o(e$,"size");function t$(c,f,d){var v=Xe(c)?yv:Xk;return d&&Li(c,f,d)&&(f=e),v(c,Ve(f,3))}o(t$,"some");var n$=it(function(c,f){if(c==null)return[];var d=f.length;return d>1&&Li(c,f[0],f[1])?f=[]:d>2&&Li(f[0],f[1],f[2])&&(f=[f[0]]),sI(c,ii(f,1),[])}),eg=w2||function(){return Xn.Date.now()};function i$(c,f){if(typeof f!="function")throw new Rr(r);return c=Ze(c),function(){if(--c<1)return f.apply(this,arguments)}}o(i$,"after");function tO(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,zo(c,Z,e,e,e,e,f)}o(tO,"ary");function nO(c,f){var d;if(typeof f!="function")throw new Rr(r);return c=Ze(c),function(){return--c>0&&(d=f.apply(this,arguments)),c<=1&&(f=e),d}}o(nO,"before");var oT=it(function(c,f,d){var v=E;if(d.length){var b=La(d,Jc(oT));v|=j}return zo(c,v,f,d,b)}),iO=it(function(c,f,d){var v=E|O;if(d.length){var b=La(d,Jc(iO));v|=j}return zo(f,v,c,d,b)});function rO(c,f,d){f=d?e:f;var v=zo(c,U,e,e,e,e,e,f);return v.placeholder=rO.placeholder,v}o(rO,"curry");function oO(c,f,d){f=d?e:f;var v=zo(c,K,e,e,e,e,e,f);return v.placeholder=oO.placeholder,v}o(oO,"curryRight");function aO(c,f,d){var v,b,x,L,R,M,z=0,J=!1,ee=!1,ge=!0;if(typeof c!="function")throw new Rr(r);f=wr(f)||0,mn(d)&&(J=!!d.leading,ee="maxWait"in d,x=ee?jn(wr(d.maxWait)||0,f):x,ge="trailing"in d?!!d.trailing:ge);function Ne(On){var eo=v,na=b;return v=b=e,z=On,L=c.apply(na,eo),L}o(Ne,"invokeFunc");function Me(On){return z=On,R=Xf(ct,f),J?Ne(On):L}o(Me,"leadingEdge");function et(On){var eo=On-M,na=On-z,CO=f-eo;return ee?hi(CO,x-na):CO}o(et,"remainingWait");function ke(On){var eo=On-M,na=On-z;return M===e||eo>=f||eo<0||ee&&na>=x}o(ke,"shouldInvoke");function ct(){var On=eg();if(ke(On))return gt(On);R=Xf(ct,et(On))}o(ct,"timerExpired");function gt(On){return R=e,ge&&v?Ne(On):(v=b=e,L)}o(gt,"trailingEdge");function lr(){R!==e&&hI(R),z=0,v=M=b=R=e}o(lr,"cancel");function Ri(){return R===e?L:gt(eg())}o(Ri,"flush");function fr(){var On=eg(),eo=ke(On);if(v=arguments,b=this,M=On,eo){if(R===e)return Me(M);if(ee)return hI(R),R=Xf(ct,f),Ne(M)}return R===e&&(R=Xf(ct,f)),L}return o(fr,"debounced"),fr.cancel=lr,fr.flush=Ri,fr}o(aO,"debounce");var r$=it(function(c,f){return qx(c,1,f)}),o$=it(function(c,f,d){return qx(c,wr(f)||0,d)});function a$(c){return zo(c,Pe)}o(a$,"flip");function tg(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new Rr(r);var d=o(function(){var v=arguments,b=f?f.apply(this,v):v[0],x=d.cache;if(x.has(b))return x.get(b);var L=c.apply(this,v);return d.cache=x.set(b,L)||x,L},"memoized");return d.cache=new(tg.Cache||qo),d}o(tg,"memoize"),tg.Cache=qo;function ng(c){if(typeof c!="function")throw new Rr(r);return function(){var f=arguments;switch(f.length){case 0:return!c.call(this);case 1:return!c.call(this,f[0]);case 2:return!c.call(this,f[0],f[1]);case 3:return!c.call(this,f[0],f[1],f[2])}return!c.apply(this,f)}}o(ng,"negate");function s$(c){return nO(2,c)}o(s$,"once");var c$=Qk(function(c,f){f=f.length==1&&Xe(f[0])?fn(f[0],ar(Ve())):fn(ii(f,1),ar(Ve()));var d=f.length;return it(function(v){for(var b=-1,x=hi(v.length,d);++b<x;)v[b]=f[b].call(this,v[b]);return or(c,this,v)})}),aT=it(function(c,f){var d=La(f,Jc(aT));return zo(c,j,e,f,d)}),sO=it(function(c,f){var d=La(f,Jc(sO));return zo(c,ae,e,f,d)}),l$=Jo(function(c,f){return zo(c,re,e,e,e,f)});function f$(c,f){if(typeof c!="function")throw new Rr(r);return f=f===e?f:Ze(f),it(c,f)}o(f$,"rest");function u$(c,f){if(typeof c!="function")throw new Rr(r);return f=f==null?0:jn(Ze(f),0),it(function(d){var v=d[f],b=wa(d,0,f);return v&&Na(b,v),or(c,this,b)})}o(u$,"spread");function p$(c,f,d){var v=!0,b=!0;if(typeof c!="function")throw new Rr(r);return mn(d)&&(v="leading"in d?!!d.leading:v,b="trailing"in d?!!d.trailing:b),aO(c,f,{leading:v,maxWait:f,trailing:b})}o(p$,"throttle");function d$(c){return tO(c,1)}o(d$,"unary");function g$(c,f){return aT(Gv(f),c)}o(g$,"wrap");function m$(){if(!arguments.length)return[];var c=arguments[0];return Xe(c)?c:[c]}o(m$,"castArray");function h$(c){return _r(c,m)}o(h$,"clone");function y$(c,f){return f=typeof f=="function"?f:e,_r(c,m,f)}o(y$,"cloneWith");function v$(c){return _r(c,p|m)}o(v$,"cloneDeep");function T$(c,f){return f=typeof f=="function"?f:e,_r(c,p|m,f)}o(T$,"cloneDeepWith");function E$(c,f){return f==null||Qx(c,f,Qn(f))}o(E$,"conformsTo");function Zr(c,f){return c===f||c!==c&&f!==f}o(Zr,"eq");var b$=Qd(Fv),A$=Qd(function(c,f){return c>=f}),Gs=eI(function(){return arguments}())?eI:function(c){return Tn(c)&&Ft.call(c,"callee")&&!jx.call(c,"callee")},Xe=W.isArray,S$=bx?ar(bx):Rk;function Gi(c){return c!=null&&ig(c.length)&&!ea(c)}o(Gi,"isArrayLike");function In(c){return Tn(c)&&Gi(c)}o(In,"isArrayLikeObject");function P$(c){return c===!0||c===!1||Tn(c)&&Ni(c)==I}o(P$,"isBoolean");var Ma=k2||yT,C$=Ax?ar(Ax):Fk;function x$(c){return Tn(c)&&c.nodeType===1&&!Qf(c)}o(x$,"isElement");function I$(c){if(c==null)return!0;if(Gi(c)&&(Xe(c)||typeof c=="string"||typeof c.splice=="function"||Ma(c)||Zc(c)||Gs(c)))return!c.length;var f=yi(c);if(f==Qe||f==dn)return!c.size;if(Kf(c))return!Vv(c).length;for(var d in c)if(Ft.call(c,d))return!1;return!0}o(I$,"isEmpty");function O$(c,f){return Hf(c,f)}o(O$,"isEqual");function N$(c,f,d){d=typeof d=="function"?d:e;var v=d?d(c,f):e;return v===e?Hf(c,f,e,d):!!v}o(N$,"isEqualWith");function sT(c){if(!Tn(c))return!1;var f=Ni(c);return f==V||f==Y||typeof c.message=="string"&&typeof c.name=="string"&&!Qf(c)}o(sT,"isError");function L$(c){return typeof c=="number"&&Bx(c)}o(L$,"isFinite");function ea(c){if(!mn(c))return!1;var f=Ni(c);return f==De||f==Rt||f==st||f==ni}o(ea,"isFunction");function cO(c){return typeof c=="number"&&c==Ze(c)}o(cO,"isInteger");function ig(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Re}o(ig,"isLength");function mn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}o(mn,"isObject");function Tn(c){return c!=null&&typeof c=="object"}o(Tn,"isObjectLike");var lO=Sx?ar(Sx):Dk;function R$(c,f){return c===f||Dv(c,f,zv(f))}o(R$,"isMatch");function F$(c,f,d){return d=typeof d=="function"?d:e,Dv(c,f,zv(f),d)}o(F$,"isMatchWith");function _$(c){return fO(c)&&c!=+c}o(_$,"isNaN");function D$(c){if(yU(c))throw new He(i);return tI(c)}o(D$,"isNative");function V$(c){return c===null}o(V$,"isNull");function w$(c){return c==null}o(w$,"isNil");function fO(c){return typeof c=="number"||Tn(c)&&Ni(c)==kt}o(fO,"isNumber");function Qf(c){if(!Tn(c)||Ni(c)!=cn)return!1;var f=Ld(c);if(f===null)return!0;var d=Ft.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&xd.call(d)==F2}o(Qf,"isPlainObject");var cT=Px?ar(Px):Vk;function M$(c){return cO(c)&&c>=-Re&&c<=Re}o(M$,"isSafeInteger");var uO=Cx?ar(Cx):wk;function rg(c){return typeof c=="string"||!Xe(c)&&Tn(c)&&Ni(c)==mi}o(rg,"isString");function cr(c){return typeof c=="symbol"||Tn(c)&&Ni(c)==Gt}o(cr,"isSymbol");var Zc=xx?ar(xx):Mk;function k$(c){return c===e}o(k$,"isUndefined");function U$(c){return Tn(c)&&yi(c)==Bi}o(U$,"isWeakMap");function j$(c){return Tn(c)&&Ni(c)==Nf}o(j$,"isWeakSet");var $$=Qd(wv),B$=Qd(function(c,f){return c<=f});function pO(c){if(!c)return[];if(Gi(c))return rg(c)?zr(c):Hi(c);if(Vf&&c[Vf])return E2(c[Vf]());var f=yi(c),d=f==Qe?Sv:f==dn?Sd:el;return d(c)}o(pO,"toArray");function ta(c){if(!c)return c===0?c:0;if(c=wr(c),c===Lt||c===-Lt){var f=c<0?-1:1;return f*Oi}return c===c?c:0}o(ta,"toFinite");function Ze(c){var f=ta(c),d=f%1;return f===f?d?f-d:f:0}o(Ze,"toInteger");function dO(c){return c?js(Ze(c),0,Mt):0}o(dO,"toLength");function wr(c){if(typeof c=="number")return c;if(cr(c))return It;if(mn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=mn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=Fx(c);var d=AM.test(c);return d||PM.test(c)?n2(c.slice(2),d?2:8):bM.test(c)?It:+c}o(wr,"toNumber");function gO(c){return Ao(c,Wi(c))}o(gO,"toPlainObject");function H$(c){return c?js(Ze(c),-Re,Re):c===0?c:0}o(H$,"toSafeInteger");function Ot(c){return c==null?"":sr(c)}o(Ot,"toString");var G$=Yc(function(c,f){if(Kf(f)||Gi(f)){Ao(f,Qn(f),c);return}for(var d in f)Ft.call(f,d)&&jf(c,d,f[d])}),mO=Yc(function(c,f){Ao(f,Wi(f),c)}),og=Yc(function(c,f,d,v){Ao(f,Wi(f),c,v)}),W$=Yc(function(c,f,d,v){Ao(f,Qn(f),c,v)}),K$=Jo(Nv);function X$(c,f){var d=qc(c);return f==null?d:Xx(d,f)}o(X$,"create");var Q$=it(function(c,f){c=Kt(c);var d=-1,v=f.length,b=v>2?f[2]:e;for(b&&Li(f[0],f[1],b)&&(v=1);++d<v;)for(var x=f[d],L=Wi(x),R=-1,M=L.length;++R<M;){var z=L[R],J=c[z];(J===e||Zr(J,Kc[z])&&!Ft.call(c,z))&&(c[z]=x[z])}return c}),q$=it(function(c){return c.push(e,FI),or(hO,e,c)});function Y$(c,f){return Ox(c,Ve(f,3),bo)}o(Y$,"findKey");function z$(c,f){return Ox(c,Ve(f,3),Rv)}o(z$,"findLastKey");function J$(c,f){return c==null?c:Lv(c,Ve(f,3),Wi)}o(J$,"forIn");function Z$(c,f){return c==null?c:Jx(c,Ve(f,3),Wi)}o(Z$,"forInRight");function e4(c,f){return c&&bo(c,Ve(f,3))}o(e4,"forOwn");function t4(c,f){return c&&Rv(c,Ve(f,3))}o(t4,"forOwnRight");function n4(c){return c==null?[]:jd(c,Qn(c))}o(n4,"functions");function i4(c){return c==null?[]:jd(c,Wi(c))}o(i4,"functionsIn");function lT(c,f,d){var v=c==null?e:$s(c,f);return v===e?d:v}o(lT,"get");function r4(c,f){return c!=null&&VI(c,f,Ik)}o(r4,"has");function fT(c,f){return c!=null&&VI(c,f,Ok)}o(fT,"hasIn");var o4=II(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Id.call(f)),c[f]=d},pT(Ki)),a4=II(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Id.call(f)),Ft.call(c,f)?c[f].push(d):c[f]=[d]},Ve),s4=it(Bf);function Qn(c){return Gi(c)?Wx(c):Vv(c)}o(Qn,"keys");function Wi(c){return Gi(c)?Wx(c,!0):kk(c)}o(Wi,"keysIn");function c4(c,f){var d={};return f=Ve(f,3),bo(c,function(v,b,x){Yo(d,f(v,b,x),v)}),d}o(c4,"mapKeys");function l4(c,f){var d={};return f=Ve(f,3),bo(c,function(v,b,x){Yo(d,b,f(v,b,x))}),d}o(l4,"mapValues");var f4=Yc(function(c,f,d){$d(c,f,d)}),hO=Yc(function(c,f,d,v){$d(c,f,d,v)}),u4=Jo(function(c,f){var d={};if(c==null)return d;var v=!1;f=fn(f,function(x){return x=Va(x,c),v||(v=x.length>1),x}),Ao(c,qv(c),d),v&&(d=_r(d,p|g|m,oU));for(var b=f.length;b--;)$v(d,f[b]);return d});function p4(c,f){return yO(c,ng(Ve(f)))}o(p4,"omitBy");var d4=Jo(function(c,f){return c==null?{}:jk(c,f)});function yO(c,f){if(c==null)return{};var d=fn(qv(c),function(v){return[v]});return f=Ve(f),cI(c,d,function(v,b){return f(v,b[0])})}o(yO,"pickBy");function g4(c,f,d){f=Va(f,c);var v=-1,b=f.length;for(b||(b=1,c=e);++v<b;){var x=c==null?e:c[So(f[v])];x===e&&(v=b,x=d),c=ea(x)?x.call(c):x}return c}o(g4,"result");function m4(c,f,d){return c==null?c:Gf(c,f,d)}o(m4,"set");function h4(c,f,d,v){return v=typeof v=="function"?v:e,c==null?c:Gf(c,f,d,v)}o(h4,"setWith");var vO=LI(Qn),TO=LI(Wi);function y4(c,f,d){var v=Xe(c),b=v||Ma(c)||Zc(c);if(f=Ve(f,4),d==null){var x=c&&c.constructor;b?d=v?new x:[]:mn(c)?d=ea(x)?qc(Ld(c)):{}:d={}}return(b?Lr:bo)(c,function(L,R,M){return f(d,L,R,M)}),d}o(y4,"transform");function T4(c,f){return c==null?!0:$v(c,f)}o(T4,"unset");function E4(c,f,d){return c==null?c:dI(c,f,Gv(d))}o(E4,"update");function b4(c,f,d,v){return v=typeof v=="function"?v:e,c==null?c:dI(c,f,Gv(d),v)}o(b4,"updateWith");function el(c){return c==null?[]:Av(c,Qn(c))}o(el,"values");function A4(c){return c==null?[]:Av(c,Wi(c))}o(A4,"valuesIn");function S4(c,f,d){return d===e&&(d=f,f=e),d!==e&&(d=wr(d),d=d===d?d:0),f!==e&&(f=wr(f),f=f===f?f:0),js(wr(c),f,d)}o(S4,"clamp");function P4(c,f,d){return f=ta(f),d===e?(d=f,f=0):d=ta(d),c=wr(c),Nk(c,f,d)}o(P4,"inRange");function C4(c,f,d){if(d&&typeof d!="boolean"&&Li(c,f,d)&&(f=d=e),d===e&&(typeof f=="boolean"?(d=f,f=e):typeof c=="boolean"&&(d=c,c=e)),c===e&&f===e?(c=0,f=1):(c=ta(c),f===e?(f=c,c=0):f=ta(f)),c>f){var v=c;c=f,f=v}if(d||c%1||f%1){var b=Hx();return hi(c+b*(f-c+t2("1e-"+((b+"").length-1))),f)}return kv(c,f)}o(C4,"random");var x4=zc(function(c,f,d){return f=f.toLowerCase(),c+(d?EO(f):f)});function EO(c){return uT(Ot(c).toLowerCase())}o(EO,"capitalize");function bO(c){return c=Ot(c),c&&c.replace(xM,g2).replace(WM,"")}o(bO,"deburr");function I4(c,f,d){c=Ot(c),f=sr(f);var v=c.length;d=d===e?v:js(Ze(d),0,v);var b=d;return d-=f.length,d>=0&&c.slice(d,b)==f}o(I4,"endsWith");function O4(c){return c=Ot(c),c&&Oe.test(c)?c.replace(Te,m2):c}o(O4,"escape");function N4(c){return c=Ot(c),c&&pM.test(c)?c.replace(_f,"\\$&"):c}o(N4,"escapeRegExp");var L4=zc(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),R4=zc(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),F4=PI("toLowerCase");function _4(c,f,d){c=Ot(c),f=Ze(f);var v=f?Wc(c):0;if(!f||v>=f)return c;var b=(f-v)/2;return Xd(Dd(b),d)+c+Xd(_d(b),d)}o(_4,"pad");function D4(c,f,d){c=Ot(c),f=Ze(f);var v=f?Wc(c):0;return f&&v<f?c+Xd(f-v,d):c}o(D4,"padEnd");function V4(c,f,d){c=Ot(c),f=Ze(f);var v=f?Wc(c):0;return f&&v<f?Xd(f-v,d)+c:c}o(V4,"padStart");function w4(c,f,d){return d||f==null?f=0:f&&(f=+f),B2(Ot(c).replace(sv,""),f||0)}o(w4,"parseInt");function M4(c,f,d){return(d?Li(c,f,d):f===e)?f=1:f=Ze(f),Uv(Ot(c),f)}o(M4,"repeat");function k4(){var c=arguments,f=Ot(c[0]);return c.length<3?f:f.replace(c[1],c[2])}o(k4,"replace");var U4=zc(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function j4(c,f,d){return d&&typeof d!="number"&&Li(c,f,d)&&(f=d=e),d=d===e?Mt:d>>>0,d?(c=Ot(c),c&&(typeof f=="string"||f!=null&&!cT(f))&&(f=sr(f),!f&&Gc(c))?wa(zr(c),0,d):c.split(f,d)):[]}o(j4,"split");var $4=zc(function(c,f,d){return c+(d?" ":"")+uT(f)});function B4(c,f,d){return c=Ot(c),d=d==null?0:js(Ze(d),0,c.length),f=sr(f),c.slice(d,d+f.length)==f}o(B4,"startsWith");function H4(c,f,d){var v=P.templateSettings;d&&Li(c,f,d)&&(f=e),c=Ot(c),f=og({},f,v,RI);var b=og({},f.imports,v.imports,RI),x=Qn(b),L=Av(b,x),R,M,z=0,J=f.interpolate||vd,ee="__p += '",ge=Pv((f.escape||vd).source+"|"+J.source+"|"+(J===ln?EM:vd).source+"|"+(f.evaluate||vd).source+"|$","g"),Ne="//# sourceURL="+(Ft.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++YM+"]")+`
|
|
272
|
+
`;c.replace(ge,function(ke,ct,gt,lr,Ri,fr){return gt||(gt=lr),ee+=c.slice(z,fr).replace(IM,h2),ct&&(R=!0,ee+=`' +
|
|
273
|
+
__e(`+ct+`) +
|
|
274
|
+
'`),Ri&&(M=!0,ee+=`';
|
|
275
|
+
`+Ri+`;
|
|
276
|
+
__p += '`),gt&&(ee+=`' +
|
|
277
|
+
((__t = (`+gt+`)) == null ? '' : __t) +
|
|
278
|
+
'`),z=fr+ke.length,ke}),ee+=`';
|
|
279
|
+
`;var Me=Ft.call(f,"variable")&&f.variable;if(!Me)ee=`with (obj) {
|
|
280
280
|
`+ee+`
|
|
281
281
|
}
|
|
282
|
-
`;else if(
|
|
283
|
-
`+(
|
|
284
|
-
`)+"var __t, __p = ''"+(R?", __e = _.escape":"")+(
|
|
282
|
+
`;else if(vM.test(Me))throw new He(a);ee=(M?ee.replace(gn,""):ee).replace(xn,"$1").replace(nt,"$1;"),ee="function("+(Me||"obj")+`) {
|
|
283
|
+
`+(Me?"":`obj || (obj = {});
|
|
284
|
+
`)+"var __t, __p = ''"+(R?", __e = _.escape":"")+(M?`, __j = Array.prototype.join;
|
|
285
285
|
function print() { __p += __j.call(arguments, '') }
|
|
286
286
|
`:`;
|
|
287
287
|
`)+ee+`return __p
|
|
288
|
-
}`;var Ze=AO(function(){return At(C,Ne+"return "+ee).apply(e,L)});if(Ze.source=ee,aT(Ze))throw Ze;return Ze}o(B4,"template");function H4(c){return It(c).toLowerCase()}o(H4,"toLower");function G4(c){return It(c).toUpperCase()}o(G4,"toUpper");function W4(c,f,d){if(c=It(c),c&&(d||f===e))return RC(c);if(!c||!(f=ar(f)))return c;var v=Yr(c),b=Yr(f),C=FC(v,b),L=_C(v,b)+1;return Va(v,C,L).join("")}o(W4,"trim");function K4(c,f,d){if(c=It(c),c&&(d||f===e))return c.slice(0,VC(c)+1);if(!c||!(f=ar(f)))return c;var v=Yr(c),b=_C(v,Yr(f))+1;return Va(v,0,b).join("")}o(K4,"trimEnd");function X4(c,f,d){if(c=It(c),c&&(d||f===e))return c.replace(av,"");if(!c||!(f=ar(f)))return c;var v=Yr(c),b=FC(v,Yr(f));return Va(v,b).join("")}o(X4,"trimStart");function Q4(c,f){var d=_,v=ft;if(gn(f)){var b="separator"in f?f.separator:b;d="length"in f?Je(f.length):d,v="omission"in f?ar(f.omission):v}c=It(c);var C=c.length;if(Hc(c)){var L=Yr(c);C=L.length}if(d>=C)return c;var R=d-Gc(v);if(R<1)return v;var w=L?Va(L,0,R).join(""):c.slice(0,R);if(b===e)return w+v;if(L&&(R+=w.length-R),sT(b)){if(c.slice(R).search(b)){var z,J=w;for(b.global||(b=Sv(b.source,It(Zx.exec(b))+"g")),b.lastIndex=0;z=b.exec(J);)var ee=z.index;w=w.slice(0,ee===e?R:ee)}}else if(c.indexOf(ar(b),R)!=R){var ge=w.lastIndexOf(b);ge>-1&&(w=w.slice(0,ge))}return w+v}o(Q4,"truncate");function q4(c){return c=It(c),c&&xe.test(c)?c.replace(me,S2):c}o(q4,"unescape");var Y4=Yc(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),fT=SI("toUpperCase");function bO(c,f,d){return c=It(c),f=d?e:f,f===e?y2(c)?C2(c):c2(c):c.match(f)||[]}o(bO,"words");var AO=nt(function(c,f){try{return rr(c,e,f)}catch(d){return aT(d)?d:new Ge(d)}}),z4=zo(function(c,f){return Nr(f,function(d){d=Ao(d),qo(c,d,rT(c[d],c))}),c});function J4(c){var f=c==null?0:c.length,d=Ve();return c=f?ln(c,function(v){if(typeof v[1]!="function")throw new Lr(r);return[d(v[0]),v[1]]}):[],nt(function(v){for(var b=-1;++b<f;){var C=c[b];if(rr(C[0],this,v))return rr(C[1],this,v)}})}o(J4,"cond");function Z4(c){return Sk(Fr(c,p))}o(Z4,"conforms");function uT(c){return function(){return c}}o(uT,"constant");function eB(c,f){return c==null||c!==c?f:c}o(eB,"defaultTo");var tB=xI(),nB=xI(!0);function Wi(c){return c}o(Wi,"identity");function pT(c){return tI(typeof c=="function"?c:Fr(c,p))}o(pT,"iteratee");function iB(c){return iI(Fr(c,p))}o(iB,"matches");function rB(c,f){return rI(c,Fr(f,p))}o(rB,"matchesProperty");var oB=nt(function(c,f){return function(d){return $f(d,c,f)}}),aB=nt(function(c,f){return function(d){return $f(c,d,f)}});function dT(c,f,d){var v=Xn(f),b=Ud(f,v);d==null&&!(gn(f)&&(b.length||!v.length))&&(d=f,f=c,c=this,b=Ud(f,Xn(f)));var C=!(gn(d)&&"chain"in d)||!!d.chain,L=Zo(c);return Nr(b,function(R){var w=f[R];c[R]=w,L&&(c.prototype[R]=function(){var z=this.__chain__;if(C||z){var J=c(this.__wrapped__),ee=J.__actions__=Bi(this.__actions__);return ee.push({func:w,args:arguments,thisArg:c}),J.__chain__=z,J}return w.apply(c,Oa([this.value()],arguments))})}),c}o(dT,"mixin");function sB(){return Kn._===this&&(Kn._=F2),this}o(sB,"noConflict");function gT(){}o(gT,"noop");function cB(c){return c=Je(c),nt(function(f){return oI(f,c)})}o(cB,"nthArg");var lB=Wv(ln),fB=Wv(CC),uB=Wv(hv);function SO(c){return Jv(c)?yv(Ao(c)):jk(c)}o(SO,"property");function pB(c){return function(f){return c==null?e:js(c,f)}}o(pB,"propertyOf");var dB=II(),gB=II(!0);function mT(){return[]}o(mT,"stubArray");function hT(){return!1}o(hT,"stubFalse");function mB(){return{}}o(mB,"stubObject");function hB(){return""}o(hB,"stubString");function yB(){return!0}o(yB,"stubTrue");function vB(c,f){if(c=Je(c),c<1||c>Re)return[];var d=Mt,v=mi(c,Mt);f=Ve(f),c-=Mt;for(var b=Ev(v,f);++d<c;)f(d);return b}o(vB,"times");function TB(c){return Xe(c)?ln(c,Ao):sr(c)?[c]:Bi(HI(It(c)))}o(TB,"toPath");function EB(c){var f=++L2;return It(c)+f}o(EB,"uniqueId");var bB=Wd(function(c,f){return c+f},0),AB=Kv("ceil"),SB=Wd(function(c,f){return c/f},1),PB=Kv("floor");function xB(c){return c&&c.length?kd(c,Wi,Rv):e}o(xB,"max");function CB(c,f){return c&&c.length?kd(c,Ve(f,2),Rv):e}o(CB,"maxBy");function IB(c){return NC(c,Wi)}o(IB,"mean");function OB(c,f){return NC(c,Ve(f,2))}o(OB,"meanBy");function NB(c){return c&&c.length?kd(c,Wi,Vv):e}o(NB,"min");function LB(c,f){return c&&c.length?kd(c,Ve(f,2),Vv):e}o(LB,"minBy");var RB=Wd(function(c,f){return c*f},1),FB=Kv("round"),_B=Wd(function(c,f){return c-f},0);function DB(c){return c&&c.length?Tv(c,Wi):0}o(DB,"sum");function VB(c,f){return c&&c.length?Tv(c,Ve(f,2)):0}return o(VB,"sumBy"),P.after=n$,P.ary=eO,P.assign=H$,P.assignIn=gO,P.assignInWith=rg,P.assignWith=G$,P.at=W$,P.before=tO,P.bind=rT,P.bindAll=z4,P.bindKey=nO,P.castArray=g$,P.chain=zI,P.chunk=SU,P.compact=PU,P.concat=xU,P.cond=J4,P.conforms=Z4,P.constant=uT,P.countBy=_j,P.create=K$,P.curry=iO,P.curryRight=rO,P.debounce=oO,P.defaults=X$,P.defaultsDeep=Q$,P.defer=i$,P.delay=r$,P.difference=CU,P.differenceBy=IU,P.differenceWith=OU,P.drop=NU,P.dropRight=LU,P.dropRightWhile=RU,P.dropWhile=FU,P.fill=_U,P.filter=Vj,P.flatMap=kj,P.flatMapDeep=Uj,P.flatMapDepth=jj,P.flatten=XI,P.flattenDeep=DU,P.flattenDepth=VU,P.flip=o$,P.flow=tB,P.flowRight=nB,P.fromPairs=MU,P.functions=t4,P.functionsIn=n4,P.groupBy=$j,P.initial=kU,P.intersection=UU,P.intersectionBy=jU,P.intersectionWith=$U,P.invert=r4,P.invertBy=o4,P.invokeMap=Hj,P.iteratee=pT,P.keyBy=Gj,P.keys=Xn,P.keysIn=Gi,P.map=Jd,P.mapKeys=s4,P.mapValues=c4,P.matches=iB,P.matchesProperty=rB,P.memoize=eg,P.merge=l4,P.mergeWith=mO,P.method=oB,P.methodOf=aB,P.mixin=dT,P.negate=tg,P.nthArg=cB,P.omit=f4,P.omitBy=u4,P.once=a$,P.orderBy=Wj,P.over=lB,P.overArgs=s$,P.overEvery=fB,P.overSome=uB,P.partial=oT,P.partialRight=aO,P.partition=Kj,P.pick=p4,P.pickBy=hO,P.property=SO,P.propertyOf=pB,P.pull=WU,P.pullAll=qI,P.pullAllBy=KU,P.pullAllWith=XU,P.pullAt=QU,P.range=dB,P.rangeRight=gB,P.rearg=c$,P.reject=qj,P.remove=qU,P.rest=l$,P.reverse=nT,P.sampleSize=zj,P.set=g4,P.setWith=m4,P.shuffle=Jj,P.slice=YU,P.sortBy=t$,P.sortedUniq=ij,P.sortedUniqBy=rj,P.split=U4,P.spread=f$,P.tail=oj,P.take=aj,P.takeRight=sj,P.takeRightWhile=cj,P.takeWhile=lj,P.tap=Pj,P.throttle=u$,P.thru=zd,P.toArray=uO,P.toPairs=yO,P.toPairsIn=vO,P.toPath=TB,P.toPlainObject=dO,P.transform=h4,P.unary=p$,P.union=fj,P.unionBy=uj,P.unionWith=pj,P.uniq=dj,P.uniqBy=gj,P.uniqWith=mj,P.unset=y4,P.unzip=iT,P.unzipWith=YI,P.update=T4,P.updateWith=E4,P.values=Zc,P.valuesIn=b4,P.without=hj,P.words=bO,P.wrap=d$,P.xor=yj,P.xorBy=vj,P.xorWith=Tj,P.zip=Ej,P.zipObject=bj,P.zipObjectDeep=Aj,P.zipWith=Sj,P.entries=yO,P.entriesIn=vO,P.extend=gO,P.extendWith=rg,dT(P,P),P.add=bB,P.attempt=AO,P.camelCase=x4,P.capitalize=TO,P.ceil=AB,P.clamp=A4,P.clone=m$,P.cloneDeep=y$,P.cloneDeepWith=v$,P.cloneWith=h$,P.conformsTo=T$,P.deburr=EO,P.defaultTo=eB,P.divide=SB,P.endsWith=C4,P.eq=Jr,P.escape=I4,P.escapeRegExp=O4,P.every=Dj,P.find=Mj,P.findIndex=WI,P.findKey=q$,P.findLast=wj,P.findLastIndex=KI,P.findLastKey=Y$,P.floor=PB,P.forEach=JI,P.forEachRight=ZI,P.forIn=z$,P.forInRight=J$,P.forOwn=Z$,P.forOwnRight=e4,P.get=cT,P.gt=E$,P.gte=b$,P.has=i4,P.hasIn=lT,P.head=QI,P.identity=Wi,P.includes=Bj,P.indexOf=wU,P.inRange=S4,P.invoke=a4,P.isArguments=Hs,P.isArray=Xe,P.isArrayBuffer=A$,P.isArrayLike=Hi,P.isArrayLikeObject=Cn,P.isBoolean=S$,P.isBuffer=Ma,P.isDate=P$,P.isElement=x$,P.isEmpty=C$,P.isEqual=I$,P.isEqualWith=O$,P.isError=aT,P.isFinite=N$,P.isFunction=Zo,P.isInteger=sO,P.isLength=ng,P.isMap=cO,P.isMatch=L$,P.isMatchWith=R$,P.isNaN=F$,P.isNative=_$,P.isNil=V$,P.isNull=D$,P.isNumber=lO,P.isObject=gn,P.isObjectLike=vn,P.isPlainObject=Xf,P.isRegExp=sT,P.isSafeInteger=M$,P.isSet=fO,P.isString=ig,P.isSymbol=sr,P.isTypedArray=Jc,P.isUndefined=w$,P.isWeakMap=k$,P.isWeakSet=U$,P.join=BU,P.kebabCase=N4,P.last=Dr,P.lastIndexOf=HU,P.lowerCase=L4,P.lowerFirst=R4,P.lt=j$,P.lte=$$,P.max=xB,P.maxBy=CB,P.mean=IB,P.meanBy=OB,P.min=NB,P.minBy=LB,P.stubArray=mT,P.stubFalse=hT,P.stubObject=mB,P.stubString=hB,P.stubTrue=yB,P.multiply=RB,P.nth=GU,P.noConflict=sB,P.noop=gT,P.now=Zd,P.pad=F4,P.padEnd=_4,P.padStart=D4,P.parseInt=V4,P.random=P4,P.reduce=Xj,P.reduceRight=Qj,P.repeat=M4,P.replace=w4,P.result=d4,P.round=FB,P.runInContext=M,P.sample=Yj,P.size=Zj,P.snakeCase=k4,P.some=e$,P.sortedIndex=zU,P.sortedIndexBy=JU,P.sortedIndexOf=ZU,P.sortedLastIndex=ej,P.sortedLastIndexBy=tj,P.sortedLastIndexOf=nj,P.startCase=j4,P.startsWith=$4,P.subtract=_B,P.sum=DB,P.sumBy=VB,P.template=B4,P.times=vB,P.toFinite=ea,P.toInteger=Je,P.toLength=pO,P.toLower=H4,P.toNumber=Vr,P.toSafeInteger=B$,P.toString=It,P.toUpper=G4,P.trim=W4,P.trimEnd=K4,P.trimStart=X4,P.truncate=Q4,P.unescape=q4,P.uniqueId=EB,P.upperCase=Y4,P.upperFirst=fT,P.each=JI,P.eachRight=ZI,P.first=QI,dT(P,function(){var c={};return Eo(P,function(f,d){Rt.call(P.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),P.VERSION=t,Nr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),Nr(["drop","take"],function(c,f){ut.prototype[c]=function(d){d=d===e?1:Un(Je(d),0);var v=this.__filtered__&&!f?new ut(this):this.clone();return v.__filtered__?v.__takeCount__=mi(d,v.__takeCount__):v.__views__.push({size:mi(d,Mt),type:c+(v.__dir__<0?"Right":"")}),v},ut.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),Nr(["filter","map","takeWhile"],function(c,f){var d=f+1,v=d==on||d==Zt;ut.prototype[c]=function(b){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(b,3),type:d}),C.__filtered__=C.__filtered__||v,C}}),Nr(["head","last"],function(c,f){var d="take"+(f?"Right":"");ut.prototype[c]=function(){return this[d](1).value()[0]}}),Nr(["initial","tail"],function(c,f){var d="drop"+(f?"":"Right");ut.prototype[c]=function(){return this.__filtered__?new ut(this):this[d](1)}}),ut.prototype.compact=function(){return this.filter(Wi)},ut.prototype.find=function(c){return this.filter(c).head()},ut.prototype.findLast=function(c){return this.reverse().find(c)},ut.prototype.invokeMap=nt(function(c,f){return typeof c=="function"?new ut(this):this.map(function(d){return $f(d,c,f)})}),ut.prototype.reject=function(c){return this.filter(tg(Ve(c)))},ut.prototype.slice=function(c,f){c=Je(c);var d=this;return d.__filtered__&&(c>0||f<0)?new ut(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=Je(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},ut.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},ut.prototype.toArray=function(){return this.take(Mt)},Eo(ut.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),v=/^(?:head|last)$/.test(f),b=P[v?"take"+(f=="last"?"Right":""):f],C=v||/^find/.test(f);b&&(P.prototype[f]=function(){var L=this.__wrapped__,R=v?[1]:arguments,w=L instanceof ut,z=R[0],J=w||Xe(L),ee=o(function(st){var dt=b.apply(P,Oa([st],R));return v&&ge?dt[0]:dt},"interceptor");J&&d&&typeof z=="function"&&z.length!=1&&(w=J=!1);var ge=this.__chain__,Ne=!!this.__actions__.length,we=C&&!ge,Ze=w&&!Ne;if(!C&&J){L=Ze?L:new ut(this);var ke=c.apply(L,R);return ke.__actions__.push({func:zd,args:[ee],thisArg:e}),new Rr(ke,ge)}return we&&Ze?c.apply(this,R):(ke=this.thru(ee),we?v?ke.value()[0]:ke.value():ke)})}),Nr(["pop","push","shift","sort","splice","unshift"],function(c){var f=Sd[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",v=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var b=arguments;if(v&&!this.__chain__){var C=this.value();return f.apply(Xe(C)?C:[],b)}return this[d](function(L){return f.apply(Xe(L)?L:[],b)})}}),Eo(ut.prototype,function(c,f){var d=P[f];if(d){var v=d.name+"";Rt.call(Xc,v)||(Xc[v]=[]),Xc[v].push({name:f,func:d})}}),Xc[Gd(e,O).name]=[{name:"wrapper",func:e}],ut.prototype.clone=Q2,ut.prototype.reverse=q2,ut.prototype.value=Y2,P.prototype.at=xj,P.prototype.chain=Cj,P.prototype.commit=Ij,P.prototype.next=Oj,P.prototype.plant=Lj,P.prototype.reverse=Rj,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=Fj,P.prototype.first=P.prototype.head,Df&&(P.prototype[Df]=Nj),P},"runInContext"),La=I2();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Kn._=La,define(function(){return La})):Vs?((Vs.exports=La)._=La,pv._=La):Kn._=La}).call(Jl)});var sV=Ye((Cce,aV)=>{var{findIndex:i9}=Pp();function r9(e,t){let i=i9(e,a=>a.endOffset===t),r=!1;for(;r===!1;){i++;let a=e[i];if(a===void 0)return null;if(a.tokenType.name!=="SEA_WS")return a}}o(r9,"findNextTextualToken");aV.exports={findNextTextualToken:r9}});var fV=Ye((Oce,lV)=>{var cV=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function o9({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(cV);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(o9,"isXMLNamespaceKey");function a9(e){if(typeof e!="string")return;let t=e.match(cV);if(t!==null)return t.groups&&t.groups.prefix||""}o(a9,"getXMLNamespaceKeyPrefix");lV.exports={isXMLNamespaceKey:o9,getXMLNamespaceKeyPrefix:a9}});var pV=Ye((Lce,uV)=>{var{findNextTextualToken:s9}=sV(),{isXMLNamespaceKey:c9,getXMLNamespaceKeyPrefix:l9}=fV();uV.exports={findNextTextualToken:s9,isXMLNamespaceKey:c9,getXMLNamespaceKeyPrefix:l9}});var hS=Ye((Rce,gV)=>{var{reduce:f9,has:dV,isArray:u9}=Pp();function p9(e){return f9(e,(n,i,r)=>(r==="parent"||(dV(i,"type")?n.push(i):u9(i)&&i.length>0&&dV(i[0],"type")&&(n=n.concat(i))),n),[])}o(p9,"getAstChildrenReflective");gV.exports={getAstChildrenReflective:p9}});var yS=Ye((_ce,mV)=>{mV.exports={DEFAULT_NS:"::DEFAULT"}});var SV=Ye((Dce,AV)=>{var{BaseXmlCstVisitor:d9}=mS(),{last:g9,forEach:TV,reduce:m9,map:xp,pick:TS,sortBy:h9,isEmpty:y9,isArray:EV,assign:v9}=Pp(),{findNextTextualToken:T9,isXMLNamespaceKey:E9,getXMLNamespaceKeyPrefix:b9}=pV(),{getAstChildrenReflective:A9}=hS(),{DEFAULT_NS:S9}=yS();function P9(e,t){hV.setState({tokenVector:t});let n=hV.visit(e);return n.rootElement!==Rc&&bV(n.rootElement),n}o(P9,"buildAst");var ES=class ES extends d9{constructor(){super()}setState({tokenVector:t}){this.tokenVector=t}visit(t,n={}){return super.visit(t,{location:t.location,...n})}document(t,{location:n}){let i={type:"XMLDocument",rootElement:Rc,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&y9(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),by(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=xp(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),by(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=xp(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=xp(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:Rc,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=xp(t.attribute,this.visit.bind(this))),t.content!==void 0){let{elements:r,textContents:a}=this.visit(t.content[0]);i.subElements=r,i.textContents=a}return I9(i,t),O9(i,t),N9(i,t,this.tokenVector),by(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:Rc,value:Rc,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=Ay(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=x9(a.image),r.syntax.value=Ay(a)}return by(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:Rc},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=h9(r,["startOffset"]),s=xp(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(ES,"CstToAstVisitor");var vS=ES,hV=new vS;function by(e){let t=A9(e);TV(t,n=>n.parent=e)}o(by,"setChildrenParent");function bV(e,t=[]){let n=m9(e.attributes,(r,a)=>{if(a.key!==Rc&&E9({key:a.key,includeEmptyPrefix:!1})===!0){let s=b9(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[S9]=l}}return r},{}),i=Object.create(null);e.namespaces=v9(i,t,n),TV(e.subElements,r=>bV(r,e.namespaces))}o(bV,"updateNamespaces");function Ay(e){return TS(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(Ay,"toXMLToken");function yV(e){return TS(e,["startOffset","startLine","startColumn"])}o(yV,"startOfXMLToken");function vV(e){return TS(e,["endOffset","endLine","endColumn"])}o(vV,"endOfXMLToken");function Aa(e){return EV(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(Aa,"exists");function x9(e){return e.substring(1,e.length-1)}o(x9,"stripQuotes");function C9(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(C9,"nsToParts");var Rc=null;function I9(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=Ay(n);let i=C9(n.image);i!==null?(e.ns=i.ns,e.name=i.name):e.name=n.image}t.END_NAME!==void 0&&t.END_NAME[0].isInsertedInRecovery!==!0&&(e.syntax.closeName=Ay(t.END_NAME[0]))}o(I9,"handleElementOpenCloseNameRanges");function O9(e,t){if(Aa(t.OPEN)){let n;Aa(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Aa(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...yV(t.OPEN[0]),...vV(n)}),Aa(t.SLASH_OPEN)&&Aa(t.END)&&(e.syntax.closeBody={...yV(t.SLASH_OPEN[0]),...vV(t.END[0])})}}o(O9,"handleElementOpenCloseBodyRanges");function N9(e,t,n){if(Aa(t.Name)){let i=t.Name[0].endOffset+2;if(Aa(t.START_CLOSE)||Aa(t.SLASH_CLOSE)){let r=(Aa(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=EV(t.attribute)?g9(t.attribute).location.endOffset:t.Name[0].endOffset,s=T9(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(N9,"handleElementAttributeRanges");AV.exports={buildAst:P9}});var CV=Ye((Mce,xV)=>{var{forEach:L9,isFunction:Zl}=Pp(),{getAstChildrenReflective:R9}=hS();function PV(e,t){switch(e.type){case"XMLDocument":{Zl(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{Zl(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{Zl(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{Zl(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{Zl(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{Zl(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=R9(e);L9(n,i=>{PV(i,t)})}o(PV,"accept");xV.exports={accept:PV}});var OV=Ye((kce,IV)=>{var{buildAst:F9}=SV(),{accept:_9}=CV(),{DEFAULT_NS:D9}=yS();IV.exports={buildAst:F9,accept:_9,DEFAULT_NS:D9}});var Di={};Gs(Di,{deleteConfigEntityByPath:()=>JY,exportConfig:()=>YY,exportConfigEntityByPath:()=>zY,generateCustomExtension:()=>Kx,generateSchema:()=>qY,getApiVersion:()=>nz,getChanges:()=>fw,getGenericSchema:()=>nv,getPathToGenericSchema:()=>AM,getProject:()=>sz,importConfig:()=>ZY,importProject:()=>ez,importProjectSchema:()=>tz,isDirectory:()=>rz,log:()=>se,prompts:()=>QY,readDirectory:()=>Jx});module.exports=ag(Di);var pe=ne(le());var G=ne(le());var h5={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)}},Yf=class Yf{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||h5,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Yf(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Yf(this.logger,t)}};o(Yf,"Logger");var xT=Yf,So=new xT,FT=class FT{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l.apply(l,[t,...i])})}};o(FT,"EventEmitter");var il=FT,Qf=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),aR=o(e=>e==null?"":""+e,"makeString"),y5=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),v5=/###/g,sR=o(e=>e&&e.indexOf("###")>-1?e.replace(v5,"."):e,"cleanKey"),cR=o(e=>!e||typeof e=="string","canNotTraverseDeeper"),qf=o((e,t,n)=>{let i=typeof t!="string"?t:t.split("."),r=0;for(;r<i.length-1;){if(cR(e))return{};let a=sR(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return cR(e)?{}:{obj:e,k:sR(i[r])}},"getLastOfPath"),lR=o((e,t,n)=>{let{obj:i,k:r}=qf(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=qf(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=qf(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),T5=o((e,t,n,i)=>{let{obj:r,k:a}=qf(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),cg=o((e,t)=>{let{obj:n,k:i}=qf(e,t);if(n)return n[i]},"getPath"),E5=o((e,t,n)=>{let i=cg(e,n);return i!==void 0?i:cg(t,n)},"getPathWithDefaults"),mR=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?typeof e[i]=="string"||e[i]instanceof String||typeof t[i]=="string"||t[i]instanceof String?n&&(e[i]=t[i]):mR(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),tl=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),b5={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},A5=o(e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>b5[t]):e,"escape"),_T=class _T{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let n=this.regExpMap.get(t);if(n!==void 0)return n;let i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}};o(_T,"RegExpCache");var CT=_T,S5=[" ",",","?","!",";"],P5=new CT(20),x5=o((e,t,n)=>{t=t||"",n=n||"";let i=S5.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=P5.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),IT=o(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let u=a;u<i.length;++u)if(u!==a&&(l+=n),l+=i[u],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<i.length-1)continue;a+=u-a+1;break}r=s}return r},"deepFind"),lg=o(e=>e&&e.indexOf("_")>0?e.replace("_","-"):e,"getCleanedCode"),DT=class DT extends il{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):typeof i=="string"&&a?l.push(...i.split(a)):l.push(i)));let u=cg(this.data,l);return!u&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),u||!s||typeof i!="string"?u:IT(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),lR(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(typeof i[a]=="string"||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let u=cg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?mR(u,i,a):u={...u,...i},lR(this.data,l,u),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(DT,"ResourceStore");var fg=DT,hR={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,r))}),t}},fR={},gg=class gg extends il{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),y5(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=So.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let i=this.resolve(t,n);return i&&i.res!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!x5(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return typeof a=="string"&&(a=[a]),{key:t,namespaces:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),u=l[l.length-1],p=n.lng||this.language,g=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){let ae=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${ae}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${ae}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s}let m=this.resolve(t,n),T=m&&m.res,A=m&&m.usedKey||s,E=m&&m.exactUsedKey||s,O=Object.prototype.toString.apply(T),F=["[object Number]","[object Function]","[object RegExp]"],U=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,K=!this.i18nFormat||this.i18nFormat.handleAsObject;if(K&&T&&(typeof T!="string"&&typeof T!="boolean"&&typeof T!="number")&&F.indexOf(O)<0&&!(typeof U=="string"&&Array.isArray(T))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let ae=this.options.returnedObjectHandler?this.options.returnedObjectHandler(A,T,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(m.res=ae,m.usedParams=this.getUsedParamsDetails(n),m):ae}if(a){let ae=Array.isArray(T),Z=ae?[]:{},re=ae?E:A;for(let Pe in T)if(Object.prototype.hasOwnProperty.call(T,Pe)){let _=`${re}${a}${Pe}`;Z[Pe]=this.translate(_,{...n,joinArrays:!1,ns:l}),Z[Pe]===_&&(Z[Pe]=T[Pe])}T=Z}}else if(K&&typeof U=="string"&&Array.isArray(T))T=T.join(U),T&&(T=this.extendTranslation(T,t,n,i));else{let ae=!1,Z=!1,re=n.count!==void 0&&typeof n.count!="string",Pe=gg.hasDefaultValue(n),_=re?this.pluralResolver.getSuffix(p,n.count,n):"",ft=n.ordinal&&re?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",ht=re&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),je=ht&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${_}`]||n[`defaultValue${ft}`]||n.defaultValue;!this.isValidLookup(T)&&Pe&&(ae=!0,T=je),this.isValidLookup(T)||(Z=!0,T=s);let Gn=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:T,Zt=Pe&&je!==T&&this.options.updateMissing;if(Z||ae||Zt){if(this.logger.log(Zt?"updateKey":"missingKey",p,u,s,Zt?je:T),a){let Ct=this.resolve(s,{...n,keySeparator:!1});Ct&&Ct.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Nt=[],Re=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Re&&Re[0])for(let Ct=0;Ct<Re.length;Ct++)Nt.push(Re[Ct]);else this.options.saveMissingTo==="all"?Nt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Nt.push(n.lng||this.language);let Ii=o((Ct,Mt,an)=>{let ji=Pe&&an!==T?an:Gn;this.options.missingKeyHandler?this.options.missingKeyHandler(Ct,u,Mt,ji,Zt,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Ct,u,Mt,ji,Zt,n),this.emit("missingKey",Ct,u,Mt,T)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&re?Nt.forEach(Ct=>{let Mt=this.pluralResolver.getSuffixes(Ct,n);ht&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Mt.indexOf(`${this.options.pluralSeparator}zero`)<0&&Mt.push(`${this.options.pluralSeparator}zero`),Mt.forEach(an=>{Ii([Ct],s+an,n[`defaultValue${an}`]||je)})}):Ii(Nt,s,je))}T=this.extendTranslation(T,t,n,m,i),Z&&T===s&&this.options.appendNamespaceToMissingKey&&(T=`${u}:${s}`),(Z||ae)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,ae?T:void 0):T=this.options.parseMissingKeyHandler(T))}return r?(m.res=T,m.usedParams=this.getUsedParamsDetails(n),m):T}extendTranslation(t,n,i,r,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let p=typeof t=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),g;if(p){let T=t.match(this.interpolator.nestingRegexp);g=T&&T.length}let m=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,i.lng||this.language||r.usedLng,i),p){let T=t.match(this.interpolator.nestingRegexp),A=T&&T.length;g<A&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var T=arguments.length,A=new Array(T),E=0;E<T;E++)A[E]=arguments[E];return a&&a[0]===A[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${A[0]} in key: ${n[0]}`),null):s.translate(...A,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,u=typeof l=="string"?[l]:l;return t!=null&&u&&u.length&&i.applyPostProcessor!==!1&&(t=hR.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,a,s,l;return typeof t=="string"&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(u,n),g=p.key;r=g;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let T=n.count!==void 0&&typeof n.count!="string",A=T&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),E=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",O=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(F=>{this.isValidLookup(i)||(l=F,!fR[`${O[0]}-${F}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(fR[`${O[0]}-${F}`]=!0,this.logger.warn(`key "${r}" for languages "${O.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(U=>{if(this.isValidLookup(i))return;s=U;let K=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(K,g,U,F,n);else{let ae;T&&(ae=this.pluralResolver.getSuffix(U,n.count,n));let Z=`${this.options.pluralSeparator}zero`,re=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(T&&(K.push(g+ae),n.ordinal&&ae.indexOf(re)===0&&K.push(g+ae.replace(re,this.options.pluralSeparator)),A&&K.push(g+Z)),E){let Pe=`${g}${this.options.contextSeparator}${n.context}`;K.push(Pe),T&&(K.push(Pe+ae),n.ordinal&&ae.indexOf(re)===0&&K.push(Pe+ae.replace(re,this.options.pluralSeparator)),A&&K.push(Pe+Z))}}let j;for(;j=K.pop();)this.isValidLookup(i)||(a=j,i=this.getResource(U,F,j,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&typeof t.replace!="string",r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(gg,"Translator");var ug=gg,ST=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),VT=class VT{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=So.create("languageUtils")}getScriptPartFromCode(t){if(t=lg(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=lg(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=ST(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]=ST(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=ST(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return typeof t=="string"&&(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))):typeof t=="string"&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(VT,"LanguageUtil");var pg=VT,C5=[{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}],I5={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},O5=["v1","v2","v3"],N5=["v4"],uR={zero:0,one:1,two:2,few:3,many:4,other:5},L5=o(()=>{let e={};return C5.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:I5[t.fc]}})}),e},"createRules"),MT=class MT{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=So.create("pluralResolver"),(!this.options.compatibilityJSON||N5.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=L5(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{let i=lg(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s=new Intl.PluralRules(i,{type:r});return this.pluralRulesCache[a]=s,s}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,a)=>uR[r]-uR[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(t,r,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(t,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){let i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n)),r=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));let a=o(()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!O5.includes(this.options.compatibilityJSON)}};o(MT,"PluralResolver");var OT=MT,pR=o(function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=E5(e,t,n);return!a&&r&&typeof n=="string"&&(a=IT(e,n,i),a===void 0&&(a=IT(t,n,i))),a},"deepFindWithDefaults"),PT=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),wT=class wT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=So.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:p,unescapeSuffix:g,unescapePrefix:m,nestingPrefix:T,nestingPrefixEscaped:A,nestingSuffix:E,nestingSuffixEscaped:O,nestingOptionsSeparator:F,maxReplaces:U,alwaysFormat:K}=t.interpolation;this.escape=n!==void 0?n:A5,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?tl(a):s||"{{",this.suffix=l?tl(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=T?tl(T):A||tl("$t("),this.nestingSuffix=E?tl(E):O||tl(")"),this.nestingOptionsSeparator=F||",",this.maxReplaces=U||1e3,this.alwaysFormat=K!==void 0?K:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,r){let a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(A=>{if(A.indexOf(this.formatSeparator)<0){let U=pR(n,u,A,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(U,void 0,i,{...r,...n,interpolationkey:A}):U}let E=A.split(this.formatSeparator),O=E.shift().trim(),F=E.join(this.formatSeparator).trim();return this.format(pR(n,u,O,this.options.keySeparator,this.options.ignoreJSONStructure),F,i,{...r,...n,interpolationkey:O})},"handleFormat");this.resetRegExp();let g=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(A=>PT(A),"safeValue")},{regex:this.regexp,safeValue:o(A=>this.escapeValue?PT(this.escape(A)):PT(A),"safeValue")}].forEach(A=>{for(l=0;a=A.regex.exec(t);){let E=a[1].trim();if(s=p(E),s===void 0)if(typeof g=="function"){let F=g(t,a,r);s=typeof F=="string"?F:""}else if(r&&Object.prototype.hasOwnProperty.call(r,E))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${E} for interpolating ${t}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=aR(s));let O=A.safeValue(s);if(t=t.replace(a[0],O),m?(A.regex.lastIndex+=s.length,A.regex.lastIndex-=a[0].length):A.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((u,p)=>{let g=this.nestingOptionsSeparator;if(u.indexOf(g)<0)return u;let m=u.split(new RegExp(`${g}[ ]*{`)),T=`{${m[1]}`;u=m[0],T=this.interpolate(T,s);let A=T.match(/'/g),E=T.match(/"/g);(A&&A.length%2===0&&!E||E.length%2!==0)&&(T=T.replace(/'/g,'"'));try{s=JSON.parse(T),p&&(s={...p,...s})}catch(O){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,O),`${u}${g}${T}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,u},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let u=[];s={...i},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let g=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=g.shift(),u=g,p=!0}if(a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=aR(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),p&&(a=u.reduce((g,m)=>this.format(g,m,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o(wT,"Interpolator");var NT=wT,R5=o(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...u]=s.split(":"),p=u.join(":").trim().replace(/^'+|'+$/g,""),g=l.trim();n[g]||(n[g]=p),p==="false"&&(n[g]=!1),p==="true"&&(n[g]=!0),isNaN(p)||(n[g]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),nl=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(lg(i),r),t[s]=l),l(n)}},"createCachedFormatter"),kT=class kT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=So.create("formatter"),this.options=t,this.formats={number:nl((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:nl((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:nl((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:nl((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:nl((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let i=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=nl(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,u)=>{let{formatName:p,formatOptions:g}=R5(u);if(this.formats[p]){let m=l;try{let T=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},A=T.locale||T.lng||r.locale||r.lng||i;m=this.formats[p](l,A,{...g,...r,...T})}catch(T){this.logger.warn(T)}return m}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(kT,"Formatter");var LT=kT,F5=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),UT=class UT extends il{constructor(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=So.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},u={};return t.forEach(p=>{let g=!0;n.forEach(m=>{let T=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[T]=2:this.state[T]<0||(this.state[T]===1?s[T]===void 0&&(s[T]=!0):(this.state[T]=1,g=!1,s[T]===void 0&&(s[T]=!0),a[T]===void 0&&(a[T]=!0),u[m]===void 0&&(u[m]=!0)))}),g||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(u=>{T5(u.loaded,[a],s),F5(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(p=>{l[p]||(l[p]={});let g=u.loaded[p];g.length&&g.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((p,g)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&g&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(p,g)},"resolver"),u=this.backend[i].bind(this.backend);if(u.length===2){try{let p=u(t,n);p&&typeof p.then=="function"?p.then(g=>l(null,g)).catch(l):l(null,p)}catch(p){l(p)}return}return u(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){let u={...s,isUpdate:a},p=this.backend.create.bind(this.backend);if(p.length<6)try{let g;p.length===5?g=p(t,n,i,r,u):g=p(t,n,i,r),g&&typeof g.then=="function"?g.then(m=>l(null,m)).catch(l):l(null,g)}catch(g){l(g)}else p(t,n,i,r,l,u)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(UT,"Connector");var RT=UT,dR=o(()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),gR=o(e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),sg=o(()=>{},"noop"),_5=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),zf=class zf extends il{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=gR(t),this.services={},this.logger=So,this.modules={external:[]},_5(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&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=dR();this.options={...r,...this.options,...gR(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);let a=o(g=>g?typeof g=="function"?new g:g:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?So.init(a(this.modules.logger),this.options):So.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=LT);let m=new pg(this.options);this.store=new fg(this.options.resources,this.options);let T=this.services;T.logger=So,T.resourceStore=this.store,T.languageUtils=m,T.pluralResolver=new OT(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(T.formatter=a(g),T.formatter.init(T,this.options),this.options.interpolation.format=T.formatter.format.bind(T.formatter)),T.interpolator=new NT(this.options),T.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},T.backendConnector=new RT(a(this.modules.backend),T.resourceStore,T,this.options),T.backendConnector.on("*",function(A){for(var E=arguments.length,O=new Array(E>1?E-1:0),F=1;F<E;F++)O[F-1]=arguments[F];t.emit(A,...O)}),this.modules.languageDetector&&(T.languageDetector=a(this.modules.languageDetector),T.languageDetector.init&&T.languageDetector.init(T,this.options.detection,this.options)),this.modules.i18nFormat&&(T.i18nFormat=a(this.modules.i18nFormat),T.i18nFormat.init&&T.i18nFormat.init(this)),this.translator=new ug(this.services,this.options),this.translator.on("*",function(A){for(var E=arguments.length,O=new Array(E>1?E-1:0),F=1;F<E;F++)O[F-1]=arguments[F];t.emit(A,...O)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,i||(i=sg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=function(){return t.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return t.store[g](...arguments),t}});let u=Qf(),p=o(()=>{let g=o((m,T)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(T),i(m,T)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),u}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sg,r=typeof t=="string"?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=o(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(p=>{p!=="cimode"&&a.indexOf(p)<0&&a.push(p)})},"append");r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let r=Qf();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=sg),this.services.backendConnector.reload(t,n,a=>{r.resolve(),i(a)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&hR.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;let r=Qf();this.emit("languageChanging",t);let a=o(u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},"setLngProps"),s=o((u,p)=>{p?(a(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(u,function(){return i.t(...arguments)})},"done"),l=o(u=>{!t&&!u&&this.services.languageDetector&&(u=[]);let p=typeof u=="string"?u:this.services.languageUtils.getBestMatchFromCodes(u);p&&(this.language||a(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,g=>{s(g,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),r}getFixedT(t,n,i){var r=this;let a=o(function(s,l){let u;if(typeof l!="object"){for(var p=arguments.length,g=new Array(p>2?p-2:0),m=2;m<p;m++)g[m-2]=arguments[m];u=r.options.overloadTranslationOptionHandler([s,l].concat(g))}else u={...l};u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||i||a.keyPrefix);let T=r.options.keySeparator||".",A;return u.keyPrefix&&Array.isArray(s)?A=s.map(E=>`${u.keyPrefix}${T}${E}`):A=u.keyPrefix?`${u.keyPrefix}${T}${s}`:s,r.t(A,u)},"fixedT");return typeof t=="string"?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=Qf();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=Qf();typeof t=="string"&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new pg(dR());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 zf(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sg,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new zf(r);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new fg(this.store.data,r),a.services.resourceStore=a.store),a.translator=new ug(a.services,r),a.translator.on("*",function(l){for(var u=arguments.length,p=new Array(u>1?u-1:0),g=1;g<u;g++)p[g-1]=arguments[g];a.emit(l,...p)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(zf,"I18n");var dg=zf,q=dg.createInstance();q.createInstance=dg.createInstance;var vz=q.createInstance,Tz=q.dir,Ez=q.init,bz=q.loadResources,Az=q.reloadResources,Sz=q.use,Pz=q.changeLanguage,xz=q.getFixedT,Cz=q.t,Iz=q.exists,Oz=q.setDefaultNamespace,Nz=q.hasLoadedNamespace,Lz=q.loadNamespaces,Rz=q.loadLanguages;var RF=ne(jT()),FF=ne(HR()),Vg=ne(NF()),We=require("@sap-ux/vocabularies-types/vocabularies/UI"),nu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var _g=ne(le());var se=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${_g.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${_g.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${_g.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var $="#/definitions/",pW=[G.v4.FE_TEMPLATE_V4_LIST_REPORT,G.v4.FE_TEMPLATE_V4_ALP,G.v4.FE_TEMPLATE_V4_OBJECT_PAGE,G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],dW=["sap.fe.core","sap.fe.templates"],iu=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),ur=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Co(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,Vg.parse)(r.fileContent,r.dataSourceUri))}catch(a){return se(t,{severity:G.LogSeverity.Error,message:q.t("ANNOERR"),location:{path:q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,Vg.merge)(...n);i=(0,FF.convert)(r)}return i}o(Co,"parseAndMergeAndConvert");var cl=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function oE(e,t,n){var i,r,a,s;if((i=e==null?void 0:e.Common)!=null&&i.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((r=l==null?void 0:l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(a=e.Common)==null?void 0:a.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}o(oE,"evaluateCommonLabel");function Mg(e,t){let n=e.value;return e.$target&&(n=oE(e.$target.annotations,t,n)),n}o(Mg,"getLabelForPropertyPath");function Dg(e,t){var r,a;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(s=>s.name===e.Value):(i=t&&t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&(e.Target.$target.Value?i=e.Target.$target.Value.$target:e.Target.$target.Label&&(n=e.Target.$target.Label)),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=oE(i.annotations,t,n)),n}o(Dg,"getLabelForDataField");function gW(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return oE(a.annotations,t,s)}}}else return}o(gW,"getLabel");function LF(e,t,n){let i=Dg(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(LF,"getTitleForDataField");function Ei(e,t){var s,l,u,p;let n="",i,r,a="";try{let g=gW(e.Label,t);switch(e.$Type){case We.UIAnnotationTypes.DataField:n=LF(e,t,g);break;case We.UIAnnotationTypes.DataFieldWithUrl:i=Dg(e,t),n=g||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case We.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Dg(e,t),n=g||i||((l=(s=r.Target)==null?void 0:s.$target)==null?void 0:l.Title)||((u=r.Target)==null?void 0:u.value.split("UI.v1.")[1]);break;case We.UIAnnotationTypes.DataFieldForAction:case We.UIAnnotationTypes.DataFieldWithAction:case We.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,a=typeof e.Action=="string"?r.Action:(p=r.Action)==null?void 0:p.path,g?n=typeof g=="string"?g:a:n=a;break;case We.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Dg(e,t),n=i||e.Value.path;break;case We.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=LF(r,t,g);break;default:break}return n}catch{return n}}o(Ei,"getDataFieldDescription");function pt(e){return e.replace("#","::").replace(/\//g,":2f")}o(pt,"prepareRef");function aa(e){if(e){let t=`${G.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(aa,"getPageTypeV2");function aE(e){if(e.name&&e.name!==G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE){let t=`${G.v4.FE_TEMPLATE_V4}.`;return e.name.split(t)[1]}else{if((e==null?void 0:e.name)===G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return G.PageTypeV4.FPMCustomPage;if(e.viewId||e.viewName)return G.PageTypeV4.CustomPage}}o(aE,"getPageTypeV4");function mW(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(mW,"getTargetAnnotationName");function ii(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(ii,"findAlias");function hW(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(hW,"getAnnotationFromMetaPath");function yW(e,t,n){var s,l;let i=e[e.length-1],r=hW(i),a=ii(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(yW,"determineTargetAnnotation");function vW(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${We.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${G.UIVOCABULARY}`);return e}o(vW,"adjustKey");function TW(e,t,n,i,r=G.FioriElementsVersion.v2,a=!1){var m,T;let s=!1,l,u=i.split("/"),p=u.length>1;p&&n&&(n=(m=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:m.targetType),t=vW(t,u,a);let g=yW(u,n,e);if(g){let A=r===G.FioriElementsVersion.v2?"::":"#";t=mW(g,a).replace("#",A),l=(T=g.fullyQualifiedName)==null?void 0:T.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let A=r===G.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(A)}${A}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(TW,"getKeyAndEntityTypeOfReferenceFacet");function _F(e,t,n,i,r=G.FioriElementsVersion.v2,a=!1){var g,m,T;let s=(m=e.fullyQualifiedName)==null?void 0:m.substring((g=e.fullyQualifiedName)==null?void 0:g.lastIndexOf("@")),l=e.ID?e.ID.toString():s,u=(T=e.fullyQualifiedName)==null?void 0:T.split("@")[0],p=t;if(e.$Type!==We.UIAnnotationTypes.CollectionFacet&&"Target"in e){let A=cl(e.Target);if(!A){se(i,{severity:G.LogSeverity.Error,message:q.t("NOTARGET",{target:e.Target})});return}let{key:E,entityType:O,stopProcessing:F,namespace:U}=TW(n,l,p,A,r,a);if(F)return;l=E,p=O,u=U}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:u}}o(_F,"getSectionFacet");function EW(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(EW,"getDecodedPathElement");var sE=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),DF=o((e,t,n,i,r,a=!1)=>{if(!t)return;let s=e,l=t.split("/");for(let u=0;u<l.length;u++){let p=l[u];if(p==="[]")continue;let g=EW(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=sE(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),Io=o((e,t,n,i,r=!1)=>DF(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),VF=o((e,t,n,i,r)=>{DF(e,t,i,r,n)},"setManifestSectionByPathV4");function cE(e){let t,n,i;switch(e.$Type){case We.UIAnnotationTypes.DataField:t=cl(e.Value);break;case We.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:cl(e.Value);break;case We.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${G.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case We.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${pt(e.Action)}`);break;case We.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=cl(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case We.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${pt(e.Action)}`);break;case We.UIAnnotationTypes.DataFieldWithNavigationPath:i=cl(e.Value),n=cl(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(cE,"getSchemaKeyOfLineItemRecord");function bW(e,t,n){return e.includes(We.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?We.UIAnnotationTerms.Chart:e.includes(We.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?We.UIAnnotationTerms.Identification:n&&e.includes(We.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?We.UIAnnotationTerms.LineItem:e.includes(We.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?We.UIAnnotationTerms.FieldGroup:e.includes(We.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?We.UIAnnotationTerms.DataPoint:e.includes(We.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?We.UIAnnotationTerms.PresentationVariant:e.includes(We.UIAnnotationTerms.SelectionPresentationVariant)||e.includes(t+".SelectionPresentationVariant")?We.UIAnnotationTerms.SelectionPresentationVariant:void 0}o(bW,"getUIAnnotationTerm");function AW(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?nu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?nu.CommunicationAnnotationTerms.Address:void 0}o(AW,"getCommunicationAnnotationTerm");function SW(e,t,n){return bW(e,t,n)||AW(e,t)}o(SW,"getAnnotationTerm");function PW(e,t,n,i,r){var p,g,m,T,A,E,O,F,U,K;let a=ii(G.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(SW(s,a,i)){case We.UIAnnotationTerms.Chart:{n[s]={base:G.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case We.UIAnnotationTerms.Identification:{n[s]={base:G.FacetBase.Identification},n[s].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case We.UIAnnotationTerms.LineItem:{if(!s.includes(We.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let j=s.split("::");j[j.length-1]=`@${We.UIAnnotationTerms.LineItem}`,s=j.join("::")}n[s]={base:G.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case We.UIAnnotationTerms.FieldGroup:{n[s]={base:G.FacetBase.Form},n[s].target=(T=t==null?void 0:t.Target)==null?void 0:T.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case We.UIAnnotationTerms.DataPoint:{n[s]={base:G.FacetBase.DataPoint},n[s].Label=(A=t==null?void 0:t.Target)==null?void 0:A.$target.Title,n[s].target=(E=t==null?void 0:t.Target)==null?void 0:E.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case We.UIAnnotationTerms.PresentationVariant:{n[s]={base:G.FacetBase.PresentationVariant},n[s].target=(O=t==null?void 0:t.Target)==null?void 0:O.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case We.UIAnnotationTerms.SelectionPresentationVariant:{n[s]={base:G.FacetBase.SelectionPresentationVariant},n[s].target=(F=t==null?void 0:t.Target)==null?void 0:F.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case nu.CommunicationAnnotationTerms.Contact:{n[s]={base:G.FacetBase.Contact},n[s].target=(U=t==null?void 0:t.Target)==null?void 0:U.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case nu.CommunicationAnnotationTerms.Address:{n[s]={base:G.FacetBase.Address},n[s].target=(K=t==null?void 0:t.Target)==null?void 0:K.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:G.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",G.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(PW,"evaluateTargetAnnotation");function lE(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(lE,"getAnnotationPathUsingFullyQualifiedName");function fE(e,t,n,i,r,a=G.FioriElementsVersion.v2,s){var u;let l=_F(e,i,t,s,a,!1);if(l)switch(e.$Type){case We.UIAnnotationTypes.ReferenceFacet:{PW(l,e,r,i,t);break}case We.UIAnnotationTypes.CollectionFacet:{let p=lE(i,e.fullyQualifiedName),g=r[l.key]={base:G.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===G.FioriElementsVersion.v4&&se(s,{severity:G.LogSeverity.Error,message:q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{fE(m,t,n,i,g.facets,a,s)});break}}}o(fE,"addFacetToConfig");function wg(e,t,n=G.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=ii(G.UIVOCABULARY,t),s=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),g=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{fE(m,t,g,e,r,n,i)})}return r}o(wg,"getObjectPageHeaderFacets");function kg(e,t,n=G.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=ii(G.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(g=>{fE(g,t,p,e,r,n,i)})}return r}o(kg,"getObjectPageFacets");function uE(e){var t,n,i,r;if(e[G.ManifestSection.generic]&&Object.keys(e[G.ManifestSection.generic]).length>0||e[G.ManifestSection.ovp]&&Object.keys(e[G.ManifestSection.ovp]).length>0)return G.FioriElementsVersion.v2;{let a=(n=(t=e[G.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[G.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>pW.indexOf(a[l].name)>-1)||s&&Object.keys(s).find(l=>dW.indexOf(l)>-1)?G.FioriElementsVersion.v4:void 0}}o(uE,"getFEVersionFromManifest");function xW(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[G.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[G.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[G.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[G.ManifestSection.ui5].models[t].dataSource:void 0}o(xW,"getMainService");function MF(e){var i,r;let t=xW(e);if(!t)return G.OdataVersion.v2;let n=(i=e[G.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?G.OdataVersion.v4:G.OdataVersion.v2}o(MF,"getODataVersionFromManifest");function CW(e,t){var i,r;let n;if(e[G.ManifestSection.generic]){let a=e[G.ManifestSection.generic].pages;if(!a){se(t,{severity:G.LogSeverity.Error,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(aa((i=l.component)==null?void 0:i.name)===G.PageTypeV2.AnalyticalListPage){n=G.TemplateType.AnalyticalListPageV2;break}else if(aa((r=l.component)==null?void 0:r.name)===G.PageTypeV2.ListReport){n=G.TemplateType.ListReportObjectPageV2;break}}}else n||se(t,{severity:G.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:G.ManifestSection.generic}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return n}o(CW,"determineV2Template");function ru(e){var i,r,a,s;let t,n=aE(e);if(n===G.PageTypeV4.AnalyticalListPage)t=G.TemplateType.AnalyticalListPageV4;else if(n===G.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[G.ALPViewType.Primary]||l[G.ALPViewType.Secondary])?t=G.TemplateType.AnalyticalListPageV4:t=G.TemplateType.ListReportObjectPageV4}else n===G.PageTypeV4.ObjectPage?t=G.TemplateType.ListReportObjectPageV4:[G.PageTypeV4.CustomPage,G.PageTypeV4.FPMCustomPage].includes(n)&&(t=G.TemplateType.FreestylePageV4);return t}o(ru,"determineV4PageTemplateType");function IW(e){let t;for(let n in e){let i=e[n];if(t=ru(i),t)break}return t}o(IW,"determineV4TemplateFromPages");function OW(e,t){let n=e[G.ManifestSection.ui5].routing&&e[G.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return se(t,{severity:G.LogSeverity.Info,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing"]}}),G.TemplateType.ListReportObjectPageV4;let i=IW(n);return i||se(t,{severity:G.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:G.ManifestSection.ui5}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing","targets"]}}),i}o(OW,"determineV4Template");function pE(e,t,n){let i;return e[G.ManifestSection.ovp]?i=G.TemplateType.OverviewPageV2:t===G.FioriElementsVersion.v2?i=CW(e,n):t===G.FioriElementsVersion.v4&&(i=OW(e,n)),i}o(pE,"getTemplateTypeFromManifest");function ka(e,t,n){e!=null&&e.ID?(t.title=G.FACETTITLEPREFIX+e.ID,t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:n.replace(G.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(ka,"addSectionTitleAndDescription");function ll(e,t,n){var i,r;ka(e,t,n),!(e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}o(ll,"addTargetTitleAndSectionDescription");function Oo(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[G.SchemaTag.isViewNode]=!0,i[G.SchemaTag.annotationPath]=t.annotationPath,ll(t,i,n),i}o(Oo,"createDefaultSection");function wF(e,t,n,i=G.FioriElementsVersion.v2,r=!1){var l,u;let a=ii(G.UIVOCABULARY,t),s=[];if(e){let p=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.Facets);return p&&(s=p.reduce(function(g,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return g;let T=_F(m,e,t,n,i,!0);return T&&g.push(T),g},s)),s}}o(wF,"getObjectPageFacetSection");var Ua=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(u){let p=a&&a===u?r:u.replace(/\?\?/g,"/");if(!(!s[p]&&(a===u&&(p=a),!s[p]))){if(Object.keys(s[p]).length===0||i&&i[i.length-1]===p&&n){Array.isArray(s)?s.splice(Number(p),1):delete s[p],l.pop(),Ua(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),rE=o(e=>e===G.SchemaType.FreestylePage?G.PageTypeV2.CustomPage:e===G.SchemaType.FPMCustomPage?G.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Ft=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case G.SchemaType.Application:{i.filename="App",i.path=`./${G.DirName.Schemas}/${i.filename}`;break}case G.SchemaType.ListReport:case G.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:rE(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}case G.PageTypeV4.FPMCustomPage:case G.SchemaType.FPMCustomPage:{i.filename=n?`${G.SchemaType.FPMCustomPage}_${n}`:rE(G.SchemaType.FPMCustomPage),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}default:{i.filename=rE(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function Ug(e,t,n,i){if(e===G.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o(Ug,"generatePageId");function dE(e,t,n){let i=t==null?void 0:t.properties,r=t==null?void 0:t.required;if(!i&&(t!=null&&t.$ref)){let s=t==null?void 0:t.$ref,l=e.definitions[s.split($)[1]];typeof l=="object"&&(i=l.properties,r=l.required)}if(!i||Object.keys(i).length===0)return[];let a=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(u=>l[u]!==void 0)&&a.push(s)}return a}o(dE,"findMatchingKeysByAdditionalProperties");function NW(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split($)[1],s=t.definitions[a];if(typeof s=="object"&&typeof n=="object"){let l=s.controlProperty;if(l)r.includes(n[l])&&i.push(a);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=dE(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length)&&i.push(a)}}}o(NW,"fillArrayFromAnyOfReference");function LW(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split($)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{NW(r,n,t,i)}),i.length===0))return;return i}o(LW,"fillArrayFromPropertyDefinition");function RW(e,t,n,i,r,a,s,l){var p,g,m,T;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let A=e[e.length-1];if(u.targetDefinition=t.definitions[A],(p=u==null?void 0:u.targetDefinition)!=null&&p.$ref||((g=u==null?void 0:u.targetDefinition)==null?void 0:g.type)==="array")return u=No(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(F=>{F!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[F].properties})}),u.title=(m=u==null?void 0:u.targetDefinition)!=null&&m.title?u.targetDefinition.title:n;let E=A==null?void 0:A.split("<")[0],O=i||{};u.configObject=a.createInstance(s,E,O,(T=u==null?void 0:u.targetDefinition)==null?void 0:T.controlProperty)}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}o(RW,"determineNextDefinitionFromDefinitionArray");function No(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=No(e,t,n,i.items,r,a,s),l;let u=LW(i,n,e);if(u)return l=RW(u,e,t,n,r,a,s,i),l}o(No,"getNextTargetDefinition");var gE=o((e,t,n)=>{let i=e.slice();return t.forEach((r,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[a]=(0,RF.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function jg(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(jg,"convertEnumToCSV");function Xi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Xi,"convertActionKeyToStableId");function mn(e){return e==null?void 0:e.split($)[1]}o(mn,"getDefinitionKey");function kF(e){return`#/definitions/${e}`}o(kF,"getDefinitionsRef");function $g(e){return e instanceof Error?e.message:String(e)}o($g,"getErrorMessage");function Qs(e,t){return e==null?void 0:e.includes(t)}o(Qs,"isFeatureSupported");function Lo(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(Lo,"updatePropertyIndices");function Bg(e,t){let n=e;for(let i of t)if(i!==void 0)if(typeof n=="object"&&i in n)n=n[i];else return;return n}o(Bg,"getJSONPropertyByPath");function UF(e){return e=e.replace(G.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(UF,"removeNamespaces");function fl(e){return e=e.replace(G.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(fl,"replaceNamespaces");var To=require("@sap-ux/vocabularies-types/vocabularies/UI"),oe=ne(le());var Qi=ne(le());var qt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Hg=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),Qn=o((e,t)=>{let n,i=Qi.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 FW(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o(FW,"escapeId");var jF=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(jF||{}),$F=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))($F||{});function _W(e,t,n){let i;return e=e.map(function(r){if(r===Qi.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===Qi.PropertyName.sections)return i=t[a+1],t[a+1]=Qn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(_W,"mapBreadcrumbs");var mE=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=_W(t,s,r)),s[0]===Qi.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,Qi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Qi.VOCWITHSLASH):t[0]===Qi.PropertyName.table&&(a=t[0]);let l=s[s.length-1].replace(/::com.sap.vocabularies/g,Qi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Qi.VOCWITHSLASH).replace("sTarget/@","sTarget::@").replace("/",":2f"),u,p=l.indexOf(":::");return l.startsWith("DataField")&&p>-1?u=`${e}template:::TableColumn:::${l.substring(0,p)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${l.substring(p+3)}`:u=`${e}${t.join("::")}-${l}`,FW(u)},"buildColumnControlId"),qi=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function DW(e){let t=Qi.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(DW,"determinePattern");var hE=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split($)[1]]:a,u=a.description?a.description:l.description,p=DW(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(g=>{s.enum.indexOf(g)===-1&&s.enum.push(g)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},u&&(r[n].description=u,delete a.description)},"addPatternForBindingChangeOfEnum"),qn=o((e,t,n)=>{hE(e,t,n)},"addPatternForBindingChangeOfEnumLR"),gt=o((e,t,n)=>{let i=Object.values(jF);hE(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ri=o((e,t,n)=>{let i=Object.values($F);hE(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function qs(){}o(qs,"doNotDelete");var CJ=ne(HF());var GF=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(GF,e),"syncRule");function Yn(e,t){let n;return e&&(n=Reflect.getMetadata(GF,e,t)),n}o(Yn,"getReflectMetadata");var wr=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),WF=Symbol("childId"),kt=o(e=>Reflect.metadata(WF,e),"childId"),Gg=o((e,t)=>Reflect.getMetadata(WF,e,t),"getChildId"),Wg=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),VW=Symbol("descriptionSrcURL"),Ae=o(e=>Reflect.metadata(VW,e),"descriptionSrcURL");var MW=Symbol("validityMetadataKey"),x=o(e=>Reflect.metadata(MW,e),"validity");function Kg(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(Kg,"getTextForDeprecated");var ZF=ne(zF()),e0=ne(le());var t0=ZF.default.change,JF={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function n0(e,t){let n="";try{for(let i in JF)e[i]===void 0&&(e[i]=JF[i]);n=t0.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(n0,"createChangeString");function ja(e){try{return t0.parse(e)}catch{return!1}}o(ja,"parseChangeString");function i0(e,t,n,i,r){let a=n.layer?n.layer===e0.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:a};return e[i]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,i):e[i].toString().startsWith("{")?(s.content.newBinding=e[i],s.type="propertyBindingChange"):s.content.newValue=e[i]:s.content.newValue=null,s}o(i0,"fillFlexChangeContent");function r0(e,t){return n0(e,t)}o(r0,"exportToFlexChange");var Ys=ne(le());function ul(e,t,n,i,r,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let u=l(t,r,n,a);u!==void 0&&(i[n]=u)}else t[s]!==void 0&&(i[n]=t[s])}o(ul,"importProperty");function Xg(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(se(i,{severity:Ys.LogSeverity.Warning,message:Kg(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(Xg,"checkDeprecatedProperties");function yE(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split($)[1]];return yE(n,t)}else return e.title?e.title.startsWith(Ys.FACETTITLEPREFIX)?e.title.split(Ys.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(yE,"getSectionTitle");function Qg(e){let t=e.split(`${Ys.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(Qg,"getTargetFromCustomColumnRef");function Ro(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(Ro,"removeEmptyStructure");var Ut=require("@sap-ux/vocabularies-types/vocabularies/UI");var sa=require("@sap-ux/vocabularies-types/vocabularies/UI");function qg(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/[/@()#*]/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(qg,"replaceSpecialChars");var zs=o(function(e){return qg(UF(e))},"prepareId");function HW(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(HW,"evaluateConcat");function Js(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 HW(e);if(e&&typeof e=="string")return qg(e.replace(/ /g,"_"))}o(Js,"getStableIdPartFromValue");var o0=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),ca=o(function(e){let t="";if(e.$Type&&e.$Type===sa.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,zs(t);if(e.$Type&&e.$Type===sa.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=o0(e),t;if(e.$Type&&e.$Type===sa.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=zs(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===sa.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=Js(e.Value)+"::"),t+=e.Action,zs(t);if(e.$Type&&e.$Type===sa.UIAnnotationTypes.DataField)return t="DataField::",t+=Js(e.Value),zs(t);if(e.$Type&&e.$Type===sa.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=Js(e.Value)+"::",t+=o0(e),zs(t);if(e.$Type&&e.$Type===sa.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=Js(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),zs(t);if(e.$Type&&e.$Type===sa.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=Js(e.Value),zs(t)},"getStableIdPartFromDataField");var de=ne(le());var _e=ne(le());var Yi=require("@sap-ux/vocabularies-types/vocabularies/UI"),l0=require("path"),f0=ne(Ks());var Yg="ResponsiveTableWithMultiSelect<LineItems>",zg="ResponsiveTableWithInlineDelete<LineItems>",GW="TreeTable<LineItems>",WW="AnalyticalTable<LineItems>",KW="GridTable<LineItems>",vE=[Yg,zg,GW,WW,KW],a0=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],s0="template::",Jg="template:::ObjectPageAction:::";function XW(e,t,n){e.definitions[_e.DefinitionName.LineItems]&&(e.definitions[_e.DefinitionName.LineItems].properties.custom={$ref:`${$}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${$}${n}`},description:"Custom Columns"},e.definitions[t][_e.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[_e.SchemaTag.artifactType]=_e.ArtifactType.Manifest)}o(XW,"addCustomColumnDefinition");function QW(e,t){let n;return e==="TableColumnActionIntentBased"?n=cE(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=pt(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Yi.UIAnnotationTypes.DataFieldForAction?n=pt(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=pt(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(QW,"getActionId");function TE(e,t,n,i,r){let a,s=n.lineItemId===_e.DefinitionName.LineItems?"":"ObjectPage",l=QW(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=Ei(n.lineItemRecord,n.entityType);t.properties[l]={$ref:$+u},t.properties[l][_e.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=Zs(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[u]={...JSON.parse(JSON.stringify(e.definitions[a])),description:p,keys:[{name:"Action",value:g}],annotationPath:`${n.lineItemPath}/${r}`},m&&(e.definitions[u][_e.SchemaTag.target]=m)):(e.definitions[u]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[u][_e.SchemaTag.isViewNode]=!0,e.definitions[u][_e.SchemaTag.keys]=[{name:_e.SchemaKeyName.action,value:g}],m&&(e.definitions[u][_e.SchemaTag.target]=m),e.definitions[u][_e.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}o(TE,"handleActionRecord");function qW(e,t,n){e!==_e.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Yi.UIAnnotationTypes.DataFieldForAction||t.$Type===Yi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Yi.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Yi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(qW,"getColumnActionType");function YW(e,t){let n=[];if(!(e.$Type!==Yi.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Yi.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Yi.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Yi.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Yi.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Yi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),qW(t,e,n),n}o(YW,"getActionType");function u0(e,t,n){let i=cE(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:$+_e.DefinitionName.TableColumn,description:Ei(e.lineItemRecord,e.entityType)},r.properties[i][_e.SchemaTag.propertyIndex]=n,r.properties[i][_e.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,om(r.properties[i],e.lineItemRecord),am(e.lineItemRecord,r.properties,i)}}o(u0,"generateGenericColumn");function zW(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{TE(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&TE(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{TE(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":u0(i,t,r)}}o(zW,"handleAnyAction");function ou(e,t){let n=t.value;return n.includes(_e.UIVOCABULARYALPHADOT+e)?n.replace(_e.UIVOCABULARYALPHADOT,""):""}o(ou,"retrieveNameWithoutVocabularyFromVisualization");function pl(e,t,n,i,r,a){r=r||_e.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=rm(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},T=YW(g,r);T?T.forEach(A=>{zW(A,t,s,m,p,l,r)}):u0(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${$}${a}`})}o(pl,"addLineItemsType");function JW(e,t,n){var r,a;let i=(a=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:a.leadingProperty;if(i){let s=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=s==null?void 0:s.reduce((l,u)=>(l.includes(u.name)||l.push(u.name),l),[])}}o(JW,"addListReportLeadingProperties");function ZW(e,t,n,i){var s,l,u,p,g,m;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let a=(g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:g.variants;if(a){let T=[];for(let A in a){let E=(m=a[A])==null?void 0:m.key;E!==void 0&&!T.includes(E)&&T.push(E)}la(T,r)}}o(ZW,"addTabkeyEnum");function Zg(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(u=>{let p=u.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let g=JSON.parse((0,f0.xml2json)(u.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!g||g.Column||g["table:Column"]||g["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!g||!g.Column&&!g["table:Column"]&&!g["table:AnalyticalColumn"]&&!g["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+l0.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),la(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(Zg,"addFragmentEnum");function dl(e,t,n,i,r,a=_e.DefinitionName.CustomColumns,s=_e.DefinitionName.CustomColumn,l){XW(e,a,s),JW(e,t,s),ZW(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;Zg(e,r,u,"fragmentName",s),Zg(e,r,u,"fragmentName",_e.DefinitionName.CustomColumn),Zg(e,r,u,"cellsFragmentName",s),Zg(e,r,u,"cellsFragmentName",_e.DefinitionName.CustomColumn)}o(dl,"addTableColumnExtensions");function p0(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(p0,"removeElementsFromEnum");function em(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=ur(n==null?void 0:n.fullyQualifiedName,Yi.UIAnnotationTerms.SelectionFields);if(r&&(i[_e.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${pt(s.value)}>`,p=to(s);s.type==="PropertyPath"&&(l=Mg(s,n)),i.properties[s.value]={$ref:$+u},i.properties[s.value][_e.SchemaTag.propertyIndex]=a,e.definitions[u]={type:"object",description:l,additionalProperties:!1},e.definitions[u][_e.SchemaTag.isViewNode]=!0,e.definitions[u][_e.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[u][_e.SchemaTag.dataType]=p,e.definitions[u][_e.SchemaTag.keys]=[{name:_e.SchemaKeyName.value,value:`${s.value}`}],e.definitions[u][_e.SchemaTag.annotationPath]=`${i[_e.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[u].$ref=`${$}SelectionFieldDateSettings`:e.definitions[u].properties={},a++})}o(em,"addSelectionFields");function d0(e,t){for(let n of t.entityProperties)e.push(n.name)}o(d0,"addEntityPropertiesToEnum");function tm(e){var t,n,i,r;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((r=(i=e.annotations)==null?void 0:i.Common)!=null&&r.DraftNode)}o(tm,"isDraftEnabled");function g0(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.DeleteRestrictions)==null?void 0:i.Deletable)!==!1}o(g0,"isEntityDeletable");function m0(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.UpdateRestrictions)==null?void 0:i.Updatable)!==!1}o(m0,"isEntityUpdatable");function gl(e,t=!1,n){let i=_e.DefinitionName.HeaderActionsStandard,r=_e.DefinitionName.HeaderActionStandard;t&&(i=_e.DefinitionName.ObjectPageHeaderActions,r=_e.DefinitionName.ObjectPageHeaderActionStandard);let a=e.definitions[i];a[_e.SchemaTag.isViewNode]=!0,a.description="Actions",Object.entries((n||a).properties).forEach(([l,u])=>{let p=u.$ref.split($)[1],g=`${r}<${p}>`;a.properties[l]={$ref:`${$}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][_e.SchemaTag.actionType]=_e.ActionType.Standard})}o(gl,"addStandardHeaderActions");function h0(e,t){let n=e.definitions[_e.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split($)[1],a=`${_e.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${$}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][_e.SchemaTag.actionType]=_e.ActionType.Standard}}o(h0,"addStandardFooterActionsOP");function nm(e){var i,r,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?q.t("NOUIANNOTATIONS",{entityType:t.name}):q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});se(e.logger,{severity:_e.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(nm,"getUIAnnotationForEntitySet");function im(e,t,n,i="string"){let r=e!==void 0&&(typeof e!="object"||e[t]!==void 0&&typeof e[t]!==i);return r&&se(n,{severity:_e.LogSeverity.Error,message:q.t("TYPEERROR",{propertyName:t,expectedType:i})}),r}o(im,"hasPropertyTypeError");function e8(e,t,n,i){if(e===de.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Ut.UIAnnotationTypes.DataField:case Ut.UIAnnotationTypes.DataFieldForAnnotation:case Ut.UIAnnotationTypes.DataFieldWithNavigationPath:case Ut.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===de.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Ut.UIAnnotationTypes.DataField:case Ut.UIAnnotationTypes.DataFieldForAnnotation:case Ut.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(e8,"copyFieldProperties");function t8(e,t,n,i){let r=e===de.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===de.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(t8,"determineFieldDefinitionName");function n8(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][de.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][de.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][de.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][de.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(n8,"addKeysTagForDataField");function i8(e,t,n){if(e.$Type===Ut.UIAnnotationTypes.DataField||e.$Type===Ut.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ut.UIAnnotationTypes.DataFieldWithNavigationPath)n8(e,t,n);else if(e.$Type===Ut.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][de.SchemaTag.keys]=[{name:"Target",value:fl(e.Target.value)}],t.definitions[n][de.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Ut.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][de.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][de.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][de.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Ut.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][de.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][de.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(i8,"addKeysTagToField");function r8(e){var t,n;return e.$Type===Ut.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===Ut.UIAnnotationTypes.ConnectedFieldsType}o(r8,"isConnectedField");function o8(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===Ut.UIAnnotationTypes.ConnectedFieldsType){let u=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,g=u.length;for(let m in p){let T=p[m];if(typeof T=="object"&&"$Type"in T){let A=u.findIndex(E=>E===m);A===-1&&(A=g,g++),EE(e,t,T,`ConnectedFields::${a.qualifier}`,A.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(o8,"addConnectedFields");function y0(e,t,n){if(n)return n;let i=pt(t);return e.definitions[i].properties}o(y0,"getFieldsSchemaContainer");function EE(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){var E;let g=ca(n),m=s===de.FioriElementsVersion.v2&&g&&g.includes("::")?g.split("::").splice(1).join("::"):g,T=t8(s,g,i,m),A={};if(!(!n||!n.$Type)){if(n.$Type===Ut.UIAnnotationTypes.DataFieldForAction||n.$Type===Ut.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===de.SectionType.Section){let O=y0(t,`${e}${de.DefinitionName.Actions}<${i}>`,u.actions),F=O[m]={$ref:`${$}${T}`};F[de.SchemaTag.propertyIndex]=parseInt(r)}}else{let O=y0(t,`${e}${de.DefinitionName.Fields}<${i}>`,u.fields);O[m]={$ref:`${$}${T}`,propertyIndex:parseInt(r)},r8(n)&&(A=o8(e,t,n,a,s))}t.definitions[T]={type:"object",properties:A,description:Ei(n,a.entityType),additionalProperties:!1},i8(n,t,T),t.definitions[T][de.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[T][de.SchemaTag.annotationType]=n.$Type,t.definitions[T][de.SchemaTag.isViewNode]=!0,om(t.definitions[T],n),e8(s,t,n,T),n.$Type===Ut.UIAnnotationTypes.DataFieldForAction&&((E=t.definitions)!=null&&E.FormAction)&&(t.definitions[T].$ref=`${$}${de.DefinitionName.FormAction}`,delete t.definitions[T].properties)}}o(EE,"addField");function a8(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}o(a8,"determineTargetIdOfForm");function s8(e,t,n,i,r,a){if(e.base===de.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&EE(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];EE(t,n,l,i,s,e,r)}}o(s8,"addFieldsToFormDefinition");function c8(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][de.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][de.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][de.SchemaTag.annotationPath]=ur(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(c8,"addTagsToFormDefinition");function sm(e,t,n,i,r,a){if(!t.target)return;let s=a8(t),l=pt(`${e}${de.DefinitionName.Form}<${s}>`),u=pt(`${e}${de.DefinitionName.Fields}<${s}>`),p=pt(`${e}${de.DefinitionName.Actions}<${s}>`),g=!(t.base===de.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${$}${l}`},e===de.SectionType.Section&&g?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${$}${p}`},fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][de.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},c8(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][de.SchemaTag.isViewNode]=!0,s8(t,e,i,s,r,g),s}o(sm,"handleForm");function cm(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),a=t.references.find(s=>s.alias===r);a&&(i=e.replace(n,a.namespace))}return i}o(cm,"replaceAlias");function lm(e,t){let n=cm(e.Action,t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(lm,"getActionNameAndId");function v0(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===de.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:v0(a.pages,t)}}o(v0,"isFirstObjectPage");function fm(e,t,n,i,r){var g,m;e.definitions[de.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${de.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${$}${de.DefinitionName.ObjectPageFooter}`},e.definitions[de.DefinitionName.ObjectPageFooter].properties[de.PropertyName.actions]={$ref:`${$}${de.DefinitionName.FooterActions}`};let a=e.definitions[de.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[de.SchemaTag.isViewNode]=!0;let s=ii(de.UIVOCABULARY,t.serviceAVT),l=t.entitySet,u=t.entityType,p=s&&((m=(g=u==null?void 0:u.annotations)==null?void 0:g[s])==null?void 0:m.Identification);if(p){let T=p.fullyQualifiedName.replace(`@${Ut.UIAnnotationTerms.Identification}`,`/@${Ut.UIAnnotationTerms.Identification}`);a[de.SchemaTag.annotationPath]=`/${T}`,i(u,e,a,p)}else u&&(a[de.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${Ut.UIAnnotationTerms.Identification}`);n===de.FioriElementsVersion.v2&&v0(r,t)&&!tm(l)&&h0(e,a),delete e.definitions[de.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${de.DefinitionName.ObjectPageFooter}<${de.DefinitionName.ObjectPageFooterActions}>`]}o(fm,"addFooterActions");function um(e,t,n,i,r,a=!1){var m,T;let s=de.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[de.DefinitionName.ObjectPageHeader].properties[de.PropertyName.actions]={$ref:`${$}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[de.SchemaTag.isViewNode]=!0;let p=ii(de.UIVOCABULARY,n.serviceAVT),g=p&&((T=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:T.Identification);g?u[de.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${Ut.UIAnnotationTerms.Identification}`,`/@${Ut.UIAnnotationTerms.Identification}`):t&&(u[de.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ut.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&gl(e,!0,l)}o(um,"addHeaderActions");function pm(e,t){e.properties.header={$ref:`${$}${de.DefinitionName.ObjectPageHeader}`},e.definitions[de.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${de.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[de.DefinitionName.ObjectPageHeader][de.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ut.UIAnnotationTerms.HeaderInfo}`)}o(pm,"addCommonHeaderSchema");function T0(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(T0,"determineEntitySetOfEntityType");var pr=require("@sap-ux/vocabularies-types/vocabularies/UI");var et=ne(le());function la(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(la,"addEnumToSchema");function au(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let r=[];for(let s in i){let l=i[s];if(t.indexOf(l.term)>-1){let u=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(u)===-1&&r.push(u)}}la(r,n)}o(au,"addEnumForValidAnnotations");function $a(e,t,n){let i=t.definitions[n].properties[et.SchemaTag.annotationPath],r=[pr.UIAnnotationTerms.SelectionVariant,pr.UIAnnotationTerms.SelectionPresentationVariant];au(e,r,i)}o($a,"addEnumForSingleTabVariant");function E0(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[pr.UIAnnotationTerms.SelectionVariant,pr.UIAnnotationTerms.SelectionPresentationVariant];au(n.entityType,r,i)}o(E0,"addEnumForMultiTabVariant");function b0(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),la(r,i)}o(b0,"addEnumForVariantEntitySet");function A0(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[pr.UIAnnotationTerms.FieldGroup];au(e,r,i)}o(A0,"addEnumFieldGroupAnnotationPath");function S0(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],u=a.label||a.title;return{const:l,...u&&{description:u},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[et.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${$}${et.DefinitionName.RelatedFacetKeys}`},l]}}}}o(S0,"addDefinitionForRelatedFacetKeys");function ml(e){return e.replace("#","::")}o(ml,"getFacetKeyInSchema");function P0(e,t){return`${e}<${ml(t)}>`}o(P0,"getFacetDefinitionKey");function Tt(e,t,n,i=!0){let r=t;if(i&&(r=P0(e,t)),e&&e!==r)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[r]=a}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[r]}o(Tt,"parseSchemaDefinition");function dm(e,t,n){let i;return t===et.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${pr.UIAnnotationTerms.LineItem}`?i=`${$}${n}`:(i=`${$}${n}<${t}>`,Tt(n,t,e,!0)),i}o(dm,"getCustomExtensionDefinitionName");function rm(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][et.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let O=dm(t,r,a);t.definitions[r].additionalProperties={$ref:O}}let u=e?et.DefinitionName.ObjectPageToolBar:et.DefinitionName.ToolBar,p=`${u}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${u}`]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let g=`${et.DefinitionName.Actions}<${pt(r)}>`;t.definitions[p].properties.actions.$ref=$+g;let m=r.startsWith(et.DefinitionName.LineItems)?et.DefinitionName.Actions:et.DefinitionName.ObjectPageToolBarActions,T;try{if(T=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),T.properties={},T.additionalProperties=!1,s){let O=dm(t,r,s);T.additionalProperties={$ref:O}}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let A,E;if(r===et.DefinitionName.LineItems&&t.properties.footer){E=`${et.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${$}${E}`;try{t.definitions[E]=JSON.parse(JSON.stringify(t.definitions[et.DefinitionName.GenericFooter]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:et.DefinitionName.GenericFooter}))}let O=`${et.DefinitionName.FooterActions}<${pt(r)}>`;t.definitions[E].properties.actions.$ref=$+O,A=t.definitions[O]=JSON.parse(JSON.stringify(t.definitions[et.DefinitionName.Actions])),A.properties={},A.additionalProperties=!1}return n&&(l=ur(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][et.SchemaTag.annotationPath]=l,A&&(t.definitions[E][et.SchemaTag.annotationPath]=l))),{actions:T,footerActions:A,lineItemPath:l}}o(rm,"addCommonLineItemDefinitions");function x0(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(x0,"getDataTypeFromAnnotation");function ec(e){var n,i,r;let t;return e!=null&&e.Value?e.Visualization==="UI.VisualizationType/Rating"?t="Rating":e.Visualization==="UI.VisualizationType/Progress"?t="Progress":e.$Type==="com.sap.vocabularies.UI.v1.DataPointType"?t="DataPoint":t=(i=(n=e.Value)==null?void 0:n.$target)==null?void 0:i.type.replace("Edm.",""):(r=e==null?void 0:e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")&&(t=x0(e.$Type)),t}o(ec,"determineDataTypeOfTarget");function to(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=ec((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(r=e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")?t=x0(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(to,"determineDataType");function om(e,t){let n=to(t);n&&(e[et.SchemaTag.dataType]=n)}o(om,"addDataTypeToDefinition");function jn(e,t){return`${$}${P0(e,t)}`}o(jn,"getFacetDefinitionLink");function Ba(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${$}${i}`}o(Ba,"addDefinitionRef");function gm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${et.UIVOCABULARY}`);t=`/${n}/@${et.UIVOCABULARY}${i}`}return t}o(gm,"getFacetAnnotationPath");function su(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:jn(a?u:l,t)};let p=Tt(a?u:l,t,i,!0);ka(e,p,t),p[et.SchemaTag.annotationPath]=e.annotationPath,p[et.SchemaTag.isViewNode]=!0}o(su,"handleAddressContact");function bE(e,t,n){typeof e=="object"&&(e[t]=n)}o(bE,"updateSchemaProperty");function hl(e,t,n=pt("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${et.DefinitionName.Fields4Dialog}${n}`];bE(r.properties.fields.items,"enum",i)}o(hl,"addFieldsType");function l8(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(l8,"findFirstSchemaDefinitionKey");function mm(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let g=mn(t.$ref),m=(p=e.definitions)==null?void 0:p[g];typeof m=="object"&&(s=!m.annotationPath,i!=null&&i.resolveDefinition&&!r&&(r=m.description,a=m.keys))}let l=n,u=l8(a,i==null?void 0:i.keyProperties);return u?l=u.value:i!=null&&i.descriptionAsFallback&&r&&(l=r),{const:l,...r&&{description:r},...s&&{custom:s}}}o(mm,"getEnumEntry");function Ha(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let u=t.properties[l],p=mm(e,u,l,i);r.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];bE(l,"oneOf",r)}else bE(a,"oneOf",r)}o(Ha,"addDescriptiveEnumDefinition");function Zs(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),a=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,a),n=r>0?n.substring(r+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}o(Zs,"getActionKey");function am(e,t,n){var i,r,a;try{if(e.Value)t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.value,value:Js(e.Value)}];else if(e.$Type===pr.UIAnnotationTypes.DataFieldWithAction||e.$Type===pr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=Zs(e.Action,!0);t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.action,value:s}],l&&(t[n][et.SchemaTag.target]=l)}else if(e.$Type===pr.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=Zs(e.Target.value,!1);t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.target,value:fl(s)}],t[n][et.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===pr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===pr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=Zs(s,!0);t[n][et.SchemaTag.keys]=[{name:"SemanticObject",value:e[et.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][et.SchemaTag.target]=u)}}catch{return}}o(am,"addKeyToDefinition");var yl=ne(le());var C0=[{version:"1.124",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.102",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var O0="1.120.22";var N0={name:"@sap/ux-specification",version:O0,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">= 18.0.0 < 19.0.0 || >= 20.0.0 < 21.0.0 || >= 22.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/to-json-schema.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",iXiaSoftV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=iXiaSoft",iXiaSoftV4:"ts-node ./scripts/extractDocu.ts --version=v4 --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",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.31.7","@sap-ux/vocabularies-types":"0.11.4"},devDependencies:{"@sap-ux/annotation-converter":"0.9.6","@sap-ux/edmx-parser":"0.8.1","@sap/ux-specification-types":"1.120.22","@sapui5/types":"latest-1.120","@types/d3":"7.4.3","@types/jquery":"3.5.31","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.7.7",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.15.2",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.6.3","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 Ga=class Ga{constructor(){Ga.distTagsOfSpec.length===0&&(Ga.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Ga.distTagsOfSpec=[]}getSpecVersion(){return O0}getDistTagsOfVersion(){let t=[],n=C0,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let r=n.find(a=>a.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;let i=[];typeof t=="string"?i.push(t):Array.isArray(t)&&(i=t);let r=!1;if(i.forEach(a=>{if(!this.checkVersionName(a,n))return;let s=a==="latest"?"latest":a.substring(0,a.lastIndexOf("."));Ga.distTagsOfSpec.findIndex(l=>l.endsWith(s))>-1&&(r=!0)}),!r){let a=q.t("WRONGMINUI5VERSION",{minUI5Version:t});se(n,{severity:yl.LogSeverity.Warning,message:a,location:{path:yl.MANIFESTPATH}})}}checkVersionName(t,n){if(!t||t.startsWith("$")){let i=q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});return se(n,{severity:yl.LogSeverity.Info,message:i,location:{path:yl.MANIFESTPATH}}),!1}else return!0}};o(Ga,"DistTagEvaluator"),Ga.distTagsOfSpec=[];var cu=Ga;var fe=ne(le());var _n=ne(le());var bi=ne(le());function p8(e){var n;let t=(n=e.view.name)==null?void 0:n.split(".");return t[t.length-1]}o(p8,"getCustomPageName");function L0(e,t){var i,r;return((i=e==null?void 0:e.view)==null?void 0:i.viewType)||((r=t.settings)==null?void 0:r.viewType)||bi.ViewTypes.XML}o(L0,"getViewType");function d8(e,t){return L0(e,t).toLowerCase()}o(d8,"getViewTypeExtension");function g8(e,t,n){var p,g;let i=o(m=>{var T;return(T=m.split(`${t.id}.`)[1])==null?void 0:T.split(".")},"splitViewPath"),r=t.settings,a=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=(g=e.view)==null?void 0:g.name;s!=null&&s.includes(t.id)?n=i(s):a!=null&&a.includes(t.id)&&(n=[...i(a),...s.split(".")]);let[l,u]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:u}}o(g8,"getViewPath");function m8(e,t){let n=e.entitySet||p8(e),{viewPath:i,fileName:r}=g8(e,t,[n]),a=d8(e,t);return[...i,`${r}.view.${a}`].join("/")}o(m8,"getCustomPagePath");var AE=class AE{constructor(t,n,i,r){this.unhandledControllers=[];let a=Ft(bi.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...r&&{settings:r}},t.fioriElementsVersion?this.app.target={fioriElements:t.fioriElementsVersion,odata:t.oDataVersion}:t.oDataVersion&&(this.app.target.odata=t.oDataVersion),this.schemas=t.appSchemas,this.logger=t.logger}createConfigFiles(){var a;let t={},n={},i;for(let s in this.app.pages){i=this.app.pages[s];let l=((a=this.app.target)==null?void 0:a.odata)===bi.OdataVersion.v4?s:i.entitySet,u=this.getPageConfigFile(i,l);u&&(t[`${bi.DirName.Pages}/${s}.json`]=u)}let r=JSON.parse(JSON.stringify(this.app));for(let s in r.pages)delete r.pages[s].config;return n[bi.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=L0(t,this.app)===bi.ViewTypes.XML&&!!t.config;if(t.pageType===bi.PageTypeV4.CustomPage||t.pageType===bi.PageTypeV4.FPMCustomPage&&!r){let{path:s}=Ft(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(a=t.view)==null?void 0:a.id:void 0,l=Ft(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=Ft(t.pageType);i.$schema=u.path}}return(i&&t.pageType===bi.PageTypeV4.CustomPage||t.pageType===bi.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=m8(t,this.app);n.$filePath=i}};o(AE,"AppProvider");var Wa=AE;var He=ne(le());var tc=ne(le());function hm(e,t,n){if(t.controlType.endsWith(tc.DefinitionName.Table))e[t.propertyId]=t.newValue;else if(t.controlType===tc.ControlType.TableColumn){if(!(n==null?void 0:n.definitions[tc.DefinitionName.TableColumn]).properties[t.propertyId])return;let r=t.controlId.split("-"),s=r[r.length-1].split("template:::TableColumn:::"),l=s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",tc.VOCWITHCOLONS).replace("/",":2f");e.columns||(e.columns={}),e.columns[l]||(e.columns[l]={}),e.columns[l][t.propertyId]=t.newValue}}o(hm,"addFlexForTable");var vl=ne(le());var $n=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),R0=o((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2"),F0=o((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function SE(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(SE,"getNewPageTemplate");function h8(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(h8,"findPageInManifest");function y8(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=SE(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:SE(e[t].pageType)}),!Array.isArray(n.pages))){let i=h8(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=SE(e[t].pageType)),PE(t,e,i)}}o(y8,"transformPageFromAssociation");function v8(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let r=e.pages[i];if(((a=r.component)==null?void 0:a.name)===vl.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===vl.PageTypeV2.ListReport||n.pageType===vl.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(v8,"deletePage");function PE(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===vl.PageTypeV2.ListReport&&(n.component.list=!0),i.navigationProperty&&(n.navigationProperty=i.navigationProperty),i.defaultLayoutType?n.defaultLayoutType=i.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,i.navigation)){for(let r in i.navigation)y8(t,r,n);Array.isArray(n.pages)||v8(n,t,i)}}o(PE,"transformPageToNewManifestV2");var y1=ne(Ks());var dA={};Gs(dA,{ALPAnalyticalTable:()=>pb,ALPGridTable:()=>ub,ALPResponsiveTable:()=>fb,Action:()=>hb,AnalyticalCard:()=>Sl,AnalyticalCardSettings:()=>Em,AnalyticalCardSettingsv4:()=>LE,AnalyticalListPageFilterBar:()=>UE,AnalyticalTable:()=>lb,BaseCustomSection:()=>ju,ChartSettings:()=>Db,ChartSettingsType:()=>CE,CommonCardSettings:()=>Ya,CommonFilterBar:()=>Eu,CommonHeaderFacetSettings:()=>fc,CommonTableSettings:()=>es,CommonTableSettingsForSections:()=>mc,CreateWithFilters:()=>nb,CustomCard:()=>OE,DataLoadSettings:()=>rb,DateRange:()=>VE,DefaultDateRange:()=>ME,DefaultSpanObject:()=>IE,FRAGMENT_DEFINITION:()=>_o,Field:()=>DE,FieldForAction:()=>GE,Fields4Dialog:()=>ob,Fields4DialogOP:()=>sA,FooterAction:()=>vb,FormAction:()=>HE,GlobalChartSettings:()=>oA,GlobalTableSettings:()=>uA,GridTable:()=>db,HeaderActionStandard:()=>Sb,HeaderSections:()=>Bb,KPISettings:()=>Vb,LinkListCardSettings:()=>FE,LinklistCard:()=>yu,ListCard:()=>Al,ListCardSettings:()=>NE,ListReportFilterBar:()=>jE,MultiEdit:()=>ib,ObjectPageAnalyticalTable:()=>cA,ObjectPageChart:()=>rA,ObjectPageCustomSectionFragment:()=>$u,ObjectPageCustomSectionView:()=>Bu,ObjectPageFooterAction:()=>Gb,ObjectPageFooterActionStandard:()=>xb,ObjectPageGridTable:()=>lA,ObjectPageHeader:()=>Mb,ObjectPageHeaderAction:()=>wb,ObjectPageHeaderActionStandard:()=>Pb,ObjectPageHeaderSectionAddress:()=>$b,ObjectPageHeaderSectionChart:()=>Ub,ObjectPageHeaderSectionDataPoint:()=>jb,ObjectPageHeaderSectionForm:()=>kb,ObjectPageLayout:()=>Kb,ObjectPageResponsiveTable:()=>hc,ObjectPageSectionAddressV2:()=>zb,ObjectPageSectionChartV2:()=>qb,ObjectPageSectionContactV2:()=>Jb,ObjectPageSectionFormV2:()=>Qb,ObjectPageSectionTableV2:()=>Yb,ObjectPageSectionV2:()=>Xb,ObjectPageSubSectionChartV2:()=>tA,ObjectPageSubSectionContactV2:()=>nA,ObjectPageSubSectionFormV2:()=>eA,ObjectPageSubSectionTableV2:()=>iA,ObjectPageSubSectionV2:()=>Zb,ObjectPageToolBarAction:()=>pA,ObjectPageTreeTable:()=>fA,QuickVariantSelection:()=>ab,QuickVariantSelectionOP:()=>aA,QuickVariantSelectionX:()=>sb,ResponsiveTable:()=>oc,SAP_UI_TABLE:()=>Im,SaveAndEditOP:()=>Ab,SelectionFieldDateSettings:()=>wE,SelectionFields:()=>kE,Share:()=>Tb,ShareOP:()=>Eb,StackCard:()=>hu,StackCardSettings:()=>RE,TableALP:()=>Ol,TableCard:()=>Pl,TableCardSettings:()=>_E,TableColumn:()=>Ob,TableColumnAction:()=>Qm,TableColumnActionIntentBased:()=>Nb,TableCustomColumn:()=>Lb,ToolBar:()=>Fb,ToolBarAction:()=>yb,TreeTable:()=>cb,UpAndDownNavigationOP:()=>bb,buildIntentBasedActionId:()=>Cb,deleteColumnFromFragment:()=>Lm,deleteType:()=>Ll,exportColorPalette:()=>M0,exportCreateParametersFields:()=>km,exportCustomColumnsToFragment:()=>eb,exportDateSettingsField:()=>j0,exportDefaultSpan:()=>w0,exportType:()=>Nl,getChartSectionControlId:()=>p1,getContactSubSectionControlId:()=>g1,getCustomColumnPath:()=>Rm,getFormSectionControlId:()=>u1,getRootCustomColumnFromFragmentJSON:()=>Su,getSectionControlId:()=>dc,getSmartChartControlId:()=>Fu,getSmartTableControlId:()=>rc,getSubSectionControlId:()=>d1,getTableSectionControlId:()=>f1,importCreateParameters:()=>wm,importDateSettings:()=>$E});var zn=ne(le());var Ue=o(e=>`${zn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),kr=o(e=>Ue(e)+"/tableSettings","getTableSettingPathV2"),_0=o(e=>Ue(e)+"/chartSettings","getChartSettingPathV2"),D0=o(e=>Ue(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var En=o(()=>zn.ManifestSection.ovp,"getOVPsettingPath"),Ce=o(e=>{let t=[zn.ManifestSection.ovp];return e.forEach(n=>{n in zn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var nc=o((e,t)=>`${zn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Tm=o(e=>{let t=[zn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Ri=o(e=>{let t=[];return t.push(Tm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Xa=o(e=>Ri(e)+"/tableSettings","getGlobalTableSettingsPathV2"),io=o((e,t,n)=>{let i=[];i.push(Tm(e));let r=n.replace(zn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),dr=o((e,t,n)=>io(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),V0=o((e,t,n)=>io(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),xE=o(()=>`sap.ui5/extends/extensions/${zn.v2.SAPUI5_VIEW_EXTENSION}/${zn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),fa=o((e,t,n,...i)=>{let r="|",a=n.split(r),s=e[e.length-1].split(r),l="";a.length===4?l=[a[2],a[3]].join(r):a.length===3&&(l=a[2]);let u=[a[0],s[s.length-1],l].join(r);return i.unshift(u),`${xE()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),vm=class vm{};o(vm,"ApplicationV2"),h([kt("settings")],vm.prototype,"settings",2);var ym=vm,no=class no{};o(no,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],no.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],no.prototype,"description",2),h([y({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.50.0"})],no.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.46.0"})],no.prototype,"forceGlobalRefresh",2),h([y({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.74.0"})],no.prototype,"tableColumnVerticalAlignment",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"}),Ae("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],no.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],no.prototype,"draftDiscardConfirmationSettings",2),h([y({manifest:{path:o(()=>zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],no.prototype,"statePreservationMode",2);var Ka=no;var lu=ne(le());function T8(e){let t=e.colorPalette,n;if(Array.isArray(t))throw new Error("The array syntax for colorPalette is deprecated and not supported");return t[0]&&typeof t[0]=="object"?(n=t,n.colorPaletteType=lu.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=lu.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:lu.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(T8,"importColorPalette");function M0(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===lu.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(M0,"exportColorPalette");function w0(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(w0,"exportDefaultSpan");var bm=class bm{};o(bm,"ChartSettingsType"),h([y({manifest:{path:o(()=>En()+"/chartSettings","path")}})],bm.prototype,"showDataLabel",2);var CE=bm,Qa=class Qa{};o(Qa,"DefaultSpanObject"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qa.prototype,"cols",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qa.prototype,"rows",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qa.prototype,"showOnlyHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qa.prototype,"minimumTitleRow",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qa.prototype,"minimumSubTitleRow",2);var IE=Qa,Kt=class Kt{};o(Kt,"CommonCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"entitySet",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"title",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"subTitle",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"dataPointAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"selectionPresentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"kpiAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"category",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"dynamicSubtitleAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"showFilterInHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"sortBy",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"sortOrder",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"identificationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"selectionAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"presentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"enableLocaleCurrencyFormatting",2),h([y({manifest:{path:o(t=>Ce(t),"path"),export:w0}})],Kt.prototype,"defaultSpan",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"requireAppAuthorization",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"showSortingInHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"tabs",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"addODataSelect",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"showRefresh",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"customParams",2);var Ya=Kt,Tl=class Tl{};o(Tl,"CustomCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Tl.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Tl.prototype,"template",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Tl.prototype,"settings",2);var OE=Tl,qa=class qa extends Ya{};o(qa,"ListCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],qa.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],qa.prototype,"imageSupported",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],qa.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],qa.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],qa.prototype,"listType",2);var NE=qa,fu=class fu{};o(fu,"ListCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],fu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],fu.prototype,"template",2);var Al=fu,ro=class ro extends Ya{};o(ro,"AnalyticalCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ro.prototype,"chartAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ro.prototype,"ignoreSapText",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ro.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ro.prototype,"navigation",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ro.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ro.prototype,"chartProperties",2),h([y({manifest:{path:o(t=>Ce(t),"path"),import:T8,export:M0}})],ro.prototype,"colorPalette",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ro.prototype,"bEnableStableColors",2);var Em=ro,Am=class Am extends Em{};o(Am,"AnalyticalCardSettingsv4"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Am.prototype,"measureAggregate",2);var LE=Am,uu=class uu{};o(uu,"AnalyticalCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],uu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],uu.prototype,"template",2);var Sl=uu,El=class El extends Ya{};o(El,"StackCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],El.prototype,"itemText",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],El.prototype,"objectStreamCardsNavigationProperty",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],El.prototype,"objectStreamCardsSettings",2);var RE=El,pu=class pu{};o(pu,"StackCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],pu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],pu.prototype,"template",2);var hu=pu,bl=class bl extends Ya{};o(bl,"LinkListCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],bl.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],bl.prototype,"headerAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],bl.prototype,"staticContent",2);var FE=bl,du=class du{};o(du,"LinklistCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],du.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],du.prototype,"template",2);var yu=du,gu=class gu extends Ya{};o(gu,"TableCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],gu.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],gu.prototype,"enableAddToInsights",2);var _E=gu,mu=class mu{};o(mu,"TableCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],mu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],mu.prototype,"template",2);var Pl=mu;var k0=ne(le());var E8=o((e,t,n,i,r)=>{let a=Qn(n[1],r),s=n.slice(-1)[0];return qt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Sm=class Sm{};o(Sm,"Field"),h([y({flex:{controlId:E8,controlType:o(()=>k0.ControlType.GroupElement,"controlType")},generate:gt})],Sm.prototype,"visible",2);var DE=Sm;var ic=ne(le());function $E(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),delete t.fields,t}o($E,"importDateSettings");function b8(e,t,n){let i=e!=null&&e[n]?JSON.parse(JSON.stringify(e==null?void 0:e[n])):void 0,r;return n==="selectedValues"&&typeof i=="string"&&(r=i.split(",")),n==="filter"&&typeof i=="object"&&(r=[],i.forEach((a,s)=>{r[s]=a,a.equals&&typeof a.equals=="string"&&(r[s].equals=a.equals.split(","))})),r}o(b8,"importDateSettingsField");function j0(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];if(n==="selectedValues"&&(e[n]=i.join()),n==="filter")for(let r in i){let a=i[r];e[n][r]=a,a.equals&&Array.isArray(a.equals)&&(e[n][r].equals=a.equals.join())}}o(j0,"exportDateSettingsField");var xl=class xl{};o(xl,"DateRange"),h([y({manifest:{path:o(t=>Ue(t)+ic.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],xl.prototype,"useDateRange",2),h([y({manifest:{path:o(t=>Ue(t)+ic.DATESETTINGSPATH,"path"),import:$E,export:jg}}),x({since:"1.77.0"})],xl.prototype,"selectedValues",2),h([y({manifest:{path:o(t=>Ue(t)+ic.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],xl.prototype,"exclude",2);var VE=xl,Pm={controlId:qt,controlType:o(()=>ic.ControlType.SmartFilterBar,"controlType")},vu={path:o((e,t,n)=>`${Ue(e)}${ic.DATESETTINGSPATH}/fields/${n}`,"path")},U0={...vu,import:b8,export:j0},xm=class xm{};o(xm,"DefaultDateRange"),h([y({manifest:vu}),x({since:"1.90.0"})],xm.prototype,"operation",2);var ME=xm,za=class za{};o(za,"SelectionFieldDateSettings"),h([y({manifest:U0}),x({since:"1.77.0"})],za.prototype,"selectedValues",2),h([y({manifest:vu}),x({since:"1.77.0"})],za.prototype,"exclude",2),h([y({manifest:vu}),x({since:"1.77.0"})],za.prototype,"customDateRangeImplementation",2),h([y({manifest:U0}),x({since:"1.77.0"})],za.prototype,"filter",2),h([y({manifest:vu}),x({since:"1.90.0"})],za.prototype,"defaultValue",2);var wE=za,BE=class BE{};o(BE,"SelectionFields");var kE=BE,oo=class oo{};o(oo,"CommonFilterBar"),h([y({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.38.0"})],oo.prototype,"smartVariantManagement",2),h([y({flex:Pm}),x({since:"1.40.0"})],oo.prototype,"liveMode",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.48.0"})],oo.prototype,"variantManagementHidden",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.52.0"})],oo.prototype,"subTitleIfVariantMgmtHidden",2),h([y({manifest:{path:o(t=>Ue(t)+"/filterSettings","path"),import:$E}}),x({since:"1.77.0"})],oo.prototype,"dateSettings",2),h([y({flex:Pm}),x({since:"1.28.0"})],oo.prototype,"showClearOnFB",2),h([y({flex:Pm}),x({since:"1.38.0"})],oo.prototype,"showFilterConfiguration",2),h([y({flex:Pm}),x({since:"1.28.0"})],oo.prototype,"showRestoreOnFB",2);var Eu=oo,Tu=class Tu extends Eu{};o(Tu,"AnalyticalListPageFilterBar"),h([y({manifest:{path:o(t=>Ue(t),"path")}})],Tu.prototype,"showGoButtonOnFilterBar",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.60.0"})],Tu.prototype,"filterDefaultsFromSelectionVariant",2);var UE=Tu,Cm=class Cm extends Eu{};o(Cm,"ListReportFilterBar"),h([y({manifest:{path:o(t=>Ue(t),"path")}}),Ae("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),x({since:"1.86.0"})],Cm.prototype,"annotationPath",2);var jE=Cm;var WE=ne(le());var A8=o((e,t,n,i,r)=>{if(i()===WE.ControlType.Button){let a=n[n.length-1],s=Qn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return qt(e,t)},"getFormActionButtonId"),Fo={controlId:A8,controlType:o(()=>WE.ControlType.Button,"controlType")},Ja=class Ja{};o(Ja,"FormAction"),h([y({flex:Fo,generate:gt})],Ja.prototype,"visible",2),h([y({flex:Fo})],Ja.prototype,"tooltip",2),h([y({flex:Fo})],Ja.prototype,"icon",2),h([y({flex:Fo})],Ja.prototype,"activeIcon",2),h([y({flex:Fo})],Ja.prototype,"type",2);var HE=Ja,Za=class Za{};o(Za,"FieldForAction"),h([y({flex:Fo,generate:gt})],Za.prototype,"visible",2),h([y({flex:Fo})],Za.prototype,"tooltip",2),h([y({flex:Fo})],Za.prototype,"icon",2),h([y({flex:Fo})],Za.prototype,"activeIcon",2),h([y({flex:Fo}),x({since:"1.73.0"})],Za.prototype,"type",2);var GE=Za;var Et=ne(le()),ao=ne(Ks());var qE=require("path"),j8=ne(le()),Z0=ne(J0()),e1=require("fs");var $8=(0,qE.join)(__dirname,"templates");var B8=o((e,t)=>{let n=(0,e1.readFileSync)(e,"utf8");return(0,Z0.render)(n,t)},"renderTemplate");var YE=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return B8((0,qE.join)($8,t+".xml"),n)},"getSingleColumnContent"),zE=o((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let i of e){let r=YE(i,t);n=n+`
|
|
288
|
+
}`;var et=SO(function(){return St(x,Ne+"return "+ee).apply(e,L)});if(et.source=ee,sT(et))throw et;return et}o(H4,"template");function G4(c){return Ot(c).toLowerCase()}o(G4,"toLower");function W4(c){return Ot(c).toUpperCase()}o(W4,"toUpper");function K4(c,f,d){if(c=Ot(c),c&&(d||f===e))return Fx(c);if(!c||!(f=sr(f)))return c;var v=zr(c),b=zr(f),x=_x(v,b),L=Dx(v,b)+1;return wa(v,x,L).join("")}o(K4,"trim");function X4(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.slice(0,wx(c)+1);if(!c||!(f=sr(f)))return c;var v=zr(c),b=Dx(v,zr(f))+1;return wa(v,0,b).join("")}o(X4,"trimEnd");function Q4(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.replace(sv,"");if(!c||!(f=sr(f)))return c;var v=zr(c),b=_x(v,zr(f));return wa(v,b).join("")}o(Q4,"trimStart");function q4(c,f){var d=_,v=ut;if(mn(f)){var b="separator"in f?f.separator:b;d="length"in f?Ze(f.length):d,v="omission"in f?sr(f.omission):v}c=Ot(c);var x=c.length;if(Gc(c)){var L=zr(c);x=L.length}if(d>=x)return c;var R=d-Wc(v);if(R<1)return v;var M=L?wa(L,0,R).join(""):c.slice(0,R);if(b===e)return M+v;if(L&&(R+=M.length-R),cT(b)){if(c.slice(R).search(b)){var z,J=M;for(b.global||(b=Pv(b.source,Ot(ex.exec(b))+"g")),b.lastIndex=0;z=b.exec(J);)var ee=z.index;M=M.slice(0,ee===e?R:ee)}}else if(c.indexOf(sr(b),R)!=R){var ge=M.lastIndexOf(b);ge>-1&&(M=M.slice(0,ge))}return M+v}o(q4,"truncate");function Y4(c){return c=Ot(c),c&&Ce.test(c)?c.replace(me,P2):c}o(Y4,"unescape");var z4=zc(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),uT=PI("toUpperCase");function AO(c,f,d){return c=Ot(c),f=d?e:f,f===e?T2(c)?I2(c):l2(c):c.match(f)||[]}o(AO,"words");var SO=it(function(c,f){try{return or(c,e,f)}catch(d){return sT(d)?d:new He(d)}}),J4=Jo(function(c,f){return Lr(f,function(d){d=So(d),Yo(c,d,oT(c[d],c))}),c});function Z4(c){var f=c==null?0:c.length,d=Ve();return c=f?fn(c,function(v){if(typeof v[1]!="function")throw new Rr(r);return[d(v[0]),v[1]]}):[],it(function(v){for(var b=-1;++b<f;){var x=c[b];if(or(x[0],this,v))return or(x[1],this,v)}})}o(Z4,"cond");function eB(c){return Pk(_r(c,p))}o(eB,"conforms");function pT(c){return function(){return c}}o(pT,"constant");function tB(c,f){return c==null||c!==c?f:c}o(tB,"defaultTo");var nB=xI(),iB=xI(!0);function Ki(c){return c}o(Ki,"identity");function dT(c){return nI(typeof c=="function"?c:_r(c,p))}o(dT,"iteratee");function rB(c){return rI(_r(c,p))}o(rB,"matches");function oB(c,f){return oI(c,_r(f,p))}o(oB,"matchesProperty");var aB=it(function(c,f){return function(d){return Bf(d,c,f)}}),sB=it(function(c,f){return function(d){return Bf(c,d,f)}});function gT(c,f,d){var v=Qn(f),b=jd(f,v);d==null&&!(mn(f)&&(b.length||!v.length))&&(d=f,f=c,c=this,b=jd(f,Qn(f)));var x=!(mn(d)&&"chain"in d)||!!d.chain,L=ea(c);return Lr(b,function(R){var M=f[R];c[R]=M,L&&(c.prototype[R]=function(){var z=this.__chain__;if(x||z){var J=c(this.__wrapped__),ee=J.__actions__=Hi(this.__actions__);return ee.push({func:M,args:arguments,thisArg:c}),J.__chain__=z,J}return M.apply(c,Na([this.value()],arguments))})}),c}o(gT,"mixin");function cB(){return Xn._===this&&(Xn._=_2),this}o(cB,"noConflict");function mT(){}o(mT,"noop");function lB(c){return c=Ze(c),it(function(f){return aI(f,c)})}o(lB,"nthArg");var fB=Kv(fn),uB=Kv(Ix),pB=Kv(yv);function PO(c){return Zv(c)?vv(So(c)):$k(c)}o(PO,"property");function dB(c){return function(f){return c==null?e:$s(c,f)}}o(dB,"propertyOf");var gB=OI(),mB=OI(!0);function hT(){return[]}o(hT,"stubArray");function yT(){return!1}o(yT,"stubFalse");function hB(){return{}}o(hB,"stubObject");function yB(){return""}o(yB,"stubString");function vB(){return!0}o(vB,"stubTrue");function TB(c,f){if(c=Ze(c),c<1||c>Re)return[];var d=Mt,v=hi(c,Mt);f=Ve(f),c-=Mt;for(var b=bv(v,f);++d<c;)f(d);return b}o(TB,"times");function EB(c){return Xe(c)?fn(c,So):cr(c)?[c]:Hi(GI(Ot(c)))}o(EB,"toPath");function bB(c){var f=++R2;return Ot(c)+f}o(bB,"uniqueId");var AB=Kd(function(c,f){return c+f},0),SB=Xv("ceil"),PB=Kd(function(c,f){return c/f},1),CB=Xv("floor");function xB(c){return c&&c.length?Ud(c,Ki,Fv):e}o(xB,"max");function IB(c,f){return c&&c.length?Ud(c,Ve(f,2),Fv):e}o(IB,"maxBy");function OB(c){return Lx(c,Ki)}o(OB,"mean");function NB(c,f){return Lx(c,Ve(f,2))}o(NB,"meanBy");function LB(c){return c&&c.length?Ud(c,Ki,wv):e}o(LB,"min");function RB(c,f){return c&&c.length?Ud(c,Ve(f,2),wv):e}o(RB,"minBy");var FB=Kd(function(c,f){return c*f},1),_B=Xv("round"),DB=Kd(function(c,f){return c-f},0);function VB(c){return c&&c.length?Ev(c,Ki):0}o(VB,"sum");function wB(c,f){return c&&c.length?Ev(c,Ve(f,2)):0}return o(wB,"sumBy"),P.after=i$,P.ary=tO,P.assign=G$,P.assignIn=mO,P.assignInWith=og,P.assignWith=W$,P.at=K$,P.before=nO,P.bind=oT,P.bindAll=J4,P.bindKey=iO,P.castArray=m$,P.chain=JI,P.chunk=PU,P.compact=CU,P.concat=xU,P.cond=Z4,P.conforms=eB,P.constant=pT,P.countBy=Dj,P.create=X$,P.curry=rO,P.curryRight=oO,P.debounce=aO,P.defaults=Q$,P.defaultsDeep=q$,P.defer=r$,P.delay=o$,P.difference=IU,P.differenceBy=OU,P.differenceWith=NU,P.drop=LU,P.dropRight=RU,P.dropRightWhile=FU,P.dropWhile=_U,P.fill=DU,P.filter=wj,P.flatMap=Uj,P.flatMapDeep=jj,P.flatMapDepth=$j,P.flatten=QI,P.flattenDeep=VU,P.flattenDepth=wU,P.flip=a$,P.flow=nB,P.flowRight=iB,P.fromPairs=MU,P.functions=n4,P.functionsIn=i4,P.groupBy=Bj,P.initial=UU,P.intersection=jU,P.intersectionBy=$U,P.intersectionWith=BU,P.invert=o4,P.invertBy=a4,P.invokeMap=Gj,P.iteratee=dT,P.keyBy=Wj,P.keys=Qn,P.keysIn=Wi,P.map=Zd,P.mapKeys=c4,P.mapValues=l4,P.matches=rB,P.matchesProperty=oB,P.memoize=tg,P.merge=f4,P.mergeWith=hO,P.method=aB,P.methodOf=sB,P.mixin=gT,P.negate=ng,P.nthArg=lB,P.omit=u4,P.omitBy=p4,P.once=s$,P.orderBy=Kj,P.over=fB,P.overArgs=c$,P.overEvery=uB,P.overSome=pB,P.partial=aT,P.partialRight=sO,P.partition=Xj,P.pick=d4,P.pickBy=yO,P.property=PO,P.propertyOf=dB,P.pull=KU,P.pullAll=YI,P.pullAllBy=XU,P.pullAllWith=QU,P.pullAt=qU,P.range=gB,P.rangeRight=mB,P.rearg=l$,P.reject=Yj,P.remove=YU,P.rest=f$,P.reverse=iT,P.sampleSize=Jj,P.set=m4,P.setWith=h4,P.shuffle=Zj,P.slice=zU,P.sortBy=n$,P.sortedUniq=rj,P.sortedUniqBy=oj,P.split=j4,P.spread=u$,P.tail=aj,P.take=sj,P.takeRight=cj,P.takeRightWhile=lj,P.takeWhile=fj,P.tap=Cj,P.throttle=p$,P.thru=Jd,P.toArray=pO,P.toPairs=vO,P.toPairsIn=TO,P.toPath=EB,P.toPlainObject=gO,P.transform=y4,P.unary=d$,P.union=uj,P.unionBy=pj,P.unionWith=dj,P.uniq=gj,P.uniqBy=mj,P.uniqWith=hj,P.unset=T4,P.unzip=rT,P.unzipWith=zI,P.update=E4,P.updateWith=b4,P.values=el,P.valuesIn=A4,P.without=yj,P.words=AO,P.wrap=g$,P.xor=vj,P.xorBy=Tj,P.xorWith=Ej,P.zip=bj,P.zipObject=Aj,P.zipObjectDeep=Sj,P.zipWith=Pj,P.entries=vO,P.entriesIn=TO,P.extend=mO,P.extendWith=og,gT(P,P),P.add=AB,P.attempt=SO,P.camelCase=x4,P.capitalize=EO,P.ceil=SB,P.clamp=S4,P.clone=h$,P.cloneDeep=v$,P.cloneDeepWith=T$,P.cloneWith=y$,P.conformsTo=E$,P.deburr=bO,P.defaultTo=tB,P.divide=PB,P.endsWith=I4,P.eq=Zr,P.escape=O4,P.escapeRegExp=N4,P.every=Vj,P.find=Mj,P.findIndex=KI,P.findKey=Y$,P.findLast=kj,P.findLastIndex=XI,P.findLastKey=z$,P.floor=CB,P.forEach=ZI,P.forEachRight=eO,P.forIn=J$,P.forInRight=Z$,P.forOwn=e4,P.forOwnRight=t4,P.get=lT,P.gt=b$,P.gte=A$,P.has=r4,P.hasIn=fT,P.head=qI,P.identity=Ki,P.includes=Hj,P.indexOf=kU,P.inRange=P4,P.invoke=s4,P.isArguments=Gs,P.isArray=Xe,P.isArrayBuffer=S$,P.isArrayLike=Gi,P.isArrayLikeObject=In,P.isBoolean=P$,P.isBuffer=Ma,P.isDate=C$,P.isElement=x$,P.isEmpty=I$,P.isEqual=O$,P.isEqualWith=N$,P.isError=sT,P.isFinite=L$,P.isFunction=ea,P.isInteger=cO,P.isLength=ig,P.isMap=lO,P.isMatch=R$,P.isMatchWith=F$,P.isNaN=_$,P.isNative=D$,P.isNil=w$,P.isNull=V$,P.isNumber=fO,P.isObject=mn,P.isObjectLike=Tn,P.isPlainObject=Qf,P.isRegExp=cT,P.isSafeInteger=M$,P.isSet=uO,P.isString=rg,P.isSymbol=cr,P.isTypedArray=Zc,P.isUndefined=k$,P.isWeakMap=U$,P.isWeakSet=j$,P.join=HU,P.kebabCase=L4,P.last=Vr,P.lastIndexOf=GU,P.lowerCase=R4,P.lowerFirst=F4,P.lt=$$,P.lte=B$,P.max=xB,P.maxBy=IB,P.mean=OB,P.meanBy=NB,P.min=LB,P.minBy=RB,P.stubArray=hT,P.stubFalse=yT,P.stubObject=hB,P.stubString=yB,P.stubTrue=vB,P.multiply=FB,P.nth=WU,P.noConflict=cB,P.noop=mT,P.now=eg,P.pad=_4,P.padEnd=D4,P.padStart=V4,P.parseInt=w4,P.random=C4,P.reduce=Qj,P.reduceRight=qj,P.repeat=M4,P.replace=k4,P.result=g4,P.round=_B,P.runInContext=w,P.sample=zj,P.size=e$,P.snakeCase=U4,P.some=t$,P.sortedIndex=JU,P.sortedIndexBy=ZU,P.sortedIndexOf=ej,P.sortedLastIndex=tj,P.sortedLastIndexBy=nj,P.sortedLastIndexOf=ij,P.startCase=$4,P.startsWith=B4,P.subtract=DB,P.sum=VB,P.sumBy=wB,P.template=H4,P.times=TB,P.toFinite=ta,P.toInteger=Ze,P.toLength=dO,P.toLower=G4,P.toNumber=wr,P.toSafeInteger=H$,P.toString=Ot,P.toUpper=W4,P.trim=K4,P.trimEnd=X4,P.trimStart=Q4,P.truncate=q4,P.unescape=Y4,P.uniqueId=bB,P.upperCase=z4,P.upperFirst=uT,P.each=ZI,P.eachRight=eO,P.first=qI,gT(P,function(){var c={};return bo(P,function(f,d){Ft.call(P.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),P.VERSION=t,Lr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),Lr(["drop","take"],function(c,f){pt.prototype[c]=function(d){d=d===e?1:jn(Ze(d),0);var v=this.__filtered__&&!f?new pt(this):this.clone();return v.__filtered__?v.__takeCount__=hi(d,v.__takeCount__):v.__views__.push({size:hi(d,Mt),type:c+(v.__dir__<0?"Right":"")}),v},pt.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),Lr(["filter","map","takeWhile"],function(c,f){var d=f+1,v=d==an||d==en;pt.prototype[c]=function(b){var x=this.clone();return x.__iteratees__.push({iteratee:Ve(b,3),type:d}),x.__filtered__=x.__filtered__||v,x}}),Lr(["head","last"],function(c,f){var d="take"+(f?"Right":"");pt.prototype[c]=function(){return this[d](1).value()[0]}}),Lr(["initial","tail"],function(c,f){var d="drop"+(f?"":"Right");pt.prototype[c]=function(){return this.__filtered__?new pt(this):this[d](1)}}),pt.prototype.compact=function(){return this.filter(Ki)},pt.prototype.find=function(c){return this.filter(c).head()},pt.prototype.findLast=function(c){return this.reverse().find(c)},pt.prototype.invokeMap=it(function(c,f){return typeof c=="function"?new pt(this):this.map(function(d){return Bf(d,c,f)})}),pt.prototype.reject=function(c){return this.filter(ng(Ve(c)))},pt.prototype.slice=function(c,f){c=Ze(c);var d=this;return d.__filtered__&&(c>0||f<0)?new pt(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=Ze(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},pt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},pt.prototype.toArray=function(){return this.take(Mt)},bo(pt.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),v=/^(?:head|last)$/.test(f),b=P[v?"take"+(f=="last"?"Right":""):f],x=v||/^find/.test(f);b&&(P.prototype[f]=function(){var L=this.__wrapped__,R=v?[1]:arguments,M=L instanceof pt,z=R[0],J=M||Xe(L),ee=o(function(ct){var gt=b.apply(P,Na([ct],R));return v&&ge?gt[0]:gt},"interceptor");J&&d&&typeof z=="function"&&z.length!=1&&(M=J=!1);var ge=this.__chain__,Ne=!!this.__actions__.length,Me=x&&!ge,et=M&&!Ne;if(!x&&J){L=et?L:new pt(this);var ke=c.apply(L,R);return ke.__actions__.push({func:Jd,args:[ee],thisArg:e}),new Fr(ke,ge)}return Me&&et?c.apply(this,R):(ke=this.thru(ee),Me?v?ke.value()[0]:ke.value():ke)})}),Lr(["pop","push","shift","sort","splice","unshift"],function(c){var f=Pd[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",v=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var b=arguments;if(v&&!this.__chain__){var x=this.value();return f.apply(Xe(x)?x:[],b)}return this[d](function(L){return f.apply(Xe(L)?L:[],b)})}}),bo(pt.prototype,function(c,f){var d=P[f];if(d){var v=d.name+"";Ft.call(Qc,v)||(Qc[v]=[]),Qc[v].push({name:f,func:d})}}),Qc[Wd(e,O).name]=[{name:"wrapper",func:e}],pt.prototype.clone=q2,pt.prototype.reverse=Y2,pt.prototype.value=z2,P.prototype.at=xj,P.prototype.chain=Ij,P.prototype.commit=Oj,P.prototype.next=Nj,P.prototype.plant=Rj,P.prototype.reverse=Fj,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=_j,P.prototype.first=P.prototype.head,Vf&&(P.prototype[Vf]=Lj),P},"runInContext"),Ra=O2();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Xn._=Ra,define(function(){return Ra})):ws?((ws.exports=Ra)._=Ra,dv._=Ra):Xn._=Ra}).call(Zl)});var cV=Ye((Ice,sV)=>{var{findIndex:r9}=Cp();function o9(e,t){let i=r9(e,a=>a.endOffset===t),r=!1;for(;r===!1;){i++;let a=e[i];if(a===void 0)return null;if(a.tokenType.name!=="SEA_WS")return a}}o(o9,"findNextTextualToken");sV.exports={findNextTextualToken:o9}});var uV=Ye((Nce,fV)=>{var lV=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function a9({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(lV);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(a9,"isXMLNamespaceKey");function s9(e){if(typeof e!="string")return;let t=e.match(lV);if(t!==null)return t.groups&&t.groups.prefix||""}o(s9,"getXMLNamespaceKeyPrefix");fV.exports={isXMLNamespaceKey:a9,getXMLNamespaceKeyPrefix:s9}});var dV=Ye((Rce,pV)=>{var{findNextTextualToken:c9}=cV(),{isXMLNamespaceKey:l9,getXMLNamespaceKeyPrefix:f9}=uV();pV.exports={findNextTextualToken:c9,isXMLNamespaceKey:l9,getXMLNamespaceKeyPrefix:f9}});var yS=Ye((Fce,mV)=>{var{reduce:u9,has:gV,isArray:p9}=Cp();function d9(e){return u9(e,(n,i,r)=>(r==="parent"||(gV(i,"type")?n.push(i):p9(i)&&i.length>0&&gV(i[0],"type")&&(n=n.concat(i))),n),[])}o(d9,"getAstChildrenReflective");mV.exports={getAstChildrenReflective:d9}});var vS=Ye((Dce,hV)=>{hV.exports={DEFAULT_NS:"::DEFAULT"}});var PV=Ye((Vce,SV)=>{var{BaseXmlCstVisitor:g9}=hS(),{last:m9,forEach:EV,reduce:h9,map:xp,pick:ES,sortBy:y9,isEmpty:v9,isArray:bV,assign:T9}=Cp(),{findNextTextualToken:E9,isXMLNamespaceKey:b9,getXMLNamespaceKeyPrefix:A9}=dV(),{getAstChildrenReflective:S9}=yS(),{DEFAULT_NS:P9}=vS();function C9(e,t){yV.setState({tokenVector:t});let n=yV.visit(e);return n.rootElement!==Fc&&AV(n.rootElement),n}o(C9,"buildAst");var bS=class bS extends g9{constructor(){super()}setState({tokenVector:t}){this.tokenVector=t}visit(t,n={}){return super.visit(t,{location:t.location,...n})}document(t,{location:n}){let i={type:"XMLDocument",rootElement:Fc,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&v9(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),Ay(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=xp(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),Ay(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=xp(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=xp(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:Fc,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=xp(t.attribute,this.visit.bind(this))),t.content!==void 0){let{elements:r,textContents:a}=this.visit(t.content[0]);i.subElements=r,i.textContents=a}return O9(i,t),N9(i,t),L9(i,t,this.tokenVector),Ay(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:Fc,value:Fc,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=Sy(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=x9(a.image),r.syntax.value=Sy(a)}return Ay(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:Fc},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=y9(r,["startOffset"]),s=xp(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(bS,"CstToAstVisitor");var TS=bS,yV=new TS;function Ay(e){let t=S9(e);EV(t,n=>n.parent=e)}o(Ay,"setChildrenParent");function AV(e,t=[]){let n=h9(e.attributes,(r,a)=>{if(a.key!==Fc&&b9({key:a.key,includeEmptyPrefix:!1})===!0){let s=A9(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[P9]=l}}return r},{}),i=Object.create(null);e.namespaces=T9(i,t,n),EV(e.subElements,r=>AV(r,e.namespaces))}o(AV,"updateNamespaces");function Sy(e){return ES(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(Sy,"toXMLToken");function vV(e){return ES(e,["startOffset","startLine","startColumn"])}o(vV,"startOfXMLToken");function TV(e){return ES(e,["endOffset","endLine","endColumn"])}o(TV,"endOfXMLToken");function Sa(e){return bV(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(Sa,"exists");function x9(e){return e.substring(1,e.length-1)}o(x9,"stripQuotes");function I9(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(I9,"nsToParts");var Fc=null;function O9(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=Sy(n);let i=I9(n.image);i!==null?(e.ns=i.ns,e.name=i.name):e.name=n.image}t.END_NAME!==void 0&&t.END_NAME[0].isInsertedInRecovery!==!0&&(e.syntax.closeName=Sy(t.END_NAME[0]))}o(O9,"handleElementOpenCloseNameRanges");function N9(e,t){if(Sa(t.OPEN)){let n;Sa(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Sa(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...vV(t.OPEN[0]),...TV(n)}),Sa(t.SLASH_OPEN)&&Sa(t.END)&&(e.syntax.closeBody={...vV(t.SLASH_OPEN[0]),...TV(t.END[0])})}}o(N9,"handleElementOpenCloseBodyRanges");function L9(e,t,n){if(Sa(t.Name)){let i=t.Name[0].endOffset+2;if(Sa(t.START_CLOSE)||Sa(t.SLASH_CLOSE)){let r=(Sa(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=bV(t.attribute)?m9(t.attribute).location.endOffset:t.Name[0].endOffset,s=E9(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(L9,"handleElementAttributeRanges");SV.exports={buildAst:C9}});var IV=Ye((Mce,xV)=>{var{forEach:R9,isFunction:ef}=Cp(),{getAstChildrenReflective:F9}=yS();function CV(e,t){switch(e.type){case"XMLDocument":{ef(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{ef(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{ef(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{ef(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{ef(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{ef(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=F9(e);R9(n,i=>{CV(i,t)})}o(CV,"accept");xV.exports={accept:CV}});var NV=Ye((Uce,OV)=>{var{buildAst:_9}=PV(),{accept:D9}=IV(),{DEFAULT_NS:V9}=vS();OV.exports={buildAst:_9,accept:D9,DEFAULT_NS:V9}});var Vi={};Ws(Vi,{deleteConfigEntityByPath:()=>ZY,exportConfig:()=>zY,exportConfigEntityByPath:()=>JY,generateCustomExtension:()=>XC,generateSchema:()=>YY,getApiVersion:()=>iz,getChanges:()=>uM,getGenericSchema:()=>iv,getPathToGenericSchema:()=>Sw,getProject:()=>cz,importConfig:()=>ez,importProject:()=>tz,importProjectSchema:()=>nz,isDirectory:()=>oz,log:()=>se,prompts:()=>qY,readDirectory:()=>ZC});module.exports=sg(Vi);var pe=ne(le());var G=ne(le());var Ge=o(e=>typeof e=="string","isString"),qf=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),sR=o(e=>e==null?"":""+e,"makeString"),y5=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),v5=/###/g,cR=o(e=>e&&e.indexOf("###")>-1?e.replace(v5,"."):e,"cleanKey"),lR=o(e=>!e||Ge(e),"canNotTraverseDeeper"),Yf=o((e,t,n)=>{let i=Ge(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(lR(e))return{};let a=cR(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return lR(e)?{}:{obj:e,k:cR(i[r])}},"getLastOfPath"),fR=o((e,t,n)=>{let{obj:i,k:r}=Yf(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=Yf(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=Yf(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),T5=o((e,t,n,i)=>{let{obj:r,k:a}=Yf(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),lg=o((e,t)=>{let{obj:n,k:i}=Yf(e,t);if(n)return n[i]},"getPath"),E5=o((e,t,n)=>{let i=lg(e,n);return i!==void 0?i:lg(t,n)},"getPathWithDefaults"),hR=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?Ge(e[i])||e[i]instanceof String||Ge(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):hR(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),nl=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),b5={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},A5=o(e=>Ge(e)?e.replace(/[&<>"'\/]/g,t=>b5[t]):e,"escape"),_T=class _T{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let n=this.regExpMap.get(t);if(n!==void 0)return n;let i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}};o(_T,"RegExpCache");var xT=_T,S5=[" ",",","?","!",";"],P5=new xT(20),C5=o((e,t,n)=>{t=t||"",n=n||"";let i=S5.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=P5.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),IT=o(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let u=a;u<i.length;++u)if(u!==a&&(l+=n),l+=i[u],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<i.length-1)continue;a+=u-a+1;break}r=s}return r},"deepFind"),fg=o(e=>e&&e.replace("_","-"),"getCleanedCode"),x5={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)}},zf=class zf{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||x5,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(Ge(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new zf(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new zf(this.logger,t)}};o(zf,"Logger");var OT=zf,Po=new OT,DT=class DT{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l.apply(l,[t,...i])})}};o(DT,"EventEmitter");var rl=DT,VT=class VT extends rl{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):Ge(i)&&a?l.push(...i.split(a)):l.push(i)));let u=lg(this.data,l);return!u&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),u||!s||!Ge(i)?u:IT(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),fR(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(Ge(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let u=lg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?hR(u,i,a):u={...u,...i},fR(this.data,l,u),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(VT,"ResourceStore");var ug=VT,yR={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,r))}),t}},uR={},mg=class mg extends rl{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),y5(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Po.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let i=this.resolve(t,n);return i&&i.res!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!C5(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return Ge(a)&&(a=[a]),{key:t,namespaces:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),u=l[l.length-1],p=n.lng||this.language,g=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){let ae=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${ae}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${ae}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s}let m=this.resolve(t,n),T=m&&m.res,A=m&&m.usedKey||s,E=m&&m.exactUsedKey||s,O=Object.prototype.toString.apply(T),F=["[object Number]","[object Function]","[object RegExp]"],U=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,K=!this.i18nFormat||this.i18nFormat.handleAsObject,j=!Ge(T)&&typeof T!="boolean"&&typeof T!="number";if(K&&T&&j&&F.indexOf(O)<0&&!(Ge(U)&&Array.isArray(T))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let ae=this.options.returnedObjectHandler?this.options.returnedObjectHandler(A,T,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(m.res=ae,m.usedParams=this.getUsedParamsDetails(n),m):ae}if(a){let ae=Array.isArray(T),Z=ae?[]:{},re=ae?E:A;for(let Pe in T)if(Object.prototype.hasOwnProperty.call(T,Pe)){let _=`${re}${a}${Pe}`;Z[Pe]=this.translate(_,{...n,joinArrays:!1,ns:l}),Z[Pe]===_&&(Z[Pe]=T[Pe])}T=Z}}else if(K&&Ge(U)&&Array.isArray(T))T=T.join(U),T&&(T=this.extendTranslation(T,t,n,i));else{let ae=!1,Z=!1,re=n.count!==void 0&&!Ge(n.count),Pe=mg.hasDefaultValue(n),_=re?this.pluralResolver.getSuffix(p,n.count,n):"",ut=n.ordinal&&re?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",yt=re&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),je=yt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${_}`]||n[`defaultValue${ut}`]||n.defaultValue;!this.isValidLookup(T)&&Pe&&(ae=!0,T=je),this.isValidLookup(T)||(Z=!0,T=s);let Wn=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:T,en=Pe&&je!==T&&this.options.updateMissing;if(Z||ae||en){if(this.logger.log(en?"updateKey":"missingKey",p,u,s,en?je:T),a){let It=this.resolve(s,{...n,keySeparator:!1});It&&It.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 Lt=[],Re=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Re&&Re[0])for(let It=0;It<Re.length;It++)Lt.push(Re[It]);else this.options.saveMissingTo==="all"?Lt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Lt.push(n.lng||this.language);let Oi=o((It,Mt,sn)=>{let $i=Pe&&sn!==T?sn:Wn;this.options.missingKeyHandler?this.options.missingKeyHandler(It,u,Mt,$i,en,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(It,u,Mt,$i,en,n),this.emit("missingKey",It,u,Mt,T)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&re?Lt.forEach(It=>{let Mt=this.pluralResolver.getSuffixes(It,n);yt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Mt.indexOf(`${this.options.pluralSeparator}zero`)<0&&Mt.push(`${this.options.pluralSeparator}zero`),Mt.forEach(sn=>{Oi([It],s+sn,n[`defaultValue${sn}`]||je)})}):Oi(Lt,s,je))}T=this.extendTranslation(T,t,n,m,i),Z&&T===s&&this.options.appendNamespaceToMissingKey&&(T=`${u}:${s}`),(Z||ae)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,ae?T:void 0):T=this.options.parseMissingKeyHandler(T))}return r?(m.res=T,m.usedParams=this.getUsedParamsDetails(n),m):T}extendTranslation(t,n,i,r,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let p=Ge(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),g;if(p){let T=t.match(this.interpolator.nestingRegexp);g=T&&T.length}let m=i.replace&&!Ge(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,i.lng||this.language||r.usedLng,i),p){let T=t.match(this.interpolator.nestingRegexp),A=T&&T.length;g<A&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var T=arguments.length,A=new Array(T),E=0;E<T;E++)A[E]=arguments[E];return a&&a[0]===A[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${A[0]} in key: ${n[0]}`),null):s.translate(...A,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,u=Ge(l)?[l]:l;return t!=null&&u&&u.length&&i.applyPostProcessor!==!1&&(t=yR.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,a,s,l;return Ge(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(u,n),g=p.key;r=g;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let T=n.count!==void 0&&!Ge(n.count),A=T&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),E=n.context!==void 0&&(Ge(n.context)||typeof n.context=="number")&&n.context!=="",O=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(F=>{this.isValidLookup(i)||(l=F,!uR[`${O[0]}-${F}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(uR[`${O[0]}-${F}`]=!0,this.logger.warn(`key "${r}" for languages "${O.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(U=>{if(this.isValidLookup(i))return;s=U;let K=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(K,g,U,F,n);else{let ae;T&&(ae=this.pluralResolver.getSuffix(U,n.count,n));let Z=`${this.options.pluralSeparator}zero`,re=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(T&&(K.push(g+ae),n.ordinal&&ae.indexOf(re)===0&&K.push(g+ae.replace(re,this.options.pluralSeparator)),A&&K.push(g+Z)),E){let Pe=`${g}${this.options.contextSeparator}${n.context}`;K.push(Pe),T&&(K.push(Pe+ae),n.ordinal&&ae.indexOf(re)===0&&K.push(Pe+ae.replace(re,this.options.pluralSeparator)),A&&K.push(Pe+Z))}}let j;for(;j=K.pop();)this.isValidLookup(i)||(a=j,i=this.getResource(U,F,j,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Ge(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(mg,"Translator");var pg=mg,PT=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),wT=class wT{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Po.create("languageUtils")}getScriptPartFromCode(t){if(t=fg(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=fg(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Ge(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(t)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=PT(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]=PT(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=PT(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Ge(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return Ge(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))):Ge(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(wT,"LanguageUtil");var dg=wT,I5=[{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}],O5={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},N5=["v1","v2","v3"],L5=["v4"],pR={zero:0,one:1,two:2,few:3,many:4,other:5},R5=o(()=>{let e={};return I5.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:O5[t.fc]}})}),e},"createRules"),MT=class MT{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Po.create("pluralResolver"),(!this.options.compatibilityJSON||L5.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=R5(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{let i=fg(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s=new Intl.PluralRules(i,{type:r});return this.pluralRulesCache[a]=s,s}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,a)=>pR[r]-pR[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(t,r,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(t,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){let i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n)),r=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));let a=o(()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!N5.includes(this.options.compatibilityJSON)}};o(MT,"PluralResolver");var NT=MT,dR=o(function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=E5(e,t,n);return!a&&r&&Ge(n)&&(a=IT(e,n,i),a===void 0&&(a=IT(t,n,i))),a},"deepFindWithDefaults"),CT=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),kT=class kT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Po.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:p,unescapeSuffix:g,unescapePrefix:m,nestingPrefix:T,nestingPrefixEscaped:A,nestingSuffix:E,nestingSuffixEscaped:O,nestingOptionsSeparator:F,maxReplaces:U,alwaysFormat:K}=t.interpolation;this.escape=n!==void 0?n:A5,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?nl(a):s||"{{",this.suffix=l?nl(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=T?nl(T):A||nl("$t("),this.nestingSuffix=E?nl(E):O||nl(")"),this.nestingOptionsSeparator=F||",",this.maxReplaces=U||1e3,this.alwaysFormat=K!==void 0?K:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,r){let a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(A=>{if(A.indexOf(this.formatSeparator)<0){let U=dR(n,u,A,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(U,void 0,i,{...r,...n,interpolationkey:A}):U}let E=A.split(this.formatSeparator),O=E.shift().trim(),F=E.join(this.formatSeparator).trim();return this.format(dR(n,u,O,this.options.keySeparator,this.options.ignoreJSONStructure),F,i,{...r,...n,interpolationkey:O})},"handleFormat");this.resetRegExp();let g=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(A=>CT(A),"safeValue")},{regex:this.regexp,safeValue:o(A=>this.escapeValue?CT(this.escape(A)):CT(A),"safeValue")}].forEach(A=>{for(l=0;a=A.regex.exec(t);){let E=a[1].trim();if(s=p(E),s===void 0)if(typeof g=="function"){let F=g(t,a,r);s=Ge(F)?F:""}else if(r&&Object.prototype.hasOwnProperty.call(r,E))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${E} for interpolating ${t}`),s="";else!Ge(s)&&!this.useRawValueToEscape&&(s=sR(s));let O=A.safeValue(s);if(t=t.replace(a[0],O),m?(A.regex.lastIndex+=s.length,A.regex.lastIndex-=a[0].length):A.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((u,p)=>{let g=this.nestingOptionsSeparator;if(u.indexOf(g)<0)return u;let m=u.split(new RegExp(`${g}[ ]*{`)),T=`{${m[1]}`;u=m[0],T=this.interpolate(T,s);let A=T.match(/'/g),E=T.match(/"/g);(A&&A.length%2===0&&!E||E.length%2!==0)&&(T=T.replace(/'/g,'"'));try{s=JSON.parse(T),p&&(s={...p,...s})}catch(O){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,O),`${u}${g}${T}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,u},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let u=[];s={...i},s=s.replace&&!Ge(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let g=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=g.shift(),u=g,p=!0}if(a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!Ge(a))return a;Ge(a)||(a=sR(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),p&&(a=u.reduce((g,m)=>this.format(g,m,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o(kT,"Interpolator");var LT=kT,F5=o(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...u]=s.split(":"),p=u.join(":").trim().replace(/^'+|'+$/g,""),g=l.trim();n[g]||(n[g]=p),p==="false"&&(n[g]=!1),p==="true"&&(n[g]=!0),isNaN(p)||(n[g]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),il=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(fg(i),r),t[s]=l),l(n)}},"createCachedFormatter"),UT=class UT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Po.create("formatter"),this.options=t,this.formats={number:il((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:il((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:il((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:il((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:il((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=il(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,u)=>{let{formatName:p,formatOptions:g}=F5(u);if(this.formats[p]){let m=l;try{let T=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},A=T.locale||T.lng||r.locale||r.lng||i;m=this.formats[p](l,A,{...g,...r,...T})}catch(T){this.logger.warn(T)}return m}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(UT,"Formatter");var RT=UT,_5=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),jT=class jT extends rl{constructor(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=Po.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},u={};return t.forEach(p=>{let g=!0;n.forEach(m=>{let T=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[T]=2:this.state[T]<0||(this.state[T]===1?s[T]===void 0&&(s[T]=!0):(this.state[T]=1,g=!1,s[T]===void 0&&(s[T]=!0),a[T]===void 0&&(a[T]=!0),u[m]===void 0&&(u[m]=!0)))}),g||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(u=>{T5(u.loaded,[a],s),_5(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(p=>{l[p]||(l[p]={});let g=u.loaded[p];g.length&&g.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((p,g)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&g&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(p,g)},"resolver"),u=this.backend[i].bind(this.backend);if(u.length===2){try{let p=u(t,n);p&&typeof p.then=="function"?p.then(g=>l(null,g)).catch(l):l(null,p)}catch(p){l(p)}return}return u(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Ge(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Ge(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){let u={...s,isUpdate:a},p=this.backend.create.bind(this.backend);if(p.length<6)try{let g;p.length===5?g=p(t,n,i,r,u):g=p(t,n,i,r),g&&typeof g.then=="function"?g.then(m=>l(null,m)).catch(l):l(null,g)}catch(g){l(g)}else p(t,n,i,r,l,u)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(jT,"Connector");var FT=jT,gR=o(()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Ge(e[1])&&(t.defaultValue=e[1]),Ge(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),mR=o(e=>(Ge(e.ns)&&(e.ns=[e.ns]),Ge(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Ge(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),cg=o(()=>{},"noop"),D5=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Jf=class Jf extends rl{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=mR(t),this.services={},this.logger=Po,this.modules={external:[]},D5(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&&(Ge(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=gR();this.options={...r,...this.options,...mR(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);let a=o(g=>g?typeof g=="function"?new g:g:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Po.init(a(this.modules.logger),this.options):Po.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=RT);let m=new dg(this.options);this.store=new ug(this.options.resources,this.options);let T=this.services;T.logger=Po,T.resourceStore=this.store,T.languageUtils=m,T.pluralResolver=new NT(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(T.formatter=a(g),T.formatter.init(T,this.options),this.options.interpolation.format=T.formatter.format.bind(T.formatter)),T.interpolator=new LT(this.options),T.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},T.backendConnector=new FT(a(this.modules.backend),T.resourceStore,T,this.options),T.backendConnector.on("*",function(A){for(var E=arguments.length,O=new Array(E>1?E-1:0),F=1;F<E;F++)O[F-1]=arguments[F];t.emit(A,...O)}),this.modules.languageDetector&&(T.languageDetector=a(this.modules.languageDetector),T.languageDetector.init&&T.languageDetector.init(T,this.options.detection,this.options)),this.modules.i18nFormat&&(T.i18nFormat=a(this.modules.i18nFormat),T.i18nFormat.init&&T.i18nFormat.init(this)),this.translator=new pg(this.services,this.options),this.translator.on("*",function(A){for(var E=arguments.length,O=new Array(E>1?E-1:0),F=1;F<E;F++)O[F-1]=arguments[F];t.emit(A,...O)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,i||(i=cg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=function(){return t.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return t.store[g](...arguments),t}});let u=qf(),p=o(()=>{let g=o((m,T)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(T),i(m,T)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),u}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:cg,r=Ge(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=o(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(p=>{p!=="cimode"&&a.indexOf(p)<0&&a.push(p)})},"append");r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let r=qf();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=cg),this.services.backendConnector.reload(t,n,a=>{r.resolve(),i(a)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&yR.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;let r=qf();this.emit("languageChanging",t);let a=o(u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},"setLngProps"),s=o((u,p)=>{p?(a(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(u,function(){return i.t(...arguments)})},"done"),l=o(u=>{!t&&!u&&this.services.languageDetector&&(u=[]);let p=Ge(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);p&&(this.language||a(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,g=>{s(g,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),r}getFixedT(t,n,i){var r=this;let a=o(function(s,l){let u;if(typeof l!="object"){for(var p=arguments.length,g=new Array(p>2?p-2:0),m=2;m<p;m++)g[m-2]=arguments[m];u=r.options.overloadTranslationOptionHandler([s,l].concat(g))}else u={...l};u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||i||a.keyPrefix);let T=r.options.keySeparator||".",A;return u.keyPrefix&&Array.isArray(s)?A=s.map(E=>`${u.keyPrefix}${T}${E}`):A=u.keyPrefix?`${u.keyPrefix}${T}${s}`:s,r.t(A,u)},"fixedT");return Ge(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=qf();return this.options.ns?(Ge(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=qf();Ge(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new dg(gR());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 Jf(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:cg,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new Jf(r);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new ug(this.store.data,r),a.services.resourceStore=a.store),a.translator=new pg(a.services,r),a.translator.on("*",function(l){for(var u=arguments.length,p=new Array(u>1?u-1:0),g=1;g<u;g++)p[g-1]=arguments[g];a.emit(l,...p)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(Jf,"I18n");var gg=Jf,q=gg.createInstance();q.createInstance=gg.createInstance;var Tz=q.createInstance,Ez=q.dir,bz=q.init,Az=q.loadResources,Sz=q.reloadResources,Pz=q.use,Cz=q.changeLanguage,xz=q.getFixedT,Iz=q.t,Oz=q.exists,Nz=q.setDefaultNamespace,Lz=q.hasLoadedNamespace,Rz=q.loadNamespaces,Fz=q.loadLanguages;var FF=ne($T()),_F=ne(GR()),wg=ne(LF()),We=require("@sap-ux/vocabularies-types/vocabularies/UI"),iu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Dg=ne(le());var se=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${Dg.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${Dg.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${Dg.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var $="#/definitions/",dW=[G.v4.FE_TEMPLATE_V4_LIST_REPORT,G.v4.FE_TEMPLATE_V4_ALP,G.v4.FE_TEMPLATE_V4_OBJECT_PAGE,G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],gW=["sap.fe.core","sap.fe.templates"],ru=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),pr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Io(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,wg.parse)(r.fileContent,r.dataSourceUri))}catch(a){return se(t,{severity:G.LogSeverity.Error,message:q.t("ANNOERR"),location:{path:q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,wg.merge)(...n);i=(0,_F.convert)(r)}return i}o(Io,"parseAndMergeAndConvert");var ll=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function aE(e,t,n){var i,r,a,s;if((i=e==null?void 0:e.Common)!=null&&i.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((r=l==null?void 0:l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(a=e.Common)==null?void 0:a.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}o(aE,"evaluateCommonLabel");function Mg(e,t){let n=e.value;return e.$target&&(n=aE(e.$target.annotations,t,n)),n}o(Mg,"getLabelForPropertyPath");function Vg(e,t){var r,a;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(s=>s.name===e.Value):(i=t&&t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&(e.Target.$target.Value?i=e.Target.$target.Value.$target:e.Target.$target.Label&&(n=e.Target.$target.Label)),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=aE(i.annotations,t,n)),n}o(Vg,"getLabelForDataField");function mW(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return aE(a.annotations,t,s)}}}else return}o(mW,"getLabel");function RF(e,t,n){let i=Vg(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(RF,"getTitleForDataField");function bi(e,t){var s,l,u,p;let n="",i,r,a="";try{let g=mW(e.Label,t);switch(e.$Type){case We.UIAnnotationTypes.DataField:n=RF(e,t,g);break;case We.UIAnnotationTypes.DataFieldWithUrl:i=Vg(e,t),n=g||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case We.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Vg(e,t),n=g||i||((l=(s=r.Target)==null?void 0:s.$target)==null?void 0:l.Title)||((u=r.Target)==null?void 0:u.value.split("UI.v1.")[1]);break;case We.UIAnnotationTypes.DataFieldForAction:case We.UIAnnotationTypes.DataFieldWithAction:case We.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,a=typeof e.Action=="string"?r.Action:(p=r.Action)==null?void 0:p.path,g?n=typeof g=="string"?g:a:n=a;break;case We.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Vg(e,t),n=i||e.Value.path;break;case We.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=RF(r,t,g);break;default:break}return n}catch{return n}}o(bi,"getDataFieldDescription");function dt(e){return e.replace("#","::").replace(/\//g,":2f")}o(dt,"prepareRef");function sa(e){if(e){let t=`${G.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(sa,"getPageTypeV2");function sE(e){if(e.name&&e.name!==G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE){let t=`${G.v4.FE_TEMPLATE_V4}.`;return e.name.split(t)[1]}else{if((e==null?void 0:e.name)===G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return G.PageTypeV4.FPMCustomPage;if(e.viewId||e.viewName)return G.PageTypeV4.CustomPage}}o(sE,"getPageTypeV4");function hW(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(hW,"getTargetAnnotationName");function ri(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(ri,"findAlias");function yW(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(yW,"getAnnotationFromMetaPath");function vW(e,t,n){var s,l;let i=e[e.length-1],r=yW(i),a=ri(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(vW,"determineTargetAnnotation");function TW(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${We.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${G.UIVOCABULARY}`);return e}o(TW,"adjustKey");function EW(e,t,n,i,r=G.FioriElementsVersion.v2,a=!1){var m,T;let s=!1,l,u=i.split("/"),p=u.length>1;p&&n&&(n=(m=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:m.targetType),t=TW(t,u,a);let g=vW(u,n,e);if(g){let A=r===G.FioriElementsVersion.v2?"::":"#";t=hW(g,a).replace("#",A),l=(T=g.fullyQualifiedName)==null?void 0:T.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let A=r===G.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(A)}${A}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(EW,"getKeyAndEntityTypeOfReferenceFacet");function DF(e,t,n,i,r=G.FioriElementsVersion.v2,a=!1){var g,m,T;let s=(m=e.fullyQualifiedName)==null?void 0:m.substring((g=e.fullyQualifiedName)==null?void 0:g.lastIndexOf("@")),l=e.ID?e.ID.toString():s,u=(T=e.fullyQualifiedName)==null?void 0:T.split("@")[0],p=t;if(e.$Type!==We.UIAnnotationTypes.CollectionFacet&&"Target"in e){let A=ll(e.Target);if(!A){se(i,{severity:G.LogSeverity.Error,message:q.t("NOTARGET",{target:e.Target})});return}let{key:E,entityType:O,stopProcessing:F,namespace:U}=EW(n,l,p,A,r,a);if(F)return;l=E,p=O,u=U}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:u}}o(DF,"getSectionFacet");function bW(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(bW,"getDecodedPathElement");var cE=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),VF=o((e,t,n,i,r,a=!1)=>{if(!t)return;let s=e,l=t.split("/");for(let u=0;u<l.length;u++){let p=l[u];if(p==="[]")continue;let g=bW(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=cE(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),Oo=o((e,t,n,i,r=!1)=>VF(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),wF=o((e,t,n,i,r)=>{VF(e,t,i,r,n)},"setManifestSectionByPathV4");function lE(e){let t,n,i;switch(e.$Type){case We.UIAnnotationTypes.DataField:t=ll(e.Value);break;case We.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:ll(e.Value);break;case We.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${G.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case We.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${dt(e.Action)}`);break;case We.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=ll(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case We.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${dt(e.Action)}`);break;case We.UIAnnotationTypes.DataFieldWithNavigationPath:i=ll(e.Value),n=ll(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(lE,"getSchemaKeyOfLineItemRecord");function AW(e,t,n){return e.includes(We.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?We.UIAnnotationTerms.Chart:e.includes(We.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?We.UIAnnotationTerms.Identification:n&&e.includes(We.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?We.UIAnnotationTerms.LineItem:e.includes(We.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?We.UIAnnotationTerms.FieldGroup:e.includes(We.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?We.UIAnnotationTerms.DataPoint:e.includes(We.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?We.UIAnnotationTerms.PresentationVariant:e.includes(We.UIAnnotationTerms.SelectionPresentationVariant)||e.includes(t+".SelectionPresentationVariant")?We.UIAnnotationTerms.SelectionPresentationVariant:void 0}o(AW,"getUIAnnotationTerm");function SW(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?iu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?iu.CommunicationAnnotationTerms.Address:void 0}o(SW,"getCommunicationAnnotationTerm");function PW(e,t,n){return AW(e,t,n)||SW(e,t)}o(PW,"getAnnotationTerm");function CW(e,t,n,i,r){var p,g,m,T,A,E,O,F,U,K;let a=ri(G.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(PW(s,a,i)){case We.UIAnnotationTerms.Chart:{n[s]={base:G.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case We.UIAnnotationTerms.Identification:{n[s]={base:G.FacetBase.Identification},n[s].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case We.UIAnnotationTerms.LineItem:{if(!s.includes(We.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let j=s.split("::");j[j.length-1]=`@${We.UIAnnotationTerms.LineItem}`,s=j.join("::")}n[s]={base:G.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case We.UIAnnotationTerms.FieldGroup:{n[s]={base:G.FacetBase.Form},n[s].target=(T=t==null?void 0:t.Target)==null?void 0:T.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case We.UIAnnotationTerms.DataPoint:{n[s]={base:G.FacetBase.DataPoint},n[s].Label=(A=t==null?void 0:t.Target)==null?void 0:A.$target.Title,n[s].target=(E=t==null?void 0:t.Target)==null?void 0:E.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case We.UIAnnotationTerms.PresentationVariant:{n[s]={base:G.FacetBase.PresentationVariant},n[s].target=(O=t==null?void 0:t.Target)==null?void 0:O.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case We.UIAnnotationTerms.SelectionPresentationVariant:{n[s]={base:G.FacetBase.SelectionPresentationVariant},n[s].target=(F=t==null?void 0:t.Target)==null?void 0:F.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case iu.CommunicationAnnotationTerms.Contact:{n[s]={base:G.FacetBase.Contact},n[s].target=(U=t==null?void 0:t.Target)==null?void 0:U.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case iu.CommunicationAnnotationTerms.Address:{n[s]={base:G.FacetBase.Address},n[s].target=(K=t==null?void 0:t.Target)==null?void 0:K.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:G.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",G.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(CW,"evaluateTargetAnnotation");function fE(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(fE,"getAnnotationPathUsingFullyQualifiedName");function uE(e,t,n,i,r,a=G.FioriElementsVersion.v2,s){var u;let l=DF(e,i,t,s,a,!1);if(l)switch(e.$Type){case We.UIAnnotationTypes.ReferenceFacet:{CW(l,e,r,i,t);break}case We.UIAnnotationTypes.CollectionFacet:{let p=fE(i,e.fullyQualifiedName),g=r[l.key]={base:G.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===G.FioriElementsVersion.v4&&se(s,{severity:G.LogSeverity.Error,message:q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{uE(m,t,n,i,g.facets,a,s)});break}}}o(uE,"addFacetToConfig");function kg(e,t,n=G.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=ri(G.UIVOCABULARY,t),s=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),g=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{uE(m,t,g,e,r,n,i)})}return r}o(kg,"getObjectPageHeaderFacets");function Ug(e,t,n=G.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=ri(G.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(g=>{uE(g,t,p,e,r,n,i)})}return r}o(Ug,"getObjectPageFacets");function pE(e){var t,n,i,r;if(e[G.ManifestSection.generic]&&Object.keys(e[G.ManifestSection.generic]).length>0||e[G.ManifestSection.ovp]&&Object.keys(e[G.ManifestSection.ovp]).length>0)return G.FioriElementsVersion.v2;{let a=(n=(t=e[G.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[G.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>dW.indexOf(a[l].name)>-1)||s&&Object.keys(s).find(l=>gW.indexOf(l)>-1)?G.FioriElementsVersion.v4:void 0}}o(pE,"getFEVersionFromManifest");function xW(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[G.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[G.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[G.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[G.ManifestSection.ui5].models[t].dataSource:void 0}o(xW,"getMainService");function MF(e){var i,r;let t=xW(e);if(!t)return G.OdataVersion.v2;let n=(i=e[G.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?G.OdataVersion.v4:G.OdataVersion.v2}o(MF,"getODataVersionFromManifest");function IW(e,t){var i,r;let n;if(e[G.ManifestSection.generic]){let a=e[G.ManifestSection.generic].pages;if(!a){se(t,{severity:G.LogSeverity.Error,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(sa((i=l.component)==null?void 0:i.name)===G.PageTypeV2.AnalyticalListPage){n=G.TemplateType.AnalyticalListPageV2;break}else if(sa((r=l.component)==null?void 0:r.name)===G.PageTypeV2.ListReport){n=G.TemplateType.ListReportObjectPageV2;break}}}else n||se(t,{severity:G.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:G.ManifestSection.generic}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return n}o(IW,"determineV2Template");function ou(e){var i,r,a,s;let t,n=sE(e);if(n===G.PageTypeV4.AnalyticalListPage)t=G.TemplateType.AnalyticalListPageV4;else if(n===G.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[G.ALPViewType.Primary]||l[G.ALPViewType.Secondary])?t=G.TemplateType.AnalyticalListPageV4:t=G.TemplateType.ListReportObjectPageV4}else n===G.PageTypeV4.ObjectPage?t=G.TemplateType.ListReportObjectPageV4:[G.PageTypeV4.CustomPage,G.PageTypeV4.FPMCustomPage].includes(n)&&(t=G.TemplateType.FreestylePageV4);return t}o(ou,"determineV4PageTemplateType");function OW(e){let t;for(let n in e){let i=e[n];if(t=ou(i),t)break}return t}o(OW,"determineV4TemplateFromPages");function NW(e,t){let n=e[G.ManifestSection.ui5].routing&&e[G.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return se(t,{severity:G.LogSeverity.Info,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing"]}}),G.TemplateType.ListReportObjectPageV4;let i=OW(n);return i||se(t,{severity:G.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:G.ManifestSection.ui5}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing","targets"]}}),i}o(NW,"determineV4Template");function dE(e,t,n){let i;return e[G.ManifestSection.ovp]?i=G.TemplateType.OverviewPageV2:t===G.FioriElementsVersion.v2?i=IW(e,n):t===G.FioriElementsVersion.v4&&(i=NW(e,n)),i}o(dE,"getTemplateTypeFromManifest");function Ua(e,t,n){e!=null&&e.ID?(t.title=G.FACETTITLEPREFIX+e.ID,t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:n.replace(G.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(Ua,"addSectionTitleAndDescription");function fl(e,t,n){var i,r;Ua(e,t,n),!(e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}o(fl,"addTargetTitleAndSectionDescription");function No(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[G.SchemaTag.isViewNode]=!0,i[G.SchemaTag.annotationPath]=t.annotationPath,fl(t,i,n),i}o(No,"createDefaultSection");function kF(e,t,n,i=G.FioriElementsVersion.v2,r=!1){var l,u;let a=ri(G.UIVOCABULARY,t),s=[];if(e){let p=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.Facets);return p&&(s=p.reduce(function(g,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return g;let T=DF(m,e,t,n,i,!0);return T&&g.push(T),g},s)),s}}o(kF,"getObjectPageFacetSection");var ja=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(u){let p=a&&a===u?r:u.replace(/\?\?/g,"/");if(!(!s[p]&&(a===u&&(p=a),!s[p]))){if(Object.keys(s[p]).length===0||i&&i[i.length-1]===p&&n){Array.isArray(s)?s.splice(Number(p),1):delete s[p],l.pop(),ja(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),oE=o(e=>e===G.SchemaType.FreestylePage?G.PageTypeV2.CustomPage:e===G.SchemaType.FPMCustomPage?G.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),_t=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case G.SchemaType.Application:{i.filename="App",i.path=`./${G.DirName.Schemas}/${i.filename}`;break}case G.SchemaType.ListReport:case G.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:oE(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}case G.PageTypeV4.FPMCustomPage:case G.SchemaType.FPMCustomPage:{i.filename=n?`${G.SchemaType.FPMCustomPage}_${n}`:oE(G.SchemaType.FPMCustomPage),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}default:{i.filename=oE(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function jg(e,t,n,i){if(e===G.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o(jg,"generatePageId");function gE(e,t,n){let i=t==null?void 0:t.properties,r=t==null?void 0:t.required;if(!i&&(t!=null&&t.$ref)){let s=t==null?void 0:t.$ref,l=e.definitions[s.split($)[1]];typeof l=="object"&&(i=l.properties,r=l.required)}if(!i||Object.keys(i).length===0)return[];let a=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(u=>l[u]!==void 0)&&a.push(s)}return a}o(gE,"findMatchingKeysByAdditionalProperties");function LW(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split($)[1],s=t.definitions[a];if(typeof s=="object"&&typeof n=="object"){let l=s.controlProperty;if(l)r.includes(n[l])&&i.push(a);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=gE(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length)&&i.push(a)}}}o(LW,"fillArrayFromAnyOfReference");function RW(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split($)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{LW(r,n,t,i)}),i.length===0))return;return i}o(RW,"fillArrayFromPropertyDefinition");function FW(e,t,n,i,r,a,s,l){var p,g,m,T;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let A=e[e.length-1];if(u.targetDefinition=t.definitions[A],(p=u==null?void 0:u.targetDefinition)!=null&&p.$ref||((g=u==null?void 0:u.targetDefinition)==null?void 0:g.type)==="array")return u=Lo(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(F=>{F!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[F].properties})}),u.title=(m=u==null?void 0:u.targetDefinition)!=null&&m.title?u.targetDefinition.title:n;let E=A==null?void 0:A.split("<")[0],O=i||{};u.configObject=a.createInstance(s,E,O,(T=u==null?void 0:u.targetDefinition)==null?void 0:T.controlProperty)}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}o(FW,"determineNextDefinitionFromDefinitionArray");function Lo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Lo(e,t,n,i.items,r,a,s),l;let u=RW(i,n,e);if(u)return l=FW(u,e,t,n,r,a,s,i),l}o(Lo,"getNextTargetDefinition");var mE=o((e,t,n)=>{let i=e.slice();return t.forEach((r,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[a]=(0,FF.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function $g(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o($g,"convertEnumToCSV");function Qi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Qi,"convertActionKeyToStableId");function hn(e){return e==null?void 0:e.split($)[1]}o(hn,"getDefinitionKey");function UF(e){return`#/definitions/${e}`}o(UF,"getDefinitionsRef");function Bg(e){return e instanceof Error?e.message:String(e)}o(Bg,"getErrorMessage");function qs(e,t){return e==null?void 0:e.includes(t)}o(qs,"isFeatureSupported");function Ro(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(Ro,"updatePropertyIndices");function Hg(e,t){let n=e;for(let i of t)if(i!==void 0)if(typeof n=="object"&&i in n)n=n[i];else return;return n}o(Hg,"getJSONPropertyByPath");function jF(e){return e=e.replace(G.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(jF,"removeNamespaces");function ul(e){return e=e.replace(G.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(ul,"replaceNamespaces");var Eo=require("@sap-ux/vocabularies-types/vocabularies/UI"),oe=ne(le());var qi=ne(le());var Yt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Gg=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),qn=o((e,t)=>{let n,i=qi.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 _W(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o(_W,"escapeId");var $F=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))($F||{}),BF=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(BF||{});function DW(e,t,n){let i;return e=e.map(function(r){if(r===qi.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===qi.PropertyName.sections)return i=t[a+1],t[a+1]=qn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(DW,"mapBreadcrumbs");var hE=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=DW(t,s,r)),s[0]===qi.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,qi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,qi.VOCWITHSLASH):t[0]===qi.PropertyName.table&&(a=t[0]);let l=s[s.length-1].replace(/::com.sap.vocabularies/g,qi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,qi.VOCWITHSLASH).replace("sTarget/@","sTarget::@").replace("/",":2f"),u,p=l.indexOf(":::");return l.startsWith("DataField")&&p>-1?u=`${e}template:::TableColumn:::${l.substring(0,p)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${l.substring(p+3)}`:u=`${e}${t.join("::")}-${l}`,_W(u)},"buildColumnControlId"),Yi=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function VW(e){let t=qi.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(VW,"determinePattern");var yE=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split($)[1]]:a,u=a.description?a.description:l.description,p=VW(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(g=>{s.enum.indexOf(g)===-1&&s.enum.push(g)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},u&&(r[n].description=u,delete a.description)},"addPatternForBindingChangeOfEnum"),Yn=o((e,t,n)=>{yE(e,t,n)},"addPatternForBindingChangeOfEnumLR"),mt=o((e,t,n)=>{let i=Object.values($F);yE(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),oi=o((e,t,n)=>{let i=Object.values(BF);yE(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function Ys(){}o(Ys,"doNotDelete");var IJ=ne(GF());var WF=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(WF,e),"syncRule");function zn(e,t){let n;return e&&(n=Reflect.getMetadata(WF,e,t)),n}o(zn,"getReflectMetadata");var kr=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),KF=Symbol("childId"),Ut=o(e=>Reflect.metadata(KF,e),"childId"),Wg=o((e,t)=>Reflect.getMetadata(KF,e,t),"getChildId"),Kg=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),wW=Symbol("descriptionSrcURL"),Ae=o(e=>Reflect.metadata(wW,e),"descriptionSrcURL");var MW=Symbol("validityMetadataKey"),C=o(e=>Reflect.metadata(MW,e),"validity");function Xg(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(Xg,"getTextForDeprecated");var e0=ne(JF()),t0=ne(le());var n0=e0.default.change,ZF={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function i0(e,t){let n="";try{for(let i in ZF)e[i]===void 0&&(e[i]=ZF[i]);n=n0.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(i0,"createChangeString");function $a(e){try{return n0.parse(e)}catch{return!1}}o($a,"parseChangeString");function r0(e,t,n,i,r){let a=n.layer?n.layer===t0.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:a};return e[i]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,i):e[i].toString().startsWith("{")?(s.content.newBinding=e[i],s.type="propertyBindingChange"):s.content.newValue=e[i]:s.content.newValue=null,s}o(r0,"fillFlexChangeContent");function o0(e,t){return i0(e,t)}o(o0,"exportToFlexChange");var zs=ne(le());function pl(e,t,n,i,r,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let u=l(t,r,n,a);u!==void 0&&(i[n]=u)}else t[s]!==void 0&&(i[n]=t[s])}o(pl,"importProperty");function Qg(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(se(i,{severity:zs.LogSeverity.Warning,message:Xg(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(Qg,"checkDeprecatedProperties");function vE(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split($)[1]];return vE(n,t)}else return e.title?e.title.startsWith(zs.FACETTITLEPREFIX)?e.title.split(zs.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(vE,"getSectionTitle");function qg(e){let t=e.split(`${zs.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(qg,"getTargetFromCustomColumnRef");function Fo(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(Fo,"removeEmptyStructure");var jt=require("@sap-ux/vocabularies-types/vocabularies/UI");var ca=require("@sap-ux/vocabularies-types/vocabularies/UI");function Yg(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/[/@()#*]/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(Yg,"replaceSpecialChars");var Js=o(function(e){return Yg(jF(e))},"prepareId");function GW(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(GW,"evaluateConcat");function Zs(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 GW(e);if(e&&typeof e=="string")return Yg(e.replace(/ /g,"_"))}o(Zs,"getStableIdPartFromValue");var a0=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),la=o(function(e){let t="";if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,Js(t);if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=a0(e),t;if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=Js(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=Zs(e.Value)+"::"),t+=e.Action,Js(t);if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataField)return t="DataField::",t+=Zs(e.Value),Js(t);if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=Zs(e.Value)+"::",t+=a0(e),Js(t);if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=Zs(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),Js(t);if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=Zs(e.Value),Js(t)},"getStableIdPartFromDataField");var de=ne(le());var _e=ne(le());var zi=require("@sap-ux/vocabularies-types/vocabularies/UI"),f0=require("path"),u0=ne(Xs());var zg="ResponsiveTableWithMultiSelect<LineItems>",Jg="ResponsiveTableWithInlineDelete<LineItems>",WW="TreeTable<LineItems>",KW="AnalyticalTable<LineItems>",XW="GridTable<LineItems>",TE=[zg,Jg,WW,KW,XW],s0=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],c0="template::",Zg="template:::ObjectPageAction:::";function QW(e,t,n){e.definitions[_e.DefinitionName.LineItems]&&(e.definitions[_e.DefinitionName.LineItems].properties.custom={$ref:`${$}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${$}${n}`},description:"Custom Columns"},e.definitions[t][_e.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[_e.SchemaTag.artifactType]=_e.ArtifactType.Manifest)}o(QW,"addCustomColumnDefinition");function qW(e,t){let n;return e==="TableColumnActionIntentBased"?n=lE(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=dt(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===zi.UIAnnotationTypes.DataFieldForAction?n=dt(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=dt(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(qW,"getActionId");function EE(e,t,n,i,r){let a,s=n.lineItemId===_e.DefinitionName.LineItems?"":"ObjectPage",l=qW(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=bi(n.lineItemRecord,n.entityType);t.properties[l]={$ref:$+u},t.properties[l][_e.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=ec(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[u]={...JSON.parse(JSON.stringify(e.definitions[a])),description:p,keys:[{name:"Action",value:g}],annotationPath:`${n.lineItemPath}/${r}`},m&&(e.definitions[u][_e.SchemaTag.target]=m)):(e.definitions[u]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[u][_e.SchemaTag.isViewNode]=!0,e.definitions[u][_e.SchemaTag.keys]=[{name:_e.SchemaKeyName.action,value:g}],m&&(e.definitions[u][_e.SchemaTag.target]=m),e.definitions[u][_e.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}o(EE,"handleActionRecord");function YW(e,t,n){e!==_e.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===zi.UIAnnotationTypes.DataFieldForAction||t.$Type===zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===zi.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(YW,"getColumnActionType");function zW(e,t){let n=[];if(!(e.$Type!==zi.UIAnnotationTypes.DataFieldForAction&&e.$Type!==zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===zi.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===zi.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),YW(t,e,n),n}o(zW,"getActionType");function p0(e,t,n){let i=lE(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:$+_e.DefinitionName.TableColumn,description:bi(e.lineItemRecord,e.entityType)},r.properties[i][_e.SchemaTag.propertyIndex]=n,r.properties[i][_e.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,am(r.properties[i],e.lineItemRecord),sm(e.lineItemRecord,r.properties,i)}}o(p0,"generateGenericColumn");function JW(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{EE(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&EE(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{EE(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":p0(i,t,r)}}o(JW,"handleAnyAction");function au(e,t){let n=t.value;return n.includes(_e.UIVOCABULARYALPHADOT+e)?n.replace(_e.UIVOCABULARYALPHADOT,""):""}o(au,"retrieveNameWithoutVocabularyFromVisualization");function dl(e,t,n,i,r,a){r=r||_e.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=om(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},T=zW(g,r);T?T.forEach(A=>{JW(A,t,s,m,p,l,r)}):p0(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${$}${a}`})}o(dl,"addLineItemsType");function ZW(e,t,n){var r,a;let i=(a=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:a.leadingProperty;if(i){let s=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=s==null?void 0:s.reduce((l,u)=>(l.includes(u.name)||l.push(u.name),l),[])}}o(ZW,"addListReportLeadingProperties");function e8(e,t,n,i){var s,l,u,p,g,m;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let a=(g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:g.variants;if(a){let T=[];for(let A in a){let E=(m=a[A])==null?void 0:m.key;E!==void 0&&!T.includes(E)&&T.push(E)}fa(T,r)}}o(e8,"addTabkeyEnum");function em(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(u=>{let p=u.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let g=JSON.parse((0,u0.xml2json)(u.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!g||g.Column||g["table:Column"]||g["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!g||!g.Column&&!g["table:Column"]&&!g["table:AnalyticalColumn"]&&!g["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+f0.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),fa(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(em,"addFragmentEnum");function gl(e,t,n,i,r,a=_e.DefinitionName.CustomColumns,s=_e.DefinitionName.CustomColumn,l){QW(e,a,s),ZW(e,t,s),e8(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;em(e,r,u,"fragmentName",s),em(e,r,u,"fragmentName",_e.DefinitionName.CustomColumn),em(e,r,u,"cellsFragmentName",s),em(e,r,u,"cellsFragmentName",_e.DefinitionName.CustomColumn)}o(gl,"addTableColumnExtensions");function d0(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(d0,"removeElementsFromEnum");function tm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=pr(n==null?void 0:n.fullyQualifiedName,zi.UIAnnotationTerms.SelectionFields);if(r&&(i[_e.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${dt(s.value)}>`,p=no(s);s.type==="PropertyPath"&&(l=Mg(s,n)),i.properties[s.value]={$ref:$+u},i.properties[s.value][_e.SchemaTag.propertyIndex]=a,e.definitions[u]={type:"object",description:l,additionalProperties:!1},e.definitions[u][_e.SchemaTag.isViewNode]=!0,e.definitions[u][_e.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[u][_e.SchemaTag.dataType]=p,e.definitions[u][_e.SchemaTag.keys]=[{name:_e.SchemaKeyName.value,value:`${s.value}`}],e.definitions[u][_e.SchemaTag.annotationPath]=`${i[_e.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[u].$ref=`${$}SelectionFieldDateSettings`:e.definitions[u].properties={},a++})}o(tm,"addSelectionFields");function g0(e,t){for(let n of t.entityProperties)e.push(n.name)}o(g0,"addEntityPropertiesToEnum");function nm(e){var t,n,i,r;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((r=(i=e.annotations)==null?void 0:i.Common)!=null&&r.DraftNode)}o(nm,"isDraftEnabled");function m0(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.DeleteRestrictions)==null?void 0:i.Deletable)!==!1}o(m0,"isEntityDeletable");function h0(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.UpdateRestrictions)==null?void 0:i.Updatable)!==!1}o(h0,"isEntityUpdatable");function ml(e,t=!1,n){let i=_e.DefinitionName.HeaderActionsStandard,r=_e.DefinitionName.HeaderActionStandard;t&&(i=_e.DefinitionName.ObjectPageHeaderActions,r=_e.DefinitionName.ObjectPageHeaderActionStandard);let a=e.definitions[i];a[_e.SchemaTag.isViewNode]=!0,a.description="Actions",Object.entries((n||a).properties).forEach(([l,u])=>{let p=u.$ref.split($)[1],g=`${r}<${p}>`;a.properties[l]={$ref:`${$}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][_e.SchemaTag.actionType]=_e.ActionType.Standard})}o(ml,"addStandardHeaderActions");function y0(e,t){let n=e.definitions[_e.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split($)[1],a=`${_e.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${$}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][_e.SchemaTag.actionType]=_e.ActionType.Standard}}o(y0,"addStandardFooterActionsOP");function im(e){var i,r,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?q.t("NOUIANNOTATIONS",{entityType:t.name}):q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});se(e.logger,{severity:_e.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(im,"getUIAnnotationForEntitySet");function rm(e,t,n,i="string"){let r=e!==void 0&&(typeof e!="object"||e[t]!==void 0&&typeof e[t]!==i);return r&&se(n,{severity:_e.LogSeverity.Error,message:q.t("TYPEERROR",{propertyName:t,expectedType:i})}),r}o(rm,"hasPropertyTypeError");function t8(e,t,n,i){if(e===de.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case jt.UIAnnotationTypes.DataField:case jt.UIAnnotationTypes.DataFieldForAnnotation:case jt.UIAnnotationTypes.DataFieldWithNavigationPath:case jt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===de.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case jt.UIAnnotationTypes.DataField:case jt.UIAnnotationTypes.DataFieldForAnnotation:case jt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(t8,"copyFieldProperties");function n8(e,t,n,i){let r=e===de.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===de.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(n8,"determineFieldDefinitionName");function i8(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][de.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][de.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][de.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][de.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(i8,"addKeysTagForDataField");function r8(e,t,n){if(e.$Type===jt.UIAnnotationTypes.DataField||e.$Type===jt.UIAnnotationTypes.DataFieldWithUrl||e.$Type===jt.UIAnnotationTypes.DataFieldWithNavigationPath)i8(e,t,n);else if(e.$Type===jt.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][de.SchemaTag.keys]=[{name:"Target",value:ul(e.Target.value)}],t.definitions[n][de.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===jt.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][de.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][de.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][de.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===jt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][de.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][de.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(r8,"addKeysTagToField");function o8(e){var t,n;return e.$Type===jt.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===jt.UIAnnotationTypes.ConnectedFieldsType}o(o8,"isConnectedField");function a8(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===jt.UIAnnotationTypes.ConnectedFieldsType){let u=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,g=u.length;for(let m in p){let T=p[m];if(typeof T=="object"&&"$Type"in T){let A=u.findIndex(E=>E===m);A===-1&&(A=g,g++),bE(e,t,T,`ConnectedFields::${a.qualifier}`,A.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(a8,"addConnectedFields");function v0(e,t,n){if(n)return n;let i=dt(t);return e.definitions[i].properties}o(v0,"getFieldsSchemaContainer");function bE(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){var E;let g=la(n),m=s===de.FioriElementsVersion.v2&&g&&g.includes("::")?g.split("::").splice(1).join("::"):g,T=n8(s,g,i,m),A={};if(!(!n||!n.$Type)){if(n.$Type===jt.UIAnnotationTypes.DataFieldForAction||n.$Type===jt.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===de.SectionType.Section){let O=v0(t,`${e}${de.DefinitionName.Actions}<${i}>`,u.actions),F=O[m]={$ref:`${$}${T}`};F[de.SchemaTag.propertyIndex]=parseInt(r)}}else{let O=v0(t,`${e}${de.DefinitionName.Fields}<${i}>`,u.fields);O[m]={$ref:`${$}${T}`,propertyIndex:parseInt(r)},o8(n)&&(A=a8(e,t,n,a,s))}t.definitions[T]={type:"object",properties:A,description:bi(n,a.entityType),additionalProperties:!1},r8(n,t,T),t.definitions[T][de.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[T][de.SchemaTag.annotationType]=n.$Type,t.definitions[T][de.SchemaTag.isViewNode]=!0,am(t.definitions[T],n),t8(s,t,n,T),n.$Type===jt.UIAnnotationTypes.DataFieldForAction&&((E=t.definitions)!=null&&E.FormAction)&&(t.definitions[T].$ref=`${$}${de.DefinitionName.FormAction}`,delete t.definitions[T].properties)}}o(bE,"addField");function s8(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}o(s8,"determineTargetIdOfForm");function c8(e,t,n,i,r,a){if(e.base===de.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&bE(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];bE(t,n,l,i,s,e,r)}}o(c8,"addFieldsToFormDefinition");function l8(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][de.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][de.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][de.SchemaTag.annotationPath]=pr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(l8,"addTagsToFormDefinition");function cm(e,t,n,i,r,a){if(!t.target)return;let s=s8(t),l=dt(`${e}${de.DefinitionName.Form}<${s}>`),u=dt(`${e}${de.DefinitionName.Fields}<${s}>`),p=dt(`${e}${de.DefinitionName.Actions}<${s}>`),g=!(t.base===de.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${$}${l}`},e===de.SectionType.Section&&g?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${$}${p}`},fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][de.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},l8(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][de.SchemaTag.isViewNode]=!0,c8(t,e,i,s,r,g),s}o(cm,"handleForm");function lm(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),a=t.references.find(s=>s.alias===r);a&&(i=e.replace(n,a.namespace))}return i}o(lm,"replaceAlias");function fm(e,t){let n=lm(e.Action,t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(fm,"getActionNameAndId");function T0(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===de.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:T0(a.pages,t)}}o(T0,"isFirstObjectPage");function um(e,t,n,i,r){var g,m;e.definitions[de.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${de.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${$}${de.DefinitionName.ObjectPageFooter}`},e.definitions[de.DefinitionName.ObjectPageFooter].properties[de.PropertyName.actions]={$ref:`${$}${de.DefinitionName.FooterActions}`};let a=e.definitions[de.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[de.SchemaTag.isViewNode]=!0;let s=ri(de.UIVOCABULARY,t.serviceAVT),l=t.entitySet,u=t.entityType,p=s&&((m=(g=u==null?void 0:u.annotations)==null?void 0:g[s])==null?void 0:m.Identification);if(p){let T=p.fullyQualifiedName.replace(`@${jt.UIAnnotationTerms.Identification}`,`/@${jt.UIAnnotationTerms.Identification}`);a[de.SchemaTag.annotationPath]=`/${T}`,i(u,e,a,p)}else u&&(a[de.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${jt.UIAnnotationTerms.Identification}`);n===de.FioriElementsVersion.v2&&T0(r,t)&&!nm(l)&&y0(e,a),delete e.definitions[de.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${de.DefinitionName.ObjectPageFooter}<${de.DefinitionName.ObjectPageFooterActions}>`]}o(um,"addFooterActions");function pm(e,t,n,i,r,a=!1){var m,T;let s=de.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[de.DefinitionName.ObjectPageHeader].properties[de.PropertyName.actions]={$ref:`${$}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[de.SchemaTag.isViewNode]=!0;let p=ri(de.UIVOCABULARY,n.serviceAVT),g=p&&((T=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:T.Identification);g?u[de.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${jt.UIAnnotationTerms.Identification}`,`/@${jt.UIAnnotationTerms.Identification}`):t&&(u[de.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${jt.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&ml(e,!0,l)}o(pm,"addHeaderActions");function dm(e,t){e.properties.header={$ref:`${$}${de.DefinitionName.ObjectPageHeader}`},e.definitions[de.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${de.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[de.DefinitionName.ObjectPageHeader][de.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${jt.UIAnnotationTerms.HeaderInfo}`)}o(dm,"addCommonHeaderSchema");function E0(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(E0,"determineEntitySetOfEntityType");var dr=require("@sap-ux/vocabularies-types/vocabularies/UI");var tt=ne(le());function fa(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(fa,"addEnumToSchema");function su(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let r=[];for(let s in i){let l=i[s];if(t.indexOf(l.term)>-1){let u=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(u)===-1&&r.push(u)}}fa(r,n)}o(su,"addEnumForValidAnnotations");function Ba(e,t,n){let i=t.definitions[n].properties[tt.SchemaTag.annotationPath],r=[dr.UIAnnotationTerms.SelectionVariant,dr.UIAnnotationTerms.SelectionPresentationVariant];su(e,r,i)}o(Ba,"addEnumForSingleTabVariant");function b0(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[dr.UIAnnotationTerms.SelectionVariant,dr.UIAnnotationTerms.SelectionPresentationVariant];su(n.entityType,r,i)}o(b0,"addEnumForMultiTabVariant");function A0(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),fa(r,i)}o(A0,"addEnumForVariantEntitySet");function S0(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[dr.UIAnnotationTerms.FieldGroup];su(e,r,i)}o(S0,"addEnumFieldGroupAnnotationPath");function P0(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],u=a.label||a.title;return{const:l,...u&&{description:u},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[tt.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${$}${tt.DefinitionName.RelatedFacetKeys}`},l]}}}}o(P0,"addDefinitionForRelatedFacetKeys");function hl(e){return e.replace("#","::")}o(hl,"getFacetKeyInSchema");function C0(e,t){return`${e}<${hl(t)}>`}o(C0,"getFacetDefinitionKey");function Et(e,t,n,i=!0){let r=t;if(i&&(r=C0(e,t)),e&&e!==r)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[r]=a}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[r]}o(Et,"parseSchemaDefinition");function gm(e,t,n){let i;return t===tt.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${dr.UIAnnotationTerms.LineItem}`?i=`${$}${n}`:(i=`${$}${n}<${t}>`,Et(n,t,e,!0)),i}o(gm,"getCustomExtensionDefinitionName");function om(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][tt.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let O=gm(t,r,a);t.definitions[r].additionalProperties={$ref:O}}let u=e?tt.DefinitionName.ObjectPageToolBar:tt.DefinitionName.ToolBar,p=`${u}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${u}`]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let g=`${tt.DefinitionName.Actions}<${dt(r)}>`;t.definitions[p].properties.actions.$ref=$+g;let m=r.startsWith(tt.DefinitionName.LineItems)?tt.DefinitionName.Actions:tt.DefinitionName.ObjectPageToolBarActions,T;try{if(T=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),T.properties={},T.additionalProperties=!1,s){let O=gm(t,r,s);T.additionalProperties={$ref:O}}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let A,E;if(r===tt.DefinitionName.LineItems&&t.properties.footer){E=`${tt.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${$}${E}`;try{t.definitions[E]=JSON.parse(JSON.stringify(t.definitions[tt.DefinitionName.GenericFooter]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:tt.DefinitionName.GenericFooter}))}let O=`${tt.DefinitionName.FooterActions}<${dt(r)}>`;t.definitions[E].properties.actions.$ref=$+O,A=t.definitions[O]=JSON.parse(JSON.stringify(t.definitions[tt.DefinitionName.Actions])),A.properties={},A.additionalProperties=!1}return n&&(l=pr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][tt.SchemaTag.annotationPath]=l,A&&(t.definitions[E][tt.SchemaTag.annotationPath]=l))),{actions:T,footerActions:A,lineItemPath:l}}o(om,"addCommonLineItemDefinitions");function x0(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(x0,"getDataTypeFromAnnotation");function tc(e){var n,i,r;let t;return e!=null&&e.Value?e.Visualization==="UI.VisualizationType/Rating"?t="Rating":e.Visualization==="UI.VisualizationType/Progress"?t="Progress":e.$Type==="com.sap.vocabularies.UI.v1.DataPointType"?t="DataPoint":t=(i=(n=e.Value)==null?void 0:n.$target)==null?void 0:i.type.replace("Edm.",""):(r=e==null?void 0:e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")&&(t=x0(e.$Type)),t}o(tc,"determineDataTypeOfTarget");function no(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=tc((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(r=e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")?t=x0(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(no,"determineDataType");function am(e,t){let n=no(t);n&&(e[tt.SchemaTag.dataType]=n)}o(am,"addDataTypeToDefinition");function $n(e,t){return`${$}${C0(e,t)}`}o($n,"getFacetDefinitionLink");function Ha(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${$}${i}`}o(Ha,"addDefinitionRef");function mm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${tt.UIVOCABULARY}`);t=`/${n}/@${tt.UIVOCABULARY}${i}`}return t}o(mm,"getFacetAnnotationPath");function cu(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:$n(a?u:l,t)};let p=Et(a?u:l,t,i,!0);Ua(e,p,t),p[tt.SchemaTag.annotationPath]=e.annotationPath,p[tt.SchemaTag.isViewNode]=!0}o(cu,"handleAddressContact");function AE(e,t,n){typeof e=="object"&&(e[t]=n)}o(AE,"updateSchemaProperty");function yl(e,t,n=dt("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${tt.DefinitionName.Fields4Dialog}${n}`];AE(r.properties.fields.items,"enum",i)}o(yl,"addFieldsType");function f8(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(f8,"findFirstSchemaDefinitionKey");function hm(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let g=hn(t.$ref),m=(p=e.definitions)==null?void 0:p[g];typeof m=="object"&&(s=!m.annotationPath,i!=null&&i.resolveDefinition&&!r&&(r=m.description,a=m.keys))}let l=n,u=f8(a,i==null?void 0:i.keyProperties);return u?l=u.value:i!=null&&i.descriptionAsFallback&&r&&(l=r),{const:l,...r&&{description:r},...s&&{custom:s}}}o(hm,"getEnumEntry");function Ga(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let u=t.properties[l],p=hm(e,u,l,i);r.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];AE(l,"oneOf",r)}else AE(a,"oneOf",r)}o(Ga,"addDescriptiveEnumDefinition");function ec(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),a=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,a),n=r>0?n.substring(r+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}o(ec,"getActionKey");function sm(e,t,n){var i,r,a;try{if(e.Value)t[n][tt.SchemaTag.keys]=[{name:tt.SchemaKeyName.value,value:Zs(e.Value)}];else if(e.$Type===dr.UIAnnotationTypes.DataFieldWithAction||e.$Type===dr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=ec(e.Action,!0);t[n][tt.SchemaTag.keys]=[{name:tt.SchemaKeyName.action,value:s}],l&&(t[n][tt.SchemaTag.target]=l)}else if(e.$Type===dr.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=ec(e.Target.value,!1);t[n][tt.SchemaTag.keys]=[{name:tt.SchemaKeyName.target,value:ul(s)}],t[n][tt.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===dr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===dr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=ec(s,!0);t[n][tt.SchemaTag.keys]=[{name:"SemanticObject",value:e[tt.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][tt.SchemaTag.target]=u)}}catch{return}}o(sm,"addKeyToDefinition");var vl=ne(le());var I0=[{version:"1.124",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.102",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var N0="1.120.23";var L0={name:"@sap/ux-specification",version:N0,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">= 18.0.0 < 19.0.0 || >= 20.0.0 < 21.0.0 || >= 22.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/to-json-schema.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",iXiaSoftV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=iXiaSoft",iXiaSoftV4:"ts-node ./scripts/extractDocu.ts --version=v4 --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",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.31.10","@sap-ux/vocabularies-types":"0.11.4"},devDependencies:{"@sap-ux/annotation-converter":"0.9.6","@sap-ux/edmx-parser":"0.8.1","@sap/ux-specification-types":"1.120.23","@sapui5/types":"latest-1.120","@types/d3":"7.4.3","@types/jquery":"3.5.32","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.7.7",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.4",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.6.3","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 Wa=class Wa{constructor(){Wa.distTagsOfSpec.length===0&&(Wa.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Wa.distTagsOfSpec=[]}getSpecVersion(){return N0}getDistTagsOfVersion(){let t=[],n=I0,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let r=n.find(a=>a.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;let i=[];typeof t=="string"?i.push(t):Array.isArray(t)&&(i=t);let r=!1;if(i.forEach(a=>{if(!this.checkVersionName(a,n))return;let s=a==="latest"?"latest":a.substring(0,a.lastIndexOf("."));Wa.distTagsOfSpec.findIndex(l=>l.endsWith(s))>-1&&(r=!0)}),!r){let a=q.t("WRONGMINUI5VERSION",{minUI5Version:t});se(n,{severity:vl.LogSeverity.Warning,message:a,location:{path:vl.MANIFESTPATH}})}}checkVersionName(t,n){if(!t||t.startsWith("$")){let i=q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});return se(n,{severity:vl.LogSeverity.Info,message:i,location:{path:vl.MANIFESTPATH}}),!1}else return!0}};o(Wa,"DistTagEvaluator"),Wa.distTagsOfSpec=[];var lu=Wa;var fe=ne(le());var Dn=ne(le());var Ai=ne(le());function d8(e){var n;let t=(n=e.view.name)==null?void 0:n.split(".");return t[t.length-1]}o(d8,"getCustomPageName");function R0(e,t){var i,r;return((i=e==null?void 0:e.view)==null?void 0:i.viewType)||((r=t.settings)==null?void 0:r.viewType)||Ai.ViewTypes.XML}o(R0,"getViewType");function g8(e,t){return R0(e,t).toLowerCase()}o(g8,"getViewTypeExtension");function m8(e,t,n){var p,g;let i=o(m=>{var T;return(T=m.split(`${t.id}.`)[1])==null?void 0:T.split(".")},"splitViewPath"),r=t.settings,a=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=(g=e.view)==null?void 0:g.name;s!=null&&s.includes(t.id)?n=i(s):a!=null&&a.includes(t.id)&&(n=[...i(a),...s.split(".")]);let[l,u]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:u}}o(m8,"getViewPath");function h8(e,t){let n=e.entitySet||d8(e),{viewPath:i,fileName:r}=m8(e,t,[n]),a=g8(e,t);return[...i,`${r}.view.${a}`].join("/")}o(h8,"getCustomPagePath");var SE=class SE{constructor(t,n,i,r){this.unhandledControllers=[];let a=_t(Ai.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...r&&{settings:r}},t.fioriElementsVersion?this.app.target={fioriElements:t.fioriElementsVersion,odata:t.oDataVersion}:t.oDataVersion&&(this.app.target.odata=t.oDataVersion),this.schemas=t.appSchemas,this.logger=t.logger}createConfigFiles(){var a;let t={},n={},i;for(let s in this.app.pages){i=this.app.pages[s];let l=((a=this.app.target)==null?void 0:a.odata)===Ai.OdataVersion.v4?s:i.entitySet,u=this.getPageConfigFile(i,l);u&&(t[`${Ai.DirName.Pages}/${s}.json`]=u)}let r=JSON.parse(JSON.stringify(this.app));for(let s in r.pages)delete r.pages[s].config;return n[Ai.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=R0(t,this.app)===Ai.ViewTypes.XML&&!!t.config;if(t.pageType===Ai.PageTypeV4.CustomPage||t.pageType===Ai.PageTypeV4.FPMCustomPage&&!r){let{path:s}=_t(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(a=t.view)==null?void 0:a.id:void 0,l=_t(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=_t(t.pageType);i.$schema=u.path}}return(i&&t.pageType===Ai.PageTypeV4.CustomPage||t.pageType===Ai.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=h8(t,this.app);n.$filePath=i}};o(SE,"AppProvider");var Ka=SE;var ze=ne(le());var nc=ne(le());function ym(e,t,n){if(t.controlType.endsWith(nc.DefinitionName.Table))e[t.propertyId]=t.newValue;else if(t.controlType===nc.ControlType.TableColumn){if(!(n==null?void 0:n.definitions[nc.DefinitionName.TableColumn]).properties[t.propertyId])return;let r=t.controlId.split("-"),s=r[r.length-1].split("template:::TableColumn:::"),l=s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",nc.VOCWITHCOLONS).replace("/",":2f");e.columns||(e.columns={}),e.columns[l]||(e.columns[l]={}),e.columns[l][t.propertyId]=t.newValue}}o(ym,"addFlexForTable");var Tl=ne(le());var Bn=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),F0=o((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2"),_0=o((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function PE(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(PE,"getNewPageTemplate");function y8(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(y8,"findPageInManifest");function v8(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=PE(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:PE(e[t].pageType)}),!Array.isArray(n.pages))){let i=y8(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=PE(e[t].pageType)),CE(t,e,i)}}o(v8,"transformPageFromAssociation");function T8(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let r=e.pages[i];if(((a=r.component)==null?void 0:a.name)===Tl.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Tl.PageTypeV2.ListReport||n.pageType===Tl.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(T8,"deletePage");function CE(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Tl.PageTypeV2.ListReport&&(n.component.list=!0),i.navigationProperty&&(n.navigationProperty=i.navigationProperty),i.defaultLayoutType?n.defaultLayoutType=i.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,i.navigation)){for(let r in i.navigation)v8(t,r,n);Array.isArray(n.pages)||T8(n,t,i)}}o(CE,"transformPageToNewManifestV2");var v1=ne(Xs());var gA={};Ws(gA,{ALPAnalyticalTable:()=>db,ALPGridTable:()=>pb,ALPResponsiveTable:()=>ub,Action:()=>yb,AnalyticalCard:()=>Pl,AnalyticalCardSettings:()=>bm,AnalyticalCardSettingsv4:()=>RE,AnalyticalListPageFilterBar:()=>jE,AnalyticalTable:()=>fb,BaseCustomSection:()=>$u,ChartSettings:()=>Vb,ChartSettingsType:()=>IE,CommonCardSettings:()=>za,CommonFilterBar:()=>bu,CommonHeaderFacetSettings:()=>uc,CommonTableSettings:()=>ts,CommonTableSettingsForSections:()=>hc,CreateWithFilters:()=>ib,CustomCard:()=>NE,DataLoadSettings:()=>ob,DateRange:()=>wE,DefaultDateRange:()=>ME,DefaultSpanObject:()=>OE,FRAGMENT_DEFINITION:()=>Do,Field:()=>VE,FieldForAction:()=>WE,Fields4Dialog:()=>ab,Fields4DialogOP:()=>cA,FooterAction:()=>Tb,FormAction:()=>GE,GlobalChartSettings:()=>aA,GlobalTableSettings:()=>pA,GridTable:()=>gb,HeaderActionStandard:()=>Pb,HeaderSections:()=>Hb,KPISettings:()=>wb,LinkListCardSettings:()=>_E,LinklistCard:()=>vu,ListCard:()=>Sl,ListCardSettings:()=>LE,ListReportFilterBar:()=>$E,MultiEdit:()=>rb,ObjectPageAnalyticalTable:()=>lA,ObjectPageChart:()=>oA,ObjectPageCustomSectionFragment:()=>Bu,ObjectPageCustomSectionView:()=>Hu,ObjectPageFooterAction:()=>Wb,ObjectPageFooterActionStandard:()=>xb,ObjectPageGridTable:()=>fA,ObjectPageHeader:()=>Mb,ObjectPageHeaderAction:()=>kb,ObjectPageHeaderActionStandard:()=>Cb,ObjectPageHeaderSectionAddress:()=>Bb,ObjectPageHeaderSectionChart:()=>jb,ObjectPageHeaderSectionDataPoint:()=>$b,ObjectPageHeaderSectionForm:()=>Ub,ObjectPageLayout:()=>Xb,ObjectPageResponsiveTable:()=>yc,ObjectPageSectionAddressV2:()=>Jb,ObjectPageSectionChartV2:()=>Yb,ObjectPageSectionContactV2:()=>Zb,ObjectPageSectionFormV2:()=>qb,ObjectPageSectionTableV2:()=>zb,ObjectPageSectionV2:()=>Qb,ObjectPageSubSectionChartV2:()=>nA,ObjectPageSubSectionContactV2:()=>iA,ObjectPageSubSectionFormV2:()=>tA,ObjectPageSubSectionTableV2:()=>rA,ObjectPageSubSectionV2:()=>eA,ObjectPageToolBarAction:()=>dA,ObjectPageTreeTable:()=>uA,QuickVariantSelection:()=>sb,QuickVariantSelectionOP:()=>sA,QuickVariantSelectionX:()=>cb,ResponsiveTable:()=>ac,SAP_UI_TABLE:()=>Om,SaveAndEditOP:()=>Sb,SelectionFieldDateSettings:()=>kE,SelectionFields:()=>UE,Share:()=>Eb,ShareOP:()=>bb,StackCard:()=>yu,StackCardSettings:()=>FE,TableALP:()=>Nl,TableCard:()=>Cl,TableCardSettings:()=>DE,TableColumn:()=>Nb,TableColumnAction:()=>qm,TableColumnActionIntentBased:()=>Lb,TableCustomColumn:()=>Rb,ToolBar:()=>_b,ToolBarAction:()=>vb,TreeTable:()=>lb,UpAndDownNavigationOP:()=>Ab,buildIntentBasedActionId:()=>Ib,deleteColumnFromFragment:()=>Rm,deleteType:()=>Rl,exportColorPalette:()=>M0,exportCreateParametersFields:()=>Um,exportCustomColumnsToFragment:()=>tb,exportDateSettingsField:()=>$0,exportDefaultSpan:()=>k0,exportType:()=>Ll,getChartSectionControlId:()=>d1,getContactSubSectionControlId:()=>m1,getCustomColumnPath:()=>Fm,getFormSectionControlId:()=>p1,getRootCustomColumnFromFragmentJSON:()=>Pu,getSectionControlId:()=>gc,getSmartChartControlId:()=>_u,getSmartTableControlId:()=>oc,getSubSectionControlId:()=>g1,getTableSectionControlId:()=>u1,importCreateParameters:()=>km,importDateSettings:()=>BE});var Jn=ne(le());var Ue=o(e=>`${Jn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),Ur=o(e=>Ue(e)+"/tableSettings","getTableSettingPathV2"),D0=o(e=>Ue(e)+"/chartSettings","getChartSettingPathV2"),V0=o(e=>Ue(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var bn=o(()=>Jn.ManifestSection.ovp,"getOVPsettingPath"),xe=o(e=>{let t=[Jn.ManifestSection.ovp];return e.forEach(n=>{n in Jn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var ic=o((e,t)=>`${Jn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Em=o(e=>{let t=[Jn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Fi=o(e=>{let t=[];return t.push(Em(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Qa=o(e=>Fi(e)+"/tableSettings","getGlobalTableSettingsPathV2"),ro=o((e,t,n)=>{let i=[];i.push(Em(e));let r=n.replace(Jn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),gr=o((e,t,n)=>ro(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),w0=o((e,t,n)=>ro(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),xE=o(()=>`sap.ui5/extends/extensions/${Jn.v2.SAPUI5_VIEW_EXTENSION}/${Jn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),ua=o((e,t,n,...i)=>{let r="|",a=n.split(r),s=e[e.length-1].split(r),l="";a.length===4?l=[a[2],a[3]].join(r):a.length===3&&(l=a[2]);let u=[a[0],s[s.length-1],l].join(r);return i.unshift(u),`${xE()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),Tm=class Tm{};o(Tm,"ApplicationV2"),h([Ut("settings")],Tm.prototype,"settings",2);var vm=Tm,io=class io{};o(io,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],io.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],io.prototype,"description",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.50.0"})],io.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.46.0"})],io.prototype,"forceGlobalRefresh",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.74.0"})],io.prototype,"tableColumnVerticalAlignment",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),C({since:"1.56.0"}),Ae("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],io.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.96.0"})],io.prototype,"draftDiscardConfirmationSettings",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),C({since:"1.96.0"})],io.prototype,"statePreservationMode",2);var Xa=io;var fu=ne(le());function E8(e){let t=e.colorPalette,n;if(Array.isArray(t))throw new Error("The array syntax for colorPalette is deprecated and not supported");return t[0]&&typeof t[0]=="object"?(n=t,n.colorPaletteType=fu.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=fu.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:fu.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(E8,"importColorPalette");function M0(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===fu.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(M0,"exportColorPalette");function k0(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(k0,"exportDefaultSpan");var Am=class Am{};o(Am,"ChartSettingsType"),h([y({manifest:{path:o(()=>bn()+"/chartSettings","path")}})],Am.prototype,"showDataLabel",2);var IE=Am,qa=class qa{};o(qa,"DefaultSpanObject"),h([y({manifest:{path:o(t=>xe(t),"path")}})],qa.prototype,"cols",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],qa.prototype,"rows",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],qa.prototype,"showOnlyHeader",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],qa.prototype,"minimumTitleRow",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],qa.prototype,"minimumSubTitleRow",2);var OE=qa,Xt=class Xt{};o(Xt,"CommonCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"entitySet",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"title",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"subTitle",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"dataPointAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"selectionPresentationAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"kpiAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"category",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"dynamicSubtitleAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showFilterInHeader",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"sortBy",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"sortOrder",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"identificationAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"selectionAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"presentationAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"enableLocaleCurrencyFormatting",2),h([y({manifest:{path:o(t=>xe(t),"path"),export:k0}})],Xt.prototype,"defaultSpan",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"requireAppAuthorization",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showSortingInHeader",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"tabs",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"addODataSelect",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showRefresh",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"customParams",2);var za=Xt,El=class El{};o(El,"CustomCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],El.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],El.prototype,"template",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],El.prototype,"settings",2);var NE=El,Ya=class Ya extends za{};o(Ya,"ListCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Ya.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Ya.prototype,"imageSupported",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Ya.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Ya.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Ya.prototype,"listType",2);var LE=Ya,uu=class uu{};o(uu,"ListCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],uu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],uu.prototype,"template",2);var Sl=uu,oo=class oo extends za{};o(oo,"AnalyticalCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],oo.prototype,"chartAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],oo.prototype,"ignoreSapText",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],oo.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],oo.prototype,"navigation",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],oo.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],oo.prototype,"chartProperties",2),h([y({manifest:{path:o(t=>xe(t),"path"),import:E8,export:M0}})],oo.prototype,"colorPalette",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],oo.prototype,"bEnableStableColors",2);var bm=oo,Sm=class Sm extends bm{};o(Sm,"AnalyticalCardSettingsv4"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Sm.prototype,"measureAggregate",2);var RE=Sm,pu=class pu{};o(pu,"AnalyticalCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],pu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],pu.prototype,"template",2);var Pl=pu,bl=class bl extends za{};o(bl,"StackCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],bl.prototype,"itemText",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],bl.prototype,"objectStreamCardsNavigationProperty",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],bl.prototype,"objectStreamCardsSettings",2);var FE=bl,du=class du{};o(du,"StackCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],du.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],du.prototype,"template",2);var yu=du,Al=class Al extends za{};o(Al,"LinkListCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Al.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Al.prototype,"headerAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Al.prototype,"staticContent",2);var _E=Al,gu=class gu{};o(gu,"LinklistCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],gu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],gu.prototype,"template",2);var vu=gu,mu=class mu extends za{};o(mu,"TableCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],mu.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],mu.prototype,"enableAddToInsights",2);var DE=mu,hu=class hu{};o(hu,"TableCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],hu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],hu.prototype,"template",2);var Cl=hu;var U0=ne(le());var b8=o((e,t,n,i,r)=>{let a=qn(n[1],r),s=n.slice(-1)[0];return Yt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Pm=class Pm{};o(Pm,"Field"),h([y({flex:{controlId:b8,controlType:o(()=>U0.ControlType.GroupElement,"controlType")},generate:mt})],Pm.prototype,"visible",2);var VE=Pm;var rc=ne(le());function BE(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),delete t.fields,t}o(BE,"importDateSettings");function A8(e,t,n){let i=e!=null&&e[n]?JSON.parse(JSON.stringify(e==null?void 0:e[n])):void 0,r;return n==="selectedValues"&&typeof i=="string"&&(r=i.split(",")),n==="filter"&&typeof i=="object"&&(r=[],i.forEach((a,s)=>{r[s]=a,a.equals&&typeof a.equals=="string"&&(r[s].equals=a.equals.split(","))})),r}o(A8,"importDateSettingsField");function $0(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];if(n==="selectedValues"&&(e[n]=i.join()),n==="filter")for(let r in i){let a=i[r];e[n][r]=a,a.equals&&Array.isArray(a.equals)&&(e[n][r].equals=a.equals.join())}}o($0,"exportDateSettingsField");var xl=class xl{};o(xl,"DateRange"),h([y({manifest:{path:o(t=>Ue(t)+rc.DATESETTINGSPATH,"path")}}),C({since:"1.77.0"})],xl.prototype,"useDateRange",2),h([y({manifest:{path:o(t=>Ue(t)+rc.DATESETTINGSPATH,"path"),import:BE,export:$g}}),C({since:"1.77.0"})],xl.prototype,"selectedValues",2),h([y({manifest:{path:o(t=>Ue(t)+rc.DATESETTINGSPATH,"path")}}),C({since:"1.77.0"})],xl.prototype,"exclude",2);var wE=xl,Cm={controlId:Yt,controlType:o(()=>rc.ControlType.SmartFilterBar,"controlType")},Tu={path:o((e,t,n)=>`${Ue(e)}${rc.DATESETTINGSPATH}/fields/${n}`,"path")},j0={...Tu,import:A8,export:$0},xm=class xm{};o(xm,"DefaultDateRange"),h([y({manifest:Tu}),C({since:"1.90.0"})],xm.prototype,"operation",2);var ME=xm,Ja=class Ja{};o(Ja,"SelectionFieldDateSettings"),h([y({manifest:j0}),C({since:"1.77.0"})],Ja.prototype,"selectedValues",2),h([y({manifest:Tu}),C({since:"1.77.0"})],Ja.prototype,"exclude",2),h([y({manifest:Tu}),C({since:"1.77.0"})],Ja.prototype,"customDateRangeImplementation",2),h([y({manifest:j0}),C({since:"1.77.0"})],Ja.prototype,"filter",2),h([y({manifest:Tu}),C({since:"1.90.0"})],Ja.prototype,"defaultValue",2);var kE=Ja,HE=class HE{};o(HE,"SelectionFields");var UE=HE,ao=class ao{};o(ao,"CommonFilterBar"),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.38.0"})],ao.prototype,"smartVariantManagement",2),h([y({flex:Cm}),C({since:"1.40.0"})],ao.prototype,"liveMode",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.48.0"})],ao.prototype,"variantManagementHidden",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.52.0"})],ao.prototype,"subTitleIfVariantMgmtHidden",2),h([y({manifest:{path:o(t=>Ue(t)+"/filterSettings","path"),import:BE}}),C({since:"1.77.0"})],ao.prototype,"dateSettings",2),h([y({flex:Cm}),C({since:"1.28.0"})],ao.prototype,"showClearOnFB",2),h([y({flex:Cm}),C({since:"1.38.0"})],ao.prototype,"showFilterConfiguration",2),h([y({flex:Cm}),C({since:"1.28.0"})],ao.prototype,"showRestoreOnFB",2);var bu=ao,Eu=class Eu extends bu{};o(Eu,"AnalyticalListPageFilterBar"),h([y({manifest:{path:o(t=>Ue(t),"path")}})],Eu.prototype,"showGoButtonOnFilterBar",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.60.0"})],Eu.prototype,"filterDefaultsFromSelectionVariant",2);var jE=Eu,Im=class Im extends bu{};o(Im,"ListReportFilterBar"),h([y({manifest:{path:o(t=>Ue(t),"path")}}),Ae("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),C({since:"1.86.0"})],Im.prototype,"annotationPath",2);var $E=Im;var KE=ne(le());var S8=o((e,t,n,i,r)=>{if(i()===KE.ControlType.Button){let a=n[n.length-1],s=qn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return Yt(e,t)},"getFormActionButtonId"),_o={controlId:S8,controlType:o(()=>KE.ControlType.Button,"controlType")},Za=class Za{};o(Za,"FormAction"),h([y({flex:_o,generate:mt})],Za.prototype,"visible",2),h([y({flex:_o})],Za.prototype,"tooltip",2),h([y({flex:_o})],Za.prototype,"icon",2),h([y({flex:_o})],Za.prototype,"activeIcon",2),h([y({flex:_o})],Za.prototype,"type",2);var GE=Za,es=class es{};o(es,"FieldForAction"),h([y({flex:_o,generate:mt})],es.prototype,"visible",2),h([y({flex:_o})],es.prototype,"tooltip",2),h([y({flex:_o})],es.prototype,"icon",2),h([y({flex:_o})],es.prototype,"activeIcon",2),h([y({flex:_o}),C({since:"1.73.0"})],es.prototype,"type",2);var WE=es;var bt=ne(le()),so=ne(Xs());var YE=require("path"),$8=ne(le()),e1=ne(Z0()),t1=require("fs");var B8=(0,YE.join)(__dirname,"templates");var H8=o((e,t)=>{let n=(0,t1.readFileSync)(e,"utf8");return(0,e1.render)(n,t)},"renderTemplate");var zE=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return H8((0,YE.join)(B8,t+".xml"),n)},"getSingleColumnContent"),JE=o((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let i of e){let r=zE(i,t);n=n+`
|
|
289
289
|
`+r}return n+`
|
|
290
|
-
</core:FragmentDefinition>`},"getColumnFragmentContent"),
|
|
290
|
+
</core:FragmentDefinition>`},"getColumnFragmentContent"),ZE=o(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
|
|
291
291
|
<Text text="Placeholder"/>`}),t+`
|
|
292
|
-
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var Om=require("path");var _o="core:FragmentDefinition",Im="sap.ui.table",ZE=new Map([[Et.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Et.ViewTemplateType.TreeTableColumnsExtension,{namespace:Im,name:"Column"}],[Et.ViewTemplateType.GridTableColumnsExtension,{namespace:Im,name:"Column"}],[Et.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Im,name:"AnalyticalColumn"}]]),H8=new Map([[Et.v2.FE_TEMPLATE_V2_LIST_REPORT,Et.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Et.v2.FE_TEMPLATE_V2_ALP,Et.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Et.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Et.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),n1={type:"element",name:"Text",attributes:{text:"Placeholder"}},G8=JSON.stringify(n1);function W8(e,t){let n=t?e[_o]._attributes:e._attributes;if(n){let i=new Map;return Object.keys(n).filter(r=>r.startsWith("xmlns")).forEach(r=>{let a=i.get(n[r]);i.set(n[r],a?[...a,r.split(":")[1]||r]:[r.split(":")[1]||r])}),i}}o(W8,"getFragmentNamespaces");function t1(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(t1,"getTagName");function Nm(e,t,n=e){let i=W8(n,!!(t||n!==e));if(t){let r=ZE.get(t);return t1(r,i.get(r.namespace))}else{let r=ZE.keys();for(let a of r){let s=ZE.get(a),l=i?t1(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(Nm,"getTagNameFromFragmentJSON");function Su(e,t=e){let n=Nm(e,void 0,t);return e[n]}o(Su,"getRootCustomColumnFromFragmentJSON");function K8(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let a=e[t][r];!n.includes(r)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${a.toString()}"`)}return i+="}",i}o(K8,"addP13nData");function i1(e,t){var l,u,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let r=i["core:CustomData"]._attributes.value,a=JSON.parse(r.substr(1,r.length)),s=t.findIndex(g=>g.columnKey===a.columnKey);return s<0?!1:(n=!0,r=K8(t,s),i["core:CustomData"]._attributes.value=r,!e.Text&&!e.Label&&((l=t[s])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(u=t[s])==null?void 0:u.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(p=t[s])==null?void 0:p.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}o(i1,"handleFragmentColumn");function X8(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+Et.FRAGMENTNAMEPART+a;for(let u of t){let p=u.dataSourceUri.split(Om.sep);if(p[p.length-1]===l){let g=JSON.parse((0,ao.xml2json)(u.fileContent,{compact:!0})),m=Nm(g[_o]);m&&(delete g[_o][m],u.fileContent=(0,ao.json2xml)(JSON.stringify(g),{compact:!0,spaces:4}));break}}}o(X8,"deleteColumnsFromFragment");function r1(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===G8&&(e.splice(n,1),t-=1,t===0));n++);}o(r1,"deleteNumberOfCells");function Q8(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+Et.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,ao.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&r1(l.elements[0].elements,u.length),s.fileContent=(0,ao.json2xml)(JSON.stringify(l),{spaces:4});break}}o(Q8,"deleteCellsFromFragment");function Lm(e,t,n,i){if(i){X8(e,i,t,n);let r=t.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&Q8(a,i,n)}}o(Lm,"deleteColumnFromFragment");function q8(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let r=i;r<Object.keys(n).length;r++)t.elements[0].elements.push(n1)}o(q8,"addNewColumnsInFragment");function Y8(e,t){let n=JSON.parse((0,ao.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)q8(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;r1(a,r)}e.fileContent=(0,ao.json2xml)(JSON.stringify(n),{spaces:4})}}o(Y8,"updateNonEmptyCellsFragment");function z8(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(Om.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=Et.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=JE(n):Y8(r,n);break}}return i}o(z8,"updateCellsFragment");function J8(e,t,n,i,r){var g;let a,s,l=t.manifest,u=$n(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){se(r,{severity:Et.LogSeverity.Error,message:q.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=Et.ChangeIndicator.Updated,u.fragmentName=m.fragmentName,u.className=m.className,a=((g=m.fragmentName)==null?void 0:g.replace(i,"<root>/webapp").replace(/[.]/g,Om.sep))+Et.FRAGMENTNAMEPART+p}if(e.indexOf(Et.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Et.ChangeIndicator.Updated;let m=e.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),T=$n(l,m),A=n.reduce((E,O)=>O.cellsFragmentName?O:E);A&&A.cellsFragmentName?(T.fragmentName=s=A.cellsFragmentName,T.className=n[0].className,T.type=p.toUpperCase()):F0(l,m)}return{manifestSection:u,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(J8,"exportCustomColumnsToManifest");function Z8(e,t,n,i,r){let a=YE(e,t);if(a){let s=JSON.parse((0,ao.xml2json)(a,{compact:!0})),l=Su(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(l))||n.push(l);else if(n){let u=[n];u.splice(r,0,l),n=u}else n=[l]}return n}o(Z8,"insertNewColumnInFragment");function eK(e,t){let n=[];for(let i=0;i<e.length;i++)i1(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(eK,"processCustomColumnInArray");function tK(e,t,n){if(e){if(Array.isArray(e))eK(e,t);else if(!i1(e,t)){let r=Nm(n[_o]);r&&(delete n[_o][r],e=void 0)}}return e}o(tK,"maintainExistingColumnInFragment");function nK(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=Z8(a,i,n,r,s)}return n}o(nK,"insertNewColumnsInFragment");function iK(e,t,n,i,r){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=Et.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=zE(i,r);else{let u=JSON.parse((0,ao.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Su(u[_o]),l=tK(l,i,u),l=nK(i,n,l,r,u);let g=Nm(u,r);u[_o][g]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,ao.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(iK,"updateColumnsInFragment");function eb(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=J8(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),T=l.fragmentName,A=T.substr(i.length+1),E=A.split(".");T=E[E.length-1]+Et.FRAGMENTNAMEPART+g;let F=p==null?void 0:p.split("."),U=F?F[F.length-1]:null,K=U?U+Et.FRAGMENTNAMEPART+g:null,j=iK(s,T,A,m,r),ae=!1;if(p?ae=z8(s,K,n):ae=!0,!j){let Z={fileContent:zE(m,r),dataSourceUri:u,changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}if(!ae){let Z={fileContent:JE(n),dataSourceUri:u.replace(T,K),changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}}o(eb,"exportCustomColumnsToFragment");var Rm=o((e,t,n,i)=>{var u,p,g,m;if(!e)return;let r=H8.get((u=e.component)==null?void 0:u.name);if(!i){let T=(m=(g=(p=e.component)==null?void 0:p.settings)==null?void 0:g.tableSettings)==null?void 0:m.type;T||(T="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(T="AnalyticalTable"),i=T+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var ai=ne(le());var tb="/multiEdit",rc=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+ai.PropertyName.table:qt(e,t),"getSmartTableControlId");function wm(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let r in t)n.fields.push(r);return n}o(wm,"importCreateParameters");function km(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(a=>r[a]=e[n][a]||{path:a}),e[n]=r}o(km,"exportCreateParametersFields");function rK(e,t){for(let n in t.variants){let i=t.variants[n],r=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let a in i)r.indexOf(a)!==-1&&(i.tableSettings||(i.tableSettings={}),i.tableSettings[a]=i[a],delete i[a]);e.variants?e.variants[n]=i:e.variants={[n]:i}}}o(rK,"exportVariants");function oK(e,t){t.variants&&(Object.keys(t.variants).length>0?rK(e,t):delete e.variants)}o(oK,"exportQuickVariantSelectionX");function aK(e){var n,i;if(!e||!e.multiEdit)return;let t=JSON.parse(JSON.stringify(e.multiEdit));return t.ignoredFields=(i=(n=e.multiEdit)==null?void 0:n.ignoredFields)==null?void 0:i.split(","),t}o(aK,"importMultiEdit");var Fm=class Fm{};o(Fm,"CreateWithFilters"),h([y({manifest:{path:o(t=>Ue(t)+"/createWithFilters","path")}})],Fm.prototype,"strategy",2);var nb=Fm,Cl=class Cl{};o(Cl,"MultiEdit"),h([y({manifest:{path:o(t=>kr(t)+tb,"path")}})],Cl.prototype,"enabled",2),h([y({manifest:{path:o(t=>kr(t)+tb,"path")}})],Cl.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>kr(t)+tb,"path"),export:jg}})],Cl.prototype,"ignoredFields",2);var ib=Cl;function Cu(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}o(Cu,"importType");function Nl(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(Nl,"exportType");function Ll(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}o(Ll,"deleteType");var _m=class _m{};o(_m,"DataLoadSettings"),h([y({manifest:{path:o(t=>D0(t),"path")}}),x({since:"1.75.2"})],_m.prototype,"loadDataOnAppLaunch",2);var rb=_m,Dm=class Dm{};o(Dm,"Fields4Dialog"),h([y({manifest:{path:o(t=>kr(t)+"/createWithParameterDialog","path"),export:km}}),x({since:"1.77.0"})],Dm.prototype,"fields",2);var ob=Dm,Pu=class Pu{};o(Pu,"QuickVariantSelection"),h([y({manifest:{path:o(t=>Ue(t)+ai.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Pu.prototype,"showCounts",2),h([y({manifest:{path:o(t=>Ue(t)+ai.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Pu.prototype,"variants",2);var ab=Pu,Il=class Il{};o(Il,"QuickVariantSelectionX"),h([y({manifest:{path:o(t=>Ue(t)+ai.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],Il.prototype,"showCounts",2),h([y({manifest:{path:o(t=>Ue(t)+ai.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],Il.prototype,"enableAutoBinding",2),h([y({manifest:{path:o(t=>Ue(t)+ai.QUICKVARPATHX,"path"),export:oK}}),x({since:"1.48.0"})],Il.prototype,"variants",2);var sb=Il,oi=class oi{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}},enableAutoBinding:{since:"1.40.0",deprecated:{since:"1.75.2",text:"Use tableSettings.loadDataOnAppLaunch instead"}}}),"getDeprecated")}};o(oi,"CommonTableSettings"),h([y({manifest:{key:"createWithParameterDialog",path:o(t=>kr(t),"path"),import:wm}}),x({since:"1.77.0"})],oi.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:qt,controlType:o(()=>ai.ControlType.SmartTable,"controlType")}}),x({since:"1.38.0"})],oi.prototype,"showTablePersonalisation",2),h([y({flex:{controlId:rc,controlType:o(()=>ai.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],oi.prototype,"useExportToExcel",2),h([y({flex:{controlId:rc,controlType:o(()=>ai.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],oi.prototype,"exportType",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.48.0"})],oi.prototype,"quickVariantSelection",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.48.0"})],oi.prototype,"quickVariantSelectionX",2),h([y({manifest:{path:o(t=>kr(t),"path")}}),x({since:"1.38.0"})],oi.prototype,"multiSelect",2),h([y({manifest:{path:o(t=>kr(t),"path")}}),x({since:"1.120.0"})],oi.prototype,"copy",2),h([y({manifest:{path:o(t=>kr(t),"path")}}),x({since:"1.70.0"})],oi.prototype,"selectAll",2),h([y({manifest:{path:o(t=>kr(t),"path")}}),x({since:"1.70.0"})],oi.prototype,"selectionLimit",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.75.2"})],oi.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.42.0"})],oi.prototype,"condensedTableLayout",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.56.0"}),Ae("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],oi.prototype,"enableTableFilterInPageVariant",2),h([kt("toolBar")],oi.prototype,"toolBar",2);var es=oi,Do=class Do extends es{};o(Do,"ResponsiveTable"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Cu,export:Nl,delete:Ll}}),x({since:"1.50.0"})],Do.prototype,"type",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.54.0"})],Do.prototype,"createWithFilters",2),h([y({flex:{controlId:rc,controlType:o(()=>ai.ControlType.Table,"controlType")},generate:qn}),x({since:"1.52.0"})],Do.prototype,"popinLayout",2),h([y({flex:{controlId:rc,controlType:o(()=>ai.ControlType.Table,"controlType")}})],Do.prototype,"includeItemInSelection",2),h([y({manifest:{path:o(t=>kr(t),"path")}}),x({since:"1.77.0"})],Do.prototype,"inlineDelete",2),h([y({flex:{controlId:rc,controlType:o(()=>ai.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],Do.prototype,"growingThreshold",2),h([y({manifest:{path:o(t=>kr(t),"path"),import:aK}}),x({since:"1.98.0"})],Do.prototype,"multiEdit",2);var oc=Do,Vm=class Vm extends es{};o(Vm,"TreeTable"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Cu,export:Nl,delete:Ll}}),x({since:"1.50.0"})],Vm.prototype,"type",2);var cb=Vm,so=class so extends es{};o(so,"AnalyticalTable"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Cu,export:Nl,delete:Ll}}),x({since:"1.50.0"})],so.prototype,"type",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],so.prototype,"qualifier",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.38.0"}),y({manifest:{path:o(t=>Ue(t),"path")}})],so.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],so.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.60.0"})],so.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],so.prototype,"autoHide",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.78.0"})],so.prototype,"allFiltersAsInParameters",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.54.0"})],so.prototype,"createWithFilters",2);var lb=so,Vo=class Vo extends es{};o(Vo,"TableALP"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Cu,export:Nl,delete:Ll}}),x({since:"1.50.0"})],Vo.prototype,"type",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],Vo.prototype,"qualifier",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.38.0"}),y({manifest:{path:o(t=>Ue(t),"path")}})],Vo.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],Vo.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.60.0"})],Vo.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],Vo.prototype,"autoHide",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.78.0"})],Vo.prototype,"allFiltersAsInParameters",2);var Ol=Vo,Mm=class Mm extends Ol{};o(Mm,"ALPResponsiveTable"),h([y({flex:{controlId:rc,controlType:o(()=>ai.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],Mm.prototype,"growingThreshold",2);var fb=Mm,gb=class gb extends Ol{};o(gb,"ALPGridTable");var ub=gb,mb=class mb extends Ol{};o(mb,"ALPAnalyticalTable");var pb=mb,xu=class xu extends es{};o(xu,"GridTable"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Cu,export:Nl,delete:Ll}}),x({since:"1.50.0"})],xu.prototype,"type",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),x({since:"1.54.0"})],xu.prototype,"createWithFilters",2);var db=xu;var Iu=ne(le());var sK=o((e,t,n)=>{let{actionId:i}=qi(n);return`${e}action::${Xi(i).replace(":2f","::")}`},"getActionButtonId"),cK=o((e,t,n)=>{let{actionId:i}=qi(n);return`${e}template::${i}`},"getStandardActionButtonId"),lK=o((e,t,n)=>{let{actionId:i}=qi(n);return`${e}${Jg}${i}`},"getStandardFooterActionOPButtonId"),Cb=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=qi(n);return`${e}action::${i}::${Xi(r)}`},"buildIntentBasedActionId"),fK=o((e,t,n)=>{let{actionId:i}=qi(n);return`${e}action::${Xi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),ts={controlId:sK,controlType:o(()=>Iu.ControlType.Button,"controlType")},Ou={controlId:cK,controlType:o(()=>Iu.ControlType.Button,"controlType")},o1={controlId:lK,controlType:o(()=>Iu.ControlType.Button,"controlType")},Um={controlId:fK,controlType:o(()=>Iu.ControlType.Button,"controlType")},ac=class ac{};o(ac,"Action"),h([y({flex:ts})],ac.prototype,"tooltip",2),h([y({flex:ts})],ac.prototype,"icon",2),h([y({flex:ts})],ac.prototype,"activeIcon",2),h([y({flex:ts})],ac.prototype,"type",2);var hb=ac,sc=class sc{};o(sc,"ToolBarAction"),h([y({flex:ts})],sc.prototype,"tooltip",2),h([y({flex:ts})],sc.prototype,"icon",2),h([y({flex:ts})],sc.prototype,"activeIcon",2),h([y({flex:ts})],sc.prototype,"type",2);var yb=sc,cc=class cc{};o(cc,"FooterAction"),h([y({flex:Um})],cc.prototype,"tooltip",2),h([y({flex:Um})],cc.prototype,"icon",2),h([y({flex:Um})],cc.prototype,"activeIcon",2),h([y({flex:Um})],cc.prototype,"type",2);var vb=cc,jm=class jm{};o(jm,"Share"),h([y({flex:Ou})],jm.prototype,"visible",2);var Tb=jm,$m=class $m{};o($m,"ShareOP"),h([y({flex:Ou})],$m.prototype,"visible",2);var Eb=$m,Bm=class Bm{};o(Bm,"UpAndDownNavigationOP"),h([y({flex:Ou})],Bm.prototype,"visible",2);var bb=Bm,Hm=class Hm{};o(Hm,"SaveAndEditOP"),h([y({flex:o1,generate:gt})],Hm.prototype,"visible",2);var Ab=Hm,Gm=class Gm{};o(Gm,"HeaderActionStandard"),h([y({flex:Ou})],Gm.prototype,"visible",2);var Sb=Gm,Wm=class Wm{};o(Wm,"ObjectPageHeaderActionStandard"),h([y({flex:Ou})],Wm.prototype,"visible",2);var Pb=Wm,Km=class Km{};o(Km,"ObjectPageFooterActionStandard"),h([y({flex:o1})],Km.prototype,"visible",2);var xb=Km;var Ru=ne(le());var uK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=qi(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),pK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=qi(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),dK=o((e,t,n)=>{let{actionId:i}=qi(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),Ib={controlId:uK,controlType:o(()=>Ru.ControlType.TableColumn,"controlType")},Nu={controlId:dK,controlType:o(()=>Ru.ControlType.Button,"controlType")},a1={...Ib,controlId:pK},Xm={...Nu,controlId:Cb},Lu=class Lu{};o(Lu,"TableColumn"),h([y({flex:{controlId:mE,controlType:o(()=>Ru.ControlType.TableColumn,"controlType")}})],Lu.prototype,"width",2),h([y({flex:{controlId:mE,controlType:o(()=>Ru.ControlType.TableColumn,"controlType")},generate:qn})],Lu.prototype,"hAlign",2);var Ob=Lu,ua=class ua{};o(ua,"TableColumnAction"),h([y({flex:Ib})],ua.prototype,"width",2),h([y({flex:Ib,generate:qn})],ua.prototype,"hAlign",2),h([y({flex:Nu})],ua.prototype,"tooltip",2),h([y({flex:Nu})],ua.prototype,"icon",2),h([y({flex:Nu})],ua.prototype,"activeIcon",2),h([y({flex:Nu})],ua.prototype,"type",2);var Qm=ua,pa=class pa extends Qm{};o(pa,"TableColumnActionIntentBased"),h([y({flex:a1})],pa.prototype,"width",2),h([y({flex:a1,generate:qn})],pa.prototype,"hAlign",2),h([y({flex:Xm})],pa.prototype,"tooltip",2),h([y({flex:Xm})],pa.prototype,"icon",2),h([y({flex:Xm})],pa.prototype,"activeIcon",2),h([y({flex:Xm})],pa.prototype,"type",2);var Nb=pa,Rb=class Rb{};o(Rb,"TableCustomColumn");var Lb=Rb;var _b=class _b{};o(_b,"ToolBar");var Fb=_b;var lc=ne(le());var Fu=o(e=>e+lc.PropertyName.chart,"getSmartChartControlId"),ns=class ns{};o(ns,"ChartSettings"),h([y({flex:{controlId:Fu,controlType:o(()=>lc.ControlType.SmartChart,"controlType")}})],ns.prototype,"showLegendButton",2),h([y({flex:{controlId:Fu,controlType:o(()=>lc.ControlType.SmartChart,"controlType")}})],ns.prototype,"showDownloadButton",2),h([y({flex:{controlId:Fu,controlType:o(()=>lc.ControlType.SmartChart,"controlType")}})],ns.prototype,"showChartTypeSelectionButton",2),h([y({flex:{controlId:Fu,controlType:o(()=>lc.ControlType.SmartChart,"controlType"),exportFlexValue:o((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:o((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue")}})],ns.prototype,"ignoredChartTypes",2),h([y({manifest:{path:o(t=>_0(t),"path")}}),x({since:"1.81.0"})],ns.prototype,"showDataLabel",2);var Db=ns;var da=class da{};o(da,"KPISettings"),h([y({manifest:{path:o((t,n,i)=>nc(t,i),"path")}})],da.prototype,"model",2),h([y({manifest:{path:o((t,n,i)=>nc(t,i),"path")}})],da.prototype,"entitySet",2),h([y({manifest:{path:o((t,n,i)=>nc(t,i),"path")}})],da.prototype,"qualifier",2),h([y({manifest:{path:o((t,n,i)=>nc(t,i),"path")}})],da.prototype,"filterable",2),h([y({manifest:{path:o((t,n,i)=>nc(t,i),"path")}})],da.prototype,"detailNavigation",2),h([y({manifest:{path:o((t,n,i)=>nc(t,i),"path")}})],da.prototype,"groupId",2);var Vb=da;var s1=ne(le());var gK=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",qt(e,n)},"getAvatarControlId"),is=class is{};o(is,"ObjectPageHeader"),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.46.0"})],is.prototype,"showRelatedApps",2),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.46.0"})],is.prototype,"editableHeaderContent",2),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.48.0"})],is.prototype,"simpleHeaderFacets",2),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.48.0"}),Ae("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],is.prototype,"showHeaderAsCarouselOnDesktop",2),h([y({flex:{controlId:gK,controlType:o(()=>s1.ControlType.Avatar,"controlType")},generate:gt})],is.prototype,"displayShape",2);var Mb=is;var qm=ne(le());var mK=o((e,t,n,i)=>{if(i()===qm.ControlType.Button||i()===qm.ControlType.HeaderAction){let r=n[2];return`${e}action::${Xi(r)}`}return qt(e,t)},"getActionButtonId"),_u={controlId:mK,controlType:o(()=>qm.ControlType.HeaderAction,"controlType")},rs=class rs{};o(rs,"ObjectPageHeaderAction"),h([y({flex:_u,generate:gt})],rs.prototype,"visible",2),h([y({flex:_u})],rs.prototype,"tooltip",2),h([y({flex:_u})],rs.prototype,"icon",2),h([y({flex:_u})],rs.prototype,"activeIcon",2),h([y({flex:_u})],rs.prototype,"type",2);var wb=rs;var Du=ne(le());var th="header::headerEditable::",hK=o((e,t,n,i,r)=>`${e}${th}${r}`,"getDataPointHeaderSectionId"),yK=o((e,t,n,i,r)=>`${e}${th}${r}::ContactAddress`,"getAddressHeaderSectionId"),vK=o((e,t,n,i,r)=>`${e}${th}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),c1=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(Du.FACETTITLEPREFIX)?r.split(Du.FACETTITLEPREFIX)[1]:a;return`${e}${th}${s}::Form`},"getFormHeaderSectionId"),Vu={controlType:o(()=>Du.ControlType.ObjectPageHeaderSection,"controlType")},Ym=class Ym{};o(Ym,"CommonHeaderFacetSettings"),h([y({flex:{...Vu,controlId:c1},generate:gt})],Ym.prototype,"visible",2);var fc=Ym,zm=class zm extends fc{};o(zm,"ObjectPageHeaderSectionForm"),h([y({flex:{...Vu,controlId:c1}})],zm.prototype,"visible",2);var kb=zm,Jm=class Jm extends fc{};o(Jm,"ObjectPageHeaderSectionChart"),h([y({flex:{...Vu,controlId:vK}})],Jm.prototype,"visible",2);var Ub=Jm,Zm=class Zm extends fc{};o(Zm,"ObjectPageHeaderSectionDataPoint"),h([y({flex:{...Vu,controlId:hK}})],Zm.prototype,"visible",2);var jb=Zm,eh=class eh extends fc{};o(eh,"ObjectPageHeaderSectionAddress"),h([y({flex:{...Vu,controlId:yK}})],eh.prototype,"visible",2);var $b=eh,Hb=class Hb{};o(Hb,"HeaderSections");var Bb=Hb;var Wb=ne(le());var TK=o((e,t,n,i)=>{if(i()===Wb.ControlType.Button){let{actionId:r}=qi(n);return`${e}action::${Xi(r)}::Determining`}return qt(e,t)},"getFooterActionButtonId"),Mu={controlId:TK,controlType:o(()=>Wb.ControlType.Button,"controlType")},os=class os{};o(os,"ObjectPageFooterAction"),h([y({flex:Mu,generate:gt})],os.prototype,"visible",2),h([y({flex:Mu})],os.prototype,"tooltip",2),h([y({flex:Mu})],os.prototype,"icon",2),h([y({flex:Mu})],os.prototype,"activeIcon",2),h([y({flex:Mu})],os.prototype,"type",2);var Gb=os;var wu=ne(le());var nh=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",qt(e,n)},"getControlId"),uc=class uc{};o(uc,"ObjectPageLayout"),h([y({flex:{controlId:nh,controlType:o(()=>wu.ControlType.ObjectPageLayout,"controlType")},generate:gt})],uc.prototype,"showHeaderContent",2),h([y({flex:{controlId:nh,controlType:o(()=>wu.ControlType.ObjectPageLayout,"controlType")}})],uc.prototype,"showAnchorBar",2),h([y({flex:{controlId:nh,controlType:o(()=>wu.ControlType.ObjectPageLayout,"controlType")}})],uc.prototype,"useIconTabBar",2),h([y({flex:{controlId:nh,controlType:o(()=>wu.ControlType.ObjectPageLayout,"controlType")}}),x({since:"1.34.0"})],uc.prototype,"alwaysShowContentHeader",2);var Kb=uc;var l1=ne(le());var pc=class pc{};o(pc,"BaseCustomSection"),h([y({manifest:{path:fa,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),x({since:"1.52.0"})],pc.prototype,"relatedFacet",2),h([y({manifest:{path:fa,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),x({since:"1.52.0"})],pc.prototype,"relativePosition",2),h([y({manifest:{path:o((t,n,i)=>fa(t,{},i,l1.ManifestSection.generic),"path")}}),x({since:"1.52.0"})],pc.prototype,"title",2),h([y({manifest:{path:fa}}),x({since:"1.52.0"})],pc.prototype,"className",2);var ju=pc,ku=class ku extends ju{};o(ku,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:fa}}),x({since:"1.52.0"})],ku.prototype,"fragmentName",2),h([y({manifest:{path:fa}}),x({since:"1.52.0"})],ku.prototype,"type",2);var $u=ku,Uu=class Uu extends ju{};o(Uu,"ObjectPageCustomSectionView"),h([y({manifest:{path:fa}}),x({since:"1.52.0"})],Uu.prototype,"viewName",2),h([y({manifest:{path:fa}}),x({since:"1.52.0"})],Uu.prototype,"type",2);var Bu=Uu;var zi=ne(le());var f1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),zi.DefinitionName.Table];return qt(e,s)},"getTableSectionControlId"),u1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"FormGroup"];return qt(e,s)},"getFormSectionControlId"),p1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"Chart"];return qt(e,s)},"getChartSectionControlId"),dc=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"Section"];return qt(e,s)},"getSectionControlId"),d1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"SubSection"];return qt(e,s)},"getSubSectionControlId"),g1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"ContactsList"];return qt(e,s)},"getContactSubSectionControlId"),ih=class ih{};o(ih,"ObjectPageSectionV2"),h([y({flex:{controlId:dc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:gt})],ih.prototype,"visible",2);var Xb=ih,rh=class rh{};o(rh,"ObjectPageSectionFormV2"),h([y({flex:{controlId:dc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:gt})],rh.prototype,"visible",2);var Qb=rh,oh=class oh{};o(oh,"ObjectPageSectionChartV2"),h([y({flex:{controlId:dc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:gt})],oh.prototype,"visible",2);var qb=oh,ah=class ah{};o(ah,"ObjectPageSectionTableV2"),h([y({flex:{controlId:dc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:gt})],ah.prototype,"visible",2);var Yb=ah,sh=class sh{};o(sh,"ObjectPageSectionAddressV2"),h([y({flex:{controlId:dc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:gt})],sh.prototype,"visible",2);var zb=sh,ch=class ch{};o(ch,"ObjectPageSectionContactV2"),h([y({flex:{controlId:dc,controlType:o(()=>zi.ControlType.Section,"controlType")},generate:gt})],ch.prototype,"visible",2);var Jb=ch,lh=class lh{};o(lh,"ObjectPageSubSectionV2"),h([y({flex:{controlId:d1,controlType:o(()=>zi.ControlType.SubSection,"controlType")},generate:gt})],lh.prototype,"visible",2);var Zb=lh,fh=class fh{};o(fh,"ObjectPageSubSectionFormV2"),h([y({flex:{controlId:u1,controlType:o(()=>zi.ControlType.Group,"controlType")},generate:gt})],fh.prototype,"visible",2);var eA=fh,uh=class uh{};o(uh,"ObjectPageSubSectionChartV2"),h([y({flex:{controlId:p1,controlType:o(()=>zi.ControlType.SmartChart,"controlType")},generate:gt})],uh.prototype,"visible",2);var tA=uh,ph=class ph{};o(ph,"ObjectPageSubSectionContactV2"),h([y({flex:{controlId:g1,controlType:o(()=>zi.ControlType.SubSection,"controlType")},generate:gt})],ph.prototype,"visible",2);var nA=ph,dh=class dh{};o(dh,"ObjectPageSubSectionTableV2"),h([y({flex:{controlId:f1,controlType:o(()=>zi.ControlType.SmartTable,"controlType")},generate:gt})],dh.prototype,"visible",2);var iA=dh;var gh=class gh{};o(gh,"ObjectPageChart"),h([y({manifest:{path:V0}}),x({since:"1.78.0"})],gh.prototype,"variantManagement",2);var rA=gh,mh=class mh{};o(mh,"GlobalChartSettings"),h([y({manifest:{path:o(t=>Ri(t)+"/chartSettings","path")}}),x({since:"1.78.0"})],mh.prototype,"variantManagement",2);var oA=mh;var gr=ne(le());var gc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=gr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=Qn(a[0],r),qt(e,a)},"getSmartTableControlId"),Hu=class Hu{};o(Hu,"QuickVariantSelectionOP"),h([y({manifest:{path:o((t,n,i)=>io(t,n,i)+gr.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Hu.prototype,"showCounts",2),h([y({manifest:{path:o((t,n,i)=>io(t,n,i)+gr.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Hu.prototype,"variants",2);var aA=Hu,hh=class hh{};o(hh,"Fields4DialogOP"),h([y({manifest:{path:o((t,n,i)=>dr(t,n,i)+"/createWithParameterDialog","path"),export:km}}),x({since:"1.77.0"})],hh.prototype,"fields",2);var sA=hh,si=class si{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(si,"CommonTableSettingsForSections"),h([y({manifest:{key:"createWithParameterDialog",path:dr,import:wm}}),x({since:"1.77.0"})],si.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:gc,controlType:o(()=>gr.ControlType.SmartTable,"controlType")}}),x({since:"1.28.0"})],si.prototype,"editable",2),h([y({flex:{controlId:gc,controlType:o(()=>gr.ControlType.SmartTable,"controlType")}}),x({since:"1.95.0"}),Ae("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],si.prototype,"showPasteButton",2),h([y({manifest:{path:dr}}),x({since:"1.54.0"})],si.prototype,"multiSelect",2),h([y({manifest:{path:dr}}),x({since:"1.70.0"})],si.prototype,"selectAll",2),h([y({manifest:{path:dr}}),x({since:"1.70.0"})],si.prototype,"selectionLimit",2),h([y({manifest:{path:io}}),x({since:"1.63.0"})],si.prototype,"quickVariantSelection",2),h([y({flex:{controlId:gc,controlType:o(()=>gr.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],si.prototype,"useExportToExcel",2),h([y({flex:{controlId:gc,controlType:o(()=>gr.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],si.prototype,"exportType",2),h([y({manifest:{path:io}}),x({since:"1.48.5"}),Ae("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],si.prototype,"createMode",2),h([y({manifest:{path:io}}),x({since:"1.61.0"})],si.prototype,"disableDefaultInlineCreateSort",2),h([y({manifest:{path:dr}}),x({since:"1.78.0"})],si.prototype,"variantManagement",2),h([y({manifest:{path:dr}}),x({since:"1.120.0"})],si.prototype,"copy",2),h([kt("toolBar")],si.prototype,"toolBar",2);var mc=si,as=class as extends mc{};o(as,"ObjectPageResponsiveTable"),h([y({manifest:{path:dr}})],as.prototype,"type",2),h([y({flex:{controlId:gc,controlType:o(()=>gr.ControlType.Table,"controlType")}})],as.prototype,"includeItemInSelection",2),h([y({flex:{controlId:gc,controlType:o(()=>gr.ControlType.Table,"controlType")},generate:gt}),x({since:"1.52.0"})],as.prototype,"popinLayout",2),h([y({manifest:{path:dr}}),x({since:"1.77.0"})],as.prototype,"inlineDelete",2),h([y({flex:{controlId:gc,controlType:o(()=>gr.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],as.prototype,"growingThreshold",2);var hc=as,Gu=class Gu extends mc{};o(Gu,"ObjectPageAnalyticalTable"),h([y({manifest:{path:dr}})],Gu.prototype,"type",2),h([y({manifest:{path:io}}),x({since:"1.67.0"})],Gu.prototype,"condensedTableLayout",2);var cA=Gu,Wu=class Wu extends mc{};o(Wu,"ObjectPageGridTable"),h([y({manifest:{path:dr}})],Wu.prototype,"type",2),h([y({manifest:{path:io}}),x({since:"1.67.0"})],Wu.prototype,"condensedTableLayout",2);var lA=Wu,Ku=class Ku extends mc{};o(Ku,"ObjectPageTreeTable"),h([y({manifest:{path:dr}})],Ku.prototype,"type",2),h([y({manifest:{path:io}}),x({since:"1.67.0"})],Ku.prototype,"condensedTableLayout",2);var fA=Ku,Mo=class Mo{};o(Mo,"GlobalTableSettings"),h([y({manifest:{path:Xa}}),x({since:"1.70.0"})],Mo.prototype,"selectAll",2),h([y({manifest:{path:Xa}}),x({since:"1.78.0"})],Mo.prototype,"variantManagement",2),h([y({manifest:{path:Xa}}),x({since:"1.120.0"})],Mo.prototype,"copy",2),h([y({manifest:{path:Xa}})],Mo.prototype,"type",2),h([y({manifest:{path:Xa}}),x({since:"1.54.0"})],Mo.prototype,"multiSelect",2),h([y({manifest:{path:Xa}}),x({since:"1.67.0"})],Mo.prototype,"condensedTableLayout",2),h([y({manifest:{path:Xa}}),x({since:"1.77.0"})],Mo.prototype,"inlineDelete",2);var uA=Mo;var m1=ne(le());var EK=o((e,t,n,i,r)=>{let{actionId:a}=qi(n),s=Qn(n[1],r);return`${e}${s}::action::${Xi(a).replace(":2f","::")}`},"getActionButtonId"),Xu={controlId:EK,controlType:o(()=>m1.ControlType.Button,"controlType")},ss=class ss{};o(ss,"ObjectPageToolBarAction"),h([y({flex:Xu,generate:gt})],ss.prototype,"visible",2),h([y({flex:Xu})],ss.prototype,"tooltip",2),h([y({flex:Xu})],ss.prototype,"icon",2),h([y({flex:Xu})],ss.prototype,"activeIcon",2),h([y({flex:Xu})],ss.prototype,"type",2);var pA=ss;function cs(e){return e.replace("/","::")}o(cs,"convertActionKey");function gA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(gA,"convertSelector");function bK(e,t,n,i){var a,s,l,u;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((u=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:u.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}o(bK,"addSmartFilterBarFlex");function AK(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let a=Xi((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let u=a.split(":::"),p=u.find(T=>T.startsWith("sSemanticObject")),g=u.find(T=>T.startsWith("sAction")),m=g.split("sAction::")[1].replace(":2f","::");if(p){let T=`${p.split("::")[1]}::${m}`,A=`${u[0]}:::${p}:::${g}`;i.set(T,r),i.set(r,A)}else i.set(m,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(AK,"filterActions");function SK(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(SK,"addColumnActionConfigPart");function PK(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}o(PK,"getActionId");function xK(e,t,n,i,r){[{name:"HeaderActionStandard",configPart:e.header.actions,id:r},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:r},{name:"FooterAction",configPart:e.footer.actions,id:r&&r.includes("Determining")&&r.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:r},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:r},{name:"TableColumnAction",configPart:e.table.columns,id:r}].forEach(s=>{var u,p;let l=AK(s.name,i);if(l.has(s.id)){let g=l.get(s.id),m=(u=g.split("<")[1])==null?void 0:u.split(">")[0];s.name==="TableColumnAction"&&SK(s,e,m);let T=s.configPart[m];((p=i.definitions[g])==null?void 0:p.properties[t])&&T&&(T[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}o(xK,"addActionFlex");function CK(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=Yn(e[He.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[He.PropertyName.chart],t):e[He.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(CK,"addSmartChartFlex");function IK(e,t,n){var s;let i={controlId:t.controlId,propertyId:t.content.property,newValue:t.content.newBinding?t.content.newBinding:t.content.newValue,controlType:t.controlType,creation:t.creation},r;(!e.table.type||e.table.type===He.v2.TableTypeV2.ResponsiveTable)&&!((s=i.controlId)!=null&&s.includes(He.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(He.PageTypeV2.AnalyticalListPage)))?r="ResponsiveTableWithMultiSelect":r=e.table.constructor.name,(n.definitions[`${r}<LineItems>`].properties[i.propertyId]||i.controlType===He.ControlType.TableColumn)&&hm(e.table,i,n)}o(IK,"addAdditionalFlexChanges");function yh(e,t,n,i){var r,a;try{let s=ja(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(He.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(He.PageTypeV2.AnalyticalListPage))switch(s.controlId=gA(s.controlId),s.controlType){case He.ControlType.SmartFilterBar:{bK(e,l,s,n);break}case He.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case He.ControlType.Button:{let u=PK(s);u&&xK(e,l,s,n,u);break}case He.ControlType.SmartChart:{CK(e,l,s,n);break}default:{IK(e,s,n);break}}}catch(s){se(i,{severity:He.LogSeverity.Error,message:q.t("FLEXERROR")},...s)}}o(yh,"addFlex");function OK(e,t){if(e==="quickVariantSelectionX"&&t[e])for(let n in t[e].variants){let i=t[e].variants[n];if(i.tableSettings){for(let r in i.tableSettings)i[r]=i.tableSettings[r];delete i.tableSettings}}}o(OK,"adjustQuickVariantSelectionX");function Fn(e,t,n,i,r,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let u in n.properties){let p=Yn(e,u);if(p!=null&&p.manifest){let g=p.manifest.path([i],t,a);s=$n(t,g),ul(p,s,u,e),Xg(l,s,g,r)}OK(u,e)}}o(Fn,"transferSettingsOfObject");function vh(e,t){var r,a,s,l,u,p,g,m,T;let n=e[He.ManifestSection.generic].pages[t],i=He.v2.TableTypeV2.ResponsiveTable;return(r=e[He.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[He.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[He.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.tableSettings)==null?void 0:g.type)||((m=n.component)==null?void 0:m.settings.tableType):((T=n.component)==null?void 0:T.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=He.v2.TableTypeV2.AnalyticalTable),i}o(vh,"determineTableType");function h1(e,t,n,i,r,a,s){var l,u;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,g=JSON.parse(p.substr(1,p.length)),m=e.Text&&e.Text._attributes&&e.Text._attributes.text;m||(m=e.Label&&e.Label._attributes&&e.Label._attributes.text);let T={...(l=e._attributes)!=null&&l.id?{id:(u=e._attributes)==null?void 0:u.id}:{},...m?{text:m}:{},...g,...g.columnKey?{columnKey:g.columnKey}:{},...g.columnIndex?{columnIndex:Number(g.columnIndex)}:{},...g.leadingProperty?{leadingProperty:g.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(T.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(T)}}o(h1,"evaluateFragmentColumn");function NK(e,t,n,i){let r;if(e===He.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,u]=a.split("|");s===He.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&u===i&&(r=t[a].fragmentName)}return r}o(NK,"determineCellsFragmentName");function LK(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,y1.xml2json)(e[0].fileContent,{compact:!0}))[_o],g=Su(p);if(g)if((l=t[He.PropertyName.table])!=null&&l.columns||(t[He.PropertyName.table].columns={}),Array.isArray(g))for(let m of g)h1(m,n,i,r,t,a,s);else h1(g,n,i,r,t,a,s)}}o(LK,"analyzeFilteredFragments");function RK(e,t,n,i,r){for(let a of Object.keys(e)){let s=a.split("|"),[l,u]=s,p=s[2],g=He.ViewTemplateType[l];if(g&&"|"+u===t){let m=e[a].type?e[a].type.toLowerCase():"xml",T=e[a].fragmentName;if(!T)continue;let A=NK(g,e,u,p),E=T.split(".");T=E[E.length-1]+He.FRAGMENTNAMEPART+m;let O=r.filter(F=>F.dataSourceUri.endsWith(T));LK(O,i,e,a,p,g,A)}}}o(RK,"processViewExtensions");function Rl(e,t,n,i,r,a){if(!r)return;let s="|"+(a&&a.target?a.target:n.entitySet);if(t[He.ManifestSection.ui5]&&t[He.ManifestSection.ui5].extends&&t[He.ManifestSection.ui5].extends.extensions&&t[He.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"]){let l=He.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),u=t[He.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][l];if(!u)return;RK(u,s,a,e,r)}}o(Rl,"addFragments");function Th(e,t,n){if(e.header={actions:{}},n[He.DefinitionName.HeaderActionsStandard]){let i=n[He.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(He.PageTypeV2.ListReport,r,{})}}o(Th,"importHeaderActions");var Xt=ne(le());var T1=ne(le());var mA={};Gs(mA,{ANNOERR:()=>zK,ANNOTATIONFILE:()=>JK,COMPONENTNOTDEFINED:()=>ZK,CONTEXTPATHCOULDNOTBERESOLVED:()=>XK,ENTITYSETNOTFOUND:()=>KK,FLEXERROR:()=>l3,INCONSISTENTSCHEMA:()=>v3,INVALIDANCHOR:()=>f3,INVALIDEXTENSION:()=>u3,INVALIDTARGETDEFINITION:()=>d3,MACROS_ANNOTATION_ERROR:()=>h3,NOALP:()=>qK,NOANNOTATIONFORPATH:()=>GK,NOBASEPATH:()=>DK,NOCHARTS:()=>i3,NOENTITYSET:()=>UK,NOENTITYTYPE4SET:()=>jK,NOFE:()=>MK,NOFRAGMENT:()=>p3,NOGENERICSCHEMA:()=>wK,NOID4SECTION:()=>g3,NOLINEITEMANDCHARTS:()=>r3,NOLINEITEMFORPATH:()=>WK,NOLINEITEMS:()=>n3,NOLR:()=>QK,NOPAGEFORENTITYSET:()=>kK,NOPAGES:()=>VK,NOPRESENTATIONVARIANT:()=>$K,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>BK,NOPRESENTATIONVARIANTFORSPV:()=>HK,NOROUTING:()=>e3,NOROUTINGID:()=>c3,NOTARGET:()=>s3,NOTARGETS:()=>a3,NOTEMPLATE:()=>YK,NOUIANNOTATIONS:()=>t3,NOVISUALIZATIONS:()=>o3,TYPEERROR:()=>y3,UNKNOWNMINUI5VERSION:()=>_K,WRONGMINUI5VERSION:()=>FK,XMLPARSEFAILURE:()=>m3,default:()=>T3});var FK="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",_K="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",DK="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",VK="No pages found in manifest for app with id '{{- appId}}'",MK="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",wK="No generic schema found while generating page schema for {{- pageType}}",kK="No page found in manifest for entitySet '{{- entitySet}}'",UK="No entitySet defined for page '{{- pageName}}'",jK="No entityType could be found for the given entity set '{{- entitySetName}}'",$K="No PresentationVariant defined for '{{- key}}'",BK="No PresentationVariant found for default SelectionPresentationVariant",HK="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",GK="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",WK="No line item annotation found for path '{{- annotationPath}}'",KK="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",XK="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",QK="No page found in manifest for list report",qK="No page found in manifest for analytical list page",YK="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",zK="Error while parsing annotation files",JK="Annotation file: '{{- file}}'",ZK="Component name is not defined for page '{{- pageName}}'",e3="Incomplete manifest definition: no routing defined",t3="No UI Annotation defined for entity type '{{- entityType }}'",n3="UI.LineItem annotation has not been defined",i3="UI.Chart annotation has not been defined",r3="Neither UI.LineItem nor UI.Chart annotation has been defined",o3="Empty Collection for Visualizations",a3="Incomplete manifest definition: no targets defined",s3="Invalid reference: annotation target '{{- target}}' not found",c3="No page found in manifest for routingId '{{- routingId}}'",l3="Error while parsing flex change",f3="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",u3="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",p3="fragmentName is undefined for columnKey '{{- columnKey}}'",d3="Invalid routing target definition in manifest: '{{- target}}'",g3="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",m3="Parsing of XML file failed with error - {{- error}}",h3="Error during resolving annotation for '{{- control}}'",y3="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",v3="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",T3={WRONGMINUI5VERSION:FK,UNKNOWNMINUI5VERSION:_K,NOBASEPATH:DK,NOPAGES:VK,NOFE:MK,NOGENERICSCHEMA:wK,NOPAGEFORENTITYSET:kK,NOENTITYSET:UK,NOENTITYTYPE4SET:jK,NOPRESENTATIONVARIANT:$K,NOPRESENTATIONVARIANTFORDEFAULTSPV:BK,NOPRESENTATIONVARIANTFORSPV:HK,NOANNOTATIONFORPATH:GK,NOLINEITEMFORPATH:WK,ENTITYSETNOTFOUND:KK,CONTEXTPATHCOULDNOTBERESOLVED:XK,NOLR:QK,NOALP:qK,NOTEMPLATE:YK,ANNOERR:zK,ANNOTATIONFILE:JK,COMPONENTNOTDEFINED:ZK,NOROUTING:e3,NOUIANNOTATIONS:t3,NOLINEITEMS:n3,NOCHARTS:i3,NOLINEITEMANDCHARTS:r3,NOVISUALIZATIONS:o3,NOTARGETS:a3,NOTARGET:s3,NOROUTINGID:c3,FLEXERROR:l3,INVALIDANCHOR:f3,INVALIDEXTENSION:u3,NOFRAGMENT:p3,INVALIDTARGETDEFINITION:d3,NOID4SECTION:g3,XMLPARSEFAILURE:m3,MACROS_ANNOTATION_ERROR:h3,TYPEERROR:y3,INCONSISTENTSCHEMA:v3};function v1(e){e.addResourceBundle(e.language,"translation",mA)}o(v1,"initI18n");function tn(e="en"){q.init({resources:{en:{translation:T1.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
292
|
+
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var Nm=require("path");var Do="core:FragmentDefinition",Om="sap.ui.table",eb=new Map([[bt.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[bt.ViewTemplateType.TreeTableColumnsExtension,{namespace:Om,name:"Column"}],[bt.ViewTemplateType.GridTableColumnsExtension,{namespace:Om,name:"Column"}],[bt.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Om,name:"AnalyticalColumn"}]]),G8=new Map([[bt.v2.FE_TEMPLATE_V2_LIST_REPORT,bt.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[bt.v2.FE_TEMPLATE_V2_ALP,bt.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[bt.v2.FE_TEMPLATE_V2_OBJECT_PAGE,bt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),i1={type:"element",name:"Text",attributes:{text:"Placeholder"}},W8=JSON.stringify(i1);function K8(e,t){var i;let n=t?(i=e==null?void 0:e[Do])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let r=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=r.get(n[a]);r.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),r}else throw new Error("Invalid fragment, please check content")}o(K8,"getFragmentNamespaces");function n1(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(n1,"getTagName");function Lm(e,t,n=e){let i=K8(n,!!(t||n!==e));if(t){let r=eb.get(t);return n1(r,i.get(r.namespace))}else{let r=eb.keys();for(let a of r){let s=eb.get(a),l=i?n1(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(Lm,"getTagNameFromFragmentJSON");function Pu(e,t=e){let n=Lm(e,void 0,t);return e[n]}o(Pu,"getRootCustomColumnFromFragmentJSON");function X8(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let a=e[t][r];!n.includes(r)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${a.toString()}"`)}return i+="}",i}o(X8,"addP13nData");function r1(e,t){var l,u,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let r=i["core:CustomData"]._attributes.value,a=JSON.parse(r.substr(1,r.length)),s=t.findIndex(g=>g.columnKey===a.columnKey);return s<0?!1:(n=!0,r=X8(t,s),i["core:CustomData"]._attributes.value=r,!e.Text&&!e.Label&&((l=t[s])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(u=t[s])==null?void 0:u.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(p=t[s])==null?void 0:p.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}o(r1,"handleFragmentColumn");function Q8(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+bt.FRAGMENTNAMEPART+a;for(let u of t){let p=u.dataSourceUri.split(Nm.sep);if(p[p.length-1]===l){let g=JSON.parse((0,so.xml2json)(u.fileContent,{compact:!0}));try{let m=Lm(g[Do]);m&&(delete g[Do][m],u.fileContent=(0,so.json2xml)(JSON.stringify(g),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${u.dataSourceUri}, please check content`)}break}}}o(Q8,"deleteColumnsFromFragment");function o1(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===W8&&(e.splice(n,1),t-=1,t===0));n++);}o(o1,"deleteNumberOfCells");function q8(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+bt.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,so.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&o1(l.elements[0].elements,u.length),s.fileContent=(0,so.json2xml)(JSON.stringify(l),{spaces:4});break}}o(q8,"deleteCellsFromFragment");function Rm(e,t,n,i){if(i){Q8(e,i,t,n);let r=t.replace(bt.ViewTemplateType.ResponsiveTableColumnsExtension,bt.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&q8(a,i,n)}}o(Rm,"deleteColumnFromFragment");function Y8(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let r=i;r<Object.keys(n).length;r++)t.elements[0].elements.push(i1)}o(Y8,"addNewColumnsInFragment");function z8(e,t){let n=JSON.parse((0,so.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)Y8(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;o1(a,r)}e.fileContent=(0,so.json2xml)(JSON.stringify(n),{spaces:4})}}o(z8,"updateNonEmptyCellsFragment");function J8(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(Nm.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=bt.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=ZE(n):z8(r,n);break}}return i}o(J8,"updateCellsFragment");function Z8(e,t,n,i,r){var g;let a,s,l=t.manifest,u=Bn(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){se(r,{severity:bt.LogSeverity.Error,message:q.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=bt.ChangeIndicator.Updated,u.fragmentName=m.fragmentName,u.className=m.className,a=((g=m.fragmentName)==null?void 0:g.replace(i,"<root>/webapp").replace(/[.]/g,Nm.sep))+bt.FRAGMENTNAMEPART+p}if(e.indexOf(bt.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=bt.ChangeIndicator.Updated;let m=e.replace(bt.ViewTemplateType.ResponsiveTableColumnsExtension,bt.ViewTemplateType.ResponsiveTableCellsExtension),T=Bn(l,m),A=n.reduce((E,O)=>O.cellsFragmentName?O:E);A&&A.cellsFragmentName?(T.fragmentName=s=A.cellsFragmentName,T.className=n[0].className,T.type=p.toUpperCase()):_0(l,m)}return{manifestSection:u,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(Z8,"exportCustomColumnsToManifest");function eK(e,t,n,i,r){let a=zE(e,t);if(a){let s=JSON.parse((0,so.xml2json)(a,{compact:!0})),l=Pu(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(l))||n.push(l);else if(n){let u=[n];u.splice(r,0,l),n=u}else n=[l]}return n}o(eK,"insertNewColumnInFragment");function tK(e,t){let n=[];for(let i=0;i<e.length;i++)r1(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(tK,"processCustomColumnInArray");function nK(e,t,n){if(e){if(Array.isArray(e))tK(e,t);else if(!r1(e,t)){let r=Lm(n[Do]);r&&(delete n[Do][r],e=void 0)}}return e}o(nK,"maintainExistingColumnInFragment");function iK(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=eK(a,i,n,r,s)}return n}o(iK,"insertNewColumnsInFragment");function rK(e,t,n,i,r){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=bt.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=JE(i,r);else{let u=JSON.parse((0,so.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Pu(u[Do]),l=nK(l,i,u),l=iK(i,n,l,r,u);let g=Lm(u,r);u[Do][g]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,so.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(rK,"updateColumnsInFragment");function tb(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=Z8(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),T=l.fragmentName,A=T.substr(i.length+1),E=A.split(".");T=E[E.length-1]+bt.FRAGMENTNAMEPART+g;let F=p==null?void 0:p.split("."),U=F?F[F.length-1]:null,K=U?U+bt.FRAGMENTNAMEPART+g:null,j=rK(s,T,A,m,r),ae=!1;if(p?ae=J8(s,K,n):ae=!0,!j){let Z={fileContent:JE(m,r),dataSourceUri:u,changeIndicator:bt.ChangeIndicator.Deleted};e.fragments.push(Z)}if(!ae){let Z={fileContent:ZE(n),dataSourceUri:u.replace(T,K),changeIndicator:bt.ChangeIndicator.Deleted};e.fragments.push(Z)}}o(tb,"exportCustomColumnsToFragment");var Fm=o((e,t,n,i)=>{var u,p,g,m;if(!e)return;let r=G8.get((u=e.component)==null?void 0:u.name);if(!i){let T=(m=(g=(p=e.component)==null?void 0:p.settings)==null?void 0:g.tableSettings)==null?void 0:m.type;T||(T="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(T="AnalyticalTable"),i=T+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var si=ne(le());var nb="/multiEdit",oc=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+si.PropertyName.table:Yt(e,t),"getSmartTableControlId");function km(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let r in t)n.fields.push(r);return n}o(km,"importCreateParameters");function Um(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(a=>r[a]=e[n][a]||{path:a}),e[n]=r}o(Um,"exportCreateParametersFields");function oK(e,t){for(let n in t.variants){let i=t.variants[n],r=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let a in i)r.indexOf(a)!==-1&&(i.tableSettings||(i.tableSettings={}),i.tableSettings[a]=i[a],delete i[a]);e.variants?e.variants[n]=i:e.variants={[n]:i}}}o(oK,"exportVariants");function aK(e,t){t.variants&&(Object.keys(t.variants).length>0?oK(e,t):delete e.variants)}o(aK,"exportQuickVariantSelectionX");function sK(e){var n,i;if(!e||!e.multiEdit)return;let t=JSON.parse(JSON.stringify(e.multiEdit));return t.ignoredFields=(i=(n=e.multiEdit)==null?void 0:n.ignoredFields)==null?void 0:i.split(","),t}o(sK,"importMultiEdit");var _m=class _m{};o(_m,"CreateWithFilters"),h([y({manifest:{path:o(t=>Ue(t)+"/createWithFilters","path")}})],_m.prototype,"strategy",2);var ib=_m,Il=class Il{};o(Il,"MultiEdit"),h([y({manifest:{path:o(t=>Ur(t)+nb,"path")}})],Il.prototype,"enabled",2),h([y({manifest:{path:o(t=>Ur(t)+nb,"path")}})],Il.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>Ur(t)+nb,"path"),export:$g}})],Il.prototype,"ignoredFields",2);var rb=Il;function Iu(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}o(Iu,"importType");function Ll(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(Ll,"exportType");function Rl(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}o(Rl,"deleteType");var Dm=class Dm{};o(Dm,"DataLoadSettings"),h([y({manifest:{path:o(t=>V0(t),"path")}}),C({since:"1.75.2"})],Dm.prototype,"loadDataOnAppLaunch",2);var ob=Dm,Vm=class Vm{};o(Vm,"Fields4Dialog"),h([y({manifest:{path:o(t=>Ur(t)+"/createWithParameterDialog","path"),export:Um}}),C({since:"1.77.0"})],Vm.prototype,"fields",2);var ab=Vm,Cu=class Cu{};o(Cu,"QuickVariantSelection"),h([y({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Cu.prototype,"showCounts",2),h([y({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Cu.prototype,"variants",2);var sb=Cu,Ol=class Ol{};o(Ol,"QuickVariantSelectionX"),h([y({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATHX,"path")}}),C({since:"1.48.0"})],Ol.prototype,"showCounts",2),h([y({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATHX,"path")}}),C({since:"1.48.0"})],Ol.prototype,"enableAutoBinding",2),h([y({manifest:{path:o(t=>Ue(t)+si.QUICKVARPATHX,"path"),export:aK}}),C({since:"1.48.0"})],Ol.prototype,"variants",2);var cb=Ol,ai=class ai{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}},enableAutoBinding:{since:"1.40.0",deprecated:{since:"1.75.2",text:"Use tableSettings.loadDataOnAppLaunch instead"}}}),"getDeprecated")}};o(ai,"CommonTableSettings"),h([y({manifest:{key:"createWithParameterDialog",path:o(t=>Ur(t),"path"),import:km}}),C({since:"1.77.0"})],ai.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:Yt,controlType:o(()=>si.ControlType.SmartTable,"controlType")}}),C({since:"1.38.0"})],ai.prototype,"showTablePersonalisation",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.SmartTable,"controlType")}}),C({since:"1.26.0"})],ai.prototype,"useExportToExcel",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.SmartTable,"controlType")}}),C({since:"1.50.0"})],ai.prototype,"exportType",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.48.0"})],ai.prototype,"quickVariantSelection",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.48.0"})],ai.prototype,"quickVariantSelectionX",2),h([y({manifest:{path:o(t=>Ur(t),"path")}}),C({since:"1.38.0"})],ai.prototype,"multiSelect",2),h([y({manifest:{path:o(t=>Ur(t),"path")}}),C({since:"1.120.0"})],ai.prototype,"copy",2),h([y({manifest:{path:o(t=>Ur(t),"path")}}),C({since:"1.70.0"})],ai.prototype,"selectAll",2),h([y({manifest:{path:o(t=>Ur(t),"path")}}),C({since:"1.70.0"})],ai.prototype,"selectionLimit",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.75.2"})],ai.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.42.0"})],ai.prototype,"condensedTableLayout",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.56.0"}),Ae("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],ai.prototype,"enableTableFilterInPageVariant",2),h([Ut("toolBar")],ai.prototype,"toolBar",2);var ts=ai,Vo=class Vo extends ts{};o(Vo,"ResponsiveTable"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Iu,export:Ll,delete:Rl}}),C({since:"1.50.0"})],Vo.prototype,"type",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.54.0"})],Vo.prototype,"createWithFilters",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType")},generate:Yn}),C({since:"1.52.0"})],Vo.prototype,"popinLayout",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType")}})],Vo.prototype,"includeItemInSelection",2),h([y({manifest:{path:o(t=>Ur(t),"path")}}),C({since:"1.77.0"})],Vo.prototype,"inlineDelete",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],Vo.prototype,"growingThreshold",2),h([y({manifest:{path:o(t=>Ur(t),"path"),import:sK}}),C({since:"1.98.0"})],Vo.prototype,"multiEdit",2);var ac=Vo,wm=class wm extends ts{};o(wm,"TreeTable"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Iu,export:Ll,delete:Rl}}),C({since:"1.50.0"})],wm.prototype,"type",2);var lb=wm,co=class co extends ts{};o(co,"AnalyticalTable"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Iu,export:Ll,delete:Rl}}),C({since:"1.50.0"})],co.prototype,"type",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],co.prototype,"qualifier",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.38.0"}),y({manifest:{path:o(t=>Ue(t),"path")}})],co.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],co.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.60.0"})],co.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],co.prototype,"autoHide",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.78.0"})],co.prototype,"allFiltersAsInParameters",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.54.0"})],co.prototype,"createWithFilters",2);var fb=co,wo=class wo extends ts{};o(wo,"TableALP"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Iu,export:Ll,delete:Rl}}),C({since:"1.50.0"})],wo.prototype,"type",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],wo.prototype,"qualifier",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.38.0"}),y({manifest:{path:o(t=>Ue(t),"path")}})],wo.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],wo.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.60.0"})],wo.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>Ue(t),"path")}})],wo.prototype,"autoHide",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.78.0"})],wo.prototype,"allFiltersAsInParameters",2);var Nl=wo,Mm=class Mm extends Nl{};o(Mm,"ALPResponsiveTable"),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],Mm.prototype,"growingThreshold",2);var ub=Mm,mb=class mb extends Nl{};o(mb,"ALPGridTable");var pb=mb,hb=class hb extends Nl{};o(hb,"ALPAnalyticalTable");var db=hb,xu=class xu extends ts{};o(xu,"GridTable"),h([y({manifest:{path:o(t=>Ue(t),"path"),import:Iu,export:Ll,delete:Rl}}),C({since:"1.50.0"})],xu.prototype,"type",2),h([y({manifest:{path:o(t=>Ue(t),"path")}}),C({since:"1.54.0"})],xu.prototype,"createWithFilters",2);var gb=xu;var Ou=ne(le());var cK=o((e,t,n)=>{let{actionId:i}=Yi(n);return`${e}action::${Qi(i).replace(":2f","::")}`},"getActionButtonId"),lK=o((e,t,n)=>{let{actionId:i}=Yi(n);return`${e}template::${i}`},"getStandardActionButtonId"),fK=o((e,t,n)=>{let{actionId:i}=Yi(n);return`${e}${Zg}${i}`},"getStandardFooterActionOPButtonId"),Ib=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Yi(n);return`${e}action::${i}::${Qi(r)}`},"buildIntentBasedActionId"),uK=o((e,t,n)=>{let{actionId:i}=Yi(n);return`${e}action::${Qi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),ns={controlId:cK,controlType:o(()=>Ou.ControlType.Button,"controlType")},Nu={controlId:lK,controlType:o(()=>Ou.ControlType.Button,"controlType")},a1={controlId:fK,controlType:o(()=>Ou.ControlType.Button,"controlType")},jm={controlId:uK,controlType:o(()=>Ou.ControlType.Button,"controlType")},sc=class sc{};o(sc,"Action"),h([y({flex:ns})],sc.prototype,"tooltip",2),h([y({flex:ns})],sc.prototype,"icon",2),h([y({flex:ns})],sc.prototype,"activeIcon",2),h([y({flex:ns})],sc.prototype,"type",2);var yb=sc,cc=class cc{};o(cc,"ToolBarAction"),h([y({flex:ns})],cc.prototype,"tooltip",2),h([y({flex:ns})],cc.prototype,"icon",2),h([y({flex:ns})],cc.prototype,"activeIcon",2),h([y({flex:ns})],cc.prototype,"type",2);var vb=cc,lc=class lc{};o(lc,"FooterAction"),h([y({flex:jm})],lc.prototype,"tooltip",2),h([y({flex:jm})],lc.prototype,"icon",2),h([y({flex:jm})],lc.prototype,"activeIcon",2),h([y({flex:jm})],lc.prototype,"type",2);var Tb=lc,$m=class $m{};o($m,"Share"),h([y({flex:Nu})],$m.prototype,"visible",2);var Eb=$m,Bm=class Bm{};o(Bm,"ShareOP"),h([y({flex:Nu})],Bm.prototype,"visible",2);var bb=Bm,Hm=class Hm{};o(Hm,"UpAndDownNavigationOP"),h([y({flex:Nu})],Hm.prototype,"visible",2);var Ab=Hm,Gm=class Gm{};o(Gm,"SaveAndEditOP"),h([y({flex:a1,generate:mt})],Gm.prototype,"visible",2);var Sb=Gm,Wm=class Wm{};o(Wm,"HeaderActionStandard"),h([y({flex:Nu})],Wm.prototype,"visible",2);var Pb=Wm,Km=class Km{};o(Km,"ObjectPageHeaderActionStandard"),h([y({flex:Nu})],Km.prototype,"visible",2);var Cb=Km,Xm=class Xm{};o(Xm,"ObjectPageFooterActionStandard"),h([y({flex:a1})],Xm.prototype,"visible",2);var xb=Xm;var Fu=ne(le());var pK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=Yi(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),dK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=Yi(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),gK=o((e,t,n)=>{let{actionId:i}=Yi(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),Ob={controlId:pK,controlType:o(()=>Fu.ControlType.TableColumn,"controlType")},Lu={controlId:gK,controlType:o(()=>Fu.ControlType.Button,"controlType")},s1={...Ob,controlId:dK},Qm={...Lu,controlId:Ib},Ru=class Ru{};o(Ru,"TableColumn"),h([y({flex:{controlId:hE,controlType:o(()=>Fu.ControlType.TableColumn,"controlType")}})],Ru.prototype,"width",2),h([y({flex:{controlId:hE,controlType:o(()=>Fu.ControlType.TableColumn,"controlType")},generate:Yn})],Ru.prototype,"hAlign",2);var Nb=Ru,pa=class pa{};o(pa,"TableColumnAction"),h([y({flex:Ob})],pa.prototype,"width",2),h([y({flex:Ob,generate:Yn})],pa.prototype,"hAlign",2),h([y({flex:Lu})],pa.prototype,"tooltip",2),h([y({flex:Lu})],pa.prototype,"icon",2),h([y({flex:Lu})],pa.prototype,"activeIcon",2),h([y({flex:Lu})],pa.prototype,"type",2);var qm=pa,da=class da extends qm{};o(da,"TableColumnActionIntentBased"),h([y({flex:s1})],da.prototype,"width",2),h([y({flex:s1,generate:Yn})],da.prototype,"hAlign",2),h([y({flex:Qm})],da.prototype,"tooltip",2),h([y({flex:Qm})],da.prototype,"icon",2),h([y({flex:Qm})],da.prototype,"activeIcon",2),h([y({flex:Qm})],da.prototype,"type",2);var Lb=da,Fb=class Fb{};o(Fb,"TableCustomColumn");var Rb=Fb;var Db=class Db{};o(Db,"ToolBar");var _b=Db;var fc=ne(le());var _u=o(e=>e+fc.PropertyName.chart,"getSmartChartControlId"),is=class is{};o(is,"ChartSettings"),h([y({flex:{controlId:_u,controlType:o(()=>fc.ControlType.SmartChart,"controlType")}})],is.prototype,"showLegendButton",2),h([y({flex:{controlId:_u,controlType:o(()=>fc.ControlType.SmartChart,"controlType")}})],is.prototype,"showDownloadButton",2),h([y({flex:{controlId:_u,controlType:o(()=>fc.ControlType.SmartChart,"controlType")}})],is.prototype,"showChartTypeSelectionButton",2),h([y({flex:{controlId:_u,controlType:o(()=>fc.ControlType.SmartChart,"controlType"),exportFlexValue:o((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:o((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue")}})],is.prototype,"ignoredChartTypes",2),h([y({manifest:{path:o(t=>D0(t),"path")}}),C({since:"1.81.0"})],is.prototype,"showDataLabel",2);var Vb=is;var ga=class ga{};o(ga,"KPISettings"),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ga.prototype,"model",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ga.prototype,"entitySet",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ga.prototype,"qualifier",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ga.prototype,"filterable",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ga.prototype,"detailNavigation",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ga.prototype,"groupId",2);var wb=ga;var c1=ne(le());var mK=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Yt(e,n)},"getAvatarControlId"),rs=class rs{};o(rs,"ObjectPageHeader"),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.46.0"})],rs.prototype,"showRelatedApps",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.46.0"})],rs.prototype,"editableHeaderContent",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.48.0"})],rs.prototype,"simpleHeaderFacets",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.48.0"}),Ae("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],rs.prototype,"showHeaderAsCarouselOnDesktop",2),h([y({flex:{controlId:mK,controlType:o(()=>c1.ControlType.Avatar,"controlType")},generate:mt})],rs.prototype,"displayShape",2);var Mb=rs;var Ym=ne(le());var hK=o((e,t,n,i)=>{if(i()===Ym.ControlType.Button||i()===Ym.ControlType.HeaderAction){let r=n[2];return`${e}action::${Qi(r)}`}return Yt(e,t)},"getActionButtonId"),Du={controlId:hK,controlType:o(()=>Ym.ControlType.HeaderAction,"controlType")},os=class os{};o(os,"ObjectPageHeaderAction"),h([y({flex:Du,generate:mt})],os.prototype,"visible",2),h([y({flex:Du})],os.prototype,"tooltip",2),h([y({flex:Du})],os.prototype,"icon",2),h([y({flex:Du})],os.prototype,"activeIcon",2),h([y({flex:Du})],os.prototype,"type",2);var kb=os;var Vu=ne(le());var nh="header::headerEditable::",yK=o((e,t,n,i,r)=>`${e}${nh}${r}`,"getDataPointHeaderSectionId"),vK=o((e,t,n,i,r)=>`${e}${nh}${r}::ContactAddress`,"getAddressHeaderSectionId"),TK=o((e,t,n,i,r)=>`${e}${nh}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),l1=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(Vu.FACETTITLEPREFIX)?r.split(Vu.FACETTITLEPREFIX)[1]:a;return`${e}${nh}${s}::Form`},"getFormHeaderSectionId"),wu={controlType:o(()=>Vu.ControlType.ObjectPageHeaderSection,"controlType")},zm=class zm{};o(zm,"CommonHeaderFacetSettings"),h([y({flex:{...wu,controlId:l1},generate:mt})],zm.prototype,"visible",2);var uc=zm,Jm=class Jm extends uc{};o(Jm,"ObjectPageHeaderSectionForm"),h([y({flex:{...wu,controlId:l1}})],Jm.prototype,"visible",2);var Ub=Jm,Zm=class Zm extends uc{};o(Zm,"ObjectPageHeaderSectionChart"),h([y({flex:{...wu,controlId:TK}})],Zm.prototype,"visible",2);var jb=Zm,eh=class eh extends uc{};o(eh,"ObjectPageHeaderSectionDataPoint"),h([y({flex:{...wu,controlId:yK}})],eh.prototype,"visible",2);var $b=eh,th=class th extends uc{};o(th,"ObjectPageHeaderSectionAddress"),h([y({flex:{...wu,controlId:vK}})],th.prototype,"visible",2);var Bb=th,Gb=class Gb{};o(Gb,"HeaderSections");var Hb=Gb;var Kb=ne(le());var EK=o((e,t,n,i)=>{if(i()===Kb.ControlType.Button){let{actionId:r}=Yi(n);return`${e}action::${Qi(r)}::Determining`}return Yt(e,t)},"getFooterActionButtonId"),Mu={controlId:EK,controlType:o(()=>Kb.ControlType.Button,"controlType")},as=class as{};o(as,"ObjectPageFooterAction"),h([y({flex:Mu,generate:mt})],as.prototype,"visible",2),h([y({flex:Mu})],as.prototype,"tooltip",2),h([y({flex:Mu})],as.prototype,"icon",2),h([y({flex:Mu})],as.prototype,"activeIcon",2),h([y({flex:Mu})],as.prototype,"type",2);var Wb=as;var ku=ne(le());var ih=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Yt(e,n)},"getControlId"),pc=class pc{};o(pc,"ObjectPageLayout"),h([y({flex:{controlId:ih,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType")},generate:mt})],pc.prototype,"showHeaderContent",2),h([y({flex:{controlId:ih,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType")}})],pc.prototype,"showAnchorBar",2),h([y({flex:{controlId:ih,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType")}})],pc.prototype,"useIconTabBar",2),h([y({flex:{controlId:ih,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType")}}),C({since:"1.34.0"})],pc.prototype,"alwaysShowContentHeader",2);var Xb=pc;var f1=ne(le());var dc=class dc{};o(dc,"BaseCustomSection"),h([y({manifest:{path:ua,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),C({since:"1.52.0"})],dc.prototype,"relatedFacet",2),h([y({manifest:{path:ua,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),C({since:"1.52.0"})],dc.prototype,"relativePosition",2),h([y({manifest:{path:o((t,n,i)=>ua(t,{},i,f1.ManifestSection.generic),"path")}}),C({since:"1.52.0"})],dc.prototype,"title",2),h([y({manifest:{path:ua}}),C({since:"1.52.0"})],dc.prototype,"className",2);var $u=dc,Uu=class Uu extends $u{};o(Uu,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:ua}}),C({since:"1.52.0"})],Uu.prototype,"fragmentName",2),h([y({manifest:{path:ua}}),C({since:"1.52.0"})],Uu.prototype,"type",2);var Bu=Uu,ju=class ju extends $u{};o(ju,"ObjectPageCustomSectionView"),h([y({manifest:{path:ua}}),C({since:"1.52.0"})],ju.prototype,"viewName",2),h([y({manifest:{path:ua}}),C({since:"1.52.0"})],ju.prototype,"type",2);var Hu=ju;var Ji=ne(le());var u1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),Ji.DefinitionName.Table];return Yt(e,s)},"getTableSectionControlId"),p1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"FormGroup"];return Yt(e,s)},"getFormSectionControlId"),d1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Chart"];return Yt(e,s)},"getChartSectionControlId"),gc=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Section"];return Yt(e,s)},"getSectionControlId"),g1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"SubSection"];return Yt(e,s)},"getSubSectionControlId"),m1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"ContactsList"];return Yt(e,s)},"getContactSubSectionControlId"),rh=class rh{};o(rh,"ObjectPageSectionV2"),h([y({flex:{controlId:gc,controlType:o(()=>Ji.ControlType.Section,"controlType")},generate:mt})],rh.prototype,"visible",2);var Qb=rh,oh=class oh{};o(oh,"ObjectPageSectionFormV2"),h([y({flex:{controlId:gc,controlType:o(()=>Ji.ControlType.Section,"controlType")},generate:mt})],oh.prototype,"visible",2);var qb=oh,ah=class ah{};o(ah,"ObjectPageSectionChartV2"),h([y({flex:{controlId:gc,controlType:o(()=>Ji.ControlType.Section,"controlType")},generate:mt})],ah.prototype,"visible",2);var Yb=ah,sh=class sh{};o(sh,"ObjectPageSectionTableV2"),h([y({flex:{controlId:gc,controlType:o(()=>Ji.ControlType.Section,"controlType")},generate:mt})],sh.prototype,"visible",2);var zb=sh,ch=class ch{};o(ch,"ObjectPageSectionAddressV2"),h([y({flex:{controlId:gc,controlType:o(()=>Ji.ControlType.Section,"controlType")},generate:mt})],ch.prototype,"visible",2);var Jb=ch,lh=class lh{};o(lh,"ObjectPageSectionContactV2"),h([y({flex:{controlId:gc,controlType:o(()=>Ji.ControlType.Section,"controlType")},generate:mt})],lh.prototype,"visible",2);var Zb=lh,fh=class fh{};o(fh,"ObjectPageSubSectionV2"),h([y({flex:{controlId:g1,controlType:o(()=>Ji.ControlType.SubSection,"controlType")},generate:mt})],fh.prototype,"visible",2);var eA=fh,uh=class uh{};o(uh,"ObjectPageSubSectionFormV2"),h([y({flex:{controlId:p1,controlType:o(()=>Ji.ControlType.Group,"controlType")},generate:mt})],uh.prototype,"visible",2);var tA=uh,ph=class ph{};o(ph,"ObjectPageSubSectionChartV2"),h([y({flex:{controlId:d1,controlType:o(()=>Ji.ControlType.SmartChart,"controlType")},generate:mt})],ph.prototype,"visible",2);var nA=ph,dh=class dh{};o(dh,"ObjectPageSubSectionContactV2"),h([y({flex:{controlId:m1,controlType:o(()=>Ji.ControlType.SubSection,"controlType")},generate:mt})],dh.prototype,"visible",2);var iA=dh,gh=class gh{};o(gh,"ObjectPageSubSectionTableV2"),h([y({flex:{controlId:u1,controlType:o(()=>Ji.ControlType.SmartTable,"controlType")},generate:mt})],gh.prototype,"visible",2);var rA=gh;var mh=class mh{};o(mh,"ObjectPageChart"),h([y({manifest:{path:w0}}),C({since:"1.78.0"})],mh.prototype,"variantManagement",2);var oA=mh,hh=class hh{};o(hh,"GlobalChartSettings"),h([y({manifest:{path:o(t=>Fi(t)+"/chartSettings","path")}}),C({since:"1.78.0"})],hh.prototype,"variantManagement",2);var aA=hh;var mr=ne(le());var mc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=mr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=qn(a[0],r),Yt(e,a)},"getSmartTableControlId"),Gu=class Gu{};o(Gu,"QuickVariantSelectionOP"),h([y({manifest:{path:o((t,n,i)=>ro(t,n,i)+mr.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Gu.prototype,"showCounts",2),h([y({manifest:{path:o((t,n,i)=>ro(t,n,i)+mr.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Gu.prototype,"variants",2);var sA=Gu,yh=class yh{};o(yh,"Fields4DialogOP"),h([y({manifest:{path:o((t,n,i)=>gr(t,n,i)+"/createWithParameterDialog","path"),export:Um}}),C({since:"1.77.0"})],yh.prototype,"fields",2);var cA=yh,ci=class ci{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(ci,"CommonTableSettingsForSections"),h([y({manifest:{key:"createWithParameterDialog",path:gr,import:km}}),C({since:"1.77.0"})],ci.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:mc,controlType:o(()=>mr.ControlType.SmartTable,"controlType")}}),C({since:"1.28.0"})],ci.prototype,"editable",2),h([y({flex:{controlId:mc,controlType:o(()=>mr.ControlType.SmartTable,"controlType")}}),C({since:"1.95.0"}),Ae("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],ci.prototype,"showPasteButton",2),h([y({manifest:{path:gr}}),C({since:"1.54.0"})],ci.prototype,"multiSelect",2),h([y({manifest:{path:gr}}),C({since:"1.70.0"})],ci.prototype,"selectAll",2),h([y({manifest:{path:gr}}),C({since:"1.70.0"})],ci.prototype,"selectionLimit",2),h([y({manifest:{path:ro}}),C({since:"1.63.0"})],ci.prototype,"quickVariantSelection",2),h([y({flex:{controlId:mc,controlType:o(()=>mr.ControlType.SmartTable,"controlType")}}),C({since:"1.26.0"})],ci.prototype,"useExportToExcel",2),h([y({flex:{controlId:mc,controlType:o(()=>mr.ControlType.SmartTable,"controlType")}}),C({since:"1.50.0"})],ci.prototype,"exportType",2),h([y({manifest:{path:ro}}),C({since:"1.48.5"}),Ae("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],ci.prototype,"createMode",2),h([y({manifest:{path:ro}}),C({since:"1.61.0"})],ci.prototype,"disableDefaultInlineCreateSort",2),h([y({manifest:{path:gr}}),C({since:"1.78.0"})],ci.prototype,"variantManagement",2),h([y({manifest:{path:gr}}),C({since:"1.120.0"})],ci.prototype,"copy",2),h([Ut("toolBar")],ci.prototype,"toolBar",2);var hc=ci,ss=class ss extends hc{};o(ss,"ObjectPageResponsiveTable"),h([y({manifest:{path:gr}})],ss.prototype,"type",2),h([y({flex:{controlId:mc,controlType:o(()=>mr.ControlType.Table,"controlType")}})],ss.prototype,"includeItemInSelection",2),h([y({flex:{controlId:mc,controlType:o(()=>mr.ControlType.Table,"controlType")},generate:mt}),C({since:"1.52.0"})],ss.prototype,"popinLayout",2),h([y({manifest:{path:gr}}),C({since:"1.77.0"})],ss.prototype,"inlineDelete",2),h([y({flex:{controlId:mc,controlType:o(()=>mr.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],ss.prototype,"growingThreshold",2);var yc=ss,Wu=class Wu extends hc{};o(Wu,"ObjectPageAnalyticalTable"),h([y({manifest:{path:gr}})],Wu.prototype,"type",2),h([y({manifest:{path:ro}}),C({since:"1.67.0"})],Wu.prototype,"condensedTableLayout",2);var lA=Wu,Ku=class Ku extends hc{};o(Ku,"ObjectPageGridTable"),h([y({manifest:{path:gr}})],Ku.prototype,"type",2),h([y({manifest:{path:ro}}),C({since:"1.67.0"})],Ku.prototype,"condensedTableLayout",2);var fA=Ku,Xu=class Xu extends hc{};o(Xu,"ObjectPageTreeTable"),h([y({manifest:{path:gr}})],Xu.prototype,"type",2),h([y({manifest:{path:ro}}),C({since:"1.67.0"})],Xu.prototype,"condensedTableLayout",2);var uA=Xu,Mo=class Mo{};o(Mo,"GlobalTableSettings"),h([y({manifest:{path:Qa}}),C({since:"1.70.0"})],Mo.prototype,"selectAll",2),h([y({manifest:{path:Qa}}),C({since:"1.78.0"})],Mo.prototype,"variantManagement",2),h([y({manifest:{path:Qa}}),C({since:"1.120.0"})],Mo.prototype,"copy",2),h([y({manifest:{path:Qa}})],Mo.prototype,"type",2),h([y({manifest:{path:Qa}}),C({since:"1.54.0"})],Mo.prototype,"multiSelect",2),h([y({manifest:{path:Qa}}),C({since:"1.67.0"})],Mo.prototype,"condensedTableLayout",2),h([y({manifest:{path:Qa}}),C({since:"1.77.0"})],Mo.prototype,"inlineDelete",2);var pA=Mo;var h1=ne(le());var bK=o((e,t,n,i,r)=>{let{actionId:a}=Yi(n),s=qn(n[1],r);return`${e}${s}::action::${Qi(a).replace(":2f","::")}`},"getActionButtonId"),Qu={controlId:bK,controlType:o(()=>h1.ControlType.Button,"controlType")},cs=class cs{};o(cs,"ObjectPageToolBarAction"),h([y({flex:Qu,generate:mt})],cs.prototype,"visible",2),h([y({flex:Qu})],cs.prototype,"tooltip",2),h([y({flex:Qu})],cs.prototype,"icon",2),h([y({flex:Qu})],cs.prototype,"activeIcon",2),h([y({flex:Qu})],cs.prototype,"type",2);var dA=cs;function ls(e){return e.replace("/","::")}o(ls,"convertActionKey");function mA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(mA,"convertSelector");function AK(e,t,n,i){var a,s,l,u;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((u=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:u.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}o(AK,"addSmartFilterBarFlex");function SK(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let a=Qi((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let u=a.split(":::"),p=u.find(T=>T.startsWith("sSemanticObject")),g=u.find(T=>T.startsWith("sAction")),m=g.split("sAction::")[1].replace(":2f","::");if(p){let T=`${p.split("::")[1]}::${m}`,A=`${u[0]}:::${p}:::${g}`;i.set(T,r),i.set(r,A)}else i.set(m,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(SK,"filterActions");function PK(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(PK,"addColumnActionConfigPart");function CK(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}o(CK,"getActionId");function xK(e,t,n,i,r){[{name:"HeaderActionStandard",configPart:e.header.actions,id:r},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:r},{name:"FooterAction",configPart:e.footer.actions,id:r&&r.includes("Determining")&&r.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:r},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:r},{name:"TableColumnAction",configPart:e.table.columns,id:r}].forEach(s=>{var u,p;let l=SK(s.name,i);if(l.has(s.id)){let g=l.get(s.id),m=(u=g.split("<")[1])==null?void 0:u.split(">")[0];s.name==="TableColumnAction"&&PK(s,e,m);let T=s.configPart[m];((p=i.definitions[g])==null?void 0:p.properties[t])&&T&&(T[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}o(xK,"addActionFlex");function IK(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=zn(e[ze.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[ze.PropertyName.chart],t):e[ze.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(IK,"addSmartChartFlex");function OK(e,t,n){var s;let i={controlId:t.controlId,propertyId:t.content.property,newValue:t.content.newBinding?t.content.newBinding:t.content.newValue,controlType:t.controlType,creation:t.creation},r;(!e.table.type||e.table.type===ze.v2.TableTypeV2.ResponsiveTable)&&!((s=i.controlId)!=null&&s.includes(ze.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(ze.PageTypeV2.AnalyticalListPage)))?r="ResponsiveTableWithMultiSelect":r=e.table.constructor.name,(n.definitions[`${r}<LineItems>`].properties[i.propertyId]||i.controlType===ze.ControlType.TableColumn)&&ym(e.table,i,n)}o(OK,"addAdditionalFlexChanges");function vh(e,t,n,i){var r,a;try{let s=$a(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(ze.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(ze.PageTypeV2.AnalyticalListPage))switch(s.controlId=mA(s.controlId),s.controlType){case ze.ControlType.SmartFilterBar:{AK(e,l,s,n);break}case ze.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case ze.ControlType.Button:{let u=CK(s);u&&xK(e,l,s,n,u);break}case ze.ControlType.SmartChart:{IK(e,l,s,n);break}default:{OK(e,s,n);break}}}catch(s){se(i,{severity:ze.LogSeverity.Error,message:q.t("FLEXERROR")},...s)}}o(vh,"addFlex");function NK(e,t){if(e==="quickVariantSelectionX"&&t[e])for(let n in t[e].variants){let i=t[e].variants[n];if(i.tableSettings){for(let r in i.tableSettings)i[r]=i.tableSettings[r];delete i.tableSettings}}}o(NK,"adjustQuickVariantSelectionX");function _n(e,t,n,i,r,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let u in n.properties){let p=zn(e,u);if(p!=null&&p.manifest){let g=p.manifest.path([i],t,a);s=Bn(t,g),pl(p,s,u,e),Qg(l,s,g,r)}NK(u,e)}}o(_n,"transferSettingsOfObject");function Th(e,t){var r,a,s,l,u,p,g,m,T;let n=e[ze.ManifestSection.generic].pages[t],i=ze.v2.TableTypeV2.ResponsiveTable;return(r=e[ze.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[ze.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[ze.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.tableSettings)==null?void 0:g.type)||((m=n.component)==null?void 0:m.settings.tableType):((T=n.component)==null?void 0:T.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=ze.v2.TableTypeV2.AnalyticalTable),i}o(Th,"determineTableType");function y1(e,t,n,i,r,a,s){var l,u;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,g=JSON.parse(p.substr(1,p.length)),m=e.Text&&e.Text._attributes&&e.Text._attributes.text;m||(m=e.Label&&e.Label._attributes&&e.Label._attributes.text);let T={...(l=e._attributes)!=null&&l.id?{id:(u=e._attributes)==null?void 0:u.id}:{},...m?{text:m}:{},...g,...g.columnKey?{columnKey:g.columnKey}:{},...g.columnIndex?{columnIndex:Number(g.columnIndex)}:{},...g.leadingProperty?{leadingProperty:g.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(T.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(T)}}o(y1,"evaluateFragmentColumn");function LK(e,t,n,i){let r;if(e===ze.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,u]=a.split("|");s===ze.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&u===i&&(r=t[a].fragmentName)}return r}o(LK,"determineCellsFragmentName");function RK(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,v1.xml2json)(e[0].fileContent,{compact:!0}))[Do];try{let g=Pu(p);if(g)if((l=t[ze.PropertyName.table])!=null&&l.columns||(t[ze.PropertyName.table].columns={}),Array.isArray(g))for(let m of g)y1(m,n,i,r,t,a,s);else y1(g,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(RK,"analyzeFilteredFragments");function FK(e,t,n,i){for(let r of Object.keys(e)){let a=r.split("|"),[s,l]=a,u=a[2],p=ze.ViewTemplateType[s];if(p&&"|"+l===t){let g=e[r].type?e[r].type.toLowerCase():"xml",m=e[r].fragmentName;if(!m)continue;let T=LK(p,e,l,u),A=m.split(".");m=A[A.length-1]+ze.FRAGMENTNAMEPART+g;let E=i.fragments.filter(O=>O.dataSourceUri.endsWith(m));try{RK(E,n,e,r,u,p,T)}catch(O){i.logger.error(O.message)}}}}o(FK,"processViewExtensions");function Fl(e,t,n,i,r){var s,l,u;if(!t.fragments)return;let a="|"+(r&&r.target?r.target:n.entitySet);if((u=(l=(s=t.manifest[ze.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&u["sap.ui.viewExtensions"]){let p=ze.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),g=t.manifest[ze.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!g)return;FK(g,a,e,t)}}o(Fl,"addFragments");function Eh(e,t,n){if(e.header={actions:{}},n[ze.DefinitionName.HeaderActionsStandard]){let i=n[ze.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(ze.PageTypeV2.ListReport,r,{})}}o(Eh,"importHeaderActions");var Qt=ne(le());var E1=ne(le());var hA={};Ws(hA,{ANNOERR:()=>JK,ANNOTATIONFILE:()=>ZK,COMPONENTNOTDEFINED:()=>e3,CONTEXTPATHCOULDNOTBERESOLVED:()=>QK,ENTITYSETNOTFOUND:()=>XK,FLEXERROR:()=>f3,INCONSISTENTSCHEMA:()=>T3,INVALIDANCHOR:()=>u3,INVALIDEXTENSION:()=>p3,INVALIDTARGETDEFINITION:()=>g3,MACROS_ANNOTATION_ERROR:()=>y3,NOALP:()=>YK,NOANNOTATIONFORPATH:()=>WK,NOBASEPATH:()=>VK,NOCHARTS:()=>r3,NOENTITYSET:()=>jK,NOENTITYTYPE4SET:()=>$K,NOFE:()=>MK,NOFRAGMENT:()=>d3,NOGENERICSCHEMA:()=>kK,NOID4SECTION:()=>m3,NOLINEITEMANDCHARTS:()=>o3,NOLINEITEMFORPATH:()=>KK,NOLINEITEMS:()=>i3,NOLR:()=>qK,NOPAGEFORENTITYSET:()=>UK,NOPAGES:()=>wK,NOPRESENTATIONVARIANT:()=>BK,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>HK,NOPRESENTATIONVARIANTFORSPV:()=>GK,NOROUTING:()=>t3,NOROUTINGID:()=>l3,NOTARGET:()=>c3,NOTARGETS:()=>s3,NOTEMPLATE:()=>zK,NOUIANNOTATIONS:()=>n3,NOVISUALIZATIONS:()=>a3,TYPEERROR:()=>v3,UNKNOWNMINUI5VERSION:()=>DK,WRONGMINUI5VERSION:()=>_K,XMLPARSEFAILURE:()=>h3,default:()=>E3});var _K="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",DK="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",VK="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",wK="No pages found in manifest for app with id '{{- appId}}'",MK="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",kK="No generic schema found while generating page schema for {{- pageType}}",UK="No page found in manifest for entitySet '{{- entitySet}}'",jK="No entitySet defined for page '{{- pageName}}'",$K="No entityType could be found for the given entity set '{{- entitySetName}}'",BK="No PresentationVariant defined for '{{- key}}'",HK="No PresentationVariant found for default SelectionPresentationVariant",GK="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",WK="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",KK="No line item annotation found for path '{{- annotationPath}}'",XK="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",QK="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",qK="No page found in manifest for list report",YK="No page found in manifest for analytical list page",zK="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",JK="Error while parsing annotation files",ZK="Annotation file: '{{- file}}'",e3="Component name is not defined for page '{{- pageName}}'",t3="Incomplete manifest definition: no routing defined",n3="No UI Annotation defined for entity type '{{- entityType }}'",i3="UI.LineItem annotation has not been defined",r3="UI.Chart annotation has not been defined",o3="Neither UI.LineItem nor UI.Chart annotation has been defined",a3="Empty Collection for Visualizations",s3="Incomplete manifest definition: no targets defined",c3="Invalid reference: annotation target '{{- target}}' not found",l3="No page found in manifest for routingId '{{- routingId}}'",f3="Error while parsing flex change",u3="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",p3="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",d3="fragmentName is undefined for columnKey '{{- columnKey}}'",g3="Invalid routing target definition in manifest: '{{- target}}'",m3="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",h3="Parsing of XML file failed with error - {{- error}}",y3="Error during resolving annotation for '{{- control}}'",v3="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",T3="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",E3={WRONGMINUI5VERSION:_K,UNKNOWNMINUI5VERSION:DK,NOBASEPATH:VK,NOPAGES:wK,NOFE:MK,NOGENERICSCHEMA:kK,NOPAGEFORENTITYSET:UK,NOENTITYSET:jK,NOENTITYTYPE4SET:$K,NOPRESENTATIONVARIANT:BK,NOPRESENTATIONVARIANTFORDEFAULTSPV:HK,NOPRESENTATIONVARIANTFORSPV:GK,NOANNOTATIONFORPATH:WK,NOLINEITEMFORPATH:KK,ENTITYSETNOTFOUND:XK,CONTEXTPATHCOULDNOTBERESOLVED:QK,NOLR:qK,NOALP:YK,NOTEMPLATE:zK,ANNOERR:JK,ANNOTATIONFILE:ZK,COMPONENTNOTDEFINED:e3,NOROUTING:t3,NOUIANNOTATIONS:n3,NOLINEITEMS:i3,NOCHARTS:r3,NOLINEITEMANDCHARTS:o3,NOVISUALIZATIONS:a3,NOTARGETS:s3,NOTARGET:c3,NOROUTINGID:l3,FLEXERROR:f3,INVALIDANCHOR:u3,INVALIDEXTENSION:p3,NOFRAGMENT:d3,INVALIDTARGETDEFINITION:g3,NOID4SECTION:m3,XMLPARSEFAILURE:h3,MACROS_ANNOTATION_ERROR:y3,TYPEERROR:v3,INCONSISTENTSCHEMA:T3};function T1(e){e.addResourceBundle(e.language,"translation",hA)}o(T1,"initI18n");function nn(e="en"){q.init({resources:{en:{translation:E1.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
293
293
|
|
|
294
|
-
`}),v1(q)}o(tn,"initI18n");var jt=ne(le());function yc(e,t,n){var r;let i;for(let a in e){let s=e[a];if(aa((r=s.component)==null?void 0:r.name)===jt.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=yc(s.pages,t,n),i))return n.unshift(a),i}}o(yc,"findObjectPageV2");function Fl(e,t){var n;for(let i in e){let r=e[i];if(aa((n=r.component)==null?void 0:n.name)===jt.PageTypeV2.ListReport)return t.push(i),r}}o(Fl,"findListReportPageV2");function _l(e){if(!e.manifest[jt.ManifestSection.generic]){se(e.logger,{severity:jt.LogSeverity.Error,message:q.t("NOFE"),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}});return}let t=e.manifest[jt.ManifestSection.generic].pages;if(!t){se(e.logger,{severity:jt.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}});return}return t}o(_l,"getV2Pages");function Dl(e,t,n){var i;if(!e){se(t,{severity:jt.LogSeverity.Error,message:q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;se(t,{severity:jt.LogSeverity.Error,message:q.t("NOENTITYSET",{pageName:r}),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}})}}o(Dl,"checkV2Page");function Vl(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),aa((i=a.component)==null?void 0:i.name)===jt.PageTypeV2.AnalyticalListPage)return a}se(n,{severity:jt.LogSeverity.Error,message:q.t("NOALP"),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}})}o(Vl,"findAnalyticalListPage");function hA(e,t){let n=e.split("|");return jt.v2.SectionPosition[n[0]]&&n[1]===t}o(hA,"isAssociatedCustomSection");function E1(e,t){let n=$n(e,`sap.ui5/extends/extensions/${jt.v2.SAPUI5_VIEW_EXTENSION}/${jt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)hA(r,t)&&(i[r]=n[r]);return i}o(E1,"findCustomSectionExtensions");function E3(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}o(E3,"removeEmptySettingsOfFooter");function b3(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let r in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[r]).length===0&&delete e.filterBar.selectionFields[r];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}o(b3,"removeEmptySettingsOfFilterBar");function A3(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}o(A3,"removeEmptySettingsOfToolBar");function Eh(e){A3(e),b3(e),E3(e)}o(Eh,"removeEmptySettings");var vA={};Gs(vA,{AnalyticalListPage:()=>jr,ListReport:()=>co,ObjectPage:()=>ci,OverviewPage:()=>Yt,exportFilterSettings:()=>S1,importDateSettingsOVP:()=>b1,importFilterSettings:()=>A1});var bh=ne(le());var jr=class{};o(jr,"AnalyticalListPage"),h([y({flex:{controlId:Hg,controlType:o(()=>bh.ControlType.DynamicPage,"controlType")}})],jr.prototype,"fitContent",2),h([kt("table")],jr.prototype,"table",2),h([kt("template::SmartFilterBar")],jr.prototype,"filterBar",2),h([kt("analyticalListPageChart")],jr.prototype,"chart",2),h([kt("analyticalListFooter")],jr.prototype,"footer",2),jr=h([wr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:bh.v2.FE_TEMPLATE_V2_ALP})],jr);var Qu=ne(le());var co=class{};o(co,"ListReport"),h([y({flex:{controlId:Hg,controlType:o(()=>Qu.ControlType.DynamicPage,"controlType")}})],co.prototype,"fitContent",2),h([kt("listReportFilter")],co.prototype,"filterBar",2),h([kt("listReport")],co.prototype,"table",2),h([kt("listReportFooter")],co.prototype,"footer",2),co=h([wr({id:Qu.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Qu.v2.FE_TEMPLATE_V2_LIST_REPORT})],co);var yA=ne(le());var ci=class{};o(ci,"ObjectPage"),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.52.0"})],ci.prototype,"showConfirmationOnDraftActivate",2),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.52.1"})],ci.prototype,"hideChevronForUnauthorizedExtNav",2),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.48.0"})],ci.prototype,"allowDeepLinking",2),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.52.0"})],ci.prototype,"navToListOnSave",2),h([kt("header")],ci.prototype,"header",2),h([kt("sections")],ci.prototype,"sections",2),h([kt("layout")],ci.prototype,"layout",2),h([y({manifest:{path:o(t=>Tm(t),"path")}}),x({since:"1.77.0"})],ci.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([y({manifest:{path:o(t=>Ri(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),x({since:"1.78.0"})],ci.prototype,"globalChartSettings",2),h([y({manifest:{path:o(t=>Ri(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:qs}}),x({since:"1.71.0"})],ci.prototype,"globalTableSettings",2),ci=h([wr({id:yA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:yA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ci);function S3(e,t){for(let n in e.dateSettings.fields){t.fields[n]=e.dateSettings.fields[n];let i=e.dateSettings.fields[n].selectedValues;typeof i=="string"&&(t.fields[n].selectedValues=i.split(","));for(let r in e.dateSettings.fields[n].filter){let a=e.dateSettings.fields[n].filter[r];t.fields[n].filter[r]=a,a.equals&&typeof a.equals=="string"&&(t.fields[n].filter[r].equals=a.equals.split(","))}}}o(S3,"importDateSettingsFieldsOVP");function b1(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),e.dateSettings.fields&&S3(e,t),t}o(b1,"importDateSettingsOVP");function A1(e){let t={};return t.dateSettings=b1(e.filterSettings),t}o(A1,"importFilterSettings");function P3(e,t,n){for(let i in e.filterSettings[t].fields){let r=e.filterSettings[t].fields[i];if(r.selectedValues&&(n.filterSettings[t].fields[i].selectedValues=r.selectedValues.join()),r.filter)for(let a in r.filter){let s=r.filter[a];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[a].equals=s.equals.join())}}}o(P3,"exportFilterFields");function S1(e,t){e.filterSettings||(e.filterSettings={});let n="dateSettings";t.filterSettings[n]===void 0?delete e.filterSettings[n]:(e.filterSettings[n]=JSON.parse(JSON.stringify(t.filterSettings[n])),t.filterSettings[n].selectedValues&&(e.filterSettings[n].selectedValues=t.filterSettings[n].selectedValues.join()),t.filterSettings[n].fields&&P3(t,n,e))}o(S1,"exportFilterSettings");var Yt=class{};o(Yt,"OverviewPage"),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"globalFilterModel",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"globalFilterEntityType",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"globalFilterEntitySet",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"showBasicSearch",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"disableErrorPage",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"smartVariantRequired",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"bHeaderExpanded",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"containerLayout",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"showDateInRelativeFormat",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"disableTableCardFlexibility",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"enableLiveFilter",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"enableLazyRendering",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"refreshStrategyOnAppRestore",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"considerAnalyticalParameters",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"refreshIntervalInMinutes",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"useDateRangeType",2),h([y({manifest:{path:o(()=>En(),"path"),import:A1,export:S1}}),x({since:"1.80.0"})],Yt.prototype,"filterSettings",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"resizableLayout",2),Yt=h([wr({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Yt);var TA=class TA{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let a=this.controls[r]?this.controls[r]:this.controls[n];return a||(a=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};o(TA,"MetadataFactory");var Ml=TA;var Jn=ne(le());var x3={},C3={Table:oc,ResponsiveTableWithMultiSelect:oc,ResponsiveTableWithInlineDelete:oc},I3={[Jn.v2.CardSettingsType.listCardSettings]:Al,[Jn.v2.CardSettingsType.listCardSettingsv4]:Al,[Jn.v2.CardSettingsType.analyticalCardSettings]:Sl,[Jn.v2.CardSettingsType.analyticalCardSettingsv4]:Sl,[Jn.v2.CardSettingsType.stackCardSettings]:hu,[Jn.v2.CardSettingsType.linkListCardSettings]:yu,[Jn.v2.CardSettingsType.tableCardSettings]:Pl,[Jn.v2.CardSettingsType.tableCardSettingsv4]:Pl},O3={[Jn.SAPUI5_VIEW_CLASS]:Bu,[Jn.SAPUI5_FRAGMENT_CLASS]:$u,Table:hc,ObjectPageResponsiveTableWithMultiSelect:hc,ObjectPageResponsiveTableWithInlineDelete:hc},N3={[Jn.PageTypeV2.AnalyticalListPage]:x3,[Jn.PageTypeV2.ListReport]:C3,[Jn.PageTypeV2.ObjectPage]:O3,[Jn.PageTypeV2.OverviewPage]:I3},EA=class EA extends Ml{constructor(){super(dA,vA,N3)}};o(EA,"MetadataInstanceFactoryV2");var Fi=EA;function L3(e,t,n,i,r){if(e.filterBar=t.createInstance(Xt.PageTypeV2.ListReport,Xt.DefinitionName.ListReportFilterBar,e.filterBar),Fn(e.filterBar,n.manifest,i[Xt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(Xt.PageTypeV2.ListReport,Xt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(Xt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),Fn(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(L3,"importFilterBar");function R3(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[Yg]&&t[zg]&&(a=JSON.parse(JSON.stringify(t[Yg])),a.properties={...a.properties,...t[zg].properties}),Fn(n.table,i.manifest,a,r,i.logger),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&se(i.logger,{severity:Xt.LogSeverity.Error,message:q.t("NOLINEITEMS")})}o(R3,"importTable");function F3(e,t,n,i){let r=e.jsonSchema.definitions,a=vh(e.manifest,i);if(t.table=n.createInstance(Xt.PageTypeV2.ListReport,a,t.table),Th(t,n,r),R3(a,r,t,e,i),t.table.toolBar=n.createInstance(Xt.PageTypeV2.ListReport,Xt.DefinitionName.ToolBar,{actions:{}}),Fn(t.table.toolBar,e.manifest,r[Xt.DefinitionName.ToolBarLR],i,e.logger),r[Xt.DefinitionName.ActionsLR])for(let l in r[Xt.DefinitionName.ActionsLR].properties){let u=cs(l);t.table.toolBar.actions[u]=n.createInstance(Xt.PageTypeV2.ListReport,Xt.DefinitionName.Action),Fn(t.table.toolBar.actions[u],e.manifest,r[Xt.DefinitionName.Action],i,e.logger)}L3(t,n,e,r,i),t.footer={actions:{}};let s=r[Xt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=cs(l);t.footer.actions[u]=n.createInstance(Xt.PageTypeV2.ListReport,Xt.DefinitionName.FooterAction),Fn(t.footer.actions[u],e.manifest,r[Xt.DefinitionName.Action],i,e.logger)}}o(F3,"addSettings");function Ah(e){if(tn(),!_l(e))return;let n=new Fi,i=n.createPageInstance(Xt.PageTypeV2.ListReport),r=[],a=Fl(e.manifest[Xt.ManifestSection.generic].pages,r);if(Dl(a,e.logger,a==null?void 0:a.entitySet),!!a)return F3(e,i,n,r[0]),e.flex.forEach(s=>{ja(s)&&yh(i,s,e.jsonSchema,e.logger)}),Rl(i,e.manifest,a,Xt.PageTypeV2.ListReport,e.fragments),Eh(i),i}o(Ah,"createListReportConfig");var Pt=ne(le());function _3(e,t,n,i){var u,p;let r=vh(e.manifest,i),a=e.jsonSchema.definitions;if(Th(t,n,a),t.table=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table),Fn(t.table,e.manifest,a[`ALP${r}<LineItems>`],i,e.logger),t.table.toolBar=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.ToolBar,{actions:{}}),Fn(t.table.toolBar,e.manifest,a[Pt.DefinitionName.ToolBar],i,e.logger),a[Pt.DefinitionName.ActionsLR])for(let g in a[Pt.DefinitionName.ActionsLR].properties){let m=cs(g);t.table.toolBar.actions[m]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.Action),Fn(t.table.toolBar.actions[m],e.manifest,a[Pt.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),Fn(t.filterBar,e.manifest,a[Pt.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[Pt.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let g=a[Pt.DefinitionName.SelectionFields].properties;for(let m in g){let T=m;t.filterBar.selectionFields[T]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),Fn(t.filterBar.selectionFields[T],e.manifest,a.SelectionFieldDateSettings,i,e.logger,T)}}t.chart=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),Fn(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let s=a[Pt.DefinitionName.FooterActionsLR];if(s)for(let g in s.properties){let m=cs(g);t.footer.actions[m]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,Pt.DefinitionName.FooterAction),Fn(t.footer.actions[m],e.manifest,a[Pt.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let l=(p=(u=e.manifest[Pt.ManifestSection.generic].pages[i].component)==null?void 0:u.settings)==null?void 0:p.keyPerformanceIndicators;l&&Object.keys(l).forEach(g=>{t.keyPerformanceIndicators[g]=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(Pt.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),Fn(t.keyPerformanceIndicators[g],e.manifest,a.KPISettings,i,e.logger,g)})}o(_3,"addSettings");function Sh(e){if(tn(),!_l(e))return;let n=new Fi,i=n.createPageInstance(Pt.PageTypeV2.AnalyticalListPage),r=[],a=Vl(e.manifest[Pt.ManifestSection.generic].pages,r,e.logger);if(Dl(a,e.logger,a==null?void 0:a.entitySet),!!a)return _3(e,i,n,r[0]),e.flex.forEach(s=>{ja(s)&&yh(i,s,e.jsonSchema)}),Rl(i,e.manifest,a,Pt.PageTypeV2.AnalyticalListPage,e.fragments),Eh(i),i}o(Sh,"createAnalyticalListPageConfig");var Ee=ne(le());var qu=require("@sap-ux/vocabularies-types/vocabularies/UI");var V3=[Ee.ControlType.Avatar,Ee.ControlType.ObjectPageLayout,Ee.ControlType.DynamicPage];function M3(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(`${qu.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Ee.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(qu.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let r=i.split("::");r.length>1?t=r[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}o(M3,"getSingleSelectorIdPart");function w3(e){let t,n=e.split(":::");if(n.length===1)t=M3(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(`::${qu.UIAnnotationTerms.LineItem}`,`/@${qu.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(w3,"getFacetID");function k3(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=ja(s),m=g&&((l=g.controlId)==null?void 0:l.split("--"))||[];if(g&&((u=m[0])!=null&&u.includes(Ee.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let T=m[1].replace(/:3a:3a/g,"::");r.exec(T)!==null&&(T=T.split("template:::TableColumn:::")[1]);let A=w3(T);T=gA(T).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${T}::${g.content.property}`]={controlId:T,propertyId:g.content.property,facetId:A,newValue:g.content.newBinding!==void 0?g.content.newBinding:g.content.newValue,controlType:g.controlType,creation:g.creation}}}catch(g){se(n,{severity:Ee.LogSeverity.Error,message:q.t("FLEXERROR")},...g)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,u])=>(s[l]=u,s),{})}o(k3,"prepareFlexChanges");var U3=o(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace($,"");if((i=(n=e.properties)==null?void 0:n.subsections)!=null&&i.$ref)return t=e.properties.subsections.$ref,t=t.includes("<")?t.split("<")[0]:t,t.replace($,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function j3(e,t,n,i,r,a){let s;r?s=[r.replace(/@/g,"")]:s=[a.replace(/@/g,""),a==null?void 0:a.replace(/::@com.sap.vocabularies/g,Ee.VOCWITHSLASH)];for(let l in e){let u=e[l],p=u.propertyId===t,g=t==="columns"&&u.controlType===Ee.ControlType.TableColumn;(p||g)&&s.indexOf(u==null?void 0:u.facetId)>-1&&hm(n,u,i.jsonSchema)}}o(j3,"importFlexChangesOfTable");function $3(e,t){return e.facetId==="template"&&t}o($3,"isStandardActionFlexChange");var P1=o((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),r=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,r);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function B3(e,t,n,i,r,a){var O;let s=!1,l=!1;a?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let u=t.controlId.split("::"),p=t.controlType===Ee.ControlType.GroupElement&&l,g=((O=t.facetId)==null?void 0:O.includes(Ee.ACTIONTITLEPREFIX))&&!r&&s,m=r&&P1(u,r.split("::"))&&s,T=e.title&&P1(u,e.title.split("::"),!0),A=!t.facetId&&V3.includes(t.controlType),E=$3(t,l);return p||g||m||T||A||E}o(B3,"matchSelector");function H3(e,t,n,i,r,a){var u;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let p in n){let g=n[p];if(g.propertyId!==i||g.controlType!==((u=e.properties[g.propertyId])==null?void 0:u[Ee.SchemaTag.controlType]))continue;B3(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o(H3,"importFlexChanges");function G3(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(se(n.logger,{severity:Ee.LogSeverity.Warning,message:Kg(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(G3,"checkDeprecatedProperties");function W3(e,t,n,i,r,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,u,p;s!=null&&s.title?(u=e.manifest.path(t,{},s.title),p=$n(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=$n(n.manifest,u))):(u=e.manifest.path(t,{},l),p=$n(n.manifest,u));let g=e.manifest.import;if(g&&typeof g=="function"){let m=g(p,s==null?void 0:s.id);m!==void 0&&(i[r]=m)}else{let m=e.manifest.key||r;m in p&&(i[r]=p[m])}return G3(p,a,n,u),p}o(W3,"importManifestSetting");function _i(e,t,n,i,r,a){var l,u;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{};for(let p in n.properties||n){let g=Yn(t,p);if(p==="columns"||g!=null&&g.flex)if((l=r==null?void 0:r.type)!=null&&l.startsWith("ObjectPageSectionTableV2")||(u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSubSectionTableV2"))j3(i.flexChanges,p,t,e,r.title,r.id);else{let m=(r==null?void 0:r.title)||(r==null?void 0:r.id);H3(n,t,i.flexChanges,p,m,a)}else g!=null&&g.manifest&&W3(g,i.pageKeys,e,t,p,s,r)}}o(_i,"transferSettingsAndFlexChanges");function C1(e,t,n,i){let r=Xi(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${s0}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${Jg}${r}`;break}}return r.replace(/@/g,"")}o(C1,"getActionId");function K3(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split($)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],u=C1(s,a,"","");e.actions[a]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,l,{}),_i(n,e[Ee.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},u)}}}o(K3,"fillStandardActions");function Ph(e,t,n,i,r,a){var l;n[Ee.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let u={};a&&(u.id=a);for(let p in t){let g=cs(p),m=C1(s,g,r,a);m&&(n[Ee.PropertyName.actions][g]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,s),_i(e,n[Ee.PropertyName.actions][g],e.jsonSchema.definitions[s],i,u,m)),(l=n[Ee.PropertyName.actions])!=null&&l[g]&&Object.keys(n[Ee.PropertyName.actions][g]).length===0&&delete n[Ee.PropertyName.actions][g]}}K3(n,t,e,i),Object.keys(n[Ee.PropertyName.actions]).length===0&&delete n[Ee.PropertyName.actions]}o(Ph,"fillActions");function X3(e,t,n,i,r){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,"Field");let u=(s=t.title)!=null&&s.includes(Ee.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;_i(e,i[t.id].form.fields[l],e.jsonSchema.definitions[Ee.DefinitionName.Field],r,{},u),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}o(X3,"fillFields");function Q3(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`]&&n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`]&&(i=JSON.parse(JSON.stringify(n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`])),i.properties={...i.properties,...n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`].properties}),i}o(Q3,"prepareTableSchema");function q3(e,t,n,i,r){var l,u;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",g=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][Ee.PropertyName.table]=g;let m=e.jsonSchema.definitions,T=Q3(p,t,m);_i(e,i[t.id],t.schema,r,{title:t.title}),_i(e,i[t.id][Ee.PropertyName.table],T,r,t);let A=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(A!=null&&A.properties){let E=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");Ph(e,A.properties,i[t.id][Ee.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",E)}Object.keys(i[t.id][Ee.PropertyName.table].toolBar).length===0&&delete i[t.id][Ee.PropertyName.table].toolBar}}o(q3,"fillTableInConfig");function Y3(e,t,n,i){let r=e.jsonSchema.definitions[t].properties.custom,a=r?Qg(r.$ref):void 0;if(a){let s={key:t.replace("@",""),target:a};Rl(n[t],e.manifest,i,Ee.PageTypeV2.ObjectPage,e.fragments,s)}}o(Y3,"fillCustomColumnsInConfig");function z3(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][Ee.PropertyName.chart]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(_i(e,i[t.id],t.schema,r,{title:t.title}),_i(e,i[t.id][Ee.PropertyName.chart],e.jsonSchema.definitions[Ee.DefinitionName.ObjectPageChart],r,t))}o(z3,"fillChartSection");function J3(e,t,n,i){n[t.id]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&_i(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(J3,"fillHeaderSection");function Z3(e,t,n,i){var u;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&_i(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${r}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&Ph(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&X3(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}o(Z3,"fillFormSection");function x1(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&_i(e,i[t.id],t.schema,r,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,bA(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(x1,"fillSubSection");function bA(e,t,n,i,r){var s;let a=e.jsonSchema.definitions;for(let l in t){let u=l.replace(/\/@/g,"::"),p={id:u,type:U3(t[l]),schema:t[l],title:yE(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],q3(e,p,n,i,r),Y3(e,u,i,r.v2Page);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],z3(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],Z3(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${l}>`],x1(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],J3(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],x1(e,p,n,i,r))}}o(bA,"fillSectionsInConfig");function eX(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];_i(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(eX,"fillCustomSectionsInConfig");function tX(e,t){var g,m;let n=t.factory.createPageInstance(Ee.PageTypeV2.ObjectPage);_i(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;_i(e,n.globalTableSettings,i[Ee.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.ObjectPageHeader);let r=i[Ee.DefinitionName.ObjectPageHeader]?i[Ee.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];_i(e,n.header,r,t);let a=i[Ee.DefinitionName.ObjectPageHeaderActions];a&&Ph(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Ee.DefinitionName.FooterActions];s&&Ph(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageLayout"),_i(e,n.layout,i[Ee.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[Ee.DefinitionName.HeaderSections];if(l){let T=(g=t.v2Page.component)==null?void 0:g.settings;bA(e,l.properties,T,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let u=i[Ee.DefinitionName.Sections];if(u){let T=(m=t.v2Page.component)==null?void 0:m.settings;bA(e,u.properties,T,n.sections,t)}let p=E1(e.manifest,e.entitySet);return eX(p,n,t,i,e),n}o(tX,"fillConfig");function xh(e){tn();let t=_l(e);if(!t)return;let n=e.entitySet,i=[],r=yc(t,e.entitySet,i);if(Dl(r,e.logger,n),!r)return;let a=k3(e.flex,n),s=new Fi;return tX(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(xh,"createObjectPageConfigV2");function Ih(e,t){var n,i;return(n=e.component)!=null&&n.name?Ug(aa((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(Ih,"generateId");function nX(e,t,n,i){e.navigation={};let r=I1(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=Ih(t.pages[a],a);e.entitySet?e.navigation[s]=r[s].navigationProperty?`${e.entitySet}.${r[s].navigationProperty}`:e.entitySet:e.navigation[s]=r[s].navigationProperty?r[s].navigationProperty:s}}o(nX,"getPageConfigsAndNavigations");function I1(e,t){var i;let n={};for(let r in e){let a=e[r],s=Ih(a,r);if(!s)continue;let l={pageType:aa((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let u=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(u)if(l.pageType===_n.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=Ah(p)}else if(l.pageType===_n.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=Sh(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=xh(p)}a.pages&&nX(l,a,t,n)}return n}o(I1,"getPagesAndConfigs");var AA=class AA extends Wa{constructor(t){tn();let n;t.manifest[_n.ManifestSection.generic]?n=t.manifest[_n.ManifestSection.generic].pages:se(t.logger,{severity:_n.LogSeverity.Error,message:q.t("NOFE"),location:{path:_n.MANIFESTPATH,range:[_n.ManifestSection.generic]}}),n||se(t.logger,{severity:_n.LogSeverity.Error,message:q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:_n.MANIFESTPATH,range:[_n.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&Ih(n[i],i),a=new Ka,s=Ft(_n.SchemaType.Application),l=t.appSchemas[s.filename];Fn(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,I1(n,t),a)}};o(AA,"V2AppProvider");var Ch=AA;function Yu(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||se(n,{severity:_n.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:_n.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let u=Ih(l,s);i[u]=l}if(t===_n.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=Yu(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(Yu,"getPages");var Tc=ne(le());var wo=ne(le());var PA=ne(jT());var _t=ne(le());var iX=["colorPalette","tabs"];function rX(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(rX,"createCard");function O1(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),O1(e,n.join("|"))}return t}o(O1,"findAvailableId");function zu(e,t,n,i,r,a,s){i!=null&&i.properties&&SA(e,t,n,i.properties,r,a,s)}o(zu,"transferManifestEntriesOVP");function vc(e,t,n,i){return e.createInstance(_t.PageTypeV2.OverviewPage,i,n,t)}o(vc,"assignReflectMetadataRules");function oX(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split($),r=e.appSchema.definitions[i[1]];t=vc(e.factory,i[1],t,"CustomCard"),zu(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(oX,"processAnyOfDefinitionsOfOVP");function aX(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!iX.includes(i)?t[i]=(0,PA.default)(t[i]||{},r||{},{arrayMerge:gE}):t[i]=r}o(aX,"checkSyncRuleForExport");function sX(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=$n(i.manifest,s);if(n in _t.v2.CardSettingsType||n==="settings")l.settings=(0,PA.default)(l.settings||{},r||{},{arrayMerge:gE});else if(r!==void 0){let u=e.manifest.export;aX(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(sX,"transferToManifest");function cX(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(_t.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(r=>{var s;let a=(s=e.appSchema.definitions[r].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=vc(e.factory,i[0],e.currentObject[t],"CustomCard"),rX(t,e.exportResults.manifest[_t.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,zu(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[_t.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[_t.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated)})}o(cX,"transferCards");function lX(e,t){if(t==="cards")cX(e);else{let n=No(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,_t.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split($);e.currentObject=vc(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],zu(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],SA(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],SA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(lX,"exportOfObject");function SA(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!iu(a,s)&&a[a.length-1]!=="anyOf")continue;let u=e[l],p=Yn(e,l),g={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:u,configObject:e,factory:r,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(g.currentObject=e[a[a.length-2]],u=oX(g)):u&&typeof u=="object"&&i[l]&&lX(g,l),p!=null&&p.manifest&&sX(p,a,l,t,u,e)}}o(SA,"processProperties");function fX(e,t,n,i,r,a,s){let l;t.length===0?l=["page"]:l=t;let u=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),p=i0(a,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=r0(p,g);e.exportResults.flexChanges.find(A=>{let E=!1,O=JSON.parse(A);O={content:O.content,selector:O.selector};let F=JSON.parse(m);return F={content:F.content,selector:F.selector},JSON.stringify(O)===JSON.stringify(F)&&(E=!0),E})||e.exportResults.flexChanges.push(m)}o(fX,"evaluateFlexRule");function uX(e,t,n,i,r,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,a):s!==!1&&(n[a]=i[r]),e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated}}o(uX,"exportConfigValueToManifest");function pX(e,t,n,i,r){let a=$n(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)uX(e,n,a,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,Ua(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(pX,"evaluateManifestRule");function dX(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(_t.FACETTITLEPREFIX)?r.split(_t.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(dX,"getManifestPathOfSections");function gX(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}o(gX,"getManifestPathOfTable");function mX(e,t,n,i,r){let a;return t[0]===_t.PropertyName.sections?a=dX(t,a,n,e,r):t[0]===_t.PropertyName.table?a=gX(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}o(mX,"getManifestPath");function hX(e,t,n,i,r,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)fX(e,i,t,r,a,n,s);else if(t.manifest){let u=mX(e,i,t,n,a);pX(e,u,t,s,n)}}o(hX,"evaluateExportRule");function yX(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(u=>(u.tabKey===a||a===void 0&&u.tabKey===""||a&&t.sectionKey===a)&&u.extensionType===t.extensionType);if((!l||l.length===0)&&(Lm(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(_t.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(_t.ViewTemplateType.ResponsiveTableColumnsExtension,_t.ViewTemplateType.ResponsiveTableCellsExtension);Lm(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o(yX,"deleteObsoleteColumn");function vX(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=R0(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,yX(r,e,n))}o(vX,"deleteObsoleteColumnsFromFragment");function TX(e,t,n,i,r){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:u}=Rm(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o(TX,"clusterConfigColumnsByPath");function N1(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in _t.v2.TableColumnExtensionTypeV2){let{path:u}=Rm(e.v2Page,s,r,l);if(!u)continue;let p={path:u,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};vX(p)}if(t){let l=TX(t,n,e.v2Page,s,r);for(let u in l)eb(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(N1,"transferColumnExtensions");function EX(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=O1(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(g)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(A=>{var E;return(E=A.$ref)==null?void 0:E.includes(t[p].constructor.name)}).$ref.split($),T=e.appSchema.definitions[m[m.length-1]];ls(e,t[p],i,[...r,s[p]],T)}let u=$n(e.exportResults.manifest,xE());for(let p in u)hA(p,l)&&!s.includes(p)&&delete u[p]}o(EX,"transferManifestExtensions");function bX(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===_t.PropertyName.table){n=e[i-1];break}return Qn(n,t)}o(bX,"getSectionId");function AX(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=No(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);ls(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(AX,"transferIndexTable");function SX(e,t,n,i,r,a){let s,l=Qg(e.$ref);l&&(s={target:l,key:bX(t,n)}),N1(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(SX,"transferCustomColumns");function PX(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let u=No(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&ls(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(PX,"handleAnyOfDefinitions");function xX(e,t,n,i,r,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")EX(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){SX(l,t,s,e,n,a);return}else a?ls(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&PX(l,e,s,n==null?void 0:n[r],r,i,t)}o(xX,"transferComplexProperty");function ls(e,t,n,i,r,a){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!iu(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&Gg(t,l),p=u?[...n,u]:n,g=Yn(t,l),m=e.propertyDefinition=r.properties[l],T=e.nextDefinition=No(e.appSchema,a,s,m,l,e.factory,e.pageType);if(hX(e,g,t,[...i],p,a,l),AX(s,e,a,l,p,i),s===void 0||typeof s=="object")xX(e,i,t,p,l,T,a);else if((m==null?void 0:m.$ref)===$+"TableCustomColumns"){N1(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(ls,"transferManifestEntriesAndFlexChange");function L1(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=vc(r,i,n[i],s),a.push(i),xA(r,n[i],e,l.properties,a)}o(L1,"transferSettingsOfRef");function CX(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split($);L1(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${$}${wo.v2.cardTemplateSettingsMap[e.template]}`.split($);L1(i,l,e,t,r,a)}}o(CX,"processPropertiesOfObject");function IX(e,t,n,i,r,a){let s=Yn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=$n(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{ul(s,u,t,e)}catch(p){se(i.logger,{severity:wo.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:$g(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&CX(e,t,r,i,a,n)}o(IX,"processOvpProperty");function xA(e,t,n,i,r){for(let a in i)IX(t,a,r,n,i,e)}o(xA,"processOvpProperties");function OX(e,t,n){xA(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[wo.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[wo.ManifestSection.ovp].cards[i].template,a=wo.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=vc(n,a,{},"CustomCard"),e.cards=vc(n,a,e.cards,"CustomCard"),xA(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}o(OX,"addSettings");function Oh(e){let t=new Fi,n=t.createPageInstance(wo.PageTypeV2.OverviewPage);return e.jsonSchema&&OX(n,e,t),n}o(Oh,"createOverviewPageConfig");var CA=class CA extends Wa{constructor(t){let n={},i=t.manifest[Tc.ManifestSection.ovp],r=new Ka,a=Ft(Tc.SchemaType.Application);Fn(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(Tc.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:Tc.PageTypeV2.OverviewPage,config:Oh(l),entitySet:i.globalFilterEntitySet},p=Ug(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(CA,"V2OvpProvider");var Nh=CA;var ko=require("@sap-ux/vocabularies-types/vocabularies/UI");var te=ne(le()),R1=require("path");function NX(){return([e,t],[n,i])=>t[te.SchemaTag.propertyIndex]-i[te.SchemaTag.propertyIndex]}o(NX,"sortByPropertyIndex");function Ju(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(NX())}o(Ju,"sortPropertiesRecords");function LX(e){let t;return typeof e=="object"?"header"in e?t=e.header:"text"in e?t=e.text:"title"in e?t=e.title:"label"in e&&(t=e.label):typeof e=="string"&&(t=e),t}o(LX,"getExtensionText");function IA(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||te.v4.Placement.After)===te.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(IA,"addExtensionToSortedArray");function RX(e,t,n,i,r){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var u,p,g;return((u=l.position)==null?void 0:u.placement)==="Before"&&((p=l.position)==null?void 0:p.anchor)===((g=n.position)==null?void 0:g.anchor)})===-1&&(i.splice(i.length,0,[t,r]),delete e[t])}o(RX,"addRemainingTargetByBefore");function F1(e,t,n,i){let r=t.includes(te.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=LX(e);return{$ref:`${$}${r}`,description:a,keys:[{name:te.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(F1,"getExtensionDetails");function OA(e,t,n,i,r=!1){var l,u;let a=Object.entries(e).length;for(let p of Object.keys(e)){let g=e[p],m=F1(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let T=n.findIndex(A=>A[0]===g.position.anchor);T>-1?(IA(g,n,T,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(se(i,{severity:Di.LogSeverity.Error,message:q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&RX(e,p,g,n,m)}else r&&(IA(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?OA(e,t,n,i):s>0&&OA(e,t,n,i,!0)}o(OA,"adjustCustomExtReferringToCustomExt");function FX(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||te.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===te.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(FX,"getExtensionAnchor");function _X(e,t){var i;let n=[];for(let r in e){let a=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===a);a&&!s&&n.push(r)}return n}o(_X,"getLocalExtensionsToSkip");function DX(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||te.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let a=o((p,g)=>{for(let m of n){let T=t[m[0]];if(g(T))break;p++}return p},"findNextIndex"),s=0;return i===te.v4.Placement.Before?s=a(0,p=>!p):s=a(-1,p=>{var g,m;return!!(p&&((g=p==null?void 0:p.position)!=null&&g.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==te.v4.Placement.Before))}),s>-1?s:0}o(DX,"getExtensionIndexByMergedApproach");function VX(e,t,n,i,r=!1){return r?DX(e,t,n):n.findIndex(a=>a[0]===i)}o(VX,"getExtensionIndex");function MX(e,t,n,i,r){se(e,{severity:Di.LogSeverity.Error,message:q.t("INVALIDEXTENSION",{id:t}),location:{path:te.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(MX,"handleInvalidExtension");function ga(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=_X(l,s);if(!l)return[];for(let p of Object.keys(l)){let g=l[p];if(u!=null&&u.includes(p))continue;let m=F1(g,n,p,te.ActionType.Custom);if(typeof g!="object"){MX(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let T=FX(g,s);if(T){let A=VX(g,e,t,T,a);A>-1&&(IA(g,t,A,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&OA(l,n,t,r),t}o(ga,"addExtensionToArray");function NA(e,t){let n=[];for(let i of Object.keys(e.properties))i.indexOf("::")>-1&&n.push(i.substring(i.indexOf("::")+2));t.properties.properties.items.enum=n}o(NA,"addEnumForProperties");function wX(e,t,n,i=te.DefinitionName.CustomColumn){if(i===te.DefinitionName.CustomColumn||i.indexOf(te.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];NA(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[te.SchemaTag.propertyIndex]=r}}o(wX,"addColumnPropertyIndexAndEnum");function Ec(e,t,n,i=te.DefinitionName.CustomColumn,r,a){var T,A,E,O;let s=r||te.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Ju(l),p=a?a.replace(/::/g,"/"):`@${ko.UIAnnotationTerms.LineItem}`,g=(O=(E=(A=(T=t.options)==null?void 0:T.settings)==null?void 0:A.controlConfiguration)==null?void 0:E[p])==null?void 0:O.columns;g&&(u=ga(g,u,i,void 0,n)),wX(u,e,l,i);let m={};u.forEach(([F,U])=>m[F]=U),e.definitions[s].properties=m}o(Ec,"addCustomColumnDefinition");function kX(e){let t;return e.lineItemId.startsWith(te.DefinitionName.LineItemsOfView)?t=te.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(te.DefinitionName.LineItems)?t=te.DefinitionName.ToolBarAction:t=te.DefinitionName.ObjectPageToolBarAction,t}o(kX,"determineActionDefinitionName");function UX(e,t,n){e[te.SchemaTag.keys]=[],t[te.SchemaKeyName.semanticObject]&&e[te.SchemaTag.keys].push({name:te.SchemaKeyName.semanticObject,value:t[te.SchemaKeyName.semanticObject]});let{key:i,ns:r}=Zs(n,!0);e[te.SchemaTag.keys].push({name:te.SchemaKeyName.action,value:i}),r&&(e[te.SchemaTag.target]=r)}o(UX,"addTargetAndKeysOfAction");function jX(e,t,n,i,r,a=!0){if(i.Determining===!0)return;let s=kX(e),l=Ei(i,e.entityType),u=i.$Type.split(`${te.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,g=qg(p),m=t.properties[`${u}::${g}`]={description:l};if(a?m.$ref=jn(s,pt(g)):(m.properties={},m.type="object",m.isViewNode=!0),m[te.SchemaTag.propertyIndex]=r,m[te.SchemaTag.dataType]=to(i),UX(m,i,p),m[te.SchemaTag.annotationType]=i.$Type,a){let T=Tt(s,pt(g),e.appSchema);T[te.SchemaTag.annotationPath]=`${n}/${r}`}else m[te.SchemaTag.annotationPath]=`${n}/${r}`}o(jX,"addActionRecordToSchema");function $X(e,t,n,i,r){var u;let a=t.lineItemId,s=t.lineItemRecord;if((u=s.Target)!=null&&u.value){let p=`@${ii(te.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=ca(s).replace(/\//g,"::");if(l){let p=r;p||(p=e.appSchema.definitions[a]);let g=p.properties,m={description:Ei(s,e.entityType)};r?(m.properties={},m.type="object",m.isViewNode=!0):m.$ref=$+n,m[te.SchemaTag.annotationType]=s==null?void 0:s.$Type,m[te.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,m[te.SchemaTag.propertyIndex]=i,m[te.SchemaTag.dataType]=to(s),g[l]=m,am(s,g,l)}}o($X,"addLineItemRecordToSchema");function LA(e,t,n,i,r=te.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===ko.UIAnnotationTypes.DataFieldForAction||s.$Type===ko.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))jX(e,t,n,s,a,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},u=s.$Type===ko.UIAnnotationTypes.DataFieldForAction?`${r}Action`:r;$X(e,l,u,a,i)}a++})}o(LA,"appendLineItemsToSchema");function bc(e,t=te.DefinitionName.TableColumn,n=te.DefinitionName.CustomColumn,i=te.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=rm(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);LA(e,r,a,void 0,t)}o(bc,"addLineItemsTypeToSchema");function Ac(e,t,n,i=te.DefinitionName.Position,r){var p,g,m,T,A;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let E in a)E!=="custom"&&s.push(E);let l=t!==te.DefinitionName.LineItems?r:`@${ko.UIAnnotationTerms.LineItem}`,u=(A=(T=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:T[l])==null?void 0:A.columns;if(u)for(let E in u)s.indexOf(E)===-1&&s.push(E);if(s.length>0){let E=e.definitions[i].properties.anchor;la(s,E)}}o(Ac,"addFragmentEnumForAnchor");function lo(e,t,n=te.DefinitionName.CustomActionPosition){Ha(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(lo,"addEnumForActionAnchor");function Lh(e,t,n,i){var a,s,l,u;let r;for(let p in e)if((i&&((s=(a=e[p].options)==null?void 0:a.settings)==null?void 0:s.contextPath)===i||((u=(l=e[p].options)==null?void 0:l.settings)==null?void 0:u.entitySet)===(n==null?void 0:n.name))&&(e[p].name===t||t===te.v4.FE_TEMPLATE_V4_ALP&&e[p].name===te.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[p];break}return r}o(Lh,"findPageV4");function _1(e,t){let n,i=e.properties[te.PropertyName.table];return t.templateType===te.TemplateType.AnalyticalListPageV4?(n=te.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${$}${te.DefinitionName.ALPTableView}`,delete e.definitions[te.DefinitionName.Table],delete e.definitions[te.DefinitionName.LRChartView],delete e.definitions[te.DefinitionName.LRTableView],delete e.definitions[te.DefinitionName.MultiTableModeV4]):t.templateType===te.TemplateType.ListReportObjectPageV4&&(n=te.DefinitionName.Table,delete i.anyOf,i.$ref=`${$}${te.DefinitionName.Table}`,e.definitions[n].properties[te.PropertyName.annotationPath][te.SchemaTag.hidden]=!0,delete e.definitions[te.DefinitionName.ALPTableView],e.properties[te.PropertyName.defaultPath][te.SchemaTag.hidden]=!0),n}o(_1,"alignSchemaWithTemplateType");function ma(e,t,n,i=te.DefinitionName.CustomTableAction,r="",a=""){var g,m,T,A,E,O,F,U,K,j;let s=e.definitions[r];if(!s)return;let l=Ju(s),u;a?i.indexOf(te.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===te.DefinitionName.CustomFormActionOP?u=`@${ko.UIAnnotationTerms.FieldGroup}`:u=`@${ko.UIAnnotationTerms.LineItem}`;let p;if(r.includes(te.DefinitionName.ObjectPageCustomSectionActions)?p=(O=(E=(A=(T=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:T.body)==null?void 0:A.sections)==null?void 0:E[u])==null?void 0:O.actions:p=(j=(K=(U=(F=t.options)==null?void 0:F.settings)==null?void 0:U.controlConfiguration)==null?void 0:K[u])==null?void 0:j.actions,p&&(l=ga(p,l,i,"press",n)),l){for(let Z=0;Z<l.length;Z++)l[Z][1][te.SchemaTag.propertyIndex]=Z;let ae={};l.forEach(([Z,re])=>ae[Z]=re),e.definitions[r].properties=ae}}o(ma,"addCustomActionDefinition");function Rh(e,t,n,i=te.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,T,A,E,O,F;let a=e.definitions[r];if(!a)return;let s=Ju(a),l;[te.DefinitionName.CustomHeaderAction,te.DefinitionName.CustomHeaderActionOP].includes(i)?l=(T=(m=(g=(p=t.options)==null?void 0:p.settings)==null?void 0:g.content)==null?void 0:m.header)==null?void 0:T.actions:l=(F=(O=(E=(A=t.options)==null?void 0:A.settings)==null?void 0:E.content)==null?void 0:O.footer)==null?void 0:F.actions,l&&(s=ga(l,s,i,"press",n));let u={};if(s){for(let U=0;U<s.length;U++)s[U][1][te.SchemaTag.propertyIndex]=U;s.forEach(([U,K])=>u[U]=K)}e.definitions[r].properties=u}o(Rh,"addHeaderFooterCustomActionDefinition");function Sc(e,t,n){let i=Bg(e,[te.ManifestSection.ui5,"routing","targets"]);if(!i){se(n,{severity:Di.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}let r=Bg(i,[t]);if(!r){se(n,{severity:Di.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:t}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}return r}o(Sc,"getManifestPage");function Pc(e,t,n,i,r){var a,s;if(r){let l=((a=n["sap.app"])==null?void 0:a.id)||"",u="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),g=p.pop();g=`${g}.${i}.${u}`;let m=(0,R1.join)(...p,g),T=e.find(A=>A.dataSourceUri.endsWith(m));if(T){let A=(s=t.options)==null?void 0:s.settings;return{file:T,relativeFilePath:m,connection:{contextPath:A==null?void 0:A.contextPath,entitySet:A==null?void 0:A.entitySet}}}}}o(Pc,"getPageCustomExtensionFile");function fs(e,t,n,i){let r=Sc(n,t,i),a=Bg(r,["options","settings","viewName"]);return r&&typeof a=="string"?Pc(e,r,n,"view",a):void 0}o(fs,"getPageCustomViewFile");function D1(e,t,n,i,r,a,s){var g,m,T,A,E,O,F,U,K,j,ae,Z;let l=Ju(t),u=new Map;if(l=l.map(re=>{let Pe=mm(e,re[1],re[0],{keyProperties:[te.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(Pe.const,re[0]),[Pe.const,re[1]]}),a){let re=(E=(A=(T=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:T.body)==null?void 0:A.sections)==null?void 0:E[a];re&&"subSections"in re&&(l=ga(re.subSections,l,i,"template",s,r))}else if(i.includes(te.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let re=(U=(F=(O=n.options)==null?void 0:O.settings)==null?void 0:F.content)==null?void 0:U.header;re&&"facets"in re&&(l=ga(re.facets,l,i,"template",s,r))}else{let re=(Z=(ae=(j=(K=n.options)==null?void 0:K.settings)==null?void 0:j.content)==null?void 0:ae.body)==null?void 0:Z.sections;re&&(l=ga(re,l,i,"template",s,r))}for(let re=0;re<l.length;re++)l[re][1][te.SchemaTag.propertyIndex]=re;let p={};l.forEach(([re,Pe])=>{re=u.get(re)||re,p[re]=Pe}),t.properties=p}o(D1,"addCustomSectionDefinition");function V1(e,t,n){var l,u,p;let i=Ju(t),r=new Map;i=i.map(g=>{let m=mm(e,g[1],g[0],{keyProperties:[te.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let a=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${ko.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=ga(a.filterFields,i,te.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][te.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o(V1,"addCustomFilterFieldDefinition");var D=ne(le()),xc=require("@sap-ux/vocabularies-types/vocabularies/UI");var BX=["header","filterBar","chart","table"],RA="@UI.LineItem";function FA(e,t,n,i,r){i||(i=t.definitions[D.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[D.SchemaTag.annotationPath]=ur(e.fullyQualifiedName,xc.UIAnnotationTerms.SelectionFields,r));let a=0;return n==null||n.forEach(s=>{var g,m;let l=s.value,u="SelectionField::"+pt(s.value);s.type==="PropertyPath"&&(l=Mg(s,e)),i.properties[u]={$ref:$+u},i.properties[u][D.SchemaTag.propertyIndex]=a;let p=to(s);t.definitions[u]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[u][D.SchemaTag.isViewNode]=!0,t.definitions[u][D.SchemaTag.keys]=[{name:D.SchemaKeyName.value,value:`${s.value}`}],((g=s.$target)==null?void 0:g.fullyQualifiedName.indexOf("@"))>-1?t.definitions[u][D.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[u][D.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[u][D.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[u][D.SchemaTag.annotationPath]=`${i[D.SchemaTag.annotationPath]}/${a}`,a++}),i}o(FA,"addSelectionFields");function HX(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${xc.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let a={};return Object.keys(t).forEach(s=>{t[s].template||(a[s]=t[s])}),Object.keys(a).length>0?a:void 0}}o(HX,"getVisualFilters");function GX(e,t){let n=[];return e==null||e.forEach(i=>n.push(i.value)),t&&t.entityProperties.forEach(i=>n.includes(i.name)?void 0:n.push(i.name)),n}o(GX,"getPropertiesIndex");function WX(e,t,n,i){var s,l,u,p,g,m;let r=GX(i,e),a=t.definitions[D.DefinitionName.VisualFilters];a.properties={};for(let T in n){let A=n[T];if(!A.template){let E=a.properties[T]={$ref:jn(D.DefinitionName.VisualFilter,T)},O=r.indexOf(T);O!==-1&&(E[D.SchemaTag.propertyIndex]=O);let F=Tt(D.DefinitionName.VisualFilter,T,t);(s=A.visualFilter)!=null&&s.valueList&&(F[D.SchemaTag.annotationPath]=`${T}/@${A.visualFilter.valueList}`);let U=(m=(g=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(K=>K.name===T))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:g.Label)==null?void 0:m.toString();F.description=U||T,F[D.SchemaTag.keys]=[{name:D.SchemaKeyName.value,value:T}]}}}o(WX,"addVisualFilters");function KX(e,t,n){t.additionalProperties={$ref:`#/definitions/${D.DefinitionName.CustomFilterField}`},V1(e,t,n);let i=e.definitions[D.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&Ha(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[D.SchemaKeyName.value,D.SchemaKeyName.key],descriptionAsFallback:!0})}o(KX,"applyCustomFilterFields");function XX(e,t,n,i){var l,u;let r=HX(n),a=i&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[i])==null?void 0:u.SelectionFields),s;if(r)t.definitions[D.DefinitionName.SelectionFields][D.SchemaTag.hidden]=!0,t.definitions[D.DefinitionName.SelectionFields].properties={},s=t.definitions[D.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},WX(e,t,r,a);else{let p=t.definitions[D.DefinitionName.FilterBar];p.properties.initialLayout[D.SchemaTag.hidden]=!0,p.properties.layout[D.SchemaTag.hidden]=!0,t.definitions[D.DefinitionName.CompactFilters][D.SchemaTag.hidden]=!0,t.definitions[D.DefinitionName.VisualFilters][D.SchemaTag.hidden]=!0}s=FA(e,t,a,s),KX(t,s,n)}o(XX,"addFilterBar");function M1(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let a=e.definitions[t];a.properties={},a.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${D.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(u=>{let p=pt(`${D.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=Ei(u,r),m=u.$Type.split(`${D.UIVOCABULARY}.`)[1],T=a.properties[`${m}::${u.Action}`]={$ref:$+p,description:g};T[D.SchemaTag.propertyIndex]=l,T[D.SchemaTag.annotationType]=u.$Type,T[D.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[D.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][D.SchemaTag.annotationPath]=u.fullyQualifiedName,l++})}}o(M1,"defineActions");function w1(e,t,n,i){var l;let r,a,s;return e&&(n==="primary"?a=e.find(u=>u.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(u=>u.value.indexOf(D.FacetBase.LineItem)>-1):i?a=e.find(u=>u.value.indexOf(i)>-1):a=e[0],r=typeof(a==null?void 0:a.value)=="string"?fl(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",D.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(w1,"findTheRightVisualization");function QX(e,t,n,i){let r="@UI.Chart",a=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:r,targetAnnotation:a,chartTitle:s}}o(QX,"analyzeChartAnnotation");function qX(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=w1((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(se(r,{severity:D.LogSeverity.Error,message:q.t("NOVISUALIZATIONS")}),s=RA,l=`/${t}/`+s.replace("UI",D.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(qX,"analyzeSPVforView");function wl(e,t,n,i,r,a){let s,l,u=e==null?void 0:e.split(`${D.UIVOCABULARY}.`)[1],p=u&&t[u];if(!p)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=p.Text,s=p.fullyQualifiedName.split(D.UIVOCABULARYALPHADOT)[0],u.startsWith("PresentationVariant")){let{visualization:g,targetAnnotation:m}=w1(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return qX(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=RA,m=`/${s}/@${xc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=RA;p.qualifier&&(g+=`#${p.qualifier}`);let m=e.substring(0,1)==="@"?`/${s}/${e}`:`/${s}/@${e}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("Chart")){let{visualization:g,targetAnnotation:m,chartTitle:T}=QX(s,e,p,i);return{visualization:g,targetAnnotation:m,namespace:s,title:T}}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}o(wl,"analyzeViewAnnotation");function YX(e,t,n,i){let r=e.definitions[D.DefinitionName.ALPChartView];if(e.definitions[D.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[D.DefinitionName.ALPChart][D.SchemaTag.isViewNode],n&&(e.definitions[D.DefinitionName.ALPChart][D.SchemaTag.annotationPath]=n),e.definitions[D.DefinitionName.ALPChart].properties.annotationPath[D.SchemaTag.hidden]=!0,r.properties.annotationPath[D.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${$}${D.DefinitionName.ALPChart}`,t){let a=t.split(D.UIVOCABULARYDOT)[1],s=i[a].fullyQualifiedName.split("@");r[D.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}r[D.SchemaTag.artifactType]=D.ArtifactType.Manifest,r[D.SchemaTag.key]="primary",r[D.SchemaTag.keys]=[{name:D.SchemaKeyName.key,value:"primary"}]}o(YX,"addALPChartView");function zX(e,t,n,i,r,a){var U,K,j,ae,Z,re,Pe,_;let s=(U=n.entityType)==null?void 0:U.annotations.UI,l=(ae=(j=(K=t==null?void 0:t[0])==null?void 0:K.primary)==null?void 0:j[0])==null?void 0:ae[D.SchemaTag.annotationPath],{targetAnnotation:u}=wl(l,s,n.serviceAVT,"primary",void 0,n.logger);YX(e,l,u,s);let p="Actions<ALPChart>";e.definitions[D.DefinitionName.ViewChartToolBar].properties.actions.$ref=$+p,M1(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=wl((Pe=(re=(Z=t==null?void 0:t[0])==null?void 0:Z.secondary)==null?void 0:re[0])==null?void 0:Pe[D.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),T=e.definitions[a];g||i?(T.properties.toolBar.$ref=`${$}${D.DefinitionName.ToolBarLR}`,T.properties.columns={$ref:$+D.DefinitionName.LineItems},T.properties.annotationPath[D.SchemaTag.hidden]=!0):T.properties={};let A=e.definitions[D.DefinitionName.ALPTableView];e.definitions[D.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(A)),delete e.definitions[D.DefinitionName.ALPTable][D.SchemaTag.isViewNode],A.additionalProperties=!1,A.description="Table (key: secondary)",A.title="Table",g?(delete A.properties,A.$ref=`${$}${D.DefinitionName.ALPTable}`):i||(A.properties={}),A[D.SchemaTag.artifactType]=D.ArtifactType.Manifest;let E,O;if(g&&g.indexOf(D.FacetBase.LineItem)>-1?(E=g.split(".")[1],O=t[0].secondary[0].annotationPath.split(D.UIVOCABULARYDOT)[1]):i&&(E=O=i.split(D.UIVOCABULARYDOT)[1]),E){let ft={isObjectPage:!1,appSchema:e,lineItemAnnotation:(_=n.entityType)==null?void 0:_.annotations.UI[E],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:D.DefinitionName.LineItems};bc(ft,D.DefinitionName.ViewTableColumn),m&&(e.definitions[D.DefinitionName.ALPTable][D.SchemaTag.annotationPath]=m);let ht=s[O].fullyQualifiedName.split("@");A[D.SchemaTag.annotationPath]=`/${ht[0]}/@${ht[1]}`,A[D.SchemaTag.key]="secondary",A[D.SchemaTag.keys]=[{name:D.SchemaKeyName.key,value:"secondary"}]}Ec(e,r,n.logger);let F=`${D.DefinitionName.Actions}<${pt(D.DefinitionName.LineItems)}>`;ma(e,r,n.logger,void 0,F),lo(e,F,D.DefinitionName.CustomActionPosition)}o(zX,"addALPViews");function JX(e,t){let n=`${D.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[D.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][D.SchemaTag.isViewNode],e.appSchema.definitions[n][D.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${D.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[D.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${$}${i}`;let r=`${D.DefinitionName.Actions}<${e.viewKey}>`;return M1(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[D.PropertyName.actions].$ref=`${$}${r}`,n}o(JX,"addViewChartDefinitions");function ZX(e,t,n,i,r,a){let s=JX(e,t);n.definitions[s].properties.annotationPath[D.SchemaTag.hidden]=!0,n.definitions[s].properties.index[D.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[D.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${$}${s}`,description:a||l,title:l}}o(ZX,"addViewChart");function e7(e,t,n,i,r){var m;let a=`${D.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${D.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=Tt(D.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[D.SchemaTag.isViewNode],l[D.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),Ba(l.properties.toolBar,D.DefinitionName.ToolBar,s);let u=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${$}${a}`,description:e.title||u,title:u},Ba(l.properties.columns,s),l.properties.annotationPath[D.SchemaTag.hidden]=!0,l.properties.index[D.SchemaTag.hidden]=!0,l.properties.entitySet[D.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(D.UIVOCABULARYDOT)[1],g={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s};bc(g,D.DefinitionName.ViewTableColumn,D.DefinitionName.ViewCustomColumn,D.DefinitionName.ViewCustomAction)}o(e7,"addViewLineItems");function t7(e,t,n,i){e.properties[t][D.SchemaTag.isViewNode]=!0,e.properties[t][D.SchemaTag.annotationPath]=n?`/${n}/@${i[D.SchemaTag.annotationPath]}`:void 0,e.properties[t][D.SchemaTag.artifactType]=D.ArtifactType.Manifest,e.properties[t][D.SchemaTag.key]=t,e.properties[t][D.SchemaTag.keys]=[{name:D.SchemaKeyName.key,value:t}]}o(t7,"addTagsToView");function n7(e,t,n){var a;let i=n.entityType,r=e;return t.entitySet&&t.entitySet!==e.name&&(r=(a=n.serviceAVT)==null?void 0:a.entitySets.find(s=>s.name===t.entitySet),i=r.entityType),i}o(n7,"getTargetEntityType");function i7(e,t,n,i){let r=`${D.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${xc.UIAnnotationTerms.LineItem}${n.split(D.Visualization.LineItem)[1]}`,l=Tt(D.DefinitionName.ViewCustomColumn,r,e.appSchema);Ba(l.properties.position,D.DefinitionName.ViewPosition,r),Tt(D.DefinitionName.ViewPosition,r,e.appSchema),Ec(e.appSchema,i,t.logger,`${D.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Ac(e.appSchema,r,i,`${D.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&delete e.appSchema.definitions.Position;let u=`${D.DefinitionName.Actions}<${r}>`,p=`${D.DefinitionName.ViewCustomAction}<${r}>`;ma(e.appSchema,i,t.logger,p,u,s),Tt(D.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${D.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${$}${g}`,lo(e.appSchema,u,g)}o(i7,"addViewCustomExtensions");function r7(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(D.Visualization.LineItem))>-1)e7(n,t,e,n.targetAnnotation,i),i7(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)ZX(n,a,n.appSchema,t,n.viewKey,n.title);else if(s.template){let l=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${$}${D.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${$}${D.DefinitionName.LRTableView}`}}}o(r7,"addLRViewParts");function o7(e,t,n,i,r){var l;let a=e.definitions[r];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let u of t){if(!u[D.SchemaTag.key])continue;let p,g=n7(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:T,targetAnnotation:A,namespace:E,title:O}=wl(u==null?void 0:u[D.SchemaTag.annotationPath],m,n.serviceAVT,u[D.SchemaTag.key],void 0,n.logger);u.entitySet&&(p=(l=n.entityType.navigationProperties.find(K=>K.targetTypeName===E))==null?void 0:l.name);let F=pt(u[D.SchemaTag.key]),U={viewKey:F,appSchema:e,targetAnnotation:A,navPropName:p,targetEntityType:g,title:O,entitySet:u.entitySet};r7(T,s,U,n,i,m,u),t7(s,F,E,u)}}o(o7,"addLRViews");function a7(e,t,n,i,r,a){var g,m,T,A,E,O,F,U,K,j,ae,Z,re;let s=e.definitions[a],{visualization:l,targetAnnotation:u,namespace:p}=wl(n,(g=t.entityType)==null?void 0:g.annotations.UI,t.serviceAVT,void 0,D.Visualization.LineItem,t.logger);if(l){let Pe=l.split(".")[1],_=`${D.DefinitionName.LineItems}OfSPV::${pt(Pe)}`,ft=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete ft[D.SchemaTag.isViewNode],Ba(ft.properties.toolBar,D.DefinitionName.ToolBar,_),ft[D.SchemaTag.annotationPath]=u,ft.properties.columns={},Ba(ft.properties.columns,_),delete s.properties,Ba(s,`${a}SPV`),s[D.SchemaTag.annotationPath]=`/${p}/@${n}`;let ht=(m=t.entityType)==null?void 0:m.annotations.UI[Pe];ht||se(t.logger,{severity:D.LogSeverity.Error,message:q.t("NOTARGET",{target:Pe})});let je={isObjectPage:!1,appSchema:e,lineItemAnnotation:ht,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_};bc(je);let on=(T=Pe.split("#"))==null?void 0:T[1],Gn=on?`@${xc.UIAnnotationTerms.LineItem}#${on}`:`@${xc.UIAnnotationTerms.LineItem}`;Ec(e,i,t.logger,void 0,_,Gn),Ac(e,_,i,void 0,Gn);let Zt=`${D.DefinitionName.Actions}<${_}>`,Nt=dm(e,_,D.DefinitionName.CustomTableAction);ma(e,i,t.logger,mn(Nt),Zt,Gn),lo(e,Zt,D.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${$}${D.DefinitionName.ToolBarLR}`,Ba(s.properties.columns,D.DefinitionName.LineItems);let Pe=(O=(E=(A=t.entityType)==null?void 0:A.annotations)==null?void 0:E[r])==null?void 0:O.LineItem;!Pe&&!((K=(U=(F=i.options)==null?void 0:F.settings)==null?void 0:U.views)!=null&&K.paths)&&se(t.logger,{severity:D.LogSeverity.Error,message:q.t("NOLINEITEMS")});let _={isObjectPage:!1,appSchema:e,lineItemAnnotation:Pe,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D.DefinitionName.LineItems};bc(_),Ec(e,i,t.logger),Ac(e,D.DefinitionName.LineItems,i),Pe&&!((Z=(ae=(j=i.options)==null?void 0:j.settings)==null?void 0:ae.views)!=null&&Z.paths)&&(s[D.SchemaTag.annotationPath]=ur((re=t.entityType)==null?void 0:re.fullyQualifiedName,Pe.term,Pe.qualifier));let ft=`${D.DefinitionName.Actions}<${pt(D.DefinitionName.LineItems)}>`;ma(e,i,t.logger,void 0,ft),lo(e,ft,D.DefinitionName.CustomActionPosition)}}o(a7,"adaptTableDefinition");function s7(e,t,n){var i,r,a,s,l,u,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===D.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===D.TemplateType.ListReportObjectPageV4)return((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((p=(u=t==null?void 0:t.annotations.UI)==null?void 0:u.PresentationVariant)==null?void 0:p.term)}}o(s7,"getDefaultAnnotationPath");function c7(e,t,n,i){var u,p,g,m,T;let r=(g=(p=(u=t.options)==null?void 0:u.settings)==null?void 0:p.views)==null?void 0:g.paths,a=n.entityType,s=s7(t,n.entityType,n.templateType),l=_1(e,n);XX(a,e,t,i),n.templateType===D.TemplateType.ListReportObjectPageV4?(a7(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],o7(e,r,n,t,l)):(T=(m=t.options)==null?void 0:m.settings)!=null&&T.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[D.PropertyName.chart][D.SchemaTag.hidden]=!0):n.templateType===D.TemplateType.AnalyticalListPageV4&&(zX(e,r,n,s,t,l),Ac(e,D.DefinitionName.LineItems,t))}o(c7,"addTableAndViews");function l7(e,t,n){let i=D.DefinitionName.HeaderActions,r=e.definitions[i];r[D.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=D.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[D.SchemaTag.isViewNode]=!0,s.description="Custom Action",Rh(e,t,n,a,i);let l=D.DefinitionName.CustomHeaderActionPosition;Tt(l,l,e,!1),s.properties.position.$ref=`${$}${l}`,lo(e,i,l)}o(l7,"addHeaderActions");function Zu(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&ii(D.UIVOCABULARY,e.serviceAVT);if(r.properties[D.PropertyName.defaultTemplateAnnotationPath][D.SchemaTag.hidden]=!0,$a(a,r,D.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[D.ManifestSection.ui5].routing.targets;if(!l)return se(e.logger,{severity:D.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:D.MANIFESTPATH,range:[D.ManifestSection.generic]}}),r;let u=Lh(l,n,e.entitySet,i);if(!u)return r;l7(r,u,e.logger),c7(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,Lo(r,BX),r}o(Zu,"generateListReportSchemaV4");var Er=require("@sap-ux/vocabularies-types/vocabularies/UI"),N=ne(le());var NV=ne(Ks()),LV=ne(OV()),RV=ne(mS());var FV=ne(le()),_V=ne(le());function V9(e,t){var i;let n=e;for(let r of t){let a=(i=n==null?void 0:n.elements)==null?void 0:i.filter(s=>s.type!=="comment");n=a==null?void 0:a[r.index]}return n}o(V9,"findElementByXMLPath");function DV(e,t){return e[t]?!1:(e[t]={},!0)}o(DV,"ensureObjectExists");function M9(e,t){let n={},i=mn(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(M9,"getPropertiesFromRef");function w9(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=DV(l,i),m=l[i];return Fc({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(w9,"traverseDefaultAggregation");function k9(e,t){var n,i,r;return(t==null?void 0:t.defaultAggregation)&&((r=(i=(n=e[t.defaultAggregation])==null?void 0:n.metadata)==null?void 0:i.path)==null?void 0:r.length)===0}o(k9,"isDefaultAggregationAppliable");function Fc(e,t){var g,m;let{schema:n,element:i,contextPath:r,config:a={},fullSchema:s}=e,l=!1,{properties:u={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(u=M9(s,n.$ref));for(let T in u){let A=u[T],E=typeof A=="object";if(E&&(p==null?void 0:p.defaultAggregation)===T&&k9(u,p)&&(l=w9(e,t,p)||l,E=!1),!!E)if((m=(g=A.metadata)==null?void 0:g.path)!=null&&m.length){let O=A.metadata.path,F=O.slice(r.length),U=V9(i,F);l=DV(a,T)||l;let K=a[T];l=Fc({fullSchema:e.fullSchema,schema:A,element:U,contextPath:O,config:K,parent:e},t)||l}else l=t(e,A,a,T)||l}return l}o(Fc,"traverseSchema");function ef(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,RV.parse)(e.fileContent),s=(0,LV.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,NV.xml2js)(e.fileContent)}catch(r){se(n,{severity:_V.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:$g(r)}),location:{path:e.dataSourceUri}})}return i}o(ef,"parseXML");function tf(e){return`${FV.DefinitionName.CustomExtensionFragment}<${e}>`}o(tf,"getCustomExtensionFragmentDefinitionKey");function Sy(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(Sy,"getRootElement");var CS=ne(le()),IS=ne(le());var Cp=ne(le());function ys(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(ys,"getAttribute");function VV(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(VV,"getNodeByName");function U9(e){let t=e.split("/"),n=[],i;for(let r of t)if(r){if(r.startsWith("@")){i=r;break}n.push(r)}return n.length?{path:n.join("/"),term:i}:{term:e}}o(U9,"resolveMetaPath");function bS(e){var E;let{node:t,serviceAVT:n,connectionContext:i}=e,r=ys(t,"contextPath")||i.contextPath,a=ys(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(a){let O=U9(a);O.path&&(u=l?O.path:`${u}/${O.path}`,a=O.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((E=p==null?void 0:p.target)==null?void 0:E._type){case"EntitySet":{g=p.target.entityType;break}case"NavigationProperty":{g=p.target.targetType;break}case"EntityType":{g=p.target;break}}let m,T=a.split("#");T.length&&(m=T[1]);let A;if(a){let O=a.split(".");O.length&&(A=O[O.length-1])}return g?{entityType:g,metaPath:a,qualifier:m,annotationKey:A}:void 0}o(bS,"getEntityTypeResolution");function MV(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(MV,"applyAnnotationPath");function j9(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let g=wl(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(g.visualization){let m=g.visualization.split(".")[1];a=(p=(u=r==null?void 0:r.annotations)==null?void 0:u[n])==null?void 0:p[m],a!=null&&a.fullyQualifiedName&&(s=lE(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(j9,"getTableLineItemAnnotationData");var wV={"sap.fe.macros.Chart":o(e=>{let t=bS(e);MV(e.schema,t)},"sap.fe.macros.Chart"),"sap.fe.macros.FilterBar":o(e=>{var s,l,u,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=bS(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let g=ii(Cp.UIVOCABULARY,n),m=g&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[g])==null?void 0:p[r.annotationKey]);FA(r.entityType,i,m,a,r.qualifier)}},"sap.fe.macros.FilterBar"),"sap.fe.macros.Table":o(e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=bS(e),a=t.properties.columns,s=t.properties.actions;if(typeof a=="object"&&typeof s=="object"&&r){a.properties||(a.properties={}),s.properties||(s.properties={});let l=ii(Cp.UIVOCABULARY,n);if(MV(t,r),t.annotationPath){let u=j9(r,n,l);u!=null&&u.annotationPath&&(t.annotationPath=u.annotationPath);let p={isObjectPage:!1,appSchema:i,lineItemAnnotation:u.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:Cp.DefinitionName.LineItems};LA(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var kV=ne(le());var $9=new Map([["filterFields","SelectionField::"]]),B9=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),Ip={anchor:"anchor",placement:"placement",key:"key"};function H9(e,t){var n;if(typeof(e==null?void 0:e.additionalProperties)=="object"&&(e!=null&&e.additionalProperties.$ref)){let i=(n=t.definitions)==null?void 0:n[mn(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return Ip.anchor in r&&Ip.placement in r}return!1}o(H9,"isCustomExtensionSchema");function UV(e){let t=$9.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=B9.get(e),t&&(n.prefix=t)),n}o(UV,"getAnnotationPrefix");function G9(e,t,n,i){let r=t.properties[n],a=UV(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=ys(l,Ip.key)||n,p=ys(l,Ip.anchor),g=ys(l,Ip.placement)||kV.v4.Placement.After,m=a.replace?`${a.prefix}${p}`:p,T={position:{anchor:m in t.properties?m:p,placement:g}};return{key:u,extension:T}}o(G9,"getExtensionData");function W9(e,t,n){let i={},r=[],a={};for(let s in t.properties){let l=t.properties[s];if("metadata"in l){let{extension:u,key:p}=G9(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}ga(i,r,"","position");for(let s=0;s<r.length;s++){let l=r[s][0],u=t.properties[l];r[s][1].$ref==="#/definitions/"&&l in a&&(u=t.properties[a[l]]),u&&(u.propertyIndex=s)}}o(W9,"updatePropertyIndices");function K9(e,t,n,i){var a;let r=t;if(n.prefix&&r.startsWith(n.prefix))n.replace&&(r=r.replace(n.prefix,""));else if((a=i==null?void 0:i.metadata)!=null&&a.path){let s=i.metadata.path[i.metadata.path.length-1].index;r=ys(e.subElements[s],"key")||r}return r}o(K9,"getCorrectedAnchorEnumKey");function X9(e,t,n,i){var a,s;let r=UV(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;Ha(n,t,{property:u,schema:p},{excludeKey:l,resolveDefinition:!0});let g=((s=(a=p.properties)==null?void 0:a[u])==null?void 0:s.oneOf)||[];for(let m of g)typeof m=="object"&&typeof m.const=="string"&&(m.const=K9(e,m.const,r,t.properties[m.const]))}}o(X9,"applyEnumsForAnchors");function jV(e,t,n,i){H9(t,n)&&(i=i||e.name,W9(e,t,i),X9(e,t,n,i))}o(jV,"handleExtensions");var ui=[];for(let e=0;e<256;++e)ui.push((e+256).toString(16).slice(1));function $V(e,t=0){return(ui[e[t+0]]+ui[e[t+1]]+ui[e[t+2]]+ui[e[t+3]]+"-"+ui[e[t+4]]+ui[e[t+5]]+"-"+ui[e[t+6]]+ui[e[t+7]]+"-"+ui[e[t+8]]+ui[e[t+9]]+"-"+ui[e[t+10]]+ui[e[t+11]]+ui[e[t+12]]+ui[e[t+13]]+ui[e[t+14]]+ui[e[t+15]]).toLowerCase()}o($V,"unsafeStringify");var BV=ne(require("crypto"));var xy=new Uint8Array(256),Py=xy.length;function AS(){return Py>xy.length-16&&(BV.default.randomFillSync(xy),Py=0),xy.slice(Py,Py+=16)}o(AS,"rng");var HV=ne(require("crypto")),SS={randomUUID:HV.default.randomUUID};function Q9(e,t,n){if(SS.randomUUID&&!t&&!e)return SS.randomUUID();e=e||{};let i=e.random||(e.rng||AS)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){n=n||0;for(let r=0;r<16;++r)t[n+r]=i[r];return t}return $V(i)}o(Q9,"v4");var PS=Q9;var xS="sap.fe.macros",q9=["id","key","title","text","label","header"];function GV(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(GV,"getElementName");function Y9(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(Y9,"isElementWithNamespace");function z9(e){let t={},n=e.attributes||[];for(let i of n){let{key:r,value:a}=i,s="",l="xmlns:";r.startsWith(l)&&(s=r.substring(l.length)),t[a]=s}return t}o(z9,"getDependencies");function J9(e,t){let n="",i=e.attributes||[];for(let r of q9){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(J9,"getViewNodeDescription");function Z9(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(Z9,"findAvailableName");function WV(e,t){if(e.properties={},e.$ref){let n=mn(e.$ref),i=t.definitions[n];typeof i=="object"&&i.properties&&(e.type=i.type,e.isViewNode=i.isViewNode,e.properties=JSON.parse(JSON.stringify(i.properties))),delete e.$ref}}o(WV,"prepareSchemaProperties");function eQ(e,t,n){t.properties||WV(t,n);let{properties:i={}}=t;for(let r of e.attributes){let a=i[r.key];a&&a.metadata&&(a.metadata.position=r.position)}}o(eQ,"handleAttributes");function tQ(e){e.type===IS.MacrosPropertyType.Control&&(e.internalId=PS())}o(tQ,"applyIdForMacros");function nQ(e,t,n){var i,r;try{(r=(i=wV)[e])==null||r.call(i,t)}catch{se(n,{severity:CS.LogSeverity.Error,message:q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(nQ,"callAnnotationHandler");function iQ(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===IS.MacrosPropertyType.Control&&(e.controlName=n)}o(iQ,"updateMetadataByReference");function rQ(e,t,n,i){var T,A,E,O,F;let r=n.schema;t.properties||WV(t,r);let a=t.properties[i],s=(T=a==null?void 0:a.metadata)==null?void 0:T.type,l=(A=a==null?void 0:a.metadata)==null?void 0:A.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(O=(E=a==null?void 0:a.metadata)==null?void 0:E.path)!=null&&O.length?Z9(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(mn(a.$ref)):g=[`${xS}.${i}`,`${xS}.table.${i}`,`${xS}.filterBar.${i}`];let m=!1;for(let U of g){let K=(F=r.definitions)==null?void 0:F[U];if(typeof K!="object")continue;iQ(u,K,U);let j=J9(e,i),ae={$ref:kF(U),description:j,propertyIndex:n.index,metadata:u};eQ(e,ae,r),t.properties[p]=ae,m=!0,nQ(U,{...n,node:e,schema:ae,rootSchema:n.schema},n.logger);break}if(tQ(u),!m)if(a!=null&&a.properties)a.metadata=u;else{let U={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=U}return p}o(rQ,"addControlToSchema");function KV(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let a=r.$ref.split($)[1];a&&t.indexOf(a)===-1&&t.push(a)}KV(r,t)}}o(KV,"populateUsedDefinitionKeys");function oQ(e,t){if(typeof t=="object"&&typeof t.additionalProperties=="object"&&t.additionalProperties.$ref){let i=t.additionalProperties.$ref.split(".");if(i[i.length-1]===e.name)return!0}return!1}o(oQ,"isElementAddableToSchema");function aQ(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!VV(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(aQ,"getDefaultAggregation");function sQ(e,t,n,i){let r={};for(let a=0;a<e.length;a++){let s=e[a],l=!r[s.name];r[s.name]=!0,XV(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:GV(s),index:a}]},i)}}o(sQ,"handleSubElementsOfXMLNode");function XV(e,t,n,i){var g,m,T;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(g=n.schema.definitions)==null?void 0:g[mn(t.$ref)]:t;if(Y9(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let A=(T=t.metadata)==null?void 0:T.defaultAggregation;A&&oQ(e,t.properties[A])&&(t=t.properties[A]);let E=e.name.split(":"),O=rQ(e,t,n,E[E.length-1]);if(t.properties[O])t=t.properties[O];else return}let{subElements:l=[]}=e,u=t!=null&&t.metadata?t.metadata.controlName:void 0;i&&u&&n.schema.definitions[u]&&i.indexOf(u)===-1&&(i.push(u),KV(t,i));let p=aQ(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),sQ(l,t,n,i),r.push({node:e,schema:t});for(let A of r)jV(A.node,A.schema,n.schema,A.name)}o(XV,"handleXMLNode");function cQ(e,t){var i;let n=[];return(i=e==null?void 0:e.metadata)!=null&&i.namespaces&&e.metadata.namespaces.forEach(r=>{r in t&&n.push(t[r])}),n}o(cQ,"getMacrosPrefixes");function _c(e,t,n,i){let r=ef(t.file,!0,i),a=[];if(!r)return;tn();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){se(i,{severity:CS.LogSeverity.Error,message:q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=z9(l),p=cQ(e,u);if(p.length){s=JSON.parse(JSON.stringify(e));let g={};for(let m=0;m<l.subElements.length;m++){let T=l.subElements[m],A=!g[T.name];g[T.name]=!0,XV(T,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:A,path:[{name:GV(T),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},a)}for(let m in s.definitions)s.definitions[m].metadata&&!a.includes(m)&&delete s.definitions[m]}return s}o(_c,"generateMacrosSchemaDefinition");function QV(e,t){if(typeof e=="object")for(let n in e){let i=e[n];"template"in i&&i.template&&typeof i.template=="string"&&t.push(i.template),"subSections"in i&&QV(i.subSections,t)}}o(QV,"populateTemplates");function qV(e,t,n,i){var s,l,u;let r=Sc(n.manifest,i),a=[];QV(((u=(l=(s=r==null?void 0:r.options)==null?void 0:s.settings.content)==null?void 0:l.body)==null?void 0:u.sections)||{},a);for(let p of a){if(!p)continue;let g={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=tf(p);e.definitions[m]=g;let T=Pc(n.fragments,r,n.manifest,"fragment",p);if(T){g.metadata.filePath=T.relativeFilePath;let{properties:A={},definitions:E={}}=_c(t,T,n.serviceAVT,n.logger)||{};g.properties=A;for(let O in E)e.definitions[O]||(e.definitions[O]=E[O])}}return t}o(qV,"resolveFragments");var lQ=["header","layout","sections","footer"],fQ=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],OS="Custom Action";function NS(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=lm(t.item,e),p=ca(t.item),g=t.item.fullyQualifiedName.replace(`@${Er.UIAnnotationTerms.Identification}`,`/@${Er.UIAnnotationTerms.Identification}`),m=`ObjectPageHeaderAction<${pt(p)}>`,T=i.definitions[m]={type:"object",$ref:`${$}${N.DefinitionName.ObjectPageHeaderAction}`,description:Ei(t.item,r)};T[N.SchemaTag.isViewNode]=!0,T[N.SchemaTag.dataType]=to(t.item),T[N.SchemaTag.propertyIndex]=s,T[N.SchemaTag.keys]=[],t.item[N.SchemaKeyName.semanticObject]&&T[N.SchemaTag.keys].push({name:N.SchemaKeyName.semanticObject,value:t.item[N.SchemaKeyName.semanticObject]}),T[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:l}),u&&(i.definitions[m][N.SchemaTag.target]=u),T[N.SchemaTag.actionType]=n,T[N.SchemaTag.annotationPath]=`/${g}`,a.properties[p]={$ref:`${$}${m}`},a.properties[p][N.SchemaTag.propertyIndex]=s}o(NS,"addSingleHeaderActionV4");function YV(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[N.SchemaTag.isViewNode]=!0,s[N.SchemaTag.propertyIndex]=i,s[N.SchemaTag.keys]=[],s[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:e}),s[N.SchemaTag.actionType]=N.ActionType.Standard,n.properties[r]={$ref:`${$}${a}`},n.properties[r][N.SchemaTag.propertyIndex]=i,s}o(YV,"addStandardHeaderAction");function zV(e,t,n,i,r,a){let s=ca(e.item),l=Ei(e.item,n),u=pt(`${N.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Er.UIAnnotationTerms.Identification}`,`/@${Er.UIAnnotationTerms.Identification}`),g=i.definitions[u]={type:"object",$ref:`${$}${N.DefinitionName.FooterActionV4}`,description:l};g[N.SchemaTag.isViewNode]=!0,g[N.SchemaTag.actionType]=t,g[N.SchemaTag.propertyIndex]=a,g[N.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${$}${u}`}}o(zV,"addSingleFooterAction");function uQ(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===Er.UIAnnotationTypes.DataFieldForAction||i.$Type===Er.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(fQ.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(uQ,"groupByCriticality");function pQ(e,t,n,i,r){for(let a=0;a<e.length;a++)NS(t,e[a],N.ActionType.Criticality,n,i,r,a)}o(pQ,"addCriticalActions");function dQ(e,t,n,i,r,a){let s=e.findIndex(l=>{var u,p;return((p=(u=l.item.annotations)==null?void 0:u.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(NS(t,e[s],N.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(dQ,"addCopyAction");function gQ(e,t,n,i,r,a){for(let s of e)NS(t,s,N.ActionType.Annotation,n,i,r,a),a++}o(gQ,"addUncriticalActions");function mQ(e){let t="RelatedApps",n=e.properties[t]={$ref:`${$}${t}`,description:"Related Apps"};n[N.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[N.SchemaTag.artifactType]=N.ArtifactType.Manifest,n[N.SchemaTag.actionType]=N.ActionType.Standard,n[N.SchemaTag.isViewNode]=!0,n[N.SchemaTag.keys]=[{name:N.SchemaKeyName.action,value:t}]}o(mQ,"addRelatedAppsButton");function JV(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[N.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`:e[N.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`}o(JV,"setAnnotationPathFromEntitySetOrEntityType");function hQ(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?uQ(n):{};if(pQ(s,r.serviceAVT,t,e,i),r.entitySet){let p=g0(r.entitySet),g=m0(r.entitySet);if(tm(r.entitySet)&&g){let m=YV("Edit",t,i,s.length);JV(m,r.entitySet,e,"UpdateHidden")}if(p){let m=YV("Delete",t,i,s.length+1);JV(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;dQ(l,r.serviceAVT,t,e,i,u),gQ(l,r.serviceAVT,t,e,i,u),tM(t,a,N.DefinitionName.CustomHeaderActionOP,r.logger),mQ(i)}o(hQ,"addHeaderActionCallBackV4");function yQ(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===Er.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?r.push({index:l,item:s}):a.push({index:l,item:s}))});for(let s=0;s<r.length;s++){let l=r[s];zV(l,N.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];zV(l,N.ActionType.Annotation,e,t,n,r.length+s)}}o(yQ,"addFooterActionCallBackV4");function vQ(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Er.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomColumnOP}<${n}>`:N.DefinitionName.CustomColumnOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${N.DefinitionName.CustomColumnOP}<${n}>`;Ec(e,t,r,u,n,i);let p=a?n:N.DefinitionName.PositionOP;Tt(N.DefinitionName.PositionOP,p,e,a);let g=a?`${N.DefinitionName.PositionOP}<${n}>`:N.DefinitionName.PositionOP;l.properties.position.$ref=`${$}${g}`,Ac(e,n,t,g,i.replace(/::/g,"/"));let m=e.definitions[n];m&&NA(m,l)}o(vQ,"addCustomColumnsOP");function TQ(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Er.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomTableActionOP}<${n}>`:N.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description=OS;let u=`${N.DefinitionName.CustomTableActionOP}<${n}>`,p=`${N.DefinitionName.Actions}<${pt(n)}>`;ma(e,t,r,u,p,i);let g=a?n:N.DefinitionName.CustomActionPositionOP;Tt(N.DefinitionName.CustomActionPositionOP,g,e,a);let m=a?`${N.DefinitionName.CustomActionPositionOP}<${n}>`:N.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${$}${m}`,lo(e,p,m)}o(TQ,"addTableCustomActionsOP");function tM(e,t,n,i){let r=e.definitions[n];r[N.SchemaTag.isViewNode]=!0,r.description=OS;let a=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.ObjectPageHeaderActions:N.DefinitionName.FooterActions;Rh(e,t,i,n,a);let s=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.CustomHeaderActionPositionOP:N.DefinitionName.CustomFooterActionPositionOP;Tt(s,s,e,!1),r.properties.position.$ref=`${$}${s}`,lo(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${$}${n}`})}o(tM,"addHeaderFooterCustomActionsOP");function EQ(e,t,n,i,r){let a=`${N.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[N.SchemaTag.isViewNode]=!0,s.description=OS;let l=`${N.DefinitionName.CustomFormActionOP}<${n}>`,u=`${N.DefinitionName.SectionActions}<${pt(n)}>`;ma(e,t,r,l,u,i),Tt(N.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${N.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${$}${p}`,lo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${$}${a}`})}o(EQ,"addFormCustomActionsOP");function bQ(e,t,n,i,r,a,s){let l=ml(t),u=t.lastIndexOf("::"),p=u>-1?t.substring(u+2):t,g=Tt(N.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(g[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),g.properties.columns={$ref:`${$}${l}`},g.properties.toolBar.$ref=jn(N.DefinitionName.ObjectPageToolBar,t),g.properties.quickVariantSelection.$ref=jn(N.DefinitionName.QuickVariantSelectionV4OP,t);let m=Tt(N.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=jn(N.DefinitionName.AnnotationPathAsObject,t),Tt(N.DefinitionName.AnnotationPathAsObject,t,n),$a(e.entityType,n,`${N.DefinitionName.AnnotationPathAsObject}<${l}>`);let T={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return bc(T,N.DefinitionName.ObjectPageTableColumn,N.DefinitionName.CustomColumnOP,N.DefinitionName.CustomTableActionOP),vQ(n,a,l,t,s),TQ(n,a,l,t,s),g}o(bQ,"handleLineItem");function nM(e,t,n,i,r,a,s){s&&(s.properties[t]={$ref:jn(N.DefinitionName.ObjectPageSectionTableV4,t)});let l=Tt(N.DefinitionName.ObjectPageSectionTableV4,t,n);ka(e,l,ml(t)),l[N.SchemaTag.annotationPath]=e.annotationPath,l[N.SchemaTag.target]=e.namespace,l.properties.table.$ref=jn(N.DefinitionName.ObjectPageTable,t);let u=bQ(e,t,n,i,r.serviceAVT,a,r.logger);return{sectionTable:l,table:u}}o(nM,"handleSectionTable");function AQ(e,t,n,i,r,a,s){let l;a===N.SectionType.Section?l=N.DefinitionName.ObjectPageSectionForm:a===N.SectionType.HeaderSection&&(l=N.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:jn(l,n)};let u=Tt(l,n,r);e.ID||(u.properties={}),ka(e,u,n),u[N.SchemaTag.annotationPath]=e.annotationPath,u[N.SchemaTag.target]=e.namespace,u[N.SchemaTag.isViewNode]=!0;let p=sm(a,e,u,r,N.FioriElementsVersion.v4,n);if(e.base===N.FacetBase.Form){let g=ml(n);Tt(N.DefinitionName.CustomFormActionOP,p,r),EQ(r,t,p,g,s)}}o(AQ,"handleFormIdentification");function ZV(e,t,n,i,r){n.properties[t]={$ref:`${$}${r}`};let a=Tt(N.DefinitionName.CommonHeaderFacetSettings,r,i,!1);ll(e,a,t),a[N.SchemaTag.annotationPath]=e.annotationPath,a[N.SchemaTag.target]=e.namespace,a[N.SchemaTag.dataType]=ec(e==null?void 0:e.target),a[N.SchemaTag.isViewNode]=!0}o(ZV,"handleHeaderFacet");function SQ(e,t,n,i){let r=Tt(N.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=Ei(s,i),u=s.$Type.split(N.UIVOCABULARYDOT)[1],p=s.Action.replace("/","::"),g=r.properties[`${u}::${s.Action}`]={$ref:jn(N.DefinitionName.ObjectPageToolBarAction,p),description:l};g[N.SchemaTag.propertyIndex]=a,g[N.SchemaTag.annotationType]=s.$Type;let m=Tt(N.DefinitionName.ObjectPageToolBarAction,pt(p),n);m[N.SchemaTag.annotationPath]=gm(s),m[N.SchemaTag.dataType]=to(s),m.properties={},a++})}return r}o(SQ,"handleChartActions");function PQ(e,t,n,i){let r=Tt(N.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[N.SchemaTag.annotationPath]=gm(e),r[N.SchemaTag.dataType]=ec(e.target||e),r[N.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=jn(N.DefinitionName.ObjectPageToolBar,t);let a=Tt(N.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=jn(N.DefinitionName.ObjectPageToolBarActions,t);let s=SQ(e,t,n,i);return{chart:r,chartActions:s}}o(PQ,"handleChart");function iM(e,t,n,i,r=e.entityType){i&&(i.properties[t]={$ref:jn(N.DefinitionName.ObjectPageSectionChart,t)});let a=Tt(N.DefinitionName.ObjectPageSectionChart,t,n);ll(e,a,t),a[N.SchemaTag.annotationPath]=gm(e),a.properties.chart.$ref=jn(N.DefinitionName.ObjectPageChart,t);let{chart:s,chartActions:l}=PQ(e.target||e,t,n,r);return{sectionChart:a,chart:s,chartActions:l}}o(iM,"handleSectionChart");function eM(e,t,n,i,r,a){var m;let s,l,u;if(!(e!=null&&e.target)){se(r.logger,{severity:N.LogSeverity.Error,message:q.t("NOPRESENTATIONVARIANT",{key:t})});return}let p=e.target.PresentationVariant?e.target.PresentationVariant.Visualizations:e.target.Visualizations,g=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0;if(p!=null&&p[0])if(p[0].$target)s=p[0].$target,l="@"+cm(`${s.fullyQualifiedName.split("@")[1].split("/")[0]}`,r.serviceAVT),u=s;else{s=p[0],l="@"+cm(`${s.targetString.split("@")[1].split("/")[0]}`,r.serviceAVT);let A=r.entityType.navigationProperties.find(O=>O.name===g).targetType,E=l==null?void 0:l.split(N.UIVOCABULARYDOT)[1];u=E&&((m=A==null?void 0:A.annotations)==null?void 0:m.UI[E])}if(s){let T=l.split(N.UIVOCABULARYDOT)[1],A=e.target[N.SchemaTag.fullyQualifiedName].split("@")[0],E=g?`${g}::${l}`:l;if(T.startsWith(N.Visualization.Chart)){i.properties[`${t}<${l}>`]={$ref:jn(N.DefinitionName.ObjectPageSectionChart,E)};let{sectionChart:O,chart:F}=iM(s,E,n,void 0,e.entityType);O[N.SchemaTag.annotationPath]=e.annotationPath,ll(e,O,t),F[N.SchemaTag.annotationPath]=`/${A}/${l}`,F[N.SchemaTag.target]=A}else if(T.startsWith(N.Visualization.LineItem)){i.properties[`${t}<${l}>`]={$ref:jn(N.DefinitionName.ObjectPageSectionTableV4,E)};let{sectionTable:O,table:F}=nM(e,E,n,{target:u,entityType:e.entityType},r,a);O[N.SchemaTag.annotationPath]=e.annotationPath,ll(e,O,t),delete O[N.SchemaTag.isViewNode],F[N.SchemaTag.annotationPath]=`/${A}/${l}`,F[N.SchemaTag.target]=A}}}o(eM,"handleSectionPresentationVariant");function xQ(e){let t=e.facets||{};for(let n in t)if(t[n].base===N.FacetBase.CollectionFacet)return!0;return!1}o(xQ,"containsCollectionFacet");function CQ(e,t,n){var a;let i=`${N.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[N.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};Qs(n,N.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(CQ,"createCustomSubSectionReference");function IQ(e,t,n,i){var a,s,l,u;let r=(u=(l=(s=(a=t.options)==null?void 0:a.settings)==null?void 0:s.content)==null?void 0:l.body)==null?void 0:u.sections;if(r)for(let p in r){let g=Tt(n,p,e),m=Tt(N.DefinitionName.ObjectPageCustomSectionActions,p,e),T=Tt(N.DefinitionName.CustomSectionActionOP,p,e),A=`${N.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;g.properties.actions={$ref:`${$}${A}`};let E=`${N.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${$}${E}`},Tt(N.DefinitionName.CustomSectionActionPositionOP,p,e);let O=`${N.DefinitionName.CustomSectionActionPositionOP}<${p}>`;T.properties.position.$ref=`${$}${O}`,T[N.SchemaTag.isViewNode]=!0,ma(e,t,i,E,A,p),lo(e,A,O)}}o(IQ,"applyCustomActionsToCustomSections");function LS(e,t,n,i,r,a,s){var m,T,A,E,O;let l=!1,u;a&&s?(l=!xQ(a),u=CQ(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${$}${u}`},D1(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&Ha(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[N.SchemaKeyName.id,N.SchemaKeyName.key],descriptionAsFallback:!0}),u.includes(N.DefinitionName.ObjectPageCustomSectionFragment)){let F=t.definitions[N.DefinitionName.ObjectPageCustomSectionActions];F.properties={},IQ(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(N.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let F=(O=(E=(A=(T=(m=i.options)==null?void 0:m.settings)==null?void 0:T.content)==null?void 0:A.body)==null?void 0:E.sections)==null?void 0:O[s],U=F&&"subSections"in F?F.subSections:{};for(let K=g.oneOf.length-1;K>=0;K--){let j=g.oneOf[K];U[j.const]||(j.hidden=!0)}}}o(LS,"applyCustomSections");function OQ(e,t,n,i,r,a,s,l){let u=l===0,p=i.properties[t]=Oo(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[N.SchemaTag.annotationPath]=e.annotationPath,g[N.SchemaTag.target]=e.namespace,g[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:e.ID}],g[N.SchemaTag.isViewNode]=!0;let m=l+1;for(let T in e.facets)RS(a,e.facets,T,g,n,r,s,m);u&&LS(g,n,a,s,N.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(OQ,"handleCollection");function RS(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${ml(n)}>`;switch(u.base){case N.FacetBase.PresentationVariant:{eM(u,n,r,i,e,s);break}case N.FacetBase.SelectionPresentationVariant:{eM(u,n,r,i,e,s);break}case N.FacetBase.CollectionFacet:{OQ(u,n,r,i,a,e,s,l);break}case N.FacetBase.LineItem:{if(a===N.SectionType.Section){let g=t[n];nM(u,n,r,g,e,s,i)}break}case N.FacetBase.Form:case N.FacetBase.Identification:{AQ(u,s,n,i,r,a,e.logger);break}case N.FacetBase.DataPoint:{ZV(u,n,i,r,p);break}case N.FacetBase.Chart:{a===N.SectionType.HeaderSection?ZV(u,n,i,r,p):a===N.SectionType.Section&&iM(u,n,r,i);break}case N.FacetBase.Address:case N.FacetBase.Contact:{su(u,n,i,r,a);break}default:i.properties[n]=Oo(r,u,n)}}o(RS,"addSection");function NQ(e,t,n){let i=kg(e.entityType,e.serviceAVT,N.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[N.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[N.DefinitionName.Sections];for(let a in i)RS(e,i,a,r,t,N.SectionType.Section,n);LS(r,t,e,n,N.DefinitionName.ObjectPageCustomSectionFragment)}o(NQ,"addSections");function LQ(e,t,n,i){let r=wg(n,e.serviceAVT,N.FioriElementsVersion.v4,e.logger),a=t.definitions[N.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)RS(e,r,s,a,t,N.SectionType.HeaderSection,i);LS(a,t,e,i,N.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionAddress]}}o(LQ,"addHeaderSections");function RQ(e,t,n){let i=e.entityType;pm(t,i),um(t,i,e,hQ,n),i&&(t.definitions[N.DefinitionName.HeaderSections][N.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Er.UIAnnotationTerms.HeaderFacets}`),LQ(e,t,i,n)}o(RQ,"addHeader");function Op(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${$}${N.DefinitionName.Sections}`},!e.manifest[N.ManifestSection.ui5].routing||!e.manifest[N.ManifestSection.ui5].routing.targets)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:N.MANIFESTPATH}}),r;let a=r.definitions[N.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:N.DefinitionName.Sections};if(a[N.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[N.ManifestSection.ui5].routing.targets;if(!s)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}}),r;let l=Lh(s,N.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(RQ(e,r,l),a[N.SchemaTag.isViewNode]=!0,e.entityType&&(a[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${Er.UIAnnotationTerms.Facets}`),Qs(e.featureToggles,N.Features.BuildingBlocks)&&i){r.definitions[N.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{qV(r,i,e,l.id)}catch(u){se(e.logger,{severity:N.LogSeverity.Error,message:u})}}NQ(e,r,l),fm(r,e,N.FioriElementsVersion.v4,yQ),tM(r,l,N.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[N.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[N.DefinitionName.GenericColumnsOP],delete r.definitions[N.DefinitionName.GenericSections],delete r.definitions[N.DefinitionName.GenericSubSections],delete r.definitions[N.DefinitionName.ObjectPageChart],delete r.definitions[N.DefinitionName.ObjectPageSectionAddress],delete r.definitions[N.DefinitionName.ObjectPageSectionChart],delete r.definitions[N.DefinitionName.ObjectPageSectionContact],delete r.definitions[N.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[N.DefinitionName.ObjectPageSectionForm],delete r.definitions[N.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[N.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[N.DefinitionName.ObjectPageSubSections],delete r.definitions[N.DefinitionName.ObjectPageTable],delete r.definitions[N.DefinitionName.ObjectPageToolBar],delete r.definitions[N.DefinitionName.ObjectPageToolBarAction],delete r.definitions[N.DefinitionName.ObjectPageToolBarActions],delete r.definitions[N.DefinitionName.QuickVariantSelectionV4OP],Lo(r,lQ),r}o(Op,"generateObjectPageSchemaV4");function FS(e,t){return JSON.parse(JSON.stringify(t))}o(FS,"generateFreestyleSchemaV4");var Wr=ne(le());function _S(e,t,n,i,r,a,s,l,u){let p=Co(n,r),{entitySet:g,entityType:m}=Dc(p,s,t,r),T={templateType:Wr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Wr.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Op(T,e,s,l)}o(_S,"generateObjectPageInterfaceV4");function Cy(e,t,n,i,r,a,s){tn();let l=Co(i,r),{entitySet:u,entityType:p}=Dc(l,s,n,r),g={templateType:e,fioriElementsVersion:Wr.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Wr.TemplateType.ListReportObjectPageV4?Wr.v4.FE_TEMPLATE_V4_LIST_REPORT:Wr.v4.FE_TEMPLATE_V4_ALP;return Zu(g,t,m,s)}o(Cy,"generateListReportInterfaceV4");function DS(e,t,n,i,r,a){let s=Co(n,a),l={templateType:e,fioriElementsVersion:Wr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return FS(l,t)}o(DS,"generateFreestyleInterfaceV4");function VS(e,t,n,i,r,a,s){let l={};if(Qs(a,Wr.Features.BuildingBlocks)){let u=Co(r,s),p=fs(i||[],t,n,s);l=p!=null&&p.file.fileContent?_c(e,p,u,s):{}}return l}o(VS,"generateFPMCustomPageInterfaceV4");var Mc=require("@sap-ux/vocabularies-types/vocabularies/UI"),cM=ne(le());var Vc=ne(le());var aM=new Map([[Vc.PageTypeV2.ListReport,Vc.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Vc.PageTypeV2.ObjectPage,Vc.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),rM=o((e,t)=>{let n=["controllerNames","controllerName"];for(let i of n)i in e?t[i]=e[i]:i in t&&delete t[i]},"applyControllerNameProperties"),oM=o(e=>{var t;for(let[n,i]of aM)if(e!=null&&e.startsWith(i)){let r=n;if(e.includes("#")){let a=(t=e.split("#")[1])==null?void 0:t.split("::")[1];r+=`#${a}`}return r}},"getExtensionKeyForImport"),FQ=o((e,t)=>{let n="";for(let[r,a]of aM)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),sM={manifest:{path:o(()=>`sap.ui5/extends/extensions/${Vc.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=oM(n);i&&(t[i]={},rM(e[n],t[i]))}return Object.keys(t).length?t:void 0},"import"),export:o((e,t,n)=>{var a;let i=(t==null?void 0:t.id)||"",r=((a=t==null?void 0:t.settings)==null?void 0:a[n])||{};for(let s in r){let l=FQ(s,i);e[l]||(e[l]={}),rM(r[s],e[l])}for(let s in e){let l=oM(s);l&&!r[l]&&delete e[s]}},"export")}};var lt=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),Ny=o(e=>lt(e)+"/views/paths","getSettingsPathForLRViewsPaths"),Ly=o(e=>lt(e)+"/content/header","getSettingsPathForHeaderOP"),_Q=o(e=>lt(e)+"/content/footer","getSettingsPathForFooterOP"),Xr=o(e=>lt(e)+"/controlConfiguration","getControlConfigurationPath"),Ry=o((e,t,n)=>Xr(e)+`/@${Mc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),Fy=o(e=>Xr(e)+`/@${Mc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),vs=o((e,t,n,i)=>Xr(e)+`/@${Mc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),MS=o((e,t,n,i)=>Fy(e)+`/filterFields/${i}`,"getFilterFieldPath"),Zi=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Xr(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),Pi=o((e,t,n,i,r)=>r?Zi(e,t,n,i,r):Xr(e)+`/@${Mc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),_y=o((e,t,n,i,r)=>Pi(e,t,n,i,r)+cM.QUICKVARPATH,"getQuickVariantPath"),er=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Xr(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),pi=o((e,t,n,i,r)=>r?er(e,t,n,i,r):Xr(e)+`/@${Mc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),Qr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Xr(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),br=o((e,t,n,i,r)=>r?Qr(e,t,n,i,r):Xr(e)+`/@${Mc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Ui=o((e,t,n,i)=>Xr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),wn=o((e,t,n,i)=>Xr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),di=o((e,t,n,i)=>Ly(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),Dy=o((e,t,n,i)=>lt(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),go=o((e,t,n,i)=>_Q(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),hn=o((e,t,n)=>Xr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),rf=o((e,t,n,i)=>{let r=lt(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),Ts=o((e,t,n,i)=>lt(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Ar=o((e,t,n,i)=>{let r=lt(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),of=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=lt(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),Oy=class Oy{};o(Oy,"ApplicationV4"),h([kt("settings")],Oy.prototype,"settings",2);var Iy=Oy,Kr=class Kr{};o(Kr,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],Kr.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],Kr.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],Kr.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),x({since:"1.78.0"})],Kr.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"})],Kr.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}})],Kr.prototype,"dependencies",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Kr.prototype,"viewType",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Kr.prototype,"path",2),h([y(sM)],Kr.prototype,"controllerExtensions",2);var nf=Kr;var he=ne(le());function bt(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let g in n.properties){let m=Yn(e,g);if(m!=null&&m.manifest){let T=m.manifest.path([i],t,p,...r);l=Io(t,T,a,p,!0),l&&Object.keys(l).length>0&&(ul(m,l,g,e,a,r),Xg(u,l,T,s))}}}o(bt,"importSettingsOfObject");var Px={};Gs(Px,{ALPChart:()=>jP,ALPTable:()=>gf,ActionAfterExecutionConfiguration:()=>ax,ActionAfterExecutionConfigurationFooter:()=>iP,ActionAfterExecutionConfigurationForm:()=>sP,ActionAfterExecutionConfigurationOP:()=>Xp,ActionAfterExecutionConfigurationObjectPageHeader:()=>yP,ActionAfterExecutionConfigurationToolBarLR:()=>yx,Actions:()=>dx,AdditionalSemanticObject:()=>rx,CommonHeaderFacetSettings:()=>Os,CommonViewSettings:()=>df,CustomActionPosition:()=>Ex,CustomActionPositionOP:()=>nx,CustomFilterField:()=>jS,CustomFilterFieldPosition:()=>US,CustomFooterActionOP:()=>aP,CustomFooterActionPositionOP:()=>oP,CustomFormActionOP:()=>dP,CustomHeaderAction:()=>WS,CustomHeaderActionOP:()=>EP,CustomHeaderActionPosition:()=>Fp,CustomHeaderActionPositionOP:()=>TP,CustomSectionActionOP:()=>JS,CustomSectionActionPositionOP:()=>zS,CustomTableAction:()=>bx,CustomTableActionOP:()=>ix,FilterBar:()=>wS,FlexSettings:()=>AP,FooterActionV4:()=>rP,FormAction:()=>cP,Header:()=>BS,HeaderActions:()=>$S,HeaderSections:()=>OP,LRChartView:()=>$P,LRTableView:()=>BP,MultiTableModeV4:()=>GP,ObjectPageCustomHeaderSectionFlexSettings:()=>KS,ObjectPageCustomHeaderSectionFragment:()=>XS,ObjectPageCustomSectionActions:()=>QS,ObjectPageCustomSectionFragment:()=>sf,ObjectPageCustomSubSectionFragment:()=>qS,ObjectPageFooter:()=>eP,ObjectPageFooterActions:()=>ZS,ObjectPageForm:()=>fP,ObjectPageFormActions:()=>lP,ObjectPageHeader:()=>mP,ObjectPageHeaderAction:()=>vP,ObjectPageHeaderActions:()=>gP,ObjectPageHeaderSectionAddress:()=>IP,ObjectPageHeaderSectionChart:()=>PP,ObjectPageHeaderSectionContact:()=>CP,ObjectPageHeaderSectionDataPoint:()=>xP,ObjectPageHeaderSectionForm:()=>SP,ObjectPageLayout:()=>VP,ObjectPageTable:()=>Gp,ObjectPageTableColumn:()=>Tf,ObjectPageTableColumnAction:()=>zP,ObjectPageToolBarAction:()=>tx,PersonalizationType:()=>wP,PersonalizationTypeOP:()=>qP,Position:()=>lx,PositionOP:()=>JP,QuickVariantSelectionV4:()=>UP,QuickVariantSelectionV4OP:()=>YP,RelatedApps:()=>ox,Table:()=>WP,TableColumn:()=>Qy,TableColumnAction:()=>sx,TableCreationModeOP:()=>QP,TableCustomColumn:()=>ux,TableCustomColumnOP:()=>ZP,TableSettings:()=>$y,TableViewExtension:()=>HP,TableViewSettings:()=>$p,ToolBar:()=>gx,ToolBarAction:()=>vx,ViewCustomActionPosition:()=>Ax,ViewPersonalizationType:()=>kP,ViewPosition:()=>fx,ViewTableColumn:()=>qy,ViewTableColumnAction:()=>cx,ViewTableCustomAction:()=>Sx,ViewTableCustomColumn:()=>px,ViewToolBarAction:()=>Tx,VisualFilter:()=>kS,checkViewOrder:()=>KP,deleteCreationModeProperty:()=>Hp,deletePersonalizationProperty:()=>yo,exportCreationModeProperty:()=>Bp,exportPersonalization:()=>Wy,exportPersonalizationProperty:()=>ho});function DQ(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(DQ,"exportVisualFilterValueList");var af=class af{};o(af,"FilterBar"),h([y({manifest:{path:o(t=>lt(t),"path")}}),x({since:"1.99.0"}),Ae("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],af.prototype,"hideFilterBar",2),h([y({manifest:{path:Fy}}),x({since:"1.93.0"}),Ae("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],af.prototype,"initialLayout",2),h([y({manifest:{path:Fy}}),x({since:"1.93.0"}),Ae("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],af.prototype,"layout",2);var wS=af,Np=class Np{};o(Np,"VisualFilter"),h([y({manifest:{path:MS}}),x({since:"1.93.0"}),Ae("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Np.prototype,"availability",2),h([y({manifest:{path:MS,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:DQ,key:"visualFilter"}}),x({since:"1.93.0"})],Np.prototype,"visualFilterValueList",2);var kS=Np,Lp=class Lp{};o(Lp,"CustomFilterFieldPosition"),h([y({manifest:{path:o((t,n,i,r)=>vs(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Lp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>vs(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Lp.prototype,"placement",2);var US=Lp,Es=class Es{};o(Es,"CustomFilterField"),h([y({manifest:{path:vs}}),x({since:"1.77.0"})],Es.prototype,"label",2),h([y({manifest:{path:vs}}),x({since:"1.77.0"})],Es.prototype,"property",2),h([y({manifest:{path:vs}}),x({since:"1.77.0"})],Es.prototype,"template",2),h([y({manifest:{path:vs}}),x({since:"1.77.0"})],Es.prototype,"required",2),h([y({manifest:{path:vs}}),x({since:"1.77.0"})],Es.prototype,"position",2);var jS=Es;var HS=class HS{};o(HS,"HeaderActions");var $S=HS,GS=class GS{};o(GS,"Header");var BS=GS;var Rp=class Rp{};o(Rp,"CustomHeaderActionPosition"),h([y({manifest:{path:o((t,n,i,r)=>di(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Rp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>di(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Rp.prototype,"placement",2);var Fp=Rp,bs=class bs{};o(bs,"CustomHeaderAction"),h([y({manifest:{path:di}}),x({since:"1.84.0"})],bs.prototype,"text",2),h([y({manifest:{path:di}}),x({since:"1.84.0"})],bs.prototype,"position",2),h([y({manifest:{path:di}}),x({since:"1.84.0"})],bs.prototype,"press",2),h([y({manifest:{path:di},generate:qn}),x({since:"1.84.0"})],bs.prototype,"visible",2),h([y({manifest:{path:di},generate:qn}),x({since:"1.84.0"})],bs.prototype,"enabled",2);var WS=bs;var Vy=class Vy{};o(Vy,"ObjectPageCustomHeaderSectionFlexSettings"),h([y({manifest:{path:o((t,n,i)=>Ar(t,n,i,"flexSettings"),"path")}}),x({since:"1.81.0"})],Vy.prototype,"designtime",2);var KS=Vy,tr=class tr{};o(tr,"ObjectPageCustomHeaderSectionFragment"),h([y({manifest:{path:o((t,n,i)=>Ar(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],tr.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>Ar(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],tr.prototype,"relativePosition",2),h([y({manifest:{path:Ar},generate:ri}),x({since:"1.84.0"})],tr.prototype,"visible",2),h([y({manifest:{path:Ar}}),x({since:"1.77.0"})],tr.prototype,"title",2),h([y({manifest:{path:Ar}}),x({since:"1.77.0"})],tr.prototype,"subTitle",2),h([y({manifest:{path:Ar,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],tr.prototype,"fragmentName",2),h([y({manifest:{path:Ar,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),x({since:"1.86.0"})],tr.prototype,"templateEdit",2),h([y({manifest:{path:Ar}}),x({since:"1.81.0"})],tr.prototype,"stashed",2),h([y({manifest:{path:Ar}}),x({since:"1.81.0"})],tr.prototype,"flexSettings",2),h([y({manifest:{path:Ar}}),x({since:"1.81.0"})],tr.prototype,"requestGroupId",2),h([y({manifest:{path:Ar,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],tr.prototype,"controls",2);var XS=tr;var YS=class YS{};o(YS,"ObjectPageCustomSectionActions");var QS=YS,As=class As{};o(As,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:o((t,n,i)=>rf(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],As.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>rf(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],As.prototype,"relativePosition",2),h([y({manifest:{path:rf}}),x({since:"1.77.0"})],As.prototype,"title",2),h([y({manifest:{path:rf,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],As.prototype,"fragmentName",2),h([y({manifest:{path:rf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],As.prototype,"controls",2);var sf=As,Ss=class Ss extends sf{};o(Ss,"ObjectPageCustomSubSectionFragment"),h([y({manifest:{path:o((...t)=>`${of.apply({},t)}/position`,"path"),key:"anchor"}}),x({since:"1.77.0"})],Ss.prototype,"relatedFacet",2),h([y({manifest:{path:o((...t)=>`${of.apply({},t)}/position`,"path"),key:"placement"}}),x({since:"1.77.0"})],Ss.prototype,"relativePosition",2),h([y({manifest:{path:of}}),x({since:"1.77.0"})],Ss.prototype,"title",2),h([y({manifest:{path:of,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],Ss.prototype,"fragmentName",2),h([y({manifest:{path:of,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],Ss.prototype,"controls",2);var qS=Ss;var _p=class _p{};o(_p,"CustomSectionActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Ts(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],_p.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ts(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],_p.prototype,"placement",2);var zS=_p,Ps=class Ps{};o(Ps,"CustomSectionActionOP"),h([y({manifest:{path:Ts}}),x({since:"1.84.0"})],Ps.prototype,"text",2),h([y({manifest:{path:Ts}}),x({since:"1.84.0"})],Ps.prototype,"position",2),h([y({manifest:{path:Ts}}),x({since:"1.84.0"})],Ps.prototype,"press",2),h([y({manifest:{path:Ts},generate:ri}),x({since:"1.84.0"})],Ps.prototype,"visible",2),h([y({manifest:{path:Ts},generate:ri}),x({since:"1.84.0"})],Ps.prototype,"enabled",2);var JS=Ps;var tP=class tP{};o(tP,"ObjectPageFooterActions");var ZS=tP,nP=class nP{};o(nP,"ObjectPageFooter");var eP=nP;var Dp=class Dp{};o(Dp,"ActionAfterExecutionConfigurationFooter"),h([y({manifest:{path:o((t,n,i,r)=>go(t,n,i,r)+"/afterExecution","path")}}),Ae("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Dp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>go(t,n,i,r)+"/afterExecution","path")}})],Dp.prototype,"enableAutoScroll",2);var iP=Dp,My=class My{};o(My,"FooterActionV4"),h([y({manifest:{path:go}}),x({since:"1.84.0"})],My.prototype,"afterExecution",2);var rP=My,Vp=class Vp{};o(Vp,"CustomFooterActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>go(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Vp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>go(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Vp.prototype,"placement",2);var oP=Vp,xs=class xs{};o(xs,"CustomFooterActionOP"),h([y({manifest:{path:go}}),x({since:"1.84.0"})],xs.prototype,"text",2),h([y({manifest:{path:go}}),x({since:"1.84.0"})],xs.prototype,"position",2),h([y({manifest:{path:go}}),x({since:"1.84.0"})],xs.prototype,"press",2),h([y({manifest:{path:go},generate:ri}),x({since:"1.84.0"})],xs.prototype,"visible",2),h([y({manifest:{path:go},generate:ri}),x({since:"1.84.0"})],xs.prototype,"enabled",2);var aP=xs;var Mp=class Mp{};o(Mp,"ActionAfterExecutionConfigurationForm"),h([y({manifest:{path:o((t,n,i,r)=>wn(t,n,i,r)+"/afterExecution","path")}}),Ae("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Mp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>wn(t,n,i,r)+"/afterExecution","path")}})],Mp.prototype,"enableAutoScroll",2);var sP=Mp,wy=class wy{};o(wy,"FormAction"),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],wy.prototype,"afterExecution",2);var cP=wy,uP=class uP{};o(uP,"ObjectPageFormActions");var lP=uP,pP=class pP{};o(pP,"ObjectPageForm");var fP=pP;var Cs=class Cs{};o(Cs,"CustomFormActionOP"),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],Cs.prototype,"text",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],Cs.prototype,"position",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],Cs.prototype,"press",2),h([y({manifest:{path:wn},generate:ri}),x({since:"1.84.0"})],Cs.prototype,"visible",2),h([y({manifest:{path:wn},generate:ri}),x({since:"1.84.0"})],Cs.prototype,"enabled",2);var dP=Cs;var hP=class hP{};o(hP,"ObjectPageHeaderActions");var gP=hP,cf=class cf{};o(cf,"ObjectPageHeader"),h([y({manifest:{path:o(t=>lt(t),"path")}}),x({since:"1.84.0"})],cf.prototype,"editableHeaderContent",2),h([y({manifest:{path:Ly}}),x({since:"1.84.0"})],cf.prototype,"visible",2),h([y({manifest:{path:Ly}}),x({since:"1.84.0"})],cf.prototype,"anchorBarVisible",2);var mP=cf;var wp=class wp{};o(wp,"ActionAfterExecutionConfigurationObjectPageHeader"),h([y({manifest:{path:o((t,n,i,r)=>di(t,n,i,r)+"/afterExecution","path")}}),Ae("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],wp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>di(t,n,i,r)+"/afterExecution","path")}})],wp.prototype,"enableAutoScroll",2);var yP=wp,ky=class ky{};o(ky,"ObjectPageHeaderAction"),h([y({manifest:{path:di}}),x({since:"1.84.0"})],ky.prototype,"afterExecution",2);var vP=ky,bP=class bP extends Fp{};o(bP,"CustomHeaderActionPositionOP");var TP=bP,Is=class Is{};o(Is,"CustomHeaderActionOP"),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Is.prototype,"text",2),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Is.prototype,"position",2),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Is.prototype,"press",2),h([y({manifest:{path:di},generate:ri}),x({since:"1.84.0"})],Is.prototype,"visible",2),h([y({manifest:{path:di},generate:ri}),x({since:"1.84.0"})],Is.prototype,"enabled",2);var EP=Is;var Uy=class Uy{};o(Uy,"FlexSettings"),h([y({manifest:{path:o((t,n,i)=>Ry(t,n,i)+"/flexSettings","path")}}),x({since:"1.81.0"}),Ae("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Uy.prototype,"designtime",2);var AP=Uy,kp=class kp{};o(kp,"CommonHeaderFacetSettings"),h([y({manifest:{path:Ry}}),x({since:"1.81.0"})],kp.prototype,"stashed",2),h([y({manifest:{path:Ry}}),x({since:"1.81.0"})],kp.prototype,"flexSettings",2);var Os=kp,NP=class NP extends Os{};o(NP,"ObjectPageHeaderSectionForm");var SP=NP,LP=class LP extends Os{};o(LP,"ObjectPageHeaderSectionChart");var PP=LP,RP=class RP extends Os{};o(RP,"ObjectPageHeaderSectionDataPoint");var xP=RP,FP=class FP extends Os{};o(FP,"ObjectPageHeaderSectionContact");var CP=FP,_P=class _P extends Os{};o(_P,"ObjectPageHeaderSectionAddress");var IP=_P,DP=class DP{};o(DP,"HeaderSections");var OP=DP;var jy=class jy{};o(jy,"ObjectPageLayout"),h([y({manifest:{path:o(t=>lt(t),"path")}}),x({since:"1.84.0"}),Ae("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],jy.prototype,"sectionLayout",2);var VP=jy;var Ky=ne(le());var MP=ne(le());var VQ=o((e,t)=>{let n=e;for(let i of t.split("/"))n[i]||(i==="paths"?n[i]=[]:n[i]={}),n=n[i];return n},"getManifestSectionByPathV4");function mo(e,t,n,i,r,a){let s=Ny(e),l=VQ(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[MP.SchemaTag.key]===(a==null?void 0:a.key)||g[MP.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(mo,"getSettingsPathForLRViewsPath");function MQ(e,t,n,i,r,a){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let u of l){let p=Number(u),g=e[u];t===g.key?s[n]=g:p>=i&&p<=r?s[Math.max(0,p+a)]=g:s[u]=g}return s}o(MQ,"fillNewlyOrderedViews");function KP(e,t){let n=t.key,i=e.findIndex(a=>(a==null?void 0:a.key)===n),r=t.index;if(i>-1&&i!==r){let a=r>i?-1:1,s=Math.min(Number(i),r),l=Math.max(Number(i),r),u=MQ(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(KP,"checkViewOrder");function Wy(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(Wy,"exportPersonalization");function ho(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(ho,"exportPersonalizationProperty");function yo(e,t,n,i){typeof e.personalization=="object"&&e.personalization[i]!==void 0?(delete e.personalization[i],Object.keys(e.personalization).length===0&&delete e.personalization):typeof e.personalization=="string"&&e.personalization!==void 0&&delete e.personalization}o(yo,"deletePersonalizationProperty");function XP(e,t,n,i,r,a){var l;let s;if(!t||Object.keys(t).length===0){let u=e;Object.keys(u).forEach(p=>{u[p]&&u[p].key===r&&(e[Number(p)]={},s=p)})}if(s){let u=(l=a.table)==null?void 0:l.views;for(let p in u)u[p].index>s&&u[p].index--}}o(XP,"deleteView");function Bp(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(Bp,"exportCreationModeProperty");function Hp(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0?delete e.creationMode[t]:typeof e.creationMode=="string"&&e.creationMode!==void 0&&delete e.creationMode}o(Hp,"deleteCreationModeProperty");function lM(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(lM,"importPersonalization");function fM(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(fM,"determineIndexOfView");var lf=class lf{};o(lf,"PersonalizationType"),h([y({manifest:{path:Pi,export:ho,delete:yo}})],lf.prototype,"column",2),h([y({manifest:{path:Pi,export:ho,delete:yo}})],lf.prototype,"sort",2),h([y({manifest:{path:Pi,export:ho,delete:yo}})],lf.prototype,"filter",2);var wP=lf,ff=class ff{};o(ff,"ViewPersonalizationType"),h([y({manifest:{path:Zi,export:ho,delete:yo}})],ff.prototype,"column",2),h([y({manifest:{path:Zi,export:ho,delete:yo}})],ff.prototype,"sort",2),h([y({manifest:{path:Pi,export:ho,delete:yo}})],ff.prototype,"filter",2);var kP=ff,uf=class uf{};o(uf,"QuickVariantSelectionV4"),h([y({manifest:{path:_y}})],uf.prototype,"paths",2),h([y({manifest:{path:_y}})],uf.prototype,"hideTableTitle",2),h([y({manifest:{path:_y}})],uf.prototype,"showCounts",2);var UP=uf,Sr=class Sr{};o(Sr,"TableSettings"),h([y({manifest:{path:Pi}}),x({since:"1.84.0"}),Ae("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Sr.prototype,"type",2),h([y({manifest:{path:Pi,import:lM,export:Wy}}),x({since:"1.86.0"})],Sr.prototype,"personalization",2),h([y({manifest:{path:Pi}}),x({since:"1.84.0"}),Ae("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],Sr.prototype,"selectionMode",2),h([y({manifest:{path:Pi}}),x({since:"1.84.0"})],Sr.prototype,"selectAll",2),h([y({manifest:{path:Pi}}),x({since:"1.84.0"})],Sr.prototype,"selectionLimit",2),h([y({manifest:{path:Pi}}),x({since:"1.84.0"}),Ae("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Sr.prototype,"enableExport",2),h([y({manifest:{path:Pi}}),x({since:"1.84.0"})],Sr.prototype,"quickVariantSelection",2),h([y({manifest:{path:Pi}}),x({since:"1.84.0"}),Ae("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Sr.prototype,"condensedTableLayout",2),h([y({manifest:{path:Pi}}),x({since:"1.117.0"}),Ae("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Sr.prototype,"hierarchyQualifier",2),h([y({manifest:{path:Pi}}),x({since:"1.120.0"}),Ae("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Sr.prototype,"widthIncludingColumnHeader",2);var $y=Sr,By=class By{};o(By,"ALPChart"),h([y({manifest:{path:o(t=>lt(t)+"/views/paths/0/primary/0","path"),delete:XP}})],By.prototype,"annotationPath",2);var jP=By,wc=class wc{};o(wc,"CommonViewSettings"),h([y({manifest:{path:mo,delete:qs}})],wc.prototype,"key",2),h([y({manifest:{path:Ny,import:fM,export:o((t,n)=>{KP(t,n)},"export"),delete:XP}})],wc.prototype,"index",2),h([y({manifest:{path:mo,delete:qs}})],wc.prototype,"annotationPath",2),h([y({manifest:{path:mo}})],wc.prototype,"entitySet",2);var df=wc,Pr=class Pr extends df{};o(Pr,"TableViewSettings"),h([y({manifest:{path:Zi}}),x({since:"1.84.0"})],Pr.prototype,"type",2),h([y({manifest:{path:Zi,import:lM}}),x({since:"1.86.0"})],Pr.prototype,"personalization",2),h([y({manifest:{path:Zi}}),x({since:"1.84.0"})],Pr.prototype,"selectionMode",2),h([y({manifest:{path:Zi}}),x({since:"1.84.0"})],Pr.prototype,"selectAll",2),h([y({manifest:{path:Zi}}),x({since:"1.84.0"})],Pr.prototype,"selectionLimit",2),h([y({manifest:{path:Zi}}),x({since:"1.84.0"}),Ae("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Pr.prototype,"enableExport",2),h([y({manifest:{path:Zi}}),x({since:"1.84.0"})],Pr.prototype,"quickVariantSelection",2),h([y({manifest:{path:Zi}}),x({since:"1.84.0"}),Ae("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Pr.prototype,"condensedTableLayout",2),h([y({manifest:{path:Zi}}),x({since:"1.120.0"}),Ae("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Pr.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:Zi}}),x({since:"1.117.0"}),Ae("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Pr.prototype,"hierarchyQualifier",2);var $p=Pr;function wQ(e){return $p}o(wQ,"getTableViewSettings");var Up=class Up extends $p{};o(Up,"ALPTable"),h([y({manifest:{path:o(t=>lt(t)+"/views/paths/0/secondary/0","path"),delete:qs}})],Up.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>lt(t),"path")}}),x({since:"1.84.0"}),Ae("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Up.prototype,"initialLoad",2);var gf=Up,Hy=class Hy extends df{};o(Hy,"LRChartView"),h([y({manifest:{path:mo},generate:qn})],Hy.prototype,"visible",2);var $P=Hy,pf=class pf extends wQ(df){};o(pf,"LRTableView"),h([y({manifest:{path:mo}})],pf.prototype,"keepPreviousPersonalization",2),h([y({manifest:{path:mo}})],pf.prototype,"entitySet",2),h([y({manifest:{path:mo},generate:qn})],pf.prototype,"visible",2);var BP=pf,Ns=class Ns{};o(Ns,"TableViewExtension"),h([y({manifest:{path:mo}})],Ns.prototype,"key",2),h([y({manifest:{path:Ny,import:fM,export:o((t,n)=>{KP(t,n)},"export"),delete:XP}})],Ns.prototype,"index",2),h([y({manifest:{path:mo}})],Ns.prototype,"label",2),h([y({manifest:{path:mo}})],Ns.prototype,"template",2),h([y({manifest:{path:mo},generate:qn})],Ns.prototype,"visible",2);var HP=Ns,Gy=class Gy{};o(Gy,"MultiTableModeV4"),h([y({manifest:{path:o(t=>lt(t)+"/views","path")}})],Gy.prototype,"showCounts",2);var GP=Gy,jp=class jp extends $y{};o(jp,"Table"),h([y({manifest:{path:o(t=>lt(t)+"/views/paths/0/secondary/0","path"),delete:qs}})],jp.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>lt(t),"path")}}),x({since:"1.84.0"}),Ae("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],jp.prototype,"initialLoad",2);var WP=jp;var mf=class mf{};o(mf,"TableCreationModeOP"),h([y({manifest:{path:o((t,n,i)=>hn(t,n,i),"path"),export:o((t,n,i)=>{Bp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Hp(t,r)},"delete")}})],mf.prototype,"name",2),h([y({manifest:{path:o((t,n,i)=>hn(t,n,i),"path"),export:o((t,n,i)=>{Bp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Hp(t,r)},"delete")}})],mf.prototype,"createAtEnd",2),h([y({manifest:{path:o((t,n,i)=>hn(t,n,i),"path"),export:o((t,n,i)=>{Bp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Hp(t,r)},"delete")}})],mf.prototype,"inlineCreationRowsHiddenInEditMode",2);var QP=mf,hf=class hf{};o(hf,"PersonalizationTypeOP"),h([y({manifest:{path:o((t,n,i)=>hn(t,n,i),"path"),export:ho,delete:yo}})],hf.prototype,"column",2),h([y({manifest:{path:o((t,n,i)=>hn(t,n,i),"path"),export:ho,delete:yo}})],hf.prototype,"sort",2),h([y({manifest:{path:o((t,n,i)=>hn(t,n,i),"path"),export:ho,delete:yo}})],hf.prototype,"filter",2);var qP=hf,yf=class yf{};o(yf,"QuickVariantSelectionV4OP"),h([y({manifest:{path:o((t,n,i)=>hn(t,n,i)+Ky.QUICKVARPATH,"path")}})],yf.prototype,"paths",2),h([y({manifest:{path:o((t,n,i)=>hn(t,n,i)+Ky.QUICKVARPATH,"path")}})],yf.prototype,"hideTableTitle",2),h([y({manifest:{path:o((t,n,i)=>hn(t,n,i)+Ky.QUICKVARPATH,"path")}})],yf.prototype,"showCounts",2);var YP=yf,xi=class xi{};o(xi,"ObjectPageTable"),h([y({manifest:{path:hn}}),x({since:"1.84.0"})],xi.prototype,"type",2),h([y({manifest:{path:hn,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),x({since:"1.84.0"})],xi.prototype,"creationMode",2),h([y({manifest:{path:hn,import:o(t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}},"import"),export:Wy}}),x({since:"1.86.0"})],xi.prototype,"personalization",2),h([y({manifest:{path:hn}}),x({since:"1.84.0"})],xi.prototype,"selectionMode",2),h([y({manifest:{path:hn}}),x({since:"1.84.0"})],xi.prototype,"selectAll",2),h([y({manifest:{path:hn}}),x({since:"1.84.0"})],xi.prototype,"selectionLimit",2),h([y({manifest:{path:hn}}),x({since:"1.84.0"}),Ae("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],xi.prototype,"enableExport",2),h([y({manifest:{path:hn}}),x({since:"1.84.0"})],xi.prototype,"quickVariantSelection",2),h([y({manifest:{path:hn}}),x({since:"1.84.0"}),Ae("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],xi.prototype,"condensedTableLayout",2),h([y({manifest:{path:hn}}),x({since:"1.86.0"})],xi.prototype,"enableFullScreen",2),h([y({manifest:{path:hn}}),x({since:"1.84.0"})],xi.prototype,"enablePaste",2),h([y({manifest:{path:hn}}),x({since:"1.117.0"}),Ae("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],xi.prototype,"hierarchyQualifier",2),h([y({manifest:{path:hn}}),x({since:"1.120.0"}),Ae("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],xi.prototype,"widthIncludingColumnHeader",2);var Gp=xi;var Wp=class Wp{};o(Wp,"ActionAfterExecutionConfigurationOP"),h([y({manifest:{path:o((t,n,i,r)=>Ui(t,n,i,r)+"/afterExecution","path")}}),Ae("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Wp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Ui(t,n,i,r)+"/afterExecution","path")}})],Wp.prototype,"enableAutoScroll",2);var Xp=Wp,vf=class vf{};o(vf,"ObjectPageTableColumn"),h([y({manifest:{path:Ui}}),x({since:"1.84.0"}),Ae("https://ui5.sap.com/api/sap.ui.core.CSSSize")],vf.prototype,"width",2),h([y({manifest:{path:Ui}}),x({since:"1.85.0"})],vf.prototype,"availability",2),h([y({manifest:{path:Ui}}),x({since:"1.120.0"}),Ae("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],vf.prototype,"widthIncludingColumnHeader",2);var Tf=vf,ex=class ex extends Tf{};o(ex,"ObjectPageTableColumnAction");var zP=ex,Kp=class Kp{};o(Kp,"PositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Ui(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Kp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ui(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Kp.prototype,"placement",2);var JP=Kp,Ho=class Ho{};o(Ho,"TableCustomColumnOP"),h([y({manifest:{path:Ui}}),x({since:"1.84.0"})],Ho.prototype,"position",2),h([y({manifest:{path:Ui}}),x({since:"1.84.0"})],Ho.prototype,"header",2),h([y({manifest:{path:Ui}}),x({since:"1.84.0"}),Ae("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Ho.prototype,"width",2),h([y({manifest:{path:Ui}}),x({since:"1.84.0"})],Ho.prototype,"template",2),h([y({manifest:{path:Ui}}),x({since:"1.86.0"})],Ho.prototype,"horizontalAlign",2),h([y({manifest:{path:Ui}}),x({since:"1.84.0"})],Ho.prototype,"availability",2),h([y({manifest:{path:Ui}}),x({since:"1.85.0"})],Ho.prototype,"properties",2);var ZP=Ho;var Xy=class Xy{};o(Xy,"ObjectPageToolBarAction"),h([y({manifest:{path:wn}})],Xy.prototype,"enableOnSelect",2);var tx=Xy,Qp=class Qp{};o(Qp,"CustomActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>wn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Qp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>wn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Qp.prototype,"placement",2);var nx=Qp,Sa=class Sa{};o(Sa,"CustomTableActionOP"),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],Sa.prototype,"text",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],Sa.prototype,"position",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],Sa.prototype,"press",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],Sa.prototype,"requiresSelection",2),h([y({manifest:{path:wn},generate:ri}),x({since:"1.84.0"})],Sa.prototype,"visible",2),h([y({manifest:{path:wn},generate:ri}),x({since:"1.84.0"})],Sa.prototype,"enabled",2);var ix=Sa;var Ef=class Ef{};o(Ef,"AdditionalSemanticObject"),h([y({manifest:{path:Dy}}),Ae("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.108.0"})],Ef.prototype,"allowedActions",2),h([y({manifest:{path:Dy}}),Ae("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Ef.prototype,"unavailableActions",2),h([y({manifest:{path:Dy}}),Ae("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Ef.prototype,"mapping",2);var rx=Ef,qp=class qp{};o(qp,"RelatedApps"),h([y({manifest:{path:o(t=>lt(t),"path")}}),x({since:"1.84.0"})],qp.prototype,"showRelatedApps",2),h([y({manifest:{path:lt}})],qp.prototype,"additionalSemanticObjects",2);var ox=qp;var Yp=class Yp{};o(Yp,"ActionAfterExecutionConfiguration"),h([y({manifest:{path:o((t,n,i,r,a)=>pi(t,n,i,r,a)+"/afterExecution","path")}}),Ae("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Yp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>pi(t,n,i,r,a)+"/afterExecution","path")}})],Yp.prototype,"enableAutoScroll",2);var ax=Yp,bf=class bf{};o(bf,"TableColumn"),h([y({manifest:{path:pi}}),x({since:"1.84.0"}),Ae("https://ui5.sap.com/api/sap.ui.core.CSSSize")],bf.prototype,"width",2),h([y({manifest:{path:pi}}),x({since:"1.85.0"})],bf.prototype,"availability",2),h([y({manifest:{path:pi}}),x({since:"1.120.0"}),Ae("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],bf.prototype,"widthIncludingColumnHeader",2);var Qy=bf,Af=class Af{};o(Af,"ViewTableColumn"),h([y({manifest:{path:er}}),x({since:"1.84.0"}),Ae("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Af.prototype,"width",2),h([y({manifest:{path:er}}),x({since:"1.85.0"})],Af.prototype,"availability",2),h([y({manifest:{path:pi}}),x({since:"1.120.0"}),Ae("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Af.prototype,"widthIncludingColumnHeader",2);var qy=Af,Yy=class Yy extends Qy{};o(Yy,"TableColumnAction"),h([y({manifest:{path:pi}}),x({since:"1.84.0"})],Yy.prototype,"afterExecution",2);var sx=Yy,zy=class zy extends qy{};o(zy,"ViewTableColumnAction"),h([y({manifest:{path:er}}),x({since:"1.84.0"})],zy.prototype,"afterExecution",2);var cx=zy,zp=class zp{};o(zp,"Position"),h([y({manifest:{path:o((t,n,i,r,a)=>pi(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],zp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>pi(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],zp.prototype,"placement",2);var lx=zp,Jp=class Jp{};o(Jp,"ViewPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>er(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Jp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>er(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Jp.prototype,"placement",2);var fx=Jp,Go=class Go{};o(Go,"TableCustomColumn"),h([y({manifest:{path:pi}}),x({since:"1.84.0"})],Go.prototype,"position",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"})],Go.prototype,"header",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"}),Ae("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Go.prototype,"width",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"})],Go.prototype,"template",2),h([y({manifest:{path:pi}}),x({since:"1.86.0"})],Go.prototype,"horizontalAlign",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"})],Go.prototype,"availability",2),h([y({manifest:{path:pi}}),x({since:"1.85.0"})],Go.prototype,"properties",2);var ux=Go,Wo=class Wo{};o(Wo,"ViewTableCustomColumn"),h([y({manifest:{path:er}}),x({since:"1.84.0"})],Wo.prototype,"position",2),h([y({manifest:{path:er}}),x({since:"1.84.0"})],Wo.prototype,"header",2),h([y({manifest:{path:er}}),x({since:"1.84.0"}),Ae("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Wo.prototype,"width",2),h([y({manifest:{path:er}}),x({since:"1.84.0"})],Wo.prototype,"template",2),h([y({manifest:{path:er}}),x({since:"1.86.0"})],Wo.prototype,"horizontalAlign",2),h([y({manifest:{path:er}}),x({since:"1.84.0"})],Wo.prototype,"availability",2),h([y({manifest:{path:er}}),x({since:"1.85.0"})],Wo.prototype,"properties",2);var px=Wo;var mx=class mx{};o(mx,"Actions");var dx=mx,hx=class hx{};o(hx,"ToolBar");var gx=hx;var Zp=class Zp{};o(Zp,"ActionAfterExecutionConfigurationToolBarLR"),h([y({manifest:{path:o((t,n,i,r,a)=>br(t,n,i,r,a)+"/afterExecution","path")}}),Ae("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Zp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>br(t,n,i,r,a)+"/afterExecution","path")}})],Zp.prototype,"enableAutoScroll",2);var yx=Zp,ed=class ed{};o(ed,"ToolBarAction"),h([y({manifest:{path:br}})],ed.prototype,"enableOnSelect",2),h([y({manifest:{path:br}})],ed.prototype,"afterExecution",2);var vx=ed,td=class td{};o(td,"ViewToolBarAction"),h([y({manifest:{path:Qr}})],td.prototype,"enableOnSelect",2),h([y({manifest:{path:Qr}})],td.prototype,"afterExecution",2);var Tx=td,nd=class nd{};o(nd,"CustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>br(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],nd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>br(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],nd.prototype,"placement",2);var Ex=nd,Pa=class Pa{};o(Pa,"CustomTableAction"),h([y({manifest:{path:br}}),x({since:"1.84.0"})],Pa.prototype,"text",2),h([y({manifest:{path:br}}),x({since:"1.84.0"})],Pa.prototype,"position",2),h([y({manifest:{path:br}}),x({since:"1.84.0"})],Pa.prototype,"press",2),h([y({manifest:{path:br}}),x({since:"1.84.0"})],Pa.prototype,"requiresSelection",2),h([y({manifest:{path:br},generate:qn}),x({since:"1.84.0"})],Pa.prototype,"visible",2),h([y({manifest:{path:br},generate:qn}),x({since:"1.84.0"})],Pa.prototype,"enabled",2);var bx=Pa,id=class id{};o(id,"ViewCustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Qr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],id.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Qr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],id.prototype,"placement",2);var Ax=id,xa=class xa{};o(xa,"ViewTableCustomAction"),h([y({manifest:{path:Qr}}),x({since:"1.84.0"})],xa.prototype,"text",2),h([y({manifest:{path:Qr}}),x({since:"1.84.0"})],xa.prototype,"position",2),h([y({manifest:{path:Qr}}),x({since:"1.84.0"})],xa.prototype,"press",2),h([y({manifest:{path:Qr}}),x({since:"1.84.0"})],xa.prototype,"requiresSelection",2),h([y({manifest:{path:Qr},generate:qn}),x({since:"1.84.0"})],xa.prototype,"visible",2),h([y({manifest:{path:Qr},generate:qn}),x({since:"1.84.0"})],xa.prototype,"enabled",2);var Sx=xa;var Ox={};Gs(Ox,{FreestylePage:()=>Cx,ListReport:()=>xr,ObjectPage:()=>vo});function kQ(e){var t,n,i,r;((n=(t=e.paths)==null?void 0:t[0])!=null&&n.primary||(r=(i=e.paths)==null?void 0:i[0])!=null&&r.secondary)&&Object.keys(e).forEach(a=>delete e[a])}o(kQ,"deleteAllALPViews");function UQ(){}o(UQ,"doNotExport");function jQ(){}o(jQ,"doNotImport");var xr=class{};o(xr,"ListReport"),h([y({manifest:{path:o(t=>lt(t)+"/views","path"),import:jQ,export:UQ,delete:kQ}})],xr.prototype,"chart",2),h([y({manifest:{path:o(t=>lt(t),"path")}}),x({since:"1.84.0"})],xr.prototype,"variantManagement",2),h([y({manifest:{path:o(t=>lt(t)+"/views/paths/[]/0","path")}}),Ae("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],xr.prototype,"defaultPath",2),h([y({manifest:{path:o(t=>lt(t),"path")}})],xr.prototype,"defaultTemplateAnnotationPath",2),h([kt("header")],xr.prototype,"header",2),h([kt("fe::FilterBar")],xr.prototype,"filterBar",2),xr=h([wr({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],xr);var xx=ne(le());var vo=class{};o(vo,"ObjectPage"),h([kt("header")],vo.prototype,"header",2),h([kt("layout")],vo.prototype,"layout",2),h([y({manifest:{path:o(t=>lt(t),"path")}}),x({since:"1.84.0"}),Ae("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],vo.prototype,"variantManagement",2),h([kt("sections")],vo.prototype,"sections",2),vo=h([wr({id:`${xx.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:xx.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],vo);var Ix=class Ix{};o(Ix,"FreestylePage");var Cx=Ix;var Jy=ne(le());var $Q={ALPTableView:gf},BQ={ALPTableView:gf},HQ={Table:Gp,TableColumn:Tf,ObjectPageCustomSectionView:sf,ActionAfterExecutionConfiguration:Xp},GQ={[Jy.PageTypeV4.AnalyticalListPage]:$Q,[Jy.PageTypeV4.ListReport]:BQ,[Jy.PageTypeV4.ObjectPage]:HQ},Nx=class Nx extends Ml{constructor(){super(Px,Ox,GQ)}};o(Nx,"MetadataInstanceFactoryV4");var Ca=Nx;var Lx=require("@sap-ux/vocabularies-types/vocabularies/UI");function Rx(e,t,n,i,r,a,s){var g,m,T,A,E,O;let l=t.jsonSchema.definitions,u=a&&a!==`@${Lx.UIAnnotationTerms.LineItem}`?a:he.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let F in p.properties){let K=l[u].properties[F].$ref.split($)[1].split("<")[0];e.columns[F]=n.createInstance(i,K);let j=s||a;bt(e.columns[F],t.manifest,l[K],r,[F,j],j,t.logger),Ro(e.columns,F)}Ro(e,"columns")}else{let F=(O=(E=(A=(T=(m=(g=t.manifest["sap.ui5"])==null?void 0:g.routing)==null?void 0:m.targets)==null?void 0:T[r])==null?void 0:A.options)==null?void 0:E.settings)==null?void 0:O.views;(!F||F.paths.length<1)&&se(t.logger,{severity:he.LogSeverity.Error,message:q.t("NOLINEITEMS")})}}o(Rx,"transferColumns");function WQ(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[he.DefinitionName.VisualFilters];if(t.visualFilters={},typeof s=="object"){for(let l in s.properties){let u=s.properties[l];if(typeof u=="object"&&u.$ref){let p=mn(u.$ref),g=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,g),bt(t.visualFilters[l],e.manifest,a[p],r,[l])}}Ro(t,"visualFilters")}}o(WQ,"importVisualFilters");function KQ(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,u=s;!u&&[he.DefinitionName.LineItems,`${he.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(u=`@${Lx.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${he.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let g in p.properties){let m=p.properties[g];if(typeof m=="object"&&m.$ref){let T=mn(m.$ref),A=T.split("<")[0];t.toolBar.actions[g]=n.createInstance(i,A),bt(t.toolBar.actions[g],e.manifest,l[T],r,[g,u]),Ro(t.toolBar.actions,g)}}}o(KQ,"importActions");function Fx(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,bt(u.toolBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.ToolBarLR],r,[]),KQ(e,u,n,i,r,a,s),Ro(u.toolBar,"actions"),Ro(u,"toolBar")}o(Fx,"transferToolBar");function uM(e,t,n){var s;let i=(s=e[t])==null?void 0:s[he.SchemaTag.annotationPath],r=n?`/${n}/`:"",a=i==null?void 0:i.substr(i.lastIndexOf("@"));return a=r?`${r}${a}`:a,a}o(uM,"determineTargetAnnotationOfView");function XQ(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,he.DefinitionName.ALPChart);let s=a[he.DefinitionName.ALPChart],l=s[he.SchemaTag.annotationPath];bt(t.chart,e.manifest,s,r,[s[he.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),bt(t.chart.toolBar,e.manifest,a[he.DefinitionName.ViewChartToolBar],r,[]);let u=a[he.DefinitionName.ALPTable][he.SchemaTag.annotationPath];if(u){let p=a[he.DefinitionName.ALPTable],g=t.table=n.createInstance(i,he.DefinitionName.ALPTable);Fx(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));bt(g,e.manifest,p,r,[p[he.SchemaTag.key],m]),Rx(g,e,n,i,r,void 0,m)}}o(XQ,"importALPViews");function QQ(e){let t;return e.indexOf(he.DefinitionName.LRTableView)>-1?t=he.DefinitionName.LRTableView:e.indexOf(he.DefinitionName.LRChartView)>-1?t=he.DefinitionName.LRChartView:e===he.DefinitionName.TableViewExtension&&(t=he.DefinitionName.TableViewExtension),t}o(QQ,"getViewTypeByDefinition");function qQ(e,t,n,i,r){let a=t.table.views=n.createInstance(i,he.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;bt(a,e.manifest,s[he.DefinitionName.MultiTableModeV4],r,[]);let l=s[he.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][he.SchemaTag.propertyIndex]-g[1][he.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split($)[1],m=QQ(g),T=a[p[0]]=n.createInstance(i,m),A=s[g].entitySet,E=uM(s,g,A);if(bt(T,e.manifest,s[g],r,[p[0],E]),m===he.DefinitionName.LRTableView){let O=`${he.DefinitionName.LineItemsOfView}::${p[0]}`;Fx(e,T,n,i,r,O,E),Rx(T,e,n,i,r,O,E)}Object.keys(T).length===0&&delete a[p[0]]}Ro(t.table,"views")}o(qQ,"importLRViews");function YQ(e,t,n,i,r){let a=he.DefinitionName.HeaderActions,s=he.PropertyName.header,l=e.definitions[a];if(typeof l=="object"){t[s].actions={};for(let u in l.properties){let p=l.properties[u];if(typeof p=="object"&&p.$ref){let g=mn(p.$ref),m=e.definitions[g],T=mn(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(he.PageTypeV4.ObjectPage,T),bt(t[s].actions[u],i,e.definitions[T],r,[u.replace("/","??")]),Ro(t.header,"actions"),Ro(t,"header")}}}}o(YQ,"transferHeaderActions");function zQ(e,t,n,i){let r=e.jsonSchema.definitions,a={};for(let s of[he.DefinitionName.SelectionFields,he.DefinitionName.CompactFilters]){let l=r[s];typeof l=="object"&&l.properties&&Object.keys(l.properties).length&&(a=l.properties)}for(let s in a){let l=a[s];if(typeof l!="object"||l.$ref!==$+he.DefinitionName.CustomFilterField)continue;let u=n.createInstance(he.PageTypeV4.ListReport,he.DefinitionName.CustomFilterField),p=l.$ref.split($)[1];bt(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}o(zQ,"importCustomFilterFields");function JQ(e,t,n,i,r,a){if(bt(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,he.DefinitionName.Header),bt(t.header,e.manifest,e.jsonSchema.definitions[he.DefinitionName.Header],r,[]),YQ(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,he.DefinitionName.FilterBar),bt(t.filterBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.FilterBar],r,[]),WQ(e,t.filterBar,n,i,r),zQ(e,t.filterBar,n,r),a===he.SchemaType.ListReport){let s=he.DefinitionName.Table,l=e.jsonSchema.definitions[s],u;l.$ref&&(s=l.$ref.split($)[1],l=e.jsonSchema.definitions[s],u=l.properties.columns.$ref.split($)[1]),t.table=n.createInstance(i,he.DefinitionName.Table);let p=uM(e.jsonSchema.definitions,s);bt(t.table,e.manifest,l,r,[s,p]),Fx(e,t,n,i,r,u),Rx(t.table,e,n,i,r,u,p),qQ(e,t,n,i,r)}else a===he.SchemaType.AnalyticalListPage&&XQ(e,t,n,i,r)}o(JQ,"addSettings");function kc(e,t){if(tn(),!e.jsonSchema)return;if(!e.manifest[he.ManifestSection.ui5]||!e.manifest[he.ManifestSection.ui5].routing){se(e.logger,{severity:he.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let n=e.manifest[he.ManifestSection.ui5].routing.targets;if(!n){se(e.logger,{severity:he.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let i=new Ca,r=i.createPageInstance(he.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=aE(s);if("name"in s&&(l===he.PageTypeV4.ListReport||l===he.PageTypeV4.AnalyticalListPage)){JQ(e,r,i,he.PageTypeV4.ListReport,a,t);break}}return r}o(kc,"createListReportConfig");var ve=ne(le()),Uc=require("@sap-ux/vocabularies-types/vocabularies/UI");function ZQ(e,t){var i;let n="boolean";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?e==="true"||e==="false":!1}o(ZQ,"isBoolean");function eq(e,t){var i;let n="number";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?!isNaN(parseFloat(e.toString())):!1}o(eq,"isNumber");function tq(e,t){let n=e.toString();return ZQ(n,t)?n==="true":eq(n,t)?parseFloat(n):e}o(tq,"convertValue");function nq(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=tq(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(nq,"importProperty");function pM(e,t,n){let i,r=ef(e.file,!1,n);if(r){let a=Sy(r);i={},Fc({fullSchema:t,schema:t,element:a,contextPath:[],config:i},nq)}return i}o(pM,"convertXmlFileToConfig");function Zy(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=fs(t||[],r,n,a),l;return s&&(l=pM(s,i,e.logger)),l}o(Zy,"createCustomPageConfig");function rd(e,t){var T;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=tf(t),u=(T=r.definitions)==null?void 0:T[l];if(!r||!u)return;let p=Sc(i,a),g=Pc(n||[],p,i,"fragment",t),m;if(g){let A={...u,definitions:r.definitions};m=pM(g,A,s)}return m}o(rd,"createCustomFragmentConfig");function _x(e,t=!1,n){var r,a,s;let i=t?(r=e.split("<")[1])==null?void 0:r.slice(0,-1):e;if(n){let l=i.split(`@${n}`);return`${(a=l[0])==null?void 0:a.replace(/::/g,"/")}@${n}${(s=l[1])==null?void 0:s.replace(/::/g,"#")}`}return`${e==null?void 0:e.replace(/::/g,"/").replace(/::/g,"#")}`}o(_x,"getManifestId");function od(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(od,"getDefinitionId");function iq(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[od(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(ve.DefinitionName.CustomColumnOP)>-1?s=ve.DefinitionName.CustomColumnOP:s=ve.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(ve.PageTypeV4.ObjectPage,s);bt(g,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],a),Object.keys(g).length>0&&(n[i].table.columns[u]=g)}}}o(iq,"fillTableColumnsInConfig");function mM(e,t,n,i,r,a){if(typeof t=="object")for(let s in t.properties){let l=t.properties[s];if(typeof l=="object"&&l.$ref){let u=mn(l.$ref),p=u.split("<")[0],g;p.includes(ve.DefinitionName.CustomSectionActionOP)?g=i.actions:g=i[n].table.toolBar.actions,g[s]=r.createInstance(ve.PageTypeV4.ObjectPage,p),bt(g[s],e.manifest,e.jsonSchema.definitions[u],e.routingId,[s],a),Object.keys(g[s]).length===0&&delete g[s]}}}o(mM,"fillSectionActionsInConfig");function rq(e,t,n,i,r,a){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageSectionForm}<${od(a)}>`].properties.form.$ref.split($)[1],g=e.jsonSchema.definitions[l].properties.actions.$ref.split($)[1],m=e.jsonSchema.definitions[g];for(let T in m.properties){let A=m.properties[T],E=mn(A.$ref),O=e.jsonSchema.definitions[E];if(O.annotationType===Uc.UIAnnotationTypes.DataFieldForAction||O.description==="Custom Action"){let F=mn(O.$ref)||E.split("<")[0];i[n].form.actions[T]=r.createInstance(ve.PageTypeV4.ObjectPage,F),bt(i[n].form.actions[T],e.manifest,e.jsonSchema.definitions[F],e.routingId,[T.replace("/","??")],a),Object.keys(i[n].form.actions[T]).length===0&&delete i[n].form.actions[T]}}}}o(rq,"fillFormActionsInConfig");function dM(e,t,n,i,r,a){var u;let s=a||_x(i,!1,Uc.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){n[i]={},n[i].table=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageTable);let p=`${ve.DefinitionName.ObjectPageTable}<${a?od(a):i.replace("#","::")}>`;bt(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ToolBar,{actions:{}});let g=e.jsonSchema.definitions[`${ve.DefinitionName.Actions}<${od(s)}>`];mM(e,g,i,n,r,s),iq(e,l,n,i,r,s)}}o(dM,"fillTableInConfig");function oq(e,t,n,i,r){var l;let a=_x(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageForm,{actions:{}}),rq(e,s,i,n,r,a))}o(oq,"fillFormInConfig");function aq(e,t,n,i,r,a){let s=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split($)[1];if(bt(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let u=rd(e,s.fragmentName);s.controls=u}n[i]=s}o(aq,"fillCustomSubSectionInConfig");function hM(e,t,n,i,r,a){var s,l,u,p,g;for(let m in t){let T=t[m],A=m;if(m.includes(Uc.UIAnnotationTerms.PresentationVariant)&&((s=T.$ref)!=null&&s.startsWith($+ve.DefinitionName.ObjectPageSectionTableV4))){let E=T.$ref.split($)[1];A=_x(E,!0,Uc.UIAnnotationTerms.LineItem),dM(e,n,i,m,r,A)}else(l=T.$ref)!=null&&l.startsWith($+ve.DefinitionName.ObjectPageSectionTableV4)?dM(e,n,i,m,r):T.properties&&T.properties.subsections?(i[m]={subsections:{}},hM(e,T.properties.subsections.properties,n,i[m].subsections,r,m)):(u=T.$ref)!=null&&u.startsWith($+ve.DefinitionName.ObjectPageSectionForm)&&((p=T.$ref)!=null&&p.includes(`@${Uc.UIAnnotationTerms.FieldGroup}::`))?oq(e,n,i,m,r):(g=T.$ref)!=null&&g.startsWith($+ve.DefinitionName.ObjectPageCustomSubSectionFragment)&&aq(e,T,i,m,r,a)}}o(hM,"fillSectionsInConfig");function sq(e,t,n,i){var a,s;let r=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(r)for(let l in r){let u=r[l];if("subSections"in u)continue;let p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionFragment);if(bt(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),u.actions){p.actions=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageCustomSectionActions}<${od(l)}>`];mM(e,m,l,p,i,l)}let g=u.template;if(g){let m=rd(e,g);p.controls=m}n.sections[l]=p}}o(sq,"fillCustomSectionsInConfig");function cq(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,a=r&&"facets"in r?r.facets:void 0;if(a)for(let l in a){let u=a[l],p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomHeaderSectionFragment);bt(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let T=rd(e,g);p.controls=T}let m=u.templateEdit;if(m){let T=rd(e,m);p.controlsEditMode=T}n.header.sections[l]=p}}o(cq,"fillCustomHeaderSectionsInConfig");function lq(e,t,n,i,r){var s,l;let a=e.definitions[ve.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let u in a.properties){let p=a.properties[u],g,m=(s=a.properties[u].$ref)==null?void 0:s.split($)[1];m&&(p=e.definitions[m],g=m.split("<")[0]),(g==null?void 0:g.includes(ve.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=n.createInstance(ve.PageTypeV4.ObjectPage,g),bt(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(ve.FACETTITLEPREFIX)[1]))}}}o(lq,"fillHeaderFacets");function fq(e,t,n,i,r,a,s){let l=mn(e.$ref),u=t.definitions[l],p=mn(u.$ref||e.$ref),g=n.createInstance(ve.PageTypeV4.ObjectPage,p);if(g){let m=i[r]=g;bt(m,a,t.definitions[p],s,[r.replace("/","??")]),Object.keys(m).length===0&&delete i[r]}}o(fq,"importActionSettingsOfReference");function gM(e,t,n,i,r,a,s){let l=e.definitions[a];if(typeof l=="object"){let u=t[s].actions={};for(let p in l.properties){let g=l.properties[p];typeof g=="object"&&g.$ref&&fq(g,e,n,u,p,i,r)}}}o(gM,"fillHeaderFooterActions");function uq(e,t,n){var a,s;let i=n.createPageInstance(ve.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageHeader),bt(i.header,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageFooter),bt(i.footer,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageLayout),bt(i.layout,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageLayout],e.routingId,[]),bt(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[ve.DefinitionName.Sections]&&(i.sections={},hM(e,e.jsonSchema.definitions[ve.DefinitionName.Sections].properties,r,i.sections,n)),sq(e,r,i,n),lq(e.jsonSchema,i,n,e.manifest,e.routingId),cq(e,r,i,n),gM(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.ObjectPageHeaderActions,ve.PropertyName.header),gM(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.FooterActions,ve.PropertyName.footer)),i}o(uq,"fillObjectPageConfig");function ev(e){if(tn(),!e.manifest[ve.ManifestSection.ui5]||!e.manifest[ve.ManifestSection.ui5].routing){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5]}});return}let t=e.manifest[ve.ManifestSection.ui5].routing.targets;if(!t){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let i=new Ca;return uq(e,n,i)}o(ev,"createObjectPageConfigV4");var Ke=ne(le());var Dx=[],tv={};function pq(e,t){let n=e.target,i=t.target,r=Array.isArray(n),a=Array.isArray(i);return r&&a?n.length-i.length:!r&&!a?0:r?1:-1}o(pq,"routesSorter");function Vx(e,t=[]){if(!Array.isArray(e))return e;let n=e;for(let i of t)n=n.filter(r=>!i.includes(r));return n[0]}o(Vx,"resolveTarget");function dq(e){let t={};e=e.concat().sort(pq);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=Vx(i.target,n),n.push(i.target)):a=i.target;for(let s of r){let l=s.split("(")[0];t[a]=t[a]?`${t[a]}.${l}`:l}}return t}o(dq,"populateAssociations");function gq(e,t,n){let i;return e.name?e.name===Ke.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ke.PageTypeV4.FPMCustomPage:e.name.endsWith(Ke.PageTypeV4.ListReport)||e.name.endsWith(Ke.PageTypeV4.AnalyticalListPage)?i=Ke.PageTypeV4.ListReport:e.name.endsWith(Ke.PageTypeV4.ObjectPage)?i=Ke.PageTypeV4.ObjectPage:i=Ke.PageTypeV4.CustomPage:"viewId"in e?i=Ke.PageTypeV4.CustomPage:(se(t,{severity:Ke.LogSeverity.Error,message:q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ke.MANIFESTPATH,range:[`${Ke.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ke.ViewTypes&&"viewName"in e&&(i=Ke.PageTypeV4.CustomPage)),i}o(gq,"determinePageType");function mq(e){let t=e.target.viewId||e.target.id,n=Ft(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Ke.PageTypeV4.CustomPage)return;let i=Object.keys(e.schemas).find(r=>r.includes(n))||Object.keys(e.schemas).find(r=>r.includes(n.slice(0,-1)))||Object.keys(e.schemas).find(r=>r.includes(e.page.pageType));if(i){if(e.page.pageType===Ke.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=ev(r)}else if(e.page.pageType===Ke.PageTypeV4.FPMCustomPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger,routingId:e.id,fragments:e.extensionFiles.fragments,views:e.extensionFiles.views};e.page.config=Zy(r)}else if(e.templateType===Ke.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=kc(r,Ke.SchemaType.ListReport)}else if(e.templateType===Ke.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=kc(r,Ke.SchemaType.AnalyticalListPage)}else if(e.templateType===Ke.TemplateType.FreestylePageV4&&e.page.pageType===Ke.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=ru(e.target)===Ke.TemplateType.AnalyticalListPageV4?Ke.SchemaType.AnalyticalListPage:Ke.SchemaType.ListReport;e.page.config=kc(r,s)}}}o(mq,"convertSettingsToConfig");function hq(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");Dx.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");Dx.push(t[t.length-1])}}o(hq,"updateUnhandledControllers");function yq(e,t){if(e.options){e.options.settings.variantManagement&&(t.variantManagement=e.options.settings.variantManagement),t.navigation={};for(let n in e.options.settings.navigation){let i=e.options.settings.navigation[n];t.navigation[n]=i.detail}}}o(yq,"setVariantManagmentAndNavigation");function vq(e,t,n){var i,r;if(e.options){t.entitySet=(i=e.options.settings)==null?void 0:i.entitySet,t.contextPath=(r=e.options.settings)==null?void 0:r.contextPath;let{entitySet:a,entityType:s}=Dc(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(a==null?void 0:a.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}o(vq,"setEntitySetEntityTypeContextPath");function Tq(e,t,n){var i,r;if("viewId"in e)t.view={id:e.viewId,name:e.viewName,...e.viewType&&{viewType:e.viewType},...e.viewPath&&{path:e.viewPath},...e.path&&{path:e.path}};else if([Ke.PageTypeV4.CustomPage,Ke.PageTypeV4.FPMCustomPage].includes(n)){let a=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName;t.view={...e.id&&{id:e.id},...a&&{name:a},...e.name&&{template:e.name},...e.viewType&&{viewType:e.viewType}}}}o(Tq,"evaluateCustomPageSettings");function Eq(e,t,n,i){let r=e.targets[t],a=gq(r,i.logger,t),s={pageType:a};if(vq(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),tv[t]&&tv[t].indexOf(".")!==-1){let p=tv[t].split(".");s.navigationProperty=p[p.length-1]}Tq(r,s,a),yq(r,s),hq(r);let l=e.routes.find(p=>(p==null?void 0:p.target)&&p.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),n[t]=s;let u={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};mq(u)}o(Eq,"getSinglePageAndConfig");function yM(e){let t={},n=e.manifest[Ke.ManifestSection.ui5].routing;if(!n||!n.routes){let i=q.t("NOROUTING");return se(e.logger,{severity:Ke.LogSeverity.Error,message:i,location:{path:Ke.MANIFESTPATH,range:[Ke.ManifestSection.ui5]}}),t}tv=dq(n.routes||[]);for(let i in n.targets)Eq(n,i,t,e);return t}o(yM,"getPagesAndConfigs");function vM(e){let t;if(e&&e.routes&&e.routes.length>0){for(let n of e.routes)if(n.pattern.startsWith(":?query:")){t=n;break}else if(n.pattern.indexOf("/")===-1){t=n;continue}return Vx(t?t.target:e.routes[0].target)}else return}o(vM,"getHome");function TM(e){let t=e==null?void 0:e.config;return t?{...t.flexibleColumnLayout&&{flexibleColumnLayout:t.flexibleColumnLayout},...t.viewType&&{viewType:t.viewType},...t.viewPath&&{path:t.viewPath},...t.path&&{path:t.path}}:{}}o(TM,"getSettings");function Pf(e,t){let n=e[Ke.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];a.name===t&&(i[r]=a)}return i}o(Pf,"getPages");var Mx=class Mx extends Wa{constructor(t){tn();let n=new nf,i=Ft(Ke.SchemaType.Application),r=t.appSchemas[i.filename];bt(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,vM(t.manifest[Ke.ManifestSection.ui5].routing),yM(t),{...TM(t.manifest[Ke.ManifestSection.ui5].routing),...n}),this.unhandledControllers=Dx}};o(Mx,"V4AppProvider");var Sf=Mx;var EM=require("fs"),jc=require("path"),bM=ne(le()),ad=ne(le());var AM=o((e,t,n=__dirname)=>{let i;switch(t){case ad.SchemaType.Application:{i=`${ad.SchemaType.Application}${e.toUpperCase()}.json`;break}case ad.SchemaType.FPMCustomPage:{i=`${ad.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,jc.join)(n,"schemas",e,i);if(n.endsWith((0,jc.join)("specification","packages","specification")))return(0,jc.join)(n,"dist","schemas",e,i);if(n.endsWith((0,jc.join)("src","specification")))return(0,jc.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,jc.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),bq=o(async e=>new Promise((t,n)=>{(0,EM.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),nv=o(async(e,t)=>{try{let n=AM(e||bM.FioriElementsVersion.v4,t,__dirname);return await bq(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function Aq(e,t){let n={},i=[];switch(i=[fe.SchemaType.Application],e){case fe.TemplateType.ListReportObjectPageV4:case fe.TemplateType.AnalyticalListPageV4:i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage,fe.SchemaType.FPMCustomPage);break;case fe.TemplateType.FreestylePageV4:i.push(fe.SchemaType.FreestylePage),t===fe.FioriElementsVersion.v4&&i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage,fe.SchemaType.FPMCustomPage);break;case fe.TemplateType.ListReportObjectPageV2:i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage);break;case fe.TemplateType.AnalyticalListPageV2:i.push(fe.SchemaType.AnalyticalListPage,fe.SchemaType.ObjectPage);break;case fe.TemplateType.OverviewPageV2:i.push(fe.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=Ft(r);n[a.filename]=await nv(t,r)}return n}o(Aq,"getGenericSchemas");function PM(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ii(fe.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(PM,"getAnnotationsForUi");function sd(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(sd,"getEntitySetByEntitySetName");function Sq(e,t){var r;let n=e.target.targetType,i=e.objectPath[1];for(let a=2;a<e.objectPath.length;a++){let s=e.objectPath[a];if(i&&s._type==="NavigationProperty"){let l=s.containsTarget?`${s.name}/${s.partner}`:s.name,u=(r=i.navigationPropertyBinding)==null?void 0:r[l];i=t.entitySets.find(p=>p.name===(u==null?void 0:u.name))}}return{entityType:n,entitySet:i}}o(Sq,"resolveNavigationProperty");function Dc(e,t,n,i){var l,u,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),a,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(a=(u=r.target)==null?void 0:u.entityType,s=r==null?void 0:r.target):((p=r==null?void 0:r.target)==null?void 0:p._type)==="NavigationProperty"?{entityType:a,entitySet:s}=Sq(r,e):se(i,{severity:fe.LogSeverity.Error,message:q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:fe.MANIFESTPATH}}),n&&!a&&se(i,{severity:fe.LogSeverity.Error,message:q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(Dc,"getEntityTypeEntitySetFromContextPath");function SM(e,t,n){let i=Yu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=sd(a,e.serviceAVT);s||se(e.logger,{severity:fe.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Ft(fe.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),u=Ft(fe.SchemaType.ObjectPage);n[l.filename]=cd(e,t[u.filename])}}o(SM,"generateObjectPageSchemasV2");function Pq(e,t,n){var l,u;let i=Pf(e.manifest,fe.v4.FE_TEMPLATE_V4_LIST_REPORT),r=Pf(e.manifest,fe.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let g=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(u=a[p].options.settings)==null?void 0:u.contextPath,{entitySet:T,entityType:A}=Dc(s,m,g,e.logger);e.entityType=A,e.entitySet=T;let E=Ft(fe.SchemaType.ListReport,p),O=Ft(fe.SchemaType.ListReport);e.templateType===fe.TemplateType.FreestylePageV4&&(e.templateType=ru(a[p])),n[E.filename]=Zu(e,t[O.filename],a[p].name,m)}}o(Pq,"generateListReportSchemasV4");function xq(e,t,n){var r;let i=Yu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=sd(s,e.serviceAVT);let l=Ft(fe.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=Ft(fe.SchemaType.ListReport);t[l.filename]=ld(e,n[u.filename])}}o(xq,"generateAppSchemaV2LR");function Cq(e,t,n){var a,s;let i=Pf(e.manifest,fe.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let u=(a=i[l].options.settings)==null?void 0:a.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:g,entitySet:m}=Dc(r,p,u);e.entitySet=m,e.entityType=g;let T=Ft(fe.SchemaType.ObjectPage,l),A=Ft(fe.SchemaType.ObjectPage),E=Ft(fe.SchemaType.FPMCustomPage);n[T.filename]=Op(e,t[A.filename],p,t[E.filename])}}o(Cq,"generateObjectPageSchemasV4");function Iq(e,t,n,i){var a;let r={};if(i===fe.TemplateType.ListReportObjectPageV2&&n)xq(e,r,t),SM(e,t,r);else if(i===fe.TemplateType.AnalyticalListPageV2&&n){let s=Yu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let u=s[l].entitySet;e.entitySet=sd(u,e.serviceAVT);let p=Ft(fe.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||u),g=Ft(fe.SchemaType.AnalyticalListPage);r[p.filename]=fd(e,t[g.filename])}SM(e,t,r)}else if(i===fe.TemplateType.OverviewPageV2){let s=Ft(fe.SchemaType.OverviewPage),l=Ft(fe.SchemaType.OverviewPage);r[s.filename]=ud(t[l.filename],e.manifest)}return{...t,...r}}o(Iq,"generateAppSchemasV2");function Oq(e,t,n){if(!Qs(e.featureToggles,fe.Features.BuildingBlocks))return;let i=Pf(e.manifest,fe.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=fs(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let u=Ft(fe.SchemaType.FPMCustomPage,void 0,l),p=Ft(fe.SchemaType.FPMCustomPage);n[u.filename]=_c(t[p.filename],s,e.serviceAVT,e.logger)}}}o(Oq,"generateCustomPageSchemasV4");function Nq(e,t,n){let i={};return n&&(Pq(e,t,i),Cq(e,t,i),Oq(e,t,i)),{...t,...i}}o(Nq,"generateAppSchemasV4");async function xM(e,t,n){let i=await Aq(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===fe.FioriElementsVersion.v4?Nq(e,i,t):Iq(e,i,t,n)}o(xM,"generateAppSchemas");function Lq(e){let t,n=[];switch(e.templateType){case fe.TemplateType.ListReportObjectPageV2:case fe.TemplateType.AnalyticalListPageV2:t=new Ch(e);break;case fe.TemplateType.AnalyticalListPageV4:case fe.TemplateType.ListReportObjectPageV4:case fe.TemplateType.FreestylePageV4:t=new Sf(e);break;case fe.TemplateType.OverviewPageV2:t=new Nh(e);break;default:t=new Sf(e);break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in r)n.push({dataSourceUri:a,fileContent:JSON.stringify(r[a],null,4)})}return n}o(Lq,"importConfigs");function CM(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===fe.SchemaType.Application?r=`${fe.DirName.Schemas}/${fe.FileName.App[0].toUpperCase()}${fe.FileName.App.slice(1)}`:r=`${fe.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o(CM,"getFileList");async function wx(e){var E,O;tn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new cu().doesUi5VersionFitDistTags((O=(E=t["sap.ui5"])==null?void 0:E.dependencies)==null?void 0:O.minUI5Version,i);let u=uE(t),p=Co(n,i),g=PM(p),m=pE(t,u,i),A=await xM({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return CM(A)}o(wx,"importProjectSchema");async function kx(e){var K,j;tn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new cu().doesUi5VersionFitDistTags((j=(K=t["sap.ui5"])==null?void 0:K.dependencies)==null?void 0:j.minUI5Version,i);let p=uE(t),g=MF(t),m=Co(n,i),T=pE(t,p,i),A={templateType:T,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},E=PM(m),O=await xM(A,E,T),U=Lq({manifest:t,flexChanges:s,appSchemas:O,templateType:T,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return CM(O,U)}o(kx,"importProjectSchemaAndConfig");var Rq=["header","sections","footer"];function Fq(e,t,n,i){t.properties[n][oe.SchemaTag.artifactType]=oe.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=oe.ControlType.Section;break;case"ObjectPageSubSectionV2":r=oe.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=oe.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=oe.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=oe.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=oe.ControlType.ObjectPageHeaderSection;break}r&&(gt(e,t,n),t.properties[n][oe.SchemaTag.controlType]=r)}o(Fq,"addFlexChangeForSection");function _q(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===To.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=lm(a,r.serviceAVT);if(!l)return;let p=a.Label||s,g=`ObjectPageHeaderAction<${pt(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${To.UIAnnotationTerms.Identification}`,`/@${To.UIAnnotationTerms.Identification}`);t.definitions[g][oe.SchemaTag.annotationPath]=`/${m}`,t.definitions[g][oe.SchemaTag.actionType]=oe.ActionType.Annotation,t.definitions[g].description=p,t.definitions[g][oe.SchemaTag.keys]=[{name:oe.SchemaKeyName.action,value:s}],u&&(t.definitions[g][oe.SchemaTag.target]=u),i.properties[l]={$ref:`${$}${g}`}}})}o(_q,"addHeaderActionCallBackV2");function Dq(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===To.UIAnnotationTypes.DataFieldForAction){let a=ca(r).split("::").splice(1).join("::"),s=Ei(r,e),l=pt(`${oe.DefinitionName.ObjectPageFooterAction}<${a}>`),u=r.fullyQualifiedName.replace(`@${To.UIAnnotationTerms.Identification}`,`/@${To.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[oe.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${u}`}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${$}${l}`}}})}o(Dq,"addFooterActionCallBackV2");function Vq(e,t,n,i,r,a,s,l){let u,p;if(a.ID&&a.Label?u=a.ID+a.Label.replace(/\s+/g,""):a.ID?u=a.ID:a.Label&&(u=a.Label.replace(/\s+/g,"")),u?p=`${oe.DefinitionName.CustomColumns}<${n}><${s}><${u}>`:p=`${oe.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let g=`${oe.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[g]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let m=[],T=r==null?void 0:r.entityTypes.find(E=>E.name===i),A=yc(t[oe.ManifestSection.generic].pages,n,m);return dl(e,T,A,t,l,p,g,a.ID),p}o(Vq,"ensureCustomColumnDefinitionExists");function dd(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&Fq(e,t,"visible",n)}o(dd,"addAppSchemaDefinition");function Mq(e,t,n){e.properties[t]={$ref:`${$}${n}`}}o(Mq,"addSectionReference");function pd(e,t,n,i){let r=pt(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=$+t,i.definitions[r].properties.toolBar.$ref=`${$}ObjectPageToolBar<${t}>`,i.definitions[r][oe.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=oe.FACETTITLEPREFIX+n.ID,i.definitions[r][oe.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=oe.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${$}QuickVariantSelectionOP<${t}>`,i.definitions[`QuickVariantSelectionOP<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariantSelectionOP)),i.definitions[`QuickVariant<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariant)),i.definitions[`QuickVariantSelectionOP<${t}>`].properties.variants.patternProperties["^[0-9]+$"].$ref=`${$}QuickVariant<${t}>`,$a(n.entityType,i,`QuickVariant<${t}>`)}o(pd,"addTableDefinition");function wq(e,t,n,i,r,a){if(i.base!==oe.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=Oo(n,i,t);let u=n.definitions[l];dd(n,u,a,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[oe.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${$}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${$}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${$}ObjectPageAnalyticalTable<${t}>`},{$ref:`${$}ObjectPageGridTable<${t}>`},{$ref:`${$}ObjectPageTreeTable<${t}>`}],u[oe.SchemaTag.annotationPath]=i.annotationPath,ka(i,u,t),pd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),pd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),pd("ObjectPageGridTable",t,i,n),pd("ObjectPageTreeTable",t,i,n),pd("ObjectPageAnalyticalTable",t,i,n);let p,g=T0(i.entityType,e.serviceAVT);g&&(p=Vq(n,e.manifest,g.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let T=r[m];T.base===oe.FacetBase.LineItem&&(T.ID===s||m.includes(s))&&pl(!0,n,T.target,T.entityType,T.ID||m,p)}}o(wq,"handleLineItem");function kq(e,t,n,i,r,a=!1){e.definitions[t]=Oo(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";dd(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[oe.SchemaTag.isViewNode]=!0}o(kq,"handleSubSection");function Uq(e,t,n,i,r){e.definitions[t]=Oo(e,n,i);let a=e.definitions[t];dd(e,a,r,"ObjectPageSectionChartV2")}o(Uq,"handleSectionChart");function IM(e,t,n,i,r,a){e.definitions[t]=Oo(e,n,i);let s=e.definitions[t];dd(e,s,r,a||"CommonHeaderFacetSettings"),s[oe.SchemaTag.annotationPath]=n.annotationPath,s[oe.SchemaTag.isViewNode]=!0,s[oe.SchemaTag.dataType]=ec(n==null?void 0:n.target)}o(IM,"handleHeaderFacet");function jq(e,t,n){let i=e.definitions[t],r=i[oe.SchemaTag.dataType]=ec(n==null?void 0:n.target);r==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:r==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}o(jq,"addDataPointHeaderFacetDataType");function $q(e,t,n,i,r){e.definitions[t]=Oo(e,n,i);let a=e.definitions[t];return dd(e,a,r,"ObjectPageSectionFormV2"),a[oe.SchemaTag.annotationPath]=n.annotationPath,a[oe.SchemaTag.isViewNode]=!0,a}o($q,"handleFormSection");function Bq(e,t,n){let i=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[oe.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[oe.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[oe.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[oe.FacetBase.Form,"ObjectPageHeaderSectionForm"],[oe.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[oe.FacetBase.LineItem,"ObjectPageSectionTableV2"],[oe.FacetBase.Chart,"ObjectPageSectionChartV2"],[oe.FacetBase.Address,"ObjectPageSectionAddressV2"],[oe.FacetBase.Contact,"ObjectPageSectionContactV2"],[oe.FacetBase.Form,"ObjectPageSectionFormV2"],[oe.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[oe.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[oe.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[oe.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[oe.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[oe.FacetBase.Form,"ObjectPageSubSectionFormV2"],[oe.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(Bq,"getSectionType");function Hq(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${To.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(Hq,"getReferenceKey");function NM(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=Bq(l.base,a,s),p=Hq(l,n,u),g=`${u}<${p}>`;switch(Mq(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,kq(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let T in l.facets)NM(e,l.facets,T,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{wq(e,p,r,l,t,u),hl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{Uq(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=$q(r,g,l,p,u);sm(oe.SectionType.Section,l,m,r,oe.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{su(l,p,i,r,oe.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{su(l,p,i,r,oe.SectionType.Section,oe.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{IM(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{IM(r,g,l,p,u),jq(r,g,l);break}default:i.properties[n]=Oo(r,l,p)}}o(NM,"addSection");function OM(e,t,n,i,r,a=!1){if(e)for(let s in t)NM(i,t,s,n,r,!1,a)}o(OM,"addSectionsFromFacets");function LM(e,t,n){var g,m,T,A,E,O;let i=t.definitions[oe.DefinitionName.Sections];i[oe.SchemaTag.isViewNode]=!0,(g=e.entitySet)!=null&&g.entityType&&(i[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${To.UIAnnotationTerms.Facets}`);let r=t.definitions[oe.DefinitionName.HeaderSections];if(r[oe.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${To.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=kg((T=e.entitySet)==null?void 0:T.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),s=wg((A=e.entitySet)==null?void 0:A.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,u=s&&!!Object.keys(s).length;if(!l&&!u)return;for(let F in n){let U=n[F];(O=(E=e.entitySet)==null?void 0:E.name)!=null&&O.includes(U.entitySet)?(OM(l,a,i,e,t),OM(u,s,r,e,t,!0)):LM(e,t,U.pages)}let p=t.definitions.CustomSections;for(let F in p.properties)i.properties[F]=p.properties[F]}o(LM,"addSections");function Gq(e,t,n){pm(e,n),um(e,n,t,_q,void 0,!0)}o(Gq,"addHeader");function Wq(e,t,n,i){let r=wF(t,n,i,void 0,!0);r&&S0(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(Wq,"addRelatedFacetKeysType");function cd(e,t){var s;tn();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[oe.PropertyName.sections]={$ref:$+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[oe.ManifestSection.generic].pages;return a?(Gq(n,e,r),n.definitions[oe.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},LM(e,n,a),Wq(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[oe.SchemaTag.isViewNode]=!0):delete n.properties[oe.PropertyName.sections]),fm(n,e,oe.FioriElementsVersion.v2,Dq,a),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.CommonHeaderFacetSettings,delete n.definitions.ObjectPageHeaderSection,delete n.definitions.ObjectPageCustomHeaderSectionFragment,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTableWithMultiSelect,delete n.definitions.ObjectPageResponsiveTableWithInlineDelete,delete n.definitions.ObjectPageAnalyticalTable,delete n.definitions.ObjectPageTreeTable,delete n.definitions.ObjectPageGridTable,delete n.definitions.ObjectPageToolBar,delete n.definitions.ObjectPageToolBarActions,delete n.definitions.ObjectPageForm,delete n.definitions.ObjectPageFormFields,delete n.definitions.ObjectPageFormActions,delete n.definitions.FieldPathOP,Lo(n,Rq),n):(se(e.logger,{severity:oe.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:oe.MANIFESTPATH,range:[oe.ManifestSection.generic]}}),n)}o(cd,"generateObjectPageSchemaV2");var ei=ne(le());var xf=require("@sap-ux/vocabularies-types/vocabularies/UI");var Xq=["filterBar","table","footer"],Qq=ei.UIVOCABULARYALPHADOT.substring(1);function Ux(e,t,n,i){$a(e,n,"QuickVariant"),E0(n,"QuickVariantX",t),b0(i,n,"QuickVariantX")}o(Ux,"addEnumForVariantPaths");function qq(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[xf.UIAnnotationTerms.SelectionPresentationVariant,xf.UIAnnotationTerms.SelectionVariant,xf.UIAnnotationTerms.PresentationVariant];au(e,r,i)}o(qq,"addEnumForFilterBarAnnotationPath");function Yq(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(xf.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(xf.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(Qq,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(se(n,{severity:ei.LogSeverity.Warning,message:q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(Yq,"getPresentationVariantForLineItem");function zq(e,t,n){if(im(t,"annotationPath",n))return;let i=Yq(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=ou("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||se(n,{severity:ei.LogSeverity.Warning,message:q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(zq,"getLineItemAnnotation");function ld(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:$+ei.DefinitionName.LineItems},r=$+ei.DefinitionName.ToolBarLR;vE.forEach((u,p)=>{n.properties.table.anyOf[p.toString()].$ref=$+u;let g=u.replace("<LineItems>",""),m=JSON.parse(JSON.stringify(t.definitions[g]));m.properties.columns=i,m.properties.toolBar.$ref=r,n.definitions[u]=m});let{entityType:a,uIAnnotations:s}=nm(e);if(s){let u=[],p=Fl(e.manifest[ei.ManifestSection.generic].pages,u);gl(n);let g=zq(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let T=ur(a.fullyQualifiedName,g.term,g.qualifier);vE.forEach(A=>{n.definitions[A][ei.SchemaTag.annotationPath]=T})}pl(!1,n,g,a);let m=s.SelectionFields;if(em(n,m,a),hl(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],d0(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return se(e.logger,{severity:ei.LogSeverity.Error,message:q.t("NOLR"),location:{path:ei.MANIFESTPATH,range:[ei.ManifestSection.generic]}}),n;dl(n,a,p,e.manifest,e.fragments),Ux(a,e.entitySet,n,e.serviceAVT),qq(a,n,ei.DefinitionName.ListReportFilterBar),A0(a,n,ei.DefinitionName.MultiEditV2),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return Lo(n,Xq),n}o(ld,"generateListReportSchemaV2");var Jt=ne(le());var Jq=["filterBar","keyPerformanceIndicators","chart","table","footer"];function Zq(e,t,n){var E;let i=(E=e==null?void 0:e.component)==null?void 0:E.settings;if(im(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(O){let F=O+(r?"#"+r:"");return t[F]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let O=r?q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return se(n,{severity:Jt.LogSeverity.Error,message:O}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(O){return p=p||ou("LineItem",O),g=g||ou("Chart",O),p&&g}),p=p||"LineItem",g=g||"Chart";let m=t[p],T=t[g],A=(m||i.quickVariantSelectionX?0:1)+(T?0:2);if(A>0){let O=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][A-1],F=q.t(O);se(n,{severity:Jt.LogSeverity.Warning,message:F})}return{lineItemAnnotation:m,chartAnnotation:T}}o(Zq,"getLineItemAndChartAnnotation");function eY(e,t){let n=e.definitions[Jt.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Jt.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(eY,"addChart");function fd(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[Jt.PropertyName.table].anyOf[0].$ref=$+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${$}${Jt.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${$}${Jt.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[Jt.PropertyName.table].anyOf[1].$ref=`${$}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${$}${Jt.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${$}${Jt.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[Jt.PropertyName.table].anyOf[2].$ref=`${$}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${$}${Jt.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${$}${Jt.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,p0(n.definitions.TableColumnExtensionTypeV2.enum,[Jt.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=nm(e);if(s){gl(n);let l=[],u=Vl(e.manifest[Jt.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=Zq(u,s,e.logger);p&&a0.forEach(T=>{n.definitions[T][Jt.SchemaTag.annotationPath]=ur(a.fullyQualifiedName,p.term,p.qualifier)}),pl(!1,n,p,a),g&&eY(n,g);let m=s.SelectionFields;if(em(n,m,a),hl(n,a),!u)return se(e.logger,{severity:Jt.LogSeverity.Error,message:q.t("NOLR"),location:{path:Jt.MANIFESTPATH,range:[Jt.ManifestSection.generic]}}),n;dl(n,a,u,e.manifest,e.fragments),Ux(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 Lo(n,Jq),n}o(fd,"generateAnalyticalListReportSchemaV2");function tY(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let r=i.$ref.split("/");return r[r.length-1]})}o(tY,"getCardDefinitionNames");function nY(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),r=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(r).filter(u=>i.includes(r[u].dataSource)));let s=e.definitions;s.CardModel={type:"string"},la(a,s.CardModel);let l=tY(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=$+"CardModel"}}o(nY,"addModelsEnum");function RM(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},nY(n,t),n}o(RM,"generateOverviewPageSchemaV2");var Ls=ne(le());function jx(e,t,n,i,r,a){tn();let s=Co(e,t),l={templateType:a,fioriElementsVersion:Ls.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=sd(r,l.serviceAVT),l.entitySet||se(l.logger,{severity:Ls.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(jx,"prepareGenerationV2");function $x(e,t,n,i,r,a){let s=jx(n,a,i,r,t,Ls.TemplateType.ListReportObjectPageV2);return cd(s,e)}o($x,"generateObjectPageInterfaceV2");function Bx(e,t,n,i,r,a){let s=jx(n,a,i,r,t,Ls.TemplateType.ListReportObjectPageV2);return ld(s,e)}o(Bx,"generateListReportInterfaceV2");function Hx(e,t,n,i,r,a){let s=jx(n,a,i,r,t,Ls.TemplateType.AnalyticalListPageV2);return fd(s,e)}o(Hx,"generateAnalyticalListPageInterfaceV2");function ud(e,t){return RM(e,t)}o(ud,"generateOVPInterfaceV2");var Me=ne(le());var gd=o(e=>({flexChanges:[],manifest:{[Me.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:Me.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:Me.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function FM(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===Me.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(Me.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(Me.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}o(FM,"getClassesForSingleSection");function _M(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],FM(n,i,t),_M(n,t)}}o(_M,"getSubsectionClasses");function iY(e,t,n){let i;for(let r in e.sections)i=t.sections[r],FM(i,r,n),_M(i,n)}o(iY,"getExportClassesForSections");function rY(e,t){let n=Fl(t.manifest[Me.ManifestSection.generic].pages,e);if(!n){se(t.logger,{severity:Me.LogSeverity.Error,message:q.t("NOLR"),location:{path:Me.MANIFESTPATH,range:[Me.ManifestSection.generic]}});return}if(!n.component){se(t.logger,{severity:Me.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:Me.PageTypeV2.ListReport}),location:{path:Me.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(rY,"findV2Page");function Gx(e,t){let n=Wg(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(Gx,"calculateBaseId");function DM(e,t,n=!1){let i=gd(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let a=[],s=rY(a,e),l=new Fi,u=l.createPageInstance(Me.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:Gx(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:Me.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ls(p,u,[],[],e.jsonSchema)}return i}o(DM,"exportListReportPage");function VM(e,t,n=!1){let i=e.page.config,r=gd(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=Vl(e.manifest[Me.ManifestSection.generic].pages,a,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new Fi,u=l.createPageInstance(Me.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:Gx(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:Me.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ls(p,u,[],[],e.jsonSchema)}return r}o(VM,"exportAnalyticalListPage");function MM(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=gd(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=yc(e.manifest[Me.ManifestSection.generic].pages,r,s);if(!l)return se(e.logger,{severity:Me.LogSeverity.Error,message:q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:Me.MANIFESTPATH,range:[Me.ManifestSection.generic]}}),a;let u=new Fi,p=u.createPageInstance(Me.PageTypeV2.ObjectPage,i);if(i.sections&&iY(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:Gx(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:Me.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ls(g,p,[],[],e.jsonSchema)}}return a}o(MM,"exportObjectPage");var wM=o(e=>{let t=gd();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new Fi,i=n.createPageInstance(Me.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&zu(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),oY=o((e,t,n)=>{var s;let i=gd();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new ym,e);r.settings=Object.assign(new Ka,e.settings);for(let l in n.definitions.AppSettings.properties){let u=Yn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),g=$n(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],Ua(i.manifest,p,!1))}}let a=(s=i.manifest[Me.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&PE(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function kM(e,t){if(e[Me.SchemaType.ListReport])return DM(e[Me.SchemaType.ListReport],t);if(e[Me.SchemaType.ObjectPage])return MM(e[Me.SchemaType.ObjectPage],t);if(e[Me.SchemaType.OverviewPage])return wM(e[Me.SchemaType.OverviewPage]);if(e[Me.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[Me.SchemaType.Application];return oY(n,i,r)}else if(e[Me.SchemaType.AnalyticalListPage])return VM(e[Me.SchemaType.AnalyticalListPage],t)}o(kM,"exportPageV2");function Wx(e,t,n=!1){if(e[Me.SchemaType.ListReport])return DM(e[Me.SchemaType.ListReport],t,n);if(e[Me.SchemaType.ObjectPage])return MM(e[Me.SchemaType.ObjectPage],t,n);if(e[Me.SchemaType.OverviewPage])return wM(e[Me.SchemaType.OverviewPage]);if(e[Me.SchemaType.AnalyticalListPage])return VM(e[Me.SchemaType.AnalyticalListPage],t,n)}o(Wx,"exportConfigEntityByPathV2");var Cf=ne(le()),jM=require("@sap-ux/vocabularies-types/vocabularies/UI");function UM(e,t,n=!0){n?(e.dependencies||(e.dependencies={}),e.dependencies.libs||(e.dependencies.libs={}),e.dependencies.libs[t]===void 0&&(e.dependencies.libs[t]={})):e.dependencies&&e.dependencies.libs&&e.dependencies.libs[t]!==void 0&&delete e.dependencies.libs[t]}o(UM,"updateDependencyLib");function iv(e){let t=e;if(e.indexOf("<")>-1){t=e.substring(e.indexOf("<")+1,e.length-1);let n=e.substring(0,e.lastIndexOf("::")).replace(/::/g,"/");n&&(t=`${n}/${t}`)}return t}o(iv,"extractLastIdPart");function $M(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return se(i,{severity:Cf.LogSeverity.Error,message:q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(Cf.PropertyName.sections),s=a>-1?iv(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${jM.UIAnnotationTerms.LineItem}`,u=n.eventHandler===!0?!0:void 0,p={target:t.pageNameArray[0],targetEntity:l,position:n.position,name:e,...n.header&&{header:n.header},...n.width&&{width:n.width},...n.availability&&{availability:n.availability},...u&&{eventHandler:u}},g={customExtension:Cf.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return Kx(g),!0}o($M,"createNewCustomColumn");var Rs=ne(le());var HM=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),BM=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function aY(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(aY,"initializeRouting");function sY(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(sY,"setTargetOptions");function cY(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Rs.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(cY,"calculateQueryPattern");function GM(e,t,n,i,r){if(r){e.push(...r.split("/")),e.shift();return}e.unshift(t);let a;for(let s in n){if(typeof n[s].navigation=="object"){let l=Object.keys(n[s].navigation).find(u=>n[s].navigation[u].route===i);l&&(t=l,a=n[s])}if(a){GM(e,t,n,s);return}}}o(GM,"fillNavigationParts");function lY(e){let t={},n=e==null?void 0:e.split("/");return n&&n.length>0&&n.forEach(i=>{let r=i.substring(0,i.indexOf("({")),a=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[r]=a}),t}o(lY,"fillParentKeys");function fY(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(sY(n,a,s),s!=null&&s.route&&!i.routes.some(u=>u.name===s.route)){let u=l==null?void 0:l.routePattern;if(!u){let p=[];GM(p,a,t,r,l==null?void 0:l.contextPath);let g=lY(e.routePattern);u=cY(p,l,g)}i.routes.push(HM(u,s.route,s.route))}}}o(fY,"handlePageNavigation");function uY(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(r=>r.name===n);i!==-1&&e.routes.splice(i,1)}}o(uY,"removeDeletedPages");function pY(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=BM({contextPath:e.contextPath},e.variantManagement)),t.options.settings.contextPath=e.contextPath):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.contextPath,e.entitySet?(t.options||(t.options=BM({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(a=(r=t.options)==null?void 0:r.settings)==null||delete a.entitySet}o(pY,"transferEntitySetandContextPath");function dY(e,t,n){let i=e.routes.find(r=>r.target&&r.target.indexOf(t)>-1);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}o(dY,"updateRouteLayout");function gY(e,t,n,i){return e.pageType&&![Rs.PageTypeV4.CustomPage,Rs.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:`sap.fe.templates.${i[n].pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Rs.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{settings:{viewName:e.view.name}}}),t}o(gY,"fillTarget");function WM(e,t,n){var r,a;let i=aY(n[Rs.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(HM(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=gY(u,l,s,t),pY(u,l),l&&!u.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(a=(r=l==null?void 0:l.options)==null?void 0:r.settings)!=null&&a.navigation&&(l.options.settings.navigation={}),fY(u,t,l,i,s),dY(i,s,u),i.targets[s]=l}return uY(i,t),i}o(WM,"transformRoutingV4");var Ci=ne(le());var KM=[Ci.FlexibleColumnLayoutAggregations.BeginColumnPages,Ci.FlexibleColumnLayoutAggregations.MidColumnPages,Ci.FlexibleColumnLayoutAggregations.EndColumnPages],XM=o((e,t,n,i=[],r=0)=>{var p;let a=e.routing.routes.find(g=>g.name===n);if(!a)return;typeof a.target=="string"&&(a.target=r<=2?[...i,a.target]:[a.target]);let s=e.routing.targets[n],l=(p=t.pages)==null?void 0:p[n];if(!l)return;"controlAggregation"in l?s.controlAggregation=l.controlAggregation:KM[r]?s.controlAggregation=KM[r]:s.controlAggregation=Ci.FlexibleColumnLayoutAggregations.EndColumnPages;let u=a.pattern.replace(":?query:","");if(u?s.contextPattern=u.startsWith("/")?u:`/${u}`:s.contextPattern="",l.navigation){r++;for(let g in l.navigation)XM(e,t,l.navigation[g].route,a.target,r)}},"applyFCLRouting"),mY=o((e,t)=>{e.routing.config.routerClass=Ci.v4.FIORI_FCL_ROUTER_CLASS,XM(e,t,t.home);let n={viewName:Ci.FIORI_FCL_ROOT_VIEW_NAME,type:Ci.ViewTypes.XML,async:!0,id:Ci.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,UM(e,Ci.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),hY=o(e=>{var t;e.rootView&&e.rootView.viewName===Ci.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Ci.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),QM=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?mY(e,t):hY(e)},"updateFcl");var ie=ne(le()),md=require("@sap-ux/vocabularies-types/vocabularies/UI");var qM=ne(Ks()),rv=ne(le());function yY(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(yY,"isExportValueEquals");function vY(e,t){var s;let{element:n,schema:i,parent:r,contextPath:a}=e;if(delete n.attributes[t],((s=i.metadata)==null?void 0:s.type)===rv.MacrosPropertyType.Property&&Object.keys(n.attributes).length===0&&(r!=null&&r.element.elements)){let l=a[a.length-1];l&&r.element.elements.splice(l.index,1)}}o(vY,"deleteProperty");function YM(e,t,n,i){var u,p;let{contextPath:r,fullSchema:a,element:s}=e,l=!1;if(t.hidden)return!1;if(i in n&&n[i]!==void 0)if(t.isViewNode){s.elements||(s.elements=[]);let g={name:i,type:"element"};return s.elements.push(g),Fc({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},YM)}else yY((u=s.attributes)==null?void 0:u[i],n[i])||(s.attributes||(s.attributes={}),s.attributes[i]=n[i],l=!0);else(p=s.attributes)!=null&&p[i]&&(vY(e,i),l=!0);return l}o(YM,"exportProperty");function zM(e,t,n,i,r,a){let s=ef(e.file,!1,a);if(s){let l=Sy(s);if(Fc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},YM)){let p=(0,qM.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:rv.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(zM,"getExtensionExportResult");var JM=o((e,t)=>{let{views:n,manifest:i,jsonSchema:r,page:a,logger:s}=e,l={...t,manifest:i},u;return r&&Object.keys(r).length>0&&(u=fs(n||[],a.name,i,s)),u&&zM(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),ZM=o((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:a,pageNameArray:s,logger:l}=e,{manifest:u}=r,p,g="fragment";if(i&&Object.keys(i).length>0){let m=Sc(u,s[0]);p=Pc(a,m,u,g,t)}if(p){let m=tf(t),A={...i.definitions[m],definitions:i.definitions};zM(p,r,n,A,g,l)}},"exportXMLFragmentConfig");var ew=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],TY=[...ew,"views","initialLoad","template"],Qx=o(e=>{let t=ie.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function EY(e,t,n){var s,l,u,p;let i=`@${md.UIAnnotationTerms.LineItem}`,r=`@${md.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[ie.DefinitionName.TableSPV])==null?void 0:s[ie.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let g=(u=t.appSchema.definitions[ie.DefinitionName.ALPTable])==null?void 0:u[ie.SchemaTag.annotationPath];i=r=g&&g.substr(g.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ie.PropertyName.table&&a){let g=a.split("/");i=r=g[g.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(EY,"determineTargetAnnotationOfTable");function bY(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ie.DefinitionName.ALPChart])==null?void 0:a[ie.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}o(bY,"determineTargetAnnotationOfChart");function AY(e,t,n,i,r){var a;if(e.length===3)t=n=i[ie.SchemaTag.annotationPath]&&i[ie.SchemaTag.annotationPath].substr(i[ie.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split($)[1],l=s&&r.appSchema.definitions[s],u=(l==null?void 0:l[ie.SchemaTag.annotationPath])&&l[ie.SchemaTag.annotationPath].substr(l[ie.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${u}`:u}return{targetAnnotation:t,targetAnnotationEncoded:n}}o(AY,"determineTargetAnnotationBasedOnParentView");function SY(e,t){var a;let n,i,r=(a=e.appSchema.definitions.MultiTableModeV4)==null?void 0:a.properties[t[2]];if(r)({targetAnnotation:n,targetAnnotationEncoded:i}=AY(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ie.SchemaTag.annotationPath]&&l[ie.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let u=l[ie.SchemaTag.annotationPath].split("/");return n=i=u[u.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ie.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}o(SY,"determineTargetAnnotationOfView");function PY(e,t,n){let i,r;return e[2].split(`@${ie.UIVOCABULARY}`)[1]?n&&n.indexOf(ie.FACETTITLEPREFIX)>-1?i=r=n.split(ie.FACETTITLEPREFIX)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(PY,"determineTargetAnnotationOfHeaderSections");function xY(e,t){let n=e[1].split(`@${ie.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=iv(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(xY,"determineTargetAnnotationOfSections");function CY(e,t,n){let i,r,a=!1;return e[0]===ie.PropertyName.table&&e[1]!==ie.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=EY(e,t,n):e[0]===ie.PropertyName.chart&&t.templateType===ie.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=bY(e,t,n):e[0]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=xY(e,a):e[1]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=PY(e,a,t.title):e[1]===ie.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=SY(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(CY,"determineTargetAnnotation");function IY(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ie.PropertyName.actions,ie.PropertyName.columns,ie.PropertyName.views,ie.PropertyName.visualFilters,ie.PropertyName.selectionFields].includes(ie.PropertyName[r])){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o(IY,"determineKeyForSyncRule");function OY(e){e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):e.manifestSection[e.manifestKey]||(e.manifestSection[e.manifestKey]={})}o(OY,"createNewObjectInManifest");function tw(e,t,n){var r,a;let i=!1;return t.type!=="array"&&((r=n==null?void 0:n.targetDefinition)==null?void 0:r.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(OY(e),i=!0):e.syncRule.manifest.export!==!1&&(e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length||!Array.isArray(e.configObject[e.configPropertyKey])&&e.configObject[e.configPropertyKey]===void 0?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey],i=!0),i}o(tw,"transferPropertyToManifest");function NY(e,t,n,i,r,a,s){var p,g,m;let l=!1,u=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((g=n.config.table)!=null&&g.views)||e[1]==="views"&&((m=n.config.table)!=null&&m.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&ew.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(u!=null&&u.annotationPath)&&!u.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&TY.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let T=t.syncRule.manifest.delete;typeof T=="function"&&(T(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config),l=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],l=!0);return Ua(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(NY,"deleteFromManifest");function LY(e,t,n,i){let r=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:l,targetAnnotation:u,custom:p}=CY(e,n.transferParameters,n.configObject),g=IY(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,g,u,n.configObject,a),T=Io(n.transferParameters.exportResults.manifest,m,u,p?void 0:l);if(T){let A={syncRule:t,manifestSection:T,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:g};n.configObject[n.key]!==void 0?r=tw(A,n.propertyDefinition,i):r=NY(e,A,n.transferParameters,T,m,u,l)}return r}o(LY,"exportManifestChange");function RY(e,t,n){let i=Yn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);ZM(e.transferParameters,r,n.configObject)}else i.manifest&&LY(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ie.ChangeIndicator.Updated)}o(RY,"evaluateExportRule");function FY(e,t,n,i,r){let a=[];e.propertyDefinition.$ref&&t?a.push(t.configObject):e.propertyDefinition.anyOf?a.push(n):e.propertyDefinition.type==="array"?a=n:a.push(n),e.index=0;for(let s of a)e.transferParameters.title=t==null?void 0:t.title,qx(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(FY,"transferSubObject");function _Y(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=lt(e.pageNameArray)+"/views",a=Io(e.exportResults.manifest,r);return!a.paths||Object.keys(a.paths).length===0?(a.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):a.paths[0].secondary||(a.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}o(_Y,"createALPTableView");function DY(e){var a,s;let t=!1,n=e.key;if(!e.configObject[n]||Object.keys(e.configObject[n]).length===0)return{newElementCreated:t,stopProcessing:!0};let i=lt(e.transferParameters.pageNameArray)+"/views",r=Io(e.transferParameters.exportResults.manifest,i);return!r.paths||Object.keys(r.paths).length===0?(r.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):r.paths[0].primary||(r.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),r.paths[0].secondary||(r.paths[0].secondary=[{annotationPath:((s=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||md.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(DY,"createALPChartView");function VY(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=lt(e.pageNameArray),r=Io(e.exportResults.manifest,i),a=`@${md.UIAnnotationTerms.SelectionFields}`;if(r.controlConfiguration?r.controlConfiguration[a]?r.controlConfiguration[a].filterFields||(r.controlConfiguration[a].filterFields={},n=!0):(r.controlConfiguration[a]={filterFields:{}},n=!0):(r.controlConfiguration={[a]:{filterFields:{}}},n=!0),n){let s=r.controlConfiguration[a].filterFields;Object.keys(t).forEach(l=>{let u=t[l];s[l]={};for(let p in u)p==="visualFilterValueList"?s[l].visualFilter={valueList:u[p]}:s[l][p]=u[p]})}return n}o(VY,"createVisualFilters");function MY(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=lt(t.pageNameArray)+"/views",s=Io(t.exportResults.manifest,a),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],r=!0;else{let u=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(u===-1)s.paths.push(l),r=!0;else if(u!==i.index){let p=JSON.parse(JSON.stringify(s.paths[u]));s.paths.splice(u,1),s.paths.splice(e,0,p),r=!0}}return r}o(MY,"createLRTableView");function wY(e,t,n){let i=!1,r=!1;if(t&&!n)if(t.startsWith(ie.DefinitionName.CustomColumn))i=$M(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ie.DefinitionName.ALPChartView&&e.key===ie.PropertyName.chart&&e.configObject)return DY(e);if(t===ie.DefinitionName.ALPTableView&&e.key===ie.PropertyName.table&&e.configObject)return _Y(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ie.DefinitionName.LRTableView)||t.startsWith(ie.DefinitionName.LRChartView))?i=MY(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ie.DefinitionName.VisualFilters)&&(i=VY(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(wY,"createNewElement");function kY(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0}o(kY,"isDefinitionTraversable");function Xx(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=Gg(e.configObject,e.key),s=No(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=wY(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split($)[1],i),p=a?[...t,a]:[...t,e.key];if(l||RY(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||kY(e.propertyDefinition)&&s.configObject)&&!u){let m=a?[...n,a]:n;FY(e,s,r,p,m)}}o(Xx,"transferSortedListEntry");function UY(e,t,n,i,r){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((l,u)=>l[1]&&l[1].index-u[1].index),s.forEach(l=>{var u;(u=n.properties)!=null&&u[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],Xx(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,Xx(e,i,r),a=!0)}),e.index++})}return a}o(UY,"transferConfigEntriesWithAnyOfDefinitions");function jY(e,t,n,i){let r=dE(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(jY,"mergeEntriesForInsert");function $Y(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ie.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ie.SchemaTag.propertyIndex]-r[1][ie.SchemaTag.propertyIndex])),t}o($Y,"sortProperties");function BY(e,t,n,i,r,a){var l,u;let s=!1;if(e){let p=e.anyOf;if(!p){let g=(l=e.$ref)==null?void 0:l.split($)[1];p=g?(u=t.appSchema.definitions[g])==null?void 0:u.anyOf:void 0}s=UY(n,p,i,r,a)}return s}o(BY,"checkIfAnyOfDefinition");function qx(e,t,n,i,r,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:r,key:void 0,index:s,configObject:t,propertyDefinition:void 0},u=a.additionalProperties,p=BY(u,e,l,a,n,i),g=$Y(a.properties);u!=null&&u.$ref&&jY(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!iu(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,Xx(l,n,i,p),m[1].$ref&&s++)})}o(qx,"transferManifestEntriesAndFlexChange");function nw(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ie.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(nw,"getClassesForSingleSection");function iw(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],nw(n,i,t),iw(n,t)}}o(iw,"getSubsectionClasses");function HY(e,t,n){let i;for(let r in e.sections)i=t.sections[r],nw(e,r,n),iw(i,n)}o(HY,"getExportClassesForSections");function rw(e,t){let n=Wg(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(rw,"calculateBaseId");var ow=o((e,t,n=!1)=>{var l;let i=Qx(e.manifest),r=new Ca,a=r.createPageInstance(ie.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ie.PropertyName.sections]&&HY(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:rw(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ie.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return qx(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),GY=o((e,t,n,i,r,a,s=!1)=>{var E,O;let l=Qx(e.manifest),u=e.jsonSchema,p=(E=n.table)!=null&&E[ie.PropertyName.annotationPath]?ie.DefinitionName.ALPTableView:ie.DefinitionName.Table,g=n.table=t.createInstance(i,p,n.table),m=ie.DefinitionName.LineItems;u.definitions[ie.DefinitionName.TableSPV]&&(m=u.definitions[ie.DefinitionName.TableSPV].properties.columns.$ref.split($)[1]);let T=u.definitions[`${ie.DefinitionName.Actions}<${m}>`];if((O=g.toolBar)!=null&&O.actions&&T)for(let F in T.properties)g.toolBar.actions[F]=t.createInstance(i,ie.DefinitionName.ToolBarAction,g.toolBar.actions[F]);let A={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:rw(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return qx(A,n,[],[],[],u),l},"exportListPage"),Yx=o((e,t,n,i=!1)=>{let r=new Ca,a=r.createPageInstance(ie.PageTypeV2.ListReport,e.page.config);return GY(e,r,a,ie.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),aw=o((e,t,n=!1)=>Yx(e,t,ie.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),WY=o((e,t,n,i,r,a)=>{let s=Io(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=sE());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];tw(u,p,{}),!l&&Object.keys(s).length&&VF(r,t,s)},"applyExportRule"),KY=o((e,t,n)=>{var a;let i=Qx(t),r=Object.assign(new Iy,e);r.settings=Object.assign(new nf,r.settings);for(let s in n.definitions.AppSettings.properties){let l=Yn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)WY(l,u,s,e,i.manifest,n);else{let p=Io(i.manifest,u);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],Ua(i.manifest,u,!1))}}}return i.manifest[ie.ManifestSection.ui5].routing=WM(e.home,e.pages,i.manifest),QM(i.manifest[ie.ManifestSection.ui5],e),i},"exportApplicationV4"),sw=o((e,t)=>{if(e[ie.SchemaType.ListReport])return Yx(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4);if(e[ie.SchemaType.ObjectPage])return ow(e[ie.SchemaType.ObjectPage],t);if(e[ie.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ie.SchemaType.Application];return KY(n,i,r)}else{if(e[ie.SchemaType.AnalyticalListPage])return aw(e[ie.SchemaType.AnalyticalListPage],t);if(e[ie.SchemaType.FPMCustomPage])return JM(e[ie.SchemaType.FPMCustomPage],ie.defaultExportResult)}},"exportPageV4"),zx=o((e,t,n=!1)=>{if(e[ie.SchemaType.ListReport])return Yx(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4,n);if(e[ie.SchemaType.ObjectPage])return ow(e[ie.SchemaType.ObjectPage],t,n);if(e[ie.SchemaType.AnalyticalListPage])return aw(e[ie.SchemaType.AnalyticalListPage],t,n)},"exportConfigEntityByPathV4");var $t=require("@sap-ux/fe-fpm-writer");var XY=new Map([[pe.CustomExtensionType.CustomPage,$t.generateCustomPage],[pe.CustomExtensionType.CustomColumn,$t.generateCustomColumn],[pe.CustomExtensionType.CustomSection,$t.generateCustomSection],[pe.CustomExtensionType.ObjectPage,$t.generateObjectPage],[pe.CustomExtensionType.ListReport,$t.generateListReport],[pe.CustomExtensionType.CustomAction,$t.generateCustomAction],[pe.CustomExtensionType.CustomView,$t.generateCustomView],[pe.CustomExtensionType.ControllerExtension,$t.generateControllerExtension],[pe.CustomExtensionType.CustomSubSection,$t.generateCustomSubSection],[pe.CustomExtensionType.CustomFilterField,$t.generateCustomFilter],[pe.CustomExtensionType.CustomHeaderSection,$t.generateCustomHeaderSection]]),QY={api:$t.PromptsAPI,types:$t.PromptsType};function qY(e){let t;if(e[pe.FioriElementsVersion.v2]){let n=e[pe.FioriElementsVersion.v2];if(n[pe.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.ListReport];t=Bx(i,r,a,s,l,u)}else if(n[pe.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.ObjectPage];t=$x(i,r,a,s,l,u)}else if(n[pe.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[pe.SchemaType.OverviewPage];t=ud(i,r)}else if(n[pe.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.AnalyticalListPage];t=Hx(i,r,a,s,l,u)}}else if(e[pe.FioriElementsVersion.v4]){let n=e[pe.FioriElementsVersion.v4];if(n[pe.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[pe.SchemaType.ListReport];t=Cy(pe.TemplateType.ListReportObjectPageV4,i,r,a,s,l,u)}else if(n[pe.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,logger:l,fragments:u,contextPath:p,genericMacrosSchema:g}=n[pe.SchemaType.ObjectPage];t=_S(i,r,a,s,l,u,p,g,e.featureToggles)}else if(n[pe.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[pe.SchemaType.AnalyticalListPage];t=Cy(pe.TemplateType.AnalyticalListPageV4,i,r,a,s,l,u)}else if(n[pe.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l}=n[pe.SchemaType.FreestylePage];t=DS(pe.TemplateType.FreestylePageV4,i,a,l,r,s)}else if(n[pe.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:a,views:s,logger:l,annotations:u}=n[pe.SchemaType.FPMCustomPage];t=VS(i,r,a,s,u,e.featureToggles,l)}}return t}o(qY,"generateSchema");function YY(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=kM(i,n)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=sw(i,n)}return t}o(YY,"exportConfig");function zY(e){let t=pe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=Wx(i,n)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=zx(i,n)}return t}o(zY,"exportConfigEntityByPath");function JY(e){let t=pe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=Wx(i,n,!0)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=zx(i,n,!0)}return t}o(JY,"deleteConfigEntityByPath");function ZY(e){let t;if(e[pe.FioriElementsVersion.v2]){let n=e[pe.FioriElementsVersion.v2];n[pe.SchemaType.ListReport]?t=Ah(n[pe.SchemaType.ListReport]):n[pe.SchemaType.ObjectPage]?t=xh(n[pe.SchemaType.ObjectPage]):n[pe.SchemaType.OverviewPage]?t=Oh(n[pe.SchemaType.OverviewPage]):n[pe.SchemaType.AnalyticalListPage]&&(t=Sh(n[pe.SchemaType.AnalyticalListPage]))}else if(e[pe.FioriElementsVersion.v4]){let n=e[pe.FioriElementsVersion.v4];n[pe.SchemaType.ListReport]?t=kc(n[pe.SchemaType.ListReport],pe.SchemaType.ListReport):n[pe.SchemaType.ObjectPage]?t=ev(n[pe.SchemaType.ObjectPage]):n[pe.SchemaType.AnalyticalListPage]?t=kc(n[pe.SchemaType.AnalyticalListPage],pe.SchemaType.AnalyticalListPage):n[pe.SchemaType.FPMCustomPage]&&(t=Zy(n[pe.SchemaType.FPMCustomPage]))}return t}o(ZY,"importConfig");async function ez(e){return kx(e)}o(ez,"importProject");async function tz(e){return wx(e)}o(tz,"importProjectSchema");function nz(){return{version:"17",fpmWriter:"23",moduleVersion:N0.version}}o(nz,"getApiVersion");function Kx(e){let t=XY.get(e.customExtension);if(t&&typeof t=="function")return(0,$t.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(Kx,"generateCustomExtension");var qr=require("path"),Fs=require("fs");var If=o(async e=>new Promise((t,n)=>{(0,Fs.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),iz=o(async e=>JSON.parse(await If(e)),"readJSON"),Jx=o(async e=>new Promise((t,n)=>{(0,Fs.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),rz=o(async e=>new Promise(t=>{(0,Fs.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),lw=o(async e=>new Promise(t=>{(0,Fs.exists)(e,n=>{t(n)})}),"resourceExists"),oz=o(async e=>iz((0,qr.join)(e,"manifest.json")),"getManifest"),fw=o(async e=>{let t=[],n=(0,qr.join)(e,"changes");if(!await lw(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await Jx(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await If((0,qr.join)(n,a)));return t},"getChanges"),cw=o(async(e,t="fragments")=>{let n=[],i=(0,qr.join)(e,"ext",t);if(!await lw(i))return n;let r=await Jx(i);for(let a of r){let s=(0,qr.join)(i,a),l=await If(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),az=o(async(e,t)=>{var r,a,s,l,u,p,g,m;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let T=(0,qr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:T,fileContent:await If(T)})}if((u=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&u.annotations){for(let T of i.mainService.settings.annotations)if((g=(p=i[T])==null?void 0:p.settings)!=null&&g.localUri){let A=(0,qr.join)(t,i[T].settings.localUri);n.push({dataSourceUri:A,fileContent:await If(A)})}}if(n.length===0)for(let T in i){let A=i[T];if((A==null?void 0:A.type)==="ODataAnnotation"&&((m=A==null?void 0:A.settings)!=null&&m.localUri)){let E=(0,qr.join)(t,A.settings.localUri);n.push({dataSourceUri:E,fileContent:await If(E)})}}return n},"getAnnotations"),sz=o(async e=>{let t=(0,qr.basename)(e),n=(0,qr.join)(e,"webapp"),i=await oz(n),r=await az(i,n),a=await fw(n),s=await cw(n),l=await cw(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");Ws(Di,ne(le()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
|
|
294
|
+
`}),T1(q)}o(nn,"initI18n");var $t=ne(le());function vc(e,t,n){var r;let i;for(let a in e){let s=e[a];if(sa((r=s.component)==null?void 0:r.name)===$t.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=vc(s.pages,t,n),i))return n.unshift(a),i}}o(vc,"findObjectPageV2");function _l(e,t){var n;for(let i in e){let r=e[i];if(sa((n=r.component)==null?void 0:n.name)===$t.PageTypeV2.ListReport)return t.push(i),r}}o(_l,"findListReportPageV2");function Dl(e){if(!e.manifest[$t.ManifestSection.generic]){se(e.logger,{severity:$t.LogSeverity.Error,message:q.t("NOFE"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}let t=e.manifest[$t.ManifestSection.generic].pages;if(!t){se(e.logger,{severity:$t.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}return t}o(Dl,"getV2Pages");function Vl(e,t,n){var i;if(!e){se(t,{severity:$t.LogSeverity.Error,message:q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;se(t,{severity:$t.LogSeverity.Error,message:q.t("NOENTITYSET",{pageName:r}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}}o(Vl,"checkV2Page");function wl(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),sa((i=a.component)==null?void 0:i.name)===$t.PageTypeV2.AnalyticalListPage)return a}se(n,{severity:$t.LogSeverity.Error,message:q.t("NOALP"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}o(wl,"findAnalyticalListPage");function yA(e,t){let n=e.split("|");return $t.v2.SectionPosition[n[0]]&&n[1]===t}o(yA,"isAssociatedCustomSection");function b1(e,t){let n=Bn(e,`sap.ui5/extends/extensions/${$t.v2.SAPUI5_VIEW_EXTENSION}/${$t.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)yA(r,t)&&(i[r]=n[r]);return i}o(b1,"findCustomSectionExtensions");function b3(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}o(b3,"removeEmptySettingsOfFooter");function A3(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let r in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[r]).length===0&&delete e.filterBar.selectionFields[r];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}o(A3,"removeEmptySettingsOfFilterBar");function S3(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}o(S3,"removeEmptySettingsOfToolBar");function bh(e){S3(e),A3(e),b3(e)}o(bh,"removeEmptySettings");var TA={};Ws(TA,{AnalyticalListPage:()=>$r,ListReport:()=>lo,ObjectPage:()=>li,OverviewPage:()=>zt,exportFilterSettings:()=>P1,importDateSettingsOVP:()=>A1,importFilterSettings:()=>S1});var Ah=ne(le());var $r=class{};o($r,"AnalyticalListPage"),h([y({flex:{controlId:Gg,controlType:o(()=>Ah.ControlType.DynamicPage,"controlType")}})],$r.prototype,"fitContent",2),h([Ut("table")],$r.prototype,"table",2),h([Ut("template::SmartFilterBar")],$r.prototype,"filterBar",2),h([Ut("analyticalListPageChart")],$r.prototype,"chart",2),h([Ut("analyticalListFooter")],$r.prototype,"footer",2),$r=h([kr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Ah.v2.FE_TEMPLATE_V2_ALP})],$r);var qu=ne(le());var lo=class{};o(lo,"ListReport"),h([y({flex:{controlId:Gg,controlType:o(()=>qu.ControlType.DynamicPage,"controlType")}})],lo.prototype,"fitContent",2),h([Ut("listReportFilter")],lo.prototype,"filterBar",2),h([Ut("listReport")],lo.prototype,"table",2),h([Ut("listReportFooter")],lo.prototype,"footer",2),lo=h([kr({id:qu.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:qu.v2.FE_TEMPLATE_V2_LIST_REPORT})],lo);var vA=ne(le());var li=class{};o(li,"ObjectPage"),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.52.0"})],li.prototype,"showConfirmationOnDraftActivate",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.52.1"})],li.prototype,"hideChevronForUnauthorizedExtNav",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.48.0"})],li.prototype,"allowDeepLinking",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.52.0"})],li.prototype,"navToListOnSave",2),h([Ut("header")],li.prototype,"header",2),h([Ut("sections")],li.prototype,"sections",2),h([Ut("layout")],li.prototype,"layout",2),h([y({manifest:{path:o(t=>Em(t),"path")}}),C({since:"1.77.0"})],li.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([y({manifest:{path:o(t=>Fi(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),C({since:"1.78.0"})],li.prototype,"globalChartSettings",2),h([y({manifest:{path:o(t=>Fi(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:Ys}}),C({since:"1.71.0"})],li.prototype,"globalTableSettings",2),li=h([kr({id:vA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:vA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],li);function P3(e,t){for(let n in e.dateSettings.fields){t.fields[n]=e.dateSettings.fields[n];let i=e.dateSettings.fields[n].selectedValues;typeof i=="string"&&(t.fields[n].selectedValues=i.split(","));for(let r in e.dateSettings.fields[n].filter){let a=e.dateSettings.fields[n].filter[r];t.fields[n].filter[r]=a,a.equals&&typeof a.equals=="string"&&(t.fields[n].filter[r].equals=a.equals.split(","))}}}o(P3,"importDateSettingsFieldsOVP");function A1(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),e.dateSettings.fields&&P3(e,t),t}o(A1,"importDateSettingsOVP");function S1(e){let t={};return t.dateSettings=A1(e.filterSettings),t}o(S1,"importFilterSettings");function C3(e,t,n){for(let i in e.filterSettings[t].fields){let r=e.filterSettings[t].fields[i];if(r.selectedValues&&(n.filterSettings[t].fields[i].selectedValues=r.selectedValues.join()),r.filter)for(let a in r.filter){let s=r.filter[a];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[a].equals=s.equals.join())}}}o(C3,"exportFilterFields");function P1(e,t){e.filterSettings||(e.filterSettings={});let n="dateSettings";t.filterSettings[n]===void 0?delete e.filterSettings[n]:(e.filterSettings[n]=JSON.parse(JSON.stringify(t.filterSettings[n])),t.filterSettings[n].selectedValues&&(e.filterSettings[n].selectedValues=t.filterSettings[n].selectedValues.join()),t.filterSettings[n].fields&&C3(t,n,e))}o(P1,"exportFilterSettings");var zt=class{};o(zt,"OverviewPage"),h([y({manifest:{path:o(()=>bn(),"path")}})],zt.prototype,"globalFilterModel",2),h([y({manifest:{path:o(()=>bn(),"path")}})],zt.prototype,"globalFilterEntityType",2),h([y({manifest:{path:o(()=>bn(),"path")}})],zt.prototype,"globalFilterEntitySet",2),h([y({manifest:{path:o(()=>bn(),"path")}})],zt.prototype,"showBasicSearch",2),h([y({manifest:{path:o(()=>bn(),"path")}})],zt.prototype,"disableErrorPage",2),h([y({manifest:{path:o(()=>bn(),"path")}})],zt.prototype,"smartVariantRequired",2),h([y({manifest:{path:o(()=>bn(),"path")}})],zt.prototype,"bHeaderExpanded",2),h([y({manifest:{path:o(()=>bn(),"path")}})],zt.prototype,"containerLayout",2),h([y({manifest:{path:o(()=>bn(),"path")}})],zt.prototype,"showDateInRelativeFormat",2),h([y({manifest:{path:o(()=>bn(),"path")}})],zt.prototype,"disableTableCardFlexibility",2),h([y({manifest:{path:o(()=>bn(),"path")}})],zt.prototype,"enableLiveFilter",2),h([y({manifest:{path:o(()=>bn(),"path")}})],zt.prototype,"enableLazyRendering",2),h([y({manifest:{path:o(()=>bn(),"path")}})],zt.prototype,"refreshStrategyOnAppRestore",2),h([y({manifest:{path:o(()=>bn(),"path")}})],zt.prototype,"considerAnalyticalParameters",2),h([y({manifest:{path:o(()=>bn(),"path")}})],zt.prototype,"refreshIntervalInMinutes",2),h([y({manifest:{path:o(()=>bn(),"path")}})],zt.prototype,"useDateRangeType",2),h([y({manifest:{path:o(()=>bn(),"path"),import:S1,export:P1}}),C({since:"1.80.0"})],zt.prototype,"filterSettings",2),h([y({manifest:{path:o(()=>bn(),"path")}})],zt.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(()=>bn(),"path")}})],zt.prototype,"resizableLayout",2),zt=h([kr({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],zt);var EA=class EA{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let a=this.controls[r]?this.controls[r]:this.controls[n];return a||(a=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};o(EA,"MetadataFactory");var Ml=EA;var Zn=ne(le());var x3={},I3={Table:ac,ResponsiveTableWithMultiSelect:ac,ResponsiveTableWithInlineDelete:ac},O3={[Zn.v2.CardSettingsType.listCardSettings]:Sl,[Zn.v2.CardSettingsType.listCardSettingsv4]:Sl,[Zn.v2.CardSettingsType.analyticalCardSettings]:Pl,[Zn.v2.CardSettingsType.analyticalCardSettingsv4]:Pl,[Zn.v2.CardSettingsType.stackCardSettings]:yu,[Zn.v2.CardSettingsType.linkListCardSettings]:vu,[Zn.v2.CardSettingsType.tableCardSettings]:Cl,[Zn.v2.CardSettingsType.tableCardSettingsv4]:Cl},N3={[Zn.SAPUI5_VIEW_CLASS]:Hu,[Zn.SAPUI5_FRAGMENT_CLASS]:Bu,Table:yc,ObjectPageResponsiveTableWithMultiSelect:yc,ObjectPageResponsiveTableWithInlineDelete:yc},L3={[Zn.PageTypeV2.AnalyticalListPage]:x3,[Zn.PageTypeV2.ListReport]:I3,[Zn.PageTypeV2.ObjectPage]:N3,[Zn.PageTypeV2.OverviewPage]:O3},bA=class bA extends Ml{constructor(){super(gA,TA,L3)}};o(bA,"MetadataInstanceFactoryV2");var _i=bA;function R3(e,t,n,i,r){if(e.filterBar=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar),_n(e.filterBar,n.manifest,i[Qt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(Qt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),_n(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(R3,"importFilterBar");function F3(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[zg]&&t[Jg]&&(a=JSON.parse(JSON.stringify(t[zg])),a.properties={...a.properties,...t[Jg].properties}),_n(n.table,i.manifest,a,r,i.logger),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&se(i.logger,{severity:Qt.LogSeverity.Error,message:q.t("NOLINEITEMS")})}o(F3,"importTable");function _3(e,t,n,i){let r=e.jsonSchema.definitions,a=Th(e.manifest,i);if(t.table=n.createInstance(Qt.PageTypeV2.ListReport,a,t.table),Eh(t,n,r),F3(a,r,t,e,i),t.table.toolBar=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,r[Qt.DefinitionName.ToolBarLR],i,e.logger),r[Qt.DefinitionName.ActionsLR])for(let l in r[Qt.DefinitionName.ActionsLR].properties){let u=ls(l);t.table.toolBar.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.Action),_n(t.table.toolBar.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}R3(t,n,e,r,i),t.footer={actions:{}};let s=r[Qt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=ls(l);t.footer.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.FooterAction),_n(t.footer.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}}o(_3,"addSettings");function Sh(e){if(nn(),!Dl(e))return;let n=new _i,i=n.createPageInstance(Qt.PageTypeV2.ListReport),r=[],a=_l(e.manifest[Qt.ManifestSection.generic].pages,r);if(Vl(a,e.logger,a==null?void 0:a.entitySet),!!a)return _3(e,i,n,r[0]),e.flex.forEach(s=>{$a(s)&&vh(i,s,e.jsonSchema,e.logger)}),Fl(i,e,a,Qt.PageTypeV2.ListReport),bh(i),i}o(Sh,"createListReportConfig");var Ct=ne(le());function D3(e,t,n,i){var u,p;let r=Th(e.manifest,i),a=e.jsonSchema.definitions;if(Eh(t,n,a),t.table=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table),_n(t.table,e.manifest,a[`ALP${r}<LineItems>`],i,e.logger),t.table.toolBar=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,a[Ct.DefinitionName.ToolBar],i,e.logger),a[Ct.DefinitionName.ActionsLR])for(let g in a[Ct.DefinitionName.ActionsLR].properties){let m=ls(g);t.table.toolBar.actions[m]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.Action),_n(t.table.toolBar.actions[m],e.manifest,a[Ct.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),_n(t.filterBar,e.manifest,a[Ct.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[Ct.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let g=a[Ct.DefinitionName.SelectionFields].properties;for(let m in g){let T=m;t.filterBar.selectionFields[T]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),_n(t.filterBar.selectionFields[T],e.manifest,a.SelectionFieldDateSettings,i,e.logger,T)}}t.chart=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),_n(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let s=a[Ct.DefinitionName.FooterActionsLR];if(s)for(let g in s.properties){let m=ls(g);t.footer.actions[m]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.FooterAction),_n(t.footer.actions[m],e.manifest,a[Ct.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let l=(p=(u=e.manifest[Ct.ManifestSection.generic].pages[i].component)==null?void 0:u.settings)==null?void 0:p.keyPerformanceIndicators;l&&Object.keys(l).forEach(g=>{t.keyPerformanceIndicators[g]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),_n(t.keyPerformanceIndicators[g],e.manifest,a.KPISettings,i,e.logger,g)})}o(D3,"addSettings");function Ph(e){if(nn(),!Dl(e))return;let n=new _i,i=n.createPageInstance(Ct.PageTypeV2.AnalyticalListPage),r=[],a=wl(e.manifest[Ct.ManifestSection.generic].pages,r,e.logger);if(Vl(a,e.logger,a==null?void 0:a.entitySet),!!a)return D3(e,i,n,r[0]),e.flex.forEach(s=>{$a(s)&&vh(i,s,e.jsonSchema)}),Fl(i,e,a,Ct.PageTypeV2.AnalyticalListPage),bh(i),i}o(Ph,"createAnalyticalListPageConfig");var Ee=ne(le());var Yu=require("@sap-ux/vocabularies-types/vocabularies/UI");var w3=[Ee.ControlType.Avatar,Ee.ControlType.ObjectPageLayout,Ee.ControlType.DynamicPage];function M3(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(`${Yu.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Ee.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Yu.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let r=i.split("::");r.length>1?t=r[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}o(M3,"getSingleSelectorIdPart");function k3(e){let t,n=e.split(":::");if(n.length===1)t=M3(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(`::${Yu.UIAnnotationTerms.LineItem}`,`/@${Yu.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(k3,"getFacetID");function U3(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=$a(s),m=g&&((l=g.controlId)==null?void 0:l.split("--"))||[];if(g&&((u=m[0])!=null&&u.includes(Ee.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let T=m[1].replace(/:3a:3a/g,"::");r.exec(T)!==null&&(T=T.split("template:::TableColumn:::")[1]);let A=k3(T);T=mA(T).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${T}::${g.content.property}`]={controlId:T,propertyId:g.content.property,facetId:A,newValue:g.content.newBinding!==void 0?g.content.newBinding:g.content.newValue,controlType:g.controlType,creation:g.creation}}}catch(g){se(n,{severity:Ee.LogSeverity.Error,message:q.t("FLEXERROR")},...g)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,u])=>(s[l]=u,s),{})}o(U3,"prepareFlexChanges");var j3=o(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace($,"");if((i=(n=e.properties)==null?void 0:n.subsections)!=null&&i.$ref)return t=e.properties.subsections.$ref,t=t.includes("<")?t.split("<")[0]:t,t.replace($,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function $3(e,t,n,i,r,a){let s;r?s=[r.replace(/@/g,"")]:s=[a.replace(/@/g,""),a==null?void 0:a.replace(/::@com.sap.vocabularies/g,Ee.VOCWITHSLASH)];for(let l in e){let u=e[l],p=u.propertyId===t,g=t==="columns"&&u.controlType===Ee.ControlType.TableColumn;(p||g)&&s.indexOf(u==null?void 0:u.facetId)>-1&&ym(n,u,i.jsonSchema)}}o($3,"importFlexChangesOfTable");function B3(e,t){return e.facetId==="template"&&t}o(B3,"isStandardActionFlexChange");var C1=o((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),r=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,r);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function H3(e,t,n,i,r,a){var O;let s=!1,l=!1;a?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let u=t.controlId.split("::"),p=t.controlType===Ee.ControlType.GroupElement&&l,g=((O=t.facetId)==null?void 0:O.includes(Ee.ACTIONTITLEPREFIX))&&!r&&s,m=r&&C1(u,r.split("::"))&&s,T=e.title&&C1(u,e.title.split("::"),!0),A=!t.facetId&&w3.includes(t.controlType),E=B3(t,l);return p||g||m||T||A||E}o(H3,"matchSelector");function G3(e,t,n,i,r,a){var u;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let p in n){let g=n[p];if(g.propertyId!==i||g.controlType!==((u=e.properties[g.propertyId])==null?void 0:u[Ee.SchemaTag.controlType]))continue;H3(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o(G3,"importFlexChanges");function W3(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(se(n.logger,{severity:Ee.LogSeverity.Warning,message:Xg(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(W3,"checkDeprecatedProperties");function K3(e,t,n,i,r,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,u,p;s!=null&&s.title?(u=e.manifest.path(t,{},s.title),p=Bn(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u))):(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u));let g=e.manifest.import;if(g&&typeof g=="function"){let m=g(p,s==null?void 0:s.id);m!==void 0&&(i[r]=m)}else{let m=e.manifest.key||r;m in p&&(i[r]=p[m])}return W3(p,a,n,u),p}o(K3,"importManifestSetting");function Di(e,t,n,i,r,a){var l,u;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{};for(let p in n.properties||n){let g=zn(t,p);if(p==="columns"||g!=null&&g.flex)if((l=r==null?void 0:r.type)!=null&&l.startsWith("ObjectPageSectionTableV2")||(u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSubSectionTableV2"))$3(i.flexChanges,p,t,e,r.title,r.id);else{let m=(r==null?void 0:r.title)||(r==null?void 0:r.id);G3(n,t,i.flexChanges,p,m,a)}else g!=null&&g.manifest&&K3(g,i.pageKeys,e,t,p,s,r)}}o(Di,"transferSettingsAndFlexChanges");function I1(e,t,n,i){let r=Qi(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${c0}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${Zg}${r}`;break}}return r.replace(/@/g,"")}o(I1,"getActionId");function X3(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split($)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],u=I1(s,a,"","");e.actions[a]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,l,{}),Di(n,e[Ee.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},u)}}}o(X3,"fillStandardActions");function Ch(e,t,n,i,r,a){var l;n[Ee.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let u={};a&&(u.id=a);for(let p in t){let g=ls(p),m=I1(s,g,r,a);m&&(n[Ee.PropertyName.actions][g]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,s),Di(e,n[Ee.PropertyName.actions][g],e.jsonSchema.definitions[s],i,u,m)),(l=n[Ee.PropertyName.actions])!=null&&l[g]&&Object.keys(n[Ee.PropertyName.actions][g]).length===0&&delete n[Ee.PropertyName.actions][g]}}X3(n,t,e,i),Object.keys(n[Ee.PropertyName.actions]).length===0&&delete n[Ee.PropertyName.actions]}o(Ch,"fillActions");function Q3(e,t,n,i,r){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,"Field");let u=(s=t.title)!=null&&s.includes(Ee.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;Di(e,i[t.id].form.fields[l],e.jsonSchema.definitions[Ee.DefinitionName.Field],r,{},u),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}o(Q3,"fillFields");function q3(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`]&&n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`]&&(i=JSON.parse(JSON.stringify(n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`])),i.properties={...i.properties,...n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`].properties}),i}o(q3,"prepareTableSchema");function Y3(e,t,n,i,r){var l,u;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",g=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][Ee.PropertyName.table]=g;let m=e.jsonSchema.definitions,T=q3(p,t,m);Di(e,i[t.id],t.schema,r,{title:t.title}),Di(e,i[t.id][Ee.PropertyName.table],T,r,t);let A=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(A!=null&&A.properties){let E=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");Ch(e,A.properties,i[t.id][Ee.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",E)}Object.keys(i[t.id][Ee.PropertyName.table].toolBar).length===0&&delete i[t.id][Ee.PropertyName.table].toolBar}}o(Y3,"fillTableInConfig");function z3(e,t,n,i){let r=e.jsonSchema.definitions[t].properties.custom,a=r?qg(r.$ref):void 0;if(a){let s={key:t.replace("@",""),target:a};Fl(n[t],e,i,Ee.PageTypeV2.ObjectPage,s)}}o(z3,"fillCustomColumnsInConfig");function J3(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][Ee.PropertyName.chart]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(Di(e,i[t.id],t.schema,r,{title:t.title}),Di(e,i[t.id][Ee.PropertyName.chart],e.jsonSchema.definitions[Ee.DefinitionName.ObjectPageChart],r,t))}o(J3,"fillChartSection");function Z3(e,t,n,i){n[t.id]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&Di(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(Z3,"fillHeaderSection");function eX(e,t,n,i){var u;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&Di(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${r}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&Ch(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&Q3(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}o(eX,"fillFormSection");function x1(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Di(e,i[t.id],t.schema,r,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,AA(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(x1,"fillSubSection");function AA(e,t,n,i,r){var s;let a=e.jsonSchema.definitions;for(let l in t){let u=l.replace(/\/@/g,"::"),p={id:u,type:j3(t[l]),schema:t[l],title:vE(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],Y3(e,p,n,i,r),z3(e,u,i,r.v2Page);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],J3(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],eX(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${l}>`],x1(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],Z3(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],x1(e,p,n,i,r))}}o(AA,"fillSectionsInConfig");function tX(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Di(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(tX,"fillCustomSectionsInConfig");function nX(e,t){var g,m;let n=t.factory.createPageInstance(Ee.PageTypeV2.ObjectPage);Di(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Di(e,n.globalTableSettings,i[Ee.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.ObjectPageHeader);let r=i[Ee.DefinitionName.ObjectPageHeader]?i[Ee.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];Di(e,n.header,r,t);let a=i[Ee.DefinitionName.ObjectPageHeaderActions];a&&Ch(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Ee.DefinitionName.FooterActions];s&&Ch(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageLayout"),Di(e,n.layout,i[Ee.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[Ee.DefinitionName.HeaderSections];if(l){let T=(g=t.v2Page.component)==null?void 0:g.settings;AA(e,l.properties,T,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let u=i[Ee.DefinitionName.Sections];if(u){let T=(m=t.v2Page.component)==null?void 0:m.settings;AA(e,u.properties,T,n.sections,t)}let p=b1(e.manifest,e.entitySet);return tX(p,n,t,i,e),n}o(nX,"fillConfig");function xh(e){nn();let t=Dl(e);if(!t)return;let n=e.entitySet,i=[],r=vc(t,e.entitySet,i);if(Vl(r,e.logger,n),!r)return;let a=U3(e.flex,n),s=new _i;return nX(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(xh,"createObjectPageConfigV2");function Oh(e,t){var n,i;return(n=e.component)!=null&&n.name?jg(sa((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(Oh,"generateId");function iX(e,t,n,i){e.navigation={};let r=O1(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=Oh(t.pages[a],a);e.entitySet?e.navigation[s]=r[s].navigationProperty?`${e.entitySet}.${r[s].navigationProperty}`:e.entitySet:e.navigation[s]=r[s].navigationProperty?r[s].navigationProperty:s}}o(iX,"getPageConfigsAndNavigations");function O1(e,t){var i;let n={};for(let r in e){let a=e[r],s=Oh(a,r);if(!s)continue;let l={pageType:sa((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let u=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(u)if(l.pageType===Dn.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=Sh(p)}else if(l.pageType===Dn.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=Ph(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=xh(p)}a.pages&&iX(l,a,t,n)}return n}o(O1,"getPagesAndConfigs");var SA=class SA extends Ka{constructor(t){nn();let n;t.manifest[Dn.ManifestSection.generic]?n=t.manifest[Dn.ManifestSection.generic].pages:se(t.logger,{severity:Dn.LogSeverity.Error,message:q.t("NOFE"),location:{path:Dn.MANIFESTPATH,range:[Dn.ManifestSection.generic]}}),n||se(t.logger,{severity:Dn.LogSeverity.Error,message:q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:Dn.MANIFESTPATH,range:[Dn.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&Oh(n[i],i),a=new Xa,s=_t(Dn.SchemaType.Application),l=t.appSchemas[s.filename];_n(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,O1(n,t),a)}};o(SA,"V2AppProvider");var Ih=SA;function zu(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||se(n,{severity:Dn.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:Dn.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let u=Oh(l,s);i[u]=l}if(t===Dn.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=zu(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(zu,"getPages");var Ec=ne(le());var ko=ne(le());var CA=ne($T());var Dt=ne(le());var rX=["colorPalette","tabs"];function oX(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(oX,"createCard");function N1(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),N1(e,n.join("|"))}return t}o(N1,"findAvailableId");function Ju(e,t,n,i,r,a,s){i!=null&&i.properties&&PA(e,t,n,i.properties,r,a,s)}o(Ju,"transferManifestEntriesOVP");function Tc(e,t,n,i){return e.createInstance(Dt.PageTypeV2.OverviewPage,i,n,t)}o(Tc,"assignReflectMetadataRules");function aX(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split($),r=e.appSchema.definitions[i[1]];t=Tc(e.factory,i[1],t,"CustomCard"),Ju(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(aX,"processAnyOfDefinitionsOfOVP");function sX(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!rX.includes(i)?t[i]=(0,CA.default)(t[i]||{},r||{},{arrayMerge:mE}):t[i]=r}o(sX,"checkSyncRuleForExport");function cX(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=Bn(i.manifest,s);if(n in Dt.v2.CardSettingsType||n==="settings")l.settings=(0,CA.default)(l.settings||{},r||{},{arrayMerge:mE});else if(r!==void 0){let u=e.manifest.export;sX(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(cX,"transferToManifest");function lX(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(Dt.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(r=>{var s;let a=(s=e.appSchema.definitions[r].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=Tc(e.factory,i[0],e.currentObject[t],"CustomCard"),oX(t,e.exportResults.manifest[Dt.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Dt.ChangeIndicator.Updated,Ju(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[Dt.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[Dt.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=Dt.ChangeIndicator.Updated)})}o(lX,"transferCards");function fX(e,t){if(t==="cards")lX(e);else{let n=Lo(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,Dt.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split($);e.currentObject=Tc(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],Ju(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],PA(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],PA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(fX,"exportOfObject");function PA(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!ru(a,s)&&a[a.length-1]!=="anyOf")continue;let u=e[l],p=zn(e,l),g={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:u,configObject:e,factory:r,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(g.currentObject=e[a[a.length-2]],u=aX(g)):u&&typeof u=="object"&&i[l]&&fX(g,l),p!=null&&p.manifest&&cX(p,a,l,t,u,e)}}o(PA,"processProperties");function uX(e,t,n,i,r,a,s){let l;t.length===0?l=["page"]:l=t;let u=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),p=r0(a,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=o0(p,g);e.exportResults.flexChanges.find(A=>{let E=!1,O=JSON.parse(A);O={content:O.content,selector:O.selector};let F=JSON.parse(m);return F={content:F.content,selector:F.selector},JSON.stringify(O)===JSON.stringify(F)&&(E=!0),E})||e.exportResults.flexChanges.push(m)}o(uX,"evaluateFlexRule");function pX(e,t,n,i,r,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=Dt.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,a):s!==!1&&(n[a]=i[r]),e.exportResults.manifestChangeIndicator=Dt.ChangeIndicator.Updated}}o(pX,"exportConfigValueToManifest");function dX(e,t,n,i,r){let a=Bn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)pX(e,n,a,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=Dt.ChangeIndicator.Updated,ja(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(dX,"evaluateManifestRule");function gX(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(Dt.FACETTITLEPREFIX)?r.split(Dt.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(gX,"getManifestPathOfSections");function mX(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}o(mX,"getManifestPathOfTable");function hX(e,t,n,i,r){let a;return t[0]===Dt.PropertyName.sections?a=gX(t,a,n,e,r):t[0]===Dt.PropertyName.table?a=mX(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}o(hX,"getManifestPath");function yX(e,t,n,i,r,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)uX(e,i,t,r,a,n,s);else if(t.manifest){let u=hX(e,i,t,n,a);dX(e,u,t,s,n)}}o(yX,"evaluateExportRule");function vX(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(u=>(u.tabKey===a||a===void 0&&u.tabKey===""||a&&t.sectionKey===a)&&u.extensionType===t.extensionType);if((!l||l.length===0)&&(Rm(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Dt.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(Dt.ViewTemplateType.ResponsiveTableColumnsExtension,Dt.ViewTemplateType.ResponsiveTableCellsExtension);Rm(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o(vX,"deleteObsoleteColumn");function TX(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=F0(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Dt.ChangeIndicator.Updated,vX(r,e,n))}o(TX,"deleteObsoleteColumnsFromFragment");function EX(e,t,n,i,r){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:u}=Fm(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o(EX,"clusterConfigColumnsByPath");function L1(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in Dt.v2.TableColumnExtensionTypeV2){let{path:u}=Fm(e.v2Page,s,r,l);if(!u)continue;let p={path:u,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};try{TX(p)}catch(g){e.logger.error(g.message)}}if(t){let l=EX(t,n,e.v2Page,s,r);for(let u in l)tb(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(L1,"transferColumnExtensions");function bX(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=N1(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(g)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(A=>{var E;return(E=A.$ref)==null?void 0:E.includes(t[p].constructor.name)}).$ref.split($),T=e.appSchema.definitions[m[m.length-1]];fs(e,t[p],i,[...r,s[p]],T)}let u=Bn(e.exportResults.manifest,xE());for(let p in u)yA(p,l)&&!s.includes(p)&&delete u[p]}o(bX,"transferManifestExtensions");function AX(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Dt.PropertyName.table){n=e[i-1];break}return qn(n,t)}o(AX,"getSectionId");function SX(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=Lo(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);fs(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(SX,"transferIndexTable");function PX(e,t,n,i,r,a){let s,l=qg(e.$ref);l&&(s={target:l,key:AX(t,n)}),L1(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(PX,"transferCustomColumns");function CX(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let u=Lo(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&fs(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(CX,"handleAnyOfDefinitions");function xX(e,t,n,i,r,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")bX(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){PX(l,t,s,e,n,a);return}else a?fs(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&CX(l,e,s,n==null?void 0:n[r],r,i,t)}o(xX,"transferComplexProperty");function fs(e,t,n,i,r,a){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!ru(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&Wg(t,l),p=u?[...n,u]:n,g=zn(t,l),m=e.propertyDefinition=r.properties[l],T=e.nextDefinition=Lo(e.appSchema,a,s,m,l,e.factory,e.pageType);if(yX(e,g,t,[...i],p,a,l),SX(s,e,a,l,p,i),s===void 0||typeof s=="object")xX(e,i,t,p,l,T,a);else if((m==null?void 0:m.$ref)===$+"TableCustomColumns"){L1(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(fs,"transferManifestEntriesAndFlexChange");function R1(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Tc(r,i,n[i],s),a.push(i),xA(r,n[i],e,l.properties,a)}o(R1,"transferSettingsOfRef");function IX(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split($);R1(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${$}${ko.v2.cardTemplateSettingsMap[e.template]}`.split($);R1(i,l,e,t,r,a)}}o(IX,"processPropertiesOfObject");function OX(e,t,n,i,r,a){let s=zn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=Bn(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{pl(s,u,t,e)}catch(p){se(i.logger,{severity:ko.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Bg(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&IX(e,t,r,i,a,n)}o(OX,"processOvpProperty");function xA(e,t,n,i,r){for(let a in i)OX(t,a,r,n,i,e)}o(xA,"processOvpProperties");function NX(e,t,n){xA(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[ko.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[ko.ManifestSection.ovp].cards[i].template,a=ko.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=Tc(n,a,{},"CustomCard"),e.cards=Tc(n,a,e.cards,"CustomCard"),xA(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}o(NX,"addSettings");function Nh(e){let t=new _i,n=t.createPageInstance(ko.PageTypeV2.OverviewPage);return e.jsonSchema&&NX(n,e,t),n}o(Nh,"createOverviewPageConfig");var IA=class IA extends Ka{constructor(t){let n={},i=t.manifest[Ec.ManifestSection.ovp],r=new Xa,a=_t(Ec.SchemaType.Application);_n(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(Ec.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:Ec.PageTypeV2.OverviewPage,config:Nh(l),entitySet:i.globalFilterEntitySet},p=jg(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(IA,"V2OvpProvider");var Lh=IA;var Uo=require("@sap-ux/vocabularies-types/vocabularies/UI");var te=ne(le()),F1=require("path");function LX(){return([e,t],[n,i])=>t[te.SchemaTag.propertyIndex]-i[te.SchemaTag.propertyIndex]}o(LX,"sortByPropertyIndex");function Zu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(LX())}o(Zu,"sortPropertiesRecords");function RX(e){let t;return typeof e=="object"?"header"in e?t=e.header:"text"in e?t=e.text:"title"in e?t=e.title:"label"in e&&(t=e.label):typeof e=="string"&&(t=e),t}o(RX,"getExtensionText");function OA(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||te.v4.Placement.After)===te.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(OA,"addExtensionToSortedArray");function FX(e,t,n,i,r){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var u,p,g;return((u=l.position)==null?void 0:u.placement)==="Before"&&((p=l.position)==null?void 0:p.anchor)===((g=n.position)==null?void 0:g.anchor)})===-1&&(i.splice(i.length,0,[t,r]),delete e[t])}o(FX,"addRemainingTargetByBefore");function _1(e,t,n,i){let r=t.includes(te.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=RX(e);return{$ref:`${$}${r}`,description:a,keys:[{name:te.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(_1,"getExtensionDetails");function NA(e,t,n,i,r=!1){var l,u;let a=Object.entries(e).length;for(let p of Object.keys(e)){let g=e[p],m=_1(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let T=n.findIndex(A=>A[0]===g.position.anchor);T>-1?(OA(g,n,T,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(se(i,{severity:Vi.LogSeverity.Error,message:q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&FX(e,p,g,n,m)}else r&&(OA(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?NA(e,t,n,i):s>0&&NA(e,t,n,i,!0)}o(NA,"adjustCustomExtReferringToCustomExt");function _X(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||te.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===te.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(_X,"getExtensionAnchor");function DX(e,t){var i;let n=[];for(let r in e){let a=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===a);a&&!s&&n.push(r)}return n}o(DX,"getLocalExtensionsToSkip");function VX(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||te.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let a=o((p,g)=>{for(let m of n){let T=t[m[0]];if(g(T))break;p++}return p},"findNextIndex"),s=0;return i===te.v4.Placement.Before?s=a(0,p=>!p):s=a(-1,p=>{var g,m;return!!(p&&((g=p==null?void 0:p.position)!=null&&g.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==te.v4.Placement.Before))}),s>-1?s:0}o(VX,"getExtensionIndexByMergedApproach");function wX(e,t,n,i,r=!1){return r?VX(e,t,n):n.findIndex(a=>a[0]===i)}o(wX,"getExtensionIndex");function MX(e,t,n,i,r){se(e,{severity:Vi.LogSeverity.Error,message:q.t("INVALIDEXTENSION",{id:t}),location:{path:te.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(MX,"handleInvalidExtension");function ma(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=DX(l,s);if(!l)return[];for(let p of Object.keys(l)){let g=l[p];if(u!=null&&u.includes(p))continue;let m=_1(g,n,p,te.ActionType.Custom);if(typeof g!="object"){MX(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let T=_X(g,s);if(T){let A=wX(g,e,t,T,a);A>-1&&(OA(g,t,A,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&NA(l,n,t,r),t}o(ma,"addExtensionToArray");function LA(e,t){let n=[];for(let i of Object.keys(e.properties))i.indexOf("::")>-1&&n.push(i.substring(i.indexOf("::")+2));t.properties.properties.items.enum=n}o(LA,"addEnumForProperties");function kX(e,t,n,i=te.DefinitionName.CustomColumn){if(i===te.DefinitionName.CustomColumn||i.indexOf(te.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];LA(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[te.SchemaTag.propertyIndex]=r}}o(kX,"addColumnPropertyIndexAndEnum");function bc(e,t,n,i=te.DefinitionName.CustomColumn,r,a){var T,A,E,O;let s=r||te.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Zu(l),p=a?a.replace(/::/g,"/"):`@${Uo.UIAnnotationTerms.LineItem}`,g=(O=(E=(A=(T=t.options)==null?void 0:T.settings)==null?void 0:A.controlConfiguration)==null?void 0:E[p])==null?void 0:O.columns;g&&(u=ma(g,u,i,void 0,n)),kX(u,e,l,i);let m={};u.forEach(([F,U])=>m[F]=U),e.definitions[s].properties=m}o(bc,"addCustomColumnDefinition");function UX(e){let t;return e.lineItemId.startsWith(te.DefinitionName.LineItemsOfView)?t=te.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(te.DefinitionName.LineItems)?t=te.DefinitionName.ToolBarAction:t=te.DefinitionName.ObjectPageToolBarAction,t}o(UX,"determineActionDefinitionName");function jX(e,t,n){e[te.SchemaTag.keys]=[],t[te.SchemaKeyName.semanticObject]&&e[te.SchemaTag.keys].push({name:te.SchemaKeyName.semanticObject,value:t[te.SchemaKeyName.semanticObject]});let{key:i,ns:r}=ec(n,!0);e[te.SchemaTag.keys].push({name:te.SchemaKeyName.action,value:i}),r&&(e[te.SchemaTag.target]=r)}o(jX,"addTargetAndKeysOfAction");function $X(e,t,n,i,r,a=!0){if(i.Determining===!0)return;let s=UX(e),l=bi(i,e.entityType),u=i.$Type.split(`${te.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,g=Yg(p),m=t.properties[`${u}::${g}`]={description:l};if(a?m.$ref=$n(s,dt(g)):(m.properties={},m.type="object",m.isViewNode=!0),m[te.SchemaTag.propertyIndex]=r,m[te.SchemaTag.dataType]=no(i),jX(m,i,p),m[te.SchemaTag.annotationType]=i.$Type,a){let T=Et(s,dt(g),e.appSchema);T[te.SchemaTag.annotationPath]=`${n}/${r}`}else m[te.SchemaTag.annotationPath]=`${n}/${r}`}o($X,"addActionRecordToSchema");function BX(e,t,n,i,r){var u;let a=t.lineItemId,s=t.lineItemRecord;if((u=s.Target)!=null&&u.value){let p=`@${ri(te.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=la(s).replace(/\//g,"::");if(l){let p=r;p||(p=e.appSchema.definitions[a]);let g=p.properties,m={description:bi(s,e.entityType)};r?(m.properties={},m.type="object",m.isViewNode=!0):m.$ref=$+n,m[te.SchemaTag.annotationType]=s==null?void 0:s.$Type,m[te.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,m[te.SchemaTag.propertyIndex]=i,m[te.SchemaTag.dataType]=no(s),g[l]=m,sm(s,g,l)}}o(BX,"addLineItemRecordToSchema");function RA(e,t,n,i,r=te.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===Uo.UIAnnotationTypes.DataFieldForAction||s.$Type===Uo.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))$X(e,t,n,s,a,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},u=s.$Type===Uo.UIAnnotationTypes.DataFieldForAction?`${r}Action`:r;BX(e,l,u,a,i)}a++})}o(RA,"appendLineItemsToSchema");function Ac(e,t=te.DefinitionName.TableColumn,n=te.DefinitionName.CustomColumn,i=te.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=om(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);RA(e,r,a,void 0,t)}o(Ac,"addLineItemsTypeToSchema");function Sc(e,t,n,i=te.DefinitionName.Position,r){var p,g,m,T,A;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let E in a)E!=="custom"&&s.push(E);let l=t!==te.DefinitionName.LineItems?r:`@${Uo.UIAnnotationTerms.LineItem}`,u=(A=(T=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:T[l])==null?void 0:A.columns;if(u)for(let E in u)s.indexOf(E)===-1&&s.push(E);if(s.length>0){let E=e.definitions[i].properties.anchor;fa(s,E)}}o(Sc,"addFragmentEnumForAnchor");function fo(e,t,n=te.DefinitionName.CustomActionPosition){Ga(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(fo,"addEnumForActionAnchor");function Rh(e,t,n,i){var a,s,l,u;let r;for(let p in e)if((i&&((s=(a=e[p].options)==null?void 0:a.settings)==null?void 0:s.contextPath)===i||((u=(l=e[p].options)==null?void 0:l.settings)==null?void 0:u.entitySet)===(n==null?void 0:n.name))&&(e[p].name===t||t===te.v4.FE_TEMPLATE_V4_ALP&&e[p].name===te.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[p];break}return r}o(Rh,"findPageV4");function D1(e,t){let n,i=e.properties[te.PropertyName.table];return t.templateType===te.TemplateType.AnalyticalListPageV4?(n=te.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${$}${te.DefinitionName.ALPTableView}`,delete e.definitions[te.DefinitionName.Table],delete e.definitions[te.DefinitionName.LRChartView],delete e.definitions[te.DefinitionName.LRTableView],delete e.definitions[te.DefinitionName.MultiTableModeV4]):t.templateType===te.TemplateType.ListReportObjectPageV4&&(n=te.DefinitionName.Table,delete i.anyOf,i.$ref=`${$}${te.DefinitionName.Table}`,e.definitions[n].properties[te.PropertyName.annotationPath][te.SchemaTag.hidden]=!0,delete e.definitions[te.DefinitionName.ALPTableView],e.properties[te.PropertyName.defaultPath][te.SchemaTag.hidden]=!0),n}o(D1,"alignSchemaWithTemplateType");function ha(e,t,n,i=te.DefinitionName.CustomTableAction,r="",a=""){var g,m,T,A,E,O,F,U,K,j;let s=e.definitions[r];if(!s)return;let l=Zu(s),u;a?i.indexOf(te.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===te.DefinitionName.CustomFormActionOP?u=`@${Uo.UIAnnotationTerms.FieldGroup}`:u=`@${Uo.UIAnnotationTerms.LineItem}`;let p;if(r.includes(te.DefinitionName.ObjectPageCustomSectionActions)?p=(O=(E=(A=(T=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:T.body)==null?void 0:A.sections)==null?void 0:E[u])==null?void 0:O.actions:p=(j=(K=(U=(F=t.options)==null?void 0:F.settings)==null?void 0:U.controlConfiguration)==null?void 0:K[u])==null?void 0:j.actions,p&&(l=ma(p,l,i,"press",n)),l){for(let Z=0;Z<l.length;Z++)l[Z][1][te.SchemaTag.propertyIndex]=Z;let ae={};l.forEach(([Z,re])=>ae[Z]=re),e.definitions[r].properties=ae}}o(ha,"addCustomActionDefinition");function Fh(e,t,n,i=te.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,T,A,E,O,F;let a=e.definitions[r];if(!a)return;let s=Zu(a),l;[te.DefinitionName.CustomHeaderAction,te.DefinitionName.CustomHeaderActionOP].includes(i)?l=(T=(m=(g=(p=t.options)==null?void 0:p.settings)==null?void 0:g.content)==null?void 0:m.header)==null?void 0:T.actions:l=(F=(O=(E=(A=t.options)==null?void 0:A.settings)==null?void 0:E.content)==null?void 0:O.footer)==null?void 0:F.actions,l&&(s=ma(l,s,i,"press",n));let u={};if(s){for(let U=0;U<s.length;U++)s[U][1][te.SchemaTag.propertyIndex]=U;s.forEach(([U,K])=>u[U]=K)}e.definitions[r].properties=u}o(Fh,"addHeaderFooterCustomActionDefinition");function Pc(e,t,n){let i=Hg(e,[te.ManifestSection.ui5,"routing","targets"]);if(!i){se(n,{severity:Vi.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}let r=Hg(i,[t]);if(!r){se(n,{severity:Vi.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:t}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}return r}o(Pc,"getManifestPage");function Cc(e,t,n,i,r){var a,s;if(r){let l=((a=n["sap.app"])==null?void 0:a.id)||"",u="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),g=p.pop();g=`${g}.${i}.${u}`;let m=(0,F1.join)(...p,g),T=e.find(A=>A.dataSourceUri.endsWith(m));if(T){let A=(s=t.options)==null?void 0:s.settings;return{file:T,relativeFilePath:m,connection:{contextPath:A==null?void 0:A.contextPath,entitySet:A==null?void 0:A.entitySet}}}}}o(Cc,"getPageCustomExtensionFile");function us(e,t,n,i){let r=Pc(n,t,i),a=Hg(r,["options","settings","viewName"]);return r&&typeof a=="string"?Cc(e,r,n,"view",a):void 0}o(us,"getPageCustomViewFile");function V1(e,t,n,i,r,a,s){var g,m,T,A,E,O,F,U,K,j,ae,Z;let l=Zu(t),u=new Map;if(l=l.map(re=>{let Pe=hm(e,re[1],re[0],{keyProperties:[te.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(Pe.const,re[0]),[Pe.const,re[1]]}),a){let re=(E=(A=(T=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:T.body)==null?void 0:A.sections)==null?void 0:E[a];re&&"subSections"in re&&(l=ma(re.subSections,l,i,"template",s,r))}else if(i.includes(te.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let re=(U=(F=(O=n.options)==null?void 0:O.settings)==null?void 0:F.content)==null?void 0:U.header;re&&"facets"in re&&(l=ma(re.facets,l,i,"template",s,r))}else{let re=(Z=(ae=(j=(K=n.options)==null?void 0:K.settings)==null?void 0:j.content)==null?void 0:ae.body)==null?void 0:Z.sections;re&&(l=ma(re,l,i,"template",s,r))}for(let re=0;re<l.length;re++)l[re][1][te.SchemaTag.propertyIndex]=re;let p={};l.forEach(([re,Pe])=>{re=u.get(re)||re,p[re]=Pe}),t.properties=p}o(V1,"addCustomSectionDefinition");function w1(e,t,n){var l,u,p;let i=Zu(t),r=new Map;i=i.map(g=>{let m=hm(e,g[1],g[0],{keyProperties:[te.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let a=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${Uo.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=ma(a.filterFields,i,te.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][te.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o(w1,"addCustomFilterFieldDefinition");var D=ne(le()),xc=require("@sap-ux/vocabularies-types/vocabularies/UI");var HX=["header","filterBar","chart","table"],FA="@UI.LineItem";function _A(e,t,n,i,r){i||(i=t.definitions[D.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[D.SchemaTag.annotationPath]=pr(e.fullyQualifiedName,xc.UIAnnotationTerms.SelectionFields,r));let a=0;return n==null||n.forEach(s=>{var g,m;let l=s.value,u="SelectionField::"+dt(s.value);s.type==="PropertyPath"&&(l=Mg(s,e)),i.properties[u]={$ref:$+u},i.properties[u][D.SchemaTag.propertyIndex]=a;let p=no(s);t.definitions[u]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[u][D.SchemaTag.isViewNode]=!0,t.definitions[u][D.SchemaTag.keys]=[{name:D.SchemaKeyName.value,value:`${s.value}`}],((g=s.$target)==null?void 0:g.fullyQualifiedName.indexOf("@"))>-1?t.definitions[u][D.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[u][D.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[u][D.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[u][D.SchemaTag.annotationPath]=`${i[D.SchemaTag.annotationPath]}/${a}`,a++}),i}o(_A,"addSelectionFields");function GX(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${xc.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let a={};return Object.keys(t).forEach(s=>{t[s].template||(a[s]=t[s])}),Object.keys(a).length>0?a:void 0}}o(GX,"getVisualFilters");function WX(e,t){let n=[];return e==null||e.forEach(i=>n.push(i.value)),t&&t.entityProperties.forEach(i=>n.includes(i.name)?void 0:n.push(i.name)),n}o(WX,"getPropertiesIndex");function KX(e,t,n,i){var s,l,u,p,g,m;let r=WX(i,e),a=t.definitions[D.DefinitionName.VisualFilters];a.properties={};for(let T in n){let A=n[T];if(!A.template){let E=a.properties[T]={$ref:$n(D.DefinitionName.VisualFilter,T)},O=r.indexOf(T);O!==-1&&(E[D.SchemaTag.propertyIndex]=O);let F=Et(D.DefinitionName.VisualFilter,T,t);(s=A.visualFilter)!=null&&s.valueList&&(F[D.SchemaTag.annotationPath]=`${T}/@${A.visualFilter.valueList}`);let U=(m=(g=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(K=>K.name===T))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:g.Label)==null?void 0:m.toString();F.description=U||T,F[D.SchemaTag.keys]=[{name:D.SchemaKeyName.value,value:T}]}}}o(KX,"addVisualFilters");function XX(e,t,n){t.additionalProperties={$ref:`#/definitions/${D.DefinitionName.CustomFilterField}`},w1(e,t,n);let i=e.definitions[D.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&Ga(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[D.SchemaKeyName.value,D.SchemaKeyName.key],descriptionAsFallback:!0})}o(XX,"applyCustomFilterFields");function QX(e,t,n,i){var l,u;let r=GX(n),a=i&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[i])==null?void 0:u.SelectionFields),s;if(r)t.definitions[D.DefinitionName.SelectionFields][D.SchemaTag.hidden]=!0,t.definitions[D.DefinitionName.SelectionFields].properties={},s=t.definitions[D.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},KX(e,t,r,a);else{let p=t.definitions[D.DefinitionName.FilterBar];p.properties.initialLayout[D.SchemaTag.hidden]=!0,p.properties.layout[D.SchemaTag.hidden]=!0,t.definitions[D.DefinitionName.CompactFilters][D.SchemaTag.hidden]=!0,t.definitions[D.DefinitionName.VisualFilters][D.SchemaTag.hidden]=!0}s=_A(e,t,a,s),XX(t,s,n)}o(QX,"addFilterBar");function M1(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let a=e.definitions[t];a.properties={},a.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${D.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(u=>{let p=dt(`${D.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=bi(u,r),m=u.$Type.split(`${D.UIVOCABULARY}.`)[1],T=a.properties[`${m}::${u.Action}`]={$ref:$+p,description:g};T[D.SchemaTag.propertyIndex]=l,T[D.SchemaTag.annotationType]=u.$Type,T[D.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[D.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][D.SchemaTag.annotationPath]=u.fullyQualifiedName,l++})}}o(M1,"defineActions");function k1(e,t,n,i){var l;let r,a,s;return e&&(n==="primary"?a=e.find(u=>u.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(u=>u.value.indexOf(D.FacetBase.LineItem)>-1):i?a=e.find(u=>u.value.indexOf(i)>-1):a=e[0],r=typeof(a==null?void 0:a.value)=="string"?ul(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",D.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(k1,"findTheRightVisualization");function qX(e,t,n,i){let r="@UI.Chart",a=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:r,targetAnnotation:a,chartTitle:s}}o(qX,"analyzeChartAnnotation");function YX(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=k1((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(se(r,{severity:D.LogSeverity.Error,message:q.t("NOVISUALIZATIONS")}),s=FA,l=`/${t}/`+s.replace("UI",D.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(YX,"analyzeSPVforView");function kl(e,t,n,i,r,a){let s,l,u=e==null?void 0:e.split(`${D.UIVOCABULARY}.`)[1],p=u&&t[u];if(!p)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=p.Text,s=p.fullyQualifiedName.split(D.UIVOCABULARYALPHADOT)[0],u.startsWith("PresentationVariant")){let{visualization:g,targetAnnotation:m}=k1(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return YX(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=FA,m=`/${s}/@${xc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=FA;p.qualifier&&(g+=`#${p.qualifier}`);let m=e.substring(0,1)==="@"?`/${s}/${e}`:`/${s}/@${e}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("Chart")){let{visualization:g,targetAnnotation:m,chartTitle:T}=qX(s,e,p,i);return{visualization:g,targetAnnotation:m,namespace:s,title:T}}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}o(kl,"analyzeViewAnnotation");function zX(e,t,n,i){let r=e.definitions[D.DefinitionName.ALPChartView];if(e.definitions[D.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[D.DefinitionName.ALPChart][D.SchemaTag.isViewNode],n&&(e.definitions[D.DefinitionName.ALPChart][D.SchemaTag.annotationPath]=n),e.definitions[D.DefinitionName.ALPChart].properties.annotationPath[D.SchemaTag.hidden]=!0,r.properties.annotationPath[D.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${$}${D.DefinitionName.ALPChart}`,t){let a=t.split(D.UIVOCABULARYDOT)[1],s=i[a].fullyQualifiedName.split("@");r[D.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}r[D.SchemaTag.artifactType]=D.ArtifactType.Manifest,r[D.SchemaTag.key]="primary",r[D.SchemaTag.keys]=[{name:D.SchemaKeyName.key,value:"primary"}]}o(zX,"addALPChartView");function JX(e,t,n,i,r,a){var U,K,j,ae,Z,re,Pe,_;let s=(U=n.entityType)==null?void 0:U.annotations.UI,l=(ae=(j=(K=t==null?void 0:t[0])==null?void 0:K.primary)==null?void 0:j[0])==null?void 0:ae[D.SchemaTag.annotationPath],{targetAnnotation:u}=kl(l,s,n.serviceAVT,"primary",void 0,n.logger);zX(e,l,u,s);let p="Actions<ALPChart>";e.definitions[D.DefinitionName.ViewChartToolBar].properties.actions.$ref=$+p,M1(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=kl((Pe=(re=(Z=t==null?void 0:t[0])==null?void 0:Z.secondary)==null?void 0:re[0])==null?void 0:Pe[D.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),T=e.definitions[a];g||i?(T.properties.toolBar.$ref=`${$}${D.DefinitionName.ToolBarLR}`,T.properties.columns={$ref:$+D.DefinitionName.LineItems},T.properties.annotationPath[D.SchemaTag.hidden]=!0):T.properties={};let A=e.definitions[D.DefinitionName.ALPTableView];e.definitions[D.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(A)),delete e.definitions[D.DefinitionName.ALPTable][D.SchemaTag.isViewNode],A.additionalProperties=!1,A.description="Table (key: secondary)",A.title="Table",g?(delete A.properties,A.$ref=`${$}${D.DefinitionName.ALPTable}`):i||(A.properties={}),A[D.SchemaTag.artifactType]=D.ArtifactType.Manifest;let E,O;if(g&&g.indexOf(D.FacetBase.LineItem)>-1?(E=g.split(".")[1],O=t[0].secondary[0].annotationPath.split(D.UIVOCABULARYDOT)[1]):i&&(E=O=i.split(D.UIVOCABULARYDOT)[1]),E){let ut={isObjectPage:!1,appSchema:e,lineItemAnnotation:(_=n.entityType)==null?void 0:_.annotations.UI[E],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:D.DefinitionName.LineItems};Ac(ut,D.DefinitionName.ViewTableColumn),m&&(e.definitions[D.DefinitionName.ALPTable][D.SchemaTag.annotationPath]=m);let yt=s[O].fullyQualifiedName.split("@");A[D.SchemaTag.annotationPath]=`/${yt[0]}/@${yt[1]}`,A[D.SchemaTag.key]="secondary",A[D.SchemaTag.keys]=[{name:D.SchemaKeyName.key,value:"secondary"}]}bc(e,r,n.logger);let F=`${D.DefinitionName.Actions}<${dt(D.DefinitionName.LineItems)}>`;ha(e,r,n.logger,void 0,F),fo(e,F,D.DefinitionName.CustomActionPosition)}o(JX,"addALPViews");function ZX(e,t){let n=`${D.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[D.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][D.SchemaTag.isViewNode],e.appSchema.definitions[n][D.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${D.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[D.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${$}${i}`;let r=`${D.DefinitionName.Actions}<${e.viewKey}>`;return M1(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[D.PropertyName.actions].$ref=`${$}${r}`,n}o(ZX,"addViewChartDefinitions");function e7(e,t,n,i,r,a){let s=ZX(e,t);n.definitions[s].properties.annotationPath[D.SchemaTag.hidden]=!0,n.definitions[s].properties.index[D.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[D.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${$}${s}`,description:a||l,title:l}}o(e7,"addViewChart");function t7(e,t,n,i,r){var m;let a=`${D.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${D.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=Et(D.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[D.SchemaTag.isViewNode],l[D.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),Ha(l.properties.toolBar,D.DefinitionName.ToolBar,s);let u=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${$}${a}`,description:e.title||u,title:u},Ha(l.properties.columns,s),l.properties.annotationPath[D.SchemaTag.hidden]=!0,l.properties.index[D.SchemaTag.hidden]=!0,l.properties.entitySet[D.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(D.UIVOCABULARYDOT)[1],g={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s};Ac(g,D.DefinitionName.ViewTableColumn,D.DefinitionName.ViewCustomColumn,D.DefinitionName.ViewCustomAction)}o(t7,"addViewLineItems");function n7(e,t,n,i){e.properties[t][D.SchemaTag.isViewNode]=!0,e.properties[t][D.SchemaTag.annotationPath]=n?`/${n}/@${i[D.SchemaTag.annotationPath]}`:void 0,e.properties[t][D.SchemaTag.artifactType]=D.ArtifactType.Manifest,e.properties[t][D.SchemaTag.key]=t,e.properties[t][D.SchemaTag.keys]=[{name:D.SchemaKeyName.key,value:t}]}o(n7,"addTagsToView");function i7(e,t,n){var a;let i=n.entityType,r=e;return t.entitySet&&t.entitySet!==e.name&&(r=(a=n.serviceAVT)==null?void 0:a.entitySets.find(s=>s.name===t.entitySet),i=r.entityType),i}o(i7,"getTargetEntityType");function r7(e,t,n,i){let r=`${D.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${xc.UIAnnotationTerms.LineItem}${n.split(D.Visualization.LineItem)[1]}`,l=Et(D.DefinitionName.ViewCustomColumn,r,e.appSchema);Ha(l.properties.position,D.DefinitionName.ViewPosition,r),Et(D.DefinitionName.ViewPosition,r,e.appSchema),bc(e.appSchema,i,t.logger,`${D.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Sc(e.appSchema,r,i,`${D.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&delete e.appSchema.definitions.Position;let u=`${D.DefinitionName.Actions}<${r}>`,p=`${D.DefinitionName.ViewCustomAction}<${r}>`;ha(e.appSchema,i,t.logger,p,u,s),Et(D.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${D.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${$}${g}`,fo(e.appSchema,u,g)}o(r7,"addViewCustomExtensions");function o7(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(D.Visualization.LineItem))>-1)t7(n,t,e,n.targetAnnotation,i),r7(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)e7(n,a,n.appSchema,t,n.viewKey,n.title);else if(s.template){let l=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${$}${D.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${$}${D.DefinitionName.LRTableView}`}}}o(o7,"addLRViewParts");function a7(e,t,n,i,r){var l;let a=e.definitions[r];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let u of t){if(!u[D.SchemaTag.key])continue;let p,g=i7(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:T,targetAnnotation:A,namespace:E,title:O}=kl(u==null?void 0:u[D.SchemaTag.annotationPath],m,n.serviceAVT,u[D.SchemaTag.key],void 0,n.logger);u.entitySet&&(p=(l=n.entityType.navigationProperties.find(K=>K.targetTypeName===E))==null?void 0:l.name);let F=dt(u[D.SchemaTag.key]),U={viewKey:F,appSchema:e,targetAnnotation:A,navPropName:p,targetEntityType:g,title:O,entitySet:u.entitySet};o7(T,s,U,n,i,m,u),n7(s,F,E,u)}}o(a7,"addLRViews");function s7(e,t,n,i,r,a){var g,m,T,A,E,O,F,U,K,j,ae,Z,re;let s=e.definitions[a],{visualization:l,targetAnnotation:u,namespace:p}=kl(n,(g=t.entityType)==null?void 0:g.annotations.UI,t.serviceAVT,void 0,D.Visualization.LineItem,t.logger);if(l){let Pe=l.split(".")[1],_=`${D.DefinitionName.LineItems}OfSPV::${dt(Pe)}`,ut=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete ut[D.SchemaTag.isViewNode],Ha(ut.properties.toolBar,D.DefinitionName.ToolBar,_),ut[D.SchemaTag.annotationPath]=u,ut.properties.columns={},Ha(ut.properties.columns,_),delete s.properties,Ha(s,`${a}SPV`),s[D.SchemaTag.annotationPath]=`/${p}/@${n}`;let yt=(m=t.entityType)==null?void 0:m.annotations.UI[Pe];yt||se(t.logger,{severity:D.LogSeverity.Error,message:q.t("NOTARGET",{target:Pe})});let je={isObjectPage:!1,appSchema:e,lineItemAnnotation:yt,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_};Ac(je);let an=(T=Pe.split("#"))==null?void 0:T[1],Wn=an?`@${xc.UIAnnotationTerms.LineItem}#${an}`:`@${xc.UIAnnotationTerms.LineItem}`;bc(e,i,t.logger,void 0,_,Wn),Sc(e,_,i,void 0,Wn);let en=`${D.DefinitionName.Actions}<${_}>`,Lt=gm(e,_,D.DefinitionName.CustomTableAction);ha(e,i,t.logger,hn(Lt),en,Wn),fo(e,en,D.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${$}${D.DefinitionName.ToolBarLR}`,Ha(s.properties.columns,D.DefinitionName.LineItems);let Pe=(O=(E=(A=t.entityType)==null?void 0:A.annotations)==null?void 0:E[r])==null?void 0:O.LineItem;!Pe&&!((K=(U=(F=i.options)==null?void 0:F.settings)==null?void 0:U.views)!=null&&K.paths)&&se(t.logger,{severity:D.LogSeverity.Error,message:q.t("NOLINEITEMS")});let _={isObjectPage:!1,appSchema:e,lineItemAnnotation:Pe,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D.DefinitionName.LineItems};Ac(_),bc(e,i,t.logger),Sc(e,D.DefinitionName.LineItems,i),Pe&&!((Z=(ae=(j=i.options)==null?void 0:j.settings)==null?void 0:ae.views)!=null&&Z.paths)&&(s[D.SchemaTag.annotationPath]=pr((re=t.entityType)==null?void 0:re.fullyQualifiedName,Pe.term,Pe.qualifier));let ut=`${D.DefinitionName.Actions}<${dt(D.DefinitionName.LineItems)}>`;ha(e,i,t.logger,void 0,ut),fo(e,ut,D.DefinitionName.CustomActionPosition)}}o(s7,"adaptTableDefinition");function c7(e,t,n){var i,r,a,s,l,u,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===D.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===D.TemplateType.ListReportObjectPageV4)return((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((p=(u=t==null?void 0:t.annotations.UI)==null?void 0:u.PresentationVariant)==null?void 0:p.term)}}o(c7,"getDefaultAnnotationPath");function l7(e,t,n,i){var u,p,g,m,T;let r=(g=(p=(u=t.options)==null?void 0:u.settings)==null?void 0:p.views)==null?void 0:g.paths,a=n.entityType,s=c7(t,n.entityType,n.templateType),l=D1(e,n);QX(a,e,t,i),n.templateType===D.TemplateType.ListReportObjectPageV4?(s7(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],a7(e,r,n,t,l)):(T=(m=t.options)==null?void 0:m.settings)!=null&&T.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[D.PropertyName.chart][D.SchemaTag.hidden]=!0):n.templateType===D.TemplateType.AnalyticalListPageV4&&(JX(e,r,n,s,t,l),Sc(e,D.DefinitionName.LineItems,t))}o(l7,"addTableAndViews");function f7(e,t,n){let i=D.DefinitionName.HeaderActions,r=e.definitions[i];r[D.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=D.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[D.SchemaTag.isViewNode]=!0,s.description="Custom Action",Fh(e,t,n,a,i);let l=D.DefinitionName.CustomHeaderActionPosition;Et(l,l,e,!1),s.properties.position.$ref=`${$}${l}`,fo(e,i,l)}o(f7,"addHeaderActions");function ep(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&ri(D.UIVOCABULARY,e.serviceAVT);if(r.properties[D.PropertyName.defaultTemplateAnnotationPath][D.SchemaTag.hidden]=!0,Ba(a,r,D.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[D.ManifestSection.ui5].routing.targets;if(!l)return se(e.logger,{severity:D.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:D.MANIFESTPATH,range:[D.ManifestSection.generic]}}),r;let u=Rh(l,n,e.entitySet,i);if(!u)return r;f7(r,u,e.logger),l7(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,Ro(r,HX),r}o(ep,"generateListReportSchemaV4");var br=require("@sap-ux/vocabularies-types/vocabularies/UI"),N=ne(le());var LV=ne(Xs()),RV=ne(NV()),FV=ne(hS());var _V=ne(le()),DV=ne(le());function w9(e,t){var i;let n=e;for(let r of t){let a=(i=n==null?void 0:n.elements)==null?void 0:i.filter(s=>s.type!=="comment");n=a==null?void 0:a[r.index]}return n}o(w9,"findElementByXMLPath");function VV(e,t){return e[t]?!1:(e[t]={},!0)}o(VV,"ensureObjectExists");function M9(e,t){let n={},i=hn(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(M9,"getPropertiesFromRef");function k9(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=VV(l,i),m=l[i];return _c({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(k9,"traverseDefaultAggregation");function U9(e,t){var n,i,r;return(t==null?void 0:t.defaultAggregation)&&((r=(i=(n=e[t.defaultAggregation])==null?void 0:n.metadata)==null?void 0:i.path)==null?void 0:r.length)===0}o(U9,"isDefaultAggregationAppliable");function _c(e,t){var g,m;let{schema:n,element:i,contextPath:r,config:a={},fullSchema:s}=e,l=!1,{properties:u={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(u=M9(s,n.$ref));for(let T in u){let A=u[T],E=typeof A=="object";if(E&&(p==null?void 0:p.defaultAggregation)===T&&U9(u,p)&&(l=k9(e,t,p)||l,E=!1),!!E)if((m=(g=A.metadata)==null?void 0:g.path)!=null&&m.length){let O=A.metadata.path,F=O.slice(r.length),U=w9(i,F);l=VV(a,T)||l;let K=a[T];l=_c({fullSchema:e.fullSchema,schema:A,element:U,contextPath:O,config:K,parent:e},t)||l}else l=t(e,A,a,T)||l}return l}o(_c,"traverseSchema");function tf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,FV.parse)(e.fileContent),s=(0,RV.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,LV.xml2js)(e.fileContent)}catch(r){se(n,{severity:DV.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Bg(r)}),location:{path:e.dataSourceUri}})}return i}o(tf,"parseXML");function nf(e){return`${_V.DefinitionName.CustomExtensionFragment}<${e}>`}o(nf,"getCustomExtensionFragmentDefinitionKey");function Py(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(Py,"getRootElement");var IS=ne(le()),OS=ne(le());var Ip=ne(le());function vs(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(vs,"getAttribute");function wV(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(wV,"getNodeByName");function j9(e){let t=e.split("/"),n=[],i;for(let r of t)if(r){if(r.startsWith("@")){i=r;break}n.push(r)}return n.length?{path:n.join("/"),term:i}:{term:e}}o(j9,"resolveMetaPath");function AS(e){var E;let{node:t,serviceAVT:n,connectionContext:i}=e,r=vs(t,"contextPath")||i.contextPath,a=vs(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(a){let O=j9(a);O.path&&(u=l?O.path:`${u}/${O.path}`,a=O.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((E=p==null?void 0:p.target)==null?void 0:E._type){case"EntitySet":{g=p.target.entityType;break}case"NavigationProperty":{g=p.target.targetType;break}case"EntityType":{g=p.target;break}}let m,T=a.split("#");T.length&&(m=T[1]);let A;if(a){let O=a.split(".");O.length&&(A=O[O.length-1])}return g?{entityType:g,metaPath:a,qualifier:m,annotationKey:A}:void 0}o(AS,"getEntityTypeResolution");function MV(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(MV,"applyAnnotationPath");function $9(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let g=kl(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(g.visualization){let m=g.visualization.split(".")[1];a=(p=(u=r==null?void 0:r.annotations)==null?void 0:u[n])==null?void 0:p[m],a!=null&&a.fullyQualifiedName&&(s=fE(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o($9,"getTableLineItemAnnotationData");var kV={"sap.fe.macros.Chart":o(e=>{let t=AS(e);MV(e.schema,t)},"sap.fe.macros.Chart"),"sap.fe.macros.FilterBar":o(e=>{var s,l,u,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=AS(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let g=ri(Ip.UIVOCABULARY,n),m=g&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[g])==null?void 0:p[r.annotationKey]);_A(r.entityType,i,m,a,r.qualifier)}},"sap.fe.macros.FilterBar"),"sap.fe.macros.Table":o(e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=AS(e),a=t.properties.columns,s=t.properties.actions;if(typeof a=="object"&&typeof s=="object"&&r){a.properties||(a.properties={}),s.properties||(s.properties={});let l=ri(Ip.UIVOCABULARY,n);if(MV(t,r),t.annotationPath){let u=$9(r,n,l);u!=null&&u.annotationPath&&(t.annotationPath=u.annotationPath);let p={isObjectPage:!1,appSchema:i,lineItemAnnotation:u.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:Ip.DefinitionName.LineItems};RA(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var UV=ne(le());var B9=new Map([["filterFields","SelectionField::"]]),H9=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),Op={anchor:"anchor",placement:"placement",key:"key"};function G9(e,t){var n;if(typeof(e==null?void 0:e.additionalProperties)=="object"&&(e!=null&&e.additionalProperties.$ref)){let i=(n=t.definitions)==null?void 0:n[hn(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return Op.anchor in r&&Op.placement in r}return!1}o(G9,"isCustomExtensionSchema");function jV(e){let t=B9.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=H9.get(e),t&&(n.prefix=t)),n}o(jV,"getAnnotationPrefix");function W9(e,t,n,i){let r=t.properties[n],a=jV(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=vs(l,Op.key)||n,p=vs(l,Op.anchor),g=vs(l,Op.placement)||UV.v4.Placement.After,m=a.replace?`${a.prefix}${p}`:p,T={position:{anchor:m in t.properties?m:p,placement:g}};return{key:u,extension:T}}o(W9,"getExtensionData");function K9(e,t,n){let i={},r=[],a={};for(let s in t.properties){let l=t.properties[s];if("metadata"in l){let{extension:u,key:p}=W9(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}ma(i,r,"","position");for(let s=0;s<r.length;s++){let l=r[s][0],u=t.properties[l];r[s][1].$ref==="#/definitions/"&&l in a&&(u=t.properties[a[l]]),u&&(u.propertyIndex=s)}}o(K9,"updatePropertyIndices");function X9(e,t,n,i){var a;let r=t;if(n.prefix&&r.startsWith(n.prefix))n.replace&&(r=r.replace(n.prefix,""));else if((a=i==null?void 0:i.metadata)!=null&&a.path){let s=i.metadata.path[i.metadata.path.length-1].index;r=vs(e.subElements[s],"key")||r}return r}o(X9,"getCorrectedAnchorEnumKey");function Q9(e,t,n,i){var a,s;let r=jV(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;Ga(n,t,{property:u,schema:p},{excludeKey:l,resolveDefinition:!0});let g=((s=(a=p.properties)==null?void 0:a[u])==null?void 0:s.oneOf)||[];for(let m of g)typeof m=="object"&&typeof m.const=="string"&&(m.const=X9(e,m.const,r,t.properties[m.const]))}}o(Q9,"applyEnumsForAnchors");function $V(e,t,n,i){G9(t,n)&&(i=i||e.name,K9(e,t,i),Q9(e,t,n,i))}o($V,"handleExtensions");var pi=[];for(let e=0;e<256;++e)pi.push((e+256).toString(16).slice(1));function BV(e,t=0){return(pi[e[t+0]]+pi[e[t+1]]+pi[e[t+2]]+pi[e[t+3]]+"-"+pi[e[t+4]]+pi[e[t+5]]+"-"+pi[e[t+6]]+pi[e[t+7]]+"-"+pi[e[t+8]]+pi[e[t+9]]+"-"+pi[e[t+10]]+pi[e[t+11]]+pi[e[t+12]]+pi[e[t+13]]+pi[e[t+14]]+pi[e[t+15]]).toLowerCase()}o(BV,"unsafeStringify");var HV=ne(require("crypto"));var xy=new Uint8Array(256),Cy=xy.length;function SS(){return Cy>xy.length-16&&(HV.default.randomFillSync(xy),Cy=0),xy.slice(Cy,Cy+=16)}o(SS,"rng");var GV=ne(require("crypto")),PS={randomUUID:GV.default.randomUUID};function q9(e,t,n){if(PS.randomUUID&&!t&&!e)return PS.randomUUID();e=e||{};let i=e.random||(e.rng||SS)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){n=n||0;for(let r=0;r<16;++r)t[n+r]=i[r];return t}return BV(i)}o(q9,"v4");var CS=q9;var xS="sap.fe.macros",Y9=["id","key","title","text","label","header"];function WV(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(WV,"getElementName");function z9(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(z9,"isElementWithNamespace");function J9(e){let t={},n=e.attributes||[];for(let i of n){let{key:r,value:a}=i,s="",l="xmlns:";r.startsWith(l)&&(s=r.substring(l.length)),t[a]=s}return t}o(J9,"getDependencies");function Z9(e,t){let n="",i=e.attributes||[];for(let r of Y9){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(Z9,"getViewNodeDescription");function eQ(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(eQ,"findAvailableName");function KV(e,t){if(e.properties={},e.$ref){let n=hn(e.$ref),i=t.definitions[n];typeof i=="object"&&i.properties&&(e.type=i.type,e.isViewNode=i.isViewNode,e.properties=JSON.parse(JSON.stringify(i.properties))),delete e.$ref}}o(KV,"prepareSchemaProperties");function tQ(e,t,n){t.properties||KV(t,n);let{properties:i={}}=t;for(let r of e.attributes){let a=i[r.key];a&&a.metadata&&(a.metadata.position=r.position)}}o(tQ,"handleAttributes");function nQ(e){e.type===OS.MacrosPropertyType.Control&&(e.internalId=CS())}o(nQ,"applyIdForMacros");function iQ(e,t,n){var i,r;try{(r=(i=kV)[e])==null||r.call(i,t)}catch{se(n,{severity:IS.LogSeverity.Error,message:q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(iQ,"callAnnotationHandler");function rQ(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===OS.MacrosPropertyType.Control&&(e.controlName=n)}o(rQ,"updateMetadataByReference");function oQ(e,t,n,i){var T,A,E,O,F;let r=n.schema;t.properties||KV(t,r);let a=t.properties[i],s=(T=a==null?void 0:a.metadata)==null?void 0:T.type,l=(A=a==null?void 0:a.metadata)==null?void 0:A.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(O=(E=a==null?void 0:a.metadata)==null?void 0:E.path)!=null&&O.length?eQ(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(hn(a.$ref)):g=[`${xS}.${i}`,`${xS}.table.${i}`,`${xS}.filterBar.${i}`];let m=!1;for(let U of g){let K=(F=r.definitions)==null?void 0:F[U];if(typeof K!="object")continue;rQ(u,K,U);let j=Z9(e,i),ae={$ref:UF(U),description:j,propertyIndex:n.index,metadata:u};tQ(e,ae,r),t.properties[p]=ae,m=!0,iQ(U,{...n,node:e,schema:ae,rootSchema:n.schema},n.logger);break}if(nQ(u),!m)if(a!=null&&a.properties)a.metadata=u;else{let U={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=U}return p}o(oQ,"addControlToSchema");function XV(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let a=r.$ref.split($)[1];a&&t.indexOf(a)===-1&&t.push(a)}XV(r,t)}}o(XV,"populateUsedDefinitionKeys");function aQ(e,t){if(typeof t=="object"&&typeof t.additionalProperties=="object"&&t.additionalProperties.$ref){let i=t.additionalProperties.$ref.split(".");if(i[i.length-1]===e.name)return!0}return!1}o(aQ,"isElementAddableToSchema");function sQ(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!wV(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(sQ,"getDefaultAggregation");function cQ(e,t,n,i){let r={};for(let a=0;a<e.length;a++){let s=e[a],l=!r[s.name];r[s.name]=!0,QV(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:WV(s),index:a}]},i)}}o(cQ,"handleSubElementsOfXMLNode");function QV(e,t,n,i){var g,m,T;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(g=n.schema.definitions)==null?void 0:g[hn(t.$ref)]:t;if(z9(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let A=(T=t.metadata)==null?void 0:T.defaultAggregation;A&&aQ(e,t.properties[A])&&(t=t.properties[A]);let E=e.name.split(":"),O=oQ(e,t,n,E[E.length-1]);if(t.properties[O])t=t.properties[O];else return}let{subElements:l=[]}=e,u=t!=null&&t.metadata?t.metadata.controlName:void 0;i&&u&&n.schema.definitions[u]&&i.indexOf(u)===-1&&(i.push(u),XV(t,i));let p=sQ(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),cQ(l,t,n,i),r.push({node:e,schema:t});for(let A of r)$V(A.node,A.schema,n.schema,A.name)}o(QV,"handleXMLNode");function lQ(e,t){var i;let n=[];return(i=e==null?void 0:e.metadata)!=null&&i.namespaces&&e.metadata.namespaces.forEach(r=>{r in t&&n.push(t[r])}),n}o(lQ,"getMacrosPrefixes");function Dc(e,t,n,i){let r=tf(t.file,!0,i),a=[];if(!r)return;nn();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){se(i,{severity:IS.LogSeverity.Error,message:q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=J9(l),p=lQ(e,u);if(p.length){s=JSON.parse(JSON.stringify(e));let g={};for(let m=0;m<l.subElements.length;m++){let T=l.subElements[m],A=!g[T.name];g[T.name]=!0,QV(T,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:A,path:[{name:WV(T),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},a)}for(let m in s.definitions)s.definitions[m].metadata&&!a.includes(m)&&delete s.definitions[m]}return s}o(Dc,"generateMacrosSchemaDefinition");function qV(e,t){if(typeof e=="object")for(let n in e){let i=e[n];"template"in i&&i.template&&typeof i.template=="string"&&t.push(i.template),"subSections"in i&&qV(i.subSections,t)}}o(qV,"populateTemplates");function YV(e,t,n,i){var s,l,u;let r=Pc(n.manifest,i),a=[];qV(((u=(l=(s=r==null?void 0:r.options)==null?void 0:s.settings.content)==null?void 0:l.body)==null?void 0:u.sections)||{},a);for(let p of a){if(!p)continue;let g={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=nf(p);e.definitions[m]=g;let T=Cc(n.fragments,r,n.manifest,"fragment",p);if(T){g.metadata.filePath=T.relativeFilePath;let{properties:A={},definitions:E={}}=Dc(t,T,n.serviceAVT,n.logger)||{};g.properties=A;for(let O in E)e.definitions[O]||(e.definitions[O]=E[O])}}return t}o(YV,"resolveFragments");var fQ=["header","layout","sections","footer"],uQ=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],NS="Custom Action";function LS(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=fm(t.item,e),p=la(t.item),g=t.item.fullyQualifiedName.replace(`@${br.UIAnnotationTerms.Identification}`,`/@${br.UIAnnotationTerms.Identification}`),m=`ObjectPageHeaderAction<${dt(p)}>`,T=i.definitions[m]={type:"object",$ref:`${$}${N.DefinitionName.ObjectPageHeaderAction}`,description:bi(t.item,r)};T[N.SchemaTag.isViewNode]=!0,T[N.SchemaTag.dataType]=no(t.item),T[N.SchemaTag.propertyIndex]=s,T[N.SchemaTag.keys]=[],t.item[N.SchemaKeyName.semanticObject]&&T[N.SchemaTag.keys].push({name:N.SchemaKeyName.semanticObject,value:t.item[N.SchemaKeyName.semanticObject]}),T[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:l}),u&&(i.definitions[m][N.SchemaTag.target]=u),T[N.SchemaTag.actionType]=n,T[N.SchemaTag.annotationPath]=`/${g}`,a.properties[p]={$ref:`${$}${m}`},a.properties[p][N.SchemaTag.propertyIndex]=s}o(LS,"addSingleHeaderActionV4");function zV(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[N.SchemaTag.isViewNode]=!0,s[N.SchemaTag.propertyIndex]=i,s[N.SchemaTag.keys]=[],s[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:e}),s[N.SchemaTag.actionType]=N.ActionType.Standard,n.properties[r]={$ref:`${$}${a}`},n.properties[r][N.SchemaTag.propertyIndex]=i,s}o(zV,"addStandardHeaderAction");function JV(e,t,n,i,r,a){let s=la(e.item),l=bi(e.item,n),u=dt(`${N.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${br.UIAnnotationTerms.Identification}`,`/@${br.UIAnnotationTerms.Identification}`),g=i.definitions[u]={type:"object",$ref:`${$}${N.DefinitionName.FooterActionV4}`,description:l};g[N.SchemaTag.isViewNode]=!0,g[N.SchemaTag.actionType]=t,g[N.SchemaTag.propertyIndex]=a,g[N.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${$}${u}`}}o(JV,"addSingleFooterAction");function pQ(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===br.UIAnnotationTypes.DataFieldForAction||i.$Type===br.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(uQ.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(pQ,"groupByCriticality");function dQ(e,t,n,i,r){for(let a=0;a<e.length;a++)LS(t,e[a],N.ActionType.Criticality,n,i,r,a)}o(dQ,"addCriticalActions");function gQ(e,t,n,i,r,a){let s=e.findIndex(l=>{var u,p;return((p=(u=l.item.annotations)==null?void 0:u.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(LS(t,e[s],N.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(gQ,"addCopyAction");function mQ(e,t,n,i,r,a){for(let s of e)LS(t,s,N.ActionType.Annotation,n,i,r,a),a++}o(mQ,"addUncriticalActions");function hQ(e){let t="RelatedApps",n=e.properties[t]={$ref:`${$}${t}`,description:"Related Apps"};n[N.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[N.SchemaTag.artifactType]=N.ArtifactType.Manifest,n[N.SchemaTag.actionType]=N.ActionType.Standard,n[N.SchemaTag.isViewNode]=!0,n[N.SchemaTag.keys]=[{name:N.SchemaKeyName.action,value:t}]}o(hQ,"addRelatedAppsButton");function ZV(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[N.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`:e[N.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`}o(ZV,"setAnnotationPathFromEntitySetOrEntityType");function yQ(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?pQ(n):{};if(dQ(s,r.serviceAVT,t,e,i),r.entitySet){let p=m0(r.entitySet),g=h0(r.entitySet);if(nm(r.entitySet)&&g){let m=zV("Edit",t,i,s.length);ZV(m,r.entitySet,e,"UpdateHidden")}if(p){let m=zV("Delete",t,i,s.length+1);ZV(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;gQ(l,r.serviceAVT,t,e,i,u),mQ(l,r.serviceAVT,t,e,i,u),nw(t,a,N.DefinitionName.CustomHeaderActionOP,r.logger),hQ(i)}o(yQ,"addHeaderActionCallBackV4");function vQ(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===br.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?r.push({index:l,item:s}):a.push({index:l,item:s}))});for(let s=0;s<r.length;s++){let l=r[s];JV(l,N.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];JV(l,N.ActionType.Annotation,e,t,n,r.length+s)}}o(vQ,"addFooterActionCallBackV4");function TQ(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${br.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomColumnOP}<${n}>`:N.DefinitionName.CustomColumnOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${N.DefinitionName.CustomColumnOP}<${n}>`;bc(e,t,r,u,n,i);let p=a?n:N.DefinitionName.PositionOP;Et(N.DefinitionName.PositionOP,p,e,a);let g=a?`${N.DefinitionName.PositionOP}<${n}>`:N.DefinitionName.PositionOP;l.properties.position.$ref=`${$}${g}`,Sc(e,n,t,g,i.replace(/::/g,"/"));let m=e.definitions[n];m&&LA(m,l)}o(TQ,"addCustomColumnsOP");function EQ(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${br.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomTableActionOP}<${n}>`:N.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description=NS;let u=`${N.DefinitionName.CustomTableActionOP}<${n}>`,p=`${N.DefinitionName.Actions}<${dt(n)}>`;ha(e,t,r,u,p,i);let g=a?n:N.DefinitionName.CustomActionPositionOP;Et(N.DefinitionName.CustomActionPositionOP,g,e,a);let m=a?`${N.DefinitionName.CustomActionPositionOP}<${n}>`:N.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${$}${m}`,fo(e,p,m)}o(EQ,"addTableCustomActionsOP");function nw(e,t,n,i){let r=e.definitions[n];r[N.SchemaTag.isViewNode]=!0,r.description=NS;let a=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.ObjectPageHeaderActions:N.DefinitionName.FooterActions;Fh(e,t,i,n,a);let s=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.CustomHeaderActionPositionOP:N.DefinitionName.CustomFooterActionPositionOP;Et(s,s,e,!1),r.properties.position.$ref=`${$}${s}`,fo(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${$}${n}`})}o(nw,"addHeaderFooterCustomActionsOP");function bQ(e,t,n,i,r){let a=`${N.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[N.SchemaTag.isViewNode]=!0,s.description=NS;let l=`${N.DefinitionName.CustomFormActionOP}<${n}>`,u=`${N.DefinitionName.SectionActions}<${dt(n)}>`;ha(e,t,r,l,u,i),Et(N.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${N.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${$}${p}`,fo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${$}${a}`})}o(bQ,"addFormCustomActionsOP");function AQ(e,t,n,i,r,a,s){let l=hl(t),u=t.lastIndexOf("::"),p=u>-1?t.substring(u+2):t,g=Et(N.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(g[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),g.properties.columns={$ref:`${$}${l}`},g.properties.toolBar.$ref=$n(N.DefinitionName.ObjectPageToolBar,t),g.properties.quickVariantSelection.$ref=$n(N.DefinitionName.QuickVariantSelectionV4OP,t);let m=Et(N.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=$n(N.DefinitionName.AnnotationPathAsObject,t),Et(N.DefinitionName.AnnotationPathAsObject,t,n),Ba(e.entityType,n,`${N.DefinitionName.AnnotationPathAsObject}<${l}>`);let T={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return Ac(T,N.DefinitionName.ObjectPageTableColumn,N.DefinitionName.CustomColumnOP,N.DefinitionName.CustomTableActionOP),TQ(n,a,l,t,s),EQ(n,a,l,t,s),g}o(AQ,"handleLineItem");function iw(e,t,n,i,r,a,s){s&&(s.properties[t]={$ref:$n(N.DefinitionName.ObjectPageSectionTableV4,t)});let l=Et(N.DefinitionName.ObjectPageSectionTableV4,t,n);Ua(e,l,hl(t)),l[N.SchemaTag.annotationPath]=e.annotationPath,l[N.SchemaTag.target]=e.namespace,l.properties.table.$ref=$n(N.DefinitionName.ObjectPageTable,t);let u=AQ(e,t,n,i,r.serviceAVT,a,r.logger);return{sectionTable:l,table:u}}o(iw,"handleSectionTable");function SQ(e,t,n,i,r,a,s){let l;a===N.SectionType.Section?l=N.DefinitionName.ObjectPageSectionForm:a===N.SectionType.HeaderSection&&(l=N.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:$n(l,n)};let u=Et(l,n,r);e.ID||(u.properties={}),Ua(e,u,n),u[N.SchemaTag.annotationPath]=e.annotationPath,u[N.SchemaTag.target]=e.namespace,u[N.SchemaTag.isViewNode]=!0;let p=cm(a,e,u,r,N.FioriElementsVersion.v4,n);if(e.base===N.FacetBase.Form){let g=hl(n);Et(N.DefinitionName.CustomFormActionOP,p,r),bQ(r,t,p,g,s)}}o(SQ,"handleFormIdentification");function ew(e,t,n,i,r){n.properties[t]={$ref:`${$}${r}`};let a=Et(N.DefinitionName.CommonHeaderFacetSettings,r,i,!1);fl(e,a,t),a[N.SchemaTag.annotationPath]=e.annotationPath,a[N.SchemaTag.target]=e.namespace,a[N.SchemaTag.dataType]=tc(e==null?void 0:e.target),a[N.SchemaTag.isViewNode]=!0}o(ew,"handleHeaderFacet");function PQ(e,t,n,i){let r=Et(N.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=bi(s,i),u=s.$Type.split(N.UIVOCABULARYDOT)[1],p=s.Action.replace("/","::"),g=r.properties[`${u}::${s.Action}`]={$ref:$n(N.DefinitionName.ObjectPageToolBarAction,p),description:l};g[N.SchemaTag.propertyIndex]=a,g[N.SchemaTag.annotationType]=s.$Type;let m=Et(N.DefinitionName.ObjectPageToolBarAction,dt(p),n);m[N.SchemaTag.annotationPath]=mm(s),m[N.SchemaTag.dataType]=no(s),m.properties={},a++})}return r}o(PQ,"handleChartActions");function CQ(e,t,n,i){let r=Et(N.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[N.SchemaTag.annotationPath]=mm(e),r[N.SchemaTag.dataType]=tc(e.target||e),r[N.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=$n(N.DefinitionName.ObjectPageToolBar,t);let a=Et(N.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=$n(N.DefinitionName.ObjectPageToolBarActions,t);let s=PQ(e,t,n,i);return{chart:r,chartActions:s}}o(CQ,"handleChart");function rw(e,t,n,i,r=e.entityType){i&&(i.properties[t]={$ref:$n(N.DefinitionName.ObjectPageSectionChart,t)});let a=Et(N.DefinitionName.ObjectPageSectionChart,t,n);fl(e,a,t),a[N.SchemaTag.annotationPath]=mm(e),a.properties.chart.$ref=$n(N.DefinitionName.ObjectPageChart,t);let{chart:s,chartActions:l}=CQ(e.target||e,t,n,r);return{sectionChart:a,chart:s,chartActions:l}}o(rw,"handleSectionChart");function tw(e,t,n,i,r,a){var m;let s,l,u;if(!(e!=null&&e.target)){se(r.logger,{severity:N.LogSeverity.Error,message:q.t("NOPRESENTATIONVARIANT",{key:t})});return}let p=e.target.PresentationVariant?e.target.PresentationVariant.Visualizations:e.target.Visualizations,g=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0;if(p!=null&&p[0])if(p[0].$target)s=p[0].$target,l="@"+lm(`${s.fullyQualifiedName.split("@")[1].split("/")[0]}`,r.serviceAVT),u=s;else{s=p[0],l="@"+lm(`${s.targetString.split("@")[1].split("/")[0]}`,r.serviceAVT);let A=r.entityType.navigationProperties.find(O=>O.name===g).targetType,E=l==null?void 0:l.split(N.UIVOCABULARYDOT)[1];u=E&&((m=A==null?void 0:A.annotations)==null?void 0:m.UI[E])}if(s){let T=l.split(N.UIVOCABULARYDOT)[1],A=e.target[N.SchemaTag.fullyQualifiedName].split("@")[0],E=g?`${g}::${l}`:l;if(T.startsWith(N.Visualization.Chart)){i.properties[`${t}<${l}>`]={$ref:$n(N.DefinitionName.ObjectPageSectionChart,E)};let{sectionChart:O,chart:F}=rw(s,E,n,void 0,e.entityType);O[N.SchemaTag.annotationPath]=e.annotationPath,fl(e,O,t),F[N.SchemaTag.annotationPath]=`/${A}/${l}`,F[N.SchemaTag.target]=A}else if(T.startsWith(N.Visualization.LineItem)){i.properties[`${t}<${l}>`]={$ref:$n(N.DefinitionName.ObjectPageSectionTableV4,E)};let{sectionTable:O,table:F}=iw(e,E,n,{target:u,entityType:e.entityType},r,a);O[N.SchemaTag.annotationPath]=e.annotationPath,fl(e,O,t),delete O[N.SchemaTag.isViewNode],F[N.SchemaTag.annotationPath]=`/${A}/${l}`,F[N.SchemaTag.target]=A}}}o(tw,"handleSectionPresentationVariant");function xQ(e){let t=e.facets||{};for(let n in t)if(t[n].base===N.FacetBase.CollectionFacet)return!0;return!1}o(xQ,"containsCollectionFacet");function IQ(e,t,n){var a;let i=`${N.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[N.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};qs(n,N.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(IQ,"createCustomSubSectionReference");function OQ(e,t,n,i){var a,s,l,u;let r=(u=(l=(s=(a=t.options)==null?void 0:a.settings)==null?void 0:s.content)==null?void 0:l.body)==null?void 0:u.sections;if(r)for(let p in r){let g=Et(n,p,e),m=Et(N.DefinitionName.ObjectPageCustomSectionActions,p,e),T=Et(N.DefinitionName.CustomSectionActionOP,p,e),A=`${N.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;g.properties.actions={$ref:`${$}${A}`};let E=`${N.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${$}${E}`},Et(N.DefinitionName.CustomSectionActionPositionOP,p,e);let O=`${N.DefinitionName.CustomSectionActionPositionOP}<${p}>`;T.properties.position.$ref=`${$}${O}`,T[N.SchemaTag.isViewNode]=!0,ha(e,t,i,E,A,p),fo(e,A,O)}}o(OQ,"applyCustomActionsToCustomSections");function RS(e,t,n,i,r,a,s){var m,T,A,E,O;let l=!1,u;a&&s?(l=!xQ(a),u=IQ(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${$}${u}`},V1(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&Ga(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[N.SchemaKeyName.id,N.SchemaKeyName.key],descriptionAsFallback:!0}),u.includes(N.DefinitionName.ObjectPageCustomSectionFragment)){let F=t.definitions[N.DefinitionName.ObjectPageCustomSectionActions];F.properties={},OQ(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(N.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let F=(O=(E=(A=(T=(m=i.options)==null?void 0:m.settings)==null?void 0:T.content)==null?void 0:A.body)==null?void 0:E.sections)==null?void 0:O[s],U=F&&"subSections"in F?F.subSections:{};for(let K=g.oneOf.length-1;K>=0;K--){let j=g.oneOf[K];U[j.const]||(j.hidden=!0)}}}o(RS,"applyCustomSections");function NQ(e,t,n,i,r,a,s,l){let u=l===0,p=i.properties[t]=No(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[N.SchemaTag.annotationPath]=e.annotationPath,g[N.SchemaTag.target]=e.namespace,g[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:e.ID}],g[N.SchemaTag.isViewNode]=!0;let m=l+1;for(let T in e.facets)FS(a,e.facets,T,g,n,r,s,m);u&&RS(g,n,a,s,N.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(NQ,"handleCollection");function FS(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${hl(n)}>`;switch(u.base){case N.FacetBase.PresentationVariant:{tw(u,n,r,i,e,s);break}case N.FacetBase.SelectionPresentationVariant:{tw(u,n,r,i,e,s);break}case N.FacetBase.CollectionFacet:{NQ(u,n,r,i,a,e,s,l);break}case N.FacetBase.LineItem:{if(a===N.SectionType.Section){let g=t[n];iw(u,n,r,g,e,s,i)}break}case N.FacetBase.Form:case N.FacetBase.Identification:{SQ(u,s,n,i,r,a,e.logger);break}case N.FacetBase.DataPoint:{ew(u,n,i,r,p);break}case N.FacetBase.Chart:{a===N.SectionType.HeaderSection?ew(u,n,i,r,p):a===N.SectionType.Section&&rw(u,n,r,i);break}case N.FacetBase.Address:case N.FacetBase.Contact:{cu(u,n,i,r,a);break}default:i.properties[n]=No(r,u,n)}}o(FS,"addSection");function LQ(e,t,n){let i=Ug(e.entityType,e.serviceAVT,N.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[N.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[N.DefinitionName.Sections];for(let a in i)FS(e,i,a,r,t,N.SectionType.Section,n);RS(r,t,e,n,N.DefinitionName.ObjectPageCustomSectionFragment)}o(LQ,"addSections");function RQ(e,t,n,i){let r=kg(n,e.serviceAVT,N.FioriElementsVersion.v4,e.logger),a=t.definitions[N.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)FS(e,r,s,a,t,N.SectionType.HeaderSection,i);RS(a,t,e,i,N.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionAddress]}}o(RQ,"addHeaderSections");function FQ(e,t,n){let i=e.entityType;dm(t,i),pm(t,i,e,yQ,n),i&&(t.definitions[N.DefinitionName.HeaderSections][N.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${br.UIAnnotationTerms.HeaderFacets}`),RQ(e,t,i,n)}o(FQ,"addHeader");function Np(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${$}${N.DefinitionName.Sections}`},!e.manifest[N.ManifestSection.ui5].routing||!e.manifest[N.ManifestSection.ui5].routing.targets)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:N.MANIFESTPATH}}),r;let a=r.definitions[N.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:N.DefinitionName.Sections};if(a[N.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[N.ManifestSection.ui5].routing.targets;if(!s)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}}),r;let l=Rh(s,N.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(FQ(e,r,l),a[N.SchemaTag.isViewNode]=!0,e.entityType&&(a[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${br.UIAnnotationTerms.Facets}`),qs(e.featureToggles,N.Features.BuildingBlocks)&&i){r.definitions[N.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{YV(r,i,e,l.id)}catch(u){se(e.logger,{severity:N.LogSeverity.Error,message:u})}}LQ(e,r,l),um(r,e,N.FioriElementsVersion.v4,vQ),nw(r,l,N.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[N.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[N.DefinitionName.GenericColumnsOP],delete r.definitions[N.DefinitionName.GenericSections],delete r.definitions[N.DefinitionName.GenericSubSections],delete r.definitions[N.DefinitionName.ObjectPageChart],delete r.definitions[N.DefinitionName.ObjectPageSectionAddress],delete r.definitions[N.DefinitionName.ObjectPageSectionChart],delete r.definitions[N.DefinitionName.ObjectPageSectionContact],delete r.definitions[N.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[N.DefinitionName.ObjectPageSectionForm],delete r.definitions[N.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[N.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[N.DefinitionName.ObjectPageSubSections],delete r.definitions[N.DefinitionName.ObjectPageTable],delete r.definitions[N.DefinitionName.ObjectPageToolBar],delete r.definitions[N.DefinitionName.ObjectPageToolBarAction],delete r.definitions[N.DefinitionName.ObjectPageToolBarActions],delete r.definitions[N.DefinitionName.QuickVariantSelectionV4OP],Ro(r,fQ),r}o(Np,"generateObjectPageSchemaV4");function _S(e,t){return JSON.parse(JSON.stringify(t))}o(_S,"generateFreestyleSchemaV4");var Kr=ne(le());function DS(e,t,n,i,r,a,s,l,u){let p=Io(n,r),{entitySet:g,entityType:m}=Vc(p,s,t,r),T={templateType:Kr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Kr.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Np(T,e,s,l)}o(DS,"generateObjectPageInterfaceV4");function Iy(e,t,n,i,r,a,s){nn();let l=Io(i,r),{entitySet:u,entityType:p}=Vc(l,s,n,r),g={templateType:e,fioriElementsVersion:Kr.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Kr.TemplateType.ListReportObjectPageV4?Kr.v4.FE_TEMPLATE_V4_LIST_REPORT:Kr.v4.FE_TEMPLATE_V4_ALP;return ep(g,t,m,s)}o(Iy,"generateListReportInterfaceV4");function VS(e,t,n,i,r,a){let s=Io(n,a),l={templateType:e,fioriElementsVersion:Kr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return _S(l,t)}o(VS,"generateFreestyleInterfaceV4");function wS(e,t,n,i,r,a,s){let l={};if(qs(a,Kr.Features.BuildingBlocks)){let u=Io(r,s),p=us(i||[],t,n,s);l=p!=null&&p.file.fileContent?Dc(e,p,u,s):{}}return l}o(wS,"generateFPMCustomPageInterfaceV4");var Mc=require("@sap-ux/vocabularies-types/vocabularies/UI"),lw=ne(le());var wc=ne(le());var sw=new Map([[wc.PageTypeV2.ListReport,wc.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[wc.PageTypeV2.ObjectPage,wc.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),ow=o((e,t)=>{let n=["controllerNames","controllerName"];for(let i of n)i in e?t[i]=e[i]:i in t&&delete t[i]},"applyControllerNameProperties"),aw=o(e=>{var t;for(let[n,i]of sw)if(e!=null&&e.startsWith(i)){let r=n;if(e.includes("#")){let a=(t=e.split("#")[1])==null?void 0:t.split("::")[1];r+=`#${a}`}return r}},"getExtensionKeyForImport"),_Q=o((e,t)=>{let n="";for(let[r,a]of sw)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),cw={manifest:{path:o(()=>`sap.ui5/extends/extensions/${wc.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=aw(n);i&&(t[i]={},ow(e[n],t[i]))}return Object.keys(t).length?t:void 0},"import"),export:o((e,t,n)=>{var a;let i=(t==null?void 0:t.id)||"",r=((a=t==null?void 0:t.settings)==null?void 0:a[n])||{};for(let s in r){let l=_Q(s,i);e[l]||(e[l]={}),ow(r[s],e[l])}for(let s in e){let l=aw(s);l&&!r[l]&&delete e[s]}},"export")}};var ft=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),Ly=o(e=>ft(e)+"/views/paths","getSettingsPathForLRViewsPaths"),Ry=o(e=>ft(e)+"/content/header","getSettingsPathForHeaderOP"),DQ=o(e=>ft(e)+"/content/footer","getSettingsPathForFooterOP"),Qr=o(e=>ft(e)+"/controlConfiguration","getControlConfigurationPath"),Fy=o((e,t,n)=>Qr(e)+`/@${Mc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),_y=o(e=>Qr(e)+`/@${Mc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Ts=o((e,t,n,i)=>Qr(e)+`/@${Mc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),MS=o((e,t,n,i)=>_y(e)+`/filterFields/${i}`,"getFilterFieldPath"),er=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Qr(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),Ci=o((e,t,n,i,r)=>r?er(e,t,n,i,r):Qr(e)+`/@${Mc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),Dy=o((e,t,n,i,r)=>Ci(e,t,n,i,r)+lw.QUICKVARPATH,"getQuickVariantPath"),tr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Qr(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),di=o((e,t,n,i,r)=>r?tr(e,t,n,i,r):Qr(e)+`/@${Mc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),qr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Qr(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Ar=o((e,t,n,i,r)=>r?qr(e,t,n,i,r):Qr(e)+`/@${Mc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),ji=o((e,t,n,i)=>Qr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),kn=o((e,t,n,i)=>Qr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),gi=o((e,t,n,i)=>Ry(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),Vy=o((e,t,n,i)=>ft(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),mo=o((e,t,n,i)=>DQ(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),yn=o((e,t,n)=>Qr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),of=o((e,t,n,i)=>{let r=ft(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),Es=o((e,t,n,i)=>ft(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Sr=o((e,t,n,i)=>{let r=ft(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),af=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=ft(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),Ny=class Ny{};o(Ny,"ApplicationV4"),h([Ut("settings")],Ny.prototype,"settings",2);var Oy=Ny,Xr=class Xr{};o(Xr,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],Xr.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],Xr.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],Xr.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),C({since:"1.78.0"})],Xr.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),C({since:"1.56.0"})],Xr.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}})],Xr.prototype,"dependencies",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Xr.prototype,"viewType",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Xr.prototype,"path",2),h([y(cw)],Xr.prototype,"controllerExtensions",2);var rf=Xr;var he=ne(le());function At(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let g in n.properties){let m=zn(e,g);if(m!=null&&m.manifest){let T=m.manifest.path([i],t,p,...r);l=Oo(t,T,a,p,!0),l&&Object.keys(l).length>0&&(pl(m,l,g,e,a,r),Qg(u,l,T,s))}}}o(At,"importSettingsOfObject");var CC={};Ws(CC,{ALPChart:()=>$P,ALPTable:()=>mf,ActionAfterExecutionConfiguration:()=>sC,ActionAfterExecutionConfigurationFooter:()=>rP,ActionAfterExecutionConfigurationForm:()=>cP,ActionAfterExecutionConfigurationOP:()=>Qp,ActionAfterExecutionConfigurationObjectPageHeader:()=>vP,ActionAfterExecutionConfigurationToolBarLR:()=>vC,Actions:()=>gC,AdditionalSemanticObject:()=>oC,CommonHeaderFacetSettings:()=>Ns,CommonViewSettings:()=>gf,CustomActionPosition:()=>bC,CustomActionPositionOP:()=>iC,CustomFilterField:()=>$S,CustomFilterFieldPosition:()=>jS,CustomFooterActionOP:()=>sP,CustomFooterActionPositionOP:()=>aP,CustomFormActionOP:()=>gP,CustomHeaderAction:()=>KS,CustomHeaderActionOP:()=>bP,CustomHeaderActionPosition:()=>_p,CustomHeaderActionPositionOP:()=>EP,CustomSectionActionOP:()=>ZS,CustomSectionActionPositionOP:()=>JS,CustomTableAction:()=>AC,CustomTableActionOP:()=>rC,FilterBar:()=>kS,FlexSettings:()=>SP,FooterActionV4:()=>oP,FormAction:()=>lP,Header:()=>HS,HeaderActions:()=>BS,HeaderSections:()=>NP,LRChartView:()=>BP,LRTableView:()=>HP,MultiTableModeV4:()=>WP,ObjectPageCustomHeaderSectionFlexSettings:()=>XS,ObjectPageCustomHeaderSectionFragment:()=>QS,ObjectPageCustomSectionActions:()=>qS,ObjectPageCustomSectionFragment:()=>cf,ObjectPageCustomSubSectionFragment:()=>YS,ObjectPageFooter:()=>tP,ObjectPageFooterActions:()=>eP,ObjectPageForm:()=>uP,ObjectPageFormActions:()=>fP,ObjectPageHeader:()=>hP,ObjectPageHeaderAction:()=>TP,ObjectPageHeaderActions:()=>mP,ObjectPageHeaderSectionAddress:()=>OP,ObjectPageHeaderSectionChart:()=>CP,ObjectPageHeaderSectionContact:()=>IP,ObjectPageHeaderSectionDataPoint:()=>xP,ObjectPageHeaderSectionForm:()=>PP,ObjectPageLayout:()=>wP,ObjectPageTable:()=>Wp,ObjectPageTableColumn:()=>Ef,ObjectPageTableColumnAction:()=>JP,ObjectPageToolBarAction:()=>nC,PersonalizationType:()=>kP,PersonalizationTypeOP:()=>YP,Position:()=>fC,PositionOP:()=>ZP,QuickVariantSelectionV4:()=>jP,QuickVariantSelectionV4OP:()=>zP,RelatedApps:()=>aC,Table:()=>KP,TableColumn:()=>qy,TableColumnAction:()=>cC,TableCreationModeOP:()=>qP,TableCustomColumn:()=>pC,TableCustomColumnOP:()=>eC,TableSettings:()=>By,TableViewExtension:()=>GP,TableViewSettings:()=>Bp,ToolBar:()=>mC,ToolBarAction:()=>TC,ViewCustomActionPosition:()=>SC,ViewPersonalizationType:()=>UP,ViewPosition:()=>uC,ViewTableColumn:()=>Yy,ViewTableColumnAction:()=>lC,ViewTableCustomAction:()=>PC,ViewTableCustomColumn:()=>dC,ViewToolBarAction:()=>EC,VisualFilter:()=>US,checkViewOrder:()=>XP,deleteCreationModeProperty:()=>Gp,deletePersonalizationProperty:()=>vo,exportCreationModeProperty:()=>Hp,exportPersonalization:()=>Ky,exportPersonalizationProperty:()=>yo});function VQ(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(VQ,"exportVisualFilterValueList");var sf=class sf{};o(sf,"FilterBar"),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.99.0"}),Ae("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],sf.prototype,"hideFilterBar",2),h([y({manifest:{path:_y}}),C({since:"1.93.0"}),Ae("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],sf.prototype,"initialLayout",2),h([y({manifest:{path:_y}}),C({since:"1.93.0"}),Ae("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],sf.prototype,"layout",2);var kS=sf,Lp=class Lp{};o(Lp,"VisualFilter"),h([y({manifest:{path:MS}}),C({since:"1.93.0"}),Ae("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Lp.prototype,"availability",2),h([y({manifest:{path:MS,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:VQ,key:"visualFilter"}}),C({since:"1.93.0"})],Lp.prototype,"visualFilterValueList",2);var US=Lp,Rp=class Rp{};o(Rp,"CustomFilterFieldPosition"),h([y({manifest:{path:o((t,n,i,r)=>Ts(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Rp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ts(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Rp.prototype,"placement",2);var jS=Rp,bs=class bs{};o(bs,"CustomFilterField"),h([y({manifest:{path:Ts}}),C({since:"1.77.0"})],bs.prototype,"label",2),h([y({manifest:{path:Ts}}),C({since:"1.77.0"})],bs.prototype,"property",2),h([y({manifest:{path:Ts}}),C({since:"1.77.0"})],bs.prototype,"template",2),h([y({manifest:{path:Ts}}),C({since:"1.77.0"})],bs.prototype,"required",2),h([y({manifest:{path:Ts}}),C({since:"1.77.0"})],bs.prototype,"position",2);var $S=bs;var GS=class GS{};o(GS,"HeaderActions");var BS=GS,WS=class WS{};o(WS,"Header");var HS=WS;var Fp=class Fp{};o(Fp,"CustomHeaderActionPosition"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Fp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Fp.prototype,"placement",2);var _p=Fp,As=class As{};o(As,"CustomHeaderAction"),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],As.prototype,"text",2),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],As.prototype,"position",2),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],As.prototype,"press",2),h([y({manifest:{path:gi},generate:Yn}),C({since:"1.84.0"})],As.prototype,"visible",2),h([y({manifest:{path:gi},generate:Yn}),C({since:"1.84.0"})],As.prototype,"enabled",2);var KS=As;var wy=class wy{};o(wy,"ObjectPageCustomHeaderSectionFlexSettings"),h([y({manifest:{path:o((t,n,i)=>Sr(t,n,i,"flexSettings"),"path")}}),C({since:"1.81.0"})],wy.prototype,"designtime",2);var XS=wy,nr=class nr{};o(nr,"ObjectPageCustomHeaderSectionFragment"),h([y({manifest:{path:o((t,n,i)=>Sr(t,n,i,"position"),"path"),key:"anchor"}}),C({since:"1.77.0"})],nr.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>Sr(t,n,i,"position"),"path"),key:"placement"}}),C({since:"1.77.0"})],nr.prototype,"relativePosition",2),h([y({manifest:{path:Sr},generate:oi}),C({since:"1.84.0"})],nr.prototype,"visible",2),h([y({manifest:{path:Sr}}),C({since:"1.77.0"})],nr.prototype,"title",2),h([y({manifest:{path:Sr}}),C({since:"1.77.0"})],nr.prototype,"subTitle",2),h([y({manifest:{path:Sr,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],nr.prototype,"fragmentName",2),h([y({manifest:{path:Sr,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),C({since:"1.86.0"})],nr.prototype,"templateEdit",2),h([y({manifest:{path:Sr}}),C({since:"1.81.0"})],nr.prototype,"stashed",2),h([y({manifest:{path:Sr}}),C({since:"1.81.0"})],nr.prototype,"flexSettings",2),h([y({manifest:{path:Sr}}),C({since:"1.81.0"})],nr.prototype,"requestGroupId",2),h([y({manifest:{path:Sr,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],nr.prototype,"controls",2);var QS=nr;var zS=class zS{};o(zS,"ObjectPageCustomSectionActions");var qS=zS,Ss=class Ss{};o(Ss,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:o((t,n,i)=>of(t,n,i,"position"),"path"),key:"anchor"}}),C({since:"1.77.0"})],Ss.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>of(t,n,i,"position"),"path"),key:"placement"}}),C({since:"1.77.0"})],Ss.prototype,"relativePosition",2),h([y({manifest:{path:of}}),C({since:"1.77.0"})],Ss.prototype,"title",2),h([y({manifest:{path:of,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],Ss.prototype,"fragmentName",2),h([y({manifest:{path:of,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],Ss.prototype,"controls",2);var cf=Ss,Ps=class Ps extends cf{};o(Ps,"ObjectPageCustomSubSectionFragment"),h([y({manifest:{path:o((...t)=>`${af.apply({},t)}/position`,"path"),key:"anchor"}}),C({since:"1.77.0"})],Ps.prototype,"relatedFacet",2),h([y({manifest:{path:o((...t)=>`${af.apply({},t)}/position`,"path"),key:"placement"}}),C({since:"1.77.0"})],Ps.prototype,"relativePosition",2),h([y({manifest:{path:af}}),C({since:"1.77.0"})],Ps.prototype,"title",2),h([y({manifest:{path:af,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],Ps.prototype,"fragmentName",2),h([y({manifest:{path:af,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],Ps.prototype,"controls",2);var YS=Ps;var Dp=class Dp{};o(Dp,"CustomSectionActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Es(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Dp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Es(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Dp.prototype,"placement",2);var JS=Dp,Cs=class Cs{};o(Cs,"CustomSectionActionOP"),h([y({manifest:{path:Es}}),C({since:"1.84.0"})],Cs.prototype,"text",2),h([y({manifest:{path:Es}}),C({since:"1.84.0"})],Cs.prototype,"position",2),h([y({manifest:{path:Es}}),C({since:"1.84.0"})],Cs.prototype,"press",2),h([y({manifest:{path:Es},generate:oi}),C({since:"1.84.0"})],Cs.prototype,"visible",2),h([y({manifest:{path:Es},generate:oi}),C({since:"1.84.0"})],Cs.prototype,"enabled",2);var ZS=Cs;var nP=class nP{};o(nP,"ObjectPageFooterActions");var eP=nP,iP=class iP{};o(iP,"ObjectPageFooter");var tP=iP;var Vp=class Vp{};o(Vp,"ActionAfterExecutionConfigurationFooter"),h([y({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/afterExecution","path")}}),Ae("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Vp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/afterExecution","path")}})],Vp.prototype,"enableAutoScroll",2);var rP=Vp,My=class My{};o(My,"FooterActionV4"),h([y({manifest:{path:mo}}),C({since:"1.84.0"})],My.prototype,"afterExecution",2);var oP=My,wp=class wp{};o(wp,"CustomFooterActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],wp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],wp.prototype,"placement",2);var aP=wp,xs=class xs{};o(xs,"CustomFooterActionOP"),h([y({manifest:{path:mo}}),C({since:"1.84.0"})],xs.prototype,"text",2),h([y({manifest:{path:mo}}),C({since:"1.84.0"})],xs.prototype,"position",2),h([y({manifest:{path:mo}}),C({since:"1.84.0"})],xs.prototype,"press",2),h([y({manifest:{path:mo},generate:oi}),C({since:"1.84.0"})],xs.prototype,"visible",2),h([y({manifest:{path:mo},generate:oi}),C({since:"1.84.0"})],xs.prototype,"enabled",2);var sP=xs;var Mp=class Mp{};o(Mp,"ActionAfterExecutionConfigurationForm"),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}}),Ae("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Mp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}})],Mp.prototype,"enableAutoScroll",2);var cP=Mp,ky=class ky{};o(ky,"FormAction"),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],ky.prototype,"afterExecution",2);var lP=ky,pP=class pP{};o(pP,"ObjectPageFormActions");var fP=pP,dP=class dP{};o(dP,"ObjectPageForm");var uP=dP;var Is=class Is{};o(Is,"CustomFormActionOP"),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Is.prototype,"text",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Is.prototype,"position",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Is.prototype,"press",2),h([y({manifest:{path:kn},generate:oi}),C({since:"1.84.0"})],Is.prototype,"visible",2),h([y({manifest:{path:kn},generate:oi}),C({since:"1.84.0"})],Is.prototype,"enabled",2);var gP=Is;var yP=class yP{};o(yP,"ObjectPageHeaderActions");var mP=yP,lf=class lf{};o(lf,"ObjectPageHeader"),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"})],lf.prototype,"editableHeaderContent",2),h([y({manifest:{path:Ry}}),C({since:"1.84.0"})],lf.prototype,"visible",2),h([y({manifest:{path:Ry}}),C({since:"1.84.0"})],lf.prototype,"anchorBarVisible",2);var hP=lf;var kp=class kp{};o(kp,"ActionAfterExecutionConfigurationObjectPageHeader"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}}),Ae("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],kp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}})],kp.prototype,"enableAutoScroll",2);var vP=kp,Uy=class Uy{};o(Uy,"ObjectPageHeaderAction"),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Uy.prototype,"afterExecution",2);var TP=Uy,AP=class AP extends _p{};o(AP,"CustomHeaderActionPositionOP");var EP=AP,Os=class Os{};o(Os,"CustomHeaderActionOP"),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Os.prototype,"text",2),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Os.prototype,"position",2),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Os.prototype,"press",2),h([y({manifest:{path:gi},generate:oi}),C({since:"1.84.0"})],Os.prototype,"visible",2),h([y({manifest:{path:gi},generate:oi}),C({since:"1.84.0"})],Os.prototype,"enabled",2);var bP=Os;var jy=class jy{};o(jy,"FlexSettings"),h([y({manifest:{path:o((t,n,i)=>Fy(t,n,i)+"/flexSettings","path")}}),C({since:"1.81.0"}),Ae("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],jy.prototype,"designtime",2);var SP=jy,Up=class Up{};o(Up,"CommonHeaderFacetSettings"),h([y({manifest:{path:Fy}}),C({since:"1.81.0"})],Up.prototype,"stashed",2),h([y({manifest:{path:Fy}}),C({since:"1.81.0"})],Up.prototype,"flexSettings",2);var Ns=Up,LP=class LP extends Ns{};o(LP,"ObjectPageHeaderSectionForm");var PP=LP,RP=class RP extends Ns{};o(RP,"ObjectPageHeaderSectionChart");var CP=RP,FP=class FP extends Ns{};o(FP,"ObjectPageHeaderSectionDataPoint");var xP=FP,_P=class _P extends Ns{};o(_P,"ObjectPageHeaderSectionContact");var IP=_P,DP=class DP extends Ns{};o(DP,"ObjectPageHeaderSectionAddress");var OP=DP,VP=class VP{};o(VP,"HeaderSections");var NP=VP;var $y=class $y{};o($y,"ObjectPageLayout"),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),Ae("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],$y.prototype,"sectionLayout",2);var wP=$y;var Xy=ne(le());var MP=ne(le());var wQ=o((e,t)=>{let n=e;for(let i of t.split("/"))n[i]||(i==="paths"?n[i]=[]:n[i]={}),n=n[i];return n},"getManifestSectionByPathV4");function ho(e,t,n,i,r,a){let s=Ly(e),l=wQ(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[MP.SchemaTag.key]===(a==null?void 0:a.key)||g[MP.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(ho,"getSettingsPathForLRViewsPath");function MQ(e,t,n,i,r,a){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let u of l){let p=Number(u),g=e[u];t===g.key?s[n]=g:p>=i&&p<=r?s[Math.max(0,p+a)]=g:s[u]=g}return s}o(MQ,"fillNewlyOrderedViews");function XP(e,t){let n=t.key,i=e.findIndex(a=>(a==null?void 0:a.key)===n),r=t.index;if(i>-1&&i!==r){let a=r>i?-1:1,s=Math.min(Number(i),r),l=Math.max(Number(i),r),u=MQ(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(XP,"checkViewOrder");function Ky(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(Ky,"exportPersonalization");function yo(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(yo,"exportPersonalizationProperty");function vo(e,t,n,i){typeof e.personalization=="object"&&e.personalization[i]!==void 0?(delete e.personalization[i],Object.keys(e.personalization).length===0&&delete e.personalization):typeof e.personalization=="string"&&e.personalization!==void 0&&delete e.personalization}o(vo,"deletePersonalizationProperty");function QP(e,t,n,i,r,a){var l;let s;if(!t||Object.keys(t).length===0){let u=e;Object.keys(u).forEach(p=>{u[p]&&u[p].key===r&&(e[Number(p)]={},s=p)})}if(s){let u=(l=a.table)==null?void 0:l.views;for(let p in u)u[p].index>s&&u[p].index--}}o(QP,"deleteView");function Hp(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(Hp,"exportCreationModeProperty");function Gp(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0?delete e.creationMode[t]:typeof e.creationMode=="string"&&e.creationMode!==void 0&&delete e.creationMode}o(Gp,"deleteCreationModeProperty");function fw(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(fw,"importPersonalization");function uw(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(uw,"determineIndexOfView");var ff=class ff{};o(ff,"PersonalizationType"),h([y({manifest:{path:Ci,export:yo,delete:vo}})],ff.prototype,"column",2),h([y({manifest:{path:Ci,export:yo,delete:vo}})],ff.prototype,"sort",2),h([y({manifest:{path:Ci,export:yo,delete:vo}})],ff.prototype,"filter",2);var kP=ff,uf=class uf{};o(uf,"ViewPersonalizationType"),h([y({manifest:{path:er,export:yo,delete:vo}})],uf.prototype,"column",2),h([y({manifest:{path:er,export:yo,delete:vo}})],uf.prototype,"sort",2),h([y({manifest:{path:Ci,export:yo,delete:vo}})],uf.prototype,"filter",2);var UP=uf,pf=class pf{};o(pf,"QuickVariantSelectionV4"),h([y({manifest:{path:Dy}})],pf.prototype,"paths",2),h([y({manifest:{path:Dy}})],pf.prototype,"hideTableTitle",2),h([y({manifest:{path:Dy}})],pf.prototype,"showCounts",2);var jP=pf,Pr=class Pr{};o(Pr,"TableSettings"),h([y({manifest:{path:Ci}}),C({since:"1.84.0"}),Ae("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Pr.prototype,"type",2),h([y({manifest:{path:Ci,import:fw,export:Ky}}),C({since:"1.86.0"})],Pr.prototype,"personalization",2),h([y({manifest:{path:Ci}}),C({since:"1.84.0"}),Ae("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],Pr.prototype,"selectionMode",2),h([y({manifest:{path:Ci}}),C({since:"1.84.0"})],Pr.prototype,"selectAll",2),h([y({manifest:{path:Ci}}),C({since:"1.84.0"})],Pr.prototype,"selectionLimit",2),h([y({manifest:{path:Ci}}),C({since:"1.84.0"}),Ae("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Pr.prototype,"enableExport",2),h([y({manifest:{path:Ci}}),C({since:"1.84.0"})],Pr.prototype,"quickVariantSelection",2),h([y({manifest:{path:Ci}}),C({since:"1.84.0"}),Ae("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Pr.prototype,"condensedTableLayout",2),h([y({manifest:{path:Ci}}),C({since:"1.117.0"}),Ae("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Pr.prototype,"hierarchyQualifier",2),h([y({manifest:{path:Ci}}),C({since:"1.120.0"}),Ae("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Pr.prototype,"widthIncludingColumnHeader",2);var By=Pr,Hy=class Hy{};o(Hy,"ALPChart"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/primary/0","path"),delete:QP}})],Hy.prototype,"annotationPath",2);var $P=Hy,kc=class kc{};o(kc,"CommonViewSettings"),h([y({manifest:{path:ho,delete:Ys}})],kc.prototype,"key",2),h([y({manifest:{path:Ly,import:uw,export:o((t,n)=>{XP(t,n)},"export"),delete:QP}})],kc.prototype,"index",2),h([y({manifest:{path:ho,delete:Ys}})],kc.prototype,"annotationPath",2),h([y({manifest:{path:ho}})],kc.prototype,"entitySet",2);var gf=kc,Cr=class Cr extends gf{};o(Cr,"TableViewSettings"),h([y({manifest:{path:er}}),C({since:"1.84.0"})],Cr.prototype,"type",2),h([y({manifest:{path:er,import:fw}}),C({since:"1.86.0"})],Cr.prototype,"personalization",2),h([y({manifest:{path:er}}),C({since:"1.84.0"})],Cr.prototype,"selectionMode",2),h([y({manifest:{path:er}}),C({since:"1.84.0"})],Cr.prototype,"selectAll",2),h([y({manifest:{path:er}}),C({since:"1.84.0"})],Cr.prototype,"selectionLimit",2),h([y({manifest:{path:er}}),C({since:"1.84.0"}),Ae("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Cr.prototype,"enableExport",2),h([y({manifest:{path:er}}),C({since:"1.84.0"})],Cr.prototype,"quickVariantSelection",2),h([y({manifest:{path:er}}),C({since:"1.84.0"}),Ae("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Cr.prototype,"condensedTableLayout",2),h([y({manifest:{path:er}}),C({since:"1.120.0"}),Ae("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Cr.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:er}}),C({since:"1.117.0"}),Ae("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Cr.prototype,"hierarchyQualifier",2);var Bp=Cr;function kQ(e){return Bp}o(kQ,"getTableViewSettings");var jp=class jp extends Bp{};o(jp,"ALPTable"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:Ys}})],jp.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),Ae("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],jp.prototype,"initialLoad",2);var mf=jp,Gy=class Gy extends gf{};o(Gy,"LRChartView"),h([y({manifest:{path:ho},generate:Yn})],Gy.prototype,"visible",2);var BP=Gy,df=class df extends kQ(gf){};o(df,"LRTableView"),h([y({manifest:{path:ho}})],df.prototype,"keepPreviousPersonalization",2),h([y({manifest:{path:ho}})],df.prototype,"entitySet",2),h([y({manifest:{path:ho},generate:Yn})],df.prototype,"visible",2);var HP=df,Ls=class Ls{};o(Ls,"TableViewExtension"),h([y({manifest:{path:ho}})],Ls.prototype,"key",2),h([y({manifest:{path:Ly,import:uw,export:o((t,n)=>{XP(t,n)},"export"),delete:QP}})],Ls.prototype,"index",2),h([y({manifest:{path:ho}})],Ls.prototype,"label",2),h([y({manifest:{path:ho}})],Ls.prototype,"template",2),h([y({manifest:{path:ho},generate:Yn})],Ls.prototype,"visible",2);var GP=Ls,Wy=class Wy{};o(Wy,"MultiTableModeV4"),h([y({manifest:{path:o(t=>ft(t)+"/views","path")}})],Wy.prototype,"showCounts",2);var WP=Wy,$p=class $p extends By{};o($p,"Table"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:Ys}})],$p.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),Ae("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],$p.prototype,"initialLoad",2);var KP=$p;var hf=class hf{};o(hf,"TableCreationModeOP"),h([y({manifest:{path:o((t,n,i)=>yn(t,n,i),"path"),export:o((t,n,i)=>{Hp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Gp(t,r)},"delete")}})],hf.prototype,"name",2),h([y({manifest:{path:o((t,n,i)=>yn(t,n,i),"path"),export:o((t,n,i)=>{Hp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Gp(t,r)},"delete")}})],hf.prototype,"createAtEnd",2),h([y({manifest:{path:o((t,n,i)=>yn(t,n,i),"path"),export:o((t,n,i)=>{Hp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Gp(t,r)},"delete")}})],hf.prototype,"inlineCreationRowsHiddenInEditMode",2);var qP=hf,yf=class yf{};o(yf,"PersonalizationTypeOP"),h([y({manifest:{path:o((t,n,i)=>yn(t,n,i),"path"),export:yo,delete:vo}})],yf.prototype,"column",2),h([y({manifest:{path:o((t,n,i)=>yn(t,n,i),"path"),export:yo,delete:vo}})],yf.prototype,"sort",2),h([y({manifest:{path:o((t,n,i)=>yn(t,n,i),"path"),export:yo,delete:vo}})],yf.prototype,"filter",2);var YP=yf,vf=class vf{};o(vf,"QuickVariantSelectionV4OP"),h([y({manifest:{path:o((t,n,i)=>yn(t,n,i)+Xy.QUICKVARPATH,"path")}})],vf.prototype,"paths",2),h([y({manifest:{path:o((t,n,i)=>yn(t,n,i)+Xy.QUICKVARPATH,"path")}})],vf.prototype,"hideTableTitle",2),h([y({manifest:{path:o((t,n,i)=>yn(t,n,i)+Xy.QUICKVARPATH,"path")}})],vf.prototype,"showCounts",2);var zP=vf,xi=class xi{};o(xi,"ObjectPageTable"),h([y({manifest:{path:yn}}),C({since:"1.84.0"})],xi.prototype,"type",2),h([y({manifest:{path:yn,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),C({since:"1.84.0"})],xi.prototype,"creationMode",2),h([y({manifest:{path:yn,import:o(t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}},"import"),export:Ky}}),C({since:"1.86.0"})],xi.prototype,"personalization",2),h([y({manifest:{path:yn}}),C({since:"1.84.0"})],xi.prototype,"selectionMode",2),h([y({manifest:{path:yn}}),C({since:"1.84.0"})],xi.prototype,"selectAll",2),h([y({manifest:{path:yn}}),C({since:"1.84.0"})],xi.prototype,"selectionLimit",2),h([y({manifest:{path:yn}}),C({since:"1.84.0"}),Ae("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],xi.prototype,"enableExport",2),h([y({manifest:{path:yn}}),C({since:"1.84.0"})],xi.prototype,"quickVariantSelection",2),h([y({manifest:{path:yn}}),C({since:"1.84.0"}),Ae("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],xi.prototype,"condensedTableLayout",2),h([y({manifest:{path:yn}}),C({since:"1.86.0"})],xi.prototype,"enableFullScreen",2),h([y({manifest:{path:yn}}),C({since:"1.84.0"})],xi.prototype,"enablePaste",2),h([y({manifest:{path:yn}}),C({since:"1.117.0"}),Ae("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],xi.prototype,"hierarchyQualifier",2),h([y({manifest:{path:yn}}),C({since:"1.120.0"}),Ae("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],xi.prototype,"widthIncludingColumnHeader",2);var Wp=xi;var Kp=class Kp{};o(Kp,"ActionAfterExecutionConfigurationOP"),h([y({manifest:{path:o((t,n,i,r)=>ji(t,n,i,r)+"/afterExecution","path")}}),Ae("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Kp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>ji(t,n,i,r)+"/afterExecution","path")}})],Kp.prototype,"enableAutoScroll",2);var Qp=Kp,Tf=class Tf{};o(Tf,"ObjectPageTableColumn"),h([y({manifest:{path:ji}}),C({since:"1.84.0"}),Ae("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Tf.prototype,"width",2),h([y({manifest:{path:ji}}),C({since:"1.85.0"})],Tf.prototype,"availability",2),h([y({manifest:{path:ji}}),C({since:"1.120.0"}),Ae("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Tf.prototype,"widthIncludingColumnHeader",2);var Ef=Tf,tC=class tC extends Ef{};o(tC,"ObjectPageTableColumnAction");var JP=tC,Xp=class Xp{};o(Xp,"PositionOP"),h([y({manifest:{path:o((t,n,i,r)=>ji(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Xp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>ji(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Xp.prototype,"placement",2);var ZP=Xp,Go=class Go{};o(Go,"TableCustomColumnOP"),h([y({manifest:{path:ji}}),C({since:"1.84.0"})],Go.prototype,"position",2),h([y({manifest:{path:ji}}),C({since:"1.84.0"})],Go.prototype,"header",2),h([y({manifest:{path:ji}}),C({since:"1.84.0"}),Ae("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Go.prototype,"width",2),h([y({manifest:{path:ji}}),C({since:"1.84.0"})],Go.prototype,"template",2),h([y({manifest:{path:ji}}),C({since:"1.86.0"})],Go.prototype,"horizontalAlign",2),h([y({manifest:{path:ji}}),C({since:"1.84.0"})],Go.prototype,"availability",2),h([y({manifest:{path:ji}}),C({since:"1.85.0"})],Go.prototype,"properties",2);var eC=Go;var Qy=class Qy{};o(Qy,"ObjectPageToolBarAction"),h([y({manifest:{path:kn}})],Qy.prototype,"enableOnSelect",2);var nC=Qy,qp=class qp{};o(qp,"CustomActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],qp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],qp.prototype,"placement",2);var iC=qp,Pa=class Pa{};o(Pa,"CustomTableActionOP"),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Pa.prototype,"text",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Pa.prototype,"position",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Pa.prototype,"press",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Pa.prototype,"requiresSelection",2),h([y({manifest:{path:kn},generate:oi}),C({since:"1.84.0"})],Pa.prototype,"visible",2),h([y({manifest:{path:kn},generate:oi}),C({since:"1.84.0"})],Pa.prototype,"enabled",2);var rC=Pa;var bf=class bf{};o(bf,"AdditionalSemanticObject"),h([y({manifest:{path:Vy}}),Ae("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.108.0"})],bf.prototype,"allowedActions",2),h([y({manifest:{path:Vy}}),Ae("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.96.0"})],bf.prototype,"unavailableActions",2),h([y({manifest:{path:Vy}}),Ae("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.96.0"})],bf.prototype,"mapping",2);var oC=bf,Yp=class Yp{};o(Yp,"RelatedApps"),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"})],Yp.prototype,"showRelatedApps",2),h([y({manifest:{path:ft}})],Yp.prototype,"additionalSemanticObjects",2);var aC=Yp;var zp=class zp{};o(zp,"ActionAfterExecutionConfiguration"),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/afterExecution","path")}}),Ae("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],zp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/afterExecution","path")}})],zp.prototype,"enableAutoScroll",2);var sC=zp,Af=class Af{};o(Af,"TableColumn"),h([y({manifest:{path:di}}),C({since:"1.84.0"}),Ae("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Af.prototype,"width",2),h([y({manifest:{path:di}}),C({since:"1.85.0"})],Af.prototype,"availability",2),h([y({manifest:{path:di}}),C({since:"1.120.0"}),Ae("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Af.prototype,"widthIncludingColumnHeader",2);var qy=Af,Sf=class Sf{};o(Sf,"ViewTableColumn"),h([y({manifest:{path:tr}}),C({since:"1.84.0"}),Ae("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Sf.prototype,"width",2),h([y({manifest:{path:tr}}),C({since:"1.85.0"})],Sf.prototype,"availability",2),h([y({manifest:{path:di}}),C({since:"1.120.0"}),Ae("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Sf.prototype,"widthIncludingColumnHeader",2);var Yy=Sf,zy=class zy extends qy{};o(zy,"TableColumnAction"),h([y({manifest:{path:di}}),C({since:"1.84.0"})],zy.prototype,"afterExecution",2);var cC=zy,Jy=class Jy extends Yy{};o(Jy,"ViewTableColumnAction"),h([y({manifest:{path:tr}}),C({since:"1.84.0"})],Jy.prototype,"afterExecution",2);var lC=Jy,Jp=class Jp{};o(Jp,"Position"),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Jp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Jp.prototype,"placement",2);var fC=Jp,Zp=class Zp{};o(Zp,"ViewPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>tr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Zp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>tr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Zp.prototype,"placement",2);var uC=Zp,Wo=class Wo{};o(Wo,"TableCustomColumn"),h([y({manifest:{path:di}}),C({since:"1.84.0"})],Wo.prototype,"position",2),h([y({manifest:{path:di}}),C({since:"1.84.0"})],Wo.prototype,"header",2),h([y({manifest:{path:di}}),C({since:"1.84.0"}),Ae("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Wo.prototype,"width",2),h([y({manifest:{path:di}}),C({since:"1.84.0"})],Wo.prototype,"template",2),h([y({manifest:{path:di}}),C({since:"1.86.0"})],Wo.prototype,"horizontalAlign",2),h([y({manifest:{path:di}}),C({since:"1.84.0"})],Wo.prototype,"availability",2),h([y({manifest:{path:di}}),C({since:"1.85.0"})],Wo.prototype,"properties",2);var pC=Wo,Ko=class Ko{};o(Ko,"ViewTableCustomColumn"),h([y({manifest:{path:tr}}),C({since:"1.84.0"})],Ko.prototype,"position",2),h([y({manifest:{path:tr}}),C({since:"1.84.0"})],Ko.prototype,"header",2),h([y({manifest:{path:tr}}),C({since:"1.84.0"}),Ae("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Ko.prototype,"width",2),h([y({manifest:{path:tr}}),C({since:"1.84.0"})],Ko.prototype,"template",2),h([y({manifest:{path:tr}}),C({since:"1.86.0"})],Ko.prototype,"horizontalAlign",2),h([y({manifest:{path:tr}}),C({since:"1.84.0"})],Ko.prototype,"availability",2),h([y({manifest:{path:tr}}),C({since:"1.85.0"})],Ko.prototype,"properties",2);var dC=Ko;var hC=class hC{};o(hC,"Actions");var gC=hC,yC=class yC{};o(yC,"ToolBar");var mC=yC;var ed=class ed{};o(ed,"ActionAfterExecutionConfigurationToolBarLR"),h([y({manifest:{path:o((t,n,i,r,a)=>Ar(t,n,i,r,a)+"/afterExecution","path")}}),Ae("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],ed.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>Ar(t,n,i,r,a)+"/afterExecution","path")}})],ed.prototype,"enableAutoScroll",2);var vC=ed,td=class td{};o(td,"ToolBarAction"),h([y({manifest:{path:Ar}})],td.prototype,"enableOnSelect",2),h([y({manifest:{path:Ar}})],td.prototype,"afterExecution",2);var TC=td,nd=class nd{};o(nd,"ViewToolBarAction"),h([y({manifest:{path:qr}})],nd.prototype,"enableOnSelect",2),h([y({manifest:{path:qr}})],nd.prototype,"afterExecution",2);var EC=nd,id=class id{};o(id,"CustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Ar(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],id.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Ar(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],id.prototype,"placement",2);var bC=id,Ca=class Ca{};o(Ca,"CustomTableAction"),h([y({manifest:{path:Ar}}),C({since:"1.84.0"})],Ca.prototype,"text",2),h([y({manifest:{path:Ar}}),C({since:"1.84.0"})],Ca.prototype,"position",2),h([y({manifest:{path:Ar}}),C({since:"1.84.0"})],Ca.prototype,"press",2),h([y({manifest:{path:Ar}}),C({since:"1.84.0"})],Ca.prototype,"requiresSelection",2),h([y({manifest:{path:Ar},generate:Yn}),C({since:"1.84.0"})],Ca.prototype,"visible",2),h([y({manifest:{path:Ar},generate:Yn}),C({since:"1.84.0"})],Ca.prototype,"enabled",2);var AC=Ca,rd=class rd{};o(rd,"ViewCustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>qr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],rd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>qr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],rd.prototype,"placement",2);var SC=rd,xa=class xa{};o(xa,"ViewTableCustomAction"),h([y({manifest:{path:qr}}),C({since:"1.84.0"})],xa.prototype,"text",2),h([y({manifest:{path:qr}}),C({since:"1.84.0"})],xa.prototype,"position",2),h([y({manifest:{path:qr}}),C({since:"1.84.0"})],xa.prototype,"press",2),h([y({manifest:{path:qr}}),C({since:"1.84.0"})],xa.prototype,"requiresSelection",2),h([y({manifest:{path:qr},generate:Yn}),C({since:"1.84.0"})],xa.prototype,"visible",2),h([y({manifest:{path:qr},generate:Yn}),C({since:"1.84.0"})],xa.prototype,"enabled",2);var PC=xa;var NC={};Ws(NC,{FreestylePage:()=>IC,ListReport:()=>xr,ObjectPage:()=>To});function UQ(e){var t,n,i,r;((n=(t=e.paths)==null?void 0:t[0])!=null&&n.primary||(r=(i=e.paths)==null?void 0:i[0])!=null&&r.secondary)&&Object.keys(e).forEach(a=>delete e[a])}o(UQ,"deleteAllALPViews");function jQ(){}o(jQ,"doNotExport");function $Q(){}o($Q,"doNotImport");var xr=class{};o(xr,"ListReport"),h([y({manifest:{path:o(t=>ft(t)+"/views","path"),import:$Q,export:jQ,delete:UQ}})],xr.prototype,"chart",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"})],xr.prototype,"variantManagement",2),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/[]/0","path")}}),Ae("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],xr.prototype,"defaultPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}})],xr.prototype,"defaultTemplateAnnotationPath",2),h([Ut("header")],xr.prototype,"header",2),h([Ut("fe::FilterBar")],xr.prototype,"filterBar",2),xr=h([kr({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],xr);var xC=ne(le());var To=class{};o(To,"ObjectPage"),h([Ut("header")],To.prototype,"header",2),h([Ut("layout")],To.prototype,"layout",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),Ae("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],To.prototype,"variantManagement",2),h([Ut("sections")],To.prototype,"sections",2),To=h([kr({id:`${xC.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:xC.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],To);var OC=class OC{};o(OC,"FreestylePage");var IC=OC;var Zy=ne(le());var BQ={ALPTableView:mf},HQ={ALPTableView:mf},GQ={Table:Wp,TableColumn:Ef,ObjectPageCustomSectionView:cf,ActionAfterExecutionConfiguration:Qp},WQ={[Zy.PageTypeV4.AnalyticalListPage]:BQ,[Zy.PageTypeV4.ListReport]:HQ,[Zy.PageTypeV4.ObjectPage]:GQ},LC=class LC extends Ml{constructor(){super(CC,NC,WQ)}};o(LC,"MetadataInstanceFactoryV4");var Ia=LC;var RC=require("@sap-ux/vocabularies-types/vocabularies/UI");function FC(e,t,n,i,r,a,s){var g,m,T,A,E,O;let l=t.jsonSchema.definitions,u=a&&a!==`@${RC.UIAnnotationTerms.LineItem}`?a:he.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let F in p.properties){let K=l[u].properties[F].$ref.split($)[1].split("<")[0];e.columns[F]=n.createInstance(i,K);let j=s||a;At(e.columns[F],t.manifest,l[K],r,[F,j],j,t.logger),Fo(e.columns,F)}Fo(e,"columns")}else{let F=(O=(E=(A=(T=(m=(g=t.manifest["sap.ui5"])==null?void 0:g.routing)==null?void 0:m.targets)==null?void 0:T[r])==null?void 0:A.options)==null?void 0:E.settings)==null?void 0:O.views;(!F||F.paths.length<1)&&se(t.logger,{severity:he.LogSeverity.Error,message:q.t("NOLINEITEMS")})}}o(FC,"transferColumns");function KQ(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[he.DefinitionName.VisualFilters];if(t.visualFilters={},typeof s=="object"){for(let l in s.properties){let u=s.properties[l];if(typeof u=="object"&&u.$ref){let p=hn(u.$ref),g=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,g),At(t.visualFilters[l],e.manifest,a[p],r,[l])}}Fo(t,"visualFilters")}}o(KQ,"importVisualFilters");function XQ(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,u=s;!u&&[he.DefinitionName.LineItems,`${he.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(u=`@${RC.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${he.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let g in p.properties){let m=p.properties[g];if(typeof m=="object"&&m.$ref){let T=hn(m.$ref),A=T.split("<")[0];t.toolBar.actions[g]=n.createInstance(i,A),At(t.toolBar.actions[g],e.manifest,l[T],r,[g,u]),Fo(t.toolBar.actions,g)}}}o(XQ,"importActions");function _C(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,At(u.toolBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.ToolBarLR],r,[]),XQ(e,u,n,i,r,a,s),Fo(u.toolBar,"actions"),Fo(u,"toolBar")}o(_C,"transferToolBar");function pw(e,t,n){var s;let i=(s=e[t])==null?void 0:s[he.SchemaTag.annotationPath],r=n?`/${n}/`:"",a=i==null?void 0:i.substr(i.lastIndexOf("@"));return a=r?`${r}${a}`:a,a}o(pw,"determineTargetAnnotationOfView");function QQ(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,he.DefinitionName.ALPChart);let s=a[he.DefinitionName.ALPChart],l=s[he.SchemaTag.annotationPath];At(t.chart,e.manifest,s,r,[s[he.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),At(t.chart.toolBar,e.manifest,a[he.DefinitionName.ViewChartToolBar],r,[]);let u=a[he.DefinitionName.ALPTable][he.SchemaTag.annotationPath];if(u){let p=a[he.DefinitionName.ALPTable],g=t.table=n.createInstance(i,he.DefinitionName.ALPTable);_C(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));At(g,e.manifest,p,r,[p[he.SchemaTag.key],m]),FC(g,e,n,i,r,void 0,m)}}o(QQ,"importALPViews");function qQ(e){let t;return e.indexOf(he.DefinitionName.LRTableView)>-1?t=he.DefinitionName.LRTableView:e.indexOf(he.DefinitionName.LRChartView)>-1?t=he.DefinitionName.LRChartView:e===he.DefinitionName.TableViewExtension&&(t=he.DefinitionName.TableViewExtension),t}o(qQ,"getViewTypeByDefinition");function YQ(e,t,n,i,r){let a=t.table.views=n.createInstance(i,he.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;At(a,e.manifest,s[he.DefinitionName.MultiTableModeV4],r,[]);let l=s[he.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][he.SchemaTag.propertyIndex]-g[1][he.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split($)[1],m=qQ(g),T=a[p[0]]=n.createInstance(i,m),A=s[g].entitySet,E=pw(s,g,A);if(At(T,e.manifest,s[g],r,[p[0],E]),m===he.DefinitionName.LRTableView){let O=`${he.DefinitionName.LineItemsOfView}::${p[0]}`;_C(e,T,n,i,r,O,E),FC(T,e,n,i,r,O,E)}Object.keys(T).length===0&&delete a[p[0]]}Fo(t.table,"views")}o(YQ,"importLRViews");function zQ(e,t,n,i,r){let a=he.DefinitionName.HeaderActions,s=he.PropertyName.header,l=e.definitions[a];if(typeof l=="object"){t[s].actions={};for(let u in l.properties){let p=l.properties[u];if(typeof p=="object"&&p.$ref){let g=hn(p.$ref),m=e.definitions[g],T=hn(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(he.PageTypeV4.ObjectPage,T),At(t[s].actions[u],i,e.definitions[T],r,[u.replace("/","??")]),Fo(t.header,"actions"),Fo(t,"header")}}}}o(zQ,"transferHeaderActions");function JQ(e,t,n,i){let r=e.jsonSchema.definitions,a={};for(let s of[he.DefinitionName.SelectionFields,he.DefinitionName.CompactFilters]){let l=r[s];typeof l=="object"&&l.properties&&Object.keys(l.properties).length&&(a=l.properties)}for(let s in a){let l=a[s];if(typeof l!="object"||l.$ref!==$+he.DefinitionName.CustomFilterField)continue;let u=n.createInstance(he.PageTypeV4.ListReport,he.DefinitionName.CustomFilterField),p=l.$ref.split($)[1];At(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}o(JQ,"importCustomFilterFields");function ZQ(e,t,n,i,r,a){if(At(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,he.DefinitionName.Header),At(t.header,e.manifest,e.jsonSchema.definitions[he.DefinitionName.Header],r,[]),zQ(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,he.DefinitionName.FilterBar),At(t.filterBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.FilterBar],r,[]),KQ(e,t.filterBar,n,i,r),JQ(e,t.filterBar,n,r),a===he.SchemaType.ListReport){let s=he.DefinitionName.Table,l=e.jsonSchema.definitions[s],u;l.$ref&&(s=l.$ref.split($)[1],l=e.jsonSchema.definitions[s],u=l.properties.columns.$ref.split($)[1]),t.table=n.createInstance(i,he.DefinitionName.Table);let p=pw(e.jsonSchema.definitions,s);At(t.table,e.manifest,l,r,[s,p]),_C(e,t,n,i,r,u),FC(t.table,e,n,i,r,u,p),YQ(e,t,n,i,r)}else a===he.SchemaType.AnalyticalListPage&&QQ(e,t,n,i,r)}o(ZQ,"addSettings");function Uc(e,t){if(nn(),!e.jsonSchema)return;if(!e.manifest[he.ManifestSection.ui5]||!e.manifest[he.ManifestSection.ui5].routing){se(e.logger,{severity:he.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let n=e.manifest[he.ManifestSection.ui5].routing.targets;if(!n){se(e.logger,{severity:he.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let i=new Ia,r=i.createPageInstance(he.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=sE(s);if("name"in s&&(l===he.PageTypeV4.ListReport||l===he.PageTypeV4.AnalyticalListPage)){ZQ(e,r,i,he.PageTypeV4.ListReport,a,t);break}}return r}o(Uc,"createListReportConfig");var ve=ne(le()),jc=require("@sap-ux/vocabularies-types/vocabularies/UI");function eq(e,t){var i;let n="boolean";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?e==="true"||e==="false":!1}o(eq,"isBoolean");function tq(e,t){var i;let n="number";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?!isNaN(parseFloat(e.toString())):!1}o(tq,"isNumber");function nq(e,t){let n=e.toString();return eq(n,t)?n==="true":tq(n,t)?parseFloat(n):e}o(nq,"convertValue");function iq(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=nq(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(iq,"importProperty");function dw(e,t,n){let i,r=tf(e.file,!1,n);if(r){let a=Py(r);i={},_c({fullSchema:t,schema:t,element:a,contextPath:[],config:i},iq)}return i}o(dw,"convertXmlFileToConfig");function ev(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=us(t||[],r,n,a),l;return s&&(l=dw(s,i,e.logger)),l}o(ev,"createCustomPageConfig");function od(e,t){var T;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=nf(t),u=(T=r.definitions)==null?void 0:T[l];if(!r||!u)return;let p=Pc(i,a),g=Cc(n||[],p,i,"fragment",t),m;if(g){let A={...u,definitions:r.definitions};m=dw(g,A,s)}return m}o(od,"createCustomFragmentConfig");function DC(e,t=!1,n){var r,a,s;let i=t?(r=e.split("<")[1])==null?void 0:r.slice(0,-1):e;if(n){let l=i.split(`@${n}`);return`${(a=l[0])==null?void 0:a.replace(/::/g,"/")}@${n}${(s=l[1])==null?void 0:s.replace(/::/g,"#")}`}return`${e==null?void 0:e.replace(/::/g,"/").replace(/::/g,"#")}`}o(DC,"getManifestId");function ad(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(ad,"getDefinitionId");function rq(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[ad(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(ve.DefinitionName.CustomColumnOP)>-1?s=ve.DefinitionName.CustomColumnOP:s=ve.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(ve.PageTypeV4.ObjectPage,s);At(g,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],a),Object.keys(g).length>0&&(n[i].table.columns[u]=g)}}}o(rq,"fillTableColumnsInConfig");function hw(e,t,n,i,r,a){if(typeof t=="object")for(let s in t.properties){let l=t.properties[s];if(typeof l=="object"&&l.$ref){let u=hn(l.$ref),p=u.split("<")[0],g;p.includes(ve.DefinitionName.CustomSectionActionOP)?g=i.actions:g=i[n].table.toolBar.actions,g[s]=r.createInstance(ve.PageTypeV4.ObjectPage,p),At(g[s],e.manifest,e.jsonSchema.definitions[u],e.routingId,[s],a),Object.keys(g[s]).length===0&&delete g[s]}}}o(hw,"fillSectionActionsInConfig");function oq(e,t,n,i,r,a){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageSectionForm}<${ad(a)}>`].properties.form.$ref.split($)[1],g=e.jsonSchema.definitions[l].properties.actions.$ref.split($)[1],m=e.jsonSchema.definitions[g];for(let T in m.properties){let A=m.properties[T],E=hn(A.$ref),O=e.jsonSchema.definitions[E];if(O.annotationType===jc.UIAnnotationTypes.DataFieldForAction||O.description==="Custom Action"){let F=hn(O.$ref)||E.split("<")[0];i[n].form.actions[T]=r.createInstance(ve.PageTypeV4.ObjectPage,F),At(i[n].form.actions[T],e.manifest,e.jsonSchema.definitions[F],e.routingId,[T.replace("/","??")],a),Object.keys(i[n].form.actions[T]).length===0&&delete i[n].form.actions[T]}}}}o(oq,"fillFormActionsInConfig");function gw(e,t,n,i,r,a){var u;let s=a||DC(i,!1,jc.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){n[i]={},n[i].table=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageTable);let p=`${ve.DefinitionName.ObjectPageTable}<${a?ad(a):i.replace("#","::")}>`;At(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ToolBar,{actions:{}});let g=e.jsonSchema.definitions[`${ve.DefinitionName.Actions}<${ad(s)}>`];hw(e,g,i,n,r,s),rq(e,l,n,i,r,s)}}o(gw,"fillTableInConfig");function aq(e,t,n,i,r){var l;let a=DC(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageForm,{actions:{}}),oq(e,s,i,n,r,a))}o(aq,"fillFormInConfig");function sq(e,t,n,i,r,a){let s=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split($)[1];if(At(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let u=od(e,s.fragmentName);s.controls=u}n[i]=s}o(sq,"fillCustomSubSectionInConfig");function yw(e,t,n,i,r,a){var s,l,u,p,g;for(let m in t){let T=t[m],A=m;if(m.includes(jc.UIAnnotationTerms.PresentationVariant)&&((s=T.$ref)!=null&&s.startsWith($+ve.DefinitionName.ObjectPageSectionTableV4))){let E=T.$ref.split($)[1];A=DC(E,!0,jc.UIAnnotationTerms.LineItem),gw(e,n,i,m,r,A)}else(l=T.$ref)!=null&&l.startsWith($+ve.DefinitionName.ObjectPageSectionTableV4)?gw(e,n,i,m,r):T.properties&&T.properties.subsections?(i[m]={subsections:{}},yw(e,T.properties.subsections.properties,n,i[m].subsections,r,m)):(u=T.$ref)!=null&&u.startsWith($+ve.DefinitionName.ObjectPageSectionForm)&&((p=T.$ref)!=null&&p.includes(`@${jc.UIAnnotationTerms.FieldGroup}::`))?aq(e,n,i,m,r):(g=T.$ref)!=null&&g.startsWith($+ve.DefinitionName.ObjectPageCustomSubSectionFragment)&&sq(e,T,i,m,r,a)}}o(yw,"fillSectionsInConfig");function cq(e,t,n,i){var a,s;let r=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(r)for(let l in r){let u=r[l];if("subSections"in u)continue;let p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionFragment);if(At(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),u.actions){p.actions=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageCustomSectionActions}<${ad(l)}>`];hw(e,m,l,p,i,l)}let g=u.template;if(g){let m=od(e,g);p.controls=m}n.sections[l]=p}}o(cq,"fillCustomSectionsInConfig");function lq(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,a=r&&"facets"in r?r.facets:void 0;if(a)for(let l in a){let u=a[l],p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomHeaderSectionFragment);At(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let T=od(e,g);p.controls=T}let m=u.templateEdit;if(m){let T=od(e,m);p.controlsEditMode=T}n.header.sections[l]=p}}o(lq,"fillCustomHeaderSectionsInConfig");function fq(e,t,n,i,r){var s,l;let a=e.definitions[ve.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let u in a.properties){let p=a.properties[u],g,m=(s=a.properties[u].$ref)==null?void 0:s.split($)[1];m&&(p=e.definitions[m],g=m.split("<")[0]),(g==null?void 0:g.includes(ve.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=n.createInstance(ve.PageTypeV4.ObjectPage,g),At(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(ve.FACETTITLEPREFIX)[1]))}}}o(fq,"fillHeaderFacets");function uq(e,t,n,i,r,a,s){let l=hn(e.$ref),u=t.definitions[l],p=hn(u.$ref||e.$ref),g=n.createInstance(ve.PageTypeV4.ObjectPage,p);if(g){let m=i[r]=g;At(m,a,t.definitions[p],s,[r.replace("/","??")]),Object.keys(m).length===0&&delete i[r]}}o(uq,"importActionSettingsOfReference");function mw(e,t,n,i,r,a,s){let l=e.definitions[a];if(typeof l=="object"){let u=t[s].actions={};for(let p in l.properties){let g=l.properties[p];typeof g=="object"&&g.$ref&&uq(g,e,n,u,p,i,r)}}}o(mw,"fillHeaderFooterActions");function pq(e,t,n){var a,s;let i=n.createPageInstance(ve.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageHeader),At(i.header,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageFooter),At(i.footer,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageLayout),At(i.layout,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageLayout],e.routingId,[]),At(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[ve.DefinitionName.Sections]&&(i.sections={},yw(e,e.jsonSchema.definitions[ve.DefinitionName.Sections].properties,r,i.sections,n)),cq(e,r,i,n),fq(e.jsonSchema,i,n,e.manifest,e.routingId),lq(e,r,i,n),mw(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.ObjectPageHeaderActions,ve.PropertyName.header),mw(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.FooterActions,ve.PropertyName.footer)),i}o(pq,"fillObjectPageConfig");function tv(e){if(nn(),!e.manifest[ve.ManifestSection.ui5]||!e.manifest[ve.ManifestSection.ui5].routing){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5]}});return}let t=e.manifest[ve.ManifestSection.ui5].routing.targets;if(!t){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let i=new Ia;return pq(e,n,i)}o(tv,"createObjectPageConfigV4");var Ke=ne(le());var VC=[],nv={};function dq(e,t){let n=e.target,i=t.target,r=Array.isArray(n),a=Array.isArray(i);return r&&a?n.length-i.length:!r&&!a?0:r?1:-1}o(dq,"routesSorter");function wC(e,t=[]){if(!Array.isArray(e))return e;let n=e;for(let i of t)n=n.filter(r=>!i.includes(r));return n[0]}o(wC,"resolveTarget");function gq(e){let t={};e=e.concat().sort(dq);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=wC(i.target,n),n.push(i.target)):a=i.target;for(let s of r){let l=s.split("(")[0];t[a]=t[a]?`${t[a]}.${l}`:l}}return t}o(gq,"populateAssociations");function mq(e,t,n){let i;return e.name?e.name===Ke.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ke.PageTypeV4.FPMCustomPage:e.name.endsWith(Ke.PageTypeV4.ListReport)||e.name.endsWith(Ke.PageTypeV4.AnalyticalListPage)?i=Ke.PageTypeV4.ListReport:e.name.endsWith(Ke.PageTypeV4.ObjectPage)?i=Ke.PageTypeV4.ObjectPage:i=Ke.PageTypeV4.CustomPage:"viewId"in e?i=Ke.PageTypeV4.CustomPage:(se(t,{severity:Ke.LogSeverity.Error,message:q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ke.MANIFESTPATH,range:[`${Ke.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ke.ViewTypes&&"viewName"in e&&(i=Ke.PageTypeV4.CustomPage)),i}o(mq,"determinePageType");function hq(e){let t=e.target.viewId||e.target.id,n=_t(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Ke.PageTypeV4.CustomPage)return;let i=Object.keys(e.schemas).find(r=>r.includes(n))||Object.keys(e.schemas).find(r=>r.includes(n.slice(0,-1)))||Object.keys(e.schemas).find(r=>r.includes(e.page.pageType));if(i){if(e.page.pageType===Ke.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=tv(r)}else if(e.page.pageType===Ke.PageTypeV4.FPMCustomPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger,routingId:e.id,fragments:e.extensionFiles.fragments,views:e.extensionFiles.views};e.page.config=ev(r)}else if(e.templateType===Ke.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Uc(r,Ke.SchemaType.ListReport)}else if(e.templateType===Ke.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Uc(r,Ke.SchemaType.AnalyticalListPage)}else if(e.templateType===Ke.TemplateType.FreestylePageV4&&e.page.pageType===Ke.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=ou(e.target)===Ke.TemplateType.AnalyticalListPageV4?Ke.SchemaType.AnalyticalListPage:Ke.SchemaType.ListReport;e.page.config=Uc(r,s)}}}o(hq,"convertSettingsToConfig");function yq(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");VC.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");VC.push(t[t.length-1])}}o(yq,"updateUnhandledControllers");function vq(e,t){if(e.options){e.options.settings.variantManagement&&(t.variantManagement=e.options.settings.variantManagement),t.navigation={};for(let n in e.options.settings.navigation){let i=e.options.settings.navigation[n];t.navigation[n]=i.detail}}}o(vq,"setVariantManagmentAndNavigation");function Tq(e,t,n){var i,r;if(e.options){t.entitySet=(i=e.options.settings)==null?void 0:i.entitySet,t.contextPath=(r=e.options.settings)==null?void 0:r.contextPath;let{entitySet:a,entityType:s}=Vc(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(a==null?void 0:a.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}o(Tq,"setEntitySetEntityTypeContextPath");function Eq(e,t,n){var i,r;if("viewId"in e)t.view={id:e.viewId,name:e.viewName,...e.viewType&&{viewType:e.viewType},...e.viewPath&&{path:e.viewPath},...e.path&&{path:e.path}};else if([Ke.PageTypeV4.CustomPage,Ke.PageTypeV4.FPMCustomPage].includes(n)){let a=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName;t.view={...e.id&&{id:e.id},...a&&{name:a},...e.name&&{template:e.name},...e.viewType&&{viewType:e.viewType}}}}o(Eq,"evaluateCustomPageSettings");function bq(e,t,n,i){let r=e.targets[t],a=mq(r,i.logger,t),s={pageType:a};if(Tq(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),nv[t]&&nv[t].indexOf(".")!==-1){let p=nv[t].split(".");s.navigationProperty=p[p.length-1]}Eq(r,s,a),vq(r,s),yq(r);let l=e.routes.find(p=>(p==null?void 0:p.target)&&p.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),n[t]=s;let u={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};hq(u)}o(bq,"getSinglePageAndConfig");function vw(e){let t={},n=e.manifest[Ke.ManifestSection.ui5].routing;if(!n||!n.routes){let i=q.t("NOROUTING");return se(e.logger,{severity:Ke.LogSeverity.Error,message:i,location:{path:Ke.MANIFESTPATH,range:[Ke.ManifestSection.ui5]}}),t}nv=gq(n.routes||[]);for(let i in n.targets)bq(n,i,t,e);return t}o(vw,"getPagesAndConfigs");function Tw(e){let t;if(e&&e.routes&&e.routes.length>0){for(let n of e.routes)if(n.pattern.startsWith(":?query:")){t=n;break}else if(n.pattern.indexOf("/")===-1){t=n;continue}return wC(t?t.target:e.routes[0].target)}else return}o(Tw,"getHome");function Ew(e){let t=e==null?void 0:e.config;return t?{...t.flexibleColumnLayout&&{flexibleColumnLayout:t.flexibleColumnLayout},...t.viewType&&{viewType:t.viewType},...t.viewPath&&{path:t.viewPath},...t.path&&{path:t.path}}:{}}o(Ew,"getSettings");function Cf(e,t){let n=e[Ke.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];a.name===t&&(i[r]=a)}return i}o(Cf,"getPages");var MC=class MC extends Ka{constructor(t){nn();let n=new rf,i=_t(Ke.SchemaType.Application),r=t.appSchemas[i.filename];At(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,Tw(t.manifest[Ke.ManifestSection.ui5].routing),vw(t),{...Ew(t.manifest[Ke.ManifestSection.ui5].routing),...n}),this.unhandledControllers=VC}};o(MC,"V4AppProvider");var Pf=MC;var bw=require("fs"),$c=require("path"),Aw=ne(le()),sd=ne(le());var Sw=o((e,t,n=__dirname)=>{let i;switch(t){case sd.SchemaType.Application:{i=`${sd.SchemaType.Application}${e.toUpperCase()}.json`;break}case sd.SchemaType.FPMCustomPage:{i=`${sd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,$c.join)(n,"schemas",e,i);if(n.endsWith((0,$c.join)("specification","packages","specification")))return(0,$c.join)(n,"dist","schemas",e,i);if(n.endsWith((0,$c.join)("src","specification")))return(0,$c.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,$c.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),Aq=o(async e=>new Promise((t,n)=>{(0,bw.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),iv=o(async(e,t)=>{try{let n=Sw(e||Aw.FioriElementsVersion.v4,t,__dirname);return await Aq(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function Sq(e,t){let n={},i=[];switch(i=[fe.SchemaType.Application],e){case fe.TemplateType.ListReportObjectPageV4:case fe.TemplateType.AnalyticalListPageV4:i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage,fe.SchemaType.FPMCustomPage);break;case fe.TemplateType.FreestylePageV4:i.push(fe.SchemaType.FreestylePage),t===fe.FioriElementsVersion.v4&&i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage,fe.SchemaType.FPMCustomPage);break;case fe.TemplateType.ListReportObjectPageV2:i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage);break;case fe.TemplateType.AnalyticalListPageV2:i.push(fe.SchemaType.AnalyticalListPage,fe.SchemaType.ObjectPage);break;case fe.TemplateType.OverviewPageV2:i.push(fe.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=_t(r);n[a.filename]=await iv(t,r)}return n}o(Sq,"getGenericSchemas");function Cw(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ri(fe.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(Cw,"getAnnotationsForUi");function cd(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(cd,"getEntitySetByEntitySetName");function Pq(e,t){var r;let n=e.target.targetType,i=e.objectPath[1];for(let a=2;a<e.objectPath.length;a++){let s=e.objectPath[a];if(i&&s._type==="NavigationProperty"){let l=s.containsTarget?`${s.name}/${s.partner}`:s.name,u=(r=i.navigationPropertyBinding)==null?void 0:r[l];i=t.entitySets.find(p=>p.name===(u==null?void 0:u.name))}}return{entityType:n,entitySet:i}}o(Pq,"resolveNavigationProperty");function Vc(e,t,n,i){var l,u,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),a,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(a=(u=r.target)==null?void 0:u.entityType,s=r==null?void 0:r.target):((p=r==null?void 0:r.target)==null?void 0:p._type)==="NavigationProperty"?{entityType:a,entitySet:s}=Pq(r,e):se(i,{severity:fe.LogSeverity.Error,message:q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:fe.MANIFESTPATH}}),n&&!a&&se(i,{severity:fe.LogSeverity.Error,message:q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(Vc,"getEntityTypeEntitySetFromContextPath");function Pw(e,t,n){let i=zu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=cd(a,e.serviceAVT);s||se(e.logger,{severity:fe.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=_t(fe.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),u=_t(fe.SchemaType.ObjectPage);n[l.filename]=ld(e,t[u.filename])}}o(Pw,"generateObjectPageSchemasV2");function Cq(e,t,n){var l,u;let i=Cf(e.manifest,fe.v4.FE_TEMPLATE_V4_LIST_REPORT),r=Cf(e.manifest,fe.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let g=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(u=a[p].options.settings)==null?void 0:u.contextPath,{entitySet:T,entityType:A}=Vc(s,m,g,e.logger);e.entityType=A,e.entitySet=T;let E=_t(fe.SchemaType.ListReport,p),O=_t(fe.SchemaType.ListReport);e.templateType===fe.TemplateType.FreestylePageV4&&(e.templateType=ou(a[p])),n[E.filename]=ep(e,t[O.filename],a[p].name,m)}}o(Cq,"generateListReportSchemasV4");function xq(e,t,n){var r;let i=zu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=cd(s,e.serviceAVT);let l=_t(fe.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=_t(fe.SchemaType.ListReport);t[l.filename]=fd(e,n[u.filename])}}o(xq,"generateAppSchemaV2LR");function Iq(e,t,n){var a,s;let i=Cf(e.manifest,fe.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let u=(a=i[l].options.settings)==null?void 0:a.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:g,entitySet:m}=Vc(r,p,u);e.entitySet=m,e.entityType=g;let T=_t(fe.SchemaType.ObjectPage,l),A=_t(fe.SchemaType.ObjectPage),E=_t(fe.SchemaType.FPMCustomPage);n[T.filename]=Np(e,t[A.filename],p,t[E.filename])}}o(Iq,"generateObjectPageSchemasV4");function Oq(e,t,n,i){var a;let r={};if(i===fe.TemplateType.ListReportObjectPageV2&&n)xq(e,r,t),Pw(e,t,r);else if(i===fe.TemplateType.AnalyticalListPageV2&&n){let s=zu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let u=s[l].entitySet;e.entitySet=cd(u,e.serviceAVT);let p=_t(fe.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||u),g=_t(fe.SchemaType.AnalyticalListPage);r[p.filename]=ud(e,t[g.filename])}Pw(e,t,r)}else if(i===fe.TemplateType.OverviewPageV2){let s=_t(fe.SchemaType.OverviewPage),l=_t(fe.SchemaType.OverviewPage);r[s.filename]=pd(t[l.filename],e.manifest)}return{...t,...r}}o(Oq,"generateAppSchemasV2");function Nq(e,t,n){if(!qs(e.featureToggles,fe.Features.BuildingBlocks))return;let i=Cf(e.manifest,fe.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=us(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let u=_t(fe.SchemaType.FPMCustomPage,void 0,l),p=_t(fe.SchemaType.FPMCustomPage);n[u.filename]=Dc(t[p.filename],s,e.serviceAVT,e.logger)}}}o(Nq,"generateCustomPageSchemasV4");function Lq(e,t,n){let i={};return n&&(Cq(e,t,i),Iq(e,t,i),Nq(e,t,i)),{...t,...i}}o(Lq,"generateAppSchemasV4");async function xw(e,t,n){let i=await Sq(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===fe.FioriElementsVersion.v4?Lq(e,i,t):Oq(e,i,t,n)}o(xw,"generateAppSchemas");function Rq(e){let t,n=[];switch(e.templateType){case fe.TemplateType.ListReportObjectPageV2:case fe.TemplateType.AnalyticalListPageV2:t=new Ih(e);break;case fe.TemplateType.AnalyticalListPageV4:case fe.TemplateType.ListReportObjectPageV4:case fe.TemplateType.FreestylePageV4:t=new Pf(e);break;case fe.TemplateType.OverviewPageV2:t=new Lh(e);break;default:t=new Pf(e);break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in r)n.push({dataSourceUri:a,fileContent:JSON.stringify(r[a],null,4)})}return n}o(Rq,"importConfigs");function Iw(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===fe.SchemaType.Application?r=`${fe.DirName.Schemas}/${fe.FileName.App[0].toUpperCase()}${fe.FileName.App.slice(1)}`:r=`${fe.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o(Iw,"getFileList");async function kC(e){var E,O;nn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new lu().doesUi5VersionFitDistTags((O=(E=t["sap.ui5"])==null?void 0:E.dependencies)==null?void 0:O.minUI5Version,i);let u=pE(t),p=Io(n,i),g=Cw(p),m=dE(t,u,i),A=await xw({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return Iw(A)}o(kC,"importProjectSchema");async function UC(e){var K,j;nn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new lu().doesUi5VersionFitDistTags((j=(K=t["sap.ui5"])==null?void 0:K.dependencies)==null?void 0:j.minUI5Version,i);let p=pE(t),g=MF(t),m=Io(n,i),T=dE(t,p,i),A={templateType:T,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},E=Cw(m),O=await xw(A,E,T),U=Rq({manifest:t,flexChanges:s,appSchemas:O,templateType:T,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return Iw(O,U)}o(UC,"importProjectSchemaAndConfig");var Fq=["header","sections","footer"];function _q(e,t,n,i){t.properties[n][oe.SchemaTag.artifactType]=oe.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=oe.ControlType.Section;break;case"ObjectPageSubSectionV2":r=oe.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=oe.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=oe.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=oe.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=oe.ControlType.ObjectPageHeaderSection;break}r&&(mt(e,t,n),t.properties[n][oe.SchemaTag.controlType]=r)}o(_q,"addFlexChangeForSection");function Dq(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Eo.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=fm(a,r.serviceAVT);if(!l)return;let p=a.Label||s,g=`ObjectPageHeaderAction<${dt(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${Eo.UIAnnotationTerms.Identification}`,`/@${Eo.UIAnnotationTerms.Identification}`);t.definitions[g][oe.SchemaTag.annotationPath]=`/${m}`,t.definitions[g][oe.SchemaTag.actionType]=oe.ActionType.Annotation,t.definitions[g].description=p,t.definitions[g][oe.SchemaTag.keys]=[{name:oe.SchemaKeyName.action,value:s}],u&&(t.definitions[g][oe.SchemaTag.target]=u),i.properties[l]={$ref:`${$}${g}`}}})}o(Dq,"addHeaderActionCallBackV2");function Vq(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Eo.UIAnnotationTypes.DataFieldForAction){let a=la(r).split("::").splice(1).join("::"),s=bi(r,e),l=dt(`${oe.DefinitionName.ObjectPageFooterAction}<${a}>`),u=r.fullyQualifiedName.replace(`@${Eo.UIAnnotationTerms.Identification}`,`/@${Eo.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[oe.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${u}`}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${$}${l}`}}})}o(Vq,"addFooterActionCallBackV2");function wq(e,t,n,i,r,a,s,l){let u,p;if(a.ID&&a.Label?u=a.ID+a.Label.replace(/\s+/g,""):a.ID?u=a.ID:a.Label&&(u=a.Label.replace(/\s+/g,"")),u?p=`${oe.DefinitionName.CustomColumns}<${n}><${s}><${u}>`:p=`${oe.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let g=`${oe.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[g]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let m=[],T=r==null?void 0:r.entityTypes.find(E=>E.name===i),A=vc(t[oe.ManifestSection.generic].pages,n,m);return gl(e,T,A,t,l,p,g,a.ID),p}o(wq,"ensureCustomColumnDefinitionExists");function gd(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&_q(e,t,"visible",n)}o(gd,"addAppSchemaDefinition");function Mq(e,t,n){e.properties[t]={$ref:`${$}${n}`}}o(Mq,"addSectionReference");function dd(e,t,n,i){let r=dt(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=$+t,i.definitions[r].properties.toolBar.$ref=`${$}ObjectPageToolBar<${t}>`,i.definitions[r][oe.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=oe.FACETTITLEPREFIX+n.ID,i.definitions[r][oe.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=oe.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${$}QuickVariantSelectionOP<${t}>`,i.definitions[`QuickVariantSelectionOP<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariantSelectionOP)),i.definitions[`QuickVariant<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariant)),i.definitions[`QuickVariantSelectionOP<${t}>`].properties.variants.patternProperties["^[0-9]+$"].$ref=`${$}QuickVariant<${t}>`,Ba(n.entityType,i,`QuickVariant<${t}>`)}o(dd,"addTableDefinition");function kq(e,t,n,i,r,a){if(i.base!==oe.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=No(n,i,t);let u=n.definitions[l];gd(n,u,a,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[oe.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${$}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${$}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${$}ObjectPageAnalyticalTable<${t}>`},{$ref:`${$}ObjectPageGridTable<${t}>`},{$ref:`${$}ObjectPageTreeTable<${t}>`}],u[oe.SchemaTag.annotationPath]=i.annotationPath,Ua(i,u,t),dd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),dd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),dd("ObjectPageGridTable",t,i,n),dd("ObjectPageTreeTable",t,i,n),dd("ObjectPageAnalyticalTable",t,i,n);let p,g=E0(i.entityType,e.serviceAVT);g&&(p=wq(n,e.manifest,g.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let T=r[m];T.base===oe.FacetBase.LineItem&&(T.ID===s||m.includes(s))&&dl(!0,n,T.target,T.entityType,T.ID||m,p)}}o(kq,"handleLineItem");function Uq(e,t,n,i,r,a=!1){e.definitions[t]=No(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";gd(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[oe.SchemaTag.isViewNode]=!0}o(Uq,"handleSubSection");function jq(e,t,n,i,r){e.definitions[t]=No(e,n,i);let a=e.definitions[t];gd(e,a,r,"ObjectPageSectionChartV2")}o(jq,"handleSectionChart");function Ow(e,t,n,i,r,a){e.definitions[t]=No(e,n,i);let s=e.definitions[t];gd(e,s,r,a||"CommonHeaderFacetSettings"),s[oe.SchemaTag.annotationPath]=n.annotationPath,s[oe.SchemaTag.isViewNode]=!0,s[oe.SchemaTag.dataType]=tc(n==null?void 0:n.target)}o(Ow,"handleHeaderFacet");function $q(e,t,n){let i=e.definitions[t],r=i[oe.SchemaTag.dataType]=tc(n==null?void 0:n.target);r==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:r==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}o($q,"addDataPointHeaderFacetDataType");function Bq(e,t,n,i,r){e.definitions[t]=No(e,n,i);let a=e.definitions[t];return gd(e,a,r,"ObjectPageSectionFormV2"),a[oe.SchemaTag.annotationPath]=n.annotationPath,a[oe.SchemaTag.isViewNode]=!0,a}o(Bq,"handleFormSection");function Hq(e,t,n){let i=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[oe.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[oe.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[oe.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[oe.FacetBase.Form,"ObjectPageHeaderSectionForm"],[oe.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[oe.FacetBase.LineItem,"ObjectPageSectionTableV2"],[oe.FacetBase.Chart,"ObjectPageSectionChartV2"],[oe.FacetBase.Address,"ObjectPageSectionAddressV2"],[oe.FacetBase.Contact,"ObjectPageSectionContactV2"],[oe.FacetBase.Form,"ObjectPageSectionFormV2"],[oe.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[oe.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[oe.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[oe.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[oe.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[oe.FacetBase.Form,"ObjectPageSubSectionFormV2"],[oe.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(Hq,"getSectionType");function Gq(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Eo.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(Gq,"getReferenceKey");function Lw(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=Hq(l.base,a,s),p=Gq(l,n,u),g=`${u}<${p}>`;switch(Mq(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,Uq(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let T in l.facets)Lw(e,l.facets,T,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{kq(e,p,r,l,t,u),yl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{jq(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=Bq(r,g,l,p,u);cm(oe.SectionType.Section,l,m,r,oe.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{cu(l,p,i,r,oe.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{cu(l,p,i,r,oe.SectionType.Section,oe.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{Ow(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{Ow(r,g,l,p,u),$q(r,g,l);break}default:i.properties[n]=No(r,l,p)}}o(Lw,"addSection");function Nw(e,t,n,i,r,a=!1){if(e)for(let s in t)Lw(i,t,s,n,r,!1,a)}o(Nw,"addSectionsFromFacets");function Rw(e,t,n){var g,m,T,A,E,O;let i=t.definitions[oe.DefinitionName.Sections];i[oe.SchemaTag.isViewNode]=!0,(g=e.entitySet)!=null&&g.entityType&&(i[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Eo.UIAnnotationTerms.Facets}`);let r=t.definitions[oe.DefinitionName.HeaderSections];if(r[oe.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Eo.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=Ug((T=e.entitySet)==null?void 0:T.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),s=kg((A=e.entitySet)==null?void 0:A.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,u=s&&!!Object.keys(s).length;if(!l&&!u)return;for(let F in n){let U=n[F];(O=(E=e.entitySet)==null?void 0:E.name)!=null&&O.includes(U.entitySet)?(Nw(l,a,i,e,t),Nw(u,s,r,e,t,!0)):Rw(e,t,U.pages)}let p=t.definitions.CustomSections;for(let F in p.properties)i.properties[F]=p.properties[F]}o(Rw,"addSections");function Wq(e,t,n){dm(e,n),pm(e,n,t,Dq,void 0,!0)}o(Wq,"addHeader");function Kq(e,t,n,i){let r=kF(t,n,i,void 0,!0);r&&P0(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(Kq,"addRelatedFacetKeysType");function ld(e,t){var s;nn();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[oe.PropertyName.sections]={$ref:$+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[oe.ManifestSection.generic].pages;return a?(Wq(n,e,r),n.definitions[oe.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Rw(e,n,a),Kq(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[oe.SchemaTag.isViewNode]=!0):delete n.properties[oe.PropertyName.sections]),um(n,e,oe.FioriElementsVersion.v2,Vq,a),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.CommonHeaderFacetSettings,delete n.definitions.ObjectPageHeaderSection,delete n.definitions.ObjectPageCustomHeaderSectionFragment,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTableWithMultiSelect,delete n.definitions.ObjectPageResponsiveTableWithInlineDelete,delete n.definitions.ObjectPageAnalyticalTable,delete n.definitions.ObjectPageTreeTable,delete n.definitions.ObjectPageGridTable,delete n.definitions.ObjectPageToolBar,delete n.definitions.ObjectPageToolBarActions,delete n.definitions.ObjectPageForm,delete n.definitions.ObjectPageFormFields,delete n.definitions.ObjectPageFormActions,delete n.definitions.FieldPathOP,Ro(n,Fq),n):(se(e.logger,{severity:oe.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:oe.MANIFESTPATH,range:[oe.ManifestSection.generic]}}),n)}o(ld,"generateObjectPageSchemaV2");var ti=ne(le());var xf=require("@sap-ux/vocabularies-types/vocabularies/UI");var Qq=["filterBar","table","footer"],qq=ti.UIVOCABULARYALPHADOT.substring(1);function jC(e,t,n,i){Ba(e,n,"QuickVariant"),b0(n,"QuickVariantX",t),A0(i,n,"QuickVariantX")}o(jC,"addEnumForVariantPaths");function Yq(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[xf.UIAnnotationTerms.SelectionPresentationVariant,xf.UIAnnotationTerms.SelectionVariant,xf.UIAnnotationTerms.PresentationVariant];su(e,r,i)}o(Yq,"addEnumForFilterBarAnnotationPath");function zq(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(xf.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(xf.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(qq,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(se(n,{severity:ti.LogSeverity.Warning,message:q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(zq,"getPresentationVariantForLineItem");function Jq(e,t,n){if(rm(t,"annotationPath",n))return;let i=zq(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=au("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||se(n,{severity:ti.LogSeverity.Warning,message:q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(Jq,"getLineItemAnnotation");function fd(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:$+ti.DefinitionName.LineItems},r=$+ti.DefinitionName.ToolBarLR;TE.forEach((u,p)=>{n.properties.table.anyOf[p.toString()].$ref=$+u;let g=u.replace("<LineItems>",""),m=JSON.parse(JSON.stringify(t.definitions[g]));m.properties.columns=i,m.properties.toolBar.$ref=r,n.definitions[u]=m});let{entityType:a,uIAnnotations:s}=im(e);if(s){let u=[],p=_l(e.manifest[ti.ManifestSection.generic].pages,u);ml(n);let g=Jq(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let T=pr(a.fullyQualifiedName,g.term,g.qualifier);TE.forEach(A=>{n.definitions[A][ti.SchemaTag.annotationPath]=T})}dl(!1,n,g,a);let m=s.SelectionFields;if(tm(n,m,a),yl(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],g0(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return se(e.logger,{severity:ti.LogSeverity.Error,message:q.t("NOLR"),location:{path:ti.MANIFESTPATH,range:[ti.ManifestSection.generic]}}),n;gl(n,a,p,e.manifest,e.fragments),jC(a,e.entitySet,n,e.serviceAVT),Yq(a,n,ti.DefinitionName.ListReportFilterBar),S0(a,n,ti.DefinitionName.MultiEditV2),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return Ro(n,Qq),n}o(fd,"generateListReportSchemaV2");var Zt=ne(le());var Zq=["filterBar","keyPerformanceIndicators","chart","table","footer"];function eY(e,t,n){var E;let i=(E=e==null?void 0:e.component)==null?void 0:E.settings;if(rm(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(O){let F=O+(r?"#"+r:"");return t[F]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let O=r?q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return se(n,{severity:Zt.LogSeverity.Error,message:O}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(O){return p=p||au("LineItem",O),g=g||au("Chart",O),p&&g}),p=p||"LineItem",g=g||"Chart";let m=t[p],T=t[g],A=(m||i.quickVariantSelectionX?0:1)+(T?0:2);if(A>0){let O=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][A-1],F=q.t(O);se(n,{severity:Zt.LogSeverity.Warning,message:F})}return{lineItemAnnotation:m,chartAnnotation:T}}o(eY,"getLineItemAndChartAnnotation");function tY(e,t){let n=e.definitions[Zt.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Zt.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(tY,"addChart");function ud(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[Zt.PropertyName.table].anyOf[0].$ref=$+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${$}${Zt.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${$}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[Zt.PropertyName.table].anyOf[1].$ref=`${$}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${$}${Zt.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${$}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[Zt.PropertyName.table].anyOf[2].$ref=`${$}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${$}${Zt.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${$}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,d0(n.definitions.TableColumnExtensionTypeV2.enum,[Zt.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=im(e);if(s){ml(n);let l=[],u=wl(e.manifest[Zt.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=eY(u,s,e.logger);p&&s0.forEach(T=>{n.definitions[T][Zt.SchemaTag.annotationPath]=pr(a.fullyQualifiedName,p.term,p.qualifier)}),dl(!1,n,p,a),g&&tY(n,g);let m=s.SelectionFields;if(tm(n,m,a),yl(n,a),!u)return se(e.logger,{severity:Zt.LogSeverity.Error,message:q.t("NOLR"),location:{path:Zt.MANIFESTPATH,range:[Zt.ManifestSection.generic]}}),n;gl(n,a,u,e.manifest,e.fragments),jC(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 Ro(n,Zq),n}o(ud,"generateAnalyticalListReportSchemaV2");function nY(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let r=i.$ref.split("/");return r[r.length-1]})}o(nY,"getCardDefinitionNames");function iY(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),r=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(r).filter(u=>i.includes(r[u].dataSource)));let s=e.definitions;s.CardModel={type:"string"},fa(a,s.CardModel);let l=nY(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=$+"CardModel"}}o(iY,"addModelsEnum");function Fw(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},iY(n,t),n}o(Fw,"generateOverviewPageSchemaV2");var Rs=ne(le());function $C(e,t,n,i,r,a){nn();let s=Io(e,t),l={templateType:a,fioriElementsVersion:Rs.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=cd(r,l.serviceAVT),l.entitySet||se(l.logger,{severity:Rs.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o($C,"prepareGenerationV2");function BC(e,t,n,i,r,a){let s=$C(n,a,i,r,t,Rs.TemplateType.ListReportObjectPageV2);return ld(s,e)}o(BC,"generateObjectPageInterfaceV2");function HC(e,t,n,i,r,a){let s=$C(n,a,i,r,t,Rs.TemplateType.ListReportObjectPageV2);return fd(s,e)}o(HC,"generateListReportInterfaceV2");function GC(e,t,n,i,r,a){let s=$C(n,a,i,r,t,Rs.TemplateType.AnalyticalListPageV2);return ud(s,e)}o(GC,"generateAnalyticalListPageInterfaceV2");function pd(e,t){return Fw(e,t)}o(pd,"generateOVPInterfaceV2");var we=ne(le());var md=o(e=>({flexChanges:[],manifest:{[we.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:we.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:we.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function _w(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===we.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}o(_w,"getClassesForSingleSection");function Dw(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],_w(n,i,t),Dw(n,t)}}o(Dw,"getSubsectionClasses");function rY(e,t,n){let i;for(let r in e.sections)i=t.sections[r],_w(i,r,n),Dw(i,n)}o(rY,"getExportClassesForSections");function oY(e,t){let n=_l(t.manifest[we.ManifestSection.generic].pages,e);if(!n){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(oY,"findV2Page");function WC(e,t){let n=Kg(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(WC,"calculateBaseId");function Vw(e,t,n=!1){let i=md(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let a=[],s=oY(a,e),l=new _i,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:WC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};fs(p,u,[],[],e.jsonSchema)}return i}o(Vw,"exportListReportPage");function ww(e,t,n=!1){let i=e.page.config,r=md(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=wl(e.manifest[we.ManifestSection.generic].pages,a,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new _i,u=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:WC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};fs(p,u,[],[],e.jsonSchema)}return r}o(ww,"exportAnalyticalListPage");function Mw(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=md(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=vc(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return se(e.logger,{severity:we.LogSeverity.Error,message:q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let u=new _i,p=u.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&rY(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:WC(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};fs(g,p,[],[],e.jsonSchema)}}return a}o(Mw,"exportObjectPage");var kw=o(e=>{let t=md();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new _i,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Ju(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),aY=o((e,t,n)=>{var s;let i=md();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new vm,e);r.settings=Object.assign(new Xa,e.settings);for(let l in n.definitions.AppSettings.properties){let u=zn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),g=Bn(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],ja(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&CE(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function Uw(e,t){if(e[we.SchemaType.ListReport])return Vw(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return Mw(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return kw(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return aY(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return ww(e[we.SchemaType.AnalyticalListPage],t)}o(Uw,"exportPageV2");function KC(e,t,n=!1){if(e[we.SchemaType.ListReport])return Vw(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return Mw(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return kw(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return ww(e[we.SchemaType.AnalyticalListPage],t,n)}o(KC,"exportConfigEntityByPathV2");var If=ne(le()),$w=require("@sap-ux/vocabularies-types/vocabularies/UI");function jw(e,t,n=!0){n?(e.dependencies||(e.dependencies={}),e.dependencies.libs||(e.dependencies.libs={}),e.dependencies.libs[t]===void 0&&(e.dependencies.libs[t]={})):e.dependencies&&e.dependencies.libs&&e.dependencies.libs[t]!==void 0&&delete e.dependencies.libs[t]}o(jw,"updateDependencyLib");function rv(e){let t=e;if(e.indexOf("<")>-1){t=e.substring(e.indexOf("<")+1,e.length-1);let n=e.substring(0,e.lastIndexOf("::")).replace(/::/g,"/");n&&(t=`${n}/${t}`)}return t}o(rv,"extractLastIdPart");function Bw(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return se(i,{severity:If.LogSeverity.Error,message:q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(If.PropertyName.sections),s=a>-1?rv(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${$w.UIAnnotationTerms.LineItem}`,u=n.eventHandler===!0?!0:void 0,p={target:t.pageNameArray[0],targetEntity:l,position:n.position,name:e,...n.header&&{header:n.header},...n.width&&{width:n.width},...n.availability&&{availability:n.availability},...u&&{eventHandler:u}},g={customExtension:If.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return XC(g),!0}o(Bw,"createNewCustomColumn");var Fs=ne(le());var Gw=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),Hw=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function sY(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(sY,"initializeRouting");function cY(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(cY,"setTargetOptions");function lY(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Fs.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(lY,"calculateQueryPattern");function Ww(e,t,n,i,r){if(r){e.push(...r.split("/")),e.shift();return}e.unshift(t);let a;for(let s in n){if(typeof n[s].navigation=="object"){let l=Object.keys(n[s].navigation).find(u=>n[s].navigation[u].route===i);l&&(t=l,a=n[s])}if(a){Ww(e,t,n,s);return}}}o(Ww,"fillNavigationParts");function fY(e){let t={},n=e==null?void 0:e.split("/");return n&&n.length>0&&n.forEach(i=>{let r=i.substring(0,i.indexOf("({")),a=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[r]=a}),t}o(fY,"fillParentKeys");function uY(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(cY(n,a,s),s!=null&&s.route&&!i.routes.some(u=>u.name===s.route)){let u=l==null?void 0:l.routePattern;if(!u){let p=[];Ww(p,a,t,r,l==null?void 0:l.contextPath);let g=fY(e.routePattern);u=lY(p,l,g)}i.routes.push(Gw(u,s.route,s.route))}}}o(uY,"handlePageNavigation");function pY(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(r=>r.name===n);i!==-1&&e.routes.splice(i,1)}}o(pY,"removeDeletedPages");function dY(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=Hw({contextPath:e.contextPath},e.variantManagement)),t.options.settings.contextPath=e.contextPath):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.contextPath,e.entitySet?(t.options||(t.options=Hw({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(a=(r=t.options)==null?void 0:r.settings)==null||delete a.entitySet}o(dY,"transferEntitySetandContextPath");function gY(e,t,n){let i=e.routes.find(r=>r.target&&r.target.indexOf(t)>-1);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}o(gY,"updateRouteLayout");function mY(e,t,n,i){return e.pageType&&![Fs.PageTypeV4.CustomPage,Fs.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:`sap.fe.templates.${i[n].pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Fs.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{settings:{viewName:e.view.name}}}),t}o(mY,"fillTarget");function Kw(e,t,n){var r,a;let i=sY(n[Fs.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(Gw(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=mY(u,l,s,t),dY(u,l),l&&!u.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(a=(r=l==null?void 0:l.options)==null?void 0:r.settings)!=null&&a.navigation&&(l.options.settings.navigation={}),uY(u,t,l,i,s),gY(i,s,u),i.targets[s]=l}return pY(i,t),i}o(Kw,"transformRoutingV4");var Ii=ne(le());var Xw=[Ii.FlexibleColumnLayoutAggregations.BeginColumnPages,Ii.FlexibleColumnLayoutAggregations.MidColumnPages,Ii.FlexibleColumnLayoutAggregations.EndColumnPages],Qw=o((e,t,n,i=[],r=0)=>{var p;let a=e.routing.routes.find(g=>g.name===n);if(!a)return;typeof a.target=="string"&&(a.target=r<=2?[...i,a.target]:[a.target]);let s=e.routing.targets[n],l=(p=t.pages)==null?void 0:p[n];if(!l)return;"controlAggregation"in l?s.controlAggregation=l.controlAggregation:Xw[r]?s.controlAggregation=Xw[r]:s.controlAggregation=Ii.FlexibleColumnLayoutAggregations.EndColumnPages;let u=a.pattern.replace(":?query:","");if(u?s.contextPattern=u.startsWith("/")?u:`/${u}`:s.contextPattern="",l.navigation){r++;for(let g in l.navigation)Qw(e,t,l.navigation[g].route,a.target,r)}},"applyFCLRouting"),hY=o((e,t)=>{e.routing.config.routerClass=Ii.v4.FIORI_FCL_ROUTER_CLASS,Qw(e,t,t.home);let n={viewName:Ii.FIORI_FCL_ROOT_VIEW_NAME,type:Ii.ViewTypes.XML,async:!0,id:Ii.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,jw(e,Ii.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),yY=o(e=>{var t;e.rootView&&e.rootView.viewName===Ii.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Ii.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),qw=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?hY(e,t):yY(e)},"updateFcl");var ie=ne(le()),hd=require("@sap-ux/vocabularies-types/vocabularies/UI");var Yw=ne(Xs()),ov=ne(le());function vY(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(vY,"isExportValueEquals");function TY(e,t){var s;let{element:n,schema:i,parent:r,contextPath:a}=e;if(delete n.attributes[t],((s=i.metadata)==null?void 0:s.type)===ov.MacrosPropertyType.Property&&Object.keys(n.attributes).length===0&&(r!=null&&r.element.elements)){let l=a[a.length-1];l&&r.element.elements.splice(l.index,1)}}o(TY,"deleteProperty");function zw(e,t,n,i){var u,p;let{contextPath:r,fullSchema:a,element:s}=e,l=!1;if(t.hidden)return!1;if(i in n&&n[i]!==void 0)if(t.isViewNode){s.elements||(s.elements=[]);let g={name:i,type:"element"};return s.elements.push(g),_c({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},zw)}else vY((u=s.attributes)==null?void 0:u[i],n[i])||(s.attributes||(s.attributes={}),s.attributes[i]=n[i],l=!0);else(p=s.attributes)!=null&&p[i]&&(TY(e,i),l=!0);return l}o(zw,"exportProperty");function Jw(e,t,n,i,r,a){let s=tf(e.file,!1,a);if(s){let l=Py(s);if(_c({fullSchema:i,schema:i,element:l,contextPath:[],config:n},zw)){let p=(0,Yw.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:ov.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(Jw,"getExtensionExportResult");var Zw=o((e,t)=>{let{views:n,manifest:i,jsonSchema:r,page:a,logger:s}=e,l={...t,manifest:i},u;return r&&Object.keys(r).length>0&&(u=us(n||[],a.name,i,s)),u&&Jw(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),eM=o((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:a,pageNameArray:s,logger:l}=e,{manifest:u}=r,p,g="fragment";if(i&&Object.keys(i).length>0){let m=Pc(u,s[0]);p=Cc(a,m,u,g,t)}if(p){let m=nf(t),A={...i.definitions[m],definitions:i.definitions};Jw(p,r,n,A,g,l)}},"exportXMLFragmentConfig");var tM=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],EY=[...tM,"views","initialLoad","template"],qC=o(e=>{let t=ie.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function bY(e,t,n){var s,l,u,p;let i=`@${hd.UIAnnotationTerms.LineItem}`,r=`@${hd.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[ie.DefinitionName.TableSPV])==null?void 0:s[ie.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let g=(u=t.appSchema.definitions[ie.DefinitionName.ALPTable])==null?void 0:u[ie.SchemaTag.annotationPath];i=r=g&&g.substr(g.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ie.PropertyName.table&&a){let g=a.split("/");i=r=g[g.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(bY,"determineTargetAnnotationOfTable");function AY(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ie.DefinitionName.ALPChart])==null?void 0:a[ie.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}o(AY,"determineTargetAnnotationOfChart");function SY(e,t,n,i,r){var a;if(e.length===3)t=n=i[ie.SchemaTag.annotationPath]&&i[ie.SchemaTag.annotationPath].substr(i[ie.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split($)[1],l=s&&r.appSchema.definitions[s],u=(l==null?void 0:l[ie.SchemaTag.annotationPath])&&l[ie.SchemaTag.annotationPath].substr(l[ie.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${u}`:u}return{targetAnnotation:t,targetAnnotationEncoded:n}}o(SY,"determineTargetAnnotationBasedOnParentView");function PY(e,t){var a;let n,i,r=(a=e.appSchema.definitions.MultiTableModeV4)==null?void 0:a.properties[t[2]];if(r)({targetAnnotation:n,targetAnnotationEncoded:i}=SY(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ie.SchemaTag.annotationPath]&&l[ie.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let u=l[ie.SchemaTag.annotationPath].split("/");return n=i=u[u.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ie.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}o(PY,"determineTargetAnnotationOfView");function CY(e,t,n){let i,r;return e[2].split(`@${ie.UIVOCABULARY}`)[1]?n&&n.indexOf(ie.FACETTITLEPREFIX)>-1?i=r=n.split(ie.FACETTITLEPREFIX)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(CY,"determineTargetAnnotationOfHeaderSections");function xY(e,t){let n=e[1].split(`@${ie.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=rv(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(xY,"determineTargetAnnotationOfSections");function IY(e,t,n){let i,r,a=!1;return e[0]===ie.PropertyName.table&&e[1]!==ie.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=bY(e,t,n):e[0]===ie.PropertyName.chart&&t.templateType===ie.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=AY(e,t,n):e[0]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=xY(e,a):e[1]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=CY(e,a,t.title):e[1]===ie.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=PY(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(IY,"determineTargetAnnotation");function OY(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ie.PropertyName.actions,ie.PropertyName.columns,ie.PropertyName.views,ie.PropertyName.visualFilters,ie.PropertyName.selectionFields].includes(ie.PropertyName[r])){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o(OY,"determineKeyForSyncRule");function NY(e){e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):e.manifestSection[e.manifestKey]||(e.manifestSection[e.manifestKey]={})}o(NY,"createNewObjectInManifest");function nM(e,t,n){var r,a;let i=!1;return t.type!=="array"&&((r=n==null?void 0:n.targetDefinition)==null?void 0:r.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(NY(e),i=!0):e.syncRule.manifest.export!==!1&&(e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length||!Array.isArray(e.configObject[e.configPropertyKey])&&e.configObject[e.configPropertyKey]===void 0?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey],i=!0),i}o(nM,"transferPropertyToManifest");function LY(e,t,n,i,r,a,s){var p,g,m;let l=!1,u=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((g=n.config.table)!=null&&g.views)||e[1]==="views"&&((m=n.config.table)!=null&&m.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&tM.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(u!=null&&u.annotationPath)&&!u.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&EY.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let T=t.syncRule.manifest.delete;typeof T=="function"&&(T(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config),l=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],l=!0);return ja(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(LY,"deleteFromManifest");function RY(e,t,n,i){let r=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:l,targetAnnotation:u,custom:p}=IY(e,n.transferParameters,n.configObject),g=OY(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,g,u,n.configObject,a),T=Oo(n.transferParameters.exportResults.manifest,m,u,p?void 0:l);if(T){let A={syncRule:t,manifestSection:T,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:g};n.configObject[n.key]!==void 0?r=nM(A,n.propertyDefinition,i):r=LY(e,A,n.transferParameters,T,m,u,l)}return r}o(RY,"exportManifestChange");function FY(e,t,n){let i=zn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);eM(e.transferParameters,r,n.configObject)}else i.manifest&&RY(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ie.ChangeIndicator.Updated)}o(FY,"evaluateExportRule");function _Y(e,t,n,i,r){let a=[];e.propertyDefinition.$ref&&t?a.push(t.configObject):e.propertyDefinition.anyOf?a.push(n):e.propertyDefinition.type==="array"?a=n:a.push(n),e.index=0;for(let s of a)e.transferParameters.title=t==null?void 0:t.title,YC(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(_Y,"transferSubObject");function DY(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=ft(e.pageNameArray)+"/views",a=Oo(e.exportResults.manifest,r);return!a.paths||Object.keys(a.paths).length===0?(a.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):a.paths[0].secondary||(a.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}o(DY,"createALPTableView");function VY(e){var a,s;let t=!1,n=e.key;if(!e.configObject[n]||Object.keys(e.configObject[n]).length===0)return{newElementCreated:t,stopProcessing:!0};let i=ft(e.transferParameters.pageNameArray)+"/views",r=Oo(e.transferParameters.exportResults.manifest,i);return!r.paths||Object.keys(r.paths).length===0?(r.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):r.paths[0].primary||(r.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),r.paths[0].secondary||(r.paths[0].secondary=[{annotationPath:((s=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||hd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(VY,"createALPChartView");function wY(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=ft(e.pageNameArray),r=Oo(e.exportResults.manifest,i),a=`@${hd.UIAnnotationTerms.SelectionFields}`;if(r.controlConfiguration?r.controlConfiguration[a]?r.controlConfiguration[a].filterFields||(r.controlConfiguration[a].filterFields={},n=!0):(r.controlConfiguration[a]={filterFields:{}},n=!0):(r.controlConfiguration={[a]:{filterFields:{}}},n=!0),n){let s=r.controlConfiguration[a].filterFields;Object.keys(t).forEach(l=>{let u=t[l];s[l]={};for(let p in u)p==="visualFilterValueList"?s[l].visualFilter={valueList:u[p]}:s[l][p]=u[p]})}return n}o(wY,"createVisualFilters");function MY(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=ft(t.pageNameArray)+"/views",s=Oo(t.exportResults.manifest,a),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],r=!0;else{let u=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(u===-1)s.paths.push(l),r=!0;else if(u!==i.index){let p=JSON.parse(JSON.stringify(s.paths[u]));s.paths.splice(u,1),s.paths.splice(e,0,p),r=!0}}return r}o(MY,"createLRTableView");function kY(e,t,n){let i=!1,r=!1;if(t&&!n)if(t.startsWith(ie.DefinitionName.CustomColumn))i=Bw(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ie.DefinitionName.ALPChartView&&e.key===ie.PropertyName.chart&&e.configObject)return VY(e);if(t===ie.DefinitionName.ALPTableView&&e.key===ie.PropertyName.table&&e.configObject)return DY(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ie.DefinitionName.LRTableView)||t.startsWith(ie.DefinitionName.LRChartView))?i=MY(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ie.DefinitionName.VisualFilters)&&(i=wY(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(kY,"createNewElement");function UY(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0}o(UY,"isDefinitionTraversable");function QC(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=Wg(e.configObject,e.key),s=Lo(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=kY(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split($)[1],i),p=a?[...t,a]:[...t,e.key];if(l||FY(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||UY(e.propertyDefinition)&&s.configObject)&&!u){let m=a?[...n,a]:n;_Y(e,s,r,p,m)}}o(QC,"transferSortedListEntry");function jY(e,t,n,i,r){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((l,u)=>l[1]&&l[1].index-u[1].index),s.forEach(l=>{var u;(u=n.properties)!=null&&u[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],QC(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,QC(e,i,r),a=!0)}),e.index++})}return a}o(jY,"transferConfigEntriesWithAnyOfDefinitions");function $Y(e,t,n,i){let r=gE(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o($Y,"mergeEntriesForInsert");function BY(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ie.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ie.SchemaTag.propertyIndex]-r[1][ie.SchemaTag.propertyIndex])),t}o(BY,"sortProperties");function HY(e,t,n,i,r,a){var l,u;let s=!1;if(e){let p=e.anyOf;if(!p){let g=(l=e.$ref)==null?void 0:l.split($)[1];p=g?(u=t.appSchema.definitions[g])==null?void 0:u.anyOf:void 0}s=jY(n,p,i,r,a)}return s}o(HY,"checkIfAnyOfDefinition");function YC(e,t,n,i,r,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:r,key:void 0,index:s,configObject:t,propertyDefinition:void 0},u=a.additionalProperties,p=HY(u,e,l,a,n,i),g=BY(a.properties);u!=null&&u.$ref&&$Y(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!ru(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,QC(l,n,i,p),m[1].$ref&&s++)})}o(YC,"transferManifestEntriesAndFlexChange");function iM(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ie.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(iM,"getClassesForSingleSection");function rM(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],iM(n,i,t),rM(n,t)}}o(rM,"getSubsectionClasses");function GY(e,t,n){let i;for(let r in e.sections)i=t.sections[r],iM(e,r,n),rM(i,n)}o(GY,"getExportClassesForSections");function oM(e,t){let n=Kg(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(oM,"calculateBaseId");var aM=o((e,t,n=!1)=>{var l;let i=qC(e.manifest),r=new Ia,a=r.createPageInstance(ie.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ie.PropertyName.sections]&&GY(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:oM(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ie.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return YC(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),WY=o((e,t,n,i,r,a,s=!1)=>{var E,O;let l=qC(e.manifest),u=e.jsonSchema,p=(E=n.table)!=null&&E[ie.PropertyName.annotationPath]?ie.DefinitionName.ALPTableView:ie.DefinitionName.Table,g=n.table=t.createInstance(i,p,n.table),m=ie.DefinitionName.LineItems;u.definitions[ie.DefinitionName.TableSPV]&&(m=u.definitions[ie.DefinitionName.TableSPV].properties.columns.$ref.split($)[1]);let T=u.definitions[`${ie.DefinitionName.Actions}<${m}>`];if((O=g.toolBar)!=null&&O.actions&&T)for(let F in T.properties)g.toolBar.actions[F]=t.createInstance(i,ie.DefinitionName.ToolBarAction,g.toolBar.actions[F]);let A={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:oM(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return YC(A,n,[],[],[],u),l},"exportListPage"),zC=o((e,t,n,i=!1)=>{let r=new Ia,a=r.createPageInstance(ie.PageTypeV2.ListReport,e.page.config);return WY(e,r,a,ie.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),sM=o((e,t,n=!1)=>zC(e,t,ie.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),KY=o((e,t,n,i,r,a)=>{let s=Oo(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=cE());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];nM(u,p,{}),!l&&Object.keys(s).length&&wF(r,t,s)},"applyExportRule"),XY=o((e,t,n)=>{var a;let i=qC(t),r=Object.assign(new Oy,e);r.settings=Object.assign(new rf,r.settings);for(let s in n.definitions.AppSettings.properties){let l=zn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)KY(l,u,s,e,i.manifest,n);else{let p=Oo(i.manifest,u);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],ja(i.manifest,u,!1))}}}return i.manifest[ie.ManifestSection.ui5].routing=Kw(e.home,e.pages,i.manifest),qw(i.manifest[ie.ManifestSection.ui5],e),i},"exportApplicationV4"),cM=o((e,t)=>{if(e[ie.SchemaType.ListReport])return zC(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4);if(e[ie.SchemaType.ObjectPage])return aM(e[ie.SchemaType.ObjectPage],t);if(e[ie.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ie.SchemaType.Application];return XY(n,i,r)}else{if(e[ie.SchemaType.AnalyticalListPage])return sM(e[ie.SchemaType.AnalyticalListPage],t);if(e[ie.SchemaType.FPMCustomPage])return Zw(e[ie.SchemaType.FPMCustomPage],ie.defaultExportResult)}},"exportPageV4"),JC=o((e,t,n=!1)=>{if(e[ie.SchemaType.ListReport])return zC(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4,n);if(e[ie.SchemaType.ObjectPage])return aM(e[ie.SchemaType.ObjectPage],t,n);if(e[ie.SchemaType.AnalyticalListPage])return sM(e[ie.SchemaType.AnalyticalListPage],t,n)},"exportConfigEntityByPathV4");var Bt=require("@sap-ux/fe-fpm-writer");var QY=new Map([[pe.CustomExtensionType.CustomPage,Bt.generateCustomPage],[pe.CustomExtensionType.CustomColumn,Bt.generateCustomColumn],[pe.CustomExtensionType.CustomSection,Bt.generateCustomSection],[pe.CustomExtensionType.ObjectPage,Bt.generateObjectPage],[pe.CustomExtensionType.ListReport,Bt.generateListReport],[pe.CustomExtensionType.CustomAction,Bt.generateCustomAction],[pe.CustomExtensionType.CustomView,Bt.generateCustomView],[pe.CustomExtensionType.ControllerExtension,Bt.generateControllerExtension],[pe.CustomExtensionType.CustomSubSection,Bt.generateCustomSubSection],[pe.CustomExtensionType.CustomFilterField,Bt.generateCustomFilter],[pe.CustomExtensionType.CustomHeaderSection,Bt.generateCustomHeaderSection]]),qY={api:Bt.PromptsAPI,types:Bt.PromptsType};function YY(e){let t;if(e[pe.FioriElementsVersion.v2]){let n=e[pe.FioriElementsVersion.v2];if(n[pe.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.ListReport];t=HC(i,r,a,s,l,u)}else if(n[pe.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.ObjectPage];t=BC(i,r,a,s,l,u)}else if(n[pe.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[pe.SchemaType.OverviewPage];t=pd(i,r)}else if(n[pe.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.AnalyticalListPage];t=GC(i,r,a,s,l,u)}}else if(e[pe.FioriElementsVersion.v4]){let n=e[pe.FioriElementsVersion.v4];if(n[pe.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[pe.SchemaType.ListReport];t=Iy(pe.TemplateType.ListReportObjectPageV4,i,r,a,s,l,u)}else if(n[pe.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,logger:l,fragments:u,contextPath:p,genericMacrosSchema:g}=n[pe.SchemaType.ObjectPage];t=DS(i,r,a,s,l,u,p,g,e.featureToggles)}else if(n[pe.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[pe.SchemaType.AnalyticalListPage];t=Iy(pe.TemplateType.AnalyticalListPageV4,i,r,a,s,l,u)}else if(n[pe.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l}=n[pe.SchemaType.FreestylePage];t=VS(pe.TemplateType.FreestylePageV4,i,a,l,r,s)}else if(n[pe.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:a,views:s,logger:l,annotations:u}=n[pe.SchemaType.FPMCustomPage];t=wS(i,r,a,s,u,e.featureToggles,l)}}return t}o(YY,"generateSchema");function zY(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=Uw(i,n)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=cM(i,n)}return t}o(zY,"exportConfig");function JY(e){let t=pe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=KC(i,n)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=JC(i,n)}return t}o(JY,"exportConfigEntityByPath");function ZY(e){let t=pe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=KC(i,n,!0)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=JC(i,n,!0)}return t}o(ZY,"deleteConfigEntityByPath");function ez(e){let t;if(e[pe.FioriElementsVersion.v2]){let n=e[pe.FioriElementsVersion.v2];n[pe.SchemaType.ListReport]?t=Sh(n[pe.SchemaType.ListReport]):n[pe.SchemaType.ObjectPage]?t=xh(n[pe.SchemaType.ObjectPage]):n[pe.SchemaType.OverviewPage]?t=Nh(n[pe.SchemaType.OverviewPage]):n[pe.SchemaType.AnalyticalListPage]&&(t=Ph(n[pe.SchemaType.AnalyticalListPage]))}else if(e[pe.FioriElementsVersion.v4]){let n=e[pe.FioriElementsVersion.v4];n[pe.SchemaType.ListReport]?t=Uc(n[pe.SchemaType.ListReport],pe.SchemaType.ListReport):n[pe.SchemaType.ObjectPage]?t=tv(n[pe.SchemaType.ObjectPage]):n[pe.SchemaType.AnalyticalListPage]?t=Uc(n[pe.SchemaType.AnalyticalListPage],pe.SchemaType.AnalyticalListPage):n[pe.SchemaType.FPMCustomPage]&&(t=ev(n[pe.SchemaType.FPMCustomPage]))}return t}o(ez,"importConfig");async function tz(e){return UC(e)}o(tz,"importProject");async function nz(e){return kC(e)}o(nz,"importProjectSchema");function iz(){return{version:"17",fpmWriter:"24",moduleVersion:L0.version}}o(iz,"getApiVersion");function XC(e){let t=QY.get(e.customExtension);if(t&&typeof t=="function")return(0,Bt.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(XC,"generateCustomExtension");var Yr=require("path"),_s=require("fs");var Of=o(async e=>new Promise((t,n)=>{(0,_s.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),rz=o(async e=>JSON.parse(await Of(e)),"readJSON"),ZC=o(async e=>new Promise((t,n)=>{(0,_s.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),oz=o(async e=>new Promise(t=>{(0,_s.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),fM=o(async e=>new Promise(t=>{(0,_s.exists)(e,n=>{t(n)})}),"resourceExists"),az=o(async e=>rz((0,Yr.join)(e,"manifest.json")),"getManifest"),uM=o(async e=>{let t=[],n=(0,Yr.join)(e,"changes");if(!await fM(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await ZC(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await Of((0,Yr.join)(n,a)));return t},"getChanges"),lM=o(async(e,t="fragments")=>{let n=[],i=(0,Yr.join)(e,"ext",t);if(!await fM(i))return n;let r=await ZC(i);for(let a of r){let s=(0,Yr.join)(i,a),l=await Of(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),sz=o(async(e,t)=>{var r,a,s,l,u,p,g,m;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let T=(0,Yr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:T,fileContent:await Of(T)})}if((u=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&u.annotations){for(let T of i.mainService.settings.annotations)if((g=(p=i[T])==null?void 0:p.settings)!=null&&g.localUri){let A=(0,Yr.join)(t,i[T].settings.localUri);n.push({dataSourceUri:A,fileContent:await Of(A)})}}if(n.length===0)for(let T in i){let A=i[T];if((A==null?void 0:A.type)==="ODataAnnotation"&&((m=A==null?void 0:A.settings)!=null&&m.localUri)){let E=(0,Yr.join)(t,A.settings.localUri);n.push({dataSourceUri:E,fileContent:await Of(E)})}}return n},"getAnnotations"),cz=o(async e=>{let t=(0,Yr.basename)(e),n=(0,Yr.join)(e,"webapp"),i=await az(n),r=await sz(i,n),a=await uM(n),s=await lM(n),l=await lM(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");Ks(Vi,ne(le()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
|
|
295
295
|
/*! Bundled license information:
|
|
296
296
|
|
|
297
297
|
sax/lib/sax.js:
|