@sap/ux-specification 1.71.156 → 1.71.158
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 +43 -6
- package/dist/documentation/runDocu-min.mjs +28 -0
- package/dist/documentation/{runDocu-min.js.map → runDocu-min.mjs.map} +2 -2
- package/dist/documentation/v2/v2-AnalyticalListPage.html +4 -4
- package/dist/documentation/v2/v2-ApplicationV2.html +4 -4
- package/dist/documentation/v2/v2-ListReport.html +4 -4
- package/dist/documentation/v2/v2-ListReportNew.html +4 -4
- package/dist/documentation/v2/v2-ObjectPage.html +4 -4
- package/dist/documentation/v2/v2-OverviewPage.html +4 -4
- package/dist/index-min.mjs +1365 -0
- package/dist/index-min.mjs.map +7 -0
- package/dist/specification/package.json +23 -15
- package/dist/specification/src/i18n/i18n.js +35 -2
- package/dist/specification/src/i18n/i18n.js.map +1 -1
- package/dist/templates/action/manifest.action-menu.json +10 -0
- package/dist/templates/action/manifest.action.json +13 -0
- package/dist/templates/app/Component.js +13 -0
- package/dist/templates/app/Component.ts +11 -0
- package/dist/templates/building-block/action/View.xml +30 -0
- package/dist/templates/building-block/chart/View.xml +9 -0
- package/dist/templates/building-block/common/manifest.json +7 -0
- package/dist/templates/building-block/custom-column/View.xml +5 -0
- package/dist/templates/building-block/custom-filter-field/View.xml +12 -0
- package/dist/templates/building-block/custom-form-field/View.xml +12 -0
- package/dist/templates/building-block/field/View.xml +8 -0
- package/dist/templates/building-block/filter-bar/View.xml +10 -0
- package/dist/templates/building-block/form/View.xml +4 -0
- package/dist/templates/building-block/page/View.xml +5 -0
- package/dist/templates/building-block/rich-text-editor/View.xml +3 -0
- package/dist/templates/building-block/rich-text-editor-button-groups/View.xml +18 -0
- package/dist/templates/building-block/table/View.xml +19 -0
- package/dist/templates/column/1.84/manifest.json +28 -0
- package/dist/templates/column/1.85/manifest.json +31 -0
- package/dist/templates/column/1.86/manifest.json +43 -0
- package/dist/templates/common/EventHandler.js +25 -0
- package/dist/templates/common/EventHandler.ts +28 -0
- package/dist/templates/common/Fragment.xml +3 -0
- package/dist/templates/common/FragmentWithForm.xml +7 -0
- package/dist/templates/common/FragmentWithVBox.xml +5 -0
- package/dist/templates/common/sap.fe.d.ts +43 -0
- package/dist/templates/controller-extension/Controller.js +18 -0
- package/dist/templates/controller-extension/Controller.ts +20 -0
- package/dist/templates/controller-extension/ControllerExtension.d.ts +11 -0
- package/dist/templates/controller-extension/manifest.json +14 -0
- package/dist/templates/field/manifest.json +32 -0
- package/dist/templates/filter/Controller.js +21 -0
- package/dist/templates/filter/Controller.ts +24 -0
- package/dist/templates/filter/fragment.xml +15 -0
- package/dist/templates/filter/manifest.json +12 -0
- package/dist/templates/header-section/1.85/manifest.json +43 -0
- package/dist/templates/header-section/1.86/manifest.json +45 -0
- package/dist/templates/page/custom/1.84/ext/Controller.js +45 -0
- package/dist/templates/page/custom/1.84/ext/Controller.ts +42 -0
- package/dist/templates/page/custom/1.84/ext/View.xml +6 -0
- package/dist/templates/page/custom/1.84/i18n/i18n.properties +2 -0
- package/dist/templates/page/custom/1.84/manifest.json +32 -0
- package/dist/templates/page/custom/1.94/ext/Controller.js +45 -0
- package/dist/templates/page/custom/1.94/ext/Controller.ts +42 -0
- package/dist/templates/page/custom/1.94/ext/View.xml +6 -0
- package/dist/templates/page/custom/1.94/i18n/i18n.properties +2 -0
- package/dist/templates/page/custom/1.94/manifest.json +33 -0
- package/dist/templates/page/custom/i18n/i18n.properties +2 -0
- package/dist/templates/page/list/manifest.json +20 -0
- package/dist/templates/page/object/manifest.json +33 -0
- package/dist/templates/section/1.85/manifest.json +33 -0
- package/dist/templates/section/1.86/manifest.json +32 -0
- package/dist/templates/subsection/1.85/manifest.json +37 -0
- package/dist/templates/subsection/1.86/manifest.json +36 -0
- package/dist/templates/view/ext/CustomViewWithTable.xml +3 -0
- package/dist/templates/view/manifest.json +41 -0
- package/package.json +23 -15
- package/dist/documentation/runDocu-min.js +0 -28
- package/dist/index-min.js +0 -431
- package/dist/index-min.js.map +0 -7
package/dist/index-min.js
DELETED
|
@@ -1,431 +0,0 @@
|
|
|
1
|
-
var epe=Object.create;var cl=Object.defineProperty;var BV=Object.getOwnPropertyDescriptor;var tpe=Object.getOwnPropertyNames;var npe=Object.getPrototypeOf,rpe=Object.prototype.hasOwnProperty;var ipe=(e,t,n)=>t in e?cl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var s=(e,t)=>cl(e,"name",{value:t,configurable:!0});var ll=(e,t)=>()=>(e&&(t=e(e=0)),t);var y=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),nf=(e,t)=>{for(var n in t)cl(e,n,{get:t[n],enumerable:!0})},ib=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of tpe(t))!rpe.call(e,i)&&i!==n&&cl(e,i,{get:()=>t[i],enumerable:!(r=BV(t,i))||r.enumerable});return e},ul=(e,t,n)=>(ib(e,t,"default"),n&&ib(n,t,"default")),me=(e,t,n)=>(n=e!=null?epe(npe(e)):{},ib(t||!e||!e.__esModule?cl(n,"default",{value:e,enumerable:!0}):n,e)),rf=e=>ib(cl({},"__esModule",{value:!0}),e),x=(e,t,n,r)=>{for(var i=r>1?void 0:r?BV(t,n):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(r?a(t,n,i):a(i))||i);return r&&i&&cl(t,n,i),i};var GV=(e,t,n)=>ipe(e,typeof t!="symbol"?t+"":t,n);var Z2=y((xQe,Q2)=>{var U0=Object.defineProperty,spe=Object.getOwnPropertyDescriptor,ope=Object.getOwnPropertyNames,ape=Object.prototype.hasOwnProperty,HV=s((e,t)=>{for(var n in t)U0(e,n,{get:t[n],enumerable:!0})},"S"),cpe=s((e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ope(t))!ape.call(e,i)&&i!==n&&U0(e,i,{get:s(()=>t[i],"get"),enumerable:!(r=spe(t,i))||r.enumerable});return e},"Ee"),lpe=s(e=>cpe(U0({},"__esModule",{value:!0}),e),"he"),WV={};HV(WV,{ACTIONTITLEPREFIX:s(()=>dpe,"ACTIONTITLEPREFIX"),ALPViewType:s(()=>ZV,"ALPViewType"),ActionType:s(()=>n2,"ActionType"),ArtifactType:s(()=>t2,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:s(()=>gpe,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:s(()=>c2,"ChangeIndicator"),CloudDevAdaptationStatus:s(()=>T2,"CloudDevAdaptationStatus"),ControlType:s(()=>r2,"ControlType"),CustomExtensionType:s(()=>I2,"CustomExtensionType"),DataSourceType:s(()=>S2,"DataSourceType"),DefinitionName:s(()=>f2,"DefinitionName"),DirName:s(()=>o2,"DirName"),DraftDiscardEnabledSettings:s(()=>g2,"DraftDiscardEnabledSettings"),ExportArtifacts:s(()=>QV,"ExportArtifacts"),ExportType:s(()=>s2,"ExportType"),FACETTITLEPREFIX:s(()=>ppe,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:s(()=>Rpe,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:s(()=>Npe,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:s(()=>xpe,"FRAGMENTNAMEPART"),FacetBase:s(()=>l2,"FacetBase"),Features:s(()=>_2,"Features"),FileName:s(()=>a2,"FileName"),FioriElementsVersion:s(()=>KV,"FioriElementsVersion"),FlexChangeLayer:s(()=>XV,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:s(()=>b2,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:s(()=>YV,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:s(()=>wpe,"GENERICAPPSETTINGS"),LogSeverity:s(()=>A2,"LogSeverity"),MANIFESTPATH:s(()=>mpe,"MANIFESTPATH"),ManifestSection:s(()=>E2,"ManifestSection"),OdataVersion:s(()=>JV,"OdataVersion"),PACKAGEJSON:s(()=>ype,"PACKAGEJSON"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:s(()=>fpe,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:s(()=>upe,"PageType"),PageTypeV2:s(()=>B0,"PageTypeV2"),Parser:s(()=>Kpe,"Parser"),PropertyMessageType:s(()=>x2,"PropertyMessageType"),PropertyName:s(()=>p2,"PropertyName"),QUICKVARPATH:s(()=>Ppe,"QUICKVARPATH"),QUICKVARPATHX:s(()=>Ape,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:s(()=>Lpe,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:s(()=>Fpe,"SAPUI5_VIEW_CLASS"),SchemaKeyName:s(()=>h2,"SchemaKeyName"),SchemaTag:s(()=>d2,"SchemaTag"),SchemaType:s(()=>zV,"SchemaType"),SectionType:s(()=>e2,"SectionType"),StatePreservationMode:s(()=>y2,"StatePreservationMode"),TRANSLATION_BUNDLE_ANNOTATION:s(()=>Ipe,"TRANSLATION_BUNDLE_ANNOTATION"),TRANSLATION_BUNDLE_APP:s(()=>Ope,"TRANSLATION_BUNDLE_APP"),TRANSLATION_BUNDLE_SERVICE:s(()=>_pe,"TRANSLATION_BUNDLE_SERVICE"),TRANSLATION_BUNDLE_UI5:s(()=>Cpe,"TRANSLATION_BUNDLE_UI5"),TableColumnVerticalAlignment:s(()=>m2,"TableColumnVerticalAlignment"),TemplateType:s(()=>O2,"TemplateType"),UIVOCABULARY:s(()=>Tpe,"UIVOCABULARY"),UIVOCABULARYALPHADOT:s(()=>Epe,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:s(()=>Spe,"UIVOCABULARYDOT"),VOCWITHCOLONS:s(()=>vpe,"VOCWITHCOLONS"),VOCWITHSLASH:s(()=>bpe,"VOCWITHSLASH"),ViewTemplateType:s(()=>u2,"ViewTemplateType"),ViewTypes:s(()=>P2,"ViewTypes"),Visualization:s(()=>i2,"Visualization"),defaultExportResult:s(()=>hpe,"defaultExportResult"),logSeverityLabel:s(()=>jpe,"logSeverityLabel"),v2:s(()=>C2,"v2")});Q2.exports=lpe(WV);var B0=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(B0||{}),upe={...B0},fpe=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"]]),KV=(e=>(e.v2="v2",e.v4="v4",e))(KV||{}),JV=(e=>(e.v2="v2",e.v4="v4",e))(JV||{}),YV=(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))(YV||{}),XV=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(XV||{}),zV=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e))(zV||{}),QV=(e=>(e.flex="flex",e.manifest="manifest",e))(QV||{}),ZV=(e=>(e.Primary="primary",e.Secondary="secondary",e))(ZV||{}),e2=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(e2||{}),t2=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.Fragment="Fragment",e))(t2||{}),n2=(e=>(e.Annotation="Annotation",e.Custom="Custom",e.Standard="Standard",e))(n2||{}),r2=(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))(r2||{}),i2=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(i2||{}),s2=(e=>(e.GW="GW",e.UI5Client="UI5Client",e))(s2||{}),o2=(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))(o2||{}),a2=(e=>(e.App="app.json",e))(a2||{}),ppe="Facet ID: ",dpe="Action ID: ",c2=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(c2||{}),hpe={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[]},l2=(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))(l2||{}),gpe="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",u2=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(u2||{}),f2=(e=>(e.Action="Action",e.Actions="Actions",e.ActionsLR="Actions<LineItems>",e.ALPChart="ALPChart",e.ALPChartView="ALPChartView",e.ALPTable="ALPTable",e.ALPTableView="ALPTableView",e.AnalyticalListPageFilterBar="AnalyticalListPageFilterBar",e.AnnotationPathAsObject="AnnotationPathAsObject",e.ChartSettings="ChartSettings",e.ChartToolBarAction="ChartToolBarAction",e.CommonHeaderFacetSettings="CommonHeaderFacetSettings",e.CustomColumn="TableCustomColumn",e.CustomColumnOP="TableCustomColumnOP",e.CustomColumns="TableCustomColumns",e.CustomSections="CustomSections",e.FieldPath="FieldPath",e.Field="Field",e.Fields="Fields",e.Fields4Dialog="Fields4Dialog",e.FilterBar="FilterBar",e.Footer="Footer",e.FooterAction="FooterAction",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.FormCustomActionOP="FormCustomActionOP",e.SectionActions="SectionActions",e.GenericActions="GenericActions",e.GenericColumnsOP="GenericColumnsOP",e.GenericFooter="GenericFooter",e.GenericSections="GenericSections",e.GenericSubSections="GenericSubSections",e.GlobalTableSettings="GlobalTableSettings",e.Header="Header",e.HeaderActions="HeaderActions",e.HeaderActionsStandard="HeaderActionsStandard",e.HeaderActionStandard="HeaderActionStandard",e.ObjectPageHeaderAction="ObjectPageHeaderAction",e.ObjectPageHeaderActionStandard="ObjectPageHeaderActionStandard",e.ObjectPageHeaderActions="ObjectPageHeaderActions",e.HeaderSections="HeaderSections",e.LineItems="LineItems",e.LineItemsOfView="LineItemsOfView",e.ListReportFilterBar="ListReportFilterBar",e.LRTableView="LRTableView",e.LRChartView="LRChartView",e.MultiEditV2="MultiEdit",e.MultiTableModeV4="MultiTableModeV4",e.ObjectPageChart="ObjectPageChart",e.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",e.ObjectPageForm="ObjectPageForm",e.ObjectPageFooter="ObjectPageFooter",e.ObjectPageFooterAction="ObjectPageFooterAction",e.ObjectPageFooterActions="ObjectPageFooterActions",e.ObjectPageFooterActionStandard="ObjectPageFooterActionStandard",e.ObjectPageHeader="ObjectPageHeader",e.ObjectPageHeaderSectionForm="ObjectPageHeaderSectionForm",e.ObjectPageHeaderSectionChart="ObjectPageHeaderSectionChart",e.ObjectPageHeaderSectionDataPoint="ObjectPageHeaderSectionDataPoint",e.ObjectPageHeaderSectionContact="ObjectPageHeaderSectionContact",e.ObjectPageHeaderSectionAddress="ObjectPageHeaderSectionAddress",e.ObjectPageLayout="ObjectPageLayout",e.ObjectPagePresentationVariant="ObjectPagePresentationVariant",e.ObjectPageSectionAddress="ObjectPageSectionAddress",e.ObjectPageSectionChart="ObjectPageSectionChart",e.ObjectPageSectionContact="ObjectPageSectionContact",e.ObjectPageSectionDataPoint="ObjectPageSectionDataPoint",e.ObjectPageSectionForm="ObjectPageSectionForm",e.ObjectPageSectionPresentationVariant="ObjectPageSectionPresentationVariant",e.ObjectPageSectionTableV4="ObjectPageSectionTableV4",e.ObjectPageSubSections="ObjectPageSubSections",e.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",e.ObjectPageToolBarActions="ObjectPageToolBarActions",e.Position="Position",e.PositionOP="PositionOP",e.QuickVariant="QuickVariant",e.QuickVariantSelectionOP="QuickVariantSelectionOP",e.QuickVariantSelectionV4OP="QuickVariantSelectionV4OP",e.RelatedFacetKeys="RelatedFacetKeys",e.Sections="Sections",e.SelectionFields="SelectionFields",e.Table="Table",e.TableSPV="TableSPV",e.TableColumn="TableColumn",e.TableViewExtension="TableViewExtension",e.ToolBarAction="ToolBarAction",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.SaveAndEdit="SaveAndEdit",e))(f2||{}),p2=(e=>(e.actions="actions",e.annotationPath="annotationPath",e.chart="chart",e.defaultPath="defaultPath",e.defaultTemplateAnnotationPath="defaultTemplateAnnotationPath",e.sections="sections",e.table="table",e.views="views",e))(p2||{}),d2=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlId="controlId",e.controlType="controlType",e.conversionExit="conversionExit",e.dataType="dataType",e.deletable="deletable",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.icon="icon",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.manifestPath="manifestPath",e.messages="messages",e.propertyIndex="propertyIndex",e.target="target",e))(d2||{}),h2=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(h2||{}),mpe="webapp/manifest.json",ype="package.json",bpe="/@com.sap.vocabularies",vpe="::@com.sap.vocabularies",Tpe="com.sap.vocabularies.UI.v1",Spe="com.sap.vocabularies.UI.v1.",Epe="@com.sap.vocabularies.UI.v1.",Ppe="/quickVariantSelection",Ape="/quickVariantSelectionX",xpe=".fragment.",Ope="app",Ipe="annotation",_pe="service",Cpe="ui5",g2=(e=>(e.restricted="restricted",e))(g2||{}),m2=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(m2||{}),y2=(e=>(e.persistence="persistence",e.discovery="discovery",e))(y2||{}),b2=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(b2||{}),T2=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(T2||{}),S2=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(S2||{}),E2=(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))(E2||{}),wpe="sap.ui.generic.app/settings",Npe="sap.fe.templates.RootContainer.view.Fcl",Rpe="appRootView",P2=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e.JS="JS",e))(P2||{}),Fpe="sap.ui.core.mvc.View",Lpe="sap.ui.core.Fragment",A2=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(A2||{}),jpe={error:"Error",warning:"Warning",info:"Information"},x2=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(x2||{}),O2=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(O2||{}),I2=(e=>(e.CustomSectionV2="CustomSectionV2",e))(I2||{}),_2=(e=>(e.BuildingBlocks="BuildingBlocks",e))(_2||{}),C2={};HV(C2,{AvatarShape:s(()=>K2,"AvatarShape"),ButtonType:s(()=>w2,"ButtonType"),CardSettingsType:s(()=>F2,"CardSettingsType"),CardTemplateType:s(()=>R2,"CardTemplateType"),ChartCardType:s(()=>N2,"ChartCardType"),ChartType:s(()=>W2,"ChartType"),ContainerLayoutType:s(()=>z2,"ContainerLayoutType"),CreateMode:s(()=>X2,"CreateMode"),DefaultContentView:s(()=>G2,"DefaultContentView"),DefaultFilterMode:s(()=>H2,"DefaultFilterMode"),ExtensionFragmentTypes:s(()=>Y2,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:s(()=>kpe,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:s(()=>qpe,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:s(()=>Vpe,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:s(()=>Mpe,"FE_TEMPLATE_V2_OBJECT_PAGE"),HAlign:s(()=>k2,"HAlign"),LinkListFlavorType:s(()=>$2,"LinkListFlavorType"),ListFlavorType:s(()=>L2,"ListFlavorType"),ListTypeType:s(()=>j2,"ListTypeType"),PopinLayout:s(()=>U2,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:s(()=>Bpe,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:s(()=>Upe,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:s(()=>Wpe,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:s(()=>Hpe,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:s(()=>Gpe,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:s(()=>J2,"SectionPosition"),SortOrderType:s(()=>D2,"SortOrderType"),Strategy:s(()=>B2,"Strategy"),TableColumnExtensionTypeV2:s(()=>q2,"TableColumnExtensionTypeV2"),TableTypeV2:s(()=>V2,"TableTypeV2"),cardTemplateSettingsMap:s(()=>$pe,"cardTemplateSettingsMap"),cardTemplateTypeMap:s(()=>Dpe,"cardTemplateTypeMap"),customColumnViewTypes:s(()=>M2,"customColumnViewTypes")});var w2=(e=>(e.Accept="Accept",e.Back="Back",e.Default="Default",e.Emphasized="Emphasized",e.Ghost="Ghost",e.Reject="Reject",e.Transparent="Transparent",e.Unstyled="Unstyled",e.Up="Up",e))(w2||{}),N2=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(N2||{}),R2=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.list="sap.ovp.cards.list",e.linklist="sap.ovp.cards.linklist",e.table="sap.ovp.cards.table",e.stack="sap.ovp.cards.stack",e))(R2||{}),Dpe={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.stack":"StackCard"},$pe={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},F2=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(F2||{}),L2=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(L2||{}),j2=(e=>(e.extended="extended",e.condensed="condensed",e))(j2||{}),D2=(e=>(e.ascending="ascending",e.descending="descending",e))(D2||{}),$2=(e=>(e.standard="standard",e.carousel="carousel",e))($2||{}),k2=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(k2||{}),M2=(e=>(e.XML="XML",e))(M2||{}),V2=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(V2||{}),q2=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(q2||{}),U2=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(U2||{}),B2=(e=>(e.extension="extension",e))(B2||{}),G2=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(G2||{}),H2=(e=>(e.visual="visual",e.compact="compact",e))(H2||{}),W2=(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))(W2||{}),K2=(e=>(e.Circle="Circle",e.Square="Square",e))(K2||{}),J2=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(J2||{}),Y2=(e=>(e.XML="XML",e))(Y2||{}),X2=(e=>(e.inline="inline",e))(X2||{}),kpe="sap.suite.ui.generic.template",Mpe="sap.suite.ui.generic.template.ObjectPage",Vpe="sap.suite.ui.generic.template.ListReport",qpe="sap.suite.ui.generic.template.AnalyticalListPage",Upe="sap.ui.viewExtensions",Bpe="sap.ui.controllerExtensions",Gpe="sap.suite.ui.generic.template.ObjectPage.view.Details",Hpe="sap.suite.ui.generic.template.ListReport.view.ListReport",Wpe="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",z2=(e=>(e.fixed="fixed",e.resizable="resizable",e))(z2||{}),Kpe={}});var sq=y(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.Features=fi.CustomExtensionType=fi.TemplateType=fi.PropertyMessageType=fi.logSeverityLabel=fi.LogSeverity=void 0;var eq;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(eq||(fi.LogSeverity=eq={}));fi.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var tq;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(tq||(fi.PropertyMessageType=tq={}));var nq;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(nq||(fi.TemplateType=nq={}));var rq;(function(e){e.CustomSectionV2="CustomSectionV2"})(rq||(fi.CustomExtensionType=rq={}));var iq;(function(e){e.BuildingBlocks="BuildingBlocks"})(iq||(fi.Features=iq={}))});var wq=y((_Qe,Cq)=>{var G0=Object.defineProperty,Jpe=Object.getOwnPropertyDescriptor,Ype=Object.getOwnPropertyNames,Xpe=Object.prototype.hasOwnProperty,zpe=s((e,t)=>{for(var n in t)G0(e,n,{get:t[n],enumerable:!0})},"R"),Qpe=s((e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ype(t))!Xpe.call(e,i)&&i!==n&&G0(e,i,{get:s(()=>t[i],"get"),enumerable:!(r=Jpe(t,i))||r.enumerable});return e},"h"),Zpe=s(e=>Qpe(G0({},"__esModule",{value:!0}),e),"N"),oq={};zpe(oq,{AvatarShape:s(()=>Aq,"AvatarShape"),ButtonType:s(()=>aq,"ButtonType"),CardSettingsType:s(()=>uq,"CardSettingsType"),CardTemplateType:s(()=>lq,"CardTemplateType"),ChartCardType:s(()=>cq,"ChartCardType"),ChartType:s(()=>Pq,"ChartType"),ContainerLayoutType:s(()=>_q,"ContainerLayoutType"),CreateMode:s(()=>Iq,"CreateMode"),DefaultContentView:s(()=>Sq,"DefaultContentView"),DefaultFilterMode:s(()=>Eq,"DefaultFilterMode"),ExtensionFragmentTypes:s(()=>Oq,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:s(()=>nde,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:s(()=>sde,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:s(()=>ide,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:s(()=>rde,"FE_TEMPLATE_V2_OBJECT_PAGE"),HAlign:s(()=>gq,"HAlign"),LinkListFlavorType:s(()=>hq,"LinkListFlavorType"),ListFlavorType:s(()=>fq,"ListFlavorType"),ListTypeType:s(()=>pq,"ListTypeType"),PopinLayout:s(()=>vq,"PopinLayout"),SAPUI5_CONTROLLER_EXTENSION:s(()=>ade,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:s(()=>ode,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:s(()=>ude,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:s(()=>lde,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:s(()=>cde,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:s(()=>xq,"SectionPosition"),SortOrderType:s(()=>dq,"SortOrderType"),Strategy:s(()=>Tq,"Strategy"),TableColumnExtensionTypeV2:s(()=>bq,"TableColumnExtensionTypeV2"),TableTypeV2:s(()=>yq,"TableTypeV2"),cardTemplateSettingsMap:s(()=>tde,"cardTemplateSettingsMap"),cardTemplateTypeMap:s(()=>ede,"cardTemplateTypeMap"),customColumnViewTypes:s(()=>mq,"customColumnViewTypes")});Cq.exports=Zpe(oq);var aq=(e=>(e.Accept="Accept",e.Back="Back",e.Default="Default",e.Emphasized="Emphasized",e.Ghost="Ghost",e.Reject="Reject",e.Transparent="Transparent",e.Unstyled="Unstyled",e.Up="Up",e))(aq||{}),cq=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(cq||{}),lq=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.list="sap.ovp.cards.list",e.linklist="sap.ovp.cards.linklist",e.table="sap.ovp.cards.table",e.stack="sap.ovp.cards.stack",e))(lq||{}),ede={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.stack":"StackCard"},tde={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},uq=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.listCardSettings="listCardSettings",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e))(uq||{}),fq=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(fq||{}),pq=(e=>(e.extended="extended",e.condensed="condensed",e))(pq||{}),dq=(e=>(e.ascending="ascending",e.descending="descending",e))(dq||{}),hq=(e=>(e.standard="standard",e.carousel="carousel",e))(hq||{}),gq=(e=>(e.initial="Initial",e.left="Left",e.center="Center",e.right="Right",e.begin="Begin",e.end="End",e))(gq||{}),mq=(e=>(e.XML="XML",e))(mq||{}),yq=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(yq||{}),bq=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(bq||{}),vq=(e=>(e.Block="Block",e.GridLarge="GridLarge",e.GridSmall="GridSmall",e))(vq||{}),Tq=(e=>(e.extension="extension",e))(Tq||{}),Sq=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(Sq||{}),Eq=(e=>(e.visual="visual",e.compact="compact",e))(Eq||{}),Pq=(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))(Pq||{}),Aq=(e=>(e.Circle="Circle",e.Square="Square",e))(Aq||{}),xq=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(xq||{}),Oq=(e=>(e.XML="XML",e))(Oq||{}),Iq=(e=>(e.inline="inline",e))(Iq||{}),nde="sap.suite.ui.generic.template",rde="sap.suite.ui.generic.template.ObjectPage",ide="sap.suite.ui.generic.template.ListReport",sde="sap.suite.ui.generic.template.AnalyticalListPage",ode="sap.ui.viewExtensions",ade="sap.ui.controllerExtensions",cde="sap.suite.ui.generic.template.ObjectPage.view.Details",lde="sap.suite.ui.generic.template.ListReport.view.ListReport",ude="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",_q=(e=>(e.fixed="fixed",e.resizable="resizable",e))(_q||{})});var Rq=y(Nq=>{"use strict";Object.defineProperty(Nq,"__esModule",{value:!0})});var Fq=y(fl=>{"use strict";var fde=fl&&fl.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:s(function(){return t[n]},"get")}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),pde=fl&&fl.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&fde(t,e,n)};Object.defineProperty(fl,"__esModule",{value:!0});pde(Rq(),fl)});var Pe=y(Ar=>{"use strict";var Lq=Ar&&Ar.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:s(function(){return t[n]},"get")}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),dde=Ar&&Ar.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),jq=Ar&&Ar.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Lq(t,e,n)},Dq=Ar&&Ar.__importStar||(function(){var e=s(function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[r.length]=i);return r},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),i=0;i<r.length;i++)r[i]!=="default"&&Lq(n,t,r[i]);return dde(n,t),n}})();Object.defineProperty(Ar,"__esModule",{value:!0});Ar.Parser=Ar.v2=void 0;jq(Z2(),Ar);jq(sq(),Ar);Ar.v2=Dq(wq());Ar.Parser=Dq(Fq())});var lx=y((zQe,Zq)=>{"use strict";var Rde=s(function(t){return Fde(t)&&!Lde(t)},"isMergeableObject");function Fde(e){return!!e&&typeof e=="object"}s(Fde,"isNonNullObject");function Lde(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||$de(e)}s(Lde,"isSpecial");var jde=typeof Symbol=="function"&&Symbol.for,Dde=jde?Symbol.for("react.element"):60103;function $de(e){return e.$$typeof===Dde}s($de,"isReactElement");function kde(e){return Array.isArray(e)?[]:{}}s(kde,"emptyTarget");function Gd(e,t){return t.clone!==!1&&t.isMergeableObject(e)?af(kde(e),e,t):e}s(Gd,"cloneUnlessOtherwiseSpecified");function Mde(e,t,n){return e.concat(t).map(function(r){return Gd(r,n)})}s(Mde,"defaultArrayMerge");function Vde(e,t){if(!t.customMerge)return af;var n=t.customMerge(e);return typeof n=="function"?n:af}s(Vde,"getMergeFunction");function qde(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}s(qde,"getEnumerableOwnPropertySymbols");function zq(e){return Object.keys(e).concat(qde(e))}s(zq,"getKeys");function Qq(e,t){try{return t in e}catch{return!1}}s(Qq,"propertyIsOnObject");function Ude(e,t){return Qq(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}s(Ude,"propertyIsUnsafe");function Bde(e,t,n){var r={};return n.isMergeableObject(e)&&zq(e).forEach(function(i){r[i]=Gd(e[i],n)}),zq(t).forEach(function(i){Ude(e,i)||(Qq(e,i)&&n.isMergeableObject(t[i])?r[i]=Vde(i,n)(e[i],t[i],n):r[i]=Gd(t[i],n))}),r}s(Bde,"mergeObject");function af(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Mde,n.isMergeableObject=n.isMergeableObject||Rde,n.cloneUnlessOtherwiseSpecified=Gd;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):Bde(e,t,n):Gd(t,n)}s(af,"deepmerge");af.all=s(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return af(r,i,n)},{})},"deepmergeAll");var Gde=af;Zq.exports=Gde});var db=y(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.mergeAnnotations=Pt.mergeRawMetadata=Pt.addGetByValue=Pt.createIndexedFind=Pt.lazy=Pt.initialSymbol=Pt.Decimal=Pt.Double=Pt.isComplexTypeDefinition=Pt.unalias=Pt.alias=Pt.substringBeforeLast=Pt.substringBeforeFirst=Pt.splitAtLast=Pt.splitAtFirst=Pt.defaultReferences=Pt.TermToTypes=Pt.EnumIsFlag=void 0;var Hde=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(Pt,"EnumIsFlag",{enumerable:!0,get:s(function(){return Hde.EnumIsFlag},"get")});var Wde=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(Pt,"TermToTypes",{enumerable:!0,get:s(function(){return Wde.TermToTypes},"get")});var Kde=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(Pt,"defaultReferences",{enumerable:!0,get:s(function(){return Kde.VocabularyReferences},"get")});function eU(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}s(eU,"splitAt");function tU(e,t){return t<0?e:e.substring(0,t)}s(tU,"substringAt");function pb(e,t){return eU(e,e.indexOf(t))}s(pb,"splitAtFirst");Pt.splitAtFirst=pb;function nU(e,t){return eU(e,e.lastIndexOf(t))}s(nU,"splitAtLast");Pt.splitAtLast=nU;function Jde(e,t){return tU(e,e.indexOf(t))}s(Jde,"substringBeforeFirst");Pt.substringBeforeFirst=Jde;function Yde(e,t){return tU(e,e.lastIndexOf(t))}s(Yde,"substringBeforeLast");Pt.substringBeforeLast=Yde;function rU(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((o,a)=>(o[a.namespace]=a,o),{})),!t)return t;let[n,r]=nU(t,"."),i=e.reverseReferenceMap[n];if(i)return`${i.alias}.${r}`;if(t.includes("@")){let[o,a]=pb(t,"@");return`${o}@${rU(e,a)}`}else return t}s(rU,"alias");Pt.alias=rU;function ux(e,t,n){var r;let i=s(o=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(p=>[p.alias,p])));let[a,c]=pb(o,".");if(!c||c.includes("."))return o;let l=a.startsWith("@"),u=l?a.substring(1):a,f=e.referenceMap[u];return f?l?`@${f.namespace}.${c}`:`${f.namespace}.${c}`:n&&!l?`${n}.${c}`:o},"_unalias");return(r=t==null?void 0:t.split("/").reduce((o,a)=>{let[c,l]=pb(a,"("),u=[i(c)];if(l){let f=l.slice(0,-1);u.push(`(${i(f)})`)}return o.push(u.join("")),o},[]))===null||r===void 0?void 0:r.join("/")}s(ux,"unalias");Pt.unalias=ux;function Xde(e){return!!e&&e._type==="ComplexType"&&!!e.properties}s(Xde,"isComplexTypeDefinition");Pt.isComplexTypeDefinition=Xde;function zde(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}s(zde,"Double");Pt.Double=zde;function Qde(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}s(Qde,"Decimal");Pt.Decimal=Qde;Pt.initialSymbol=Symbol("initial");function Zde(e,t,n,r){let i=Pt.initialSymbol;Object.defineProperty(t,n,{enumerable:!0,get(){return i===Pt.initialSymbol&&(i=r()),i},set(o){i=o}}),e.collectDynamic(t,n)}s(Zde,"lazy");Pt.lazy=Zde;function iU(e,t){let n=new Map;return s(function(i){let o=n.get(i);return(o==null?void 0:o[t])===i?o:e.find(a=>{if(!(a!=null&&a.hasOwnProperty(t)))return!1;let c=a[t];return n.set(c,a),c===i})},"find")}s(iU,"createIndexedFind");Pt.createIndexedFind=iU;function ehe(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:iU(e,t)});else throw new Error(`Property '${n}' already exists`);return e}s(ehe,"addGetByValue");Pt.addGetByValue=ehe;function the(e,t){var n,r;e.references.splice(0,0,...t.references),e.schema.annotations=Object.assign(e.schema.annotations,t.schema.annotations),e.schema.associationSets.splice(0,0,...t.schema.associationSets),e.schema.associations.splice(0,0,...t.schema.associations),e.schema.entitySets.splice(0,0,...t.schema.entitySets),e.schema.singletons.splice(0,0,...t.schema.singletons),e.schema.actions.splice(0,0,...t.schema.actions),e.schema.actionImports.splice(0,0,...t.schema.actionImports),e.schema.entityTypes.splice(0,0,...t.schema.entityTypes),e.schema.complexTypes.splice(0,0,...t.schema.complexTypes),e.schema.enumTypes.splice(0,0,...t.schema.enumTypes),e.schema.typeDefinitions.splice(0,0,...t.schema.typeDefinitions),(n=(r=e.schema).entityContainers)!==null&&n!==void 0||(r.entityContainers={}),e.schema.entityContainers[t.identification]=t.schema.entityContainer}s(the,"mergeRawMetadata");Pt.mergeRawMetadata=the;function nhe(e,...t){return t.reduceRight((n,{name:r,annotationList:i})=>{var o;for(let{target:a,annotations:c}of i){let l=(o=ux(e,a))!==null&&o!==void 0?o:a;n[l]||(n[l]=[]);let u=c.map(f=>{var p;return f.term=(p=ux(e,f.term))!==null&&p!==void 0?p:f.term,f.fullyQualifiedName=f.qualifier?`${l}@${f.term}#${f.qualifier}`:`${l}@${f.term}`,f.__source=r,f}).filter(f=>!n[l].some(p=>p.term===f.term&&p.qualifier===f.qualifier));n[l].push(...u)}return n},{})}s(nhe,"mergeAnnotations");Pt.mergeAnnotations=nhe});var bU=y(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.convert=pi.CONVERTER_ROOT=void 0;var hb=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Ie=db(),As=Symbol("Annotation Target");pi.CONVERTER_ROOT=Symbol("Converter Root");function Io(e,t){return e[e.length-1]!==t&&e.push(t),e}s(Io,"appendObjectPath");function Li(e,t,n,r){var i,o,a,c,l;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let u=n.split("/").reduce((p,d)=>{if(d.includes("@")){let[h,m]=(0,Ie.splitAtFirst)(d,"@");p.push(h),p.push(`@${m}`)}else p.push(d);return p},[]);if(t===void 0)u[0].startsWith(`${e.rawSchema.namespace}.`)&&u[0]!==((i=e.getConvertedEntityContainer())===null||i===void 0?void 0:i.fullyQualifiedName)?(t=(c=(a=(o=e.getConvertedEntityType(u[0]))!==null&&o!==void 0?o:e.getConvertedComplexType(u[0]))!==null&&a!==void 0?a:e.getConvertedAction(u[0]))!==null&&c!==void 0?c:e.getConvertedAction(`${u[0]}()`),u.shift()):t=e.getConvertedEntityContainer();else if(t[As]!==void 0)t=t[As];else if(t._type==="Property"){let p=(0,Ie.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(l=e.getConvertedEntityType(p))!==null&&l!==void 0?l:e.getConvertedComplexType(p)}let f=u.reduce((p,d)=>{var h,m,b,T,I;let F=s(N=>(p.messages.push({message:N}),p.target=void 0,p),"error");if(p.target===void 0)return p;if(p.objectPath=Io(p.objectPath,p.target),d.startsWith("@")&&d!=="@$ui5.overload"){let[N,$]=e.splitTerm(d),j=(h=p.target.annotations[N.substring(1)])===null||h===void 0?void 0:h[$];return j!==void 0?(p.target=j,p):F(`Annotation '${d.substring(1)}' not found on ${p.target._type} '${p.target.fullyQualifiedName}'`)}if(p.target.$target){let N;if(d==="$AnnotationPath"?N=p.target.value:d==="$Path"&&(N=p.target.path),N!==void 0){let $=Li(e,p.target[As],N);return $.objectPath.forEach(j=>{p.objectPath.includes(j)||(p.objectPath=Io(p.objectPath,j))}),p.target=$.target,p.objectPath=Io(p.objectPath,p.target),p}}switch((m=p.target)===null||m===void 0?void 0:m._type){case"Schema":break;case"EntityContainer":{let j=p.target;if(d===""||e.unalias(d)===j.fullyQualifiedName)return p;let M=(T=(b=j.entitySets.by_name(d))!==null&&b!==void 0?b:j.singletons.by_name(d))!==null&&T!==void 0?T:j.actionImports.by_name(d);if(M)return p.target=M,p}break;case"EntitySet":case"Singleton":{let j=p.target;if(d===""||d==="$Type")return p.target=j.entityType,p;if(d==="$")return p;if(d==="$NavigationPropertyBinding"){let k=j.navigationPropertyBinding;return p.target=k,p}let M=Li(e,j.entityType,d);return p.target=M.target,p.objectPath=M.objectPath.reduce(Io,p.objectPath),p}case"EntityType":{let j=p.target;if(d===""||d==="$Type")return p;let M=j.entityProperties.by_name(d);if(M)return p.target=M,p;let k=j.navigationProperties.by_name(d);if(k)return p.target=k,p;let U=(0,Ie.substringBeforeFirst)(e.unalias(d),"("),R=j.actions[U];if(R)return p.target=R,p}break;case"ActionImport":{let j=Li(e,p.target.action,d);return p.target=j.target,p.objectPath=j.objectPath.reduce(Io,p.objectPath),p}case"Action":{let j=p.target;if(d===""||d==="@$ui5.overload"||d==="0")return p;if(d==="$Parameter"&&j.isBound)return p.target=j.parameters,p;let M=(I=j.parameters[d])!==null&&I!==void 0?I:j.parameters.find(k=>k.name===d);if(M)return p.target=M,p;break}case"Property":{let M=p.target.targetType;if(M!==void 0){let k=M.properties.by_name(d);if(k)return p.target=k,p;let U=M.navigationProperties.by_name(d);if(U)return p.target=U,p}}break;case"ActionParameter":let N=p.target.typeReference;if(N!==void 0){let j=Li(e,N,d);return p.target=j.target,p.objectPath=j.objectPath.reduce(Io,p.objectPath),p}break;case"NavigationProperty":let $=Li(e,p.target.targetType,d);return p.target=$.target,p.objectPath=$.objectPath.reduce(Io,p.objectPath),p;default:if(d==="")return p;if(p.target[d])return p.target=p.target[d],p.objectPath=Io(p.objectPath,p.target),p}return F(`Element '${d}' not found at ${p.target._type} '${p.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(f.messages.forEach(p=>e.logError(p.message)),!f.target)if(r){let p=lU(e,r,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
2
|
-
`+n+`
|
|
3
|
-
|
|
4
|
-
Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
|
|
5
|
-
|
|
6
|
-
<Annotation Term = `+r+`>
|
|
7
|
-
<Record Type = `+p+`>
|
|
8
|
-
<AnnotationPath = `+n+">")}else e.logError("Unable to resolve the path expression: "+n+`
|
|
9
|
-
|
|
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
|
-
|
|
12
|
-
<Annotation Term = `+u[0]+`>
|
|
13
|
-
<PropertyValue Path= `+u[1]+">");return f}s(Li,"resolveTarget");function rhe(e){return e.includes("@")}s(rhe,"isAnnotationPath");function sU(e,t,n,r,i){let o={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[As]:r};return o[pi.CONVERTER_ROOT]=()=>e.getConvertedOutput(),(0,Ie.lazy)(e,o,"$target",()=>Li(e,r,t.PropertyPath,i).target),o}s(sU,"mapPropertyPath");function oU(e,t,n,r,i){let o={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[As]:r};return o[pi.CONVERTER_ROOT]=()=>e.getConvertedOutput(),(0,Ie.lazy)(e,o,"$target",()=>Li(e,r,o.value,i).target),o}s(oU,"mapAnnotationPath");function aU(e,t,n,r,i){var o;let a={type:"NavigationPropertyPath",value:(o=t.NavigationPropertyPath)!==null&&o!==void 0?o:"",fullyQualifiedName:n,[As]:r};return a[pi.CONVERTER_ROOT]=()=>e.getConvertedOutput(),(0,Ie.lazy)(e,a,"$target",()=>Li(e,r,t.NavigationPropertyPath,i).target),a}s(aU,"mapNavigationPropertyPath");function ihe(e,t,n,r,i){let o={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[As]:r};return o[pi.CONVERTER_ROOT]=()=>e.getConvertedOutput(),(0,Ie.lazy)(e,o,"$target",()=>Li(e,r,t.Path,i).target),o}s(ihe,"mapPath");function cU(e,t,n,r,i,o,a){if(o!==void 0)switch(o.type){case"String":return o.String;case"Int":return o.Int;case"Bool":return o.Bool;case"Double":return(0,Ie.Double)(o.Double);case"Decimal":return(0,Ie.Decimal)(o.Decimal);case"Date":return o.Date;case"EnumMember":let c=o.EnumMember.split(" ").map(l=>{var u;let f=(u=e.unalias(l))!==null&&u!==void 0?u:"";return(0,Ie.alias)(hb.VocabularyReferences,f)});return c[0]!==void 0&&Ie.EnumIsFlag[(0,Ie.substringBeforeFirst)(c[0],"/")]?c:c[0];case"PropertyPath":return sU(e,o,a,t,n);case"NavigationPropertyPath":return aU(e,o,a,t,n);case"AnnotationPath":return oU(e,o,a,t,n);case"Path":return rhe(o.Path)?Li(e,t,e.unalias(o.Path),n).target:ihe(e,o,a,t,n);case"Record":return dx(e,n,t,r,i,o.Record,a);case"Collection":return uU(e,t,n,r,i,o.Collection,a);default:return o}}s(cU,"parseValue");function lU(e,t,n,r){let i=Ie.TermToTypes[t];return r&&(t=`${(0,Ie.substringBeforeLast)(t,".")}.${r}`,i=Ie.TermToTypes[t]),e.logError(`The type of the record used within the term ${t} was not defined and was inferred as ${i}.
|
|
14
|
-
Hint: If possible, try to maintain the Type property for each Record.
|
|
15
|
-
<Annotations Target="${n}">
|
|
16
|
-
<Annotation Term="${t}">
|
|
17
|
-
<Record>...</Record>
|
|
18
|
-
</Annotation>
|
|
19
|
-
</Annotations>`),i}s(lU,"inferTypeFromTerm");function she(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}s(she,"isDataFieldWithForAction");function ohe(e,t,n,r,i){let o;return!i.type&&t?o=lU(e,t,n.fullyQualifiedName,r):o=e.unalias(i.type),o}s(ohe,"parseRecordType");function dx(e,t,n,r,i,o,a){let c={$Type:ohe(e,t,n,r,o),fullyQualifiedName:a,[As]:n,__source:i};c[pi.CONVERTER_ROOT]=()=>e.getConvertedOutput();for(let l of o.propertyValues)(0,Ie.lazy)(e,c,l.name,()=>cU(e,n,t,l.name,i,l.value,`${a}/${l.name}`));return(0,Ie.lazy)(e,c,"annotations",pU(e,o,c)),c.hasOwnProperty("CollectionPath")&&(0,Ie.lazy)(e,c,"CollectionPathTarget",()=>{var l,u;let f=(u=(l=e.rawSchema.entityContainers)===null||l===void 0?void 0:l[i].fullyQualifiedName)!==null&&u!==void 0?u:e.rawSchema.entityContainer.fullyQualifiedName;return e.getConvertedEntitySet(f+"/"+c.CollectionPath)}),she(c)&&(0,Ie.lazy)(e,c,"ActionTarget",()=>{var l,u;let f=e.unalias((l=c.Action)===null||l===void 0?void 0:l.toString()),p=n.actions[f];return p||(p=(u=e.getConvertedActionImport(f))===null||u===void 0?void 0:u.action),p||(p=e.getConvertedAction(f),p!=null&&p.isBound||(p=void 0)),p||e.logError(`${c.fullyQualifiedName}: Unable to resolve '${c.Action}' ('${f}')`),p}),c}s(dx,"parseRecord");function ahe(e){let t=e.type;if(t===void 0&&e.length>0){let n=e[0];n.hasOwnProperty("PropertyPath")?t="PropertyPath":n.hasOwnProperty("Path")?t="Path":n.hasOwnProperty("AnnotationPath")?t="AnnotationPath":n.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":typeof n=="object"&&(n.hasOwnProperty("type")||n.hasOwnProperty("propertyValues"))?t="Record":typeof n=="string"&&(t="String")}else t===void 0&&(t="EmptyCollection");return t}s(ahe,"getOrInferCollectionType");function uU(e,t,n,r,i,o,a){switch(ahe(o)){case"PropertyPath":return o.map((l,u)=>sU(e,l,`${a}/${u}`,t,n));case"Path":return o.map(l=>Li(e,t,l.Path,n).target);case"AnnotationPath":return o.map((l,u)=>oU(e,l,`${a}/${u}`,t,n));case"NavigationPropertyPath":return o.map((l,u)=>aU(e,l,`${a}/${u}`,t,n));case"Record":return o.map((l,u)=>dx(e,n,t,r,i,l,`${a}/${u}`));case"Apply":case"Null":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return o.map(l=>l);case"String":return o.map(l=>typeof l=="string"||l===void 0?l:l.String);default:if(o.length===0)return[];throw new Error("Unsupported case")}}s(uU,"parseCollection");function che(e){return!!e.targetTypeName}s(che,"isV4NavigationProperty");function lhe(e,t,n){var r;let i;if(n.record)i=dx(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)i=cU(e,t,n.term,"",n.__source,(r=n.value)!==null&&r!==void 0?r:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)i=uU(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof i){case"string":i=new String(i);break;case"boolean":i=new Boolean(i);break;case"number":i=new Number(i);break;default:break}i.fullyQualifiedName=n.fullyQualifiedName,i[As]=t,i[pi.CONVERTER_ROOT]||(i[pi.CONVERTER_ROOT]=()=>e.getConvertedOutput());let[o,a]=e.splitTerm(n.term);i.term=e.unalias(`${o}.${a}`,hb.VocabularyReferences),i.qualifier=n.qualifier,i.__source=n.__source;try{(0,Ie.lazy)(e,i,"annotations",pU(e,n,i))}catch{}return i}s(lhe,"convertAnnotation");var hx=class hx{getConvertedOutput(){return this.convertedOutput}getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let r=Object.keys(this.rawSchema.annotations).map(i=>({name:i,annotationList:this.rawSchema.annotations[i]}));this.annotationsByTarget=(0,Ie.mergeAnnotations)(this.rawMetadata.references,...r)}return(n=this.annotationsByTarget[t])!==null&&n!==void 0?n:[]}getConvertedEntityContainer(){return this.getConvertedElement(this.rawMetadata.schema.entityContainer.fullyQualifiedName,this.rawMetadata.schema.entityContainer,dU)}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 r=t.reduce((i,o)=>{let a=this.getConvertedElement(o.fullyQualifiedName,o,n);return a&&i.push(a),i},[]);return(0,Ie.addGetByValue)(r,"name"),(0,Ie.addGetByValue)(r,"fullyQualifiedName"),r}:()=>this.getConvertedElement(t.fullyQualifiedName,t,n)}reset(){for(let t in this.dynamicElements){let n=this.dynamicElements[t].keys,r=this.dynamicElements[t].target;for(let i of n)r[i]=Ie.initialSymbol}this.annotationsByTarget=void 0}collectDynamic(t,n){var r,i;let o=t.fullyQualifiedName;o===void 0&&(o="Unknown"+this.unknownCount++),(r=(i=this.dynamicElements)[o])!==null&&r!==void 0||(i[o]={target:t,keys:[]}),this.dynamicElements[o].keys.push(n)}constructor(t,n){this.unknownCount=0,this.convertedElements=new Map,this.dynamicElements={},this.rawMetadata=t,this.rawSchema=t.schema,this.convertedOutput=n}addExtraMetadata(t){(0,Ie.mergeRawMetadata)(this.rawMetadata,t)}getConvertedElement(t,n,r){let i=this.convertedElements.get(t);if(i===void 0){let o=typeof n=="function"?n.apply(void 0,[t]):n;o!==void 0&&(i=r.apply(void 0,[this,o]),this.convertedElements.set(t,i))}return i}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,Ie.alias)(hb.VocabularyReferences,t);return(0,Ie.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var r;return(r=(0,Ie.unalias)(n,t,this.rawSchema.namespace))!==null&&r!==void 0?r:""}};s(hx,"Converter");var fx=hx;function Hd(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}s(Hd,"resolveEntityType");function fU(e,t){return()=>Object.keys(t).reduce((n,r)=>{let i=t[r];return(0,Ie.lazy)(e,n,r,()=>{var o;return(o=e.getConvertedEntitySet(i))!==null&&o!==void 0?o:e.getConvertedSingleton(i)}),n},{})}s(fU,"resolveNavigationPropertyBindings");function xs(e,t){let n=t.annotations;return()=>gb(e,t,n??e.getAnnotations(t.fullyQualifiedName))}s(xs,"resolveAnnotations");function pU(e,t,n){return()=>{let r=n.fullyQualifiedName,i;return t.annotations&&t.annotations.length>0?i=t.annotations:i=e.getAnnotations(r),i==null||i.forEach(o=>{o.target=r,o.__source=n.__source,o[As]=n[As],o[pi.CONVERTER_ROOT]=()=>e.getConvertedOutput(),o.fullyQualifiedName=`${r}@${o.term}`}),gb(e,n,i??[])}}s(pU,"resolveAnnotationsOnAnnotation");function gb(e,t,n){return n.reduce((r,i)=>{let[o,a]=e.splitTerm(i.term),c=`${a}${i.qualifier?"#"+i.qualifier:""}`;return r[o]===void 0&&(r[o]={_keys:[]}),r[o].hasOwnProperty(c)||(r[o]._keys.push(c),(0,Ie.lazy)(e,r[o],c,()=>e.getConvertedElement(i.fullyQualifiedName,i,(l,u)=>lhe(l,t,u)))),r},{})}s(gb,"createAnnotationsObject");function dU(e,t){let n=t;return(0,Ie.lazy)(e,n,"annotations",xs(e,t)),(0,Ie.lazy)(e,n,"entitySets",e.convert(e.rawSchema.entitySets,gU)),(0,Ie.lazy)(e,n,"singletons",e.convert(e.rawSchema.singletons,hU)),(0,Ie.lazy)(e,n,"actionImports",e.convert(e.rawSchema.actionImports,yU)),n}s(dU,"convertEntityContainer");function hU(e,t){let n=t;(0,Ie.lazy)(e,n,"entityType",Hd(e,t.entityTypeName)),(0,Ie.lazy)(e,n,"annotations",xs(e,n));let r=t.navigationPropertyBinding;return(0,Ie.lazy)(e,n,"navigationPropertyBinding",fU(e,r)),n}s(hU,"convertSingleton");function gU(e,t){let n=t;(0,Ie.lazy)(e,n,"entityType",Hd(e,t.entityTypeName)),(0,Ie.lazy)(e,n,"annotations",xs(e,n));let r=t.navigationPropertyBinding;return(0,Ie.lazy)(e,n,"navigationPropertyBinding",fU(e,r)),n}s(gU,"convertEntitySet");function uhe(e,t){let n=t;return t.keys.forEach(r=>{r.isKey=!0}),(0,Ie.lazy)(e,n,"annotations",xs(e,t)),(0,Ie.lazy)(e,n,"keys",e.convert(t.keys,px)),(0,Ie.lazy)(e,n,"entityProperties",e.convert(t.entityProperties,px)),(0,Ie.lazy)(e,n,"navigationProperties",e.convert(t.navigationProperties,mU)),(0,Ie.lazy)(e,n,"actions",()=>e.rawSchema.actions.filter(r=>r.isBound&&(r.sourceType===t.fullyQualifiedName||r.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((r,i)=>{let o=`${e.rawSchema.namespace}.${i.name}`;return r[o]=e.getConvertedAction(i.fullyQualifiedName),r},{})),n.resolvePath=(r,i)=>{let o=Li(e,t,r);return i?{target:o.target,visitedObjects:o.objectPath,messages:o.messages}:o.target},n}s(uhe,"convertEntityType");function px(e,t){let n=t;return(0,Ie.lazy)(e,n,"annotations",xs(e,t)),(0,Ie.lazy)(e,n,"targetType",()=>{var r;let i=t.type,o=i.startsWith("Collection")?i.substring(11,i.length-1):i;return(r=e.getConvertedComplexType(o))!==null&&r!==void 0?r:e.getConvertedTypeDefinition(o)}),n}s(px,"convertProperty");function mU(e,t){var n,r,i,o,a;let c=t;if(c.referentialConstraint=(n=c.referentialConstraint)!==null&&n!==void 0?n:[],c.referentialConstraint.length===0){let u=e.getAnnotations(t.fullyQualifiedName).find(f=>f.term==="com.sap.vocabularies.Common.v1.ReferentialConstraint");u&&(c.referentialConstraint=(i=(r=u.collection)===null||r===void 0?void 0:r.map(f=>{var p,d;let h=(p=f.propertyValues.find(b=>b.name==="ReferencedProperty"))===null||p===void 0?void 0:p.value,m="";if(h.PropertyPath){let b=h.PropertyPath.split("/");b.shift(),m=b.join("/")}return{sourceProperty:((d=f.propertyValues.find(b=>b.name==="Property"))===null||d===void 0?void 0:d.value).PropertyPath,targetTypeName:c.targetTypeName,targetProperty:m}}))!==null&&i!==void 0?i:[])}if(!che(t)){let l=(o=e.rawSchema.associations.find(u=>u.fullyQualifiedName===t.relationship))===null||o===void 0?void 0:o.associationEnd.find(u=>u.role===t.toRole);c.isCollection=(l==null?void 0:l.multiplicity)==="*",c.targetTypeName=(a=l==null?void 0:l.type)!==null&&a!==void 0?a:""}return(0,Ie.lazy)(e,c,"targetType",Hd(e,t.targetTypeName)),(0,Ie.lazy)(e,c,"annotations",xs(e,t)),c}s(mU,"convertNavigationProperty");function yU(e,t){let n=t;return(0,Ie.lazy)(e,n,"annotations",xs(e,t)),(0,Ie.lazy)(e,n,"action",()=>{let r=e.rawSchema.actions.filter(i=>!i.isBound&&i.fullyQualifiedName.startsWith(t.actionName+"("));return r.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(r[0].fullyQualifiedName)}),n}s(yU,"convertActionImport");function fhe(e,t){let n=t;return n.sourceType&&(0,Ie.lazy)(e,n,"sourceEntityType",Hd(e,t.sourceType)),n.returnType&&((0,Ie.lazy)(e,n,"returnEntityType",Hd(e,t.returnType)),(0,Ie.lazy)(e,n,"returnTypeReference",()=>{var r,i;let o=n.returnType.startsWith("Collection")?n.returnType.substring(11,n.returnType.length-1):n.returnType;return(i=(r=e.getConvertedEntityType(o))!==null&&r!==void 0?r:e.getConvertedComplexType(o))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(o)})),(0,Ie.lazy)(e,n,"parameters",e.convert(t.parameters,phe)),(0,Ie.lazy)(e,n,"annotations",()=>{let r=(0,Ie.substringBeforeFirst)(t.fullyQualifiedName,"("),i=t.fullyQualifiedName,o=e.getAnnotations(i),a=e.getAnnotations(r);for(let c of a)o.some(l=>l.term===c.term&&l.qualifier===c.qualifier)||o.push(c);return gb(e,t,o)}),n}s(fhe,"convertAction");function phe(e,t){let n=t;return(0,Ie.lazy)(e,n,"typeReference",()=>{var r,i;let o=t.type;return o.startsWith("Collection(")&&(o=o.substring(11,o.length-1)),(i=(r=e.getConvertedEntityType(o))!==null&&r!==void 0?r:e.getConvertedComplexType(o))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(o)}),(0,Ie.lazy)(e,n,"annotations",()=>{let r=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),i=t.fullyQualifiedName,o=e.getAnnotations(i),a=e.getAnnotations(r);for(let c of a)o.some(l=>l.term===c.term&&l.qualifier===c.qualifier)||o.push(c);return gb(e,t,o)}),n}s(phe,"convertActionParameter");function dhe(e,t){let n=t;return(0,Ie.lazy)(e,n,"properties",e.convert(t.properties,px)),(0,Ie.lazy)(e,n,"navigationProperties",e.convert(t.navigationProperties,mU)),(0,Ie.lazy)(e,n,"annotations",xs(e,t)),n}s(dhe,"convertComplexType");function hhe(e,t){let n=t;return(0,Ie.lazy)(e,n,"annotations",xs(e,t)),n}s(hhe,"convertEnumMember");function ghe(e,t){let n=t;return(0,Ie.lazy)(e,n,"members",e.convert(t.members,hhe)),(0,Ie.lazy)(e,n,"annotations",xs(e,t)),n}s(ghe,"convertEnumType");function mhe(e,t){let n=t;return(0,Ie.lazy)(e,n,"annotations",xs(e,t)),n}s(mhe,"convertTypeDefinition");function yhe(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:hb.VocabularyReferences,diagnostics:[]},n=new fx(e,t);return t.getConverter=()=>n,(0,Ie.lazy)(n,t,"entityContainer",n.convert(n.rawSchema.entityContainer,dU)),(0,Ie.lazy)(n,t,"entitySets",n.convert(n.rawSchema.entitySets,gU)),(0,Ie.lazy)(n,t,"singletons",n.convert(n.rawSchema.singletons,hU)),(0,Ie.lazy)(n,t,"entityTypes",n.convert(n.rawSchema.entityTypes,uhe)),(0,Ie.lazy)(n,t,"actions",n.convert(n.rawSchema.actions,fhe)),(0,Ie.lazy)(n,t,"complexTypes",n.convert(n.rawSchema.complexTypes,dhe)),(0,Ie.lazy)(n,t,"enumTypes",n.convert(n.rawSchema.enumTypes,ghe)),(0,Ie.lazy)(n,t,"actionImports",n.convert(n.rawSchema.actionImports,yU)),(0,Ie.lazy)(n,t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,mhe)),t.resolvePath=s(function(i,o){let a=Li(n,o,i);return a.target&&Io(a.objectPath,a.target),a},"resolvePath"),t.addValueListWithReferences=function(r){let i=t.getConverter();i.addExtraMetadata(r),i.reset()},t}s(yhe,"convert");pi.convert=yhe});var EU=y(yb=>{"use strict";Object.defineProperty(yb,"__esModule",{value:!0});yb.revertTermToGenericType=void 0;var gx=db();function bhe(e,t){var n,r,i,o,a,c,l;let u;if(Array.isArray(t)){let f=t[0],p=!1;if(f&&typeof f=="string"){let d=f.valueOf().split(".");d.length>1&&e.find(h=>h.alias===d[0])&&(p=gx.EnumIsFlag[(0,gx.substringBeforeFirst)(f,"/")])}p?u={type:"EnumMember",EnumMember:t.map(d=>d.valueOf()).join(" ")}:u={type:"Collection",Collection:t.map(d=>mb(e,d))}}else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))u={type:"Decimal",Decimal:t.valueOf()};else if(!((r=t.isDouble)===null||r===void 0)&&r.call(t))u={type:"Double",Double:t.valueOf()};else if(!((i=t.isString)===null||i===void 0)&&i.call(t)){let f=t.valueOf().split(".");f.length>1&&e.find(p=>p.alias===f[0])?u={type:"EnumMember",EnumMember:t.valueOf()}:u={type:"String",String:t.valueOf()}}else!((o=t.isInt)===null||o===void 0)&&o.call(t)?u={type:"Int",Int:t.valueOf()}:!((a=t.isFloat)===null||a===void 0)&&a.call(t)?u={type:"Float",Float:t.valueOf()}:!((c=t.isDate)===null||c===void 0)&&c.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:mb(e,t)});return u}s(bhe,"revertObjectToRawType");function vU(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let i=t.toString().split(".");i.length>1&&e.find(o=>o.alias===i[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;default:n=bhe(e,t);break}return n}s(vU,"revertValueToRawType");var vhe=["$Type","term","__source","qualifier","ActionTarget","CollectionPathTarget","fullyQualifiedName","annotations"];function TU(e,t,n){Object.keys(t).filter(r=>r!=="_annotations").forEach(r=>{Object.keys(t[r]).filter(i=>i!=="_keys").forEach(i=>{let o=SU(e,t[r][i]);if(!o.term){let a=(0,gx.unalias)(e,`${r}.${i}`);if(a){let c=a.split("#");o.term=c[0],c.length>1&&(o.qualifier=c[1])}}n.push(o)})})}s(TU,"revertAnnotationsToRawType");function mb(e,t){if(typeof t=="string")return{type:"String",String:t};if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(r=>{if(vhe.indexOf(r)===-1){let i=t[r];n.propertyValues.push({name:r,value:vU(e,i)})}else r==="annotations"&&Object.keys(t[r]).length>0&&(n.annotations=[],TU(e,t[r],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value};if(t.type==="Constant")return t.value}}s(mb,"revertCollectionItemToRawType");function SU(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=[],TU(e,t.annotations,n.annotations)),{...n,collection:t.map(r=>mb(e,r))}):t.hasOwnProperty("$Type")?{...n,record:mb(e,t)}:{...n,value:vU(e,t)}}s(SU,"revertTermToGenericType");yb.revertTermToGenericType=SU});var PU=y(_o=>{"use strict";var The=_o&&_o.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:s(function(){return t[n]},"get")}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),mx=_o&&_o.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&The(t,e,n)};Object.defineProperty(_o,"__esModule",{value:!0});mx(bU(),_o);mx(db(),_o);mx(EU(),_o)});var Sx=y(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.MergedRawMetadata=Ra.RawMetadataInstance=Ra.ensureArray=void 0;function She(e){return e==null?[]:Array.isArray(e)?e:[e]}s(She,"ensureArray");Ra.ensureArray=She;var vx=class vx{constructor(t,n,r,i){this.identification=t,this.references=i,this.version=n,this.schema=r}};s(vx,"RawMetadataInstance");var yx=vx;Ra.RawMetadataInstance=yx;var Tx=class Tx{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,enumTypes:this._enumTypes,typeDefinitions:this._typeDefinitions,actions:this._actions,actionImports:this._actionImports,entityTypes:this._entityTypes,entityContainers:this._entityContainers}}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._enumTypes=[],this._typeDefinitions=[],this._entityContainers={},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._enumTypes=this._enumTypes.concat(t.schema.enumTypes),this._typeDefinitions=this._typeDefinitions.concat(t.schema.typeDefinitions),t.schema.entityContainer.fullyQualifiedName.length>0&&(this._entityContainer=Object.assign(this._entityContainer,t.schema.entityContainer))}};s(Tx,"MergedRawMetadata");var bx=Tx;Ra.MergedRawMetadata=bx});var AU=y(bb=>{"use strict";Object.defineProperty(bb,"__esModule",{value:!0});bb.merge=void 0;var Ehe=Sx();function Phe(...e){let t=new Ehe.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}s(Phe,"merge");bb.merge=Phe});var xU=y(vb=>{(function(e){e.parser=function(P,E){return new n(P,E)},e.SAXParser=n,e.SAXStream=f,e.createStream=l,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(P,E){if(!(this instanceof n))return new n(P,E);var J=this;i(J),J.q=J.c="",J.bufferCheckPosition=e.MAX_BUFFER_LENGTH,J.encoding=null,J.opt=E||{},J.opt.lowercase=J.opt.lowercase||J.opt.lowercasetags,J.looseCase=J.opt.lowercase?"toLowerCase":"toUpperCase",J.opt.maxEntityCount=J.opt.maxEntityCount||512,J.opt.maxEntityDepth=J.opt.maxEntityDepth||4,J.entityCount=J.entityDepth=0,J.tags=[],J.closed=J.closedRoot=J.sawRoot=!1,J.tag=J.error=null,J.strict=!!P,J.noscript=!!(P||J.opt.noscript),J.state=R.BEGIN,J.strictEntities=J.opt.strictEntities,J.ENTITIES=J.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),J.attribList=[],J.opt.xmlns&&(J.ns=Object.create(b)),J.opt.unquotedAttributeValues===void 0&&(J.opt.unquotedAttributeValues=!P),J.trackPosition=J.opt.position!==!1,J.trackPosition&&(J.position=J.line=J.column=0),G(J,"onready")}s(n,"SAXParser"),Object.create||(Object.create=function(P){function E(){}s(E,"F"),E.prototype=P;var J=new E;return J}),Object.keys||(Object.keys=function(P){var E=[];for(var J in P)P.hasOwnProperty(J)&&E.push(J);return E});function r(P){for(var E=Math.max(e.MAX_BUFFER_LENGTH,10),J=0,q=0,Re=t.length;q<Re;q++){var vt=P[t[q]].length;if(vt>E)switch(t[q]){case"textNode":Ae(P);break;case"cdata":H(P,"oncdata",P.cdata),P.cdata="";break;case"script":H(P,"onscript",P.script),P.script="";break;default:Be(P,"Max buffer length exceeded: "+t[q])}J=Math.max(J,vt)}var It=e.MAX_BUFFER_LENGTH-J;P.bufferCheckPosition=It+P.position}s(r,"checkBufferLength");function i(P){for(var E=0,J=t.length;E<J;E++)P[t[E]]=""}s(i,"clearBuffers");function o(P){Ae(P),P.cdata!==""&&(H(P,"oncdata",P.cdata),P.cdata=""),P.script!==""&&(H(P,"onscript",P.script),P.script="")}s(o,"flushBuffers"),n.prototype={end:s(function(){tn(this)},"end"),write:bt,resume:s(function(){return this.error=null,this},"resume"),close:s(function(){return this.write(null)},"close"),flush:s(function(){o(this)},"flush")};var a;try{a=require("stream").Stream}catch{a=s(function(){},"Stream")}a||(a=s(function(){},"Stream"));var c=e.EVENTS.filter(function(P){return P!=="error"&&P!=="end"});function l(P,E){return new f(P,E)}s(l,"createStream");function u(P,E){if(P.length>=2){if(P[0]===255&&P[1]===254)return"utf-16le";if(P[0]===254&&P[1]===255)return"utf-16be"}return P.length>=3&&P[0]===239&&P[1]===187&&P[2]===191?"utf8":P.length>=4?P[0]===60&&P[1]===0&&P[2]===63&&P[3]===0?"utf-16le":P[0]===0&&P[1]===60&&P[2]===0&&P[3]===63?"utf-16be":"utf8":E?"utf8":null}s(u,"determineBufferEncoding");function f(P,E){if(!(this instanceof f))return new f(P,E);a.apply(this),this._parser=new n(P,E),this.writable=!0,this.readable=!0;var J=this;this._parser.onend=function(){J.emit("end")},this._parser.onerror=function(q){J.emit("error",q),J._parser.error=null},this._decoder=null,this._decoderBuffer=null,c.forEach(function(q){Object.defineProperty(J,"on"+q,{get:s(function(){return J._parser["on"+q]},"get"),set:s(function(Re){if(!Re)return J.removeAllListeners(q),J._parser["on"+q]=Re,Re;J.on(q,Re)},"set"),enumerable:!0,configurable:!1})})}s(f,"SAXStream"),f.prototype=Object.create(a.prototype,{constructor:{value:f}}),f.prototype._decodeBuffer=function(P,E){if(this._decoderBuffer&&(P=Buffer.concat([this._decoderBuffer,P]),this._decoderBuffer=null),!this._decoder){var J=u(P,E);if(!J)return this._decoderBuffer=P,"";this._parser.encoding=J,this._decoder=new TextDecoder(J)}return this._decoder.decode(P,{stream:!E})},f.prototype.write=function(P){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(P))P=this._decodeBuffer(P,!1);else if(this._decoderBuffer){var E=this._decodeBuffer(Buffer.alloc(0),!0);E&&(this._parser.write(E),this.emit("data",E))}return this._parser.write(P.toString()),this.emit("data",P),!0},f.prototype.end=function(P){if(P&&P.length&&this.write(P),this._decoderBuffer){var E=this._decodeBuffer(Buffer.alloc(0),!0);E&&(this._parser.write(E),this.emit("data",E))}else if(this._decoder){var J=this._decoder.decode();J&&(this._parser.write(J),this.emit("data",J))}return this._parser.end(),!0},f.prototype.on=function(P,E){var J=this;return!J._parser["on"+P]&&c.indexOf(P)!==-1&&(J._parser["on"+P]=function(){var q=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);q.splice(0,0,P),J.emit.apply(J,q)}),a.prototype.on.call(J,P,E)};var p="[CDATA[",d="DOCTYPE",h="http://www.w3.org/XML/1998/namespace",m="http://www.w3.org/2000/xmlns/",b={xml:h,xmlns:m},T=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,I=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,F=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,N=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function $(P){return P===" "||P===`
|
|
20
|
-
`||P==="\r"||P===" "}s($,"isWhitespace");function j(P){return P==='"'||P==="'"}s(j,"isQuote");function M(P){return P===">"||$(P)}s(M,"isAttribEnd");function k(P,E){return P.test(E)}s(k,"isMatch");function U(P,E){return!k(P,E)}s(U,"notMatch");var R=0;e.STATE={BEGIN:R++,BEGIN_WHITESPACE:R++,TEXT:R++,TEXT_ENTITY:R++,OPEN_WAKA:R++,SGML_DECL:R++,SGML_DECL_QUOTED:R++,DOCTYPE:R++,DOCTYPE_QUOTED:R++,DOCTYPE_DTD:R++,DOCTYPE_DTD_QUOTED:R++,COMMENT_STARTING:R++,COMMENT:R++,COMMENT_ENDING:R++,COMMENT_ENDED:R++,CDATA:R++,CDATA_ENDING:R++,CDATA_ENDING_2:R++,PROC_INST:R++,PROC_INST_BODY:R++,PROC_INST_ENDING:R++,OPEN_TAG:R++,OPEN_TAG_SLASH:R++,ATTRIB:R++,ATTRIB_NAME:R++,ATTRIB_NAME_SAW_WHITE:R++,ATTRIB_VALUE:R++,ATTRIB_VALUE_QUOTED:R++,ATTRIB_VALUE_CLOSED:R++,ATTRIB_VALUE_UNQUOTED:R++,ATTRIB_VALUE_ENTITY_Q:R++,ATTRIB_VALUE_ENTITY_U:R++,CLOSE_TAG:R++,CLOSE_TAG_SAW_WHITE:R++,SCRIPT:R++,SCRIPT_ENDING:R++},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(P){var E=e.ENTITIES[P],J=typeof E=="number"?String.fromCharCode(E):E;e.ENTITIES[P]=J});for(var se in e.STATE)e.STATE[e.STATE[se]]=se;R=e.STATE;function G(P,E,J){P[E]&&P[E](J)}s(G,"emit");function Te(P){var E=P&&P.match(/(?:^|\s)encoding\s*=\s*(['"])([^'"]+)\1/i);return E?E[2]:null}s(Te,"getDeclaredEncoding");function pe(P){return P?P.toLowerCase().replace(/[^a-z0-9]/g,""):null}s(pe,"normalizeEncodingName");function ue(P,E){let J=pe(P),q=pe(E);return!J||!q?!0:q==="utf16"?J==="utf16le"||J==="utf16be":J===q}s(ue,"encodingsMatch");function W(P,E){if(!(!P.strict||!P.encoding||!E||E.name!=="xml")){var J=Te(E.body);J&&!ue(P.encoding,J)&&Fe(P,"XML declaration encoding "+J+" does not match detected stream encoding "+P.encoding.toUpperCase())}}s(W,"validateXmlDeclarationEncoding");function H(P,E,J){P.textNode&&Ae(P),G(P,E,J)}s(H,"emitNode");function Ae(P){P.textNode=Ne(P.opt,P.textNode),P.textNode&&G(P,"ontext",P.textNode),P.textNode=""}s(Ae,"closeText");function Ne(P,E){return P.trim&&(E=E.trim()),P.normalize&&(E=E.replace(/\s+/g," ")),E}s(Ne,"textopts");function Be(P,E){return Ae(P),P.trackPosition&&(E+=`
|
|
21
|
-
Line: `+P.line+`
|
|
22
|
-
Column: `+P.column+`
|
|
23
|
-
Char: `+P.c),E=new Error(E),P.error=E,G(P,"onerror",E),P}s(Be,"error");function tn(P){return P.sawRoot&&!P.closedRoot&&Fe(P,"Unclosed root tag"),P.state!==R.BEGIN&&P.state!==R.BEGIN_WHITESPACE&&P.state!==R.TEXT&&Be(P,"Unexpected end"),Ae(P),P.c="",P.closed=!0,G(P,"onend"),n.call(P,P.strict,P.opt),P}s(tn,"end");function Fe(P,E){if(typeof P!="object"||!(P instanceof n))throw new Error("bad call to strictFail");P.strict&&Be(P,E)}s(Fe,"strictFail");function Oe(P){P.strict||(P.tagName=P.tagName[P.looseCase]());var E=P.tags[P.tags.length-1]||P,J=P.tag={name:P.tagName,attributes:{}};P.opt.xmlns&&(J.ns=E.ns),P.attribList.length=0,H(P,"onopentagstart",J)}s(Oe,"newTag");function Lt(P,E){var J=P.indexOf(":"),q=J<0?["",P]:P.split(":"),Re=q[0],vt=q[1];return E&&P==="xmlns"&&(Re="xmlns",vt=""),{prefix:Re,local:vt}}s(Lt,"qname");function In(P){if(P.strict||(P.attribName=P.attribName[P.looseCase]()),P.attribList.indexOf(P.attribName)!==-1||P.tag.attributes.hasOwnProperty(P.attribName)){P.attribName=P.attribValue="";return}if(P.opt.xmlns){var E=Lt(P.attribName,!0),J=E.prefix,q=E.local;if(J==="xmlns")if(q==="xml"&&P.attribValue!==h)Fe(P,"xml: prefix must be bound to "+h+`
|
|
24
|
-
Actual: `+P.attribValue);else if(q==="xmlns"&&P.attribValue!==m)Fe(P,"xmlns: prefix must be bound to "+m+`
|
|
25
|
-
Actual: `+P.attribValue);else{var Re=P.tag,vt=P.tags[P.tags.length-1]||P;Re.ns===vt.ns&&(Re.ns=Object.create(vt.ns)),Re.ns[q]=P.attribValue}P.attribList.push([P.attribName,P.attribValue])}else P.tag.attributes[P.attribName]=P.attribValue,H(P,"onattribute",{name:P.attribName,value:P.attribValue});P.attribName=P.attribValue=""}s(In,"attrib");function et(P,E){if(P.opt.xmlns){var J=P.tag,q=Lt(P.tagName);J.prefix=q.prefix,J.local=q.local,J.uri=J.ns[q.prefix]||"",J.prefix&&!J.uri&&(Fe(P,"Unbound namespace prefix: "+JSON.stringify(P.tagName)),J.uri=q.prefix);var Re=P.tags[P.tags.length-1]||P;J.ns&&Re.ns!==J.ns&&Object.keys(J.ns).forEach(function(yn){H(P,"onopennamespace",{prefix:yn,uri:J.ns[yn]})});for(var vt=0,It=P.attribList.length;vt<It;vt++){var Cn=P.attribList[vt],Rn=Cn[0],ur=Cn[1],on=Lt(Rn,!0),ir=on.prefix,Er=on.local,zi=ir===""?"":J.ns[ir]||"",Qi={name:Rn,value:ur,prefix:ir,local:Er,uri:zi};ir&&ir!=="xmlns"&&!zi&&(Fe(P,"Unbound namespace prefix: "+JSON.stringify(ir)),Qi.uri=ir),P.tag.attributes[Rn]=Qi,H(P,"onattribute",Qi)}P.attribList.length=0}P.tag.isSelfClosing=!!E,P.sawRoot=!0,P.tags.push(P.tag),H(P,"onopentag",P.tag),E||(!P.noscript&&P.tagName.toLowerCase()==="script"?P.state=R.SCRIPT:P.state=R.TEXT,P.tag=null,P.tagName=""),P.attribName=P.attribValue="",P.attribList.length=0}s(et,"openTag");function rt(P){if(!P.tagName){Fe(P,"Weird empty close tag."),P.textNode+="</>",P.state=R.TEXT;return}if(P.script){if(P.tagName!=="script"){P.script+="</"+P.tagName+">",P.tagName="",P.state=R.SCRIPT;return}H(P,"onscript",P.script),P.script=""}var E=P.tags.length,J=P.tagName;P.strict||(J=J[P.looseCase]());for(var q=J;E--;){var Re=P.tags[E];if(Re.name!==q)Fe(P,"Unexpected close tag");else break}if(E<0){Fe(P,"Unmatched closing tag: "+P.tagName),P.textNode+="</"+P.tagName+">",P.state=R.TEXT;return}P.tagName=J;for(var vt=P.tags.length;vt-- >E;){var It=P.tag=P.tags.pop();P.tagName=P.tag.name,H(P,"onclosetag",P.tagName);var Cn={};for(var Rn in It.ns)Cn[Rn]=It.ns[Rn];var ur=P.tags[P.tags.length-1]||P;P.opt.xmlns&&It.ns!==ur.ns&&Object.keys(It.ns).forEach(function(on){var ir=It.ns[on];H(P,"onclosenamespace",{prefix:on,uri:ir})})}E===0&&(P.closedRoot=!0),P.tagName=P.attribValue=P.attribName="",P.attribList.length=0,P.state=R.TEXT}s(rt,"closeTag");function Ri(P){var E=P.entity,J=E.toLowerCase(),q,Re="";return P.ENTITIES[E]?P.ENTITIES[E]:P.ENTITIES[J]?P.ENTITIES[J]:(E=J,E.charAt(0)==="#"&&(E.charAt(1)==="x"?(E=E.slice(2),q=parseInt(E,16),Re=q.toString(16)):(E=E.slice(1),q=parseInt(E,10),Re=q.toString(10))),E=E.replace(/^0+/,""),isNaN(q)||Re.toLowerCase()!==E||q<0||q>1114111?(Fe(P,"Invalid character entity"),"&"+P.entity+";"):String.fromCodePoint(q))}s(Ri,"parseEntity");function Xi(P,E){E==="<"?(P.state=R.OPEN_WAKA,P.startTagPosition=P.position):$(E)||(Fe(P,"Non-whitespace before first tag."),P.textNode=E,P.state=R.TEXT)}s(Xi,"beginWhiteSpace");function Ee(P,E){var J="";return E<P.length&&(J=P.charAt(E)),J}s(Ee,"charAt");function bt(P){var E=this;if(this.error)throw this.error;if(E.closed)return Be(E,"Cannot write after close. Assign an onready handler.");if(P===null)return tn(E);typeof P=="object"&&(P=P.toString());for(var J=0,q="";q=Ee(P,J++),E.c=q,!!q;)switch(E.trackPosition&&(E.position++,q===`
|
|
26
|
-
`?(E.line++,E.column=0):E.column++),E.state){case R.BEGIN:if(E.state=R.BEGIN_WHITESPACE,q==="\uFEFF")continue;Xi(E,q);continue;case R.BEGIN_WHITESPACE:Xi(E,q);continue;case R.TEXT:if(E.sawRoot&&!E.closedRoot){for(var vt=J-1;q&&q!=="<"&&q!=="&";)q=Ee(P,J++),q&&E.trackPosition&&(E.position++,q===`
|
|
27
|
-
`?(E.line++,E.column=0):E.column++);E.textNode+=P.substring(vt,J-1)}q==="<"&&!(E.sawRoot&&E.closedRoot&&!E.strict)?(E.state=R.OPEN_WAKA,E.startTagPosition=E.position):(!$(q)&&(!E.sawRoot||E.closedRoot)&&Fe(E,"Text data outside of root node."),q==="&"?E.state=R.TEXT_ENTITY:E.textNode+=q);continue;case R.SCRIPT:q==="<"?E.state=R.SCRIPT_ENDING:E.script+=q;continue;case R.SCRIPT_ENDING:q==="/"?E.state=R.CLOSE_TAG:(E.script+="<"+q,E.state=R.SCRIPT);continue;case R.OPEN_WAKA:if(q==="!")E.state=R.SGML_DECL,E.sgmlDecl="";else if(!$(q))if(k(T,q))E.state=R.OPEN_TAG,E.tagName=q;else if(q==="/")E.state=R.CLOSE_TAG,E.tagName="";else if(q==="?")E.state=R.PROC_INST,E.procInstName=E.procInstBody="";else{if(Fe(E,"Unencoded <"),E.startTagPosition+1<E.position){var Re=E.position-E.startTagPosition;q=new Array(Re).join(" ")+q}E.textNode+="<"+q,E.state=R.TEXT}continue;case R.SGML_DECL:if(E.sgmlDecl+q==="--"){E.state=R.COMMENT,E.comment="",E.sgmlDecl="";continue}E.doctype&&E.doctype!==!0&&E.sgmlDecl?(E.state=R.DOCTYPE_DTD,E.doctype+="<!"+E.sgmlDecl+q,E.sgmlDecl=""):(E.sgmlDecl+q).toUpperCase()===p?(H(E,"onopencdata"),E.state=R.CDATA,E.sgmlDecl="",E.cdata=""):(E.sgmlDecl+q).toUpperCase()===d?(E.state=R.DOCTYPE,(E.doctype||E.sawRoot)&&Fe(E,"Inappropriately located doctype declaration"),E.doctype="",E.sgmlDecl=""):q===">"?(H(E,"onsgmldeclaration",E.sgmlDecl),E.sgmlDecl="",E.state=R.TEXT):(j(q)&&(E.state=R.SGML_DECL_QUOTED),E.sgmlDecl+=q);continue;case R.SGML_DECL_QUOTED:q===E.q&&(E.state=R.SGML_DECL,E.q=""),E.sgmlDecl+=q;continue;case R.DOCTYPE:q===">"?(E.state=R.TEXT,H(E,"ondoctype",E.doctype),E.doctype=!0):(E.doctype+=q,q==="["?E.state=R.DOCTYPE_DTD:j(q)&&(E.state=R.DOCTYPE_QUOTED,E.q=q));continue;case R.DOCTYPE_QUOTED:E.doctype+=q,q===E.q&&(E.q="",E.state=R.DOCTYPE);continue;case R.DOCTYPE_DTD:q==="]"?(E.doctype+=q,E.state=R.DOCTYPE):q==="<"?(E.state=R.OPEN_WAKA,E.startTagPosition=E.position):j(q)?(E.doctype+=q,E.state=R.DOCTYPE_DTD_QUOTED,E.q=q):E.doctype+=q;continue;case R.DOCTYPE_DTD_QUOTED:E.doctype+=q,q===E.q&&(E.state=R.DOCTYPE_DTD,E.q="");continue;case R.COMMENT:q==="-"?E.state=R.COMMENT_ENDING:E.comment+=q;continue;case R.COMMENT_ENDING:q==="-"?(E.state=R.COMMENT_ENDED,E.comment=Ne(E.opt,E.comment),E.comment&&H(E,"oncomment",E.comment),E.comment=""):(E.comment+="-"+q,E.state=R.COMMENT);continue;case R.COMMENT_ENDED:q!==">"?(Fe(E,"Malformed comment"),E.comment+="--"+q,E.state=R.COMMENT):E.doctype&&E.doctype!==!0?E.state=R.DOCTYPE_DTD:E.state=R.TEXT;continue;case R.CDATA:for(var vt=J-1;q&&q!=="]";)q=Ee(P,J++),q&&E.trackPosition&&(E.position++,q===`
|
|
28
|
-
`?(E.line++,E.column=0):E.column++);E.cdata+=P.substring(vt,J-1),q==="]"&&(E.state=R.CDATA_ENDING);continue;case R.CDATA_ENDING:q==="]"?E.state=R.CDATA_ENDING_2:(E.cdata+="]"+q,E.state=R.CDATA);continue;case R.CDATA_ENDING_2:q===">"?(E.cdata&&H(E,"oncdata",E.cdata),H(E,"onclosecdata"),E.cdata="",E.state=R.TEXT):q==="]"?E.cdata+="]":(E.cdata+="]]"+q,E.state=R.CDATA);continue;case R.PROC_INST:q==="?"?E.state=R.PROC_INST_ENDING:$(q)?E.state=R.PROC_INST_BODY:E.procInstName+=q;continue;case R.PROC_INST_BODY:if(!E.procInstBody&&$(q))continue;q==="?"?E.state=R.PROC_INST_ENDING:E.procInstBody+=q;continue;case R.PROC_INST_ENDING:if(q===">"){let ur={name:E.procInstName,body:E.procInstBody};W(E,ur),H(E,"onprocessinginstruction",ur),E.procInstName=E.procInstBody="",E.state=R.TEXT}else E.procInstBody+="?"+q,E.state=R.PROC_INST_BODY;continue;case R.OPEN_TAG:k(I,q)?E.tagName+=q:(Oe(E),q===">"?et(E):q==="/"?E.state=R.OPEN_TAG_SLASH:($(q)||Fe(E,"Invalid character in tag name"),E.state=R.ATTRIB));continue;case R.OPEN_TAG_SLASH:q===">"?(et(E,!0),rt(E)):(Fe(E,"Forward-slash in opening tag not followed by >"),E.state=R.ATTRIB);continue;case R.ATTRIB:if($(q))continue;q===">"?et(E):q==="/"?E.state=R.OPEN_TAG_SLASH:k(T,q)?(E.attribName=q,E.attribValue="",E.state=R.ATTRIB_NAME):Fe(E,"Invalid attribute name");continue;case R.ATTRIB_NAME:q==="="?E.state=R.ATTRIB_VALUE:q===">"?(Fe(E,"Attribute without value"),E.attribValue=E.attribName,In(E),et(E)):$(q)?E.state=R.ATTRIB_NAME_SAW_WHITE:k(I,q)?E.attribName+=q:Fe(E,"Invalid attribute name");continue;case R.ATTRIB_NAME_SAW_WHITE:if(q==="=")E.state=R.ATTRIB_VALUE;else{if($(q))continue;Fe(E,"Attribute without value"),E.tag.attributes[E.attribName]="",E.attribValue="",H(E,"onattribute",{name:E.attribName,value:""}),E.attribName="",q===">"?et(E):k(T,q)?(E.attribName=q,E.state=R.ATTRIB_NAME):(Fe(E,"Invalid attribute name"),E.state=R.ATTRIB)}continue;case R.ATTRIB_VALUE:if($(q))continue;j(q)?(E.q=q,E.state=R.ATTRIB_VALUE_QUOTED):(E.opt.unquotedAttributeValues||Be(E,"Unquoted attribute value"),E.state=R.ATTRIB_VALUE_UNQUOTED,E.attribValue=q);continue;case R.ATTRIB_VALUE_QUOTED:if(q!==E.q){q==="&"?E.state=R.ATTRIB_VALUE_ENTITY_Q:E.attribValue+=q;continue}In(E),E.q="",E.state=R.ATTRIB_VALUE_CLOSED;continue;case R.ATTRIB_VALUE_CLOSED:$(q)?E.state=R.ATTRIB:q===">"?et(E):q==="/"?E.state=R.OPEN_TAG_SLASH:k(T,q)?(Fe(E,"No whitespace between attributes"),E.attribName=q,E.attribValue="",E.state=R.ATTRIB_NAME):Fe(E,"Invalid attribute name");continue;case R.ATTRIB_VALUE_UNQUOTED:if(!M(q)){q==="&"?E.state=R.ATTRIB_VALUE_ENTITY_U:E.attribValue+=q;continue}In(E),q===">"?et(E):E.state=R.ATTRIB;continue;case R.CLOSE_TAG:if(E.tagName)q===">"?rt(E):k(I,q)?E.tagName+=q:E.script?(E.script+="</"+E.tagName+q,E.tagName="",E.state=R.SCRIPT):($(q)||Fe(E,"Invalid tagname in closing tag"),E.state=R.CLOSE_TAG_SAW_WHITE);else{if($(q))continue;U(T,q)?E.script?(E.script+="</"+q,E.state=R.SCRIPT):Fe(E,"Invalid tagname in closing tag."):E.tagName=q}continue;case R.CLOSE_TAG_SAW_WHITE:if($(q))continue;q===">"?rt(E):Fe(E,"Invalid characters in closing tag");continue;case R.TEXT_ENTITY:case R.ATTRIB_VALUE_ENTITY_Q:case R.ATTRIB_VALUE_ENTITY_U:var It,Cn;switch(E.state){case R.TEXT_ENTITY:It=R.TEXT,Cn="textNode";break;case R.ATTRIB_VALUE_ENTITY_Q:It=R.ATTRIB_VALUE_QUOTED,Cn="attribValue";break;case R.ATTRIB_VALUE_ENTITY_U:It=R.ATTRIB_VALUE_UNQUOTED,Cn="attribValue";break}if(q===";"){var Rn=Ri(E);E.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(Rn)?((E.entityCount+=1)>E.opt.maxEntityCount&&Be(E,"Parsed entity count exceeds max entity count"),(E.entityDepth+=1)>E.opt.maxEntityDepth&&Be(E,"Parsed entity depth exceeds max entity depth"),E.entity="",E.state=It,E.write(Rn),E.entityDepth-=1):(E[Cn]+=Rn,E.entity="",E.state=It)}else k(E.entity.length?N:F,q)?E.entity+=q:(Fe(E,"Invalid character in entity name"),E[Cn]+="&"+E.entity+q,E.entity="",E.state=It);continue;default:throw new Error(E,"Unknown state: "+E.state)}return E.position>=E.bufferCheckPosition&&r(E),E}s(bt,"write");String.fromCodePoint||(function(){var P=String.fromCharCode,E=Math.floor,J=s(function(){var q=16384,Re=[],vt,It,Cn=-1,Rn=arguments.length;if(!Rn)return"";for(var ur="";++Cn<Rn;){var on=Number(arguments[Cn]);if(!isFinite(on)||on<0||on>1114111||E(on)!==on)throw RangeError("Invalid code point: "+on);on<=65535?Re.push(on):(on-=65536,vt=(on>>10)+55296,It=on%1024+56320,Re.push(vt,It)),(Cn+1===Rn||Re.length>q)&&(ur+=P.apply(null,Re),Re.length=0)}return ur},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:J,configurable:!0,writable:!0}):String.fromCodePoint=J})()})(typeof vb>"u"?vb.sax={}:vb)});var Tb=y((dZe,OU)=>{OU.exports={isArray:s(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Sb=y((gZe,IU)=>{var Ahe=Tb().isArray;IU.exports={copyOptions:s(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},"copyOptions"),ensureFlagExists:s(function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},"ensureFlagExists"),ensureSpacesExists:s(function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},"ensureSpacesExists"),ensureAlwaysArrayExists:s(function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!Ahe(e.alwaysArray))&&(e.alwaysArray=!1)},"ensureAlwaysArrayExists"),ensureKeyExists:s(function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},"ensureKeyExists"),checkFnExists:s(function(e,t){return e+"Fn"in t},"checkFnExists")}});var Px=y((yZe,jU)=>{var xhe=xU(),Ohe={on:s(function(){},"on"),parse:s(function(){},"parse")},xt=Sb(),cf=Tb().isArray,ie,Ex=!0,ut;function Ihe(e){return ie=xt.copyOptions(e),xt.ensureFlagExists("ignoreDeclaration",ie),xt.ensureFlagExists("ignoreInstruction",ie),xt.ensureFlagExists("ignoreAttributes",ie),xt.ensureFlagExists("ignoreText",ie),xt.ensureFlagExists("ignoreComment",ie),xt.ensureFlagExists("ignoreCdata",ie),xt.ensureFlagExists("ignoreDoctype",ie),xt.ensureFlagExists("compact",ie),xt.ensureFlagExists("alwaysChildren",ie),xt.ensureFlagExists("addParent",ie),xt.ensureFlagExists("trim",ie),xt.ensureFlagExists("nativeType",ie),xt.ensureFlagExists("nativeTypeAttributes",ie),xt.ensureFlagExists("sanitize",ie),xt.ensureFlagExists("instructionHasAttributes",ie),xt.ensureFlagExists("captureSpacesBetweenElements",ie),xt.ensureAlwaysArrayExists(ie),xt.ensureKeyExists("declaration",ie),xt.ensureKeyExists("instruction",ie),xt.ensureKeyExists("attributes",ie),xt.ensureKeyExists("text",ie),xt.ensureKeyExists("comment",ie),xt.ensureKeyExists("cdata",ie),xt.ensureKeyExists("doctype",ie),xt.ensureKeyExists("type",ie),xt.ensureKeyExists("name",ie),xt.ensureKeyExists("elements",ie),xt.ensureKeyExists("parent",ie),xt.checkFnExists("doctype",ie),xt.checkFnExists("instruction",ie),xt.checkFnExists("cdata",ie),xt.checkFnExists("comment",ie),xt.checkFnExists("text",ie),xt.checkFnExists("instructionName",ie),xt.checkFnExists("elementName",ie),xt.checkFnExists("attributeName",ie),xt.checkFnExists("attributeValue",ie),xt.checkFnExists("attributes",ie),ie}s(Ihe,"validateOptions");function FU(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}s(FU,"nativeType");function Wd(e,t){var n;if(ie.compact){if(!ut[ie[e+"Key"]]&&(cf(ie.alwaysArray)?ie.alwaysArray.indexOf(ie[e+"Key"])!==-1:ie.alwaysArray)&&(ut[ie[e+"Key"]]=[]),ut[ie[e+"Key"]]&&!cf(ut[ie[e+"Key"]])&&(ut[ie[e+"Key"]]=[ut[ie[e+"Key"]]]),e+"Fn"in ie&&typeof t=="string"&&(t=ie[e+"Fn"](t,ut)),e==="instruction"&&("instructionFn"in ie||"instructionNameFn"in ie)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in ie)t[n]=ie.instructionFn(t[n],n,ut);else{var r=t[n];delete t[n],t[ie.instructionNameFn(n,r,ut)]=r}}cf(ut[ie[e+"Key"]])?ut[ie[e+"Key"]].push(t):ut[ie[e+"Key"]]=t}else{ut[ie.elementsKey]||(ut[ie.elementsKey]=[]);var i={};if(i[ie.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;i[ie.nameKey]="instructionNameFn"in ie?ie.instructionNameFn(n,t,ut):n,ie.instructionHasAttributes?(i[ie.attributesKey]=t[n][ie.attributesKey],"instructionFn"in ie&&(i[ie.attributesKey]=ie.instructionFn(i[ie.attributesKey],n,ut))):("instructionFn"in ie&&(t[n]=ie.instructionFn(t[n],n,ut)),i[ie.instructionKey]=t[n])}else e+"Fn"in ie&&(t=ie[e+"Fn"](t,ut)),i[ie[e+"Key"]]=t;ie.addParent&&(i[ie.parentKey]=ut),ut[ie.elementsKey].push(i)}}s(Wd,"addField");function LU(e){if("attributesFn"in ie&&e&&(e=ie.attributesFn(e,ut)),(ie.trim||"attributeValueFn"in ie||"attributeNameFn"in ie||ie.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(ie.trim&&(e[t]=e[t].trim()),ie.nativeTypeAttributes&&(e[t]=FU(e[t])),"attributeValueFn"in ie&&(e[t]=ie.attributeValueFn(e[t],t,ut)),"attributeNameFn"in ie)){var n=e[t];delete e[t],e[ie.attributeNameFn(t,e[t],ut)]=n}}return e}s(LU,"manipulateAttributes");function _he(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||ie.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,r;(r=n.exec(e.body))!==null;)t[r[1]]=r[2]||r[3]||r[4];t=LU(t)}if(e.name.toLowerCase()==="xml"){if(ie.ignoreDeclaration)return;ut[ie.declarationKey]={},Object.keys(t).length&&(ut[ie.declarationKey][ie.attributesKey]=t),ie.addParent&&(ut[ie.declarationKey][ie.parentKey]=ut)}else{if(ie.ignoreInstruction)return;ie.trim&&(e.body=e.body.trim());var i={};ie.instructionHasAttributes&&Object.keys(t).length?(i[e.name]={},i[e.name][ie.attributesKey]=t):i[e.name]=e.body,Wd("instruction",i)}}s(_he,"onInstruction");function _U(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=LU(t),"elementNameFn"in ie&&(e=ie.elementNameFn(e,ut)),ie.compact){if(n={},!ie.ignoreAttributes&&t&&Object.keys(t).length){n[ie.attributesKey]={};var r;for(r in t)t.hasOwnProperty(r)&&(n[ie.attributesKey][r]=t[r])}!(e in ut)&&(cf(ie.alwaysArray)?ie.alwaysArray.indexOf(e)!==-1:ie.alwaysArray)&&(ut[e]=[]),ut[e]&&!cf(ut[e])&&(ut[e]=[ut[e]]),cf(ut[e])?ut[e].push(n):ut[e]=n}else ut[ie.elementsKey]||(ut[ie.elementsKey]=[]),n={},n[ie.typeKey]="element",n[ie.nameKey]=e,!ie.ignoreAttributes&&t&&Object.keys(t).length&&(n[ie.attributesKey]=t),ie.alwaysChildren&&(n[ie.elementsKey]=[]),ut[ie.elementsKey].push(n);n[ie.parentKey]=ut,ut=n}s(_U,"onStartElement");function CU(e){ie.ignoreText||!e.trim()&&!ie.captureSpacesBetweenElements||(ie.trim&&(e=e.trim()),ie.nativeType&&(e=FU(e)),ie.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),Wd("text",e))}s(CU,"onText");function wU(e){ie.ignoreComment||(ie.trim&&(e=e.trim()),Wd("comment",e))}s(wU,"onComment");function NU(e){var t=ut[ie.parentKey];ie.addParent||delete ut[ie.parentKey],ut=t}s(NU,"onEndElement");function Che(e){ie.ignoreCdata||(ie.trim&&(e=e.trim()),Wd("cdata",e))}s(Che,"onCdata");function whe(e){ie.ignoreDoctype||(e=e.replace(/^ /,""),ie.trim&&(e=e.trim()),Wd("doctype",e))}s(whe,"onDoctype");function RU(e){e.note=e}s(RU,"onError");jU.exports=function(e,t){var n=Ex?xhe.parser(!0,{}):n=new Ohe.Parser("UTF-8"),r={};if(ut=r,ie=Ihe(t),Ex?(n.opt={strictEntities:!0},n.onopentag=_U,n.ontext=CU,n.oncomment=wU,n.onclosetag=NU,n.onerror=RU,n.oncdata=Che,n.ondoctype=whe,n.onprocessinginstruction=_he):(n.on("startElement",_U),n.on("text",CU),n.on("comment",wU),n.on("endElement",NU),n.on("error",RU)),Ex)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(r[ie.elementsKey]){var i=r[ie.elementsKey];delete r[ie.elementsKey],r[ie.elementsKey]=i,delete r.text}return r}});var kU=y((vZe,$U)=>{var DU=Sb(),Nhe=Px();function Rhe(e){var t=DU.copyOptions(e);return DU.ensureSpacesExists(t),t}s(Rhe,"validateOptions");$U.exports=function(e,t){var n,r,i,o;return n=Rhe(t),r=Nhe(e,n),o="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?i=JSON.stringify(r,function(a,c){return a===o?"_":c},n.spaces):i=JSON.stringify(r,null,n.spaces),i.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var xx=y((SZe,KU)=>{var Nt=Sb(),Fhe=Tb().isArray,xr,Or;function Lhe(e){var t=Nt.copyOptions(e);return Nt.ensureFlagExists("ignoreDeclaration",t),Nt.ensureFlagExists("ignoreInstruction",t),Nt.ensureFlagExists("ignoreAttributes",t),Nt.ensureFlagExists("ignoreText",t),Nt.ensureFlagExists("ignoreComment",t),Nt.ensureFlagExists("ignoreCdata",t),Nt.ensureFlagExists("ignoreDoctype",t),Nt.ensureFlagExists("compact",t),Nt.ensureFlagExists("indentText",t),Nt.ensureFlagExists("indentCdata",t),Nt.ensureFlagExists("indentAttributes",t),Nt.ensureFlagExists("indentInstruction",t),Nt.ensureFlagExists("fullTagEmptyElement",t),Nt.ensureFlagExists("noQuotesForNativeAttributes",t),Nt.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),Nt.ensureKeyExists("declaration",t),Nt.ensureKeyExists("instruction",t),Nt.ensureKeyExists("attributes",t),Nt.ensureKeyExists("text",t),Nt.ensureKeyExists("comment",t),Nt.ensureKeyExists("cdata",t),Nt.ensureKeyExists("doctype",t),Nt.ensureKeyExists("type",t),Nt.ensureKeyExists("name",t),Nt.ensureKeyExists("elements",t),Nt.checkFnExists("doctype",t),Nt.checkFnExists("instruction",t),Nt.checkFnExists("cdata",t),Nt.checkFnExists("comment",t),Nt.checkFnExists("text",t),Nt.checkFnExists("instructionName",t),Nt.checkFnExists("elementName",t),Nt.checkFnExists("attributeName",t),Nt.checkFnExists("attributeValue",t),Nt.checkFnExists("attributes",t),Nt.checkFnExists("fullTagEmptyElement",t),t}s(Lhe,"validateOptions");function Ks(e,t,n){return(!n&&e.spaces?`
|
|
29
|
-
`:"")+Array(t+1).join(e.spaces)}s(Ks,"writeIndentation");function Eb(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,Or,xr));var r,i,o,a,c=[];for(r in e)e.hasOwnProperty(r)&&e[r]!==null&&e[r]!==void 0&&(a=t.noQuotesForNativeAttributes&&typeof e[r]!="string"?"":'"',i=""+e[r],i=i.replace(/"/g,"""),o="attributeNameFn"in t?t.attributeNameFn(r,i,Or,xr):r,c.push(t.spaces&&t.indentAttributes?Ks(t,n+1,!1):" "),c.push(o+"="+a+("attributeValueFn"in t?t.attributeValueFn(i,r,Or,xr):i)+a));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&c.push(Ks(t,n,!1)),c.join("")}s(Eb,"writeAttributes");function MU(e,t,n){return xr=e,Or="xml",t.ignoreDeclaration?"":"<?xml"+Eb(e[t.attributesKey],t,n)+"?>"}s(MU,"writeDeclaration");function VU(e,t,n){if(t.ignoreInstruction)return"";var r;for(r in e)if(e.hasOwnProperty(r))break;var i="instructionNameFn"in t?t.instructionNameFn(r,e[r],Or,xr):r;if(typeof e[r]=="object")return xr=e,Or=i,"<?"+i+Eb(e[r][t.attributesKey],t,n)+"?>";var o=e[r]?e[r]:"";return"instructionFn"in t&&(o=t.instructionFn(o,r,Or,xr)),"<?"+i+(o?" "+o:"")+"?>"}s(VU,"writeInstruction");function qU(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,Or,xr):e)+"-->"}s(qU,"writeComment");function UU(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,Or,xr):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}s(UU,"writeCdata");function BU(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,Or,xr):e)+">"}s(BU,"writeDoctype");function Ax(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,Or,xr):e)}s(Ax,"writeText");function jhe(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n<e.elements.length;++n)switch(e.elements[n][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}s(jhe,"hasContent");function Dhe(e,t,n){xr=e,Or=e.name;var r=[],i="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;r.push("<"+i),e[t.attributesKey]&&r.push(Eb(e[t.attributesKey],t,n));var o=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey]["xml:space"]==="preserve";return o||("fullTagEmptyElementFn"in t?o=t.fullTagEmptyElementFn(e.name,e):o=t.fullTagEmptyElement),o?(r.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(r.push(GU(e[t.elementsKey],t,n+1)),xr=e,Or=e.name),r.push(t.spaces&&jhe(e,t)?`
|
|
30
|
-
`+Array(n+1).join(t.spaces):""),r.push("</"+i+">")):r.push("/>"),r.join("")}s(Dhe,"writeElement");function GU(e,t,n,r){return e.reduce(function(i,o){var a=Ks(t,n,r&&!i);switch(o.type){case"element":return i+a+Dhe(o,t,n);case"comment":return i+a+qU(o[t.commentKey],t);case"doctype":return i+a+BU(o[t.doctypeKey],t);case"cdata":return i+(t.indentCdata?a:"")+UU(o[t.cdataKey],t);case"text":return i+(t.indentText?a:"")+Ax(o[t.textKey],t);case"instruction":var c={};return c[o[t.nameKey]]=o[t.attributesKey]?o:o[t.instructionKey],i+(t.indentInstruction?a:"")+VU(c,t,n)}},"")}s(GU,"writeElements");function HU(e,t,n){var r;for(r in e)if(e.hasOwnProperty(r))switch(r){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}s(HU,"hasContentCompact");function $he(e,t,n,r,i){xr=e,Or=t;var o="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?"<"+o+"></"+o+">":"<"+o+"/>";var a=[];if(t){if(a.push("<"+o),typeof e!="object")return a.push(">"+Ax(e,n)+"</"+o+">"),a.join("");e[n.attributesKey]&&a.push(Eb(e[n.attributesKey],n,r));var c=HU(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(c||("fullTagEmptyElementFn"in n?c=n.fullTagEmptyElementFn(t,e):c=n.fullTagEmptyElement),c)a.push(">");else return a.push("/>"),a.join("")}return a.push(WU(e,n,r+1,!1)),xr=e,Or=t,t&&a.push((i?Ks(n,r,!1):"")+"</"+o+">"),a.join("")}s($he,"writeElementCompact");function WU(e,t,n,r){var i,o,a,c=[];for(o in e)if(e.hasOwnProperty(o))for(a=Fhe(e[o])?e[o]:[e[o]],i=0;i<a.length;++i){switch(o){case t.declarationKey:c.push(MU(a[i],t,n));break;case t.instructionKey:c.push((t.indentInstruction?Ks(t,n,r):"")+VU(a[i],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:c.push((t.indentText?Ks(t,n,r):"")+Ax(a[i],t));break;case t.cdataKey:c.push((t.indentCdata?Ks(t,n,r):"")+UU(a[i],t));break;case t.doctypeKey:c.push(Ks(t,n,r)+BU(a[i],t));break;case t.commentKey:c.push(Ks(t,n,r)+qU(a[i],t));break;default:c.push(Ks(t,n,r)+$he(a[i],o,t,n,HU(a[i],t)))}r=r&&!c.length}return c.join("")}s(WU,"writeElementsCompact");KU.exports=function(e,t){t=Lhe(t);var n=[];return xr=e,Or="_root_",t.compact?n.push(WU(e,t,0,!0)):(e[t.declarationKey]&&n.push(MU(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(GU(e[t.elementsKey],t,0,!n.length))),n.join("")}});var YU=y((PZe,JU)=>{var khe=xx();JU.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 khe(n,t)}});var Kd=y((AZe,XU)=>{var Mhe=Px(),Vhe=kU(),qhe=xx(),Uhe=YU();XU.exports={xml2js:Mhe,xml2json:Vhe,js2xml:qhe,json2xml:Uhe}});var nB=y(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.convertEntityTypeAnnotations=di.convertPropertyAnnotations=di.convertNavigationPropertyAnnotations=di.convertEntitySetAnnotations=di.convertGenericAnnotations=di.convertV2Annotations=void 0;function Bhe(e,t,n){let r=[];switch(t){case"EntitySet":QU(e,r);break;case"EntityType":tB(e,r);break;case"NavigationProperty":ZU(e,n,r);break;case"Property":eB(e,n,r);break;case"Singleton":break;default:break}return zU(e,n,r),r}s(Bhe,"convertV2Annotations");di.convertV2Annotations=Bhe;function zU(e,t,n){function r(i,o){i&&n.push(o)}if(s(r,"pushToAnnotations"),r(e["sap:schema-version"]!==void 0,{term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),r(e["sap:searchable"]!==void 0,{term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searchable",value:{type:"Bool",Bool:e["sap:searchable"]==="true"}}]}}),r(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),r(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),r(e["sap:topable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:topable"]==="true"}}),r(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"}}]}}),r(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}]}}]}}),r(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}}]}]}}]}}),r(e["sap:sortable"]==="false",{term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:t}}]}}),r(e["sap:visible"]==="false",{term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),r(e["sap:label"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),r(e["sap:heading"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),r(e["sap:quickinfo"]!==void 0,{term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),r(e["sap:text"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),r(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),r(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}}),r(e["sap:precision"]!==void 0,{term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"],10)}}),r(e["sap:value-list"]==="fixed-value",{term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),r(e["sap:display-format"]==="NonNegative",{term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),r(e["sap:display-format"]==="UpperCase",{term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),r(e["sap:display-format"]==="Date",{term:"com.sap.vocabularies.Common.v1.IsCalendarDate",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){let i=[];e["sap:lower-boundary"]&&i.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&i.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:i}})}r(e["sap:field-control"]!==void 0,{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),r(e["sap:applicable-path"]!==void 0,{term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),r(e["sap:minoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"],10)}}),r(e["sap:maxoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"],10)}}),r(e["sap:parameter"]==="mandatory",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),r(e["sap:parameter"]==="optional",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),r(e["sap:attribute-for"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}})}s(zU,"convertGenericAnnotations");di.convertGenericAnnotations=zU;function QU(e,t){e["sap:creatable"]&&t.push({term:"Org.OData.Capabilities.V1.InsertRestrictions",record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}),e["sap:updatable"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:updatable-path"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Path",Path:e["sap:updatable-path"]}}]}}),e["sap:deletable"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:deletable-path"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Path",Path:e["sap:deletable-path"]}}]}})}s(QU,"convertEntitySetAnnotations");di.convertEntitySetAnnotations=QU;function ZU(e,t,n){e["sap:creatable"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}}]}}}]}}),e["sap:creatable-path"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Path",Path:e["sap:creatable-path"]}}]}}}]}}}]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"NavigationProperty",value:{type:"NavigationPropertyPath",NavigationPropertyPath:t}},{name:"FilterRestrictions",value:{type:"Record",Record:{propertyValues:[{name:"Filterable",value:{type:"Bool",Bool:!1}}]}}}]}]}}]}})}s(ZU,"convertNavigationPropertyAnnotations");di.convertNavigationPropertyAnnotations=ZU;function eB(e,t,n){e["sap:creatable"]==="true"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Immutable",value:{type:"Bool",Bool:!0}}),e["sap:creatable"]==="false"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Computed",value:{type:"Bool",Bool:!0}}),e["sap:updatable-path"]&&n.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:updatable-path"]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"NonFilterableProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}})}s(eB,"convertPropertyAnnotations");di.convertPropertyAnnotations=eB;function tB(e,t){e["sap:semantics"]==="aggregate"&&t.push({term:"Org.OData.Aggregation.V1.ApplySupported",record:{propertyValues:[{name:"PropertyRestrictions",value:{type:"Collection",Collection:[]}},{name:"GroupableProperties",value:{type:"Collection",Collection:[]}},{name:"AggregatableProperties",value:{type:"Collection",Collection:[]}}]}})}s(tB,"convertEntityTypeAnnotations");di.convertEntityTypeAnnotations=tB});var cB=y(Ib=>{"use strict";Object.defineProperty(Ib,"__esModule",{value:!0});Ib.parse=void 0;var Ghe=Kd(),it=Sx(),uf=nB(),xb=/^Collection\((.+)\)$/;function Hhe(e){return e.Type!==null&&e.Type!==void 0}s(Hhe,"isV4NavProperty");function Whe(e){return e.map(t=>t._attributes.Name)}s(Whe,"getEntityTypeKeys");function sB(e,t,n,r){return e.reduce((i,o)=>{var a,c,l,u;let f={_type:"Property",name:o._attributes.Name,fullyQualifiedName:`${n}/${o._attributes.Name}`,type:lf(o._attributes.Type).type};if(o._attributes.MaxLength&&(f.maxLength=((c=(a=o._attributes.MaxLength)===null||a===void 0?void 0:a.toLowerCase)===null||c===void 0?void 0:c.call(a))==="max"?5e3:parseInt(o._attributes.MaxLength,10)),o._attributes.Precision&&(f.precision=parseInt(o._attributes.Precision,10)),o._attributes.Scale&&(((u=(l=o._attributes.Scale)===null||l===void 0?void 0:l.toLowerCase)===null||u===void 0?void 0:u.call(l))==="variable"?f.scale="variable":f.scale=parseInt(o._attributes.Scale,10)),f.nullable=o._attributes.Nullable!=="false",o._attributes.DefaultValue)switch(f.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":f.defaultValue=parseInt(o._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":f.defaultValue=parseFloat(o._attributes.DefaultValue);break;case"Edm.Boolean":f.defaultValue=o._attributes.DefaultValue==="true";break;default:f.defaultValue=o._attributes.DefaultValue;break}i.entityProperties.push(f),t.indexOf(f.name)!==-1&&i.entityKeys.push(f);let p=(0,uf.convertV2Annotations)(o._attributes,"Property",o._attributes.Name);return p.length>0&&r.push(wo(f.fullyQualifiedName,p)),i},{entityProperties:[],entityKeys:[]})}s(sB,"parseProperties");function Khe(e,t,n){return e.reduce((r,i)=>(r.push({sourceTypeName:t,sourceProperty:i._attributes.Property,targetTypeName:n,targetProperty:i._attributes.ReferencedProperty}),r),[])}s(Khe,"parseReferentialConstraint");function Jhe(e,t){return e.reduce((n,r)=>{let i=t.find(a=>a.role===r.Principal._attributes.Role),o=t.find(a=>a.role===r.Dependent._attributes.Role);if(i!==void 0&&o!==void 0){let a=(0,it.ensureArray)(r.Principal.PropertyRef),c=(0,it.ensureArray)(r.Dependent.PropertyRef);i.multiplicity!=="1"&&(o=i,i=t.find(l=>l.role===r.Dependent._attributes.Role),c=a,a=(0,it.ensureArray)(r.Dependent.PropertyRef));for(let l of a){let u=a.indexOf(l);n.push({sourceTypeName:i.type,sourceProperty:l._attributes.Name,targetTypeName:o.type,targetProperty:c[u]._attributes.Name})}}return n},[])}s(Jhe,"parseV2ReferentialConstraint");function oB(e,t,n,r){return e.reduce((i,o)=>{let a=o._attributes;if(Hhe(a)){let c=a.Type.match(xb),l=c!==null,u=Js(c?c[1]:a.Type);i.push({_type:"NavigationProperty",name:a.Name,fullyQualifiedName:`${n}/${a.Name}`,partner:a.Partner,containsTarget:a.ContainsTarget==="true",isCollection:l,targetTypeName:u,referentialConstraint:Khe((0,it.ensureArray)(o.ReferentialConstraint),t._attributes.Name,u)})}else{let{Relationship:c,ToRole:l,FromRole:u}=a;i.push({_type:"NavigationProperty",name:a.Name,fullyQualifiedName:`${n}/${a.Name}`,relationship:c,toRole:l,fromRole:u});let f=(0,uf.convertV2Annotations)(a,"NavigationProperty",a.Name);f.length>0&&r.push(wo(`${n}/${a.Name}`,f))}return i},[])}s(oB,"parseNavigationProperties");function Yhe(e,t,n){return e.map(r=>{let i=`${t}.${r._attributes.Name}`,o=(0,it.ensureArray)(r.End).map(a=>({entitySet:`${t}.${n._attributes.Name}/${a._attributes.EntitySet}`,role:a._attributes.Role}));return{fullyQualifiedName:i,name:r._attributes.Name,association:r._attributes.Association,associationEnd:o}})}s(Yhe,"parseAssociationSets");function Xhe(e,t){return e.map(n=>{let r=`${t}.${n._attributes.Name}`,i=(0,it.ensureArray)(n.End).map(o=>({type:o._attributes.Type,role:o._attributes.Role,multiplicity:o._attributes.Multiplicity}));return{fullyQualifiedName:r,name:n._attributes.Name,associationEnd:i,referentialConstraints:Jhe((0,it.ensureArray)(n.ReferentialConstraint),i)}})}s(Xhe,"parseAssociations");function zhe(e,t,n){return e.reduce((r,i)=>{let o=i.Key?Whe((0,it.ensureArray)(i.Key.PropertyRef)):[],a=`${n}.${i._attributes.Name}`,{entityProperties:c,entityKeys:l}=sB((0,it.ensureArray)(i.Property),o,a,t),u=oB((0,it.ensureArray)(i.NavigationProperty),i,a,t),f={_type:"EntityType",name:i._attributes.Name,fullyQualifiedName:a,keys:l,entityProperties:c,actions:{},navigationProperties:u},p=(0,uf.convertV2Annotations)(i._attributes,"EntityType",i._attributes.Name);return p.length>0&&t.push(wo(f.fullyQualifiedName,p)),r.push(f),r},[])}s(zhe,"parseEntityTypes");function Qhe(e,t,n){return e.reduce((r,i)=>{let o=`${n}.${i._attributes.Name}`,{entityProperties:a}=sB((0,it.ensureArray)(i.Property),[],o,t),c=oB((0,it.ensureArray)(i.NavigationProperty),i,o,t);return r.push({_type:"ComplexType",name:i._attributes.Name,fullyQualifiedName:o,properties:a,navigationProperties:c}),r},[])}s(Qhe,"parseComplexTypes");function Zhe(e,t,n,r){let i=e.every(o=>o._attributes.Value!==void 0);return e.reduce((o,a)=>{let c=`${n}/${a._attributes.Name}`,l=Jd((0,it.ensureArray)(a.Annotation),c,t);l&&l.length>0&&t.push(wo(c,l));let u;return i?u=Number.parseInt(a._attributes.Value.toString(),10):r?u=1<<o.length:u=o.length,o.push({_type:"EnumMember",fullyQualifiedName:c,name:a._attributes.Name,value:u}),o},[])}s(Zhe,"parseEnumMembers");function ege(e,t,n){return e.reduce((r,i)=>{var o;let a=`${n}.${i._attributes.Name}`,c=Zhe((0,it.ensureArray)(i.Member),t,a,i._attributes.IsFlags===!0);return r.push({_type:"EnumType",name:i._attributes.Name,underlyingType:(o=i._attributes.UnderlyingType)!==null&&o!==void 0?o:"Edm.Int32",isFlags:i._attributes.IsFlags===!0,fullyQualifiedName:a,members:c}),r},[])}s(ege,"parseEnumTypes");function tge(e,t){return e.reduce((n,r)=>{let i=`${t}.${r._attributes.Name}`;return n.push({_type:"TypeDefinition",name:r._attributes.Name,fullyQualifiedName:i,underlyingType:r._attributes.UnderlyingType}),n},[])}s(tge,"parseTypeDefinitions");function nge(e,t,n,r){return e.map(o=>{let a=Object.fromEntries((0,it.ensureArray)(o.NavigationPropertyBinding).map(u=>[u._attributes.Path,`${t}.${n}/${u._attributes.Target}`])),c={_type:"EntitySet",name:o._attributes.Name,entityTypeName:Js(o._attributes.EntityType),navigationPropertyBinding:a,fullyQualifiedName:`${t}.${n}/${o._attributes.Name}`},l=(0,uf.convertV2Annotations)(o._attributes,"EntitySet",o._attributes.Name);return l.length>0&&r.push(wo(c.fullyQualifiedName,l)),c})}s(nge,"parseEntitySets");function rge(e,t,n,r){return e.map(o=>{let a=Object.fromEntries((0,it.ensureArray)(o.NavigationPropertyBinding).map(u=>[u._attributes.Path,`${t}.${n}/${u._attributes.Target}`])),c={_type:"Singleton",name:o._attributes.Name,entityTypeName:Js(o._attributes.Type),nullable:o._attributes.Nullable!=="false",navigationPropertyBinding:a,fullyQualifiedName:`${t}.${n}/${o._attributes.Name}`},l=(0,uf.convertV2Annotations)(o._attributes,"Singleton",o._attributes.Name);return l.length>0&&r.push(wo(c.fullyQualifiedName,l)),c})}s(rge,"parseSingletons");function rB(e,t,n){return e.map(r=>{let i=(0,it.ensureArray)(r.Parameter),o=r._attributes.IsBound==="true",a;n?a=i.map(l=>lf(l._attributes.Type).type).join(","):a=o?lf(i[0]._attributes.Type).type:"";let c=`${t}.${r._attributes.Name}(${a})`;return{_type:"Action",name:r._attributes.Name,isBound:o,sourceType:o?lf(i[0]._attributes.Type).type:"",fullyQualifiedName:c,isFunction:n,parameters:i.map(l=>{var u,f,p,d;let{isCollection:h,type:m}=lf(l._attributes.Type),b={_type:"ActionParameter",fullyQualifiedName:`${c}/${l._attributes.Name}`,name:`${l._attributes.Name}`,type:m,isCollection:h};return l._attributes.MaxLength&&(b.maxLength=((f=(u=l._attributes.MaxLength)===null||u===void 0?void 0:u.toLowerCase)===null||f===void 0?void 0:f.call(u))==="max"?5e3:parseInt(l._attributes.MaxLength,10)),l._attributes.Precision&&(b.precision=parseInt(l._attributes.Precision,10)),l._attributes.Scale&&(((d=(p=l._attributes.Scale)===null||p===void 0?void 0:p.toLowerCase)===null||d===void 0?void 0:d.call(p))==="variable"?b.scale="variable":b.scale=parseInt(l._attributes.Scale,10)),b.nullable=l._attributes.Nullable!=="false",b}),returnType:r.ReturnType?lf(r.ReturnType._attributes.Type).type:"",returnCollection:r.ReturnType?r.ReturnType._attributes.Type.match(xb)!==null:!1}})}s(rB,"parseActions");function ige(e,t,n,r,i){return e.map(o=>{let a=t.find(f=>f.name===o._attributes.EntitySet),c=`${r}/${o._attributes.Name}`,l=a==null?void 0:a.entityTypeName;if(o._attributes["sap:action-for"]){let f=n.find(p=>p.fullyQualifiedName===o._attributes["sap:action-for"]);f&&(l=f.fullyQualifiedName)}let u=(0,it.ensureArray)(o.Parameter).map(f=>{let p=(0,uf.convertV2Annotations)(f._attributes,"ActionParameter",f._attributes.Name),d=`${c}/${f._attributes.Name}`;return p.length>0&&i.push(wo(d,p)),{_type:"ActionParameter",name:f._attributes.Name,fullyQualifiedName:d,type:f._attributes.Type,isCollection:f._attributes.Type.match(/^Collection\(.+\)$/)!==null}});return{_type:"Action",name:o._attributes.Name,isBound:!1,sourceType:l??"",fullyQualifiedName:c,isFunction:!1,parameters:u,returnType:o._attributes.ReturnType?o._attributes.ReturnType:"",returnCollection:o._attributes.ReturnType?o._attributes.ReturnType.match(xb)!==null:!1}})}s(ige,"parseV2FunctionImport");function iB(e,t){return e.map(n=>{var r;let i=(r=n._attributes.Function)!==null&&r!==void 0?r:n._attributes.Action;return{_type:"ActionImport",name:Js(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Js(i)}})}s(iB,"parseActionImports");function sge(e,t,n){return e.map(r=>{let{Annotation:i,_attributes:o,...a}=r,c={};if(o){let l=Object.keys(o).find(f=>f!=="Property");c.name=o.Property;let u=`${t}/${c.name}`;if(a&&Object.keys(a).length>0?c.value=Ab(a,u,n,!1):l&&(c.value=aB({[l]:o[l]},u,n)),r.Annotation){let f=Jd((0,it.ensureArray)(r.Annotation),u,n);f&&f.length>0&&n.push(wo(u,f))}}return c})}s(sge,"parsePropertyValues");function Ob(e,t,n){let r=Jd((0,it.ensureArray)(e.Annotation),t,n),i={type:e._attributes?Js(e._attributes.Type):void 0,propertyValues:sge((0,it.ensureArray)(e.PropertyValue),t,n)};return r&&r.length>0&&(i.annotations=r),i}s(Ob,"parseRecord");function Co(e,t){return e[t]!=null}s(Co,"isExpressionOfType");function Pb(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}s(Pb,"parseModelPath");function Ix(e,t,n){if(Co(e,"Record")){let r=(0,it.ensureArray)(e.Record).map((i,o)=>Ob(i,t+"/"+o,n));return r.type="Record",r}else if(Co(e,"PropertyPath")){let r=(0,it.ensureArray)(e.PropertyPath).map(i=>Pb(i,"PropertyPath"));return r.type="PropertyPath",r}else if(Co(e,"NavigationPropertyPath")){let r=(0,it.ensureArray)(e.NavigationPropertyPath).map(i=>Pb(i,"NavigationPropertyPath"));return r.type="NavigationPropertyPath",r}else if(Co(e,"String")){let r=(0,it.ensureArray)(e.String).map(i=>({type:"String",String:i._text}));return r.type="String",r}else if(Co(e,"AnnotationPath")){let r=(0,it.ensureArray)(e.AnnotationPath).map(i=>Pb(i,"AnnotationPath"));return r.type="AnnotationPath",r}else if(Co(e,"Path")){let r=(0,it.ensureArray)(e.Path).map(i=>Pb(i,"Path"));return r.type="Path",r}else if(Co(e,"If")){let r=(0,it.ensureArray)(e.If).map(i=>i._text);return r.type="String",r}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}s(Ix,"parseCollection");function At(e){let t=Object.keys(e).filter(r=>r!=="_attributes"&&r!=="Annotation"),n=[];return t.forEach(r=>{Array.isArray(e[r])?n=n.concat(e[r].map(i=>Ab({[r]:i},"",[],!0))):n.push(Ab({[r]:e[r]},"",[],!0))}),n}s(At,"parseChildren");function aB(e,t,n){let r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let i=r[0];switch(i){case"String":return{type:"String",String:e[i]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Double":return{type:"Double",Double:parseFloat(e.Double)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[i]};case"Collection":return{type:"Collection",Collection:Ix(e.Collection,t,n)};case"Record":return{type:"Record",Record:Ob(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:At(e.Apply),$Function:At(e.Function)};case"And":return{type:"And",$And:At(e.And)};case"Or":return{type:"Or",$Or:At(e.Or)};case"Eq":return{type:"Eq",$Eq:At(e.Eq)};case"Gt":return{type:"Gt",$Gt:At(e.Gt)};case"Ge":return{type:"Ge",$Ge:At(e.Ge)};case"Lt":return{type:"Lt",$Lt:At(e.Lt)};case"Le":return{type:"Le",$Le:At(e.Le)};case"If":return{type:"If",$If:At(e.If)};case"Has":return{type:"Has",$Has:At(e.Has)};case"In":return{type:"In",$In:At(e.In)};case"Add":return{type:"Add",$Add:At(e.Add)};case"Sub":return{type:"Sub",$Sub:At(e.Sub)};case"Div":return{type:"Div",$Div:At(e.Div)};case"DivBy":return{type:"DivBy",$DivBy:At(e.DivBy)};case"Mul":return{type:"Mul",$Mul:At(e.Mul)};case"Mod":return{type:"Mod",$Mod:At(e.Mod)};case"Neg":return{type:"Neg",$Neg:At(e.Neg)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+i),{type:"Unknown"}}}s(aB,"parseInlineExpression");function Ab(e,t,n,r){let i=Object.keys(e).filter(a=>a!=="_text");if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let o=i[0];switch(o){case"String":return r?e[o]._text:{type:"String",String:e[o]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:At(e.LabeledElement)[0]};case"Bool":return r?e.Bool._text==="true":{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return r?parseInt(e.Int._text,10):{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return r?parseFloat(e.Decimal._text):{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Double":return r?parseFloat(e.Double._text):{type:"Double",Decimal:parseFloat(e.Double._text)};case"Path":return{type:"Path",Path:e.Path._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath._text};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath._text};case"EnumMember":return{type:"EnumMember",EnumMember:e[o]._text};case"Collection":return{type:"Collection",Collection:Ix(e.Collection,t,n)};case"Record":return{type:"Record",Record:Ob(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:At(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return r?null:{type:"Null"};case"And":return{type:"And",$And:At(e.And)};case"Ne":return{type:"Ne",$Ne:At(e.Ne)};case"Not":return{type:"Not",$Not:At(e.Not)[0]};case"Or":return{type:"Or",$Or:At(e.Or)};case"Eq":return{type:"Eq",$Eq:At(e.Eq)};case"If":return{type:"If",$If:At(e.If)};case"Gt":return{type:"Gt",$Gt:At(e.Gt)};case"Ge":return{type:"Ge",$Ge:At(e.Ge)};case"Lt":return{type:"Lt",$Lt:At(e.Lt)};case"Le":return{type:"Le",$Le:At(e.Le)};case"Has":return{type:"Has",$Has:At(e.Has)};case"In":return{type:"In",$In:At(e.In)};case"Add":return{type:"Add",$Add:At(e.Add)};case"Sub":return{type:"Sub",$Sub:At(e.Sub)};case"Div":return{type:"Div",$Div:At(e.Div)};case"DivBy":return{type:"DivBy",$DivBy:At(e.DivBy)};case"Mul":return{type:"Mul",$Mul:At(e.Mul)};case"Mod":return{type:"Mod",$Mod:At(e.Mod)};case"Neg":return{type:"Neg",$Neg:At(e.Neg)};default:return console.error("Unsupported expression type "+o),{type:"Unknown"}}}s(Ab,"parseExpression");function oge(e,t,n){let{Term:r,Qualifier:i,...o}=e._attributes,a={term:Js(r),qualifier:i},c=`${t}@${Js(r)}`;if(i!==""&&i!==void 0&&(c+=`#${i}`),o&&Object.keys(o).length>0&&(a.value=aB(o,c,n)),e.Annotation){let u=Jd((0,it.ensureArray)(e.Annotation),c,n);u&&u.length>0&&(a.annotations=u)}let l=Object.keys(e).filter(u=>u!=="_attributes"&&u!=="Annotation");return Co(e,"Record")?a.record=Ob(e.Record,c,n):Co(e,"Collection")?a.collection=Ix(e.Collection,c,n):l.length===1?a.value=Ab({[l[0]]:e[l[0]]},c,n,!1):l.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),a}s(oge,"parseAnnotation");function Jd(e,t,n){return e.map(r=>oge(r,t,n))}s(Jd,"parseAnnotations");function wo(e,t){return{target:e,annotations:t}}s(wo,"createAnnotationList");function age(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(wo(Js(n._attributes.Target),Jd((0,it.ensureArray)(n.Annotation),n._attributes.Target,t)))})}s(age,"parseAnnotationLists");function cge(e,t,n){let r=e._attributes.Namespace,i=[],o=zhe((0,it.ensureArray)(e.EntityType),i,r),a=Qhe((0,it.ensureArray)(e.ComplexType),i,r),c=ege((0,it.ensureArray)(e.EnumType),i,r),l=tge((0,it.ensureArray)(e.TypeDefinition),r),u=[],f=[],p=[],d={_type:"EntityContainer",fullyQualifiedName:""},h=[],m=[];if(e.EntityContainer)if(u=nge((0,it.ensureArray)(e.EntityContainer.EntitySet),r,e.EntityContainer._attributes.Name,i),f=rge((0,it.ensureArray)(e.EntityContainer.Singleton),r,e.EntityContainer._attributes.Name,i),p=Yhe((0,it.ensureArray)(e.EntityContainer.AssociationSet),r,e.EntityContainer),d={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${r}.${e.EntityContainer._attributes.Name}`},t==="1.0")h=h.concat(ige((0,it.ensureArray)(e.EntityContainer.FunctionImport),u,o,d.fullyQualifiedName,i));else if(t.startsWith("4."))m=m.concat(iB((0,it.ensureArray)(e.EntityContainer.FunctionImport),d.fullyQualifiedName)),m=m.concat(iB((0,it.ensureArray)(e.EntityContainer.ActionImport),d.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t.startsWith("4.")&&(h=h.concat(rB((0,it.ensureArray)(e.Action),r,!1)),h=h.concat(rB((0,it.ensureArray)(e.Function),r,!0)));let b=Xhe((0,it.ensureArray)(e.Association),r);age((0,it.ensureArray)(e.Annotations),i);let T={};return T[n]=i,{associations:b,associationSets:p,annotations:T,entityContainer:d,namespace:r,entitySets:u,singletons:f,complexTypes:a,enumTypes:c,typeDefinitions:l,actions:h,actionImports:m,entityTypes:o}}s(cge,"parseSchema");function lge(e){return e.reduce((t,n)=>((0,it.ensureArray)(n["edmx:Include"]).forEach(i=>{t.push({uri:n._attributes.Uri,alias:i._attributes.Alias,namespace:i._attributes.Namespace})}),t),[])}s(lge,"parseReferences");var Ox={};function lf(e){let t=e.match(xb),n=t?t[1]:e,r=Js(n);return{type:t?`Collection(${r})`:r,isCollection:t!==null}}s(lf,"unaliasType");function Js(e){var t;if(!e)return e;let n=["@","/","("],r=[],i=0;for(let o=0,a=!0;o<e.length;o++){let c=e[o];if(a&&c==="."){let l=e.substring(i,o);r.push((t=Ox[l])!==null&&t!==void 0?t:l),i=o,a=!1}n.includes(c)&&(r.push(e.substring(i,o+1)),i=o+1,a=!0)}return r.push(e.substring(i)),r.join("")}s(Js,"unalias");function uge(e){let t=e.reduce((m,b)=>m.concat(b.associations),[]),n=e.reduce((m,b)=>m.concat(b.associationSets),[]),r=e.reduce((m,b)=>m.concat(b.entitySets),[]),i=e.reduce((m,b)=>m.concat(b.singletons),[]),o=e.reduce((m,b)=>m.concat(b.entityTypes),[]),a=e.reduce((m,b)=>m.concat(b.actions),[]),c=e.reduce((m,b)=>m.concat(b.actionImports),[]),l=e.reduce((m,b)=>m.concat(b.complexTypes),[]),u=e.reduce((m,b)=>m.concat(b.enumTypes),[]),f=e.reduce((m,b)=>m.concat(b.typeDefinitions),[]),p={};e.forEach(m=>{p=Object.assign(p,m.annotations)});let d,h;return e.forEach(m=>{m.entityContainer&&Object.keys(m.entityContainer).length>0&&(d=m.entityContainer,h=m.namespace)}),r.forEach(m=>{let b=o.find(T=>T.fullyQualifiedName===m.entityTypeName);b==null||b.navigationProperties.forEach(T=>{let I=T,F=n.find(N=>N.association===I.relationship);if(F){let N=F.associationEnd.find($=>$.entitySet!==m.fullyQualifiedName);N&&(m.navigationPropertyBinding[T.name]=N.entitySet)}})}),o.forEach(m=>{m.navigationProperties.forEach(b=>{let T=b,I=t.find(F=>F.fullyQualifiedName===T.relationship);I&&I.referentialConstraints&&I.referentialConstraints.length>0&&(I.referentialConstraints[0].sourceTypeName===m.fullyQualifiedName?T.referentialConstraint=I.referentialConstraints:T.referentialConstraint=I.referentialConstraints.map(F=>({sourceTypeName:F.targetTypeName,sourceProperty:F.targetProperty,targetTypeName:F.sourceTypeName,targetProperty:F.sourceProperty})))})}),{associations:t,associationSets:n,annotations:p,entityContainer:d,namespace:h,entitySets:r,singletons:i,complexTypes:l,enumTypes:u,typeDefinitions:f,actions:a,actionImports:c,entityTypes:o}}s(uge,"mergeSchemas");function fge(e,t){Ox=e.reduce((n,r)=>(n[r.alias]=r.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{Ox[n._attributes.Alias]=n._attributes.Namespace})}s(fge,"createAliasMap");function pge(e,t="serviceFile"){let n=(0,Ghe.xml2js)(e,{compact:!0}),r=n["edmx:Edmx"]._attributes.Version,i=(0,it.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),o=lge((0,it.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));fge(o,i);let a=i.map(l=>cge(l,r,t));return new it.RawMetadataInstance(t,r,uge(a),o)}s(pge,"parse");Ib.parse=pge});var lB=y(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.parse=ff.merge=void 0;var dge=AU();Object.defineProperty(ff,"merge",{enumerable:!0,get:s(function(){return dge.merge},"get")});var hge=cB();Object.defineProperty(ff,"parse",{enumerable:!0,get:s(function(){return hge.parse},"get")})});var hB=y(()=>{var dB;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:c(),r=i(e);typeof n.Reflect<"u"&&(r=i(n.Reflect,r)),t(r,n),typeof n.Reflect>"u"&&(n.Reflect=e);function i(l,u){return function(f,p){Object.defineProperty(l,f,{configurable:!0,writable:!0,value:p}),u&&u(f,p)}}s(i,"makeExporter");function o(){try{return Function("return this;")()}catch{}}s(o,"functionThis");function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}s(a,"indirectEvalThis");function c(){return o()||a()}s(c,"sloppyModeThis")})(function(t,n){var r=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",o=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",l={__proto__:[]}instanceof Array,u=!c&&!l,f={create:c?function(){return _a(Object.create(null))}:l?function(){return _a({__proto__:null})}:function(){return _a({})},has:u?function(K,ne){return r.call(K,ne)}:function(K,ne){return ne in K},get:u?function(K,ne){return r.call(K,ne)?K[ne]:void 0}:function(K,ne){return K[ne]}},p=Object.getPrototypeOf(Function),d=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Zu(),h=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Ia(),m=typeof WeakMap=="function"?WeakMap:ef(),b=i?Symbol.for("@reflect-metadata:registry"):void 0,T=Er(),I=zi(T);function F(K,ne,ce,Se){if(Oe(ce)){if(!P(K))throw new TypeError;if(!J(ne))throw new TypeError;return Te(K,ne)}else{if(!P(K))throw new TypeError;if(!et(ne))throw new TypeError;if(!et(Se)&&!Oe(Se)&&!Lt(Se))throw new TypeError;return Lt(Se)&&(Se=void 0),ce=bt(ce),pe(K,ne,ce,Se)}}s(F,"decorate"),t("decorate",F);function N(K,ne){function ce(Se,We){if(!et(Se))throw new TypeError;if(!Oe(We)&&!q(We))throw new TypeError;Ne(K,ne,Se,We)}return s(ce,"decorator"),ce}s(N,"metadata"),t("metadata",N);function $(K,ne,ce,Se){if(!et(ce))throw new TypeError;return Oe(Se)||(Se=bt(Se)),Ne(K,ne,ce,Se)}s($,"defineMetadata"),t("defineMetadata",$);function j(K,ne,ce){if(!et(ne))throw new TypeError;return Oe(ce)||(ce=bt(ce)),ue(K,ne,ce)}s(j,"hasMetadata"),t("hasMetadata",j);function M(K,ne,ce){if(!et(ne))throw new TypeError;return Oe(ce)||(ce=bt(ce)),W(K,ne,ce)}s(M,"hasOwnMetadata"),t("hasOwnMetadata",M);function k(K,ne,ce){if(!et(ne))throw new TypeError;return Oe(ce)||(ce=bt(ce)),H(K,ne,ce)}s(k,"getMetadata"),t("getMetadata",k);function U(K,ne,ce){if(!et(ne))throw new TypeError;return Oe(ce)||(ce=bt(ce)),Ae(K,ne,ce)}s(U,"getOwnMetadata"),t("getOwnMetadata",U);function R(K,ne){if(!et(K))throw new TypeError;return Oe(ne)||(ne=bt(ne)),Be(K,ne)}s(R,"getMetadataKeys"),t("getMetadataKeys",R);function se(K,ne){if(!et(K))throw new TypeError;return Oe(ne)||(ne=bt(ne)),tn(K,ne)}s(se,"getOwnMetadataKeys"),t("getOwnMetadataKeys",se);function G(K,ne,ce){if(!et(ne))throw new TypeError;if(Oe(ce)||(ce=bt(ce)),!et(ne))throw new TypeError;Oe(ce)||(ce=bt(ce));var Se=yn(ne,ce,!1);return Oe(Se)?!1:Se.OrdinaryDeleteMetadata(K,ne,ce)}s(G,"deleteMetadata"),t("deleteMetadata",G);function Te(K,ne){for(var ce=K.length-1;ce>=0;--ce){var Se=K[ce],We=Se(ne);if(!Oe(We)&&!Lt(We)){if(!J(We))throw new TypeError;ne=We}}return ne}s(Te,"DecorateConstructor");function pe(K,ne,ce,Se){for(var We=K.length-1;We>=0;--We){var hn=K[We],bn=hn(ne,ce,Se);if(!Oe(bn)&&!Lt(bn)){if(!et(bn))throw new TypeError;Se=bn}}return Se}s(pe,"DecorateProperty");function ue(K,ne,ce){var Se=W(K,ne,ce);if(Se)return!0;var We=on(ne);return Lt(We)?!1:ue(K,We,ce)}s(ue,"OrdinaryHasMetadata");function W(K,ne,ce){var Se=yn(ne,ce,!1);return Oe(Se)?!1:Xi(Se.OrdinaryHasOwnMetadata(K,ne,ce))}s(W,"OrdinaryHasOwnMetadata");function H(K,ne,ce){var Se=W(K,ne,ce);if(Se)return Ae(K,ne,ce);var We=on(ne);if(!Lt(We))return H(K,We,ce)}s(H,"OrdinaryGetMetadata");function Ae(K,ne,ce){var Se=yn(ne,ce,!1);if(!Oe(Se))return Se.OrdinaryGetOwnMetadata(K,ne,ce)}s(Ae,"OrdinaryGetOwnMetadata");function Ne(K,ne,ce,Se){var We=yn(ce,Se,!0);We.OrdinaryDefineOwnMetadata(K,ne,ce,Se)}s(Ne,"OrdinaryDefineOwnMetadata");function Be(K,ne){var ce=tn(K,ne),Se=on(K);if(Se===null)return ce;var We=Be(Se,ne);if(We.length<=0)return ce;if(ce.length<=0)return We;for(var hn=new h,bn=[],ht=0,xe=ce;ht<xe.length;ht++){var Le=xe[ht],we=hn.has(Le);we||(hn.add(Le),bn.push(Le))}for(var qe=0,gt=We;qe<gt.length;qe++){var Le=gt[qe],we=hn.has(Le);we||(hn.add(Le),bn.push(Le))}return bn}s(Be,"OrdinaryMetadataKeys");function tn(K,ne){var ce=yn(K,ne,!1);return ce?ce.OrdinaryOwnMetadataKeys(K,ne):[]}s(tn,"OrdinaryOwnMetadataKeys");function Fe(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}}s(Fe,"Type");function Oe(K){return K===void 0}s(Oe,"IsUndefined");function Lt(K){return K===null}s(Lt,"IsNull");function In(K){return typeof K=="symbol"}s(In,"IsSymbol");function et(K){return typeof K=="object"?K!==null:typeof K=="function"}s(et,"IsObject");function rt(K,ne){switch(Fe(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 ce=ne===3?"string":ne===5?"number":"default",Se=vt(K,o);if(Se!==void 0){var We=Se.call(K,ce);if(et(We))throw new TypeError;return We}return Ri(K,ce==="default"?"number":ce)}s(rt,"ToPrimitive");function Ri(K,ne){if(ne==="string"){var ce=K.toString;if(E(ce)){var Se=ce.call(K);if(!et(Se))return Se}var We=K.valueOf;if(E(We)){var Se=We.call(K);if(!et(Se))return Se}}else{var We=K.valueOf;if(E(We)){var Se=We.call(K);if(!et(Se))return Se}var hn=K.toString;if(E(hn)){var Se=hn.call(K);if(!et(Se))return Se}}throw new TypeError}s(Ri,"OrdinaryToPrimitive");function Xi(K){return!!K}s(Xi,"ToBoolean");function Ee(K){return""+K}s(Ee,"ToString");function bt(K){var ne=rt(K,3);return In(ne)?ne:Ee(ne)}s(bt,"ToPropertyKey");function P(K){return Array.isArray?Array.isArray(K):K instanceof Object?K instanceof Array:Object.prototype.toString.call(K)==="[object Array]"}s(P,"IsArray");function E(K){return typeof K=="function"}s(E,"IsCallable");function J(K){return typeof K=="function"}s(J,"IsConstructor");function q(K){switch(Fe(K)){case 3:return!0;case 4:return!0;default:return!1}}s(q,"IsPropertyKey");function Re(K,ne){return K===ne||K!==K&&ne!==ne}s(Re,"SameValueZero");function vt(K,ne){var ce=K[ne];if(ce!=null){if(!E(ce))throw new TypeError;return ce}}s(vt,"GetMethod");function It(K){var ne=vt(K,a);if(!E(ne))throw new TypeError;var ce=ne.call(K);if(!et(ce))throw new TypeError;return ce}s(It,"GetIterator");function Cn(K){return K.value}s(Cn,"IteratorValue");function Rn(K){var ne=K.next();return ne.done?!1:ne}s(Rn,"IteratorStep");function ur(K){var ne=K.return;ne&&ne.call(K)}s(ur,"IteratorClose");function on(K){var ne=Object.getPrototypeOf(K);if(typeof K!="function"||K===p||ne!==p)return ne;var ce=K.prototype,Se=ce&&Object.getPrototypeOf(ce);if(Se==null||Se===Object.prototype)return ne;var We=Se.constructor;return typeof We!="function"||We===K?ne:We}s(on,"OrdinaryGetPrototypeOf");function ir(){var K;!Oe(b)&&typeof n.Reflect<"u"&&!(b in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(K=Qi(n.Reflect));var ne,ce,Se,We=new m,hn={registerProvider:bn,getProvider:xe,setProvider:we};return hn;function bn(qe){if(!Object.isExtensible(hn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case K===qe:break;case Oe(ne):ne=qe;break;case ne===qe:break;case Oe(ce):ce=qe;break;case ce===qe:break;default:Se===void 0&&(Se=new h),Se.add(qe);break}}function ht(qe,gt){if(!Oe(ne)){if(ne.isProviderFor(qe,gt))return ne;if(!Oe(ce)){if(ce.isProviderFor(qe,gt))return ne;if(!Oe(Se))for(var Kt=It(Se);;){var an=Rn(Kt);if(!an)return;var sr=Cn(an);if(sr.isProviderFor(qe,gt))return ur(Kt),sr}}}if(!Oe(K)&&K.isProviderFor(qe,gt))return K}function xe(qe,gt){var Kt=We.get(qe),an;return Oe(Kt)||(an=Kt.get(gt)),Oe(an)&&(an=ht(qe,gt),Oe(an)||(Oe(Kt)&&(Kt=new d,We.set(qe,Kt)),Kt.set(gt,an))),an}function Le(qe){if(Oe(qe))throw new TypeError;return ne===qe||ce===qe||!Oe(Se)&&Se.has(qe)}function we(qe,gt,Kt){if(!Le(Kt))throw new Error("Metadata provider not registered.");var an=xe(qe,gt);if(an!==Kt){if(!Oe(an))return!1;var sr=We.get(qe);Oe(sr)&&(sr=new d,We.set(qe,sr)),sr.set(gt,Kt)}return!0}}s(ir,"CreateMetadataRegistry");function Er(){var K;return!Oe(b)&&et(n.Reflect)&&Object.isExtensible(n.Reflect)&&(K=n.Reflect[b]),Oe(K)&&(K=ir()),!Oe(b)&&et(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:K}),K}s(Er,"GetOrCreateMetadataRegistry");function zi(K){var ne=new m,ce={isProviderFor:s(function(Le,we){var qe=ne.get(Le);return Oe(qe)?!1:qe.has(we)},"isProviderFor"),OrdinaryDefineOwnMetadata:bn,OrdinaryHasOwnMetadata:We,OrdinaryGetOwnMetadata:hn,OrdinaryOwnMetadataKeys:ht,OrdinaryDeleteMetadata:xe};return T.registerProvider(ce),ce;function Se(Le,we,qe){var gt=ne.get(Le),Kt=!1;if(Oe(gt)){if(!qe)return;gt=new d,ne.set(Le,gt),Kt=!0}var an=gt.get(we);if(Oe(an)){if(!qe)return;if(an=new d,gt.set(we,an),!K.setProvider(Le,we,ce))throw gt.delete(we),Kt&&ne.delete(Le),new Error("Wrong provider for target.")}return an}s(Se,"GetOrCreateMetadataMap");function We(Le,we,qe){var gt=Se(we,qe,!1);return Oe(gt)?!1:Xi(gt.has(Le))}s(We,"OrdinaryHasOwnMetadata");function hn(Le,we,qe){var gt=Se(we,qe,!1);if(!Oe(gt))return gt.get(Le)}s(hn,"OrdinaryGetOwnMetadata");function bn(Le,we,qe,gt){var Kt=Se(qe,gt,!0);Kt.set(Le,we)}s(bn,"OrdinaryDefineOwnMetadata");function ht(Le,we){var qe=[],gt=Se(Le,we,!1);if(Oe(gt))return qe;for(var Kt=gt.keys(),an=It(Kt),sr=0;;){var Ca=Rn(an);if(!Ca)return qe.length=sr,qe;var al=Cn(Ca);try{qe[sr]=al}catch(Q){try{ur(an)}finally{throw Q}}sr++}}s(ht,"OrdinaryOwnMetadataKeys");function xe(Le,we,qe){var gt=Se(we,qe,!1);if(Oe(gt)||!gt.delete(Le))return!1;if(gt.size===0){var Kt=ne.get(we);Oe(Kt)||(Kt.delete(qe),Kt.size===0&&ne.delete(Kt))}return!0}s(xe,"OrdinaryDeleteMetadata")}s(zi,"CreateMetadataProvider");function Qi(K){var ne=K.defineMetadata,ce=K.hasOwnMetadata,Se=K.getOwnMetadata,We=K.getOwnMetadataKeys,hn=K.deleteMetadata,bn=new m,ht={isProviderFor:s(function(xe,Le){var we=bn.get(xe);return!Oe(we)&&we.has(Le)?!0:We(xe,Le).length?(Oe(we)&&(we=new h,bn.set(xe,we)),we.add(Le),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:ne,OrdinaryHasOwnMetadata:ce,OrdinaryGetOwnMetadata:Se,OrdinaryOwnMetadataKeys:We,OrdinaryDeleteMetadata:hn};return ht}s(Qi,"CreateFallbackProvider");function yn(K,ne,ce){var Se=T.getProvider(K,ne);if(!Oe(Se))return Se;if(ce){if(T.setProvider(K,ne,I))return I;throw new Error("Illegal state.")}}s(yn,"GetMetadataProvider");function Zu(){var K={},ne=[],ce=(function(){function ht(xe,Le,we){this._index=0,this._keys=xe,this._values=Le,this._selector=we}return s(ht,"MapIterator"),ht.prototype["@@iterator"]=function(){return this},ht.prototype[a]=function(){return this},ht.prototype.next=function(){var xe=this._index;if(xe>=0&&xe<this._keys.length){var Le=this._selector(this._keys[xe],this._values[xe]);return xe+1>=this._keys.length?(this._index=-1,this._keys=ne,this._values=ne):this._index++,{value:Le,done:!1}}return{value:void 0,done:!0}},ht.prototype.throw=function(xe){throw this._index>=0&&(this._index=-1,this._keys=ne,this._values=ne),xe},ht.prototype.return=function(xe){return this._index>=0&&(this._index=-1,this._keys=ne,this._values=ne),{value:xe,done:!0}},ht})(),Se=(function(){function ht(){this._keys=[],this._values=[],this._cacheKey=K,this._cacheIndex=-2}return s(ht,"Map"),Object.defineProperty(ht.prototype,"size",{get:s(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),ht.prototype.has=function(xe){return this._find(xe,!1)>=0},ht.prototype.get=function(xe){var Le=this._find(xe,!1);return Le>=0?this._values[Le]:void 0},ht.prototype.set=function(xe,Le){var we=this._find(xe,!0);return this._values[we]=Le,this},ht.prototype.delete=function(xe){var Le=this._find(xe,!1);if(Le>=0){for(var we=this._keys.length,qe=Le+1;qe<we;qe++)this._keys[qe-1]=this._keys[qe],this._values[qe-1]=this._values[qe];return this._keys.length--,this._values.length--,Re(xe,this._cacheKey)&&(this._cacheKey=K,this._cacheIndex=-2),!0}return!1},ht.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=K,this._cacheIndex=-2},ht.prototype.keys=function(){return new ce(this._keys,this._values,We)},ht.prototype.values=function(){return new ce(this._keys,this._values,hn)},ht.prototype.entries=function(){return new ce(this._keys,this._values,bn)},ht.prototype["@@iterator"]=function(){return this.entries()},ht.prototype[a]=function(){return this.entries()},ht.prototype._find=function(xe,Le){if(!Re(this._cacheKey,xe)){this._cacheIndex=-1;for(var we=0;we<this._keys.length;we++)if(Re(this._keys[we],xe)){this._cacheIndex=we;break}}return this._cacheIndex<0&&Le&&(this._cacheIndex=this._keys.length,this._keys.push(xe),this._values.push(void 0)),this._cacheIndex},ht})();return Se;function We(ht,xe){return ht}function hn(ht,xe){return xe}function bn(ht,xe){return[ht,xe]}}s(Zu,"CreateMapPolyfill");function Ia(){var K=(function(){function ne(){this._map=new d}return s(ne,"Set"),Object.defineProperty(ne.prototype,"size",{get:s(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),ne.prototype.has=function(ce){return this._map.has(ce)},ne.prototype.add=function(ce){return this._map.set(ce,ce),this},ne.prototype.delete=function(ce){return this._map.delete(ce)},ne.prototype.clear=function(){this._map.clear()},ne.prototype.keys=function(){return this._map.keys()},ne.prototype.values=function(){return this._map.keys()},ne.prototype.entries=function(){return this._map.entries()},ne.prototype["@@iterator"]=function(){return this.keys()},ne.prototype[a]=function(){return this.keys()},ne})();return K}s(Ia,"CreateSetPolyfill");function ef(){var K=16,ne=f.create(),ce=Se();return(function(){function xe(){this._key=Se()}return s(xe,"WeakMap"),xe.prototype.has=function(Le){var we=We(Le,!1);return we!==void 0?f.has(we,this._key):!1},xe.prototype.get=function(Le){var we=We(Le,!1);return we!==void 0?f.get(we,this._key):void 0},xe.prototype.set=function(Le,we){var qe=We(Le,!0);return qe[this._key]=we,this},xe.prototype.delete=function(Le){var we=We(Le,!1);return we!==void 0?delete we[this._key]:!1},xe.prototype.clear=function(){this._key=Se()},xe})();function Se(){var xe;do xe="@@WeakMap@@"+ht();while(f.has(ne,xe));return ne[xe]=!0,xe}function We(xe,Le){if(!r.call(xe,ce)){if(!Le)return;Object.defineProperty(xe,ce,{value:f.create()})}return xe[ce]}function hn(xe,Le){for(var we=0;we<Le;++we)xe[we]=Math.random()*255|0;return xe}function bn(xe){if(typeof Uint8Array=="function"){var Le=new Uint8Array(xe);return typeof crypto<"u"?crypto.getRandomValues(Le):typeof msCrypto<"u"?msCrypto.getRandomValues(Le):hn(Le,xe),Le}return hn(new Array(xe),xe)}function ht(){var xe=bn(K);xe[6]=xe[6]&79|64,xe[8]=xe[8]&191|128;for(var Le="",we=0;we<K;++we){var qe=xe[we];(we===4||we===6||we===8)&&(Le+="-"),qe<16&&(Le+="0"),Le+=qe.toString(16).toLowerCase()}return Le}}s(ef,"CreateWeakMapPolyfill");function _a(K){return K.__=void 0,delete K.__,K}s(_a,"MakeDictionary")})})(dB||(dB={}))});var EB=y((UZe,SB)=>{var Tge=0,TB="changeUtils: ";function Sge(){return"id-"+new Date().valueOf()+"-"+Tge++}s(Sge,"uid");function Ege(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}s(Ege,"appendComponentToReference");function Pge(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return Ege(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}s(Pge,"getFlexReference");function Age(e){let t=e["sap.app"];if(!t||!t.applicationVersion||!t.applicationVersion.version)throw Error("app version could not be determined");return t.applicationVersion.version}s(Age,"getAppVersion");function xge(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}s(xge,"getProjectId");function vB(e){return JSON.stringify({fileName:e.id||Sge().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:TB+e.creatingTool,service:"",user:"",sapui5Version:e.sapui5Version,sourceChangeFileName:"",compositeCommand:""},oDataInformation:{},dependentSelector:{},validAppVersions:{from:e.appVersion,to:e.appVersion,creation:e.appVersion},jsOnly:!1,variantReference:"",appDescriptorChange:!1})}s(vB,"createString");SB.exports={parse:s(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(TB,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:s(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=Pge(t),e.appVersion=Age(t),e.projectId=xge(t,e.reference),vB(e)},"createChangeString"),toString:s(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 vB(e)},"toString")}});var AB=y((GZe,PB)=>{PB.exports={change:EB()}});var tG=y(ts=>{"use strict";var Wge=/[|\\{}()[\]^$+*?.]/g,Kge=Object.prototype.hasOwnProperty,Qx=s(function(e,t){return Kge.apply(e,[t])},"hasOwn");ts.escapeRegExpChars=function(e){return e?String(e).replace(Wge,"\\$&"):""};var Jge={"&":"&","<":"<",">":">",'"':""","'":"'"},Yge=/[&<>'"]/g;function Xge(e){return Jge[e]||e}s(Xge,"encode_char");var zge=`var _ENCODE_HTML_RULES = {
|
|
31
|
-
"&": "&"
|
|
32
|
-
, "<": "<"
|
|
33
|
-
, ">": ">"
|
|
34
|
-
, '"': """
|
|
35
|
-
, "'": "'"
|
|
36
|
-
}
|
|
37
|
-
, _MATCH_HTML = /[&<>'"]/g;
|
|
38
|
-
function encode_char(c) {
|
|
39
|
-
return _ENCODE_HTML_RULES[c] || c;
|
|
40
|
-
};
|
|
41
|
-
`;ts.escapeXML=function(e){return e==null?"":String(e).replace(Yge,Xge)};function eG(){return Function.prototype.toString.call(this)+`;
|
|
42
|
-
`+zge}s(eG,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(ts.escapeXML,"toString",{value:eG}):ts.escapeXML.toString=eG}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}ts.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)Qx(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};ts.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},e!=null)for(var r=0;r<n.length;r++){var i=n[r];if(typeof t[i]<"u"){if(!Qx(t,i)||i==="__proto__"||i==="constructor")continue;e[i]=t[i]}}return e};ts.cache={_data:{},set:s(function(e,t){this._data[e]=t},"set"),get:s(function(e){return this._data[e]},"get"),remove:s(function(e){delete this._data[e]},"remove"),reset:s(function(){this._data={}},"reset")};ts.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};ts.createNullProtoObjWherePossible=(function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}})();ts.hasOwnOnlyObject=function(e){var t=ts.createNullProtoObjWherePossible();for(var n in e)Qx(e,n)&&(t[n]=e[n]);return t}});var nG=y((ket,Qge)=>{Qge.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 Ua=y(Ht=>{"use strict";var eO=require("fs"),hh=require("path"),Vn=tG(),rG=!1,Zge=nG().version,eme="<",tme=">",nme="%",lG="locals",rme="ejs",ime="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",uG=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],sme=uG.concat("cache"),iG=/^\uFEFF/,Zx=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Ht.cache=Vn.cache;Ht.fileLoader=eO.readFileSync;Ht.localsName=lG;Ht.promiseImpl=new Function("return this;")().Promise;Ht.resolveInclude=function(e,t,n){var r=hh.dirname,i=hh.extname,o=hh.resolve,a=o(n?t:r(t),e),c=i(e);return c||(a+=".ejs"),a};function sG(e,t){var n;if(t.some(function(r){return n=Ht.resolveInclude(e,r,!0),eO.existsSync(n)}))return n}s(sG,"resolvePaths");function ome(e,t){var n,r,i=t.views,o=/^[A-Za-z]+:\\|^\//.exec(e);if(o&&o.length)e=e.replace(/^\/*/,""),Array.isArray(t.root)?n=sG(e,t.root):n=Ht.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(r=Ht.resolveInclude(e,t.filename),eO.existsSync(r)&&(n=r)),!n&&Array.isArray(i)&&(n=sG(e,i)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}s(ome,"getIncludePath");function gh(e,t){var n,r=e.filename,i=arguments.length>1;if(e.cache){if(!r)throw new Error("cache option requires a filename");if(n=Ht.cache.get(r),n)return n;i||(t=oG(r).toString().replace(iG,""))}else if(!i){if(!r)throw new Error("Internal EJS error: no file name or template provided");t=oG(r).toString().replace(iG,"")}return n=Ht.compile(t,e),e.cache&&Ht.cache.set(r,n),n}s(gh,"handleCache");function ame(e,t,n){var r;if(n){try{r=gh(e)(t)}catch(i){return n(i)}n(null,r)}else{if(typeof Ht.promiseImpl=="function")return new Ht.promiseImpl(function(i,o){try{r=gh(e)(t),i(r)}catch(a){o(a)}});throw new Error("Please provide a callback function")}}s(ame,"tryHandleCache");function oG(e){return Ht.fileLoader(e)}s(oG,"fileLoader");function cme(e,t){var n=Vn.shallowCopy(Vn.createNullProtoObjWherePossible(),t);if(n.filename=ome(e,n),typeof t.includer=="function"){var r=t.includer(e,n.filename);if(r&&(r.filename&&(n.filename=r.filename),r.template))return gh(n,r.template)}return gh(n)}s(cme,"includeFile");function aG(e,t,n,r,i){var o=t.split(`
|
|
43
|
-
`),a=Math.max(r-3,0),c=Math.min(o.length,r+3),l=i(n),u=o.slice(a,c).map(function(f,p){var d=p+a+1;return(d==r?" >> ":" ")+d+"| "+f}).join(`
|
|
44
|
-
`);throw e.path=l,e.message=(l||"ejs")+":"+r+`
|
|
45
|
-
`+u+`
|
|
46
|
-
|
|
47
|
-
`+e.message,e}s(aG,"rethrow");function cG(e){return e.replace(/;(\s*$)/,"$1")}s(cG,"stripSemi");Ht.compile=s(function(t,n){var r;return n&&n.scope&&(rG||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),rG=!0),n.context||(n.context=n.scope),delete n.scope),r=new er(t,n),r.compile()},"compile");Ht.render=function(e,t,n){var r=t||Vn.createNullProtoObjWherePossible(),i=n||Vn.createNullProtoObjWherePossible();return arguments.length==2&&Vn.shallowCopyFromList(i,r,uG),gh(i,e)(r)};Ht.renderFile=function(){var e=Array.prototype.slice.call(arguments),t=e.shift(),n,r={filename:t},i,o;return typeof arguments[arguments.length-1]=="function"&&(n=e.pop()),e.length?(i=e.shift(),e.length?Vn.shallowCopy(r,e.pop()):(i.settings&&(i.settings.views&&(r.views=i.settings.views),i.settings["view cache"]&&(r.cache=!0),o=i.settings["view options"],o&&Vn.shallowCopy(r,o)),Vn.shallowCopyFromList(r,i,sme)),r.filename=t):i=Vn.createNullProtoObjWherePossible(),ame(r,i,n)};Ht.Template=er;Ht.clearCache=function(){Ht.cache.reset()};function er(e,t){var n=Vn.hasOwnOnlyObject(t),r=Vn.createNullProtoObjWherePossible();this.templateText=e,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",r.client=n.client||!1,r.escapeFunction=n.escape||n.escapeFunction||Vn.escapeXML,r.compileDebug=n.compileDebug!==!1,r.debug=!!n.debug,r.filename=n.filename,r.openDelimiter=n.openDelimiter||Ht.openDelimiter||eme,r.closeDelimiter=n.closeDelimiter||Ht.closeDelimiter||tme,r.delimiter=n.delimiter||Ht.delimiter||nme,r.strict=n.strict||!1,r.context=n.context,r.cache=n.cache||!1,r.rmWhitespace=n.rmWhitespace,r.root=n.root,r.includer=n.includer,r.outputFunctionName=n.outputFunctionName,r.localsName=n.localsName||Ht.localsName||lG,r.views=n.views,r.async=n.async,r.destructuredLocals=n.destructuredLocals,r.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,r.strict?r._with=!1:r._with=typeof n._with<"u"?n._with:!0,this.opts=r,this.regex=this.createRegex()}s(er,"Template");er.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};er.prototype={createRegex:s(function(){var e=ime,t=Vn.escapeRegExpChars(this.opts.delimiter),n=Vn.escapeRegExpChars(this.opts.openDelimiter),r=Vn.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,n).replace(/>/g,r),new RegExp(e)},"createRegex"),compile:s(function(){var e,t,n=this.opts,r="",i="",o=n.escapeFunction,a,c=n.filename?JSON.stringify(n.filename):"undefined";if(!this.source){if(this.generateSource(),r+=` var __output = "";
|
|
48
|
-
function __append(s) { if (s !== undefined && s !== null) __output += s }
|
|
49
|
-
`,n.outputFunctionName){if(!Zx.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");r+=" var "+n.outputFunctionName+` = __append;
|
|
50
|
-
`}if(n.localsName&&!Zx.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){for(var l=" var __locals = ("+n.localsName+` || {}),
|
|
51
|
-
`,u=0;u<n.destructuredLocals.length;u++){var f=n.destructuredLocals[u];if(!Zx.test(f))throw new Error("destructuredLocals["+u+"] is not a valid JS identifier.");u>0&&(l+=`,
|
|
52
|
-
`),l+=f+" = __locals."+f}r+=l+`;
|
|
53
|
-
`}n._with!==!1&&(r+=" with ("+n.localsName+` || {}) {
|
|
54
|
-
`,i+=` }
|
|
55
|
-
`),i+=` return __output;
|
|
56
|
-
`,this.source=r+this.source+i}n.compileDebug?e=`var __line = 1
|
|
57
|
-
, __lines = `+JSON.stringify(this.templateText)+`
|
|
58
|
-
, __filename = `+c+`;
|
|
59
|
-
try {
|
|
60
|
-
`+this.source+`} catch (e) {
|
|
61
|
-
rethrow(e, __lines, __filename, __line, escapeFn);
|
|
62
|
-
}
|
|
63
|
-
`:e=this.source,n.client&&(e="escapeFn = escapeFn || "+o.toString()+`;
|
|
64
|
-
`+e,n.compileDebug&&(e="rethrow = rethrow || "+aG.toString()+`;
|
|
65
|
-
`+e)),n.strict&&(e=`"use strict";
|
|
66
|
-
`+e),n.debug&&console.log(e),n.compileDebug&&n.filename&&(e=e+`
|
|
67
|
-
//# sourceURL=`+c+`
|
|
68
|
-
`);try{if(n.async)try{a=new Function("return (async function(){}).constructor;")()}catch(m){throw m instanceof SyntaxError?new Error("This environment does not support async/await"):m}else a=Function;t=new a(n.localsName+", escapeFn, include, rethrow",e)}catch(m){throw m instanceof SyntaxError&&(n.filename&&(m.message+=" in "+n.filename),m.message+=` while compiling ejs
|
|
69
|
-
|
|
70
|
-
`,m.message+=`If the above error is not helpful, you may want to try EJS-Lint:
|
|
71
|
-
`,m.message+="https://github.com/RyanZim/EJS-Lint",n.async||(m.message+=`
|
|
72
|
-
`,m.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),m}var p=n.client?t:s(function(b){var T=s(function(I,F){var N=Vn.shallowCopy(Vn.createNullProtoObjWherePossible(),b);return F&&(N=Vn.shallowCopy(N,F)),cme(I,n)(N)},"include");return t.apply(n.context,[b||Vn.createNullProtoObjWherePossible(),o,T,aG])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var d=n.filename,h=hh.basename(d,hh.extname(d));try{Object.defineProperty(p,"name",{value:h,writable:!1,enumerable:!1,configurable:!0})}catch{}}return p},"compile"),generateSource:s(function(){var e=this.opts;e.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
|
|
73
|
-
`).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var t=this,n=this.parseTemplateText(),r=this.opts.delimiter,i=this.opts.openDelimiter,o=this.opts.closeDelimiter;n&&n.length&&n.forEach(function(a,c){var l;if(a.indexOf(i+r)===0&&a.indexOf(i+r+r)!==0&&(l=n[c+2],!(l==r+o||l=="-"+r+o||l=="_"+r+o)))throw new Error('Could not find matching close tag for "'+a+'".');t.scanLine(a)})},"generateSource"),parseTemplateText:s(function(){for(var e=this.templateText,t=this.regex,n=t.exec(e),r=[],i;n;)i=n.index,i!==0&&(r.push(e.substring(0,i)),e=e.slice(i)),r.push(n[0]),e=e.slice(n[0].length),n=t.exec(e);return e&&r.push(e),r},"parseTemplateText"),_addOutput:s(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+`")
|
|
74
|
-
`},"_addOutput"),scanLine:s(function(e){var t=this,n=this.opts.delimiter,r=this.opts.openDelimiter,i=this.opts.closeDelimiter,o=0;switch(o=e.split(`
|
|
75
|
-
`).length-1,e){case r+n:case r+n+"_":this.mode=er.modes.EVAL;break;case r+n+"=":this.mode=er.modes.ESCAPED;break;case r+n+"-":this.mode=er.modes.RAW;break;case r+n+"#":this.mode=er.modes.COMMENT;break;case r+n+n:this.mode=er.modes.LITERAL,this.source+=' ; __append("'+e.replace(r+n+n,r+n)+`")
|
|
76
|
-
`;break;case n+n+i:this.mode=er.modes.LITERAL,this.source+=' ; __append("'+e.replace(n+n+i,n+i)+`")
|
|
77
|
-
`;break;case n+i:case"-"+n+i:case"_"+n+i:this.mode==er.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 er.modes.EVAL:case er.modes.ESCAPED:case er.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf(`
|
|
78
|
-
`)&&(e+=`
|
|
79
|
-
`)}switch(this.mode){case er.modes.EVAL:this.source+=" ; "+e+`
|
|
80
|
-
`;break;case er.modes.ESCAPED:this.source+=" ; __append(escapeFn("+cG(e)+`))
|
|
81
|
-
`;break;case er.modes.RAW:this.source+=" ; __append("+cG(e)+`)
|
|
82
|
-
`;break;case er.modes.COMMENT:break;case er.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&o&&(this.currentLine+=o,this.source+=" ; __line = "+this.currentLine+`
|
|
83
|
-
`)},"scanLine")};Ht.escapeXML=Vn.escapeXML;Ht.__express=Ht.renderFile;Ht.VERSION=Zge;Ht.name=rme;typeof window<"u"&&(window.ejs=Ht)});var Ui=y(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.MinCdsVersion=qn.MinCdsPluginUi5Version=qn.moduleCacheRoot=qn.fioriToolsDirectory=qn.SchemaName=qn.FioriToolsSettings=qn.DirName=qn.FileName=void 0;var tSe=require("os"),S8=require("path");qn.FileName={AdaptationConfig:"config.json",CapJavaApplicationYaml:"application.yaml",ExtConfigJson:".extconfig.json",IndexCds:"index.cds",Library:".library",Manifest:"manifest.json",ManifestAppDescrVar:"manifest.appdescr_variant",MtaYaml:"mta.yaml",Package:"package.json",Pom:"pom.xml",SpecificationDistTags:"specification-dist-tags.json",ServiceCds:"services.cds",Tsconfig:"tsconfig.json",Ui5Yaml:"ui5.yaml",Ui5LocalYaml:"ui5-local.yaml",Ui5MockYaml:"ui5-mock.yaml",UI5DeployYaml:"ui5-deploy.yaml",PackageLock:"package-lock.json",XSAppJson:"xs-app.json",XSSecurityJson:"xs-security.json",DotGitIgnore:".gitignore",MtaExtYaml:"mta-ext.mtaext"};qn.DirName={Changes:"changes",ModuleCache:"module-cache",Schemas:".schemas",Pages:"pages",Webapp:"webapp",Temp:".tmp",LocalService:"localService",Controller:"controller",View:"view",Fragment:"fragment",Fragments:"fragments",Ext:"ext",VSCode:".vscode",AppConfig:"appconfig",Db:"db",Csv:"csv",Data:"data",Mockdata:"mockdata",Dist:"dist",Coding:"coding",Manifest:"manifest",Annotations:"annotations"};qn.FioriToolsSettings={dir:".fioritools",migrationSettingsFile:"migrationSettings.json"};qn.SchemaName={Ftfs:"ftfs"};qn.fioriToolsDirectory=(0,S8.join)((0,tSe.homedir)(),qn.FioriToolsSettings.dir);qn.moduleCacheRoot=(0,S8.join)(qn.fioriToolsDirectory,qn.DirName.ModuleCache);qn.MinCdsPluginUi5Version="0.13.0";qn.MinCdsVersion="6.8.2"});var O8=y((Qlt,x8)=>{"use strict";var nSe=Symbol.for("indent"),rSe=Symbol.for("newline"),iSe=`
|
|
84
|
-
`,sSe=" ",oSe=/^\uFEFF/,aSe=/^\s*[{[]((?:\r?\n)+)([\s\t]*)/,cSe=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,E8=/^Unexpected token '?(.)'?(,)? /i,lSe=s(e=>{let t=e.charCodeAt(0).toString(16).toUpperCase();return`0x${t.length%2?"0":""}${t}`},"hexify"),P8=s(e=>String(e).replace(oSe,""),"stripBOM"),S_=s((e,t,n=0)=>({message:`${e} while parsing ${t}`,position:n}),"makeParsedError"),uSe=s((e,t,n=20)=>{let r=e.message;if(!t)return S_(r,"empty string");let i=r.match(E8),o=r.match(/ position\s+(\d+)/i);i&&(r=r.replace(E8,`Unexpected token ${JSON.stringify(i[1])} (${lSe(i[1])})$2 `));let a;if(o?a=+o[1]:r.match(/^Unexpected end of JSON.*/i)&&(a=t.length-1),a==null)return S_(r,`'${t.slice(0,n*2)}'`);let c=a<=n?0:a-n,l=a+n>=t.length?t.length:a+n,u=`${c?"...":""}${t.slice(c,l)}${l===t.length?"":"..."}`;return S_(r,`${t===u?"":"near "}${JSON.stringify(u)}`,a)},"parseError"),E_=class E_ extends SyntaxError{constructor(t,n,r,i){let o=uSe(t,n,r);super(o.message),Object.assign(this,o),this.code="EJSONPARSE",this.systemError=t,Error.captureStackTrace(this,i||this.constructor)}get name(){return this.constructor.name}set name(t){}get[Symbol.toStringTag](){return this.constructor.name}};s(E_,"JSONParseError");var TT=E_,A8=s((e,t)=>{let n=JSON.parse(e,t);if(n&&typeof n=="object"){let r=e.match(cSe)||e.match(aSe)||[null,"",""];n[rSe]=r[1]??iSe,n[nSe]=r[2]??sSe}return n},"parseJson"),ST=s((e,t,n)=>{let r=P8(e);try{return A8(r,t)}catch(i){if(typeof e!="string"&&!Buffer.isBuffer(e)){let o=Array.isArray(e)&&e.length===0?"an empty array":String(e);throw Object.assign(new TypeError(`Cannot parse ${o}`),{code:"EJSONPARSE",systemError:i})}throw new TT(i,r,n,ST)}},"parseJsonError");x8.exports=ST;ST.JSONParseError=TT;ST.noExceptions=(e,t)=>{try{return A8(P8(e),t)}catch{}}});var A_=y(Bi=>{"use strict";var fSe=Bi&&Bi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bi,"__esModule",{value:!0});Bi.readFile=P_;Bi.readJSON=dSe;Bi.writeFile=I8;Bi.fileExists=hSe;Bi.updatePackageJSON=gSe;Bi.updateManifestJSON=mSe;Bi.deleteFile=ySe;Bi.readDirectory=bSe;Bi.deleteDirectory=vSe;var Kf=require("fs"),pSe=fSe(O8());async function P_(e,t){return t?t.read(e):Kf.promises.readFile(e,{encoding:"utf8"})}s(P_,"readFile");async function dSe(e,t){return t?t.readJSON(e):JSON.parse(await P_(e))}s(dSe,"readJSON");async function I8(e,t,n){return n?n.write(e,t):Kf.promises.writeFile(e,t,{encoding:"utf8"})}s(I8,"writeFile");async function hSe(e,t){try{return t?t.exists(e):(await Kf.promises.access(e),!0)}catch{return!1}}s(hSe,"fileExists");async function gSe(e,t,n){await _8(e,t,n)}s(gSe,"updatePackageJSON");async function mSe(e,t,n){await _8(e,t,n)}s(mSe,"updateManifestJSON");async function _8(e,t,n){let r=await P_(e,n),i=(0,pSe.default)(r),a=JSON.stringify(t,null,i[Symbol.for("indent")])+`
|
|
85
|
-
`;await I8(e,a,n)}s(_8,"updateJSON");async function ySe(e,t){return t?t.delete(e):Kf.promises.unlink(e)}s(ySe,"deleteFile");async function bSe(e){return Kf.promises.readdir(e,{encoding:"utf8"})}s(bSe,"readDirectory");async function vSe(e,t){return t?t.delete(e):Kf.promises.rm(e,{recursive:!0,force:!0})}s(vSe,"deleteDirectory")});var w8=y((nut,C8)=>{var TSe=require("events").EventEmitter,SSe=require("fs"),ET=require("path");C8.exports=ESe;function ESe(e,t){t=t||{};var n=!!t.followSymlinks,r=t.fs||SSe,i=new TSe,o=!1,a=0,c={};return i.stop=p,u(e),i;function l(b,T){h(),r.readdir(b,function(I,F){if(!o){if(I){d(I,b),m();return}F.forEach(function(N){var $=ET.join(b,N),j=T&&ET.join(T,N);u($,j)}),m()}})}s(l,"recursiveReadDir");function u(b,T){h(),r.lstat(b,function(I,F){if(o)return;if(I){d(I,b),m();return}i.emit("path",b,F,T);var N=!1;if(F.isDirectory()){if(c[b]){I=new Error("file system loop detected"),I.code="ELOOP",d(I,b),m();return}c[b]=!0,i.emit("directory",b,F,$,T),N||l(b,T)}else F.isFile()?c[b]||(c[b]=!0,i.emit("file",b,F,T)):F.isSymbolicLink()&&(i.emit("link",b,F,T),n&&f(b));m();function $(){N=!0}s($,"stopDir")})}s(u,"walkPath");function f(b){h(),r.readlink(b,function(T,I){if(!o){if(T){d(T,b),m();return}var F=ET.resolve(ET.dirname(b),I);i.emit("readlink",b,F),u(F,b),m()}})}s(f,"recursiveReadLink");function p(){o||(o=!0,i.emit("stop"))}s(p,"stop");function d(b,T){!b||o||(b.path=T,i.emit("error",b))}s(d,"handleError");function h(){a+=1}s(h,"pendStart");function m(){if(!o){if(a-=1,a===0)i.emit("end");else if(a<0)throw new Error("pendEnd called too many times")}}s(m,"pendEnd")}s(ESe,"findit")});var O_=y(Yo=>{"use strict";var PSe=Yo&&Yo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yo,"__esModule",{value:!0});Yo.findBy=x_;Yo.findFiles=_Se;Yo.findFilesByExtension=CSe;Yo.findFileUp=R8;Yo.getFilePaths=F8;var Si=require("path"),ASe=PSe(w8()),xSe=A_(),N8=require("fs");function OSe(e,t,n,r){let i=[],o=[],a=Object.keys(e).filter(c=>c.startsWith(r.replaceAll(Si.sep,Si.posix.sep))&&(t.includes((0,Si.basename)(c))||n.includes((0,Si.extname)(c))||t.length===0&&n.length===0));for(let c of a)e[c].state==="deleted"&&i.push((0,Si.join)(c)),e[c].state==="modified"&&o.push((0,Si.join)(c));return{deleted:i,modified:o}}s(OSe,"getMemFsChanges");function ISe(e,t,n,r,i,o){let a=e,c=i;if(o){let{modified:l,deleted:u}=OSe(o.dump(""),t,n,r);a=Array.from(new Set([...e,...l])).filter(p=>!u.includes(p)),c=i.filter(p=>p.code!=="ENOENT"||typeof p.path=="string"&&!l.some(d=>d.startsWith(p.path)))}return{searchResult:a,fatalErrors:c}}s(ISe,"getFindResultOnEnd");function x_(e){return new Promise((t,n)=>{let r=[],i=Array.isArray(e.fileNames)?e.fileNames:[],o=Array.isArray(e.extensionNames)?e.extensionNames:[],a=Array.isArray(e.excludeFolders)?e.excludeFolders:[],c=e.noTraversal??!1,l=[],u=(0,ASe.default)(e.root);u.on("directory",(f,p,d)=>{let h=(0,Si.basename)(f);(a.includes(h)||c&&f!==e.root)&&d()}),u.on("file",f=>{(o.includes((0,Si.extname)(f))||i.includes((0,Si.basename)(f))||i.length===0&&o.length===0)&&r.push(f)}),u.on("end",()=>{let{searchResult:f,fatalErrors:p}=ISe(r,i,o,e.root,l,e.memFs);p.length===0?t(f):n(p)}),u.on("error",f=>{l.push(f)})})}s(x_,"findBy");async function _Se(e,t,n,r){return(await x_({fileNames:[e],root:t,excludeFolders:n,memFs:r})).map(o=>(0,Si.dirname)(o))}s(_Se,"findFiles");function CSe(e,t,n,r,i){return x_({extensionNames:[e],root:t,excludeFolders:n,noTraversal:i,memFs:r})}s(CSe,"findFilesByExtension");async function R8(e,t,n){let r=(0,Si.join)(t,e);return await(0,xSe.fileExists)(r,n)?r:(0,Si.dirname)(t)!==t?R8(e,(0,Si.dirname)(t),n):void 0}s(R8,"findFileUp");async function F8(e){let n=(await N8.promises.readdir(e)).map(async i=>{let o=(0,Si.join)(e,i);return(await N8.promises.stat(o)).isDirectory()?F8(o):o}),r=await Promise.all(n);return[].concat(...r)}s(F8,"getFilePaths")});var ei=y(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.getFilePaths=Yt.findFileUp=Yt.findFilesByExtension=Yt.findFiles=Yt.findBy=Yt.writeFile=Yt.updateManifestJSON=Yt.updatePackageJSON=Yt.readJSON=Yt.readFile=Yt.readDirectory=Yt.fileExists=Yt.deleteFile=Yt.deleteDirectory=void 0;var Xo=A_();Object.defineProperty(Yt,"deleteDirectory",{enumerable:!0,get:s(function(){return Xo.deleteDirectory},"get")});Object.defineProperty(Yt,"deleteFile",{enumerable:!0,get:s(function(){return Xo.deleteFile},"get")});Object.defineProperty(Yt,"fileExists",{enumerable:!0,get:s(function(){return Xo.fileExists},"get")});Object.defineProperty(Yt,"readDirectory",{enumerable:!0,get:s(function(){return Xo.readDirectory},"get")});Object.defineProperty(Yt,"readFile",{enumerable:!0,get:s(function(){return Xo.readFile},"get")});Object.defineProperty(Yt,"readJSON",{enumerable:!0,get:s(function(){return Xo.readJSON},"get")});Object.defineProperty(Yt,"updatePackageJSON",{enumerable:!0,get:s(function(){return Xo.updatePackageJSON},"get")});Object.defineProperty(Yt,"updateManifestJSON",{enumerable:!0,get:s(function(){return Xo.updateManifestJSON},"get")});Object.defineProperty(Yt,"writeFile",{enumerable:!0,get:s(function(){return Xo.writeFile},"get")});var cg=O_();Object.defineProperty(Yt,"findBy",{enumerable:!0,get:s(function(){return cg.findBy},"get")});Object.defineProperty(Yt,"findFiles",{enumerable:!0,get:s(function(){return cg.findFiles},"get")});Object.defineProperty(Yt,"findFilesByExtension",{enumerable:!0,get:s(function(){return cg.findFilesByExtension},"get")});Object.defineProperty(Yt,"findFileUp",{enumerable:!0,get:s(function(){return cg.findFileUp},"get")});Object.defineProperty(Yt,"getFilePaths",{enumerable:!0,get:s(function(){return cg.getFilePaths},"get")})});var L8=y(__=>{"use strict";Object.defineProperty(__,"__esModule",{value:!0});__.normalizePath=NSe;var wSe=require("fs"),I_;function NSe(e){if(process.platform==="win32"){if(I_===void 0){let n=wSe.realpathSync.native("\\")[0];I_=n===n.toUpperCase()}return(I_?e.charAt(0).toUpperCase():e.charAt(0).toLowerCase())+e.slice(1)}return e}s(NSe,"normalizePath")});var C_=y(PT=>{"use strict";Object.defineProperty(PT,"__esModule",{value:!0});PT.normalizePath=void 0;var RSe=L8();Object.defineProperty(PT,"normalizePath",{enumerable:!0,get:s(function(){return RSe.normalizePath},"get")})});var lg=y(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});Yf.hasDependency=void 0;Yf.getNodeModulesPath=jSe;Yf.addPackageDevDependency=DSe;var FSe=require("fs"),Jf=require("path"),D8=Ui(),j8=ei(),LSe=s((e,t)=>{var n,r;return!!(((n=e.dependencies)==null?void 0:n[t])??((r=e.devDependencies)==null?void 0:r[t]))},"hasDependency");Yf.hasDependency=LSe;function jSe(e,t){if(!(0,Jf.isAbsolute)(e))return;let{root:n}=(0,Jf.parse)(e),r=e,i;for(;r!==n;){let o=(0,Jf.join)(r,"node_modules");if(t&&(o=(0,Jf.join)(o,t,D8.FileName.Package)),(0,FSe.existsSync)(o)){i=r;break}r=(0,Jf.dirname)(r)}return i}s(jSe,"getNodeModulesPath");async function DSe(e,t,n,r){let i=(0,Jf.join)(e,D8.FileName.Package),o=await(0,j8.readJSON)(i,r);o.devDependencies=o.devDependencies??{},o.devDependencies[t]||(o.devDependencies[t]=n),await(0,j8.updatePackageJSON)(i,o,r)}s(DSe,"addPackageDevDependency")});var N_=y(w_=>{"use strict";Object.defineProperty(w_,"__esModule",{value:!0});w_.execNpmCommand=kSe;var $Se=require("child_process");async function kSe(e,t){return new Promise((n,r)=>{let i=process.platform.startsWith("win"),o=i?"npm.cmd":"npm",a=i?{windowsVerbatimArguments:!0,shell:!0}:{},c=t==null?void 0:t.logger,l=t==null?void 0:t.cwd,u=typeof l=="string"?{...a,cwd:l}:a,f=(0,$Se.spawn)(o,e,u),p="",d="";f.stdout.on("data",m=>{p+=m.toString()}),f.stderr.on("data",m=>{d+=m.toString()});let h=`${o} ${e.join(" ")}`;f.on("exit",(m,b)=>{if(m===null)c==null||c.warn(`Command '${h}' was killed by signal: ${b}`);else if(m===0){let T=[p,d].filter(Boolean).join(`
|
|
86
|
-
`),I=T?`:
|
|
87
|
-
${T}`:"";c==null||c.info(`Command '${h}' successful${I}`)}else if(t!=null&&t.throwOnError){p&&(c==null||c.info(p)),r(new Error(`Command '${h}' failed with exit code ${m}. Stderr: ${d}`));return}else c==null||c.error(`Command '${h}' not successful, stderr: ${d}`);n(p)}),f.on("error",m=>{c==null||c.error(`Error executing npm command '${h}': ${m}`),r(m)})})}s(kSe,"execNpmCommand")});var R_=y(AT=>{"use strict";Object.defineProperty(AT,"__esModule",{value:!0});AT.execNpmCommand=void 0;var MSe=N_();Object.defineProperty(AT,"execNpmCommand",{enumerable:!0,get:s(function(){return MSe.execNpmCommand},"get")})});var _T=y(is=>{"use strict";var VSe=is&&is.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:s(function(){return t[n]},"get")}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),qSe=is&&is.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),USe=is&&is.__importStar||(function(){var e=s(function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[r.length]=i);return r},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),i=0;i<r.length;i++)r[i]!=="default"&&VSe(n,t,r[i]);return qSe(n,t),n}})();Object.defineProperty(is,"__esModule",{value:!0});is.getModulePath=k8;is.loadModuleFromProject=L_;is.getModule=GSe;is.deleteModule=HSe;var xT=require("fs"),F_=require("fs/promises"),OT=require("path"),BSe=lg(),IT=Ui(),$8=R_();async function k8(e,t){if(!(0,BSe.getNodeModulesPath)(e,t))throw Error("Path to module not found.");return require.resolve(t,{paths:[e]})}s(k8,"getModulePath");async function L_(e,t){let n;try{let r=await k8(e,t);n=await Promise.resolve(`${r}`).then(i=>USe(require(i)))}catch(r){throw Error(`Module '${t}' not installed in project '${e}'.
|
|
88
|
-
${r.toString()}`)}return n}s(L_,"loadModuleFromProject");async function GSe(e,t,n){let r=n==null?void 0:n.logger,i=(0,OT.join)(IT.moduleCacheRoot,e,t),o=(0,OT.join)(i,IT.FileName.Package),a=["install","--prefix",i,`${e}@${t}`];(0,xT.existsSync)(o)||((0,xT.existsSync)(i)&&await(0,F_.rm)(i,{recursive:!0}),await(0,F_.mkdir)(i,{recursive:!0}),await(0,$8.execNpmCommand)(a,{cwd:i,logger:r}));let c;try{c=await L_(i,e)}catch{r==null||r.error(`Failed to load module: ${e}. Attempting to fix installation.`);let u=(0,OT.join)(i,IT.FileName.PackageLock),f=(0,xT.existsSync)(u)?["ci"]:a;await(0,$8.execNpmCommand)(f,{cwd:i,logger:r}),c=await L_(i,e)}return c}s(GSe,"getModule");async function HSe(e,t){let n=(0,OT.join)(IT.moduleCacheRoot,e,t);(0,xT.existsSync)(n)&&await(0,F_.rm)(n,{recursive:!0})}s(HSe,"deleteModule")});var kt=y(yr=>{"use strict";var j_=Symbol.for("yaml.alias"),M8=Symbol.for("yaml.document"),CT=Symbol.for("yaml.map"),V8=Symbol.for("yaml.pair"),D_=Symbol.for("yaml.scalar"),wT=Symbol.for("yaml.seq"),zo=Symbol.for("yaml.node.type"),WSe=s(e=>!!e&&typeof e=="object"&&e[zo]===j_,"isAlias"),KSe=s(e=>!!e&&typeof e=="object"&&e[zo]===M8,"isDocument"),JSe=s(e=>!!e&&typeof e=="object"&&e[zo]===CT,"isMap"),YSe=s(e=>!!e&&typeof e=="object"&&e[zo]===V8,"isPair"),q8=s(e=>!!e&&typeof e=="object"&&e[zo]===D_,"isScalar"),XSe=s(e=>!!e&&typeof e=="object"&&e[zo]===wT,"isSeq");function U8(e){if(e&&typeof e=="object")switch(e[zo]){case CT:case wT:return!0}return!1}s(U8,"isCollection");function zSe(e){if(e&&typeof e=="object")switch(e[zo]){case j_:case CT:case D_:case wT:return!0}return!1}s(zSe,"isNode");var QSe=s(e=>(q8(e)||U8(e))&&!!e.anchor,"hasAnchor");yr.ALIAS=j_;yr.DOC=M8;yr.MAP=CT;yr.NODE_TYPE=zo;yr.PAIR=V8;yr.SCALAR=D_;yr.SEQ=wT;yr.hasAnchor=QSe;yr.isAlias=WSe;yr.isCollection=U8;yr.isDocument=KSe;yr.isMap=JSe;yr.isNode=zSe;yr.isPair=YSe;yr.isScalar=q8;yr.isSeq=XSe});var ug=y($_=>{"use strict";var nr=kt(),Ei=Symbol("break visit"),B8=Symbol("skip children"),oo=Symbol("remove node");function NT(e,t){let n=G8(t);nr.isDocument(e)?Xf(null,e.contents,n,Object.freeze([e]))===oo&&(e.contents=null):Xf(null,e,n,Object.freeze([]))}s(NT,"visit");NT.BREAK=Ei;NT.SKIP=B8;NT.REMOVE=oo;function Xf(e,t,n,r){let i=H8(e,t,n,r);if(nr.isNode(i)||nr.isPair(i))return W8(e,r,i),Xf(e,i,n,r);if(typeof i!="symbol"){if(nr.isCollection(t)){r=Object.freeze(r.concat(t));for(let o=0;o<t.items.length;++o){let a=Xf(o,t.items[o],n,r);if(typeof a=="number")o=a-1;else{if(a===Ei)return Ei;a===oo&&(t.items.splice(o,1),o-=1)}}}else if(nr.isPair(t)){r=Object.freeze(r.concat(t));let o=Xf("key",t.key,n,r);if(o===Ei)return Ei;o===oo&&(t.key=null);let a=Xf("value",t.value,n,r);if(a===Ei)return Ei;a===oo&&(t.value=null)}}return i}s(Xf,"visit_");async function RT(e,t){let n=G8(t);nr.isDocument(e)?await zf(null,e.contents,n,Object.freeze([e]))===oo&&(e.contents=null):await zf(null,e,n,Object.freeze([]))}s(RT,"visitAsync");RT.BREAK=Ei;RT.SKIP=B8;RT.REMOVE=oo;async function zf(e,t,n,r){let i=await H8(e,t,n,r);if(nr.isNode(i)||nr.isPair(i))return W8(e,r,i),zf(e,i,n,r);if(typeof i!="symbol"){if(nr.isCollection(t)){r=Object.freeze(r.concat(t));for(let o=0;o<t.items.length;++o){let a=await zf(o,t.items[o],n,r);if(typeof a=="number")o=a-1;else{if(a===Ei)return Ei;a===oo&&(t.items.splice(o,1),o-=1)}}}else if(nr.isPair(t)){r=Object.freeze(r.concat(t));let o=await zf("key",t.key,n,r);if(o===Ei)return Ei;o===oo&&(t.key=null);let a=await zf("value",t.value,n,r);if(a===Ei)return Ei;a===oo&&(t.value=null)}}return i}s(zf,"visitAsync_");function G8(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}s(G8,"initVisitor");function H8(e,t,n,r){var i,o,a,c,l;if(typeof n=="function")return n(e,t,r);if(nr.isMap(t))return(i=n.Map)==null?void 0:i.call(n,e,t,r);if(nr.isSeq(t))return(o=n.Seq)==null?void 0:o.call(n,e,t,r);if(nr.isPair(t))return(a=n.Pair)==null?void 0:a.call(n,e,t,r);if(nr.isScalar(t))return(c=n.Scalar)==null?void 0:c.call(n,e,t,r);if(nr.isAlias(t))return(l=n.Alias)==null?void 0:l.call(n,e,t,r)}s(H8,"callVisitor");function W8(e,t,n){let r=t[t.length-1];if(nr.isCollection(r))r.items[e]=n;else if(nr.isPair(r))e==="key"?r.key=n:r.value=n;else if(nr.isDocument(r))r.contents=n;else{let i=nr.isAlias(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}s(W8,"replaceNode");$_.visit=NT;$_.visitAsync=RT});var k_=y(J8=>{"use strict";var K8=kt(),ZSe=ug(),eEe={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},tEe=s(e=>e.replace(/[!,[\]{}]/g,t=>eEe[t]),"escapeTagName"),Ls=class Ls{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Ls.defaultYaml,t),this.tags=Object.assign({},Ls.defaultTags,n)}clone(){let t=new Ls(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new Ls(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Ls.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Ls.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:Ls.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Ls.defaultTags),this.atNextDocument=!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;let[o,a]=r;return this.tags[o]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;let[o]=r;if(o==="1.1"||o==="1.2")return this.yaml.version=o,!0;{let a=/^\d+\.\d+$/.test(o);return n(6,`Unsupported YAML version ${o}`,a),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){let a=t.slice(2,-1);return a==="!"||a==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),a)}let[,r,i]=t.match(/^(.*!)([^!]*)$/s);i||n(`The ${t} tag has no suffix`);let o=this.tags[r];if(o)try{return o+decodeURIComponent(i)}catch(a){return n(String(a)),null}return r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(let[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+tEe(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){let n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags),i;if(t&&r.length>0&&K8.isNode(t.contents)){let o={};ZSe.visit(t.contents,(a,c)=>{K8.isNode(c)&&c.tag&&(o[c.tag]=!0)}),i=Object.keys(o)}else i=[];for(let[o,a]of r)o==="!!"&&a==="tag:yaml.org,2002:"||(!t||i.some(c=>c.startsWith(a)))&&n.push(`%TAG ${o} ${a}`);return n.join(`
|
|
89
|
-
`)}};s(Ls,"Directives");var fg=Ls;fg.defaultYaml={explicit:!1,version:"1.2"};fg.defaultTags={"!!":"tag:yaml.org,2002:"};J8.Directives=fg});var FT=y(pg=>{"use strict";var Y8=kt(),nEe=ug();function rEe(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}s(rEe,"anchorIsValid");function X8(e){let t=new Set;return nEe.visit(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}s(X8,"anchorNames");function z8(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}s(z8,"findNewAnchor");function iEe(e,t){let n=[],r=new Map,i=null;return{onAnchor:s(o=>{n.push(o),i??(i=X8(e));let a=z8(t,i);return i.add(a),a},"onAnchor"),setAnchors:s(()=>{for(let o of n){let a=r.get(o);if(typeof a=="object"&&a.anchor&&(Y8.isScalar(a.node)||Y8.isCollection(a.node)))a.node.anchor=a.anchor;else{let c=new Error("Failed to resolve repeated object (this should not happen)");throw c.source=o,c}}},"setAnchors"),sourceObjects:r}}s(iEe,"createNodeAnchors");pg.anchorIsValid=rEe;pg.anchorNames=X8;pg.createNodeAnchors=iEe;pg.findNewAnchor=z8});var M_=y(Q8=>{"use strict";function dg(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,o=r.length;i<o;++i){let a=r[i],c=dg(e,r,String(i),a);c===void 0?delete r[i]:c!==a&&(r[i]=c)}else if(r instanceof Map)for(let i of Array.from(r.keys())){let o=r.get(i),a=dg(e,r,i,o);a===void 0?r.delete(i):a!==o&&r.set(i,a)}else if(r instanceof Set)for(let i of Array.from(r)){let o=dg(e,r,i,i);o===void 0?r.delete(i):o!==i&&(r.delete(i),r.add(o))}else for(let[i,o]of Object.entries(r)){let a=dg(e,r,i,o);a===void 0?delete r[i]:a!==o&&(r[i]=a)}return e.call(t,n,r)}s(dg,"applyReviver");Q8.applyReviver=dg});var ac=y(e5=>{"use strict";var sEe=kt();function Z8(e,t,n){if(Array.isArray(e))return e.map((r,i)=>Z8(r,String(i),n));if(e&&typeof e.toJSON=="function"){if(!n||!sEe.hasAnchor(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=o=>{r.res=o,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}s(Z8,"toJS");e5.toJS=Z8});var LT=y(n5=>{"use strict";var oEe=M_(),t5=kt(),aEe=ac(),q_=class q_{constructor(t){Object.defineProperty(this,t5.NODE_TYPE,{value:t})}clone(){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:o}={}){if(!t5.isDocument(t))throw new TypeError("A document argument is required");let a={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},c=aEe.toJS(this,"",a);if(typeof i=="function")for(let{count:l,res:u}of a.anchors.values())i(u,l);return typeof o=="function"?oEe.applyReviver(o,{"":c},"",c):c}};s(q_,"NodeBase");var V_=q_;n5.NodeBase=V_});var hg=y(r5=>{"use strict";var cEe=FT(),lEe=ug(),Qf=kt(),uEe=LT(),fEe=ac(),B_=class B_ extends uEe.NodeBase{constructor(t){super(Qf.ALIAS),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,n){let r;n!=null&&n.aliasResolveCache?r=n.aliasResolveCache:(r=[],lEe.visit(t,{Node:s((o,a)=>{(Qf.isAlias(a)||Qf.hasAnchor(a))&&r.push(a)},"Node")}),n&&(n.aliasResolveCache=r));let i;for(let o of r){if(o===this)break;o.anchor===this.source&&(i=o)}return i}toJSON(t,n){if(!n)return{source:this.source};let{anchors:r,doc:i,maxAliasCount:o}=n,a=this.resolve(i,n);if(!a){let l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let c=r.get(a);if(c||(fEe.toJS(a,null,n),c=r.get(a)),(c==null?void 0:c.res)===void 0){let l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(o>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=jT(i,a,r)),c.count*c.aliasCount>o)){let l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return c.res}toString(t,n,r){let i=`*${this.source}`;if(t){if(cEe.anchorIsValid(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){let o=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(o)}if(t.implicitKey)return`${i} `}return i}};s(B_,"Alias");var U_=B_;function jT(e,t,n){if(Qf.isAlias(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(Qf.isCollection(t)){let r=0;for(let i of t.items){let o=jT(e,i,n);o>r&&(r=o)}return r}else if(Qf.isPair(t)){let r=jT(e,t.key,n),i=jT(e,t.value,n);return Math.max(r,i)}return 1}s(jT,"getAliasCount");r5.Alias=U_});var Wn=y(G_=>{"use strict";var pEe=kt(),dEe=LT(),hEe=ac(),gEe=s(e=>!e||typeof e!="function"&&typeof e!="object","isScalarValue"),H_=class H_ extends dEe.NodeBase{constructor(t){super(pEe.SCALAR),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:hEe.toJS(this.value,t,n)}toString(){return String(this.value)}};s(H_,"Scalar");var cc=H_;cc.BLOCK_FOLDED="BLOCK_FOLDED";cc.BLOCK_LITERAL="BLOCK_LITERAL";cc.PLAIN="PLAIN";cc.QUOTE_DOUBLE="QUOTE_DOUBLE";cc.QUOTE_SINGLE="QUOTE_SINGLE";G_.Scalar=cc;G_.isScalarValue=gEe});var gg=y(s5=>{"use strict";var mEe=hg(),Jl=kt(),i5=Wn(),yEe="tag:yaml.org,2002:";function bEe(e,t,n){if(t){let r=n.filter(o=>o.tag===t),i=r.find(o=>!o.format)??r[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(r=>{var i;return((i=r.identify)==null?void 0:i.call(r,e))&&!r.format})}s(bEe,"findTagObject");function vEe(e,t,n){var p,d,h;if(Jl.isDocument(e)&&(e=e.contents),Jl.isNode(e))return e;if(Jl.isPair(e)){let m=(d=(p=n.schema[Jl.MAP]).createNode)==null?void 0:d.call(p,n.schema,null,n);return m.items.push(e),m}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:o,schema:a,sourceObjects:c}=n,l;if(r&&e&&typeof e=="object"){if(l=c.get(e),l)return l.anchor??(l.anchor=i(e)),new mEe.Alias(l.anchor);l={anchor:null,node:null},c.set(e,l)}t!=null&&t.startsWith("!!")&&(t=yEe+t.slice(2));let u=bEe(e,t,a.tags);if(!u){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){let m=new i5.Scalar(e);return l&&(l.node=m),m}u=e instanceof Map?a[Jl.MAP]:Symbol.iterator in Object(e)?a[Jl.SEQ]:a[Jl.MAP]}o&&(o(u),delete n.onTagObj);let f=u!=null&&u.createNode?u.createNode(n.schema,e,n):typeof((h=u==null?void 0:u.nodeClass)==null?void 0:h.from)=="function"?u.nodeClass.from(n.schema,e,n):new i5.Scalar(e);return t?f.tag=t:u.default||(f.tag=u.tag),l&&(l.node=f),f}s(vEe,"createNode");s5.createNode=vEe});var $T=y(DT=>{"use strict";var TEe=gg(),ao=kt(),SEe=LT();function W_(e,t,n){let r=n;for(let i=t.length-1;i>=0;--i){let o=t[i];if(typeof o=="number"&&Number.isInteger(o)&&o>=0){let a=[];a[o]=r,r=a}else r=new Map([[o,r]])}return TEe.createNode(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:s(()=>{throw new Error("This should not happen, please report a bug.")},"onAnchor"),schema:e,sourceObjects:new Map})}s(W_,"collectionFromPath");var o5=s(e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done,"isEmptyPath"),J_=class J_ extends SEe.NodeBase{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){let n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>ao.isNode(r)||ao.isPair(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(o5(t))this.add(n);else{let[r,...i]=t,o=this.get(r,!0);if(ao.isCollection(o))o.addIn(i,n);else if(o===void 0&&this.schema)this.set(r,W_(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(t){let[n,...r]=t;if(r.length===0)return this.delete(n);let i=this.get(n,!0);if(ao.isCollection(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){let[r,...i]=t,o=this.get(r,!0);return i.length===0?!n&&ao.isScalar(o)?o.value:o:ao.isCollection(o)?o.getIn(i,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!ao.isPair(n))return!1;let r=n.value;return r==null||t&&ao.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){let[n,...r]=t;if(r.length===0)return this.has(n);let i=this.get(n,!0);return ao.isCollection(i)?i.hasIn(r):!1}setIn(t,n){let[r,...i]=t;if(i.length===0)this.set(r,n);else{let o=this.get(r,!0);if(ao.isCollection(o))o.setIn(i,n);else if(o===void 0&&this.schema)this.set(r,W_(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}};s(J_,"Collection");var K_=J_;DT.Collection=K_;DT.collectionFromPath=W_;DT.isEmptyPath=o5});var mg=y(kT=>{"use strict";var EEe=s(e=>e.replace(/^(?!$)(?: $)?/gm,"#"),"stringifyComment");function Y_(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}s(Y_,"indentComment");var PEe=s((e,t,n)=>e.endsWith(`
|
|
90
|
-
`)?Y_(n,t):n.includes(`
|
|
91
|
-
`)?`
|
|
92
|
-
`+Y_(n,t):(e.endsWith(" ")?"":" ")+n,"lineComment");kT.indentComment=Y_;kT.lineComment=PEe;kT.stringifyComment=EEe});var c5=y(yg=>{"use strict";var AEe="flow",X_="block",MT="quoted";function xEe(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:o=20,onFold:a,onOverflow:c}={}){if(!i||i<0)return e;i<o&&(o=0);let l=Math.max(1+o,1+i-t.length);if(e.length<=l)return e;let u=[],f={},p=i-t.length;typeof r=="number"&&(r>i-Math.max(2,o)?u.push(0):p=i-r);let d,h,m=!1,b=-1,T=-1,I=-1;n===X_&&(b=a5(e,b,t.length),b!==-1&&(p=b+l));for(let N;N=e[b+=1];){if(n===MT&&N==="\\"){switch(T=b,e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}I=b}if(N===`
|
|
93
|
-
`)n===X_&&(b=a5(e,b,t.length)),p=b+t.length+l,d=void 0;else{if(N===" "&&h&&h!==" "&&h!==`
|
|
94
|
-
`&&h!==" "){let $=e[b+1];$&&$!==" "&&$!==`
|
|
95
|
-
`&&$!==" "&&(d=b)}if(b>=p)if(d)u.push(d),p=d+l,d=void 0;else if(n===MT){for(;h===" "||h===" ";)h=N,N=e[b+=1],m=!0;let $=b>I+1?b-2:T-1;if(f[$])return e;u.push($),f[$]=!0,p=$+l,d=void 0}else m=!0}h=N}if(m&&c&&c(),u.length===0)return e;a&&a();let F=e.slice(0,u[0]);for(let N=0;N<u.length;++N){let $=u[N],j=u[N+1]||e.length;$===0?F=`
|
|
96
|
-
${t}${e.slice(0,j)}`:(n===MT&&f[$]&&(F+=`${e[$]}\\`),F+=`
|
|
97
|
-
${t}${e.slice($+1,j)}`)}return F}s(xEe,"foldFlowLines");function a5(e,t,n){let r=t,i=t+1,o=e[i];for(;o===" "||o===" ";)if(t<i+n)o=e[++t];else{do o=e[++t];while(o&&o!==`
|
|
98
|
-
`);r=t,i=t+1,o=e[i]}return r}s(a5,"consumeMoreIndentedLines");yg.FOLD_BLOCK=X_;yg.FOLD_FLOW=AEe;yg.FOLD_QUOTED=MT;yg.foldFlowLines=xEe});var vg=y(l5=>{"use strict";var js=Wn(),lc=c5(),qT=s((e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),"getFoldOptions"),UT=s(e=>/^(%|---|\.\.\.)/m.test(e),"containsDocumentMarker");function OEe(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let o=0,a=0;o<i;++o)if(e[o]===`
|
|
99
|
-
`){if(o-a>r)return!0;if(a=o+1,i-a<=r)return!1}return!0}s(OEe,"lineLengthOverLimit");function bg(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,o=t.indent||(UT(e)?" ":""),a="",c=0;for(let l=0,u=n[l];u;u=n[++l])if(u===" "&&n[l+1]==="\\"&&n[l+2]==="n"&&(a+=n.slice(c,l)+"\\ ",l+=1,c=l,u="\\"),u==="\\")switch(n[l+1]){case"u":{a+=n.slice(c,l);let f=n.substr(l+2,4);switch(f){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:f.substr(0,2)==="00"?a+="\\x"+f.substr(2):a+=n.substr(l,6)}l+=5,c=l+1}break;case"n":if(r||n[l+2]==='"'||n.length<i)l+=1;else{for(a+=n.slice(c,l)+`
|
|
100
|
-
|
|
101
|
-
`;n[l+2]==="\\"&&n[l+3]==="n"&&n[l+4]!=='"';)a+=`
|
|
102
|
-
`,l+=2;a+=o,n[l+2]===" "&&(a+="\\"),l+=1,c=l+1}break;default:l+=1}return a=c?a+n.slice(c):n,r?a:lc.foldFlowLines(a,o,lc.FOLD_QUOTED,qT(t,!1))}s(bg,"doubleQuotedString");function z_(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
103
|
-
`)||/[ \t]\n|\n[ \t]/.test(e))return bg(e,t);let n=t.indent||(UT(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
104
|
-
${n}`)+"'";return t.implicitKey?r:lc.foldFlowLines(r,n,lc.FOLD_FLOW,qT(t,!1))}s(z_,"singleQuotedString");function Zf(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=bg;else{let i=e.includes('"'),o=e.includes("'");i&&!o?r=z_:o&&!i?r=bg:r=n?z_:bg}return r(e,t)}s(Zf,"quotedString");var Q_;try{Q_=new RegExp(`(^|(?<!
|
|
105
|
-
))
|
|
106
|
-
+(?!
|
|
107
|
-
|$)`,"g")}catch{Q_=/\n+(?!\n|$)/g}function VT({comment:e,type:t,value:n},r,i,o){let{blockQuote:a,commentString:c,lineWidth:l}=r.options;if(!a||/\n[\t ]+$/.test(n))return Zf(n,r);let u=r.indent||(r.forceBlockIndent||UT(n)?" ":""),f=a==="literal"?!0:a==="folded"||t===js.Scalar.BLOCK_FOLDED?!1:t===js.Scalar.BLOCK_LITERAL?!0:!OEe(n,l,u.length);if(!n)return f?`|
|
|
108
|
-
`:`>
|
|
109
|
-
`;let p,d;for(d=n.length;d>0;--d){let j=n[d-1];if(j!==`
|
|
110
|
-
`&&j!==" "&&j!==" ")break}let h=n.substring(d),m=h.indexOf(`
|
|
111
|
-
`);m===-1?p="-":n===h||m!==h.length-1?(p="+",o&&o()):p="",h&&(n=n.slice(0,-h.length),h[h.length-1]===`
|
|
112
|
-
`&&(h=h.slice(0,-1)),h=h.replace(Q_,`$&${u}`));let b=!1,T,I=-1;for(T=0;T<n.length;++T){let j=n[T];if(j===" ")b=!0;else if(j===`
|
|
113
|
-
`)I=T;else break}let F=n.substring(0,I<T?I+1:T);F&&(n=n.substring(F.length),F=F.replace(/\n+/g,`$&${u}`));let $=(b?u?"2":"1":"")+p;if(e&&($+=" "+c(e.replace(/ ?[\r\n]+/g," ")),i&&i()),!f){let j=n.replace(/\n+/g,`
|
|
114
|
-
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${u}`),M=!1,k=qT(r,!0);a!=="folded"&&t!==js.Scalar.BLOCK_FOLDED&&(k.onOverflow=()=>{M=!0});let U=lc.foldFlowLines(`${F}${j}${h}`,u,lc.FOLD_BLOCK,k);if(!M)return`>${$}
|
|
115
|
-
${u}${U}`}return n=n.replace(/\n+/g,`$&${u}`),`|${$}
|
|
116
|
-
${u}${F}${n}${h}`}s(VT,"blockString");function IEe(e,t,n,r){let{type:i,value:o}=e,{actualString:a,implicitKey:c,indent:l,indentStep:u,inFlow:f}=t;if(c&&o.includes(`
|
|
117
|
-
`)||f&&/[[\]{},]/.test(o))return Zf(o,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return c||f||!o.includes(`
|
|
118
|
-
`)?Zf(o,t):VT(e,t,n,r);if(!c&&!f&&i!==js.Scalar.PLAIN&&o.includes(`
|
|
119
|
-
`))return VT(e,t,n,r);if(UT(o)){if(l==="")return t.forceBlockIndent=!0,VT(e,t,n,r);if(c&&l===u)return Zf(o,t)}let p=o.replace(/\n+/g,`$&
|
|
120
|
-
${l}`);if(a){let d=s(b=>{var T;return b.default&&b.tag!=="tag:yaml.org,2002:str"&&((T=b.test)==null?void 0:T.test(p))},"test"),{compat:h,tags:m}=t.doc.schema;if(m.some(d)||h!=null&&h.some(d))return Zf(o,t)}return c?p:lc.foldFlowLines(p,l,lc.FOLD_FLOW,qT(t,!1))}s(IEe,"plainString");function _Ee(e,t,n,r){let{implicitKey:i,inFlow:o}=t,a=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)}),{type:c}=e;c!==js.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(c=js.Scalar.QUOTE_DOUBLE);let l=s(f=>{switch(f){case js.Scalar.BLOCK_FOLDED:case js.Scalar.BLOCK_LITERAL:return i||o?Zf(a.value,t):VT(a,t,n,r);case js.Scalar.QUOTE_DOUBLE:return bg(a.value,t);case js.Scalar.QUOTE_SINGLE:return z_(a.value,t);case js.Scalar.PLAIN:return IEe(a,t,n,r);default:return null}},"_stringify"),u=l(c);if(u===null){let{defaultKeyType:f,defaultStringType:p}=t.options,d=i&&f||p;if(u=l(d),u===null)throw new Error(`Unsupported default string type ${d}`)}return u}s(_Ee,"stringifyString");l5.stringifyString=_Ee});var Tg=y(Z_=>{"use strict";var CEe=FT(),uc=kt(),wEe=mg(),NEe=vg();function REe(e,t){let n=Object.assign({blockQuote:!0,commentString:wEe.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}s(REe,"createStringifyContext");function FEe(e,t){var i;if(t.tag){let o=e.filter(a=>a.tag===t.tag);if(o.length>0)return o.find(a=>a.format===t.format)??o[0]}let n,r;if(uc.isScalar(t)){r=t.value;let o=e.filter(a=>{var c;return(c=a.identify)==null?void 0:c.call(a,r)});if(o.length>1){let a=o.filter(c=>c.test);a.length>0&&(o=a)}n=o.find(a=>a.format===t.format)??o.find(a=>!a.format)}else r=t,n=e.find(o=>o.nodeClass&&r instanceof o.nodeClass);if(!n){let o=((i=r==null?void 0:r.constructor)==null?void 0:i.name)??(r===null?"null":typeof r);throw new Error(`Tag not resolved for ${o} value`)}return n}s(FEe,"getTagObject");function LEe(e,t,{anchors:n,doc:r}){if(!r.directives)return"";let i=[],o=(uc.isScalar(e)||uc.isCollection(e))&&e.anchor;o&&CEe.anchorIsValid(o)&&(n.add(o),i.push(`&${o}`));let a=e.tag??(t.default?null:t.tag);return a&&i.push(r.directives.tagString(a)),i.join(" ")}s(LEe,"stringifyProps");function jEe(e,t,n,r){var l;if(uc.isPair(e))return e.toString(t,n,r);if(uc.isAlias(e)){if(t.doc.directives)return e.toString(t);if((l=t.resolvedAliases)!=null&&l.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,o=uc.isNode(e)?e:t.doc.createNode(e,{onTagObj:s(u=>i=u,"onTagObj")});i??(i=FEe(t.doc.schema.tags,o));let a=LEe(o,i,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);let c=typeof i.stringify=="function"?i.stringify(o,t,n,r):uc.isScalar(o)?NEe.stringifyString(o,t,n,r):o.toString(t,n,r);return a?uc.isScalar(o)||c[0]==="{"||c[0]==="["?`${a} ${c}`:`${a}
|
|
121
|
-
${t.indent}${c}`:c}s(jEe,"stringify");Z_.createStringifyContext=REe;Z_.stringify=jEe});var d5=y(p5=>{"use strict";var Qo=kt(),u5=Wn(),f5=Tg(),Sg=mg();function DEe({key:e,value:t},n,r,i){let{allNullValues:o,doc:a,indent:c,indentStep:l,options:{commentString:u,indentSeq:f,simpleKeys:p}}=n,d=Qo.isNode(e)&&e.comment||null;if(p){if(d)throw new Error("With simple keys, key nodes cannot have comments");if(Qo.isCollection(e)||!Qo.isNode(e)&&typeof e=="object"){let k="With simple keys, collection cannot be used as a key value";throw new Error(k)}}let h=!p&&(!e||d&&t==null&&!n.inFlow||Qo.isCollection(e)||(Qo.isScalar(e)?e.type===u5.Scalar.BLOCK_FOLDED||e.type===u5.Scalar.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!h&&(p||!o),indent:c+l});let m=!1,b=!1,T=f5.stringify(e,n,()=>m=!0,()=>b=!0);if(!h&&!n.inFlow&&T.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");h=!0}if(n.inFlow){if(o||t==null)return m&&r&&r(),T===""?"?":h?`? ${T}`:T}else if(o&&!p||t==null&&h)return T=`? ${T}`,d&&!m?T+=Sg.lineComment(T,n.indent,u(d)):b&&i&&i(),T;m&&(d=null),h?(d&&(T+=Sg.lineComment(T,n.indent,u(d))),T=`? ${T}
|
|
122
|
-
${c}:`):(T=`${T}:`,d&&(T+=Sg.lineComment(T,n.indent,u(d))));let I,F,N;Qo.isNode(t)?(I=!!t.spaceBefore,F=t.commentBefore,N=t.comment):(I=!1,F=null,N=null,t&&typeof t=="object"&&(t=a.createNode(t))),n.implicitKey=!1,!h&&!d&&Qo.isScalar(t)&&(n.indentAtStart=T.length+1),b=!1,!f&&l.length>=2&&!n.inFlow&&!h&&Qo.isSeq(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let $=!1,j=f5.stringify(t,n,()=>$=!0,()=>b=!0),M=" ";if(d||I||F){if(M=I?`
|
|
123
|
-
`:"",F){let k=u(F);M+=`
|
|
124
|
-
${Sg.indentComment(k,n.indent)}`}j===""&&!n.inFlow?M===`
|
|
125
|
-
`&&N&&(M=`
|
|
126
|
-
|
|
127
|
-
`):M+=`
|
|
128
|
-
${n.indent}`}else if(!h&&Qo.isCollection(t)){let k=j[0],U=j.indexOf(`
|
|
129
|
-
`),R=U!==-1,se=n.inFlow??t.flow??t.items.length===0;if(R||!se){let G=!1;if(R&&(k==="&"||k==="!")){let Te=j.indexOf(" ");k==="&"&&Te!==-1&&Te<U&&j[Te+1]==="!"&&(Te=j.indexOf(" ",Te+1)),(Te===-1||U<Te)&&(G=!0)}G||(M=`
|
|
130
|
-
${n.indent}`)}}else(j===""||j[0]===`
|
|
131
|
-
`)&&(M="");return T+=M+j,n.inFlow?$&&r&&r():N&&!$?T+=Sg.lineComment(T,n.indent,u(N)):b&&i&&i(),T}s(DEe,"stringifyPair");p5.stringifyPair=DEe});var tC=y(eC=>{"use strict";var h5=require("process");function $Ee(e,...t){e==="debug"&&console.log(...t)}s($Ee,"debug");function kEe(e,t){(e==="debug"||e==="warn")&&(typeof h5.emitWarning=="function"?h5.emitWarning(t):console.warn(t))}s(kEe,"warn");eC.debug=$Ee;eC.warn=kEe});var WT=y(HT=>{"use strict";var Eg=kt(),g5=Wn(),BT="<<",GT={identify:s(e=>e===BT||typeof e=="symbol"&&e.description===BT,"identify"),default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:s(()=>Object.assign(new g5.Scalar(Symbol(BT)),{addToJSMap:m5}),"resolve"),stringify:s(()=>BT,"stringify")},MEe=s((e,t)=>(GT.identify(t)||Eg.isScalar(t)&&(!t.type||t.type===g5.Scalar.PLAIN)&>.identify(t.value))&&(e==null?void 0:e.doc.schema.tags.some(n=>n.tag===GT.tag&&n.default)),"isMergeKey");function m5(e,t,n){if(n=e&&Eg.isAlias(n)?n.resolve(e.doc):n,Eg.isSeq(n))for(let r of n.items)nC(e,t,r);else if(Array.isArray(n))for(let r of n)nC(e,t,r);else nC(e,t,n)}s(m5,"addMergeToJSMap");function nC(e,t,n){let r=e&&Eg.isAlias(n)?n.resolve(e.doc):n;if(!Eg.isMap(r))throw new Error("Merge sources must be maps or map aliases");let i=r.toJSON(null,e,Map);for(let[o,a]of i)t instanceof Map?t.has(o)||t.set(o,a):t instanceof Set?t.add(o):Object.prototype.hasOwnProperty.call(t,o)||Object.defineProperty(t,o,{value:a,writable:!0,enumerable:!0,configurable:!0});return t}s(nC,"mergeValue");HT.addMergeToJSMap=m5;HT.isMergeKey=MEe;HT.merge=GT});var iC=y(v5=>{"use strict";var VEe=tC(),y5=WT(),qEe=Tg(),b5=kt(),rC=ac();function UEe(e,t,{key:n,value:r}){if(b5.isNode(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(y5.isMergeKey(e,n))y5.addMergeToJSMap(e,t,r);else{let i=rC.toJS(n,"",e);if(t instanceof Map)t.set(i,rC.toJS(r,i,e));else if(t instanceof Set)t.add(i);else{let o=BEe(n,i,e),a=rC.toJS(r,o,e);o in t?Object.defineProperty(t,o,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[o]=a}}return t}s(UEe,"addPairToJSMap");function BEe(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(b5.isNode(e)&&(n!=null&&n.doc)){let r=qEe.createStringifyContext(n.doc,{});r.anchors=new Set;for(let o of n.anchors.keys())r.anchors.add(o.anchor);r.inFlow=!0,r.inStringifyKey=!0;let i=e.toString(r);if(!n.mapKeyWarned){let o=JSON.stringify(i);o.length>40&&(o=o.substring(0,36)+'..."'),VEe.warn(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return i}return JSON.stringify(t)}s(BEe,"stringifyKey");v5.addPairToJSMap=UEe});var fc=y(sC=>{"use strict";var T5=gg(),GEe=d5(),HEe=iC(),KT=kt();function WEe(e,t,n){let r=T5.createNode(e,void 0,n),i=T5.createNode(t,void 0,n);return new JT(r,i)}s(WEe,"createPair");var YT=class YT{constructor(t,n=null){Object.defineProperty(this,KT.NODE_TYPE,{value:KT.PAIR}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return KT.isNode(n)&&(n=n.clone(t)),KT.isNode(r)&&(r=r.clone(t)),new YT(n,r)}toJSON(t,n){let r=n!=null&&n.mapAsMap?new Map:{};return HEe.addPairToJSMap(n,r,this)}toString(t,n,r){return t!=null&&t.doc?GEe.stringifyPair(this,t,n,r):JSON.stringify(this)}};s(YT,"Pair");var JT=YT;sC.Pair=JT;sC.createPair=WEe});var oC=y(E5=>{"use strict";var Yl=kt(),S5=Tg(),XT=mg();function KEe(e,t,n){return(t.inFlow??e.flow?YEe:JEe)(e,t,n)}s(KEe,"stringifyCollection");function JEe({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:o,onChompKeep:a,onComment:c}){let{indent:l,options:{commentString:u}}=n,f=Object.assign({},n,{indent:o,type:null}),p=!1,d=[];for(let m=0;m<t.length;++m){let b=t[m],T=null;if(Yl.isNode(b))!p&&b.spaceBefore&&d.push(""),zT(n,d,b.commentBefore,p),b.comment&&(T=b.comment);else if(Yl.isPair(b)){let F=Yl.isNode(b.key)?b.key:null;F&&(!p&&F.spaceBefore&&d.push(""),zT(n,d,F.commentBefore,p))}p=!1;let I=S5.stringify(b,f,()=>T=null,()=>p=!0);T&&(I+=XT.lineComment(I,o,u(T))),p&&T&&(p=!1),d.push(r+I)}let h;if(d.length===0)h=i.start+i.end;else{h=d[0];for(let m=1;m<d.length;++m){let b=d[m];h+=b?`
|
|
132
|
-
${l}${b}`:`
|
|
133
|
-
`}}return e?(h+=`
|
|
134
|
-
`+XT.indentComment(u(e),l),c&&c()):p&&a&&a(),h}s(JEe,"stringifyBlockCollection");function YEe({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:o,flowCollectionPadding:a,options:{commentString:c}}=t;r+=o;let l=Object.assign({},t,{indent:r,inFlow:!0,type:null}),u=!1,f=0,p=[];for(let m=0;m<e.length;++m){let b=e[m],T=null;if(Yl.isNode(b))b.spaceBefore&&p.push(""),zT(t,p,b.commentBefore,!1),b.comment&&(T=b.comment);else if(Yl.isPair(b)){let F=Yl.isNode(b.key)?b.key:null;F&&(F.spaceBefore&&p.push(""),zT(t,p,F.commentBefore,!1),F.comment&&(u=!0));let N=Yl.isNode(b.value)?b.value:null;N?(N.comment&&(T=N.comment),N.commentBefore&&(u=!0)):b.value==null&&(F!=null&&F.comment)&&(T=F.comment)}T&&(u=!0);let I=S5.stringify(b,l,()=>T=null);u||(u=p.length>f||I.includes(`
|
|
135
|
-
`)),m<e.length-1?I+=",":t.options.trailingComma&&(t.options.lineWidth>0&&(u||(u=p.reduce((F,N)=>F+N.length+2,2)+(I.length+2)>t.options.lineWidth)),u&&(I+=",")),T&&(I+=XT.lineComment(I,r,c(T))),p.push(I),f=p.length}let{start:d,end:h}=n;if(p.length===0)return d+h;if(!u){let m=p.reduce((b,T)=>b+T.length+2,2);u=t.options.lineWidth>0&&m>t.options.lineWidth}if(u){let m=d;for(let b of p)m+=b?`
|
|
136
|
-
${o}${i}${b}`:`
|
|
137
|
-
`;return`${m}
|
|
138
|
-
${i}${h}`}else return`${d}${a}${p.join(" ")}${a}${h}`}s(YEe,"stringifyFlowCollection");function zT({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){let o=XT.indentComment(t(r),e);n.push(o.trimStart())}}s(zT,"addCommentBefore");E5.stringifyCollection=KEe});var dc=y(cC=>{"use strict";var XEe=oC(),zEe=iC(),QEe=$T(),pc=kt(),QT=fc(),ZEe=Wn();function Pg(e,t){let n=pc.isScalar(t)?t.value:t;for(let r of e)if(pc.isPair(r)&&(r.key===t||r.key===n||pc.isScalar(r.key)&&r.key.value===n))return r}s(Pg,"findPair");var lC=class lC extends QEe.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(pc.MAP,t),this.items=[]}static from(t,n,r){let{keepUndefined:i,replacer:o}=r,a=new this(t),c=s((l,u)=>{if(typeof o=="function")u=o.call(n,l,u);else if(Array.isArray(o)&&!o.includes(l))return;(u!==void 0||i)&&a.items.push(QT.createPair(l,u,r))},"add");if(n instanceof Map)for(let[l,u]of n)c(l,u);else if(n&&typeof n=="object")for(let l of Object.keys(n))c(l,n[l]);return typeof t.sortMapEntries=="function"&&a.items.sort(t.sortMapEntries),a}add(t,n){var a;let r;pc.isPair(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new QT.Pair(t,t==null?void 0:t.value):r=new QT.Pair(t.key,t.value);let i=Pg(this.items,r.key),o=(a=this.schema)==null?void 0:a.sortMapEntries;if(i){if(!n)throw new Error(`Key ${r.key} already set`);pc.isScalar(i.value)&&ZEe.isScalarValue(r.value)?i.value.value=r.value:i.value=r.value}else if(o){let c=this.items.findIndex(l=>o(r,l)<0);c===-1?this.items.push(r):this.items.splice(c,0,r)}else this.items.push(r)}delete(t){let n=Pg(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){let r=Pg(this.items,t),i=r==null?void 0:r.value;return(!n&&pc.isScalar(i)?i.value:i)??void 0}has(t){return!!Pg(this.items,t)}set(t,n){this.add(new QT.Pair(t,n),!0)}toJSON(t,n,r){let i=r?new r:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(i);for(let o of this.items)zEe.addPairToJSMap(n,i,o);return i}toString(t,n,r){if(!t)return JSON.stringify(this);for(let i of this.items)if(!pc.isPair(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),XEe.stringifyCollection(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}};s(lC,"YAMLMap");var aC=lC;cC.YAMLMap=aC;cC.findPair=Pg});var ep=y(A5=>{"use strict";var ePe=kt(),P5=dc(),tPe={collection:"map",default:!0,nodeClass:P5.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(e,t){return ePe.isMap(e)||t("Expected a mapping for this tag"),e},createNode:s((e,t,n)=>P5.YAMLMap.from(e,t,n),"createNode")};A5.map=tPe});var hc=y(x5=>{"use strict";var nPe=gg(),rPe=oC(),iPe=$T(),eS=kt(),sPe=Wn(),oPe=ac(),fC=class fC extends iPe.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(eS.SEQ,t),this.items=[]}add(t){this.items.push(t)}delete(t){let n=ZT(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){let r=ZT(t);if(typeof r!="number")return;let i=this.items[r];return!n&&eS.isScalar(i)?i.value:i}has(t){let n=ZT(t);return typeof n=="number"&&n<this.items.length}set(t,n){let r=ZT(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);let i=this.items[r];eS.isScalar(i)&&sPe.isScalarValue(n)?i.value=n:this.items[r]=n}toJSON(t,n){let r=[];n!=null&&n.onCreate&&n.onCreate(r);let i=0;for(let o of this.items)r.push(oPe.toJS(o,String(i++),n));return r}toString(t,n,r){return t?rPe.stringifyCollection(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){let{replacer:i}=r,o=new this(t);if(n&&Symbol.iterator in Object(n)){let a=0;for(let c of n){if(typeof i=="function"){let l=n instanceof Set?c:String(a++);c=i.call(n,l,c)}o.items.push(nPe.createNode(c,void 0,r))}}return o}};s(fC,"YAMLSeq");var uC=fC;function ZT(e){let t=eS.isScalar(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}s(ZT,"asItemIndex");x5.YAMLSeq=uC});var tp=y(I5=>{"use strict";var aPe=kt(),O5=hc(),cPe={collection:"seq",default:!0,nodeClass:O5.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(e,t){return aPe.isSeq(e)||t("Expected a sequence for this tag"),e},createNode:s((e,t,n)=>O5.YAMLSeq.from(e,t,n),"createNode")};I5.seq=cPe});var Ag=y(_5=>{"use strict";var lPe=vg(),uPe={identify:s(e=>typeof e=="string","identify"),default:!0,tag:"tag:yaml.org,2002:str",resolve:s(e=>e,"resolve"),stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),lPe.stringifyString(e,t,n,r)}};_5.string=uPe});var tS=y(N5=>{"use strict";var C5=Wn(),w5={identify:s(e=>e==null,"identify"),createNode:s(()=>new C5.Scalar(null),"createNode"),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:s(()=>new C5.Scalar(null),"resolve"),stringify:s(({source:e},t)=>typeof e=="string"&&w5.test.test(e)?e:t.options.nullStr,"stringify")};N5.nullTag=w5});var pC=y(F5=>{"use strict";var fPe=Wn(),R5={identify:s(e=>typeof e=="boolean","identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:s(e=>new fPe.Scalar(e[0]==="t"||e[0]==="T"),"resolve"),stringify({source:e,value:t},n){if(e&&R5.test.test(e)){let r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};F5.boolTag=R5});var np=y(L5=>{"use strict";function pPe({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);let i=typeof r=="number"?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let o=Object.is(r,-0)?"-0":JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let a=o.indexOf(".");a<0&&(a=o.length,o+=".");let c=t-(o.length-a-1);for(;c-- >0;)o+="0"}return o}s(pPe,"stringifyNumber");L5.stringifyNumber=pPe});var hC=y(nS=>{"use strict";var dPe=Wn(),dC=np(),hPe={identify:s(e=>typeof e=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:s(e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,"resolve"),stringify:dC.stringifyNumber},gPe={identify:s(e=>typeof e=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:s(e=>parseFloat(e),"resolve"),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():dC.stringifyNumber(e)}},mPe={identify:s(e=>typeof e=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new dPe.Scalar(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:dC.stringifyNumber};nS.float=mPe;nS.floatExp=gPe;nS.floatNaN=hPe});var mC=y(iS=>{"use strict";var j5=np(),rS=s(e=>typeof e=="bigint"||Number.isInteger(e),"intIdentify"),gC=s((e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n),"intResolve");function D5(e,t,n){let{value:r}=e;return rS(r)&&r>=0?n+r.toString(t):j5.stringifyNumber(e)}s(D5,"intStringify");var yPe={identify:s(e=>rS(e)&&e>=0,"identify"),default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:s((e,t,n)=>gC(e,2,8,n),"resolve"),stringify:s(e=>D5(e,8,"0o"),"stringify")},bPe={identify:rS,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:s((e,t,n)=>gC(e,0,10,n),"resolve"),stringify:j5.stringifyNumber},vPe={identify:s(e=>rS(e)&&e>=0,"identify"),default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:s((e,t,n)=>gC(e,2,16,n),"resolve"),stringify:s(e=>D5(e,16,"0x"),"stringify")};iS.int=bPe;iS.intHex=vPe;iS.intOct=yPe});var k5=y($5=>{"use strict";var TPe=ep(),SPe=tS(),EPe=tp(),PPe=Ag(),APe=pC(),yC=hC(),bC=mC(),xPe=[TPe.map,EPe.seq,PPe.string,SPe.nullTag,APe.boolTag,bC.intOct,bC.int,bC.intHex,yC.floatNaN,yC.floatExp,yC.float];$5.schema=xPe});var q5=y(V5=>{"use strict";var OPe=Wn(),IPe=ep(),_Pe=tp();function M5(e){return typeof e=="bigint"||Number.isInteger(e)}s(M5,"intIdentify");var sS=s(({value:e})=>JSON.stringify(e),"stringifyJSON"),CPe=[{identify:s(e=>typeof e=="string","identify"),default:!0,tag:"tag:yaml.org,2002:str",resolve:s(e=>e,"resolve"),stringify:sS},{identify:s(e=>e==null,"identify"),createNode:s(()=>new OPe.Scalar(null),"createNode"),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:s(()=>null,"resolve"),stringify:sS},{identify:s(e=>typeof e=="boolean","identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:s(e=>e==="true","resolve"),stringify:sS},{identify:M5,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:s((e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),"resolve"),stringify:s(({value:e})=>M5(e)?e.toString():JSON.stringify(e),"stringify")},{identify:s(e=>typeof e=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:s(e=>parseFloat(e),"resolve"),stringify:sS}],wPe={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},NPe=[IPe.map,_Pe.seq].concat(CPe,wPe);V5.schema=NPe});var TC=y(U5=>{"use strict";var xg=require("buffer"),vC=Wn(),RPe=vg(),FPe={identify:s(e=>e instanceof Uint8Array,"identify"),default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof xg.Buffer=="function")return xg.Buffer.from(e,"base64");if(typeof atob=="function"){let n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,i,o){if(!n)return"";let a=n,c;if(typeof xg.Buffer=="function")c=a instanceof xg.Buffer?a.toString("base64"):xg.Buffer.from(a.buffer).toString("base64");else if(typeof btoa=="function"){let l="";for(let u=0;u<a.length;++u)l+=String.fromCharCode(a[u]);c=btoa(l)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=vC.Scalar.BLOCK_LITERAL),t!==vC.Scalar.QUOTE_DOUBLE){let l=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),u=Math.ceil(c.length/l),f=new Array(u);for(let p=0,d=0;p<u;++p,d+=l)f[p]=c.substr(d,l);c=f.join(t===vC.Scalar.BLOCK_LITERAL?`
|
|
139
|
-
`:" ")}return RPe.stringifyString({comment:e,type:t,value:c},r,i,o)}};U5.binary=FPe});var cS=y(aS=>{"use strict";var oS=kt(),SC=fc(),LPe=Wn(),jPe=hc();function B5(e,t){if(oS.isSeq(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!oS.isPair(r)){if(oS.isMap(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");let i=r.items[0]||new SC.Pair(new LPe.Scalar(null));if(r.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${r.commentBefore}
|
|
140
|
-
${i.key.commentBefore}`:r.commentBefore),r.comment){let o=i.value??i.key;o.comment=o.comment?`${r.comment}
|
|
141
|
-
${o.comment}`:r.comment}r=i}e.items[n]=oS.isPair(r)?r:new SC.Pair(r)}}else t("Expected a sequence for this tag");return e}s(B5,"resolvePairs");function G5(e,t,n){let{replacer:r}=n,i=new jPe.YAMLSeq(e);i.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let a of t){typeof r=="function"&&(a=r.call(t,String(o++),a));let c,l;if(Array.isArray(a))if(a.length===2)c=a[0],l=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){let u=Object.keys(a);if(u.length===1)c=u[0],l=a[c];else throw new TypeError(`Expected tuple with one key, not ${u.length} keys`)}else c=a;i.items.push(SC.createPair(c,l,n))}return i}s(G5,"createPairs");var DPe={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:B5,createNode:G5};aS.createPairs=G5;aS.pairs=DPe;aS.resolvePairs=B5});var AC=y(PC=>{"use strict";var H5=kt(),EC=ac(),Og=dc(),$Pe=hc(),W5=cS(),lS=class lS extends $Pe.YAMLSeq{constructor(){super(),this.add=Og.YAMLMap.prototype.add.bind(this),this.delete=Og.YAMLMap.prototype.delete.bind(this),this.get=Og.YAMLMap.prototype.get.bind(this),this.has=Og.YAMLMap.prototype.has.bind(this),this.set=Og.YAMLMap.prototype.set.bind(this),this.tag=lS.tag}toJSON(t,n){if(!n)return super.toJSON(t);let r=new Map;n!=null&&n.onCreate&&n.onCreate(r);for(let i of this.items){let o,a;if(H5.isPair(i)?(o=EC.toJS(i.key,"",n),a=EC.toJS(i.value,o,n)):o=EC.toJS(i,"",n),r.has(o))throw new Error("Ordered maps must not include duplicate keys");r.set(o,a)}return r}static from(t,n,r){let i=W5.createPairs(t,n,r),o=new this;return o.items=i.items,o}};s(lS,"YAMLOMap");var Xl=lS;Xl.tag="tag:yaml.org,2002:omap";var kPe={collection:"seq",identify:s(e=>e instanceof Map,"identify"),nodeClass:Xl,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let n=W5.resolvePairs(e,t),r=[];for(let{key:i}of n.items)H5.isScalar(i)&&(r.includes(i.value)?t(`Ordered maps must not include duplicate keys: ${i.value}`):r.push(i.value));return Object.assign(new Xl,n)},createNode:s((e,t,n)=>Xl.from(e,t,n),"createNode")};PC.YAMLOMap=Xl;PC.omap=kPe});var z5=y(xC=>{"use strict";var K5=Wn();function J5({value:e,source:t},n){return t&&(e?Y5:X5).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}s(J5,"boolStringify");var Y5={identify:s(e=>e===!0,"identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:s(()=>new K5.Scalar(!0),"resolve"),stringify:J5},X5={identify:s(e=>e===!1,"identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:s(()=>new K5.Scalar(!1),"resolve"),stringify:J5};xC.falseTag=X5;xC.trueTag=Y5});var Q5=y(uS=>{"use strict";var MPe=Wn(),OC=np(),VPe={identify:s(e=>typeof e=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:s(e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,"resolve"),stringify:OC.stringifyNumber},qPe={identify:s(e=>typeof e=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:s(e=>parseFloat(e.replace(/_/g,"")),"resolve"),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():OC.stringifyNumber(e)}},UPe={identify:s(e=>typeof e=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new MPe.Scalar(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){let r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:OC.stringifyNumber};uS.float=UPe;uS.floatExp=qPe;uS.floatNaN=VPe});var eW=y(_g=>{"use strict";var Z5=np(),Ig=s(e=>typeof e=="bigint"||Number.isInteger(e),"intIdentify");function fS(e,t,n,{intAsBigInt:r}){let i=e[0];if((i==="-"||i==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let a=BigInt(e);return i==="-"?BigInt(-1)*a:a}let o=parseInt(e,n);return i==="-"?-1*o:o}s(fS,"intResolve");function IC(e,t,n){let{value:r}=e;if(Ig(r)){let i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return Z5.stringifyNumber(e)}s(IC,"intStringify");var BPe={identify:Ig,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:s((e,t,n)=>fS(e,2,2,n),"resolve"),stringify:s(e=>IC(e,2,"0b"),"stringify")},GPe={identify:Ig,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:s((e,t,n)=>fS(e,1,8,n),"resolve"),stringify:s(e=>IC(e,8,"0"),"stringify")},HPe={identify:Ig,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:s((e,t,n)=>fS(e,0,10,n),"resolve"),stringify:Z5.stringifyNumber},WPe={identify:Ig,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:s((e,t,n)=>fS(e,2,16,n),"resolve"),stringify:s(e=>IC(e,16,"0x"),"stringify")};_g.int=HPe;_g.intBin=BPe;_g.intHex=WPe;_g.intOct=GPe});var CC=y(_C=>{"use strict";var hS=kt(),pS=fc(),dS=dc(),gS=class gS extends dS.YAMLMap{constructor(t){super(t),this.tag=gS.tag}add(t){let n;hS.isPair(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new pS.Pair(t.key,null):n=new pS.Pair(t,null),dS.findPair(this.items,n.key)||this.items.push(n)}get(t,n){let r=dS.findPair(this.items,t);return!n&&hS.isPair(r)?hS.isScalar(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);let r=dS.findPair(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new pS.Pair(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){let{replacer:i}=r,o=new this(t);if(n&&Symbol.iterator in Object(n))for(let a of n)typeof i=="function"&&(a=i.call(n,a,a)),o.items.push(pS.createPair(a,null,r));return o}};s(gS,"YAMLSet");var zl=gS;zl.tag="tag:yaml.org,2002:set";var KPe={collection:"map",identify:s(e=>e instanceof Set,"identify"),nodeClass:zl,default:!1,tag:"tag:yaml.org,2002:set",createNode:s((e,t,n)=>zl.from(e,t,n),"createNode"),resolve(e,t){if(hS.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new zl,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};_C.YAMLSet=zl;_C.set=KPe});var NC=y(mS=>{"use strict";var JPe=np();function wC(e,t){let n=e[0],r=n==="-"||n==="+"?e.substring(1):e,i=s(a=>t?BigInt(a):Number(a),"num"),o=r.replace(/_/g,"").split(":").reduce((a,c)=>a*i(60)+i(c),i(0));return n==="-"?i(-1)*o:o}s(wC,"parseSexagesimal");function tW(e){let{value:t}=e,n=s(a=>a,"num");if(typeof t=="bigint")n=s(a=>BigInt(a),"num");else if(isNaN(t)||!isFinite(t))return JPe.stringifyNumber(e);let r="";t<0&&(r="-",t*=n(-1));let i=n(60),o=[t%i];return t<60?o.unshift(0):(t=(t-o[0])/i,o.unshift(t%i),t>=60&&(t=(t-o[0])/i,o.unshift(t))),r+o.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}s(tW,"stringifySexagesimal");var YPe={identify:s(e=>typeof e=="bigint"||Number.isInteger(e),"identify"),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:s((e,t,{intAsBigInt:n})=>wC(e,n),"resolve"),stringify:tW},XPe={identify:s(e=>typeof e=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:s(e=>wC(e,!1),"resolve"),stringify:tW},nW={identify:s(e=>e instanceof Date,"identify"),default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(nW.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,r,i,o,a,c]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0,u=Date.UTC(n,r-1,i,o||0,a||0,c||0,l),f=t[8];if(f&&f!=="Z"){let p=wC(f,!1);Math.abs(p)<30&&(p*=60),u-=6e4*p}return new Date(u)},stringify:s(({value:e})=>(e==null?void 0:e.toISOString().replace(/(T00:00:00)?\.000Z$/,""))??"","stringify")};mS.floatTime=XPe;mS.intTime=YPe;mS.timestamp=nW});var sW=y(iW=>{"use strict";var zPe=ep(),QPe=tS(),ZPe=tp(),eAe=Ag(),tAe=TC(),rW=z5(),RC=Q5(),yS=eW(),nAe=WT(),rAe=AC(),iAe=cS(),sAe=CC(),FC=NC(),oAe=[zPe.map,ZPe.seq,eAe.string,QPe.nullTag,rW.trueTag,rW.falseTag,yS.intBin,yS.intOct,yS.int,yS.intHex,RC.floatNaN,RC.floatExp,RC.float,tAe.binary,nAe.merge,rAe.omap,iAe.pairs,sAe.set,FC.intTime,FC.floatTime,FC.timestamp];iW.schema=oAe});var gW=y(DC=>{"use strict";var lW=ep(),aAe=tS(),uW=tp(),cAe=Ag(),lAe=pC(),LC=hC(),jC=mC(),uAe=k5(),fAe=q5(),fW=TC(),Cg=WT(),pW=AC(),dW=cS(),oW=sW(),hW=CC(),bS=NC(),aW=new Map([["core",uAe.schema],["failsafe",[lW.map,uW.seq,cAe.string]],["json",fAe.schema],["yaml11",oW.schema],["yaml-1.1",oW.schema]]),cW={binary:fW.binary,bool:lAe.boolTag,float:LC.float,floatExp:LC.floatExp,floatNaN:LC.floatNaN,floatTime:bS.floatTime,int:jC.int,intHex:jC.intHex,intOct:jC.intOct,intTime:bS.intTime,map:lW.map,merge:Cg.merge,null:aAe.nullTag,omap:pW.omap,pairs:dW.pairs,seq:uW.seq,set:hW.set,timestamp:bS.timestamp},pAe={"tag:yaml.org,2002:binary":fW.binary,"tag:yaml.org,2002:merge":Cg.merge,"tag:yaml.org,2002:omap":pW.omap,"tag:yaml.org,2002:pairs":dW.pairs,"tag:yaml.org,2002:set":hW.set,"tag:yaml.org,2002:timestamp":bS.timestamp};function dAe(e,t,n){let r=aW.get(t);if(r&&!e)return n&&!r.includes(Cg.merge)?r.concat(Cg.merge):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{let o=Array.from(aW.keys()).filter(a=>a!=="yaml11").map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${o} or define customTags array`)}if(Array.isArray(e))for(let o of e)i=i.concat(o);else typeof e=="function"&&(i=e(i.slice()));return n&&(i=i.concat(Cg.merge)),i.reduce((o,a)=>{let c=typeof a=="string"?cW[a]:a;if(!c){let l=JSON.stringify(a),u=Object.keys(cW).map(f=>JSON.stringify(f)).join(", ");throw new Error(`Unknown custom tag ${l}; use one of ${u}`)}return o.includes(c)||o.push(c),o},[])}s(dAe,"getTags");DC.coreKnownTags=pAe;DC.getTags=dAe});var MC=y(mW=>{"use strict";var $C=kt(),hAe=ep(),gAe=tp(),mAe=Ag(),vS=gW(),yAe=s((e,t)=>e.key<t.key?-1:e.key>t.key?1:0,"sortMapEntriesByKey"),TS=class TS{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:i,schema:o,sortMapEntries:a,toStringDefaults:c}){this.compat=Array.isArray(t)?vS.getTags(t,"compat"):t?vS.getTags(null,t):null,this.name=typeof o=="string"&&o||"core",this.knownTags=i?vS.coreKnownTags:{},this.tags=vS.getTags(n,this.name,r),this.toStringOptions=c??null,Object.defineProperty(this,$C.MAP,{value:hAe.map}),Object.defineProperty(this,$C.SCALAR,{value:mAe.string}),Object.defineProperty(this,$C.SEQ,{value:gAe.seq}),this.sortMapEntries=typeof a=="function"?a:a===!0?yAe:null}clone(){let t=Object.create(TS.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};s(TS,"Schema");var kC=TS;mW.Schema=kC});var bW=y(yW=>{"use strict";var bAe=kt(),VC=Tg(),wg=mg();function vAe(e,t){var l;let n=[],r=t.directives===!0;if(t.directives!==!1&&e.directives){let u=e.directives.toString(e);u?(n.push(u),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");let i=VC.createStringifyContext(e,t),{commentString:o}=i.options;if(e.commentBefore){n.length!==1&&n.unshift("");let u=o(e.commentBefore);n.unshift(wg.indentComment(u,""))}let a=!1,c=null;if(e.contents){if(bAe.isNode(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){let p=o(e.contents.commentBefore);n.push(wg.indentComment(p,""))}i.forceBlockIndent=!!e.comment,c=e.contents.comment}let u=c?void 0:()=>a=!0,f=VC.stringify(e.contents,i,()=>c=null,u);c&&(f+=wg.lineComment(f,"",o(c))),(f[0]==="|"||f[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${f}`:n.push(f)}else n.push(VC.stringify(e.contents,i));if((l=e.directives)!=null&&l.docEnd)if(e.comment){let u=o(e.comment);u.includes(`
|
|
142
|
-
`)?(n.push("..."),n.push(wg.indentComment(u,""))):n.push(`... ${u}`)}else n.push("...");else{let u=e.comment;u&&a&&(u=u.replace(/^\n+/,"")),u&&((!a||c)&&n[n.length-1]!==""&&n.push(""),n.push(wg.indentComment(o(u),"")))}return n.join(`
|
|
143
|
-
`)+`
|
|
144
|
-
`}s(vAe,"stringifyDocument");yW.stringifyDocument=vAe});var Ng=y(vW=>{"use strict";var TAe=hg(),rp=$T(),ss=kt(),SAe=fc(),EAe=ac(),PAe=MC(),AAe=bW(),qC=FT(),xAe=M_(),OAe=gg(),UC=k_(),SS=class SS{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,ss.NODE_TYPE,{value:ss.DOC});let i=null;typeof n=="function"||Array.isArray(n)?i=n:r===void 0&&n&&(r=n,n=void 0);let o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=o;let{version:a}=o;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new UC.Directives({version:a}),this.setSchema(a,r),this.contents=t===void 0?null:this.createNode(t,i,r)}clone(){let t=Object.create(SS.prototype,{[ss.NODE_TYPE]:{value:ss.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=ss.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){ip(this.contents)&&this.contents.add(t)}addIn(t,n){ip(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){let r=qC.anchorNames(this);t.anchor=!n||r.has(n)?qC.findNewAnchor(n||"a",r):n}return new TAe.Alias(t.anchor)}createNode(t,n,r){let i;if(typeof n=="function")t=n.call({"":t},"",t),i=n;else if(Array.isArray(n)){let T=s(F=>typeof F=="number"||F instanceof String||F instanceof Number,"keyToStr"),I=n.filter(T).map(String);I.length>0&&(n=n.concat(I)),i=n}else r===void 0&&n&&(r=n,n=void 0);let{aliasDuplicateObjects:o,anchorPrefix:a,flow:c,keepUndefined:l,onTagObj:u,tag:f}=r??{},{onAnchor:p,setAnchors:d,sourceObjects:h}=qC.createNodeAnchors(this,a||"a"),m={aliasDuplicateObjects:o??!0,keepUndefined:l??!1,onAnchor:p,onTagObj:u,replacer:i,schema:this.schema,sourceObjects:h},b=OAe.createNode(t,f,m);return c&&ss.isCollection(b)&&(b.flow=!0),d(),b}createPair(t,n,r={}){let i=this.createNode(t,null,r),o=this.createNode(n,null,r);return new SAe.Pair(i,o)}delete(t){return ip(this.contents)?this.contents.delete(t):!1}deleteIn(t){return rp.isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):ip(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return ss.isCollection(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return rp.isEmptyPath(t)?!n&&ss.isScalar(this.contents)?this.contents.value:this.contents:ss.isCollection(this.contents)?this.contents.getIn(t,n):void 0}has(t){return ss.isCollection(this.contents)?this.contents.has(t):!1}hasIn(t){return rp.isEmptyPath(t)?this.contents!==void 0:ss.isCollection(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=rp.collectionFromPath(this.schema,[t],n):ip(this.contents)&&this.contents.set(t,n)}setIn(t,n){rp.isEmptyPath(t)?this.contents=n:this.contents==null?this.contents=rp.collectionFromPath(this.schema,Array.from(t),n):ip(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new UC.Directives({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new UC.Directives({version:t}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{let i=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new PAe.Schema(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:i,onAnchor:o,reviver:a}={}){let c={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=EAe.toJS(this.contents,n??"",c);if(typeof o=="function")for(let{count:u,res:f}of c.anchors.values())o(f,u);return typeof a=="function"?xAe.applyReviver(a,{"":l},"",l):l}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){let n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return AAe.stringifyDocument(this,t)}};s(SS,"Document");var BC=SS;function ip(e){if(ss.isCollection(e))return!0;throw new Error("Expected a YAML collection as document contents")}s(ip,"assertCollection");vW.Document=BC});var Lg=y(Fg=>{"use strict";var WC=class WC extends Error{constructor(t,n,r,i){super(),this.name=t,this.code=r,this.message=i,this.pos=n}};s(WC,"YAMLError");var Rg=WC,KC=class KC extends Rg{constructor(t,n,r){super("YAMLParseError",t,n,r)}};s(KC,"YAMLParseError");var GC=KC,JC=class JC extends Rg{constructor(t,n,r){super("YAMLWarning",t,n,r)}};s(JC,"YAMLWarning");var HC=JC,IAe=s((e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(c=>t.linePos(c));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let o=i-1,a=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(o>=60&&a.length>80){let c=Math.min(o-39,a.length-79);a="\u2026"+a.substring(c),o-=c-1}if(a.length>80&&(a=a.substring(0,79)+"\u2026"),r>1&&/^ *$/.test(a.substring(0,o))){let c=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);c.length>80&&(c=c.substring(0,79)+`\u2026
|
|
145
|
-
`),a=c+a}if(/[^ ]/.test(a)){let c=1,l=n.linePos[1];(l==null?void 0:l.line)===r&&l.col>i&&(c=Math.max(1,Math.min(l.col-i,80-o)));let u=" ".repeat(o)+"^".repeat(c);n.message+=`:
|
|
146
|
-
|
|
147
|
-
${a}
|
|
148
|
-
${u}
|
|
149
|
-
`}},"prettifyError");Fg.YAMLError=Rg;Fg.YAMLParseError=GC;Fg.YAMLWarning=HC;Fg.prettifyError=IAe});var jg=y(TW=>{"use strict";function _Ae(e,{flow:t,indicator:n,next:r,offset:i,onError:o,parentIndent:a,startOnNewline:c}){let l=!1,u=c,f=c,p="",d="",h=!1,m=!1,b=null,T=null,I=null,F=null,N=null,$=null,j=null;for(let U of e)switch(m&&(U.type!=="space"&&U.type!=="newline"&&U.type!=="comma"&&o(U.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m=!1),b&&(u&&U.type!=="comment"&&U.type!=="newline"&&o(b,"TAB_AS_INDENT","Tabs are not allowed as indentation"),b=null),U.type){case"space":!t&&(n!=="doc-start"||(r==null?void 0:r.type)!=="flow-collection")&&U.source.includes(" ")&&(b=U),f=!0;break;case"comment":{f||o(U,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let R=U.source.substring(1)||" ";p?p+=d+R:p=R,d="",u=!1;break}case"newline":u?p?p+=U.source:(!$||n!=="seq-item-ind")&&(l=!0):d+=U.source,u=!0,h=!0,(T||I)&&(F=U),f=!0;break;case"anchor":T&&o(U,"MULTIPLE_ANCHORS","A node can have at most one anchor"),U.source.endsWith(":")&&o(U.offset+U.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),T=U,j??(j=U.offset),u=!1,f=!1,m=!0;break;case"tag":{I&&o(U,"MULTIPLE_TAGS","A node can have at most one tag"),I=U,j??(j=U.offset),u=!1,f=!1,m=!0;break}case n:(T||I)&&o(U,"BAD_PROP_ORDER",`Anchors and tags must be after the ${U.source} indicator`),$&&o(U,"UNEXPECTED_TOKEN",`Unexpected ${U.source} in ${t??"collection"}`),$=U,u=n==="seq-item-ind"||n==="explicit-key-ind",f=!1;break;case"comma":if(t){N&&o(U,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),N=U,u=!1,f=!1;break}default:o(U,"UNEXPECTED_TOKEN",`Unexpected ${U.type} token`),u=!1,f=!1}let M=e[e.length-1],k=M?M.offset+M.source.length:i;return m&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&o(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),b&&(u&&b.indent<=a||(r==null?void 0:r.type)==="block-map"||(r==null?void 0:r.type)==="block-seq")&&o(b,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:N,found:$,spaceBefore:l,comment:p,hasNewline:h,anchor:T,tag:I,newlineAfterProp:F,end:k,start:j??k}}s(_Ae,"resolveProps");TW.resolveProps=_Ae});var ES=y(SW=>{"use strict";function YC(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
|
150
|
-
`))return!0;if(e.end){for(let t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(let t of e.items){for(let n of t.start)if(n.type==="newline")return!0;if(t.sep){for(let n of t.sep)if(n.type==="newline")return!0}if(YC(t.key)||YC(t.value))return!0}return!1;default:return!0}}s(YC,"containsNewline");SW.containsNewline=YC});var XC=y(EW=>{"use strict";var CAe=ES();function wAe(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){let r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&CAe.containsNewline(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}s(wAe,"flowIndentCheck");EW.flowIndentCheck=wAe});var zC=y(AW=>{"use strict";var PW=kt();function NAe(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r=="function"?r:(o,a)=>o===a||PW.isScalar(o)&&PW.isScalar(a)&&o.value===a.value;return t.some(o=>i(o.key,n))}s(NAe,"mapIncludes");AW.mapIncludes=NAe});var wW=y(CW=>{"use strict";var xW=fc(),RAe=dc(),OW=jg(),FAe=ES(),IW=XC(),LAe=zC(),_W="All mapping items must start at the same column";function jAe({composeNode:e,composeEmptyNode:t},n,r,i,o){var f;let a=(o==null?void 0:o.nodeClass)??RAe.YAMLMap,c=new a(n.schema);n.atRoot&&(n.atRoot=!1);let l=r.offset,u=null;for(let p of r.items){let{start:d,key:h,sep:m,value:b}=p,T=OW.resolveProps(d,{indicator:"explicit-key-ind",next:h??(m==null?void 0:m[0]),offset:l,onError:i,parentIndent:r.indent,startOnNewline:!0}),I=!T.found;if(I){if(h&&(h.type==="block-seq"?i(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==r.indent&&i(l,"BAD_INDENT",_W)),!T.anchor&&!T.tag&&!m){u=T.end,T.comment&&(c.comment?c.comment+=`
|
|
151
|
-
`+T.comment:c.comment=T.comment);continue}(T.newlineAfterProp||FAe.containsNewline(h))&&i(h??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((f=T.found)==null?void 0:f.indent)!==r.indent&&i(l,"BAD_INDENT",_W);n.atKey=!0;let F=T.end,N=h?e(n,h,T,i):t(n,F,d,null,T,i);n.schema.compat&&IW.flowIndentCheck(r.indent,h,i),n.atKey=!1,LAe.mapIncludes(n,c.items,N)&&i(F,"DUPLICATE_KEY","Map keys must be unique");let $=OW.resolveProps(m??[],{indicator:"map-value-ind",next:b,offset:N.range[2],onError:i,parentIndent:r.indent,startOnNewline:!h||h.type==="block-scalar"});if(l=$.end,$.found){I&&((b==null?void 0:b.type)==="block-map"&&!$.hasNewline&&i(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&T.start<$.found.offset-1024&&i(N.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let j=b?e(n,b,$,i):t(n,l,m,null,$,i);n.schema.compat&&IW.flowIndentCheck(r.indent,b,i),l=j.range[2];let M=new xW.Pair(N,j);n.options.keepSourceTokens&&(M.srcToken=p),c.items.push(M)}else{I&&i(N.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),$.comment&&(N.comment?N.comment+=`
|
|
152
|
-
`+$.comment:N.comment=$.comment);let j=new xW.Pair(N);n.options.keepSourceTokens&&(j.srcToken=p),c.items.push(j)}}return u&&u<l&&i(u,"IMPOSSIBLE","Map comment with trailing content"),c.range=[r.offset,l,u??l],c}s(jAe,"resolveBlockMap");CW.resolveBlockMap=jAe});var RW=y(NW=>{"use strict";var DAe=hc(),$Ae=jg(),kAe=XC();function MAe({composeNode:e,composeEmptyNode:t},n,r,i,o){let a=(o==null?void 0:o.nodeClass)??DAe.YAMLSeq,c=new a(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let l=r.offset,u=null;for(let{start:f,value:p}of r.items){let d=$Ae.resolveProps(f,{indicator:"seq-item-ind",next:p,offset:l,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!d.found)if(d.anchor||d.tag||p)(p==null?void 0:p.type)==="block-seq"?i(d.end,"BAD_INDENT","All sequence items must start at the same column"):i(l,"MISSING_CHAR","Sequence item without - indicator");else{u=d.end,d.comment&&(c.comment=d.comment);continue}let h=p?e(n,p,d,i):t(n,d.end,f,null,d,i);n.schema.compat&&kAe.flowIndentCheck(r.indent,p,i),l=h.range[2],c.items.push(h)}return c.range=[r.offset,l,u??l],c}s(MAe,"resolveBlockSeq");NW.resolveBlockSeq=MAe});var sp=y(FW=>{"use strict";function VAe(e,t,n,r){let i="";if(e){let o=!1,a="";for(let c of e){let{source:l,type:u}=c;switch(u){case"space":o=!0;break;case"comment":{n&&!o&&r(c,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let f=l.substring(1)||" ";i?i+=a+f:i=f,a="";break}case"newline":i&&(a+=l),o=!0;break;default:r(c,"UNEXPECTED_TOKEN",`Unexpected ${u} at node end`)}t+=l.length}}return{comment:i,offset:t}}s(VAe,"resolveEnd");FW.resolveEnd=VAe});var $W=y(DW=>{"use strict";var qAe=kt(),UAe=fc(),LW=dc(),BAe=hc(),GAe=sp(),jW=jg(),HAe=ES(),WAe=zC(),QC="Block collections are not allowed within flow collections",ZC=s(e=>e&&(e.type==="block-map"||e.type==="block-seq"),"isBlock");function KAe({composeNode:e,composeEmptyNode:t},n,r,i,o){var T;let a=r.start.source==="{",c=a?"flow map":"flow sequence",l=(o==null?void 0:o.nodeClass)??(a?LW.YAMLMap:BAe.YAMLSeq),u=new l(n.schema);u.flow=!0;let f=n.atRoot;f&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let p=r.offset+r.start.source.length;for(let I=0;I<r.items.length;++I){let F=r.items[I],{start:N,key:$,sep:j,value:M}=F,k=jW.resolveProps(N,{flow:c,indicator:"explicit-key-ind",next:$??(j==null?void 0:j[0]),offset:p,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!k.found){if(!k.anchor&&!k.tag&&!j&&!M){I===0&&k.comma?i(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${c}`):I<r.items.length-1&&i(k.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${c}`),k.comment&&(u.comment?u.comment+=`
|
|
153
|
-
`+k.comment:u.comment=k.comment),p=k.end;continue}!a&&n.options.strict&&HAe.containsNewline($)&&i($,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(I===0)k.comma&&i(k.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${c}`);else if(k.comma||i(k.start,"MISSING_CHAR",`Missing , between ${c} items`),k.comment){let U="";e:for(let R of N)switch(R.type){case"comma":case"space":break;case"comment":U=R.source.substring(1);break e;default:break e}if(U){let R=u.items[u.items.length-1];qAe.isPair(R)&&(R=R.value??R.key),R.comment?R.comment+=`
|
|
154
|
-
`+U:R.comment=U,k.comment=k.comment.substring(U.length+1)}}if(!a&&!j&&!k.found){let U=M?e(n,M,k,i):t(n,k.end,j,null,k,i);u.items.push(U),p=U.range[2],ZC(M)&&i(U.range,"BLOCK_IN_FLOW",QC)}else{n.atKey=!0;let U=k.end,R=$?e(n,$,k,i):t(n,U,N,null,k,i);ZC($)&&i(R.range,"BLOCK_IN_FLOW",QC),n.atKey=!1;let se=jW.resolveProps(j??[],{flow:c,indicator:"map-value-ind",next:M,offset:R.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(se.found){if(!a&&!k.found&&n.options.strict){if(j)for(let pe of j){if(pe===se.found)break;if(pe.type==="newline"){i(pe,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}k.start<se.found.offset-1024&&i(se.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else M&&("source"in M&&((T=M.source)==null?void 0:T[0])===":"?i(M,"MISSING_CHAR",`Missing space after : in ${c}`):i(se.start,"MISSING_CHAR",`Missing , or : between ${c} items`));let G=M?e(n,M,se,i):se.found?t(n,se.end,j,null,se,i):null;G?ZC(M)&&i(G.range,"BLOCK_IN_FLOW",QC):se.comment&&(R.comment?R.comment+=`
|
|
155
|
-
`+se.comment:R.comment=se.comment);let Te=new UAe.Pair(R,G);if(n.options.keepSourceTokens&&(Te.srcToken=F),a){let pe=u;WAe.mapIncludes(n,pe.items,R)&&i(U,"DUPLICATE_KEY","Map keys must be unique"),pe.items.push(Te)}else{let pe=new LW.YAMLMap(n.schema);pe.flow=!0,pe.items.push(Te);let ue=(G??R).range;pe.range=[R.range[0],ue[1],ue[2]],u.items.push(pe)}p=G?G.range[2]:se.end}}let d=a?"}":"]",[h,...m]=r.end,b=p;if((h==null?void 0:h.source)===d)b=h.offset+h.source.length;else{let I=c[0].toUpperCase()+c.substring(1),F=f?`${I} must end with a ${d}`:`${I} in block collection must be sufficiently indented and end with a ${d}`;i(p,f?"MISSING_CHAR":"BAD_INDENT",F),h&&h.source.length!==1&&m.unshift(h)}if(m.length>0){let I=GAe.resolveEnd(m,b,n.options.strict,i);I.comment&&(u.comment?u.comment+=`
|
|
156
|
-
`+I.comment:u.comment=I.comment),u.range=[r.offset,b,I.offset]}else u.range=[r.offset,b,b];return u}s(KAe,"resolveFlowCollection");DW.resolveFlowCollection=KAe});var MW=y(kW=>{"use strict";var JAe=kt(),YAe=Wn(),XAe=dc(),zAe=hc(),QAe=wW(),ZAe=RW(),e0e=$W();function ew(e,t,n,r,i,o){let a=n.type==="block-map"?QAe.resolveBlockMap(e,t,n,r,o):n.type==="block-seq"?ZAe.resolveBlockSeq(e,t,n,r,o):e0e.resolveFlowCollection(e,t,n,r,o),c=a.constructor;return i==="!"||i===c.tagName?(a.tag=c.tagName,a):(i&&(a.tag=i),a)}s(ew,"resolveCollection");function t0e(e,t,n,r,i){var d;let o=r.tag,a=o?t.directives.tagName(o.source,h=>i(o,"TAG_RESOLVE_FAILED",h)):null;if(n.type==="block-seq"){let{anchor:h,newlineAfterProp:m}=r,b=h&&o?h.offset>o.offset?h:o:h??o;b&&(!m||m.offset<b.offset)&&i(b,"MISSING_CHAR","Missing newline after block sequence props")}let c=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!o||!a||a==="!"||a===XAe.YAMLMap.tagName&&c==="map"||a===zAe.YAMLSeq.tagName&&c==="seq")return ew(e,t,n,i,a);let l=t.schema.tags.find(h=>h.tag===a&&h.collection===c);if(!l){let h=t.schema.knownTags[a];if((h==null?void 0:h.collection)===c)t.schema.tags.push(Object.assign({},h,{default:!1})),l=h;else return h?i(o,"BAD_COLLECTION_TYPE",`${h.tag} used for ${c} collection, but expects ${h.collection??"scalar"}`,!0):i(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0),ew(e,t,n,i,a)}let u=ew(e,t,n,i,a,l),f=((d=l.resolve)==null?void 0:d.call(l,u,h=>i(o,"TAG_RESOLVE_FAILED",h),t.options))??u,p=JAe.isNode(f)?f:new YAe.Scalar(f);return p.range=u.range,p.tag=a,l!=null&&l.format&&(p.format=l.format),p}s(t0e,"composeCollection");kW.composeCollection=t0e});var nw=y(VW=>{"use strict";var tw=Wn();function n0e(e,t,n){let r=t.offset,i=r0e(t,e.options.strict,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};let o=i.mode===">"?tw.Scalar.BLOCK_FOLDED:tw.Scalar.BLOCK_LITERAL,a=t.source?i0e(t.source):[],c=a.length;for(let b=a.length-1;b>=0;--b){let T=a[b][1];if(T===""||T==="\r")c=b;else break}if(c===0){let b=i.chomp==="+"&&a.length>0?`
|
|
157
|
-
`.repeat(Math.max(1,a.length-1)):"",T=r+i.length;return t.source&&(T+=t.source.length),{value:b,type:o,comment:i.comment,range:[r,T,T]}}let l=t.indent+i.indent,u=t.offset+i.length,f=0;for(let b=0;b<c;++b){let[T,I]=a[b];if(I===""||I==="\r")i.indent===0&&T.length>l&&(l=T.length);else{T.length<l&&n(u+T.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(l=T.length),f=b,l===0&&!e.atRoot&&n(u,"BAD_INDENT","Block scalar values in collections must be indented");break}u+=T.length+I.length+1}for(let b=a.length-1;b>=c;--b)a[b][0].length>l&&(c=b+1);let p="",d="",h=!1;for(let b=0;b<f;++b)p+=a[b][0].slice(l)+`
|
|
158
|
-
`;for(let b=f;b<c;++b){let[T,I]=a[b];u+=T.length+I.length+1;let F=I[I.length-1]==="\r";if(F&&(I=I.slice(0,-1)),I&&T.length<l){let $=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;n(u-I.length-(F?2:1),"BAD_INDENT",$),T=""}o===tw.Scalar.BLOCK_LITERAL?(p+=d+T.slice(l)+I,d=`
|
|
159
|
-
`):T.length>l||I[0]===" "?(d===" "?d=`
|
|
160
|
-
`:!h&&d===`
|
|
161
|
-
`&&(d=`
|
|
162
|
-
|
|
163
|
-
`),p+=d+T.slice(l)+I,d=`
|
|
164
|
-
`,h=!0):I===""?d===`
|
|
165
|
-
`?p+=`
|
|
166
|
-
`:d=`
|
|
167
|
-
`:(p+=d+I,d=" ",h=!1)}switch(i.chomp){case"-":break;case"+":for(let b=c;b<a.length;++b)p+=`
|
|
168
|
-
`+a[b][0].slice(l);p[p.length-1]!==`
|
|
169
|
-
`&&(p+=`
|
|
170
|
-
`);break;default:p+=`
|
|
171
|
-
`}let m=r+i.length+t.source.length;return{value:p,type:o,comment:i.comment,range:[r,m,m]}}s(n0e,"resolveBlockScalar");function r0e({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=t[0],o=i[0],a=0,c="",l=-1;for(let d=1;d<i.length;++d){let h=i[d];if(!c&&(h==="-"||h==="+"))c=h;else{let m=Number(h);!a&&m?a=m:l===-1&&(l=e+d)}}l!==-1&&r(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let u=!1,f="",p=i.length;for(let d=1;d<t.length;++d){let h=t[d];switch(h.type){case"space":u=!0;case"newline":p+=h.source.length;break;case"comment":n&&!u&&r(h,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=h.source.length,f=h.source.substring(1);break;case"error":r(h,"UNEXPECTED_TOKEN",h.message),p+=h.source.length;break;default:{let m=`Unexpected token in block scalar header: ${h.type}`;r(h,"UNEXPECTED_TOKEN",m);let b=h.source;b&&typeof b=="string"&&(p+=b.length)}}}return{mode:o,indent:a,chomp:c,comment:f,length:p}}s(r0e,"parseBlockScalarHeader");function i0e(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),o=[r!=null&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let a=1;a<t.length;a+=2)o.push([t[a],t[a+1]]);return o}s(i0e,"splitLines");VW.resolveBlockScalar=n0e});var iw=y(UW=>{"use strict";var rw=Wn(),s0e=sp();function o0e(e,t,n){let{offset:r,type:i,source:o,end:a}=e,c,l,u=s((d,h,m)=>n(r+d,h,m),"_onError");switch(i){case"scalar":c=rw.Scalar.PLAIN,l=a0e(o,u);break;case"single-quoted-scalar":c=rw.Scalar.QUOTE_SINGLE,l=c0e(o,u);break;case"double-quoted-scalar":c=rw.Scalar.QUOTE_DOUBLE,l=l0e(o,u);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[r,r+o.length,r+o.length]}}let f=r+o.length,p=s0e.resolveEnd(a,f,t,n);return{value:l,type:c,comment:p.comment,range:[r,f,p.offset]}}s(o0e,"resolveFlowScalar");function a0e(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),qW(e)}s(a0e,"plainValue");function c0e(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),qW(e.slice(1,-1)).replace(/''/g,"'")}s(c0e,"singleQuotedValue");function qW(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
172
|
-
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
173
|
-
`,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],o=" ",a=t.lastIndex;for(n.lastIndex=a;r=n.exec(e);)r[1]===""?o===`
|
|
174
|
-
`?i+=o:o=`
|
|
175
|
-
`:(i+=o+r[1],o=" "),a=n.lastIndex;let c=/[ \t]*(.*)/sy;return c.lastIndex=a,r=c.exec(e),i+o+((r==null?void 0:r[1])??"")}s(qW,"foldLines");function l0e(e,t){let n="";for(let r=1;r<e.length-1;++r){let i=e[r];if(!(i==="\r"&&e[r+1]===`
|
|
176
|
-
`))if(i===`
|
|
177
|
-
`){let{fold:o,offset:a}=u0e(e,r);n+=o,r=a}else if(i==="\\"){let o=e[++r],a=f0e[o];if(a)n+=a;else if(o===`
|
|
178
|
-
`)for(o=e[r+1];o===" "||o===" ";)o=e[++r+1];else if(o==="\r"&&e[r+1]===`
|
|
179
|
-
`)for(o=e[++r+1];o===" "||o===" ";)o=e[++r+1];else if(o==="x"||o==="u"||o==="U"){let c={x:2,u:4,U:8}[o];n+=p0e(e,r+1,c,t),r+=c}else{let c=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${c}`),n+=c}}else if(i===" "||i===" "){let o=r,a=e[r+1];for(;a===" "||a===" ";)a=e[++r+1];a!==`
|
|
180
|
-
`&&!(a==="\r"&&e[r+2]===`
|
|
181
|
-
`)&&(n+=r>o?e.slice(o,r+1):i)}else n+=i}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}s(l0e,"doubleQuotedValue");function u0e(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
|
|
182
|
-
`||r==="\r")&&!(r==="\r"&&e[t+2]!==`
|
|
183
|
-
`);)r===`
|
|
184
|
-
`&&(n+=`
|
|
185
|
-
`),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}s(u0e,"foldNewline");var f0e={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
186
|
-
`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function p0e(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(a)){let c=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${c}`),c}return String.fromCodePoint(a)}s(p0e,"parseCharCode");UW.resolveFlowScalar=o0e});var HW=y(GW=>{"use strict";var Ql=kt(),BW=Wn(),d0e=nw(),h0e=iw();function g0e(e,t,n,r){let{value:i,type:o,comment:a,range:c}=t.type==="block-scalar"?d0e.resolveBlockScalar(e,t,r):h0e.resolveFlowScalar(t,e.options.strict,r),l=n?e.directives.tagName(n.source,p=>r(n,"TAG_RESOLVE_FAILED",p)):null,u;e.options.stringKeys&&e.atKey?u=e.schema[Ql.SCALAR]:l?u=m0e(e.schema,i,l,n,r):t.type==="scalar"?u=y0e(e,i,t,r):u=e.schema[Ql.SCALAR];let f;try{let p=u.resolve(i,d=>r(n??t,"TAG_RESOLVE_FAILED",d),e.options);f=Ql.isScalar(p)?p:new BW.Scalar(p)}catch(p){let d=p instanceof Error?p.message:String(p);r(n??t,"TAG_RESOLVE_FAILED",d),f=new BW.Scalar(i)}return f.range=c,f.source=i,o&&(f.type=o),l&&(f.tag=l),u.format&&(f.format=u.format),a&&(f.comment=a),f}s(g0e,"composeScalar");function m0e(e,t,n,r,i){var c;if(n==="!")return e[Ql.SCALAR];let o=[];for(let l of e.tags)if(!l.collection&&l.tag===n)if(l.default&&l.test)o.push(l);else return l;for(let l of o)if((c=l.test)!=null&&c.test(t))return l;let a=e.knownTags[n];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[Ql.SCALAR])}s(m0e,"findScalarTagByName");function y0e({atKey:e,directives:t,schema:n},r,i,o){let a=n.tags.find(c=>{var l;return(c.default===!0||e&&c.default==="key")&&((l=c.test)==null?void 0:l.test(r))})||n[Ql.SCALAR];if(n.compat){let c=n.compat.find(l=>{var u;return l.default&&((u=l.test)==null?void 0:u.test(r))})??n[Ql.SCALAR];if(a.tag!==c.tag){let l=t.tagString(a.tag),u=t.tagString(c.tag),f=`Value may be parsed as either ${l} or ${u}`;o(i,"TAG_RESOLVE_FAILED",f,!0)}}return a}s(y0e,"findScalarTagByTest");GW.composeScalar=g0e});var KW=y(WW=>{"use strict";function b0e(e,t,n){if(t){n??(n=t.length);for(let r=n-1;r>=0;--r){let i=t[r];switch(i.type){case"space":case"comment":case"newline":e-=i.source.length;continue}for(i=t[++r];(i==null?void 0:i.type)==="space";)e+=i.source.length,i=t[++r];break}}return e}s(b0e,"emptyScalarPosition");WW.emptyScalarPosition=b0e});var XW=y(ow=>{"use strict";var v0e=hg(),T0e=kt(),S0e=MW(),JW=HW(),E0e=sp(),P0e=KW(),A0e={composeNode:YW,composeEmptyNode:sw};function YW(e,t,n,r){let i=e.atKey,{spaceBefore:o,comment:a,anchor:c,tag:l}=n,u,f=!0;switch(t.type){case"alias":u=x0e(e,t,r),(c||l)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":u=JW.composeScalar(e,t,l,r),c&&(u.anchor=c.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{u=S0e.composeCollection(A0e,e,t,n,r),c&&(u.anchor=c.source.substring(1))}catch(p){let d=p instanceof Error?p.message:String(p);r(t,"RESOURCE_EXHAUSTION",d)}break;default:{let p=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",p),f=!1}}return u??(u=sw(e,t.offset,void 0,null,n,r)),c&&u.anchor===""&&r(c,"BAD_ALIAS","Anchor cannot be an empty string"),i&&e.options.stringKeys&&(!T0e.isScalar(u)||typeof u.value!="string"||u.tag&&u.tag!=="tag:yaml.org,2002:str")&&r(l??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(u.spaceBefore=!0),a&&(t.type==="scalar"&&t.source===""?u.comment=a:u.commentBefore=a),e.options.keepSourceTokens&&f&&(u.srcToken=t),u}s(YW,"composeNode");function sw(e,t,n,r,{spaceBefore:i,comment:o,anchor:a,tag:c,end:l},u){let f={type:"scalar",offset:P0e.emptyScalarPosition(t,n,r),indent:-1,source:""},p=JW.composeScalar(e,f,c,u);return a&&(p.anchor=a.source.substring(1),p.anchor===""&&u(a,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(p.spaceBefore=!0),o&&(p.comment=o,p.range[2]=l),p}s(sw,"composeEmptyNode");function x0e({options:e},{offset:t,source:n,end:r},i){let o=new v0e.Alias(n.substring(1));o.source===""&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let a=t+n.length,c=E0e.resolveEnd(r,a,e.strict,i);return o.range=[t,a,c.offset],c.comment&&(o.comment=c.comment),o}s(x0e,"composeAlias");ow.composeEmptyNode=sw;ow.composeNode=YW});var ZW=y(QW=>{"use strict";var O0e=Ng(),zW=XW(),I0e=sp(),_0e=jg();function C0e(e,t,{offset:n,start:r,value:i,end:o},a){let c=Object.assign({_directives:t},e),l=new O0e.Document(void 0,c),u={atKey:!1,atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},f=_0e.resolveProps(r,{indicator:"doc-start",next:i??(o==null?void 0:o[0]),offset:n,onError:a,parentIndent:0,startOnNewline:!0});f.found&&(l.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!f.hasNewline&&a(f.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?zW.composeNode(u,i,f,a):zW.composeEmptyNode(u,f.end,r,null,f,a);let p=l.contents.range[2],d=I0e.resolveEnd(o,p,!1,a);return d.comment&&(l.comment=d.comment),l.range=[n,p,d.offset],l}s(C0e,"composeDoc");QW.composeDoc=C0e});var lw=y(nK=>{"use strict";var w0e=require("process"),N0e=k_(),R0e=Ng(),Dg=Lg(),eK=kt(),F0e=ZW(),L0e=sp();function $g(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}s($g,"getErrorPos");function tK(e){var i;let t="",n=!1,r=!1;for(let o=0;o<e.length;++o){let a=e[o];switch(a[0]){case"#":t+=(t===""?"":r?`
|
|
187
|
-
|
|
188
|
-
`:`
|
|
189
|
-
`)+(a.substring(1)||" "),n=!0,r=!1;break;case"%":((i=e[o+1])==null?void 0:i[0])!=="#"&&(o+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}s(tK,"parsePrelude");var cw=class cw{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,i,o)=>{let a=$g(n);o?this.warnings.push(new Dg.YAMLWarning(a,r,i)):this.errors.push(new Dg.YAMLParseError(a,r,i))},this.directives=new N0e.Directives({version:t.version||"1.2"}),this.options=t}decorate(t,n){let{comment:r,afterEmptyLine:i}=tK(this.prelude);if(r){let o=t.contents;if(n)t.comment=t.comment?`${t.comment}
|
|
190
|
-
${r}`:r;else if(i||t.directives.docStart||!o)t.commentBefore=r;else if(eK.isCollection(o)&&!o.flow&&o.items.length>0){let a=o.items[0];eK.isPair(a)&&(a=a.key);let c=a.commentBefore;a.commentBefore=c?`${r}
|
|
191
|
-
${c}`:r}else{let a=o.commentBefore;o.commentBefore=a?`${r}
|
|
192
|
-
${a}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:tK(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(let i of t)yield*this.next(i);yield*this.end(n,r)}*next(t){switch(w0e.env.LOG_STREAM&&console.dir(t,{depth:null}),t.type){case"directive":this.directives.add(t.source,(n,r,i)=>{let o=$g(t);o[0]+=n,this.onError(o,"BAD_DIRECTIVE",r,i)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{let n=F0e.composeDoc(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{let n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new Dg.YAMLParseError($g(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){let r="Unexpected doc-end without preceding document";this.errors.push(new Dg.YAMLParseError($g(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;let n=L0e.resolveEnd(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){let r=this.doc.comment;this.doc.comment=r?`${r}
|
|
193
|
-
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new Dg.YAMLParseError($g(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){let r=Object.assign({_directives:this.directives},this.options),i=new R0e.Document(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,n,n],this.decorate(i,!1),yield i}}};s(cw,"Composer");var aw=cw;nK.Composer=aw});var sK=y(PS=>{"use strict";var j0e=nw(),D0e=iw(),$0e=Lg(),rK=vg();function k0e(e,t=!0,n){if(e){let r=s((i,o,a)=>{let c=typeof i=="number"?i:Array.isArray(i)?i[0]:i.offset;if(n)n(c,o,a);else throw new $0e.YAMLParseError([c,c+1],o,a)},"_onError");switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return D0e.resolveFlowScalar(e,t,r);case"block-scalar":return j0e.resolveBlockScalar({options:{strict:t}},e,r)}}return null}s(k0e,"resolveAsScalar");function M0e(e,t){let{implicitKey:n=!1,indent:r,inFlow:i=!1,offset:o=-1,type:a="PLAIN"}=t,c=rK.stringifyString({type:a,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),l=t.end??[{type:"newline",offset:-1,indent:r,source:`
|
|
194
|
-
`}];switch(c[0]){case"|":case">":{let u=c.indexOf(`
|
|
195
|
-
`),f=c.substring(0,u),p=c.substring(u+1)+`
|
|
196
|
-
`,d=[{type:"block-scalar-header",offset:o,indent:r,source:f}];return iK(d,l)||d.push({type:"newline",offset:-1,indent:r,source:`
|
|
197
|
-
`}),{type:"block-scalar",offset:o,indent:r,props:d,source:p}}case'"':return{type:"double-quoted-scalar",offset:o,indent:r,source:c,end:l};case"'":return{type:"single-quoted-scalar",offset:o,indent:r,source:c,end:l};default:return{type:"scalar",offset:o,indent:r,source:c,end:l}}}s(M0e,"createScalarToken");function V0e(e,t,n={}){let{afterKey:r=!1,implicitKey:i=!1,inFlow:o=!1,type:a}=n,c="indent"in e?e.indent:null;if(r&&typeof c=="number"&&(c+=2),!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{let u=e.props[0];if(u.type!=="block-scalar-header")throw new Error("Invalid block scalar header");a=u.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}let l=rK.stringifyString({type:a,value:t},{implicitKey:i||c===null,indent:c!==null&&c>0?" ".repeat(c):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":q0e(e,l);break;case'"':uw(e,l,"double-quoted-scalar");break;case"'":uw(e,l,"single-quoted-scalar");break;default:uw(e,l,"scalar")}}s(V0e,"setScalarValue");function q0e(e,t){let n=t.indexOf(`
|
|
198
|
-
`),r=t.substring(0,n),i=t.substring(n+1)+`
|
|
199
|
-
`;if(e.type==="block-scalar"){let o=e.props[0];if(o.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o.source=r,e.source=i}else{let{offset:o}=e,a="indent"in e?e.indent:-1,c=[{type:"block-scalar-header",offset:o,indent:a,source:r}];iK(c,"end"in e?e.end:void 0)||c.push({type:"newline",offset:-1,indent:a,source:`
|
|
200
|
-
`});for(let l of Object.keys(e))l!=="type"&&l!=="offset"&&delete e[l];Object.assign(e,{type:"block-scalar",indent:a,props:c,source:i})}}s(q0e,"setBlockScalarValue");function iK(e,t){if(t)for(let n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}s(iK,"addEndtoBlockProps");function uw(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{let r=e.props.slice(1),i=t.length;e.props[0].type==="block-scalar-header"&&(i-=e.props[0].source.length);for(let o of r)o.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{let i={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
|
|
201
|
-
`};delete e.items,Object.assign(e,{type:n,source:t,end:[i]});break}default:{let r="indent"in e?e.indent:-1,i="end"in e&&Array.isArray(e.end)?e.end.filter(o=>o.type==="space"||o.type==="comment"||o.type==="newline"):[];for(let o of Object.keys(e))o!=="type"&&o!=="offset"&&delete e[o];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}s(uw,"setFlowScalarValue");PS.createScalarToken=M0e;PS.resolveAsScalar=k0e;PS.setScalarValue=V0e});var aK=y(oK=>{"use strict";var U0e=s(e=>"type"in e?xS(e):AS(e),"stringify");function xS(e){switch(e.type){case"block-scalar":{let t="";for(let n of e.props)t+=xS(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(let n of e.items)t+=AS(n);return t}case"flow-collection":{let t=e.start.source;for(let n of e.items)t+=AS(n);for(let n of e.end)t+=n.source;return t}case"document":{let t=AS(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let n of e.end)t+=n.source;return t}}}s(xS,"stringifyToken");function AS({start:e,key:t,sep:n,value:r}){let i="";for(let o of e)i+=o.source;if(t&&(i+=xS(t)),n)for(let o of n)i+=o.source;return r&&(i+=xS(r)),i}s(AS,"stringifyItem");oK.stringify=U0e});var fK=y(uK=>{"use strict";var fw=Symbol("break visit"),B0e=Symbol("skip children"),cK=Symbol("remove item");function Zl(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),lK(Object.freeze([]),e,t)}s(Zl,"visit");Zl.BREAK=fw;Zl.SKIP=B0e;Zl.REMOVE=cK;Zl.itemAtPath=(e,t)=>{let n=e;for(let[r,i]of t){let o=n==null?void 0:n[r];if(o&&"items"in o)n=o.items[i];else return}return n};Zl.parentCollection=(e,t)=>{let n=Zl.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n==null?void 0:n[r];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};function lK(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(let i of["key","value"]){let o=t[i];if(o&&"items"in o){for(let a=0;a<o.items.length;++a){let c=lK(Object.freeze(e.concat([[i,a]])),o.items[a],n);if(typeof c=="number")a=c-1;else{if(c===fw)return fw;c===cK&&(o.items.splice(a,1),a-=1)}}typeof r=="function"&&i==="key"&&(r=r(t,e))}}return typeof r=="function"?r(t,e):r}s(lK,"_visit");uK.visit=Zl});var OS=y(Pi=>{"use strict";var pw=sK(),G0e=aK(),H0e=fK(),dw="\uFEFF",hw="",gw="",mw="",W0e=s(e=>!!e&&"items"in e,"isCollection"),K0e=s(e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar"),"isScalar");function J0e(e){switch(e){case dw:return"<BOM>";case hw:return"<DOC>";case gw:return"<FLOW_END>";case mw:return"<SCALAR>";default:return JSON.stringify(e)}}s(J0e,"prettyToken");function Y0e(e){switch(e){case dw:return"byte-order-mark";case hw:return"doc-mode";case gw:return"flow-error-end";case mw:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
202
|
-
`:case`\r
|
|
203
|
-
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}s(Y0e,"tokenType");Pi.createScalarToken=pw.createScalarToken;Pi.resolveAsScalar=pw.resolveAsScalar;Pi.setScalarValue=pw.setScalarValue;Pi.stringify=G0e.stringify;Pi.visit=H0e.visit;Pi.BOM=dw;Pi.DOCUMENT=hw;Pi.FLOW_END=gw;Pi.SCALAR=mw;Pi.isCollection=W0e;Pi.isScalar=K0e;Pi.prettyToken=J0e;Pi.tokenType=Y0e});var Tw=y(dK=>{"use strict";var kg=OS();function Ds(e){switch(e){case void 0:case" ":case`
|
|
204
|
-
`:case"\r":case" ":return!0;default:return!1}}s(Ds,"isEmpty");var pK=new Set("0123456789ABCDEFabcdef"),X0e=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),IS=new Set(",[]{}"),z0e=new Set(` ,[]{}
|
|
205
|
-
\r `),yw=s(e=>!e||z0e.has(e),"isNotAnchorChar"),vw=class vw{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
|
|
206
|
-
`?!0:n==="\r"?this.buffer[t+1]===`
|
|
207
|
-
`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){let i=this.buffer[r+t+1];if(i===`
|
|
208
|
-
`||!i&&!this.atEnd)return t+r+1}return n===`
|
|
209
|
-
`||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){let r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&Ds(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
|
|
210
|
-
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===kg.BOM&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,r=t.indexOf("#");for(;r!==-1;){let o=t[r-1];if(o===" "||o===" "){n=r-1;break}else r=t.indexOf("#",r+1)}for(;;){let o=t[n-1];if(o===" "||o===" ")n-=1;else break}let i=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-i),this.pushNewline(),"stream"}if(this.atLineEnd()){let n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield kg.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let n=this.peek(3);if((n==="---"||n==="...")&&Ds(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Ds(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Ds(n)){let r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(yw),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);let i=this.getLine();if(i===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&i[0]!=="#"||r===0&&(i.startsWith("---")||i.startsWith("..."))&&Ds(i[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield kg.FLOW_END,yield*this.parseLineStart();let o=0;for(;i[o]===",";)o+=yield*this.pushCount(1),o+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(o+=yield*this.pushIndicators(),i[o]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-o),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(yw),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let a=this.charAt(1);if(this.flowKey||Ds(a)||a===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let t=this.charAt(0),n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let o=0;for(;this.buffer[n-1-o]==="\\";)o+=1;if(o%2===0)break;n=this.buffer.indexOf('"',n+1)}let r=this.buffer.substring(0,n),i=r.indexOf(`
|
|
211
|
-
`,this.pos);if(i!==-1){for(;i!==-1;){let o=this.continueScalar(i+1);if(o===-1)break;i=r.indexOf(`
|
|
212
|
-
`,o)}i!==-1&&(n=i-(r[i-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){let n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>Ds(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let o=this.pos;r=this.buffer[o];++o)switch(r){case" ":n+=1;break;case`
|
|
213
|
-
`:t=o,n=0;break;case"\r":{let a=this.buffer[o+1];if(!a&&!this.atEnd)return this.setNext("block-scalar");if(a===`
|
|
214
|
-
`)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let o=this.continueScalar(t+1);if(o===-1)break;t=this.buffer.indexOf(`
|
|
215
|
-
`,o)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let i=t+1;for(r=this.buffer[i];r===" ";)r=this.buffer[++i];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===`
|
|
216
|
-
`;)r=this.buffer[++i];t=i-1}else if(!this.blockScalarKeep)do{let o=t-1,a=this.buffer[o];a==="\r"&&(a=this.buffer[--o]);let c=o;for(;a===" ";)a=this.buffer[--o];if(a===`
|
|
217
|
-
`&&o>=this.pos&&o+1+n>c)t=o;else break}while(!0);return yield kg.SCALAR,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let t=this.flowLevel>0,n=this.pos-1,r=this.pos-1,i;for(;i=this.buffer[++r];)if(i===":"){let o=this.buffer[r+1];if(Ds(o)||t&&IS.has(o))break;n=r}else if(Ds(i)){let o=this.buffer[r+1];if(i==="\r"&&(o===`
|
|
218
|
-
`?(r+=1,i=`
|
|
219
|
-
`,o=this.buffer[r+1]):n=r),o==="#"||t&&IS.has(o))break;if(i===`
|
|
220
|
-
`){let a=this.continueScalar(r+1);if(a===-1)break;r=Math.max(r,a-2)}}else{if(t&&IS.has(i))break;n=r}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield kg.SCALAR,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){let r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(yw))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let t=this.flowLevel>0,n=this.charAt(1);if(Ds(n)||t&&IS.has(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!Ds(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(X0e.has(n))n=this.buffer[++t];else if(n==="%"&&pK.has(this.buffer[t+1])&&pK.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){let t=this.buffer[this.pos];return t===`
|
|
221
|
-
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
|
|
222
|
-
`?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");let i=n-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=n),i}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}};s(vw,"Lexer");var bw=vw;dK.Lexer=bw});var Pw=y(hK=>{"use strict";var Ew=class Ew{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){let o=n+r>>1;this.lineStarts[o]<t?n=o+1:r=o}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};let i=this.lineStarts[n-1];return{line:n,col:t-i+1}}}};s(Ew,"LineCounter");var Sw=Ew;hK.LineCounter=Sw});var Ow=y(vK=>{"use strict";var Q0e=require("process"),gK=OS(),Z0e=Tw();function gc(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}s(gc,"includesToken");function mK(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}s(mK,"findNonEmptyIndex");function bK(e){switch(e==null?void 0:e.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}s(bK,"isFlowToken");function _S(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}s(_S,"getPrevProps");function op(e){var n;if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((n=e[++t])==null?void 0:n.type)==="space";);return e.splice(t,e.length)}s(op,"getFirstKeyStartProps");function yK(e){if(e.start.type==="flow-seq-start")for(let t of e.items)t.sep&&!t.value&&!gc(t.start,"explicit-key-ind")&&!gc(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,bK(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}s(yK,"fixFlowSeqItems");var xw=class xw{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Z0e.Lexer,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,Q0e.env.LOG_TOKENS&&console.log("|",gK.prettyToken(t)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}let n=gK.tokenType(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{let r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let t=this.peek(1);if(this.type==="doc-end"&&(t==null?void 0:t.type)!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){let n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{let r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&yK(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{let i=r.items[r.items.length-1];if(i.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=n;else{Object.assign(i,{key:n,sep:[]}),this.onKeyLine=!i.explicitKey;return}break}case"block-seq":{let i=r.items[r.items.length-1];i.value?r.items.push({start:[],value:n}):i.value=n;break}case"flow-collection":{let i=r.items[r.items.length-1];!i||i.value?r.items.push({start:[],key:n,sep:[]}):i.sep?i.value=n:Object.assign(i,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){let i=n.items[n.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&mK(i.start)===-1&&(n.indent===0||i.start.every(o=>o.type!=="comment"||o.indent<n.indent))&&(r.type==="document"?r.end=i.start:r.items.push({start:i.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{mK(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}let n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){let n=_S(this.peek(2)),r=op(n),i;t.end?(i=t.end,i.push(this.sourceToken),delete t.end):i=[this.sourceToken];let o={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
|
|
223
|
-
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
224
|
-
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){var r;let n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){let i="end"in n.value?n.value.end:void 0,o=Array.isArray(i)?i[i.length-1]:void 0;(o==null?void 0:o.type)==="comment"?i==null||i.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){let i=t.items[t.items.length-2],o=(r=i==null?void 0:i.value)==null?void 0:r.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){let i=!this.onKeyLine&&this.indent===t.indent,o=i&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind",a=[];if(o&&n.sep&&!n.value){let c=[];for(let l=0;l<n.sep.length;++l){let u=n.sep[l];switch(u.type){case"newline":c.push(l);break;case"space":break;case"comment":u.indent>t.indent&&(c.length=0);break;default:c.length=0}}c.length>=2&&(a=n.sep.splice(c[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(a.push(this.sourceToken),t.items.push({start:a}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):o||n.value?(a.push(this.sourceToken),t.items.push({start:a,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(gc(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]});else if(bK(n.key)&&!gc(n.sep,"newline")){let c=op(n.start),l=n.key,u=n.sep;u.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:c,key:l,sep:u}]})}else a.length>0?n.sep=n.sep.concat(a,this.sourceToken):n.sep.push(this.sourceToken);else if(gc(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{let c=op(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:c,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:a,key:null,sep:[this.sourceToken]}):gc(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let c=this.flowScalar(this.type);o||n.value?(t.items.push({start:a,key:c,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(c):(Object.assign(n,{key:c,sep:[]}),this.onKeyLine=!0);return}default:{let c=this.startBlockValue(t);if(c){if(c.type==="block-seq"){if(!n.explicitKey&&n.sep&&!gc(n.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else i&&t.items.push({start:a});this.stack.push(c);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var r;let n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){let i="end"in n.value?n.value.end:void 0,o=Array.isArray(i)?i[i.length-1]:void 0;(o==null?void 0:o.type)==="comment"?i==null||i.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){let i=t.items[t.items.length-2],o=(r=i==null?void 0:i.value)==null?void 0:r.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||gc(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){let i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){let n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while((r==null?void 0:r.type)==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let i=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:i,sep:[]}):n.sep?this.stack.push(i):Object.assign(n,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}let r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{let r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){let i=_S(r),o=op(i);yK(t);let a=t.end.splice(1,t.end.length);a.push(this.sourceToken);let c={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:o,key:t,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=c}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
|
|
225
|
-
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
226
|
-
`,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let n=_S(t),r=op(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let n=_S(t),r=op(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};s(xw,"Parser");var Aw=xw;vK.Parser=Aw});var AK=y(Vg=>{"use strict";var TK=lw(),exe=Ng(),Mg=Lg(),txe=tC(),nxe=kt(),rxe=Pw(),SK=Ow();function EK(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new rxe.LineCounter||null,prettyErrors:t}}s(EK,"parseOptions");function ixe(e,t={}){let{lineCounter:n,prettyErrors:r}=EK(t),i=new SK.Parser(n==null?void 0:n.addNewLine),o=new TK.Composer(t),a=Array.from(o.compose(i.parse(e)));if(r&&n)for(let c of a)c.errors.forEach(Mg.prettifyError(e,n)),c.warnings.forEach(Mg.prettifyError(e,n));return a.length>0?a:Object.assign([],{empty:!0},o.streamInfo())}s(ixe,"parseAllDocuments");function PK(e,t={}){let{lineCounter:n,prettyErrors:r}=EK(t),i=new SK.Parser(n==null?void 0:n.addNewLine),o=new TK.Composer(t),a=null;for(let c of o.compose(i.parse(e),!0,e.length))if(!a)a=c;else if(a.options.logLevel!=="silent"){a.errors.push(new Mg.YAMLParseError(c.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(a.errors.forEach(Mg.prettifyError(e,n)),a.warnings.forEach(Mg.prettifyError(e,n))),a}s(PK,"parseDocument");function sxe(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);let i=PK(e,n);if(!i)return null;if(i.warnings.forEach(o=>txe.warn(i.options.logLevel,o)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}s(sxe,"parse");function oxe(e,t,n){let r=null;if(typeof t=="function"||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n=="string"&&(n=n.length),typeof n=="number"){let i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(e===void 0){let{keepUndefined:i}=n??t??{};if(!i)return}return nxe.isDocument(e)&&!r?e.toString(n):new exe.Document(e,r,n).toString(n)}s(oxe,"stringify");Vg.parse=sxe;Vg.parseAllDocuments=ixe;Vg.parseDocument=PK;Vg.stringify=oxe});var _w=y(Xt=>{"use strict";var axe=lw(),cxe=Ng(),lxe=MC(),Iw=Lg(),uxe=hg(),mc=kt(),fxe=fc(),pxe=Wn(),dxe=dc(),hxe=hc(),gxe=OS(),mxe=Tw(),yxe=Pw(),bxe=Ow(),CS=AK(),xK=ug();Xt.Composer=axe.Composer;Xt.Document=cxe.Document;Xt.Schema=lxe.Schema;Xt.YAMLError=Iw.YAMLError;Xt.YAMLParseError=Iw.YAMLParseError;Xt.YAMLWarning=Iw.YAMLWarning;Xt.Alias=uxe.Alias;Xt.isAlias=mc.isAlias;Xt.isCollection=mc.isCollection;Xt.isDocument=mc.isDocument;Xt.isMap=mc.isMap;Xt.isNode=mc.isNode;Xt.isPair=mc.isPair;Xt.isScalar=mc.isScalar;Xt.isSeq=mc.isSeq;Xt.Pair=fxe.Pair;Xt.Scalar=pxe.Scalar;Xt.YAMLMap=dxe.YAMLMap;Xt.YAMLSeq=hxe.YAMLSeq;Xt.CST=gxe;Xt.Lexer=mxe.Lexer;Xt.LineCounter=yxe.LineCounter;Xt.Parser=bxe.Parser;Xt.parse=CS.parse;Xt.parseAllDocuments=CS.parseAllDocuments;Xt.parseDocument=CS.parseDocument;Xt.stringify=CS.stringify;Xt.visit=xK.visit;Xt.visitAsync=xK.visitAsync});var IK=y((Zpt,OK)=>{function vxe(){this.__data__=[],this.size=0}s(vxe,"listCacheClear");OK.exports=vxe});var qg=y((tdt,_K)=>{function Txe(e,t){return e===t||e!==e&&t!==t}s(Txe,"eq");_K.exports=Txe});var Ug=y((rdt,CK)=>{var Sxe=qg();function Exe(e,t){for(var n=e.length;n--;)if(Sxe(e[n][0],t))return n;return-1}s(Exe,"assocIndexOf");CK.exports=Exe});var NK=y((sdt,wK)=>{var Pxe=Ug(),Axe=Array.prototype,xxe=Axe.splice;function Oxe(e){var t=this.__data__,n=Pxe(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():xxe.call(t,n,1),--this.size,!0}s(Oxe,"listCacheDelete");wK.exports=Oxe});var FK=y((adt,RK)=>{var Ixe=Ug();function _xe(e){var t=this.__data__,n=Ixe(t,e);return n<0?void 0:t[n][1]}s(_xe,"listCacheGet");RK.exports=_xe});var jK=y((ldt,LK)=>{var Cxe=Ug();function wxe(e){return Cxe(this.__data__,e)>-1}s(wxe,"listCacheHas");LK.exports=wxe});var $K=y((fdt,DK)=>{var Nxe=Ug();function Rxe(e,t){var n=this.__data__,r=Nxe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}s(Rxe,"listCacheSet");DK.exports=Rxe});var Bg=y((ddt,kK)=>{var Fxe=IK(),Lxe=NK(),jxe=FK(),Dxe=jK(),$xe=$K();function ap(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s(ap,"ListCache");ap.prototype.clear=Fxe;ap.prototype.delete=Lxe;ap.prototype.get=jxe;ap.prototype.has=Dxe;ap.prototype.set=$xe;kK.exports=ap});var VK=y((gdt,MK)=>{var kxe=Bg();function Mxe(){this.__data__=new kxe,this.size=0}s(Mxe,"stackClear");MK.exports=Mxe});var UK=y((ydt,qK)=>{function Vxe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}s(Vxe,"stackDelete");qK.exports=Vxe});var GK=y((vdt,BK)=>{function qxe(e){return this.__data__.get(e)}s(qxe,"stackGet");BK.exports=qxe});var WK=y((Sdt,HK)=>{function Uxe(e){return this.__data__.has(e)}s(Uxe,"stackHas");HK.exports=Uxe});var Cw=y((Pdt,KK)=>{var Bxe=typeof global=="object"&&global&&global.Object===Object&&global;KK.exports=Bxe});var eu=y((Adt,JK)=>{var Gxe=Cw(),Hxe=typeof self=="object"&&self&&self.Object===Object&&self,Wxe=Gxe||Hxe||Function("return this")();JK.exports=Wxe});var ww=y((xdt,YK)=>{var Kxe=eu(),Jxe=Kxe.Symbol;YK.exports=Jxe});var ZK=y((Odt,QK)=>{var XK=ww(),zK=Object.prototype,Yxe=zK.hasOwnProperty,Xxe=zK.toString,Gg=XK?XK.toStringTag:void 0;function zxe(e){var t=Yxe.call(e,Gg),n=e[Gg];try{e[Gg]=void 0;var r=!0}catch{}var i=Xxe.call(e);return r&&(t?e[Gg]=n:delete e[Gg]),i}s(zxe,"getRawTag");QK.exports=zxe});var t4=y((_dt,e4)=>{var Qxe=Object.prototype,Zxe=Qxe.toString;function eOe(e){return Zxe.call(e)}s(eOe,"objectToString");e4.exports=eOe});var Hg=y((wdt,i4)=>{var n4=ww(),tOe=ZK(),nOe=t4(),rOe="[object Null]",iOe="[object Undefined]",r4=n4?n4.toStringTag:void 0;function sOe(e){return e==null?e===void 0?iOe:rOe:r4&&r4 in Object(e)?tOe(e):nOe(e)}s(sOe,"baseGetTag");i4.exports=sOe});var yc=y((Rdt,s4)=>{function oOe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}s(oOe,"isObject");s4.exports=oOe});var wS=y((Ldt,o4)=>{var aOe=Hg(),cOe=yc(),lOe="[object AsyncFunction]",uOe="[object Function]",fOe="[object GeneratorFunction]",pOe="[object Proxy]";function dOe(e){if(!cOe(e))return!1;var t=aOe(e);return t==uOe||t==fOe||t==lOe||t==pOe}s(dOe,"isFunction");o4.exports=dOe});var c4=y((Ddt,a4)=>{var hOe=eu(),gOe=hOe["__core-js_shared__"];a4.exports=gOe});var f4=y(($dt,u4)=>{var Nw=c4(),l4=(function(){var e=/[^.]+$/.exec(Nw&&Nw.keys&&Nw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function mOe(e){return!!l4&&l4 in e}s(mOe,"isMasked");u4.exports=mOe});var d4=y((Mdt,p4)=>{var yOe=Function.prototype,bOe=yOe.toString;function vOe(e){if(e!=null){try{return bOe.call(e)}catch{}try{return e+""}catch{}}return""}s(vOe,"toSource");p4.exports=vOe});var g4=y((qdt,h4)=>{var TOe=wS(),SOe=f4(),EOe=yc(),POe=d4(),AOe=/[\\^$.*+?()[\]{}|]/g,xOe=/^\[object .+?Constructor\]$/,OOe=Function.prototype,IOe=Object.prototype,_Oe=OOe.toString,COe=IOe.hasOwnProperty,wOe=RegExp("^"+_Oe.call(COe).replace(AOe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function NOe(e){if(!EOe(e)||SOe(e))return!1;var t=TOe(e)?wOe:xOe;return t.test(POe(e))}s(NOe,"baseIsNative");h4.exports=NOe});var y4=y((Bdt,m4)=>{function ROe(e,t){return e==null?void 0:e[t]}s(ROe,"getValue");m4.exports=ROe});var NS=y((Hdt,b4)=>{var FOe=g4(),LOe=y4();function jOe(e,t){var n=LOe(e,t);return FOe(n)?n:void 0}s(jOe,"getNative");b4.exports=jOe});var Rw=y((Kdt,v4)=>{var DOe=NS(),$Oe=eu(),kOe=DOe($Oe,"Map");v4.exports=kOe});var Wg=y((Jdt,T4)=>{var MOe=NS(),VOe=MOe(Object,"create");T4.exports=VOe});var P4=y((Ydt,E4)=>{var S4=Wg();function qOe(){this.__data__=S4?S4(null):{},this.size=0}s(qOe,"hashClear");E4.exports=qOe});var x4=y((zdt,A4)=>{function UOe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}s(UOe,"hashDelete");A4.exports=UOe});var I4=y((Zdt,O4)=>{var BOe=Wg(),GOe="__lodash_hash_undefined__",HOe=Object.prototype,WOe=HOe.hasOwnProperty;function KOe(e){var t=this.__data__;if(BOe){var n=t[e];return n===GOe?void 0:n}return WOe.call(t,e)?t[e]:void 0}s(KOe,"hashGet");O4.exports=KOe});var C4=y((tht,_4)=>{var JOe=Wg(),YOe=Object.prototype,XOe=YOe.hasOwnProperty;function zOe(e){var t=this.__data__;return JOe?t[e]!==void 0:XOe.call(t,e)}s(zOe,"hashHas");_4.exports=zOe});var N4=y((rht,w4)=>{var QOe=Wg(),ZOe="__lodash_hash_undefined__";function eIe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=QOe&&t===void 0?ZOe:t,this}s(eIe,"hashSet");w4.exports=eIe});var F4=y((sht,R4)=>{var tIe=P4(),nIe=x4(),rIe=I4(),iIe=C4(),sIe=N4();function cp(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s(cp,"Hash");cp.prototype.clear=tIe;cp.prototype.delete=nIe;cp.prototype.get=rIe;cp.prototype.has=iIe;cp.prototype.set=sIe;R4.exports=cp});var D4=y((aht,j4)=>{var L4=F4(),oIe=Bg(),aIe=Rw();function cIe(){this.size=0,this.__data__={hash:new L4,map:new(aIe||oIe),string:new L4}}s(cIe,"mapCacheClear");j4.exports=cIe});var k4=y((lht,$4)=>{function lIe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}s(lIe,"isKeyable");$4.exports=lIe});var Kg=y((fht,M4)=>{var uIe=k4();function fIe(e,t){var n=e.__data__;return uIe(t)?n[typeof t=="string"?"string":"hash"]:n.map}s(fIe,"getMapData");M4.exports=fIe});var q4=y((dht,V4)=>{var pIe=Kg();function dIe(e){var t=pIe(this,e).delete(e);return this.size-=t?1:0,t}s(dIe,"mapCacheDelete");V4.exports=dIe});var B4=y((ght,U4)=>{var hIe=Kg();function gIe(e){return hIe(this,e).get(e)}s(gIe,"mapCacheGet");U4.exports=gIe});var H4=y((yht,G4)=>{var mIe=Kg();function yIe(e){return mIe(this,e).has(e)}s(yIe,"mapCacheHas");G4.exports=yIe});var K4=y((vht,W4)=>{var bIe=Kg();function vIe(e,t){var n=bIe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}s(vIe,"mapCacheSet");W4.exports=vIe});var Y4=y((Sht,J4)=>{var TIe=D4(),SIe=q4(),EIe=B4(),PIe=H4(),AIe=K4();function lp(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s(lp,"MapCache");lp.prototype.clear=TIe;lp.prototype.delete=SIe;lp.prototype.get=EIe;lp.prototype.has=PIe;lp.prototype.set=AIe;J4.exports=lp});var z4=y((Pht,X4)=>{var xIe=Bg(),OIe=Rw(),IIe=Y4(),_Ie=200;function CIe(e,t){var n=this.__data__;if(n instanceof xIe){var r=n.__data__;if(!OIe||r.length<_Ie-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new IIe(r)}return n.set(e,t),this.size=n.size,this}s(CIe,"stackSet");X4.exports=CIe});var Z4=y((xht,Q4)=>{var wIe=Bg(),NIe=VK(),RIe=UK(),FIe=GK(),LIe=WK(),jIe=z4();function up(e){var t=this.__data__=new wIe(e);this.size=t.size}s(up,"Stack");up.prototype.clear=NIe;up.prototype.delete=RIe;up.prototype.get=FIe;up.prototype.has=LIe;up.prototype.set=jIe;Q4.exports=up});var Fw=y((Iht,eJ)=>{var DIe=NS(),$Ie=(function(){try{var e=DIe(Object,"defineProperty");return e({},"",{}),e}catch{}})();eJ.exports=$Ie});var RS=y((_ht,nJ)=>{var tJ=Fw();function kIe(e,t,n){t=="__proto__"&&tJ?tJ(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}s(kIe,"baseAssignValue");nJ.exports=kIe});var Lw=y((wht,rJ)=>{var MIe=RS(),VIe=qg();function qIe(e,t,n){(n!==void 0&&!VIe(e[t],n)||n===void 0&&!(t in e))&&MIe(e,t,n)}s(qIe,"assignMergeValue");rJ.exports=qIe});var sJ=y((Rht,iJ)=>{function UIe(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),c=a.length;c--;){var l=a[e?c:++i];if(n(o[l],l,o)===!1)break}return t}}s(UIe,"createBaseFor");iJ.exports=UIe});var aJ=y((Lht,oJ)=>{var BIe=sJ(),GIe=BIe();oJ.exports=GIe});var pJ=y((Jg,fp)=>{var HIe=eu(),fJ=typeof Jg=="object"&&Jg&&!Jg.nodeType&&Jg,cJ=fJ&&typeof fp=="object"&&fp&&!fp.nodeType&&fp,WIe=cJ&&cJ.exports===fJ,lJ=WIe?HIe.Buffer:void 0,uJ=lJ?lJ.allocUnsafe:void 0;function KIe(e,t){if(t)return e.slice();var n=e.length,r=uJ?uJ(n):new e.constructor(n);return e.copy(r),r}s(KIe,"cloneBuffer");fp.exports=KIe});var hJ=y((Dht,dJ)=>{var JIe=eu(),YIe=JIe.Uint8Array;dJ.exports=YIe});var yJ=y(($ht,mJ)=>{var gJ=hJ();function XIe(e){var t=new e.constructor(e.byteLength);return new gJ(t).set(new gJ(e)),t}s(XIe,"cloneArrayBuffer");mJ.exports=XIe});var vJ=y((Mht,bJ)=>{var zIe=yJ();function QIe(e,t){var n=t?zIe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}s(QIe,"cloneTypedArray");bJ.exports=QIe});var SJ=y((qht,TJ)=>{function ZIe(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}s(ZIe,"copyArray");TJ.exports=ZIe});var AJ=y((Bht,PJ)=>{var e_e=yc(),EJ=Object.create,t_e=(function(){function e(){}return s(e,"object"),function(t){if(!e_e(t))return{};if(EJ)return EJ(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();PJ.exports=t_e});var OJ=y((Hht,xJ)=>{function n_e(e,t){return function(n){return e(t(n))}}s(n_e,"overArg");xJ.exports=n_e});var jw=y((Kht,IJ)=>{var r_e=OJ(),i_e=r_e(Object.getPrototypeOf,Object);IJ.exports=i_e});var Dw=y((Jht,_J)=>{var s_e=Object.prototype;function o_e(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||s_e;return e===n}s(o_e,"isPrototype");_J.exports=o_e});var wJ=y((Xht,CJ)=>{var a_e=AJ(),c_e=jw(),l_e=Dw();function u_e(e){return typeof e.constructor=="function"&&!l_e(e)?a_e(c_e(e)):{}}s(u_e,"initCloneObject");CJ.exports=u_e});var pp=y((Qht,NJ)=>{function f_e(e){return e!=null&&typeof e=="object"}s(f_e,"isObjectLike");NJ.exports=f_e});var FJ=y((egt,RJ)=>{var p_e=Hg(),d_e=pp(),h_e="[object Arguments]";function g_e(e){return d_e(e)&&p_e(e)==h_e}s(g_e,"baseIsArguments");RJ.exports=g_e});var $w=y((ngt,DJ)=>{var LJ=FJ(),m_e=pp(),jJ=Object.prototype,y_e=jJ.hasOwnProperty,b_e=jJ.propertyIsEnumerable,v_e=LJ((function(){return arguments})())?LJ:function(e){return m_e(e)&&y_e.call(e,"callee")&&!b_e.call(e,"callee")};DJ.exports=v_e});var kw=y((rgt,$J)=>{var T_e=Array.isArray;$J.exports=T_e});var Mw=y((igt,kJ)=>{var S_e=9007199254740991;function E_e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=S_e}s(E_e,"isLength");kJ.exports=E_e});var FS=y((ogt,MJ)=>{var P_e=wS(),A_e=Mw();function x_e(e){return e!=null&&A_e(e.length)&&!P_e(e)}s(x_e,"isArrayLike");MJ.exports=x_e});var qJ=y((cgt,VJ)=>{var O_e=FS(),I_e=pp();function __e(e){return I_e(e)&&O_e(e)}s(__e,"isArrayLikeObject");VJ.exports=__e});var BJ=y((ugt,UJ)=>{function C_e(){return!1}s(C_e,"stubFalse");UJ.exports=C_e});var Vw=y((Yg,dp)=>{var w_e=eu(),N_e=BJ(),WJ=typeof Yg=="object"&&Yg&&!Yg.nodeType&&Yg,GJ=WJ&&typeof dp=="object"&&dp&&!dp.nodeType&&dp,R_e=GJ&&GJ.exports===WJ,HJ=R_e?w_e.Buffer:void 0,F_e=HJ?HJ.isBuffer:void 0,L_e=F_e||N_e;dp.exports=L_e});var YJ=y((pgt,JJ)=>{var j_e=Hg(),D_e=jw(),$_e=pp(),k_e="[object Object]",M_e=Function.prototype,V_e=Object.prototype,KJ=M_e.toString,q_e=V_e.hasOwnProperty,U_e=KJ.call(Object);function B_e(e){if(!$_e(e)||j_e(e)!=k_e)return!1;var t=D_e(e);if(t===null)return!0;var n=q_e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&KJ.call(n)==U_e}s(B_e,"isPlainObject");JJ.exports=B_e});var zJ=y((hgt,XJ)=>{var G_e=Hg(),H_e=Mw(),W_e=pp(),K_e="[object Arguments]",J_e="[object Array]",Y_e="[object Boolean]",X_e="[object Date]",z_e="[object Error]",Q_e="[object Function]",Z_e="[object Map]",eCe="[object Number]",tCe="[object Object]",nCe="[object RegExp]",rCe="[object Set]",iCe="[object String]",sCe="[object WeakMap]",oCe="[object ArrayBuffer]",aCe="[object DataView]",cCe="[object Float32Array]",lCe="[object Float64Array]",uCe="[object Int8Array]",fCe="[object Int16Array]",pCe="[object Int32Array]",dCe="[object Uint8Array]",hCe="[object Uint8ClampedArray]",gCe="[object Uint16Array]",mCe="[object Uint32Array]",Tn={};Tn[cCe]=Tn[lCe]=Tn[uCe]=Tn[fCe]=Tn[pCe]=Tn[dCe]=Tn[hCe]=Tn[gCe]=Tn[mCe]=!0;Tn[K_e]=Tn[J_e]=Tn[oCe]=Tn[Y_e]=Tn[aCe]=Tn[X_e]=Tn[z_e]=Tn[Q_e]=Tn[Z_e]=Tn[eCe]=Tn[tCe]=Tn[nCe]=Tn[rCe]=Tn[iCe]=Tn[sCe]=!1;function yCe(e){return W_e(e)&&H_e(e.length)&&!!Tn[G_e(e)]}s(yCe,"baseIsTypedArray");XJ.exports=yCe});var ZJ=y((mgt,QJ)=>{function bCe(e){return function(t){return e(t)}}s(bCe,"baseUnary");QJ.exports=bCe});var t3=y((Xg,hp)=>{var vCe=Cw(),e3=typeof Xg=="object"&&Xg&&!Xg.nodeType&&Xg,zg=e3&&typeof hp=="object"&&hp&&!hp.nodeType&&hp,TCe=zg&&zg.exports===e3,qw=TCe&&vCe.process,SCe=(function(){try{var e=zg&&zg.require&&zg.require("util").types;return e||qw&&qw.binding&&qw.binding("util")}catch{}})();hp.exports=SCe});var Uw=y((bgt,i3)=>{var ECe=zJ(),PCe=ZJ(),n3=t3(),r3=n3&&n3.isTypedArray,ACe=r3?PCe(r3):ECe;i3.exports=ACe});var Bw=y((vgt,s3)=>{function xCe(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}s(xCe,"safeGet");s3.exports=xCe});var a3=y((Sgt,o3)=>{var OCe=RS(),ICe=qg(),_Ce=Object.prototype,CCe=_Ce.hasOwnProperty;function wCe(e,t,n){var r=e[t];(!(CCe.call(e,t)&&ICe(r,n))||n===void 0&&!(t in e))&&OCe(e,t,n)}s(wCe,"assignValue");o3.exports=wCe});var l3=y((Pgt,c3)=>{var NCe=a3(),RCe=RS();function FCe(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var c=t[o],l=r?r(n[c],e[c],c,n,e):void 0;l===void 0&&(l=e[c]),i?RCe(n,c,l):NCe(n,c,l)}return n}s(FCe,"copyObject");c3.exports=FCe});var f3=y((xgt,u3)=>{function LCe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}s(LCe,"baseTimes");u3.exports=LCe});var Gw=y((Igt,p3)=>{var jCe=9007199254740991,DCe=/^(?:0|[1-9]\d*)$/;function $Ce(e,t){var n=typeof e;return t=t??jCe,!!t&&(n=="number"||n!="symbol"&&DCe.test(e))&&e>-1&&e%1==0&&e<t}s($Ce,"isIndex");p3.exports=$Ce});var h3=y((Cgt,d3)=>{var kCe=f3(),MCe=$w(),VCe=kw(),qCe=Vw(),UCe=Gw(),BCe=Uw(),GCe=Object.prototype,HCe=GCe.hasOwnProperty;function WCe(e,t){var n=VCe(e),r=!n&&MCe(e),i=!n&&!r&&qCe(e),o=!n&&!r&&!i&&BCe(e),a=n||r||i||o,c=a?kCe(e.length,String):[],l=c.length;for(var u in e)(t||HCe.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||UCe(u,l)))&&c.push(u);return c}s(WCe,"arrayLikeKeys");d3.exports=WCe});var m3=y((Ngt,g3)=>{function KCe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}s(KCe,"nativeKeysIn");g3.exports=KCe});var b3=y((Fgt,y3)=>{var JCe=yc(),YCe=Dw(),XCe=m3(),zCe=Object.prototype,QCe=zCe.hasOwnProperty;function ZCe(e){if(!JCe(e))return XCe(e);var t=YCe(e),n=[];for(var r in e)r=="constructor"&&(t||!QCe.call(e,r))||n.push(r);return n}s(ZCe,"baseKeysIn");y3.exports=ZCe});var Hw=y((jgt,v3)=>{var ewe=h3(),twe=b3(),nwe=FS();function rwe(e){return nwe(e)?ewe(e,!0):twe(e)}s(rwe,"keysIn");v3.exports=rwe});var S3=y(($gt,T3)=>{var iwe=l3(),swe=Hw();function owe(e){return iwe(e,swe(e))}s(owe,"toPlainObject");T3.exports=owe});var I3=y((Mgt,O3)=>{var E3=Lw(),awe=pJ(),cwe=vJ(),lwe=SJ(),uwe=wJ(),P3=$w(),A3=kw(),fwe=qJ(),pwe=Vw(),dwe=wS(),hwe=yc(),gwe=YJ(),mwe=Uw(),x3=Bw(),ywe=S3();function bwe(e,t,n,r,i,o,a){var c=x3(e,n),l=x3(t,n),u=a.get(l);if(u){E3(e,n,u);return}var f=o?o(c,l,n+"",e,t,a):void 0,p=f===void 0;if(p){var d=A3(l),h=!d&&pwe(l),m=!d&&!h&&mwe(l);f=l,d||h||m?A3(c)?f=c:fwe(c)?f=lwe(c):h?(p=!1,f=awe(l,!0)):m?(p=!1,f=cwe(l,!0)):f=[]:gwe(l)||P3(l)?(f=c,P3(c)?f=ywe(c):(!hwe(c)||dwe(c))&&(f=uwe(l))):p=!1}p&&(a.set(l,f),i(f,l,r,o,a),a.delete(l)),E3(e,n,f)}s(bwe,"baseMergeDeep");O3.exports=bwe});var Ww=y((qgt,C3)=>{var vwe=Z4(),Twe=Lw(),Swe=aJ(),Ewe=I3(),Pwe=yc(),Awe=Hw(),xwe=Bw();function _3(e,t,n,r,i){e!==t&&Swe(t,function(o,a){if(i||(i=new vwe),Pwe(o))Ewe(e,t,a,n,_3,r,i);else{var c=r?r(xwe(e,a),o,a+"",e,t,i):void 0;c===void 0&&(c=o),Twe(e,a,c)}},Awe)}s(_3,"baseMerge");C3.exports=_3});var Kw=y((Bgt,w3)=>{function Owe(e){return e}s(Owe,"identity");w3.exports=Owe});var R3=y((Hgt,N3)=>{function Iwe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}s(Iwe,"apply");N3.exports=Iwe});var j3=y((Kgt,L3)=>{var _we=R3(),F3=Math.max;function Cwe(e,t,n){return t=F3(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=F3(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=r[i];return c[t]=n(a),_we(e,this,c)}}s(Cwe,"overRest");L3.exports=Cwe});var $3=y((Ygt,D3)=>{function wwe(e){return function(){return e}}s(wwe,"constant");D3.exports=wwe});var V3=y((zgt,M3)=>{var Nwe=$3(),k3=Fw(),Rwe=Kw(),Fwe=k3?function(e,t){return k3(e,"toString",{configurable:!0,enumerable:!1,value:Nwe(t),writable:!0})}:Rwe;M3.exports=Fwe});var U3=y((Qgt,q3)=>{var Lwe=800,jwe=16,Dwe=Date.now;function $we(e){var t=0,n=0;return function(){var r=Dwe(),i=jwe-(r-n);if(n=r,i>0){if(++t>=Lwe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}s($we,"shortOut");q3.exports=$we});var G3=y((emt,B3)=>{var kwe=V3(),Mwe=U3(),Vwe=Mwe(kwe);B3.exports=Vwe});var W3=y((tmt,H3)=>{var qwe=Kw(),Uwe=j3(),Bwe=G3();function Gwe(e,t){return Bwe(Uwe(e,t,qwe),e+"")}s(Gwe,"baseRest");H3.exports=Gwe});var J3=y((rmt,K3)=>{var Hwe=qg(),Wwe=FS(),Kwe=Gw(),Jwe=yc();function Ywe(e,t,n){if(!Jwe(n))return!1;var r=typeof t;return(r=="number"?Wwe(n)&&Kwe(t,n.length):r=="string"&&t in n)?Hwe(n[t],e):!1}s(Ywe,"isIterateeCall");K3.exports=Ywe});var Jw=y((smt,Y3)=>{var Xwe=W3(),zwe=J3();function Qwe(e){return Xwe(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&zwe(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var c=n[r];c&&e(t,c,r,o)}return t})}s(Qwe,"createAssigner");Y3.exports=Qwe});var z3=y((amt,X3)=>{var Zwe=Ww(),eNe=Jw(),tNe=eNe(function(e,t,n){Zwe(e,t,n)});X3.exports=tNe});var Q3=y(LS=>{"use strict";Object.defineProperty(LS,"__esModule",{value:!0});LS.YAMLError=void 0;var Xw=class Xw extends Error{code;constructor(t,n){super(t),this.code=n,this.name=this.constructor.name}};s(Xw,"YAMLError");var Yw=Xw;LS.YAMLError=Yw});var zw=y(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.YAMLError=bc.errorTemplate=bc.errorCode=void 0;var nNe=Q3();Object.defineProperty(bc,"YAMLError",{enumerable:!0,get:s(function(){return nNe.YAMLError},"get")});bc.errorCode=Object.freeze({yamlParsing:"yamlParsing",nodeNotFound:"nodeNotFound",nodeNotFoundMatching:"nodeNotFoundMatching",nodeNotAMap:"nodeNotAMap",propertyNotFound:"propertyNotFound",pathCannotBeEmpty:"pathCannotBeEmpty",pathDoesNotExist:"pathDoesNotExist",seqDoesNotExist:"seqDoesNotExist",tryingToAppendToNonSequence:"tryingToAppendToNonSequence",startNodeMustBeCollection:"startNodeMustBeCollection",scalarValuesDoNotHaveProperties:"scalarValuesDoNotHaveProperties"});bc.errorTemplate=Object.freeze({yamlParsing:"Error parsing YAML document",nodeNotFound:"Node not found at path: [{{- path }}]",nodeNotFoundMatching:"Node not found at path: [{{- path }}, matching [{{- key }} = {{- value }}]",nodeNotAMap:"Node path: [{{- path }}, matching [{{- key }} = {{- value }}], is not a map",propertyNotFound:"Node not found at path: [{{- path }}]",pathCannotBeEmpty:"Path cannot be empty",pathDoesNotExist:"Parent node does not exist at: [{{- path }}]",seqDoesNotExist:"Sequence does not exist at: [{{- path }}]",tryingToAppendToNonSequence:"Cannot append to non-sequence at: [{{- path }}]",startNodeMustBeCollection:"Starting node must be an array or an object",scalarValuesDoNotHaveProperties:"Scalar values do not have properties"})});var Z3=y(Qw=>{"use strict";Object.defineProperty(Qw,"__esModule",{value:!0});Qw.interpolate=rNe;function rNe(e,t){try{return t?e==null?void 0:e.replace(/{{-?([^{}]*)}}/g,(n,r)=>{var o;let i=r==null?void 0:r.trim();return((o=t[i])==null?void 0:o.toString())||n}):e}catch{return""}}s(rNe,"interpolate")});var eY=y(Gi=>{"use strict";var iNe=Gi&&Gi.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:s(function(){return t[n]},"get")}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),sNe=Gi&&Gi.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),oNe=Gi&&Gi.__importStar||(function(){var e=s(function(t){return e=Object.getOwnPropertyNames||function(n){var r=[];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[r.length]=i);return r},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),i=0;i<r.length;i++)r[i]!=="default"&&iNe(n,t,r[i]);return sNe(n,t),n}})(),aNe=Gi&&Gi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gi,"__esModule",{value:!0});Gi.YamlDocument=void 0;Gi.yamlDocumentToYamlString=lNe;var Zo=oNe(_w()),cNe=aNe(z3()),pt=zw(),$s=Z3();function lNe(e){return Zo.default.stringify(e)}s(lNe,"yamlDocumentToYamlString");var jS=class jS{documents;static async newInstance(t){return new jS(t)}constructor(t){this.documents=Zo.default.parseAllDocuments(t),this.documents.length===0&&this.documents.push(Zo.default.parseDocument(t));let n=this.documents.filter(r=>r.errors.length>0);if(n.length>0)throw new pt.YAMLError(pt.errorTemplate.yamlParsing+`
|
|
227
|
-
`+n.map(r=>r.errors.map(i=>i.message).join("")),pt.errorCode.yamlParsing)}toString(){return this.documents.map(t=>t.toString({singleQuote:!0})).join("")}addDocumentComment({comment:t,location:n="beginning"}){switch(n){case"beginning":this.documents[0].commentBefore=t;break;case"end":this.documents[0].comment=t;break;default:break}return this}createNode({value:t,comments:n}){let r=this.documents[0].createNode(t);if(n!=null&&n.length)for(let i of n){let o=r.items.findIndex(a=>a.key.value===i.key);r.items[o].value.comment=i.comment}return r}setIn({path:t,value:n,createIntermediateKeys:r,comment:i}){let o=this.toPathArray(t);if(o.length>1){let c=o.slice(0,-1);if(!this.documents[0].getIn(c)&&!r)throw new pt.YAMLError((0,$s.interpolate)(pt.errorTemplate.pathDoesNotExist,{path:c}),pt.errorCode.pathDoesNotExist)}let a=this.documents[0].createNode(n);return i&&(a.commentBefore=i),this.documents[0].setIn(o,a),this}appendTo({path:t,value:n,createIntermediateKeys:r=!0,nodeComment:i,comments:o}){let a=this.toPathArray(t),c=this.documents[0].clone(),l=c.getIn(a);if(l){if(!(0,Zo.isSeq)(l))throw new pt.YAMLError((0,$s.interpolate)(pt.errorTemplate.tryingToAppendToNonSequence,{path:t}),pt.errorCode.tryingToAppendToNonSequence)}else{if(!r)throw new pt.YAMLError((0,$s.interpolate)(pt.errorTemplate.seqDoesNotExist,{path:t}),pt.errorCode.seqDoesNotExist);l=new Zo.YAMLSeq,c.setIn(a,l)}let u=c.createNode(n);if(i&&(u.commentBefore=i),l.items.push(u),o&&o.length>0){if(typeof n!="object")throw new pt.YAMLError(pt.errorTemplate.scalarValuesDoNotHaveProperties,pt.errorCode.scalarValuesDoNotHaveProperties);let f=l.items.length-1;for(let p of o){let d=this.toPathArray(p.path),h=c.getIn([...a,f,...d],!0);if(!h)throw new pt.YAMLError((0,$s.interpolate)(pt.errorTemplate.propertyNotFound,{path:p.path}),pt.errorCode.propertyNotFound);h.comment=p.comment}}return this.documents[0]=c,this}updateAt({path:t,matcher:n,value:r,mode:i="merge"}){let o=this.toPathArray(t),a=this.documents[0].getIn(o);if(!a)throw new pt.YAMLError((0,$s.interpolate)(pt.errorTemplate.seqDoesNotExist,{path:t}),pt.errorCode.seqDoesNotExist);let c=a.items.find(f=>f.toJSON()[n.key]===n.value);if(!c)throw new pt.YAMLError((0,$s.interpolate)(pt.errorTemplate.nodeNotFoundMatching,{path:t,key:n.key,value:n.value}),pt.errorCode.nodeNotFoundMatching);let l=i==="merge"?(0,cNe.default)(c.toJSON(),r):r,u=this.documents[0].createNode(l);return a.items.splice(a.items.indexOf(c),1,u),this}delete(t){return this.documents[0].delete(t)}deleteAt({path:t,matcher:n}){let r=this.toPathArray(t),i=this.documents[0].getIn(r);if(!(i!=null&&i.items))throw new pt.YAMLError((0,$s.interpolate)(pt.errorTemplate.seqDoesNotExist,{path:t}),pt.errorCode.seqDoesNotExist);if(!i.items.find((a,c)=>a.toJSON()[n.key]===n.value?(i.items.splice(c,1),!0):!1))throw new pt.YAMLError((0,$s.interpolate)(pt.errorTemplate.propertyNotFound,{path:t}),pt.errorCode.propertyNotFound);return this}getNode({start:t,path:n}){if(t&&!((0,Zo.isSeq)(t)||(0,Zo.isMap)(t)))throw new pt.YAMLError(pt.errorTemplate.startNodeMustBeCollection,pt.errorCode.startNodeMustBeCollection);let r=this.toPathArray(n),i=t||this.documents[0],o=i==null?void 0:i.getIn(r);if(o)return o;throw new pt.YAMLError((0,$s.interpolate)(pt.errorTemplate.nodeNotFound,{path:n}),pt.errorCode.nodeNotFound)}getSequence({start:t,path:n}){let r=this.getNode({start:t,path:n});if((0,Zo.isSeq)(r))return r;throw new pt.YAMLError((0,$s.interpolate)(pt.errorTemplate.seqDoesNotExist,{path:n}),pt.errorCode.seqDoesNotExist)}getMap({start:t,path:n}){let r=this.getNode({start:t,path:n});if((0,Zo.isMap)(r))return r;throw new pt.YAMLError((0,$s.interpolate)(pt.errorTemplate.nodeNotAMap,{path:n}),pt.errorCode.nodeNotAMap)}findItem(t,n){let r=s(i=>i!==void 0&&typeof i.toJSON=="function"&&i.toJSON.call(i)||{},"toJson");return t.items.find(i=>n(r(i)))}toPathArray(t){let n=t==null?void 0:t.toString().split(".").filter(r=>r!=="").map(r=>Number.isNaN(Number(r))?r:Number(r));if(!n||n.length===0)throw new pt.YAMLError(pt.errorTemplate.pathCannotBeEmpty,pt.errorCode.pathCannotBeEmpty);return n}};s(jS,"YamlDocument");var Zw=jS;Gi.YamlDocument=Zw});var eN=y(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.YAMLError=Ai.errorCode=Ai.YAMLMap=Ai.YAMLSeq=Ai.yamlDocumentToYamlString=Ai.YamlDocument=void 0;var tY=eY();Object.defineProperty(Ai,"YamlDocument",{enumerable:!0,get:s(function(){return tY.YamlDocument},"get")});Object.defineProperty(Ai,"yamlDocumentToYamlString",{enumerable:!0,get:s(function(){return tY.yamlDocumentToYamlString},"get")});var nY=_w();Object.defineProperty(Ai,"YAMLSeq",{enumerable:!0,get:s(function(){return nY.YAMLSeq},"get")});Object.defineProperty(Ai,"YAMLMap",{enumerable:!0,get:s(function(){return nY.YAMLMap},"get")});var rY=zw();Object.defineProperty(Ai,"errorCode",{enumerable:!0,get:s(function(){return rY.errorCode},"get")});Object.defineProperty(Ai,"YAMLError",{enumerable:!0,get:s(function(){return rY.YAMLError},"get")})});var tN=y(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.getMockServerMiddlewareConfig=void 0;vc.getAppReloadMiddlewareConfig=uNe;vc.getPreviewMiddlewareConfig=fNe;vc.getBackendComments=iY;vc.getFioriToolsProxyMiddlewareConfig=pNe;var Qg=require("path");function uNe(){return{name:"fiori-tools-appreload",afterMiddleware:"compression",configuration:{port:35729,path:"webapp",delay:300}}}s(uNe,"getAppReloadMiddlewareConfig");function fNe({ui5Theme:e,appId:t,flpAction:n,localStartFile:r}){let i={name:"fiori-tools-preview",afterMiddleware:"fiori-tools-appreload",configuration:{flp:{...e&&{theme:e}}}};return r&&(i.configuration.flp.path=r),t&&n&&(i.configuration.flp.intent={object:t.replace(/[._-]/g,""),action:n}),i}s(fNe,"getPreviewMiddlewareConfig");function iY(e,t){let n=[];return e.authenticationType==="reentranceTicket"&&n.push({path:`configuration.backend.${t}.authenticationType`,comment:" SAML support for vscode",key:"authenticationType"}),n}s(iY,"getBackendComments");function pNe(e,t,n="compression",r=!1){let i={name:"fiori-tools-proxy",afterMiddleware:n,configuration:{ignoreCertErrors:r}},o=[{path:"configuration.ignoreCertErrors",comment:" If set to true, certificate errors will be ignored. E.g. self-signed certificates will be accepted"}];return e&&e.length>0&&(e.forEach((a,c)=>{a.path=a.path??"/";let l=iY(a,c);l&&(o=[...o,...l])}),i.configuration.backend=e),t!==void 0&&(i.configuration.ui5={path:t.path??["/resources","/test-resources"],url:t.url??"https://ui5.sap.com"},t.version!==void 0&&(i.configuration.ui5.version=t.version),t.directLoad&&(i.configuration.ui5.directLoad=!0)),{config:i,comments:o}}s(pNe,"getFioriToolsProxyMiddlewareConfig");var dNe=s((e,t,n,r)=>{let i=[];return n.forEach(o=>{let a=`.${Qg.posix.sep}${(0,Qg.relative)(e,(0,Qg.join)(t,"localService",o.serviceName)).replaceAll(Qg.sep,Qg.posix.sep)}`,c={urlPath:o.servicePath.replace(/\/$/,""),metadataPath:o.metadataPath??`${a}/metadata.xml`,mockdataPath:`${a}/data`,generateMockData:!0};o.resolveExternalServiceReferences===!0&&(c.resolveExternalServiceReferences=!0),i.push(c)}),{name:"sap-fe-mockserver",beforeMiddleware:"csp",configuration:{mountPath:"/",services:i,annotations:r}}},"getMockServerMiddlewareConfig");vc.getMockServerMiddlewareConfig=dNe});var nN=y(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.fioriToolsProxy=gp.serveStatic=void 0;gp.serveStatic="fiori-tools-servestatic";gp.fioriToolsProxy="fiori-tools-proxy"});var tm=y(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.regexpCode=Ut.getEsmExportName=Ut.getProperty=Ut.safeStringify=Ut.stringify=Ut.strConcat=Ut.addCodeArg=Ut.str=Ut._=Ut.nil=Ut._Code=Ut.Name=Ut.IDENTIFIER=Ut._CodeOrName=void 0;var sN=class sN{};s(sN,"_CodeOrName");var Zg=sN;Ut._CodeOrName=Zg;Ut.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var oN=class oN extends Zg{constructor(t){if(super(),!Ut.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};s(oN,"Name");var tu=oN;Ut.Name=tu;var aN=class aN extends Zg{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((n,r)=>`${n}${r}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((n,r)=>(r instanceof tu&&(n[r.str]=(n[r.str]||0)+1),n),{})}};s(aN,"_Code");var os=aN;Ut._Code=os;Ut.nil=new os("");function sY(e,...t){let n=[e[0]],r=0;for(;r<t.length;)iN(n,t[r]),n.push(e[++r]);return new os(n)}s(sY,"_");Ut._=sY;var rN=new os("+");function oY(e,...t){let n=[em(e[0])],r=0;for(;r<t.length;)n.push(rN),iN(n,t[r]),n.push(rN,em(e[++r]));return hNe(n),new os(n)}s(oY,"str");Ut.str=oY;function iN(e,t){t instanceof os?e.push(...t._items):t instanceof tu?e.push(t):e.push(yNe(t))}s(iN,"addCodeArg");Ut.addCodeArg=iN;function hNe(e){let t=1;for(;t<e.length-1;){if(e[t]===rN){let n=gNe(e[t-1],e[t+1]);if(n!==void 0){e.splice(t-1,3,n);continue}e[t++]="+"}t++}}s(hNe,"optimize");function gNe(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof tu||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof tu))return`"${e}${t.slice(1)}`}s(gNe,"mergeExprItems");function mNe(e,t){return t.emptyStr()?e:e.emptyStr()?t:oY`${e}${t}`}s(mNe,"strConcat");Ut.strConcat=mNe;function yNe(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:em(Array.isArray(e)?e.join(","):e)}s(yNe,"interpolate");function bNe(e){return new os(em(e))}s(bNe,"stringify");Ut.stringify=bNe;function em(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}s(em,"safeStringify");Ut.safeStringify=em;function vNe(e){return typeof e=="string"&&Ut.IDENTIFIER.test(e)?new os(`.${e}`):sY`[${e}]`}s(vNe,"getProperty");Ut.getProperty=vNe;function TNe(e){if(typeof e=="string"&&Ut.IDENTIFIER.test(e))return new os(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}s(TNe,"getEsmExportName");Ut.getEsmExportName=TNe;function SNe(e){return new os(e.toString())}s(SNe,"regexpCode");Ut.regexpCode=SNe});var hN=y(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.ValueScope=Oi.ValueScopeName=Oi.Scope=Oi.varKinds=Oi.UsedValueState=void 0;var xi=tm(),uN=class uN extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}};s(uN,"ValueError");var cN=uN,DS;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(DS||(Oi.UsedValueState=DS={}));Oi.varKinds={const:new xi.Name("const"),let:new xi.Name("let"),var:new xi.Name("var")};var fN=class fN{constructor({prefixes:t,parent:n}={}){this._names={},this._prefixes=t,this._parent=n}toName(t){return t instanceof xi.Name?t:this.name(t)}name(t){return new xi.Name(this._newName(t))}_newName(t){let n=this._names[t]||this._nameGroup(t);return`${t}${n.index++}`}_nameGroup(t){var n,r;if(!((r=(n=this._parent)===null||n===void 0?void 0:n._prefixes)===null||r===void 0)&&r.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};s(fN,"Scope");var $S=fN;Oi.Scope=$S;var pN=class pN extends xi.Name{constructor(t,n){super(n),this.prefix=t}setValue(t,{property:n,itemIndex:r}){this.value=t,this.scopePath=(0,xi._)`.${new xi.Name(n)}[${r}]`}};s(pN,"ValueScopeName");var kS=pN;Oi.ValueScopeName=kS;var ENe=(0,xi._)`\n`,dN=class dN extends $S{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?ENe:xi.nil}}get(){return this._scope}name(t){return new kS(t,this._newName(t))}value(t,n){var r;if(n.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:o}=i,a=(r=n.key)!==null&&r!==void 0?r:n.ref,c=this._values[o];if(c){let f=c.get(a);if(f)return f}else c=this._values[o]=new Map;c.set(a,i);let l=this._scope[o]||(this._scope[o]=[]),u=l.length;return l[u]=n.ref,i.setValue(n,{property:o,itemIndex:u}),i}getValue(t,n){let r=this._values[t];if(r)return r.get(n)}scopeRefs(t,n=this._values){return this._reduceValues(n,r=>{if(r.scopePath===void 0)throw new Error(`CodeGen: name "${r}" has no value`);return(0,xi._)`${t}${r.scopePath}`})}scopeCode(t=this._values,n,r){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},n,r)}_reduceValues(t,n,r={},i){let o=xi.nil;for(let a in t){let c=t[a];if(!c)continue;let l=r[a]=r[a]||new Map;c.forEach(u=>{if(l.has(u))return;l.set(u,DS.Started);let f=n(u);if(f){let p=this.opts.es5?Oi.varKinds.var:Oi.varKinds.const;o=(0,xi._)`${o}${p} ${u} = ${f};${this.opts._n}`}else if(f=i==null?void 0:i(u))o=(0,xi._)`${o}${f}${this.opts._n}`;else throw new cN(u);l.set(u,DS.Completed)})}return o}};s(dN,"ValueScope");var lN=dN;Oi.ValueScope=lN});var Ct=y(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.or=Ot.and=Ot.not=Ot.CodeGen=Ot.operators=Ot.varKinds=Ot.ValueScopeName=Ot.ValueScope=Ot.Scope=Ot.Name=Ot.regexpCode=Ot.stringify=Ot.getProperty=Ot.nil=Ot.strConcat=Ot.str=Ot._=void 0;var Dt=tm(),ks=hN(),Tc=tm();Object.defineProperty(Ot,"_",{enumerable:!0,get:s(function(){return Tc._},"get")});Object.defineProperty(Ot,"str",{enumerable:!0,get:s(function(){return Tc.str},"get")});Object.defineProperty(Ot,"strConcat",{enumerable:!0,get:s(function(){return Tc.strConcat},"get")});Object.defineProperty(Ot,"nil",{enumerable:!0,get:s(function(){return Tc.nil},"get")});Object.defineProperty(Ot,"getProperty",{enumerable:!0,get:s(function(){return Tc.getProperty},"get")});Object.defineProperty(Ot,"stringify",{enumerable:!0,get:s(function(){return Tc.stringify},"get")});Object.defineProperty(Ot,"regexpCode",{enumerable:!0,get:s(function(){return Tc.regexpCode},"get")});Object.defineProperty(Ot,"Name",{enumerable:!0,get:s(function(){return Tc.Name},"get")});var US=hN();Object.defineProperty(Ot,"Scope",{enumerable:!0,get:s(function(){return US.Scope},"get")});Object.defineProperty(Ot,"ValueScope",{enumerable:!0,get:s(function(){return US.ValueScope},"get")});Object.defineProperty(Ot,"ValueScopeName",{enumerable:!0,get:s(function(){return US.ValueScopeName},"get")});Object.defineProperty(Ot,"varKinds",{enumerable:!0,get:s(function(){return US.varKinds},"get")});Ot.operators={GT:new Dt._Code(">"),GTE:new Dt._Code(">="),LT:new Dt._Code("<"),LTE:new Dt._Code("<="),EQ:new Dt._Code("==="),NEQ:new Dt._Code("!=="),NOT:new Dt._Code("!"),OR:new Dt._Code("||"),AND:new Dt._Code("&&"),ADD:new Dt._Code("+")};var IN=class IN{optimizeNodes(){return this}optimizeNames(t,n){return this}};s(IN,"Node");var ea=IN,_N=class _N extends ea{constructor(t,n,r){super(),this.varKind=t,this.name=n,this.rhs=r}render({es5:t,_n:n}){let r=t?ks.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${r} ${this.name}${i};`+n}optimizeNames(t,n){if(t[this.name.str])return this.rhs&&(this.rhs=bp(this.rhs,t,n)),this}get names(){return this.rhs instanceof Dt._CodeOrName?this.rhs.names:{}}};s(_N,"Def");var gN=_N,CN=class CN extends ea{constructor(t,n,r){super(),this.lhs=t,this.rhs=n,this.sideEffects=r}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,n){if(!(this.lhs instanceof Dt.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=bp(this.rhs,t,n),this}get names(){let t=this.lhs instanceof Dt.Name?{}:{...this.lhs.names};return qS(t,this.rhs)}};s(CN,"Assign");var MS=CN,wN=class wN extends MS{constructor(t,n,r,i){super(t,r,i),this.op=n}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}};s(wN,"AssignOp");var mN=wN,NN=class NN extends ea{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}};s(NN,"Label");var yN=NN,RN=class RN extends ea{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}};s(RN,"Break");var bN=RN,FN=class FN extends ea{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}};s(FN,"Throw");var vN=FN,LN=class LN extends ea{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,n){return this.code=bp(this.code,t,n),this}get names(){return this.code instanceof Dt._CodeOrName?this.code.names:{}}};s(LN,"AnyCode");var TN=LN,jN=class jN extends ea{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((n,r)=>n+r.render(t),"")}optimizeNodes(){let{nodes:t}=this,n=t.length;for(;n--;){let r=t[n].optimizeNodes();Array.isArray(r)?t.splice(n,1,...r):r?t[n]=r:t.splice(n,1)}return t.length>0?this:void 0}optimizeNames(t,n){let{nodes:r}=this,i=r.length;for(;i--;){let o=r[i];o.optimizeNames(t,n)||(PNe(t,o.names),r.splice(i,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce((t,n)=>iu(t,n.names),{})}};s(jN,"ParentNode");var nm=jN,DN=class DN extends nm{render(t){return"{"+t._n+super.render(t)+"}"+t._n}};s(DN,"BlockNode");var ta=DN,$N=class $N extends nm{};s($N,"Root");var SN=$N,kN=class kN extends ta{};s(kN,"Else");var yp=kN;yp.kind="else";var mp=class mp extends ta{constructor(t,n){super(n),this.condition=t}render(t){let n=`if(${this.condition})`+super.render(t);return this.else&&(n+="else "+this.else.render(t)),n}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let n=this.else;if(n){let r=n.optimizeNodes();n=this.else=Array.isArray(r)?new yp(r):r}if(n)return t===!1?n instanceof mp?n:n.nodes:this.nodes.length?this:new mp(aY(t),n instanceof mp?[n]:n.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,n){var r;if(this.else=(r=this.else)===null||r===void 0?void 0:r.optimizeNames(t,n),!!(super.optimizeNames(t,n)||this.else))return this.condition=bp(this.condition,t,n),this}get names(){let t=super.names;return qS(t,this.condition),this.else&&iu(t,this.else.names),t}};s(mp,"If");var nu=mp;nu.kind="if";var MN=class MN extends ta{};s(MN,"For");var ru=MN;ru.kind="for";var VN=class VN extends ru{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,n){if(super.optimizeNames(t,n))return this.iteration=bp(this.iteration,t,n),this}get names(){return iu(super.names,this.iteration.names)}};s(VN,"ForLoop");var EN=VN,qN=class qN extends ru{constructor(t,n,r,i){super(),this.varKind=t,this.name=n,this.from=r,this.to=i}render(t){let n=t.es5?ks.varKinds.var:this.varKind,{name:r,from:i,to:o}=this;return`for(${n} ${r}=${i}; ${r}<${o}; ${r}++)`+super.render(t)}get names(){let t=qS(super.names,this.from);return qS(t,this.to)}};s(qN,"ForRange");var PN=qN,UN=class UN extends ru{constructor(t,n,r,i){super(),this.loop=t,this.varKind=n,this.name=r,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,n){if(super.optimizeNames(t,n))return this.iterable=bp(this.iterable,t,n),this}get names(){return iu(super.names,this.iterable.names)}};s(UN,"ForIter");var VS=UN,BN=class BN extends ta{constructor(t,n,r){super(),this.name=t,this.args=n,this.async=r}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};s(BN,"Func");var rm=BN;rm.kind="func";var GN=class GN extends nm{render(t){return"return "+super.render(t)}};s(GN,"Return");var im=GN;im.kind="return";var HN=class HN extends ta{render(t){let n="try"+super.render(t);return this.catch&&(n+=this.catch.render(t)),this.finally&&(n+=this.finally.render(t)),n}optimizeNodes(){var t,n;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(n=this.finally)===null||n===void 0||n.optimizeNodes(),this}optimizeNames(t,n){var r,i;return super.optimizeNames(t,n),(r=this.catch)===null||r===void 0||r.optimizeNames(t,n),(i=this.finally)===null||i===void 0||i.optimizeNames(t,n),this}get names(){let t=super.names;return this.catch&&iu(t,this.catch.names),this.finally&&iu(t,this.finally.names),t}};s(HN,"Try");var AN=HN,WN=class WN extends ta{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};s(WN,"Catch");var sm=WN;sm.kind="catch";var KN=class KN extends ta{render(t){return"finally"+super.render(t)}};s(KN,"Finally");var om=KN;om.kind="finally";var JN=class JN{constructor(t,n={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...n,_n:n.lines?`
|
|
228
|
-
`:""},this._extScope=t,this._scope=new ks.Scope({parent:t}),this._nodes=[new SN]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,n){let r=this._extScope.value(t,n);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(t,n){return this._extScope.getValue(t,n)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,n,r,i){let o=this._scope.toName(n);return r!==void 0&&i&&(this._constants[o.str]=r),this._leafNode(new gN(t,o,r)),o}const(t,n,r){return this._def(ks.varKinds.const,t,n,r)}let(t,n,r){return this._def(ks.varKinds.let,t,n,r)}var(t,n,r){return this._def(ks.varKinds.var,t,n,r)}assign(t,n,r){return this._leafNode(new MS(t,n,r))}add(t,n){return this._leafNode(new mN(t,Ot.operators.ADD,n))}code(t){return typeof t=="function"?t():t!==Dt.nil&&this._leafNode(new TN(t)),this}object(...t){let n=["{"];for(let[r,i]of t)n.length>1&&n.push(","),n.push(r),(r!==i||this.opts.es5)&&(n.push(":"),(0,Dt.addCodeArg)(n,i));return n.push("}"),new Dt._Code(n)}if(t,n,r){if(this._blockNode(new nu(t)),n&&r)this.code(n).else().code(r).endIf();else if(n)this.code(n).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new nu(t))}else(){return this._elseNode(new yp)}endIf(){return this._endBlockNode(nu,yp)}_for(t,n){return this._blockNode(t),n&&this.code(n).endFor(),this}for(t,n){return this._for(new EN(t),n)}forRange(t,n,r,i,o=this.opts.es5?ks.varKinds.var:ks.varKinds.let){let a=this._scope.toName(t);return this._for(new PN(o,a,n,r),()=>i(a))}forOf(t,n,r,i=ks.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let a=n instanceof Dt.Name?n:this.var("_arr",n);return this.forRange("_i",0,(0,Dt._)`${a}.length`,c=>{this.var(o,(0,Dt._)`${a}[${c}]`),r(o)})}return this._for(new VS("of",i,o,n),()=>r(o))}forIn(t,n,r,i=this.opts.es5?ks.varKinds.var:ks.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,Dt._)`Object.keys(${n})`,r);let o=this._scope.toName(t);return this._for(new VS("in",i,o,n),()=>r(o))}endFor(){return this._endBlockNode(ru)}label(t){return this._leafNode(new yN(t))}break(t){return this._leafNode(new bN(t))}return(t){let n=new im;if(this._blockNode(n),this.code(t),n.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(im)}try(t,n,r){if(!n&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new AN;if(this._blockNode(i),this.code(t),n){let o=this.name("e");this._currNode=i.catch=new sm(o),n(o)}return r&&(this._currNode=i.finally=new om,this.code(r)),this._endBlockNode(sm,om)}throw(t){return this._leafNode(new vN(t))}block(t,n){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(n),this}endBlock(t){let n=this._blockStarts.pop();if(n===void 0)throw new Error("CodeGen: not in self-balancing block");let r=this._nodes.length-n;if(r<0||t!==void 0&&r!==t)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${t} expected`);return this._nodes.length=n,this}func(t,n=Dt.nil,r,i){return this._blockNode(new rm(t,n,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(rm)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,n){let r=this._currNode;if(r instanceof t||n&&r instanceof n)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${n?`${t.kind}/${n.kind}`:t.kind}"`)}_elseNode(t){let n=this._currNode;if(!(n instanceof nu))throw new Error('CodeGen: "else" without "if"');return this._currNode=n.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let n=this._nodes;n[n.length-1]=t}};s(JN,"CodeGen");var xN=JN;Ot.CodeGen=xN;function iu(e,t){for(let n in t)e[n]=(e[n]||0)+(t[n]||0);return e}s(iu,"addNames");function qS(e,t){return t instanceof Dt._CodeOrName?iu(e,t.names):e}s(qS,"addExprNames");function bp(e,t,n){if(e instanceof Dt.Name)return r(e);if(!i(e))return e;return new Dt._Code(e._items.reduce((o,a)=>(a instanceof Dt.Name&&(a=r(a)),a instanceof Dt._Code?o.push(...a._items):o.push(a),o),[]));function r(o){let a=n[o.str];return a===void 0||t[o.str]!==1?o:(delete t[o.str],a)}function i(o){return o instanceof Dt._Code&&o._items.some(a=>a instanceof Dt.Name&&t[a.str]===1&&n[a.str]!==void 0)}}s(bp,"optimizeExpr");function PNe(e,t){for(let n in t)e[n]=(e[n]||0)-(t[n]||0)}s(PNe,"subtractNames");function aY(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,Dt._)`!${ON(e)}`}s(aY,"not");Ot.not=aY;var ANe=cY(Ot.operators.AND);function xNe(...e){return e.reduce(ANe)}s(xNe,"and");Ot.and=xNe;var ONe=cY(Ot.operators.OR);function INe(...e){return e.reduce(ONe)}s(INe,"or");Ot.or=INe;function cY(e){return(t,n)=>t===Dt.nil?n:n===Dt.nil?t:(0,Dt._)`${ON(t)} ${e} ${ON(n)}`}s(cY,"mappend");function ON(e){return e instanceof Dt.Name?e:(0,Dt._)`(${e})`}s(ON,"par")});var Mt=y(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.checkStrictMode=wt.getErrorPath=wt.Type=wt.useFunc=wt.setEvaluated=wt.evaluatedPropsToName=wt.mergeEvaluated=wt.eachItem=wt.unescapeJsonPointer=wt.escapeJsonPointer=wt.escapeFragment=wt.unescapeFragment=wt.schemaRefOrVal=wt.schemaHasRulesButRef=wt.schemaHasRules=wt.checkUnknownRules=wt.alwaysValidSchema=wt.toHash=void 0;var pn=Ct(),_Ne=tm();function CNe(e){let t={};for(let n of e)t[n]=!0;return t}s(CNe,"toHash");wt.toHash=CNe;function wNe(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(fY(e,t),!pY(t,e.self.RULES.all))}s(wNe,"alwaysValidSchema");wt.alwaysValidSchema=wNe;function fY(e,t=e.schema){let{opts:n,self:r}=e;if(!n.strictSchema||typeof t=="boolean")return;let i=r.RULES.keywords;for(let o in t)i[o]||gY(e,`unknown keyword: "${o}"`)}s(fY,"checkUnknownRules");wt.checkUnknownRules=fY;function pY(e,t){if(typeof e=="boolean")return!e;for(let n in e)if(t[n])return!0;return!1}s(pY,"schemaHasRules");wt.schemaHasRules=pY;function NNe(e,t){if(typeof e=="boolean")return!e;for(let n in e)if(n!=="$ref"&&t.all[n])return!0;return!1}s(NNe,"schemaHasRulesButRef");wt.schemaHasRulesButRef=NNe;function RNe({topSchemaRef:e,schemaPath:t},n,r,i){if(!i){if(typeof n=="number"||typeof n=="boolean")return n;if(typeof n=="string")return(0,pn._)`${n}`}return(0,pn._)`${e}${t}${(0,pn.getProperty)(r)}`}s(RNe,"schemaRefOrVal");wt.schemaRefOrVal=RNe;function FNe(e){return dY(decodeURIComponent(e))}s(FNe,"unescapeFragment");wt.unescapeFragment=FNe;function LNe(e){return encodeURIComponent(XN(e))}s(LNe,"escapeFragment");wt.escapeFragment=LNe;function XN(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}s(XN,"escapeJsonPointer");wt.escapeJsonPointer=XN;function dY(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}s(dY,"unescapeJsonPointer");wt.unescapeJsonPointer=dY;function jNe(e,t){if(Array.isArray(e))for(let n of e)t(n);else t(e)}s(jNe,"eachItem");wt.eachItem=jNe;function lY({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:r}){return(i,o,a,c)=>{let l=a===void 0?o:a instanceof pn.Name?(o instanceof pn.Name?e(i,o,a):t(i,o,a),a):o instanceof pn.Name?(t(i,a,o),o):n(o,a);return c===pn.Name&&!(l instanceof pn.Name)?r(i,l):l}}s(lY,"makeMergeEvaluated");wt.mergeEvaluated={props:lY({mergeNames:s((e,t,n)=>e.if((0,pn._)`${n} !== true && ${t} !== undefined`,()=>{e.if((0,pn._)`${t} === true`,()=>e.assign(n,!0),()=>e.assign(n,(0,pn._)`${n} || {}`).code((0,pn._)`Object.assign(${n}, ${t})`))}),"mergeNames"),mergeToName:s((e,t,n)=>e.if((0,pn._)`${n} !== true`,()=>{t===!0?e.assign(n,!0):(e.assign(n,(0,pn._)`${n} || {}`),zN(e,n,t))}),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:{...e,...t},"mergeValues"),resultToName:hY}),items:lY({mergeNames:s((e,t,n)=>e.if((0,pn._)`${n} !== true && ${t} !== undefined`,()=>e.assign(n,(0,pn._)`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`)),"mergeNames"),mergeToName:s((e,t,n)=>e.if((0,pn._)`${n} !== true`,()=>e.assign(n,t===!0?!0:(0,pn._)`${n} > ${t} ? ${n} : ${t}`)),"mergeToName"),mergeValues:s((e,t)=>e===!0?!0:Math.max(e,t),"mergeValues"),resultToName:s((e,t)=>e.var("items",t),"resultToName")})};function hY(e,t){if(t===!0)return e.var("props",!0);let n=e.var("props",(0,pn._)`{}`);return t!==void 0&&zN(e,n,t),n}s(hY,"evaluatedPropsToName");wt.evaluatedPropsToName=hY;function zN(e,t,n){Object.keys(n).forEach(r=>e.assign((0,pn._)`${t}${(0,pn.getProperty)(r)}`,!0))}s(zN,"setEvaluated");wt.setEvaluated=zN;var uY={};function DNe(e,t){return e.scopeValue("func",{ref:t,code:uY[t.code]||(uY[t.code]=new _Ne._Code(t.code))})}s(DNe,"useFunc");wt.useFunc=DNe;var YN;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(YN||(wt.Type=YN={}));function $Ne(e,t,n){if(e instanceof pn.Name){let r=t===YN.Num;return n?r?(0,pn._)`"[" + ${e} + "]"`:(0,pn._)`"['" + ${e} + "']"`:r?(0,pn._)`"/" + ${e}`:(0,pn._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,pn.getProperty)(e).toString():"/"+XN(e)}s($Ne,"getErrorPath");wt.getErrorPath=$Ne;function gY(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,n===!0)throw new Error(t);e.self.logger.warn(t)}}s(gY,"checkStrictMode");wt.checkStrictMode=gY});var na=y(QN=>{"use strict";Object.defineProperty(QN,"__esModule",{value:!0});var wr=Ct(),kNe={data:new wr.Name("data"),valCxt:new wr.Name("valCxt"),instancePath:new wr.Name("instancePath"),parentData:new wr.Name("parentData"),parentDataProperty:new wr.Name("parentDataProperty"),rootData:new wr.Name("rootData"),dynamicAnchors:new wr.Name("dynamicAnchors"),vErrors:new wr.Name("vErrors"),errors:new wr.Name("errors"),this:new wr.Name("this"),self:new wr.Name("self"),scope:new wr.Name("scope"),json:new wr.Name("json"),jsonPos:new wr.Name("jsonPos"),jsonLen:new wr.Name("jsonLen"),jsonPart:new wr.Name("jsonPart")};QN.default=kNe});var am=y(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.extendErrors=Nr.resetErrorsCount=Nr.reportExtraError=Nr.reportError=Nr.keyword$DataError=Nr.keywordError=void 0;var Vt=Ct(),BS=Mt(),ti=na();Nr.keywordError={message:s(({keyword:e})=>(0,Vt.str)`must pass "${e}" keyword validation`,"message")};Nr.keyword$DataError={message:s(({keyword:e,schemaType:t})=>t?(0,Vt.str)`"${e}" keyword must be ${t} ($data)`:(0,Vt.str)`"${e}" keyword is invalid ($data)`,"message")};function MNe(e,t=Nr.keywordError,n,r){let{it:i}=e,{gen:o,compositeRule:a,allErrors:c}=i,l=bY(e,t,n);r??(a||c)?mY(o,l):yY(i,(0,Vt._)`[${l}]`)}s(MNe,"reportError");Nr.reportError=MNe;function VNe(e,t=Nr.keywordError,n){let{it:r}=e,{gen:i,compositeRule:o,allErrors:a}=r,c=bY(e,t,n);mY(i,c),o||a||yY(r,ti.default.vErrors)}s(VNe,"reportExtraError");Nr.reportExtraError=VNe;function qNe(e,t){e.assign(ti.default.errors,t),e.if((0,Vt._)`${ti.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,Vt._)`${ti.default.vErrors}.length`,t),()=>e.assign(ti.default.vErrors,null)))}s(qNe,"resetErrorsCount");Nr.resetErrorsCount=qNe;function UNe({gen:e,keyword:t,schemaValue:n,data:r,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",i,ti.default.errors,c=>{e.const(a,(0,Vt._)`${ti.default.vErrors}[${c}]`),e.if((0,Vt._)`${a}.instancePath === undefined`,()=>e.assign((0,Vt._)`${a}.instancePath`,(0,Vt.strConcat)(ti.default.instancePath,o.errorPath))),e.assign((0,Vt._)`${a}.schemaPath`,(0,Vt.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,Vt._)`${a}.schema`,n),e.assign((0,Vt._)`${a}.data`,r))})}s(UNe,"extendErrors");Nr.extendErrors=UNe;function mY(e,t){let n=e.const("err",t);e.if((0,Vt._)`${ti.default.vErrors} === null`,()=>e.assign(ti.default.vErrors,(0,Vt._)`[${n}]`),(0,Vt._)`${ti.default.vErrors}.push(${n})`),e.code((0,Vt._)`${ti.default.errors}++`)}s(mY,"addError");function yY(e,t){let{gen:n,validateName:r,schemaEnv:i}=e;i.$async?n.throw((0,Vt._)`new ${e.ValidationError}(${t})`):(n.assign((0,Vt._)`${r}.errors`,t),n.return(!1))}s(yY,"returnErrors");var su={keyword:new Vt.Name("keyword"),schemaPath:new Vt.Name("schemaPath"),params:new Vt.Name("params"),propertyName:new Vt.Name("propertyName"),message:new Vt.Name("message"),schema:new Vt.Name("schema"),parentSchema:new Vt.Name("parentSchema")};function bY(e,t,n){let{createErrors:r}=e.it;return r===!1?(0,Vt._)`{}`:BNe(e,t,n)}s(bY,"errorObjectCode");function BNe(e,t,n={}){let{gen:r,it:i}=e,o=[GNe(i,n),HNe(e,n)];return WNe(e,t,o),r.object(...o)}s(BNe,"errorObject");function GNe({errorPath:e},{instancePath:t}){let n=t?(0,Vt.str)`${e}${(0,BS.getErrorPath)(t,BS.Type.Str)}`:e;return[ti.default.instancePath,(0,Vt.strConcat)(ti.default.instancePath,n)]}s(GNe,"errorInstancePath");function HNe({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:r}){let i=r?t:(0,Vt.str)`${t}/${e}`;return n&&(i=(0,Vt.str)`${i}${(0,BS.getErrorPath)(n,BS.Type.Str)}`),[su.schemaPath,i]}s(HNe,"errorSchemaPath");function WNe(e,{params:t,message:n},r){let{keyword:i,data:o,schemaValue:a,it:c}=e,{opts:l,propertyName:u,topSchemaRef:f,schemaPath:p}=c;r.push([su.keyword,i],[su.params,typeof t=="function"?t(e):t||(0,Vt._)`{}`]),l.messages&&r.push([su.message,typeof n=="function"?n(e):n]),l.verbose&&r.push([su.schema,a],[su.parentSchema,(0,Vt._)`${f}${p}`],[ti.default.data,o]),u&&r.push([su.propertyName,u])}s(WNe,"extraErrorProps")});var TY=y(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.boolOrEmptySchema=vp.topBoolOrEmptySchema=void 0;var KNe=am(),JNe=Ct(),YNe=na(),XNe={message:"boolean schema is false"};function zNe(e){let{gen:t,schema:n,validateName:r}=e;n===!1?vY(e,!1):typeof n=="object"&&n.$async===!0?t.return(YNe.default.data):(t.assign((0,JNe._)`${r}.errors`,null),t.return(!0))}s(zNe,"topBoolOrEmptySchema");vp.topBoolOrEmptySchema=zNe;function QNe(e,t){let{gen:n,schema:r}=e;r===!1?(n.var(t,!1),vY(e)):n.var(t,!0)}s(QNe,"boolOrEmptySchema");vp.boolOrEmptySchema=QNe;function vY(e,t){let{gen:n,data:r}=e,i={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,KNe.reportError)(i,XNe,void 0,t)}s(vY,"falseSchemaError")});var ZN=y(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.getRules=Tp.isJSONType=void 0;var ZNe=["string","number","integer","boolean","null","object","array"],e1e=new Set(ZNe);function t1e(e){return typeof e=="string"&&e1e.has(e)}s(t1e,"isJSONType");Tp.isJSONType=t1e;function n1e(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}s(n1e,"getRules");Tp.getRules=n1e});var e1=y(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.shouldUseRule=Sc.shouldUseGroup=Sc.schemaHasRulesForType=void 0;function r1e({schema:e,self:t},n){let r=t.RULES.types[n];return r&&r!==!0&&SY(e,r)}s(r1e,"schemaHasRulesForType");Sc.schemaHasRulesForType=r1e;function SY(e,t){return t.rules.some(n=>EY(e,n))}s(SY,"shouldUseGroup");Sc.shouldUseGroup=SY;function EY(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(r=>e[r]!==void 0))}s(EY,"shouldUseRule");Sc.shouldUseRule=EY});var cm=y(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.reportTypeError=Rr.checkDataTypes=Rr.checkDataType=Rr.coerceAndCheckDataType=Rr.getJSONTypes=Rr.getSchemaTypes=Rr.DataType=void 0;var i1e=ZN(),s1e=e1(),o1e=am(),Et=Ct(),PY=Mt(),Sp;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Sp||(Rr.DataType=Sp={}));function a1e(e){let t=AY(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}s(a1e,"getSchemaTypes");Rr.getSchemaTypes=a1e;function AY(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(i1e.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}s(AY,"getJSONTypes");Rr.getJSONTypes=AY;function c1e(e,t){let{gen:n,data:r,opts:i}=e,o=l1e(t,i.coerceTypes),a=t.length>0&&!(o.length===0&&t.length===1&&(0,s1e.schemaHasRulesForType)(e,t[0]));if(a){let c=n1(t,r,i.strictNumbers,Sp.Wrong);n.if(c,()=>{o.length?u1e(e,t,o):r1(e)})}return a}s(c1e,"coerceAndCheckDataType");Rr.coerceAndCheckDataType=c1e;var xY=new Set(["string","number","integer","boolean","null"]);function l1e(e,t){return t?e.filter(n=>xY.has(n)||t==="array"&&n==="array"):[]}s(l1e,"coerceToTypes");function u1e(e,t,n){let{gen:r,data:i,opts:o}=e,a=r.let("dataType",(0,Et._)`typeof ${i}`),c=r.let("coerced",(0,Et._)`undefined`);o.coerceTypes==="array"&&r.if((0,Et._)`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>r.assign(i,(0,Et._)`${i}[0]`).assign(a,(0,Et._)`typeof ${i}`).if(n1(t,i,o.strictNumbers),()=>r.assign(c,i))),r.if((0,Et._)`${c} !== undefined`);for(let u of n)(xY.has(u)||u==="array"&&o.coerceTypes==="array")&&l(u);r.else(),r1(e),r.endIf(),r.if((0,Et._)`${c} !== undefined`,()=>{r.assign(i,c),f1e(e,c)});function l(u){switch(u){case"string":r.elseIf((0,Et._)`${a} == "number" || ${a} == "boolean"`).assign(c,(0,Et._)`"" + ${i}`).elseIf((0,Et._)`${i} === null`).assign(c,(0,Et._)`""`);return;case"number":r.elseIf((0,Et._)`${a} == "boolean" || ${i} === null
|
|
229
|
-
|| (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,(0,Et._)`+${i}`);return;case"integer":r.elseIf((0,Et._)`${a} === "boolean" || ${i} === null
|
|
230
|
-
|| (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,(0,Et._)`+${i}`);return;case"boolean":r.elseIf((0,Et._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf((0,Et._)`${i} === "true" || ${i} === 1`).assign(c,!0);return;case"null":r.elseIf((0,Et._)`${i} === "" || ${i} === 0 || ${i} === false`),r.assign(c,null);return;case"array":r.elseIf((0,Et._)`${a} === "string" || ${a} === "number"
|
|
231
|
-
|| ${a} === "boolean" || ${i} === null`).assign(c,(0,Et._)`[${i}]`)}}s(l,"coerceSpecificType")}s(u1e,"coerceData");function f1e({gen:e,parentData:t,parentDataProperty:n},r){e.if((0,Et._)`${t} !== undefined`,()=>e.assign((0,Et._)`${t}[${n}]`,r))}s(f1e,"assignParentData");function t1(e,t,n,r=Sp.Correct){let i=r===Sp.Correct?Et.operators.EQ:Et.operators.NEQ,o;switch(e){case"null":return(0,Et._)`${t} ${i} null`;case"array":o=(0,Et._)`Array.isArray(${t})`;break;case"object":o=(0,Et._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a((0,Et._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return(0,Et._)`typeof ${t} ${i} ${e}`}return r===Sp.Correct?o:(0,Et.not)(o);function a(c=Et.nil){return(0,Et.and)((0,Et._)`typeof ${t} == "number"`,c,n?(0,Et._)`isFinite(${t})`:Et.nil)}}s(t1,"checkDataType");Rr.checkDataType=t1;function n1(e,t,n,r){if(e.length===1)return t1(e[0],t,n,r);let i,o=(0,PY.toHash)(e);if(o.array&&o.object){let a=(0,Et._)`typeof ${t} != "object"`;i=o.null?a:(0,Et._)`!${t} || ${a}`,delete o.null,delete o.array,delete o.object}else i=Et.nil;o.number&&delete o.integer;for(let a in o)i=(0,Et.and)(i,t1(a,t,n,r));return i}s(n1,"checkDataTypes");Rr.checkDataTypes=n1;var p1e={message:s(({schema:e})=>`must be ${e}`,"message"),params:s(({schema:e,schemaValue:t})=>typeof e=="string"?(0,Et._)`{type: ${e}}`:(0,Et._)`{type: ${t}}`,"params")};function r1(e){let t=d1e(e);(0,o1e.reportError)(t,p1e)}s(r1,"reportTypeError");Rr.reportTypeError=r1;function d1e(e){let{gen:t,data:n,schema:r}=e,i=(0,PY.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}s(d1e,"getTypeErrorContext")});var IY=y(GS=>{"use strict";Object.defineProperty(GS,"__esModule",{value:!0});GS.assignDefaults=void 0;var Ep=Ct(),h1e=Mt();function g1e(e,t){let{properties:n,items:r}=e.schema;if(t==="object"&&n)for(let i in n)OY(e,i,n[i].default);else t==="array"&&Array.isArray(r)&&r.forEach((i,o)=>OY(e,o,i.default))}s(g1e,"assignDefaults");GS.assignDefaults=g1e;function OY(e,t,n){let{gen:r,compositeRule:i,data:o,opts:a}=e;if(n===void 0)return;let c=(0,Ep._)`${o}${(0,Ep.getProperty)(t)}`;if(i){(0,h1e.checkStrictMode)(e,`default is ignored for: ${c}`);return}let l=(0,Ep._)`${c} === undefined`;a.useDefaults==="empty"&&(l=(0,Ep._)`${l} || ${c} === null || ${c} === ""`),r.if(l,(0,Ep._)`${c} = ${(0,Ep.stringify)(n)}`)}s(OY,"assignDefault")});var as=y(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.validateUnion=sn.validateArray=sn.usePattern=sn.callValidateCode=sn.schemaProperties=sn.allSchemaProperties=sn.noPropertyInData=sn.propertyInData=sn.isOwnProperty=sn.hasPropFunc=sn.reportMissingProp=sn.checkMissingProp=sn.checkReportMissingProp=void 0;var Sn=Ct(),i1=Mt(),Ec=na(),m1e=Mt();function y1e(e,t){let{gen:n,data:r,it:i}=e;n.if(o1(n,r,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Sn._)`${t}`},!0),e.error()})}s(y1e,"checkReportMissingProp");sn.checkReportMissingProp=y1e;function b1e({gen:e,data:t,it:{opts:n}},r,i){return(0,Sn.or)(...r.map(o=>(0,Sn.and)(o1(e,t,o,n.ownProperties),(0,Sn._)`${i} = ${o}`)))}s(b1e,"checkMissingProp");sn.checkMissingProp=b1e;function v1e(e,t){e.setParams({missingProperty:t},!0),e.error()}s(v1e,"reportMissingProp");sn.reportMissingProp=v1e;function _Y(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Sn._)`Object.prototype.hasOwnProperty`})}s(_Y,"hasPropFunc");sn.hasPropFunc=_Y;function s1(e,t,n){return(0,Sn._)`${_Y(e)}.call(${t}, ${n})`}s(s1,"isOwnProperty");sn.isOwnProperty=s1;function T1e(e,t,n,r){let i=(0,Sn._)`${t}${(0,Sn.getProperty)(n)} !== undefined`;return r?(0,Sn._)`${i} && ${s1(e,t,n)}`:i}s(T1e,"propertyInData");sn.propertyInData=T1e;function o1(e,t,n,r){let i=(0,Sn._)`${t}${(0,Sn.getProperty)(n)} === undefined`;return r?(0,Sn.or)(i,(0,Sn.not)(s1(e,t,n))):i}s(o1,"noPropertyInData");sn.noPropertyInData=o1;function CY(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}s(CY,"allSchemaProperties");sn.allSchemaProperties=CY;function S1e(e,t){return CY(t).filter(n=>!(0,i1.alwaysValidSchema)(e,t[n]))}s(S1e,"schemaProperties");sn.schemaProperties=S1e;function E1e({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:i,errorPath:o},it:a},c,l,u){let f=u?(0,Sn._)`${e}, ${t}, ${r}${i}`:t,p=[[Ec.default.instancePath,(0,Sn.strConcat)(Ec.default.instancePath,o)],[Ec.default.parentData,a.parentData],[Ec.default.parentDataProperty,a.parentDataProperty],[Ec.default.rootData,Ec.default.rootData]];a.opts.dynamicRef&&p.push([Ec.default.dynamicAnchors,Ec.default.dynamicAnchors]);let d=(0,Sn._)`${f}, ${n.object(...p)}`;return l!==Sn.nil?(0,Sn._)`${c}.call(${l}, ${d})`:(0,Sn._)`${c}(${d})`}s(E1e,"callValidateCode");sn.callValidateCode=E1e;var P1e=(0,Sn._)`new RegExp`;function A1e({gen:e,it:{opts:t}},n){let r=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(n,r);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,Sn._)`${i.code==="new RegExp"?P1e:(0,m1e.useFunc)(e,i)}(${n}, ${r})`})}s(A1e,"usePattern");sn.usePattern=A1e;function x1e(e){let{gen:t,data:n,keyword:r,it:i}=e,o=t.name("valid");if(i.allErrors){let c=t.let("valid",!0);return a(()=>t.assign(c,!1)),c}return t.var(o,!0),a(()=>t.break()),o;function a(c){let l=t.const("len",(0,Sn._)`${n}.length`);t.forRange("i",0,l,u=>{e.subschema({keyword:r,dataProp:u,dataPropType:i1.Type.Num},o),t.if((0,Sn.not)(o),c)})}s(a,"validateItems")}s(x1e,"validateArray");sn.validateArray=x1e;function O1e(e){let{gen:t,schema:n,keyword:r,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(l=>(0,i1.alwaysValidSchema)(i,l))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>n.forEach((l,u)=>{let f=e.subschema({keyword:r,schemaProp:u,compositeRule:!0},c);t.assign(a,(0,Sn._)`${a} || ${c}`),e.mergeValidEvaluated(f,c)||t.if((0,Sn.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}s(O1e,"validateUnion");sn.validateUnion=O1e});var RY=y(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.validateKeywordUsage=co.validSchemaType=co.funcKeywordCode=co.macroKeywordCode=void 0;var ni=Ct(),ou=na(),I1e=as(),_1e=am();function C1e(e,t){let{gen:n,keyword:r,schema:i,parentSchema:o,it:a}=e,c=t.macro.call(a.self,i,o,a),l=NY(n,r,c);a.opts.validateSchema!==!1&&a.self.validateSchema(c,!0);let u=n.name("valid");e.subschema({schema:c,schemaPath:ni.nil,errSchemaPath:`${a.errSchemaPath}/${r}`,topSchemaRef:l,compositeRule:!0},u),e.pass(u,()=>e.error(!0))}s(C1e,"macroKeywordCode");co.macroKeywordCode=C1e;function w1e(e,t){var n;let{gen:r,keyword:i,schema:o,parentSchema:a,$data:c,it:l}=e;R1e(l,t);let u=!c&&t.compile?t.compile.call(l.self,o,a,l):t.validate,f=NY(r,i,u),p=r.let("valid");e.block$data(p,d),e.ok((n=t.valid)!==null&&n!==void 0?n:p);function d(){if(t.errors===!1)b(),t.modifying&&wY(e),T(()=>e.error());else{let I=t.async?h():m();t.modifying&&wY(e),T(()=>N1e(e,I))}}s(d,"validateKeyword");function h(){let I=r.let("ruleErrs",null);return r.try(()=>b((0,ni._)`await `),F=>r.assign(p,!1).if((0,ni._)`${F} instanceof ${l.ValidationError}`,()=>r.assign(I,(0,ni._)`${F}.errors`),()=>r.throw(F))),I}s(h,"validateAsync");function m(){let I=(0,ni._)`${f}.errors`;return r.assign(I,null),b(ni.nil),I}s(m,"validateSync");function b(I=t.async?(0,ni._)`await `:ni.nil){let F=l.opts.passContext?ou.default.this:ou.default.self,N=!("compile"in t&&!c||t.schema===!1);r.assign(p,(0,ni._)`${I}${(0,I1e.callValidateCode)(e,f,F,N)}`,t.modifying)}s(b,"assignValid");function T(I){var F;r.if((0,ni.not)((F=t.valid)!==null&&F!==void 0?F:p),I)}s(T,"reportErrs")}s(w1e,"funcKeywordCode");co.funcKeywordCode=w1e;function wY(e){let{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,(0,ni._)`${r.parentData}[${r.parentDataProperty}]`))}s(wY,"modifyData");function N1e(e,t){let{gen:n}=e;n.if((0,ni._)`Array.isArray(${t})`,()=>{n.assign(ou.default.vErrors,(0,ni._)`${ou.default.vErrors} === null ? ${t} : ${ou.default.vErrors}.concat(${t})`).assign(ou.default.errors,(0,ni._)`${ou.default.vErrors}.length`),(0,_1e.extendErrors)(e)},()=>e.error())}s(N1e,"addErrs");function R1e({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}s(R1e,"checkAsyncKeyword");function NY(e,t,n){if(n===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,ni.stringify)(n)})}s(NY,"useKeyword");function F1e(e,t,n=!1){return!t.length||t.some(r=>r==="array"?Array.isArray(e):r==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==r||n&&typeof e>"u")}s(F1e,"validSchemaType");co.validSchemaType=F1e;function L1e({schema:e,opts:t,self:n,errSchemaPath:r},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let a=i.dependencies;if(a!=null&&a.some(c=>!Object.prototype.hasOwnProperty.call(e,c)))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let l=`keyword "${o}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")n.logger.error(l);else throw new Error(l)}}s(L1e,"validateKeywordUsage");co.validateKeywordUsage=L1e});var LY=y(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});Pc.extendSubschemaMode=Pc.extendSubschemaData=Pc.getSubschema=void 0;var lo=Ct(),FY=Mt();function j1e(e,{keyword:t,schemaProp:n,schema:r,schemaPath:i,errSchemaPath:o,topSchemaRef:a}){if(t!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let c=e.schema[t];return n===void 0?{schema:c,schemaPath:(0,lo._)`${e.schemaPath}${(0,lo.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:c[n],schemaPath:(0,lo._)`${e.schemaPath}${(0,lo.getProperty)(t)}${(0,lo.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,FY.escapeFragment)(n)}`}}if(r!==void 0){if(i===void 0||o===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:i,topSchemaRef:a,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}s(j1e,"getSubschema");Pc.getSubschema=j1e;function D1e(e,t,{dataProp:n,dataPropType:r,data:i,dataTypes:o,propertyName:a}){if(i!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=t;if(n!==void 0){let{errorPath:u,dataPathArr:f,opts:p}=t,d=c.let("data",(0,lo._)`${t.data}${(0,lo.getProperty)(n)}`,!0);l(d),e.errorPath=(0,lo.str)`${u}${(0,FY.getErrorPath)(n,r,p.jsPropertySyntax)}`,e.parentDataProperty=(0,lo._)`${n}`,e.dataPathArr=[...f,e.parentDataProperty]}if(i!==void 0){let u=i instanceof lo.Name?i:c.let("data",i,!0);l(u),a!==void 0&&(e.propertyName=a)}o&&(e.dataTypes=o);function l(u){e.data=u,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,u]}s(l,"dataContextProps")}s(D1e,"extendSubschemaData");Pc.extendSubschemaData=D1e;function $1e(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:o}){r!==void 0&&(e.compositeRule=r),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=n}s($1e,"extendSubschemaMode");Pc.extendSubschemaMode=$1e});var a1=y((Jmt,jY)=>{"use strict";jY.exports=s(function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n},"equal")});var $Y=y((Xmt,DY)=>{"use strict";var Ac=DY.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var r=typeof n=="function"?n:n.pre||function(){},i=n.post||function(){};HS(t,r,i,e,"",e)};Ac.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Ac.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Ac.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Ac.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function HS(e,t,n,r,i,o,a,c,l,u){if(r&&typeof r=="object"&&!Array.isArray(r)){t(r,i,o,a,c,l,u);for(var f in r){var p=r[f];if(Array.isArray(p)){if(f in Ac.arrayKeywords)for(var d=0;d<p.length;d++)HS(e,t,n,p[d],i+"/"+f+"/"+d,o,i,f,r,d)}else if(f in Ac.propsKeywords){if(p&&typeof p=="object")for(var h in p)HS(e,t,n,p[h],i+"/"+f+"/"+k1e(h),o,i,f,r,h)}else(f in Ac.keywords||e.allKeys&&!(f in Ac.skipKeywords))&&HS(e,t,n,p,i+"/"+f,o,i,f,r)}n(r,i,o,a,c,l,u)}}s(HS,"_traverse");function k1e(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}s(k1e,"escapeJsonPtr")});var lm=y(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.getSchemaRefs=Ii.resolveUrl=Ii.normalizeId=Ii._getFullPath=Ii.getFullPath=Ii.inlineRef=void 0;var M1e=Mt(),V1e=a1(),q1e=$Y(),U1e=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function B1e(e,t=!0){return typeof e=="boolean"?!0:t===!0?!c1(e):t?kY(e)<=t:!1}s(B1e,"inlineRef");Ii.inlineRef=B1e;var G1e=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c1(e){for(let t in e){if(G1e.has(t))return!0;let n=e[t];if(Array.isArray(n)&&n.some(c1)||typeof n=="object"&&c1(n))return!0}return!1}s(c1,"hasRef");function kY(e){let t=0;for(let n in e){if(n==="$ref")return 1/0;if(t++,!U1e.has(n)&&(typeof e[n]=="object"&&(0,M1e.eachItem)(e[n],r=>t+=kY(r)),t===1/0))return 1/0}return t}s(kY,"countKeys");function MY(e,t="",n){n!==!1&&(t=Pp(t));let r=e.parse(t);return VY(e,r)}s(MY,"getFullPath");Ii.getFullPath=MY;function VY(e,t){return e.serialize(t).split("#")[0]+"#"}s(VY,"_getFullPath");Ii._getFullPath=VY;var H1e=/#\/?$/;function Pp(e){return e?e.replace(H1e,""):""}s(Pp,"normalizeId");Ii.normalizeId=Pp;function W1e(e,t,n){return n=Pp(n),e.resolve(t,n)}s(W1e,"resolveUrl");Ii.resolveUrl=W1e;var K1e=/^[a-z_][-a-z0-9._]*$/i;function J1e(e,t){if(typeof e=="boolean")return{};let{schemaId:n,uriResolver:r}=this.opts,i=Pp(e[n]||t),o={"":i},a=MY(r,i,!1),c={},l=new Set;return q1e(e,{allKeys:!0},(p,d,h,m)=>{if(m===void 0)return;let b=a+d,T=o[m];typeof p[n]=="string"&&(T=I.call(this,p[n])),F.call(this,p.$anchor),F.call(this,p.$dynamicAnchor),o[d]=T;function I(N){let $=this.opts.uriResolver.resolve;if(N=Pp(T?$(T,N):N),l.has(N))throw f(N);l.add(N);let j=this.refs[N];return typeof j=="string"&&(j=this.refs[j]),typeof j=="object"?u(p,j.schema,N):N!==Pp(b)&&(N[0]==="#"?(u(p,c[N],N),c[N]=p):this.refs[N]=b),N}s(I,"addRef");function F(N){if(typeof N=="string"){if(!K1e.test(N))throw new Error(`invalid anchor "${N}"`);I.call(this,`#${N}`)}}s(F,"addAnchor")}),c;function u(p,d,h){if(d!==void 0&&!V1e(p,d))throw f(h)}s(u,"checkAmbiguosRef");function f(p){return new Error(`reference "${p}" resolves to more than one schema`)}s(f,"ambiguos")}s(J1e,"getSchemaRefs");Ii.getSchemaRefs=J1e});var pm=y(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.getData=xc.KeywordCxt=xc.validateFunctionCode=void 0;var HY=TY(),qY=cm(),u1=e1(),WS=cm(),Y1e=IY(),fm=RY(),l1=LY(),Ye=Ct(),ft=na(),X1e=lm(),ra=Mt(),um=am();function z1e(e){if(JY(e)&&(YY(e),KY(e))){eRe(e);return}WY(e,()=>(0,HY.topBoolOrEmptySchema)(e))}s(z1e,"validateFunctionCode");xc.validateFunctionCode=z1e;function WY({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},o){i.code.es5?e.func(t,(0,Ye._)`${ft.default.data}, ${ft.default.valCxt}`,r.$async,()=>{e.code((0,Ye._)`"use strict"; ${UY(n,i)}`),Z1e(e,i),e.code(o)}):e.func(t,(0,Ye._)`${ft.default.data}, ${Q1e(i)}`,r.$async,()=>e.code(UY(n,i)).code(o))}s(WY,"validateFunction");function Q1e(e){return(0,Ye._)`{${ft.default.instancePath}="", ${ft.default.parentData}, ${ft.default.parentDataProperty}, ${ft.default.rootData}=${ft.default.data}${e.dynamicRef?(0,Ye._)`, ${ft.default.dynamicAnchors}={}`:Ye.nil}}={}`}s(Q1e,"destructureValCxt");function Z1e(e,t){e.if(ft.default.valCxt,()=>{e.var(ft.default.instancePath,(0,Ye._)`${ft.default.valCxt}.${ft.default.instancePath}`),e.var(ft.default.parentData,(0,Ye._)`${ft.default.valCxt}.${ft.default.parentData}`),e.var(ft.default.parentDataProperty,(0,Ye._)`${ft.default.valCxt}.${ft.default.parentDataProperty}`),e.var(ft.default.rootData,(0,Ye._)`${ft.default.valCxt}.${ft.default.rootData}`),t.dynamicRef&&e.var(ft.default.dynamicAnchors,(0,Ye._)`${ft.default.valCxt}.${ft.default.dynamicAnchors}`)},()=>{e.var(ft.default.instancePath,(0,Ye._)`""`),e.var(ft.default.parentData,(0,Ye._)`undefined`),e.var(ft.default.parentDataProperty,(0,Ye._)`undefined`),e.var(ft.default.rootData,ft.default.data),t.dynamicRef&&e.var(ft.default.dynamicAnchors,(0,Ye._)`{}`)})}s(Z1e,"destructureValCxtES5");function eRe(e){let{schema:t,opts:n,gen:r}=e;WY(e,()=>{n.$comment&&t.$comment&&zY(e),sRe(e),r.let(ft.default.vErrors,null),r.let(ft.default.errors,0),n.unevaluated&&tRe(e),XY(e),cRe(e)})}s(eRe,"topSchemaObjCode");function tRe(e){let{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",(0,Ye._)`${n}.evaluated`),t.if((0,Ye._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Ye._)`${e.evaluated}.props`,(0,Ye._)`undefined`)),t.if((0,Ye._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Ye._)`${e.evaluated}.items`,(0,Ye._)`undefined`))}s(tRe,"resetEvaluated");function UY(e,t){let n=typeof e=="object"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,Ye._)`/*# sourceURL=${n} */`:Ye.nil}s(UY,"funcSourceUrl");function nRe(e,t){if(JY(e)&&(YY(e),KY(e))){rRe(e,t);return}(0,HY.boolOrEmptySchema)(e,t)}s(nRe,"subschemaCode");function KY({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let n in e)if(t.RULES.all[n])return!0;return!1}s(KY,"schemaCxtHasRules");function JY(e){return typeof e.schema!="boolean"}s(JY,"isSchemaObj");function rRe(e,t){let{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&zY(e),oRe(e),aRe(e);let o=r.const("_errs",ft.default.errors);XY(e,o),r.var(t,(0,Ye._)`${o} === ${ft.default.errors}`)}s(rRe,"subSchemaObjCode");function YY(e){(0,ra.checkUnknownRules)(e),iRe(e)}s(YY,"checkKeywords");function XY(e,t){if(e.opts.jtd)return BY(e,[],!1,t);let n=(0,qY.getSchemaTypes)(e.schema),r=(0,qY.coerceAndCheckDataType)(e,n);BY(e,n,!r,t)}s(XY,"typeAndKeywords");function iRe(e){let{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,ra.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}s(iRe,"checkRefsAndKeywords");function sRe(e){let{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,ra.checkStrictMode)(e,"default is ignored in the schema root")}s(sRe,"checkNoDefault");function oRe(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,X1e.resolveUrl)(e.opts.uriResolver,e.baseId,t))}s(oRe,"updateContext");function aRe(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}s(aRe,"checkAsyncSchema");function zY({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){let o=n.$comment;if(i.$comment===!0)e.code((0,Ye._)`${ft.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let a=(0,Ye.str)`${r}/$comment`,c=e.scopeValue("root",{ref:t.root});e.code((0,Ye._)`${ft.default.self}.opts.$comment(${o}, ${a}, ${c}.schema)`)}}s(zY,"commentKeyword");function cRe(e){let{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:o}=e;n.$async?t.if((0,Ye._)`${ft.default.errors} === 0`,()=>t.return(ft.default.data),()=>t.throw((0,Ye._)`new ${i}(${ft.default.vErrors})`)):(t.assign((0,Ye._)`${r}.errors`,ft.default.vErrors),o.unevaluated&&lRe(e),t.return((0,Ye._)`${ft.default.errors} === 0`))}s(cRe,"returnResults");function lRe({gen:e,evaluated:t,props:n,items:r}){n instanceof Ye.Name&&e.assign((0,Ye._)`${t}.props`,n),r instanceof Ye.Name&&e.assign((0,Ye._)`${t}.items`,r)}s(lRe,"assignEvaluated");function BY(e,t,n,r){let{gen:i,schema:o,data:a,allErrors:c,opts:l,self:u}=e,{RULES:f}=u;if(o.$ref&&(l.ignoreKeywordsWithRef||!(0,ra.schemaHasRulesButRef)(o,f))){i.block(()=>ZY(e,"$ref",f.all.$ref.definition));return}l.jtd||uRe(e,t),i.block(()=>{for(let d of f.rules)p(d);p(f.post)});function p(d){(0,u1.shouldUseGroup)(o,d)&&(d.type?(i.if((0,WS.checkDataType)(d.type,a,l.strictNumbers)),GY(e,d),t.length===1&&t[0]===d.type&&n&&(i.else(),(0,WS.reportTypeError)(e)),i.endIf()):GY(e,d),c||i.if((0,Ye._)`${ft.default.errors} === ${r||0}`))}s(p,"groupKeywords")}s(BY,"schemaKeywords");function GY(e,t){let{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,Y1e.assignDefaults)(e,t.type),n.block(()=>{for(let o of t.rules)(0,u1.shouldUseRule)(r,o)&&ZY(e,o.keyword,o.definition,t.type)})}s(GY,"iterateKeywords");function uRe(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(fRe(e,t),e.opts.allowUnionTypes||pRe(e,t),dRe(e,e.dataTypes))}s(uRe,"checkStrictTypes");function fRe(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{QY(e.dataTypes,n)||f1(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),gRe(e,t)}}s(fRe,"checkContextTypes");function pRe(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&f1(e,"use allowUnionTypes to allow union type keyword")}s(pRe,"checkMultipleTypes");function dRe(e,t){let n=e.self.RULES.all;for(let r in n){let i=n[r];if(typeof i=="object"&&(0,u1.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(a=>hRe(t,a))&&f1(e,`missing type "${o.join(",")}" for keyword "${r}"`)}}}s(dRe,"checkKeywordTypes");function hRe(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}s(hRe,"hasApplicableType");function QY(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}s(QY,"includesType");function gRe(e,t){let n=[];for(let r of e.dataTypes)QY(t,r)?n.push(r):t.includes("integer")&&r==="number"&&n.push("integer");e.dataTypes=n}s(gRe,"narrowSchemaTypes");function f1(e,t){let n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,ra.checkStrictMode)(e,t,e.opts.strictTypes)}s(f1,"strictTypesError");var p1=class p1{constructor(t,n,r){if((0,fm.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,ra.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",eX(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,fm.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=t.gen.const("_errs",ft.default.errors))}result(t,n,r){this.failResult((0,Ye.not)(t),n,r)}failResult(t,n,r){this.gen.if(t),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,n){this.failResult((0,Ye.not)(t),void 0,n)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:n}=this;this.fail((0,Ye._)`${n} !== undefined && (${(0,Ye.or)(this.invalid$data(),t)})`)}error(t,n,r){if(n){this.setParams(n),this._error(t,r),this.setParams({});return}this._error(t,r)}_error(t,n){(t?um.reportExtraError:um.reportError)(this,this.def.error,n)}$dataError(){(0,um.reportError)(this,this.def.$dataError||um.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,um.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,n){n?Object.assign(this.params,t):this.params=t}block$data(t,n,r=Ye.nil){this.gen.block(()=>{this.check$data(t,r),n()})}check$data(t=Ye.nil,n=Ye.nil){if(!this.$data)return;let{gen:r,schemaCode:i,schemaType:o,def:a}=this;r.if((0,Ye.or)((0,Ye._)`${i} === undefined`,n)),t!==Ye.nil&&r.assign(t,!0),(o.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),t!==Ye.nil&&r.assign(t,!1)),r.else()}invalid$data(){let{gen:t,schemaCode:n,schemaType:r,def:i,it:o}=this;return(0,Ye.or)(a(),c());function a(){if(r.length){if(!(n instanceof Ye.Name))throw new Error("ajv implementation error");let l=Array.isArray(r)?r:[r];return(0,Ye._)`${(0,WS.checkDataTypes)(l,n,o.opts.strictNumbers,WS.DataType.Wrong)}`}return Ye.nil}function c(){if(i.validateSchema){let l=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,Ye._)`!${l}(${n})`}return Ye.nil}}subschema(t,n){let r=(0,l1.getSubschema)(this.it,t);(0,l1.extendSubschemaData)(r,this.it,t),(0,l1.extendSubschemaMode)(r,t);let i={...this.it,...r,items:void 0,props:void 0};return nRe(i,n),i}mergeEvaluated(t,n){let{it:r,gen:i}=this;r.opts.unevaluated&&(r.props!==!0&&t.props!==void 0&&(r.props=ra.mergeEvaluated.props(i,t.props,r.props,n)),r.items!==!0&&t.items!==void 0&&(r.items=ra.mergeEvaluated.items(i,t.items,r.items,n)))}mergeValidEvaluated(t,n){let{it:r,gen:i}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return i.if(n,()=>this.mergeEvaluated(t,Ye.Name)),!0}};s(p1,"KeywordCxt");var KS=p1;xc.KeywordCxt=KS;function ZY(e,t,n,r){let i=new KS(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?(0,fm.funcKeywordCode)(i,n):"macro"in n?(0,fm.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,fm.funcKeywordCode)(i,n)}s(ZY,"keywordCode");var mRe=/^\/(?:[^~]|~0|~1)*$/,yRe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function eX(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,o;if(e==="")return ft.default.rootData;if(e[0]==="/"){if(!mRe.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=ft.default.rootData}else{let u=yRe.exec(e);if(!u)throw new Error(`Invalid JSON-pointer: ${e}`);let f=+u[1];if(i=u[2],i==="#"){if(f>=t)throw new Error(l("property/index",f));return r[t-f]}if(f>t)throw new Error(l("data",f));if(o=n[t-f],!i)return o}let a=o,c=i.split("/");for(let u of c)u&&(o=(0,Ye._)`${o}${(0,Ye.getProperty)((0,ra.unescapeJsonPointer)(u))}`,a=(0,Ye._)`${a} && ${o}`);return a;function l(u,f){return`Cannot access ${u} ${f} levels up, current level is ${t}`}}s(eX,"getData");xc.getData=eX});var JS=y(h1=>{"use strict";Object.defineProperty(h1,"__esModule",{value:!0});var g1=class g1 extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};s(g1,"ValidationError");var d1=g1;h1.default=d1});var dm=y(b1=>{"use strict";Object.defineProperty(b1,"__esModule",{value:!0});var m1=lm(),v1=class v1 extends Error{constructor(t,n,r,i){super(i||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,m1.resolveUrl)(t,n,r),this.missingSchema=(0,m1.normalizeId)((0,m1.getFullPath)(t,this.missingRef))}};s(v1,"MissingRefError");var y1=v1;b1.default=y1});var XS=y(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.resolveSchema=cs.getCompilingSchema=cs.resolveRef=cs.compileSchema=cs.SchemaEnv=void 0;var Ms=Ct(),bRe=JS(),au=na(),Vs=lm(),tX=Mt(),vRe=pm(),E1=class E1{constructor(t){var n;this.refs={},this.dynamicAnchors={};let r;typeof t.schema=="object"&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,Vs.normalizeId)(r==null?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=r==null?void 0:r.$async,this.refs={}}};s(E1,"SchemaEnv");var Ap=E1;cs.SchemaEnv=Ap;function S1(e){let t=nX.call(this,e);if(t)return t;let n=(0,Vs.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:i}=this.opts.code,{ownProperties:o}=this.opts,a=new Ms.CodeGen(this.scope,{es5:r,lines:i,ownProperties:o}),c;e.$async&&(c=a.scopeValue("Error",{ref:bRe.default,code:(0,Ms._)`require("ajv/dist/runtime/validation_error").default`}));let l=a.scopeName("validate");e.validateName=l;let u={gen:a,allErrors:this.opts.allErrors,data:au.default.data,parentData:au.default.parentData,parentDataProperty:au.default.parentDataProperty,dataNames:[au.default.data],dataPathArr:[Ms.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ms.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:c,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Ms.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ms._)`""`,opts:this.opts,self:this},f;try{this._compilations.add(e),(0,vRe.validateFunctionCode)(u),a.optimize(this.opts.code.optimize);let p=a.toString();f=`${a.scopeRefs(au.default.scope)}return ${p}`,this.opts.code.process&&(f=this.opts.code.process(f,e));let h=new Function(`${au.default.self}`,`${au.default.scope}`,f)(this,this.scope.get());if(this.scope.value(l,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:l,validateCode:p,scopeValues:a._values}),this.opts.unevaluated){let{props:m,items:b}=u;h.evaluated={props:m instanceof Ms.Name?void 0:m,items:b instanceof Ms.Name?void 0:b,dynamicProps:m instanceof Ms.Name,dynamicItems:b instanceof Ms.Name},h.source&&(h.source.evaluated=(0,Ms.stringify)(h.evaluated))}return e.validate=h,e}catch(p){throw delete e.validate,delete e.validateName,f&&this.logger.error("Error compiling schema, function code:",f),p}finally{this._compilations.delete(e)}}s(S1,"compileSchema");cs.compileSchema=S1;function TRe(e,t,n){var r;n=(0,Vs.resolveUrl)(this.opts.uriResolver,t,n);let i=e.refs[n];if(i)return i;let o=PRe.call(this,e,n);if(o===void 0){let a=(r=e.localRefs)===null||r===void 0?void 0:r[n],{schemaId:c}=this.opts;a&&(o=new Ap({schema:a,schemaId:c,root:e,baseId:t}))}if(o!==void 0)return e.refs[n]=SRe.call(this,o)}s(TRe,"resolveRef");cs.resolveRef=TRe;function SRe(e){return(0,Vs.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:S1.call(this,e)}s(SRe,"inlineOrCompile");function nX(e){for(let t of this._compilations)if(ERe(t,e))return t}s(nX,"getCompilingSchema");cs.getCompilingSchema=nX;function ERe(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}s(ERe,"sameSchemaEnv");function PRe(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||YS.call(this,e,t)}s(PRe,"resolve");function YS(e,t){let n=this.opts.uriResolver.parse(t),r=(0,Vs._getFullPath)(this.opts.uriResolver,n),i=(0,Vs.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return T1.call(this,n,e);let o=(0,Vs.normalizeId)(r),a=this.refs[o]||this.schemas[o];if(typeof a=="string"){let c=YS.call(this,e,a);return typeof(c==null?void 0:c.schema)!="object"?void 0:T1.call(this,n,c)}if(typeof(a==null?void 0:a.schema)=="object"){if(a.validate||S1.call(this,a),o===(0,Vs.normalizeId)(t)){let{schema:c}=a,{schemaId:l}=this.opts,u=c[l];return u&&(i=(0,Vs.resolveUrl)(this.opts.uriResolver,i,u)),new Ap({schema:c,schemaId:l,root:e,baseId:i})}return T1.call(this,n,a)}}s(YS,"resolveSchema");cs.resolveSchema=YS;var ARe=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function T1(e,{baseId:t,schema:n,root:r}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let c of e.fragment.slice(1).split("/")){if(typeof n=="boolean")return;let l=n[(0,tX.unescapeFragment)(c)];if(l===void 0)return;n=l;let u=typeof n=="object"&&n[this.opts.schemaId];!ARe.has(c)&&u&&(t=(0,Vs.resolveUrl)(this.opts.uriResolver,t,u))}let o;if(typeof n!="boolean"&&n.$ref&&!(0,tX.schemaHasRulesButRef)(n,this.RULES)){let c=(0,Vs.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=YS.call(this,r,c)}let{schemaId:a}=this.opts;if(o=o||new Ap({schema:n,schemaId:a,root:r,baseId:t}),o.schema!==o.root.schema)return o}s(T1,"getJsonPointer")});var rX=y((cyt,xRe)=>{xRe.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var x1=y((lyt,lX)=>{"use strict";var ORe=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),sX=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),P1=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),oX=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),IRe=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function A1(e){let t="",n=0,r=0;for(r=0;r<e.length;r++)if(n=e[r].charCodeAt(0),n!==48){if(!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return"";t+=e[r];break}for(r+=1;r<e.length;r++){if(n=e[r].charCodeAt(0),!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return"";t+=e[r]}return t}s(A1,"stringArrayToHexStripped");var _Re=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function iX(e){return e.length=0,!0}s(iX,"consumeIsZone");function CRe(e,t,n){if(e.length){let r=A1(e);if(r!=="")t.push(r);else return n.error=!0,!1;e.length=0}return!0}s(CRe,"consumeHextets");function wRe(e){let t=0,n={error:!1,address:"",zone:""},r=[],i=[],o=!1,a=!1,c=CRe;for(let l=0;l<e.length;l++){let u=e[l];if(!(u==="["||u==="]"))if(u===":"){if(o===!0&&(a=!0),!c(i,r,n))break;if(++t>7){n.error=!0;break}l>0&&e[l-1]===":"&&(o=!0),r.push(":");continue}else if(u==="%"){if(!c(i,r,n))break;c=iX}else{i.push(u);continue}}return i.length&&(c===iX?n.zone=i.join(""):a?r.push(i.join("")):r.push(A1(i))),n.address=r.join(""),n}s(wRe,"getIPV6");function aX(e){if(NRe(e,":")<2)return{host:e,isIPV6:!1};let t=wRe(e);if(t.error)return{host:e,isIPV6:!1};{let n=t.address,r=t.address;return t.zone&&(n+="%"+t.zone,r+="%25"+t.zone),{host:n,isIPV6:!0,escapedHost:r}}}s(aX,"normalizeIPv6");function NRe(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===t&&n++;return n}s(NRe,"findToken");function RRe(e){let t=e,n=[],r=-1,i=0;for(;i=t.length;){if(i===1){if(t===".")break;if(t==="/"){n.push("/");break}else{n.push(t);break}}else if(i===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){n.push("/");break}}else if(i===3&&t==="/.."){n.length!==0&&n.pop(),n.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),n.length!==0&&n.pop();continue}}if((r=t.indexOf("/",1))===-1){n.push(t);break}else n.push(t.slice(0,r)),t=t.slice(r)}return n.join("")}s(RRe,"removeDotSegments");var FRe={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},LRe=/[@/?#:]/g,jRe=/[@/?#]/g;function cX(e,t){let n=t?jRe:LRe;return n.lastIndex=0,e.replace(n,r=>FRe[r])}s(cX,"reescapeHostDelimiters");function DRe(e,t=!1){if(e.indexOf("%")===-1)return e;let n="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let i=e.slice(r+1,r+3);if(P1(i)){let o=i.toUpperCase(),a=String.fromCharCode(parseInt(o,16));t&&oX(a)?n+=a:n+="%"+o,r+=2;continue}}n+=e[r]}return n}s(DRe,"normalizePercentEncoding");function $Re(e){let t="";for(let n=0;n<e.length;n++){if(e[n]==="%"&&n+2<e.length){let r=e.slice(n+1,n+3);if(P1(r)){let i=r.toUpperCase(),o=String.fromCharCode(parseInt(i,16));o!=="."&&oX(o)?t+=o:t+="%"+i,n+=2;continue}}IRe(e[n])?t+=e[n]:t+=escape(e[n])}return t}s($Re,"normalizePathEncoding");function kRe(e){let t="";for(let n=0;n<e.length;n++){if(e[n]==="%"&&n+2<e.length){let r=e.slice(n+1,n+3);if(P1(r)){t+="%"+r.toUpperCase(),n+=2;continue}}t+=escape(e[n])}return t}s(kRe,"escapePreservingEscapes");function MRe(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let n=unescape(e.host);if(!sX(n)){let r=aX(n);r.isIPV6===!0?n=`[${r.escapedHost}]`:n=cX(n,!1)}t.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}s(MRe,"recomposeAuthority");lX.exports={nonSimpleDomain:_Re,recomposeAuthority:MRe,reescapeHostDelimiters:cX,normalizePercentEncoding:DRe,normalizePathEncoding:$Re,escapePreservingEscapes:kRe,removeDotSegments:RRe,isIPv4:sX,isUUID:ORe,normalizeIPv6:aX,stringArrayToHexStripped:A1}});var hX=y((fyt,dX)=>{"use strict";var{isUUID:VRe}=x1(),qRe=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,URe=["http","https","ws","wss","urn","urn:uuid"];function BRe(e){return URe.indexOf(e)!==-1}s(BRe,"isValidSchemeName");function O1(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}s(O1,"wsIsSecure");function uX(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}s(uX,"httpParse");function fX(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}s(fX,"httpSerialize");function GRe(e){return e.secure=O1(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}s(GRe,"wsParse");function HRe(e){if((e.port===(O1(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,n]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}s(HRe,"wsSerialize");function WRe(e,t){if(!e.path)return e.error="URN can not be parsed",e;let n=e.path.match(qRe);if(n){let r=t.scheme||e.scheme||"urn";e.nid=n[1].toLowerCase(),e.nss=n[2];let i=`${r}:${t.nid||e.nid}`,o=I1(i);e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}s(WRe,"urnParse");function KRe(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let n=t.scheme||e.scheme||"urn",r=e.nid.toLowerCase(),i=`${n}:${t.nid||r}`,o=I1(i);o&&(e=o.serialize(e,t));let a=e,c=e.nss;return a.path=`${r||t.nid}:${c}`,t.skipEscape=!0,a}s(KRe,"urnSerialize");function JRe(e,t){let n=e;return n.uuid=n.nss,n.nss=void 0,!t.tolerant&&(!n.uuid||!VRe(n.uuid))&&(n.error=n.error||"UUID is not valid."),n}s(JRe,"urnuuidParse");function YRe(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}s(YRe,"urnuuidSerialize");var pX={scheme:"http",domainHost:!0,parse:uX,serialize:fX},XRe={scheme:"https",domainHost:pX.domainHost,parse:uX,serialize:fX},zS={scheme:"ws",domainHost:!0,parse:GRe,serialize:HRe},zRe={scheme:"wss",domainHost:zS.domainHost,parse:zS.parse,serialize:zS.serialize},QRe={scheme:"urn",parse:WRe,serialize:KRe,skipNormalize:!0},ZRe={scheme:"urn:uuid",parse:JRe,serialize:YRe,skipNormalize:!0},QS={http:pX,https:XRe,ws:zS,wss:zRe,urn:QRe,"urn:uuid":ZRe};Object.setPrototypeOf(QS,null);function I1(e){return e&&(QS[e]||QS[e.toLowerCase()])||void 0}s(I1,"getSchemeHandler");dX.exports={wsIsSecure:O1,SCHEMES:QS,isValidSchemeName:BRe,getSchemeHandler:I1}});var TX=y((dyt,ZS)=>{"use strict";var{normalizeIPv6:eFe,removeDotSegments:hm,recomposeAuthority:tFe,normalizePercentEncoding:nFe,normalizePathEncoding:rFe,escapePreservingEscapes:iFe,reescapeHostDelimiters:sFe,isIPv4:oFe,nonSimpleDomain:aFe}=x1(),{SCHEMES:cFe,getSchemeHandler:mX}=hX();function lFe(e,t){return typeof e=="string"?e=hFe(e,t):typeof e=="object"&&(e=xp(cu(e,t),t)),e}s(lFe,"normalize");function uFe(e,t,n){let r=n?Object.assign({scheme:"null"},n):{scheme:"null"},i=yX(xp(e,r),xp(t,r),r,!0);return r.skipEscape=!0,cu(i,r)}s(uFe,"resolve");function yX(e,t,n,r){let i={};return r||(e=xp(cu(e,n),n),t=xp(cu(t,n),n)),n=n||{},!n.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=hm(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=hm(t.path||""),i.query=t.query):(t.path?(t.path[0]==="/"?i.path=hm(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=hm(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}s(yX,"resolveComponent");function fFe(e,t,n){let r=gX(e,n),i=gX(t,n);return r!==void 0&&i!==void 0&&r.toLowerCase()===i.toLowerCase()}s(fFe,"equal");function cu(e,t){let n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},r=Object.assign({},t),i=[],o=mX(r.scheme||n.scheme);o&&o.serialize&&o.serialize(n,r),n.path!==void 0&&(r.skipEscape?n.path=nFe(n.path):(n.path=iFe(n.path),n.scheme!==void 0&&(n.path=n.path.split("%3A").join(":")))),r.reference!=="suffix"&&n.scheme&&i.push(n.scheme,":");let a=tFe(n);if(a!==void 0&&(r.reference!=="suffix"&&i.push("//"),i.push(a),n.path&&n.path[0]!=="/"&&i.push("/")),n.path!==void 0){let c=n.path;!r.absolutePath&&(!o||!o.absolutePath)&&(c=hm(c)),a===void 0&&c[0]==="/"&&c[1]==="/"&&(c="/%2F"+c.slice(2)),i.push(c)}return n.query!==void 0&&i.push("?",n.query),n.fragment!==void 0&&i.push("#",n.fragment),i.join("")}s(cu,"serialize");var pFe=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function dFe(e,t){if(t[2]!==void 0&&e.path&&e.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof e.port=="number"&&(e.port<0||e.port>65535))return"URI port is malformed."}s(dFe,"getParseError");function bX(e,t){let n=Object.assign({},t),r={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=!1,o=!1;n.reference==="suffix"&&(n.scheme?e=n.scheme+":"+e:e="//"+e);let a=e.match(pFe);if(a){r.scheme=a[1],r.userinfo=a[3],r.host=a[4],r.port=parseInt(a[5],10),r.path=a[6]||"",r.query=a[7],r.fragment=a[8],isNaN(r.port)&&(r.port=a[5]);let c=dFe(r,a);if(c!==void 0&&(r.error=r.error||c,i=!0),r.host)if(oFe(r.host)===!1){let f=eFe(r.host);r.host=f.host.toLowerCase(),o=f.isIPV6}else o=!0;r.scheme===void 0&&r.userinfo===void 0&&r.host===void 0&&r.port===void 0&&r.query===void 0&&!r.path?r.reference="same-document":r.scheme===void 0?r.reference="relative":r.fragment===void 0?r.reference="absolute":r.reference="uri",n.reference&&n.reference!=="suffix"&&n.reference!==r.reference&&(r.error=r.error||"URI is not a "+n.reference+" reference.");let l=mX(n.scheme||r.scheme);if(!n.unicodeSupport&&(!l||!l.unicodeSupport)&&r.host&&(n.domainHost||l&&l.domainHost)&&o===!1&&aFe(r.host))try{r.host=URL.domainToASCII(r.host.toLowerCase())}catch(u){r.error=r.error||"Host's domain name can not be converted to ASCII: "+u}if((!l||l&&!l.skipNormalize)&&(e.indexOf("%")!==-1&&(r.scheme!==void 0&&(r.scheme=unescape(r.scheme)),r.host!==void 0&&(r.host=sFe(unescape(r.host),o))),r.path&&(r.path=rFe(r.path)),r.fragment))try{r.fragment=encodeURI(decodeURIComponent(r.fragment))}catch{r.error=r.error||"URI malformed"}l&&l.parse&&l.parse(r,n)}else r.error=r.error||"URI can not be parsed.";return{parsed:r,malformedAuthorityOrPort:i}}s(bX,"parseWithStatus");function xp(e,t){return bX(e,t).parsed}s(xp,"parse");function hFe(e,t){return vX(e,t).normalized}s(hFe,"normalizeString");function vX(e,t){let{parsed:n,malformedAuthorityOrPort:r}=bX(e,t);return{normalized:r?e:cu(n,t),malformedAuthorityOrPort:r}}s(vX,"normalizeStringWithStatus");function gX(e,t){if(typeof e=="string"){let{normalized:n,malformedAuthorityOrPort:r}=vX(e,t);return r?void 0:n}if(typeof e=="object")return cu(e,t)}s(gX,"normalizeComparableURI");var _1={SCHEMES:cFe,normalize:lFe,resolve:uFe,resolveComponent:yX,equal:fFe,serialize:cu,parse:xp};ZS.exports=_1;ZS.exports.default=_1;ZS.exports.fastUri=_1});var EX=y(C1=>{"use strict";Object.defineProperty(C1,"__esModule",{value:!0});var SX=TX();SX.code='require("ajv/dist/runtime/uri").default';C1.default=SX});var wX=y(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.CodeGen=br.Name=br.nil=br.stringify=br.str=br._=br.KeywordCxt=void 0;var gFe=pm();Object.defineProperty(br,"KeywordCxt",{enumerable:!0,get:s(function(){return gFe.KeywordCxt},"get")});var Op=Ct();Object.defineProperty(br,"_",{enumerable:!0,get:s(function(){return Op._},"get")});Object.defineProperty(br,"str",{enumerable:!0,get:s(function(){return Op.str},"get")});Object.defineProperty(br,"stringify",{enumerable:!0,get:s(function(){return Op.stringify},"get")});Object.defineProperty(br,"nil",{enumerable:!0,get:s(function(){return Op.nil},"get")});Object.defineProperty(br,"Name",{enumerable:!0,get:s(function(){return Op.Name},"get")});Object.defineProperty(br,"CodeGen",{enumerable:!0,get:s(function(){return Op.CodeGen},"get")});var mFe=JS(),IX=dm(),yFe=ZN(),gm=XS(),bFe=Ct(),mm=lm(),eE=cm(),N1=Mt(),PX=rX(),vFe=EX(),_X=s((e,t)=>new RegExp(e,t),"defaultRegExp");_X.code="new RegExp";var TFe=["removeAdditional","useDefaults","coerceTypes"],SFe=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),EFe={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},PFe={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},AX=200;function AFe(e){var t,n,r,i,o,a,c,l,u,f,p,d,h,m,b,T,I,F,N,$,j,M,k,U,R;let se=e.strict,G=(t=e.code)===null||t===void 0?void 0:t.optimize,Te=G===!0||G===void 0?1:G||0,pe=(r=(n=e.code)===null||n===void 0?void 0:n.regExp)!==null&&r!==void 0?r:_X,ue=(i=e.uriResolver)!==null&&i!==void 0?i:vFe.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:se)!==null&&a!==void 0?a:!0,strictNumbers:(l=(c=e.strictNumbers)!==null&&c!==void 0?c:se)!==null&&l!==void 0?l:!0,strictTypes:(f=(u=e.strictTypes)!==null&&u!==void 0?u:se)!==null&&f!==void 0?f:"log",strictTuples:(d=(p=e.strictTuples)!==null&&p!==void 0?p:se)!==null&&d!==void 0?d:"log",strictRequired:(m=(h=e.strictRequired)!==null&&h!==void 0?h:se)!==null&&m!==void 0?m:!1,code:e.code?{...e.code,optimize:Te,regExp:pe}:{optimize:Te,regExp:pe},loopRequired:(b=e.loopRequired)!==null&&b!==void 0?b:AX,loopEnum:(T=e.loopEnum)!==null&&T!==void 0?T:AX,meta:(I=e.meta)!==null&&I!==void 0?I:!0,messages:(F=e.messages)!==null&&F!==void 0?F:!0,inlineRefs:(N=e.inlineRefs)!==null&&N!==void 0?N:!0,schemaId:($=e.schemaId)!==null&&$!==void 0?$:"$id",addUsedSchema:(j=e.addUsedSchema)!==null&&j!==void 0?j:!0,validateSchema:(M=e.validateSchema)!==null&&M!==void 0?M:!0,validateFormats:(k=e.validateFormats)!==null&&k!==void 0?k:!0,unicodeRegExp:(U=e.unicodeRegExp)!==null&&U!==void 0?U:!0,int32range:(R=e.int32range)!==null&&R!==void 0?R:!0,uriResolver:ue}}s(AFe,"requiredOptions");var R1=class R1{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...AFe(t)};let{es5:n,lines:r}=this.opts.code;this.scope=new bFe.ValueScope({scope:{},prefixes:SFe,es5:n,lines:r}),this.logger=wFe(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,yFe.getRules)(),xX.call(this,EFe,t,"NOT SUPPORTED"),xX.call(this,PFe,t,"DEPRECATED","warn"),this._metaOpts=_Fe.call(this),t.formats&&OFe.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&IFe.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),xFe.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:n,schemaId:r}=this.opts,i=PX;r==="id"&&(i={...PX},i.id=i.$id,delete i.$id),n&&t&&this.addMetaSchema(i,i[r],!1)}defaultMeta(){let{meta:t,schemaId:n}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[n]||t:void 0}validate(t,n){let r;if(typeof t=="string"){if(r=this.getSchema(t),!r)throw new Error(`no schema with key or ref "${t}"`)}else r=this.compile(t);let i=r(n);return"$async"in r||(this.errors=r.errors),i}compile(t,n){let r=this._addSchema(t,n);return r.validate||this._compileSchemaEnv(r)}compileAsync(t,n){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:r}=this.opts;return i.call(this,t,n);async function i(f,p){await o.call(this,f.$schema);let d=this._addSchema(f,p);return d.validate||a.call(this,d)}async function o(f){f&&!this.getSchema(f)&&await i.call(this,{$ref:f},!0)}async function a(f){try{return this._compileSchemaEnv(f)}catch(p){if(!(p instanceof IX.default))throw p;return c.call(this,p),await l.call(this,p.missingSchema),a.call(this,f)}}function c({missingSchema:f,missingRef:p}){if(this.refs[f])throw new Error(`AnySchema ${f} is loaded but ${p} cannot be resolved`)}async function l(f){let p=await u.call(this,f);this.refs[f]||await o.call(this,p.$schema),this.refs[f]||this.addSchema(p,f,n)}async function u(f){let p=this._loading[f];if(p)return p;try{return await(this._loading[f]=r(f))}finally{delete this._loading[f]}}}addSchema(t,n,r,i=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,r,i);return this}let o;if(typeof t=="object"){let{schemaId:a}=this.opts;if(o=t[a],o!==void 0&&typeof o!="string")throw new Error(`schema ${a} must be string`)}return n=(0,mm.normalizeId)(n||o),this._checkUnique(n),this.schemas[n]=this._addSchema(t,r,n,i,!0),this}addMetaSchema(t,n,r=this.opts.validateSchema){return this.addSchema(t,n,!0,r),this}validateSchema(t,n){if(typeof t=="boolean")return!0;let r;if(r=t.$schema,r!==void 0&&typeof r!="string")throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(r,t);if(!i&&n){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let n;for(;typeof(n=OX.call(this,t))=="string";)t=n;if(n===void 0){let{schemaId:r}=this.opts,i=new gm.SchemaEnv({schema:{},schemaId:r});if(n=gm.resolveSchema.call(this,i,t),!n)return;this.refs[t]=n}return n.validate||this._compileSchemaEnv(n)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let n=OX.call(this,t);return typeof n=="object"&&this._cache.delete(n.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let n=t;this._cache.delete(n);let r=t[this.opts.schemaId];return r&&(r=(0,mm.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let n of t)this.addKeyword(n);return this}addKeyword(t,n){let r;if(typeof t=="string")r=t,typeof n=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),n.keyword=r);else if(typeof t=="object"&&n===void 0){if(n=t,r=n.keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(RFe.call(this,r,n),!n)return(0,N1.eachItem)(r,o=>w1.call(this,o)),this;LFe.call(this,n);let i={...n,type:(0,eE.getJSONTypes)(n.type),schemaType:(0,eE.getJSONTypes)(n.schemaType)};return(0,N1.eachItem)(r,i.type.length===0?o=>w1.call(this,o,i):o=>i.type.forEach(a=>w1.call(this,o,i,a))),this}getKeyword(t){let n=this.RULES.all[t];return typeof n=="object"?n.definition:!!n}removeKeyword(t){let{RULES:n}=this;delete n.keywords[t],delete n.all[t];for(let r of n.rules){let i=r.rules.findIndex(o=>o.keyword===t);i>=0&&r.rules.splice(i,1)}return this}addFormat(t,n){return typeof n=="string"&&(n=new RegExp(n)),this.formats[t]=n,this}errorsText(t=this.errors,{separator:n=", ",dataVar:r="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${r}${i.instancePath} ${i.message}`).reduce((i,o)=>i+n+o)}$dataMetaSchema(t,n){let r=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of n){let o=i.split("/").slice(1),a=t;for(let c of o)a=a[c];for(let c in r){let l=r[c];if(typeof l!="object")continue;let{$data:u}=l.definition,f=a[c];u&&f&&(a[c]=CX(f))}}return t}_removeAllSchemas(t,n){for(let r in t){let i=t[r];(!n||n.test(r))&&(typeof i=="string"?delete t[r]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[r]))}}_addSchema(t,n,r,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let a,{schemaId:c}=this.opts;if(typeof t=="object")a=t[c];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let l=this._cache.get(t);if(l!==void 0)return l;r=(0,mm.normalizeId)(a||r);let u=mm.getSchemaRefs.call(this,t,r);return l=new gm.SchemaEnv({schema:t,schemaId:c,meta:n,baseId:r,localRefs:u}),this._cache.set(l.schema,l),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=l),i&&this.validateSchema(t,!0),l}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):gm.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let n=this.opts;this.opts=this._metaOpts;try{gm.compileSchema.call(this,t)}finally{this.opts=n}}};s(R1,"Ajv");var ym=R1;ym.ValidationError=mFe.default;ym.MissingRefError=IX.default;br.default=ym;function xX(e,t,n,r="error"){for(let i in e){let o=i;o in t&&this.logger[r](`${n}: option ${i}. ${e[o]}`)}}s(xX,"checkOptions");function OX(e){return e=(0,mm.normalizeId)(e),this.schemas[e]||this.refs[e]}s(OX,"getSchEnv");function xFe(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}s(xFe,"addInitialSchemas");function OFe(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}s(OFe,"addInitialFormats");function IFe(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}s(IFe,"addInitialKeywords");function _Fe(){let e={...this.opts};for(let t of TFe)delete e[t];return e}s(_Fe,"getMetaSchemaOptions");var CFe={log(){},warn(){},error(){}};function wFe(e){if(e===!1)return CFe;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}s(wFe,"getLogger");var NFe=/^[a-z_$][a-z0-9_$:-]*$/i;function RFe(e,t){let{RULES:n}=this;if((0,N1.eachItem)(e,r=>{if(n.keywords[r])throw new Error(`Keyword ${r} is already defined`);if(!NFe.test(r))throw new Error(`Keyword ${r} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}s(RFe,"checkKeyword");function w1(e,t,n){var r;let i=t==null?void 0:t.post;if(n&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,a=i?o.post:o.rules.find(({type:l})=>l===n);if(a||(a={type:n,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;let c={keyword:e,definition:{...t,type:(0,eE.getJSONTypes)(t.type),schemaType:(0,eE.getJSONTypes)(t.schemaType)}};t.before?FFe.call(this,a,c,t.before):a.rules.push(c),o.all[e]=c,(r=t.implements)===null||r===void 0||r.forEach(l=>this.addKeyword(l))}s(w1,"addRule");function FFe(e,t,n){let r=e.rules.findIndex(i=>i.keyword===n);r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}s(FFe,"addBeforeRule");function LFe(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=CX(t)),e.validateSchema=this.compile(t,!0))}s(LFe,"keywordMetaschema");var jFe={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function CX(e){return{anyOf:[e,jFe]}}s(CX,"schemaOrData")});var NX=y(F1=>{"use strict";Object.defineProperty(F1,"__esModule",{value:!0});var DFe={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};F1.default=DFe});var jX=y(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.callRef=lu.getValidate=void 0;var $Fe=dm(),RX=as(),_i=Ct(),Ip=na(),FX=XS(),tE=Mt(),kFe={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:n,it:r}=e,{baseId:i,schemaEnv:o,validateName:a,opts:c,self:l}=r,{root:u}=o;if((n==="#"||n==="#/")&&i===u.baseId)return p();let f=FX.resolveRef.call(l,u,i,n);if(f===void 0)throw new $Fe.default(r.opts.uriResolver,i,n);if(f instanceof FX.SchemaEnv)return d(f);return h(f);function p(){if(o===u)return nE(e,a,o,o.$async);let m=t.scopeValue("root",{ref:u});return nE(e,(0,_i._)`${m}.validate`,u,u.$async)}function d(m){let b=LX(e,m);nE(e,b,m,m.$async)}function h(m){let b=t.scopeValue("schema",c.code.source===!0?{ref:m,code:(0,_i.stringify)(m)}:{ref:m}),T=t.name("valid"),I=e.subschema({schema:m,dataTypes:[],schemaPath:_i.nil,topSchemaRef:b,errSchemaPath:n},T);e.mergeEvaluated(I),e.ok(T)}}};function LX(e,t){let{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,_i._)`${n.scopeValue("wrapper",{ref:t})}.validate`}s(LX,"getValidate");lu.getValidate=LX;function nE(e,t,n,r){let{gen:i,it:o}=e,{allErrors:a,schemaEnv:c,opts:l}=o,u=l.passContext?Ip.default.this:_i.nil;r?f():p();function f(){if(!c.$async)throw new Error("async schema referenced by sync schema");let m=i.let("valid");i.try(()=>{i.code((0,_i._)`await ${(0,RX.callValidateCode)(e,t,u)}`),h(t),a||i.assign(m,!0)},b=>{i.if((0,_i._)`!(${b} instanceof ${o.ValidationError})`,()=>i.throw(b)),d(b),a||i.assign(m,!1)}),e.ok(m)}s(f,"callAsyncRef");function p(){e.result((0,RX.callValidateCode)(e,t,u),()=>h(t),()=>d(t))}s(p,"callSyncRef");function d(m){let b=(0,_i._)`${m}.errors`;i.assign(Ip.default.vErrors,(0,_i._)`${Ip.default.vErrors} === null ? ${b} : ${Ip.default.vErrors}.concat(${b})`),i.assign(Ip.default.errors,(0,_i._)`${Ip.default.vErrors}.length`)}s(d,"addErrorsFrom");function h(m){var b;if(!o.opts.unevaluated)return;let T=(b=n==null?void 0:n.validate)===null||b===void 0?void 0:b.evaluated;if(o.props!==!0)if(T&&!T.dynamicProps)T.props!==void 0&&(o.props=tE.mergeEvaluated.props(i,T.props,o.props));else{let I=i.var("props",(0,_i._)`${m}.evaluated.props`);o.props=tE.mergeEvaluated.props(i,I,o.props,_i.Name)}if(o.items!==!0)if(T&&!T.dynamicItems)T.items!==void 0&&(o.items=tE.mergeEvaluated.items(i,T.items,o.items));else{let I=i.var("items",(0,_i._)`${m}.evaluated.items`);o.items=tE.mergeEvaluated.items(i,I,o.items,_i.Name)}}s(h,"addEvaluatedFrom")}s(nE,"callRef");lu.callRef=nE;lu.default=kFe});var DX=y(L1=>{"use strict";Object.defineProperty(L1,"__esModule",{value:!0});var MFe=NX(),VFe=jX(),qFe=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",MFe.default,VFe.default];L1.default=qFe});var $X=y(j1=>{"use strict";Object.defineProperty(j1,"__esModule",{value:!0});var rE=Ct(),Oc=rE.operators,iE={maximum:{okStr:"<=",ok:Oc.LTE,fail:Oc.GT},minimum:{okStr:">=",ok:Oc.GTE,fail:Oc.LT},exclusiveMaximum:{okStr:"<",ok:Oc.LT,fail:Oc.GTE},exclusiveMinimum:{okStr:">",ok:Oc.GT,fail:Oc.LTE}},UFe={message:s(({keyword:e,schemaCode:t})=>(0,rE.str)`must be ${iE[e].okStr} ${t}`,"message"),params:s(({keyword:e,schemaCode:t})=>(0,rE._)`{comparison: ${iE[e].okStr}, limit: ${t}}`,"params")},BFe={keyword:Object.keys(iE),type:"number",schemaType:"number",$data:!0,error:UFe,code(e){let{keyword:t,data:n,schemaCode:r}=e;e.fail$data((0,rE._)`${n} ${iE[t].fail} ${r} || isNaN(${n})`)}};j1.default=BFe});var kX=y(D1=>{"use strict";Object.defineProperty(D1,"__esModule",{value:!0});var bm=Ct(),GFe={message:s(({schemaCode:e})=>(0,bm.str)`must be multiple of ${e}`,"message"),params:s(({schemaCode:e})=>(0,bm._)`{multipleOf: ${e}}`,"params")},HFe={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:GFe,code(e){let{gen:t,data:n,schemaCode:r,it:i}=e,o=i.opts.multipleOfPrecision,a=t.let("res"),c=o?(0,bm._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,bm._)`${a} !== parseInt(${a})`;e.fail$data((0,bm._)`(${r} === 0 || (${a} = ${n}/${r}, ${c}))`)}};D1.default=HFe});var VX=y($1=>{"use strict";Object.defineProperty($1,"__esModule",{value:!0});function MX(e){let t=e.length,n=0,r=0,i;for(;r<t;)n++,i=e.charCodeAt(r++),i>=55296&&i<=56319&&r<t&&(i=e.charCodeAt(r),(i&64512)===56320&&r++);return n}s(MX,"ucs2length");$1.default=MX;MX.code='require("ajv/dist/runtime/ucs2length").default'});var qX=y(k1=>{"use strict";Object.defineProperty(k1,"__esModule",{value:!0});var uu=Ct(),WFe=Mt(),KFe=VX(),JFe={message({keyword:e,schemaCode:t}){let n=e==="maxLength"?"more":"fewer";return(0,uu.str)`must NOT have ${n} than ${t} characters`},params:s(({schemaCode:e})=>(0,uu._)`{limit: ${e}}`,"params")},YFe={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:JFe,code(e){let{keyword:t,data:n,schemaCode:r,it:i}=e,o=t==="maxLength"?uu.operators.GT:uu.operators.LT,a=i.opts.unicode===!1?(0,uu._)`${n}.length`:(0,uu._)`${(0,WFe.useFunc)(e.gen,KFe.default)}(${n})`;e.fail$data((0,uu._)`${a} ${o} ${r}`)}};k1.default=YFe});var UX=y(M1=>{"use strict";Object.defineProperty(M1,"__esModule",{value:!0});var XFe=as(),zFe=Mt(),_p=Ct(),QFe={message:s(({schemaCode:e})=>(0,_p.str)`must match pattern "${e}"`,"message"),params:s(({schemaCode:e})=>(0,_p._)`{pattern: ${e}}`,"params")},ZFe={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:QFe,code(e){let{gen:t,data:n,$data:r,schema:i,schemaCode:o,it:a}=e,c=a.opts.unicodeRegExp?"u":"";if(r){let{regExp:l}=a.opts.code,u=l.code==="new RegExp"?(0,_p._)`new RegExp`:(0,zFe.useFunc)(t,l),f=t.let("valid");t.try(()=>t.assign(f,(0,_p._)`${u}(${o}, ${c}).test(${n})`),()=>t.assign(f,!1)),e.fail$data((0,_p._)`!${f}`)}else{let l=(0,XFe.usePattern)(e,i);e.fail$data((0,_p._)`!${l}.test(${n})`)}}};M1.default=ZFe});var BX=y(V1=>{"use strict";Object.defineProperty(V1,"__esModule",{value:!0});var vm=Ct(),eLe={message({keyword:e,schemaCode:t}){let n=e==="maxProperties"?"more":"fewer";return(0,vm.str)`must NOT have ${n} than ${t} properties`},params:s(({schemaCode:e})=>(0,vm._)`{limit: ${e}}`,"params")},tLe={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:eLe,code(e){let{keyword:t,data:n,schemaCode:r}=e,i=t==="maxProperties"?vm.operators.GT:vm.operators.LT;e.fail$data((0,vm._)`Object.keys(${n}).length ${i} ${r}`)}};V1.default=tLe});var GX=y(q1=>{"use strict";Object.defineProperty(q1,"__esModule",{value:!0});var Tm=as(),Sm=Ct(),nLe=Mt(),rLe={message:s(({params:{missingProperty:e}})=>(0,Sm.str)`must have required property '${e}'`,"message"),params:s(({params:{missingProperty:e}})=>(0,Sm._)`{missingProperty: ${e}}`,"params")},iLe={keyword:"required",type:"object",schemaType:"array",$data:!0,error:rLe,code(e){let{gen:t,schema:n,schemaCode:r,data:i,$data:o,it:a}=e,{opts:c}=a;if(!o&&n.length===0)return;let l=n.length>=c.loopRequired;if(a.allErrors?u():f(),c.strictRequired){let h=e.parentSchema.properties,{definedProperties:m}=e.it;for(let b of n)if((h==null?void 0:h[b])===void 0&&!m.has(b)){let T=a.schemaEnv.baseId+a.errSchemaPath,I=`required property "${b}" is not defined at "${T}" (strictRequired)`;(0,nLe.checkStrictMode)(a,I,a.opts.strictRequired)}}function u(){if(l||o)e.block$data(Sm.nil,p);else for(let h of n)(0,Tm.checkReportMissingProp)(e,h)}s(u,"allErrorsMode");function f(){let h=t.let("missing");if(l||o){let m=t.let("valid",!0);e.block$data(m,()=>d(h,m)),e.ok(m)}else t.if((0,Tm.checkMissingProp)(e,n,h)),(0,Tm.reportMissingProp)(e,h),t.else()}s(f,"exitOnErrorMode");function p(){t.forOf("prop",r,h=>{e.setParams({missingProperty:h}),t.if((0,Tm.noPropertyInData)(t,i,h,c.ownProperties),()=>e.error())})}s(p,"loopAllRequired");function d(h,m){e.setParams({missingProperty:h}),t.forOf(h,r,()=>{t.assign(m,(0,Tm.propertyInData)(t,i,h,c.ownProperties)),t.if((0,Sm.not)(m),()=>{e.error(),t.break()})},Sm.nil)}s(d,"loopUntilMissing")}};q1.default=iLe});var HX=y(U1=>{"use strict";Object.defineProperty(U1,"__esModule",{value:!0});var Em=Ct(),sLe={message({keyword:e,schemaCode:t}){let n=e==="maxItems"?"more":"fewer";return(0,Em.str)`must NOT have ${n} than ${t} items`},params:s(({schemaCode:e})=>(0,Em._)`{limit: ${e}}`,"params")},oLe={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:sLe,code(e){let{keyword:t,data:n,schemaCode:r}=e,i=t==="maxItems"?Em.operators.GT:Em.operators.LT;e.fail$data((0,Em._)`${n}.length ${i} ${r}`)}};U1.default=oLe});var sE=y(B1=>{"use strict";Object.defineProperty(B1,"__esModule",{value:!0});var WX=a1();WX.code='require("ajv/dist/runtime/equal").default';B1.default=WX});var KX=y(H1=>{"use strict";Object.defineProperty(H1,"__esModule",{value:!0});var G1=cm(),vr=Ct(),aLe=Mt(),cLe=sE(),lLe={message:s(({params:{i:e,j:t}})=>(0,vr.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,"message"),params:s(({params:{i:e,j:t}})=>(0,vr._)`{i: ${e}, j: ${t}}`,"params")},uLe={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:lLe,code(e){let{gen:t,data:n,$data:r,schema:i,parentSchema:o,schemaCode:a,it:c}=e;if(!r&&!i)return;let l=t.let("valid"),u=o.items?(0,G1.getSchemaTypes)(o.items):[];e.block$data(l,f,(0,vr._)`${a} === false`),e.ok(l);function f(){let m=t.let("i",(0,vr._)`${n}.length`),b=t.let("j");e.setParams({i:m,j:b}),t.assign(l,!0),t.if((0,vr._)`${m} > 1`,()=>(p()?d:h)(m,b))}s(f,"validateUniqueItems");function p(){return u.length>0&&!u.some(m=>m==="object"||m==="array")}s(p,"canOptimize");function d(m,b){let T=t.name("item"),I=(0,G1.checkDataTypes)(u,T,c.opts.strictNumbers,G1.DataType.Wrong),F=t.const("indices",(0,vr._)`{}`);t.for((0,vr._)`;${m}--;`,()=>{t.let(T,(0,vr._)`${n}[${m}]`),t.if(I,(0,vr._)`continue`),u.length>1&&t.if((0,vr._)`typeof ${T} == "string"`,(0,vr._)`${T} += "_"`),t.if((0,vr._)`typeof ${F}[${T}] == "number"`,()=>{t.assign(b,(0,vr._)`${F}[${T}]`),e.error(),t.assign(l,!1).break()}).code((0,vr._)`${F}[${T}] = ${m}`)})}s(d,"loopN");function h(m,b){let T=(0,aLe.useFunc)(t,cLe.default),I=t.name("outer");t.label(I).for((0,vr._)`;${m}--;`,()=>t.for((0,vr._)`${b} = ${m}; ${b}--;`,()=>t.if((0,vr._)`${T}(${n}[${m}], ${n}[${b}])`,()=>{e.error(),t.assign(l,!1).break(I)})))}s(h,"loopN2")}};H1.default=uLe});var JX=y(K1=>{"use strict";Object.defineProperty(K1,"__esModule",{value:!0});var W1=Ct(),fLe=Mt(),pLe=sE(),dLe={message:"must be equal to constant",params:s(({schemaCode:e})=>(0,W1._)`{allowedValue: ${e}}`,"params")},hLe={keyword:"const",$data:!0,error:dLe,code(e){let{gen:t,data:n,$data:r,schemaCode:i,schema:o}=e;r||o&&typeof o=="object"?e.fail$data((0,W1._)`!${(0,fLe.useFunc)(t,pLe.default)}(${n}, ${i})`):e.fail((0,W1._)`${o} !== ${n}`)}};K1.default=hLe});var YX=y(J1=>{"use strict";Object.defineProperty(J1,"__esModule",{value:!0});var Pm=Ct(),gLe=Mt(),mLe=sE(),yLe={message:"must be equal to one of the allowed values",params:s(({schemaCode:e})=>(0,Pm._)`{allowedValues: ${e}}`,"params")},bLe={keyword:"enum",schemaType:"array",$data:!0,error:yLe,code(e){let{gen:t,data:n,$data:r,schema:i,schemaCode:o,it:a}=e;if(!r&&i.length===0)throw new Error("enum must have non-empty array");let c=i.length>=a.opts.loopEnum,l,u=s(()=>l??(l=(0,gLe.useFunc)(t,mLe.default)),"getEql"),f;if(c||r)f=t.let("valid"),e.block$data(f,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let h=t.const("vSchema",o);f=(0,Pm.or)(...i.map((m,b)=>d(h,b)))}e.pass(f);function p(){t.assign(f,!1),t.forOf("v",o,h=>t.if((0,Pm._)`${u()}(${n}, ${h})`,()=>t.assign(f,!0).break()))}s(p,"loopEnum");function d(h,m){let b=i[m];return typeof b=="object"&&b!==null?(0,Pm._)`${u()}(${n}, ${h}[${m}])`:(0,Pm._)`${n} === ${b}`}s(d,"equalCode")}};J1.default=bLe});var XX=y(Y1=>{"use strict";Object.defineProperty(Y1,"__esModule",{value:!0});var vLe=$X(),TLe=kX(),SLe=qX(),ELe=UX(),PLe=BX(),ALe=GX(),xLe=HX(),OLe=KX(),ILe=JX(),_Le=YX(),CLe=[vLe.default,TLe.default,SLe.default,ELe.default,PLe.default,ALe.default,xLe.default,OLe.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ILe.default,_Le.default];Y1.default=CLe});var z1=y(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.validateAdditionalItems=void 0;var fu=Ct(),X1=Mt(),wLe={message:s(({params:{len:e}})=>(0,fu.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,fu._)`{limit: ${e}}`,"params")},NLe={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:wLe,code(e){let{parentSchema:t,it:n}=e,{items:r}=t;if(!Array.isArray(r)){(0,X1.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}zX(e,r)}};function zX(e,t){let{gen:n,schema:r,data:i,keyword:o,it:a}=e;a.items=!0;let c=n.const("len",(0,fu._)`${i}.length`);if(r===!1)e.setParams({len:t.length}),e.pass((0,fu._)`${c} <= ${t.length}`);else if(typeof r=="object"&&!(0,X1.alwaysValidSchema)(a,r)){let u=n.var("valid",(0,fu._)`${c} <= ${t.length}`);n.if((0,fu.not)(u),()=>l(u)),e.ok(u)}function l(u){n.forRange("i",t.length,c,f=>{e.subschema({keyword:o,dataProp:f,dataPropType:X1.Type.Num},u),a.allErrors||n.if((0,fu.not)(u),()=>n.break())})}s(l,"validateItems")}s(zX,"validateAdditionalItems");Am.validateAdditionalItems=zX;Am.default=NLe});var Q1=y(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.validateTuple=void 0;var QX=Ct(),oE=Mt(),RLe=as(),FLe={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:n}=e;if(Array.isArray(t))return ZX(e,"additionalItems",t);n.items=!0,!(0,oE.alwaysValidSchema)(n,t)&&e.ok((0,RLe.validateArray)(e))}};function ZX(e,t,n=e.schema){let{gen:r,parentSchema:i,data:o,keyword:a,it:c}=e;f(i),c.opts.unevaluated&&n.length&&c.items!==!0&&(c.items=oE.mergeEvaluated.items(r,n.length,c.items));let l=r.name("valid"),u=r.const("len",(0,QX._)`${o}.length`);n.forEach((p,d)=>{(0,oE.alwaysValidSchema)(c,p)||(r.if((0,QX._)`${u} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},l)),e.ok(l))});function f(p){let{opts:d,errSchemaPath:h}=c,m=n.length,b=m===p.minItems&&(m===p.maxItems||p[t]===!1);if(d.strictTuples&&!b){let T=`"${a}" is ${m}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,oE.checkStrictMode)(c,T,d.strictTuples)}}s(f,"checkStrictTuple")}s(ZX,"validateTuple");xm.validateTuple=ZX;xm.default=FLe});var ez=y(Z1=>{"use strict";Object.defineProperty(Z1,"__esModule",{value:!0});var LLe=Q1(),jLe={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:s(e=>(0,LLe.validateTuple)(e,"items"),"code")};Z1.default=jLe});var nz=y(eR=>{"use strict";Object.defineProperty(eR,"__esModule",{value:!0});var tz=Ct(),DLe=Mt(),$Le=as(),kLe=z1(),MLe={message:s(({params:{len:e}})=>(0,tz.str)`must NOT have more than ${e} items`,"message"),params:s(({params:{len:e}})=>(0,tz._)`{limit: ${e}}`,"params")},VLe={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:MLe,code(e){let{schema:t,parentSchema:n,it:r}=e,{prefixItems:i}=n;r.items=!0,!(0,DLe.alwaysValidSchema)(r,t)&&(i?(0,kLe.validateAdditionalItems)(e,i):e.ok((0,$Le.validateArray)(e)))}};eR.default=VLe});var rz=y(tR=>{"use strict";Object.defineProperty(tR,"__esModule",{value:!0});var ls=Ct(),aE=Mt(),qLe={message:s(({params:{min:e,max:t}})=>t===void 0?(0,ls.str)`must contain at least ${e} valid item(s)`:(0,ls.str)`must contain at least ${e} and no more than ${t} valid item(s)`,"message"),params:s(({params:{min:e,max:t}})=>t===void 0?(0,ls._)`{minContains: ${e}}`:(0,ls._)`{minContains: ${e}, maxContains: ${t}}`,"params")},ULe={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:qLe,code(e){let{gen:t,schema:n,parentSchema:r,data:i,it:o}=e,a,c,{minContains:l,maxContains:u}=r;o.opts.next?(a=l===void 0?1:l,c=u):a=1;let f=t.const("len",(0,ls._)`${i}.length`);if(e.setParams({min:a,max:c}),c===void 0&&a===0){(0,aE.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&a>c){(0,aE.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,aE.alwaysValidSchema)(o,n)){let b=(0,ls._)`${f} >= ${a}`;c!==void 0&&(b=(0,ls._)`${b} && ${f} <= ${c}`),e.pass(b);return}o.items=!0;let p=t.name("valid");c===void 0&&a===1?h(p,()=>t.if(p,()=>t.break())):a===0?(t.let(p,!0),c!==void 0&&t.if((0,ls._)`${i}.length > 0`,d)):(t.let(p,!1),d()),e.result(p,()=>e.reset());function d(){let b=t.name("_valid"),T=t.let("count",0);h(b,()=>t.if(b,()=>m(T)))}s(d,"validateItemsWithCount");function h(b,T){t.forRange("i",0,f,I=>{e.subschema({keyword:"contains",dataProp:I,dataPropType:aE.Type.Num,compositeRule:!0},b),T()})}s(h,"validateItems");function m(b){t.code((0,ls._)`${b}++`),c===void 0?t.if((0,ls._)`${b} >= ${a}`,()=>t.assign(p,!0).break()):(t.if((0,ls._)`${b} > ${c}`,()=>t.assign(p,!1).break()),a===1?t.assign(p,!0):t.if((0,ls._)`${b} >= ${a}`,()=>t.assign(p,!0)))}s(m,"checkLimits")}};tR.default=ULe});var oz=y(uo=>{"use strict";Object.defineProperty(uo,"__esModule",{value:!0});uo.validateSchemaDeps=uo.validatePropertyDeps=uo.error=void 0;var nR=Ct(),BLe=Mt(),Om=as();uo.error={message:s(({params:{property:e,depsCount:t,deps:n}})=>{let r=t===1?"property":"properties";return(0,nR.str)`must have ${r} ${n} when property ${e} is present`},"message"),params:s(({params:{property:e,depsCount:t,deps:n,missingProperty:r}})=>(0,nR._)`{property: ${e},
|
|
232
|
-
missingProperty: ${r},
|
|
233
|
-
depsCount: ${t},
|
|
234
|
-
deps: ${n}}`,"params")};var GLe={keyword:"dependencies",type:"object",schemaType:"object",error:uo.error,code(e){let[t,n]=HLe(e);iz(e,t),sz(e,n)}};function HLe({schema:e}){let t={},n={};for(let r in e){if(r==="__proto__")continue;let i=Array.isArray(e[r])?t:n;i[r]=e[r]}return[t,n]}s(HLe,"splitDependencies");function iz(e,t=e.schema){let{gen:n,data:r,it:i}=e;if(Object.keys(t).length===0)return;let o=n.let("missing");for(let a in t){let c=t[a];if(c.length===0)continue;let l=(0,Om.propertyInData)(n,r,a,i.opts.ownProperties);e.setParams({property:a,depsCount:c.length,deps:c.join(", ")}),i.allErrors?n.if(l,()=>{for(let u of c)(0,Om.checkReportMissingProp)(e,u)}):(n.if((0,nR._)`${l} && (${(0,Om.checkMissingProp)(e,c,o)})`),(0,Om.reportMissingProp)(e,o),n.else())}}s(iz,"validatePropertyDeps");uo.validatePropertyDeps=iz;function sz(e,t=e.schema){let{gen:n,data:r,keyword:i,it:o}=e,a=n.name("valid");for(let c in t)(0,BLe.alwaysValidSchema)(o,t[c])||(n.if((0,Om.propertyInData)(n,r,c,o.opts.ownProperties),()=>{let l=e.subschema({keyword:i,schemaProp:c},a);e.mergeValidEvaluated(l,a)},()=>n.var(a,!0)),e.ok(a))}s(sz,"validateSchemaDeps");uo.validateSchemaDeps=sz;uo.default=GLe});var cz=y(rR=>{"use strict";Object.defineProperty(rR,"__esModule",{value:!0});var az=Ct(),WLe=Mt(),KLe={message:"property name must be valid",params:s(({params:e})=>(0,az._)`{propertyName: ${e.propertyName}}`,"params")},JLe={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:KLe,code(e){let{gen:t,schema:n,data:r,it:i}=e;if((0,WLe.alwaysValidSchema)(i,n))return;let o=t.name("valid");t.forIn("key",r,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},o),t.if((0,az.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};rR.default=JLe});var sR=y(iR=>{"use strict";Object.defineProperty(iR,"__esModule",{value:!0});var cE=as(),qs=Ct(),YLe=na(),lE=Mt(),XLe={message:"must NOT have additional properties",params:s(({params:e})=>(0,qs._)`{additionalProperty: ${e.additionalProperty}}`,"params")},zLe={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:XLe,code(e){let{gen:t,schema:n,parentSchema:r,data:i,errsCount:o,it:a}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:c,opts:l}=a;if(a.props=!0,l.removeAdditional!=="all"&&(0,lE.alwaysValidSchema)(a,n))return;let u=(0,cE.allSchemaProperties)(r.properties),f=(0,cE.allSchemaProperties)(r.patternProperties);p(),e.ok((0,qs._)`${o} === ${YLe.default.errors}`);function p(){t.forIn("key",i,T=>{!u.length&&!f.length?m(T):t.if(d(T),()=>m(T))})}s(p,"checkAdditionalProperties");function d(T){let I;if(u.length>8){let F=(0,lE.schemaRefOrVal)(a,r.properties,"properties");I=(0,cE.isOwnProperty)(t,F,T)}else u.length?I=(0,qs.or)(...u.map(F=>(0,qs._)`${T} === ${F}`)):I=qs.nil;return f.length&&(I=(0,qs.or)(I,...f.map(F=>(0,qs._)`${(0,cE.usePattern)(e,F)}.test(${T})`))),(0,qs.not)(I)}s(d,"isAdditional");function h(T){t.code((0,qs._)`delete ${i}[${T}]`)}s(h,"deleteAdditional");function m(T){if(l.removeAdditional==="all"||l.removeAdditional&&n===!1){h(T);return}if(n===!1){e.setParams({additionalProperty:T}),e.error(),c||t.break();return}if(typeof n=="object"&&!(0,lE.alwaysValidSchema)(a,n)){let I=t.name("valid");l.removeAdditional==="failing"?(b(T,I,!1),t.if((0,qs.not)(I),()=>{e.reset(),h(T)})):(b(T,I),c||t.if((0,qs.not)(I),()=>t.break()))}}s(m,"additionalPropertyCode");function b(T,I,F){let N={keyword:"additionalProperties",dataProp:T,dataPropType:lE.Type.Str};F===!1&&Object.assign(N,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(N,I)}s(b,"applyAdditionalSchema")}};iR.default=zLe});var fz=y(aR=>{"use strict";Object.defineProperty(aR,"__esModule",{value:!0});var QLe=pm(),lz=as(),oR=Mt(),uz=sR(),ZLe={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:n,parentSchema:r,data:i,it:o}=e;o.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&uz.default.code(new QLe.KeywordCxt(o,uz.default,"additionalProperties"));let a=(0,lz.allSchemaProperties)(n);for(let p of a)o.definedProperties.add(p);o.opts.unevaluated&&a.length&&o.props!==!0&&(o.props=oR.mergeEvaluated.props(t,(0,oR.toHash)(a),o.props));let c=a.filter(p=>!(0,oR.alwaysValidSchema)(o,n[p]));if(c.length===0)return;let l=t.name("valid");for(let p of c)u(p)?f(p):(t.if((0,lz.propertyInData)(t,i,p,o.opts.ownProperties)),f(p),o.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(l);function u(p){return o.opts.useDefaults&&!o.compositeRule&&n[p].default!==void 0}s(u,"hasDefault");function f(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},l)}s(f,"applyPropertySchema")}};aR.default=ZLe});var gz=y(cR=>{"use strict";Object.defineProperty(cR,"__esModule",{value:!0});var pz=as(),uE=Ct(),dz=Mt(),hz=Mt(),eje={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:n,data:r,parentSchema:i,it:o}=e,{opts:a}=o,c=(0,pz.allSchemaProperties)(n),l=c.filter(b=>(0,dz.alwaysValidSchema)(o,n[b]));if(c.length===0||l.length===c.length&&(!o.opts.unevaluated||o.props===!0))return;let u=a.strictSchema&&!a.allowMatchingProperties&&i.properties,f=t.name("valid");o.props!==!0&&!(o.props instanceof uE.Name)&&(o.props=(0,hz.evaluatedPropsToName)(t,o.props));let{props:p}=o;d();function d(){for(let b of c)u&&h(b),o.allErrors?m(b):(t.var(f,!0),m(b),t.if(f))}s(d,"validatePatternProperties");function h(b){for(let T in u)new RegExp(b).test(T)&&(0,dz.checkStrictMode)(o,`property ${T} matches pattern ${b} (use allowMatchingProperties)`)}s(h,"checkMatchingProperties");function m(b){t.forIn("key",r,T=>{t.if((0,uE._)`${(0,pz.usePattern)(e,b)}.test(${T})`,()=>{let I=l.includes(b);I||e.subschema({keyword:"patternProperties",schemaProp:b,dataProp:T,dataPropType:hz.Type.Str},f),o.opts.unevaluated&&p!==!0?t.assign((0,uE._)`${p}[${T}]`,!0):!I&&!o.allErrors&&t.if((0,uE.not)(f),()=>t.break())})})}s(m,"validateProperties")}};cR.default=eje});var mz=y(lR=>{"use strict";Object.defineProperty(lR,"__esModule",{value:!0});var tje=Mt(),nje={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:n,it:r}=e;if((0,tje.alwaysValidSchema)(r,n)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};lR.default=nje});var yz=y(uR=>{"use strict";Object.defineProperty(uR,"__esModule",{value:!0});var rje=as(),ije={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:rje.validateUnion,error:{message:"must match a schema in anyOf"}};uR.default=ije});var bz=y(fR=>{"use strict";Object.defineProperty(fR,"__esModule",{value:!0});var fE=Ct(),sje=Mt(),oje={message:"must match exactly one schema in oneOf",params:s(({params:e})=>(0,fE._)`{passingSchemas: ${e.passing}}`,"params")},aje={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:oje,code(e){let{gen:t,schema:n,parentSchema:r,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(i.opts.discriminator&&r.discriminator)return;let o=n,a=t.let("valid",!1),c=t.let("passing",null),l=t.name("_valid");e.setParams({passing:c}),t.block(u),e.result(a,()=>e.reset(),()=>e.error(!0));function u(){o.forEach((f,p)=>{let d;(0,sje.alwaysValidSchema)(i,f)?t.var(l,!0):d=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},l),p>0&&t.if((0,fE._)`${l} && ${a}`).assign(a,!1).assign(c,(0,fE._)`[${c}, ${p}]`).else(),t.if(l,()=>{t.assign(a,!0),t.assign(c,p),d&&e.mergeEvaluated(d,fE.Name)})})}s(u,"validateOneOf")}};fR.default=aje});var vz=y(pR=>{"use strict";Object.defineProperty(pR,"__esModule",{value:!0});var cje=Mt(),lje={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");let i=t.name("valid");n.forEach((o,a)=>{if((0,cje.alwaysValidSchema)(r,o))return;let c=e.subschema({keyword:"allOf",schemaProp:a},i);e.ok(i),e.mergeEvaluated(c)})}};pR.default=lje});var Ez=y(dR=>{"use strict";Object.defineProperty(dR,"__esModule",{value:!0});var pE=Ct(),Sz=Mt(),uje={message:s(({params:e})=>(0,pE.str)`must match "${e.ifClause}" schema`,"message"),params:s(({params:e})=>(0,pE._)`{failingKeyword: ${e.ifClause}}`,"params")},fje={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:uje,code(e){let{gen:t,parentSchema:n,it:r}=e;n.then===void 0&&n.else===void 0&&(0,Sz.checkStrictMode)(r,'"if" without "then" and "else" is ignored');let i=Tz(r,"then"),o=Tz(r,"else");if(!i&&!o)return;let a=t.let("valid",!0),c=t.name("_valid");if(l(),e.reset(),i&&o){let f=t.let("ifClause");e.setParams({ifClause:f}),t.if(c,u("then",f),u("else",f))}else i?t.if(c,u("then")):t.if((0,pE.not)(c),u("else"));e.pass(a,()=>e.error(!0));function l(){let f=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(f)}s(l,"validateIf");function u(f,p){return()=>{let d=e.subschema({keyword:f},c);t.assign(a,c),e.mergeValidEvaluated(d,a),p?t.assign(p,(0,pE._)`${f}`):e.setParams({ifClause:f})}}s(u,"validateClause")}};function Tz(e,t){let n=e.schema[t];return n!==void 0&&!(0,Sz.alwaysValidSchema)(e,n)}s(Tz,"hasSchema");dR.default=fje});var Pz=y(hR=>{"use strict";Object.defineProperty(hR,"__esModule",{value:!0});var pje=Mt(),dje={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,pje.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};hR.default=dje});var Az=y(gR=>{"use strict";Object.defineProperty(gR,"__esModule",{value:!0});var hje=z1(),gje=ez(),mje=Q1(),yje=nz(),bje=rz(),vje=oz(),Tje=cz(),Sje=sR(),Eje=fz(),Pje=gz(),Aje=mz(),xje=yz(),Oje=bz(),Ije=vz(),_je=Ez(),Cje=Pz();function wje(e=!1){let t=[Aje.default,xje.default,Oje.default,Ije.default,_je.default,Cje.default,Tje.default,Sje.default,vje.default,Eje.default,Pje.default];return e?t.push(gje.default,yje.default):t.push(hje.default,mje.default),t.push(bje.default),t}s(wje,"getApplicator");gR.default=wje});var xz=y(mR=>{"use strict";Object.defineProperty(mR,"__esModule",{value:!0});var Un=Ct(),Nje={message:s(({schemaCode:e})=>(0,Un.str)`must match format "${e}"`,"message"),params:s(({schemaCode:e})=>(0,Un._)`{format: ${e}}`,"params")},Rje={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Nje,code(e,t){let{gen:n,data:r,$data:i,schema:o,schemaCode:a,it:c}=e,{opts:l,errSchemaPath:u,schemaEnv:f,self:p}=c;if(!l.validateFormats)return;i?d():h();function d(){let m=n.scopeValue("formats",{ref:p.formats,code:l.code.formats}),b=n.const("fDef",(0,Un._)`${m}[${a}]`),T=n.let("fType"),I=n.let("format");n.if((0,Un._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>n.assign(T,(0,Un._)`${b}.type || "string"`).assign(I,(0,Un._)`${b}.validate`),()=>n.assign(T,(0,Un._)`"string"`).assign(I,b)),e.fail$data((0,Un.or)(F(),N()));function F(){return l.strictSchema===!1?Un.nil:(0,Un._)`${a} && !${I}`}s(F,"unknownFmt");function N(){let $=f.$async?(0,Un._)`(${b}.async ? await ${I}(${r}) : ${I}(${r}))`:(0,Un._)`${I}(${r})`,j=(0,Un._)`(typeof ${I} == "function" ? ${$} : ${I}.test(${r}))`;return(0,Un._)`${I} && ${I} !== true && ${T} === ${t} && !${j}`}s(N,"invalidFmt")}s(d,"validate$DataFormat");function h(){let m=p.formats[o];if(!m){F();return}if(m===!0)return;let[b,T,I]=N(m);b===t&&e.pass($());function F(){if(l.strictSchema===!1){p.logger.warn(j());return}throw new Error(j());function j(){return`unknown format "${o}" ignored in schema at path "${u}"`}}s(F,"unknownFormat");function N(j){let M=j instanceof RegExp?(0,Un.regexpCode)(j):l.code.formats?(0,Un._)`${l.code.formats}${(0,Un.getProperty)(o)}`:void 0,k=n.scopeValue("formats",{key:o,ref:j,code:M});return typeof j=="object"&&!(j instanceof RegExp)?[j.type||"string",j.validate,(0,Un._)`${k}.validate`]:["string",j,k]}s(N,"getFormat");function $(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!f.$async)throw new Error("async format in sync schema");return(0,Un._)`await ${I}(${r})`}return typeof T=="function"?(0,Un._)`${I}(${r})`:(0,Un._)`${I}.test(${r})`}s($,"validCondition")}s(h,"validateFormat")}};mR.default=Rje});var Oz=y(yR=>{"use strict";Object.defineProperty(yR,"__esModule",{value:!0});var Fje=xz(),Lje=[Fje.default];yR.default=Lje});var Iz=y(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.contentVocabulary=Cp.metadataVocabulary=void 0;Cp.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Cp.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Cz=y(bR=>{"use strict";Object.defineProperty(bR,"__esModule",{value:!0});var jje=DX(),Dje=XX(),$je=Az(),kje=Oz(),_z=Iz(),Mje=[jje.default,Dje.default,(0,$je.default)(),kje.default,_z.metadataVocabulary,_z.contentVocabulary];bR.default=Mje});var Nz=y(dE=>{"use strict";Object.defineProperty(dE,"__esModule",{value:!0});dE.DiscrError=void 0;var wz;(function(e){e.Tag="tag",e.Mapping="mapping"})(wz||(dE.DiscrError=wz={}))});var Fz=y(TR=>{"use strict";Object.defineProperty(TR,"__esModule",{value:!0});var wp=Ct(),vR=Nz(),Rz=XS(),Vje=dm(),qje=Mt(),Uje={message:s(({params:{discrError:e,tagName:t}})=>e===vR.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,"message"),params:s(({params:{discrError:e,tag:t,tagName:n}})=>(0,wp._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`,"params")},Bje={keyword:"discriminator",type:"object",schemaType:"object",error:Uje,code(e){let{gen:t,data:n,schema:r,parentSchema:i,it:o}=e,{oneOf:a}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=r.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let l=t.let("valid",!1),u=t.const("tag",(0,wp._)`${n}${(0,wp.getProperty)(c)}`);t.if((0,wp._)`typeof ${u} == "string"`,()=>f(),()=>e.error(!1,{discrError:vR.DiscrError.Tag,tag:u,tagName:c})),e.ok(l);function f(){let h=d();t.if(!1);for(let m in h)t.elseIf((0,wp._)`${u} === ${m}`),t.assign(l,p(h[m]));t.else(),e.error(!1,{discrError:vR.DiscrError.Mapping,tag:u,tagName:c}),t.endIf()}s(f,"validateMapping");function p(h){let m=t.name("valid"),b=e.subschema({keyword:"oneOf",schemaProp:h},m);return e.mergeEvaluated(b,wp.Name),m}s(p,"applyTagSchema");function d(){var h;let m={},b=I(i),T=!0;for(let $=0;$<a.length;$++){let j=a[$];if(j!=null&&j.$ref&&!(0,qje.schemaHasRulesButRef)(j,o.self.RULES)){let k=j.$ref;if(j=Rz.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,k),j instanceof Rz.SchemaEnv&&(j=j.schema),j===void 0)throw new Vje.default(o.opts.uriResolver,o.baseId,k)}let M=(h=j==null?void 0:j.properties)===null||h===void 0?void 0:h[c];if(typeof M!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);T=T&&(b||I(j)),F(M,$)}if(!T)throw new Error(`discriminator: "${c}" must be required`);return m;function I({required:$}){return Array.isArray($)&&$.includes(c)}function F($,j){if($.const)N($.const,j);else if($.enum)for(let M of $.enum)N(M,j);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function N($,j){if(typeof $!="string"||$ in m)throw new Error(`discriminator: "${c}" values must be unique strings`);m[$]=j}}s(d,"getMapping")}};TR.default=Bje});var Lz=y((wbt,Gje)=>{Gje.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Dz=y((En,SR)=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.MissingRefError=En.ValidationError=En.CodeGen=En.Name=En.nil=En.stringify=En.str=En._=En.KeywordCxt=En.Ajv=void 0;var Hje=wX(),Wje=Cz(),Kje=Fz(),jz=Lz(),Jje=["/properties"],hE="http://json-schema.org/draft-07/schema",ER=class ER extends Hje.default{_addVocabularies(){super._addVocabularies(),Wje.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Kje.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(jz,Jje):jz;this.addMetaSchema(t,hE,!1),this.refs["http://json-schema.org/schema"]=hE}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(hE)?hE:void 0)}};s(ER,"Ajv");var Np=ER;En.Ajv=Np;SR.exports=En=Np;SR.exports.Ajv=Np;Object.defineProperty(En,"__esModule",{value:!0});En.default=Np;var Yje=pm();Object.defineProperty(En,"KeywordCxt",{enumerable:!0,get:s(function(){return Yje.KeywordCxt},"get")});var Rp=Ct();Object.defineProperty(En,"_",{enumerable:!0,get:s(function(){return Rp._},"get")});Object.defineProperty(En,"str",{enumerable:!0,get:s(function(){return Rp.str},"get")});Object.defineProperty(En,"stringify",{enumerable:!0,get:s(function(){return Rp.stringify},"get")});Object.defineProperty(En,"nil",{enumerable:!0,get:s(function(){return Rp.nil},"get")});Object.defineProperty(En,"Name",{enumerable:!0,get:s(function(){return Rp.Name},"get")});Object.defineProperty(En,"CodeGen",{enumerable:!0,get:s(function(){return Rp.CodeGen},"get")});var Xje=JS();Object.defineProperty(En,"ValidationError",{enumerable:!0,get:s(function(){return Xje.default},"get")});var zje=dm();Object.defineProperty(En,"MissingRefError",{enumerable:!0,get:s(function(){return zje.default},"get")})});var Fp=y((Rbt,pu)=>{"use strict";function $z(e){return typeof e>"u"||e===null}s($z,"isNothing");function Qje(e){return typeof e=="object"&&e!==null}s(Qje,"isObject");function Zje(e){return Array.isArray(e)?e:$z(e)?[]:[e]}s(Zje,"toArray");function eDe(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n<r;n+=1)i=o[n],e[i]=t[i];return e}s(eDe,"extend");function tDe(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}s(tDe,"repeat");function nDe(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}s(nDe,"isNegativeZero");pu.exports.isNothing=$z;pu.exports.isObject=Qje;pu.exports.toArray=Zje;pu.exports.repeat=tDe;pu.exports.isNegativeZero=nDe;pu.exports.extend=eDe});var Lp=y((Lbt,Mz)=>{"use strict";function kz(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
|
235
|
-
|
|
236
|
-
`+e.mark.snippet),r+" "+n):r}s(kz,"formatError");function Im(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=kz(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}s(Im,"YAMLException");Im.prototype=Object.create(Error.prototype);Im.prototype.constructor=Im;Im.prototype.toString=s(function(t){return this.name+": "+kz(this,t)},"toString");Mz.exports=Im});var qz=y((Dbt,Vz)=>{"use strict";var _m=Fp();function PR(e,t,n,r,i){var o="",a="",c=Math.floor(i/2)-1;return r-t>c&&(o=" ... ",t=r-c+o.length),n-r>c&&(a=" ...",n=r+c-a.length),{str:o+e.slice(t,n).replace(/\t/g,"\u2192")+a,pos:r-t+o.length}}s(PR,"getLine");function AR(e,t){return _m.repeat(" ",t-e.length)+e}s(AR,"padStart");function rDe(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],o,a=-1;o=n.exec(e.buffer);)i.push(o.index),r.push(o.index+o[0].length),e.position<=o.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var c="",l,u,f=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+f+3);for(l=1;l<=t.linesBefore&&!(a-l<0);l++)u=PR(e.buffer,r[a-l],i[a-l],e.position-(r[a]-r[a-l]),p),c=_m.repeat(" ",t.indent)+AR((e.line-l+1).toString(),f)+" | "+u.str+`
|
|
237
|
-
`+c;for(u=PR(e.buffer,r[a],i[a],e.position,p),c+=_m.repeat(" ",t.indent)+AR((e.line+1).toString(),f)+" | "+u.str+`
|
|
238
|
-
`,c+=_m.repeat("-",t.indent+f+3+u.pos)+`^
|
|
239
|
-
`,l=1;l<=t.linesAfter&&!(a+l>=i.length);l++)u=PR(e.buffer,r[a+l],i[a+l],e.position-(r[a]-r[a+l]),p),c+=_m.repeat(" ",t.indent)+AR((e.line+l+1).toString(),f)+" | "+u.str+`
|
|
240
|
-
`;return c.replace(/\n$/,"")}s(rDe,"makeSnippet");Vz.exports=rDe});var Fr=y((kbt,Bz)=>{"use strict";var Uz=Lp(),iDe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],sDe=["scalar","sequence","mapping"];function oDe(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}s(oDe,"compileStyleAliases");function aDe(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(iDe.indexOf(n)===-1)throw new Uz('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=oDe(t.styleAliases||null),sDe.indexOf(this.kind)===-1)throw new Uz('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}s(aDe,"Type");Bz.exports=aDe});var IR=y((Vbt,Hz)=>{"use strict";var Cm=Lp(),xR=Fr();function Gz(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(o,a){o.tag===r.tag&&o.kind===r.kind&&o.multi===r.multi&&(i=a)}),n[i]=r}),n}s(Gz,"compileList");function cDe(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(s(r,"collectType"),t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}s(cDe,"compileMap");function OR(e){return this.extend(e)}s(OR,"Schema");OR.prototype.extend=s(function(t){var n=[],r=[];if(t instanceof xR)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new Cm("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof xR))throw new Cm("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Cm("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Cm("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(o){if(!(o instanceof xR))throw new Cm("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(OR.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=Gz(i,"implicit"),i.compiledExplicit=Gz(i,"explicit"),i.compiledTypeMap=cDe(i.compiledImplicit,i.compiledExplicit),i},"extend");Hz.exports=OR});var _R=y((Ubt,Wz)=>{"use strict";var lDe=Fr();Wz.exports=new lDe("tag:yaml.org,2002:str",{kind:"scalar",construct:s(function(e){return e!==null?e:""},"construct")})});var CR=y((Gbt,Kz)=>{"use strict";var uDe=Fr();Kz.exports=new uDe("tag:yaml.org,2002:seq",{kind:"sequence",construct:s(function(e){return e!==null?e:[]},"construct")})});var wR=y((Wbt,Jz)=>{"use strict";var fDe=Fr();Jz.exports=new fDe("tag:yaml.org,2002:map",{kind:"mapping",construct:s(function(e){return e!==null?e:{}},"construct")})});var NR=y((Jbt,Yz)=>{"use strict";var pDe=IR();Yz.exports=new pDe({explicit:[_R(),CR(),wR()]})});var RR=y((Ybt,Xz)=>{"use strict";var dDe=Fr();function hDe(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}s(hDe,"resolveYamlNull");function gDe(){return null}s(gDe,"constructYamlNull");function mDe(e){return e===null}s(mDe,"isNull");Xz.exports=new dDe("tag:yaml.org,2002:null",{kind:"scalar",resolve:hDe,construct:gDe,predicate:mDe,represent:{canonical:s(function(){return"~"},"canonical"),lowercase:s(function(){return"null"},"lowercase"),uppercase:s(function(){return"NULL"},"uppercase"),camelcase:s(function(){return"Null"},"camelcase"),empty:s(function(){return""},"empty")},defaultStyle:"lowercase"})});var FR=y((zbt,zz)=>{"use strict";var yDe=Fr();function bDe(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}s(bDe,"resolveYamlBoolean");function vDe(e){return e==="true"||e==="True"||e==="TRUE"}s(vDe,"constructYamlBoolean");function TDe(e){return Object.prototype.toString.call(e)==="[object Boolean]"}s(TDe,"isBoolean");zz.exports=new yDe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:bDe,construct:vDe,predicate:TDe,represent:{lowercase:s(function(e){return e?"true":"false"},"lowercase"),uppercase:s(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:s(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var LR=y((Zbt,Qz)=>{"use strict";var SDe=Fp(),EDe=Fr();function PDe(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}s(PDe,"isHexCode");function ADe(e){return 48<=e&&e<=55}s(ADe,"isOctCode");function xDe(e){return 48<=e&&e<=57}s(xDe,"isDecCode");function ODe(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!PDe(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!ADe(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!xDe(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}s(ODe,"resolveYamlInteger");function IDe(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}s(IDe,"constructYamlInteger");function _De(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!SDe.isNegativeZero(e)}s(_De,"isInteger");Qz.exports=new EDe("tag:yaml.org,2002:int",{kind:"scalar",resolve:ODe,construct:IDe,predicate:_De,represent:{binary:s(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:s(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:s(function(e){return e.toString(10)},"decimal"),hexadecimal:s(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var jR=y((tvt,e9)=>{"use strict";var Zz=Fp(),CDe=Fr(),wDe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function NDe(e){return!(e===null||!wDe.test(e)||e[e.length-1]==="_")}s(NDe,"resolveYamlFloat");function RDe(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}s(RDe,"constructYamlFloat");var FDe=/^[-+]?[0-9]+e/;function LDe(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Zz.isNegativeZero(e))return"-0.0";return n=e.toString(10),FDe.test(n)?n.replace("e",".e"):n}s(LDe,"representYamlFloat");function jDe(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Zz.isNegativeZero(e))}s(jDe,"isFloat");e9.exports=new CDe("tag:yaml.org,2002:float",{kind:"scalar",resolve:NDe,construct:RDe,predicate:jDe,represent:LDe,defaultStyle:"lowercase"})});var DR=y((rvt,t9)=>{"use strict";t9.exports=NR().extend({implicit:[RR(),FR(),LR(),jR()]})});var $R=y((ivt,n9)=>{"use strict";n9.exports=DR()});var kR=y((svt,s9)=>{"use strict";var DDe=Fr(),r9=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i9=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function $De(e){return e===null?!1:r9.exec(e)!==null||i9.exec(e)!==null}s($De,"resolveYamlTimestamp");function kDe(e){var t,n,r,i,o,a,c,l=0,u=null,f,p,d;if(t=r9.exec(e),t===null&&(t=i9.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],a=+t[5],c=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(f=+t[10],p=+(t[11]||0),u=(f*60+p)*6e4,t[9]==="-"&&(u=-u)),d=new Date(Date.UTC(n,r,i,o,a,c,l)),u&&d.setTime(d.getTime()-u),d}s(kDe,"constructYamlTimestamp");function MDe(e){return e.toISOString()}s(MDe,"representYamlTimestamp");s9.exports=new DDe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:$De,construct:kDe,instanceOf:Date,represent:MDe})});var MR=y((avt,o9)=>{"use strict";var VDe=Fr();function qDe(e){return e==="<<"||e===null}s(qDe,"resolveYamlMerge");o9.exports=new VDe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:qDe})});var qR=y((lvt,a9)=>{"use strict";var UDe=Fr(),VR=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
241
|
-
\r`;function BDe(e){if(e===null)return!1;var t,n,r=0,i=e.length,o=VR;for(n=0;n<i;n++)if(t=o.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}s(BDe,"resolveYamlBinary");function GDe(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,o=VR,a=0,c=[];for(t=0;t<i;t++)t%4===0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|o.indexOf(r.charAt(t));return n=i%4*6,n===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):n===18?(c.push(a>>10&255),c.push(a>>2&255)):n===12&&c.push(a>>4&255),new Uint8Array(c)}s(GDe,"constructYamlBinary");function HDe(e){var t="",n=0,r,i,o=e.length,a=VR;for(r=0;r<o;r++)r%3===0&&r&&(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]),n=(n<<8)+e[r];return i=o%3,i===0?(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]):i===2?(t+=a[n>>10&63],t+=a[n>>4&63],t+=a[n<<2&63],t+=a[64]):i===1&&(t+=a[n>>2&63],t+=a[n<<4&63],t+=a[64],t+=a[64]),t}s(HDe,"representYamlBinary");function WDe(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}s(WDe,"isBinary");a9.exports=new UDe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:BDe,construct:GDe,predicate:WDe,represent:HDe})});var UR=y((fvt,c9)=>{"use strict";var KDe=Fr(),JDe=Object.prototype.hasOwnProperty,YDe=Object.prototype.toString;function XDe(e){if(e===null)return!0;var t=[],n,r,i,o,a,c=e;for(n=0,r=c.length;n<r;n+=1){if(i=c[n],a=!1,YDe.call(i)!=="[object Object]")return!1;for(o in i)if(JDe.call(i,o))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}s(XDe,"resolveYamlOmap");function zDe(e){return e!==null?e:[]}s(zDe,"constructYamlOmap");c9.exports=new KDe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:XDe,construct:zDe})});var BR=y((dvt,l9)=>{"use strict";var QDe=Fr(),ZDe=Object.prototype.toString;function e$e(e){if(e===null)return!0;var t,n,r,i,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(r=a[t],ZDe.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;o[t]=[i[0],r[i[0]]]}return!0}s(e$e,"resolveYamlPairs");function t$e(e){if(e===null)return[];var t,n,r,i,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],i=Object.keys(r),o[t]=[i[0],r[i[0]]];return o}s(t$e,"constructYamlPairs");l9.exports=new QDe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:e$e,construct:t$e})});var GR=y((gvt,u9)=>{"use strict";var n$e=Fr(),r$e=Object.prototype.hasOwnProperty;function i$e(e){if(e===null)return!0;var t,n=e;for(t in n)if(r$e.call(n,t)&&n[t]!==null)return!1;return!0}s(i$e,"resolveYamlSet");function s$e(e){return e!==null?e:{}}s(s$e,"constructYamlSet");u9.exports=new n$e("tag:yaml.org,2002:set",{kind:"mapping",resolve:i$e,construct:s$e})});var gE=y((yvt,f9)=>{"use strict";f9.exports=$R().extend({implicit:[kR(),MR()],explicit:[qR(),UR(),BR(),GR()]})});var _9=y((bvt,JR)=>{"use strict";var hu=Fp(),b9=Lp(),o$e=qz(),a$e=gE(),_c=Object.prototype.hasOwnProperty,mE=1,v9=2,T9=3,yE=4,HR=1,c$e=2,p9=3,l$e=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,u$e=/[\x85\u2028\u2029]/,f$e=/[,\[\]\{\}]/,S9=/^(?:!|!!|![a-z\-]+!)$/i,E9=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function d9(e){return Object.prototype.toString.call(e)}s(d9,"_class");function fo(e){return e===10||e===13}s(fo,"is_EOL");function gu(e){return e===9||e===32}s(gu,"is_WHITE_SPACE");function Ci(e){return e===9||e===32||e===10||e===13}s(Ci,"is_WS_OR_EOL");function jp(e){return e===44||e===91||e===93||e===123||e===125}s(jp,"is_FLOW_INDICATOR");function p$e(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}s(p$e,"fromHexCode");function d$e(e){return e===120?2:e===117?4:e===85?8:0}s(d$e,"escapedHexLen");function h$e(e){return 48<=e&&e<=57?e-48:-1}s(h$e,"fromDecimalCode");function h9(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
242
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}s(h9,"simpleEscapeSequence");function g$e(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}s(g$e,"charFromCodepoint");function P9(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}s(P9,"setProperty");var A9=new Array(256),x9=new Array(256);for(du=0;du<256;du++)A9[du]=h9(du)?1:0,x9[du]=h9(du);var du;function m$e(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||a$e,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}s(m$e,"State");function O9(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=o$e(n),new b9(t,n)}s(O9,"generateError");function Xe(e,t){throw O9(e,t)}s(Xe,"throwError");function bE(e,t){e.onWarning&&e.onWarning.call(null,O9(e,t))}s(bE,"throwWarning");var g9={YAML:s(function(t,n,r){var i,o,a;t.version!==null&&Xe(t,"duplication of %YAML directive"),r.length!==1&&Xe(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&Xe(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&Xe(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&bE(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:s(function(t,n,r){var i,o;r.length!==2&&Xe(t,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],S9.test(i)||Xe(t,"ill-formed tag handle (first argument) of the TAG directive"),_c.call(t.tagMap,i)&&Xe(t,'there is a previously declared suffix for "'+i+'" tag handle'),E9.test(o)||Xe(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{Xe(t,"tag prefix is malformed: "+o)}t.tagMap[i]=o},"handleTagDirective")};function Ic(e,t,n,r){var i,o,a,c;if(t<n){if(c=e.input.slice(t,n),r)for(i=0,o=c.length;i<o;i+=1)a=c.charCodeAt(i),a===9||32<=a&&a<=1114111||Xe(e,"expected valid JSON character");else l$e.test(c)&&Xe(e,"the stream contains non-printable characters");e.result+=c}}s(Ic,"captureSegment");function m9(e,t,n,r){var i,o,a,c;for(hu.isObject(n)||Xe(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),a=0,c=i.length;a<c;a+=1)o=i[a],_c.call(t,o)||(P9(t,o,n[o]),r[o]=!0)}s(m9,"mergeMappings");function Dp(e,t,n,r,i,o,a,c,l){var u,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,f=i.length;u<f;u+=1)Array.isArray(i[u])&&Xe(e,"nested arrays are not supported inside keys"),typeof i=="object"&&d9(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&d9(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(u=0,f=o.length;u<f;u+=1)m9(e,t,o[u],n);else m9(e,t,o,n);else!e.json&&!_c.call(n,i)&&_c.call(t,i)&&(e.line=a||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,Xe(e,"duplicated mapping key")),P9(t,i,o),delete n[i];return t}s(Dp,"storeMappingPair");function WR(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Xe(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}s(WR,"readLineBreak");function Kn(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;gu(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(fo(i))for(WR(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&bE(e,"deficient indentation"),r}s(Kn,"skipSeparationSpace");function vE(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||Ci(n)))}s(vE,"testDocumentSeparator");function KR(e,t){t===1?e.result+=" ":t>1&&(e.result+=hu.repeat(`
|
|
243
|
-
`,t-1))}s(KR,"writeFoldedLines");function y$e(e,t,n){var r,i,o,a,c,l,u,f,p=e.kind,d=e.result,h;if(h=e.input.charCodeAt(e.position),Ci(h)||jp(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),Ci(i)||n&&jp(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,c=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),Ci(i)||n&&jp(i))break}else if(h===35){if(r=e.input.charCodeAt(e.position-1),Ci(r))break}else{if(e.position===e.lineStart&&vE(e)||n&&jp(h))break;if(fo(h))if(l=e.line,u=e.lineStart,f=e.lineIndent,Kn(e,!1,-1),e.lineIndent>=t){c=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=l,e.lineStart=u,e.lineIndent=f;break}}c&&(Ic(e,o,a,!1),KR(e,e.line-l),o=a=e.position,c=!1),gu(h)||(a=e.position+1),h=e.input.charCodeAt(++e.position)}return Ic(e,o,a,!1),e.result?!0:(e.kind=p,e.result=d,!1)}s(y$e,"readPlainScalar");function b$e(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Ic(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else fo(n)?(Ic(e,r,i,!0),KR(e,Kn(e,!1,t)),r=i=e.position):e.position===e.lineStart&&vE(e)?Xe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Xe(e,"unexpected end of the stream within a single quoted scalar")}s(b$e,"readSingleQuotedScalar");function v$e(e,t){var n,r,i,o,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Ic(e,n,e.position,!0),e.position++,!0;if(c===92){if(Ic(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),fo(c))Kn(e,!1,t);else if(c<256&&A9[c])e.result+=x9[c],e.position++;else if((a=d$e(c))>0){for(i=a,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(a=p$e(c))>=0?o=(o<<4)+a:Xe(e,"expected hexadecimal character");e.result+=g$e(o),e.position++}else Xe(e,"unknown escape sequence");n=r=e.position}else fo(c)?(Ic(e,n,r,!0),KR(e,Kn(e,!1,t)),n=r=e.position):e.position===e.lineStart&&vE(e)?Xe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}Xe(e,"unexpected end of the stream within a double quoted scalar")}s(v$e,"readDoubleQuotedScalar");function T$e(e,t){var n=!0,r,i,o,a=e.tag,c,l=e.anchor,u,f,p,d,h,m=Object.create(null),b,T,I,F;if(F=e.input.charCodeAt(e.position),F===91)f=93,h=!1,c=[];else if(F===123)f=125,h=!0,c={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),F=e.input.charCodeAt(++e.position);F!==0;){if(Kn(e,!0,t),F=e.input.charCodeAt(e.position),F===f)return e.position++,e.tag=a,e.anchor=l,e.kind=h?"mapping":"sequence",e.result=c,!0;n?F===44&&Xe(e,"expected the node content, but found ','"):Xe(e,"missed comma between flow collection entries"),T=b=I=null,p=d=!1,F===63&&(u=e.input.charCodeAt(e.position+1),Ci(u)&&(p=d=!0,e.position++,Kn(e,!0,t))),r=e.line,i=e.lineStart,o=e.position,$p(e,t,mE,!1,!0),T=e.tag,b=e.result,Kn(e,!0,t),F=e.input.charCodeAt(e.position),(d||e.line===r)&&F===58&&(p=!0,F=e.input.charCodeAt(++e.position),Kn(e,!0,t),$p(e,t,mE,!1,!0),I=e.result),h?Dp(e,c,m,T,b,I,r,i,o):p?c.push(Dp(e,null,m,T,b,I,r,i,o)):c.push(b),Kn(e,!0,t),F=e.input.charCodeAt(e.position),F===44?(n=!0,F=e.input.charCodeAt(++e.position)):n=!1}Xe(e,"unexpected end of the stream within a flow collection")}s(T$e,"readFlowCollection");function S$e(e,t){var n,r,i=HR,o=!1,a=!1,c=t,l=0,u=!1,f,p;if(p=e.input.charCodeAt(e.position),p===124)r=!1;else if(p===62)r=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)HR===i?i=p===43?p9:c$e:Xe(e,"repeat of a chomping mode identifier");else if((f=h$e(p))>=0)f===0?Xe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Xe(e,"repeat of an indentation width identifier"):(c=t+f-1,a=!0);else break;if(gu(p)){do p=e.input.charCodeAt(++e.position);while(gu(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!fo(p)&&p!==0)}for(;p!==0;){for(WR(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!a||e.lineIndent<c)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>c&&(c=e.lineIndent),fo(p)){l++;continue}if(e.lineIndent<c){i===p9?e.result+=hu.repeat(`
|
|
244
|
-
`,o?1+l:l):i===HR&&o&&(e.result+=`
|
|
245
|
-
`);break}for(r?gu(p)?(u=!0,e.result+=hu.repeat(`
|
|
246
|
-
`,o?1+l:l)):u?(u=!1,e.result+=hu.repeat(`
|
|
247
|
-
`,l+1)):l===0?o&&(e.result+=" "):e.result+=hu.repeat(`
|
|
248
|
-
`,l):e.result+=hu.repeat(`
|
|
249
|
-
`,o?1+l:l),o=!0,a=!0,l=0,n=e.position;!fo(p)&&p!==0;)p=e.input.charCodeAt(++e.position);Ic(e,n,e.position,!1)}return!0}s(S$e,"readBlockScalar");function y9(e,t){var n,r=e.tag,i=e.anchor,o=[],a,c=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Xe(e,"tab characters must not be used in indentation")),!(l!==45||(a=e.input.charCodeAt(e.position+1),!Ci(a))));){if(c=!0,e.position++,Kn(e,!0,-1)&&e.lineIndent<=t){o.push(null),l=e.input.charCodeAt(e.position);continue}if(n=e.line,$p(e,t,T9,!1,!0),o.push(e.result),Kn(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&l!==0)Xe(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}s(y9,"readBlockSequence");function E$e(e,t,n){var r,i,o,a,c,l,u=e.tag,f=e.anchor,p={},d=Object.create(null),h=null,m=null,b=null,T=!1,I=!1,F;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=p),F=e.input.charCodeAt(e.position);F!==0;){if(!T&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Xe(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),o=e.line,(F===63||F===58)&&Ci(r))F===63?(T&&(Dp(e,p,d,h,m,null,a,c,l),h=m=b=null),I=!0,T=!0,i=!0):T?(T=!1,i=!0):Xe(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,F=r;else{if(a=e.line,c=e.lineStart,l=e.position,!$p(e,n,v9,!1,!0))break;if(e.line===o){for(F=e.input.charCodeAt(e.position);gu(F);)F=e.input.charCodeAt(++e.position);if(F===58)F=e.input.charCodeAt(++e.position),Ci(F)||Xe(e,"a whitespace character is expected after the key-value separator within a block mapping"),T&&(Dp(e,p,d,h,m,null,a,c,l),h=m=b=null),I=!0,T=!1,i=!1,h=e.tag,m=e.result;else if(I)Xe(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=f,!0}else if(I)Xe(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=f,!0}if((e.line===o||e.lineIndent>t)&&(T&&(a=e.line,c=e.lineStart,l=e.position),$p(e,t,yE,!0,i)&&(T?m=e.result:b=e.result),T||(Dp(e,p,d,h,m,b,a,c,l),h=m=b=null),Kn(e,!0,-1),F=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&F!==0)Xe(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return T&&Dp(e,p,d,h,m,null,a,c,l),I&&(e.tag=u,e.anchor=f,e.kind="mapping",e.result=p),I}s(E$e,"readBlockMapping");function P$e(e){var t,n=!1,r=!1,i,o,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&Xe(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(n=!0,a=e.input.charCodeAt(++e.position)):a===33?(r=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(o=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):Xe(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Ci(a);)a===33&&(r?Xe(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),S9.test(i)||Xe(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),f$e.test(o)&&Xe(e,"tag suffix cannot contain flow indicator characters")}o&&!E9.test(o)&&Xe(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{Xe(e,"tag name is malformed: "+o)}return n?e.tag=o:_c.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:Xe(e,'undeclared tag handle "'+i+'"'),!0}s(P$e,"readTagProperty");function A$e(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&Xe(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Ci(n)&&!jp(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Xe(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}s(A$e,"readAnchorProperty");function x$e(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ci(r)&&!jp(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Xe(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),_c.call(e.anchorMap,n)||Xe(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Kn(e,!0,-1),!0}s(x$e,"readAlias");function $p(e,t,n,r,i){var o,a,c,l=1,u=!1,f=!1,p,d,h,m,b,T;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=c=yE===n||T9===n,r&&Kn(e,!0,-1)&&(u=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;P$e(e)||A$e(e);)Kn(e,!0,-1)?(u=!0,c=o,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):c=!1;if(c&&(c=u||i),(l===1||yE===n)&&(mE===n||v9===n?b=t:b=t+1,T=e.position-e.lineStart,l===1?c&&(y9(e,T)||E$e(e,T,b))||T$e(e,b)?f=!0:(a&&S$e(e,b)||b$e(e,b)||v$e(e,b)?f=!0:x$e(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&Xe(e,"alias node should not have any properties")):y$e(e,b,mE===n)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(f=c&&y9(e,T))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Xe(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,d=e.implicitTypes.length;p<d;p+=1)if(m=e.implicitTypes[p],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(_c.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else for(m=null,h=e.typeMap.multi[e.kind||"fallback"],p=0,d=h.length;p<d;p+=1)if(e.tag.slice(0,h[p].tag.length)===h[p].tag){m=h[p];break}m||Xe(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&Xe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Xe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}s($p,"composeNode");function O$e(e){var t=e.position,n,r,i,o=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Kn(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(o=!0,a=e.input.charCodeAt(++e.position),n=e.position;a!==0&&!Ci(a);)a=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&Xe(e,"directive name must not be less than one character in length");a!==0;){for(;gu(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!fo(a));break}if(fo(a))break;for(n=e.position;a!==0&&!Ci(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}a!==0&&WR(e),_c.call(g9,r)?g9[r](e,r,i):bE(e,'unknown document directive "'+r+'"')}if(Kn(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Kn(e,!0,-1)):o&&Xe(e,"directives end mark is expected"),$p(e,e.lineIndent-1,yE,!1,!0),Kn(e,!0,-1),e.checkLineBreaks&&u$e.test(e.input.slice(t,e.position))&&bE(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&vE(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Kn(e,!0,-1));return}if(e.position<e.length-1)Xe(e,"end of the stream or a document separator is expected");else return}s(O$e,"readDocument");function I9(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
250
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new m$e(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,Xe(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)O$e(n);return n.documents}s(I9,"loadDocuments");function I$e(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var r=I9(e,n);if(typeof t!="function")return r;for(var i=0,o=r.length;i<o;i+=1)t(r[i])}s(I$e,"loadAll");function _$e(e,t){var n=I9(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new b9("expected a single document in the stream, but found more")}}s(_$e,"load");JR.exports.loadAll=I$e;JR.exports.load=_$e});var Y9=y((Tvt,J9)=>{"use strict";var EE=Fp(),Lm=Lp(),C$e=gE(),$9=Object.prototype.toString,k9=Object.prototype.hasOwnProperty,ZR=65279,w$e=9,Nm=10,N$e=13,R$e=32,F$e=33,L$e=34,YR=35,j$e=37,D$e=38,$$e=39,k$e=42,M9=44,M$e=45,TE=58,V$e=61,q$e=62,U$e=63,B$e=64,V9=91,q9=93,G$e=96,U9=123,H$e=124,B9=125,Lr={};Lr[0]="\\0";Lr[7]="\\a";Lr[8]="\\b";Lr[9]="\\t";Lr[10]="\\n";Lr[11]="\\v";Lr[12]="\\f";Lr[13]="\\r";Lr[27]="\\e";Lr[34]='\\"';Lr[92]="\\\\";Lr[133]="\\N";Lr[160]="\\_";Lr[8232]="\\L";Lr[8233]="\\P";var W$e=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],K$e=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function J$e(e,t){var n,r,i,o,a,c,l;if(t===null)return{};for(n={},r=Object.keys(t),i=0,o=r.length;i<o;i+=1)a=r[i],c=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),l=e.compiledTypeMap.fallback[a],l&&k9.call(l.styleAliases,c)&&(c=l.styleAliases[c]),n[a]=c;return n}s(J$e,"compileStyleMap");function Y$e(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new Lm("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+EE.repeat("0",r-t.length)+t}s(Y$e,"encodeHex");var X$e=1,Rm=2;function z$e(e){this.schema=e.schema||C$e,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=EE.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=J$e(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Rm:X$e,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}s(z$e,"State");function C9(e,t){for(var n=EE.repeat(" ",t),r=0,i=-1,o="",a,c=e.length;r<c;)i=e.indexOf(`
|
|
251
|
-
`,r),i===-1?(a=e.slice(r),r=c):(a=e.slice(r,i+1),r=i+1),a.length&&a!==`
|
|
252
|
-
`&&(o+=n),o+=a;return o}s(C9,"indentString");function XR(e,t){return`
|
|
253
|
-
`+EE.repeat(" ",e.indent*t)}s(XR,"generateNextLine");function Q$e(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}s(Q$e,"testImplicitResolving");function SE(e){return e===R$e||e===w$e}s(SE,"isWhitespace");function Fm(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==ZR||65536<=e&&e<=1114111}s(Fm,"isPrintable");function w9(e){return Fm(e)&&e!==ZR&&e!==N$e&&e!==Nm}s(w9,"isNsCharOrWhitespace");function N9(e,t,n){var r=w9(e),i=r&&!SE(e);return(n?r:r&&e!==M9&&e!==V9&&e!==q9&&e!==U9&&e!==B9)&&e!==YR&&!(t===TE&&!i)||w9(t)&&!SE(t)&&e===YR||t===TE&&i}s(N9,"isPlainSafe");function Z$e(e){return Fm(e)&&e!==ZR&&!SE(e)&&e!==M$e&&e!==U$e&&e!==TE&&e!==M9&&e!==V9&&e!==q9&&e!==U9&&e!==B9&&e!==YR&&e!==D$e&&e!==k$e&&e!==F$e&&e!==H$e&&e!==V$e&&e!==q$e&&e!==$$e&&e!==L$e&&e!==j$e&&e!==B$e&&e!==G$e}s(Z$e,"isPlainSafeFirst");function eke(e){return!SE(e)&&e!==TE}s(eke,"isPlainSafeLast");function wm(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}s(wm,"codePointAt");function G9(e){var t=/^\n* /;return t.test(e)}s(G9,"needIndentIndicator");var H9=1,zR=2,W9=3,K9=4,kp=5;function tke(e,t,n,r,i,o,a,c){var l,u=0,f=null,p=!1,d=!1,h=r!==-1,m=-1,b=Z$e(wm(e,0))&&eke(wm(e,e.length-1));if(t||a)for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=wm(e,l),!Fm(u))return kp;b=b&&N9(u,f,c),f=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=wm(e,l),u===Nm)p=!0,h&&(d=d||l-m-1>r&&e[m+1]!==" ",m=l);else if(!Fm(u))return kp;b=b&&N9(u,f,c),f=u}d=d||h&&l-m-1>r&&e[m+1]!==" "}return!p&&!d?b&&!a&&!i(e)?H9:o===Rm?kp:zR:n>9&&G9(e)?kp:a?o===Rm?kp:zR:d?K9:W9}s(tke,"chooseScalarStyle");function nke(e,t,n,r,i){e.dump=(function(){if(t.length===0)return e.quotingType===Rm?'""':"''";if(!e.noCompatMode&&(W$e.indexOf(t)!==-1||K$e.test(t)))return e.quotingType===Rm?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,n),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),c=r||e.flowLevel>-1&&n>=e.flowLevel;function l(u){return Q$e(e,u)}switch(s(l,"testAmbiguity"),tke(t,c,e.indent,a,l,e.quotingType,e.forceQuotes&&!r,i)){case H9:return t;case zR:return"'"+t.replace(/'/g,"''")+"'";case W9:return"|"+R9(t,e.indent)+F9(C9(t,o));case K9:return">"+R9(t,e.indent)+F9(C9(rke(t,a),o));case kp:return'"'+ike(t,a)+'"';default:throw new Lm("impossible error: invalid scalar style")}})()}s(nke,"writeScalar");function R9(e,t){var n=G9(e)?String(t):"",r=e[e.length-1]===`
|
|
254
|
-
`,i=r&&(e[e.length-2]===`
|
|
255
|
-
`||e===`
|
|
256
|
-
`),o=i?"+":r?"":"-";return n+o+`
|
|
257
|
-
`}s(R9,"blockHeader");function F9(e){return e[e.length-1]===`
|
|
258
|
-
`?e.slice(0,-1):e}s(F9,"dropEndingNewline");function rke(e,t){for(var n=/(\n+)([^\n]*)/g,r=(function(){var u=e.indexOf(`
|
|
259
|
-
`);return u=u!==-1?u:e.length,n.lastIndex=u,L9(e.slice(0,u),t)})(),i=e[0]===`
|
|
260
|
-
`||e[0]===" ",o,a;a=n.exec(e);){var c=a[1],l=a[2];o=l[0]===" ",r+=c+(!i&&!o&&l!==""?`
|
|
261
|
-
`:"")+L9(l,t),i=o}return r}s(rke,"foldString");function L9(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,i=0,o,a=0,c=0,l="";r=n.exec(e);)c=r.index,c-i>t&&(o=a>i?a:c,l+=`
|
|
262
|
-
`+e.slice(i,o),i=o+1),a=c;return l+=`
|
|
263
|
-
`,e.length-i>t&&a>i?l+=e.slice(i,a)+`
|
|
264
|
-
`+e.slice(a+1):l+=e.slice(i),l.slice(1)}s(L9,"foldLine");function ike(e){for(var t="",n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=wm(e,i),r=Lr[n],!r&&Fm(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||Y$e(n);return t}s(ike,"escapeString");function ske(e,t,n){var r="",i=e.tag,o,a,c;for(o=0,a=n.length;o<a;o+=1)c=n[o],e.replacer&&(c=e.replacer.call(n,String(o),c)),(ia(e,t,c,!1,!1)||typeof c>"u"&&ia(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}s(ske,"writeFlowSequence");function j9(e,t,n,r){var i="",o=e.tag,a,c,l;for(a=0,c=n.length;a<c;a+=1)l=n[a],e.replacer&&(l=e.replacer.call(n,String(a),l)),(ia(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&ia(e,t+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=XR(e,t)),e.dump&&Nm===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}s(j9,"writeBlockSequence");function oke(e,t,n){var r="",i=e.tag,o=Object.keys(n),a,c,l,u,f;for(a=0,c=o.length;a<c;a+=1)f="",r!==""&&(f+=", "),e.condenseFlow&&(f+='"'),l=o[a],u=n[l],e.replacer&&(u=e.replacer.call(n,l,u)),ia(e,t,l,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ia(e,t,u,!1,!1)&&(f+=e.dump,r+=f));e.tag=i,e.dump="{"+r+"}"}s(oke,"writeFlowMapping");function ake(e,t,n,r){var i="",o=e.tag,a=Object.keys(n),c,l,u,f,p,d;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Lm("sortKeys must be a boolean or a function");for(c=0,l=a.length;c<l;c+=1)d="",(!r||i!=="")&&(d+=XR(e,t)),u=a[c],f=n[u],e.replacer&&(f=e.replacer.call(n,u,f)),ia(e,t+1,u,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&Nm===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,p&&(d+=XR(e,t)),ia(e,t+1,f,!0,p)&&(e.dump&&Nm===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=o,e.dump=i||"{}"}s(ake,"writeBlockMapping");function D9(e,t,n){var r,i,o,a,c,l;for(i=n?e.explicitTypes:e.implicitTypes,o=0,a=i.length;o<a;o+=1)if(c=i[o],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(n?c.multi&&c.representName?e.tag=c.representName(t):e.tag=c.tag:e.tag="?",c.represent){if(l=e.styleMap[c.tag]||c.defaultStyle,$9.call(c.represent)==="[object Function]")r=c.represent(t,l);else if(k9.call(c.represent,l))r=c.represent[l](t,l);else throw new Lm("!<"+c.tag+'> tag resolver accepts not "'+l+'" style');e.dump=r}return!0}return!1}s(D9,"detectType");function ia(e,t,n,r,i,o,a){e.tag=null,e.dump=n,D9(e,n,!1)||D9(e,n,!0);var c=$9.call(e.dump),l=r,u;r&&(r=e.flowLevel<0||e.flowLevel>t);var f=c==="[object Object]"||c==="[object Array]",p,d;if(f&&(p=e.duplicates.indexOf(n),d=p!==-1),(e.tag!==null&&e.tag!=="?"||d||e.indent!==2&&t>0)&&(i=!1),d&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(f&&d&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),c==="[object Object]")r&&Object.keys(e.dump).length!==0?(ake(e,t,e.dump,i),d&&(e.dump="&ref_"+p+e.dump)):(oke(e,t,e.dump),d&&(e.dump="&ref_"+p+" "+e.dump));else if(c==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!a&&t>0?j9(e,t-1,e.dump,i):j9(e,t,e.dump,i),d&&(e.dump="&ref_"+p+e.dump)):(ske(e,t,e.dump),d&&(e.dump="&ref_"+p+" "+e.dump));else if(c==="[object String]")e.tag!=="?"&&nke(e,e.dump,t,o,l);else{if(c==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Lm("unacceptable kind of an object to dump "+c)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}s(ia,"writeNode");function cke(e,t){var n=[],r=[],i,o;for(QR(e,n,r),i=0,o=r.length;i<o;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(o)}s(cke,"getDuplicateReferences");function QR(e,t,n){var r,i,o;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)QR(e[i],t,n);else for(r=Object.keys(e),i=0,o=r.length;i<o;i+=1)QR(e[r[i]],t,n)}s(QR,"inspectNode");function lke(e,t){t=t||{};var n=new z$e(t);n.noRefs||cke(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),ia(n,0,r,!0,!0)?n.dump+`
|
|
265
|
-
`:""}s(lke,"dump");J9.exports.dump=lke});var z9=y((Evt,ri)=>{"use strict";var X9=_9(),uke=Y9();function eF(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}s(eF,"renamed");ri.exports.Type=Fr();ri.exports.Schema=IR();ri.exports.FAILSAFE_SCHEMA=NR();ri.exports.JSON_SCHEMA=DR();ri.exports.CORE_SCHEMA=$R();ri.exports.DEFAULT_SCHEMA=gE();ri.exports.load=X9.load;ri.exports.loadAll=X9.loadAll;ri.exports.dump=uke.dump;ri.exports.YAMLException=Lp();ri.exports.types={binary:qR(),float:jR(),map:wR(),null:RR(),pairs:BR(),set:GR(),timestamp:kR(),bool:FR(),int:LR(),merge:MR(),omap:UR(),seq:CR(),str:_R()};ri.exports.safeLoad=eF("safeLoad","load");ri.exports.safeLoadAll=eF("safeLoadAll","loadAll");ri.exports.safeDump=eF("safeDump","dump")});var Z9=y(Vp=>{"use strict";var Q9=Vp&&Vp.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vp,"__esModule",{value:!0});Vp.UI5Config=void 0;var fke=eN(),jm=tN(),us=nN(),pke=Q9(Dz()),Mp=require("path"),dke=require("fs/promises"),hke=Q9(z9()),Cc=class Cc{document;async validateSchema(){if(!Cc.validate){let n=(0,Mp.join)(__dirname,"..","dist","schema","ui5.yaml.json"),r=JSON.parse(await(0,dke.readFile)(n,"utf8"));if(!r)throw Error("The schema file was not found. Validation is not possible.");Cc.validate=new pke.default({strict:!1}).compile(r)}let t=!1;try{t=hke.default.loadAll(this.document.toString()).every(n=>Cc.validate(n))}catch(n){throw Error(`No validation possible. Error: ${n}`)}return t}static async newInstance(t,n){let r=new Cc;if(r.document=await fke.YamlDocument.newInstance(t),((n==null?void 0:n.validateSchema)??!1)&&!await r.validateSchema())throw new Error("This file does not comply with the schema.");return r}getConfiguration(){let t;try{t=this.document.getMap({path:"resources"}).toJSON()}catch{t={}}return t.configuration??{}}setConfiguration(t){return this.document.setIn({path:"resources",value:{configuration:t}}),this}setMetadata(t){return this.document.setIn({path:"metadata",value:t}),this}getType(){return this.document.getNode({path:"type"})}setType(t){return this.document.setIn({path:"type",value:t}),this}addCustomConfiguration(t,n){try{this.document.getMap({path:"customConfiguration"}).setIn([t],n)}catch{this.document.setIn({path:"customConfiguration",value:{[t]:n}})}}getCustomConfiguration(t){var n;try{let r=this.document.getMap({path:"customConfiguration"}).get(t);return((n=r==null?void 0:r.toJSON)==null?void 0:n.call(r))??(r==null?void 0:r.toString())}catch{return}}getUi5Framework(){return this.document.getMap({path:"framework"}).toJSON()}addUI5Framework(t,n,r,i="sap_fiori_3"){let o=[];for(let a of r)o.push({name:a});return o.push({name:`themelib_${i.replace(/_dark$|_hcw$|_hcb$/,"")}`}),this.document.setIn({path:"framework",value:{name:t,version:n,libraries:o}}),this}addCustomTasks(t,n){for(let r of t)this.document.appendTo({path:"builder.customTasks",value:r,comments:n});return this}addCustomMiddleware(t,n){for(let r of t)this.document.appendTo({path:"server.customMiddleware",value:r,comments:n});return this}addFioriToolsAppReloadMiddleware(){return this.document.appendTo({path:"server.customMiddleware",value:(0,jm.getAppReloadMiddlewareConfig)()}),this}addFioriToolsProxyMiddleware(t,n){let r=(t==null?void 0:t.ignoreCertErrors)??(t==null?void 0:t.ignoreCertError)??!1,{config:i,comments:o}=(0,jm.getFioriToolsProxyMiddlewareConfig)(t.backend,t.ui5,n,r);return this.document.appendTo({path:"server.customMiddleware",value:i,comments:o}),this}getFioriToolsProxyMiddlewareConfiguration(){let t=this.document.getSequence({path:"server.customMiddleware"}),n=this.document.findItem(t,r=>r.name===us.fioriToolsProxy);if(!n)throw new Error("Could not find fiori-tools-proxy");return this.document.getMap({start:n,path:"configuration"})}addBackendToFioriToolsProxyMiddleware(t,n=!1){let r=this.getFioriToolsProxyMiddlewareConfiguration(),i=r.toJSON(),o=(0,jm.getBackendComments)(t),a=this.document.createNode({value:t,comments:o});if(((i==null?void 0:i.ignoreCertErrors)??(i==null?void 0:i.ignoreCertError)??!1)!==n&&(r.set("ignoreCertErrors",n),(i==null?void 0:i.ignoreCertError)!==void 0&&r.delete("ignoreCertError")),i!=null&&i.backend){if(!(i!=null&&i.backend.find(l=>l.path===t.path))){let l=this.document.getSequence({start:r,path:"backend"});l.items.length===0?r.set("backend",[a]):l.add(a)}}else r.set("backend",[a]);return this}updateBackendToFioriToolsProxyMiddleware(t){let n=this.getFioriToolsProxyMiddlewareConfiguration(),r=n.toJSON(),i=(0,jm.getBackendComments)(t),o=this.document.createNode({value:t,comments:i});if(r!=null&&r.backend){let a=r==null?void 0:r.backend.findIndex(c=>c.path&&c.path===t.path);a!==-1&&this.document.getSequence({start:n,path:"backend"}).set(a,o)}return this}removeBackendFromFioriToolsProxyMiddleware(t){let n=this.findCustomMiddleware(us.fioriToolsProxy);if(n){let r=n==null?void 0:n.configuration;if(r!=null&&r.backend){let i="/sap",o=r.backend.findIndex(a=>a.path===i);r.backend=r.backend.filter((a,c)=>c===o?!0:a.path!==t),this.updateCustomMiddleware(n)}}else throw new Error("Could not find fiori-tools-proxy");return this}getBackendConfigFromFioriToolsProxyMiddleware(t){return this.getBackendConfigsFromFioriToolsProxyMiddleware().find(r=>r.path===t)}getBackendConfigsFromFioriToolsProxyMiddleware(){let t;try{let n=this.document.getSequence({path:"server.customMiddleware"}),r=this.document.findItem(n,o=>o.name===us.fioriToolsProxy),i=this.document.getMap({start:r,path:"configuration"});t=this.document.getSequence({start:i,path:"backend"}).toJSON()}catch{return[]}return t}addUi5ToFioriToolsProxyMiddleware(t){let n=this.document.getSequence({path:"server.customMiddleware"}),r=this.document.findItem(n,i=>i.name===us.fioriToolsProxy);if(!r)throw new Error("Could not find fiori-tools-proxy");return this.document.getMap({start:r,path:"configuration"}).set("ui5",[t]),this}addMockServerMiddleware(t,n,r,i){return this.document.appendTo({path:"server.customMiddleware",value:(0,jm.getMockServerMiddlewareConfig)(t,n,r,i)}),this}addServiceToMockserverMiddleware(t,n,r,i=[]){let o=this.findCustomMiddleware("sap-fe-mockserver");if(o){let a=`.${Mp.posix.sep}${(0,Mp.relative)(t,(0,Mp.join)(n,"localService",r.serviceName)).replaceAll(Mp.sep,Mp.posix.sep)}`,c=o==null?void 0:o.configuration;if(c!=null&&c.services){let l=r.servicePath.replace(/\/$/,""),u={urlPath:l,metadataPath:r.metadataPath??`${a}/metadata.xml`,mockdataPath:`${a}/data`,generateMockData:!0};r.resolveExternalServiceReferences===!0&&(u.resolveExternalServiceReferences=!0),c.services.findIndex(p=>p.urlPath===l)===-1&&(c.services=[...c.services,u])}if(c!=null&&c.annotations){let l=c.annotations;i.forEach(u=>{l.find(f=>f.urlPath===u.urlPath)||l.push(u)})}this.updateCustomMiddleware(o)}else throw new Error("Could not find sap-fe-mockserver");return this}removeServiceFromMockServerMiddleware(t,n){let r=this.findCustomMiddleware("sap-fe-mockserver");if(r){let i=r==null?void 0:r.configuration;if(i!=null&&i.services&&(i.services=i==null?void 0:i.services.filter(o=>o.urlPath!==t.replace(/\/$/,""))),i!=null&&i.annotations){let o=i.annotations;n.forEach(a=>{i.annotations=o.filter(c=>c.urlPath!==a)})}this.updateCustomMiddleware(r)}else throw new Error("Could not find sap-fe-mockserver");return this}addAbapDeployTask(t,n,r=!0,i,o=!1,a,c=[]){this.document.appendTo({path:"builder.resources.excludes",value:"/test/**"}),this.document.appendTo({path:"builder.resources.excludes",value:"/localService/**"});let l={target:t,app:n,exclude:i,lrep:a};return o&&(l.index=!0),this.document.appendTo({path:"builder.customTasks",value:{name:r?"deploy-to-abap":"abap-deploy-task",afterTask:"generateCachebusterInfo",configuration:l},comments:c}),this}addCloudFoundryDeployTask(t,n=!1,r=!1){return this.document.appendTo({path:"builder.resources.excludes",value:"/test/**"}),this.document.appendTo({path:"builder.resources.excludes",value:"/localService/**"}),this.document.appendTo({path:"builder.customTasks",value:{name:"ui5-task-zipper",afterTask:"generateCachebusterInfo",configuration:{archiveName:t,relativePaths:!0,additionalFiles:["xs-app.json"]}}}),n&&this.document.appendTo({path:"builder.customTasks",value:{name:"ui5-tooling-modules-task",afterTask:"replaceVersion",configuration:{}}}),r&&this.document.appendTo({path:"builder.customTasks",value:{name:"ui5-tooling-transpile-task",afterTask:"replaceVersion",configuration:{debug:!0,removeConsoleStatements:!0,transpileAsync:!0,transpileTypeScript:!0}}}),this}removeCustomMiddleware(t){return this.document.deleteAt({path:"server.customMiddleware",matcher:{key:"name",value:t}}),this}removeCustomTask(t){return this.document.deleteAt({path:"builder.customTasks",matcher:{key:"name",value:t}}),this}removeConfig(t){return this.document.delete(t),this}addComment({comment:t,location:n="beginning"}){return this.document.addDocumentComment({comment:t,location:n}),this}findCustomActivity(t,n){let r;try{r=this.document.getSequence({path:n})}catch{}let i;return r&&(i=this.document.findItem(r,o=>o.name===t)),i?i.toJSON():void 0}findCustomMiddleware(t){return this.findCustomActivity(t,"server.customMiddleware")}findCustomTask(t){return this.findCustomActivity(t,"builder.customTasks")}updateCustomMiddleware(t){let n=t.name;return this.findCustomMiddleware(n)?this.document.updateAt({path:"server.customMiddleware",matcher:{key:"name",value:n},value:t,mode:"overwrite"}):this.addCustomMiddleware([t]),this}mergeCustomMiddleware(t){let n=t.name;return this.findCustomMiddleware(n)&&this.document.updateAt({path:"server.customMiddleware",matcher:{key:"name",value:n},value:t,mode:"merge"}),this}getServeStaticConfig(t,n){return t?{name:us.serveStatic,beforeMiddleware:us.fioriToolsProxy,configuration:{paths:n}}:{name:us.serveStatic,afterMiddleware:"compression",configuration:{paths:n}}}addServeStaticConfig(t){let n=this.findCustomMiddleware(us.serveStatic),r=this.findCustomMiddleware(us.fioriToolsProxy);if(n)n.afterMiddleware==="compression"&&r?this.updateCustomMiddleware({name:us.serveStatic,beforeMiddleware:us.fioriToolsProxy,configuration:{paths:[...n.configuration.paths,...t]}}):this.mergeCustomMiddleware({name:us.serveStatic,configuration:{paths:[...n.configuration.paths,...t]}});else{let i=this.getServeStaticConfig(!!r,t);this.addCustomMiddleware([i])}return this}toString(){return this.document.toString()}};s(Cc,"UI5Config"),GV(Cc,"validate");var tF=Cc;Vp.UI5Config=tF});var t6=y((Ovt,e6)=>{var gke=Ww(),mke=Jw(),yke=mke(function(e,t,n,r){gke(e,t,n,r)});e6.exports=yke});var Dm=y((Ivt,n6)=>{"use strict";var bke="2.0.0",vke=Number.MAX_SAFE_INTEGER||9007199254740991,Tke=16,Ske=250,Eke=["major","premajor","minor","preminor","patch","prepatch","prerelease"];n6.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Tke,MAX_SAFE_BUILD_LENGTH:Ske,MAX_SAFE_INTEGER:vke,RELEASE_TYPES:Eke,SEMVER_SPEC_VERSION:bke,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var $m=y((_vt,r6)=>{"use strict";var Pke=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};r6.exports=Pke});var qp=y((po,i6)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:nF,MAX_SAFE_BUILD_LENGTH:Ake,MAX_LENGTH:xke}=Dm(),Oke=$m();po=i6.exports={};var Ike=po.re=[],_ke=po.safeRe=[],$e=po.src=[],Cke=po.safeSrc=[],ke=po.t={},wke=0,rF="[a-zA-Z0-9-]",Nke=[["\\s",1],["\\d",xke],[rF,Ake]],Rke=s(e=>{for(let[t,n]of Nke)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},"makeSafeRegex"),mt=s((e,t,n)=>{let r=Rke(t),i=wke++;Oke(e,i,t),ke[e]=i,$e[i]=t,Cke[i]=r,Ike[i]=new RegExp(t,n?"g":void 0),_ke[i]=new RegExp(r,n?"g":void 0)},"createToken");mt("NUMERICIDENTIFIER","0|[1-9]\\d*");mt("NUMERICIDENTIFIERLOOSE","\\d+");mt("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${rF}*`);mt("MAINVERSION",`(${$e[ke.NUMERICIDENTIFIER]})\\.(${$e[ke.NUMERICIDENTIFIER]})\\.(${$e[ke.NUMERICIDENTIFIER]})`);mt("MAINVERSIONLOOSE",`(${$e[ke.NUMERICIDENTIFIERLOOSE]})\\.(${$e[ke.NUMERICIDENTIFIERLOOSE]})\\.(${$e[ke.NUMERICIDENTIFIERLOOSE]})`);mt("PRERELEASEIDENTIFIER",`(?:${$e[ke.NONNUMERICIDENTIFIER]}|${$e[ke.NUMERICIDENTIFIER]})`);mt("PRERELEASEIDENTIFIERLOOSE",`(?:${$e[ke.NONNUMERICIDENTIFIER]}|${$e[ke.NUMERICIDENTIFIERLOOSE]})`);mt("PRERELEASE",`(?:-(${$e[ke.PRERELEASEIDENTIFIER]}(?:\\.${$e[ke.PRERELEASEIDENTIFIER]})*))`);mt("PRERELEASELOOSE",`(?:-?(${$e[ke.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${$e[ke.PRERELEASEIDENTIFIERLOOSE]})*))`);mt("BUILDIDENTIFIER",`${rF}+`);mt("BUILD",`(?:\\+(${$e[ke.BUILDIDENTIFIER]}(?:\\.${$e[ke.BUILDIDENTIFIER]})*))`);mt("FULLPLAIN",`v?${$e[ke.MAINVERSION]}${$e[ke.PRERELEASE]}?${$e[ke.BUILD]}?`);mt("FULL",`^${$e[ke.FULLPLAIN]}$`);mt("LOOSEPLAIN",`[v=\\s]*${$e[ke.MAINVERSIONLOOSE]}${$e[ke.PRERELEASELOOSE]}?${$e[ke.BUILD]}?`);mt("LOOSE",`^${$e[ke.LOOSEPLAIN]}$`);mt("GTLT","((?:<|>)?=?)");mt("XRANGEIDENTIFIERLOOSE",`${$e[ke.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);mt("XRANGEIDENTIFIER",`${$e[ke.NUMERICIDENTIFIER]}|x|X|\\*`);mt("XRANGEPLAIN",`[v=\\s]*(${$e[ke.XRANGEIDENTIFIER]})(?:\\.(${$e[ke.XRANGEIDENTIFIER]})(?:\\.(${$e[ke.XRANGEIDENTIFIER]})(?:${$e[ke.PRERELEASE]})?${$e[ke.BUILD]}?)?)?`);mt("XRANGEPLAINLOOSE",`[v=\\s]*(${$e[ke.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$e[ke.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$e[ke.XRANGEIDENTIFIERLOOSE]})(?:${$e[ke.PRERELEASELOOSE]})?${$e[ke.BUILD]}?)?)?`);mt("XRANGE",`^${$e[ke.GTLT]}\\s*${$e[ke.XRANGEPLAIN]}$`);mt("XRANGELOOSE",`^${$e[ke.GTLT]}\\s*${$e[ke.XRANGEPLAINLOOSE]}$`);mt("COERCEPLAIN",`(^|[^\\d])(\\d{1,${nF}})(?:\\.(\\d{1,${nF}}))?(?:\\.(\\d{1,${nF}}))?`);mt("COERCE",`${$e[ke.COERCEPLAIN]}(?:$|[^\\d])`);mt("COERCEFULL",$e[ke.COERCEPLAIN]+`(?:${$e[ke.PRERELEASE]})?(?:${$e[ke.BUILD]})?(?:$|[^\\d])`);mt("COERCERTL",$e[ke.COERCE],!0);mt("COERCERTLFULL",$e[ke.COERCEFULL],!0);mt("LONETILDE","(?:~>?)");mt("TILDETRIM",`(\\s*)${$e[ke.LONETILDE]}\\s+`,!0);po.tildeTrimReplace="$1~";mt("TILDE",`^${$e[ke.LONETILDE]}${$e[ke.XRANGEPLAIN]}$`);mt("TILDELOOSE",`^${$e[ke.LONETILDE]}${$e[ke.XRANGEPLAINLOOSE]}$`);mt("LONECARET","(?:\\^)");mt("CARETTRIM",`(\\s*)${$e[ke.LONECARET]}\\s+`,!0);po.caretTrimReplace="$1^";mt("CARET",`^${$e[ke.LONECARET]}${$e[ke.XRANGEPLAIN]}$`);mt("CARETLOOSE",`^${$e[ke.LONECARET]}${$e[ke.XRANGEPLAINLOOSE]}$`);mt("COMPARATORLOOSE",`^${$e[ke.GTLT]}\\s*(${$e[ke.LOOSEPLAIN]})$|^$`);mt("COMPARATOR",`^${$e[ke.GTLT]}\\s*(${$e[ke.FULLPLAIN]})$|^$`);mt("COMPARATORTRIM",`(\\s*)${$e[ke.GTLT]}\\s*(${$e[ke.LOOSEPLAIN]}|${$e[ke.XRANGEPLAIN]})`,!0);po.comparatorTrimReplace="$1$2$3";mt("HYPHENRANGE",`^\\s*(${$e[ke.XRANGEPLAIN]})\\s+-\\s+(${$e[ke.XRANGEPLAIN]})\\s*$`);mt("HYPHENRANGELOOSE",`^\\s*(${$e[ke.XRANGEPLAINLOOSE]})\\s+-\\s+(${$e[ke.XRANGEPLAINLOOSE]})\\s*$`);mt("STAR","(<|>)?=?\\s*\\*");mt("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");mt("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var PE=y((wvt,s6)=>{"use strict";var Fke=Object.freeze({loose:!0}),Lke=Object.freeze({}),jke=s(e=>e?typeof e!="object"?Fke:e:Lke,"parseOptions");s6.exports=jke});var iF=y((Rvt,c6)=>{"use strict";var o6=/^[0-9]+$/,a6=s((e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let n=o6.test(e),r=o6.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},"compareIdentifiers"),Dke=s((e,t)=>a6(t,e),"rcompareIdentifiers");c6.exports={compareIdentifiers:a6,rcompareIdentifiers:Dke}});var jr=y((Lvt,u6)=>{"use strict";var AE=$m(),{MAX_LENGTH:l6,MAX_SAFE_INTEGER:xE}=Dm(),{safeRe:OE,t:IE}=qp(),$ke=PE(),{compareIdentifiers:sF}=iF(),fs=class fs{constructor(t,n){if(n=$ke(n),t instanceof fs){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>l6)throw new TypeError(`version is longer than ${l6} characters`);AE("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let r=t.trim().match(n.loose?OE[IE.LOOSE]:OE[IE.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>xE||this.major<0)throw new TypeError("Invalid major version");if(this.minor>xE||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>xE||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let o=+i;if(o>=0&&o<xE)return o}return i}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(AE("SemVer.compare",this.version,this.options,t),!(t instanceof fs)){if(typeof t=="string"&&t===this.version)return 0;t=new fs(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof fs||(t=new fs(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof fs||(t=new fs(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{let r=this.prerelease[n],i=t.prerelease[n];if(AE("prerelease compare",n,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return sF(r,i)}while(++n)}compareBuild(t){t instanceof fs||(t=new fs(t,this.options));let n=0;do{let r=this.build[n],i=t.build[n];if(AE("build compare",n,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return sF(r,i)}while(++n)}inc(t,n,r){if(t.startsWith("pre")){if(!n&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(n){let i=`-${n}`.match(this.options.loose?OE[IE.PRERELEASELOOSE]:OE[IE.PRERELEASE]);if(!i||i[1]!==n)throw new Error(`invalid identifier: ${n}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,r),this.inc("pre",n,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,r),this.inc("pre",n,r);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(r)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(n){let o=[n,i];r===!1&&(o=[n]),sF(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};s(fs,"SemVer");var oF=fs;u6.exports=oF});var mu=y((Dvt,p6)=>{"use strict";var f6=jr(),kke=s((e,t,n=!1)=>{if(e instanceof f6)return e;try{return new f6(e,t)}catch(r){if(!n)return null;throw r}},"parse");p6.exports=kke});var h6=y((kvt,d6)=>{"use strict";var Mke=mu(),Vke=s((e,t)=>{let n=Mke(e,t);return n?n.version:null},"valid");d6.exports=Vke});var m6=y((Vvt,g6)=>{"use strict";var qke=mu(),Uke=s((e,t)=>{let n=qke(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},"clean");g6.exports=Uke});var v6=y((Uvt,b6)=>{"use strict";var y6=jr(),Bke=s((e,t,n,r,i)=>{typeof n=="string"&&(i=r,r=n,n=void 0);try{return new y6(e instanceof y6?e.version:e,n).inc(t,r,i).version}catch{return null}},"inc");b6.exports=Bke});var E6=y((Gvt,S6)=>{"use strict";var T6=mu(),Gke=s((e,t)=>{let n=T6(e,null,!0),r=T6(t,null,!0),i=n.compare(r);if(i===0)return null;let o=i>0,a=o?n:r,c=o?r:n,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let f=l?"pre":"";return n.major!==r.major?f+"major":n.minor!==r.minor?f+"minor":n.patch!==r.patch?f+"patch":"prerelease"},"diff");S6.exports=Gke});var A6=y((Wvt,P6)=>{"use strict";var Hke=jr(),Wke=s((e,t)=>new Hke(e,t).major,"major");P6.exports=Wke});var O6=y((Jvt,x6)=>{"use strict";var Kke=jr(),Jke=s((e,t)=>new Kke(e,t).minor,"minor");x6.exports=Jke});var _6=y((Xvt,I6)=>{"use strict";var Yke=jr(),Xke=s((e,t)=>new Yke(e,t).patch,"patch");I6.exports=Xke});var w6=y((Qvt,C6)=>{"use strict";var zke=mu(),Qke=s((e,t)=>{let n=zke(e,t);return n&&n.prerelease.length?n.prerelease:null},"prerelease");C6.exports=Qke});var ps=y((eTt,R6)=>{"use strict";var N6=jr(),Zke=s((e,t,n)=>new N6(e,n).compare(new N6(t,n)),"compare");R6.exports=Zke});var L6=y((nTt,F6)=>{"use strict";var eMe=ps(),tMe=s((e,t,n)=>eMe(t,e,n),"rcompare");F6.exports=tMe});var D6=y((iTt,j6)=>{"use strict";var nMe=ps(),rMe=s((e,t)=>nMe(e,t,!0),"compareLoose");j6.exports=rMe});var _E=y((oTt,k6)=>{"use strict";var $6=jr(),iMe=s((e,t,n)=>{let r=new $6(e,n),i=new $6(t,n);return r.compare(i)||r.compareBuild(i)},"compareBuild");k6.exports=iMe});var V6=y((cTt,M6)=>{"use strict";var sMe=_E(),oMe=s((e,t)=>e.sort((n,r)=>sMe(n,r,t)),"sort");M6.exports=oMe});var U6=y((uTt,q6)=>{"use strict";var aMe=_E(),cMe=s((e,t)=>e.sort((n,r)=>aMe(r,n,t)),"rsort");q6.exports=cMe});var km=y((pTt,B6)=>{"use strict";var lMe=ps(),uMe=s((e,t,n)=>lMe(e,t,n)>0,"gt");B6.exports=uMe});var CE=y((hTt,G6)=>{"use strict";var fMe=ps(),pMe=s((e,t,n)=>fMe(e,t,n)<0,"lt");G6.exports=pMe});var aF=y((mTt,H6)=>{"use strict";var dMe=ps(),hMe=s((e,t,n)=>dMe(e,t,n)===0,"eq");H6.exports=hMe});var cF=y((bTt,W6)=>{"use strict";var gMe=ps(),mMe=s((e,t,n)=>gMe(e,t,n)!==0,"neq");W6.exports=mMe});var wE=y((TTt,K6)=>{"use strict";var yMe=ps(),bMe=s((e,t,n)=>yMe(e,t,n)>=0,"gte");K6.exports=bMe});var NE=y((ETt,J6)=>{"use strict";var vMe=ps(),TMe=s((e,t,n)=>vMe(e,t,n)<=0,"lte");J6.exports=TMe});var lF=y((ATt,Y6)=>{"use strict";var SMe=aF(),EMe=cF(),PMe=km(),AMe=wE(),xMe=CE(),OMe=NE(),IMe=s((e,t,n,r)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return SMe(e,n,r);case"!=":return EMe(e,n,r);case">":return PMe(e,n,r);case">=":return AMe(e,n,r);case"<":return xMe(e,n,r);case"<=":return OMe(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}},"cmp");Y6.exports=IMe});var z6=y((OTt,X6)=>{"use strict";var _Me=jr(),CMe=mu(),{safeRe:RE,t:FE}=qp(),wMe=s((e,t)=>{if(e instanceof _Me)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(t.includePrerelease?RE[FE.COERCEFULL]:RE[FE.COERCE]);else{let l=t.includePrerelease?RE[FE.COERCERTLFULL]:RE[FE.COERCERTL],u;for(;(u=l.exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(n===null)return null;let r=n[2],i=n[3]||"0",o=n[4]||"0",a=t.includePrerelease&&n[5]?`-${n[5]}`:"",c=t.includePrerelease&&n[6]?`+${n[6]}`:"";return CMe(`${r}.${i}.${o}${a}${c}`,t)},"coerce");X6.exports=wMe});var Z6=y((_Tt,Q6)=>{"use strict";var fF=class fF{constructor(){this.max=1e3,this.map=new Map}get(t){let n=this.map.get(t);if(n!==void 0)return this.map.delete(t),this.map.set(t,n),n}delete(t){return this.map.delete(t)}set(t,n){if(!this.delete(t)&&n!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(t,n)}return this}};s(fF,"LRUCache");var uF=fF;Q6.exports=uF});var ds=y((wTt,r7)=>{"use strict";var NMe=/\s+/g,Up=class Up{constructor(t,n){if(n=FMe(n),t instanceof Up)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new Up(t.raw,n);if(t instanceof dF)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().replace(NMe," "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let r=this.set[0];if(this.set=this.set.filter(i=>!t7(i[0])),this.set.length===0)this.set=[r];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&VMe(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let n=this.set[t];for(let r=0;r<n.length;r++)r>0&&(this.formatted+=" "),this.formatted+=n[r].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let r=((this.options.includePrerelease&&kMe)|(this.options.loose&&MMe))+":"+t,i=e7.get(r);if(i)return i;let o=this.options.loose,a=o?ii[Dr.HYPHENRANGELOOSE]:ii[Dr.HYPHENRANGE];t=t.replace(a,XMe(this.options.includePrerelease)),Pn("hyphen replace",t),t=t.replace(ii[Dr.COMPARATORTRIM],jMe),Pn("comparator trim",t),t=t.replace(ii[Dr.TILDETRIM],DMe),Pn("tilde trim",t),t=t.replace(ii[Dr.CARETTRIM],$Me),Pn("caret trim",t);let c=t.split(" ").map(p=>qMe(p,this.options)).join(" ").split(/\s+/).map(p=>YMe(p,this.options));o&&(c=c.filter(p=>(Pn("loose invalid filter",p,this.options),!!p.match(ii[Dr.COMPARATORLOOSE])))),Pn("range list",c);let l=new Map,u=c.map(p=>new dF(p,this.options));for(let p of u){if(t7(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let f=[...l.values()];return e7.set(r,f),f}intersects(t,n){if(!(t instanceof Up))throw new TypeError("a Range is required");return this.set.some(r=>n7(r,n)&&t.set.some(i=>n7(i,n)&&r.every(o=>i.every(a=>o.intersects(a,n)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new LMe(t,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(zMe(this.set[n],t,this.options))return!0;return!1}};s(Up,"Range");var pF=Up;r7.exports=pF;var RMe=Z6(),e7=new RMe,FMe=PE(),dF=Mm(),Pn=$m(),LMe=jr(),{safeRe:ii,t:Dr,comparatorTrimReplace:jMe,tildeTrimReplace:DMe,caretTrimReplace:$Me}=qp(),{FLAG_INCLUDE_PRERELEASE:kMe,FLAG_LOOSE:MMe}=Dm(),t7=s(e=>e.value==="<0.0.0-0","isNullSet"),VMe=s(e=>e.value==="","isAny"),n7=s((e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(o=>i.intersects(o,t)),i=r.pop();return n},"isSatisfiable"),qMe=s((e,t)=>(e=e.replace(ii[Dr.BUILD],""),Pn("comp",e,t),e=GMe(e,t),Pn("caret",e),e=UMe(e,t),Pn("tildes",e),e=WMe(e,t),Pn("xrange",e),e=JMe(e,t),Pn("stars",e),e),"parseComparator"),si=s(e=>!e||e.toLowerCase()==="x"||e==="*","isX"),UMe=s((e,t)=>e.trim().split(/\s+/).map(n=>BMe(n,t)).join(" "),"replaceTildes"),BMe=s((e,t)=>{let n=t.loose?ii[Dr.TILDELOOSE]:ii[Dr.TILDE];return e.replace(n,(r,i,o,a,c)=>{Pn("tilde",e,r,i,o,a,c);let l;return si(i)?l="":si(o)?l=`>=${i}.0.0 <${+i+1}.0.0-0`:si(a)?l=`>=${i}.${o}.0 <${i}.${+o+1}.0-0`:c?(Pn("replaceTilde pr",c),l=`>=${i}.${o}.${a}-${c} <${i}.${+o+1}.0-0`):l=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`,Pn("tilde return",l),l})},"replaceTilde"),GMe=s((e,t)=>e.trim().split(/\s+/).map(n=>HMe(n,t)).join(" "),"replaceCarets"),HMe=s((e,t)=>{Pn("caret",e,t);let n=t.loose?ii[Dr.CARETLOOSE]:ii[Dr.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,(i,o,a,c,l)=>{Pn("caret",e,i,o,a,c,l);let u;return si(o)?u="":si(a)?u=`>=${o}.0.0${r} <${+o+1}.0.0-0`:si(c)?o==="0"?u=`>=${o}.${a}.0${r} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${r} <${+o+1}.0.0-0`:l?(Pn("replaceCaret pr",l),o==="0"?a==="0"?u=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(Pn("no pr"),o==="0"?a==="0"?u=`>=${o}.${a}.${c}${r} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}${r} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),Pn("caret return",u),u})},"replaceCaret"),WMe=s((e,t)=>(Pn("replaceXRanges",e,t),e.split(/\s+/).map(n=>KMe(n,t)).join(" ")),"replaceXRanges"),KMe=s((e,t)=>{e=e.trim();let n=t.loose?ii[Dr.XRANGELOOSE]:ii[Dr.XRANGE];return e.replace(n,(r,i,o,a,c,l)=>{Pn("xRange",e,r,i,o,a,c,l);let u=si(o),f=u||si(a),p=f||si(c),d=p;return i==="="&&d&&(i=""),l=t.includePrerelease?"-0":"",u?i===">"||i==="<"?r="<0.0.0-0":r="*":i&&d?(f&&(a=0),c=0,i===">"?(i=">=",f?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):i==="<="&&(i="<",f?o=+o+1:a=+a+1),i==="<"&&(l="-0"),r=`${i+o}.${a}.${c}${l}`):f?r=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(r=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),Pn("xRange return",r),r})},"replaceXRange"),JMe=s((e,t)=>(Pn("replaceStars",e,t),e.trim().replace(ii[Dr.STAR],"")),"replaceStars"),YMe=s((e,t)=>(Pn("replaceGTE0",e,t),e.trim().replace(ii[t.includePrerelease?Dr.GTE0PRE:Dr.GTE0],"")),"replaceGTE0"),XMe=s(e=>(t,n,r,i,o,a,c,l,u,f,p,d)=>(si(r)?n="":si(i)?n=`>=${r}.0.0${e?"-0":""}`:si(o)?n=`>=${r}.${i}.0${e?"-0":""}`:a?n=`>=${n}`:n=`>=${n}${e?"-0":""}`,si(u)?l="":si(f)?l=`<${+u+1}.0.0-0`:si(p)?l=`<${u}.${+f+1}.0-0`:d?l=`<=${u}.${f}.${p}-${d}`:e?l=`<${u}.${f}.${+p+1}-0`:l=`<=${l}`,`${n} ${l}`.trim()),"hyphenReplace"),zMe=s((e,t,n)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let r=0;r<e.length;r++)if(Pn(e[r].semver),e[r].semver!==dF.ANY&&e[r].semver.prerelease.length>0){let i=e[r].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0},"testSet")});var Mm=y((RTt,l7)=>{"use strict";var Vm=Symbol("SemVer ANY"),qm=class qm{static get ANY(){return Vm}constructor(t,n){if(n=i7(n),t instanceof qm){if(t.loose===!!n.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),gF("comparator",t,n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===Vm?this.value="":this.value=this.operator+this.semver.version,gF("comp",this)}parse(t){let n=this.options.loose?s7[o7.COMPARATORLOOSE]:s7[o7.COMPARATOR],r=t.match(n);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new a7(r[2],this.options.loose):this.semver=Vm}toString(){return this.value}test(t){if(gF("Comparator.test",t,this.options.loose),this.semver===Vm||t===Vm)return!0;if(typeof t=="string")try{t=new a7(t,this.options)}catch{return!1}return hF(t,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof qm))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c7(t.value,n).test(this.value):t.operator===""?t.value===""?!0:new c7(this.value,n).test(t.semver):(n=i7(n),n.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||hF(this.semver,"<",t.semver,n)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||hF(this.semver,">",t.semver,n)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};s(qm,"Comparator");var mF=qm;l7.exports=mF;var i7=PE(),{safeRe:s7,t:o7}=qp(),hF=lF(),gF=$m(),a7=jr(),c7=ds()});var Um=y((LTt,u7)=>{"use strict";var QMe=ds(),ZMe=s((e,t,n)=>{try{t=new QMe(t,n)}catch{return!1}return t.test(e)},"satisfies");u7.exports=ZMe});var p7=y((DTt,f7)=>{"use strict";var eVe=ds(),tVe=s((e,t)=>new eVe(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" ")),"toComparators");f7.exports=tVe});var h7=y((kTt,d7)=>{"use strict";var nVe=jr(),rVe=ds(),iVe=s((e,t,n)=>{let r=null,i=null,o=null;try{o=new rVe(t,n)}catch{return null}return e.forEach(a=>{o.test(a)&&(!r||i.compare(a)===-1)&&(r=a,i=new nVe(r,n))}),r},"maxSatisfying");d7.exports=iVe});var m7=y((VTt,g7)=>{"use strict";var sVe=jr(),oVe=ds(),aVe=s((e,t,n)=>{let r=null,i=null,o=null;try{o=new oVe(t,n)}catch{return null}return e.forEach(a=>{o.test(a)&&(!r||i.compare(a)===1)&&(r=a,i=new sVe(r,n))}),r},"minSatisfying");g7.exports=aVe});var v7=y((UTt,b7)=>{"use strict";var yF=jr(),cVe=ds(),y7=km(),lVe=s((e,t)=>{e=new cVe(e,t);let n=new yF("0.0.0");if(e.test(n)||(n=new yF("0.0.0-0"),e.test(n)))return n;n=null;for(let r=0;r<e.set.length;++r){let i=e.set[r],o=null;i.forEach(a=>{let c=new yF(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||y7(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!n||y7(n,o))&&(n=o)}return n&&e.test(n)?n:null},"minVersion");b7.exports=lVe});var S7=y((GTt,T7)=>{"use strict";var uVe=ds(),fVe=s((e,t)=>{try{return new uVe(e,t).range||"*"}catch{return null}},"validRange");T7.exports=fVe});var LE=y((WTt,x7)=>{"use strict";var pVe=jr(),A7=Mm(),{ANY:dVe}=A7,hVe=ds(),gVe=Um(),E7=km(),P7=CE(),mVe=NE(),yVe=wE(),bVe=s((e,t,n,r)=>{e=new pVe(e,r),t=new hVe(t,r);let i,o,a,c,l;switch(n){case">":i=E7,o=mVe,a=P7,c=">",l=">=";break;case"<":i=P7,o=yVe,a=E7,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(gVe(e,t,r))return!1;for(let u=0;u<t.set.length;++u){let f=t.set[u],p=null,d=null;if(f.forEach(h=>{h.semver===dVe&&(h=new A7(">=0.0.0")),p=p||h,d=d||h,i(h.semver,p.semver,r)?p=h:a(h.semver,d.semver,r)&&(d=h)}),p.operator===c||p.operator===l||(!d.operator||d.operator===c)&&o(e,d.semver))return!1;if(d.operator===l&&a(e,d.semver))return!1}return!0},"outside");x7.exports=bVe});var I7=y((JTt,O7)=>{"use strict";var vVe=LE(),TVe=s((e,t,n)=>vVe(e,t,">",n),"gtr");O7.exports=TVe});var C7=y((XTt,_7)=>{"use strict";var SVe=LE(),EVe=s((e,t,n)=>SVe(e,t,"<",n),"ltr");_7.exports=EVe});var R7=y((QTt,N7)=>{"use strict";var w7=ds(),PVe=s((e,t,n)=>(e=new w7(e,n),t=new w7(t,n),e.intersects(t,n)),"intersects");N7.exports=PVe});var L7=y((eSt,F7)=>{"use strict";var AVe=Um(),xVe=ps();F7.exports=(e,t,n)=>{let r=[],i=null,o=null,a=e.sort((f,p)=>xVe(f,p,n));for(let f of a)AVe(f,t,n)?(o=f,i||(i=f)):(o&&r.push([i,o]),o=null,i=null);i&&r.push([i,null]);let c=[];for(let[f,p]of r)f===p?c.push(f):!p&&f===a[0]?c.push("*"):p?f===a[0]?c.push(`<=${p}`):c.push(`${f} - ${p}`):c.push(`>=${f}`);let l=c.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return l.length<u.length?l:t}});var V7=y((tSt,M7)=>{"use strict";var j7=ds(),vF=Mm(),{ANY:bF}=vF,Bm=Um(),TF=ps(),OVe=s((e,t,n={})=>{if(e===t)return!0;e=new j7(e,n),t=new j7(t,n);let r=!1;e:for(let i of e.set){for(let o of t.set){let a=_Ve(i,o,n);if(r=r||a!==null,a)continue e}if(r)return!1}return!0},"subset"),IVe=[new vF(">=0.0.0-0")],D7=[new vF(">=0.0.0")],_Ve=s((e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===bF){if(t.length===1&&t[0].semver===bF)return!0;n.includePrerelease?e=IVe:e=D7}if(t.length===1&&t[0].semver===bF){if(n.includePrerelease)return!0;t=D7}let r=new Set,i,o;for(let h of e)h.operator===">"||h.operator===">="?i=$7(i,h,n):h.operator==="<"||h.operator==="<="?o=k7(o,h,n):r.add(h.semver);if(r.size>1)return null;let a;if(i&&o){if(a=TF(i.semver,o.semver,n),a>0)return null;if(a===0&&(i.operator!==">="||o.operator!=="<="))return null}for(let h of r){if(i&&!Bm(h,String(i),n)||o&&!Bm(h,String(o),n))return null;for(let m of t)if(!Bm(h,String(m),n))return!1;return!0}let c,l,u,f,p=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1,d=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let h of t){if(f=f||h.operator===">"||h.operator===">=",u=u||h.operator==="<"||h.operator==="<=",i){if(d&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===d.major&&h.semver.minor===d.minor&&h.semver.patch===d.patch&&(d=!1),h.operator===">"||h.operator===">="){if(c=$7(i,h,n),c===h&&c!==i)return!1}else if(i.operator===">="&&!Bm(i.semver,String(h),n))return!1}if(o){if(p&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===p.major&&h.semver.minor===p.minor&&h.semver.patch===p.patch&&(p=!1),h.operator==="<"||h.operator==="<="){if(l=k7(o,h,n),l===h&&l!==o)return!1}else if(o.operator==="<="&&!Bm(o.semver,String(h),n))return!1}if(!h.operator&&(o||i)&&a!==0)return!1}return!(i&&u&&!o&&a!==0||o&&f&&!i&&a!==0||d||p)},"simpleSubset"),$7=s((e,t,n)=>{if(!e)return t;let r=TF(e.semver,t.semver,n);return r>0?e:r<0||t.operator===">"&&e.operator===">="?t:e},"higherGT"),k7=s((e,t,n)=>{if(!e)return t;let r=TF(e.semver,t.semver,n);return r<0?e:r>0||t.operator==="<"&&e.operator==="<="?t:e},"lowerLT");M7.exports=OVe});var G7=y((rSt,B7)=>{"use strict";var SF=qp(),q7=Dm(),CVe=jr(),U7=iF(),wVe=mu(),NVe=h6(),RVe=m6(),FVe=v6(),LVe=E6(),jVe=A6(),DVe=O6(),$Ve=_6(),kVe=w6(),MVe=ps(),VVe=L6(),qVe=D6(),UVe=_E(),BVe=V6(),GVe=U6(),HVe=km(),WVe=CE(),KVe=aF(),JVe=cF(),YVe=wE(),XVe=NE(),zVe=lF(),QVe=z6(),ZVe=Mm(),e2e=ds(),t2e=Um(),n2e=p7(),r2e=h7(),i2e=m7(),s2e=v7(),o2e=S7(),a2e=LE(),c2e=I7(),l2e=C7(),u2e=R7(),f2e=L7(),p2e=V7();B7.exports={parse:wVe,valid:NVe,clean:RVe,inc:FVe,diff:LVe,major:jVe,minor:DVe,patch:$Ve,prerelease:kVe,compare:MVe,rcompare:VVe,compareLoose:qVe,compareBuild:UVe,sort:BVe,rsort:GVe,gt:HVe,lt:WVe,eq:KVe,neq:JVe,gte:YVe,lte:XVe,cmp:zVe,coerce:QVe,Comparator:ZVe,Range:e2e,satisfies:t2e,toComparators:n2e,maxSatisfying:r2e,minSatisfying:i2e,minVersion:s2e,validRange:o2e,outside:a2e,gtr:c2e,ltr:l2e,intersects:u2e,simplifyRange:f2e,subset:p2e,SemVer:CVe,re:SF.re,src:SF.src,tokens:SF.t,SEMVER_SPEC_VERSION:q7.SEMVER_SPEC_VERSION,RELEASE_TYPES:q7.RELEASE_TYPES,compareIdentifiers:U7.compareIdentifiers,rcompareIdentifiers:U7.rcompareIdentifiers}});var K7=y(sa=>{"use strict";var H7=sa&&sa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(sa,"__esModule",{value:!0});sa.mergeObjects=h2e;sa.getEsmTypesVersion=g2e;sa.getTypesVersion=m2e;sa.getTypesPackage=y2e;sa.replaceEnvVariables=W7;var d2e=H7(t6()),Us=H7(G7());function h2e(e,t){return(0,d2e.default)({},e,t,(n,r)=>{if(n instanceof Array&&r instanceof Array)return[...new Set([...n,...r])]})}s(h2e,"mergeObjects");function g2e(e){let t=Us.default.coerce(e);return t?Us.default.lt(t,"1.94.0")?"~1.94.0":`~${Us.default.major(t)}.${Us.default.minor(t)}.0`:"~1.136.0"}s(g2e,"getEsmTypesVersion");function m2e(e){let t=Us.default.coerce(e);return t?Us.default.lt(t,"1.76.0")?"~1.76.0":`~${Us.default.major(t)}.${Us.default.minor(t)}.0`:"~1.136.0"}s(m2e,"getTypesVersion");function y2e(e){let t=Us.default.coerce(e)??Us.default.coerce("1.136.0");return t&&Us.default.lt(t,"1.113.0")?"@sapui5/ts-types-esm":"@sapui5/types"}s(y2e,"getTypesPackage");function W7(e){for(let t in e){let n=e[t];if(typeof n=="object")W7(n);else if(typeof n=="string"&&n.startsWith("env:")){let r=n.split("env:")[1];e[t]=process.env[r]}}}s(W7,"replaceEnvVariables")});var Y7=y(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.fioriToolsProxy=jn.YAMLError=jn.yamlErrorCode=jn.getPreviewMiddlewareConfig=jn.replaceEnvVariables=jn.getTypesPackage=jn.getTypesVersion=jn.getEsmTypesVersion=jn.mergeObjects=jn.UI5Config=void 0;var b2e=Z9();Object.defineProperty(jn,"UI5Config",{enumerable:!0,get:s(function(){return b2e.UI5Config},"get")});var Gm=K7();Object.defineProperty(jn,"mergeObjects",{enumerable:!0,get:s(function(){return Gm.mergeObjects},"get")});Object.defineProperty(jn,"getEsmTypesVersion",{enumerable:!0,get:s(function(){return Gm.getEsmTypesVersion},"get")});Object.defineProperty(jn,"getTypesVersion",{enumerable:!0,get:s(function(){return Gm.getTypesVersion},"get")});Object.defineProperty(jn,"getTypesPackage",{enumerable:!0,get:s(function(){return Gm.getTypesPackage},"get")});Object.defineProperty(jn,"replaceEnvVariables",{enumerable:!0,get:s(function(){return Gm.replaceEnvVariables},"get")});var v2e=tN();Object.defineProperty(jn,"getPreviewMiddlewareConfig",{enumerable:!0,get:s(function(){return v2e.getPreviewMiddlewareConfig},"get")});var J7=eN();Object.defineProperty(jn,"yamlErrorCode",{enumerable:!0,get:s(function(){return J7.errorCode},"get")});Object.defineProperty(jn,"YAMLError",{enumerable:!0,get:s(function(){return J7.YAMLError},"get")});var T2e=nN();Object.defineProperty(jn,"fioriToolsProxy",{enumerable:!0,get:s(function(){return T2e.fioriToolsProxy},"get")})});var Wm=y(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});wc.getWebappPath=P2e;wc.getPathMappings=z7;wc.readUi5Yaml=EF;wc.getAllUi5YamlFileNames=A2e;wc.getMockServerConfig=Q7;wc.getMockDataPath=x2e;var Hm=require("path"),S2e=Y7(),Bp=Ui(),jE=ei(),X7={application:{webapp:Bp.DirName.Webapp},library:{src:"src",test:"test"},"theme-library":{src:"src",test:"test"},module:{}};async function E2e(e,t){let n=await(0,jE.findFileUp)(Bp.FileName.Package,e,t);return n?(0,Hm.dirname)(n):e}s(E2e,"getBaseDir");async function P2e(e,t){let n;try{n=await z7(e,t)}catch{n={}}return"webapp"in n?n.webapp:(0,Hm.join)(e,Bp.DirName.Webapp)}s(P2e,"getWebappPath");async function z7(e,t,n=Bp.FileName.Ui5Yaml){let r,i,o;try{r=await EF(e,n,t),i=r.getConfiguration(),o=r.getType()}catch{throw new Error(`Could not read 'type' from ${n} in project root: ${e}`)}if(!(o in X7))throw new Error(`Unsupported project type for path mappings: ${o}`);let a=await E2e(e,t),c={},l=(i==null?void 0:i.paths)||{},u=X7[o];for(let f in u){let p=l[f]??u[f];c[f]=(0,Hm.join)(a,p)}return c}s(z7,"getPathMappings");async function EF(e,t,n,r){let i=(0,Hm.join)(e,t);if(await(0,jE.fileExists)(i,n)){let o=await(0,jE.readFile)(i,n);return await S2e.UI5Config.newInstance(o,{validateSchema:r==null?void 0:r.validateSchema})}throw Error(`File '${t}' not found in project '${e}'`)}s(EF,"readUi5Yaml");async function A2e(e,t){try{return(await(0,jE.findFilesByExtension)(".yaml",e,[],t,!0)).map(r=>(0,Hm.basename)(r))}catch(n){throw new Error(`There was an error reading files from the directory '${e}': ${n}`)}}s(A2e,"getAllUi5YamlFileNames");async function Q7(e,t=Bp.FileName.Ui5MockYaml){let r=(await EF(e,t)).findCustomMiddleware("sap-fe-mockserver");if(!r)throw new Error("Could not find sap-fe-mockserver");return r.configuration}s(Q7,"getMockServerConfig");async function x2e(e,t=Bp.FileName.Ui5MockYaml){let n=await Q7(e,t);if(!n)return"";let r=O2e(n);if(!r)return"";let i=r.find(o=>!!o.mockdataPath);return(i==null?void 0:i.mockdataPath)??""}s(x2e,"getMockDataPath");function O2e(e){if("services"in e&&e.services)return Array.isArray(e.services)?e.services:[e.services]}s(O2e,"extractServices")});var Km=y(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.findProjectRoot=PF;oa.getAppRootFromWebappPath=w2e;oa.findRootsForPath=sQ;oa.findCapProjectRoot=AF;oa.findAllApps=R2e;oa.findFioriArtifacts=oQ;oa.findCapProjects=V2e;var dt=require("path"),zt=Ui(),Jn=ei(),I2e=lg(),eQ=Jm(),tQ=Wm(),Z7={applications:[zt.FileName.Manifest],adaptations:[zt.FileName.ManifestAppDescrVar],components:[zt.FileName.Manifest],extensions:[zt.FileName.ExtConfigJson],libraries:[zt.FileName.Library,zt.FileName.Manifest]},nQ=[".git","node_modules","dist",".adp"];function _2e(e){return e&&e.length>0&&e[0].uri!==void 0}s(_2e,"isWorkspaceFolder");function rQ(e){let t;return e&&_2e(e)?(t=[],e.filter(n=>n.uri.scheme==="file").forEach(n=>{t.push(n.uri.fsPath)})):t=e??[],t}s(rQ,"wsFoldersToRootPaths");async function PF(e,t=!0,n=!1,r){let i=await(0,Jn.findFileUp)(zt.FileName.Package,e,r);if(!i){if(n)return"";throw new Error(`Could not find any project root for '${e}'. Search was done for ${t?"Fiori elements":"All"} projects.`)}let o=(0,dt.dirname)(i);return t&&((await(0,Jn.readJSON)(i,r)).sapux||(o=await PF((0,dt.dirname)(o),t,n,r))),o}s(PF,"findProjectRoot");function C2e(e,t,n){if(typeof e=="boolean"&&e===!0)return{appRoot:n,projectRoot:n};if(Array.isArray(e)){let r=t.endsWith(dt.sep)?t:t+dt.sep,o=e.map(a=>(0,dt.join)(...a.split(/[\\/]/))).find(a=>r.startsWith((0,dt.join)(n,a)+dt.sep));if(o)return{appRoot:(0,dt.join)(n,o),projectRoot:n}}return null}s(C2e,"findRootsWithSapux");async function w2e(e){let t=await(0,Jn.findFileUp)(zt.FileName.Ui5Yaml,e),n=(0,dt.dirname)(e);if(t){let r=(0,dt.dirname)(t);await(0,tQ.getWebappPath)(r)===e&&(n=r)}return n}s(w2e,"getAppRootFromWebappPath");function N2e(e){return e.commit!==void 0}s(N2e,"isEditor");function iQ(e){let t,n={files:{},capProjectType:new Map};return e&&(N2e(e)?t=e:(t=e.memFs,n=e.cache??n)),{memFs:t,cache:n}}s(iQ,"getFindOptions");async function sQ(e,t){var n;try{let{memFs:r,cache:i}=iQ(t),o=await PF(e,!1,!1,r);if(!o)return null;(n=i.files)[e]??(n[e]=await(0,Jn.readJSON)((0,dt.join)(o,zt.FileName.Package),r));let a=i.files[e];if(a.sapux)return C2e(a.sapux,e,o);let c=await AF(o,void 0,{memFs:r,cache:i});if(c)return{appRoot:o,projectRoot:c};if(await(0,Jn.fileExists)((0,dt.join)(o,zt.FileName.Ui5LocalYaml),r)&&(0,I2e.hasDependency)(a,"@sap/ux-ui5-tooling"))return{appRoot:o,projectRoot:o}}catch{}return null}s(sQ,"findRootsForPath");async function AF(e,t=!0,n){try{if(!(0,dt.isAbsolute)(e))return null;let{memFs:r,cache:i}=iQ(n),{root:o}=(0,dt.parse)(e),a=(0,dt.dirname)(e);for(;a!==o;){if(i.capProjectType.has(a)||i.capProjectType.set(a,await(0,eQ.getCapProjectType)(a,r)),i.capProjectType.get(a)&&(t&&(0,dt.join)(a,"app")!==e||!t))return a;a=(0,dt.dirname)(a)}}catch{}return null}s(AF,"findCapProjectRoot");async function R2e(e,t){return(await oQ({wsFolders:e,artifacts:["applications"],memFs:t})).applications??[]}s(R2e,"findAllApps");async function F2e(e,t){var i,o;let n=[],r=Object.keys(e.files).filter(a=>(0,dt.basename)(a)===zt.FileName.Manifest);for(let a of r)try{(i=e.files)[a]??(i[a]=await(0,Jn.readJSON)(a,t));let c=e.files[a];if(!((o=c["sap.app"])!=null&&o.id)||c["sap.app"].type!=="application")continue;let l=await sQ((0,dt.dirname)(a),{memFs:t,cache:e});l&&!await(0,Jn.fileExists)((0,dt.join)(l.appRoot,".adp",zt.FileName.AdaptationConfig),t)&&n.push({appRoot:l.appRoot,projectRoot:l.projectRoot,manifest:c,manifestPath:a})}catch{}return n}s(F2e,"filterApplications");async function L2e(e,t){let n=[],r=Object.keys(e.files).filter(i=>i.endsWith(zt.FileName.ManifestAppDescrVar));for(let i of r){let o=await(0,Jn.findFileUp)(zt.FileName.Package,(0,dt.dirname)(i),t),a=o?(0,dt.dirname)(o):null,c=await(0,tQ.getWebappPath)(a??"",t);a&&await(0,Jn.fileExists)((0,dt.join)(c,zt.FileName.ManifestAppDescrVar),t)&&n.push({appRoot:a,manifestAppdescrVariantPath:i})}return n}s(L2e,"filterAdaptations");async function j2e(e,t){var i;let n=[],r=Object.keys(e.files).filter(o=>(0,dt.basename)(o)===zt.FileName.ExtConfigJson);for(let o of r)try{let a=null,c=Object.keys(e).find(l=>l.startsWith((0,dt.dirname)(o)+dt.sep)&&(0,dt.basename)(l)===zt.FileName.Manifest);if(c)(i=e.files)[c]??(i[c]=await(0,Jn.readJSON)(c,t)),a=e.files[c];else{let l=await(0,Jn.findBy)({fileNames:[zt.FileName.Manifest],root:(0,dt.dirname)(o),excludeFolders:nQ,memFs:t});l.length===1&&([c]=l,a=await(0,Jn.readJSON)(c,t))}c&&a&&n.push({appRoot:(0,dt.dirname)(o),manifest:a,manifestPath:c})}catch{}return n}s(j2e,"filterExtensions");async function D2e(e,t,n){let r=[],i=Object.keys(e.files).filter(o=>(0,dt.basename)(o)===zt.FileName.Library).map(o=>(0,dt.dirname)(o)).filter(o=>!t.map(a=>(0,dt.dirname)(a)).includes(o));if(i)for(let o of i){let a=(0,dt.dirname)(await(0,Jn.findFileUp)(zt.FileName.Package,(0,dt.dirname)(o),n)??o);r.push({projectRoot:a,libraryPath:o})}return r}s(D2e,"filterDotLibraries");async function $2e(e,t){var i,o;let n=[],r=Object.keys(e.files).filter(a=>(0,dt.basename)(a)===zt.FileName.Manifest);n.push(...await D2e(e,r,t));for(let a of r)try{(i=e.files)[a]??(i[a]=await(0,Jn.readJSON)(a,t));let c=e.files[a];if(((o=c["sap.app"])==null?void 0:o.type)==="library"){let l=await(0,Jn.findFileUp)(zt.FileName.Package,(0,dt.dirname)(a),t),u=l?(0,dt.dirname)(l):null;u&&await(0,Jn.fileExists)((0,dt.join)(u,zt.FileName.Ui5Yaml),t)&&n.push({projectRoot:u,manifestPath:a,manifest:c})}}catch{}return n}s($2e,"filterLibraries");async function k2e(e,t){var i,o;let n=[],r=Object.keys(e.files).filter(a=>(0,dt.basename)(a)===zt.FileName.Manifest);for(let a of r)try{(i=e.files)[a]??(i[a]=await(0,Jn.readJSON)(a,t));let c=e.files[a];if(((o=c["sap.app"])==null?void 0:o.type)==="component"){let l=await(0,Jn.findFileUp)(zt.FileName.Package,(0,dt.dirname)(a),t),u=l?(0,dt.dirname)(l):null;u&&n.push({projectRoot:u,manifestPath:a,manifest:c})}}catch{}return n}s(k2e,"filterComponents");function M2e(e){let t=new Set;for(let n of e)Z7[n]&&Z7[n].forEach(r=>t.add(r));return Array.from(t)}s(M2e,"getFilterFileNames");async function oQ(e){let t={},n=M2e(e.artifacts),r=rQ(e.wsFolders),i={files:{},capProjectType:new Map};for(let o of r)try{(await(0,Jn.findBy)({fileNames:n,root:o,excludeFolders:nQ,memFs:e.memFs})).forEach(c=>i.files[c]=null)}catch{}return e.artifacts.includes("applications")&&(t.applications=await F2e(i,e.memFs)),e.artifacts.includes("adaptations")&&(t.adaptations=await L2e(i,e.memFs)),e.artifacts.includes("extensions")&&(t.extensions=await j2e(i,e.memFs)),e.artifacts.includes("libraries")&&(t.libraries=await $2e(i,e.memFs)),e.artifacts.includes("components")&&(t.components=await k2e(i,e.memFs)),t}s(oQ,"findFioriArtifacts");async function V2e(e){let t=new Set,n=["node_modules","dist","webapp","MDKModule","gen"],r=[zt.FileName.Pom,zt.FileName.Package,zt.FileName.CapJavaApplicationYaml],i=rQ(e.wsFolders),o=e.noTraversal??!1;for(let a of i){let c=await(0,Jn.findBy)({fileNames:r,root:a,excludeFolders:n,noTraversal:o}),l=Array.from(new Set(c.filter(f=>(0,dt.basename)(f)===zt.FileName.CapJavaApplicationYaml).map(f=>(0,dt.dirname)(f)))),u=Array.from(new Set(c.filter(f=>(0,dt.basename)(f)!==zt.FileName.CapJavaApplicationYaml).map(f=>(0,dt.dirname)(f))));for(let f of l){let p=await AF(f);p&&t.add(p)}for(let f of u)await(0,eQ.getCapProjectType)(f)!==void 0&&t.add(f)}return Array.from(t)}s(V2e,"findCapProjects")});var Ym=y((pSt,aQ)=>{"use strict";var q2e="2.0.0",U2e=Number.MAX_SAFE_INTEGER||9007199254740991,B2e=16,G2e=250,H2e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];aQ.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:B2e,MAX_SAFE_BUILD_LENGTH:G2e,MAX_SAFE_INTEGER:U2e,RELEASE_TYPES:H2e,SEMVER_SPEC_VERSION:q2e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Xm=y((dSt,cQ)=>{"use strict";var W2e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};cQ.exports=W2e});var Gp=y((ho,lQ)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:xF,MAX_SAFE_BUILD_LENGTH:K2e,MAX_LENGTH:J2e}=Ym(),Y2e=Xm();ho=lQ.exports={};var X2e=ho.re=[],z2e=ho.safeRe=[],Me=ho.src=[],Q2e=ho.safeSrc=[],Ve=ho.t={},Z2e=0,OF="[a-zA-Z0-9-]",eqe=[["\\s",1],["\\d",J2e],[OF,K2e]],tqe=s(e=>{for(let[t,n]of eqe)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},"makeSafeRegex"),yt=s((e,t,n)=>{let r=tqe(t),i=Z2e++;Y2e(e,i,t),Ve[e]=i,Me[i]=t,Q2e[i]=r,X2e[i]=new RegExp(t,n?"g":void 0),z2e[i]=new RegExp(r,n?"g":void 0)},"createToken");yt("NUMERICIDENTIFIER","0|[1-9]\\d*");yt("NUMERICIDENTIFIERLOOSE","\\d+");yt("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${OF}*`);yt("MAINVERSION",`(${Me[Ve.NUMERICIDENTIFIER]})\\.(${Me[Ve.NUMERICIDENTIFIER]})\\.(${Me[Ve.NUMERICIDENTIFIER]})`);yt("MAINVERSIONLOOSE",`(${Me[Ve.NUMERICIDENTIFIERLOOSE]})\\.(${Me[Ve.NUMERICIDENTIFIERLOOSE]})\\.(${Me[Ve.NUMERICIDENTIFIERLOOSE]})`);yt("PRERELEASEIDENTIFIER",`(?:${Me[Ve.NONNUMERICIDENTIFIER]}|${Me[Ve.NUMERICIDENTIFIER]})`);yt("PRERELEASEIDENTIFIERLOOSE",`(?:${Me[Ve.NONNUMERICIDENTIFIER]}|${Me[Ve.NUMERICIDENTIFIERLOOSE]})`);yt("PRERELEASE",`(?:-(${Me[Ve.PRERELEASEIDENTIFIER]}(?:\\.${Me[Ve.PRERELEASEIDENTIFIER]})*))`);yt("PRERELEASELOOSE",`(?:-?(${Me[Ve.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Me[Ve.PRERELEASEIDENTIFIERLOOSE]})*))`);yt("BUILDIDENTIFIER",`${OF}+`);yt("BUILD",`(?:\\+(${Me[Ve.BUILDIDENTIFIER]}(?:\\.${Me[Ve.BUILDIDENTIFIER]})*))`);yt("FULLPLAIN",`v?${Me[Ve.MAINVERSION]}${Me[Ve.PRERELEASE]}?${Me[Ve.BUILD]}?`);yt("FULL",`^${Me[Ve.FULLPLAIN]}$`);yt("LOOSEPLAIN",`[v=\\s]*${Me[Ve.MAINVERSIONLOOSE]}${Me[Ve.PRERELEASELOOSE]}?${Me[Ve.BUILD]}?`);yt("LOOSE",`^${Me[Ve.LOOSEPLAIN]}$`);yt("GTLT","((?:<|>)?=?)");yt("XRANGEIDENTIFIERLOOSE",`${Me[Ve.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);yt("XRANGEIDENTIFIER",`${Me[Ve.NUMERICIDENTIFIER]}|x|X|\\*`);yt("XRANGEPLAIN",`[v=\\s]*(${Me[Ve.XRANGEIDENTIFIER]})(?:\\.(${Me[Ve.XRANGEIDENTIFIER]})(?:\\.(${Me[Ve.XRANGEIDENTIFIER]})(?:${Me[Ve.PRERELEASE]})?${Me[Ve.BUILD]}?)?)?`);yt("XRANGEPLAINLOOSE",`[v=\\s]*(${Me[Ve.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Me[Ve.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Me[Ve.XRANGEIDENTIFIERLOOSE]})(?:${Me[Ve.PRERELEASELOOSE]})?${Me[Ve.BUILD]}?)?)?`);yt("XRANGE",`^${Me[Ve.GTLT]}\\s*${Me[Ve.XRANGEPLAIN]}$`);yt("XRANGELOOSE",`^${Me[Ve.GTLT]}\\s*${Me[Ve.XRANGEPLAINLOOSE]}$`);yt("COERCEPLAIN",`(^|[^\\d])(\\d{1,${xF}})(?:\\.(\\d{1,${xF}}))?(?:\\.(\\d{1,${xF}}))?`);yt("COERCE",`${Me[Ve.COERCEPLAIN]}(?:$|[^\\d])`);yt("COERCEFULL",Me[Ve.COERCEPLAIN]+`(?:${Me[Ve.PRERELEASE]})?(?:${Me[Ve.BUILD]})?(?:$|[^\\d])`);yt("COERCERTL",Me[Ve.COERCE],!0);yt("COERCERTLFULL",Me[Ve.COERCEFULL],!0);yt("LONETILDE","(?:~>?)");yt("TILDETRIM",`(\\s*)${Me[Ve.LONETILDE]}\\s+`,!0);ho.tildeTrimReplace="$1~";yt("TILDE",`^${Me[Ve.LONETILDE]}${Me[Ve.XRANGEPLAIN]}$`);yt("TILDELOOSE",`^${Me[Ve.LONETILDE]}${Me[Ve.XRANGEPLAINLOOSE]}$`);yt("LONECARET","(?:\\^)");yt("CARETTRIM",`(\\s*)${Me[Ve.LONECARET]}\\s+`,!0);ho.caretTrimReplace="$1^";yt("CARET",`^${Me[Ve.LONECARET]}${Me[Ve.XRANGEPLAIN]}$`);yt("CARETLOOSE",`^${Me[Ve.LONECARET]}${Me[Ve.XRANGEPLAINLOOSE]}$`);yt("COMPARATORLOOSE",`^${Me[Ve.GTLT]}\\s*(${Me[Ve.LOOSEPLAIN]})$|^$`);yt("COMPARATOR",`^${Me[Ve.GTLT]}\\s*(${Me[Ve.FULLPLAIN]})$|^$`);yt("COMPARATORTRIM",`(\\s*)${Me[Ve.GTLT]}\\s*(${Me[Ve.LOOSEPLAIN]}|${Me[Ve.XRANGEPLAIN]})`,!0);ho.comparatorTrimReplace="$1$2$3";yt("HYPHENRANGE",`^\\s*(${Me[Ve.XRANGEPLAIN]})\\s+-\\s+(${Me[Ve.XRANGEPLAIN]})\\s*$`);yt("HYPHENRANGELOOSE",`^\\s*(${Me[Ve.XRANGEPLAINLOOSE]})\\s+-\\s+(${Me[Ve.XRANGEPLAINLOOSE]})\\s*$`);yt("STAR","(<|>)?=?\\s*\\*");yt("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");yt("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var DE=y((gSt,uQ)=>{"use strict";var nqe=Object.freeze({loose:!0}),rqe=Object.freeze({}),iqe=s(e=>e?typeof e!="object"?nqe:e:rqe,"parseOptions");uQ.exports=iqe});var IF=y((ySt,dQ)=>{"use strict";var fQ=/^[0-9]+$/,pQ=s((e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let n=fQ.test(e),r=fQ.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},"compareIdentifiers"),sqe=s((e,t)=>pQ(t,e),"rcompareIdentifiers");dQ.exports={compareIdentifiers:pQ,rcompareIdentifiers:sqe}});var $r=y((vSt,gQ)=>{"use strict";var $E=Xm(),{MAX_LENGTH:hQ,MAX_SAFE_INTEGER:kE}=Ym(),{safeRe:ME,t:VE}=Gp(),oqe=DE(),{compareIdentifiers:_F}=IF(),hs=class hs{constructor(t,n){if(n=oqe(n),t instanceof hs){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>hQ)throw new TypeError(`version is longer than ${hQ} characters`);$E("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let r=t.trim().match(n.loose?ME[VE.LOOSE]:ME[VE.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>kE||this.major<0)throw new TypeError("Invalid major version");if(this.minor>kE||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>kE||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let o=+i;if(o>=0&&o<kE)return o}return i}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if($E("SemVer.compare",this.version,this.options,t),!(t instanceof hs)){if(typeof t=="string"&&t===this.version)return 0;t=new hs(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof hs||(t=new hs(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof hs||(t=new hs(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{let r=this.prerelease[n],i=t.prerelease[n];if($E("prerelease compare",n,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return _F(r,i)}while(++n)}compareBuild(t){t instanceof hs||(t=new hs(t,this.options));let n=0;do{let r=this.build[n],i=t.build[n];if($E("build compare",n,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return _F(r,i)}while(++n)}inc(t,n,r){if(t.startsWith("pre")){if(!n&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(n){let i=`-${n}`.match(this.options.loose?ME[VE.PRERELEASELOOSE]:ME[VE.PRERELEASE]);if(!i||i[1]!==n)throw new Error(`invalid identifier: ${n}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,r),this.inc("pre",n,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,r),this.inc("pre",n,r);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(r)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(n){let o=[n,i];r===!1&&(o=[n]),_F(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};s(hs,"SemVer");var CF=hs;gQ.exports=CF});var yu=y((SSt,yQ)=>{"use strict";var mQ=$r(),aqe=s((e,t,n=!1)=>{if(e instanceof mQ)return e;try{return new mQ(e,t)}catch(r){if(!n)return null;throw r}},"parse");yQ.exports=aqe});var vQ=y((PSt,bQ)=>{"use strict";var cqe=yu(),lqe=s((e,t)=>{let n=cqe(e,t);return n?n.version:null},"valid");bQ.exports=lqe});var SQ=y((xSt,TQ)=>{"use strict";var uqe=yu(),fqe=s((e,t)=>{let n=uqe(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},"clean");TQ.exports=fqe});var AQ=y((ISt,PQ)=>{"use strict";var EQ=$r(),pqe=s((e,t,n,r,i)=>{typeof n=="string"&&(i=r,r=n,n=void 0);try{return new EQ(e instanceof EQ?e.version:e,n).inc(t,r,i).version}catch{return null}},"inc");PQ.exports=pqe});var IQ=y((CSt,OQ)=>{"use strict";var xQ=yu(),dqe=s((e,t)=>{let n=xQ(e,null,!0),r=xQ(t,null,!0),i=n.compare(r);if(i===0)return null;let o=i>0,a=o?n:r,c=o?r:n,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let f=l?"pre":"";return n.major!==r.major?f+"major":n.minor!==r.minor?f+"minor":n.patch!==r.patch?f+"patch":"prerelease"},"diff");OQ.exports=dqe});var CQ=y((NSt,_Q)=>{"use strict";var hqe=$r(),gqe=s((e,t)=>new hqe(e,t).major,"major");_Q.exports=gqe});var NQ=y((FSt,wQ)=>{"use strict";var mqe=$r(),yqe=s((e,t)=>new mqe(e,t).minor,"minor");wQ.exports=yqe});var FQ=y((jSt,RQ)=>{"use strict";var bqe=$r(),vqe=s((e,t)=>new bqe(e,t).patch,"patch");RQ.exports=vqe});var jQ=y(($St,LQ)=>{"use strict";var Tqe=yu(),Sqe=s((e,t)=>{let n=Tqe(e,t);return n&&n.prerelease.length?n.prerelease:null},"prerelease");LQ.exports=Sqe});var gs=y((MSt,$Q)=>{"use strict";var DQ=$r(),Eqe=s((e,t,n)=>new DQ(e,n).compare(new DQ(t,n)),"compare");$Q.exports=Eqe});var MQ=y((qSt,kQ)=>{"use strict";var Pqe=gs(),Aqe=s((e,t,n)=>Pqe(t,e,n),"rcompare");kQ.exports=Aqe});var qQ=y((BSt,VQ)=>{"use strict";var xqe=gs(),Oqe=s((e,t)=>xqe(e,t,!0),"compareLoose");VQ.exports=Oqe});var qE=y((HSt,BQ)=>{"use strict";var UQ=$r(),Iqe=s((e,t,n)=>{let r=new UQ(e,n),i=new UQ(t,n);return r.compare(i)||r.compareBuild(i)},"compareBuild");BQ.exports=Iqe});var HQ=y((KSt,GQ)=>{"use strict";var _qe=qE(),Cqe=s((e,t)=>e.sort((n,r)=>_qe(n,r,t)),"sort");GQ.exports=Cqe});var KQ=y((YSt,WQ)=>{"use strict";var wqe=qE(),Nqe=s((e,t)=>e.sort((n,r)=>wqe(r,n,t)),"rsort");WQ.exports=Nqe});var zm=y((zSt,JQ)=>{"use strict";var Rqe=gs(),Fqe=s((e,t,n)=>Rqe(e,t,n)>0,"gt");JQ.exports=Fqe});var UE=y((ZSt,YQ)=>{"use strict";var Lqe=gs(),jqe=s((e,t,n)=>Lqe(e,t,n)<0,"lt");YQ.exports=jqe});var wF=y((tEt,XQ)=>{"use strict";var Dqe=gs(),$qe=s((e,t,n)=>Dqe(e,t,n)===0,"eq");XQ.exports=$qe});var NF=y((rEt,zQ)=>{"use strict";var kqe=gs(),Mqe=s((e,t,n)=>kqe(e,t,n)!==0,"neq");zQ.exports=Mqe});var BE=y((sEt,QQ)=>{"use strict";var Vqe=gs(),qqe=s((e,t,n)=>Vqe(e,t,n)>=0,"gte");QQ.exports=qqe});var GE=y((aEt,ZQ)=>{"use strict";var Uqe=gs(),Bqe=s((e,t,n)=>Uqe(e,t,n)<=0,"lte");ZQ.exports=Bqe});var RF=y((lEt,eZ)=>{"use strict";var Gqe=wF(),Hqe=NF(),Wqe=zm(),Kqe=BE(),Jqe=UE(),Yqe=GE(),Xqe=s((e,t,n,r)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return Gqe(e,n,r);case"!=":return Hqe(e,n,r);case">":return Wqe(e,n,r);case">=":return Kqe(e,n,r);case"<":return Jqe(e,n,r);case"<=":return Yqe(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}},"cmp");eZ.exports=Xqe});var nZ=y((fEt,tZ)=>{"use strict";var zqe=$r(),Qqe=yu(),{safeRe:HE,t:WE}=Gp(),Zqe=s((e,t)=>{if(e instanceof zqe)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(t.includePrerelease?HE[WE.COERCEFULL]:HE[WE.COERCE]);else{let l=t.includePrerelease?HE[WE.COERCERTLFULL]:HE[WE.COERCERTL],u;for(;(u=l.exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(n===null)return null;let r=n[2],i=n[3]||"0",o=n[4]||"0",a=t.includePrerelease&&n[5]?`-${n[5]}`:"",c=t.includePrerelease&&n[6]?`+${n[6]}`:"";return Qqe(`${r}.${i}.${o}${a}${c}`,t)},"coerce");tZ.exports=Zqe});var iZ=y((dEt,rZ)=>{"use strict";var LF=class LF{constructor(){this.max=1e3,this.map=new Map}get(t){let n=this.map.get(t);if(n!==void 0)return this.map.delete(t),this.map.set(t,n),n}delete(t){return this.map.delete(t)}set(t,n){if(!this.delete(t)&&n!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(t,n)}return this}};s(LF,"LRUCache");var FF=LF;rZ.exports=FF});var ms=y((gEt,cZ)=>{"use strict";var eUe=/\s+/g,Hp=class Hp{constructor(t,n){if(n=nUe(n),t instanceof Hp)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new Hp(t.raw,n);if(t instanceof DF)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().replace(eUe," "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let r=this.set[0];if(this.set=this.set.filter(i=>!oZ(i[0])),this.set.length===0)this.set=[r];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&lUe(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let n=this.set[t];for(let r=0;r<n.length;r++)r>0&&(this.formatted+=" "),this.formatted+=n[r].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let r=((this.options.includePrerelease&&aUe)|(this.options.loose&&cUe))+":"+t,i=sZ.get(r);if(i)return i;let o=this.options.loose,a=o?oi[kr.HYPHENRANGELOOSE]:oi[kr.HYPHENRANGE];t=t.replace(a,vUe(this.options.includePrerelease)),An("hyphen replace",t),t=t.replace(oi[kr.COMPARATORTRIM],iUe),An("comparator trim",t),t=t.replace(oi[kr.TILDETRIM],sUe),An("tilde trim",t),t=t.replace(oi[kr.CARETTRIM],oUe),An("caret trim",t);let c=t.split(" ").map(p=>uUe(p,this.options)).join(" ").split(/\s+/).map(p=>bUe(p,this.options));o&&(c=c.filter(p=>(An("loose invalid filter",p,this.options),!!p.match(oi[kr.COMPARATORLOOSE])))),An("range list",c);let l=new Map,u=c.map(p=>new DF(p,this.options));for(let p of u){if(oZ(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let f=[...l.values()];return sZ.set(r,f),f}intersects(t,n){if(!(t instanceof Hp))throw new TypeError("a Range is required");return this.set.some(r=>aZ(r,n)&&t.set.some(i=>aZ(i,n)&&r.every(o=>i.every(a=>o.intersects(a,n)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new rUe(t,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(TUe(this.set[n],t,this.options))return!0;return!1}};s(Hp,"Range");var jF=Hp;cZ.exports=jF;var tUe=iZ(),sZ=new tUe,nUe=DE(),DF=Qm(),An=Xm(),rUe=$r(),{safeRe:oi,t:kr,comparatorTrimReplace:iUe,tildeTrimReplace:sUe,caretTrimReplace:oUe}=Gp(),{FLAG_INCLUDE_PRERELEASE:aUe,FLAG_LOOSE:cUe}=Ym(),oZ=s(e=>e.value==="<0.0.0-0","isNullSet"),lUe=s(e=>e.value==="","isAny"),aZ=s((e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(o=>i.intersects(o,t)),i=r.pop();return n},"isSatisfiable"),uUe=s((e,t)=>(e=e.replace(oi[kr.BUILD],""),An("comp",e,t),e=dUe(e,t),An("caret",e),e=fUe(e,t),An("tildes",e),e=gUe(e,t),An("xrange",e),e=yUe(e,t),An("stars",e),e),"parseComparator"),ai=s(e=>!e||e.toLowerCase()==="x"||e==="*","isX"),fUe=s((e,t)=>e.trim().split(/\s+/).map(n=>pUe(n,t)).join(" "),"replaceTildes"),pUe=s((e,t)=>{let n=t.loose?oi[kr.TILDELOOSE]:oi[kr.TILDE];return e.replace(n,(r,i,o,a,c)=>{An("tilde",e,r,i,o,a,c);let l;return ai(i)?l="":ai(o)?l=`>=${i}.0.0 <${+i+1}.0.0-0`:ai(a)?l=`>=${i}.${o}.0 <${i}.${+o+1}.0-0`:c?(An("replaceTilde pr",c),l=`>=${i}.${o}.${a}-${c} <${i}.${+o+1}.0-0`):l=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`,An("tilde return",l),l})},"replaceTilde"),dUe=s((e,t)=>e.trim().split(/\s+/).map(n=>hUe(n,t)).join(" "),"replaceCarets"),hUe=s((e,t)=>{An("caret",e,t);let n=t.loose?oi[kr.CARETLOOSE]:oi[kr.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,(i,o,a,c,l)=>{An("caret",e,i,o,a,c,l);let u;return ai(o)?u="":ai(a)?u=`>=${o}.0.0${r} <${+o+1}.0.0-0`:ai(c)?o==="0"?u=`>=${o}.${a}.0${r} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${r} <${+o+1}.0.0-0`:l?(An("replaceCaret pr",l),o==="0"?a==="0"?u=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(An("no pr"),o==="0"?a==="0"?u=`>=${o}.${a}.${c}${r} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}${r} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),An("caret return",u),u})},"replaceCaret"),gUe=s((e,t)=>(An("replaceXRanges",e,t),e.split(/\s+/).map(n=>mUe(n,t)).join(" ")),"replaceXRanges"),mUe=s((e,t)=>{e=e.trim();let n=t.loose?oi[kr.XRANGELOOSE]:oi[kr.XRANGE];return e.replace(n,(r,i,o,a,c,l)=>{An("xRange",e,r,i,o,a,c,l);let u=ai(o),f=u||ai(a),p=f||ai(c),d=p;return i==="="&&d&&(i=""),l=t.includePrerelease?"-0":"",u?i===">"||i==="<"?r="<0.0.0-0":r="*":i&&d?(f&&(a=0),c=0,i===">"?(i=">=",f?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):i==="<="&&(i="<",f?o=+o+1:a=+a+1),i==="<"&&(l="-0"),r=`${i+o}.${a}.${c}${l}`):f?r=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(r=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),An("xRange return",r),r})},"replaceXRange"),yUe=s((e,t)=>(An("replaceStars",e,t),e.trim().replace(oi[kr.STAR],"")),"replaceStars"),bUe=s((e,t)=>(An("replaceGTE0",e,t),e.trim().replace(oi[t.includePrerelease?kr.GTE0PRE:kr.GTE0],"")),"replaceGTE0"),vUe=s(e=>(t,n,r,i,o,a,c,l,u,f,p,d)=>(ai(r)?n="":ai(i)?n=`>=${r}.0.0${e?"-0":""}`:ai(o)?n=`>=${r}.${i}.0${e?"-0":""}`:a?n=`>=${n}`:n=`>=${n}${e?"-0":""}`,ai(u)?l="":ai(f)?l=`<${+u+1}.0.0-0`:ai(p)?l=`<${u}.${+f+1}.0-0`:d?l=`<=${u}.${f}.${p}-${d}`:e?l=`<${u}.${f}.${+p+1}-0`:l=`<=${l}`,`${n} ${l}`.trim()),"hyphenReplace"),TUe=s((e,t,n)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let r=0;r<e.length;r++)if(An(e[r].semver),e[r].semver!==DF.ANY&&e[r].semver.prerelease.length>0){let i=e[r].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0},"testSet")});var Qm=y((yEt,hZ)=>{"use strict";var Zm=Symbol("SemVer ANY"),ey=class ey{static get ANY(){return Zm}constructor(t,n){if(n=lZ(n),t instanceof ey){if(t.loose===!!n.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),kF("comparator",t,n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===Zm?this.value="":this.value=this.operator+this.semver.version,kF("comp",this)}parse(t){let n=this.options.loose?uZ[fZ.COMPARATORLOOSE]:uZ[fZ.COMPARATOR],r=t.match(n);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new pZ(r[2],this.options.loose):this.semver=Zm}toString(){return this.value}test(t){if(kF("Comparator.test",t,this.options.loose),this.semver===Zm||t===Zm)return!0;if(typeof t=="string")try{t=new pZ(t,this.options)}catch{return!1}return $F(t,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof ey))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new dZ(t.value,n).test(this.value):t.operator===""?t.value===""?!0:new dZ(this.value,n).test(t.semver):(n=lZ(n),n.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||$F(this.semver,"<",t.semver,n)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||$F(this.semver,">",t.semver,n)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};s(ey,"Comparator");var MF=ey;hZ.exports=MF;var lZ=DE(),{safeRe:uZ,t:fZ}=Gp(),$F=RF(),kF=Xm(),pZ=$r(),dZ=ms()});var ty=y((vEt,gZ)=>{"use strict";var SUe=ms(),EUe=s((e,t,n)=>{try{t=new SUe(t,n)}catch{return!1}return t.test(e)},"satisfies");gZ.exports=EUe});var yZ=y((SEt,mZ)=>{"use strict";var PUe=ms(),AUe=s((e,t)=>new PUe(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" ")),"toComparators");mZ.exports=AUe});var vZ=y((PEt,bZ)=>{"use strict";var xUe=$r(),OUe=ms(),IUe=s((e,t,n)=>{let r=null,i=null,o=null;try{o=new OUe(t,n)}catch{return null}return e.forEach(a=>{o.test(a)&&(!r||i.compare(a)===-1)&&(r=a,i=new xUe(r,n))}),r},"maxSatisfying");bZ.exports=IUe});var SZ=y((xEt,TZ)=>{"use strict";var _Ue=$r(),CUe=ms(),wUe=s((e,t,n)=>{let r=null,i=null,o=null;try{o=new CUe(t,n)}catch{return null}return e.forEach(a=>{o.test(a)&&(!r||i.compare(a)===1)&&(r=a,i=new _Ue(r,n))}),r},"minSatisfying");TZ.exports=wUe});var AZ=y((IEt,PZ)=>{"use strict";var VF=$r(),NUe=ms(),EZ=zm(),RUe=s((e,t)=>{e=new NUe(e,t);let n=new VF("0.0.0");if(e.test(n)||(n=new VF("0.0.0-0"),e.test(n)))return n;n=null;for(let r=0;r<e.set.length;++r){let i=e.set[r],o=null;i.forEach(a=>{let c=new VF(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||EZ(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!n||EZ(n,o))&&(n=o)}return n&&e.test(n)?n:null},"minVersion");PZ.exports=RUe});var OZ=y((CEt,xZ)=>{"use strict";var FUe=ms(),LUe=s((e,t)=>{try{return new FUe(e,t).range||"*"}catch{return null}},"validRange");xZ.exports=LUe});var KE=y((NEt,wZ)=>{"use strict";var jUe=$r(),CZ=Qm(),{ANY:DUe}=CZ,$Ue=ms(),kUe=ty(),IZ=zm(),_Z=UE(),MUe=GE(),VUe=BE(),qUe=s((e,t,n,r)=>{e=new jUe(e,r),t=new $Ue(t,r);let i,o,a,c,l;switch(n){case">":i=IZ,o=MUe,a=_Z,c=">",l=">=";break;case"<":i=_Z,o=VUe,a=IZ,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(kUe(e,t,r))return!1;for(let u=0;u<t.set.length;++u){let f=t.set[u],p=null,d=null;if(f.forEach(h=>{h.semver===DUe&&(h=new CZ(">=0.0.0")),p=p||h,d=d||h,i(h.semver,p.semver,r)?p=h:a(h.semver,d.semver,r)&&(d=h)}),p.operator===c||p.operator===l||(!d.operator||d.operator===c)&&o(e,d.semver))return!1;if(d.operator===l&&a(e,d.semver))return!1}return!0},"outside");wZ.exports=qUe});var RZ=y((FEt,NZ)=>{"use strict";var UUe=KE(),BUe=s((e,t,n)=>UUe(e,t,">",n),"gtr");NZ.exports=BUe});var LZ=y((jEt,FZ)=>{"use strict";var GUe=KE(),HUe=s((e,t,n)=>GUe(e,t,"<",n),"ltr");FZ.exports=HUe});var $Z=y(($Et,DZ)=>{"use strict";var jZ=ms(),WUe=s((e,t,n)=>(e=new jZ(e,n),t=new jZ(t,n),e.intersects(t,n)),"intersects");DZ.exports=WUe});var MZ=y((MEt,kZ)=>{"use strict";var KUe=ty(),JUe=gs();kZ.exports=(e,t,n)=>{let r=[],i=null,o=null,a=e.sort((f,p)=>JUe(f,p,n));for(let f of a)KUe(f,t,n)?(o=f,i||(i=f)):(o&&r.push([i,o]),o=null,i=null);i&&r.push([i,null]);let c=[];for(let[f,p]of r)f===p?c.push(f):!p&&f===a[0]?c.push("*"):p?f===a[0]?c.push(`<=${p}`):c.push(`${f} - ${p}`):c.push(`>=${f}`);let l=c.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return l.length<u.length?l:t}});var HZ=y((VEt,GZ)=>{"use strict";var VZ=ms(),UF=Qm(),{ANY:qF}=UF,ny=ty(),BF=gs(),YUe=s((e,t,n={})=>{if(e===t)return!0;e=new VZ(e,n),t=new VZ(t,n);let r=!1;e:for(let i of e.set){for(let o of t.set){let a=zUe(i,o,n);if(r=r||a!==null,a)continue e}if(r)return!1}return!0},"subset"),XUe=[new UF(">=0.0.0-0")],qZ=[new UF(">=0.0.0")],zUe=s((e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===qF){if(t.length===1&&t[0].semver===qF)return!0;n.includePrerelease?e=XUe:e=qZ}if(t.length===1&&t[0].semver===qF){if(n.includePrerelease)return!0;t=qZ}let r=new Set,i,o;for(let h of e)h.operator===">"||h.operator===">="?i=UZ(i,h,n):h.operator==="<"||h.operator==="<="?o=BZ(o,h,n):r.add(h.semver);if(r.size>1)return null;let a;if(i&&o){if(a=BF(i.semver,o.semver,n),a>0)return null;if(a===0&&(i.operator!==">="||o.operator!=="<="))return null}for(let h of r){if(i&&!ny(h,String(i),n)||o&&!ny(h,String(o),n))return null;for(let m of t)if(!ny(h,String(m),n))return!1;return!0}let c,l,u,f,p=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1,d=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let h of t){if(f=f||h.operator===">"||h.operator===">=",u=u||h.operator==="<"||h.operator==="<=",i){if(d&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===d.major&&h.semver.minor===d.minor&&h.semver.patch===d.patch&&(d=!1),h.operator===">"||h.operator===">="){if(c=UZ(i,h,n),c===h&&c!==i)return!1}else if(i.operator===">="&&!ny(i.semver,String(h),n))return!1}if(o){if(p&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===p.major&&h.semver.minor===p.minor&&h.semver.patch===p.patch&&(p=!1),h.operator==="<"||h.operator==="<="){if(l=BZ(o,h,n),l===h&&l!==o)return!1}else if(o.operator==="<="&&!ny(o.semver,String(h),n))return!1}if(!h.operator&&(o||i)&&a!==0)return!1}return!(i&&u&&!o&&a!==0||o&&f&&!i&&a!==0||d||p)},"simpleSubset"),UZ=s((e,t,n)=>{if(!e)return t;let r=BF(e.semver,t.semver,n);return r>0?e:r<0||t.operator===">"&&e.operator===">="?t:e},"higherGT"),BZ=s((e,t,n)=>{if(!e)return t;let r=BF(e.semver,t.semver,n);return r<0?e:r>0||t.operator==="<"&&e.operator==="<="?t:e},"lowerLT");GZ.exports=YUe});var ry=y((UEt,JZ)=>{"use strict";var GF=Gp(),WZ=Ym(),QUe=$r(),KZ=IF(),ZUe=yu(),eBe=vQ(),tBe=SQ(),nBe=AQ(),rBe=IQ(),iBe=CQ(),sBe=NQ(),oBe=FQ(),aBe=jQ(),cBe=gs(),lBe=MQ(),uBe=qQ(),fBe=qE(),pBe=HQ(),dBe=KQ(),hBe=zm(),gBe=UE(),mBe=wF(),yBe=NF(),bBe=BE(),vBe=GE(),TBe=RF(),SBe=nZ(),EBe=Qm(),PBe=ms(),ABe=ty(),xBe=yZ(),OBe=vZ(),IBe=SZ(),_Be=AZ(),CBe=OZ(),wBe=KE(),NBe=RZ(),RBe=LZ(),FBe=$Z(),LBe=MZ(),jBe=HZ();JZ.exports={parse:ZUe,valid:eBe,clean:tBe,inc:nBe,diff:rBe,major:iBe,minor:sBe,patch:oBe,prerelease:aBe,compare:cBe,rcompare:lBe,compareLoose:uBe,compareBuild:fBe,sort:pBe,rsort:dBe,gt:hBe,lt:gBe,eq:mBe,neq:yBe,gte:bBe,lte:vBe,cmp:TBe,coerce:SBe,Comparator:EBe,Range:PBe,satisfies:ABe,toComparators:xBe,maxSatisfying:OBe,minSatisfying:IBe,minVersion:_Be,validRange:CBe,outside:wBe,gtr:NBe,ltr:RBe,intersects:FBe,simplifyRange:LBe,subset:jBe,SemVer:QUe,re:GF.re,src:GF.src,tokens:GF.t,SEMVER_SPEC_VERSION:WZ.SEMVER_SPEC_VERSION,RELEASE_TYPES:WZ.RELEASE_TYPES,compareIdentifiers:KZ.compareIdentifiers,rcompareIdentifiers:KZ.rcompareIdentifiers}});var XZ=y((BEt,YZ)=>{var Nc=require("constants"),DBe=process.cwd,JE=null,$Be=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return JE||(JE=DBe.call(process)),JE};try{process.cwd()}catch{}typeof process.chdir=="function"&&(HF=process.chdir,process.chdir=function(e){JE=null,HF.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,HF));var HF;YZ.exports=kBe;function kBe(e){Nc.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||n(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=c(e.stat),e.fstat=c(e.fstat),e.lstat=c(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(f,p,d){d&&process.nextTick(d)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(f,p,d,h){h&&process.nextTick(h)},e.lchownSync=function(){}),$Be==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:(function(f){function p(d,h,m){var b=Date.now(),T=0;f(d,h,s(function I(F){if(F&&(F.code==="EACCES"||F.code==="EPERM"||F.code==="EBUSY")&&Date.now()-b<6e4){setTimeout(function(){e.stat(h,function(N,$){N&&N.code==="ENOENT"?f(d,h,I):m(F)})},T),T<100&&(T+=10);return}m&&m(F)},"CB"))}return s(p,"rename"),Object.setPrototypeOf&&Object.setPrototypeOf(p,f),p})(e.rename)),e.read=typeof e.read!="function"?e.read:(function(f){function p(d,h,m,b,T,I){var F;if(I&&typeof I=="function"){var N=0;F=s(function($,j,M){if($&&$.code==="EAGAIN"&&N<10)return N++,f.call(e,d,h,m,b,T,F);I.apply(this,arguments)},"callback")}return f.call(e,d,h,m,b,T,F)}return s(p,"read"),Object.setPrototypeOf&&Object.setPrototypeOf(p,f),p})(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:(function(f){return function(p,d,h,m,b){for(var T=0;;)try{return f.call(e,p,d,h,m,b)}catch(I){if(I.code==="EAGAIN"&&T<10){T++;continue}throw I}}})(e.readSync);function t(f){f.lchmod=function(p,d,h){f.open(p,Nc.O_WRONLY|Nc.O_SYMLINK,d,function(m,b){if(m){h&&h(m);return}f.fchmod(b,d,function(T){f.close(b,function(I){h&&h(T||I)})})})},f.lchmodSync=function(p,d){var h=f.openSync(p,Nc.O_WRONLY|Nc.O_SYMLINK,d),m=!0,b;try{b=f.fchmodSync(h,d),m=!1}finally{if(m)try{f.closeSync(h)}catch{}else f.closeSync(h)}return b}}s(t,"patchLchmod");function n(f){Nc.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(p,d,h,m){f.open(p,Nc.O_SYMLINK,function(b,T){if(b){m&&m(b);return}f.futimes(T,d,h,function(I){f.close(T,function(F){m&&m(I||F)})})})},f.lutimesSync=function(p,d,h){var m=f.openSync(p,Nc.O_SYMLINK),b,T=!0;try{b=f.futimesSync(m,d,h),T=!1}finally{if(T)try{f.closeSync(m)}catch{}else f.closeSync(m)}return b}):f.futimes&&(f.lutimes=function(p,d,h,m){m&&process.nextTick(m)},f.lutimesSync=function(){})}s(n,"patchLutimes");function r(f){return f&&function(p,d,h){return f.call(e,p,d,function(m){u(m)&&(m=null),h&&h.apply(this,arguments)})}}s(r,"chmodFix");function i(f){return f&&function(p,d){try{return f.call(e,p,d)}catch(h){if(!u(h))throw h}}}s(i,"chmodFixSync");function o(f){return f&&function(p,d,h,m){return f.call(e,p,d,h,function(b){u(b)&&(b=null),m&&m.apply(this,arguments)})}}s(o,"chownFix");function a(f){return f&&function(p,d,h){try{return f.call(e,p,d,h)}catch(m){if(!u(m))throw m}}}s(a,"chownFixSync");function c(f){return f&&function(p,d,h){typeof d=="function"&&(h=d,d=null);function m(b,T){T&&(T.uid<0&&(T.uid+=4294967296),T.gid<0&&(T.gid+=4294967296)),h&&h.apply(this,arguments)}return s(m,"callback"),d?f.call(e,p,d,m):f.call(e,p,m)}}s(c,"statFix");function l(f){return f&&function(p,d){var h=d?f.call(e,p,d):f.call(e,p);return h&&(h.uid<0&&(h.uid+=4294967296),h.gid<0&&(h.gid+=4294967296)),h}}s(l,"statFixSync");function u(f){if(!f||f.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(f.code==="EINVAL"||f.code==="EPERM"))}s(u,"chownErOk")}s(kBe,"patch")});var ZZ=y((HEt,QZ)=>{var zZ=require("stream").Stream;QZ.exports=MBe;function MBe(e){return{ReadStream:t,WriteStream:n};function t(r,i){if(!(this instanceof t))return new t(r,i);zZ.call(this);var o=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var a=Object.keys(i),c=0,l=a.length;c<l;c++){var u=a[c];this[u]=i[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}e.open(this.path,this.flags,this.mode,function(f,p){if(f){o.emit("error",f),o.readable=!1;return}o.fd=p,o.emit("open",p),o._read()})}function n(r,i){if(!(this instanceof n))return new n(r,i);zZ.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),a=0,c=o.length;a<c;a++){var l=o[a];this[l]=i[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}s(MBe,"legacy")});var tee=y((KEt,eee)=>{"use strict";eee.exports=qBe;var VBe=Object.getPrototypeOf||function(e){return e.__proto__};function qBe(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:VBe(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}s(qBe,"clone")});var see=y((YEt,JF)=>{var Nn=require("fs"),UBe=XZ(),BBe=ZZ(),GBe=tee(),YE=require("util"),Tr,zE;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Tr=Symbol.for("graceful-fs.queue"),zE=Symbol.for("graceful-fs.previous")):(Tr="___graceful-fs.queue",zE="___graceful-fs.previous");function HBe(){}s(HBe,"noop");function iee(e,t){Object.defineProperty(e,Tr,{get:s(function(){return t},"get")})}s(iee,"publishQueue");var bu=HBe;YE.debuglog?bu=YE.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(bu=s(function(){var e=YE.format.apply(YE,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
266
|
-
GFS4: `),console.error(e)},"debug"));Nn[Tr]||(nee=global[Tr]||[],iee(Nn,nee),Nn.close=(function(e){function t(n,r){return e.call(Nn,n,function(i){i||ree(),typeof r=="function"&&r.apply(this,arguments)})}return s(t,"close"),Object.defineProperty(t,zE,{value:e}),t})(Nn.close),Nn.closeSync=(function(e){function t(n){e.apply(Nn,arguments),ree()}return s(t,"closeSync"),Object.defineProperty(t,zE,{value:e}),t})(Nn.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){bu(Nn[Tr]),require("assert").equal(Nn[Tr].length,0)}));var nee;global[Tr]||iee(global,Nn[Tr]);JF.exports=WF(GBe(Nn));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Nn.__patched&&(JF.exports=WF(Nn),Nn.__patched=!0);function WF(e){UBe(e),e.gracefulify=WF,e.createReadStream=j,e.createWriteStream=M;var t=e.readFile;e.readFile=n;function n(R,se,G){return typeof se=="function"&&(G=se,se=null),Te(R,se,G);function Te(pe,ue,W,H){return t(pe,ue,function(Ae){Ae&&(Ae.code==="EMFILE"||Ae.code==="ENFILE")?Wp([Te,[pe,ue,W],Ae,H||Date.now(),Date.now()]):typeof W=="function"&&W.apply(this,arguments)})}s(Te,"go$readFile")}s(n,"readFile");var r=e.writeFile;e.writeFile=i;function i(R,se,G,Te){return typeof G=="function"&&(Te=G,G=null),pe(R,se,G,Te);function pe(ue,W,H,Ae,Ne){return r(ue,W,H,function(Be){Be&&(Be.code==="EMFILE"||Be.code==="ENFILE")?Wp([pe,[ue,W,H,Ae],Be,Ne||Date.now(),Date.now()]):typeof Ae=="function"&&Ae.apply(this,arguments)})}s(pe,"go$writeFile")}s(i,"writeFile");var o=e.appendFile;o&&(e.appendFile=a);function a(R,se,G,Te){return typeof G=="function"&&(Te=G,G=null),pe(R,se,G,Te);function pe(ue,W,H,Ae,Ne){return o(ue,W,H,function(Be){Be&&(Be.code==="EMFILE"||Be.code==="ENFILE")?Wp([pe,[ue,W,H,Ae],Be,Ne||Date.now(),Date.now()]):typeof Ae=="function"&&Ae.apply(this,arguments)})}s(pe,"go$appendFile")}s(a,"appendFile");var c=e.copyFile;c&&(e.copyFile=l);function l(R,se,G,Te){return typeof G=="function"&&(Te=G,G=0),pe(R,se,G,Te);function pe(ue,W,H,Ae,Ne){return c(ue,W,H,function(Be){Be&&(Be.code==="EMFILE"||Be.code==="ENFILE")?Wp([pe,[ue,W,H,Ae],Be,Ne||Date.now(),Date.now()]):typeof Ae=="function"&&Ae.apply(this,arguments)})}s(pe,"go$copyFile")}s(l,"copyFile");var u=e.readdir;e.readdir=p;var f=/^v[0-5]\./;function p(R,se,G){typeof se=="function"&&(G=se,se=null);var Te=f.test(process.version)?s(function(W,H,Ae,Ne){return u(W,pe(W,H,Ae,Ne))},"go$readdir"):s(function(W,H,Ae,Ne){return u(W,H,pe(W,H,Ae,Ne))},"go$readdir");return Te(R,se,G);function pe(ue,W,H,Ae){return function(Ne,Be){Ne&&(Ne.code==="EMFILE"||Ne.code==="ENFILE")?Wp([Te,[ue,W,H],Ne,Ae||Date.now(),Date.now()]):(Be&&Be.sort&&Be.sort(),typeof H=="function"&&H.call(this,Ne,Be))}}}if(s(p,"readdir"),process.version.substr(0,4)==="v0.8"){var d=BBe(e);I=d.ReadStream,N=d.WriteStream}var h=e.ReadStream;h&&(I.prototype=Object.create(h.prototype),I.prototype.open=F);var m=e.WriteStream;m&&(N.prototype=Object.create(m.prototype),N.prototype.open=$),Object.defineProperty(e,"ReadStream",{get:s(function(){return I},"get"),set:s(function(R){I=R},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:s(function(){return N},"get"),set:s(function(R){N=R},"set"),enumerable:!0,configurable:!0});var b=I;Object.defineProperty(e,"FileReadStream",{get:s(function(){return b},"get"),set:s(function(R){b=R},"set"),enumerable:!0,configurable:!0});var T=N;Object.defineProperty(e,"FileWriteStream",{get:s(function(){return T},"get"),set:s(function(R){T=R},"set"),enumerable:!0,configurable:!0});function I(R,se){return this instanceof I?(h.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}s(I,"ReadStream");function F(){var R=this;U(R.path,R.flags,R.mode,function(se,G){se?(R.autoClose&&R.destroy(),R.emit("error",se)):(R.fd=G,R.emit("open",G),R.read())})}s(F,"ReadStream$open");function N(R,se){return this instanceof N?(m.apply(this,arguments),this):N.apply(Object.create(N.prototype),arguments)}s(N,"WriteStream");function $(){var R=this;U(R.path,R.flags,R.mode,function(se,G){se?(R.destroy(),R.emit("error",se)):(R.fd=G,R.emit("open",G))})}s($,"WriteStream$open");function j(R,se){return new e.ReadStream(R,se)}s(j,"createReadStream");function M(R,se){return new e.WriteStream(R,se)}s(M,"createWriteStream");var k=e.open;e.open=U;function U(R,se,G,Te){return typeof G=="function"&&(Te=G,G=null),pe(R,se,G,Te);function pe(ue,W,H,Ae,Ne){return k(ue,W,H,function(Be,tn){Be&&(Be.code==="EMFILE"||Be.code==="ENFILE")?Wp([pe,[ue,W,H,Ae],Be,Ne||Date.now(),Date.now()]):typeof Ae=="function"&&Ae.apply(this,arguments)})}s(pe,"go$open")}return s(U,"open"),e}s(WF,"patch");function Wp(e){bu("ENQUEUE",e[0].name,e[1]),Nn[Tr].push(e),KF()}s(Wp,"enqueue");var XE;function ree(){for(var e=Date.now(),t=0;t<Nn[Tr].length;++t)Nn[Tr][t].length>2&&(Nn[Tr][t][3]=e,Nn[Tr][t][4]=e);KF()}s(ree,"resetQueue");function KF(){if(clearTimeout(XE),XE=void 0,Nn[Tr].length!==0){var e=Nn[Tr].shift(),t=e[0],n=e[1],r=e[2],i=e[3],o=e[4];if(i===void 0)bu("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-i>=6e4){bu("TIMEOUT",t.name,n);var a=n.pop();typeof a=="function"&&a.call(null,r)}else{var c=Date.now()-o,l=Math.max(o-i,1),u=Math.min(l*1.2,100);c>=u?(bu("RETRY",t.name,n),t.apply(null,n.concat([i]))):Nn[Tr].push(e)}XE===void 0&&(XE=setTimeout(KF,0))}}s(KF,"retry")});var YF=y((oee,aee)=>{oee=aee.exports=function(e){for(var t=0;t<e.length;){if(e[t]==9||e[t]==10||e[t]==13||32<=e[t]&&e[t]<=126){t+=1;continue}if(194<=e[t]&&e[t]<=223&&128<=e[t+1]&&e[t+1]<=191){t+=2;continue}if(e[t]==224&&160<=e[t+1]&&e[t+1]<=191&&128<=e[t+2]&&e[t+2]<=191||(225<=e[t]&&e[t]<=236||e[t]==238||e[t]==239)&&128<=e[t+1]&&e[t+1]<=191&&128<=e[t+2]&&e[t+2]<=191||e[t]==237&&128<=e[t+1]&&e[t+1]<=159&&128<=e[t+2]&&e[t+2]<=191){t+=3;continue}if(e[t]==240&&144<=e[t+1]&&e[t+1]<=191&&128<=e[t+2]&&e[t+2]<=191&&128<=e[t+3]&&e[t+3]<=191||241<=e[t]&&e[t]<=243&&128<=e[t+1]&&e[t+1]<=191&&128<=e[t+2]&&e[t+2]<=191&&128<=e[t+3]&&e[t+3]<=191||e[t]==244&&128<=e[t+1]&&e[t+1]<=143&&128<=e[t+2]&&e[t+2]<=191&&128<=e[t+3]&&e[t+3]<=191){t+=4;continue}return!1}return!0}});var lee=y((zEt,cee)=>{"use strict";var WBe=YF();cee.exports=e=>{if(!Buffer.isBuffer(e))throw new TypeError("Expected a Buffer, got "+typeof e);return e[0]===239&&e[1]===187&&e[2]===191&&WBe(e)?e.slice(3):e}});var Kp=y((QEt,XF)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?XF.exports={nextTick:KBe}:XF.exports=process;function KBe(e,t,n,r){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,o,a;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(s(function(){e.call(null,t)},"afterTickOne"));case 3:return process.nextTick(s(function(){e.call(null,t,n)},"afterTickTwo"));case 4:return process.nextTick(s(function(){e.call(null,t,n,r)},"afterTickThree"));default:for(o=new Array(i-1),a=0;a<o.length;)o[a++]=arguments[a];return process.nextTick(s(function(){e.apply(null,o)},"afterTick"))}}s(KBe,"nextTick")});var fee=y((ePt,uee)=>{var JBe={}.toString;uee.exports=Array.isArray||function(e){return JBe.call(e)=="[object Array]"}});var zF=y((tPt,pee)=>{pee.exports=require("stream")});var iy=y((QF,hee)=>{var QE=require("buffer"),aa=QE.Buffer;function dee(e,t){for(var n in e)t[n]=e[n]}s(dee,"copyProps");aa.from&&aa.alloc&&aa.allocUnsafe&&aa.allocUnsafeSlow?hee.exports=QE:(dee(QE,QF),QF.Buffer=Jp);function Jp(e,t,n){return aa(e,t,n)}s(Jp,"SafeBuffer");dee(aa,Jp);Jp.from=function(e,t,n){if(typeof e=="number")throw new TypeError("Argument must not be a number");return aa(e,t,n)};Jp.alloc=function(e,t,n){if(typeof e!="number")throw new TypeError("Argument must be a number");var r=aa(e);return t!==void 0?typeof n=="string"?r.fill(t,n):r.fill(t):r.fill(0),r};Jp.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return aa(e)};Jp.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return QE.SlowBuffer(e)}});var Yp=y(Mr=>{function YBe(e){return Array.isArray?Array.isArray(e):ZE(e)==="[object Array]"}s(YBe,"isArray");Mr.isArray=YBe;function XBe(e){return typeof e=="boolean"}s(XBe,"isBoolean");Mr.isBoolean=XBe;function zBe(e){return e===null}s(zBe,"isNull");Mr.isNull=zBe;function QBe(e){return e==null}s(QBe,"isNullOrUndefined");Mr.isNullOrUndefined=QBe;function ZBe(e){return typeof e=="number"}s(ZBe,"isNumber");Mr.isNumber=ZBe;function eGe(e){return typeof e=="string"}s(eGe,"isString");Mr.isString=eGe;function tGe(e){return typeof e=="symbol"}s(tGe,"isSymbol");Mr.isSymbol=tGe;function nGe(e){return e===void 0}s(nGe,"isUndefined");Mr.isUndefined=nGe;function rGe(e){return ZE(e)==="[object RegExp]"}s(rGe,"isRegExp");Mr.isRegExp=rGe;function iGe(e){return typeof e=="object"&&e!==null}s(iGe,"isObject");Mr.isObject=iGe;function sGe(e){return ZE(e)==="[object Date]"}s(sGe,"isDate");Mr.isDate=sGe;function oGe(e){return ZE(e)==="[object Error]"||e instanceof Error}s(oGe,"isError");Mr.isError=oGe;function aGe(e){return typeof e=="function"}s(aGe,"isFunction");Mr.isFunction=aGe;function cGe(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}s(cGe,"isPrimitive");Mr.isPrimitive=cGe;Mr.isBuffer=require("buffer").Buffer.isBuffer;function ZE(e){return Object.prototype.toString.call(e)}s(ZE,"objectToString")});var gee=y((sPt,ZF)=>{typeof Object.create=="function"?ZF.exports=s(function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):ZF.exports=s(function(t,n){if(n){t.super_=n;var r=s(function(){},"TempCtor");r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}},"inherits")});var vu=y((aPt,tL)=>{try{if(eL=require("util"),typeof eL.inherits!="function")throw"";tL.exports=eL.inherits}catch{tL.exports=gee()}var eL});var yee=y((cPt,nL)=>{"use strict";function lGe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}s(lGe,"_classCallCheck");var mee=iy().Buffer,sy=require("util");function uGe(e,t,n){e.copy(t,n)}s(uGe,"copyBuffer");nL.exports=(function(){function e(){lGe(this,e),this.head=null,this.tail=null,this.length=0}return s(e,"BufferList"),e.prototype.push=s(function(n){var r={data:n,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length},"push"),e.prototype.unshift=s(function(n){var r={data:n,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length},"unshift"),e.prototype.shift=s(function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}},"shift"),e.prototype.clear=s(function(){this.head=this.tail=null,this.length=0},"clear"),e.prototype.join=s(function(n){if(this.length===0)return"";for(var r=this.head,i=""+r.data;r=r.next;)i+=n+r.data;return i},"join"),e.prototype.concat=s(function(n){if(this.length===0)return mee.alloc(0);for(var r=mee.allocUnsafe(n>>>0),i=this.head,o=0;i;)uGe(i.data,r,o),o+=i.data.length,i=i.next;return r},"concat"),e})();sy&&sy.inspect&&sy.inspect.custom&&(nL.exports.prototype[sy.inspect.custom]=function(){var e=sy.inspect({length:this.length});return this.constructor.name+" "+e})});var rL=y((uPt,bee)=>{"use strict";var eP=Kp();function fGe(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,eP.nextTick(tP,this,e)):eP.nextTick(tP,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!t&&o?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,eP.nextTick(tP,n,o)):eP.nextTick(tP,n,o):t&&t(o)}),this)}s(fGe,"destroy");function pGe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}s(pGe,"undestroy");function tP(e,t){e.emit("error",t)}s(tP,"emitErrorNT");bee.exports={destroy:fGe,undestroy:pGe}});var Tee=y((pPt,vee)=>{vee.exports=require("util").deprecate});var sL=y((dPt,_ee)=>{"use strict";var Tu=Kp();_ee.exports=Yn;function Eee(e){var t=this;this.next=null,this.entry=null,this.finish=function(){wGe(t,e)}}s(Eee,"CorkedRequest");var dGe=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Tu.nextTick,Xp;Yn.WritableState=ay;var Pee=Object.create(Yp());Pee.inherits=vu();var hGe={deprecate:Tee()},Aee=zF(),rP=iy().Buffer,gGe=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function mGe(e){return rP.from(e)}s(mGe,"_uint8ArrayToBuffer");function yGe(e){return rP.isBuffer(e)||e instanceof gGe}s(yGe,"_isUint8Array");var xee=rL();Pee.inherits(Yn,Aee);function bGe(){}s(bGe,"nop");function ay(e,t){Xp=Xp||Su(),e=e||{};var n=t instanceof Xp;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,i=e.writableHighWaterMark,o=this.objectMode?16:16*1024;r||r===0?this.highWaterMark=r:n&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(c){xGe(t,c)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Eee(this)}s(ay,"WritableState");ay.prototype.getBuffer=s(function(){for(var t=this.bufferedRequest,n=[];t;)n.push(t),t=t.next;return n},"getBuffer");(function(){try{Object.defineProperty(ay.prototype,"buffer",{get:hGe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var nP;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(nP=Function.prototype[Symbol.hasInstance],Object.defineProperty(Yn,Symbol.hasInstance,{value:s(function(e){return nP.call(this,e)?!0:this!==Yn?!1:e&&e._writableState instanceof ay},"value")})):nP=s(function(e){return e instanceof this},"realHasInstance");function Yn(e){if(Xp=Xp||Su(),!nP.call(Yn,this)&&!(this instanceof Xp))return new Yn(e);this._writableState=new ay(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Aee.call(this)}s(Yn,"Writable");Yn.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function vGe(e,t){var n=new Error("write after end");e.emit("error",n),Tu.nextTick(t,n)}s(vGe,"writeAfterEnd");function TGe(e,t,n,r){var i=!0,o=!1;return n===null?o=new TypeError("May not write null values to stream"):typeof n!="string"&&n!==void 0&&!t.objectMode&&(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),Tu.nextTick(r,o),i=!1),i}s(TGe,"validChunk");Yn.prototype.write=function(e,t,n){var r=this._writableState,i=!1,o=!r.objectMode&&yGe(e);return o&&!rP.isBuffer(e)&&(e=mGe(e)),typeof t=="function"&&(n=t,t=null),o?t="buffer":t||(t=r.defaultEncoding),typeof n!="function"&&(n=bGe),r.ended?vGe(this,n):(o||TGe(this,r,e,n))&&(r.pendingcb++,i=EGe(this,r,o,e,t,n)),i};Yn.prototype.cork=function(){var e=this._writableState;e.corked++};Yn.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Oee(this,e))};Yn.prototype.setDefaultEncoding=s(function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},"setDefaultEncoding");function SGe(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=rP.from(t,n)),t}s(SGe,"decodeChunk");Object.defineProperty(Yn.prototype,"writableHighWaterMark",{enumerable:!1,get:s(function(){return this._writableState.highWaterMark},"get")});function EGe(e,t,n,r,i,o){if(!n){var a=SGe(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var c=t.objectMode?1:r.length;t.length+=c;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else iL(e,t,!1,c,r,i,o);return l}s(EGe,"writeOrBuffer");function iL(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}s(iL,"doWrite");function PGe(e,t,n,r,i){--t.pendingcb,n?(Tu.nextTick(i,r),Tu.nextTick(oy,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),oy(e,t))}s(PGe,"onwriteError");function AGe(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}s(AGe,"onwriteStateUpdate");function xGe(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(AGe(n),t)PGe(e,n,r,t,i);else{var o=Iee(n);!o&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&Oee(e,n),r?dGe(See,e,n,o,i):See(e,n,o,i)}}s(xGe,"onwrite");function See(e,t,n,r){n||OGe(e,t),t.pendingcb--,r(),oy(e,t)}s(See,"afterWrite");function OGe(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}s(OGe,"onwriteDrain");function Oee(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var a=0,c=!0;n;)i[a]=n,n.isBuf||(c=!1),n=n.next,a+=1;i.allBuffers=c,iL(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new Eee(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,f=n.callback,p=t.objectMode?1:l.length;if(iL(e,t,!1,p,l,u,f),n=n.next,t.bufferedRequestCount--,t.writing)break}n===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}s(Oee,"clearBuffer");Yn.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))};Yn.prototype._writev=null;Yn.prototype.end=function(e,t,n){var r=this._writableState;typeof e=="function"?(n=e,e=null,t=null):typeof t=="function"&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||CGe(this,r,n)};function Iee(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}s(Iee,"needFinish");function IGe(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),oy(e,t)})}s(IGe,"callFinal");function _Ge(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Tu.nextTick(IGe,e,t)):(t.prefinished=!0,e.emit("prefinish")))}s(_Ge,"prefinish");function oy(e,t){var n=Iee(t);return n&&(_Ge(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),n}s(oy,"finishMaybe");function CGe(e,t,n){t.ending=!0,oy(e,t),n&&(t.finished?Tu.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}s(CGe,"endWritable");function wGe(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}s(wGe,"onCorkedFinish");Object.defineProperty(Yn.prototype,"destroyed",{get:s(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get"),set:s(function(e){this._writableState&&(this._writableState.destroyed=e)},"set")});Yn.prototype.destroy=xee.destroy;Yn.prototype._undestroy=xee.undestroy;Yn.prototype._destroy=function(e,t){this.end(),t(e)}});var Su=y((gPt,Ree)=>{"use strict";var Cee=Kp(),NGe=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};Ree.exports=ca;var wee=Object.create(Yp());wee.inherits=vu();var Nee=cL(),aL=sL();wee.inherits(ca,Nee);for(oL=NGe(aL.prototype),iP=0;iP<oL.length;iP++)sP=oL[iP],ca.prototype[sP]||(ca.prototype[sP]=aL.prototype[sP]);var oL,sP,iP;function ca(e){if(!(this instanceof ca))return new ca(e);Nee.call(this,e),aL.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",RGe)}s(ca,"Duplex");Object.defineProperty(ca.prototype,"writableHighWaterMark",{enumerable:!1,get:s(function(){return this._writableState.highWaterMark},"get")});function RGe(){this.allowHalfOpen||this._writableState.ended||Cee.nextTick(FGe,this)}s(RGe,"onend");function FGe(e){e.end()}s(FGe,"onEndNT");Object.defineProperty(ca.prototype,"destroyed",{get:s(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get"),set:s(function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)},"set")});ca.prototype._destroy=function(e,t){this.push(null),this.end(),Cee.nextTick(t,e)}});var fL=y(Lee=>{"use strict";var uL=iy().Buffer,Fee=uL.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function LGe(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}s(LGe,"_normalizeEncoding");function jGe(e){var t=LGe(e);if(typeof t!="string"&&(uL.isEncoding===Fee||!Fee(e)))throw new Error("Unknown encoding: "+e);return t||e}s(jGe,"normalizeEncoding");Lee.StringDecoder=cy;function cy(e){this.encoding=jGe(e);var t;switch(this.encoding){case"utf16le":this.text=qGe,this.end=UGe,t=4;break;case"utf8":this.fillLast=kGe,t=4;break;case"base64":this.text=BGe,this.end=GGe,t=3;break;default:this.write=HGe,this.end=WGe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=uL.allocUnsafe(t)}s(cy,"StringDecoder");cy.prototype.write=function(e){if(e.length===0)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""};cy.prototype.end=VGe;cy.prototype.text=MGe;cy.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function lL(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}s(lL,"utf8CheckByte");function DGe(e,t,n){var r=t.length-1;if(r<n)return 0;var i=lL(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=lL(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=lL(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}s(DGe,"utf8CheckIncomplete");function $Ge(e,t,n){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}s($Ge,"utf8CheckExtraBytes");function kGe(e){var t=this.lastTotal-this.lastNeed,n=$Ge(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}s(kGe,"utf8FillLast");function MGe(e,t){var n=DGe(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}s(MGe,"utf8Text");function VGe(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}s(VGe,"utf8End");function qGe(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}s(qGe,"utf16Text");function UGe(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}s(UGe,"utf16End");function BGe(e,t){var n=(e.length-t)%3;return n===0?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}s(BGe,"base64Text");function GGe(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}s(GGe,"base64End");function HGe(e){return e.toString(this.encoding)}s(HGe,"simpleWrite");function WGe(e){return e&&e.length?this.write(e):""}s(WGe,"simpleEnd")});var cL=y((TPt,Wee)=>{"use strict";var Qp=Kp();Wee.exports=xn;var KGe=fee(),ly;xn.ReadableState=qee;var vPt=require("events").EventEmitter,kee=s(function(e,t){return e.listeners(t).length},"EElistenerCount"),mL=zF(),uy=iy().Buffer,JGe=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function YGe(e){return uy.from(e)}s(YGe,"_uint8ArrayToBuffer");function XGe(e){return uy.isBuffer(e)||e instanceof JGe}s(XGe,"_isUint8Array");var Mee=Object.create(Yp());Mee.inherits=vu();var pL=require("util"),Wt=void 0;pL&&pL.debuglog?Wt=pL.debuglog("stream"):Wt=s(function(){},"debug");var zGe=yee(),Vee=rL(),zp;Mee.inherits(xn,mL);var dL=["error","close","destroy","pause","resume"];function QGe(e,t,n){if(typeof e.prependListener=="function")return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):KGe(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}s(QGe,"prependListener");function qee(e,t){ly=ly||Su(),e=e||{};var n=t instanceof ly;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,i=e.readableHighWaterMark,o=this.objectMode?16:16*1024;r||r===0?this.highWaterMark=r:n&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new zGe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(zp||(zp=fL().StringDecoder),this.decoder=new zp(e.encoding),this.encoding=e.encoding)}s(qee,"ReadableState");function xn(e){if(ly=ly||Su(),!(this instanceof xn))return new xn(e);this._readableState=new qee(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),mL.call(this)}s(xn,"Readable");Object.defineProperty(xn.prototype,"destroyed",{get:s(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:s(function(e){this._readableState&&(this._readableState.destroyed=e)},"set")});xn.prototype.destroy=Vee.destroy;xn.prototype._undestroy=Vee.undestroy;xn.prototype._destroy=function(e,t){this.push(null),t(e)};xn.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e=="string"&&(t=t||n.defaultEncoding,t!==n.encoding&&(e=uy.from(e,t),t=""),r=!0),Uee(this,e,t,!1,r)};xn.prototype.unshift=function(e){return Uee(this,e,null,!0,!1)};function Uee(e,t,n,r,i){var o=e._readableState;if(t===null)o.reading=!1,nHe(e,o);else{var a;i||(a=ZGe(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?(typeof t!="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==uy.prototype&&(t=YGe(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):hL(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?hL(e,o,t,!1):Bee(e,o)):hL(e,o,t,!1))):r||(o.reading=!1)}return eHe(o)}s(Uee,"readableAddChunk");function hL(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&oP(e)),Bee(e,t)}s(hL,"addChunk");function ZGe(e,t){var n;return!XGe(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(n=new TypeError("Invalid non-string/buffer chunk")),n}s(ZGe,"chunkInvalid");function eHe(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}s(eHe,"needMoreData");xn.prototype.isPaused=function(){return this._readableState.flowing===!1};xn.prototype.setEncoding=function(e){return zp||(zp=fL().StringDecoder),this._readableState.decoder=new zp(e),this._readableState.encoding=e,this};var jee=8388608;function tHe(e){return e>=jee?e=jee:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}s(tHe,"computeNewHighWaterMark");function Dee(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=tHe(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}s(Dee,"howMuchToRead");xn.prototype.read=function(e){Wt("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Wt("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?gL(this):oP(this),null;if(e=Dee(e,t),e===0&&t.ended)return t.length===0&&gL(this),null;var r=t.needReadable;Wt("need readable",r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,Wt("length less than watermark",r)),t.ended||t.reading?(r=!1,Wt("reading or ended",r)):r&&(Wt("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Dee(n,t)));var i;return e>0?i=Gee(e,t):i=null,i===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&gL(this)),i!==null&&this.emit("data",i),i};function nHe(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,oP(e)}}s(nHe,"onEofChunk");function oP(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Wt("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Qp.nextTick($ee,e):$ee(e))}s(oP,"emitReadable");function $ee(e){Wt("emit readable"),e.emit("readable"),yL(e)}s($ee,"emitReadable_");function Bee(e,t){t.readingMore||(t.readingMore=!0,Qp.nextTick(rHe,e,t))}s(Bee,"maybeReadMore");function rHe(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(Wt("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}s(rHe,"maybeReadMore_");xn.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};xn.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,Wt("pipe count=%d opts=%j",r.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,o=i?c:T;r.endEmitted?Qp.nextTick(o):n.once("end",o),e.on("unpipe",a);function a(I,F){Wt("onunpipe"),I===n&&F&&F.hasUnpiped===!1&&(F.hasUnpiped=!0,f())}s(a,"onunpipe");function c(){Wt("onend"),e.end()}s(c,"onend");var l=iHe(n);e.on("drain",l);var u=!1;function f(){Wt("cleanup"),e.removeListener("close",m),e.removeListener("finish",b),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",a),n.removeListener("end",c),n.removeListener("end",T),n.removeListener("data",d),u=!0,r.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}s(f,"cleanup");var p=!1;n.on("data",d);function d(I){Wt("ondata"),p=!1;var F=e.write(I);F===!1&&!p&&((r.pipesCount===1&&r.pipes===e||r.pipesCount>1&&Hee(r.pipes,e)!==-1)&&!u&&(Wt("false write response, pause",r.awaitDrain),r.awaitDrain++,p=!0),n.pause())}s(d,"ondata");function h(I){Wt("onerror",I),T(),e.removeListener("error",h),kee(e,"error")===0&&e.emit("error",I)}s(h,"onerror"),QGe(e,"error",h);function m(){e.removeListener("finish",b),T()}s(m,"onclose"),e.once("close",m);function b(){Wt("onfinish"),e.removeListener("close",m),T()}s(b,"onfinish"),e.once("finish",b);function T(){Wt("unpipe"),n.unpipe(e)}return s(T,"unpipe"),e.emit("pipe",n),r.flowing||(Wt("pipe resume"),n.resume()),e};function iHe(e){return function(){var t=e._readableState;Wt("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&kee(e,"data")&&(t.flowing=!0,yL(e))}}s(iHe,"pipeOnDrain");xn.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=Hee(t.pipes,e);return a===-1?this:(t.pipes.splice(a,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n),this)};xn.prototype.on=function(e,t){var n=mL.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var r=this._readableState;!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&oP(this):Qp.nextTick(sHe,this))}return n};xn.prototype.addListener=xn.prototype.on;function sHe(e){Wt("readable nexttick read 0"),e.read(0)}s(sHe,"nReadingNextTick");xn.prototype.resume=function(){var e=this._readableState;return e.flowing||(Wt("resume"),e.flowing=!0,oHe(this,e)),this};function oHe(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Qp.nextTick(aHe,e,t))}s(oHe,"resume");function aHe(e,t){t.reading||(Wt("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),yL(e),t.flowing&&!t.reading&&e.read(0)}s(aHe,"resume_");xn.prototype.pause=function(){return Wt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Wt("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function yL(e){var t=e._readableState;for(Wt("flow",t.flowing);t.flowing&&e.read()!==null;);}s(yL,"flow");xn.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;e.on("end",function(){if(Wt("wrapped end"),n.decoder&&!n.ended){var a=n.decoder.end();a&&a.length&&t.push(a)}t.push(null)}),e.on("data",function(a){if(Wt("wrapped data"),n.decoder&&(a=n.decoder.write(a)),!(n.objectMode&&a==null)&&!(!n.objectMode&&(!a||!a.length))){var c=t.push(a);c||(r=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=(function(a){return function(){return e[a].apply(e,arguments)}})(i));for(var o=0;o<dL.length;o++)e.on(dL[o],this.emit.bind(this,dL[o]));return this._read=function(a){Wt("wrapped _read",a),r&&(r=!1,e.resume())},this};Object.defineProperty(xn.prototype,"readableHighWaterMark",{enumerable:!1,get:s(function(){return this._readableState.highWaterMark},"get")});xn._fromList=Gee;function Gee(e,t){if(t.length===0)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(t.decoder?n=t.buffer.join(""):t.buffer.length===1?n=t.buffer.head.data:n=t.buffer.concat(t.length),t.buffer.clear()):n=cHe(e,t.buffer,t.decoder),n}s(Gee,"fromList");function cHe(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?r=t.shift():r=n?lHe(e,t):uHe(e,t),r}s(cHe,"fromListPartial");function lHe(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),e-=a,e===0){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}s(lHe,"copyFromBufferString");function uHe(e,t){var n=uy.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),e-=a,e===0){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}s(uHe,"copyFromBuffer");function gL(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Qp.nextTick(fHe,t,e))}s(gL,"endReadable");function fHe(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}s(fHe,"endReadableNT");function Hee(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}s(Hee,"indexOf")});var bL=y((EPt,Yee)=>{"use strict";Yee.exports=la;var aP=Su(),Jee=Object.create(Yp());Jee.inherits=vu();Jee.inherits(la,aP);function pHe(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}s(pHe,"afterTransform");function la(e){if(!(this instanceof la))return new la(e);aP.call(this,e),this._transformState={afterTransform:pHe.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",dHe)}s(la,"Transform");function dHe(){var e=this;typeof this._flush=="function"?this._flush(function(t,n){Kee(e,t,n)}):Kee(this,null,null)}s(dHe,"prefinish");la.prototype.push=function(e,t){return this._transformState.needTransform=!1,aP.prototype.push.call(this,e,t)};la.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")};la.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};la.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};la.prototype._destroy=function(e,t){var n=this;aP.prototype._destroy.call(this,e,function(r){t(r),n.emit("close")})};function Kee(e,t,n){if(t)return e.emit("error",t);if(n!=null&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}s(Kee,"done")});var Zee=y((APt,Qee)=>{"use strict";Qee.exports=fy;var Xee=bL(),zee=Object.create(Yp());zee.inherits=vu();zee.inherits(fy,Xee);function fy(e){if(!(this instanceof fy))return new fy(e);Xee.call(this,e)}s(fy,"PassThrough");fy.prototype._transform=function(e,t,n){n(null,e)}});var vL=y((Sr,cP)=>{var go=require("stream");process.env.READABLE_STREAM==="disable"&&go?(cP.exports=go,Sr=cP.exports=go.Readable,Sr.Readable=go.Readable,Sr.Writable=go.Writable,Sr.Duplex=go.Duplex,Sr.Transform=go.Transform,Sr.PassThrough=go.PassThrough,Sr.Stream=go):(Sr=cP.exports=cL(),Sr.Stream=go||Sr,Sr.Readable=Sr,Sr.Writable=sL(),Sr.Duplex=Su(),Sr.Transform=bL(),Sr.PassThrough=Zee())});var nte=y((OPt,tte)=>{"use strict";var hHe=require("util"),ete=vL().Duplex;function lP(e,t){var n=this,r={sent:!1,chunks:[],size:0};if(!(this instanceof lP))return new lP(e,t);if(e=e||{},!(t instanceof Function))throw new Error("FirstChunkStream constructor requires a callback as its second argument.");if(typeof e.chunkLength!="number")throw new Error("FirstChunkStream constructor requires `options.chunkLength` to be a number.");if(e.objectMode)throw new Error("FirstChunkStream doesn't support `objectMode` yet.");ete.call(this,e),r.manager=gHe(this),r.errorHandler=s(function(a){i(a,Buffer.concat(r.chunks,r.size),r.encoding,function(){})},"firstChunkStreamErrorHandler"),this.on("error",r.errorHandler);function i(o,a,c,l){o?setImmediate(function(){n.removeListener("error",r.errorHandler)}):n.removeListener("error",r.errorHandler),r.sent=!0,t(o,a,c,function(u,f,p){if(u){setImmediate(function(){n.emit("error",u)});return}if(!f){l();return}r.manager.programPush(f,p,l)})}s(i,"processCallback"),this._write=s(function(a,c,l){r.encoding=c,r.sent?r.manager.programPush(a,r.encoding,l):a.length<e.chunkLength-r.size?(r.chunks.push(a),r.size+=a.length,l()):(r.chunks.push(a.slice(0,e.chunkLength-r.size)),a=a.slice(e.chunkLength-r.size),r.size+=r.chunks[r.chunks.length-1].length,i(null,Buffer.concat(r.chunks,r.size),r.encoding,function(){if(!a.length){l();return}r.manager.programPush(a,r.encoding,l)}))},"firstChunkStreamWrite"),this.on("finish",s(function(){if(!r.sent)return i(null,Buffer.concat(r.chunks,r.size),r.encoding,function(){r.manager.programPush(null,r.encoding)});r.manager.programPush(null,r.encoding)},"firstChunkStreamFinish"))}s(lP,"FirstChunkStream");hHe.inherits(lP,ete);function gHe(e){var t={waitPush:!0,programmedPushs:[],programPush:s(function(r,i,o){o=o||function(){},t.programmedPushs.push([r,i,o]),setImmediate(t.attemptPush),e.emit("readable"),e.emit("drain")},"programPush"),attemptPush:s(function(){var n;t.waitPush?t.programmedPushs.length&&(n=t.programmedPushs.shift(),t.waitPush=e.push(n[0],n[1]),n[2]()):setImmediate(function(){e.emit("readable")})},"attemptPush")};return e._read=s(function(){t.waitPush=!0,setImmediate(t.attemptPush)},"streamFilterRestoreRead"),t}s(gHe,"createReadStreamBackpressureManager");tte.exports=lP});var ite=y((_Pt,rte)=>{"use strict";var mHe=YF();rte.exports=function(e){return typeof e=="string"&&e.charCodeAt(0)===65279?e.slice(1):Buffer.isBuffer(e)&&mHe(e)&&e[0]===239&&e[1]===187&&e[2]===191?e.slice(3):e}});var ote=y((CPt,ste)=>{"use strict";var yHe=nte(),bHe=ite();ste.exports=function(){return yHe({chunkLength:3},function(e,t,n,r){if(e){r(e);return}r(null,bHe(t))})}});var ate=y((wPt,uP)=>{var vHe=(function(){"use strict";function e(f,p){return p!=null&&f instanceof p}s(e,"_instanceof");var t;try{t=Map}catch{t=s(function(){},"nativeMap")}var n;try{n=Set}catch{n=s(function(){},"nativeSet")}var r;try{r=Promise}catch{r=s(function(){},"nativePromise")}function i(f,p,d,h,m){typeof p=="object"&&(d=p.depth,h=p.prototype,m=p.includeNonEnumerable,p=p.circular);var b=[],T=[],I=typeof Buffer<"u";typeof p>"u"&&(p=!0),typeof d>"u"&&(d=1/0);function F(N,$){if(N===null)return null;if($===0)return N;var j,M;if(typeof N!="object")return N;if(e(N,t))j=new t;else if(e(N,n))j=new n;else if(e(N,r))j=new r(function(W,H){N.then(function(Ae){W(F(Ae,$-1))},function(Ae){H(F(Ae,$-1))})});else if(i.__isArray(N))j=[];else if(i.__isRegExp(N))j=new RegExp(N.source,u(N)),N.lastIndex&&(j.lastIndex=N.lastIndex);else if(i.__isDate(N))j=new Date(N.getTime());else{if(I&&Buffer.isBuffer(N))return Buffer.allocUnsafe?j=Buffer.allocUnsafe(N.length):j=new Buffer(N.length),N.copy(j),j;e(N,Error)?j=Object.create(N):typeof h>"u"?(M=Object.getPrototypeOf(N),j=Object.create(M)):(j=Object.create(h),M=h)}if(p){var k=b.indexOf(N);if(k!=-1)return T[k];b.push(N),T.push(j)}e(N,t)&&N.forEach(function(W,H){var Ae=F(H,$-1),Ne=F(W,$-1);j.set(Ae,Ne)}),e(N,n)&&N.forEach(function(W){var H=F(W,$-1);j.add(H)});for(var U in N){var R;M&&(R=Object.getOwnPropertyDescriptor(M,U)),!(R&&R.set==null)&&(j[U]=F(N[U],$-1))}if(Object.getOwnPropertySymbols)for(var se=Object.getOwnPropertySymbols(N),U=0;U<se.length;U++){var G=se[U],Te=Object.getOwnPropertyDescriptor(N,G);Te&&!Te.enumerable&&!m||(j[G]=F(N[G],$-1),Te.enumerable||Object.defineProperty(j,G,{enumerable:!1}))}if(m)for(var pe=Object.getOwnPropertyNames(N),U=0;U<pe.length;U++){var ue=pe[U],Te=Object.getOwnPropertyDescriptor(N,ue);Te&&Te.enumerable||(j[ue]=F(N[ue],$-1),Object.defineProperty(j,ue,{enumerable:!1}))}return j}return s(F,"_clone"),F(f,d)}s(i,"clone"),i.clonePrototype=s(function(p){if(p===null)return null;var d=s(function(){},"c");return d.prototype=p,new d},"clonePrototype");function o(f){return Object.prototype.toString.call(f)}s(o,"__objToStr"),i.__objToStr=o;function a(f){return typeof f=="object"&&o(f)==="[object Date]"}s(a,"__isDate"),i.__isDate=a;function c(f){return typeof f=="object"&&o(f)==="[object Array]"}s(c,"__isArray"),i.__isArray=c;function l(f){return typeof f=="object"&&o(f)==="[object RegExp]"}s(l,"__isRegExp"),i.__isRegExp=l;function u(f){var p="";return f.global&&(p+="g"),f.ignoreCase&&(p+="i"),f.multiline&&(p+="m"),p}return s(u,"__getRegExpFlags"),i.__getRegExpFlags=u,i})();typeof uP=="object"&&uP.exports&&(uP.exports=vHe)});var pte=y((RPt,fte)=>{"use strict";var fP=vL().PassThrough,cte=vu(),Zp=Kp();function Rc(e,t){if(!(this instanceof Rc))return new Rc(e,t);var n=e._readableState.objectMode;this._original=e,this._clonesCount=1,t=t||{},t.objectMode=n,fP.call(this,t),ute(e,this),this.on("newListener",py),this.once("resume",lte),this._hasListener=!0}s(Rc,"Cloneable");cte(Rc,fP);function py(e,t){(e==="data"||e==="readable")&&(this._hasListener=!1,this.removeListener("newListener",py),this.removeListener("resume",lte),Zp.nextTick(pP,this))}s(py,"onData");function lte(){this._hasListener=!1,this.removeListener("newListener",py),Zp.nextTick(pP,this)}s(lte,"onResume");Rc.prototype.clone=function(){if(!this._original)throw new Error("already started");this._clonesCount++,this.removeListener("newListener",py);var e=new Eu(this);return this._hasListener&&this.on("newListener",py),e};Rc.prototype._destroy=function(e,t){e||(this.push(null),this.end(),this.emit("close")),Zp.nextTick(t,e)};function ute(e,t){e.on("error",n),e.on("close",r);function n(i){e.removeListener("close",r),t.destroy(i)}s(n,"destroy");function r(){t.end()}s(r,"onClose")}s(ute,"forwardDestroy");function pP(e){--e._clonesCount===0&&!e._readableState.destroyed&&(e._original.pipe(e),e._original=void 0)}s(pP,"clonePiped");function Eu(e,t){if(!(this instanceof Eu))return new Eu(e,t);var n=e._readableState.objectMode;t=t||{},t.objectMode=n,this.parent=e,fP.call(this,t),ute(e,this),e.pipe(this),this.on("newListener",TL),this.on("resume",THe)}s(Eu,"Clone");function TL(e,t){(e==="data"||e==="readable"||e==="close")&&(Zp.nextTick(pP,this.parent),this.removeListener("newListener",TL))}s(TL,"onDataClone");function THe(){this.removeListener("newListener",TL),Zp.nextTick(pP,this.parent)}s(THe,"onResumeClone");cte(Eu,fP);Eu.prototype.clone=function(){return this.parent.clone()};Rc.isCloneable=function(e){return e instanceof Rc||e instanceof Eu};Eu.prototype._destroy=function(e,t){e||(this.push(null),this.end(),this.emit("close")),Zp.nextTick(t,e)};fte.exports=Rc});var hte=y((LPt,dte)=>{"use strict";var ed=require("path");function SHe(e,t){if(typeof e!="string"||e.length===0)return e;var n=ed.basename(e,ed.extname(e))+t,r=ed.join(ed.dirname(e),n);return EHe(e)?"."+ed.sep+r:r}s(SHe,"replaceExt");function EHe(e){var t=e.slice(0,2);return t==="."+ed.sep||t==="./"}s(EHe,"startsWithSingleDot");dte.exports=SHe});var mte=y((DPt,gte)=>{var PHe=require("fs").Stats;gte.exports=AHe;function AHe(e){var t=new PHe;return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}s(AHe,"cloneStats")});var Tte=y((kPt,vte)=>{"use strict";var dy=require("buffer").Buffer;function yte(){return dy.hasOwnProperty("from")&&typeof dy.from=="function"}s(yte,"hasFrom");function bte(e){if(!dy.isBuffer(e))throw new Error("Can only clone Buffer.");if(yte())return dy.from(e);var t=new dy(e.length);return e.copy(t),t}s(bte,"cloneBuffer");bte.hasFrom=yte;vte.exports=bte});var Ete=y((VPt,Ste)=>{var xHe=process.platform==="win32";Ste.exports=function(e){var t=e.length-1;if(t<2)return e;for(;OHe(e,t);)t--;return e.substr(0,t+1)};function OHe(e,t){var n=e[t];return t>0&&(n==="/"||xHe&&n==="\\")}s(OHe,"isSeparator")});var Ate=y((UPt,Pte)=>{"use strict";function IHe(e){return!(!e||typeof e.pipe!="function")}s(IHe,"isStream");Pte.exports=IHe});var Ote=y((GPt,xte)=>{"use strict";var _He=require("path");function CHe(e){return e===""?e:_He.normalize(e)}s(CHe,"normalize");xte.exports=CHe});var _te=y((WPt,Ite)=>{"use strict";function wHe(e){var t=e.constructor.name;return t==="Stream"&&(t=""),"<"+t+"Stream>"}s(wHe,"inspectStream");Ite.exports=wHe});var EL=y((JPt,Rte)=>{"use strict";var Fc=require("path"),Cte=require("util"),Nte=require("buffer").Buffer.isBuffer,NHe=ate(),wte=pte(),RHe=hte(),FHe=mte(),LHe=Tte(),dP=Ete(),SL=Ate(),hP=Ote(),jHe=_te(),DHe=["_contents","_symlink","contents","stat","history","path","_base","base","_cwd","cwd"];function Dn(e){var t=this;e||(e={}),this.stat=e.stat||null,this.contents=e.contents||null;var n=Array.prototype.slice.call(e.history||[]);e.path&&n.push(e.path),this.history=[],n.forEach(function(r){t.path=r}),this.cwd=e.cwd||process.cwd(),this.base=e.base,this._isVinyl=!0,this._symlink=null,Object.keys(e).forEach(function(r){t.constructor.isCustomProp(r)&&(t[r]=e[r])})}s(Dn,"File");Dn.prototype.isBuffer=function(){return Nte(this.contents)};Dn.prototype.isStream=function(){return SL(this.contents)};Dn.prototype.isNull=function(){return this.contents===null};Dn.prototype.isDirectory=function(){return this.isNull()&&this.stat&&typeof this.stat.isDirectory=="function"?this.stat.isDirectory():!1};Dn.prototype.isSymbolic=function(){return this.isNull()&&this.stat&&typeof this.stat.isSymbolicLink=="function"?this.stat.isSymbolicLink():!1};Dn.prototype.clone=function(e){var t=this;typeof e=="boolean"?e={deep:e,contents:!0}:e?(e.deep=e.deep===!0,e.contents=e.contents!==!1):e={deep:!0,contents:!0};var n;this.isStream()?n=this.contents.clone():this.isBuffer()&&(n=e.contents?LHe(this.contents):this.contents);var r=new this.constructor({cwd:this.cwd,base:this.base,stat:this.stat?FHe(this.stat):null,history:this.history.slice(),contents:n});return this.isSymbolic()&&(r.symlink=this.symlink),Object.keys(this).forEach(function(i){t.constructor.isCustomProp(i)&&(r[i]=e.deep?NHe(t[i],!0):t[i])}),r};Dn.prototype.inspect=function(){var e=[],t=this.path?this.relative:null;return t&&e.push('"'+t+'"'),this.isBuffer()&&e.push(this.contents.inspect()),this.isStream()&&e.push(jHe(this.contents)),"<File "+e.join(" ")+">"};Cte.inspect.custom&&(Dn.prototype[Cte.inspect.custom]=Dn.prototype.inspect);Dn.isCustomProp=function(e){return DHe.indexOf(e)===-1};Dn.isVinyl=function(e){return e&&e._isVinyl===!0||!1};Object.defineProperty(Dn.prototype,"contents",{get:s(function(){return this._contents},"get"),set:s(function(e){if(!Nte(e)&&!SL(e)&&e!==null)throw new Error("File.contents can only be a Buffer, a Stream, or null.");SL(e)&&!wte.isCloneable(e)&&(e=wte(e)),this._contents=e},"set")});Object.defineProperty(Dn.prototype,"cwd",{get:s(function(){return this._cwd},"get"),set:s(function(e){if(!e||typeof e!="string")throw new Error("cwd must be a non-empty string.");this._cwd=dP(hP(e))},"set")});Object.defineProperty(Dn.prototype,"base",{get:s(function(){return this._base||this._cwd},"get"),set:s(function(e){if(e==null){delete this._base;return}if(typeof e!="string"||!e)throw new Error("base must be a non-empty string, or null/undefined.");e=dP(hP(e)),e!==this._cwd?this._base=e:delete this._base},"set")});Object.defineProperty(Dn.prototype,"relative",{get:s(function(){if(!this.path)throw new Error("No path specified! Can not get relative.");return Fc.relative(this.base,this.path)},"get"),set:s(function(){throw new Error("File.relative is generated from the base and path attributes. Do not modify it.")},"set")});Object.defineProperty(Dn.prototype,"dirname",{get:s(function(){if(!this.path)throw new Error("No path specified! Can not get dirname.");return Fc.dirname(this.path)},"get"),set:s(function(e){if(!this.path)throw new Error("No path specified! Can not set dirname.");this.path=Fc.join(e,this.basename)},"set")});Object.defineProperty(Dn.prototype,"basename",{get:s(function(){if(!this.path)throw new Error("No path specified! Can not get basename.");return Fc.basename(this.path)},"get"),set:s(function(e){if(!this.path)throw new Error("No path specified! Can not set basename.");this.path=Fc.join(this.dirname,e)},"set")});Object.defineProperty(Dn.prototype,"stem",{get:s(function(){if(!this.path)throw new Error("No path specified! Can not get stem.");return Fc.basename(this.path,this.extname)},"get"),set:s(function(e){if(!this.path)throw new Error("No path specified! Can not set stem.");this.path=Fc.join(this.dirname,e+this.extname)},"set")});Object.defineProperty(Dn.prototype,"extname",{get:s(function(){if(!this.path)throw new Error("No path specified! Can not get extname.");return Fc.extname(this.path)},"get"),set:s(function(e){if(!this.path)throw new Error("No path specified! Can not set extname.");this.path=RHe(this.path,e)},"set")});Object.defineProperty(Dn.prototype,"path",{get:s(function(){return this.history[this.history.length-1]},"get"),set:s(function(e){if(typeof e!="string")throw new Error("path should be a string.");e=dP(hP(e)),e&&e!==this.path&&this.history.push(e)},"set")});Object.defineProperty(Dn.prototype,"symlink",{get:s(function(){return this._symlink},"get"),set:s(function(e){if(typeof e!="string")throw new Error("symlink should be a string");this._symlink=dP(hP(e))},"set")});Rte.exports=Dn});var Dte=y((XPt,jte)=>{"use strict";var Fte=s(function(e,t,n){return function(){for(var r=this,i=new Array(arguments.length),o=0;o<arguments.length;o++)i[o]=arguments[o];return new t(function(a,c){i.push(function(l,u){if(l)c(l);else if(n.multiArgs){for(var f=new Array(arguments.length-1),p=1;p<arguments.length;p++)f[p-1]=arguments[p];a(f)}else a(u)}),e.apply(r,i)})}},"processFn"),Lte=jte.exports=function(e,t,n){typeof t!="function"&&(n=t,t=Promise),n=n||{},n.exclude=n.exclude||[/.+Sync$/];var r=s(function(o){var a=s(function(c){return typeof c=="string"?o===c:c.test(o)},"match");return n.include?n.include.some(a):!n.exclude.some(a)},"filter"),i=typeof e=="function"?function(){return n.excludeMain?e.apply(this,arguments):Fte(e,t,n).apply(this,arguments)}:{};return Object.keys(e).reduce(function(o,a){var c=e[a];return o[a]=typeof c=="function"&&r(a)?Fte(c,t,n):c,o},i)};Lte.all=Lte});var Ute=y(PL=>{"use strict";var kte=require("path"),hy=see(),Mte=lee(),Vte=ote(),qte=EL(),$He=Dte(),$te=$He(hy);PL.read=(e,t)=>{t=t||{};let n=t.cwd||process.cwd(),r=t.base||n;return e=kte.resolve(n,e),$te.stat(e).then(i=>{let o=new qte({cwd:n,base:r,path:e,stat:i});return t.read===!1?o:t.buffer===!1?(o.contents=hy.createReadStream(e).pipe(Vte()),o):$te.readFile(e).then(a=>(o.contents=Mte(a),o))})};PL.readSync=(e,t)=>{t=t||{};let n=t.cwd||process.cwd(),r=t.base||n;e=kte.resolve(n,e);let i;return t.read!==!1&&(i=t.buffer===!1?hy.createReadStream(e).pipe(Vte()):Mte(hy.readFileSync(e))),new qte({cwd:n,base:r,path:e,stat:hy.statSync(e),contents:i})}});var AL=y(Hte=>{"use strict";var Bte=require("events"),Gte=require("path"),kHe=require("util"),MHe=Ute(),VHe=EL(),{PassThrough:qHe}=require("stream");Hte.create=function(){var e={};function t(i){return new VHe({cwd:process.cwd(),base:process.cwd(),path:i,contents:null})}s(t,"createFile");function n(i){var o;try{o=MHe.readSync(i)}catch{o=t(i)}return e[i]=o,o}s(n,"load");var r=s(function(){Bte.EventEmitter.apply(this,arguments)},"Store");return kHe.inherits(r,Bte.EventEmitter),r.prototype.get=function(i){return i=Gte.resolve(i),e[i]||n(i)},r.prototype.existsInMemory=function(i){return i=Gte.resolve(i),!!e[i]},r.prototype.add=function(i){return e[i.path]=i,this.emit("change",i.path),this},r.prototype.each=function(i){return Object.keys(e).forEach(function(o,a){i(e[o],a)}),this},r.prototype.all=function(){return Object.values(e)},r.prototype.stream=function(){let i=new qHe({objectMode:!0,autoDestroy:!0});return setImmediate(function(){this.each(o=>i.write(o)),i.end()}.bind(this)),i},new r}});var Kte=y((tAt,Wte)=>{"use strict";Wte.exports=function(e,t){t=t||{raw:!1};let n=this.store.get(e);if(n.contents===null){if("defaults"in t)return t.defaults;throw new Error(e+" doesn't exist")}return t.raw?n.contents:n.contents.toString()}});var Yte=y((nAt,Jte)=>{"use strict";Jte.exports=function(e,t){if(this.exists(e))try{return JSON.parse(this.read(e))}catch(n){throw new Error("Could not parse JSON in file: "+e+". Detail: "+n.message)}else return t}});var zte=y((rAt,Xte)=>{"use strict";Xte.exports=function(e){return this.store.get(e).contents!==null}});var Pu=y((iAt,rne)=>{var UHe=require("fs"),Lc="state",xL="stateCleared",OL="modified",IL="deleted",gP="isNew",Qte=s((e,t)=>{e[Lc]=t},"setFileState"),Zte=s(e=>(e[gP]===void 0&&(e[gP]=!UHe.existsSync(e.path)),e[gP]),"isFileNew"),ene=s(e=>e[Lc]===OL,"isFileStateModified"),BHe=s(e=>Qte(e,OL),"setModifiedFileState"),tne=s(e=>e[Lc]===IL,"isFileStateDeleted"),GHe=s(e=>Qte(e,IL),"setDeletedFileState"),HHe=s(e=>ene(e)||tne(e)&&!Zte(e),"isFilePending"),WHe=s(e=>{e.committed=!0},"setCommittedFile"),KHe=s(e=>!!e.committed,"isFileCommitted"),nne=s(e=>{delete e[Lc]},"resetFileState"),JHe=s(e=>{e[Lc]&&(e[xL]=e[Lc]),nne(e),delete e[gP]},"clearFileState"),YHe=s(e=>!!e[Lc],"hasState"),XHe=s(e=>!!e[xL],"hasClearedState");rne.exports={STATE:Lc,STATE_CLEARED:xL,STATE_MODIFIED:OL,STATE_DELETED:IL,isFileStateModified:ene,setModifiedFileState:BHe,isFileStateDeleted:tne,setDeletedFileState:GHe,setCommittedFile:WHe,isFileCommitted:KHe,isFileNew:Zte,isFilePending:HHe,resetFileState:nne,clearFileState:JHe,hasState:YHe,hasClearedState:XHe}});var sne=y((oAt,ine)=>{"use strict";var zHe=require("assert"),{isFileStateModified:QHe,setModifiedFileState:ZHe}=Pu();ine.exports=function(e,t,n){zHe(typeof t=="string"||Buffer.isBuffer(t),"Expected `contents` to be a String or a Buffer");let r=this.store.get(e),i=Buffer.isBuffer(t)?t:Buffer.from(t);return(!QHe(r)||!Buffer.isBuffer(r.contents)||!i.equals(r.contents)||n!==void 0&&r.stat!==n)&&(ZHe(r),r.contents=i,r.stat=n,this.store.add(r)),r.contents.toString()}});var ane=y((aAt,one)=>{"use strict";one.exports=function(e,t,n,r){let i=JSON.stringify(t,n||null,r||2)+`
|
|
267
|
-
`;return this.write(e,i)}});var CL=y((cAt,pne)=>{"use strict";function lne(e){return e instanceof Buffer||e instanceof Date||e instanceof RegExp}s(lne,"isSpecificValue");function une(e){if(e instanceof Buffer){var t=Buffer.alloc?Buffer.alloc(e.length):new Buffer(e.length);return e.copy(t),t}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}s(une,"cloneSpecificValue");function fne(e){var t=[];return e.forEach(function(n,r){typeof n=="object"&&n!==null?Array.isArray(n)?t[r]=fne(n):lne(n)?t[r]=une(n):t[r]=_L({},n):t[r]=n}),t}s(fne,"deepCloneArray");function cne(e,t){return t==="__proto__"?void 0:e[t]}s(cne,"safeGetProperty");var _L=pne.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var e=arguments[0],t=Array.prototype.slice.call(arguments,1),n,r,i;return t.forEach(function(o){typeof o!="object"||o===null||Array.isArray(o)||Object.keys(o).forEach(function(a){if(r=cne(e,a),n=cne(o,a),n!==e)if(typeof n!="object"||n===null){e[a]=n;return}else if(Array.isArray(n)){e[a]=fne(n);return}else if(lne(n)){e[a]=une(n);return}else if(typeof r!="object"||r===null||Array.isArray(r)){e[a]=_L({},n);return}else{e[a]=_L(r,n);return}})}),e}});var hne=y((uAt,dne)=>{"use strict";var e8e=CL();dne.exports=function(e,t,n,r){let i=this.readJSON(e,{}),o=e8e({},i,t);this.writeJSON(e,o,n,r)}});var mne=y((fAt,gne)=>{"use strict";var{EOL:t8e}=require("os");gne.exports=function(e,t,n){if(n={trimEnd:!0,separator:t8e,...n},!this.exists(e)&&n.create){this.write(e,t);return}let r=this.read(e);n.trimEnd&&(r=r.replace(/\s+$/,"")),this.write(e,r+n.separator+t)}});var bne=y((pAt,yne)=>{"use strict";var n8e=Ua();yne.exports=function(e,t,n,r,i){n=n||{},r=r||{},this.append(e,n8e.render(t.toString(),n,r),i)}});var wL=y((dAt,vne)=>{"use strict";vne.exports=(...e)=>[...new Set([].concat(...e))]});var NL=y((hAt,Ene)=>{"use strict";var r8e=require("stream"),Tne=r8e.PassThrough,i8e=Array.prototype.slice;Ene.exports=s8e;function s8e(){let e=[],t=i8e.call(arguments),n=!1,r=t[t.length-1];r&&!Array.isArray(r)&&r.pipe==null?t.pop():r={};let i=r.end!==!1,o=r.pipeError===!0;r.objectMode==null&&(r.objectMode=!0),r.highWaterMark==null&&(r.highWaterMark=64*1024);let a=Tne(r);function c(){for(let f=0,p=arguments.length;f<p;f++)e.push(Sne(arguments[f],r));return l(),this}s(c,"addStream");function l(){if(n)return;n=!0;let f=e.shift();if(!f){process.nextTick(u);return}Array.isArray(f)||(f=[f]);let p=f.length+1;function d(){--p>0||(n=!1,l())}s(d,"next");function h(m){function b(){m.removeListener("merge2UnpipeEnd",b),m.removeListener("end",b),o&&m.removeListener("error",T),d()}s(b,"onend");function T(I){a.emit("error",I)}if(s(T,"onerror"),m._readableState.endEmitted)return d();m.on("merge2UnpipeEnd",b),m.on("end",b),o&&m.on("error",T),m.pipe(a,{end:!1}),m.resume()}s(h,"pipe");for(let m=0;m<f.length;m++)h(f[m]);d()}s(l,"mergeStream");function u(){n=!1,a.emit("queueDrain"),i&&a.end()}return s(u,"endStream"),a.setMaxListeners(0),a.add=c,a.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),t.length&&c.apply(null,t),a}s(s8e,"merge2");function Sne(e,t){if(Array.isArray(e))for(let n=0,r=e.length;n<r;n++)e[n]=Sne(e[n],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(Tne(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}s(Sne,"pauseStreams")});var Pne=y(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.splitWhen=td.flatten=void 0;function o8e(e){return e.reduce((t,n)=>[].concat(t,n),[])}s(o8e,"flatten");td.flatten=o8e;function a8e(e,t){let n=[[]],r=0;for(let i of e)t(i)?(r++,n[r]=[]):n[r].push(i);return n}s(a8e,"splitWhen");td.splitWhen=a8e});var Ane=y(mP=>{"use strict";Object.defineProperty(mP,"__esModule",{value:!0});mP.isEnoentCodeError=void 0;function c8e(e){return e.code==="ENOENT"}s(c8e,"isEnoentCodeError");mP.isEnoentCodeError=c8e});var xne=y(yP=>{"use strict";Object.defineProperty(yP,"__esModule",{value:!0});yP.createDirentFromStats=void 0;var FL=class FL{constructor(t,n){this.name=t,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};s(FL,"DirentFromStats");var RL=FL;function l8e(e,t){return new RL(e,t)}s(l8e,"createDirentFromStats");yP.createDirentFromStats=l8e});var Cne=y(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.convertPosixPathToPattern=Xn.convertWindowsPathToPattern=Xn.convertPathToPattern=Xn.escapePosixPath=Xn.escapeWindowsPath=Xn.escape=Xn.removeLeadingDotSegment=Xn.makeAbsolute=Xn.unixify=void 0;var u8e=require("os"),f8e=require("path"),One=u8e.platform()==="win32",p8e=2,d8e=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,h8e=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,g8e=/^\\\\([.?])/,m8e=/\\(?![!()+@[\]{}])/g;function y8e(e){return e.replace(/\\/g,"/")}s(y8e,"unixify");Xn.unixify=y8e;function b8e(e,t){return f8e.resolve(e,t)}s(b8e,"makeAbsolute");Xn.makeAbsolute=b8e;function v8e(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(p8e)}return e}s(v8e,"removeLeadingDotSegment");Xn.removeLeadingDotSegment=v8e;Xn.escape=One?LL:jL;function LL(e){return e.replace(h8e,"\\$2")}s(LL,"escapeWindowsPath");Xn.escapeWindowsPath=LL;function jL(e){return e.replace(d8e,"\\$2")}s(jL,"escapePosixPath");Xn.escapePosixPath=jL;Xn.convertPathToPattern=One?Ine:_ne;function Ine(e){return LL(e).replace(g8e,"//$1").replace(m8e,"/")}s(Ine,"convertWindowsPathToPattern");Xn.convertWindowsPathToPattern=Ine;function _ne(e){return jL(e)}s(_ne,"convertPosixPathToPattern");Xn.convertPosixPathToPattern=_ne});var Nne=y((AAt,wne)=>{wne.exports=s(function(t){if(typeof t!="string"||t==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(n[2])return!0;t=t.slice(n.index+n[0].length)}return!1},"isExtglob")});var Lne=y((OAt,Fne)=>{var T8e=Nne(),Rne={"{":"}","(":")","[":"]"},S8e=s(function(e){if(e[0]==="!")return!0;for(var t=0,n=-2,r=-2,i=-2,o=-2,a=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||r!==-1&&e[t]==="["&&e[t+1]!=="]"&&(r<t&&(r=e.indexOf("]",t)),r>t&&(a===-1||a>r||(a=e.indexOf("\\",t),a===-1||a>r)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(a=e.indexOf("\\",t),a===-1||a>i))||o!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(o=e.indexOf(")",t),o>t&&(a=e.indexOf("\\",t),a===-1||a>o))||n!==-1&&e[t]==="("&&e[t+1]!=="|"&&(n<t&&(n=e.indexOf("|",t)),n!==-1&&e[n+1]!==")"&&(o=e.indexOf(")",n),o>n&&(a=e.indexOf("\\",n),a===-1||a>o))))return!0;if(e[t]==="\\"){var c=e[t+1];t+=2;var l=Rne[c];if(l){var u=e.indexOf(l,t);u!==-1&&(t=u+1)}if(e[t]==="!")return!0}else t++}return!1},"strictCheck"),E8e=s(function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var n=e[t+1];t+=2;var r=Rne[n];if(r){var i=e.indexOf(r,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1},"relaxedCheck");Fne.exports=s(function(t,n){if(typeof t!="string"||t==="")return!1;if(T8e(t))return!0;var r=S8e;return n&&n.strict===!1&&(r=E8e),r(t)},"isGlob")});var Dne=y((_At,jne)=>{"use strict";var P8e=Lne(),A8e=require("path").posix.dirname,x8e=require("os").platform()==="win32",bP="/",O8e=/\\/g,I8e=/\\([!*?|[\](){}])/g;jne.exports=s(function(t,n){var r=Object.assign({flipBackslashes:!0},n);r.flipBackslashes&&x8e&&t.indexOf(bP)<0&&(t=t.replace(O8e,bP)),_8e(t)&&(t+=bP),t+="a";do t=A8e(t);while(C8e(t));return t.replace(I8e,"$1")},"globParent");function _8e(e){var t=e.slice(-1),n;switch(t){case"}":n="{";break;case"]":n="[";break;default:return!1}var r=e.indexOf(n);return r<0?!1:e.slice(r+1,-1).includes(bP)}s(_8e,"isEnclosure");function C8e(e){return/\([^()]+$/.test(e)||e[0]==="{"||e[0]==="["||/[^\\][{[]/.test(e)?!0:P8e(e)}s(C8e,"isGlobby")});var vP=y(ys=>{"use strict";ys.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;ys.find=(e,t)=>e.nodes.find(n=>n.type===t);ys.exceedsLimit=(e,t,n=1,r)=>r===!1||!ys.isInteger(e)||!ys.isInteger(t)?!1:(Number(t)-Number(e))/Number(n)>=r;ys.escapeNode=(e,t=0,n)=>{let r=e.nodes[t];r&&(n&&r.type===n||r.type==="open"||r.type==="close")&&r.escaped!==!0&&(r.value="\\"+r.value,r.escaped=!0)};ys.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;ys.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;ys.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;ys.reduce=e=>e.reduce((t,n)=>(n.type==="text"&&t.push(n.value),n.type==="range"&&(n.type="text"),t),[]);ys.flatten=(...e)=>{let t=[],n=s(r=>{for(let i=0;i<r.length;i++){let o=r[i];if(Array.isArray(o)){n(o);continue}o!==void 0&&t.push(o)}return t},"flat");return n(e),t}});var TP=y((RAt,kne)=>{"use strict";var $ne=vP();kne.exports=(e,t={})=>{let n=s((r,i={})=>{let o=t.escapeInvalid&&$ne.isInvalidBrace(i),a=r.invalid===!0&&t.escapeInvalid===!0,c="";if(r.value)return(o||a)&&$ne.isOpenOrClose(r)?"\\"+r.value:r.value;if(r.value)return r.value;if(r.nodes)for(let l of r.nodes)c+=n(l);return c},"stringify");return n(e)}});var Vne=y((LAt,Mne)=>{"use strict";Mne.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Yne=y((jAt,Jne)=>{"use strict";var qne=Vne(),Au=s((e,t,n)=>{if(qne(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(qne(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let r={relaxZeros:!0,...n};typeof r.strictZeros=="boolean"&&(r.relaxZeros=r.strictZeros===!1);let i=String(r.relaxZeros),o=String(r.shorthand),a=String(r.capture),c=String(r.wrap),l=e+":"+t+"="+i+o+a+c;if(Au.cache.hasOwnProperty(l))return Au.cache[l].result;let u=Math.min(e,t),f=Math.max(e,t);if(Math.abs(u-f)===1){let b=e+"|"+t;return r.capture?`(${b})`:r.wrap===!1?b:`(?:${b})`}let p=Kne(e)||Kne(t),d={min:e,max:t,a:u,b:f},h=[],m=[];if(p&&(d.isPadded=p,d.maxLen=String(d.max).length),u<0){let b=f<0?Math.abs(f):1;m=Une(b,Math.abs(u),d,r),u=d.a=0}return f>=0&&(h=Une(u,f,d,r)),d.negatives=m,d.positives=h,d.result=w8e(m,h,r),r.capture===!0?d.result=`(${d.result})`:r.wrap!==!1&&h.length+m.length>1&&(d.result=`(?:${d.result})`),Au.cache[l]=d,d.result},"toRegexRange");function w8e(e,t,n){let r=DL(e,t,"-",!1,n)||[],i=DL(t,e,"",!1,n)||[],o=DL(e,t,"-?",!0,n)||[];return r.concat(o).concat(i).join("|")}s(w8e,"collatePatterns");function N8e(e,t){let n=1,r=1,i=Gne(e,n),o=new Set([t]);for(;e<=i&&i<=t;)o.add(i),n+=1,i=Gne(e,n);for(i=Hne(t+1,r)-1;e<i&&i<=t;)o.add(i),r+=1,i=Hne(t+1,r)-1;return o=[...o],o.sort(L8e),o}s(N8e,"splitToRanges");function R8e(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};let r=F8e(e,t),i=r.length,o="",a=0;for(let c=0;c<i;c++){let[l,u]=r[c];l===u?o+=l:l!=="0"||u!=="9"?o+=j8e(l,u,n):a++}return a&&(o+=n.shorthand===!0?"\\d":"[0-9]"),{pattern:o,count:[a],digits:i}}s(R8e,"rangeToPattern");function Une(e,t,n,r){let i=N8e(e,t),o=[],a=e,c;for(let l=0;l<i.length;l++){let u=i[l],f=R8e(String(a),String(u),r),p="";if(!n.isPadded&&c&&c.pattern===f.pattern){c.count.length>1&&c.count.pop(),c.count.push(f.count[0]),c.string=c.pattern+Wne(c.count),a=u+1;continue}n.isPadded&&(p=D8e(u,n,r)),f.string=p+f.pattern+Wne(f.count),o.push(f),a=u+1,c=f}return o}s(Une,"splitToPatterns");function DL(e,t,n,r,i){let o=[];for(let a of e){let{string:c}=a;!r&&!Bne(t,"string",c)&&o.push(n+c),r&&Bne(t,"string",c)&&o.push(n+c)}return o}s(DL,"filterPatterns");function F8e(e,t){let n=[];for(let r=0;r<e.length;r++)n.push([e[r],t[r]]);return n}s(F8e,"zip");function L8e(e,t){return e>t?1:t>e?-1:0}s(L8e,"compare");function Bne(e,t,n){return e.some(r=>r[t]===n)}s(Bne,"contains");function Gne(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}s(Gne,"countNines");function Hne(e,t){return e-e%Math.pow(10,t)}s(Hne,"countZeros");function Wne(e){let[t=0,n=""]=e;return n||t>1?`{${t+(n?","+n:"")}}`:""}s(Wne,"toQuantifier");function j8e(e,t,n){return`[${e}${t-e===1?"":"-"}${t}]`}s(j8e,"toCharacterClass");function Kne(e){return/^-?(0+)\d/.test(e)}s(Kne,"hasPadding");function D8e(e,t,n){if(!t.isPadded)return e;let r=Math.abs(t.maxLen-String(e).length),i=n.relaxZeros!==!1;switch(r){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${r}}`:`0{${r}}`}}s(D8e,"padZeros");Au.cache={};Au.clearCache=()=>Au.cache={};Jne.exports=Au});var ML=y(($At,nre)=>{"use strict";var $8e=require("util"),zne=Yne(),Xne=s(e=>e!==null&&typeof e=="object"&&!Array.isArray(e),"isObject"),k8e=s(e=>t=>e===!0?Number(t):String(t),"transform"),$L=s(e=>typeof e=="number"||typeof e=="string"&&e!=="","isValidValue"),gy=s(e=>Number.isInteger(+e),"isNumber"),kL=s(e=>{let t=`${e}`,n=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++n]==="0";);return n>0},"zeros"),M8e=s((e,t,n)=>typeof e=="string"||typeof t=="string"?!0:n.stringify===!0,"stringify"),V8e=s((e,t,n)=>{if(t>0){let r=e[0]==="-"?"-":"";r&&(e=e.slice(1)),e=r+e.padStart(r?t-1:t,"0")}return n===!1?String(e):e},"pad"),EP=s((e,t)=>{let n=e[0]==="-"?"-":"";for(n&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return n?"-"+e:e},"toMaxLen"),q8e=s((e,t,n)=>{e.negatives.sort((c,l)=>c<l?-1:c>l?1:0),e.positives.sort((c,l)=>c<l?-1:c>l?1:0);let r=t.capture?"":"?:",i="",o="",a;return e.positives.length&&(i=e.positives.map(c=>EP(String(c),n)).join("|")),e.negatives.length&&(o=`-(${r}${e.negatives.map(c=>EP(String(c),n)).join("|")})`),i&&o?a=`${i}|${o}`:a=i||o,t.wrap?`(${r}${a})`:a},"toSequence"),Qne=s((e,t,n,r)=>{if(n)return zne(e,t,{wrap:!1,...r});let i=String.fromCharCode(e);if(e===t)return i;let o=String.fromCharCode(t);return`[${i}-${o}]`},"toRange"),Zne=s((e,t,n)=>{if(Array.isArray(e)){let r=n.wrap===!0,i=n.capture?"":"?:";return r?`(${i}${e.join("|")})`:e.join("|")}return zne(e,t,n)},"toRegex"),ere=s((...e)=>new RangeError("Invalid range arguments: "+$8e.inspect(...e)),"rangeError"),tre=s((e,t,n)=>{if(n.strictRanges===!0)throw ere([e,t]);return[]},"invalidRange"),U8e=s((e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},"invalidStep"),B8e=s((e,t,n=1,r={})=>{let i=Number(e),o=Number(t);if(!Number.isInteger(i)||!Number.isInteger(o)){if(r.strictRanges===!0)throw ere([e,t]);return[]}i===0&&(i=0),o===0&&(o=0);let a=i>o,c=String(e),l=String(t),u=String(n);n=Math.max(Math.abs(n),1);let f=kL(c)||kL(l)||kL(u),p=f?Math.max(c.length,l.length,u.length):0,d=f===!1&&M8e(e,t,r)===!1,h=r.transform||k8e(d);if(r.toRegex&&n===1)return Qne(EP(e,p),EP(t,p),!0,r);let m={negatives:[],positives:[]},b=s(F=>m[F<0?"negatives":"positives"].push(Math.abs(F)),"push"),T=[],I=0;for(;a?i>=o:i<=o;)r.toRegex===!0&&n>1?b(i):T.push(V8e(h(i,I),p,d)),i=a?i-n:i+n,I++;return r.toRegex===!0?n>1?q8e(m,r,p):Zne(T,null,{wrap:!1,...r}):T},"fillNumbers"),G8e=s((e,t,n=1,r={})=>{if(!gy(e)&&e.length>1||!gy(t)&&t.length>1)return tre(e,t,r);let i=r.transform||(d=>String.fromCharCode(d)),o=`${e}`.charCodeAt(0),a=`${t}`.charCodeAt(0),c=o>a,l=Math.min(o,a),u=Math.max(o,a);if(r.toRegex&&n===1)return Qne(l,u,!1,r);let f=[],p=0;for(;c?o>=a:o<=a;)f.push(i(o,p)),o=c?o-n:o+n,p++;return r.toRegex===!0?Zne(f,null,{wrap:!1,options:r}):f},"fillLetters"),SP=s((e,t,n,r={})=>{if(t==null&&$L(e))return[e];if(!$L(e)||!$L(t))return tre(e,t,r);if(typeof n=="function")return SP(e,t,1,{transform:n});if(Xne(n))return SP(e,t,0,n);let i={...r};return i.capture===!0&&(i.wrap=!0),n=n||i.step||1,gy(n)?gy(e)&&gy(t)?B8e(e,t,n,i):G8e(e,t,Math.max(Math.abs(n),1),i):n!=null&&!Xne(n)?U8e(n,i):SP(e,t,1,n)},"fill");nre.exports=SP});var sre=y((MAt,ire)=>{"use strict";var H8e=ML(),rre=vP(),W8e=s((e,t={})=>{let n=s((r,i={})=>{let o=rre.isInvalidBrace(i),a=r.invalid===!0&&t.escapeInvalid===!0,c=o===!0||a===!0,l=t.escapeInvalid===!0?"\\":"",u="";if(r.isOpen===!0)return l+r.value;if(r.isClose===!0)return console.log("node.isClose",l,r.value),l+r.value;if(r.type==="open")return c?l+r.value:"(";if(r.type==="close")return c?l+r.value:")";if(r.type==="comma")return r.prev.type==="comma"?"":c?r.value:"|";if(r.value)return r.value;if(r.nodes&&r.ranges>0){let f=rre.reduce(r.nodes),p=H8e(...f,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(p.length!==0)return f.length>1&&p.length>1?`(${p})`:p}if(r.nodes)for(let f of r.nodes)u+=n(f,r);return u},"walk");return n(e)},"compile");ire.exports=W8e});var cre=y((qAt,are)=>{"use strict";var K8e=ML(),ore=TP(),nd=vP(),xu=s((e="",t="",n=!1)=>{let r=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return n?nd.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let o of i)r.push(xu(o,t,n));else for(let o of t)n===!0&&typeof o=="string"&&(o=`{${o}}`),r.push(Array.isArray(o)?xu(i,o,n):i+o);return nd.flatten(r)},"append"),J8e=s((e,t={})=>{let n=t.rangeLimit===void 0?1e3:t.rangeLimit,r=s((i,o={})=>{i.queue=[];let a=o,c=o.queue;for(;a.type!=="brace"&&a.type!=="root"&&a.parent;)a=a.parent,c=a.queue;if(i.invalid||i.dollar){c.push(xu(c.pop(),ore(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){c.push(xu(c.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let p=nd.reduce(i.nodes);if(nd.exceedsLimit(...p,t.step,n))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=K8e(...p,t);d.length===0&&(d=ore(i,t)),c.push(xu(c.pop(),d)),i.nodes=[];return}let l=nd.encloseBrace(i),u=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,u=f.queue;for(let p=0;p<i.nodes.length;p++){let d=i.nodes[p];if(d.type==="comma"&&i.type==="brace"){p===1&&u.push(""),u.push("");continue}if(d.type==="close"){c.push(xu(c.pop(),u,l));continue}if(d.value&&d.type!=="open"){u.push(xu(u.pop(),d.value));continue}d.nodes&&r(d,i)}return u},"walk");return nd.flatten(r(e))},"expand");are.exports=J8e});var ure=y((BAt,lre)=>{"use strict";lre.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
268
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var gre=y((GAt,hre)=>{"use strict";var Y8e=TP(),{MAX_LENGTH:fre,CHAR_BACKSLASH:VL,CHAR_BACKTICK:X8e,CHAR_COMMA:z8e,CHAR_DOT:Q8e,CHAR_LEFT_PARENTHESES:Z8e,CHAR_RIGHT_PARENTHESES:e5e,CHAR_LEFT_CURLY_BRACE:t5e,CHAR_RIGHT_CURLY_BRACE:n5e,CHAR_LEFT_SQUARE_BRACKET:pre,CHAR_RIGHT_SQUARE_BRACKET:dre,CHAR_DOUBLE_QUOTE:r5e,CHAR_SINGLE_QUOTE:i5e,CHAR_NO_BREAK_SPACE:s5e,CHAR_ZERO_WIDTH_NOBREAK_SPACE:o5e}=ure(),a5e=s((e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let n=t||{},r=typeof n.maxLength=="number"?Math.min(fre,n.maxLength):fre;if(e.length>r)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${r})`);let i={type:"root",input:e,nodes:[]},o=[i],a=i,c=i,l=0,u=e.length,f=0,p=0,d,h=s(()=>e[f++],"advance"),m=s(b=>{if(b.type==="text"&&c.type==="dot"&&(c.type="text"),c&&c.type==="text"&&b.type==="text"){c.value+=b.value;return}return a.nodes.push(b),b.parent=a,b.prev=c,c=b,b},"push");for(m({type:"bos"});f<u;)if(a=o[o.length-1],d=h(),!(d===o5e||d===s5e)){if(d===VL){m({type:"text",value:(t.keepEscaping?d:"")+h()});continue}if(d===dre){m({type:"text",value:"\\"+d});continue}if(d===pre){l++;let b;for(;f<u&&(b=h());){if(d+=b,b===pre){l++;continue}if(b===VL){d+=h();continue}if(b===dre&&(l--,l===0))break}m({type:"text",value:d});continue}if(d===Z8e){a=m({type:"paren",nodes:[]}),o.push(a),m({type:"text",value:d});continue}if(d===e5e){if(a.type!=="paren"){m({type:"text",value:d});continue}a=o.pop(),m({type:"text",value:d}),a=o[o.length-1];continue}if(d===r5e||d===i5e||d===X8e){let b=d,T;for(t.keepQuotes!==!0&&(d="");f<u&&(T=h());){if(T===VL){d+=T+h();continue}if(T===b){t.keepQuotes===!0&&(d+=T);break}d+=T}m({type:"text",value:d});continue}if(d===t5e){p++;let T={type:"brace",open:!0,close:!1,dollar:c.value&&c.value.slice(-1)==="$"||a.dollar===!0,depth:p,commas:0,ranges:0,nodes:[]};a=m(T),o.push(a),m({type:"open",value:d});continue}if(d===n5e){if(a.type!=="brace"){m({type:"text",value:d});continue}let b="close";a=o.pop(),a.close=!0,m({type:b,value:d}),p--,a=o[o.length-1];continue}if(d===z8e&&p>0){if(a.ranges>0){a.ranges=0;let b=a.nodes.shift();a.nodes=[b,{type:"text",value:Y8e(a)}]}m({type:"comma",value:d}),a.commas++;continue}if(d===Q8e&&p>0&&a.commas===0){let b=a.nodes;if(p===0||b.length===0){m({type:"text",value:d});continue}if(c.type==="dot"){if(a.range=[],c.value+=d,c.type="range",a.nodes.length!==3&&a.nodes.length!==5){a.invalid=!0,a.ranges=0,c.type="text";continue}a.ranges++,a.args=[];continue}if(c.type==="range"){b.pop();let T=b[b.length-1];T.value+=c.value+d,c=T,a.ranges--;continue}m({type:"dot",value:d});continue}m({type:"text",value:d})}do if(a=o.pop(),a.type!=="root"){a.nodes.forEach(I=>{I.nodes||(I.type==="open"&&(I.isOpen=!0),I.type==="close"&&(I.isClose=!0),I.nodes||(I.type="text"),I.invalid=!0)});let b=o[o.length-1],T=b.nodes.indexOf(a);b.nodes.splice(T,1,...a.nodes)}while(o.length>0);return m({type:"eos"}),i},"parse");hre.exports=a5e});var bre=y((WAt,yre)=>{"use strict";var mre=TP(),c5e=sre(),l5e=cre(),u5e=gre(),Hi=s((e,t={})=>{let n=[];if(Array.isArray(e))for(let r of e){let i=Hi.create(r,t);Array.isArray(i)?n.push(...i):n.push(i)}else n=[].concat(Hi.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(n=[...new Set(n)]),n},"braces");Hi.parse=(e,t={})=>u5e(e,t);Hi.stringify=(e,t={})=>mre(typeof e=="string"?Hi.parse(e,t):e,t);Hi.compile=(e,t={})=>(typeof e=="string"&&(e=Hi.parse(e,t)),c5e(e,t));Hi.expand=(e,t={})=>{typeof e=="string"&&(e=Hi.parse(e,t));let n=l5e(e,t);return t.noempty===!0&&(n=n.filter(Boolean)),t.nodupes===!0&&(n=[...new Set(n)]),n};Hi.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?Hi.compile(e,t):Hi.expand(e,t);yre.exports=Hi});var my=y((JAt,Pre)=>{"use strict";var f5e=require("path"),mo="\\\\/",vre=`[^${mo}]`,p5e=0,ua="\\.",d5e="\\+",h5e="\\?",PP="\\/",g5e="(?=.)",Tre="[^/]",qL=`(?:${PP}|$)`,Sre=`(?:^|${PP})`,UL=`${ua}{1,2}${qL}`,m5e=`(?!${ua})`,y5e=`(?!${Sre}${UL})`,b5e=`(?!${ua}{0,1}${qL})`,v5e=`(?!${UL})`,T5e=`[^.${PP}]`,S5e=`${Tre}*?`,Ere={DOT_LITERAL:ua,PLUS_LITERAL:d5e,QMARK_LITERAL:h5e,SLASH_LITERAL:PP,ONE_CHAR:g5e,QMARK:Tre,END_ANCHOR:qL,DOTS_SLASH:UL,NO_DOT:m5e,NO_DOTS:y5e,NO_DOT_SLASH:b5e,NO_DOTS_SLASH:v5e,QMARK_NO_DOT:T5e,STAR:S5e,START_ANCHOR:Sre},E5e={...Ere,SLASH_LITERAL:`[${mo}]`,QMARK:vre,STAR:`${vre}*?`,DOTS_SLASH:`${ua}{1,2}(?:[${mo}]|$)`,NO_DOT:`(?!${ua})`,NO_DOTS:`(?!(?:^|[${mo}])${ua}{1,2}(?:[${mo}]|$))`,NO_DOT_SLASH:`(?!${ua}{0,1}(?:[${mo}]|$))`,NO_DOTS_SLASH:`(?!${ua}{1,2}(?:[${mo}]|$))`,QMARK_NO_DOT:`[^.${mo}]`,START_ANCHOR:`(?:^|[${mo}])`,END_ANCHOR:`(?:[${mo}]|$)`},P5e={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Pre.exports={DEFAULT_MAX_EXTGLOB_RECURSION:p5e,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:P5e,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:f5e.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?E5e:Ere}}});var yy=y(wi=>{"use strict";var A5e=require("path"),x5e=process.platform==="win32",{REGEX_BACKSLASH:O5e,REGEX_REMOVE_BACKSLASH:I5e,REGEX_SPECIAL_CHARS:_5e,REGEX_SPECIAL_CHARS_GLOBAL:C5e}=my();wi.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);wi.hasRegexChars=e=>_5e.test(e);wi.isRegexChar=e=>e.length===1&&wi.hasRegexChars(e);wi.escapeRegex=e=>e.replace(C5e,"\\$1");wi.toPosixSlashes=e=>e.replace(O5e,"/");wi.removeBackslashes=e=>e.replace(I5e,t=>t==="\\"?"":t);wi.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};wi.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:x5e===!0||A5e.sep==="\\";wi.escapeLast=(e,t,n)=>{let r=e.lastIndexOf(t,n);return r===-1?e:e[r-1]==="\\"?wi.escapeLast(e,t,r-1):`${e.slice(0,r)}\\${e.slice(r)}`};wi.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n};wi.wrapOutput=(e,t={},n={})=>{let r=n.contains?"":"^",i=n.contains?"":"$",o=`${r}(?:${e})${i}`;return t.negated===!0&&(o=`(?:^(?!${o}).*$)`),o}});var Nre=y((XAt,wre)=>{"use strict";var Are=yy(),{CHAR_ASTERISK:BL,CHAR_AT:w5e,CHAR_BACKWARD_SLASH:by,CHAR_COMMA:N5e,CHAR_DOT:GL,CHAR_EXCLAMATION_MARK:HL,CHAR_FORWARD_SLASH:Cre,CHAR_LEFT_CURLY_BRACE:WL,CHAR_LEFT_PARENTHESES:KL,CHAR_LEFT_SQUARE_BRACKET:R5e,CHAR_PLUS:F5e,CHAR_QUESTION_MARK:xre,CHAR_RIGHT_CURLY_BRACE:L5e,CHAR_RIGHT_PARENTHESES:Ore,CHAR_RIGHT_SQUARE_BRACKET:j5e}=my(),Ire=s(e=>e===Cre||e===by,"isPathSeparator"),_re=s(e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},"depth"),D5e=s((e,t)=>{let n=t||{},r=e.length-1,i=n.parts===!0||n.scanToEnd===!0,o=[],a=[],c=[],l=e,u=-1,f=0,p=0,d=!1,h=!1,m=!1,b=!1,T=!1,I=!1,F=!1,N=!1,$=!1,j=!1,M=0,k,U,R={value:"",depth:0,isGlob:!1},se=s(()=>u>=r,"eos"),G=s(()=>l.charCodeAt(u+1),"peek"),Te=s(()=>(k=U,l.charCodeAt(++u)),"advance");for(;u<r;){U=Te();let Ae;if(U===by){F=R.backslashes=!0,U=Te(),U===WL&&(I=!0);continue}if(I===!0||U===WL){for(M++;se()!==!0&&(U=Te());){if(U===by){F=R.backslashes=!0,Te();continue}if(U===WL){M++;continue}if(I!==!0&&U===GL&&(U=Te())===GL){if(d=R.isBrace=!0,m=R.isGlob=!0,j=!0,i===!0)continue;break}if(I!==!0&&U===N5e){if(d=R.isBrace=!0,m=R.isGlob=!0,j=!0,i===!0)continue;break}if(U===L5e&&(M--,M===0)){I=!1,d=R.isBrace=!0,j=!0;break}}if(i===!0)continue;break}if(U===Cre){if(o.push(u),a.push(R),R={value:"",depth:0,isGlob:!1},j===!0)continue;if(k===GL&&u===f+1){f+=2;continue}p=u+1;continue}if(n.noext!==!0&&(U===F5e||U===w5e||U===BL||U===xre||U===HL)===!0&&G()===KL){if(m=R.isGlob=!0,b=R.isExtglob=!0,j=!0,U===HL&&u===f&&($=!0),i===!0){for(;se()!==!0&&(U=Te());){if(U===by){F=R.backslashes=!0,U=Te();continue}if(U===Ore){m=R.isGlob=!0,j=!0;break}}continue}break}if(U===BL){if(k===BL&&(T=R.isGlobstar=!0),m=R.isGlob=!0,j=!0,i===!0)continue;break}if(U===xre){if(m=R.isGlob=!0,j=!0,i===!0)continue;break}if(U===R5e){for(;se()!==!0&&(Ae=Te());){if(Ae===by){F=R.backslashes=!0,Te();continue}if(Ae===j5e){h=R.isBracket=!0,m=R.isGlob=!0,j=!0;break}}if(i===!0)continue;break}if(n.nonegate!==!0&&U===HL&&u===f){N=R.negated=!0,f++;continue}if(n.noparen!==!0&&U===KL){if(m=R.isGlob=!0,i===!0){for(;se()!==!0&&(U=Te());){if(U===KL){F=R.backslashes=!0,U=Te();continue}if(U===Ore){j=!0;break}}continue}break}if(m===!0){if(j=!0,i===!0)continue;break}}n.noext===!0&&(b=!1,m=!1);let pe=l,ue="",W="";f>0&&(ue=l.slice(0,f),l=l.slice(f),p-=f),pe&&m===!0&&p>0?(pe=l.slice(0,p),W=l.slice(p)):m===!0?(pe="",W=l):pe=l,pe&&pe!==""&&pe!=="/"&&pe!==l&&Ire(pe.charCodeAt(pe.length-1))&&(pe=pe.slice(0,-1)),n.unescape===!0&&(W&&(W=Are.removeBackslashes(W)),pe&&F===!0&&(pe=Are.removeBackslashes(pe)));let H={prefix:ue,input:e,start:f,base:pe,glob:W,isBrace:d,isBracket:h,isGlob:m,isExtglob:b,isGlobstar:T,negated:N,negatedExtglob:$};if(n.tokens===!0&&(H.maxDepth=0,Ire(U)||a.push(R),H.tokens=a),n.parts===!0||n.tokens===!0){let Ae;for(let Ne=0;Ne<o.length;Ne++){let Be=Ae?Ae+1:f,tn=o[Ne],Fe=e.slice(Be,tn);n.tokens&&(Ne===0&&f!==0?(a[Ne].isPrefix=!0,a[Ne].value=ue):a[Ne].value=Fe,_re(a[Ne]),H.maxDepth+=a[Ne].depth),(Ne!==0||Fe!=="")&&c.push(Fe),Ae=tn}if(Ae&&Ae+1<e.length){let Ne=e.slice(Ae+1);c.push(Ne),n.tokens&&(a[a.length-1].value=Ne,_re(a[a.length-1]),H.maxDepth+=a[a.length-1].depth)}H.slashes=o,H.parts=c}return H},"scan");wre.exports=D5e});var Dre=y((QAt,jre)=>{"use strict";var vy=my(),Vr=yy(),{MAX_LENGTH:AP,POSIX_REGEX_SOURCE:$5e,REGEX_NON_SPECIAL_CHARS:k5e,REGEX_SPECIAL_CHARS_BACKREF:M5e,REPLACEMENTS:Rre}=vy,V5e=s((e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let n=`[${e.join("-")}]`;try{new RegExp(n)}catch{return e.map(i=>Vr.escapeRegex(i)).join("..")}return n},"expandRange"),rd=s((e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,"syntaxError"),Fre=s(e=>{let t=[],n=0,r=0,i=0,o="",a=!1;for(let c of e){if(a===!0){o+=c,a=!1;continue}if(c==="\\"){o+=c,a=!0;continue}if(c==='"'){i=i===1?0:1,o+=c;continue}if(i===0){if(c==="[")n++;else if(c==="]"&&n>0)n--;else if(n===0){if(c==="(")r++;else if(c===")"&&r>0)r--;else if(c==="|"&&r===0){t.push(o),o="";continue}}}o+=c}return t.push(o),t},"splitTopLevel"),q5e=s(e=>{let t=!1;for(let n of e){if(t===!0){t=!1;continue}if(n==="\\"){t=!0;continue}if(/[?*+@!()[\]{}]/.test(n))return!1}return!0},"isPlainBranch"),Lre=s(e=>{let t=e.trim(),n=!0;for(;n===!0;)n=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),n=!0);if(q5e(t))return t.replace(/\\(.)/g,"$1")},"normalizeSimpleBranch"),U5e=s(e=>{let t=e.map(Lre).filter(Boolean);for(let n=0;n<t.length;n++)for(let r=n+1;r<t.length;r++){let i=t[n],o=t[r],a=i[0];if(!(!a||i!==a.repeat(i.length)||o!==a.repeat(o.length))&&(i===o||i.startsWith(o)||o.startsWith(i)))return!0}return!1},"hasRepeatedCharPrefixOverlap"),JL=s((e,t=!0)=>{if(e[0]!=="+"&&e[0]!=="*"||e[1]!=="(")return;let n=0,r=0,i=0,o=!1;for(let a=1;a<e.length;a++){let c=e[a];if(o===!0){o=!1;continue}if(c==="\\"){o=!0;continue}if(c==='"'){i=i===1?0:1;continue}if(i!==1){if(c==="["){n++;continue}if(c==="]"&&n>0){n--;continue}if(!(n>0)){if(c==="("){r++;continue}if(c===")"&&(r--,r===0))return t===!0&&a!==e.length-1?void 0:{type:e[0],body:e.slice(2,a),end:a}}}}},"parseRepeatedExtglob"),B5e=s(e=>{let t=0,n=[];for(;t<e.length;){let i=JL(e.slice(t),!1);if(!i||i.type!=="*")return;let o=Fre(i.body).map(c=>c.trim());if(o.length!==1)return;let a=Lre(o[0]);if(!a||a.length!==1)return;n.push(a),t+=i.end+1}return n.length<1?void 0:`${n.length===1?Vr.escapeRegex(n[0]):`[${n.map(i=>Vr.escapeRegex(i)).join("")}]`}*`},"getStarExtglobSequenceOutput"),G5e=s(e=>{let t=0,n=e.trim(),r=JL(n);for(;r;)t++,n=r.body.trim(),r=JL(n);return t},"repeatedExtglobRecursion"),H5e=s((e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let n=typeof t.maxExtglobRecursion=="number"?t.maxExtglobRecursion:vy.DEFAULT_MAX_EXTGLOB_RECURSION,r=Fre(e).map(i=>i.trim());if(r.length>1&&(r.some(i=>i==="")||r.some(i=>/^[*?]+$/.test(i))||U5e(r)))return{risky:!0};for(let i of r){let o=B5e(i);if(o)return{risky:!0,safeOutput:o};if(G5e(i)>n)return{risky:!0}}return{risky:!1}},"analyzeRepeatedExtglob"),YL=s((e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Rre[e]||e;let n={...t},r=typeof n.maxLength=="number"?Math.min(AP,n.maxLength):AP,i=e.length;if(i>r)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);let o={type:"bos",value:"",output:n.prepend||""},a=[o],c=n.capture?"":"?:",l=Vr.isWindows(t),u=vy.globChars(l),f=vy.extglobChars(u),{DOT_LITERAL:p,PLUS_LITERAL:d,SLASH_LITERAL:h,ONE_CHAR:m,DOTS_SLASH:b,NO_DOT:T,NO_DOT_SLASH:I,NO_DOTS_SLASH:F,QMARK:N,QMARK_NO_DOT:$,STAR:j,START_ANCHOR:M}=u,k=s(Ee=>`(${c}(?:(?!${M}${Ee.dot?b:p}).)*?)`,"globstar"),U=n.dot?"":T,R=n.dot?N:$,se=n.bash===!0?k(n):j;n.capture&&(se=`(${se})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);let G={input:e,index:-1,start:0,dot:n.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:a};e=Vr.removePrefix(e,G),i=e.length;let Te=[],pe=[],ue=[],W=o,H,Ae=s(()=>G.index===i-1,"eos"),Ne=G.peek=(Ee=1)=>e[G.index+Ee],Be=G.advance=()=>e[++G.index]||"",tn=s(()=>e.slice(G.index+1),"remaining"),Fe=s((Ee="",bt=0)=>{G.consumed+=Ee,G.index+=bt},"consume"),Oe=s(Ee=>{G.output+=Ee.output!=null?Ee.output:Ee.value,Fe(Ee.value)},"append"),Lt=s(()=>{let Ee=1;for(;Ne()==="!"&&(Ne(2)!=="("||Ne(3)==="?");)Be(),G.start++,Ee++;return Ee%2===0?!1:(G.negated=!0,G.start++,!0)},"negate"),In=s(Ee=>{G[Ee]++,ue.push(Ee)},"increment"),et=s(Ee=>{G[Ee]--,ue.pop()},"decrement"),rt=s(Ee=>{if(W.type==="globstar"){let bt=G.braces>0&&(Ee.type==="comma"||Ee.type==="brace"),P=Ee.extglob===!0||Te.length&&(Ee.type==="pipe"||Ee.type==="paren");Ee.type!=="slash"&&Ee.type!=="paren"&&!bt&&!P&&(G.output=G.output.slice(0,-W.output.length),W.type="star",W.value="*",W.output=se,G.output+=W.output)}if(Te.length&&Ee.type!=="paren"&&(Te[Te.length-1].inner+=Ee.value),(Ee.value||Ee.output)&&Oe(Ee),W&&W.type==="text"&&Ee.type==="text"){W.value+=Ee.value,W.output=(W.output||"")+Ee.value;return}Ee.prev=W,a.push(Ee),W=Ee},"push"),Ri=s((Ee,bt)=>{let P={...f[bt],conditions:1,inner:""};P.prev=W,P.parens=G.parens,P.output=G.output,P.startIndex=G.index,P.tokensIndex=a.length;let E=(n.capture?"(":"")+P.open;In("parens"),rt({type:Ee,value:bt,output:G.output?"":m}),rt({type:"paren",extglob:!0,value:Be(),output:E}),Te.push(P)},"extglobOpen"),Xi=s(Ee=>{let bt=e.slice(Ee.startIndex,G.index+1),P=e.slice(Ee.startIndex+2,G.index),E=H5e(P,n);if((Ee.type==="plus"||Ee.type==="star")&&E.risky){let Re=E.safeOutput?(Ee.output?"":m)+(n.capture?`(${E.safeOutput})`:E.safeOutput):void 0,vt=a[Ee.tokensIndex];vt.type="text",vt.value=bt,vt.output=Re||Vr.escapeRegex(bt);for(let It=Ee.tokensIndex+1;It<a.length;It++)a[It].value="",a[It].output="",delete a[It].suffix;G.output=Ee.output+vt.output,G.backtrack=!0,rt({type:"paren",extglob:!0,value:H,output:""}),et("parens");return}let J=Ee.close+(n.capture?")":""),q;if(Ee.type==="negate"){let Re=se;if(Ee.inner&&Ee.inner.length>1&&Ee.inner.includes("/")&&(Re=k(n)),(Re!==se||Ae()||/^\)+$/.test(tn()))&&(J=Ee.close=`)$))${Re}`),Ee.inner.includes("*")&&(q=tn())&&/^\.[^\\/.]+$/.test(q)){let vt=YL(q,{...t,fastpaths:!1}).output;J=Ee.close=`)${vt})${Re})`}Ee.prev.type==="bos"&&(G.negatedExtglob=!0)}rt({type:"paren",extglob:!0,value:H,output:J}),et("parens")},"extglobClose");if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let Ee=!1,bt=e.replace(M5e,(P,E,J,q,Re,vt)=>q==="\\"?(Ee=!0,P):q==="?"?E?E+q+(Re?N.repeat(Re.length):""):vt===0?R+(Re?N.repeat(Re.length):""):N.repeat(J.length):q==="."?p.repeat(J.length):q==="*"?E?E+q+(Re?se:""):se:E?P:`\\${P}`);return Ee===!0&&(n.unescape===!0?bt=bt.replace(/\\/g,""):bt=bt.replace(/\\+/g,P=>P.length%2===0?"\\\\":P?"\\":"")),bt===e&&n.contains===!0?(G.output=e,G):(G.output=Vr.wrapOutput(bt,G,t),G)}for(;!Ae();){if(H=Be(),H==="\0")continue;if(H==="\\"){let P=Ne();if(P==="/"&&n.bash!==!0||P==="."||P===";")continue;if(!P){H+="\\",rt({type:"text",value:H});continue}let E=/^\\+/.exec(tn()),J=0;if(E&&E[0].length>2&&(J=E[0].length,G.index+=J,J%2!==0&&(H+="\\")),n.unescape===!0?H=Be():H+=Be(),G.brackets===0){rt({type:"text",value:H});continue}}if(G.brackets>0&&(H!=="]"||W.value==="["||W.value==="[^")){if(n.posix!==!1&&H===":"){let P=W.value.slice(1);if(P.includes("[")&&(W.posix=!0,P.includes(":"))){let E=W.value.lastIndexOf("["),J=W.value.slice(0,E),q=W.value.slice(E+2),Re=$5e[q];if(Re){W.value=J+Re,G.backtrack=!0,Be(),!o.output&&a.indexOf(W)===1&&(o.output=m);continue}}}(H==="["&&Ne()!==":"||H==="-"&&Ne()==="]")&&(H=`\\${H}`),H==="]"&&(W.value==="["||W.value==="[^")&&(H=`\\${H}`),n.posix===!0&&H==="!"&&W.value==="["&&(H="^"),W.value+=H,Oe({value:H});continue}if(G.quotes===1&&H!=='"'){H=Vr.escapeRegex(H),W.value+=H,Oe({value:H});continue}if(H==='"'){G.quotes=G.quotes===1?0:1,n.keepQuotes===!0&&rt({type:"text",value:H});continue}if(H==="("){In("parens"),rt({type:"paren",value:H});continue}if(H===")"){if(G.parens===0&&n.strictBrackets===!0)throw new SyntaxError(rd("opening","("));let P=Te[Te.length-1];if(P&&G.parens===P.parens+1){Xi(Te.pop());continue}rt({type:"paren",value:H,output:G.parens?")":"\\)"}),et("parens");continue}if(H==="["){if(n.nobracket===!0||!tn().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(rd("closing","]"));H=`\\${H}`}else In("brackets");rt({type:"bracket",value:H});continue}if(H==="]"){if(n.nobracket===!0||W&&W.type==="bracket"&&W.value.length===1){rt({type:"text",value:H,output:`\\${H}`});continue}if(G.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(rd("opening","["));rt({type:"text",value:H,output:`\\${H}`});continue}et("brackets");let P=W.value.slice(1);if(W.posix!==!0&&P[0]==="^"&&!P.includes("/")&&(H=`/${H}`),W.value+=H,Oe({value:H}),n.literalBrackets===!1||Vr.hasRegexChars(P))continue;let E=Vr.escapeRegex(W.value);if(G.output=G.output.slice(0,-W.value.length),n.literalBrackets===!0){G.output+=E,W.value=E;continue}W.value=`(${c}${E}|${W.value})`,G.output+=W.value;continue}if(H==="{"&&n.nobrace!==!0){In("braces");let P={type:"brace",value:H,output:"(",outputIndex:G.output.length,tokensIndex:G.tokens.length};pe.push(P),rt(P);continue}if(H==="}"){let P=pe[pe.length-1];if(n.nobrace===!0||!P){rt({type:"text",value:H,output:H});continue}let E=")";if(P.dots===!0){let J=a.slice(),q=[];for(let Re=J.length-1;Re>=0&&(a.pop(),J[Re].type!=="brace");Re--)J[Re].type!=="dots"&&q.unshift(J[Re].value);E=V5e(q,n),G.backtrack=!0}if(P.comma!==!0&&P.dots!==!0){let J=G.output.slice(0,P.outputIndex),q=G.tokens.slice(P.tokensIndex);P.value=P.output="\\{",H=E="\\}",G.output=J;for(let Re of q)G.output+=Re.output||Re.value}rt({type:"brace",value:H,output:E}),et("braces"),pe.pop();continue}if(H==="|"){Te.length>0&&Te[Te.length-1].conditions++,rt({type:"text",value:H});continue}if(H===","){let P=H,E=pe[pe.length-1];E&&ue[ue.length-1]==="braces"&&(E.comma=!0,P="|"),rt({type:"comma",value:H,output:P});continue}if(H==="/"){if(W.type==="dot"&&G.index===G.start+1){G.start=G.index+1,G.consumed="",G.output="",a.pop(),W=o;continue}rt({type:"slash",value:H,output:h});continue}if(H==="."){if(G.braces>0&&W.type==="dot"){W.value==="."&&(W.output=p);let P=pe[pe.length-1];W.type="dots",W.output+=H,W.value+=H,P.dots=!0;continue}if(G.braces+G.parens===0&&W.type!=="bos"&&W.type!=="slash"){rt({type:"text",value:H,output:p});continue}rt({type:"dot",value:H,output:p});continue}if(H==="?"){if(!(W&&W.value==="(")&&n.noextglob!==!0&&Ne()==="("&&Ne(2)!=="?"){Ri("qmark",H);continue}if(W&&W.type==="paren"){let E=Ne(),J=H;if(E==="<"&&!Vr.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(W.value==="("&&!/[!=<:]/.test(E)||E==="<"&&!/<([!=]|\w+>)/.test(tn()))&&(J=`\\${H}`),rt({type:"text",value:H,output:J});continue}if(n.dot!==!0&&(W.type==="slash"||W.type==="bos")){rt({type:"qmark",value:H,output:$});continue}rt({type:"qmark",value:H,output:N});continue}if(H==="!"){if(n.noextglob!==!0&&Ne()==="("&&(Ne(2)!=="?"||!/[!=<:]/.test(Ne(3)))){Ri("negate",H);continue}if(n.nonegate!==!0&&G.index===0){Lt();continue}}if(H==="+"){if(n.noextglob!==!0&&Ne()==="("&&Ne(2)!=="?"){Ri("plus",H);continue}if(W&&W.value==="("||n.regex===!1){rt({type:"plus",value:H,output:d});continue}if(W&&(W.type==="bracket"||W.type==="paren"||W.type==="brace")||G.parens>0){rt({type:"plus",value:H});continue}rt({type:"plus",value:d});continue}if(H==="@"){if(n.noextglob!==!0&&Ne()==="("&&Ne(2)!=="?"){rt({type:"at",extglob:!0,value:H,output:""});continue}rt({type:"text",value:H});continue}if(H!=="*"){(H==="$"||H==="^")&&(H=`\\${H}`);let P=k5e.exec(tn());P&&(H+=P[0],G.index+=P[0].length),rt({type:"text",value:H});continue}if(W&&(W.type==="globstar"||W.star===!0)){W.type="star",W.star=!0,W.value+=H,W.output=se,G.backtrack=!0,G.globstar=!0,Fe(H);continue}let Ee=tn();if(n.noextglob!==!0&&/^\([^?]/.test(Ee)){Ri("star",H);continue}if(W.type==="star"){if(n.noglobstar===!0){Fe(H);continue}let P=W.prev,E=P.prev,J=P.type==="slash"||P.type==="bos",q=E&&(E.type==="star"||E.type==="globstar");if(n.bash===!0&&(!J||Ee[0]&&Ee[0]!=="/")){rt({type:"star",value:H,output:""});continue}let Re=G.braces>0&&(P.type==="comma"||P.type==="brace"),vt=Te.length&&(P.type==="pipe"||P.type==="paren");if(!J&&P.type!=="paren"&&!Re&&!vt){rt({type:"star",value:H,output:""});continue}for(;Ee.slice(0,3)==="/**";){let It=e[G.index+4];if(It&&It!=="/")break;Ee=Ee.slice(3),Fe("/**",3)}if(P.type==="bos"&&Ae()){W.type="globstar",W.value+=H,W.output=k(n),G.output=W.output,G.globstar=!0,Fe(H);continue}if(P.type==="slash"&&P.prev.type!=="bos"&&!q&&Ae()){G.output=G.output.slice(0,-(P.output+W.output).length),P.output=`(?:${P.output}`,W.type="globstar",W.output=k(n)+(n.strictSlashes?")":"|$)"),W.value+=H,G.globstar=!0,G.output+=P.output+W.output,Fe(H);continue}if(P.type==="slash"&&P.prev.type!=="bos"&&Ee[0]==="/"){let It=Ee[1]!==void 0?"|$":"";G.output=G.output.slice(0,-(P.output+W.output).length),P.output=`(?:${P.output}`,W.type="globstar",W.output=`${k(n)}${h}|${h}${It})`,W.value+=H,G.output+=P.output+W.output,G.globstar=!0,Fe(H+Be()),rt({type:"slash",value:"/",output:""});continue}if(P.type==="bos"&&Ee[0]==="/"){W.type="globstar",W.value+=H,W.output=`(?:^|${h}|${k(n)}${h})`,G.output=W.output,G.globstar=!0,Fe(H+Be()),rt({type:"slash",value:"/",output:""});continue}G.output=G.output.slice(0,-W.output.length),W.type="globstar",W.output=k(n),W.value+=H,G.output+=W.output,G.globstar=!0,Fe(H);continue}let bt={type:"star",value:H,output:se};if(n.bash===!0){bt.output=".*?",(W.type==="bos"||W.type==="slash")&&(bt.output=U+bt.output),rt(bt);continue}if(W&&(W.type==="bracket"||W.type==="paren")&&n.regex===!0){bt.output=H,rt(bt);continue}(G.index===G.start||W.type==="slash"||W.type==="dot")&&(W.type==="dot"?(G.output+=I,W.output+=I):n.dot===!0?(G.output+=F,W.output+=F):(G.output+=U,W.output+=U),Ne()!=="*"&&(G.output+=m,W.output+=m)),rt(bt)}for(;G.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(rd("closing","]"));G.output=Vr.escapeLast(G.output,"["),et("brackets")}for(;G.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(rd("closing",")"));G.output=Vr.escapeLast(G.output,"("),et("parens")}for(;G.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(rd("closing","}"));G.output=Vr.escapeLast(G.output,"{"),et("braces")}if(n.strictSlashes!==!0&&(W.type==="star"||W.type==="bracket")&&rt({type:"maybe_slash",value:"",output:`${h}?`}),G.backtrack===!0){G.output="";for(let Ee of G.tokens)G.output+=Ee.output!=null?Ee.output:Ee.value,Ee.suffix&&(G.output+=Ee.suffix)}return G},"parse");YL.fastpaths=(e,t)=>{let n={...t},r=typeof n.maxLength=="number"?Math.min(AP,n.maxLength):AP,i=e.length;if(i>r)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);e=Rre[e]||e;let o=Vr.isWindows(t),{DOT_LITERAL:a,SLASH_LITERAL:c,ONE_CHAR:l,DOTS_SLASH:u,NO_DOT:f,NO_DOTS:p,NO_DOTS_SLASH:d,STAR:h,START_ANCHOR:m}=vy.globChars(o),b=n.dot?p:f,T=n.dot?d:f,I=n.capture?"":"?:",F={negated:!1,prefix:""},N=n.bash===!0?".*?":h;n.capture&&(N=`(${N})`);let $=s(U=>U.noglobstar===!0?N:`(${I}(?:(?!${m}${U.dot?u:a}).)*?)`,"globstar"),j=s(U=>{switch(U){case"*":return`${b}${l}${N}`;case".*":return`${a}${l}${N}`;case"*.*":return`${b}${N}${a}${l}${N}`;case"*/*":return`${b}${N}${c}${l}${T}${N}`;case"**":return b+$(n);case"**/*":return`(?:${b}${$(n)}${c})?${T}${l}${N}`;case"**/*.*":return`(?:${b}${$(n)}${c})?${T}${N}${a}${l}${N}`;case"**/.*":return`(?:${b}${$(n)}${c})?${a}${l}${N}`;default:{let R=/^(.*?)\.(\w+)$/.exec(U);if(!R)return;let se=j(R[1]);return se?se+a+R[2]:void 0}}},"create"),M=Vr.removePrefix(e,F),k=j(M);return k&&n.strictSlashes!==!0&&(k+=`${c}?`),k};jre.exports=YL});var kre=y((e0t,$re)=>{"use strict";var W5e=require("path"),K5e=Nre(),XL=Dre(),zL=yy(),J5e=my(),Y5e=s(e=>e&&typeof e=="object"&&!Array.isArray(e),"isObject"),Bn=s((e,t,n=!1)=>{if(Array.isArray(e)){let f=e.map(d=>Bn(d,t,n));return s(d=>{for(let h of f){let m=h(d);if(m)return m}return!1},"arrayMatcher")}let r=Y5e(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},o=zL.isWindows(t),a=r?Bn.compileRe(e,t):Bn.makeRe(e,t,!1,!0),c=a.state;delete a.state;let l=s(()=>!1,"isIgnored");if(i.ignore){let f={...t,ignore:null,onMatch:null,onResult:null};l=Bn(i.ignore,f,n)}let u=s((f,p=!1)=>{let{isMatch:d,match:h,output:m}=Bn.test(f,a,t,{glob:e,posix:o}),b={glob:e,state:c,regex:a,posix:o,input:f,output:m,match:h,isMatch:d};return typeof i.onResult=="function"&&i.onResult(b),d===!1?(b.isMatch=!1,p?b:!1):l(f)?(typeof i.onIgnore=="function"&&i.onIgnore(b),b.isMatch=!1,p?b:!1):(typeof i.onMatch=="function"&&i.onMatch(b),p?b:!0)},"matcher");return n&&(u.state=c),u},"picomatch");Bn.test=(e,t,n,{glob:r,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let o=n||{},a=o.format||(i?zL.toPosixSlashes:null),c=e===r,l=c&&a?a(e):e;return c===!1&&(l=a?a(e):e,c=l===r),(c===!1||o.capture===!0)&&(o.matchBase===!0||o.basename===!0?c=Bn.matchBase(e,t,n,i):c=t.exec(l)),{isMatch:!!c,match:c,output:l}};Bn.matchBase=(e,t,n,r=zL.isWindows(n))=>(t instanceof RegExp?t:Bn.makeRe(t,n)).test(W5e.basename(e));Bn.isMatch=(e,t,n)=>Bn(t,n)(e);Bn.parse=(e,t)=>Array.isArray(e)?e.map(n=>Bn.parse(n,t)):XL(e,{...t,fastpaths:!1});Bn.scan=(e,t)=>K5e(e,t);Bn.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;let i=t||{},o=i.contains?"":"^",a=i.contains?"":"$",c=`${o}(?:${e.output})${a}`;e&&e.negated===!0&&(c=`^(?!${c}).*$`);let l=Bn.toRegex(c,t);return r===!0&&(l.state=e),l};Bn.makeRe=(e,t={},n=!1,r=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=XL.fastpaths(e,t)),i.output||(i=XL(e,t)),Bn.compileRe(i,t,n,r)};Bn.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(n){if(t&&t.debug===!0)throw n;return/$^/}};Bn.constants=J5e;$re.exports=Bn});var Vre=y((n0t,Mre)=>{"use strict";Mre.exports=kre()});var Wre=y((r0t,Hre)=>{"use strict";var Ure=require("util"),Bre=bre(),yo=Vre(),QL=yy(),qre=s(e=>e===""||e==="./","isEmptyString"),Gre=s(e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},"hasBraces"),On=s((e,t,n)=>{t=[].concat(t),e=[].concat(e);let r=new Set,i=new Set,o=new Set,a=0,c=s(f=>{o.add(f.output),n&&n.onResult&&n.onResult(f)},"onResult");for(let f=0;f<t.length;f++){let p=yo(String(t[f]),{...n,onResult:c},!0),d=p.state.negated||p.state.negatedExtglob;d&&a++;for(let h of e){let m=p(h,!0);(d?!m.isMatch:m.isMatch)&&(d?r.add(m.output):(r.delete(m.output),i.add(m.output)))}}let u=(a===t.length?[...o]:[...i]).filter(f=>!r.has(f));if(n&&u.length===0){if(n.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(n.nonull===!0||n.nullglob===!0)return n.unescape?t.map(f=>f.replace(/\\/g,"")):t}return u},"micromatch");On.match=On;On.matcher=(e,t)=>yo(e,t);On.isMatch=(e,t,n)=>yo(t,n)(e);On.any=On.isMatch;On.not=(e,t,n={})=>{t=[].concat(t).map(String);let r=new Set,i=[],o=s(c=>{n.onResult&&n.onResult(c),i.push(c.output)},"onResult"),a=new Set(On(e,t,{...n,onResult:o}));for(let c of i)a.has(c)||r.add(c);return[...r]};On.contains=(e,t,n)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Ure.inspect(e)}"`);if(Array.isArray(t))return t.some(r=>On.contains(e,r,n));if(typeof t=="string"){if(qre(e)||qre(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return On.isMatch(e,t,{...n,contains:!0})};On.matchKeys=(e,t,n)=>{if(!QL.isObject(e))throw new TypeError("Expected the first argument to be an object");let r=On(Object.keys(e),t,n),i={};for(let o of r)i[o]=e[o];return i};On.some=(e,t,n)=>{let r=[].concat(e);for(let i of[].concat(t)){let o=yo(String(i),n);if(r.some(a=>o(a)))return!0}return!1};On.every=(e,t,n)=>{let r=[].concat(e);for(let i of[].concat(t)){let o=yo(String(i),n);if(!r.every(a=>o(a)))return!1}return!0};On.all=(e,t,n)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Ure.inspect(e)}"`);return[].concat(t).every(r=>yo(r,n)(e))};On.capture=(e,t,n)=>{let r=QL.isWindows(n),o=yo.makeRe(String(e),{...n,capture:!0}).exec(r?QL.toPosixSlashes(t):t);if(o)return o.slice(1).map(a=>a===void 0?"":a)};On.makeRe=(...e)=>yo.makeRe(...e);On.scan=(...e)=>yo.scan(...e);On.parse=(e,t)=>{let n=[];for(let r of[].concat(e||[]))for(let i of Bre(String(r),t))n.push(yo.parse(i,t));return n};On.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!Gre(e)?[e]:Bre(e,t)};On.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return On.braces(e,{...t,expand:!0})};On.hasBraces=Gre;Hre.exports=On});var nie=y(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.isAbsolute=nt.partitionAbsoluteAndRelative=nt.removeDuplicateSlashes=nt.matchAny=nt.convertPatternsToRe=nt.makeRe=nt.getPatternParts=nt.expandBraceExpansion=nt.expandPatternsWithBraceExpansion=nt.isAffectDepthOfReadingPattern=nt.endsWithSlashGlobStar=nt.hasGlobStar=nt.getBaseDirectory=nt.isPatternRelatedToParentDirectory=nt.getPatternsOutsideCurrentDirectory=nt.getPatternsInsideCurrentDirectory=nt.getPositivePatterns=nt.getNegativePatterns=nt.isPositivePattern=nt.isNegativePattern=nt.convertToNegativePattern=nt.convertToPositivePattern=nt.isDynamicPattern=nt.isStaticPattern=void 0;var Kre=require("path"),X5e=Dne(),ZL=Wre(),Jre="**",z5e="\\",Q5e=/[*?]|^!/,Z5e=/\[[^[]*]/,eWe=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,tWe=/[!*+?@]\([^(]*\)/,nWe=/,|\.\./,rWe=/(?!^)\/{2,}/g;function Yre(e,t={}){return!Xre(e,t)}s(Yre,"isStaticPattern");nt.isStaticPattern=Yre;function Xre(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(z5e)||Q5e.test(e)||Z5e.test(e)||eWe.test(e)||t.extglob!==!1&&tWe.test(e)||t.braceExpansion!==!1&&iWe(e))}s(Xre,"isDynamicPattern");nt.isDynamicPattern=Xre;function iWe(e){let t=e.indexOf("{");if(t===-1)return!1;let n=e.indexOf("}",t+1);if(n===-1)return!1;let r=e.slice(t,n);return nWe.test(r)}s(iWe,"hasBraceExpansion");function sWe(e){return xP(e)?e.slice(1):e}s(sWe,"convertToPositivePattern");nt.convertToPositivePattern=sWe;function oWe(e){return"!"+e}s(oWe,"convertToNegativePattern");nt.convertToNegativePattern=oWe;function xP(e){return e.startsWith("!")&&e[1]!=="("}s(xP,"isNegativePattern");nt.isNegativePattern=xP;function zre(e){return!xP(e)}s(zre,"isPositivePattern");nt.isPositivePattern=zre;function aWe(e){return e.filter(xP)}s(aWe,"getNegativePatterns");nt.getNegativePatterns=aWe;function cWe(e){return e.filter(zre)}s(cWe,"getPositivePatterns");nt.getPositivePatterns=cWe;function lWe(e){return e.filter(t=>!ej(t))}s(lWe,"getPatternsInsideCurrentDirectory");nt.getPatternsInsideCurrentDirectory=lWe;function uWe(e){return e.filter(ej)}s(uWe,"getPatternsOutsideCurrentDirectory");nt.getPatternsOutsideCurrentDirectory=uWe;function ej(e){return e.startsWith("..")||e.startsWith("./..")}s(ej,"isPatternRelatedToParentDirectory");nt.isPatternRelatedToParentDirectory=ej;function fWe(e){return X5e(e,{flipBackslashes:!1})}s(fWe,"getBaseDirectory");nt.getBaseDirectory=fWe;function pWe(e){return e.includes(Jre)}s(pWe,"hasGlobStar");nt.hasGlobStar=pWe;function Qre(e){return e.endsWith("/"+Jre)}s(Qre,"endsWithSlashGlobStar");nt.endsWithSlashGlobStar=Qre;function dWe(e){let t=Kre.basename(e);return Qre(e)||Yre(t)}s(dWe,"isAffectDepthOfReadingPattern");nt.isAffectDepthOfReadingPattern=dWe;function hWe(e){return e.reduce((t,n)=>t.concat(Zre(n)),[])}s(hWe,"expandPatternsWithBraceExpansion");nt.expandPatternsWithBraceExpansion=hWe;function Zre(e){let t=ZL.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((n,r)=>n.length-r.length),t.filter(n=>n!=="")}s(Zre,"expandBraceExpansion");nt.expandBraceExpansion=Zre;function gWe(e,t){let{parts:n}=ZL.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return n.length===0&&(n=[e]),n[0].startsWith("/")&&(n[0]=n[0].slice(1),n.unshift("")),n}s(gWe,"getPatternParts");nt.getPatternParts=gWe;function eie(e,t){return ZL.makeRe(e,t)}s(eie,"makeRe");nt.makeRe=eie;function mWe(e,t){return e.map(n=>eie(n,t))}s(mWe,"convertPatternsToRe");nt.convertPatternsToRe=mWe;function yWe(e,t){return t.some(n=>n.test(e))}s(yWe,"matchAny");nt.matchAny=yWe;function bWe(e){return e.replace(rWe,"/")}s(bWe,"removeDuplicateSlashes");nt.removeDuplicateSlashes=bWe;function vWe(e){let t=[],n=[];for(let r of e)tie(r)?t.push(r):n.push(r);return[t,n]}s(vWe,"partitionAbsoluteAndRelative");nt.partitionAbsoluteAndRelative=vWe;function tie(e){return Kre.isAbsolute(e)}s(tie,"isAbsolute");nt.isAbsolute=tie});var iie=y(OP=>{"use strict";Object.defineProperty(OP,"__esModule",{value:!0});OP.merge=void 0;var TWe=NL();function SWe(e){let t=TWe(e);return e.forEach(n=>{n.once("error",r=>t.emit("error",r))}),t.once("close",()=>rie(e)),t.once("end",()=>rie(e)),t}s(SWe,"merge");OP.merge=SWe;function rie(e){e.forEach(t=>t.emit("close"))}s(rie,"propagateCloseEventToSources")});var sie=y(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.isEmpty=id.isString=void 0;function EWe(e){return typeof e=="string"}s(EWe,"isString");id.isString=EWe;function PWe(e){return e===""}s(PWe,"isEmpty");id.isEmpty=PWe});var fa=y(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.string=qr.stream=qr.pattern=qr.path=qr.fs=qr.errno=qr.array=void 0;var AWe=Pne();qr.array=AWe;var xWe=Ane();qr.errno=xWe;var OWe=xne();qr.fs=OWe;var IWe=Cne();qr.path=IWe;var _We=nie();qr.pattern=_We;var CWe=iie();qr.stream=CWe;var wWe=sie();qr.string=wWe});var lie=y(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.convertPatternGroupToTask=Ur.convertPatternGroupsToTasks=Ur.groupPatternsByBaseDirectory=Ur.getNegativePatternsAsPositive=Ur.getPositivePatterns=Ur.convertPatternsToTasks=Ur.generate=void 0;var Bs=fa();function NWe(e,t){let n=oie(e,t),r=oie(t.ignore,t),i=aie(n),o=cie(n,r),a=i.filter(f=>Bs.pattern.isStaticPattern(f,t)),c=i.filter(f=>Bs.pattern.isDynamicPattern(f,t)),l=tj(a,o,!1),u=tj(c,o,!0);return l.concat(u)}s(NWe,"generate");Ur.generate=NWe;function oie(e,t){let n=e;return t.braceExpansion&&(n=Bs.pattern.expandPatternsWithBraceExpansion(n)),t.baseNameMatch&&(n=n.map(r=>r.includes("/")?r:`**/${r}`)),n.map(r=>Bs.pattern.removeDuplicateSlashes(r))}s(oie,"processPatterns");function tj(e,t,n){let r=[],i=Bs.pattern.getPatternsOutsideCurrentDirectory(e),o=Bs.pattern.getPatternsInsideCurrentDirectory(e),a=nj(i),c=nj(o);return r.push(...rj(a,t,n)),"."in c?r.push(ij(".",o,t,n)):r.push(...rj(c,t,n)),r}s(tj,"convertPatternsToTasks");Ur.convertPatternsToTasks=tj;function aie(e){return Bs.pattern.getPositivePatterns(e)}s(aie,"getPositivePatterns");Ur.getPositivePatterns=aie;function cie(e,t){return Bs.pattern.getNegativePatterns(e).concat(t).map(Bs.pattern.convertToPositivePattern)}s(cie,"getNegativePatternsAsPositive");Ur.getNegativePatternsAsPositive=cie;function nj(e){let t={};return e.reduce((n,r)=>{let i=Bs.pattern.getBaseDirectory(r);return i in n?n[i].push(r):n[i]=[r],n},t)}s(nj,"groupPatternsByBaseDirectory");Ur.groupPatternsByBaseDirectory=nj;function rj(e,t,n){return Object.keys(e).map(r=>ij(r,e[r],t,n))}s(rj,"convertPatternGroupsToTasks");Ur.convertPatternGroupsToTasks=rj;function ij(e,t,n,r){return{dynamic:r,positive:t,negative:n,base:e,patterns:[].concat(t,n.map(Bs.pattern.convertToNegativePattern))}}s(ij,"convertPatternGroupToTask");Ur.convertPatternGroupToTask=ij});var fie=y(IP=>{"use strict";Object.defineProperty(IP,"__esModule",{value:!0});IP.read=void 0;function RWe(e,t,n){t.fs.lstat(e,(r,i)=>{if(r!==null){uie(n,r);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){sj(n,i);return}t.fs.stat(e,(o,a)=>{if(o!==null){if(t.throwErrorOnBrokenSymbolicLink){uie(n,o);return}sj(n,i);return}t.markSymbolicLink&&(a.isSymbolicLink=()=>!0),sj(n,a)})})}s(RWe,"read");IP.read=RWe;function uie(e,t){e(t)}s(uie,"callFailureCallback");function sj(e,t){e(null,t)}s(sj,"callSuccessCallback")});var pie=y(_P=>{"use strict";Object.defineProperty(_P,"__esModule",{value:!0});_P.read=void 0;function FWe(e,t){let n=t.fs.lstatSync(e);if(!n.isSymbolicLink()||!t.followSymbolicLink)return n;try{let r=t.fs.statSync(e);return t.markSymbolicLink&&(r.isSymbolicLink=()=>!0),r}catch(r){if(!t.throwErrorOnBrokenSymbolicLink)return n;throw r}}s(FWe,"read");_P.read=FWe});var die=y(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.createFileSystemAdapter=jc.FILE_SYSTEM_ADAPTER=void 0;var CP=require("fs");jc.FILE_SYSTEM_ADAPTER={lstat:CP.lstat,stat:CP.stat,lstatSync:CP.lstatSync,statSync:CP.statSync};function LWe(e){return e===void 0?jc.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},jc.FILE_SYSTEM_ADAPTER),e)}s(LWe,"createFileSystemAdapter");jc.createFileSystemAdapter=LWe});var hie=y(aj=>{"use strict";Object.defineProperty(aj,"__esModule",{value:!0});var jWe=die(),cj=class cj{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=jWe.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,n){return t??n}};s(cj,"Settings");var oj=cj;aj.default=oj});var Ou=y(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.statSync=Dc.stat=Dc.Settings=void 0;var gie=fie(),DWe=pie(),lj=hie();Dc.Settings=lj.default;function $We(e,t,n){if(typeof t=="function"){gie.read(e,uj(),t);return}gie.read(e,uj(t),n)}s($We,"stat");Dc.stat=$We;function kWe(e,t){let n=uj(t);return DWe.read(e,n)}s(kWe,"statSync");Dc.statSync=kWe;function uj(e={}){return e instanceof lj.default?e:new lj.default(e)}s(uj,"getSettings")});var bie=y((A0t,yie)=>{var mie;yie.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(mie||(mie=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Tie=y((x0t,vie)=>{vie.exports=VWe;var MWe=bie();function VWe(e,t){let n,r,i,o=!0;Array.isArray(e)?(n=[],r=e.length):(i=Object.keys(e),n={},r=i.length);function a(l){function u(){t&&t(l,n),t=null}s(u,"end"),o?MWe(u):u()}s(a,"done");function c(l,u,f){n[l]=f,(--r===0||u)&&a(u)}s(c,"each"),r?i?i.forEach(function(l){e[l](function(u,f){c(l,u,f)})}):e.forEach(function(l,u){l(function(f,p){c(u,f,p)})}):a(null),o=!1}s(VWe,"runParallel")});var fj=y(NP=>{"use strict";Object.defineProperty(NP,"__esModule",{value:!0});NP.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var wP=process.versions.node.split(".");if(wP[0]===void 0||wP[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Sie=Number.parseInt(wP[0],10),qWe=Number.parseInt(wP[1],10),Eie=10,UWe=10,BWe=Sie>Eie,GWe=Sie===Eie&&qWe>=UWe;NP.IS_SUPPORT_READDIR_WITH_FILE_TYPES=BWe||GWe});var Pie=y(RP=>{"use strict";Object.defineProperty(RP,"__esModule",{value:!0});RP.createDirentFromStats=void 0;var dj=class dj{constructor(t,n){this.name=t,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};s(dj,"DirentFromStats");var pj=dj;function HWe(e,t){return new pj(e,t)}s(HWe,"createDirentFromStats");RP.createDirentFromStats=HWe});var hj=y(FP=>{"use strict";Object.defineProperty(FP,"__esModule",{value:!0});FP.fs=void 0;var WWe=Pie();FP.fs=WWe});var gj=y(LP=>{"use strict";Object.defineProperty(LP,"__esModule",{value:!0});LP.joinPathSegments=void 0;function KWe(e,t,n){return e.endsWith(n)?e+t:e+n+t}s(KWe,"joinPathSegments");LP.joinPathSegments=KWe});var Cie=y($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.readdir=$c.readdirWithFileTypes=$c.read=void 0;var JWe=Ou(),Aie=Tie(),YWe=fj(),xie=hj(),Oie=gj();function XWe(e,t,n){if(!t.stats&&YWe.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Iie(e,t,n);return}_ie(e,t,n)}s(XWe,"read");$c.read=XWe;function Iie(e,t,n){t.fs.readdir(e,{withFileTypes:!0},(r,i)=>{if(r!==null){jP(n,r);return}let o=i.map(c=>({dirent:c,name:c.name,path:Oie.joinPathSegments(e,c.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){mj(n,o);return}let a=o.map(c=>zWe(c,t));Aie(a,(c,l)=>{if(c!==null){jP(n,c);return}mj(n,l)})})}s(Iie,"readdirWithFileTypes");$c.readdirWithFileTypes=Iie;function zWe(e,t){return n=>{if(!e.dirent.isSymbolicLink()){n(null,e);return}t.fs.stat(e.path,(r,i)=>{if(r!==null){if(t.throwErrorOnBrokenSymbolicLink){n(r);return}n(null,e);return}e.dirent=xie.fs.createDirentFromStats(e.name,i),n(null,e)})}}s(zWe,"makeRplTaskEntry");function _ie(e,t,n){t.fs.readdir(e,(r,i)=>{if(r!==null){jP(n,r);return}let o=i.map(a=>{let c=Oie.joinPathSegments(e,a,t.pathSegmentSeparator);return l=>{JWe.stat(c,t.fsStatSettings,(u,f)=>{if(u!==null){l(u);return}let p={name:a,path:c,dirent:xie.fs.createDirentFromStats(a,f)};t.stats&&(p.stats=f),l(null,p)})}});Aie(o,(a,c)=>{if(a!==null){jP(n,a);return}mj(n,c)})})}s(_ie,"readdir");$c.readdir=_ie;function jP(e,t){e(t)}s(jP,"callFailureCallback");function mj(e,t){e(null,t)}s(mj,"callSuccessCallback")});var Lie=y(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.readdir=kc.readdirWithFileTypes=kc.read=void 0;var QWe=Ou(),ZWe=fj(),wie=hj(),Nie=gj();function eKe(e,t){return!t.stats&&ZWe.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Rie(e,t):Fie(e,t)}s(eKe,"read");kc.read=eKe;function Rie(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(r=>{let i={dirent:r,name:r.name,path:Nie.joinPathSegments(e,r.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let o=t.fs.statSync(i.path);i.dirent=wie.fs.createDirentFromStats(i.name,o)}catch(o){if(t.throwErrorOnBrokenSymbolicLink)throw o}return i})}s(Rie,"readdirWithFileTypes");kc.readdirWithFileTypes=Rie;function Fie(e,t){return t.fs.readdirSync(e).map(r=>{let i=Nie.joinPathSegments(e,r,t.pathSegmentSeparator),o=QWe.statSync(i,t.fsStatSettings),a={name:r,path:i,dirent:wie.fs.createDirentFromStats(r,o)};return t.stats&&(a.stats=o),a})}s(Fie,"readdir");kc.readdir=Fie});var jie=y(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});Mc.createFileSystemAdapter=Mc.FILE_SYSTEM_ADAPTER=void 0;var sd=require("fs");Mc.FILE_SYSTEM_ADAPTER={lstat:sd.lstat,stat:sd.stat,lstatSync:sd.lstatSync,statSync:sd.statSync,readdir:sd.readdir,readdirSync:sd.readdirSync};function tKe(e){return e===void 0?Mc.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Mc.FILE_SYSTEM_ADAPTER),e)}s(tKe,"createFileSystemAdapter");Mc.createFileSystemAdapter=tKe});var Die=y(bj=>{"use strict";Object.defineProperty(bj,"__esModule",{value:!0});var nKe=require("path"),rKe=Ou(),iKe=jie(),vj=class vj{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=iKe.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,nKe.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new rKe.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,n){return t??n}};s(vj,"Settings");var yj=vj;bj.default=yj});var DP=y(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.Settings=Vc.scandirSync=Vc.scandir=void 0;var $ie=Cie(),sKe=Lie(),Tj=Die();Vc.Settings=Tj.default;function oKe(e,t,n){if(typeof t=="function"){$ie.read(e,Sj(),t);return}$ie.read(e,Sj(t),n)}s(oKe,"scandir");Vc.scandir=oKe;function aKe(e,t){let n=Sj(t);return sKe.read(e,n)}s(aKe,"scandirSync");Vc.scandirSync=aKe;function Sj(e={}){return e instanceof Tj.default?e:new Tj.default(e)}s(Sj,"getSettings")});var Mie=y((B0t,kie)=>{"use strict";function cKe(e){var t=new e,n=t;function r(){var o=t;return o.next?t=o.next:(t=new e,n=t),o.next=null,o}s(r,"get");function i(o){n.next=o,n=o}return s(i,"release"),{get:r,release:i}}s(cKe,"reusify");kie.exports=cKe});var qie=y((H0t,Ej)=>{"use strict";var lKe=Mie();function Vie(e,t,n){if(typeof e=="function"&&(n=t,t=e,e=null),!(n>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var r=lKe(uKe),i=null,o=null,a=0,c=null,l={push:b,drain:Ni,saturated:Ni,pause:f,paused:!1,get concurrency(){return n},set concurrency(M){if(!(M>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(n=M,!l.paused)for(;i&&a<n;)a++,I()},running:u,resume:h,idle:m,length:p,getQueue:d,unshift:T,empty:Ni,kill:F,killAndDrain:N,error:j,abort:$};return l;function u(){return a}function f(){l.paused=!0}function p(){for(var M=i,k=0;M;)M=M.next,k++;return k}function d(){for(var M=i,k=[];M;)k.push(M.value),M=M.next;return k}function h(){if(l.paused){if(l.paused=!1,i===null){a++,I();return}for(;i&&a<n;)a++,I()}}function m(){return a===0&&l.length()===0}function b(M,k){var U=r.get();U.context=e,U.release=I,U.value=M,U.callback=k||Ni,U.errorHandler=c,a>=n||l.paused?o?(o.next=U,o=U):(i=U,o=U,l.saturated()):(a++,t.call(e,U.value,U.worked))}function T(M,k){var U=r.get();U.context=e,U.release=I,U.value=M,U.callback=k||Ni,U.errorHandler=c,a>=n||l.paused?i?(U.next=i,i=U):(i=U,o=U,l.saturated()):(a++,t.call(e,U.value,U.worked))}function I(M){M&&r.release(M);var k=i;k&&a<=n?l.paused?a--:(o===i&&(o=null),i=k.next,k.next=null,t.call(e,k.value,k.worked),o===null&&l.empty()):--a===0&&l.drain()}function F(){i=null,o=null,l.drain=Ni}function N(){i=null,o=null,l.drain(),l.drain=Ni}function $(){var M=i;for(i=null,o=null;M;){var k=M.next,U=M.callback,R=M.errorHandler,se=M.value,G=M.context;M.value=null,M.callback=Ni,M.errorHandler=null,R&&R(new Error("abort"),se),U.call(G,new Error("abort")),M.release(M),M=k}l.drain=Ni}function j(M){c=M}}s(Vie,"fastqueue");function Ni(){}s(Ni,"noop");function uKe(){this.value=null,this.callback=Ni,this.next=null,this.release=Ni,this.context=null,this.errorHandler=null;var e=this;this.worked=s(function(n,r){var i=e.callback,o=e.errorHandler,a=e.value;e.value=null,e.callback=Ni,e.errorHandler&&o(n,a),i.call(e.context,n,r),e.release(e)},"worked")}s(uKe,"Task");function fKe(e,t,n){typeof e=="function"&&(n=t,t=e,e=null);function r(f,p){t.call(this,f).then(function(d){p(null,d)},p)}s(r,"asyncWrapper");var i=Vie(e,r,n),o=i.push,a=i.unshift;return i.push=c,i.unshift=l,i.drained=u,i;function c(f){var p=new Promise(function(d,h){o(f,function(m,b){if(m){h(m);return}d(b)})});return p.catch(Ni),p}s(c,"push");function l(f){var p=new Promise(function(d,h){a(f,function(m,b){if(m){h(m);return}d(b)})});return p.catch(Ni),p}s(l,"unshift");function u(){var f=new Promise(function(p){process.nextTick(function(){if(i.idle())p();else{var d=i.drain;i.drain=function(){typeof d=="function"&&d(),p(),i.drain=d}}})});return f}s(u,"drained")}s(fKe,"queueAsPromised");Ej.exports=Vie;Ej.exports.promise=fKe});var $P=y(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.joinPathSegments=bo.replacePathSegmentSeparator=bo.isAppliedFilter=bo.isFatalError=void 0;function pKe(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}s(pKe,"isFatalError");bo.isFatalError=pKe;function dKe(e,t){return e===null||e(t)}s(dKe,"isAppliedFilter");bo.isAppliedFilter=dKe;function hKe(e,t){return e.split(/[/\\]/).join(t)}s(hKe,"replacePathSegmentSeparator");bo.replacePathSegmentSeparator=hKe;function gKe(e,t,n){return e===""?t:e.endsWith(n)?e+t:e+n+t}s(gKe,"joinPathSegments");bo.joinPathSegments=gKe});var Oj=y(Aj=>{"use strict";Object.defineProperty(Aj,"__esModule",{value:!0});var mKe=$P(),xj=class xj{constructor(t,n){this._root=t,this._settings=n,this._root=mKe.replacePathSegmentSeparator(t,n.pathSegmentSeparator)}};s(xj,"Reader");var Pj=xj;Aj.default=Pj});var wj=y(_j=>{"use strict";Object.defineProperty(_j,"__esModule",{value:!0});var yKe=require("events"),bKe=DP(),vKe=qie(),kP=$P(),TKe=Oj(),Cj=class Cj extends TKe.default{constructor(t,n){super(t,n),this._settings=n,this._scandir=bKe.scandir,this._emitter=new yKe.EventEmitter,this._queue=vKe(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,n){let r={directory:t,base:n};this._queue.push(r,i=>{i!==null&&this._handleError(i)})}_worker(t,n){this._scandir(t.directory,this._settings.fsScandirSettings,(r,i)=>{if(r!==null){n(r,void 0);return}for(let o of i)this._handleEntry(o,t.base);n(null,void 0)})}_handleError(t){this._isDestroyed||!kP.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,n){if(this._isDestroyed||this._isFatalError)return;let r=t.path;n!==void 0&&(t.path=kP.joinPathSegments(n,t.name,this._settings.pathSegmentSeparator)),kP.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&kP.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(r,n===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};s(Cj,"AsyncReader");var Ij=Cj;_j.default=Ij});var Uie=y(Rj=>{"use strict";Object.defineProperty(Rj,"__esModule",{value:!0});var SKe=wj(),Fj=class Fj{constructor(t,n){this._root=t,this._settings=n,this._reader=new SKe.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(n=>{EKe(t,n)}),this._reader.onEntry(n=>{this._storage.push(n)}),this._reader.onEnd(()=>{PKe(t,this._storage)}),this._reader.read()}};s(Fj,"AsyncProvider");var Nj=Fj;Rj.default=Nj;function EKe(e,t){e(t)}s(EKe,"callFailureCallback");function PKe(e,t){e(null,t)}s(PKe,"callSuccessCallback")});var Bie=y(jj=>{"use strict";Object.defineProperty(jj,"__esModule",{value:!0});var AKe=require("stream"),xKe=wj(),Dj=class Dj{constructor(t,n){this._root=t,this._settings=n,this._reader=new xKe.default(this._root,this._settings),this._stream=new AKe.Readable({objectMode:!0,read:s(()=>{},"read"),destroy:s(()=>{this._reader.isDestroyed||this._reader.destroy()},"destroy")})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};s(Dj,"StreamProvider");var Lj=Dj;jj.default=Lj});var Gie=y(kj=>{"use strict";Object.defineProperty(kj,"__esModule",{value:!0});var OKe=DP(),MP=$P(),IKe=Oj(),Mj=class Mj extends IKe.default{constructor(){super(...arguments),this._scandir=OKe.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,n){this._queue.add({directory:t,base:n})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,n){try{let r=this._scandir(t,this._settings.fsScandirSettings);for(let i of r)this._handleEntry(i,n)}catch(r){this._handleError(r)}}_handleError(t){if(MP.isFatalError(this._settings,t))throw t}_handleEntry(t,n){let r=t.path;n!==void 0&&(t.path=MP.joinPathSegments(n,t.name,this._settings.pathSegmentSeparator)),MP.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&MP.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(r,n===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};s(Mj,"SyncReader");var $j=Mj;kj.default=$j});var Hie=y(qj=>{"use strict";Object.defineProperty(qj,"__esModule",{value:!0});var _Ke=Gie(),Uj=class Uj{constructor(t,n){this._root=t,this._settings=n,this._reader=new _Ke.default(this._root,this._settings)}read(){return this._reader.read()}};s(Uj,"SyncProvider");var Vj=Uj;qj.default=Vj});var Wie=y(Gj=>{"use strict";Object.defineProperty(Gj,"__esModule",{value:!0});var CKe=require("path"),wKe=DP(),Hj=class Hj{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,CKe.sep),this.fsScandirSettings=new wKe.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,n){return t??n}};s(Hj,"Settings");var Bj=Hj;Gj.default=Bj});var qP=y(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.Settings=vo.walkStream=vo.walkSync=vo.walk=void 0;var Kie=Uie(),NKe=Bie(),RKe=Hie(),Wj=Wie();vo.Settings=Wj.default;function FKe(e,t,n){if(typeof t=="function"){new Kie.default(e,VP()).read(t);return}new Kie.default(e,VP(t)).read(n)}s(FKe,"walk");vo.walk=FKe;function LKe(e,t){let n=VP(t);return new RKe.default(e,n).read()}s(LKe,"walkSync");vo.walkSync=LKe;function jKe(e,t){let n=VP(t);return new NKe.default(e,n).read()}s(jKe,"walkStream");vo.walkStream=jKe;function VP(e={}){return e instanceof Wj.default?e:new Wj.default(e)}s(VP,"getSettings")});var UP=y(Jj=>{"use strict";Object.defineProperty(Jj,"__esModule",{value:!0});var DKe=require("path"),$Ke=Ou(),Jie=fa(),Yj=class Yj{constructor(t){this._settings=t,this._fsStatSettings=new $Ke.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return DKe.resolve(this._settings.cwd,t)}_makeEntry(t,n){let r={name:n,path:n,dirent:Jie.fs.createDirentFromStats(n,t)};return this._settings.stats&&(r.stats=t),r}_isFatalError(t){return!Jie.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};s(Yj,"Reader");var Kj=Yj;Jj.default=Kj});var Zj=y(zj=>{"use strict";Object.defineProperty(zj,"__esModule",{value:!0});var kKe=require("stream"),MKe=Ou(),VKe=qP(),qKe=UP(),Qj=class Qj extends qKe.default{constructor(){super(...arguments),this._walkStream=VKe.walkStream,this._stat=MKe.stat}dynamic(t,n){return this._walkStream(t,n)}static(t,n){let r=t.map(this._getFullEntryPath,this),i=new kKe.PassThrough({objectMode:!0});i._write=(o,a,c)=>this._getEntry(r[o],t[o],n).then(l=>{l!==null&&n.entryFilter(l)&&i.push(l),o===r.length-1&&i.end(),c()}).catch(c);for(let o=0;o<r.length;o++)i.write(o);return i}_getEntry(t,n,r){return this._getStat(t).then(i=>this._makeEntry(i,n)).catch(i=>{if(r.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((n,r)=>{this._stat(t,this._fsStatSettings,(i,o)=>i===null?n(o):r(i))})}};s(Qj,"ReaderStream");var Xj=Qj;zj.default=Xj});var Yie=y(tD=>{"use strict";Object.defineProperty(tD,"__esModule",{value:!0});var UKe=qP(),BKe=UP(),GKe=Zj(),nD=class nD extends BKe.default{constructor(){super(...arguments),this._walkAsync=UKe.walk,this._readerStream=new GKe.default(this._settings)}dynamic(t,n){return new Promise((r,i)=>{this._walkAsync(t,n,(o,a)=>{o===null?r(a):i(o)})})}async static(t,n){let r=[],i=this._readerStream.static(t,n);return new Promise((o,a)=>{i.once("error",a),i.on("data",c=>r.push(c)),i.once("end",()=>o(r))})}};s(nD,"ReaderAsync");var eD=nD;tD.default=eD});var Xie=y(iD=>{"use strict";Object.defineProperty(iD,"__esModule",{value:!0});var Ty=fa(),sD=class sD{constructor(t,n,r){this._patterns=t,this._settings=n,this._micromatchOptions=r,this._storage=[],this._fillStorage()}_fillStorage(){for(let t of this._patterns){let n=this._getPatternSegments(t),r=this._splitSegmentsIntoSections(n);this._storage.push({complete:r.length<=1,pattern:t,segments:n,sections:r})}}_getPatternSegments(t){return Ty.pattern.getPatternParts(t,this._micromatchOptions).map(r=>Ty.pattern.isDynamicPattern(r,this._settings)?{dynamic:!0,pattern:r,patternRe:Ty.pattern.makeRe(r,this._micromatchOptions)}:{dynamic:!1,pattern:r})}_splitSegmentsIntoSections(t){return Ty.array.splitWhen(t,n=>n.dynamic&&Ty.pattern.hasGlobStar(n.pattern))}};s(sD,"Matcher");var rD=sD;iD.default=rD});var zie=y(aD=>{"use strict";Object.defineProperty(aD,"__esModule",{value:!0});var HKe=Xie(),cD=class cD extends HKe.default{match(t){let n=t.split("/"),r=n.length,i=this._storage.filter(o=>!o.complete||o.segments.length>r);for(let o of i){let a=o.sections[0];if(!o.complete&&r>a.length||n.every((l,u)=>{let f=o.segments[u];return!!(f.dynamic&&f.patternRe.test(l)||!f.dynamic&&f.pattern===l)}))return!0}return!1}};s(cD,"PartialMatcher");var oD=cD;aD.default=oD});var Qie=y(uD=>{"use strict";Object.defineProperty(uD,"__esModule",{value:!0});var BP=fa(),WKe=zie(),fD=class fD{constructor(t,n){this._settings=t,this._micromatchOptions=n}getFilter(t,n,r){let i=this._getMatcher(n),o=this._getNegativePatternsRe(r);return a=>this._filter(t,a,i,o)}_getMatcher(t){return new WKe.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let n=t.filter(BP.pattern.isAffectDepthOfReadingPattern);return BP.pattern.convertPatternsToRe(n,this._micromatchOptions)}_filter(t,n,r,i){if(this._isSkippedByDeep(t,n.path)||this._isSkippedSymbolicLink(n))return!1;let o=BP.path.removeLeadingDotSegment(n.path);return this._isSkippedByPositivePatterns(o,r)?!1:this._isSkippedByNegativePatterns(o,i)}_isSkippedByDeep(t,n){return this._settings.deep===1/0?!1:this._getEntryLevel(t,n)>=this._settings.deep}_getEntryLevel(t,n){let r=n.split("/").length;if(t==="")return r;let i=t.split("/").length;return r-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,n){return!this._settings.baseNameMatch&&!n.match(t)}_isSkippedByNegativePatterns(t,n){return!BP.pattern.matchAny(t,n)}};s(fD,"DeepFilter");var lD=fD;uD.default=lD});var Zie=y(dD=>{"use strict";Object.defineProperty(dD,"__esModule",{value:!0});var qc=fa(),hD=class hD{constructor(t,n){this._settings=t,this._micromatchOptions=n,this.index=new Map}getFilter(t,n){let[r,i]=qc.pattern.partitionAbsoluteAndRelative(n),o={positive:{all:qc.pattern.convertPatternsToRe(t,this._micromatchOptions)},negative:{absolute:qc.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:qc.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return a=>this._filter(a,o)}_filter(t,n){let r=qc.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(r)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t))return!1;let i=this._isMatchToPatternsSet(r,n,t.dirent.isDirectory());return this._settings.unique&&i&&this._createIndexRecord(r),i}_isDuplicateEntry(t){return this.index.has(t)}_createIndexRecord(t){this.index.set(t,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isMatchToPatternsSet(t,n,r){return!(!this._isMatchToPatterns(t,n.positive.all,r)||this._isMatchToPatterns(t,n.negative.relative,r)||this._isMatchToAbsoluteNegative(t,n.negative.absolute,r))}_isMatchToAbsoluteNegative(t,n,r){if(n.length===0)return!1;let i=qc.path.makeAbsolute(this._settings.cwd,t);return this._isMatchToPatterns(i,n,r)}_isMatchToPatterns(t,n,r){if(n.length===0)return!1;let i=qc.pattern.matchAny(t,n);return!i&&r?qc.pattern.matchAny(t+"/",n):i}};s(hD,"EntryFilter");var pD=hD;dD.default=pD});var ese=y(mD=>{"use strict";Object.defineProperty(mD,"__esModule",{value:!0});var KKe=fa(),yD=class yD{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return KKe.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};s(yD,"ErrorFilter");var gD=yD;mD.default=gD});var nse=y(vD=>{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});var tse=fa(),TD=class TD{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let n=t.path;return this._settings.absolute&&(n=tse.path.makeAbsolute(this._settings.cwd,n),n=tse.path.unixify(n)),this._settings.markDirectories&&t.dirent.isDirectory()&&(n+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:n}):n}};s(TD,"EntryTransformer");var bD=TD;vD.default=bD});var GP=y(ED=>{"use strict";Object.defineProperty(ED,"__esModule",{value:!0});var JKe=require("path"),YKe=Qie(),XKe=Zie(),zKe=ese(),QKe=nse(),PD=class PD{constructor(t){this._settings=t,this.errorFilter=new zKe.default(this._settings),this.entryFilter=new XKe.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new YKe.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new QKe.default(this._settings)}_getRootDirectory(t){return JKe.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let n=t.base==="."?"":t.base;return{basePath:n,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(n,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};s(PD,"Provider");var SD=PD;ED.default=SD});var rse=y(xD=>{"use strict";Object.defineProperty(xD,"__esModule",{value:!0});var ZKe=Yie(),e4e=GP(),OD=class OD extends e4e.default{constructor(){super(...arguments),this._reader=new ZKe.default(this._settings)}async read(t){let n=this._getRootDirectory(t),r=this._getReaderOptions(t);return(await this.api(n,t,r)).map(o=>r.transform(o))}api(t,n,r){return n.dynamic?this._reader.dynamic(t,r):this._reader.static(n.patterns,r)}};s(OD,"ProviderAsync");var AD=OD;xD.default=AD});var ise=y(_D=>{"use strict";Object.defineProperty(_D,"__esModule",{value:!0});var t4e=require("stream"),n4e=Zj(),r4e=GP(),CD=class CD extends r4e.default{constructor(){super(...arguments),this._reader=new n4e.default(this._settings)}read(t){let n=this._getRootDirectory(t),r=this._getReaderOptions(t),i=this.api(n,t,r),o=new t4e.Readable({objectMode:!0,read:s(()=>{},"read")});return i.once("error",a=>o.emit("error",a)).on("data",a=>o.emit("data",r.transform(a))).once("end",()=>o.emit("end")),o.once("close",()=>i.destroy()),o}api(t,n,r){return n.dynamic?this._reader.dynamic(t,r):this._reader.static(n.patterns,r)}};s(CD,"ProviderStream");var ID=CD;_D.default=ID});var sse=y(ND=>{"use strict";Object.defineProperty(ND,"__esModule",{value:!0});var i4e=Ou(),s4e=qP(),o4e=UP(),RD=class RD extends o4e.default{constructor(){super(...arguments),this._walkSync=s4e.walkSync,this._statSync=i4e.statSync}dynamic(t,n){return this._walkSync(t,n)}static(t,n){let r=[];for(let i of t){let o=this._getFullEntryPath(i),a=this._getEntry(o,i,n);a===null||!n.entryFilter(a)||r.push(a)}return r}_getEntry(t,n,r){try{let i=this._getStat(t);return this._makeEntry(i,n)}catch(i){if(r.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};s(RD,"ReaderSync");var wD=RD;ND.default=wD});var ose=y(LD=>{"use strict";Object.defineProperty(LD,"__esModule",{value:!0});var a4e=sse(),c4e=GP(),jD=class jD extends c4e.default{constructor(){super(...arguments),this._reader=new a4e.default(this._settings)}read(t){let n=this._getRootDirectory(t),r=this._getReaderOptions(t);return this.api(n,t,r).map(r.transform)}api(t,n,r){return n.dynamic?this._reader.dynamic(t,r):this._reader.static(n.patterns,r)}};s(jD,"ProviderSync");var FD=jD;LD.default=FD});var ase=y(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var od=require("fs"),l4e=require("os"),u4e=Math.max(l4e.cpus().length,1);ad.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:od.lstat,lstatSync:od.lstatSync,stat:od.stat,statSync:od.statSync,readdir:od.readdir,readdirSync:od.readdirSync};var $D=class $D{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,u4e),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(t,n){return t===void 0?n:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},ad.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};s($D,"Settings");var DD=$D;ad.default=DD});var qD=y((qxt,lse)=>{"use strict";var cse=lie(),f4e=rse(),p4e=ise(),d4e=ose(),kD=ase(),bs=fa();async function MD(e,t){Gs(e);let n=VD(e,f4e.default,t),r=await Promise.all(n);return bs.array.flatten(r)}s(MD,"FastGlob");(function(e){e.glob=e,e.globSync=t,e.globStream=n,e.async=e;function t(u,f){Gs(u);let p=VD(u,d4e.default,f);return bs.array.flatten(p)}s(t,"sync"),e.sync=t;function n(u,f){Gs(u);let p=VD(u,p4e.default,f);return bs.stream.merge(p)}s(n,"stream"),e.stream=n;function r(u,f){Gs(u);let p=[].concat(u),d=new kD.default(f);return cse.generate(p,d)}s(r,"generateTasks"),e.generateTasks=r;function i(u,f){Gs(u);let p=new kD.default(f);return bs.pattern.isDynamicPattern(u,p)}s(i,"isDynamicPattern"),e.isDynamicPattern=i;function o(u){return Gs(u),bs.path.escape(u)}s(o,"escapePath"),e.escapePath=o;function a(u){return Gs(u),bs.path.convertPathToPattern(u)}s(a,"convertPathToPattern"),e.convertPathToPattern=a;let c;(function(u){function f(d){return Gs(d),bs.path.escapePosixPath(d)}s(f,"escapePath"),u.escapePath=f;function p(d){return Gs(d),bs.path.convertPosixPathToPattern(d)}s(p,"convertPathToPattern"),u.convertPathToPattern=p})(c=e.posix||(e.posix={}));let l;(function(u){function f(d){return Gs(d),bs.path.escapeWindowsPath(d)}s(f,"escapePath"),u.escapePath=f;function p(d){return Gs(d),bs.path.convertWindowsPathToPattern(d)}s(p,"convertPathToPattern"),u.convertPathToPattern=p})(l=e.win32||(e.win32={}))})(MD||(MD={}));function VD(e,t,n){let r=[].concat(e),i=new kD.default(n),o=cse.generate(r,i),a=new t(i);return o.map(a.read,a)}s(VD,"getWorks");function Gs(e){if(![].concat(e).every(r=>bs.string.isString(r)&&!bs.string.isEmpty(r)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}s(Gs,"assertPatternsInput");lse.exports=MD});var fse=y(Iu=>{"use strict";var{promisify:h4e}=require("util"),use=require("fs");async function UD(e,t,n){if(typeof n!="string")throw new TypeError(`Expected a string, got ${typeof n}`);try{return(await h4e(use[e])(n))[t]()}catch(r){if(r.code==="ENOENT")return!1;throw r}}s(UD,"isType");function BD(e,t,n){if(typeof n!="string")throw new TypeError(`Expected a string, got ${typeof n}`);try{return use[e](n)[t]()}catch(r){if(r.code==="ENOENT")return!1;throw r}}s(BD,"isTypeSync");Iu.isFile=UD.bind(null,"stat","isFile");Iu.isDirectory=UD.bind(null,"stat","isDirectory");Iu.isSymlink=UD.bind(null,"lstat","isSymbolicLink");Iu.isFileSync=BD.bind(null,"statSync","isFile");Iu.isDirectorySync=BD.bind(null,"statSync","isDirectory");Iu.isSymlinkSync=BD.bind(null,"lstatSync","isSymbolicLink")});var mse=y((Hxt,GD)=>{"use strict";var _u=require("path"),pse=fse(),dse=s(e=>e.length>1?`{${e.join(",")}}`:e[0],"getExtensions"),hse=s((e,t)=>{let n=e[0]==="!"?e.slice(1):e;return _u.isAbsolute(n)?n:_u.join(t,n)},"getPath"),g4e=s((e,t)=>_u.extname(e)?`**/${e}`:`**/${e}.${dse(t)}`,"addExtensions"),gse=s((e,t)=>{if(t.files&&!Array.isArray(t.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof t.files}\``);if(t.extensions&&!Array.isArray(t.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof t.extensions}\``);return t.files&&t.extensions?t.files.map(n=>_u.posix.join(e,g4e(n,t.extensions))):t.files?t.files.map(n=>_u.posix.join(e,`**/${n}`)):t.extensions?[_u.posix.join(e,`**/*.${dse(t.extensions)}`)]:[_u.posix.join(e,"**")]},"getGlob");GD.exports=async(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let n=await Promise.all([].concat(e).map(async r=>await pse.isDirectory(hse(r,t.cwd))?gse(r,t):r));return[].concat.apply([],n)};GD.exports.sync=(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let n=[].concat(e).map(r=>pse.isDirectorySync(hse(r,t.cwd))?gse(r,t):r);return[].concat.apply([],n)}});var xse=y((Kxt,Ase)=>{function yse(e){return Array.isArray(e)?e:[e]}s(yse,"makeArray");var KD="",bse=" ",HD="\\",m4e=/^\s+$/,y4e=/(?:[^\\]|^)\\$/,b4e=/^\\!/,v4e=/^\\#/,T4e=/\r?\n/g,S4e=/^\.*\/|^\.+$/,WD="/",Sse="node-ignore";typeof Symbol<"u"&&(Sse=Symbol.for("node-ignore"));var vse=Sse,E4e=s((e,t,n)=>Object.defineProperty(e,t,{value:n}),"define"),P4e=/([0-z])-([0-z])/g,Ese=s(()=>!1,"RETURN_FALSE"),A4e=s(e=>e.replace(P4e,(t,n,r)=>n.charCodeAt(0)<=r.charCodeAt(0)?t:KD),"sanitizeRange"),x4e=s(e=>{let{length:t}=e;return e.slice(0,t-t%2)},"cleanRangeBackSlash"),O4e=[[/^\uFEFF/,()=>KD],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,n)=>t+(n.indexOf("\\")===0?bse:KD)],[/(\\+?)\s/g,(e,t)=>{let{length:n}=t;return t.slice(0,n-n%2)+bse}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,s(function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"},"startingReplacer")],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6<n.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,n)=>{let r=n.replace(/\\\*/g,"[^\\/]*");return t+r}],[/\\\\\\(?=[$.|*+(){^])/g,()=>HD],[/\\\\/g,()=>HD],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,r,i)=>t===HD?`\\[${n}${x4e(r)}${i}`:i==="]"&&r.length%2===0?`[${A4e(n)}${r}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Tse=Object.create(null),I4e=s((e,t)=>{let n=Tse[e];return n||(n=O4e.reduce((r,[i,o])=>r.replace(i,o.bind(e)),e),Tse[e]=n),t?new RegExp(n,"i"):new RegExp(n)},"makeRegex"),XD=s(e=>typeof e=="string","isString"),_4e=s(e=>e&&XD(e)&&!m4e.test(e)&&!y4e.test(e)&&e.indexOf("#")!==0,"checkPattern"),C4e=s(e=>e.split(T4e),"splitPattern"),zD=class zD{constructor(t,n,r,i){this.origin=t,this.pattern=n,this.negative=r,this.regex=i}};s(zD,"IgnoreRule");var JD=zD,w4e=s((e,t)=>{let n=e,r=!1;e.indexOf("!")===0&&(r=!0,e=e.substr(1)),e=e.replace(b4e,"!").replace(v4e,"#");let i=I4e(e,t);return new JD(n,e,r,i)},"createRule"),N4e=s((e,t)=>{throw new t(e)},"throwError"),pa=s((e,t,n)=>XD(e)?e?pa.isNotRelative(e)?n(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:n("path must not be empty",TypeError):n(`path must be a string, but got \`${t}\``,TypeError),"checkPath"),Pse=s(e=>S4e.test(e),"isNotRelative");pa.isNotRelative=Pse;pa.convert=e=>e;var QD=class QD{constructor({ignorecase:t=!0,ignoreCase:n=t,allowRelativePaths:r=!1}={}){E4e(this,vse,!0),this._rules=[],this._ignoreCase=n,this._allowRelativePaths=r,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[vse]){this._rules=this._rules.concat(t._rules),this._added=!0;return}if(_4e(t)){let n=w4e(t,this._ignoreCase);this._added=!0,this._rules.push(n)}}add(t){return this._added=!1,yse(XD(t)?C4e(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,n){let r=!1,i=!1;return this._rules.forEach(o=>{let{negative:a}=o;if(i===a&&r!==i||a&&!r&&!i&&!n)return;o.regex.test(t)&&(r=!a,i=a)}),{ignored:r,unignored:i}}_test(t,n,r,i){let o=t&&pa.convert(t);return pa(o,t,this._allowRelativePaths?Ese:N4e),this._t(o,n,r,i)}_t(t,n,r,i){if(t in n)return n[t];if(i||(i=t.split(WD)),i.pop(),!i.length)return n[t]=this._testOne(t,r);let o=this._t(i.join(WD)+WD,n,r,i);return n[t]=o.ignored?o:this._testOne(t,r)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return yse(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}};s(QD,"Ignore");var YD=QD,HP=s(e=>new YD(e),"factory"),R4e=s(e=>pa(e&&pa.convert(e),e,Ese),"isPathValid");HP.isPathValid=R4e;HP.default=HP;Ase.exports=HP;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let e=s(n=>/^\\\\\?\\/.test(n)||/["<>|\u0000-\u001F]+/u.test(n)?n:n.replace(/\\/g,"/"),"makePosix");pa.convert=e;let t=/^[a-z]:\//i;pa.isNotRelative=n=>t.test(n)||Pse(n)}});var Ise=y((Yxt,Ose)=>{"use strict";Ose.exports=e=>{let t=/^\\\\\?\\/.test(e),n=/[^\u0000-\u0080]+/.test(e);return t||n?e:e.replace(/\\/g,"/")}});var Lse=y((Xxt,ZD)=>{"use strict";var{promisify:F4e}=require("util"),_se=require("fs"),da=require("path"),Cse=qD(),L4e=xse(),Sy=Ise(),wse=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"],j4e=F4e(_se.readFile),D4e=s(e=>t=>t.startsWith("!")?"!"+da.posix.join(e,t.slice(1)):da.posix.join(e,t),"mapGitIgnorePatternTo"),$4e=s((e,t)=>{let n=Sy(da.relative(t.cwd,da.dirname(t.fileName)));return e.split(/\r?\n/).filter(Boolean).filter(r=>!r.startsWith("#")).map(D4e(n))},"parseGitIgnore"),Nse=s(e=>{let t=L4e();for(let n of e)t.add($4e(n.content,{cwd:n.cwd,fileName:n.filePath}));return t},"reduceIgnore"),k4e=s((e,t)=>{if(e=Sy(e),da.isAbsolute(t)){if(Sy(t).startsWith(e))return t;throw new Error(`Path ${t} is not in cwd ${e}`)}return da.join(e,t)},"ensureAbsolutePathForCwd"),Rse=s((e,t)=>n=>e.ignores(Sy(da.relative(t,k4e(t,n.path||n)))),"getIsIgnoredPredecate"),M4e=s(async(e,t)=>{let n=da.join(t,e),r=await j4e(n,"utf8");return{cwd:t,filePath:n,content:r}},"getFile"),V4e=s((e,t)=>{let n=da.join(t,e),r=_se.readFileSync(n,"utf8");return{cwd:t,filePath:n,content:r}},"getFileSync"),Fse=s(({ignore:e=[],cwd:t=Sy(process.cwd())}={})=>({ignore:e,cwd:t}),"normalizeOptions");ZD.exports=async e=>{e=Fse(e);let t=await Cse("**/.gitignore",{ignore:wse.concat(e.ignore),cwd:e.cwd}),n=await Promise.all(t.map(i=>M4e(i,e.cwd))),r=Nse(n);return Rse(r,e.cwd)};ZD.exports.sync=e=>{e=Fse(e);let n=Cse.sync("**/.gitignore",{ignore:wse.concat(e.ignore),cwd:e.cwd}).map(i=>V4e(i,e.cwd)),r=Nse(n);return Rse(r,e.cwd)}});var Dse=y((Qxt,jse)=>{"use strict";var{Transform:q4e}=require("stream"),n$=class n$ extends q4e{constructor(){super({objectMode:!0})}};s(n$,"ObjectTransform");var WP=n$,r$=class r$ extends WP{constructor(t){super(),this._filter=t}_transform(t,n,r){this._filter(t)&&this.push(t),r()}};s(r$,"FilterStream");var e$=r$,i$=class i$ extends WP{constructor(){super(),this._pushed=new Set}_transform(t,n,r){this._pushed.has(t)||(this.push(t),this._pushed.add(t)),r()}};s(i$,"UniqueStream");var t$=i$;jse.exports={FilterStream:e$,UniqueStream:t$}});var ha=y((eOt,Cu)=>{"use strict";var kse=require("fs"),KP=wL(),U4e=NL(),JP=qD(),YP=mse(),s$=Lse(),{FilterStream:B4e,UniqueStream:G4e}=Dse(),Mse=s(()=>!1,"DEFAULT_FILTER"),$se=s(e=>e[0]==="!","isNegative"),H4e=s(e=>{if(!e.every(t=>typeof t=="string"))throw new TypeError("Patterns must be a string or an array of strings")},"assertPatternsInput"),W4e=s((e={})=>{if(!e.cwd)return;let t;try{t=kse.statSync(e.cwd)}catch{return}if(!t.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},"checkCwdOption"),K4e=s(e=>e.stats instanceof kse.Stats?e.path:e,"getPathString"),XP=s((e,t)=>{e=KP([].concat(e)),H4e(e),W4e(t);let n=[];t={ignore:[],expandDirectories:!0,...t};for(let[r,i]of e.entries()){if($se(i))continue;let o=e.slice(r).filter(c=>$se(c)).map(c=>c.slice(1)),a={...t,ignore:t.ignore.concat(o)};n.push({pattern:i,options:a})}return n},"generateGlobTasks"),J4e=s((e,t)=>{let n={};return e.options.cwd&&(n.cwd=e.options.cwd),Array.isArray(e.options.expandDirectories)?n={...n,files:e.options.expandDirectories}:typeof e.options.expandDirectories=="object"&&(n={...n,...e.options.expandDirectories}),t(e.pattern,n)},"globDirs"),o$=s((e,t)=>e.options.expandDirectories?J4e(e,t):[e.pattern],"getPattern"),Vse=s(e=>e&&e.gitignore?s$.sync({cwd:e.cwd,ignore:e.ignore}):Mse,"getFilterSync"),a$=s(e=>t=>{let{options:n}=e;return n.ignore&&Array.isArray(n.ignore)&&n.expandDirectories&&(n.ignore=YP.sync(n.ignore)),{pattern:t,options:n}},"globToTask");Cu.exports=async(e,t)=>{let n=XP(e,t),r=s(async()=>t&&t.gitignore?s$({cwd:t.cwd,ignore:t.ignore}):Mse,"getFilter"),i=s(async()=>{let l=await Promise.all(n.map(async u=>{let f=await o$(u,YP);return Promise.all(f.map(a$(u)))}));return KP(...l)},"getTasks"),[o,a]=await Promise.all([r(),i()]),c=await Promise.all(a.map(l=>JP(l.pattern,l.options)));return KP(...c).filter(l=>!o(K4e(l)))};Cu.exports.sync=(e,t)=>{let n=XP(e,t),r=[];for(let a of n){let c=o$(a,YP.sync).map(a$(a));r.push(...c)}let i=Vse(t),o=[];for(let a of r)o=KP(o,JP.sync(a.pattern,a.options));return o.filter(a=>!i(a))};Cu.exports.stream=(e,t)=>{let n=XP(e,t),r=[];for(let c of n){let l=o$(c,YP.sync).map(a$(c));r.push(...l)}let i=Vse(t),o=new B4e(c=>!i(c)),a=new G4e;return U4e(r.map(c=>JP.stream(c.pattern,c.options))).pipe(o).pipe(a)};Cu.exports.generateGlobTasks=XP;Cu.exports.hasMagic=(e,t)=>[].concat(e).some(n=>JP.isDynamicPattern(n,t));Cu.exports.gitignore=s$});var Use=y((nOt,qse)=>{qse.exports=function(e,t){for(var n=[],r=0;r<e.length;r++){var i=t(e[r],r);Y4e(i)?n.push.apply(n,i):n.push(i)}return n};var Y4e=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}});var c$=y((rOt,Wse)=>{"use strict";Wse.exports=Gse;function Gse(e,t,n){e instanceof RegExp&&(e=Bse(e,n)),t instanceof RegExp&&(t=Bse(t,n));var r=Hse(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}s(Gse,"balanced");function Bse(e,t){var n=t.match(e);return n?n[0]:null}s(Bse,"maybeMatch");Gse.range=Hse;function Hse(e,t,n){var r,i,o,a,c,l=n.indexOf(e),u=n.indexOf(t,l+1),f=l;if(l>=0&&u>0){if(e===t)return[l,u];for(r=[],o=n.length;f>=0&&!c;)f==l?(r.push(f),l=n.indexOf(e,f+1)):r.length==1?c=[r.pop(),u]:(i=r.pop(),i<o&&(o=i,a=u),u=n.indexOf(t,f+1)),f=l<u&&l>=0?l:u;r.length&&(c=[o,a])}return c}s(Hse,"range")});var eoe=y((sOt,Zse)=>{var X4e=Use(),Kse=c$();Zse.exports=Z4e;var Jse="\0SLASH"+Math.random()+"\0",Yse="\0OPEN"+Math.random()+"\0",u$="\0CLOSE"+Math.random()+"\0",Xse="\0COMMA"+Math.random()+"\0",zse="\0PERIOD"+Math.random()+"\0";function l$(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}s(l$,"numeric");function z4e(e){return e.split("\\\\").join(Jse).split("\\{").join(Yse).split("\\}").join(u$).split("\\,").join(Xse).split("\\.").join(zse)}s(z4e,"escapeBraces");function Q4e(e){return e.split(Jse).join("\\").split(Yse).join("{").split(u$).join("}").split(Xse).join(",").split(zse).join(".")}s(Q4e,"unescapeBraces");function Qse(e){if(!e)return[""];var t=[],n=Kse("{","}",e);if(!n)return e.split(",");var r=n.pre,i=n.body,o=n.post,a=r.split(",");a[a.length-1]+="{"+i+"}";var c=Qse(o);return o.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),t.push.apply(t,a),t}s(Qse,"parseCommaParts");function Z4e(e,t){if(!e)return[];t=t||{};var n=t.max==null?1/0:t.max;return e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),cd(z4e(e),n,!0).map(Q4e)}s(Z4e,"expandTop");function eJe(e){return"{"+e+"}"}s(eJe,"embrace");function tJe(e){return/^-?0\d/.test(e)}s(tJe,"isPadded");function nJe(e,t){return e<=t}s(nJe,"lte");function rJe(e,t){return e>=t}s(rJe,"gte");function cd(e,t,n){var r=[],i=Kse("{","}",e);if(!i||/\$$/.test(i.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),c=o||a,l=i.body.indexOf(",")>=0;if(!c&&!l)return i.post.match(/,(?!,).*\}/)?(e=i.pre+"{"+i.body+u$+i.post,cd(e,t,!0)):[e];var u;if(c)u=i.body.split(/\.\./);else if(u=Qse(i.body),u.length===1&&(u=cd(u[0],t,!1).map(eJe),u.length===1)){var p=i.post.length?cd(i.post,t,!1):[""];return p.map(function(Te){return i.pre+u[0]+Te})}var f=i.pre,p=i.post.length?cd(i.post,t,!1):[""],d;if(c){var h=l$(u[0]),m=l$(u[1]),b=Math.max(u[0].length,u[1].length),T=u.length==3?Math.max(Math.abs(l$(u[2])),1):1,I=nJe,F=m<h;F&&(T*=-1,I=rJe);var N=u.some(tJe);d=[];for(var $=h;I($,m)&&d.length<t;$+=T){var j;if(a)j=String.fromCharCode($),j==="\\"&&(j="");else if(j=String($),N){var M=b-j.length;if(M>0){var k=new Array(M+1).join("0");$<0?j="-"+k+j.slice(1):j=k+j}}d.push(j)}}else d=X4e(u,function(G){return cd(G,t,!1)});for(var U=0;U<d.length;U++)for(var R=0;R<p.length&&r.length<t;R++){var se=f+d[U]+p[R];(!n||c||se)&&r.push(se)}return r}s(cd,"expand")});var d$=y((aOt,soe)=>{soe.exports=Wi;Wi.Minimatch=zn;var Ey=(function(){try{return require("path")}catch{}})()||{sep:"/"};Wi.sep=Ey.sep;var wu=Wi.GLOBSTAR=zn.GLOBSTAR={},iJe=eoe(),toe={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},f$="[^/]",p$=f$+"*?",sJe="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",oJe="(?:(?!(?:\\/|^)\\.).)*?",noe=aJe("().*{}+?[]^$\\!");function aJe(e){return e.split("").reduce(function(t,n){return t[n]=!0,t},{})}s(aJe,"charSet");var roe=/\/+/;Wi.filter=cJe;function cJe(e,t){return t=t||{},function(n,r,i){return Wi(n,e,t)}}s(cJe,"filter");function Uc(e,t){t=t||{};var n={};return Object.keys(e).forEach(function(r){n[r]=e[r]}),Object.keys(t).forEach(function(r){n[r]=t[r]}),n}s(Uc,"ext");Wi.defaults=function(e){if(!e||typeof e!="object"||!Object.keys(e).length)return Wi;var t=Wi,n=s(function(i,o,a){return t(i,o,Uc(e,a))},"minimatch");return n.Minimatch=s(function(i,o){return new t.Minimatch(i,Uc(e,o))},"Minimatch"),n.Minimatch.defaults=s(function(i){return t.defaults(Uc(e,i)).Minimatch},"defaults"),n.filter=s(function(i,o){return t.filter(i,Uc(e,o))},"filter"),n.defaults=s(function(i){return t.defaults(Uc(e,i))},"defaults"),n.makeRe=s(function(i,o){return t.makeRe(i,Uc(e,o))},"makeRe"),n.braceExpand=s(function(i,o){return t.braceExpand(i,Uc(e,o))},"braceExpand"),n.match=function(r,i,o){return t.match(r,i,Uc(e,o))},n};zn.defaults=function(e){return Wi.defaults(e).Minimatch};function Wi(e,t,n){return QP(t),n||(n={}),!n.nocomment&&t.charAt(0)==="#"?!1:new zn(t,n).match(e)}s(Wi,"minimatch");function zn(e,t){if(!(this instanceof zn))return new zn(e,t);QP(e),t||(t={}),e=e.trim(),!t.allowWindowsEscape&&Ey.sep!=="/"&&(e=e.split(Ey.sep).join("/")),this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion!==void 0?t.maxGlobstarRecursion:200,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}s(zn,"Minimatch");zn.prototype.debug=function(){};zn.prototype.make=lJe;function lJe(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=s(function(){console.error.apply(console,arguments)},"debug")),this.debug(this.pattern,n),n=this.globParts=n.map(function(r){return r.split(roe)}),this.debug(this.pattern,n),n=n.map(function(r,i,o){return r.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(r){return r.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}s(lJe,"make");zn.prototype.parseNegate=uJe;function uJe(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var i=0,o=e.length;i<o&&e.charAt(i)==="!";i++)t=!t,r++;r&&(this.pattern=e.substr(r)),this.negate=t}}s(uJe,"parseNegate");Wi.braceExpand=function(e,t){return ioe(e,t)};zn.prototype.braceExpand=ioe;function ioe(e,t){return t||(this instanceof zn?t=this.options:t={}),e=typeof e>"u"?this.pattern:e,QP(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:iJe(e)}s(ioe,"braceExpand");var fJe=1024*64,QP=s(function(e){if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>fJe)throw new TypeError("pattern is too long")},"assertValidPattern");zn.prototype.parse=pJe;var zP={};function pJe(e,t){QP(e);var n=this.options;if(e==="**")if(n.noglobstar)e="*";else return wu;if(e==="")return"";var r="",i=!!n.nocase,o=!1,a=[],c=[],l,u=!1,f=-1,p=-1,d=e.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",h=this;function m(){if(l){switch(l){case"*":r+=p$,i=!0;break;case"?":r+=f$,i=!0;break;default:r+="\\"+l;break}h.debug("clearStateChar %j %j",l,r),l=!1}}s(m,"clearStateChar");for(var b=0,T=e.length,I;b<T&&(I=e.charAt(b));b++){if(this.debug("%s %s %s %j",e,b,r,I),o&&noe[I]){r+="\\"+I,o=!1;continue}switch(I){case"/":return!1;case"\\":m(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,b,r,I),u){this.debug(" in class"),I==="!"&&b===p+1&&(I="^"),r+=I;continue}if(I==="*"&&l==="*")continue;h.debug("call clearStateChar %j",l),m(),l=I,n.noext&&m();continue;case"(":if(u){r+="(";continue}if(!l){r+="\\(";continue}a.push({type:l,start:b-1,reStart:r.length,open:toe[l].open,close:toe[l].close}),r+=l==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",l,r),l=!1;continue;case")":if(u||!a.length){r+="\\)";continue}m(),i=!0;var F=a.pop();r+=F.close,F.type==="!"&&c.push(F),F.reEnd=r.length;continue;case"|":if(u||!a.length||o){r+="\\|",o=!1;continue}m(),r+="|";continue;case"[":if(m(),u){r+="\\"+I;continue}u=!0,p=b,f=r.length,r+=I;continue;case"]":if(b===p+1||!u){r+="\\"+I,o=!1;continue}var N=e.substring(p+1,b);try{RegExp("["+N+"]")}catch{var $=this.parse(N,zP);r=r.substr(0,f)+"\\["+$[0]+"\\]",i=i||$[1],u=!1;continue}i=!0,u=!1,r+=I;continue;default:m(),o?o=!1:noe[I]&&!(I==="^"&&u)&&(r+="\\"),r+=I}}for(u&&(N=e.substr(p+1),$=this.parse(N,zP),r=r.substr(0,f)+"\\["+$[0],i=i||$[1]),F=a.pop();F;F=a.pop()){var j=r.slice(F.reStart+F.open.length);this.debug("setting tail",r,F),j=j.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(tn,Fe,Oe){return Oe||(Oe="\\"),Fe+Fe+Oe+"|"}),this.debug(`tail=%j
|
|
269
|
-
%s`,j,j,F,r);var M=F.type==="*"?p$:F.type==="?"?f$:"\\"+F.type;i=!0,r=r.slice(0,F.reStart)+M+"\\("+j}m(),o&&(r+="\\\\");var k=!1;switch(r.charAt(0)){case"[":case".":case"(":k=!0}for(var U=c.length-1;U>-1;U--){var R=c[U],se=r.slice(0,R.reStart),G=r.slice(R.reStart,R.reEnd-8),Te=r.slice(R.reEnd-8,R.reEnd),pe=r.slice(R.reEnd);Te+=pe;var ue=se.split("(").length-1,W=pe;for(b=0;b<ue;b++)W=W.replace(/\)[+*?]?/,"");pe=W;var H="";pe===""&&t!==zP&&(H="$");var Ae=se+G+pe+H+Te;r=Ae}if(r!==""&&i&&(r="(?=.)"+r),k&&(r=d+r),t===zP)return[r,i];if(!i)return hJe(e);var Ne=n.nocase?"i":"";try{var Be=new RegExp("^"+r+"$",Ne)}catch{return new RegExp("$.")}return Be._glob=e,Be._src=r,Be}s(pJe,"parse");Wi.makeRe=function(e,t){return new zn(e,t||{}).makeRe()};zn.prototype.makeRe=dJe;function dJe(){if(this.regexp||this.regexp===!1)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,n=t.noglobstar?p$:t.dot?sJe:oJe,r=t.nocase?"i":"",i=e.map(function(o){return o.map(function(a){return a===wu?n:typeof a=="string"?gJe(a):a._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,r)}catch{this.regexp=!1}return this.regexp}s(dJe,"makeRe");Wi.match=function(e,t,n){n=n||{};var r=new zn(t,n);return e=e.filter(function(i){return r.match(i)}),r.options.nonull&&!e.length&&e.push(t),e};zn.prototype.match=s(function(t,n){if(typeof n>"u"&&(n=this.partial),this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&n)return!0;var r=this.options;Ey.sep!=="/"&&(t=t.split(Ey.sep).join("/")),t=t.split(roe),this.debug(this.pattern,"split",t);var i=this.set;this.debug(this.pattern,"set",i);var o,a;for(a=t.length-1;a>=0&&(o=t[a],!o);a--);for(a=0;a<i.length;a++){var c=i[a],l=t;r.matchBase&&c.length===1&&(l=[o]);var u=this.matchOne(l,c,n);if(u)return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate},"match");zn.prototype.matchOne=function(e,t,n){return t.indexOf(wu)!==-1?this._matchGlobstar(e,t,n,0,0):this._matchOne(e,t,n,0,0)};zn.prototype._matchGlobstar=function(e,t,n,r,i){var o,a=-1;for(o=i;o<t.length;o++)if(t[o]===wu){a=o;break}var c=-1;for(o=t.length-1;o>=0;o--)if(t[o]===wu){c=o;break}var l=t.slice(i,a),u=n?t.slice(a+1):t.slice(a+1,c),f=n?[]:t.slice(c+1);if(l.length){var p=e.slice(r,r+l.length);if(!this._matchOne(p,l,n,0,0))return!1;r+=l.length}var d=0;if(f.length){if(f.length+r>e.length)return!1;var h=e.length-f.length;if(this._matchOne(e,f,n,h,0))d=f.length;else{if(e[e.length-1]!==""||r+f.length===e.length||(h--,!this._matchOne(e,f,n,h,0)))return!1;d=f.length+1}}if(!u.length){var m=!!d;for(o=r;o<e.length-d;o++){var b=String(e[o]);if(m=!0,b==="."||b===".."||!this.options.dot&&b.charAt(0)===".")return!1}return n||m}for(var T=[[[],0]],I=T[0],F=0,N=[0],$=0;$<u.length;$++){var j=u[$];j===wu?(N.push(F),I=[[],0],T.push(I)):(I[0].push(j),F++)}for(var M=T.length-1,k=e.length-d,U=0;U<T.length;U++)T[U][1]=k-(N[M--]+T[U][0].length);return!!this._matchGlobStarBodySections(e,T,r,0,n,0,!!d)};zn.prototype._matchGlobStarBodySections=function(e,t,n,r,i,o,a){var c=t[r];if(!c){for(var l=n;l<e.length;l++){a=!0;var u=e[l];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1}return a}for(var f=c[0],p=c[1];n<=p;){var d=this._matchOne(e.slice(0,n+f.length),f,i,n,0);if(d&&o<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(e,t,n+f.length,r+1,i,o+1,a);if(h!==!1)return h}var u=e[n];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1;n++}return i||null};zn.prototype._matchOne=function(e,t,n,r,i){var o,a,c,l;for(o=r,a=i,c=e.length,l=t.length;o<c&&a<l;o++,a++){this.debug("matchOne loop");var u=t[a],f=e[o];if(this.debug(t,u,f),u===!1||u===wu)return!1;var p;if(typeof u=="string"?(p=f===u,this.debug("string match",u,f,p)):(p=f.match(u),this.debug("pattern match",u,f,p)),!p)return!1}if(o===c&&a===l)return!0;if(o===c)return n;if(a===l)return o===c-1&&e[o]==="";throw new Error("wtf?")};function hJe(e){return e.replace(/\\(.)/g,"$1")}s(hJe,"globUnescape");function gJe(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}s(gJe,"regExpEscape")});var aoe=y((lOt,ooe)=>{"use strict";var mJe=s((e,...t)=>{let n=new Set([].concat(...t));return e.filter(r=>!n.has(r))},"arrayDiffer");ooe.exports=mJe});var loe=y((fOt,coe)=>{"use strict";var yJe=s(e=>e==null?[]:Array.isArray(e)?e:typeof e=="string"?[e]:typeof e[Symbol.iterator]=="function"?[...e]:[e],"arrify");coe.exports=yJe});var Nu=y((dOt,foe)=>{"use strict";var bJe=d$(),vJe=wL(),TJe=aoe(),uoe=loe();foe.exports=(e,t,n={})=>{if(e=uoe(e),t=uoe(t),e.length===0||t.length===0)return[];let r=[];for(let i of e)for(let o of t){let a=vJe;o[0]==="!"&&(o=o.slice(1),a=TJe),r=a(r,bJe.match([i],o,n))}return r}});var h$=y((hOt,poe)=>{var SJe=require("path");poe.exports=function(e,t){if(t)var n=t.map(function(i){return SJe.resolve(e,i)});else var n=e;var r=n.slice(1).reduce(function(i,o){if(!o.match(/^([A-Za-z]:)?\/|\\/))throw new Error("relative path without a basedir");for(var a=o.split(/\/+|\\+/),c=0;i[c]===a[c]&&c<Math.min(i.length,a.length);c++);return i.slice(0,c)},n[0].split(/\/+|\\+/));return r.length>1?r.join("/"):"/"}});var ga=y((gOt,doe)=>{doe.exports=function(e,t){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var n=e.length;if(n<=1)return e;var r="";if(n>4&&e[3]==="\\"){var i=e[2];(i==="?"||i===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),r="//")}var o=e.split(/[/\\]+/);return t!==!1&&o[o.length-1]===""&&o.pop(),r+o.join("/")}});var moe=y(Gc=>{"use strict";var EJe=Gc&&Gc.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return s(i,"adopt"),new(n||(n=Promise))(function(o,a){function c(f){try{u(r.next(f))}catch(p){a(p)}}s(c,"fulfilled");function l(f){try{u(r.throw(f))}catch(p){a(p)}}s(l,"rejected");function u(f){f.done?o(f.value):i(f.value).then(c,l)}s(u,"step"),u((r=r.apply(e,t||[])).next())})};Object.defineProperty(Gc,"__esModule",{value:!0});Gc.isBinaryFileSync=Gc.isBinaryFile=void 0;var Bc=require("fs"),y$=require("util"),PJe=y$.promisify(Bc.stat),AJe=y$.promisify(Bc.open),xJe=y$.promisify(Bc.close),Py=512,b$=class b${constructor(t,n){this.fileBuffer=t,this.size=n,this.offset=0,this.error=!1}hasError(){return this.error}nextByte(){return this.offset===this.size||this.hasError()?(this.error=!0,255):this.fileBuffer[this.offset++]}next(t){let n=new Array;for(let r=0;r<t;r++)n[r]=this.nextByte();return n}};s(b$,"Reader");var m$=b$;function g$(e){let t=0,n=0;for(;!e.hasError();){let r=e.nextByte();if(n=n|(r&127)<<7*t,(r&128)===0)break;t++}return n}s(g$,"readProtoVarInt");function OJe(e){switch(g$(e)&7){case 0:return g$(e),!0;case 1:return e.next(8),!0;case 2:let r=g$(e);return e.next(r),!0;case 5:return e.next(4),!0}return!1}s(OJe,"readProtoMessage");function IJe(e,t){let n=new m$(e,t),r=0;for(;;){if(!OJe(n)&&!n.hasError())return!1;if(n.hasError())break;r++}return r>0}s(IJe,"isBinaryProto");function _Je(e,t){return EJe(this,void 0,void 0,function*(){if(hoe(e)){let n=yield PJe(e);goe(n);let r=yield AJe(e,"r"),i=Buffer.alloc(Py);return new Promise((o,a)=>{Bc.read(r,i,0,Py,0,(c,l,u)=>{xJe(r),c?a(c):o(ZP(i,l))})})}else return t===void 0&&(t=e.length),ZP(e,t)})}s(_Je,"isBinaryFile");Gc.isBinaryFile=_Je;function CJe(e,t){if(hoe(e)){let n=Bc.statSync(e);goe(n);let r=Bc.openSync(e,"r"),i=Buffer.alloc(Py),o=Bc.readSync(r,i,0,Py,0);return Bc.closeSync(r),ZP(i,o)}else return t===void 0&&(t=e.length),ZP(e,t)}s(CJe,"isBinaryFileSync");Gc.isBinaryFileSync=CJe;function ZP(e,t){if(t===0)return!1;let n=0,r=Math.min(t,Py);if(t>=3&&e[0]===239&&e[1]===187&&e[2]===191||t>=4&&e[0]===0&&e[1]===0&&e[2]===254&&e[3]===255||t>=4&&e[0]===255&&e[1]===254&&e[2]===0&&e[3]===0||t>=4&&e[0]===132&&e[1]===49&&e[2]===149&&e[3]===51)return!1;if(r>=5&&e.slice(0,5).toString()==="%PDF-")return!0;if(t>=2&&e[0]===254&&e[1]===255||t>=2&&e[0]===255&&e[1]===254)return!1;for(let i=0;i<r;i++){if(e[i]===0)return!0;if((e[i]<7||e[i]>14)&&(e[i]<32||e[i]>127)){if(e[i]>193&&e[i]<224&&i+1<r){if(i++,e[i]>127&&e[i]<192)continue}else if(e[i]>223&&e[i]<240&&i+2<r&&(i++,e[i]>127&&e[i]<192&&e[i+1]>127&&e[i+1]<192)){i++;continue}if(n++,i>=32&&n*100/r>10)return!0}}return!!(n*100/r>10||n>1&&IJe(e,r))}s(ZP,"isBinaryCheck");function hoe(e){return typeof e=="string"}s(hoe,"isString");function goe(e){if(!e.isFile())throw new Error("Path provided was not a file!")}s(goe,"isStatFile")});var T$=y(v$=>{"use strict";Object.defineProperty(v$,"__esModule",{value:!0});var wJe=["Dockerfile","Makefile","Rakefile","ada","adb","ads","applescript","as","ascx","asm","asmx","asp","aspx","atom","bas","bash","bashrc","bat","bbcolors","bdsgroup","bdsproj","bib","bowerrc","c","cbl","cc","cfc","cfg","cfm","cfml","cgi","clj","cls","cmake","cmd","cnf","cob","coffee","coffeekup","conf","cpp","cpt","cpy","crt","cs","csh","cson","csr","css","csslintrc","csv","ctl","curlrc","cxx","dart","dfm","diff","dockerignore","dof","dpk","dproj","dtd","eco","editorconfig","ejs","el","emacs","eml","ent","erb","erl","eslintignore","eslintrc","ex","exs","f","f03","f77","f90","f95","fish","for","fpp","frm","ftn","gemrc","gitattributes","gitconfig","gitignore","gitkeep","gitmodules","go","gpp","gradle","groovy","groupproj","grunit","gtmpl","gvimrc","h","haml","hbs","hgignore","hh","hpp","hrl","hs","hta","htaccess","htc","htm","html","htpasswd","hxx","iced","inc","ini","ino","int","irbrc","itcl","itermcolors","itk","jade","java","jhtm","jhtml","js","jscsrc","jshintignore","jshintrc","json","json5","jsonld","jsp","jspx","jsx","ksh","less","lhs","lisp","log","ls","lsp","lua","m","mak","map","markdown","master","md","mdown","mdwn","mdx","metadata","mht","mhtml","mjs","mk","mkd","mkdn","mkdown","ml","mli","mm","mxml","nfm","nfo","njk","noon","npmignore","npmrc","nvmrc","ops","pas","pasm","patch","pbxproj","pch","pem","pg","php","php3","php4","php5","phpt","phtml","pir","pl","pm","pmc","pod","pot","properties","props","pt","pug","py","r","rake","rb","rdoc","rdoc_options","resx","rhtml","rjs","rlib","rmd","ron","rs","rss","rst","rtf","rvmrc","rxml","s","sass","scala","scm","scss","seestyle","sh","shtml","sls","spec","sql","sqlite","ss","sss","st","strings","sty","styl","stylus","sub","sublime-build","sublime-commands","sublime-completions","sublime-keymap","sublime-macro","sublime-menu","sublime-project","sublime-settings","sublime-workspace","sv","svc","svg","t","tcl","tcsh","terminal","tex","text","textile","tg","tmLanguage","tmTheme","tmpl","toml","tpl","ts","tsv","tsx","tt","tt2","ttml","txt","v","vb","vbs","vh","vhd","vhdl","vim","viminfo","vimrc","vue","webapp","wxml","wxss","x-php","xaml","xht","xhtml","xml","xs","xsd","xsl","xslt","yaml","yml","zsh","zshrc"];v$.default=wJe});var E$=y(S$=>{"use strict";Object.defineProperty(S$,"__esModule",{value:!0});var NJe=["dds","eot","gif","ico","jar","jpeg","jpg","pdf","png","swf","tga","ttf","zip"];S$.default=NJe});var Ru=y(Oy=>{"use strict";var Ay=require("fs"),xy=require("path"),RJe=h$(),FJe=ha(),eA=ga(),{Transform:LJe}=require("stream"),{isBinaryFileSync:yoe}=moe(),{default:jJe}=T$(),{default:DJe}=E$();function $Je(e){return e!=null&&e.charAt(0)!=="!"}s($Je,"notNullOrExclusion");Oy.getCommonPath=function(e){if(Array.isArray(e))return e=e.filter($Je).map(this.getCommonPath.bind(this)),RJe(e);let t=e.indexOf("*");if(t!==-1)e=e.substring(0,t+1);else if(Ay.existsSync(e)&&Ay.statSync(e).isDirectory())return e;return xy.dirname(e)};Oy.globify=function(e){if(Array.isArray(e))return e.reduce((n,r)=>n.concat(this.globify(eA(r))),[]);if(e=eA(e),FJe.hasMagic(e))return e;if(!Ay.existsSync(e))return[e,eA(xy.join(e,"**"))];let t=Ay.statSync(e);if(t.isFile())return e;if(t.isDirectory())return eA(xy.join(e,"**"));throw new Error("Only file path or directory path are supported.")};Oy.createTransform=function(e){return new LJe({objectMode:!0,transform(...n){return e.apply(this,n)}})};Oy.isBinary=(e,t)=>{let n=xy.extname(e).replace(/^\./,"")||xy.basename(e);return DJe.includes(n)?!0:jJe.includes(n)?!1:Ay.existsSync(e)&&yoe(e)||t&&yoe(Buffer.isBuffer(t)?t:Buffer.from(t))}});var Toe=y((EOt,voe)=>{"use strict";var kJe=require("path"),MJe=ha(),VJe=Nu(),qJe=Ru(),{setDeletedFileState:UJe}=Pu();function boe(e,t){let n=t.get(e);UJe(n),n.contents=null,t.add(n)}s(boe,"deleteFile");voe.exports=function(e,t){Array.isArray(e)||(e=[e]),e=e.map(i=>kJe.resolve(i)),e=qJe.globify(e),t=t||{};let n=t.globOptions||{};MJe.sync(e,n).forEach(i=>{boe(i,this.store)}),this.store.each(i=>{VJe([i.path],e).length!==0&&boe(i.path,this.store)})}});var O$=y(x$=>{"use strict";var A$=require("assert"),Soe=require("fs"),tA=require("path"),P$=ha(),BJe=Nu(),GJe=Ua(),Eoe=Ru(),Poe=ga();function HJe(e,t,n){let r=e(t,n);return Buffer.isBuffer(r)?r:Buffer.from(r)}s(HJe,"applyProcessingFunc");x$.copy=function(e,t,n,r,i){t=tA.resolve(t),n=n||{};let o=Eoe.globify(e),a=[];if(n.noGlob)a=(Array.isArray(o)?o:[o]).filter(p=>Soe.existsSync(p));else{let f={...n.globOptions,nodir:!0};a=P$.sync(o,f).map(p=>tA.resolve(p))}let c=[];this.store.each(f=>{!P$.hasMagic(Poe(f.path))&&BJe([f.path],o).length!==0&&!a.includes(f.path)&&c.push(f.path)});let l=a.concat(c),u=s(()=>t,"generateDestination");if(Array.isArray(e)||!this.exists(e)||P$.hasMagic(Poe(e))&&!n.noGlob){A$(!this.exists(t)||Soe.statSync(t).isDirectory(),"When copying multiple files, provide a directory as destination");let f=n.processDestinationPath||(d=>d),p=Eoe.getCommonPath(e);u=s(d=>{let h=tA.relative(p,d);return f(tA.join(t,h))},"generateDestination")}A$(n.ignoreNoMatch||l.length>0,"Trying to copy from a source that does not exist: "+e),l.forEach(f=>{let p=u(f);r&&(p=GJe.render(p,r,i)),this._copySingle(f,p,n,r,i)})};x$._copySingle=function(e,t,n={}){A$(this.exists(e),"Trying to copy from a source that does not exist: "+e);let r=this.store.get(e),{contents:i}=r;if(n.process&&(i=HJe(n.process,r.contents,r.path)),n.append){if(!this.store.existsInMemory)throw new Error("Current mem-fs is not compatible with append");if(this.store.existsInMemory(t)){this.append(t,i,{create:!0,...n});return}}this.write(t,i,r.stat)}});var _$=y((OOt,I$)=>{"use strict";var WJe=Ua(),{isBinary:KJe}=Ru();I$.exports._processTpl=function({contents:e,filename:t,context:n,tplSettings:r}){return KJe(t,e)?e:WJe.render(e.toString(),n,{filename:t,...r})};I$.exports.copyTpl=function(e,t,n,r,i){n=n||{},r=r||{},this.copy(e,t,{processDestinationPath:s(o=>o.replace(/.ejs$/,""),"processDestinationPath"),...i,process:s((o,a)=>this._processTpl({contents:o,filename:a,context:n,tplSettings:r}),"process")},n,r)}});var R$=y(N$=>{"use strict";var Aoe=require("assert"),JJe=require("fs"),Ioe=require("fs").promises,Iy=require("path"),C$=ha(),YJe=Nu(),XJe=Ua(),xoe=Ru(),Ooe=ga();async function zJe(e,t){let n=await Promise.resolve(e.call(this,t));return Buffer.isBuffer(n)?n:Buffer.from(n)}s(zJe,"applyProcessingFileFunc");function w$(e,t,n){return t?XJe.render(e,t,n):e}s(w$,"renderFilepath");async function QJe(e){let t;if(typeof e=="string")t=e;else return;let n=Iy.resolve(t);try{if((await Ioe.stat(n)).isFile())return n}catch{}}s(QJe,"getOneFile");N$.copyAsync=async function(e,t,n,r,i){t=Iy.resolve(t),n=n||{};let o=await QJe(e);if(o)return this._copySingleAsync(o,w$(t,r,i),n);let a=xoe.globify(e),c={...n.globOptions,nodir:!0},l=C$.sync(a,c).map(p=>Iy.resolve(p)),u=[];this.store.each(p=>{!C$.hasMagic(Ooe(p.path))&&YJe([p.path],a).length!==0&&!l.includes(p.path)&&u.push(p.path)});let f=s(()=>t,"generateDestination");if(Array.isArray(e)||!this.exists(e)||C$.hasMagic(Ooe(e))){Aoe(!this.exists(t)||JJe.statSync(t).isDirectory(),"When copying multiple files, provide a directory as destination");let p=n.processDestinationPath||(h=>h),d=xoe.getCommonPath(e);f=s(h=>{let m=Iy.relative(d,h);return p(Iy.join(t,m))},"generateDestination")}Aoe(n.ignoreNoMatch||l.length>0||u.length>0,"Trying to copy from a source that does not exist: "+e),await Promise.all([...l.map(p=>this._copySingleAsync(p,w$(f(p),r,i),n)),...u.map(p=>Promise.resolve(this._copySingle(p,w$(f(p),r,i),n)))])};N$._copySingleAsync=async function(e,t,n={}){if(!n.processFile)return this._copySingle(e,t,n);let r=await zJe.call(this,n.processFile,e);if(n.append){if(!this.store.existsInMemory)throw new Error("Current mem-fs is not compatible with append");if(this.store.existsInMemory(t)){this.append(t,r,{create:!0,...n});return}}let i=await Ioe.stat(e);this.write(t,r,i)}});var Coe=y((wOt,_oe)=>{"use strict";var ZJe=Ua(),e3e=require("fs").promises,{isBinary:t3e}=Ru();_oe.exports=async function(e,t,n,r,i){n=n||{},r=r||{},await this.copyAsync(e,t,{processDestinationPath:s(o=>o.replace(/.ejs$/,""),"processDestinationPath"),...i,async processFile(o){return t3e(o,null)?e3e.readFile(o):ZJe.renderFile(o,n,r)},process:s((o,a,c)=>this._processTpl({contents:o,filename:a,destination:c,context:n,tplSettings:r}),"process")},n,r)}});var Noe=y((ROt,woe)=>{"use strict";woe.exports=function(e,t,n){this.copy(e,t,n),this.delete(e,n)}});var Loe=y((FOt,Foe)=>{var{createTransform:Roe}=Ru(),{isFilePending:n3e}=Pu(),r3e=s(()=>Roe((e,t,n)=>{n(void 0,n3e(e)?e:void 0)}),"createPendingFilesPassthrough"),i3e=s(e=>Roe((t,n,r)=>{e.commitFileAsync(t).then(()=>r()).catch(i=>r(i))}),"createCommitTransform");Foe.exports={createPendingFilesPassthrough:r3e,createCommitTransform:i3e}});var Doe=y((jOt,joe)=>{"use strict";var{promisify:s3e}=require("util"),{pipeline:o3e}=require("stream"),a3e=s3e(o3e),{createPendingFilesPassthrough:c3e,createCommitTransform:l3e}=Loe();joe.exports=function(e,t,n){typeof e=="function"?(n=e,e=[],t=void 0):typeof t=="function"&&(n=t,t=void 0),t=t||this.store.stream(),e=e||[];let r=a3e(t,c3e(),...e,l3e(this));return n?r.then(()=>n(),n):r}});var Moe=y((DOt,koe)=>{"use strict";var _y=require("fs").promises,u3e=require("path"),{clearFileState:f3e,isFileStateModified:p3e,isFileStateDeleted:d3e,setCommittedFile:$oe}=Pu();async function h3e(e){let t=u3e.dirname(e.path);try{if(!(await _y.stat(t)).isDirectory())throw new Error(`${e.path} is not a directory`)}catch(r){if(r.code==="ENOENT")await _y.mkdir(t,{recursive:!0});else throw r}let n={};e.stat&&(n.mode=e.stat.mode),await _y.writeFile(e.path,e.contents,n)}s(h3e,"write");async function g3e(e){await(_y.rm||_y.rmdir)(e.path,{recursive:!0})}s(g3e,"remove");koe.exports=async function(e){let t=this.store.get(e.path);(!t||t!==e)&&this.store.add(e),p3e(e)?($oe(e),await h3e(e)):d3e(e)&&($oe(e),await g3e(e)),f3e(e)}});var qoe=y((kOt,Voe)=>{"use strict";var m3e=require("path"),y3e=ga(),b3e=d$(),{hasClearedState:v3e,hasState:T3e,STATE:F$,STATE_CLEARED:L$}=Pu();Voe.exports=function(e=process.cwd(),t=n=>v3e(n)||T3e(n)){if(typeof t=="string"){let n=t;t=s(r=>b3e(r.path,n),"filter")}return Object.fromEntries(this.store.all().filter(n=>t(n,e)).map(n=>{let r=y3e(e?m3e.relative(e,n.path):n.path),i={contents:n.contents?n.contents.toString():n.contents};return n[F$]&&(i[F$]=n[F$]),n[L$]&&(i[L$]=n[L$]),[r,i]}))}});var Uoe=y(j$=>{"use strict";function Gn(e){this.store=e}s(Gn,"EditionInterface");Gn.prototype.read=Kte();Gn.prototype.readJSON=Yte();Gn.prototype.exists=zte();Gn.prototype.write=sne();Gn.prototype.writeJSON=ane();Gn.prototype.extendJSON=hne();Gn.prototype.append=mne();Gn.prototype.appendTpl=bne();Gn.prototype.delete=Toe();Gn.prototype.copy=O$().copy;Gn.prototype._copySingle=O$()._copySingle;Gn.prototype.copyTpl=_$().copyTpl;Gn.prototype._processTpl=_$()._processTpl;Gn.prototype.copyAsync=R$().copyAsync;Gn.prototype._copySingleAsync=R$()._copySingleAsync;Gn.prototype.copyTplAsync=Coe();Gn.prototype.move=Noe();Gn.prototype.commit=Doe();Gn.prototype.commitFileAsync=Moe();Gn.prototype.dump=qoe();j$.create=function(e){return new Gn(e)};j$.State=Pu()});var Jm=y(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.toReferenceUri=Qt.toAbsoluteUri=void 0;Qt.isCapNodeJsProject=Woe;Qt.isCapJavaProject=Koe;Qt.getCapProjectType=Joe;Qt.isCapProject=I3e;Qt.getCapCustomPaths=ld;Qt.getCapModelAndServices=$$;Qt.processServices=Yoe;Qt.getCdsFiles=_3e;Qt.getCdsRoots=k$;Qt.getCdsServices=C3e;Qt.readCapServiceMetadataEdmx=N3e;Qt.isMatchingServiceUri=zoe;Qt.getCapEnvironment=Zoe;Qt.clearCdsModuleCache=R3e;Qt.clearGlobalCdsModulePromiseCache=k3e;Qt.getGlobalCdsHomePath=tae;Qt.getCapServiceName=q3e;Qt.deleteCapApp=B3e;Qt.checkCdsUi5PluginEnabled=G3e;Qt.getWorkspaceInfo=nae;Qt.satisfiesMinCdsVersion=rae;Qt.hasMinCdsVersion=iae;var S3e=require("child_process"),dn=require("path"),To=Ui(),ci=ei(),Hoe=_T(),E3e=Km(),rA=ry(),P3e=AL(),A3e=Uoe(),x3e=lg();function Woe(e){var t;return!!(e.cds??((t=e.dependencies)==null?void 0:t["@sap/cds"]))}s(Woe,"isCapNodeJsProject");async function Koe(e,t,n){let r=(t==null?void 0:t.srv)??(await ld(e)).srv;return(0,ci.fileExists)((0,dn.join)(e,r,"src","main","resources",To.FileName.CapJavaApplicationYaml),n)}s(Koe,"isCapJavaProject");async function O3e(e,t){try{return(await(0,ci.findBy)({root:e,memFs:t})).length>0}catch{return!1}}s(O3e,"checkFilesInSrvFolder");async function Joe(e,t){let n=await ld(e);if(!await O3e((0,dn.join)(e,n.srv),t))return;if(await Koe(e,n,t))return"CAPJava";let r;try{r=await(0,ci.readJSON)((0,dn.join)(e,To.FileName.Package),t)}catch{}if(r&&Woe(r))return"CAPNodejs"}s(Joe,"getCapProjectType");async function I3e(e){return!!await Joe(e)}s(I3e,"isCapProject");async function ld(e){let t={app:"app/",db:"db/",srv:"srv/"};try{let n=await Zoe(e);n.folders&&(t.app=n.folders.app,t.db=n.folders.db,t.srv=n.folders.srv)}catch{}return t}s(ld,"getCapCustomPaths");function Boe(e){return e.kind==="odata"||e.kind==="odata-v4"}s(Boe,"filterCapServiceEndpoints");async function $$(e){let t,n,r,i=new Set(["app","srv","db"]);typeof e=="object"?(t=e.projectRoot,n=e.logger,r=e.pathSelection?e.pathSelection:i):(r=i,t=e);let o=await Fu(t,!0),a=await ld(t),c=[];r==null||r.forEach(f=>{c.push((0,dn.join)(t,a[f]))});let l=await o.load(c,{root:t});n==null||n.info(`@sap-ux/project-access:getCapModelAndServices - Using 'cds.home': ${o.home}`),n==null||n.info(`@sap-ux/project-access:getCapModelAndServices - Using 'cds.version': ${o.version}`),n==null||n.info(`@sap-ux/project-access:getCapModelAndServices - Using 'cds.root': ${o.root}`),n==null||n.info(`@sap-ux/project-access:getCapModelAndServices - Using 'projectRoot': ${t}`);let u=o.compile.to.serviceinfo(l,{root:t})??[];return u=Yoe(u),{model:l,services:u,cdsVersionInfo:{home:o.home,version:o.version,root:o.root}}}s($$,"getCapModelAndServices");function Yoe(e){return e&&Array.isArray(e)?e.filter(t=>{var n;return t.urlPath&&t.endpoints===void 0||((n=t.endpoints)==null?void 0:n.find(Boe))}).map(t=>{let{endpoints:n,urlPath:r}=t,i=n==null?void 0:n.find(Boe),o=(i==null?void 0:i.path)??r;return{name:t.name,urlPath:Xoe(o),runtime:t.runtime}}):[]}s(Yoe,"processServices");async function _3e(e,t=!1,n){var i;let r=[];try{let o;n??(n=await k$(e));try{o=await(await Fu(e)).load(n,{root:e}),r=[...o.$sources??[]]}catch(a){if(t&&((i=a.model)!=null&&i.sources)&&typeof a.model.sources=="object")r.push(...w3e(a.model.sources));else throw a}}catch(o){throw Error(`Error while retrieving the list of cds files for project ${e}, envRoot ${n}. Error was: ${o}`)}return r}s(_3e,"getCdsFiles");async function k$(e,t=!1){let n=[],r=await ld(e),i=[r.db,r.srv,r.app,"schema","services"],o=await Fu(e);t&&eae(o);for(let a of i){let c=o.resolve((0,dn.join)(e,a),{skipModelCache:!0})||[];for(let l of c)n.push(l)}return n}s(k$,"getCdsRoots");async function C3e(e,t=!0){let n=[];try{let r=await Fu(e),i=await k$(e),o;try{o=await r.load(i,{root:e})}catch(c){if(t&&c.model)o=c.model;else throw c}let a=r.linked(o);Array.isArray(a.services)?n=a.services:Object.keys(a.services).forEach(c=>{n.push(a.services[c])})}catch(r){throw Error(`Error while resolving cds roots for '${e}'. ${r}`)}return n}s(C3e,"getCdsServices");function w3e(e){let t=[];for(let n in e){let r=e[n].filename;typeof r=="string"&&!r.startsWith(dn.sep)&&(r=(0,dn.join)(dn.sep,r)),r&&t.push(r)}return t}s(w3e,"extractCdsFilesFromMessage");function Xoe(e){return e?e.replace(/\\/g,"/").replace(/\/\//g,"/").replace(/(?:^\/)/g,""):""}s(Xoe,"uniformUrl");async function N3e(e,t,n="v4"){try{let{model:r,services:i}=await $$(e),o=Qoe(i,t);if(!o)throw Error(`Service for uri: '${t}' not found. Available services: ${JSON.stringify(i)}`);return(await Fu(e)).compile.to.edmx(r,{service:o.name,version:n})}catch(r){throw Error(`Error while reading CAP service metadata. Path: '${e}', service uri: '${t}', error: '${r.toString()}'}`)}}s(N3e,"readCapServiceMetadataEdmx");function D$(e){return e.replaceAll(/(?:^\/)|(?:\/$)/g,"")}s(D$,"normalizeServiceUrlPath");function zoe(e,t){let n=e.startsWith("/")?e:`/${e}`,r=t.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`);return[String.raw`^/ui/[^/]+/v\d+/${r}$`,String.raw`^/[^/]+\.[^/]+/external-ui/[^/]+/v\d+/${r}$`].some(o=>new RegExp(o).test(n))}s(zoe,"isMatchingServiceUri");function Qoe(e,t){let n=D$(Xoe(t)),r=e.find(i=>D$(i.urlPath)===n);return r??(r=e.find(i=>{let o=D$(i.urlPath);return zoe(n,o)})),r}s(Qoe,"findServiceByUri");async function Zoe(e){return(await Fu(e)).env.for("cds",e)}s(Zoe,"getCapEnvironment");async function Fu(e,t=!1){let n,r,i;try{n=await(0,Hoe.loadModuleFromProject)(e,"@sap/cds")}catch(a){r=a}if(!n)try{n=await $3e()}catch(a){i=a}if(!n)throw Error(`Could not load cds module. Attempt to load module @sap/cds from project threw error '${r}', attempt to load module @sap/cds from @sap/cds-dk threw error '${i}'`);let o="default"in n?n.default:n;if(t&&r){let a=await V3e((0,dn.join)(e,To.FileName.Package));if(typeof a=="string"){let c=o.version;if(Goe(a)!==Goe(c)){let l=new Error(`The @sap/cds major version (${a}) specified in your CAP project is different to the @sap/cds version you have installed globally (${c}). Please run 'npm install' on your CAP project to ensure that the correct CDS version is loaded.`);throw l.code="CDS_VERSION_MISMATCH",l}}}return global&&(global.cds=o),o.env=o.env.for("cds",e),o}s(Fu,"loadCdsModuleFromProject");async function R3e(e){let t=!1;try{let n=await Fu(e);n&&(eae(n),t=!0)}catch{}return t}s(R3e,"clearCdsModuleCache");function eae(e){e.resolve.cache={}}s(eae,"clearCdsResolveCache");var F3e=s((e,t)=>(0,dn.join)(e,t),"toAbsoluteUri");Qt.toAbsoluteUri=F3e;var L3e=s(async(e,t,n)=>{let r="",i=n.lastIndexOf("node_modules");if(i>=0){let a=n.lastIndexOf(".");a>i+13?r=n.slice(i+13,a):r=n.slice(i+13)}else if(n.startsWith("../")||n.startsWith("..\\")){let a=await j3e(e,n);a.packageName&&(r=a.packageName+n.slice(a.packageFolder.length))}if(!r){let a=(0,dn.dirname)((0,Qt.toAbsoluteUri)(e,t));r=(0,dn.relative)(a,(0,Qt.toAbsoluteUri)(e,n)),r.startsWith(".")||(r="./"+r)}let o=r.lastIndexOf(".")>0?r.slice(r.lastIndexOf(".")+1):"";return["CDS","JSON"].includes(o.toUpperCase())&&(r=r.slice(0,r.length-o.length-1)),r.split(dn.sep).join("/")},"toReferenceUri");Qt.toReferenceUri=L3e;async function j3e(e,t){let n=t.split(dn.sep),r={packageName:"",packageFolder:t};for(let i=n.length-1;i>=0&&!r.packageName;i--){let o=n.slice(0,i).join(dn.sep);r.packageName=await D3e(e,o),r.packageName&&(r.packageFolder=o)}return r}s(j3e,"getPackageNameInFolder");async function D3e(e,t){let n="";try{let r=(0,dn.normalize)(e+"/"+t+"/"+To.FileName.Package),i=await(0,ci.readJSON)(r);typeof(i==null?void 0:i.name)=="string"&&(n=i.name)}catch{n=""}return n}s(D3e,"readPackageNameForFolder");var nA;async function $3e(){return nA=nA??new Promise((e,t)=>tae().then(n=>{n?e((0,Hoe.loadModuleFromProject)((0,dn.join)(n,"node_modules","@sap","cds"),"@sap/cds")):t(new Error("Can not find global installation of module @sap/cds, which should be part of @sap/cds-dk"))},t)),nA}s($3e,"loadGlobalCdsModule");function k3e(){nA=void 0}s(k3e,"clearGlobalCdsModulePromiseCache");async function M3e(e){return new Promise((t,n)=>{let r="",i=(0,S3e.spawn)("cds",["env","--json"],{cwd:e,shell:!0});i.stdout.on("data",o=>{r+=o.toString()}),i.on("close",()=>{if(r)try{t(JSON.parse(r))}catch(o){n(new Error(`Unexpected output of "cds env --json": ${o.message}`))}else n(new Error("Module path not found"))}),i.on("error",o=>{n(o)})})}s(M3e,"getCdsEnvData");async function tae(){return(await M3e())["_home_cds-dk"]}s(tae,"getGlobalCdsHomePath");async function V3e(e){var n;let t;try{if(await(0,ci.fileExists)(e)){let r=await(0,ci.readJSON)(e);t=(n=r==null?void 0:r.dependencies)==null?void 0:n["@sap/cds"]}}catch{}return t}s(V3e,"getCdsVersionFromPackageJson");function Goe(e){var t;return Number.parseInt(((t=/\d+/.exec(e.split(".")[0]))==null?void 0:t[0])??"0",10)}s(Goe,"getMajorVersion");async function q3e(e,t){let n=(await $$(e)).services,r=Qoe(n,t);if(!(r!=null&&r.name)){let i=`Service for uri: '${t}' not found. Available services: ${JSON.stringify(n)}`;throw Error(i)}return r.name}s(q3e,"getCapServiceName");async function U3e(e,t,n,r){let i=`using from './${t}/annotations';`;for(let o of e)if(await(0,ci.fileExists)(o,n))try{let a=await(0,ci.readFile)(o,n);a.indexOf(i)!==-1&&(r==null||r.info(`Removing using statement for './${t}/annotations' from '${o}'.`),a=a.replace(i,""),a.replace(/\n/g,"").trim()===""?(r==null||r.info(`File '${o}' is now empty, removing it.`),await(0,ci.deleteFile)(o,n)):await(0,ci.writeFile)(o,a,n))}catch{r==null||r.error(`Could not modify file '${o}'. Skipping this file.`)}}s(U3e,"cleanupCdsFiles");async function B3e(e,t,n){var l;let r=(0,dn.basename)(e),i=await(0,E3e.findCapProjectRoot)(e);if(!i){let u=`Project root was not found for CAP application with path '${e}'`;throw n==null||n.error(u),Error(u)}let o=(0,dn.join)(i,To.FileName.Package),a=await(0,ci.readJSON)(o,t),c=[(0,dn.join)((0,dn.dirname)(e),To.FileName.ServiceCds),(0,dn.join)((0,dn.dirname)(e),To.FileName.IndexCds)];if(n==null||n.info(`Deleting app '${r}' from CAP project '${i}'.`),Array.isArray(a.sapux)){let u=e.replace(/\\/g,"/");a.sapux=a.sapux.filter(f=>!u.endsWith(f.replace(/\\/g,"/"))),a.sapux.length===0&&(n==null||n.info(`This was the last app in this CAP project. Deleting property 'sapux' from '${o}'.`),delete a.sapux)}(l=a.scripts)!=null&&l[`watch-${r}`]&&delete a.scripts[`watch-${r}`],await(0,ci.updatePackageJSON)(o,a,t),n==null||n.info(`File '${o}' updated.`),await(0,ci.deleteDirectory)(e,t),n==null||n.info(`Directory '${e}' deleted.`),await U3e(c,r,t,n),(await(0,ci.readDirectory)((0,dn.dirname)(e))).length===0&&(n==null||n.info(`Directory '${(0,dn.dirname)(e)}' is now empty. Deleting it.`),await(0,ci.deleteDirectory)((0,dn.dirname)(e),t))}s(B3e,"deleteCapApp");async function G3e(e,t,n,r){t||(t=(0,A3e.create)((0,P3e.create)()));let i=(0,dn.join)(e,"package.json");if(!t.exists(i))return!1;let o=t.readJSON(i),{workspaceEnabled:a}=await nae(e,o),c={hasMinCdsVersion:r!=null&&r.version?(0,rA.satisfies)(r==null?void 0:r.version,`>=${To.MinCdsVersion}`):rae(o),isWorkspaceEnabled:a,hasCdsUi5Plugin:(0,x3e.hasDependency)(o,"cds-plugin-ui5"),isCdsUi5PluginEnabled:!1};return c.isCdsUi5PluginEnabled=c.hasMinCdsVersion&&c.isWorkspaceEnabled&&c.hasCdsUi5Plugin,n?c:c.isCdsUi5PluginEnabled}s(G3e,"checkCdsUi5PluginEnabled");async function nae(e,t){let n=await ld(e),r=n.app.endsWith("/")?`${n.app}*`:`${n.app}/*`,i=H3e(t)??[],o=i.includes(r);return{appWorkspace:r,workspaceEnabled:o,workspacePackages:i}}s(nae,"getWorkspaceInfo");function H3e(e){var n,r;let t;return Array.isArray(e.workspaces)?t=e.workspaces:Array.isArray((n=e.workspaces)==null?void 0:n.packages)&&(t=(r=e.workspaces)==null?void 0:r.packages),t}s(H3e,"getWorkspacePackages");function rae(e){var t;return iae(e)||(0,rA.satisfies)(To.MinCdsVersion,((t=e.dependencies)==null?void 0:t["@sap/cds"])??"0.0.0")}s(rae,"satisfiesMinCdsVersion");function iae(e){var t;return(0,rA.gte)((0,rA.coerce)((t=e.dependencies)==null?void 0:t["@sap/cds"])??"0.0.0",To.MinCdsVersion)}s(iae,"hasMinCdsVersion")});var V$=y(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});Cy.getMainService=K3e;Cy.getServicesAndAnnotations=J3e;Cy.filterDataSourcesByType=X3e;var M$=require("path"),W3e=ei();function K3e(e){var n,r,i,o;let t=typeof((n=e==null?void 0:e["sap.ovp"])==null?void 0:n.globalFilterModel)=="string"?e["sap.ovp"].globalFilterModel:"";return typeof((o=(i=(r=e==null?void 0:e["sap.ui5"])==null?void 0:r.models)==null?void 0:i[t])==null?void 0:o.dataSource)=="string"?e["sap.ui5"].models[t].dataSource:void 0}s(K3e,"getMainService");async function J3e(e,t,n){var c;let r=t??await(0,W3e.readJSON)(e,n),i=(0,M$.dirname)(e),o={},a=((c=r==null?void 0:r["sap.app"])==null?void 0:c.dataSources)??{};for(let l in a)a[l].type==="OData"&&(o[l]=Y3e(i,l,a));return o}s(J3e,"getServicesAndAnnotations");function Y3e(e,t,n){var u,f,p,d;let r=n[t],i=r.uri,o=typeof((u=r.settings)==null?void 0:u.localUri)=="string"?(0,M$.join)(e,r.settings.localUri):"",a=((f=r.settings)==null?void 0:f.odataVersion)??"2.0",c=[],l=(p=r.settings)==null?void 0:p.annotations;if(Array.isArray(l))for(let h of l){let m=n[h];m&&c.push({uri:m.uri,local:(d=m.settings)!=null&&d.localUri?(0,M$.join)(e,m.settings.localUri):void 0})}return{uri:i,local:o,odataVersion:a,annotations:c}}s(Y3e,"getServiceSpecification");function X3e(e,t){return Object.fromEntries(Object.entries(e).filter(([,n])=>n.type===t))}s(X3e,"filterDataSourcesByType")});var q$=y(iA=>{"use strict";Object.defineProperty(iA,"__esModule",{value:!0});iA.getI18nPropertiesPaths=Q3e;iA.getRelativeI18nPropertiesPaths=sae;var vs=require("path"),z3e=ei();async function Q3e(e,t,n){let r=t??await(0,z3e.readJSON)(e,n),i=(0,vs.dirname)(e),o=sae(r),a={"sap.app":(0,vs.join)(i,o["sap.app"]),models:{}};for(let c in o.models)a.models[c]={path:(0,vs.join)(i,o.models[c].path)};return a}s(Q3e,"getI18nPropertiesPaths");function sae(e){return{"sap.app":Z3e(e),models:eYe(e)}}s(sae,"getRelativeI18nPropertiesPaths");function Z3e(e){var n,r;let t=(0,vs.join)("i18n/i18n.properties");if(typeof((n=e==null?void 0:e["sap.app"])==null?void 0:n.i18n)=="string")return(0,vs.join)(e["sap.app"].i18n);if(typeof((r=e==null?void 0:e["sap.app"])==null?void 0:r.i18n)=="object"){if("bundleName"in e["sap.app"].i18n){let i=e["sap.app"].i18n.bundleName.replace(e["sap.app"].id,""),o=`${(0,vs.join)(...i.split("."))}.properties`;return(0,vs.join)(o)}if("bundleUrl"in e["sap.app"].i18n)return(0,vs.join)(e["sap.app"].i18n.bundleUrl)}return t}s(Z3e,"getI18nAppPath");function eYe(e){var i;let t={},n=((i=e==null?void 0:e["sap.ui5"])==null?void 0:i.models)??{},r=Object.keys(n).filter(o=>n[o].type==="sap.ui.model.resource.ResourceModel");for(let o of r){let a=n[o];if(a.settings){if(a.settings.bundleName){let c=a.settings.bundleName.replace(e["sap.app"].id,""),l=`${(0,vs.join)(...c.split("."))}.properties`;t[o]={path:(0,vs.join)(l)};continue}if(a.settings.bundleUrl){t[o]={path:(0,vs.join)(a.settings.bundleUrl)};continue}}a.uri&&(t[o]={path:(0,vs.join)(a.uri)})}return t}s(eYe,"getI18nModelPaths")});var oA=y(sA=>{"use strict";Object.defineProperty(sA,"__esModule",{value:!0});sA.getI18nConfiguration=oae;sA.getI18nFolderNames=tYe;function oae(e){let{default_language:t,fallback_bundle:n,file:r,folders:i}=(e==null?void 0:e.i18n)??{};return{defaultLanguage:t??"en",fallbackLanguage:n??"",baseFileName:r??"i18n",folders:i??["_i18n","i18n"]}}s(oae,"getI18nConfiguration");function tYe(e){let{folders:t}=oae(e);return t}s(tYe,"getI18nFolderNames")});var uae=y(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});Ny.resolveCapI18nFolderForFile=B$;Ny.getCapI18nFiles=rYe;Ny.getCapI18nFolder=iYe;var wy=require("path"),lae=require("fs"),U$=oA();function aae(e){return process.platform==="win32"?e.charAt(0).toLowerCase()+e.slice(1):e}s(aae,"normalizePath");function nYe(e,t){return aae(e).startsWith(aae(t))}s(nYe,"pathStartsWith");var cae=wy.sep+"node_modules";function B$(e,t,n){let{folders:r}=(0,U$.getI18nConfiguration)(t);function i(o){for(let c of r){let l=(0,wy.join)(o,c);if((0,lae.existsSync)(l))return l}let a=(0,wy.dirname)(o);if(a.includes(cae)){if(a.endsWith(cae))return}else if(!nYe(a,e))return;return!a||a===o?void 0:i(a)}return s(i,"resolve"),i(n)}s(B$,"resolveCapI18nFolderForFile");function rYe(e,t,n){let{baseFileName:r}=(0,U$.getI18nConfiguration)(t);return n.reduce((o,a)=>{let c=B$(e,t,a);if(c){let l=(0,wy.join)(c,r);o.indexOf(l)===-1&&o.push(l)}return o},[])}s(rYe,"getCapI18nFiles");async function iYe(e,t,n,r){let{folders:i}=(0,U$.getI18nConfiguration)(n),o=B$(e,n,t);if(!o){let a=i[0];o=(0,wy.join)(e,a),r||await lae.promises.mkdir(o)}return o}s(iYe,"getCapI18nFolder")});var fae=y(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.jsonPath=aYe;ud.capPropertiesPath=cYe;ud.csvPath=lYe;ud.doesExist=uYe;var sYe=require("fs"),oYe=oA();function aYe(e){return`${e}.json`}s(aYe,"jsonPath");function cYe(e,t){let{fallbackLanguage:n}=(0,oYe.getI18nConfiguration)(t),r=n===""?"":`_${n}`;return`${e}${r}.properties`}s(cYe,"capPropertiesPath");function lYe(e){return`${e}.csv`}s(lYe,"csvPath");function uYe(e){return new Promise(t=>{(0,sYe.stat)(e,n=>{t(!n)})})}s(uYe,"doesExist")});var G$=y(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.NOT_RELEVANT_FOR_TRANSLATION=Hc.SapLongTextType=Hc.SapShortTextType=void 0;var pae;(function(e){e.Accessibility="XACT",e.AlternativeText="XALT",e.BreadcrumbStep="XBCB",e.BulletListItemText="XBLI",e.ButtonText="XBUT",e.Caption="XCAP",e.Cell="XCEL",e.Checkbox="XCKL",e.ColumnHeader="XCOL",e.Tabstrip="XCRD",e.DataNavigationText="XDAT",e.Label="XFLD",e.Frame="XFRM",e.Term="XGLS",e.GroupTitle="XGRP",e.Heading="XHED",e.LegendText="XLGD",e.HyperlinkText="XLNK",e.LogEntry="XLOG",e.ListBoxItem="XLST",e.MenuHeader="XMEN",e.MenuItem="XMIT",e.MessageText="XMSG",e.RadioButton="XRBL",e.RoadmapStep="XRMP",e.TableRowHeading="XROW",e.SelectionText="XSEL",e.TabStripText="XTBS",e.TableTitle="XTIT",e.TreeNodeText="XTND",e.QuickInfoText="XTOL",e.GeneralText="XTXT"})(pae||(Hc.SapShortTextType=pae={}));var dae;(function(e){e.Accessibility="YACT",e.BulletListItemText="YBLI",e.Definition="YDEF",e.Description="YDES",e.Explanation="YEXP",e.FaqAnswer="YFAA",e.Faq="YFAQ",e.GlossaryDefinition="YGLS",e.Information="YINF",e.Instruction="YINS",e.LogEntry="YLOG",e.ErrorMessage="YMSE",e.MessageText="YMSG",e.InformationMessageLong="YMSI",e.WarningMessage="YMSW",e.TechnicalText="YTEC",e.Ticker="YTIC",e.GeneralTextLong="YTXT"})(dae||(Hc.SapLongTextType=dae={}));Hc.NOT_RELEVANT_FOR_TRANSLATION="NOTR"});var H$=y(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.getI18nMaxLength=fYe;ma.getI18nTextType=pYe;ma.discoverLineEnding=dYe;ma.discoverIndent=gYe;ma.applyIndent=yYe;ma.convertToCamelCase=bYe;ma.convertToPascalCase=vYe;var hae=G$();function fYe(e){let t=e.length;return t<8?t*5:t<=30?t*3:t*1.5}s(fYe,"getI18nMaxLength");function pYe(e){return e<=120?hae.SapShortTextType.Label:hae.SapLongTextType.MessageText}s(pYe,"getI18nTextType");function dYe(e){for(let t=0;t<e.length;t++){let n=e[t];if(n==="\r")return t+1<e.length&&e[t+1]===`
|
|
270
|
-
`?`\r
|
|
271
|
-
`:"\r";if(n===`
|
|
272
|
-
`)return`
|
|
273
|
-
`}return`
|
|
274
|
-
`}s(dYe,"discoverLineEnding");var hYe=/(?:\r|\n|\r?\n)([ \t]+)/;function gYe(e){let t=hYe.exec(e);return t?t[1]:" "}s(gYe,"discoverIndent");var mYe=/\r|\n|\r?\n/;function yYe(e,t,n,r=!0){let i=e.split(mYe),o="";for(let a=0;a<i.length;a++){let c=i[a];!r&&a===0?o+=c:o+=t+c,a+1!==i.length&&(o+=n)}return o}s(yYe,"applyIndent");function bYe(e="",t=4){let n="",r=e.replace(/[^a-zA-Z0-9 ]/g,"").trim().split(" "),i=r.length>=t?t:r.length;for(let o=0;i>o;o++){let a=r[o];if(o===0)n+=a.toLowerCase();else{let c=a.charAt(0).toUpperCase(),l=a.substring(1).toLowerCase();n+=`${c}${l}`}}return n}s(bYe,"convertToCamelCase");function vYe(e,t=4){let n="",r=e.replace(/[^a-zA-Z0-9 ]/g,"").trim().split(" "),i=r.length>=t?t:r.length;for(let o=0;i>o;o++){let a=r[o],c=a.charAt(0).toUpperCase(),l=a.substring(1).toLowerCase();n+=`${c}${l}`}return n}s(vYe,"convertToPascalCase")});var yae=y(aA=>{"use strict";Object.defineProperty(aA,"__esModule",{value:!0});aA.printPropertiesI18nAnnotation=mae;aA.printPropertiesI18nEntry=TYe;var gae=H$();function mae(e,t){if(!t){let n=(0,gae.getI18nMaxLength)(e);return`${(0,gae.getI18nTextType)(n)},${n}`}if(typeof t=="string")return`${e.length<=120?"X":"Y"}${t}`;if(typeof t=="object"){let{textType:n,note:r,maxLength:i}=t,o=[n];return i!==void 0&&o.push(",",i.toString()),r&&o.push(":"," ",r.trim()),o.join("")}return""}s(mae,"printPropertiesI18nAnnotation");function TYe(e,t,n){let i=`#${mae(t,n)}`,o=`${e}=${t}`;return`
|
|
275
|
-
${i}
|
|
276
|
-
${o}
|
|
277
|
-
`}s(TYe,"printPropertiesI18nEntry")});var vae=y(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});Ry.extractI18nKey=SYe;Ry.extractDoubleCurlyBracketsKey=PYe;Ry.getI18nUniqueKey=bae;function SYe(e,t="i18n"){let n=e.trim(),r=new RegExp(`^({@?${t}(>|>))`,"g");return n.replace(r,"").replace(/\}$/gm,"").trim()}s(SYe,"extractI18nKey");function EYe(e){return e.startsWith("{{")&&e.endsWith("}}")}s(EYe,"doesDoubleCurlyBracketsExist");function PYe(e){let t=e.trim();if(EYe(t))return t.substring(2,t.length-2).trim()}s(PYe,"extractDoubleCurlyBracketsKey");function bae(e,t,n=e,r=1){let i=e,o=!1;return Array.isArray(t)?o=t.findIndex(a=>a.key.value===e)!==-1:o=t[e]!==void 0,o?(e=`${n}${r}`,r++,bae(e,t,n,r)):i}s(bae,"getI18nUniqueKey")});var Tae=y(W$=>{"use strict";Object.defineProperty(W$,"__esModule",{value:!0});W$.readFile=xYe;var AYe=require("fs");async function xYe(e,t){return t?t.read(e):AYe.promises.readFile(e,{encoding:"utf8"})}s(xYe,"readFile")});var Sae=y(K$=>{"use strict";Object.defineProperty(K$,"__esModule",{value:!0});K$.writeFile=IYe;var OYe=require("fs");async function IYe(e,t,n){return n?n.write(e,t):OYe.promises.writeFile(e,t,{encoding:"utf8"})}s(IYe,"writeFile")});var Eae=y(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.writeFile=fd.readFile=void 0;var _Ye=Tae();Object.defineProperty(fd,"readFile",{enumerable:!0,get:s(function(){return _Ye.readFile},"get")});var CYe=Sae();Object.defineProperty(fd,"writeFile",{enumerable:!0,get:s(function(){return CYe.writeFile},"get")})});var So=y(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.writeFile=st.readFile=st.extractDoubleCurlyBracketsKey=st.getI18nUniqueKey=st.extractI18nKey=st.convertToPascalCase=st.convertToCamelCase=st.discoverLineEnding=st.discoverIndent=st.applyIndent=st.getI18nTextType=st.getI18nMaxLength=st.printPropertiesI18nEntry=st.printPropertiesI18nAnnotation=st.doesExist=st.capPropertiesPath=st.jsonPath=st.csvPath=st.getCapI18nFolder=st.resolveCapI18nFolderForFile=st.getCapI18nFiles=st.getI18nFolderNames=st.getI18nConfiguration=void 0;var Pae=oA();Object.defineProperty(st,"getI18nConfiguration",{enumerable:!0,get:s(function(){return Pae.getI18nConfiguration},"get")});Object.defineProperty(st,"getI18nFolderNames",{enumerable:!0,get:s(function(){return Pae.getI18nFolderNames},"get")});var J$=uae();Object.defineProperty(st,"getCapI18nFiles",{enumerable:!0,get:s(function(){return J$.getCapI18nFiles},"get")});Object.defineProperty(st,"resolveCapI18nFolderForFile",{enumerable:!0,get:s(function(){return J$.resolveCapI18nFolderForFile},"get")});Object.defineProperty(st,"getCapI18nFolder",{enumerable:!0,get:s(function(){return J$.getCapI18nFolder},"get")});var cA=fae();Object.defineProperty(st,"csvPath",{enumerable:!0,get:s(function(){return cA.csvPath},"get")});Object.defineProperty(st,"jsonPath",{enumerable:!0,get:s(function(){return cA.jsonPath},"get")});Object.defineProperty(st,"capPropertiesPath",{enumerable:!0,get:s(function(){return cA.capPropertiesPath},"get")});Object.defineProperty(st,"doesExist",{enumerable:!0,get:s(function(){return cA.doesExist},"get")});var Aae=yae();Object.defineProperty(st,"printPropertiesI18nAnnotation",{enumerable:!0,get:s(function(){return Aae.printPropertiesI18nAnnotation},"get")});Object.defineProperty(st,"printPropertiesI18nEntry",{enumerable:!0,get:s(function(){return Aae.printPropertiesI18nEntry},"get")});var Lu=H$();Object.defineProperty(st,"getI18nMaxLength",{enumerable:!0,get:s(function(){return Lu.getI18nMaxLength},"get")});Object.defineProperty(st,"getI18nTextType",{enumerable:!0,get:s(function(){return Lu.getI18nTextType},"get")});Object.defineProperty(st,"applyIndent",{enumerable:!0,get:s(function(){return Lu.applyIndent},"get")});Object.defineProperty(st,"discoverIndent",{enumerable:!0,get:s(function(){return Lu.discoverIndent},"get")});Object.defineProperty(st,"discoverLineEnding",{enumerable:!0,get:s(function(){return Lu.discoverLineEnding},"get")});Object.defineProperty(st,"convertToCamelCase",{enumerable:!0,get:s(function(){return Lu.convertToCamelCase},"get")});Object.defineProperty(st,"convertToPascalCase",{enumerable:!0,get:s(function(){return Lu.convertToPascalCase},"get")});var Y$=vae();Object.defineProperty(st,"extractI18nKey",{enumerable:!0,get:s(function(){return Y$.extractI18nKey},"get")});Object.defineProperty(st,"getI18nUniqueKey",{enumerable:!0,get:s(function(){return Y$.getI18nUniqueKey},"get")});Object.defineProperty(st,"extractDoubleCurlyBracketsKey",{enumerable:!0,get:s(function(){return Y$.extractDoubleCurlyBracketsKey},"get")});var xae=Eae();Object.defineProperty(st,"readFile",{enumerable:!0,get:s(function(){return xae.readFile},"get")});Object.defineProperty(st,"writeFile",{enumerable:!0,get:s(function(){return xae.writeFile},"get")})});function ju(e,t=!1){let n=e.length,r=0,i="",o=0,a=16,c=0,l=0,u=0,f=0,p=0;function d(N,$){let j=0,M=0;for(;j<N||!$;){let k=e.charCodeAt(r);if(k>=48&&k<=57)M=M*16+k-48;else if(k>=65&&k<=70)M=M*16+k-65+10;else if(k>=97&&k<=102)M=M*16+k-97+10;else break;r++,j++}return j<N&&(M=-1),M}s(d,"scanHexDigits");function h(N){r=N,i="",o=0,a=16,p=0}s(h,"setPosition");function m(){let N=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&pd(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&pd(e.charCodeAt(r)))for(r++;r<e.length&&pd(e.charCodeAt(r));)r++;else return p=3,e.substring(N,r);let $=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&pd(e.charCodeAt(r))){for(r++;r<e.length&&pd(e.charCodeAt(r));)r++;$=r}else p=3;return e.substring(N,$)}s(m,"scanNumber");function b(){let N="",$=r;for(;;){if(r>=n){N+=e.substring($,r),p=2;break}let j=e.charCodeAt(r);if(j===34){N+=e.substring($,r),r++;break}if(j===92){if(N+=e.substring($,r),r++,r>=n){p=2;break}switch(e.charCodeAt(r++)){case 34:N+='"';break;case 92:N+="\\";break;case 47:N+="/";break;case 98:N+="\b";break;case 102:N+="\f";break;case 110:N+=`
|
|
278
|
-
`;break;case 114:N+="\r";break;case 116:N+=" ";break;case 117:let k=d(4,!0);k>=0?N+=String.fromCharCode(k):p=4;break;default:p=5}$=r;continue}if(j>=0&&j<=31)if(Fy(j)){N+=e.substring($,r),p=2;break}else p=6;r++}return N}s(b,"scanString");function T(){if(i="",p=0,o=r,l=c,f=u,r>=n)return o=n,a=17;let N=e.charCodeAt(r);if(X$(N)){do r++,i+=String.fromCharCode(N),N=e.charCodeAt(r);while(X$(N));return a=15}if(Fy(N))return r++,i+=String.fromCharCode(N),N===13&&e.charCodeAt(r)===10&&(r++,i+=`
|
|
279
|
-
`),c++,u=r,a=14;switch(N){case 123:return r++,a=1;case 125:return r++,a=2;case 91:return r++,a=3;case 93:return r++,a=4;case 58:return r++,a=6;case 44:return r++,a=5;case 34:return r++,i=b(),a=10;case 47:let $=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!Fy(e.charCodeAt(r));)r++;return i=e.substring($,r),a=12}if(e.charCodeAt(r+1)===42){r+=2;let j=n-1,M=!1;for(;r<j;){let k=e.charCodeAt(r);if(k===42&&e.charCodeAt(r+1)===47){r+=2,M=!0;break}r++,Fy(k)&&(k===13&&e.charCodeAt(r)===10&&r++,c++,u=r)}return M||(r++,p=1),i=e.substring($,r),a=13}return i+=String.fromCharCode(N),r++,a=16;case 45:if(i+=String.fromCharCode(N),r++,r===n||!pd(e.charCodeAt(r)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=m(),a=11;default:for(;r<n&&I(N);)r++,N=e.charCodeAt(r);if(o!==r){switch(i=e.substring(o,r),i){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return i+=String.fromCharCode(N),r++,a=16}}s(T,"scanNext");function I(N){if(X$(N)||Fy(N))return!1;switch(N){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}s(I,"isUnknownContentCharacter");function F(){let N;do N=T();while(N>=12&&N<=15);return N}return s(F,"scanNextNonTrivia"),{setPosition:h,getPosition:s(()=>r,"getPosition"),scan:t?F:T,getToken:s(()=>a,"getToken"),getTokenValue:s(()=>i,"getTokenValue"),getTokenOffset:s(()=>o,"getTokenOffset"),getTokenLength:s(()=>r-o,"getTokenLength"),getTokenStartLine:s(()=>l,"getTokenStartLine"),getTokenStartCharacter:s(()=>o-f,"getTokenStartCharacter"),getTokenError:s(()=>p,"getTokenError")}}function X$(e){return e===32||e===9}function Fy(e){return e===10||e===13}function pd(e){return e>=48&&e<=57}var Oae,lA=ll(()=>{"use strict";s(ju,"createScanner");s(X$,"isWhiteSpace");s(Fy,"isLineBreak");s(pd,"isDigit");(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(Oae||(Oae={}))});var Ki,dd,z$,Iae,_ae=ll(()=>{Ki=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),dd=200,z$={" ":{"\n":new Array(dd).fill(0).map((e,t)=>`
|
|
280
|
-
`+" ".repeat(t)),"\r":new Array(dd).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(dd).fill(0).map((e,t)=>`\r
|
|
281
|
-
`+" ".repeat(t))}," ":{"\n":new Array(dd).fill(0).map((e,t)=>`
|
|
282
|
-
`+" ".repeat(t)),"\r":new Array(dd).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(dd).fill(0).map((e,t)=>`\r
|
|
283
|
-
`+" ".repeat(t))}},Iae=[`
|
|
284
|
-
`,"\r",`\r
|
|
285
|
-
`]});function uA(e,t,n){let r,i,o,a,c;if(t){for(a=t.offset,c=a+t.length,o=a;o>0&&!Ly(e,o-1);)o--;let j=c;for(;j<e.length&&!Ly(e,j);)j++;i=e.substring(o,j),r=NYe(i,n)}else i=e,r=0,o=0,a=0,c=e.length;let l=RYe(n,e),u=Iae.includes(l),f=0,p=0,d;n.insertSpaces?d=Ki[n.tabSize||4]??hd(Ki[1],n.tabSize||4):d=" ";let h=d===" "?" ":" ",m=ju(i,!1),b=!1;function T(){if(f>1)return hd(l,f)+hd(d,r+p);let j=d.length*(r+p);return!u||j>z$[h][l].length?l+hd(d,r+p):j<=0?l:z$[h][l][j]}s(T,"newLinesAndIndent");function I(){let j=m.scan();for(f=0;j===15||j===14;)j===14&&n.keepLines?f+=1:j===14&&(f=1),j=m.scan();return b=j===16||m.getTokenError()!==0,j}s(I,"scanNext");let F=[];function N(j,M,k){!b&&(!t||M<c&&k>a)&&e.substring(M,k)!==j&&F.push({offset:M,length:k-M,content:j})}s(N,"addEdit");let $=I();if(n.keepLines&&f>0&&N(hd(l,f),0,0),$!==17){let j=m.getTokenOffset()+o,M=d.length*r<20&&n.insertSpaces?Ki[d.length*r]:hd(d,r);N(M,o,j)}for(;$!==17;){let j=m.getTokenOffset()+m.getTokenLength()+o,M=I(),k="",U=!1;for(;f===0&&(M===12||M===13);){let se=m.getTokenOffset()+o;N(Ki[1],j,se),j=m.getTokenOffset()+m.getTokenLength()+o,U=M===12,k=U?T():"",M=I()}if(M===2)$!==1&&p--,n.keepLines&&f>0||!n.keepLines&&$!==1?k=T():n.keepLines&&(k=Ki[1]);else if(M===4)$!==3&&p--,n.keepLines&&f>0||!n.keepLines&&$!==3?k=T():n.keepLines&&(k=Ki[1]);else{switch($){case 3:case 1:p++,n.keepLines&&f>0||!n.keepLines?k=T():k=Ki[1];break;case 5:n.keepLines&&f>0||!n.keepLines?k=T():k=Ki[1];break;case 12:k=T();break;case 13:f>0?k=T():U||(k=Ki[1]);break;case 6:n.keepLines&&f>0?k=T():U||(k=Ki[1]);break;case 10:n.keepLines&&f>0?k=T():M===6&&!U&&(k="");break;case 7:case 8:case 9:case 11:case 2:case 4:n.keepLines&&f>0?k=T():(M===12||M===13)&&!U?k=Ki[1]:M!==5&&M!==17&&(b=!0);break;case 16:b=!0;break}f>0&&(M===12||M===13)&&(k=T())}M===17&&(n.keepLines&&f>0?k=T():k=n.insertFinalNewline?l:"");let R=m.getTokenOffset()+o;N(k,j,R),$=M}return F}function hd(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}function NYe(e,t){let n=0,r=0,i=t.tabSize||4;for(;n<e.length;){let o=e.charAt(n);if(o===Ki[1])r++;else if(o===" ")r+=i;else break;n++}return Math.floor(r/i)}function RYe(e,t){for(let n=0;n<t.length;n++){let r=t.charAt(n);if(r==="\r")return n+1<t.length&&t.charAt(n+1)===`
|
|
286
|
-
`?`\r
|
|
287
|
-
`:"\r";if(r===`
|
|
288
|
-
`)return`
|
|
289
|
-
`}return e&&e.eol||`
|
|
290
|
-
`}function Ly(e,t){return`\r
|
|
291
|
-
`.indexOf(e.charAt(t))!==-1}var Q$=ll(()=>{"use strict";lA();_ae();s(uA,"format");s(hd,"repeat");s(NYe,"computeIndentLevel");s(RYe,"getEOL");s(Ly,"isEOL")});function Cae(e,t){let n=[],r=new Object,i,o={value:{},offset:0,length:0,type:"object",parent:void 0},a=!1;function c(l,u,f,p){o.value=l,o.offset=u,o.length=f,o.type=p,o.colonOffset=void 0,i=o}s(c,"setPreviousNode");try{$y(e,{onObjectBegin:s((l,u)=>{if(t<=l)throw r;i=void 0,a=t>l,n.push("")},"onObjectBegin"),onObjectProperty:s((l,u,f)=>{if(t<u||(c(l,u,f,"property"),n[n.length-1]=l,t<=u+f))throw r},"onObjectProperty"),onObjectEnd:s((l,u)=>{if(t<=l)throw r;i=void 0,n.pop()},"onObjectEnd"),onArrayBegin:s((l,u)=>{if(t<=l)throw r;i=void 0,n.push(0)},"onArrayBegin"),onArrayEnd:s((l,u)=>{if(t<=l)throw r;i=void 0,n.pop()},"onArrayEnd"),onLiteralValue:s((l,u,f)=>{if(t<u||(c(l,u,f,Rae(l)),t<=u+f))throw r},"onLiteralValue"),onSeparator:s((l,u,f)=>{if(t<=u)throw r;if(l===":"&&i&&i.type==="property")i.colonOffset=u,a=!1,i=void 0;else if(l===","){let p=n[n.length-1];typeof p=="number"?n[n.length-1]=p+1:(a=!0,n[n.length-1]=""),i=void 0}},"onSeparator")})}catch(l){if(l!==r)throw l}return{path:n,previousNode:i,isAtPropertyKey:a,matches:s(l=>{let u=0;for(let f=0;u<l.length&&f<n.length;f++)if(l[u]===n[f]||l[u]==="*")u++;else if(l[u]!=="**")return!1;return u===l.length},"matches")}}function wae(e,t=[],n=jy.DEFAULT){let r=null,i=[],o=[];function a(l){Array.isArray(i)?i.push(l):r!==null&&(i[r]=l)}return s(a,"onValue"),$y(e,{onObjectBegin:s(()=>{let l={};a(l),o.push(i),i=l,r=null},"onObjectBegin"),onObjectProperty:s(l=>{r=l},"onObjectProperty"),onObjectEnd:s(()=>{i=o.pop()},"onObjectEnd"),onArrayBegin:s(()=>{let l=[];a(l),o.push(i),i=l,r=null},"onArrayBegin"),onArrayEnd:s(()=>{i=o.pop()},"onArrayEnd"),onLiteralValue:a,onError:s((l,u,f)=>{t.push({error:l,offset:u,length:f})},"onError")},n),i[0]}function pA(e,t=[],n=jy.DEFAULT){let r={type:"array",offset:-1,length:-1,children:[],parent:void 0};function i(l){r.type==="property"&&(r.length=l-r.offset,r=r.parent)}s(i,"ensurePropertyComplete");function o(l){return r.children.push(l),l}s(o,"onValue"),$y(e,{onObjectBegin:s(l=>{r=o({type:"object",offset:l,length:-1,parent:r,children:[]})},"onObjectBegin"),onObjectProperty:s((l,u,f)=>{r=o({type:"property",offset:u,length:-1,parent:r,children:[]}),r.children.push({type:"string",value:l,offset:u,length:f,parent:r})},"onObjectProperty"),onObjectEnd:s((l,u)=>{i(l+u),r.length=l+u-r.offset,r=r.parent,i(l+u)},"onObjectEnd"),onArrayBegin:s((l,u)=>{r=o({type:"array",offset:l,length:-1,parent:r,children:[]})},"onArrayBegin"),onArrayEnd:s((l,u)=>{r.length=l+u-r.offset,r=r.parent,i(l+u)},"onArrayEnd"),onLiteralValue:s((l,u,f)=>{o({type:Rae(l),offset:u,length:f,parent:r,value:l}),i(u+f)},"onLiteralValue"),onSeparator:s((l,u,f)=>{r.type==="property"&&(l===":"?r.colonOffset=u:l===","&&i(u))},"onSeparator"),onError:s((l,u,f)=>{t.push({error:l,offset:u,length:f})},"onError")},n);let c=r.children[0];return c&&delete c.parent,c}function Dy(e,t){if(!e)return;let n=e;for(let r of t)if(typeof r=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;let i=!1;for(let o of n.children)if(Array.isArray(o.children)&&o.children[0].value===r&&o.children.length===2){n=o.children[1],i=!0;break}if(!i)return}else{let i=r;if(n.type!=="array"||i<0||!Array.isArray(n.children)||i>=n.children.length)return;n=n.children[i]}return n}function Z$(e){if(!e.parent||!e.parent.children)return[];let t=Z$(e.parent);if(e.parent.type==="property"){let n=e.parent.children[0].value;t.push(n)}else if(e.parent.type==="array"){let n=e.parent.children.indexOf(e);n!==-1&&t.push(n)}return t}function fA(e){switch(e.type){case"array":return e.children.map(fA);case"object":let t=Object.create(null);for(let n of e.children){let r=n.children[1];r&&(t[n.children[0].value]=fA(r))}return t;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function LYe(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}function ek(e,t,n=!1){if(LYe(e,t,n)){let r=e.children;if(Array.isArray(r))for(let i=0;i<r.length&&r[i].offset<=t;i++){let o=ek(r[i],t,n);if(o)return o}return e}}function $y(e,t,n=jy.DEFAULT){let r=ju(e,!1),i=[],o=0;function a(ue){return ue?()=>o===0&&ue(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}s(a,"toNoArgVisit");function c(ue){return ue?W=>o===0&&ue(W,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}s(c,"toOneArgVisit");function l(ue){return ue?W=>o===0&&ue(W,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}s(l,"toOneArgVisitWithPath");function u(ue){return ue?()=>{o>0?o++:ue(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice())===!1&&(o=1)}:()=>!0}s(u,"toBeginVisit");function f(ue){return ue?()=>{o>0&&o--,o===0&&ue(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}s(f,"toEndVisit");let p=u(t.onObjectBegin),d=l(t.onObjectProperty),h=f(t.onObjectEnd),m=u(t.onArrayBegin),b=f(t.onArrayEnd),T=l(t.onLiteralValue),I=c(t.onSeparator),F=a(t.onComment),N=c(t.onError),$=n&&n.disallowComments,j=n&&n.allowTrailingComma;function M(){for(;;){let ue=r.scan();switch(r.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:$||k(11);break;case 2:k(12);break;case 6:k(16);break}switch(ue){case 12:case 13:$?k(10):F();break;case 16:k(1);break;case 15:case 14:break;default:return ue}}}s(M,"scanNext");function k(ue,W=[],H=[]){if(N(ue),W.length+H.length>0){let Ae=r.getToken();for(;Ae!==17;){if(W.indexOf(Ae)!==-1){M();break}else if(H.indexOf(Ae)!==-1)break;Ae=M()}}}s(k,"handleError");function U(ue){let W=r.getTokenValue();return ue?T(W):(d(W),i.push(W)),M(),!0}s(U,"parseString");function R(){switch(r.getToken()){case 11:let ue=r.getTokenValue(),W=Number(ue);isNaN(W)&&(k(2),W=0),T(W);break;case 7:T(null);break;case 8:T(!0);break;case 9:T(!1);break;default:return!1}return M(),!0}s(R,"parseLiteral");function se(){return r.getToken()!==10?(k(3,[],[2,5]),!1):(U(!1),r.getToken()===6?(I(":"),M(),pe()||k(4,[],[2,5])):k(5,[],[2,5]),i.pop(),!0)}s(se,"parseProperty");function G(){p(),M();let ue=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(ue||k(4,[],[]),I(","),M(),r.getToken()===2&&j)break}else ue&&k(6,[],[]);se()||k(4,[],[2,5]),ue=!0}return h(),r.getToken()!==2?k(7,[2],[]):M(),!0}s(G,"parseObject");function Te(){m(),M();let ue=!0,W=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(W||k(4,[],[]),I(","),M(),r.getToken()===4&&j)break}else W&&k(6,[],[]);ue?(i.push(0),ue=!1):i[i.length-1]++,pe()||k(4,[],[4,5]),W=!0}return b(),ue||i.pop(),r.getToken()!==4?k(8,[4],[]):M(),!0}s(Te,"parseArray");function pe(){switch(r.getToken()){case 3:return Te();case 1:return G();case 10:return U(!0);default:return R()}}return s(pe,"parseValue"),M(),r.getToken()===17?n.allowEmptyContent?!0:(k(4,[],[]),!1):pe()?(r.getToken()!==17&&k(9,[],[]),!0):(k(4,[],[]),!1)}function Nae(e,t){let n=ju(e),r=[],i,o=0,a;do switch(a=n.getPosition(),i=n.scan(),i){case 12:case 13:case 17:o!==a&&r.push(e.substring(o,a)),t!==void 0&&r.push(n.getTokenValue().replace(/[^\r\n]/g,t)),o=n.getPosition();break}while(i!==17);return r.join("")}function Rae(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}var jy,tk=ll(()=>{"use strict";lA();(function(e){e.DEFAULT={allowTrailingComma:!1}})(jy||(jy={}));s(Cae,"getLocation");s(wae,"parse");s(pA,"parseTree");s(Dy,"findNodeAtLocation");s(Z$,"getNodePath");s(fA,"getNodeValue");s(LYe,"contains");s(ek,"findNodeAtOffset");s($y,"visit");s(Nae,"stripComments");s(Rae,"getNodeType")});function Fae(e,t,n,r){let i=t.slice(),a=pA(e,[]),c,l;for(;i.length>0&&(l=i.pop(),c=Dy(a,i),c===void 0&&n!==void 0);)typeof l=="string"?n={[l]:n}:n=[n];if(c)if(c.type==="object"&&typeof l=="string"&&Array.isArray(c.children)){let u=Dy(c,[l]);if(u!==void 0)if(n===void 0){if(!u.parent)throw new Error("Malformed AST");let f=c.children.indexOf(u.parent),p,d=u.parent.offset+u.parent.length;if(f>0){let h=c.children[f-1];p=h.offset+h.length}else p=c.offset+1,c.children.length>1&&(d=c.children[1].offset);return Du(e,{offset:p,length:d-p,content:""},r)}else return Du(e,{offset:u.offset,length:u.length,content:JSON.stringify(n)},r);else{if(n===void 0)return[];let f=`${JSON.stringify(l)}: ${JSON.stringify(n)}`,p=r.getInsertionIndex?r.getInsertionIndex(c.children.map(h=>h.children[0].value)):c.children.length,d;if(p>0){let h=c.children[p-1];d={offset:h.offset+h.length,length:0,content:","+f}}else c.children.length===0?d={offset:c.offset+1,length:0,content:f}:d={offset:c.offset+1,length:0,content:f+","};return Du(e,d,r)}}else if(c.type==="array"&&typeof l=="number"&&Array.isArray(c.children)){let u=l;if(u===-1){let f=`${JSON.stringify(n)}`,p;if(c.children.length===0)p={offset:c.offset+1,length:0,content:f};else{let d=c.children[c.children.length-1];p={offset:d.offset+d.length,length:0,content:","+f}}return Du(e,p,r)}else if(n===void 0&&c.children.length>=0){let f=l,p=c.children[f],d;if(c.children.length===1)d={offset:c.offset+1,length:c.length-2,content:""};else if(c.children.length-1===f){let h=c.children[f-1],m=h.offset+h.length,b=c.offset+c.length;d={offset:m,length:b-2-m,content:""}}else d={offset:p.offset,length:c.children[f+1].offset-p.offset,content:""};return Du(e,d,r)}else if(n!==void 0){let f,p=`${JSON.stringify(n)}`;if(!r.isArrayInsertion&&c.children.length>l){let d=c.children[l];f={offset:d.offset,length:d.length,content:p}}else if(c.children.length===0||l===0)f={offset:c.offset+1,length:0,content:c.children.length===0?p:p+","};else{let d=l>c.children.length?c.children.length:l,h=c.children[d-1];f={offset:h.offset+h.length,length:0,content:","+p}}return Du(e,f,r)}else throw new Error(`Can not ${n===void 0?"remove":r.isArrayInsertion?"insert":"modify"} Array index ${u} as length is not sufficient`)}else throw new Error(`Can not add ${typeof l!="number"?"index":"property"} to parent of type ${c.type}`);else{if(n===void 0)throw new Error("Can not delete in empty document");return Du(e,{offset:a?a.offset:0,length:a?a.length:0,content:JSON.stringify(n)},r)}}function Du(e,t,n){if(!n.formattingOptions)return[t];let r=dA(e,t),i=t.offset,o=t.offset+t.content.length;if(t.length===0||t.content.length===0){for(;i>0&&!Ly(r,i-1);)i--;for(;o<r.length&&!Ly(r,o);)o++}let a=uA(r,{offset:i,length:o-i},{...n.formattingOptions,keepLines:!1});for(let l=a.length-1;l>=0;l--){let u=a[l];r=dA(r,u),i=Math.min(i,u.offset),o=Math.max(o,u.offset+u.length),o+=u.content.length-u.length}let c=e.length-(r.length-o)-i;return[{offset:i,length:c,content:r.substring(i,o)}]}function dA(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}var Lae=ll(()=>{"use strict";Q$();tk();s(Fae,"setProperty");s(Du,"withFormatting");s(dA,"applyEdit")});var sk={};nf(sk,{ParseErrorCode:()=>ik,ScanError:()=>nk,SyntaxKind:()=>rk,applyEdits:()=>XYe,createScanner:()=>$Ye,findNodeAtLocation:()=>qYe,findNodeAtOffset:()=>UYe,format:()=>JYe,getLocation:()=>kYe,getNodePath:()=>BYe,getNodeValue:()=>GYe,modify:()=>YYe,parse:()=>MYe,parseTree:()=>VYe,printParseErrorCode:()=>KYe,stripComments:()=>WYe,visit:()=>HYe});function KYe(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function JYe(e,t,n){return uA(e,t,n)}function YYe(e,t,n,r){return Fae(e,t,n,r)}function XYe(e,t){let n=t.slice(0).sort((i,o)=>{let a=i.offset-o.offset;return a===0?i.length-o.length:a}),r=e.length;for(let i=n.length-1;i>=0;i--){let o=n[i];if(o.offset+o.length<=r)e=dA(e,o);else throw new Error("Overlapping edit");r=o.offset}return e}var $Ye,nk,rk,kYe,MYe,VYe,qYe,UYe,BYe,GYe,HYe,WYe,ik,ok=ll(()=>{"use strict";Q$();Lae();lA();tk();$Ye=ju;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(nk||(nk={}));(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(rk||(rk={}));kYe=Cae,MYe=wae,VYe=pA,qYe=Dy,UYe=ek,BYe=Z$,GYe=fA,HYe=$y,WYe=Nae;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(ik||(ik={}));s(KYe,"printParseErrorCode");s(JYe,"format");s(YYe,"modify");s(XYe,"applyEdits")});var gA=y((jae,hA)=>{(function(e){if(typeof hA=="object"&&typeof hA.exports=="object"){var t=e(require,jae);t!==void 0&&(hA.exports=t)}else typeof define=="function"&&define.amd&&define(["require","exports"],e)})(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextDocument=t.EOL=t.WorkspaceFolder=t.InlineCompletionContext=t.SelectedCompletionInfo=t.InlineCompletionTriggerKind=t.InlineCompletionList=t.InlineCompletionItem=t.StringValue=t.InlayHint=t.InlayHintLabelPart=t.InlayHintKind=t.InlineValueContext=t.InlineValueEvaluatableExpression=t.InlineValueVariableLookup=t.InlineValueText=t.SemanticTokens=t.SemanticTokenModifiers=t.SemanticTokenTypes=t.SelectionRange=t.DocumentLink=t.FormattingOptions=t.CodeLens=t.CodeAction=t.CodeActionContext=t.CodeActionTriggerKind=t.CodeActionKind=t.DocumentSymbol=t.WorkspaceSymbol=t.SymbolInformation=t.SymbolTag=t.SymbolKind=t.DocumentHighlight=t.DocumentHighlightKind=t.SignatureInformation=t.ParameterInformation=t.Hover=t.MarkedString=t.CompletionList=t.CompletionItem=t.CompletionItemLabelDetails=t.InsertTextMode=t.InsertReplaceEdit=t.CompletionItemTag=t.InsertTextFormat=t.CompletionItemKind=t.MarkupContent=t.MarkupKind=t.TextDocumentItem=t.OptionalVersionedTextDocumentIdentifier=t.VersionedTextDocumentIdentifier=t.TextDocumentIdentifier=t.WorkspaceChange=t.WorkspaceEdit=t.DeleteFile=t.RenameFile=t.CreateFile=t.TextDocumentEdit=t.AnnotatedTextEdit=t.ChangeAnnotationIdentifier=t.ChangeAnnotation=t.TextEdit=t.Command=t.Diagnostic=t.CodeDescription=t.DiagnosticTag=t.DiagnosticSeverity=t.DiagnosticRelatedInformation=t.FoldingRange=t.FoldingRangeKind=t.ColorPresentation=t.ColorInformation=t.Color=t.LocationLink=t.Location=t.Range=t.Position=t.uinteger=t.integer=t.URI=t.DocumentUri=void 0;var n;(function(_){function V(B){return typeof B=="string"}s(V,"is"),_.is=V})(n||(t.DocumentUri=n={}));var r;(function(_){function V(B){return typeof B=="string"}s(V,"is"),_.is=V})(r||(t.URI=r={}));var i;(function(_){_.MIN_VALUE=-2147483648,_.MAX_VALUE=2147483647;function V(B){return typeof B=="number"&&_.MIN_VALUE<=B&&B<=_.MAX_VALUE}s(V,"is"),_.is=V})(i||(t.integer=i={}));var o;(function(_){_.MIN_VALUE=0,_.MAX_VALUE=2147483647;function V(B){return typeof B=="number"&&_.MIN_VALUE<=B&&B<=_.MAX_VALUE}s(V,"is"),_.is=V})(o||(t.uinteger=o={}));var a;(function(_){function V(L,A){return L===Number.MAX_VALUE&&(L=o.MAX_VALUE),A===Number.MAX_VALUE&&(A=o.MAX_VALUE),{line:L,character:A}}s(V,"create"),_.create=V;function B(L){var A=L;return Q.objectLiteral(A)&&Q.uinteger(A.line)&&Q.uinteger(A.character)}s(B,"is"),_.is=B})(a||(t.Position=a={}));var c;(function(_){function V(L,A,z,le){if(Q.uinteger(L)&&Q.uinteger(A)&&Q.uinteger(z)&&Q.uinteger(le))return{start:a.create(L,A),end:a.create(z,le)};if(a.is(L)&&a.is(A))return{start:L,end:A};throw new Error("Range#create called with invalid arguments[".concat(L,", ").concat(A,", ").concat(z,", ").concat(le,"]"))}s(V,"create"),_.create=V;function B(L){var A=L;return Q.objectLiteral(A)&&a.is(A.start)&&a.is(A.end)}s(B,"is"),_.is=B})(c||(t.Range=c={}));var l;(function(_){function V(L,A){return{uri:L,range:A}}s(V,"create"),_.create=V;function B(L){var A=L;return Q.objectLiteral(A)&&c.is(A.range)&&(Q.string(A.uri)||Q.undefined(A.uri))}s(B,"is"),_.is=B})(l||(t.Location=l={}));var u;(function(_){function V(L,A,z,le){return{targetUri:L,targetRange:A,targetSelectionRange:z,originSelectionRange:le}}s(V,"create"),_.create=V;function B(L){var A=L;return Q.objectLiteral(A)&&c.is(A.targetRange)&&Q.string(A.targetUri)&&c.is(A.targetSelectionRange)&&(c.is(A.originSelectionRange)||Q.undefined(A.originSelectionRange))}s(B,"is"),_.is=B})(u||(t.LocationLink=u={}));var f;(function(_){function V(L,A,z,le){return{red:L,green:A,blue:z,alpha:le}}s(V,"create"),_.create=V;function B(L){var A=L;return Q.objectLiteral(A)&&Q.numberRange(A.red,0,1)&&Q.numberRange(A.green,0,1)&&Q.numberRange(A.blue,0,1)&&Q.numberRange(A.alpha,0,1)}s(B,"is"),_.is=B})(f||(t.Color=f={}));var p;(function(_){function V(L,A){return{range:L,color:A}}s(V,"create"),_.create=V;function B(L){var A=L;return Q.objectLiteral(A)&&c.is(A.range)&&f.is(A.color)}s(B,"is"),_.is=B})(p||(t.ColorInformation=p={}));var d;(function(_){function V(L,A,z){return{label:L,textEdit:A,additionalTextEdits:z}}s(V,"create"),_.create=V;function B(L){var A=L;return Q.objectLiteral(A)&&Q.string(A.label)&&(Q.undefined(A.textEdit)||j.is(A))&&(Q.undefined(A.additionalTextEdits)||Q.typedArray(A.additionalTextEdits,j.is))}s(B,"is"),_.is=B})(d||(t.ColorPresentation=d={}));var h;(function(_){_.Comment="comment",_.Imports="imports",_.Region="region"})(h||(t.FoldingRangeKind=h={}));var m;(function(_){function V(L,A,z,le,ct,Zt){var en={startLine:L,endLine:A};return Q.defined(z)&&(en.startCharacter=z),Q.defined(le)&&(en.endCharacter=le),Q.defined(ct)&&(en.kind=ct),Q.defined(Zt)&&(en.collapsedText=Zt),en}s(V,"create"),_.create=V;function B(L){var A=L;return Q.objectLiteral(A)&&Q.uinteger(A.startLine)&&Q.uinteger(A.startLine)&&(Q.undefined(A.startCharacter)||Q.uinteger(A.startCharacter))&&(Q.undefined(A.endCharacter)||Q.uinteger(A.endCharacter))&&(Q.undefined(A.kind)||Q.string(A.kind))}s(B,"is"),_.is=B})(m||(t.FoldingRange=m={}));var b;(function(_){function V(L,A){return{location:L,message:A}}s(V,"create"),_.create=V;function B(L){var A=L;return Q.defined(A)&&l.is(A.location)&&Q.string(A.message)}s(B,"is"),_.is=B})(b||(t.DiagnosticRelatedInformation=b={}));var T;(function(_){_.Error=1,_.Warning=2,_.Information=3,_.Hint=4})(T||(t.DiagnosticSeverity=T={}));var I;(function(_){_.Unnecessary=1,_.Deprecated=2})(I||(t.DiagnosticTag=I={}));var F;(function(_){function V(B){var L=B;return Q.objectLiteral(L)&&Q.string(L.href)}s(V,"is"),_.is=V})(F||(t.CodeDescription=F={}));var N;(function(_){function V(L,A,z,le,ct,Zt){var en={range:L,message:A};return Q.defined(z)&&(en.severity=z),Q.defined(le)&&(en.code=le),Q.defined(ct)&&(en.source=ct),Q.defined(Zt)&&(en.relatedInformation=Zt),en}s(V,"create"),_.create=V;function B(L){var A,z=L;return Q.defined(z)&&c.is(z.range)&&Q.string(z.message)&&(Q.number(z.severity)||Q.undefined(z.severity))&&(Q.integer(z.code)||Q.string(z.code)||Q.undefined(z.code))&&(Q.undefined(z.codeDescription)||Q.string((A=z.codeDescription)===null||A===void 0?void 0:A.href))&&(Q.string(z.source)||Q.undefined(z.source))&&(Q.undefined(z.relatedInformation)||Q.typedArray(z.relatedInformation,b.is))}s(B,"is"),_.is=B})(N||(t.Diagnostic=N={}));var $;(function(_){function V(L,A){for(var z=[],le=2;le<arguments.length;le++)z[le-2]=arguments[le];var ct={title:L,command:A};return Q.defined(z)&&z.length>0&&(ct.arguments=z),ct}s(V,"create"),_.create=V;function B(L){var A=L;return Q.defined(A)&&Q.string(A.title)&&Q.string(A.command)}s(B,"is"),_.is=B})($||(t.Command=$={}));var j;(function(_){function V(z,le){return{range:z,newText:le}}s(V,"replace"),_.replace=V;function B(z,le){return{range:{start:z,end:z},newText:le}}s(B,"insert"),_.insert=B;function L(z){return{range:z,newText:""}}s(L,"del"),_.del=L;function A(z){var le=z;return Q.objectLiteral(le)&&Q.string(le.newText)&&c.is(le.range)}s(A,"is"),_.is=A})(j||(t.TextEdit=j={}));var M;(function(_){function V(L,A,z){var le={label:L};return A!==void 0&&(le.needsConfirmation=A),z!==void 0&&(le.description=z),le}s(V,"create"),_.create=V;function B(L){var A=L;return Q.objectLiteral(A)&&Q.string(A.label)&&(Q.boolean(A.needsConfirmation)||A.needsConfirmation===void 0)&&(Q.string(A.description)||A.description===void 0)}s(B,"is"),_.is=B})(M||(t.ChangeAnnotation=M={}));var k;(function(_){function V(B){var L=B;return Q.string(L)}s(V,"is"),_.is=V})(k||(t.ChangeAnnotationIdentifier=k={}));var U;(function(_){function V(z,le,ct){return{range:z,newText:le,annotationId:ct}}s(V,"replace"),_.replace=V;function B(z,le,ct){return{range:{start:z,end:z},newText:le,annotationId:ct}}s(B,"insert"),_.insert=B;function L(z,le){return{range:z,newText:"",annotationId:le}}s(L,"del"),_.del=L;function A(z){var le=z;return j.is(le)&&(M.is(le.annotationId)||k.is(le.annotationId))}s(A,"is"),_.is=A})(U||(t.AnnotatedTextEdit=U={}));var R;(function(_){function V(L,A){return{textDocument:L,edits:A}}s(V,"create"),_.create=V;function B(L){var A=L;return Q.defined(A)&&Be.is(A.textDocument)&&Array.isArray(A.edits)}s(B,"is"),_.is=B})(R||(t.TextDocumentEdit=R={}));var se;(function(_){function V(L,A,z){var le={kind:"create",uri:L};return A!==void 0&&(A.overwrite!==void 0||A.ignoreIfExists!==void 0)&&(le.options=A),z!==void 0&&(le.annotationId=z),le}s(V,"create"),_.create=V;function B(L){var A=L;return A&&A.kind==="create"&&Q.string(A.uri)&&(A.options===void 0||(A.options.overwrite===void 0||Q.boolean(A.options.overwrite))&&(A.options.ignoreIfExists===void 0||Q.boolean(A.options.ignoreIfExists)))&&(A.annotationId===void 0||k.is(A.annotationId))}s(B,"is"),_.is=B})(se||(t.CreateFile=se={}));var G;(function(_){function V(L,A,z,le){var ct={kind:"rename",oldUri:L,newUri:A};return z!==void 0&&(z.overwrite!==void 0||z.ignoreIfExists!==void 0)&&(ct.options=z),le!==void 0&&(ct.annotationId=le),ct}s(V,"create"),_.create=V;function B(L){var A=L;return A&&A.kind==="rename"&&Q.string(A.oldUri)&&Q.string(A.newUri)&&(A.options===void 0||(A.options.overwrite===void 0||Q.boolean(A.options.overwrite))&&(A.options.ignoreIfExists===void 0||Q.boolean(A.options.ignoreIfExists)))&&(A.annotationId===void 0||k.is(A.annotationId))}s(B,"is"),_.is=B})(G||(t.RenameFile=G={}));var Te;(function(_){function V(L,A,z){var le={kind:"delete",uri:L};return A!==void 0&&(A.recursive!==void 0||A.ignoreIfNotExists!==void 0)&&(le.options=A),z!==void 0&&(le.annotationId=z),le}s(V,"create"),_.create=V;function B(L){var A=L;return A&&A.kind==="delete"&&Q.string(A.uri)&&(A.options===void 0||(A.options.recursive===void 0||Q.boolean(A.options.recursive))&&(A.options.ignoreIfNotExists===void 0||Q.boolean(A.options.ignoreIfNotExists)))&&(A.annotationId===void 0||k.is(A.annotationId))}s(B,"is"),_.is=B})(Te||(t.DeleteFile=Te={}));var pe;(function(_){function V(B){var L=B;return L&&(L.changes!==void 0||L.documentChanges!==void 0)&&(L.documentChanges===void 0||L.documentChanges.every(function(A){return Q.string(A.kind)?se.is(A)||G.is(A)||Te.is(A):R.is(A)}))}s(V,"is"),_.is=V})(pe||(t.WorkspaceEdit=pe={}));var ue=(function(){function _(V,B){this.edits=V,this.changeAnnotations=B}return s(_,"TextEditChangeImpl"),_.prototype.insert=function(V,B,L){var A,z;if(L===void 0?A=j.insert(V,B):k.is(L)?(z=L,A=U.insert(V,B,L)):(this.assertChangeAnnotations(this.changeAnnotations),z=this.changeAnnotations.manage(L),A=U.insert(V,B,z)),this.edits.push(A),z!==void 0)return z},_.prototype.replace=function(V,B,L){var A,z;if(L===void 0?A=j.replace(V,B):k.is(L)?(z=L,A=U.replace(V,B,L)):(this.assertChangeAnnotations(this.changeAnnotations),z=this.changeAnnotations.manage(L),A=U.replace(V,B,z)),this.edits.push(A),z!==void 0)return z},_.prototype.delete=function(V,B){var L,A;if(B===void 0?L=j.del(V):k.is(B)?(A=B,L=U.del(V,B)):(this.assertChangeAnnotations(this.changeAnnotations),A=this.changeAnnotations.manage(B),L=U.del(V,A)),this.edits.push(L),A!==void 0)return A},_.prototype.add=function(V){this.edits.push(V)},_.prototype.all=function(){return this.edits},_.prototype.clear=function(){this.edits.splice(0,this.edits.length)},_.prototype.assertChangeAnnotations=function(V){if(V===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},_})(),W=(function(){function _(V){this._annotations=V===void 0?Object.create(null):V,this._counter=0,this._size=0}return s(_,"ChangeAnnotations"),_.prototype.all=function(){return this._annotations},Object.defineProperty(_.prototype,"size",{get:s(function(){return this._size},"get"),enumerable:!1,configurable:!0}),_.prototype.manage=function(V,B){var L;if(k.is(V)?L=V:(L=this.nextId(),B=V),this._annotations[L]!==void 0)throw new Error("Id ".concat(L," is already in use."));if(B===void 0)throw new Error("No annotation provided for id ".concat(L));return this._annotations[L]=B,this._size++,L},_.prototype.nextId=function(){return this._counter++,this._counter.toString()},_})(),H=(function(){function _(V){var B=this;this._textEditChanges=Object.create(null),V!==void 0?(this._workspaceEdit=V,V.documentChanges?(this._changeAnnotations=new W(V.changeAnnotations),V.changeAnnotations=this._changeAnnotations.all(),V.documentChanges.forEach(function(L){if(R.is(L)){var A=new ue(L.edits,B._changeAnnotations);B._textEditChanges[L.textDocument.uri]=A}})):V.changes&&Object.keys(V.changes).forEach(function(L){var A=new ue(V.changes[L]);B._textEditChanges[L]=A})):this._workspaceEdit={}}return s(_,"WorkspaceChange"),Object.defineProperty(_.prototype,"edit",{get:s(function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},"get"),enumerable:!1,configurable:!0}),_.prototype.getTextEditChange=function(V){if(Be.is(V)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var B={uri:V.uri,version:V.version},L=this._textEditChanges[B.uri];if(!L){var A=[],z={textDocument:B,edits:A};this._workspaceEdit.documentChanges.push(z),L=new ue(A,this._changeAnnotations),this._textEditChanges[B.uri]=L}return L}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var L=this._textEditChanges[V];if(!L){var A=[];this._workspaceEdit.changes[V]=A,L=new ue(A),this._textEditChanges[V]=L}return L}},_.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new W,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},_.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},_.prototype.createFile=function(V,B,L){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var A;M.is(B)||k.is(B)?A=B:L=B;var z,le;if(A===void 0?z=se.create(V,L):(le=k.is(A)?A:this._changeAnnotations.manage(A),z=se.create(V,L,le)),this._workspaceEdit.documentChanges.push(z),le!==void 0)return le},_.prototype.renameFile=function(V,B,L,A){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var z;M.is(L)||k.is(L)?z=L:A=L;var le,ct;if(z===void 0?le=G.create(V,B,A):(ct=k.is(z)?z:this._changeAnnotations.manage(z),le=G.create(V,B,A,ct)),this._workspaceEdit.documentChanges.push(le),ct!==void 0)return ct},_.prototype.deleteFile=function(V,B,L){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var A;M.is(B)||k.is(B)?A=B:L=B;var z,le;if(A===void 0?z=Te.create(V,L):(le=k.is(A)?A:this._changeAnnotations.manage(A),z=Te.create(V,L,le)),this._workspaceEdit.documentChanges.push(z),le!==void 0)return le},_})();t.WorkspaceChange=H;var Ae;(function(_){function V(L){return{uri:L}}s(V,"create"),_.create=V;function B(L){var A=L;return Q.defined(A)&&Q.string(A.uri)}s(B,"is"),_.is=B})(Ae||(t.TextDocumentIdentifier=Ae={}));var Ne;(function(_){function V(L,A){return{uri:L,version:A}}s(V,"create"),_.create=V;function B(L){var A=L;return Q.defined(A)&&Q.string(A.uri)&&Q.integer(A.version)}s(B,"is"),_.is=B})(Ne||(t.VersionedTextDocumentIdentifier=Ne={}));var Be;(function(_){function V(L,A){return{uri:L,version:A}}s(V,"create"),_.create=V;function B(L){var A=L;return Q.defined(A)&&Q.string(A.uri)&&(A.version===null||Q.integer(A.version))}s(B,"is"),_.is=B})(Be||(t.OptionalVersionedTextDocumentIdentifier=Be={}));var tn;(function(_){function V(L,A,z,le){return{uri:L,languageId:A,version:z,text:le}}s(V,"create"),_.create=V;function B(L){var A=L;return Q.defined(A)&&Q.string(A.uri)&&Q.string(A.languageId)&&Q.integer(A.version)&&Q.string(A.text)}s(B,"is"),_.is=B})(tn||(t.TextDocumentItem=tn={}));var Fe;(function(_){_.PlainText="plaintext",_.Markdown="markdown";function V(B){var L=B;return L===_.PlainText||L===_.Markdown}s(V,"is"),_.is=V})(Fe||(t.MarkupKind=Fe={}));var Oe;(function(_){function V(B){var L=B;return Q.objectLiteral(B)&&Fe.is(L.kind)&&Q.string(L.value)}s(V,"is"),_.is=V})(Oe||(t.MarkupContent=Oe={}));var Lt;(function(_){_.Text=1,_.Method=2,_.Function=3,_.Constructor=4,_.Field=5,_.Variable=6,_.Class=7,_.Interface=8,_.Module=9,_.Property=10,_.Unit=11,_.Value=12,_.Enum=13,_.Keyword=14,_.Snippet=15,_.Color=16,_.File=17,_.Reference=18,_.Folder=19,_.EnumMember=20,_.Constant=21,_.Struct=22,_.Event=23,_.Operator=24,_.TypeParameter=25})(Lt||(t.CompletionItemKind=Lt={}));var In;(function(_){_.PlainText=1,_.Snippet=2})(In||(t.InsertTextFormat=In={}));var et;(function(_){_.Deprecated=1})(et||(t.CompletionItemTag=et={}));var rt;(function(_){function V(L,A,z){return{newText:L,insert:A,replace:z}}s(V,"create"),_.create=V;function B(L){var A=L;return A&&Q.string(A.newText)&&c.is(A.insert)&&c.is(A.replace)}s(B,"is"),_.is=B})(rt||(t.InsertReplaceEdit=rt={}));var Ri;(function(_){_.asIs=1,_.adjustIndentation=2})(Ri||(t.InsertTextMode=Ri={}));var Xi;(function(_){function V(B){var L=B;return L&&(Q.string(L.detail)||L.detail===void 0)&&(Q.string(L.description)||L.description===void 0)}s(V,"is"),_.is=V})(Xi||(t.CompletionItemLabelDetails=Xi={}));var Ee;(function(_){function V(B){return{label:B}}s(V,"create"),_.create=V})(Ee||(t.CompletionItem=Ee={}));var bt;(function(_){function V(B,L){return{items:B||[],isIncomplete:!!L}}s(V,"create"),_.create=V})(bt||(t.CompletionList=bt={}));var P;(function(_){function V(L){return L.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}s(V,"fromPlainText"),_.fromPlainText=V;function B(L){var A=L;return Q.string(A)||Q.objectLiteral(A)&&Q.string(A.language)&&Q.string(A.value)}s(B,"is"),_.is=B})(P||(t.MarkedString=P={}));var E;(function(_){function V(B){var L=B;return!!L&&Q.objectLiteral(L)&&(Oe.is(L.contents)||P.is(L.contents)||Q.typedArray(L.contents,P.is))&&(B.range===void 0||c.is(B.range))}s(V,"is"),_.is=V})(E||(t.Hover=E={}));var J;(function(_){function V(B,L){return L?{label:B,documentation:L}:{label:B}}s(V,"create"),_.create=V})(J||(t.ParameterInformation=J={}));var q;(function(_){function V(B,L){for(var A=[],z=2;z<arguments.length;z++)A[z-2]=arguments[z];var le={label:B};return Q.defined(L)&&(le.documentation=L),Q.defined(A)?le.parameters=A:le.parameters=[],le}s(V,"create"),_.create=V})(q||(t.SignatureInformation=q={}));var Re;(function(_){_.Text=1,_.Read=2,_.Write=3})(Re||(t.DocumentHighlightKind=Re={}));var vt;(function(_){function V(B,L){var A={range:B};return Q.number(L)&&(A.kind=L),A}s(V,"create"),_.create=V})(vt||(t.DocumentHighlight=vt={}));var It;(function(_){_.File=1,_.Module=2,_.Namespace=3,_.Package=4,_.Class=5,_.Method=6,_.Property=7,_.Field=8,_.Constructor=9,_.Enum=10,_.Interface=11,_.Function=12,_.Variable=13,_.Constant=14,_.String=15,_.Number=16,_.Boolean=17,_.Array=18,_.Object=19,_.Key=20,_.Null=21,_.EnumMember=22,_.Struct=23,_.Event=24,_.Operator=25,_.TypeParameter=26})(It||(t.SymbolKind=It={}));var Cn;(function(_){_.Deprecated=1})(Cn||(t.SymbolTag=Cn={}));var Rn;(function(_){function V(B,L,A,z,le){var ct={name:B,kind:L,location:{uri:z,range:A}};return le&&(ct.containerName=le),ct}s(V,"create"),_.create=V})(Rn||(t.SymbolInformation=Rn={}));var ur;(function(_){function V(B,L,A,z){return z!==void 0?{name:B,kind:L,location:{uri:A,range:z}}:{name:B,kind:L,location:{uri:A}}}s(V,"create"),_.create=V})(ur||(t.WorkspaceSymbol=ur={}));var on;(function(_){function V(L,A,z,le,ct,Zt){var en={name:L,detail:A,kind:z,range:le,selectionRange:ct};return Zt!==void 0&&(en.children=Zt),en}s(V,"create"),_.create=V;function B(L){var A=L;return A&&Q.string(A.name)&&Q.number(A.kind)&&c.is(A.range)&&c.is(A.selectionRange)&&(A.detail===void 0||Q.string(A.detail))&&(A.deprecated===void 0||Q.boolean(A.deprecated))&&(A.children===void 0||Array.isArray(A.children))&&(A.tags===void 0||Array.isArray(A.tags))}s(B,"is"),_.is=B})(on||(t.DocumentSymbol=on={}));var ir;(function(_){_.Empty="",_.QuickFix="quickfix",_.Refactor="refactor",_.RefactorExtract="refactor.extract",_.RefactorInline="refactor.inline",_.RefactorRewrite="refactor.rewrite",_.Source="source",_.SourceOrganizeImports="source.organizeImports",_.SourceFixAll="source.fixAll"})(ir||(t.CodeActionKind=ir={}));var Er;(function(_){_.Invoked=1,_.Automatic=2})(Er||(t.CodeActionTriggerKind=Er={}));var zi;(function(_){function V(L,A,z){var le={diagnostics:L};return A!=null&&(le.only=A),z!=null&&(le.triggerKind=z),le}s(V,"create"),_.create=V;function B(L){var A=L;return Q.defined(A)&&Q.typedArray(A.diagnostics,N.is)&&(A.only===void 0||Q.typedArray(A.only,Q.string))&&(A.triggerKind===void 0||A.triggerKind===Er.Invoked||A.triggerKind===Er.Automatic)}s(B,"is"),_.is=B})(zi||(t.CodeActionContext=zi={}));var Qi;(function(_){function V(L,A,z){var le={title:L},ct=!0;return typeof A=="string"?(ct=!1,le.kind=A):$.is(A)?le.command=A:le.edit=A,ct&&z!==void 0&&(le.kind=z),le}s(V,"create"),_.create=V;function B(L){var A=L;return A&&Q.string(A.title)&&(A.diagnostics===void 0||Q.typedArray(A.diagnostics,N.is))&&(A.kind===void 0||Q.string(A.kind))&&(A.edit!==void 0||A.command!==void 0)&&(A.command===void 0||$.is(A.command))&&(A.isPreferred===void 0||Q.boolean(A.isPreferred))&&(A.edit===void 0||pe.is(A.edit))}s(B,"is"),_.is=B})(Qi||(t.CodeAction=Qi={}));var yn;(function(_){function V(L,A){var z={range:L};return Q.defined(A)&&(z.data=A),z}s(V,"create"),_.create=V;function B(L){var A=L;return Q.defined(A)&&c.is(A.range)&&(Q.undefined(A.command)||$.is(A.command))}s(B,"is"),_.is=B})(yn||(t.CodeLens=yn={}));var Zu;(function(_){function V(L,A){return{tabSize:L,insertSpaces:A}}s(V,"create"),_.create=V;function B(L){var A=L;return Q.defined(A)&&Q.uinteger(A.tabSize)&&Q.boolean(A.insertSpaces)}s(B,"is"),_.is=B})(Zu||(t.FormattingOptions=Zu={}));var Ia;(function(_){function V(L,A,z){return{range:L,target:A,data:z}}s(V,"create"),_.create=V;function B(L){var A=L;return Q.defined(A)&&c.is(A.range)&&(Q.undefined(A.target)||Q.string(A.target))}s(B,"is"),_.is=B})(Ia||(t.DocumentLink=Ia={}));var ef;(function(_){function V(L,A){return{range:L,parent:A}}s(V,"create"),_.create=V;function B(L){var A=L;return Q.objectLiteral(A)&&c.is(A.range)&&(A.parent===void 0||_.is(A.parent))}s(B,"is"),_.is=B})(ef||(t.SelectionRange=ef={}));var _a;(function(_){_.namespace="namespace",_.type="type",_.class="class",_.enum="enum",_.interface="interface",_.struct="struct",_.typeParameter="typeParameter",_.parameter="parameter",_.variable="variable",_.property="property",_.enumMember="enumMember",_.event="event",_.function="function",_.method="method",_.macro="macro",_.keyword="keyword",_.modifier="modifier",_.comment="comment",_.string="string",_.number="number",_.regexp="regexp",_.operator="operator",_.decorator="decorator"})(_a||(t.SemanticTokenTypes=_a={}));var K;(function(_){_.declaration="declaration",_.definition="definition",_.readonly="readonly",_.static="static",_.deprecated="deprecated",_.abstract="abstract",_.async="async",_.modification="modification",_.documentation="documentation",_.defaultLibrary="defaultLibrary"})(K||(t.SemanticTokenModifiers=K={}));var ne;(function(_){function V(B){var L=B;return Q.objectLiteral(L)&&(L.resultId===void 0||typeof L.resultId=="string")&&Array.isArray(L.data)&&(L.data.length===0||typeof L.data[0]=="number")}s(V,"is"),_.is=V})(ne||(t.SemanticTokens=ne={}));var ce;(function(_){function V(L,A){return{range:L,text:A}}s(V,"create"),_.create=V;function B(L){var A=L;return A!=null&&c.is(A.range)&&Q.string(A.text)}s(B,"is"),_.is=B})(ce||(t.InlineValueText=ce={}));var Se;(function(_){function V(L,A,z){return{range:L,variableName:A,caseSensitiveLookup:z}}s(V,"create"),_.create=V;function B(L){var A=L;return A!=null&&c.is(A.range)&&Q.boolean(A.caseSensitiveLookup)&&(Q.string(A.variableName)||A.variableName===void 0)}s(B,"is"),_.is=B})(Se||(t.InlineValueVariableLookup=Se={}));var We;(function(_){function V(L,A){return{range:L,expression:A}}s(V,"create"),_.create=V;function B(L){var A=L;return A!=null&&c.is(A.range)&&(Q.string(A.expression)||A.expression===void 0)}s(B,"is"),_.is=B})(We||(t.InlineValueEvaluatableExpression=We={}));var hn;(function(_){function V(L,A){return{frameId:L,stoppedLocation:A}}s(V,"create"),_.create=V;function B(L){var A=L;return Q.defined(A)&&c.is(L.stoppedLocation)}s(B,"is"),_.is=B})(hn||(t.InlineValueContext=hn={}));var bn;(function(_){_.Type=1,_.Parameter=2;function V(B){return B===1||B===2}s(V,"is"),_.is=V})(bn||(t.InlayHintKind=bn={}));var ht;(function(_){function V(L){return{value:L}}s(V,"create"),_.create=V;function B(L){var A=L;return Q.objectLiteral(A)&&(A.tooltip===void 0||Q.string(A.tooltip)||Oe.is(A.tooltip))&&(A.location===void 0||l.is(A.location))&&(A.command===void 0||$.is(A.command))}s(B,"is"),_.is=B})(ht||(t.InlayHintLabelPart=ht={}));var xe;(function(_){function V(L,A,z){var le={position:L,label:A};return z!==void 0&&(le.kind=z),le}s(V,"create"),_.create=V;function B(L){var A=L;return Q.objectLiteral(A)&&a.is(A.position)&&(Q.string(A.label)||Q.typedArray(A.label,ht.is))&&(A.kind===void 0||bn.is(A.kind))&&A.textEdits===void 0||Q.typedArray(A.textEdits,j.is)&&(A.tooltip===void 0||Q.string(A.tooltip)||Oe.is(A.tooltip))&&(A.paddingLeft===void 0||Q.boolean(A.paddingLeft))&&(A.paddingRight===void 0||Q.boolean(A.paddingRight))}s(B,"is"),_.is=B})(xe||(t.InlayHint=xe={}));var Le;(function(_){function V(B){return{kind:"snippet",value:B}}s(V,"createSnippet"),_.createSnippet=V})(Le||(t.StringValue=Le={}));var we;(function(_){function V(B,L,A,z){return{insertText:B,filterText:L,range:A,command:z}}s(V,"create"),_.create=V})(we||(t.InlineCompletionItem=we={}));var qe;(function(_){function V(B){return{items:B}}s(V,"create"),_.create=V})(qe||(t.InlineCompletionList=qe={}));var gt;(function(_){_.Invoked=0,_.Automatic=1})(gt||(t.InlineCompletionTriggerKind=gt={}));var Kt;(function(_){function V(B,L){return{range:B,text:L}}s(V,"create"),_.create=V})(Kt||(t.SelectedCompletionInfo=Kt={}));var an;(function(_){function V(B,L){return{triggerKind:B,selectedCompletionInfo:L}}s(V,"create"),_.create=V})(an||(t.InlineCompletionContext=an={}));var sr;(function(_){function V(B){var L=B;return Q.objectLiteral(L)&&r.is(L.uri)&&Q.string(L.name)}s(V,"is"),_.is=V})(sr||(t.WorkspaceFolder=sr={})),t.EOL=[`
|
|
292
|
-
`,`\r
|
|
293
|
-
`,"\r"];var Ca;(function(_){function V(z,le,ct,Zt){return new al(z,le,ct,Zt)}s(V,"create"),_.create=V;function B(z){var le=z;return!!(Q.defined(le)&&Q.string(le.uri)&&(Q.undefined(le.languageId)||Q.string(le.languageId))&&Q.uinteger(le.lineCount)&&Q.func(le.getText)&&Q.func(le.positionAt)&&Q.func(le.offsetAt))}s(B,"is"),_.is=B;function L(z,le){for(var ct=z.getText(),Zt=A(le,function(wa,Na){var kd=wa.range.start.line-Na.range.start.line;return kd===0?wa.range.start.character-Na.range.start.character:kd}),en=ct.length,Fi=Zt.length-1;Fi>=0;Fi--){var ui=Zt[Fi],Ps=z.offsetAt(ui.range.start),_t=z.offsetAt(ui.range.end);if(_t<=en)ct=ct.substring(0,Ps)+ui.newText+ct.substring(_t,ct.length);else throw new Error("Overlapping edit");en=Ps}return ct}s(L,"applyEdits"),_.applyEdits=L;function A(z,le){if(z.length<=1)return z;var ct=z.length/2|0,Zt=z.slice(0,ct),en=z.slice(ct);A(Zt,le),A(en,le);for(var Fi=0,ui=0,Ps=0;Fi<Zt.length&&ui<en.length;){var _t=le(Zt[Fi],en[ui]);_t<=0?z[Ps++]=Zt[Fi++]:z[Ps++]=en[ui++]}for(;Fi<Zt.length;)z[Ps++]=Zt[Fi++];for(;ui<en.length;)z[Ps++]=en[ui++];return z}s(A,"mergeSort")})(Ca||(t.TextDocument=Ca={}));var al=(function(){function _(V,B,L,A){this._uri=V,this._languageId=B,this._version=L,this._content=A,this._lineOffsets=void 0}return s(_,"FullTextDocument"),Object.defineProperty(_.prototype,"uri",{get:s(function(){return this._uri},"get"),enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"languageId",{get:s(function(){return this._languageId},"get"),enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"version",{get:s(function(){return this._version},"get"),enumerable:!1,configurable:!0}),_.prototype.getText=function(V){if(V){var B=this.offsetAt(V.start),L=this.offsetAt(V.end);return this._content.substring(B,L)}return this._content},_.prototype.update=function(V,B){this._content=V.text,this._version=B,this._lineOffsets=void 0},_.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var V=[],B=this._content,L=!0,A=0;A<B.length;A++){L&&(V.push(A),L=!1);var z=B.charAt(A);L=z==="\r"||z===`
|
|
294
|
-
`,z==="\r"&&A+1<B.length&&B.charAt(A+1)===`
|
|
295
|
-
`&&A++}L&&B.length>0&&V.push(B.length),this._lineOffsets=V}return this._lineOffsets},_.prototype.positionAt=function(V){V=Math.max(Math.min(V,this._content.length),0);var B=this.getLineOffsets(),L=0,A=B.length;if(A===0)return a.create(0,V);for(;L<A;){var z=Math.floor((L+A)/2);B[z]>V?A=z:L=z+1}var le=L-1;return a.create(le,V-B[le])},_.prototype.offsetAt=function(V){var B=this.getLineOffsets();if(V.line>=B.length)return this._content.length;if(V.line<0)return 0;var L=B[V.line],A=V.line+1<B.length?B[V.line+1]:this._content.length;return Math.max(Math.min(L+V.character,A),L)},Object.defineProperty(_.prototype,"lineCount",{get:s(function(){return this.getLineOffsets().length},"get"),enumerable:!1,configurable:!0}),_})(),Q;(function(_){var V=Object.prototype.toString;function B(_t){return typeof _t<"u"}s(B,"defined"),_.defined=B;function L(_t){return typeof _t>"u"}s(L,"undefined"),_.undefined=L;function A(_t){return _t===!0||_t===!1}s(A,"boolean"),_.boolean=A;function z(_t){return V.call(_t)==="[object String]"}s(z,"string"),_.string=z;function le(_t){return V.call(_t)==="[object Number]"}s(le,"number"),_.number=le;function ct(_t,wa,Na){return V.call(_t)==="[object Number]"&&wa<=_t&&_t<=Na}s(ct,"numberRange"),_.numberRange=ct;function Zt(_t){return V.call(_t)==="[object Number]"&&-2147483648<=_t&&_t<=2147483647}s(Zt,"integer"),_.integer=Zt;function en(_t){return V.call(_t)==="[object Number]"&&0<=_t&&_t<=2147483647}s(en,"uinteger"),_.uinteger=en;function Fi(_t){return V.call(_t)==="[object Function]"}s(Fi,"func"),_.func=Fi;function ui(_t){return _t!==null&&typeof _t=="object"}s(ui,"objectLiteral"),_.objectLiteral=ui;function Ps(_t,wa){return Array.isArray(_t)&&_t.every(wa)}s(Ps,"typedArray"),_.typedArray=Ps})(Q||(Q={}))})});var Dae=y(ak=>{"use strict";Object.defineProperty(ak,"__esModule",{value:!0});ak.getLineOffsets=zYe;function zYe(e){let t=[0],n=0;for(;n<e.length;){let r=/[\r\n]/.exec(e.slice(n));if((r==null?void 0:r.index)!==void 0)n+=r.index+1,e[n-1]==="\r"&&e[n]===`
|
|
296
|
-
`&&n++,t.push(n);else break}return t}s(zYe,"getLineOffsets")});var ck=y(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.positionAt=QYe;Hs.isBefore=$u;Hs.positionContained=ZYe;Hs.positionContainedStrict=eXe;Hs.rangeContained=tXe;Hs.getIndentLevel=nXe;Hs.indentWithTabs=kae;Hs.indentWithSpaces=Mae;Hs.indent=rXe;var $ae=gA();function QYe(e,t,n){let r=Math.max(Math.min(t,n),0),i=0,o=e.length;if(o===0)return $ae.Position.create(0,r);for(;i<o;){let c=Math.floor((i+o)/2);e[c]>r?o=c:i=c+1}let a=i-1;return $ae.Position.create(a,r-e[a])}s(QYe,"positionAt");function $u(e,t,n=!1){return e.line<t.line?!0:e.line>t.line?!1:n?e.character<=t.character:e.character<t.character}s($u,"isBefore");function ZYe(e,t){return e!==void 0&&!$u(t,e.start,!1)&&$u(t,e.end,!0)}s(ZYe,"positionContained");function eXe(e,t){return!$u(t,e.start,!1)&&$u(t,e.end,!0)}s(eXe,"positionContainedStrict");function tXe(e,t){return $u(e.start,t.start,!0)&&$u(t.end,e.end,!0)}s(tXe,"rangeContained");function nXe(e,t){let n;return e<0?n=-1:n=e/t,n}s(nXe,"getIndentLevel");function kae(e){return" ".repeat(e)}s(kae,"indentWithTabs");function Mae(e,t){return" ".repeat(e*t)}s(Mae,"indentWithSpaces");function rXe(e,t,n){return t?kae(n):Mae(e,n)}s(rXe,"indent")});var qae=y(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.createRangeWithPosition=Br.copyRange=Br.copyPosition=void 0;Br.rangeAt=iXe;Br.arePositionsEqual=lk;Br.areRangesEqual=sXe;Br.createRange=cXe;var Vae=ck(),ku=gA();function iXe(e,t,n,r){return ku.Range.create((0,Vae.positionAt)(e,t,r),(0,Vae.positionAt)(e,n,r))}s(iXe,"rangeAt");function lk(e,t){return e.line===t.line&&e.character===t.character}s(lk,"arePositionsEqual");function sXe(e,t){return lk(e.start,t.start)&&lk(e.end,t.end)}s(sXe,"areRangesEqual");var oXe=s(e=>ku.Position.create(e.line,e.character),"copyPosition");Br.copyPosition=oXe;var aXe=s(e=>ku.Range.create((0,Br.copyPosition)(e.start),(0,Br.copyPosition)(e.end)),"copyRange");Br.copyRange=aXe;function cXe(e,t,n,r){return ku.Range.create(ku.Position.create(e,t),ku.Position.create(n,r))}s(cXe,"createRange");var lXe=s((e,t)=>e&&t?ku.Range.create((0,Br.copyPosition)(e),(0,Br.copyPosition)(t)):void 0,"createRangeWithPosition");Br.createRangeWithPosition=lXe});var Uae=y(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.printOptions=gd.wrapInQuotes=void 0;var uXe=s(e=>`'${e}'`,"wrapInQuotes");gd.wrapInQuotes=uXe;gd.printOptions={printWidth:300,tabWidth:4,useTabs:!1,useSnippetSyntax:!0}});var Kc=y(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.printOptions=Ce.createRangeWithPosition=Ce.createRange=Ce.arePositionsEqual=Ce.copyPosition=Ce.areRangesEqual=Ce.copyRange=Ce.rangeAt=Ce.positionContained=Ce.rangeContained=Ce.positionContainedStrict=Ce.isBefore=Ce.indentWithSpaces=Ce.indentWithTabs=Ce.getIndentLevel=Ce.positionAt=Ce.getLineOffsets=Ce.MarkedString=Ce.MarkupContent=Ce.CompletionItem=Ce.CompletionList=Ce.Hover=Ce.CodeActionKind=Ce.CodeAction=Ce.MarkupKind=Ce.integer=Ce.InsertTextFormat=Ce.CompletionItemKind=Ce.WorkspaceEdit=Ce.TextEdit=Ce.DiagnosticTag=Ce.DiagnosticSeverity=Ce.Diagnostic=Ce.Position=Ce.Range=Ce.Location=void 0;var rr=gA();Object.defineProperty(Ce,"Location",{enumerable:!0,get:s(function(){return rr.Location},"get")});Object.defineProperty(Ce,"Range",{enumerable:!0,get:s(function(){return rr.Range},"get")});Object.defineProperty(Ce,"Position",{enumerable:!0,get:s(function(){return rr.Position},"get")});Object.defineProperty(Ce,"Diagnostic",{enumerable:!0,get:s(function(){return rr.Diagnostic},"get")});Object.defineProperty(Ce,"DiagnosticSeverity",{enumerable:!0,get:s(function(){return rr.DiagnosticSeverity},"get")});Object.defineProperty(Ce,"DiagnosticTag",{enumerable:!0,get:s(function(){return rr.DiagnosticTag},"get")});Object.defineProperty(Ce,"TextEdit",{enumerable:!0,get:s(function(){return rr.TextEdit},"get")});Object.defineProperty(Ce,"WorkspaceEdit",{enumerable:!0,get:s(function(){return rr.WorkspaceEdit},"get")});Object.defineProperty(Ce,"CompletionItemKind",{enumerable:!0,get:s(function(){return rr.CompletionItemKind},"get")});Object.defineProperty(Ce,"InsertTextFormat",{enumerable:!0,get:s(function(){return rr.InsertTextFormat},"get")});Object.defineProperty(Ce,"integer",{enumerable:!0,get:s(function(){return rr.integer},"get")});Object.defineProperty(Ce,"MarkupKind",{enumerable:!0,get:s(function(){return rr.MarkupKind},"get")});Object.defineProperty(Ce,"CodeAction",{enumerable:!0,get:s(function(){return rr.CodeAction},"get")});Object.defineProperty(Ce,"CodeActionKind",{enumerable:!0,get:s(function(){return rr.CodeActionKind},"get")});Object.defineProperty(Ce,"Hover",{enumerable:!0,get:s(function(){return rr.Hover},"get")});Object.defineProperty(Ce,"CompletionList",{enumerable:!0,get:s(function(){return rr.CompletionList},"get")});Object.defineProperty(Ce,"CompletionItem",{enumerable:!0,get:s(function(){return rr.CompletionItem},"get")});Object.defineProperty(Ce,"MarkupContent",{enumerable:!0,get:s(function(){return rr.MarkupContent},"get")});Object.defineProperty(Ce,"MarkedString",{enumerable:!0,get:s(function(){return rr.MarkedString},"get")});var fXe=Dae();Object.defineProperty(Ce,"getLineOffsets",{enumerable:!0,get:s(function(){return fXe.getLineOffsets},"get")});var Wc=ck();Object.defineProperty(Ce,"positionAt",{enumerable:!0,get:s(function(){return Wc.positionAt},"get")});Object.defineProperty(Ce,"getIndentLevel",{enumerable:!0,get:s(function(){return Wc.getIndentLevel},"get")});Object.defineProperty(Ce,"indentWithTabs",{enumerable:!0,get:s(function(){return Wc.indentWithTabs},"get")});Object.defineProperty(Ce,"indentWithSpaces",{enumerable:!0,get:s(function(){return Wc.indentWithSpaces},"get")});Object.defineProperty(Ce,"isBefore",{enumerable:!0,get:s(function(){return Wc.isBefore},"get")});Object.defineProperty(Ce,"positionContainedStrict",{enumerable:!0,get:s(function(){return Wc.positionContainedStrict},"get")});Object.defineProperty(Ce,"rangeContained",{enumerable:!0,get:s(function(){return Wc.rangeContained},"get")});Object.defineProperty(Ce,"positionContained",{enumerable:!0,get:s(function(){return Wc.positionContained},"get")});var Mu=qae();Object.defineProperty(Ce,"rangeAt",{enumerable:!0,get:s(function(){return Mu.rangeAt},"get")});Object.defineProperty(Ce,"copyRange",{enumerable:!0,get:s(function(){return Mu.copyRange},"get")});Object.defineProperty(Ce,"areRangesEqual",{enumerable:!0,get:s(function(){return Mu.areRangesEqual},"get")});Object.defineProperty(Ce,"copyPosition",{enumerable:!0,get:s(function(){return Mu.copyPosition},"get")});Object.defineProperty(Ce,"arePositionsEqual",{enumerable:!0,get:s(function(){return Mu.arePositionsEqual},"get")});Object.defineProperty(Ce,"createRange",{enumerable:!0,get:s(function(){return Mu.createRange},"get")});Object.defineProperty(Ce,"createRangeWithPosition",{enumerable:!0,get:s(function(){return Mu.createRangeWithPosition},"get")});var pXe=Uae();Object.defineProperty(Ce,"printOptions",{enumerable:!0,get:s(function(){return pXe.printOptions},"get")})});var Gae=y(uk=>{"use strict";Object.defineProperty(uk,"__esModule",{value:!0});uk.jsonToI18nBundle=gXe;var dXe=(ok(),rf(sk)),Ts=Kc();function mA(e,t){return{value:e,range:t}}s(mA,"createTextNode");function Bae(e,t,n){if(!e)return;let r;switch(typeof e.value){case"string":{let i=(0,Ts.positionAt)(t,e.offset+1,n),{value:o}=e;r=mA(o,Ts.Range.create(i,Ts.Position.create(i.line,i.character+o.length)));break}case"number":{let i=(0,Ts.positionAt)(t,e.offset,n),o=e.value.toString();r=mA(o,Ts.Range.create(i,Ts.Position.create(i.line,i.character+o.length)));break}case"boolean":{let i=(0,Ts.positionAt)(t,e.offset,n),o=e.value?"true":"";r=mA(o,Ts.Range.create(i,Ts.Position.create(i.line,i.character+o.length)));break}default:{let i=(0,Ts.positionAt)(t,e.offset,n);r=mA("",Ts.Range.create(i,i))}}return r}s(Bae,"toTextNode");function hXe(e,t,n,r){let i=[];for(let o of e)if(o.type==="property"){let a=Bae((o.children??[])[0],t,n),c=Bae((o.children??[])[1],t,n);a&&c&&i.push({filePath:r,key:a,value:c})}return i}s(hXe,"processTextNodes");function gXe(e,t=""){var c,l;let n={},r=(0,dXe.parseTree)(e),i=(0,Ts.getLineOffsets)(e),o=e.length;if((r==null?void 0:r.type)!=="object")return n;let a=r.children??[];for(let u of a)if(u.type==="property"){let f=((c=(u.children??[])[0])==null?void 0:c.value)??"",p=((l=(u.children??[])[1])==null?void 0:l.children)??[];n[f]=hXe(p,i,o,t)}return n}s(gXe,"jsonToI18nBundle")});var fk=y(yA=>{"use strict";Object.defineProperty(yA,"__esModule",{value:!0});yA.jsonToI18nBundle=void 0;var mXe=Gae();Object.defineProperty(yA,"jsonToI18nBundle",{enumerable:!0,get:s(function(){return mXe.jsonToI18nBundle},"get")})});var Hae=y(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.WHITESPACE=Eo.END_OF_LINE=Eo.COMMENT_START=Eo.SEPARATOR=void 0;Eo.SEPARATOR=/[:=]/;Eo.COMMENT_START=/[#!]/;Eo.END_OF_LINE=/\r|\n|\r\n/;Eo.WHITESPACE=/[ \t\f]+/});var Jae=y(gk=>{"use strict";Object.defineProperty(gk,"__esModule",{value:!0});gk.tokenize=TXe;var bA=Hae();function pk(e){return e?bA.WHITESPACE.test(e):!1}s(pk,"isWhitespace");function Wae(e){return e==="\\"}s(Wae,"isEscape");function yXe(e){return e?bA.COMMENT_START.test(e):!1}s(yXe,"isComment");function Vu(e){return e?bA.END_OF_LINE.test(e):!1}s(Vu,"isEndOfLine");function dk(e){return e?bA.SEPARATOR.test(e):!1}s(dk,"isSeparator");function Kae(e){return e==="\\"}s(Kae,"isEscapeS");function bXe(e){return e.replace(/\\\s+/g,"\\")}s(bXe,"cleanSpacesAfterEscape");function vXe(e){var n;let t=e.filter(r=>r.type!=="whitespace");return((n=t[t.length-1])==null?void 0:n.type)==="separator"}s(vXe,"isValue");var mk=class mk{offset;text;tokens;constructor(t){this.text=t,this.offset=0,this.tokens=[]}peekToken(t=0){return this.tokens[t]}peek(t=0){if(!(this.offset+t>=this.text.length))return this.text.charAt(this.offset+t)}next(t=1){if(!(this.offset>=this.text.length))return this.offset=this.offset+t,this.text.charAt(t)}getImage(t,n){return this.text.substring(t,n)}createToken(t,n,r,i){return{type:t,image:i??this.getImage(n,r),start:n,end:r}}consumeWhitespace(){let t=this.offset,n=this.peekToken(this.getTokens().length-1);for(;pk(this.peek());)this.next();let r="whitespace";!dk(this.peek())&&(n==null?void 0:n.type)==="key"&&(r="separator");let i=this.offset;this.tokens.push(this.createToken(r,t,i))}consumeComment(){let t=this.offset;for(;this.peek()&&!Vu(this.peek());)this.next();let n=this.offset;this.tokens.push(this.createToken("comment",t,n))}consumeKey(){let t=this.offset;for(;this.peek();){let r=this.peek();if(Vu(r)||pk(r))break;if(Kae(r)){this.next(2);continue}if(dk(r))break;this.next()}let n=this.offset;this.tokens.push(this.createToken("key",t,n))}collectEscape(){let t="";for(;Wae(this.peek());)t+=this.peek(),this.next();return t}consumeValue(t=this.offset){for(;this.peek();){let r=this.peek();if(Wae(r)){this.consumeEscape(t);return}if(Vu(r))break;this.next()}let n=this.offset;this.tokens.push(this.createToken("value",t,n))}consumeEndOfLine(){let t=this.offset;for(;Vu(this.peek());)this.next();let n=this.offset;this.tokens.push(this.createToken("end-of-line",t,n))}consumeEscape(t,n=!0){if(this.collectEscape().length%2===0){let o=this.offset;this.tokens.push(this.createToken("value",t,o));return}let i=this.peek();for(Vu(i)&&this.next();this.peek();){let o=this.peek();if(Kae(o)){this.consumeEscape(t,!1);continue}if(Vu(o))break;this.next()}if(n){let o=this.offset,a=bXe(this.getImage(t,o));this.tokens.push(this.createToken("value",t,o,a))}}consumeSeparator(){let t=this.offset;this.next();let n=this.offset;this.tokens.push(this.createToken("separator",t,n))}tokenize(){for(;this.peek();){let t=this.peek();if(pk(t)){this.consumeWhitespace();continue}if(Vu(t)){this.consumeEndOfLine();continue}if(yXe(t)){this.consumeComment();continue}if(dk(t)){this.consumeSeparator();continue}if(vXe(this.getTokens())){this.consumeValue();continue}this.consumeKey()}}getTokens(){return this.tokens}};s(mk,"PropertiesTokenizer");var hk=mk;function TXe(e){let t=new hk(e);return t.tokenize(),t.getTokens()}s(TXe,"tokenize")});var Yae=y(bk=>{"use strict";Object.defineProperty(bk,"__esModule",{value:!0});bk.getPropertyList=SXe;var ky=Kc(),vk=class vk{tokens;text;index;list;lineOffsets;contentLength;constructor(t,n){this.tokens=t,this.text=n,this.index=0,this.list=[],this.lineOffsets=(0,ky.getLineOffsets)(n),this.contentLength=this.text.length}peek(){if(this.tokens[this.index]!==void 0)return this.tokens[this.index]}next(t=1){if(!(this.index>=this.tokens.length))return this.index=this.index+t,this.tokens[this.index]}consumeComment(){let t=this.peek();if(t&&t.type==="comment"){let n={type:"comment-line",value:t.image,range:(0,ky.rangeAt)(this.lineOffsets,t.start,t.end,this.contentLength)};this.list.push(n),this.next()}}consumeKey(){let t;for(;this.peek();){let n=this.peek();if(!n)break;if(n.type==="key"){t={type:"key",value:n.image,range:(0,ky.rangeAt)(this.lineOffsets,n.start,n.end,this.contentLength)},this.next();break}this.next()}return t}consumeValue(){let t;for(;this.peek();){let n=this.peek();if(!n)break;if(n.type==="value"){t={type:"value",value:n.image,range:(0,ky.rangeAt)(this.lineOffsets,n.start,n.end,this.contentLength)},this.next();break}this.next()}return t}consumeKeyValue(){let t=this.consumeKey();if(!t)return;let n=this.consumeValue();n||(n={type:"value",value:"",range:{...t.range,start:{line:t.range.end.line,character:t.range.end.character}}});let r=this.peek(),i={type:"key-element-line",key:t,element:n,range:ky.Range.create(t.range.start,n.range.end)};(r==null?void 0:r.type)==="end-of-line"&&(i.endOfLineToken=r),this.list.push(i)}createList(){for(;this.peek();){let t=this.peek();if(!t)break;if(["whitespace","separator","end-of-line"].includes(t.type)){this.next();continue}if(t.type==="comment"){this.consumeComment();continue}this.consumeKeyValue()}}getList(){return this.list}};s(vk,"PropertiesList");var yk=vk;function SXe(e,t){let n=new yk(e,t);return n.createList(),n.getList()}s(SXe,"getPropertyList")});var Sk=y(Tk=>{"use strict";Object.defineProperty(Tk,"__esModule",{value:!0});Tk.parseProperties=AXe;var EXe=Jae(),PXe=Yae();function AXe(e){let t=(0,EXe.tokenize)(e);return{ast:(0,PXe.getPropertyList)(t,e),tokens:t}}s(AXe,"parseProperties")});var Xae=y(Ek=>{"use strict";Object.defineProperty(Ek,"__esModule",{value:!0});Ek.getAnnotation=_Xe;var My=Kc();function xXe(e,t,n){let{range:{start:r},value:i}=e;return t!==-1?{value:i.slice(1,t),range:My.Range.create(r.line,r.character,r.line,r.character+t)}:n!==-1?{value:i.slice(1,n),range:My.Range.create(r.line,r.character+1,r.line,r.character+n)}:{value:i.slice(1),range:My.Range.create(r.line,r.character,r.line,r.character+i.length)}}s(xXe,"toTextTypeNode");function OXe(e,t,n){if(t===-1)return;let{range:{start:r},value:i}=e;return{value:Number.parseInt(i.slice(t+1,n===-1?void 0:n),10),range:My.Range.create(r.line,r.character+t+1,r.line,r.character+(n===-1?i.length:n))}}s(OXe,"toMaxLength");function IXe(e,t){if(t===-1)return;let{range:{start:n},value:r}=e;return{value:r.slice(t+1),range:My.Range.create(n.line,n.character+t+1,n.line,n.character+r.length)}}s(IXe,"toNote");function _Xe(e){if((e==null?void 0:e.type)!=="comment-line")return;let{value:t}=e,n=t.indexOf(","),r=t.indexOf(":");return{textType:xXe(e,n,r),maxLength:OXe(e,n,r),note:IXe(e,r)}}s(_Xe,"getAnnotation")});var zae=y(Pk=>{"use strict";Object.defineProperty(Pk,"__esModule",{value:!0});Pk.propertiesToI18nEntry=NXe;var CXe=Sk(),wXe=Xae();function NXe(e,t=""){let n=[],{ast:r}=(0,CXe.parseProperties)(e);for(let i=0;r.length>i;i++){let o=r[i];if(o.type!=="key-element-line")continue;let a=r[i-1],c={filePath:t,key:{value:o.key.value,range:o.key.range},value:{value:o.element.value,range:o.element.range},annotation:(0,wXe.getAnnotation)(a)};n.push(c)}return n}s(NXe,"propertiesToI18nEntry")});var TA=y(vA=>{"use strict";Object.defineProperty(vA,"__esModule",{value:!0});vA.propertiesToI18nEntry=void 0;var RXe=zae();Object.defineProperty(vA,"propertiesToI18nEntry",{enumerable:!0,get:s(function(){return RXe.propertiesToI18nEntry},"get")})});var Ak=y(SA=>{"use strict";Object.defineProperty(SA,"__esModule",{value:!0});SA.TokenType=void 0;var Qae;(function(e){e.separator="separator",e.eol="eol",e.text="text",e.escaped="escaped-text"})(Qae||(SA.TokenType=Qae={}))});var ece=y(Ok=>{"use strict";Object.defineProperty(Ok,"__esModule",{value:!0});Ok.tokenize=LXe;var md=Ak(),Zae=/[,;\t]/;function FXe(e){return Zae.test(e)||e===`
|
|
297
|
-
`}s(FXe,"isSeparatorOrNewLine");var Ik=class Ik{i;value;mode;start;lastTextTokenType;tokens;constructor(){this.i=0,this.value="",this.mode="default",this.start=0,this.lastTextTokenType=md.TokenType.text,this.tokens=[]}createToken(t){for(;this.i<t.length;){let n=t[this.i];this.mode==="default"?FXe(n)?this.handleSeparatorOrNewLine(n):n==='"'?this.mode="quoted":this.value+=n:this.mode==="quoted"&&this.handleQuotedCharacter(t,n),this.i++}this.value&&this.tokens.push({type:md.TokenType.text,value:this.value,start:this.start,end:this.i})}handleSeparatorOrNewLine(t){this.tokens.push({type:this.lastTextTokenType,value:this.value,start:this.start,end:this.i}),t===`
|
|
298
|
-
`?this.tokens.push({type:md.TokenType.eol,value:`
|
|
299
|
-
`,start:this.i,end:this.i+1}):Zae.test(t)&&this.tokens.push({type:md.TokenType.separator,value:t,start:this.i,end:this.i+1}),this.value="",this.start=this.i+1,this.lastTextTokenType=md.TokenType.text}handleQuotedCharacter(t,n){n==='"'?this.i+1<t.length&&t[this.i+1]==='"'?(this.value+='"',this.i++):(this.lastTextTokenType=md.TokenType.escaped,this.mode="default"):this.value+=n}getTokens(){return this.tokens}};s(Ik,"CsvTokenizer");var xk=Ik;function LXe(e){let t=new xk;return t.createToken(e),t.getTokens()}s(LXe,"tokenize")});var tce=y(Ck=>{"use strict";Object.defineProperty(Ck,"__esModule",{value:!0});Ck.parseCsv=DXe;var ya=Kc(),Po=Ak(),jXe=ece(),wk=class wk{text;lineOffsets;i;tokens;constructor(t){this.text=t,this.tokens=(0,jXe.tokenize)(t),this.lineOffsets=(0,ya.getLineOffsets)(t),this.i=0}getTokens(){return this.tokens}getContentLength(){return this.text.length}peek(t=0){return this.tokens[this.i+t]}consume(){return this.tokens[this.i++]}eof(){return this.i>=this.tokens.length}parseField(){let t=this.consume();return{quoted:t.type===Po.TokenType.escaped,value:t.value,range:ya.Range.create((0,ya.positionAt)(this.lineOffsets,t.start,this.getContentLength()),(0,ya.positionAt)(this.lineOffsets,t.end,this.getContentLength()))}}parseRow(){var n,r,i;let t={fields:[],range:ya.Range.create(0,0,0,0)};for(;!this.eof()&&((n=this.peek())==null?void 0:n.type)!==Po.TokenType.eol;){(((r=this.peek())==null?void 0:r.type)===Po.TokenType.escaped||((i=this.peek())==null?void 0:i.type)===Po.TokenType.text)&&t.fields.push(this.parseField());let o=this.peek();o&&o.type!==Po.TokenType.eol&&(o.type===Po.TokenType.separator&&this.peek(1)===void 0&&t.fields.push({quoted:!1,value:"",range:ya.Range.create((0,ya.positionAt)(this.lineOffsets,o.end,this.getContentLength()),(0,ya.positionAt)(this.lineOffsets,o.end,this.getContentLength()))}),this.consume())}if(t.fields.length){let o=t.fields[0].range.start,a=t.fields[t.fields.length-1].range.end;t.range=ya.Range.create(o.line,o.character,a.line,a.character)}return t}parseDocument(){var n,r,i;for(;!this.eof();){let o=this.peek();if((o==null?void 0:o.type)===Po.TokenType.text&&o.value.length===0&&((n=this.peek(1))==null?void 0:n.type)===Po.TokenType.eol)this.consume(),this.consume();else break}let t={header:this.parseRow(),rows:[]};for(;!this.eof();)(((r=this.peek())==null?void 0:r.type)===Po.TokenType.escaped||((i=this.peek())==null?void 0:i.type)===Po.TokenType.text)&&t.rows.push(this.parseRow()),this.consume();return t}};s(wk,"ParseCsv");var _k=wk;function DXe(e){let t=new _k(e),n=t.getTokens();return{ast:t.parseDocument(),tokens:n}}s(DXe,"parseCsv")});var Nk=y(EA=>{"use strict";Object.defineProperty(EA,"__esModule",{value:!0});EA.parseCsv=void 0;var $Xe=tce();Object.defineProperty(EA,"parseCsv",{enumerable:!0,get:s(function(){return $Xe.parseCsv},"get")})});var rce=y(Rk=>{"use strict";Object.defineProperty(Rk,"__esModule",{value:!0});Rk.csvToI18nBundle=MXe;var kXe=Nk();function nce(e){if(e)return{value:e.value,range:e.range}}s(nce,"toTextNode");function MXe(e,t=""){let n={},{ast:r}=(0,kXe.parseCsv)(e);for(let i=1;i<r.header.fields.length;i++){let o=r.header.fields[i],a=[];for(let c of r.rows)if(c){let l=nce(c.fields[0]),u=nce(c.fields[i]);l&&u&&a.push({filePath:t,key:l,value:u})}n[o.value]=a}return n}s(MXe,"csvToI18nBundle")});var Fk=y(PA=>{"use strict";Object.defineProperty(PA,"__esModule",{value:!0});PA.csvToI18nBundle=void 0;var VXe=rce();Object.defineProperty(PA,"csvToI18nBundle",{enumerable:!0,get:s(function(){return VXe.csvToI18nBundle},"get")})});var ice=y(Lk=>{"use strict";Object.defineProperty(Lk,"__esModule",{value:!0});Lk.getCapI18nBundle=WXe;var qu=So(),qXe=fk(),UXe=TA(),BXe=Fk();async function GXe(e,t,n){if(!await(0,qu.doesExist)(e))return;let r=await(0,qu.readFile)(e,n);return t(r,e)}s(GXe,"tryTransformTexts");var HXe=s(e=>[{toI18nBundle:qXe.jsonToI18nBundle,bundlePath:qu.jsonPath},{toI18nBundle:s((t,n)=>({[e]:(0,UXe.propertiesToI18nEntry)(t,n)}),"toI18nBundle"),bundlePath:qu.capPropertiesPath},{toI18nBundle:BXe.csvToI18nBundle,bundlePath:qu.csvPath}],"getTransformers");async function WXe(e,t,n,r){let i={},{defaultLanguage:o,fallbackLanguage:a}=(0,qu.getI18nConfiguration)(t),c=(0,qu.getCapI18nFiles)(e,t,n);for(let l of c){let u=HXe(a);for(let{toI18nBundle:f,bundlePath:p}of u){let d=p(l,t),h=await GXe(d,f,r);if(!h)continue;let m=h[a]??h[o]??[];for(let b of m)i[b.key.value]||(i[b.key.value]=[]),i[b.key.value].push(b);break}}return i}s(WXe,"getCapI18nBundle")});var sce=y(AA=>{"use strict";Object.defineProperty(AA,"__esModule",{value:!0});AA.getCapI18nBundle=void 0;var KXe=ice();Object.defineProperty(AA,"getCapI18nBundle",{enumerable:!0,get:s(function(){return KXe.getCapI18nBundle},"get")})});var oce=y(jk=>{"use strict";Object.defineProperty(jk,"__esModule",{value:!0});jk.getPropertiesI18nBundle=XXe;var JXe=TA(),YXe=So();async function XXe(e,t){let n={},r=await(0,YXe.readFile)(e,t),i=(0,JXe.propertiesToI18nEntry)(r,e);for(let o of i)n[o.key.value]||(n[o.key.value]=[]),n[o.key.value].push(o);return n}s(XXe,"getPropertiesI18nBundle")});var ace=y(xA=>{"use strict";Object.defineProperty(xA,"__esModule",{value:!0});xA.getPropertiesI18nBundle=void 0;var zXe=oce();Object.defineProperty(xA,"getPropertiesI18nBundle",{enumerable:!0,get:s(function(){return zXe.getPropertiesI18nBundle},"get")})});var cce=y(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.getPropertiesI18nBundle=yd.getCapI18nBundle=void 0;var QXe=sce();Object.defineProperty(yd,"getCapI18nBundle",{enumerable:!0,get:s(function(){return QXe.getCapI18nBundle},"get")});var ZXe=ace();Object.defineProperty(yd,"getPropertiesI18nBundle",{enumerable:!0,get:s(function(){return ZXe.getPropertiesI18nBundle},"get")})});var IA={};nf(IA,{TextDocument:()=>Dk});function $k(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);$k(r,t),$k(i,t);let o=0,a=0,c=0;for(;o<r.length&&a<i.length;)t(r[o],i[a])<=0?e[c++]=r[o++]:e[c++]=i[a++];for(;o<r.length;)e[c++]=r[o++];for(;a<i.length;)e[c++]=i[a++];return e}function lce(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);uce(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function uce(e){return e===13||e===10}function fce(e){let t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function eze(e){let t=fce(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var Vy,OA,Dk,_A=ll(()=>{"use strict";Vy=class Vy{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(Vy.isIncremental(r)){let i=fce(r.range),o=this.offsetAt(i.start),a=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(a,this._content.length);let c=Math.max(i.start.line,0),l=Math.max(i.end.line,0),u=this._lineOffsets,f=lce(r.text,!1,o);if(l-c===f.length)for(let d=0,h=f.length;d<h;d++)u[d+c+1]=f[d];else f.length<1e4?u.splice(c+1,l-c,...f):this._lineOffsets=u=u.slice(0,c+1).concat(f,u.slice(l+1));let p=r.text.length-(a-o);if(p!==0)for(let d=c+1+f.length,h=u.length;d<h;d++)u[d]=u[d]+p}else if(Vy.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=lce(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){let a=Math.floor((r+i)/2);n[a]>t?i=a:r=a+1}let o=r-1;return t=this.ensureBeforeEOL(t,n[o]),{line:o,character:t-n[o]}}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line];if(t.character<=0)return r;let i=t.line+1<n.length?n[t.line+1]:this._content.length,o=Math.min(r+t.character,i);return this.ensureBeforeEOL(o,r)}ensureBeforeEOL(t,n){for(;t>n&&uce(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}};s(Vy,"FullTextDocument");OA=Vy;(function(e){function t(i,o,a,c){return new OA(i,o,a,c)}s(t,"create"),e.create=t;function n(i,o,a){if(i instanceof OA)return i.update(o,a),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}s(n,"update"),e.update=n;function r(i,o){let a=i.getText(),c=$k(o.map(eze),(f,p)=>{let d=f.range.start.line-p.range.start.line;return d===0?f.range.start.character-p.range.start.character:d}),l=0,u=[];for(let f of c){let p=i.offsetAt(f.range.start);if(p<l)throw new Error("Overlapping edit");p>l&&u.push(a.substring(l,p)),f.newText.length&&u.push(f.newText),l=i.offsetAt(f.range.end)}return u.push(a.substr(l)),u.join("")}s(r,"applyEdits"),e.applyEdits=r})(Dk||(Dk={}));s($k,"mergeSort");s(lce,"computeLineOffsets");s(uce,"isEOL");s(fce,"getWellformedRange");s(eze,"getWellformedEdit")});var dce=y(NA=>{"use strict";Object.defineProperty(NA,"__esModule",{value:!0});NA.addJsonTexts=pce;NA.tryAddJsonTexts=rze;var wA=(_A(),rf(IA)),ba=So(),kk=Kc(),tze=(ok(),rf(sk));function CA(e,t){let n=t.reduce((r,i)=>(r[i.key]=i.value,r),{});return{[e]:n}}s(CA,"createFullBundle");var Mk=s(e=>wA.TextDocument.create("","",0,e),"getTextDocument");function nze(e,t,n,r,i,o){let a=(n.children??[])[1],c=(a==null?void 0:a.children)??[];if(c.length){let l=Mk(e),u=l.positionAt(c[0].offset),f="";for(let d of o)f+=`${r+r}"${d.key}": "${d.value}",${i}`;let p={newText:f,range:kk.Range.create(u.line,0,u.line,0)};return wA.TextDocument.applyEdits(l,[p])}if(a!=null&&a.offset){let l=Mk(e),u=l.positionAt(a.offset),f=l.positionAt(a.offset+a.length),p=CA(t,o),d=JSON.stringify(p[t],void 0,r),m={newText:(0,ba.applyIndent)(`${d}`,r,i,!1),range:kk.Range.create(u,f)};return wA.TextDocument.applyEdits(l,[m])}return e}s(nze,"addToExistingFallbackLocalNode");function pce(e,t,n){if(e===""){let b=CA(t,n);return JSON.stringify(b,void 0,4)}let r=(0,tze.parseTree)(e);if((r==null?void 0:r.type)!=="object")return e;let i=r.children??[],o=(0,ba.discoverLineEnding)(e),a=(0,ba.discoverIndent)(e);if(i.length===0){let b=CA(t,n);return JSON.stringify(b,void 0,4)}let c=i.find(b=>{var T;return((T=(b.children??[])[0])==null?void 0:T.value)===t});if(c)return nze(e,t,c,a,o,n);let l=Mk(e),[u]=i.slice(-1),f=l.positionAt(u.offset),p=CA(t,n),d=JSON.stringify(p[t],void 0,a),m={newText:(0,ba.applyIndent)(`"${t}": ${d},`,a,o)+o,range:kk.Range.create(f.line,0,f.line,0)};return wA.TextDocument.applyEdits(l,[m])}s(pce,"addJsonTexts");async function rze(e,t,n,r){let i=(0,ba.jsonPath)(t);if(!await(0,ba.doesExist)(i))return!1;let{fallbackLanguage:o}=(0,ba.getI18nConfiguration)(e),a=await(0,ba.readFile)(i,r),c=pce(a,o,n);return await(0,ba.writeFile)(i,c,r),!0}s(rze,"tryAddJsonTexts")});var Vk=y(FA=>{"use strict";Object.defineProperty(FA,"__esModule",{value:!0});FA.addCsvTexts=gce;FA.tryAddCsvTexts=oze;var bd=So(),hce=(_A(),rf(IA)),RA=Kc(),ize=Nk();function sze(e,t,n,r,i){let o="";for(let a of n){o+=`${a.key};`;for(let c=1;c<r.length;c++)r[c].value===i&&(o+=`${a.value}`),c+1!==r.length&&(o+=";");o+=t}return e.endsWith(t)?e+o:e+t+o}s(sze,"addFallbackCsvText");function gce(e,t,n){let{ast:r}=(0,ize.parseCsv)(e),i=(0,bd.discoverLineEnding)(e),o=r.header.fields;if(o.length===0){let d=`key;${t}${i}`;for(let h of n)d+=`${h.key};${h.value}${i}`;return e+d}if(o.findIndex(d=>d.value===t)!==-1)return sze(e,i,n,o,t);let c=hce.TextDocument.create("","",0,e),l=[];l.push({newText:`;${t}`,range:RA.Range.create(0,r.header.range.end.character,0,r.header.range.end.character)});for(let d of r.rows)l.push({newText:";",range:RA.Range.create(d.range.end,d.range.end)});let u=`${i}`;for(let d of n){u+=`${d.key};`;for(let h=1;h<o.length;h++)u+=";";u+=`${d.value}${i}`}let f=r.rows.slice(-1)[0],p=f?f.range.end:RA.Position.create(1,0);return l.push({newText:u,range:RA.Range.create(p,p)}),hce.TextDocument.applyEdits(c,l)}s(gce,"addCsvTexts");async function oze(e,t,n,r){let i=(0,bd.csvPath)(t);if(!await(0,bd.doesExist)(i))return!1;let{defaultLanguage:o}=(0,bd.getI18nConfiguration)(e),a=await(0,bd.readFile)(i,r),c=gce(a,o,n);return await(0,bd.writeFile)(i,c,r),!0}s(oze,"tryAddCsvTexts")});var Bk=y(Uk=>{"use strict";Object.defineProperty(Uk,"__esModule",{value:!0});Uk.writeToExistingI18nPropertiesFile=cze;var qk=So(),mce=Kc(),yce=(_A(),rf(IA)),aze=Sk();async function cze(e,t,n=[],r){let i=t.map(c=>(0,qk.printPropertiesI18nEntry)(c.key,c.value,c.annotation)).join(""),o=await(0,qk.readFile)(e,r);n.length&&(o=lze(o,n));let a=o.split(/\r\n|\n/);return a.length>0&&a[a.length-1].trim()&&(i=`
|
|
300
|
-
${i}`),await(0,qk.writeFile)(e,o.concat(i),r),!0}s(cze,"writeToExistingI18nPropertiesFile");function lze(e,t){let n=yce.TextDocument.create("","",0,e),r=[],{ast:i}=(0,aze.parseProperties)(e);for(let o=0;o<i.length;o++){let a=i[o];if(a.type==="key-element-line"&&t.findIndex(c=>a.key.value.includes(c))!==-1){let c=i[o-1],l=c.type==="comment-line"?c.range.start:a.range.start,u=a.endOfLineToken?n.positionAt(a.endOfLineToken.end):a.range.end;r.push(mce.TextEdit.del(mce.Range.create(l,u)))}}return yce.TextDocument.applyEdits(n,r).trim()}s(lze,"removeKeysFromI18nPropertiesFile")});var bce=y(Gk=>{"use strict";Object.defineProperty(Gk,"__esModule",{value:!0});Gk.tryAddPropertiesTexts=pze;var LA=So(),uze=Vk(),fze=Bk();async function pze(e,t,n,r){let i=n.map(a=>(0,LA.printPropertiesI18nEntry)(a.key,a.value,a.annotation)).join(""),o=(0,LA.capPropertiesPath)(t,e);return await(0,LA.doesExist)(o)?await(0,fze.writeToExistingI18nPropertiesFile)(o,n,[],r):(await(0,uze.tryAddCsvTexts)(e,t,n,r)||await(0,LA.writeFile)(o,i,r),!0)}s(pze,"tryAddPropertiesTexts")});var Tce=y(Hk=>{"use strict";Object.defineProperty(Hk,"__esModule",{value:!0});Hk.createCapI18nEntries=yze;var dze=require("path"),vce=So(),hze=dce(),gze=Vk(),mze=bce();async function yze(e,t,n,r,i){let{baseFileName:o}=(0,vce.getI18nConfiguration)(r),a=await(0,vce.getCapI18nFolder)(e,t,r,i),c=(0,dze.join)(a,o),l=[hze.tryAddJsonTexts,mze.tryAddPropertiesTexts,gze.tryAddCsvTexts];for(let u of l)if(await u(r,c,n,i))return!0;return!1}s(yze,"createCapI18nEntries")});var Sce=y(jA=>{"use strict";Object.defineProperty(jA,"__esModule",{value:!0});jA.createCapI18nEntries=void 0;var bze=Tce();Object.defineProperty(jA,"createCapI18nEntries",{enumerable:!0,get:s(function(){return bze.createCapI18nEntries},"get")})});var Ace=y(DA=>{"use strict";Object.defineProperty(DA,"__esModule",{value:!0});DA.createPropertiesI18nEntries=Tze;DA.removeAndCreateI18nEntries=Sze;var Wk=So(),Ece=Bk(),vze=require("path");async function Tze(e,t,n,r){return(!r&&!await(0,Wk.doesExist)(e)||r&&!r.exists(e))&&await Pce(e,n,r),await(0,Ece.writeToExistingI18nPropertiesFile)(e,t,[],r)}s(Tze,"createPropertiesI18nEntries");async function Sze(e,t,n=[],r,i){(!i&&!await(0,Wk.doesExist)(e)||i&&!i.exists(e))&&await Pce(e,r,i),await(0,Ece.writeToExistingI18nPropertiesFile)(e,t,n,i)}s(Sze,"removeAndCreateI18nEntries");async function Pce(e,t,n){let r=`# Resource bundle
|
|
301
|
-
`;return t&&(r=`# This is the resource bundle for ${(0,vze.basename)(t)}
|
|
302
|
-
`),(0,Wk.writeFile)(e,r,n)}s(Pce,"createNewI18nFile")});var Oce=y(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.removeAndCreateI18nEntries=vd.createPropertiesI18nEntries=void 0;var xce=Ace();Object.defineProperty(vd,"createPropertiesI18nEntries",{enumerable:!0,get:s(function(){return xce.createPropertiesI18nEntries},"get")});Object.defineProperty(vd,"removeAndCreateI18nEntries",{enumerable:!0,get:s(function(){return xce.removeAndCreateI18nEntries},"get")})});var _ce=y(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.removeAndCreateI18nEntries=Jc.createPropertiesI18nEntries=Jc.createCapI18nEntries=void 0;var Eze=Sce();Object.defineProperty(Jc,"createCapI18nEntries",{enumerable:!0,get:s(function(){return Eze.createCapI18nEntries},"get")});var Ice=Oce();Object.defineProperty(Jc,"createPropertiesI18nEntries",{enumerable:!0,get:s(function(){return Ice.createPropertiesI18nEntries},"get")});Object.defineProperty(Jc,"removeAndCreateI18nEntries",{enumerable:!0,get:s(function(){return Ice.removeAndCreateI18nEntries},"get")})});var Cce=y(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.propertiesToI18nEntry=Yc.jsonToI18nBundle=Yc.csvToI18nBundle=void 0;var Pze=Fk();Object.defineProperty(Yc,"csvToI18nBundle",{enumerable:!0,get:s(function(){return Pze.csvToI18nBundle},"get")});var Aze=fk();Object.defineProperty(Yc,"jsonToI18nBundle",{enumerable:!0,get:s(function(){return Aze.jsonToI18nBundle},"get")});var xze=TA();Object.defineProperty(Yc,"propertiesToI18nEntry",{enumerable:!0,get:s(function(){return xze.propertiesToI18nEntry},"get")})});var $A=y(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.propertiesToI18nEntry=Tt.jsonToI18nBundle=Tt.csvToI18nBundle=Tt.SapShortTextType=Tt.SapLongTextType=Tt.printPropertiesI18nAnnotation=Tt.printPropertiesI18nEntry=Tt.convertToPascalCase=Tt.convertToCamelCase=Tt.getI18nUniqueKey=Tt.extractDoubleCurlyBracketsKey=Tt.extractI18nKey=Tt.getI18nTextType=Tt.getI18nMaxLength=Tt.getI18nFolderNames=Tt.removeAndCreateI18nEntries=Tt.createPropertiesI18nEntries=Tt.createCapI18nEntries=Tt.getPropertiesI18nBundle=Tt.getCapI18nBundle=void 0;var wce=cce();Object.defineProperty(Tt,"getCapI18nBundle",{enumerable:!0,get:s(function(){return wce.getCapI18nBundle},"get")});Object.defineProperty(Tt,"getPropertiesI18nBundle",{enumerable:!0,get:s(function(){return wce.getPropertiesI18nBundle},"get")});var Kk=_ce();Object.defineProperty(Tt,"createCapI18nEntries",{enumerable:!0,get:s(function(){return Kk.createCapI18nEntries},"get")});Object.defineProperty(Tt,"createPropertiesI18nEntries",{enumerable:!0,get:s(function(){return Kk.createPropertiesI18nEntries},"get")});Object.defineProperty(Tt,"removeAndCreateI18nEntries",{enumerable:!0,get:s(function(){return Kk.removeAndCreateI18nEntries},"get")});var Ao=So();Object.defineProperty(Tt,"getI18nFolderNames",{enumerable:!0,get:s(function(){return Ao.getI18nFolderNames},"get")});Object.defineProperty(Tt,"getI18nMaxLength",{enumerable:!0,get:s(function(){return Ao.getI18nMaxLength},"get")});Object.defineProperty(Tt,"getI18nTextType",{enumerable:!0,get:s(function(){return Ao.getI18nTextType},"get")});Object.defineProperty(Tt,"extractI18nKey",{enumerable:!0,get:s(function(){return Ao.extractI18nKey},"get")});Object.defineProperty(Tt,"extractDoubleCurlyBracketsKey",{enumerable:!0,get:s(function(){return Ao.extractDoubleCurlyBracketsKey},"get")});Object.defineProperty(Tt,"getI18nUniqueKey",{enumerable:!0,get:s(function(){return Ao.getI18nUniqueKey},"get")});Object.defineProperty(Tt,"convertToCamelCase",{enumerable:!0,get:s(function(){return Ao.convertToCamelCase},"get")});Object.defineProperty(Tt,"convertToPascalCase",{enumerable:!0,get:s(function(){return Ao.convertToPascalCase},"get")});Object.defineProperty(Tt,"printPropertiesI18nEntry",{enumerable:!0,get:s(function(){return Ao.printPropertiesI18nEntry},"get")});Object.defineProperty(Tt,"printPropertiesI18nAnnotation",{enumerable:!0,get:s(function(){return Ao.printPropertiesI18nAnnotation},"get")});var Nce=G$();Object.defineProperty(Tt,"SapLongTextType",{enumerable:!0,get:s(function(){return Nce.SapLongTextType},"get")});Object.defineProperty(Tt,"SapShortTextType",{enumerable:!0,get:s(function(){return Nce.SapShortTextType},"get")});var Jk=Cce();Object.defineProperty(Tt,"csvToI18nBundle",{enumerable:!0,get:s(function(){return Jk.csvToI18nBundle},"get")});Object.defineProperty(Tt,"jsonToI18nBundle",{enumerable:!0,get:s(function(){return Jk.jsonToI18nBundle},"get")});Object.defineProperty(Tt,"propertiesToI18nEntry",{enumerable:!0,get:s(function(){return Jk.propertiesToI18nEntry},"get")})});var Rce=y(MA=>{"use strict";Object.defineProperty(MA,"__esModule",{value:!0});MA.getI18nBundles=Oze;MA.getCapI18nFolderNames=Ize;var kA=$A(),Xk=qy();function Yk(e,t,n){e.errors||(e.errors={}),e.errors[t]=n}s(Yk,"addToErrors");async function Oze(e,t,n,r){let i={"sap.app":{},models:{},service:{}};try{i["sap.app"]=await(0,kA.getPropertiesI18nBundle)(t["sap.app"],r)}catch(o){Yk(i,"sap.app",o)}for(let o of Object.keys(t.models))try{i.models[o]=await(0,kA.getPropertiesI18nBundle)(t.models[o].path,r)}catch(a){i.models[o]={},Yk(i,`models.${o}`,a)}if(n==="CAPJava"||n==="CAPNodejs")try{let o=await(0,Xk.getCapEnvironment)(e),a=await(0,Xk.getCdsFiles)(e,!0);i.service=await(0,kA.getCapI18nBundle)(e,o,a,r)}catch(o){Yk(i,"service",o)}return i}s(Oze,"getI18nBundles");async function Ize(e){let t=await(0,Xk.getCapEnvironment)(e);return(0,kA.getI18nFolderNames)(t)}s(Ize,"getCapI18nFolderNames")});var jce=y(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.createCapI18nEntries=Cze;Td.createUI5I18nEntries=wze;Td.createAnnotationI18nEntries=Nze;Td.createManifestI18nEntries=Rze;var VA=$A(),_ze=qy(),Uu=require("path"),Fce=ei(),zk=require("fs/promises");async function Cze(e,t,n,r){let i=await(0,_ze.getCapEnvironment)(e);return(0,VA.createCapI18nEntries)(e,t,n,i,r)}s(Cze,"createCapI18nEntries");async function Lce(e,t,n,r,i,o){var d,h;let a="i18n/i18n.properties",c=(d=n.models[i])==null?void 0:d.path;if(c){let m=(0,Uu.dirname)(c);return o||await(0,zk.mkdir)(m,{recursive:!0}),(0,VA.createPropertiesI18nEntries)(c,r,e,o)}let l=await(0,Fce.readJSON)(t),u={...(h=l["sap.ui5"])==null?void 0:h.models};u[i]={type:"sap.ui.model.resource.ResourceModel",uri:a};let f={...l,"sap.ui5":{...l["sap.ui5"],models:u}};await(0,Fce.writeFile)(t,JSON.stringify(f,void 0,4),o);let p=(0,Uu.dirname)(a);return o||await(0,zk.mkdir)((0,Uu.join)((0,Uu.dirname)(t),p),{recursive:!0}),(0,VA.createPropertiesI18nEntries)((0,Uu.join)((0,Uu.dirname)(t),a),r,e,o)}s(Lce,"createUI5I18nEntriesBase");async function wze(e,t,n,r,i,o){return Lce(e,t,n,r,i,o)}s(wze,"createUI5I18nEntries");async function Nze(e,t,n,r,i){return Lce(e,t,n,r,"@i18n",i)}s(Nze,"createAnnotationI18nEntries");async function Rze(e,t,n,r){let i=t["sap.app"],o=(0,Uu.dirname)(i);return r||await(0,zk.mkdir)(o,{recursive:!0}),(0,VA.createPropertiesI18nEntries)(i,n,e,r)}s(Rze,"createManifestI18nEntries")});var UA=y(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.createCapI18nEntries=Gr.createAnnotationI18nEntries=Gr.createUI5I18nEntries=Gr.createManifestI18nEntries=Gr.getI18nBundles=Gr.getCapI18nFolderNames=Gr.getI18nPropertiesPaths=void 0;var Fze=q$();Object.defineProperty(Gr,"getI18nPropertiesPaths",{enumerable:!0,get:s(function(){return Fze.getI18nPropertiesPaths},"get")});var Dce=Rce();Object.defineProperty(Gr,"getCapI18nFolderNames",{enumerable:!0,get:s(function(){return Dce.getCapI18nFolderNames},"get")});Object.defineProperty(Gr,"getI18nBundles",{enumerable:!0,get:s(function(){return Dce.getI18nBundles},"get")});var qA=jce();Object.defineProperty(Gr,"createManifestI18nEntries",{enumerable:!0,get:s(function(){return qA.createManifestI18nEntries},"get")});Object.defineProperty(Gr,"createUI5I18nEntries",{enumerable:!0,get:s(function(){return qA.createUI5I18nEntries},"get")});Object.defineProperty(Gr,"createAnnotationI18nEntries",{enumerable:!0,get:s(function(){return qA.createAnnotationI18nEntries},"get")});Object.defineProperty(Gr,"createCapI18nEntries",{enumerable:!0,get:s(function(){return qA.createCapI18nEntries},"get")})});var BA=y(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.getProject=Dze;Ta.getAppProgrammingLanguage=Vze;Ta.getAppType=qce;Ta.getProjectType=Uze;Ta.getMinUI5VersionFromManifest=Uce;Ta.getMinUI5VersionAsArray=Bce;Ta.getMinimumUI5Version=Bze;var Xc=require("path"),Uy=Ui(),va=ei(),Qk=Jm(),Lze=q$(),kce=Km(),$ce=V$(),Mce=Wm(),Vce=ry(),jze=C_();async function Dze(e,t){if(!await(0,va.fileExists)((0,Xc.join)(e,Uy.FileName.Package),t))throw new Error(`The project root folder '${e}' is not a Fiori project. No 'package.json' found.`);let r=await(0,Qk.getCapProjectType)(e)??"EDMXBackend",i=r==="EDMXBackend"?void 0:await(0,Qk.getCapCustomPaths)(e),o=await $ze(e,t),a=await kze(e,o,t);return{root:(0,jze.normalizePath)(e),projectType:r,apps:a,capCustomPaths:i}}s(Dze,"getProject");async function $ze(e,t){let n=await(0,kce.findAllApps)([e],t);return n.length>0?n.map(r=>(0,Xc.relative)(e,r.appRoot)):[""]}s($ze,"getAppFolders");async function kze(e,t,n){let r={};for(let i of t){let o=await Mze(e,i,n);o&&(r[i]=o)}return r}s(kze,"getApps");async function Mze(e,t,n){let r=(0,Xc.join)(e,t),i=await(0,Mce.getWebappPath)(r,n),o=await qce(r,n),a=(0,Xc.join)(i,Uy.FileName.Manifest);if(!await(0,va.fileExists)(a,n))return;let c=await(0,va.readJSON)(a,n),l=(0,Xc.join)(i,Uy.DirName.Changes),u=await(0,Lze.getI18nPropertiesPaths)(a,c,n),f=(0,$ce.getMainService)(c),p=await(0,$ce.getServicesAndAnnotations)(a,c,n);return{appRoot:r,appType:o,manifest:a,changes:l,i18n:u,mainService:f,services:p}}s(Mze,"getApplicationStructure");async function Vze(e,t){let n=["node_modules",".git"],r="";try{let i=await(0,Mce.getWebappPath)(e,t);await(0,va.fileExists)(i,t)&&(await(0,va.fileExists)((0,Xc.join)(e,Uy.FileName.Tsconfig),t)&&(await(0,va.findFilesByExtension)(".ts",i,n,t)).length>0?r="TypeScript":(await(0,va.findFilesByExtension)(".js",i,n,t)).length>0&&(r="JavaScript"))}catch{}return r}s(Vze,"getAppProgrammingLanguage");async function qce(e,t){var r,i,o,a,c,l,u,f;let n;try{let p=await(0,kce.findFioriArtifacts)({wsFolders:[e],artifacts:["adaptations","applications","extensions","libraries"],memFs:t});(((r=p.applications)==null?void 0:r.length)??0)+(((i=p.adaptations)==null?void 0:i.length)??0)+(((o=p.extensions)==null?void 0:o.length)??0)+(((a=p.libraries)==null?void 0:a.length)??0)===1&&(((c=p.applications)==null?void 0:c.length)===1?n=await qze(p.applications[0],t):((l=p.adaptations)==null?void 0:l.length)===1?n="Fiori Adaptation":((u=p.extensions)==null?void 0:u.length)===1?n="SAPUI5 Extension":((f=p.libraries)==null?void 0:f.length)===1&&(n="Fiori Reuse"))}catch{}return n}s(qce,"getAppType");async function qze(e,t){let n,r=(0,Xc.join)(e.projectRoot,Uy.FileName.Package),i=await(0,va.fileExists)(r,t)?await(0,va.readJSON)(r,t):null;return e.projectRoot===e.appRoot?n=i!=null&&i.sapux?"SAP Fiori elements":"SAPUI5 freestyle":i?n=Array.isArray(i.sapux)&&i.sapux.find(o=>(0,Xc.join)(e.projectRoot,...o.split(/[/\\]/))===e.appRoot)?"SAP Fiori elements":"SAPUI5 freestyle":n="SAPUI5 freestyle",n}s(qze,"getApplicationType");async function Uze(e){let t=await(0,Qk.getCapProjectType)(e);return t===void 0?"EDMXBackend":t}s(Uze,"getProjectType");function Uce(e){var n;let t=(n=e["sap.ui5"])==null?void 0:n.dependencies;if(t)return t.minUI5Version}s(Uce,"getMinUI5VersionFromManifest");function Bce(e,t=!1){let n=[],r=Uce(e);return r&&(Array.isArray(r)?r:[r]).forEach(o=>{(t||(0,Vce.valid)(o))&&n.push(o)}),n}s(Bce,"getMinUI5VersionAsArray");function Bze(e){let t,n=Bce(e);return n.length>0&&n.forEach(r=>{(!t||(0,Vce.gte)(t,r))&&(t=r)}),t}s(Bze,"getMinimumUI5Version")});var Gce=y(Zk=>{"use strict";Object.defineProperty(Zk,"__esModule",{value:!0});Zk.getMtaPath=Kze;var Gze=O_(),Hze=Ui(),Wze=require("path");async function Kze(e,t){let n=await(0,Gze.findFileUp)(Hze.FileName.MtaYaml,e,t);if(n){let r=(0,Wze.dirname)(n);return{mtaPath:n,hasRoot:r!==e}}else return}s(Kze,"getMtaPath")});var rM=y(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.getSpecificationModuleFromCache=nM;Ed.getSpecification=Zze;Ed.refreshSpecificationDistTags=tM;Ed.getSpecificationPath=n9e;var eM=require("fs"),Hce=require("fs/promises"),Sa=require("path"),Jze=ry(),By=_T(),Yze=Wm(),Xze=BA(),zc=Ui(),Gy=ei(),zze=R_(),Sd=(0,Sa.join)(zc.fioriToolsDirectory,zc.FileName.SpecificationDistTags);async function Qze(e,t){var r;let n="latest";try{let i=await(0,Yze.getWebappPath)(e),o=await(0,Gy.readJSON)((0,Sa.join)(i,zc.FileName.Manifest)),a=(0,Xze.getMinimumUI5Version)(o);if(a&&(0,Jze.valid)(a)){let[c,l]=a.split(".");n=`UI5-${c}.${l}`}}catch(i){(r=t==null?void 0:t.logger)==null||r.error(`Failed to get minimum UI5 version from manifest: ${i} using 'latest'`)}return n}s(Qze,"getProjectDistTag");async function Wce(e){var n;return!!((n=(await(0,Gy.readJSON)((0,Sa.join)(e,zc.FileName.Package))).devDependencies)!=null&&n["@sap/ux-specification"])}s(Wce,"hasSpecificationDevDependency");async function nM(e,t){let n=t==null?void 0:t.logger,r,i=await Kce(e,{logger:n});try{r=await e9e(i,{logger:n}),n==null||n.debug(`Specification loaded from cache using version '${i}'`)}catch(o){throw n==null||n.error(`Failed to load specification: ${o}`),new Error(`Failed to load specification: ${o}`)}return r}s(nM,"getSpecificationModuleFromCache");async function Zze(e,t){let n=t==null?void 0:t.logger;try{if(await Wce(e))return n==null||n.debug(`Specification found in devDependencies of project '${e}', trying to load`),(0,By.loadModuleFromProject)(e,"@sap/ux-specification")}catch{n==null||n.debug(`Specification not found in project '${e}', trying to load from cache`)}return await nM(e,{logger:n})}s(Zze,"getSpecification");async function tM(e){let t=e==null?void 0:e.logger;try{let n=await(0,zze.execNpmCommand)(["view","@sap/ux-specification","dist-tags","--json"],{logger:t}),r=JSON.parse(n);if("error"in r)throw new Error(n);(0,eM.existsSync)(zc.fioriToolsDirectory)||await(0,Hce.mkdir)(zc.fioriToolsDirectory,{recursive:!0}),await(0,Gy.writeFile)(Sd,JSON.stringify(r,null,4));let i=new Set(Object.values(r)),o=(0,Sa.join)(zc.moduleCacheRoot,"@sap/ux-specification"),a=(0,eM.existsSync)(o)?(await(0,Hce.readdir)(o,{withFileTypes:!0})).filter(c=>c.isDirectory()).filter(c=>!i.has(c.name)).map(c=>c.name):[];for(let c of a)await(0,By.deleteModule)("@sap/ux-specification",c),t==null||t.debug(`Deleted unused specification module '@sap/ux-specification@${c}' from cache`)}catch(n){t==null||t.error(`Error refreshing specification dist-tags: ${n}`)}}s(tM,"refreshSpecificationDistTags");async function e9e(e,t){let n=t==null?void 0:t.logger;return await(0,By.getModule)("@sap/ux-specification",e,{logger:n})}s(e9e,"getSpecificationByVersion");async function t9e(e,t){let n=t==null?void 0:t.logger;(0,eM.existsSync)(Sd)||(n==null||n.debug(`Specification dist-tags not found at '${Sd}'. Trying to refresh.`),await tM({logger:n}));let r=await(0,Gy.readJSON)(Sd);return"error"in r&&!(e in r)&&!("latest"in r)&&(n==null||n.debug(`Specification dist-tags file has error at '${Sd}'. Trying to refresh.`),await tM({logger:n}),r=await(0,Gy.readJSON)(Sd)),r[e]??r.latest}s(t9e,"convertDistTagToVersion");async function Kce(e,t){let n=t==null?void 0:t.logger,r=await Qze(e,{logger:n});return await t9e(r,{logger:n})}s(Kce,"getSpecificationVersion");async function n9e(e,t){let n=t==null?void 0:t.logger,r="@sap/ux-specification";if(await Wce(e)){let c=await(0,By.getModulePath)(e,r);return n==null||n.debug(`Specification root found in project '${e}'`),c.slice(0,c.lastIndexOf((0,Sa.join)(r))+(0,Sa.join)(r).length)}await nM(e,{logger:n});let i=await Kce(e,{logger:n});n==null||n.debug(`Specification not found in project '${e}', using path from cache with version '${i}'`);let o=(0,Sa.join)(zc.moduleCacheRoot,r,i),a=await(0,By.getModulePath)(o,r);return a.slice(0,a.lastIndexOf((0,Sa.join)(r))+(0,Sa.join)(r).length)}s(n9e,"getSpecificationPath")});var sM=y(iM=>{"use strict";Object.defineProperty(iM,"__esModule",{value:!0});iM.readFlexChanges=s9e;var r9e=require("path"),Jce=ei(),i9e=require("fs");async function s9e(e,t){let n={};if((0,i9e.existsSync)(e)){let r=await(0,Jce.readDirectory)(e);for(let i of r)n[i]=await(0,Jce.readFile)((0,r9e.join)(e,i),t)}return n}s(s9e,"readFlexChanges")});var zce=y(HA=>{"use strict";Object.defineProperty(HA,"__esModule",{value:!0});HA.createApplicationAccess=p9e;HA.createProjectAccess=d9e;var Yce=require("path"),Pd=UA(),Xce=BA(),o9e=Km(),Ad=ei(),a9e=Ui(),c9e=rM(),l9e=sM(),u9e=Jm(),aM=class aM{_project;appId;options;constructor(t,n,r){this._project=t,this.appId=n,this.options=r}get app(){return this.project.apps[this.appId]}createAnnotationI18nEntries(t){var n;return(0,Pd.createAnnotationI18nEntries)(this.project.root,this.app.manifest,this.app.i18n,t,(n=this.options)==null?void 0:n.fs)}createUI5I18nEntries(t,n="i18n"){var r;return(0,Pd.createUI5I18nEntries)(this.project.root,this.app.manifest,this.app.i18n,t,n,(r=this.options)==null?void 0:r.fs)}createManifestI18nEntries(t){var n;return(0,Pd.createManifestI18nEntries)(this.project.root,this.app.i18n,t,(n=this.options)==null?void 0:n.fs)}createCapI18nEntries(t,n){var r;return(0,Pd.createCapI18nEntries)(this.project.root,t,n,(r=this.options)==null?void 0:r.fs)}getAppId(){return this.appId}getAppRoot(){return this.app.appRoot}getI18nBundles(){var t;return(0,Pd.getI18nBundles)(this.project.root,this.app.i18n,this.project.projectType,(t=this.options)==null?void 0:t.fs)}getI18nPropertiesPaths(){return(0,Pd.getI18nPropertiesPaths)(this.app.manifest)}async getSpecification(){return(0,c9e.getSpecification)(this.app.appRoot)}async updatePackageJSON(t,n){var r;await(0,Ad.updatePackageJSON)((0,Yce.join)(this.app.appRoot,a9e.FileName.Package),t,n??((r=this.options)==null?void 0:r.fs))}async updateManifestJSON(t,n){var r;await(0,Ad.updateManifestJSON)(this.app.manifest,t,n??((r=this.options)==null?void 0:r.fs))}async readManifest(t){var n;return(0,Ad.readJSON)(this.app.manifest,t??((n=this.options)==null?void 0:n.fs))}async readFlexChanges(t){var n;return(0,l9e.readFlexChanges)(this.app.changes,t??((n=this.options)==null?void 0:n.fs))}async readAnnotationFiles(t){var o,a,c,l;let n=[],r=this.app.mainService??"mainService",i=(a=(o=this.app)==null?void 0:o.services)==null?void 0:a[r];if(!i)return[];if(i.uri&&(this.projectType==="CAPJava"||this.projectType==="CAPNodejs")){let u=(i==null?void 0:i.uri)??"";if(u){let f=await(0,u9e.readCapServiceMetadataEdmx)(this.root,u);n.push({fileContent:f,dataSourceUri:u})}}else{if(i.local){let f=await(0,Ad.readFile)(i.local,t??((c=this.options)==null?void 0:c.fs));n.push({dataSourceUri:i.local,fileContent:f.toString()})}let{annotations:u=[]}=i;for(let f of u)if(f.local){let p=await(0,Ad.readFile)(f.local,t??((l=this.options)==null?void 0:l.fs));n.push({dataSourceUri:f.local,fileContent:p.toString()})}}return n}get project(){return this._project}get projectType(){return this.project.projectType}get root(){return this.project.root}};s(aM,"ApplicationAccessImp");var GA=aM,cM=class cM{_project;options;constructor(t,n){this._project=t,this.options=n}getApplicationIds(){return Object.keys(this._project.apps)}async getApplicationIdByManifestAppId(t){var n,r;for(let[i,{manifest:o}]of Object.entries(this._project.apps))if(((r=(await(0,Ad.readJSON)(o,(n=this.options)==null?void 0:n.memFs))["sap.app"])==null?void 0:r.id)===t)return i}getApplication(t){if(!this.project.apps[t])throw new Error(`Could not find app with id ${t}`);return new GA(this.project,t,this.options)}get project(){return this._project}get projectType(){return this.project.projectType}get root(){return this.project.root}};s(cM,"ProjectAccessImp");var oM=cM;function f9e(e){return e.commit!==void 0}s(f9e,"isEditor");async function p9e(e,t){try{let n;t&&(n=f9e(t)?{fs:t}:t);let i=(await(0,o9e.findAllApps)([e],n==null?void 0:n.fs)).find(c=>c.appRoot===e);if(!i)throw new Error(`Could not find app with root ${e}`);let o=await(0,Xce.getProject)(i.projectRoot,n==null?void 0:n.fs),a=(0,Yce.relative)(o.root,e);return new GA(o,a,n)}catch(n){throw Error(`Error when creating application access for ${e}: ${n}`)}}s(p9e,"createApplicationAccess");async function d9e(e,t){try{let n=await(0,Xce.getProject)(e,t==null?void 0:t.memFs);return new oM(n,t)}catch(n){throw Error(`Error when creating project access for ${e}: ${n}`)}}s(d9e,"createProjectAccess")});var ele=y(xd=>{"use strict";var h9e=xd&&xd.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xd,"__esModule",{value:!0});xd.updatePackageScript=y9e;xd.hasUI5CliV3=b9e;var g9e=require("path"),m9e=Ui(),Qce=ei(),Zce=h9e(ry());async function y9e(e,t,n,r){let i=(0,g9e.join)(e,m9e.FileName.Package),o=await(0,Qce.readJSON)(i,r);o.scripts||(o.scripts={}),o.scripts[t]=n,await(0,Qce.updatePackageJSON)(i,o,r)}s(y9e,"updatePackageScript");function b9e(e){let t=!1,n=Zce.default.coerce(e["@ui5/cli"]);return n&&Zce.default.gte(n,"3.0.0")&&(t=!0),t}s(b9e,"hasUI5CliV3")});var lM=y((cCt,tle)=>{(()=>{"use strict";var e={d:s((S,g)=>{for(var v in g)e.o(g,v)&&!e.o(S,v)&&Object.defineProperty(S,v,{enumerable:!0,get:g[v]})},"d"),o:s((S,g)=>Object.prototype.hasOwnProperty.call(S,g),"o"),r:s(S=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(S,"__esModule",{value:!0})},"r")},t={};e.r(t),e.d(t,{XMLBuilder:s(()=>Qfe,"XMLBuilder"),XMLParser:s(()=>z,"XMLParser"),XMLValidator:s(()=>Zfe,"XMLValidator")});let n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r=new RegExp("^["+n+"]["+n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function i(S,g){let v=[],C=g.exec(S);for(;C;){let w=[];w.startIndex=g.lastIndex-C[0].length;let D=C.length;for(let X=0;X<D;X++)w.push(C[X]);v.push(w),C=g.exec(S)}return v}s(i,"s");let o=s(function(S){return r.exec(S)!=null},"r"),a=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],c=["__proto__","constructor","prototype"],l={allowBooleanAttributes:!1,unpairedTags:[]};function u(S,g){g=Object.assign({},l,g);let v=[],C=!1,w=!1;S[0]==="\uFEFF"&&(S=S.substr(1));for(let D=0;D<S.length;D++)if(S[D]==="<"&&S[D+1]==="?"){if(D+=2,D=p(S,D),D.err)return D}else{if(S[D]!=="<"){if(f(S[D]))continue;return N("InvalidChar","char '"+S[D]+"' is not expected.",M(S,D))}{let X=D;if(D++,S[D]==="!"){D=d(S,D);continue}{let Y=!1;S[D]==="/"&&(Y=!0,D++);let re="";for(;D<S.length&&S[D]!==">"&&S[D]!==" "&&S[D]!==" "&&S[D]!==`
|
|
303
|
-
`&&S[D]!=="\r";D++)re+=S[D];if(re=re.trim(),re[re.length-1]==="/"&&(re=re.substring(0,re.length-1),D--),!j(re)){let fe;return fe=re.trim().length===0?"Invalid space after '<'.":"Tag '"+re+"' is an invalid name.",N("InvalidTag",fe,M(S,D))}let te=b(S,D);if(te===!1)return N("InvalidAttr","Attributes for '"+re+"' have open quote.",M(S,D));let oe=te.value;if(D=te.index,oe[oe.length-1]==="/"){let fe=D-oe.length;oe=oe.substring(0,oe.length-1);let He=I(oe,g);if(He!==!0)return N(He.err.code,He.err.msg,M(S,fe+He.err.line));C=!0}else if(Y){if(!te.tagClosed)return N("InvalidTag","Closing tag '"+re+"' doesn't have proper closing.",M(S,D));if(oe.trim().length>0)return N("InvalidTag","Closing tag '"+re+"' can't have attributes or invalid starting.",M(S,X));if(v.length===0)return N("InvalidTag","Closing tag '"+re+"' has not been opened.",M(S,X));{let fe=v.pop();if(re!==fe.tagName){let He=M(S,fe.tagStartPos);return N("InvalidTag","Expected closing tag '"+fe.tagName+"' (opened in line "+He.line+", col "+He.col+") instead of closing tag '"+re+"'.",M(S,X))}v.length==0&&(w=!0)}}else{let fe=I(oe,g);if(fe!==!0)return N(fe.err.code,fe.err.msg,M(S,D-oe.length+fe.err.line));if(w===!0)return N("InvalidXml","Multiple possible root nodes found.",M(S,D));g.unpairedTags.indexOf(re)!==-1||v.push({tagName:re,tagStartPos:X}),C=!0}for(D++;D<S.length;D++)if(S[D]==="<"){if(S[D+1]==="!"){D++,D=d(S,D);continue}if(S[D+1]!=="?")break;if(D=p(S,++D),D.err)return D}else if(S[D]==="&"){let fe=F(S,D);if(fe==-1)return N("InvalidChar","char '&' is not expected.",M(S,D));D=fe}else if(w===!0&&!f(S[D]))return N("InvalidXml","Extra text at the end",M(S,D));S[D]==="<"&&D--}}}return C?v.length==1?N("InvalidTag","Unclosed tag '"+v[0].tagName+"'.",M(S,v[0].tagStartPos)):!(v.length>0)||N("InvalidXml","Invalid '"+JSON.stringify(v.map(D=>D.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):N("InvalidXml","Start tag expected.",1)}s(u,"l");function f(S){return S===" "||S===" "||S===`
|
|
304
|
-
`||S==="\r"}s(f,"u");function p(S,g){let v=g;for(;g<S.length;g++)if(S[g]=="?"||S[g]==" "){let C=S.substr(v,g-v);if(g>5&&C==="xml")return N("InvalidXml","XML declaration allowed only at the start of the document.",M(S,g));if(S[g]=="?"&&S[g+1]==">"){g++;break}continue}return g}s(p,"p");function d(S,g){if(S.length>g+5&&S[g+1]==="-"&&S[g+2]==="-"){for(g+=3;g<S.length;g++)if(S[g]==="-"&&S[g+1]==="-"&&S[g+2]===">"){g+=2;break}}else if(S.length>g+8&&S[g+1]==="D"&&S[g+2]==="O"&&S[g+3]==="C"&&S[g+4]==="T"&&S[g+5]==="Y"&&S[g+6]==="P"&&S[g+7]==="E"){let v=1;for(g+=8;g<S.length;g++)if(S[g]==="<")v++;else if(S[g]===">"&&(v--,v===0))break}else if(S.length>g+9&&S[g+1]==="["&&S[g+2]==="C"&&S[g+3]==="D"&&S[g+4]==="A"&&S[g+5]==="T"&&S[g+6]==="A"&&S[g+7]==="["){for(g+=8;g<S.length;g++)if(S[g]==="]"&&S[g+1]==="]"&&S[g+2]===">"){g+=2;break}}return g}s(d,"c");let h='"',m="'";function b(S,g){let v="",C="",w=!1;for(;g<S.length;g++){if(S[g]===h||S[g]===m)C===""?C=S[g]:C!==S[g]||(C="");else if(S[g]===">"&&C===""){w=!0;break}v+=S[g]}return C===""&&{value:v,index:g,tagClosed:w}}s(b,"g");let T=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function I(S,g){let v=i(S,T),C={};for(let w=0;w<v.length;w++){if(v[w][1].length===0)return N("InvalidAttr","Attribute '"+v[w][2]+"' has no space in starting.",k(v[w]));if(v[w][3]!==void 0&&v[w][4]===void 0)return N("InvalidAttr","Attribute '"+v[w][2]+"' is without value.",k(v[w]));if(v[w][3]===void 0&&!g.allowBooleanAttributes)return N("InvalidAttr","boolean attribute '"+v[w][2]+"' is not allowed.",k(v[w]));let D=v[w][2];if(!$(D))return N("InvalidAttr","Attribute '"+D+"' is an invalid name.",k(v[w]));if(Object.prototype.hasOwnProperty.call(C,D))return N("InvalidAttr","Attribute '"+D+"' is repeated.",k(v[w]));C[D]=1}return!0}s(I,"x");function F(S,g){if(S[++g]===";")return-1;if(S[g]==="#")return(function(C,w){let D=/\d/;for(C[w]==="x"&&(w++,D=/[\da-fA-F]/);w<C.length;w++){if(C[w]===";")return w;if(!C[w].match(D))break}return-1})(S,++g);let v=0;for(;g<S.length;g++,v++)if(!(S[g].match(/\w/)&&v<20)){if(S[g]===";")break;return-1}return g}s(F,"N");function N(S,g,v){return{err:{code:S,msg:g,line:v.line||v,col:v.col}}}s(N,"b");function $(S){return o(S)}s($,"y");function j(S){return o(S)}s(j,"E");function M(S,g){let v=S.substring(0,g).split(/\r?\n/);return{line:v.length,col:v[v.length-1].length+1}}s(M,"w");function k(S){return S.startIndex+S[1].length}s(k,"v");let U=s(S=>a.includes(S)?"__"+S:S,"S"),R={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:s(function(S,g){return g},"tagValueProcessor"),attributeValueProcessor:s(function(S,g){return g},"attributeValueProcessor"),stopNodes:[],alwaysCreateTextNode:!1,isArray:s(()=>!1,"isArray"),commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:s(function(S,g,v){return S},"updateTag"),captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:U};function se(S,g){if(typeof S!="string")return;let v=S.toLowerCase();if(a.some(C=>v===C.toLowerCase()))throw new Error(`[SECURITY] Invalid ${g}: "${S}" is a reserved JavaScript keyword that could cause prototype pollution`);if(c.some(C=>v===C.toLowerCase()))throw new Error(`[SECURITY] Invalid ${g}: "${S}" is a reserved JavaScript keyword that could cause prototype pollution`)}s(se,"A");function G(S,g){return typeof S=="boolean"?{enabled:S,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:typeof S=="object"&&S!==null?{enabled:S.enabled!==!1,maxEntitySize:Math.max(1,S.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,S.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,S.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,S.maxExpandedLength??1e5),maxEntityCount:Math.max(1,S.maxEntityCount??1e3),allowedTags:S.allowedTags??null,tagFilter:S.tagFilter??null,appliesTo:S.appliesTo??"all"}:G(!0)}s(G,"T");let Te=s(function(S){let g=Object.assign({},R,S),v=[{value:g.attributeNamePrefix,name:"attributeNamePrefix"},{value:g.attributesGroupName,name:"attributesGroupName"},{value:g.textNodeName,name:"textNodeName"},{value:g.cdataPropName,name:"cdataPropName"},{value:g.commentPropName,name:"commentPropName"}];for(let{value:C,name:w}of v)C&&se(C,w);return g.onDangerousProperty===null&&(g.onDangerousProperty=U),g.processEntities=G(g.processEntities,g.htmlEntities),g.unpairedTagsSet=new Set(g.unpairedTags),g.stopNodes&&Array.isArray(g.stopNodes)&&(g.stopNodes=g.stopNodes.map(C=>typeof C=="string"&&C.startsWith("*.")?".."+C.substring(2):C)),g},"C"),pe;pe=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");let N0=class N0{constructor(g){this.tagname=g,this.child=[],this[":@"]=Object.create(null)}add(g,v){g==="__proto__"&&(g="#__proto__"),this.child.push({[g]:v})}addChild(g,v){g.tagname==="__proto__"&&(g.tagname="#__proto__"),g[":@"]&&Object.keys(g[":@"]).length>0?this.child.push({[g.tagname]:g.child,":@":g[":@"]}):this.child.push({[g.tagname]:g.child}),v!==void 0&&(this.child[this.child.length-1][pe]={startIndex:v})}static getMetaDataSymbol(){return pe}};s(N0,"$");let ue=N0,W=":A-Za-z_\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u0486\u0488-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",H=":A-Za-z_\xC0-\u02FF\u0370-\u037D\u037F-\u0486\u0488-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}",Ae=H+"\\-\\.\\d\xB7\u0300-\u036F\u0487\u203F-\u2040",Ne=s((S,g,v="")=>{let C=`[${S.replace(":","")}][${g.replace(":","")}]*`;return{name:new RegExp(`^[${S}][${g}]*$`,v),ncName:new RegExp(`^${C}$`,v),qName:new RegExp(`^${C}(?::${C})?$`,v),nmToken:new RegExp(`^[${g}]+$`,v),nmTokens:new RegExp(`^[${g}]+(?:\\s+[${g}]+)*$`,v)}},"D"),Be=Ne(W,W+"\\-\\.\\d\xB7\u0300-\u036F\u203F-\u2040"),tn=Ne(H,Ae,"u"),Fe=s((S,{xmlVersion:g="1.0"}={})=>((v="1.0")=>v==="1.1"?tn:Be)(g).qName.test(S),"L"),R0=class R0{constructor(g,v){this.suppressValidationErr=!g,this.options=g,this.xmlVersion=v||1}setXmlVersion(g=1){this.xmlVersion=g}readDocType(g,v){let C=Object.create(null),w=0;if(g[v+3]!=="O"||g[v+4]!=="C"||g[v+5]!=="T"||g[v+6]!=="Y"||g[v+7]!=="P"||g[v+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{v+=9;let D=1,X=!1,Y=!1,re="";for(;v<g.length;v++)if(g[v]!=="<"||Y)if(g[v]===">"){if(Y?g[v-1]==="-"&&g[v-2]==="-"&&(Y=!1,D--):D--,D===0)break}else g[v]==="["?X=!0:re+=g[v];else{if(X&&In(g,"!ENTITY",v)){let te,oe;if(v+=7,[te,oe,v]=this.readEntityExp(g,v+1,this.suppressValidationErr),oe.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&w>=this.options.maxEntityCount)throw new Error(`Entity count (${w+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);C[te]=oe,w++}}else if(X&&In(g,"!ELEMENT",v)){v+=8;let{index:te}=this.readElementExp(g,v+1);v=te}else if(X&&In(g,"!ATTLIST",v))v+=8;else if(X&&In(g,"!NOTATION",v)){v+=9;let{index:te}=this.readNotationExp(g,v+1,this.suppressValidationErr);v=te}else{if(!In(g,"!--",v))throw new Error("Invalid DOCTYPE");Y=!0}D++,re=""}if(D!==0)throw new Error("Unclosed DOCTYPE")}return{entities:C,i:v}}readEntityExp(g,v){let C=v=Lt(g,v);for(;v<g.length&&!/\s/.test(g[v])&&g[v]!=='"'&&g[v]!=="'";)v++;let w=g.substring(C,v);if(et(w,{xmlVersion:this.xmlVersion}),v=Lt(g,v),!this.suppressValidationErr){if(g.substring(v,v+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(g[v]==="%")throw new Error("Parameter entities are not supported")}let D="";if([v,D]=this.readIdentifierVal(g,v,"entity"),this.options.enabled!==!1&&this.options.maxEntitySize!=null&&D.length>this.options.maxEntitySize)throw new Error(`Entity "${w}" size (${D.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[w,D,--v]}readNotationExp(g,v){let C=v=Lt(g,v);for(;v<g.length&&!/\s/.test(g[v]);)v++;let w=g.substring(C,v);!this.suppressValidationErr&&et(w,{xmlVersion:this.xmlVersion}),v=Lt(g,v);let D=g.substring(v,v+6).toUpperCase();if(!this.suppressValidationErr&&D!=="SYSTEM"&&D!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${D}"`);v+=D.length,v=Lt(g,v);let X=null,Y=null;if(D==="PUBLIC")[v,X]=this.readIdentifierVal(g,v,"publicIdentifier"),g[v=Lt(g,v)]!=='"'&&g[v]!=="'"||([v,Y]=this.readIdentifierVal(g,v,"systemIdentifier"));else if(D==="SYSTEM"&&([v,Y]=this.readIdentifierVal(g,v,"systemIdentifier"),!this.suppressValidationErr&&!Y))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:w,publicIdentifier:X,systemIdentifier:Y,index:--v}}readIdentifierVal(g,v,C){let w="",D=g[v];if(D!=='"'&&D!=="'")throw new Error(`Expected quoted string, found "${D}"`);let X=++v;for(;v<g.length&&g[v]!==D;)v++;if(w=g.substring(X,v),g[v]!==D)throw new Error(`Unterminated ${C} value`);return[++v,w]}readElementExp(g,v){let C=v=Lt(g,v);for(;v<g.length&&!/\s/.test(g[v]);)v++;let w=g.substring(C,v);if(!this.suppressValidationErr&&!Fe(w,{xmlVersion:this.xmlVersion}))throw new Error(`Invalid element name: "${w}"`);let D="";if(g[v=Lt(g,v)]==="E"&&In(g,"MPTY",v))v+=4;else if(g[v]==="A"&&In(g,"NY",v))v+=2;else if(g[v]==="("){let X=++v;for(;v<g.length&&g[v]!==")";)v++;if(D=g.substring(X,v),g[v]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${g[v]}"`);return{elementName:w,contentModel:D.trim(),index:v}}readAttlistExp(g,v){let C=v=Lt(g,v);for(;v<g.length&&!/\s/.test(g[v]);)v++;let w=g.substring(C,v);for(et(w,{xmlVersion:this.xmlVersion}),C=v=Lt(g,v);v<g.length&&!/\s/.test(g[v]);)v++;let D=g.substring(C,v);if(!et(D,{xmlVersion:this.xmlVersion}))throw new Error(`Invalid attribute name: "${D}"`);v=Lt(g,v);let X="";if(g.substring(v,v+8).toUpperCase()==="NOTATION"){if(X="NOTATION",g[v=Lt(g,v+=8)]!=="(")throw new Error(`Expected '(', found "${g[v]}"`);v++;let re=[];for(;v<g.length&&g[v]!==")";){let te=v;for(;v<g.length&&g[v]!=="|"&&g[v]!==")";)v++;let oe=g.substring(te,v);if(oe=oe.trim(),!et(oe,{xmlVersion:this.xmlVersion}))throw new Error(`Invalid notation name: "${oe}"`);re.push(oe),g[v]==="|"&&(v++,v=Lt(g,v))}if(g[v]!==")")throw new Error("Unterminated list of notations");v++,X+=" ("+re.join("|")+")"}else{let re=v;for(;v<g.length&&!/\s/.test(g[v]);)v++;X+=g.substring(re,v);let te=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!te.includes(X.toUpperCase()))throw new Error(`Invalid attribute type: "${X}"`)}v=Lt(g,v);let Y="";return g.substring(v,v+8).toUpperCase()==="#REQUIRED"?(Y="#REQUIRED",v+=8):g.substring(v,v+7).toUpperCase()==="#IMPLIED"?(Y="#IMPLIED",v+=7):[v,Y]=this.readIdentifierVal(g,v,"ATTLIST"),{elementName:w,attributeName:D,attributeType:X,defaultValue:Y,index:v}}};s(R0,"k");let Oe=R0,Lt=s((S,g)=>{for(;g<S.length&&/\s/.test(S[g]);)g++;return g},"R");function In(S,g,v){for(let C=0;C<g.length;C++)if(g[C]!==S[v+C+1])return!1;return!0}s(In,"F");function et(S,g){if(Fe(S,{xmlVersion:g}))return S;throw new Error(`Invalid entity name ${S}`)}s(et,"G");let rt=/^[-+]?0x[a-fA-F0-9]+$/,Ri=/^0b[01]+$/,Xi=/^0o[0-7]+$/,Ee=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,bt={hex:!0,binary:!1,octal:!1,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original"},P=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function E(S,g){let v=S.trim();if(g!==2&&g!==8||(S=v.substring(2)),parseInt)return parseInt(S,g);if(Number.parseInt)return Number.parseInt(S,g);if(window&&window.parseInt)return window.parseInt(S,g);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}s(E,"q");let F0=class F0{constructor(g){this._matcher=g}get separator(){return this._matcher.separator}getCurrentTag(){let g=this._matcher.path;return g.length>0?g[g.length-1].tag:void 0}getCurrentNamespace(){let g=this._matcher.path;return g.length>0?g[g.length-1].namespace:void 0}getAttrValue(g){var C;let v=this._matcher.path;if(v.length!==0)return(C=v[v.length-1].values)==null?void 0:C[g]}hasAttr(g){let v=this._matcher.path;if(v.length===0)return!1;let C=v[v.length-1];return C.values!==void 0&&g in C.values}getPosition(){let g=this._matcher.path;return g.length===0?-1:g[g.length-1].position??0}getCounter(){let g=this._matcher.path;return g.length===0?-1:g[g.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(g,v=!0){return this._matcher.toString(g,v)}toArray(){return this._matcher.path.map(g=>g.tag)}matches(g){return this._matcher.matches(g)}matchesAny(g){return g.matchesAny(this._matcher)}};s(F0,"Z");let J=F0,L0=class L0{constructor(g={}){this.separator=g.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new J(this)}push(g,v=null,C=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let w=this.path.length;this.siblingStacks[w]||(this.siblingStacks[w]=new Map);let D=this.siblingStacks[w],X=C?`${C}:${g}`:g,Y=D.get(X)||0,re=0;for(let oe of D.values())re+=oe;D.set(X,Y+1);let te={tag:g,position:re,counter:Y};C!=null&&(te.namespace=C),v!=null&&(te.values=v),this.path.push(te)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let g=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),g}updateCurrent(g){if(this.path.length>0){let v=this.path[this.path.length-1];g!=null&&(v.values=g)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(g){var v;if(this.path.length!==0)return(v=this.path[this.path.length-1].values)==null?void 0:v[g]}hasAttr(g){if(this.path.length===0)return!1;let v=this.path[this.path.length-1];return v.values!==void 0&&g in v.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(g,v=!0){let C=g||this.separator;if(C===this.separator&&v===!0){if(this._pathStringCache!==null)return this._pathStringCache;let w=this.path.map(D=>D.namespace?`${D.namespace}:${D.tag}`:D.tag).join(C);return this._pathStringCache=w,w}return this.path.map(w=>v&&w.namespace?`${w.namespace}:${w.tag}`:w.tag).join(C)}toArray(){return this.path.map(g=>g.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(g){let v=g.segments;return v.length!==0&&(g.hasDeepWildcard()?this._matchWithDeepWildcard(v):this._matchSimple(v))}_matchSimple(g){if(this.path.length!==g.length)return!1;for(let v=0;v<g.length;v++)if(!this._matchSegment(g[v],this.path[v],v===this.path.length-1))return!1;return!0}_matchWithDeepWildcard(g){let v=this.path.length-1,C=g.length-1;for(;C>=0&&v>=0;){let w=g[C];if(w.type==="deep-wildcard"){if(C--,C<0)return!0;let D=g[C],X=!1;for(let Y=v;Y>=0;Y--)if(this._matchSegment(D,this.path[Y],Y===this.path.length-1)){v=Y-1,C--,X=!0;break}if(!X)return!1}else{if(!this._matchSegment(w,this.path[v],v===this.path.length-1))return!1;v--,C--}}return C<0}_matchSegment(g,v,C){if(g.tag!=="*"&&g.tag!==v.tag||g.namespace!==void 0&&g.namespace!=="*"&&g.namespace!==v.namespace||g.attrName!==void 0&&(!C||!v.values||!(g.attrName in v.values)||g.attrValue!==void 0&&String(v.values[g.attrName])!==String(g.attrValue)))return!1;if(g.position!==void 0){if(!C)return!1;let w=v.counter??0;if(g.position==="first"&&w!==0||g.position==="odd"&&w%2!=1||g.position==="even"&&w%2!=0||g.position==="nth"&&w!==g.positionValue)return!1}return!0}matchesAny(g){return g.matchesAny(this)}snapshot(){return{path:this.path.map(g=>({...g})),siblingStacks:this.siblingStacks.map(g=>new Map(g))}}restore(g){this._pathStringCache=null,this.path=g.path.map(v=>({...v})),this.siblingStacks=g.siblingStacks.map(v=>new Map(v))}readOnly(){return this._view}};s(L0,"J");let q=L0,j0=class j0{constructor(g,v={},C){this.pattern=g,this.separator=v.separator||".",this.segments=this._parse(g),this.data=C,this._hasDeepWildcard=this.segments.some(w=>w.type==="deep-wildcard"),this._hasAttributeCondition=this.segments.some(w=>w.attrName!==void 0),this._hasPositionSelector=this.segments.some(w=>w.position!==void 0)}_parse(g){let v=[],C=0,w="";for(;C<g.length;)g[C]===this.separator?C+1<g.length&&g[C+1]===this.separator?(w.trim()&&(v.push(this._parseSegment(w.trim())),w=""),v.push({type:"deep-wildcard"}),C+=2):(w.trim()&&v.push(this._parseSegment(w.trim())),w="",C++):(w+=g[C],C++);return w.trim()&&v.push(this._parseSegment(w.trim())),v}_parseSegment(g){let v={type:"tag"},C=null,w=g,D=g.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(D&&(w=D[1]+D[3],D[2])){let oe=D[2].slice(1,-1);oe&&(C=oe)}let X,Y,re=w;if(w.includes("::")){let oe=w.indexOf("::");if(X=w.substring(0,oe).trim(),re=w.substring(oe+2).trim(),!X)throw new Error(`Invalid namespace in pattern: ${g}`)}let te=null;if(re.includes(":")){let oe=re.lastIndexOf(":"),fe=re.substring(0,oe).trim(),He=re.substring(oe+1).trim();["first","last","odd","even"].includes(He)||/^nth\(\d+\)$/.test(He)?(Y=fe,te=He):Y=re}else Y=re;if(!Y)throw new Error(`Invalid segment pattern: ${g}`);if(v.tag=Y,X&&(v.namespace=X),C)if(C.includes("=")){let oe=C.indexOf("=");v.attrName=C.substring(0,oe).trim(),v.attrValue=C.substring(oe+1).trim()}else v.attrName=C.trim();if(te){let oe=te.match(/^nth\((\d+)\)$/);oe?(v.position="nth",v.positionValue=parseInt(oe[1],10)):v.position=te}return v}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}};s(j0,"K");let Re=j0,D0=class D0{constructor(){this._byDepthAndTag=new Map,this._wildcardByDepth=new Map,this._deepWildcards=[],this._patterns=new Set,this._sealed=!1}add(g){if(this._sealed)throw new TypeError("ExpressionSet is sealed. Create a new ExpressionSet to add more expressions.");if(this._patterns.has(g.pattern))return this;if(this._patterns.add(g.pattern),g.hasDeepWildcard())return this._deepWildcards.push(g),this;let v=g.length,C=g.segments[g.segments.length-1],w=C==null?void 0:C.tag;if(w&&w!=="*"){let D=`${v}:${w}`;this._byDepthAndTag.has(D)||this._byDepthAndTag.set(D,[]),this._byDepthAndTag.get(D).push(g)}else this._wildcardByDepth.has(v)||this._wildcardByDepth.set(v,[]),this._wildcardByDepth.get(v).push(g);return this}addAll(g){for(let v of g)this.add(v);return this}has(g){return this._patterns.has(g.pattern)}get size(){return this._patterns.size}seal(){return this._sealed=!0,this}get isSealed(){return this._sealed}matchesAny(g){return this.findMatch(g)!==null}findMatch(g){let v=g.getDepth(),C=`${v}:${g.getCurrentTag()}`,w=this._byDepthAndTag.get(C);if(w){for(let X=0;X<w.length;X++)if(g.matches(w[X]))return w[X]}let D=this._wildcardByDepth.get(v);if(D){for(let X=0;X<D.length;X++)if(g.matches(D[X]))return D[X]}for(let X=0;X<this._deepWildcards.length;X++)if(g.matches(this._deepWildcards[X]))return this._deepWildcards[X];return null}};s(D0,"Q");let vt=D0,It={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",euro:"\u20AC",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"},Cn={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},Rn={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"},ur=new Set("!?\\\\/[]$%{}^&*()<>|+");function on(S){if(S[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${S}"`);for(let g of S)if(ur.has(g))throw new Error(`[EntityReplacer] Invalid character '${g}' in entity name: "${S}"`);return S}s(on,"it");function ir(...S){let g=Object.create(null);for(let v of S)if(v)for(let C of Object.keys(v)){let w=v[C];if(typeof w=="string")g[C]=w;else if(w&&typeof w=="object"&&w.val!==void 0){let D=w.val;typeof D=="string"&&(g[C]=D)}}return g}s(ir,"st");let Er="external",zi="base",Qi="all",yn=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Zu=new Set([9,10,13]),$0=class $0{constructor(g={}){var v;this._limit=g.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof g.postCheck=="function"?g.postCheck:w=>w,this._limitTiers=(v=this._limit.applyLimitsTo??Er)&&v!==Er?v===Qi?new Set([Qi]):v===zi?new Set([zi]):Array.isArray(v)?new Set(v):new Set([Er]):new Set([Er]),this._numericAllowed=g.numericAllowed??!0,this._baseMap=ir(Cn,g.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(g.remove&&Array.isArray(g.remove)?g.remove:[]),this._leaveSet=new Set(g.leave&&Array.isArray(g.leave)?g.leave:[]);let C=(function(w){if(!w)return{xmlVersion:1,onLevel:yn.allow,nullLevel:yn.remove};let D=w.xmlVersion===1.1?1.1:1,X=yn[w.onNCR]??yn.allow,Y=yn[w.nullNCR]??yn.remove;return{xmlVersion:D,onLevel:X,nullLevel:Math.max(Y,yn.remove)}})(g.ncr);this._ncrXmlVersion=C.xmlVersion,this._ncrOnLevel=C.onLevel,this._ncrNullLevel=C.nullLevel}setExternalEntities(g){if(g)for(let v of Object.keys(g))on(v);this._externalMap=ir(g)}addExternalEntity(g,v){on(g),typeof v=="string"&&v.indexOf("&")===-1&&(this._externalMap[g]=v)}addInputEntities(g){this._totalExpansions=0,this._expandedLength=0,this._inputMap=ir(g)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(g){this._ncrXmlVersion=g===1.1?1.1:1}decode(g){if(typeof g!="string"||g.length===0)return g;let v=g,C=[],w=g.length,D=0,X=0,Y=this._maxTotalExpansions>0,re=this._maxExpandedLength>0,te=Y||re;for(;X<w;){if(g.charCodeAt(X)!==38){X++;continue}let fe=X+1;for(;fe<w&&g.charCodeAt(fe)!==59&&fe-X<=32;)fe++;if(fe>=w||g.charCodeAt(fe)!==59){X++;continue}let He=g.slice(X+1,fe);if(He.length===0){X++;continue}let ze,Qe;if(this._removeSet.has(He))ze="",Qe===void 0&&(Qe=Er);else{if(this._leaveSet.has(He)){X++;continue}if(He.charCodeAt(0)===35){let tt=this._resolveNCR(He);if(tt===void 0){X++;continue}ze=tt,Qe=zi}else{let tt=this._resolveName(He);ze=tt==null?void 0:tt.value,Qe=tt==null?void 0:tt.tier}}if(ze!==void 0){if(X>D&&C.push(g.slice(D,X)),C.push(ze),D=fe+1,X=D,te&&this._tierCounts(Qe)){if(Y&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(re){let tt=ze.length-(He.length+2);if(tt>0&&(this._expandedLength+=tt,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}else X++}D<w&&C.push(g.slice(D));let oe=C.length===0?g:C.join("");return this._postCheck(oe,v)}_tierCounts(g){return!!this._limitTiers.has(Qi)||this._limitTiers.has(g)}_resolveName(g){return g in this._inputMap?{value:this._inputMap[g],tier:Er}:g in this._externalMap?{value:this._externalMap[g],tier:Er}:g in this._baseMap?{value:this._baseMap[g],tier:zi}:void 0}_classifyNCR(g){return g===0?this._ncrNullLevel:g>=55296&&g<=57343||this._ncrXmlVersion===1&&g>=1&&g<=31&&!Zu.has(g)?yn.remove:-1}_applyNCRAction(g,v,C){switch(g){case yn.allow:return String.fromCodePoint(C);case yn.remove:return"";case yn.leave:return;case yn.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${v}; (U+${C.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(C)}}_resolveNCR(g){let v=g.charCodeAt(1),C;if(C=v===120||v===88?parseInt(g.slice(2),16):parseInt(g.slice(1),10),Number.isNaN(C)||C<0||C>1114111)return;let w=this._classifyNCR(C);if(!this._numericAllowed&&w<yn.remove)return;let D=w===-1?this._ncrOnLevel:Math.max(this._ncrOnLevel,w);return this._applyNCRAction(D,g,C)}};s($0,"ut");let Ia=$0;function ef(S,g){if(!S)return{};let v=g.attributesGroupName?S[g.attributesGroupName]:S;if(!v)return{};let C={};for(let w in v)w.startsWith(g.attributeNamePrefix)?C[w.substring(g.attributeNamePrefix.length)]=v[w]:C[w]=v[w];return C}s(ef,"pt");function _a(S){if(!S||typeof S!="string")return;let g=S.indexOf(":");if(g!==-1&&g>0){let v=S.substring(0,g);if(v!=="xmlns")return v}}s(_a,"ct");let k0=class k0{constructor(g,v){var C;this.options=g,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=hn,this.parseTextData=ne,this.resolveNameSpace=ce,this.buildAttributesMap=We,this.isItStopNode=Le,this.replaceEntitiesValue=ht,this.readStopNodeData=Kt,this.saveTextToParentTag=xe,this.addChild=bn,this.ignoreAttributesFn=typeof(C=this.options.ignoreAttributes)=="function"?C:Array.isArray(C)?X=>{for(let Y of C)if(typeof Y=="string"&&X===Y||Y instanceof RegExp&&Y.test(X))return!0}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0;let w={...Cn};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?w=this.options.htmlEntities:this.options.htmlEntities===!0&&(w={...Rn,...It}),this.entityDecoder=new Ia({namedEntities:{...w,...v},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new q,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new vt;let D=this.options.stopNodes;if(D&&D.length>0){for(let X=0;X<D.length;X++){let Y=D[X];typeof Y=="string"?this.stopNodeExpressionsSet.add(new Re(Y)):Y instanceof Re&&this.stopNodeExpressionsSet.add(Y)}this.stopNodeExpressionsSet.seal()}}};s(k0,"dt");let K=k0;function ne(S,g,v,C,w,D,X){let Y=this.options;if(S!==void 0&&(Y.trimValues&&!C&&(S=S.trim()),S.length>0)){X||(S=this.replaceEntitiesValue(S,g,v));let re=Y.jPath?v.toString():v,te=Y.tagValueProcessor(g,S,re,w,D);return te==null?S:typeof te!=typeof S||te!==S?te:Y.trimValues||S.trim()===S?an(S,Y.parseTagValue,Y.numberParseOptions):S}}s(ne,"ft");function ce(S){if(this.options.removeNSPrefix){let g=S.split(":"),v=S.charAt(0)==="/"?"/":"";if(g[0]==="xmlns")return"";g.length===2&&(S=v+g[1])}return S}s(ce,"gt");let Se=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function We(S,g,v,C=!1){let w=this.options;if(C===!0||w.ignoreAttributes!==!0&&typeof S=="string"){let D=i(S,Se),X=D.length,Y={},re=new Array(X),te=!1,oe={};for(let ze=0;ze<X;ze++){let Qe=this.resolveNameSpace(D[ze][1]),tt=D[ze][4];if(Qe.length&&tt!==void 0){let qt=tt;w.trimValues&&(qt=qt.trim()),qt=this.replaceEntitiesValue(qt,v,this.readonlyMatcher),re[ze]=qt,oe[Qe]=qt,te=!0}}te&&typeof g=="object"&&g.updateCurrent&&g.updateCurrent(oe);let fe=w.jPath?g.toString():this.readonlyMatcher,He=!1;for(let ze=0;ze<X;ze++){let Qe=this.resolveNameSpace(D[ze][1]);if(this.ignoreAttributesFn(Qe,fe))continue;let tt=w.attributeNamePrefix+Qe;if(Qe.length)if(w.transformAttributeName&&(tt=w.transformAttributeName(tt)),tt=Ca(tt,w),D[ze][4]!==void 0){let qt=re[ze],Pr=w.attributeValueProcessor(Qe,qt,fe);Y[tt]=Pr==null?qt:typeof Pr!=typeof qt||Pr!==qt?Pr:an(qt,w.parseAttributeValue,w.numberParseOptions),He=!0}else w.allowBooleanAttributes&&(Y[tt]=!0,He=!0)}if(!He)return;if(w.attributesGroupName&&!w.preserveOrder){let ze={};return ze[w.attributesGroupName]=Y,ze}return Y}}s(We,"xt");let hn=s(function(S){S=S.replace(/\r\n?/g,`
|
|
305
|
-
`);let g=new ue("!xml"),v=g,C="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let w=this.options,D=new Oe(w.processEntities),X=S.length;for(let Y=0;Y<X;Y++)if(S[Y]==="<"){let re=S.charCodeAt(Y+1);if(re===47){let te=we(S,">",Y,"Closing Tag is not closed."),oe=S.substring(Y+2,te).trim();if(w.removeNSPrefix){let He=oe.indexOf(":");He!==-1&&(oe=oe.substr(He+1))}oe=sr(w.transformTagName,oe,"",w).tagName,v&&(C=this.saveTextToParentTag(C,v,this.readonlyMatcher));let fe=this.matcher.getCurrentTag();if(oe&&w.unpairedTagsSet.has(oe))throw new Error(`Unpaired tag can not be used as closing tag: </${oe}>`);fe&&w.unpairedTagsSet.has(fe)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,v=this.tagsNodeStack.pop(),C="",Y=te}else if(re===63){let te=gt(S,Y,!1,"?>");if(!te)throw new Error("Pi Tag is not closed.");C=this.saveTextToParentTag(C,v,this.readonlyMatcher);let oe=this.buildAttributesMap(te.tagExp,this.matcher,te.tagName,!0);if(oe){let fe=oe[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(fe)||1),D.setXmlVersion(Number(fe)||1)}if(!(w.ignoreDeclaration&&te.tagName==="?xml"||w.ignorePiTags)){let fe=new ue(te.tagName);fe.add(w.textNodeName,""),te.tagName!==te.tagExp&&te.attrExpPresent&&w.ignoreAttributes!==!0&&(fe[":@"]=oe),this.addChild(v,fe,this.readonlyMatcher,Y)}Y=te.closeIndex+1}else if(re===33&&S.charCodeAt(Y+2)===45&&S.charCodeAt(Y+3)===45){let te=we(S,"-->",Y+4,"Comment is not closed.");if(w.commentPropName){let oe=S.substring(Y+4,te-2);C=this.saveTextToParentTag(C,v,this.readonlyMatcher),v.add(w.commentPropName,[{[w.textNodeName]:oe}])}Y=te}else if(re===33&&S.charCodeAt(Y+2)===68){let te=D.readDocType(S,Y);this.entityDecoder.addInputEntities(te.entities),Y=te.i}else if(re===33&&S.charCodeAt(Y+2)===91){let te=we(S,"]]>",Y,"CDATA is not closed.")-2,oe=S.substring(Y+9,te);C=this.saveTextToParentTag(C,v,this.readonlyMatcher);let fe=this.parseTextData(oe,v.tagname,this.readonlyMatcher,!0,!1,!0,!0);fe==null&&(fe=""),w.cdataPropName?v.add(w.cdataPropName,[{[w.textNodeName]:oe}]):v.add(w.textNodeName,fe),Y=te+2}else{let te=gt(S,Y,w.removeNSPrefix);if(!te){let kn=S.substring(Math.max(0,Y-50),Math.min(X,Y+50));throw new Error(`readTagExp returned undefined at position ${Y}. Context: "${kn}"`)}let oe=te.tagName,fe=te.rawTagName,He=te.tagExp,ze=te.attrExpPresent,Qe=te.closeIndex;if({tagName:oe,tagExp:He}=sr(w.transformTagName,oe,He,w),w.strictReservedNames&&(oe===w.commentPropName||oe===w.cdataPropName||oe===w.textNodeName||oe===w.attributesGroupName))throw new Error(`Invalid tag name: ${oe}`);v&&C&&v.tagname!=="!xml"&&(C=this.saveTextToParentTag(C,v,this.readonlyMatcher,!1));let tt=v;tt&&w.unpairedTagsSet.has(tt.tagname)&&(v=this.tagsNodeStack.pop(),this.matcher.pop());let qt=!1;He.length>0&&He.lastIndexOf("/")===He.length-1&&(qt=!0,oe[oe.length-1]==="/"?(oe=oe.substr(0,oe.length-1),He=oe):He=He.substr(0,He.length-1),ze=oe!==He);let Pr,fr=null,tf={};Pr=_a(fe),oe!==g.tagname&&this.matcher.push(oe,{},Pr),oe!==He&&ze&&(fr=this.buildAttributesMap(He,this.matcher,oe),fr&&(tf=ef(fr,w))),oe!==g.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let Hr=Y;if(this.isCurrentNodeStopNode){let kn="";if(qt)Y=te.closeIndex;else if(w.unpairedTagsSet.has(oe))Y=te.closeIndex;else{let q0=this.readStopNodeData(S,fe,Qe+1);if(!q0)throw new Error(`Unexpected end of ${fe}`);Y=q0.i,kn=q0.tagContent}let V0=new ue(oe);fr&&(V0[":@"]=fr),V0.add(w.textNodeName,kn),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(v,V0,this.readonlyMatcher,Hr)}else{if(qt){({tagName:oe,tagExp:He}=sr(w.transformTagName,oe,He,w));let kn=new ue(oe);fr&&(kn[":@"]=fr),this.addChild(v,kn,this.readonlyMatcher,Hr),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(w.unpairedTagsSet.has(oe)){let kn=new ue(oe);fr&&(kn[":@"]=fr),this.addChild(v,kn,this.readonlyMatcher,Hr),this.matcher.pop(),this.isCurrentNodeStopNode=!1,Y=te.closeIndex;continue}{let kn=new ue(oe);if(this.tagsNodeStack.length>w.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(v),fr&&(kn[":@"]=fr),this.addChild(v,kn,this.readonlyMatcher,Hr),v=kn}}C="",Y=Qe}}}else C+=S[Y];return g.child},"Nt");function bn(S,g,v,C){this.options.captureMetaData||(C=void 0);let w=this.options.jPath?v.toString():v,D=this.options.updateTag(g.tagname,w,g[":@"]);D===!1||(typeof D=="string"&&(g.tagname=D),S.addChild(g,C))}s(bn,"bt");function ht(S,g,v){let C=this.options.processEntities;if(!C||!C.enabled)return S;if(C.allowedTags){let w=this.options.jPath?v.toString():v;if(!(Array.isArray(C.allowedTags)?C.allowedTags.includes(g):C.allowedTags(g,w)))return S}if(C.tagFilter){let w=this.options.jPath?v.toString():v;if(!C.tagFilter(g,w))return S}return this.entityDecoder.decode(S)}s(ht,"yt");function xe(S,g,v,C){return S&&(C===void 0&&(C=g.child.length===0),(S=this.parseTextData(S,g.tagname,v,!1,!!g[":@"]&&Object.keys(g[":@"]).length!==0,C))!==void 0&&S!==""&&g.add(this.options.textNodeName,S),S=""),S}s(xe,"Et");function Le(){return this.stopNodeExpressionsSet.size!==0&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}s(Le,"wt");function we(S,g,v,C){let w=S.indexOf(g,v);if(w===-1)throw new Error(C);return w+g.length-1}s(we,"vt");function qe(S,g,v,C){let w=S.indexOf(g,v);if(w===-1)throw new Error(C);return w}s(qe,"St");function gt(S,g,v,C=">"){let w=(function(fe,He,ze=">"){let Qe=0,tt=fe.length,qt=ze.charCodeAt(0),Pr=ze.length>1?ze.charCodeAt(1):-1,fr="",tf=He;for(let Hr=He;Hr<tt;Hr++){let kn=fe.charCodeAt(Hr);if(Qe)kn===Qe&&(Qe=0);else if(kn===34||kn===39)Qe=kn;else if(kn===qt){if(Pr===-1)return fr+=fe.substring(tf,Hr),{data:fr,index:Hr};if(fe.charCodeAt(Hr+1)===Pr)return fr+=fe.substring(tf,Hr),{data:fr,index:Hr}}else kn!==9||Qe||(fr+=fe.substring(tf,Hr)+" ",tf=Hr+1)}})(S,g+1,C);if(!w)return;let D=w.data,X=w.index,Y=D.search(/\s/),re=D,te=!0;Y!==-1&&(re=D.substring(0,Y),D=D.substring(Y+1).trimStart());let oe=re;if(v){let fe=re.indexOf(":");fe!==-1&&(re=re.substr(fe+1),te=re!==w.data.substr(fe+1))}return{tagName:re,tagExp:D,closeIndex:X,attrExpPresent:te,rawTagName:oe}}s(gt,"_t");function Kt(S,g,v){let C=v,w=1,D=S.length;for(;v<D;v++)if(S[v]==="<"){let X=S.charCodeAt(v+1);if(X===47){let Y=qe(S,">",v,`${g} is not closed`);if(S.substring(v+2,Y).trim()===g&&(w--,w===0))return{tagContent:S.substring(C,v),i:Y};v=Y}else if(X===63)v=we(S,"?>",v+1,"StopNode is not closed.");else if(X===33&&S.charCodeAt(v+2)===45&&S.charCodeAt(v+3)===45)v=we(S,"-->",v+3,"StopNode is not closed.");else if(X===33&&S.charCodeAt(v+2)===91)v=we(S,"]]>",v,"StopNode is not closed.")-2;else{let Y=gt(S,v,!1);Y&&((Y&&Y.tagName)===g&&Y.tagExp[Y.tagExp.length-1]!=="/"&&w++,v=Y.closeIndex)}}}s(Kt,"At");function an(S,g,v){if(g&&typeof S=="string"){let C=S.trim();return C==="true"||C!=="false"&&(function(w,D={}){if(D=Object.assign({},bt,D),!w||typeof w!="string")return w;let X=w.trim();if(X.length===0||D.skipLike!==void 0&&D.skipLike.test(X))return w;if(X==="0")return 0;if(D.hex&&rt.test(X))return E(X,16);if(D.binary&&Ri.test(X))return E(X,2);if(D.octal&&Xi.test(X))return E(X,8);if(isFinite(X)){if(X.includes("e")||X.includes("E"))return(function(re,te,oe){if(!oe.eNotation)return re;let fe=te.match(P);if(fe){let He=fe[1]||"",ze=fe[3].indexOf("e")===-1?"E":"e",Qe=fe[2],tt=He?re[Qe.length+1]===ze:re[Qe.length]===ze;return Qe.length>1&&tt?re:(Qe.length!==1||!fe[3].startsWith(`.${ze}`)&&fe[3][0]!==ze)&&Qe.length>0?oe.leadingZeros&&!tt?(te=(fe[1]||"")+fe[3],Number(te)):re:Number(te)}return re})(w,X,D);{let re=Ee.exec(X);if(re){let te=re[1]||"",oe=re[2],fe=((Y=re[3])&&Y.indexOf(".")!==-1&&((Y=Y.replace(/0+$/,""))==="."?Y="0":Y[0]==="."?Y="0"+Y:Y[Y.length-1]==="."&&(Y=Y.substring(0,Y.length-1))),Y),He=te?w[oe.length+1]===".":w[oe.length]===".";if(!D.leadingZeros&&(oe.length>1||oe.length===1&&!He))return w;{let ze=Number(X),Qe=String(ze);if(ze===0)return ze;if(Qe.search(/[eE]/)!==-1)return D.eNotation?ze:w;if(X.indexOf(".")!==-1)return Qe==="0"||Qe===fe||Qe===`${te}${fe}`?ze:w;let tt=oe?fe:X;return oe?tt===Qe||te+tt===Qe?ze:w:tt===Qe||tt===te+Qe?ze:w}}return w}}var Y;return(function(re,te,oe){let fe=te===1/0;switch(oe.infinity.toLowerCase()){case"null":return null;case"infinity":return te;case"string":return fe?"Infinity":"-Infinity";default:return re}})(w,Number(X),D)})(S,v)}return S!==void 0?S:""}s(an,"Tt");function sr(S,g,v,C){if(S){let w=S(g);v===g&&(v=w),g=w}return{tagName:g=Ca(g,C),tagExp:v}}s(sr,"Ct");function Ca(S,g){if(c.includes(S))throw new Error(`[SECURITY] Invalid name: "${S}" is a reserved JavaScript keyword that could cause prototype pollution`);return a.includes(S)?g.onDangerousProperty(S):S}s(Ca,"Pt");let al=ue.getMetaDataSymbol();function Q(S,g){if(!S||typeof S!="object")return{};if(!g)return S;let v={};for(let C in S)C.startsWith(g)?v[C.substring(g.length)]=S[C]:v[C]=S[C];return v}s(Q,"Ot");function _(S,g,v,C){return V(S,g,v,C)}s(_,"It");function V(S,g,v,C){let w,D={};for(let X=0;X<S.length;X++){let Y=S[X],re=B(Y);if(re!==void 0&&re!==g.textNodeName){let te=Q(Y[":@"]||{},g.attributeNamePrefix);v.push(re,te)}if(re===g.textNodeName)w===void 0?w=Y[re]:w+=""+Y[re];else{if(re===void 0)continue;if(Y[re]){let te=V(Y[re],g,v,C),oe=A(te,g);if(Object.keys(te).length===0&&g.alwaysCreateTextNode&&(te[g.textNodeName]=""),Y[":@"]?L(te,Y[":@"],C,g):Object.keys(te).length!==1||te[g.textNodeName]===void 0||g.alwaysCreateTextNode?Object.keys(te).length===0&&(g.alwaysCreateTextNode?te[g.textNodeName]="":te=""):te=te[g.textNodeName],Y[al]!==void 0&&typeof te=="object"&&te!==null&&(te[al]=Y[al]),D[re]!==void 0&&Object.prototype.hasOwnProperty.call(D,re))Array.isArray(D[re])||(D[re]=[D[re]]),D[re].push(te);else{let fe=g.jPath?C.toString():C;g.isArray(re,fe,oe)?D[re]=[te]:D[re]=te}re!==void 0&&re!==g.textNodeName&&v.pop()}}}return typeof w=="string"?w.length>0&&(D[g.textNodeName]=w):w!==void 0&&(D[g.textNodeName]=w),D}s(V,"Vt");function B(S){let g=Object.keys(S);for(let v=0;v<g.length;v++){let C=g[v];if(C!==":@")return C}}s(B,"Dt");function L(S,g,v,C){if(g){let w=Object.keys(g),D=w.length;for(let X=0;X<D;X++){let Y=w[X],re=Y.startsWith(C.attributeNamePrefix)?Y.substring(C.attributeNamePrefix.length):Y,te=C.jPath?v.toString()+"."+re:v;C.isArray(Y,te,!0,!0)?S[Y]=[g[Y]]:S[Y]=g[Y]}}}s(L,"Mt");function A(S,g){let{textNodeName:v}=g,C=Object.keys(S).length;return C===0||!(C!==1||!S[v]&&typeof S[v]!="boolean"&&S[v]!==0)}s(A,"jt");let M0=class M0{constructor(g){this.externalEntities={},this.options=Te(g)}parse(g,v){if(typeof g!="string"&&g.toString)g=g.toString();else if(typeof g!="string")throw new Error("XML data is accepted in String or Bytes[] form.");if(v){v===!0&&(v={});let D=u(g,v);if(D!==!0)throw Error(`${D.err.msg}:${D.err.line}:${D.err.col}`)}let C=new K(this.options,this.externalEntities),w=C.parseXml(g);return this.options.preserveOrder||w===void 0?w:_(w,this.options,C.matcher,C.readonlyMatcher)}addEntity(g,v){if(v.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(g.indexOf("&")!==-1||g.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(v==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[g]=v}static getMetaDataSymbol(){return ue.getMetaDataSymbol()}};s(M0,"Lt");let z=M0;function le(S){return String(S).replace(/--/g,"- -").replace(/--/g,"- -").replace(/-$/,"- ")}s(le,"kt");function ct(S){return String(S).replace(/\]\]>/g,"]]]]><![CDATA[>")}s(ct,"Rt");function Zt(S){return String(S).replace(/"/g,""").replace(/'/g,"'")}s(Zt,"Ft");function en(S,g,v,C,w){return v.sanitizeName?Fe(S,{xmlVersion:w})?S:v.sanitizeName(S,{isAttribute:g,matcher:C.readOnly()}):S}s(en,"Gt");function Fi(S,g){let v="";g.format&&(v=`
|
|
306
|
-
`);let C=[];if(g.stopNodes&&Array.isArray(g.stopNodes))for(let D=0;D<g.stopNodes.length;D++){let X=g.stopNodes[D];typeof X=="string"?C.push(new Re(X)):X instanceof Re&&C.push(X)}let w=(function(D,X){if(!Array.isArray(D)||D.length===0)return"1.0";let Y=D[0];if(Na(Y)==="?xml"){let re=Y[":@"];if(re){let te=X.attributeNamePrefix+"version";if(re[te])return re[te]}}return"1.0"})(S,g);return ui(S,g,v,new q,C,w)}s(Fi,"Ut");function ui(S,g,v,C,w,D){let X="",Y=!1;if(g.maxNestedTags&&C.getDepth()>g.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(S)){if(S!=null){let re=S.toString();return re=C0(re,g),re}return""}for(let re=0;re<S.length;re++){let te=S[re],oe=Na(te);if(oe===void 0)continue;let fe=oe===g.textNodeName||oe===g.cdataPropName||oe===g.commentPropName||oe[0]==="?"?oe:en(oe,!1,g,C,D),He=Ps(te[":@"],g);C.push(fe,He);let ze=Kfe(C,w);if(fe===g.textNodeName){let Pr=te[oe];ze||(Pr=g.tagValueProcessor(fe,Pr),Pr=C0(Pr,g)),Y&&(X+=v),X+=Pr,Y=!1,C.pop();continue}if(fe===g.cdataPropName){Y&&(X+=v),X+=`<![CDATA[${ct(te[oe][0][g.textNodeName])}]]>`,Y=!1,C.pop();continue}if(fe===g.commentPropName){X+=v+`<!--${le(te[oe][0][g.textNodeName])}-->`,Y=!0,C.pop();continue}if(fe[0]==="?"){X+=(fe==="?xml"?"":v)+`<${fe}${kd(te[":@"],g,ze,C,D)}?>`,Y=!0,C.pop();continue}let Qe=v;Qe!==""&&(Qe+=g.indentBy);let tt=v+`<${fe}${kd(te[":@"],g,ze,C,D)}`,qt;qt=ze?_t(te[oe],g):ui(te[oe],g,Qe,C,w,D),g.unpairedTags.indexOf(fe)!==-1?g.suppressUnpairedNode?X+=tt+">":X+=tt+"/>":qt&&qt.length!==0||!g.suppressEmptyNode?qt&&qt.endsWith(">")?X+=tt+`>${qt}${v}</${fe}>`:(X+=tt+">",qt&&v!==""&&(qt.includes("/>")||qt.includes("</"))?X+=v+g.indentBy+qt+v:X+=qt,X+=`</${fe}>`):X+=tt+"/>",Y=!0,C.pop()}return X}s(ui,"Bt");function Ps(S,g){if(!S||g.ignoreAttributes)return null;let v={},C=!1;for(let w in S)Object.prototype.hasOwnProperty.call(S,w)&&(v[w.startsWith(g.attributeNamePrefix)?w.substr(g.attributeNamePrefix.length):w]=Zt(S[w]),C=!0);return C?v:null}s(Ps,"Wt");function _t(S,g){if(!Array.isArray(S))return S!=null?S.toString():"";let v="";for(let C=0;C<S.length;C++){let w=S[C],D=Na(w);if(D===g.textNodeName)v+=w[D];else if(D===g.cdataPropName)v+=w[D][0][g.textNodeName];else if(D===g.commentPropName)v+=w[D][0][g.textNodeName];else{if(D&&D[0]==="?")continue;if(D){let X=wa(w[":@"],g),Y=_t(w[D],g);Y&&Y.length!==0?v+=`<${D}${X}>${Y}</${D}>`:v+=`<${D}${X}/>`}}}return v}s(_t,"zt");function wa(S,g){let v="";if(S&&!g.ignoreAttributes)for(let C in S){if(!Object.prototype.hasOwnProperty.call(S,C))continue;let w=S[C];w===!0&&g.suppressBooleanAttributes?v+=` ${C.substr(g.attributeNamePrefix.length)}`:v+=` ${C.substr(g.attributeNamePrefix.length)}="${Zt(w)}"`}return v}s(wa,"Xt");function Na(S){let g=Object.keys(S);for(let v=0;v<g.length;v++){let C=g[v];if(Object.prototype.hasOwnProperty.call(S,C)&&C!==":@")return C}}s(Na,"Yt");function kd(S,g,v,C,w){let D="";if(S&&!g.ignoreAttributes)for(let X in S){if(!Object.prototype.hasOwnProperty.call(S,X))continue;let Y=X.substr(g.attributeNamePrefix.length),re=v?Y:en(Y,!0,g,C,w),te;v?te=S[X]:(te=g.attributeValueProcessor(X,S[X]),te=C0(te,g)),te===!0&&g.suppressBooleanAttributes?D+=` ${re}`:D+=` ${re}="${Zt(te)}"`}return D}s(kd,"qt");function Kfe(S,g){if(!g||g.length===0)return!1;for(let v=0;v<g.length;v++)if(S.matches(g[v]))return!0;return!1}s(Kfe,"Zt");function C0(S,g){if(S&&S.length>0&&g.processEntities)for(let v=0;v<g.entities.length;v++){let C=g.entities[v];S=S.replace(C.regex,C.val)}return S}s(C0,"Jt");let Jfe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:s(function(S,g){return g},"tagValueProcessor"),attributeValueProcessor:s(function(S,g){return g},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Zi(S){if(this.options=Object.assign({},Jfe,S),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(v=>typeof v=="string"&&v.startsWith("*.")?".."+v.substring(2):v)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let v=0;v<this.options.stopNodes.length;v++){let C=this.options.stopNodes[v];typeof C=="string"?this.stopNodeExpressions.push(new Re(C)):C instanceof Re&&this.stopNodeExpressions.push(C)}var g;this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=typeof(g=this.options.ignoreAttributes)=="function"?g:Array.isArray(g)?v=>{for(let C of g)if(typeof C=="string"&&v===C||C instanceof RegExp&&C.test(v))return!0}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=zfe),this.processTextOrObjNode=Yfe,this.options.format?(this.indentate=Xfe,this.tagEndChar=`>
|
|
307
|
-
`,this.newLine=`
|
|
308
|
-
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}s(Zi,"Qt");function w0(S,g,v,C,w){return v.sanitizeName?Fe(S,{xmlVersion:w})?S:v.sanitizeName(S,{isAttribute:g,matcher:C.readOnly()}):S}s(w0,"Ht");function Yfe(S,g,v,C,w){let D=this.extractAttributes(S);if(C.push(g,D),this.checkStopNode(C)){let Y=this.buildRawContent(S),re=this.buildAttributesForStopNode(S);return C.pop(),this.buildObjectNode(Y,g,re,v)}let X=this.j2x(S,v+1,C,w);return C.pop(),g[0]==="?"?this.buildTextValNode("",g,X.attrStr,v,C):S[this.options.textNodeName]!==void 0&&Object.keys(S).length===1?this.buildTextValNode(S[this.options.textNodeName],g,X.attrStr,v,C):this.buildObjectNode(X.val,g,X.attrStr,v)}s(Yfe,"te");function Xfe(S){return this.options.indentBy.repeat(S)}s(Xfe,"ee");function zfe(S){return!(!S.startsWith(this.options.attributeNamePrefix)||S===this.options.textNodeName)&&S.substr(this.attrPrefixLen)}s(zfe,"ne"),Zi.prototype.build=function(S){if(this.options.preserveOrder)return Fi(S,this.options);{Array.isArray(S)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(S={[this.options.arrayNodeName]:S});let g=new q,v=(function(C,w){let D=C["?xml"];if(D&&typeof D=="object"){if(w.attributesGroupName&&D[w.attributesGroupName]){let Y=D[w.attributesGroupName][w.attributeNamePrefix+"version"];if(Y)return Y}let X=D[w.attributeNamePrefix+"version"];if(X)return X}return"1.0"})(S,this.options);return this.j2x(S,0,g,v).val}},Zi.prototype.j2x=function(S,g,v,C){let w="",D="";if(this.options.maxNestedTags&&v.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let X=this.options.jPath?v.toString():v,Y=this.checkStopNode(v);for(let re in S){if(!Object.prototype.hasOwnProperty.call(S,re))continue;let te=re===this.options.textNodeName||re===this.options.cdataPropName||re===this.options.commentPropName||this.options.attributesGroupName&&re===this.options.attributesGroupName||this.isAttribute(re)||re[0]==="?"?re:w0(re,!1,this.options,v,C);if(S[re]===void 0)this.isAttribute(re)&&(D+="");else if(S[re]===null)this.isAttribute(re)||te===this.options.cdataPropName||te===this.options.commentPropName?D+="":te[0]==="?"?D+=this.indentate(g)+"<"+te+"?"+this.tagEndChar:D+=this.indentate(g)+"<"+te+"/"+this.tagEndChar;else if(S[re]instanceof Date)D+=this.buildTextValNode(S[re],te,"",g,v);else if(typeof S[re]!="object"){let oe=this.isAttribute(re);if(oe&&!this.ignoreAttributesFn(oe,X)){let fe=w0(oe,!0,this.options,v,C);w+=this.buildAttrPairStr(fe,""+S[re],Y)}else if(!oe)if(re===this.options.textNodeName){let fe=this.options.tagValueProcessor(re,""+S[re]);D+=this.replaceEntitiesValue(fe)}else{v.push(te);let fe=this.checkStopNode(v);if(v.pop(),fe){let He=""+S[re];D+=He===""?this.indentate(g)+"<"+te+this.closeTag(te)+this.tagEndChar:this.indentate(g)+"<"+te+">"+He+"</"+te+this.tagEndChar}else D+=this.buildTextValNode(S[re],te,"",g,v)}}else if(Array.isArray(S[re])){let oe=S[re].length,fe="",He="";for(let ze=0;ze<oe;ze++){let Qe=S[re][ze];if(Qe!==void 0)if(Qe===null)te[0]==="?"?D+=this.indentate(g)+"<"+te+"?"+this.tagEndChar:D+=this.indentate(g)+"<"+te+"/"+this.tagEndChar;else if(typeof Qe=="object")if(this.options.oneListGroup){v.push(te);let tt=this.j2x(Qe,g+1,v,C);v.pop(),fe+=tt.val,this.options.attributesGroupName&&Qe.hasOwnProperty(this.options.attributesGroupName)&&(He+=tt.attrStr)}else fe+=this.processTextOrObjNode(Qe,te,g,v,C);else if(this.options.oneListGroup){let tt=this.options.tagValueProcessor(te,Qe);tt=this.replaceEntitiesValue(tt),fe+=tt}else{v.push(te);let tt=this.checkStopNode(v);if(v.pop(),tt){let qt=""+Qe;fe+=qt===""?this.indentate(g)+"<"+te+this.closeTag(te)+this.tagEndChar:this.indentate(g)+"<"+te+">"+qt+"</"+te+this.tagEndChar}else fe+=this.buildTextValNode(Qe,te,"",g,v)}}this.options.oneListGroup&&(fe=this.buildObjectNode(fe,te,He,g)),D+=fe}else if(this.options.attributesGroupName&&re===this.options.attributesGroupName){let oe=Object.keys(S[re]),fe=oe.length;for(let He=0;He<fe;He++){let ze=w0(oe[He],!0,this.options,v,C);w+=this.buildAttrPairStr(ze,""+S[re][oe[He]],Y)}}else D+=this.processTextOrObjNode(S[re],te,g,v,C)}return{attrStr:w,val:D}},Zi.prototype.buildAttrPairStr=function(S,g,v){return v||(g=this.options.attributeValueProcessor(S,""+g),g=this.replaceEntitiesValue(g)),this.options.suppressBooleanAttributes&&g==="true"?" "+S:" "+S+'="'+Zt(g)+'"'},Zi.prototype.extractAttributes=function(S){if(!S||typeof S!="object")return null;let g={},v=!1;if(this.options.attributesGroupName&&S[this.options.attributesGroupName]){let C=S[this.options.attributesGroupName];for(let w in C)Object.prototype.hasOwnProperty.call(C,w)&&(g[w.startsWith(this.options.attributeNamePrefix)?w.substring(this.options.attributeNamePrefix.length):w]=Zt(C[w]),v=!0)}else for(let C in S){if(!Object.prototype.hasOwnProperty.call(S,C))continue;let w=this.isAttribute(C);w&&(g[w]=Zt(S[C]),v=!0)}return v?g:null},Zi.prototype.buildRawContent=function(S){if(typeof S=="string")return S;if(typeof S!="object"||S===null)return String(S);if(S[this.options.textNodeName]!==void 0)return S[this.options.textNodeName];let g="";for(let v in S){if(!Object.prototype.hasOwnProperty.call(S,v)||this.isAttribute(v)||this.options.attributesGroupName&&v===this.options.attributesGroupName)continue;let C=S[v];if(v===this.options.textNodeName)g+=C;else if(Array.isArray(C)){for(let w of C)if(typeof w=="string"||typeof w=="number")g+=`<${v}>${w}</${v}>`;else if(typeof w=="object"&&w!==null){let D=this.buildRawContent(w),X=this.buildAttributesForStopNode(w);g+=D===""?`<${v}${X}/>`:`<${v}${X}>${D}</${v}>`}}else if(typeof C=="object"&&C!==null){let w=this.buildRawContent(C),D=this.buildAttributesForStopNode(C);g+=w===""?`<${v}${D}/>`:`<${v}${D}>${w}</${v}>`}else g+=`<${v}>${C}</${v}>`}return g},Zi.prototype.buildAttributesForStopNode=function(S){if(!S||typeof S!="object")return"";let g="";if(this.options.attributesGroupName&&S[this.options.attributesGroupName]){let v=S[this.options.attributesGroupName];for(let C in v){if(!Object.prototype.hasOwnProperty.call(v,C))continue;let w=C.startsWith(this.options.attributeNamePrefix)?C.substring(this.options.attributeNamePrefix.length):C,D=v[C];D===!0&&this.options.suppressBooleanAttributes?g+=" "+w:g+=" "+w+'="'+D+'"'}}else for(let v in S){if(!Object.prototype.hasOwnProperty.call(S,v))continue;let C=this.isAttribute(v);if(C){let w=S[v];w===!0&&this.options.suppressBooleanAttributes?g+=" "+C:g+=" "+C+'="'+w+'"'}}return g},Zi.prototype.buildObjectNode=function(S,g,v,C){if(S==="")return g[0]==="?"?this.indentate(C)+"<"+g+v+"?"+this.tagEndChar:this.indentate(C)+"<"+g+v+this.closeTag(g)+this.tagEndChar;if(g[0]==="?")return this.indentate(C)+"<"+g+v+"?"+this.tagEndChar;{let w="</"+g+this.tagEndChar,D="";return g[0]==="?"&&(D="?",w=""),!v&&v!==""||S.indexOf("<")!==-1?this.options.commentPropName!==!1&&g===this.options.commentPropName&&D.length===0?this.indentate(C)+`<!--${S}-->`+this.newLine:this.indentate(C)+"<"+g+v+D+this.tagEndChar+S+this.indentate(C)+w:this.indentate(C)+"<"+g+v+D+">"+S+w}},Zi.prototype.closeTag=function(S){let g="";return this.options.unpairedTags.indexOf(S)!==-1?this.options.suppressUnpairedNode||(g="/"):g=this.options.suppressEmptyNode?"/":`></${S}`,g},Zi.prototype.checkStopNode=function(S){if(!this.stopNodeExpressions||this.stopNodeExpressions.length===0)return!1;for(let g=0;g<this.stopNodeExpressions.length;g++)if(S.matches(this.stopNodeExpressions[g]))return!0;return!1},Zi.prototype.buildTextValNode=function(S,g,v,C,w){if(this.options.cdataPropName!==!1&&g===this.options.cdataPropName){let D=ct(S);return this.indentate(C)+`<![CDATA[${D}]]>`+this.newLine}if(this.options.commentPropName!==!1&&g===this.options.commentPropName){let D=le(S);return this.indentate(C)+`<!--${D}-->`+this.newLine}if(g[0]==="?")return this.indentate(C)+"<"+g+v+"?"+this.tagEndChar;{let D=this.options.tagValueProcessor(g,S);return D=this.replaceEntitiesValue(D),D===""?this.indentate(C)+"<"+g+v+this.closeTag(g)+this.tagEndChar:this.indentate(C)+"<"+g+v+">"+D+"</"+g+this.tagEndChar}},Zi.prototype.replaceEntitiesValue=function(S){if(S&&S.length>0&&this.options.processEntities)for(let g=0;g<this.options.entities.length;g++){let v=this.options.entities[g];S=S.replace(v.regex,v.val)}return S};let Qfe=Zi,Zfe={validate:u};tle.exports=t})()});var nle=y(fM=>{"use strict";Object.defineProperty(fM,"__esModule",{value:!0});fM.isUI5IdUnique=E9e;var v9e=lM();function uM(e,t,n="@_"){if(typeof e!="object"||e===null)return!1;let r=e,i=`${n}id`;if(r[i]===t)return!0;for(let o in r)if(!o.startsWith(n)&&T9e(r[o],t,n))return!0;return!1}s(uM,"hasElementWithId");function T9e(e,t,n){return Array.isArray(e)?e.some(r=>uM(r,t,n)):typeof e=="object"&&e!==null?uM(e,t,n):!1}s(T9e,"checkIdInValue");function S9e(e,t){let n=new v9e.XMLParser({ignoreAttributes:!1,attributeNamePrefix:"@_",parseAttributeValue:!1});try{let r=n.parse(t);return r?!uM(r,e):!0}catch{return!0}}s(S9e,"checkElementIdAvailable");function E9e(e,t){return t.every(n=>n===""||S9e(e,n))}s(E9e,"isUI5IdUnique")});var qy=y(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.getMtaPath=ae.getPathMappings=ae.getMockDataPath=ae.getMockServerConfig=ae.getAllUi5YamlFileNames=ae.readUi5Yaml=ae.getWebappPath=ae.findRootsForPath=ae.findCapProjectRoot=ae.getAppRootFromWebappPath=ae.findProjectRoot=ae.findFioriArtifacts=ae.findCapProjects=ae.findAllApps=ae.loadModuleFromProject=ae.getProjectType=ae.getProject=ae.getMinimumUI5Version=ae.getMinUI5VersionAsArray=ae.getMinUI5VersionFromManifest=ae.getAppType=ae.getAppProgrammingLanguage=ae.getI18nBundles=ae.getI18nPropertiesPaths=ae.getCapI18nFolderNames=ae.hasDependency=ae.getNodeModulesPath=ae.addPackageDevDependency=ae.getMainService=ae.filterDataSourcesByType=ae.getGlobalCdsHomePath=ae.processServices=ae.checkCdsUi5PluginEnabled=ae.hasMinCdsVersion=ae.getWorkspaceInfo=ae.toReferenceUri=ae.readCapServiceMetadataEdmx=ae.isCapNodeJsProject=ae.isCapJavaProject=ae.isCapProject=ae.getCdsServices=ae.getCdsRoots=ae.getCdsFiles=ae.getCapServiceName=ae.getCapProjectType=ae.getCapModelAndServices=ae.getCapEnvironment=ae.getCapCustomPaths=ae.deleteCapApp=ae.clearCdsModuleCache=void 0;ae.isUI5IdUnique=ae.readFlexChanges=ae.refreshSpecificationDistTags=ae.getSpecificationPath=ae.getSpecificationModuleFromCache=ae.getSpecification=ae.hasUI5CliV3=ae.updatePackageScript=ae.createProjectAccess=ae.createApplicationAccess=void 0;var Qn=Jm();Object.defineProperty(ae,"clearCdsModuleCache",{enumerable:!0,get:s(function(){return Qn.clearCdsModuleCache},"get")});Object.defineProperty(ae,"deleteCapApp",{enumerable:!0,get:s(function(){return Qn.deleteCapApp},"get")});Object.defineProperty(ae,"getCapCustomPaths",{enumerable:!0,get:s(function(){return Qn.getCapCustomPaths},"get")});Object.defineProperty(ae,"getCapEnvironment",{enumerable:!0,get:s(function(){return Qn.getCapEnvironment},"get")});Object.defineProperty(ae,"getCapModelAndServices",{enumerable:!0,get:s(function(){return Qn.getCapModelAndServices},"get")});Object.defineProperty(ae,"getCapProjectType",{enumerable:!0,get:s(function(){return Qn.getCapProjectType},"get")});Object.defineProperty(ae,"getCapServiceName",{enumerable:!0,get:s(function(){return Qn.getCapServiceName},"get")});Object.defineProperty(ae,"getCdsFiles",{enumerable:!0,get:s(function(){return Qn.getCdsFiles},"get")});Object.defineProperty(ae,"getCdsRoots",{enumerable:!0,get:s(function(){return Qn.getCdsRoots},"get")});Object.defineProperty(ae,"getCdsServices",{enumerable:!0,get:s(function(){return Qn.getCdsServices},"get")});Object.defineProperty(ae,"isCapProject",{enumerable:!0,get:s(function(){return Qn.isCapProject},"get")});Object.defineProperty(ae,"isCapJavaProject",{enumerable:!0,get:s(function(){return Qn.isCapJavaProject},"get")});Object.defineProperty(ae,"isCapNodeJsProject",{enumerable:!0,get:s(function(){return Qn.isCapNodeJsProject},"get")});Object.defineProperty(ae,"readCapServiceMetadataEdmx",{enumerable:!0,get:s(function(){return Qn.readCapServiceMetadataEdmx},"get")});Object.defineProperty(ae,"toReferenceUri",{enumerable:!0,get:s(function(){return Qn.toReferenceUri},"get")});Object.defineProperty(ae,"getWorkspaceInfo",{enumerable:!0,get:s(function(){return Qn.getWorkspaceInfo},"get")});Object.defineProperty(ae,"hasMinCdsVersion",{enumerable:!0,get:s(function(){return Qn.hasMinCdsVersion},"get")});Object.defineProperty(ae,"checkCdsUi5PluginEnabled",{enumerable:!0,get:s(function(){return Qn.checkCdsUi5PluginEnabled},"get")});Object.defineProperty(ae,"processServices",{enumerable:!0,get:s(function(){return Qn.processServices},"get")});Object.defineProperty(ae,"getGlobalCdsHomePath",{enumerable:!0,get:s(function(){return Qn.getGlobalCdsHomePath},"get")});var rle=V$();Object.defineProperty(ae,"filterDataSourcesByType",{enumerable:!0,get:s(function(){return rle.filterDataSourcesByType},"get")});Object.defineProperty(ae,"getMainService",{enumerable:!0,get:s(function(){return rle.getMainService},"get")});var pM=lg();Object.defineProperty(ae,"addPackageDevDependency",{enumerable:!0,get:s(function(){return pM.addPackageDevDependency},"get")});Object.defineProperty(ae,"getNodeModulesPath",{enumerable:!0,get:s(function(){return pM.getNodeModulesPath},"get")});Object.defineProperty(ae,"hasDependency",{enumerable:!0,get:s(function(){return pM.hasDependency},"get")});var dM=UA();Object.defineProperty(ae,"getCapI18nFolderNames",{enumerable:!0,get:s(function(){return dM.getCapI18nFolderNames},"get")});Object.defineProperty(ae,"getI18nPropertiesPaths",{enumerable:!0,get:s(function(){return dM.getI18nPropertiesPaths},"get")});Object.defineProperty(ae,"getI18nBundles",{enumerable:!0,get:s(function(){return dM.getI18nBundles},"get")});var Bu=BA();Object.defineProperty(ae,"getAppProgrammingLanguage",{enumerable:!0,get:s(function(){return Bu.getAppProgrammingLanguage},"get")});Object.defineProperty(ae,"getAppType",{enumerable:!0,get:s(function(){return Bu.getAppType},"get")});Object.defineProperty(ae,"getMinUI5VersionFromManifest",{enumerable:!0,get:s(function(){return Bu.getMinUI5VersionFromManifest},"get")});Object.defineProperty(ae,"getMinUI5VersionAsArray",{enumerable:!0,get:s(function(){return Bu.getMinUI5VersionAsArray},"get")});Object.defineProperty(ae,"getMinimumUI5Version",{enumerable:!0,get:s(function(){return Bu.getMinimumUI5Version},"get")});Object.defineProperty(ae,"getProject",{enumerable:!0,get:s(function(){return Bu.getProject},"get")});Object.defineProperty(ae,"getProjectType",{enumerable:!0,get:s(function(){return Bu.getProjectType},"get")});var P9e=_T();Object.defineProperty(ae,"loadModuleFromProject",{enumerable:!0,get:s(function(){return P9e.loadModuleFromProject},"get")});var Gu=Km();Object.defineProperty(ae,"findAllApps",{enumerable:!0,get:s(function(){return Gu.findAllApps},"get")});Object.defineProperty(ae,"findCapProjects",{enumerable:!0,get:s(function(){return Gu.findCapProjects},"get")});Object.defineProperty(ae,"findFioriArtifacts",{enumerable:!0,get:s(function(){return Gu.findFioriArtifacts},"get")});Object.defineProperty(ae,"findProjectRoot",{enumerable:!0,get:s(function(){return Gu.findProjectRoot},"get")});Object.defineProperty(ae,"getAppRootFromWebappPath",{enumerable:!0,get:s(function(){return Gu.getAppRootFromWebappPath},"get")});Object.defineProperty(ae,"findCapProjectRoot",{enumerable:!0,get:s(function(){return Gu.findCapProjectRoot},"get")});Object.defineProperty(ae,"findRootsForPath",{enumerable:!0,get:s(function(){return Gu.findRootsForPath},"get")});var Od=Wm();Object.defineProperty(ae,"getWebappPath",{enumerable:!0,get:s(function(){return Od.getWebappPath},"get")});Object.defineProperty(ae,"readUi5Yaml",{enumerable:!0,get:s(function(){return Od.readUi5Yaml},"get")});Object.defineProperty(ae,"getAllUi5YamlFileNames",{enumerable:!0,get:s(function(){return Od.getAllUi5YamlFileNames},"get")});Object.defineProperty(ae,"getMockServerConfig",{enumerable:!0,get:s(function(){return Od.getMockServerConfig},"get")});Object.defineProperty(ae,"getMockDataPath",{enumerable:!0,get:s(function(){return Od.getMockDataPath},"get")});Object.defineProperty(ae,"getPathMappings",{enumerable:!0,get:s(function(){return Od.getPathMappings},"get")});var A9e=Gce();Object.defineProperty(ae,"getMtaPath",{enumerable:!0,get:s(function(){return A9e.getMtaPath},"get")});var ile=zce();Object.defineProperty(ae,"createApplicationAccess",{enumerable:!0,get:s(function(){return ile.createApplicationAccess},"get")});Object.defineProperty(ae,"createProjectAccess",{enumerable:!0,get:s(function(){return ile.createProjectAccess},"get")});var sle=ele();Object.defineProperty(ae,"updatePackageScript",{enumerable:!0,get:s(function(){return sle.updatePackageScript},"get")});Object.defineProperty(ae,"hasUI5CliV3",{enumerable:!0,get:s(function(){return sle.hasUI5CliV3},"get")});var WA=rM();Object.defineProperty(ae,"getSpecification",{enumerable:!0,get:s(function(){return WA.getSpecification},"get")});Object.defineProperty(ae,"getSpecificationModuleFromCache",{enumerable:!0,get:s(function(){return WA.getSpecificationModuleFromCache},"get")});Object.defineProperty(ae,"getSpecificationPath",{enumerable:!0,get:s(function(){return WA.getSpecificationPath},"get")});Object.defineProperty(ae,"refreshSpecificationDistTags",{enumerable:!0,get:s(function(){return WA.refreshSpecificationDistTags},"get")});var x9e=sM();Object.defineProperty(ae,"readFlexChanges",{enumerable:!0,get:s(function(){return x9e.readFlexChanges},"get")});var O9e=nle();Object.defineProperty(ae,"isUI5IdUnique",{enumerable:!0,get:s(function(){return O9e.isUI5IdUnique},"get")})});var ale=y(ole=>{"use strict";Object.defineProperty(ole,"__esModule",{value:!0})});var lle=y(cle=>{"use strict";Object.defineProperty(cle,"__esModule",{value:!0})});var fle=y(ule=>{"use strict";Object.defineProperty(ule,"__esModule",{value:!0})});var dle=y(ple=>{"use strict";Object.defineProperty(ple,"__esModule",{value:!0})});var gle=y(hle=>{"use strict";Object.defineProperty(hle,"__esModule",{value:!0})});var yle=y(mle=>{"use strict";Object.defineProperty(mle,"__esModule",{value:!0})});var vle=y(ble=>{"use strict";Object.defineProperty(ble,"__esModule",{value:!0})});var Sle=y(Tle=>{"use strict";Object.defineProperty(Tle,"__esModule",{value:!0})});var Ple=y(Ele=>{"use strict";Object.defineProperty(Ele,"__esModule",{value:!0})});var Ale=y(li=>{"use strict";var I9e=li&&li.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:s(function(){return t[n]},"get")}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),Ea=li&&li.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&I9e(t,e,n)};Object.defineProperty(li,"__esModule",{value:!0});Ea(ale(),li);Ea(lle(),li);Ea(fle(),li);Ea(dle(),li);Ea(gle(),li);Ea(yle(),li);Ea(vle(),li);Ea(Sle(),li);Ea(Ple(),li)});var xle=y(KA=>{"use strict";Object.defineProperty(KA,"__esModule",{value:!0});KA.ui5Libs=void 0;KA.ui5Libs=["sap.apf","sap.base","sap.chart","sap.collaboration","sap.f","sap.fe","sap.fileviewer","sap.gantt","sap.landvisz","sap.m","sap.ndc","sap.ovp","sap.rules","sap.suite","sap.tnt","sap.ui","sap.uiext","sap.ushell","sap.uxap","sap.viz","sap.webanalytics","sap.zen"]});var Lle=y(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.getReuseLibs=void 0;Pa.checkDependencies=j9e;Pa.getLibraryDesc=Cle;Pa.getLibraryDependencies=wle;Pa.getManifestDesc=Rle;Pa.getManifestDependencies=Fle;var xo=require("path"),Ile=xle(),JA=ei(),Ole=Ui(),hM=require("fs"),_9e=lM(),C9e=UA(),w9e=$A(),N9e=s(async(e,t,n,r)=>{var a,c;let i,o=(a=e["sap.app"])==null?void 0:a.type;if((o==="component"||o==="library")&&t){let l=_le(t),u=Fle(e),f=await Rle(e,t);n.findIndex(d=>d.name===(e==null?void 0:e["sap.app"].id))===-1&&(i={name:`${e["sap.app"].id}`,path:(0,xo.dirname)(t),type:l,uri:((c=e["sap.platform.abap"])==null?void 0:c.uri)??"",dependencies:u,libRoot:r,description:f})}return i},"getLibraryFromManifest"),R9e=s(async(e,t,n)=>{var o,a,c,l,u;let r,i=new _9e.XMLParser({removeNSPrefix:!0}).parse(e,!1);if((o=i==null?void 0:i.library)!=null&&o.name){let f=i!=null&&i.library?"library":"component";if(f==="component"||f==="library"){let p=_le(t),d=wle(i),h=await Cle(i,t);r={name:`${i.library.name}`,path:(0,xo.dirname)(t),type:p,uri:((u=(l=(c=(a=i.library)==null?void 0:a.appData)==null?void 0:c.manifest)==null?void 0:l["sap.platform.abap"])==null?void 0:u.uri)??"",dependencies:d,libRoot:n,description:h}}}return r},"getLibraryFromLibraryFile"),F9e=s((e,t)=>{if(t){let n=e.findIndex(r=>r.name===t.name);n>=0?e[n]=t:e.push(t)}},"updateLibOptions"),L9e=s(async e=>{let t=[];if(e)for(let n of e){let r=[".git","node_modules","dist"],i=await(0,JA.findFiles)("manifest.json",n.projectRoot,r),o=[...await(0,JA.findFiles)("library.js",n.projectRoot,r),...await(0,JA.findFiles)("library.ts",n.projectRoot,r)];for(let a of i){let c=(0,xo.join)(a,Ole.FileName.Manifest),l=await(0,JA.readJSON)(c),u=await N9e(l,c,t,n.projectRoot);u&&t.push(u)}for(let a of o)try{let c=(0,xo.join)(a,Ole.FileName.Library),l=(await hM.promises.readFile(c,{encoding:"utf8"})).toString(),u=await R9e(l,c,n.projectRoot);F9e(t,u)}catch{}}return t},"getReuseLibs");Pa.getReuseLibs=L9e;function _le(e){return(0,hM.existsSync)((0,xo.join)((0,xo.dirname)(e),"/library.js"))||(0,hM.existsSync)((0,xo.join)((0,xo.dirname)(e),"/library.ts"))?"library":"component"}s(_le,"getReuseType");function j9e(e,t){let n=[];return e.forEach(r=>{let i=r.dependencies;i!=null&&i.length&&i.forEach(o=>{t.some(a=>o===a.name)||n.push(o)})}),n.join()}s(j9e,"checkDependencies");async function Cle(e,t){var r,i,o,a,c;let n=(r=e==null?void 0:e.library)==null?void 0:r.documentation;if(typeof n=="string"&&n.startsWith("{{")){let l=n.substring(2,n.length-2);n=await Nle((0,xo.join)((0,xo.dirname)(t),((c=(a=(o=(i=e.library)==null?void 0:i.appData)==null?void 0:o.manifest)==null?void 0:a.i18n)==null?void 0:c.toString())??""),l)}return(n==null?void 0:n.toString())??""}s(Cle,"getLibraryDesc");function wle(e){var n,r;let t=[];if((r=(n=e==null?void 0:e.library)==null?void 0:n.dependencies)!=null&&r.dependency){let i=e.library.dependencies.dependency;Array.isArray(i)||(i=[i]),i.forEach(o=>{Ile.ui5Libs.some(a=>o.libraryName===a||o.libraryName.startsWith(a+"."))||t.push(o.libraryName)})}return t}s(wle,"getLibraryDependencies");async function Nle(e,t){let n="";try{let i=(await(0,w9e.getPropertiesI18nBundle)(e))[t].find(o=>o.key.value===t);i&&(n=i.value.value)}catch{}return n}s(Nle,"geti18nPropertyValue");async function Rle(e,t){var r;let n=(r=e["sap.app"])==null?void 0:r.description;if(typeof n=="string"&&n.startsWith("{{")){let i=n.substring(2,n.length-2),{"sap.app":o}=await(0,C9e.getI18nPropertiesPaths)(t,e);n=await Nle(o,i)}return(n??"").toString()}s(Rle,"getManifestDesc");function Fle(e){let t=[];return Object.values(["libs","components"]).forEach(r=>{var o,a,c,l;if((a=(o=e["sap.ui5"])==null?void 0:o.dependencies)==null?void 0:a[r]){let u=(l=(c=e==null?void 0:e["sap.ui5"])==null?void 0:c.dependencies)==null?void 0:l.libs;u&&Object.keys(u).forEach(f=>{Ile.ui5Libs.some(p=>f===p||f.startsWith(p+"."))||t.push(f)})}}),t}s(Fle,"getManifestDependencies")});var Dle=y(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.checkDependencies=Id.getReuseLibs=void 0;var jle=Lle();Object.defineProperty(Id,"getReuseLibs",{enumerable:!0,get:s(function(){return jle.getReuseLibs},"get")});Object.defineProperty(Id,"checkDependencies",{enumerable:!0,get:s(function(){return jle.checkDependencies},"get")})});var kle=y(YA=>{"use strict";Object.defineProperty(YA,"__esModule",{value:!0});YA.findRecursiveHierarchyKey=$le;YA.getTableCapabilitiesByEntitySet=M9e;var gM="RecursiveHierarchy";function D9e(e){return!!$le(e)}s(D9e,"hasRecursiveHierarchyForEntitySet");function $le(e){var n,r;let t=(r=(n=e==null?void 0:e.entityType)==null?void 0:n.annotations)==null?void 0:r.Hierarchy;if(t)return t[gM]?gM:Object.keys(t).find(i=>i.startsWith(gM))}s($le,"findRecursiveHierarchyKey");function $9e(e){var n,r,i,o,a,c,l;let t=((i=(r=(n=e.annotations)==null?void 0:n.Aggregation)==null?void 0:r.ApplySupported)==null?void 0:i.Transformations)||((l=(c=(a=(o=e.entityType)==null?void 0:o.annotations)==null?void 0:a.Aggregation)==null?void 0:c.ApplySupported)==null?void 0:l.Transformations);return Array.isArray(t)&&t.length>0}s($9e,"hasAggregateTransformations");function k9e(e,t){var r,i,o,a,c,l,u;let n=((o=(i=(r=e.annotations)==null?void 0:r.Aggregation)==null?void 0:i.ApplySupported)==null?void 0:o.Transformations)||((u=(l=(c=(a=e.entityType)==null?void 0:a.annotations)==null?void 0:c.Aggregation)==null?void 0:l.ApplySupported)==null?void 0:u.Transformations);return Array.isArray(n)?!t||t.length===0?n.length>0:t.every(f=>n.includes(f)):!1}s(k9e,"hasAggregateTransformationsForEntitySet");function M9e(e,t){return{hasAggregateTransformations:$9e(e),hasAggregateTransformationsForEntitySet:k9e(e,t),hasRecursiveHierarchyForEntitySet:D9e(e)}}s(M9e,"getTableCapabilitiesByEntitySet")});var Vle=y(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.getTableCapabilitiesByEntitySet=_d.findRecursiveHierarchyKey=void 0;var Mle=kle();Object.defineProperty(_d,"findRecursiveHierarchyKey",{enumerable:!0,get:s(function(){return Mle.findRecursiveHierarchyKey},"get")});Object.defineProperty(_d,"getTableCapabilitiesByEntitySet",{enumerable:!0,get:s(function(){return Mle.getTableCapabilitiesByEntitySet},"get")})});var mM=y(Z=>{"use strict";var V9e=Z&&Z.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:s(function(){return t[n]},"get")}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),q9e=Z&&Z.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&V9e(t,e,n)};Object.defineProperty(Z,"__esModule",{value:!0});Z.getWebappPath=Z.getProjectType=Z.getProject=Z.getPathMappings=Z.getNodeModulesPath=Z.getMockDataPath=Z.getMockServerConfig=Z.getMtaPath=Z.getMinimumUI5Version=Z.getMinUI5VersionAsArray=Z.getMinUI5VersionFromManifest=Z.getI18nBundles=Z.getI18nPropertiesPaths=Z.getSpecificationPath=Z.getSpecificationModuleFromCache=Z.getSpecification=Z.getCapI18nFolderNames=Z.getCdsServices=Z.getCdsRoots=Z.getCdsFiles=Z.getCapProjectType=Z.getCapServiceName=Z.getCapModelAndServices=Z.getCapEnvironment=Z.getCapCustomPaths=Z.getAppType=Z.getAppProgrammingLanguage=Z.getAppRootFromWebappPath=Z.getAllUi5YamlFileNames=Z.findRootsForPath=Z.findProjectRoot=Z.findFioriArtifacts=Z.findCapProjects=Z.findCapProjectRoot=Z.findAllApps=Z.filterDataSourcesByType=Z.deleteCapApp=Z.createProjectAccess=Z.createApplicationAccess=Z.clearCdsModuleCache=Z.addPackageDevDependency=Z.normalizePath=Z.findFilesByExtension=Z.getFilePaths=Z.fioriToolsDirectory=Z.MinCdsVersion=Z.MinCdsPluginUi5Version=Z.FioriToolsSettings=Z.DirName=Z.FileName=void 0;Z.hasDependency=Z.getTableCapabilitiesByEntitySet=Z.findRecursiveHierarchyKey=Z.getReuseLibs=Z.checkDependencies=Z.execNpmCommand=Z.isUI5IdUnique=Z.getGlobalCdsHomePath=Z.getMainService=Z.processServices=Z.readFlexChanges=Z.checkCdsUi5PluginEnabled=Z.hasMinCdsVersion=Z.getWorkspaceInfo=Z.updatePackageScript=Z.toReferenceUri=Z.refreshSpecificationDistTags=Z.readUi5Yaml=Z.readCapServiceMetadataEdmx=Z.loadModuleFromProject=Z.isCapNodeJsProject=Z.isCapJavaProject=Z.isCapProject=Z.hasUI5CliV3=void 0;var Cd=Ui();Object.defineProperty(Z,"FileName",{enumerable:!0,get:s(function(){return Cd.FileName},"get")});Object.defineProperty(Z,"DirName",{enumerable:!0,get:s(function(){return Cd.DirName},"get")});Object.defineProperty(Z,"FioriToolsSettings",{enumerable:!0,get:s(function(){return Cd.FioriToolsSettings},"get")});Object.defineProperty(Z,"MinCdsPluginUi5Version",{enumerable:!0,get:s(function(){return Cd.MinCdsPluginUi5Version},"get")});Object.defineProperty(Z,"MinCdsVersion",{enumerable:!0,get:s(function(){return Cd.MinCdsVersion},"get")});Object.defineProperty(Z,"fioriToolsDirectory",{enumerable:!0,get:s(function(){return Cd.fioriToolsDirectory},"get")});var qle=ei();Object.defineProperty(Z,"getFilePaths",{enumerable:!0,get:s(function(){return qle.getFilePaths},"get")});Object.defineProperty(Z,"findFilesByExtension",{enumerable:!0,get:s(function(){return qle.findFilesByExtension},"get")});var U9e=C_();Object.defineProperty(Z,"normalizePath",{enumerable:!0,get:s(function(){return U9e.normalizePath},"get")});var Je=qy();Object.defineProperty(Z,"addPackageDevDependency",{enumerable:!0,get:s(function(){return Je.addPackageDevDependency},"get")});Object.defineProperty(Z,"clearCdsModuleCache",{enumerable:!0,get:s(function(){return Je.clearCdsModuleCache},"get")});Object.defineProperty(Z,"createApplicationAccess",{enumerable:!0,get:s(function(){return Je.createApplicationAccess},"get")});Object.defineProperty(Z,"createProjectAccess",{enumerable:!0,get:s(function(){return Je.createProjectAccess},"get")});Object.defineProperty(Z,"deleteCapApp",{enumerable:!0,get:s(function(){return Je.deleteCapApp},"get")});Object.defineProperty(Z,"filterDataSourcesByType",{enumerable:!0,get:s(function(){return Je.filterDataSourcesByType},"get")});Object.defineProperty(Z,"findAllApps",{enumerable:!0,get:s(function(){return Je.findAllApps},"get")});Object.defineProperty(Z,"findCapProjectRoot",{enumerable:!0,get:s(function(){return Je.findCapProjectRoot},"get")});Object.defineProperty(Z,"findCapProjects",{enumerable:!0,get:s(function(){return Je.findCapProjects},"get")});Object.defineProperty(Z,"findFioriArtifacts",{enumerable:!0,get:s(function(){return Je.findFioriArtifacts},"get")});Object.defineProperty(Z,"findProjectRoot",{enumerable:!0,get:s(function(){return Je.findProjectRoot},"get")});Object.defineProperty(Z,"findRootsForPath",{enumerable:!0,get:s(function(){return Je.findRootsForPath},"get")});Object.defineProperty(Z,"getAllUi5YamlFileNames",{enumerable:!0,get:s(function(){return Je.getAllUi5YamlFileNames},"get")});Object.defineProperty(Z,"getAppRootFromWebappPath",{enumerable:!0,get:s(function(){return Je.getAppRootFromWebappPath},"get")});Object.defineProperty(Z,"getAppProgrammingLanguage",{enumerable:!0,get:s(function(){return Je.getAppProgrammingLanguage},"get")});Object.defineProperty(Z,"getAppType",{enumerable:!0,get:s(function(){return Je.getAppType},"get")});Object.defineProperty(Z,"getCapCustomPaths",{enumerable:!0,get:s(function(){return Je.getCapCustomPaths},"get")});Object.defineProperty(Z,"getCapEnvironment",{enumerable:!0,get:s(function(){return Je.getCapEnvironment},"get")});Object.defineProperty(Z,"getCapModelAndServices",{enumerable:!0,get:s(function(){return Je.getCapModelAndServices},"get")});Object.defineProperty(Z,"getCapServiceName",{enumerable:!0,get:s(function(){return Je.getCapServiceName},"get")});Object.defineProperty(Z,"getCapProjectType",{enumerable:!0,get:s(function(){return Je.getCapProjectType},"get")});Object.defineProperty(Z,"getCdsFiles",{enumerable:!0,get:s(function(){return Je.getCdsFiles},"get")});Object.defineProperty(Z,"getCdsRoots",{enumerable:!0,get:s(function(){return Je.getCdsRoots},"get")});Object.defineProperty(Z,"getCdsServices",{enumerable:!0,get:s(function(){return Je.getCdsServices},"get")});Object.defineProperty(Z,"getCapI18nFolderNames",{enumerable:!0,get:s(function(){return Je.getCapI18nFolderNames},"get")});Object.defineProperty(Z,"getSpecification",{enumerable:!0,get:s(function(){return Je.getSpecification},"get")});Object.defineProperty(Z,"getSpecificationModuleFromCache",{enumerable:!0,get:s(function(){return Je.getSpecificationModuleFromCache},"get")});Object.defineProperty(Z,"getSpecificationPath",{enumerable:!0,get:s(function(){return Je.getSpecificationPath},"get")});Object.defineProperty(Z,"getI18nPropertiesPaths",{enumerable:!0,get:s(function(){return Je.getI18nPropertiesPaths},"get")});Object.defineProperty(Z,"getI18nBundles",{enumerable:!0,get:s(function(){return Je.getI18nBundles},"get")});Object.defineProperty(Z,"getMinUI5VersionFromManifest",{enumerable:!0,get:s(function(){return Je.getMinUI5VersionFromManifest},"get")});Object.defineProperty(Z,"getMinUI5VersionAsArray",{enumerable:!0,get:s(function(){return Je.getMinUI5VersionAsArray},"get")});Object.defineProperty(Z,"getMinimumUI5Version",{enumerable:!0,get:s(function(){return Je.getMinimumUI5Version},"get")});Object.defineProperty(Z,"getMtaPath",{enumerable:!0,get:s(function(){return Je.getMtaPath},"get")});Object.defineProperty(Z,"getMockServerConfig",{enumerable:!0,get:s(function(){return Je.getMockServerConfig},"get")});Object.defineProperty(Z,"getMockDataPath",{enumerable:!0,get:s(function(){return Je.getMockDataPath},"get")});Object.defineProperty(Z,"getNodeModulesPath",{enumerable:!0,get:s(function(){return Je.getNodeModulesPath},"get")});Object.defineProperty(Z,"getPathMappings",{enumerable:!0,get:s(function(){return Je.getPathMappings},"get")});Object.defineProperty(Z,"getProject",{enumerable:!0,get:s(function(){return Je.getProject},"get")});Object.defineProperty(Z,"getProjectType",{enumerable:!0,get:s(function(){return Je.getProjectType},"get")});Object.defineProperty(Z,"getWebappPath",{enumerable:!0,get:s(function(){return Je.getWebappPath},"get")});Object.defineProperty(Z,"hasUI5CliV3",{enumerable:!0,get:s(function(){return Je.hasUI5CliV3},"get")});Object.defineProperty(Z,"isCapProject",{enumerable:!0,get:s(function(){return Je.isCapProject},"get")});Object.defineProperty(Z,"isCapJavaProject",{enumerable:!0,get:s(function(){return Je.isCapJavaProject},"get")});Object.defineProperty(Z,"isCapNodeJsProject",{enumerable:!0,get:s(function(){return Je.isCapNodeJsProject},"get")});Object.defineProperty(Z,"loadModuleFromProject",{enumerable:!0,get:s(function(){return Je.loadModuleFromProject},"get")});Object.defineProperty(Z,"readCapServiceMetadataEdmx",{enumerable:!0,get:s(function(){return Je.readCapServiceMetadataEdmx},"get")});Object.defineProperty(Z,"readUi5Yaml",{enumerable:!0,get:s(function(){return Je.readUi5Yaml},"get")});Object.defineProperty(Z,"refreshSpecificationDistTags",{enumerable:!0,get:s(function(){return Je.refreshSpecificationDistTags},"get")});Object.defineProperty(Z,"toReferenceUri",{enumerable:!0,get:s(function(){return Je.toReferenceUri},"get")});Object.defineProperty(Z,"updatePackageScript",{enumerable:!0,get:s(function(){return Je.updatePackageScript},"get")});Object.defineProperty(Z,"getWorkspaceInfo",{enumerable:!0,get:s(function(){return Je.getWorkspaceInfo},"get")});Object.defineProperty(Z,"hasMinCdsVersion",{enumerable:!0,get:s(function(){return Je.hasMinCdsVersion},"get")});Object.defineProperty(Z,"checkCdsUi5PluginEnabled",{enumerable:!0,get:s(function(){return Je.checkCdsUi5PluginEnabled},"get")});Object.defineProperty(Z,"readFlexChanges",{enumerable:!0,get:s(function(){return Je.readFlexChanges},"get")});Object.defineProperty(Z,"processServices",{enumerable:!0,get:s(function(){return Je.processServices},"get")});Object.defineProperty(Z,"getMainService",{enumerable:!0,get:s(function(){return Je.getMainService},"get")});Object.defineProperty(Z,"getGlobalCdsHomePath",{enumerable:!0,get:s(function(){return Je.getGlobalCdsHomePath},"get")});Object.defineProperty(Z,"isUI5IdUnique",{enumerable:!0,get:s(function(){return Je.isUI5IdUnique},"get")});var B9e=N_();Object.defineProperty(Z,"execNpmCommand",{enumerable:!0,get:s(function(){return B9e.execNpmCommand},"get")});q9e(Ale(),Z);var Ule=Dle();Object.defineProperty(Z,"checkDependencies",{enumerable:!0,get:s(function(){return Ule.checkDependencies},"get")});Object.defineProperty(Z,"getReuseLibs",{enumerable:!0,get:s(function(){return Ule.getReuseLibs},"get")});var Ble=Vle();Object.defineProperty(Z,"findRecursiveHierarchyKey",{enumerable:!0,get:s(function(){return Ble.findRecursiveHierarchyKey},"get")});Object.defineProperty(Z,"getTableCapabilitiesByEntitySet",{enumerable:!0,get:s(function(){return Ble.getTableCapabilitiesByEntitySet},"get")});var G9e=qy();Object.defineProperty(Z,"hasDependency",{enumerable:!0,get:s(function(){return G9e.hasDependency},"get")})});var Hle=y((DCt,Gle)=>{"use strict";Gle.exports=function(e,t){t=t||{raw:!1};let n=this.store.get(e);if(n.contents===null){if("defaults"in t)return t.defaults;throw new Error(e+" doesn't exist")}return t.raw?n.contents:n.contents.toString()}});var Kle=y(($Ct,Wle)=>{"use strict";Wle.exports=function(e,t){if(this.exists(e))try{return JSON.parse(this.read(e))}catch(n){throw new Error("Could not parse JSON in file: "+e+". Detail: "+n.message)}else return t}});var Yle=y((kCt,Jle)=>{"use strict";Jle.exports=function(e){return this.store.get(e).contents!==null}});var Zc=y((MCt,tue)=>{var H9e=require("fs"),Qc="state",XA="stateCleared",yM="modified",bM="deleted",Hy="isNew",Xle=s((e,t)=>{e[Qc]=t},"setFileState"),zle=s(e=>(e[Hy]===void 0&&(e[Hy]=!H9e.existsSync(e.path)),e[Hy]),"isFileNew"),Qle=s(e=>e[Qc]===yM,"isFileStateModified"),W9e=s(e=>Xle(e,yM),"setModifiedFileState"),Zle=s(e=>e[Qc]===bM,"isFileStateDeleted"),K9e=s(e=>Xle(e,bM),"setDeletedFileState"),J9e=s(e=>Qle(e)||Zle(e)&&!zle(e),"isFilePending"),Y9e=s(e=>{e.committed=!0},"setCommittedFile"),X9e=s(e=>!!e.committed,"isFileCommitted"),vM=s(e=>{delete e[Qc]},"resetFileState"),eue=s(e=>{delete e[XA],delete e.committed},"resetFileCommitStates"),z9e=s(e=>{vM(e),eue(e),delete e[Hy]},"resetFile"),Q9e=s(e=>{e[Qc]&&(e[XA]=e[Qc]),vM(e),delete e[Hy]},"clearFileState"),Z9e=s(e=>!!e[Qc],"hasState"),e6e=s(e=>!!e[XA],"hasClearedState");tue.exports={STATE:Qc,STATE_CLEARED:XA,STATE_MODIFIED:yM,STATE_DELETED:bM,isFileStateModified:Qle,setModifiedFileState:W9e,isFileStateDeleted:Zle,setDeletedFileState:K9e,setCommittedFile:Y9e,isFileCommitted:X9e,isFileNew:zle,isFilePending:J9e,resetFileState:vM,resetFileCommitStates:eue,resetFile:z9e,clearFileState:Q9e,hasState:Z9e,hasClearedState:e6e}});var rue=y((qCt,nue)=>{"use strict";var t6e=require("assert"),{isFileStateModified:n6e,setModifiedFileState:r6e}=Zc();nue.exports=function(e,t,n){t6e(typeof t=="string"||Buffer.isBuffer(t),"Expected `contents` to be a String or a Buffer");let r=this.store.get(e),i=Buffer.isBuffer(t)?t:Buffer.from(t);return(!n6e(r)||!Buffer.isBuffer(r.contents)||!i.equals(r.contents)||n!==void 0&&r.stat!==n)&&(r6e(r),r.contents=i,r.stat=n,this.store.add(r)),r.contents.toString()}});var sue=y((UCt,iue)=>{"use strict";iue.exports=function(e,t,n,r){let i=JSON.stringify(t,n||null,r||2)+`
|
|
309
|
-
`;return this.write(e,i)}});var aue=y((BCt,oue)=>{"use strict";var i6e=CL();oue.exports=function(e,t,n,r){let i=this.readJSON(e,{}),o=i6e({},i,t);this.writeJSON(e,o,n,r)}});var lue=y((GCt,cue)=>{"use strict";var{EOL:s6e}=require("os");cue.exports=function(e,t,n){if(n={trimEnd:!0,separator:s6e,...n},!this.exists(e)&&n.create){this.write(e,t);return}let r=this.read(e);n.trimEnd&&(r=r.replace(/\s+$/,"")),this.write(e,r+n.separator+t)}});var pue=y(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.isBinaryFileSync=Nd.isBinaryFile=void 0;var el=require("fs"),EM=require("util"),o6e=(0,EM.promisify)(el.stat),a6e=(0,EM.promisify)(el.open),c6e=(0,EM.promisify)(el.close),wd=512,Wy=3,PM=class PM{fileBuffer;size;offset;error;constructor(t,n){this.fileBuffer=t,this.size=n,this.offset=0,this.error=!1}hasError(){return this.error}nextByte(){return this.offset===this.size||this.hasError()?(this.error=!0,255):this.fileBuffer[this.offset++]}next(t){let n=new Array;for(let r=0;r<t;r++){if(this.error)return n;n[r]=this.nextByte()}return n}};s(PM,"Reader");var SM=PM;function TM(e){let t=0,n=0;for(;!e.hasError();){let r=e.nextByte();if(n=n|(r&127)<<7*t,(r&128)===0)break;if(t>=10){e.error=!0;break}t++}return n}s(TM,"readProtoVarInt");function l6e(e){switch(TM(e)&7){case 0:return TM(e),!0;case 1:return e.next(8),!0;case 2:let r=TM(e);return e.next(r),!0;case 5:return e.next(4),!0}return!1}s(l6e,"readProtoMessage");function u6e(e,t){let n=new SM(e,t),r=0;for(;;){if(!l6e(n)&&!n.hasError())return!1;if(n.hasError())break;r++}return r>0}s(u6e,"isBinaryProto");async function f6e(e,t){if(uue(e)){let n=await o6e(e);fue(n);let r=await a6e(e,"r"),i=Buffer.alloc(wd+Wy);return new Promise((o,a)=>{el.read(r,i,0,wd+Wy,0,(c,l,u)=>{if(c6e(r),c)a(c);else try{o(zA(i,l))}catch(f){a(f)}})})}else return t===void 0&&(t=e.length),zA(e,t)}s(f6e,"isBinaryFile");Nd.isBinaryFile=f6e;function p6e(e,t){if(uue(e)){let n=el.statSync(e);fue(n);let r=el.openSync(e,"r"),i=Buffer.alloc(wd+Wy),o=el.readSync(r,i,0,wd+Wy,0);return el.closeSync(r),zA(i,o)}else return t===void 0&&(t=e.length),zA(e,t)}s(p6e,"isBinaryFileSync");Nd.isBinaryFileSync=p6e;function zA(e,t){if(t===0)return!1;let n=0,r=Math.min(t,wd+Wy),i=Math.min(r,wd);if(t>=3&&e[0]===239&&e[1]===187&&e[2]===191||t>=4&&e[0]===0&&e[1]===0&&e[2]===254&&e[3]===255||t>=4&&e[0]===255&&e[1]===254&&e[2]===0&&e[3]===0||t>=4&&e[0]===132&&e[1]===49&&e[2]===149&&e[3]===51)return!1;if(r>=5&&e.slice(0,5).toString()==="%PDF-")return!0;if(t>=2&&e[0]===254&&e[1]===255||t>=2&&e[0]===255&&e[1]===254)return!1;for(let o=0;o<i;o++){if(e[o]===0)return!0;if((e[o]<7||e[o]>14)&&(e[o]<32||e[o]>127)){if(e[o]>=192&&e[o]<=223&&o+1<r){if(o++,e[o]>=128&&e[o]<=191)continue}else if(e[o]>=224&&e[o]<=239&&o+2<r){if(o++,e[o]>=128&&e[o]<=191&&e[o+1]>=128&&e[o+1]<=191){o++;continue}}else if(e[o]>=240&&e[o]<=247&&o+3<r&&(o++,e[o]>=128&&e[o]<=191&&e[o+1]>=128&&e[o+1]<=191&&e[o+2]>=128&&e[o+2]<=191)){o+=2;continue}if(n++,o>=32&&n*100/i>10)return!0}}return!!(n*100/i>10||n>1&&u6e(e,i))}s(zA,"isBinaryCheck");function uue(e){return typeof e=="string"}s(uue,"isString");function fue(e){if(!e.isFile())throw new Error("Path provided was not a file!")}s(fue,"isStatFile")});var tl=y(Hu=>{"use strict";var hue=Ua(),Ky=require("fs"),Jy=require("path"),d6e=h$(),h6e=ha(),QA=ga(),{Transform:g6e}=require("stream"),{isBinaryFileSync:due}=pue(),{default:m6e}=T$(),{default:y6e}=E$();function b6e(e){return e!=null&&e.charAt(0)!=="!"}s(b6e,"notNullOrExclusion");Hu.getCommonPath=function(e){if(Array.isArray(e))return e=e.filter(b6e).map(this.getCommonPath.bind(this)),d6e(e);let t=e.indexOf("*");if(t!==-1)e=e.substring(0,t+1);else if(Ky.existsSync(e)&&Ky.statSync(e).isDirectory())return e;return Jy.dirname(e)};Hu.globify=function(e){if(Array.isArray(e))return e.reduce((n,r)=>n.concat(this.globify(QA(r))),[]);if(e=QA(e),h6e.hasMagic(e))return e;if(!Ky.existsSync(e))return[e,QA(Jy.join(e,"**"))];let t=Ky.statSync(e);if(t.isFile())return e;if(t.isDirectory())return QA(Jy.join(e,"**"));throw new Error("Only file path or directory path are supported.")};Hu.createTransform=function(e){return new g6e({objectMode:!0,transform(...t){return e.apply(this,t)}})};Hu.isBinary=(e,t)=>{let n=Jy.extname(e).replace(/^\./,"")||Jy.basename(e);return y6e.includes(n)?!0:m6e.includes(n)?!1:Ky.existsSync(e)&&due(e)||t&&due(Buffer.isBuffer(t)?t:Buffer.from(t))};Hu.render=function(e,t,n){return hue.render(e,t,{cache:!1,...n})};Hu.renderFile=function(e,t,n){return hue.renderFile(e,t,{cache:!0,...n})}});var mue=y((YCt,gue)=>{"use strict";var{render:v6e}=tl();gue.exports=function(e,t,n,r,i){n=n||{},r=r||{},this.append(e,v6e(t.toString(),n,r),i)}});var vue=y((XCt,bue)=>{"use strict";var T6e=require("path"),S6e=ha(),E6e=Nu(),P6e=tl(),{setDeletedFileState:A6e}=Zc();function yue(e,t){let n=t.get(e);A6e(n),n.contents=null,t.add(n)}s(yue,"deleteFile");bue.exports=function(e,t){Array.isArray(e)||(e=[e]),e=e.map(i=>T6e.resolve(i)),e=P6e.globify(e),t=t||{};let n=t.globOptions||{};S6e.sync(e,n).forEach(i=>{yue(i,this.store)}),this.store.each(i=>{E6e([i.path],e).length!==0&&yue(i.path,this.store)})}});var _M=y(IM=>{"use strict";var OM=require("assert"),Tue=require("fs"),ZA=require("path"),AM=ha(),x6e=Nu(),xM=tl(),Sue=ga();function O6e(e,t,n){let r=e(t,n);return Buffer.isBuffer(r)?r:Buffer.from(r)}s(O6e,"applyProcessingFunc");IM.copy=function(e,t,n,r,i){t=ZA.resolve(t),n=n||{};let o=[];if(n.noGlob)o=(Array.isArray(e)?e:[e]).filter(l=>this.store.existsInMemory(l)||Tue.existsSync(l));else{let c=xM.globify(e),l={...n.globOptions,nodir:!0},u=AM.sync(c,l).map(p=>ZA.resolve(p)),f=[];this.store.each(p=>{!u.includes(p.path)&&!AM.hasMagic(Sue(p.path))&&x6e([p.path],c).length!==0&&f.push(p.path)}),o=u.concat(f)}let a=s(()=>t,"generateDestination");if(Array.isArray(e)||!this.exists(e)||AM.hasMagic(Sue(e))&&!n.noGlob){OM(!this.exists(t)||Tue.statSync(t).isDirectory(),"When copying multiple files, provide a directory as destination");let c=n.processDestinationPath||(u=>u),l=n.fromBasePath||xM.getCommonPath(e);a=s(u=>{let f=ZA.relative(l,u);return c(ZA.join(t,f))},"generateDestination")}OM(n.ignoreNoMatch||o.length>0,"Trying to copy from a source that does not exist: "+e),o.forEach(c=>{let l=a(c);r&&(l=xM.render(l,r,{...i,cache:!1})),this._copySingle(c,l,n,r,i)})};IM._copySingle=function(e,t,n={}){OM(this.exists(e),"Trying to copy from a source that does not exist: "+e);let r=this.store.get(e),{contents:i}=r;if(n.process&&(i=O6e(n.process,r.contents,r.path)),n.append){if(!this.store.existsInMemory)throw new Error("Current mem-fs is not compatible with append");if(this.store.existsInMemory(t)){this.append(t,i,{create:!0,...n});return}}this.write(t,i,r.stat)}});var wM=y((ewt,CM)=>{"use strict";var{isBinary:I6e,render:_6e}=tl();CM.exports._processTpl=function({contents:e,filename:t,context:n,tplSettings:r}){return I6e(t,e)?e:_6e(e.toString(),n,{filename:t,cache:!0,...r})};CM.exports.copyTpl=function(e,t,n,r,i){n=n||{},r=r||{},this.copy(e,t,{processDestinationPath:s(o=>o.replace(/.ejs$/,""),"processDestinationPath"),...i,process:s((o,a)=>this._processTpl({contents:o,filename:a,context:n,tplSettings:r}),"process")},n,r)}});var jM=y(LM=>{"use strict";var Eue=require("assert"),C6e=require("fs"),Aue=require("fs").promises,Yy=require("path"),NM=ha(),w6e=Nu(),FM=tl(),Pue=ga();async function N6e(e,t){let n=await Promise.resolve(e.call(this,t));return Buffer.isBuffer(n)?n:Buffer.from(n)}s(N6e,"applyProcessingFileFunc");function RM(e,t,n){return t?FM.render(e,t,n):e}s(RM,"renderFilepath");async function R6e(e){let t;if(typeof e=="string")t=e;else return;let n=Yy.resolve(t);try{if((await Aue.stat(n)).isFile())return n}catch{}}s(R6e,"getOneFile");LM.copyAsync=async function(e,t,n,r,i){t=Yy.resolve(t),n=n||{};let o=await R6e(e);if(o)return this._copySingleAsync(o,RM(t,r,i),n);let a=FM.globify(e),c={...n.globOptions,nodir:!0},l=NM.sync(a,c).map(p=>Yy.resolve(p)),u=[];this.store.each(p=>{!NM.hasMagic(Pue(p.path))&&w6e([p.path],a).length!==0&&!l.includes(p.path)&&u.push(p.path)});let f=s(()=>t,"generateDestination");if(Array.isArray(e)||!this.exists(e)||NM.hasMagic(Pue(e))){Eue(!this.exists(t)||C6e.statSync(t).isDirectory(),"When copying multiple files, provide a directory as destination");let p=n.processDestinationPath||(h=>h),d=FM.getCommonPath(e);f=s(h=>{let m=Yy.relative(d,h);return p(Yy.join(t,m))},"generateDestination")}Eue(n.ignoreNoMatch||l.length>0||u.length>0,"Trying to copy from a source that does not exist: "+e),await Promise.all([...l.map(p=>this._copySingleAsync(p,RM(f(p),r,i),n)),...u.map(p=>Promise.resolve(this._copySingle(p,RM(f(p),r,i),n)))])};LM._copySingleAsync=async function(e,t,n={}){if(!n.processFile)return this._copySingle(e,t,n);let r=await N6e.call(this,n.processFile,e);if(n.append){if(!this.store.existsInMemory)throw new Error("Current mem-fs is not compatible with append");if(this.store.existsInMemory(t)){this.append(t,r,{create:!0,...n});return}}let i=await Aue.stat(e);this.write(t,r,i)}});var Oue=y((iwt,xue)=>{"use strict";var F6e=require("fs").promises,{isBinary:L6e,renderFile:j6e}=tl();xue.exports=async function(e,t,n,r,i){n=n||{},r=r||{},await this.copyAsync(e,t,{processDestinationPath:s(o=>o.replace(/.ejs$/,""),"processDestinationPath"),...i,async processFile(o){return L6e(o,null)?F6e.readFile(o):j6e(o,n,r)},process:s((o,a,c)=>this._processTpl({contents:o,filename:a,destination:c,context:n,tplSettings:r}),"process")},n,r)}});var _ue=y((owt,Iue)=>{"use strict";Iue.exports=function(e,t,n){this.copy(e,t,n),this.delete(e,n)}});var Nue=y((awt,wue)=>{var{createTransform:Cue}=tl(),{isFilePending:D6e}=Zc(),$6e=s(()=>Cue((e,t,n)=>{n(void 0,D6e(e)?e:void 0)}),"createPendingFilesPassthrough"),k6e=s(e=>Cue((t,n,r)=>{e.commitFileAsync(t).then(()=>r()).catch(i=>r(i))}),"createCommitTransform");wue.exports={createPendingFilesPassthrough:$6e,createCommitTransform:k6e}});var Fue=y((lwt,Rue)=>{"use strict";var{promisify:M6e}=require("util"),{pipeline:V6e}=require("stream"),q6e=M6e(V6e),{createPendingFilesPassthrough:U6e,createCommitTransform:B6e}=Nue(),{isFilePending:G6e}=Zc();Rue.exports=function(e,t,n){typeof e=="function"?(n=e,e=[],t=void 0):typeof t=="function"&&(n=t,t=void 0),t=t||this.store.stream({filter:s(i=>G6e(i),"filter")}),e=e||[];let r=q6e(t,U6e(),...e,B6e(this));return n?r.then(()=>n(),n):r}});var Due=y((fwt,jue)=>{"use strict";var Wu=require("fs").promises,H6e=require("path"),{clearFileState:W6e,isFileStateModified:K6e,isFileStateDeleted:J6e,setCommittedFile:Lue}=Zc();async function Y6e(e){let t=H6e.dirname(e.path);try{if(!(await Wu.stat(t)).isDirectory())throw new Error(`${e.path} is not a directory`)}catch(r){if(r.code==="ENOENT")await Wu.mkdir(t,{recursive:!0});else throw r}let n={};if(e.stat&&(n.mode=e.stat.mode),await Wu.writeFile(e.path,e.contents,n),n.mode!==void 0){let{mode:r}=await Wu.stat(e.path);(r&511)!==(n.mode&511)&&await Wu.chmod(e.path,n.mode)}}s(Y6e,"write");async function X6e(e){await(Wu.rm||Wu.rmdir)(e.path,{recursive:!0})}s(X6e,"remove");jue.exports=async function(e){let t=this.store.get(e.path);(!t||t!==e)&&this.store.add(e),K6e(e)?(Lue(e),await Y6e(e)):J6e(e)&&(Lue(e),await X6e(e)),W6e(e)}});var Gue=y((dwt,Bue)=>{var $ue=c$();Bue.exports=Z6e;var kue="\0SLASH"+Math.random()+"\0",Mue="\0OPEN"+Math.random()+"\0",$M="\0CLOSE"+Math.random()+"\0",Vue="\0COMMA"+Math.random()+"\0",que="\0PERIOD"+Math.random()+"\0";function DM(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}s(DM,"numeric");function z6e(e){return e.split("\\\\").join(kue).split("\\{").join(Mue).split("\\}").join($M).split("\\,").join(Vue).split("\\.").join(que)}s(z6e,"escapeBraces");function Q6e(e){return e.split(kue).join("\\").split(Mue).join("{").split($M).join("}").split(Vue).join(",").split(que).join(".")}s(Q6e,"unescapeBraces");function Uue(e){if(!e)return[""];var t=[],n=$ue("{","}",e);if(!n)return e.split(",");var r=n.pre,i=n.body,o=n.post,a=r.split(",");a[a.length-1]+="{"+i+"}";var c=Uue(o);return o.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),t.push.apply(t,a),t}s(Uue,"parseCommaParts");function Z6e(e,t){if(!e)return[];t=t||{};var n=t.max==null?1/0:t.max;return e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Xy(z6e(e),n,!0).map(Q6e)}s(Z6e,"expandTop");function e7e(e){return"{"+e+"}"}s(e7e,"embrace");function t7e(e){return/^-?0\d/.test(e)}s(t7e,"isPadded");function n7e(e,t){return e<=t}s(n7e,"lte");function r7e(e,t){return e>=t}s(r7e,"gte");function Xy(e,t,n){var r=[],i=$ue("{","}",e);if(!i)return[e];var o=i.pre,a=i.post.length?Xy(i.post,t,!1):[""];if(/\$$/.test(i.pre))for(var c=0;c<a.length&&c<t;c++){var l=o+"{"+i.body+"}"+a[c];r.push(l)}else{var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),p=u||f,d=i.body.indexOf(",")>=0;if(!p&&!d)return i.post.match(/,(?!,).*\}/)?(e=i.pre+"{"+i.body+$M+i.post,Xy(e,t,!0)):[e];var h;if(p)h=i.body.split(/\.\./);else if(h=Uue(i.body),h.length===1&&(h=Xy(h[0],t,!1).map(e7e),h.length===1))return a.map(function(G){return i.pre+h[0]+G});var m;if(p){var b=DM(h[0]),T=DM(h[1]),I=Math.max(h[0].length,h[1].length),F=h.length==3?Math.max(Math.abs(DM(h[2])),1):1,N=n7e,$=T<b;$&&(F*=-1,N=r7e);var j=h.some(t7e);m=[];for(var M=b;N(M,T)&&m.length<t;M+=F){var k;if(f)k=String.fromCharCode(M),k==="\\"&&(k="");else if(k=String(M),j){var U=I-k.length;if(U>0){var R=new Array(U+1).join("0");M<0?k="-"+R+k.slice(1):k=R+k}}m.push(k)}}else{m=[];for(var se=0;se<h.length;se++)m.push.apply(m,Xy(h[se],t,!1))}for(var se=0;se<m.length;se++)for(var c=0;c<a.length&&r.length<t;c++){var l=o+m[se]+a[c];(!n||p||l)&&r.push(l)}}return r}s(Xy,"expand")});var Wue=y(e0=>{"use strict";Object.defineProperty(e0,"__esModule",{value:!0});e0.parseClass=void 0;var i7e={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},zy=s(e=>e.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),s7e=s(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),Hue=s(e=>e.join(""),"rangesToString"),o7e=s((e,t)=>{let n=t;if(e.charAt(n)!=="[")throw new Error("not in a brace expression");let r=[],i=[],o=n+1,a=!1,c=!1,l=!1,u=!1,f=n,p="";e:for(;o<e.length;){let b=e.charAt(o);if((b==="!"||b==="^")&&o===n+1){u=!0,o++;continue}if(b==="]"&&a&&!l){f=o+1;break}if(a=!0,b==="\\"&&!l){l=!0,o++;continue}if(b==="["&&!l){for(let[T,[I,F,N]]of Object.entries(i7e))if(e.startsWith(T,o)){if(p)return["$.",!1,e.length-n,!0];o+=T.length,N?i.push(I):r.push(I),c=c||F;continue e}}if(l=!1,p){b>p?r.push(zy(p)+"-"+zy(b)):b===p&&r.push(zy(b)),p="",o++;continue}if(e.startsWith("-]",o+1)){r.push(zy(b+"-")),o+=2;continue}if(e.startsWith("-",o+1)){p=b,o+=2;continue}r.push(zy(b)),o++}if(f<o)return["",!1,0,!1];if(!r.length&&!i.length)return["$.",!1,e.length-n,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!u){let b=r[0].length===2?r[0].slice(-1):r[0];return[s7e(b),!1,f-n,!1]}let d="["+(u?"^":"")+Hue(r)+"]",h="["+(u?"":"^")+Hue(i)+"]";return[r.length&&i.length?"("+d+"|"+h+")":r.length?d:h,c,f-n,!0]},"parseClass");e0.parseClass=o7e});var kM=y(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});t0.escape=void 0;var a7e=s((e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),"escape");t0.escape=a7e});var MM=y(n0=>{"use strict";Object.defineProperty(n0,"__esModule",{value:!0});n0.unescape=void 0;var c7e=s((e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),"unescape");n0.unescape=c7e});var tfe=y(Ue=>{"use strict";var l7e=Ue&&Ue.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.unescape=Ue.escape=Ue.Minimatch=Ue.match=Ue.makeRe=Ue.braceExpand=Ue.defaults=Ue.filter=Ue.GLOBSTAR=Ue.sep=Ue.minimatch=void 0;var u7e=l7e(Gue()),f7e=Wue(),p7e=kM(),d7e=MM(),h7e=s((e,t,n={})=>(r0(t),!n.nocomment&&t.charAt(0)==="#"?!1:new Ku(t,n).match(e)),"minimatch");Ue.minimatch=h7e;Ue.default=Ue.minimatch;var g7e=/^\*+([^+@!?\*\[\(]*)$/,m7e=s(e=>t=>!t.startsWith(".")&&t.endsWith(e),"starDotExtTest"),y7e=s(e=>t=>t.endsWith(e),"starDotExtTestDot"),b7e=s(e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),"starDotExtTestNocase"),v7e=s(e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),"starDotExtTestNocaseDot"),T7e=/^\*+\.\*+$/,S7e=s(e=>!e.startsWith(".")&&e.includes("."),"starDotStarTest"),E7e=s(e=>e!=="."&&e!==".."&&e.includes("."),"starDotStarTestDot"),P7e=/^\.\*+$/,A7e=s(e=>e!=="."&&e!==".."&&e.startsWith("."),"dotStarTest"),x7e=/^\*+$/,O7e=s(e=>e.length!==0&&!e.startsWith("."),"starTest"),I7e=s(e=>e.length!==0&&e!=="."&&e!=="..","starTestDot"),_7e=/^\?+([^+@!?\*\[\(]*)?$/,C7e=s(([e,t=""])=>{let n=zue([e]);return t?(t=t.toLowerCase(),r=>n(r)&&r.toLowerCase().endsWith(t)):n},"qmarksTestNocase"),w7e=s(([e,t=""])=>{let n=Que([e]);return t?(t=t.toLowerCase(),r=>n(r)&&r.toLowerCase().endsWith(t)):n},"qmarksTestNocaseDot"),N7e=s(([e,t=""])=>{let n=Que([e]);return t?r=>n(r)&&r.endsWith(t):n},"qmarksTestDot"),R7e=s(([e,t=""])=>{let n=zue([e]);return t?r=>n(r)&&r.endsWith(t):n},"qmarksTest"),zue=s(([e])=>{let t=e.length;return n=>n.length===t&&!n.startsWith(".")},"qmarksTestNoExt"),Que=s(([e])=>{let t=e.length;return n=>n.length===t&&n!=="."&&n!==".."},"qmarksTestNoExtDot"),Zue=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Kue={win32:{sep:"\\"},posix:{sep:"/"}};Ue.sep=Zue==="win32"?Kue.win32.sep:Kue.posix.sep;Ue.minimatch.sep=Ue.sep;Ue.GLOBSTAR=Symbol("globstar **");Ue.minimatch.GLOBSTAR=Ue.GLOBSTAR;var Jue={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},qM="[^/]",VM=qM+"*?",F7e="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",L7e="(?:(?!(?:\\/|^)\\.).)*?",efe=s(e=>e.split("").reduce((t,n)=>(t[n]=!0,t),{}),"charSet"),j7e=efe("().*{}+?[]^$\\!"),D7e=efe("[.("),$7e=s((e,t={})=>n=>(0,Ue.minimatch)(n,e,t),"filter");Ue.filter=$7e;Ue.minimatch.filter=Ue.filter;var Oo=s((e,t={})=>Object.assign({},e,t),"ext"),k7e=s(e=>{var r;if(!e||typeof e!="object"||!Object.keys(e).length)return Ue.minimatch;let t=Ue.minimatch;return Object.assign(s((i,o,a={})=>t(i,o,Oo(e,a)),"m"),{Minimatch:(r=class extends t.Minimatch{constructor(o,a={}){super(o,Oo(e,a))}static defaults(o){return t.defaults(Oo(e,o)).Minimatch}},s(r,"Minimatch"),r),unescape:s((i,o={})=>t.unescape(i,Oo(e,o)),"unescape"),escape:s((i,o={})=>t.escape(i,Oo(e,o)),"escape"),filter:s((i,o={})=>t.filter(i,Oo(e,o)),"filter"),defaults:s(i=>t.defaults(Oo(e,i)),"defaults"),makeRe:s((i,o={})=>t.makeRe(i,Oo(e,o)),"makeRe"),braceExpand:s((i,o={})=>t.braceExpand(i,Oo(e,o)),"braceExpand"),match:s((i,o,a={})=>t.match(i,o,Oo(e,a)),"match"),sep:t.sep,GLOBSTAR:Ue.GLOBSTAR})},"defaults");Ue.defaults=k7e;Ue.minimatch.defaults=Ue.defaults;var M7e=s((e,t={})=>(r0(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,u7e.default)(e)),"braceExpand");Ue.braceExpand=M7e;Ue.minimatch.braceExpand=Ue.braceExpand;var V7e=1024*64,r0=s(e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>V7e)throw new TypeError("pattern is too long")},"assertValidPattern"),q7e=s((e,t={})=>new Ku(e,t).makeRe(),"makeRe");Ue.makeRe=q7e;Ue.minimatch.makeRe=Ue.makeRe;var U7e=s((e,t,n={})=>{let r=new Ku(t,n);return e=e.filter(i=>r.match(i)),r.options.nonull&&!e.length&&e.push(t),e},"match");Ue.match=U7e;Ue.minimatch.match=Ue.match;var B7e=s(e=>e.replace(/\\(.)/g,"$1"),"globUnescape"),Yue=/[?*]|[+@!]\(.*?\)|\[|\]/,Xue=s(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),UM=class UM{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;maxGlobstarRecursion;constructor(t,n={}){r0(t),n=n||{},this.options=n,this.pattern=t,this.platform=n.platform||Zue,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!n.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!n.nonegate,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=n.windowsNoMagicRoot!==void 0?n.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.maxGlobstarRecursion=n.maxGlobstarRecursion!==void 0?n.maxGlobstarRecursion:200,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let n of t)if(typeof n!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,n=this.options;if(!n.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],n.debug&&(this.debug=(...o)=>console.error(...o)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(o=>this.slashSplit(o));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let i=this.globParts.map((o,a,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=o[0]===""&&o[1]===""&&(o[2]==="?"||!Yue.test(o[2]))&&!Yue.test(o[3]),u=/^[a-z]:/i.test(o[0]);if(l)return[...o.slice(0,4),...o.slice(4).map(f=>this.parse(f))];if(u)return[o[0],...o.slice(1).map(f=>this.parse(f))]}return o.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(o=>o.indexOf(!1)===-1),this.isWindows)for(let o=0;o<this.set.length;o++){let a=this.set[o];a[0]===""&&a[1]===""&&this.globParts[o][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let r=0;r<t.length;r++)for(let i=0;i<t[r].length;i++)t[r][i]==="**"&&(t[r][i]="*");let{optimizationLevel:n=1}=this.options;return n>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):n>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(n=>{let r=-1;for(;(r=n.indexOf("**",r+1))!==-1;){let i=r;for(;n[i+1]==="**";)i++;i!==r&&n.splice(r,i-r)}return n})}levelOneOptimize(t){return t.map(n=>(n=n.reduce((r,i)=>{let o=r[r.length-1];return i==="**"&&o==="**"?r:i===".."&&o&&o!==".."&&o!=="."&&o!=="**"?(r.pop(),r):(r.push(i),r)},[]),n.length===0?[""]:n))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){let o=t[i];i===1&&o===""&&t[0]===""||(o==="."||o==="")&&(n=!0,t.splice(i,1),i--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(n=!0,t.pop())}let r=0;for(;(r=t.indexOf("..",r+1))!==-1;){let i=t[r-1];i&&i!=="."&&i!==".."&&i!=="**"&&(n=!0,t.splice(r-1,2),r-=2)}}while(n);return t.length===0?[""]:t}firstPhasePreProcess(t){let n=!1;do{n=!1;for(let r of t){let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let a=i;for(;r[a+1]==="**";)a++;a>i&&r.splice(i+1,a-i);let c=r[i+1],l=r[i+2],u=r[i+3];if(c!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;n=!0,r.splice(i,1);let f=r.slice(0);f[i]="**",t.push(f),i--}if(!this.preserveMultipleSlashes){for(let a=1;a<r.length-1;a++){let c=r[a];a===1&&c===""&&r[0]===""||(c==="."||c==="")&&(n=!0,r.splice(a,1),a--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(n=!0,r.pop())}let o=0;for(;(o=r.indexOf("..",o+1))!==-1;){let a=r[o-1];if(a&&a!=="."&&a!==".."&&a!=="**"){n=!0;let l=o===1&&r[o+1]==="**"?["."]:[];r.splice(o-1,2,...l),r.length===0&&r.push(""),o-=2}}}}while(n);return t}secondPhasePreProcess(t){for(let n=0;n<t.length-1;n++)for(let r=n+1;r<t.length;r++){let i=this.partsMatch(t[n],t[r],!this.preserveMultipleSlashes);i&&(t[n]=i,t[r]=[])}return t.filter(n=>n.length)}partsMatch(t,n,r=!1){let i=0,o=0,a=[],c="";for(;i<t.length&&o<n.length;)if(t[i]===n[o])a.push(c==="b"?n[o]:t[i]),i++,o++;else if(r&&t[i]==="**"&&n[o]===t[i+1])a.push(t[i]),i++;else if(r&&n[o]==="**"&&t[i]===n[o+1])a.push(n[o]),o++;else if(t[i]==="*"&&n[o]&&(this.options.dot||!n[o].startsWith("."))&&n[o]!=="**"){if(c==="b")return!1;c="a",a.push(t[i]),i++,o++}else if(n[o]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(c==="a")return!1;c="b",a.push(n[o]),i++,o++}else return!1;return t.length===n.length&&a}parseNegate(){if(this.nonegate)return;let t=this.pattern,n=!1,r=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)n=!n,r++;r&&(this.pattern=t.slice(r)),this.negate=n}matchOne(t,n,r=!1){if(this.isWindows){let o=t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),a=n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3]);if(o&&a){let c=t[3],l=n[3];c.toLowerCase()===l.toLowerCase()&&(t[3]=l)}else if(a&&typeof t[0]=="string"){let c=n[3],l=t[0];c.toLowerCase()===l.toLowerCase()&&(n[3]=l,n=n.slice(3))}else if(o&&typeof n[0]=="string"){let c=t[3];c.toLowerCase()===n[0].toLowerCase()&&(n[0]=c,t=t.slice(3))}}let{optimizationLevel:i=1}=this.options;return i>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:n}),this.debug("matchOne",t.length,n.length),n.indexOf(Ue.GLOBSTAR)!==-1?this._matchGlobstar(t,n,r,0,0):this._matchOne(t,n,r,0,0)}_matchGlobstar(t,n,r,i,o){let a=-1;for(let F=o;F<n.length;F++)if(n[F]===Ue.GLOBSTAR){a=F;break}let c=-1;for(let F=n.length-1;F>=0;F--)if(n[F]===Ue.GLOBSTAR){c=F;break}let l=n.slice(o,a),u=r?n.slice(a+1):n.slice(a+1,c),f=r?[]:n.slice(c+1);if(l.length){let F=t.slice(i,i+l.length);if(!this._matchOne(F,l,r,0,0))return!1;i+=l.length}let p=0;if(f.length){if(f.length+i>t.length)return!1;let F=t.length-f.length;if(this._matchOne(t,f,r,F,0))p=f.length;else{if(t[t.length-1]!==""||i+f.length===t.length||!this._matchOne(t,f,r,F-1,0))return!1;p=f.length+1}}if(!u.length){let F=!!p;for(let N=i;N<t.length-p;N++){let $=String(t[N]);if(F=!0,$==="."||$===".."||!this.options.dot&&$.startsWith("."))return!1}return r||F}let d=[[[],0]],h=d[0],m=0,b=[0];for(let F of u)F===Ue.GLOBSTAR?(b.push(m),h=[[],0],d.push(h)):(h[0].push(F),m++);let T=d.length-1,I=t.length-p;for(let F of d)F[1]=I-(b[T--]+F[0].length);return!!this._matchGlobStarBodySections(t,d,i,0,r,0,!!p)}_matchGlobStarBodySections(t,n,r,i,o,a,c){let l=n[i];if(!l){for(let p=r;p<t.length;p++){c=!0;let d=t[p];if(d==="."||d===".."||!this.options.dot&&d.startsWith("."))return!1}return c}let[u,f]=l;for(;r<=f;){if(this._matchOne(t.slice(0,r+u.length),u,o,r,0)&&a<this.maxGlobstarRecursion){let h=this._matchGlobStarBodySections(t,n,r+u.length,i+1,o,a+1,c);if(h!==!1)return h}let d=t[r];if(d==="."||d===".."||!this.options.dot&&d.startsWith("."))return!1;r++}return o||null}_matchOne(t,n,r,i,o){let a,c,l,u;for(a=i,c=o,l=t.length,u=n.length;a<l&&c<u;a++,c++){this.debug("matchOne loop");let f=n[c],p=t[a];if(this.debug(n,f,p),f===!1||f===Ue.GLOBSTAR)return!1;let d;if(typeof f=="string"?(d=p===f,this.debug("string match",f,p,d)):(d=f.test(p),this.debug("pattern match",f,p,d)),!d)return!1}if(a===l&&c===u)return!0;if(a===l)return r;if(c===u)return a===l-1&&t[a]==="";throw new Error("wtf?")}braceExpand(){return(0,Ue.braceExpand)(this.pattern,this.options)}parse(t){r0(t);let n=this.options;if(t==="**")return Ue.GLOBSTAR;if(t==="")return"";let r,i=null;(r=t.match(x7e))?i=n.dot?I7e:O7e:(r=t.match(g7e))?i=(n.nocase?n.dot?v7e:b7e:n.dot?y7e:m7e)(r[1]):(r=t.match(_7e))?i=(n.nocase?n.dot?w7e:C7e:n.dot?N7e:R7e)(r):(r=t.match(T7e))?i=n.dot?E7e:S7e:(r=t.match(P7e))&&(i=A7e);let o="",a=!1,c=!1,l=[],u=[],f=!1,p=!1,d,h=t.charAt(0)===".",m=n.dot||h,b=s(()=>h?"":m?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","patternStart"),T=s($=>$.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","subPatternStart"),I=s(()=>{if(f){switch(f){case"*":o+=VM,a=!0;break;case"?":o+=qM,a=!0;break;default:o+="\\"+f;break}this.debug("clearStateChar %j %j",f,o),f=!1}},"clearStateChar");for(let $=0,j;$<t.length&&(j=t.charAt($));$++){if(this.debug("%s %s %s %j",t,$,o,j),c){if(j==="/")return!1;j7e[j]&&(o+="\\"),o+=j,c=!1;continue}switch(j){case"/":return!1;case"\\":I(),c=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,$,o,j),j==="*"&&f==="*")continue;this.debug("call clearStateChar %j",f),I(),f=j,n.noext&&I();continue;case"(":{if(!f){o+="\\(";continue}let se={type:f,start:$-1,reStart:o.length,open:Jue[f].open,close:Jue[f].close};this.debug(this.pattern," ",se),l.push(se),o+=se.open,se.start===0&&se.type!=="!"&&(h=!0,o+=T(t.slice($+1))),this.debug("plType %j %j",f,o),f=!1;continue}case")":{let se=l[l.length-1];if(!se){o+="\\)";continue}l.pop(),I(),a=!0,d=se,o+=d.close,d.type==="!"&&u.push(Object.assign(d,{reEnd:o.length}));continue}case"|":{let se=l[l.length-1];if(!se){o+="\\|";continue}I(),o+="|",se.start===0&&se.type!=="!"&&(h=!0,o+=T(t.slice($+1)));continue}case"[":I();let[M,k,U,R]=(0,f7e.parseClass)(t,$);U?(o+=M,p=p||k,$+=U-1,a=a||R):o+="\\[";continue;case"]":o+="\\"+j;continue;default:I(),o+=Xue(j);break}}for(d=l.pop();d;d=l.pop()){let $;$=o.slice(d.reStart+d.open.length),this.debug(this.pattern,"setting tail",o,d),$=$.replace(/((?:\\{2}){0,64})(\\?)\|/g,(M,k,U)=>(U||(U="\\"),k+k+U+"|")),this.debug(`tail=%j
|
|
310
|
-
%s`,$,$,d,o);let j=d.type==="*"?VM:d.type==="?"?qM:"\\"+d.type;a=!0,o=o.slice(0,d.reStart)+j+"\\("+$}I(),c&&(o+="\\\\");let F=D7e[o.charAt(0)];for(let $=u.length-1;$>-1;$--){let j=u[$],M=o.slice(0,j.reStart),k=o.slice(j.reStart,j.reEnd-8),U=o.slice(j.reEnd),R=o.slice(j.reEnd-8,j.reEnd)+U,se=M.split(")").length,G=M.split("(").length-se,Te=U;for(let ue=0;ue<G;ue++)Te=Te.replace(/\)[+*?]?/,"");U=Te;let pe=U===""?"(?:$|\\/)":"";o=M+k+U+pe+R}if(o!==""&&a&&(o="(?=.)"+o),F&&(o=b()+o),n.nocase&&!a&&!n.nocaseMagicOnly&&(a=t.toUpperCase()!==t.toLowerCase()),!a)return B7e(o);let N=(n.nocase?"i":"")+(p?"u":"");try{let $=i?{_glob:t,_src:o,test:i}:{_glob:t,_src:o};return Object.assign(new RegExp("^"+o+"$",N),$)}catch($){return this.debug("invalid regexp",$),new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let n=this.options,r=n.noglobstar?VM:n.dot?F7e:L7e,i=n.nocase?"i":"",o=t.map(a=>{let c=a.map(l=>typeof l=="string"?Xue(l):l===Ue.GLOBSTAR?Ue.GLOBSTAR:l._src);return c.forEach((l,u)=>{let f=c[u+1],p=c[u-1];l!==Ue.GLOBSTAR||p===Ue.GLOBSTAR||(p===void 0?f!==void 0&&f!==Ue.GLOBSTAR?c[u+1]="(?:\\/|"+r+"\\/)?"+f:c[u]=r:f===void 0?c[u-1]=p+"(?:\\/|"+r+")?":f!==Ue.GLOBSTAR&&(c[u-1]=p+"(?:\\/|\\/"+r+"\\/)"+f,c[u+1]=Ue.GLOBSTAR))}),c.filter(l=>l!==Ue.GLOBSTAR).join("/")}).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,i)}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,n=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&n)return!0;let r=this.options;this.isWindows&&(t=t.split("\\").join("/"));let i=this.slashSplit(t);this.debug(this.pattern,"split",i);let o=this.set;this.debug(this.pattern,"set",o);let a=i[i.length-1];if(!a)for(let c=i.length-2;!a&&c>=0;c--)a=i[c];for(let c=0;c<o.length;c++){let l=o[c],u=i;if(r.matchBase&&l.length===1&&(u=[a]),this.matchOne(u,l,n))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(t){return Ue.minimatch.defaults(t).Minimatch}};s(UM,"Minimatch");var Ku=UM;Ue.Minimatch=Ku;var G7e=kM();Object.defineProperty(Ue,"escape",{enumerable:!0,get:s(function(){return G7e.escape},"get")});var H7e=MM();Object.defineProperty(Ue,"unescape",{enumerable:!0,get:s(function(){return H7e.unescape},"get")});Ue.minimatch.Minimatch=Ku;Ue.minimatch.escape=p7e.escape;Ue.minimatch.unescape=d7e.unescape});var rfe=y((GM,nfe)=>{"use strict";var W7e=GM&&GM.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},BM=W7e(tfe());nfe.exports=Object.assign(BM.default,{default:BM.default,minimatch:BM.default})});var ofe=y((Pwt,sfe)=>{"use strict";var K7e=require("path"),J7e=ga(),Y7e=rfe(),{hasClearedState:X7e,hasState:z7e,STATE:HM,STATE_CLEARED:WM}=Zc(),ife=s(e=>X7e(e)||z7e(e),"defaultDumpFilter");sfe.exports=function(e=process.cwd(),t=ife){if(typeof t=="string"){let n=t;t=s(r=>ife(r)&&Y7e(r.path,n),"filter")}return Object.fromEntries(this.store.all().filter(n=>t(n,e)).map(n=>{let r=J7e(e?K7e.relative(e,n.path):n.path),i={contents:n.contents?n.contents.toString():n.contents};return n[HM]&&(i[HM]=n[HM]),n[WM]&&(i[WM]=n[WM]),[r,i]}))}});var afe=y(KM=>{"use strict";function Hn(e){this.store=e}s(Hn,"EditionInterface");Hn.prototype.read=Hle();Hn.prototype.readJSON=Kle();Hn.prototype.exists=Yle();Hn.prototype.write=rue();Hn.prototype.writeJSON=sue();Hn.prototype.extendJSON=aue();Hn.prototype.append=lue();Hn.prototype.appendTpl=mue();Hn.prototype.delete=vue();Hn.prototype.copy=_M().copy;Hn.prototype._copySingle=_M()._copySingle;Hn.prototype.copyTpl=wM().copyTpl;Hn.prototype._processTpl=wM()._processTpl;Hn.prototype.copyAsync=jM().copyAsync;Hn.prototype._copySingleAsync=jM()._copySingleAsync;Hn.prototype.copyTplAsync=Oue();Hn.prototype.move=_ue();Hn.prototype.commit=Fue();Hn.prototype.commitFileAsync=Due();Hn.prototype.dump=ofe();KM.create=function(e){return new Hn(e)};KM.State=Zc()});var Bo={};nf(Bo,{deleteConfigEntityByPath:()=>dQe,exportConfig:()=>fQe,exportConfigEntityByPath:()=>pQe,generateCustomExtension:()=>yQe,generateSchema:()=>uQe,getApiVersion:()=>qV,getChanges:()=>Wfe,getGenericSchema:()=>mT,getPathToGenericSchema:()=>o8,getProject:()=>PQe,importConfig:()=>hQe,importProject:()=>VV,importProjectSchema:()=>gQe,isDirectory:()=>vQe,log:()=>je,readApp:()=>MV,readDirectory:()=>UV});module.exports=rf(Bo);var $t=me(Pe());var ve=me(Pe());var lt=s(e=>typeof e=="string","isString"),Md=s(()=>{let e,t,n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},"defer"),$q=s(e=>e==null?"":""+e,"makeString"),hde=s((e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},"copy"),gde=/###/g,kq=s(e=>e&&e.indexOf("###")>-1?e.replace(gde,"."):e,"cleanKey"),Mq=s(e=>!e||lt(e),"canNotTraverseDeeper"),Vd=s((e,t,n)=>{let r=lt(t)?t.split("."):t,i=0;for(;i<r.length-1;){if(Mq(e))return{};let o=kq(r[i]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++i}return Mq(e)?{}:{obj:e,k:kq(r[i])}},"getLastOfPath"),Vq=s((e,t,n)=>{let{obj:r,k:i}=Vd(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let o=t[t.length-1],a=t.slice(0,t.length-1),c=Vd(e,a,Object);for(;c.obj===void 0&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),c=Vd(e,a,Object),c!=null&&c.obj&&typeof c.obj[`${c.k}.${o}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${o}`]=n},"setPath"),mde=s((e,t,n,r)=>{let{obj:i,k:o}=Vd(e,t,Object);i[o]=i[o]||[],i[o].push(n)},"pushPath"),ob=s((e,t)=>{let{obj:n,k:r}=Vd(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},"getPath"),yde=s((e,t,n)=>{let r=ob(e,n);return r!==void 0?r:ob(t,n)},"getPathWithDefaults"),Kq=s((e,t,n)=>{for(let r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?lt(e[r])||e[r]instanceof String||lt(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Kq(e[r],t[r],n):e[r]=t[r]);return e},"deepExtend"),pl=s(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),bde={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},vde=s(e=>lt(e)?e.replace(/[&<>"'\/]/g,t=>bde[t]):e,"escape"),tx=class tx{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 r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}};s(tx,"RegExpCache");var J0=tx,Tde=[" ",",","?","!",";"],Sde=new J0(20),Ede=s((e,t,n)=>{t=t||"",n=n||"";let r=Tde.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;let i=Sde.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`),o=!i.test(e);if(!o){let a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o},"looksLikeObjectPath"),Y0=s((e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let o=0;o<r.length;){if(!i||typeof i!="object")return;let a,c="";for(let l=o;l<r.length;++l)if(l!==o&&(c+=n),c+=r[l],a=i[c],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<r.length-1)continue;o+=l-o+1;break}i=a}return i},"deepFind"),Bd=s(e=>e==null?void 0:e.replace(/_/g,"-"),"getCleanedCode"),Pde={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}},Ud=class Ud{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||Pde,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(lt(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Ud(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Ud(this.logger,t)}};s(Ud,"Logger");var X0=Ud,Ws=new X0,nx=class nx{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);let i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,o])=>{for(let a=0;a<o;a++)i(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,o])=>{for(let a=0;a<o;a++)i.apply(i,[t,...n])})}};s(nx,"EventEmitter");var of=nx,rx=class rx extends of{constructor(t,n={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,r,i={}){var u,f;let o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],r&&(Array.isArray(r)?c.push(...r):lt(r)&&o?c.push(...r.split(o)):c.push(r)));let l=ob(this.data,c);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=c[0],n=c[1],r=c.slice(2).join(".")),l||!a||!lt(r)?l:Y0((f=(u=this.data)==null?void 0:u[t])==null?void 0:f[n],r,o)}addResource(t,n,r,i,o={silent:!1}){let a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=[t,n];r&&(c=c.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(c=t.split("."),i=n,n=c[1]),this.addNamespaces(n),Vq(this.data,c,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r,i={silent:!1}){for(let o in r)(lt(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o,a={silent:!1,skipCopy:!1}){let c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),i=r,r=n,n=c[1]),this.addNamespaces(n);let l=ob(this.data,c)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?Kq(l,r,o):l={...l,...r},Vq(this.data,c,l),a.silent||this.emit("added",t,n,r)}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.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}};s(rx,"ResourceStore");var ab=rx,Jq={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{var a;t=((a=this.processors[o])==null?void 0:a.process(t,n,r,i))??t}),t}},Yq=Symbol("i18next/PATH_KEY");function Ade(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>{var o;return(o=n==null?void 0:n.revoke)==null||o.call(n),i===Yq?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}s(Ade,"createProxy");function qd(e,t){let{[Yq]:n}=e(Ade()),r=(t==null?void 0:t.keySeparator)??".",i=(t==null?void 0:t.nsSeparator)??":";if(n.length>1&&i){let o=t==null?void 0:t.ns;if((o?Array.isArray(o)?o:[o]:[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}s(qd,"keysFromSelector");var qq={},H0=s(e=>!lt(e)&&typeof e!="boolean"&&typeof e!="number","shouldHandleAsObject"),fb=class fb extends of{constructor(t,n={}){super(),hde(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ws.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){let r={...n};if(t==null)return!1;let i=this.resolve(t,r);if((i==null?void 0:i.res)===void 0)return!1;let o=H0(i.res);return!(r.returnObjects===!1&&o)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");let i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,o=n.ns||this.options.defaultNS||[],a=r&&t.indexOf(r)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Ede(t,r,i);if(a&&!c){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:lt(o)?[o]:o};let u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(i)}return{key:t,namespaces:lt(o)?[o]:o}}translate(t,n,r){let i=typeof n=="object"?{...n}:n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=qd(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(pe=>typeof pe=="function"?qd(pe,{...this.options,...i}):String(pe));let o=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:c,namespaces:l}=this.extractFromKey(t[t.length-1],i),u=l[l.length-1],f=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;f===void 0&&(f=":");let p=i.lng||this.language,d=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((p==null?void 0:p.toLowerCase())==="cimode")return d?o?{res:`${u}${f}${c}`,usedKey:c,exactUsedKey:c,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:`${u}${f}${c}`:o?{res:c,usedKey:c,exactUsedKey:c,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:c;let h=this.resolve(t,i),m=h==null?void 0:h.res,b=(h==null?void 0:h.usedKey)||c,T=(h==null?void 0:h.exactUsedKey)||c,I=["[object Number]","[object Function]","[object RegExp]"],F=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,N=!this.i18nFormat||this.i18nFormat.handleAsObject,$=i.count!==void 0&&!lt(i.count),j=fb.hasDefaultValue(i),M=$?this.pluralResolver.getSuffix(p,i.count,i):"",k=i.ordinal&&$?this.pluralResolver.getSuffix(p,i.count,{ordinal:!1}):"",U=$&&!i.ordinal&&i.count===0,R=U&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${M}`]||i[`defaultValue${k}`]||i.defaultValue,se=m;N&&!m&&j&&(se=R);let G=H0(se),Te=Object.prototype.toString.apply(se);if(N&&se&&G&&I.indexOf(Te)<0&&!(lt(F)&&Array.isArray(se))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let pe=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,se,{...i,ns:l}):`key '${c} (${this.language})' returned an object instead of string.`;return o?(h.res=pe,h.usedParams=this.getUsedParamsDetails(i),h):pe}if(a){let pe=Array.isArray(se),ue=pe?[]:{},W=pe?T:b;for(let H in se)if(Object.prototype.hasOwnProperty.call(se,H)){let Ae=`${W}${a}${H}`;j&&!m?ue[H]=this.translate(Ae,{...i,defaultValue:H0(R)?R[H]:void 0,joinArrays:!1,ns:l}):ue[H]=this.translate(Ae,{...i,joinArrays:!1,ns:l}),ue[H]===Ae&&(ue[H]=se[H])}m=ue}}else if(N&<(F)&&Array.isArray(m))m=m.join(F),m&&(m=this.extendTranslation(m,t,i,r));else{let pe=!1,ue=!1;!this.isValidLookup(m)&&j&&(pe=!0,m=R),this.isValidLookup(m)||(ue=!0,m=c);let H=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ue?void 0:m,Ae=j&&R!==m&&this.options.updateMissing;if(ue||pe||Ae){if(this.logger.log(Ae?"updateKey":"missingKey",p,u,c,Ae?R:m),a){let Fe=this.resolve(c,{...i,keySeparator:!1});Fe&&Fe.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 Ne=[],Be=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Be&&Be[0])for(let Fe=0;Fe<Be.length;Fe++)Ne.push(Be[Fe]);else this.options.saveMissingTo==="all"?Ne=this.languageUtils.toResolveHierarchy(i.lng||this.language):Ne.push(i.lng||this.language);let tn=s((Fe,Oe,Lt)=>{var et;let In=j&&Lt!==m?Lt:H;this.options.missingKeyHandler?this.options.missingKeyHandler(Fe,u,Oe,In,Ae,i):(et=this.backendConnector)!=null&&et.saveMissing&&this.backendConnector.saveMissing(Fe,u,Oe,In,Ae,i),this.emit("missingKey",Fe,u,Oe,m)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&$?Ne.forEach(Fe=>{let Oe=this.pluralResolver.getSuffixes(Fe,i);U&&i[`defaultValue${this.options.pluralSeparator}zero`]&&Oe.indexOf(`${this.options.pluralSeparator}zero`)<0&&Oe.push(`${this.options.pluralSeparator}zero`),Oe.forEach(Lt=>{tn([Fe],c+Lt,i[`defaultValue${Lt}`]||R)})}):tn(Ne,c,R))}m=this.extendTranslation(m,t,i,h,r),ue&&m===c&&this.options.appendNamespaceToMissingKey&&(m=`${u}${f}${c}`),(ue||pe)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${f}${c}`:c,pe?m:void 0,i))}return o?(h.res=m,h.usedParams=this.getUsedParamsDetails(i),h):m}extendTranslation(t,n,r,i,o){var l,u;if((l=this.i18nFormat)!=null&&l.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});let f=lt(t)&&(((u=r==null?void 0:r.interpolation)==null?void 0:u.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),p;if(f){let h=t.match(this.interpolator.nestingRegexp);p=h&&h.length}let d=r.replace&&!lt(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language||i.usedLng,r),f){let h=t.match(this.interpolator.nestingRegexp),m=h&&h.length;p<m&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...h)=>(o==null?void 0:o[0])===h[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):this.translate(...h,n),r)),r.interpolation&&this.interpolator.reset()}let a=r.postProcess||this.options.postProcess,c=lt(a)?[a]:a;return t!=null&&(c!=null&&c.length)&&r.applyPostProcessor!==!1&&(t=Jq.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,i,o,a,c;return lt(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(l=>typeof l=="function"?qd(l,{...this.options,...n}):l)),t.forEach(l=>{if(this.isValidLookup(r))return;let u=this.extractFromKey(l,n),f=u.key;i=f;let p=u.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));let d=n.count!==void 0&&!lt(n.count),h=d&&!n.ordinal&&n.count===0,m=n.context!==void 0&&(lt(n.context)||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(T=>{var I,F;this.isValidLookup(r)||(c=T,!qq[`${b[0]}-${T}`]&&((I=this.utils)!=null&&I.hasLoadedNamespace)&&!((F=this.utils)!=null&&F.hasLoadedNamespace(c))&&(qq[`${b[0]}-${T}`]=!0,this.logger.warn(`key "${i}" for languages "${b.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(N=>{var M;if(this.isValidLookup(r))return;a=N;let $=[f];if((M=this.i18nFormat)!=null&&M.addLookupKeys)this.i18nFormat.addLookupKeys($,f,N,T,n);else{let k;d&&(k=this.pluralResolver.getSuffix(N,n.count,n));let U=`${this.options.pluralSeparator}zero`,R=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(n.ordinal&&k.indexOf(R)===0&&$.push(f+k.replace(R,this.options.pluralSeparator)),$.push(f+k),h&&$.push(f+U)),m){let se=`${f}${this.options.contextSeparator||"_"}${n.context}`;$.push(se),d&&(n.ordinal&&k.indexOf(R)===0&&$.push(se+k.replace(R,this.options.pluralSeparator)),$.push(se+k),h&&$.push(se+U))}}let j;for(;j=$.pop();)this.isValidLookup(r)||(o=j,r=this.getResource(N,T,j,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,i={}){var o;return(o=this.i18nFormat)!=null&&o.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(t={}){let n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!lt(t.replace),i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(let o of n)delete i[o]}return i}static hasDefaultValue(t){let n="defaultValue";for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}};s(fb,"Translator");var cb=fb,ix=class ix{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ws.create("languageUtils")}getScriptPartFromCode(t){if(t=Bd(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=Bd(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(lt(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}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(r=>{if(n)return;let i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;let i=this.getScriptPartFromCode(r);if(this.isSupportedCode(i))return n=i;let o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(a=>{if(a===o)return a;if(!(a.indexOf("-")<0&&o.indexOf("-")<0)&&(a.indexOf("-")>0&&o.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===o||a.indexOf(o)===0&&o.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),lt(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){let r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),i=[],o=s(a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))},"addCode");return lt(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):lt(t)&&o(this.formatLanguageCode(t)),r.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}};s(ix,"LanguageUtil");var lb=ix,Uq={zero:0,one:1,two:2,few:3,many:4,other:5},Bq={select:s(e=>e===1?"one":"other","select"),resolvedOptions:s(()=>({pluralCategories:["one","other"]}),"resolvedOptions")},sx=class sx{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Ws.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){let r=Bd(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let a;try{a=new Intl.PluralRules(r,{type:i})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Bq;if(!t.match(/-|_/))return Bq;let l=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(l,n)}return this.pluralRulesCache[o]=a,a}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((i,o)=>Uq[i]-Uq[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,n,r={}){let i=this.getRule(t,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}};s(sx,"PluralResolver");var z0=sx,Gq=s((e,t,n,r=".",i=!0)=>{let o=yde(e,t,n);return!o&&i&<(n)&&(o=Y0(e,n,r),o===void 0&&(o=Y0(t,n,r))),o},"deepFindWithDefaults"),W0=s(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),ox=class ox{constructor(t={}){var n;this.logger=Ws.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:a,suffix:c,suffixEscaped:l,formatSeparator:u,unescapeSuffix:f,unescapePrefix:p,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:m,nestingSuffixEscaped:b,nestingOptionsSeparator:T,maxReplaces:I,alwaysFormat:F}=t.interpolation;this.escape=n!==void 0?n:vde,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?pl(o):a||"{{",this.suffix=c?pl(c):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=f?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=d?pl(d):h||pl("$t("),this.nestingSuffix=m?pl(m):b||pl(")"),this.nestingOptionsSeparator=T||",",this.maxReplaces=I||1e3,this.alwaysFormat=F!==void 0?F:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=s((n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"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,r,i){var h;let o,a,c,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=s(m=>{if(m.indexOf(this.formatSeparator)<0){let F=Gq(n,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(F,void 0,r,{...i,...n,interpolationkey:m}):F}let b=m.split(this.formatSeparator),T=b.shift().trim(),I=b.join(this.formatSeparator).trim();return this.format(Gq(n,l,T,this.options.keySeparator,this.options.ignoreJSONStructure),I,r,{...i,...n,interpolationkey:T})},"handleFormat");this.resetRegExp();let f=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,p=((h=i==null?void 0:i.interpolation)==null?void 0:h.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:s(m=>W0(m),"safeValue")},{regex:this.regexp,safeValue:s(m=>this.escapeValue?W0(this.escape(m)):W0(m),"safeValue")}].forEach(m=>{for(c=0;o=m.regex.exec(t);){let b=o[1].trim();if(a=u(b),a===void 0)if(typeof f=="function"){let I=f(t,o,i);a=lt(I)?I:""}else if(i&&Object.prototype.hasOwnProperty.call(i,b))a="";else if(p){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),a="";else!lt(a)&&!this.useRawValueToEscape&&(a=$q(a));let T=m.safeValue(a);if(t=t.replace(o[0],T),p?(m.regex.lastIndex+=a.length,m.regex.lastIndex-=o[0].length):m.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n,r={}){let i,o,a,c=s((l,u)=>{let f=this.nestingOptionsSeparator;if(l.indexOf(f)<0)return l;let p=l.split(new RegExp(`${pl(f)}[ ]*{`)),d=`{${p[1]}`;l=p[0],d=this.interpolate(d,a);let h=d.match(/'/g),m=d.match(/"/g);(((h==null?void 0:h.length)??0)%2===0&&!m||((m==null?void 0:m.length)??0)%2!==0)&&(d=d.replace(/'/g,'"'));try{a=JSON.parse(d),u&&(a={...u,...a})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,b),`${l}${f}${d}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l},"handleHasOptions");for(;i=this.nestingRegexp.exec(t);){let l=[];a={...r},a=a.replace&&!lt(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let u=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(u!==-1&&(l=i[1].slice(u).split(this.formatSeparator).map(f=>f.trim()).filter(Boolean),i[1]=i[1].slice(0,u)),o=n(c.call(this,i[1].trim(),a),a),o&&i[0]===t&&!lt(o))return o;lt(o)||(o=$q(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),l.length&&(o=l.reduce((f,p)=>this.format(f,p,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}};s(ox,"Interpolator");var ub=ox,xde=s(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let r=e.split("(");t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(a){let[c,...l]=a.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),f=c.trim();n[f]||(n[f]=u),u==="false"&&(n[f]=!1),u==="true"&&(n[f]=!0),isNaN(u)||(n[f]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),Hq=s(e=>{let t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});let a=r+JSON.stringify(o),c=t[a];return c||(c=e(Bd(r),i),t[a]=c),c(n)}},"createCachedFormatter"),Ode=s(e=>(t,n,r)=>e(Bd(n),r)(t),"createNonCachedFormatter"),ax=class ax{constructor(t={}){this.logger=Ws.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";let r=n.cacheInBuiltFormats?Hq:Ode;this.formats={number:r((i,o)=>{let a=new Intl.NumberFormat(i,{...o});return c=>a.format(c)}),currency:r((i,o)=>{let a=new Intl.NumberFormat(i,{...o,style:"currency"});return c=>a.format(c)}),datetime:r((i,o)=>{let a=new Intl.DateTimeFormat(i,{...o});return c=>a.format(c)}),relativetime:r((i,o)=>{let a=new Intl.RelativeTimeFormat(i,{...o});return c=>a.format(c,o.range||"day")}),list:r((i,o)=>{let a=new Intl.ListFormat(i,{...o});return c=>a.format(c)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Hq(n)}format(t,n,r,i={}){let o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(c=>c.indexOf(")")>-1)){let c=o.findIndex(l=>l.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,c)].join(this.formatSeparator)}return o.reduce((c,l)=>{var p;let{formatName:u,formatOptions:f}=xde(l);if(this.formats[u]){let d=c;try{let h=((p=i==null?void 0:i.formatParams)==null?void 0:p[i.interpolationkey])||{},m=h.locale||h.lng||i.locale||i.lng||r;d=this.formats[u](c,m,{...f,...i,...h})}catch(h){this.logger.warn(h)}return d}else this.logger.warn(`there was no format function for ${u}`);return c},t)}};s(ax,"Formatter");var Q0=ax,Ide=s((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),cx=class cx extends of{constructor(t,n,r,i={}){var o,a;super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Ws.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],(a=(o=this.backend)==null?void 0:o.init)==null||a.call(o,r,i.backend,i)}queueLoad(t,n,r,i){let o={},a={},c={},l={};return t.forEach(u=>{let f=!0;n.forEach(p=>{let d=`${u}|${p}`;!r.reload&&this.store.hasResourceBundle(u,p)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?a[d]===void 0&&(a[d]=!0):(this.state[d]=1,f=!1,a[d]===void 0&&(a[d]=!0),o[d]===void 0&&(o[d]=!0),l[p]===void 0&&(l[p]=!0)))}),f||(c[u]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){let i=t.split("|"),o=i[0],a=i[1];n&&this.emit("failedLoading",o,a,n),!n&&r&&this.store.addResourceBundle(o,a,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);let c={};this.queue.forEach(l=>{mde(l.loaded,[o],a),Ide(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{c[u]||(c[u]={});let f=l.loaded[u];f.length&&f.forEach(p=>{c[u][p]===void 0&&(c[u][p]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r,i=0,o=this.retryTimeout,a){if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:a});return}this.readingCalls++;let c=s((u,f)=>{if(this.readingCalls--,this.waitingReads.length>0){let p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(u&&f&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,o*2,a)},o);return}a(u,f)},"resolver"),l=this.backend[r].bind(this.backend);if(l.length===2){try{let u=l(t,n);u&&typeof u.then=="function"?u.then(f=>c(null,f)).catch(c):c(null,u)}catch(u){c(u)}return}return l(t,n,c)}prepareLoading(t,n,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();lt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),lt(n)&&(n=[n]);let o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){let r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(a,c)=>{a&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,a),!a&&c&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,c),this.loaded(t,a,c)})}saveMissing(t,n,r,i,o,a={},c=()=>{}){var l,u,f,p,d;if((u=(l=this.services)==null?void 0:l.utils)!=null&&u.hasLoadedNamespace&&!((p=(f=this.services)==null?void 0:f.utils)!=null&&p.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" 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(!(r==null||r==="")){if((d=this.backend)!=null&&d.create){let h={...a,isUpdate:o},m=this.backend.create.bind(this.backend);if(m.length<6)try{let b;m.length===5?b=m(t,n,r,i,h):b=m(t,n,r,i),b&&typeof b.then=="function"?b.then(T=>c(null,T)).catch(c):c(null,b)}catch(b){c(b)}else m(t,n,r,i,c,h)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}};s(cx,"Connector");var Z0=cx,K0=s(()=>({debug:!1,initAsync:!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:s(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),lt(e[1])&&(t.defaultValue=e[1]),lt(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:s(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),"get"),Wq=s(e=>{var t,n;return lt(e.ns)&&(e.ns=[e.ns]),lt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),lt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},"transformOptions"),sb=s(()=>{},"noop"),_de=s(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Xq="__i18next_supportNoticeShown",Cde=s(()=>typeof globalThis<"u"&&!!globalThis[Xq],"getSupportNoticeShown"),wde=s(()=>{typeof globalThis<"u"&&(globalThis[Xq]=!0)},"setSupportNoticeShown"),Nde=s(e=>{var t,n,r,i,o,a,c,l,u,f,p,d,h;return!!(((r=(n=(t=e==null?void 0:e.modules)==null?void 0:t.backend)==null?void 0:n.name)==null?void 0:r.indexOf("Locize"))>0||((c=(a=(o=(i=e==null?void 0:e.modules)==null?void 0:i.backend)==null?void 0:o.constructor)==null?void 0:a.name)==null?void 0:c.indexOf("Locize"))>0||(u=(l=e==null?void 0:e.options)==null?void 0:l.backend)!=null&&u.backends&&e.options.backend.backends.some(m=>{var b,T,I;return((b=m==null?void 0:m.name)==null?void 0:b.indexOf("Locize"))>0||((I=(T=m==null?void 0:m.constructor)==null?void 0:T.name)==null?void 0:I.indexOf("Locize"))>0})||(p=(f=e==null?void 0:e.options)==null?void 0:f.backend)!=null&&p.projectId||(h=(d=e==null?void 0:e.options)==null?void 0:d.backend)!=null&&h.backendOptions&&e.options.backend.backendOptions.some(m=>m==null?void 0:m.projectId))},"usesLocize"),sf=class sf extends of{constructor(t={},n){if(super(),this.options=Wq(t),this.services={},this.logger=Ws,this.modules={external:[]},_de(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(lt(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let r=K0();this.options={...r,...this.options,...Wq(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!Nde(this)&&!Cde()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("\u{1F310} i18next is made possible by our own product, Locize \u2014 consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \u{1F499}"),wde());let i=s(u=>u?typeof u=="function"?new u:u:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Ws.init(i(this.modules.logger),this.options):Ws.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=Q0;let f=new lb(this.options);this.store=new ab(this.options.resources,this.options);let p=this.services;p.logger=Ws,p.resourceStore=this.store,p.languageUtils=f,p.pluralResolver=new z0(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(p.formatter=i(u),p.formatter.init&&p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new ub(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new Z0(i(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",(h,...m)=>{this.emit(h,...m)}),this.modules.languageDetector&&(p.languageDetector=i(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=i(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new cb(this.services,this.options),this.translator.on("*",(h,...m)=>{this.emit(h,...m)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,n||(n=sb),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...f)=>this.store[u](...f)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...f)=>(this.store[u](...f),this)});let c=Md(),l=s(()=>{let u=s((f,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(p),n(f,p)},"finish");if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)},"load");return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),c}loadResources(t,n=sb){var o,a;let r=n,i=lt(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();let c=[],l=s(u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(p=>{p!=="cimode"&&c.indexOf(p)<0&&c.push(p)})},"append");i?l(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>l(f)),(a=(o=this.options.preload)==null?void 0:o.forEach)==null||a.call(o,u=>l(u)),this.services.backendConnector.load(c,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(t,n,r){let i=Md();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=sb),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}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"&&Jq.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 r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;let r=Md();this.emit("languageChanging",t);let i=s(c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},"setLngProps"),o=s((c,l)=>{l?this.isLanguageChangingTo===t&&(i(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...u)=>this.t(...u)),n&&n(c,(...u)=>this.t(...u))},"done"),a=s(c=>{var f,p;!t&&!c&&this.services.languageDetector&&(c=[]);let l=lt(c)?c:c&&c[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(lt(c)?[c]:c);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),(p=(f=this.services.languageDetector)==null?void 0:f.cacheUserLanguage)==null||p.call(f,u)),this.loadResources(u,d=>{o(d,u)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),r}getFixedT(t,n,r){let i=s((o,a,...c)=>{let l;typeof a!="object"?l=this.options.overloadTranslationOptionHandler([o,a].concat(c)):l={...a},l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||i.keyPrefix);let u=this.options.keySeparator||".",f;return l.keyPrefix&&Array.isArray(o)?f=o.map(p=>(typeof p=="function"&&(p=qd(p,{...this.options,...a})),`${l.keyPrefix}${u}${p}`)):(typeof o=="function"&&(o=qd(o,{...this.options,...a})),f=l.keyPrefix?`${l.keyPrefix}${u}${o}`:o),this.t(f,l)},"fixedT");return lt(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){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 r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;let a=s((c,l)=>{let u=this.services.backendConnector.state[`${c}|${l}`];return u===-1||u===0||u===2},"loadNotPending");if(n.precheck){let c=n.precheck(this,a);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}loadNamespaces(t,n){let r=Md();return this.options.ns?(lt(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){let r=Md();lt(t)&&(t=[t]);let i=this.options.preload||[],o=t.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){var i,o;if(t||(t=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{let a=new Intl.Locale(t);if(a&&a.getTextInfo){let c=a.getTextInfo();if(c&&c.direction)return c.direction}}catch{}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"],r=((o=this.services)==null?void 0:o.languageUtils)||new lb(K0());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){let r=new sf(t,n);return r.createInstance=sf.createInstance,r}cloneInstance(t={},n=sb){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},o=new sf(i);if((t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(c=>{o[c]=this[c]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r){let c=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((f,p)=>(f[p]={...l[u][p]},f),l[u]),l),{});o.store=new ab(c,i),o.services.resourceStore=o.store}if(t.interpolation){let l={...K0().interpolation,...this.options.interpolation,...t.interpolation},u={...i,interpolation:l};o.services.interpolator=new ub(u)}return o.translator=new cb(o.services,i),o.translator.on("*",(c,...l)=>{o.emit(c,...l)}),o.init(i,n),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};s(sf,"I18n");var ex=sf,ee=ex.createInstance(),jQe=ee.createInstance,DQe=ee.dir,$Qe=ee.init,kQe=ee.loadResources,MQe=ee.reloadResources,VQe=ee.use,qQe=ee.changeLanguage,UQe=ee.getFixedT,BQe=ee.t,GQe=ee.exists,HQe=ee.setDefaultNamespace,WQe=ee.hasLoadedNamespace,KQe=ee.loadNamespaces,JQe=ee.loadLanguages;var LB=me(lx()),jB=me(PU()),Nb=me(lB()),St=require("@sap-ux/vocabularies-types/vocabularies/UI"),Xd=require("@sap-ux/vocabularies-types/vocabularies/Communication");var _x=me(Pe());var je=s((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?console.log(`${_x.logSeverityLabel[t.severity]}: ${t.message}; location: ${t.location}`,...n):console.log(`${_x.logSeverityLabel[t.severity]}: '${t.message}`,...n)},"log");var hi=me(Pe());var cn=s((e,t)=>e+t.join("::"),"buildControlIdFromParent"),_b=s((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),or=s((e,t)=>{let n,r=hi.FACETTITLEPREFIX;return t!==void 0&&t.includes(r)?n=t.split(r)[1]:n=e.replace(new RegExp("/@","g"),"::").replace(/@com.sap/g,"com.sap"),n},"convertSectionId");function gge(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}s(gge,"escapeId");var uB=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(uB||{});function mge(e,t,n){let r;return e=e.map(function(i){if(i===hi.PropertyName.sections){for(let o=0;o<t.length;o++)if(t[o]===hi.PropertyName.sections)return r=t[o+1],t[o+1]=or(r,n)+"::Table",t[o+1]}return i}),{idBreadcrumbs:e}}s(mge,"mapBreadcrumbs");var Cx=s((e,t,n,r,i)=>{let o="listReport",a=[...n];({idBreadcrumbs:t}=mge(t,a,i)),a[0]===hi.PropertyName.sections?o=a[1].replace(/::com.sap.vocabularies/g,hi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,hi.VOCWITHSLASH):t[0]===hi.PropertyName.table&&(o=t[0]);let l=a[a.length-1].replace(/::com.sap.vocabularies/g,hi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,hi.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),u,f=l.indexOf(":::");return l.startsWith("DataField")&&f>-1?(l=l.replace("/",":2f"),u=`${e}template:::TableColumn:::${l.substring(0,f)}:::sSmartTableId::${o.replace("::Table",":3a:3aTable")}:::${l.substring(f+3)}`):(l=l.replace("/","_"),u=`${e}${t.join("::")}-${l}`),gge(u)},"buildColumnControlId"),gi=s(e=>{let t=e[e.length-1].split(":::"),n,r,i;return t.length>2?(n=t[0],r=t[1].split("::")[1],i=t[2].split("::")[1]):t.length===2?(n=t[0],i=t[1].split("sAction::")[1]):i=t[0],{actionType:n,semanticObjectId:r,actionId:i}},"getActionBreadcrumbParts");function yge(e){let t=hi.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(r=>{r.toString().startsWith("{")||(n=n?`${n}|${r.toString()}`:r.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}s(yge,"determinePattern");var fB=s((e,t,n,r)=>{let i=t&&t.properties;if(i[n].pattern)return;let o=i[n],a=o,c=o.$ref?e.definitions[o.$ref.split(he)[1]]:o,l=o.description?o.description:c.description,u=yge(c);c.type&&c.type==="boolean"&&(a={enum:[!1,!0]}),r&&a.enum&&r.forEach(f=>{a.enum.indexOf(f)===-1&&a.enum.push(f)}),i[n]={pattern:u,anyOf:[a,{type:"string"}]},l&&(i[n].description=l,delete o.description)},"addPatternForBindingChangeOfEnum"),Ys=s((e,t,n)=>{fB(e,t,n)},"addPatternForBindingChangeOfEnumLR"),jt=s((e,t,n)=>{let r=Object.values(uB);fB(e,t,n,r)},"addPatternForBindingChangeOfEnumOP");function pB(){}s(pB,"doNotDelete");var MZe=me(hB());var wx=Symbol("specificationMetadataKey"),O=s(e=>Reflect.metadata(wx,e),"syncRule");function pr(e,t){let n;return e&&(n=Reflect.getMetadata(wx,e,t)),n}s(pr,"getReflectMetadata");function gB(e){let t;return e&&(t=Reflect.getMetadata(wx,e)),t}s(gB,"getReflectTypeMetadata");var Xs=s(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),mB=Symbol("childId"),Zn=s(e=>Reflect.metadata(mB,e),"childId"),yB=s((e,t)=>Reflect.getMetadata(mB,e,t),"getChildId"),bB=s(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),bge=Symbol("descriptionSrcURL"),Fn=s(e=>Reflect.metadata(bge,e),"descriptionSrcURL");var vge=Symbol("validityMetadataKey"),de=s(e=>Reflect.metadata(vge,e),"validity");function pf(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}s(pf,"getTextForDeprecated");var OB=me(AB()),IB=me(Pe());var _B=OB.default.change,xB={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function CB(e,t){let n="";try{for(let r in xB)e[r]===void 0&&(e[r]=xB[r]);n=_B.createChangeString(e,t)}catch(r){console.error("Error while create flex change.",r)}return n}s(CB,"createChangeString");function Wr(e){try{return _B.parse(e)}catch{return!1}}s(Wr,"parseChangeString");function wB(e,t,n,r,i){let o=n.layer?n.layer===IB.FlexChangeLayer.Customer:!0,a={controlId:i,controlType:t.flex.controlType(),content:{property:r},sapui5Version:n.ui5Version,isCustomer:o};return e[r]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(a,e,r):e[r].toString().startsWith("{")?(a.content.newBinding=e[r],a.type="propertyBindingChange"):a.content.newValue=e[r]:a.content.newValue=null,a}s(wB,"fillFlexChangeContent");function ye(e,t){return CB(e,t)}s(ye,"exportToFlexChange");var he="#/definitions/",Nx=s((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),Os=s((e,t,n)=>{if(!e)return;let r=`/${e}/@${t}`;return n&&(r+=`#${n}`),r},"createAnnotationPath");function dl(e,t){let n=[],r;return e&&e.forEach(function(i){try{n.push((0,Nb.parse)(i.fileContent,i.dataSourceUri))}catch(o){return je(t,{severity:ve.LogSeverity.Error,message:ee.t("ANNOERR"),location:{path:ee.t("ANNOTATIONFILE",{file:i.dataSourceUri})}},o),r}}),n.length>0&&(r=(0,jB.convert)((0,Nb.merge)(...n))),r}s(dl,"parseAndMergeAndConvert");var df=s(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Rx(e,t,n){var r,i,o,a;if((r=e==null?void 0:e.Common)!=null&&r.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let c=t&&t.resolvePath(e.Common.Label.path);c!=null&&c.value?n=c.value:typeof((i=c==null?void 0:c.Common)==null?void 0:i.Label)=="string"&&(n=c.annotations.Common.Label)}else typeof((a=(o=e.Common)==null?void 0:o.Label)==null?void 0:a.toString())=="string"&&(n=e.Common.Label.toString());return n}s(Rx,"evaluateCommonLabel");function Rb(e,t){let n=e.value;return e.$target&&(n=Rx(e.$target.annotations,t,n)),n}s(Rb,"getLabelForPropertyPath");function Cb(e,t){var i,o;let n,r;return e.Value?typeof e.Value=="string"?r=t&&t.entityProperties.find(a=>a.name===e.Value):(r=t&&t.resolvePath(e.Value.path),r||(r=e.Value.$target)):e.Target&&e.Target.$target&&e.Target.$target.Value&&(r=e.Target.$target.Value.$target),(o=(i=r==null?void 0:r.annotations)==null?void 0:i.Common)!=null&&o.Label&&(n=Rx(r.annotations,t,n)),n}s(Cb,"getLabelForDataField");function Oge(e,t){var n,r;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let i=t&&t.resolvePath(e.path);if(!i||i.length===0)return;{let o=i[0];if((r=(n=o==null?void 0:o.annotations)==null?void 0:n.Common)!=null&&r.Label){let a=e;return Rx(o.annotations,t,a)}}}else return}s(Oge,"getLabel");function NB(e,t,n){let r=Cb(e,t);return n||r||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}s(NB,"getTitleForDataField");function gf(e,t){var a,c,l,u;let n="",r,i,o="";try{let f=Oge(e.Label,t);switch(e.$Type){case St.UIAnnotationTypes.DataField:n=NB(e,t,f);break;case St.UIAnnotationTypes.DataFieldWithUrl:r=Cb(e,t),n=f||r||(typeof e.Value=="string"?e.Value:e.Value.path);break;case St.UIAnnotationTypes.DataFieldForAnnotation:i=e,r=Cb(e,t),n=f||r||((c=(a=i.Target)==null?void 0:a.$target)==null?void 0:c.Title)||((l=i.Target)==null?void 0:l.value.split("UI.v1.")[1]);break;case St.UIAnnotationTypes.DataFieldForAction:case St.UIAnnotationTypes.DataFieldWithAction:case St.UIAnnotationTypes.DataFieldForIntentBasedNavigation:i=e,o=typeof e.Action=="string"?i.Action:(u=i.Action)==null?void 0:u.path,f?n=typeof f=="string"?f:o:n=o;break;case St.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:r=Cb(e,t),n=r||e.Value.path;break;case St.UIAnnotationTypes.DataFieldWithNavigationPath:i=e,n=NB(i,t,f);break;default:break}return n}catch{return n}}s(gf,"getDatafieldDescription");function ln(e){return e.replace("#","::").replace(/\//g,":2f")}s(ln,"prepareRef");function No(e){if(e){let t=`${ve.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}s(No,"getPageTypeV2");function Ige(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}s(Ige,"getTargetAnnotationName");function zs(e,t){if(!t)return;let n=t.references.find(r=>r.namespace===e);return n||(n=t.references.find(r=>r.alias===e)),n||(n=t.references.find(r=>r.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}s(zs,"findAlias");function _ge(e,t,n){var a,c;let r=e[e.length-1],i=r.substring(r.lastIndexOf(".")+1,r.length),o=zs(r.substring(0,r.lastIndexOf(".")).replace("@",""),n);return(c=(a=t==null?void 0:t.annotations)==null?void 0:a[o])==null?void 0:c[i]}s(_ge,"determineTargetAnnotation");function Cge(e,t,n){let r=t[t.length-1].split("#")[0];if(r.includes(".LineItem")){let i=e.split("::");i[i.length-1]=`${n?"":"@"}${St.UIAnnotationTerms.LineItem}`,e=i.join("::")}else e=r.replace("@UI",`${n?"":"@"}${ve.UIVOCABULARY}`);return e}s(Cge,"adjustKey");function wge(e,t,n,r,i=ve.FioriElementsVersion.v2,o=!1){var p,d;let a=!1,c,l=r.split("/"),u=l.length>1;u&&n&&(n=(p=n.resolvePath(r.substring(0,r.lastIndexOf("/"))))==null?void 0:p.targetType),t=Cge(t,l,o);let f=_ge(l,n,e);if(f){let h=i===ve.FioriElementsVersion.v2?"::":"#";t=Ige(f,o).replace("#",h),c=(d=f.fullyQualifiedName)==null?void 0:d.split("@")[0]}else return a=!0,{key:t,entityType:n,stopProcessing:a,namespace:c};if(u){let h=i===ve.FioriElementsVersion.v2?"::":"/";l.pop(),t=`${[...l].join(h)}${h}${t}`}return{key:t,entityType:n,stopProcessing:a,namespace:c}}s(wge,"getKeyAndEntityTypeOfReferenceFacet");function DB(e,t,n,r,i=ve.FioriElementsVersion.v2,o=!1){var f,p,d;let a=(p=e.fullyQualifiedName)==null?void 0:p.substring((f=e.fullyQualifiedName)==null?void 0:f.lastIndexOf("@")),c=e.ID?e.ID.toString():a,l=(d=e.fullyQualifiedName)==null?void 0:d.split("@")[0],u=t;if(e.$Type!==St.UIAnnotationTypes.CollectionFacet&&"Target"in e){let h=df(e.Target);if(!h){je(r,{severity:ve.LogSeverity.Error,message:ee.t("NOTARGET",{target:e.Target})});return}let{key:m,entityType:b,stopProcessing:T,namespace:I}=wge(n,c,u,h,i,o);if(T)return;c=m,u=b,l=I}if(c=c.replace(/\//gi,"::"),c)return{key:c,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:u,namespace:l}}s(DB,"getSectionFacet");function Nge(e,t,n){let r;return n&&n===e?r=t:r=e.replace(/\?\?/g,"/"),r}s(Nge,"getDecodedPathElement");function Fx(e){let t,n,r;switch(e.$Type){case St.UIAnnotationTypes.DataField:t=df(e.Value);break;case St.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:df(e.Value);break;case St.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${ve.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case St.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${ln(e.Action)}`);break;case St.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:r=df(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${r}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case St.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${ln(e.Action)}`);break;case St.UIAnnotationTypes.DataFieldWithNavigationPath:r=df(e.Value),n=df(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+r+":::sTarget::"+n;break;default:break}return t}s(Fx,"getSchemaKeyOfLineItemRecord");function Rge(e,t,n){return e.includes(St.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?St.UIAnnotationTerms.Chart:e.includes(St.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?St.UIAnnotationTerms.Identification:n&&e.includes(St.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?St.UIAnnotationTerms.LineItem:e.includes(St.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?St.UIAnnotationTerms.FieldGroup:e.includes(St.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?St.UIAnnotationTerms.DataPoint:e.includes(St.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?St.UIAnnotationTerms.PresentationVariant:void 0}s(Rge,"getUIAnnotationTerm");function Fge(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Xd.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Xd.CommunicationAnnotationTerms.Address:void 0}s(Fge,"getCommunicationAnnotationTerm");function Lge(e,t,n){return Rge(e,t,n)||Fge(e,t)}s(Lge,"getAnnotationTerm");function jge(e,t,n,r,i){var u,f,p,d,h,m,b,T,I;let o=zs(ve.UIVOCABULARY,i),a=e?e.key:"",c=e.entityType;switch(Lge(a,o,r)){case St.UIAnnotationTerms.Chart:{n[a]={base:ve.FacetBase.Chart},n[a].target=(u=t==null?void 0:t.Target)==null?void 0:u.$target,n[a].entityType=c,n[a].namespace=e.namespace;break}case St.UIAnnotationTerms.Identification:{n[a]={base:ve.FacetBase.Identification},n[a].target=(f=t==null?void 0:t.Target)==null?void 0:f.$target,n[a].entityType=c,n[a].namespace=e.namespace;break}case St.UIAnnotationTerms.LineItem:{if(!a.includes(St.UIAnnotationTerms.LineItem)&&a.includes(".LineItem")){let F=a.split("::");F[F.length-1]=`@${St.UIAnnotationTerms.LineItem}`,a=F.join("::")}n[a]={base:ve.FacetBase.LineItem},n[a].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[a].entityType=c,n[a].namespace=e.namespace;break}case St.UIAnnotationTerms.FieldGroup:{n[a]={base:ve.FacetBase.Form},n[a].target=(d=t==null?void 0:t.Target)==null?void 0:d.$target,n[a].entityType=c,n[a].namespace=e.namespace;break}case St.UIAnnotationTerms.DataPoint:{n[a]={base:ve.FacetBase.DataPoint},n[a].Label=(h=t==null?void 0:t.Target)==null?void 0:h.$target.Title,n[a].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[a].entityType=c,n[a].namespace=e.namespace;break}case St.UIAnnotationTerms.PresentationVariant:{n[a]={base:ve.FacetBase.PresentationVariant},n[a].target=(b=t==null?void 0:t.Target)==null?void 0:b.$target,n[a].entityType=c,n[a].namespace=e.namespace;break}case Xd.CommunicationAnnotationTerms.Contact:{n[a]={base:ve.FacetBase.Contact},n[a].target=(T=t==null?void 0:t.Target)==null?void 0:T.$target,n[a].entityType=c,n[a].namespace=e.namespace;break}case Xd.CommunicationAnnotationTerms.Address:{n[a]={base:ve.FacetBase.Address},n[a].target=(I=t==null?void 0:t.Target)==null?void 0:I.$target,n[a].entityType=c,n[a].namespace=e.namespace;break}default:n[a]={base:ve.FacetBase.Unknown}}n[a]&&(n[a].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",ve.VOCWITHSLASH)}`,t.Label&&(n[a].Label=t.Label),t.ID&&(n[a].ID=t.ID),e&&e.entityType&&(n[a].entityType=e.entityType))}s(jge,"evaluateTargetAnnotation");function Lx(e,t,n,r,i,o=ve.FioriElementsVersion.v2,a){var l;let c=DB(e,r,t,a,o,!1);if(c)switch(e.$Type){case St.UIAnnotationTypes.ReferenceFacet:{jge(c,e,i,r,t);break}case St.UIAnnotationTypes.CollectionFacet:{let u=`/${r.fullyQualifiedName}/${e.fullyQualifiedName.split(r.fullyQualifiedName)[1]}`,f=i[c.key]={base:ve.FacetBase.CollectionFacet,facets:{},ID:c.ID,annotationPath:u,Label:c.label,namespace:c.namespace};(l=e.Facets)==null||l.forEach(p=>{Lx(p,t,n,r,f.facets,o,a)});break}}}s(Lx,"addFacetToConfig");function $B(e,t,n=ve.FioriElementsVersion.v2,r){var c,l;let i={};if(!e||!e.annotations)return;let o=zs(ve.UIVOCABULARY,t),a=o&&((l=(c=e==null?void 0:e.annotations)==null?void 0:c[o])==null?void 0:l.HeaderFacets);if(a){let u=e&&e.fullyQualifiedName.lastIndexOf("."),f=e&&e.fullyQualifiedName.substring(0,u);a.forEach(p=>{Lx(p,t,f,e,i,n,r)})}return i}s($B,"getObjectPageHeaderFacets");function kB(e,t,n=ve.FioriElementsVersion.v2,r){var c;let i={};if(!e||!e.annotations)return;let o=zs(ve.UIVOCABULARY,t),a=o&&((c=e==null?void 0:e.annotations[o])==null?void 0:c.Facets);if(a){let l=e&&e.fullyQualifiedName.lastIndexOf("."),u=e&&e.fullyQualifiedName.substring(0,l);a.forEach(f=>{Lx(f,t,u,e,i,n,r)})}return i}s(kB,"getObjectPageFacets");function jx(e){return e[ve.ManifestSection.generic]||e[ve.ManifestSection.ovp]?ve.FioriElementsVersion.v2:ve.FioriElementsVersion.v4}s(jx,"getFEVersionFromManifest");function Dge(e){var n,r,i,o;let t=typeof((n=e==null?void 0:e[ve.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[ve.ManifestSection.ovp].globalFilterModel:"";return typeof((o=(i=(r=e==null?void 0:e[ve.ManifestSection.ui5])==null?void 0:r.models)==null?void 0:i[t])==null?void 0:o.dataSource)=="string"?e[ve.ManifestSection.ui5].models[t].dataSource:void 0}s(Dge,"getMainService");function MB(e){var r,i;let t=Dge(e);if(!t)return ve.OdataVersion.v2;let n=(r=e[ve.ManifestSection.app].dataSources)==null?void 0:r[t];return((i=n==null?void 0:n.settings)==null?void 0:i.odataVersion)==="4.0"?ve.OdataVersion.v4:ve.OdataVersion.v2}s(MB,"getODataVersionFromManifest");function $ge(e,t){var r,i;let n;if(e[ve.ManifestSection.generic]){let o=e[ve.ManifestSection.generic].pages;if(!o){je(t,{severity:ve.LogSeverity.Error,message:ee.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.generic]}});return}for(let a in o){let c=o[a];if(No((r=c.component)==null?void 0:r.name)===ve.PageTypeV2.AnalyticalListPage){n=ve.TemplateType.AnalyticalListPageV2;break}else if(No((i=c.component)==null?void 0:i.name)===ve.PageTypeV2.ListReport){n=ve.TemplateType.ListReportObjectPageV2;break}}}else n||je(t,{severity:ve.LogSeverity.Error,message:ee.t("NOTEMPLATE",{section:ve.ManifestSection.generic}),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.generic]}});return n}s($ge,"determineV2Template");function hl(e,t,n){let r;return e[ve.ManifestSection.ovp]?r=ve.TemplateType.OverviewPageV2:t===ve.FioriElementsVersion.v2&&(r=$ge(e,n)),r}s(hl,"getTemplateTypeFromManifest");function zd(e,t,n){e!=null&&e.ID?(t.title=ve.FACETTITLEPREFIX+e.ID,t[ve.SchemaTag.keys]=[{name:ve.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[ve.SchemaTag.keys]=[{name:ve.SchemaKeyName.id,value:n.replace(ve.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}s(zd,"addSectionTitleAndDescription");function kge(e,t,n){var r,i;zd(e,t,n),!(e!=null&&e.ID||e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(r=e==null?void 0:e.target)!=null&&r.Title?t.description=e.target.Title:(i=e==null?void 0:e.target)!=null&&i.Label&&(t.description=e.target.Label))}s(kge,"addTargetTitleAndSectionDescription");function gl(e,t,n){let r={type:"object",properties:{},additionalProperties:!1};return r[ve.SchemaTag.isViewNode]=!0,r[ve.SchemaTag.annotationPath]=t.annotationPath,kge(t,r,n),r}s(gl,"createDefaultSection");function VB(e,t,n,r=ve.FioriElementsVersion.v2,i=!1){var c,l;let o=zs(ve.UIVOCABULARY,t),a=[];if(e){let u=o&&((l=(c=e==null?void 0:e.annotations)==null?void 0:c[o])==null?void 0:l.Facets);return u&&(a=u.reduce(function(f,p){if(i&&!p.ID&&!("Target"in p&&p.Target))return f;let d=DB(p,e,t,n,r,!0);return d&&f.push(d),f},a)),a}}s(VB,"getObjectPageFacetSection");var mf=s((e,t,n,r,i,o)=>{if(!t)return;let a=e,c=t.split("/");c.forEach(function(l){let u=o&&o===l?i:l.replace("??","/");if(!(!a[u]&&(o===l&&(u=o),!a[u]))){if(Object.keys(a[u]).length===0||r&&r[r.length-1]===u&&n){Array.isArray(a)?a.splice(Number(u),1):delete a[u],c.pop(),mf(e,c.join("/"),n,r,i,o);return}a=a&&a[u]}})},"deleteEmptyStructure"),RB=s(e=>`${e}`,"getGenericSchemaFileName"),ar=s((e,t)=>{let n={filename:"",path:""};switch(e){case ve.SchemaType.Application:{n.filename="App",n.path=`./${ve.DirName.Schemas}/${n.filename}`;break}case ve.SchemaType.ListReport:case ve.SchemaType.ObjectPage:{n.filename=t?`${e}_${t}`:RB(e),n.path=`../${ve.DirName.Schemas}/${n.filename}`;break}default:{n.filename=RB(e),n.path=`../${ve.DirName.Schemas}/${n.filename}`;break}}return n.path+=".json",n},"getSchemaFilePath");function Fb(e,t,n,r){if(e===ve.PageTypeV2.CustomPage){let o=n&&n.split(".");return o&&o[o.length-1]+"Page"}let i=[];return i.push(e),t?i.push(t):r&&i.push(r.replace("|","").replace(e,"")),i.join("_")}s(Fb,"generatePageId");function Mge(e,t,n,r){let i=e.$ref;if(i){let o=i.split(he)[1];if(t.definitions[o]){let a=t.definitions[o].controlProperty;i.includes(n[a])&&r.push(o)}}}s(Mge,"fillArrayFromAnyOfReference");function Vge(e,t,n){let r=[];if(e.$ref)r.push(e.$ref.split(he)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(i=>{Mge(i,n,t,r)}),r.length===0))return;return r}s(Vge,"fillArrayFromPropertyDefinition");function qge(e,t,n,r,i,o,a,c){var u,f,p,d;let l={configObject:void 0,targetDefinition:{},title:""};if(e.length){let h=e[e.length-1];if(l.targetDefinition=t.definitions[h],(u=l==null?void 0:l.targetDefinition)!=null&&u.$ref||((f=l==null?void 0:l.targetDefinition)==null?void 0:f.type)==="array")return l=Fa(t,n,r,l.targetDefinition,i,o,a),l;e.length>1&&e.forEach(T=>{T!==""&&(l.targetDefinition.properties={...l.targetDefinition.properties,...t.definitions[T].properties})}),l.title=(p=l==null?void 0:l.targetDefinition)!=null&&p.title?l.targetDefinition.title:n;let m=h==null?void 0:h.split("<")[0],b=r||{};l.configObject=o.createInstance(a,m,b,(d=l==null?void 0:l.targetDefinition)==null?void 0:d.controlProperty)}else l.targetDefinition=c,l.title=l.targetDefinition.title?l.targetDefinition.title:i,l.configObject=r;return l}s(qge,"determineNextDefinitionFromDefinitionArray");function Fa(e,t,n,r,i,o,a){let c;if(r.type==="array")return c=Fa(e,t,n,r.items,i,o,a),c;let l=Vge(r,n,e);if(l)return c=qge(l,e,t,n,i,o,a,r),c}s(Fa,"getNextTargetDefinition");var Dx=s((e,t,n)=>{let r=e.slice();return t.forEach((i,o)=>{typeof r[o]>"u"?r[o]=n.cloneUnlessOtherwiseSpecified(i,n):n.isMergeableObject(i)?r[o]=(0,LB.default)(e[o],i,n):e.indexOf(i)===-1&&r.push(i)}),r},"arrayCombineMerge");function mi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}s(mi,"convertActionKeyToStableId");function qB(e){return e instanceof Error?e.message:String(e)}s(qB,"getErrorMessage");function yf(e,t){t.forEach((n,r)=>{e.properties[n]&&(e.properties[n].propertyIndex=r)})}s(yf,"updatePropertyIndices");function UB(e){return e=e.replace(ve.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}s(UB,"removeNamespaces");function Lb(e){return e=e.replace(ve.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}s(Lb,"replaceNamespaces");function Ro(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith(he))return t.substring(he.length)}s(Ro,"getRefType");function wb(e){return e==null?void 0:e.split(he)[1]}s(wb,"getDefinitionKey");function BB(e){return`#/definitions/${e}`}s(BB,"getDefinitionsRef");function bf(e,t,n){let r=e.split("/"),i="$",o;for(let a of r){let c=Nge(a,t,n);i=La(i,c,o),o=c}return i}s(bf,"convertSyncRulePathToJsonPath");var hf="\\";function La(e,t,n){if(t==="[]")return e;if(n==="[]"){let i=Number(t);return!Number.isNaN(i)&&Number.isInteger(i)?`${e}[${i}]`:`${e}[:]`}if(/^[A-Za-z_$][A-Za-z0-9_$]*$/.test(t))return`${e}.${t}`;let r=t.includes('"')||t.includes(hf)?t.replaceAll(hf,hf+hf).replaceAll('"',hf+'"'):t;return`${e}["${r}"]`}s(La,"appendJsonPathSegment");function Uge(e,t){for(let n of t)if(n){for(let r of e)if(r[n])return r[n]}}s(Uge,"findClassControl");function GB(e,t,n,r){var a,c;let i,{cardKeys:o}=t;if(o){let l=n!=null&&n.name?[...o,n.name]:[...o];r&&l.push(r),i=(a=e==null?void 0:e.manifest)==null?void 0:a.path(l)}else i=(c=e==null?void 0:e.manifest)==null?void 0:c.path(Array.isArray(t.pageName)?t.pageName:[t.pageName],t.manifest,...t.pathsParts??[]),i===(n==null?void 0:n.rulePath)&&(i=`${i}/${n.name}`);return i}s(GB,"resolveManifestRulePath");function Bge(e,t,n,r,i){var l,u;if(!((l=n==null?void 0:n.manifest)!=null&&l.path))return;let o=GB(n,r,i,t),a=((u=n==null?void 0:n.manifest)==null?void 0:u.key)??t,c=`${o}/${a}`;return e.manifestPath=bf(c,r.targetAnnotation,r.targetAnnotationEncoded),o}s(Bge,"applyAbsoluteManifestPath");function FB(e,t,n,r,i,o){var l;let a,c=n;if(r){let u=GB(r,i,o,n);c=((l=r==null?void 0:r.manifest)==null?void 0:l.key)??n,a=bf(u,i.targetAnnotation,i.targetAnnotationEncoded)}else o.absoluteManifestPath&&(a=o.absoluteManifestPath);if(a){let u="";!e.manifestPath&&(o==null?void 0:o.absoluteManifestPath)===void 0?e.manifestPath=(o==null?void 0:o.relativeManifestPath)??a:a.startsWith(e.manifestPath)&&a!==e.manifestPath&&(u=a.slice(e.manifestPath.length),u.startsWith(".")&&(u=u.slice(1))),t.manifestPath=u?`${u}.${c}`:c}}s(FB,"applyRelativeManifestPath");function Yd(e,t,n,r,i,o,a=!1){var p,d;let c=r,l=o!=null&&o.reference?o.reference:!1;if(n===void 0&&r.$ref){let h=wb(r.$ref),m=t.definitions[h];m&&(!m.isViewNode||!o)&&(r=m,n=h),l=!0}n!=null&&n.includes("<")&&(n=n.split("<")[0]);let u=[n];if(!r.properties&&r.$ref){let h=wb(r.$ref);r=((p=t.definitions)==null?void 0:p[h])??r,l=!0,!r.isViewNode&&n!==h&&u.push(h)}let f=Uge(e,u);if(f)for(let h in r.properties??{}){let m=pr(f.prototype,h),b=r.properties[h];if(b.isViewNode)continue;let T={name:h,reference:l};(d=m==null?void 0:m.manifest)!=null&&d.path?!i.cardKeys&&(!a||!l)?(T.rulePath=Bge(b,h,m,i,o),T.absoluteManifestPath=b.manifestPath):(FB(c,b,h,m,i,o),T.absoluteManifestPath=c.manifestPath):o&&(T.relativeManifestPath=h),Yd(e,t,void 0,b,i,T,a)}else if(a&&(o!=null&&o.absoluteManifestPath))for(let h in r.properties??{}){let m=r.properties[h];FB(c,m,h,void 0,i,o)}if(r.anyOf)for(let h of r.anyOf)typeof h=="object"&&Yd(e,t,void 0,h,i,o,o!=null&&o.absoluteManifestPath?!0:a);if(r.items){let h=Array.isArray(r.items)?r.items:[r.items];for(let m of h)typeof m=="object"&&Yd(e,t,void 0,m,i,o,o!=null&&o.absoluteManifestPath?!0:a)}}s(Yd,"addManifestPathsToProperties");function jb(e){if(!e.startsWith("$"))throw new Error("Invalid JSONPath: must start with $");let t=[],n=1;for(;n<e.length;){let r=e[n];if(r==="."){n++;let i=n;for(;n<e.length&&/[A-Za-z0-9_$]/.test(e[n]);)n++;t.push(e.slice(i,n));continue}if(r==="["){if(n++,e[n]==='"'||e[n]==="'"){let a=e[n++],c=n,l=[];for(;n<e.length;){if(e[n]===hf)l.push(n-c),n++;else if(e[n]===a)break;n++}let u=e.slice(c,n),f=0,p="";for(let d of l)p+=u.slice(f,d),f=d+1;p+=u.slice(f),t.push(p),n+=2;continue}let i=n;for(;n<e.length&&e[n]!=="]";)n++;let o=Number(e.slice(i,n));Number.isNaN(o)||t.push(o),n++;continue}n++}return t}s(jb,"jsonPathToArray");var sc=require("@sap-ux/vocabularies-types/vocabularies/UI"),ge=me(Pe());var ml=me(Pe());function Db(e,t,n,r,i,o){let a=e.manifest.key||n,c=e.manifest.import;if(c&&typeof c=="function"){let l=c(t,i,n,o);l!==void 0&&(r[n]=l)}else t[a]!==void 0&&(r[n]=t[a])}s(Db,"importProperty");function HB(e,t,n,r){if(t&&e)for(let i in t){let o=e[i];o&&(je(r,{severity:ml.LogSeverity.Warning,message:pf(i,o),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[i])}}s(HB,"checkDeprecatedProperties");function $x(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(he)[1]];return $x(n,t)}else return e.title?e.title.startsWith(ml.FACETTITLEPREFIX)?e.title.split(ml.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}s($x,"getSectionTitle");function $b(e){let t=e.split(`${ml.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}s($b,"getTargetFromCustomColumnRef");var gn=require("@sap-ux/vocabularies-types/vocabularies/UI");var Fo=require("@sap-ux/vocabularies-types/vocabularies/UI");function KB(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/\/|@|\(|\)|#|\*/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}s(KB,"replaceSpecialChars");var yl=s(function(e){return KB(UB(e))},"prepareId");function Gge(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}s(Gge,"evaluateConcat");function bl(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 Gge(e);if(e&&typeof e=="string")return KB(e.replace(/ /g,"_"))}s(bl,"getStableIdPartFromValue");var WB=s(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),JB=s(function(e){let t="";if(e.$Type&&e.$Type===Fo.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,yl(t);if(e.$Type&&e.$Type===Fo.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=WB(e),t;if(e.$Type&&e.$Type===Fo.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=yl(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===Fo.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=bl(e.Value)+"::"),t+=e.Action,yl(t);if(e.$Type&&e.$Type===Fo.UIAnnotationTypes.DataField)return t="DataField::",t+=bl(e.Value),yl(t);if(e.$Type&&e.$Type===Fo.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=bl(e.Value)+"::",t+=WB(e),yl(t);if(e.$Type&&e.$Type===Fo.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=bl(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),yl(t);if(e.$Type&&e.$Type===Fo.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=bl(e.Value),yl(t)},"getStableIdPartFromDataField");var be=me(Pe());var Ke=me(Pe());var hr=require("@sap-ux/vocabularies-types/vocabularies/UI"),MG=require("path"),VG=me(Kd());var vf="ResponsiveTable<LineItems>",Qd="TreeTable<LineItems>",Zd="AnalyticalTable<LineItems>",eh="GridTable<LineItems>",YB=[Qd,Zd,eh],XB=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],zB="template::",kb="template:::ObjectPageAction:::";var Dl=me(Pe());var FG=me(Pe());var Ll={};nf(Ll,{ALPAnalyticalTable:()=>bO,ALPGridTable:()=>yO,ALPResponsiveTable:()=>mO,Action:()=>EO,AnalyticalCard:()=>lh,AnalyticalCardSettings:()=>Ux,AnalyticalListPageFilterBar:()=>Jx,AnalyticalTable:()=>gO,BaseCustomSection:()=>Lh,ChartSettings:()=>qO,ChartSettingsType:()=>kx,CommonCardSettings:()=>Ma,CommonHeaderFacetSettings:()=>Ol,CommonTableSettings:()=>Ga,CommonTableSettingsForSections:()=>Rl,CreateWithFilters:()=>fO,CustomCard:()=>Vx,DefaultSpanObject:()=>Mx,FRAGMENT_DEFINITION:()=>no,Field:()=>Wx,FieldForAction:()=>zx,FooterAction:()=>AO,FormAction:()=>Xx,GlobalTableSettings:()=>gI,GridTable:()=>vO,HeaderAction:()=>GO,HeaderActionStandard:()=>CO,HeaderSections:()=>YO,KPISettings:()=>UO,LinkListCardSettings:()=>Gx,LinklistCard:()=>fh,ListCard:()=>ch,ListCardSettings:()=>qx,ListReportFilterBar:()=>Hb,ObjectPageAnalyticalTable:()=>pI,ObjectPageCustomSectionFragment:()=>jh,ObjectPageCustomSectionView:()=>Dh,ObjectPageFooterAction:()=>zO,ObjectPageFooterActionStandard:()=>NO,ObjectPageGridTable:()=>dI,ObjectPageHeader:()=>BO,ObjectPageHeaderActionStandard:()=>wO,ObjectPageHeaderSectionAddress:()=>JO,ObjectPageHeaderSectionChart:()=>WO,ObjectPageHeaderSectionDataPoint:()=>KO,ObjectPageHeaderSectionForm:()=>HO,ObjectPageLayout:()=>ZO,ObjectPageResponsiveTable:()=>Fl,ObjectPageSectionAddressV2:()=>iI,ObjectPageSectionChartV2:()=>nI,ObjectPageSectionContactV2:()=>sI,ObjectPageSectionFormV2:()=>tI,ObjectPageSectionTableV2:()=>rI,ObjectPageSectionV2:()=>eI,ObjectPageSubSectionChartV2:()=>cI,ObjectPageSubSectionContactV2:()=>lI,ObjectPageSubSectionFormV2:()=>aI,ObjectPageSubSectionTableV2:()=>uI,ObjectPageSubSectionV2:()=>oI,ObjectPageToolBarAction:()=>mI,ObjectPageTreeTable:()=>hI,QuickVariantSelection:()=>pO,QuickVariantSelectionOP:()=>fI,QuickVariantSelectionX:()=>dO,ResponsiveTable:()=>Tl,SAP_UI_TABLE:()=>Kb,SaveAndEditOP:()=>_O,Share:()=>xO,ShareOP:()=>OO,StackCard:()=>uh,StackCardSettings:()=>Bx,TableALP:()=>If,TableCard:()=>ph,TableCardSettings:()=>Hx,TableColumn:()=>LO,TableColumnAction:()=>jO,TableColumnActionIntentBased:()=>DO,TableCustomColumn:()=>$O,ToolBar:()=>MO,ToolBarAction:()=>PO,TreeTable:()=>hO,UpAndDownNavigationOP:()=>IO,buildIntentBasedActionId:()=>RO,deleteColumnFromFragment:()=>zb,deleteType:()=>Cf,exportCustomColumnsToFragment:()=>uO,exportDefaultSpan:()=>QB,exportType:()=>_f,getChartSectionControlId:()=>CG,getContactSubSectionControlId:()=>NG,getCustomColumnPath:()=>Qb,getFormSectionControlId:()=>_G,getRootCustomColumnFromFragmentJSON:()=>yh,getSectionControlId:()=>Cl,getSmartChartControlId:()=>Oh,getSmartTableControlId:()=>Ba,getSubSectionControlId:()=>wG,getTableSectionControlId:()=>IG});var Ir=me(Pe());var Rt=s(e=>`${Ir.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),qb=s(e=>Rt(e)+"/tableSettings","getTableSettingPathV2");var Mn=s(()=>Ir.ManifestSection.ovp,"getOVPsettingPath"),Ge=s(e=>{let t=[Ir.ManifestSection.ovp];return e.forEach(n=>{n in Ir.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var vl=s((e,t)=>`${Ir.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Ub=s(e=>{let t=[Ir.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),ji=s(e=>{let t=[];return t.push(Ub(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Tf=s(e=>ji(e)+"/tableSettings","getGlobalTableSettingsPathV2"),Zs=s((e,t,n)=>{let r=[];r.push(Ub(e));let i=n.replace(Ir.VOCWITHCOLONS,"::com.sap.vocabularies");return r.push("component/settings/sections/"+i),r.join("/")},"getAppSettingOBJsectionPathV2"),Da=s((e,t,n)=>Zs(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2");var th=s(()=>`sap.ui5/extends/extensions/${Ir.v2.SAPUI5_VIEW_EXTENSION}/${Ir.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),Lo=s((e,t,n,...r)=>{let o=n.split("|"),a=e[e.length-1].split("|"),c="";o.length===4?c=[o[2],o[3]].join("|"):o.length===3&&(c=o[2]);let l=[o[0],a[a.length-1],c].join("|");return r.unshift(l),`${th()}/${r.join("/")}`},"getObjectPageCustomSectionPath"),Vb=class Vb{};s(Vb,"ApplicationV2"),x([Zn("settings")],Vb.prototype,"settings",2);var Mb=Vb,Qs=class Qs{};s(Qs,"AppSettings"),x([O({manifest:{path:s(()=>"sap.app","path")}})],Qs.prototype,"title",2),x([O({manifest:{path:s(()=>"sap.app","path")}})],Qs.prototype,"description",2),x([O({manifest:{path:s(()=>"sap.fiori","path")}})],Qs.prototype,"cloudDevAdaptationStatus",2),x([O({manifest:{path:s(()=>Ir.GENERICAPPSETTINGS,"path")}}),de({since:"1.50.0"})],Qs.prototype,"flexibleColumnLayout",2),x([O({manifest:{path:s(()=>Ir.GENERICAPPSETTINGS,"path")}}),de({since:"1.46.0"})],Qs.prototype,"forceGlobalRefresh",2),x([O({manifest:{path:s(()=>"sap.ui5","path")}}),de({since:"1.56.0"}),Fn("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Qs.prototype,"flexEnabled",2),x([O({manifest:{path:s(()=>Ir.GENERICAPPSETTINGS,"path"),import:s(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings"}}),de({since:"1.48.5"})],Qs.prototype,"globalTableSettings",2);var ja=Qs;function QB(e,t,n){let r=t[n];r==="auto"&&(e[n]=r)}s(QB,"exportDefaultSpan");var Bb=class Bb{};s(Bb,"ChartSettingsType"),x([O({manifest:{path:s(()=>Mn()+"/chartSettings","path")}})],Bb.prototype,"showDataLabel",2);var kx=Bb,$a=class $a{};s($a,"DefaultSpanObject"),x([O({manifest:{path:s(t=>Ge(t),"path")}})],$a.prototype,"cols",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],$a.prototype,"rows",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],$a.prototype,"showOnlyHeader",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],$a.prototype,"minimumTitleRow",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],$a.prototype,"minimumSubTitleRow",2);var Mx=$a,un=class un{};s(un,"CommonCardSettings"),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"entitySet",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"title",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"subTitle",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"annotationPath",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"dataPointAnnotationPath",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"selectionPresentationAnnotationPath",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"kpiAnnotationPath",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"category",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"dynamicSubtitleAnnotationPath",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"valueSelectionInfo",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"showFilterInHeader",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"sortBy",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"sortOrder",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"identificationAnnotationPath",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"selectionAnnotationPath",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"presentationAnnotationPath",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"enableLocaleCurrencyFormatting",2),x([O({manifest:{path:s(t=>Ge(t),"path"),export:QB}})],un.prototype,"defaultSpan",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"requireAppAuthorization",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"showSortingInHeader",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"tabs",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"addODataSelect",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"showRefresh",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],un.prototype,"customParams",2);var Ma=un,Sf=class Sf{};s(Sf,"CustomCard"),x([O({manifest:{path:s(t=>Ge(t),"path")}})],Sf.prototype,"model",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],Sf.prototype,"template",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],Sf.prototype,"settings",2);var Vx=Sf,ka=class ka extends Ma{};s(ka,"ListCardSettings"),x([O({manifest:{path:s(t=>Ge(t),"path")}})],ka.prototype,"showLineItemDetail",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],ka.prototype,"imageSupported",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],ka.prototype,"enableAddToInsights",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],ka.prototype,"listFlavor",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],ka.prototype,"listType",2);var qx=ka,nh=class nh{};s(nh,"ListCard"),x([O({manifest:{path:s(t=>Ge(t),"path")}})],nh.prototype,"model",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],nh.prototype,"template",2);var ch=nh,jo=class jo extends Ma{};s(jo,"AnalyticalCardSettings"),x([O({manifest:{path:s(t=>Ge(t),"path")}})],jo.prototype,"chartAnnotationPath",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],jo.prototype,"ignoreSapText",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],jo.prototype,"enableAddToInsights",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],jo.prototype,"navigation",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],jo.prototype,"chartProperties",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],jo.prototype,"colorPalette",2);var Ux=jo,rh=class rh{};s(rh,"AnalyticalCard"),x([O({manifest:{path:s(t=>Ge(t),"path")}})],rh.prototype,"model",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],rh.prototype,"template",2);var lh=rh,Ef=class Ef extends Ma{};s(Ef,"StackCardSettings"),x([O({manifest:{path:s(t=>Ge(t),"path")}})],Ef.prototype,"itemText",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],Ef.prototype,"objectStreamCardsNavigationProperty",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],Ef.prototype,"objectStreamCardsSettings",2);var Bx=Ef,ih=class ih{};s(ih,"StackCard"),x([O({manifest:{path:s(t=>Ge(t),"path")}})],ih.prototype,"model",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],ih.prototype,"template",2);var uh=ih,Pf=class Pf extends Ma{};s(Pf,"LinkListCardSettings"),x([O({manifest:{path:s(t=>Ge(t),"path")}})],Pf.prototype,"listFlavor",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],Pf.prototype,"headerAnnotationPath",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],Pf.prototype,"staticContent",2);var Gx=Pf,sh=class sh{};s(sh,"LinklistCard"),x([O({manifest:{path:s(t=>Ge(t),"path")}})],sh.prototype,"model",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],sh.prototype,"template",2);var fh=sh,oh=class oh extends Ma{};s(oh,"TableCardSettings"),x([O({manifest:{path:s(t=>Ge(t),"path")}})],oh.prototype,"showLineItemDetail",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],oh.prototype,"enableAddToInsights",2);var Hx=oh,ah=class ah{};s(ah,"TableCard"),x([O({manifest:{path:s(t=>Ge(t),"path")}})],ah.prototype,"model",2),x([O({manifest:{path:s(t=>Ge(t),"path")}})],ah.prototype,"template",2);var ph=ah;var ZB=me(Pe());var Hge=s((e,t,n,r,i)=>{let o=or(n[1],i),a=n.slice(-1)[0];return cn(e,[o,a,"GroupElement"])},"getSmartFieldControlId"),Gb=class Gb{};s(Gb,"Field"),x([O({flex:{controlId:Hge,controlType:s(()=>ZB.ControlType.GroupElement,"controlType"),createFlexChange:ye},generate:jt})],Gb.prototype,"visible",2);var Wx=Gb;var Yx=me(Pe());var Kx={controlId:cn,controlType:s(()=>Yx.ControlType.SmartFilterBar,"controlType"),createFlexChange:ye},eo=class eo{};s(eo,"ListReportFilterBar"),x([O({manifest:{path:s(t=>Rt(t),"path")}}),de({since:"1.38.0"})],eo.prototype,"smartVariantManagement",2),x([O({flex:Kx}),de({since:"1.40.0"})],eo.prototype,"liveMode",2),x([O({manifest:{path:s(t=>Rt(t),"path")}}),de({since:"1.48.0"})],eo.prototype,"variantManagementHidden",2),x([O({manifest:{path:s(t=>Rt(t),"path")}}),de({since:"1.52.0"})],eo.prototype,"subTitleIfVariantMgmtHidden",2),x([O({flex:{controlId:cn,controlType:s(()=>Yx.ControlType.SmartFilterBar,"controlType"),createFlexChange:ye}}),de({since:"1.28.0"})],eo.prototype,"showClearOnFB",2),x([O({flex:Kx}),de({since:"1.38.0"})],eo.prototype,"showFilterConfiguration",2),x([O({flex:Kx}),de({since:"1.28.0"})],eo.prototype,"showRestoreOnFB",2);var Hb=eo,dh=class dh extends Hb{};s(dh,"AnalyticalListPageFilterBar"),x([O({manifest:{path:s(t=>Rt(t),"path")}})],dh.prototype,"showGoButtonOnFilterBar",2),x([O({manifest:{path:s(t=>Rt(t),"path")}}),de({since:"1.60.0"})],dh.prototype,"filterDefaultsFromSelectionVariant",2);var Jx=dh;var es=me(Pe());var to=s((e,t,n,r,i)=>{if(r()===es.ControlType.Button){let o=n[n.length-1],a=or(n[1],i);return`${e}action::${o}::${a}::FormAction`}return cn(e,t)},"getFormActionButtonId"),Va=class Va{};s(Va,"FormAction"),x([O({flex:{controlId:to,controlType:s(()=>es.ControlType.Button,"controlType"),createFlexChange:ye},generate:jt})],Va.prototype,"visible",2),x([O({flex:{controlId:to,controlType:s(()=>es.ControlType.Button,"controlType"),createFlexChange:ye}})],Va.prototype,"tooltip",2),x([O({flex:{controlId:to,controlType:s(()=>es.ControlType.Button,"controlType"),createFlexChange:ye}})],Va.prototype,"icon",2),x([O({flex:{controlId:to,controlType:s(()=>es.ControlType.Button,"controlType"),createFlexChange:ye}})],Va.prototype,"activeIcon",2),x([O({flex:{controlId:to,controlType:s(()=>es.ControlType.Button,"controlType"),createFlexChange:ye}})],Va.prototype,"type",2);var Xx=Va,qa=class qa{};s(qa,"FieldForAction"),x([O({flex:{controlId:to,controlType:s(()=>es.ControlType.Button,"controlType"),createFlexChange:ye},generate:jt})],qa.prototype,"visible",2),x([O({flex:{controlId:to,controlType:s(()=>es.ControlType.Button,"controlType"),createFlexChange:ye}})],qa.prototype,"tooltip",2),x([O({flex:{controlId:to,controlType:s(()=>es.ControlType.Button,"controlType"),createFlexChange:ye}})],qa.prototype,"icon",2),x([O({flex:{controlId:to,controlType:s(()=>es.ControlType.Button,"controlType"),createFlexChange:ye}})],qa.prototype,"activeIcon",2),x([O({flex:{controlId:to,controlType:s(()=>es.ControlType.Button,"controlType"),createFlexChange:ye}})],qa.prototype,"type",2);var zx=qa;var Bt=me(Pe()),Is=me(Kd());var mh=require("path"),fG=me(Pe()),pG=me(Ua()),dG=require("fs"),hG=require("@sap-ux/fe-fpm-writer");var nO=(0,mh.join)(__dirname,"templates");var tO={"AnalyticalTableColumnsExtension.xml":{getData:s(e=>({ids:{label:e("Label"),text:e("Text"),customData:e("CustomData")}}),"getData")},"fragment.xml":{getData:s(e=>({ids:{verticalLayout:e("VerticalLayout"),text:e("Text"),button:e("Button")}}),"getData")},"GridTableColumnsExtension.xml":{getData:s(e=>({ids:{label:e("Label"),text:e("Text"),customData:e("CustomData")}}),"getData")},"ResponsiveTableColumnsExtension.xml":{getData:s(e=>({ids:{text:e("ColumnText"),customData:e("CustomData")}}),"getData")},"TreeTableColumnsExtension.xml":{getData:s(e=>({ids:{label:e("Label"),text:e("Text"),customData:e("CustomData")}}),"getData")},"view.xml":{getData:s(e=>({ids:{app:e("App"),page:e("Page"),label:e("Label")}}),"getData")}},rO=s((e,t,n)=>{let r=(0,dG.readFileSync)(e,"utf8"),i=(0,hG.getRelativeTemplateComponentPath)(e);if(n&&tO[i]&&typeof tO[i].getData=="function"){let o=tO[i].getData(n);t={...t,...o}}return(0,pG.render)(r,t)},"renderTemplate"),gG=s(e=>e.replace(/[^\w\s-]/gi,""),"escapeViewName");var mG=s((e,t,n,r,i=!1,o=!0)=>{let a=gG(e),c={name:a,controllerName:"",page:o};return i&&(c.controllerName=t+".controller."+a),rO((0,mh.join)(nO,"view."+n),c,r)},"getViewContent"),yG=s((e,t,n,r,i=!1)=>{let o=gG(e),a={name:o,handler:""};return i&&(a.handler=`${t.replace(/\./g,"/")}/${fG.DirName.Fragment}/${o}`),rO((0,mh.join)(nO,"fragment."+n),a,r)},"getFragmentContent");var iO=s((e,t,n)=>{let r={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return rO((0,mh.join)(nO,t+".xml"),r,n)},"getSingleColumnContent"),sO=s((e,t,n)=>{let r="";if(r='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let i of e){let o=iO(i,t,n);r=r+`
|
|
311
|
-
`+o}return r+`
|
|
312
|
-
</core:FragmentDefinition>`},"getColumnFragmentContent"),oO=s((e,t)=>{let n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">',r=[];return e&&e.forEach(()=>{let i=t("Text",r);r.push(i),n=n+`
|
|
313
|
-
<Text id="${i}" text="Placeholder"/>`}),n+`
|
|
314
|
-
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");function bG(e,t,n="xml"){return t?`${e}.fragment.${n}`:`${e}.view.${n}`}s(bG,"getViewFileName");var Af=me(Pe());var tr=s((e,t)=>{let n=e;return t.split("/").forEach(function(r){n[r]||(n[r]={}),n=n&&n[r]}),n||{}},"ensureManifestSectionByPathV2"),Wb=s((e,t)=>{let n=e,r=t.split("/");for(let i of r){if(!n[i])return;n=n&&n[i]}return n||{}},"getManifestSectionByPathV2");var vG=s((e,t)=>{let n=e;for(let r=0;r<t.split("/").length;r++){let i=t.split("/")[r];r===t.split("/").length-1?delete n[i]:n=n&&n[i]}},"deleteManifestSectionByPathV2");function aO(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}s(aO,"getNewPageTemplate");function lme(e,t,n){if(e)for(let r in e){let i=e[r];if(i.entitySet===t&&i.navigationProperty===n)return i}}s(lme,"findPageInManifest");function ume(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=aO(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:aO(e[t].pageType)}),!Array.isArray(n.pages))){let r=lme(n.pages,e[t].entitySet,e[t].navigationProperty);r||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=r=aO(e[t].pageType)),cO(t,e,r)}}s(ume,"transformPageFromAssociation");function fme(e,t,n){e.pages&&Object.keys(e.pages).forEach(r=>{var o;let i=e.pages[r];if(((o=i.component)==null?void 0:o.name)===Af.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let a=`ObjectPage_${i.entitySet}`;t[a]||delete e.pages[r]}}),(n.pageType===Af.PageTypeV2.ListReport||n.pageType===Af.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}s(fme,"deletePage");function cO(e,t,n){let r=t[e];if(r&&(r.entitySet&&(n.entitySet=r.entitySet),r.pageType===Af.PageTypeV2.ListReport&&(n.component.list=!0),r.navigationProperty&&(n.navigationProperty=r.navigationProperty),r.defaultLayoutType?n.defaultLayoutType=r.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,r.navigation)){for(let i in r.navigation)ume(t,i,n);Array.isArray(n.pages)||fme(n,t,r)}}s(cO,"transformPageToNewManifestV2");var Yb=require("path");var no="core:FragmentDefinition",Kb="sap.ui.table",lO=new Map([[Bt.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Bt.ViewTemplateType.TreeTableColumnsExtension,{namespace:Kb,name:"Column"}],[Bt.ViewTemplateType.GridTableColumnsExtension,{namespace:Kb,name:"Column"}],[Bt.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Kb,name:"AnalyticalColumn"}]]),pme=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]]),Jb={type:"element",name:"Text",attributes:{text:"Placeholder"}},dme=JSON.stringify(Jb);function hme(e,t){var r;let n=t?(r=e==null?void 0:e[no])==null?void 0:r._attributes:e==null?void 0:e._attributes;if(n){let i=new Map;return Object.keys(n).filter(o=>o.startsWith("xmlns")).forEach(o=>{let a=i.get(n[o]);i.set(n[o],a?[...a,o.split(":")[1]||o]:[o.split(":")[1]||o])}),i}else throw new Error("Invalid fragment, please check content")}s(hme,"getFragmentNamespaces");function TG(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}s(TG,"getTagName");function Xb(e,t,n=e){let r=hme(n,!!(t||n!==e));if(t){let i=lO.get(t);return TG(i,r.get(i.namespace))}else{let i=lO.keys();for(let o of i){let a=lO.get(o),c=r?TG(a,r.get(a.namespace)):a.name;if(e[c])return c}}}s(Xb,"getTagNameFromFragmentJSON");function yh(e,t=e){let n=Xb(e,void 0,t);return e[n]}s(yh,"getRootCustomColumnFromFragmentJSON");function gme(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],r="\\{";for(let i in e[t]){let o=e[t][i];!n.includes(i)&&o!==void 0&&o.length!==0&&(r!=="\\{"&&(r+=", "),r+=`"${i}": "${o.toString()}"`)}return r+="}",r}s(gme,"addP13nData");function SG(e,t){var c,l,u;let n=!1,r=e.customData||e["table:customData"];if(!r)return!1;let i=r["core:CustomData"]._attributes.value,o=JSON.parse(i.substr(1,i.length)),a=t.findIndex(f=>f.columnKey===o.columnKey);return a<0?!1:(n=!0,i=gme(t,a),r["core:CustomData"]._attributes.value=i,!e.Text&&!e.Label&&((c=t[a])!=null&&c.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(l=t[a])==null?void 0:l.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(u=t[a])==null?void 0:u.text),e._attributes||(e._attributes={}),e._attributes.id=t[a].id,t.splice(a,1),n)}s(SG,"handleFragmentColumn");function mme(e,t,n,r){let i=e[n].fragmentName.substr(r.length+1),o=e.type?e.type.toLowerCase():"xml",a=i.split("."),c=a[a.length-1]+Bt.FRAGMENTNAMEPART+o;for(let l of t){let u=l.dataSourceUri.split(Yb.sep);if(u[u.length-1]===c){let f=JSON.parse((0,Is.xml2json)(l.fileContent,{compact:!0}));try{let p=Xb(f[no]);p&&(delete f[no][p],l.fileContent=(0,Is.json2xml)(JSON.stringify(f),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${l.dataSourceUri}, please check content`)}break}}}s(mme,"deleteColumnsFromFragment");function EG(e,t){var n;for(let r=0;r<Object.keys(e).length;r++){let i=JSON.parse(JSON.stringify(e[r]));if((n=i.attributes)!=null&&n.id&&delete i.attributes.id,JSON.stringify(i)===dme&&(e.splice(r,1),t-=1,t===0))break}}s(EG,"deleteNumberOfCells");function yme(e,t,n){let r=e.type?e.type.toLowerCase():"xml",i=e.fragmentName.substr(n.length+1).split("."),o=i[i.length-1]+Bt.FRAGMENTNAMEPART+r;for(let a of t)if(a.dataSourceUri.endsWith(o)){let c=JSON.parse((0,Is.xml2json)(a.fileContent)),l=c.elements[0].elements&&c.elements[0].elements.filter(u=>u.type==="element");l&&EG(c.elements[0].elements,l.length),a.fileContent=(0,Is.json2xml)(JSON.stringify(c),{spaces:4});break}}s(yme,"deleteCellsFromFragment");function zb(e,t,n,r){if(r){mme(e,r,t,n);let i=t.replace(Bt.ViewTemplateType.ResponsiveTableColumnsExtension,Bt.ViewTemplateType.ResponsiveTableCellsExtension),o=e[i];o&&yme(o,r,n)}}s(zb,"deleteColumnFromFragment");function bme(e,t,n,r){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);let o=[];for(let a=i;a<Object.keys(n).length;a++){let c={...Jb},l=r(Jb.name,o);c.attributes={id:l,...Jb.attributes},t.elements[0].elements.push(c),o.push(l)}}s(bme,"addNewColumnsInFragment");function vme(e,t,n){let r=JSON.parse((0,Is.xml2json)(e.fileContent)),i=r.elements[0].elements&&r.elements[0].elements.filter(o=>o.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)bme(i,r,t,n);else if(Object.keys(i).length>Object.keys(t).length){let o=Object.keys(i).length-Object.keys(t).length,a=r.elements[0].elements;EG(a,o)}e.fileContent=(0,Is.json2xml)(JSON.stringify(r),{spaces:4})}}s(vme,"updateNonEmptyCellsFragment");function Tme(e,t,n,r){let i=!1;for(let o of e){let a=o.dataSourceUri.split(Yb.sep);if(a[a.length-1]===t){i=!0,o.changeIndicator=Bt.ChangeIndicator.Updated,!o.fileContent||Object.keys(o.fileContent).length===0?o.fileContent=oO(n,r):vme(o,n,r);break}}return i}s(Tme,"updateCellsFragment");function Sme(e,t,n,r,i){var f;let o,a,c=t.manifest,l=tr(c,e),u=l.type?l.type.toLowerCase():"xml";l.type=u.toUpperCase();for(let p of n){if(!p.fragmentName){je(i,{severity:Bt.LogSeverity.Error,message:ee.t("NOFRAGMENT",{columnKey:p.columnKey})});continue}t.manifestChangeIndicator=Bt.ChangeIndicator.Updated,l.fragmentName=p.fragmentName,l.className=p.className,o=((f=p.fragmentName)==null?void 0:f.replace(r,"<root>/webapp").replace(/[.]/g,Yb.sep))+Bt.FRAGMENTNAMEPART+u}if(e.indexOf(Bt.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Bt.ChangeIndicator.Updated;let p=e.replace(Bt.ViewTemplateType.ResponsiveTableColumnsExtension,Bt.ViewTemplateType.ResponsiveTableCellsExtension),d=tr(c,p),h=n.reduce((m,b)=>b.cellsFragmentName?b:m);h&&h.cellsFragmentName?(d.fragmentName=a=h.cellsFragmentName,d.className=n[0].className,d.type=u.toUpperCase()):vG(c,p)}return{manifestSection:l,lsFilePath:o,cellsFragmentName:a,fragmentType:u}}s(Sme,"exportCustomColumnsToManifest");function Eme(e,t,n,r,i,o){let a=iO(e,t,o);if(a){let c=JSON.parse((0,Is.xml2json)(a,{compact:!0})),l=yh(c,r);if(Array.isArray(n))n.some(f=>JSON.stringify(f)===JSON.stringify(l))||n.push(l);else if(n){let u=[n];u.splice(i,0,l),n=u}else n=[l]}return n}s(Eme,"insertNewColumnInFragment");function Pme(e,t){let n=[];for(let r=0;r<e.length;r++)SG(e[r],t)||n.push(r);for(let r=n.length-1;r>=0;r--)e.splice(n[r],1)}s(Pme,"processCustomColumnInArray");function Ame(e,t,n){if(e){if(Array.isArray(e))Pme(e,t);else if(!SG(e,t)){let i=Xb(n[no]);i&&(delete n[no][i],e=void 0)}}return e}s(Ame,"maintainExistingColumnInFragment");function xme(e,t,n,r,i,o){for(let a of e)if(a.fragmentName.endsWith(t)){let c=e.indexOf(a);n=Eme(a,r,n,i,c,o)}return n}s(xme,"insertNewColumnsInFragment");function Ome(e,t,n,r){let i=!1,{fragments:o,fragmentName:a,fragmentId:c}=e;if(!o)return i;for(let l of o)if(l.dataSourceUri.endsWith(a)){let u={};if(i=!0,l.changeIndicator=Bt.ChangeIndicator.Updated,!l.fileContent||l.fileContent.length===0)l.fileContent=sO(n,r,t);else{let f=JSON.parse((0,Is.xml2json)(l.fileContent,{compact:!0})),p=JSON.stringify(f);u=yh(f[no]),u=Ame(u,n,f),u=xme(n,c,u,r,f,t);let d=Xb(f,r);f[no][d]=u;let h=JSON.stringify(f);h!==p&&(l.fileContent=(0,Is.json2xml)(h,{compact:!0,spaces:4}))}break}return i}s(Ome,"updateColumnsInFragment");function uO(e,t,n,r){let{exportResults:i,appId:o,logger:a,idGeneratorFunction:c}=e,l=i.fragments,{manifestSection:u,lsFilePath:f,cellsFragmentName:p,fragmentType:d}=Sme(t,i,n,o,a),h=JSON.parse(JSON.stringify(n)),m=u.fragmentName,b=m.substr(o.length+1),T=b.split(".");m=T[T.length-1]+Bt.FRAGMENTNAMEPART+d;let F=p==null?void 0:p.split("."),N=F?F[F.length-1]:null,$=N?N+Bt.FRAGMENTNAMEPART+d:null,j=Ome({fragments:l,fragmentName:m,fragmentId:b},c,h,r),M=!1;if(p?M=Tme(l,$,n,c):M=!0,!j){let k={fileContent:sO(h,r,c),dataSourceUri:f,changeIndicator:Bt.ChangeIndicator.Deleted};i.fragments.push(k)}if(!M){let k={fileContent:oO(n,c),dataSourceUri:f.replace(m,$),changeIndicator:Bt.ChangeIndicator.Deleted};i.fragments.push(k)}}s(uO,"exportCustomColumnsToFragment");var Qb=s((e,t,n,r)=>{var l,u,f,p;if(!e)return;let i=pme.get((l=e.component)==null?void 0:l.name);if(!r){let d=(p=(f=(u=e.component)==null?void 0:u.settings)==null?void 0:f.tableSettings)==null?void 0:p.type;d||(d="ResponsiveTable"),i==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(d="AnalyticalTable"),r=d+"ColumnsExtension"}let o=r,a=`${r}|${t}`;return n&&(a+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+i+"/"+a,viewTemplateType:o}},"getCustomColumnPath");var wn=me(Pe());var Ba=s((e,t,n,r)=>r()==="sap.m.Table"?e+"responsiveTable":r()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+wn.PropertyName.table:cn(e,t),"getSmartTableControlId");function Ime(e,t){let n=e.variants||{},r=t.variants||{};Object.keys(n).filter(o=>!Object.keys(r).includes(o)).forEach(o=>{delete n[o]});for(let o in r){let a=r[o],c=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let l in a)c.indexOf(l)!==-1&&(a.tableSettings||(a.tableSettings={}),a.tableSettings[l]=a[l],delete a[l]);n[o]=a}Object.keys(n).length>0&&(e.variants=n)}s(Ime,"exportVariants");function _me(e,t){t.variants&&(Object.keys(t.variants).length>0?Ime(e,t):delete e.variants)}s(_me,"exportQuickVariantSelectionX");var Zb=class Zb{};s(Zb,"CreateWithFilters"),x([O({manifest:{path:s(t=>Rt(t)+"/createWithFilters","path")}})],Zb.prototype,"strategy",2);var fO=Zb;function Th(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}s(Th,"importType");function _f(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}s(_f,"exportType");function Cf(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}s(Cf,"deleteType");var bh=class bh{};s(bh,"QuickVariantSelection"),x([O({manifest:{path:s(t=>Rt(t)+wn.QUICKVARPATH,"path")}}),de({since:"1.48.0"})],bh.prototype,"showCounts",2),x([O({manifest:{path:s(t=>Rt(t)+wn.QUICKVARPATH,"path")}}),de({since:"1.48.0"})],bh.prototype,"variants",2);var pO=bh,xf=class xf{};s(xf,"QuickVariantSelectionX"),x([O({manifest:{path:s(t=>Rt(t)+wn.QUICKVARPATHX,"path")}}),de({since:"1.48.0"})],xf.prototype,"showCounts",2),x([O({manifest:{path:s(t=>Rt(t)+wn.QUICKVARPATHX,"path")}}),de({since:"1.48.0"})],xf.prototype,"enableAutoBinding",2),x([O({manifest:{path:s(t=>Rt(t)+wn.QUICKVARPATHX,"path"),export:_me}}),de({since:"1.48.0"})],xf.prototype,"variants",2);var dO=xf,Kr=class Kr{constructor(){this.getDeprecated=s(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};s(Kr,"CommonTableSettings"),x([O({flex:{controlId:cn,controlType:s(()=>wn.ControlType.SmartTable,"controlType"),createFlexChange:ye}}),de({since:"1.38.0"})],Kr.prototype,"showTablePersonalisation",2),x([O({flex:{controlId:Ba,controlType:s(()=>wn.ControlType.SmartTable,"controlType"),createFlexChange:ye}}),de({since:"1.26.0"})],Kr.prototype,"useExportToExcel",2),x([O({flex:{controlId:Ba,controlType:s(()=>wn.ControlType.SmartTable,"controlType"),createFlexChange:ye}}),de({since:"1.50.0"})],Kr.prototype,"exportType",2),x([O({manifest:{path:s(t=>Rt(t),"path")}}),de({since:"1.48.0"})],Kr.prototype,"quickVariantSelection",2),x([O({manifest:{path:s(t=>Rt(t),"path")}}),de({since:"1.48.0"})],Kr.prototype,"quickVariantSelectionX",2),x([O({manifest:{path:s(t=>qb(t),"path")}}),de({since:"1.38.0"})],Kr.prototype,"multiSelect",2),x([O({manifest:{path:s(t=>qb(t),"path")}}),de({since:"1.70.0"})],Kr.prototype,"selectAll",2),x([O({manifest:{path:s(t=>qb(t),"path")}}),de({since:"1.70.0"})],Kr.prototype,"selectionLimit",2),x([O({flex:{controlId:Ba,controlType:s(()=>wn.ControlType.SmartTable,"controlType"),createFlexChange:ye}}),de({since:"1.40.0"})],Kr.prototype,"enableAutoBinding",2),x([O({manifest:{path:s(t=>Rt(t),"path")}}),de({since:"1.42.0"})],Kr.prototype,"condensedTableLayout",2),x([O({manifest:{path:s(t=>Rt(t),"path")}}),de({since:"1.56.0"}),Fn("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],Kr.prototype,"enableTableFilterInPageVariant",2),x([Zn("toolBar")],Kr.prototype,"toolBar",2);var Ga=Kr,Do=class Do extends Ga{};s(Do,"ResponsiveTable"),x([O({manifest:{path:s(t=>Rt(t),"path"),import:Th,export:_f,delete:Cf}}),de({since:"1.50.0"})],Do.prototype,"type",2),x([O({manifest:{path:s(t=>Rt(t),"path")}}),de({since:"1.54.0"})],Do.prototype,"createWithFilters",2),x([O({flex:{controlId:Ba,controlType:s(()=>wn.ControlType.Table,"controlType"),createFlexChange:ye},generate:Ys}),de({since:"1.52.0"})],Do.prototype,"popinLayout",2),x([O({flex:{controlId:Ba,controlType:s(()=>wn.ControlType.Table,"controlType"),createFlexChange:ye}})],Do.prototype,"includeItemInSelection",2),x([O({manifest:{path:s(()=>wn.GENERICAPPSETTINGS,"path")}}),de({since:"1.63.0"})],Do.prototype,"showDraftToggle",2),x([O({flex:{controlId:Ba,controlType:s(()=>wn.ControlType.Table,"controlType"),createFlexChange:ye}}),de({since:"1.16.0"})],Do.prototype,"growingThreshold",2);var Tl=Do,vh=class vh extends Ga{};s(vh,"TreeTable"),x([O({manifest:{path:s(t=>Rt(t),"path"),import:Th,export:_f,delete:Cf}}),de({since:"1.50.0"})],vh.prototype,"type",2),x([O({manifest:{path:s(()=>wn.GENERICAPPSETTINGS,"path")}}),de({since:"1.63.0"})],vh.prototype,"showDraftToggle",2);var hO=vh,_s=class _s extends Ga{};s(_s,"AnalyticalTable"),x([O({manifest:{path:s(t=>Rt(t),"path"),import:Th,export:_f,delete:Cf}}),de({since:"1.50.0"})],_s.prototype,"type",2),x([O({manifest:{path:s(t=>Rt(t),"path")}})],_s.prototype,"qualifier",2),x([O({manifest:{path:s(t=>Rt(t),"path")}})],_s.prototype,"defaultContentView",2),x([O({manifest:{path:s(t=>Rt(t),"path")}})],_s.prototype,"defaultFilterMode",2),x([O({manifest:{path:s(t=>Rt(t),"path")}}),de({since:"1.60.0"})],_s.prototype,"contentTitle",2),x([O({manifest:{path:s(t=>Rt(t),"path")}})],_s.prototype,"autoHide",2),x([O({manifest:{path:s(t=>Rt(t),"path")}}),de({since:"1.54.0"})],_s.prototype,"createWithFilters",2),x([O({manifest:{path:s(()=>wn.GENERICAPPSETTINGS,"path")}}),de({since:"1.63.0"})],_s.prototype,"showDraftToggle",2);var gO=_s,$o=class $o extends Ga{};s($o,"TableALP"),x([O({manifest:{path:s(t=>Rt(t),"path"),import:Th,export:_f,delete:Cf}}),de({since:"1.50.0"})],$o.prototype,"type",2),x([O({manifest:{path:s(t=>Rt(t),"path")}})],$o.prototype,"qualifier",2),x([O({manifest:{path:s(t=>Rt(t),"path")}}),de({since:"1.38.0"}),O({manifest:{path:s(t=>Rt(t),"path")}})],$o.prototype,"defaultContentView",2),x([O({manifest:{path:s(t=>Rt(t),"path")}})],$o.prototype,"defaultFilterMode",2),x([O({manifest:{path:s(t=>Rt(t),"path")}}),de({since:"1.60.0"})],$o.prototype,"contentTitle",2),x([O({manifest:{path:s(t=>Rt(t),"path")}})],$o.prototype,"autoHide",2);var If=$o,ev=class ev extends If{};s(ev,"ALPResponsiveTable"),x([O({flex:{controlId:Ba,controlType:s(()=>wn.ControlType.Table,"controlType"),createFlexChange:ye}}),de({since:"1.16.0"})],ev.prototype,"growingThreshold",2);var mO=ev,TO=class TO extends If{};s(TO,"ALPGridTable");var yO=TO,SO=class SO extends If{};s(SO,"ALPAnalyticalTable");var bO=SO,Of=class Of extends Ga{};s(Of,"GridTable"),x([O({manifest:{path:s(t=>Rt(t),"path"),import:Th,export:_f,delete:Cf}}),de({since:"1.50.0"})],Of.prototype,"type",2),x([O({manifest:{path:s(t=>Rt(t),"path")}}),de({since:"1.54.0"})],Of.prototype,"createWithFilters",2),x([O({manifest:{path:s(()=>wn.GENERICAPPSETTINGS,"path")}}),de({since:"1.63.0"})],Of.prototype,"showDraftToggle",2);var vO=Of;var Sh=me(Pe());var Cme=s((e,t,n)=>{let{actionId:r}=gi(n);return`${e}action::${mi(r).replace(":2f","::")}`},"getActionButtonId"),wme=s((e,t,n)=>{let{actionId:r}=gi(n);return`${e}template::${r}`},"getStandardActionButtonId"),Nme=s((e,t,n)=>{let{actionId:r}=gi(n);return`${e}${kb}${r}`},"getStandardFooterActionOPButtonId"),RO=s((e,t,n)=>{let{semanticObjectId:r,actionId:i}=gi(n);return`${e}action::${r}::${mi(i)}`},"buildIntentBasedActionId"),Rme=s((e,t,n)=>{let{actionId:r}=gi(n);return`${e}action::${mi(r).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),Ha={controlId:Cme,controlType:s(()=>Sh.ControlType.Button,"controlType"),createFlexChange:ye},Eh={controlId:wme,controlType:s(()=>Sh.ControlType.Button,"controlType"),createFlexChange:ye},PG={controlId:Nme,controlType:s(()=>Sh.ControlType.Button,"controlType"),createFlexChange:ye},tv={controlId:Rme,controlType:s(()=>Sh.ControlType.Button,"controlType"),createFlexChange:ye},Sl=class Sl{};s(Sl,"Action"),x([O({flex:Ha})],Sl.prototype,"tooltip",2),x([O({flex:Ha})],Sl.prototype,"icon",2),x([O({flex:Ha})],Sl.prototype,"activeIcon",2),x([O({flex:Ha})],Sl.prototype,"type",2);var EO=Sl,El=class El{};s(El,"ToolBarAction"),x([O({flex:Ha})],El.prototype,"tooltip",2),x([O({flex:Ha})],El.prototype,"icon",2),x([O({flex:Ha})],El.prototype,"activeIcon",2),x([O({flex:Ha})],El.prototype,"type",2);var PO=El,Pl=class Pl{};s(Pl,"FooterAction"),x([O({flex:tv})],Pl.prototype,"tooltip",2),x([O({flex:tv})],Pl.prototype,"icon",2),x([O({flex:tv})],Pl.prototype,"activeIcon",2),x([O({flex:tv})],Pl.prototype,"type",2);var AO=Pl,nv=class nv{};s(nv,"Share"),x([O({flex:Eh})],nv.prototype,"visible",2);var xO=nv,rv=class rv{};s(rv,"ShareOP"),x([O({flex:Eh})],rv.prototype,"visible",2);var OO=rv,iv=class iv{};s(iv,"UpAndDownNavigationOP"),x([O({flex:Eh})],iv.prototype,"visible",2);var IO=iv,sv=class sv{};s(sv,"SaveAndEditOP"),x([O({flex:PG,generate:jt})],sv.prototype,"visible",2);var _O=sv,ov=class ov{};s(ov,"HeaderActionStandard"),x([O({flex:Eh})],ov.prototype,"visible",2);var CO=ov,av=class av{};s(av,"ObjectPageHeaderActionStandard"),x([O({flex:Eh})],av.prototype,"visible",2);var wO=av,cv=class cv{};s(cv,"ObjectPageFooterActionStandard"),x([O({flex:PG})],cv.prototype,"visible",2);var NO=cv;var xh=me(Pe());var Fme=s((e,t,n)=>{let r="template:::TableColumn",{actionType:i,actionId:o}=gi(n),a=`sSmartTableId::${t[0]}`;return`${e}${r}:::${i}:::${a}:::sAction::${o}`},"buildColumnActionId"),Lme=s((e,t,n)=>{let r="template:::TableColumn",{actionType:i,actionId:o,semanticObjectId:a}=gi(n),c=`sSmartTableId::${t[0]}`;return`${e}${r}:::${i}:::${c}:::sSemanticObject::${a}:::sAction::${o}`},"buildColumnIntentBasedId"),jme=s((e,t,n)=>{let{actionId:r}=gi(n);return`${e}action::${r.replace(":2f","::")}`},"buildColumnActionButtonId"),FO={controlId:Fme,controlType:s(()=>xh.ControlType.TableColumn,"controlType"),createFlexChange:ye},Ph={controlId:jme,controlType:s(()=>xh.ControlType.Button,"controlType"),createFlexChange:ye},AG={...FO,controlId:Lme},lv={...Ph,controlId:RO},Ah=class Ah{};s(Ah,"TableColumn"),x([O({flex:{controlId:Cx,controlType:s(()=>xh.ControlType.TableColumn,"controlType"),createFlexChange:ye}})],Ah.prototype,"width",2),x([O({flex:{controlId:Cx,controlType:s(()=>xh.ControlType.TableColumn,"controlType"),createFlexChange:ye},generate:Ys})],Ah.prototype,"hAlign",2);var LO=Ah,ko=class ko{};s(ko,"TableColumnAction"),x([O({flex:FO})],ko.prototype,"width",2),x([O({flex:FO,generate:Ys})],ko.prototype,"hAlign",2),x([O({flex:Ph})],ko.prototype,"tooltip",2),x([O({flex:Ph})],ko.prototype,"icon",2),x([O({flex:Ph})],ko.prototype,"activeIcon",2),x([O({flex:Ph})],ko.prototype,"type",2);var jO=ko,Mo=class Mo{};s(Mo,"TableColumnActionIntentBased"),x([O({flex:AG})],Mo.prototype,"width",2),x([O({flex:AG,generate:Ys})],Mo.prototype,"hAlign",2),x([O({flex:lv})],Mo.prototype,"tooltip",2),x([O({flex:lv})],Mo.prototype,"icon",2),x([O({flex:lv})],Mo.prototype,"activeIcon",2),x([O({flex:lv})],Mo.prototype,"type",2);var DO=Mo,kO=class kO{};s(kO,"TableCustomColumn");var $O=kO;var VO=class VO{};s(VO,"ToolBar");var MO=VO;var xl=me(Pe());var Oh=s(e=>e+xl.PropertyName.chart,"getSmartChartControlId"),Al=class Al{};s(Al,"ChartSettings"),x([O({flex:{controlId:Oh,controlType:s(()=>xl.ControlType.SmartChart,"controlType"),createFlexChange:ye}})],Al.prototype,"showLegendButton",2),x([O({flex:{controlId:Oh,controlType:s(()=>xl.ControlType.SmartChart,"controlType"),createFlexChange:ye}})],Al.prototype,"showDownloadButton",2),x([O({flex:{controlId:Oh,controlType:s(()=>xl.ControlType.SmartChart,"controlType"),createFlexChange:ye}})],Al.prototype,"showChartTypeSelectionButton",2),x([O({flex:{controlId:Oh,controlType:s(()=>xl.ControlType.SmartChart,"controlType"),exportFlexValue:s((t,n,r)=>{t.content.newValue=n[r].join()},"exportFlexValue"),importFlexValue:s((t,n,r)=>{t.content.newValue=t.content.newValue,n[r]=t.content.newValue.split(",")},"importFlexValue"),createFlexChange:ye}})],Al.prototype,"ignoredChartTypes",2);var qO=Al;var Vo=class Vo{};s(Vo,"KPISettings"),x([O({manifest:{path:s((t,n,r)=>vl(t,r),"path")}})],Vo.prototype,"model",2),x([O({manifest:{path:s((t,n,r)=>vl(t,r),"path")}})],Vo.prototype,"entitySet",2),x([O({manifest:{path:s((t,n,r)=>vl(t,r),"path")}})],Vo.prototype,"qualifier",2),x([O({manifest:{path:s((t,n,r)=>vl(t,r),"path")}})],Vo.prototype,"filterable",2),x([O({manifest:{path:s((t,n,r)=>vl(t,r),"path")}})],Vo.prototype,"detailNavigation",2),x([O({manifest:{path:s((t,n,r)=>vl(t,r),"path")}})],Vo.prototype,"groupId",2);var UO=Vo;var xG=me(Pe());var Dme=s((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",cn(e,n)},"getAvatarControlId"),Wa=class Wa{};s(Wa,"ObjectPageHeader"),x([O({manifest:{path:s(t=>ji(t),"path")}}),de({since:"1.46.0"})],Wa.prototype,"showRelatedApps",2),x([O({manifest:{path:s(t=>ji(t),"path")}}),de({since:"1.46.0"})],Wa.prototype,"editableHeaderContent",2),x([O({manifest:{path:s(t=>ji(t),"path")}}),de({since:"1.48.0"})],Wa.prototype,"simpleHeaderFacets",2),x([O({manifest:{path:s(t=>ji(t),"path")}}),de({since:"1.48.0"}),Fn("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],Wa.prototype,"showHeaderAsCarouselOnDesktop",2),x([O({flex:{controlId:Dme,controlType:s(()=>xG.ControlType.Avatar,"controlType"),createFlexChange:ye},generate:jt})],Wa.prototype,"displayShape",2);var BO=Wa;var uv=me(Pe());var $me=s((e,t,n,r)=>{if(r()===uv.ControlType.Button||r()===uv.ControlType.HeaderAction){let i=n[2];return`${e}action::${mi(i)}`}return cn(e,t)},"getActionButtonId"),Ih={controlId:$me,controlType:s(()=>uv.ControlType.HeaderAction,"controlType"),createFlexChange:ye},Ka=class Ka{};s(Ka,"HeaderAction"),x([O({flex:Ih,generate:jt})],Ka.prototype,"visible",2),x([O({flex:Ih})],Ka.prototype,"tooltip",2),x([O({flex:Ih})],Ka.prototype,"icon",2),x([O({flex:Ih})],Ka.prototype,"activeIcon",2),x([O({flex:Ih})],Ka.prototype,"type",2);var GO=Ka;var _h=me(Pe());var mv="header::headerEditable::",kme=s((e,t,n,r,i)=>`${e}${mv}${i}`,"getDataPointHeaderSectionId"),Mme=s((e,t,n,r,i)=>`${e}${mv}${i}::ContactAddress`,"getAddressHeaderSectionId"),Vme=s((e,t,n,r,i)=>`${e}${mv}${i}::SmartMicroChartVBox`,"getChartHeaderSectionId"),qme=s((e,t,n,r,i)=>{let o=n[n.length-1].replace(/@com.sap/g,"com.sap"),a=i!=null&&i.includes(_h.FACETTITLEPREFIX)?i.split(_h.FACETTITLEPREFIX)[1]:o;return`${e}${mv}${a}::Form`},"getFormHeaderSectionId"),Ch={controlType:s(()=>_h.ControlType.ObjectPageHeaderSection,"controlType"),createFlexChange:ye},fv=class fv{};s(fv,"CommonHeaderFacetSettings"),x([O({flex:{...Ch,controlId:s((()=>crypto.randomUUID()),"controlId")},generate:jt})],fv.prototype,"visible",2);var Ol=fv,pv=class pv extends Ol{};s(pv,"ObjectPageHeaderSectionForm"),x([O({flex:{...Ch,controlId:qme}})],pv.prototype,"visible",2);var HO=pv,dv=class dv extends Ol{};s(dv,"ObjectPageHeaderSectionChart"),x([O({flex:{...Ch,controlId:Vme}})],dv.prototype,"visible",2);var WO=dv,hv=class hv extends Ol{};s(hv,"ObjectPageHeaderSectionDataPoint"),x([O({flex:{...Ch,controlId:kme}})],hv.prototype,"visible",2);var KO=hv,gv=class gv extends Ol{};s(gv,"ObjectPageHeaderSectionAddress"),x([O({flex:{...Ch,controlId:Mme}})],gv.prototype,"visible",2);var JO=gv,XO=class XO{};s(XO,"HeaderSections");var YO=XO;var QO=me(Pe());var Ume=s((e,t,n,r)=>{if(r()===QO.ControlType.Button){let{actionId:i}=gi(n);return`${e}action::${mi(i)}::Determining`}return cn(e,t)},"getFooterActionButtonId"),wh={controlId:Ume,controlType:s(()=>QO.ControlType.Button,"controlType"),createFlexChange:ye},Ja=class Ja{};s(Ja,"ObjectPageFooterAction"),x([O({flex:wh,generate:jt})],Ja.prototype,"visible",2),x([O({flex:wh})],Ja.prototype,"tooltip",2),x([O({flex:wh})],Ja.prototype,"icon",2),x([O({flex:wh})],Ja.prototype,"activeIcon",2),x([O({flex:wh})],Ja.prototype,"type",2);var zO=Ja;var Nh=me(Pe());var yv=s((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",cn(e,n)},"getControlId"),Il=class Il{};s(Il,"ObjectPageLayout"),x([O({flex:{controlId:yv,controlType:s(()=>Nh.ControlType.ObjectPageLayout,"controlType"),createFlexChange:ye},generate:jt})],Il.prototype,"showHeaderContent",2),x([O({flex:{controlId:yv,controlType:s(()=>Nh.ControlType.ObjectPageLayout,"controlType"),createFlexChange:ye}})],Il.prototype,"showAnchorBar",2),x([O({flex:{controlId:yv,controlType:s(()=>Nh.ControlType.ObjectPageLayout,"controlType"),createFlexChange:ye}})],Il.prototype,"useIconTabBar",2),x([O({flex:{controlId:yv,controlType:s(()=>Nh.ControlType.ObjectPageLayout,"controlType"),createFlexChange:ye}}),de({since:"1.34.0"})],Il.prototype,"alwaysShowContentHeader",2);var ZO=Il;var OG=me(Pe());var _l=class _l{};s(_l,"BaseCustomSection"),x([O({manifest:{path:Lo,export:!1,import:s((t,n)=>n.split("|")[2],"import")}}),de({since:"1.52.0"})],_l.prototype,"relatedFacet",2),x([O({manifest:{path:Lo,export:!1,import:s((t,n)=>n.split("|")[0],"import")}}),de({since:"1.52.0"})],_l.prototype,"relativePosition",2),x([O({manifest:{path:s((t,n,r)=>Lo(t,{},r,OG.ManifestSection.generic),"path")}}),de({since:"1.52.0"})],_l.prototype,"title",2),x([O({manifest:{path:Lo}}),de({since:"1.52.0"})],_l.prototype,"className",2);var Lh=_l,Rh=class Rh extends Lh{};s(Rh,"ObjectPageCustomSectionFragment"),x([O({manifest:{path:Lo}}),de({since:"1.52.0"})],Rh.prototype,"fragmentName",2),x([O({manifest:{path:Lo}}),de({since:"1.52.0"})],Rh.prototype,"type",2);var jh=Rh,Fh=class Fh extends Lh{};s(Fh,"ObjectPageCustomSectionView"),x([O({manifest:{path:Lo}}),de({since:"1.52.0"})],Fh.prototype,"viewName",2),x([O({manifest:{path:Lo}}),de({since:"1.52.0"})],Fh.prototype,"type",2);var Dh=Fh;var yi=me(Pe());var IG=s((e,t,n,r,i)=>{let a=[or(n[1],i),yi.DefinitionName.Table];return cn(e,a)},"getTableSectionControlId"),_G=s((e,t,n,r,i)=>{let a=[or(n[1],i),"FormGroup"];return cn(e,a)},"getFormSectionControlId"),CG=s((e,t,n,r,i)=>{let a=[or(n[1],i),"Chart"];return cn(e,a)},"getChartSectionControlId"),Cl=s((e,t,n,r,i)=>{let a=[or(n[1],i),"Section"];return cn(e,a)},"getSectionControlId"),wG=s((e,t,n,r,i)=>{let a=[or(n[1],i),"SubSection"];return cn(e,a)},"getSubSectionControlId"),NG=s((e,t,n,r,i)=>{let a=[or(n[1],i),"ContactsList"];return cn(e,a)},"getContactSubSectionControlId"),bv=class bv{};s(bv,"ObjectPageSectionV2"),x([O({flex:{controlId:Cl,controlType:s(()=>yi.ControlType.Section,"controlType"),createFlexChange:ye},generate:jt})],bv.prototype,"visible",2);var eI=bv,vv=class vv{};s(vv,"ObjectPageSectionFormV2"),x([O({flex:{controlId:Cl,controlType:s(()=>yi.ControlType.Section,"controlType"),createFlexChange:ye},generate:jt})],vv.prototype,"visible",2);var tI=vv,Tv=class Tv{};s(Tv,"ObjectPageSectionChartV2"),x([O({flex:{controlId:Cl,controlType:s(()=>yi.ControlType.Section,"controlType"),createFlexChange:ye},generate:jt})],Tv.prototype,"visible",2);var nI=Tv,Sv=class Sv{};s(Sv,"ObjectPageSectionTableV2"),x([O({flex:{controlId:Cl,controlType:s(()=>yi.ControlType.Section,"controlType"),createFlexChange:ye},generate:jt})],Sv.prototype,"visible",2);var rI=Sv,Ev=class Ev{};s(Ev,"ObjectPageSectionAddressV2"),x([O({flex:{controlId:Cl,controlType:s(()=>yi.ControlType.Section,"controlType"),createFlexChange:ye},generate:jt})],Ev.prototype,"visible",2);var iI=Ev,Pv=class Pv{};s(Pv,"ObjectPageSectionContactV2"),x([O({flex:{controlId:Cl,controlType:s(()=>yi.ControlType.Section,"controlType"),createFlexChange:ye},generate:jt})],Pv.prototype,"visible",2);var sI=Pv,Av=class Av{};s(Av,"ObjectPageSubSectionV2"),x([O({flex:{controlId:wG,controlType:s(()=>yi.ControlType.SubSection,"controlType"),createFlexChange:ye},generate:jt})],Av.prototype,"visible",2);var oI=Av,xv=class xv{};s(xv,"ObjectPageSubSectionFormV2"),x([O({flex:{controlId:_G,controlType:s(()=>yi.ControlType.Group,"controlType"),createFlexChange:ye},generate:jt})],xv.prototype,"visible",2);var aI=xv,Ov=class Ov{};s(Ov,"ObjectPageSubSectionChartV2"),x([O({flex:{controlId:CG,controlType:s(()=>yi.ControlType.SmartChart,"controlType"),createFlexChange:ye},generate:jt})],Ov.prototype,"visible",2);var cI=Ov,Iv=class Iv{};s(Iv,"ObjectPageSubSectionContactV2"),x([O({flex:{controlId:NG,controlType:s(()=>yi.ControlType.SubSection,"controlType"),createFlexChange:ye},generate:jt})],Iv.prototype,"visible",2);var lI=Iv,_v=class _v{};s(_v,"ObjectPageSubSectionTableV2"),x([O({flex:{controlId:IG,controlType:s(()=>yi.ControlType.SmartTable,"controlType"),createFlexChange:ye},generate:jt})],_v.prototype,"visible",2);var uI=_v;var Di=me(Pe());var Nl=s((e,t,n,r,i)=>{let o=n.slice(1,2),a;return r()==="sap.ui.comp.smarttable.SmartTable"?a=Di.DefinitionName.Table:r()==="sap.m.Table"&&(a="responsiveTable"),o.push(a),o[0]=or(o[0],i),cn(e,o)},"getSmartTableControlId"),$h=class $h{};s($h,"QuickVariantSelectionOP"),x([O({manifest:{path:s((t,n,r)=>Zs(t,n,r)+Di.QUICKVARPATH,"path")}}),de({since:"1.48.0"})],$h.prototype,"showCounts",2),x([O({manifest:{path:s((t,n,r)=>Zs(t,n,r)+Di.QUICKVARPATH,"path")}}),de({since:"1.48.0"})],$h.prototype,"variants",2);var fI=$h,bi=class bi{constructor(){this.getDeprecated=s(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};s(bi,"CommonTableSettingsForSections"),x([O({flex:{controlId:Nl,controlType:s(()=>Di.ControlType.SmartTable,"controlType"),createFlexChange:ye}}),de({since:"1.28.0"})],bi.prototype,"editable",2),x([O({flex:{controlId:Nl,controlType:s(()=>Di.ControlType.SmartTable,"controlType"),createFlexChange:ye}}),de({since:"1.95.0"}),Fn("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],bi.prototype,"showPasteButton",2),x([O({manifest:{path:Da}}),de({since:"1.54.0"})],bi.prototype,"multiSelect",2),x([O({manifest:{path:Da}}),de({since:"1.70.0"})],bi.prototype,"selectAll",2),x([O({manifest:{path:Da}}),de({since:"1.70.0"})],bi.prototype,"selectionLimit",2),x([O({manifest:{path:Zs}}),de({since:"1.63.0"})],bi.prototype,"quickVariantSelection",2),x([O({flex:{controlId:Nl,controlType:s(()=>Di.ControlType.SmartTable,"controlType"),createFlexChange:ye}}),de({since:"1.26.0"})],bi.prototype,"useExportToExcel",2),x([O({flex:{controlId:Nl,controlType:s(()=>Di.ControlType.SmartTable,"controlType"),createFlexChange:ye}}),de({since:"1.50.0"})],bi.prototype,"exportType",2),x([O({manifest:{path:Zs}}),de({since:"1.48.5"}),Fn("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],bi.prototype,"createMode",2),x([O({manifest:{path:Zs}}),de({since:"1.61.0"})],bi.prototype,"disableDefaultInlineCreateSort",2),x([Zn("toolBar")],bi.prototype,"toolBar",2);var Rl=bi,wl=class wl extends Rl{};s(wl,"ObjectPageResponsiveTable"),x([O({manifest:{path:Da}})],wl.prototype,"type",2),x([O({flex:{controlId:Nl,controlType:s(()=>Di.ControlType.Table,"controlType"),createFlexChange:ye}})],wl.prototype,"includeItemInSelection",2),x([O({flex:{controlId:Nl,controlType:s(()=>Di.ControlType.Table,"controlType"),createFlexChange:ye},generate:jt}),de({since:"1.52.0"})],wl.prototype,"popinLayout",2),x([O({flex:{controlId:Nl,controlType:s(()=>Di.ControlType.Table,"controlType"),createFlexChange:ye}}),de({since:"1.16.0"})],wl.prototype,"growingThreshold",2);var Fl=wl,kh=class kh extends Rl{};s(kh,"ObjectPageAnalyticalTable"),x([O({manifest:{path:Da}})],kh.prototype,"type",2),x([O({manifest:{path:Zs}}),de({since:"1.67.0"})],kh.prototype,"condensedTableLayout",2);var pI=kh,Mh=class Mh extends Rl{};s(Mh,"ObjectPageGridTable"),x([O({manifest:{path:Da}})],Mh.prototype,"type",2),x([O({manifest:{path:Zs}}),de({since:"1.67.0"})],Mh.prototype,"condensedTableLayout",2);var dI=Mh,Vh=class Vh extends Rl{};s(Vh,"ObjectPageTreeTable"),x([O({manifest:{path:Da}})],Vh.prototype,"type",2),x([O({manifest:{path:Zs}}),de({since:"1.67.0"})],Vh.prototype,"condensedTableLayout",2);var hI=Vh,Ya=class Ya{};s(Ya,"GlobalTableSettings"),x([O({manifest:{path:Tf}}),de({since:"1.70.0"})],Ya.prototype,"selectAll",2),x([O({manifest:{path:Tf}}),de({since:"1.78.0"})],Ya.prototype,"variantManagement",2),x([O({manifest:{path:Tf}})],Ya.prototype,"type",2),x([O({manifest:{path:Tf}}),de({since:"1.54.0"})],Ya.prototype,"multiSelect",2),x([O({manifest:{path:Tf}}),de({since:"1.67.0"})],Ya.prototype,"condensedTableLayout",2);var gI=Ya;var RG=me(Pe());var Bme=s((e,t,n,r,i)=>{let{actionId:o}=gi(n),a=or(n[1],i);return`${e}${a}::action::${mi(o).replace(":2f","::")}`},"getActionButtonId"),qh={controlId:Bme,controlType:s(()=>RG.ControlType.Button,"controlType"),createFlexChange:ye},Xa=class Xa{};s(Xa,"ObjectPageToolBarAction"),x([O({flex:qh,generate:jt})],Xa.prototype,"visible",2),x([O({flex:qh})],Xa.prototype,"tooltip",2),x([O({flex:qh})],Xa.prototype,"icon",2),x([O({flex:qh})],Xa.prototype,"activeIcon",2),x([O({flex:qh})],Xa.prototype,"type",2);var mI=Xa;var wf={};nf(wf,{AnalyticalListPage:()=>ns,ListReport:()=>Cs,ObjectPage:()=>_r,OverviewPage:()=>vn});var Cv=me(Pe());var ns=class{};s(ns,"AnalyticalListPage"),x([O({flex:{controlId:_b,controlType:s(()=>Cv.ControlType.DynamicPage,"controlType"),createFlexChange:ye}})],ns.prototype,"fitContent",2),x([Zn("table")],ns.prototype,"table",2),x([Zn("template::SmartFilterBar")],ns.prototype,"filterBar",2),x([Zn("analyticalListPageChart")],ns.prototype,"chart",2),x([Zn("analyticalListFooter")],ns.prototype,"footer",2),ns=x([Xs({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Cv.v2.FE_TEMPLATE_V2_ALP})],ns);var Uh=me(Pe());var Cs=class{};s(Cs,"ListReport"),x([O({flex:{controlId:_b,controlType:s(()=>Uh.ControlType.DynamicPage,"controlType"),createFlexChange:ye}})],Cs.prototype,"fitContent",2),x([Zn("listReportFilter")],Cs.prototype,"filterBar",2),x([Zn("listReport")],Cs.prototype,"table",2),x([Zn("listReportFooter")],Cs.prototype,"footer",2),Cs=x([Xs({id:Uh.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Uh.v2.FE_TEMPLATE_V2_LIST_REPORT})],Cs);var yI=me(Pe());var _r=class{};s(_r,"ObjectPage"),x([O({manifest:{path:s(t=>ji(t),"path")}}),de({since:"1.52.0"})],_r.prototype,"showConfirmationOnDraftActivate",2),x([O({manifest:{path:s(t=>ji(t),"path")}}),de({since:"1.52.1"})],_r.prototype,"hideChevronForUnauthorizedExtNav",2),x([O({manifest:{path:s(t=>ji(t),"path")}}),de({since:"1.48.0"})],_r.prototype,"allowDeepLinking",2),x([O({manifest:{path:s(t=>ji(t),"path")}}),de({since:"1.52.0"})],_r.prototype,"navToListOnSave",2),x([Zn("header")],_r.prototype,"header",2),x([Zn("sections")],_r.prototype,"sections",2),x([Zn("layout")],_r.prototype,"layout",2),x([O({manifest:{path:s(t=>ji(t),"path"),import:s(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:pB}}),de({since:"1.71.0"})],_r.prototype,"globalTableSettings",2),x([O({manifest:{path:s(t=>ji(t),"path")}}),de({since:"1.48.5"}),Fn("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],_r.prototype,"createMode",2),_r=x([Xs({id:yI.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:yI.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],_r);var vn=class{};s(vn,"OverviewPage"),x([O({manifest:{path:s(()=>Mn(),"path")}})],vn.prototype,"globalFilterModel",2),x([O({manifest:{path:s(()=>Mn(),"path")}})],vn.prototype,"globalFilterEntityType",2),x([O({manifest:{path:s(()=>Mn(),"path")}})],vn.prototype,"globalFilterEntitySet",2),x([O({manifest:{path:s(()=>Mn(),"path")}})],vn.prototype,"showBasicSearch",2),x([O({manifest:{path:s(()=>Mn(),"path")}})],vn.prototype,"disableErrorPage",2),x([O({manifest:{path:s(()=>Mn(),"path")}})],vn.prototype,"smartVariantRequired",2),x([O({manifest:{path:s(()=>Mn(),"path")}})],vn.prototype,"bHeaderExpanded",2),x([O({manifest:{path:s(()=>Mn(),"path")}})],vn.prototype,"containerLayout",2),x([O({manifest:{path:s(()=>Mn(),"path")}})],vn.prototype,"showDateInRelativeFormat",2),x([O({manifest:{path:s(()=>Mn(),"path")}})],vn.prototype,"disableTableCardFlexibility",2),x([O({manifest:{path:s(()=>Mn(),"path")}})],vn.prototype,"enableLiveFilter",2),x([O({manifest:{path:s(()=>Mn(),"path")}})],vn.prototype,"enableLazyRendering",2),x([O({manifest:{path:s(()=>Mn(),"path")}})],vn.prototype,"refreshStrategyOnAppRestore",2),x([O({manifest:{path:s(()=>Mn(),"path")}})],vn.prototype,"considerAnalyticalParameters",2),x([O({manifest:{path:s(()=>Mn(),"path")}})],vn.prototype,"refreshIntervalInMinutes",2),x([O({manifest:{path:s(()=>Mn(),"path")}})],vn.prototype,"useDateRangeType",2),x([O({manifest:{path:s(()=>Mn(),"path")}})],vn.prototype,"dataLoadSettings",2),x([O({manifest:{path:s(()=>Mn(),"path")}})],vn.prototype,"resizableLayout",2),vn=x([Xs({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],vn);var bI={};for(let e in Ll)typeof Ll[e]=="function"&&(bI[e]=Ll[e]);function cr(e,t=[]){return e.concat(["component","settings"]).concat(t)}s(cr,"getManifestPathToPageSettings");function Cr(e,t,n){let r=e,i=t.every(function(o){return!r||typeof r!="object"||Array.isArray(r)&&typeof o!="number"?!1:(r=r[o],!0)})&&typeof r=="object"&&r!==null;return{hasPath:i,value:i&&n?r[n]:void 0,parent:i?r:void 0}}s(Cr,"getManifestPropertyByPath");function qo(e){return e!==null&&typeof e=="object"}s(qo,"isDefinition");function wv(e,t,n,r,i,o,a){let c=n[FG.SchemaTag.conversionExit],l=c==null?void 0:c.name,u=t?t(l):void 0;if(!u)return r;let f=c.params;return e?u.appToConfig(r,f,i??[],n,a):u.configToApp(r,f,i??[],n,o)}s(wv,"executeConversionExit");function jl(e){return!e||Object.keys(e).every(t=>e[t]===void 0)}s(jl,"isEmpty");function Uo(e,t,n,r,i,o,a=!1){Yd(i?[i,bI,wf]:[bI,wf],e,t,n,r,o,a)}s(Uo,"addManifestPathsToProperties");function Nf(e){if(Array.isArray(e.pageName)){let t=Ub(e.pageName);return bf(t)}}s(Nf,"getPageManifestPath");function dr(e,t,n,r="string",i=!1){let o;if(e===void 0)o=i;else if(e===null||typeof e!="object")o=!0;else{let a=e[t];a===void 0?o=i:o=typeof a!==r||a===null&&i}return o&&je(n,{severity:Dl.LogSeverity.Error,message:ee.t("TYPEERROR",{propertyName:t,expectedType:r})}),o}s(dr,"hasPropertyTypeError");var za=Symbol("Property is suppressed without explanation");function Bh(e,t,n,r){delete t.element.$ref,n===void 0||e===za?t.element[Dl.SchemaTag.hidden]=!0:(typeof n=="object"&&(t.element.type="object"),t.element[Dl.SchemaTag.messages]=[{text:e,deletable:!0,type:Dl.PropertyMessageType.Warning}]),t.manifestPath=r}s(Bh,"handleDisallowedProperty");function $l(e,t,n,r,i){return{manifest:{},processingRuleAdapter:s(function(o,a,c){let{manifestPath:l,disallowedReason:u}=t(o.element,a,c);if(u===za){delete o.element;return}let{value:f,parent:p}=Cr(c.manifest,l,e);if(u){Bh(u,o,f,l);return}if((i?dr(p,e,c.logger,i):!1)&&(i==="object"||typeof f=="object")){delete o.element;return}n&&n(o.element,a,c,f),o.manifestPath=l,r&&(o.referenceAdaptation=r(a,c))},"processingRuleAdapter")}}s($l,"getSyncRuleForManifestProperty");var Nv={manifest:{},processingRuleAdapter(e,t){e.manifestPath=cr(t.pageInfo.pagePath)}};var Rv=me(Pe()),Jr=require("@sap-ux/vocabularies-types/vocabularies/UI");function LG(e,t,n){let r=t.split("."),i=r[r.length-1],o=t+".view."+(i==="ObjectPage"?"Details":i);return`${e}::${o}::${n}`}s(LG,"getViewId");function rs(e,t){return e.indexOf(" ")>=0&&je(t.logger,{severity:Rv.LogSeverity.Error,message:"Spaces are not allowed in ID parts. Please check the annotations, probably something is wrong there."}),e.replace(/@/g,"").replace(/\//g,"::").replace(/#/g,"::")}s(rs,"replaceSpecialCharsInId");function vI(e){return typeof e.Action=="string"?e.Action:typeof e.Action=="object"?e.Action.path:""}s(vI,"getActionStringFromDataField");function jG(e){return typeof e.SemanticObject=="string"?e.SemanticObject:typeof e.SemanticObject=="object"?e.SemanticObject.path:""}s(jG,"getSemanticObjectStringFromDataField");function DG(e,t){let n="",r="";if(e.$Type===Jr.UIAnnotationTypes.DataFieldForAction)return rs(vI(e),t);if(e.$Type===Jr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Jr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return r=rs(jG(e),t),r=r+"::"+rs(vI(e),t),r;if(e.$Type===Jr.UIAnnotationTypes.DataFieldForAnnotation&&typeof e.Target=="object")return rs(e.Target.value,t);if(e.IconUrl)return r=rs(e.IconUrl.toString(),t),r;if(e.Value&&e.Value.type==="Path")return rs(e.Value.path,t);if(e.Value&&e.Value.Apply&&e.Value.Apply.Name==="odata.concat"){for(let i=0;i<e.Value.Apply.Parameters.length;i++)e.Value.Apply.Parameters[i].Type==="Path"&&(n&&(n=n+"::"),n=n+rs(e.Value.Apply.Parameters[i].Value,t));return n}}s(DG,"getStableIdPartFromDataField");function Rf(e){return e?"-".concat(e):""}s(Rf,"getSuffixFromIconTabFilterKey");function Gh(e){let t="",n="";e.dataField&&(n=e.dataField.stableIdPart),t="action::"+n;let i=Rf(e.iconTabFilterKey);return i&&(t=t.concat(i)),e.isChart&&(t=t+"::chart"),e.isDetermining&&(t=t+"::Determining"),t}s(Gh,"getStableIdForDatafieldActionButton");function Gme(e){return e.replace(/[^A-Za-z0-9_.-]/g,function(t){let n=t.charCodeAt(0).toString(16);return":"+(n.length===1?"0":"")+n})}s(Gme,"escapeIdParameter");function Hme(e,t,n){let r="template:::"+e+":::"+t;return n.every(function(o){return o.value?(r+=":::"+o.name+"::"+Gme(o.value),!0):!1})?r:""}s(Hme,"getStandardStableId");function $G(e,t,n){var o,a;if(t.$Type===Jr.UIAnnotationTypes.DataField||t.$Type===Jr.UIAnnotationTypes.DataFieldWithUrl){let c=(o=t.Value)==null?void 0:o.path;return c?`${e}-${c.replaceAll("/","_")}`:""}let r=t.$Type.replace(Rv.UIVOCABULARYDOT,""),i=[{name:"sSmartTableId",value:e}];if(t.$Type===Jr.UIAnnotationTypes.DataFieldWithNavigationPath||t.$Type===Jr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let c=(a=t.Value)==null?void 0:a.path;i.push({name:"sProperty",value:c})}if(t.$Type===Jr.UIAnnotationTypes.DataFieldWithNavigationPath||t.$Type===Jr.UIAnnotationTypes.DataFieldForAnnotation){let c=t.$Type===Jr.UIAnnotationTypes.DataFieldWithNavigationPath?"NavigationPropertyPath":"AnnotationPath",l=t.Target,u=(l==null?void 0:l.type)===c?l.value:void 0;i.push({name:"sTarget",value:u})}return(t.$Type===Jr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation||t.$Type===Jr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&i.push({name:"sSemanticObject",value:jG(t)}),(n||t.$Type===Jr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)&&i.push({name:"sAction",value:vI(t)}),Hme("TableColumn",r,i)}s($G,"getControlIdForColumn");function Kme(e,t,n){e.definitions[Ke.DefinitionName.LineItems]&&(e.definitions[Ke.DefinitionName.LineItems].properties.custom={$ref:`${he}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${he}${n}`},description:"Custom Columns"},e.definitions[t][Ke.SchemaTag.isViewNode]=!0;let r=e.definitions[n].properties.extensionType;r&&(r[Ke.SchemaTag.artifactType]=Ke.ArtifactType.Manifest)}s(Kme,"addCustomColumnDefinition");function Jme(e,t){let n;return e==="TableColumnActionIntentBased"?n=Fx(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=ln(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===hr.UIAnnotationTypes.DataFieldForAction?n=ln(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=ln(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}s(Jme,"getActionId");function TI(e,t,n,r,i){let o,a=n.lineItemId===Ke.DefinitionName.LineItems?"":"ObjectPage",c=Jme(r,n);r==="FooterAction"||r==="FooterActionIntentBased"?(o="Action",r="FooterAction"):r==="TableColumnAction"||r==="TableColumnActionIntentBased"?o="TableColumnAction":(o=a!==""?`${a}${r}`:"Action",r="ToolBarAction");let l=`${a}${r}<${c}>`,u=gf(n.lineItemRecord,n.entityType);t.properties[c]={$ref:he+l},t.properties[c][Ke.SchemaTag.propertyIndex]=i;let{key:f,ns:p}=Hh(n.lineItemRecord.Action,!0);e.definitions[o]?(e.definitions[l]={...JSON.parse(JSON.stringify(e.definitions[o])),description:u,keys:[{name:"Action",value:f}],annotationPath:`${n.lineItemPath}/${i}`},p&&(e.definitions[l][Ke.SchemaTag.target]=p)):(e.definitions[l]={type:"object",properties:{},description:u,additionalProperties:!1},e.definitions[l][Ke.SchemaTag.isViewNode]=!0,e.definitions[l][Ke.SchemaTag.keys]=[{name:Ke.SchemaKeyName.action,value:f}],p&&(e.definitions[l][Ke.SchemaTag.target]=p),e.definitions[l][Ke.SchemaTag.annotationPath]=`${n.lineItemPath}/${i}`)}s(TI,"handleActionRecord");function Yme(e,t,n){e&&t.Inline===!0&&(t.$Type===hr.UIAnnotationTypes.DataFieldForAction||t.$Type===hr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===hr.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===hr.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}s(Yme,"getColumnActionType");function qG(e,t){let n=[];if(!(e.$Type!==hr.UIAnnotationTypes.DataFieldForAction&&e.$Type!==hr.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===hr.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===hr.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===hr.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===hr.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),Yme(t,e,n),n}s(qG,"getActionType");function UG(e,t,n){let r=Fx(e.lineItemRecord);if(r){let i=t.definitions[e.lineItemId];i.properties[r]={$ref:he+Ke.DefinitionName.TableColumn,description:gf(e.lineItemRecord,e.entityType)},i.properties[r][Ke.SchemaTag.propertyIndex]=n,i.properties[r][Ke.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,$v(i.properties[r],e.lineItemRecord),YG(e.lineItemRecord,i.properties,r)}}s(UG,"generateGenericColumn");function Xme(e,t,n,r,i,o,a){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{TI(t,n,r,e,i);break}case"FooterAction":case"FooterActionIntentBased":{o&&TI(t,o,r,e,i);break}case"TableColumnAction":case"TableColumnActionIntentBased":{TI(t,t.definitions[a],r,e,i);break}case"ObjectPageTableColumnAction":UG(r,t,i)}}s(Xme,"handleAnyAction");function Lv(e,t){let n=t.value;return n.includes(Ke.UIVOCABULARYALPHADOT+e)?n.replace(Ke.UIVOCABULARYALPHADOT,""):""}s(Lv,"retrieveNameWithoutVocabularyFromVisualization");function Ff(e,t,n,r,i,o){let a=!!i;i=i||Ke.DefinitionName.LineItems;let{actions:c,footerActions:l,lineItemPath:u}=JG(e,t,n,r,i);if(n){let f=0;n.forEach(p=>{let d={lineItemPath:u,lineItemRecord:p,lineItemId:i,entityType:r},h=qG(p,a);h?h.forEach(m=>{Xme(m,t,c,d,f,l,i)}):UG(d,t,f),f++})}o&&(t.definitions[i].properties.custom={$ref:`${he}${o}`})}s(Ff,"addLineItemsType");function zme(e,t,n){var i,o;let r=(o=(i=e.definitions[n])==null?void 0:i.properties)==null?void 0:o.leadingProperty;if(r){let a=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];r.enum=a==null?void 0:a.reduce((c,l)=>(c.includes(l.name)||c.push(l.name),c),[])}}s(zme,"addListReportLeadingProperties");function Qme(e,t,n,r){var a,c,l,u,f,p;let i=(c=(a=e.definitions[t])==null?void 0:a.properties)==null?void 0:c.tabKey;if(!n){r&&(i.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",i.enum=[r]);return}let o=(f=(u=(l=n.component)==null?void 0:l.settings)==null?void 0:u.quickVariantSelectionX)==null?void 0:f.variants;if(o){let d=[];for(let h in o){let m=(p=o[h])==null?void 0:p.key;m!==void 0&&!d.includes(m)&&d.push(m)}ws(d,i)}}s(Qme,"addTabkeyEnum");function Fv(e,t,n,r,i){var a,c;if(!t||!n||n.startsWith("${"))return;let o=[];t.forEach(l=>{let u=l.dataSourceUri.split("webapp")[1];if(u&&u.indexOf(".fragment.xml")>0){let f=JSON.parse((0,VG.xml2json)(l.fileContent,{compact:!0}))["core:FragmentDefinition"];if(r==="fragmentName"&&(!f||f.Column||f["table:Column"]||f["table:AnalyticalColumn"])||r==="cellsFragmentName"&&(!f||!f.Column&&!f["table:Column"]&&!f["table:AnalyticalColumn"]&&!f["smartfilterbar:ControlConfiguration"])){u=u.replace(new RegExp("\\"+MG.sep,"g"),"/");let p=n+u.split(".fragment.xml")[0].replace(/\//g,".");o.push(p)}}}),ws(o,(c=(a=e.definitions[i])==null?void 0:a.properties)==null?void 0:c[r])}s(Fv,"addFragmentEnum");function Lf(e,t,n,r,i,o=Ke.DefinitionName.CustomColumns,a=Ke.DefinitionName.CustomColumn,c){Kme(e,o,a),zme(e,t,a),Qme(e,a,n,c);let l=r&&r["sap.app"]&&r["sap.app"].id;Fv(e,i,l,"fragmentName",a),Fv(e,i,l,"fragmentName",Ke.DefinitionName.CustomColumn),Fv(e,i,l,"cellsFragmentName",a),Fv(e,i,l,"cellsFragmentName",Ke.DefinitionName.CustomColumn)}s(Lf,"addTableColumnExtensions");function BG(e,t){for(let n of t){let r=e.indexOf(n);r!==-1&&e.splice(r,1)}}s(BG,"removeElementsFromEnum");function jv(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let r=e.definitions.SelectionFields,i=Os(n==null?void 0:n.fullyQualifiedName,hr.UIAnnotationTerms.SelectionFields);if(i&&(r[Ke.SchemaTag.annotationPath]=i),!t)return;let o=0;t.forEach(a=>{let c=a.value,l=`SelectionField<${ln(a.value)}>`,u=kl(a);a.type==="PropertyPath"&&(c=Rb(a,n)),r.properties[a.value]={$ref:he+l},r.properties[a.value][Ke.SchemaTag.propertyIndex]=o,e.definitions[l]={type:"object",description:c,additionalProperties:!1},e.definitions[l][Ke.SchemaTag.isViewNode]=!0,e.definitions[l][Ke.SchemaTag.annotationType]=a==null?void 0:a.type,e.definitions[l][Ke.SchemaTag.dataType]=u,e.definitions[l][Ke.SchemaTag.keys]=[{name:Ke.SchemaKeyName.value,value:`${a.value}`}],e.definitions[l][Ke.SchemaTag.annotationPath]=`${r[Ke.SchemaTag.annotationPath]}/${o}`,e.definitions[l].properties={},o++})}s(jv,"addSelectionFields");function GG(e){return!!e.navigationProperties.find(n=>n.name==="DraftAdministrativeData")}s(GG,"isDraftEnabled");function jf(e,t=!1,n){let r=Ke.DefinitionName.HeaderActionsStandard,i=Ke.DefinitionName.HeaderActionsStandard,o=Ke.DefinitionName.HeaderActionStandard;t&&(r=Ke.DefinitionName.GenericActions,i=Ke.DefinitionName.HeaderActions,o=Ke.DefinitionName.ObjectPageHeaderActionStandard);let a=e.definitions[r],c=e.definitions[i];c[Ke.SchemaTag.isViewNode]=!0,c.description="Actions",Object.entries((n||a).properties).forEach(([u,f])=>{let p=f.$ref.split(he)[1],d=`${o}<${p}>`;c.properties[u]={$ref:`${he}${d}`},e.definitions[d]=e.definitions[p],e.definitions[p][Ke.SchemaTag.actionType]=Ke.ActionType.Standard})}s(jf,"addStandardHeaderActions");function HG(e,t){let n=e.definitions[Ke.DefinitionName.ObjectPageFooterActions];for(let r in n.properties){let i=n.properties[r].$ref.split(he)[1],o=`${Ke.DefinitionName.ObjectPageFooterActionStandard}<${i}>`;t.properties[r]={$ref:`${he}${o}`},e.definitions[o]=e.definitions[i],e.definitions[i][Ke.SchemaTag.actionType]=Ke.ActionType.Standard}}s(HG,"addStandardFooterActionsOP");function WG(e){var r,i,o;let t=(r=e.entitySet)==null?void 0:r.entityType,n=(i=t==null?void 0:t.annotations)==null?void 0:i.UI;if(typeof n!="object"||Object.keys(n).length===0){let a=t?ee.t("NOUIANNOTATIONS",{entityType:t.name}):ee.t("NOENTITYTYPE4SET",{entitySetName:(o=e.entitySet)==null?void 0:o.name});je(e.logger,{severity:Ke.LogSeverity.Error,message:a})}return{entityType:t,uIAnnotations:n}}s(WG,"getUIAnnotationForEntitySet");function Zme(e,t,n){let r;if(t){let i=t.includes(hr.UIAnnotationTerms.SelectionPresentationVariant),o=!i&&t.includes(hr.UIAnnotationTerms.PresentationVariant);if(i||o){let a=t.replace(Ke.UIVOCABULARYDOT,""),c=e[a];c?o?r=c:(r=c.PresentationVariant,r&&r.fullyQualifiedName.includes("SelectionPresentationVariant")&&(r=e.PresentationVariant)):(je(n,{severity:Ke.LogSeverity.Warning,message:ee.t("NOANNOTATIONFORPATH",{annotationPath:t})}),i&&(r=e.PresentationVariant))}else r=e.PresentationVariant}else r=e.PresentationVariant;return r}s(Zme,"getPresentationVariantForLineItem");function KG(e,t,n){if(dr(t,"annotationPath",n))return;let r=Zme(e,t==null?void 0:t.annotationPath,n),i=(r==null?void 0:r.Visualizations)||[],o="";i.some(function(c){return o=Lv("LineItem",c),o}),o=o||"LineItem";let a=e[o];return a||je(n,{severity:Ke.LogSeverity.Warning,message:ee.t("NOLINEITEMFORPATH",{annotationPath:o})}),a}s(KG,"getLineItemAnnotation");function eye(e){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":return"Toolbar";case"FooterAction":case"FooterActionIntentBased":return"Footer";case"TableColumnAction":case"TableColumnActionIntentBased":return"Column";case"ObjectPageTableColumnAction":return}}s(eye,"getTargetFromActionType");function Dv(e,t,n,r,i,o){let a=[];return t.forEach(c=>{let l=c.$Type===hr.UIAnnotationTypes.DataField,u=DG(c,i)||"",f=gf(c,n),p=l?void 0:qG(c,o);if(p){let d=c.Label?void 0:{type:Ke.PropertyMessageType.Warning,text:ee.t("NOLABELFORBUTTON")};p.forEach(h=>{let b={isAction:!0,target:eye(h),stableIdPart:u,description:f,dataField:c};d&&(b.message=d),a.push(b)})}else{let d={isAction:!1,target:"Column",stableIdPart:u,description:f,dataField:c};a.push(d)}}),{name:e,dataFieldInfos:a}}s(Dv,"getLineItemInfo");function tye(e,t,n,r){if(e===be.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case gn.UIAnnotationTypes.DataField:case gn.UIAnnotationTypes.DataFieldForAnnotation:case gn.UIAnnotationTypes.DataFieldWithNavigationPath:case gn.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[r].properties=t.definitions.Field.properties;break}}else if(e===be.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case gn.UIAnnotationTypes.DataField:case gn.UIAnnotationTypes.DataFieldForAnnotation:case gn.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[r].properties=t.definitions.Field.properties;break}}}s(tye,"copyFieldProperties");function nye(e,t,n,r){let i=e===be.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===be.FioriElementsVersion.v2?`${i}<${n}::${r}>`:`${n}::${r}`}s(nye,"determineFieldDefinitionName");function rye(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][be.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][be.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][be.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][be.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}s(rye,"addKeysTagForDataField");function iye(e,t,n){if(e.$Type===gn.UIAnnotationTypes.DataField||e.$Type===gn.UIAnnotationTypes.DataFieldWithUrl||e.$Type===gn.UIAnnotationTypes.DataFieldWithNavigationPath)rye(e,t,n);else if(e.$Type===gn.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][be.SchemaTag.keys]=[{name:"Target",value:Lb(e.Target.value)}],t.definitions[n][be.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===gn.UIAnnotationTypes.DataFieldForAction){let r=e.Action.lastIndexOf(".");r===-1?t.definitions[n][be.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][be.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(r+1,e.Action.length)}],t.definitions[n][be.SchemaTag.target]=e.Action.substring(0,r))}else e.$Type===gn.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][be.SchemaTag.keys]=[{name:be.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][be.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][be.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}s(iye,"addKeysTagToField");function XG(e,t,n,r,i,o,a,c=!0){var p;let l=JB(n),u=a===be.FioriElementsVersion.v2&&l&&l.includes("::")?l.split("::").splice(1).join("::"):l,f=nye(a,l,r,u);if(!(!n||!n.$Type)){if(n.$Type===gn.UIAnnotationTypes.DataFieldForAction||n.$Type===gn.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(c&&e===be.SectionType.Section){let d=ln(`${e}${be.DefinitionName.Actions}<${r}>`),h=t.definitions[d].properties[u]={$ref:`${he}${f}`};h[be.SchemaTag.propertyIndex]=parseInt(i)}}else{let d=ln(`${e}${be.DefinitionName.Fields}<${r}>`);t.definitions[d].properties[u]={$ref:`${he}${f}`,propertyIndex:parseInt(i)}}t.definitions[f]={type:"object",properties:{},description:gf(n,o.entityType),additionalProperties:!1},iye(n,t,f),t.definitions[f][be.SchemaTag.annotationPath]=`/${o.entityType.fullyQualifiedName}/${n.fullyQualifiedName.split(o.entityType.fullyQualifiedName)[1]}`,t.definitions[f][be.SchemaTag.annotationType]=n.$Type,t.definitions[f][be.SchemaTag.isViewNode]=!0,$v(t.definitions[f],n),tye(a,t,n,f),n.$Type===gn.UIAnnotationTypes.DataFieldForAction&&((p=t.definitions)!=null&&p.FormAction)&&(t.definitions[f].properties=t.definitions[be.DefinitionName.FormAction].properties)}}s(XG,"addField");function sye(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}s(sye,"determineTargetIdOfForm");function oye(e,t,n,r,i,o=!0){var u;if(!e.target)return;let a=ln(`${t}${be.DefinitionName.Form}<${r}>`),c=ln(`${t}${be.DefinitionName.Fields}<${r}>`),l=ln(`${t}${be.DefinitionName.Actions}<${r}>`);if(n.properties.form={$ref:`${he}${a}`},t===be.SectionType.Section&&o?(n.definitions[a]={type:"object",properties:{actions:{$ref:`${he}${l}`},fields:{$ref:`${he}${c}`}},description:"Form",additionalProperties:!1},n.definitions[l]={type:"object",properties:{},description:"Actions",additionalProperties:!1},n.definitions[l][be.SchemaTag.isViewNode]=!0):n.definitions[a]={type:"object",properties:{fields:{$ref:`${he}${c}`}},description:"Form",additionalProperties:!1},n.definitions[a][be.SchemaTag.isViewNode]=!0,(u=e.entityType)!=null&&u.name&&(n.definitions[a][be.SchemaTag.annotationPath]=Os(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier)),n.definitions[c]={type:"object",properties:{},description:"Fields",additionalProperties:!1},n.definitions[c][be.SchemaTag.isViewNode]=!0,e.base===be.FacetBase.Identification)for(let f in e.target){let p=e.target[f];p&&XG(t,n,p,r,f,e,i,o)}else for(let f in e.target.Data){let p=e.target.Data[f];XG(t,n,p,r,f,e,i)}}s(oye,"addFieldsToFormDefinition");function aye(e,t,n){var r,i;if(e.target){let o=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][be.SchemaTag.keys]=[{name:be.SchemaKeyName.target,value:o.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][be.SchemaTag.target]=(r=e.target.fullyQualifiedName)==null?void 0:r.split("@")[0]}t.definitions[n][be.SchemaTag.isViewNode]=!0,(i=e.entityType)!=null&&i.name&&(t.definitions[n][be.SchemaTag.annotationPath]=Os(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}s(aye,"addTagsToFormDefinition");function zG(e,t,n,r,i,o){if(!t.target)return;let a=sye(t),c=ln(`${e}${be.DefinitionName.Form}<${a}>`),l=ln(`${e}${be.DefinitionName.Fields}<${a}>`),u=ln(`${e}${be.DefinitionName.Actions}<${a}>`),f=!(t.base===be.FacetBase.Identification&&o.indexOf("#")<0);return n.properties.form={$ref:`${he}${c}`},e===be.SectionType.Section&&f?(r.definitions[c]={type:"object",properties:{actions:{$ref:`${he}${u}`},fields:{$ref:`${he}${l}`}},description:"Form",additionalProperties:!1},r.definitions[u]={type:"object",properties:{},description:"Actions",additionalProperties:!1},r.definitions[u][be.SchemaTag.isViewNode]=!0):r.definitions[c]={type:"object",properties:{fields:{$ref:`${he}${l}`}},description:"Form",additionalProperties:!1},aye(t,r,c),r.definitions[l]={type:"object",properties:{},description:"Fields",additionalProperties:!1},r.definitions[l][be.SchemaTag.isViewNode]=!0,oye(t,e,r,a,i,f),a}s(zG,"handleForm");function cye(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,r=e;if(n&&t){let i=n.replace("SAP__",""),o=t.references.find(a=>a.alias===i);o&&(r=e.replace(n,o.namespace))}return r}s(cye,"replaceAlias");function SI(e,t){let n=cye(e.Action,t),r=n,i=n.indexOf("(");i>0&&(r=n.substring(0,i)),i=r.lastIndexOf("/"),i===-1&&(i=r.lastIndexOf("."));let o,a,c;return i>-1?(o=r.substring(i+1),c=r.substring(0,i),a=`${r.substring(0,i)}::${o}`):(o=r,c=e.fullyQualifiedName.split("@")[0],o&&o!==""&&(a=`${c.substring(0,c.length-1)}::${o}`)),{actionName:o,actionId:a,namespace:c}}s(SI,"getActionNameAndId");function QG(e,t){var n,r;for(let i in e){let o=e[i];return((n=o.component)==null?void 0:n.name)===be.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((r=t.entitySet)==null?void 0:r.name)===o.entitySet:QG(o.pages,t)}}s(QG,"isFirstObjectPage");function ZG(e,t,n,r){var l,u,f;e.definitions[be.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${be.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${he}${be.DefinitionName.ObjectPageFooter}`},e.definitions[be.DefinitionName.ObjectPageFooter].properties[be.PropertyName.actions]={$ref:`${he}${be.DefinitionName.FooterActions}`};let i=e.definitions[be.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};i[be.SchemaTag.isViewNode]=!0;let o=zs(be.UIVOCABULARY,t.serviceAVT),a=(l=t.entitySet)==null?void 0:l.entityType,c=o&&((f=(u=a==null?void 0:a.annotations)==null?void 0:u[o])==null?void 0:f.Identification);if(c){let p=c.fullyQualifiedName.replace(`@${gn.UIAnnotationTerms.Identification}`,`/@${gn.UIAnnotationTerms.Identification}`);i[be.SchemaTag.annotationPath]=`/${p}`,c.forEach((d,h)=>{if(d.Determining&&d.$Type===gn.UIAnnotationTypes.DataFieldForAction){let{actionName:m,actionId:b}=SI(d,t.serviceAVT),T=d.Label||m,I=ln(`${be.DefinitionName.ObjectPageFooterAction}<${b}>`);e.definitions[be.DefinitionName.ObjectPageFooterAction]?e.definitions[I]={...JSON.parse(JSON.stringify(e.definitions[be.DefinitionName.ObjectPageFooterAction])),description:T,annotationPath:`/${p}/${h}`}:(e.definitions[I]={type:"object",properties:{},description:T},e.definitions[I][be.SchemaTag.isViewNode]=!0,e.definitions[I][be.SchemaTag.annotationPath]=`/${p}/${h}`),i.properties[b]={$ref:`${he}${I}`}}})}else a&&(i[be.SchemaTag.annotationPath]=`/${a.fullyQualifiedName}/@${gn.UIAnnotationTerms.Identification}`);n===be.FioriElementsVersion.v2&&QG(r,t)&&!GG(a)&&HG(e,i),delete e.definitions[be.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${be.DefinitionName.ObjectPageFooter}<${be.DefinitionName.ObjectPageFooterActions}>`]}s(ZG,"addFooterActions");function eH(e,t,n,r,i=!1){var f,p;let o=be.DefinitionName.HeaderActions,a=e.definitions[o];e.definitions[be.DefinitionName.ObjectPageHeader].properties[be.PropertyName.actions]={$ref:`${he}${o}`};let c=e.definitions[o]={type:"object",properties:{},description:"Actions",additionalProperties:!1};c[be.SchemaTag.isViewNode]=!0;let l=zs(be.UIVOCABULARY,n),u=l&&((p=(f=t==null?void 0:t.annotations)==null?void 0:f[l])==null?void 0:p.Identification);u?(c[be.SchemaTag.annotationPath]="/"+u.fullyQualifiedName.replace(`@${gn.UIAnnotationTerms.Identification}`,`/@${gn.UIAnnotationTerms.Identification}`),u.forEach(r(t,e,u,c,n))):t&&(c[be.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${gn.UIAnnotationTerms.Identification}`),i&&jf(e,!0,a),delete e.definitions[be.DefinitionName.GenericActions],delete e.definitions[`${be.DefinitionName.ObjectPageHeader}<${be.DefinitionName.GenericActions}>`]}s(eH,"addHeaderActions");function tH(e,t){e.properties.header={$ref:`${he}${be.DefinitionName.ObjectPageHeader}`},e.definitions[be.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${be.DefinitionName.ObjectPageHeader}<${be.DefinitionName.GenericActions}>`])),t&&(e.definitions[be.DefinitionName.ObjectPageHeader][be.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${gn.UIAnnotationTerms.HeaderInfo}`)}s(tH,"addCommonHeaderSchema");function nH(e,t){return e.entityType?t.entitySets.find(n=>n.entityType.name===e.entityType.name||n.name===e.entityType.name):void 0}s(nH,"determineEntitySetOfFacet");var Ns=require("@sap-ux/vocabularies-types/vocabularies/UI");var fn=me(Pe());function ws(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}s(ws,"addEnumToSchema");function EI(e,t){var i;let n=[],r=(i=e==null?void 0:e.annotations)==null?void 0:i.UI;if(r)for(let o in r){let a=r[o];if(t.indexOf(a.term)>-1){let c=a.qualifier?`${a.term}#${a.qualifier}`:`${a.term}`;n.indexOf(c)===-1&&n.push(c)}}return n}s(EI,"getListOfValidAnnotations");function kv(e,t,n){let r=EI(e,t);r.length>0&&ws(r,n)}s(kv,"addEnumForValidAnnotations");function Mv(e,t,n){let r=t.definitions[n].properties.annotationPath,i=[Ns.UIAnnotationTerms.SelectionVariant,Ns.UIAnnotationTerms.SelectionPresentationVariant];kv(e,i,r)}s(Mv,"addEnumForSingleTabVariant");function rH(e,t,n){var o;let r=(o=e.definitions[t])==null?void 0:o.properties.annotationPath,i=[Ns.UIAnnotationTerms.SelectionVariant,Ns.UIAnnotationTerms.SelectionPresentationVariant];kv(n.entityType,i,r)}s(rH,"addEnumForMultiTabVariant");function iH(e,t,n){let r=t.definitions[n].properties.entitySet,i=[];e.entitySets.forEach(o=>{i.push(o.name)}),ws(i,r)}s(iH,"addEnumForVariantEntitySet");function sH(e,t,n,r){let i=n.map(o=>{let a=r.find(l=>!!o[l]);return{const:o[a],...o.label&&{description:o.label},...o.custom&&{custom:o.custom}}});if(i.length){e.definitions.RelatedFacetKeys={type:"string",oneOf:i};for(let o of t){let a=e.definitions[o],c=a.properties.relatedFacet;a.properties.relatedFacet={anyOf:[{$ref:he+"RelatedFacetKeys"},c]}}}}s(sH,"addDefinitionForRelatedFacetKeys");function lye(e){return e.replace("#","::")}s(lye,"getFacetKeyInSchema");function oH(e,t){return`${e}<${lye(t)}>`}s(oH,"getFacetDefinitionKey");function uye(e,t,n,r=!0,i){let o=t;if(r&&(o=oH(i||e,t)),e&&e!==o)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[o]=a}catch{throw new Error(ee.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[o]}s(uye,"parseSchemaDefinition");function JG(e,t,n,r,i){let o;t.definitions[i]={type:"object",properties:{},description:"Columns"},t.definitions[i].additionalProperties=!1,t.definitions[i][fn.SchemaTag.isViewNode]=!0;let a=e?fn.DefinitionName.ObjectPageToolBar:fn.DefinitionName.ToolBar,c=`${a}<${i}>`;try{t.definitions[c]=JSON.parse(JSON.stringify(t.definitions[`${a}`]))}catch{throw new Error(ee.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${a}`}))}let l=`Actions<${ln(i)}>`;t.definitions[c].properties.actions.$ref=he+l;let u=e?fn.DefinitionName.ObjectPageToolBarActions:fn.DefinitionName.Actions,f;try{f=t.definitions[l]=JSON.parse(JSON.stringify(t.definitions[u])),f.properties={},f.additionalProperties=!1}catch{throw new Error(ee.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let p,d;if(i===fn.DefinitionName.LineItems&&t.properties.footer){d=`${fn.DefinitionName.Footer}<${i}>`,t.properties.footer.$ref=`${he}${d}`;try{t.definitions[d]=JSON.parse(JSON.stringify(t.definitions[fn.DefinitionName.GenericFooter]))}catch{throw new Error(ee.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:fn.DefinitionName.GenericFooter}))}let h=`${fn.DefinitionName.FooterActions}<${ln(i)}>`;t.definitions[d].properties.actions.$ref=he+h;try{p=t.definitions[h]=JSON.parse(JSON.stringify(t.definitions[fn.DefinitionName.Actions]))}catch{throw new Error(ee.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:fn.DefinitionName.Actions}))}p.properties={},p.additionalProperties=!1}return n&&(o=Os(r==null?void 0:r.fullyQualifiedName,n.term,n.qualifier),o&&(t.definitions[i][fn.SchemaTag.annotationPath]=t.definitions[c][fn.SchemaTag.annotationPath]=o,p&&(t.definitions[d][fn.SchemaTag.annotationPath]=o))),{actions:f,footerActions:p,lineItemPath:o}}s(JG,"addCommonLineItemDefinitions");function aH(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}s(aH,"getDataTypeFromAnnotation");function Vv(e){var n,r,i;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=(r=(n=e.Value)==null?void 0:n.$target)==null?void 0:r.type.replace("Edm.",""):(i=e==null?void 0:e.$Type)!=null&&i.startsWith("com.sap.vocabularies.")&&(t=aH(e.$Type)),t}s(Vv,"determineDataTypeOfTarget");function kl(e){var n,r,i;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=Vv((r=e.Target)==null?void 0:r.$target):e.$target?t=e.$target.type.replace("Edm.",""):(i=e.$Type)!=null&&i.startsWith("com.sap.vocabularies.")?t=aH(e.$Type):e.type&&(t=e.type),t}catch{return t}}s(kl,"determineDataType");function $v(e,t){let n=kl(t);n&&(e[fn.SchemaTag.dataType]=n)}s($v,"addDataTypeToDefinition");function fye(e,t){return`${he}${oH(e,t)}`}s(fye,"getFacetDefinitionLink");function PI(e,t,n,r,i,o,a=""){let c=`ObjectPage${i}${e.base}${a}`,l=`ObjectPage${o}${e.base}${a}`;n.properties[t]={$ref:fye(o?l:c,t)};let u=uye(o?l:c,t,r,!0,o?l:void 0);zd(e,u,t),u[fn.SchemaTag.annotationPath]=e.annotationPath,u[fn.SchemaTag.isViewNode]=!0}s(PI,"handleAddressContact");function Hh(e,t){let n=e,r;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let i=n.indexOf("/"),o=n.lastIndexOf(".");r=i>0?n.substring(0,i):n.substring(0,o),n=i>0?n.substring(i+1):n.substring(o+1)}return r||(r=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:r}}s(Hh,"getActionKey");function pye(e){var r,i,o;let t,n;if(e.Value)t=[{name:fn.SchemaKeyName.value,value:bl(e.Value)}];else if(e.$Type===Ns.UIAnnotationTypes.DataFieldWithAction||e.$Type===Ns.UIAnnotationTypes.DataFieldForAction){let{key:a,ns:c}=Hh(e.Action,!0);t=[{name:fn.SchemaKeyName.action,value:a}],n=c}else if(e.$Type===Ns.UIAnnotationTypes.DataFieldForAnnotation){let{key:a}=Hh(e.Target.value,!1);t=[{name:fn.SchemaKeyName.target,value:Lb(a)}],n=(o=(i=(r=e.Target)==null?void 0:r.$target)==null?void 0:i.fullyQualifiedName)==null?void 0:o.split("@")[0]}else if(e.$Type===Ns.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Ns.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let a=typeof e.Action=="string"?e.Action:e.Action.path,{key:c,ns:l}=Hh(a,!0);t=[{name:"SemanticObject",value:e[fn.SchemaKeyName.semanticObject]},{name:"Action",value:c}],n=l}return n=n||void 0,{keys:t,target:n}}s(pye,"getKeysAndTargetForLineItemRecord");function AI(e,t,n=!0){try{let{keys:r,target:i}=pye(e);r&&(t[fn.SchemaTag.keys]=r),n&&i&&(t[fn.SchemaTag.target]=i)}catch{return}}s(AI,"addKeyToElement");function YG(e,t,n){AI(e,t[n])}s(YG,"addKeyToDefinition");var Df=me(Pe());var cH=[{version:"1.144",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.144","UI5-1.145","UI5-1.146","UI5-1.147","UI5-1.148","UI5-1.149"]},{version:"1.142",distTag:["UI5-1.142","UI5-1.143"]},{version:"1.139",distTag:["UI5-1.139","UI5-1.140","UI5-1.141"]},{version:"1.136",distTag:["UI5-1.136","UI5-1.137","UI5-1.138"]},{version:"1.124",distTag:["UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130","UI5-1.131","UI5-1.132","UI5-1.133","UI5-1.134","UI5-1.135"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107","UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var uH="1.71.156";var fH={name:"@sap/ux-specification",version:uH,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -p copy-json-schemas htmlV2 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -s htmlV2 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/schema/index.ts ","copy-json-schemas":'cpy "schemas/**" dist/schemas',"copy-templates":'cpy "src/sync/v2/export/templates/**" dist/templates --flat',deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel","validity-report":"ts-node ./scripts/generate-validity-report.ts",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",lint:"eslint .","lint:summary":"eslint . -f summary","lint:fix":"eslint . --fix","lint:report":"eslint . -f multiple","lint:report:jslint":"eslint . -o reports/lint/eslint.jslint.xml -f jslint-xml",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"node --max-old-space-size=4096 ./node_modules/.bin/jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -s htmlV2 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.43.28","@sap-ux/vocabularies-types":"0.15.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.21","@sap-ux/edmx-parser":"0.10.0","@sap-ux/project-access":"1.36.3","@sap/ux-specification-types":"1.71.156","@types/d3":"7.4.3","@types/jquery":"3.5.34","@types/json-schema":"7.0.15","@types/mem-fs":"1.1.5","@types/mem-fs-editor":"7.0.1","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.16.1","cpy-cli":"7.0.0",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10","eslint-formatter-checkstyle":"9.0.1",excel4node:"1.8.2",i18next:"25.8.18",jquery:"3.7.1",jsdom:"25.0.1","jsonpath-plus":"10.4.0","mem-fs":"2.1.0","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.8.1","typescript-json-schema":"0.67.1","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var Qa=class Qa{constructor(){Qa.distTagsOfSpec.length===0&&(Qa.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Qa.distTagsOfSpec=[]}getSpecVersion(){return uH}getDistTagsOfVersion(){let t=[],n=cH,r=this.getSpecVersion();if(r)if(r.startsWith("9.9.9"))t=n[0].distTag;else{r=r.substring(0,r.lastIndexOf("."));let i=n.find(o=>o.version.startsWith(r));i&&(t=i.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let i=ee.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});je(n,{severity:Df.LogSeverity.Info,message:i,location:{path:Df.MANIFESTPATH}});return}let r=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(Qa.distTagsOfSpec.findIndex(i=>i.endsWith(r))===-1){let i=ee.t("WRONGMINUI5VERSION",{minUI5Version:t});je(n,{severity:Df.LogSeverity.Warning,message:i,location:{path:Df.MANIFESTPATH}})}}};s(Qa,"DistTagEvaluator"),Qa.distTagsOfSpec=[];var Wh=Qa;var at=me(Pe());var Ln=me(Pe());var $i=me(Pe());var xI=class xI{constructor(t,n,r,i,o,a,c){this.unhandledControllers=[];let l=ar($i.SchemaType.Application);this.app={$schema:l.path,id:t["sap.app"].id,pages:i,home:r,target:{fioriElements:o,odata:o===$i.FioriElementsVersion.v2?$i.OdataVersion.v2:$i.OdataVersion.v4},...a&&{settings:a}},this.schemas=n,this.logger=c}createConfigFiles(){let t={},n={},r;for(let o in this.app.pages)if(r=this.app.pages[o],r.config){let a=r.config;if(r.pageType!==$i.PageType.CustomPage){let c=ar(r.pageType,r.entitySet);if(this.schemas[c.filename])a.$schema=c.path;else{let l=ar(r.pageType);a.$schema=l.path}t[`${$i.DirName.Pages}/${o}.json`]=a}}let i=JSON.parse(JSON.stringify(this.app));for(let o in i.pages)delete i.pages[o].config;return n[$i.FileName.App]=i,{appConfig:n,pageConfigs:t}}};s(xI,"AppProvider");var $f=xI;var Ft=me(Pe());var dH=me(Kd());var Yr=me(Pe());function OI(e,t,n,r){if(t.controlType===Yr.ControlType.TableColumn||t.controlType===Yr.ControlType.Button){let i=t.controlId.split("-"),o=i[i.length-1],a=t.controlType===Yr.ControlType.TableColumn?o.split("template:::TableColumn:::"):[o],c=r?a[a.length-1]:a[a.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Yr.VOCWITHCOLONS),l=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(l!=null&&l.startsWith("DataField")?l=l==null?void 0:l.replace("/",":2f"):l=l==null?void 0:l.replace("/","_"),l!==c&&n!==c)return;r?r[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}s(OI,"addFlexChangeToConfigTableColumn");function qv(e,t,n){var r;(r=t.controlType)!=null&&r.endsWith(Yr.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}s(qv,"addFlexChangeToConfigTable");function Uv(e,t,n,r,i="LineItems"){e.flex.forEach(o=>{var u,f,p,d,h;let a=Wr(o),c={controlId:a.controlId,propertyId:(u=a.content)==null?void 0:u.property,newValue:(f=a.content)!=null&&f.newBinding?a.content.newBinding:(p=a.content)==null?void 0:p.newValue,controlType:a.controlType,creation:a.creation},l;if(a.controlType===Yr.ControlType.TableColumn)l=e.jsonSchema.definitions.TableColumn.properties[c.propertyId];else{let m=(!t.table.type||t.table.type===Yr.v2.TableTypeV2.ResponsiveTable)&&!((d=c.controlId)!=null&&d.includes(Yr.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Yr.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;l=(h=e.jsonSchema.definitions[`${m}<${i}>`])==null?void 0:h.properties[c.propertyId]}l&&OI(t.table,c,n,r)})}s(Uv,"importFlexChangesOfColumn");function Za(e){return e.replace("/","::")}s(Za,"convertActionKey");function II(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}s(II,"convertSelector");function gye(e,t,n,r){var o,a,c,l;((a=(o=r.definitions)==null?void 0:o.ListReportFilterBar)!=null&&a.properties[t]||(l=(c=r.definitions)==null?void 0:c.AnalyticalListPageFilterBar)!=null&&l.properties[t])&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}s(gye,"addSmartFilterBarFlex");function mye(e,t){let n=Object.keys(t.definitions).filter(i=>i.startsWith(`${e}`)&&i.includes("<")),r=new Map;return n.forEach(i=>{var c;let o=mi((c=i.split("<")[1])==null?void 0:c.split(">")[0]),a=o.indexOf(":::");if(o.startsWith("DataField")&&a>-1){let l=o.split(":::"),u=l.find(d=>d.startsWith("sSemanticObject")),f=l.find(d=>d.startsWith("sAction")),p=f.split("sAction::")[1].replace(":2f","::");if(u){let d=`${u.split("::")[1]}::${p}`,h=`${l[0]}:::${u}:::${f}`;r.set(d,i),r.set(i,h)}else r.set(p,i),r.set(i,o)}else r.set(o.replace(":2f","::"),i),r.set(i,o)}),r}s(mye,"filterActions");function yye(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}s(yye,"addColumnActionConfigPart");function bye(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}s(bye,"getActionId");function vye(e,t,n,r,i){[{name:"HeaderActionStandard",configPart:e.header.actions,id:i},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:i},{name:"FooterAction",configPart:e.footer.actions,id:i&&i.includes("Determining")&&i.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:i},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:i},{name:"TableColumnAction",configPart:e.table.columns,id:i}].forEach(a=>{var l,u;let c=mye(a.name,r);if(c.has(a.id)){let f=c.get(a.id),p=(l=f.split("<")[1])==null?void 0:l.split(">")[0];a.name==="TableColumnAction"&&yye(a,e,p);let d=a.configPart[p];(u=r.definitions[f])!=null&&u.properties[t]&&d&&(d[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}s(vye,"addActionFlex");function Tye(e,t,n,r){var o;if(r.definitions.ChartSettings.properties[t]){let a=pr(e[Ft.PropertyName.chart],t);(o=a==null?void 0:a.flex)!=null&&o.importFlexValue?a.flex.importFlexValue(n,e[Ft.PropertyName.chart],t):e[Ft.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}s(Tye,"addSmartChartFlex");function Bv(e,t,n,r){var i,o;try{let a=Wr(t),c=a.content.property;if((i=a.controlId)!=null&&i.includes(Ft.PageTypeV2.ListReport)||(o=a.controlId)!=null&&o.includes(Ft.PageTypeV2.AnalyticalListPage))switch(a.controlId=II(a.controlId),a.controlType){case Ft.ControlType.SmartFilterBar:{gye(e,c,a,n);break}case Ft.ControlType.DynamicPage:{n.properties[c]&&(e[a.content.property]=a.content.newValue);break}case Ft.ControlType.Button:{let l=bye(a);l&&vye(e,c,a,n,l);break}case Ft.ControlType.SmartChart:{Tye(e,c,a,n);break}default:break}}catch(a){je(r,{severity:Ft.LogSeverity.Error,message:ee.t("FLEXERROR")},...a)}}s(Bv,"addFlex");function lr(e,t,n,r,i,o){if(!n)return;let a={},c=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let l in n.properties){let u=pr(e,l);if(u!=null&&u.manifest){let f=u.manifest.path([r],t,o);a=tr(t,f),Db(u,a,l,e),HB(c,a,f,i)}}}s(lr,"transferSettingsOfObject");function Gv(e,t){var i,o,a,c,l,u,f,p,d;let n=e[Ft.ManifestSection.generic].pages[t],r=Ft.v2.TableTypeV2.ResponsiveTable;return(i=e[Ft.ManifestSection.generic].pages[t].component)!=null&&i.settings&&((a=(o=e[Ft.ManifestSection.generic].pages[t].component.settings)==null?void 0:o.tableSettings)!=null&&a.type||(c=e[Ft.ManifestSection.generic].pages[t].component.settings)!=null&&c.tableType)?r=((f=(u=(l=n.component)==null?void 0:l.settings)==null?void 0:u.tableSettings)==null?void 0:f.type)||((p=n.component)==null?void 0:p.settings.tableType):((d=n.component)==null?void 0:d.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(r=Ft.v2.TableTypeV2.AnalyticalTable),r}s(Gv,"determineTableType");function pH(e,t,n,r,i,o,a){var c,l;if(e.customData||e["table:customData"]){let u=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,f=JSON.parse(u.substr(1,u.length)),p=e.Text&&e.Text._attributes&&e.Text._attributes.text;p||(p=e.Label&&e.Label._attributes&&e.Label._attributes.text);let d={...(c=e._attributes)!=null&&c.id?{id:(l=e._attributes)==null?void 0:l.id}:{},...p?{text:p}:{},...f,...f.columnKey?{columnKey:f.columnKey}:{},...f.columnIndex?{columnIndex:Number(f.columnIndex)}:{},...f.leadingProperty?{leadingProperty:f.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...r?{tabKey:r}:{},extensionType:o};a&&(d.cellsFragmentName=a),i.table.columns.custom||(i.table.columns.custom=[]),i.table.columns.custom.push(d)}}s(pH,"evaluateFragmentColumn");function Sye(e,t,n,r){let i;if(e===Ft.ViewTemplateType.ResponsiveTableColumnsExtension)for(let o of Object.keys(t)){let[a,c,l]=o.split("|");a===Ft.ViewTemplateType.ResponsiveTableCellsExtension&&c===n&&l===r&&(i=t[o].fragmentName)}return i}s(Sye,"determineCellsFragmentName");function Eye(e,t,n,r,i,o,a){var c;if(e[0]){let u=JSON.parse((0,dH.xml2json)(e[0].fileContent,{compact:!0}))[no];try{let f=yh(u);if(f)if((c=t[Ft.PropertyName.table])!=null&&c.columns||(t[Ft.PropertyName.table].columns={}),Array.isArray(f))for(let p of f)pH(p,n,r,i,t,o,a);else pH(f,n,r,i,t,o,a)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}s(Eye,"analyzeFilteredFragments");function Pye(e,t,n,r,i){var o;for(let a of Object.keys(e)){let c=a.split("|"),[l,u]=c,f=c[2];if(l&&u===t){let p=e[a].type?e[a].type.toLowerCase():"xml",d=e[a].fragmentName;if(!d)continue;let h=Sye(l,e,u,f),m=d.split(".");d=m[m.length-1]+Ft.FRAGMENTNAMEPART+p;let b=r.fragments.filter(T=>T.dataSourceUri.endsWith(d));try{Eye(b,n,e,a,f,l,h)}catch(T){r.logger.error(T.message)}(o=n.table.columns)!=null&&o.custom&&n.table.columns.custom.forEach(T=>{Uv(r,n,T.id,T,i)})}}}s(Pye,"processViewExtensions");function kf(e,t,n,r,i,o="LineItems"){var a,c,l;if(t.fragments&&(l=(c=(a=t.manifest[Ft.ManifestSection.ui5])==null?void 0:a.extends)==null?void 0:c.extensions)!=null&&l["sap.ui.viewExtensions"]){let u=Ft.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(r),f=t.manifest[Ft.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][u];if(!f)return;let p=i&&i.target?i.target:n.entitySet;Pye(f,p,e,t,o)}}s(kf,"addFragments");function Hv(e,t,n){if(e.header={actions:{}},n[Ft.DefinitionName.HeaderActionsStandard]){let r=n[Ft.DefinitionName.HeaderActionsStandard].properties;for(let i in r)e.header.actions[i]=t.createInstance(Ft.PageTypeV2.ListReport,i,{})}}s(Hv,"importHeaderActions");var Fs=me(Pe());var Kh="sap.suite.ui.generic.template.ListReport";var hH="sap.suite.ui.generic.template.ListReport.view.ListReport";var nn=me(Pe());function ec(e,t,n){var i;let r;for(let o in e){let a=e[o];if(No((i=a.component)==null?void 0:i.name)===nn.PageTypeV2.ObjectPage&&a.entitySet===t)return n.unshift(o),a;if(a.pages&&(r=ec(a.pages,t,n),r))return n.unshift(o),r}}s(ec,"findObjectPageV2");function Mf(e,t){var n;for(let r in e){let i=e[r];if(No((n=i.component)==null?void 0:n.name)===nn.PageTypeV2.ListReport)return t.push(r),i}}s(Mf,"findListReportPageV2");function Vf(e){if(!e.manifest[nn.ManifestSection.generic]){je(e.logger,{severity:nn.LogSeverity.Error,message:ee.t("NOFE"),location:{path:nn.MANIFESTPATH,range:[nn.ManifestSection.generic]}});return}let t=e.manifest[nn.ManifestSection.generic].pages;if(!t){je(e.logger,{severity:nn.LogSeverity.Error,message:ee.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:nn.MANIFESTPATH,range:[nn.ManifestSection.generic]}});return}return t}s(Vf,"getV2Pages");function qf(e,t,n){var r;if(!e){je(t,{severity:nn.LogSeverity.Error,message:ee.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:nn.MANIFESTPATH,range:[nn.ManifestSection.generic]}});return}if(!e.entitySet){let i=(r=e.component)==null?void 0:r.name;je(t,{severity:nn.LogSeverity.Error,message:ee.t("NOENTITYSET",{pageName:i}),location:{path:nn.MANIFESTPATH,range:[nn.ManifestSection.generic]}})}}s(qf,"checkV2Page");function Uf(e,t,n){var r;for(let i in e){let o=e[i];if(t.push(i),No((r=o.component)==null?void 0:r.name)===nn.PageTypeV2.AnalyticalListPage)return o}je(n,{severity:nn.LogSeverity.Error,message:ee.t("NOALP"),location:{path:nn.MANIFESTPATH,range:[nn.ManifestSection.generic]}})}s(Uf,"findAnalyticalListPage");function _I(e,t){let n=e.split("|");return nn.v2.SectionPosition[n[0]]&&n[1]===t}s(_I,"isAssociatedCustomSection");function gH(e,t){let n=tr(e,`sap.ui5/extends/extensions/${nn.v2.SAPUI5_VIEW_EXTENSION}/${nn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),r={};for(let i in n)_I(i,t)&&(r[i]=n[i]);return r}s(gH,"findCustomSectionExtensions");function Aye(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}s(Aye,"removeEmptySettingsOfFooter");function xye(e){var t,n,r;if((t=e.filterBar)!=null&&t.selectionFields){for(let i in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[i]).length===0&&delete e.filterBar.selectionFields[i];((r=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:r.length)===0&&delete e.filterBar.selectionFields}}s(xye,"removeEmptySettingsOfFilterBar");function Oye(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}s(Oye,"removeEmptySettingsOfToolBar");function Wv(e){Oye(e),xye(e),Aye(e)}s(Wv,"removeEmptySettings");function CI(e,t,n){var i,o;return((o=(((i=e==null?void 0:e.controlId)==null?void 0:i.split("--"))??[])[0])==null?void 0:o.endsWith(`::${t}::${n}`))??!1}s(CI,"flexChangeMatchesTemplateAndEntitySet");function Kv(e,t,n){return e.filter(r=>{let i=Wr(r);return CI(i,t,n)})}s(Kv,"filterFlexChanges");var mn=me(Pe());var yH=me(Pe());var wI={};nf(wI,{ACTION_GROUPS_ARENT_SUPPORTED:()=>gbe,ANNOERR:()=>Yye,ANNOTATIONFILE:()=>Xye,COMPONENTNOTDEFINED:()=>zye,CONDENSEDTABLELAYOUTNOEFFECT:()=>Fbe,CONTEXTPATHCOULDNOTBERESOLVED:()=>Gye,CREATEWITHDIALOGDRAFT:()=>Gbe,ENABLETABLEFILTERINPAGEVARIANTNOEFFECT:()=>jbe,ENABLETABLEFILTERINPAGEVARIANTWORKLIST:()=>Lbe,ENTITYSETNOTFOUND:()=>Bye,ENTITY_IS_ALLOWED_ONLY_FOR_CREATION_DIALOG_MODE:()=>xbe,ENTITY_NOT_ALLOWED_FOR_NON_TREE_TABLE_TYPE:()=>Abe,ENTITY_SET_NOT_ALLOWED_FOR_TABLE_TYPE:()=>Pbe,FLEXERROR:()=>abe,ILLEGALTABLETYPE:()=>vbe,INCONSISTENTSCHEMA:()=>dbe,INVALIDANCHOR:()=>cbe,INVALIDSPECFORV4:()=>Cye,INVALIDTARGETDEFINITION:()=>ube,LOADDATAONAPPLAUNCHMULTITABLE:()=>Ube,MULTITABLENORESPONSIVE:()=>Rbe,MULTITABLEONLYRESPONSIVE:()=>Nbe,NOALP:()=>Wye,NOANNOTATIONFORPATH:()=>Vye,NOBASEPATH:()=>wye,NOCHARTPROPERTY:()=>Sbe,NOCHARTS:()=>tbe,NOCREATEWITHFILTERSINWORKLIST:()=>Bbe,NODATALOADSETTINGSINWORKLIST:()=>qbe,NODATEFIELD:()=>ybe,NOENTITYSET:()=>jye,NOENTITYTYPE4SET:()=>Dye,NOFE:()=>Rye,NOFRAGMENT:()=>lbe,NOGENERICSCHEMA:()=>Fye,NOID4SECTION:()=>fbe,NOKEY4VIEW:()=>Kye,NOLABELFORBUTTON:()=>Uye,NOLINEITEMANDCHARTS:()=>nbe,NOLINEITEMFORPATH:()=>qye,NOLINEITEMS:()=>ebe,NOLR:()=>Hye,NOPAGEFORENTITYSET:()=>Lye,NOPAGES:()=>Nye,NOPRESENTATIONVARIANT:()=>$ye,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>kye,NOPRESENTATIONVARIANTFORSPV:()=>Mye,NOROUTING:()=>Qye,NOROUTINGID:()=>obe,NOTARGET:()=>sbe,NOTARGETS:()=>ibe,NOTEMPLATE:()=>Jye,NOUIANNOTATIONS:()=>Zye,NOVISUALIZATIONS:()=>rbe,PROPERTYOBSOLETE:()=>Tbe,PROPERTY_NOT_ALLOWED_FOR_TABLE_TYPE:()=>Ebe,QUICKVARIANTSELECTIONDUPLICATE:()=>Obe,QUICKVARIANTSELECTIONNOSELECTIONVARIANTANNOTATIONS:()=>Cbe,QUICKVARIANTSELECTIONNOVARIANTS:()=>wbe,QUICKVARIANTSELECTIONXNOVARIANTS:()=>Ibe,SELECTALLDEFAULTINFORESPONSIVETABLE:()=>kbe,SELECTALLDEFAULTINFOUITABLE:()=>$be,SELECTALLNOMULTISELECT:()=>Dbe,SELECTIONLIMITNOSELECTALL:()=>Vbe,SELECTIONLIMITPREREQUISIT:()=>Mbe,SHOWITEMNAVIGATIONONCHARTONLYCHART:()=>_be,TYPEERROR:()=>mbe,UNEXISTING_ANNOTATION_PATH:()=>hbe,UNKNOWNMINUI5VERSION:()=>_ye,UNRESOLVABLE_VALUE_OF_SELECTION_FIELD:()=>Hbe,WARNING_DEFAULT_ROW_COUNT_MODE:()=>bbe,WRONGMINUI5VERSION:()=>Iye,XMLPARSEFAILURE:()=>pbe,default:()=>Wbe});var Iye="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",_ye="The minUI5Version can not be determined from the pattern {{- minUI5Version}}",Cye="The given specification version cannot be used for this app, you would need to upgrade to SAPUI5 version 1.84 or higher and update the version of @sap/ux-specification accordingly.",wye="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",Nye="No pages found in manifest for app with id '{{- appId}}'",Rye="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",Fye="No generic schema found while generating page schema for {{- pageType}}",Lye="No page found in manifest for entitySet '{{- entitySet}}'",jye="No entitySet defined for page '{{- pageName}}'",Dye="No entityType could be found for the given entity set '{{- entitySetName}}'",$ye="No PresentationVariant defined for '{{- key}}'",kye="No PresentationVariant found for default SelectionPresentationVariant.",Mye="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'.",Vye="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem.",qye="No line item annotation found for path '{{- annotationPath}}'.",Uye="Button will be rendered without text due to missing label.",Bye="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",Gye="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",Hye="No page found in manifest for list report",Wye="No page found in manifest for analytical list page",Kye="View definition for manifest entry '{{- property}}' misses mandatory property 'key'.",Jye="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",Yye="Error while parsing annotation files",Xye="Annotation file: '{{- file}}'",zye="Component name is not defined for page '{{- pageName}}'",Qye="Incomplete manifest definition: no routing defined",Zye="No UI Annotation defined for entity type '{{- entityType }}'",ebe="UI.LineItem annotation has not been defined",tbe="UI.Chart annotation has not been defined",nbe="Neither UI.LineItem nor UI.Chart annotation has been defined",rbe="Empty Collection for Visualizations",ibe="Incomplete manifest definition: no targets defined",sbe="Invalid reference: annotation target '{{- target}}' not found",obe="No page found in manifest for routingId '{{- routingId}}'",abe="Error while parsing flex change",cbe="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",lbe="fragmentName is undefined for columnKey '{{- columnKey}}'",ube="Invalid routing target definition in manifest: '{{- target}}'",fbe="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",pbe="Parsing of XML file failed with error - {{- error}}",dbe="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",hbe="The annotation path doesn't exist.",gbe="Action groups aren't supported in the version you're using. Please update to SAPUI5 1.132 or higher.",mbe="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",ybe="Date setting will not be used since filter bar does not contain any date fields.",bbe="The rowCountMode is automatically set to `Auto`, if the sectionLayout is set to `Tabs` and the table is the only control within the section.",vbe="'{{- property}}' is not a valid table type.",Tbe="The '{{- property}}' property is obsolete.",Sbe="The '{{- property}}' table property is not applicable to charts.",Ebe="The '{{- propertyName}}' property was specified in the `manifest.json` file, but this property is not allowed for the '{{- tableType}}' table type.",Pbe="The '{{- entityName}}' entity set was specified in the `manifest.json` file but this entity set is not allowed for the '{{- tableType}}' table type.",Abe="The '{{- entityName}}' entity was specified in the `manifest.json` file but this entity is not allowed for the non-Tree table type.",xbe="The creationFields entity is allowed only for the CreationDialog mode.",Obe="The quickVariantSelection and quickVariantSelectionX properties must not be used together.",Ibe="The quickVariantSelectionX property is defined but contains no variants.",_be="The showItemNavigationOnChart property is only evaluated for chart views.",Cbe="At least one SelectionVariant or SelectionPresentationVariant annotation must be defined to enable quickVariantSelection.",wbe="The quickVariantSelection property specifies the showCounts property but contains no variants.",Nbe="As it is not allowed to use both responsive and non-responsive tables in a multi-view setting, type should be 'Responsive Table' here.",Rbe="As it is not allowed to use both responsive and non-responsive tables in a multi-view setting, type should be a value different from 'Responsive Table' here.",Fbe="The condensedTableLayout property does not have any effect on responsive tables.",Lbe="The enableTableFilterInPageVariant property does not have any effect in worklist applications.",jbe="The enableTableFilterInPageVariant property does not have any effect if smart variant management is switched off.",Dbe="The selectAll property can only be used when multiSelect is switched on.",$be="By default the 'Clear All' button will be shown.",kbe="The default behavior depends on the UI5 version: Prior to 1.97 and since 1.119 it is the 'Select All' checkbox, otherwise the 'Clear All' button.",Mbe="The selectionLimit property is only supported for ui tables which have enabled multiSelect.",Vbe="The selectionLimit property is only supported if selectAll is disabled.",qbe="Defining data load settings is meaningless in worklist applications.",Ube="In multi-table scenarios, you can also use the 'enableAutoBinding' property for the specific views to influence the loading behavior.",Bbe="Defining a strategy for createWithFilters is meaningless in worklist applications.",Gbe="Object creation via dialog is only supported for non-draft entity sets.",Hbe="Unresolvable value for selection field",Wbe={WRONGMINUI5VERSION:Iye,UNKNOWNMINUI5VERSION:_ye,INVALIDSPECFORV4:Cye,NOBASEPATH:wye,NOPAGES:Nye,NOFE:Rye,NOGENERICSCHEMA:Fye,NOPAGEFORENTITYSET:Lye,NOENTITYSET:jye,NOENTITYTYPE4SET:Dye,NOPRESENTATIONVARIANT:$ye,NOPRESENTATIONVARIANTFORDEFAULTSPV:kye,NOPRESENTATIONVARIANTFORSPV:Mye,NOANNOTATIONFORPATH:Vye,NOLINEITEMFORPATH:qye,NOLABELFORBUTTON:Uye,ENTITYSETNOTFOUND:Bye,CONTEXTPATHCOULDNOTBERESOLVED:Gye,NOLR:Hye,NOALP:Wye,NOKEY4VIEW:Kye,NOTEMPLATE:Jye,ANNOERR:Yye,ANNOTATIONFILE:Xye,COMPONENTNOTDEFINED:zye,NOROUTING:Qye,NOUIANNOTATIONS:Zye,NOLINEITEMS:ebe,NOCHARTS:tbe,NOLINEITEMANDCHARTS:nbe,NOVISUALIZATIONS:rbe,NOTARGETS:ibe,NOTARGET:sbe,NOROUTINGID:obe,FLEXERROR:abe,INVALIDANCHOR:cbe,NOFRAGMENT:lbe,INVALIDTARGETDEFINITION:ube,NOID4SECTION:fbe,XMLPARSEFAILURE:pbe,INCONSISTENTSCHEMA:dbe,UNEXISTING_ANNOTATION_PATH:hbe,ACTION_GROUPS_ARENT_SUPPORTED:gbe,TYPEERROR:mbe,NODATEFIELD:ybe,WARNING_DEFAULT_ROW_COUNT_MODE:bbe,ILLEGALTABLETYPE:vbe,PROPERTYOBSOLETE:Tbe,NOCHARTPROPERTY:Sbe,PROPERTY_NOT_ALLOWED_FOR_TABLE_TYPE:Ebe,ENTITY_SET_NOT_ALLOWED_FOR_TABLE_TYPE:Pbe,ENTITY_NOT_ALLOWED_FOR_NON_TREE_TABLE_TYPE:Abe,ENTITY_IS_ALLOWED_ONLY_FOR_CREATION_DIALOG_MODE:xbe,QUICKVARIANTSELECTIONDUPLICATE:Obe,QUICKVARIANTSELECTIONXNOVARIANTS:Ibe,SHOWITEMNAVIGATIONONCHARTONLYCHART:_be,QUICKVARIANTSELECTIONNOSELECTIONVARIANTANNOTATIONS:Cbe,QUICKVARIANTSELECTIONNOVARIANTS:wbe,MULTITABLEONLYRESPONSIVE:Nbe,MULTITABLENORESPONSIVE:Rbe,CONDENSEDTABLELAYOUTNOEFFECT:Fbe,ENABLETABLEFILTERINPAGEVARIANTWORKLIST:Lbe,ENABLETABLEFILTERINPAGEVARIANTNOEFFECT:jbe,SELECTALLNOMULTISELECT:Dbe,SELECTALLDEFAULTINFOUITABLE:$be,SELECTALLDEFAULTINFORESPONSIVETABLE:kbe,SELECTIONLIMITPREREQUISIT:Mbe,SELECTIONLIMITNOSELECTALL:Vbe,NODATALOADSETTINGSINWORKLIST:qbe,LOADDATAONAPPLAUNCHMULTITABLE:Ube,NOCREATEWITHFILTERSINWORKLIST:Bbe,CREATEWITHDIALOGDRAFT:Gbe,UNRESOLVABLE_VALUE_OF_SELECTION_FIELD:Hbe};function mH(e){e.addResourceBundle(e.language,"translation",wI)}s(mH,"initI18n");function gr(e="en"){ee.init({resources:{en:{translation:yH.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
315
|
-
|
|
316
|
-
`,showSupportNotice:!1}),mH(ee)}s(gr,"initI18n");var NI=class NI{constructor(t,n,r){this.controls=t,this.pages=n,this.pageTypes=r}createInstance(t,n,r,i){let o=this.controls[i]?this.controls[i]:this.controls[n];return o||(o=this.pageTypes[t][i]?this.pageTypes[t][i]:this.pageTypes[t][n]),o?Object.assign(new o,r):r}createPageInstance(t,n){let r=this.pages[t];return Object.assign(new r,n)}};s(NI,"MetadataFactory");var Jv=NI;var Xr=me(Pe());var Kbe={},Jbe={Table:Tl,ResponsiveTableWithMultiSelect:Tl,ResponsiveTableWithInlineDelete:Tl},Ybe={[Xr.v2.CardSettingsType.listCardSettings]:ch,[Xr.v2.CardSettingsType.analyticalCardSettings]:lh,[Xr.v2.CardSettingsType.stackCardSettings]:uh,[Xr.v2.CardSettingsType.linkListCardSettings]:fh,[Xr.v2.CardSettingsType.tableCardSettings]:ph},Xbe={[Xr.SAPUI5_VIEW_CLASS]:Dh,[Xr.SAPUI5_FRAGMENT_CLASS]:jh,Table:Fl,ObjectPageResponsiveTableWithMultiSelect:Fl,ObjectPageResponsiveTableWithInlineDelete:Fl},ro={[Xr.PageTypeV2.AnalyticalListPage]:Kbe,[Xr.PageTypeV2.ListReport]:Jbe,[Xr.PageTypeV2.ObjectPage]:Xbe,[Xr.PageTypeV2.OverviewPage]:Ybe},RI=class RI extends Jv{constructor(){super(Ll,wf,ro)}};s(RI,"MetadataInstanceFactoryV2");var zr=RI;function zbe(e,t,n,r,i){e.filterBar=t.createInstance(mn.PageTypeV2.ListReport,mn.DefinitionName.ListReportFilterBar,e.filterBar),lr(e.filterBar,n.manifest,r[mn.DefinitionName.ListReportFilterBar],i,n.logger)}s(zbe,"importFilterBar");function FI(e,t,n){var o;if(!e.flex)return;e.flex.forEach(a=>{var u,f,p;let c=Wr(a),l={controlId:c.controlId,propertyId:(u=c.content)==null?void 0:u.property,newValue:(f=c.content)!=null&&f.newBinding?c.content.newBinding:(p=c.content)==null?void 0:p.newValue,controlType:c.controlType,creation:c.creation};qv(n.table,l,t)});let r=t.properties.columns.$ref.split("/").pop(),i=((o=e.jsonSchema.definitions[r])==null?void 0:o.properties)||{};for(let a in i)a!=="custom"&&Uv(e,n,a)}s(FI,"importFlexChangesOfTableAndColumns");function Qbe(e,t,n,r,i){var a;let o;e?o=r.jsonSchema.definitions[e+"<LineItems>"]:o=r.jsonSchema.definitions[vf],lr(n.table,r.manifest,o,i,r.logger),FI(r,o,n),(!((a=t.LineItems)!=null&&a.properties)||Object.keys(t.LineItems.properties).filter(c=>c!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&je(r.logger,{severity:mn.LogSeverity.Error,message:ee.t("NOLINEITEMS")})}s(Qbe,"importTable");function Zbe(e,t,n,r){let i=e.jsonSchema.definitions,o=Gv(e.manifest,r);if(t.table=n.createInstance(mn.PageTypeV2.ListReport,o,t.table),Hv(t,n,i),Qbe(o,i,t,e,r),t.table.toolBar=n.createInstance(mn.PageTypeV2.ListReport,mn.DefinitionName.ToolBar,{actions:{}}),lr(t.table.toolBar,e.manifest,i[mn.DefinitionName.ToolBar],r,e.logger),i[mn.DefinitionName.ActionsLR])for(let c in i[mn.DefinitionName.ActionsLR].properties){let l=Za(c);t.table.toolBar.actions[l]=n.createInstance(mn.PageTypeV2.ListReport,mn.DefinitionName.Action),lr(t.table.toolBar.actions[l],e.manifest,i[mn.DefinitionName.Action],r,e.logger)}zbe(t,n,e,i,r),t.footer={actions:{}};let a=i[mn.DefinitionName.FooterActionsLR];if(a)for(let c in a.properties){let l=Za(c);t.footer.actions[l]=n.createInstance(mn.PageTypeV2.ListReport,mn.DefinitionName.FooterAction),lr(t.footer.actions[l],e.manifest,i[mn.DefinitionName.Action],r,e.logger)}}s(Zbe,"addSettings");function bH(e){if(gr(),e={...e,flex:Kv(e.flex,mn.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,e.entitySet)},!Vf(e))return;let n=new zr,r=n.createPageInstance(mn.PageTypeV2.ListReport),i=[],o=Mf(e.manifest[mn.ManifestSection.generic].pages,i);if(qf(o,e.logger,o==null?void 0:o.entitySet),!!o)return Zbe(e,r,n,i[0]),e.flex.forEach(a=>{Wr(a)&&Bv(r,a,e.jsonSchema,e.logger)}),kf(r,e,o,mn.PageTypeV2.ListReport),Wv(r),r}s(bH,"createListReportConfig");var De=me(Pe());var Jh=require("@sap-ux/vocabularies-types/vocabularies/UI");var tve=[De.ControlType.Avatar,De.ControlType.ObjectPageLayout,De.ControlType.DynamicPage];function nve(e,t){let n=e[0].split("--"),r=n[n.length-1];if(e[0].indexOf("::action::")>=0||e[0].startsWith("action::"))t=n[0].split("::action::")[0]||n[0].split(`${Jh.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${De.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Jh.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 i=r.split("::");i.length>1?t=i[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}s(nve,"getSingleSelectorIdPart");function rve(e){let t,n=e.split(":::");if(n.length===1)t=nve(n,t);else if(e.indexOf("sSmartTableId")>=0){for(let r of n)if(r.startsWith("sSmartTableId")){t=r.split("sSmartTableId::")[1].split("::Table")[0].split("/responsiveTable")[0].replace(`::${Jh.UIAnnotationTerms.LineItem}`,`/@${Jh.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}s(rve,"getFacetID");function ive(e,t,n){let r={},i=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(a=>{var c;try{let l=Wr(a),u=l&&((c=l.controlId)==null?void 0:c.split("--"))||[];if(l&&CI(l,De.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,t)){let f=u[1].replace(/:3a:3a/g,"::");i.exec(f)!==null&&(f=f.split("template:::TableColumn:::")[1]);let p=rve(f);f=II(f).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),r[`${f}::${l.content.property}`]={controlId:f,propertyId:l.content.property,facetId:p,newValue:l.content.newBinding!==void 0?l.content.newBinding:l.content.newValue,controlType:l.controlType,creation:l.creation}}}catch(l){je(n,{severity:De.LogSeverity.Error,message:ee.t("FLEXERROR")},...l)}}),Object.entries(r).sort((a,c)=>a[1].creation-c[1].creation).reduce((a,[c,l])=>(a[c]=l,a),{})}s(ive,"prepareFlexChanges");var sve=s(e=>{var n,r,i;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(he,"");if((r=(n=e.properties)==null?void 0:n.subsections)!=null&&r.$ref)return t=e.properties.subsections.$ref,t=t.includes("<")?t.split("<")[0]:t,t.replace(he,"");if((i=e.properties)!=null&&i.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function ove(e,t,n,r){if(Object.keys(e.properties).some(i=>i===t.propertyId))for(let i in n)i!=="custom"&&OI(r,t,i)}s(ove,"addFlexChangeToColumns");function vH(e,t,n,r,i,o){var c;let a=r.title?[r.title.replace(/@/g,"")]:[r.id.replace(/@/g,""),(c=r.id)==null?void 0:c.replace(/::@com.sap.vocabularies/g,De.VOCWITHSLASH)];for(let l in e){let u=e[l],f=u.propertyId===t,p=t==="columns"&&u.controlType===De.ControlType.TableColumn;(f||p)&&a.indexOf(u==null?void 0:u.facetId)>-1&&(o?ove(o,u,i.properties,n):qv(n,u,i))}}s(vH,"importFlexChangesOfTable");function ave(e,t){return e.facetId==="template"&&t}s(ave,"isStandardActionFlexChange");var TH=s((e,t,n=!1)=>{if(!n)return t.every(a=>e.includes(a));let r=e.indexOf(t[0]),i=e.length-r>t.length?e.length-1:void 0,o=e.slice(r,i);return o.length===t.length&&t.every(a=>o.includes(a))},"idElementChecker");function cve(e,t,n,r,i,o){var b;let a=!1,c=!1;o?(a=c=n.test(t.controlId),i&&(a=c&&r.test(t.controlId))):i&&(a=r.test(t.controlId));let l=t.controlId.split("::"),u=t.controlType===De.ControlType.GroupElement&&c,f=((b=t.facetId)==null?void 0:b.includes(De.ACTIONTITLEPREFIX))&&!i&&a,p=i&&TH(l,i.split("::"))&&a,d=e.title&&TH(l,e.title.split("::"),!0),h=!t.facetId&&tve.includes(t.controlType),m=ave(t,c);return u||f||p||d||h||m}s(cve,"matchSelector");function lve(e,t,n,r,i,o){var l;let a=new RegExp(`.*${o}`),c=new RegExp(`.*${i}`);for(let u in n){let f=n[u];if(f.propertyId!==r||f.controlType!==((l=e.properties[f.propertyId])==null?void 0:l[De.SchemaTag.controlType]))continue;cve(e,f,a,c,i,o)&&(t[r]=f.newValue)}}s(lve,"importFlexChanges");function uve(e,t,n,r){if(e&&t)for(let i in e){let o=t[i];o&&(je(n.logger,{severity:De.LogSeverity.Warning,message:pf(i,o),location:{path:"webapp/manifest.json/",range:r.split("/")}}),delete t[i])}}s(uve,"checkDeprecatedProperties");function fve(e,t,n,r,i,o,a){let c=a!=null&&a.id?a.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,l,u;a!=null&&a.title?(l=e.manifest.path(t,{},a.title),u=tr(n.manifest,l),Object.values(u).length===0&&(l=e.manifest.path(t,{},c),u=tr(n.manifest,l))):(l=e.manifest.path(t,{},c),u=tr(n.manifest,l));let f=e.manifest.import;if(f&&typeof f=="function"){let p=f(u,a==null?void 0:a.id);p!==void 0&&(r[i]=p)}else{let p=e.manifest.key||i;p in u&&(r[i]=u[p])}return uve(u,o,n,l),u}s(fve,"importManifestSetting");function Qr(e,t,n,r,i,o){var l,u;if(!n)return;let a=t!=null&&t.getDeprecated?t.getDeprecated():{},c=e.jsonSchema.definitions.TableColumn;for(let f in n.properties||n){let p=pr(t,f);if(f==="columns"||p!=null&&p.flex)if((l=i==null?void 0:i.type)!=null&&l.startsWith("ObjectPageSectionTableV2")||(u=i==null?void 0:i.type)!=null&&u.startsWith("ObjectPageSubSectionTableV2"))if(f==="columns"){let d=n.properties[f].$ref.split(he)[1],h=e.jsonSchema.definitions[d];vH(r.flexChanges,f,t,i,h,c)}else vH(r.flexChanges,f,t,i,n);else{let d=(i==null?void 0:i.title)||(i==null?void 0:i.id);lve(n,t,r.flexChanges,f,d,o)}else p!=null&&p.manifest&&fve(p,r.pageKeys,e,t,f,a,i)}}s(Qr,"transferSettingsAndFlexChanges");function EH(e,t,n,r){let i=mi(t);switch(e){case"FormAction":{i=`action::${i}::${r}::${n}`;break}case"ObjectPageFooterAction":{i=`action::${i}::Determining`;break}case"ObjectPageToolBarAction":{i=i.includes("sAction::")?`action::${i.split("sAction::")[1]}`:`action::${i.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{i=`${zB}${i}`;break}case"ObjectPageFooterActionStandard":{i=`${kb}${i}`;break}}return i.replace(/@/g,"")}s(EH,"getActionId");function pve(e,t,n,r){var i;for(let o in t){let a=t[o].$ref.split(he)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(a)){let c=(i=t[o].$ref.split("<"))==null?void 0:i[1].split(">")[0],l=EH(a,o,"","");e.actions[o]=r.factory.createInstance(De.PageTypeV2.ObjectPage,c,{}),Qr(n,e[De.PropertyName.actions][o],n.jsonSchema.definitions[c],r,{},l)}}}s(pve,"fillStandardActions");function Yv(e,t,n,r,i,o){var c;n[De.PropertyName.actions]={};let a=i.split("::").pop();if(r.flexChanges&&Object.keys(r.flexChanges).length>0){let l={};o&&(l.id=o);for(let u in t){let f=Za(u),p=EH(a,f,i,o);p&&(n[De.PropertyName.actions][f]=r.factory.createInstance(De.PageTypeV2.ObjectPage,a),Qr(e,n[De.PropertyName.actions][f],e.jsonSchema.definitions[a],r,l,p)),(c=n[De.PropertyName.actions])!=null&&c[f]&&Object.keys(n[De.PropertyName.actions][f]).length===0&&delete n[De.PropertyName.actions][f]}}pve(n,t,e,r),Object.keys(n[De.PropertyName.actions]).length===0&&delete n[De.PropertyName.actions]}s(Yv,"fillActions");function dve(e,t,n,r,i){var a;let o;r[t.id].form.fields={};for(let c in n){o=`${c}::GroupElement`,r[t.id].form.fields[c]=i.factory.createInstance(De.PageTypeV2.ObjectPage,"Field");let l=(a=t.title)!=null&&a.includes(De.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${o}`:`${t.title}::${o}`;Qr(e,r[t.id].form.fields[c],e.jsonSchema.definitions[De.DefinitionName.Field],i,{},l),Object.keys(r[t.id].form.fields[c]).length===0&&delete r[t.id].form.fields[c]}Object.keys(r[t.id].form.fields).length===0&&delete r[t.id].form.fields}s(dve,"fillFields");function hve(e,t,n){let r;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?r=n[`ObjectPage${e}<${t.id}>`]:r=n[`ObjectPageResponsiveTable<${t.id}>`],r}s(hve,"prepareTableSchema");function gve(e,t,n,r,i){var c,l;let o=t.title||t.id.replace("@com.sap","com.sap"),a=n&&n.sections&&n.sections[o];if(a||i.flexChanges){let u=((c=a==null?void 0:a.tableSettings)==null?void 0:c.type)||"ResponsiveTable",f=i.factory.createInstance(De.PageTypeV2.ObjectPage,`ObjectPage${u}`,{toolBar:{}});r[t.id]=i.factory.createInstance(De.PageTypeV2.ObjectPage,t.type,{table:{}}),r[t.id][De.PropertyName.table]=f;let p=e.jsonSchema.definitions,d=hve(u,t,p);Qr(e,r[t.id],t.schema,i,{title:t.title}),Qr(e,r[t.id][De.PropertyName.table],d,i,t);let h=JSON.parse(JSON.stringify(p))[`Actions<${t.id}>`];if(h!=null&&h.properties){let m=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(l=t==null?void 0:t.id)==null?void 0:l.replace(/@/g,"::").replace(/::com/g,"com");Yv(e,h.properties,r[t.id][De.PropertyName.table].toolBar,i,"ObjectPageToolBarAction",m)}Object.keys(r[t.id][De.PropertyName.table].toolBar).length===0&&delete r[t.id][De.PropertyName.table].toolBar}}s(gve,"fillTableInConfig");function mve(e,t,n,r,i){let o=e.jsonSchema.definitions[t].properties.custom,a=o?$b(o.$ref):void 0;if(a){let c={key:t.replace("@",""),target:a};kf(n[t],e,r,De.PageTypeV2.ObjectPage,c,i)}}s(mve,"fillCustomColumnsInConfig");function yve(e,t,n,r,i){let o=t.id.replace("@com.sap","com.sap"),a=n&&n.sections&&n.sections[o];r[t.id]=i.factory.createInstance(De.PageTypeV2.ObjectPage,t.type,{chart:{}}),r[t.id][De.PropertyName.chart]=i.factory.createInstance(De.PageTypeV2.ObjectPage,"ObjectPageChart"),(a||i.flexChanges)&&(Qr(e,r[t.id],t.schema,i,{title:t.title}),Qr(e,r[t.id][De.PropertyName.chart],e.jsonSchema.definitions[De.DefinitionName.ObjectPageChart],i,t))}s(yve,"fillChartSection");function bve(e,t,n,r){n[t.id]=r.factory.createInstance(De.PageTypeV2.ObjectPage,t.type,{}),r.flexChanges&&Qr(e,n[t.id],t.schema,r,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}s(bve,"fillHeaderSection");function vve(e,t,n,r){var l;let i=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=r.factory.createInstance(De.PageTypeV2.ObjectPage,t.type,{form:{}}),r.flexChanges&&Qr(e,n[t.id],t.schema,r,{title:t.title});let o=e.jsonSchema.definitions[`SectionActions${i}`],a=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(l=t==null?void 0:t.id)==null?void 0:l.replace(/@/g,"::").replace(/::com/g,"com");o!=null&&o.properties&&Yv(e,o.properties,n[t.id].form,r,"FormAction",a);let c=e.jsonSchema.definitions[`SectionFields${i}`];c!=null&&c.properties&&dve(e,t,c.properties,n,r),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}s(vve,"fillFormSection");function SH(e,t,n,r,i){var c;r[t.id]=i.factory.createInstance(De.PageTypeV2.ObjectPage,t.type,{subsections:{}}),i.flexChanges&&Qr(e,r[t.id],t.schema,i,t);let o,a=t.schema.properties;(c=a==null?void 0:a.subsections)!=null&&c.properties?o=a.subsections.properties:o=a,LI(e,o,n,r[t.id].subsections,i),Object.keys(r[t.id].subsections).length<1&&delete r[t.id].subsections}s(SH,"fillSubSection");function LI(e,t,n,r,i){var a;let o=e.jsonSchema.definitions;for(let c in t){let l=c.replace(/\/@/g,"::"),u={id:l,type:sve(t[c]),schema:t[c],title:$x(t[c],e.jsonSchema)};if(u.schema.$ref&&u.type)switch(u.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{u.schema=o[`${u.type}<${c}>`],gve(e,u,n,r,i),mve(e,l,r,i.v2Page,c);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{u.schema=o[`${u.type}<${c}>`],yve(e,u,n,r,i);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{u.schema=o[`${u.type}<${c}>`],vve(e,u,r,i);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{u.schema=o[`${u.type}<${c}>`],SH(e,u,n,r,i);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{u.schema=o[`${u.type}<${c}>`],bve(e,u,r,i);break}}else(a=u.schema.properties)!=null&&a.subsections&&(u.schema=o[`${u.type}<${c}>`],SH(e,u,n,r,i))}}s(LI,"fillSectionsInConfig");function Tve(e,t,n,r,i){if(Object.keys(e).length>0){t.sections.custom=[];for(let o in e){let a="fragmentName"in e[o]?n.factory.createInstance(De.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(De.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),c=r["fragmentName"in e[o]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Qr(i,a,c,n,{id:o}),t.sections.custom.push(a)}}}s(Tve,"fillCustomSectionsInConfig");function Sve(e,t){var f,p;let n=t.factory.createPageInstance(De.PageTypeV2.ObjectPage);Qr(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(De.PageTypeV2.ObjectPage,De.DefinitionName.GlobalTableSettings);let r=e.jsonSchema.definitions;Qr(e,n.globalTableSettings,r[De.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(De.PageTypeV2.ObjectPage,De.DefinitionName.ObjectPageHeader);let i=r[De.DefinitionName.ObjectPageHeader]?r[De.DefinitionName.ObjectPageHeader]:r["ObjectPageHeader<GenericActions>"];Qr(e,n.header,i,t);let o=r[De.DefinitionName.HeaderActions];o&&Yv(e,o.properties,n.header,t,"HeaderAction"),n.footer={};let a=r[De.DefinitionName.FooterActions];a&&Yv(e,a.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(De.PageTypeV2.ObjectPage,"ObjectPageLayout"),Qr(e,n.layout,r[De.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let c=r[De.DefinitionName.HeaderSections];if(c){let d=(f=t.v2Page.component)==null?void 0:f.settings;LI(e,c.properties,d,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let l=r[De.DefinitionName.Sections];if(l){let d=(p=t.v2Page.component)==null?void 0:p.settings;LI(e,l.properties,d,n.sections,t)}let u=gH(e.manifest,e.entitySet);return Tve(u,n,t,r,e),n}s(Sve,"fillConfig");function Xv(e){gr();let t=Vf(e);if(!t)return;let n=e.entitySet,r=[],i=ec(t,e.entitySet,r);if(qf(i,e.logger,n),!i)return;let o=ive(e.flex,n),a=new zr;return Sve(e,{pageKeys:r,flexChanges:o,v2Page:i,factory:a})}s(Xv,"createObjectPageConfigV2");var vi=me(Pe());var DI=me(lx());var Gt=me(Pe());var Eve=["colorPalette","tabs"];function Pve(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}s(Pve,"createCard");function PH(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),PH(e,n.join("|"))}return t}s(PH,"findAvailableId");function Yh(e,t,n,r,i,o,a){r!=null&&r.properties&&jI(e,t,n,r.properties,i,o,a)}s(Yh,"transferManifestEntriesOVP");function Ml(e,t,n,r){return e.createInstance(Gt.PageTypeV2.OverviewPage,r,n,t)}s(Ml,"assignReflectMetadataRules");function Ave(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let r=e.propertyList.anyOf[n].$ref.split(he),i=e.appSchema.definitions[r[1]];t=Ml(e.factory,r[1],t,"CustomCard"),Yh(t,e.exportResults,e.appSchema,i,e.factory,[...e.pathHierarchy])}return t}s(Ave,"processAnyOfDefinitionsOfOVP");function xve(e,t,n,r,i){e&&typeof e=="function"?e(t,n,r):typeof i=="object"&&!Eve.includes(r)?t[r]=(0,DI.default)(t[r]||{},i||{},{arrayMerge:Dx}):t[r]=i}s(xve,"checkSyncRuleForExport");function Ove(e,t,n,r,i,o){let a=e.manifest.path([...t,n]),c=tr(r.manifest,a);if(n in Gt.v2.CardSettingsType||n==="settings")c.settings=(0,DI.default)(c.settings||{},i||{},{arrayMerge:Dx});else if(i!==void 0){let l=e.manifest.export;xve(l,c,o,n,i)}else c[n]!==void 0&&delete c[n]}s(Ove,"transferToManifest");function Ive(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template??"CustomCard",r=[...new Set(Object.keys(Gt.v2.cardTemplateTypeMap))].filter(i=>i!==n);r.push(n);for(let i of r){let o;Object.values(Gt.v2.CardTemplateType).includes(i)?o=Object.keys(e.appSchema.definitions).filter(a=>{var l;let c=(l=e.appSchema.definitions[a].properties)==null?void 0:l.template;if(c!=null&&c.enum)return c.enum.indexOf(i)>-1;if(c!=null&&c.const)return c.const===i}):o=["CustomCard"],e.currentObject[t]=Ml(e.factory,o[0],e.currentObject[t],"CustomCard"),Pve(t,e.exportResults.manifest[Gt.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Gt.ChangeIndicator.Updated,Yh(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[o[0]],e.factory,["cards",t],e.entityPathArray)}}),Object.keys(e.exportResults.manifest[Gt.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[Gt.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=Gt.ChangeIndicator.Updated)})}s(Ive,"transferCards");function _ve(e,t){if(t==="cards")Ive(e);else{let n=Fa(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,Gt.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let r=e.propertyList[t].$ref.split(he);e.currentObject=Ml(e.factory,t,e.currentObject,r[1]),e.pathHierarchy=[...e.pathHierarchy,t],Yh(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],jI(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],jI(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}s(_ve,"exportOfObject");function jI(e,t,n,r,i,o,a){for(let c in r){if(c==="description"||a&&o&&a[o.length]!==c&&!Nx(o,a)&&o[o.length-1]!=="anyOf")continue;let l=e[c],u=pr(e,c),f={pathHierarchy:o,propertyList:r,appSchema:n,currentObject:l,configObject:e,factory:i,exportResults:t,entityPathArray:a};o[o.length-1]==="anyOf"?(f.currentObject=e[o[o.length-2]],l=Ave(f)):l&&typeof l=="object"&&r[c]&&_ve(f,c),u!=null&&u.manifest&&Ove(u,o,c,t,l,e)}}s(jI,"processProperties");function Cve(e,t,n,r,i,o,a){let c;t.length===0?c=["page"]:c=t;let l=n.flex.controlId(e.baseId,r,c,n.flex.controlType,i),u=wB(o,n,e.ui5Version,a,l),f=JSON.parse(JSON.stringify(e.exportResults.manifest));f["sap.app"].id=e.appId;let p=n.flex.createFlexChange(u,f);e.exportResults.flexChanges.find(h=>{let m=!1,b=JSON.parse(h);b={content:b.content,selector:b.selector};let T=JSON.parse(p);return T={content:T.content,selector:T.selector},JSON.stringify(b)===JSON.stringify(T)&&(m=!0),m})||e.exportResults.flexChanges.push(p)}s(Cve,"evaluateFlexRule");function wve(e,t,n,r,i,o){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[o]===void 0&&(n[o]={},e.exportResults.manifestChangeIndicator=Gt.ChangeIndicator.Updated);else{let a=t.manifest.export;a&&typeof a=="function"?a(n,r,i,o):a!==!1&&(n[o]=r[i]),e.exportResults.manifestChangeIndicator=Gt.ChangeIndicator.Updated}}s(wve,"exportConfigValueToManifest");function Nve(e,t,n,r,i){let o=tr(e.exportResults.manifest,t),a=n.manifest.key||r;if(i[r]!==void 0)wve(e,n,o,i,r,a);else{let c=n.manifest.delete;c&&typeof c=="function"?c(o,i,r,a):Object.prototype.hasOwnProperty.call(o,a)&&delete o[a],e.exportResults.manifestChangeIndicator=Gt.ChangeIndicator.Updated,mf(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}s(Nve,"evaluateManifestRule");function Rve(e,t,n,r,i){return e[1]==="custom"?t=n.manifest.path(r.pageKeys,{},e[2]):(t=n.manifest.path(r.pageKeys,{},i!=null&&i.startsWith(Gt.FACETTITLEPREFIX)?i.split(Gt.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}s(Rve,"getManifestPathOfSections");function Fve(e,t,n,r,i){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(r.pageKeys,r.exportResults.manifest,i.tabKey):t=n.manifest.path(r.pageKeys,{},e[e.length-1]),t}s(Fve,"getManifestPathOfTable");function Lve(e,t,n,r,i){let o;return t[0]===Gt.PropertyName.sections?o=Rve(t,o,n,e,i):t[0]===Gt.PropertyName.table?o=Fve(t,o,n,e,r):t[0]==="keyPerformanceIndicators"?o=n.manifest.path(e.pageKeys,e.exportResults.manifest,i):t[0]==="filterBar"&&t[1]==="selectionFields"?o=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):o=n.manifest.path(e.pageKeys),o}s(Lve,"getManifestPath");function jve(e,t,n,r,i,o,a){if(!t)return;let c=r.indexOf("subsections");for(;c>-1;)r.splice(c-1,2),c=r.indexOf("subsections");if(t.flex)Cve(e,r,t,i,o,n,a);else if(t.manifest){let l=Lve(e,r,t,n,o);Nve(e,l,t,a,n)}}s(jve,"evaluateExportRule");function Dve(e,t,n){var a;let r=e.split("|"),i=r[1],o=r[2];if(i===t.entitySet){let c=(a=t.config)==null?void 0:a.filter(l=>(l.tabKey===o||o===void 0&&l.tabKey===""||o&&t.sectionKey===o)&&l.extensionType===t.extensionType);if((!c||c.length===0)&&(zb(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Gt.ViewTemplateType.ResponsiveTableColumnsExtension))){let l=e.replace(Gt.ViewTemplateType.ResponsiveTableColumnsExtension,Gt.ViewTemplateType.ResponsiveTableCellsExtension);zb(n,l,t.appId,t.exportResults.fragments),delete n[l]}}}s(Dve,"deleteObsoleteColumn");function $ve(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=Wb(e.exportResults.manifest,t),r=e.path.substring(e.path.lastIndexOf("/")+1);for(let i in n)i.startsWith(r)&&(e.exportResults.manifestChangeIndicator=Gt.ChangeIndicator.Updated,Dve(i,e,n))}s($ve,"deleteObsoleteColumnsFromFragment");function kve(e,t,n,r,i){let o={};for(let a of e){if(!a.className||!a.fragmentName||!a.columnKey||!a.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(a.fragmentName)===!1)continue;let{path:c,viewTemplateType:l}=Qb(n,r,a.tabKey||i,a.extensionType);o[c]||(o[c]={viewTemplateType:l,columns:[]}),o[c].columns.push(a)}return o}s(kve,"clusterConfigColumnsByPath");function AH(e,t,n,r){if(!e.v2Page)return;let i=r?r.key:void 0,a=(r?r.target:void 0)||e.v2Page.entitySet;for(let c in Gt.v2.TableColumnExtensionTypeV2){let{path:l}=Qb(e.v2Page,a,i,c);if(!l)continue;let u={path:l,exportResults:e.exportResults,entitySet:a,config:t,sectionKey:i,extensionType:c,appId:e.appId};try{$ve(u)}catch(f){je(e.logger,{severity:Gt.LogSeverity.Error,message:f.message})}}if(t){let c=kve(t,n,e.v2Page,a,i);for(let l in c)uO(e,l,c[l].columns,c[l].viewTemplateType)}}s(AH,"transferColumnExtensions");function Mve(e,t,n,r,i,o){let a=[],c=n.split("|")[1];if(!t)return;for(let u of t){let f=PH(a,[u.relativePosition,c,u.relatedFacet].join("|"));a.push(f)}for(let u=0;u<a.length;u++){let p=o.anyOf.find(h=>{var m;return(m=h.$ref)==null?void 0:m.includes(t[u].constructor.name)}).$ref.split(he),d=e.appSchema.definitions[p[p.length-1]];tc(e,t[u],r,[...i,a[u]],d)}let l=tr(e.exportResults.manifest,th());for(let u in l)_I(u,c)&&!a.includes(u)&&delete l[u]}s(Mve,"transferManifestExtensions");function Vve(e,t){let n;for(let r=e.length-1;r>=0;r--)if(e[r]===Gt.PropertyName.table){n=e[r-1];break}return or(n,t)}s(Vve,"getSectionId");function qve(e,t,n,r,i,o){let a=t.propertyDefinition;!e||!(a!=null&&a.additionalProperties)||Object.keys(e).forEach(c=>{let l=Fa(t.appSchema,n,e[c],a.additionalProperties,r,t.factory,t.pageType);tc(t,l.configObject,i,[...o,r],l.targetDefinition,c)})}s(qve,"transferIndexTable");function Uve(e,t,n,r,i,o){let a,c=$b(e.$ref);c&&(a={target:c,key:Vve(t,n)}),AH(r,i==null?void 0:i.custom,o.targetDefinition,a)}s(Uve,"transferCustomColumns");function Bve(e,t,n,r,i,o,a){e.anyOf.forEach(c=>{let l=Fa(t.appSchema,n,r,c,i,t.factory,t.pageType);l&&tc(t,l.configObject,o,[...a,i],l.targetDefinition,l.title)})}s(Bve,"handleAnyOfDefinitions");function Gve(e,t,n,r,i,o,a){let c=e.propertyDefinition;if((c==null?void 0:c.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&i==="custom")Mve(e,n[i],e.pageKeys[e.pageKeys.length-1],r,[...t,i],c==null?void 0:c.items);else if(o&&i==="custom"){Uve(c,t,a,e,n,o);return}else o?tc(e,o.configObject,r,[...t,i],o.targetDefinition,o.title):c.anyOf&&Bve(c,e,a,n==null?void 0:n[i],i,r,t)}s(Gve,"transferComplexProperty");function tc(e,t,n,r,i,o){let a;if(i!=null&&i.properties)for(let c in i.properties){if(e.entityPathArray&&e.entityPathArray[r.length]!==c&&!Nx(r,e.entityPathArray))continue;a=t==null?void 0:t[c];let l=t&&yB(t,c),u=l?[...n,l]:n,f=pr(t,c),p=e.propertyDefinition=i.properties[c],d=e.nextDefinition=Fa(e.appSchema,o,a,p,c,e.factory,e.pageType);if(jve(e,f,t,[...r],u,o,c),qve(a,e,o,c,u,r),a===void 0||typeof a=="object")Gve(e,r,t,u,c,d,o);else if((p==null?void 0:p.$ref)===he+"TableCustomColumns"){AH(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}s(tc,"transferManifestEntriesAndFlexChange");function xH(e,t,n,r,i,o){let a=t[t.length-1],c=e.jsonSchema.definitions[a];n[r]=Ml(i,r,n[r],a),o.push(r),$I(i,n[r],e,c.properties,o)}s(xH,"transferSettingsOfRef");function Hve(e,t,n,r,i,o,a){let c=t in e;if(n[t].$ref){e[t]=e[t]??{};let l=n[t].$ref.split(he);xH(r,l,e,t,i,o)}else if(t==="settings"&&n[t].anyOf&&a in vi.v2.cardTemplateSettingsMap){e[t]=e[t]??{};let u=`${he}${vi.v2.cardTemplateSettingsMap[a]}`.split(he);xH(r,u,e,t,i,o)}!c&&!Object.keys(e[t]).length&&delete e[t]}s(Hve,"processPropertiesOfObject");function Wve(e,t,n,r,i,o,a){let c=pr(e,t);if(c!=null&&c.manifest){let l=c.manifest.path([...n,t]),u=tr(r.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{Db(c,u,t,e)}catch(f){je(r.logger,{severity:vi.LogSeverity.Error,message:ee.t("XMLPARSEFAILURE",{error:qB(f)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof i[t]=="object"&&Hve(e,t,i,r,o,n,a)}s(Wve,"processOvpProperty");function $I(e,t,n,r,i,o){for(let a in r)Wve(t,a,i,n,r,e,o)}s($I,"processOvpProperties");function Kve(e,t,n){$I(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[vi.ManifestSection.ovp].cards).forEach(r=>{let i=t.manifest[vi.ManifestSection.ovp].cards[r].template,o=vi.v2.cardTemplateTypeMap[i]??"CustomCard",a=[];for(let c in vi.v2.cardTemplateTypeMap)vi.v2.cardTemplateTypeMap[c]!==o&&a.push({template:c,cardType:vi.v2.cardTemplateTypeMap[c]});a.push({template:i,cardType:o});for(let c of a)e.cards[r]=Ml(n,c.cardType,e.cards[r]??{},"CustomCard"),e.cards=Ml(n,c.cardType,e.cards,"CustomCard"),$I(n,e.cards[r],t,t.jsonSchema.definitions[c.cardType].properties,["cards",r],c.template)})}s(Kve,"addSettings");function zv(e){let t=new zr,n=t.createPageInstance(vi.PageTypeV2.OverviewPage);return e.jsonSchema&&Kve(n,e,t),n}s(zv,"createOverviewPageConfig");var rn=me(Pe());function Jve(e,t,n,r){var u,f;let i=Gv(e.manifest,r),o=e.jsonSchema.definitions;Hv(t,n,o),t.table=n.createInstance(rn.PageTypeV2.AnalyticalListPage,`ALP${i}`,t.table);let a=o[`ALP${i}<LineItems>`];if(lr(t.table,e.manifest,a,r,e.logger),FI(e,a,t),t.table.toolBar=n.createInstance(rn.PageTypeV2.AnalyticalListPage,rn.DefinitionName.ToolBar,{actions:{}}),lr(t.table.toolBar,e.manifest,o[rn.DefinitionName.ToolBar],r,e.logger),o[rn.DefinitionName.ActionsLR])for(let p in o[rn.DefinitionName.ActionsLR].properties){let d=Za(p);t.table.toolBar.actions[d]=n.createInstance(rn.PageTypeV2.AnalyticalListPage,rn.DefinitionName.Action),lr(t.table.toolBar.actions[d],e.manifest,o[rn.DefinitionName.Action],r,e.logger)}t.filterBar=n.createInstance(rn.PageTypeV2.AnalyticalListPage,rn.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),lr(t.filterBar,e.manifest,o[rn.DefinitionName.AnalyticalListPageFilterBar],r,e.logger),t.chart=n.createInstance(rn.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),lr(t.chart,e.manifest,o.ChartSettings,r,e.logger),t.footer={actions:{}};let c=o[rn.DefinitionName.FooterActionsLR];if(c)for(let p in c.properties){let d=Za(p);t.footer.actions[d]=n.createInstance(rn.PageTypeV2.AnalyticalListPage,rn.DefinitionName.FooterAction),lr(t.footer.actions[d],e.manifest,o[rn.DefinitionName.Action],r,e.logger)}t.keyPerformanceIndicators={};let l=(f=(u=e.manifest[rn.ManifestSection.generic].pages[r].component)==null?void 0:u.settings)==null?void 0:f.keyPerformanceIndicators;l&&Object.keys(l).forEach(p=>{t.keyPerformanceIndicators[p]=n.createInstance(rn.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(rn.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),lr(t.keyPerformanceIndicators[p],e.manifest,o.KPISettings,r,e.logger,p)})}s(Jve,"addSettings");function Qv(e){if(gr(),e={...e,flex:Kv(e.flex,rn.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE,e.entitySet)},!Vf(e))return;let n=new zr,r=n.createPageInstance(rn.PageTypeV2.AnalyticalListPage),i=[],o=Uf(e.manifest[rn.ManifestSection.generic].pages,i,e.logger);if(qf(o,e.logger,o==null?void 0:o.entitySet),!!o)return Jve(e,r,n,i[0]),e.flex.forEach(a=>{Wr(a)&&Bv(r,a,e.jsonSchema,e.logger)}),kf(r,e,o,rn.PageTypeV2.AnalyticalListPage),Wv(r),r}s(Qv,"createAnalyticalListPageConfig");var ki=me(Pe());var OH=require("@sap-ux/vocabularies-types/vocabularies/UI");var Yve=["filterBar","table","footer"];function MI(e,t,n,r){Mv(e,n,"QuickVariant"),rH(n,"QuickVariantX",t),iH(r,n,"QuickVariantX")}s(MI,"addEnumForVariantPaths");function kI(e,t,n,r){var o;let i;if(r.targetAnnotation){let a=(o=r.targetAnnotation)==null?void 0:o.split("/");i=a[a.length-1]}else i=`@${OH.UIAnnotationTerms.LineItem}`;Uo(e,t,n,{...r,pathsParts:[i,"",i]},ro.ListReport)}s(kI,"addManifestPathsToPropertiesLR");function Xve(e,t){e.manifestPath=Nf(t),kI(e,"ListReport",e,t),kI(e,void 0,e.properties.table,t),kI(e,void 0,e.properties.filterBar,t)}s(Xve,"addManifestPathsToStaticNodes");function IH(e,t){var f,p,d,h,m,b,T;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=he+vf,n.properties.table.anyOf[1].$ref=he+Qd,n.properties.table.anyOf[2].$ref=he+Zd,n.properties.table.anyOf[3].$ref=he+eh;let r=JSON.parse(JSON.stringify(n.definitions.ResponsiveTable)),i=JSON.parse(JSON.stringify(n.definitions.TreeTable)),o=JSON.parse(JSON.stringify(n.definitions.AnalyticalTable)),a=JSON.parse(JSON.stringify(n.definitions.GridTable)),c={$ref:he+ki.DefinitionName.LineItems};r.properties.columns=c,i.properties.columns=c,o.properties.columns=c,a.properties.columns=c;let l=he+ki.DefinitionName.ToolBarLR;n.definitions[vf]=r,n.definitions[vf].properties.toolBar.$ref=l,n.definitions[Qd]=i,n.definitions[Qd].properties.toolBar.$ref=l,n.definitions[Zd]=o,n.definitions[Zd].properties.toolBar.$ref=l,n.definitions[eh]=a,n.definitions[eh].properties.toolBar.$ref=l;let u=(f=e.entitySet)==null?void 0:f.entityType;if(!u)(p=e.entitySet)!=null&&p.name&&je(e.logger,{severity:ki.LogSeverity.Error,message:ee.t("NOENTITYTYPE4SET",{entitySetName:(d=e.entitySet)==null?void 0:d.name})});else{jf(n);let I=(m=(h=u==null?void 0:u.annotations)==null?void 0:h.UI)==null?void 0:m.LineItem;I&&YB.forEach(j=>{n.definitions[j][ki.SchemaTag.annotationPath]=Os(u==null?void 0:u.fullyQualifiedName,I.term,I.qualifier)}),Ff(!1,n,I,u);let F=(T=(b=u==null?void 0:u.annotations)==null?void 0:b.UI)==null?void 0:T.SelectionFields;jv(n,F,u);let N=[],$=Mf(e.manifest[ki.ManifestSection.generic].pages,N);if(!$)return je(e.logger,{severity:ki.LogSeverity.Error,message:ee.t("NOLR"),location:{path:ki.MANIFESTPATH,range:[ki.ManifestSection.generic]}}),n;Lf(n,u,$,e.manifest,e.fragments),MI(u,e.entitySet,n,e.serviceAVT),Xve(n,{manifest:e.manifest,pageName:N}),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 yf(n,Yve),n}s(IH,"generateListReportSchemaV2");var Ze=me(Pe());var _H=require("@sap-ux/fe-fpm-writer");var Xh=s(e=>({flexChanges:[],manifest:{[Ze.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:Ze.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:Ze.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function VI(e=[],t=[]){let n=[...e,...t].reduce((r,i)=>(i.fileContent&&r.push(i.fileContent),r),[]);return(0,_H.createIdGenerator)({fileContentCache:n})}s(VI,"getIdGeneratorFunction");function CH(e,t,n){if(e&&t==="custom")for(let r in e)e[r].className===Ze.SAPUI5_FRAGMENT_CLASS?e[r]=n.createInstance(Ze.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[r]):e[r]=n.createInstance(Ze.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[r])}s(CH,"getClassesForSingleSection");function wH(e,t){if(e!=null&&e.subsections){let n;for(let r in e.subsections)n=e.subsections[r],CH(n,r,t),wH(n,t)}}s(wH,"getSubsectionClasses");function zve(e,t,n){let r;for(let i in e.sections)r=t.sections[i],CH(r,i,n),wH(r,n)}s(zve,"getExportClassesForSections");function Qve(e,t){let n=Mf(t.manifest[Ze.ManifestSection.generic].pages,e);if(!n){je(t.logger,{severity:Ze.LogSeverity.Error,message:ee.t("NOLR"),location:{path:Ze.MANIFESTPATH,range:[Ze.ManifestSection.generic]}});return}if(!n.component){je(t.logger,{severity:Ze.LogSeverity.Error,message:ee.t("COMPONENTNOTDEFINED",{pageName:Ze.PageTypeV2.ListReport}),location:{path:Ze.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}s(Qve,"findV2Page");function qI(e,t){let n=bB(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}s(qI,"calculateBaseId");function NH(e,t,n=!1){let r=Xh(e.fragments);r.manifest=JSON.parse(JSON.stringify(e.manifest));let i=VI(e==null?void 0:e.fragments,e==null?void 0:e.views),o=e.page.config;if(o&&Object.keys(o).length!==0){let a=[],c=Qve(a,e),l=new zr,u=l.createPageInstance(Ze.PageTypeV2.ListReport,o),f={v2Page:c,exportResults:r,appId:e.appId,baseId:qI(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:Ze.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n,idGeneratorFunction:i};tc(f,u,[],[],e.jsonSchema)}return r}s(NH,"exportListReportPage");function RH(e,t,n=!1){let r=e.page.config,i=VI(e.fragments,e.views),o=Xh(e.fragments);o.flexChanges=[],o.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],c=Uf(e.manifest[Ze.ManifestSection.generic].pages,a,e.logger);if(!c)return o;if(c.component.settings||(c.component.settings={}),o.manifest=JSON.parse(JSON.stringify(e.manifest)),r&&Object.keys(r).length!==0){let l=new zr,u=l.createPageInstance(Ze.PageTypeV2.AnalyticalListPage,r),f={v2Page:c,exportResults:o,appId:e.appId,baseId:qI(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:Ze.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n,idGeneratorFunction:i};tc(f,u,[],[],e.jsonSchema)}return o}s(RH,"exportAnalyticalListPage");function FH(e,t,n=!1){let r=e.page.config,i=e.page.entitySet,o=VI(e.fragments,e.views),a=Xh(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),r){let c=[],l=ec(e.manifest[Ze.ManifestSection.generic].pages,i,c);if(!l)return je(e.logger,{severity:Ze.LogSeverity.Error,message:ee.t("NOOBJECTPAGE",{entitySetName:i}),location:{path:Ze.MANIFESTPATH,range:[Ze.ManifestSection.generic]}}),a;let u=new zr,f=u.createPageInstance(Ze.PageTypeV2.ObjectPage,r);if(r.sections&&zve(r,f,u),Object.keys(r).length!==0){let p={v2Page:l,exportResults:a,appId:e.appId,baseId:qI(f,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:c,pageType:Ze.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n,idGeneratorFunction:o};tc(p,f,[],[],e.jsonSchema)}}return a}s(FH,"exportObjectPage");var LH=s(e=>{let t=Xh();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new zr,r=n.createPageInstance(Ze.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Yh(r,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),Zve=s((e,t,n)=>{var a;let r=Xh();r.manifest=JSON.parse(JSON.stringify(t));let i=Object.assign(new Mb,e);i.settings=Object.assign(new ja,e.settings);for(let c in n.definitions.AppSettings.properties){let l=pr(i.settings,c);if(l&&l.manifest){let u=l.manifest.path(),f=l.manifest.key??c,p=Wb(r.manifest,u);if(e.settings&&e.settings[c]!==void 0){p=p??tr(r.manifest,u);let d=p[f];p[f]=e.settings[c],typeof d=="object"&&Object.keys(d).length>0&&typeof p[f]=="object"&&Object.keys(p[f]).length===0&&(delete p[f],mf(r.manifest,u,!1))}else p&&f in p&&(delete p[f],mf(r.manifest,u,!1))}}let o=(a=r.manifest[Ze.ManifestSection.generic])==null?void 0:a.pages;return o&&e.pages&&cO(e.home,e.pages,Object.values(o)[0]),r},"exportApplicationV2");function jH(e,t){if(e[Ze.SchemaType.ListReport])return BI(e[Ze.SchemaType.ListReport],t);if(e[Ze.SchemaType.ObjectPage])return FH(e[Ze.SchemaType.ObjectPage],t);if(e[Ze.SchemaType.OverviewPage])return LH(e[Ze.SchemaType.OverviewPage]);if(e[Ze.SchemaType.Application]){let{application:n,manifest:r,jsonSchema:i}=e[Ze.SchemaType.Application];return Zve(n,r,i)}else if(e[Ze.SchemaType.AnalyticalListPage])return RH(e[Ze.SchemaType.AnalyticalListPage],t)}s(jH,"exportPageV2");function UI(e,t,n=!1){if(e[Ze.SchemaType.ListReport])return BI(e[Ze.SchemaType.ListReport],t,n);if(e[Ze.SchemaType.ObjectPage])return FH(e[Ze.SchemaType.ObjectPage],t,n);if(e[Ze.SchemaType.OverviewPage])return LH(e[Ze.SchemaType.OverviewPage]);if(e[Ze.SchemaType.AnalyticalListPage])return RH(e[Ze.SchemaType.AnalyticalListPage],t,n)}s(UI,"exportConfigEntityByPathV2");var Go=me(Pe());function DH(e,t){e.anyOf&&e.anyOf.forEach(function(n){Vl(n,t)})}s(DH,"addAnyOfToReferredTypes");function eT(e){return typeof e.items!="object"||Array.isArray(e.items)?void 0:e.items}s(eT,"getSingleItem");function Vl(e,t){if(typeof e!="object")return;let n=Ro(e);n&&$H(n,t),DH(e,t),Vl(e.additionalProperties,t),Vl(eT(e),t)}s(Vl,"addReferredTypesFromElement");function $H(e,t){if(t.referredTypeNames.has(e))return;t.referredTypeNames.add(e);let n=t.types[e];Vl(n,t);let r=n.properties;r?Object.values(r).forEach(i=>Vl(i,t)):Vl(eT(n),t),Vl(n.additionalProperties,t)}s($H,"addReferredTypesFromType");function Zv(e,t,n,r,i){if(typeof t!="object")return;let o=Ro(t);if(o){let a=i.types[o];if(a||(a=e==null?void 0:e.refTypeDefinition,i.types[o]=a),e){let c;if(e.suffix){let u=`${o}<${e.suffix}>`;t.$ref=BB(u),c=structuredClone(a),i.types[u]=c,i.referredTypeNames.add(u)}else i.referredTypeNames.add(o),c=a;let l={pageInfo:r.pageInfo,specificParams:e.specificParams||r.specificParams};GI(n,l,e.syncRuleProvider,c,i)}else $H(o,i)}else GI(n,r,e==null?void 0:e.syncRuleProvider,t,i)}s(Zv,"applyAdaptationInfoToElement");function eTe(e,t){let n=Array.isArray(e),r=n?e:e.path;(n||e.addTargetPropertyToPath)&&(r=r.concat([t]));let i="$";return r.forEach(o=>{let a,c;typeof o=="number"?(a="[]",c=""+o):c=o,i=La(i,c,a)}),i}s(eTe,"getJSONPathForProperty");function GI(e,t,n,r,i){var d,h;let o={element:r},a=gB(n);if(a!=null&&a.processingRuleAdapter&&(a.processingRuleAdapter(o,t,e),!o.element))return;Zv(o.additionalPropertiesAdaptation,r.additionalProperties,e,t,i);let c={pageInfo:t.pageInfo,specificParams:((d=o.referenceAdaptation)==null?void 0:d.specificParams)||t.specificParams},l=r.properties,u;if(l)u=l;else{let m=eT(r);if(m)l={items:m},u=r;else return}let f,p=((h=o.referenceAdaptation)==null?void 0:h.processingRulesAdapter)||function(m,b){f=f||n&&new n;let T=pr(f,m);T!=null&&T.processingRuleAdapter&&T.processingRuleAdapter(b,c,e)};for(let m in l){let b=l[m];if(typeof b!="object"){u[m]=b;continue}let T={element:{...b}};p(m,T),T.element?(T.controlId?T.element[Go.SchemaTag.controlId]=`${t.pageInfo.controlId}--${T.controlId}`:T.manifestPath&&(T.element[Go.SchemaTag.artifactType]="Manifest",T.element[Go.SchemaTag.manifestPath]=eTe(T.manifestPath,m)),DH(T.element,i),Zv(T.referenceAdaptation,T.element,e,c,i),Zv(T.additionalPropertiesAdaptation,T.element.additionalProperties,e,c,i),Zv(T.itemsAdaptation,eT(T.element),e,c,i),u[m]=T.element):delete u[m]}}s(GI,"adjustElement");function kH(e,t,n){var N;gr();let r=hl(e.manifest,Go.FioriElementsVersion.v2,n);if(!r||r===Go.TemplateType.OverviewPageV2)return;let{parent:i}=Cr(e.manifest,e.pagePath);if(!i)return;let o=i.component;if(dr(i,"entitySet",n,"string",!0)||dr(o,"name",n,"string",!0))return;let a=i.entitySet,c=o.name,l=t(c),u=l==null?void 0:l.genericSchema,f=l==null?void 0:l.syncRuleProvider;if(!f||!u)return u;let p=e.parsedAnnotations||dl(e.annotations,n),d=(N=p==null?void 0:p.entitySets)==null?void 0:N.find($=>$.name===a);if(!d)return u;let h=structuredClone(u),m=LG(e.appId,c,a),T={pageInfo:{appId:e.appId,componentName:c,entitySet:a,controlId:m,pagePath:e.pagePath}},I={templateType:r,manifest:e.manifest,serviceAVT:p,fioriElementsVersion:Go.FioriElementsVersion.v2,entitySet:d,fragments:e.fragments,logger:n,entityType:d.entityType},F={types:h.definitions,referredTypeNames:new Set};GI(I,T,f,h,F);for(let $ in h.definitions)F.referredTypeNames.has($)||delete h.definitions[$];return h}s(kH,"getAdaptedSchema");var Vi=me(Pe());var zh=(i=>(i.ResponsiveTable="ResponsiveTable",i.GridTable="GridTable",i.AnalyticalTable="AnalyticalTable",i.TreeTable="TreeTable",i))(zh||{});var KI=me(Pe());var Ho=me(Pe());var rT=class rT{};s(rT,"Share"),x([O({flex:{controlType:s(()=>Ho.ControlType.Button,"controlType"),createFlexChange:ye},processingRuleAdapter:s(t=>{t.controlId="template::Share"},"processingRuleAdapter")})],rT.prototype,"visible",2);var nT=rT,tT={flex:{controlType:s(()=>Ho.ControlType.Button,"controlType"),createFlexChange:ye},processingRuleAdapter(e,t){let n=t.specificParams;n.controlId?e.controlId=n.controlId:delete e.element}},Mi=class{};s(Mi,"Action"),x([O(tT)],Mi.prototype,"tooltip",2),x([O(tT)],Mi.prototype,"icon",2),x([O(tT)],Mi.prototype,"activeIcon",2),x([O(tT)],Mi.prototype,"type",2),Mi=x([O({processingRuleAdapter(e,t){let n=t.specificParams,r=e.element;r[Ho.SchemaTag.isViewNode]=n.isViewNode,n.action&&(r.description=n.dataField.description,r[Ho.SchemaTag.keys]=[{name:"Action",value:n.action.Action}],n.dataField.message&&(r[Ho.SchemaTag.messages]=[n.dataField.message]));let i={controlId:Gh(n)};e.referenceAdaptation={specificParams:i}}})],Mi);function tTe(e){return e.dataField?Gh(e):"todo"}s(tTe,"getControlId4ActionInfo");var ql=class{};s(ql,"Actions"),ql=x([O({processingRuleAdapter(e,t){let r=t.specificParams.actions,i=e.element,o={},a={};r.forEach(function(l,u){let f={$ref:he+"Action"};f[Ho.SchemaTag.propertyIndex]=u;let p=tTe(l);o[p]=f,a[p]=l}),i.properties=o,i.additionalProperties=!1,i[Ho.SchemaTag.icon]="Export";let c=s(function(l,u){let f=a[l];u.referenceAdaptation={suffix:ln(l),syncRuleProvider:Mi,specificParams:f}},"processingRulesAdapter");e.referenceAdaptation={processingRulesAdapter:c}}})],ql);var iT=class iT{};s(iT,"Toolbar"),x([O({processingRuleAdapter(t,n){let r=n.specificParams,i={actions:r.dataFields.map(function(o){let a=o.dataField;return{dataField:o,action:a,isDetermining:r.target==="Footer",isChart:r.isChart,iconTabFilterKey:r.iconTabFilterKey,isViewNode:!0}})};t.referenceAdaptation={suffix:r.target+Rf(r.iconTabFilterKey),syncRuleProvider:ql,specificParams:i}}})],iT.prototype,"actions",2);var HI=iT;function sT(e,t,n,r,i){if(r||!n){delete e.element;return}let a={dataFields:n.filter(function(c){return c.target===t}),target:t,isChart:r,iconTabFilterKey:i};e.referenceAdaptation={suffix:t+Rf(a.iconTabFilterKey),specificParams:a,syncRuleProvider:HI}}s(sT,"adaptProcessingRuleForToolbar");var nc=class{};s(nc,"ListHeaderActions"),x([O({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:nT}}})],nc.prototype,"Share",2),nc=x([O({processingRuleAdapter(e){e.element[KI.SchemaTag.icon]="Export"}})],nc);var Wo=class{};s(Wo,"ListHeader"),x([O({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:nc}}})],Wo.prototype,"actions",2),Wo=x([O({processingRuleAdapter(e){e.element[KI.SchemaTag.icon]="Header"}})],Wo);var Ko=me(Pe());var oT={flex:{controlType:s(()=>Ko.ControlType.SmartFilterBar,"controlType"),createFlexChange:ye},processingRuleAdapter(e){e.controlId="listReportFilter"}},Ul=class{};s(Ul,"FilterField"),Ul=x([O({processingRuleAdapter(e,t){let n=t.specificParams,r=n.selectionFieldInfo.field,i=n.entityType,o=r.value,a=r.type==="PropertyPath"?Rb(r,i):o;e.element.description=a,e.element[Ko.SchemaTag.dataType]=n.selectionFieldInfo.dataType,e.element[Ko.SchemaTag.keys]=[{name:Ko.SchemaKeyName.value,value:`${o}`}]}})],Ul);var Bl=class{};s(Bl,"FilterFields"),Bl=x([O({processingRuleAdapter(e,t){let n=t.specificParams,r=n.fieldDefinitions,i;for(let a in r){let c=r[a],l={$ref:he+"FilterField"};l[Ko.SchemaTag.propertyIndex]=c.position,i=i||{},i[a]=l}e.element.properties=i,delete e.element.additionalProperties;let o=s(function(a,c){let l={accessor:a,selectionFieldInfo:r[a],entityType:n.entityType};c.referenceAdaptation={suffix:ln(a),syncRuleProvider:Ul,specificParams:l}},"processingRulesAdapter");e.referenceAdaptation={processingRulesAdapter:o}}})],Bl);var Rs=class Rs{};s(Rs,"CommonFilterBar"),x([O(oT)],Rs.prototype,"liveMode",2),x([O(Nv),Fn("https://ui5.sap.com/sdk/#/topic/e3b12f41d70c442f9d4cc2e7722bbb17")],Rs.prototype,"smartVariantManagement",2),x([O(Nv),Fn("https://ui5.sap.com/sdk/#/topic/e3b12f41d70c442f9d4cc2e7722bbb17")],Rs.prototype,"variantManagementHidden",2),x([O(Nv),Fn("https://ui5.sap.com/sdk/#/topic/e3b12f41d70c442f9d4cc2e7722bbb17")],Rs.prototype,"subTitleIfVariantMgmtHidden",2),x([O(oT)],Rs.prototype,"showClearOnFB",2),x([O(oT)],Rs.prototype,"showFilterConfiguration",2),x([O(oT)],Rs.prototype,"showRestoreOnFB",2),x([O({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:Bl}}})],Rs.prototype,"selectionFields",2);var JI=Rs,rc=class extends JI{};s(rc,"ListReportFilterBar"),rc=x([O({processingRuleAdapter(e,t){var a;e.element[Ko.SchemaTag.icon]="Filter";let n=t.specificParams,r=((a=n.uIAnnotations)==null?void 0:a.SelectionFields)??[],i={};r.forEach((c,l)=>{let u=kl(c);i[c.value]={field:c,dataType:u,position:l}});let o={entityType:n.entityType,fieldDefinitions:i};e.referenceAdaptation={specificParams:o}}})],rc);var so=me(Pe());var YI=require("@sap-ux/vocabularies-types/vocabularies/UI"),Zr=me(Pe());var Gl=class{};s(Gl,"MultiViewsVariants"),Gl=x([O({processingRuleAdapter(e,t){let n=t.specificParams,r={},i=1;for(let a in n.variantsToInfo){let c=n.variantsToInfo[a],l={$ref:he+"Table"};l[Zr.SchemaTag.propertyIndex]=i,l[Zr.SchemaTag.descriptionSrcURL]="https://ui5.sap.com/sdk/#/topic/97dfeea4a8c346368cea6bf7a3e85478",l[Zr.SchemaTag.icon]=c.isChart?"Chart":"Table",l[Zr.SchemaTag.deletable]=!0,l.description=c.description,r[a]=l,i++}e.element.additionalProperties=!1,e.element.properties=r;let o=s(function(a,c){let l={...n.tableParams},u=n.variantsToInfo[a];l.multiTableInfo={usedTableTypes:l.multiTableInfo.usedTableTypes,variantInfo:u},c.referenceAdaptation={suffix:`View-${u.iconTabFilterKey}`,syncRuleProvider:Hf,specificParams:l}},"processingRulesAdapter");e.referenceAdaptation={processingRulesAdapter:o}}})],Gl);var VH={manifest:{},processingRuleAdapter(e,t){e.manifestPath=cr(t.pageInfo.pagePath,["quickVariantSelectionX"])}};function nTe(e,t,n){if(dr(e,"entitySet",n.logger,"string"))return;let r=e.entitySet,i=r?n.serviceAVT.entitySets.find(a=>a.name===r):n.entitySet;if(r&&!i){je(n.logger,{severity:Zr.LogSeverity.Error,message:ee.t("NOENTITYTYPE4SET",{property:r})});return}let o=i?i.entityType:t;return{entitySetDefinition:i,entityTypeDefinition:o}}s(nTe,"getEntityDefinition");function rTe(e,t){let n=e.annotationPath,r,i=!1,o;if(n){let a=t(n);if(a){r=a.Text;let c=a[Zr.FacetBase.PresentationVariant];if(c!=null&&c.Path&&(c=t(c.Path)),c){let l=c.Visualizations,u=l&&l[0];u&&(Lv(Zr.FacetBase.Chart,u)?i=!0:o=Lv(Zr.FacetBase.LineItem,u))}}}return i||(o=o||Zr.FacetBase.LineItem),r=r||e.key,{variantDescription:r,isChart:i,lineItemName:o}}s(rTe,"retrieveInfoForVariant");function iTe(e,t,n,r,i,o){var T;let a=`${i.tableId}-${t.key}`,c=nTe(t,i.entityType,r),l=c==null?void 0:c.entityTypeDefinition;if(!((T=l==null?void 0:l.annotations)!=null&&T.UI))return{accessor:e,iconTabFilterKey:rs(t.key,r),variantDefinition:t,isChart:!1,smartControlId:a,description:t.key};let u=s(function(I){if(!I)return;let F=I.replace(Zr.UIVOCABULARYDOT,"");return l.annotations.UI[F]},"getUiAnnotation"),{variantDescription:f,isChart:p,lineItemName:d}=rTe(t,u),h,m;if(!p){if(dr(t,"tableSettings",r.logger,"object"))return{accessor:e,iconTabFilterKey:rs(t.key,r),variantDefinition:t,isChart:!1,smartControlId:a,description:f};let I=t.tableSettings||void 0;if(I){if(dr(I,"type",r.logger,"string")||!qH(I.type,r.logger))return{accessor:e,iconTabFilterKey:rs(t.key,r),variantDefinition:t,isChart:!1,smartControlId:a,description:f};m=I.type}m=m||o.type||Gf(l),m==="ResponsiveTable"?n.responsive=n.responsive+1:n.nonResponsive=n.nonResponsive+1;let F=u(d);F&&(h=Dv(d,F,l,m,r,!1))}let b=c.entitySetDefinition;return{accessor:e,iconTabFilterKey:rs(t.key,r),variantDefinition:t,isChart:p,smartControlId:a,description:f,lineItemInfo:h,entityTypeDefinition:l,entitySetDefinition:b,tableType:m}}s(iTe,"getVariantInfo");function sTe(e,t,n,r){let i={},o={responsive:0,nonResponsive:0};return{variantsToInfo:Object.keys(e).some(function(c){if(dr(e,c,t.logger,"object",!0))return!0;let l=e[c];if(!l.key)return je(t.logger,{severity:Zr.LogSeverity.Error,message:ee.t("NOKEY4VIEW",{property:c})}),!0;let u=iTe(c,l,o,t,n,r);i[c]=u})?void 0:i,usedTableTypes:o}}s(sTe,"getVariantsToInfo");function oTe(e,t){var c;let n=e.settings.quickVariantSelectionX;if(dr(n,"variants",t.logger,"object",!0))return;let r=((c=e.settings)==null?void 0:c.tableSettings)||{},{variantsToInfo:i,usedTableTypes:o}=sTe(n.variants,t,e,r);if(!i)return;let a={...e};return a.multiTableInfo={usedTableTypes:o},{tableParams:a,variantsToInfo:i}}s(oTe,"getMultiTableAllVariantsInfo");var Bf=class Bf{};s(Bf,"MultiViewsDefinition"),x([O(VH)],Bf.prototype,"enableAutoBinding",2),x([O(VH)],Bf.prototype,"showCounts",2),x([O({processingRuleAdapter(t,n,r){let i=n.specificParams,o=oTe(i,r);o?t.referenceAdaptation={specificParams:o,syncRuleProvider:Gl}:delete t.element}})],Bf.prototype,"variants",2);var XI=Bf,zI=new Map;zI.set("views",{processingRuleAdapter(e,t,n){let r=t.specificParams;r.multiTableInfo&&!r.multiTableInfo.variantInfo?e.referenceAdaptation={syncRuleProvider:XI}:delete e.element}});function QI(e,t,n){let r=s(function(i,o){var u;let a=o.specificParams,c,l;return(u=a.multiTableInfo)!=null&&u.variantInfo?(c=cr(o.pageInfo.pagePath,["quickVariantSelectionX","variants",a.multiTableInfo.variantInfo.accessor]),n&&!a.multiTableInfo.variantInfo.isChart&&(l=ee.t(n))):l=za,{manifestPath:c,disallowedReason:l}},"analyze");zI.set(e,$l(e,r,t))}s(QI,"setQuickVariantSelectionXOnlySyncRule");QI("entitySet",function(e,t,n){let r=n.serviceAVT.entitySets.map(i=>i.name);ws(r,e)});QI("annotationPath",function(e,t){let n=t.specificParams;kv(n.multiTableInfo.variantInfo.entityTypeDefinition,[YI.UIAnnotationTerms.SelectionPresentationVariant,YI.UIAnnotationTerms.SelectionVariant],e)});QI("showItemNavigationOnChart",void 0,"SHOWITEMNAVIGATIONONCHARTONLYCHART");function Qh(e){return zI.get(e)}s(Qh,"getSyncRuleForMultiTableManifestProperty");var ZI=require("@sap-ux/vocabularies-types/vocabularies/UI"),eg=me(Pe());var aT=class aT{};s(aT,"ViewOnTable"),x([O({manifest:{},processingRuleAdapter(t,n){let r=n.specificParams;t.element.enum=r.selectionVariants}})],aT.prototype,"annotationPath",2);var e_=aT,Zh=class Zh{};s(Zh,"MultiViewsOnTable"),x([O({manifest:{},processingRuleAdapter(t,n,r){t.manifestPath=cr(n.pageInfo.pagePath,["quickVariantSelection"]);let i=Cr(r.manifest,t.manifestPath);!dr(i,"showCounts",r.logger,"boolean")&&!dr(i,"variants",r.logger,"object")&&(i==null?void 0:i.showCounts)!==void 0&&jl(i.variants)&&(t.element[eg.SchemaTag.messages]=[{text:ee.t("QUICKVARIANTSELECTIONNOVARIANTS"),deletable:!0,type:eg.PropertyMessageType.Warning}])}})],Zh.prototype,"showCounts",2),x([O({manifest:{},processingRuleAdapter(t,n){let r=n.specificParams;t.manifestPath=cr(n.pageInfo.pagePath,["quickVariantSelection"]),t.additionalPropertiesAdaptation={suffix:r.suffix,syncRuleProvider:e_}}})],Zh.prototype,"variants",2);var t_=Zh;function UH(){return{processingRuleAdapter(e,t,n){let r=t.specificParams,i,o;if(r.multiTableInfo){if(r.multiTableInfo.variantInfo){delete e.element;return}i=ee.t("QUICKVARIANTSELECTIONDUPLICATE")}else{let a=EI(r.entityType,[ZI.UIAnnotationTerms.SelectionPresentationVariant,ZI.UIAnnotationTerms.SelectionVariant]);a.length===0&&(i=ee.t("QUICKVARIANTSELECTIONNOSELECTIONVARIANTANNOTATIONS")),o={selectionVariants:a}}if(i){let a=cr(t.pageInfo.pagePath),{value:c}=Cr(n.manifest,a,"quickVariantSelection");Bh(i,e,c,a),e.element[eg.SchemaTag.artifactType]="Manifest"}else e.referenceAdaptation={suffix:o.suffix,syncRuleProvider:t_,specificParams:o}}}}s(UH,"getSyncRuleForQuickVariantSelection");var Wl=me(Pe());var n_=require("@sap-ux/vocabularies-types/vocabularies/UI");var aTe={controlType:s(()=>Wl.ControlType.TableColumn,"controlType"),createFlexChange:ye},cTe=s(function(e,t){let n=t.specificParams;n.controlId?e.controlId=n.controlId:delete e.element},"processingRuleAdapterForTableColumnFlexProperty");function BH(e){let t={flex:aTe,processingRuleAdapter:cTe};return e&&(t.generate=Ys),t}s(BH,"getSyncRuleForTableColumnProperty");var io=class{};s(io,"GeneralTableColumn"),x([O(BH(!1))],io.prototype,"width",2),x([O(BH(!0))],io.prototype,"hAlign",2),x([O({processingRuleAdapter(t,n){let r=n.specificParams;r.actionInfo?t.referenceAdaptation={specificParams:r.actionInfo,suffix:Gh(r.actionInfo),syncRuleProvider:Mi}:delete t.element}})],io.prototype,"action",2),io=x([O({processingRuleAdapter(e,t){let n=e.element,r=t.specificParams,i=r.column.description;n.description=i,n[Wl.SchemaTag.dataType]=kl(r.column.dataField),r.column.message&&(n[Wl.SchemaTag.messages]=[r.column.message]),AI(r.column.dataField,n,!1);let o=$G(r.smartTableId,r.column.dataField,r.column.isAction),a;r.column.isAction&&(a={dataField:r.column,action:r.column.dataField,iconTabFilterKey:r.iconTabFilterKey,isViewNode:!1});let c={controlId:o,actionInfo:a};e.referenceAdaptation={specificParams:c}}})],io);var Wf=class Wf{};s(Wf,"CustomColumnDefinition"),x([O({})],Wf.prototype,"leadingProperty",2),x([O({})],Wf.prototype,"fragmentName",2),x([O({})],Wf.prototype,"cellsFragmentName",2);var GH=Wf,ic=class{};s(ic,"CustomColumnDefinitions"),x([O({})],ic.prototype,"items",2),ic=x([O({})],ic);function lTe(){return{manifestPath:void 0,customColumnsDefinition:void 0}}s(lTe,"getCustomColumnsDefinition");var HH="custom",Hl=class{};s(Hl,"GeneralTableColumns"),Hl=x([O({processingRuleAdapter(e,t){let n=t.specificParams,r=n.columns,i={},o={};r.forEach(function(c,l){let u={$ref:he+"GeneralTableColumn"};u[Wl.SchemaTag.propertyIndex]=l;let f=`TableColumn${l}`;i[f]=u;let p={column:c,smartTableId:n.smartTableId,iconTabFilterKey:n.iconTabFilterKey};o[f]=p});let{customColumnsDefinition:a}=lTe();a&&(i[HH]=a),e.element.properties=i,e.element.additionalProperties=!1,e.referenceAdaptation={processingRulesAdapter(c,l){let u=c===HH,f=o[c];l.referenceAdaptation={suffix:`${u?"":c}${Rf(n.iconTabFilterKey)}`,specificParams:f,syncRuleProvider:u?ic:io}}}}})],Hl);var WH={processingRuleAdapter(e,t){var u;let n=t.specificParams;if(n.multiTableInfo&&(!n.multiTableInfo.variantInfo||n.multiTableInfo.variantInfo.isChart)){delete e.element;return}let r=n.multiTableInfo?n.multiTableInfo.variantInfo.lineItemInfo:n.lineItemInfo;if(!r){delete e.element;return}let i=r_(n),o=n.multiTableInfo?n.multiTableInfo.variantInfo.smartControlId:n.tableId,a=r.dataFieldInfos.filter(function(f){var d;if(f.target!=="Column")return!1;let p=f.dataField;return p.$Type===n_.UIAnnotationTypes.DataField||p.$Type===n_.UIAnnotationTypes.DataFieldWithUrl?!!((d=p.Value)!=null&&d.path):!0}),l={entityType:n.multiTableInfo?n.multiTableInfo.variantInfo.entityTypeDefinition:n.entityType,tableType:i,columns:a,smartTableId:o,iconTabFilterKey:(u=n.multiTableInfo)==null?void 0:u.variantInfo.iconTabFilterKey};e.referenceAdaptation={suffix:o,specificParams:l,syncRuleProvider:Hl},e.element[Wl.SchemaTag.propertyIndex]=1}};function uTe(e){return!1}s(uTe,"isTypeAnalytical");function Gf(e){return uTe(e)?"AnalyticalTable":"ResponsiveTable"}s(Gf,"getDefaultTableType");function r_(e){var r,i,o;if((r=e.multiTableInfo)!=null&&r.variantInfo)return e.multiTableInfo.variantInfo.tableType;let t=(i=e.settings)==null?void 0:i.tableSettings;return t&&t.type||((o=e.settings)==null?void 0:o.tableType)||Gf(e.entityType)}s(r_,"getTableType");function lT(e){return r_(e)==="ResponsiveTable"}s(lT,"isResponsiveTable");function KH(e){var t,n;return!lT(e)&&!((n=(t=e.multiTableInfo)==null?void 0:t.variantInfo)!=null&&n.isChart)}s(KH,"isUiTable");function JH(e){var t;return((t=e.multiTableInfo)==null?void 0:t.variantInfo)&&e.multiTableInfo.variantInfo.variantDefinition.tableSettings||e.settings&&e.settings.tableSettings}s(JH,"getTableSettings");function o_(e){let t=JH(e);return(t==null?void 0:t.multiSelect)===!0}s(o_,"isMultiSelect");function fTe(e){let t=JH(e);return o_(e)&&t.selectAll!==!1}s(fTe,"isSelectAll");function qH(e,t){return e===void 0||e===""||Object.values(zh).includes(e)?!0:(je(t,{severity:so.LogSeverity.Error,message:ee.t("ILLEGALTABLETYPE",{property:e})}),!1)}s(qH,"checkTableType");var i_={flex:{controlType:s(()=>so.ControlType.SmartTable,"controlType"),createFlexChange:ye},processingRuleAdapter:s(function(e,t){var i;let n=t.specificParams;!(n.multiTableInfo&&!n.multiTableInfo.variantInfo||(i=n.multiTableInfo)!=null&&i.variantInfo.isChart)?e.controlId=n.multiTableInfo?n.multiTableInfo.variantInfo.smartControlId:n.tableId:delete e.element},"processingRuleAdapter")};function s_(e){let t={flex:{controlType:s(()=>so.ControlType.Table,"controlType"),createFlexChange:ye},processingRuleAdapter:s(function(n,r){let i=r.specificParams;if((!i.multiTableInfo||i.multiTableInfo.variantInfo)&&lT(i)){let o=i.multiTableInfo?`-${i.multiTableInfo.variantInfo.variantDefinition.key}`:"";n.controlId=`responsiveTable${o}`}else delete n.element},"processingRuleAdapter")};return e&&(t.generate=Ys),t}s(s_,"getSyncRuleForFlexResponsiveTable");function pTe(e,t){var i;let n=[];return(i=t.multiTableInfo)!=null&&i.variantInfo&&n.push("quickVariantSelectionX","variants",t.multiTableInfo.variantInfo.accessor),n.push("tableSettings"),cr(e.pageInfo.pagePath,n)}s(pTe,"getManifestPathForTableSettings");function cT(e,t,n,r,i){return $l(e,s(function(c,l,u){var h,m;let f=l.specificParams,p;return(m=(h=f.multiTableInfo)==null?void 0:h.variantInfo)!=null&&m.isChart?p=ee.t("NOCHARTPROPERTY",{property:e}):t&&(p=t(f,u,c)),{manifestPath:pTe(l,f),disallowedReason:p}},"analyze"),n,r?function(c,l){let u=c.specificParams;return r(u,l)}:void 0,i)}s(cT,"getSyncRuleForTableSettingsProperty");function dTe(e,t,n){return{processingRuleAdapter(r,i,o){var c,l;let a=i.specificParams;if((c=a.multiTableInfo)!=null&&c.variantInfo){delete r.element;return}if((l=a.settings)!=null&&l.isWorklist){let u=ee.t(t),f=cr(i.pageInfo.pagePath,[]),{value:p}=Cr(o.manifest,f,e);Bh(u,r,p,f);return}r.referenceAdaptation={syncRuleProvider:n}}}}s(dTe,"getOnlyTopLevelNotWorklistSyncRule");var uT=class uT{};s(uT,"CreateWithFilters"),x([Fn("https://ui5.sap.com/sdk/#/topic/189e2d8a59f04a2693a4fde7f4a91a65?q=createWithFilters"),O({manifest:{},processingRuleAdapter(t,n){let r=cr(n.pageInfo.pagePath,["createWithFilters"]);t.manifestPath=r}})],uT.prototype,"strategy",2);var a_=uT,_n=class _n{};s(_n,"Table"),x([O(Qh("entitySet")),Fn("https://ui5.sap.com/sdk/#/topic/6698b80fc1a543ebb5c07e0781e9b93e")],_n.prototype,"entitySet",2),x([O(Qh("annotationPath")),Fn("https://ui5.sap.com/sdk/#/topic/97dfeea4a8c346368cea6bf7a3e85478")],_n.prototype,"annotationPath",2),x([O(Qh("showItemNavigationOnChart"))],_n.prototype,"showItemNavigationOnChart",2),x([O(Qh("views"))],_n.prototype,"views",2),x([O(UH())],_n.prototype,"quickVariantSelection",2),x([O(i_)],_n.prototype,"showTablePersonalisation",2),x([O(i_),de({since:"1.50.0"})],_n.prototype,"exportType",2),x([O(i_)],_n.prototype,"useExportToExcel",2),x([O(s_(!1))],_n.prototype,"growingThreshold",2),x([O(s_(!0))],_n.prototype,"popinLayout",2),x([O(s_(!1))],_n.prototype,"includeItemInSelection",2),x([O($l("tableType",function(t,n){var a;let r=n.specificParams,i=cr(n.pageInfo.pagePath),o=(a=r.multiTableInfo)!=null&&a.variantInfo?za:ee.t("PROPERTYOBSOLETE",{property:"tableType"});return{manifestPath:i,disallowedReason:o}}))],_n.prototype,"tableType",2),x([O(cT("type",void 0,function(t,n){var o,a,c,l;let r=n.specificParams,i=(o=r.multiTableInfo)!=null&&o.variantInfo&&((a=r.settings)!=null&&a.tableSettings)?r.settings.tableSettings.type:"";if((c=r.multiTableInfo)!=null&&c.variantInfo&&r.multiTableInfo.usedTableTypes.nonResponsive>0&&r.multiTableInfo.usedTableTypes.responsive>0){let f=(i||Gf(r.entityType))==="ResponsiveTable";lT(r)!==f&&(t[so.SchemaTag.messages]=[{text:ee.t(f?"MULTITABLEONLYRESPONSIVE":"MULTITABLENORESPONSIVE"),type:so.PropertyMessageType.Warning}])}if((l=r.multiTableInfo)!=null&&l.variantInfo){delete t.$ref;let u=[];(!i||i==="ResponsiveTable"||r.multiTableInfo.usedTableTypes.responsive>0||r.multiTableInfo.usedTableTypes.nonResponsive<2)&&u.push("ResponsiveTable"),(i!=="ResponsiveTable"||r.multiTableInfo.usedTableTypes.nonResponsive>0||r.multiTableInfo.usedTableTypes.responsive<2)&&(u.push("GridTable"),u.push("AnalyticalTable"),u.push("TreeTable")),ws(u,t)}},void 0,"string")),Fn("https://ui5.sap.com/sdk/#/topic/5d270547f113468e83e06dd7ee408a45")],_n.prototype,"type",2),x([O($l("condensedTableLayout",function(t,n){var a;let r=n.specificParams,i=cr(n.pageInfo.pagePath),o;return(a=r.multiTableInfo)!=null&&a.variantInfo?o=za:lT(r)&&(o=ee.t("CONDENSEDTABLELAYOUTNOEFFECT")),{manifestPath:i,disallowedReason:o}}))],_n.prototype,"condensedTableLayout",2),x([O($l("enableTableFilterInPageVariant",function(t,n){var a,c,l;let r=n.specificParams,i=cr(n.pageInfo.pagePath),o;return(a=r.multiTableInfo)!=null&&a.variantInfo?o=za:(c=r.settings)!=null&&c.isWorklist?o=ee.t("ENABLETABLEFILTERINPAGEVARIANTWORKLIST"):((l=r.settings)==null?void 0:l.smartVariantManagement)===!1&&(o=ee.t("ENABLETABLEFILTERINPAGEVARIANTNOEFFECT")),{manifestPath:i,disallowedReason:o}}))],_n.prototype,"enableTableFilterInPageVariant",2),x([O(cT("multiSelect")),Fn("https://ui5.sap.com/sdk/#/topic/402fac73b4794a31983609ebdde580d2")],_n.prototype,"multiSelect",2),x([O(cT("selectAll",function(t,n,r){if(!o_(t))return r.description=r.description.split(`
|
|
317
|
-
`)[0],ee.t("SELECTALLNOMULTISELECT")},function(t,n){let r=n.specificParams,i=KH(r)?"SELECTALLDEFAULTINFOUITABLE":"SELECTALLDEFAULTINFORESPONSIVETABLE";t.description+=`
|
|
318
|
-
`+ee.t(i)}))],_n.prototype,"selectAll",2),x([O(cT("selectionLimit",function(t){if(!KH(t)||!o_(t))return ee.t("SELECTIONLIMITPREREQUISIT");if(fTe(t))return ee.t("SELECTIONLIMITNOSELECTALL")})),Fn("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd?q=selectionLimit")],_n.prototype,"selectionLimit",2),x([O(dTe("createWithFilters","NOCREATEWITHFILTERSINWORKLIST",a_))],_n.prototype,"createWithFilters",2),x([O({processingRuleAdapter(t,n){var c,l,u,f;let r=n.specificParams;if(r.multiTableInfo&&!r.multiTableInfo.variantInfo){delete t.element;return}t.element[so.SchemaTag.propertyIndex]=0;let i=r.multiTableInfo?r.multiTableInfo.variantInfo.lineItemInfo:r.lineItemInfo,o=(l=(c=r.multiTableInfo)==null?void 0:c.variantInfo)==null?void 0:l.isChart,a=(f=(u=r.multiTableInfo)==null?void 0:u.variantInfo)==null?void 0:f.iconTabFilterKey;sT(t,"Toolbar",(i==null?void 0:i.dataFieldInfos)??[],o,a)}})],_n.prototype,"toolbar",2),x([O(WH)],_n.prototype,"columns",2);var Hf=_n;var Ti=class{};s(Ti,"ListReportNew"),x([O({flex:{controlType:s(()=>Vi.ControlType.DynamicPage,"controlType"),createFlexChange:ye},processingRuleAdapter(t){t.controlId="page"}})],Ti.prototype,"fitContent",2),x([O({processingRuleAdapter(t){t.element[Vi.SchemaTag.propertyIndex]=0,t.referenceAdaptation={syncRuleProvider:Wo}}})],Ti.prototype,"header",2),x([O({processingRuleAdapter(t,n){var i;if((i=n.specificParams.settings)!=null&&i.isWorklist){delete t.element;return}t.element[Vi.SchemaTag.propertyIndex]=1,t.referenceAdaptation={syncRuleProvider:rc}}})],Ti.prototype,"filterBar",2),x([O({processingRuleAdapter(t,n,r){let i=n.specificParams;t.element[Vi.SchemaTag.icon]="Table",t.element[Vi.SchemaTag.propertyIndex]=2;let o=i.settings,a=i.tableType,c={settings:o,tableType:a,tableId:"listReport",lineItemInfo:i.lineItemInfo,entityType:i.entityType},l=!dr(o,"quickVariantSelectionX",r.logger,"object")&&(o==null?void 0:o.quickVariantSelectionX),u;l&&(jl(l.variants)?je(r.logger,{severity:Vi.LogSeverity.Warning,message:ee.t("QUICKVARIANTSELECTIONXNOVARIANTS")}):(u="Top",o.quickVariantSelection&&je(r.logger,{severity:Vi.LogSeverity.Error,message:ee.t("QUICKVARIANTSELECTIONDUPLICATE")}),c.multiTableInfo={usedTableTypes:{nonResponsive:a==="ResponsiveTable"?0:1,responsive:a==="ResponsiveTable"?1:0}})),t.referenceAdaptation={suffix:u,specificParams:c,syncRuleProvider:Hf}}})],Ti.prototype,"table",2),x([O({processingRuleAdapter(t,n){var i;let r=n.specificParams;t.element[Vi.SchemaTag.propertyIndex]=3,sT(t,"Footer",(i=r.lineItemInfo)==null?void 0:i.dataFieldInfos)}})],Ti.prototype,"footer",2),Ti=x([Xs({id:hH,pageId:Kh}),O({processingRuleAdapter(e,t,n){let{entityType:r,uIAnnotations:i}=WG(n),o=cr(t.pageInfo.pagePath),{parent:a}=Cr(n.manifest,o),c=a,l=c==null?void 0:c.tableSettings,u=(l==null?void 0:l.type)||(c==null?void 0:c.tableType)||Gf(r),f=KG(i,c,n.logger),p;if(f){let h=f.term+(f.qualifier?`#${f.qualifier}`:""),m=h.replace(Vi.UIVOCABULARYDOT,""),b=i[m];p=Dv(h,b,r,u,n,!1)}let d={settings:c,entityType:r,uIAnnotations:i,tableType:u,lineItemInfo:p};e.referenceAdaptation={specificParams:d}}})],Ti);var u_=require("path"),n8=require("fs");var qi=me(Pe());function hTe(e){let t={};return e.flex.forEach(function(r){let i=Wr(r);if(i){let o=i,a=t[o.controlId]||[];a.push(o),t[o.controlId]=a}}),t}s(hTe,"getChangeMapFormImportParameters");function c_(e,t,n,r,i){if(e===void 0)return;let o=Ro(t),a=o?n[o]:void 0;if(t[qi.SchemaTag.conversionExit]&&(e=wv(!0,i.conversionExitProvider,t,e,r.fragments,void 0,r.logger),!a))return e;if(a)return c_(e,a,n,r,i);if(t.type==="object"&&t.properties&&typeof e=="object"){let c={},l=!1;for(let u in t.properties){let f=t.properties[u],p=c_(e[u],f,n,r,i);p!==void 0&&(l=!0,c[u]=p)}return l?c:void 0}return t.type==="array"&&!Array.isArray(e)?typeof e=="string"&&e!==""?e.split(","):void 0:e}s(c_,"getConfigRep");function YH(e,t,n,r,i,o,a,c){let l=c_(i,o,a,c,t);if(l===void 0)return;let u=e,f=[];n.forEach(function(p){f.push(p);let d=p.propertyName;u[d]=u[d]||t.propertyInstanceProvider(f),u=u[d]}),u[r]=l}s(YH,"transferValueToConfig");function gTe(e,t,n,r,i,o,a,c){let l=i[qi.SchemaTag.controlId],u=c[l];if(!u)return;let f=-1,p=u.find(function(d,h){return d.content.property===r?(f=h,!0):!1});p&&(YH(e,t,n,r,p.type==="propertyBindingChange"?p.content.newBinding:p.content.newValue,i,o,a),u.length===1?delete c[l]:u.splice(f,1))}s(gTe,"importFlexChangesToConfigProperty");function mTe(e,t,n,r,i,o,a){let c=i[qi.SchemaTag.manifestPath],l,u=jb(c);u.at(-1)===r?(u.pop(),l=!0):l=!1;let{hasPath:f,value:p,parent:d}=Cr(a.manifest,u,l?r:void 0);if(!f)return;YH(e,t,n,r,l?p:d,i,o,a)}s(mTe,"importManifestToConfigProperty");function XH(e,t,n,r,i,o,a){if(qo(n.properties))for(let c in n.properties){let l=n.properties[c];if(!qo(l))continue;let u=l[qi.SchemaTag.artifactType];if(u===qi.ArtifactType.FlexChange)gTe(e,t,r,c,l,i,o,a);else if(u===qi.ArtifactType.Manifest&&l[qi.SchemaTag.manifestPath])mTe(e,t,r,c,l,i,o);else{let f=Ro(l),p=f?i[f]:void 0;if(qo(p)){let d=r.concat([{propertyName:c,propertyType:f.split("<")[0]}]);XH(e,t,p,d,i,o,a)}}}}s(XH,"importDefinitionIntoConfig");function zH(e,t,n){var p;let r=hl(e.manifest,qi.FioriElementsVersion.v2,e.logger);if(!r||r===qi.TemplateType.OverviewPageV2)return;let{parent:i}=Cr(e.manifest,t),o=(p=i==null?void 0:i.component)==null?void 0:p.name,a=typeof o=="string"?n(o):void 0;if(!a)return;let c=hTe(e),l=e.jsonSchema,u=l.definitions,f=a.propertyInstanceProvider([]);return XH(f,a,l,[],u,e,c),f}s(zH,"getConfigForPage");var mr=me(Pe());function yTe(e,t,n,r){let i=t===void 0?null:t,o=typeof i=="string"&&i.startsWith("{");r.push({controlId:e[mr.SchemaTag.controlId],controlType:e[mr.SchemaTag.controlType],propertyName:n,newValue:i,isBinding:o})}s(yTe,"addFlexChangeInfoToList");function QH(e,t,n,r){var c;if(n[mr.SchemaTag.conversionExit])return wv(!1,r.conversionExitProvider,n,e,r.fragments,t);if(n.type==="array"&&((c=n.items)==null?void 0:c.type)==="string")return!Array.isArray(e)||e.length===0?t===""||typeof t!="string"?t:void 0:e.join(",");if(e===t||n.type!=="object"||!n.properties)return e;let i=typeof t=="object"&&t!==null?{...t}:{},o=!1,a=!1;for(let l in n.properties){let u=n.properties[l];if(!qo(u))continue;let f=Ro(u);u=f&&r.globalTypeDefinitions[f]||u;let p=i[l];a=a||p!==void 0;let d=QH(e?e[l]:void 0,p,u,r);d===void 0?delete i[l]:(i[l]=d,o=!0)}return o?i:a?Object.keys(t).every(l=>qo(n.properties[l]))?void 0:i:t}s(QH,"getValueForManifest");function fT(e,t){if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e!==t;if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length||e.some(function(i,o){return fT(i,t[o])}):!0;let n=Object.keys(e).filter(i=>e[i]!==void 0),r=Object.keys(t).filter(i=>t[i]!==void 0);return fT(n,r)||n.some(function(i){return fT(e[i],t[i])})}s(fT,"isDifferent");function bTe(e,t,n,r,i){let o=n.manifest,a=e.length-1,c=e[a],l=[];e.some(function(p,d){if(d===a)return!0;let h=o[p];if(typeof h!="object"||h===null)return!0;o=h,l.push(o)});let u=l.length===a?o[c]:void 0,f=QH(t,u,r,i);if(fT(f,u))if(f===void 0||typeof u=="object"&&typeof f=="object"&&jl(f)){n.manifestChangeIndicator=mr.ChangeIndicator.Deleted;for(let p=a;p>0;p--){let d=l[p];if(!jl(d))break;let h=l[p-1],m=e[p];delete h[m]}}else{for(let p=l.length;p<a;p++){let d={};o[e[p]]=d,o=d}o[c]=f,n.manifestChangeIndicator=u===void 0?mr.ChangeIndicator.Created:mr.ChangeIndicator.Updated}}s(bTe,"applyManifestChange");function vTe(e,t,n,r,i){let o=e==null?void 0:e[n],a=r[mr.SchemaTag.artifactType];if(a===mr.ArtifactType.FlexChange)yTe(r,o,n,t.flexList);else if(a===mr.ArtifactType.Manifest&&r[mr.SchemaTag.manifestPath]){let c=jb(r[mr.SchemaTag.manifestPath]);bTe(c,o,t,r,i)}else{let c=Ro(r),l=c?i.globalTypeDefinitions[c]:void 0;qo(l)&&ZH(o,t,l,i)}}s(vTe,"transferConfigPropertyToExportResults");function ZH(e,t,n,r){let i=n.properties||{};for(let o in i){let a=n.properties[o];qo(a)&&vTe(e,t,o,a,r)}}s(ZH,"transferConfigToExportResults");function e8(e){let t=e.config,n=e.jsonSchema.definitions,r=(e.fragments||[]).map(function(c){return{...c,changeIndicator:mr.ChangeIndicator.NoChange}}),i=(e.views||[]).map(function(c){return{...c,changeIndicator:mr.ChangeIndicator.NoChange}}),o={globalTypeDefinitions:n,conversionExitProvider:e.conversionExitProvider,fragments:r,views:i},a={manifest:structuredClone(e.manifest),manifestChangeIndicator:mr.ChangeIndicator.NoChange,flexList:[],fragments:r,views:i};return ZH(t,a,e.jsonSchema,o),a}s(e8,"exportPage");var TTe=!1,STe={generateListReportSchemaV2(e,t){return IH(e,t)},createListReportConfig(e){return bH(e)},exportListReportPage(e,t,n){return NH(e,t,n)}},l_;function ETe(){let e;if(__dirname.endsWith("dist"))e=__dirname;else{let r=__dirname.lastIndexOf("specification");e=(0,u_.join)(__dirname.substring(0,r+13),"dist")}let t=(0,u_.join)(e,"schemas","v2","ListReportNewConfig.json");return JSON.parse((0,n8.readFileSync)(t,"utf8"))}s(ETe,"getPersistentListReportNewSchema");var r8=s(function(e){},"conversionExitProviderLR");function PTe(){let e=ETe();return function(t){return t===Kh?{genericSchema:e,syncRuleProvider:Ti}:void 0}}s(PTe,"createGenericSchemaInfoProvider");function ATe(e){return e===Kh?{propertyInstanceProvider(t){return new Ti},conversionExitProvider:r8}:void 0}s(ATe,"getConfigInfo");function t8(e){let{value:t}=Cr(e,[Fs.ManifestSection.generic],"pages");return Array.isArray(t)?[Fs.ManifestSection.generic,"pages",0]:t&&typeof t=="object"?[Fs.ManifestSection.generic,"pages",Object.keys(t)[0]]:void 0}s(t8,"getPathForRootPage");function xTe(e,t,n){let r=!e.layer||e.layer===Fs.FlexChangeLayer.Customer,i={controlId:n.controlId,controlType:n.controlType,content:{property:n.propertyName},sapui5Version:e.ui5Version,isCustomer:r};return n.isBinding?(i.content.newBinding=n.newValue,i.type="propertyBindingChange"):i.content.newValue=n.newValue,ye(i,t)}s(xTe,"flexInfoToChangeString");function OTe(){let e=PTe(),t=s(function(n,r,i){let o=structuredClone(r.manifest);return o[Fs.ManifestSection.app].id=n,r.flexList.map(xTe.bind(null,i,o))},"getFlexChangesAsStrings");return{generateListReportSchemaV2(n){var a;let r=n.manifest,i=t8(r);if(!i)return null;let o={appId:((a=r[Fs.ManifestSection.app])==null?void 0:a.id)||"",manifest:r,pagePath:i,annotations:[],parsedAnnotations:n.serviceAVT,fragments:n.fragments};return kH(o,e,n.logger)},createListReportConfig(n){let r=t8(n.manifest);return zH(n,r,ATe)},exportListReportPage(n,r,i){let o=n.fragments?n.fragments.map(function(f){return{...f,changeIndicator:Fs.ChangeIndicator.NoChange}}):[],a=n.views?n.views.map(function(f){return{...f,changeIndicator:Fs.ChangeIndicator.NoChange}}):[],c={appId:n.appId,config:n.page.config,manifest:n.manifest,jsonSchema:n.jsonSchema,conversionExitProvider:r8,fragments:o,views:a,logger:n.logger},l=e8(c),u=t(n.appId,l,r);return{manifest:l.manifest,fragments:l.fragments,flexChanges:u,manifestChangeIndicator:l.manifestChangeIndicator,views:l.views}}}}s(OTe,"createPageHandlerLRGeneric");function f_(){return TTe?(l_=l_||OTe(),l_):STe}s(f_,"getPageHandlerLR");function tg(e,t){return f_().generateListReportSchemaV2(e,t)}s(tg,"generateListReportSchemaV2");function pT(e){return f_().createListReportConfig(e)}s(pT,"createListReportConfig");function BI(e,t,n=!1){return f_().exportListReportPage(e,t,n)}s(BI,"exportListReportPage");function hT(e,t){var n,r;return(n=e.component)!=null&&n.name?Fb(No((r=e.component)==null?void 0:r.name),e.entitySet,void 0,t):t}s(hT,"generateId");function ITe(e,t,n,r,i,o,a){e.navigation={};let c=i8(t.pages,n,r,i,o);for(let l in c){let u=c[l];a[l]=u}for(let l in t.pages){let u=hT(t.pages[l],l);e.entitySet?e.navigation[u]=c[u].navigationProperty?`${e.entitySet}.${c[u].navigationProperty}`:e.entitySet:e.navigation[u]=c[u].navigationProperty?c[u].navigationProperty:u}}s(ITe,"getPageConfigsAndNavigations");function i8(e,t,n,r,i,o){var c;let a={};for(let l in e){let u=e[l],f=hT(u,l);if(!f)continue;let p={pageType:No((c=u.component)==null?void 0:c.name),entitySet:u.entitySet,...u.navigationProperty&&{navigationProperty:u.navigationProperty},...u.defaultLayoutType&&{defaultLayoutType:u.defaultLayoutType}};a[f]=p;let d=Object.keys(r).find(h=>h.includes(f))||Object.keys(r).find(h=>h.includes(f.slice(0,-1)))||Object.keys(r).find(h=>h.includes(p.pageType));if(d)if(p.pageType===Ln.PageTypeV2.ListReport){let h={manifest:n,flex:t,jsonSchema:r[d],entitySet:p.entitySet,fragments:i,logger:o};p.config=pT(h)}else if(p.pageType===Ln.PageTypeV2.AnalyticalListPage){let h={manifest:n,flex:t,jsonSchema:r[d],entitySet:p.entitySet,fragments:i,logger:o};p.config=Qv(h)}else{let h={manifest:n,flex:t,jsonSchema:r[d],entitySet:p.entitySet,fragments:i,logger:o};p.config=Xv(h)}u.pages&&ITe(p,u,t,n,r,i,a)}return a}s(i8,"getPagesAndConfigs");var p_=class p_ extends $f{constructor(t){gr();let n;t.manifest[Ln.ManifestSection.generic]?n=t.manifest[Ln.ManifestSection.generic].pages:je(t.logger,{severity:Ln.LogSeverity.Error,message:ee.t("NOFE"),location:{path:Ln.MANIFESTPATH,range:[Ln.ManifestSection.generic]}}),n||je(t.logger,{severity:Ln.LogSeverity.Error,message:ee.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:Ln.MANIFESTPATH,range:[Ln.ManifestSection.generic]}});let r=n&&Object.keys(n)[0],i=n&&hT(n[r],r),o=new ja,a=ar(Ln.SchemaType.Application),c=t.appSchemas[a.filename];lr(o,t.manifest,c.definitions.AppSettings,void 0),super(t.manifest,t.appSchemas,i,i8(n,t.flexChanges,t.manifest,t.appSchemas,t.fragments,t.logger),Ln.FioriElementsVersion.v2,o)}};s(p_,"V2AppProvider");var dT=p_;function ng(e,t,n){var i,o;let r={};for(let a in e){let c=e[a];if((i=c.component)!=null&&i.name||je(n,{severity:Ln.LogSeverity.Error,message:ee.t("COMPONENTNOTDEFINED",{pageName:a}),location:{path:Ln.MANIFESTPATH}}),((o=c.component)==null?void 0:o.name)===t){let l=hT(c,a);r[l]=c}if(t===Ln.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&c.pages){let l=ng(c.pages,t,n);for(let u in l)r[u]=l[u]}}return r}s(ng,"getPages");var Jo=me(Pe());var d_=class d_ extends $f{constructor(t){let n={},r=t.manifest[Jo.ManifestSection.ovp],i=new ja,o=ar(Jo.SchemaType.Application);lr(i,t.manifest,t.appSchemas[o.filename].definitions.AppSettings,void 0);let a=Object.keys(t.appSchemas).find(f=>f.includes(Jo.PageTypeV2.OverviewPage)),c={manifest:t.manifest,jsonSchema:t.appSchemas[a]},l={pageType:Jo.PageTypeV2.OverviewPage,config:zv(c),entitySet:r.globalFilterEntitySet},u=Fb(l.pageType,l.entitySet);n[u]=l,super(t.manifest,t.appSchemas,u,n,Jo.FioriElementsVersion.v2,i,t.logger)}};s(d_,"V2OvpProvider");var gT=d_;var s8=require("fs"),Kl=require("path"),h_=me(Pe());var o8=s((e,t,n=__dirname)=>{let r=t===h_.SchemaType.Application?`${h_.SchemaType.Application}${e.toUpperCase()}.json`:`${t}Config.json`;if(n.endsWith("dist"))return(0,Kl.join)(n,"schemas",e,r);if(n.endsWith((0,Kl.join)("specification","packages","specification")))return(0,Kl.join)(n,"dist","schemas",e,r);if(n.endsWith((0,Kl.join)("src","specification")))return(0,Kl.join)(n,"..","..","dist","schemas",e,r);if(n.indexOf("node_modules")>-1){let i=n.substring(0,n.indexOf("node_modules")+12);return(0,Kl.join)(i,"@sap","ux-specification","dist","schemas",e,r)}},"getPathToGenericSchema"),_Te=s(async e=>new Promise((t,n)=>{(0,s8.readFile)(e,{encoding:"utf8"},(r,i)=>{r?n(r):t(JSON.parse(i))})}),"readJsonSchema"),mT=s(async(e,t)=>{try{let n=o8(e,t,__dirname);return await _Te(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function CTe(e,t){let n={},r=[];switch(r=[at.SchemaType.Application],e){case at.TemplateType.ListReportObjectPageV2:r.push(at.SchemaType.ListReport,at.SchemaType.ObjectPage);break;case at.TemplateType.AnalyticalListPageV2:r.push(at.SchemaType.AnalyticalListPage,at.SchemaType.ObjectPage);break;case at.TemplateType.OverviewPageV2:r.push(at.SchemaType.OverviewPage);break;default:break}for(let i of r){let o=ar(i);n[o.filename]=await mT(t,i)}return n}s(CTe,"getGenericSchemas");function c8(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let r=zs(at.UIVOCABULARY,e);for(let i of n){if(!i.annotations||!i.annotations[r])continue;let{LineItem:o,Facets:a}=i.annotations[r];o&&!o.qualifier&&t.LineItems.push(i.name),a&&!a.qualifier&&t.Facets.push(i.name)}return t}s(c8,"getAnnotationsForUi");function rg(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}s(rg,"getEntitySetByEntitySetName");function wTe(e,t,n){var i;let r=ng(e.manifest[at.ManifestSection.generic].pages,at.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let o in r){let a=r[o].entitySet;e.entitySet=rg(a,e.serviceAVT);let c=ar(at.SchemaType.ListReport,((i=e.entitySet)==null?void 0:i.name)||a),l=ar(at.SchemaType.ListReport);t[c.filename]=tg(e,n[l.filename])}}s(wTe,"generateAppSchemaV2LR");function a8(e,t,n){let r=ng(e.manifest[at.ManifestSection.generic].pages,at.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let i in r){let o=r[i].entitySet,a=rg(o,e.serviceAVT);a||je(e.logger,{severity:at.LogSeverity.Error,message:ee.t("ENTITYSETNOTFOUND",{entitySetName:o})}),e.entitySet=a;let c=ar(at.SchemaType.ObjectPage,(a==null?void 0:a.name)||o),l=ar(at.SchemaType.ObjectPage);n[c.filename]=ig(e,t[l.filename])}}s(a8,"generateObjectPageSchemasV2");function NTe(e,t,n,r){var o;let i={};if(r===at.TemplateType.ListReportObjectPageV2&&n)wTe(e,i,t),a8(e,t,i);else if(r===at.TemplateType.AnalyticalListPageV2&&n){let a=ng(e.manifest[at.ManifestSection.generic].pages,at.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let c in a){let l=a[c].entitySet;e.entitySet=rg(l,e.serviceAVT);let u=ar(at.SchemaType.AnalyticalListPage,((o=e.entitySet)==null?void 0:o.name)||l),f=ar(at.SchemaType.AnalyticalListPage);i[u.filename]=sg(e,t[f.filename])}a8(e,t,i)}else if(r===at.TemplateType.OverviewPageV2){let a=ar(at.SchemaType.OverviewPage),c=ar(at.SchemaType.OverviewPage);i[a.filename]=og(t[c.filename],e.manifest)}return{...t,...i}}s(NTe,"generateAppSchemasV2");async function l8(e,t,n){if(e.fioriElementsVersion===at.FioriElementsVersion.v2){let r=await CTe(n,e.fioriElementsVersion);return NTe(e,r,t,n)}else{let r=ee.t("INVALIDSPECFORV4");je(e.logger,{severity:at.LogSeverity.Info,message:r})}}s(l8,"generateAppSchemas");function RTe(e){let t,n=[];switch(e.templateType){case at.TemplateType.ListReportObjectPageV2:case at.TemplateType.AnalyticalListPageV2:t=new dT(e);break;case at.TemplateType.OverviewPageV2:t=new gT(e);break;default:break}if(t){let{appConfig:r,pageConfigs:i}=t.createConfigFiles();for(let o in r)n.push({dataSourceUri:o,fileContent:JSON.stringify(r[o],null,4)});for(let o in i)n.push({dataSourceUri:o,fileContent:JSON.stringify(i[o],null,4)})}return n}s(RTe,"importConfigs");function u8(e,t){let n=[];for(let r of Object.keys(e).sort()){let i;r===at.SchemaType.Application?i=`${at.DirName.Schemas}/${at.FileName.App[0].toUpperCase()}${at.FileName.App.slice(1)}`:i=`${at.DirName.Schemas}/${r}.json`,n.push({dataSourceUri:i,fileContent:JSON.stringify(e[r],null,4)})}return t&&(n=n.concat(t)),n}s(u8,"getFileList");async function g_(e){var m,b;gr();let{manifest:t,annotations:n,logger:r,fragments:i,views:o,featureToggles:a}=e;new Wh().doesUi5VersionFitDistTags((b=(m=t["sap.ui5"])==null?void 0:m.dependencies)==null?void 0:b.minUI5Version,r);let l=jx(t),u=dl(n,r),f=c8(u),p=hl(t,l,r),h=await l8({templateType:p,manifest:t,serviceAVT:u,fragments:i,views:o,fioriElementsVersion:l,logger:r,featureToggles:a},f,p);if(h)return u8(h)}s(g_,"importProjectSchema");async function m_(e){var F,N;gr();let{manifest:t,annotations:n,logger:r,fragments:i,views:o,flex:a,featureToggles:c}=e;new Wh().doesUi5VersionFitDistTags((N=(F=t["sap.ui5"])==null?void 0:F.dependencies)==null?void 0:N.minUI5Version,r);let u=jx(t),f=MB(t),p=dl(n,r),d=hl(t,u,r),h={templateType:d,manifest:t,serviceAVT:p,fragments:i,views:o,fioriElementsVersion:u,logger:r,featureToggles:c},m=c8(p),b=await l8(h,m,d);if(!b)return;let I=RTe({manifest:t,flexChanges:a,appSchemas:b,templateType:d,logger:r,serviceAVT:p,fragments:i,views:o,fioriElementsVersion:u,oDataVersion:f});return u8(b,I)}s(m_,"importProjectSchemaAndConfig");var FTe=["header","sections","footer"];function LTe(e,t,n,r){t.properties[n][ge.SchemaTag.artifactType]=ge.ArtifactType.FlexChange;let i;switch(r){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":i=ge.ControlType.Section;break;case"ObjectPageSubSectionV2":i=ge.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":i=ge.ControlType.Group;break;case"ObjectPageSubSectionChartV2":i=ge.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":i=ge.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":i=ge.ControlType.ObjectPageHeaderSection;break}i&&(jt(e,t,n),t.properties[n][ge.SchemaTag.controlType]=i)}s(LTe,"addFlexChangeForSection");function jTe(e,t,n,r,i){return(o,a)=>{if(!o.Determining&&o.$Type===sc.UIAnnotationTypes.DataFieldForAction){let{actionName:c,actionId:l,namespace:u}=SI(o,i);if(!l)return;let f=o.Label||c,p=`HeaderAction<${ln(l)}>`;t.definitions[p]=JSON.parse(JSON.stringify(t.definitions.HeaderAction));let d=n.fullyQualifiedName.replace(`@${sc.UIAnnotationTerms.Identification}`,`/@${sc.UIAnnotationTerms.Identification}`);t.definitions[p][ge.SchemaTag.annotationPath]=`/${d}/${a}`,t.definitions[p][ge.SchemaTag.actionType]=ge.ActionType.Annotation,t.definitions[p].description=f,t.definitions[p][ge.SchemaTag.keys]=[{name:ge.SchemaKeyName.action,value:c}],u&&(t.definitions[p][ge.SchemaTag.target]=u),r.properties[l]={$ref:`${he}${p}`}}}}s(jTe,"addHeaderActionCallBackV2");function DTe(e,t,n,r,i,o,a,c){let l,u;if(o.ID&&o.Label?l=o.ID+o.Label.replace(/\s+/g,""):o.ID?l=o.ID:o.Label&&(l=o.Label.replace(/\s+/g,"")),l?u=`${ge.DefinitionName.CustomColumns}<${n}><${a}><${l}>`:u=`${ge.DefinitionName.CustomColumns}<${n}><${a}>`,e.definitions[u])return u;let f=`${ge.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[f]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(ee.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let p=[],d=i==null?void 0:i.entityTypes.find(m=>m.name===r),h=ec(t[ge.ManifestSection.generic].pages,n,p);return Lf(e,d,h,t,c,u,f,o.ID),u}s(DTe,"ensureCustomColumnDefinitionExists");function ag(e,t,n,r){t.properties=JSON.parse(JSON.stringify(e.definitions[r].properties)),t.properties.visible&<e(e,t,"visible",n)}s(ag,"addAppSchemaDefinition");function $Te(e,t,n){e.properties[t]={$ref:`${he}${n}`}}s($Te,"addSectionReference");function yT(e,t,n,r){let i=ln(`${e}<${t}>`);try{r.definitions[i]=JSON.parse(JSON.stringify(r.definitions[e]))}catch{throw new Error(ee.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}r.definitions[i].properties.columns.$ref=he+t,r.definitions[i].properties.toolBar.$ref=`${he}ObjectPageToolBar<${t}>`,r.definitions[i][ge.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(r.definitions[i].title=ge.FACETTITLEPREFIX+n.ID,r.definitions[i][ge.SchemaTag.keys]=[{name:"ID",value:n.ID}]),r.definitions[i].description=ge.DefinitionName.Table,r.definitions[i].properties.quickVariantSelection.$ref=`${he}QuickVariantSelectionOP<${t}>`,r.definitions[`QuickVariantSelectionOP<${t}>`]=JSON.parse(JSON.stringify(r.definitions.QuickVariantSelectionOP)),r.definitions[`QuickVariant<${t}>`]=JSON.parse(JSON.stringify(r.definitions.QuickVariant)),r.definitions[`QuickVariantSelectionOP<${t}>`].properties.variants.patternProperties["^[0-9]+$"].$ref=`${he}QuickVariant<${t}>`,Mv(n.entityType,r,`QuickVariant<${t}>`)}s(yT,"addTableDefinition");function kTe(e,t,n,r,i,o,a){if(i.base!==ge.FacetBase.LineItem||!n)return;let c=n.split("::")[0],l=`${a}<${n}>`;r.definitions[l]=gl(r,i,n);let u=r.definitions[l];ag(r,u,a,"ObjectPageSectionTableV2");let f=JSON.parse(JSON.stringify(r.definitions.ObjectPageSectionTableV2.properties[ge.PropertyName.table]));f.anyOf=[{$ref:`${he}ObjectPageResponsiveTable<${n}>`},{$ref:`${he}ObjectPageAnalyticalTable<${n}>`},{$ref:`${he}ObjectPageGridTable<${n}>`},{$ref:`${he}ObjectPageTreeTable<${n}>`}],u.properties.table=f,u[ge.SchemaTag.annotationPath]=i.annotationPath,zd(i,u,n),yT("ObjectPageResponsiveTable",n,i,r),yT("ObjectPageGridTable",n,i,r),yT("ObjectPageTreeTable",n,i,r),yT("ObjectPageAnalyticalTable",n,i,r);let p,d=nH(i,t.serviceAVT);d&&(p=DTe(r,t.manifest,d.name,i.entityType.name,t.serviceAVT,i,n,t.fragments));for(let h in o){let m=o[h];m.base===ge.FacetBase.LineItem&&(m.ID===c||h.includes(c))&&Ff(!0,r,m.target,m.entityType,m.ID||h,p)}bT(r,void 0,f,{manifest:t.manifest,pageName:e,sectionId:n})}s(kTe,"handleLineItem");function MTe(e,t,n,r,i,o=!1){e.definitions[t]=gl(e,n,r);let a=e.definitions[t],c=o?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";ag(e,a,i,c),a.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},a.properties.subsections[ge.SchemaTag.isViewNode]=!0}s(MTe,"handleSubSection");function VTe(e,t,n,r,i){e.definitions[t]=gl(e,n,r);let o=e.definitions[t];ag(e,o,i,"ObjectPageSectionChartV2")}s(VTe,"handleSectionChart");function f8(e,t,n,r,i,o){e.definitions[t]=gl(e,n,r);let a=e.definitions[t];ag(e,a,i,o||"CommonHeaderFacetSettings"),a[ge.SchemaTag.annotationPath]=n.annotationPath,a[ge.SchemaTag.isViewNode]=!0,a[ge.SchemaTag.dataType]=Vv(n==null?void 0:n.target)}s(f8,"handleHeaderFacet");function qTe(e,t,n){let r=e.definitions[t],i=r[ge.SchemaTag.dataType]=Vv(n==null?void 0:n.target);i==="Rating"?r.title=`${r.title}::RatingIndicatorVBox`:i==="Progress"?r.title=`${r.title}::ProgressIndicatorVBox`:r.title=`${r.title}::DataPoint`}s(qTe,"addDataPointHeaderFacetDataType");function UTe(e,t,n,r,i){e.definitions[t]=gl(e,n,r);let o=e.definitions[t];return ag(e,o,i,"ObjectPageSectionFormV2"),o[ge.SchemaTag.annotationPath]=n.annotationPath,o[ge.SchemaTag.isViewNode]=!0,o}s(UTe,"handleFormSection");function BTe(e,t,n){let r=new Map([[ge.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[ge.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[ge.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[ge.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[ge.FacetBase.Form,"ObjectPageHeaderSectionForm"],[ge.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),i=new Map([[ge.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[ge.FacetBase.LineItem,"ObjectPageSectionTableV2"],[ge.FacetBase.Chart,"ObjectPageSectionChartV2"],[ge.FacetBase.Address,"ObjectPageSectionAddressV2"],[ge.FacetBase.Contact,"ObjectPageSectionContactV2"],[ge.FacetBase.Form,"ObjectPageSectionFormV2"],[ge.FacetBase.Identification,"ObjectPageSectionFormV2"]]),o=new Map([[ge.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[ge.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[ge.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[ge.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[ge.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[ge.FacetBase.Form,"ObjectPageSubSectionFormV2"],[ge.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?r.get(e):t?o.get(e):i.get(e)}s(BTe,"getSectionType");function GTe(e,t,n){let r=e.ID||t;return n==="ObjectPageSectionV2"&&(r=r.replace(`@${sc.UIAnnotationTerms.Facets}`,e.base)),`${r}`}s(GTe,"getReferenceKey");function d8(e,t,n,r,i,o,a=!1,c=!1){let l=n[r],u=BTe(l.base,a,c),f=GTe(l,r,u),p=`${u}<${f}>`;switch($Te(i,f,p),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!c,MTe(o,p,l,r,u,c);let d=o.definitions[p].properties.subsections;for(let h in l.facets)d8(e,t,l.facets,h,d,o,a,c);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{kTe(e,t,f,o,l,n,u);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{VTe(o,p,l,f,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let d=UTe(o,p,l,f,u);zG(ge.SectionType.Section,l,d,o,ge.FioriElementsVersion.v2,r);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{PI(l,f,i,o,ge.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{PI(l,f,i,o,ge.SectionType.Section,ge.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{f8(o,p,l,f,u);break}case"ObjectPageHeaderSectionDataPoint":{f8(o,p,l,f,u),qTe(o,p,l);break}default:i.properties[r]=gl(o,l,f)}}s(d8,"addSection");function p8(e,t,n,r,i,o,a=!1){if(t)for(let c in n)d8(e,i,n,c,r,o,!1,a)}s(p8,"addSectionsFromFacets");function h8(e,t,n,r){var p,d,h,m,b,T;let i=n.definitions[ge.DefinitionName.Sections];i[ge.SchemaTag.isViewNode]=!0,(p=t.entitySet)!=null&&p.entityType&&(i[ge.SchemaTag.annotationPath]=`/${t.entitySet.entityType.fullyQualifiedName}/@${sc.UIAnnotationTerms.Facets}`);let o=n.definitions[ge.DefinitionName.HeaderSections];if(o[ge.SchemaTag.isViewNode]=!0,o.properties||(o.properties={}),o.additionalProperties=!1,(d=t.entitySet)!=null&&d.entityType&&(o[ge.SchemaTag.annotationPath]=`/${t.entitySet.entityType.fullyQualifiedName}/@${sc.UIAnnotationTerms.HeaderFacets}`),!r)return;let a=kB((h=t.entitySet)==null?void 0:h.entityType,t.serviceAVT,ge.FioriElementsVersion.v2,t.logger),c=$B((m=t.entitySet)==null?void 0:m.entityType,t.serviceAVT,ge.FioriElementsVersion.v2,t.logger),l=a&&!!Object.keys(a).length,u=c&&!!Object.keys(c).length;if(!l&&!u)return;for(let I in r){let F=r[I];(T=(b=t.entitySet)==null?void 0:b.name)!=null&&T.includes(F.entitySet)?(p8(e,l,a,i,t,n),p8(e,u,c,o,t,n,!0)):h8(e,t,n,F.pages)}let f=n.definitions.CustomSections;for(let I in f.properties)i.properties[I]=f.properties[I]}s(h8,"addSections");function HTe(e,t,n){tH(e,t),eH(e,t,n,jTe,!0)}s(HTe,"addHeader");function WTe(e,t,n,r){let i=VB(t,n,r,void 0,!0);i&&sH(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],i,["ID","key"])}s(WTe,"addRelatedFacetKeysType");function bT(e,t,n,r,i,o=!1){var a;Uo(e,t,n,{...r,targetAnnotation:(a=r.sectionId)==null?void 0:a.replace("::","/"),targetAnnotationEncoded:r.sectionId,pathsParts:[r.sectionId]},ro.ObjectPage,i,o)}s(bT,"addManifestPathsToPropertiesOP");function KTe(e,t){e.manifestPath=Nf(t),bT(e,"ObjectPage",e,t),bT(e,void 0,e.properties.header,t);let n=e.definitions[ge.DefinitionName.Sections].properties??{};for(let r in n)if(r==="custom"){let i=n[r];i.items.anyOf.forEach(a=>{let c=bf(th());a.manifestPath=La(c,"||"),i.manifestPath=c;let l=a.$ref?wb(a.$ref):void 0;bT(e,l,a,{pageName:[""],sectionId:""},{name:ge.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,relativeManifestPath:ge.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,absoluteManifestPath:c},!0),delete a.manifestPath})}}s(KTe,"addManifestPathsToStaticNodes");function ig(e,t){var l,u,f,p;gr();let n=JSON.parse(JSON.stringify(t)),r={};for(let d in n.definitions.CustomSections.properties)r[d]=n.definitions.CustomSections.properties[d];n.properties[ge.PropertyName.sections]={$ref:he+"Sections"};let i=(l=e.entitySet)==null?void 0:l.entityType,o=(u=e.entitySet)==null?void 0:u.name;e.entityType=i;let a=e.manifest[ge.ManifestSection.generic].pages;if(!a)return je(e.logger,{severity:ge.LogSeverity.Error,message:ee.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:ge.MANIFESTPATH,range:[ge.ManifestSection.generic]}}),n;let c=[];return ec((p=(f=e.manifest)==null?void 0:f[ge.ManifestSection.generic])==null?void 0:p.pages,o,c),HTe(n,i,e.serviceAVT),n.definitions[ge.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},h8(c,e,n,a),WTe(n,i,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:r,additionalProperties:!1},n.definitions.Sections[ge.SchemaTag.isViewNode]=!0):delete n.properties[ge.PropertyName.sections]),ZG(n,e,ge.FioriElementsVersion.v2,a),KTe(n,{manifest:e.manifest,pageName:c}),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.CommonHeaderFacetSettings,delete n.definitions.ObjectPageHeaderSection,delete n.definitions.ObjectPageCustomHeaderSectionFragment,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTable,delete n.definitions.ObjectPageAnalyticalTable,delete n.definitions.ObjectPageTreeTable,delete n.definitions.ObjectPageGridTable,delete n.definitions.ObjectPageToolBar,delete n.definitions.ObjectPageToolBarActions,delete n.definitions.ObjectPageForm,delete n.definitions.ObjectPageFormFields,delete n.definitions.ObjectPageFormActions,delete n.definitions.FieldPathOP,yf(n,FTe),n}s(ig,"generateObjectPageSchemaV2");var Jt=me(Pe());var m8=require("@sap-ux/vocabularies-types/vocabularies/UI");var JTe=["filterBar","keyPerformanceIndicators","chart","table","footer"];function g8(e,t){let n=t.value;return n.includes(Jt.UIVOCABULARYALPHADOT+e)?n.replace(Jt.UIVOCABULARYALPHADOT,""):""}s(g8,"retrieveNameWithoutVocabulary");function YTe(e,t,n){var m;let r=(m=e==null?void 0:e.component)==null?void 0:m.settings,i=r==null?void 0:r.qualifier,o=s(function(b){let T=b+(i?"#"+i:"");return t[T]},"getAnnotationWithQualifier"),a=o("SelectionPresentationVariant"),c=a?a.PresentationVariant:o("PresentationVariant");if(a&&!c){let b=i?ee.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:i}):ee.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return je(n,{severity:Jt.LogSeverity.Error,message:b}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let l=(c==null?void 0:c.Visualizations)||[],u="",f="";l.some(function(b){return u=u||g8("LineItem",b),f=f||g8("Chart",b),u&&f}),u=u||"LineItem",f=f||"Chart";let p=t[u],d=t[f],h=(p||r.quickVariantSelectionX?0:1)+(d?0:2);if(h>0){let b=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][h-1],T=ee.t(b);je(n,{severity:Jt.LogSeverity.Warning,message:T})}return{lineItemAnnotation:p,chartAnnotation:d}}s(YTe,"getLineItemAndChartAnnotation");function XTe(e,t){let n=e.definitions[Jt.DefinitionName.ChartSettings],r=t.fullyQualifiedName.split("@");n[Jt.SchemaTag.annotationPath]=`/${r[0]}/@${r[1]}`}s(XTe,"addChart");function vT(e,t,n,r){var o;let i;if(r.targetAnnotation){let a=(o=r.targetAnnotation)==null?void 0:o.split("/");i=a[a.length-1]}else i=`@${m8.UIAnnotationTerms.LineItem}`;Uo(e,t,n,{...r,pathsParts:[i,"",i]},ro.AnalyticalListPage)}s(vT,"addManifestPathsToPropertiesALP");function zTe(e,t){e.manifestPath=Nf(t),vT(e,"AnalyticalListPage",e,t),vT(e,void 0,e.properties.chart,t),vT(e,void 0,e.properties.table,t),vT(e,void 0,e.properties.filterBar,t)}s(zTe,"addManifestPathsToStaticNodes");function sg(e,t){var l,u,f,p,d;let n=JSON.parse(JSON.stringify(t));n.properties[Jt.PropertyName.table].anyOf[0].$ref=he+"ALPResponsiveTable<LineItems>";let r=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));r.properties.columns.$ref=`${he}${Jt.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${he}${Jt.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=r,n.properties[Jt.PropertyName.table].anyOf[1].$ref=`${he}ALPGridTable<LineItems>`;try{let h=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));h.properties.columns.$ref=`${he}${Jt.DefinitionName.LineItems}`,h.properties.toolBar.$ref=`${he}${Jt.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=h}catch{throw new Error(ee.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[Jt.PropertyName.table].anyOf[2].$ref=`${he}ALPAnalyticalTable<LineItems>`;let i=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));i.properties.columns.$ref=`${he}${Jt.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${he}${Jt.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=i,BG(n.definitions.TableColumnExtensionTypeV2.enum,[Jt.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let o=[],a=Uf(e.manifest[Jt.ManifestSection.generic].pages,o,e.logger),c=(l=e.entitySet)==null?void 0:l.entityType;if(!c)je(e.logger,{severity:Jt.LogSeverity.Error,message:ee.t("NOENTITYTYPE4SET",{entitySetName:(u=e.entitySet)==null?void 0:u.name})});else{jf(n);let h=(f=c==null?void 0:c.annotations)==null?void 0:f.UI,{lineItemAnnotation:m,chartAnnotation:b}=YTe(a,h,e.logger);m&&XB.forEach(I=>{n.definitions[I][Jt.SchemaTag.annotationPath]=Os(c==null?void 0:c.fullyQualifiedName,m.term,m.qualifier)}),Ff(!1,n,m,c),b&&XTe(n,b);let T=(d=(p=c==null?void 0:c.annotations)==null?void 0:p.UI)==null?void 0:d.SelectionFields;if(jv(n,T,c),!a)return je(e.logger,{severity:Jt.LogSeverity.Error,message:ee.t("NOLR"),location:{path:Jt.MANIFESTPATH,range:[Jt.ManifestSection.generic]}}),n;Lf(n,c,a,e.manifest,e.fragments),MI(c,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 zTe(n,{manifest:e.manifest,pageName:o}),yf(n,JTe),n}s(sg,"generateAnalyticalListReportSchemaV2");var b8=me(Pe());var y8=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function v8(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(r=>{let i=r.$ref.split("/");return i[i.length-1]})}s(v8,"getCardDefinitionNames");function QTe(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},r=Object.keys(n),i=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},o=[];o=o.concat(Object.keys(i).filter(l=>r.includes(i[l].dataSource)));let a=e.definitions;a.CardModel={type:"string"},ws(o,a.CardModel);let c=v8(e);for(let l of c){let u=a[l].properties.model;delete u.type,u.$ref=he+"CardModel"}}s(QTe,"addModelsEnum");function ZTe(e,t){let n=e.properties;for(let r in y8){let i=y8[r],o=i.key;n[o]&&(n[o].messages=[{text:pf(o,{since:i.since,deprecated:{since:i.deprecated.since,text:i.deprecated.text}})}]);let a=t==null?void 0:t["sap.ovp"];a&&!a[o]&&(n[o].hidden=!0)}}s(ZTe,"markDeprecatedProperties");function eSe(e){let t=La("$",b8.ManifestSection.ovp),n=La(t,"cards");e.manifestPath=t,e.properties.cards.manifestPath=n,Uo(e,"OverviewPage",e,{},ro.OverviewPage);let r=e.definitions,i=v8(e);for(let o of i)Uo(e,o,r[o],{cardKeys:["cards","cardKey"]},ro.OverviewPage,{name:"cards",absoluteManifestPath:n,relativeManifestPath:"cards"},!0)}s(eSe,"addManifestPathsToStaticNodes");function T8(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},ZTe(n,t),QTe(n,t),eSe(n),n}s(T8,"generateOverviewPageSchemaV2");var oc=me(Pe());function y_(e,t,n,r,i,o){gr();let a=dl(e,t),c={templateType:o,fioriElementsVersion:oc.FioriElementsVersion.v2,manifest:n,fragments:r,serviceAVT:a,logger:t};return c.entitySet=rg(i,c.serviceAVT),c.entitySet||je(c.logger,{severity:oc.LogSeverity.Error,message:ee.t("ENTITYSETNOTFOUND",{entitySetName:i})}),c}s(y_,"prepareGenerationV2");function b_(e,t,n,r,i,o){let a=y_(n,o,r,i,t,oc.TemplateType.ListReportObjectPageV2);return ig(a,e)}s(b_,"generateObjectPageInterfaceV2");function v_(e,t,n,r,i,o){let a=y_(n,o,r,i,t,oc.TemplateType.ListReportObjectPageV2);return tg(a,e)}s(v_,"generateListReportInterfaceV2");function T_(e,t,n,r,i,o){let a=y_(n,o,r,i,t,oc.TemplateType.AnalyticalListPageV2);return sg(a,e)}s(T_,"generateAnalyticalListPageInterfaceV2");function og(e,t){return T8(e,t)}s(og,"generateOVPInterfaceV2");var Bfe=require("@sap-ux/fe-fpm-writer");var Mfe=me(Pe()),Vfe=me(mM()),qfe=me(AL()),Ufe=me(afe());var Qy=me(Pe());var cfe="genericActions";var i0="DataFieldForAction",lfe="DataFieldForIntentBasedNavigation";var JM="::",Zy="customView(";var YM=new Map([[Qy.v2.TableTypeV2.ResponsiveTable,"ResponsiveTableColumnsExtension"],[Qy.v2.TableTypeV2.GridTable,"GridTableColumnsExtension"],[Qy.v2.TableTypeV2.AnalyticalTable,"AnalyticalTableColumnsExtension"],[Qy.v2.TableTypeV2.TreeTable,"TreeTableColumnsExtension"]]),ufe="annotation",$n="schema";var XM="Facet ID: ",ffe=new Map([...YM.entries()].map(([e,t])=>[t,e]));var pfe="@com.sap.vocabularies.UI.v1";var dfe="annotation",hfe="service",gfe="ui5";var zM=class zM{constructor(t,n){this.state=0;this.schema=structuredClone(t),this.name=n}};s(zM,"NodeProperty");var s0=zM;function nl(e){return(e==null?void 0:e.tooComplex)===!0}s(nl,"isTooComplex");var yfe=new Map;yfe.set("com.sap.vocabularies.UI.v1.HeaderInfo",new Set(["com.sap.vocabularies.UI.v1.HeaderFacets","com.sap.vocabularies.UI.v1.Identification"]));var Q7e=["com.sap.vocabularies.UI.v1.DeleteHidden","com.sap.vocabularies.UI.v1.UpdateHidden"],mfe=s(e=>(e||"").split("/@").pop()||"","stripTarget");function bfe(e,t){let n=e.nodes.find(r=>(r==null?void 0:r.nodeId)&&r.nodeId[0]===t[0]);for(let r=1;r<t.length;r++){if(n&&nl(n))return n;n="subnodes"in n?n==null?void 0:n.subnodes.find(i=>i.nodeId[r]===t[r]):void 0}return n}s(bfe,"getAnnotationNodeById");function vfe(e){return nl(e)?e.tooComplexLocations??[]:e.location?[e.location]:[]}s(vfe,"getNodeLocations");function QM(e,t,n,r){let i=Z7e(t,r);for(let o of i){let a=t[o],c=a.annotationPath.split("/").map((l,u)=>u===1?l.split(".").slice(-1)[0]??l:l).join("/");if(e===a.annotationPath||e===c)return a;if(!n&&!nl(a)&&a.subnodes.length>0){let l=QM(e,a.subnodes,void 0,r);if(l)return l}}}s(QM,"nodeMatcher");function Tfe(e,t,n,r,i){var c;let o=mfe(e),a=QM(e,n,void 0,i);if(!a&&Q7e.includes(o)){let l=t.find(u=>u.nodeType===cfe);a=l==null?void 0:l.subnodes.find(u=>u.annotationPath===e)}return!a&&((c=yfe.get(mfe(r)))!=null&&c.has(o))&&(a=QM(e,t,!0,i)),a}s(Tfe,"getMatchingNode");function Z7e(e,t){let n=[];t!==void 0&&e.length>t&&n.push(t);for(let r=0;r<e.length;r++)r!==t&&n.push(r);return n}s(Z7e,"getNodeMatcherIndexes");var ZM="i18n",eQe=s((e="",t=!1,n)=>{if(/^{{[^\\{}:]+}}$/.exec(e)&&(!t||n))return e.toString().substring(2,e.length-2);let r=t?`(${ZM}|@${ZM})`:`${ZM}`,i=t?2:1,o=new RegExp(`^{${r}>([^\\{}:]+)}$`).exec(e);return o?o[i]:void 0},"extractI18nKey"),eV=s((e,t={})=>{var r;let n=eQe(e,!0,!0);if(n){let i=t[n];if((i==null?void 0:i.length)>0)return(r=i[0].value)==null?void 0:r.value}},"resolveI18nValue"),Sfe=s((e,t,n,r="EDMXBackend")=>["CAPJava","CAPNodejs"].includes(r)&&!e&&t?hfe:n?dfe:gfe,"getI18nBundleName");var Efe=s((e,t)=>!e||!t?e===t:e.length===t.length&&e.every(function(n,r){return n===t[r]}),"isArrayEqual"),tV=s((e,t)=>{if(!e||!t||t.length>e.length)return!1;let n=e.length-1,r=t.length-1;for(;r>=0;){if(t[r]!==e[n])return!1;n--,r--}return!0},"isArrayEndsWith"),Ju=s((e,t)=>{let n=e;for(let r of t)if(r!==void 0)if(typeof n=="object"&&r in n)n=n[r];else return;return n},"getProperty");var tQe=s(()=>({bundles:{annotation:{},app:{},service:{},ui5:{}}}),"getAppI18nBundle"),Rd=s((e,t=!1)=>{let n=e[e.length-1];if(n){let r=n.toString(),i=r.includes(":::")?":::":"::",o=n.toString().split(i);if(r=o[0],!t&&o.length>1&&(o.splice(0,1),r=o.join("/")),r)return r}},"getTechnicalIdFromPath"),Afe=s((e,t)=>{let n,r=0,i=!1;for(let a in e.aggregations)e.aggregations[a].custom?i=!0:(n=r>0?void 0:e.aggregations[a],r++);if(!i||!(n!=null&&n.actions))return;let o=n.actions.findIndex(a=>a==="Delete"||typeof a=="object"&&a.type==="Delete");if(o!==-1){let a=n.actions[o];typeof a!="object"&&(a={type:a}),a.disabled=!0,a.title=ee.t(t),n.actions[o]=a}},"ensureLastNodeIsUndeletable"),Aa=s((e,t,n,r)=>{t||(e.state=1,e.messages=[{text:n,type:"warning"}],e.inactive=!0,r&&e.properties[r]&&nV(e.properties[r],[{text:n}]))},"validateExtension"),Fd=s((e,t=e.value)=>{let n=t&&typeof t=="object"?t:{},r="key"in n&&!!n.key;Aa(e,r,ee.t("PAGE_EDITOR_CUSTOM_EXTENSION_NO_KEY"),"key")},"validateMacrosExtension");var a0=s((e,t)=>{var r;let n=e.name==="position"?(r=e.parent)==null?void 0:r.name:e.name;if(t.enum){let i={...t,enum:[...t.enum]},o=i.enum.findIndex(a=>a===n);return o!==-1&&i.enum.splice(o,1),i}else if(t.oneOf){let i=tQe(),o={...t,oneOf:[...t.oneOf]};for(let a=0;a<o.oneOf.length;a++){let c=o.oneOf[a];c.bundle=Sfe(c.custom,!0,!!c.annotationNodeId,i.projectType),c.const===n&&(o.oneOf[a]={...c,hidden:!0})}return o}return t},"updateAnchorSchema");function nV(e,t){e.messages??(e.messages=[]),e.messages.push(...t)}s(nV,"addValidationMessages");function rV(e){let t="",n=!0;for(let r=0;r<e.length;r++){let i=e[r];if(i==="_"||i==="-"||i===" "){t.endsWith(" ")||(t+=" "),n=!0;continue}let o=e[r-1],a=e[r+1];r>0&&(o>="a"&&o<="z"&&i>="A"&&i<="Z"||o>="A"&&o<="Z"&&i>="A"&&i<="Z"&&a&&a>="a"&&a<="z")&&(t+=" ",n=!0),n?(t+=i.toUpperCase(),n=!1):t+=i}return t.trim()}s(rV,"startCase");var xfe={top:["header","filterBar"]},iV=["anchor","relatedFacet"],Ld=class Ld{constructor(t,n){this.path=[];this.aggregations={};this.properties={};this.variants=[];this.annotationCreationForms=[];this.allowedAnnotationCreationForms=[];this.schemaCreationForms=[];this.state=0;this.type="Object";this.custom=!1;this.isTable=!1;t&&(this.aggregations=t.aggregations,this.properties=t.properties),n&&(this.schema=n)}addAggregation(t,n,r,i,o){if(this.aggregations[t]&&!o)return this.aggregations[t];if(n.name=t,i!==void 0&&!Number.isNaN(i)){for(let a in this.aggregations){let c=this.aggregations[a].order;c!==void 0&&!Number.isNaN(c)&&c>=i&&(this.aggregations[a].order=c+1)}n.order=i}else n.order=Object.keys(this.aggregations).length;return Object.defineProperty(n,"parent",{value:this,writable:!1}),this.aggregations[t]=n,this.updatePath(this.aggregations[t],r),n}addProperty(t,n){iV.includes(t)&&(n=a0(this,n));let r=n.displayName||rV(t),i=new s0(n,r);return this.properties[t]=i,i}getDisplayName(t={}){let n=[()=>{let i=this.getRawDisplayName(),o=eV(i,t);return o||i},this.getTechnicalName.bind(this),()=>{let i=this.getFormattedName();return i?rV(i):void 0}],r="";for(let i of n)if(r=i()||"",r)break;return r}getSupportedActions(){var n;let t=[...this.actions??[]];return(n=this.locations)!=null&&n.length&&t.push("OpenSource"),t}getKeys(){var t;if((t=this.schema)!=null&&t.keys)return this.schema.keys}getValueOfSchemaKey(t){var r;let n=(r=this.getKeys())==null?void 0:r.find(i=>i.name===t);return n==null?void 0:n.value}getTechnicalName(){}getRawDisplayName(){var t;if(this.isViewNode){let n=this.formatTextForDisplay(this.description);if(n)return n}return this.formatTextForDisplay((t=this.schema)==null?void 0:t.title)}formatTextForDisplay(t=""){return t.trim()}updateValues(t){let n=Object.keys(this.properties),r=Object.keys(this.aggregations);if(t)for(let i in t)n.includes(i)&&(this.properties[i].value=t[i]),r.includes(i)&&(this.aggregations[i].value=t[i])}updatePropertiesValues(t,n,r,i,o,a){var c;this.updateValues(t),this.updateAnnotationData(o),this.annotationCreationForms=this.getNativeNodeCreationForms(o);for(let l in this.aggregations){let u=this.type==="Array"?Number.parseInt(l,10):l,f=((c=this.aggregations[l].union)==null?void 0:c.originalNames)||[l];for(let p of f)this.aggregations[l].updatePropertiesValues(t==null?void 0:t[p],n,r,i.concat([u]),o,a);this.aggregations[l].onPropertiesUpdated()}this.isAtomic&&this.handleAtomicObject(t,i)}onPropertiesUpdated(){}updateAnnotationData(t){let n=this.getCurrentUINode(t),r=n!=null&&n.direct?n.node:void 0;this.setAllowedParents(t,r),this.updateLocations(t,r),n!=null&&n.node&&!nl(n.node)&&n.node.readonly&&this.applyReadonlyAnnotationNode(n.node.readonlyTooltip),!this.custom&&this.sortableItem==="Enabled"&&!this.annotationNodeId&&(this.sortableItem="Readonly",this.removeAction("Delete"))}setAllowedParents(t,n){n&&(this.dropUINodes=n==null?void 0:n.allowedParentNodes)}updateLocations(t,n){this.locations=this.locations||[];let r=this.locations.length;if(!n||r&&this.isMacrosNode())return;let i=vfe(n);if(i.length>0){if(r)for(let o of this.locations)i.some(a=>a.fileUri!==o.fileUri)&&i.push(o);this.locations=i}}getNativeNodeCreationForms(t){return!this.name||!t?[]:this.annotationNodeId||this.getParentAnnotationNodeId()?[]:this.getDefaultNativeCreationForms(t)}getDefaultNativeCreationForms(t){return[]}getParentAnnotationNodeId(){let t=this.parent;for(;t;){if(t.annotationNodeId)return t.annotationNodeId;t=t?t.parent:void 0}}getProperties(){return this.properties}getCopy(t=Ld){let n=JSON.parse(JSON.stringify(this,(i,o)=>{if(i!=="parent")return o})),r=new t(n);return this.createAggregations(r,t),new t(r)}createAggregations(t,n=Ld){var r;if(t.aggregations){for(let i in t.aggregations)t.aggregations[i]=new n(t.aggregations[i]),this.createAggregations(t.aggregations[i]);(r=t.additionalProperties)!=null&&r.aggregations&&(t.additionalProperties=new n(t.additionalProperties))}}aggregationOrderSorter(t,n){let r=this.aggregations[t]&&this.aggregations[t].order||-1,i=this.aggregations[n]&&this.aggregations[n].order||-1;return r===i?0:r>i?1:-1}getAggregationKeys(t=!1,n){let r=Object.keys(this.aggregations).sort(this.aggregationOrderSorter.bind(this));return this.sortableList||(r=r.sort((i,o)=>{let a=xfe.top.indexOf(i),c=xfe.top.indexOf(o);return a!==-1&&c!==-1&&a>c?1:a!==-1?-1:c!==-1?1:0})),t&&(r=r.filter(i=>this.aggregations[i].isViewNode&&!this.aggregations[i].hidden)),n==="ViewNode"&&(r=r.sort(this.getViewNodeSorter.bind(this))),r}getViewNodeSorter(t,n){let r=this.aggregations[t].isViewNode,i=this.aggregations[n].isViewNode;return r===i&&!r?t===n?0:t>n?1:-1:this.aggregations[t].isViewNode===this.aggregations[n].isViewNode?0:this.aggregations[t].isViewNode?1:-1}updatePath(t,n){if(t.setPath(n),t.aggregations)for(let r in t.aggregations)this.updatePath(t.aggregations[r],n.concat([r]))}setPath(t){this.path=t}getMaxOrder(){let t=0;for(let n in this.aggregations){let r=this.aggregations[n].order||0;t<r&&(t=r)}return t}addUnionName(t,n){var i;let r=((i=this.union)==null?void 0:i.originalNames)||[];r.includes(n)||r.push(n),this.union={name:t,originalNames:r}}getFormattedName(){return this.name}getCurrentUINode(t){if(this.name&&t){let n=this.annotationNodeId||this.getParentAnnotationNodeId();if(n){let r=bfe(t,n);if(r)return{node:r,direct:!!this.annotationNodeId}}}}applyReadonlyAnnotationNode(t){let n=s(i=>{for(let o=0;o<i.length;o++){let a=i[o];typeof a=="string"&&(i[o]=a={type:a}),a.disabled=!0,a.title=t}},"disableActions"),r=s(i=>{i.sortableItem="Readonly",t&&(i.sortableReadonlyTooltip=t)},"disableReordering");for(let i in this.aggregations){let o=this.aggregations[i];o.actions&&!o.custom&&n(o.actions),o.sortableItem==="Enabled"&&r(o)}this.actions&&n(this.actions),this.sortableItem==="Enabled"&&r(this)}removeAction(t){if(this.actions){let n=this.actions.indexOf(t);n!==-1&&this.actions.splice(n,1)}}getAllowedDropRange(t){}isMacrosNode(){var t;return!!((t=this.schema)!=null&&t.metadata)}convertAtomicPropertyToAggregation(t,n){let r=new Ld,i=t.toString();this.properties[t]&&(r.properties[i]=this.properties[t],r.properties[i].isAtomic=!0),this.addAggregation(t.toString(),r,n.concat(t))}handleAtomicObject(t,n){if(typeof t=="object"){if(Array.isArray(t))for(let r=0;r<t.length;r++)this.convertAtomicPropertyToAggregation(r,n);else for(let r in t)this.convertAtomicPropertyToAggregation(r,n);this.properties={}}}getAggregations(t=!1,n){let r=Object.keys(this.aggregations);if(t&&r.length===1&&!this.aggregations[r[0]].isViewNode)return this.aggregations[r[0]].getAggregations(t,n);let i=this.getAggregationKeys(t,n),o=[];for(let a of i)o.push({name:a,aggregation:this.aggregations[a]});return o}getChildClass(t,n=[]){return this.childClass}};s(Ld,"ObjectAggregation");var ot=Ld;var Ife=me(Pe());var sV=class sV extends ot{constructor(){super(...arguments);this.actions=["Delete"];this.sortableItem="Enabled";this.isViewNode=!0;this.sortableCollection="actions"}getTechnicalName(){let n=this.path[this.path.length-1];if(n&&typeof n=="string"){let r=n.split("::"),i="";if(r[r.length-1].includes("."))for(let o=0;o<r.length;o++)r[o]===i0&&r[o+1]&&(i=r[o+1]);else i=r[r.length-1];if(i){let o=i.split(".");return o[o.length-1]}}return super.getTechnicalName()}markAsCustomAction(){var r,i;this.custom=!0,this.actions=["OpenSource"],this.sortableItem="Enabled",this.additionalText=ee.t("PAGE_EDITOR_OUTLINE_NODE_DESC_CUSTOM_ACTION"),this.i18nKey=(r=this.parent)==null?void 0:r.i18nKey,this.isMacrosNode()?Fd(this):this.actions.push("Delete");let n=(i=this.aggregations.position)==null?void 0:i.properties.anchor;n!=null&&n.value&&((n.schema.oneOf||[]).some(a=>a.const===n.value)||Aa(this,!1,ee.t("PAGE_EDITOR_CUSTOM_EXTENSION_NO_ANCHOR")))}markAsStandardAction(){var n;this.sortableItem="Readonly",this.additionalText=ee.t("PAGE_EDITOR_OUTLINE_NODE_DESC_STANDARD_ACTION"),this.i18nKey=(n=this.parent)==null?void 0:n.i18nKey,this.removeAction("Delete")}getActionType(){var r,i;let n=typeof((r=this.schema)==null?void 0:r.actionType)=="string"?this.schema.actionType:void 0;return n===void 0&&((i=this.schema)!=null&&i.annotationPath)&&(n=Ife.ActionType.Annotation),n}};s(sV,"ActionAggregation");var Yu=sV;var _fe=me(Pe());var oV=class oV extends ot{constructor(n,r){super(n,r);this.sortableList=!0;this.childClass=Yu;this.allowedAnnotationCreationForms=["NativeAction"];this.sortableCollection="actions";this.i18nKey="ACTIONS";this.isNestedContainer=!1}addAggregation(n,r,i,o,a){var c;return r=super.addAggregation(n,r,i,o,a),r instanceof Yu&&r.name&&((c=r.schema)==null?void 0:c.actionType)===_fe.ActionType.Standard&&r.markAsStandardAction(),r}updatePropertiesValues(n,r,i,o,a){var l,u;super.updatePropertiesValues(n,r,i,o,a),this.formSchema=(l=this.additionalProperties)==null?void 0:l.aggregations.actions;let c=n||{};if(!c.menu)for(let f in c){let p=this.aggregations[f];p!=null&&p.name&&((u=p.schema)==null?void 0:u.actionType)==="Standard"?p.markAsStandardAction():p!=null&&p.schema&&(p.schema.actionType==="Custom"||!p.schema.annotationPath&&p.schema.actionType!=="CustomMenu")&&p.markAsCustomAction()}}};s(oV,"ActionsContainerAggregation");var jd=oV;var aV=class aV extends jd{constructor(n,r){var i,o,a,c;super(n,r);this.sortableList=!0;this.childClass=Yu;this.allowedAnnotationCreationForms=[];this.actions=[{type:"Delete"}];this.sortableItem="Enabled";this.sortableCollection="actions";this.i18nKey="ACTION_MENU";this.disallowEmpty=!0;this.menuType=(r==null?void 0:r.actionType)??"",(i=this.schema)!=null&&i.properties&&((o=this.schema)==null?void 0:o.actionType)==="CustomMenu"&&((c=(a=this.schema)==null?void 0:a.metadata)==null?void 0:c.type)!=="Aggregation"&&(this.schemaCreationForms=[{name:"CustomAction",kind:$n,title:"PAGE_EDITOR_OUTLINE_ADD_CUSTOM_ACTIONS_TITLE",disabled:!1}],this.custom=!0,this.additionalText=ee.t("PAGE_EDITOR_OUTLINE_NODE_DESC_CUSTOM_ACTION_MENU"))}updatePropertiesValues(n,r,i,o,a){var l;super.updatePropertiesValues(n,r,i,o,a),this.formSchema=(l=this.actionsContainer.additionalProperties)==null?void 0:l.aggregations.actions;let c=(n==null?void 0:n.actions)??{};if(c&&typeof c=="object")for(let u in c){let f=this.aggregations.actions.aggregations[u];f!=null&&f.schema&&(f.schema.actionType==="Custom"||!f.schema.annotationPath)&&f.markAsCustomAction()}}get actionsContainer(){return this.custom?this.aggregations.actions:this}getChildClass(n,r=[]){return r[r.length-1]==="actions"?Xu:n!=null&&n.annotationPath?this.childClass:void 0}addAggregation(n,r,i,o,a){return r=super.addAggregation(n,r,i,o,a),r instanceof Xu&&(r.isNestedContainer=!0),r}getAggregations(n=!1,r){return this.custom&&n?this.actionsContainer.getAggregations(n,r):super.getAggregations(n,r)}getMenuItems(){return(this.custom?this.aggregations.actions:this).getAggregationKeys()}};s(aV,"ActionGroupAggregation");var c0=aV;var cV=class cV extends jd{constructor(n,r){var i,o,a;super(n,r);this.allowedAnnotationCreationForms=["NativeAction","NativeNavigation"];r!=null&&r.properties&&((i=this.schema)!=null&&i.additionalProperties)&&((a=(o=this.schema)==null?void 0:o.metadata)==null?void 0:a.type)!=="Aggregation"&&(this.schemaCreationForms=[{name:"CustomAction",kind:$n,title:"PAGE_EDITOR_OUTLINE_ADD_CUSTOM_ACTIONS_TITLE",disabled:!1}])}getChildClass(n){return(n==null?void 0:n.dataType)==="DataFieldForActionGroup"||(n==null?void 0:n.actionType)==="CustomMenu"?c0:this.childClass}};s(cV,"ActionsAggregation");var Xu=cV;var lV=class lV extends ot{constructor(){super(...arguments);this.actions=["Delete"]}getDisplayName(){return this.name?this.name:super.getDisplayName()}};s(lV,"AdditionalObjectAggregation");var l0=lV;var uV=class uV extends ot{constructor(n,r){super(n,r);this.sortableList=!1;this.childClass=l0;this.i18nKey="ADDITIONALOBJECTS";this.schemaCreationForms=[{name:"Generic",kind:$n,title:"PAGE_EDITOR_OUTLINE_ADD_GENERIC_TITLE",disabled:!1}]}addAggregation(n,r,i,o,a){return r.custom=!0,super.addAggregation(n,r,i,o,a)}updatePropertiesValues(n,r,i,o,a){var c;super.updatePropertiesValues(n,r,i,o,a),this.name&&(this.formSchema=(c=this.additionalProperties)==null?void 0:c.aggregations[this.name])}};s(uV,"AdditionalObjectsAggregation");var u0=uV;var fV=class fV{validate(t,n){if(t.state===0&&t.variants.length>=1){let r=this.validateVariants(t.variants,t);for(let i in r){let o=t.properties[i]||t.aggregations[i];o&&(o.state=r[i],o.state===1&&nV(o,[{text:ee.t("PAGE_EDITOR_PROPERTIES_PROPERTY_WARNING_PROPERTY_NOT_ALLOWED",{name:i}),deletable:!0}]))}}for(let r in t.aggregations)this.validate(t.aggregations[r],n?n[r]:{})}validateVariants(t,n){let r={};for(let c in n.properties)n.properties[c].value!==void 0&&(r[c]=n.properties[c].value);for(let c in n.aggregations)n.aggregations[c].value!==void 0&&(r[c]=n.aggregations[c].value);let i=[...t];for(let c in r)i=i.filter(l=>this.validateVariant(l,n,c)===0);if(i.length===0){i=[...t];for(let c in r)i=i.filter(l=>this.validateVariant(l,n,c,!0)===0)}this.unifyVariants(n,i);let o={},a=[...Object.keys(n.properties),...Object.keys(n.aggregations)];for(let c of a)i.some(u=>c in u.properties||c in u.aggregations)?o[c]=0:c in r?o[c]=1:o[c]=2;return o}validateVariant(t,n,r,i=!1){let o=t.aggregations[r]||t.properties[r];if(o===void 0)return i?0:2;let a=n.properties[r]||n.aggregations[r]||{},c="value"in a?a.value:void 0;if(o.schema){if(o.schema.pattern&&!new RegExp(o.schema.pattern).exec(c.toString()))return 2;if(o.schema.enum&&!o.schema.enum.includes(c)&&!o.freeText)return 2}return 0}*iterateVariantAggregations(t){for(let n of t)for(let[r,i]of Object.entries(n.aggregations))yield[r,i]}unifyVariants(t,n){let r={};for(let[i,o]of this.iterateVariantAggregations(n))o.union&&!r[i]&&(this.applyContextPath(t.aggregations[i],o.path),t.aggregations[i].name=o.path[o.path.length-1].toString(),r[i]=!0);if(Object.keys(r).length){for(let i in r)t.aggregations[i].variants=[];for(let i of n)for(let o in r){let a=i.aggregations[o];a&&(t.aggregations[o].variants=[...t.aggregations[o].variants,...a.variants.length?a.variants:[a]])}}}applyContextPath(t,n){t.path=t.path.slice();for(let r=0;r<n.length;r++)t.path[r]=n[r];for(let r in t.aggregations)this.applyContextPath(t.aggregations[r],n)}};s(fV,"AggregationValidator");var f0=fV;var pV=class pV extends ot{constructor(n,r){super(n,r);this.type="Array";this.schemaCreationForms=[{name:"Generic",kind:$n,title:"PAGE_EDITOR_OUTLINE_ADD_GENERIC_TITLE",disabled:!1}]}addAggregation(n,r,i,o){return super.addAggregation(n,r,i,o),this.sortableList=!0,r.sortableItem="Enabled",r.actions=["Delete"],r.schema&&!r.schema.title&&(r.schema.title=ee.t("PAGE_EDITOR_OUTLINE_ARRAY_ITEM",{name:Number.parseInt(n,10)+1})),r.custom=!0,r}updatePropertiesValues(n,r,i,o){if(super.updatePropertiesValues(n,r,i,o),!!Array.isArray(n))for(let a=0;a<n.length;a++){let c=this.aggregations[a];if(!c)continue;let l;if(this.isAtomic)l=n[a];else{let u=this.getPrimaryKey(c);l=u?n[a][u]:void 0}typeof l!="object"&&(c.additionalText=l)}}getPrimaryKey(n){let r=["id","title","key","name"],i=n.schema?n.schema.properties||{}:{},o;for(let a of r)if(a in i){o=a;break}for(let a in i)if(i[a].type==="string"){o=a;break}return o}};s(pV,"ArrayAggregation");var eb=pV;var dV=class dV extends ot{updatePropertiesValues(t,n,r,i,o){var c,l;super.updatePropertiesValues(t,n,r,i,o),(l=(c=this.schema)==null?void 0:c.properties)!=null&&l.annotationPath&&!(t!=null&&t.annotationPath)&&(this.hidden=!0)}};s(dV,"ChartAggregation");var p0=dV;var hV=class hV extends ot{constructor(){super(...arguments);this.actions=["Delete"];this.sortableItem="Enabled";this.isViewNode=!0;this.sortableCollection="fields"}getRawDisplayName(){let n=super.getRawDisplayName();if(!n){let r=this.getTechnicalName();if(r)return r}return n}getTechnicalName(){return Rd(this.path)}};s(hV,"FieldAggregation");var zu=hV;var gV=class gV extends ot{constructor(){super(...arguments);this.sortableList=!0;this.childClass=zu;this.allowedAnnotationCreationForms=["NativeField","NativeContactField","NativeConnectedFields"];this.sortableCollection="fields";this.i18nKey="FIELDS"}updateAnnotationData(n){super.updateAnnotationData(n),this.path[0]==="header"&&this.allowedAnnotationCreationForms.splice(this.allowedAnnotationCreationForms.indexOf("NativeConnectedFields"))}};s(gV,"FieldsAggregation");var d0=gV;var mV=class mV extends zu{constructor(){super(...arguments);this.sortableList=!0;this.childClass=zu}};s(mV,"ConnectedFieldsAggregation");var h0=mV;var yV=class yV extends ot{constructor(){super(...arguments);this.actions=["Delete"];this.sortableItem="Enabled";this.isViewNode=!0}getRawDisplayName(){let n=super.getRawDisplayName();if(!n){let r=this.getTechnicalName();if(r)return r}return n}getTechnicalName(){let n=this.path[this.path.length-1];if(n){let i=n.toString().split("::"),o=i[i.length-1];if(o)return o}}markAsCustomFilterField(){var r;this.custom=!0,this.actions=["OpenSource"],this.isMacrosNode()||this.actions.push("Delete"),this.sortableItem="Enabled",this.additionalText=ee.t("PAGE_EDITOR_OUTLINE_NODE_DESC_CUSTOM_FILTER_FIELD"),this.i18nKey=(r=this.parent)==null?void 0:r.i18nKey,this.isMacrosNode()&&Fd(this);let n=this.properties.anchor;n!=null&&n.value&&((n.schema.oneOf||[]).some(o=>o.const===n.value)||Aa(this,!1,ee.t("PAGE_EDITOR_CUSTOM_EXTENSION_NO_ANCHOR")))}addProperty(n,r){let i=super.addProperty(n,r);return n==="property"&&(i.disabled=!0),i}};s(yV,"FilterFieldAggregation");var g0=yV;var bV=class bV extends ot{constructor(n,r){super(n,r);this.sortableList=!0;this.allowedAnnotationCreationForms=["NativeFilterFields"];this.childClass=g0;this.i18nKey="FILTER_FIELDS";let i=r==null?void 0:r.additionalProperties;typeof i=="object"&&i.$ref&&!this.isMacrosNode()&&(this.schemaCreationForms=[{name:"CustomFilterField",kind:$n,title:"PAGE_EDITOR_OUTLINE_ADD_CUSTOM_FILTER_FIELDS_TITLE",disabled:!1}])}updatePropertiesValues(n,r,i,o,a){var l;super.updatePropertiesValues(n,r,i,o,a),this.formSchema=(l=this.additionalProperties)==null?void 0:l.aggregations.selectionFields;let c=n||{};for(let u in c){let f=this.aggregations[u];f!=null&&f.schema&&!f.schema.annotationPath&&f.markAsCustomFilterField()}}};s(bV,"FilterFieldsAggregation");var m0=bV;var Cfe=require("path");var wfe=me(mM());var vV=class vV extends ot{constructor(t,n){var i,o;super(t,n),this.path=["macros"],this.isViewNode=!0,this.virtual=!0,this.allowedAnnotationCreationForms=[];let r=(o=(i=this.schema)==null?void 0:i.metadata)==null?void 0:o.filePath;r&&this.setFilePath(r)}getDisplayName(){return ee.t("PAGE_EDITOR_OUTLINE_NODE_BUILDING_BLOCK")}setFilePath(t){this.filePath=(0,Cfe.join)(wfe.DirName.Webapp,t)}};s(vV,"MacrosRootAggregation");var Oa=vV;var $fe=require("path"),kfe=me(Pe());var TV=class TV extends ot{constructor(n,r){super(n,r);this.actions=["Delete"];this.isViewNode=!0;this.sortableCollection="sections";this.sortableItem="Enabled"}setTitle(n){this.title=n}setId(n){this.id=n}getRawDisplayName(){return this.title||this.getSectionId()||super.getRawDisplayName()}getSectionId(n=!0){var r;if(this.schema){if((r=this.schema.title)!=null&&r.startsWith(XM)){let i=this.schema.title.split(XM);return i.length>1?i[i.length-1]:i[0]}else if(n&&this.useDescriptionAsId&&this.schema.description)return this.schema.description}if(this.data&&"id"in this.data)return this.data.id}markAsReplaced(n){this.inactive=!0,this.additionalText=ee.t("PAGE_EDITOR_OUTLINE_NODE_DESC_SECTION_REPLACED_WITH",{section:n})}markAsCustomSection(n,r,i){this.custom=!0,this.actions=["Delete",i||"OpenSource"],this.sortableItem="Enabled",this.additionalText=ee.t("PAGE_EDITOR_OUTLINE_NODE_DESC_CUSTOM_SECTION"),this.data=n,this.i18nKey=r}getTechnicalName(){return this.getSectionId()}getFormattedName(){let n=this.name,r=`${pfe}.`;return n!=null&&n.includes(r)&&(n=n.replace(r,"")),n}};s(TV,"SectionAggregation");var rl=TV;var Ss=me(Pe());var tb="custom",SV=class SV extends ot{constructor(n,r){var i;super(n,r);this.customSections=[];this.sections=[];this.sortingApproach="Normal";this.allowedAnnotationCreationForms=void 0;this.sortableCollection="sections";this.childClass=rl,(i=r==null?void 0:r.properties)!=null&&i.custom&&(this.schemaCreationForms=[{name:"CustomSection",kind:$n,title:"PAGE_EDITOR_OUTLINE_ADD_CUSTOM_SECTIONS_TITLE",disabled:!1}]),this.sortableList=!0,this.i18nKey="SECTIONS"}updatePropertiesValues(n,r,i,o,a,c){if(super.updatePropertiesValues(n,r,i,o,a,c),this.formSchema=this.aggregations[tb],this.sortingApproach=this.getSortingApproach(),delete this.aggregations[tb],this.correctSectionData(),this.formSchema&&(this.customSections=n&&tb in n?n[tb]:[],this.customSections.length)){this.sections=Object.keys(this.aggregations);let l=[...this.sections];for(let d in l){let h=this.aggregations[l[d]];this.traverseCustomSections(h.getSectionId()||l[d],this.customSectionFactory.bind(this,r,i,o,c))}let u=this.customSections.filter(d=>{for(let h in this.aggregations)if(this.aggregations[h].data===d)return!1;return!0});for(let d of u)this.customSectionFactory(r,i,o,c,d);let f=this.aggregations;this.aggregations={};let p=0;for(let d of this.sections)this.aggregations[d]=f[d],this.aggregations[d].order=p,p++}}onPropertiesUpdated(){this.customSections.length&&!this.isV4()&&Afe(this,"SECTION_UNDELETABLE_LAST_NATIVE_NODE")}traverseCustomSections(n,r){let i=this.customSections.filter(a=>this.isSectionMatchesRelatedFacet(a.relatedFacet,n)),o=this.sortingApproach==="WithIds";for(let a of i)r(a),o&&"id"in a&&this.traverseCustomSections(a.id,r)}customSectionFactory(n,r,i,o,a){var d,h,m;if(!this.formSchema)return;let c=this.customSections.indexOf(a),l=this.formSchema.getCopy(rl);if(l.markAsCustomSection(a,this.i18nKey),o){let b=a,{fragmentName:T}=b,I=o==null?void 0:o.definitions[`CustomExtensionFragment<${T}>`];if(I&&l.aggregations.controls){let F=new Oa(void 0,I);l.addAggregation("controls",F,l.path,void 0,!0),o.parse(l.aggregations.controls,I,void 0,void 0,i,{filePath:(d=I.metadata)==null?void 0:d.filePath})}}l.updatePropertiesValues(a,n,r,i,o==null?void 0:o.annotations),l.setTitle(a.title),l.position=a.relativePosition;let u=this.storeSection(a);this.addAggregation(u,l,this.path.concat([tb,c]));for(let b of iV){let T=l.properties[b];T&&(T.schema=a0(l,T.schema))}let f=(h=this.formSchema.properties.relatedFacet)!=null&&h.schema.oneOf?(m=this.formSchema.properties.relatedFacet)==null?void 0:m.schema.oneOf:[],p=this.isV4()&&!a.relatedFacet?!0:f.some(b=>b.const===a.relatedFacet);Aa(l,p,ee.t("PAGE_EDITOR_CUSTOM_SECTION_NO_FACET"))}correctSectionData(){var r,i;let n=(i=(r=this.formSchema)==null?void 0:r.properties.relatedFacet)!=null&&i.schema.oneOf?this.formSchema.properties.relatedFacet.schema.oneOf:[];for(let o in this.aggregations){let a=this.aggregations[o];if(a.custom)continue;this.isV4()&&(a.useDescriptionAsId=!0),a.description&&a.setTitle(a.description);let c=a.getSectionId()||o,l=n.find(u=>this.isSectionMatchesRelatedFacet(c,u.const));l!=null&&l.description&&(a.setTitle(l.description),a.setId(l.const))}}isSectionMatchesRelatedFacet(n="",r=""){return n.replace(/@/g,"")===r.replace(/@/g,"")}findSectionInsertPosition(n){let{relativePosition:r,relatedFacet:i}=n,o=this.checkRelatedPosition(r,Ss.v2.SectionPosition.AfterFacet,Ss.v2.SectionPosition.ReplaceFacet),a=this.findReferenceSection(i);if(!a)return this.sections.length;let c=this.checkRelatedPosition(r,Ss.v2.SectionPosition.ReplaceFacet),l=this.checkRelatedPosition(r,Ss.v2.SectionPosition.BeforeFacet),u=c?[Ss.v2.SectionPosition.ReplaceFacet]:[Ss.v2.SectionPosition.AfterFacet,Ss.v2.SectionPosition.ReplaceFacet],f=a.index;if(o&&this.sortingApproach==="Normal")for(let p=f+1;p<this.sections.length;p++){let d=this.aggregations[this.sections[p]];if(d!=null&&d.custom&&d.position&&this.checkRelatedPosition(d.position,...u))f++;else break}return f+(l?0:1)}findReferenceSection(n){var r;for(let i=0;i<this.sections.length;i++){let o=this.sections[i],a=this.aggregations[o],c=((r=a==null?void 0:a.getSectionId)==null?void 0:r.call(a))??o;if(c&&this.isSectionMatchesRelatedFacet(c,n))return{index:i,aggregation:a}}}storeSection(n){let r=this.findSectionInsertPosition(n),i=this.getFreeSectionId("id"in n&&typeof n.id=="string"?n.id:n.title);this.sections.splice(r,0,i);let o=this.findReferenceSection(n.relatedFacet);return o!=null&&o.aggregation&&this.checkRelatedPosition(n.relativePosition,Ss.v2.SectionPosition.ReplaceFacet)&&o.aggregation.markAsReplaced(n.title),i}getFreeSectionId(n){let r=1,i=n??"missingId";n=i;let o=Object.keys(this.aggregations).filter(c=>this.sections.indexOf(c)===-1),a=[...this.sections,...o];for(;a.includes(n);)n=i+r,r++;return n}checkRelatedPosition(n="",...r){let i=new Map([[Ss.v2.SectionPosition.AfterFacet,"after"],[Ss.v2.SectionPosition.BeforeFacet,"before"],[Ss.v2.SectionPosition.ReplaceFacet,"replace"]]);n=n.toLowerCase();for(let o of r){let a=i.get(o);if(a&&n.includes(a))return!0}return!1}getSortingApproach(){return this.isV4()?"WithIds":"Normal"}isV4(){var n;return!!((n=this.formSchema)!=null&&n.properties.id)}getNativeNodeCreationForms(n){var o,a,c,l;if(!n)return[];let r=super.getNativeNodeCreationForms(n),i=r.find(u=>u.name==="AnalyticalChart");return i&&!i.disabled&&(i.disabled=!((a=(o=n.dialogsContext)==null?void 0:o.analyticalChartSupport)!=null&&a.creationEnabled),(l=(c=n.dialogsContext)==null?void 0:c.analyticalChartSupport)!=null&&l.creationTooltip&&(i.disabledTitle=n.dialogsContext.analyticalChartSupport.creationTooltip)),r}};s(SV,"SectionsAggregation");var Dd=SV;var Nfe=me(Pe());var EV=class EV extends ot{constructor(){super(...arguments);this.isViewNode=!0;this.actions=["Delete"];this.sortableItem="Enabled"}setTitle(n){this.title=n}getRawDisplayName(){return this.title||super.getRawDisplayName()}validateColumnPositioning(){var a,c,l,u,f,p,d;let n=this.value&&typeof this.value=="object"?this.value:{},r=(u=(l=(c=(a=this.aggregations.position)==null?void 0:a.schema)==null?void 0:c.properties)==null?void 0:l.anchor)==null?void 0:u.enum,i=(d=(p=(f=this.schema)==null?void 0:f.properties)==null?void 0:p.anchor)==null?void 0:d.oneOf,o=!1;if(this.isMacrosNode()){Fd(this,n);let h=i??[],m=Ju(n,["anchor"]);o=m?h.some(b=>b.const===m):!0}else{let h=r??[],m=Ju(n,["position","anchor"]);o=m?h.includes(m):!0}Aa(this,o,ee.t("PAGE_EDITOR_CUSTOM_EXTENSION_NO_ANCHOR"))}markAsCustomColumn(n){let{pageType:r,originalIndex:i,columnExtension:o,isExtensionTypeSupported:a,i18nKey:c,tableExtension:l="ResponsiveTableColumnsExtension",isV4:u=!1,tabkey:f}=n;this.custom=!0,this.actions=["OpenSource"],this.isMacrosNode()||this.actions.push("Delete"),this.sortableItem=!a||l===o?"Enabled":"Excluded";let p=o??"Unknown";f&&r===Nfe.PageType.ListReport?this.additionalText=a?ee.t("PAGE_EDITOR_OUTLINE_NODE_DESC_CUSTOM_COLUMN_WITH_EXTENSION_TAB",{tabkey:f,extension:ee.t(`PAGE_EDITOR_OUTLINE_NODE_DESC_CUSTOM_COLUMN_${p}`)}):ee.t("PAGE_EDITOR_OUTLINE_NODE_DESC_CUSTOM_COLUMN_TAB",{tabkey:f}):this.additionalText=a?ee.t("PAGE_EDITOR_OUTLINE_NODE_DESC_CUSTOM_COLUMN_WITH_EXTENSION",{extension:ee.t(`PAGE_EDITOR_OUTLINE_NODE_DESC_CUSTOM_COLUMN_${p}`)}):ee.t("PAGE_EDITOR_OUTLINE_NODE_DESC_CUSTOM_COLUMN"),this.originalIndex=i,this.i18nKey=c,a&&l!==p&&(this.state=1,this.messages=[{text:ee.t("PAGE_EDITOR_CUSTOM_COLUMN_UNUSED_COLUMN",{tableType:ffe.get(l)}),type:"info"}],this.inactive=!0),u&&this.validateColumnPositioning()}getTechnicalName(){return Rd(this.path)}updatePropertiesValues(n,r,i,o,a){super.updatePropertiesValues(n,r,i,o,a),this.updateMoveProperties()}updateMoveProperties(){(this.isActionColumn()||this.isNavigationColumn())&&(this.sortableCollection=!this.criticality||this.criticality==="None"?"actions":void 0,this.additionalText=ee.t("PAGE_EDITOR_OUTLINE_NODE_DESC_ACTION_COLUMN"))}isActionColumn(){var n;return!!((n=this.name)!=null&&n.startsWith(`${i0}${JM}`))}isNavigationColumn(){var n;return!!((n=this.name)!=null&&n.startsWith(`${lfe}${JM}`))}};s(EV,"ColumnAggregation");var nb=EV;var il=me(Pe());var Ffe=me(Pe());var Rfe=s(e=>!e.type||e.type===Ffe.ArtifactType.Annotation,"isAnnotationLocation"),y0=s(e=>{let t=[],n=e.locations?[...e.locations]:[];for(let r=n.length-1;r>=0;r--){let i=n[r];Rfe(i)&&(t.push(i),n.splice(r,1))}if(e.parent&&t.length){let r=e.parent.locations||[];e.parent.locations=r.filter(i=>!Rfe(i)),e.parent.locations.unshift(...t)}e.locations=n},"updateTableChildNodeLocations");var rb="custom",rQe=new Map([[il.PageType.ObjectPage,"ResponsiveTableColumnsExtension"],[il.PageType.ListReport,"ResponsiveTableColumnsExtension"],[il.PageType.AnalyticalListPage,"AnalyticalTableColumnsExtension"]]),PV=class PV extends ot{constructor(n,r){var i;super(n,r);this.customColumns=[];this.columnKeys=[];this.allowedAnnotationCreationForms=["Basic","Rating","Chart","Progress","NativeAction","Contact","NativeNavigation"];this.sortableCollection="actions";if(this.childClass=nb,r!=null&&r.properties){let o;(i=r.properties)!=null&&i.custom?o="CustomColumn":typeof r.additionalProperties=="object"&&r.additionalProperties.$ref&&r.additionalProperties.$ref.indexOf("TableCustomColumn")>-1?(o="CustomColumnV4",this.isV4=!0):this.isMacrosNode()&&(this.isV4=!0),o&&(this.schemaCreationForms=[{name:o,kind:$n,title:"PAGE_EDITOR_OUTLINE_ADD_CUSTOM_COLUMNS_TITLE",disabled:!1}])}this.sortableList=!0,this.i18nKey="COLUMNS"}groupCustomColumnsByExtension(){let n=new Map,r=[...this.customColumns].sort((i,o)=>{let a=i.columnIndex??0,c=o.columnIndex??0;return a===c?0:a>c?1:-1});for(let i of r){let o=n.get(i.extensionType);o||(o=[],n.set(i.extensionType,o)),o.push(i)}return n}ensureColumnOrder(){let n=this.getAggregationKeys();for(let r=0;r<n.length;r++){let i=this.aggregations[n[r]];i&&(i.order=r)}}updatePropertiesFromCustomAggregation(n,r,i,o){var c,l,u,f;let a=this.formSchema;this.customColumns=n&&rb in n?n[rb]:[],i===il.PageTypeV2.ObjectPage&&(this.sectionId=(f=(u=(l=(c=this.parent)==null?void 0:c.parent)==null?void 0:l.schema)==null?void 0:u.keys)==null?void 0:f.reduce(p=>p.name==="ID").value),this.customColumns.length&&(this.ensureColumnOrder(),this.columnKeys=Object.keys(this.aggregations),this.groupCustomColumnsByExtension().forEach(d=>{for(let h in d){let m=a==null?void 0:a.getCopy(nb),b=d[h],T=this.customColumns.indexOf(b);m.markAsCustomColumn({pageType:i,originalIndex:T,columnExtension:b.extensionType,isExtensionTypeSupported:this.isExtensionTypeSupported(),i18nKey:this.i18nKey,tableExtension:this.tableColumnExtensionType,isV4:this.isV4,tabkey:b.tabKey}),m.updatePropertiesValues(b,r,i,o),m.setTitle(b.text);let I=this.getFreeId(b.id||b.columnKey||"customColumn",this.columnKeys);this.columnKeys.push(I);let F=this.doesColumnExtensionMatchTableType(b)?b.columnIndex:this.getMaxColumnIndex(this.customColumns)+1;this.addAggregation(I,m,this.path.concat([rb,T]),F)}}))}updatePropertiesValues(n,r,i,o,a){var c,l;if(super.updatePropertiesValues(n,r,i,o,a),this.resolveTableColumnExtensionType(r,i,o),!this.isV4)this.formSchema=this.aggregations[rb],delete this.aggregations[rb],this.updatePropertiesFromCustomAggregation(n,r,i,o);else{this.formSchema=(c=this.additionalProperties)==null?void 0:c.aggregations.columns;let u=n||{};for(let f in u){let p=this.aggregations[f];p.schema&&!p.schema.annotationPath&&(p.originalIndex=p.schema.propertyIndex,p.markAsCustomColumn({pageType:i,originalIndex:p.schema.propertyIndex,columnExtension:this.tableColumnExtensionType,isExtensionTypeSupported:this.isExtensionTypeSupported(),i18nKey:this.i18nKey,tableExtension:this.tableColumnExtensionType,isV4:this.isV4,tabkey:(l=p.properties.tabkey)==null?void 0:l.value}))}}}getFreeId(n,r){let i=1,o=n;for(;r.includes(n);)n=o+i,i++;return n}resolveTableColumnExtensionType(n,r,i){let o=i.splice(0,i.length-1);o.push("type");let a=Ju(n,o);this.tableColumnExtensionType=typeof a=="string"&&a in il.v2.TableTypeV2?YM.get(a):rQe.get(r)}doesColumnExtensionMatchTableType(n){return!this.isExtensionTypeSupported()||n.extensionType===this.tableColumnExtensionType}isExtensionTypeSupported(){var n;return!!((n=this.formSchema)!=null&&n.properties.extensionType)}getMaxColumnIndex(n){let r=this.getMaxOrder();for(let i of n)i.columnIndex!==void 0&&r<i.columnIndex&&(r=i.columnIndex);return r}updateLocations(n,r){super.updateLocations(n,r),y0(this)}};s(PV,"ColumnsAggregation");var b0=PV;var AV=class AV extends ot{getTechnicalName(){return(this.parent?Rd(this.parent.path,!0):void 0)||super.getTechnicalName()}};s(AV,"TableAggregation");var v0=AV;var xV=class xV extends ot{updateLocations(t,n){super.updateLocations(t,n),y0(this)}};s(xV,"ToolbarAggregation");var T0=xV;var OV=class OV extends ot{constructor(){super(...arguments);this.sortableCollection="visualFilters";this.actions=["Delete"];this.isViewNode=!0}};s(OV,"VisualFilterAggregation");var S0=OV;var IV=class IV extends ot{constructor(){super(...arguments);this.sortableList=!0;this.childClass=S0;this.i18nKey="VISUAL_FILTERS"}};s(IV,"VisualFiltersAggregation");var E0=IV;var _V=class _V extends Dd{constructor(t,n){super(t,n);let r=n==null?void 0:n.additionalProperties;typeof r=="object"&&r.$ref&&(this.schemaCreationForms=[{name:"CustomSection",kind:$n,title:"PAGE_EDITOR_OUTLINE_ADD_CUSTOM_SECTIONS_TITLE",disabled:!1}])}updatePropertiesValues(t,n,r,i,o,a){var u,f;super.updatePropertiesValues(t,n,r,i,o,a),this.formSchema=(f=(u=this.additionalProperties)==null?void 0:u.aggregations)==null?void 0:f.sections;let c=t||{};this.removeObsoleteAggregations();for(let p in c){let d=this.aggregations[p];d!=null&&d.schema&&!d.schema.annotationPath&&(d.markAsCustomSection(),a&&this.parseBuildingBlocks({parser:a,page:n,pageType:r},d,p,c,i))}if(this.isSectionsMerged())for(let p in this.aggregations)this.aggregations[p].custom&&(this.aggregations[p].sortableItem="Excluded")}removeObsoleteAggregations(){var n;let t=((n=this.schema)==null?void 0:n.properties)||{};for(let r in this.aggregations)r in t||delete this.aggregations[r]}parseBuildingBlocks(t,n,r,i,o){var d;let{parser:a,page:c,pageType:l}=t,u=i[r],{fragmentName:f}=u,p=a==null?void 0:a.definitions[`CustomExtensionFragment<${f}>`];if(p&&n.aggregations.controls){let h=new Oa(void 0,p);n.addAggregation("controls",h,o.concat(n.path[n.path.length-1],"controls"),0,!0),a.parse(h,p,void 0,void 0,h.path,{filePath:(d=p.metadata)==null?void 0:d.filePath});let m="value"in n&&typeof n.value=="object"?n.value:{},b=Ju(m||{},["controls"]);b&&typeof b=="object"&&h.updatePropertiesValues(b,c,l,o,a==null?void 0:a.annotations)}}isSectionsMerged(){return!1}};s(_V,"SectionsObjectAggregation");var sl=_V;var CV=class CV extends sl{constructor(n,r){super(n,r);this.allowedAnnotationCreationForms=["NativeSection","DataPointSection","ProgressSection","RatingSection","ChartSection"];let i=r==null?void 0:r.additionalProperties;typeof i=="object"&&i.$ref&&(this.schemaCreationForms=[{name:"CustomHeaderSection",kind:$n,title:"PAGE_EDITOR_OUTLINE_ADD_CUSTOM_SECTIONS_TITLE",disabled:!1}])}updatePropertiesValues(n,r,i,o,a){var l,u,f,p;super.updatePropertiesValues(n,r,i,o,a),this.formSchema=(u=(l=this.additionalProperties)==null?void 0:l.aggregations)==null?void 0:u.sections;let c=n||{};for(let d in c){let h=this.aggregations[d];if(h!=null&&h.schema&&!h.schema.annotationPath){let m=(f=h.properties.templateEdit)==null?void 0:f.value,b=(p=h.properties.fragmentName)==null?void 0:p.value,T;typeof b=="string"&&typeof m=="string"&&(T={type:"OpenSource",subActions:[{id:b,text:ee.t("CUSTOM_HEADER_SECTION_TEMPLATE")},{id:m,text:ee.t("CUSTOM_HEADER_SECTION_TEMPLATE_EDIT")}]}),h.markAsCustomSection(void 0,void 0,T)}}}};s(CV,"HeaderSectionsAggregation");var P0=CV;var wV=class wV extends sl{constructor(t,n){super(t,n);let r=n==null?void 0:n.additionalProperties;typeof r=="object"&&r.$ref&&(this.schemaCreationForms=[{name:"CustomSubSection",kind:$n,title:"PAGE_EDITOR_OUTLINE_ADD_CUSTOM_SECTIONS_TITLE",disabled:!1}])}updatePropertiesValues(t,n,r,i,o,a){var c,l;super.updatePropertiesValues(t,n,r,i,o,a),this.formSchema=(l=(c=this.additionalProperties)==null?void 0:c.aggregations)==null?void 0:l.subsections}isSectionsMerged(){let t=0;for(let n in this.aggregations){let r=this.aggregations[n];if("subsections"in r.aggregations)return!1;r.custom||t++}return t>0}};s(wV,"SubSectionsAggregation");var A0=wV;var NV=class NV extends ot{constructor(){super(...arguments);this.allowedAnnotationCreationForms=["AnalyticalChart"];this.name="root"}getDefaultNativeCreationForms(){return this.annotationCreationForms}updateAnnotationData(n){var o,a,c,l;this.annotationCreationForms=[],super.updateAnnotationData(n);let r=!!((o=this.aggregations.chart)!=null&&o.isViewNode);if(!!((c=(a=this.aggregations.table)==null?void 0:a.aggregations.views)!=null&&c.isViewNode&&!r)&&((l=n==null?void 0:n.dialogsContext)==null?void 0:l.analyticalChartSupport)!==void 0){let u={name:"AnalyticalChart",title:n.dialogsContext.analyticalChartSupport.creationTooltip,disabled:!n.dialogsContext.analyticalChartSupport.creationEnabled,kind:ufe,visualizationIcon:"Add",buttonText:ee.t("ADD_CHART"),buttonId:"add-chart"};u.disabled&&(u.disabledTitle=u.title),this.annotationCreationForms.push(u)}}};s(NV,"RootAggregation");var x0=NV;var RV=class RV extends ot{constructor(n,r){var i;super(n,r);this.actions=[];this.sortableItem="Enabled";this.sortableCollection="views";r!=null&&r.key&&!r.annotationPath&&!((i=r.properties)!=null&&i.annotationPath)&&(r.annotationPath=`${Zy}${r.key})`)}getRawDisplayName(){return this.title||super.getRawDisplayName()}markAsCustomView(){var n,r;this.custom=!0,this.actions=["Delete","OpenSource"],this.sortableItem="Enabled",this.additionalText=ee.t("PAGE_EDITOR_OUTLINE_NODE_DESC_CUSTOM_VIEW"),this.i18nKey=(n=this.parent)==null?void 0:n.i18nKey,(r=this.properties.label)!=null&&r.value&&(this.title=this.properties.label.value)}updatePropertiesValues(n,r,i,o,a){var c;super.updatePropertiesValues(n,r,i,o,a),this.isTableView()?this.icon="Table":this.isChartView()?this.icon="Chart":this.icon="Sections",this.isAnnotationView()&&!((c=this.schema)!=null&&c.annotationPath)&&this.properties.annotationPath&&(this.properties.annotationPath.messages=[{type:"warning",text:ee.t("PAGE_EDITOR_PROPERTIES_VIEW_NO_ANNOTATION_PATH")}])}isTableView(){return"columns"in this.aggregations}isChartView(){return!("columns"in this.aggregations)&&"toolBar"in this.aggregations}isAnnotationView(){var n,r;return!this.custom&&"annotationPath"in this.properties||!this.custom&&((n=this.schema)==null?void 0:n.annotationPath)&&!((r=this.schema)!=null&&r.annotationPath.startsWith(Zy))}};s(RV,"ViewAggregation");var Qu=RV;var FV=class FV extends ot{constructor(){super(...arguments);this.sortableList=!0;this.childClass=Qu;this.allowedAnnotationCreationForms=["TableView","AnalyticalChartView","CustomViewV4"];this.sortableCollection="views";this.sortableConfigOnly=!0;this.i18nKey="VIEWS"}updateAnnotationData(n){if(super.updateAnnotationData(n),n){this.toggleChartForm(this.annotationCreationForms,n);for(let r in this.aggregations){let i=this.aggregations[r],o=this.getViewDeleteAction(i,n),a=i.actions||[];a.push(o),i.actions=a}}}updatePropertiesValues(n,r,i,o,a){var l,u,f,p;super.updatePropertiesValues(n,r,i,o,a),this.formSchema=(l=this.additionalProperties)==null?void 0:l.aggregations.views,(f=(u=this.formSchema)==null?void 0:u.properties)!=null&&f.template&&(this.schemaCreationForms=[{name:"CustomViewV4",kind:$n,title:"PAGE_EDITOR_OUTLINE_ADD_CUSTOM_VIEW_TITLE",disabled:!1}]);let c=n||{};if(Object.keys(c).length!==0)for(let d in c){let h=this.aggregations[d];h!=null&&h.schema&&!((p=h==null?void 0:h.schema.properties)!=null&&p.annotationPath)&&(!h.schema.annotationPath||h.schema.annotationPath.startsWith(Zy))&&h.markAsCustomView()}}getViewDeleteAction(n,r){var c;let i=n.annotationNodeId,o=!0,a=this.getAnnotationViewCount();return i?o=Efe(((c=r.dialogsContext)==null?void 0:c.suppressTableViewDeletionNodeId)||[],i):(a>1||a===1&&n.custom)&&(o=!1),{type:"Delete",disabled:o,title:ee.t(o?"TABLE_VIEW_DELETE_DISABLED_TOOLTIP":"PAGE_EDITOR_OUTLINE_DELETE_TOOLTIP")}}toggleChartForm(n,r){var o;let i=n.find(a=>a.name==="AnalyticalChartView");i&&((o=r.dialogsContext)!=null&&o.analyticalChartSupport)&&(r.dialogsContext.analyticalChartSupport.addToMultiViewEnabled?(i.disabled=!1,delete i.disabledTitle):(i.disabled=!0,i.disabledTitle=r.dialogsContext.analyticalChartSupport.addToMultiViewTooltip))}getAnnotationViewCount(){let n=0;for(let r in this.aggregations){let i=this.aggregations[r];i instanceof Qu&&i.isAnnotationView()&&n++}return n}};s(FV,"ViewsAggregation");var O0=FV;var iQe="array",Lfe="object",LV="sap.fe.macros.Table",jfe=[["table","quickVariantSelection","variants"],["table","quickVariantSelectionX","variants"]],jV=s((e,t,n)=>{let r=n,i=e.split("/").length-1,o=0;for(;o<i;)r=r==null?void 0:r.parent,o++;return t.endsWith(`table/${e}`)||r instanceof Qu&&t.endsWith(`/${e}`)},"isTableNode"),sQe=s((e,t,n)=>{var o;let r=n==null?void 0:n.additionalProperties;return!!((o=r==null?void 0:r.$ref)==null?void 0:o.includes("CustomSectionActionOP"))&&!!(t!=null&&t.name)&&e.endsWith(`${t.name}/actions`)},"isCustomSectionAction"),DV=s((e,t)=>{var n,r;return((r=(n=t==null?void 0:t.schema)==null?void 0:n.metadata)==null?void 0:r.controlName)===e},"isInstanceOfUI5Control"),oQe=s((e,t)=>{var n;return((n=t==null?void 0:t.metadata)==null?void 0:n.controlName)===e},"isSchemaOfUI5Control"),Dfe=s((e,t)=>{var r;let n=t==null?void 0:t.additionalProperties;return((r=t==null?void 0:t.metadata)==null?void 0:r.type)==="Aggregation"&&typeof n=="object"&&n.$ref===`#/definitions/${e}`},"isSupportedUI5Aggregation"),aQe=[{aggregation:sl,fn:s((e,t,n)=>{var o;let r=n==null?void 0:n.additionalProperties,i=(o=r==null?void 0:r.$ref)==null?void 0:o.includes("ObjectPageCustomSectionFragment");return e==="sections"&&!!i},"fn")},{aggregation:Dd,fn:s(e=>e==="sections","fn")},{aggregation:b0,fn:s((e,t,n)=>jV("columns",e,t)||Dfe("sap.fe.macros.table.Column",n)&&DV(LV,t),"fn")},{aggregation:T0,fn:s((e,t)=>jV("toolBar",e,t),"fn")},{aggregation:d0,fn:s(e=>e.endsWith("form/fields"),"fn")},{aggregation:u0,fn:s(e=>e.endsWith("actions/RelatedApps/additionalSemanticObjects"),"fn")},{aggregation:h0,fn:s((e,t,n)=>(n==null?void 0:n.dataType)==="ConnectedFields","fn")},{aggregation:Xu,fn:s((e,t,n)=>sQe(e,t,n)||["form/actions","header/actions","footer/actions"].some(r=>e.endsWith(r))||jV("toolBar/actions",e,t)||Dfe("sap.fe.macros.table.Action",n)&&DV(LV,t),"fn")},{aggregation:m0,fn:s((e,t)=>e.endsWith("filterBar/selectionFields")||e.endsWith("/filterFields")&&DV("sap.fe.macros.FilterBar",t),"fn")},{aggregation:E0,fn:s(e=>e.endsWith("filterBar/visualFilters"),"fn")},{aggregation:v0,fn:s((e,t,n)=>e==="table"||e.endsWith("/table")&&t instanceof rl||oQe(LV,n),"fn")},{aggregation:P0,fn:s(e=>e.endsWith("header/sections"),"fn")},{aggregation:x0,fn:s(e=>e==="","fn")},{aggregation:p0,fn:s(e=>e==="chart","fn")},{aggregation:O0,fn:s(e=>e.endsWith("table/views"),"fn")},{aggregation:A0,fn:s((e,t)=>e.endsWith("/subsections")&&t instanceof rl,"fn")}],cQe=["annotationPath"],$V=class $V{constructor(t,n,r,i,o){this.root=this.prepareAggregation();this.definitions={};this.excludeProperties=["$schema"];this.validator=new f0;this.pendingNodes=[];this.schemaParsers=[t=>(t.currentNode.const&&!t.currentNode.enum&&(t.currentNode.enum=[t.currentNode.const]),!0),t=>{let{currentNode:n}=t;return!n.hidden},t=>{let{currentNode:n,name:r}=t;if(r===void 0)return!0;if(this.isAggregation(n)){t.path=t.path.concat([t.aggregation.type==="Array"?Number.parseInt(r,10):r]);let i=n.displayName||r,o=n.type===Lfe?"Object":"Array";if(t.aggregation=t.aggregation.addAggregation(i,t.aggregation.aggregations[i]||this.prepareAggregation(t.path,n,t.aggregation,o),t.path),t.aggregation.type==="Array")return t.aggregation.schema=n,this.updateFormSchema(t.aggregation),this.copySchemaProperties(t.aggregation,n,r),!1}else this.isProperty(n)&&this.updatePropertyFromSchema(r,t.aggregation,n);return!0},t=>{var o;let{aggregation:n,currentNode:r}=t,i=t.currentAnnotationNode;if(n instanceof Oa&&(i=this.originalData.annotations.nodes.find(a=>"nodeType"in a&&a.nodeType==="macros"),n.annotationNodeId=i==null?void 0:i.nodeId),(o=r.metadata)!=null&&o.internalId&&!i){let a=this.originalData.annotations.nodes;a=a.filter(c=>"nodeType"in c&&c.nodeType==="macros"),i=t.currentAnnotationNode=this.getContextForMacrosNode(r.metadata.internalId,a)}if(!r.$ref&&r.annotationPath){let a=[];i&&!nl(i)&&(a=i.subnodes);let c=Tfe(r.annotationPath,this.originalData.annotations.nodes,a,i==null?void 0:i.annotationPath,n.order);c&&(t.currentAnnotationNode=c,n.annotationNodeId=c.nodeId)}return!0},t=>{for(let n of Array.from(this.schemaReferenceParsers))if(n[1](t))break;return!0},t=>{let{aggregation:n,currentNode:r,name:i}=t;return this.copySchemaProperties(n,r,i),!0},t=>{let{aggregation:n,currentNode:r,currentAnnotationNode:i,name:o,path:a,context:c}=t;return typeof r.additionalProperties=="object"&&(n.additionalProperties=this.prepareAggregation(),this.parseSchema(n.additionalProperties,r.additionalProperties,i,o,a,c),this.isSchemaAtomic(r.additionalProperties)&&this.updateFormSchema(n,o)),!0},t=>{let{aggregation:n,currentNode:r,currentAnnotationNode:i,name:o,path:a,context:c}=t;return typeof r.patternProperties=="object"&&(n.pattern=Object.keys(r.patternProperties)[0],r.additionalProperties=r.patternProperties[n.pattern],n.additionalProperties=this.prepareAggregation(),this.parseSchema(n.additionalProperties,r.patternProperties[n.pattern],i,o,a,c),this.updateFormSchema(n,o)),!0},t=>{let{aggregation:n,currentNode:r}=t;if(r.required&&Array.isArray(r.required))for(let i of r.required){let o=n.properties[i];o&&(o.required=!0)}return!0},t=>{let{aggregation:n,currentNode:r,name:i}=t;return r.displayName&&i&&r.type==="object"&&n.addUnionName(r.displayName,i),!0},t=>{let{name:n="",aggregation:r,currentNode:i,context:o}=t,{metadata:a}=i,c=r.properties[n];if(o.filePath&&a){let{position:l}=a,u=[];l&&u.push({fileUri:(0,$fe.join)(kfe.DirName.Webapp,o.filePath),range:{start:{line:l.startLine-1,character:l.startColumn-1},end:{line:l.endLine-1,character:l.endColumn}},relative:!0,type:"XMLProperty"}),c?c.locations=u:r.name===n&&(r.locations=u)}return!0},t=>{let{path:n,name:r="",aggregation:i}=t;return n&&jfe.some(o=>tV(n,o))&&this.updateFormSchema(i,r),!0}];this.schemaReferenceParsers=new Map([["$ref",t=>{let{aggregation:n,currentNode:r,currentAnnotationNode:i,name:o,path:a,context:c}=t;if(!r.$ref)return!1;let l=this.definitions[r.$ref]?{...this.definitions[r.$ref]}:{};for(let u of Object.keys(r)){let f=cQe.includes(u);u!=="$ref"&&!(f&&l[u])&&(l[u]=r[u])}return this.parseSchema(n,l,i,o,a,c),!0}],["anyOf",t=>{let{aggregation:n,currentNode:r,currentAnnotationNode:i,name:o,path:a,context:c}=t;if(!r.anyOf)return!1;for(let l of r.anyOf)this.parseSchema(n,l,i,o,a,c);return(Object.keys(r.anyOf).length>1||Array.isArray(r.anyOf)&&r.anyOf.length>1)&&this.createAnyOfPropertiesVariations(r.anyOf,t),!0}],["properties",t=>{let{aggregation:n,currentNode:r,currentAnnotationNode:i,path:o,context:a}=t;if(!r.properties)return!1;let c=Object.keys(r.properties).filter(f=>!this.excludeProperties.includes(f)),l=r.properties,u=c.some(f=>{var p;return r.properties&&((p=r.properties[f])==null?void 0:p.propertyIndex)!==void 0});l&&c.length&&u&&c.sort(this.propertySorter.bind(this,l));for(let f of c)this.parseSchema(n,r.properties[f],i,f,o,a);return!0}],["items",t=>{let{aggregation:n,currentNode:r,currentAnnotationNode:i,path:o,context:a}=t;if(!r.items)return!1;if(Array.isArray(r.items))for(let c=0;c<r.items.length;c++)this.parseSchema(n,r.items[c],i,c.toString(),o,a);else this.parseSchema(n,r.items,i,void 0,o,a);return!0}]]);this.name=t,this.pageType=o,this.data=n,this.originalData={page:structuredClone(this.data),annotations:i,schema:r},this.schema=JSON.parse(r),this.init(i)}init(t){if(this.schema.definitions)for(let i in this.schema.definitions)this.definitions[`#/definitions/${i}`]=this.schema.definitions[i];let n=JSON.parse(this.originalData.schema);this.root=this.prepareAggregation(void 0,{properties:n.properties}),this.parseSchema(this.root,n,{subnodes:t.nodes},void 0,[],{filePath:this.data.$filePath}),this.readAdvancedPropertiesData(this.root,this.data);let r={definitions:this.schema.definitions,parse:this.parseSchema.bind(this),annotations:t};this.root.updatePropertiesValues(this.data,this.data,this.pageType,[],t,r),this.validator.validate(this.root,this.data),this.updateViewNodes(this.root),this.pendingNodes=[],this.afterInit(t)}updatePropertyFromSchema(t,n,r){if(!(t in n.properties))n.properties[t]=n.addProperty(t,r),n.properties[t].freeText=this.isFreeText(r);else if(r.enum){let i=n.properties[t].schema.enum;i=i?i.concat(r.enum):r.enum,n.properties[t].schema.enum=i?i.filter((o,a)=>i&&i.indexOf(o)===a):[]}}getContextForMacrosNode(t,n){for(let r in n){let i=n[r],o="subnodes"in i?i.subnodes:[];for(let a in o)if(o[a].macroNodeId===t)return i}}createAnyOfPropertiesVariations(t,n){let{aggregation:r,currentAnnotationNode:i,name:o,path:a,context:c}=n;for(let l of t){let u=this.prepareAggregation();this.parseSchema(u,l,i,o,a,c);let f=o;if(o&&!u.aggregations[o]){let d=Object.keys(u.aggregations);f=d.length>0?d[0]:o}let p=r;f&&(p=r.aggregations[f],u=u.aggregations[f]),u&&p&&p.variants.push({aggregations:u.aggregations,properties:u.properties})}o&&r.properties[o]&&(r.properties[o].freeText=this.isFreeText(t))}parseSchema(t,n,r,i,o,a){let c={aggregation:t,currentNode:n,currentAnnotationNode:r,name:i,path:o,context:a};for(let l of this.schemaParsers)if(!l.call(this,c))break}copySchemaProperties(t,n,r){if(r)if(t.properties[r])this.storeInnerProperties(t.properties[r],["pattern","description","i18nClassification","artifactType","minimum","displayName","messages"],n);else{let i=t.aggregations[r]||t;this.storeInnerProperties(i,["description","isViewNode","artifactType","messages"],n)}}isProperty(t){return!t.$ref&&t.type!=="object"&&t.type!=="array"&&!t.anyOf}isAggregation(t){return(t.type===Lfe||t.type===iQe)&&!t.$ref}handleAdditionalProperties(t,n){let r=[...Object.keys(t.properties),...Object.keys(t.aggregations)];for(let i of Object.keys(n))if(!r.includes(i)&&t.additionalProperties){let o=t.schema?t.schema.additionalProperties||t.schema.additionalItems:void 0;if(typeof o=="object"){this.parseSchema(t,o,void 0,i,t.path,{});let a=t.aggregations[i];a!=null&&a.isViewNode&&a.description&&delete a.description}}}readAdvancedPropertiesData(t,n){var r;if(this.handleAdditionalProperties(t,n),t&&t.type==="Array"&&t.schema){let i=t.schema,o=this.getSchemaArrayItem(i);if(o&&Array.isArray(n))for(let a=0;a<n.length;a++)this.parseSchema(t,o,void 0,a.toString(),t.path,{})}for(let i in t.aggregations){let o=((r=t.aggregations[i].union)==null?void 0:r.originalNames)||[i];for(let a of o)typeof n=="object"&&a in n&&this.readAdvancedPropertiesData(t.aggregations[i],n[a])}}readPropertiesData(t,n){let r=Object.keys(t.properties);for(let i in n)r.includes(i)&&(t.properties[i].value=n[i]);for(let i in t.aggregations)i in n&&this.readPropertiesData(t.aggregations[i],n[i])}prepareAggregation(t,n,r,i="Object"){let o=(t||[]).join("/");for(let l of aQe)if(l.fn(o,r,n))return new l.aggregation(void 0,n);let a,c=r==null?void 0:r.getChildClass(n,t);if(c)a=new c(void 0,n);else{let l=i==="Object"?ot:eb;a=new l(void 0,n)}return t&&jfe.some(l=>tV(t,l))&&(a.isTable=!0),a}isFreeText(t){let n=s(r=>r.type==="string"&&!r.enum,"validate");return Array.isArray(t)?t.some(n):n(t)}storeInnerProperties(t,n,r){for(let i of n)if(r[i]!==void 0||i==="i18nClassification"&&i in r){if(!this.isCorrectSchemaProperty(i,r[i])){this.logger.error(ee.t("SCHEMA_PARSING_ERROR_UNEXPECTED_VALUE",{name:i,value:JSON.stringify(r[i])}));return}t[i]=r[i]}}getSchemaArrayItem(t){let n=Array.isArray(t.items)?t.additionalItems:t.items;return typeof n=="object"?n:void 0}updateArrayFormSchema(t){let n=this.getSchemaArrayItem(t.schema||{});if(typeof n=="object"){let r=this.prepareAggregation();t.isAtomic=!!n.type,this.parseSchema(r,n,void 0,t.isAtomic?"":void 0,t.path,{}),Object.keys(r.properties).length&&(t.formSchema=r)}(!t.formSchema||!Object.keys(t.formSchema.properties).length)&&(t.schemaCreationForms=[])}updateFormSchema(t,n){var r,i,o;if(t instanceof eb)this.updateArrayFormSchema(t);else if(n&&((r=t.additionalProperties)!=null&&r.aggregations[n])){let a=this.prepareAggregation();this.parseSchema(a,t.additionalProperties.aggregations[n].schema||{},void 0,void 0,t.path,{}),Object.keys(a.properties).length&&(t.formSchema=a)}else if(typeof((i=t.schema)==null?void 0:i.additionalProperties)=="object"&&this.isSchemaAtomic((o=t.schema)==null?void 0:o.additionalProperties)){t.isAtomic=!0,t.isTable=!0;let a=this.prepareAggregation();this.parseSchema(a,t.schema.additionalProperties,void 0,"",t.path,{}),Object.keys(a.properties).length&&(t.formSchema=a)}}updateViewNodes(t){for(let n in t.aggregations){let r=t.aggregations[n];this.updateViewNodes(r)&&!t.isViewNode&&(t.isViewNode=!0)}return t.isViewNode||!1}isCorrectSchemaProperty(t,n){let r=!0;switch(t){case"description":case"pattern":case"i18nClassification":{r=n===void 0||typeof n=="string";break}case"isViewNode":{r=n===void 0||typeof n=="boolean";break}}return r}propertySorter(t,n,r){let i=t[n].propertyIndex!==void 0?t[n].propertyIndex:0,o=t[r].propertyIndex!==void 0?t[r].propertyIndex:0;return i===o?0:i>o?1:-1}afterInit(t){var n;if(this.pageType==="FPMCustomPage"){let r=new Oa(void 0,void 0);typeof this.data.$filePath=="string"&&(r.setFilePath(this.data.$filePath),r.annotationNodeId=(n=t.nodes[0])==null?void 0:n.nodeId),r.aggregations=this.root.aggregations,this.root.aggregations={macros:r}}}isSchemaAtomic(t){let n=["string","number","boolean"];return typeof t=="object"&&typeof t.type=="string"&&n.includes(t.type)}};s($V,"TreeModel");var I0=$V;function kV(e,t,n,r){return new I0("Root",t,e,r??{dynamicNodes:{},nodes:[]},n)}s(kV,"getModel");var lQe=qV();function _0(e){return e??(0,Ufe.create)((0,qfe.create)())}s(_0,"getFsInstance");async function MV(e){let t=_0(e.fs),n=typeof e.app=="string"?await(0,Vfe.createApplicationAccess)(e.app,t):e.app,r=[],i=await n.readManifest(t);if(i){let c=await n.readAnnotationFiles(t),l=await n.readFlexChanges(t);r=await VV({manifest:i,annotations:c,flex:Object.values(l),logger:e.logger})}let o;if(!e.skipParsing){let c=r.find(f=>f.dataSourceUri===Mfe.FileName.App),l=c?JSON.parse(c.fileContent):{},u=r.find(f=>{var p;return(p=l.$schema)==null?void 0:p.endsWith(f.dataSourceUri)});if(l&&u){o={...l,model:kV(u.fileContent,l),pages:{}};for(let f in l.pages??{}){let p=l.pages[f],d=`pages/${f}.json`,h=r.find(T=>T.dataSourceUri===d),m=h?JSON.parse(h.fileContent):{},b=r.find(T=>{var I;return(I=m.$schema)==null?void 0:I.endsWith(T.dataSourceUri)});b&&(o.pages[f]={...p,model:kV(b.fileContent,m,p.pageType)})}}}let a={files:r,appAccess:n,version:lQe};return o&&(a.applicationModel=o),a}s(MV,"readApp");var Gfe=require("path");function uQe(e){let t;if(e[$t.FioriElementsVersion.v2]){let n=e[$t.FioriElementsVersion.v2];if(n[$t.SchemaType.ListReport]){let{genericSchema:r,entitySet:i,annotations:o,manifest:a,fragments:c,logger:l}=n[$t.SchemaType.ListReport];t=v_(r,i,o,a,c,l)}else if(n[$t.SchemaType.ObjectPage]){let{genericSchema:r,entitySet:i,annotations:o,manifest:a,fragments:c,logger:l}=n[$t.SchemaType.ObjectPage];t=b_(r,i,o,a,c,l)}else if(n[$t.SchemaType.OverviewPage]){let{genericSchema:r,manifest:i}=n[$t.SchemaType.OverviewPage];t=og(r,i)}else if(n[$t.SchemaType.AnalyticalListPage]){let{genericSchema:r,entitySet:i,annotations:o,manifest:a,fragments:c,logger:l}=n[$t.SchemaType.AnalyticalListPage];t=T_(r,i,o,a,c,l)}}return t}s(uQe,"generateSchema");function fQe(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[$t.FioriElementsVersion.v2]){let r=e[$t.FioriElementsVersion.v2];t=jH(r,n)}return t}s(fQe,"exportConfig");function pQe(e){let t=$t.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[$t.FioriElementsVersion.v2]){let r=e[$t.FioriElementsVersion.v2];t=UI(r,n)}return t}s(pQe,"exportConfigEntityByPath");function dQe(e){let t=$t.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[$t.FioriElementsVersion.v2]){let r=e[$t.FioriElementsVersion.v2];t=UI(r,n,!0)}return t}s(dQe,"deleteConfigEntityByPath");function hQe(e){let t;if(e[$t.FioriElementsVersion.v2]){let n=e[$t.FioriElementsVersion.v2];n[$t.SchemaType.ListReport]?t=pT(n[$t.SchemaType.ListReport]):n[$t.SchemaType.ObjectPage]?t=Xv(n[$t.SchemaType.ObjectPage]):n[$t.SchemaType.OverviewPage]?t=zv(n[$t.SchemaType.OverviewPage]):n[$t.SchemaType.AnalyticalListPage]&&(t=Qv(n[$t.SchemaType.AnalyticalListPage]))}return t}s(hQe,"importConfig");async function VV(e){return m_(e)}s(VV,"importProject");async function gQe(e){return g_(e)}s(gQe,"importProjectSchema");function qV(){return{version:"24",moduleVersion:fH.version}}s(qV,"getApiVersion");function mQe(e,t,n){try{let{name:r,isFragment:i,namespace:o}=e,a=bG(r,i),c=i?yG(r,o,"xml",t,!1):mG(r,o,"xml",t,!1,!1);return n.write((0,Gfe.join)(e.folders.targetFolder,a),c),n}catch(r){throw je(void 0,{severity:$t.LogSeverity.Error,message:r instanceof Error?r.message:"Unknown error while generating custom section."}),r}}s(mQe,"generateCustomSectionV2");async function yQe(e){if(e.customExtension===$t.CustomExtensionType.CustomSectionV2){let t=e.fsEditor??_0(),n=await(0,Bfe.createIdGenerator)({fsEditor:t,basePath:e.basePath});return mQe(e.data,n,t)}else return}s(yQe,"generateCustomExtension");var Es=require("path"),ol=require("fs");var $d=s(async e=>new Promise((t,n)=>{(0,ol.readFile)(e,{encoding:"utf8"},(r,i)=>{r?n(r):t(i)})}),"readFile"),bQe=s(async e=>JSON.parse(await $d(e)),"readJSON"),UV=s(async e=>new Promise((t,n)=>{(0,ol.readdir)(e,{encoding:"utf8"},(r,i)=>{r?n(r):t(i)})}),"readDirectory"),vQe=s(async e=>new Promise(t=>{(0,ol.stat)(e,(n,r)=>{t(n?!1:r.isDirectory())})}),"isDirectory"),Hfe=s(async e=>new Promise(t=>{(0,ol.exists)(e,n=>{t(n)})}),"resourceExists"),TQe=s(async e=>bQe((0,Es.join)(e,"manifest.json")),"getManifest"),Wfe=s(async e=>{let t=[],n=(0,Es.join)(e,"changes");if(!await Hfe(n))return t;let r=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],i=await UV(n);for(let o of i)r.some(a=>o.endsWith(a))&&t.push(await $d((0,Es.join)(n,o)));return t},"getChanges"),SQe=s(async e=>{let t=[],n=(0,Es.join)(e,"ext","fragments");if(!await Hfe(n))return t;let r=await UV(n);for(let i of r){let o=(0,Es.join)(n,i),a=await $d(o);t.push({dataSourceUri:o,fileContent:a})}return t},"getFragments"),EQe=s(async(e,t)=>{var i,o,a,c,l,u,f,p;let n=[],r=(i=e==null?void 0:e["sap.app"])==null?void 0:i.dataSources;if((a=(o=r==null?void 0:r.mainService)==null?void 0:o.settings)!=null&&a.localUri){let d=(0,Es.join)(t,r.mainService.settings.localUri);n.push({dataSourceUri:d,fileContent:await $d(d)})}if((l=(c=r==null?void 0:r.mainService)==null?void 0:c.settings)!=null&&l.annotations){for(let d of r.mainService.settings.annotations)if((f=(u=r[d])==null?void 0:u.settings)!=null&&f.localUri){let h=(0,Es.join)(t,r[d].settings.localUri);n.push({dataSourceUri:h,fileContent:await $d(h)})}}if(n.length===0)for(let d in r){let h=r[d];if((h==null?void 0:h.type)==="ODataAnnotation"&&((p=h==null?void 0:h.settings)!=null&&p.localUri)){let m=(0,Es.join)(t,h.settings.localUri);n.push({dataSourceUri:m,fileContent:await $d(m)})}}return n},"getAnnotations"),PQe=s(async e=>{let t=(0,Es.basename)(e),n=(0,Es.join)(e,"webapp"),r=await TQe(n),i=await EQe(r,n),o=await Wfe(n),a=await SQe(n);return{root:e,name:t,manifest:r,annotations:i,changes:o,fragments:a}},"getProject");ul(Bo,me(Pe()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,readApp,readDirectory});
|
|
319
|
-
/*! Bundled license information:
|
|
320
|
-
|
|
321
|
-
sax/lib/sax.js:
|
|
322
|
-
(*! http://mths.be/fromcodepoint v0.1.0 by @mathias *)
|
|
323
|
-
|
|
324
|
-
reflect-metadata/Reflect.js:
|
|
325
|
-
(*! *****************************************************************************
|
|
326
|
-
Copyright (C) Microsoft. All rights reserved.
|
|
327
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
328
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
329
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
330
|
-
|
|
331
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
332
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
333
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
334
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
335
|
-
|
|
336
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
337
|
-
and limitations under the License.
|
|
338
|
-
***************************************************************************** *)
|
|
339
|
-
|
|
340
|
-
ejs/lib/ejs.js:
|
|
341
|
-
(**
|
|
342
|
-
* @file Embedded JavaScript templating engine. {@link http://ejs.co}
|
|
343
|
-
* @author Matthew Eernisse <mde@fleegix.org>
|
|
344
|
-
* @author Tiancheng "Timothy" Gu <timothygu99@gmail.com>
|
|
345
|
-
* @project EJS
|
|
346
|
-
* @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
|
|
347
|
-
*)
|
|
348
|
-
|
|
349
|
-
deep-extend/lib/deep-extend.js:
|
|
350
|
-
(*!
|
|
351
|
-
* @description Recursive object extending
|
|
352
|
-
* @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
|
|
353
|
-
* @license MIT
|
|
354
|
-
*
|
|
355
|
-
* The MIT License (MIT)
|
|
356
|
-
*
|
|
357
|
-
* Copyright (c) 2013-2018 Viacheslav Lotsmanov
|
|
358
|
-
*
|
|
359
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
360
|
-
* this software and associated documentation files (the "Software"), to deal in
|
|
361
|
-
* the Software without restriction, including without limitation the rights to
|
|
362
|
-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
363
|
-
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
364
|
-
* subject to the following conditions:
|
|
365
|
-
*
|
|
366
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
367
|
-
* copies or substantial portions of the Software.
|
|
368
|
-
*
|
|
369
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
370
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
371
|
-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
372
|
-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
373
|
-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
374
|
-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
375
|
-
*)
|
|
376
|
-
|
|
377
|
-
is-extglob/index.js:
|
|
378
|
-
(*!
|
|
379
|
-
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
380
|
-
*
|
|
381
|
-
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
382
|
-
* Licensed under the MIT License.
|
|
383
|
-
*)
|
|
384
|
-
|
|
385
|
-
is-glob/index.js:
|
|
386
|
-
(*!
|
|
387
|
-
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
388
|
-
*
|
|
389
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
390
|
-
* Released under the MIT License.
|
|
391
|
-
*)
|
|
392
|
-
|
|
393
|
-
is-number/index.js:
|
|
394
|
-
(*!
|
|
395
|
-
* is-number <https://github.com/jonschlinkert/is-number>
|
|
396
|
-
*
|
|
397
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
398
|
-
* Released under the MIT License.
|
|
399
|
-
*)
|
|
400
|
-
|
|
401
|
-
to-regex-range/index.js:
|
|
402
|
-
(*!
|
|
403
|
-
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
404
|
-
*
|
|
405
|
-
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
406
|
-
* Released under the MIT License.
|
|
407
|
-
*)
|
|
408
|
-
|
|
409
|
-
fill-range/index.js:
|
|
410
|
-
(*!
|
|
411
|
-
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
412
|
-
*
|
|
413
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
414
|
-
* Licensed under the MIT License.
|
|
415
|
-
*)
|
|
416
|
-
|
|
417
|
-
queue-microtask/index.js:
|
|
418
|
-
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
419
|
-
|
|
420
|
-
run-parallel/index.js:
|
|
421
|
-
(*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
422
|
-
|
|
423
|
-
normalize-path/index.js:
|
|
424
|
-
(*!
|
|
425
|
-
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
426
|
-
*
|
|
427
|
-
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
428
|
-
* Released under the MIT License.
|
|
429
|
-
*)
|
|
430
|
-
*/
|
|
431
|
-
//# sourceMappingURL=index-min.js.map
|