@sap/ux-specification 1.108.65 → 1.108.66

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/dist/index-min.js CHANGED
@@ -16,7 +16,7 @@ Hint: If possible, try to maintain the Type property for each Record.
16
16
  <Annotation Term="${t}">
17
17
  <Record>...</Record>
18
18
  </Annotation>
19
- </Annotations>`),r}o(RD,"inferTypeFromTerm");function L8(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(L8,"isDataFieldWithForAction");function N8(e,t,n,i,r){let a;return!r.type&&t?a=RD(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(N8,"parseRecordType");function kb(e,t,n,i,r,a,s){let l={$Type:N8(e,t,n,i,a),fullyQualifiedName:s,[po]:n,__source:r};for(let f of a.propertyValues)(0,Se.lazy)(l,f.name,()=>OD(e,n,t,f.name,r,f.value,`${s}/${f.name}`));return(0,Se.lazy)(l,"annotations",FD(e,a,l)),L8(l)&&(0,Se.lazy)(l,"ActionTarget",()=>{var f,p;let d=e.unalias((f=l.Action)===null||f===void 0?void 0:f.toString()),m=n.actions[d];return m||(m=(p=e.getConvertedActionImport(d))===null||p===void 0?void 0:p.action),m||(m=e.getConvertedAction(d),m!=null&&m.isBound||(m=void 0)),m||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${d}')`),m}),l}o(kb,"parseRecord");function F8(e){let t=e.type;if(t===void 0&&e.length>0){let n=e[0];n.hasOwnProperty("PropertyPath")?t="PropertyPath":n.hasOwnProperty("Path")?t="Path":n.hasOwnProperty("AnnotationPath")?t="AnnotationPath":n.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":typeof n=="object"&&(n.hasOwnProperty("type")||n.hasOwnProperty("propertyValues"))?t="Record":typeof n=="string"&&(t="String")}else t===void 0&&(t="EmptyCollection");return t}o(F8,"getOrInferCollectionType");function LD(e,t,n,i,r,a,s){switch(F8(a)){case"PropertyPath":return a.map((f,p)=>xD(e,f,`${s}/${p}`,t,n));case"Path":return a.map(f=>yr(e,t,f.Path,n).target);case"AnnotationPath":return a.map((f,p)=>CD(e,f,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((f,p)=>ID(e,f,`${s}/${p}`,t,n));case"Record":return a.map((f,p)=>kb(e,n,t,i,r,f,`${s}/${p}`));case"Apply":case"Null":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return a.map(f=>f);case"String":return a.map(f=>typeof f=="string"||f===void 0?f:f.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}o(LD,"parseCollection");function D8(e){return!!e.targetTypeName}o(D8,"isV4NavigationProperty");function _8(e,t,n){var i;let r;if(n.record)r=kb(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=OD(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)r=LD(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof r){case"string":r=new String(r);break;case"boolean":r=new Boolean(r);break;case"number":r=new Number(r);break;default:break}r.fullyQualifiedName=n.fullyQualifiedName,r[po]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,em.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Se.lazy)(r,"annotations",FD(e,n,r))}catch{}return r}o(_8,"convertAnnotation");var jb=class jb{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(r=>({name:r,annotationList:this.rawSchema.annotations[r]}));this.annotationsByTarget=(0,Se.mergeAnnotations)(this.rawMetadata.references,...i)}return(n=this.annotationsByTarget[t])!==null&&n!==void 0?n:[]}getConvertedEntityContainer(){return this.getConvertedElement(this.rawMetadata.schema.entityContainer.fullyQualifiedName,this.rawMetadata.schema.entityContainer,DD)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&r.push(s),r},[]);return(0,Se.addGetByValue)(i,"name"),(0,Se.addGetByValue)(i,"fullyQualifiedName"),i}:()=>this.getConvertedElement(t.fullyQualifiedName,t,n)}constructor(t,n){this.convertedElements=new Map,this.rawMetadata=t,this.rawSchema=t.schema,this.convertedOutput=n}getConvertedElement(t,n,i){let r=this.convertedElements.get(t);if(r===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(r=i.apply(void 0,[this,a]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,Se.alias)(em.VocabularyReferences,t);return(0,Se.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Se.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(jb,"Converter");var wb=jb;function Lu(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(Lu,"resolveEntityType");function ND(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Se.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(ND,"resolveNavigationPropertyBindings");function ma(e,t){let n=t.annotations;return()=>tm(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(ma,"resolveAnnotations");function FD(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(a=>{a.target=i,a.__source=n.__source,a[po]=n[po],a.fullyQualifiedName=`${i}@${a.term}`}),tm(e,n,r??[])}}o(FD,"resolveAnnotationsOnAnnotation");function tm(e,t,n){return n.reduce((i,r)=>{let[a,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={_keys:[]}),i[a].hasOwnProperty(l)||(i[a]._keys.push(l),(0,Se.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(f,p)=>_8(f,t,p)))),i},{})}o(tm,"createAnnotationsObject");function DD(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ma(e,t)),(0,Se.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,VD)),(0,Se.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,_D)),(0,Se.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,MD)),n}o(DD,"convertEntityContainer");function _D(e,t){let n=t;(0,Se.lazy)(n,"entityType",Lu(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",ma(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",ND(e,i)),n}o(_D,"convertSingleton");function VD(e,t){let n=t;(0,Se.lazy)(n,"entityType",Lu(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",ma(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",ND(e,i)),n}o(VD,"convertEntitySet");function V8(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Se.lazy)(n,"annotations",ma(e,t)),(0,Se.lazy)(n,"keys",e.convert(t.keys,Mb)),(0,Se.lazy)(n,"entityProperties",e.convert(t.entityProperties,Mb)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,wD)),(0,Se.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,r)=>{let a=`${e.rawSchema.namespace}.${r.name}`;return i[a]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let a=yr(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(V8,"convertEntityType");function Mb(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ma(e,t)),(0,Se.lazy)(n,"targetType",()=>{var i;let r=t.type,a=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}o(Mb,"convertProperty");function wD(e,t){var n,i,r,a,s;let l=t;if(l.referentialConstraint=(n=l.referentialConstraint)!==null&&n!==void 0?n:[],l.referentialConstraint.length===0){let p=e.getAnnotations(t.fullyQualifiedName).find(d=>d.term==="com.sap.vocabularies.Common.v1.ReferentialConstraint");p&&(l.referentialConstraint=(r=(i=p.collection)===null||i===void 0?void 0:i.map(d=>{var m,v;return{sourceProperty:((m=d.propertyValues.find(E=>E.name==="Property"))===null||m===void 0?void 0:m.value).PropertyPath,targetTypeName:l.targetTypeName,targetProperty:((v=d.propertyValues.find(E=>E.name==="ReferencedProperty"))===null||v===void 0?void 0:v.value).PropertyPath}}))!==null&&r!==void 0?r:[])}if(!D8(t)){let f=(a=e.rawSchema.associations.find(p=>p.fullyQualifiedName===t.relationship))===null||a===void 0?void 0:a.associationEnd.find(p=>p.role===t.toRole);l.isCollection=(f==null?void 0:f.multiplicity)==="*",l.targetTypeName=(s=f==null?void 0:f.type)!==null&&s!==void 0?s:""}return(0,Se.lazy)(l,"targetType",Lu(e,t.targetTypeName)),(0,Se.lazy)(l,"annotations",ma(e,t)),l}o(wD,"convertNavigationProperty");function MD(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ma(e,t)),(0,Se.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName+"("));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}o(MD,"convertActionImport");function w8(e,t){let n=t;return n.sourceType&&(0,Se.lazy)(n,"sourceEntityType",Lu(e,t.sourceType)),n.returnType&&(0,Se.lazy)(n,"returnEntityType",Lu(e,t.returnType)),(0,Se.lazy)(n,"parameters",e.convert(t.parameters,M8)),(0,Se.lazy)(n,"annotations",()=>{let i=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(f=>f.term===l.term&&f.qualifier===l.qualifier)||a.push(l);return tm(e,t,a)}),n}o(w8,"convertAction");function M8(e,t){let n=t;return(0,Se.lazy)(n,"typeReference",()=>{var i,r;return(r=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&r!==void 0?r:e.getConvertedTypeDefinition(t.type)}),(0,Se.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(f=>f.term===l.term&&f.qualifier===l.qualifier)||a.push(l);return tm(e,t,a)}),n}o(M8,"convertActionParameter");function k8(e,t){let n=t;return(0,Se.lazy)(n,"properties",e.convert(t.properties,Mb)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,wD)),(0,Se.lazy)(n,"annotations",ma(e,t)),n}o(k8,"convertComplexType");function j8(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ma(e,t)),n}o(j8,"convertTypeDefinition");function U8(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:em.VocabularyReferences,diagnostics:[]},n=new wb(e,t);return(0,Se.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,DD)),(0,Se.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,VD)),(0,Se.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,_D)),(0,Se.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,V8)),(0,Se.lazy)(t,"actions",n.convert(n.rawSchema.actions,w8)),(0,Se.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,k8)),(0,Se.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,MD)),(0,Se.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,j8)),t.resolvePath=o(function(r){let a=yr(n,void 0,r);return a.target&&ga(a.objectPath,a.target),a},"resolvePath"),t}o(U8,"convert");nm.convert=U8});var BD=Ze(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.revertTermToGenericType=void 0;var Ub=Zg();function $8(e,t){var n,i,r,a,s,l,f;let p;if(Array.isArray(t)){let d=t[0],m=!1;if(d&&typeof d=="string"){let v=d.valueOf().split(".");v.length>1&&e.find(E=>E.alias===v[0])&&(m=Ub.EnumIsFlag[(0,Ub.substringBeforeFirst)(d,"/")])}m?p={type:"EnumMember",EnumMember:t.map(v=>v.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(v=>im(e,v))}}else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))p={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))p={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let d=t.valueOf().split(".");d.length>1&&e.find(m=>m.alias===d[0])?p={type:"EnumMember",EnumMember:t.valueOf()}:p={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?p={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?p={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?p={type:"Date",Date:t.valueOf()}:!((f=t.isBoolean)===null||f===void 0)&&f.call(t)?p={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?p={type:"Path",Path:t.path}:t.type==="AnnotationPath"?p={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?p={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?p={type:"Null"}:t.type==="PropertyPath"?p={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?p={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(p={type:"Record",Record:im(e,t)});return p}o($8,"revertObjectToRawType");function jD(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=$8(e,t);break}return n}o(jD,"revertValueToRawType");var B8=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function UD(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).filter(r=>r!=="_keys").forEach(r=>{let a=$D(e,t[i][r]);if(!a.term){let s=(0,Ub.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}o(UD,"revertAnnotationsToRawType");function im(e,t){if(typeof t=="string")return{type:"String",String:t};if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(B8.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:jD(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],UD(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value};if(t.type==="Constant")return t.value}}o(im,"revertCollectionItemToRawType");function $D(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=[],UD(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>im(e,i))}):t.hasOwnProperty("$Type")?{...n,record:im(e,t)}:{...n,value:jD(e,t)}}o($D,"revertTermToGenericType");rm.revertTermToGenericType=$D});var HD=Ze(ha=>{"use strict";var H8=ha&&ha.__createBinding||(Object.create?(function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}):(function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]})),$b=ha&&ha.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&H8(t,e,n)};Object.defineProperty(ha,"__esModule",{value:!0});$b(kD(),ha);$b(Zg(),ha);$b(BD(),ha)});var Kb=Ze(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.MergedRawMetadata=as.RawMetadataInstance=as.ensureArray=void 0;function G8(e){return e==null?[]:Array.isArray(e)?e:[e]}o(G8,"ensureArray");as.ensureArray=G8;var Gb=class Gb{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(Gb,"RawMetadataInstance");var Bb=Gb;as.RawMetadataInstance=Bb;var Wb=class Wb{get references(){return this._references}get schema(){return{associations:this._associations,associationSets:this._associationSets,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,singletons:this._singletons,complexTypes:this._complexTypes,typeDefinitions:this._typeDefinitions,actions:this._actions,actionImports:this._actionImports,entityTypes:this._entityTypes}}constructor(t){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._associationSets=[],this._entitySets=[],this._singletons=[],this._actions=[],this._actionImports=[],this._entityContainer={_type:"EntityContainer",fullyQualifiedName:""},this._entityTypes=[],this._complexTypes=[],this._typeDefinitions=[],this.identification="mergedParserInstance",this.version=t.version,this._namespace=t.schema.namespace}addParserOutput(t){this._parserOutput.push(t),this._references=this._references.concat(t.references),this._associations=this._associations.concat(t.schema.associations),this._associationSets=this._associationSets.concat(t.schema.associationSets),this._annotations=Object.assign(this._annotations,t.schema.annotations),this._entitySets=this._entitySets.concat(t.schema.entitySets),this._singletons=this._singletons.concat(t.schema.singletons),this._actions=this._actions.concat(t.schema.actions),this._actionImports=this._actionImports.concat(t.schema.actionImports),this._entityTypes=this._entityTypes.concat(t.schema.entityTypes),this._complexTypes=this._complexTypes.concat(t.schema.complexTypes),this._typeDefinitions=this._typeDefinitions.concat(t.schema.typeDefinitions),t.schema.entityContainer.fullyQualifiedName.length>0&&(this._entityContainer=Object.assign(this._entityContainer,t.schema.entityContainer))}};o(Wb,"MergedRawMetadata");var Hb=Wb;as.MergedRawMetadata=Hb});var GD=Ze(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.merge=void 0;var W8=Kb();function K8(...e){let t=new W8.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(K8,"merge");om.merge=K8});var WD=Ze(am=>{(function(e){e.parser=function(O,A){return new n(O,A)},e.SAXParser=n,e.SAXStream=p,e.createStream=f,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(O,A){if(!(this instanceof n))return new n(O,A);var Y=this;r(Y),Y.q=Y.c="",Y.bufferCheckPosition=e.MAX_BUFFER_LENGTH,Y.opt=A||{},Y.opt.lowercase=Y.opt.lowercase||Y.opt.lowercasetags,Y.looseCase=Y.opt.lowercase?"toLowerCase":"toUpperCase",Y.tags=[],Y.closed=Y.closedRoot=Y.sawRoot=!1,Y.tag=Y.error=null,Y.strict=!!O,Y.noscript=!!(O||Y.opt.noscript),Y.state=D.BEGIN,Y.strictEntities=Y.opt.strictEntities,Y.ENTITIES=Y.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),Y.attribList=[],Y.opt.xmlns&&(Y.ns=Object.create(b)),Y.opt.unquotedAttributeValues===void 0&&(Y.opt.unquotedAttributeValues=!O),Y.trackPosition=Y.opt.position!==!1,Y.trackPosition&&(Y.position=Y.line=Y.column=0),$e(Y,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(O){function A(){}o(A,"F"),A.prototype=O;var Y=new A;return Y}),Object.keys||(Object.keys=function(O){var A=[];for(var Y in O)O.hasOwnProperty(Y)&&A.push(Y);return A});function i(O){for(var A=Math.max(e.MAX_BUFFER_LENGTH,10),Y=0,V=0,_e=t.length;V<_e;V++){var Nt=O[t[V]].length;if(Nt>A)switch(t[V]){case"textNode":nn(O);break;case"cdata":qe(O,"oncdata",O.cdata),O.cdata="";break;case"script":qe(O,"onscript",O.script),O.script="";break;default:St(O,"Max buffer length exceeded: "+t[V])}Y=Math.max(Y,Nt)}var ze=e.MAX_BUFFER_LENGTH-Y;O.bufferCheckPosition=ze+O.position}o(i,"checkBufferLength");function r(O){for(var A=0,Y=t.length;A<Y;A++)O[t[A]]=""}o(r,"clearBuffers");function a(O){nn(O),O.cdata!==""&&(qe(O,"oncdata",O.cdata),O.cdata=""),O.script!==""&&(qe(O,"onscript",O.script),O.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){qt(this)},"end"),write:tt,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(O){return O!=="error"&&O!=="end"});function f(O,A){return new p(O,A)}o(f,"createStream");function p(O,A){if(!(this instanceof p))return new p(O,A);s.apply(this),this._parser=new n(O,A),this.writable=!0,this.readable=!0;var Y=this;this._parser.onend=function(){Y.emit("end")},this._parser.onerror=function(V){Y.emit("error",V),Y._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(Y,"on"+V,{get:o(function(){return Y._parser["on"+V]},"get"),set:o(function(_e){if(!_e)return Y.removeAllListeners(V),Y._parser["on"+V]=_e,_e;Y.on(V,_e)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(O){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(O)){if(!this._decoder){var A=require("string_decoder").StringDecoder;this._decoder=new A("utf8")}O=this._decoder.write(O)}return this._parser.write(O.toString()),this.emit("data",O),!0},p.prototype.end=function(O){return O&&O.length&&this.write(O),this._parser.end(),!0},p.prototype.on=function(O,A){var Y=this;return!Y._parser["on"+O]&&l.indexOf(O)!==-1&&(Y._parser["on"+O]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,O),Y.emit.apply(Y,V)}),s.prototype.on.call(Y,O,A)};var d="[CDATA[",m="DOCTYPE",v="http://www.w3.org/XML/1998/namespace",E="http://www.w3.org/2000/xmlns/",b={xml:v,xmlns:E},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]/,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-]/,j=/[#:_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]/,G=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function $(O){return O===" "||O===`
19
+ </Annotations>`),r}o(RD,"inferTypeFromTerm");function L8(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(L8,"isDataFieldWithForAction");function N8(e,t,n,i,r){let a;return!r.type&&t?a=RD(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(N8,"parseRecordType");function kb(e,t,n,i,r,a,s){let l={$Type:N8(e,t,n,i,a),fullyQualifiedName:s,[po]:n,__source:r};for(let f of a.propertyValues)(0,Se.lazy)(l,f.name,()=>OD(e,n,t,f.name,r,f.value,`${s}/${f.name}`));return(0,Se.lazy)(l,"annotations",FD(e,a,l)),L8(l)&&(0,Se.lazy)(l,"ActionTarget",()=>{var f,p;let d=e.unalias((f=l.Action)===null||f===void 0?void 0:f.toString()),m=n.actions[d];return m||(m=(p=e.getConvertedActionImport(d))===null||p===void 0?void 0:p.action),m||(m=e.getConvertedAction(d),m!=null&&m.isBound||(m=void 0)),m||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${d}')`),m}),l}o(kb,"parseRecord");function F8(e){let t=e.type;if(t===void 0&&e.length>0){let n=e[0];n.hasOwnProperty("PropertyPath")?t="PropertyPath":n.hasOwnProperty("Path")?t="Path":n.hasOwnProperty("AnnotationPath")?t="AnnotationPath":n.hasOwnProperty("NavigationPropertyPath")?t="NavigationPropertyPath":typeof n=="object"&&(n.hasOwnProperty("type")||n.hasOwnProperty("propertyValues"))?t="Record":typeof n=="string"&&(t="String")}else t===void 0&&(t="EmptyCollection");return t}o(F8,"getOrInferCollectionType");function LD(e,t,n,i,r,a,s){switch(F8(a)){case"PropertyPath":return a.map((f,p)=>xD(e,f,`${s}/${p}`,t,n));case"Path":return a.map(f=>yr(e,t,f.Path,n).target);case"AnnotationPath":return a.map((f,p)=>CD(e,f,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((f,p)=>ID(e,f,`${s}/${p}`,t,n));case"Record":return a.map((f,p)=>kb(e,n,t,i,r,f,`${s}/${p}`));case"Apply":case"Null":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return a.map(f=>f);case"String":return a.map(f=>typeof f=="string"||f===void 0?f:f.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}o(LD,"parseCollection");function D8(e){return!!e.targetTypeName}o(D8,"isV4NavigationProperty");function _8(e,t,n){var i;let r;if(n.record)r=kb(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=OD(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)r=LD(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof r){case"string":r=new String(r);break;case"boolean":r=new Boolean(r);break;case"number":r=new Number(r);break;default:break}r.fullyQualifiedName=n.fullyQualifiedName,r[po]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,em.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Se.lazy)(r,"annotations",FD(e,n,r))}catch{}return r}o(_8,"convertAnnotation");var jb=class jb{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(r=>({name:r,annotationList:this.rawSchema.annotations[r]}));this.annotationsByTarget=(0,Se.mergeAnnotations)(this.rawMetadata.references,...i)}return(n=this.annotationsByTarget[t])!==null&&n!==void 0?n:[]}getConvertedEntityContainer(){return this.getConvertedElement(this.rawMetadata.schema.entityContainer.fullyQualifiedName,this.rawMetadata.schema.entityContainer,DD)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&r.push(s),r},[]);return(0,Se.addGetByValue)(i,"name"),(0,Se.addGetByValue)(i,"fullyQualifiedName"),i}:()=>this.getConvertedElement(t.fullyQualifiedName,t,n)}constructor(t,n){this.convertedElements=new Map,this.rawMetadata=t,this.rawSchema=t.schema,this.convertedOutput=n}getConvertedElement(t,n,i){let r=this.convertedElements.get(t);if(r===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(r=i.apply(void 0,[this,a]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,Se.alias)(em.VocabularyReferences,t);return(0,Se.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Se.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(jb,"Converter");var wb=jb;function Lu(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(Lu,"resolveEntityType");function ND(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Se.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(ND,"resolveNavigationPropertyBindings");function ma(e,t){let n=t.annotations;return()=>tm(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(ma,"resolveAnnotations");function FD(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(a=>{a.target=i,a.__source=n.__source,a[po]=n[po],a.fullyQualifiedName=`${i}@${a.term}`}),tm(e,n,r??[])}}o(FD,"resolveAnnotationsOnAnnotation");function tm(e,t,n){return n.reduce((i,r)=>{let[a,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={_keys:[]}),i[a].hasOwnProperty(l)||(i[a]._keys.push(l),(0,Se.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(f,p)=>_8(f,t,p)))),i},{})}o(tm,"createAnnotationsObject");function DD(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ma(e,t)),(0,Se.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,VD)),(0,Se.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,_D)),(0,Se.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,MD)),n}o(DD,"convertEntityContainer");function _D(e,t){let n=t;(0,Se.lazy)(n,"entityType",Lu(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",ma(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",ND(e,i)),n}o(_D,"convertSingleton");function VD(e,t){let n=t;(0,Se.lazy)(n,"entityType",Lu(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",ma(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",ND(e,i)),n}o(VD,"convertEntitySet");function V8(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Se.lazy)(n,"annotations",ma(e,t)),(0,Se.lazy)(n,"keys",e.convert(t.keys,Mb)),(0,Se.lazy)(n,"entityProperties",e.convert(t.entityProperties,Mb)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,wD)),(0,Se.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,r)=>{let a=`${e.rawSchema.namespace}.${r.name}`;return i[a]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let a=yr(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(V8,"convertEntityType");function Mb(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ma(e,t)),(0,Se.lazy)(n,"targetType",()=>{var i;let r=t.type,a=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}o(Mb,"convertProperty");function wD(e,t){var n,i,r,a,s;let l=t;if(l.referentialConstraint=(n=l.referentialConstraint)!==null&&n!==void 0?n:[],l.referentialConstraint.length===0){let p=e.getAnnotations(t.fullyQualifiedName).find(d=>d.term==="com.sap.vocabularies.Common.v1.ReferentialConstraint");p&&(l.referentialConstraint=(r=(i=p.collection)===null||i===void 0?void 0:i.map(d=>{var m,v;let E=(m=d.propertyValues.find(I=>I.name==="ReferencedProperty"))===null||m===void 0?void 0:m.value,b="";if(E.PropertyPath){let I=E.PropertyPath.split("/");I.shift(),b=I.join("/")}return{sourceProperty:((v=d.propertyValues.find(I=>I.name==="Property"))===null||v===void 0?void 0:v.value).PropertyPath,targetTypeName:l.targetTypeName,targetProperty:b}}))!==null&&r!==void 0?r:[])}if(!D8(t)){let f=(a=e.rawSchema.associations.find(p=>p.fullyQualifiedName===t.relationship))===null||a===void 0?void 0:a.associationEnd.find(p=>p.role===t.toRole);l.isCollection=(f==null?void 0:f.multiplicity)==="*",l.targetTypeName=(s=f==null?void 0:f.type)!==null&&s!==void 0?s:""}return(0,Se.lazy)(l,"targetType",Lu(e,t.targetTypeName)),(0,Se.lazy)(l,"annotations",ma(e,t)),l}o(wD,"convertNavigationProperty");function MD(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ma(e,t)),(0,Se.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName+"("));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}o(MD,"convertActionImport");function w8(e,t){let n=t;return n.sourceType&&(0,Se.lazy)(n,"sourceEntityType",Lu(e,t.sourceType)),n.returnType&&(0,Se.lazy)(n,"returnEntityType",Lu(e,t.returnType)),(0,Se.lazy)(n,"parameters",e.convert(t.parameters,M8)),(0,Se.lazy)(n,"annotations",()=>{let i=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(f=>f.term===l.term&&f.qualifier===l.qualifier)||a.push(l);return tm(e,t,a)}),n}o(w8,"convertAction");function M8(e,t){let n=t;return(0,Se.lazy)(n,"typeReference",()=>{var i,r;return(r=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&r!==void 0?r:e.getConvertedTypeDefinition(t.type)}),(0,Se.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(f=>f.term===l.term&&f.qualifier===l.qualifier)||a.push(l);return tm(e,t,a)}),n}o(M8,"convertActionParameter");function k8(e,t){let n=t;return(0,Se.lazy)(n,"properties",e.convert(t.properties,Mb)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,wD)),(0,Se.lazy)(n,"annotations",ma(e,t)),n}o(k8,"convertComplexType");function j8(e,t){let n=t;return(0,Se.lazy)(n,"annotations",ma(e,t)),n}o(j8,"convertTypeDefinition");function U8(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:em.VocabularyReferences,diagnostics:[]},n=new wb(e,t);return(0,Se.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,DD)),(0,Se.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,VD)),(0,Se.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,_D)),(0,Se.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,V8)),(0,Se.lazy)(t,"actions",n.convert(n.rawSchema.actions,w8)),(0,Se.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,k8)),(0,Se.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,MD)),(0,Se.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,j8)),t.resolvePath=o(function(r){let a=yr(n,void 0,r);return a.target&&ga(a.objectPath,a.target),a},"resolvePath"),t}o(U8,"convert");nm.convert=U8});var BD=Ze(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.revertTermToGenericType=void 0;var Ub=Zg();function $8(e,t){var n,i,r,a,s,l,f;let p;if(Array.isArray(t)){let d=t[0],m=!1;if(d&&typeof d=="string"){let v=d.valueOf().split(".");v.length>1&&e.find(E=>E.alias===v[0])&&(m=Ub.EnumIsFlag[(0,Ub.substringBeforeFirst)(d,"/")])}m?p={type:"EnumMember",EnumMember:t.map(v=>v.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(v=>im(e,v))}}else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))p={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))p={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let d=t.valueOf().split(".");d.length>1&&e.find(m=>m.alias===d[0])?p={type:"EnumMember",EnumMember:t.valueOf()}:p={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?p={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?p={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?p={type:"Date",Date:t.valueOf()}:!((f=t.isBoolean)===null||f===void 0)&&f.call(t)?p={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?p={type:"Path",Path:t.path}:t.type==="AnnotationPath"?p={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?p={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?p={type:"Null"}:t.type==="PropertyPath"?p={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?p={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(p={type:"Record",Record:im(e,t)});return p}o($8,"revertObjectToRawType");function jD(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=$8(e,t);break}return n}o(jD,"revertValueToRawType");var B8=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function UD(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).filter(r=>r!=="_keys").forEach(r=>{let a=$D(e,t[i][r]);if(!a.term){let s=(0,Ub.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}o(UD,"revertAnnotationsToRawType");function im(e,t){if(typeof t=="string")return{type:"String",String:t};if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(B8.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:jD(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],UD(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value};if(t.type==="Constant")return t.value}}o(im,"revertCollectionItemToRawType");function $D(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=[],UD(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>im(e,i))}):t.hasOwnProperty("$Type")?{...n,record:im(e,t)}:{...n,value:jD(e,t)}}o($D,"revertTermToGenericType");rm.revertTermToGenericType=$D});var HD=Ze(ha=>{"use strict";var H8=ha&&ha.__createBinding||(Object.create?(function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}):(function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]})),$b=ha&&ha.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&H8(t,e,n)};Object.defineProperty(ha,"__esModule",{value:!0});$b(kD(),ha);$b(Zg(),ha);$b(BD(),ha)});var Kb=Ze(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.MergedRawMetadata=as.RawMetadataInstance=as.ensureArray=void 0;function G8(e){return e==null?[]:Array.isArray(e)?e:[e]}o(G8,"ensureArray");as.ensureArray=G8;var Gb=class Gb{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(Gb,"RawMetadataInstance");var Bb=Gb;as.RawMetadataInstance=Bb;var Wb=class Wb{get references(){return this._references}get schema(){return{associations:this._associations,associationSets:this._associationSets,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,singletons:this._singletons,complexTypes:this._complexTypes,typeDefinitions:this._typeDefinitions,actions:this._actions,actionImports:this._actionImports,entityTypes:this._entityTypes}}constructor(t){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._associationSets=[],this._entitySets=[],this._singletons=[],this._actions=[],this._actionImports=[],this._entityContainer={_type:"EntityContainer",fullyQualifiedName:""},this._entityTypes=[],this._complexTypes=[],this._typeDefinitions=[],this.identification="mergedParserInstance",this.version=t.version,this._namespace=t.schema.namespace}addParserOutput(t){this._parserOutput.push(t),this._references=this._references.concat(t.references),this._associations=this._associations.concat(t.schema.associations),this._associationSets=this._associationSets.concat(t.schema.associationSets),this._annotations=Object.assign(this._annotations,t.schema.annotations),this._entitySets=this._entitySets.concat(t.schema.entitySets),this._singletons=this._singletons.concat(t.schema.singletons),this._actions=this._actions.concat(t.schema.actions),this._actionImports=this._actionImports.concat(t.schema.actionImports),this._entityTypes=this._entityTypes.concat(t.schema.entityTypes),this._complexTypes=this._complexTypes.concat(t.schema.complexTypes),this._typeDefinitions=this._typeDefinitions.concat(t.schema.typeDefinitions),t.schema.entityContainer.fullyQualifiedName.length>0&&(this._entityContainer=Object.assign(this._entityContainer,t.schema.entityContainer))}};o(Wb,"MergedRawMetadata");var Hb=Wb;as.MergedRawMetadata=Hb});var GD=Ze(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.merge=void 0;var W8=Kb();function K8(...e){let t=new W8.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(K8,"merge");om.merge=K8});var WD=Ze(am=>{(function(e){e.parser=function(O,A){return new n(O,A)},e.SAXParser=n,e.SAXStream=p,e.createStream=f,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(O,A){if(!(this instanceof n))return new n(O,A);var Y=this;r(Y),Y.q=Y.c="",Y.bufferCheckPosition=e.MAX_BUFFER_LENGTH,Y.opt=A||{},Y.opt.lowercase=Y.opt.lowercase||Y.opt.lowercasetags,Y.looseCase=Y.opt.lowercase?"toLowerCase":"toUpperCase",Y.tags=[],Y.closed=Y.closedRoot=Y.sawRoot=!1,Y.tag=Y.error=null,Y.strict=!!O,Y.noscript=!!(O||Y.opt.noscript),Y.state=D.BEGIN,Y.strictEntities=Y.opt.strictEntities,Y.ENTITIES=Y.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),Y.attribList=[],Y.opt.xmlns&&(Y.ns=Object.create(b)),Y.opt.unquotedAttributeValues===void 0&&(Y.opt.unquotedAttributeValues=!O),Y.trackPosition=Y.opt.position!==!1,Y.trackPosition&&(Y.position=Y.line=Y.column=0),$e(Y,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(O){function A(){}o(A,"F"),A.prototype=O;var Y=new A;return Y}),Object.keys||(Object.keys=function(O){var A=[];for(var Y in O)O.hasOwnProperty(Y)&&A.push(Y);return A});function i(O){for(var A=Math.max(e.MAX_BUFFER_LENGTH,10),Y=0,V=0,_e=t.length;V<_e;V++){var Nt=O[t[V]].length;if(Nt>A)switch(t[V]){case"textNode":nn(O);break;case"cdata":qe(O,"oncdata",O.cdata),O.cdata="";break;case"script":qe(O,"onscript",O.script),O.script="";break;default:St(O,"Max buffer length exceeded: "+t[V])}Y=Math.max(Y,Nt)}var ze=e.MAX_BUFFER_LENGTH-Y;O.bufferCheckPosition=ze+O.position}o(i,"checkBufferLength");function r(O){for(var A=0,Y=t.length;A<Y;A++)O[t[A]]=""}o(r,"clearBuffers");function a(O){nn(O),O.cdata!==""&&(qe(O,"oncdata",O.cdata),O.cdata=""),O.script!==""&&(qe(O,"onscript",O.script),O.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){qt(this)},"end"),write:tt,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(O){return O!=="error"&&O!=="end"});function f(O,A){return new p(O,A)}o(f,"createStream");function p(O,A){if(!(this instanceof p))return new p(O,A);s.apply(this),this._parser=new n(O,A),this.writable=!0,this.readable=!0;var Y=this;this._parser.onend=function(){Y.emit("end")},this._parser.onerror=function(V){Y.emit("error",V),Y._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(Y,"on"+V,{get:o(function(){return Y._parser["on"+V]},"get"),set:o(function(_e){if(!_e)return Y.removeAllListeners(V),Y._parser["on"+V]=_e,_e;Y.on(V,_e)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(O){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(O)){if(!this._decoder){var A=require("string_decoder").StringDecoder;this._decoder=new A("utf8")}O=this._decoder.write(O)}return this._parser.write(O.toString()),this.emit("data",O),!0},p.prototype.end=function(O){return O&&O.length&&this.write(O),this._parser.end(),!0},p.prototype.on=function(O,A){var Y=this;return!Y._parser["on"+O]&&l.indexOf(O)!==-1&&(Y._parser["on"+O]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,O),Y.emit.apply(Y,V)}),s.prototype.on.call(Y,O,A)};var d="[CDATA[",m="DOCTYPE",v="http://www.w3.org/XML/1998/namespace",E="http://www.w3.org/2000/xmlns/",b={xml:v,xmlns:E},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]/,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-]/,j=/[#:_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]/,G=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function $(O){return O===" "||O===`
20
20
  `||O==="\r"||O===" "}o($,"isWhitespace");function se(O){return O==='"'||O==="'"}o(se,"isQuote");function ee(O){return O===">"||$(O)}o(ee,"isAttribEnd");function le(O,A){return O.test(A)}o(le,"isMatch");function Le(O,A){return!le(O,A)}o(Le,"notMatch");var D=0;e.STATE={BEGIN:D++,BEGIN_WHITESPACE:D++,TEXT:D++,TEXT_ENTITY:D++,OPEN_WAKA:D++,SGML_DECL:D++,SGML_DECL_QUOTED:D++,DOCTYPE:D++,DOCTYPE_QUOTED:D++,DOCTYPE_DTD:D++,DOCTYPE_DTD_QUOTED:D++,COMMENT_STARTING:D++,COMMENT:D++,COMMENT_ENDING:D++,COMMENT_ENDED:D++,CDATA:D++,CDATA_ENDING:D++,CDATA_ENDING_2:D++,PROC_INST:D++,PROC_INST_BODY:D++,PROC_INST_ENDING:D++,OPEN_TAG:D++,OPEN_TAG_SLASH:D++,ATTRIB:D++,ATTRIB_NAME:D++,ATTRIB_NAME_SAW_WHITE:D++,ATTRIB_VALUE:D++,ATTRIB_VALUE_QUOTED:D++,ATTRIB_VALUE_CLOSED:D++,ATTRIB_VALUE_UNQUOTED:D++,ATTRIB_VALUE_ENTITY_Q:D++,ATTRIB_VALUE_ENTITY_U:D++,CLOSE_TAG:D++,CLOSE_TAG_SAW_WHITE:D++,SCRIPT:D++,SCRIPT_ENDING:D++},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(O){var A=e.ENTITIES[O],Y=typeof A=="number"?String.fromCharCode(A):A;e.ENTITIES[O]=Y});for(var Ue in e.STATE)e.STATE[e.STATE[Ue]]=Ue;D=e.STATE;function $e(O,A,Y){O[A]&&O[A](Y)}o($e,"emit");function qe(O,A,Y){O.textNode&&nn(O),$e(O,A,Y)}o(qe,"emitNode");function nn(O){O.textNode=$t(O.opt,O.textNode),O.textNode&&$e(O,"ontext",O.textNode),O.textNode=""}o(nn,"closeText");function $t(O,A){return O.trim&&(A=A.trim()),O.normalize&&(A=A.replace(/\s+/g," ")),A}o($t,"textopts");function St(O,A){return nn(O),O.trackPosition&&(A+=`
21
21
  Line: `+O.line+`
22
22
  Column: `+O.column+`
@@ -38,12 +38,12 @@ function encode_char(c) {
38
38
  return _ENCODE_HTML_RULES[c] || c;
39
39
  };
40
40
  `;Kr.escapeXML=function(e){return e==null?"":String(e).replace(c3,l3)};function Y_(){return Function.prototype.toString.call(this)+`;
41
- `+f3}o(Y_,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(Kr.escapeXML,"toString",{value:Y_}):Kr.escapeXML.toString=Y_}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}Kr.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)ES(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};Kr.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},e!=null)for(var i=0;i<n.length;i++){var r=n[i];if(typeof t[r]<"u"){if(!ES(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};Kr.cache={_data:{},set:o(function(e,t){this._data[e]=t},"set"),get:o(function(e){return this._data[e]},"get"),remove:o(function(e){delete this._data[e]},"remove"),reset:o(function(){this._data={}},"reset")};Kr.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};Kr.createNullProtoObjWherePossible=(function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}})();Kr.hasOwnOnlyObject=function(e){var t=Kr.createNullProtoObjWherePossible();for(var n in e)ES(e,n)&&(t[n]=e[n]);return t}});var J_=Ze((gie,u3)=>{u3.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 sV=Ze(Pt=>{"use strict";var AS=require("fs"),Zu=require("path"),Fn=z_(),Z_=!1,p3=J_().version,d3="<",g3=">",m3="%",oV="locals",h3="ejs",y3="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",aV=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],T3=aV.concat("cache"),eV=/^\uFEFF/,SS=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Pt.cache=Fn.cache;Pt.fileLoader=AS.readFileSync;Pt.localsName=oV;Pt.promiseImpl=new Function("return this;")().Promise;Pt.resolveInclude=function(e,t,n){var i=Zu.dirname,r=Zu.extname,a=Zu.resolve,s=a(n?t:i(t),e),l=r(e);return l||(s+=".ejs"),s};function tV(e,t){var n;if(t.some(function(i){return n=Pt.resolveInclude(e,i,!0),AS.existsSync(n)}))return n}o(tV,"resolvePaths");function v3(e,t){var n,i,r=t.views,a=/^[A-Za-z]+:\\|^\//.exec(e);if(a&&a.length)e=e.replace(/^\/*/,""),Array.isArray(t.root)?n=tV(e,t.root):n=Pt.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=Pt.resolveInclude(e,t.filename),AS.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=tV(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}o(v3,"getIncludePath");function ep(e,t){var n,i=e.filename,r=arguments.length>1;if(e.cache){if(!i)throw new Error("cache option requires a filename");if(n=Pt.cache.get(i),n)return n;r||(t=nV(i).toString().replace(eV,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=nV(i).toString().replace(eV,"")}return n=Pt.compile(t,e),e.cache&&Pt.cache.set(i,n),n}o(ep,"handleCache");function b3(e,t,n){var i;if(n){try{i=ep(e)(t)}catch(r){return n(r)}n(null,i)}else{if(typeof Pt.promiseImpl=="function")return new Pt.promiseImpl(function(r,a){try{i=ep(e)(t),r(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}o(b3,"tryHandleCache");function nV(e){return Pt.fileLoader(e)}o(nV,"fileLoader");function E3(e,t){var n=Fn.shallowCopy(Fn.createNullProtoObjWherePossible(),t);if(n.filename=v3(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return ep(n,i.template)}return ep(n)}o(E3,"includeFile");function iV(e,t,n,i,r){var a=t.split(`
41
+ `+f3}o(Y_,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(Kr.escapeXML,"toString",{value:Y_}):Kr.escapeXML.toString=Y_}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}Kr.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)ES(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};Kr.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},e!=null)for(var i=0;i<n.length;i++){var r=n[i];if(typeof t[r]<"u"){if(!ES(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};Kr.cache={_data:{},set:o(function(e,t){this._data[e]=t},"set"),get:o(function(e){return this._data[e]},"get"),remove:o(function(e){delete this._data[e]},"remove"),reset:o(function(){this._data={}},"reset")};Kr.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};Kr.createNullProtoObjWherePossible=(function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}})();Kr.hasOwnOnlyObject=function(e){var t=Kr.createNullProtoObjWherePossible();for(var n in e)ES(e,n)&&(t[n]=e[n]);return t}});var J_=Ze((gie,u3)=>{u3.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 s1=Ze(Pt=>{"use strict";var AS=require("fs"),Zu=require("path"),Fn=z_(),Z_=!1,p3=J_().version,d3="<",g3=">",m3="%",o1="locals",h3="ejs",y3="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",a1=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],T3=a1.concat("cache"),e1=/^\uFEFF/,SS=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Pt.cache=Fn.cache;Pt.fileLoader=AS.readFileSync;Pt.localsName=o1;Pt.promiseImpl=new Function("return this;")().Promise;Pt.resolveInclude=function(e,t,n){var i=Zu.dirname,r=Zu.extname,a=Zu.resolve,s=a(n?t:i(t),e),l=r(e);return l||(s+=".ejs"),s};function t1(e,t){var n;if(t.some(function(i){return n=Pt.resolveInclude(e,i,!0),AS.existsSync(n)}))return n}o(t1,"resolvePaths");function v3(e,t){var n,i,r=t.views,a=/^[A-Za-z]+:\\|^\//.exec(e);if(a&&a.length)e=e.replace(/^\/*/,""),Array.isArray(t.root)?n=t1(e,t.root):n=Pt.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=Pt.resolveInclude(e,t.filename),AS.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=t1(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}o(v3,"getIncludePath");function ep(e,t){var n,i=e.filename,r=arguments.length>1;if(e.cache){if(!i)throw new Error("cache option requires a filename");if(n=Pt.cache.get(i),n)return n;r||(t=n1(i).toString().replace(e1,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=n1(i).toString().replace(e1,"")}return n=Pt.compile(t,e),e.cache&&Pt.cache.set(i,n),n}o(ep,"handleCache");function b3(e,t,n){var i;if(n){try{i=ep(e)(t)}catch(r){return n(r)}n(null,i)}else{if(typeof Pt.promiseImpl=="function")return new Pt.promiseImpl(function(r,a){try{i=ep(e)(t),r(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}o(b3,"tryHandleCache");function n1(e){return Pt.fileLoader(e)}o(n1,"fileLoader");function E3(e,t){var n=Fn.shallowCopy(Fn.createNullProtoObjWherePossible(),t);if(n.filename=v3(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return ep(n,i.template)}return ep(n)}o(E3,"includeFile");function i1(e,t,n,i,r){var a=t.split(`
42
42
  `),s=Math.max(i-3,0),l=Math.min(a.length,i+3),f=r(n),p=a.slice(s,l).map(function(d,m){var v=m+s+1;return(v==i?" >> ":" ")+v+"| "+d}).join(`
43
43
  `);throw e.path=f,e.message=(f||"ejs")+":"+i+`
44
44
  `+p+`
45
45
 
46
- `+e.message,e}o(iV,"rethrow");function rV(e){return e.replace(/;(\s*$)/,"$1")}o(rV,"stripSemi");Pt.compile=o(function(t,n){var i;return n&&n.scope&&(Z_||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),Z_=!0),n.context||(n.context=n.scope),delete n.scope),i=new Xn(t,n),i.compile()},"compile");Pt.render=function(e,t,n){var i=t||Fn.createNullProtoObjWherePossible(),r=n||Fn.createNullProtoObjWherePossible();return arguments.length==2&&Fn.shallowCopyFromList(r,i,aV),ep(r,e)(i)};Pt.renderFile=function(){var e=Array.prototype.slice.call(arguments),t=e.shift(),n,i={filename:t},r,a;return typeof arguments[arguments.length-1]=="function"&&(n=e.pop()),e.length?(r=e.shift(),e.length?Fn.shallowCopy(i,e.pop()):(r.settings&&(r.settings.views&&(i.views=r.settings.views),r.settings["view cache"]&&(i.cache=!0),a=r.settings["view options"],a&&Fn.shallowCopy(i,a)),Fn.shallowCopyFromList(i,r,T3)),i.filename=t):r=Fn.createNullProtoObjWherePossible(),b3(i,r,n)};Pt.Template=Xn;Pt.clearCache=function(){Pt.cache.reset()};function Xn(e,t){var n=Fn.hasOwnOnlyObject(t),i=Fn.createNullProtoObjWherePossible();this.templateText=e,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",i.client=n.client||!1,i.escapeFunction=n.escape||n.escapeFunction||Fn.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||Pt.openDelimiter||d3,i.closeDelimiter=n.closeDelimiter||Pt.closeDelimiter||g3,i.delimiter=n.delimiter||Pt.delimiter||m3,i.strict=n.strict||!1,i.context=n.context,i.cache=n.cache||!1,i.rmWhitespace=n.rmWhitespace,i.root=n.root,i.includer=n.includer,i.outputFunctionName=n.outputFunctionName,i.localsName=n.localsName||Pt.localsName||oV,i.views=n.views,i.async=n.async,i.destructuredLocals=n.destructuredLocals,i.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,i.strict?i._with=!1:i._with=typeof n._with<"u"?n._with:!0,this.opts=i,this.regex=this.createRegex()}o(Xn,"Template");Xn.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Xn.prototype={createRegex:o(function(){var e=y3,t=Fn.escapeRegExpChars(this.opts.delimiter),n=Fn.escapeRegExpChars(this.opts.openDelimiter),i=Fn.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,n).replace(/>/g,i),new RegExp(e)},"createRegex"),compile:o(function(){var e,t,n=this.opts,i="",r="",a=n.escapeFunction,s,l=n.filename?JSON.stringify(n.filename):"undefined";if(!this.source){if(this.generateSource(),i+=` var __output = "";
46
+ `+e.message,e}o(i1,"rethrow");function r1(e){return e.replace(/;(\s*$)/,"$1")}o(r1,"stripSemi");Pt.compile=o(function(t,n){var i;return n&&n.scope&&(Z_||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),Z_=!0),n.context||(n.context=n.scope),delete n.scope),i=new Xn(t,n),i.compile()},"compile");Pt.render=function(e,t,n){var i=t||Fn.createNullProtoObjWherePossible(),r=n||Fn.createNullProtoObjWherePossible();return arguments.length==2&&Fn.shallowCopyFromList(r,i,a1),ep(r,e)(i)};Pt.renderFile=function(){var e=Array.prototype.slice.call(arguments),t=e.shift(),n,i={filename:t},r,a;return typeof arguments[arguments.length-1]=="function"&&(n=e.pop()),e.length?(r=e.shift(),e.length?Fn.shallowCopy(i,e.pop()):(r.settings&&(r.settings.views&&(i.views=r.settings.views),r.settings["view cache"]&&(i.cache=!0),a=r.settings["view options"],a&&Fn.shallowCopy(i,a)),Fn.shallowCopyFromList(i,r,T3)),i.filename=t):r=Fn.createNullProtoObjWherePossible(),b3(i,r,n)};Pt.Template=Xn;Pt.clearCache=function(){Pt.cache.reset()};function Xn(e,t){var n=Fn.hasOwnOnlyObject(t),i=Fn.createNullProtoObjWherePossible();this.templateText=e,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",i.client=n.client||!1,i.escapeFunction=n.escape||n.escapeFunction||Fn.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||Pt.openDelimiter||d3,i.closeDelimiter=n.closeDelimiter||Pt.closeDelimiter||g3,i.delimiter=n.delimiter||Pt.delimiter||m3,i.strict=n.strict||!1,i.context=n.context,i.cache=n.cache||!1,i.rmWhitespace=n.rmWhitespace,i.root=n.root,i.includer=n.includer,i.outputFunctionName=n.outputFunctionName,i.localsName=n.localsName||Pt.localsName||o1,i.views=n.views,i.async=n.async,i.destructuredLocals=n.destructuredLocals,i.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,i.strict?i._with=!1:i._with=typeof n._with<"u"?n._with:!0,this.opts=i,this.regex=this.createRegex()}o(Xn,"Template");Xn.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Xn.prototype={createRegex:o(function(){var e=y3,t=Fn.escapeRegExpChars(this.opts.delimiter),n=Fn.escapeRegExpChars(this.opts.openDelimiter),i=Fn.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,n).replace(/>/g,i),new RegExp(e)},"createRegex"),compile:o(function(){var e,t,n=this.opts,i="",r="",a=n.escapeFunction,s,l=n.filename?JSON.stringify(n.filename):"undefined";if(!this.source){if(this.generateSource(),i+=` var __output = "";
47
47
  function __append(s) { if (s !== undefined && s !== null) __output += s }
48
48
  `,n.outputFunctionName){if(!SS.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
49
49
  `}if(n.localsName&&!SS.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){for(var f=" var __locals = ("+n.localsName+` || {}),
@@ -60,7 +60,7 @@ try {
60
60
  rethrow(e, __lines, __filename, __line, escapeFn);
61
61
  }
62
62
  `:e=this.source,n.client&&(e="escapeFn = escapeFn || "+a.toString()+`;
63
- `+e,n.compileDebug&&(e="rethrow = rethrow || "+iV.toString()+`;
63
+ `+e,n.compileDebug&&(e="rethrow = rethrow || "+i1.toString()+`;
64
64
  `+e)),n.strict&&(e=`"use strict";
65
65
  `+e),n.debug&&console.log(e),n.compileDebug&&n.filename&&(e=e+`
66
66
  //# sourceURL=`+l+`
@@ -68,7 +68,7 @@ try {
68
68
 
69
69
  `,b.message+=`If the above error is not helpful, you may want to try EJS-Lint:
70
70
  `,b.message+="https://github.com/RyanZim/EJS-Lint",n.async||(b.message+=`
71
- `,b.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),b}var m=n.client?t:o(function(I){var N=o(function(j,G){var $=Fn.shallowCopy(Fn.createNullProtoObjWherePossible(),I);return G&&($=Fn.shallowCopy($,G)),E3(j,n)($)},"include");return t.apply(n.context,[I||Fn.createNullProtoObjWherePossible(),a,N,iV])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var v=n.filename,E=Zu.basename(v,Zu.extname(v));try{Object.defineProperty(m,"name",{value:E,writable:!1,enumerable:!1,configurable:!0})}catch{}}return m},"compile"),generateSource:o(function(){var e=this.opts;e.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
71
+ `,b.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),b}var m=n.client?t:o(function(I){var N=o(function(j,G){var $=Fn.shallowCopy(Fn.createNullProtoObjWherePossible(),I);return G&&($=Fn.shallowCopy($,G)),E3(j,n)($)},"include");return t.apply(n.context,[I||Fn.createNullProtoObjWherePossible(),a,N,i1])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var v=n.filename,E=Zu.basename(v,Zu.extname(v));try{Object.defineProperty(m,"name",{value:E,writable:!1,enumerable:!1,configurable:!0})}catch{}}return m},"compile"),generateSource:o(function(){var e=this.opts;e.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
72
72
  `).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var t=this,n=this.parseTemplateText(),i=this.opts.delimiter,r=this.opts.openDelimiter,a=this.opts.closeDelimiter;n&&n.length&&n.forEach(function(s,l){var f;if(s.indexOf(r+i)===0&&s.indexOf(r+i+i)!==0&&(f=n[l+2],!(f==i+a||f=="-"+i+a||f=="_"+i+a)))throw new Error('Could not find matching close tag for "'+s+'".');t.scanLine(s)})},"generateSource"),parseTemplateText:o(function(){for(var e=this.templateText,t=this.regex,n=t.exec(e),i=[],r;n;)r=n.index,r!==0&&(i.push(e.substring(0,r)),e=e.slice(r)),i.push(n[0]),e=e.slice(n[0].length),n=t.exec(e);return e&&i.push(e),i},"parseTemplateText"),_addOutput:o(function(e){if(this.truncate&&(e=e.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!e)return e;e=e.replace(/\\/g,"\\\\"),e=e.replace(/\n/g,"\\n"),e=e.replace(/\r/g,"\\r"),e=e.replace(/"/g,'\\"'),this.source+=' ; __append("'+e+`")
73
73
  `},"_addOutput"),scanLine:o(function(e){var t=this,n=this.opts.delimiter,i=this.opts.openDelimiter,r=this.opts.closeDelimiter,a=0;switch(a=e.split(`
74
74
  `).length-1,e){case i+n:case i+n+"_":this.mode=Xn.modes.EVAL;break;case i+n+"=":this.mode=Xn.modes.ESCAPED;break;case i+n+"-":this.mode=Xn.modes.RAW;break;case i+n+"#":this.mode=Xn.modes.COMMENT;break;case i+n+n:this.mode=Xn.modes.LITERAL,this.source+=' ; __append("'+e.replace(i+n+n,i+n)+`")
@@ -76,10 +76,10 @@ try {
76
76
  `;break;case n+r:case"-"+n+r:case"_"+n+r:this.mode==Xn.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 Xn.modes.EVAL:case Xn.modes.ESCAPED:case Xn.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf(`
77
77
  `)&&(e+=`
78
78
  `)}switch(this.mode){case Xn.modes.EVAL:this.source+=" ; "+e+`
79
- `;break;case Xn.modes.ESCAPED:this.source+=" ; __append(escapeFn("+rV(e)+`))
80
- `;break;case Xn.modes.RAW:this.source+=" ; __append("+rV(e)+`)
79
+ `;break;case Xn.modes.ESCAPED:this.source+=" ; __append(escapeFn("+r1(e)+`))
80
+ `;break;case Xn.modes.RAW:this.source+=" ; __append("+r1(e)+`)
81
81
  `;break;case Xn.modes.COMMENT:break;case Xn.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&a&&(this.currentLine+=a,this.source+=" ; __line = "+this.currentLine+`
82
- `)},"scanLine")};Pt.escapeXML=Fn.escapeXML;Pt.__express=Pt.renderFile;Pt.VERSION=p3;Pt.name=h3;typeof window<"u"&&(window.ejs=Pt)});var wp,EP=Je(()=>{wp="7.1.1"});function ct(e){return e&&e.length===0}function Mi(e){return e==null?[]:Object.keys(e)}function Un(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++)t.push(e[n[i]]);return t}function d1(e,t){for(var n=[],i=Mi(e),r=0;r<i.length;r++){var a=i[r];n.push(t.call(null,e[a],a))}return n}function pe(e,t){for(var n=[],i=0;i<e.length;i++)n.push(t.call(null,e[i],i));return n}function Dn(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?t=t.concat(Dn(i)):t.push(i)}return t}function xi(e){return ct(e)?void 0:e[0]}function Sy(e){var t=e&&e.length;return t?e[t-1]:void 0}function ye(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t.call(null,e[n],n);else if(Ay(e))for(var i=Mi(e),n=0;n<i.length;n++){var r=i[n],a=e[r];t.call(null,a,r)}else throw Error("non exhaustive match")}function Jr(e){return typeof e=="string"}function Ci(e){return e===void 0}function Ao(e){return e instanceof Function}function $n(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function ks(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function Zr(e,t){var n=[];if(Array.isArray(e))for(var i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function ka(e,t){return Zr(e,function(n){return!t(n)})}function Ar(e,t){for(var n=Object.keys(e),i={},r=0;r<n.length;r++){var a=n[r],s=e[a];t(s)&&(i[a]=s)}return i}function Pe(e,t){return Ay(e)?e.hasOwnProperty(t):!1}function Vt(e,t){return ja(e,function(n){return n===t})!==void 0}function Pn(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function js(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function ja(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t.call(null,i))return i}}function g1(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function dn(e,t,n){for(var i=Array.isArray(e),r=i?e:Un(e),a=i?[]:Mi(e),s=n,l=0;l<r.length;l++)s=t.call(null,s,r[l],i?l:a[l]);return s}function Ua(e){return ka(e,function(t){return t==null})}function Mp(e,t){t===void 0&&(t=o(function(i){return i},"identity"));var n=[];return dn(e,function(i,r){var a=t(r);return Vt(n,a)?i:(n.push(a),i.concat(r))},[])}function Wle(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=[null],r=i.concat(t);return Function.bind.apply(e,r)}function ui(e){return Array.isArray(e)}function Po(e){return e instanceof RegExp}function Ay(e){return e instanceof Object}function pi(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function nl(e,t){return ka(e,function(n){return Vt(t,n)})}function Py(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function m1(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function Kle(e,t){var n=Pn(e);return n.sort(function(i,r){return t(i)-t(r)}),n}function Xle(e,t){if(e.length!==t.length)throw Error("can't zipObject with different number of keys and values!");for(var n={},i=0;i<e.length;i++)n[e[i]]=t[i];return n}function Pr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++)for(var r=t[i],a=Mi(r),s=0;s<a.length;s++){var l=a[s];e[l]=r[l]}return e}function sq(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++)for(var r=t[i],a=Mi(r),s=0;s<a.length;s++){var l=a[s];Pe(e,l)||(e[l]=r[l])}return e}function kp(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return sq.apply(null,[{}].concat(e))}function h1(e,t){var n={};return ye(e,function(i){var r=t(i),a=n[r];a?a.push(i):n[r]=[i]}),n}function SP(e,t){for(var n=js(e),i=Mi(t),r=0;r<i.length;r++){var a=i[r],s=t[a];n[a]=s}return n}function Bn(){}function AP(e){return e}function y1(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(i!==void 0?i:void 0)}return t}function jp(e){console&&console.error&&console.error("Error: "+e)}function xy(e){console&&console.warn&&console.warn("Warning: "+e)}function PP(){return typeof Map=="function"}function T1(e,t){t.forEach(function(n){var i=n.prototype;Object.getOwnPropertyNames(i).forEach(function(r){if(r!=="constructor"){var a=Object.getOwnPropertyDescriptor(i,r);a&&(a.get||a.set)?Object.defineProperty(e.prototype,r,a):e.prototype[r]=n.prototype[r]}})})}function Cy(toBecomeFast){function FakeConstructor(){}o(FakeConstructor,"FakeConstructor"),FakeConstructor.prototype=toBecomeFast;var fakeInstance=new FakeConstructor;function fakeAccess(){return typeof fakeInstance.bar}return o(fakeAccess,"fakeAccess"),fakeAccess(),fakeAccess(),toBecomeFast;eval(toBecomeFast)}function Up(e){return e[e.length-1]}function Iy(e){var t=new Date().getTime(),n=e(),i=new Date().getTime(),r=i-t;return{time:r,value:n}}var bt=Je(()=>{o(ct,"isEmpty");o(Mi,"keys");o(Un,"values");o(d1,"mapValues");o(pe,"map");o(Dn,"flatten");o(xi,"first");o(Sy,"last");o(ye,"forEach");o(Jr,"isString");o(Ci,"isUndefined");o(Ao,"isFunction");o($n,"drop");o(ks,"dropRight");o(Zr,"filter");o(ka,"reject");o(Ar,"pick");o(Pe,"has");o(Vt,"contains");o(Pn,"cloneArr");o(js,"cloneObj");o(ja,"find");o(g1,"findAll");o(dn,"reduce");o(Ua,"compact");o(Mp,"uniq");o(Wle,"partial");o(ui,"isArray");o(Po,"isRegExp");o(Ay,"isObject");o(pi,"every");o(nl,"difference");o(Py,"some");o(m1,"indexOf");o(Kle,"sortBy");o(Xle,"zipObject");o(Pr,"assign");o(sq,"assignNoOverwrite");o(kp,"defaults");o(h1,"groupBy");o(SP,"merge");o(Bn,"NOOP");o(AP,"IDENTITY");o(y1,"packArray");o(jp,"PRINT_ERROR");o(xy,"PRINT_WARNING");o(PP,"isES2015MapSupported");o(T1,"applyMixins");o(Cy,"toFastProperties");o(Up,"peek");o(Iy,"timer")});var Ry=Ze((b1,Oy)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Oy=="object"&&Oy.exports?Oy.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:b1,function(){function e(){}o(e,"RegExpParser"),e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(b){this.idx=b.idx,this.input=b.input,this.groupIdx=b.groupIdx},e.prototype.pattern=function(b){this.idx=0,this.input=b,this.groupIdx=0,this.consumeChar("/");var I=this.disjunction();this.consumeChar("/");for(var N={type:"Flags",loc:{begin:this.idx,end:b.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(N,"global");break;case"i":s(N,"ignoreCase");break;case"m":s(N,"multiLine");break;case"u":s(N,"unicode");break;case"y":s(N,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:N,value:I,loc:this.loc(0)}},e.prototype.disjunction=function(){var b=[],I=this.idx;for(b.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),b.push(this.alternative());return{type:"Disjunction",value:b,loc:this.loc(I)}},e.prototype.alternative=function(){for(var b=[],I=this.idx;this.isTerm();)b.push(this.term());return{type:"Alternative",value:b,loc:this.loc(I)}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){var b=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(b)};case"$":return{type:"EndAnchor",loc:this.loc(b)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(b)};case"B":return{type:"NonWordBoundary",loc:this.loc(b)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");var I;switch(this.popChar()){case"=":I="Lookahead";break;case"!":I="NegativeLookahead";break}l(I);var N=this.disjunction();return this.consumeChar(")"),{type:I,value:N,loc:this.loc(b)}}f()},e.prototype.quantifier=function(b){var I,N=this.idx;switch(this.popChar()){case"*":I={atLeast:0,atMost:1/0};break;case"+":I={atLeast:1,atMost:1/0};break;case"?":I={atLeast:0,atMost:1};break;case"{":var j=this.integerIncludingZero();switch(this.popChar()){case"}":I={atLeast:j,atMost:j};break;case",":var G;this.isDigit()?(G=this.integerIncludingZero(),I={atLeast:j,atMost:G}):I={atLeast:j,atMost:1/0},this.consumeChar("}");break}if(b===!0&&I===void 0)return;l(I);break}if(!(b===!0&&I===void 0))return l(I),this.peekChar(0)==="?"?(this.consumeChar("?"),I.greedy=!1):I.greedy=!0,I.type="Quantifier",I.loc=this.loc(N),I},e.prototype.atom=function(){var b,I=this.idx;switch(this.peekChar()){case".":b=this.dotAll();break;case"\\":b=this.atomEscape();break;case"[":b=this.characterClass();break;case"(":b=this.group();break}return b===void 0&&this.isPatternCharacter()&&(b=this.patternCharacter()),l(b),b.loc=this.loc(I),this.isQuantifier()&&(b.quantifier=this.quantifier()),b},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[r(`
82
+ `)},"scanLine")};Pt.escapeXML=Fn.escapeXML;Pt.__express=Pt.renderFile;Pt.VERSION=p3;Pt.name=h3;typeof window<"u"&&(window.ejs=Pt)});var wp,EP=Je(()=>{wp="7.1.1"});function ct(e){return e&&e.length===0}function Mi(e){return e==null?[]:Object.keys(e)}function Un(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++)t.push(e[n[i]]);return t}function dV(e,t){for(var n=[],i=Mi(e),r=0;r<i.length;r++){var a=i[r];n.push(t.call(null,e[a],a))}return n}function pe(e,t){for(var n=[],i=0;i<e.length;i++)n.push(t.call(null,e[i],i));return n}function Dn(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?t=t.concat(Dn(i)):t.push(i)}return t}function xi(e){return ct(e)?void 0:e[0]}function Sy(e){var t=e&&e.length;return t?e[t-1]:void 0}function ye(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t.call(null,e[n],n);else if(Ay(e))for(var i=Mi(e),n=0;n<i.length;n++){var r=i[n],a=e[r];t.call(null,a,r)}else throw Error("non exhaustive match")}function Jr(e){return typeof e=="string"}function Ci(e){return e===void 0}function Ao(e){return e instanceof Function}function $n(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function ks(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function Zr(e,t){var n=[];if(Array.isArray(e))for(var i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function ka(e,t){return Zr(e,function(n){return!t(n)})}function Ar(e,t){for(var n=Object.keys(e),i={},r=0;r<n.length;r++){var a=n[r],s=e[a];t(s)&&(i[a]=s)}return i}function Pe(e,t){return Ay(e)?e.hasOwnProperty(t):!1}function Vt(e,t){return ja(e,function(n){return n===t})!==void 0}function Pn(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function js(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function ja(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t.call(null,i))return i}}function gV(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function dn(e,t,n){for(var i=Array.isArray(e),r=i?e:Un(e),a=i?[]:Mi(e),s=n,l=0;l<r.length;l++)s=t.call(null,s,r[l],i?l:a[l]);return s}function Ua(e){return ka(e,function(t){return t==null})}function Mp(e,t){t===void 0&&(t=o(function(i){return i},"identity"));var n=[];return dn(e,function(i,r){var a=t(r);return Vt(n,a)?i:(n.push(a),i.concat(r))},[])}function Wle(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=[null],r=i.concat(t);return Function.bind.apply(e,r)}function ui(e){return Array.isArray(e)}function Po(e){return e instanceof RegExp}function Ay(e){return e instanceof Object}function pi(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function nl(e,t){return ka(e,function(n){return Vt(t,n)})}function Py(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function mV(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function Kle(e,t){var n=Pn(e);return n.sort(function(i,r){return t(i)-t(r)}),n}function Xle(e,t){if(e.length!==t.length)throw Error("can't zipObject with different number of keys and values!");for(var n={},i=0;i<e.length;i++)n[e[i]]=t[i];return n}function Pr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++)for(var r=t[i],a=Mi(r),s=0;s<a.length;s++){var l=a[s];e[l]=r[l]}return e}function sq(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++)for(var r=t[i],a=Mi(r),s=0;s<a.length;s++){var l=a[s];Pe(e,l)||(e[l]=r[l])}return e}function kp(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return sq.apply(null,[{}].concat(e))}function hV(e,t){var n={};return ye(e,function(i){var r=t(i),a=n[r];a?a.push(i):n[r]=[i]}),n}function SP(e,t){for(var n=js(e),i=Mi(t),r=0;r<i.length;r++){var a=i[r],s=t[a];n[a]=s}return n}function Bn(){}function AP(e){return e}function yV(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(i!==void 0?i:void 0)}return t}function jp(e){console&&console.error&&console.error("Error: "+e)}function xy(e){console&&console.warn&&console.warn("Warning: "+e)}function PP(){return typeof Map=="function"}function TV(e,t){t.forEach(function(n){var i=n.prototype;Object.getOwnPropertyNames(i).forEach(function(r){if(r!=="constructor"){var a=Object.getOwnPropertyDescriptor(i,r);a&&(a.get||a.set)?Object.defineProperty(e.prototype,r,a):e.prototype[r]=n.prototype[r]}})})}function Cy(toBecomeFast){function FakeConstructor(){}o(FakeConstructor,"FakeConstructor"),FakeConstructor.prototype=toBecomeFast;var fakeInstance=new FakeConstructor;function fakeAccess(){return typeof fakeInstance.bar}return o(fakeAccess,"fakeAccess"),fakeAccess(),fakeAccess(),toBecomeFast;eval(toBecomeFast)}function Up(e){return e[e.length-1]}function Iy(e){var t=new Date().getTime(),n=e(),i=new Date().getTime(),r=i-t;return{time:r,value:n}}var bt=Je(()=>{o(ct,"isEmpty");o(Mi,"keys");o(Un,"values");o(dV,"mapValues");o(pe,"map");o(Dn,"flatten");o(xi,"first");o(Sy,"last");o(ye,"forEach");o(Jr,"isString");o(Ci,"isUndefined");o(Ao,"isFunction");o($n,"drop");o(ks,"dropRight");o(Zr,"filter");o(ka,"reject");o(Ar,"pick");o(Pe,"has");o(Vt,"contains");o(Pn,"cloneArr");o(js,"cloneObj");o(ja,"find");o(gV,"findAll");o(dn,"reduce");o(Ua,"compact");o(Mp,"uniq");o(Wle,"partial");o(ui,"isArray");o(Po,"isRegExp");o(Ay,"isObject");o(pi,"every");o(nl,"difference");o(Py,"some");o(mV,"indexOf");o(Kle,"sortBy");o(Xle,"zipObject");o(Pr,"assign");o(sq,"assignNoOverwrite");o(kp,"defaults");o(hV,"groupBy");o(SP,"merge");o(Bn,"NOOP");o(AP,"IDENTITY");o(yV,"packArray");o(jp,"PRINT_ERROR");o(xy,"PRINT_WARNING");o(PP,"isES2015MapSupported");o(TV,"applyMixins");o(Cy,"toFastProperties");o(Up,"peek");o(Iy,"timer")});var Ry=Ze((bV,Oy)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Oy=="object"&&Oy.exports?Oy.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:bV,function(){function e(){}o(e,"RegExpParser"),e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(b){this.idx=b.idx,this.input=b.input,this.groupIdx=b.groupIdx},e.prototype.pattern=function(b){this.idx=0,this.input=b,this.groupIdx=0,this.consumeChar("/");var I=this.disjunction();this.consumeChar("/");for(var N={type:"Flags",loc:{begin:this.idx,end:b.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(N,"global");break;case"i":s(N,"ignoreCase");break;case"m":s(N,"multiLine");break;case"u":s(N,"unicode");break;case"y":s(N,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:N,value:I,loc:this.loc(0)}},e.prototype.disjunction=function(){var b=[],I=this.idx;for(b.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),b.push(this.alternative());return{type:"Disjunction",value:b,loc:this.loc(I)}},e.prototype.alternative=function(){for(var b=[],I=this.idx;this.isTerm();)b.push(this.term());return{type:"Alternative",value:b,loc:this.loc(I)}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){var b=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(b)};case"$":return{type:"EndAnchor",loc:this.loc(b)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(b)};case"B":return{type:"NonWordBoundary",loc:this.loc(b)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");var I;switch(this.popChar()){case"=":I="Lookahead";break;case"!":I="NegativeLookahead";break}l(I);var N=this.disjunction();return this.consumeChar(")"),{type:I,value:N,loc:this.loc(b)}}f()},e.prototype.quantifier=function(b){var I,N=this.idx;switch(this.popChar()){case"*":I={atLeast:0,atMost:1/0};break;case"+":I={atLeast:1,atMost:1/0};break;case"?":I={atLeast:0,atMost:1};break;case"{":var j=this.integerIncludingZero();switch(this.popChar()){case"}":I={atLeast:j,atMost:j};break;case",":var G;this.isDigit()?(G=this.integerIncludingZero(),I={atLeast:j,atMost:G}):I={atLeast:j,atMost:1/0},this.consumeChar("}");break}if(b===!0&&I===void 0)return;l(I);break}if(!(b===!0&&I===void 0))return l(I),this.peekChar(0)==="?"?(this.consumeChar("?"),I.greedy=!1):I.greedy=!0,I.type="Quantifier",I.loc=this.loc(N),I},e.prototype.atom=function(){var b,I=this.idx;switch(this.peekChar()){case".":b=this.dotAll();break;case"\\":b=this.atomEscape();break;case"[":b=this.characterClass();break;case"(":b=this.group();break}return b===void 0&&this.isPatternCharacter()&&(b=this.patternCharacter()),l(b),b.loc=this.loc(I),this.isQuantifier()&&(b.quantifier=this.quantifier()),b},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[r(`
83
83
  `),r("\r"),r("\u2028"),r("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){var b=this.positiveInteger();return{type:"GroupBackReference",value:b}},e.prototype.characterClassEscape=function(){var b,I=!1;switch(this.popChar()){case"d":b=d;break;case"D":b=d,I=!0;break;case"s":b=v;break;case"S":b=v,I=!0;break;case"w":b=m;break;case"W":b=m,I=!0;break}return l(b),{type:"Set",value:b,complement:I}},e.prototype.controlEscapeAtom=function(){var b;switch(this.popChar()){case"f":b=r("\f");break;case"n":b=r(`
84
84
  `);break;case"r":b=r("\r");break;case"t":b=r(" ");break;case"v":b=r("\v");break}return l(b),{type:"Character",value:b}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var b=this.popChar();if(/[a-zA-Z]/.test(b)===!1)throw Error("Invalid ");var I=b.toUpperCase().charCodeAt(0)-64;return{type:"Character",value:I}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:r("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){var b=this.popChar();return{type:"Character",value:r(b)}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case`
85
85
  `:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:var b=this.popChar();return{type:"Character",value:r(b)}}},e.prototype.characterClass=function(){var b=[],I=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),I=!0);this.isClassAtom();){var N=this.classAtom(),j=N.type==="Character";if(j&&this.isRangeDash()){this.consumeChar("-");var G=this.classAtom(),$=G.type==="Character";if($){if(G.value<N.value)throw Error("Range out of order in character class");b.push({from:N.value,to:G.value})}else a(N.value,b),b.push(r("-")),a(G.value,b)}else a(N.value,b)}return this.consumeChar("]"),{type:"Set",complement:I,value:b}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case`
@@ -87,7 +87,7 @@ try {
87
87
  `:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:r(b)}}},e.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},e.prototype.isRangeDash=function(){return this.peekChar()==="-"&&this.isClassAtom(1)},e.prototype.isDigit=function(){return n.test(this.peekChar(0))},e.prototype.isClassAtom=function(b){switch(b===void 0&&(b=0),this.peekChar(b)){case"]":case`
88
88
  `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},e.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},e.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!");default:return!1}},e.prototype.isQuantifier=function(){var b=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(b)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
89
89
  `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(b){for(var I="",N=0;N<b;N++){var j=this.popChar();if(t.test(j)===!1)throw Error("Expecting a HexDecimal digits");I+=j}var G=parseInt(I,16);return{type:"Character",value:G}},e.prototype.peekChar=function(b){return b===void 0&&(b=0),this.input[this.idx+b]},e.prototype.popChar=function(){var b=this.peekChar(0);return this.consumeChar(),b},e.prototype.consumeChar=function(b){if(b!==void 0&&this.input[this.idx]!==b)throw Error("Expected: '"+b+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++},e.prototype.loc=function(b){return{begin:b,end:this.idx}};var t=/[0-9a-fA-F]/,n=/[0-9]/,i=/[1-9]/;function r(b){return b.charCodeAt(0)}o(r,"cc");function a(b,I){b.length!==void 0?b.forEach(function(N){I.push(N)}):I.push(b)}o(a,"insertToSet");function s(b,I){if(b[I]===!0)throw"duplicate flag "+I;b[I]=!0}o(s,"addFlag");function l(b){if(b===void 0)throw Error("Internal Error - Should never get here!")}o(l,"ASSERT_EXISTS");function f(){throw Error("Internal Error - Should never get here!")}o(f,"ASSERT_NEVER_REACH_HERE");var p,d=[];for(p=r("0");p<=r("9");p++)d.push(p);var m=[r("_")].concat(d);for(p=r("a");p<=r("z");p++)m.push(p);for(p=r("A");p<=r("Z");p++)m.push(p);var v=[r(" "),r("\f"),r(`
90
- `),r("\r"),r(" "),r("\v"),r(" "),r("\xA0"),r("\u1680"),r("\u2000"),r("\u2001"),r("\u2002"),r("\u2003"),r("\u2004"),r("\u2005"),r("\u2006"),r("\u2007"),r("\u2008"),r("\u2009"),r("\u200A"),r("\u2028"),r("\u2029"),r("\u202F"),r("\u205F"),r("\u3000"),r("\uFEFF")];function E(){}return o(E,"BaseRegExpVisitor"),E.prototype.visitChildren=function(b){for(var I in b){var N=b[I];b.hasOwnProperty(I)&&(N.type!==void 0?this.visit(N):Array.isArray(N)&&N.forEach(function(j){this.visit(j)},this))}},E.prototype.visit=function(b){switch(b.type){case"Pattern":this.visitPattern(b);break;case"Flags":this.visitFlags(b);break;case"Disjunction":this.visitDisjunction(b);break;case"Alternative":this.visitAlternative(b);break;case"StartAnchor":this.visitStartAnchor(b);break;case"EndAnchor":this.visitEndAnchor(b);break;case"WordBoundary":this.visitWordBoundary(b);break;case"NonWordBoundary":this.visitNonWordBoundary(b);break;case"Lookahead":this.visitLookahead(b);break;case"NegativeLookahead":this.visitNegativeLookahead(b);break;case"Character":this.visitCharacter(b);break;case"Set":this.visitSet(b);break;case"Group":this.visitGroup(b);break;case"GroupBackReference":this.visitGroupBackReference(b);break;case"Quantifier":this.visitQuantifier(b);break}this.visitChildren(b)},E.prototype.visitPattern=function(b){},E.prototype.visitFlags=function(b){},E.prototype.visitDisjunction=function(b){},E.prototype.visitAlternative=function(b){},E.prototype.visitStartAnchor=function(b){},E.prototype.visitEndAnchor=function(b){},E.prototype.visitWordBoundary=function(b){},E.prototype.visitNonWordBoundary=function(b){},E.prototype.visitLookahead=function(b){},E.prototype.visitNegativeLookahead=function(b){},E.prototype.visitCharacter=function(b){},E.prototype.visitSet=function(b){},E.prototype.visitGroup=function(b){},E.prototype.visitGroupBackReference=function(b){},E.prototype.visitQuantifier=function(b){},{RegExpParser:e,BaseRegExpVisitor:E,VERSION:"0.5.0"}})});function bf(e){var t=e.toString();if(Ly.hasOwnProperty(t))return Ly[t];var n=cq.pattern(t);return Ly[t]=n,n}function S1(){Ly={}}var E1,Ly,cq,Ny=Je(()=>{E1=Z(Ry()),Ly={},cq=new E1.RegExpParser;o(bf,"getRegExpAst");o(S1,"clearRegExpParserCache")});function x1(e,t){t===void 0&&(t=!1);try{var n=bf(e),i=xP(n.value,{},n.flags.ignoreCase);return i}catch(a){if(a.message===P1)t&&xy(""+$p+(" Unable to optimize: < "+e.toString()+` >
90
+ `),r("\r"),r(" "),r("\v"),r(" "),r("\xA0"),r("\u1680"),r("\u2000"),r("\u2001"),r("\u2002"),r("\u2003"),r("\u2004"),r("\u2005"),r("\u2006"),r("\u2007"),r("\u2008"),r("\u2009"),r("\u200A"),r("\u2028"),r("\u2029"),r("\u202F"),r("\u205F"),r("\u3000"),r("\uFEFF")];function E(){}return o(E,"BaseRegExpVisitor"),E.prototype.visitChildren=function(b){for(var I in b){var N=b[I];b.hasOwnProperty(I)&&(N.type!==void 0?this.visit(N):Array.isArray(N)&&N.forEach(function(j){this.visit(j)},this))}},E.prototype.visit=function(b){switch(b.type){case"Pattern":this.visitPattern(b);break;case"Flags":this.visitFlags(b);break;case"Disjunction":this.visitDisjunction(b);break;case"Alternative":this.visitAlternative(b);break;case"StartAnchor":this.visitStartAnchor(b);break;case"EndAnchor":this.visitEndAnchor(b);break;case"WordBoundary":this.visitWordBoundary(b);break;case"NonWordBoundary":this.visitNonWordBoundary(b);break;case"Lookahead":this.visitLookahead(b);break;case"NegativeLookahead":this.visitNegativeLookahead(b);break;case"Character":this.visitCharacter(b);break;case"Set":this.visitSet(b);break;case"Group":this.visitGroup(b);break;case"GroupBackReference":this.visitGroupBackReference(b);break;case"Quantifier":this.visitQuantifier(b);break}this.visitChildren(b)},E.prototype.visitPattern=function(b){},E.prototype.visitFlags=function(b){},E.prototype.visitDisjunction=function(b){},E.prototype.visitAlternative=function(b){},E.prototype.visitStartAnchor=function(b){},E.prototype.visitEndAnchor=function(b){},E.prototype.visitWordBoundary=function(b){},E.prototype.visitNonWordBoundary=function(b){},E.prototype.visitLookahead=function(b){},E.prototype.visitNegativeLookahead=function(b){},E.prototype.visitCharacter=function(b){},E.prototype.visitSet=function(b){},E.prototype.visitGroup=function(b){},E.prototype.visitGroupBackReference=function(b){},E.prototype.visitQuantifier=function(b){},{RegExpParser:e,BaseRegExpVisitor:E,VERSION:"0.5.0"}})});function bf(e){var t=e.toString();if(Ly.hasOwnProperty(t))return Ly[t];var n=cq.pattern(t);return Ly[t]=n,n}function SV(){Ly={}}var EV,Ly,cq,Ny=Je(()=>{EV=Z(Ry()),Ly={},cq=new EV.RegExpParser;o(bf,"getRegExpAst");o(SV,"clearRegExpParserCache")});function xV(e,t){t===void 0&&(t=!1);try{var n=bf(e),i=xP(n.value,{},n.flags.ignoreCase);return i}catch(a){if(a.message===PV)t&&xy(""+$p+(" Unable to optimize: < "+e.toString()+` >
91
91
  `)+` Complement Sets cannot be automatically optimized.
92
92
  This will disable the lexer's first char optimizations.
93
93
  See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{var r="";t&&(r=`
@@ -95,43 +95,43 @@ try {
95
95
  See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),jp($p+`
96
96
  `+(" Failed parsing: < "+e.toString()+` >
97
97
  `)+(" Using the regexp-to-ast library version: "+Dy.VERSION+`
98
- `)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function xP(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)xP(e.value[i],t,n);break;case"Alternative":for(var r=e.value,i=0;i<r.length;i++){var a=r[i];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var s=a;switch(s.type){case"Character":Fy(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(P1);ye(s.value,function(p){if(typeof p=="number")Fy(p,t,n);else{var d=p;if(n===!0)for(var m=d.from;m<=d.to;m++)Fy(m,t,n);else{for(var m=d.from;m<=d.to&&m<Ef;m++)Fy(m,t,n);if(d.to>=Ef)for(var v=d.from>=Ef?d.from:Ef,E=d.to,b=Yo(v),I=Yo(E),N=b;N<=I;N++)t[N]=N}}});break;case"Group":xP(s.value,t,n);break;default:throw Error("Non Exhaustive Match")}var l=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&CP(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Un(t)}function Fy(e,t,n){var i=Yo(e);t[i]=i,n===!0&&fq(e,t)}function fq(e,t){var n=String.fromCharCode(e),i=n.toUpperCase();if(i!==n){var r=Yo(i.charCodeAt(0));t[r]=r}else{var a=n.toLowerCase();if(a!==n){var r=Yo(a.charCodeAt(0));t[r]=r}}}function A1(e,t){return ja(e.value,function(n){if(typeof n=="number")return Vt(t,n);var i=n;return ja(t,function(r){return i.from<=r&&r<=i.to})!==void 0})}function CP(e){return e.quantifier&&e.quantifier.atLeast===0?!0:e.value?ui(e.value)?pi(e.value,CP):CP(e.value):!1}function _y(e,t){if(t instanceof RegExp){var n=bf(t),i=new uq(e);return i.visit(n),i.found}else return ja(t,function(r){return Vt(e,r.charCodeAt(0))})!==void 0}var Dy,lq,P1,$p,uq,C1=Je(()=>{Dy=Z(Ry());bt();Ny();IP();lq=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),P1="Complement Sets are not supported for first char optimization",$p=`Unable to use "first char" lexer optimizations:
99
- `;o(x1,"getOptimizedStartCodesIndices");o(xP,"firstCharOptimizedIndices");o(Fy,"addOptimizedIdxToResult");o(fq,"handleIgnoreCase");o(A1,"findCode");o(CP,"isWholeOptional");uq=(function(e){lq(t,e);function t(n){var i=e.call(this)||this;return i.targetCharCodes=n,i.found=!1,i}return o(t,"CharCodeFinder"),t.prototype.visitChildren=function(n){if(this.found!==!0){switch(n.type){case"Lookahead":this.visitLookahead(n);return;case"NegativeLookahead":this.visitNegativeLookahead(n);return}e.prototype.visitChildren.call(this,n)}},t.prototype.visitCharacter=function(n){Vt(this.targetCharCodes,n.value)&&(this.found=!0)},t.prototype.visitSet=function(n){n.complement?A1(n,this.targetCharCodes)===void 0&&(this.found=!0):A1(n,this.targetCharCodes)!==void 0&&(this.found=!0)},t})(Dy.BaseRegExpVisitor);o(_y,"canMatchCharCode")});function L1(e,t){t=kp(t,{useSticky:LP,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
100
- `],tracer:o(function(G,$){return $()},"tracer")});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){Rq()});var i;n("Reject Lexer.NA",function(){i=ka(e,function(G){return G[zo]===ki.NA})});var r=!1,a;n("Transform Patterns",function(){r=!1,a=pe(i,function(G){var $=G[zo];if(Po($)){var se=$.source;return se.length===1&&se!=="^"&&se!=="$"&&se!=="."&&!$.ignoreCase?se:se.length===2&&se[0]==="\\"&&!Vt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],se[1])?se[1]:t.useSticky?O1($):I1($)}else{if(Ao($))return r=!0,{exec:$};if(Pe($,"exec"))return r=!0,$;if(typeof $=="string"){if($.length===1)return $;var ee=$.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),le=new RegExp(ee);return t.useSticky?O1(le):I1(le)}else throw Error("non exhaustive match")}})});var s,l,f,p,d;n("misc mapping",function(){s=pe(i,function(G){return G.tokenTypeIdx}),l=pe(i,function(G){var $=G.GROUP;if($!==ki.SKIPPED){if(Jr($))return $;if(Ci($))return!1;throw Error("non exhaustive match")}}),f=pe(i,function(G){var $=G.LONGER_ALT;if($){var se=m1(i,$);return se}}),p=pe(i,function(G){return G.PUSH_MODE}),d=pe(i,function(G){return Pe(G,"POP_MODE")})});var m;n("Line Terminator Handling",function(){var G=k1(t.lineTerminatorCharacters);m=pe(i,function($){return!1}),t.positionTracking!=="onlyOffset"&&(m=pe(i,function($){if(Pe($,"LINE_BREAKS"))return $.LINE_BREAKS;if(M1($,G)===!1)return _y(G,$.PATTERN)}))});var v,E,b,I;n("Misc Mapping #2",function(){v=pe(i,V1),E=pe(a,Iq),b=dn(i,function(G,$){var se=$.GROUP;return Jr(se)&&se!==ki.SKIPPED&&(G[se]=[]),G},{}),I=pe(a,function(G,$){return{pattern:a[$],longerAlt:f[$],canLineTerminator:m[$],isCustom:v[$],short:E[$],group:l[$],push:p[$],pop:d[$],tokenTypeIdx:s[$],tokenType:i[$]}})});var N=!0,j=[];return t.safeMode||n("First Char Optimization",function(){j=dn(i,function(G,$,se){if(typeof $.PATTERN=="string"){var ee=$.PATTERN.charCodeAt(0),le=Yo(ee);OP(G,le,I[se])}else if(ui($.START_CHARS_HINT)){var Le;ye($.START_CHARS_HINT,function(Ue){var $e=typeof Ue=="string"?Ue.charCodeAt(0):Ue,qe=Yo($e);Le!==qe&&(Le=qe,OP(G,qe,I[se]))})}else if(Po($.PATTERN))if($.PATTERN.unicode)N=!1,t.ensureOptimizations&&jp(""+$p+(" Unable to analyze < "+$.PATTERN.toString()+` > pattern.
98
+ `)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function xP(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)xP(e.value[i],t,n);break;case"Alternative":for(var r=e.value,i=0;i<r.length;i++){var a=r[i];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var s=a;switch(s.type){case"Character":Fy(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(PV);ye(s.value,function(p){if(typeof p=="number")Fy(p,t,n);else{var d=p;if(n===!0)for(var m=d.from;m<=d.to;m++)Fy(m,t,n);else{for(var m=d.from;m<=d.to&&m<Ef;m++)Fy(m,t,n);if(d.to>=Ef)for(var v=d.from>=Ef?d.from:Ef,E=d.to,b=Yo(v),I=Yo(E),N=b;N<=I;N++)t[N]=N}}});break;case"Group":xP(s.value,t,n);break;default:throw Error("Non Exhaustive Match")}var l=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&CP(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Un(t)}function Fy(e,t,n){var i=Yo(e);t[i]=i,n===!0&&fq(e,t)}function fq(e,t){var n=String.fromCharCode(e),i=n.toUpperCase();if(i!==n){var r=Yo(i.charCodeAt(0));t[r]=r}else{var a=n.toLowerCase();if(a!==n){var r=Yo(a.charCodeAt(0));t[r]=r}}}function AV(e,t){return ja(e.value,function(n){if(typeof n=="number")return Vt(t,n);var i=n;return ja(t,function(r){return i.from<=r&&r<=i.to})!==void 0})}function CP(e){return e.quantifier&&e.quantifier.atLeast===0?!0:e.value?ui(e.value)?pi(e.value,CP):CP(e.value):!1}function _y(e,t){if(t instanceof RegExp){var n=bf(t),i=new uq(e);return i.visit(n),i.found}else return ja(t,function(r){return Vt(e,r.charCodeAt(0))})!==void 0}var Dy,lq,PV,$p,uq,CV=Je(()=>{Dy=Z(Ry());bt();Ny();IP();lq=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),PV="Complement Sets are not supported for first char optimization",$p=`Unable to use "first char" lexer optimizations:
99
+ `;o(xV,"getOptimizedStartCodesIndices");o(xP,"firstCharOptimizedIndices");o(Fy,"addOptimizedIdxToResult");o(fq,"handleIgnoreCase");o(AV,"findCode");o(CP,"isWholeOptional");uq=(function(e){lq(t,e);function t(n){var i=e.call(this)||this;return i.targetCharCodes=n,i.found=!1,i}return o(t,"CharCodeFinder"),t.prototype.visitChildren=function(n){if(this.found!==!0){switch(n.type){case"Lookahead":this.visitLookahead(n);return;case"NegativeLookahead":this.visitNegativeLookahead(n);return}e.prototype.visitChildren.call(this,n)}},t.prototype.visitCharacter=function(n){Vt(this.targetCharCodes,n.value)&&(this.found=!0)},t.prototype.visitSet=function(n){n.complement?AV(n,this.targetCharCodes)===void 0&&(this.found=!0):AV(n,this.targetCharCodes)!==void 0&&(this.found=!0)},t})(Dy.BaseRegExpVisitor);o(_y,"canMatchCharCode")});function LV(e,t){t=kp(t,{useSticky:LP,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
100
+ `],tracer:o(function(G,$){return $()},"tracer")});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){Rq()});var i;n("Reject Lexer.NA",function(){i=ka(e,function(G){return G[zo]===ki.NA})});var r=!1,a;n("Transform Patterns",function(){r=!1,a=pe(i,function(G){var $=G[zo];if(Po($)){var se=$.source;return se.length===1&&se!=="^"&&se!=="$"&&se!=="."&&!$.ignoreCase?se:se.length===2&&se[0]==="\\"&&!Vt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],se[1])?se[1]:t.useSticky?OV($):IV($)}else{if(Ao($))return r=!0,{exec:$};if(Pe($,"exec"))return r=!0,$;if(typeof $=="string"){if($.length===1)return $;var ee=$.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),le=new RegExp(ee);return t.useSticky?OV(le):IV(le)}else throw Error("non exhaustive match")}})});var s,l,f,p,d;n("misc mapping",function(){s=pe(i,function(G){return G.tokenTypeIdx}),l=pe(i,function(G){var $=G.GROUP;if($!==ki.SKIPPED){if(Jr($))return $;if(Ci($))return!1;throw Error("non exhaustive match")}}),f=pe(i,function(G){var $=G.LONGER_ALT;if($){var se=mV(i,$);return se}}),p=pe(i,function(G){return G.PUSH_MODE}),d=pe(i,function(G){return Pe(G,"POP_MODE")})});var m;n("Line Terminator Handling",function(){var G=kV(t.lineTerminatorCharacters);m=pe(i,function($){return!1}),t.positionTracking!=="onlyOffset"&&(m=pe(i,function($){if(Pe($,"LINE_BREAKS"))return $.LINE_BREAKS;if(MV($,G)===!1)return _y(G,$.PATTERN)}))});var v,E,b,I;n("Misc Mapping #2",function(){v=pe(i,VV),E=pe(a,Iq),b=dn(i,function(G,$){var se=$.GROUP;return Jr(se)&&se!==ki.SKIPPED&&(G[se]=[]),G},{}),I=pe(a,function(G,$){return{pattern:a[$],longerAlt:f[$],canLineTerminator:m[$],isCustom:v[$],short:E[$],group:l[$],push:p[$],pop:d[$],tokenTypeIdx:s[$],tokenType:i[$]}})});var N=!0,j=[];return t.safeMode||n("First Char Optimization",function(){j=dn(i,function(G,$,se){if(typeof $.PATTERN=="string"){var ee=$.PATTERN.charCodeAt(0),le=Yo(ee);OP(G,le,I[se])}else if(ui($.START_CHARS_HINT)){var Le;ye($.START_CHARS_HINT,function(Ue){var $e=typeof Ue=="string"?Ue.charCodeAt(0):Ue,qe=Yo($e);Le!==qe&&(Le=qe,OP(G,qe,I[se]))})}else if(Po($.PATTERN))if($.PATTERN.unicode)N=!1,t.ensureOptimizations&&jp(""+$p+(" Unable to analyze < "+$.PATTERN.toString()+` > pattern.
101
101
  `)+` The regexp unicode flag is not currently supported by the regexp-to-ast library.
102
102
  This will disable the lexer's first char optimizations.
103
- For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{var D=x1($.PATTERN,t.ensureOptimizations);ct(D)&&(N=!1),ye(D,function(Ue){OP(G,Ue,I[se])})}else t.ensureOptimizations&&jp(""+$p+(" TokenType: <"+$.name+`> is using a custom token pattern without providing <start_chars_hint> parameter.
103
+ For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{var D=xV($.PATTERN,t.ensureOptimizations);ct(D)&&(N=!1),ye(D,function(Ue){OP(G,Ue,I[se])})}else t.ensureOptimizations&&jp(""+$p+(" TokenType: <"+$.name+`> is using a custom token pattern without providing <start_chars_hint> parameter.
104
104
  `)+` This will disable the lexer's first char optimizations.
105
- For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),N=!1;return G},[])}),n("ArrayPacking",function(){j=y1(j)}),{emptyGroups:b,patternIdxToConfig:I,charCodeToPatternIdxToConfig:j,hasCustom:r,canBeOptimized:N}}function N1(e,t){var n=[],i=dq(e);n=n.concat(i.errors);var r=gq(i.valid),a=r.valid;return n=n.concat(r.errors),n=n.concat(pq(a)),n=n.concat(Sq(a)),n=n.concat(Aq(a,t)),n=n.concat(Pq(a)),n}function pq(e){var t=[],n=Zr(e,function(i){return Po(i[zo])});return t=t.concat(hq(n)),t=t.concat(vq(n)),t=t.concat(bq(n)),t=t.concat(Eq(n)),t=t.concat(yq(n)),t}function dq(e){var t=Zr(e,function(r){return!Pe(r,zo)}),n=pe(t,function(r){return{message:"Token Type: ->"+r.name+"<- missing static 'PATTERN' property",type:gn.MISSING_PATTERN,tokenTypes:[r]}}),i=nl(e,t);return{errors:n,valid:i}}function gq(e){var t=Zr(e,function(r){var a=r[zo];return!Po(a)&&!Ao(a)&&!Pe(a,"exec")&&!Jr(a)}),n=pe(t,function(r){return{message:"Token Type: ->"+r.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:gn.INVALID_PATTERN,tokenTypes:[r]}}),i=nl(e,t);return{errors:n,valid:i}}function hq(e){var t=(function(r){R1(a,r);function a(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return o(a,"EndAnchorFinder"),a.prototype.visitEndAnchor=function(s){this.found=!0},a})(RP.BaseRegExpVisitor),n=Zr(e,function(r){var a=r[zo];try{var s=bf(a),l=new t;return l.visit(s),l.found}catch{return mq.test(a.source)}}),i=pe(n,function(r){return{message:`Unexpected RegExp Anchor Error:
105
+ For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),N=!1;return G},[])}),n("ArrayPacking",function(){j=yV(j)}),{emptyGroups:b,patternIdxToConfig:I,charCodeToPatternIdxToConfig:j,hasCustom:r,canBeOptimized:N}}function NV(e,t){var n=[],i=dq(e);n=n.concat(i.errors);var r=gq(i.valid),a=r.valid;return n=n.concat(r.errors),n=n.concat(pq(a)),n=n.concat(Sq(a)),n=n.concat(Aq(a,t)),n=n.concat(Pq(a)),n}function pq(e){var t=[],n=Zr(e,function(i){return Po(i[zo])});return t=t.concat(hq(n)),t=t.concat(vq(n)),t=t.concat(bq(n)),t=t.concat(Eq(n)),t=t.concat(yq(n)),t}function dq(e){var t=Zr(e,function(r){return!Pe(r,zo)}),n=pe(t,function(r){return{message:"Token Type: ->"+r.name+"<- missing static 'PATTERN' property",type:gn.MISSING_PATTERN,tokenTypes:[r]}}),i=nl(e,t);return{errors:n,valid:i}}function gq(e){var t=Zr(e,function(r){var a=r[zo];return!Po(a)&&!Ao(a)&&!Pe(a,"exec")&&!Jr(a)}),n=pe(t,function(r){return{message:"Token Type: ->"+r.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:gn.INVALID_PATTERN,tokenTypes:[r]}}),i=nl(e,t);return{errors:n,valid:i}}function hq(e){var t=(function(r){RV(a,r);function a(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return o(a,"EndAnchorFinder"),a.prototype.visitEndAnchor=function(s){this.found=!0},a})(RP.BaseRegExpVisitor),n=Zr(e,function(r){var a=r[zo];try{var s=bf(a),l=new t;return l.visit(s),l.found}catch{return mq.test(a.source)}}),i=pe(n,function(r){return{message:`Unexpected RegExp Anchor Error:
106
106
  Token Type: ->`+r.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
107
- See sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:gn.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function yq(e){var t=Zr(e,function(i){var r=i[zo];return r.test("")}),n=pe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' must not match an empty string",type:gn.EMPTY_MATCH_PATTERN,tokenTypes:[i]}});return n}function vq(e){var t=(function(r){R1(a,r);function a(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return o(a,"StartAnchorFinder"),a.prototype.visitStartAnchor=function(s){this.found=!0},a})(RP.BaseRegExpVisitor),n=Zr(e,function(r){var a=r[zo];try{var s=bf(a),l=new t;return l.visit(s),l.found}catch{return Tq.test(a.source)}}),i=pe(n,function(r){return{message:`Unexpected RegExp Anchor Error:
107
+ See sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:gn.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function yq(e){var t=Zr(e,function(i){var r=i[zo];return r.test("")}),n=pe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' must not match an empty string",type:gn.EMPTY_MATCH_PATTERN,tokenTypes:[i]}});return n}function vq(e){var t=(function(r){RV(a,r);function a(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return o(a,"StartAnchorFinder"),a.prototype.visitStartAnchor=function(s){this.found=!0},a})(RP.BaseRegExpVisitor),n=Zr(e,function(r){var a=r[zo];try{var s=bf(a),l=new t;return l.visit(s),l.found}catch{return Tq.test(a.source)}}),i=pe(n,function(r){return{message:`Unexpected RegExp Anchor Error:
108
108
  Token Type: ->`+r.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
109
109
  See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:gn.SOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function bq(e){var t=Zr(e,function(i){var r=i[zo];return r instanceof RegExp&&(r.multiline||r.global)}),n=pe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:gn.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}});return n}function Eq(e){var t=[],n=pe(e,function(a){return dn(e,function(s,l){return a.PATTERN.source===l.PATTERN.source&&!Vt(t,l)&&l.PATTERN!==ki.NA&&(t.push(l),s.push(l)),s},[])});n=Ua(n);var i=Zr(n,function(a){return a.length>1}),r=pe(i,function(a){var s=pe(a,function(f){return f.name}),l=xi(a).PATTERN;return{message:"The same RegExp pattern ->"+l+"<-"+("has been used in all of the following Token Types: "+s.join(", ")+" <-"),type:gn.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}});return r}function Sq(e){var t=Zr(e,function(i){if(!Pe(i,"GROUP"))return!1;var r=i.GROUP;return r!==ki.SKIPPED&&r!==ki.NA&&!Jr(r)}),n=pe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:gn.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}});return n}function Aq(e,t){var n=Zr(e,function(r){return r.PUSH_MODE!==void 0&&!Vt(t,r.PUSH_MODE)}),i=pe(n,function(r){var a="Token Type: ->"+r.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+r.PUSH_MODE+"<-which does not exist";return{message:a,type:gn.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[r]}});return i}function Pq(e){var t=[],n=dn(e,function(i,r,a){var s=r.PATTERN;return s===ki.NA||(Jr(s)?i.push({str:s,idx:a,tokenType:r}):Po(s)&&Cq(s)&&i.push({str:s.source,idx:a,tokenType:r})),i},[]);return ye(e,function(i,r){ye(n,function(a){var s=a.str,l=a.idx,f=a.tokenType;if(r<l&&xq(s,i.PATTERN)){var p="Token: ->"+f.name+`<- can never be matched.
110
110
  `+("Because it appears AFTER the Token Type ->"+i.name+"<-")+`in the lexer's definition.
111
- See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:p,type:gn.UNREACHABLE_PATTERN,tokenTypes:[i,f]})}})}),t}function xq(e,t){if(Po(t)){var n=t.exec(e);return n!==null&&n.index===0}else{if(Ao(t))return t(e,0,[],{});if(Pe(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function Cq(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return ja(t,function(n){return e.source.indexOf(n)!==-1})===void 0}function I1(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function O1(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function F1(e,t,n){var i=[];return Pe(e,Us)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Us+`> property in its definition
111
+ See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:p,type:gn.UNREACHABLE_PATTERN,tokenTypes:[i,f]})}})}),t}function xq(e,t){if(Po(t)){var n=t.exec(e);return n!==null&&n.index===0}else{if(Ao(t))return t(e,0,[],{});if(Pe(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function Cq(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return ja(t,function(n){return e.source.indexOf(n)!==-1})===void 0}function IV(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function OV(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function FV(e,t,n){var i=[];return Pe(e,Us)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Us+`> property in its definition
112
112
  `,type:gn.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Pe(e,Vy)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Vy+`> property in its definition
113
113
  `,type:gn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Pe(e,Vy)&&Pe(e,Us)&&!Pe(e.modes,e.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+Us+": <"+e.defaultMode+`>which does not exist
114
114
  `,type:gn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Pe(e,Vy)&&ye(e.modes,function(r,a){ye(r,function(s,l){Ci(s)&&i.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+("<"+a+"> at index: <"+l+`>
115
- `),type:gn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function D1(e,t,n){var i=[],r=!1,a=Ua(Dn(d1(e.modes,function(f){return f}))),s=ka(a,function(f){return f[zo]===ki.NA}),l=k1(n);return t&&ye(s,function(f){var p=M1(f,l);if(p!==!1){var d=Oq(f,p),m={message:d,type:p.issue,tokenType:f};i.push(m)}else Pe(f,"LINE_BREAKS")?f.LINE_BREAKS===!0&&(r=!0):_y(l,f.PATTERN)&&(r=!0)}),t&&!r&&i.push({message:`Warning: No LINE_BREAKS Found.
115
+ `),type:gn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function DV(e,t,n){var i=[],r=!1,a=Ua(Dn(dV(e.modes,function(f){return f}))),s=ka(a,function(f){return f[zo]===ki.NA}),l=kV(n);return t&&ye(s,function(f){var p=MV(f,l);if(p!==!1){var d=Oq(f,p),m={message:d,type:p.issue,tokenType:f};i.push(m)}else Pe(f,"LINE_BREAKS")?f.LINE_BREAKS===!0&&(r=!0):_y(l,f.PATTERN)&&(r=!0)}),t&&!r&&i.push({message:`Warning: No LINE_BREAKS Found.
116
116
  This Lexer has been defined to track line and column information,
117
117
  But none of the Token Types can be identified as matching a line terminator.
118
118
  See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
119
- for details.`,type:gn.NO_LINE_BREAKS_FLAGS}),i}function _1(e){var t={},n=Mi(e);return ye(n,function(i){var r=e[i];if(ui(r))t[i]=[];else throw Error("non exhaustive match")}),t}function V1(e){var t=e.PATTERN;if(Po(t))return!1;if(Ao(t))return!0;if(Pe(t,"exec"))return!0;if(Jr(t))return!1;throw Error("non exhaustive match")}function Iq(e){return Jr(e)&&e.length===1?e.charCodeAt(0):!1}function M1(e,t){if(Pe(e,"LINE_BREAKS"))return!1;if(Po(e.PATTERN)){try{_y(t,e.PATTERN)}catch(n){return{issue:gn.IDENTIFY_TERMINATOR,errMsg:n.message}}return!1}else{if(Jr(e.PATTERN))return!1;if(V1(e))return{issue:gn.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function Oq(e,t){if(t.issue===gn.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
119
+ for details.`,type:gn.NO_LINE_BREAKS_FLAGS}),i}function _V(e){var t={},n=Mi(e);return ye(n,function(i){var r=e[i];if(ui(r))t[i]=[];else throw Error("non exhaustive match")}),t}function VV(e){var t=e.PATTERN;if(Po(t))return!1;if(Ao(t))return!0;if(Pe(t,"exec"))return!0;if(Jr(t))return!1;throw Error("non exhaustive match")}function Iq(e){return Jr(e)&&e.length===1?e.charCodeAt(0):!1}function MV(e,t){if(Pe(e,"LINE_BREAKS"))return!1;if(Po(e.PATTERN)){try{_y(t,e.PATTERN)}catch(n){return{issue:gn.IDENTIFY_TERMINATOR,errMsg:n.message}}return!1}else{if(Jr(e.PATTERN))return!1;if(VV(e))return{issue:gn.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function Oq(e,t){if(t.issue===gn.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
120
120
  `+(" The problem is in the <"+e.name+`> Token Type
121
121
  `)+(" Root cause: "+t.errMsg+`.
122
122
  `)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(t.issue===gn.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
123
123
  `+(" The problem is in the <"+e.name+`> Token Type
124
- `)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function k1(e){var t=pe(e,function(n){return Jr(n)&&n.length>0?n.charCodeAt(0):n});return t}function OP(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function Yo(e){return e<Ef?e:wy[e]}function Rq(){if(ct(wy)){wy=new Array(65536);for(var e=0;e<65536;e++)wy[e]=e>255?255+~~(e/255):e}}var RP,R1,zo,Us,Vy,LP,mq,Tq,w1,Ef,wy,IP=Je(()=>{RP=Z(Ry());Bp();bt();C1();Ny();R1=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),zo="PATTERN",Us="defaultMode",Vy="modes",LP=typeof new RegExp("(?:)").sticky=="boolean";o(L1,"analyzeTokenTypes");o(N1,"validatePatterns");o(pq,"validateRegExpPattern");o(dq,"findMissingPatterns");o(gq,"findInvalidPatterns");mq=/[^\\][\$]/;o(hq,"findEndOfInputAnchor");o(yq,"findEmptyMatchRegExps");Tq=/[^\\[][\^]|^\^/;o(vq,"findStartOfInputAnchor");o(bq,"findUnsupportedFlags");o(Eq,"findDuplicatePatterns");o(Sq,"findInvalidGroupType");o(Aq,"findModesThatDoNotExist");o(Pq,"findUnreachablePatterns");o(xq,"testTokenType");o(Cq,"noMetaChar");o(I1,"addStartOfInput");o(O1,"addStickyFlag");o(F1,"performRuntimeChecks");o(D1,"performWarningRuntimeChecks");o(_1,"cloneEmptyGroups");o(V1,"isCustomPattern");o(Iq,"isShortPattern");w1={test:o(function(e){for(var t=e.length,n=this.lastIndex;n<t;n++){var i=e.charCodeAt(n);if(i===10)return this.lastIndex=n+1,!0;if(i===13)return e.charCodeAt(n+1)===10?this.lastIndex=n+2:this.lastIndex=n+1,!0}return!1},"test"),lastIndex:0};o(M1,"checkLineBreaksIssues");o(Oq,"buildLineBreakIssueMessage");o(k1,"getCharCodes");o(OP,"addToMapOfArrays");Ef=256;o(Yo,"charCodeToOptimizedIndex");wy=[];o(Rq,"initCharCodeToOptimizedIndexMap")});function il(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}function Sf(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function $a(e){var t=Lq(e);Nq(t),Dq(t),Fq(t),ye(t,function(n){n.isParent=n.categoryMatches.length>0})}function Lq(e){for(var t=Pn(e),n=e,i=!0;i;){n=Ua(Dn(pe(n,function(a){return a.CATEGORIES})));var r=nl(n,t);t=t.concat(r),ct(r)?i=!1:n=r}return t}function Nq(e){ye(e,function(t){NP(t)||($1[j1]=t,t.tokenTypeIdx=j1++),U1(t)&&!ui(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),U1(t)||(t.CATEGORIES=[]),_q(t)||(t.categoryMatches=[]),Vq(t)||(t.categoryMatchesMap={})})}function Fq(e){ye(e,function(t){t.categoryMatches=[],ye(t.categoryMatchesMap,function(n,i){t.categoryMatches.push($1[i].tokenTypeIdx)})})}function Dq(e){ye(e,function(t){B1([],t)})}function B1(e,t){ye(e,function(n){t.categoryMatchesMap[n.tokenTypeIdx]=!0}),ye(t.CATEGORIES,function(n){var i=e.concat(t);Vt(i,n)||B1(i,n)})}function NP(e){return Pe(e,"tokenTypeIdx")}function U1(e){return Pe(e,"CATEGORIES")}function _q(e){return Pe(e,"categoryMatches")}function Vq(e){return Pe(e,"categoryMatchesMap")}function H1(e){return Pe(e,"tokenTypeIdx")}var j1,$1,Af=Je(()=>{bt();o(il,"tokenStructuredMatcher");o(Sf,"tokenStructuredMatcherNoCategories");j1=1,$1={};o($a,"augmentTokenTypes");o(Lq,"expandCategories");o(Nq,"assignTokenDefaultProps");o(Fq,"assignCategoriesTokensProp");o(Dq,"assignCategoriesMapProp");o(B1,"singleAssignCategoriesToksMap");o(NP,"hasShortKeyProperty");o(U1,"hasCategoriesProperty");o(_q,"hasExtendingTokensTypesProperty");o(Vq,"hasExtendingTokensTypesMapProperty");o(H1,"isTokenType")});var My,FP=Je(()=>{My={buildUnableToPopLexerModeMessage:o(function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},"buildUnableToPopLexerModeMessage"),buildUnexpectedCharactersMessage:o(function(e,t,n,i,r){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+","+(" skipped "+n+" characters.")},"buildUnexpectedCharactersMessage")}});var gn,Hp,ki,Bp=Je(()=>{IP();bt();Af();FP();Ny();(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"})(gn||(gn={}));Hp={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
124
+ `)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function kV(e){var t=pe(e,function(n){return Jr(n)&&n.length>0?n.charCodeAt(0):n});return t}function OP(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function Yo(e){return e<Ef?e:wy[e]}function Rq(){if(ct(wy)){wy=new Array(65536);for(var e=0;e<65536;e++)wy[e]=e>255?255+~~(e/255):e}}var RP,RV,zo,Us,Vy,LP,mq,Tq,wV,Ef,wy,IP=Je(()=>{RP=Z(Ry());Bp();bt();CV();Ny();RV=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),zo="PATTERN",Us="defaultMode",Vy="modes",LP=typeof new RegExp("(?:)").sticky=="boolean";o(LV,"analyzeTokenTypes");o(NV,"validatePatterns");o(pq,"validateRegExpPattern");o(dq,"findMissingPatterns");o(gq,"findInvalidPatterns");mq=/[^\\][\$]/;o(hq,"findEndOfInputAnchor");o(yq,"findEmptyMatchRegExps");Tq=/[^\\[][\^]|^\^/;o(vq,"findStartOfInputAnchor");o(bq,"findUnsupportedFlags");o(Eq,"findDuplicatePatterns");o(Sq,"findInvalidGroupType");o(Aq,"findModesThatDoNotExist");o(Pq,"findUnreachablePatterns");o(xq,"testTokenType");o(Cq,"noMetaChar");o(IV,"addStartOfInput");o(OV,"addStickyFlag");o(FV,"performRuntimeChecks");o(DV,"performWarningRuntimeChecks");o(_V,"cloneEmptyGroups");o(VV,"isCustomPattern");o(Iq,"isShortPattern");wV={test:o(function(e){for(var t=e.length,n=this.lastIndex;n<t;n++){var i=e.charCodeAt(n);if(i===10)return this.lastIndex=n+1,!0;if(i===13)return e.charCodeAt(n+1)===10?this.lastIndex=n+2:this.lastIndex=n+1,!0}return!1},"test"),lastIndex:0};o(MV,"checkLineBreaksIssues");o(Oq,"buildLineBreakIssueMessage");o(kV,"getCharCodes");o(OP,"addToMapOfArrays");Ef=256;o(Yo,"charCodeToOptimizedIndex");wy=[];o(Rq,"initCharCodeToOptimizedIndexMap")});function il(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}function Sf(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function $a(e){var t=Lq(e);Nq(t),Dq(t),Fq(t),ye(t,function(n){n.isParent=n.categoryMatches.length>0})}function Lq(e){for(var t=Pn(e),n=e,i=!0;i;){n=Ua(Dn(pe(n,function(a){return a.CATEGORIES})));var r=nl(n,t);t=t.concat(r),ct(r)?i=!1:n=r}return t}function Nq(e){ye(e,function(t){NP(t)||($V[jV]=t,t.tokenTypeIdx=jV++),UV(t)&&!ui(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),UV(t)||(t.CATEGORIES=[]),_q(t)||(t.categoryMatches=[]),Vq(t)||(t.categoryMatchesMap={})})}function Fq(e){ye(e,function(t){t.categoryMatches=[],ye(t.categoryMatchesMap,function(n,i){t.categoryMatches.push($V[i].tokenTypeIdx)})})}function Dq(e){ye(e,function(t){BV([],t)})}function BV(e,t){ye(e,function(n){t.categoryMatchesMap[n.tokenTypeIdx]=!0}),ye(t.CATEGORIES,function(n){var i=e.concat(t);Vt(i,n)||BV(i,n)})}function NP(e){return Pe(e,"tokenTypeIdx")}function UV(e){return Pe(e,"CATEGORIES")}function _q(e){return Pe(e,"categoryMatches")}function Vq(e){return Pe(e,"categoryMatchesMap")}function HV(e){return Pe(e,"tokenTypeIdx")}var jV,$V,Af=Je(()=>{bt();o(il,"tokenStructuredMatcher");o(Sf,"tokenStructuredMatcherNoCategories");jV=1,$V={};o($a,"augmentTokenTypes");o(Lq,"expandCategories");o(Nq,"assignTokenDefaultProps");o(Fq,"assignCategoriesTokensProp");o(Dq,"assignCategoriesMapProp");o(BV,"singleAssignCategoriesToksMap");o(NP,"hasShortKeyProperty");o(UV,"hasCategoriesProperty");o(_q,"hasExtendingTokensTypesProperty");o(Vq,"hasExtendingTokensTypesMapProperty");o(HV,"isTokenType")});var My,FP=Je(()=>{My={buildUnableToPopLexerModeMessage:o(function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},"buildUnableToPopLexerModeMessage"),buildUnexpectedCharactersMessage:o(function(e,t,n,i,r){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+","+(" skipped "+n+" characters.")},"buildUnexpectedCharactersMessage")}});var gn,Hp,ki,Bp=Je(()=>{IP();bt();Af();FP();Ny();(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"})(gn||(gn={}));Hp={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
125
125
  `,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:My,traceInitPerf:!1,skipValidations:!1};Object.freeze(Hp);ki=(function(){function e(t,n){var i=this;if(n===void 0&&(n=Hp),this.lexerDefinition=t,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},typeof n=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
126
- a boolean 2nd argument is no longer supported`);this.config=SP(Hp,n);var r=this.config.traceInitPerf;r===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof r=="number"&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",function(){var a,s=!0;i.TRACE_INIT("Lexer Config handling",function(){if(i.config.lineTerminatorsPattern===Hp.lineTerminatorsPattern)i.config.lineTerminatorsPattern=w1;else if(i.config.lineTerminatorCharacters===Hp.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
127
- For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(n.safeMode&&n.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');i.trackStartLines=/full|onlyStart/i.test(i.config.positionTracking),i.trackEndLines=/full/i.test(i.config.positionTracking),ui(t)?(a={modes:{}},a.modes[Us]=Pn(t),a[Us]=Us):(s=!1,a=js(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(F1(a,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat(D1(a,i.trackStartLines,i.config.lineTerminatorCharacters))})),a.modes=a.modes?a.modes:{},ye(a.modes,function(d,m){a.modes[m]=ka(d,function(v){return Ci(v)})});var l=Mi(a.modes);if(ye(a.modes,function(d,m){i.TRACE_INIT("Mode: <"+m+"> processing",function(){if(i.modes.push(m),i.config.skipValidations===!1&&i.TRACE_INIT("validatePatterns",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(N1(d,l))}),ct(i.lexerDefinitionErrors)){$a(d);var v;i.TRACE_INIT("analyzeTokenTypes",function(){v=L1(d,{lineTerminatorCharacters:i.config.lineTerminatorCharacters,positionTracking:n.positionTracking,ensureOptimizations:n.ensureOptimizations,safeMode:n.safeMode,tracer:i.TRACE_INIT.bind(i)})}),i.patternIdxToConfig[m]=v.patternIdxToConfig,i.charCodeToPatternIdxToConfig[m]=v.charCodeToPatternIdxToConfig,i.emptyGroups=SP(i.emptyGroups,v.emptyGroups),i.hasCustom=v.hasCustom||i.hasCustom,i.canModeBeOptimized[m]=v.canBeOptimized}})}),i.defaultMode=a.defaultMode,!ct(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling){var f=pe(i.lexerDefinitionErrors,function(d){return d.message}),p=f.join(`-----------------------
126
+ a boolean 2nd argument is no longer supported`);this.config=SP(Hp,n);var r=this.config.traceInitPerf;r===!0?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):typeof r=="number"&&(this.traceInitMaxIdent=r,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",function(){var a,s=!0;i.TRACE_INIT("Lexer Config handling",function(){if(i.config.lineTerminatorsPattern===Hp.lineTerminatorsPattern)i.config.lineTerminatorsPattern=wV;else if(i.config.lineTerminatorCharacters===Hp.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
127
+ For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(n.safeMode&&n.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');i.trackStartLines=/full|onlyStart/i.test(i.config.positionTracking),i.trackEndLines=/full/i.test(i.config.positionTracking),ui(t)?(a={modes:{}},a.modes[Us]=Pn(t),a[Us]=Us):(s=!1,a=js(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(FV(a,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat(DV(a,i.trackStartLines,i.config.lineTerminatorCharacters))})),a.modes=a.modes?a.modes:{},ye(a.modes,function(d,m){a.modes[m]=ka(d,function(v){return Ci(v)})});var l=Mi(a.modes);if(ye(a.modes,function(d,m){i.TRACE_INIT("Mode: <"+m+"> processing",function(){if(i.modes.push(m),i.config.skipValidations===!1&&i.TRACE_INIT("validatePatterns",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(NV(d,l))}),ct(i.lexerDefinitionErrors)){$a(d);var v;i.TRACE_INIT("analyzeTokenTypes",function(){v=LV(d,{lineTerminatorCharacters:i.config.lineTerminatorCharacters,positionTracking:n.positionTracking,ensureOptimizations:n.ensureOptimizations,safeMode:n.safeMode,tracer:i.TRACE_INIT.bind(i)})}),i.patternIdxToConfig[m]=v.patternIdxToConfig,i.charCodeToPatternIdxToConfig[m]=v.charCodeToPatternIdxToConfig,i.emptyGroups=SP(i.emptyGroups,v.emptyGroups),i.hasCustom=v.hasCustom||i.hasCustom,i.canModeBeOptimized[m]=v.canBeOptimized}})}),i.defaultMode=a.defaultMode,!ct(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling){var f=pe(i.lexerDefinitionErrors,function(d){return d.message}),p=f.join(`-----------------------
128
128
  `);throw new Error(`Errors detected in definition of Lexer:
129
129
  `+p)}ye(i.lexerDefinitionWarning,function(d){xy(d.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(LP?(i.chopInput=AP,i.match=i.matchWithTest):(i.updateLastIndex=Bn,i.match=i.matchWithExec),s&&(i.handleModes=Bn),i.trackStartLines===!1&&(i.computeNewColumn=AP),i.trackEndLines===!1&&(i.updateTokenEndLineColumnLocation=Bn),/full/i.test(i.config.positionTracking))i.createTokenInstance=i.createFullToken;else if(/onlyStart/i.test(i.config.positionTracking))i.createTokenInstance=i.createStartOnlyToken;else if(/onlyOffset/i.test(i.config.positionTracking))i.createTokenInstance=i.createOffsetOnlyToken;else throw Error('Invalid <positionTracking> config option: "'+i.config.positionTracking+'"');i.hasCustom?(i.addToken=i.addTokenUsingPush,i.handlePayload=i.handlePayloadWithCustom):(i.addToken=i.addTokenUsingMemberAccess,i.handlePayload=i.handlePayloadNoCustom)}),i.TRACE_INIT("Failed Optimization Warnings",function(){var d=dn(i.canModeBeOptimized,function(m,v,E){return v===!1&&m.push(E),m},[]);if(n.ensureOptimizations&&!ct(d))throw Error("Lexer Modes: < "+d.join(", ")+` > cannot be optimized.
130
130
  Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
131
- Or inspect the console log for details on how to resolve these issues.`)}),i.TRACE_INIT("clearRegExpParserCache",function(){S1()}),i.TRACE_INIT("toFastProperties",function(){Cy(i)})})}return o(e,"Lexer"),e.prototype.tokenize=function(t,n){if(n===void 0&&(n=this.defaultMode),!ct(this.lexerDefinitionErrors)){var i=pe(this.lexerDefinitionErrors,function(s){return s.message}),r=i.join(`-----------------------
131
+ Or inspect the console log for details on how to resolve these issues.`)}),i.TRACE_INIT("clearRegExpParserCache",function(){SV()}),i.TRACE_INIT("toFastProperties",function(){Cy(i)})})}return o(e,"Lexer"),e.prototype.tokenize=function(t,n){if(n===void 0&&(n=this.defaultMode),!ct(this.lexerDefinitionErrors)){var i=pe(this.lexerDefinitionErrors,function(s){return s.message}),r=i.join(`-----------------------
132
132
  `);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
133
- `+r)}var a=this.tokenizeInternal(t,n);return a},e.prototype.tokenizeInternal=function(t,n){var i=this,r,a,s,l,f,p,d,m,v,E,b,I,N,j,G,$=t,se=$.length,ee=0,le=0,Le=this.hasCustom?0:Math.floor(t.length/10),D=new Array(Le),Ue=[],$e=this.trackStartLines?1:void 0,qe=this.trackStartLines?1:void 0,nn=_1(this.emptyGroups),$t=this.trackStartLines,St=this.config.lineTerminatorsPattern,qt=0,Ne=[],Tn=[],vn=[],rn=[];Object.freeze(rn);var On=void 0;function on(){return Ne}o(on,"getPossiblePatternsSlow");function Oe(Ht){var ra=Yo(Ht),Hi=Tn[ra];return Hi===void 0?rn:Hi}o(Oe,"getPossiblePatternsOptimized");var ln=o(function(Ht){if(vn.length===1&&Ht.tokenType.PUSH_MODE===void 0){var ra=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Ht);Ue.push({offset:Ht.startOffset,line:Ht.startLine!==void 0?Ht.startLine:void 0,column:Ht.startColumn!==void 0?Ht.startColumn:void 0,length:Ht.image.length,message:ra})}else{vn.pop();var Hi=Sy(vn);Ne=i.patternIdxToConfig[Hi],Tn=i.charCodeToPatternIdxToConfig[Hi],qt=Ne.length;var ru=i.canModeBeOptimized[Hi]&&i.config.safeMode===!1;Tn&&ru?On=Oe:On=on}},"pop_mode");function Oi(Ht){vn.push(Ht),Tn=this.charCodeToPatternIdxToConfig[Ht],Ne=this.patternIdxToConfig[Ht],qt=Ne.length,qt=Ne.length;var ra=this.canModeBeOptimized[Ht]&&this.config.safeMode===!1;Tn&&ra?On=Oe:On=on}o(Oi,"push_mode"),Oi.call(this,n);for(var tt;ee<se;){f=null;var O=$.charCodeAt(ee),A=On(O),Y=A.length;for(r=0;r<Y;r++){tt=A[r];var V=tt.pattern;p=null;var _e=tt.short;if(_e!==!1?O===_e&&(f=V):tt.isCustom===!0?(G=V.exec($,ee,D,nn),G!==null?(f=G[0],G.payload!==void 0&&(p=G.payload)):f=null):(this.updateLastIndex(V,ee),f=this.match(V,t,ee)),f!==null){if(l=tt.longerAlt,l!==void 0){var Nt=Ne[l],ze=Nt.pattern;d=null,Nt.isCustom===!0?(G=ze.exec($,ee,D,nn),G!==null?(s=G[0],G.payload!==void 0&&(d=G.payload)):s=null):(this.updateLastIndex(ze,ee),s=this.match(ze,t,ee)),s&&s.length>f.length&&(f=s,p=d,tt=Nt)}break}}if(f!==null){if(m=f.length,v=tt.group,v!==void 0&&(E=tt.tokenTypeIdx,b=this.createTokenInstance(f,ee,E,tt.tokenType,$e,qe,m),this.handlePayload(b,p),v===!1?le=this.addToken(D,le,b):nn[v].push(b)),t=this.chopInput(t,m),ee=ee+m,qe=this.computeNewColumn(qe,m),$t===!0&&tt.canLineTerminator===!0){var Mt=0,bn=void 0,fn=void 0;St.lastIndex=0;do bn=St.test(f),bn===!0&&(fn=St.lastIndex-1,Mt++);while(bn===!0);Mt!==0&&($e=$e+Mt,qe=m-fn,this.updateTokenEndLineColumnLocation(b,v,fn,Mt,$e,qe,m))}this.handleModes(tt,ln,Oi,b)}else{for(var Bt=ee,ii=$e,lr=qe,mn=!1;!mn&&ee<se;)for(N=$.charCodeAt(ee),t=this.chopInput(t,1),ee++,a=0;a<qt;a++){var mi=Ne[a],V=mi.pattern,_e=mi.short;if(_e!==!1?$.charCodeAt(ee)===_e&&(mn=!0):mi.isCustom===!0?mn=V.exec($,ee,D,nn)!==null:(this.updateLastIndex(V,ee),mn=V.exec(t)!==null),mn===!0)break}I=ee-Bt,j=this.config.errorMessageProvider.buildUnexpectedCharactersMessage($,Bt,I,ii,lr),Ue.push({offset:Bt,line:ii,column:lr,length:I,message:j})}}return this.hasCustom||(D.length=le),{tokens:D,groups:nn,errors:Ue}},e.prototype.handleModes=function(t,n,i,r){if(t.pop===!0){var a=t.push;n(r),a!==void 0&&i.call(this,a)}else t.push!==void 0&&i.call(this,t.push)},e.prototype.chopInput=function(t,n){return t.substring(n)},e.prototype.updateLastIndex=function(t,n){t.lastIndex=n},e.prototype.updateTokenEndLineColumnLocation=function(t,n,i,r,a,s,l){var f,p;n!==void 0&&(f=i===l-1,p=f?-1:0,r===1&&f===!0||(t.endLine=a+p,t.endColumn=s-1+-p))},e.prototype.computeNewColumn=function(t,n){return t+n},e.prototype.createTokenInstance=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null},e.prototype.createOffsetOnlyToken=function(t,n,i,r){return{image:t,startOffset:n,tokenTypeIdx:i,tokenType:r}},e.prototype.createStartOnlyToken=function(t,n,i,r,a,s){return{image:t,startOffset:n,startLine:a,startColumn:s,tokenTypeIdx:i,tokenType:r}},e.prototype.createFullToken=function(t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:n+l-1,startLine:a,endLine:a,startColumn:s,endColumn:s+l-1,tokenTypeIdx:i,tokenType:r}},e.prototype.addToken=function(t,n,i){return 666},e.prototype.addTokenUsingPush=function(t,n,i){return t.push(i),n},e.prototype.addTokenUsingMemberAccess=function(t,n,i){return t[n]=i,n++,n},e.prototype.handlePayload=function(t,n){},e.prototype.handlePayloadNoCustom=function(t,n){},e.prototype.handlePayloadWithCustom=function(t,n){n!==null&&(t.payload=n)},e.prototype.match=function(t,n,i){return null},e.prototype.matchWithTest=function(t,n,i){var r=t.test(n);return r===!0?n.substring(i,t.lastIndex):null},e.prototype.matchWithExec=function(t,n){var i=t.exec(n);return i!==null?i[0]:i},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=Iy(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",e.NA=/NOT_APPLICABLE/,e})()});function Jo(e){return DP(e)?e.LABEL:e.name}function J1(e){return e.name}function DP(e){return Jr(e.LABEL)&&e.LABEL!==""}function Gp(e){return Mq(e)}function Mq(e){var t=e.pattern,n={};if(n.name=e.name,Ci(t)||(n.PATTERN=t),Pe(e,wq))throw`The parent property is no longer supported.
134
- See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Pe(e,G1)&&(n.CATEGORIES=e[G1]),$a([n]),Pe(e,W1)&&(n.LABEL=e[W1]),Pe(e,K1)&&(n.GROUP=e[K1]),Pe(e,Q1)&&(n.POP_MODE=e[Q1]),Pe(e,X1)&&(n.PUSH_MODE=e[X1]),Pe(e,q1)&&(n.LONGER_ALT=e[q1]),Pe(e,Y1)&&(n.LINE_BREAKS=e[Y1]),Pe(e,z1)&&(n.START_CHARS_HINT=e[z1]),n}function $s(e,t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:i,startLine:r,endLine:a,startColumn:s,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function Z1(e,t){return il(e,t)}var wq,G1,W1,K1,X1,Q1,q1,Y1,z1,eo,Bs=Je(()=>{bt();Bp();Af();o(Jo,"tokenLabel");o(J1,"tokenName");o(DP,"hasTokenLabel");wq="parent",G1="categories",W1="label",K1="group",X1="push_mode",Q1="pop_mode",q1="longer_alt",Y1="line_breaks",z1="start_chars_hint";o(Gp,"createToken");o(Mq,"createTokenInternal");eo=Gp({name:"EOF",pattern:ki.NA});$a([eo]);o($s,"createTokenInstance");o(Z1,"tokenMatcher")});function ky(e){return pe(e,Pf)}function Pf(e){function t(r){return pe(r,Pf)}if(o(t,"convertDefinition"),e instanceof sn)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof en)return{type:"Alternative",definition:t(e.definition)};if(e instanceof cn)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof _n)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Vn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Pf(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof xn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Pf(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Lt)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Cn)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof ht){var n={type:"Terminal",name:e.terminalType.name,label:Jo(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=Po(i)?i.source:i),n}else{if(e instanceof xr)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var Ba,xo,sn,xr,en,cn,_n,Vn,Lt,xn,Cn,ht,ji=Je(()=>{bt();Bs();Ba=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),xo=(function(){function e(t){this._definition=t}return o(e,"AbstractProduction"),Object.defineProperty(e.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(t){this._definition=t},"set"),enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this),ye(this.definition,function(n){n.accept(t)})},e})(),sn=(function(e){Ba(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,Pr(i,Ar(n,function(r){return r!==void 0})),i}return o(t,"NonTerminal"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},"get"),set:o(function(n){},"set"),enumerable:!1,configurable:!0}),t.prototype.accept=function(n){n.visit(this)},t})(xo),xr=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",Pr(i,Ar(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t})(xo),en=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,Pr(i,Ar(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t})(xo),cn=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Pr(i,Ar(n,function(r){return r!==void 0})),i}return o(t,"Option"),t})(xo),_n=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Pr(i,Ar(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t})(xo),Vn=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Pr(i,Ar(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t})(xo),Lt=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Pr(i,Ar(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t})(xo),xn=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Pr(i,Ar(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t})(xo),Cn=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,Pr(i,Ar(n,function(r){return r!==void 0})),i}return o(t,"Alternation"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(n){this._definition=n},"set"),enumerable:!1,configurable:!0}),t})(xo),ht=(function(){function e(t){this.idx=1,Pr(this,Ar(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e})();o(ky,"serializeGrammar");o(Pf,"serializeProduction")});function ew(e,t,n){var i=[new cn({definition:[new ht({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var rl,jy=Je(()=>{bt();ji();rl=(function(){function e(){}return o(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),ye(t.definition,function(r,a){var s=$n(t.definition,a+1);if(r instanceof sn)i.walkProdRef(r,s,n);else if(r instanceof ht)i.walkTerminal(r,s,n);else if(r instanceof en)i.walkFlat(r,s,n);else if(r instanceof cn)i.walkOption(r,s,n);else if(r instanceof _n)i.walkAtLeastOne(r,s,n);else if(r instanceof Vn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof xn)i.walkManySep(r,s,n);else if(r instanceof Lt)i.walkMany(r,s,n);else if(r instanceof Cn)i.walkOr(r,s,n);else throw Error("non exhaustive match")})},e.prototype.walkTerminal=function(t,n,i){},e.prototype.walkProdRef=function(t,n,i){},e.prototype.walkFlat=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkOption=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkAtLeastOne=function(t,n,i){var r=[new cn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=ew(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new cn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=ew(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,a=n.concat(i);ye(t.definition,function(s){var l=new en({definition:[s]});r.walk(l,a)})},e})();o(ew,"restForRepetitionWithSeparator")});var to,xf=Je(()=>{ji();to=(function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case sn:return this.visitNonTerminal(n);case en:return this.visitAlternative(n);case cn:return this.visitOption(n);case _n:return this.visitRepetitionMandatory(n);case Vn:return this.visitRepetitionMandatoryWithSeparator(n);case xn:return this.visitRepetitionWithSeparator(n);case Lt:return this.visitRepetition(n);case Cn:return this.visitAlternation(n);case ht:return this.visitTerminal(n);case xr:return this.visitRule(n);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(t){},e.prototype.visitAlternative=function(t){},e.prototype.visitOption=function(t){},e.prototype.visitRepetition=function(t){},e.prototype.visitRepetitionMandatory=function(t){},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){},e.prototype.visitRepetitionWithSeparator=function(t){},e.prototype.visitAlternation=function(t){},e.prototype.visitTerminal=function(t){},e.prototype.visitRule=function(t){},e})()});function tw(e){return e instanceof en||e instanceof cn||e instanceof Lt||e instanceof _n||e instanceof Vn||e instanceof xn||e instanceof ht||e instanceof xr}function Cf(e,t){t===void 0&&(t=[]);var n=e instanceof cn||e instanceof Lt||e instanceof xn;return n?!0:e instanceof Cn?Py(e.definition,function(i){return Cf(i,t)}):e instanceof sn&&Vt(t,e)?!1:e instanceof xo?(e instanceof sn&&t.push(e),pi(e.definition,function(i){return Cf(i,t)})):!1}function nw(e){return e instanceof Cn}function Cr(e){if(e instanceof sn)return"SUBRULE";if(e instanceof cn)return"OPTION";if(e instanceof Cn)return"OR";if(e instanceof _n)return"AT_LEAST_ONE";if(e instanceof Vn)return"AT_LEAST_ONE_SEP";if(e instanceof xn)return"MANY_SEP";if(e instanceof Lt)return"MANY";if(e instanceof ht)return"CONSUME";throw Error("non exhaustive match")}function iw(e){Uy.reset(),e.accept(Uy);var t=Uy.dslMethods;return Uy.reset(),t}var kq,_P,Uy,If=Je(()=>{bt();ji();xf();kq=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();o(tw,"isSequenceProd");o(Cf,"isOptionalProd");o(nw,"isBranchingProd");o(Cr,"getProductionDslName");_P=(function(e){kq(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.separator="-",n.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},n}return o(t,"DslMethodsCollectorVisitor"),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(n){var i=n.terminalType.name+this.separator+"Terminal";Pe(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";Pe(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitOption=function(n){this.dslMethods.option.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.dslMethods.repetitionWithSeparator.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.dslMethods.repetitionMandatory.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.dslMethods.repetitionMandatoryWithSeparator.push(n)},t.prototype.visitRepetition=function(n){this.dslMethods.repetition.push(n)},t.prototype.visitAlternation=function(n){this.dslMethods.alternation.push(n)},t})(to),Uy=new _P;o(iw,"collectMethods")});function ol(e){if(e instanceof sn)return ol(e.referencedRule);if(e instanceof ht)return $q(e);if(tw(e))return jq(e);if(nw(e))return Uq(e);throw Error("non exhaustive match")}function jq(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=Cf(a),t=t.concat(ol(a)),i=i+1,r=n.length>i;return Mp(t)}function Uq(e){var t=pe(e.definition,function(n){return ol(n)});return Mp(Dn(t))}function $q(e){return[e.terminalType]}var VP=Je(()=>{bt();ji();If();o(ol,"first");o(jq,"firstForSequence");o(Uq,"firstForBranching");o($q,"firstForTerminal")});var $y,wP=Je(()=>{$y="_~IN~_"});function rw(e){var t={};return ye(e,function(n){var i=new Hq(n).startWalking();Pr(t,i)}),t}function Gq(e,t){return e.name+t+$y}var Bq,Hq,ow=Je(()=>{jy();VP();bt();wP();ji();Bq=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),Hq=(function(e){Bq(t,e);function t(n){var i=e.call(this)||this;return i.topProd=n,i.follows={},i}return o(t,"ResyncFollowsWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(n,i,r){},t.prototype.walkProdRef=function(n,i,r){var a=Gq(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new en({definition:s}),f=ol(l);this.follows[a]=f},t})(rl);o(rw,"computeAllProdsFollows");o(Gq,"buildBetweenProdsFollowPrefix")});var Wp,By,Hs,Kp=Je(()=>{Bs();bt();bt();ji();If();Wp={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=DP(t),s=a?"--> "+Jo(t)+" <--":"token of type --> "+t.name+" <--",l="Expecting "+s+" but found --> '"+n.image+"' <--";return l},"buildMismatchTokenMessage"),buildNotAllInputParsedMessage:o(function(e){var t=e.firstRedundant,n=e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},"buildNotAllInputParsedMessage"),buildNoViableAltMessage:o(function(e){var t=e.expectedPathsPerAlt,n=e.actual,i=e.previous,r=e.customUserDescription,a=e.ruleName,s="Expecting: ",l=xi(n).image,f=`
133
+ `+r)}var a=this.tokenizeInternal(t,n);return a},e.prototype.tokenizeInternal=function(t,n){var i=this,r,a,s,l,f,p,d,m,v,E,b,I,N,j,G,$=t,se=$.length,ee=0,le=0,Le=this.hasCustom?0:Math.floor(t.length/10),D=new Array(Le),Ue=[],$e=this.trackStartLines?1:void 0,qe=this.trackStartLines?1:void 0,nn=_V(this.emptyGroups),$t=this.trackStartLines,St=this.config.lineTerminatorsPattern,qt=0,Ne=[],Tn=[],vn=[],rn=[];Object.freeze(rn);var On=void 0;function on(){return Ne}o(on,"getPossiblePatternsSlow");function Oe(Ht){var ra=Yo(Ht),Hi=Tn[ra];return Hi===void 0?rn:Hi}o(Oe,"getPossiblePatternsOptimized");var ln=o(function(Ht){if(vn.length===1&&Ht.tokenType.PUSH_MODE===void 0){var ra=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Ht);Ue.push({offset:Ht.startOffset,line:Ht.startLine!==void 0?Ht.startLine:void 0,column:Ht.startColumn!==void 0?Ht.startColumn:void 0,length:Ht.image.length,message:ra})}else{vn.pop();var Hi=Sy(vn);Ne=i.patternIdxToConfig[Hi],Tn=i.charCodeToPatternIdxToConfig[Hi],qt=Ne.length;var ru=i.canModeBeOptimized[Hi]&&i.config.safeMode===!1;Tn&&ru?On=Oe:On=on}},"pop_mode");function Oi(Ht){vn.push(Ht),Tn=this.charCodeToPatternIdxToConfig[Ht],Ne=this.patternIdxToConfig[Ht],qt=Ne.length,qt=Ne.length;var ra=this.canModeBeOptimized[Ht]&&this.config.safeMode===!1;Tn&&ra?On=Oe:On=on}o(Oi,"push_mode"),Oi.call(this,n);for(var tt;ee<se;){f=null;var O=$.charCodeAt(ee),A=On(O),Y=A.length;for(r=0;r<Y;r++){tt=A[r];var V=tt.pattern;p=null;var _e=tt.short;if(_e!==!1?O===_e&&(f=V):tt.isCustom===!0?(G=V.exec($,ee,D,nn),G!==null?(f=G[0],G.payload!==void 0&&(p=G.payload)):f=null):(this.updateLastIndex(V,ee),f=this.match(V,t,ee)),f!==null){if(l=tt.longerAlt,l!==void 0){var Nt=Ne[l],ze=Nt.pattern;d=null,Nt.isCustom===!0?(G=ze.exec($,ee,D,nn),G!==null?(s=G[0],G.payload!==void 0&&(d=G.payload)):s=null):(this.updateLastIndex(ze,ee),s=this.match(ze,t,ee)),s&&s.length>f.length&&(f=s,p=d,tt=Nt)}break}}if(f!==null){if(m=f.length,v=tt.group,v!==void 0&&(E=tt.tokenTypeIdx,b=this.createTokenInstance(f,ee,E,tt.tokenType,$e,qe,m),this.handlePayload(b,p),v===!1?le=this.addToken(D,le,b):nn[v].push(b)),t=this.chopInput(t,m),ee=ee+m,qe=this.computeNewColumn(qe,m),$t===!0&&tt.canLineTerminator===!0){var Mt=0,bn=void 0,fn=void 0;St.lastIndex=0;do bn=St.test(f),bn===!0&&(fn=St.lastIndex-1,Mt++);while(bn===!0);Mt!==0&&($e=$e+Mt,qe=m-fn,this.updateTokenEndLineColumnLocation(b,v,fn,Mt,$e,qe,m))}this.handleModes(tt,ln,Oi,b)}else{for(var Bt=ee,ii=$e,lr=qe,mn=!1;!mn&&ee<se;)for(N=$.charCodeAt(ee),t=this.chopInput(t,1),ee++,a=0;a<qt;a++){var mi=Ne[a],V=mi.pattern,_e=mi.short;if(_e!==!1?$.charCodeAt(ee)===_e&&(mn=!0):mi.isCustom===!0?mn=V.exec($,ee,D,nn)!==null:(this.updateLastIndex(V,ee),mn=V.exec(t)!==null),mn===!0)break}I=ee-Bt,j=this.config.errorMessageProvider.buildUnexpectedCharactersMessage($,Bt,I,ii,lr),Ue.push({offset:Bt,line:ii,column:lr,length:I,message:j})}}return this.hasCustom||(D.length=le),{tokens:D,groups:nn,errors:Ue}},e.prototype.handleModes=function(t,n,i,r){if(t.pop===!0){var a=t.push;n(r),a!==void 0&&i.call(this,a)}else t.push!==void 0&&i.call(this,t.push)},e.prototype.chopInput=function(t,n){return t.substring(n)},e.prototype.updateLastIndex=function(t,n){t.lastIndex=n},e.prototype.updateTokenEndLineColumnLocation=function(t,n,i,r,a,s,l){var f,p;n!==void 0&&(f=i===l-1,p=f?-1:0,r===1&&f===!0||(t.endLine=a+p,t.endColumn=s-1+-p))},e.prototype.computeNewColumn=function(t,n){return t+n},e.prototype.createTokenInstance=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null},e.prototype.createOffsetOnlyToken=function(t,n,i,r){return{image:t,startOffset:n,tokenTypeIdx:i,tokenType:r}},e.prototype.createStartOnlyToken=function(t,n,i,r,a,s){return{image:t,startOffset:n,startLine:a,startColumn:s,tokenTypeIdx:i,tokenType:r}},e.prototype.createFullToken=function(t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:n+l-1,startLine:a,endLine:a,startColumn:s,endColumn:s+l-1,tokenTypeIdx:i,tokenType:r}},e.prototype.addToken=function(t,n,i){return 666},e.prototype.addTokenUsingPush=function(t,n,i){return t.push(i),n},e.prototype.addTokenUsingMemberAccess=function(t,n,i){return t[n]=i,n++,n},e.prototype.handlePayload=function(t,n){},e.prototype.handlePayloadNoCustom=function(t,n){},e.prototype.handlePayloadWithCustom=function(t,n){n!==null&&(t.payload=n)},e.prototype.match=function(t,n,i){return null},e.prototype.matchWithTest=function(t,n,i){var r=t.test(n);return r===!0?n.substring(i,t.lastIndex):null},e.prototype.matchWithExec=function(t,n){var i=t.exec(n);return i!==null?i[0]:i},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=Iy(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",e.NA=/NOT_APPLICABLE/,e})()});function Jo(e){return DP(e)?e.LABEL:e.name}function JV(e){return e.name}function DP(e){return Jr(e.LABEL)&&e.LABEL!==""}function Gp(e){return Mq(e)}function Mq(e){var t=e.pattern,n={};if(n.name=e.name,Ci(t)||(n.PATTERN=t),Pe(e,wq))throw`The parent property is no longer supported.
134
+ See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Pe(e,GV)&&(n.CATEGORIES=e[GV]),$a([n]),Pe(e,WV)&&(n.LABEL=e[WV]),Pe(e,KV)&&(n.GROUP=e[KV]),Pe(e,QV)&&(n.POP_MODE=e[QV]),Pe(e,XV)&&(n.PUSH_MODE=e[XV]),Pe(e,qV)&&(n.LONGER_ALT=e[qV]),Pe(e,YV)&&(n.LINE_BREAKS=e[YV]),Pe(e,zV)&&(n.START_CHARS_HINT=e[zV]),n}function $s(e,t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:i,startLine:r,endLine:a,startColumn:s,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function ZV(e,t){return il(e,t)}var wq,GV,WV,KV,XV,QV,qV,YV,zV,eo,Bs=Je(()=>{bt();Bp();Af();o(Jo,"tokenLabel");o(JV,"tokenName");o(DP,"hasTokenLabel");wq="parent",GV="categories",WV="label",KV="group",XV="push_mode",QV="pop_mode",qV="longer_alt",YV="line_breaks",zV="start_chars_hint";o(Gp,"createToken");o(Mq,"createTokenInternal");eo=Gp({name:"EOF",pattern:ki.NA});$a([eo]);o($s,"createTokenInstance");o(ZV,"tokenMatcher")});function ky(e){return pe(e,Pf)}function Pf(e){function t(r){return pe(r,Pf)}if(o(t,"convertDefinition"),e instanceof sn)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof en)return{type:"Alternative",definition:t(e.definition)};if(e instanceof cn)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof _n)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Vn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Pf(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof xn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Pf(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Lt)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Cn)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof ht){var n={type:"Terminal",name:e.terminalType.name,label:Jo(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=Po(i)?i.source:i),n}else{if(e instanceof xr)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var Ba,xo,sn,xr,en,cn,_n,Vn,Lt,xn,Cn,ht,ji=Je(()=>{bt();Bs();Ba=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),xo=(function(){function e(t){this._definition=t}return o(e,"AbstractProduction"),Object.defineProperty(e.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(t){this._definition=t},"set"),enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this),ye(this.definition,function(n){n.accept(t)})},e})(),sn=(function(e){Ba(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,Pr(i,Ar(n,function(r){return r!==void 0})),i}return o(t,"NonTerminal"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},"get"),set:o(function(n){},"set"),enumerable:!1,configurable:!0}),t.prototype.accept=function(n){n.visit(this)},t})(xo),xr=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",Pr(i,Ar(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t})(xo),en=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,Pr(i,Ar(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t})(xo),cn=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Pr(i,Ar(n,function(r){return r!==void 0})),i}return o(t,"Option"),t})(xo),_n=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Pr(i,Ar(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t})(xo),Vn=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Pr(i,Ar(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t})(xo),Lt=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Pr(i,Ar(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t})(xo),xn=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Pr(i,Ar(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t})(xo),Cn=(function(e){Ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,Pr(i,Ar(n,function(r){return r!==void 0})),i}return o(t,"Alternation"),Object.defineProperty(t.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(n){this._definition=n},"set"),enumerable:!1,configurable:!0}),t})(xo),ht=(function(){function e(t){this.idx=1,Pr(this,Ar(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e})();o(ky,"serializeGrammar");o(Pf,"serializeProduction")});function ew(e,t,n){var i=[new cn({definition:[new ht({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var rl,jy=Je(()=>{bt();ji();rl=(function(){function e(){}return o(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),ye(t.definition,function(r,a){var s=$n(t.definition,a+1);if(r instanceof sn)i.walkProdRef(r,s,n);else if(r instanceof ht)i.walkTerminal(r,s,n);else if(r instanceof en)i.walkFlat(r,s,n);else if(r instanceof cn)i.walkOption(r,s,n);else if(r instanceof _n)i.walkAtLeastOne(r,s,n);else if(r instanceof Vn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof xn)i.walkManySep(r,s,n);else if(r instanceof Lt)i.walkMany(r,s,n);else if(r instanceof Cn)i.walkOr(r,s,n);else throw Error("non exhaustive match")})},e.prototype.walkTerminal=function(t,n,i){},e.prototype.walkProdRef=function(t,n,i){},e.prototype.walkFlat=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkOption=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkAtLeastOne=function(t,n,i){var r=[new cn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=ew(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new cn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=ew(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,a=n.concat(i);ye(t.definition,function(s){var l=new en({definition:[s]});r.walk(l,a)})},e})();o(ew,"restForRepetitionWithSeparator")});var to,xf=Je(()=>{ji();to=(function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case sn:return this.visitNonTerminal(n);case en:return this.visitAlternative(n);case cn:return this.visitOption(n);case _n:return this.visitRepetitionMandatory(n);case Vn:return this.visitRepetitionMandatoryWithSeparator(n);case xn:return this.visitRepetitionWithSeparator(n);case Lt:return this.visitRepetition(n);case Cn:return this.visitAlternation(n);case ht:return this.visitTerminal(n);case xr:return this.visitRule(n);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(t){},e.prototype.visitAlternative=function(t){},e.prototype.visitOption=function(t){},e.prototype.visitRepetition=function(t){},e.prototype.visitRepetitionMandatory=function(t){},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){},e.prototype.visitRepetitionWithSeparator=function(t){},e.prototype.visitAlternation=function(t){},e.prototype.visitTerminal=function(t){},e.prototype.visitRule=function(t){},e})()});function tw(e){return e instanceof en||e instanceof cn||e instanceof Lt||e instanceof _n||e instanceof Vn||e instanceof xn||e instanceof ht||e instanceof xr}function Cf(e,t){t===void 0&&(t=[]);var n=e instanceof cn||e instanceof Lt||e instanceof xn;return n?!0:e instanceof Cn?Py(e.definition,function(i){return Cf(i,t)}):e instanceof sn&&Vt(t,e)?!1:e instanceof xo?(e instanceof sn&&t.push(e),pi(e.definition,function(i){return Cf(i,t)})):!1}function nw(e){return e instanceof Cn}function Cr(e){if(e instanceof sn)return"SUBRULE";if(e instanceof cn)return"OPTION";if(e instanceof Cn)return"OR";if(e instanceof _n)return"AT_LEAST_ONE";if(e instanceof Vn)return"AT_LEAST_ONE_SEP";if(e instanceof xn)return"MANY_SEP";if(e instanceof Lt)return"MANY";if(e instanceof ht)return"CONSUME";throw Error("non exhaustive match")}function iw(e){Uy.reset(),e.accept(Uy);var t=Uy.dslMethods;return Uy.reset(),t}var kq,_P,Uy,If=Je(()=>{bt();ji();xf();kq=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();o(tw,"isSequenceProd");o(Cf,"isOptionalProd");o(nw,"isBranchingProd");o(Cr,"getProductionDslName");_P=(function(e){kq(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.separator="-",n.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},n}return o(t,"DslMethodsCollectorVisitor"),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(n){var i=n.terminalType.name+this.separator+"Terminal";Pe(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";Pe(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitOption=function(n){this.dslMethods.option.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.dslMethods.repetitionWithSeparator.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.dslMethods.repetitionMandatory.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.dslMethods.repetitionMandatoryWithSeparator.push(n)},t.prototype.visitRepetition=function(n){this.dslMethods.repetition.push(n)},t.prototype.visitAlternation=function(n){this.dslMethods.alternation.push(n)},t})(to),Uy=new _P;o(iw,"collectMethods")});function ol(e){if(e instanceof sn)return ol(e.referencedRule);if(e instanceof ht)return $q(e);if(tw(e))return jq(e);if(nw(e))return Uq(e);throw Error("non exhaustive match")}function jq(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=Cf(a),t=t.concat(ol(a)),i=i+1,r=n.length>i;return Mp(t)}function Uq(e){var t=pe(e.definition,function(n){return ol(n)});return Mp(Dn(t))}function $q(e){return[e.terminalType]}var VP=Je(()=>{bt();ji();If();o(ol,"first");o(jq,"firstForSequence");o(Uq,"firstForBranching");o($q,"firstForTerminal")});var $y,wP=Je(()=>{$y="_~IN~_"});function rw(e){var t={};return ye(e,function(n){var i=new Hq(n).startWalking();Pr(t,i)}),t}function Gq(e,t){return e.name+t+$y}var Bq,Hq,ow=Je(()=>{jy();VP();bt();wP();ji();Bq=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),Hq=(function(e){Bq(t,e);function t(n){var i=e.call(this)||this;return i.topProd=n,i.follows={},i}return o(t,"ResyncFollowsWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(n,i,r){},t.prototype.walkProdRef=function(n,i,r){var a=Gq(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new en({definition:s}),f=ol(l);this.follows[a]=f},t})(rl);o(rw,"computeAllProdsFollows");o(Gq,"buildBetweenProdsFollowPrefix")});var Wp,By,Hs,Kp=Je(()=>{Bs();bt();bt();ji();If();Wp={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=DP(t),s=a?"--> "+Jo(t)+" <--":"token of type --> "+t.name+" <--",l="Expecting "+s+" but found --> '"+n.image+"' <--";return l},"buildMismatchTokenMessage"),buildNotAllInputParsedMessage:o(function(e){var t=e.firstRedundant,n=e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},"buildNotAllInputParsedMessage"),buildNoViableAltMessage:o(function(e){var t=e.expectedPathsPerAlt,n=e.actual,i=e.previous,r=e.customUserDescription,a=e.ruleName,s="Expecting: ",l=xi(n).image,f=`
135
135
  but found: '`+l+"'";if(r)return s+r+f;var p=dn(t,function(E,b){return E.concat(b)},[]),d=pe(p,function(E){return"["+pe(E,function(b){return Jo(b)}).join(", ")+"]"}),m=pe(d,function(E,b){return" "+(b+1)+". "+E}),v=`one of these possible Token sequences:
136
136
  `+m.join(`
137
137
  `);return s+v+f},"buildNoViableAltMessage"),buildEarlyExitMessage:o(function(e){var t=e.expectedIterationPaths,n=e.actual,i=e.customUserDescription,r=e.ruleName,a="Expecting: ",s=xi(n).image,l=`
@@ -161,7 +161,7 @@ This could lead to an infinite loop.`;return n},"buildEmptyRepetitionError"),bui
161
161
  `)+(`without consuming any Tokens. The grammar path that causes this is:
162
162
  `+i+`
163
163
  `)+` To fix this refactor your grammar to remove the left recursion.
164
- see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return r},"buildLeftRecursionError"),buildInvalidRuleNameError:o(function(e){return"deprecated"},"buildInvalidRuleNameError"),buildDuplicateRuleNameError:o(function(e){var t;e.topLevelRule instanceof xr?t=e.topLevelRule.name:t=e.topLevelRule;var n="Duplicate definition, rule: ->"+t+"<- is already defined in the grammar: ->"+e.grammarName+"<-";return n},"buildDuplicateRuleNameError")}});function aw(e,t){var n=new Kq(e,t);return n.resolveRefs(),n.errors}var Wq,Kq,sw=Je(()=>{Ir();bt();xf();Wq=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();o(aw,"resolveGrammar");Kq=(function(e){Wq(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return o(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;ye(Un(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Qn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t})(to)});function Gy(e,t,n){n===void 0&&(n=[]),n=Pn(n);var i=[],r=0;function a(p){return p.concat($n(e,r+1))}o(a,"remainingPathWith");function s(p){var d=Gy(a(p),t,n);return i.concat(d)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof en)return s(l.definition);if(l instanceof sn)return s(l.definition);if(l instanceof cn)i=s(l.definition);else if(l instanceof _n){var f=l.definition.concat([new Lt({definition:l.definition})]);return s(f)}else if(l instanceof Vn){var f=[new en({definition:l.definition}),new Lt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})];return s(f)}else if(l instanceof xn){var f=l.definition.concat([new Lt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})]);i=s(f)}else if(l instanceof Lt){var f=l.definition.concat([new Lt({definition:l.definition})]);i=s(f)}else{if(l instanceof Cn)return ye(l.definition,function(p){ct(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof ht)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:$n(e,r)}),i}function Wy(e,t,n,i){var r="EXIT_NONE_TERMINAL",a=[r],s="EXIT_ALTERNATIVE",l=!1,f=t.length,p=f-i-1,d=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!ct(m);){var v=m.pop();if(v===s){l&&Sy(m).idx<=p&&m.pop();continue}var E=v.def,b=v.idx,I=v.ruleStack,N=v.occurrenceStack;if(!ct(E)){var j=E[0];if(j===r){var G={idx:b,def:$n(E),ruleStack:ks(I),occurrenceStack:ks(N)};m.push(G)}else if(j instanceof ht)if(b<f-1){var $=b+1,se=t[$];if(n(se,j.terminalType)){var G={idx:$,def:$n(E),ruleStack:I,occurrenceStack:N};m.push(G)}}else if(b===f-1)d.push({nextTokenType:j.terminalType,nextTokenOccurrence:j.idx,ruleStack:I,occurrenceStack:N}),l=!0;else throw Error("non exhaustive match");else if(j instanceof sn){var ee=Pn(I);ee.push(j.nonTerminalName);var le=Pn(N);le.push(j.idx);var G={idx:b,def:j.definition.concat(a,$n(E)),ruleStack:ee,occurrenceStack:le};m.push(G)}else if(j instanceof cn){var Le={idx:b,def:$n(E),ruleStack:I,occurrenceStack:N};m.push(Le),m.push(s);var D={idx:b,def:j.definition.concat($n(E)),ruleStack:I,occurrenceStack:N};m.push(D)}else if(j instanceof _n){var Ue=new Lt({definition:j.definition,idx:j.idx}),$e=j.definition.concat([Ue],$n(E)),G={idx:b,def:$e,ruleStack:I,occurrenceStack:N};m.push(G)}else if(j instanceof Vn){var qe=new ht({terminalType:j.separator}),Ue=new Lt({definition:[qe].concat(j.definition),idx:j.idx}),$e=j.definition.concat([Ue],$n(E)),G={idx:b,def:$e,ruleStack:I,occurrenceStack:N};m.push(G)}else if(j instanceof xn){var Le={idx:b,def:$n(E),ruleStack:I,occurrenceStack:N};m.push(Le),m.push(s);var qe=new ht({terminalType:j.separator}),nn=new Lt({definition:[qe].concat(j.definition),idx:j.idx}),$e=j.definition.concat([nn],$n(E)),D={idx:b,def:$e,ruleStack:I,occurrenceStack:N};m.push(D)}else if(j instanceof Lt){var Le={idx:b,def:$n(E),ruleStack:I,occurrenceStack:N};m.push(Le),m.push(s);var nn=new Lt({definition:j.definition,idx:j.idx}),$e=j.definition.concat([nn],$n(E)),D={idx:b,def:$e,ruleStack:I,occurrenceStack:N};m.push(D)}else if(j instanceof Cn)for(var $t=j.definition.length-1;$t>=0;$t--){var St=j.definition[$t],qt={idx:b,def:St.definition.concat($n(E)),ruleStack:I,occurrenceStack:N};m.push(qt),m.push(s)}else if(j instanceof en)m.push({idx:b,def:j.definition.concat($n(E)),ruleStack:I,occurrenceStack:N});else if(j instanceof xr)m.push(Qq(j,b,I,N));else throw Error("non exhaustive match")}}return d}function Qq(e,t,n,i){var r=Pn(n);r.push(e.name);var a=Pn(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var al,Xq,cw,Hy,lw,MP,fw,kP,Xp=Je(()=>{jy();bt();VP();ji();al=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),Xq=(function(e){al(t,e);function t(n,i){var r=e.call(this)||this;return r.topProd=n,r.path=i,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return o(t,"AbstractNextPossibleTokensWalker"),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=Pn(this.path.ruleStack).reverse(),this.occurrenceStack=Pn(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(n,i){i===void 0&&(i=[]),this.found||e.prototype.walk.call(this,n,i)},t.prototype.walkProdRef=function(n,i,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){var a=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,a)}},t.prototype.updateExpectedNext=function(){ct(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t})(rl),cw=(function(e){al(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new en({definition:a});this.possibleTokTypes=ol(s),this.found=!0}},t})(Xq),Hy=(function(e){al(t,e);function t(n,i){var r=e.call(this)||this;return r.topRule=n,r.occurrence=i,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return o(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t})(rl),lw=(function(e){al(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var a=xi(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkMany.call(this,n,i,r)},t})(Hy),MP=(function(e){al(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var a=xi(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t})(Hy),fw=(function(e){al(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var a=xi(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t})(Hy),kP=(function(e){al(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var a=xi(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t})(Hy);o(Gy,"possiblePathsFrom");o(Wy,"nextPossibleTokensAfter");o(Qq,"expandTopLevelRule")});function dw(e){if(e instanceof cn)return wt.OPTION;if(e instanceof Lt)return wt.REPETITION;if(e instanceof _n)return wt.REPETITION_MANDATORY;if(e instanceof Vn)return wt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof xn)return wt.REPETITION_WITH_SEPARATOR;if(e instanceof Cn)return wt.ALTERNATION;throw Error("non exhaustive match")}function gw(e,t,n,i,r,a){var s=Qp(e,t,n),l=Ew(s)?Sf:il;return a(s,i,l,r)}function mw(e,t,n,i,r,a){var s=qp(e,t,r,n),l=Ew(s)?Sf:il;return a(s[0],l,i)}function hw(e,t,n,i){var r=e.length,a=pi(e,function(f){return pi(f,function(p){return p.length===1})});if(t)return function(f){for(var p=pe(f,function($){return $.GATE}),d=0;d<r;d++){var m=e[d],v=m.length,E=p[d];if(!(E!==void 0&&E.call(this)===!1))e:for(var b=0;b<v;b++){for(var I=m[b],N=I.length,j=0;j<N;j++){var G=this.LA(j+1);if(n(G,I[j])===!1)continue e}return d}}};if(a&&!i){var s=pe(e,function(f){return Dn(f)}),l=dn(s,function(f,p,d){return ye(p,function(m){Pe(f,m.tokenTypeIdx)||(f[m.tokenTypeIdx]=d),ye(m.categoryMatches,function(v){Pe(f,v)||(f[v]=d)})}),f},[]);return function(){var f=this.LA(1);return l[f.tokenTypeIdx]}}else return function(){for(var f=0;f<r;f++){var p=e[f],d=p.length;e:for(var m=0;m<d;m++){for(var v=p[m],E=v.length,b=0;b<E;b++){var I=this.LA(b+1);if(n(I,v[b])===!1)continue e}return f}}}}function yw(e,t,n){var i=pi(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Dn(e);if(a.length===1&&ct(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var f=dn(a,function(p,d,m){return p[d.tokenTypeIdx]=!0,ye(d.categoryMatches,function(v){p[v]=!0}),p},[]);return function(){var p=this.LA(1);return f[p.tokenTypeIdx]===!0}}}else return function(){e:for(var p=0;p<r;p++){for(var d=e[p],m=d.length,v=0;v<m;v++){var E=this.LA(v+1);if(t(E,d[v])===!1)continue e}return!0}return!1}}function uw(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function jP(e){for(var t=[""],n=0;n<e.length;n++){for(var i=e[n],r=[],a=0;a<t.length;a++){var s=t[a];r.push(s+"_"+i.tokenTypeIdx);for(var l=0;l<i.categoryMatches.length;l++){var f="_"+i.categoryMatches[l];r.push(s+f)}}t=r}return t}function Yq(e,t,n){for(var i=0;i<e.length;i++)if(i!==n)for(var r=e[i],a=0;a<t.length;a++){var s=t[a];if(r[s]===!0)return!1}return!0}function vw(e,t){for(var n=pe(e,function(d){return Gy([d],1)}),i=uw(n.length),r=pe(n,function(d){var m={};return ye(d,function(v){var E=jP(v.partialPath);ye(E,function(b){m[b]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=uw(l.length);for(var f=o(function(d){for(var m=l[d],v=0;v<m.length;v++){var E=m[v].partialPath,b=m[v].suffixDef,I=jP(E),N=Yq(r,I,d);if(N||ct(b)||E.length===t){var j=i[d];if(Ky(j,E)===!1){j.push(E);for(var G=0;G<I.length;G++){var $=I[G];r[d][$]=!0}}}else{var se=Gy(b,s+1,E);a[d]=a[d].concat(se),ye(se,function(ee){var le=jP(ee.partialPath);ye(le,function(Le){r[d][Le]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)f(p)}return i}function Qp(e,t,n,i){var r=new Tw(e,wt.ALTERNATION,i);return t.accept(r),vw(r.result,n)}function qp(e,t,n,i){var r=new Tw(e,n);t.accept(r);var a=r.result,s=new qq(t,e,n),l=s.startWalking(),f=new en({definition:a}),p=new en({definition:l});return vw([f,p],i)}function Ky(e,t){e:for(var n=0;n<e.length;n++){var i=e[n];if(i.length===t.length){for(var r=0;r<i.length;r++){var a=t[r],s=i[r],l=a===s||s.categoryMatchesMap[a.tokenTypeIdx]!==void 0;if(l===!1)continue e}return!0}}return!1}function bw(e,t){return e.length<t.length&&pi(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function Ew(e){return pi(e,function(t){return pi(t,function(n){return pi(n,function(i){return ct(i.categoryMatches)})})})}var pw,wt,qq,Tw,Yp=Je(()=>{bt();Xp();jy();Af();ji();xf();pw=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(wt||(wt={}));o(dw,"getProdType");o(gw,"buildLookaheadFuncForOr");o(mw,"buildLookaheadFuncForOptionalProd");o(hw,"buildAlternativesLookAheadFunc");o(yw,"buildSingleAlternativeLookaheadFunction");qq=(function(e){pw(t,e);function t(n,i,r){var a=e.call(this)||this;return a.topProd=n,a.targetOccurrence=i,a.targetProdType=r,a}return o(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,a){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(a),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,wt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,wt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t})(rl),Tw=(function(e){pw(t,e);function t(n,i,r){var a=e.call(this)||this;return a.targetOccurrence=n,a.targetProdType=i,a.targetRef=r,a.result=[],a}return o(t,"InsideDefinitionFinderVisitor"),t.prototype.checkIsTarget=function(n,i){n.idx===this.targetOccurrence&&this.targetProdType===i&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)},t.prototype.visitOption=function(n){this.checkIsTarget(n,wt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,wt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,wt.ALTERNATION)},t})(to);o(uw,"initializeArrayOfArrays");o(jP,"pathToHashKeys");o(Yq,"isUniquePrefixHash");o(vw,"lookAheadSequenceFromAlternatives");o(Qp,"getLookaheadPathsForOr");o(qp,"getLookaheadPathsForOptionalProd");o(Ky,"containsPath");o(bw,"isStrictPrefixOfPath");o(Ew,"areTokenCategoriesNotUsed")});function Sw(e,t,n,i,r){var a=pe(e,function(E){return zq(E,i)}),s=pe(e,function(E){return xw(E,E,i)}),l=[],f=[],p=[];pi(s,ct)&&(l=pe(e,function(E){return tY(E,i)}),f=pe(e,function(E){return nY(E,t,i)}),p=oY(e,t,i));var d=cY(e,n,i),m=pe(e,function(E){return rY(E,i)}),v=pe(e,function(E){return eY(E,e,r,i)});return Dn(a.concat(p,s,l,f,d,m,v))}function zq(e,t){var n=new Zq;e.accept(n);var i=n.allProductions,r=h1(i,Jq),a=Ar(r,function(l){return l.length>1}),s=pe(Un(a),function(l){var f=xi(l),p=t.buildDuplicateFoundError(e,l),d=Cr(f),m={message:p,type:Qn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:d,occurrence:f.idx},v=Aw(f);return v&&(m.parameter=v),m});return s}function Jq(e){return Cr(e)+"_#_"+e.idx+"_#_"+Aw(e)}function Aw(e){return e instanceof ht?e.terminalType.name:e instanceof sn?e.nonTerminalName:""}function eY(e,t,n,i){var r=[],a=dn(t,function(l,f){return f.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Qn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function Pw(e,t,n){var i=[],r;return Vt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Qn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function xw(e,t,n,i){i===void 0&&(i=[]);var r=[],a=Xy(t.definition);if(ct(a))return[];var s=e.name,l=Vt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Qn.LEFT_RECURSION,ruleName:s});var f=nl(a,i.concat([e])),p=pe(f,function(d){var m=Pn(i);return m.push(d),xw(e,d,n,m)});return r.concat(Dn(p))}function Xy(e){var t=[];if(ct(e))return t;var n=xi(e);if(n instanceof sn)t.push(n.referencedRule);else if(n instanceof en||n instanceof cn||n instanceof _n||n instanceof Vn||n instanceof xn||n instanceof Lt)t=t.concat(Xy(n.definition));else if(n instanceof Cn)t=Dn(pe(n.definition,function(s){return Xy(s.definition)}));else if(!(n instanceof ht))throw Error("non exhaustive match");var i=Cf(n),r=e.length>1;if(i&&r){var a=$n(e);return t.concat(Xy(a))}else return t}function tY(e,t){var n=new $P;e.accept(n);var i=n.alternations,r=dn(i,function(a,s){var l=ks(s.definition),f=pe(l,function(p,d){var m=Wy([p],[],null,1);return ct(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:d}),type:Qn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:d+1}:null});return a.concat(Ua(f))},[]);return r}function nY(e,t,n){var i=new $P;e.accept(i);var r=i.alternations;r=ka(r,function(s){return s.ignoreAmbiguities===!0});var a=dn(r,function(s,l){var f=l.idx,p=l.maxLookahead||t,d=Qp(f,e,p,l),m=aY(d,l,e,n),v=sY(d,l,e,n);return s.concat(m,v)},[]);return a}function rY(e,t){var n=new $P;e.accept(n);var i=n.alternations,r=dn(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Qn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function oY(e,t,n){var i=[];return ye(e,function(r){var a=new iY;r.accept(a);var s=a.allProductions;ye(s,function(l){var f=dw(l),p=l.maxLookahead||t,d=l.idx,m=qp(d,r,f,p),v=m[0];if(ct(Dn(v))){var E=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:E,type:Qn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function aY(e,t,n,i){var r=[],a=dn(e,function(l,f,p){return t.definition[p].ignoreAmbiguities===!0||ye(f,function(d){var m=[p];ye(e,function(v,E){p!==E&&Ky(v,d)&&t.definition[E].ignoreAmbiguities!==!0&&m.push(E)}),m.length>1&&!Ky(r,d)&&(r.push(d),l.push({alts:m,path:d}))}),l},[]),s=pe(a,function(l){var f=pe(l.alts,function(d){return d+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:f,prefixPath:l.path});return{message:p,type:Qn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function sY(e,t,n,i){var r=[],a=dn(e,function(s,l,f){var p=pe(l,function(d){return{idx:f,path:d}});return s.concat(p)},[]);return ye(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var f=s.idx,p=s.path,d=g1(a,function(v){return t.definition[v.idx].ignoreAmbiguities!==!0&&v.idx<f&&bw(v.path,p)}),m=pe(d,function(v){var E=[v.idx+1,f+1],b=t.idx===0?"":t.idx,I=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:E,prefixPath:v.path});return{message:I,type:Qn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:b,alternatives:E}});r=r.concat(m)}}),r}function cY(e,t,n){var i=[],r=pe(t,function(a){return a.name});return ye(e,function(a){var s=a.name;if(Vt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Qn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var UP,Zq,$P,iY,BP=Je(()=>{bt();bt();Ir();If();Yp();Xp();ji();xf();UP=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();o(Sw,"validateGrammar");o(zq,"validateDuplicateProductions");o(Jq,"identifyProductionForDuplicates");o(Aw,"getExtraProductionArgument");Zq=(function(e){UP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"OccurrenceValidationCollector"),t.prototype.visitNonTerminal=function(n){this.allProductions.push(n)},t.prototype.visitOption=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t.prototype.visitAlternation=function(n){this.allProductions.push(n)},t.prototype.visitTerminal=function(n){this.allProductions.push(n)},t})(to);o(eY,"validateRuleDoesNotAlreadyExist");o(Pw,"validateRuleIsOverridden");o(xw,"validateNoLeftRecursion");o(Xy,"getFirstNoneTerminal");$P=(function(e){UP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return o(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t})(to);o(tY,"validateEmptyOrAlternative");o(nY,"validateAmbiguousAlternationAlternatives");iY=(function(e){UP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"RepetionCollector"),t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t})(to);o(rY,"validateTooManyAlts");o(oY,"validateSomeNonEmptyLookaheadPath");o(aY,"checkAlternativesAmbiguities");o(sY,"checkPrefixAlternativesAmbiguities");o(cY,"checkTerminalAndNoneTerminalsNameSpace")});function Qy(e){e=kp(e,{errMsgProvider:By});var t={};return ye(e.rules,function(n){t[n.name]=n}),aw(t,e.errMsgProvider)}function qy(e){return e=kp(e,{errMsgProvider:Hs}),Sw(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function Cw(e){ye(e.rules,function(t){var n=new _P;t.accept(n),ye(n.dslMethods,function(i){ye(i,function(r,a){r.idx=a+1})})})}var HP=Je(()=>{bt();sw();BP();Kp();If();o(Qy,"resolveGrammar");o(qy,"validateGrammar");o(Cw,"assignOccurrenceIndices")});function Ha(e){return Vt(Nw,e.name)}var zp,Iw,Ow,Rw,Lw,Nw,Yy,Of,zy,Jy,Zy,Rf=Je(()=>{bt();zp=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),Iw="MismatchedTokenException",Ow="NoViableAltException",Rw="EarlyExitException",Lw="NotAllInputParsedException",Nw=[Iw,Ow,Rw,Lw];Object.freeze(Nw);o(Ha,"isRecognitionException");Yy=(function(e){zp(t,e);function t(n,i){var r=this.constructor,a=e.call(this,n)||this;return a.token=i,a.resyncedTokens=[],Object.setPrototypeOf(a,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return o(t,"RecognitionException"),t})(Error),Of=(function(e){zp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=Iw,a}return o(t,"MismatchedTokenException"),t})(Yy),zy=(function(e){zp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=Ow,a}return o(t,"NoViableAltException"),t})(Yy),Jy=(function(e){zp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=Lw,r}return o(t,"NotAllInputParsedException"),t})(Yy),Zy=(function(e){zp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=Rw,a}return o(t,"EarlyExitException"),t})(Yy)});function Fw(e){this.name=WP,this.message=e}function lY(e,t,n,i,r,a,s){var l=this.getKeyForAutomaticLookahead(i,r),f=this.firstAfterRepMap[l];if(f===void 0){var p=this.getCurrRuleFullName(),d=this.getGAstProductions()[p],m=new a(d,r);f=m.startWalking(),this.firstAfterRepMap[l]=f}var v=f.token,E=f.occurrence,b=f.isEndOfRule;this.RULE_STACK.length===1&&b&&v===void 0&&(v=eo,E=1),this.shouldInRepetitionRecoveryBeTried(v,E,s)&&this.tryInRepetitionRecovery(e,t,n,v)}var GP,WP,Dw,KP=Je(()=>{Bs();bt();Rf();wP();Ir();GP={},WP="InRuleRecoveryException";o(Fw,"InRuleRecoveryException");Fw.prototype=Error.prototype;Dw=(function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Pe(t,"recoveryEnabled")?t.recoveryEnabled:ir.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=lY)},e.prototype.getTokenToInsert=function(t){var n=$s(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return n.isInsertedInRecovery=!0,n},e.prototype.canTokenTypeBeInsertedInRecovery=function(t){return!0},e.prototype.tryInRepetitionRecovery=function(t,n,i,r){for(var a=this,s=this.findReSyncTokenType(),l=this.exportLexerState(),f=[],p=!1,d=this.LA(1),m=this.LA(1),v=o(function(){var E=a.LA(0),b=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:d,previous:E,ruleName:a.getCurrRuleFullName()}),I=new Of(b,d,a.LA(0));I.resyncedTokens=ks(f),a.SAVE_ERROR(I)},"generateErrorMessage");!p;)if(this.tokenMatcher(m,r)){v();return}else if(i.call(this)){v(),t.apply(this,n);return}else this.tokenMatcher(m,s)?p=!0:(m=this.SKIP_TOKEN(),this.addToResyncTokens(m,f));this.importLexerState(l)},e.prototype.shouldInRepetitionRecoveryBeTried=function(t,n,i){return!(i===!1||t===void 0||n===void 0||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,n)))},e.prototype.getFollowsForInRuleRecovery=function(t,n){var i=this.getCurrentGrammarPath(t,n),r=this.getNextPossibleTokenTypes(i);return r},e.prototype.tryInRuleRecovery=function(t,n){if(this.canRecoverWithSingleTokenInsertion(t,n)){var i=this.getTokenToInsert(t);return i}if(this.canRecoverWithSingleTokenDeletion(t)){var r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new Fw("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(t,n){return this.canRecoverWithSingleTokenInsertion(t,n)||this.canRecoverWithSingleTokenDeletion(t)},e.prototype.canRecoverWithSingleTokenInsertion=function(t,n){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(t)||ct(n))return!1;var r=this.LA(1),a=ja(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return a},e.prototype.canRecoverWithSingleTokenDeletion=function(t){var n=this.tokenMatcher(this.LA(2),t);return n},e.prototype.isInCurrentRuleReSyncSet=function(t){var n=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(n);return Vt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Vt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return GP;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return pe(n,function(r,a){return a===0?GP:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=pe(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return Dn(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===GP)return[eo];var n=t.ruleName+t.idxInCallingRule+$y+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,eo)||n.push(t),n},e.prototype.reSyncTo=function(t){for(var n=[],i=this.LA(1);this.tokenMatcher(i,t)===!1;)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,n);return ks(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=Pn(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return pe(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e})();o(lY,"attemptInRepetitionRecovery")});function nT(e,t,n){return n|t|e}var _w,Zo,fY,eT,tT,Jp,Zp,ed,Lf,Jue,iT=Je(()=>{_w=4,Zo=8,fY=8,eT=1<<Zo,tT=2<<Zo,Jp=3<<Zo,Zp=4<<Zo,ed=5<<Zo,Lf=6<<Zo;o(nT,"getKeyForAutomaticLookahead");Jue=32-fY});var Vw,ww=Je(()=>{Yp();bt();Ir();iT();If();Vw=(function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Pe(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:ir.dynamicTokensEnabled,this.maxLookahead=Pe(t,"maxLookahead")?t.maxLookahead:ir.maxLookahead,this.lookAheadFuncsCache=PP()?new Map:[],PP()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;ye(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=iw(i),a=r.alternation,s=r.repetition,l=r.option,f=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,d=r.repetitionWithSeparator;ye(a,function(m){var v=m.idx===0?"":m.idx;n.TRACE_INIT(""+Cr(m)+v,function(){var E=gw(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),b=nT(n.fullRuleNameToShort[i.name],eT,m.idx);n.setLaFuncCache(b,E)})}),ye(s,function(m){n.computeLookaheadFunc(i,m.idx,Jp,wt.REPETITION,m.maxLookahead,Cr(m))}),ye(l,function(m){n.computeLookaheadFunc(i,m.idx,tT,wt.OPTION,m.maxLookahead,Cr(m))}),ye(f,function(m){n.computeLookaheadFunc(i,m.idx,Zp,wt.REPETITION_MANDATORY,m.maxLookahead,Cr(m))}),ye(p,function(m){n.computeLookaheadFunc(i,m.idx,Lf,wt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,Cr(m))}),ye(d,function(m){n.computeLookaheadFunc(i,m.idx,ed,wt.REPETITION_WITH_SEPARATOR,m.maxLookahead,Cr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var f=mw(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=nT(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,f)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return yw(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return hw(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return nT(i,t,n)},e.prototype.getLaFuncFromCache=function(t){},e.prototype.getLaFuncFromMap=function(t){return this.lookAheadFuncsCache.get(t)},e.prototype.getLaFuncFromObj=function(t){return this.lookAheadFuncsCache[t]},e.prototype.setLaFuncCache=function(t,n){},e.prototype.setLaFuncCacheUsingMap=function(t,n){this.lookAheadFuncsCache.set(t,n)},e.prototype.setLaFuncUsingObj=function(t,n){this.lookAheadFuncsCache[t]=n},e})()});function XP(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function QP(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function Mw(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function kw(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var jw=Je(()=>{o(XP,"setNodeLocationOnlyOffset");o(QP,"setNodeLocationFull");o(Mw,"addTerminalToCst");o(kw,"addNoneTerminalToCst")});function $w(e){return td(e.constructor)}function td(e){var t=e.name;return t||"anonymous"}function qP(e,t){var n=Object.getOwnPropertyDescriptor(e,Uw);return Ci(n)||n.configurable?(Object.defineProperty(e,Uw,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var Uw,YP=Je(()=>{bt();o($w,"classNameFromInstance");Uw="name";o(td,"functionName");o(qP,"defineNameProp")});function uY(e,t){for(var n=Mi(e),i=n.length,r=0;r<i;r++)for(var a=n[r],s=e[a],l=s.length,f=0;f<l;f++){var p=s[f];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function Bw(e,t){var n=o(function(){},"derivedConstructor");qP(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(ui(r)&&(r=r[0]),!Ci(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=pY(this,t);if(!ct(r)){var a=pe(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+td(this.constructor)+`>:
164
+ see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return r},"buildLeftRecursionError"),buildInvalidRuleNameError:o(function(e){return"deprecated"},"buildInvalidRuleNameError"),buildDuplicateRuleNameError:o(function(e){var t;e.topLevelRule instanceof xr?t=e.topLevelRule.name:t=e.topLevelRule;var n="Duplicate definition, rule: ->"+t+"<- is already defined in the grammar: ->"+e.grammarName+"<-";return n},"buildDuplicateRuleNameError")}});function aw(e,t){var n=new Kq(e,t);return n.resolveRefs(),n.errors}var Wq,Kq,sw=Je(()=>{Ir();bt();xf();Wq=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();o(aw,"resolveGrammar");Kq=(function(e){Wq(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return o(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;ye(Un(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Qn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t})(to)});function Gy(e,t,n){n===void 0&&(n=[]),n=Pn(n);var i=[],r=0;function a(p){return p.concat($n(e,r+1))}o(a,"remainingPathWith");function s(p){var d=Gy(a(p),t,n);return i.concat(d)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof en)return s(l.definition);if(l instanceof sn)return s(l.definition);if(l instanceof cn)i=s(l.definition);else if(l instanceof _n){var f=l.definition.concat([new Lt({definition:l.definition})]);return s(f)}else if(l instanceof Vn){var f=[new en({definition:l.definition}),new Lt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})];return s(f)}else if(l instanceof xn){var f=l.definition.concat([new Lt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})]);i=s(f)}else if(l instanceof Lt){var f=l.definition.concat([new Lt({definition:l.definition})]);i=s(f)}else{if(l instanceof Cn)return ye(l.definition,function(p){ct(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof ht)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:$n(e,r)}),i}function Wy(e,t,n,i){var r="EXIT_NONE_TERMINAL",a=[r],s="EXIT_ALTERNATIVE",l=!1,f=t.length,p=f-i-1,d=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!ct(m);){var v=m.pop();if(v===s){l&&Sy(m).idx<=p&&m.pop();continue}var E=v.def,b=v.idx,I=v.ruleStack,N=v.occurrenceStack;if(!ct(E)){var j=E[0];if(j===r){var G={idx:b,def:$n(E),ruleStack:ks(I),occurrenceStack:ks(N)};m.push(G)}else if(j instanceof ht)if(b<f-1){var $=b+1,se=t[$];if(n(se,j.terminalType)){var G={idx:$,def:$n(E),ruleStack:I,occurrenceStack:N};m.push(G)}}else if(b===f-1)d.push({nextTokenType:j.terminalType,nextTokenOccurrence:j.idx,ruleStack:I,occurrenceStack:N}),l=!0;else throw Error("non exhaustive match");else if(j instanceof sn){var ee=Pn(I);ee.push(j.nonTerminalName);var le=Pn(N);le.push(j.idx);var G={idx:b,def:j.definition.concat(a,$n(E)),ruleStack:ee,occurrenceStack:le};m.push(G)}else if(j instanceof cn){var Le={idx:b,def:$n(E),ruleStack:I,occurrenceStack:N};m.push(Le),m.push(s);var D={idx:b,def:j.definition.concat($n(E)),ruleStack:I,occurrenceStack:N};m.push(D)}else if(j instanceof _n){var Ue=new Lt({definition:j.definition,idx:j.idx}),$e=j.definition.concat([Ue],$n(E)),G={idx:b,def:$e,ruleStack:I,occurrenceStack:N};m.push(G)}else if(j instanceof Vn){var qe=new ht({terminalType:j.separator}),Ue=new Lt({definition:[qe].concat(j.definition),idx:j.idx}),$e=j.definition.concat([Ue],$n(E)),G={idx:b,def:$e,ruleStack:I,occurrenceStack:N};m.push(G)}else if(j instanceof xn){var Le={idx:b,def:$n(E),ruleStack:I,occurrenceStack:N};m.push(Le),m.push(s);var qe=new ht({terminalType:j.separator}),nn=new Lt({definition:[qe].concat(j.definition),idx:j.idx}),$e=j.definition.concat([nn],$n(E)),D={idx:b,def:$e,ruleStack:I,occurrenceStack:N};m.push(D)}else if(j instanceof Lt){var Le={idx:b,def:$n(E),ruleStack:I,occurrenceStack:N};m.push(Le),m.push(s);var nn=new Lt({definition:j.definition,idx:j.idx}),$e=j.definition.concat([nn],$n(E)),D={idx:b,def:$e,ruleStack:I,occurrenceStack:N};m.push(D)}else if(j instanceof Cn)for(var $t=j.definition.length-1;$t>=0;$t--){var St=j.definition[$t],qt={idx:b,def:St.definition.concat($n(E)),ruleStack:I,occurrenceStack:N};m.push(qt),m.push(s)}else if(j instanceof en)m.push({idx:b,def:j.definition.concat($n(E)),ruleStack:I,occurrenceStack:N});else if(j instanceof xr)m.push(Qq(j,b,I,N));else throw Error("non exhaustive match")}}return d}function Qq(e,t,n,i){var r=Pn(n);r.push(e.name);var a=Pn(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var al,Xq,cw,Hy,lw,MP,fw,kP,Xp=Je(()=>{jy();bt();VP();ji();al=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),Xq=(function(e){al(t,e);function t(n,i){var r=e.call(this)||this;return r.topProd=n,r.path=i,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return o(t,"AbstractNextPossibleTokensWalker"),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=Pn(this.path.ruleStack).reverse(),this.occurrenceStack=Pn(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(n,i){i===void 0&&(i=[]),this.found||e.prototype.walk.call(this,n,i)},t.prototype.walkProdRef=function(n,i,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){var a=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,a)}},t.prototype.updateExpectedNext=function(){ct(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t})(rl),cw=(function(e){al(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new en({definition:a});this.possibleTokTypes=ol(s),this.found=!0}},t})(Xq),Hy=(function(e){al(t,e);function t(n,i){var r=e.call(this)||this;return r.topRule=n,r.occurrence=i,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return o(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t})(rl),lw=(function(e){al(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var a=xi(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkMany.call(this,n,i,r)},t})(Hy),MP=(function(e){al(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var a=xi(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t})(Hy),fw=(function(e){al(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var a=xi(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t})(Hy),kP=(function(e){al(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var a=xi(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t})(Hy);o(Gy,"possiblePathsFrom");o(Wy,"nextPossibleTokensAfter");o(Qq,"expandTopLevelRule")});function dw(e){if(e instanceof cn)return wt.OPTION;if(e instanceof Lt)return wt.REPETITION;if(e instanceof _n)return wt.REPETITION_MANDATORY;if(e instanceof Vn)return wt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof xn)return wt.REPETITION_WITH_SEPARATOR;if(e instanceof Cn)return wt.ALTERNATION;throw Error("non exhaustive match")}function gw(e,t,n,i,r,a){var s=Qp(e,t,n),l=Ew(s)?Sf:il;return a(s,i,l,r)}function mw(e,t,n,i,r,a){var s=qp(e,t,r,n),l=Ew(s)?Sf:il;return a(s[0],l,i)}function hw(e,t,n,i){var r=e.length,a=pi(e,function(f){return pi(f,function(p){return p.length===1})});if(t)return function(f){for(var p=pe(f,function($){return $.GATE}),d=0;d<r;d++){var m=e[d],v=m.length,E=p[d];if(!(E!==void 0&&E.call(this)===!1))e:for(var b=0;b<v;b++){for(var I=m[b],N=I.length,j=0;j<N;j++){var G=this.LA(j+1);if(n(G,I[j])===!1)continue e}return d}}};if(a&&!i){var s=pe(e,function(f){return Dn(f)}),l=dn(s,function(f,p,d){return ye(p,function(m){Pe(f,m.tokenTypeIdx)||(f[m.tokenTypeIdx]=d),ye(m.categoryMatches,function(v){Pe(f,v)||(f[v]=d)})}),f},[]);return function(){var f=this.LA(1);return l[f.tokenTypeIdx]}}else return function(){for(var f=0;f<r;f++){var p=e[f],d=p.length;e:for(var m=0;m<d;m++){for(var v=p[m],E=v.length,b=0;b<E;b++){var I=this.LA(b+1);if(n(I,v[b])===!1)continue e}return f}}}}function yw(e,t,n){var i=pi(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Dn(e);if(a.length===1&&ct(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var f=dn(a,function(p,d,m){return p[d.tokenTypeIdx]=!0,ye(d.categoryMatches,function(v){p[v]=!0}),p},[]);return function(){var p=this.LA(1);return f[p.tokenTypeIdx]===!0}}}else return function(){e:for(var p=0;p<r;p++){for(var d=e[p],m=d.length,v=0;v<m;v++){var E=this.LA(v+1);if(t(E,d[v])===!1)continue e}return!0}return!1}}function uw(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function jP(e){for(var t=[""],n=0;n<e.length;n++){for(var i=e[n],r=[],a=0;a<t.length;a++){var s=t[a];r.push(s+"_"+i.tokenTypeIdx);for(var l=0;l<i.categoryMatches.length;l++){var f="_"+i.categoryMatches[l];r.push(s+f)}}t=r}return t}function Yq(e,t,n){for(var i=0;i<e.length;i++)if(i!==n)for(var r=e[i],a=0;a<t.length;a++){var s=t[a];if(r[s]===!0)return!1}return!0}function vw(e,t){for(var n=pe(e,function(d){return Gy([d],1)}),i=uw(n.length),r=pe(n,function(d){var m={};return ye(d,function(v){var E=jP(v.partialPath);ye(E,function(b){m[b]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=uw(l.length);for(var f=o(function(d){for(var m=l[d],v=0;v<m.length;v++){var E=m[v].partialPath,b=m[v].suffixDef,I=jP(E),N=Yq(r,I,d);if(N||ct(b)||E.length===t){var j=i[d];if(Ky(j,E)===!1){j.push(E);for(var G=0;G<I.length;G++){var $=I[G];r[d][$]=!0}}}else{var se=Gy(b,s+1,E);a[d]=a[d].concat(se),ye(se,function(ee){var le=jP(ee.partialPath);ye(le,function(Le){r[d][Le]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)f(p)}return i}function Qp(e,t,n,i){var r=new Tw(e,wt.ALTERNATION,i);return t.accept(r),vw(r.result,n)}function qp(e,t,n,i){var r=new Tw(e,n);t.accept(r);var a=r.result,s=new qq(t,e,n),l=s.startWalking(),f=new en({definition:a}),p=new en({definition:l});return vw([f,p],i)}function Ky(e,t){e:for(var n=0;n<e.length;n++){var i=e[n];if(i.length===t.length){for(var r=0;r<i.length;r++){var a=t[r],s=i[r],l=a===s||s.categoryMatchesMap[a.tokenTypeIdx]!==void 0;if(l===!1)continue e}return!0}}return!1}function bw(e,t){return e.length<t.length&&pi(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function Ew(e){return pi(e,function(t){return pi(t,function(n){return pi(n,function(i){return ct(i.categoryMatches)})})})}var pw,wt,qq,Tw,Yp=Je(()=>{bt();Xp();jy();Af();ji();xf();pw=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(wt||(wt={}));o(dw,"getProdType");o(gw,"buildLookaheadFuncForOr");o(mw,"buildLookaheadFuncForOptionalProd");o(hw,"buildAlternativesLookAheadFunc");o(yw,"buildSingleAlternativeLookaheadFunction");qq=(function(e){pw(t,e);function t(n,i,r){var a=e.call(this)||this;return a.topProd=n,a.targetOccurrence=i,a.targetProdType=r,a}return o(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,a){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(a),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,wt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,wt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t})(rl),Tw=(function(e){pw(t,e);function t(n,i,r){var a=e.call(this)||this;return a.targetOccurrence=n,a.targetProdType=i,a.targetRef=r,a.result=[],a}return o(t,"InsideDefinitionFinderVisitor"),t.prototype.checkIsTarget=function(n,i){n.idx===this.targetOccurrence&&this.targetProdType===i&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)},t.prototype.visitOption=function(n){this.checkIsTarget(n,wt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,wt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,wt.ALTERNATION)},t})(to);o(uw,"initializeArrayOfArrays");o(jP,"pathToHashKeys");o(Yq,"isUniquePrefixHash");o(vw,"lookAheadSequenceFromAlternatives");o(Qp,"getLookaheadPathsForOr");o(qp,"getLookaheadPathsForOptionalProd");o(Ky,"containsPath");o(bw,"isStrictPrefixOfPath");o(Ew,"areTokenCategoriesNotUsed")});function Sw(e,t,n,i,r){var a=pe(e,function(E){return zq(E,i)}),s=pe(e,function(E){return xw(E,E,i)}),l=[],f=[],p=[];pi(s,ct)&&(l=pe(e,function(E){return tY(E,i)}),f=pe(e,function(E){return nY(E,t,i)}),p=oY(e,t,i));var d=cY(e,n,i),m=pe(e,function(E){return rY(E,i)}),v=pe(e,function(E){return eY(E,e,r,i)});return Dn(a.concat(p,s,l,f,d,m,v))}function zq(e,t){var n=new Zq;e.accept(n);var i=n.allProductions,r=hV(i,Jq),a=Ar(r,function(l){return l.length>1}),s=pe(Un(a),function(l){var f=xi(l),p=t.buildDuplicateFoundError(e,l),d=Cr(f),m={message:p,type:Qn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:d,occurrence:f.idx},v=Aw(f);return v&&(m.parameter=v),m});return s}function Jq(e){return Cr(e)+"_#_"+e.idx+"_#_"+Aw(e)}function Aw(e){return e instanceof ht?e.terminalType.name:e instanceof sn?e.nonTerminalName:""}function eY(e,t,n,i){var r=[],a=dn(t,function(l,f){return f.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Qn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function Pw(e,t,n){var i=[],r;return Vt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Qn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function xw(e,t,n,i){i===void 0&&(i=[]);var r=[],a=Xy(t.definition);if(ct(a))return[];var s=e.name,l=Vt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Qn.LEFT_RECURSION,ruleName:s});var f=nl(a,i.concat([e])),p=pe(f,function(d){var m=Pn(i);return m.push(d),xw(e,d,n,m)});return r.concat(Dn(p))}function Xy(e){var t=[];if(ct(e))return t;var n=xi(e);if(n instanceof sn)t.push(n.referencedRule);else if(n instanceof en||n instanceof cn||n instanceof _n||n instanceof Vn||n instanceof xn||n instanceof Lt)t=t.concat(Xy(n.definition));else if(n instanceof Cn)t=Dn(pe(n.definition,function(s){return Xy(s.definition)}));else if(!(n instanceof ht))throw Error("non exhaustive match");var i=Cf(n),r=e.length>1;if(i&&r){var a=$n(e);return t.concat(Xy(a))}else return t}function tY(e,t){var n=new $P;e.accept(n);var i=n.alternations,r=dn(i,function(a,s){var l=ks(s.definition),f=pe(l,function(p,d){var m=Wy([p],[],null,1);return ct(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:d}),type:Qn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:d+1}:null});return a.concat(Ua(f))},[]);return r}function nY(e,t,n){var i=new $P;e.accept(i);var r=i.alternations;r=ka(r,function(s){return s.ignoreAmbiguities===!0});var a=dn(r,function(s,l){var f=l.idx,p=l.maxLookahead||t,d=Qp(f,e,p,l),m=aY(d,l,e,n),v=sY(d,l,e,n);return s.concat(m,v)},[]);return a}function rY(e,t){var n=new $P;e.accept(n);var i=n.alternations,r=dn(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Qn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function oY(e,t,n){var i=[];return ye(e,function(r){var a=new iY;r.accept(a);var s=a.allProductions;ye(s,function(l){var f=dw(l),p=l.maxLookahead||t,d=l.idx,m=qp(d,r,f,p),v=m[0];if(ct(Dn(v))){var E=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:E,type:Qn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function aY(e,t,n,i){var r=[],a=dn(e,function(l,f,p){return t.definition[p].ignoreAmbiguities===!0||ye(f,function(d){var m=[p];ye(e,function(v,E){p!==E&&Ky(v,d)&&t.definition[E].ignoreAmbiguities!==!0&&m.push(E)}),m.length>1&&!Ky(r,d)&&(r.push(d),l.push({alts:m,path:d}))}),l},[]),s=pe(a,function(l){var f=pe(l.alts,function(d){return d+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:f,prefixPath:l.path});return{message:p,type:Qn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function sY(e,t,n,i){var r=[],a=dn(e,function(s,l,f){var p=pe(l,function(d){return{idx:f,path:d}});return s.concat(p)},[]);return ye(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var f=s.idx,p=s.path,d=gV(a,function(v){return t.definition[v.idx].ignoreAmbiguities!==!0&&v.idx<f&&bw(v.path,p)}),m=pe(d,function(v){var E=[v.idx+1,f+1],b=t.idx===0?"":t.idx,I=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:E,prefixPath:v.path});return{message:I,type:Qn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:b,alternatives:E}});r=r.concat(m)}}),r}function cY(e,t,n){var i=[],r=pe(t,function(a){return a.name});return ye(e,function(a){var s=a.name;if(Vt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Qn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var UP,Zq,$P,iY,BP=Je(()=>{bt();bt();Ir();If();Yp();Xp();ji();xf();UP=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})();o(Sw,"validateGrammar");o(zq,"validateDuplicateProductions");o(Jq,"identifyProductionForDuplicates");o(Aw,"getExtraProductionArgument");Zq=(function(e){UP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"OccurrenceValidationCollector"),t.prototype.visitNonTerminal=function(n){this.allProductions.push(n)},t.prototype.visitOption=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t.prototype.visitAlternation=function(n){this.allProductions.push(n)},t.prototype.visitTerminal=function(n){this.allProductions.push(n)},t})(to);o(eY,"validateRuleDoesNotAlreadyExist");o(Pw,"validateRuleIsOverridden");o(xw,"validateNoLeftRecursion");o(Xy,"getFirstNoneTerminal");$P=(function(e){UP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return o(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t})(to);o(tY,"validateEmptyOrAlternative");o(nY,"validateAmbiguousAlternationAlternatives");iY=(function(e){UP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"RepetionCollector"),t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t})(to);o(rY,"validateTooManyAlts");o(oY,"validateSomeNonEmptyLookaheadPath");o(aY,"checkAlternativesAmbiguities");o(sY,"checkPrefixAlternativesAmbiguities");o(cY,"checkTerminalAndNoneTerminalsNameSpace")});function Qy(e){e=kp(e,{errMsgProvider:By});var t={};return ye(e.rules,function(n){t[n.name]=n}),aw(t,e.errMsgProvider)}function qy(e){return e=kp(e,{errMsgProvider:Hs}),Sw(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function Cw(e){ye(e.rules,function(t){var n=new _P;t.accept(n),ye(n.dslMethods,function(i){ye(i,function(r,a){r.idx=a+1})})})}var HP=Je(()=>{bt();sw();BP();Kp();If();o(Qy,"resolveGrammar");o(qy,"validateGrammar");o(Cw,"assignOccurrenceIndices")});function Ha(e){return Vt(Nw,e.name)}var zp,Iw,Ow,Rw,Lw,Nw,Yy,Of,zy,Jy,Zy,Rf=Je(()=>{bt();zp=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),Iw="MismatchedTokenException",Ow="NoViableAltException",Rw="EarlyExitException",Lw="NotAllInputParsedException",Nw=[Iw,Ow,Rw,Lw];Object.freeze(Nw);o(Ha,"isRecognitionException");Yy=(function(e){zp(t,e);function t(n,i){var r=this.constructor,a=e.call(this,n)||this;return a.token=i,a.resyncedTokens=[],Object.setPrototypeOf(a,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return o(t,"RecognitionException"),t})(Error),Of=(function(e){zp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=Iw,a}return o(t,"MismatchedTokenException"),t})(Yy),zy=(function(e){zp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=Ow,a}return o(t,"NoViableAltException"),t})(Yy),Jy=(function(e){zp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=Lw,r}return o(t,"NotAllInputParsedException"),t})(Yy),Zy=(function(e){zp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=Rw,a}return o(t,"EarlyExitException"),t})(Yy)});function Fw(e){this.name=WP,this.message=e}function lY(e,t,n,i,r,a,s){var l=this.getKeyForAutomaticLookahead(i,r),f=this.firstAfterRepMap[l];if(f===void 0){var p=this.getCurrRuleFullName(),d=this.getGAstProductions()[p],m=new a(d,r);f=m.startWalking(),this.firstAfterRepMap[l]=f}var v=f.token,E=f.occurrence,b=f.isEndOfRule;this.RULE_STACK.length===1&&b&&v===void 0&&(v=eo,E=1),this.shouldInRepetitionRecoveryBeTried(v,E,s)&&this.tryInRepetitionRecovery(e,t,n,v)}var GP,WP,Dw,KP=Je(()=>{Bs();bt();Rf();wP();Ir();GP={},WP="InRuleRecoveryException";o(Fw,"InRuleRecoveryException");Fw.prototype=Error.prototype;Dw=(function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Pe(t,"recoveryEnabled")?t.recoveryEnabled:ir.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=lY)},e.prototype.getTokenToInsert=function(t){var n=$s(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return n.isInsertedInRecovery=!0,n},e.prototype.canTokenTypeBeInsertedInRecovery=function(t){return!0},e.prototype.tryInRepetitionRecovery=function(t,n,i,r){for(var a=this,s=this.findReSyncTokenType(),l=this.exportLexerState(),f=[],p=!1,d=this.LA(1),m=this.LA(1),v=o(function(){var E=a.LA(0),b=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:d,previous:E,ruleName:a.getCurrRuleFullName()}),I=new Of(b,d,a.LA(0));I.resyncedTokens=ks(f),a.SAVE_ERROR(I)},"generateErrorMessage");!p;)if(this.tokenMatcher(m,r)){v();return}else if(i.call(this)){v(),t.apply(this,n);return}else this.tokenMatcher(m,s)?p=!0:(m=this.SKIP_TOKEN(),this.addToResyncTokens(m,f));this.importLexerState(l)},e.prototype.shouldInRepetitionRecoveryBeTried=function(t,n,i){return!(i===!1||t===void 0||n===void 0||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,n)))},e.prototype.getFollowsForInRuleRecovery=function(t,n){var i=this.getCurrentGrammarPath(t,n),r=this.getNextPossibleTokenTypes(i);return r},e.prototype.tryInRuleRecovery=function(t,n){if(this.canRecoverWithSingleTokenInsertion(t,n)){var i=this.getTokenToInsert(t);return i}if(this.canRecoverWithSingleTokenDeletion(t)){var r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new Fw("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(t,n){return this.canRecoverWithSingleTokenInsertion(t,n)||this.canRecoverWithSingleTokenDeletion(t)},e.prototype.canRecoverWithSingleTokenInsertion=function(t,n){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(t)||ct(n))return!1;var r=this.LA(1),a=ja(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return a},e.prototype.canRecoverWithSingleTokenDeletion=function(t){var n=this.tokenMatcher(this.LA(2),t);return n},e.prototype.isInCurrentRuleReSyncSet=function(t){var n=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(n);return Vt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Vt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return GP;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return pe(n,function(r,a){return a===0?GP:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=pe(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return Dn(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===GP)return[eo];var n=t.ruleName+t.idxInCallingRule+$y+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,eo)||n.push(t),n},e.prototype.reSyncTo=function(t){for(var n=[],i=this.LA(1);this.tokenMatcher(i,t)===!1;)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,n);return ks(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=Pn(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return pe(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e})();o(lY,"attemptInRepetitionRecovery")});function nT(e,t,n){return n|t|e}var _w,Zo,fY,eT,tT,Jp,Zp,ed,Lf,Jue,iT=Je(()=>{_w=4,Zo=8,fY=8,eT=1<<Zo,tT=2<<Zo,Jp=3<<Zo,Zp=4<<Zo,ed=5<<Zo,Lf=6<<Zo;o(nT,"getKeyForAutomaticLookahead");Jue=32-fY});var Vw,ww=Je(()=>{Yp();bt();Ir();iT();If();Vw=(function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Pe(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:ir.dynamicTokensEnabled,this.maxLookahead=Pe(t,"maxLookahead")?t.maxLookahead:ir.maxLookahead,this.lookAheadFuncsCache=PP()?new Map:[],PP()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;ye(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=iw(i),a=r.alternation,s=r.repetition,l=r.option,f=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,d=r.repetitionWithSeparator;ye(a,function(m){var v=m.idx===0?"":m.idx;n.TRACE_INIT(""+Cr(m)+v,function(){var E=gw(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),b=nT(n.fullRuleNameToShort[i.name],eT,m.idx);n.setLaFuncCache(b,E)})}),ye(s,function(m){n.computeLookaheadFunc(i,m.idx,Jp,wt.REPETITION,m.maxLookahead,Cr(m))}),ye(l,function(m){n.computeLookaheadFunc(i,m.idx,tT,wt.OPTION,m.maxLookahead,Cr(m))}),ye(f,function(m){n.computeLookaheadFunc(i,m.idx,Zp,wt.REPETITION_MANDATORY,m.maxLookahead,Cr(m))}),ye(p,function(m){n.computeLookaheadFunc(i,m.idx,Lf,wt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,Cr(m))}),ye(d,function(m){n.computeLookaheadFunc(i,m.idx,ed,wt.REPETITION_WITH_SEPARATOR,m.maxLookahead,Cr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var f=mw(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=nT(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,f)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return yw(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return hw(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return nT(i,t,n)},e.prototype.getLaFuncFromCache=function(t){},e.prototype.getLaFuncFromMap=function(t){return this.lookAheadFuncsCache.get(t)},e.prototype.getLaFuncFromObj=function(t){return this.lookAheadFuncsCache[t]},e.prototype.setLaFuncCache=function(t,n){},e.prototype.setLaFuncCacheUsingMap=function(t,n){this.lookAheadFuncsCache.set(t,n)},e.prototype.setLaFuncUsingObj=function(t,n){this.lookAheadFuncsCache[t]=n},e})()});function XP(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function QP(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function Mw(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function kw(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var jw=Je(()=>{o(XP,"setNodeLocationOnlyOffset");o(QP,"setNodeLocationFull");o(Mw,"addTerminalToCst");o(kw,"addNoneTerminalToCst")});function $w(e){return td(e.constructor)}function td(e){var t=e.name;return t||"anonymous"}function qP(e,t){var n=Object.getOwnPropertyDescriptor(e,Uw);return Ci(n)||n.configurable?(Object.defineProperty(e,Uw,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var Uw,YP=Je(()=>{bt();o($w,"classNameFromInstance");Uw="name";o(td,"functionName");o(qP,"defineNameProp")});function uY(e,t){for(var n=Mi(e),i=n.length,r=0;r<i;r++)for(var a=n[r],s=e[a],l=s.length,f=0;f<l;f++){var p=s[f];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function Bw(e,t){var n=o(function(){},"derivedConstructor");qP(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(ui(r)&&(r=r[0]),!Ci(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=pY(this,t);if(!ct(r)){var a=pe(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+td(this.constructor)+`>:
165
165
  `+(""+a.join(`
166
166
 
167
167
  `).replace(/\n/g,`
@@ -173,7 +173,7 @@ There is no Grammar Rule corresponding to this method's name.
173
173
  Note that the first argument for the parser constructor
174
174
  is no longer a Token vector (since v4.0).`);if(typeof t[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
175
175
  See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0
176
- For Further details.`)}if(ui(t))this.tokensMap=dn(t,function(s,l){return s[l.name]=l,s},{});else if(Pe(t,"modes")&&pi(Dn(Un(t.modes)),H1)){var i=Dn(Un(t.modes)),r=Mp(i);this.tokensMap=dn(r,function(s,l){return s[l.name]=l,s},{})}else if(Ay(t))this.tokensMap=js(t);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=eo;var a=pi(Un(t),function(s){return ct(s.categoryMatches)});this.tokenMatcher=a?Sf:il,$a(Un(this.tokensMap))},e.prototype.defineRule=function(t,n,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+t+`> may not be defined after the 'performSelfAnalysis' method has been called'
176
+ For Further details.`)}if(ui(t))this.tokensMap=dn(t,function(s,l){return s[l.name]=l,s},{});else if(Pe(t,"modes")&&pi(Dn(Un(t.modes)),HV)){var i=Dn(Un(t.modes)),r=Mp(i);this.tokensMap=dn(r,function(s,l){return s[l.name]=l,s},{})}else if(Ay(t))this.tokensMap=js(t);else throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=eo;var a=pi(Un(t),function(s){return ct(s.categoryMatches)});this.tokenMatcher=a?Sf:il,$a(Un(this.tokensMap))},e.prototype.defineRule=function(t,n,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+t+`> may not be defined after the 'performSelfAnalysis' method has been called'
177
177
  Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=Pe(i,"resyncEnabled")?i.resyncEnabled:Ff.resyncEnabled,a=Pe(i,"recoveryValueFunc")?i.recoveryValueFunc:Ff.recoveryValueFunc,s=this.ruleShortNameIdx<<_w+Zo;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=t,this.fullRuleNameToShort[t]=s;function l(d){try{if(this.outputCst===!0){n.apply(this,d);var m=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(m),m}else return n.apply(this,d)}catch(v){return this.invokeRuleCatch(v,r,a)}finally{this.ruleFinallyStateUpdate()}}o(l,"invokeRuleWithTry");var f;f=o(function(d,m){return d===void 0&&(d=0),this.ruleInvocationStateUpdate(s,t,d),l.call(this,m)},"wrappedGrammarRule");var p="ruleName";return f[p]=t,f.originalGrammarAction=n,f},e.prototype.invokeRuleCatch=function(t,n,i){var r=this.RULE_STACK.length===1,a=n&&!this.isBackTracking()&&this.recoveryEnabled;if(Ha(t)){var s=t;if(a){var l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))if(s.resyncedTokens=this.reSyncTo(l),this.outputCst){var f=this.CST_STACK[this.CST_STACK.length-1];return f.recoveredNode=!0,f}else return i();else{if(this.outputCst){var f=this.CST_STACK[this.CST_STACK.length-1];f.recoveredNode=!0,s.partialCstResult=f}throw s}}else{if(r)return this.moveToTerminatedState(),i();throw s}}else throw t},e.prototype.optionInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(tT,n);return this.optionInternalLogic(t,n,i)},e.prototype.optionInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(t.DEF!==void 0){if(s=t.DEF,l=t.GATE,l!==void 0){var f=a;a=o(function(){return l.call(r)&&f.call(r)},"lookAheadFunc")}}else s=t;if(a.call(this)===!0)return s.call(this)},e.prototype.atLeastOneInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Zp,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var f=a;a=o(function(){return l.call(r)&&f.call(r)},"lookAheadFunc")}}else s=n;if(a.call(this)===!0)for(var p=this.doSingleRepetition(s);a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,Zp,t,fw)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Lf,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var f=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,f,a,kP],f,Lf,t,kP)}else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Jp,t);return this.manyInternalLogic(t,n,i)},e.prototype.manyInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var f=a;a=o(function(){return l.call(r)&&f.call(r)},"lookaheadFunction")}}else s=n;for(var p=!0;a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);this.attemptInRepetitionRecovery(this.manyInternal,[t,n],a,Jp,t,lw,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(ed,t);this.manySepFirstInternalLogic(t,n,i)},e.prototype.manySepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var f=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,f,a,MP],f,ed,t,MP)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,a){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,a],i,Lf,t,a)},e.prototype.doSingleRepetition=function(t){var n=this.getLexerPosition();t.call(this);var i=this.getLexerPosition();return i>n},e.prototype.orInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(eT,n),r=ui(t)?t:t.DEF,a=this.getLaFuncFromCache(i),s=a.call(this,r);if(s!==void 0){var l=r[s];return l.ALT.call(this)}this.raiseNoAltException(n,t.ERR_MSG)},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){var t=this.LA(1),n=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Jy(n,t))}},e.prototype.subruleInternal=function(t,n,i){var r;try{var a=i!==void 0?i.ARGS:void 0;return r=t.call(this,n,a),this.cstPostNonTerminal(r,i!==void 0&&i.LABEL!==void 0?i.LABEL:t.ruleName),r}catch(s){this.subruleInternalError(s,i,t.ruleName)}},e.prototype.subruleInternalError=function(t,n,i){throw Ha(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,n!==void 0&&n.LABEL!==void 0?n.LABEL:i),delete t.partialCstResult),t},e.prototype.consumeInternal=function(t,n,i){var r;try{var a=this.LA(1);this.tokenMatcher(a,t)===!0?(this.consumeToken(),r=a):this.consumeInternalError(t,a,i)}catch(s){r=this.consumeInternalRecovery(t,n,s)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:t.name,r),r},e.prototype.consumeInternalError=function(t,n,i){var r,a=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new Of(r,n,a))},e.prototype.consumeInternalRecovery=function(t,n,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){var r=this.getFollowsForInRuleRecovery(t,n);try{return this.tryInRuleRecovery(t,r)}catch(a){throw a.name===WP?i:a}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=Pn(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:n,CST_STACK:this.CST_STACK}},e.prototype.reloadRecogState=function(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(t,n,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(n,t)},e.prototype.isBackTracking=function(){return this.isBackTrackingStack.length!==0},e.prototype.getCurrRuleFullName=function(){var t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]},e.prototype.shortRuleNameToFullName=function(t){return this.shortRuleNameToFull[t]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),eo)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e})()});var Zw,eM=Je(()=>{Rf();bt();Yp();Ir();Zw=(function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Pe(t,"errorMessageProvider")?t.errorMessageProvider:ir.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(Ha(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:Pn(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:o(function(){return Pn(this._errors)},"get"),set:o(function(t){this._errors=t},"set"),enumerable:!1,configurable:!0}),e.prototype.raiseEarlyExitException=function(t,n,i){for(var r=this.getCurrRuleFullName(),a=this.getGAstProductions()[r],s=qp(t,a,n,this.maxLookahead),l=s[0],f=[],p=1;p<=this.maxLookahead;p++)f.push(this.LA(p));var d=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:l,actual:f,previous:this.LA(0),customUserDescription:i,ruleName:r});throw this.SAVE_ERROR(new Zy(d,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=Qp(t,r,this.maxLookahead),s=[],l=1;l<=this.maxLookahead;l++)s.push(this.LA(l));var f=this.LA(0),p=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:f,customUserDescription:n,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new zy(p,this.LA(1),f))},e})()});var tM,nM=Je(()=>{Xp();bt();tM=(function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Ci(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return Wy([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=xi(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new cw(r,t).startWalking();return a},e})()});function nd(e,t,n,i){i===void 0&&(i=!1),oT(n);var r=Up(this.recordingProdStack),a=Ao(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),Pe(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),r.definition.push(s),this.recordingProdStack.pop(),aT}function yY(e,t){var n=this;oT(t);var i=Up(this.recordingProdStack),r=ui(e)===!1,a=r===!1?e:e.DEF,s=new Cn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Pe(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=Py(a,function(f){return Ao(f.GATE)});return s.hasPredicates=l,i.definition.push(s),ye(a,function(f){var p=new en({definition:[]});s.definition.push(p),Pe(f,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=f.IGNORE_AMBIGUITIES:Pe(f,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),f.ALT.call(n),n.recordingProdStack.pop()}),aT}function oM(e){return e===0?"":""+e}function oT(e){if(e<0||e>rM){var t=new Error("Invalid DSL Method idx value: <"+e+`>
178
178
  `+("Idx value must be a none negative value smaller than "+(rM+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var aT,iM,rM,aM,sM,hY,cM,lM=Je(()=>{bt();ji();Bp();Af();Bs();Ir();iT();aT={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(aT);iM=!0,rM=Math.pow(2,Zo)-1,aM=Gp({name:"RECORDING_PHASE_TOKEN",pattern:ki.NA});$a([aM]);sM=$s(aM,`This IToken indicates the Parser is in Recording Phase
179
179
  See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(sM);hY={name:`This CSTNode indicates the Parser is in Recording Phase
@@ -187,7 +187,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
187
187
  For further details.`);this.skipValidations=Pe(n,"skipValidations")?n.skipValidations:ir.skipValidations}return o(e,"Parser"),e.performSelfAnalysis=function(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",function(){var n;t.selfAnalysisDone=!0;var i=t.className;t.TRACE_INIT("toFastProps",function(){Cy(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),ye(t.definedRulesNames,function(a){var s=t[a],l=s.originalGrammarAction,f=void 0;t.TRACE_INIT(a+" Rule",function(){f=t.topLevelRuleRecord(a,l)}),t.gastProductionsCache[a]=f})}finally{t.disableRecording()}});var r=[];if(t.TRACE_INIT("Grammar Resolving",function(){r=Qy({rules:Un(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(ct(r)&&t.skipValidations===!1){var a=qy({rules:Un(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Un(t.tokensMap),errMsgProvider:Hs,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,a)}}),ct(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var a=rw(Un(t.gastProductionsCache));t.resyncFollows=a}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(Un(t.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!ct(t.definitionErrors))throw n=pe(t.definitionErrors,function(a){return a.message}),new Error(`Parser Definition Errors detected:
188
188
  `+n.join(`
189
189
  -------------------------------
190
- `))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e})();T1(zP,[Dw,Vw,Ww,Xw,zw,qw,Zw,tM,cM,fM]);gM=(function(e){pM(t,e);function t(n,i){i===void 0&&(i=ir);var r=this,a=js(i);return a.outputCst=!0,r=e.call(this,n,a)||this,r}return o(t,"CstParser"),t})(zP),mM=(function(e){pM(t,e);function t(n,i){i===void 0&&(i=ir);var r=this,a=js(i);return a.outputCst=!1,r=e.call(this,n,a)||this,r}return o(t,"EmbeddedActionsParser"),t})(zP)});function hM(e,t){var n=t===void 0?{}:t,i=n.resourceBase,r=i===void 0?"https://unpkg.com/chevrotain@"+wp+"/diagrams/":i,a=n.css,s=a===void 0?"https://unpkg.com/chevrotain@"+wp+"/diagrams/diagrams.css":a,l=`
190
+ `))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e})();TV(zP,[Dw,Vw,Ww,Xw,zw,qw,Zw,tM,cM,fM]);gM=(function(e){pM(t,e);function t(n,i){i===void 0&&(i=ir);var r=this,a=js(i);return a.outputCst=!0,r=e.call(this,n,a)||this,r}return o(t,"CstParser"),t})(zP),mM=(function(e){pM(t,e);function t(n,i){i===void 0&&(i=ir);var r=this,a=js(i);return a.outputCst=!1,r=e.call(this,n,a)||this,r}return o(t,"EmbeddedActionsParser"),t})(zP)});function hM(e,t){var n=t===void 0?{}:t,i=n.resourceBase,r=i===void 0?"https://unpkg.com/chevrotain@"+wp+"/diagrams/":i,a=n.css,s=a===void 0?"https://unpkg.com/chevrotain@"+wp+"/diagrams/diagrams.css":a,l=`
191
191
  <!-- This is a generated file -->
192
192
  <!DOCTYPE html>
193
193
  <meta charset="utf-8">
@@ -262,7 +262,7 @@ function `+e.name+`(tokenVocabulary, config) {
262
262
  `+e.name+".prototype.constructor = "+e.name+`
263
263
  `;return t}function TY(e){var t=pe(e,function(n){return vY(n,1)});return t.join(`
264
264
  `)}function vY(e,t){var n=Ui(t,'$.RULE("'+e.name+'", function() {')+ni;return n+=sT(e.definition,t+1),n+=Ui(t+1,"})")+ni,n}function bY(e,t){var n=e.terminalType.name;return Ui(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+ni)}function EY(e,t){return Ui(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+ni)}function SY(e,t){var n=Ui(t,"$.OR"+e.idx+"([")+ni,i=pe(e.definition,function(r){return AY(r,t+1)});return n+=i.join(","+ni),n+=ni+Ui(t,"])"+ni),n}function AY(e,t){var n=Ui(t,"{")+ni;return n+=Ui(t+1,"ALT: function() {")+ni,n+=sT(e.definition,t+1),n+=Ui(t+1,"}")+ni,n+=Ui(t,"}"),n}function PY(e,t){if(e instanceof sn)return EY(e,t);if(e instanceof cn)return id("OPTION",e,t);if(e instanceof _n)return id("AT_LEAST_ONE",e,t);if(e instanceof Vn)return id("AT_LEAST_ONE_SEP",e,t);if(e instanceof xn)return id("MANY_SEP",e,t);if(e instanceof Lt)return id("MANY",e,t);if(e instanceof Cn)return SY(e,t);if(e instanceof ht)return bY(e,t);if(e instanceof en)return sT(e.definition,t);throw Error("non exhaustive match")}function id(e,t,n){var i=Ui(n,"$."+(e+t.idx)+"(");return t.separator?(i+="{"+ni,i+=Ui(n+1,"SEP: this.tokensMap."+t.separator.name)+","+ni,i+="DEF: "+TM(t.definition,n+2)+ni,i+=Ui(n,"}")+ni):i+=TM(t.definition,n+1),i+=Ui(n,")")+ni,i}function TM(e,t){var n="function() {"+ni;return n+=sT(e,t),n+=Ui(t,"}")+ni,n}function sT(e,t){var n="";return ye(e,function(i){n+=PY(i,t+1)}),n}function Ui(e,t){var n=Array(e*4+1).join(" ");return n+t}var ni,SM=Je(()=>{bt();ji();ni=`
265
- `;o(vM,"genUmdModule");o(bM,"genWrapperFunction");o(EM,"genClass");o(TY,"genAllRules");o(vY,"genRule");o(bY,"genTerminal");o(EY,"genNonTerminal");o(SY,"genAlternation");o(AY,"genSingleAlt");o(PY,"genProd");o(id,"genDSLRule");o(TM,"genDefFunction");o(sT,"genDefinition");o(Ui,"indent")});function AM(e){var t=bM({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(lT(),Gg(cT)))}}function PM(e){return vM({name:e.name,rules:e.rules})}var xM=Je(()=>{SM();o(AM,"generateParserFactory");o(PM,"generateParserModule")});var cT={};yc(cT,{Alternation:()=>Cn,Alternative:()=>en,CstParser:()=>gM,EMPTY_ALT:()=>dM,EOF:()=>eo,EarlyExitException:()=>Zy,EmbeddedActionsParser:()=>mM,GAstVisitor:()=>to,Lexer:()=>ki,LexerDefinitionErrorType:()=>gn,MismatchedTokenException:()=>Of,NoViableAltException:()=>zy,NonTerminal:()=>sn,NotAllInputParsedException:()=>Jy,Option:()=>cn,Parser:()=>CY,ParserDefinitionErrorType:()=>Qn,Repetition:()=>Lt,RepetitionMandatory:()=>_n,RepetitionMandatoryWithSeparator:()=>Vn,RepetitionWithSeparator:()=>xn,Rule:()=>xr,Terminal:()=>ht,VERSION:()=>wp,assignOccurrenceIndices:()=>Cw,clearCache:()=>xY,createSyntaxDiagramsCode:()=>hM,createToken:()=>Gp,createTokenInstance:()=>$s,defaultGrammarResolverErrorProvider:()=>By,defaultGrammarValidatorErrorProvider:()=>Hs,defaultLexerErrorProvider:()=>My,defaultParserErrorProvider:()=>Wp,generateParserFactory:()=>AM,generateParserModule:()=>PM,isRecognitionException:()=>Ha,resolveGrammar:()=>Qy,serializeGrammar:()=>ky,serializeProduction:()=>Pf,tokenLabel:()=>Jo,tokenMatcher:()=>Z1,tokenName:()=>J1,validateGrammar:()=>qy});function xY(){console.warn(`The clearCache function was 'soft' removed from the Chevrotain API.
265
+ `;o(vM,"genUmdModule");o(bM,"genWrapperFunction");o(EM,"genClass");o(TY,"genAllRules");o(vY,"genRule");o(bY,"genTerminal");o(EY,"genNonTerminal");o(SY,"genAlternation");o(AY,"genSingleAlt");o(PY,"genProd");o(id,"genDSLRule");o(TM,"genDefFunction");o(sT,"genDefinition");o(Ui,"indent")});function AM(e){var t=bM({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(lT(),Gg(cT)))}}function PM(e){return vM({name:e.name,rules:e.rules})}var xM=Je(()=>{SM();o(AM,"generateParserFactory");o(PM,"generateParserModule")});var cT={};yc(cT,{Alternation:()=>Cn,Alternative:()=>en,CstParser:()=>gM,EMPTY_ALT:()=>dM,EOF:()=>eo,EarlyExitException:()=>Zy,EmbeddedActionsParser:()=>mM,GAstVisitor:()=>to,Lexer:()=>ki,LexerDefinitionErrorType:()=>gn,MismatchedTokenException:()=>Of,NoViableAltException:()=>zy,NonTerminal:()=>sn,NotAllInputParsedException:()=>Jy,Option:()=>cn,Parser:()=>CY,ParserDefinitionErrorType:()=>Qn,Repetition:()=>Lt,RepetitionMandatory:()=>_n,RepetitionMandatoryWithSeparator:()=>Vn,RepetitionWithSeparator:()=>xn,Rule:()=>xr,Terminal:()=>ht,VERSION:()=>wp,assignOccurrenceIndices:()=>Cw,clearCache:()=>xY,createSyntaxDiagramsCode:()=>hM,createToken:()=>Gp,createTokenInstance:()=>$s,defaultGrammarResolverErrorProvider:()=>By,defaultGrammarValidatorErrorProvider:()=>Hs,defaultLexerErrorProvider:()=>My,defaultParserErrorProvider:()=>Wp,generateParserFactory:()=>AM,generateParserModule:()=>PM,isRecognitionException:()=>Ha,resolveGrammar:()=>Qy,serializeGrammar:()=>ky,serializeProduction:()=>Pf,tokenLabel:()=>Jo,tokenMatcher:()=>ZV,tokenName:()=>JV,validateGrammar:()=>qy});function xY(){console.warn(`The clearCache function was 'soft' removed from the Chevrotain API.
266
266
  It performs no action other than printing this message.
267
267
  Please avoid using it as it will be completely removed in the future`)}var CY,lT=Je(()=>{EP();Ir();Bp();Bs();Kp();Rf();FP();ji();ji();xf();HP();yM();xM();o(xY,"clearCache");CY=(function(){function e(){throw new Error(`The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.
268
268
  See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0`)}return o(e,"Parser"),e})()});var ex=Ze((nge,NM)=>{var{createToken:IY,Lexer:JP}=(lT(),Gg(cT)),IM={},Df=IM;function ZP(e,t){IM[e]=typeof t=="string"?t:t.source}o(ZP,"FRAGMENT");function rd(e,...t){let n="";for(let i=0;i<e.length;i++)if(n+=e[i],i<t.length){let r=t[i];n+=`(?:${r})`}return new RegExp(n)}o(rd,"makePattern");var OY=[],OM={};function In(e){let t=IY(e);return OY.push(t),OM[e.name]=t,t}o(In,"createToken");ZP("NameStartChar","(:|[a-zA-Z]|_|\\u2070-\\u218F|\\u2C00-\\u2FEF|\\u3001-\\uD7FF|\\uF900-\\uFDCF|\\uFDF0-\\uFFFD)");ZP("NameChar",rd`${Df.NameStartChar}|-|\\.|\\d|\\u00B7||[\\u0300-\\u036F]|[\\u203F-\\u2040]`);ZP("Name",rd`${Df.NameStartChar}(${Df.NameChar})*`);var CM=In({name:"Comment",pattern:/<!--(.|\r?\n)*?-->/,line_breaks:!0}),RY=In({name:"CData",pattern:/<!\[CDATA\[(.|\r?\n)*?]]>/,line_breaks:!0}),LY=In({name:"DocType",pattern:/<!DOCTYPE/,push_mode:"INSIDE"}),NY=In({name:"DTD",pattern:/<!.*?>/,group:JP.SKIPPED}),FY=In({name:"EntityRef",pattern:rd`&${Df.Name};`}),DY=In({name:"CharRef",pattern:/&#\d+;|&#x[a-fA-F0-9]/}),_Y=In({name:"SEA_WS",pattern:/( |\t|\n|\r\n)+/}),VY=In({name:"XMLDeclOpen",pattern:/<\?xml[ \t\r\n]/,push_mode:"INSIDE"}),RM=In({name:"SLASH_OPEN",pattern:/<\//,push_mode:"INSIDE"}),wY=In({name:"INVALID_SLASH_OPEN",pattern:/<\//,categories:[RM]}),MY=In({name:"PROCESSING_INSTRUCTION",pattern:rd`<\\?${Df.Name}.*\\?>`}),LM=In({name:"OPEN",pattern:/</,push_mode:"INSIDE"}),kY=In({name:"INVALID_OPEN_INSIDE",pattern:/</,categories:[LM]}),jY=In({name:"TEXT",pattern:/[^<&]+/}),UY=In({name:"CLOSE",pattern:/>/,pop_mode:!0}),$Y=In({name:"SPECIAL_CLOSE",pattern:/\?>/,pop_mode:!0}),BY=In({name:"SLASH_CLOSE",pattern:/\/>/,pop_mode:!0}),HY=In({name:"SLASH",pattern:/\//}),GY=In({name:"STRING",pattern:/"[^<"]*"|'[^<']*'/}),WY=In({name:"EQUALS",pattern:/=/}),KY=In({name:"Name",pattern:rd`${Df.Name}`}),XY=In({name:"S",pattern:/[ \t\r\n]/,group:JP.SKIPPED}),QY={defaultMode:"OUTSIDE",modes:{OUTSIDE:[CM,RY,LY,NY,FY,DY,_Y,VY,RM,MY,LM,jY],INSIDE:[CM,wY,kY,UY,$Y,BY,HY,WY,GY,KY,XY]}},qY=new JP(QY,{positionTracking:"full",ensureOptimizations:!1,lineTerminatorCharacters:[`
@@ -285,13 +285,13 @@ __p += '`),gt&&(ne+=`' +
285
285
  function print() { __p += __j.call(arguments, '') }
286
286
  `:`;
287
287
  `)+ne+`return __p
288
- }`;var nt=TL(function(){return At(C,Re+"return "+ne).apply(e,L)});if(nt.source=ne,Zv(nt))throw nt;return nt}o(mG,"template");function hG(c){return It(c).toLowerCase()}o(hG,"toLower");function yG(c){return It(c).toUpperCase()}o(yG,"toUpper");function TG(c,u,g){if(c=It(c),c&&(g||u===e))return IO(c);if(!c||!(u=dr(u)))return c;var T=co(c),S=co(u),C=OO(T,S),L=RO(T,S)+1;return rs(T,C,L).join("")}o(TG,"trim");function vG(c,u,g){if(c=It(c),c&&(g||u===e))return c.slice(0,NO(c)+1);if(!c||!(u=dr(u)))return c;var T=co(c),S=RO(T,co(u))+1;return rs(T,0,S).join("")}o(vG,"trimEnd");function bG(c,u,g){if(c=It(c),c&&(g||u===e))return c.replace(ZT,"");if(!c||!(u=dr(u)))return c;var T=co(c),S=OO(T,co(u));return rs(T,S).join("")}o(bG,"trimStart");function EG(c,u){var g=D,T=Ue;if(yn(u)){var S="separator"in u?u.separator:S;g="length"in u?et(u.length):g,T="omission"in u?dr(u.omission):T}c=It(c);var C=c.length;if(Tl(c)){var L=co(c);C=L.length}if(g>=C)return c;var F=g-vl(T);if(F<1)return T;var M=L?rs(L,0,F).join(""):c.slice(0,F);if(S===e)return M+T;if(L&&(F+=M.length-F),eb(S)){if(c.slice(F).search(S)){var z,J=M;for(S.global||(S=hv(S.source,It(qI.exec(S))+"g")),S.lastIndex=0;z=S.exec(J);)var ne=z.index;M=M.slice(0,ne===e?F:ne)}}else if(c.indexOf(dr(S),F)!=F){var ge=M.lastIndexOf(S);ge>-1&&(M=M.slice(0,ge))}return M+T}o(EG,"truncate");function SG(c){return c=It(c),c&&Ae.test(c)?c.replace(me,Yj):c}o(SG,"unescape");var AG=xl(function(c,u,g){return c+(g?" ":"")+u.toUpperCase()}),ib=vR("toUpperCase");function yL(c,u,g){return c=It(c),u=g?e:u,u===e?Wj(c)?Zj(c):wj(c):c.match(u)||[]}o(yL,"words");var TL=rt(function(c,u){try{return ur(c,e,u)}catch(g){return Zv(g)?g:new Xe(g)}}),PG=la(function(c,u){return _r(u,function(g){g=_o(g),sa(c,g,zv(c[g],c))}),c});function xG(c){var u=c==null?0:c.length,g=Ve();return c=u?pn(c,function(T){if(typeof T[1]!="function")throw new Vr(r);return[g(T[0]),T[1]]}):[],rt(function(T){for(var S=-1;++S<u;){var C=c[S];if(ur(C[0],this,T))return ur(C[1],this,T)}})}o(xG,"cond");function CG(c){return YU(Mr(c,p))}o(CG,"conforms");function rb(c){return function(){return c}}o(rb,"constant");function IG(c,u){return c==null||c!==c?u:c}o(IG,"defaultTo");var OG=ER(),RG=ER(!0);function Xi(c){return c}o(Xi,"identity");function ob(c){return zO(typeof c=="function"?c:Mr(c,p))}o(ob,"iteratee");function LG(c){return ZO(Mr(c,p))}o(LG,"matches");function NG(c,u){return eR(c,Mr(u,p))}o(NG,"matchesProperty");var FG=rt(function(c,u){return function(g){return yu(g,c,u)}}),DG=rt(function(c,u){return function(g){return yu(c,g,u)}});function ab(c,u,g){var T=Yn(u),S=Ag(u,T);g==null&&!(yn(u)&&(S.length||!T.length))&&(g=u,u=c,c=this,S=Ag(u,Yn(u)));var C=!(yn(g)&&"chain"in g)||!!g.chain,L=ua(c);return _r(S,function(F){var M=u[F];c[F]=M,L&&(c.prototype[F]=function(){var z=this.__chain__;if(C||z){var J=c(this.__wrapped__),ne=J.__actions__=Gi(this.__actions__);return ne.push({func:M,args:arguments,thisArg:c}),J.__chain__=z,J}return M.apply(c,za([this.value()],arguments))})}),c}o(ab,"mixin");function _G(){return qn._===this&&(qn._=oU),this}o(_G,"noConflict");function sb(){}o(sb,"noop");function VG(c){return c=et(c),rt(function(u){return tR(u,c)})}o(VG,"nthArg");var wG=kv(pn),MG=kv(SO),kG=kv(lv);function vL(c){return Wv(c)?fv(_o(c)):d$(c)}o(vL,"property");function jG(c){return function(u){return c==null?e:dc(c,u)}}o(jG,"propertyOf");var UG=AR(),$G=AR(!0);function cb(){return[]}o(cb,"stubArray");function lb(){return!1}o(lb,"stubFalse");function BG(){return{}}o(BG,"stubObject");function HG(){return""}o(HG,"stubString");function GG(){return!0}o(GG,"stubTrue");function WG(c,u){if(c=et(c),c<1||c>Ne)return[];var g=rn,T=hi(c,rn);u=Ve(u),c-=rn;for(var S=dv(T,u);++g<c;)u(g);return S}o(WG,"times");function KG(c){return Ye(c)?pn(c,_o):gr(c)?[c]:Gi(jR(It(c)))}o(KG,"toPath");function XG(c){var u=++iU;return It(c)+u}o(XG,"uniqueId");var QG=Rg(function(c,u){return c+u},0),qG=jv("ceil"),YG=Rg(function(c,u){return c/u},1),zG=jv("floor");function JG(c){return c&&c.length?Sg(c,Xi,Pv):e}o(JG,"max");function ZG(c,u){return c&&c.length?Sg(c,Ve(u,2),Pv):e}o(ZG,"maxBy");function e5(c){return xO(c,Xi)}o(e5,"mean");function t5(c,u){return xO(c,Ve(u,2))}o(t5,"meanBy");function n5(c){return c&&c.length?Sg(c,Xi,Ov):e}o(n5,"min");function i5(c,u){return c&&c.length?Sg(c,Ve(u,2),Ov):e}o(i5,"minBy");var r5=Rg(function(c,u){return c*u},1),o5=jv("round"),a5=Rg(function(c,u){return c-u},0);function s5(c){return c&&c.length?pv(c,Xi):0}o(s5,"sum");function c5(c,u){return c&&c.length?pv(c,Ve(u,2)):0}return o(c5,"sumBy"),P.after=LB,P.ary=YR,P.assign=yH,P.assignIn=fL,P.assignInWith=Bg,P.assignWith=TH,P.at=vH,P.before=zR,P.bind=zv,P.bindAll=PG,P.bindKey=JR,P.castArray=BB,P.chain=XR,P.chunk=Y$,P.compact=z$,P.concat=J$,P.cond=xG,P.conforms=CG,P.constant=rb,P.countBy=sB,P.create=bH,P.curry=ZR,P.curryRight=eL,P.debounce=tL,P.defaults=EH,P.defaultsDeep=SH,P.defer=NB,P.delay=FB,P.difference=Z$,P.differenceBy=e4,P.differenceWith=t4,P.drop=n4,P.dropRight=i4,P.dropRightWhile=r4,P.dropWhile=o4,P.fill=a4,P.filter=lB,P.flatMap=pB,P.flatMapDeep=dB,P.flatMapDepth=gB,P.flatten=HR,P.flattenDeep=s4,P.flattenDepth=c4,P.flip=DB,P.flow=OG,P.flowRight=RG,P.fromPairs=l4,P.functions=RH,P.functionsIn=LH,P.groupBy=mB,P.initial=u4,P.intersection=p4,P.intersectionBy=d4,P.intersectionWith=g4,P.invert=FH,P.invertBy=DH,P.invokeMap=yB,P.iteratee=ob,P.keyBy=TB,P.keys=Yn,P.keysIn=Ki,P.map=wg,P.mapKeys=VH,P.mapValues=wH,P.matches=LG,P.matchesProperty=NG,P.memoize=kg,P.merge=MH,P.mergeWith=uL,P.method=FG,P.methodOf=DG,P.mixin=ab,P.negate=jg,P.nthArg=VG,P.omit=kH,P.omitBy=jH,P.once=_B,P.orderBy=vB,P.over=wG,P.overArgs=VB,P.overEvery=MG,P.overSome=kG,P.partial=Jv,P.partialRight=nL,P.partition=bB,P.pick=UH,P.pickBy=pL,P.property=vL,P.propertyOf=jG,P.pull=T4,P.pullAll=WR,P.pullAllBy=b4,P.pullAllWith=E4,P.pullAt=S4,P.range=UG,P.rangeRight=$G,P.rearg=wB,P.reject=AB,P.remove=A4,P.rest=MB,P.reverse=qv,P.sampleSize=xB,P.set=BH,P.setWith=HH,P.shuffle=CB,P.slice=P4,P.sortBy=RB,P.sortedUniq=N4,P.sortedUniqBy=F4,P.split=pG,P.spread=kB,P.tail=D4,P.take=_4,P.takeRight=V4,P.takeRightWhile=w4,P.takeWhile=M4,P.tap=J4,P.throttle=jB,P.thru=Vg,P.toArray=sL,P.toPairs=dL,P.toPairsIn=gL,P.toPath=KG,P.toPlainObject=lL,P.transform=GH,P.unary=UB,P.union=k4,P.unionBy=j4,P.unionWith=U4,P.uniq=$4,P.uniqBy=B4,P.uniqWith=H4,P.unset=WH,P.unzip=Yv,P.unzipWith=KR,P.update=KH,P.updateWith=XH,P.values=Ol,P.valuesIn=QH,P.without=G4,P.words=yL,P.wrap=$B,P.xor=W4,P.xorBy=K4,P.xorWith=X4,P.zip=Q4,P.zipObject=q4,P.zipObjectDeep=Y4,P.zipWith=z4,P.entries=dL,P.entriesIn=gL,P.extend=fL,P.extendWith=Bg,ab(P,P),P.add=QG,P.attempt=TL,P.camelCase=JH,P.capitalize=mL,P.ceil=qG,P.clamp=qH,P.clone=HB,P.cloneDeep=WB,P.cloneDeepWith=KB,P.cloneWith=GB,P.conformsTo=XB,P.deburr=hL,P.defaultTo=IG,P.divide=YG,P.endsWith=ZH,P.eq=fo,P.escape=eG,P.escapeRegExp=tG,P.every=cB,P.find=fB,P.findIndex=$R,P.findKey=AH,P.findLast=uB,P.findLastIndex=BR,P.findLastKey=PH,P.floor=zG,P.forEach=QR,P.forEachRight=qR,P.forIn=xH,P.forInRight=CH,P.forOwn=IH,P.forOwnRight=OH,P.get=tb,P.gt=QB,P.gte=qB,P.has=NH,P.hasIn=nb,P.head=GR,P.identity=Xi,P.includes=hB,P.indexOf=f4,P.inRange=YH,P.invoke=_H,P.isArguments=hc,P.isArray=Ye,P.isArrayBuffer=YB,P.isArrayLike=Wi,P.isArrayLikeObject=Ln,P.isBoolean=zB,P.isBuffer=os,P.isDate=JB,P.isElement=ZB,P.isEmpty=eH,P.isEqual=tH,P.isEqualWith=nH,P.isError=Zv,P.isFinite=iH,P.isFunction=ua,P.isInteger=iL,P.isLength=Ug,P.isMap=rL,P.isMatch=rH,P.isMatchWith=oH,P.isNaN=aH,P.isNative=sH,P.isNil=lH,P.isNull=cH,P.isNumber=oL,P.isObject=yn,P.isObjectLike=En,P.isPlainObject=Au,P.isRegExp=eb,P.isSafeInteger=fH,P.isSet=aL,P.isString=$g,P.isSymbol=gr,P.isTypedArray=Il,P.isUndefined=uH,P.isWeakMap=pH,P.isWeakSet=dH,P.join=m4,P.kebabCase=nG,P.last=jr,P.lastIndexOf=h4,P.lowerCase=iG,P.lowerFirst=rG,P.lt=gH,P.lte=mH,P.max=JG,P.maxBy=ZG,P.mean=e5,P.meanBy=t5,P.min=n5,P.minBy=i5,P.stubArray=cb,P.stubFalse=lb,P.stubObject=BG,P.stubString=HG,P.stubTrue=GG,P.multiply=r5,P.nth=y4,P.noConflict=_G,P.noop=sb,P.now=Mg,P.pad=oG,P.padEnd=aG,P.padStart=sG,P.parseInt=cG,P.random=zH,P.reduce=EB,P.reduceRight=SB,P.repeat=lG,P.replace=fG,P.result=$H,P.round=o5,P.runInContext=w,P.sample=PB,P.size=IB,P.snakeCase=uG,P.some=OB,P.sortedIndex=x4,P.sortedIndexBy=C4,P.sortedIndexOf=I4,P.sortedLastIndex=O4,P.sortedLastIndexBy=R4,P.sortedLastIndexOf=L4,P.startCase=dG,P.startsWith=gG,P.subtract=a5,P.sum=s5,P.sumBy=c5,P.template=mG,P.times=WG,P.toFinite=pa,P.toInteger=et,P.toLength=cL,P.toLower=hG,P.toNumber=Ur,P.toSafeInteger=hH,P.toString=It,P.toUpper=yG,P.trim=TG,P.trimEnd=vG,P.trimStart=bG,P.truncate=EG,P.unescape=SG,P.uniqueId=XG,P.upperCase=AG,P.upperFirst=ib,P.each=QR,P.eachRight=qR,P.first=GR,ab(P,(function(){var c={};return Fo(P,function(u,g){Ft.call(P.prototype,g)||(c[g]=u)}),c})(),{chain:!1}),P.VERSION=t,_r(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),_r(["drop","take"],function(c,u){dt.prototype[c]=function(g){g=g===e?1:Wn(et(g),0);var T=this.__filtered__&&!u?new dt(this):this.clone();return T.__filtered__?T.__takeCount__=hi(g,T.__takeCount__):T.__views__.push({size:hi(g,rn),type:c+(T.__dir__<0?"Right":"")}),T},dt.prototype[c+"Right"]=function(g){return this.reverse()[c](g).reverse()}}),_r(["filter","map","takeWhile"],function(c,u){var g=u+1,T=g==nn||g==St;dt.prototype[c]=function(S){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(S,3),type:g}),C.__filtered__=C.__filtered__||T,C}}),_r(["head","last"],function(c,u){var g="take"+(u?"Right":"");dt.prototype[c]=function(){return this[g](1).value()[0]}}),_r(["initial","tail"],function(c,u){var g="drop"+(u?"":"Right");dt.prototype[c]=function(){return this.__filtered__?new dt(this):this[g](1)}}),dt.prototype.compact=function(){return this.filter(Xi)},dt.prototype.find=function(c){return this.filter(c).head()},dt.prototype.findLast=function(c){return this.reverse().find(c)},dt.prototype.invokeMap=rt(function(c,u){return typeof c=="function"?new dt(this):this.map(function(g){return yu(g,c,u)})}),dt.prototype.reject=function(c){return this.filter(jg(Ve(c)))},dt.prototype.slice=function(c,u){c=et(c);var g=this;return g.__filtered__&&(c>0||u<0)?new dt(g):(c<0?g=g.takeRight(-c):c&&(g=g.drop(c)),u!==e&&(u=et(u),g=u<0?g.dropRight(-u):g.take(u-c)),g)},dt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},dt.prototype.toArray=function(){return this.take(rn)},Fo(dt.prototype,function(c,u){var g=/^(?:filter|find|map|reject)|While$/.test(u),T=/^(?:head|last)$/.test(u),S=P[T?"take"+(u=="last"?"Right":""):u],C=T||/^find/.test(u);S&&(P.prototype[u]=function(){var L=this.__wrapped__,F=T?[1]:arguments,M=L instanceof dt,z=F[0],J=M||Ye(L),ne=o(function(lt){var gt=S.apply(P,za([lt],F));return T&&ge?gt[0]:gt},"interceptor");J&&g&&typeof z=="function"&&z.length!=1&&(M=J=!1);var ge=this.__chain__,Re=!!this.__actions__.length,Me=C&&!ge,nt=M&&!Re;if(!C&&J){L=nt?L:new dt(this);var ke=c.apply(L,F);return ke.__actions__.push({func:Vg,args:[ne],thisArg:e}),new wr(ke,ge)}return Me&&nt?c.apply(this,F):(ke=this.thru(ne),Me?T?ke.value()[0]:ke.value():ke)})}),_r(["pop","push","shift","sort","splice","unshift"],function(c){var u=sg[c],g=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",T=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var S=arguments;if(T&&!this.__chain__){var C=this.value();return u.apply(Ye(C)?C:[],S)}return this[g](function(L){return u.apply(Ye(L)?L:[],S)})}}),Fo(dt.prototype,function(c,u){var g=P[u];if(g){var T=g.name+"";Ft.call(Sl,T)||(Sl[T]=[]),Sl[T].push({name:u,func:g})}}),Sl[Og(e,I).name]=[{name:"wrapper",func:e}],dt.prototype.clone=EU,dt.prototype.reverse=SU,dt.prototype.value=AU,P.prototype.at=Z4,P.prototype.chain=eB,P.prototype.commit=tB,P.prototype.next=nB,P.prototype.plant=rB,P.prototype.reverse=oB,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=aB,P.prototype.first=P.prototype.head,fu&&(P.prototype[fu]=iB),P}),"runInContext"),Za=eU();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(qn._=Za,define(function(){return Za})):cc?((cc.exports=Za)._=Za,ov._=Za):qn._=Za}).call(_f)});var wM=Ze((lge,VM)=>{var{findIndex:e9}=ad();function t9(e,t){let i=e9(e,a=>a.endOffset===t),r=!1;for(;r===!1;){i++;let a=e[i];if(a===void 0)return null;if(a.tokenType.name!=="SEA_WS")return a}}o(t9,"findNextTextualToken");VM.exports={findNextTextualToken:t9}});var jM=Ze((uge,kM)=>{var MM=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function n9({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(MM);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(n9,"isXMLNamespaceKey");function i9(e){if(typeof e!="string")return;let t=e.match(MM);if(t!==null)return t.groups&&t.groups.prefix||""}o(i9,"getXMLNamespaceKeyPrefix");kM.exports={isXMLNamespaceKey:n9,getXMLNamespaceKeyPrefix:i9}});var $M=Ze((dge,UM)=>{var{findNextTextualToken:r9}=wM(),{isXMLNamespaceKey:o9,getXMLNamespaceKeyPrefix:a9}=jM();UM.exports={findNextTextualToken:r9,isXMLNamespaceKey:o9,getXMLNamespaceKeyPrefix:a9}});var rx=Ze((gge,HM)=>{var{reduce:s9,has:BM,isArray:c9}=ad();function l9(e){return s9(e,(n,i,r)=>(r==="parent"||(BM(i,"type")?n.push(i):c9(i)&&i.length>0&&BM(i[0],"type")&&(n=n.concat(i))),n),[])}o(l9,"getAstChildrenReflective");HM.exports={getAstChildrenReflective:l9}});var ox=Ze((hge,GM)=>{GM.exports={DEFAULT_NS:"::DEFAULT"}});var JM=Ze((yge,zM)=>{var{BaseXmlCstVisitor:f9}=ix(),{last:u9,forEach:QM,reduce:p9,map:sd,pick:sx,sortBy:d9,isEmpty:g9,isArray:qM,assign:m9}=ad(),{findNextTextualToken:h9,isXMLNamespaceKey:y9,getXMLNamespaceKeyPrefix:T9}=$M(),{getAstChildrenReflective:v9}=rx(),{DEFAULT_NS:b9}=ox();function E9(e,t){WM.setState({tokenVector:t});let n=WM.visit(e);return n.rootElement!==sl&&YM(n.rootElement),n}o(E9,"buildAst");var cx=class cx extends f9{constructor(){super()}setState({tokenVector:t}){this.tokenVector=t}visit(t,n={}){return super.visit(t,{location:t.location,...n})}document(t,{location:n}){let i={type:"XMLDocument",rootElement:sl,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&g9(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),uT(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=sd(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),uT(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=sd(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=sd(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:sl,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=sd(t.attribute,this.visit.bind(this))),t.content!==void 0){let{elements:r,textContents:a}=this.visit(t.content[0]);i.subElements=r,i.textContents=a}return P9(i,t),x9(i,t),C9(i,t,this.tokenVector),uT(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:sl,value:sl,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=pT(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=S9(a.image),r.syntax.value=pT(a)}return uT(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:sl},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=d9(r,["startOffset"]),s=sd(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(cx,"CstToAstVisitor");var ax=cx,WM=new ax;function uT(e){let t=v9(e);QM(t,n=>n.parent=e)}o(uT,"setChildrenParent");function YM(e,t=[]){let n=p9(e.attributes,(r,a)=>{if(a.key!==sl&&y9({key:a.key,includeEmptyPrefix:!1})===!0){let s=T9(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[b9]=l}}return r},{}),i=Object.create(null);e.namespaces=m9(i,t,n),QM(e.subElements,r=>YM(r,e.namespaces))}o(YM,"updateNamespaces");function pT(e){return sx(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(pT,"toXMLToken");function KM(e){return sx(e,["startOffset","startLine","startColumn"])}o(KM,"startOfXMLToken");function XM(e){return sx(e,["endOffset","endLine","endColumn"])}o(XM,"endOfXMLToken");function Ga(e){return qM(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(Ga,"exists");function S9(e){return e.substring(1,e.length-1)}o(S9,"stripQuotes");function A9(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(A9,"nsToParts");var sl=null;function P9(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=pT(n);let i=A9(n.image);i!==null?(e.ns=i.ns,e.name=i.name):e.name=n.image}t.END_NAME!==void 0&&t.END_NAME[0].isInsertedInRecovery!==!0&&(e.syntax.closeName=pT(t.END_NAME[0]))}o(P9,"handleElementOpenCloseNameRanges");function x9(e,t){if(Ga(t.OPEN)){let n;Ga(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Ga(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...KM(t.OPEN[0]),...XM(n)}),Ga(t.SLASH_OPEN)&&Ga(t.END)&&(e.syntax.closeBody={...KM(t.SLASH_OPEN[0]),...XM(t.END[0])})}}o(x9,"handleElementOpenCloseBodyRanges");function C9(e,t,n){if(Ga(t.Name)){let i=t.Name[0].endOffset+2;if(Ga(t.START_CLOSE)||Ga(t.SLASH_CLOSE)){let r=(Ga(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=qM(t.attribute)?u9(t.attribute).location.endOffset:t.Name[0].endOffset,s=h9(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(C9,"handleElementAttributeRanges");zM.exports={buildAst:E9}});var tk=Ze((vge,ek)=>{var{forEach:I9,isFunction:Vf}=ad(),{getAstChildrenReflective:O9}=rx();function ZM(e,t){switch(e.type){case"XMLDocument":{Vf(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{Vf(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{Vf(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{Vf(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{Vf(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{Vf(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=O9(e);I9(n,i=>{ZM(i,t)})}o(ZM,"accept");ek.exports={accept:ZM}});var ik=Ze((Ege,nk)=>{var{buildAst:R9}=JM(),{accept:L9}=tk(),{DEFAULT_NS:N9}=ox();nk.exports={buildAst:R9,accept:L9,DEFAULT_NS:N9}});var Fi={};yc(Fi,{deleteConfigEntityByPath:()=>XZ,exportConfig:()=>WZ,exportConfigEntityByPath:()=>KZ,generateCustomExtension:()=>HI,generateSchema:()=>GZ,getApiVersion:()=>zZ,getChanges:()=>k2,getGenericSchema:()=>XT,getPathToGenericSchema:()=>n2,getProject:()=>nee,importConfig:()=>QZ,importProject:()=>qZ,importProjectSchema:()=>YZ,isDirectory:()=>ZZ,log:()=>oe,prompts:()=>HZ,readDirectory:()=>QI});module.exports=Gg(Fi);var de=Z(re());var W=Z(re());var Be=o(e=>typeof e=="string","isString"),Pu=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),iD=o(e=>e==null?"":""+e,"makeString"),HW=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),GW=/###/g,rD=o(e=>e&&e.indexOf("###")>-1?e.replace(GW,"."):e,"cleanKey"),oD=o(e=>!e||Be(e),"canNotTraverseDeeper"),xu=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(oD(e))return{};let a=rD(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return oD(e)?{}:{obj:e,k:rD(i[r])}},"getLastOfPath"),aD=o((e,t,n)=>{let{obj:i,k:r}=xu(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=xu(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=xu(e,s,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),WW=o((e,t,n,i)=>{let{obj:r,k:a}=xu(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),Kg=o((e,t)=>{let{obj:n,k:i}=xu(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},"getPath"),KW=o((e,t,n)=>{let i=Kg(e,n);return i!==void 0?i:Kg(t,n)},"getPathWithDefaults"),gD=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?Be(e[i])||e[i]instanceof String||Be(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):gD(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),Ll=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),XW={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},QW=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>XW[t]):e,"escape"),Cb=class Cb{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let n=this.regExpMap.get(t);if(n!==void 0)return n;let i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}};o(Cb,"RegExpCache");var Tb=Cb,qW=[" ",",","?","!",";"],YW=new Tb(20),zW=o((e,t,n)=>{t=t||"",n=n||"";let i=qW.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=YW.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),vb=o((e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let i=t.split(n),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let f=a;f<i.length;++f)if(f!==a&&(l+=n),l+=i[f],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&f<i.length-1)continue;a+=f-a+1;break}r=s}return r},"deepFind"),Ou=o(e=>e==null?void 0:e.replace("_","-"),"getCleanedCode"),JW={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,i;(i=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||i.call(n,console,t)}},Cu=class Cu{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||JW,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,i,r){return r&&!this.debug?null:(Be(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Cu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Cu(this.logger,t)}};o(Cu,"Logger");var bb=Cu,Vo=new bb,Ib=class Ib{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([r,a])=>{for(let s=0;s<a;s++)r(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,a])=>{for(let s=0;s<a;s++)r.apply(r,[t,...n])})}};o(Ib,"EventEmitter");var Nl=Ib,Ob=class Ob extends Nl{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,i,r={}){var p,d;let a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):Be(i)&&a?l.push(...i.split(a)):l.push(i)));let f=Kg(this.data,l);return!f&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),f||!s||!Be(i)?f:vb((d=(p=this.data)==null?void 0:p[t])==null?void 0:d[n],i,a)}addResource(t,n,i,r,a={silent:!1}){let s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),aD(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i,r={silent:!1}){for(let a in i)(Be(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a,s={silent:!1,skipCopy:!1}){let l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let f=Kg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?gD(f,i,a):f={...f,...i},aD(this.data,l,f),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(Ob,"ResourceStore");var Xg=Ob,mD={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{var s;t=((s=this.processors[a])==null?void 0:s.process(t,n,i,r))??t}),t}},hD=Symbol("i18next/PATH_KEY");function ZW(){let e=[],t=Object.create(null),n;return t.get=(i,r)=>{var a;return(a=n==null?void 0:n.revoke)==null||a.call(n),r===hD?e:(e.push(r),n=Proxy.revocable(i,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}o(ZW,"createProxy");function Eb(e,t){let{[hD]:n}=e(ZW());return n.join((t==null?void 0:t.keySeparator)??".")}o(Eb,"keysFromSelector");var sD={},hb=o(e=>!Be(e)&&typeof e!="boolean"&&typeof e!="number","shouldHandleAsObject"),zg=class zg extends Nl{constructor(t,n={}){super(),HW(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Vo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){let i={...n};if(t==null)return!1;let r=this.resolve(t,i);if((r==null?void 0:r.res)===void 0)return!1;let a=hb(r.res);return!(i.returnObjects===!1&&a)}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!zW(t,i,r);if(s&&!l){let f=t.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:t,namespaces:Be(a)?[a]:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return{key:t,namespaces:Be(a)?[a]:a}}translate(t,n,i){let r=typeof n=="object"?{...n}:n;if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";typeof t=="function"&&(t=Eb(t,{...this.options,...r})),Array.isArray(t)||(t=[String(t)]);let a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:l,namespaces:f}=this.extractFromKey(t[t.length-1],r),p=f[f.length-1],d=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;d===void 0&&(d=":");let m=r.lng||this.language,v=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((m==null?void 0:m.toLowerCase())==="cimode")return v?a?{res:`${p}${d}${l}`,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:`${p}${d}${l}`:a?{res:l,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:l;let E=this.resolve(t,r),b=E==null?void 0:E.res,I=(E==null?void 0:E.usedKey)||l,N=(E==null?void 0:E.exactUsedKey)||l,j=["[object Number]","[object Function]","[object RegExp]"],G=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,$=!this.i18nFormat||this.i18nFormat.handleAsObject,se=r.count!==void 0&&!Be(r.count),ee=zg.hasDefaultValue(r),le=se?this.pluralResolver.getSuffix(m,r.count,r):"",Le=r.ordinal&&se?this.pluralResolver.getSuffix(m,r.count,{ordinal:!1}):"",D=se&&!r.ordinal&&r.count===0,Ue=D&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${le}`]||r[`defaultValue${Le}`]||r.defaultValue,$e=b;$&&!b&&ee&&($e=Ue);let qe=hb($e),nn=Object.prototype.toString.apply($e);if($&&$e&&qe&&j.indexOf(nn)<0&&!(Be(G)&&Array.isArray($e))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let $t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(I,$e,{...r,ns:f}):`key '${l} (${this.language})' returned an object instead of string.`;return a?(E.res=$t,E.usedParams=this.getUsedParamsDetails(r),E):$t}if(s){let $t=Array.isArray($e),St=$t?[]:{},qt=$t?N:I;for(let Ne in $e)if(Object.prototype.hasOwnProperty.call($e,Ne)){let Tn=`${qt}${s}${Ne}`;ee&&!b?St[Ne]=this.translate(Tn,{...r,defaultValue:hb(Ue)?Ue[Ne]:void 0,joinArrays:!1,ns:f}):St[Ne]=this.translate(Tn,{...r,joinArrays:!1,ns:f}),St[Ne]===Tn&&(St[Ne]=$e[Ne])}b=St}}else if($&&Be(G)&&Array.isArray(b))b=b.join(G),b&&(b=this.extendTranslation(b,t,r,i));else{let $t=!1,St=!1;!this.isValidLookup(b)&&ee&&($t=!0,b=Ue),this.isValidLookup(b)||(St=!0,b=l);let Ne=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&St?void 0:b,Tn=ee&&Ue!==b&&this.options.updateMissing;if(St||$t||Tn){if(this.logger.log(Tn?"updateKey":"missingKey",m,p,l,Tn?Ue:b),s){let on=this.resolve(l,{...r,keySeparator:!1});on&&on.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 vn=[],rn=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&rn&&rn[0])for(let on=0;on<rn.length;on++)vn.push(rn[on]);else this.options.saveMissingTo==="all"?vn=this.languageUtils.toResolveHierarchy(r.lng||this.language):vn.push(r.lng||this.language);let On=o((on,Oe,ln)=>{var tt;let Oi=ee&&ln!==b?ln:Ne;this.options.missingKeyHandler?this.options.missingKeyHandler(on,p,Oe,Oi,Tn,r):(tt=this.backendConnector)!=null&&tt.saveMissing&&this.backendConnector.saveMissing(on,p,Oe,Oi,Tn,r),this.emit("missingKey",on,p,Oe,b)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&se?vn.forEach(on=>{let Oe=this.pluralResolver.getSuffixes(on,r);D&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Oe.indexOf(`${this.options.pluralSeparator}zero`)<0&&Oe.push(`${this.options.pluralSeparator}zero`),Oe.forEach(ln=>{On([on],l+ln,r[`defaultValue${ln}`]||Ue)})}):On(vn,l,Ue))}b=this.extendTranslation(b,t,r,E,i),St&&b===l&&this.options.appendNamespaceToMissingKey&&(b=`${p}${d}${l}`),(St||$t)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${d}${l}`:l,$t?b:void 0,r))}return a?(E.res=b,E.usedParams=this.getUsedParamsDetails(r),E):b}extendTranslation(t,n,i,r,a){var f,p;if((f=this.i18nFormat)!=null&&f.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let d=Be(t)&&(((p=i==null?void 0:i.interpolation)==null?void 0:p.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),m;if(d){let E=t.match(this.interpolator.nestingRegexp);m=E&&E.length}let v=i.replace&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),t=this.interpolator.interpolate(t,v,i.lng||this.language||r.usedLng,i),d){let E=t.match(this.interpolator.nestingRegexp),b=E&&E.length;m<b&&(i.nest=!1)}!i.lng&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,(...E)=>(a==null?void 0:a[0])===E[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${E[0]} in key: ${n[0]}`),null):this.translate(...E,n),i)),i.interpolation&&this.interpolator.reset()}let s=i.postProcess||this.options.postProcess,l=Be(s)?[s]:s;return t!=null&&(l!=null&&l.length)&&i.applyPostProcessor!==!1&&(t=mD.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t,n={}){let i,r,a,s,l;return Be(t)&&(t=[t]),t.forEach(f=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(f,n),d=p.key;r=d;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let v=n.count!==void 0&&!Be(n.count),E=v&&!n.ordinal&&n.count===0,b=n.context!==void 0&&(Be(n.context)||typeof n.context=="number")&&n.context!=="",I=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(N=>{var j,G;this.isValidLookup(i)||(l=N,!sD[`${I[0]}-${N}`]&&((j=this.utils)!=null&&j.hasLoadedNamespace)&&!((G=this.utils)!=null&&G.hasLoadedNamespace(l))&&(sD[`${I[0]}-${N}`]=!0,this.logger.warn(`key "${r}" for languages "${I.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),I.forEach($=>{var le;if(this.isValidLookup(i))return;s=$;let se=[d];if((le=this.i18nFormat)!=null&&le.addLookupKeys)this.i18nFormat.addLookupKeys(se,d,$,N,n);else{let Le;v&&(Le=this.pluralResolver.getSuffix($,n.count,n));let D=`${this.options.pluralSeparator}zero`,Ue=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(n.ordinal&&Le.indexOf(Ue)===0&&se.push(d+Le.replace(Ue,this.options.pluralSeparator)),se.push(d+Le),E&&se.push(d+D)),b){let $e=`${d}${this.options.contextSeparator||"_"}${n.context}`;se.push($e),v&&(n.ordinal&&Le.indexOf(Ue)===0&&se.push($e+Le.replace(Ue,this.options.pluralSeparator)),se.push($e+Le),E&&se.push($e+D))}}let ee;for(;ee=se.pop();)this.isValidLookup(i)||(a=ee,i=this.getResource($,N,ee,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i,r={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(t={}){let n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Be(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(zg,"Translator");var Qg=zg,Rb=class Rb{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Vo.create("languageUtils")}getScriptPartFromCode(t){if(t=Ou(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=Ou(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Be(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(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getScriptPartFromCode(i);if(this.isSupportedCode(r))return n=r;let a=this.getLanguagePartFromCode(i);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Be(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return Be(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):Be(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(Rb,"LanguageUtil");var qg=Rb,cD={zero:0,one:1,two:2,few:3,many:4,other:5},lD={select:o(e=>e===1?"one":"other","select"),resolvedOptions:o(()=>({pluralCategories:["one","other"]}),"resolvedOptions")},Lb=class Lb{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Vo.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){let i=Ou(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),lD;if(!t.match(/-|_/))return lD;let f=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(f,n)}return this.pluralRulesCache[a]=s,s}needsPlural(t,n={}){let i=this.getRule(t,n);return i||(i=this.getRule("dev",n)),(i==null?void 0:i.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,i={}){return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t,n={}){let i=this.getRule(t,n);return i||(i=this.getRule("dev",n)),i?i.resolvedOptions().pluralCategories.sort((r,a)=>cD[r]-cD[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(t,n,i={}){let r=this.getRule(t,i);return r?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,i))}};o(Lb,"PluralResolver");var Sb=Lb,fD=o((e,t,n,i=".",r=!0)=>{let a=KW(e,t,n);return!a&&r&&Be(n)&&(a=vb(e,n,i),a===void 0&&(a=vb(t,n,i))),a},"deepFindWithDefaults"),yb=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),Nb=class Nb{constructor(t={}){var n;this.logger=Vo.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(i=>i),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:f,formatSeparator:p,unescapeSuffix:d,unescapePrefix:m,nestingPrefix:v,nestingPrefixEscaped:E,nestingSuffix:b,nestingSuffixEscaped:I,nestingOptionsSeparator:N,maxReplaces:j,alwaysFormat:G}=t.interpolation;this.escape=n!==void 0?n:QW,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?Ll(a):s||"{{",this.suffix=l?Ll(l):f||"}}",this.formatSeparator=p||",",this.unescapePrefix=d?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=v?Ll(v):E||Ll("$t("),this.nestingSuffix=b?Ll(b):I||Ll(")"),this.nestingOptionsSeparator=N||",",this.maxReplaces=j||1e3,this.alwaysFormat=G!==void 0?G:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>(n==null?void 0:n.source)===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,i,r){var E;let a,s,l,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(b=>{if(b.indexOf(this.formatSeparator)<0){let G=fD(n,f,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(G,void 0,i,{...r,...n,interpolationkey:b}):G}let I=b.split(this.formatSeparator),N=I.shift().trim(),j=I.join(this.formatSeparator).trim();return this.format(fD(n,f,N,this.options.keySeparator,this.options.ignoreJSONStructure),j,i,{...r,...n,interpolationkey:N})},"handleFormat");this.resetRegExp();let d=(r==null?void 0:r.missingInterpolationHandler)||this.options.missingInterpolationHandler,m=((E=r==null?void 0:r.interpolation)==null?void 0:E.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(b=>yb(b),"safeValue")},{regex:this.regexp,safeValue:o(b=>this.escapeValue?yb(this.escape(b)):yb(b),"safeValue")}].forEach(b=>{for(l=0;a=b.regex.exec(t);){let I=a[1].trim();if(s=p(I),s===void 0)if(typeof d=="function"){let j=d(t,a,r);s=Be(j)?j:""}else if(r&&Object.prototype.hasOwnProperty.call(r,I))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${I} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=iD(s));let N=b.safeValue(s);if(t=t.replace(a[0],N),m?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n,i={}){let r,a,s,l=o((f,p)=>{let d=this.nestingOptionsSeparator;if(f.indexOf(d)<0)return f;let m=f.split(new RegExp(`${d}[ ]*{`)),v=`{${m[1]}`;f=m[0],v=this.interpolate(v,s);let E=v.match(/'/g),b=v.match(/"/g);(((E==null?void 0:E.length)??0)%2===0&&!b||b.length%2!==0)&&(v=v.replace(/'/g,'"'));try{s=JSON.parse(v),p&&(s={...p,...s})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${f}`,I),`${f}${d}${v}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,f},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let f=[];s={...i},s=s.replace&&!Be(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(p!==-1&&(f=r[1].slice(p).split(this.formatSeparator).map(d=>d.trim()).filter(Boolean),r[1]=r[1].slice(0,p)),a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!Be(a))return a;Be(a)||(a=iD(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),f.length&&(a=f.reduce((d,m)=>this.format(d,m,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o(Nb,"Interpolator");var Ab=Nb,e8=o(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...f]=s.split(":"),p=f.join(":").trim().replace(/^'+|'+$/g,""),d=l.trim();n[d]||(n[d]=p),p==="false"&&(n[d]=!1),p==="true"&&(n[d]=!0),isNaN(p)||(n[d]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),uD=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(Ou(i),r),t[s]=l),l(n)}},"createCachedFormatter"),t8=o(e=>(t,n,i)=>e(Ou(n),i)(t),"createNonCachedFormatter"),Fb=class Fb{constructor(t={}){this.logger=Vo.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";let i=n.cacheInBuiltFormats?uD:t8;this.formats={number:i((r,a)=>{let s=new Intl.NumberFormat(r,{...a});return l=>s.format(l)}),currency:i((r,a)=>{let s=new Intl.NumberFormat(r,{...a,style:"currency"});return l=>s.format(l)}),datetime:i((r,a)=>{let s=new Intl.DateTimeFormat(r,{...a});return l=>s.format(l)}),relativetime:i((r,a)=>{let s=new Intl.RelativeTimeFormat(r,{...a});return l=>s.format(l,a.range||"day")}),list:i((r,a)=>{let s=new Intl.ListFormat(r,{...a});return l=>s.format(l)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=uD(n)}format(t,n,i,r={}){let a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(f=>f.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,f)=>{var m;let{formatName:p,formatOptions:d}=e8(f);if(this.formats[p]){let v=l;try{let E=((m=r==null?void 0:r.formatParams)==null?void 0:m[r.interpolationkey])||{},b=E.locale||E.lng||r.locale||r.lng||i;v=this.formats[p](l,b,{...d,...r,...E})}catch(E){this.logger.warn(E)}return v}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(Fb,"Formatter");var Pb=Fb,n8=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),Db=class Db extends Nl{constructor(t,n,i,r={}){var a,s;super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=Vo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],(s=(a=this.backend)==null?void 0:a.init)==null||s.call(a,i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},f={};return t.forEach(p=>{let d=!0;n.forEach(m=>{let v=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?s[v]===void 0&&(s[v]=!0):(this.state[v]=1,d=!1,s[v]===void 0&&(s[v]=!0),a[v]===void 0&&(a[v]=!0),f[m]===void 0&&(f[m]=!0)))}),d||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(f)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(f=>{WW(f.loaded,[a],s),n8(f,t),n&&f.errors.push(n),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(p=>{l[p]||(l[p]={});let d=f.loaded[p];d.length&&d.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(f=>!f.done)}read(t,n,i,r=0,a=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((p,d)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&d&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(p,d)},"resolver"),f=this.backend[i].bind(this.backend);if(f.length===2){try{let p=f(t,n);p&&typeof p.then=="function"?p.then(d=>l(null,d)).catch(l):l(null,p)}catch(p){l(p)}return}return f(t,n,l)}prepareLoading(t,n,i={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Be(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Be(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t,n=""){let i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a,s={},l=()=>{}){var f,p,d,m,v;if((p=(f=this.services)==null?void 0:f.utils)!=null&&p.hasLoadedNamespace&&!((m=(d=this.services)==null?void 0:d.utils)!=null&&m.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if((v=this.backend)!=null&&v.create){let E={...s,isUpdate:a},b=this.backend.create.bind(this.backend);if(b.length<6)try{let I;b.length===5?I=b(t,n,i,r,E):I=b(t,n,i,r),I&&typeof I.then=="function"?I.then(N=>l(null,N)).catch(l):l(null,I)}catch(I){l(I)}else b(t,n,i,r,l,E)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(Db,"Connector");var xb=Db,pD=o(()=>({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:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Be(e[1])&&(t.defaultValue=e[1]),Be(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),"get"),dD=o(e=>{var t,n;return Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(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"),Wg=o(()=>{},"noop"),i8=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Iu=class Iu extends Nl{constructor(t={},n){if(super(),this.options=dD(t),this.services={},this.logger=Vo,this.modules={external:[]},i8(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&&(Be(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let i=pD();this.options={...i,...this.options,...dD(t)},this.options.interpolation={...i.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let r=o(p=>p?typeof p=="function"?new p:p:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Vo.init(r(this.modules.logger),this.options):Vo.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=Pb;let d=new qg(this.options);this.store=new Xg(this.options.resources,this.options);let m=this.services;m.logger=Vo,m.resourceStore=this.store,m.languageUtils=d,m.pluralResolver=new Sb(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.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"),p&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(m.formatter=r(p),m.formatter.init&&m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new Ab(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new xb(r(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",(E,...b)=>{this.emit(E,...b)}),this.modules.languageDetector&&(m.languageDetector=r(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=r(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new Qg(this.services,this.options),this.translator.on("*",(E,...b)=>{this.emit(E,...b)}),this.modules.external.forEach(E=>{E.init&&E.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Wg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[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(p=>{this[p]=(...d)=>this.store[p](...d)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...d)=>(this.store[p](...d),this)});let l=Pu(),f=o(()=>{let p=o((d,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(m),n(d,m)},"finish");if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)},"load");return this.options.resources||!this.options.initAsync?f():setTimeout(f,0),l}loadResources(t,n=Wg){var a,s;let i=n,r=Be(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if((r==null?void 0:r.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let l=[],f=o(p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(m=>{m!=="cimode"&&l.indexOf(m)<0&&l.push(m)})},"append");r?f(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>f(d)),(s=(a=this.options.preload)==null?void 0:a.forEach)==null||s.call(a,p=>f(p)),this.services.backendConnector.load(l,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(p)})}else i(null)}reloadResources(t,n,i){let r=Pu();return typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),i||(i=Wg),this.services.backendConnector.reload(t,n,a=>{r.resolve(),i(a)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&mD.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!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 i=Pu();this.emit("languageChanging",t);let r=o(l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},"setLngProps"),a=o((l,f)=>{f?this.isLanguageChangingTo===t&&(r(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,i.resolve((...p)=>this.t(...p)),n&&n(l,(...p)=>this.t(...p))},"done"),s=o(l=>{var d,m;!t&&!l&&this.services.languageDetector&&(l=[]);let f=Be(l)?l:l&&l[0],p=this.store.hasLanguageSomeTranslations(f)?f:this.services.languageUtils.getBestMatchFromCodes(Be(l)?[l]:l);p&&(this.language||r(p),this.translator.language||this.translator.changeLanguage(p),(m=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||m.call(d,p)),this.loadResources(p,v=>{a(v,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,n,i){let r=o((a,s,...l)=>{let f;typeof s!="object"?f=this.options.overloadTranslationOptionHandler([a,s].concat(l)):f={...s},f.lng=f.lng||r.lng,f.lngs=f.lngs||r.lngs,f.ns=f.ns||r.ns,f.keyPrefix!==""&&(f.keyPrefix=f.keyPrefix||i||r.keyPrefix);let p=this.options.keySeparator||".",d;return f.keyPrefix&&Array.isArray(a)?d=a.map(m=>(typeof m=="function"&&(m=Eb(m,{...this.options,...s})),`${f.keyPrefix}${p}${m}`)):(typeof a=="function"&&(a=Eb(a,{...this.options,...s})),d=f.keyPrefix?`${f.keyPrefix}${p}${a}`:a),this.t(d,f)},"fixedT");return Be(t)?r.lng=t:r.lngs=t,r.ns=n,r.keyPrefix=i,r}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 i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,f)=>{let p=this.services.backendConnector.state[`${l}|${f}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=Pu();return this.options.ns?(Be(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=Pu();Be(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){var r,a;if(t||(t=this.resolvedLanguage||(((r=this.languages)==null?void 0:r.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{let s=new Intl.Locale(t);if(s&&s.getTextInfo){let l=s.getTextInfo();if(l&&l.direction)return l.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"],i=((a=this.services)==null?void 0:a.languageUtils)||new qg(pD());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){return new Iu(t,n)}cloneInstance(t={},n=Wg){let i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new Iu(r);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i){let l=Object.keys(this.store.data).reduce((f,p)=>(f[p]={...this.store.data[p]},f[p]=Object.keys(f[p]).reduce((d,m)=>(d[m]={...f[p][m]},d),f[p]),f),{});a.store=new Xg(l,r),a.services.resourceStore=a.store}return a.translator=new Qg(a.services,r),a.translator.on("*",(l,...f)=>{a.emit(l,...f)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(Iu,"I18n");var Yg=Iu,Q=Yg.createInstance();Q.createInstance=Yg.createInstance;var dee=Q.createInstance,gee=Q.dir,mee=Q.init,hee=Q.loadResources,yee=Q.reloadResources,Tee=Q.use,vee=Q.changeLanguage,bee=Q.getFixedT,Eee=Q.t,See=Q.exists,Aee=Q.setDefaultNamespace,Pee=Q.hasLoadedNamespace,xee=Q.loadNamespaces,Cee=Q.loadLanguages;var L0=Z(_b()),N0=Z(HD()),Tm=Z(R0()),Tt=require("@sap-ux/vocabularies-types/vocabularies/UI"),Fu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var hm=Z(re());var oe=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${hm.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${hm.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${hm.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var U="#/definitions/",wK=[W.v4.FE_TEMPLATE_V4_LIST_REPORT,W.v4.FE_TEMPLATE_V4_ALP,W.v4.FE_TEMPLATE_V4_OBJECT_PAGE,W.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],MK=["sap.fe.core","sap.fe.templates"],kl=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),Tr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function $r(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,Tm.parse)(r.fileContent,r.dataSourceUri))}catch(a){return oe(t,{severity:W.LogSeverity.Error,message:Q.t("ANNOERR"),location:{path:Q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,Tm.merge)(...n);i=(0,N0.convert)(r)}return i}o($r,"parseAndMergeAndConvert");var Ml=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function eE(e,t,n){var i,r,a,s;if((i=e==null?void 0:e.Common)!=null&&i.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((r=l==null?void 0:l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(a=e.Common)==null?void 0:a.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}o(eE,"evaluateCommonLabel");function jl(e,t){let n=e.value;return e.$target&&(n=eE(e.$target.annotations,t,n)),n}o(jl,"getLabelForPropertyPath");function Du(e,t){var r,a;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(s=>s.name===e.Value):(i=t&&t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&(e.Target.$target.Value?i=e.Target.$target.Value.$target:e.Target.$target.Label&&(n=e.Target.$target.Label)),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=eE(i.annotations,t,n)),n}o(Du,"getLabelForDataField");function va(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return eE(a.annotations,t,s)}}}else return}o(va,"getLabel");function vm(e,t){var r;let n=e,i=typeof n.Action=="string"?n.Action:(r=n.Action)==null?void 0:r.path;return t&&typeof t=="string"?t:i}o(vm,"getDescriptionForActionBasedDataFields");function tE(e,t,n){let i=Du(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(tE,"getTitleForDataField");function at(e){return e.replace("#","::").replace(/\//g,":2f")}o(at,"prepareRef");function Ta(e){if(e){let t=`${W.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(Ta,"getPageTypeV2");function nE(e){let t="name"in e&&typeof e.name=="string"?ym(e.name):void 0;if(t)return t;if("viewId"in e&&e.viewId||"viewName"in e&&e.viewName)return W.PageTypeV4.CustomPage}o(nE,"getPageTypeV4");function kK(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(kK,"getTargetAnnotationName");function oi(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(oi,"findAlias");function jK(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(jK,"getAnnotationFromMetaPath");function UK(e,t,n){var s,l;let i=e[e.length-1],r=jK(i),a=oi(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(UK,"determineTargetAnnotation");function $K(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Tt.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${W.UIVOCABULARY}`);return e}o($K,"adjustKey");function BK(e,t,n,i,r=W.FioriElementsVersion.v2,a=!1){var m,v;let s=!1,l,f=i.split("/"),p=f.length>1;p&&n&&(n=(m=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:m.targetType),t=$K(t,f,a);let d=UK(f,n,e);if(d){let E=r===W.FioriElementsVersion.v2?"::":"#";t=kK(d,a).replace("#",E),l=(v=d.fullyQualifiedName)==null?void 0:v.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let E=r===W.FioriElementsVersion.v2?"::":"/";f.pop(),t=`${[...f].join(E)}${E}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(BK,"getKeyAndEntityTypeOfReferenceFacet");function F0(e,t,n,i,r=W.FioriElementsVersion.v2,a=!1){var d,m,v;let s=(m=e.fullyQualifiedName)==null?void 0:m.substring((d=e.fullyQualifiedName)==null?void 0:d.lastIndexOf("@")),l=e.ID?e.ID.toString():s,f=(v=e.fullyQualifiedName)==null?void 0:v.split("@")[0],p=t;if(e.$Type!==Tt.UIAnnotationTypes.CollectionFacet&&"Target"in e){let E=Ml(e.Target);if(!E){oe(i,{severity:W.LogSeverity.Error,message:Q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:I,stopProcessing:N,namespace:j}=BK(n,l,p,E,r,a);if(N)return;l=b,p=I,f=j}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:f}}o(F0,"getSectionFacet");function HK(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(HK,"getDecodedPathElement");var iE=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),D0=o((e,t,n,i,r,a=!1)=>{if(!t)return;let s=e,l=t.split("/");for(let f=0;f<l.length;f++){let p=l[f];if(p==="[]")continue;let d=HK(p,n,i);if(r!==void 0&&!a&&l.length-1===f)s[d]=r;else if(!s[d]){if(a)return;s[d]=iE(l[f+1])}typeof s[d]=="string"&&(!r||f<l.length-1)?s[d]={}:s=s[d]}return s},"resolveManifestPath"),ko=o((e,t,n,i,r=!1)=>D0(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),_0=o((e,t,n,i,r)=>{D0(e,t,i,r,n)},"setManifestSectionByPathV4");function rE(e){let t,n,i;switch(e.$Type){case Tt.UIAnnotationTypes.DataField:t=Ml(e.Value);break;case Tt.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Ml(e.Value);break;case Tt.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${W.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Tt.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${at(e.Action)}`);break;case Tt.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Ml(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Tt.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${at(e.Action)}`);break;case Tt.UIAnnotationTypes.DataFieldWithNavigationPath:i=Ml(e.Value),n=Ml(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(rE,"getSchemaKeyOfLineItemRecord");function GK(e,t,n){return e.includes(Tt.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Tt.UIAnnotationTerms.Chart:e.includes(Tt.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Tt.UIAnnotationTerms.Identification:n&&e.includes(Tt.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Tt.UIAnnotationTerms.LineItem:e.includes(Tt.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Tt.UIAnnotationTerms.FieldGroup:e.includes(Tt.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Tt.UIAnnotationTerms.DataPoint:e.includes(Tt.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Tt.UIAnnotationTerms.PresentationVariant:void 0}o(GK,"getUIAnnotationTerm");function WK(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Fu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Fu.CommunicationAnnotationTerms.Address:void 0}o(WK,"getCommunicationAnnotationTerm");function KK(e,t,n){return GK(e,t,n)||WK(e,t)}o(KK,"getAnnotationTerm");function XK(e,t,n,i,r){var p,d,m,v,E,b,I,N,j;let a=oi(W.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(KK(s,a,i)){case Tt.UIAnnotationTerms.Chart:{n[s]={base:W.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.Identification:{n[s]={base:W.FacetBase.Identification},n[s].target=(d=t==null?void 0:t.Target)==null?void 0:d.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.LineItem:{if(!s.includes(Tt.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let G=s.split("::");G[G.length-1]=`@${Tt.UIAnnotationTerms.LineItem}`,s=G.join("::")}n[s]={base:W.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.FieldGroup:{n[s]={base:W.FacetBase.Form},n[s].target=(v=t==null?void 0:t.Target)==null?void 0:v.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.DataPoint:{n[s]={base:W.FacetBase.DataPoint},n[s].Label=(E=t==null?void 0:t.Target)==null?void 0:E.$target.Title,n[s].target=(b=t==null?void 0:t.Target)==null?void 0:b.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.PresentationVariant:{n[s]={base:W.FacetBase.PresentationVariant},n[s].target=(I=t==null?void 0:t.Target)==null?void 0:I.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Fu.CommunicationAnnotationTerms.Contact:{n[s]={base:W.FacetBase.Contact},n[s].target=(N=t==null?void 0:t.Target)==null?void 0:N.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Fu.CommunicationAnnotationTerms.Address:{n[s]={base:W.FacetBase.Address},n[s].target=(j=t==null?void 0:t.Target)==null?void 0:j.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:W.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",W.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(XK,"evaluateTargetAnnotation");function oE(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(oE,"getAnnotationPathUsingFullyQualifiedName");function aE(e,t,n,i,r,a=W.FioriElementsVersion.v2,s){var f;let l=F0(e,i,t,s,a,!1);if(l)switch(e.$Type){case Tt.UIAnnotationTypes.ReferenceFacet:{XK(l,e,r,i,t);break}case Tt.UIAnnotationTypes.CollectionFacet:{let p=oE(i,e.fullyQualifiedName),d=r[l.key]={base:W.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!d.ID&&a===W.FioriElementsVersion.v4&&oe(s,{severity:W.LogSeverity.Error,message:Q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(f=e.Facets)==null||f.forEach(m=>{aE(m,t,n,i,d.facets,a,s)});break}}}o(aE,"addFacetToConfig");function bm(e,t,n=W.FioriElementsVersion.v2,i){var l,f;let r={};if(!e||!e.annotations)return;let a=oi(W.UIVOCABULARY,t),s=a&&((f=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:f.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),d=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{aE(m,t,d,e,r,n,i)})}return r}o(bm,"getObjectPageHeaderFacets");function Em(e,t,n=W.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=oi(W.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let f=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,f);s.forEach(d=>{aE(d,t,p,e,r,n,i)})}return r}o(Em,"getObjectPageFacets");function sE(e){var t,n,i,r;if(e[W.ManifestSection.generic]&&Object.keys(e[W.ManifestSection.generic]).length>0||e[W.ManifestSection.ovp]&&Object.keys(e[W.ManifestSection.ovp]).length>0)return W.FioriElementsVersion.v2;{let a=(n=(t=e[W.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[W.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>{let f=typeof a[l].name=="string"?a[l].name:"";return wK.indexOf(f)>-1||ym(f)})||s&&Object.keys(s).find(l=>MK.indexOf(l)>-1)?W.FioriElementsVersion.v4:void 0}}o(sE,"getFEVersionFromManifest");function QK(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[W.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[W.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[W.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[W.ManifestSection.ui5].models[t].dataSource:void 0}o(QK,"getMainService");function V0(e){var i,r;let t=QK(e);if(!t)return W.OdataVersion.v2;let n=(i=e[W.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?W.OdataVersion.v4:W.OdataVersion.v2}o(V0,"getODataVersionFromManifest");function qK(e,t){var i,r;let n;if(e[W.ManifestSection.generic]){let a=e[W.ManifestSection.generic].pages;if(!a){oe(t,{severity:W.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(Ta((i=l.component)==null?void 0:i.name)===W.PageTypeV2.AnalyticalListPage){n=W.TemplateType.AnalyticalListPageV2;break}else if(Ta((r=l.component)==null?void 0:r.name)===W.PageTypeV2.ListReport){n=W.TemplateType.ListReportObjectPageV2;break}}}else n||oe(t,{severity:W.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:W.ManifestSection.generic}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.generic]}});return n}o(qK,"determineV2Template");function _u(e){var i,r,a,s;let t,n=nE(e);if(n===W.PageTypeV4.AnalyticalListPage)t=W.TemplateType.AnalyticalListPageV4;else if(n===W.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[W.ALPViewType.Primary]||l[W.ALPViewType.Secondary])?t=W.TemplateType.AnalyticalListPageV4:t=W.TemplateType.ListReportObjectPageV4}else n===W.PageTypeV4.ObjectPage?t=W.TemplateType.ListReportObjectPageV4:[W.PageTypeV4.CustomPage,W.PageTypeV4.FPMCustomPage].includes(n)&&(t=W.TemplateType.FreestylePageV4);return t}o(_u,"determineV4PageTemplateType");function YK(e){let t;for(let n in e){let i=e[n];if(t=_u(i),t)break}return t}o(YK,"determineV4TemplateFromPages");function zK(e,t){let n=e[W.ManifestSection.ui5].routing&&e[W.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return oe(t,{severity:W.LogSeverity.Info,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.ui5,"routing"]}}),W.TemplateType.ListReportObjectPageV4;let i=YK(n);return i||oe(t,{severity:W.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:W.ManifestSection.ui5}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.ui5,"routing","targets"]}}),i}o(zK,"determineV4Template");function bc(e,t,n){let i;return e[W.ManifestSection.ovp]?i=W.TemplateType.OverviewPageV2:t===W.FioriElementsVersion.v2?i=qK(e,n):t===W.FioriElementsVersion.v4&&(i=zK(e,n)),i}o(bc,"getTemplateTypeFromManifest");function ba(e,t,n){e!=null&&e.ID?(t.title=W.FACETTITLEPREFIX+e.ID,t[W.SchemaTag.keys]=[{name:W.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[W.SchemaTag.keys]=[{name:W.SchemaKeyName.id,value:n.replace(W.UIVOCABULARYALPHADOT,"")}])}o(ba,"addSectionTitle");function cs(e,t,n){e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(cs,"addSectionDescription");function Ul(e,t,n){var i,r;ba(e,t,n),cs(e,t,n),!(e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}o(Ul,"addTargetTitleAndSectionDescription");function w0(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(w0,"addChartFacetID");function jo(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[W.SchemaTag.isViewNode]=!0,i[W.SchemaTag.annotationPath]=t.annotationPath,Ul(t,i,n),i}o(jo,"createDefaultSection");function M0(e,t,n,i=W.FioriElementsVersion.v2,r=!1){var l,f;let a=oi(W.UIVOCABULARY,t),s=[];if(e){let p=a&&((f=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:f.Facets);return p&&(s=p.reduce(function(d,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return d;let v=F0(m,e,t,n,i,!0);return v&&d.push(v),d},s)),s}}o(M0,"getObjectPageFacetSection");var ls=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(f){let p=a&&a===f?r:f.replace(/\?\?/g,"/");if(!(!s[p]&&(a===f&&(p=a),!s[p]))){if(Object.keys(s[p]).length===0||i&&i[i.length-1]===p&&n){Array.isArray(s)?s.splice(Number(p),1):delete s[p],l.pop(),ls(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),Zb=o(e=>e===W.SchemaType.FreestylePage?W.PageTypeV2.CustomPage:e===W.SchemaType.FPMCustomPage?W.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Dt=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case W.SchemaType.Application:{i.filename="App",i.path=`./${W.DirName.Schemas}/${i.filename}`;break}case W.SchemaType.ListReport:case W.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:Zb(e),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}case W.PageTypeV4.FPMCustomPage:case W.SchemaType.FPMCustomPage:{i.filename=n?`${W.SchemaType.FPMCustomPage}_${n}`:Zb(W.SchemaType.FPMCustomPage),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}default:{i.filename=Zb(e),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function Sm(e,t,n,i){if(e===W.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o(Sm,"generatePageId");function cE(e,t,n){let i=t==null?void 0:t.properties,r=t==null?void 0:t.required;if(!i&&(t!=null&&t.$ref)){let s=t==null?void 0:t.$ref,l=e.definitions[s.split(U)[1]];typeof l=="object"&&(i=l.properties,r=l.required)}if(!i||Object.keys(i).length===0)return[];let a=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(f=>l[f]!==void 0)&&a.push(s)}return a}o(cE,"findMatchingKeysByAdditionalProperties");function JK(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split(U)[1],s=t.definitions[a];if(typeof s=="object"&&typeof n=="object"){let l=s.controlProperty;if(l)r.includes(n[l])&&i.push(a);else if(typeof s.additionalProperties=="object"){let f=Object.keys(s.properties||{}),p=cE(t,s.additionalProperties,n);(f.some(d=>d in n)||p.length||Object.keys(n).length===0&&f.length)&&i.push(a)}}}o(JK,"fillArrayFromAnyOfReference");function ZK(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(U)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{JK(r,n,t,i)}),i.length===0))return;return i}o(ZK,"fillArrayFromPropertyDefinition");function eX(e){return e.replace(W.UIVOCABULARYDOT,"")}o(eX,"extractUIAnnotationType");function tX(e,t,n,i,r,a,s,l){var p,d,m,v,E;let f={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(f.targetDefinition=t.definitions[b],((p=f==null?void 0:f.targetDefinition)==null?void 0:p.dataType)!==eX(Tt.UIAnnotationTypes.DataFieldForActionGroup)&&((d=f==null?void 0:f.targetDefinition)!=null&&d.$ref)||((m=f==null?void 0:f.targetDefinition)==null?void 0:m.type)==="array")return f=Uo(t,n,i,f.targetDefinition,r,a,s),f;e.length>1&&e.forEach(j=>{j!==""&&(f.targetDefinition.properties={...f.targetDefinition.properties,...t.definitions[j].properties})}),f.title=(v=f==null?void 0:f.targetDefinition)!=null&&v.title?f.targetDefinition.title:n;let I=b==null?void 0:b.split("<")[0],N=i||{};f.configObject=a.createInstance(s,I,N,(E=f==null?void 0:f.targetDefinition)==null?void 0:E.controlProperty)}else f.targetDefinition=l,f.title=f.targetDefinition.title?f.targetDefinition.title:r,f.configObject=i;return f}o(tX,"determineNextDefinitionFromDefinitionArray");function Uo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Uo(e,t,n,i.items,r,a,s),l;let f=ZK(i,n,e);if(f)return l=tX(f,e,t,n,r,a,s,i),l}o(Uo,"getNextTargetDefinition");var lE=o((e,t,n)=>{let i=e.slice();return t.forEach((r,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[a]=(0,L0.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function Am(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(Am,"convertEnumToCSV");function Yi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Yi,"convertActionKeyToStableId");function zt(e){return e==null?void 0:e.split(U)[1]}o(zt,"getDefinitionKey");function Pm(e){return`#/definitions/${e}`}o(Pm,"getDefinitionsRef");function xm(e){return e instanceof Error?e.message:String(e)}o(xm,"getErrorMessage");function Ec(e,t){return e==null?void 0:e.includes(t)}o(Ec,"isFeatureSupported");function $o(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o($o,"updatePropertyIndices");function Cm(e,t){let n=e;for(let i of t)if(i!==void 0)if(typeof n=="object"&&i in n)n=n[i];else return;return n}o(Cm,"getJSONPropertyByPath");function k0(e){return e=e.replace(W.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(k0,"removeNamespaces");function $l(e){return e=e.replace(W.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o($l,"replaceNamespaces");function Ea(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith(U))return t.substring(U.length)}o(Ea,"getRefType");function ym(e){if(e===W.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return W.PageTypeV4.FPMCustomPage;if(e!=null&&e.startsWith(`${W.v4.FE_NAMESPACE_V4}.`)){let t=e.split("."),n=t[t.length-1];if(n in W.PageTypeV4)return W.PageTypeV4[n]}}o(ym,"convertTemplateNameToPageTypeV4");function Im(e,t){if(e===t)return!0;let n=ym(e);return n?n===ym(t):!1}o(Im,"compareTemplateNames");var No=require("@sap-ux/vocabularies-types/vocabularies/UI"),ae=Z(re());var zi=Z(re());var Jt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Om=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),zn=o((e,t)=>{let n,i=zi.FACETTITLEPREFIX;return t!==void 0&&t.includes(i)?n=t.split(i)[1]:n=e.replace(new RegExp("/@","g"),"::").replace(/@com.sap/g,"com.sap"),n},"convertSectionId");function nX(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o(nX,"escapeId");var j0=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(j0||{}),U0=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(U0||{});function iX(e,t,n){let i;return e=e.map(function(r){if(r===zi.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===zi.PropertyName.sections)return i=t[a+1],t[a+1]=zn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(iX,"mapBreadcrumbs");var fE=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=iX(t,s,r)),s[0]===zi.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,zi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,zi.VOCWITHSLASH):t[0]===zi.PropertyName.table&&(a=t[0]);let f=s[s.length-1].replace(/::com.sap.vocabularies/g,zi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,zi.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,d=f.indexOf(":::");return f.startsWith("DataField")&&d>-1?(f=f.replace("/",":2f"),p=`${e}template:::TableColumn:::${f.substring(0,d)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${f.substring(d+3)}`):(f=f.replace("/","_"),p=`${e}${t.join("::")}-${f}`),nX(p)},"buildColumnControlId"),Ji=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function rX(e){let t=zi.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(rX,"determinePattern");var uE=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split(U)[1]]:a,f=a.description?a.description:l.description,p=rX(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(d=>{s.enum.indexOf(d)===-1&&s.enum.push(d)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},f&&(r[n].description=f,delete a.description)},"addPatternForBindingChangeOfEnum"),Jn=o((e,t,n)=>{uE(e,t,n)},"addPatternForBindingChangeOfEnumLR"),mt=o((e,t,n)=>{let i=Object.values(j0);uE(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ai=o((e,t,n)=>{let i=Object.values(U0);uE(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function Sc(){}o(Sc,"doNotDelete");var Ete=Z(B0());var pE=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(pE,e),"syncRule");function Mn(e,t){let n;return e&&(n=Reflect.getMetadata(pE,e,t)),n}o(Mn,"getReflectMetadata");function H0(e){let t;return e&&(t=Reflect.getMetadata(pE,e)),t}o(H0,"getReflectTypeMetadata");var Zi=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),G0=Symbol("childId"),kt=o(e=>Reflect.metadata(G0,e),"childId"),Rm=o((e,t)=>Reflect.getMetadata(G0,e,t),"getChildId"),Lm=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),oX=Symbol("descriptionSrcURL"),xe=o(e=>Reflect.metadata(oX,e),"descriptionSrcURL");var aX=Symbol("validityMetadataKey"),x=o(e=>Reflect.metadata(aX,e),"validity");function Bl(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(Bl,"getTextForDeprecated");var J0=Z(Y0()),Z0=Z(re());var e_=J0.default.change,z0={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function t_(e,t){let n="";try{for(let i in z0)e[i]===void 0&&(e[i]=z0[i]);n=e_.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(t_,"createChangeString");function vr(e){try{return e_.parse(e)}catch{return!1}}o(vr,"parseChangeString");function n_(e,t,n,i,r){let a=n.layer?n.layer===Z0.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:a};return e[i]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,i):e[i].toString().startsWith("{")?(s.content.newBinding=e[i],s.type="propertyBindingChange"):s.content.newValue=e[i]:s.content.newValue=null,s}o(n_,"fillFlexChangeContent");function Nm(e,t){return t_(e,t)}o(Nm,"exportToFlexChange");var Ac=Z(re());function Hl(e,t,n,i,r,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let f=l(t,r,n,a);f!==void 0&&(i[n]=f)}else t[s]!==void 0&&(i[n]=t[s])}o(Hl,"importProperty");function Fm(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(oe(i,{severity:Ac.LogSeverity.Warning,message:Bl(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(Fm,"checkDeprecatedProperties");function dE(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(U)[1]];return dE(n,t)}else return e.title?e.title.startsWith(Ac.FACETTITLEPREFIX)?e.title.split(Ac.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(dE,"getSectionTitle");function Dm(e){let t=e.split(`${Ac.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(Dm,"getTargetFromCustomColumnRef");function Br(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(Br,"removeEmptyStructure");var _t=require("@sap-ux/vocabularies-types/vocabularies/UI");var Ho=require("@sap-ux/vocabularies-types/vocabularies/UI");var Aa=require("@sap-ux/vocabularies-types/vocabularies/UI");var i_=Z(re()),te=Z(re()),r_=require("path");function Ot(e,t,n,i,r,a,s){if(!n)return;let l={},f=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let d in n.properties){let m=Mn(e,d);if(m!=null&&m.manifest){let v=m.manifest.path([i],t,p,...r);l=ko(t,v,a,p,!0),l&&Object.keys(l).length>0&&(Hl(m,l,d,e,a,r),Fm(f,l,v,s))}}}o(Ot,"importSettingsOfObject");var yE="DataFieldForActionGroup";function dX(){return([e,t],[n,i])=>t[te.SchemaTag.propertyIndex]-i[te.SchemaTag.propertyIndex]}o(dX,"sortByPropertyIndex");function Vu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(dX())}o(Vu,"sortPropertiesRecords");function gX(e){let t;return typeof e=="object"?"header"in e?t=e.header:"text"in e?t=e.text:"title"in e?t=e.title:"label"in e&&(t=e.label):typeof e=="string"&&(t=e),t}o(gX,"getExtensionText");function gE(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||te.v4.Placement.After)===te.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(gE,"addExtensionToSortedArray");function mX(e,t,n,i,r){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var f,p,d;return((f=l.position)==null?void 0:f.placement)==="Before"&&((p=l.position)==null?void 0:p.anchor)===((d=n.position)==null?void 0:d.anchor)})===-1&&(i.splice(i.length,0,[t,r]),delete e[t])}o(mX,"addRemainingTargetByBefore");function o_(e,t,n,i){let r=t.includes(te.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=gX(e);return{$ref:`${U}${r}`,description:a,keys:[{name:te.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(o_,"getExtensionDetails");function mE(e,t,n,i,r=!1){var l,f;let a=Object.entries(e).length;for(let p of Object.keys(e)){let d=e[p],m=o_(d,t,p);if((l=d.position)!=null&&l.anchor&&((f=d.position)!=null&&f.placement)){let v=n.findIndex(E=>E[0]===d.position.anchor);v>-1?(gE(d,n,v,p,m),delete e[p]):p===d.position.anchor||Object.keys(e).indexOf(d.position.anchor)===-1?(oe(i,{severity:Fi.LogSeverity.Error,message:Q.t("INVALIDANCHOR",{id:p,anchor:d.position.anchor}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&mX(e,p,d,n,m)}else r&&(gE(d,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?mE(e,t,n,i):s>0&&mE(e,t,n,i,!0)}o(mE,"adjustCustomExtReferringToCustomExt");function hX(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||te.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===te.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(hX,"getExtensionAnchor");function yX(e,t){var i;let n=[];for(let r in e){let a=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===a);a&&!s&&n.push(r)}return n}o(yX,"getLocalExtensionsToSkip");function TX(e,t,n){var l,f;let i=((l=e.position)==null?void 0:l.placement)||te.v4.Placement.After;if((f=e.position)==null?void 0:f.anchor)return n.length;let a=o((p,d)=>{for(let m of n){let v=t[m[0]];if(d(v))break;p++}return p},"findNextIndex"),s=0;return i===te.v4.Placement.Before?s=a(0,p=>!p):s=a(-1,p=>{var d,m;return!!(p&&((d=p==null?void 0:p.position)!=null&&d.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==te.v4.Placement.Before))}),s>-1?s:0}o(TX,"getExtensionIndexByMergedApproach");function vX(e,t,n,i,r=!1){return r?TX(e,t,n):n.findIndex(a=>a[0]===i)}o(vX,"getExtensionIndex");function bX(e,t,n,i,r){oe(e,{severity:Fi.LogSeverity.Error,message:Q.t("INVALIDEXTENSION",{id:t}),location:{path:te.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(bX,"handleInvalidExtension");function Sa(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},f=yX(l,s);if(!l)return[];for(let p of Object.keys(l)){let d=l[p];if(f!=null&&f.includes(p))continue;let m=o_(d,n,p,te.ActionType.Custom);if(typeof d!="object"){bX(r,p,t,m,l);continue}if(!(i in d)){delete l[p];continue}let v=hX(d,s);if(v){let E=vX(d,e,t,v,a);E>-1&&(gE(d,t,E,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&mE(l,n,t,r),t}o(Sa,"addExtensionToArray");function TE(e,t){let n=[];for(let i of Object.keys(e.properties))i.indexOf("::")>-1&&n.push(i.substring(i.indexOf("::")+2));t.properties.properties.items.enum=n}o(TE,"addEnumForProperties");function EX(e,t,n,i=te.DefinitionName.CustomColumn){if(i===te.DefinitionName.CustomColumn||i.indexOf(te.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];TE(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[te.SchemaTag.propertyIndex]=r}}o(EX,"addColumnPropertyIndexAndEnum");function Pc(e,t,n,i=te.DefinitionName.CustomColumn,r,a){var v,E,b,I;let s=r||te.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let f=Vu(l),p=a?a.replace(/::/g,"/"):`@${Aa.UIAnnotationTerms.LineItem}`,d=(I=(b=(E=(v=t.options)==null?void 0:v.settings)==null?void 0:E.controlConfiguration)==null?void 0:b[p])==null?void 0:I.columns;d&&(f=Sa(d,f,i,void 0,n)),EX(f,e,l,i);let m={};f.forEach(([N,j])=>m[N]=j),e.definitions[s].properties=m}o(Pc,"addCustomColumnDefinition");function a_(e,t){let n=t.$Type===Aa.UIAnnotationTypes.DataFieldForActionGroup,i;return e.lineItemId.startsWith(te.DefinitionName.LineItemsOfView)?i=n?te.DefinitionName.ViewToolBarActionGroup:te.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(te.DefinitionName.LineItems)?i=n?te.DefinitionName.ToolBarActionGroup:te.DefinitionName.ToolBarAction:i=n?te.DefinitionName.ObjectPageToolBarActionGroup:te.DefinitionName.ObjectPageToolBarAction,i}o(a_,"determineActionDefinitionName");function SX(e,t,n){e[te.SchemaTag.keys]=[],t[te.SchemaKeyName.semanticObject]&&e[te.SchemaTag.keys].push({name:te.SchemaKeyName.semanticObject,value:t[te.SchemaKeyName.semanticObject]});let{key:i,ns:r}=Rc(n,!0);e[te.SchemaTag.keys].push({name:te.SchemaKeyName.action,value:i}),r&&(e[te.SchemaTag.target]=r)}o(SX,"addTargetAndKeysOfAction");function s_(e,t=!0){let{lineItemData:n,actions:i,lineItemPath:r,lineItemRecord:a,index:s}=e;if(a.Determining===!0)return;let l=a_(n,a),f=ci(a,n.entityType),p=a.$Type.split(`${te.UIVOCABULARY}.`)[1],d=typeof a.Action=="string"?a.Action:a.Action.path,m=wm(d),v=i.properties[`${p}::${m}`]={description:f};if(t?v.$ref=p_(l,at(m),n.appSchema,r):(v.properties={},v.type="object",v.isViewNode=!0),v[te.SchemaTag.propertyIndex]=s,v[te.SchemaTag.dataType]=er(a),SX(v,a,d),v[te.SchemaTag.annotationType]=a.$Type,t){let E=v.$ref.replace(U,""),b=vt(l,E,n.appSchema,!1);b[te.SchemaTag.annotationPath]=`${r}/${s}`}else v[te.SchemaTag.annotationPath]=`${r}/${s}`}o(s_,"addActionRecordToSchema");function c_(e,t=!0){let{lineItemData:n,lineItemRecord:i,lineItemPath:r,index:a,actions:s}=e,l=a_(n,i),f=Hr(i),p={};t?(s.properties[`${f}`]={$ref:si(l,at(f))},p=vt(l,at(f),n.appSchema)):s.properties[`${f}`]=p,Ca(p,Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),p.properties={},p.description=ci(i,n.entityType),p.type="object",p.isViewNode=!0,p[te.SchemaTag.propertyIndex]=a,p[te.SchemaTag.dataType]=er(i),p[te.SchemaTag.annotationPath]=`${r}/${a}`,(i.Actions??[]).forEach((d,m)=>{let v={...e,lineItemRecord:d,lineItemPath:`${p[te.SchemaTag.annotationPath]}/Actions`,actions:p,index:m};s_(v,t)})}o(c_,"addGroupActionRecordToSchema");function vE(e){let{lineItemRecord:t,lineItemDefinition:n}=e;t.Inline!==!0||t.Determining===!0?s_(e,!n):bE(e)}o(vE,"addLineItemActionDefinition");function bE(e){var d;let{lineItemData:t,lineItemRecord:n,lineItemDefinition:i,lineItemPath:r,index:a,columnDefinitionName:s}=e,l=n.$Type===Aa.UIAnnotationTypes.DataFieldForAction?`${s}Action`:s,f=t.lineItemId;if((d=n.Target)!=null&&d.value){let m=`@${oi(te.UIVOCABULARY,t.oDataServiceAVT)}.`;n.Target.value=n.Target.value.replace(m,"@")}let p=Hr(n).replace(/\//g,"::");if(p){let m=i;m||(m=t.appSchema.definitions[f]);let v=m.properties,E={description:ci(n,t.entityType)};i?(E.properties={},E.type="object",E.isViewNode=!0):E.$ref=U+l,E[te.SchemaTag.annotationType]=n==null?void 0:n.$Type,E[te.SchemaTag.annotationPath]=`${r}/${a}`,E[te.SchemaTag.propertyIndex]=a,E[te.SchemaTag.dataType]=er(n),v[p]=E,jm(n,v,p)}}o(bE,"addLineItemRecordToSchema");function EE(e,t,n,i,r=te.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{let l={lineItemData:e,actions:t,lineItemPath:n,lineItemRecord:s,index:a,lineItemDefinition:i,columnDefinitionName:r};fs.getStrategy(s.$Type).addLineItemDefinition(l),a++})}o(EE,"appendLineItemsToSchema");function xc(e,t=te.DefinitionName.TableColumn,n=te.DefinitionName.CustomColumn,i=te.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=Mm(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);EE(e,r,a,void 0,t)}o(xc,"addLineItemsTypeToSchema");function Cc(e,t,n,i=te.DefinitionName.Position,r){var p,d,m,v,E;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let b in a)b!=="custom"&&s.push(b);let l=t!==te.DefinitionName.LineItems?r:`@${Aa.UIAnnotationTerms.LineItem}`,f=(E=(v=(m=(d=n.options)==null?void 0:d.settings)==null?void 0:m.controlConfiguration)==null?void 0:v[l])==null?void 0:E.columns;if(f)for(let b in f)s.indexOf(b)===-1&&s.push(b);if(s.length>0){let b=e.definitions[i].properties.anchor;xa(s,b)}}o(Cc,"addFragmentEnumForAnchor");function go(e,t,n=te.DefinitionName.CustomActionPosition){us(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(go,"addEnumForActionAnchor");function _m(e,t,n,i){var a;let r;for(let s in e){let l=((a=e[s].options)==null?void 0:a.settings)||{};if((i&&l.contextPath===i||(n==null?void 0:n.name)&&l.entitySet===n.name)&&(Im(t,e[s].name)||t===te.v4.FE_TEMPLATE_V4_ALP&&e[s].name===te.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[s];break}}return r}o(_m,"findPageV4");function l_(e,t){let n,i=e.properties[te.PropertyName.table];return t.templateType===te.TemplateType.AnalyticalListPageV4?(n=te.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${U}${te.DefinitionName.ALPTableView}`,delete e.definitions[te.DefinitionName.Table],delete e.definitions[te.DefinitionName.LRChartView],delete e.definitions[te.DefinitionName.LRTableView],delete e.definitions[te.DefinitionName.MultiTableModeV4]):t.templateType===te.TemplateType.ListReportObjectPageV4&&(n=te.DefinitionName.Table,delete i.anyOf,i.$ref=`${U}${te.DefinitionName.Table}`,e.definitions[n].properties[te.PropertyName.annotationPath][te.SchemaTag.hidden]=!0,delete e.definitions[te.DefinitionName.ALPTableView],e.properties[te.PropertyName.defaultPath][te.SchemaTag.hidden]=!0),n}o(l_,"alignSchemaWithTemplateType");function Pa(e,t,n,i=te.DefinitionName.CustomTableAction,r="",a=""){var d,m,v,E,b,I,N,j,G,$;let s=e.definitions[r];if(!s)return;let l=Vu(s),f;a?i.indexOf(te.DefinitionName.CustomFormActionOP)!==-1?f=a.replace(/::/g,"#"):f=a.replace(/::/g,"/"):i===te.DefinitionName.CustomFormActionOP?f=`@${Aa.UIAnnotationTerms.FieldGroup}`:f=`@${Aa.UIAnnotationTerms.LineItem}`;let p;if(r.includes(te.DefinitionName.ObjectPageCustomSectionActions)?p=(I=(b=(E=(v=(m=(d=t.options)==null?void 0:d.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:E.sections)==null?void 0:b[f])==null?void 0:I.actions:p=($=(G=(j=(N=t.options)==null?void 0:N.settings)==null?void 0:j.controlConfiguration)==null?void 0:G[f])==null?void 0:$.actions,p&&(l=Sa(p,l,i,"press",n)),l){for(let ee=0;ee<l.length;ee++)l[ee][1][te.SchemaTag.propertyIndex]=ee;let se={};l.forEach(([ee,le])=>se[ee]=le),e.definitions[r].properties=se}}o(Pa,"addCustomActionDefinition");function Vm(e,t,n,i=te.DefinitionName.CustomHeaderActionOP,r=""){var p,d,m,v,E,b,I,N;let a=e.definitions[r];if(!a)return;let s=Vu(a),l;[te.DefinitionName.CustomHeaderAction,te.DefinitionName.CustomHeaderActionOP].includes(i)?l=(v=(m=(d=(p=t.options)==null?void 0:p.settings)==null?void 0:d.content)==null?void 0:m.header)==null?void 0:v.actions:l=(N=(I=(b=(E=t.options)==null?void 0:E.settings)==null?void 0:b.content)==null?void 0:I.footer)==null?void 0:N.actions,l&&(s=Sa(l,s,i,"press",n));let f={};if(s){for(let j=0;j<s.length;j++)s[j][1][te.SchemaTag.propertyIndex]=j;s.forEach(([j,G])=>f[j]=G)}e.definitions[r].properties=f}o(Vm,"addHeaderFooterCustomActionDefinition");function Ic(e,t,n){let i=Cm(e,[te.ManifestSection.ui5,"routing","targets"]);if(!i){oe(n,{severity:Fi.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}let r=Cm(i,[t]);if(!r){oe(n,{severity:Fi.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:t}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}return r}o(Ic,"getManifestPage");function Oc(e,t,n,i,r){var a,s;if(r){let l=((a=n["sap.app"])==null?void 0:a.id)||"",f="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),d=p.pop();d=`${d}.${i}.${f}`;let m=(0,r_.join)(...p,d),v=e.find(E=>E.dataSourceUri.endsWith(m));if(v){let E=(s=t.options)==null?void 0:s.settings;return{file:v,relativeFilePath:m,connection:{contextPath:E==null?void 0:E.contextPath,entitySet:E==null?void 0:E.entitySet}}}}}o(Oc,"getPageCustomExtensionFile");function Bo(e,t,n,i){let r=Ic(n,t,i),a=Cm(r,["options","settings","viewName"]);return r&&typeof a=="string"?Oc(e,r,n,"view",a):void 0}o(Bo,"getPageCustomViewFile");function f_(e,t,n,i,r,a,s){var d,m,v,E,b,I,N,j,G,$,se,ee;let l=Vu(t),f=new Map;if(l=l.map(le=>{let Le=km(e,le[1],le[0],{keyProperties:[te.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return f.set(Le.const,le[0]),[Le.const,le[1]]}),a){let le=(b=(E=(v=(m=(d=n.options)==null?void 0:d.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:E.sections)==null?void 0:b[a];le&&"subSections"in le&&(l=Sa(le.subSections,l,i,"template",s,r))}else if(i.includes(te.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let le=(j=(N=(I=n.options)==null?void 0:I.settings)==null?void 0:N.content)==null?void 0:j.header;le&&"facets"in le&&(l=Sa(le.facets,l,i,"template",s,r))}else{let le=(ee=(se=($=(G=n.options)==null?void 0:G.settings)==null?void 0:$.content)==null?void 0:se.body)==null?void 0:ee.sections;le&&(l=Sa(le,l,i,"template",s,r))}for(let le=0;le<l.length;le++)l[le][1][te.SchemaTag.propertyIndex]=le;let p={};l.forEach(([le,Le])=>{le=f.get(le)||le,p[le]=Le}),t.properties=p}o(f_,"addCustomSectionDefinition");function u_(e,t,n){var l,f,p;let i=Vu(t),r=new Map;i=i.map(d=>{let m=km(e,d[1],d[0],{keyProperties:[te.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,d[0]),[m.const,d[1]]});let a=(p=(f=(l=n.options)==null?void 0:l.settings)==null?void 0:f.controlConfiguration)==null?void 0:p[`@${Aa.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=Sa(a.filterFields,i,te.DefinitionName.CustomFilterField,"template"));for(let d=0;d<i.length;d++)i[d][1][te.SchemaTag.propertyIndex]=d;let s={};i.forEach(([d,m])=>{d=r.get(d)||d,s[d]=m}),t.properties=s}o(u_,"addCustomFilterFieldDefinition");function hE(e,t,n=!1){let{appSchema:i,factory:r,actionsInConfig:a,actionKey:s,manifest:l,routingId:f,manifestSectionId:p,targetAnnotation:d}=e,m=(t??"").split("<")[0],v=r.createInstance(i_.PageTypeV4.ObjectPage,m),E=[s.replace("/","??")];if(d&&E.push(d),v){let b=a[s]=v;Ot(b,l,i.definitions[t],f,E,p),n||Br(a,s)}}o(hE,"importActionToConfigurationObject");function AX(e,t){let{actionPropertyDefinition:n}=e,i=zt(t.$ref||n.$ref);hE(e,i)}o(AX,"importSingleActionSettingsOfReference");function PX(e,t){let{actionPropertyDefinition:n,appSchema:i,actionsInConfig:r,actionKey:a}=e,s=zt(t.$ref??n.$ref);hE(e,s,!0);let l=r[a];Ca(l,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let{properties:f}=t;for(let p in f){let d=f[p],m=zt(d.$ref),v=i.definitions[m],E=zt(v.$ref??d.$ref),b={...e,actionsInConfig:l,actionKey:p};hE(b,E)}Br(r,a)}o(PX,"importGroupActionSettingsOfReference");function Gl(e){let{actionPropertyDefinition:t,appSchema:n}=e,i=zt(t.$ref),r=n.definitions[i];r.dataType===yE?PX(e,r):AX(e,r)}o(Gl,"importActionSettingsOfReference");var FE=class FE{addDefinition(t){d_(t)}addLineItemDefinition(t){bE(t)}};o(FE,"DataFieldStrategy");var mo=FE,DE=class DE extends mo{generateStableId(t){return Ia("DataFieldForAction::"+t.Action)}generateDescription(t,n){let i=va(t.Label,n);return vm(t,i)}addDefinition(t){wu(t)}addLineItemDefinition(t){vE(t)}};o(DE,"DataFieldForActionStrategy");var SE=DE,_E=class _E extends mo{generateStableId(t){return Ia("DataFieldForActionGroup::"+t.ID)}generateDescription(t,n){let i=va(t.Label,n);return t.Label??t.ID??i}addDefinition(t){wu(t)}addLineItemDefinition(t){var n;c_(t,!((n=t.lineItemData)!=null&&n.isMacro))}};o(_E,"DataFieldForActionGroupStrategy");var AE=_E,VE=class VE extends mo{generateStableId(t){return"DataFieldForIntentBasedNavigation::"+HE(t)}generateDescription(t,n){let i=va(t.Label,n);return vm(t,i)}addDefinition(t){wu(t)}addLineItemDefinition(t){vE(t)}};o(VE,"DataFieldForIntentBasedNavigationStrategy");var PE=VE,wE=class wE extends mo{generateStableId(t){var i,r;let n=((i=t.Target)==null?void 0:i.$AnnotationPath)??((r=t.Target)==null?void 0:r.value)??"";return"DataFieldForAnnotation::"+Ia(n)}generateDescription(t,n){var a,s,l,f;let i=Du(t,n);return va(t.Label,n)||i||((s=(a=t==null?void 0:t.Target)==null?void 0:a.$target)==null?void 0:s.Title)||((f=(l=t==null?void 0:t.Target)==null?void 0:l.value)==null?void 0:f.split("UI.v1.")[1])}};o(wE,"DataFieldForAnnotationStrategy");var xE=wE,ME=class ME extends mo{generateStableId(t){let n="DataFieldWithAction::";return"Value"in t&&t.Value&&(n+=ps(t.Value)+"::"),n+=t.Action,Ia(n)}generateDescription(t,n){let i=va(t.Label,n);return vm(t,i)}};o(ME,"DataFieldWithActionStrategy");var CE=ME,kE=class kE extends mo{generateStableId(t){return Ia("DataField::"+ps(t.Value))}generateDescription(t,n){let i=va(t.Label,n);return tE(t,n,i)}};o(kE,"DataFieldStrategyDefault");var IE=kE,jE=class jE extends mo{generateStableId(t){let n="DataFieldWithIntentBasedNavigation::";return n+=ps(t.Value)+"::",n+=HE(t),Ia(n)}generateDescription(t,n){return Du(t,n)||t.Value.path}};o(jE,"DataFieldWithIntentBasedNavigationStrategy");var OE=jE,UE=class UE extends mo{generateStableId(t){let n="DataFieldWithNavigationPath::"+ps(t.Value);return t.Target&&t.Target.$NavigationPropertyPath&&(n+="::"+t.Target.$NavigationPropertyPath),Ia(n)}generateDescription(t,n){let i=va(t.Label,n);return tE(t,n,i)}};o(UE,"DataFieldWithNavigationPathStrategy");var RE=UE,$E=class $E extends mo{generateStableId(t){return Ia("DataFieldWithUrl::"+ps(t.Value))}generateDescription(t,n){let i=Du(t,n);return va(t.Label,n)||i||(typeof t.Value=="string"?t.Value:t.Value.path)}};o($E,"DataFieldWithUrlStrategy");var LE=$E,BE=class BE{constructor(){this.strategies=new Map,this.registerStrategy(Ho.UIAnnotationTypes.DataFieldForAction,new SE),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldForActionGroup,new AE),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldForIntentBasedNavigation,new PE),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldForAnnotation,new xE),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldWithAction,new CE),this.registerStrategy(Ho.UIAnnotationTypes.DataField,new IE),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldWithIntentBasedNavigation,new OE),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldWithNavigationPath,new RE),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldWithUrl,new LE)}registerStrategy(t,n){this.strategies.set(t,n)}getStrategy(t){return this.strategies.get(t)}};o(BE,"DataFieldStrategyContext");var NE=BE,fs=new NE;function wm(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/[/@()#*]/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(wm,"replaceSpecialChars");var Ia=o(function(e){return wm(k0(e))},"prepareId");function xX(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(xX,"evaluateConcat");function ps(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 xX(e);if(e&&typeof e=="string")return wm(e.replace(/ /g,"_"))}o(ps,"getStableIdPartFromValue");var HE=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),Hr=o(function(e){let t=fs.getStrategy(e.$Type);return t==null?void 0:t.generateStableId(e)},"getStableIdPartFromDataField");var fe=Z(re());var De=Z(re());var tr=require("@sap-ux/vocabularies-types/vocabularies/UI"),y_=require("path"),T_=Z(vc());var Um="ResponsiveTableWithMultiSelect<LineItems>",$m="ResponsiveTableWithInlineDelete<LineItems>",CX="TreeTable<LineItems>",IX="AnalyticalTable<LineItems>",OX="GridTable<LineItems>",GE=[Um,$m,CX,IX,OX],g_=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],m_="template::",Bm="template:::ObjectPageAction:::";function RX(e,t,n){e.definitions[De.DefinitionName.LineItems]&&(e.definitions[De.DefinitionName.LineItems].properties.custom={$ref:`${U}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${U}${n}`},description:"Custom Columns"},e.definitions[t][De.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[De.SchemaTag.artifactType]=De.ArtifactType.Manifest)}o(RX,"addCustomColumnDefinition");function LX(e,t){let n;return e==="TableColumnActionIntentBased"?n=rE(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=at(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===tr.UIAnnotationTypes.DataFieldForAction?n=at(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=at(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(LX,"getActionId");function WE(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=LX(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let f=`${s}${i}<${l}>`,p=ci(n.lineItemRecord,n.entityType);t.properties[l]={$ref:U+f},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:d,ns:m}=Rc(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[f]={...JSON.parse(JSON.stringify(e.definitions[a])),description:p,keys:[{name:"Action",value:d}],annotationPath:`${n.lineItemPath}/${r}`},m&&(e.definitions[f][De.SchemaTag.target]=m)):(e.definitions[f]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[f][De.SchemaTag.isViewNode]=!0,e.definitions[f][De.SchemaTag.keys]=[{name:De.SchemaKeyName.action,value:d}],m&&(e.definitions[f][De.SchemaTag.target]=m),e.definitions[f][De.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}o(WE,"handleActionRecord");function NX(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===tr.UIAnnotationTypes.DataFieldForAction||t.$Type===tr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===tr.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===tr.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(NX,"getColumnActionType");function FX(e,t){let n=[];if(!(e.$Type!==tr.UIAnnotationTypes.DataFieldForAction&&e.$Type!==tr.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===tr.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===tr.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===tr.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===tr.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),NX(t,e,n),n}o(FX,"getActionType");function v_(e,t,n){let i=rE(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:U+De.DefinitionName.TableColumn,description:ci(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Km(r.properties[i],e.lineItemRecord),jm(e.lineItemRecord,r.properties,i)}}o(v_,"generateGenericColumn");function DX(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{WE(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&WE(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{WE(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":v_(i,t,r)}}o(DX,"handleAnyAction");function Mu(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(Mu,"retrieveNameWithoutVocabularyFromVisualization");function Wl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:f}=Mm(e,t,n,i,r);if(n){let p=0;n.forEach(d=>{let m={lineItemPath:f,lineItemRecord:d,lineItemId:r,entityType:i},v=FX(d,r);v?v.forEach(E=>{DX(E,t,s,m,p,l,r)}):v_(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${U}${a}`})}o(Wl,"addLineItemsType");function _X(e,t,n){var r,a;let i=(a=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:a.leadingProperty;if(i){let s=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=s==null?void 0:s.reduce((l,f)=>(l.includes(f.name)||l.push(f.name),l),[])}}o(_X,"addListReportLeadingProperties");function VX(e,t,n,i){var s,l,f,p,d,m;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let a=(d=(p=(f=n.component)==null?void 0:f.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:d.variants;if(a){let v=[];for(let E in a){let b=(m=a[E])==null?void 0:m.key;b!==void 0&&!v.includes(b)&&v.push(b)}xa(v,r)}}o(VX,"addTabkeyEnum");function Hm(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(f=>{let p=f.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let d=JSON.parse((0,T_.xml2json)(f.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!d||d.Column||d["table:Column"]||d["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!d||!d.Column&&!d["table:Column"]&&!d["table:AnalyticalColumn"]&&!d["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+y_.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),xa(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(Hm,"addFragmentEnum");function Kl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){RX(e,a,s),_X(e,t,s),VX(e,s,n,l);let f=i&&i["sap.app"]&&i["sap.app"].id;Hm(e,r,f,"fragmentName",s),Hm(e,r,f,"fragmentName",De.DefinitionName.CustomColumn),Hm(e,r,f,"cellsFragmentName",s),Hm(e,r,f,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(Kl,"addTableColumnExtensions");function b_(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(b_,"removeElementsFromEnum");function Gm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=Tr(n==null?void 0:n.fullyQualifiedName,tr.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,f=`SelectionField<${at(s.value)}>`,p=er(s);s.type==="PropertyPath"&&(l=jl(s,n)),i.properties[s.value]={$ref:U+f},i.properties[s.value][De.SchemaTag.propertyIndex]=a,e.definitions[f]={type:"object",description:l,additionalProperties:!1},e.definitions[f][De.SchemaTag.isViewNode]=!0,e.definitions[f][De.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[f][De.SchemaTag.dataType]=p,e.definitions[f][De.SchemaTag.keys]=[{name:De.SchemaKeyName.value,value:`${s.value}`}],e.definitions[f][De.SchemaTag.annotationPath]=`${i[De.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[f].$ref=`${U}SelectionFieldDateSettings`:e.definitions[f].properties={},a++})}o(Gm,"addSelectionFields");function E_(e,t){for(let n of t.entityProperties)e.push(n.name)}o(E_,"addEntityPropertiesToEnum");function Wm(e){var t,n,i,r;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((r=(i=e.annotations)==null?void 0:i.Common)!=null&&r.DraftNode)}o(Wm,"isDraftEnabled");function S_(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.DeleteRestrictions)==null?void 0:i.Deletable)!==!1}o(S_,"isEntityDeletable");function A_(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.UpdateRestrictions)==null?void 0:i.Updatable)!==!1}o(A_,"isEntityUpdatable");function Xl(e,t=!1,n){let i=De.DefinitionName.HeaderActionsStandard,r=De.DefinitionName.HeaderActionStandard;t&&(i=De.DefinitionName.ObjectPageHeaderActions,r=De.DefinitionName.ObjectPageHeaderActionStandard);let a=e.definitions[i];a[De.SchemaTag.isViewNode]=!0,a.description="Actions",Object.entries((n||a).properties).forEach(([l,f])=>{let p=f.$ref.split(U)[1],d=`${r}<${p}>`;a.properties[l]={$ref:`${U}${d}`},e.definitions[d]=e.definitions[p],e.definitions[p][De.SchemaTag.actionType]=De.ActionType.Standard})}o(Xl,"addStandardHeaderActions");function P_(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split(U)[1],a=`${De.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${U}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][De.SchemaTag.actionType]=De.ActionType.Standard}}o(P_,"addStandardFooterActionsOP");function Ql(e){var i,r,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?Q.t("NOUIANNOTATIONS",{entityType:t.name}):Q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});oe(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(Ql,"getUIAnnotationForEntitySet");function wX(e,t,n,i){if(e===fe.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case _t.UIAnnotationTypes.DataField:case _t.UIAnnotationTypes.DataFieldForAnnotation:case _t.UIAnnotationTypes.DataFieldWithNavigationPath:case _t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===fe.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case _t.UIAnnotationTypes.DataField:case _t.UIAnnotationTypes.DataFieldForAnnotation:case _t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(wX,"copyFieldProperties");function XE(e,t,n,i){let r=e===fe.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===fe.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(XE,"determineFieldDefinitionName");function MX(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][fe.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][fe.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][fe.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][fe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(MX,"addKeysTagForDataField");function kX(e,t,n){if(e.$Type===_t.UIAnnotationTypes.DataField||e.$Type===_t.UIAnnotationTypes.DataFieldWithUrl||e.$Type===_t.UIAnnotationTypes.DataFieldWithNavigationPath)MX(e,t,n);else if(e.$Type===_t.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][fe.SchemaTag.keys]=[{name:"Target",value:$l(e.Target.value)}],t.definitions[n][fe.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===_t.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][fe.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][fe.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][fe.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===_t.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][fe.SchemaTag.keys]=[{name:fe.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][fe.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][fe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(kX,"addKeysTagToField");function jX(e){var t,n;return e.$Type===_t.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===_t.UIAnnotationTypes.ConnectedFieldsType}o(jX,"isConnectedField");function UX(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===_t.UIAnnotationTypes.ConnectedFieldsType){let f=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,d=f.length;for(let m in p){let v=p[m];if(typeof v=="object"&&"$Type"in v){let E=f.findIndex(b=>b===m);E===-1&&(E=d,d++),KE(e,t,v,`ConnectedFields::${a.qualifier}`,E.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(UX,"addConnectedFields");function x_(e,t,n){if(n)return n;let i=at(t);return e.definitions[i].properties}o(x_,"getFieldsSchemaContainer");function QE(e,t){return e===fe.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::").splice(1).join("::"):t}o(QE,"getFieldReference");function KE(e,t,n,i,r,a,s,l=!0,f={},p=a.entityType.fullyQualifiedName){if(!n||!n.$Type)return;let d={appSchema:t,withActions:l,sectionType:e,field:n,targetID:i,containersSchema:f,key:r,version:s,section:a,entityTypeName:p};fs.getStrategy(n.$Type).addDefinition(d)}o(KE,"addField");function $X(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}o($X,"determineTargetIdOfForm");function BX(e,t,n,i,r,a){if(e.base===fe.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&KE(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];KE(t,n,l,i,s,e,r)}}o(BX,"addFieldsToFormDefinition");function HX(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][fe.SchemaTag.keys]=[{name:fe.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][fe.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][fe.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][fe.SchemaTag.annotationPath]=Tr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(HX,"addTagsToFormDefinition");function Xm(e,t,n,i,r,a){if(!t.target)return;let s=$X(t),l=at(`${e}${fe.DefinitionName.Form}<${s}>`),f=at(`${e}${fe.DefinitionName.Fields}<${s}>`),p=at(`${e}${fe.DefinitionName.Actions}<${s}>`),d=!(t.base===fe.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${U}${l}`},e===fe.SectionType.Section&&d?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${U}${p}`},fields:{$ref:`${U}${f}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][fe.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${U}${f}`}},description:"Form",additionalProperties:!1},HX(t,i,l),i.definitions[f]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[f][fe.SchemaTag.isViewNode]=!0,BX(t,e,i,s,r,d),s}o(Xm,"handleForm");function qE(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),a=t.references.find(s=>s.alias===r);a&&(i=e.replace(n,a.namespace))}return i}o(qE,"replaceAlias");function Qm(e,t){let n=qE(e.Action??"",t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(Qm,"getActionNameAndId");function C_(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===fe.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:C_(a.pages,t)}}o(C_,"isFirstObjectPage");function qm(e,t,n,i,r){var d,m;e.definitions[fe.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${fe.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${U}${fe.DefinitionName.ObjectPageFooter}`},e.definitions[fe.DefinitionName.ObjectPageFooter].properties[fe.PropertyName.actions]={$ref:`${U}${fe.DefinitionName.FooterActions}`};let a=e.definitions[fe.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[fe.SchemaTag.isViewNode]=!0;let s=oi(fe.UIVOCABULARY,t.serviceAVT),l=t.entitySet,f=t.entityType,p=s&&((m=(d=f==null?void 0:f.annotations)==null?void 0:d[s])==null?void 0:m.Identification);if(p){let v=p.fullyQualifiedName.replace(`@${_t.UIAnnotationTerms.Identification}`,`/@${_t.UIAnnotationTerms.Identification}`);a[fe.SchemaTag.annotationPath]=`/${v}`,i(f,e,a,p)}else f&&(a[fe.SchemaTag.annotationPath]=`/${f.fullyQualifiedName}/@${_t.UIAnnotationTerms.Identification}`);n===fe.FioriElementsVersion.v2&&C_(r,t)&&!Wm(l)&&P_(e,a),delete e.definitions[fe.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${fe.DefinitionName.ObjectPageFooter}<${fe.DefinitionName.ObjectPageFooterActions}>`]}o(qm,"addFooterActions");function Ym(e,t,n,i,r,a=!1){var m,v;let s=fe.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[fe.DefinitionName.ObjectPageHeader].properties[fe.PropertyName.actions]={$ref:`${U}${s}`};let f=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};f[fe.SchemaTag.isViewNode]=!0;let p=oi(fe.UIVOCABULARY,n.serviceAVT),d=p&&((v=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:v.Identification);d?f[fe.SchemaTag.annotationPath]="/"+d.fullyQualifiedName.replace(`@${_t.UIAnnotationTerms.Identification}`,`/@${_t.UIAnnotationTerms.Identification}`):t&&(f[fe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${_t.UIAnnotationTerms.Identification}`),i(t,e,d,f,n,r),a&&Xl(e,!0,l)}o(Ym,"addHeaderActions");function zm(e,t){e.properties.header={$ref:`${U}${fe.DefinitionName.ObjectPageHeader}`},e.definitions[fe.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${fe.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[fe.DefinitionName.ObjectPageHeader][fe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${_t.UIAnnotationTerms.HeaderInfo}`)}o(zm,"addCommonHeaderSchema");function I_(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(I_,"determineEntitySetOfEntityType");function d_(e){let{appSchema:t,section:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:f}=e,p=Hr(r),d=QE(f,p),m=XE(f,p,a,d),v=x_(t,`${i}${fe.DefinitionName.Fields}<${a}>`,s.fields),E={};v[d]={$ref:`${U}${m}`,propertyIndex:parseInt(l)},jX(r)&&(E=UX(i,t,r,n,f)),O_(e,m,E)}o(d_,"addDataFieldDefinition");function wu(e){let{appSchema:t,withActions:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:f}=e,p=Hr(r),d=QE(f,p),m=XE(f,p,a,d),v={};if(n&&i===fe.SectionType.Section){let E=x_(t,`${i}${fe.DefinitionName.Actions}<${a}>`,s.actions),b=E[d]={$ref:`${U}${m}`};b[fe.SchemaTag.propertyIndex]=parseInt(l)}GX(e,m,v),O_(e,m,v)}o(wu,"addDataFieldForActionAndActionGroupDefinition");function GX(e,t,n){let{appSchema:i,field:r,version:a}=e;r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&(r.Actions??[]).forEach(s=>{let l={...e,field:s,targetID:t,withActions:!1},f=Hr(s),p=QE(a,f),d=XE(a,f,t,p);wu(l),n[p]=i.definitions[d]})}o(GX,"addGroupedActionsToDefinition");function O_(e,t,n={}){var f,p;let{appSchema:i,field:r,version:a,section:s,entityTypeName:l}=e;i.definitions[t]={type:"object",properties:n,description:ci(r,s.entityType),additionalProperties:!1},r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&Ca(i.definitions[t],Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),kX(r,i,t),i.definitions[t][fe.SchemaTag.annotationPath]=`/${l}/${r.fullyQualifiedName.split(l)[1]}`,i.definitions[t][fe.SchemaTag.annotationType]=r.$Type,i.definitions[t][fe.SchemaTag.isViewNode]=!0,Km(i.definitions[t],r),wX(a,i,r,t),r.$Type===_t.UIAnnotationTypes.DataFieldForAction&&((f=i.definitions)!=null&&f[fe.DefinitionName.FormAction])&&(i.definitions[t].$ref=`${U}${fe.DefinitionName.FormAction}`,delete i.definitions[t].properties),r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&((p=i.definitions)!=null&&p[fe.DefinitionName.ObjectPageFormActionGroup])&&(i.definitions[t].$ref=`${U}${fe.DefinitionName.ObjectPageFormActionGroup}`)}o(O_,"writeDefinitionToSchema");var br=require("@sap-ux/vocabularies-types/vocabularies/UI");var Qe=Z(re());function xa(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(xa,"addEnumToSchema");function Lc(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let r=[];for(let s in i){let l=i[s];if(t.indexOf(l.term)>-1){let f=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(f)===-1&&r.push(f)}}xa(r,n)}o(Lc,"addEnumForValidAnnotations");function ds(e,t,n){let i=t.definitions[n].properties[Qe.SchemaTag.annotationPath],r=[br.UIAnnotationTerms.SelectionVariant,br.UIAnnotationTerms.SelectionPresentationVariant];Lc(e,r,i)}o(ds,"addEnumForSingleTabVariant");function R_(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[br.UIAnnotationTerms.SelectionVariant,br.UIAnnotationTerms.SelectionPresentationVariant];Lc(n.entityType,r,i)}o(R_,"addEnumForMultiTabVariant");function L_(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),xa(r,i)}o(L_,"addEnumForVariantEntitySet");function N_(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[br.UIAnnotationTerms.FieldGroup];Lc(e,r,i)}o(N_,"addEnumFieldGroupAnnotationPath");function F_(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],f=a.label||a.title;return{const:l,...f&&{description:f},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[Qe.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${U}${Qe.DefinitionName.RelatedFacetKeys}`},l]}}}}o(F_,"addDefinitionForRelatedFacetKeys");function Nc(e){return e.replace("#","::")}o(Nc,"getFacetKeyInSchema");function ku(e,t){return`${e}<${Nc(t)}>`}o(ku,"getFacetDefinitionKey");function vt(e,t,n,i=!0){let r=t;if(i&&(r=ku(e,t)),e&&e!==r)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[r]=a}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[r]}o(vt,"parseSchemaDefinition");function Jm(e,t,n){let i;return t===Qe.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${br.UIAnnotationTerms.LineItem}`?i=`${U}${n}`:(i=`${U}${n}<${t}>`,vt(n,t,e,!0)),i}o(Jm,"getCustomExtensionDefinitionName");function Mm(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][Qe.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let I=Jm(t,r,a);t.definitions[r].additionalProperties={$ref:I}}let f=e?Qe.DefinitionName.ObjectPageToolBar:Qe.DefinitionName.ToolBar,p=`${f}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${f}`]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${f}`}))}let d=`${Qe.DefinitionName.Actions}<${at(r)}>`;t.definitions[p].properties.actions.$ref=U+d;let m=r.startsWith(Qe.DefinitionName.LineItems)?Qe.DefinitionName.Actions:Qe.DefinitionName.ObjectPageToolBarActions,v;try{if(v=t.definitions[d]=JSON.parse(JSON.stringify(t.definitions[m])),v.properties={},v.additionalProperties=!1,s){let I=Jm(t,r,s);v.additionalProperties={$ref:I}}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let E,b;if(r===Qe.DefinitionName.LineItems&&t.properties.footer){b=`${Qe.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${U}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[Qe.DefinitionName.GenericFooter]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Qe.DefinitionName.GenericFooter}))}let I=`${Qe.DefinitionName.FooterActions}<${at(r)}>`;t.definitions[b].properties.actions.$ref=U+I,E=t.definitions[I]=JSON.parse(JSON.stringify(t.definitions[Qe.DefinitionName.Actions])),E.properties={},E.additionalProperties=!1}return n&&(l=Tr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][Qe.SchemaTag.annotationPath]=l,E&&(t.definitions[b][Qe.SchemaTag.annotationPath]=l))),{actions:v,footerActions:E,lineItemPath:l}}o(Mm,"addCommonLineItemDefinitions");function D_(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(D_,"getDataTypeFromAnnotation");function Fc(e){var n,i,r;let t;return e!=null&&e.Value?e.Visualization==="UI.VisualizationType/Rating"?t="Rating":e.Visualization==="UI.VisualizationType/Progress"?t="Progress":e.$Type==="com.sap.vocabularies.UI.v1.DataPointType"?t="DataPoint":t=(i=(n=e.Value)==null?void 0:n.$target)==null?void 0:i.type.replace("Edm.",""):(r=e==null?void 0:e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")&&(t=D_(e.$Type)),t}o(Fc,"determineDataTypeOfTarget");function er(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=Fc((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(r=e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")?t=D_(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(er,"determineDataType");function Km(e,t){let n=er(t);n&&(e[Qe.SchemaTag.dataType]=n)}o(Km,"addDataTypeToDefinition");function si(e,t){return`${U}${ku(e,t)}`}o(si,"getFacetDefinitionLink");function p_(e,t,n,i){let r=0,a=!1,s="";do{let l=`${t}${r===0?"":"."+r}`;s=si(e,l),r++;let f=n.definitions[ku(e,l)],p=((f==null?void 0:f.annotationPath)??"").split("/").slice(0,-1).join("/");a=!f||p===i}while(!a);return s}o(p_,"getUniqueFacetDefinitionLink");function gs(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${U}${i}`}o(gs,"addDefinitionRef");function Zm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${Qe.UIVOCABULARY}`);t=`/${n}/@${Qe.UIVOCABULARY}${i}`}return t}o(Zm,"getFacetAnnotationPath");function ju(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,f=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:si(a?f:l,t)};let p=vt(a?f:l,t,i,!0);ba(e,p,t),cs(e,p,t),p[Qe.SchemaTag.annotationPath]=e.annotationPath,p[Qe.SchemaTag.isViewNode]=!0}o(ju,"handleAddressContact");function YE(e,t,n){typeof e=="object"&&(e[t]=n)}o(YE,"updateSchemaProperty");function ql(e,t,n=at("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${Qe.DefinitionName.Fields4Dialog}${n}`];YE(r.properties.fields.items,"enum",i)}o(ql,"addFieldsType");function WX(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(WX,"findFirstSchemaDefinitionKey");function km(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let d=zt(t.$ref),m=(p=e.definitions)==null?void 0:p[d];typeof m=="object"&&(s=!m.annotationPath,i!=null&&i.resolveDefinition&&!r&&(r=m.description,a=m.keys))}let l=n,f=WX(a,i==null?void 0:i.keyProperties);return f?l=f.value:i!=null&&i.descriptionAsFallback&&r&&(l=r),{const:l,...r&&{description:r},...s&&{custom:s}}}o(km,"getEnumEntry");function us(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let f=t.properties[l],p=km(e,f,l,i);r.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];YE(l,"oneOf",r)}else YE(a,"oneOf",r)}o(us,"addDescriptiveEnumDefinition");function Rc(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),a=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,a),n=r>0?n.substring(r+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}o(Rc,"getActionKey");function jm(e,t,n){var i,r,a;try{if(e.Value)t[n][Qe.SchemaTag.keys]=[{name:Qe.SchemaKeyName.value,value:ps(e.Value)}];else if(e.$Type===br.UIAnnotationTypes.DataFieldWithAction||e.$Type===br.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=Rc(e.Action,!0);t[n][Qe.SchemaTag.keys]=[{name:Qe.SchemaKeyName.action,value:s}],l&&(t[n][Qe.SchemaTag.target]=l)}else if(e.$Type===br.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=Rc(e.Target.value,!1);t[n][Qe.SchemaTag.keys]=[{name:Qe.SchemaKeyName.target,value:$l(s)}],t[n][Qe.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===br.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===br.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:f}=Rc(s,!0);t[n][Qe.SchemaTag.keys]=[{name:"SemanticObject",value:e[Qe.SchemaKeyName.semanticObject]},{name:"Action",value:l}],f&&(t[n][Qe.SchemaTag.target]=f)}}catch{return}}o(jm,"addKeyToDefinition");function ci(e,t){try{return fs.getStrategy(e.$Type).generateDescription(e,t)}catch{return""}}o(ci,"getDataFieldDescription");function Ca(e,t){e[Qe.SchemaTag.messages]||(e[Qe.SchemaTag.messages]=[]),Array.isArray(e[Qe.SchemaTag.messages])&&e[Qe.SchemaTag.messages].push({text:t})}o(Ca,"addMessageToSchema");var Yl=Z(re());var __=[{version:"1.136",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.136","UI5-1.137","UI5-1.138","UI5-1.139","UI5-1.140"]},{version:"1.124",distTag:["UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130","UI5-1.131","UI5-1.132","UI5-1.133","UI5-1.134","UI5-1.135"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.102",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var w_="1.108.65";var M_={name:"@sap/ux-specification",version:w_,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 macros copy-templates -p copy-json-schemas -s htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -s htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/schema/index.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -s htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.39.10","@sap-ux/vocabularies-types":"0.13.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.6","@sap-ux/edmx-parser":"0.9.6","@sap/ux-specification-types":"1.108.65","@sapui5/ts-types-esm":"latest-1.108","@types/d3":"7.4.3","@types/jquery":"3.5.32","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.12.0",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"25.6.0",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.7.3","typescript-json-schema":"0.65.1","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var ms=class ms{constructor(){ms.distTagsOfSpec.length===0&&(ms.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){ms.distTagsOfSpec=[]}getSpecVersion(){return w_}getDistTagsOfVersion(){let t=[],n=__,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let r=n.find(a=>a.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let r=Q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});oe(n,{severity:Yl.LogSeverity.Info,message:r,location:{path:Yl.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(ms.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=Q.t("WRONGMINUI5VERSION",{minUI5Version:t});oe(n,{severity:Yl.LogSeverity.Warning,message:r,location:{path:Yl.MANIFESTPATH}})}}};o(ms,"DistTagEvaluator"),ms.distTagsOfSpec=[];var Uu=ms;var ue=Z(re());var jn=Z(re());var Ei=Z(re());function k_(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(k_,"getCustomPageFullName");function QX(e){let n=k_(e).split(".");return n[n.length-1]}o(QX,"getCustomPageName");function j_(e,t){var i,r;return((i=e==null?void 0:e.view)==null?void 0:i.viewType)||((r=t.settings)==null?void 0:r.viewType)||Ei.ViewTypes.XML}o(j_,"getViewType");function qX(e,t){return j_(e,t).toLowerCase()}o(qX,"getViewTypeExtension");function YX(e,t,n){var p;let i=o(d=>{var m;return(m=d.split(`${t.id}.`)[1])==null?void 0:m.split(".")},"splitViewPath"),r=t.settings,a=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=k_(e);s.includes(t.id)?n=i(s):a!=null&&a.includes(t.id)&&(n=[...i(a),...s.split(".")]);let[l,f]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:f}}o(YX,"getViewPath");function zX(e,t){let n=e.entitySet||QX(e),{viewPath:i,fileName:r}=YX(e,t,[n]),a=qX(e,t);return[...i,`${r}.view.${a}`].join("/")}o(zX,"getCustomPagePath");var zE=class zE{constructor(t,n,i,r){this.unhandledControllers=[];let a=Dt(Ei.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...r&&{settings:r}},t.fioriElementsVersion?this.app.target={fioriElements:t.fioriElementsVersion,odata:t.oDataVersion}:t.oDataVersion&&(this.app.target.odata=t.oDataVersion),this.schemas=t.appSchemas,this.logger=t.logger}createConfigFiles(){var a;let t={},n={},i;for(let s in this.app.pages){i=this.app.pages[s];let l=((a=this.app.target)==null?void 0:a.odata)===Ei.OdataVersion.v4?s:i.entitySet,f=this.getPageConfigFile(i,l);f&&(t[`${Ei.DirName.Pages}/${s}.json`]=f)}let r=JSON.parse(JSON.stringify(this.app));for(let s in r.pages)delete r.pages[s].config;return n[Ei.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=j_(t,this.app)===Ei.ViewTypes.XML&&!!t.config;if(t.pageType===Ei.PageTypeV4.CustomPage||t.pageType===Ei.PageTypeV4.FPMCustomPage&&!r){let{path:s}=Dt(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(a=t.view)==null?void 0:a.id:void 0,l=Dt(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let f=Dt(t.pageType);i.$schema=f.path}}return(i&&t.pageType===Ei.PageTypeV4.CustomPage||t.pageType===Ei.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=zX(t,this.app);n.$filePath=i}};o(zE,"AppProvider");var hs=zE;var ut=Z(re());var zl=Z(re());var Kn=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),U_=o((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2"),$_=o((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function JE(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(JE,"getNewPageTemplate");function JX(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(JX,"findPageInManifest");function ZX(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=JE(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:JE(e[t].pageType)}),!Array.isArray(n.pages))){let i=JX(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=JE(e[t].pageType)),ZE(t,e,i)}}o(ZX,"transformPageFromAssociation");function e3(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let r=e.pages[i];if(((a=r.component)==null?void 0:a.name)===zl.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===zl.PageTypeV2.ListReport||n.pageType===zl.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(e3,"deletePage");function ZE(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===zl.PageTypeV2.ListReport&&(n.component.list=!0),i.navigationProperty&&(n.navigationProperty=i.navigationProperty),i.defaultLayoutType?n.defaultLayoutType=i.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,i.navigation)){for(let r in i.navigation)ZX(t,r,n);Array.isArray(n.pages)||e3(n,t,i)}}o(ZE,"transformPageToNewManifestV2");var xV=Z(vc());var HA={};yc(HA,{ALPAnalyticalTable:()=>$S,ALPGridTable:()=>US,ALPResponsiveTable:()=>jS,Action:()=>WS,AnalyticalCard:()=>nf,AnalyticalCardSettings:()=>ih,AnalyticalCardSettingsv4:()=>oS,AnalyticalListPageFilterBar:()=>gS,AnalyticalTable:()=>kS,BaseCustomSection:()=>Tp,ChartSettings:()=>fA,ChartSettingsType:()=>tS,CommonCardSettings:()=>bs,CommonFilterBar:()=>Ju,CommonHeaderFacetSettings:()=>Bc,CommonTableSettings:()=>Ps,CommonTableSettingsForSections:()=>Xc,CreateWithFilters:()=>NS,CustomCard:()=>iS,DataLoadSettings:()=>DS,DateRange:()=>fS,DefaultDateRange:()=>uS,DefaultSpanObject:()=>nS,FRAGMENT_DEFINITION:()=>Ko,Field:()=>lS,FieldForAction:()=>vS,Fields4Dialog:()=>_S,Fields4DialogOP:()=>MA,FooterAction:()=>XS,FormAction:()=>TS,GlobalChartSettings:()=>VA,GlobalTableSettings:()=>$A,GridTable:()=>BS,HeaderActionStandard:()=>JS,HeaderSections:()=>TA,KPISettings:()=>uA,LinkListCardSettings:()=>sS,LinklistCard:()=>qu,ListCard:()=>tf,ListCardSettings:()=>rS,ListReportFilterBar:()=>mS,MultiEdit:()=>FS,ObjectPageAnalyticalTable:()=>kA,ObjectPageChart:()=>_A,ObjectPageCustomSectionFragment:()=>vp,ObjectPageCustomSectionView:()=>bp,ObjectPageFooterAction:()=>bA,ObjectPageFooterActionStandard:()=>eA,ObjectPageGridTable:()=>jA,ObjectPageHeader:()=>pA,ObjectPageHeaderAction:()=>dA,ObjectPageHeaderActionStandard:()=>ZS,ObjectPageHeaderSectionAddress:()=>yA,ObjectPageHeaderSectionChart:()=>mA,ObjectPageHeaderSectionDataPoint:()=>hA,ObjectPageHeaderSectionForm:()=>gA,ObjectPageLayout:()=>SA,ObjectPageResponsiveTable:()=>Qc,ObjectPageSectionAddressV2:()=>IA,ObjectPageSectionChartV2:()=>xA,ObjectPageSectionContactV2:()=>OA,ObjectPageSectionFormV2:()=>PA,ObjectPageSectionTableV2:()=>CA,ObjectPageSectionV2:()=>AA,ObjectPageSubSectionChartV2:()=>NA,ObjectPageSubSectionContactV2:()=>FA,ObjectPageSubSectionFormV2:()=>LA,ObjectPageSubSectionTableV2:()=>DA,ObjectPageSubSectionV2:()=>RA,ObjectPageToolBarAction:()=>BA,ObjectPageTreeTable:()=>UA,QuickVariantSelection:()=>VS,QuickVariantSelectionOP:()=>wA,QuickVariantSelectionX:()=>wS,ResponsiveTable:()=>Mc,SAP_UI_TABLE:()=>fh,SaveAndEditOP:()=>zS,SelectionFieldDateSettings:()=>pS,SelectionFields:()=>dS,Share:()=>QS,ShareOP:()=>qS,StackCard:()=>Qu,StackCardSettings:()=>aS,TableALP:()=>cf,TableCard:()=>rf,TableCardSettings:()=>cS,TableColumn:()=>iA,TableColumnAction:()=>rA,TableColumnActionIntentBased:()=>oA,TableCustomColumn:()=>aA,ToolBar:()=>cA,ToolBarAction:()=>KS,TreeTable:()=>MS,UpAndDownNavigationOP:()=>YS,buildIntentBasedActionId:()=>tA,deleteColumnFromFragment:()=>dh,deleteType:()=>ff,exportColorPalette:()=>W_,exportCreateParametersFields:()=>Eh,exportCustomColumnsToFragment:()=>RS,exportDateSettingsField:()=>q_,exportDefaultSpan:()=>K_,exportType:()=>lf,getChartSectionControlId:()=>bV,getContactSubSectionControlId:()=>SV,getCustomColumnPath:()=>gh,getFormSectionControlId:()=>vV,getRootCustomColumnFromFragmentJSON:()=>tp,getSectionControlId:()=>Wc,getSmartChartControlId:()=>fp,getSmartTableControlId:()=>wc,getSubSectionControlId:()=>EV,getTableSectionControlId:()=>TV,importCreateParameters:()=>bh,importDateSettings:()=>hS});var Zn=Z(re());var je=o(e=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),ho=o(e=>je(e)+"/tableSettings","getTableSettingPathV2"),B_=o(e=>je(e)+"/chartSettings","getChartSettingPathV2"),H_=o(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var An=o(()=>Zn.ManifestSection.ovp,"getOVPsettingPath"),Ce=o(e=>{let t=[Zn.ManifestSection.ovp];return e.forEach(n=>{n in Zn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var Dc=o((e,t)=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),nh=o(e=>{let t=[Zn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Di=o(e=>{let t=[];return t.push(nh(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),_c=o(e=>Di(e)+"/tableSettings","getGlobalTableSettingsPathV2"),yo=o((e,t,n)=>{let i=[];i.push(nh(e));let r=n.replace(Zn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),Wr=o((e,t,n)=>yo(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),G_=o((e,t,n)=>yo(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),eS=o(()=>`sap.ui5/extends/extensions/${Zn.v2.SAPUI5_VIEW_EXTENSION}/${Zn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),Oa=o((e,t,n,...i)=>{let a=n.split("|"),s=e[e.length-1].split("|"),l="";a.length===4?l=[a[2],a[3]].join("|"):a.length===3&&(l=a[2]);let f=[a[0],s[s.length-1],l].join("|");return i.unshift(f),`${eS()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),th=class th{};o(th,"ApplicationV2"),h([kt("settings")],th.prototype,"settings",2);var eh=th,Gr=class Gr{};o(Gr,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],Gr.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],Gr.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],Gr.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.50.0"})],Gr.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.46.0"})],Gr.prototype,"forceGlobalRefresh",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.74.0"})],Gr.prototype,"tableColumnVerticalAlignment",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"}),xe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Gr.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Gr.prototype,"draftDiscardConfirmationSettings",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Gr.prototype,"statePreservationMode",2);var ys=Gr;var $u=Z(re());function t3(e){let t=e.colorPalette,n;if(Array.isArray(t))throw new Error("The array syntax for colorPalette is deprecated and not supported");return t[0]&&typeof t[0]=="object"?(n=t,n.colorPaletteType=$u.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=$u.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:$u.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(t3,"importColorPalette");function W_(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===$u.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(W_,"exportColorPalette");function K_(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(K_,"exportDefaultSpan");var rh=class rh{};o(rh,"ChartSettingsType"),h([y({manifest:{path:o(()=>An()+"/chartSettings","path")}})],rh.prototype,"showDataLabel",2);var tS=rh,Ts=class Ts{};o(Ts,"DefaultSpanObject"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ts.prototype,"cols",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ts.prototype,"rows",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ts.prototype,"showOnlyHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ts.prototype,"minimumTitleRow",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ts.prototype,"minimumSubTitleRow",2);var nS=Ts,Kt=class Kt{};o(Kt,"CommonCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"entitySet",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"title",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"subTitle",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"dataPointAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"selectionPresentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"kpiAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"category",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"dynamicSubtitleAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"showFilterInHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"sortBy",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"sortOrder",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"identificationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"selectionAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"presentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"enableLocaleCurrencyFormatting",2),h([y({manifest:{path:o(t=>Ce(t),"path"),export:K_}})],Kt.prototype,"defaultSpan",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"requireAppAuthorization",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"showSortingInHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"tabs",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"addODataSelect",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"showRefresh",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"customParams",2);var bs=Kt,Jl=class Jl{};o(Jl,"CustomCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Jl.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Jl.prototype,"template",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Jl.prototype,"settings",2);var iS=Jl,vs=class vs extends bs{};o(vs,"ListCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],vs.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],vs.prototype,"imageSupported",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],vs.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],vs.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],vs.prototype,"listType",2);var rS=vs,Bu=class Bu{};o(Bu,"ListCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Bu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Bu.prototype,"template",2);var tf=Bu,Go=class Go extends bs{};o(Go,"AnalyticalCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"chartAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"ignoreSapText",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"navigation",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"chartProperties",2),h([y({manifest:{path:o(t=>Ce(t),"path"),import:t3,export:W_}})],Go.prototype,"colorPalette",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"bEnableStableColors",2);var ih=Go,oh=class oh extends ih{};o(oh,"AnalyticalCardSettingsv4"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],oh.prototype,"measureAggregate",2);var oS=oh,Hu=class Hu{};o(Hu,"AnalyticalCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Hu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Hu.prototype,"template",2);var nf=Hu,Zl=class Zl extends bs{};o(Zl,"StackCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Zl.prototype,"itemText",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Zl.prototype,"objectStreamCardsNavigationProperty",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Zl.prototype,"objectStreamCardsSettings",2);var aS=Zl,Gu=class Gu{};o(Gu,"StackCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Gu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Gu.prototype,"template",2);var Qu=Gu,ef=class ef extends bs{};o(ef,"LinkListCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ef.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ef.prototype,"headerAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ef.prototype,"staticContent",2);var sS=ef,Wu=class Wu{};o(Wu,"LinklistCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Wu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Wu.prototype,"template",2);var qu=Wu,Ku=class Ku extends bs{};o(Ku,"TableCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ku.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ku.prototype,"enableAddToInsights",2);var cS=Ku,Xu=class Xu{};o(Xu,"TableCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xu.prototype,"template",2);var rf=Xu;var X_=Z(re());var n3=o((e,t,n,i,r)=>{let a=zn(n[1],r),s=n.slice(-1)[0];return Jt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),ah=class ah{};o(ah,"Field"),h([y({flex:{controlId:n3,controlType:o(()=>X_.ControlType.GroupElement,"controlType")},generate:mt})],ah.prototype,"visible",2);var lS=ah;var Vc=Z(re());function hS(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),delete t.fields,t}o(hS,"importDateSettings");function i3(e,t,n){let i=e!=null&&e[n]?JSON.parse(JSON.stringify(e==null?void 0:e[n])):void 0,r;return n==="selectedValues"&&typeof i=="string"&&(r=i.split(",")),n==="filter"&&typeof i=="object"&&(r=[],i.forEach((a,s)=>{r[s]=a,a.equals&&typeof a.equals=="string"&&(r[s].equals=a.equals.split(","))})),r}o(i3,"importDateSettingsField");function q_(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];if(n==="selectedValues"&&(e[n]=i.join()),n==="filter")for(let r in i){let a=i[r];e[n][r]=a,a.equals&&Array.isArray(a.equals)&&(e[n][r].equals=a.equals.join())}}o(q_,"exportDateSettingsField");var of=class of{};o(of,"DateRange"),h([y({manifest:{path:o(t=>je(t)+Vc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],of.prototype,"useDateRange",2),h([y({manifest:{path:o(t=>je(t)+Vc.DATESETTINGSPATH,"path"),import:hS,export:Am}}),x({since:"1.77.0"})],of.prototype,"selectedValues",2),h([y({manifest:{path:o(t=>je(t)+Vc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],of.prototype,"exclude",2);var fS=of,sh={controlId:Jt,controlType:o(()=>Vc.ControlType.SmartFilterBar,"controlType")},Yu={path:o((e,t,n)=>`${je(e)}${Vc.DATESETTINGSPATH}/fields/${n}`,"path")},Q_={...Yu,import:i3,export:q_},ch=class ch{};o(ch,"DefaultDateRange"),h([y({manifest:Yu}),x({since:"1.90.0"})],ch.prototype,"operation",2);var uS=ch,Es=class Es{};o(Es,"SelectionFieldDateSettings"),h([y({manifest:Q_}),x({since:"1.77.0"})],Es.prototype,"selectedValues",2),h([y({manifest:Yu}),x({since:"1.77.0"})],Es.prototype,"exclude",2),h([y({manifest:Yu}),x({since:"1.77.0"})],Es.prototype,"customDateRangeImplementation",2),h([y({manifest:Q_}),x({since:"1.77.0"})],Es.prototype,"filter",2),h([y({manifest:Yu}),x({since:"1.90.0"})],Es.prototype,"defaultValue",2);var pS=Es,yS=class yS{};o(yS,"SelectionFields");var dS=yS,To=class To{};o(To,"CommonFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"})],To.prototype,"smartVariantManagement",2),h([y({flex:sh}),x({since:"1.40.0"})],To.prototype,"liveMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],To.prototype,"variantManagementHidden",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.52.0"})],To.prototype,"subTitleIfVariantMgmtHidden",2),h([y({manifest:{path:o(t=>je(t)+"/filterSettings","path"),import:hS}}),x({since:"1.77.0"})],To.prototype,"dateSettings",2),h([y({flex:sh}),x({since:"1.28.0"})],To.prototype,"showClearOnFB",2),h([y({flex:sh}),x({since:"1.38.0"})],To.prototype,"showFilterConfiguration",2),h([y({flex:sh}),x({since:"1.28.0"})],To.prototype,"showRestoreOnFB",2);var Ju=To,zu=class zu extends Ju{};o(zu,"AnalyticalListPageFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}})],zu.prototype,"showGoButtonOnFilterBar",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],zu.prototype,"filterDefaultsFromSelectionVariant",2);var gS=zu,lh=class lh extends Ju{};o(lh,"ListReportFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),xe("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),x({since:"1.86.0"})],lh.prototype,"annotationPath",2);var mS=lh;var bS=Z(re());var r3=o((e,t,n,i,r)=>{if(i()===bS.ControlType.Button){let a=n[n.length-1],s=zn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return Jt(e,t)},"getFormActionButtonId"),Wo={controlId:r3,controlType:o(()=>bS.ControlType.Button,"controlType")},Ss=class Ss{};o(Ss,"FormAction"),h([y({flex:Wo,generate:mt})],Ss.prototype,"visible",2),h([y({flex:Wo})],Ss.prototype,"tooltip",2),h([y({flex:Wo})],Ss.prototype,"icon",2),h([y({flex:Wo})],Ss.prototype,"activeIcon",2),h([y({flex:Wo})],Ss.prototype,"type",2);var TS=Ss,As=class As{};o(As,"FieldForAction"),h([y({flex:Wo,generate:mt})],As.prototype,"visible",2),h([y({flex:Wo})],As.prototype,"tooltip",2),h([y({flex:Wo})],As.prototype,"icon",2),h([y({flex:Wo})],As.prototype,"activeIcon",2),h([y({flex:Wo}),x({since:"1.73.0"})],As.prototype,"type",2);var vS=As;var Et=Z(re()),vo=Z(vc());var PS=require("path"),S3=Z(re()),cV=Z(sV()),lV=require("fs");var A3=(0,PS.join)(__dirname,"templates");var P3=o((e,t)=>{let n=(0,lV.readFileSync)(e,"utf8");return(0,cV.render)(n,t)},"renderTemplate");var xS=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return P3((0,PS.join)(A3,t+".xml"),n)},"getSingleColumnContent"),CS=o((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let i of e){let r=xS(i,t);n=n+`
288
+ }`;var nt=TL(function(){return At(C,Re+"return "+ne).apply(e,L)});if(nt.source=ne,Zv(nt))throw nt;return nt}o(mG,"template");function hG(c){return It(c).toLowerCase()}o(hG,"toLower");function yG(c){return It(c).toUpperCase()}o(yG,"toUpper");function TG(c,u,g){if(c=It(c),c&&(g||u===e))return IO(c);if(!c||!(u=dr(u)))return c;var T=co(c),S=co(u),C=OO(T,S),L=RO(T,S)+1;return rs(T,C,L).join("")}o(TG,"trim");function vG(c,u,g){if(c=It(c),c&&(g||u===e))return c.slice(0,NO(c)+1);if(!c||!(u=dr(u)))return c;var T=co(c),S=RO(T,co(u))+1;return rs(T,0,S).join("")}o(vG,"trimEnd");function bG(c,u,g){if(c=It(c),c&&(g||u===e))return c.replace(ZT,"");if(!c||!(u=dr(u)))return c;var T=co(c),S=OO(T,co(u));return rs(T,S).join("")}o(bG,"trimStart");function EG(c,u){var g=D,T=Ue;if(yn(u)){var S="separator"in u?u.separator:S;g="length"in u?et(u.length):g,T="omission"in u?dr(u.omission):T}c=It(c);var C=c.length;if(Tl(c)){var L=co(c);C=L.length}if(g>=C)return c;var F=g-vl(T);if(F<1)return T;var M=L?rs(L,0,F).join(""):c.slice(0,F);if(S===e)return M+T;if(L&&(F+=M.length-F),eb(S)){if(c.slice(F).search(S)){var z,J=M;for(S.global||(S=hv(S.source,It(qI.exec(S))+"g")),S.lastIndex=0;z=S.exec(J);)var ne=z.index;M=M.slice(0,ne===e?F:ne)}}else if(c.indexOf(dr(S),F)!=F){var ge=M.lastIndexOf(S);ge>-1&&(M=M.slice(0,ge))}return M+T}o(EG,"truncate");function SG(c){return c=It(c),c&&Ae.test(c)?c.replace(me,Yj):c}o(SG,"unescape");var AG=xl(function(c,u,g){return c+(g?" ":"")+u.toUpperCase()}),ib=vR("toUpperCase");function yL(c,u,g){return c=It(c),u=g?e:u,u===e?Wj(c)?Zj(c):wj(c):c.match(u)||[]}o(yL,"words");var TL=rt(function(c,u){try{return ur(c,e,u)}catch(g){return Zv(g)?g:new Xe(g)}}),PG=la(function(c,u){return _r(u,function(g){g=_o(g),sa(c,g,zv(c[g],c))}),c});function xG(c){var u=c==null?0:c.length,g=Ve();return c=u?pn(c,function(T){if(typeof T[1]!="function")throw new Vr(r);return[g(T[0]),T[1]]}):[],rt(function(T){for(var S=-1;++S<u;){var C=c[S];if(ur(C[0],this,T))return ur(C[1],this,T)}})}o(xG,"cond");function CG(c){return YU(Mr(c,p))}o(CG,"conforms");function rb(c){return function(){return c}}o(rb,"constant");function IG(c,u){return c==null||c!==c?u:c}o(IG,"defaultTo");var OG=ER(),RG=ER(!0);function Xi(c){return c}o(Xi,"identity");function ob(c){return zO(typeof c=="function"?c:Mr(c,p))}o(ob,"iteratee");function LG(c){return ZO(Mr(c,p))}o(LG,"matches");function NG(c,u){return eR(c,Mr(u,p))}o(NG,"matchesProperty");var FG=rt(function(c,u){return function(g){return yu(g,c,u)}}),DG=rt(function(c,u){return function(g){return yu(c,g,u)}});function ab(c,u,g){var T=Yn(u),S=Ag(u,T);g==null&&!(yn(u)&&(S.length||!T.length))&&(g=u,u=c,c=this,S=Ag(u,Yn(u)));var C=!(yn(g)&&"chain"in g)||!!g.chain,L=ua(c);return _r(S,function(F){var M=u[F];c[F]=M,L&&(c.prototype[F]=function(){var z=this.__chain__;if(C||z){var J=c(this.__wrapped__),ne=J.__actions__=Gi(this.__actions__);return ne.push({func:M,args:arguments,thisArg:c}),J.__chain__=z,J}return M.apply(c,za([this.value()],arguments))})}),c}o(ab,"mixin");function _G(){return qn._===this&&(qn._=oU),this}o(_G,"noConflict");function sb(){}o(sb,"noop");function VG(c){return c=et(c),rt(function(u){return tR(u,c)})}o(VG,"nthArg");var wG=kv(pn),MG=kv(SO),kG=kv(lv);function vL(c){return Wv(c)?fv(_o(c)):d$(c)}o(vL,"property");function jG(c){return function(u){return c==null?e:dc(c,u)}}o(jG,"propertyOf");var UG=AR(),$G=AR(!0);function cb(){return[]}o(cb,"stubArray");function lb(){return!1}o(lb,"stubFalse");function BG(){return{}}o(BG,"stubObject");function HG(){return""}o(HG,"stubString");function GG(){return!0}o(GG,"stubTrue");function WG(c,u){if(c=et(c),c<1||c>Ne)return[];var g=rn,T=hi(c,rn);u=Ve(u),c-=rn;for(var S=dv(T,u);++g<c;)u(g);return S}o(WG,"times");function KG(c){return Ye(c)?pn(c,_o):gr(c)?[c]:Gi(jR(It(c)))}o(KG,"toPath");function XG(c){var u=++iU;return It(c)+u}o(XG,"uniqueId");var QG=Rg(function(c,u){return c+u},0),qG=jv("ceil"),YG=Rg(function(c,u){return c/u},1),zG=jv("floor");function JG(c){return c&&c.length?Sg(c,Xi,Pv):e}o(JG,"max");function ZG(c,u){return c&&c.length?Sg(c,Ve(u,2),Pv):e}o(ZG,"maxBy");function e5(c){return xO(c,Xi)}o(e5,"mean");function t5(c,u){return xO(c,Ve(u,2))}o(t5,"meanBy");function n5(c){return c&&c.length?Sg(c,Xi,Ov):e}o(n5,"min");function i5(c,u){return c&&c.length?Sg(c,Ve(u,2),Ov):e}o(i5,"minBy");var r5=Rg(function(c,u){return c*u},1),o5=jv("round"),a5=Rg(function(c,u){return c-u},0);function s5(c){return c&&c.length?pv(c,Xi):0}o(s5,"sum");function c5(c,u){return c&&c.length?pv(c,Ve(u,2)):0}return o(c5,"sumBy"),P.after=LB,P.ary=YR,P.assign=yH,P.assignIn=fL,P.assignInWith=Bg,P.assignWith=TH,P.at=vH,P.before=zR,P.bind=zv,P.bindAll=PG,P.bindKey=JR,P.castArray=BB,P.chain=XR,P.chunk=Y$,P.compact=z$,P.concat=J$,P.cond=xG,P.conforms=CG,P.constant=rb,P.countBy=sB,P.create=bH,P.curry=ZR,P.curryRight=eL,P.debounce=tL,P.defaults=EH,P.defaultsDeep=SH,P.defer=NB,P.delay=FB,P.difference=Z$,P.differenceBy=e4,P.differenceWith=t4,P.drop=n4,P.dropRight=i4,P.dropRightWhile=r4,P.dropWhile=o4,P.fill=a4,P.filter=lB,P.flatMap=pB,P.flatMapDeep=dB,P.flatMapDepth=gB,P.flatten=HR,P.flattenDeep=s4,P.flattenDepth=c4,P.flip=DB,P.flow=OG,P.flowRight=RG,P.fromPairs=l4,P.functions=RH,P.functionsIn=LH,P.groupBy=mB,P.initial=u4,P.intersection=p4,P.intersectionBy=d4,P.intersectionWith=g4,P.invert=FH,P.invertBy=DH,P.invokeMap=yB,P.iteratee=ob,P.keyBy=TB,P.keys=Yn,P.keysIn=Ki,P.map=wg,P.mapKeys=VH,P.mapValues=wH,P.matches=LG,P.matchesProperty=NG,P.memoize=kg,P.merge=MH,P.mergeWith=uL,P.method=FG,P.methodOf=DG,P.mixin=ab,P.negate=jg,P.nthArg=VG,P.omit=kH,P.omitBy=jH,P.once=_B,P.orderBy=vB,P.over=wG,P.overArgs=VB,P.overEvery=MG,P.overSome=kG,P.partial=Jv,P.partialRight=nL,P.partition=bB,P.pick=UH,P.pickBy=pL,P.property=vL,P.propertyOf=jG,P.pull=T4,P.pullAll=WR,P.pullAllBy=b4,P.pullAllWith=E4,P.pullAt=S4,P.range=UG,P.rangeRight=$G,P.rearg=wB,P.reject=AB,P.remove=A4,P.rest=MB,P.reverse=qv,P.sampleSize=xB,P.set=BH,P.setWith=HH,P.shuffle=CB,P.slice=P4,P.sortBy=RB,P.sortedUniq=N4,P.sortedUniqBy=F4,P.split=pG,P.spread=kB,P.tail=D4,P.take=_4,P.takeRight=V4,P.takeRightWhile=w4,P.takeWhile=M4,P.tap=J4,P.throttle=jB,P.thru=Vg,P.toArray=sL,P.toPairs=dL,P.toPairsIn=gL,P.toPath=KG,P.toPlainObject=lL,P.transform=GH,P.unary=UB,P.union=k4,P.unionBy=j4,P.unionWith=U4,P.uniq=$4,P.uniqBy=B4,P.uniqWith=H4,P.unset=WH,P.unzip=Yv,P.unzipWith=KR,P.update=KH,P.updateWith=XH,P.values=Ol,P.valuesIn=QH,P.without=G4,P.words=yL,P.wrap=$B,P.xor=W4,P.xorBy=K4,P.xorWith=X4,P.zip=Q4,P.zipObject=q4,P.zipObjectDeep=Y4,P.zipWith=z4,P.entries=dL,P.entriesIn=gL,P.extend=fL,P.extendWith=Bg,ab(P,P),P.add=QG,P.attempt=TL,P.camelCase=JH,P.capitalize=mL,P.ceil=qG,P.clamp=qH,P.clone=HB,P.cloneDeep=WB,P.cloneDeepWith=KB,P.cloneWith=GB,P.conformsTo=XB,P.deburr=hL,P.defaultTo=IG,P.divide=YG,P.endsWith=ZH,P.eq=fo,P.escape=eG,P.escapeRegExp=tG,P.every=cB,P.find=fB,P.findIndex=$R,P.findKey=AH,P.findLast=uB,P.findLastIndex=BR,P.findLastKey=PH,P.floor=zG,P.forEach=QR,P.forEachRight=qR,P.forIn=xH,P.forInRight=CH,P.forOwn=IH,P.forOwnRight=OH,P.get=tb,P.gt=QB,P.gte=qB,P.has=NH,P.hasIn=nb,P.head=GR,P.identity=Xi,P.includes=hB,P.indexOf=f4,P.inRange=YH,P.invoke=_H,P.isArguments=hc,P.isArray=Ye,P.isArrayBuffer=YB,P.isArrayLike=Wi,P.isArrayLikeObject=Ln,P.isBoolean=zB,P.isBuffer=os,P.isDate=JB,P.isElement=ZB,P.isEmpty=eH,P.isEqual=tH,P.isEqualWith=nH,P.isError=Zv,P.isFinite=iH,P.isFunction=ua,P.isInteger=iL,P.isLength=Ug,P.isMap=rL,P.isMatch=rH,P.isMatchWith=oH,P.isNaN=aH,P.isNative=sH,P.isNil=lH,P.isNull=cH,P.isNumber=oL,P.isObject=yn,P.isObjectLike=En,P.isPlainObject=Au,P.isRegExp=eb,P.isSafeInteger=fH,P.isSet=aL,P.isString=$g,P.isSymbol=gr,P.isTypedArray=Il,P.isUndefined=uH,P.isWeakMap=pH,P.isWeakSet=dH,P.join=m4,P.kebabCase=nG,P.last=jr,P.lastIndexOf=h4,P.lowerCase=iG,P.lowerFirst=rG,P.lt=gH,P.lte=mH,P.max=JG,P.maxBy=ZG,P.mean=e5,P.meanBy=t5,P.min=n5,P.minBy=i5,P.stubArray=cb,P.stubFalse=lb,P.stubObject=BG,P.stubString=HG,P.stubTrue=GG,P.multiply=r5,P.nth=y4,P.noConflict=_G,P.noop=sb,P.now=Mg,P.pad=oG,P.padEnd=aG,P.padStart=sG,P.parseInt=cG,P.random=zH,P.reduce=EB,P.reduceRight=SB,P.repeat=lG,P.replace=fG,P.result=$H,P.round=o5,P.runInContext=w,P.sample=PB,P.size=IB,P.snakeCase=uG,P.some=OB,P.sortedIndex=x4,P.sortedIndexBy=C4,P.sortedIndexOf=I4,P.sortedLastIndex=O4,P.sortedLastIndexBy=R4,P.sortedLastIndexOf=L4,P.startCase=dG,P.startsWith=gG,P.subtract=a5,P.sum=s5,P.sumBy=c5,P.template=mG,P.times=WG,P.toFinite=pa,P.toInteger=et,P.toLength=cL,P.toLower=hG,P.toNumber=Ur,P.toSafeInteger=hH,P.toString=It,P.toUpper=yG,P.trim=TG,P.trimEnd=vG,P.trimStart=bG,P.truncate=EG,P.unescape=SG,P.uniqueId=XG,P.upperCase=AG,P.upperFirst=ib,P.each=QR,P.eachRight=qR,P.first=GR,ab(P,(function(){var c={};return Fo(P,function(u,g){Ft.call(P.prototype,g)||(c[g]=u)}),c})(),{chain:!1}),P.VERSION=t,_r(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),_r(["drop","take"],function(c,u){dt.prototype[c]=function(g){g=g===e?1:Wn(et(g),0);var T=this.__filtered__&&!u?new dt(this):this.clone();return T.__filtered__?T.__takeCount__=hi(g,T.__takeCount__):T.__views__.push({size:hi(g,rn),type:c+(T.__dir__<0?"Right":"")}),T},dt.prototype[c+"Right"]=function(g){return this.reverse()[c](g).reverse()}}),_r(["filter","map","takeWhile"],function(c,u){var g=u+1,T=g==nn||g==St;dt.prototype[c]=function(S){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(S,3),type:g}),C.__filtered__=C.__filtered__||T,C}}),_r(["head","last"],function(c,u){var g="take"+(u?"Right":"");dt.prototype[c]=function(){return this[g](1).value()[0]}}),_r(["initial","tail"],function(c,u){var g="drop"+(u?"":"Right");dt.prototype[c]=function(){return this.__filtered__?new dt(this):this[g](1)}}),dt.prototype.compact=function(){return this.filter(Xi)},dt.prototype.find=function(c){return this.filter(c).head()},dt.prototype.findLast=function(c){return this.reverse().find(c)},dt.prototype.invokeMap=rt(function(c,u){return typeof c=="function"?new dt(this):this.map(function(g){return yu(g,c,u)})}),dt.prototype.reject=function(c){return this.filter(jg(Ve(c)))},dt.prototype.slice=function(c,u){c=et(c);var g=this;return g.__filtered__&&(c>0||u<0)?new dt(g):(c<0?g=g.takeRight(-c):c&&(g=g.drop(c)),u!==e&&(u=et(u),g=u<0?g.dropRight(-u):g.take(u-c)),g)},dt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},dt.prototype.toArray=function(){return this.take(rn)},Fo(dt.prototype,function(c,u){var g=/^(?:filter|find|map|reject)|While$/.test(u),T=/^(?:head|last)$/.test(u),S=P[T?"take"+(u=="last"?"Right":""):u],C=T||/^find/.test(u);S&&(P.prototype[u]=function(){var L=this.__wrapped__,F=T?[1]:arguments,M=L instanceof dt,z=F[0],J=M||Ye(L),ne=o(function(lt){var gt=S.apply(P,za([lt],F));return T&&ge?gt[0]:gt},"interceptor");J&&g&&typeof z=="function"&&z.length!=1&&(M=J=!1);var ge=this.__chain__,Re=!!this.__actions__.length,Me=C&&!ge,nt=M&&!Re;if(!C&&J){L=nt?L:new dt(this);var ke=c.apply(L,F);return ke.__actions__.push({func:Vg,args:[ne],thisArg:e}),new wr(ke,ge)}return Me&&nt?c.apply(this,F):(ke=this.thru(ne),Me?T?ke.value()[0]:ke.value():ke)})}),_r(["pop","push","shift","sort","splice","unshift"],function(c){var u=sg[c],g=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",T=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var S=arguments;if(T&&!this.__chain__){var C=this.value();return u.apply(Ye(C)?C:[],S)}return this[g](function(L){return u.apply(Ye(L)?L:[],S)})}}),Fo(dt.prototype,function(c,u){var g=P[u];if(g){var T=g.name+"";Ft.call(Sl,T)||(Sl[T]=[]),Sl[T].push({name:u,func:g})}}),Sl[Og(e,I).name]=[{name:"wrapper",func:e}],dt.prototype.clone=EU,dt.prototype.reverse=SU,dt.prototype.value=AU,P.prototype.at=Z4,P.prototype.chain=eB,P.prototype.commit=tB,P.prototype.next=nB,P.prototype.plant=rB,P.prototype.reverse=oB,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=aB,P.prototype.first=P.prototype.head,fu&&(P.prototype[fu]=iB),P}),"runInContext"),Za=eU();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(qn._=Za,define(function(){return Za})):cc?((cc.exports=Za)._=Za,ov._=Za):qn._=Za}).call(_f)});var wM=Ze((lge,VM)=>{var{findIndex:e9}=ad();function t9(e,t){let i=e9(e,a=>a.endOffset===t),r=!1;for(;r===!1;){i++;let a=e[i];if(a===void 0)return null;if(a.tokenType.name!=="SEA_WS")return a}}o(t9,"findNextTextualToken");VM.exports={findNextTextualToken:t9}});var jM=Ze((uge,kM)=>{var MM=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function n9({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(MM);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(n9,"isXMLNamespaceKey");function i9(e){if(typeof e!="string")return;let t=e.match(MM);if(t!==null)return t.groups&&t.groups.prefix||""}o(i9,"getXMLNamespaceKeyPrefix");kM.exports={isXMLNamespaceKey:n9,getXMLNamespaceKeyPrefix:i9}});var $M=Ze((dge,UM)=>{var{findNextTextualToken:r9}=wM(),{isXMLNamespaceKey:o9,getXMLNamespaceKeyPrefix:a9}=jM();UM.exports={findNextTextualToken:r9,isXMLNamespaceKey:o9,getXMLNamespaceKeyPrefix:a9}});var rx=Ze((gge,HM)=>{var{reduce:s9,has:BM,isArray:c9}=ad();function l9(e){return s9(e,(n,i,r)=>(r==="parent"||(BM(i,"type")?n.push(i):c9(i)&&i.length>0&&BM(i[0],"type")&&(n=n.concat(i))),n),[])}o(l9,"getAstChildrenReflective");HM.exports={getAstChildrenReflective:l9}});var ox=Ze((hge,GM)=>{GM.exports={DEFAULT_NS:"::DEFAULT"}});var JM=Ze((yge,zM)=>{var{BaseXmlCstVisitor:f9}=ix(),{last:u9,forEach:QM,reduce:p9,map:sd,pick:sx,sortBy:d9,isEmpty:g9,isArray:qM,assign:m9}=ad(),{findNextTextualToken:h9,isXMLNamespaceKey:y9,getXMLNamespaceKeyPrefix:T9}=$M(),{getAstChildrenReflective:v9}=rx(),{DEFAULT_NS:b9}=ox();function E9(e,t){WM.setState({tokenVector:t});let n=WM.visit(e);return n.rootElement!==sl&&YM(n.rootElement),n}o(E9,"buildAst");var cx=class cx extends f9{constructor(){super()}setState({tokenVector:t}){this.tokenVector=t}visit(t,n={}){return super.visit(t,{location:t.location,...n})}document(t,{location:n}){let i={type:"XMLDocument",rootElement:sl,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&g9(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),uT(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=sd(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),uT(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=sd(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=sd(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:sl,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=sd(t.attribute,this.visit.bind(this))),t.content!==void 0){let{elements:r,textContents:a}=this.visit(t.content[0]);i.subElements=r,i.textContents=a}return P9(i,t),x9(i,t),C9(i,t,this.tokenVector),uT(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:sl,value:sl,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=pT(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=S9(a.image),r.syntax.value=pT(a)}return uT(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:sl},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=d9(r,["startOffset"]),s=sd(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(cx,"CstToAstVisitor");var ax=cx,WM=new ax;function uT(e){let t=v9(e);QM(t,n=>n.parent=e)}o(uT,"setChildrenParent");function YM(e,t=[]){let n=p9(e.attributes,(r,a)=>{if(a.key!==sl&&y9({key:a.key,includeEmptyPrefix:!1})===!0){let s=T9(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[b9]=l}}return r},{}),i=Object.create(null);e.namespaces=m9(i,t,n),QM(e.subElements,r=>YM(r,e.namespaces))}o(YM,"updateNamespaces");function pT(e){return sx(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(pT,"toXMLToken");function KM(e){return sx(e,["startOffset","startLine","startColumn"])}o(KM,"startOfXMLToken");function XM(e){return sx(e,["endOffset","endLine","endColumn"])}o(XM,"endOfXMLToken");function Ga(e){return qM(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(Ga,"exists");function S9(e){return e.substring(1,e.length-1)}o(S9,"stripQuotes");function A9(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(A9,"nsToParts");var sl=null;function P9(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=pT(n);let i=A9(n.image);i!==null?(e.ns=i.ns,e.name=i.name):e.name=n.image}t.END_NAME!==void 0&&t.END_NAME[0].isInsertedInRecovery!==!0&&(e.syntax.closeName=pT(t.END_NAME[0]))}o(P9,"handleElementOpenCloseNameRanges");function x9(e,t){if(Ga(t.OPEN)){let n;Ga(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Ga(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...KM(t.OPEN[0]),...XM(n)}),Ga(t.SLASH_OPEN)&&Ga(t.END)&&(e.syntax.closeBody={...KM(t.SLASH_OPEN[0]),...XM(t.END[0])})}}o(x9,"handleElementOpenCloseBodyRanges");function C9(e,t,n){if(Ga(t.Name)){let i=t.Name[0].endOffset+2;if(Ga(t.START_CLOSE)||Ga(t.SLASH_CLOSE)){let r=(Ga(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=qM(t.attribute)?u9(t.attribute).location.endOffset:t.Name[0].endOffset,s=h9(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(C9,"handleElementAttributeRanges");zM.exports={buildAst:E9}});var tk=Ze((vge,ek)=>{var{forEach:I9,isFunction:Vf}=ad(),{getAstChildrenReflective:O9}=rx();function ZM(e,t){switch(e.type){case"XMLDocument":{Vf(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{Vf(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{Vf(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{Vf(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{Vf(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{Vf(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=O9(e);I9(n,i=>{ZM(i,t)})}o(ZM,"accept");ek.exports={accept:ZM}});var ik=Ze((Ege,nk)=>{var{buildAst:R9}=JM(),{accept:L9}=tk(),{DEFAULT_NS:N9}=ox();nk.exports={buildAst:R9,accept:L9,DEFAULT_NS:N9}});var Fi={};yc(Fi,{deleteConfigEntityByPath:()=>XZ,exportConfig:()=>WZ,exportConfigEntityByPath:()=>KZ,generateCustomExtension:()=>HI,generateSchema:()=>GZ,getApiVersion:()=>zZ,getChanges:()=>k2,getGenericSchema:()=>XT,getPathToGenericSchema:()=>n2,getProject:()=>nee,importConfig:()=>QZ,importProject:()=>qZ,importProjectSchema:()=>YZ,isDirectory:()=>ZZ,log:()=>oe,prompts:()=>HZ,readDirectory:()=>QI});module.exports=Gg(Fi);var de=Z(re());var W=Z(re());var Be=o(e=>typeof e=="string","isString"),Pu=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),iD=o(e=>e==null?"":""+e,"makeString"),HW=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),GW=/###/g,rD=o(e=>e&&e.indexOf("###")>-1?e.replace(GW,"."):e,"cleanKey"),oD=o(e=>!e||Be(e),"canNotTraverseDeeper"),xu=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(oD(e))return{};let a=rD(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return oD(e)?{}:{obj:e,k:rD(i[r])}},"getLastOfPath"),aD=o((e,t,n)=>{let{obj:i,k:r}=xu(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=xu(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=xu(e,s,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),WW=o((e,t,n,i)=>{let{obj:r,k:a}=xu(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),Kg=o((e,t)=>{let{obj:n,k:i}=xu(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},"getPath"),KW=o((e,t,n)=>{let i=Kg(e,n);return i!==void 0?i:Kg(t,n)},"getPathWithDefaults"),gD=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?Be(e[i])||e[i]instanceof String||Be(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):gD(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),Ll=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),XW={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},QW=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>XW[t]):e,"escape"),Cb=class Cb{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let n=this.regExpMap.get(t);if(n!==void 0)return n;let i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}};o(Cb,"RegExpCache");var Tb=Cb,qW=[" ",",","?","!",";"],YW=new Tb(20),zW=o((e,t,n)=>{t=t||"",n=n||"";let i=qW.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=YW.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),vb=o((e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let i=t.split(n),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let f=a;f<i.length;++f)if(f!==a&&(l+=n),l+=i[f],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&f<i.length-1)continue;a+=f-a+1;break}r=s}return r},"deepFind"),Ou=o(e=>e==null?void 0:e.replace("_","-"),"getCleanedCode"),JW={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,i;(i=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||i.call(n,console,t)}},Cu=class Cu{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||JW,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,i,r){return r&&!this.debug?null:(Be(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Cu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Cu(this.logger,t)}};o(Cu,"Logger");var bb=Cu,Vo=new bb,Ib=class Ib{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([r,a])=>{for(let s=0;s<a;s++)r(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,a])=>{for(let s=0;s<a;s++)r.apply(r,[t,...n])})}};o(Ib,"EventEmitter");var Nl=Ib,Ob=class Ob extends Nl{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,i,r={}){var p,d;let a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):Be(i)&&a?l.push(...i.split(a)):l.push(i)));let f=Kg(this.data,l);return!f&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),f||!s||!Be(i)?f:vb((d=(p=this.data)==null?void 0:p[t])==null?void 0:d[n],i,a)}addResource(t,n,i,r,a={silent:!1}){let s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),aD(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i,r={silent:!1}){for(let a in i)(Be(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a,s={silent:!1,skipCopy:!1}){let l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let f=Kg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?gD(f,i,a):f={...f,...i},aD(this.data,l,f),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(Ob,"ResourceStore");var Xg=Ob,mD={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{var s;t=((s=this.processors[a])==null?void 0:s.process(t,n,i,r))??t}),t}},hD=Symbol("i18next/PATH_KEY");function ZW(){let e=[],t=Object.create(null),n;return t.get=(i,r)=>{var a;return(a=n==null?void 0:n.revoke)==null||a.call(n),r===hD?e:(e.push(r),n=Proxy.revocable(i,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}o(ZW,"createProxy");function Eb(e,t){let{[hD]:n}=e(ZW());return n.join((t==null?void 0:t.keySeparator)??".")}o(Eb,"keysFromSelector");var sD={},hb=o(e=>!Be(e)&&typeof e!="boolean"&&typeof e!="number","shouldHandleAsObject"),zg=class zg extends Nl{constructor(t,n={}){super(),HW(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Vo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){let i={...n};if(t==null)return!1;let r=this.resolve(t,i);if((r==null?void 0:r.res)===void 0)return!1;let a=hb(r.res);return!(i.returnObjects===!1&&a)}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!zW(t,i,r);if(s&&!l){let f=t.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:t,namespaces:Be(a)?[a]:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return{key:t,namespaces:Be(a)?[a]:a}}translate(t,n,i){let r=typeof n=="object"?{...n}:n;if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";typeof t=="function"&&(t=Eb(t,{...this.options,...r})),Array.isArray(t)||(t=[String(t)]);let a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:l,namespaces:f}=this.extractFromKey(t[t.length-1],r),p=f[f.length-1],d=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;d===void 0&&(d=":");let m=r.lng||this.language,v=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((m==null?void 0:m.toLowerCase())==="cimode")return v?a?{res:`${p}${d}${l}`,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:`${p}${d}${l}`:a?{res:l,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:l;let E=this.resolve(t,r),b=E==null?void 0:E.res,I=(E==null?void 0:E.usedKey)||l,N=(E==null?void 0:E.exactUsedKey)||l,j=["[object Number]","[object Function]","[object RegExp]"],G=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,$=!this.i18nFormat||this.i18nFormat.handleAsObject,se=r.count!==void 0&&!Be(r.count),ee=zg.hasDefaultValue(r),le=se?this.pluralResolver.getSuffix(m,r.count,r):"",Le=r.ordinal&&se?this.pluralResolver.getSuffix(m,r.count,{ordinal:!1}):"",D=se&&!r.ordinal&&r.count===0,Ue=D&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${le}`]||r[`defaultValue${Le}`]||r.defaultValue,$e=b;$&&!b&&ee&&($e=Ue);let qe=hb($e),nn=Object.prototype.toString.apply($e);if($&&$e&&qe&&j.indexOf(nn)<0&&!(Be(G)&&Array.isArray($e))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let $t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(I,$e,{...r,ns:f}):`key '${l} (${this.language})' returned an object instead of string.`;return a?(E.res=$t,E.usedParams=this.getUsedParamsDetails(r),E):$t}if(s){let $t=Array.isArray($e),St=$t?[]:{},qt=$t?N:I;for(let Ne in $e)if(Object.prototype.hasOwnProperty.call($e,Ne)){let Tn=`${qt}${s}${Ne}`;ee&&!b?St[Ne]=this.translate(Tn,{...r,defaultValue:hb(Ue)?Ue[Ne]:void 0,joinArrays:!1,ns:f}):St[Ne]=this.translate(Tn,{...r,joinArrays:!1,ns:f}),St[Ne]===Tn&&(St[Ne]=$e[Ne])}b=St}}else if($&&Be(G)&&Array.isArray(b))b=b.join(G),b&&(b=this.extendTranslation(b,t,r,i));else{let $t=!1,St=!1;!this.isValidLookup(b)&&ee&&($t=!0,b=Ue),this.isValidLookup(b)||(St=!0,b=l);let Ne=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&St?void 0:b,Tn=ee&&Ue!==b&&this.options.updateMissing;if(St||$t||Tn){if(this.logger.log(Tn?"updateKey":"missingKey",m,p,l,Tn?Ue:b),s){let on=this.resolve(l,{...r,keySeparator:!1});on&&on.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 vn=[],rn=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&rn&&rn[0])for(let on=0;on<rn.length;on++)vn.push(rn[on]);else this.options.saveMissingTo==="all"?vn=this.languageUtils.toResolveHierarchy(r.lng||this.language):vn.push(r.lng||this.language);let On=o((on,Oe,ln)=>{var tt;let Oi=ee&&ln!==b?ln:Ne;this.options.missingKeyHandler?this.options.missingKeyHandler(on,p,Oe,Oi,Tn,r):(tt=this.backendConnector)!=null&&tt.saveMissing&&this.backendConnector.saveMissing(on,p,Oe,Oi,Tn,r),this.emit("missingKey",on,p,Oe,b)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&se?vn.forEach(on=>{let Oe=this.pluralResolver.getSuffixes(on,r);D&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Oe.indexOf(`${this.options.pluralSeparator}zero`)<0&&Oe.push(`${this.options.pluralSeparator}zero`),Oe.forEach(ln=>{On([on],l+ln,r[`defaultValue${ln}`]||Ue)})}):On(vn,l,Ue))}b=this.extendTranslation(b,t,r,E,i),St&&b===l&&this.options.appendNamespaceToMissingKey&&(b=`${p}${d}${l}`),(St||$t)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${d}${l}`:l,$t?b:void 0,r))}return a?(E.res=b,E.usedParams=this.getUsedParamsDetails(r),E):b}extendTranslation(t,n,i,r,a){var f,p;if((f=this.i18nFormat)!=null&&f.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let d=Be(t)&&(((p=i==null?void 0:i.interpolation)==null?void 0:p.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),m;if(d){let E=t.match(this.interpolator.nestingRegexp);m=E&&E.length}let v=i.replace&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),t=this.interpolator.interpolate(t,v,i.lng||this.language||r.usedLng,i),d){let E=t.match(this.interpolator.nestingRegexp),b=E&&E.length;m<b&&(i.nest=!1)}!i.lng&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,(...E)=>(a==null?void 0:a[0])===E[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${E[0]} in key: ${n[0]}`),null):this.translate(...E,n),i)),i.interpolation&&this.interpolator.reset()}let s=i.postProcess||this.options.postProcess,l=Be(s)?[s]:s;return t!=null&&(l!=null&&l.length)&&i.applyPostProcessor!==!1&&(t=mD.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t,n={}){let i,r,a,s,l;return Be(t)&&(t=[t]),t.forEach(f=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(f,n),d=p.key;r=d;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let v=n.count!==void 0&&!Be(n.count),E=v&&!n.ordinal&&n.count===0,b=n.context!==void 0&&(Be(n.context)||typeof n.context=="number")&&n.context!=="",I=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(N=>{var j,G;this.isValidLookup(i)||(l=N,!sD[`${I[0]}-${N}`]&&((j=this.utils)!=null&&j.hasLoadedNamespace)&&!((G=this.utils)!=null&&G.hasLoadedNamespace(l))&&(sD[`${I[0]}-${N}`]=!0,this.logger.warn(`key "${r}" for languages "${I.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),I.forEach($=>{var le;if(this.isValidLookup(i))return;s=$;let se=[d];if((le=this.i18nFormat)!=null&&le.addLookupKeys)this.i18nFormat.addLookupKeys(se,d,$,N,n);else{let Le;v&&(Le=this.pluralResolver.getSuffix($,n.count,n));let D=`${this.options.pluralSeparator}zero`,Ue=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(n.ordinal&&Le.indexOf(Ue)===0&&se.push(d+Le.replace(Ue,this.options.pluralSeparator)),se.push(d+Le),E&&se.push(d+D)),b){let $e=`${d}${this.options.contextSeparator||"_"}${n.context}`;se.push($e),v&&(n.ordinal&&Le.indexOf(Ue)===0&&se.push($e+Le.replace(Ue,this.options.pluralSeparator)),se.push($e+Le),E&&se.push($e+D))}}let ee;for(;ee=se.pop();)this.isValidLookup(i)||(a=ee,i=this.getResource($,N,ee,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i,r={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(t={}){let n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Be(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(zg,"Translator");var Qg=zg,Rb=class Rb{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Vo.create("languageUtils")}getScriptPartFromCode(t){if(t=Ou(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=Ou(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Be(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(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getScriptPartFromCode(i);if(this.isSupportedCode(r))return n=r;let a=this.getLanguagePartFromCode(i);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Be(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return Be(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):Be(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(Rb,"LanguageUtil");var qg=Rb,cD={zero:0,one:1,two:2,few:3,many:4,other:5},lD={select:o(e=>e===1?"one":"other","select"),resolvedOptions:o(()=>({pluralCategories:["one","other"]}),"resolvedOptions")},Lb=class Lb{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Vo.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){let i=Ou(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),lD;if(!t.match(/-|_/))return lD;let f=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(f,n)}return this.pluralRulesCache[a]=s,s}needsPlural(t,n={}){let i=this.getRule(t,n);return i||(i=this.getRule("dev",n)),(i==null?void 0:i.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,i={}){return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t,n={}){let i=this.getRule(t,n);return i||(i=this.getRule("dev",n)),i?i.resolvedOptions().pluralCategories.sort((r,a)=>cD[r]-cD[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(t,n,i={}){let r=this.getRule(t,i);return r?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,i))}};o(Lb,"PluralResolver");var Sb=Lb,fD=o((e,t,n,i=".",r=!0)=>{let a=KW(e,t,n);return!a&&r&&Be(n)&&(a=vb(e,n,i),a===void 0&&(a=vb(t,n,i))),a},"deepFindWithDefaults"),yb=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),Nb=class Nb{constructor(t={}){var n;this.logger=Vo.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(i=>i),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:f,formatSeparator:p,unescapeSuffix:d,unescapePrefix:m,nestingPrefix:v,nestingPrefixEscaped:E,nestingSuffix:b,nestingSuffixEscaped:I,nestingOptionsSeparator:N,maxReplaces:j,alwaysFormat:G}=t.interpolation;this.escape=n!==void 0?n:QW,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?Ll(a):s||"{{",this.suffix=l?Ll(l):f||"}}",this.formatSeparator=p||",",this.unescapePrefix=d?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=v?Ll(v):E||Ll("$t("),this.nestingSuffix=b?Ll(b):I||Ll(")"),this.nestingOptionsSeparator=N||",",this.maxReplaces=j||1e3,this.alwaysFormat=G!==void 0?G:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>(n==null?void 0:n.source)===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,i,r){var E;let a,s,l,f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(b=>{if(b.indexOf(this.formatSeparator)<0){let G=fD(n,f,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(G,void 0,i,{...r,...n,interpolationkey:b}):G}let I=b.split(this.formatSeparator),N=I.shift().trim(),j=I.join(this.formatSeparator).trim();return this.format(fD(n,f,N,this.options.keySeparator,this.options.ignoreJSONStructure),j,i,{...r,...n,interpolationkey:N})},"handleFormat");this.resetRegExp();let d=(r==null?void 0:r.missingInterpolationHandler)||this.options.missingInterpolationHandler,m=((E=r==null?void 0:r.interpolation)==null?void 0:E.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(b=>yb(b),"safeValue")},{regex:this.regexp,safeValue:o(b=>this.escapeValue?yb(this.escape(b)):yb(b),"safeValue")}].forEach(b=>{for(l=0;a=b.regex.exec(t);){let I=a[1].trim();if(s=p(I),s===void 0)if(typeof d=="function"){let j=d(t,a,r);s=Be(j)?j:""}else if(r&&Object.prototype.hasOwnProperty.call(r,I))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${I} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=iD(s));let N=b.safeValue(s);if(t=t.replace(a[0],N),m?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n,i={}){let r,a,s,l=o((f,p)=>{let d=this.nestingOptionsSeparator;if(f.indexOf(d)<0)return f;let m=f.split(new RegExp(`${d}[ ]*{`)),v=`{${m[1]}`;f=m[0],v=this.interpolate(v,s);let E=v.match(/'/g),b=v.match(/"/g);(((E==null?void 0:E.length)??0)%2===0&&!b||b.length%2!==0)&&(v=v.replace(/'/g,'"'));try{s=JSON.parse(v),p&&(s={...p,...s})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${f}`,I),`${f}${d}${v}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,f},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let f=[];s={...i},s=s.replace&&!Be(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(p!==-1&&(f=r[1].slice(p).split(this.formatSeparator).map(d=>d.trim()).filter(Boolean),r[1]=r[1].slice(0,p)),a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!Be(a))return a;Be(a)||(a=iD(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),f.length&&(a=f.reduce((d,m)=>this.format(d,m,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o(Nb,"Interpolator");var Ab=Nb,e8=o(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...f]=s.split(":"),p=f.join(":").trim().replace(/^'+|'+$/g,""),d=l.trim();n[d]||(n[d]=p),p==="false"&&(n[d]=!1),p==="true"&&(n[d]=!0),isNaN(p)||(n[d]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),uD=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(Ou(i),r),t[s]=l),l(n)}},"createCachedFormatter"),t8=o(e=>(t,n,i)=>e(Ou(n),i)(t),"createNonCachedFormatter"),Fb=class Fb{constructor(t={}){this.logger=Vo.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";let i=n.cacheInBuiltFormats?uD:t8;this.formats={number:i((r,a)=>{let s=new Intl.NumberFormat(r,{...a});return l=>s.format(l)}),currency:i((r,a)=>{let s=new Intl.NumberFormat(r,{...a,style:"currency"});return l=>s.format(l)}),datetime:i((r,a)=>{let s=new Intl.DateTimeFormat(r,{...a});return l=>s.format(l)}),relativetime:i((r,a)=>{let s=new Intl.RelativeTimeFormat(r,{...a});return l=>s.format(l,a.range||"day")}),list:i((r,a)=>{let s=new Intl.ListFormat(r,{...a});return l=>s.format(l)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=uD(n)}format(t,n,i,r={}){let a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(f=>f.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,f)=>{var m;let{formatName:p,formatOptions:d}=e8(f);if(this.formats[p]){let v=l;try{let E=((m=r==null?void 0:r.formatParams)==null?void 0:m[r.interpolationkey])||{},b=E.locale||E.lng||r.locale||r.lng||i;v=this.formats[p](l,b,{...d,...r,...E})}catch(E){this.logger.warn(E)}return v}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(Fb,"Formatter");var Pb=Fb,n8=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),Db=class Db extends Nl{constructor(t,n,i,r={}){var a,s;super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=Vo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],(s=(a=this.backend)==null?void 0:a.init)==null||s.call(a,i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},f={};return t.forEach(p=>{let d=!0;n.forEach(m=>{let v=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?s[v]===void 0&&(s[v]=!0):(this.state[v]=1,d=!1,s[v]===void 0&&(s[v]=!0),a[v]===void 0&&(a[v]=!0),f[m]===void 0&&(f[m]=!0)))}),d||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(f)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(f=>{WW(f.loaded,[a],s),n8(f,t),n&&f.errors.push(n),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(p=>{l[p]||(l[p]={});let d=f.loaded[p];d.length&&d.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(f=>!f.done)}read(t,n,i,r=0,a=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((p,d)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&d&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(p,d)},"resolver"),f=this.backend[i].bind(this.backend);if(f.length===2){try{let p=f(t,n);p&&typeof p.then=="function"?p.then(d=>l(null,d)).catch(l):l(null,p)}catch(p){l(p)}return}return f(t,n,l)}prepareLoading(t,n,i={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Be(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Be(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t,n=""){let i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a,s={},l=()=>{}){var f,p,d,m,v;if((p=(f=this.services)==null?void 0:f.utils)!=null&&p.hasLoadedNamespace&&!((m=(d=this.services)==null?void 0:d.utils)!=null&&m.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if((v=this.backend)!=null&&v.create){let E={...s,isUpdate:a},b=this.backend.create.bind(this.backend);if(b.length<6)try{let I;b.length===5?I=b(t,n,i,r,E):I=b(t,n,i,r),I&&typeof I.then=="function"?I.then(N=>l(null,N)).catch(l):l(null,I)}catch(I){l(I)}else b(t,n,i,r,l,E)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(Db,"Connector");var xb=Db,pD=o(()=>({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:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Be(e[1])&&(t.defaultValue=e[1]),Be(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),"get"),dD=o(e=>{var t,n;return Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(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"),Wg=o(()=>{},"noop"),i8=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Iu=class Iu extends Nl{constructor(t={},n){if(super(),this.options=dD(t),this.services={},this.logger=Vo,this.modules={external:[]},i8(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&&(Be(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let i=pD();this.options={...i,...this.options,...dD(t)},this.options.interpolation={...i.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let r=o(p=>p?typeof p=="function"?new p:p:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Vo.init(r(this.modules.logger),this.options):Vo.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=Pb;let d=new qg(this.options);this.store=new Xg(this.options.resources,this.options);let m=this.services;m.logger=Vo,m.resourceStore=this.store,m.languageUtils=d,m.pluralResolver=new Sb(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.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"),p&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(m.formatter=r(p),m.formatter.init&&m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new Ab(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new xb(r(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",(E,...b)=>{this.emit(E,...b)}),this.modules.languageDetector&&(m.languageDetector=r(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=r(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new Qg(this.services,this.options),this.translator.on("*",(E,...b)=>{this.emit(E,...b)}),this.modules.external.forEach(E=>{E.init&&E.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Wg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[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(p=>{this[p]=(...d)=>this.store[p](...d)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...d)=>(this.store[p](...d),this)});let l=Pu(),f=o(()=>{let p=o((d,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(m),n(d,m)},"finish");if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)},"load");return this.options.resources||!this.options.initAsync?f():setTimeout(f,0),l}loadResources(t,n=Wg){var a,s;let i=n,r=Be(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if((r==null?void 0:r.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let l=[],f=o(p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(m=>{m!=="cimode"&&l.indexOf(m)<0&&l.push(m)})},"append");r?f(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>f(d)),(s=(a=this.options.preload)==null?void 0:a.forEach)==null||s.call(a,p=>f(p)),this.services.backendConnector.load(l,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(p)})}else i(null)}reloadResources(t,n,i){let r=Pu();return typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),i||(i=Wg),this.services.backendConnector.reload(t,n,a=>{r.resolve(),i(a)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&mD.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!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 i=Pu();this.emit("languageChanging",t);let r=o(l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},"setLngProps"),a=o((l,f)=>{f?this.isLanguageChangingTo===t&&(r(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,i.resolve((...p)=>this.t(...p)),n&&n(l,(...p)=>this.t(...p))},"done"),s=o(l=>{var d,m;!t&&!l&&this.services.languageDetector&&(l=[]);let f=Be(l)?l:l&&l[0],p=this.store.hasLanguageSomeTranslations(f)?f:this.services.languageUtils.getBestMatchFromCodes(Be(l)?[l]:l);p&&(this.language||r(p),this.translator.language||this.translator.changeLanguage(p),(m=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||m.call(d,p)),this.loadResources(p,v=>{a(v,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,n,i){let r=o((a,s,...l)=>{let f;typeof s!="object"?f=this.options.overloadTranslationOptionHandler([a,s].concat(l)):f={...s},f.lng=f.lng||r.lng,f.lngs=f.lngs||r.lngs,f.ns=f.ns||r.ns,f.keyPrefix!==""&&(f.keyPrefix=f.keyPrefix||i||r.keyPrefix);let p=this.options.keySeparator||".",d;return f.keyPrefix&&Array.isArray(a)?d=a.map(m=>(typeof m=="function"&&(m=Eb(m,{...this.options,...s})),`${f.keyPrefix}${p}${m}`)):(typeof a=="function"&&(a=Eb(a,{...this.options,...s})),d=f.keyPrefix?`${f.keyPrefix}${p}${a}`:a),this.t(d,f)},"fixedT");return Be(t)?r.lng=t:r.lngs=t,r.ns=n,r.keyPrefix=i,r}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 i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,f)=>{let p=this.services.backendConnector.state[`${l}|${f}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=Pu();return this.options.ns?(Be(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=Pu();Be(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){var r,a;if(t||(t=this.resolvedLanguage||(((r=this.languages)==null?void 0:r.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{let s=new Intl.Locale(t);if(s&&s.getTextInfo){let l=s.getTextInfo();if(l&&l.direction)return l.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"],i=((a=this.services)==null?void 0:a.languageUtils)||new qg(pD());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){return new Iu(t,n)}cloneInstance(t={},n=Wg){let i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new Iu(r);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i){let l=Object.keys(this.store.data).reduce((f,p)=>(f[p]={...this.store.data[p]},f[p]=Object.keys(f[p]).reduce((d,m)=>(d[m]={...f[p][m]},d),f[p]),f),{});a.store=new Xg(l,r),a.services.resourceStore=a.store}return a.translator=new Qg(a.services,r),a.translator.on("*",(l,...f)=>{a.emit(l,...f)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(Iu,"I18n");var Yg=Iu,Q=Yg.createInstance();Q.createInstance=Yg.createInstance;var dee=Q.createInstance,gee=Q.dir,mee=Q.init,hee=Q.loadResources,yee=Q.reloadResources,Tee=Q.use,vee=Q.changeLanguage,bee=Q.getFixedT,Eee=Q.t,See=Q.exists,Aee=Q.setDefaultNamespace,Pee=Q.hasLoadedNamespace,xee=Q.loadNamespaces,Cee=Q.loadLanguages;var L0=Z(_b()),N0=Z(HD()),Tm=Z(R0()),Tt=require("@sap-ux/vocabularies-types/vocabularies/UI"),Fu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var hm=Z(re());var oe=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${hm.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${hm.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${hm.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var U="#/definitions/",wK=[W.v4.FE_TEMPLATE_V4_LIST_REPORT,W.v4.FE_TEMPLATE_V4_ALP,W.v4.FE_TEMPLATE_V4_OBJECT_PAGE,W.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],MK=["sap.fe.core","sap.fe.templates"],kl=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),Tr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function $r(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,Tm.parse)(r.fileContent,r.dataSourceUri))}catch(a){return oe(t,{severity:W.LogSeverity.Error,message:Q.t("ANNOERR"),location:{path:Q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,Tm.merge)(...n);i=(0,N0.convert)(r)}return i}o($r,"parseAndMergeAndConvert");var Ml=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function eE(e,t,n){var i,r,a,s;if((i=e==null?void 0:e.Common)!=null&&i.Label)if(typeof e.Common.Label=="string")n=e.Common.Label;else if(e.Common.Label.type==="Path"){let l=t&&t.resolvePath(e.Common.Label.path);l!=null&&l.value?n=l.value:typeof((r=l==null?void 0:l.Common)==null?void 0:r.Label)=="string"&&(n=l.annotations.Common.Label)}else typeof((s=(a=e.Common)==null?void 0:a.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}o(eE,"evaluateCommonLabel");function jl(e,t){let n=e.value;return e.$target&&(n=eE(e.$target.annotations,t,n)),n}o(jl,"getLabelForPropertyPath");function Du(e,t){var r,a;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(s=>s.name===e.Value):(i=t&&t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&(e.Target.$target.Value?i=e.Target.$target.Value.$target:e.Target.$target.Label&&(n=e.Target.$target.Label)),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=eE(i.annotations,t,n)),n}o(Du,"getLabelForDataField");function va(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return eE(a.annotations,t,s)}}}else return}o(va,"getLabel");function vm(e,t){var r;let n=e,i=typeof n.Action=="string"?n.Action:(r=n.Action)==null?void 0:r.path;return t&&typeof t=="string"?t:i}o(vm,"getDescriptionForActionBasedDataFields");function tE(e,t,n){let i=Du(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(tE,"getTitleForDataField");function at(e){return e.replace("#","::").replace(/\//g,":2f")}o(at,"prepareRef");function Ta(e){if(e){let t=`${W.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(Ta,"getPageTypeV2");function nE(e){let t="name"in e&&typeof e.name=="string"?ym(e.name):void 0;if(t)return t;if("viewId"in e&&e.viewId||"viewName"in e&&e.viewName)return W.PageTypeV4.CustomPage}o(nE,"getPageTypeV4");function kK(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(kK,"getTargetAnnotationName");function oi(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(oi,"findAlias");function jK(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(jK,"getAnnotationFromMetaPath");function UK(e,t,n){var s,l;let i=e[e.length-1],r=jK(i),a=oi(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(UK,"determineTargetAnnotation");function $K(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Tt.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${W.UIVOCABULARY}`);return e}o($K,"adjustKey");function BK(e,t,n,i,r=W.FioriElementsVersion.v2,a=!1){var m,v;let s=!1,l,f=i.split("/"),p=f.length>1;p&&n&&(n=(m=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:m.targetType),t=$K(t,f,a);let d=UK(f,n,e);if(d){let E=r===W.FioriElementsVersion.v2?"::":"#";t=kK(d,a).replace("#",E),l=(v=d.fullyQualifiedName)==null?void 0:v.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let E=r===W.FioriElementsVersion.v2?"::":"/";f.pop(),t=`${[...f].join(E)}${E}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(BK,"getKeyAndEntityTypeOfReferenceFacet");function F0(e,t,n,i,r=W.FioriElementsVersion.v2,a=!1){var d,m,v;let s=(m=e.fullyQualifiedName)==null?void 0:m.substring((d=e.fullyQualifiedName)==null?void 0:d.lastIndexOf("@")),l=e.ID?e.ID.toString():s,f=(v=e.fullyQualifiedName)==null?void 0:v.split("@")[0],p=t;if(e.$Type!==Tt.UIAnnotationTypes.CollectionFacet&&"Target"in e){let E=Ml(e.Target);if(!E){oe(i,{severity:W.LogSeverity.Error,message:Q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:I,stopProcessing:N,namespace:j}=BK(n,l,p,E,r,a);if(N)return;l=b,p=I,f=j}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:f}}o(F0,"getSectionFacet");function HK(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(HK,"getDecodedPathElement");var iE=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),D0=o((e,t,n,i,r,a=!1)=>{if(!t)return;let s=e,l=t.split("/");for(let f=0;f<l.length;f++){let p=l[f];if(p==="[]")continue;let d=HK(p,n,i);if(r!==void 0&&!a&&l.length-1===f)s[d]=r;else if(!s[d]){if(a)return;s[d]=iE(l[f+1])}typeof s[d]=="string"&&(!r||f<l.length-1)?s[d]={}:s=s[d]}return s},"resolveManifestPath"),ko=o((e,t,n,i,r=!1)=>D0(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),_0=o((e,t,n,i,r)=>{D0(e,t,i,r,n)},"setManifestSectionByPathV4");function rE(e){let t,n,i;switch(e.$Type){case Tt.UIAnnotationTypes.DataField:t=Ml(e.Value);break;case Tt.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Ml(e.Value);break;case Tt.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${W.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Tt.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${at(e.Action)}`);break;case Tt.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Ml(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Tt.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${at(e.Action)}`);break;case Tt.UIAnnotationTypes.DataFieldWithNavigationPath:i=Ml(e.Value),n=Ml(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(rE,"getSchemaKeyOfLineItemRecord");function GK(e,t,n){return e.includes(Tt.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Tt.UIAnnotationTerms.Chart:e.includes(Tt.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Tt.UIAnnotationTerms.Identification:n&&e.includes(Tt.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Tt.UIAnnotationTerms.LineItem:e.includes(Tt.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Tt.UIAnnotationTerms.FieldGroup:e.includes(Tt.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Tt.UIAnnotationTerms.DataPoint:e.includes(Tt.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Tt.UIAnnotationTerms.PresentationVariant:void 0}o(GK,"getUIAnnotationTerm");function WK(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Fu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Fu.CommunicationAnnotationTerms.Address:void 0}o(WK,"getCommunicationAnnotationTerm");function KK(e,t,n){return GK(e,t,n)||WK(e,t)}o(KK,"getAnnotationTerm");function XK(e,t,n,i,r){var p,d,m,v,E,b,I,N,j;let a=oi(W.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(KK(s,a,i)){case Tt.UIAnnotationTerms.Chart:{n[s]={base:W.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.Identification:{n[s]={base:W.FacetBase.Identification},n[s].target=(d=t==null?void 0:t.Target)==null?void 0:d.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.LineItem:{if(!s.includes(Tt.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let G=s.split("::");G[G.length-1]=`@${Tt.UIAnnotationTerms.LineItem}`,s=G.join("::")}n[s]={base:W.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.FieldGroup:{n[s]={base:W.FacetBase.Form},n[s].target=(v=t==null?void 0:t.Target)==null?void 0:v.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.DataPoint:{n[s]={base:W.FacetBase.DataPoint},n[s].Label=(E=t==null?void 0:t.Target)==null?void 0:E.$target.Title,n[s].target=(b=t==null?void 0:t.Target)==null?void 0:b.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.PresentationVariant:{n[s]={base:W.FacetBase.PresentationVariant},n[s].target=(I=t==null?void 0:t.Target)==null?void 0:I.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Fu.CommunicationAnnotationTerms.Contact:{n[s]={base:W.FacetBase.Contact},n[s].target=(N=t==null?void 0:t.Target)==null?void 0:N.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Fu.CommunicationAnnotationTerms.Address:{n[s]={base:W.FacetBase.Address},n[s].target=(j=t==null?void 0:t.Target)==null?void 0:j.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:W.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",W.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(XK,"evaluateTargetAnnotation");function oE(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(oE,"getAnnotationPathUsingFullyQualifiedName");function aE(e,t,n,i,r,a=W.FioriElementsVersion.v2,s){var f;let l=F0(e,i,t,s,a,!1);if(l)switch(e.$Type){case Tt.UIAnnotationTypes.ReferenceFacet:{XK(l,e,r,i,t);break}case Tt.UIAnnotationTypes.CollectionFacet:{let p=oE(i,e.fullyQualifiedName),d=r[l.key]={base:W.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!d.ID&&a===W.FioriElementsVersion.v4&&oe(s,{severity:W.LogSeverity.Error,message:Q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(f=e.Facets)==null||f.forEach(m=>{aE(m,t,n,i,d.facets,a,s)});break}}}o(aE,"addFacetToConfig");function bm(e,t,n=W.FioriElementsVersion.v2,i){var l,f;let r={};if(!e||!e.annotations)return;let a=oi(W.UIVOCABULARY,t),s=a&&((f=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:f.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),d=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{aE(m,t,d,e,r,n,i)})}return r}o(bm,"getObjectPageHeaderFacets");function Em(e,t,n=W.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=oi(W.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let f=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,f);s.forEach(d=>{aE(d,t,p,e,r,n,i)})}return r}o(Em,"getObjectPageFacets");function sE(e){var t,n,i,r;if(e[W.ManifestSection.generic]&&Object.keys(e[W.ManifestSection.generic]).length>0||e[W.ManifestSection.ovp]&&Object.keys(e[W.ManifestSection.ovp]).length>0)return W.FioriElementsVersion.v2;{let a=(n=(t=e[W.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[W.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>{let f=typeof a[l].name=="string"?a[l].name:"";return wK.indexOf(f)>-1||ym(f)})||s&&Object.keys(s).find(l=>MK.indexOf(l)>-1)?W.FioriElementsVersion.v4:void 0}}o(sE,"getFEVersionFromManifest");function QK(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[W.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[W.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[W.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[W.ManifestSection.ui5].models[t].dataSource:void 0}o(QK,"getMainService");function V0(e){var i,r;let t=QK(e);if(!t)return W.OdataVersion.v2;let n=(i=e[W.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?W.OdataVersion.v4:W.OdataVersion.v2}o(V0,"getODataVersionFromManifest");function qK(e,t){var i,r;let n;if(e[W.ManifestSection.generic]){let a=e[W.ManifestSection.generic].pages;if(!a){oe(t,{severity:W.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(Ta((i=l.component)==null?void 0:i.name)===W.PageTypeV2.AnalyticalListPage){n=W.TemplateType.AnalyticalListPageV2;break}else if(Ta((r=l.component)==null?void 0:r.name)===W.PageTypeV2.ListReport){n=W.TemplateType.ListReportObjectPageV2;break}}}else n||oe(t,{severity:W.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:W.ManifestSection.generic}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.generic]}});return n}o(qK,"determineV2Template");function _u(e){var i,r,a,s;let t,n=nE(e);if(n===W.PageTypeV4.AnalyticalListPage)t=W.TemplateType.AnalyticalListPageV4;else if(n===W.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[W.ALPViewType.Primary]||l[W.ALPViewType.Secondary])?t=W.TemplateType.AnalyticalListPageV4:t=W.TemplateType.ListReportObjectPageV4}else n===W.PageTypeV4.ObjectPage?t=W.TemplateType.ListReportObjectPageV4:[W.PageTypeV4.CustomPage,W.PageTypeV4.FPMCustomPage].includes(n)&&(t=W.TemplateType.FreestylePageV4);return t}o(_u,"determineV4PageTemplateType");function YK(e){let t;for(let n in e){let i=e[n];if(t=_u(i),t)break}return t}o(YK,"determineV4TemplateFromPages");function zK(e,t){let n=e[W.ManifestSection.ui5].routing&&e[W.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return oe(t,{severity:W.LogSeverity.Info,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.ui5,"routing"]}}),W.TemplateType.ListReportObjectPageV4;let i=YK(n);return i||oe(t,{severity:W.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:W.ManifestSection.ui5}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.ui5,"routing","targets"]}}),i}o(zK,"determineV4Template");function bc(e,t,n){let i;return e[W.ManifestSection.ovp]?i=W.TemplateType.OverviewPageV2:t===W.FioriElementsVersion.v2?i=qK(e,n):t===W.FioriElementsVersion.v4&&(i=zK(e,n)),i}o(bc,"getTemplateTypeFromManifest");function ba(e,t,n){e!=null&&e.ID?(t.title=W.FACETTITLEPREFIX+e.ID,t[W.SchemaTag.keys]=[{name:W.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[W.SchemaTag.keys]=[{name:W.SchemaKeyName.id,value:n.replace(W.UIVOCABULARYALPHADOT,"")}])}o(ba,"addSectionTitle");function cs(e,t,n){e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(cs,"addSectionDescription");function Ul(e,t,n){var i,r;ba(e,t,n),cs(e,t,n),!(e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}o(Ul,"addTargetTitleAndSectionDescription");function w0(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(w0,"addChartFacetID");function jo(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[W.SchemaTag.isViewNode]=!0,i[W.SchemaTag.annotationPath]=t.annotationPath,Ul(t,i,n),i}o(jo,"createDefaultSection");function M0(e,t,n,i=W.FioriElementsVersion.v2,r=!1){var l,f;let a=oi(W.UIVOCABULARY,t),s=[];if(e){let p=a&&((f=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:f.Facets);return p&&(s=p.reduce(function(d,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return d;let v=F0(m,e,t,n,i,!0);return v&&d.push(v),d},s)),s}}o(M0,"getObjectPageFacetSection");var ls=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(f){let p=a&&a===f?r:f.replace(/\?\?/g,"/");if(!(!s[p]&&(a===f&&(p=a),!s[p]))){if(Object.keys(s[p]).length===0||i&&i[i.length-1]===p&&n){Array.isArray(s)?s.splice(Number(p),1):delete s[p],l.pop(),ls(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),Zb=o(e=>e===W.SchemaType.FreestylePage?W.PageTypeV2.CustomPage:e===W.SchemaType.FPMCustomPage?W.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Dt=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case W.SchemaType.Application:{i.filename="App",i.path=`./${W.DirName.Schemas}/${i.filename}`;break}case W.SchemaType.ListReport:case W.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:Zb(e),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}case W.PageTypeV4.FPMCustomPage:case W.SchemaType.FPMCustomPage:{i.filename=n?`${W.SchemaType.FPMCustomPage}_${n}`:Zb(W.SchemaType.FPMCustomPage),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}default:{i.filename=Zb(e),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function Sm(e,t,n,i){if(e===W.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o(Sm,"generatePageId");function cE(e,t,n){let i=t==null?void 0:t.properties,r=t==null?void 0:t.required;if(!i&&(t!=null&&t.$ref)){let s=t==null?void 0:t.$ref,l=e.definitions[s.split(U)[1]];typeof l=="object"&&(i=l.properties,r=l.required)}if(!i||Object.keys(i).length===0)return[];let a=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(f=>l[f]!==void 0)&&a.push(s)}return a}o(cE,"findMatchingKeysByAdditionalProperties");function JK(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split(U)[1],s=t.definitions[a];if(typeof s=="object"&&typeof n=="object"){let l=s.controlProperty;if(l)r.includes(n[l])&&i.push(a);else if(typeof s.additionalProperties=="object"){let f=Object.keys(s.properties||{}),p=cE(t,s.additionalProperties,n);(f.some(d=>d in n)||p.length||Object.keys(n).length===0&&f.length)&&i.push(a)}}}o(JK,"fillArrayFromAnyOfReference");function ZK(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(U)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{JK(r,n,t,i)}),i.length===0))return;return i}o(ZK,"fillArrayFromPropertyDefinition");function eX(e){return e.replace(W.UIVOCABULARYDOT,"")}o(eX,"extractUIAnnotationType");function tX(e,t,n,i,r,a,s,l){var p,d,m,v,E;let f={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(f.targetDefinition=t.definitions[b],((p=f==null?void 0:f.targetDefinition)==null?void 0:p.dataType)!==eX(Tt.UIAnnotationTypes.DataFieldForActionGroup)&&((d=f==null?void 0:f.targetDefinition)!=null&&d.$ref)||((m=f==null?void 0:f.targetDefinition)==null?void 0:m.type)==="array")return f=Uo(t,n,i,f.targetDefinition,r,a,s),f;e.length>1&&e.forEach(j=>{j!==""&&(f.targetDefinition.properties={...f.targetDefinition.properties,...t.definitions[j].properties})}),f.title=(v=f==null?void 0:f.targetDefinition)!=null&&v.title?f.targetDefinition.title:n;let I=b==null?void 0:b.split("<")[0],N=i||{};f.configObject=a.createInstance(s,I,N,(E=f==null?void 0:f.targetDefinition)==null?void 0:E.controlProperty)}else f.targetDefinition=l,f.title=f.targetDefinition.title?f.targetDefinition.title:r,f.configObject=i;return f}o(tX,"determineNextDefinitionFromDefinitionArray");function Uo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Uo(e,t,n,i.items,r,a,s),l;let f=ZK(i,n,e);if(f)return l=tX(f,e,t,n,r,a,s,i),l}o(Uo,"getNextTargetDefinition");var lE=o((e,t,n)=>{let i=e.slice();return t.forEach((r,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[a]=(0,L0.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function Am(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(Am,"convertEnumToCSV");function Yi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Yi,"convertActionKeyToStableId");function zt(e){return e==null?void 0:e.split(U)[1]}o(zt,"getDefinitionKey");function Pm(e){return`#/definitions/${e}`}o(Pm,"getDefinitionsRef");function xm(e){return e instanceof Error?e.message:String(e)}o(xm,"getErrorMessage");function Ec(e,t){return e==null?void 0:e.includes(t)}o(Ec,"isFeatureSupported");function $o(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o($o,"updatePropertyIndices");function Cm(e,t){let n=e;for(let i of t)if(i!==void 0)if(typeof n=="object"&&i in n)n=n[i];else return;return n}o(Cm,"getJSONPropertyByPath");function k0(e){return e=e.replace(W.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(k0,"removeNamespaces");function $l(e){return e=e.replace(W.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o($l,"replaceNamespaces");function Ea(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith(U))return t.substring(U.length)}o(Ea,"getRefType");function ym(e){if(e===W.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return W.PageTypeV4.FPMCustomPage;if(e!=null&&e.startsWith(`${W.v4.FE_NAMESPACE_V4}.`)){let t=e.split("."),n=t[t.length-1];if(n in W.PageTypeV4)return W.PageTypeV4[n]}}o(ym,"convertTemplateNameToPageTypeV4");function Im(e,t){if(e===t)return!0;let n=ym(e);return n?n===ym(t):!1}o(Im,"compareTemplateNames");var No=require("@sap-ux/vocabularies-types/vocabularies/UI"),ae=Z(re());var zi=Z(re());var Jt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Om=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),zn=o((e,t)=>{let n,i=zi.FACETTITLEPREFIX;return t!==void 0&&t.includes(i)?n=t.split(i)[1]:n=e.replace(new RegExp("/@","g"),"::").replace(/@com.sap/g,"com.sap"),n},"convertSectionId");function nX(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o(nX,"escapeId");var j0=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(j0||{}),U0=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(U0||{});function iX(e,t,n){let i;return e=e.map(function(r){if(r===zi.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===zi.PropertyName.sections)return i=t[a+1],t[a+1]=zn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(iX,"mapBreadcrumbs");var fE=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=iX(t,s,r)),s[0]===zi.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,zi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,zi.VOCWITHSLASH):t[0]===zi.PropertyName.table&&(a=t[0]);let f=s[s.length-1].replace(/::com.sap.vocabularies/g,zi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,zi.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,d=f.indexOf(":::");return f.startsWith("DataField")&&d>-1?(f=f.replace("/",":2f"),p=`${e}template:::TableColumn:::${f.substring(0,d)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${f.substring(d+3)}`):(f=f.replace("/","_"),p=`${e}${t.join("::")}-${f}`),nX(p)},"buildColumnControlId"),Ji=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function rX(e){let t=zi.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(rX,"determinePattern");var uE=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split(U)[1]]:a,f=a.description?a.description:l.description,p=rX(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(d=>{s.enum.indexOf(d)===-1&&s.enum.push(d)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},f&&(r[n].description=f,delete a.description)},"addPatternForBindingChangeOfEnum"),Jn=o((e,t,n)=>{uE(e,t,n)},"addPatternForBindingChangeOfEnumLR"),mt=o((e,t,n)=>{let i=Object.values(j0);uE(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ai=o((e,t,n)=>{let i=Object.values(U0);uE(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function Sc(){}o(Sc,"doNotDelete");var Ete=Z(B0());var pE=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(pE,e),"syncRule");function Mn(e,t){let n;return e&&(n=Reflect.getMetadata(pE,e,t)),n}o(Mn,"getReflectMetadata");function H0(e){let t;return e&&(t=Reflect.getMetadata(pE,e)),t}o(H0,"getReflectTypeMetadata");var Zi=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),G0=Symbol("childId"),kt=o(e=>Reflect.metadata(G0,e),"childId"),Rm=o((e,t)=>Reflect.getMetadata(G0,e,t),"getChildId"),Lm=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),oX=Symbol("descriptionSrcURL"),xe=o(e=>Reflect.metadata(oX,e),"descriptionSrcURL");var aX=Symbol("validityMetadataKey"),x=o(e=>Reflect.metadata(aX,e),"validity");function Bl(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(Bl,"getTextForDeprecated");var J0=Z(Y0()),Z0=Z(re());var e_=J0.default.change,z0={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function t_(e,t){let n="";try{for(let i in z0)e[i]===void 0&&(e[i]=z0[i]);n=e_.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(t_,"createChangeString");function vr(e){try{return e_.parse(e)}catch{return!1}}o(vr,"parseChangeString");function n_(e,t,n,i,r){let a=n.layer?n.layer===Z0.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:a};return e[i]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,i):e[i].toString().startsWith("{")?(s.content.newBinding=e[i],s.type="propertyBindingChange"):s.content.newValue=e[i]:s.content.newValue=null,s}o(n_,"fillFlexChangeContent");function Nm(e,t){return t_(e,t)}o(Nm,"exportToFlexChange");var Ac=Z(re());function Hl(e,t,n,i,r,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let f=l(t,r,n,a);f!==void 0&&(i[n]=f)}else t[s]!==void 0&&(i[n]=t[s])}o(Hl,"importProperty");function Fm(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(oe(i,{severity:Ac.LogSeverity.Warning,message:Bl(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(Fm,"checkDeprecatedProperties");function dE(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(U)[1]];return dE(n,t)}else return e.title?e.title.startsWith(Ac.FACETTITLEPREFIX)?e.title.split(Ac.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(dE,"getSectionTitle");function Dm(e){let t=e.split(`${Ac.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(Dm,"getTargetFromCustomColumnRef");function Br(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(Br,"removeEmptyStructure");var _t=require("@sap-ux/vocabularies-types/vocabularies/UI");var Ho=require("@sap-ux/vocabularies-types/vocabularies/UI");var Aa=require("@sap-ux/vocabularies-types/vocabularies/UI");var i_=Z(re()),te=Z(re()),r_=require("path");function Ot(e,t,n,i,r,a,s){if(!n)return;let l={},f=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let d in n.properties){let m=Mn(e,d);if(m!=null&&m.manifest){let v=m.manifest.path([i],t,p,...r);l=ko(t,v,a,p,!0),l&&Object.keys(l).length>0&&(Hl(m,l,d,e,a,r),Fm(f,l,v,s))}}}o(Ot,"importSettingsOfObject");var yE="DataFieldForActionGroup";function dX(){return([e,t],[n,i])=>t[te.SchemaTag.propertyIndex]-i[te.SchemaTag.propertyIndex]}o(dX,"sortByPropertyIndex");function Vu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(dX())}o(Vu,"sortPropertiesRecords");function gX(e){let t;return typeof e=="object"?"header"in e?t=e.header:"text"in e?t=e.text:"title"in e?t=e.title:"label"in e&&(t=e.label):typeof e=="string"&&(t=e),t}o(gX,"getExtensionText");function gE(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||te.v4.Placement.After)===te.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(gE,"addExtensionToSortedArray");function mX(e,t,n,i,r){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var f,p,d;return((f=l.position)==null?void 0:f.placement)==="Before"&&((p=l.position)==null?void 0:p.anchor)===((d=n.position)==null?void 0:d.anchor)})===-1&&(i.splice(i.length,0,[t,r]),delete e[t])}o(mX,"addRemainingTargetByBefore");function o_(e,t,n,i){let r=t.includes(te.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=gX(e);return{$ref:`${U}${r}`,description:a,keys:[{name:te.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(o_,"getExtensionDetails");function mE(e,t,n,i,r=!1){var l,f;let a=Object.entries(e).length;for(let p of Object.keys(e)){let d=e[p],m=o_(d,t,p);if((l=d.position)!=null&&l.anchor&&((f=d.position)!=null&&f.placement)){let v=n.findIndex(E=>E[0]===d.position.anchor);v>-1?(gE(d,n,v,p,m),delete e[p]):p===d.position.anchor||Object.keys(e).indexOf(d.position.anchor)===-1?(oe(i,{severity:Fi.LogSeverity.Error,message:Q.t("INVALIDANCHOR",{id:p,anchor:d.position.anchor}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&mX(e,p,d,n,m)}else r&&(gE(d,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?mE(e,t,n,i):s>0&&mE(e,t,n,i,!0)}o(mE,"adjustCustomExtReferringToCustomExt");function hX(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||te.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===te.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(hX,"getExtensionAnchor");function yX(e,t){var i;let n=[];for(let r in e){let a=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===a);a&&!s&&n.push(r)}return n}o(yX,"getLocalExtensionsToSkip");function TX(e,t,n){var l,f;let i=((l=e.position)==null?void 0:l.placement)||te.v4.Placement.After;if((f=e.position)==null?void 0:f.anchor)return n.length;let a=o((p,d)=>{for(let m of n){let v=t[m[0]];if(d(v))break;p++}return p},"findNextIndex"),s=0;return i===te.v4.Placement.Before?s=a(0,p=>!p):s=a(-1,p=>{var d,m;return!!(p&&((d=p==null?void 0:p.position)!=null&&d.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==te.v4.Placement.Before))}),s>-1?s:0}o(TX,"getExtensionIndexByMergedApproach");function vX(e,t,n,i,r=!1){return r?TX(e,t,n):n.findIndex(a=>a[0]===i)}o(vX,"getExtensionIndex");function bX(e,t,n,i,r){oe(e,{severity:Fi.LogSeverity.Error,message:Q.t("INVALIDEXTENSION",{id:t}),location:{path:te.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(bX,"handleInvalidExtension");function Sa(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},f=yX(l,s);if(!l)return[];for(let p of Object.keys(l)){let d=l[p];if(f!=null&&f.includes(p))continue;let m=o_(d,n,p,te.ActionType.Custom);if(typeof d!="object"){bX(r,p,t,m,l);continue}if(!(i in d)){delete l[p];continue}let v=hX(d,s);if(v){let E=vX(d,e,t,v,a);E>-1&&(gE(d,t,E,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&mE(l,n,t,r),t}o(Sa,"addExtensionToArray");function TE(e,t){let n=[];for(let i of Object.keys(e.properties))i.indexOf("::")>-1&&n.push(i.substring(i.indexOf("::")+2));t.properties.properties.items.enum=n}o(TE,"addEnumForProperties");function EX(e,t,n,i=te.DefinitionName.CustomColumn){if(i===te.DefinitionName.CustomColumn||i.indexOf(te.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];TE(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[te.SchemaTag.propertyIndex]=r}}o(EX,"addColumnPropertyIndexAndEnum");function Pc(e,t,n,i=te.DefinitionName.CustomColumn,r,a){var v,E,b,I;let s=r||te.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let f=Vu(l),p=a?a.replace(/::/g,"/"):`@${Aa.UIAnnotationTerms.LineItem}`,d=(I=(b=(E=(v=t.options)==null?void 0:v.settings)==null?void 0:E.controlConfiguration)==null?void 0:b[p])==null?void 0:I.columns;d&&(f=Sa(d,f,i,void 0,n)),EX(f,e,l,i);let m={};f.forEach(([N,j])=>m[N]=j),e.definitions[s].properties=m}o(Pc,"addCustomColumnDefinition");function a_(e,t){let n=t.$Type===Aa.UIAnnotationTypes.DataFieldForActionGroup,i;return e.lineItemId.startsWith(te.DefinitionName.LineItemsOfView)?i=n?te.DefinitionName.ViewToolBarActionGroup:te.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(te.DefinitionName.LineItems)?i=n?te.DefinitionName.ToolBarActionGroup:te.DefinitionName.ToolBarAction:i=n?te.DefinitionName.ObjectPageToolBarActionGroup:te.DefinitionName.ObjectPageToolBarAction,i}o(a_,"determineActionDefinitionName");function SX(e,t,n){e[te.SchemaTag.keys]=[],t[te.SchemaKeyName.semanticObject]&&e[te.SchemaTag.keys].push({name:te.SchemaKeyName.semanticObject,value:t[te.SchemaKeyName.semanticObject]});let{key:i,ns:r}=Rc(n,!0);e[te.SchemaTag.keys].push({name:te.SchemaKeyName.action,value:i}),r&&(e[te.SchemaTag.target]=r)}o(SX,"addTargetAndKeysOfAction");function s_(e,t=!0){let{lineItemData:n,actions:i,lineItemPath:r,lineItemRecord:a,index:s}=e;if(a.Determining===!0)return;let l=a_(n,a),f=ci(a,n.entityType),p=a.$Type.split(`${te.UIVOCABULARY}.`)[1],d=typeof a.Action=="string"?a.Action:a.Action.path,m=wm(d),v=i.properties[`${p}::${m}`]={description:f};if(t?v.$ref=p_(l,at(m),n.appSchema,r):(v.properties={},v.type="object",v.isViewNode=!0),v[te.SchemaTag.propertyIndex]=s,v[te.SchemaTag.dataType]=er(a),SX(v,a,d),v[te.SchemaTag.annotationType]=a.$Type,t){let E=v.$ref.replace(U,""),b=vt(l,E,n.appSchema,!1);b[te.SchemaTag.annotationPath]=`${r}/${s}`}else v[te.SchemaTag.annotationPath]=`${r}/${s}`}o(s_,"addActionRecordToSchema");function c_(e,t=!0){let{lineItemData:n,lineItemRecord:i,lineItemPath:r,index:a,actions:s}=e,l=a_(n,i),f=Hr(i),p={};t?(s.properties[`${f}`]={$ref:si(l,at(f))},p=vt(l,at(f),n.appSchema)):s.properties[`${f}`]=p,Ca(p,Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),p.properties={},p.description=ci(i,n.entityType),p.type="object",p.isViewNode=!0,p[te.SchemaTag.propertyIndex]=a,p[te.SchemaTag.dataType]=er(i),p[te.SchemaTag.annotationPath]=`${r}/${a}`,(i.Actions??[]).forEach((d,m)=>{let v={...e,lineItemRecord:d,lineItemPath:`${p[te.SchemaTag.annotationPath]}/Actions`,actions:p,index:m};s_(v,t)})}o(c_,"addGroupActionRecordToSchema");function vE(e){let{lineItemRecord:t,lineItemDefinition:n}=e;t.Inline!==!0||t.Determining===!0?s_(e,!n):bE(e)}o(vE,"addLineItemActionDefinition");function bE(e){var d;let{lineItemData:t,lineItemRecord:n,lineItemDefinition:i,lineItemPath:r,index:a,columnDefinitionName:s}=e,l=n.$Type===Aa.UIAnnotationTypes.DataFieldForAction?`${s}Action`:s,f=t.lineItemId;if((d=n.Target)!=null&&d.value){let m=`@${oi(te.UIVOCABULARY,t.oDataServiceAVT)}.`;n.Target.value=n.Target.value.replace(m,"@")}let p=Hr(n).replace(/\//g,"::");if(p){let m=i;m||(m=t.appSchema.definitions[f]);let v=m.properties,E={description:ci(n,t.entityType)};i?(E.properties={},E.type="object",E.isViewNode=!0):E.$ref=U+l,E[te.SchemaTag.annotationType]=n==null?void 0:n.$Type,E[te.SchemaTag.annotationPath]=`${r}/${a}`,E[te.SchemaTag.propertyIndex]=a,E[te.SchemaTag.dataType]=er(n),v[p]=E,jm(n,v,p)}}o(bE,"addLineItemRecordToSchema");function EE(e,t,n,i,r=te.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{let l={lineItemData:e,actions:t,lineItemPath:n,lineItemRecord:s,index:a,lineItemDefinition:i,columnDefinitionName:r};fs.getStrategy(s.$Type).addLineItemDefinition(l),a++})}o(EE,"appendLineItemsToSchema");function xc(e,t=te.DefinitionName.TableColumn,n=te.DefinitionName.CustomColumn,i=te.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=Mm(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);EE(e,r,a,void 0,t)}o(xc,"addLineItemsTypeToSchema");function Cc(e,t,n,i=te.DefinitionName.Position,r){var p,d,m,v,E;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let b in a)b!=="custom"&&s.push(b);let l=t!==te.DefinitionName.LineItems?r:`@${Aa.UIAnnotationTerms.LineItem}`,f=(E=(v=(m=(d=n.options)==null?void 0:d.settings)==null?void 0:m.controlConfiguration)==null?void 0:v[l])==null?void 0:E.columns;if(f)for(let b in f)s.indexOf(b)===-1&&s.push(b);if(s.length>0){let b=e.definitions[i].properties.anchor;xa(s,b)}}o(Cc,"addFragmentEnumForAnchor");function go(e,t,n=te.DefinitionName.CustomActionPosition){us(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(go,"addEnumForActionAnchor");function _m(e,t,n,i){var a;let r;for(let s in e){let l=((a=e[s].options)==null?void 0:a.settings)||{};if((i&&l.contextPath===i||(n==null?void 0:n.name)&&l.entitySet===n.name)&&(Im(t,e[s].name)||t===te.v4.FE_TEMPLATE_V4_ALP&&e[s].name===te.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[s];break}}return r}o(_m,"findPageV4");function l_(e,t){let n,i=e.properties[te.PropertyName.table];return t.templateType===te.TemplateType.AnalyticalListPageV4?(n=te.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${U}${te.DefinitionName.ALPTableView}`,delete e.definitions[te.DefinitionName.Table],delete e.definitions[te.DefinitionName.LRChartView],delete e.definitions[te.DefinitionName.LRTableView],delete e.definitions[te.DefinitionName.MultiTableModeV4]):t.templateType===te.TemplateType.ListReportObjectPageV4&&(n=te.DefinitionName.Table,delete i.anyOf,i.$ref=`${U}${te.DefinitionName.Table}`,e.definitions[n].properties[te.PropertyName.annotationPath][te.SchemaTag.hidden]=!0,delete e.definitions[te.DefinitionName.ALPTableView],e.properties[te.PropertyName.defaultPath][te.SchemaTag.hidden]=!0),n}o(l_,"alignSchemaWithTemplateType");function Pa(e,t,n,i=te.DefinitionName.CustomTableAction,r="",a=""){var d,m,v,E,b,I,N,j,G,$;let s=e.definitions[r];if(!s)return;let l=Vu(s),f;a?i.indexOf(te.DefinitionName.CustomFormActionOP)!==-1?f=a.replace(/::/g,"#"):f=a.replace(/::/g,"/"):i===te.DefinitionName.CustomFormActionOP?f=`@${Aa.UIAnnotationTerms.FieldGroup}`:f=`@${Aa.UIAnnotationTerms.LineItem}`;let p;if(r.includes(te.DefinitionName.ObjectPageCustomSectionActions)?p=(I=(b=(E=(v=(m=(d=t.options)==null?void 0:d.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:E.sections)==null?void 0:b[f])==null?void 0:I.actions:p=($=(G=(j=(N=t.options)==null?void 0:N.settings)==null?void 0:j.controlConfiguration)==null?void 0:G[f])==null?void 0:$.actions,p&&(l=Sa(p,l,i,"press",n)),l){for(let ee=0;ee<l.length;ee++)l[ee][1][te.SchemaTag.propertyIndex]=ee;let se={};l.forEach(([ee,le])=>se[ee]=le),e.definitions[r].properties=se}}o(Pa,"addCustomActionDefinition");function Vm(e,t,n,i=te.DefinitionName.CustomHeaderActionOP,r=""){var p,d,m,v,E,b,I,N;let a=e.definitions[r];if(!a)return;let s=Vu(a),l;[te.DefinitionName.CustomHeaderAction,te.DefinitionName.CustomHeaderActionOP].includes(i)?l=(v=(m=(d=(p=t.options)==null?void 0:p.settings)==null?void 0:d.content)==null?void 0:m.header)==null?void 0:v.actions:l=(N=(I=(b=(E=t.options)==null?void 0:E.settings)==null?void 0:b.content)==null?void 0:I.footer)==null?void 0:N.actions,l&&(s=Sa(l,s,i,"press",n));let f={};if(s){for(let j=0;j<s.length;j++)s[j][1][te.SchemaTag.propertyIndex]=j;s.forEach(([j,G])=>f[j]=G)}e.definitions[r].properties=f}o(Vm,"addHeaderFooterCustomActionDefinition");function Ic(e,t,n){let i=Cm(e,[te.ManifestSection.ui5,"routing","targets"]);if(!i){oe(n,{severity:Fi.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}let r=Cm(i,[t]);if(!r){oe(n,{severity:Fi.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:t}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}return r}o(Ic,"getManifestPage");function Oc(e,t,n,i,r){var a,s;if(r){let l=((a=n["sap.app"])==null?void 0:a.id)||"",f="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),d=p.pop();d=`${d}.${i}.${f}`;let m=(0,r_.join)(...p,d),v=e.find(E=>E.dataSourceUri.endsWith(m));if(v){let E=(s=t.options)==null?void 0:s.settings;return{file:v,relativeFilePath:m,connection:{contextPath:E==null?void 0:E.contextPath,entitySet:E==null?void 0:E.entitySet}}}}}o(Oc,"getPageCustomExtensionFile");function Bo(e,t,n,i){let r=Ic(n,t,i),a=Cm(r,["options","settings","viewName"]);return r&&typeof a=="string"?Oc(e,r,n,"view",a):void 0}o(Bo,"getPageCustomViewFile");function f_(e,t,n,i,r,a,s){var d,m,v,E,b,I,N,j,G,$,se,ee;let l=Vu(t),f=new Map;if(l=l.map(le=>{let Le=km(e,le[1],le[0],{keyProperties:[te.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return f.set(Le.const,le[0]),[Le.const,le[1]]}),a){let le=(b=(E=(v=(m=(d=n.options)==null?void 0:d.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:E.sections)==null?void 0:b[a];le&&"subSections"in le&&(l=Sa(le.subSections,l,i,"template",s,r))}else if(i.includes(te.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let le=(j=(N=(I=n.options)==null?void 0:I.settings)==null?void 0:N.content)==null?void 0:j.header;le&&"facets"in le&&(l=Sa(le.facets,l,i,"template",s,r))}else{let le=(ee=(se=($=(G=n.options)==null?void 0:G.settings)==null?void 0:$.content)==null?void 0:se.body)==null?void 0:ee.sections;le&&(l=Sa(le,l,i,"template",s,r))}for(let le=0;le<l.length;le++)l[le][1][te.SchemaTag.propertyIndex]=le;let p={};l.forEach(([le,Le])=>{le=f.get(le)||le,p[le]=Le}),t.properties=p}o(f_,"addCustomSectionDefinition");function u_(e,t,n){var l,f,p;let i=Vu(t),r=new Map;i=i.map(d=>{let m=km(e,d[1],d[0],{keyProperties:[te.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,d[0]),[m.const,d[1]]});let a=(p=(f=(l=n.options)==null?void 0:l.settings)==null?void 0:f.controlConfiguration)==null?void 0:p[`@${Aa.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=Sa(a.filterFields,i,te.DefinitionName.CustomFilterField,"template"));for(let d=0;d<i.length;d++)i[d][1][te.SchemaTag.propertyIndex]=d;let s={};i.forEach(([d,m])=>{d=r.get(d)||d,s[d]=m}),t.properties=s}o(u_,"addCustomFilterFieldDefinition");function hE(e,t,n=!1){let{appSchema:i,factory:r,actionsInConfig:a,actionKey:s,manifest:l,routingId:f,manifestSectionId:p,targetAnnotation:d}=e,m=(t??"").split("<")[0],v=r.createInstance(i_.PageTypeV4.ObjectPage,m),E=[s.replace("/","??")];if(d&&E.push(d),v){let b=a[s]=v;Ot(b,l,i.definitions[t],f,E,p),n||Br(a,s)}}o(hE,"importActionToConfigurationObject");function AX(e,t){let{actionPropertyDefinition:n}=e,i=zt(t.$ref||n.$ref);hE(e,i)}o(AX,"importSingleActionSettingsOfReference");function PX(e,t){let{actionPropertyDefinition:n,appSchema:i,actionsInConfig:r,actionKey:a}=e,s=zt(t.$ref??n.$ref);hE(e,s,!0);let l=r[a];Ca(l,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let{properties:f}=t;for(let p in f){let d=f[p],m=zt(d.$ref),v=i.definitions[m],E=zt(v.$ref??d.$ref),b={...e,actionsInConfig:l,actionKey:p};hE(b,E)}Br(r,a)}o(PX,"importGroupActionSettingsOfReference");function Gl(e){let{actionPropertyDefinition:t,appSchema:n}=e,i=zt(t.$ref),r=n.definitions[i];r.dataType===yE?PX(e,r):AX(e,r)}o(Gl,"importActionSettingsOfReference");var FE=class FE{addDefinition(t){d_(t)}addLineItemDefinition(t){bE(t)}};o(FE,"DataFieldStrategy");var mo=FE,DE=class DE extends mo{generateStableId(t){return Ia("DataFieldForAction::"+t.Action)}generateDescription(t,n){let i=va(t.Label,n);return vm(t,i)}addDefinition(t){wu(t)}addLineItemDefinition(t){vE(t)}};o(DE,"DataFieldForActionStrategy");var SE=DE,_E=class _E extends mo{generateStableId(t){return Ia("DataFieldForActionGroup::"+t.ID)}generateDescription(t,n){let i=va(t.Label,n);return t.Label??t.ID??i}addDefinition(t){wu(t)}addLineItemDefinition(t){var n;c_(t,!((n=t.lineItemData)!=null&&n.isMacro))}};o(_E,"DataFieldForActionGroupStrategy");var AE=_E,VE=class VE extends mo{generateStableId(t){return"DataFieldForIntentBasedNavigation::"+HE(t)}generateDescription(t,n){let i=va(t.Label,n);return vm(t,i)}addDefinition(t){wu(t)}addLineItemDefinition(t){vE(t)}};o(VE,"DataFieldForIntentBasedNavigationStrategy");var PE=VE,wE=class wE extends mo{generateStableId(t){var i,r;let n=((i=t.Target)==null?void 0:i.$AnnotationPath)??((r=t.Target)==null?void 0:r.value)??"";return"DataFieldForAnnotation::"+Ia(n)}generateDescription(t,n){var a,s,l,f;let i=Du(t,n);return va(t.Label,n)||i||((s=(a=t==null?void 0:t.Target)==null?void 0:a.$target)==null?void 0:s.Title)||((f=(l=t==null?void 0:t.Target)==null?void 0:l.value)==null?void 0:f.split("UI.v1.")[1])}};o(wE,"DataFieldForAnnotationStrategy");var xE=wE,ME=class ME extends mo{generateStableId(t){let n="DataFieldWithAction::";return"Value"in t&&t.Value&&(n+=ps(t.Value)+"::"),n+=t.Action,Ia(n)}generateDescription(t,n){let i=va(t.Label,n);return vm(t,i)}};o(ME,"DataFieldWithActionStrategy");var CE=ME,kE=class kE extends mo{generateStableId(t){return Ia("DataField::"+ps(t.Value))}generateDescription(t,n){let i=va(t.Label,n);return tE(t,n,i)}};o(kE,"DataFieldStrategyDefault");var IE=kE,jE=class jE extends mo{generateStableId(t){let n="DataFieldWithIntentBasedNavigation::";return n+=ps(t.Value)+"::",n+=HE(t),Ia(n)}generateDescription(t,n){return Du(t,n)||t.Value.path}};o(jE,"DataFieldWithIntentBasedNavigationStrategy");var OE=jE,UE=class UE extends mo{generateStableId(t){let n="DataFieldWithNavigationPath::"+ps(t.Value);return t.Target&&t.Target.$NavigationPropertyPath&&(n+="::"+t.Target.$NavigationPropertyPath),Ia(n)}generateDescription(t,n){let i=va(t.Label,n);return tE(t,n,i)}};o(UE,"DataFieldWithNavigationPathStrategy");var RE=UE,$E=class $E extends mo{generateStableId(t){return Ia("DataFieldWithUrl::"+ps(t.Value))}generateDescription(t,n){let i=Du(t,n);return va(t.Label,n)||i||(typeof t.Value=="string"?t.Value:t.Value.path)}};o($E,"DataFieldWithUrlStrategy");var LE=$E,BE=class BE{constructor(){this.strategies=new Map,this.registerStrategy(Ho.UIAnnotationTypes.DataFieldForAction,new SE),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldForActionGroup,new AE),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldForIntentBasedNavigation,new PE),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldForAnnotation,new xE),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldWithAction,new CE),this.registerStrategy(Ho.UIAnnotationTypes.DataField,new IE),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldWithIntentBasedNavigation,new OE),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldWithNavigationPath,new RE),this.registerStrategy(Ho.UIAnnotationTypes.DataFieldWithUrl,new LE)}registerStrategy(t,n){this.strategies.set(t,n)}getStrategy(t){return this.strategies.get(t)}};o(BE,"DataFieldStrategyContext");var NE=BE,fs=new NE;function wm(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/[/@()#*]/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(wm,"replaceSpecialChars");var Ia=o(function(e){return wm(k0(e))},"prepareId");function xX(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(xX,"evaluateConcat");function ps(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 xX(e);if(e&&typeof e=="string")return wm(e.replace(/ /g,"_"))}o(ps,"getStableIdPartFromValue");var HE=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),Hr=o(function(e){let t=fs.getStrategy(e.$Type);return t==null?void 0:t.generateStableId(e)},"getStableIdPartFromDataField");var fe=Z(re());var De=Z(re());var tr=require("@sap-ux/vocabularies-types/vocabularies/UI"),y_=require("path"),T_=Z(vc());var Um="ResponsiveTableWithMultiSelect<LineItems>",$m="ResponsiveTableWithInlineDelete<LineItems>",CX="TreeTable<LineItems>",IX="AnalyticalTable<LineItems>",OX="GridTable<LineItems>",GE=[Um,$m,CX,IX,OX],g_=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],m_="template::",Bm="template:::ObjectPageAction:::";function RX(e,t,n){e.definitions[De.DefinitionName.LineItems]&&(e.definitions[De.DefinitionName.LineItems].properties.custom={$ref:`${U}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${U}${n}`},description:"Custom Columns"},e.definitions[t][De.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[De.SchemaTag.artifactType]=De.ArtifactType.Manifest)}o(RX,"addCustomColumnDefinition");function LX(e,t){let n;return e==="TableColumnActionIntentBased"?n=rE(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=at(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===tr.UIAnnotationTypes.DataFieldForAction?n=at(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=at(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(LX,"getActionId");function WE(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=LX(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let f=`${s}${i}<${l}>`,p=ci(n.lineItemRecord,n.entityType);t.properties[l]={$ref:U+f},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:d,ns:m}=Rc(n.lineItemRecord.Action,!0);e.definitions[a]?(e.definitions[f]={...JSON.parse(JSON.stringify(e.definitions[a])),description:p,keys:[{name:"Action",value:d}],annotationPath:`${n.lineItemPath}/${r}`},m&&(e.definitions[f][De.SchemaTag.target]=m)):(e.definitions[f]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[f][De.SchemaTag.isViewNode]=!0,e.definitions[f][De.SchemaTag.keys]=[{name:De.SchemaKeyName.action,value:d}],m&&(e.definitions[f][De.SchemaTag.target]=m),e.definitions[f][De.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}o(WE,"handleActionRecord");function NX(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===tr.UIAnnotationTypes.DataFieldForAction||t.$Type===tr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===tr.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===tr.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(NX,"getColumnActionType");function FX(e,t){let n=[];if(!(e.$Type!==tr.UIAnnotationTypes.DataFieldForAction&&e.$Type!==tr.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===tr.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===tr.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===tr.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===tr.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),NX(t,e,n),n}o(FX,"getActionType");function v_(e,t,n){let i=rE(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:U+De.DefinitionName.TableColumn,description:ci(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Km(r.properties[i],e.lineItemRecord),jm(e.lineItemRecord,r.properties,i)}}o(v_,"generateGenericColumn");function DX(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{WE(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&WE(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{WE(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":v_(i,t,r)}}o(DX,"handleAnyAction");function Mu(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(Mu,"retrieveNameWithoutVocabularyFromVisualization");function Wl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:f}=Mm(e,t,n,i,r);if(n){let p=0;n.forEach(d=>{let m={lineItemPath:f,lineItemRecord:d,lineItemId:r,entityType:i},v=FX(d,r);v?v.forEach(E=>{DX(E,t,s,m,p,l,r)}):v_(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${U}${a}`})}o(Wl,"addLineItemsType");function _X(e,t,n){var r,a;let i=(a=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:a.leadingProperty;if(i){let s=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=s==null?void 0:s.reduce((l,f)=>(l.includes(f.name)||l.push(f.name),l),[])}}o(_X,"addListReportLeadingProperties");function VX(e,t,n,i){var s,l,f,p,d,m;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let a=(d=(p=(f=n.component)==null?void 0:f.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:d.variants;if(a){let v=[];for(let E in a){let b=(m=a[E])==null?void 0:m.key;b!==void 0&&!v.includes(b)&&v.push(b)}xa(v,r)}}o(VX,"addTabkeyEnum");function Hm(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(f=>{let p=f.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let d=JSON.parse((0,T_.xml2json)(f.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!d||d.Column||d["table:Column"]||d["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!d||!d.Column&&!d["table:Column"]&&!d["table:AnalyticalColumn"]&&!d["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+y_.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),xa(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(Hm,"addFragmentEnum");function Kl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){RX(e,a,s),_X(e,t,s),VX(e,s,n,l);let f=i&&i["sap.app"]&&i["sap.app"].id;Hm(e,r,f,"fragmentName",s),Hm(e,r,f,"fragmentName",De.DefinitionName.CustomColumn),Hm(e,r,f,"cellsFragmentName",s),Hm(e,r,f,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(Kl,"addTableColumnExtensions");function b_(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(b_,"removeElementsFromEnum");function Gm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=Tr(n==null?void 0:n.fullyQualifiedName,tr.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,f=`SelectionField<${at(s.value)}>`,p=er(s);s.type==="PropertyPath"&&(l=jl(s,n)),i.properties[s.value]={$ref:U+f},i.properties[s.value][De.SchemaTag.propertyIndex]=a,e.definitions[f]={type:"object",description:l,additionalProperties:!1},e.definitions[f][De.SchemaTag.isViewNode]=!0,e.definitions[f][De.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[f][De.SchemaTag.dataType]=p,e.definitions[f][De.SchemaTag.keys]=[{name:De.SchemaKeyName.value,value:`${s.value}`}],e.definitions[f][De.SchemaTag.annotationPath]=`${i[De.SchemaTag.annotationPath]}/${a}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[f].$ref=`${U}SelectionFieldDateSettings`:e.definitions[f].properties={},a++})}o(Gm,"addSelectionFields");function E_(e,t){for(let n of t.entityProperties)e.push(n.name)}o(E_,"addEntityPropertiesToEnum");function Wm(e){var t,n,i,r;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((r=(i=e.annotations)==null?void 0:i.Common)!=null&&r.DraftNode)}o(Wm,"isDraftEnabled");function S_(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.DeleteRestrictions)==null?void 0:i.Deletable)!==!1}o(S_,"isEntityDeletable");function A_(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.UpdateRestrictions)==null?void 0:i.Updatable)!==!1}o(A_,"isEntityUpdatable");function Xl(e,t=!1,n){let i=De.DefinitionName.HeaderActionsStandard,r=De.DefinitionName.HeaderActionStandard;t&&(i=De.DefinitionName.ObjectPageHeaderActions,r=De.DefinitionName.ObjectPageHeaderActionStandard);let a=e.definitions[i];a[De.SchemaTag.isViewNode]=!0,a.description="Actions",Object.entries((n||a).properties).forEach(([l,f])=>{let p=f.$ref.split(U)[1],d=`${r}<${p}>`;a.properties[l]={$ref:`${U}${d}`},e.definitions[d]=e.definitions[p],e.definitions[p][De.SchemaTag.actionType]=De.ActionType.Standard})}o(Xl,"addStandardHeaderActions");function P_(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split(U)[1],a=`${De.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${U}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][De.SchemaTag.actionType]=De.ActionType.Standard}}o(P_,"addStandardFooterActionsOP");function Ql(e){var i,r,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?Q.t("NOUIANNOTATIONS",{entityType:t.name}):Q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});oe(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(Ql,"getUIAnnotationForEntitySet");function wX(e,t,n,i){if(e===fe.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case _t.UIAnnotationTypes.DataField:case _t.UIAnnotationTypes.DataFieldForAnnotation:case _t.UIAnnotationTypes.DataFieldWithNavigationPath:case _t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===fe.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case _t.UIAnnotationTypes.DataField:case _t.UIAnnotationTypes.DataFieldForAnnotation:case _t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(wX,"copyFieldProperties");function XE(e,t,n,i){let r=e===fe.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===fe.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(XE,"determineFieldDefinitionName");function MX(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][fe.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][fe.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][fe.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][fe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(MX,"addKeysTagForDataField");function kX(e,t,n){if(e.$Type===_t.UIAnnotationTypes.DataField||e.$Type===_t.UIAnnotationTypes.DataFieldWithUrl||e.$Type===_t.UIAnnotationTypes.DataFieldWithNavigationPath)MX(e,t,n);else if(e.$Type===_t.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][fe.SchemaTag.keys]=[{name:"Target",value:$l(e.Target.value)}],t.definitions[n][fe.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===_t.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][fe.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][fe.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][fe.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===_t.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][fe.SchemaTag.keys]=[{name:fe.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][fe.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][fe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(kX,"addKeysTagToField");function jX(e){var t,n;return e.$Type===_t.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===_t.UIAnnotationTypes.ConnectedFieldsType}o(jX,"isConnectedField");function UX(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===_t.UIAnnotationTypes.ConnectedFieldsType){let f=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,d=f.length;for(let m in p){let v=p[m];if(typeof v=="object"&&"$Type"in v){let E=f.findIndex(b=>b===m);E===-1&&(E=d,d++),KE(e,t,v,`ConnectedFields::${a.qualifier}`,E.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(UX,"addConnectedFields");function x_(e,t,n){if(n)return n;let i=at(t);return e.definitions[i].properties}o(x_,"getFieldsSchemaContainer");function QE(e,t){return e===fe.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::").splice(1).join("::"):t}o(QE,"getFieldReference");function KE(e,t,n,i,r,a,s,l=!0,f={},p=a.entityType.fullyQualifiedName){if(!n||!n.$Type)return;let d={appSchema:t,withActions:l,sectionType:e,field:n,targetID:i,containersSchema:f,key:r,version:s,section:a,entityTypeName:p};fs.getStrategy(n.$Type).addDefinition(d)}o(KE,"addField");function $X(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}o($X,"determineTargetIdOfForm");function BX(e,t,n,i,r,a){if(e.base===fe.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&KE(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];KE(t,n,l,i,s,e,r)}}o(BX,"addFieldsToFormDefinition");function HX(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][fe.SchemaTag.keys]=[{name:fe.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][fe.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][fe.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][fe.SchemaTag.annotationPath]=Tr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(HX,"addTagsToFormDefinition");function Xm(e,t,n,i,r,a){if(!t.target)return;let s=$X(t),l=at(`${e}${fe.DefinitionName.Form}<${s}>`),f=at(`${e}${fe.DefinitionName.Fields}<${s}>`),p=at(`${e}${fe.DefinitionName.Actions}<${s}>`),d=!(t.base===fe.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${U}${l}`},e===fe.SectionType.Section&&d?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${U}${p}`},fields:{$ref:`${U}${f}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][fe.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${U}${f}`}},description:"Form",additionalProperties:!1},HX(t,i,l),i.definitions[f]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[f][fe.SchemaTag.isViewNode]=!0,BX(t,e,i,s,r,d),s}o(Xm,"handleForm");function qE(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),a=t.references.find(s=>s.alias===r);a&&(i=e.replace(n,a.namespace))}return i}o(qE,"replaceAlias");function Qm(e,t){let n=qE(e.Action??"",t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(Qm,"getActionNameAndId");function C_(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===fe.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:C_(a.pages,t)}}o(C_,"isFirstObjectPage");function qm(e,t,n,i,r){var d,m;e.definitions[fe.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${fe.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${U}${fe.DefinitionName.ObjectPageFooter}`},e.definitions[fe.DefinitionName.ObjectPageFooter].properties[fe.PropertyName.actions]={$ref:`${U}${fe.DefinitionName.FooterActions}`};let a=e.definitions[fe.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[fe.SchemaTag.isViewNode]=!0;let s=oi(fe.UIVOCABULARY,t.serviceAVT),l=t.entitySet,f=t.entityType,p=s&&((m=(d=f==null?void 0:f.annotations)==null?void 0:d[s])==null?void 0:m.Identification);if(p){let v=p.fullyQualifiedName.replace(`@${_t.UIAnnotationTerms.Identification}`,`/@${_t.UIAnnotationTerms.Identification}`);a[fe.SchemaTag.annotationPath]=`/${v}`,i(f,e,a,p)}else f&&(a[fe.SchemaTag.annotationPath]=`/${f.fullyQualifiedName}/@${_t.UIAnnotationTerms.Identification}`);n===fe.FioriElementsVersion.v2&&C_(r,t)&&!Wm(l)&&P_(e,a),delete e.definitions[fe.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${fe.DefinitionName.ObjectPageFooter}<${fe.DefinitionName.ObjectPageFooterActions}>`]}o(qm,"addFooterActions");function Ym(e,t,n,i,r,a=!1){var m,v;let s=fe.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[fe.DefinitionName.ObjectPageHeader].properties[fe.PropertyName.actions]={$ref:`${U}${s}`};let f=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};f[fe.SchemaTag.isViewNode]=!0;let p=oi(fe.UIVOCABULARY,n.serviceAVT),d=p&&((v=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:v.Identification);d?f[fe.SchemaTag.annotationPath]="/"+d.fullyQualifiedName.replace(`@${_t.UIAnnotationTerms.Identification}`,`/@${_t.UIAnnotationTerms.Identification}`):t&&(f[fe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${_t.UIAnnotationTerms.Identification}`),i(t,e,d,f,n,r),a&&Xl(e,!0,l)}o(Ym,"addHeaderActions");function zm(e,t){e.properties.header={$ref:`${U}${fe.DefinitionName.ObjectPageHeader}`},e.definitions[fe.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${fe.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[fe.DefinitionName.ObjectPageHeader][fe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${_t.UIAnnotationTerms.HeaderInfo}`)}o(zm,"addCommonHeaderSchema");function I_(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(I_,"determineEntitySetOfEntityType");function d_(e){let{appSchema:t,section:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:f}=e,p=Hr(r),d=QE(f,p),m=XE(f,p,a,d),v=x_(t,`${i}${fe.DefinitionName.Fields}<${a}>`,s.fields),E={};v[d]={$ref:`${U}${m}`,propertyIndex:parseInt(l)},jX(r)&&(E=UX(i,t,r,n,f)),O_(e,m,E)}o(d_,"addDataFieldDefinition");function wu(e){let{appSchema:t,withActions:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:f}=e,p=Hr(r),d=QE(f,p),m=XE(f,p,a,d),v={};if(n&&i===fe.SectionType.Section){let E=x_(t,`${i}${fe.DefinitionName.Actions}<${a}>`,s.actions),b=E[d]={$ref:`${U}${m}`};b[fe.SchemaTag.propertyIndex]=parseInt(l)}GX(e,m,v),O_(e,m,v)}o(wu,"addDataFieldForActionAndActionGroupDefinition");function GX(e,t,n){let{appSchema:i,field:r,version:a}=e;r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&(r.Actions??[]).forEach(s=>{let l={...e,field:s,targetID:t,withActions:!1},f=Hr(s),p=QE(a,f),d=XE(a,f,t,p);wu(l),n[p]=i.definitions[d]})}o(GX,"addGroupedActionsToDefinition");function O_(e,t,n={}){var f,p;let{appSchema:i,field:r,version:a,section:s,entityTypeName:l}=e;i.definitions[t]={type:"object",properties:n,description:ci(r,s.entityType),additionalProperties:!1},r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&Ca(i.definitions[t],Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),kX(r,i,t),i.definitions[t][fe.SchemaTag.annotationPath]=`/${l}/${r.fullyQualifiedName.split(l)[1]}`,i.definitions[t][fe.SchemaTag.annotationType]=r.$Type,i.definitions[t][fe.SchemaTag.isViewNode]=!0,Km(i.definitions[t],r),wX(a,i,r,t),r.$Type===_t.UIAnnotationTypes.DataFieldForAction&&((f=i.definitions)!=null&&f[fe.DefinitionName.FormAction])&&(i.definitions[t].$ref=`${U}${fe.DefinitionName.FormAction}`,delete i.definitions[t].properties),r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&((p=i.definitions)!=null&&p[fe.DefinitionName.ObjectPageFormActionGroup])&&(i.definitions[t].$ref=`${U}${fe.DefinitionName.ObjectPageFormActionGroup}`)}o(O_,"writeDefinitionToSchema");var br=require("@sap-ux/vocabularies-types/vocabularies/UI");var Qe=Z(re());function xa(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(xa,"addEnumToSchema");function Lc(e,t,n){var a;let i=(a=e==null?void 0:e.annotations)==null?void 0:a.UI;if(!i)return;let r=[];for(let s in i){let l=i[s];if(t.indexOf(l.term)>-1){let f=l.qualifier?`${l.term}#${l.qualifier}`:`${l.term}`;r.indexOf(f)===-1&&r.push(f)}}xa(r,n)}o(Lc,"addEnumForValidAnnotations");function ds(e,t,n){let i=t.definitions[n].properties[Qe.SchemaTag.annotationPath],r=[br.UIAnnotationTerms.SelectionVariant,br.UIAnnotationTerms.SelectionPresentationVariant];Lc(e,r,i)}o(ds,"addEnumForSingleTabVariant");function R_(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[br.UIAnnotationTerms.SelectionVariant,br.UIAnnotationTerms.SelectionPresentationVariant];Lc(n.entityType,r,i)}o(R_,"addEnumForMultiTabVariant");function L_(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),xa(r,i)}o(L_,"addEnumForVariantEntitySet");function N_(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[br.UIAnnotationTerms.FieldGroup];Lc(e,r,i)}o(N_,"addEnumFieldGroupAnnotationPath");function F_(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],f=a.label||a.title;return{const:l,...f&&{description:f},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[Qe.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${U}${Qe.DefinitionName.RelatedFacetKeys}`},l]}}}}o(F_,"addDefinitionForRelatedFacetKeys");function Nc(e){return e.replace("#","::")}o(Nc,"getFacetKeyInSchema");function ku(e,t){return`${e}<${Nc(t)}>`}o(ku,"getFacetDefinitionKey");function vt(e,t,n,i=!0){let r=t;if(i&&(r=ku(e,t)),e&&e!==r)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[r]=a}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[r]}o(vt,"parseSchemaDefinition");function Jm(e,t,n){let i;return t===Qe.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${br.UIAnnotationTerms.LineItem}`?i=`${U}${n}`:(i=`${U}${n}<${t}>`,vt(n,t,e,!0)),i}o(Jm,"getCustomExtensionDefinitionName");function Mm(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][Qe.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let I=Jm(t,r,a);t.definitions[r].additionalProperties={$ref:I}}let f=e?Qe.DefinitionName.ObjectPageToolBar:Qe.DefinitionName.ToolBar,p=`${f}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${f}`]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${f}`}))}let d=`${Qe.DefinitionName.Actions}<${at(r)}>`;t.definitions[p].properties.actions.$ref=U+d;let m=r.startsWith(Qe.DefinitionName.LineItems)?Qe.DefinitionName.Actions:Qe.DefinitionName.ObjectPageToolBarActions,v;try{if(v=t.definitions[d]=JSON.parse(JSON.stringify(t.definitions[m])),v.properties={},v.additionalProperties=!1,s){let I=Jm(t,r,s);v.additionalProperties={$ref:I}}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let E,b;if(r===Qe.DefinitionName.LineItems&&t.properties.footer){b=`${Qe.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${U}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[Qe.DefinitionName.GenericFooter]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Qe.DefinitionName.GenericFooter}))}let I=`${Qe.DefinitionName.FooterActions}<${at(r)}>`;t.definitions[b].properties.actions.$ref=U+I,E=t.definitions[I]=JSON.parse(JSON.stringify(t.definitions[Qe.DefinitionName.Actions])),E.properties={},E.additionalProperties=!1}return n&&(l=Tr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][Qe.SchemaTag.annotationPath]=l,E&&(t.definitions[b][Qe.SchemaTag.annotationPath]=l))),{actions:v,footerActions:E,lineItemPath:l}}o(Mm,"addCommonLineItemDefinitions");function D_(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(D_,"getDataTypeFromAnnotation");function Fc(e){var n,i,r;let t;return e!=null&&e.Value?e.Visualization==="UI.VisualizationType/Rating"?t="Rating":e.Visualization==="UI.VisualizationType/Progress"?t="Progress":e.$Type==="com.sap.vocabularies.UI.v1.DataPointType"?t="DataPoint":t=(i=(n=e.Value)==null?void 0:n.$target)==null?void 0:i.type.replace("Edm.",""):(r=e==null?void 0:e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")&&(t=D_(e.$Type)),t}o(Fc,"determineDataTypeOfTarget");function er(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=Fc((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(r=e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")?t=D_(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(er,"determineDataType");function Km(e,t){let n=er(t);n&&(e[Qe.SchemaTag.dataType]=n)}o(Km,"addDataTypeToDefinition");function si(e,t){return`${U}${ku(e,t)}`}o(si,"getFacetDefinitionLink");function p_(e,t,n,i){let r=0,a=!1,s="";do{let l=`${t}${r===0?"":"."+r}`;s=si(e,l),r++;let f=n.definitions[ku(e,l)],p=((f==null?void 0:f.annotationPath)??"").split("/").slice(0,-1).join("/");a=!f||p===i}while(!a);return s}o(p_,"getUniqueFacetDefinitionLink");function gs(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${U}${i}`}o(gs,"addDefinitionRef");function Zm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${Qe.UIVOCABULARY}`);t=`/${n}/@${Qe.UIVOCABULARY}${i}`}return t}o(Zm,"getFacetAnnotationPath");function ju(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,f=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:si(a?f:l,t)};let p=vt(a?f:l,t,i,!0);ba(e,p,t),cs(e,p,t),p[Qe.SchemaTag.annotationPath]=e.annotationPath,p[Qe.SchemaTag.isViewNode]=!0}o(ju,"handleAddressContact");function YE(e,t,n){typeof e=="object"&&(e[t]=n)}o(YE,"updateSchemaProperty");function ql(e,t,n=at("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${Qe.DefinitionName.Fields4Dialog}${n}`];YE(r.properties.fields.items,"enum",i)}o(ql,"addFieldsType");function WX(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(WX,"findFirstSchemaDefinitionKey");function km(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let d=zt(t.$ref),m=(p=e.definitions)==null?void 0:p[d];typeof m=="object"&&(s=!m.annotationPath,i!=null&&i.resolveDefinition&&!r&&(r=m.description,a=m.keys))}let l=n,f=WX(a,i==null?void 0:i.keyProperties);return f?l=f.value:i!=null&&i.descriptionAsFallback&&r&&(l=r),{const:l,...r&&{description:r},...s&&{custom:s}}}o(km,"getEnumEntry");function us(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let f=t.properties[l],p=km(e,f,l,i);r.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];YE(l,"oneOf",r)}else YE(a,"oneOf",r)}o(us,"addDescriptiveEnumDefinition");function Rc(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),a=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,a),n=r>0?n.substring(r+1):n.substring(a+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}o(Rc,"getActionKey");function jm(e,t,n){var i,r,a;try{if(e.Value)t[n][Qe.SchemaTag.keys]=[{name:Qe.SchemaKeyName.value,value:ps(e.Value)}];else if(e.$Type===br.UIAnnotationTypes.DataFieldWithAction||e.$Type===br.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=Rc(e.Action,!0);t[n][Qe.SchemaTag.keys]=[{name:Qe.SchemaKeyName.action,value:s}],l&&(t[n][Qe.SchemaTag.target]=l)}else if(e.$Type===br.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=Rc(e.Target.value,!1);t[n][Qe.SchemaTag.keys]=[{name:Qe.SchemaKeyName.target,value:$l(s)}],t[n][Qe.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===br.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===br.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:f}=Rc(s,!0);t[n][Qe.SchemaTag.keys]=[{name:"SemanticObject",value:e[Qe.SchemaKeyName.semanticObject]},{name:"Action",value:l}],f&&(t[n][Qe.SchemaTag.target]=f)}}catch{return}}o(jm,"addKeyToDefinition");function ci(e,t){try{return fs.getStrategy(e.$Type).generateDescription(e,t)}catch{return""}}o(ci,"getDataFieldDescription");function Ca(e,t){e[Qe.SchemaTag.messages]||(e[Qe.SchemaTag.messages]=[]),Array.isArray(e[Qe.SchemaTag.messages])&&e[Qe.SchemaTag.messages].push({text:t})}o(Ca,"addMessageToSchema");var Yl=Z(re());var __=[{version:"1.139",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.139","UI5-1.140","UI5-1.141","UI5-1.142","UI5-1.143","UI5-1.144","UI5-1.145","UI5-1.146","UI5-1.147","UI5-1.148","UI5-1.149"]},{version:"1.136",distTag:["UI5-1.136-legacy-free","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.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.102",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var w_="1.108.66";var M_={name:"@sap/ux-specification",version:w_,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 macros copy-templates -p copy-json-schemas -s htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -s htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/schema/index.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -s htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.39.15","@sap-ux/vocabularies-types":"0.13.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.7","@sap-ux/edmx-parser":"0.9.6","@sap/ux-specification-types":"1.108.66","@sapui5/ts-types-esm":"latest-1.108","@types/d3":"7.4.3","@types/jquery":"3.5.32","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.12.0",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"25.6.0",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.7.3","typescript-json-schema":"0.65.1","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var ms=class ms{constructor(){ms.distTagsOfSpec.length===0&&(ms.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){ms.distTagsOfSpec=[]}getSpecVersion(){return w_}getDistTagsOfVersion(){let t=[],n=__,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let r=n.find(a=>a.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let r=Q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});oe(n,{severity:Yl.LogSeverity.Info,message:r,location:{path:Yl.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(ms.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=Q.t("WRONGMINUI5VERSION",{minUI5Version:t});oe(n,{severity:Yl.LogSeverity.Warning,message:r,location:{path:Yl.MANIFESTPATH}})}}};o(ms,"DistTagEvaluator"),ms.distTagsOfSpec=[];var Uu=ms;var ue=Z(re());var jn=Z(re());var Ei=Z(re());function k_(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(k_,"getCustomPageFullName");function QX(e){let n=k_(e).split(".");return n[n.length-1]}o(QX,"getCustomPageName");function j_(e,t){var i,r;return((i=e==null?void 0:e.view)==null?void 0:i.viewType)||((r=t.settings)==null?void 0:r.viewType)||Ei.ViewTypes.XML}o(j_,"getViewType");function qX(e,t){return j_(e,t).toLowerCase()}o(qX,"getViewTypeExtension");function YX(e,t,n){var p;let i=o(d=>{var m;return(m=d.split(`${t.id}.`)[1])==null?void 0:m.split(".")},"splitViewPath"),r=t.settings,a=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=k_(e);s.includes(t.id)?n=i(s):a!=null&&a.includes(t.id)&&(n=[...i(a),...s.split(".")]);let[l,f]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:f}}o(YX,"getViewPath");function zX(e,t){let n=e.entitySet||QX(e),{viewPath:i,fileName:r}=YX(e,t,[n]),a=qX(e,t);return[...i,`${r}.view.${a}`].join("/")}o(zX,"getCustomPagePath");var zE=class zE{constructor(t,n,i,r){this.unhandledControllers=[];let a=Dt(Ei.SchemaType.Application);this.app={$schema:a.path,id:t.manifest["sap.app"].id,pages:i,home:n,target:{},...r&&{settings:r}},t.fioriElementsVersion?this.app.target={fioriElements:t.fioriElementsVersion,odata:t.oDataVersion}:t.oDataVersion&&(this.app.target.odata=t.oDataVersion),this.schemas=t.appSchemas,this.logger=t.logger}createConfigFiles(){var a;let t={},n={},i;for(let s in this.app.pages){i=this.app.pages[s];let l=((a=this.app.target)==null?void 0:a.odata)===Ei.OdataVersion.v4?s:i.entitySet,f=this.getPageConfigFile(i,l);f&&(t[`${Ei.DirName.Pages}/${s}.json`]=f)}let r=JSON.parse(JSON.stringify(this.app));for(let s in r.pages)delete r.pages[s].config;return n[Ei.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=j_(t,this.app)===Ei.ViewTypes.XML&&!!t.config;if(t.pageType===Ei.PageTypeV4.CustomPage||t.pageType===Ei.PageTypeV4.FPMCustomPage&&!r){let{path:s}=Dt(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(a=t.view)==null?void 0:a.id:void 0,l=Dt(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let f=Dt(t.pageType);i.$schema=f.path}}return(i&&t.pageType===Ei.PageTypeV4.CustomPage||t.pageType===Ei.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=zX(t,this.app);n.$filePath=i}};o(zE,"AppProvider");var hs=zE;var ut=Z(re());var zl=Z(re());var Kn=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),U_=o((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2"),$_=o((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function JE(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(JE,"getNewPageTemplate");function JX(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(JX,"findPageInManifest");function ZX(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=JE(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:JE(e[t].pageType)}),!Array.isArray(n.pages))){let i=JX(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=JE(e[t].pageType)),ZE(t,e,i)}}o(ZX,"transformPageFromAssociation");function e3(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let r=e.pages[i];if(((a=r.component)==null?void 0:a.name)===zl.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===zl.PageTypeV2.ListReport||n.pageType===zl.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(e3,"deletePage");function ZE(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===zl.PageTypeV2.ListReport&&(n.component.list=!0),i.navigationProperty&&(n.navigationProperty=i.navigationProperty),i.defaultLayoutType?n.defaultLayoutType=i.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,i.navigation)){for(let r in i.navigation)ZX(t,r,n);Array.isArray(n.pages)||e3(n,t,i)}}o(ZE,"transformPageToNewManifestV2");var x1=Z(vc());var HA={};yc(HA,{ALPAnalyticalTable:()=>$S,ALPGridTable:()=>US,ALPResponsiveTable:()=>jS,Action:()=>WS,AnalyticalCard:()=>nf,AnalyticalCardSettings:()=>ih,AnalyticalCardSettingsv4:()=>oS,AnalyticalListPageFilterBar:()=>gS,AnalyticalTable:()=>kS,BaseCustomSection:()=>Tp,ChartSettings:()=>fA,ChartSettingsType:()=>tS,CommonCardSettings:()=>bs,CommonFilterBar:()=>Ju,CommonHeaderFacetSettings:()=>Bc,CommonTableSettings:()=>Ps,CommonTableSettingsForSections:()=>Xc,CreateWithFilters:()=>NS,CustomCard:()=>iS,DataLoadSettings:()=>DS,DateRange:()=>fS,DefaultDateRange:()=>uS,DefaultSpanObject:()=>nS,FRAGMENT_DEFINITION:()=>Ko,Field:()=>lS,FieldForAction:()=>vS,Fields4Dialog:()=>_S,Fields4DialogOP:()=>MA,FooterAction:()=>XS,FormAction:()=>TS,GlobalChartSettings:()=>VA,GlobalTableSettings:()=>$A,GridTable:()=>BS,HeaderActionStandard:()=>JS,HeaderSections:()=>TA,KPISettings:()=>uA,LinkListCardSettings:()=>sS,LinklistCard:()=>qu,ListCard:()=>tf,ListCardSettings:()=>rS,ListReportFilterBar:()=>mS,MultiEdit:()=>FS,ObjectPageAnalyticalTable:()=>kA,ObjectPageChart:()=>_A,ObjectPageCustomSectionFragment:()=>vp,ObjectPageCustomSectionView:()=>bp,ObjectPageFooterAction:()=>bA,ObjectPageFooterActionStandard:()=>eA,ObjectPageGridTable:()=>jA,ObjectPageHeader:()=>pA,ObjectPageHeaderAction:()=>dA,ObjectPageHeaderActionStandard:()=>ZS,ObjectPageHeaderSectionAddress:()=>yA,ObjectPageHeaderSectionChart:()=>mA,ObjectPageHeaderSectionDataPoint:()=>hA,ObjectPageHeaderSectionForm:()=>gA,ObjectPageLayout:()=>SA,ObjectPageResponsiveTable:()=>Qc,ObjectPageSectionAddressV2:()=>IA,ObjectPageSectionChartV2:()=>xA,ObjectPageSectionContactV2:()=>OA,ObjectPageSectionFormV2:()=>PA,ObjectPageSectionTableV2:()=>CA,ObjectPageSectionV2:()=>AA,ObjectPageSubSectionChartV2:()=>NA,ObjectPageSubSectionContactV2:()=>FA,ObjectPageSubSectionFormV2:()=>LA,ObjectPageSubSectionTableV2:()=>DA,ObjectPageSubSectionV2:()=>RA,ObjectPageToolBarAction:()=>BA,ObjectPageTreeTable:()=>UA,QuickVariantSelection:()=>VS,QuickVariantSelectionOP:()=>wA,QuickVariantSelectionX:()=>wS,ResponsiveTable:()=>Mc,SAP_UI_TABLE:()=>fh,SaveAndEditOP:()=>zS,SelectionFieldDateSettings:()=>pS,SelectionFields:()=>dS,Share:()=>QS,ShareOP:()=>qS,StackCard:()=>Qu,StackCardSettings:()=>aS,TableALP:()=>cf,TableCard:()=>rf,TableCardSettings:()=>cS,TableColumn:()=>iA,TableColumnAction:()=>rA,TableColumnActionIntentBased:()=>oA,TableCustomColumn:()=>aA,ToolBar:()=>cA,ToolBarAction:()=>KS,TreeTable:()=>MS,UpAndDownNavigationOP:()=>YS,buildIntentBasedActionId:()=>tA,deleteColumnFromFragment:()=>dh,deleteType:()=>ff,exportColorPalette:()=>W_,exportCreateParametersFields:()=>Eh,exportCustomColumnsToFragment:()=>RS,exportDateSettingsField:()=>q_,exportDefaultSpan:()=>K_,exportType:()=>lf,getChartSectionControlId:()=>b1,getContactSubSectionControlId:()=>S1,getCustomColumnPath:()=>gh,getFormSectionControlId:()=>v1,getRootCustomColumnFromFragmentJSON:()=>tp,getSectionControlId:()=>Wc,getSmartChartControlId:()=>fp,getSmartTableControlId:()=>wc,getSubSectionControlId:()=>E1,getTableSectionControlId:()=>T1,importCreateParameters:()=>bh,importDateSettings:()=>hS});var Zn=Z(re());var je=o(e=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),ho=o(e=>je(e)+"/tableSettings","getTableSettingPathV2"),B_=o(e=>je(e)+"/chartSettings","getChartSettingPathV2"),H_=o(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var An=o(()=>Zn.ManifestSection.ovp,"getOVPsettingPath"),Ce=o(e=>{let t=[Zn.ManifestSection.ovp];return e.forEach(n=>{n in Zn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var Dc=o((e,t)=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),nh=o(e=>{let t=[Zn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Di=o(e=>{let t=[];return t.push(nh(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),_c=o(e=>Di(e)+"/tableSettings","getGlobalTableSettingsPathV2"),yo=o((e,t,n)=>{let i=[];i.push(nh(e));let r=n.replace(Zn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),Wr=o((e,t,n)=>yo(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),G_=o((e,t,n)=>yo(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),eS=o(()=>`sap.ui5/extends/extensions/${Zn.v2.SAPUI5_VIEW_EXTENSION}/${Zn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),Oa=o((e,t,n,...i)=>{let a=n.split("|"),s=e[e.length-1].split("|"),l="";a.length===4?l=[a[2],a[3]].join("|"):a.length===3&&(l=a[2]);let f=[a[0],s[s.length-1],l].join("|");return i.unshift(f),`${eS()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),th=class th{};o(th,"ApplicationV2"),h([kt("settings")],th.prototype,"settings",2);var eh=th,Gr=class Gr{};o(Gr,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],Gr.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],Gr.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],Gr.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.50.0"})],Gr.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.46.0"})],Gr.prototype,"forceGlobalRefresh",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.74.0"})],Gr.prototype,"tableColumnVerticalAlignment",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"}),xe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Gr.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Gr.prototype,"draftDiscardConfirmationSettings",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Gr.prototype,"statePreservationMode",2);var ys=Gr;var $u=Z(re());function t3(e){let t=e.colorPalette,n;if(Array.isArray(t))throw new Error("The array syntax for colorPalette is deprecated and not supported");return t[0]&&typeof t[0]=="object"?(n=t,n.colorPaletteType=$u.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=$u.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:$u.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(t3,"importColorPalette");function W_(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===$u.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(W_,"exportColorPalette");function K_(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(K_,"exportDefaultSpan");var rh=class rh{};o(rh,"ChartSettingsType"),h([y({manifest:{path:o(()=>An()+"/chartSettings","path")}})],rh.prototype,"showDataLabel",2);var tS=rh,Ts=class Ts{};o(Ts,"DefaultSpanObject"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ts.prototype,"cols",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ts.prototype,"rows",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ts.prototype,"showOnlyHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ts.prototype,"minimumTitleRow",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ts.prototype,"minimumSubTitleRow",2);var nS=Ts,Kt=class Kt{};o(Kt,"CommonCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"entitySet",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"title",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"subTitle",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"dataPointAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"selectionPresentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"kpiAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"category",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"dynamicSubtitleAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"showFilterInHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"sortBy",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"sortOrder",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"identificationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"selectionAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"presentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"enableLocaleCurrencyFormatting",2),h([y({manifest:{path:o(t=>Ce(t),"path"),export:K_}})],Kt.prototype,"defaultSpan",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"requireAppAuthorization",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"showSortingInHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"tabs",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"addODataSelect",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"showRefresh",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Kt.prototype,"customParams",2);var bs=Kt,Jl=class Jl{};o(Jl,"CustomCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Jl.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Jl.prototype,"template",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Jl.prototype,"settings",2);var iS=Jl,vs=class vs extends bs{};o(vs,"ListCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],vs.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],vs.prototype,"imageSupported",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],vs.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],vs.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],vs.prototype,"listType",2);var rS=vs,Bu=class Bu{};o(Bu,"ListCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Bu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Bu.prototype,"template",2);var tf=Bu,Go=class Go extends bs{};o(Go,"AnalyticalCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"chartAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"ignoreSapText",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"navigation",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"chartProperties",2),h([y({manifest:{path:o(t=>Ce(t),"path"),import:t3,export:W_}})],Go.prototype,"colorPalette",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Go.prototype,"bEnableStableColors",2);var ih=Go,oh=class oh extends ih{};o(oh,"AnalyticalCardSettingsv4"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],oh.prototype,"measureAggregate",2);var oS=oh,Hu=class Hu{};o(Hu,"AnalyticalCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Hu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Hu.prototype,"template",2);var nf=Hu,Zl=class Zl extends bs{};o(Zl,"StackCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Zl.prototype,"itemText",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Zl.prototype,"objectStreamCardsNavigationProperty",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Zl.prototype,"objectStreamCardsSettings",2);var aS=Zl,Gu=class Gu{};o(Gu,"StackCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Gu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Gu.prototype,"template",2);var Qu=Gu,ef=class ef extends bs{};o(ef,"LinkListCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ef.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ef.prototype,"headerAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ef.prototype,"staticContent",2);var sS=ef,Wu=class Wu{};o(Wu,"LinklistCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Wu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Wu.prototype,"template",2);var qu=Wu,Ku=class Ku extends bs{};o(Ku,"TableCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ku.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Ku.prototype,"enableAddToInsights",2);var cS=Ku,Xu=class Xu{};o(Xu,"TableCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Xu.prototype,"template",2);var rf=Xu;var X_=Z(re());var n3=o((e,t,n,i,r)=>{let a=zn(n[1],r),s=n.slice(-1)[0];return Jt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),ah=class ah{};o(ah,"Field"),h([y({flex:{controlId:n3,controlType:o(()=>X_.ControlType.GroupElement,"controlType")},generate:mt})],ah.prototype,"visible",2);var lS=ah;var Vc=Z(re());function hS(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),delete t.fields,t}o(hS,"importDateSettings");function i3(e,t,n){let i=e!=null&&e[n]?JSON.parse(JSON.stringify(e==null?void 0:e[n])):void 0,r;return n==="selectedValues"&&typeof i=="string"&&(r=i.split(",")),n==="filter"&&typeof i=="object"&&(r=[],i.forEach((a,s)=>{r[s]=a,a.equals&&typeof a.equals=="string"&&(r[s].equals=a.equals.split(","))})),r}o(i3,"importDateSettingsField");function q_(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];if(n==="selectedValues"&&(e[n]=i.join()),n==="filter")for(let r in i){let a=i[r];e[n][r]=a,a.equals&&Array.isArray(a.equals)&&(e[n][r].equals=a.equals.join())}}o(q_,"exportDateSettingsField");var of=class of{};o(of,"DateRange"),h([y({manifest:{path:o(t=>je(t)+Vc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],of.prototype,"useDateRange",2),h([y({manifest:{path:o(t=>je(t)+Vc.DATESETTINGSPATH,"path"),import:hS,export:Am}}),x({since:"1.77.0"})],of.prototype,"selectedValues",2),h([y({manifest:{path:o(t=>je(t)+Vc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],of.prototype,"exclude",2);var fS=of,sh={controlId:Jt,controlType:o(()=>Vc.ControlType.SmartFilterBar,"controlType")},Yu={path:o((e,t,n)=>`${je(e)}${Vc.DATESETTINGSPATH}/fields/${n}`,"path")},Q_={...Yu,import:i3,export:q_},ch=class ch{};o(ch,"DefaultDateRange"),h([y({manifest:Yu}),x({since:"1.90.0"})],ch.prototype,"operation",2);var uS=ch,Es=class Es{};o(Es,"SelectionFieldDateSettings"),h([y({manifest:Q_}),x({since:"1.77.0"})],Es.prototype,"selectedValues",2),h([y({manifest:Yu}),x({since:"1.77.0"})],Es.prototype,"exclude",2),h([y({manifest:Yu}),x({since:"1.77.0"})],Es.prototype,"customDateRangeImplementation",2),h([y({manifest:Q_}),x({since:"1.77.0"})],Es.prototype,"filter",2),h([y({manifest:Yu}),x({since:"1.90.0"})],Es.prototype,"defaultValue",2);var pS=Es,yS=class yS{};o(yS,"SelectionFields");var dS=yS,To=class To{};o(To,"CommonFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"})],To.prototype,"smartVariantManagement",2),h([y({flex:sh}),x({since:"1.40.0"})],To.prototype,"liveMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],To.prototype,"variantManagementHidden",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.52.0"})],To.prototype,"subTitleIfVariantMgmtHidden",2),h([y({manifest:{path:o(t=>je(t)+"/filterSettings","path"),import:hS}}),x({since:"1.77.0"})],To.prototype,"dateSettings",2),h([y({flex:sh}),x({since:"1.28.0"})],To.prototype,"showClearOnFB",2),h([y({flex:sh}),x({since:"1.38.0"})],To.prototype,"showFilterConfiguration",2),h([y({flex:sh}),x({since:"1.28.0"})],To.prototype,"showRestoreOnFB",2);var Ju=To,zu=class zu extends Ju{};o(zu,"AnalyticalListPageFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}})],zu.prototype,"showGoButtonOnFilterBar",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],zu.prototype,"filterDefaultsFromSelectionVariant",2);var gS=zu,lh=class lh extends Ju{};o(lh,"ListReportFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),xe("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),x({since:"1.86.0"})],lh.prototype,"annotationPath",2);var mS=lh;var bS=Z(re());var r3=o((e,t,n,i,r)=>{if(i()===bS.ControlType.Button){let a=n[n.length-1],s=zn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return Jt(e,t)},"getFormActionButtonId"),Wo={controlId:r3,controlType:o(()=>bS.ControlType.Button,"controlType")},Ss=class Ss{};o(Ss,"FormAction"),h([y({flex:Wo,generate:mt})],Ss.prototype,"visible",2),h([y({flex:Wo})],Ss.prototype,"tooltip",2),h([y({flex:Wo})],Ss.prototype,"icon",2),h([y({flex:Wo})],Ss.prototype,"activeIcon",2),h([y({flex:Wo})],Ss.prototype,"type",2);var TS=Ss,As=class As{};o(As,"FieldForAction"),h([y({flex:Wo,generate:mt})],As.prototype,"visible",2),h([y({flex:Wo})],As.prototype,"tooltip",2),h([y({flex:Wo})],As.prototype,"icon",2),h([y({flex:Wo})],As.prototype,"activeIcon",2),h([y({flex:Wo}),x({since:"1.73.0"})],As.prototype,"type",2);var vS=As;var Et=Z(re()),vo=Z(vc());var PS=require("path"),S3=Z(re()),c1=Z(s1()),l1=require("fs");var A3=(0,PS.join)(__dirname,"templates");var P3=o((e,t)=>{let n=(0,l1.readFileSync)(e,"utf8");return(0,c1.render)(n,t)},"renderTemplate");var xS=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return P3((0,PS.join)(A3,t+".xml"),n)},"getSingleColumnContent"),CS=o((e,t)=>{let n="";if(n='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns="sap.m">',e)for(let i of e){let r=xS(i,t);n=n+`
289
289
  `+r}return n+`
290
290
  </core:FragmentDefinition>`},"getColumnFragmentContent"),IS=o(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
291
291
  <Text text="Placeholder"/>`}),t+`
292
- </core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var uh=require("path");var Ko="core:FragmentDefinition",fh="sap.ui.table",OS=new Map([[Et.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Et.ViewTemplateType.TreeTableColumnsExtension,{namespace:fh,name:"Column"}],[Et.ViewTemplateType.GridTableColumnsExtension,{namespace:fh,name:"Column"}],[Et.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:fh,name:"AnalyticalColumn"}]]),x3=new Map([[Et.v2.FE_TEMPLATE_V2_LIST_REPORT,Et.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Et.v2.FE_TEMPLATE_V2_ALP,Et.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Et.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Et.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),uV={type:"element",name:"Text",attributes:{text:"Placeholder"}},C3=JSON.stringify(uV);function I3(e,t){var i;let n=t?(i=e==null?void 0:e[Ko])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let r=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=r.get(n[a]);r.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),r}else throw new Error("Invalid fragment, please check content")}o(I3,"getFragmentNamespaces");function fV(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(fV,"getTagName");function ph(e,t,n=e){let i=I3(n,!!(t||n!==e));if(t){let r=OS.get(t);return fV(r,i.get(r.namespace))}else{let r=OS.keys();for(let a of r){let s=OS.get(a),l=i?fV(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(ph,"getTagNameFromFragmentJSON");function tp(e,t=e){let n=ph(e,void 0,t);return e[n]}o(tp,"getRootCustomColumnFromFragmentJSON");function O3(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let a=e[t][r];!n.includes(r)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${a.toString()}"`)}return i+="}",i}o(O3,"addP13nData");function pV(e,t){var l,f,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let r=i["core:CustomData"]._attributes.value,a=JSON.parse(r.substr(1,r.length)),s=t.findIndex(d=>d.columnKey===a.columnKey);return s<0?!1:(n=!0,r=O3(t,s),i["core:CustomData"]._attributes.value=r,!e.Text&&!e.Label&&((l=t[s])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(f=t[s])==null?void 0:f.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(p=t[s])==null?void 0:p.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}o(pV,"handleFragmentColumn");function R3(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+Et.FRAGMENTNAMEPART+a;for(let f of t){let p=f.dataSourceUri.split(uh.sep);if(p[p.length-1]===l){let d=JSON.parse((0,vo.xml2json)(f.fileContent,{compact:!0}));try{let m=ph(d[Ko]);m&&(delete d[Ko][m],f.fileContent=(0,vo.json2xml)(JSON.stringify(d),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${f.dataSourceUri}, please check content`)}break}}}o(R3,"deleteColumnsFromFragment");function dV(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===C3&&(e.splice(n,1),t-=1,t===0));n++);}o(dV,"deleteNumberOfCells");function L3(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+Et.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,vo.xml2json)(s.fileContent)),f=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");f&&dV(l.elements[0].elements,f.length),s.fileContent=(0,vo.json2xml)(JSON.stringify(l),{spaces:4});break}}o(L3,"deleteCellsFromFragment");function dh(e,t,n,i){if(i){R3(e,i,t,n);let r=t.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&L3(a,i,n)}}o(dh,"deleteColumnFromFragment");function N3(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let r=i;r<Object.keys(n).length;r++)t.elements[0].elements.push(uV)}o(N3,"addNewColumnsInFragment");function F3(e,t){let n=JSON.parse((0,vo.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)N3(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;dV(a,r)}e.fileContent=(0,vo.json2xml)(JSON.stringify(n),{spaces:4})}}o(F3,"updateNonEmptyCellsFragment");function D3(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(uh.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=Et.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=IS(n):F3(r,n);break}}return i}o(D3,"updateCellsFragment");function _3(e,t,n,i,r){var d;let a,s,l=t.manifest,f=Kn(l,e),p=f.type?f.type.toLowerCase():"xml";f.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){oe(r,{severity:Et.LogSeverity.Error,message:Q.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=Et.ChangeIndicator.Updated,f.fragmentName=m.fragmentName,f.className=m.className,a=((d=m.fragmentName)==null?void 0:d.replace(i,"<root>/webapp").replace(/[.]/g,uh.sep))+Et.FRAGMENTNAMEPART+p}if(e.indexOf(Et.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Et.ChangeIndicator.Updated;let m=e.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),v=Kn(l,m),E=n.reduce((b,I)=>I.cellsFragmentName?I:b);E&&E.cellsFragmentName?(v.fragmentName=s=E.cellsFragmentName,v.className=n[0].className,v.type=p.toUpperCase()):$_(l,m)}return{manifestSection:f,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(_3,"exportCustomColumnsToManifest");function V3(e,t,n,i,r){let a=xS(e,t);if(a){let s=JSON.parse((0,vo.xml2json)(a,{compact:!0})),l=tp(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(l))||n.push(l);else if(n){let f=[n];f.splice(r,0,l),n=f}else n=[l]}return n}o(V3,"insertNewColumnInFragment");function w3(e,t){let n=[];for(let i=0;i<e.length;i++)pV(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(w3,"processCustomColumnInArray");function M3(e,t,n){if(e){if(Array.isArray(e))w3(e,t);else if(!pV(e,t)){let r=ph(n[Ko]);r&&(delete n[Ko][r],e=void 0)}}return e}o(M3,"maintainExistingColumnInFragment");function k3(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=V3(a,i,n,r,s)}return n}o(k3,"insertNewColumnsInFragment");function j3(e,t,n,i,r){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=Et.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=CS(i,r);else{let f=JSON.parse((0,vo.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(f);l=tp(f[Ko]),l=M3(l,i,f),l=k3(i,n,l,r,f);let d=ph(f,r);f[Ko][d]=l;let m=JSON.stringify(f);m!==p&&(s.fileContent=(0,vo.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(j3,"updateColumnsInFragment");function RS(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:f,cellsFragmentName:p,fragmentType:d}=_3(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),v=l.fragmentName,E=v.substr(i.length+1),b=E.split(".");v=b[b.length-1]+Et.FRAGMENTNAMEPART+d;let N=p==null?void 0:p.split("."),j=N?N[N.length-1]:null,G=j?j+Et.FRAGMENTNAMEPART+d:null,$=j3(s,v,E,m,r),se=!1;if(p?se=D3(s,G,n):se=!0,!$){let ee={fileContent:CS(m,r),dataSourceUri:f,changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(ee)}if(!se){let ee={fileContent:IS(n),dataSourceUri:f.replace(v,G),changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(ee)}}o(RS,"exportCustomColumnsToFragment");var gh=o((e,t,n,i)=>{var f,p,d,m;if(!e)return;let r=x3.get((f=e.component)==null?void 0:f.name);if(!i){let v=(m=(d=(p=e.component)==null?void 0:p.settings)==null?void 0:d.tableSettings)==null?void 0:m.type;v||(v="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(v="AnalyticalTable"),i=v+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var li=Z(re());var LS="/multiEdit",wc=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+li.PropertyName.table:Jt(e,t),"getSmartTableControlId");function bh(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let r in t)n.fields.push(r);return n}o(bh,"importCreateParameters");function Eh(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(a=>r[a]=e[n][a]||{path:a}),e[n]=r}o(Eh,"exportCreateParametersFields");function U3(e,t){let n=e.variants||{},i=t.variants||{};Object.keys(n).filter(a=>!Object.keys(i).includes(a)).forEach(a=>{delete n[a]});for(let a in i){let s=i[a],l=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let f in s)l.indexOf(f)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[f]=s[f],delete s[f]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}o(U3,"exportVariants");function $3(e,t){t.variants&&(Object.keys(t.variants).length>0?U3(e,t):delete e.variants)}o($3,"exportQuickVariantSelectionX");function B3(e){var n,i;if(!e||!e.multiEdit)return;let t=JSON.parse(JSON.stringify(e.multiEdit));return t.ignoredFields=(i=(n=e.multiEdit)==null?void 0:n.ignoredFields)==null?void 0:i.split(","),t}o(B3,"importMultiEdit");var mh=class mh{};o(mh,"CreateWithFilters"),h([y({manifest:{path:o(t=>je(t)+"/createWithFilters","path")}})],mh.prototype,"strategy",2);var NS=mh,af=class af{};o(af,"MultiEdit"),h([y({manifest:{path:o(t=>ho(t)+LS,"path")}})],af.prototype,"enabled",2),h([y({manifest:{path:o(t=>ho(t)+LS,"path")}})],af.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ho(t)+LS,"path"),export:Am}})],af.prototype,"ignoredFields",2);var FS=af;function rp(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}o(rp,"importType");function lf(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(lf,"exportType");function ff(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}o(ff,"deleteType");var hh=class hh{};o(hh,"DataLoadSettings"),h([y({manifest:{path:o(t=>H_(t),"path")}}),x({since:"1.75.2"})],hh.prototype,"loadDataOnAppLaunch",2);var DS=hh,yh=class yh{};o(yh,"Fields4Dialog"),h([y({manifest:{path:o(t=>ho(t)+"/createWithParameterDialog","path"),export:Eh}}),x({since:"1.77.0"})],yh.prototype,"fields",2);var _S=yh,np=class np{};o(np,"QuickVariantSelection"),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],np.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],np.prototype,"variants",2);var VS=np,sf=class sf{};o(sf,"QuickVariantSelectionX"),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],sf.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],sf.prototype,"enableAutoBinding",2),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATHX,"path"),export:$3}}),x({since:"1.48.0"})],sf.prototype,"variants",2);var wS=sf,Si=class Si{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}},enableAutoBinding:{since:"1.40.0",deprecated:{since:"1.75.2",text:"Use tableSettings.loadDataOnAppLaunch instead"}}}),"getDeprecated")}};o(Si,"CommonTableSettings"),h([y({manifest:{key:"createWithParameterDialog",path:o(t=>ho(t),"path"),import:bh}}),x({since:"1.77.0"})],Si.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:Jt,controlType:o(()=>li.ControlType.SmartTable,"controlType")}}),x({since:"1.38.0"})],Si.prototype,"showTablePersonalisation",2),h([y({flex:{controlId:wc,controlType:o(()=>li.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],Si.prototype,"useExportToExcel",2),h([y({flex:{controlId:wc,controlType:o(()=>li.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],Si.prototype,"exportType",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],Si.prototype,"quickVariantSelection",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],Si.prototype,"quickVariantSelectionX",2),h([y({manifest:{path:o(t=>ho(t),"path")}}),x({since:"1.38.0"})],Si.prototype,"multiSelect",2),h([y({manifest:{path:o(t=>ho(t),"path")}}),x({since:"1.70.0"})],Si.prototype,"selectAll",2),h([y({manifest:{path:o(t=>ho(t),"path")}}),x({since:"1.70.0"})],Si.prototype,"selectionLimit",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.75.2"})],Si.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.42.0"})],Si.prototype,"condensedTableLayout",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.56.0"}),xe("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],Si.prototype,"enableTableFilterInPageVariant",2),h([kt("toolBar")],Si.prototype,"toolBar",2);var Ps=Si,Xo=class Xo extends Ps{};o(Xo,"ResponsiveTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:rp,export:lf,delete:ff}}),x({since:"1.50.0"})],Xo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],Xo.prototype,"createWithFilters",2),h([y({flex:{controlId:wc,controlType:o(()=>li.ControlType.Table,"controlType")},generate:Jn}),x({since:"1.52.0"})],Xo.prototype,"popinLayout",2),h([y({flex:{controlId:wc,controlType:o(()=>li.ControlType.Table,"controlType")}})],Xo.prototype,"includeItemInSelection",2),h([y({manifest:{path:o(t=>ho(t),"path")}}),x({since:"1.77.0"})],Xo.prototype,"inlineDelete",2),h([y({flex:{controlId:wc,controlType:o(()=>li.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],Xo.prototype,"growingThreshold",2),h([y({manifest:{path:o(t=>ho(t),"path"),import:B3}}),x({since:"1.98.0"})],Xo.prototype,"multiEdit",2);var Mc=Xo,Th=class Th extends Ps{};o(Th,"TreeTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:rp,export:lf,delete:ff}}),x({since:"1.50.0"})],Th.prototype,"type",2);var MS=Th,bo=class bo extends Ps{};o(bo,"AnalyticalTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:rp,export:lf,delete:ff}}),x({since:"1.50.0"})],bo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],bo.prototype,"qualifier",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"}),y({manifest:{path:o(t=>je(t),"path")}})],bo.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],bo.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],bo.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],bo.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.78.0"})],bo.prototype,"allFiltersAsInParameters",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],bo.prototype,"createWithFilters",2);var kS=bo,Qo=class Qo extends Ps{};o(Qo,"TableALP"),h([y({manifest:{path:o(t=>je(t),"path"),import:rp,export:lf,delete:ff}}),x({since:"1.50.0"})],Qo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Qo.prototype,"qualifier",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"}),y({manifest:{path:o(t=>je(t),"path")}})],Qo.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Qo.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],Qo.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Qo.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.78.0"})],Qo.prototype,"allFiltersAsInParameters",2);var cf=Qo,vh=class vh extends cf{};o(vh,"ALPResponsiveTable"),h([y({flex:{controlId:wc,controlType:o(()=>li.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],vh.prototype,"growingThreshold",2);var jS=vh,HS=class HS extends cf{};o(HS,"ALPGridTable");var US=HS,GS=class GS extends cf{};o(GS,"ALPAnalyticalTable");var $S=GS,ip=class ip extends Ps{};o(ip,"GridTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:rp,export:lf,delete:ff}}),x({since:"1.50.0"})],ip.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],ip.prototype,"createWithFilters",2);var BS=ip;var op=Z(re());var H3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${Yi(i).replace(":2f","::")}`},"getActionButtonId"),G3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}template::${i}`},"getStandardActionButtonId"),W3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}${Bm}${i}`},"getStandardFooterActionOPButtonId"),tA=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Ji(n);return`${e}action::${i}::${Yi(r)}`},"buildIntentBasedActionId"),K3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${Yi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),xs={controlId:H3,controlType:o(()=>op.ControlType.Button,"controlType")},ap={controlId:G3,controlType:o(()=>op.ControlType.Button,"controlType")},gV={controlId:W3,controlType:o(()=>op.ControlType.Button,"controlType")},Sh={controlId:K3,controlType:o(()=>op.ControlType.Button,"controlType")},kc=class kc{};o(kc,"Action"),h([y({flex:xs})],kc.prototype,"tooltip",2),h([y({flex:xs})],kc.prototype,"icon",2),h([y({flex:xs})],kc.prototype,"activeIcon",2),h([y({flex:xs})],kc.prototype,"type",2);var WS=kc,jc=class jc{};o(jc,"ToolBarAction"),h([y({flex:xs})],jc.prototype,"tooltip",2),h([y({flex:xs})],jc.prototype,"icon",2),h([y({flex:xs})],jc.prototype,"activeIcon",2),h([y({flex:xs})],jc.prototype,"type",2);var KS=jc,Uc=class Uc{};o(Uc,"FooterAction"),h([y({flex:Sh})],Uc.prototype,"tooltip",2),h([y({flex:Sh})],Uc.prototype,"icon",2),h([y({flex:Sh})],Uc.prototype,"activeIcon",2),h([y({flex:Sh})],Uc.prototype,"type",2);var XS=Uc,Ah=class Ah{};o(Ah,"Share"),h([y({flex:ap})],Ah.prototype,"visible",2);var QS=Ah,Ph=class Ph{};o(Ph,"ShareOP"),h([y({flex:ap})],Ph.prototype,"visible",2);var qS=Ph,xh=class xh{};o(xh,"UpAndDownNavigationOP"),h([y({flex:ap})],xh.prototype,"visible",2);var YS=xh,Ch=class Ch{};o(Ch,"SaveAndEditOP"),h([y({flex:gV,generate:mt})],Ch.prototype,"visible",2);var zS=Ch,Ih=class Ih{};o(Ih,"HeaderActionStandard"),h([y({flex:ap})],Ih.prototype,"visible",2);var JS=Ih,Oh=class Oh{};o(Oh,"ObjectPageHeaderActionStandard"),h([y({flex:ap})],Oh.prototype,"visible",2);var ZS=Oh,Rh=class Rh{};o(Rh,"ObjectPageFooterActionStandard"),h([y({flex:gV})],Rh.prototype,"visible",2);var eA=Rh;var lp=Z(re());var X3=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=Ji(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),Q3=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=Ji(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),q3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),nA={controlId:X3,controlType:o(()=>lp.ControlType.TableColumn,"controlType")},sp={controlId:q3,controlType:o(()=>lp.ControlType.Button,"controlType")},mV={...nA,controlId:Q3},Lh={...sp,controlId:tA},cp=class cp{};o(cp,"TableColumn"),h([y({flex:{controlId:fE,controlType:o(()=>lp.ControlType.TableColumn,"controlType")}})],cp.prototype,"width",2),h([y({flex:{controlId:fE,controlType:o(()=>lp.ControlType.TableColumn,"controlType")},generate:Jn})],cp.prototype,"hAlign",2);var iA=cp,Ra=class Ra{};o(Ra,"TableColumnAction"),h([y({flex:nA})],Ra.prototype,"width",2),h([y({flex:nA,generate:Jn})],Ra.prototype,"hAlign",2),h([y({flex:sp})],Ra.prototype,"tooltip",2),h([y({flex:sp})],Ra.prototype,"icon",2),h([y({flex:sp})],Ra.prototype,"activeIcon",2),h([y({flex:sp})],Ra.prototype,"type",2);var rA=Ra,La=class La{};o(La,"TableColumnActionIntentBased"),h([y({flex:mV})],La.prototype,"width",2),h([y({flex:mV,generate:Jn})],La.prototype,"hAlign",2),h([y({flex:Lh})],La.prototype,"tooltip",2),h([y({flex:Lh})],La.prototype,"icon",2),h([y({flex:Lh})],La.prototype,"activeIcon",2),h([y({flex:Lh})],La.prototype,"type",2);var oA=La,sA=class sA{};o(sA,"TableCustomColumn");var aA=sA;var lA=class lA{};o(lA,"ToolBar");var cA=lA;var $c=Z(re());var fp=o(e=>e+$c.PropertyName.chart,"getSmartChartControlId"),Cs=class Cs{};o(Cs,"ChartSettings"),h([y({flex:{controlId:fp,controlType:o(()=>$c.ControlType.SmartChart,"controlType")}})],Cs.prototype,"showLegendButton",2),h([y({flex:{controlId:fp,controlType:o(()=>$c.ControlType.SmartChart,"controlType")}})],Cs.prototype,"showDownloadButton",2),h([y({flex:{controlId:fp,controlType:o(()=>$c.ControlType.SmartChart,"controlType")}})],Cs.prototype,"showChartTypeSelectionButton",2),h([y({flex:{controlId:fp,controlType:o(()=>$c.ControlType.SmartChart,"controlType"),exportFlexValue:o((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:o((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue")}})],Cs.prototype,"ignoredChartTypes",2),h([y({manifest:{path:o(t=>B_(t),"path")}}),x({since:"1.81.0"})],Cs.prototype,"showDataLabel",2);var fA=Cs;var Na=class Na{};o(Na,"KPISettings"),h([y({manifest:{path:o((t,n,i)=>Dc(t,i),"path")}})],Na.prototype,"model",2),h([y({manifest:{path:o((t,n,i)=>Dc(t,i),"path")}})],Na.prototype,"entitySet",2),h([y({manifest:{path:o((t,n,i)=>Dc(t,i),"path")}})],Na.prototype,"qualifier",2),h([y({manifest:{path:o((t,n,i)=>Dc(t,i),"path")}})],Na.prototype,"filterable",2),h([y({manifest:{path:o((t,n,i)=>Dc(t,i),"path")}})],Na.prototype,"detailNavigation",2),h([y({manifest:{path:o((t,n,i)=>Dc(t,i),"path")}})],Na.prototype,"groupId",2);var uA=Na;var hV=Z(re());var Y3=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Jt(e,n)},"getAvatarControlId"),Is=class Is{};o(Is,"ObjectPageHeader"),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.46.0"})],Is.prototype,"showRelatedApps",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.46.0"})],Is.prototype,"editableHeaderContent",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.48.0"})],Is.prototype,"simpleHeaderFacets",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.48.0"}),xe("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],Is.prototype,"showHeaderAsCarouselOnDesktop",2),h([y({flex:{controlId:Y3,controlType:o(()=>hV.ControlType.Avatar,"controlType")},generate:mt})],Is.prototype,"displayShape",2);var pA=Is;var Nh=Z(re());var z3=o((e,t,n,i)=>{if(i()===Nh.ControlType.Button||i()===Nh.ControlType.HeaderAction){let r=n[2];return`${e}action::${Yi(r)}`}return Jt(e,t)},"getActionButtonId"),up={controlId:z3,controlType:o(()=>Nh.ControlType.HeaderAction,"controlType")},Os=class Os{};o(Os,"ObjectPageHeaderAction"),h([y({flex:up,generate:mt})],Os.prototype,"visible",2),h([y({flex:up})],Os.prototype,"tooltip",2),h([y({flex:up})],Os.prototype,"icon",2),h([y({flex:up})],Os.prototype,"activeIcon",2),h([y({flex:up})],Os.prototype,"type",2);var dA=Os;var pp=Z(re());var Mh="header::headerEditable::",J3=o((e,t,n,i,r)=>`${e}${Mh}${r}`,"getDataPointHeaderSectionId"),Z3=o((e,t,n,i,r)=>`${e}${Mh}${r}::ContactAddress`,"getAddressHeaderSectionId"),eQ=o((e,t,n,i,r)=>`${e}${Mh}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),tQ=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(pp.FACETTITLEPREFIX)?r.split(pp.FACETTITLEPREFIX)[1]:a;return`${e}${Mh}${s}::Form`},"getFormHeaderSectionId"),dp={controlType:o(()=>pp.ControlType.ObjectPageHeaderSection,"controlType")},Fh=class Fh{};o(Fh,"CommonHeaderFacetSettings"),h([y({flex:{...dp,controlId:o((()=>crypto.randomUUID()),"controlId")},generate:mt})],Fh.prototype,"visible",2);var Bc=Fh,Dh=class Dh extends Bc{};o(Dh,"ObjectPageHeaderSectionForm"),h([y({flex:{...dp,controlId:tQ}})],Dh.prototype,"visible",2);var gA=Dh,_h=class _h extends Bc{};o(_h,"ObjectPageHeaderSectionChart"),h([y({flex:{...dp,controlId:eQ}})],_h.prototype,"visible",2);var mA=_h,Vh=class Vh extends Bc{};o(Vh,"ObjectPageHeaderSectionDataPoint"),h([y({flex:{...dp,controlId:J3}})],Vh.prototype,"visible",2);var hA=Vh,wh=class wh extends Bc{};o(wh,"ObjectPageHeaderSectionAddress"),h([y({flex:{...dp,controlId:Z3}})],wh.prototype,"visible",2);var yA=wh,vA=class vA{};o(vA,"HeaderSections");var TA=vA;var EA=Z(re());var nQ=o((e,t,n,i)=>{if(i()===EA.ControlType.Button){let{actionId:r}=Ji(n);return`${e}action::${Yi(r)}::Determining`}return Jt(e,t)},"getFooterActionButtonId"),gp={controlId:nQ,controlType:o(()=>EA.ControlType.Button,"controlType")},Rs=class Rs{};o(Rs,"ObjectPageFooterAction"),h([y({flex:gp,generate:mt})],Rs.prototype,"visible",2),h([y({flex:gp})],Rs.prototype,"tooltip",2),h([y({flex:gp})],Rs.prototype,"icon",2),h([y({flex:gp})],Rs.prototype,"activeIcon",2),h([y({flex:gp})],Rs.prototype,"type",2);var bA=Rs;var mp=Z(re());var kh=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Jt(e,n)},"getControlId"),Hc=class Hc{};o(Hc,"ObjectPageLayout"),h([y({flex:{controlId:kh,controlType:o(()=>mp.ControlType.ObjectPageLayout,"controlType")},generate:mt})],Hc.prototype,"showHeaderContent",2),h([y({flex:{controlId:kh,controlType:o(()=>mp.ControlType.ObjectPageLayout,"controlType")}})],Hc.prototype,"showAnchorBar",2),h([y({flex:{controlId:kh,controlType:o(()=>mp.ControlType.ObjectPageLayout,"controlType")}})],Hc.prototype,"useIconTabBar",2),h([y({flex:{controlId:kh,controlType:o(()=>mp.ControlType.ObjectPageLayout,"controlType")}}),x({since:"1.34.0"})],Hc.prototype,"alwaysShowContentHeader",2);var SA=Hc;var yV=Z(re());var Gc=class Gc{};o(Gc,"BaseCustomSection"),h([y({manifest:{path:Oa,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),x({since:"1.52.0"})],Gc.prototype,"relatedFacet",2),h([y({manifest:{path:Oa,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),x({since:"1.52.0"})],Gc.prototype,"relativePosition",2),h([y({manifest:{path:o((t,n,i)=>Oa(t,{},i,yV.ManifestSection.generic),"path")}}),x({since:"1.52.0"})],Gc.prototype,"title",2),h([y({manifest:{path:Oa}}),x({since:"1.52.0"})],Gc.prototype,"className",2);var Tp=Gc,hp=class hp extends Tp{};o(hp,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:Oa}}),x({since:"1.52.0"})],hp.prototype,"fragmentName",2),h([y({manifest:{path:Oa}}),x({since:"1.52.0"})],hp.prototype,"type",2);var vp=hp,yp=class yp extends Tp{};o(yp,"ObjectPageCustomSectionView"),h([y({manifest:{path:Oa}}),x({since:"1.52.0"})],yp.prototype,"viewName",2),h([y({manifest:{path:Oa}}),x({since:"1.52.0"})],yp.prototype,"type",2);var bp=yp;var nr=Z(re());var TV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),nr.DefinitionName.Table];return Jt(e,s)},"getTableSectionControlId"),vV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"FormGroup"];return Jt(e,s)},"getFormSectionControlId"),bV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"Chart"];return Jt(e,s)},"getChartSectionControlId"),Wc=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"Section"];return Jt(e,s)},"getSectionControlId"),EV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"SubSection"];return Jt(e,s)},"getSubSectionControlId"),SV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"ContactsList"];return Jt(e,s)},"getContactSubSectionControlId"),jh=class jh{};o(jh,"ObjectPageSectionV2"),h([y({flex:{controlId:Wc,controlType:o(()=>nr.ControlType.Section,"controlType")},generate:mt})],jh.prototype,"visible",2);var AA=jh,Uh=class Uh{};o(Uh,"ObjectPageSectionFormV2"),h([y({flex:{controlId:Wc,controlType:o(()=>nr.ControlType.Section,"controlType")},generate:mt})],Uh.prototype,"visible",2);var PA=Uh,$h=class $h{};o($h,"ObjectPageSectionChartV2"),h([y({flex:{controlId:Wc,controlType:o(()=>nr.ControlType.Section,"controlType")},generate:mt})],$h.prototype,"visible",2);var xA=$h,Bh=class Bh{};o(Bh,"ObjectPageSectionTableV2"),h([y({flex:{controlId:Wc,controlType:o(()=>nr.ControlType.Section,"controlType")},generate:mt})],Bh.prototype,"visible",2);var CA=Bh,Hh=class Hh{};o(Hh,"ObjectPageSectionAddressV2"),h([y({flex:{controlId:Wc,controlType:o(()=>nr.ControlType.Section,"controlType")},generate:mt})],Hh.prototype,"visible",2);var IA=Hh,Gh=class Gh{};o(Gh,"ObjectPageSectionContactV2"),h([y({flex:{controlId:Wc,controlType:o(()=>nr.ControlType.Section,"controlType")},generate:mt})],Gh.prototype,"visible",2);var OA=Gh,Wh=class Wh{};o(Wh,"ObjectPageSubSectionV2"),h([y({flex:{controlId:EV,controlType:o(()=>nr.ControlType.SubSection,"controlType")},generate:mt})],Wh.prototype,"visible",2);var RA=Wh,Kh=class Kh{};o(Kh,"ObjectPageSubSectionFormV2"),h([y({flex:{controlId:vV,controlType:o(()=>nr.ControlType.Group,"controlType")},generate:mt})],Kh.prototype,"visible",2);var LA=Kh,Xh=class Xh{};o(Xh,"ObjectPageSubSectionChartV2"),h([y({flex:{controlId:bV,controlType:o(()=>nr.ControlType.SmartChart,"controlType")},generate:mt})],Xh.prototype,"visible",2);var NA=Xh,Qh=class Qh{};o(Qh,"ObjectPageSubSectionContactV2"),h([y({flex:{controlId:SV,controlType:o(()=>nr.ControlType.SubSection,"controlType")},generate:mt})],Qh.prototype,"visible",2);var FA=Qh,qh=class qh{};o(qh,"ObjectPageSubSectionTableV2"),h([y({flex:{controlId:TV,controlType:o(()=>nr.ControlType.SmartTable,"controlType")},generate:mt})],qh.prototype,"visible",2);var DA=qh;var Yh=class Yh{};o(Yh,"ObjectPageChart"),h([y({manifest:{path:G_}}),x({since:"1.78.0"})],Yh.prototype,"variantManagement",2);var _A=Yh,zh=class zh{};o(zh,"GlobalChartSettings"),h([y({manifest:{path:o(t=>Di(t)+"/chartSettings","path")}}),x({since:"1.78.0"})],zh.prototype,"variantManagement",2);var VA=zh;var Er=Z(re());var Kc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=Er.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=zn(a[0],r),Jt(e,a)},"getSmartTableControlId"),Ep=class Ep{};o(Ep,"QuickVariantSelectionOP"),h([y({manifest:{path:o((t,n,i)=>yo(t,n,i)+Er.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Ep.prototype,"showCounts",2),h([y({manifest:{path:o((t,n,i)=>yo(t,n,i)+Er.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Ep.prototype,"variants",2);var wA=Ep,Jh=class Jh{};o(Jh,"Fields4DialogOP"),h([y({manifest:{path:o((t,n,i)=>Wr(t,n,i)+"/createWithParameterDialog","path"),export:Eh}}),x({since:"1.77.0"})],Jh.prototype,"fields",2);var MA=Jh,Ai=class Ai{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(Ai,"CommonTableSettingsForSections"),h([y({manifest:{key:"createWithParameterDialog",path:Wr,import:bh}}),x({since:"1.77.0"})],Ai.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:Kc,controlType:o(()=>Er.ControlType.SmartTable,"controlType")}}),x({since:"1.28.0"})],Ai.prototype,"editable",2),h([y({flex:{controlId:Kc,controlType:o(()=>Er.ControlType.SmartTable,"controlType")}}),x({since:"1.95.0"}),xe("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],Ai.prototype,"showPasteButton",2),h([y({manifest:{path:Wr}}),x({since:"1.54.0"})],Ai.prototype,"multiSelect",2),h([y({manifest:{path:Wr}}),x({since:"1.70.0"})],Ai.prototype,"selectAll",2),h([y({manifest:{path:Wr}}),x({since:"1.70.0"})],Ai.prototype,"selectionLimit",2),h([y({manifest:{path:yo}}),x({since:"1.63.0"})],Ai.prototype,"quickVariantSelection",2),h([y({flex:{controlId:Kc,controlType:o(()=>Er.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],Ai.prototype,"useExportToExcel",2),h([y({flex:{controlId:Kc,controlType:o(()=>Er.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],Ai.prototype,"exportType",2),h([y({manifest:{path:yo}}),x({since:"1.48.5"}),xe("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],Ai.prototype,"createMode",2),h([y({manifest:{path:yo}}),x({since:"1.61.0"})],Ai.prototype,"disableDefaultInlineCreateSort",2),h([y({manifest:{path:Wr}}),x({since:"1.78.0"})],Ai.prototype,"variantManagement",2),h([kt("toolBar")],Ai.prototype,"toolBar",2);var Xc=Ai,Ls=class Ls extends Xc{};o(Ls,"ObjectPageResponsiveTable"),h([y({manifest:{path:Wr}})],Ls.prototype,"type",2),h([y({flex:{controlId:Kc,controlType:o(()=>Er.ControlType.Table,"controlType")}})],Ls.prototype,"includeItemInSelection",2),h([y({flex:{controlId:Kc,controlType:o(()=>Er.ControlType.Table,"controlType")},generate:mt}),x({since:"1.52.0"})],Ls.prototype,"popinLayout",2),h([y({manifest:{path:Wr}}),x({since:"1.77.0"})],Ls.prototype,"inlineDelete",2),h([y({flex:{controlId:Kc,controlType:o(()=>Er.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],Ls.prototype,"growingThreshold",2);var Qc=Ls,Sp=class Sp extends Xc{};o(Sp,"ObjectPageAnalyticalTable"),h([y({manifest:{path:Wr}})],Sp.prototype,"type",2),h([y({manifest:{path:yo}}),x({since:"1.67.0"})],Sp.prototype,"condensedTableLayout",2);var kA=Sp,Ap=class Ap extends Xc{};o(Ap,"ObjectPageGridTable"),h([y({manifest:{path:Wr}})],Ap.prototype,"type",2),h([y({manifest:{path:yo}}),x({since:"1.67.0"})],Ap.prototype,"condensedTableLayout",2);var jA=Ap,Pp=class Pp extends Xc{};o(Pp,"ObjectPageTreeTable"),h([y({manifest:{path:Wr}})],Pp.prototype,"type",2),h([y({manifest:{path:yo}}),x({since:"1.67.0"})],Pp.prototype,"condensedTableLayout",2);var UA=Pp,Fa=class Fa{};o(Fa,"GlobalTableSettings"),h([y({manifest:{path:_c}}),x({since:"1.70.0"})],Fa.prototype,"selectAll",2),h([y({manifest:{path:_c}}),x({since:"1.78.0"})],Fa.prototype,"variantManagement",2),h([y({manifest:{path:_c}})],Fa.prototype,"type",2),h([y({manifest:{path:_c}}),x({since:"1.54.0"})],Fa.prototype,"multiSelect",2),h([y({manifest:{path:_c}}),x({since:"1.67.0"})],Fa.prototype,"condensedTableLayout",2),h([y({manifest:{path:_c}}),x({since:"1.77.0"})],Fa.prototype,"inlineDelete",2);var $A=Fa;var AV=Z(re());var iQ=o((e,t,n,i,r)=>{let{actionId:a}=Ji(n),s=zn(n[1],r);return`${e}${s}::action::${Yi(a).replace(":2f","::")}`},"getActionButtonId"),xp={controlId:iQ,controlType:o(()=>AV.ControlType.Button,"controlType")},Ns=class Ns{};o(Ns,"ObjectPageToolBarAction"),h([y({flex:xp,generate:mt})],Ns.prototype,"visible",2),h([y({flex:xp})],Ns.prototype,"tooltip",2),h([y({flex:xp})],Ns.prototype,"icon",2),h([y({flex:xp})],Ns.prototype,"activeIcon",2),h([y({flex:xp})],Ns.prototype,"type",2);var BA=Ns;var _i=Z(re());function GA(e,t,n,i){if(t.controlType===_i.ControlType.TableColumn||t.controlType===_i.ControlType.Button){let r=t.controlId.split("-"),a=r[r.length-1],s=t.controlType===_i.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",_i.VOCWITHCOLONS),f=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(f!=null&&f.startsWith("DataField")?f=f==null?void 0:f.replace("/",":2f"):f=f==null?void 0:f.replace("/","_"),f!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}o(GA,"addFlexChangeToConfigTableColumn");function Zh(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(_i.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}o(Zh,"addFlexChangeToConfigTable");function ey(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var p,d,m,v,E;let s=vr(a),l={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(d=s.content)!=null&&d.newBinding?s.content.newBinding:(m=s.content)==null?void 0:m.newValue,controlType:s.controlType,creation:s.creation},f;if(s.controlType===_i.ControlType.TableColumn)f=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let b=(!t.table.type||t.table.type===_i.v2.TableTypeV2.ResponsiveTable)&&!((v=l.controlId)!=null&&v.includes(_i.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(_i.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;f=(E=e.jsonSchema.definitions[`${b}<${r}>`])==null?void 0:E.properties[l.propertyId]}f&&GA(t.table,l,n,i)})}o(ey,"importFlexChangesOfColumn");function Fs(e){return e.replace("/","::")}o(Fs,"convertActionKey");function WA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(WA,"convertSelector");function rQ(e,t,n,i){var a,s,l,f;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((f=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:f.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}o(rQ,"addSmartFilterBarFlex");function oQ(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let a=Yi((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let f=a.split(":::"),p=f.find(v=>v.startsWith("sSemanticObject")),d=f.find(v=>v.startsWith("sAction")),m=d.split("sAction::")[1].replace(":2f","::");if(p){let v=`${p.split("::")[1]}::${m}`,E=`${f[0]}:::${p}:::${d}`;i.set(v,r),i.set(r,E)}else i.set(m,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(oQ,"filterActions");function aQ(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(aQ,"addColumnActionConfigPart");function sQ(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}o(sQ,"getActionId");function cQ(e,t,n,i,r){[{name:"HeaderActionStandard",configPart:e.header.actions,id:r},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:r},{name:"FooterAction",configPart:e.footer.actions,id:r&&r.includes("Determining")&&r.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:r},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:r},{name:"TableColumnAction",configPart:e.table.columns,id:r}].forEach(s=>{var f,p;let l=oQ(s.name,i);if(l.has(s.id)){let d=l.get(s.id),m=(f=d.split("<")[1])==null?void 0:f.split(">")[0];s.name==="TableColumnAction"&&aQ(s,e,m);let v=s.configPart[m];((p=i.definitions[d])==null?void 0:p.properties[t])&&v&&(v[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}o(cQ,"addActionFlex");function lQ(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=Mn(e[ut.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[ut.PropertyName.chart],t):e[ut.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(lQ,"addSmartChartFlex");function ty(e,t,n,i){var r,a;try{let s=vr(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(ut.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(ut.PageTypeV2.AnalyticalListPage))switch(s.controlId=WA(s.controlId),s.controlType){case ut.ControlType.SmartFilterBar:{rQ(e,l,s,n);break}case ut.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case ut.ControlType.Button:{let f=sQ(s);f&&cQ(e,l,s,n,f);break}case ut.ControlType.SmartChart:{lQ(e,l,s,n);break}default:break}}catch(s){oe(i,{severity:ut.LogSeverity.Error,message:Q.t("FLEXERROR")},...s)}}o(ty,"addFlex");function fQ(e,t){if(e==="quickVariantSelectionX"&&t[e])for(let n in t[e].variants){let i=t[e].variants[n];if(i.tableSettings){for(let r in i.tableSettings)i[r]=i.tableSettings[r];delete i.tableSettings}}}o(fQ,"adjustQuickVariantSelectionX");function kn(e,t,n,i,r,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let f in n.properties){let p=Mn(e,f);if(p!=null&&p.manifest){let d=p.manifest.path([i],t,a);s=Kn(t,d),Hl(p,s,f,e),Fm(l,s,d,r)}fQ(f,e)}}o(kn,"transferSettingsOfObject");function ny(e,t){var r,a,s,l,f,p,d,m,v;let n=e[ut.ManifestSection.generic].pages[t],i=ut.v2.TableTypeV2.ResponsiveTable;return(r=e[ut.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[ut.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[ut.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((d=(p=(f=n.component)==null?void 0:f.settings)==null?void 0:p.tableSettings)==null?void 0:d.type)||((m=n.component)==null?void 0:m.settings.tableType):((v=n.component)==null?void 0:v.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=ut.v2.TableTypeV2.AnalyticalTable),i}o(ny,"determineTableType");function PV(e,t,n,i,r,a,s){var l,f;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,d=JSON.parse(p.substr(1,p.length)),m=e.Text&&e.Text._attributes&&e.Text._attributes.text;m||(m=e.Label&&e.Label._attributes&&e.Label._attributes.text);let v={...(l=e._attributes)!=null&&l.id?{id:(f=e._attributes)==null?void 0:f.id}:{},...m?{text:m}:{},...d,...d.columnKey?{columnKey:d.columnKey}:{},...d.columnIndex?{columnIndex:Number(d.columnIndex)}:{},...d.leadingProperty?{leadingProperty:d.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(v.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(v)}}o(PV,"evaluateFragmentColumn");function uQ(e,t,n,i){let r;if(e===ut.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,f]=a.split("|");s===ut.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&f===i&&(r=t[a].fragmentName)}return r}o(uQ,"determineCellsFragmentName");function pQ(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,xV.xml2json)(e[0].fileContent,{compact:!0}))[Ko];try{let d=tp(p);if(d)if((l=t[ut.PropertyName.table])!=null&&l.columns||(t[ut.PropertyName.table].columns={}),Array.isArray(d))for(let m of d)PV(m,n,i,r,t,a,s);else PV(d,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(pQ,"analyzeFilteredFragments");function dQ(e,t,n,i,r){var a;for(let s of Object.keys(e)){let l=s.split("|"),[f,p]=l,d=l[2];if(f&&p===t){let m=e[s].type?e[s].type.toLowerCase():"xml",v=e[s].fragmentName;if(!v)continue;let E=uQ(f,e,p,d),b=v.split(".");v=b[b.length-1]+ut.FRAGMENTNAMEPART+m;let I=i.fragments.filter(N=>N.dataSourceUri.endsWith(v));try{pQ(I,n,e,s,d,f,E)}catch(N){i.logger.error(N.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(N=>{ey(i,n,N.id,N,r)})}}}o(dQ,"processViewExtensions");function uf(e,t,n,i,r,a="LineItems"){var s,l,f;if(t.fragments&&(f=(l=(s=t.manifest[ut.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&f["sap.ui.viewExtensions"]){let p=ut.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),d=t.manifest[ut.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!d)return;let m=r&&r.target?r.target:n.entitySet;dQ(d,m,e,t,a)}}o(uf,"addFragments");function iy(e,t,n){if(e.header={actions:{}},n[ut.DefinitionName.HeaderActionsStandard]){let i=n[ut.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(ut.PageTypeV2.ListReport,r,{})}}o(iy,"importHeaderActions");var qo=Z(re());var Cp="sap.suite.ui.generic.template.ListReport";var CV="sap.suite.ui.generic.template.ListReport.view.ListReport";var qc=Z(re());var IV=Z(re());function Ds(e,t=[]){return e.concat(["component","settings"]).concat(t)}o(Ds,"getManifestPathToPageSettings");function Eo(e,t,n){let i=e,r=t.every(function(a){return!i||typeof i!="object"||Array.isArray(i)&&typeof a!="number"?!1:(i=i[a],!0)})&&typeof i=="object"&&i!==null;return{hasPath:r,value:r&&n?i[n]:void 0,parent:r?i:void 0}}o(Eo,"getManifestPropertyByPath");function Da(e){return e!==null&&typeof e=="object"}o(Da,"isDefinition");function ry(e,t,n,i,r,a,s){let l=n[IV.SchemaTag.conversionExit],f=l==null?void 0:l.name,p=t?t(f):void 0;if(!p)return i;let d=l.params;return e?p.appToConfig(i,d,r??[],n,s):p.configToApp(i,d,r??[],n,a)}o(ry,"executeConversionExit");function _s(e,t,n,i="string",r=!1){let a;if(e===void 0)a=r;else if(e===null||typeof e!="object")a=!0;else{let s=e[t];s===void 0?a=r:a=typeof s!==i||s===null&&r}return a&&oe(n,{severity:qc.LogSeverity.Error,message:Q.t("TYPEERROR",{propertyName:t,expectedType:i})}),a}o(_s,"hasPropertyTypeError");var OV=Symbol("Property is suppressed without explanation");function gQ(e,t,n,i){delete t.element.$ref,n===void 0||e===OV?t.element[qc.SchemaTag.hidden]=!0:(typeof n=="object"&&(t.element.type="object"),t.element[qc.SchemaTag.messages]=[{text:e,deletable:!0,type:qc.PropertyMessageType.Warning}]),t.manifestPath=i}o(gQ,"handleDisallowedProperty");function RV(e,t,n,i,r){return{manifest:{},processingRuleAdapter:o(function(a,s,l){let{manifestPath:f,disallowedReason:p}=t(a.element,s,l);if(p===OV){delete a.element;return}let{value:d,parent:m}=Eo(l.manifest,f,e);if(p){gQ(p,a,d,f);return}if((r?_s(m,e,l.logger,r):!1)&&(r==="object"||typeof d=="object")){delete a.element;return}n&&n(a.element,s,l,d),a.manifestPath=f,i&&(a.referenceAdaptation=i(s,l))},"processingRuleAdapter")}}o(RV,"getSyncRuleForManifestProperty");var oy={manifest:{},processingRuleAdapter(e,t){e.manifestPath=Ds(t.pageInfo.pagePath)}};var jt=Z(re());function Yc(e,t,n){var r;let i;for(let a in e){let s=e[a];if(Ta((r=s.component)==null?void 0:r.name)===jt.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=Yc(s.pages,t,n),i))return n.unshift(a),i}}o(Yc,"findObjectPageV2");function pf(e,t){var n;for(let i in e){let r=e[i];if(Ta((n=r.component)==null?void 0:n.name)===jt.PageTypeV2.ListReport)return t.push(i),r}}o(pf,"findListReportPageV2");function df(e){if(!e.manifest[jt.ManifestSection.generic]){oe(e.logger,{severity:jt.LogSeverity.Error,message:Q.t("NOFE"),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}});return}let t=e.manifest[jt.ManifestSection.generic].pages;if(!t){oe(e.logger,{severity:jt.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}});return}return t}o(df,"getV2Pages");function gf(e,t,n){var i;if(!e){oe(t,{severity:jt.LogSeverity.Error,message:Q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;oe(t,{severity:jt.LogSeverity.Error,message:Q.t("NOENTITYSET",{pageName:r}),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}})}}o(gf,"checkV2Page");function mf(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),Ta((i=a.component)==null?void 0:i.name)===jt.PageTypeV2.AnalyticalListPage)return a}oe(n,{severity:jt.LogSeverity.Error,message:Q.t("NOALP"),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}})}o(mf,"findAnalyticalListPage");function KA(e,t){let n=e.split("|");return jt.v2.SectionPosition[n[0]]&&n[1]===t}o(KA,"isAssociatedCustomSection");function LV(e,t){let n=Kn(e,`sap.ui5/extends/extensions/${jt.v2.SAPUI5_VIEW_EXTENSION}/${jt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)KA(r,t)&&(i[r]=n[r]);return i}o(LV,"findCustomSectionExtensions");function mQ(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}o(mQ,"removeEmptySettingsOfFooter");function hQ(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let r in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[r]).length===0&&delete e.filterBar.selectionFields[r];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}o(hQ,"removeEmptySettingsOfFilterBar");function yQ(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}o(yQ,"removeEmptySettingsOfToolBar");function ay(e){yQ(e),hQ(e),mQ(e)}o(ay,"removeEmptySettings");var Qt=Z(re());var FV=Z(re());var XA={};yc(XA,{ACTION_GROUPS_ARENT_SUPPORTED:()=>s7,ANNOERR:()=>MQ,ANNOTATIONFILE:()=>kQ,COMPONENTNOTDEFINED:()=>jQ,CONTEXTPATHCOULDNOTBERESOLVED:()=>DQ,ENTITYSETNOTFOUND:()=>FQ,FLEXERROR:()=>qQ,INCONSISTENTSCHEMA:()=>r7,INVALIDANCHOR:()=>YQ,INVALIDEXTENSION:()=>zQ,INVALIDTARGETDEFINITION:()=>ZQ,MACROS_ANNOTATION_ERROR:()=>n7,NOALP:()=>VQ,NOANNOTATIONFORPATH:()=>LQ,NOBASEPATH:()=>bQ,NOCHARTS:()=>HQ,NODATEFIELD:()=>a7,NOENTITYSET:()=>xQ,NOENTITYTYPE4SET:()=>CQ,NOFE:()=>SQ,NOFRAGMENT:()=>JQ,NOGENERICSCHEMA:()=>AQ,NOID4SECTION:()=>e7,NOLINEITEMANDCHARTS:()=>GQ,NOLINEITEMFORPATH:()=>NQ,NOLINEITEMS:()=>BQ,NOLR:()=>_Q,NOPAGEFORENTITYSET:()=>PQ,NOPAGES:()=>EQ,NOPRESENTATIONVARIANT:()=>IQ,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>OQ,NOPRESENTATIONVARIANTFORSPV:()=>RQ,NOROUTING:()=>UQ,NOROUTINGID:()=>QQ,NOTARGET:()=>XQ,NOTARGETS:()=>KQ,NOTEMPLATE:()=>wQ,NOUIANNOTATIONS:()=>$Q,NOVISUALIZATIONS:()=>WQ,TYPEERROR:()=>i7,UNEXISTING_ANNOTATION_PATH:()=>o7,UNKNOWNMINUI5VERSION:()=>vQ,WRONGMINUI5VERSION:()=>TQ,XMLPARSEFAILURE:()=>t7,default:()=>c7});var TQ="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",vQ="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",bQ="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",EQ="No pages found in manifest for app with id '{{- appId}}'",SQ="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",AQ="No generic schema found while generating page schema for {{- pageType}}",PQ="No page found in manifest for entitySet '{{- entitySet}}'",xQ="No entitySet defined for page '{{- pageName}}'",CQ="No entityType could be found for the given entity set '{{- entitySetName}}'",IQ="No PresentationVariant defined for '{{- key}}'",OQ="No PresentationVariant found for default SelectionPresentationVariant",RQ="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",LQ="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",NQ="No line item annotation found for path '{{- annotationPath}}'",FQ="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",DQ="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",_Q="No page found in manifest for list report",VQ="No page found in manifest for analytical list page",wQ="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",MQ="Error while parsing annotation files",kQ="Annotation file: '{{- file}}'",jQ="Component name is not defined for page '{{- pageName}}'",UQ="Incomplete manifest definition: no routing defined",$Q="No UI Annotation defined for entity type '{{- entityType }}'",BQ="UI.LineItem annotation has not been defined",HQ="UI.Chart annotation has not been defined",GQ="Neither UI.LineItem nor UI.Chart annotation has been defined",WQ="Empty Collection for Visualizations",KQ="Incomplete manifest definition: no targets defined",XQ="Invalid reference: annotation target '{{- target}}' not found",QQ="No page found in manifest for routingId '{{- routingId}}'",qQ="Error while parsing flex change",YQ="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",zQ="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",JQ="fragmentName is undefined for columnKey '{{- columnKey}}'",ZQ="Invalid routing target definition in manifest: '{{- target}}'",e7="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",t7="Parsing of XML file failed with error - {{- error}}",n7="Error during resolving annotation for '{{- control}}'",i7="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",r7="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",o7="The annotation path doesn't exist.",a7="Date setting will not be used since filter bar does not contain any date fields.",s7="Action groups aren't supported in the version you're using. Please update to SAPUI5 1.132 or higher.",c7={WRONGMINUI5VERSION:TQ,UNKNOWNMINUI5VERSION:vQ,NOBASEPATH:bQ,NOPAGES:EQ,NOFE:SQ,NOGENERICSCHEMA:AQ,NOPAGEFORENTITYSET:PQ,NOENTITYSET:xQ,NOENTITYTYPE4SET:CQ,NOPRESENTATIONVARIANT:IQ,NOPRESENTATIONVARIANTFORDEFAULTSPV:OQ,NOPRESENTATIONVARIANTFORSPV:RQ,NOANNOTATIONFORPATH:LQ,NOLINEITEMFORPATH:NQ,ENTITYSETNOTFOUND:FQ,CONTEXTPATHCOULDNOTBERESOLVED:DQ,NOLR:_Q,NOALP:VQ,NOTEMPLATE:wQ,ANNOERR:MQ,ANNOTATIONFILE:kQ,COMPONENTNOTDEFINED:jQ,NOROUTING:UQ,NOUIANNOTATIONS:$Q,NOLINEITEMS:BQ,NOCHARTS:HQ,NOLINEITEMANDCHARTS:GQ,NOVISUALIZATIONS:WQ,NOTARGETS:KQ,NOTARGET:XQ,NOROUTINGID:QQ,FLEXERROR:qQ,INVALIDANCHOR:YQ,INVALIDEXTENSION:zQ,NOFRAGMENT:JQ,INVALIDTARGETDEFINITION:ZQ,NOID4SECTION:e7,XMLPARSEFAILURE:t7,MACROS_ANNOTATION_ERROR:n7,TYPEERROR:i7,INCONSISTENTSCHEMA:r7,UNEXISTING_ANNOTATION_PATH:o7,NODATEFIELD:a7,ACTION_GROUPS_ARENT_SUPPORTED:s7};function NV(e){e.addResourceBundle(e.language,"translation",XA)}o(NV,"initI18n");function Xt(e="en"){Q.init({resources:{en:{translation:FV.default}},lng:e,fallbackLng:"en",joinArrays:`
292
+ </core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var uh=require("path");var Ko="core:FragmentDefinition",fh="sap.ui.table",OS=new Map([[Et.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Et.ViewTemplateType.TreeTableColumnsExtension,{namespace:fh,name:"Column"}],[Et.ViewTemplateType.GridTableColumnsExtension,{namespace:fh,name:"Column"}],[Et.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:fh,name:"AnalyticalColumn"}]]),x3=new Map([[Et.v2.FE_TEMPLATE_V2_LIST_REPORT,Et.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Et.v2.FE_TEMPLATE_V2_ALP,Et.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Et.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Et.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),u1={type:"element",name:"Text",attributes:{text:"Placeholder"}},C3=JSON.stringify(u1);function I3(e,t){var i;let n=t?(i=e==null?void 0:e[Ko])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let r=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=r.get(n[a]);r.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),r}else throw new Error("Invalid fragment, please check content")}o(I3,"getFragmentNamespaces");function f1(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(f1,"getTagName");function ph(e,t,n=e){let i=I3(n,!!(t||n!==e));if(t){let r=OS.get(t);return f1(r,i.get(r.namespace))}else{let r=OS.keys();for(let a of r){let s=OS.get(a),l=i?f1(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(ph,"getTagNameFromFragmentJSON");function tp(e,t=e){let n=ph(e,void 0,t);return e[n]}o(tp,"getRootCustomColumnFromFragmentJSON");function O3(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let a=e[t][r];!n.includes(r)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${a.toString()}"`)}return i+="}",i}o(O3,"addP13nData");function p1(e,t){var l,f,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let r=i["core:CustomData"]._attributes.value,a=JSON.parse(r.substr(1,r.length)),s=t.findIndex(d=>d.columnKey===a.columnKey);return s<0?!1:(n=!0,r=O3(t,s),i["core:CustomData"]._attributes.value=r,!e.Text&&!e.Label&&((l=t[s])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(f=t[s])==null?void 0:f.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(p=t[s])==null?void 0:p.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}o(p1,"handleFragmentColumn");function R3(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+Et.FRAGMENTNAMEPART+a;for(let f of t){let p=f.dataSourceUri.split(uh.sep);if(p[p.length-1]===l){let d=JSON.parse((0,vo.xml2json)(f.fileContent,{compact:!0}));try{let m=ph(d[Ko]);m&&(delete d[Ko][m],f.fileContent=(0,vo.json2xml)(JSON.stringify(d),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${f.dataSourceUri}, please check content`)}break}}}o(R3,"deleteColumnsFromFragment");function d1(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===C3&&(e.splice(n,1),t-=1,t===0));n++);}o(d1,"deleteNumberOfCells");function L3(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+Et.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,vo.xml2json)(s.fileContent)),f=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");f&&d1(l.elements[0].elements,f.length),s.fileContent=(0,vo.json2xml)(JSON.stringify(l),{spaces:4});break}}o(L3,"deleteCellsFromFragment");function dh(e,t,n,i){if(i){R3(e,i,t,n);let r=t.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&L3(a,i,n)}}o(dh,"deleteColumnFromFragment");function N3(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let r=i;r<Object.keys(n).length;r++)t.elements[0].elements.push(u1)}o(N3,"addNewColumnsInFragment");function F3(e,t){let n=JSON.parse((0,vo.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)N3(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;d1(a,r)}e.fileContent=(0,vo.json2xml)(JSON.stringify(n),{spaces:4})}}o(F3,"updateNonEmptyCellsFragment");function D3(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(uh.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=Et.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=IS(n):F3(r,n);break}}return i}o(D3,"updateCellsFragment");function _3(e,t,n,i,r){var d;let a,s,l=t.manifest,f=Kn(l,e),p=f.type?f.type.toLowerCase():"xml";f.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){oe(r,{severity:Et.LogSeverity.Error,message:Q.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=Et.ChangeIndicator.Updated,f.fragmentName=m.fragmentName,f.className=m.className,a=((d=m.fragmentName)==null?void 0:d.replace(i,"<root>/webapp").replace(/[.]/g,uh.sep))+Et.FRAGMENTNAMEPART+p}if(e.indexOf(Et.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Et.ChangeIndicator.Updated;let m=e.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),v=Kn(l,m),E=n.reduce((b,I)=>I.cellsFragmentName?I:b);E&&E.cellsFragmentName?(v.fragmentName=s=E.cellsFragmentName,v.className=n[0].className,v.type=p.toUpperCase()):$_(l,m)}return{manifestSection:f,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(_3,"exportCustomColumnsToManifest");function V3(e,t,n,i,r){let a=xS(e,t);if(a){let s=JSON.parse((0,vo.xml2json)(a,{compact:!0})),l=tp(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(l))||n.push(l);else if(n){let f=[n];f.splice(r,0,l),n=f}else n=[l]}return n}o(V3,"insertNewColumnInFragment");function w3(e,t){let n=[];for(let i=0;i<e.length;i++)p1(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(w3,"processCustomColumnInArray");function M3(e,t,n){if(e){if(Array.isArray(e))w3(e,t);else if(!p1(e,t)){let r=ph(n[Ko]);r&&(delete n[Ko][r],e=void 0)}}return e}o(M3,"maintainExistingColumnInFragment");function k3(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=V3(a,i,n,r,s)}return n}o(k3,"insertNewColumnsInFragment");function j3(e,t,n,i,r){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=Et.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=CS(i,r);else{let f=JSON.parse((0,vo.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(f);l=tp(f[Ko]),l=M3(l,i,f),l=k3(i,n,l,r,f);let d=ph(f,r);f[Ko][d]=l;let m=JSON.stringify(f);m!==p&&(s.fileContent=(0,vo.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(j3,"updateColumnsInFragment");function RS(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:f,cellsFragmentName:p,fragmentType:d}=_3(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),v=l.fragmentName,E=v.substr(i.length+1),b=E.split(".");v=b[b.length-1]+Et.FRAGMENTNAMEPART+d;let N=p==null?void 0:p.split("."),j=N?N[N.length-1]:null,G=j?j+Et.FRAGMENTNAMEPART+d:null,$=j3(s,v,E,m,r),se=!1;if(p?se=D3(s,G,n):se=!0,!$){let ee={fileContent:CS(m,r),dataSourceUri:f,changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(ee)}if(!se){let ee={fileContent:IS(n),dataSourceUri:f.replace(v,G),changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(ee)}}o(RS,"exportCustomColumnsToFragment");var gh=o((e,t,n,i)=>{var f,p,d,m;if(!e)return;let r=x3.get((f=e.component)==null?void 0:f.name);if(!i){let v=(m=(d=(p=e.component)==null?void 0:p.settings)==null?void 0:d.tableSettings)==null?void 0:m.type;v||(v="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(v="AnalyticalTable"),i=v+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var li=Z(re());var LS="/multiEdit",wc=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+li.PropertyName.table:Jt(e,t),"getSmartTableControlId");function bh(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let r in t)n.fields.push(r);return n}o(bh,"importCreateParameters");function Eh(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(a=>r[a]=e[n][a]||{path:a}),e[n]=r}o(Eh,"exportCreateParametersFields");function U3(e,t){let n=e.variants||{},i=t.variants||{};Object.keys(n).filter(a=>!Object.keys(i).includes(a)).forEach(a=>{delete n[a]});for(let a in i){let s=i[a],l=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let f in s)l.indexOf(f)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[f]=s[f],delete s[f]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}o(U3,"exportVariants");function $3(e,t){t.variants&&(Object.keys(t.variants).length>0?U3(e,t):delete e.variants)}o($3,"exportQuickVariantSelectionX");function B3(e){var n,i;if(!e||!e.multiEdit)return;let t=JSON.parse(JSON.stringify(e.multiEdit));return t.ignoredFields=(i=(n=e.multiEdit)==null?void 0:n.ignoredFields)==null?void 0:i.split(","),t}o(B3,"importMultiEdit");var mh=class mh{};o(mh,"CreateWithFilters"),h([y({manifest:{path:o(t=>je(t)+"/createWithFilters","path")}})],mh.prototype,"strategy",2);var NS=mh,af=class af{};o(af,"MultiEdit"),h([y({manifest:{path:o(t=>ho(t)+LS,"path")}})],af.prototype,"enabled",2),h([y({manifest:{path:o(t=>ho(t)+LS,"path")}})],af.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ho(t)+LS,"path"),export:Am}})],af.prototype,"ignoredFields",2);var FS=af;function rp(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}o(rp,"importType");function lf(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(lf,"exportType");function ff(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}o(ff,"deleteType");var hh=class hh{};o(hh,"DataLoadSettings"),h([y({manifest:{path:o(t=>H_(t),"path")}}),x({since:"1.75.2"})],hh.prototype,"loadDataOnAppLaunch",2);var DS=hh,yh=class yh{};o(yh,"Fields4Dialog"),h([y({manifest:{path:o(t=>ho(t)+"/createWithParameterDialog","path"),export:Eh}}),x({since:"1.77.0"})],yh.prototype,"fields",2);var _S=yh,np=class np{};o(np,"QuickVariantSelection"),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],np.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],np.prototype,"variants",2);var VS=np,sf=class sf{};o(sf,"QuickVariantSelectionX"),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],sf.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],sf.prototype,"enableAutoBinding",2),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATHX,"path"),export:$3}}),x({since:"1.48.0"})],sf.prototype,"variants",2);var wS=sf,Si=class Si{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}},enableAutoBinding:{since:"1.40.0",deprecated:{since:"1.75.2",text:"Use tableSettings.loadDataOnAppLaunch instead"}}}),"getDeprecated")}};o(Si,"CommonTableSettings"),h([y({manifest:{key:"createWithParameterDialog",path:o(t=>ho(t),"path"),import:bh}}),x({since:"1.77.0"})],Si.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:Jt,controlType:o(()=>li.ControlType.SmartTable,"controlType")}}),x({since:"1.38.0"})],Si.prototype,"showTablePersonalisation",2),h([y({flex:{controlId:wc,controlType:o(()=>li.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],Si.prototype,"useExportToExcel",2),h([y({flex:{controlId:wc,controlType:o(()=>li.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],Si.prototype,"exportType",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],Si.prototype,"quickVariantSelection",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],Si.prototype,"quickVariantSelectionX",2),h([y({manifest:{path:o(t=>ho(t),"path")}}),x({since:"1.38.0"})],Si.prototype,"multiSelect",2),h([y({manifest:{path:o(t=>ho(t),"path")}}),x({since:"1.70.0"})],Si.prototype,"selectAll",2),h([y({manifest:{path:o(t=>ho(t),"path")}}),x({since:"1.70.0"})],Si.prototype,"selectionLimit",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.75.2"})],Si.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.42.0"})],Si.prototype,"condensedTableLayout",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.56.0"}),xe("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],Si.prototype,"enableTableFilterInPageVariant",2),h([kt("toolBar")],Si.prototype,"toolBar",2);var Ps=Si,Xo=class Xo extends Ps{};o(Xo,"ResponsiveTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:rp,export:lf,delete:ff}}),x({since:"1.50.0"})],Xo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],Xo.prototype,"createWithFilters",2),h([y({flex:{controlId:wc,controlType:o(()=>li.ControlType.Table,"controlType")},generate:Jn}),x({since:"1.52.0"})],Xo.prototype,"popinLayout",2),h([y({flex:{controlId:wc,controlType:o(()=>li.ControlType.Table,"controlType")}})],Xo.prototype,"includeItemInSelection",2),h([y({manifest:{path:o(t=>ho(t),"path")}}),x({since:"1.77.0"})],Xo.prototype,"inlineDelete",2),h([y({flex:{controlId:wc,controlType:o(()=>li.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],Xo.prototype,"growingThreshold",2),h([y({manifest:{path:o(t=>ho(t),"path"),import:B3}}),x({since:"1.98.0"})],Xo.prototype,"multiEdit",2);var Mc=Xo,Th=class Th extends Ps{};o(Th,"TreeTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:rp,export:lf,delete:ff}}),x({since:"1.50.0"})],Th.prototype,"type",2);var MS=Th,bo=class bo extends Ps{};o(bo,"AnalyticalTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:rp,export:lf,delete:ff}}),x({since:"1.50.0"})],bo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],bo.prototype,"qualifier",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"}),y({manifest:{path:o(t=>je(t),"path")}})],bo.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],bo.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],bo.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],bo.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.78.0"})],bo.prototype,"allFiltersAsInParameters",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],bo.prototype,"createWithFilters",2);var kS=bo,Qo=class Qo extends Ps{};o(Qo,"TableALP"),h([y({manifest:{path:o(t=>je(t),"path"),import:rp,export:lf,delete:ff}}),x({since:"1.50.0"})],Qo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Qo.prototype,"qualifier",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"}),y({manifest:{path:o(t=>je(t),"path")}})],Qo.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Qo.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],Qo.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Qo.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.78.0"})],Qo.prototype,"allFiltersAsInParameters",2);var cf=Qo,vh=class vh extends cf{};o(vh,"ALPResponsiveTable"),h([y({flex:{controlId:wc,controlType:o(()=>li.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],vh.prototype,"growingThreshold",2);var jS=vh,HS=class HS extends cf{};o(HS,"ALPGridTable");var US=HS,GS=class GS extends cf{};o(GS,"ALPAnalyticalTable");var $S=GS,ip=class ip extends Ps{};o(ip,"GridTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:rp,export:lf,delete:ff}}),x({since:"1.50.0"})],ip.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],ip.prototype,"createWithFilters",2);var BS=ip;var op=Z(re());var H3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${Yi(i).replace(":2f","::")}`},"getActionButtonId"),G3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}template::${i}`},"getStandardActionButtonId"),W3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}${Bm}${i}`},"getStandardFooterActionOPButtonId"),tA=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Ji(n);return`${e}action::${i}::${Yi(r)}`},"buildIntentBasedActionId"),K3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${Yi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),xs={controlId:H3,controlType:o(()=>op.ControlType.Button,"controlType")},ap={controlId:G3,controlType:o(()=>op.ControlType.Button,"controlType")},g1={controlId:W3,controlType:o(()=>op.ControlType.Button,"controlType")},Sh={controlId:K3,controlType:o(()=>op.ControlType.Button,"controlType")},kc=class kc{};o(kc,"Action"),h([y({flex:xs})],kc.prototype,"tooltip",2),h([y({flex:xs})],kc.prototype,"icon",2),h([y({flex:xs})],kc.prototype,"activeIcon",2),h([y({flex:xs})],kc.prototype,"type",2);var WS=kc,jc=class jc{};o(jc,"ToolBarAction"),h([y({flex:xs})],jc.prototype,"tooltip",2),h([y({flex:xs})],jc.prototype,"icon",2),h([y({flex:xs})],jc.prototype,"activeIcon",2),h([y({flex:xs})],jc.prototype,"type",2);var KS=jc,Uc=class Uc{};o(Uc,"FooterAction"),h([y({flex:Sh})],Uc.prototype,"tooltip",2),h([y({flex:Sh})],Uc.prototype,"icon",2),h([y({flex:Sh})],Uc.prototype,"activeIcon",2),h([y({flex:Sh})],Uc.prototype,"type",2);var XS=Uc,Ah=class Ah{};o(Ah,"Share"),h([y({flex:ap})],Ah.prototype,"visible",2);var QS=Ah,Ph=class Ph{};o(Ph,"ShareOP"),h([y({flex:ap})],Ph.prototype,"visible",2);var qS=Ph,xh=class xh{};o(xh,"UpAndDownNavigationOP"),h([y({flex:ap})],xh.prototype,"visible",2);var YS=xh,Ch=class Ch{};o(Ch,"SaveAndEditOP"),h([y({flex:g1,generate:mt})],Ch.prototype,"visible",2);var zS=Ch,Ih=class Ih{};o(Ih,"HeaderActionStandard"),h([y({flex:ap})],Ih.prototype,"visible",2);var JS=Ih,Oh=class Oh{};o(Oh,"ObjectPageHeaderActionStandard"),h([y({flex:ap})],Oh.prototype,"visible",2);var ZS=Oh,Rh=class Rh{};o(Rh,"ObjectPageFooterActionStandard"),h([y({flex:g1})],Rh.prototype,"visible",2);var eA=Rh;var lp=Z(re());var X3=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=Ji(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),Q3=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=Ji(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),q3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),nA={controlId:X3,controlType:o(()=>lp.ControlType.TableColumn,"controlType")},sp={controlId:q3,controlType:o(()=>lp.ControlType.Button,"controlType")},m1={...nA,controlId:Q3},Lh={...sp,controlId:tA},cp=class cp{};o(cp,"TableColumn"),h([y({flex:{controlId:fE,controlType:o(()=>lp.ControlType.TableColumn,"controlType")}})],cp.prototype,"width",2),h([y({flex:{controlId:fE,controlType:o(()=>lp.ControlType.TableColumn,"controlType")},generate:Jn})],cp.prototype,"hAlign",2);var iA=cp,Ra=class Ra{};o(Ra,"TableColumnAction"),h([y({flex:nA})],Ra.prototype,"width",2),h([y({flex:nA,generate:Jn})],Ra.prototype,"hAlign",2),h([y({flex:sp})],Ra.prototype,"tooltip",2),h([y({flex:sp})],Ra.prototype,"icon",2),h([y({flex:sp})],Ra.prototype,"activeIcon",2),h([y({flex:sp})],Ra.prototype,"type",2);var rA=Ra,La=class La{};o(La,"TableColumnActionIntentBased"),h([y({flex:m1})],La.prototype,"width",2),h([y({flex:m1,generate:Jn})],La.prototype,"hAlign",2),h([y({flex:Lh})],La.prototype,"tooltip",2),h([y({flex:Lh})],La.prototype,"icon",2),h([y({flex:Lh})],La.prototype,"activeIcon",2),h([y({flex:Lh})],La.prototype,"type",2);var oA=La,sA=class sA{};o(sA,"TableCustomColumn");var aA=sA;var lA=class lA{};o(lA,"ToolBar");var cA=lA;var $c=Z(re());var fp=o(e=>e+$c.PropertyName.chart,"getSmartChartControlId"),Cs=class Cs{};o(Cs,"ChartSettings"),h([y({flex:{controlId:fp,controlType:o(()=>$c.ControlType.SmartChart,"controlType")}})],Cs.prototype,"showLegendButton",2),h([y({flex:{controlId:fp,controlType:o(()=>$c.ControlType.SmartChart,"controlType")}})],Cs.prototype,"showDownloadButton",2),h([y({flex:{controlId:fp,controlType:o(()=>$c.ControlType.SmartChart,"controlType")}})],Cs.prototype,"showChartTypeSelectionButton",2),h([y({flex:{controlId:fp,controlType:o(()=>$c.ControlType.SmartChart,"controlType"),exportFlexValue:o((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:o((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue")}})],Cs.prototype,"ignoredChartTypes",2),h([y({manifest:{path:o(t=>B_(t),"path")}}),x({since:"1.81.0"})],Cs.prototype,"showDataLabel",2);var fA=Cs;var Na=class Na{};o(Na,"KPISettings"),h([y({manifest:{path:o((t,n,i)=>Dc(t,i),"path")}})],Na.prototype,"model",2),h([y({manifest:{path:o((t,n,i)=>Dc(t,i),"path")}})],Na.prototype,"entitySet",2),h([y({manifest:{path:o((t,n,i)=>Dc(t,i),"path")}})],Na.prototype,"qualifier",2),h([y({manifest:{path:o((t,n,i)=>Dc(t,i),"path")}})],Na.prototype,"filterable",2),h([y({manifest:{path:o((t,n,i)=>Dc(t,i),"path")}})],Na.prototype,"detailNavigation",2),h([y({manifest:{path:o((t,n,i)=>Dc(t,i),"path")}})],Na.prototype,"groupId",2);var uA=Na;var h1=Z(re());var Y3=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Jt(e,n)},"getAvatarControlId"),Is=class Is{};o(Is,"ObjectPageHeader"),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.46.0"})],Is.prototype,"showRelatedApps",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.46.0"})],Is.prototype,"editableHeaderContent",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.48.0"})],Is.prototype,"simpleHeaderFacets",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.48.0"}),xe("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],Is.prototype,"showHeaderAsCarouselOnDesktop",2),h([y({flex:{controlId:Y3,controlType:o(()=>h1.ControlType.Avatar,"controlType")},generate:mt})],Is.prototype,"displayShape",2);var pA=Is;var Nh=Z(re());var z3=o((e,t,n,i)=>{if(i()===Nh.ControlType.Button||i()===Nh.ControlType.HeaderAction){let r=n[2];return`${e}action::${Yi(r)}`}return Jt(e,t)},"getActionButtonId"),up={controlId:z3,controlType:o(()=>Nh.ControlType.HeaderAction,"controlType")},Os=class Os{};o(Os,"ObjectPageHeaderAction"),h([y({flex:up,generate:mt})],Os.prototype,"visible",2),h([y({flex:up})],Os.prototype,"tooltip",2),h([y({flex:up})],Os.prototype,"icon",2),h([y({flex:up})],Os.prototype,"activeIcon",2),h([y({flex:up})],Os.prototype,"type",2);var dA=Os;var pp=Z(re());var Mh="header::headerEditable::",J3=o((e,t,n,i,r)=>`${e}${Mh}${r}`,"getDataPointHeaderSectionId"),Z3=o((e,t,n,i,r)=>`${e}${Mh}${r}::ContactAddress`,"getAddressHeaderSectionId"),eQ=o((e,t,n,i,r)=>`${e}${Mh}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),tQ=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(pp.FACETTITLEPREFIX)?r.split(pp.FACETTITLEPREFIX)[1]:a;return`${e}${Mh}${s}::Form`},"getFormHeaderSectionId"),dp={controlType:o(()=>pp.ControlType.ObjectPageHeaderSection,"controlType")},Fh=class Fh{};o(Fh,"CommonHeaderFacetSettings"),h([y({flex:{...dp,controlId:o((()=>crypto.randomUUID()),"controlId")},generate:mt})],Fh.prototype,"visible",2);var Bc=Fh,Dh=class Dh extends Bc{};o(Dh,"ObjectPageHeaderSectionForm"),h([y({flex:{...dp,controlId:tQ}})],Dh.prototype,"visible",2);var gA=Dh,_h=class _h extends Bc{};o(_h,"ObjectPageHeaderSectionChart"),h([y({flex:{...dp,controlId:eQ}})],_h.prototype,"visible",2);var mA=_h,Vh=class Vh extends Bc{};o(Vh,"ObjectPageHeaderSectionDataPoint"),h([y({flex:{...dp,controlId:J3}})],Vh.prototype,"visible",2);var hA=Vh,wh=class wh extends Bc{};o(wh,"ObjectPageHeaderSectionAddress"),h([y({flex:{...dp,controlId:Z3}})],wh.prototype,"visible",2);var yA=wh,vA=class vA{};o(vA,"HeaderSections");var TA=vA;var EA=Z(re());var nQ=o((e,t,n,i)=>{if(i()===EA.ControlType.Button){let{actionId:r}=Ji(n);return`${e}action::${Yi(r)}::Determining`}return Jt(e,t)},"getFooterActionButtonId"),gp={controlId:nQ,controlType:o(()=>EA.ControlType.Button,"controlType")},Rs=class Rs{};o(Rs,"ObjectPageFooterAction"),h([y({flex:gp,generate:mt})],Rs.prototype,"visible",2),h([y({flex:gp})],Rs.prototype,"tooltip",2),h([y({flex:gp})],Rs.prototype,"icon",2),h([y({flex:gp})],Rs.prototype,"activeIcon",2),h([y({flex:gp})],Rs.prototype,"type",2);var bA=Rs;var mp=Z(re());var kh=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Jt(e,n)},"getControlId"),Hc=class Hc{};o(Hc,"ObjectPageLayout"),h([y({flex:{controlId:kh,controlType:o(()=>mp.ControlType.ObjectPageLayout,"controlType")},generate:mt})],Hc.prototype,"showHeaderContent",2),h([y({flex:{controlId:kh,controlType:o(()=>mp.ControlType.ObjectPageLayout,"controlType")}})],Hc.prototype,"showAnchorBar",2),h([y({flex:{controlId:kh,controlType:o(()=>mp.ControlType.ObjectPageLayout,"controlType")}})],Hc.prototype,"useIconTabBar",2),h([y({flex:{controlId:kh,controlType:o(()=>mp.ControlType.ObjectPageLayout,"controlType")}}),x({since:"1.34.0"})],Hc.prototype,"alwaysShowContentHeader",2);var SA=Hc;var y1=Z(re());var Gc=class Gc{};o(Gc,"BaseCustomSection"),h([y({manifest:{path:Oa,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),x({since:"1.52.0"})],Gc.prototype,"relatedFacet",2),h([y({manifest:{path:Oa,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),x({since:"1.52.0"})],Gc.prototype,"relativePosition",2),h([y({manifest:{path:o((t,n,i)=>Oa(t,{},i,y1.ManifestSection.generic),"path")}}),x({since:"1.52.0"})],Gc.prototype,"title",2),h([y({manifest:{path:Oa}}),x({since:"1.52.0"})],Gc.prototype,"className",2);var Tp=Gc,hp=class hp extends Tp{};o(hp,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:Oa}}),x({since:"1.52.0"})],hp.prototype,"fragmentName",2),h([y({manifest:{path:Oa}}),x({since:"1.52.0"})],hp.prototype,"type",2);var vp=hp,yp=class yp extends Tp{};o(yp,"ObjectPageCustomSectionView"),h([y({manifest:{path:Oa}}),x({since:"1.52.0"})],yp.prototype,"viewName",2),h([y({manifest:{path:Oa}}),x({since:"1.52.0"})],yp.prototype,"type",2);var bp=yp;var nr=Z(re());var T1=o((e,t,n,i,r)=>{let s=[zn(n[1],r),nr.DefinitionName.Table];return Jt(e,s)},"getTableSectionControlId"),v1=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"FormGroup"];return Jt(e,s)},"getFormSectionControlId"),b1=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"Chart"];return Jt(e,s)},"getChartSectionControlId"),Wc=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"Section"];return Jt(e,s)},"getSectionControlId"),E1=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"SubSection"];return Jt(e,s)},"getSubSectionControlId"),S1=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"ContactsList"];return Jt(e,s)},"getContactSubSectionControlId"),jh=class jh{};o(jh,"ObjectPageSectionV2"),h([y({flex:{controlId:Wc,controlType:o(()=>nr.ControlType.Section,"controlType")},generate:mt})],jh.prototype,"visible",2);var AA=jh,Uh=class Uh{};o(Uh,"ObjectPageSectionFormV2"),h([y({flex:{controlId:Wc,controlType:o(()=>nr.ControlType.Section,"controlType")},generate:mt})],Uh.prototype,"visible",2);var PA=Uh,$h=class $h{};o($h,"ObjectPageSectionChartV2"),h([y({flex:{controlId:Wc,controlType:o(()=>nr.ControlType.Section,"controlType")},generate:mt})],$h.prototype,"visible",2);var xA=$h,Bh=class Bh{};o(Bh,"ObjectPageSectionTableV2"),h([y({flex:{controlId:Wc,controlType:o(()=>nr.ControlType.Section,"controlType")},generate:mt})],Bh.prototype,"visible",2);var CA=Bh,Hh=class Hh{};o(Hh,"ObjectPageSectionAddressV2"),h([y({flex:{controlId:Wc,controlType:o(()=>nr.ControlType.Section,"controlType")},generate:mt})],Hh.prototype,"visible",2);var IA=Hh,Gh=class Gh{};o(Gh,"ObjectPageSectionContactV2"),h([y({flex:{controlId:Wc,controlType:o(()=>nr.ControlType.Section,"controlType")},generate:mt})],Gh.prototype,"visible",2);var OA=Gh,Wh=class Wh{};o(Wh,"ObjectPageSubSectionV2"),h([y({flex:{controlId:E1,controlType:o(()=>nr.ControlType.SubSection,"controlType")},generate:mt})],Wh.prototype,"visible",2);var RA=Wh,Kh=class Kh{};o(Kh,"ObjectPageSubSectionFormV2"),h([y({flex:{controlId:v1,controlType:o(()=>nr.ControlType.Group,"controlType")},generate:mt})],Kh.prototype,"visible",2);var LA=Kh,Xh=class Xh{};o(Xh,"ObjectPageSubSectionChartV2"),h([y({flex:{controlId:b1,controlType:o(()=>nr.ControlType.SmartChart,"controlType")},generate:mt})],Xh.prototype,"visible",2);var NA=Xh,Qh=class Qh{};o(Qh,"ObjectPageSubSectionContactV2"),h([y({flex:{controlId:S1,controlType:o(()=>nr.ControlType.SubSection,"controlType")},generate:mt})],Qh.prototype,"visible",2);var FA=Qh,qh=class qh{};o(qh,"ObjectPageSubSectionTableV2"),h([y({flex:{controlId:T1,controlType:o(()=>nr.ControlType.SmartTable,"controlType")},generate:mt})],qh.prototype,"visible",2);var DA=qh;var Yh=class Yh{};o(Yh,"ObjectPageChart"),h([y({manifest:{path:G_}}),x({since:"1.78.0"})],Yh.prototype,"variantManagement",2);var _A=Yh,zh=class zh{};o(zh,"GlobalChartSettings"),h([y({manifest:{path:o(t=>Di(t)+"/chartSettings","path")}}),x({since:"1.78.0"})],zh.prototype,"variantManagement",2);var VA=zh;var Er=Z(re());var Kc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=Er.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=zn(a[0],r),Jt(e,a)},"getSmartTableControlId"),Ep=class Ep{};o(Ep,"QuickVariantSelectionOP"),h([y({manifest:{path:o((t,n,i)=>yo(t,n,i)+Er.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Ep.prototype,"showCounts",2),h([y({manifest:{path:o((t,n,i)=>yo(t,n,i)+Er.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Ep.prototype,"variants",2);var wA=Ep,Jh=class Jh{};o(Jh,"Fields4DialogOP"),h([y({manifest:{path:o((t,n,i)=>Wr(t,n,i)+"/createWithParameterDialog","path"),export:Eh}}),x({since:"1.77.0"})],Jh.prototype,"fields",2);var MA=Jh,Ai=class Ai{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(Ai,"CommonTableSettingsForSections"),h([y({manifest:{key:"createWithParameterDialog",path:Wr,import:bh}}),x({since:"1.77.0"})],Ai.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:Kc,controlType:o(()=>Er.ControlType.SmartTable,"controlType")}}),x({since:"1.28.0"})],Ai.prototype,"editable",2),h([y({flex:{controlId:Kc,controlType:o(()=>Er.ControlType.SmartTable,"controlType")}}),x({since:"1.95.0"}),xe("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],Ai.prototype,"showPasteButton",2),h([y({manifest:{path:Wr}}),x({since:"1.54.0"})],Ai.prototype,"multiSelect",2),h([y({manifest:{path:Wr}}),x({since:"1.70.0"})],Ai.prototype,"selectAll",2),h([y({manifest:{path:Wr}}),x({since:"1.70.0"})],Ai.prototype,"selectionLimit",2),h([y({manifest:{path:yo}}),x({since:"1.63.0"})],Ai.prototype,"quickVariantSelection",2),h([y({flex:{controlId:Kc,controlType:o(()=>Er.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],Ai.prototype,"useExportToExcel",2),h([y({flex:{controlId:Kc,controlType:o(()=>Er.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],Ai.prototype,"exportType",2),h([y({manifest:{path:yo}}),x({since:"1.48.5"}),xe("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],Ai.prototype,"createMode",2),h([y({manifest:{path:yo}}),x({since:"1.61.0"})],Ai.prototype,"disableDefaultInlineCreateSort",2),h([y({manifest:{path:Wr}}),x({since:"1.78.0"})],Ai.prototype,"variantManagement",2),h([kt("toolBar")],Ai.prototype,"toolBar",2);var Xc=Ai,Ls=class Ls extends Xc{};o(Ls,"ObjectPageResponsiveTable"),h([y({manifest:{path:Wr}})],Ls.prototype,"type",2),h([y({flex:{controlId:Kc,controlType:o(()=>Er.ControlType.Table,"controlType")}})],Ls.prototype,"includeItemInSelection",2),h([y({flex:{controlId:Kc,controlType:o(()=>Er.ControlType.Table,"controlType")},generate:mt}),x({since:"1.52.0"})],Ls.prototype,"popinLayout",2),h([y({manifest:{path:Wr}}),x({since:"1.77.0"})],Ls.prototype,"inlineDelete",2),h([y({flex:{controlId:Kc,controlType:o(()=>Er.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],Ls.prototype,"growingThreshold",2);var Qc=Ls,Sp=class Sp extends Xc{};o(Sp,"ObjectPageAnalyticalTable"),h([y({manifest:{path:Wr}})],Sp.prototype,"type",2),h([y({manifest:{path:yo}}),x({since:"1.67.0"})],Sp.prototype,"condensedTableLayout",2);var kA=Sp,Ap=class Ap extends Xc{};o(Ap,"ObjectPageGridTable"),h([y({manifest:{path:Wr}})],Ap.prototype,"type",2),h([y({manifest:{path:yo}}),x({since:"1.67.0"})],Ap.prototype,"condensedTableLayout",2);var jA=Ap,Pp=class Pp extends Xc{};o(Pp,"ObjectPageTreeTable"),h([y({manifest:{path:Wr}})],Pp.prototype,"type",2),h([y({manifest:{path:yo}}),x({since:"1.67.0"})],Pp.prototype,"condensedTableLayout",2);var UA=Pp,Fa=class Fa{};o(Fa,"GlobalTableSettings"),h([y({manifest:{path:_c}}),x({since:"1.70.0"})],Fa.prototype,"selectAll",2),h([y({manifest:{path:_c}}),x({since:"1.78.0"})],Fa.prototype,"variantManagement",2),h([y({manifest:{path:_c}})],Fa.prototype,"type",2),h([y({manifest:{path:_c}}),x({since:"1.54.0"})],Fa.prototype,"multiSelect",2),h([y({manifest:{path:_c}}),x({since:"1.67.0"})],Fa.prototype,"condensedTableLayout",2),h([y({manifest:{path:_c}}),x({since:"1.77.0"})],Fa.prototype,"inlineDelete",2);var $A=Fa;var A1=Z(re());var iQ=o((e,t,n,i,r)=>{let{actionId:a}=Ji(n),s=zn(n[1],r);return`${e}${s}::action::${Yi(a).replace(":2f","::")}`},"getActionButtonId"),xp={controlId:iQ,controlType:o(()=>A1.ControlType.Button,"controlType")},Ns=class Ns{};o(Ns,"ObjectPageToolBarAction"),h([y({flex:xp,generate:mt})],Ns.prototype,"visible",2),h([y({flex:xp})],Ns.prototype,"tooltip",2),h([y({flex:xp})],Ns.prototype,"icon",2),h([y({flex:xp})],Ns.prototype,"activeIcon",2),h([y({flex:xp})],Ns.prototype,"type",2);var BA=Ns;var _i=Z(re());function GA(e,t,n,i){if(t.controlType===_i.ControlType.TableColumn||t.controlType===_i.ControlType.Button){let r=t.controlId.split("-"),a=r[r.length-1],s=t.controlType===_i.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",_i.VOCWITHCOLONS),f=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(f!=null&&f.startsWith("DataField")?f=f==null?void 0:f.replace("/",":2f"):f=f==null?void 0:f.replace("/","_"),f!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}o(GA,"addFlexChangeToConfigTableColumn");function Zh(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(_i.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}o(Zh,"addFlexChangeToConfigTable");function ey(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var p,d,m,v,E;let s=vr(a),l={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(d=s.content)!=null&&d.newBinding?s.content.newBinding:(m=s.content)==null?void 0:m.newValue,controlType:s.controlType,creation:s.creation},f;if(s.controlType===_i.ControlType.TableColumn)f=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let b=(!t.table.type||t.table.type===_i.v2.TableTypeV2.ResponsiveTable)&&!((v=l.controlId)!=null&&v.includes(_i.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(_i.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;f=(E=e.jsonSchema.definitions[`${b}<${r}>`])==null?void 0:E.properties[l.propertyId]}f&&GA(t.table,l,n,i)})}o(ey,"importFlexChangesOfColumn");function Fs(e){return e.replace("/","::")}o(Fs,"convertActionKey");function WA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(WA,"convertSelector");function rQ(e,t,n,i){var a,s,l,f;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((f=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:f.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}o(rQ,"addSmartFilterBarFlex");function oQ(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let a=Yi((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let f=a.split(":::"),p=f.find(v=>v.startsWith("sSemanticObject")),d=f.find(v=>v.startsWith("sAction")),m=d.split("sAction::")[1].replace(":2f","::");if(p){let v=`${p.split("::")[1]}::${m}`,E=`${f[0]}:::${p}:::${d}`;i.set(v,r),i.set(r,E)}else i.set(m,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(oQ,"filterActions");function aQ(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(aQ,"addColumnActionConfigPart");function sQ(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}o(sQ,"getActionId");function cQ(e,t,n,i,r){[{name:"HeaderActionStandard",configPart:e.header.actions,id:r},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:r},{name:"FooterAction",configPart:e.footer.actions,id:r&&r.includes("Determining")&&r.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:r},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:r},{name:"TableColumnAction",configPart:e.table.columns,id:r}].forEach(s=>{var f,p;let l=oQ(s.name,i);if(l.has(s.id)){let d=l.get(s.id),m=(f=d.split("<")[1])==null?void 0:f.split(">")[0];s.name==="TableColumnAction"&&aQ(s,e,m);let v=s.configPart[m];((p=i.definitions[d])==null?void 0:p.properties[t])&&v&&(v[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}o(cQ,"addActionFlex");function lQ(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=Mn(e[ut.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[ut.PropertyName.chart],t):e[ut.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(lQ,"addSmartChartFlex");function ty(e,t,n,i){var r,a;try{let s=vr(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(ut.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(ut.PageTypeV2.AnalyticalListPage))switch(s.controlId=WA(s.controlId),s.controlType){case ut.ControlType.SmartFilterBar:{rQ(e,l,s,n);break}case ut.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case ut.ControlType.Button:{let f=sQ(s);f&&cQ(e,l,s,n,f);break}case ut.ControlType.SmartChart:{lQ(e,l,s,n);break}default:break}}catch(s){oe(i,{severity:ut.LogSeverity.Error,message:Q.t("FLEXERROR")},...s)}}o(ty,"addFlex");function fQ(e,t){if(e==="quickVariantSelectionX"&&t[e])for(let n in t[e].variants){let i=t[e].variants[n];if(i.tableSettings){for(let r in i.tableSettings)i[r]=i.tableSettings[r];delete i.tableSettings}}}o(fQ,"adjustQuickVariantSelectionX");function kn(e,t,n,i,r,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let f in n.properties){let p=Mn(e,f);if(p!=null&&p.manifest){let d=p.manifest.path([i],t,a);s=Kn(t,d),Hl(p,s,f,e),Fm(l,s,d,r)}fQ(f,e)}}o(kn,"transferSettingsOfObject");function ny(e,t){var r,a,s,l,f,p,d,m,v;let n=e[ut.ManifestSection.generic].pages[t],i=ut.v2.TableTypeV2.ResponsiveTable;return(r=e[ut.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[ut.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[ut.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((d=(p=(f=n.component)==null?void 0:f.settings)==null?void 0:p.tableSettings)==null?void 0:d.type)||((m=n.component)==null?void 0:m.settings.tableType):((v=n.component)==null?void 0:v.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=ut.v2.TableTypeV2.AnalyticalTable),i}o(ny,"determineTableType");function P1(e,t,n,i,r,a,s){var l,f;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,d=JSON.parse(p.substr(1,p.length)),m=e.Text&&e.Text._attributes&&e.Text._attributes.text;m||(m=e.Label&&e.Label._attributes&&e.Label._attributes.text);let v={...(l=e._attributes)!=null&&l.id?{id:(f=e._attributes)==null?void 0:f.id}:{},...m?{text:m}:{},...d,...d.columnKey?{columnKey:d.columnKey}:{},...d.columnIndex?{columnIndex:Number(d.columnIndex)}:{},...d.leadingProperty?{leadingProperty:d.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(v.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(v)}}o(P1,"evaluateFragmentColumn");function uQ(e,t,n,i){let r;if(e===ut.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,f]=a.split("|");s===ut.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&f===i&&(r=t[a].fragmentName)}return r}o(uQ,"determineCellsFragmentName");function pQ(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,x1.xml2json)(e[0].fileContent,{compact:!0}))[Ko];try{let d=tp(p);if(d)if((l=t[ut.PropertyName.table])!=null&&l.columns||(t[ut.PropertyName.table].columns={}),Array.isArray(d))for(let m of d)P1(m,n,i,r,t,a,s);else P1(d,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(pQ,"analyzeFilteredFragments");function dQ(e,t,n,i,r){var a;for(let s of Object.keys(e)){let l=s.split("|"),[f,p]=l,d=l[2];if(f&&p===t){let m=e[s].type?e[s].type.toLowerCase():"xml",v=e[s].fragmentName;if(!v)continue;let E=uQ(f,e,p,d),b=v.split(".");v=b[b.length-1]+ut.FRAGMENTNAMEPART+m;let I=i.fragments.filter(N=>N.dataSourceUri.endsWith(v));try{pQ(I,n,e,s,d,f,E)}catch(N){i.logger.error(N.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(N=>{ey(i,n,N.id,N,r)})}}}o(dQ,"processViewExtensions");function uf(e,t,n,i,r,a="LineItems"){var s,l,f;if(t.fragments&&(f=(l=(s=t.manifest[ut.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&f["sap.ui.viewExtensions"]){let p=ut.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),d=t.manifest[ut.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!d)return;let m=r&&r.target?r.target:n.entitySet;dQ(d,m,e,t,a)}}o(uf,"addFragments");function iy(e,t,n){if(e.header={actions:{}},n[ut.DefinitionName.HeaderActionsStandard]){let i=n[ut.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(ut.PageTypeV2.ListReport,r,{})}}o(iy,"importHeaderActions");var qo=Z(re());var Cp="sap.suite.ui.generic.template.ListReport";var C1="sap.suite.ui.generic.template.ListReport.view.ListReport";var qc=Z(re());var I1=Z(re());function Ds(e,t=[]){return e.concat(["component","settings"]).concat(t)}o(Ds,"getManifestPathToPageSettings");function Eo(e,t,n){let i=e,r=t.every(function(a){return!i||typeof i!="object"||Array.isArray(i)&&typeof a!="number"?!1:(i=i[a],!0)})&&typeof i=="object"&&i!==null;return{hasPath:r,value:r&&n?i[n]:void 0,parent:r?i:void 0}}o(Eo,"getManifestPropertyByPath");function Da(e){return e!==null&&typeof e=="object"}o(Da,"isDefinition");function ry(e,t,n,i,r,a,s){let l=n[I1.SchemaTag.conversionExit],f=l==null?void 0:l.name,p=t?t(f):void 0;if(!p)return i;let d=l.params;return e?p.appToConfig(i,d,r??[],n,s):p.configToApp(i,d,r??[],n,a)}o(ry,"executeConversionExit");function _s(e,t,n,i="string",r=!1){let a;if(e===void 0)a=r;else if(e===null||typeof e!="object")a=!0;else{let s=e[t];s===void 0?a=r:a=typeof s!==i||s===null&&r}return a&&oe(n,{severity:qc.LogSeverity.Error,message:Q.t("TYPEERROR",{propertyName:t,expectedType:i})}),a}o(_s,"hasPropertyTypeError");var O1=Symbol("Property is suppressed without explanation");function gQ(e,t,n,i){delete t.element.$ref,n===void 0||e===O1?t.element[qc.SchemaTag.hidden]=!0:(typeof n=="object"&&(t.element.type="object"),t.element[qc.SchemaTag.messages]=[{text:e,deletable:!0,type:qc.PropertyMessageType.Warning}]),t.manifestPath=i}o(gQ,"handleDisallowedProperty");function R1(e,t,n,i,r){return{manifest:{},processingRuleAdapter:o(function(a,s,l){let{manifestPath:f,disallowedReason:p}=t(a.element,s,l);if(p===O1){delete a.element;return}let{value:d,parent:m}=Eo(l.manifest,f,e);if(p){gQ(p,a,d,f);return}if((r?_s(m,e,l.logger,r):!1)&&(r==="object"||typeof d=="object")){delete a.element;return}n&&n(a.element,s,l,d),a.manifestPath=f,i&&(a.referenceAdaptation=i(s,l))},"processingRuleAdapter")}}o(R1,"getSyncRuleForManifestProperty");var oy={manifest:{},processingRuleAdapter(e,t){e.manifestPath=Ds(t.pageInfo.pagePath)}};var jt=Z(re());function Yc(e,t,n){var r;let i;for(let a in e){let s=e[a];if(Ta((r=s.component)==null?void 0:r.name)===jt.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=Yc(s.pages,t,n),i))return n.unshift(a),i}}o(Yc,"findObjectPageV2");function pf(e,t){var n;for(let i in e){let r=e[i];if(Ta((n=r.component)==null?void 0:n.name)===jt.PageTypeV2.ListReport)return t.push(i),r}}o(pf,"findListReportPageV2");function df(e){if(!e.manifest[jt.ManifestSection.generic]){oe(e.logger,{severity:jt.LogSeverity.Error,message:Q.t("NOFE"),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}});return}let t=e.manifest[jt.ManifestSection.generic].pages;if(!t){oe(e.logger,{severity:jt.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}});return}return t}o(df,"getV2Pages");function gf(e,t,n){var i;if(!e){oe(t,{severity:jt.LogSeverity.Error,message:Q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;oe(t,{severity:jt.LogSeverity.Error,message:Q.t("NOENTITYSET",{pageName:r}),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}})}}o(gf,"checkV2Page");function mf(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),Ta((i=a.component)==null?void 0:i.name)===jt.PageTypeV2.AnalyticalListPage)return a}oe(n,{severity:jt.LogSeverity.Error,message:Q.t("NOALP"),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}})}o(mf,"findAnalyticalListPage");function KA(e,t){let n=e.split("|");return jt.v2.SectionPosition[n[0]]&&n[1]===t}o(KA,"isAssociatedCustomSection");function L1(e,t){let n=Kn(e,`sap.ui5/extends/extensions/${jt.v2.SAPUI5_VIEW_EXTENSION}/${jt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)KA(r,t)&&(i[r]=n[r]);return i}o(L1,"findCustomSectionExtensions");function mQ(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}o(mQ,"removeEmptySettingsOfFooter");function hQ(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let r in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[r]).length===0&&delete e.filterBar.selectionFields[r];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}o(hQ,"removeEmptySettingsOfFilterBar");function yQ(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}o(yQ,"removeEmptySettingsOfToolBar");function ay(e){yQ(e),hQ(e),mQ(e)}o(ay,"removeEmptySettings");var Qt=Z(re());var F1=Z(re());var XA={};yc(XA,{ACTION_GROUPS_ARENT_SUPPORTED:()=>s7,ANNOERR:()=>MQ,ANNOTATIONFILE:()=>kQ,COMPONENTNOTDEFINED:()=>jQ,CONTEXTPATHCOULDNOTBERESOLVED:()=>DQ,ENTITYSETNOTFOUND:()=>FQ,FLEXERROR:()=>qQ,INCONSISTENTSCHEMA:()=>r7,INVALIDANCHOR:()=>YQ,INVALIDEXTENSION:()=>zQ,INVALIDTARGETDEFINITION:()=>ZQ,MACROS_ANNOTATION_ERROR:()=>n7,NOALP:()=>VQ,NOANNOTATIONFORPATH:()=>LQ,NOBASEPATH:()=>bQ,NOCHARTS:()=>HQ,NODATEFIELD:()=>a7,NOENTITYSET:()=>xQ,NOENTITYTYPE4SET:()=>CQ,NOFE:()=>SQ,NOFRAGMENT:()=>JQ,NOGENERICSCHEMA:()=>AQ,NOID4SECTION:()=>e7,NOLINEITEMANDCHARTS:()=>GQ,NOLINEITEMFORPATH:()=>NQ,NOLINEITEMS:()=>BQ,NOLR:()=>_Q,NOPAGEFORENTITYSET:()=>PQ,NOPAGES:()=>EQ,NOPRESENTATIONVARIANT:()=>IQ,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>OQ,NOPRESENTATIONVARIANTFORSPV:()=>RQ,NOROUTING:()=>UQ,NOROUTINGID:()=>QQ,NOTARGET:()=>XQ,NOTARGETS:()=>KQ,NOTEMPLATE:()=>wQ,NOUIANNOTATIONS:()=>$Q,NOVISUALIZATIONS:()=>WQ,TYPEERROR:()=>i7,UNEXISTING_ANNOTATION_PATH:()=>o7,UNKNOWNMINUI5VERSION:()=>vQ,WRONGMINUI5VERSION:()=>TQ,XMLPARSEFAILURE:()=>t7,default:()=>c7});var TQ="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",vQ="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",bQ="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",EQ="No pages found in manifest for app with id '{{- appId}}'",SQ="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",AQ="No generic schema found while generating page schema for {{- pageType}}",PQ="No page found in manifest for entitySet '{{- entitySet}}'",xQ="No entitySet defined for page '{{- pageName}}'",CQ="No entityType could be found for the given entity set '{{- entitySetName}}'",IQ="No PresentationVariant defined for '{{- key}}'",OQ="No PresentationVariant found for default SelectionPresentationVariant",RQ="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",LQ="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",NQ="No line item annotation found for path '{{- annotationPath}}'",FQ="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",DQ="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",_Q="No page found in manifest for list report",VQ="No page found in manifest for analytical list page",wQ="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",MQ="Error while parsing annotation files",kQ="Annotation file: '{{- file}}'",jQ="Component name is not defined for page '{{- pageName}}'",UQ="Incomplete manifest definition: no routing defined",$Q="No UI Annotation defined for entity type '{{- entityType }}'",BQ="UI.LineItem annotation has not been defined",HQ="UI.Chart annotation has not been defined",GQ="Neither UI.LineItem nor UI.Chart annotation has been defined",WQ="Empty Collection for Visualizations",KQ="Incomplete manifest definition: no targets defined",XQ="Invalid reference: annotation target '{{- target}}' not found",QQ="No page found in manifest for routingId '{{- routingId}}'",qQ="Error while parsing flex change",YQ="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",zQ="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",JQ="fragmentName is undefined for columnKey '{{- columnKey}}'",ZQ="Invalid routing target definition in manifest: '{{- target}}'",e7="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",t7="Parsing of XML file failed with error - {{- error}}",n7="Error during resolving annotation for '{{- control}}'",i7="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",r7="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",o7="The annotation path doesn't exist.",a7="Date setting will not be used since filter bar does not contain any date fields.",s7="Action groups aren't supported in the version you're using. Please update to SAPUI5 1.132 or higher.",c7={WRONGMINUI5VERSION:TQ,UNKNOWNMINUI5VERSION:vQ,NOBASEPATH:bQ,NOPAGES:EQ,NOFE:SQ,NOGENERICSCHEMA:AQ,NOPAGEFORENTITYSET:PQ,NOENTITYSET:xQ,NOENTITYTYPE4SET:CQ,NOPRESENTATIONVARIANT:IQ,NOPRESENTATIONVARIANTFORDEFAULTSPV:OQ,NOPRESENTATIONVARIANTFORSPV:RQ,NOANNOTATIONFORPATH:LQ,NOLINEITEMFORPATH:NQ,ENTITYSETNOTFOUND:FQ,CONTEXTPATHCOULDNOTBERESOLVED:DQ,NOLR:_Q,NOALP:VQ,NOTEMPLATE:wQ,ANNOERR:MQ,ANNOTATIONFILE:kQ,COMPONENTNOTDEFINED:jQ,NOROUTING:UQ,NOUIANNOTATIONS:$Q,NOLINEITEMS:BQ,NOCHARTS:HQ,NOLINEITEMANDCHARTS:GQ,NOVISUALIZATIONS:WQ,NOTARGETS:KQ,NOTARGET:XQ,NOROUTINGID:QQ,FLEXERROR:qQ,INVALIDANCHOR:YQ,INVALIDEXTENSION:zQ,NOFRAGMENT:JQ,INVALIDTARGETDEFINITION:ZQ,NOID4SECTION:e7,XMLPARSEFAILURE:t7,MACROS_ANNOTATION_ERROR:n7,TYPEERROR:i7,INCONSISTENTSCHEMA:r7,UNEXISTING_ANNOTATION_PATH:o7,NODATEFIELD:a7,ACTION_GROUPS_ARENT_SUPPORTED:s7};function N1(e){e.addResourceBundle(e.language,"translation",XA)}o(N1,"initI18n");function Xt(e="en"){Q.init({resources:{en:{translation:F1.default}},lng:e,fallbackLng:"en",joinArrays:`
293
293
 
294
- `}),NV(Q)}o(Xt,"initI18n");var qA={};yc(qA,{AnalyticalListPage:()=>Xr,ListReport:()=>So,ObjectPage:()=>fi,OverviewPage:()=>Zt,exportFilterSettings:()=>VV,importDateSettingsOVP:()=>DV,importFilterSettings:()=>_V});var sy=Z(re());var Xr=class{};o(Xr,"AnalyticalListPage"),h([y({flex:{controlId:Om,controlType:o(()=>sy.ControlType.DynamicPage,"controlType")}})],Xr.prototype,"fitContent",2),h([kt("table")],Xr.prototype,"table",2),h([kt("template::SmartFilterBar")],Xr.prototype,"filterBar",2),h([kt("analyticalListPageChart")],Xr.prototype,"chart",2),h([kt("analyticalListFooter")],Xr.prototype,"footer",2),Xr=h([Zi({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:sy.v2.FE_TEMPLATE_V2_ALP})],Xr);var Ip=Z(re());var So=class{};o(So,"ListReport"),h([y({flex:{controlId:Om,controlType:o(()=>Ip.ControlType.DynamicPage,"controlType")}})],So.prototype,"fitContent",2),h([kt("listReportFilter")],So.prototype,"filterBar",2),h([kt("listReport")],So.prototype,"table",2),h([kt("listReportFooter")],So.prototype,"footer",2),So=h([Zi({id:Ip.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Ip.v2.FE_TEMPLATE_V2_LIST_REPORT})],So);var QA=Z(re());var fi=class{};o(fi,"ObjectPage"),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.52.0"})],fi.prototype,"showConfirmationOnDraftActivate",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.52.1"})],fi.prototype,"hideChevronForUnauthorizedExtNav",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.48.0"})],fi.prototype,"allowDeepLinking",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.52.0"})],fi.prototype,"navToListOnSave",2),h([kt("header")],fi.prototype,"header",2),h([kt("sections")],fi.prototype,"sections",2),h([kt("layout")],fi.prototype,"layout",2),h([y({manifest:{path:o(t=>nh(t),"path")}}),x({since:"1.77.0"})],fi.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([y({manifest:{path:o(t=>Di(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),x({since:"1.78.0"})],fi.prototype,"globalChartSettings",2),h([y({manifest:{path:o(t=>Di(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:Sc}}),x({since:"1.71.0"})],fi.prototype,"globalTableSettings",2),fi=h([Zi({id:QA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:QA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],fi);function l7(e,t){for(let n in e.dateSettings.fields){t.fields[n]=e.dateSettings.fields[n];let i=e.dateSettings.fields[n].selectedValues;typeof i=="string"&&(t.fields[n].selectedValues=i.split(","));for(let r in e.dateSettings.fields[n].filter){let a=e.dateSettings.fields[n].filter[r];t.fields[n].filter[r]=a,a.equals&&typeof a.equals=="string"&&(t.fields[n].filter[r].equals=a.equals.split(","))}}}o(l7,"importDateSettingsFieldsOVP");function DV(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),e.dateSettings.fields&&l7(e,t),t}o(DV,"importDateSettingsOVP");function _V(e){let t={};return t.dateSettings=DV(e.filterSettings),t}o(_V,"importFilterSettings");function f7(e,t,n){for(let i in e.filterSettings[t].fields){let r=e.filterSettings[t].fields[i];if(r.selectedValues&&(n.filterSettings[t].fields[i].selectedValues=r.selectedValues.join()),r.filter)for(let a in r.filter){let s=r.filter[a];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[a].equals=s.equals.join())}}}o(f7,"exportFilterFields");function VV(e,t){e.filterSettings||(e.filterSettings={});let n="dateSettings";t.filterSettings[n]===void 0?delete e.filterSettings[n]:(e.filterSettings[n]=JSON.parse(JSON.stringify(t.filterSettings[n])),t.filterSettings[n].selectedValues&&(e.filterSettings[n].selectedValues=t.filterSettings[n].selectedValues.join()),t.filterSettings[n].fields&&f7(t,n,e))}o(VV,"exportFilterSettings");var Zt=class{};o(Zt,"OverviewPage"),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"globalFilterModel",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"globalFilterEntityType",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"globalFilterEntitySet",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"showBasicSearch",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"disableErrorPage",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"smartVariantRequired",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"bHeaderExpanded",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"containerLayout",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"showDateInRelativeFormat",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"disableTableCardFlexibility",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"enableLiveFilter",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"enableLazyRendering",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"refreshStrategyOnAppRestore",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"considerAnalyticalParameters",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"refreshIntervalInMinutes",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"useDateRangeType",2),h([y({manifest:{path:o(()=>An(),"path"),import:_V,export:VV}}),x({since:"1.80.0"})],Zt.prototype,"filterSettings",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"resizableLayout",2),Zt=h([Zi({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Zt);var YA=class YA{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let a=this.controls[r]?this.controls[r]:this.controls[n];return a||(a=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};o(YA,"MetadataFactory");var hf=YA;var ei=Z(re());var u7={},p7={Table:Mc,ResponsiveTableWithMultiSelect:Mc,ResponsiveTableWithInlineDelete:Mc},d7={[ei.v2.CardSettingsType.listCardSettings]:tf,[ei.v2.CardSettingsType.listCardSettingsv4]:tf,[ei.v2.CardSettingsType.analyticalCardSettings]:nf,[ei.v2.CardSettingsType.analyticalCardSettingsv4]:nf,[ei.v2.CardSettingsType.stackCardSettings]:Qu,[ei.v2.CardSettingsType.linkListCardSettings]:qu,[ei.v2.CardSettingsType.tableCardSettings]:rf,[ei.v2.CardSettingsType.tableCardSettingsv4]:rf},g7={[ei.SAPUI5_VIEW_CLASS]:bp,[ei.SAPUI5_FRAGMENT_CLASS]:vp,Table:Qc,ObjectPageResponsiveTableWithMultiSelect:Qc,ObjectPageResponsiveTableWithInlineDelete:Qc},m7={[ei.PageTypeV2.AnalyticalListPage]:u7,[ei.PageTypeV2.ListReport]:p7,[ei.PageTypeV2.ObjectPage]:g7,[ei.PageTypeV2.OverviewPage]:d7},zA=class zA extends hf{constructor(){super(HA,qA,m7)}};o(zA,"MetadataInstanceFactoryV2");var Vi=zA;function h7(e,t,n,i,r){if(e.filterBar=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar),kn(e.filterBar,n.manifest,i[Qt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(Qt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),kn(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(h7,"importFilterBar");function JA(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,d,m;let l=vr(s),f={controlId:l.controlId,propertyId:(p=l.content)==null?void 0:p.property,newValue:(d=l.content)!=null&&d.newBinding?l.content.newBinding:(m=l.content)==null?void 0:m.newValue,controlType:l.controlType,creation:l.creation};Zh(n.table,f,t)});let i=t.properties.columns.$ref.split("/").pop(),r=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in r)s!=="custom"&&ey(e,n,s)}o(JA,"importFlexChangesOfTableAndColumns");function y7(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[Um]&&t[$m]&&(a=JSON.parse(JSON.stringify(t[Um])),a.properties={...a.properties,...t[$m].properties}),kn(n.table,i.manifest,a,r,i.logger),JA(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&oe(i.logger,{severity:Qt.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}o(y7,"importTable");function T7(e,t,n,i){let r=e.jsonSchema.definitions,a=ny(e.manifest,i);if(t.table=n.createInstance(Qt.PageTypeV2.ListReport,a,t.table),iy(t,n,r),y7(a,r,t,e,i),t.table.toolBar=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ToolBar,{actions:{}}),kn(t.table.toolBar,e.manifest,r[Qt.DefinitionName.ToolBarLR],i,e.logger),r[Qt.DefinitionName.ActionsLR])for(let l in r[Qt.DefinitionName.ActionsLR].properties){let f=Fs(l);t.table.toolBar.actions[f]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.Action),kn(t.table.toolBar.actions[f],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}h7(t,n,e,r,i),t.footer={actions:{}};let s=r[Qt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let f=Fs(l);t.footer.actions[f]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.FooterAction),kn(t.footer.actions[f],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}}o(T7,"addSettings");function wV(e){if(Xt(),!df(e))return;let n=new Vi,i=n.createPageInstance(Qt.PageTypeV2.ListReport),r=[],a=pf(e.manifest[Qt.ManifestSection.generic].pages,r);if(gf(a,e.logger,a==null?void 0:a.entitySet),!!a)return T7(e,i,n,r[0]),e.flex.forEach(s=>{vr(s)&&ty(i,s,e.jsonSchema,e.logger)}),uf(i,e,a,Qt.PageTypeV2.ListReport),ay(i),i}o(wV,"createListReportConfig");var ve=Z(re());var Op=require("@sap-ux/vocabularies-types/vocabularies/UI");var b7=[ve.ControlType.Avatar,ve.ControlType.ObjectPageLayout,ve.ControlType.DynamicPage];function E7(e,t){let n=e[0].split("--"),i=n[n.length-1];if(e[0].indexOf("::action::")>=0||e[0].startsWith("action::"))t=n[0].split("::action::")[0]||n[0].split(`${Op.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${ve.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Op.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let r=i.split("::");r.length>1?t=r[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}o(E7,"getSingleSelectorIdPart");function S7(e){let t,n=e.split(":::");if(n.length===1)t=E7(n,t);else if(e.indexOf("sSmartTableId")>=0){for(let i of n)if(i.startsWith("sSmartTableId")){t=i.split("sSmartTableId::")[1].split("::Table")[0].split("/responsiveTable")[0].replace(`::${Op.UIAnnotationTerms.LineItem}`,`/@${Op.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(S7,"getFacetID");function A7(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,f,p;try{let d=vr(s),m=d&&((l=d.controlId)==null?void 0:l.split("--"))||[];if(d&&((f=m[0])!=null&&f.includes(ve.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let v=m[1].replace(/:3a:3a/g,"::");r.exec(v)!==null&&(v=v.split("template:::TableColumn:::")[1]);let E=S7(v);v=WA(v).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${v}::${d.content.property}`]={controlId:v,propertyId:d.content.property,facetId:E,newValue:d.content.newBinding!==void 0?d.content.newBinding:d.content.newValue,controlType:d.controlType,creation:d.creation}}}catch(d){oe(n,{severity:ve.LogSeverity.Error,message:Q.t("FLEXERROR")},...d)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,f])=>(s[l]=f,s),{})}o(A7,"prepareFlexChanges");var P7=o(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(U,"");if((i=(n=e.properties)==null?void 0:n.subsections)!=null&&i.$ref)return t=e.properties.subsections.$ref,t=t.includes("<")?t.split("<")[0]:t,t.replace(U,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function x7(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&GA(i,t,r)}o(x7,"addFlexChangeToColumns");function MV(e,t,n,i,r,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,ve.VOCWITHSLASH)];for(let f in e){let p=e[f],d=p.propertyId===t,m=t==="columns"&&p.controlType===ve.ControlType.TableColumn;(d||m)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?x7(a,p,r.properties,n):Zh(n,p,r))}}o(MV,"importFlexChangesOfTable");function C7(e,t){return e.facetId==="template"&&t}o(C7,"isStandardActionFlexChange");var kV=o((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),r=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,r);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function I7(e,t,n,i,r,a){var I;let s=!1,l=!1;a?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let f=t.controlId.split("::"),p=t.controlType===ve.ControlType.GroupElement&&l,d=((I=t.facetId)==null?void 0:I.includes(ve.ACTIONTITLEPREFIX))&&!r&&s,m=r&&kV(f,r.split("::"))&&s,v=e.title&&kV(f,e.title.split("::"),!0),E=!t.facetId&&b7.includes(t.controlType),b=C7(t,l);return p||d||m||v||E||b}o(I7,"matchSelector");function O7(e,t,n,i,r,a){var f;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let p in n){let d=n[p];if(d.propertyId!==i||d.controlType!==((f=e.properties[d.propertyId])==null?void 0:f[ve.SchemaTag.controlType]))continue;I7(e,d,s,l,r,a)&&(t[i]=d.newValue)}}o(O7,"importFlexChanges");function R7(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(oe(n.logger,{severity:ve.LogSeverity.Warning,message:Bl(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(R7,"checkDeprecatedProperties");function L7(e,t,n,i,r,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,f,p;s!=null&&s.title?(f=e.manifest.path(t,{},s.title),p=Kn(n.manifest,f),Object.values(p).length===0&&(f=e.manifest.path(t,{},l),p=Kn(n.manifest,f))):(f=e.manifest.path(t,{},l),p=Kn(n.manifest,f));let d=e.manifest.import;if(d&&typeof d=="function"){let m=d(p,s==null?void 0:s.id);m!==void 0&&(i[r]=m)}else{let m=e.manifest.key||r;m in p&&(i[r]=p[m])}return R7(p,a,n,f),p}o(L7,"importManifestSetting");function wi(e,t,n,i,r,a){var f,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let d in n.properties||n){let m=Mn(t,d);if(d==="columns"||m!=null&&m.flex)if((f=r==null?void 0:r.type)!=null&&f.startsWith("ObjectPageSectionTableV2")||(p=r==null?void 0:r.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(d==="columns"){let v=n.properties[d].$ref.split(U)[1],E=e.jsonSchema.definitions[v];MV(i.flexChanges,d,t,r,E,l)}else MV(i.flexChanges,d,t,r,n);else{let v=(r==null?void 0:r.title)||(r==null?void 0:r.id);O7(n,t,i.flexChanges,d,v,a)}else m!=null&&m.manifest&&L7(m,i.pageKeys,e,t,d,s,r)}}o(wi,"transferSettingsAndFlexChanges");function UV(e,t,n,i){let r=Yi(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${m_}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${Bm}${r}`;break}}return r.replace(/@/g,"")}o(UV,"getActionId");function N7(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split(U)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],f=UV(s,a,"","");e.actions[a]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,l,{}),wi(n,e[ve.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},f)}}}o(N7,"fillStandardActions");function cy(e,t,n,i,r,a){var l;n[ve.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let f={};a&&(f.id=a);for(let p in t){let d=Fs(p),m=UV(s,d,r,a);m&&(n[ve.PropertyName.actions][d]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,s),wi(e,n[ve.PropertyName.actions][d],e.jsonSchema.definitions[s],i,f,m)),(l=n[ve.PropertyName.actions])!=null&&l[d]&&Object.keys(n[ve.PropertyName.actions][d]).length===0&&delete n[ve.PropertyName.actions][d]}}N7(n,t,e,i),Object.keys(n[ve.PropertyName.actions]).length===0&&delete n[ve.PropertyName.actions]}o(cy,"fillActions");function F7(e,t,n,i,r){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,"Field");let f=(s=t.title)!=null&&s.includes(ve.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;wi(e,i[t.id].form.fields[l],e.jsonSchema.definitions[ve.DefinitionName.Field],r,{},f),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}o(F7,"fillFields");function D7(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`]&&n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`]&&(i=JSON.parse(JSON.stringify(n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`])),i.properties={...i.properties,...n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`].properties}),i}o(D7,"prepareTableSchema");function _7(e,t,n,i,r){var l,f;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",d=r.factory.createInstance(ve.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][ve.PropertyName.table]=d;let m=e.jsonSchema.definitions,v=D7(p,t,m);wi(e,i[t.id],t.schema,r,{title:t.title}),wi(e,i[t.id][ve.PropertyName.table],v,r,t);let E=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(E!=null&&E.properties){let b=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(f=t==null?void 0:t.id)==null?void 0:f.replace(/@/g,"::").replace(/::com/g,"com");cy(e,E.properties,i[t.id][ve.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",b)}Object.keys(i[t.id][ve.PropertyName.table].toolBar).length===0&&delete i[t.id][ve.PropertyName.table].toolBar}}o(_7,"fillTableInConfig");function V7(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?Dm(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};uf(n[t],e,i,ve.PageTypeV2.ObjectPage,l,r)}}o(V7,"fillCustomColumnsInConfig");function w7(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][ve.PropertyName.chart]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(wi(e,i[t.id],t.schema,r,{title:t.title}),wi(e,i[t.id][ve.PropertyName.chart],e.jsonSchema.definitions[ve.DefinitionName.ObjectPageChart],r,t))}o(w7,"fillChartSection");function M7(e,t,n,i){n[t.id]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&wi(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(M7,"fillHeaderSection");function k7(e,t,n,i){var f;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&wi(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${r}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(f=t==null?void 0:t.id)==null?void 0:f.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&cy(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&F7(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}o(k7,"fillFormSection");function jV(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&wi(e,i[t.id],t.schema,r,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,ZA(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(jV,"fillSubSection");function ZA(e,t,n,i,r){var s;let a=e.jsonSchema.definitions;for(let l in t){let f=l.replace(/\/@/g,"::"),p={id:f,type:P7(t[l]),schema:t[l],title:dE(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],_7(e,p,n,i,r),V7(e,f,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],w7(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],k7(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${l}>`],jV(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],M7(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],jV(e,p,n,i,r))}}o(ZA,"fillSectionsInConfig");function j7(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];wi(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(j7,"fillCustomSectionsInConfig");function U7(e,t){var d,m;let n=t.factory.createPageInstance(ve.PageTypeV2.ObjectPage);wi(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(ve.PageTypeV2.ObjectPage,ve.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;wi(e,n.globalTableSettings,i[ve.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(ve.PageTypeV2.ObjectPage,ve.DefinitionName.ObjectPageHeader);let r=i[ve.DefinitionName.ObjectPageHeader]?i[ve.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];wi(e,n.header,r,t);let a=i[ve.DefinitionName.ObjectPageHeaderActions];a&&cy(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[ve.DefinitionName.FooterActions];s&&cy(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageLayout"),wi(e,n.layout,i[ve.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[ve.DefinitionName.HeaderSections];if(l){let v=(d=t.v2Page.component)==null?void 0:d.settings;ZA(e,l.properties,v,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let f=i[ve.DefinitionName.Sections];if(f){let v=(m=t.v2Page.component)==null?void 0:m.settings;ZA(e,f.properties,v,n.sections,t)}let p=LV(e.manifest,e.entitySet);return j7(p,n,t,i,e),n}o(U7,"fillConfig");function ly(e){Xt();let t=df(e);if(!t)return;let n=e.entitySet,i=[],r=Yc(t,e.entitySet,i);if(gf(r,e.logger,n),!r)return;let a=A7(e.flex,n),s=new Vi;return U7(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(ly,"createObjectPageConfigV2");var Qr=Z(re());var tP=Z(_b());var Rt=Z(re());var $7=["colorPalette","tabs"];function B7(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(B7,"createCard");function $V(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),$V(e,n.join("|"))}return t}o($V,"findAvailableId");function Rp(e,t,n,i,r,a,s){i!=null&&i.properties&&eP(e,t,n,i.properties,r,a,s)}o(Rp,"transferManifestEntriesOVP");function zc(e,t,n,i){return e.createInstance(Rt.PageTypeV2.OverviewPage,i,n,t)}o(zc,"assignReflectMetadataRules");function H7(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split(U),r=e.appSchema.definitions[i[1]];t=zc(e.factory,i[1],t,"CustomCard"),Rp(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(H7,"processAnyOfDefinitionsOfOVP");function G7(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!$7.includes(i)?t[i]=(0,tP.default)(t[i]||{},r||{},{arrayMerge:lE}):t[i]=r}o(G7,"checkSyncRuleForExport");function W7(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=Kn(i.manifest,s);if(n in Rt.v2.CardSettingsType||n==="settings")l.settings=(0,tP.default)(l.settings||{},r||{},{arrayMerge:lE});else if(r!==void 0){let f=e.manifest.export;G7(f,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(W7,"transferToManifest");function K7(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template??"CustomCard",i=[...new Set(Object.keys(Rt.v2.cardTemplateTypeMap))].filter(r=>r!==n);i.push(n);for(let r of i){let a;Object.values(Rt.v2.CardTemplateType).includes(r)?a=Object.keys(e.appSchema.definitions).filter(s=>{var f;let l=(f=e.appSchema.definitions[s].properties)==null?void 0:f.template;if(l!=null&&l.enum)return l.enum.indexOf(r)>-1;if(l!=null&&l.const)return l.const===r}):a=["CustomCard"],e.currentObject[t]=zc(e.factory,a[0],e.currentObject[t],"CustomCard"),B7(t,e.exportResults.manifest[Rt.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated,Rp(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[a[0]],e.factory,["cards",t],e.entityPathArray)}}),Object.keys(e.exportResults.manifest[Rt.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[Rt.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated)})}o(K7,"transferCards");function X7(e,t){if(t==="cards")K7(e);else{let n=Uo(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,Rt.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split(U);e.currentObject=zc(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],Rp(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],eP(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],e.factory,e.pathHierarchy,e.entityPathArray)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],eP(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(X7,"exportOfObject");function eP(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!kl(a,s)&&a[a.length-1]!=="anyOf")continue;let f=e[l],p=Mn(e,l),d={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:f,configObject:e,factory:r,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(d.currentObject=e[a[a.length-2]],f=H7(d)):f&&typeof f=="object"&&i[l]&&X7(d,l),p!=null&&p.manifest&&W7(p,a,l,t,f,e)}}o(eP,"processProperties");function Q7(e,t,n,i,r,a,s){let l;t.length===0?l=["page"]:l=t;let f=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),p=n_(a,n,e.ui5Version,s,f),d=JSON.parse(JSON.stringify(e.exportResults.manifest));d["sap.app"].id=e.appId;let m=Nm(p,d);e.exportResults.flexChanges.find(E=>{let b=!1,I=JSON.parse(E);I={content:I.content,selector:I.selector};let N=JSON.parse(m);return N={content:N.content,selector:N.selector},JSON.stringify(I)===JSON.stringify(N)&&(b=!0),b})||e.exportResults.flexChanges.push(m)}o(Q7,"evaluateFlexRule");function q7(e,t,n,i,r,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,a):s!==!1&&(n[a]=i[r]),e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated}}o(q7,"exportConfigValueToManifest");function Y7(e,t,n,i,r){let a=Kn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)q7(e,n,a,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated,ls(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(Y7,"evaluateManifestRule");function z7(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(Rt.FACETTITLEPREFIX)?r.split(Rt.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(z7,"getManifestPathOfSections");function J7(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}o(J7,"getManifestPathOfTable");function Z7(e,t,n,i,r){let a;return t[0]===Rt.PropertyName.sections?a=z7(t,a,n,e,r):t[0]===Rt.PropertyName.table?a=J7(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}o(Z7,"getManifestPath");function e6(e,t,n,i,r,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)Q7(e,i,t,r,a,n,s);else if(t.manifest){let f=Z7(e,i,t,n,a);Y7(e,f,t,s,n)}}o(e6,"evaluateExportRule");function t6(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(f=>(f.tabKey===a||a===void 0&&f.tabKey===""||a&&t.sectionKey===a)&&f.extensionType===t.extensionType);if((!l||l.length===0)&&(dh(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Rt.ViewTemplateType.ResponsiveTableColumnsExtension))){let f=e.replace(Rt.ViewTemplateType.ResponsiveTableColumnsExtension,Rt.ViewTemplateType.ResponsiveTableCellsExtension);dh(n,f,t.appId,t.exportResults.fragments),delete n[f]}}}o(t6,"deleteObsoleteColumn");function n6(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=U_(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated,t6(r,e,n))}o(n6,"deleteObsoleteColumnsFromFragment");function i6(e,t,n,i,r){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:f}=gh(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:f,columns:[]}),a[l].columns.push(s)}return a}o(i6,"clusterConfigColumnsByPath");function BV(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in Rt.v2.TableColumnExtensionTypeV2){let{path:f}=gh(e.v2Page,s,r,l);if(!f)continue;let p={path:f,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};try{n6(p)}catch(d){e.logger.error(d.message)}}if(t){let l=i6(t,n,e.v2Page,s,r);for(let f in l)RS(e.exportResults,f,l[f].columns,e.appId,l[f].viewTemplateType,e.logger)}}o(BV,"transferColumnExtensions");function r6(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let d=$V(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(d)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(E=>{var b;return(b=E.$ref)==null?void 0:b.includes(t[p].constructor.name)}).$ref.split(U),v=e.appSchema.definitions[m[m.length-1]];Vs(e,t[p],i,[...r,s[p]],v)}let f=Kn(e.exportResults.manifest,eS());for(let p in f)KA(p,l)&&!s.includes(p)&&delete f[p]}o(r6,"transferManifestExtensions");function o6(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Rt.PropertyName.table){n=e[i-1];break}return zn(n,t)}o(o6,"getSectionId");function a6(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let f=Uo(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);Vs(t,f.configObject,r,[...a,i],f.targetDefinition,l)})}o(a6,"transferIndexTable");function s6(e,t,n,i,r,a){let s,l=Dm(e.$ref);l&&(s={target:l,key:o6(t,n)}),BV(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(s6,"transferCustomColumns");function c6(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let f=Uo(t.appSchema,n,i,l,r,t.factory,t.pageType);f&&Vs(t,f.configObject,a,[...s,r],f.targetDefinition,f.title)})}o(c6,"handleAnyOfDefinitions");function l6(e,t,n,i,r,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")r6(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){s6(l,t,s,e,n,a);return}else a?Vs(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&c6(l,e,s,n==null?void 0:n[r],r,i,t)}o(l6,"transferComplexProperty");function Vs(e,t,n,i,r,a){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!kl(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let f=t&&Rm(t,l),p=f?[...n,f]:n,d=Mn(t,l),m=e.propertyDefinition=r.properties[l],v=e.nextDefinition=Uo(e.appSchema,a,s,m,l,e.factory,e.pageType);if(e6(e,d,t,[...i],p,a,l),a6(s,e,a,l,p,i),s===void 0||typeof s=="object")l6(e,i,t,p,l,v,a);else if((m==null?void 0:m.$ref)===U+"TableCustomColumns"){BV(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(Vs,"transferManifestEntriesAndFlexChange");function HV(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=zc(r,i,n[i],s),a.push(i),nP(r,n[i],e,l.properties,a)}o(HV,"transferSettingsOfRef");function f6(e,t,n,i,r,a){if(n[t].$ref){e[t]=e[t]??{};let s=n[t].$ref.split(U);HV(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf&&e.template in Qr.v2.cardTemplateSettingsMap){e[t]=e[t]??{};let l=`${U}${Qr.v2.cardTemplateSettingsMap[e.template]}`.split(U);HV(i,l,e,t,r,a)}}o(f6,"processPropertiesOfObject");function u6(e,t,n,i,r,a){let s=Mn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),f=Kn(i.manifest,l);if(Object.prototype.hasOwnProperty.call(f,t))try{Hl(s,f,t,e)}catch(p){oe(i.logger,{severity:Qr.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:xm(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&f6(e,t,r,i,a,n)}o(u6,"processOvpProperty");function nP(e,t,n,i,r){for(let a in i)u6(t,a,r,n,i,e)}o(nP,"processOvpProperties");function p6(e,t,n){nP(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[Qr.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[Qr.ManifestSection.ovp].cards[i].template,a=Qr.v2.cardTemplateTypeMap[r]??"CustomCard",s=[...new Set(Object.values(Qr.v2.cardTemplateTypeMap))].filter(l=>l!==a);s.push(a);for(let l of s)e.cards[i]=zc(n,l,e.cards[i]??{},"CustomCard"),e.cards=zc(n,l,e.cards,"CustomCard"),nP(n,e.cards[i],t,t.jsonSchema.definitions[l].properties,["cards",i])})}o(p6,"addSettings");function fy(e){let t=new Vi,n=t.createPageInstance(Qr.PageTypeV2.OverviewPage);return e.jsonSchema&&p6(n,e,t),n}o(fy,"createOverviewPageConfig");var xt=Z(re());function d6(e,t,n,i){var p,d;let r=ny(e.manifest,i),a=e.jsonSchema.definitions;iy(t,n,a),t.table=n.createInstance(xt.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(kn(t.table,e.manifest,s,i,e.logger),JA(e,s,t),t.table.toolBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.ToolBar,{actions:{}}),kn(t.table.toolBar,e.manifest,a[xt.DefinitionName.ToolBar],i,e.logger),a[xt.DefinitionName.ActionsLR])for(let m in a[xt.DefinitionName.ActionsLR].properties){let v=Fs(m);t.table.toolBar.actions[v]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.Action),kn(t.table.toolBar.actions[v],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),kn(t.filterBar,e.manifest,a[xt.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[xt.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[xt.DefinitionName.SelectionFields].properties;for(let v in m){let E=v;t.filterBar.selectionFields[E]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),kn(t.filterBar.selectionFields[E],e.manifest,a.SelectionFieldDateSettings,i,e.logger,E)}}t.chart=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),kn(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[xt.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let v=Fs(m);t.footer.actions[v]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.FooterAction),kn(t.footer.actions[v],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let f=(d=(p=e.manifest[xt.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:d.keyPerformanceIndicators;f&&Object.keys(f).forEach(m=>{t.keyPerformanceIndicators[m]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),kn(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o(d6,"addSettings");function uy(e){if(Xt(),!df(e))return;let n=new Vi,i=n.createPageInstance(xt.PageTypeV2.AnalyticalListPage),r=[],a=mf(e.manifest[xt.ManifestSection.generic].pages,r,e.logger);if(gf(a,e.logger,a==null?void 0:a.entitySet),!!a)return d6(e,i,n,r[0]),e.flex.forEach(s=>{vr(s)&&ty(i,s,e.jsonSchema,e.logger)}),uf(i,e,a,xt.PageTypeV2.AnalyticalListPage),ay(i),i}o(uy,"createAnalyticalListPageConfig");var ti=Z(re());var yf=require("@sap-ux/vocabularies-types/vocabularies/UI");var m6=["filterBar","table","footer"],h6=ti.UIVOCABULARYALPHADOT.substring(1);function iP(e,t,n,i){ds(e,n,"QuickVariant"),R_(n,"QuickVariantX",t),L_(i,n,"QuickVariantX")}o(iP,"addEnumForVariantPaths");function y6(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[yf.UIAnnotationTerms.SelectionPresentationVariant,yf.UIAnnotationTerms.SelectionVariant,yf.UIAnnotationTerms.PresentationVariant];Lc(e,r,i)}o(y6,"addEnumForFilterBarAnnotationPath");function T6(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(yf.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(yf.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(h6,""),f=e[l];f?s?i=f:(i=f.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(oe(n,{severity:ti.LogSeverity.Warning,message:Q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(T6,"getPresentationVariantForLineItem");function v6(e,t,n){if(_s(t,"annotationPath",n))return;let i=T6(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=Mu("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||oe(n,{severity:ti.LogSeverity.Warning,message:Q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(v6,"getLineItemAnnotation");function GV(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:U+ti.DefinitionName.LineItems},r=U+ti.DefinitionName.ToolBarLR;GE.forEach((f,p)=>{n.properties.table.anyOf[p.toString()].$ref=U+f;let d=f.replace("<LineItems>",""),m=JSON.parse(JSON.stringify(t.definitions[d]));m.properties.columns=i,m.properties.toolBar.$ref=r,n.definitions[f]=m});let{entityType:a,uIAnnotations:s}=Ql(e);if(s){let f=[],p=pf(e.manifest[ti.ManifestSection.generic].pages,f);Xl(n);let d=v6(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(d){let v=Tr(a.fullyQualifiedName,d.term,d.qualifier);GE.forEach(E=>{n.definitions[E][ti.SchemaTag.annotationPath]=v})}Wl(!1,n,d,a);let m=s.SelectionFields;if(Gm(n,m,a),ql(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],E_(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return oe(e.logger,{severity:ti.LogSeverity.Error,message:Q.t("NOLR"),location:{path:ti.MANIFESTPATH,range:[ti.ManifestSection.generic]}}),n;Kl(n,a,p,e.manifest,e.fragments),iP(a,e.entitySet,n,e.serviceAVT),y6(a,n,ti.DefinitionName.ListReportFilterBar),N_(a,n,ti.DefinitionName.MultiEditV2),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return $o(n,m6),n}o(GV,"generateListReportSchemaV2");var we=Z(re());var Lp=o(e=>({flexChanges:[],manifest:{[we.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:we.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:we.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function WV(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===we.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}o(WV,"getClassesForSingleSection");function KV(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],WV(n,i,t),KV(n,t)}}o(KV,"getSubsectionClasses");function b6(e,t,n){let i;for(let r in e.sections)i=t.sections[r],WV(i,r,n),KV(i,n)}o(b6,"getExportClassesForSections");function E6(e,t){let n=pf(t.manifest[we.ManifestSection.generic].pages,e);if(!n){oe(t.logger,{severity:we.LogSeverity.Error,message:Q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){oe(t.logger,{severity:we.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(E6,"findV2Page");function rP(e,t){let n=Lm(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(rP,"calculateBaseId");function XV(e,t,n=!1){let i=Lp(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let a=[],s=E6(a,e),l=new Vi,f=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:rP(f,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Vs(p,f,[],[],e.jsonSchema)}return i}o(XV,"exportListReportPage");function QV(e,t,n=!1){let i=e.page.config,r=Lp(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=mf(e.manifest[we.ManifestSection.generic].pages,a,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new Vi,f=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:rP(f,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Vs(p,f,[],[],e.jsonSchema)}return r}o(QV,"exportAnalyticalListPage");function qV(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=Lp(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=Yc(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return oe(e.logger,{severity:we.LogSeverity.Error,message:Q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let f=new Vi,p=f.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&b6(i,p,f),Object.keys(i).length!==0){let d={v2Page:l,exportResults:a,appId:e.appId,baseId:rP(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:f,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Vs(d,p,[],[],e.jsonSchema)}}return a}o(qV,"exportObjectPage");var YV=o(e=>{let t=Lp();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new Vi,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Rp(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),S6=o((e,t,n)=>{var s;let i=Lp();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new eh,e);r.settings=Object.assign(new ys,e.settings);for(let l in n.definitions.AppSettings.properties){let f=Mn(r.settings,l);if(f&&f.manifest){let p=f.manifest.path(),d=Kn(i.manifest,p);e.settings&&e.settings[l]!==void 0?d[l]=e.settings[l]:(delete d[l],ls(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&ZE(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function zV(e,t){if(e[we.SchemaType.ListReport])return aP(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return qV(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return YV(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return S6(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return QV(e[we.SchemaType.AnalyticalListPage],t)}o(zV,"exportPageV2");function oP(e,t,n=!1){if(e[we.SchemaType.ListReport])return aP(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return qV(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return YV(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return QV(e[we.SchemaType.AnalyticalListPage],t,n)}o(oP,"exportConfigEntityByPathV2");var _a=Z(re());function JV(e,t){e.anyOf&&e.anyOf.forEach(function(n){Jc(n,t)})}o(JV,"addAnyOfToReferredTypes");function dy(e){return typeof e.items!="object"||Array.isArray(e.items)?void 0:e.items}o(dy,"getSingleItem");function Jc(e,t){if(typeof e!="object")return;let n=Ea(e);n&&ZV(n,t),JV(e,t),Jc(e.additionalProperties,t),Jc(dy(e),t)}o(Jc,"addReferredTypesFromElement");function ZV(e,t){t.referredTypeNames.add(e);let n=t.types[e];Jc(n,t);let i=n.properties;i?Object.values(i).forEach(r=>Jc(r,t)):Jc(dy(n),t),Jc(n.additionalProperties,t)}o(ZV,"addReferredTypesFromType");function py(e,t,n,i,r){if(typeof t!="object")return;let a=Ea(t);if(a){let s=r.types[a];if(s||(s=e==null?void 0:e.refTypeDefinition,r.types[a]=s),e){let l;if(e.suffix){let p=`${a}<${e.suffix}>`;t.$ref=Pm(p),l=structuredClone(s),r.types[p]=l,r.referredTypeNames.add(p)}else r.referredTypeNames.add(a),l=s;let f={pageInfo:i.pageInfo,specificParams:e.specificParams||i.specificParams};sP(n,f,e.syncRuleProvider,l,r)}else ZV(a,r)}else sP(n,i,e==null?void 0:e.syncRuleProvider,t,r)}o(py,"applyAdaptationInfoToElement");function sP(e,t,n,i,r){var v,E;let a={element:i},s=H0(n);if(s!=null&&s.processingRuleAdapter&&(s.processingRuleAdapter(a,t,e),!a.element))return;py(a.additionalPropertiesAdaptation,i.additionalProperties,e,t,r);let l={pageInfo:t.pageInfo,specificParams:((v=a.referenceAdaptation)==null?void 0:v.specificParams)||t.specificParams},f=i.properties,p;if(f)p=f;else{let b=dy(i);if(b)f={items:b},p=i;else return}let d,m=((E=a.referenceAdaptation)==null?void 0:E.processingRulesAdapter)||function(b,I){d=d||n&&new n;let N=Mn(d,b);N!=null&&N.processingRuleAdapter&&N.processingRuleAdapter(I,l,e)};for(let b in f){let I=f[b];if(typeof I!="object"){p[b]=I;continue}let N={element:{...I}};m(b,N),N.element?(N.controlId?N.element[_a.SchemaTag.controlId]=`${t.pageInfo.controlId}--${N.controlId}`:N.manifestPath&&(N.element[_a.SchemaTag.artifactType]="Manifest",N.element[_a.SchemaTag.manifestPath]=N.manifestPath),JV(N.element,r),py(N.referenceAdaptation,N.element,e,l,r),py(N.additionalPropertiesAdaptation,N.element.additionalProperties,e,l,r),py(N.itemsAdaptation,dy(N.element),e,l,r),p[b]=N.element):delete p[b]}}o(sP,"adjustElement");function A6(e,t,n){let i=t.split("."),r=i[i.length-1],a=t+".view."+(r==="ObjectPage"?"Details":r);return`${e}::${a}::${n}`}o(A6,"getViewId");function e1(e,t,n){var $;Xt();let i=bc(e.manifest,_a.FioriElementsVersion.v2,n);if(!i||i===_a.TemplateType.OverviewPageV2)return;let{parent:r}=Eo(e.manifest,e.pagePath);if(!r)return;let a=r.component;if(_s(r,"entitySet",n,"string",!0)||_s(a,"name",n,"string",!0))return;let s=r.entitySet,l=a.name,f=t(l),p=f==null?void 0:f.genericSchema,d=f==null?void 0:f.syncRuleProvider;if(!d||!p)return p;let m=e.parsedAnnotations||$r(e.annotations,n),v=($=m==null?void 0:m.entitySets)==null?void 0:$.find(se=>se.name===s);if(!v)return p;let E=structuredClone(p),b=A6(e.appId,l,s),N={pageInfo:{appId:e.appId,componentName:l,entitySet:s,controlId:b,pagePath:e.pagePath}},j={templateType:i,manifest:e.manifest,serviceAVT:m,fioriElementsVersion:_a.FioriElementsVersion.v2,entitySet:v,fragments:e.fragments,logger:n,entityType:v.entityType},G={types:E.definitions,referredTypeNames:new Set};sP(j,N,d,E,G);for(let se in E.definitions)G.referredTypeNames.has(se)||delete E.definitions[se];return E}o(e1,"getAdaptedSchema");var Fp=Z(re());var cP=Z(re());var t1=Z(re());var my=class my{};o(my,"Share"),h([y({flex:{controlType:o(()=>t1.ControlType.Button,"controlType")},processingRuleAdapter:o(t=>{t.controlId="template::Share"},"processingRuleAdapter")})],my.prototype,"visible",2);var gy=my;var ws=class{};o(ws,"ListHeaderActions"),h([y({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:gy}}})],ws.prototype,"Share",2),ws=h([y({processingRuleAdapter(e){e.element[cP.SchemaTag.icon]="Export"}})],ws);var Va=class{};o(Va,"ListHeader"),h([y({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:ws}}})],Va.prototype,"actions",2),Va=h([y({processingRuleAdapter(e){e.element[cP.SchemaTag.icon]="Header"}})],Va);var yy=require("@sap-ux/vocabularies-types/vocabularies/UI"),Ma=Z(re());var Ms={since:"1.77.0"},hy={flex:{controlType:o(()=>Ma.ControlType.SmartFilterBar,"controlType")},processingRuleAdapter(e){e.controlId="listReportFilter"}};function lP(e){return RV(e,function(t,n){return{manifestPath:Ds(n.pageInfo.pagePath,["filterSettings","dateSettings"])}})}o(lP,"getSyncRuleForDateRangeProperty");var Tf=class Tf{};o(Tf,"DateRange"),h([y(lP("useDateRange")),x(Ms)],Tf.prototype,"useDateRange",2),h([y(lP("selectedValues")),x(Ms)],Tf.prototype,"selectedValues",2),h([y(lP("exclude")),x(Ms)],Tf.prototype,"exclude",2);var fP=Tf,Np={manifest:{},processingRuleAdapter(e,t){let n=t.specificParams;if(!n.selectionFieldInfo.hasDateRangeOption){delete e.element;return}e.manifestPath=Ds(t.pageInfo.pagePath,["filterSettings","dateSettings","fields",n.accessor])}};var Yr=class{};o(Yr,"FilterField"),h([y(Np),x(Ms)],Yr.prototype,"selectedValues",2),h([y(Np),x(Ms)],Yr.prototype,"exclude",2),h([y(Np),x(Ms)],Yr.prototype,"customDateRangeImplementation",2),h([y(Np),x(Ms)],Yr.prototype,"filter",2),h([y(Np),x({since:"1.90.0"})],Yr.prototype,"defaultValue",2),Yr=h([y({processingRuleAdapter(e,t){let n=t.specificParams,i=n.selectionFieldInfo.field,r=n.entityType,a=i.value,s=i.type==="PropertyPath"?jl(i,r):a;e.element.description=s,e.element[Ma.SchemaTag.dataType]=n.selectionFieldInfo.dataType,e.element[Ma.SchemaTag.keys]=[{name:Ma.SchemaKeyName.value,value:`${a}`}]}})],Yr);var Zc=class{};o(Zc,"FilterFields"),Zc=h([y({processingRuleAdapter(e,t,n){let i=t.specificParams,r=i.fieldDefinitions,a;for(let l in r){let f=r[l],p={$ref:U+"FilterField"};p[Ma.SchemaTag.propertyIndex]=f.position,a=a||{},a[l]=p}e.element.properties=a,delete e.element.additionalProperties;let s=o(function(l,f){let p={accessor:l,selectionFieldInfo:r[l],entityType:i.entityType};f.referenceAdaptation={suffix:at(l),syncRuleProvider:Yr,specificParams:p}},"processingRulesAdapter");e.referenceAdaptation={processingRulesAdapter:s}}})],Zc);var qr=class qr{};o(qr,"CommonFilterBar"),h([y(hy)],qr.prototype,"liveMode",2),h([y(oy),xe("https://ui5.sap.com/sdk/#/topic/094fe8c8d8ac4f0eb4724b1a52d2ad61")],qr.prototype,"smartVariantManagement",2),h([y(oy),xe("https://ui5.sap.com/sdk/#/topic/094fe8c8d8ac4f0eb4724b1a52d2ad61")],qr.prototype,"variantManagementHidden",2),h([y(oy),xe("https://ui5.sap.com/sdk/#/topic/094fe8c8d8ac4f0eb4724b1a52d2ad61")],qr.prototype,"subTitleIfVariantMgmtHidden",2),h([y(hy)],qr.prototype,"showClearOnFB",2),h([y(hy)],qr.prototype,"showFilterConfiguration",2),h([y(hy)],qr.prototype,"showRestoreOnFB",2),h([y({processingRuleAdapter(t,n,i){t.referenceAdaptation={syncRuleProvider:fP}}}),x(Ms)],qr.prototype,"dateSettings",2),h([y({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:Zc}}})],qr.prototype,"selectionFields",2);var uP=qr,wa=class extends uP{};o(wa,"ListReportFilterBar"),h([y({manifest:{},processingRuleAdapter(t,n){let i=[yy.UIAnnotationTerms.SelectionPresentationVariant,yy.UIAnnotationTerms.SelectionVariant,yy.UIAnnotationTerms.PresentationVariant],r=n.specificParams;Lc(r.entityType,i,t.element);let a=Ds(n.pageInfo.pagePath);t.manifestPath=a}}),xe("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),x({since:"1.86.0"})],wa.prototype,"annotationPath",2),wa=h([y({processingRuleAdapter(e,t){var l;e.element[Ma.SchemaTag.icon]="Filter";let n=t.specificParams,i=((l=n.uIAnnotations)==null?void 0:l.SelectionFields)??[],r={},a=!1;i.forEach((f,p)=>{let d=er(f),m=["Date","DateTime","DateTimeOffset"].includes(d);a=a||m,r[f.value]={field:f,dataType:d,hasDateRangeOption:m,position:p}});let s={entityType:n.entityType,fieldDefinitions:r,hasFieldWithDateRangeOption:a};e.referenceAdaptation={specificParams:s}}})],wa);var zr=class{};o(zr,"ListReportNew"),h([y({flex:{controlType:o(()=>Fp.ControlType.DynamicPage,"controlType")},processingRuleAdapter(t){t.controlId="page"}})],zr.prototype,"fitContent",2),h([y({processingRuleAdapter(t){t.element[Fp.SchemaTag.propertyIndex]=0,t.referenceAdaptation={syncRuleProvider:Va}}})],zr.prototype,"header",2),h([y({processingRuleAdapter(t,n){var r;if((r=n.specificParams.settings)!=null&&r.isWorklist){delete t.element;return}t.element[Fp.SchemaTag.propertyIndex]=1,t.referenceAdaptation={syncRuleProvider:wa}}})],zr.prototype,"filterBar",2),zr=h([Zi({id:CV,pageId:Cp}),y({processingRuleAdapter(e,t,n){let i=Ds(t.pageInfo.pagePath),{entityType:r,uIAnnotations:a}=Ql(n),{parent:s}=Eo(n.manifest,i),l={settings:s,entityType:r,uIAnnotations:a};e.referenceAdaptation={specificParams:l}}})],zr);var mP=require("path"),l1=require("fs");var Sr=Z(re());function P6(e){let t={};return e.flex.forEach(function(i){let r=vr(i);if(r){let a=r,s=t[a.controlId]||[];s.push(a),t[a.controlId]=s}}),t}o(P6,"getChangeMapFormImportParameters");function pP(e,t,n,i,r){if(e===void 0)return;let a=Ea(t),s=a?n[a]:void 0;if(t[Sr.SchemaTag.conversionExit]&&(e=ry(!0,r.conversionExitProvider,t,e,i.fragments,void 0,i.logger),!s))return e;if(s)return pP(e,s,n,i,r);if(t.type==="object"&&t.properties&&typeof e=="object"){let l={},f=!1;for(let p in t.properties){let d=t.properties[p],m=pP(e[p],d,n,i,r);m!==void 0&&(f=!0,l[p]=m)}return f?l:void 0}return t.type==="array"&&!Array.isArray(e)?typeof e=="string"&&e!==""?e.split(","):void 0:e}o(pP,"getConfigRep");function n1(e,t,n,i,r,a,s,l){let f=pP(r,a,s,l,t);if(f===void 0)return;let p=e,d=[];n.forEach(function(m){d.push(m);let v=m.propertyName;p[v]=p[v]||t.propertyInstanceProvider(d),p=p[v]}),p[i]=f}o(n1,"transferValueToConfig");function x6(e,t,n,i,r,a,s,l){let f=r[Sr.SchemaTag.controlId],p=l[f];if(!p)return;let d=-1,m=p.find(function(v,E){return v.content.property===i?(d=E,!0):!1});m&&(n1(e,t,n,i,m.type==="propertyBindingChange"?m.content.newBinding:m.content.newValue,r,a,s),p.length===1?delete l[f]:p.splice(d,1))}o(x6,"importFlexChangesToConfigProperty");function C6(e,t,n,i,r,a,s){let l=r[Sr.SchemaTag.manifestPath],f,p;Array.isArray(l)?(p=l,f=!0):(p=l.path,f=l.addTargetPropertyToPath);let{hasPath:d,value:m,parent:v}=Eo(s.manifest,p,f?i:void 0);if(!d)return;n1(e,t,n,i,f?m:v,r,a,s)}o(C6,"importManifestToConfigProperty");function i1(e,t,n,i,r,a,s){if(Da(n.properties))for(let l in n.properties){let f=n.properties[l];if(!Da(f))continue;let p=f[Sr.SchemaTag.artifactType];if(p===Sr.ArtifactType.FlexChange)x6(e,t,i,l,f,r,a,s);else if(p===Sr.ArtifactType.Manifest&&f[Sr.SchemaTag.manifestPath])C6(e,t,i,l,f,r,a);else{let d=Ea(f),m=d?r[d]:void 0;if(Da(m)){let v=i.concat([{propertyName:l,propertyType:d.split("<")[0]}]);i1(e,t,m,v,r,a,s)}}}}o(i1,"importDefinitionIntoConfig");function r1(e,t,n){var m;let i=bc(e.manifest,Sr.FioriElementsVersion.v2,e.logger);if(!i||i===Sr.TemplateType.OverviewPageV2)return;let{parent:r}=Eo(e.manifest,t),a=(m=r==null?void 0:r.component)==null?void 0:m.name,s=typeof a=="string"?n(a):void 0;if(!s)return;let l=P6(e),f=e.jsonSchema,p=f.definitions,d=s.propertyInstanceProvider([]);return i1(d,s,f,[],p,e,l),d}o(r1,"getConfigForPage");var Pi=Z(re());function I6(e,t,n,i){let r=t===void 0?null:t,a=typeof r=="string"&&r.startsWith("{");i.push({controlId:e[Pi.SchemaTag.controlId],controlType:e[Pi.SchemaTag.controlType],propertyName:n,newValue:r,isBinding:a})}o(I6,"addFlexChangeInfoToList");function o1(e,t,n,i){var l;if(n[Pi.SchemaTag.conversionExit])return ry(!1,i.conversionExitProvider,n,e,i.fragments,t);if(n.type==="array"&&((l=n.items)==null?void 0:l.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 r=typeof t=="object"&&t!==null?{...t}:{},a=!1,s=!1;for(let f in n.properties){let p=n.properties[f];if(!Da(p))continue;let d=Ea(p);p=d&&i.globalTypeDefinitions[d]||p;let m=r[f];s=s||m!==void 0;let v=o1(e?e[f]:void 0,m,p,i);v===void 0?delete r[f]:(r[f]=v,a=!0)}return a?r:s?Object.keys(t).every(f=>Da(n.properties[f]))?void 0:r:t}o(o1,"getValueForManifest");function dP(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(r,a){return dP(r,t[a])}):!0;let n=Object.keys(e).filter(r=>e[r]!==void 0),i=Object.keys(t).filter(r=>t[r]!==void 0);return n.length!==i.length||n.some(function(r){return dP(e[r],t[r])})}o(dP,"isDifferent");function O6(e){return!e||!Object.keys(e).some(t=>e[t]!==void 0)}o(O6,"isEmpty");function R6(e,t,n,i,r){let a=n.manifest,s=e.length-1,l=e[s],f=[];e.some(function(m,v){if(v===s)return!0;let E=a[m];if(typeof E!="object"||E===null)return!0;a=E,f.push(a)});let p=f.length===s?a[l]:void 0,d=o1(t,p,i,r);if(dP(d,p))if(d===void 0){n.manifestChangeIndicator=Pi.ChangeIndicator.Deleted;for(let m=s;m>0;m--){let v=f[m];if(!O6(v))break;let E=f[m-1],b=e[m];delete E[b]}}else{for(let m=f.length;m<s;m++){let v={};a[e[m]]=v,a=v}a[l]=d,n.manifestChangeIndicator=p===void 0?Pi.ChangeIndicator.Created:Pi.ChangeIndicator.Updated}}o(R6,"applyManifestChange");function L6(e,t,n,i,r){let a=e==null?void 0:e[n],s=i[Pi.SchemaTag.artifactType];if(s===Pi.ArtifactType.FlexChange)I6(i,a,n,t.flexList);else if(s===Pi.ArtifactType.Manifest&&i[Pi.SchemaTag.manifestPath]){let l,f=i[Pi.SchemaTag.manifestPath];Array.isArray(f)?l=f.concat([n]):(l=f.path,f.addTargetPropertyToPath&&(l=l.concat([n]))),R6(l,a,t,i,r)}else{let l=Ea(i),f=l?r.globalTypeDefinitions[l]:void 0;Da(f)&&a1(a,t,f,r)}}o(L6,"transferConfigPropertyToExportResults");function a1(e,t,n,i){let r=n.properties||{};for(let a in r){let s=n.properties[a];Da(s)&&L6(e,t,a,s,i)}}o(a1,"transferConfigToExportResults");function s1(e){let t=e.config,n=e.jsonSchema.definitions,i=(e.fragments||[]).map(function(s){return{...s,changeIndicator:Pi.ChangeIndicator.NoChange}}),r={globalTypeDefinitions:n,conversionExitProvider:e.conversionExitProvider,fragments:i},a={manifest:structuredClone(e.manifest),manifestChangeIndicator:Pi.ChangeIndicator.NoChange,flexList:[],fragments:i};return a1(t,a,e.jsonSchema,r),a}o(s1,"exportPage");var N6=!1,F6={generateListReportSchemaV2(e,t){return GV(e,t)},createListReportConfig(e){return wV(e)},exportListReportPage(e,t,n){return XV(e,t,n)}},gP;function D6(){let e;if(__dirname.endsWith("dist"))e=__dirname;else{let i=__dirname.lastIndexOf("specification");e=(0,mP.join)(__dirname.substring(0,i+13),"dist")}let t=(0,mP.join)(e,"schemas","v2","ListReportNewConfig.json");return JSON.parse((0,l1.readFileSync)(t,"utf8"))}o(D6,"getPersistentListReportNewSchema");function _6(){let e=D6();return function(t){return t===Cp?{genericSchema:e,syncRuleProvider:zr}:void 0}}o(_6,"createGenericSchemaInfoProvider");function V6(e){return e===Cp?{propertyInstanceProvider:o(function(t){return new zr},"propertyInstanceProvider")}:void 0}o(V6,"getConfigInfo");function c1(e){let{value:t}=Eo(e,[qo.ManifestSection.generic],"pages");return Array.isArray(t)?[qo.ManifestSection.generic,"pages",0]:t&&typeof t=="object"?[qo.ManifestSection.generic,"pages",Object.keys(t)[0]]:void 0}o(c1,"getPathForRootPage");function w6(e,t,n){let i=!e.layer||e.layer===qo.FlexChangeLayer.Customer,r={controlId:n.controlId,controlType:n.controlType,content:{property:n.propertyName},sapui5Version:e.ui5Version,isCustomer:i};return n.isBinding?(r.content.newBinding=n.newValue,r.type="propertyBindingChange"):r.content.newValue=n.newValue,Nm(r,t)}o(w6,"flexInfoToChangeString");function M6(){let e=_6(),t=o(function(n,i,r){let a=structuredClone(i.manifest);return a[qo.ManifestSection.app].id=n,i.flexList.map(w6.bind(null,r,a))},"getFlexChangesAsStrings");return{generateListReportSchemaV2(n){var s;let i=n.manifest,r=c1(i);if(!r)return null;let a={appId:((s=i[qo.ManifestSection.app])==null?void 0:s.id)||"",manifest:i,pagePath:r,annotations:[],parsedAnnotations:n.serviceAVT,fragments:n.fragments};return e1(a,e,n.logger)},createListReportConfig(n){let i=c1(n.manifest);return r1(n,i,V6)},exportListReportPage(n,i,r){let a=n.fragments?n.fragments.map(function(p){return{...p,changeIndicator:qo.ChangeIndicator.NoChange}}):[],s={appId:n.appId,config:n.page.config,manifest:n.manifest,jsonSchema:n.jsonSchema,fragments:a,logger:n.logger},l=s1(s),f=t(n.appId,l,i);return{manifest:l.manifest,fragments:l.fragments,flexChanges:f,manifestChangeIndicator:l.manifestChangeIndicator}}}}o(M6,"createPageHandlerLRGeneric");function hP(){return N6?(gP=gP||M6(),gP):F6}o(hP,"getPageHandlerLR");function Dp(e,t){return hP().generateListReportSchemaV2(e,t)}o(Dp,"generateListReportSchemaV2");function Ty(e){return hP().createListReportConfig(e)}o(Ty,"createListReportConfig");function aP(e,t,n=!1){return hP().exportListReportPage(e,t,n)}o(aP,"exportListReportPage");function by(e,t){var n,i;return(n=e.component)!=null&&n.name?Sm(Ta((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(by,"generateId");function k6(e,t,n,i){e.navigation={};let r=f1(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=by(t.pages[a],a);e.entitySet?e.navigation[s]=r[s].navigationProperty?`${e.entitySet}.${r[s].navigationProperty}`:e.entitySet:e.navigation[s]=r[s].navigationProperty?r[s].navigationProperty:s}}o(k6,"getPageConfigsAndNavigations");function f1(e,t){var i;let n={};for(let r in e){let a=e[r],s=by(a,r);if(!s)continue;let l={pageType:Ta((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let f=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(f)if(l.pageType===jn.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[f],fragments:t.fragments,logger:t.logger};l.config=Ty(p)}else if(l.pageType===jn.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[f],fragments:t.fragments,logger:t.logger};l.config=uy(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[f],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=ly(p)}a.pages&&k6(l,a,t,n)}return n}o(f1,"getPagesAndConfigs");var yP=class yP extends hs{constructor(t){Xt();let n;t.manifest[jn.ManifestSection.generic]?n=t.manifest[jn.ManifestSection.generic].pages:oe(t.logger,{severity:jn.LogSeverity.Error,message:Q.t("NOFE"),location:{path:jn.MANIFESTPATH,range:[jn.ManifestSection.generic]}}),n||oe(t.logger,{severity:jn.LogSeverity.Error,message:Q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:jn.MANIFESTPATH,range:[jn.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&by(n[i],i),a=new ys,s=Dt(jn.SchemaType.Application),l=t.appSchemas[s.filename];kn(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,f1(n,t),a)}};o(yP,"V2AppProvider");var vy=yP;function _p(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||oe(n,{severity:jn.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:jn.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let f=by(l,s);i[f]=l}if(t===jn.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let f=_p(l.pages,t,n);for(let p in f)i[p]=f[p]}}return i}o(_p,"getPages");var el=Z(re());var TP=class TP extends hs{constructor(t){let n={},i=t.manifest[el.ManifestSection.ovp],r=new ys,a=Dt(el.SchemaType.Application);kn(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(d=>d.includes(el.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},f={pageType:el.PageTypeV2.OverviewPage,config:fy(l),entitySet:i.globalFilterEntitySet},p=Sm(f.pageType,f.entitySet);n[p]=f,super(t,p,n,r)}};o(TP,"V2OvpProvider");var Ey=TP;var _=Z(re()),tl=require("@sap-ux/vocabularies-types/vocabularies/UI");var j6=["header","filterBar","chart","table"],vP="@UI.LineItem";function bP(e,t,n,i,r){i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=Tr(e.fullyQualifiedName,tl.UIAnnotationTerms.SelectionFields,r));let a=0;return n==null||n.forEach(s=>{var d,m;let l=s.value,f="SelectionField::"+at(s.value);s.type==="PropertyPath"&&(l=jl(s,e)),i.properties[f]={$ref:U+f},i.properties[f][_.SchemaTag.propertyIndex]=a;let p=er(s);t.definitions[f]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[f][_.SchemaTag.isViewNode]=!0,t.definitions[f][_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:`${s.value}`}],((d=s.$target)==null?void 0:d.fullyQualifiedName.indexOf("@"))>-1?t.definitions[f][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[f][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[f][_.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[f][_.SchemaTag.annotationPath]=`${i[_.SchemaTag.annotationPath]}/${a}`,a++}),i}o(bP,"addSelectionFields");function U6(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${tl.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let a={};return Object.keys(t).forEach(s=>{t[s].template||(a[s]=t[s])}),Object.keys(a).length>0?a:void 0}}o(U6,"getVisualFilters");function $6(e,t){let n=[];return e==null||e.forEach(i=>n.push(i.value)),t&&t.entityProperties.forEach(i=>n.includes(i.name)?void 0:n.push(i.name)),n}o($6,"getPropertiesIndex");function B6(e,t,n,i){var s,l,f,p,d,m;let r=$6(i,e),a=t.definitions[_.DefinitionName.VisualFilters];a.properties={};for(let v in n){let E=n[v];if(!E.template){let b=a.properties[v]={$ref:si(_.DefinitionName.VisualFilter,v)},I=r.indexOf(v);I!==-1&&(b[_.SchemaTag.propertyIndex]=I);let N=vt(_.DefinitionName.VisualFilter,v,t);(s=E.visualFilter)!=null&&s.valueList&&(N[_.SchemaTag.annotationPath]=`${v}/@${E.visualFilter.valueList}`);let j=(m=(d=(p=(f=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(G=>G.name===v))==null?void 0:f.annotations)==null?void 0:p.Common)==null?void 0:d.Label)==null?void 0:m.toString();N.description=j||v,N[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:v}]}}}o(B6,"addVisualFilters");function H6(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},u_(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&us(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}o(H6,"applyCustomFilterFields");function G6(e,t,n,i){var l,f;let r=U6(n),a=i&&((f=(l=e==null?void 0:e.annotations)==null?void 0:l[i])==null?void 0:f.SelectionFields),s;if(r)t.definitions[_.DefinitionName.SelectionFields][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.SelectionFields].properties={},s=t.definitions[_.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},B6(e,t,r,a);else{let p=t.definitions[_.DefinitionName.FilterBar];p.properties.initialLayout[_.SchemaTag.hidden]=!0,p.properties.layout[_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.CompactFilters][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.VisualFilters][_.SchemaTag.hidden]=!0}s=bP(e,t,a,s),H6(t,s,n)}o(G6,"addFilterBar");function u1(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let a=e.definitions[t];a.properties={},a.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${_.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(f=>{let p=at(`${_.DefinitionName.ChartToolBarAction}<${f.Action}>`),d=ci(f,r),m=f.$Type.split(`${_.UIVOCABULARY}.`)[1],v=a.properties[`${m}::${f.Action}`]={$ref:U+p,description:d};v[_.SchemaTag.propertyIndex]=l,v[_.SchemaTag.annotationType]=f.$Type,v[_.SchemaTag.annotationPath]=`/${f.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[_.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][_.SchemaTag.annotationPath]=f.fullyQualifiedName,l++})}}o(u1,"defineActions");function p1(e,t,n,i){var l;let r,a,s;return e&&(n==="primary"?a=e.find(f=>f.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(f=>f.value.indexOf(_.FacetBase.LineItem)>-1):i?a=e.find(f=>f.value.indexOf(i)>-1):a=e[0],r=typeof(a==null?void 0:a.value)=="string"?$l(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",_.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(p1,"findTheRightVisualization");function W6(e,t,n,i){let r="@UI.Chart",a=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:r,targetAnnotation:a,chartTitle:s}}o(W6,"analyzeChartAnnotation");function K6(e,t,n,i,r,a){var f;let{visualization:s,targetAnnotation:l}=p1((f=e.PresentationVariant)==null?void 0:f.Visualizations,t,n,i);return s||(oe(r,{severity:_.LogSeverity.Error,message:Q.t("NOVISUALIZATIONS")}),s=vP,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(K6,"analyzeSPVforView");function vf(e,t,n,i,r,a){let s,l,f=e==null?void 0:e.split(`${_.UIVOCABULARY}.`)[1],p=f&&t[f];if(!p)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=p.Text,s=p.fullyQualifiedName.split(_.UIVOCABULARYALPHADOT)[0],f.startsWith("PresentationVariant")){let{visualization:d,targetAnnotation:m}=p1(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:d,targetAnnotation:m,namespace:s,title:l}}else{if(f.startsWith("SelectionPresentationVariant"))return K6(p,s,i,r,a,l);if(f.startsWith("SelectionVariant")){let d=vP,m=`/${s}/@${tl.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:d,targetAnnotation:m,namespace:s,title:l}}else if(f.startsWith("LineItem")){let d=vP;p.qualifier&&(d+=`#${p.qualifier}`);let m=e.substring(0,1)==="@"?`/${s}/${e}`:`/${s}/@${e}`;return l=l||`Table View (${i})`,{visualization:d,targetAnnotation:m,namespace:s,title:l}}else if(f.startsWith("Chart")){let{visualization:d,targetAnnotation:m,chartTitle:v}=W6(s,e,p,i);return{visualization:d,targetAnnotation:m,namespace:s,title:v}}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}o(vf,"analyzeViewAnnotation");function X6(e,t,n,i){let r=e.definitions[_.DefinitionName.ALPChartView];if(e.definitions[_.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.isViewNode],n&&(e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.annotationPath]=n),e.definitions[_.DefinitionName.ALPChart].properties.annotationPath[_.SchemaTag.hidden]=!0,r.properties.annotationPath[_.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${U}${_.DefinitionName.ALPChart}`,t){let a=t.split(_.UIVOCABULARYDOT)[1];if(i[a]){let s=i[a].fullyQualifiedName.split("@");r[_.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}else Ca(r,Q.t("UNEXISTING_ANNOTATION_PATH"))}r[_.SchemaTag.artifactType]=_.ArtifactType.Manifest,r[_.SchemaTag.key]="primary",r[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"primary"}]}o(X6,"addALPChartView");function Q6(e,t,n,i,r,a){var j,G,$,se,ee,le,Le,D;let s=(j=n.entityType)==null?void 0:j.annotations.UI,l=(se=($=(G=t==null?void 0:t[0])==null?void 0:G.primary)==null?void 0:$[0])==null?void 0:se[_.SchemaTag.annotationPath],{targetAnnotation:f}=vf(l,s,n.serviceAVT,"primary",void 0,n.logger);X6(e,l,f,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=U+p,u1(e,p,s,f,n.entityType);let{visualization:d,targetAnnotation:m}=vf((Le=(le=(ee=t==null?void 0:t[0])==null?void 0:ee.secondary)==null?void 0:le[0])==null?void 0:Le[_.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),v=e.definitions[a];d||i?(v.properties.toolBar.$ref=`${U}${_.DefinitionName.ToolBarLR}`,v.properties.columns={$ref:U+_.DefinitionName.LineItems},v.properties.annotationPath[_.SchemaTag.hidden]=!0):v.properties={};let E=e.definitions[_.DefinitionName.ALPTableView];e.definitions[_.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(E)),delete e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.isViewNode],E.additionalProperties=!1,E.description="Table (key: secondary)",E.title="Table",d?(delete E.properties,E.$ref=`${U}${_.DefinitionName.ALPTable}`):i||(E.properties={}),E[_.SchemaTag.artifactType]=_.ArtifactType.Manifest;let b,I;if(d&&d.indexOf(_.FacetBase.LineItem)>-1?(b=d.split(".")[1],I=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(b=I=i.split(_.UIVOCABULARYDOT)[1]),b){let Ue={isObjectPage:!1,appSchema:e,lineItemAnnotation:(D=n.entityType)==null?void 0:D.annotations.UI[b],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:_.DefinitionName.LineItems};xc(Ue,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let $e=s[I].fullyQualifiedName.split("@");E[_.SchemaTag.annotationPath]=`/${$e[0]}/@${$e[1]}`,E[_.SchemaTag.key]="secondary",E[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}Pc(e,r,n.logger);let N=`${_.DefinitionName.Actions}<${at(_.DefinitionName.LineItems)}>`;Pa(e,r,n.logger,void 0,N),go(e,N,_.DefinitionName.CustomActionPosition)}o(Q6,"addALPViews");function q6(e,t){let n=`${_.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][_.SchemaTag.isViewNode],e.appSchema.definitions[n][_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${_.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${U}${i}`;let r=`${_.DefinitionName.Actions}<${e.viewKey}>`;return u1(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${U}${r}`,n}o(q6,"addViewChartDefinitions");function Y6(e,t,n,i,r,a){let s=q6(e,t);n.definitions[s].properties.annotationPath[_.SchemaTag.hidden]=!0,n.definitions[s].properties.index[_.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[_.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${U}${s}`,description:a||l,title:l}}o(Y6,"addViewChart");function z6(e,t,n,i,r){var m;let a=`${_.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=vt(_.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[_.SchemaTag.isViewNode],l[_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),gs(l.properties.toolBar,_.DefinitionName.ToolBar,s);let f=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${U}${a}`,description:e.title||f,title:f},gs(l.properties.columns,s),l.properties.annotationPath[_.SchemaTag.hidden]=!0,l.properties.index[_.SchemaTag.hidden]=!0,l.properties.entitySet[_.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(_.UIVOCABULARYDOT)[1],d={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s};xc(d,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}o(z6,"addViewLineItems");function J6(e,t,n,i){e.properties[t][_.SchemaTag.isViewNode]=!0,e.properties[t][_.SchemaTag.annotationPath]=n?`/${n}/@${i[_.SchemaTag.annotationPath]}`:void 0,e.properties[t][_.SchemaTag.artifactType]=_.ArtifactType.Manifest,e.properties[t][_.SchemaTag.key]=t,e.properties[t][_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:t}]}o(J6,"addTagsToView");function Z6(e,t,n){var a;let i=n.entityType,r=e;return t.entitySet&&t.entitySet!==e.name&&(r=(a=n.serviceAVT)==null?void 0:a.entitySets.find(s=>s.name===t.entitySet),i=r.entityType),i}o(Z6,"getTargetEntityType");function eq(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${tl.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=vt(_.DefinitionName.ViewCustomColumn,r,e.appSchema);gs(l.properties.position,_.DefinitionName.ViewPosition,r),vt(_.DefinitionName.ViewPosition,r,e.appSchema),Pc(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Cc(e.appSchema,r,i,`${_.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&delete e.appSchema.definitions.Position;let f=`${_.DefinitionName.Actions}<${r}>`,p=`${_.DefinitionName.ViewCustomAction}<${r}>`;Pa(e.appSchema,i,t.logger,p,f,s),vt(_.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let d=`${_.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${U}${d}`,go(e.appSchema,f,d)}o(eq,"addViewCustomExtensions");function tq(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)z6(n,t,e,n.targetAnnotation,i),eq(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)Y6(n,a,n.appSchema,t,n.viewKey,n.title);else if(s.template){let l=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${U}${_.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${U}${_.DefinitionName.LRTableView}`}}}o(tq,"addLRViewParts");function nq(e,t,n,i,r){var l;let a=e.definitions[r];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let f of t){if(!f[_.SchemaTag.key])continue;let p,d=Z6(n.entitySet,f,n),m=d==null?void 0:d.annotations.UI,{visualization:v,targetAnnotation:E,namespace:b,title:I}=vf(f==null?void 0:f[_.SchemaTag.annotationPath],m,n.serviceAVT,f[_.SchemaTag.key],void 0,n.logger);f.entitySet&&(p=(l=n.entityType.navigationProperties.find(G=>G.targetTypeName===b))==null?void 0:l.name);let N=at(f[_.SchemaTag.key]),j={viewKey:N,appSchema:e,targetAnnotation:E,navPropName:p,targetEntityType:d,title:I,entitySet:f.entitySet};tq(v,s,j,n,i,m,f),J6(s,N,b,f)}}o(nq,"addLRViews");function iq(e,t,n,i,r,a){var d,m,v,E,b,I,N,j,G,$,se,ee,le;let s=e.definitions[a],{visualization:l,targetAnnotation:f,namespace:p}=vf(n,(d=t.entityType)==null?void 0:d.annotations.UI,t.serviceAVT,void 0,_.Visualization.LineItem,t.logger);if(l){let Le=l.split(".")[1],D=`${_.DefinitionName.LineItems}OfSPV::${at(Le)}`,Ue=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete Ue[_.SchemaTag.isViewNode],gs(Ue.properties.toolBar,_.DefinitionName.ToolBar,D),Ue[_.SchemaTag.annotationPath]=f,Ue.properties.columns={},gs(Ue.properties.columns,D),delete s.properties,gs(s,`${a}SPV`),s[_.SchemaTag.annotationPath]=`/${p}/@${n}`;let $e=(m=t.entityType)==null?void 0:m.annotations.UI[Le];$e||oe(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOTARGET",{target:Le})});let qe={isObjectPage:!1,appSchema:e,lineItemAnnotation:$e,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D};xc(qe);let nn=(v=Le.split("#"))==null?void 0:v[1],$t=nn?`@${tl.UIAnnotationTerms.LineItem}#${nn}`:`@${tl.UIAnnotationTerms.LineItem}`;Pc(e,i,t.logger,void 0,D,$t),Cc(e,D,i,void 0,$t);let St=`${_.DefinitionName.Actions}<${D}>`,qt=Jm(e,D,_.DefinitionName.CustomTableAction);Pa(e,i,t.logger,zt(qt),St,$t),go(e,St,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${U}${_.DefinitionName.ToolBarLR}`,gs(s.properties.columns,_.DefinitionName.LineItems);let Le=(I=(b=(E=t.entityType)==null?void 0:E.annotations)==null?void 0:b[r])==null?void 0:I.LineItem;!Le&&!((G=(j=(N=i.options)==null?void 0:N.settings)==null?void 0:j.views)!=null&&G.paths)&&oe(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOLINEITEMS")});let D={isObjectPage:!1,appSchema:e,lineItemAnnotation:Le,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_.DefinitionName.LineItems};xc(D),Pc(e,i,t.logger),Cc(e,_.DefinitionName.LineItems,i),Le&&!((ee=(se=($=i.options)==null?void 0:$.settings)==null?void 0:se.views)!=null&&ee.paths)&&(s[_.SchemaTag.annotationPath]=Tr((le=t.entityType)==null?void 0:le.fullyQualifiedName,Le.term,Le.qualifier));let Ue=`${_.DefinitionName.Actions}<${at(_.DefinitionName.LineItems)}>`;Pa(e,i,t.logger,void 0,Ue),go(e,Ue,_.DefinitionName.CustomActionPosition)}}o(iq,"adaptTableDefinition");function rq(e,t,n){var i,r,a,s,l,f,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===_.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===_.TemplateType.ListReportObjectPageV4)return((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((p=(f=t==null?void 0:t.annotations.UI)==null?void 0:f.PresentationVariant)==null?void 0:p.term)}}o(rq,"getDefaultAnnotationPath");function oq(e,t,n,i){var f,p,d,m,v;let r=(d=(p=(f=t.options)==null?void 0:f.settings)==null?void 0:p.views)==null?void 0:d.paths,a=n.entityType,s=rq(t,n.entityType,n.templateType),l=l_(e,n);G6(a,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(iq(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],nq(e,r,n,t,l)):(v=(m=t.options)==null?void 0:m.settings)!=null&&v.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[_.PropertyName.chart][_.SchemaTag.hidden]=!0):n.templateType===_.TemplateType.AnalyticalListPageV4&&(Q6(e,r,n,s,t,l),Cc(e,_.DefinitionName.LineItems,t))}o(oq,"addTableAndViews");function aq(e,t,n){let i=_.DefinitionName.HeaderActions,r=e.definitions[i];r[_.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=_.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[_.SchemaTag.isViewNode]=!0,s.description="Custom Action",Vm(e,t,n,a,i);let l=_.DefinitionName.CustomHeaderActionPosition;vt(l,l,e,!1),s.properties.position.$ref=`${U}${l}`,go(e,i,l)}o(aq,"addHeaderActions");function Vp(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&oi(_.UIVOCABULARY,e.serviceAVT);if(r.properties[_.PropertyName.defaultTemplateAnnotationPath][_.SchemaTag.hidden]=!0,ds(a,r,_.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[_.ManifestSection.ui5].routing.targets;if(!l)return oe(e.logger,{severity:_.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let f=_m(l,n,e.entitySet,i);if(!f)return r;aq(r,f,e.logger),oq(r,f,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,$o(r,j6),r}o(Vp,"generateListReportSchemaV4");var $i=require("@sap-ux/vocabularies-types/vocabularies/UI"),R=Z(re());var rk=Z(vc()),ok=Z(ik()),ak=Z(ix());var sk=Z(re()),ck=Z(re());function F9(e,t){var i;let n=e;for(let r of t){let a=(i=n==null?void 0:n.elements)==null?void 0:i.filter(s=>s.type!=="comment");n=a==null?void 0:a[r.index]}return n}o(F9,"findElementByXMLPath");function lk(e,t){return e[t]?!1:(e[t]={},!0)}o(lk,"ensureObjectExists");function D9(e,t){let n={},i=zt(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(D9,"getPropertiesFromRef");function _9(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:f}=e,{properties:p={}}=r,d=lk(l,i),m=l[i];return cl({fullSchema:f,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||d}o(_9,"traverseDefaultAggregation");function V9(e,t){var n,i,r;return(t==null?void 0:t.defaultAggregation)&&((r=(i=(n=e[t.defaultAggregation])==null?void 0:n.metadata)==null?void 0:i.path)==null?void 0:r.length)===0}o(V9,"isDefaultAggregationAppliable");function cl(e,t){var d,m;let{schema:n,element:i,contextPath:r,config:a={},fullSchema:s}=e,l=!1,{properties:f={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(f=D9(s,n.$ref));for(let v in f){let E=f[v],b=typeof E=="object";if(b&&(p==null?void 0:p.defaultAggregation)===v&&V9(f,p)&&(l=_9(e,t,p)||l,b=!1),!!b)if((m=(d=E.metadata)==null?void 0:d.path)!=null&&m.length){let I=E.metadata.path,N=I.slice(r.length),j=F9(i,N);l=lk(a,v)||l;let G=a[v];l=cl({fullSchema:e.fullSchema,schema:E,element:j,contextPath:I,config:G,parent:e},t)||l}else l=t(e,E,a,v)||l}return l}o(cl,"traverseSchema");function wf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,ak.parse)(e.fileContent),s=(0,ok.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,rk.xml2js)(e.fileContent)}catch(r){oe(n,{severity:ck.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:xm(r)}),location:{path:e.dataSourceUri}})}return i}o(wf,"parseXML");function Mf(e){return`${sk.DefinitionName.CustomExtensionFragment}<${e}>`}o(Mf,"getCustomExtensionFragmentDefinitionKey");function dT(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(dT,"getRootElement");var gx=Z(re()),mx=Z(re());var cd=Z(re());var fk=["Column","Action","FilterField"];function Gs(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(Gs,"getAttribute");function uk(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(uk,"getNodeByName");function lx(e){let t=["id","key","title","text","label","header"],n=e.attributes||[];for(let i of t){let r=n.find(a=>a.key===i);if(r)return r}}o(lx,"getDisplayAttribute");function w9(e){let t=lx(e);if(t)return t.key==="id"?`(#${t.value})`:`(${t.value})`}o(w9,"extractDisplayInfo");function pk(e,t,n){if(!fk.includes(t)){let i=w9(e);n.macroDisplayInfo={name:t,value:i}}}o(pk,"addDisplayInfoForBuildingBlock");function dk(e,t){let n={Table:"Table",FilterBar:"Filter",Chart:"Chart",Page:"Page"},i;if(fk.includes(t)){let a=lx(e);i=a?a.value:t}else{let a=lx(e);if(a){let s=a.key==="id"?"#":"";i=`${t} ${s}${a.value}`}else i=t}let r=n[t];return r?{description:i,icon:r}:{description:i}}o(dk,"getViewNodeDescriptionAndIcon");function M9(e){let t=e.split("/"),n=[],i;for(let r of t)if(r){if(r.startsWith("@")){i=r;break}n.push(r)}return n.length?{path:n.join("/"),term:i}:{term:e}}o(M9,"resolveMetaPath");function fx(e){var b;let{node:t,serviceAVT:n,connectionContext:i}=e,r=Gs(t,"contextPath")||i.contextPath,a=Gs(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let f=r||`/${s}`;if(a){let I=M9(a);I.path&&(f=l?I.path:`${f}/${I.path}`,a=I.term)}let p=n==null?void 0:n.resolvePath(f),d;switch((b=p==null?void 0:p.target)==null?void 0:b._type){case"EntitySet":{d=p.target.entityType;break}case"NavigationProperty":{d=p.target.targetType;break}case"EntityType":{d=p.target;break}}let m,v=a.split("#");v.length&&(m=v[1]);let E;if(a){let I=a.split(".");I.length&&(E=I[I.length-1])}return d?{entityType:d,metaPath:a,qualifier:m,annotationKey:E}:void 0}o(fx,"getEntityTypeResolution");function gk(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(gk,"applyAnnotationPath");function k9(e,t,n){var l,f,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let d=vf(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(d.visualization){let m=d.visualization.split(".")[1];a=(p=(f=r==null?void 0:r.annotations)==null?void 0:f[n])==null?void 0:p[m],a!=null&&a.fullyQualifiedName&&(s=oE(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(k9,"getTableLineItemAnnotationData");var mk={"sap.fe.macros.Chart":o(e=>{let t=fx(e);gk(e.schema,t)},"sap.fe.macros.Chart"),"sap.fe.macros.FilterBar":o(e=>{var s,l,f,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=fx(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let d=oi(cd.UIVOCABULARY,n),m=d&&((p=(f=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:f[d])==null?void 0:p[r.annotationKey]);bP(r.entityType,i,m,a,r.qualifier)}},"sap.fe.macros.FilterBar"),"sap.fe.macros.Table":o(e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=fx(e),a=t.properties.columns,s=t.properties.actions;if(typeof a=="object"&&typeof s=="object"&&r){a.properties||(a.properties={}),s.properties||(s.properties={});let l=oi(cd.UIVOCABULARY,n);if(gk(t,r),t.annotationPath){let f=k9(r,n,l);f!=null&&f.annotationPath&&(t.annotationPath=f.annotationPath);let p={isObjectPage:!1,appSchema:i,lineItemAnnotation:f.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:cd.DefinitionName.LineItems,isMacro:!0};EE(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var hk=Z(re());var j9=new Map([["filterFields","SelectionField::"]]),U9=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),ld={anchor:"anchor",placement:"placement",key:"key"};function $9(e,t){var n;if(typeof(e==null?void 0:e.additionalProperties)=="object"&&(e!=null&&e.additionalProperties.$ref)){let i=(n=t.definitions)==null?void 0:n[zt(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return ld.anchor in r&&ld.placement in r}return!1}o($9,"isCustomExtensionSchema");function yk(e){let t=j9.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=U9.get(e),t&&(n.prefix=t)),n}o(yk,"getAnnotationPrefix");function B9(e,t,n,i){let r=t.properties[n],a=yk(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],f=Gs(l,ld.key)||n,p=Gs(l,ld.anchor),d=Gs(l,ld.placement)||hk.v4.Placement.After,m=a.replace?`${a.prefix}${p}`:p,v={position:{anchor:m in t.properties?m:p,placement:d}};return{key:f,extension:v}}o(B9,"getExtensionData");function H9(e,t,n){let i={},r=[],a={};for(let s in t.properties){let l=t.properties[s];if("metadata"in l){let{extension:f,key:p}=B9(e,t,s,n);i[p]=f,a[p]=s}else r.push([s,l])}Sa(i,r,"","position");for(let s=0;s<r.length;s++){let l=r[s][0],f=t.properties[l];r[s][1].$ref==="#/definitions/"&&l in a&&(f=t.properties[a[l]]),f&&(f.propertyIndex=s)}}o(H9,"updatePropertyIndices");function G9(e,t,n,i){var a;let r=t;if(n.prefix&&r.startsWith(n.prefix))n.replace&&(r=r.replace(n.prefix,""));else if((a=i==null?void 0:i.metadata)!=null&&a.path){let s=i.metadata.path[i.metadata.path.length-1].index;r=Gs(e.subElements[s],"key")||r}return r}o(G9,"getCorrectedAnchorEnumKey");function W9(e,t,n,i){var a,s;let r=yk(i);for(let l in t.properties){let f="anchor",p=t.properties[l];if(!p.metadata)continue;us(n,t,{property:f,schema:p},{excludeKey:l,resolveDefinition:!0});let d=((s=(a=p.properties)==null?void 0:a[f])==null?void 0:s.oneOf)||[];for(let m of d)typeof m=="object"&&typeof m.const=="string"&&(m.const=G9(e,m.const,r,t.properties[m.const]))}}o(W9,"applyEnumsForAnchors");function Tk(e,t,n,i){$9(t,n)&&(i=i||e.name,H9(e,t,i),W9(e,t,n,i))}o(Tk,"handleExtensions");var di=[];for(let e=0;e<256;++e)di.push((e+256).toString(16).slice(1));function vk(e,t=0){return(di[e[t+0]]+di[e[t+1]]+di[e[t+2]]+di[e[t+3]]+"-"+di[e[t+4]]+di[e[t+5]]+"-"+di[e[t+6]]+di[e[t+7]]+"-"+di[e[t+8]]+di[e[t+9]]+"-"+di[e[t+10]]+di[e[t+11]]+di[e[t+12]]+di[e[t+13]]+di[e[t+14]]+di[e[t+15]]).toLowerCase()}o(vk,"unsafeStringify");var bk=require("crypto");var mT=new Uint8Array(256),gT=mT.length;function ux(){return gT>mT.length-16&&((0,bk.randomFillSync)(mT),gT=0),mT.slice(gT,gT+=16)}o(ux,"rng");var Ek=require("crypto"),px={randomUUID:Ek.randomUUID};function K9(e,t,n){var r;if(px.randomUUID&&!t&&!e)return px.randomUUID();e=e||{};let i=e.random??((r=e.rng)==null?void 0:r.call(e))??ux();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[n+a]=i[a];return t}return vk(i)}o(K9,"v4");var dx=K9;var Sk="sap.fe.macros";function Ak(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(Ak,"getElementName");function X9(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(X9,"isElementWithNamespace");function Q9(e){let t={},n=e.attributes||[];for(let i of n){let{key:r,value:a}=i,s="",l="xmlns:";r.startsWith(l)&&(s=r.substring(l.length)),t[a]=s}return t}o(Q9,"getDependencies");function q9(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(q9,"findAvailableName");function Pk(e,t){if(e.properties={},e.$ref){let n=zt(e.$ref),i=t.definitions[n];typeof i=="object"&&i.properties&&(e.type=i.type,e.isViewNode=i.isViewNode,e.properties=JSON.parse(JSON.stringify(i.properties))),delete e.$ref}}o(Pk,"prepareSchemaProperties");function Y9(e,t,n){t.properties||Pk(t,n);let{properties:i={}}=t;for(let r of e.attributes){let a=i[r.key];a&&a.metadata&&(a.metadata.position=r.position)}}o(Y9,"handleAttributes");function z9(e){e.type===mx.MacrosPropertyType.Control&&(e.internalId=dx())}o(z9,"applyIdForMacros");function J9(e,t,n){var i,r;try{(r=(i=mk)[e])==null||r.call(i,t)}catch{oe(n,{severity:gx.LogSeverity.Error,message:Q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(J9,"callAnnotationHandler");function Z9(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===mx.MacrosPropertyType.Control&&(e.controlName=n)}o(Z9,"updateMetadataByReference");function ez(e,t,n){let i=n.schema.metadata.namespaces?[...n.schema.metadata.namespaces]:[],r=n.dependencies,a=[Sk];if(e.ns){for(let s in r)if(e.ns===r[s]){a.push(s);break}}for(let s=n.path.length-1;s>=0;s--){let l=n.path[s].name;if(l.includes(":")&&(l=l.split(":")[1]),/^[A-Z]/.test(l)){let f=`${Sk}.${l.toLowerCase()}`;if(i.includes(f)){a.push(f);break}}}return[...new Set([...a,...i])].map(s=>`${s}.${t}`)}o(ez,"getPosibleRefNames");function tz(e,t,n,i){var v,E,b,I,N;let r=n.schema;t.properties||Pk(t,r);let a=t.properties[i],s=(v=a==null?void 0:a.metadata)==null?void 0:v.type,l=(E=a==null?void 0:a.metadata)==null?void 0:E.defaultAggregation,f={path:n.path,type:s,position:e.position};pk(e,i,f),l&&(f.defaultAggregation=l);let p=(I=(b=a==null?void 0:a.metadata)==null?void 0:b.path)!=null&&I.length?q9(i,t.properties):i,d=[];a!=null&&a.$ref?d.push(zt(a.$ref)):d=ez(e,i,n);let m=!1;for(let j of d){let G=(N=r.definitions)==null?void 0:N[j];if(typeof G!="object")continue;Z9(f,G,j);let{description:$,icon:se}=dk(e,i),ee={$ref:Pm(j),description:$,...se?{icon:se}:{},propertyIndex:n.index,metadata:f};Y9(e,ee,r),t.properties[p]=ee,m=!0,J9(j,{...n,node:e,schema:ee,rootSchema:n.schema},n.logger);break}if(z9(f),!m)if(a!=null&&a.properties)a.metadata=f;else{let j={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:f};t.properties[p]=j}return p}o(tz,"addControlToSchema");function xk(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let a=r.$ref.split(U)[1];a&&t.indexOf(a)===-1&&t.push(a)}xk(r,t)}}o(xk,"populateUsedDefinitionKeys");function nz(e,t){if(typeof t=="object"&&typeof t.additionalProperties=="object"&&t.additionalProperties.$ref){let n=t.additionalProperties.$ref,i=zt(n),r=i.split(".");if(i==="sap.ui.core.Control"||r[r.length-1]===e.name)return!0}return!1}o(nz,"isElementAddableToSchema");function iz(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!uk(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(iz,"getDefaultAggregation");function rz(e,t,n,i){let r={};for(let a=0;a<e.length;a++){let s=e[a],l=!r[s.name];r[s.name]=!0,Ck(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:Ak(s),index:a}]},i)}}o(rz,"handleSubElementsOfXMLNode");function Ck(e,t,n,i){var d,m,v;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(d=n.schema.definitions)==null?void 0:d[zt(t.$ref)]:t;if(X9(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let E=(v=t.metadata)==null?void 0:v.defaultAggregation;E&&nz(e,t.properties[E])&&(t=t.properties[E]);let b=e.name.split(":"),I=tz(e,t,n,b[b.length-1]);if(t.properties[I])t=t.properties[I];else return}let{subElements:l=[]}=e,f=t!=null&&t.metadata?t.metadata.controlName:void 0;i&&f&&n.schema.definitions[f]&&i.indexOf(f)===-1&&(i.push(f),xk(t,i));let p=iz(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),rz(l,t,n,i),r.push({node:e,schema:t});for(let E of r)Tk(E.node,E.schema,n.schema,E.name)}o(Ck,"handleXMLNode");function oz(e,t){var i;let n=[];return(i=e==null?void 0:e.metadata)!=null&&i.namespaces&&e.metadata.namespaces.forEach(r=>{r in t&&n.push(t[r])}),n}o(oz,"getMacrosPrefixes");function ll(e,t,n,i){let r=wf(t.file,!0,i),a=[];if(!r)return;Xt();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){oe(i,{severity:gx.LogSeverity.Error,message:Q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,f=Q9(l),p=oz(e,f);if(p.length){s=JSON.parse(JSON.stringify(e));let d={};for(let m=0;m<l.subElements.length;m++){let v=l.subElements[m],E=!d[v.name];d[v.name]=!0,Ck(v,s,{macrosPrefixes:p,schema:s,dependencies:f,index:m,isUnique:E,path:[{name:Ak(v),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},a)}for(let m in s.definitions)s.definitions[m].metadata&&!a.includes(m)&&delete s.definitions[m]}return s}o(ll,"generateMacrosSchemaDefinition");function Ik(e,t){if(typeof e=="object")for(let n in e){let i=e[n];"template"in i&&i.template&&typeof i.template=="string"&&t.push(i.template),"subSections"in i&&Ik(i.subSections,t)}}o(Ik,"populateTemplates");function Ok(e,t,n,i){var s,l,f;let r=Ic(n.manifest,i),a=[];Ik(((f=(l=(s=r==null?void 0:r.options)==null?void 0:s.settings.content)==null?void 0:l.body)==null?void 0:f.sections)||{},a);for(let p of a){if(!p)continue;let d={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=Mf(p);e.definitions[m]=d;let v=Oc(n.fragments,r,n.manifest,"fragment",p);if(v){d.metadata.filePath=v.relativeFilePath;let{properties:E={},definitions:b={}}=ll(t,v,n.serviceAVT,n.logger)||{};d.properties=E;for(let I in b)e.definitions[I]||(e.definitions[I]=b[I])}}return t}o(Ok,"resolveFragments");var az=["header","layout","sections","footer"],sz=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],yx="Custom Action";function Dk(e,t,n,i,r,a,s){let{actionName:l,namespace:f}=Qm(t.item,e),p=Hr(t.item),m=t.item.$Type===$i.UIAnnotationTypes.DataFieldForActionGroup,v=m?R.DefinitionName.ObjectPageHeaderActionGroup:R.DefinitionName.ObjectPageHeaderAction,E=t.item.fullyQualifiedName.replace(`@${$i.UIAnnotationTerms.Identification}`,`/@${$i.UIAnnotationTerms.Identification}`),b=`${v}<${at(p)}>`,I=i.definitions[b]={type:"object",$ref:`${U}${v}`,description:ci(t.item,r)};if(I[R.SchemaTag.isViewNode]=!0,I[R.SchemaTag.dataType]=er(t.item),I[R.SchemaTag.propertyIndex]=s,m){I.properties={},Ca(I,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let N=(t.item.Actions??[]).map((j,G)=>({item:j,index:G}));hx(N,e,i,r,I,R.ActionType.Annotation)}else I[R.SchemaTag.keys]=[],t.item[R.SchemaKeyName.semanticObject]&&I[R.SchemaTag.keys].push({name:R.SchemaKeyName.semanticObject,value:t.item[R.SchemaKeyName.semanticObject]}),I[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:l});f&&(i.definitions[b][R.SchemaTag.target]=f),I[R.SchemaTag.actionType]=n,I[R.SchemaTag.annotationPath]=`/${E}`,a.properties[p]={$ref:`${U}${b}`},a.properties[p][R.SchemaTag.propertyIndex]=s}o(Dk,"addSingleHeaderActionV4");function Rk(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[R.SchemaTag.isViewNode]=!0,s[R.SchemaTag.propertyIndex]=i,s[R.SchemaTag.keys]=[],s[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:e}),s[R.SchemaTag.actionType]=R.ActionType.Standard,n.properties[r]={$ref:`${U}${a}`},n.properties[r][R.SchemaTag.propertyIndex]=i,s}o(Rk,"addStandardHeaderAction");function Lk(e,t,n,i,r,a){let s=Hr(e.item),l=ci(e.item,n),f=at(`${R.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${$i.UIAnnotationTerms.Identification}`,`/@${$i.UIAnnotationTerms.Identification}`),d=i.definitions[f]={type:"object",$ref:`${U}${R.DefinitionName.FooterActionV4}`,description:l};d[R.SchemaTag.isViewNode]=!0,d[R.SchemaTag.actionType]=t,d[R.SchemaTag.propertyIndex]=a,d[R.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${U}${f}`}}o(Lk,"addSingleFooterAction");function cz(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===$i.UIAnnotationTypes.DataFieldForAction||i.$Type===$i.UIAnnotationTypes.DataFieldForActionGroup||i.$Type===$i.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(sz.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(cz,"groupByCriticality");function lz(e,t,n,i,r,a){let s=e.findIndex(l=>{var f,p;return((p=(f=l.item.annotations)==null?void 0:f.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(Dk(t,e[s],R.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(lz,"addCopyAction");function hx(e,t,n,i,r,a,s=0){let l=s;for(let f of e)Dk(t,f,a,n,i,r,l),l++}o(hx,"addGroupedHeaderActions");function fz(e){let t="RelatedApps",n=e.properties[t]={$ref:`${U}${t}`,description:"Related Apps"};n[R.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[R.SchemaTag.artifactType]=R.ArtifactType.Manifest,n[R.SchemaTag.actionType]=R.ActionType.Standard,n[R.SchemaTag.isViewNode]=!0,n[R.SchemaTag.keys]=[{name:R.SchemaKeyName.action,value:t}]}o(fz,"addRelatedAppsButton");function Nk(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[R.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`:e[R.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`}o(Nk,"setAnnotationPathFromEntitySetOrEntityType");function uz(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?cz(n):{};if(hx(s,r.serviceAVT,t,e,i,R.ActionType.Criticality),r.entitySet){let p=S_(r.entitySet),d=A_(r.entitySet);if(Wm(r.entitySet)&&d){let m=Rk("Edit",t,i,s.length);Nk(m,r.entitySet,e,"UpdateHidden")}if(p){let m=Rk("Delete",t,i,s.length+1);Nk(m,r.entitySet,e,"DeleteHidden")}}let f=s.length+2;lz(l,r.serviceAVT,t,e,i,f),hx(l,r.serviceAVT,t,e,i,R.ActionType.Annotation,f),_k(t,a,R.DefinitionName.CustomHeaderActionOP,r.logger),fz(i)}o(uz,"addHeaderActionCallBackV4");function pz(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===$i.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?r.push({index:l,item:s}):a.push({index:l,item:s}))});for(let s=0;s<r.length;s++){let l=r[s];Lk(l,R.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];Lk(l,R.ActionType.Annotation,e,t,n,r.length+s)}}o(pz,"addFooterActionCallBackV4");function dz(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${$i.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomColumnOP}<${n}>`:R.DefinitionName.CustomColumnOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description="Custom Column";let f=`${R.DefinitionName.CustomColumnOP}<${n}>`;Pc(e,t,r,f,n,i);let p=a?n:R.DefinitionName.PositionOP;vt(R.DefinitionName.PositionOP,p,e,a);let d=a?`${R.DefinitionName.PositionOP}<${n}>`:R.DefinitionName.PositionOP;l.properties.position.$ref=`${U}${d}`,Cc(e,n,t,d,i.replace(/::/g,"/"));let m=e.definitions[n];m&&TE(m,l)}o(dz,"addCustomColumnsOP");function gz(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${$i.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomTableActionOP}<${n}>`:R.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description=yx;let f=`${R.DefinitionName.CustomTableActionOP}<${n}>`,p=`${R.DefinitionName.Actions}<${at(n)}>`;Pa(e,t,r,f,p,i);let d=a?n:R.DefinitionName.CustomActionPositionOP;vt(R.DefinitionName.CustomActionPositionOP,d,e,a);let m=a?`${R.DefinitionName.CustomActionPositionOP}<${n}>`:R.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${U}${m}`,go(e,p,m)}o(gz,"addTableCustomActionsOP");function _k(e,t,n,i){let r=e.definitions[n];r[R.SchemaTag.isViewNode]=!0,r.description=yx;let a=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.ObjectPageHeaderActions:R.DefinitionName.FooterActions;Vm(e,t,i,n,a);let s=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.CustomHeaderActionPositionOP:R.DefinitionName.CustomFooterActionPositionOP;vt(s,s,e,!1),r.properties.position.$ref=`${U}${s}`,go(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${U}${n}`})}o(_k,"addHeaderFooterCustomActionsOP");function mz(e,t,n,i,r){let a=`${R.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[R.SchemaTag.isViewNode]=!0,s.description=yx;let l=`${R.DefinitionName.CustomFormActionOP}<${n}>`,f=`${R.DefinitionName.SectionActions}<${at(n)}>`;Pa(e,t,r,l,f,i),vt(R.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${R.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${U}${p}`,go(e,f,p),e.definitions[f]&&(e.definitions[f].additionalProperties={$ref:`${U}${a}`})}o(mz,"addFormCustomActionsOP");function hz(e,t,n,i,r,a,s){let l=Nc(t),f=t.lastIndexOf("::"),p=f>-1?t.substring(f+2):t,d=vt(R.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(d[R.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),d.properties.columns={$ref:`${U}${l}`},d.properties.toolBar.$ref=si(R.DefinitionName.ObjectPageToolBar,t),d.properties.quickVariantSelection.$ref=si(R.DefinitionName.QuickVariantSelectionV4OP,t);let m=vt(R.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=si(R.DefinitionName.AnnotationPathAsObject,t),vt(R.DefinitionName.AnnotationPathAsObject,t,n),ds(e.entityType,n,`${R.DefinitionName.AnnotationPathAsObject}<${l}>`);let v={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return xc(v,R.DefinitionName.ObjectPageTableColumn,R.DefinitionName.CustomColumnOP,R.DefinitionName.CustomTableActionOP),dz(n,a,l,t,s),gz(n,a,l,t,s),d}o(hz,"handleLineItem");function Vk(e,t,n,i,r,a,s){s&&hT(s,t,R.DefinitionName.ObjectPageSectionTableV4);let l=vt(R.DefinitionName.ObjectPageSectionTableV4,t,n);ba(e,l,Nc(t)),cs(e,l,Nc(t)),l[R.SchemaTag.annotationPath]=e.annotationPath,l[R.SchemaTag.target]=e.namespace,l.properties.table.$ref=si(R.DefinitionName.ObjectPageTable,t);let f=hz(e,t,n,i,r.serviceAVT,a,r.logger);return{sectionTable:l,table:f}}o(Vk,"handleSectionTable");function yz(e,t,n,i,r,a,s){let l;a===R.SectionType.Section?l=R.DefinitionName.ObjectPageSectionForm:a===R.SectionType.HeaderSection&&(l=R.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:si(l,n)};let f=vt(l,n,r);e.ID||(f.properties={}),ba(e,f,n),cs(e,f,n),f[R.SchemaTag.annotationPath]=e.annotationPath,f[R.SchemaTag.target]=e.namespace,f[R.SchemaTag.isViewNode]=!0;let p=Xm(a,e,f,r,R.FioriElementsVersion.v4,n);if(e.base===R.FacetBase.Form){let d=Nc(n);vt(R.DefinitionName.CustomFormActionOP,p,r),mz(r,t,p,d,s)}}o(yz,"handleFormIdentification");function Fk(e,t,n,i,r){n.properties[t]={$ref:`${U}${r}`};let a=vt(R.DefinitionName.CommonHeaderFacetSettings,r,i,!1);Ul(e,a,t),a[R.SchemaTag.annotationPath]=e.annotationPath,a[R.SchemaTag.target]=e.namespace,a[R.SchemaTag.dataType]=Fc(e==null?void 0:e.target),a[R.SchemaTag.isViewNode]=!0}o(Fk,"handleHeaderFacet");function Tz(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,f=ci(l,i),p=l.$Type.split(R.UIVOCABULARYDOT)[1],d=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:si(R.DefinitionName.ObjectPageToolBarAction,d),description:f};m[R.SchemaTag.propertyIndex]=a,m[R.SchemaTag.annotationType]=l.$Type;let v=vt(R.DefinitionName.ObjectPageToolBarAction,at(d),n);v[R.SchemaTag.annotationPath]=Zm(l),v[R.SchemaTag.dataType]=er(l),v.properties={},a++})}return r}o(Tz,"handleChartActions");function vz(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[R.SchemaTag.annotationPath]=Zm(e),r[R.SchemaTag.dataType]=Fc(e.target||e),r[R.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=si(R.DefinitionName.ObjectPageToolBar,t);let a=vt(R.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=si(R.DefinitionName.ObjectPageToolBarActions,t);let s=Tz(e,t,n,i);return{chart:r,chartActions:s}}o(vz,"handleChart");function wk(e,t,n,i,r=e.entityType,a=!1,s){let l=a?R.DefinitionName.CommonHeaderFacetSettings:R.DefinitionName.ObjectPageSectionChart,f=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart;i&&hT(i,t,l);let p=ku(f,t),d=vt(l,p,n,!1);if(Ul(e,d,t),a)return delete d.properties.chart,{parentChartRef:d};d[R.SchemaTag.annotationPath]=Zm(e),d.properties.chart.$ref=si(R.DefinitionName.ObjectPageChart,t);let{chart:m,chartActions:v}=vz(e.target||e,t,n,r);return m[R.SchemaTag.target]=s,{parentChartRef:d,chart:m,chartActions:v}}o(wk,"handleSectionChart");function bz(e,t,n){let r=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${qE(r,n.serviceAVT)}`,l=s.split(R.UIVOCABULARYDOT)[1];return{key:s,type:l}}o(bz,"getVisualizationKeyAndType");function Ez(e,t,n){var r,a;return(a=(r=e.entityType.navigationProperties.find(s=>s.name===t).targetType)==null?void 0:r.annotations)==null?void 0:a.UI[n]}o(Ez,"getTargetFromNavigation");function Sz(e,t,n){let i=e.target[R.FacetBase.PresentationVariant]?e.target[R.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let r=i[0].$target,a=r||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:f}=bz(!!r,a,n),p=r?a:Ez(n,s,f),d=e.target[R.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:f,target:p,namespace:d,navigationPath:s}}o(Sz,"getVisualizationProps");function hT(e,t,n,i){e.properties[t]={$ref:si(n,i||t)}}o(hT,"addPropertyRef");function Mk(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}o(Mk,"getSectionPropertyRef");function Az(e,t,n,i,r,a,s){let{propertyKey:l,navigationKey:f}=Mk(t,r);hT(i,l,R.DefinitionName.ObjectPageSectionTableV4,f);let{sectionTable:p,table:d}=Vk(e,f,n,{target:r.target,entityType:e.entityType},a,s);p[R.SchemaTag.annotationPath]=e.annotationPath,Ul(e,p,t),delete p[R.SchemaTag.isViewNode],d[R.SchemaTag.annotationPath]=`/${r.namespace}/${r.key}`,d[R.SchemaTag.target]=r.namespace}o(Az,"addPVLineItemSection");function Pz(e,t,n,i,r,a=!1){let s=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:f}=Mk(t,r);hT(i,l,s,f);let{parentChartRef:p}=wk(r.target,f,n,void 0,e.entityType,a,r.namespace);p[R.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(ba(e,p,t),w0(e,p)):Ul(e,p,t)}o(Pz,"addPVChartSection");function xz(e,t,n,i,r,a,s){if(!(e!=null&&e.target)){oe(a.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=Sz(e,t,a),f=r===R.SectionType.HeaderSection;l&&(l.type.startsWith(R.Visualization.Chart)?Pz(e,t,n,i,l,f):l.type.startsWith(R.Visualization.LineItem)&&Az(e,t,n,i,l,a,s))}o(xz,"handleSectionPresentationVariant");function Cz(e){let t=e.facets||{};for(let n in t)if(t[n].base===R.FacetBase.CollectionFacet)return!0;return!1}o(Cz,"containsCollectionFacet");function Iz(e,t,n){var a;let i=`${R.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[R.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};Ec(n,R.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(Iz,"createCustomSubSectionReference");function Oz(e,t,n,i){var a,s,l,f;let r=(f=(l=(s=(a=t.options)==null?void 0:a.settings)==null?void 0:s.content)==null?void 0:l.body)==null?void 0:f.sections;if(r)for(let p in r){let d=vt(n,p,e),m=vt(R.DefinitionName.ObjectPageCustomSectionActions,p,e),v=vt(R.DefinitionName.CustomSectionActionOP,p,e),E=`${R.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;d.properties.actions={$ref:`${U}${E}`};let b=`${R.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${U}${b}`},vt(R.DefinitionName.CustomSectionActionPositionOP,p,e);let I=`${R.DefinitionName.CustomSectionActionPositionOP}<${p}>`;v.properties.position.$ref=`${U}${I}`,v[R.SchemaTag.isViewNode]=!0,Pa(e,t,i,b,E,p),go(e,E,I)}}o(Oz,"applyCustomActionsToCustomSections");function Tx(e,t,n,i,r,a,s){var m,v,E,b,I;let l=!1,f;a&&s?(l=!Cz(a),f=Iz(t,s,n.featureToggles)):f=r,e.additionalProperties={$ref:`${U}${f}`},f_(t,e,i,f,l,s,n.logger);let p=t.definitions[f];if(typeof p=="object"&&us(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[R.SchemaKeyName.id,R.SchemaKeyName.key],descriptionAsFallback:!0}),f.includes(R.DefinitionName.ObjectPageCustomSectionFragment)){let N=t.definitions[R.DefinitionName.ObjectPageCustomSectionActions];N.properties={},Oz(t,i,f,n.logger)}let d=p.properties.relatedFacet;if(f!=null&&f.includes(R.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof d=="object"){let N=(I=(b=(E=(v=(m=i.options)==null?void 0:m.settings)==null?void 0:v.content)==null?void 0:E.body)==null?void 0:b.sections)==null?void 0:I[s],j=N&&"subSections"in N?N.subSections:{};for(let G=d.oneOf.length-1;G>=0;G--){let $=d.oneOf[G];j[$.const]||($.hidden=!0)}}}o(Tx,"applyCustomSections");function Rz(e,t,n,i,r,a,s,l){let f=l===0,p=i.properties[t]=jo(n,e,t),d={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:d},d[R.SchemaTag.annotationPath]=e.annotationPath,d[R.SchemaTag.target]=e.namespace,d[R.SchemaTag.keys]=[{name:R.SchemaKeyName.id,value:e.ID}],d[R.SchemaTag.isViewNode]=!0;let m=l+1;for(let v in e.facets)vx(a,e.facets,v,d,n,r,s,m);f&&Tx(d,n,a,s,R.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(Rz,"handleCollection");function vx(e,t,n,i,r,a,s,l=0){let f=t[n],p=`ObjectPage${a}${f.base}<${Nc(n)}>`;switch(f.base){case R.FacetBase.PresentationVariant:case R.FacetBase.SelectionPresentationVariant:{xz(f,n,r,i,a,e,s);break}case R.FacetBase.CollectionFacet:{Rz(f,n,r,i,a,e,s,l);break}case R.FacetBase.LineItem:{if(a===R.SectionType.Section){let d=t[n];Vk(f,n,r,d,e,s,i)}break}case R.FacetBase.Form:case R.FacetBase.Identification:{yz(f,s,n,i,r,a,e.logger);break}case R.FacetBase.DataPoint:{Fk(f,n,i,r,p);break}case R.FacetBase.Chart:{a===R.SectionType.HeaderSection?Fk(f,n,i,r,p):a===R.SectionType.Section&&wk(f,n,r,i);break}case R.FacetBase.Address:case R.FacetBase.Contact:{ju(f,n,i,r,a);break}default:i.properties[n]=jo(r,f,n)}}o(vx,"addSection");function Lz(e,t,n){let i=Em(e.entityType,e.serviceAVT,R.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[R.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[R.DefinitionName.Sections];for(let a in i)vx(e,i,a,r,t,R.SectionType.Section,n);Tx(r,t,e,n,R.DefinitionName.ObjectPageCustomSectionFragment)}o(Lz,"addSections");function Nz(e,t,n,i){let r=bm(n,e.serviceAVT,R.FioriElementsVersion.v4,e.logger),a=t.definitions[R.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)vx(e,r,s,a,t,R.SectionType.HeaderSection,i);Tx(a,t,e,i,R.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionAddress]}}o(Nz,"addHeaderSections");function Fz(e,t,n){let i=e.entityType;zm(t,i),Ym(t,i,e,uz,n),i&&(t.definitions[R.DefinitionName.HeaderSections][R.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${$i.UIAnnotationTerms.HeaderFacets}`),Nz(e,t,i,n)}o(Fz,"addHeader");function fd(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${U}${R.DefinitionName.Sections}`},!e.manifest[R.ManifestSection.ui5].routing||!e.manifest[R.ManifestSection.ui5].routing.targets)return oe(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:R.MANIFESTPATH}}),r;let a=r.definitions[R.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:R.DefinitionName.Sections};if(a[R.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[R.ManifestSection.ui5].routing.targets;if(!s)return oe(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:R.MANIFESTPATH,range:[R.ManifestSection.generic]}}),r;let l=_m(s,R.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(Fz(e,r,l),a[R.SchemaTag.isViewNode]=!0,e.entityType&&(a[R.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${$i.UIAnnotationTerms.Facets}`),Ec(e.featureToggles,R.Features.BuildingBlocks)&&i){r.definitions[R.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{Ok(r,i,e,l.id)}catch(f){oe(e.logger,{severity:R.LogSeverity.Error,message:f})}}Lz(e,r,l),qm(r,e,R.FioriElementsVersion.v4,pz),_k(r,l,R.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[R.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[R.DefinitionName.GenericColumnsOP],delete r.definitions[R.DefinitionName.GenericSections],delete r.definitions[R.DefinitionName.GenericSubSections],delete r.definitions[R.DefinitionName.ObjectPageChart],delete r.definitions[R.DefinitionName.ObjectPageSectionAddress],delete r.definitions[R.DefinitionName.ObjectPageSectionChart],delete r.definitions[R.DefinitionName.ObjectPageSectionContact],delete r.definitions[R.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[R.DefinitionName.ObjectPageSectionForm],delete r.definitions[R.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[R.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[R.DefinitionName.ObjectPageSubSections],delete r.definitions[R.DefinitionName.ObjectPageTable],delete r.definitions[R.DefinitionName.ObjectPageToolBar],delete r.definitions[R.DefinitionName.ObjectPageToolBarAction],delete r.definitions[R.DefinitionName.ObjectPageToolBarActions],delete r.definitions[R.DefinitionName.QuickVariantSelectionV4OP],$o(r,az),r}o(fd,"generateObjectPageSchemaV4");function bx(e,t){return JSON.parse(JSON.stringify(t))}o(bx,"generateFreestyleSchemaV4");var no=Z(re());function Ex(e,t,n,i,r,a,s,l,f){let p=$r(n,r),{entitySet:d,entityType:m}=fl(p,s,t,r),v={templateType:no.TemplateType.ListReportObjectPageV4,fioriElementsVersion:no.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:d,entityType:m,featureToggles:f};return fd(v,e,s,l)}o(Ex,"generateObjectPageInterfaceV4");function yT(e,t,n,i,r,a,s){Xt();let l=$r(i,r),{entitySet:f,entityType:p}=fl(l,s,n,r),d={templateType:e,fioriElementsVersion:no.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:f,entityType:p},m=e===no.TemplateType.ListReportObjectPageV4?no.v4.FE_TEMPLATE_V4_LIST_REPORT:no.v4.FE_TEMPLATE_V4_ALP;return Vp(d,t,m,s)}o(yT,"generateListReportInterfaceV4");function Sx(e,t,n,i,r,a){let s=$r(n,a),l={templateType:e,fioriElementsVersion:no.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return bx(l,t)}o(Sx,"generateFreestyleInterfaceV4");function Ax(e,t,n,i,r,a,s){let l={};if(Ec(a,no.Features.BuildingBlocks)){let f=$r(r,s),p=Bo(i||[],t,n,s);l=p!=null&&p.file.fileContent?ll(e,p,f,s):{}}return l}o(Ax,"generateFPMCustomPageInterfaceV4");var pl=require("@sap-ux/vocabularies-types/vocabularies/UI"),Bk=Z(re());var ul=Z(re());var Uk=new Map([[ul.PageTypeV2.ListReport,ul.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[ul.PageTypeV2.ObjectPage,ul.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),kk=o((e,t)=>{let n=["controllerNames","controllerName"];for(let i of n)i in e?t[i]=e[i]:i in t&&delete t[i]},"applyControllerNameProperties"),jk=o(e=>{var t;for(let[n,i]of Uk)if(e!=null&&e.startsWith(i)){let r=n;if(e.includes("#")){let a=(t=e.split("#")[1])==null?void 0:t.split("::")[1];r+=`#${a}`}return r}},"getExtensionKeyForImport"),Dz=o((e,t)=>{let n="";for(let[r,a]of Uk)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),$k={manifest:{path:o(()=>`sap.ui5/extends/extensions/${ul.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=jk(n);i&&(t[i]={},kk(e[n],t[i]))}return Object.keys(t).length?t:void 0},"import"),export:o((e,t,n)=>{var a;let i=(t==null?void 0:t.id)||"",r=((a=t==null?void 0:t.settings)==null?void 0:a[n])||{};for(let s in r){let l=Dz(s,i);e[l]||(e[l]={}),kk(r[s],e[l])}for(let s in e){let l=jk(s);l&&!r[l]&&delete e[s]}},"export")}};var pt=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),bT=o(e=>pt(e)+"/views/paths","getSettingsPathForLRViewsPaths"),ET=o(e=>pt(e)+"/content/header","getSettingsPathForHeaderOP"),_z=o(e=>pt(e)+"/content/footer","getSettingsPathForFooterOP"),ro=o(e=>pt(e)+"/controlConfiguration","getControlConfigurationPath"),ST=o((e,t,n)=>ro(e)+`/@${pl.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),AT=o(e=>ro(e)+`/@${pl.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Ws=o((e,t,n,i)=>ro(e)+`/@${pl.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),Px=o((e,t,n,i)=>AT(e)+`/filterFields/${i}`,"getFilterFieldPath"),Or=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?ro(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),Vz=o((e,t)=>(e??[]).join("/").startsWith("table/views")&&t===void 0,"isNewlyCreatedView"),rr=o((e,t,n,i,r,a,s)=>r?Or(e,t,n,i,r):Object.keys(a??{}).length===0&&Vz(s,r)?"":ro(e)+`/@${pl.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),PT=o((e,t,n,i,r,a,s)=>rr(e,t,n,i,r,a,s)+Bk.QUICKVARPATH,"getQuickVariantPath"),or=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?ro(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),Bi=o((e,t,n,i,r)=>r?or(e,t,n,i,r):ro(e)+`/@${pl.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),oo=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?ro(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Rr=o((e,t,n,i,r)=>r?oo(e,t,n,i,r):ro(e)+`/@${pl.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),ar=o((e,t,n,i)=>ro(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),Hn=o((e,t,n,i)=>ro(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),gi=o((e,t,n,i)=>ET(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),xT=o((e,t,n,i)=>pt(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),Co=o((e,t,n,i)=>_z(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),wn=o((e,t,n)=>ro(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),jf=o((e,t,n,i)=>{let r=pt(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),Ks=o((e,t,n,i)=>pt(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Lr=o((e,t,n,i)=>{let r=pt(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),Uf=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let f=pt(e)+`/content/body/sections/${l}`;return i&&(f+="/"+i),f},"getCustomSubSectionPath"),vT=class vT{};o(vT,"ApplicationV4"),h([kt("settings")],vT.prototype,"settings",2);var TT=vT,io=class io{};o(io,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],io.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],io.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],io.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),x({since:"1.78.0"})],io.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"})],io.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}})],io.prototype,"dependencies",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],io.prototype,"viewType",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],io.prototype,"path",2),h([y($k)],io.prototype,"controllerExtensions",2);var kf=io;var he=Z(re());var PI={};yc(PI,{ALPChart:()=>FC,ALPTable:()=>Qf,ActionAfterExecutionConfiguration:()=>nI,ActionAfterExecutionConfigurationFooter:()=>Wx,ActionAfterExecutionConfigurationForm:()=>qx,ActionAfterExecutionConfigurationOP:()=>Nd,ActionAfterExecutionConfigurationObjectPageHeader:()=>sC,ActionAfterExecutionConfigurationToolBarLR:()=>dI,Actions:()=>lI,AdditionalSemanticObject:()=>eI,CommonHeaderFacetSettings:()=>tc,CommonViewSettings:()=>Xf,CustomActionPosition:()=>TI,CustomActionPositionOP:()=>qC,CustomFilterField:()=>Ox,CustomFilterFieldPosition:()=>Ix,CustomFooterActionOP:()=>Qx,CustomFooterActionPositionOP:()=>Xx,CustomFormActionOP:()=>iC,CustomHeaderAction:()=>Dx,CustomHeaderActionOP:()=>uC,CustomHeaderActionPosition:()=>gd,CustomHeaderActionPositionOP:()=>fC,CustomSectionActionOP:()=>Ux,CustomSectionActionPositionOP:()=>jx,CustomTableAction:()=>vI,CustomTableActionOP:()=>YC,FilterBar:()=>xx,FlexSettings:()=>gC,FooterActionV4:()=>Kx,FormAction:()=>Yx,Header:()=>Lx,HeaderActions:()=>Rx,HeaderSections:()=>bC,LRChartView:()=>DC,LRTableView:()=>_C,MultiTableModeV4:()=>wC,ObjectPageCustomHeaderSectionFlexSettings:()=>_x,ObjectPageCustomHeaderSectionFragment:()=>Vx,ObjectPageCustomSectionActions:()=>wx,ObjectPageCustomSectionFragment:()=>Bf,ObjectPageCustomSubSectionFragment:()=>Mx,ObjectPageFooter:()=>Bx,ObjectPageFooterActions:()=>$x,ObjectPageForm:()=>Zx,ObjectPageFormActionGroup:()=>zx,ObjectPageFormActions:()=>Jx,ObjectPageHeader:()=>oC,ObjectPageHeaderAction:()=>cC,ObjectPageHeaderActionGroup:()=>lC,ObjectPageHeaderActions:()=>rC,ObjectPageHeaderSectionAddress:()=>vC,ObjectPageHeaderSectionChart:()=>hC,ObjectPageHeaderSectionContact:()=>TC,ObjectPageHeaderSectionDataPoint:()=>yC,ObjectPageHeaderSectionForm:()=>mC,ObjectPageLayout:()=>IC,ObjectPageTable:()=>Id,ObjectPageTableColumn:()=>Jf,ObjectPageTableColumnAction:()=>HC,ObjectPageToolBarAction:()=>XC,ObjectPageToolBarActionGroup:()=>QC,ObjectPageToolBarActions:()=>zC,PersonalizationType:()=>RC,PersonalizationTypeOP:()=>$C,Position:()=>oI,PositionOP:()=>GC,QuickVariantSelectionV4:()=>NC,QuickVariantSelectionV4OP:()=>BC,RelatedApps:()=>tI,Table:()=>MC,TableColumn:()=>jT,TableColumnAction:()=>iI,TableCreationModeOP:()=>UC,TableCustomColumn:()=>sI,TableCustomColumnOP:()=>WC,TableSettings:()=>FT,TableViewExtension:()=>VC,TableViewSettings:()=>Pd,ToolBar:()=>fI,ToolBarAction:()=>gI,ToolBarActionGroup:()=>mI,ViewCustomActionPosition:()=>bI,ViewPersonalizationType:()=>LC,ViewPosition:()=>aI,ViewTableColumn:()=>UT,ViewTableColumnAction:()=>rI,ViewTableCustomAction:()=>EI,ViewTableCustomColumn:()=>cI,ViewToolBarAction:()=>yI,ViewToolBarActionGroup:()=>hI,VisualFilter:()=>Cx,checkViewOrder:()=>kC,deleteCreationModeProperty:()=>Cd,deletePersonalizationProperty:()=>Ro,exportCreationModeProperty:()=>xd,exportPersonalization:()=>wT,exportPersonalizationProperty:()=>Oo});function wz(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(wz,"exportVisualFilterValueList");var $f=class $f{};o($f,"FilterBar"),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.99.0"}),xe("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],$f.prototype,"hideFilterBar",2),h([y({manifest:{path:AT}}),x({since:"1.93.0"}),xe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],$f.prototype,"initialLayout",2),h([y({manifest:{path:AT}}),x({since:"1.93.0"}),xe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],$f.prototype,"layout",2);var xx=$f,ud=class ud{};o(ud,"VisualFilter"),h([y({manifest:{path:Px}}),x({since:"1.93.0"}),xe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],ud.prototype,"availability",2),h([y({manifest:{path:Px,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:wz,key:"visualFilter"}}),x({since:"1.93.0"})],ud.prototype,"visualFilterValueList",2);var Cx=ud,pd=class pd{};o(pd,"CustomFilterFieldPosition"),h([y({manifest:{path:o((t,n,i,r)=>Ws(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],pd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ws(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],pd.prototype,"placement",2);var Ix=pd,Xs=class Xs{};o(Xs,"CustomFilterField"),h([y({manifest:{path:Ws}}),x({since:"1.77.0"})],Xs.prototype,"label",2),h([y({manifest:{path:Ws}}),x({since:"1.77.0"})],Xs.prototype,"property",2),h([y({manifest:{path:Ws}}),x({since:"1.77.0"})],Xs.prototype,"template",2),h([y({manifest:{path:Ws}}),x({since:"1.77.0"})],Xs.prototype,"required",2),h([y({manifest:{path:Ws}}),x({since:"1.77.0"})],Xs.prototype,"position",2);var Ox=Xs;var Nx=class Nx{};o(Nx,"HeaderActions");var Rx=Nx,Fx=class Fx{};o(Fx,"Header");var Lx=Fx;var dd=class dd{};o(dd,"CustomHeaderActionPosition"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],dd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],dd.prototype,"placement",2);var gd=dd,Qs=class Qs{};o(Qs,"CustomHeaderAction"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Qs.prototype,"text",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Qs.prototype,"position",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Qs.prototype,"press",2),h([y({manifest:{path:gi},generate:Jn}),x({since:"1.84.0"})],Qs.prototype,"visible",2),h([y({manifest:{path:gi},generate:Jn}),x({since:"1.84.0"})],Qs.prototype,"enabled",2);var Dx=Qs;var CT=class CT{};o(CT,"ObjectPageCustomHeaderSectionFlexSettings"),h([y({manifest:{path:o((t,n,i)=>Lr(t,n,i,"flexSettings"),"path")}}),x({since:"1.81.0"})],CT.prototype,"designtime",2);var _x=CT,sr=class sr{};o(sr,"ObjectPageCustomHeaderSectionFragment"),h([y({manifest:{path:o((t,n,i)=>Lr(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],sr.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>Lr(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],sr.prototype,"relativePosition",2),h([y({manifest:{path:Lr},generate:ai}),x({since:"1.84.0"})],sr.prototype,"visible",2),h([y({manifest:{path:Lr}}),x({since:"1.77.0"})],sr.prototype,"title",2),h([y({manifest:{path:Lr}}),x({since:"1.77.0"})],sr.prototype,"subTitle",2),h([y({manifest:{path:Lr,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],sr.prototype,"fragmentName",2),h([y({manifest:{path:Lr,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),x({since:"1.86.0"})],sr.prototype,"templateEdit",2),h([y({manifest:{path:Lr}}),x({since:"1.81.0"})],sr.prototype,"stashed",2),h([y({manifest:{path:Lr}}),x({since:"1.81.0"})],sr.prototype,"flexSettings",2),h([y({manifest:{path:Lr}}),x({since:"1.81.0"})],sr.prototype,"requestGroupId",2),h([y({manifest:{path:Lr,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],sr.prototype,"controls",2);var Vx=sr;var kx=class kx{};o(kx,"ObjectPageCustomSectionActions");var wx=kx,qs=class qs{};o(qs,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:o((t,n,i)=>jf(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],qs.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>jf(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],qs.prototype,"relativePosition",2),h([y({manifest:{path:jf}}),x({since:"1.77.0"})],qs.prototype,"title",2),h([y({manifest:{path:jf,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],qs.prototype,"fragmentName",2),h([y({manifest:{path:jf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],qs.prototype,"controls",2);var Bf=qs,Ys=class Ys extends Bf{};o(Ys,"ObjectPageCustomSubSectionFragment"),h([y({manifest:{path:o((...t)=>`${Uf.apply({},t)}/position`,"path"),key:"anchor"}}),x({since:"1.77.0"})],Ys.prototype,"relatedFacet",2),h([y({manifest:{path:o((...t)=>`${Uf.apply({},t)}/position`,"path"),key:"placement"}}),x({since:"1.77.0"})],Ys.prototype,"relativePosition",2),h([y({manifest:{path:Uf}}),x({since:"1.77.0"})],Ys.prototype,"title",2),h([y({manifest:{path:Uf,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],Ys.prototype,"fragmentName",2),h([y({manifest:{path:Uf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],Ys.prototype,"controls",2);var Mx=Ys;var md=class md{};o(md,"CustomSectionActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Ks(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],md.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ks(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],md.prototype,"placement",2);var jx=md,zs=class zs{};o(zs,"CustomSectionActionOP"),h([y({manifest:{path:Ks}}),x({since:"1.84.0"})],zs.prototype,"text",2),h([y({manifest:{path:Ks}}),x({since:"1.84.0"})],zs.prototype,"position",2),h([y({manifest:{path:Ks}}),x({since:"1.84.0"})],zs.prototype,"press",2),h([y({manifest:{path:Ks},generate:ai}),x({since:"1.84.0"})],zs.prototype,"visible",2),h([y({manifest:{path:Ks},generate:ai}),x({since:"1.84.0"})],zs.prototype,"enabled",2);var Ux=zs;var Hx=class Hx{};o(Hx,"ObjectPageFooterActions");var $x=Hx,Gx=class Gx{};o(Gx,"ObjectPageFooter");var Bx=Gx;var hd=class hd{};o(hd,"ActionAfterExecutionConfigurationFooter"),h([y({manifest:{path:o((t,n,i,r)=>Co(t,n,i,r)+"/afterExecution","path")}}),xe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],hd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Co(t,n,i,r)+"/afterExecution","path")}})],hd.prototype,"enableAutoScroll",2);var Wx=hd,IT=class IT{};o(IT,"FooterActionV4"),h([y({manifest:{path:Co}}),x({since:"1.84.0"})],IT.prototype,"afterExecution",2);var Kx=IT,yd=class yd{};o(yd,"CustomFooterActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Co(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],yd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Co(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],yd.prototype,"placement",2);var Xx=yd,Js=class Js{};o(Js,"CustomFooterActionOP"),h([y({manifest:{path:Co}}),x({since:"1.84.0"})],Js.prototype,"text",2),h([y({manifest:{path:Co}}),x({since:"1.84.0"})],Js.prototype,"position",2),h([y({manifest:{path:Co}}),x({since:"1.84.0"})],Js.prototype,"press",2),h([y({manifest:{path:Co},generate:ai}),x({since:"1.84.0"})],Js.prototype,"visible",2),h([y({manifest:{path:Co},generate:ai}),x({since:"1.84.0"})],Js.prototype,"enabled",2);var Qx=Js;var Td=class Td{};o(Td,"ActionAfterExecutionConfigurationForm"),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/afterExecution","path")}}),xe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Td.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/afterExecution","path")}})],Td.prototype,"enableAutoScroll",2);var qx=Td,OT=class OT{};o(OT,"FormAction"),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],OT.prototype,"afterExecution",2);var Yx=OT,eC=class eC{};o(eC,"ObjectPageFormActionGroup");var zx=eC,tC=class tC{};o(tC,"ObjectPageFormActions");var Jx=tC,nC=class nC{};o(nC,"ObjectPageForm");var Zx=nC;var Zs=class Zs{};o(Zs,"CustomFormActionOP"),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Zs.prototype,"text",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Zs.prototype,"position",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Zs.prototype,"press",2),h([y({manifest:{path:Hn},generate:ai}),x({since:"1.84.0"})],Zs.prototype,"visible",2),h([y({manifest:{path:Hn},generate:ai}),x({since:"1.84.0"})],Zs.prototype,"enabled",2);var iC=Zs;var aC=class aC{};o(aC,"ObjectPageHeaderActions");var rC=aC,Hf=class Hf{};o(Hf,"ObjectPageHeader"),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"})],Hf.prototype,"editableHeaderContent",2),h([y({manifest:{path:ET}}),x({since:"1.84.0"})],Hf.prototype,"visible",2),h([y({manifest:{path:ET}}),x({since:"1.84.0"})],Hf.prototype,"anchorBarVisible",2);var oC=Hf;var vd=class vd{};o(vd,"ActionAfterExecutionConfigurationObjectPageHeader"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}}),xe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],vd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}})],vd.prototype,"enableAutoScroll",2);var sC=vd,RT=class RT{};o(RT,"ObjectPageHeaderAction"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],RT.prototype,"afterExecution",2);var cC=RT,pC=class pC{};o(pC,"ObjectPageHeaderActionGroup");var lC=pC,dC=class dC extends gd{};o(dC,"CustomHeaderActionPositionOP");var fC=dC,ec=class ec{};o(ec,"CustomHeaderActionOP"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],ec.prototype,"text",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],ec.prototype,"position",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],ec.prototype,"press",2),h([y({manifest:{path:gi},generate:ai}),x({since:"1.84.0"})],ec.prototype,"visible",2),h([y({manifest:{path:gi},generate:ai}),x({since:"1.84.0"})],ec.prototype,"enabled",2);var uC=ec;var LT=class LT{};o(LT,"FlexSettings"),h([y({manifest:{path:o((t,n,i)=>ST(t,n,i)+"/flexSettings","path")}}),x({since:"1.81.0"}),xe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],LT.prototype,"designtime",2);var gC=LT,bd=class bd{};o(bd,"CommonHeaderFacetSettings"),h([y({manifest:{path:ST}}),x({since:"1.81.0"})],bd.prototype,"stashed",2),h([y({manifest:{path:ST}}),x({since:"1.81.0"})],bd.prototype,"flexSettings",2);var tc=bd,EC=class EC extends tc{};o(EC,"ObjectPageHeaderSectionForm");var mC=EC,SC=class SC extends tc{};o(SC,"ObjectPageHeaderSectionChart");var hC=SC,AC=class AC extends tc{};o(AC,"ObjectPageHeaderSectionDataPoint");var yC=AC,PC=class PC extends tc{};o(PC,"ObjectPageHeaderSectionContact");var TC=PC,xC=class xC extends tc{};o(xC,"ObjectPageHeaderSectionAddress");var vC=xC,CC=class CC{};o(CC,"HeaderSections");var bC=CC;var NT=class NT{};o(NT,"ObjectPageLayout"),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],NT.prototype,"sectionLayout",2);var IC=NT;var MT=Z(re());var OC=Z(re());var Mz=o((e,t)=>{let n=e;for(let i of t.split("/"))n[i]||(i==="paths"?n[i]=[]:n[i]={}),n=n[i];return n},"getManifestSectionByPathV4");function ea(e,t,n,i,r,a){let s=bT(e),l=Mz(JSON.parse(JSON.stringify(t)),s),f;for(let p=0;p<l.length;p++){let d=l[p];if(d&&(d[OC.SchemaTag.key]===(a==null?void 0:a.key)||d[OC.SchemaTag.key]===i)){f=`${s}/${p}`;break}}return f||(f=`${s}/[]`),f}o(ea,"getSettingsPathForLRViewsPath");function kz(e,t,n,i,r,a){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let f of l){let p=Number(f),d=e[f];t===d.key?s[n]=d:p>=i&&p<=r?s[Math.max(0,p+a)]=d:s[f]=d}return s}o(kz,"fillNewlyOrderedViews");function kC(e,t){let n=t.key,i=e.findIndex(a=>(a==null?void 0:a.key)===n),r=t.index;if(i>-1&&i!==r){let a=r>i?-1:1,s=Math.min(Number(i),r),l=Math.max(Number(i),r),f=kz(e,n,r,s,l,a);for(let p of Object.keys(f))e[p]=f[p]}}o(kC,"checkViewOrder");function wT(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(wT,"exportPersonalization");function Oo(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(Oo,"exportPersonalizationProperty");function Ro(e,t,n,i){typeof e.personalization=="object"&&e.personalization[i]!==void 0?(delete e.personalization[i],Object.keys(e.personalization).length===0&&delete e.personalization):typeof e.personalization=="string"&&e.personalization!==void 0&&delete e.personalization}o(Ro,"deletePersonalizationProperty");function jC(e,t,n,i,r,a){var l;let s;if(!t||Object.keys(t).length===0){let f=e;Object.keys(f).forEach(p=>{f[p]&&f[p].key===r&&(e[Number(p)]={},s=p)})}if(s){let f=(l=a.table)==null?void 0:l.views;for(let p in f)f[p].index>s&&f[p].index--}}o(jC,"deleteView");function xd(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(xd,"exportCreationModeProperty");function Cd(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0?delete e.creationMode[t]:typeof e.creationMode=="string"&&e.creationMode!==void 0&&delete e.creationMode}o(Cd,"deleteCreationModeProperty");function Hk(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(Hk,"importPersonalization");function Gk(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(Gk,"determineIndexOfView");var Gf=class Gf{};o(Gf,"PersonalizationType"),h([y({manifest:{path:rr,export:Oo,delete:Ro}})],Gf.prototype,"column",2),h([y({manifest:{path:rr,export:Oo,delete:Ro}})],Gf.prototype,"sort",2),h([y({manifest:{path:rr,export:Oo,delete:Ro}})],Gf.prototype,"filter",2);var RC=Gf,Wf=class Wf{};o(Wf,"ViewPersonalizationType"),h([y({manifest:{path:Or,export:Oo,delete:Ro}})],Wf.prototype,"column",2),h([y({manifest:{path:Or,export:Oo,delete:Ro}})],Wf.prototype,"sort",2),h([y({manifest:{path:rr,export:Oo,delete:Ro}})],Wf.prototype,"filter",2);var LC=Wf,Kf=class Kf{};o(Kf,"QuickVariantSelectionV4"),h([y({manifest:{path:PT}})],Kf.prototype,"paths",2),h([y({manifest:{path:PT}})],Kf.prototype,"hideTableTitle",2),h([y({manifest:{path:PT}})],Kf.prototype,"showCounts",2);var NC=Kf,Io=class Io{};o(Io,"TableSettings"),h([y({manifest:{path:rr}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Io.prototype,"type",2),h([y({manifest:{path:rr,import:Hk,export:wT}}),x({since:"1.86.0"})],Io.prototype,"personalization",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],Io.prototype,"selectionMode",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"})],Io.prototype,"selectAll",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"})],Io.prototype,"selectionLimit",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Io.prototype,"enableExport",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"})],Io.prototype,"quickVariantSelection",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Io.prototype,"condensedTableLayout",2);var FT=Io,DT=class DT{};o(DT,"ALPChart"),h([y({manifest:{path:o(t=>pt(t)+"/views/paths/0/primary/0","path"),delete:jC}})],DT.prototype,"annotationPath",2);var FC=DT,dl=class dl{};o(dl,"CommonViewSettings"),h([y({manifest:{path:ea,delete:Sc}})],dl.prototype,"key",2),h([y({manifest:{path:bT,import:Gk,export:o((t,n)=>{kC(t,n)},"export"),delete:jC}})],dl.prototype,"index",2),h([y({manifest:{path:ea,delete:Sc}})],dl.prototype,"annotationPath",2),h([y({manifest:{path:ea}})],dl.prototype,"entitySet",2);var Xf=dl,ao=class ao extends Xf{};o(ao,"TableViewSettings"),h([y({manifest:{path:Or}}),x({since:"1.84.0"})],ao.prototype,"type",2),h([y({manifest:{path:Or,import:Hk}}),x({since:"1.86.0"})],ao.prototype,"personalization",2),h([y({manifest:{path:Or}}),x({since:"1.84.0"})],ao.prototype,"selectionMode",2),h([y({manifest:{path:Or}}),x({since:"1.84.0"})],ao.prototype,"selectAll",2),h([y({manifest:{path:Or}}),x({since:"1.84.0"})],ao.prototype,"selectionLimit",2),h([y({manifest:{path:Or}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],ao.prototype,"enableExport",2),h([y({manifest:{path:Or}}),x({since:"1.84.0"})],ao.prototype,"quickVariantSelection",2),h([y({manifest:{path:Or}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],ao.prototype,"condensedTableLayout",2),h([y({manifest:{path:Or}}),x({since:"1.117.0"}),xe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ao.prototype,"hierarchyQualifier",2);var Pd=ao;function jz(e){return Pd}o(jz,"getTableViewSettings");var Ed=class Ed extends Pd{};o(Ed,"ALPTable"),h([y({manifest:{path:o(t=>pt(t)+"/views/paths/0/secondary/0","path"),delete:Sc}})],Ed.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Ed.prototype,"initialLoad",2);var Qf=Ed,_T=class _T extends Xf{};o(_T,"LRChartView"),h([y({manifest:{path:ea},generate:Jn})],_T.prototype,"visible",2);var DC=_T,Sd=class Sd extends jz(Xf){};o(Sd,"LRTableView"),h([y({manifest:{path:ea}})],Sd.prototype,"keepPreviousPersonalization",2),h([y({manifest:{path:ea},generate:Jn})],Sd.prototype,"visible",2);var _C=Sd,nc=class nc{};o(nc,"TableViewExtension"),h([y({manifest:{path:ea}})],nc.prototype,"key",2),h([y({manifest:{path:bT,import:Gk,export:o((t,n)=>{kC(t,n)},"export"),delete:jC}})],nc.prototype,"index",2),h([y({manifest:{path:ea}})],nc.prototype,"label",2),h([y({manifest:{path:ea}})],nc.prototype,"template",2),h([y({manifest:{path:ea},generate:Jn})],nc.prototype,"visible",2);var VC=nc,VT=class VT{};o(VT,"MultiTableModeV4"),h([y({manifest:{path:o(t=>pt(t)+"/views","path")}})],VT.prototype,"showCounts",2);var wC=VT,Ad=class Ad extends FT{};o(Ad,"Table"),h([y({manifest:{path:o(t=>pt(t)+"/views/paths/0/secondary/0","path"),delete:Sc}})],Ad.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Ad.prototype,"initialLoad",2);var MC=Ad;var qf=class qf{};o(qf,"TableCreationModeOP"),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:o((t,n,i)=>{xd(t,n,i)},"export"),delete:o((t,n,i,r)=>{Cd(t,r)},"delete")}})],qf.prototype,"name",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:o((t,n,i)=>{xd(t,n,i)},"export"),delete:o((t,n,i,r)=>{Cd(t,r)},"delete")}})],qf.prototype,"createAtEnd",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:o((t,n,i)=>{xd(t,n,i)},"export"),delete:o((t,n,i,r)=>{Cd(t,r)},"delete")}})],qf.prototype,"inlineCreationRowsHiddenInEditMode",2);var UC=qf,Yf=class Yf{};o(Yf,"PersonalizationTypeOP"),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:Oo,delete:Ro}})],Yf.prototype,"column",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:Oo,delete:Ro}})],Yf.prototype,"sort",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:Oo,delete:Ro}})],Yf.prototype,"filter",2);var $C=Yf,zf=class zf{};o(zf,"QuickVariantSelectionV4OP"),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i)+MT.QUICKVARPATH,"path")}})],zf.prototype,"paths",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i)+MT.QUICKVARPATH,"path")}})],zf.prototype,"hideTableTitle",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i)+MT.QUICKVARPATH,"path")}})],zf.prototype,"showCounts",2);var BC=zf,cr=class cr{};o(cr,"ObjectPageTable"),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],cr.prototype,"type",2),h([y({manifest:{path:wn,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),x({since:"1.84.0"})],cr.prototype,"creationMode",2),h([y({manifest:{path:wn,import:o(t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}},"import"),export:wT}}),x({since:"1.86.0"})],cr.prototype,"personalization",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],cr.prototype,"selectionMode",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],cr.prototype,"selectAll",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],cr.prototype,"selectionLimit",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],cr.prototype,"enableExport",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],cr.prototype,"quickVariantSelection",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],cr.prototype,"condensedTableLayout",2),h([y({manifest:{path:wn}}),x({since:"1.86.0"})],cr.prototype,"enableFullScreen",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],cr.prototype,"enablePaste",2);var Id=cr;var Od=class Od{};o(Od,"ActionAfterExecutionConfigurationOP"),h([y({manifest:{path:o((t,n,i,r)=>ar(t,n,i,r)+"/afterExecution","path")}}),xe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Od.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>ar(t,n,i,r)+"/afterExecution","path")}})],Od.prototype,"enableAutoScroll",2);var Nd=Od,Rd=class Rd{};o(Rd,"ObjectPageTableColumn"),h([y({manifest:{path:ar}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Rd.prototype,"width",2),h([y({manifest:{path:ar}}),x({since:"1.85.0"})],Rd.prototype,"availability",2);var Jf=Rd,KC=class KC extends Jf{};o(KC,"ObjectPageTableColumnAction");var HC=KC,Ld=class Ld{};o(Ld,"PositionOP"),h([y({manifest:{path:o((t,n,i,r)=>ar(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Ld.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>ar(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Ld.prototype,"placement",2);var GC=Ld,ta=class ta{};o(ta,"TableCustomColumnOP"),h([y({manifest:{path:ar}}),x({since:"1.84.0"})],ta.prototype,"position",2),h([y({manifest:{path:ar}}),x({since:"1.84.0"})],ta.prototype,"header",2),h([y({manifest:{path:ar}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ta.prototype,"width",2),h([y({manifest:{path:ar}}),x({since:"1.84.0"})],ta.prototype,"template",2),h([y({manifest:{path:ar}}),x({since:"1.86.0"})],ta.prototype,"horizontalAlign",2),h([y({manifest:{path:ar}}),x({since:"1.84.0"})],ta.prototype,"availability",2),h([y({manifest:{path:ar}}),x({since:"1.85.0"})],ta.prototype,"properties",2);var WC=ta;var kT=class kT{};o(kT,"ObjectPageToolBarAction"),h([y({manifest:{path:Hn}})],kT.prototype,"enableOnSelect",2);var XC=kT,JC=class JC{};o(JC,"ObjectPageToolBarActionGroup");var QC=JC,Fd=class Fd{};o(Fd,"CustomActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Fd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Fd.prototype,"placement",2);var qC=Fd,Wa=class Wa{};o(Wa,"CustomTableActionOP"),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Wa.prototype,"text",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Wa.prototype,"position",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Wa.prototype,"press",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Wa.prototype,"requiresSelection",2),h([y({manifest:{path:Hn},generate:ai}),x({since:"1.84.0"})],Wa.prototype,"visible",2),h([y({manifest:{path:Hn},generate:ai}),x({since:"1.84.0"})],Wa.prototype,"enabled",2);var YC=Wa,ZC=class ZC{};o(ZC,"ObjectPageToolBarActions");var zC=ZC;var Zf=class Zf{};o(Zf,"AdditionalSemanticObject"),h([y({manifest:{path:xT}}),xe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.108.0"})],Zf.prototype,"allowedActions",2),h([y({manifest:{path:xT}}),xe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Zf.prototype,"unavailableActions",2),h([y({manifest:{path:xT}}),xe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Zf.prototype,"mapping",2);var eI=Zf,Dd=class Dd{};o(Dd,"RelatedApps"),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"})],Dd.prototype,"showRelatedApps",2),h([y({manifest:{path:pt}})],Dd.prototype,"additionalSemanticObjects",2);var tI=Dd;var _d=class _d{};o(_d,"ActionAfterExecutionConfiguration"),h([y({manifest:{path:o((t,n,i,r,a)=>Bi(t,n,i,r,a)+"/afterExecution","path")}}),xe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],_d.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>Bi(t,n,i,r,a)+"/afterExecution","path")}})],_d.prototype,"enableAutoScroll",2);var nI=_d,Vd=class Vd{};o(Vd,"TableColumn"),h([y({manifest:{path:Bi}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Vd.prototype,"width",2),h([y({manifest:{path:Bi}}),x({since:"1.85.0"})],Vd.prototype,"availability",2);var jT=Vd,wd=class wd{};o(wd,"ViewTableColumn"),h([y({manifest:{path:or}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],wd.prototype,"width",2),h([y({manifest:{path:or}}),x({since:"1.85.0"})],wd.prototype,"availability",2);var UT=wd,$T=class $T extends jT{};o($T,"TableColumnAction"),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],$T.prototype,"afterExecution",2);var iI=$T,BT=class BT extends UT{};o(BT,"ViewTableColumnAction"),h([y({manifest:{path:or}}),x({since:"1.84.0"})],BT.prototype,"afterExecution",2);var rI=BT,Md=class Md{};o(Md,"Position"),h([y({manifest:{path:o((t,n,i,r,a)=>Bi(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Md.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Bi(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Md.prototype,"placement",2);var oI=Md,kd=class kd{};o(kd,"ViewPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>or(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],kd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>or(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],kd.prototype,"placement",2);var aI=kd,na=class na{};o(na,"TableCustomColumn"),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],na.prototype,"position",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],na.prototype,"header",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],na.prototype,"width",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],na.prototype,"template",2),h([y({manifest:{path:Bi}}),x({since:"1.86.0"})],na.prototype,"horizontalAlign",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],na.prototype,"availability",2),h([y({manifest:{path:Bi}}),x({since:"1.85.0"})],na.prototype,"properties",2);var sI=na,ia=class ia{};o(ia,"ViewTableCustomColumn"),h([y({manifest:{path:or}}),x({since:"1.84.0"})],ia.prototype,"position",2),h([y({manifest:{path:or}}),x({since:"1.84.0"})],ia.prototype,"header",2),h([y({manifest:{path:or}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ia.prototype,"width",2),h([y({manifest:{path:or}}),x({since:"1.84.0"})],ia.prototype,"template",2),h([y({manifest:{path:or}}),x({since:"1.86.0"})],ia.prototype,"horizontalAlign",2),h([y({manifest:{path:or}}),x({since:"1.84.0"})],ia.prototype,"availability",2),h([y({manifest:{path:or}}),x({since:"1.85.0"})],ia.prototype,"properties",2);var cI=ia;var uI=class uI{};o(uI,"Actions");var lI=uI,pI=class pI{};o(pI,"ToolBar");var fI=pI;var jd=class jd{};o(jd,"ActionAfterExecutionConfigurationToolBarLR"),h([y({manifest:{path:o((t,n,i,r,a)=>Rr(t,n,i,r,a)+"/afterExecution","path")}}),xe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],jd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>Rr(t,n,i,r,a)+"/afterExecution","path")}})],jd.prototype,"enableAutoScroll",2);var dI=jd,Ud=class Ud{};o(Ud,"ToolBarAction"),h([y({manifest:{path:Rr}})],Ud.prototype,"enableOnSelect",2),h([y({manifest:{path:Rr}})],Ud.prototype,"afterExecution",2);var gI=Ud,SI=class SI{};o(SI,"ToolBarActionGroup");var mI=SI,AI=class AI{};o(AI,"ViewToolBarActionGroup");var hI=AI,$d=class $d{};o($d,"ViewToolBarAction"),h([y({manifest:{path:oo}})],$d.prototype,"enableOnSelect",2),h([y({manifest:{path:oo}})],$d.prototype,"afterExecution",2);var yI=$d,Bd=class Bd{};o(Bd,"CustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Rr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Bd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Rr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Bd.prototype,"placement",2);var TI=Bd,Ka=class Ka{};o(Ka,"CustomTableAction"),h([y({manifest:{path:Rr}}),x({since:"1.84.0"})],Ka.prototype,"text",2),h([y({manifest:{path:Rr}}),x({since:"1.84.0"})],Ka.prototype,"position",2),h([y({manifest:{path:Rr}}),x({since:"1.84.0"})],Ka.prototype,"press",2),h([y({manifest:{path:Rr}}),x({since:"1.84.0"})],Ka.prototype,"requiresSelection",2),h([y({manifest:{path:Rr},generate:Jn}),x({since:"1.84.0"})],Ka.prototype,"visible",2),h([y({manifest:{path:Rr},generate:Jn}),x({since:"1.84.0"})],Ka.prototype,"enabled",2);var vI=Ka,Hd=class Hd{};o(Hd,"ViewCustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>oo(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Hd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>oo(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Hd.prototype,"placement",2);var bI=Hd,Xa=class Xa{};o(Xa,"ViewTableCustomAction"),h([y({manifest:{path:oo}}),x({since:"1.84.0"})],Xa.prototype,"text",2),h([y({manifest:{path:oo}}),x({since:"1.84.0"})],Xa.prototype,"position",2),h([y({manifest:{path:oo}}),x({since:"1.84.0"})],Xa.prototype,"press",2),h([y({manifest:{path:oo}}),x({since:"1.84.0"})],Xa.prototype,"requiresSelection",2),h([y({manifest:{path:oo},generate:Jn}),x({since:"1.84.0"})],Xa.prototype,"visible",2),h([y({manifest:{path:oo},generate:Jn}),x({since:"1.84.0"})],Xa.prototype,"enabled",2);var EI=Xa;var OI={};yc(OI,{FreestylePage:()=>CI,ListReport:()=>Nr,ObjectPage:()=>Lo});function Uz(e){var t,n,i,r;((n=(t=e.paths)==null?void 0:t[0])!=null&&n.primary||(r=(i=e.paths)==null?void 0:i[0])!=null&&r.secondary)&&Object.keys(e).forEach(a=>delete e[a])}o(Uz,"deleteAllALPViews");function $z(){}o($z,"doNotExport");function Bz(){}o(Bz,"doNotImport");var Nr=class{};o(Nr,"ListReport"),h([y({manifest:{path:o(t=>pt(t)+"/views","path"),import:Bz,export:$z,delete:Uz}})],Nr.prototype,"chart",2),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"})],Nr.prototype,"variantManagement",2),h([y({manifest:{path:o(t=>pt(t)+"/views/paths/[]/0","path")}}),xe("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Nr.prototype,"defaultPath",2),h([y({manifest:{path:o(t=>pt(t),"path")}})],Nr.prototype,"defaultTemplateAnnotationPath",2),h([kt("header")],Nr.prototype,"header",2),h([kt("fe::FilterBar")],Nr.prototype,"filterBar",2),Nr=h([Zi({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Nr);var xI=Z(re());var Lo=class{};o(Lo,"ObjectPage"),h([kt("header")],Lo.prototype,"header",2),h([kt("layout")],Lo.prototype,"layout",2),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],Lo.prototype,"variantManagement",2),h([kt("sections")],Lo.prototype,"sections",2),Lo=h([Zi({id:`${xI.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:xI.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],Lo);var II=class II{};o(II,"FreestylePage");var CI=II;var HT=Z(re());var Hz={ALPTableView:Qf},Gz={ALPTableView:Qf},Wz={Table:Id,TableColumn:Jf,ObjectPageCustomSectionView:Bf,ActionAfterExecutionConfiguration:Nd},Kz={[HT.PageTypeV4.AnalyticalListPage]:Hz,[HT.PageTypeV4.ListReport]:Gz,[HT.PageTypeV4.ObjectPage]:Wz},RI=class RI extends hf{constructor(){super(PI,OI,Kz)}};o(RI,"MetadataInstanceFactoryV4");var Qa=RI;var LI=require("@sap-ux/vocabularies-types/vocabularies/UI");function NI(e,t,n,i,r,a,s){var d,m,v,E,b,I;let l=t.jsonSchema.definitions,f=a&&a!==`@${LI.UIAnnotationTerms.LineItem}`?a:he.DefinitionName.LineItems,p=l[f];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let N in p.properties){let G=l[f].properties[N].$ref.split(U)[1].split("<")[0];e.columns[N]=n.createInstance(i,G);let $=s||a;Ot(e.columns[N],t.manifest,l[G],r,[N,$],$,t.logger),Br(e.columns,N)}Br(e,"columns")}else{let N=(I=(b=(E=(v=(m=(d=t.manifest["sap.ui5"])==null?void 0:d.routing)==null?void 0:m.targets)==null?void 0:v[r])==null?void 0:E.options)==null?void 0:b.settings)==null?void 0:I.views;(!N||N.paths.length<1)&&oe(t.logger,{severity:he.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}}o(NI,"transferColumns");function Xz(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[he.DefinitionName.VisualFilters];if(t.visualFilters={},typeof s=="object"){for(let l in s.properties){let f=s.properties[l];if(typeof f=="object"&&f.$ref){let p=zt(f.$ref),d=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,d),Ot(t.visualFilters[l],e.manifest,a[p],r,[l])}}Br(t,"visualFilters")}}o(Xz,"importVisualFilters");function Qz(e,t,n,i,r,a=he.DefinitionName.LineItems,s){var d;let l=e.jsonSchema.definitions,f=s;!f&&[he.DefinitionName.LineItems,`${he.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(f=`@${LI.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${he.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let m in p.properties){let v=p.properties[m];if(typeof v=="object"&&v.$ref){let b={actionPropertyDefinition:(d=p==null?void 0:p.properties)==null?void 0:d[m],appSchema:e.jsonSchema,factory:n,actionsInConfig:t.toolBar.actions,actionKey:m,manifest:e.manifest,routingId:r,targetAnnotation:f};Gl(b)}}}o(Qz,"importActions");function FI(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),f;!s&&t&&"table"in t?f=t.table:f=t,f.toolBar=l,Ot(f.toolBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.ToolBarLR],r,[]),Qz(e,f,n,i,r,a,s),Br(f.toolBar,"actions"),Br(f,"toolBar")}o(FI,"transferToolBar");function Wk(e,t,n){var s;let i=(s=e[t])==null?void 0:s[he.SchemaTag.annotationPath],r=n?`/${n}/`:"",a=i==null?void 0:i.substr(i.lastIndexOf("@"));return a=r?`${r}${a}`:a,a}o(Wk,"determineTargetAnnotationOfView");function qz(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,he.DefinitionName.ALPChart);let s=a[he.DefinitionName.ALPChart],l=s[he.SchemaTag.annotationPath];Ot(t.chart,e.manifest,s,r,[s[he.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),Ot(t.chart.toolBar,e.manifest,a[he.DefinitionName.ViewChartToolBar],r,[]);let f=a[he.DefinitionName.ALPTable][he.SchemaTag.annotationPath];if(f){let p=a[he.DefinitionName.ALPTable],d=t.table=n.createInstance(i,he.DefinitionName.ALPTable);FI(e,t,n,i,r);let m=f.substr(f.lastIndexOf("@"));Ot(d,e.manifest,p,r,[p[he.SchemaTag.key],m]),NI(d,e,n,i,r,void 0,m)}}o(qz,"importALPViews");function Yz(e){let t;return e.indexOf(he.DefinitionName.LRTableView)>-1?t=he.DefinitionName.LRTableView:e.indexOf(he.DefinitionName.LRChartView)>-1?t=he.DefinitionName.LRChartView:e===he.DefinitionName.TableViewExtension&&(t=he.DefinitionName.TableViewExtension),t}o(Yz,"getViewTypeByDefinition");function zz(e,t,n,i,r){let a=t.table.views=n.createInstance(i,he.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;Ot(a,e.manifest,s[he.DefinitionName.MultiTableModeV4],r,[]);let l=s[he.DefinitionName.MultiTableModeV4].properties,f=Object.entries(l).sort((p,d)=>p[1][he.SchemaTag.propertyIndex]-d[1][he.SchemaTag.propertyIndex]);for(let p of f)if(p[1].$ref){let d=p[1].$ref.split(U)[1],m=Yz(d),v=a[p[0]]=n.createInstance(i,m),E=s[d].entitySet,b=Wk(s,d,E);if(Ot(v,e.manifest,s[d],r,[p[0],b]),m===he.DefinitionName.LRTableView){let I=`${he.DefinitionName.LineItemsOfView}::${p[0]}`;FI(e,v,n,i,r,I,b),NI(v,e,n,i,r,I,b)}Object.keys(v).length===0&&delete a[p[0]]}Br(t.table,"views")}o(zz,"importLRViews");function Jz(e,t,n,i,r){let a=he.DefinitionName.HeaderActions,s=he.PropertyName.header,l=e.definitions[a];if(typeof l=="object"){t[s].actions={};for(let f in l.properties){let p=l.properties[f];if(typeof p=="object"&&p.$ref){let d=zt(p.$ref),m=e.definitions[d],v=zt(m.$ref||p.$ref);t[s].actions[f]=n.createInstance(he.PageTypeV4.ObjectPage,v),Ot(t[s].actions[f],i,e.definitions[v],r,[f.replace("/","??")]),Br(t.header,"actions"),Br(t,"header")}}}}o(Jz,"transferHeaderActions");function Zz(e,t,n,i){let r=e.jsonSchema.definitions,a={};for(let s of[he.DefinitionName.SelectionFields,he.DefinitionName.CompactFilters]){let l=r[s];typeof l=="object"&&l.properties&&Object.keys(l.properties).length&&(a=l.properties)}for(let s in a){let l=a[s];if(typeof l!="object"||l.$ref!==U+he.DefinitionName.CustomFilterField)continue;let f=n.createInstance(he.PageTypeV4.ListReport,he.DefinitionName.CustomFilterField),p=l.$ref.split(U)[1];Ot(f,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=f}}o(Zz,"importCustomFilterFields");function eJ(e,t,n,i,r,a){if(Ot(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,he.DefinitionName.Header),Ot(t.header,e.manifest,e.jsonSchema.definitions[he.DefinitionName.Header],r,[]),Jz(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,he.DefinitionName.FilterBar),Ot(t.filterBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.FilterBar],r,[]),Xz(e,t.filterBar,n,i,r),Zz(e,t.filterBar,n,r),a===he.SchemaType.ListReport){let s=he.DefinitionName.Table,l=e.jsonSchema.definitions[s],f;l.$ref&&(s=l.$ref.split(U)[1],l=e.jsonSchema.definitions[s],f=l.properties.columns.$ref.split(U)[1]),t.table=n.createInstance(i,he.DefinitionName.Table);let p=Wk(e.jsonSchema.definitions,s);Ot(t.table,e.manifest,l,r,[s,p]),FI(e,t,n,i,r,f),NI(t.table,e,n,i,r,f,p),zz(e,t,n,i,r)}else a===he.SchemaType.AnalyticalListPage&&qz(e,t,n,i,r)}o(eJ,"addSettings");function gl(e,t){if(Xt(),!e.jsonSchema)return;if(!e.manifest[he.ManifestSection.ui5]||!e.manifest[he.ManifestSection.ui5].routing){oe(e.logger,{severity:he.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let n=e.manifest[he.ManifestSection.ui5].routing.targets;if(!n){oe(e.logger,{severity:he.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let i=new Qa,r=i.createPageInstance(he.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=nE(s);if("name"in s&&(l===he.PageTypeV4.ListReport||l===he.PageTypeV4.AnalyticalListPage)){eJ(e,r,i,he.PageTypeV4.ListReport,a,t);break}}return r}o(gl,"createListReportConfig");var be=Z(re()),ic=require("@sap-ux/vocabularies-types/vocabularies/UI");function tJ(e,t){var i;let n="boolean";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?e==="true"||e==="false":!1}o(tJ,"isBoolean");function nJ(e,t){var i;let n="number";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?!isNaN(parseFloat(e.toString())):!1}o(nJ,"isNumber");function iJ(e,t){let n=e.toString();return tJ(n,t)?n==="true":nJ(n,t)?parseFloat(n):e}o(iJ,"convertValue");function rJ(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=iJ(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(rJ,"importProperty");function Kk(e,t,n){let i,r=wf(e.file,!1,n);if(r){let a=dT(r);i={},cl({fullSchema:t,schema:t,element:a,contextPath:[],config:i},rJ)}return i}o(Kk,"convertXmlFileToConfig");function GT(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=Bo(t||[],r,n,a),l;return s&&(l=Kk(s,i,e.logger)),l}o(GT,"createCustomPageConfig");function Gd(e,t){var v;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=Mf(t),f=(v=r.definitions)==null?void 0:v[l];if(!r||!f)return;let p=Ic(i,a),d=Oc(n||[],p,i,"fragment",t),m;if(d){let E={...f,definitions:r.definitions};m=Kk(d,E,s)}return m}o(Gd,"createCustomFragmentConfig");function DI(e,t=!1,n){var r,a,s;let i=t?(r=e.split("<")[1])==null?void 0:r.slice(0,-1):e;if(n){let l=i.split(`@${n}`);return`${(a=l[0])==null?void 0:a.replace(/::/g,"/")}@${n}${(s=l[1])==null?void 0:s.replace(/::/g,"#")}`}return`${e==null?void 0:e.replace(/::/g,"/").replace(/::/g,"#")}`}o(DI,"getManifestId");function Wd(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(Wd,"getDefinitionId");function oJ(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[Wd(a)];if(l)for(let f in l.properties){l.properties[f].$ref.indexOf(be.DefinitionName.CustomColumnOP)>-1?s=be.DefinitionName.CustomColumnOP:s=be.DefinitionName.ObjectPageTableColumn;let d=r.createInstance(be.PageTypeV4.ObjectPage,s);Ot(d,e.manifest,e.jsonSchema.definitions[s],e.routingId,[f],a),Object.keys(d).length>0&&(n[i].table.columns[f]=d)}}}o(oJ,"fillTableColumnsInConfig");function qk(e,t,n,i,r,a=n){var s;if(typeof t=="object")for(let l in t.properties){let f=t.properties[l];if(typeof f=="object"&&f.$ref){let p=zt(f.$ref),d=(s=t==null?void 0:t.properties)==null?void 0:s[l],m=p.split("<")[0],v;m.includes(be.DefinitionName.CustomSectionActionOP)?v=i.actions:v=i[n].table.toolBar.actions;let E={actionPropertyDefinition:d,appSchema:e.jsonSchema,factory:r,actionsInConfig:v,actionKey:l,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Gl(E)}}}o(qk,"fillSectionActionsInConfig");function aJ(e,t,n,i,r,a=n){if(t.actions){let s=i[n].form.actions={},f=e.jsonSchema.definitions[`${be.DefinitionName.ObjectPageSectionForm}<${Wd(a)}>`].properties.form.$ref.split(U)[1],m=e.jsonSchema.definitions[f].properties.actions.$ref.split(U)[1],v=e.jsonSchema.definitions[m];for(let E in v.properties){let b=v.properties[E],I=zt(b.$ref),N=e.jsonSchema.definitions[I];if(N.annotationType===ic.UIAnnotationTypes.DataFieldForAction||N.annotationType===ic.UIAnnotationTypes.DataFieldForActionGroup||N.description==="Custom Action"){let j={actionPropertyDefinition:b,appSchema:e.jsonSchema,factory:r,actionsInConfig:s,actionKey:E,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Gl(j)}}}}o(aJ,"fillFormActionsInConfig");function Xk(e,t,n,i,r,a){var f;let s=a||DI(i,!1,ic.UIAnnotationTerms.LineItem),l=(f=t.controlConfiguration)==null?void 0:f[s];if(l){n[i]={},n[i].table=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageTable);let p=`${be.DefinitionName.ObjectPageTable}<${a?Wd(a):i.replace("#","::")}>`;Ot(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ToolBar,{actions:{}});let d=e.jsonSchema.definitions[`${be.DefinitionName.Actions}<${Wd(s)}>`];qk(e,d,i,n,r,s),oJ(e,l,n,i,r,s)}}o(Xk,"fillTableInConfig");function sJ(e,t,n,i,r){var l;let a=DI(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageForm,{actions:{}}),aJ(e,s,i,n,r,a))}o(sJ,"fillFormInConfig");function cJ(e,t,n,i,r,a){let s=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split(U)[1];if(Ot(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let f=Gd(e,s.fragmentName);s.controls=f}n[i]=s}o(cJ,"fillCustomSubSectionInConfig");function Yk(e,t,n,i,r,a){var s,l,f,p,d;for(let m in t){let v=t[m],E=m;if(m.includes(ic.UIAnnotationTerms.PresentationVariant)&&((s=v.$ref)!=null&&s.startsWith(U+be.DefinitionName.ObjectPageSectionTableV4))){let b=v.$ref.split(U)[1];E=b?DI(b,!0,ic.UIAnnotationTerms.LineItem):m,Xk(e,n,i,m,r,E)}else(l=v.$ref)!=null&&l.startsWith(U+be.DefinitionName.ObjectPageSectionTableV4)?Xk(e,n,i,m,r):v.properties&&v.properties.subsections?(i[m]={subsections:{}},Yk(e,v.properties.subsections.properties,n,i[m].subsections,r,m)):(f=v.$ref)!=null&&f.startsWith(U+be.DefinitionName.ObjectPageSectionForm)&&((p=v.$ref)!=null&&p.includes(`@${ic.UIAnnotationTerms.FieldGroup}::`))?sJ(e,n,i,m,r):(d=v.$ref)!=null&&d.startsWith(U+be.DefinitionName.ObjectPageCustomSubSectionFragment)&&cJ(e,v,i,m,r,a)}}o(Yk,"fillSectionsInConfig");function lJ(e,t,n,i){var a,s;let r=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(r)for(let l in r){let f=r[l];if("subSections"in f)continue;let p=i.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomSectionFragment);if(Ot(p,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),f.actions){p.actions=i.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${be.DefinitionName.ObjectPageCustomSectionActions}<${Wd(l)}>`];qk(e,m,l,p,i,l)}let d=f.template;if(d){let m=Gd(e,d);p.controls=m}n.sections[l]=p}}o(lJ,"fillCustomSectionsInConfig");function fJ(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,a=r&&"facets"in r?r.facets:void 0;if(a)for(let l in a){let f=a[l],p=i.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomHeaderSectionFragment);Ot(p,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let d=f.template;if(d){let v=Gd(e,d);p.controls=v}let m=f.templateEdit;if(m){let v=Gd(e,m);p.controlsEditMode=v}n.header.sections[l]=p}}o(fJ,"fillCustomHeaderSectionsInConfig");function uJ(e,t,n,i,r){var s,l;let a=e.definitions[be.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let f in a.properties){let p=a.properties[f],d,m=(s=a.properties[f].$ref)==null?void 0:s.split(U)[1];m&&(p=e.definitions[m],d=m.split("<")[0]),(d==null?void 0:d.includes(be.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[f]=d?n.createInstance(be.PageTypeV4.ObjectPage,d):{},Ot(t.header.sections[f],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(be.FACETTITLEPREFIX)[1]))}}}o(uJ,"fillHeaderFacets");function Qk(e,t,n,i,r,a,s){let l=e.definitions[a];if(typeof l=="object"){let f=t[s].actions={};for(let p in l.properties){let d=l.properties[p];typeof d=="object"&&d.$ref&&Gl({actionPropertyDefinition:d,appSchema:e,factory:n,actionsInConfig:f,actionKey:p,manifest:i,routingId:r})}}}o(Qk,"fillHeaderFooterActions");function pJ(e,t,n){var a,s;let i=n.createPageInstance(be.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageHeader),Ot(i.header,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageFooter),Ot(i.footer,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageLayout),Ot(i.layout,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageLayout],e.routingId,[]),Ot(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[be.DefinitionName.Sections]&&(i.sections={},Yk(e,e.jsonSchema.definitions[be.DefinitionName.Sections].properties,r,i.sections,n)),lJ(e,r,i,n),uJ(e.jsonSchema,i,n,e.manifest,e.routingId),fJ(e,r,i,n),Qk(e.jsonSchema,i,n,e.manifest,e.routingId,be.DefinitionName.ObjectPageHeaderActions,be.PropertyName.header),Qk(e.jsonSchema,i,n,e.manifest,e.routingId,be.DefinitionName.FooterActions,be.PropertyName.footer)),i}o(pJ,"fillObjectPageConfig");function WT(e){if(Xt(),!e.manifest[be.ManifestSection.ui5]||!e.manifest[be.ManifestSection.ui5].routing){oe(e.logger,{severity:be.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:be.MANIFESTPATH,range:[be.ManifestSection.ui5]}});return}let t=e.manifest[be.ManifestSection.ui5].routing.targets;if(!t){oe(e.logger,{severity:be.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:be.MANIFESTPATH,range:[be.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){oe(e.logger,{severity:be.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:be.MANIFESTPATH,range:[be.ManifestSection.ui5,"routing"]}});return}let i=new Qa;return pJ(e,n,i)}o(WT,"createObjectPageConfigV4");var Ke=Z(re());var _I=[],KT={};function dJ(e,t){let n=e.target,i=t.target,r=Array.isArray(n),a=Array.isArray(i);return r&&a?n.length-i.length:!r&&!a?0:r?1:-1}o(dJ,"routesSorter");function VI(e,t=[]){if(!Array.isArray(e))return e;let n=e;for(let i of t)n=n.filter(r=>!i.includes(r));return n[0]}o(VI,"resolveTarget");function gJ(e){let t={};e=e.concat().sort(dJ);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=VI(i.target,n),n.push(i.target)):a=i.target;for(let s of r){let l=s.split("(")[0];t[a]=t[a]?`${t[a]}.${l}`:l}}return t}o(gJ,"populateAssociations");function mJ(e,t,n){let i;return e.name?e.name===Ke.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ke.PageTypeV4.FPMCustomPage:e.name.endsWith(Ke.PageTypeV4.ListReport)||e.name.endsWith(Ke.PageTypeV4.AnalyticalListPage)?i=Ke.PageTypeV4.ListReport:e.name.endsWith(Ke.PageTypeV4.ObjectPage)?i=Ke.PageTypeV4.ObjectPage:i=Ke.PageTypeV4.CustomPage:"viewId"in e?i=Ke.PageTypeV4.CustomPage:(oe(t,{severity:Ke.LogSeverity.Error,message:Q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ke.MANIFESTPATH,range:[`${Ke.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ke.ViewTypes&&"viewName"in e&&(i=Ke.PageTypeV4.CustomPage)),i}o(mJ,"determinePageType");function hJ(e){let t=e.target.viewId||e.target.id,n=Dt(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Ke.PageTypeV4.CustomPage)return;let i=Object.keys(e.schemas).find(r=>r.includes(n))||Object.keys(e.schemas).find(r=>r.includes(n.slice(0,-1)))||Object.keys(e.schemas).find(r=>r.includes(e.page.pageType));if(i){if(e.page.pageType===Ke.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=WT(r)}else if(e.page.pageType===Ke.PageTypeV4.FPMCustomPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger,routingId:e.id,fragments:e.extensionFiles.fragments,views:e.extensionFiles.views};e.page.config=GT(r)}else if(e.templateType===Ke.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=gl(r,Ke.SchemaType.ListReport)}else if(e.templateType===Ke.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=gl(r,Ke.SchemaType.AnalyticalListPage)}else if(e.templateType===Ke.TemplateType.FreestylePageV4&&e.page.pageType===Ke.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=_u(e.target)===Ke.TemplateType.AnalyticalListPageV4?Ke.SchemaType.AnalyticalListPage:Ke.SchemaType.ListReport;e.page.config=gl(r,s)}}}o(hJ,"convertSettingsToConfig");function yJ(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");_I.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");_I.push(t[t.length-1])}}o(yJ,"updateUnhandledControllers");function TJ(e,t){if(e.options){e.options.settings.variantManagement&&(t.variantManagement=e.options.settings.variantManagement),t.navigation={};for(let n in e.options.settings.navigation){let i=e.options.settings.navigation[n];t.navigation[n]=i.detail}}}o(TJ,"setVariantManagmentAndNavigation");function vJ(e,t,n){var i,r;if(e.options){t.entitySet=(i=e.options.settings)==null?void 0:i.entitySet,t.contextPath=(r=e.options.settings)==null?void 0:r.contextPath;let{entitySet:a,entityType:s}=fl(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(a==null?void 0:a.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}o(vJ,"setEntitySetEntityTypeContextPath");function bJ(e,t,n){var i,r;if("viewId"in e)t.view={id:e.viewId,name:e.viewName,...e.viewType&&{viewType:e.viewType},...e.viewPath&&{path:e.viewPath},...e.path&&{path:e.path}};else if([Ke.PageTypeV4.CustomPage,Ke.PageTypeV4.FPMCustomPage].includes(n)){let a=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName,s=e.name;!a&&n===Ke.PageTypeV4.CustomPage&&(a=s,s=void 0),t.view={...e.id&&{id:e.id},...a&&{name:a},...s&&{template:s},...e.viewType&&{viewType:e.viewType}}}}o(bJ,"evaluateCustomPageSettings");function EJ(e,t,n,i){var p;let r=e.targets[t],a=mJ(r,i.logger,t),s={pageType:a};if(vJ(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),KT[t]&&KT[t].indexOf(".")!==-1){let d=KT[t].split(".");s.navigationProperty=d[d.length-1]}bJ(r,s,a),TJ(r,s),yJ(r);let l=e.routes.find(d=>(d==null?void 0:d.target)&&d.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),!((p=s.view)!=null&&p.template)&&"name"in r&&r.name&&(s.template=r.name),n[t]=s;let f={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};hJ(f)}o(EJ,"getSinglePageAndConfig");function zk(e){let t={},n=e.manifest[Ke.ManifestSection.ui5].routing;if(!n||!n.routes){let i=Q.t("NOROUTING");return oe(e.logger,{severity:Ke.LogSeverity.Error,message:i,location:{path:Ke.MANIFESTPATH,range:[Ke.ManifestSection.ui5]}}),t}KT=gJ(n.routes||[]);for(let i in n.targets)EJ(n,i,t,e);return t}o(zk,"getPagesAndConfigs");function Jk(e){let t;if(e&&e.routes&&e.routes.length>0){for(let n of e.routes)if(n.pattern.startsWith(":?query:")){t=n;break}else if(n.pattern.indexOf("/")===-1){t=n;continue}return VI(t?t.target:e.routes[0].target)}else return}o(Jk,"getHome");function Zk(e){let t=e==null?void 0:e.config;return t?{...t.flexibleColumnLayout&&{flexibleColumnLayout:t.flexibleColumnLayout},...t.viewType&&{viewType:t.viewType},...t.viewPath&&{path:t.viewPath},...t.path&&{path:t.path}}:{}}o(Zk,"getSettings");function tu(e,t){let n=e[Ke.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];Im(t,a.name)&&(i[r]=a)}return i}o(tu,"getPages");var wI=class wI extends hs{constructor(t){Xt();let n=new kf,i=Dt(Ke.SchemaType.Application),r=t.appSchemas[i.filename];Ot(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,Jk(t.manifest[Ke.ManifestSection.ui5].routing),zk(t),{...Zk(t.manifest[Ke.ManifestSection.ui5].routing),...n}),this.unhandledControllers=_I}};o(wI,"V4AppProvider");var eu=wI;var e2=require("fs"),ml=require("path"),t2=Z(re()),Kd=Z(re());var n2=o((e,t,n=__dirname)=>{let i;switch(t){case Kd.SchemaType.Application:{i=`${Kd.SchemaType.Application}${e.toUpperCase()}.json`;break}case Kd.SchemaType.FPMCustomPage:{i=`${Kd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,ml.join)(n,"schemas",e,i);if(n.endsWith((0,ml.join)("specification","packages","specification")))return(0,ml.join)(n,"dist","schemas",e,i);if(n.endsWith((0,ml.join)("src","specification")))return(0,ml.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,ml.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),SJ=o(async e=>new Promise((t,n)=>{(0,e2.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),XT=o(async(e,t)=>{try{let n=n2(e||t2.FioriElementsVersion.v4,t,__dirname);return await SJ(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function AJ(e,t){let n={},i=[];switch(i=[ue.SchemaType.Application],e){case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.AnalyticalListPageV4:i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,ue.SchemaType.FPMCustomPage);break;case ue.TemplateType.FreestylePageV4:i.push(ue.SchemaType.FreestylePage),t===ue.FioriElementsVersion.v4&&i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,ue.SchemaType.FPMCustomPage);break;case ue.TemplateType.ListReportObjectPageV2:i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage);break;case ue.TemplateType.AnalyticalListPageV2:i.push(ue.SchemaType.AnalyticalListPage,ue.SchemaType.ObjectPage);break;case ue.TemplateType.OverviewPageV2:i.push(ue.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=Dt(r);n[a.filename]=await XT(t,r)}return n}o(AJ,"getGenericSchemas");function r2(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=oi(ue.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(r2,"getAnnotationsForUi");function Xd(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(Xd,"getEntitySetByEntitySetName");function PJ(e,t){var r;let n=e.target.targetType,i=e.objectPath[1];for(let a=2;a<e.objectPath.length;a++){let s=e.objectPath[a];if(i&&s._type==="NavigationProperty"){let l=s.containsTarget?`${s.name}/${s.partner}`:s.name,f=(r=i.navigationPropertyBinding)==null?void 0:r[l];i=t.entitySets.find(p=>p.name===(f==null?void 0:f.name))}}return{entityType:n,entitySet:i}}o(PJ,"resolveNavigationProperty");function fl(e,t,n,i){var l,f,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),a,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(a=(f=r.target)==null?void 0:f.entityType,s=r==null?void 0:r.target):((p=r==null?void 0:r.target)==null?void 0:p._type)==="NavigationProperty"?{entityType:a,entitySet:s}=PJ(r,e):oe(i,{severity:ue.LogSeverity.Error,message:Q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:ue.MANIFESTPATH}}),n&&!a&&oe(i,{severity:ue.LogSeverity.Error,message:Q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(fl,"getEntityTypeEntitySetFromContextPath");function i2(e,t,n){let i=_p(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=Xd(a,e.serviceAVT);s||oe(e.logger,{severity:ue.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Dt(ue.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),f=Dt(ue.SchemaType.ObjectPage);n[l.filename]=Qd(e,t[f.filename])}}o(i2,"generateObjectPageSchemasV2");function xJ(e,t,n){var l,f;let i=tu(e.manifest,ue.v4.FE_TEMPLATE_V4_LIST_REPORT),r=tu(e.manifest,ue.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let d=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(f=a[p].options.settings)==null?void 0:f.contextPath,{entitySet:v,entityType:E}=fl(s,m,d,e.logger);e.entityType=E,e.entitySet=v;let b=Dt(ue.SchemaType.ListReport,p),I=Dt(ue.SchemaType.ListReport);e.templateType===ue.TemplateType.FreestylePageV4&&(e.templateType=_u(a[p])),n[b.filename]=Vp(e,t[I.filename],a[p].name,m)}}o(xJ,"generateListReportSchemasV4");function CJ(e,t,n){var r;let i=_p(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=Xd(s,e.serviceAVT);let l=Dt(ue.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),f=Dt(ue.SchemaType.ListReport);t[l.filename]=Dp(e,n[f.filename])}}o(CJ,"generateAppSchemaV2LR");function IJ(e,t,n){var a,s;let i=tu(e.manifest,ue.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let f=(a=i[l].options.settings)==null?void 0:a.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:d,entitySet:m}=fl(r,p,f);e.entitySet=m,e.entityType=d;let v=Dt(ue.SchemaType.ObjectPage,l),E=Dt(ue.SchemaType.ObjectPage),b=Dt(ue.SchemaType.FPMCustomPage);n[v.filename]=fd(e,t[E.filename],p,t[b.filename])}}o(IJ,"generateObjectPageSchemasV4");function OJ(e,t,n,i){var a;let r={};if(i===ue.TemplateType.ListReportObjectPageV2&&n)CJ(e,r,t),i2(e,t,r);else if(i===ue.TemplateType.AnalyticalListPageV2&&n){let s=_p(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let f=s[l].entitySet;e.entitySet=Xd(f,e.serviceAVT);let p=Dt(ue.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||f),d=Dt(ue.SchemaType.AnalyticalListPage);r[p.filename]=qd(e,t[d.filename])}i2(e,t,r)}else if(i===ue.TemplateType.OverviewPageV2){let s=Dt(ue.SchemaType.OverviewPage),l=Dt(ue.SchemaType.OverviewPage);r[s.filename]=Yd(t[l.filename],e.manifest)}return{...t,...r}}o(OJ,"generateAppSchemasV2");function RJ(e,t,n){if(!Ec(e.featureToggles,ue.Features.BuildingBlocks))return;let i=tu(e.manifest,ue.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=Bo(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let f=Dt(ue.SchemaType.FPMCustomPage,void 0,l),p=Dt(ue.SchemaType.FPMCustomPage);n[f.filename]=ll(t[p.filename],s,e.serviceAVT,e.logger)}}}o(RJ,"generateCustomPageSchemasV4");function LJ(e,t,n){let i={};return n&&(xJ(e,t,i),IJ(e,t,i),RJ(e,t,i)),{...t,...i}}o(LJ,"generateAppSchemasV4");async function o2(e,t,n){let i=await AJ(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===ue.FioriElementsVersion.v4?LJ(e,i,t):OJ(e,i,t,n)}o(o2,"generateAppSchemas");function NJ(e){let t,n=[];switch(e.templateType){case ue.TemplateType.ListReportObjectPageV2:case ue.TemplateType.AnalyticalListPageV2:t=new vy(e);break;case ue.TemplateType.AnalyticalListPageV4:case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.FreestylePageV4:t=new eu(e);break;case ue.TemplateType.OverviewPageV2:t=new Ey(e);break;default:t=new eu(e);break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in r)n.push({dataSourceUri:a,fileContent:JSON.stringify(r[a],null,4)})}return n}o(NJ,"importConfigs");function a2(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===ue.SchemaType.Application?r=`${ue.DirName.Schemas}/${ue.FileName.App[0].toUpperCase()}${ue.FileName.App.slice(1)}`:r=`${ue.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o(a2,"getFileList");async function MI(e){var b,I;Xt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new Uu().doesUi5VersionFitDistTags((I=(b=t["sap.ui5"])==null?void 0:b.dependencies)==null?void 0:I.minUI5Version,i);let f=sE(t),p=$r(n,i),d=r2(p),m=bc(t,f,i),E=await o2({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:f,logger:i,featureToggles:s},d,m);return a2(E)}o(MI,"importProjectSchema");async function kI(e){var G,$;Xt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new Uu().doesUi5VersionFitDistTags(($=(G=t["sap.ui5"])==null?void 0:G.dependencies)==null?void 0:$.minUI5Version,i);let p=sE(t),d=V0(t),m=$r(n,i),v=bc(t,p,i),E={templateType:v,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},b=r2(m),I=await o2(E,b,v),j=NJ({manifest:t,flexChanges:s,appSchemas:I,templateType:v,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:d});return a2(I,j)}o(kI,"importProjectSchemaAndConfig");var FJ=["header","sections","footer"];function DJ(e,t,n,i){t.properties[n][ae.SchemaTag.artifactType]=ae.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=ae.ControlType.Section;break;case"ObjectPageSubSectionV2":r=ae.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=ae.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=ae.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=ae.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=ae.ControlType.ObjectPageHeaderSection;break}r&&(mt(e,t,n),t.properties[n][ae.SchemaTag.controlType]=r)}o(DJ,"addFlexChangeForSection");function _J(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===No.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:f}=Qm(a,r.serviceAVT);if(!l)return;let p=a.Label||s,d=`ObjectPageHeaderAction<${at(l)}>`;t.definitions[d]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${No.UIAnnotationTerms.Identification}`,`/@${No.UIAnnotationTerms.Identification}`);t.definitions[d][ae.SchemaTag.annotationPath]=`/${m}`,t.definitions[d][ae.SchemaTag.actionType]=ae.ActionType.Annotation,t.definitions[d].description=p,t.definitions[d][ae.SchemaTag.keys]=[{name:ae.SchemaKeyName.action,value:s}],f&&(t.definitions[d][ae.SchemaTag.target]=f),i.properties[l]={$ref:`${U}${d}`}}})}o(_J,"addHeaderActionCallBackV2");function VJ(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===No.UIAnnotationTypes.DataFieldForAction){let a=Hr(r).split("::").splice(1).join("::"),s=ci(r,e),l=at(`${ae.DefinitionName.ObjectPageFooterAction}<${a}>`),f=r.fullyQualifiedName.replace(`@${No.UIAnnotationTerms.Identification}`,`/@${No.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[ae.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${f}`}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${U}${l}`}}})}o(VJ,"addFooterActionCallBackV2");function wJ(e,t,n,i,r,a,s,l){let f,p;if(a.ID&&a.Label?f=a.ID+a.Label.replace(/\s+/g,""):a.ID?f=a.ID:a.Label&&(f=a.Label.replace(/\s+/g,"")),f?p=`${ae.DefinitionName.CustomColumns}<${n}><${s}><${f}>`:p=`${ae.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let d=`${ae.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[d]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let m=[],v=r==null?void 0:r.entityTypes.find(b=>b.name===i),E=Yc(t[ae.ManifestSection.generic].pages,n,m);return Kl(e,v,E,t,l,p,d,a.ID),p}o(wJ,"ensureCustomColumnDefinitionExists");function Jd(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&DJ(e,t,"visible",n)}o(Jd,"addAppSchemaDefinition");function MJ(e,t,n){e.properties[t]={$ref:`${U}${n}`}}o(MJ,"addSectionReference");function zd(e,t,n,i){let r=at(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=U+t,i.definitions[r].properties.toolBar.$ref=`${U}ObjectPageToolBar<${t}>`,i.definitions[r][ae.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=ae.FACETTITLEPREFIX+n.ID,i.definitions[r][ae.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=ae.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${U}QuickVariantSelectionOP<${t}>`,i.definitions[`QuickVariantSelectionOP<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariantSelectionOP)),i.definitions[`QuickVariant<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariant)),i.definitions[`QuickVariantSelectionOP<${t}>`].properties.variants.patternProperties["^[0-9]+$"].$ref=`${U}QuickVariant<${t}>`,ds(n.entityType,i,`QuickVariant<${t}>`)}o(zd,"addTableDefinition");function kJ(e,t,n,i,r,a){if(i.base!==ae.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=jo(n,i,t);let f=n.definitions[l];Jd(n,f,a,"ObjectPageSectionTableV2"),f.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[ae.PropertyName.table])),f.properties.table.anyOf=[{$ref:`${U}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${U}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${U}ObjectPageAnalyticalTable<${t}>`},{$ref:`${U}ObjectPageGridTable<${t}>`},{$ref:`${U}ObjectPageTreeTable<${t}>`}],f[ae.SchemaTag.annotationPath]=i.annotationPath,ba(i,f,t),cs(i,f,t),zd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),zd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),zd("ObjectPageGridTable",t,i,n),zd("ObjectPageTreeTable",t,i,n),zd("ObjectPageAnalyticalTable",t,i,n);let p,d=I_(i.entityType,e.serviceAVT);d&&(p=wJ(n,e.manifest,d.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let v=r[m];v.base===ae.FacetBase.LineItem&&(v.ID===s||m.includes(s))&&Wl(!0,n,v.target,v.entityType,v.ID||m,p)}}o(kJ,"handleLineItem");function jJ(e,t,n,i,r,a=!1){e.definitions[t]=jo(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";Jd(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[ae.SchemaTag.isViewNode]=!0}o(jJ,"handleSubSection");function UJ(e,t,n,i,r){e.definitions[t]=jo(e,n,i);let a=e.definitions[t];Jd(e,a,r,"ObjectPageSectionChartV2")}o(UJ,"handleSectionChart");function s2(e,t,n,i,r,a){e.definitions[t]=jo(e,n,i);let s=e.definitions[t];Jd(e,s,r,a||"CommonHeaderFacetSettings"),s[ae.SchemaTag.annotationPath]=n.annotationPath,s[ae.SchemaTag.isViewNode]=!0,s[ae.SchemaTag.dataType]=Fc(n==null?void 0:n.target)}o(s2,"handleHeaderFacet");function $J(e,t,n){let i=e.definitions[t],r=i[ae.SchemaTag.dataType]=Fc(n==null?void 0:n.target);r==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:r==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}o($J,"addDataPointHeaderFacetDataType");function BJ(e,t,n,i,r){e.definitions[t]=jo(e,n,i);let a=e.definitions[t];return Jd(e,a,r,"ObjectPageSectionFormV2"),a[ae.SchemaTag.annotationPath]=n.annotationPath,a[ae.SchemaTag.isViewNode]=!0,a}o(BJ,"handleFormSection");function HJ(e,t,n){let i=new Map([[ae.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[ae.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[ae.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[ae.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[ae.FacetBase.Form,"ObjectPageHeaderSectionForm"],[ae.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[ae.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[ae.FacetBase.LineItem,"ObjectPageSectionTableV2"],[ae.FacetBase.Chart,"ObjectPageSectionChartV2"],[ae.FacetBase.Address,"ObjectPageSectionAddressV2"],[ae.FacetBase.Contact,"ObjectPageSectionContactV2"],[ae.FacetBase.Form,"ObjectPageSectionFormV2"],[ae.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[ae.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[ae.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[ae.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[ae.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[ae.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[ae.FacetBase.Form,"ObjectPageSubSectionFormV2"],[ae.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(HJ,"getSectionType");function GJ(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${No.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(GJ,"getReferenceKey");function l2(e,t,n,i,r,a=!1,s=!1){let l=t[n],f=HJ(l.base,a,s),p=GJ(l,n,f),d=`${f}<${p}>`;switch(MJ(i,p,d),f){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,jJ(r,d,l,n,f,s);let m=r.definitions[d].properties.subsections;for(let v in l.facets)l2(e,l.facets,v,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{kJ(e,p,r,l,t,f),ql(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{UJ(r,d,l,p,f);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=BJ(r,d,l,p,f);Xm(ae.SectionType.Section,l,m,r,ae.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{ju(l,p,i,r,ae.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{ju(l,p,i,r,ae.SectionType.Section,ae.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{s2(r,d,l,p,f);break}case"ObjectPageHeaderSectionDataPoint":{s2(r,d,l,p,f),$J(r,d,l);break}default:i.properties[n]=jo(r,l,p)}}o(l2,"addSection");function c2(e,t,n,i,r,a=!1){if(e)for(let s in t)l2(i,t,s,n,r,!1,a)}o(c2,"addSectionsFromFacets");function f2(e,t,n){var d,m,v,E,b,I;let i=t.definitions[ae.DefinitionName.Sections];i[ae.SchemaTag.isViewNode]=!0,(d=e.entitySet)!=null&&d.entityType&&(i[ae.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${No.UIAnnotationTerms.Facets}`);let r=t.definitions[ae.DefinitionName.HeaderSections];if(r[ae.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[ae.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${No.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=Em((v=e.entitySet)==null?void 0:v.entityType,e.serviceAVT,ae.FioriElementsVersion.v2,e.logger),s=bm((E=e.entitySet)==null?void 0:E.entityType,e.serviceAVT,ae.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,f=s&&!!Object.keys(s).length;if(!l&&!f)return;for(let N in n){let j=n[N];(I=(b=e.entitySet)==null?void 0:b.name)!=null&&I.includes(j.entitySet)?(c2(l,a,i,e,t),c2(f,s,r,e,t,!0)):f2(e,t,j.pages)}let p=t.definitions.CustomSections;for(let N in p.properties)i.properties[N]=p.properties[N]}o(f2,"addSections");function WJ(e,t,n){zm(e,n),Ym(e,n,t,_J,void 0,!0)}o(WJ,"addHeader");function KJ(e,t,n,i){let r=M0(t,n,i,void 0,!0);r&&F_(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(KJ,"addRelatedFacetKeysType");function Qd(e,t){var s;Xt();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[ae.PropertyName.sections]={$ref:U+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[ae.ManifestSection.generic].pages;return a?(WJ(n,e,r),n.definitions[ae.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},f2(e,n,a),KJ(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[ae.SchemaTag.isViewNode]=!0):delete n.properties[ae.PropertyName.sections]),qm(n,e,ae.FioriElementsVersion.v2,VJ,a),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.CommonHeaderFacetSettings,delete n.definitions.ObjectPageHeaderSection,delete n.definitions.ObjectPageCustomHeaderSectionFragment,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTableWithMultiSelect,delete n.definitions.ObjectPageResponsiveTableWithInlineDelete,delete n.definitions.ObjectPageAnalyticalTable,delete n.definitions.ObjectPageTreeTable,delete n.definitions.ObjectPageGridTable,delete n.definitions.ObjectPageToolBar,delete n.definitions.ObjectPageToolBarActions,delete n.definitions.ObjectPageForm,delete n.definitions.ObjectPageFormFields,delete n.definitions.ObjectPageFormActions,delete n.definitions.FieldPathOP,$o(n,FJ),n):(oe(e.logger,{severity:ae.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:ae.MANIFESTPATH,range:[ae.ManifestSection.generic]}}),n)}o(Qd,"generateObjectPageSchemaV2");var tn=Z(re());var XJ=["filterBar","keyPerformanceIndicators","chart","table","footer"];function QJ(e,t,n){var b;let i=(b=e==null?void 0:e.component)==null?void 0:b.settings;if(_s(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(I){let N=I+(r?"#"+r:"");return t[N]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let I=r?Q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):Q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return oe(n,{severity:tn.LogSeverity.Error,message:I}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let f=(l==null?void 0:l.Visualizations)||[],p="",d="";f.some(function(I){return p=p||Mu("LineItem",I),d=d||Mu("Chart",I),p&&d}),p=p||"LineItem",d=d||"Chart";let m=t[p],v=t[d],E=(m||i.quickVariantSelectionX?0:1)+(v?0:2);if(E>0){let I=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][E-1],N=Q.t(I);oe(n,{severity:tn.LogSeverity.Warning,message:N})}return{lineItemAnnotation:m,chartAnnotation:v}}o(QJ,"getLineItemAndChartAnnotation");function qJ(e,t){let n=e.definitions[tn.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[tn.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(qJ,"addChart");function qd(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[tn.PropertyName.table].anyOf[0].$ref=U+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${U}${tn.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${U}${tn.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[tn.PropertyName.table].anyOf[1].$ref=`${U}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${U}${tn.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${U}${tn.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[tn.PropertyName.table].anyOf[2].$ref=`${U}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${U}${tn.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${U}${tn.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,b_(n.definitions.TableColumnExtensionTypeV2.enum,[tn.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=Ql(e);if(s){Xl(n);let l=[],f=mf(e.manifest[tn.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:d}=QJ(f,s,e.logger);p&&g_.forEach(v=>{n.definitions[v][tn.SchemaTag.annotationPath]=Tr(a.fullyQualifiedName,p.term,p.qualifier)}),Wl(!1,n,p,a),d&&qJ(n,d);let m=s.SelectionFields;if(Gm(n,m,a),ql(n,a),!f)return oe(e.logger,{severity:tn.LogSeverity.Error,message:Q.t("NOLR"),location:{path:tn.MANIFESTPATH,range:[tn.ManifestSection.generic]}}),n;Kl(n,a,f,e.manifest,e.fragments),iP(a,e.entitySet,n,e.serviceAVT),delete n.definitions.ALPGridTable,delete n.definitions.ALPResponsiveTable,delete n.definitions.ALPAnalyticalTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.GenericFooter,delete n.definitions.Actions,delete n.definitions.FieldPath}return $o(n,XJ),n}o(qd,"generateAnalyticalListReportSchemaV2");var u2=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function YJ(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let r=i.$ref.split("/");return r[r.length-1]})}o(YJ,"getCardDefinitionNames");function zJ(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),r=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(r).filter(f=>i.includes(r[f].dataSource)));let s=e.definitions;s.CardModel={type:"string"},xa(a,s.CardModel);let l=YJ(e);for(let f of l){let p=s[f].properties.model;delete p.type,p.$ref=U+"CardModel"}}o(zJ,"addModelsEnum");function JJ(e,t){let n=e.properties;for(let i in u2){let r=u2[i],a=r.key;n[a]&&(n[a].messages=[{text:Bl(a,{since:r.since,deprecated:{since:r.deprecated.since,text:r.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}o(JJ,"markDeprecatedProperties");function p2(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},JJ(n,t),zJ(n,t),n}o(p2,"generateOverviewPageSchemaV2");var rc=Z(re());function jI(e,t,n,i,r,a){Xt();let s=$r(e,t),l={templateType:a,fioriElementsVersion:rc.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=Xd(r,l.serviceAVT),l.entitySet||oe(l.logger,{severity:rc.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(jI,"prepareGenerationV2");function UI(e,t,n,i,r,a){let s=jI(n,a,i,r,t,rc.TemplateType.ListReportObjectPageV2);return Qd(s,e)}o(UI,"generateObjectPageInterfaceV2");function $I(e,t,n,i,r,a){let s=jI(n,a,i,r,t,rc.TemplateType.ListReportObjectPageV2);return Dp(s,e)}o($I,"generateListReportInterfaceV2");function BI(e,t,n,i,r,a){let s=jI(n,a,i,r,t,rc.TemplateType.AnalyticalListPageV2);return qd(s,e)}o(BI,"generateAnalyticalListPageInterfaceV2");function Yd(e,t){return p2(e,t)}o(Yd,"generateOVPInterfaceV2");var nu=Z(re()),g2=require("@sap-ux/vocabularies-types/vocabularies/UI");function d2(e,t,n=!0){n?(e.dependencies||(e.dependencies={}),e.dependencies.libs||(e.dependencies.libs={}),e.dependencies.libs[t]===void 0&&(e.dependencies.libs[t]={})):e.dependencies&&e.dependencies.libs&&e.dependencies.libs[t]!==void 0&&delete e.dependencies.libs[t]}o(d2,"updateDependencyLib");function QT(e){let t=e;if(e.indexOf("<")>-1){t=e.substring(e.indexOf("<")+1,e.length-1);let n=e.substring(0,e.lastIndexOf("::")).replace(/::/g,"/");n&&(t=`${n}/${t}`)}return t}o(QT,"extractLastIdPart");function m2(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return oe(i,{severity:nu.LogSeverity.Error,message:Q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(nu.PropertyName.sections),s=a>-1?QT(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${g2.UIAnnotationTerms.LineItem}`,f=n.eventHandler===!0?!0:void 0,p={target:t.pageNameArray[0],targetEntity:l,position:n.position,name:e,...n.header&&{header:n.header},...n.width&&{width:n.width},...n.availability&&{availability:n.availability},...f&&{eventHandler:f}},d={customExtension:nu.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return HI(d),!0}o(m2,"createNewCustomColumn");var qa=Z(re());var y2=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),h2=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function ZJ(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(ZJ,"initializeRouting");function eZ(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(eZ,"setTargetOptions");function tZ(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==qa.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(tZ,"calculateQueryPattern");function T2(e,t,n,i,r){if(r){e.push(...r.split("/")),e.shift();return}e.unshift(t);let a;for(let s in n){if(typeof n[s].navigation=="object"){let l=Object.keys(n[s].navigation).find(f=>n[s].navigation[f].route===i);l&&(t=l,a=n[s])}if(a){T2(e,t,n,s);return}}}o(T2,"fillNavigationParts");function nZ(e){let t={},n=e==null?void 0:e.split("/");return n&&n.length>0&&n.forEach(i=>{let r=i.substring(0,i.indexOf("({")),a=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[r]=a}),t}o(nZ,"fillParentKeys");function iZ(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(eZ(n,a,s),s!=null&&s.route&&!i.routes.some(f=>f.name===s.route)){let f=l==null?void 0:l.routePattern;if(!f){let p=[];T2(p,a,t,r,l==null?void 0:l.contextPath);let d=nZ(e.routePattern);f=tZ(p,l,d)}i.routes.push(y2(f,s.route,s.route))}}}o(iZ,"handlePageNavigation");function rZ(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(r=>r.name===n);i!==-1&&e.routes.splice(i,1)}}o(rZ,"removeDeletedPages");function oZ(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=h2({contextPath:e.contextPath},e.variantManagement)),t.options.settings.contextPath=e.contextPath):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.contextPath,e.entitySet?(t.options||(t.options=h2({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(a=(r=t.options)==null?void 0:r.settings)==null||delete a.entitySet}o(oZ,"transferEntitySetandContextPath");function aZ(e,t,n){let i=e.routes.find(r=>r.target&&r.target.indexOf(t)>-1);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}o(aZ,"updateRouteLayout");function sZ(e,t,n){var i;return e.pageType&&![qa.PageTypeV4.CustomPage,qa.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:e.template??`sap.fe.templates.${e.pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(e.pageType!==qa.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||qa.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{...t==null?void 0:t.options,settings:{...(i=t==null?void 0:t.options)==null?void 0:i.settings,viewName:e.view.name}}}),t}o(sZ,"fillTarget");function b2(e,t,n){var r,a;let i=ZJ(n[qa.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(y2(":?query:",e,e));for(let s in t){let l,f=t[s];i.targets[s]&&(l=i.targets[s]),l=sZ(f,l,s),oZ(f,l),l&&!f.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(a=(r=l==null?void 0:l.options)==null?void 0:r.settings)!=null&&a.navigation&&(l.options.settings.navigation={}),iZ(f,t,l,i,s),aZ(i,s,f),i.targets[s]=l}return rZ(i,t),i}o(b2,"transformRoutingV4");var Ii=Z(re());var E2=[Ii.FlexibleColumnLayoutAggregations.BeginColumnPages,Ii.FlexibleColumnLayoutAggregations.MidColumnPages,Ii.FlexibleColumnLayoutAggregations.EndColumnPages],S2=o((e,t,n,i=[],r=0)=>{var p;let a=e.routing.routes.find(d=>d.name===n);if(!a)return;typeof a.target=="string"&&(a.target=r<=2?[...i,a.target]:[a.target]);let s=e.routing.targets[n],l=(p=t.pages)==null?void 0:p[n];if(!l)return;"controlAggregation"in l?s.controlAggregation=l.controlAggregation:E2[r]?s.controlAggregation=E2[r]:s.controlAggregation=Ii.FlexibleColumnLayoutAggregations.EndColumnPages;let f=a.pattern.replace(":?query:","");if(f?s.contextPattern=f.startsWith("/")?f:`/${f}`:s.contextPattern="",l.navigation){r++;for(let d in l.navigation)S2(e,t,l.navigation[d].route,a.target,r)}},"applyFCLRouting"),cZ=o((e,t)=>{e.routing.config.routerClass=Ii.v4.FIORI_FCL_ROUTER_CLASS,S2(e,t,t.home);let n={viewName:Ii.FIORI_FCL_ROOT_VIEW_NAME,type:Ii.ViewTypes.XML,async:!0,id:Ii.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,d2(e,Ii.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),lZ=o(e=>{var t;e.rootView&&e.rootView.viewName===Ii.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Ii.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),A2=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?cZ(e,t):lZ(e)},"updateFcl");var ie=Z(re()),Zd=require("@sap-ux/vocabularies-types/vocabularies/UI");var P2=Z(vc()),qT=Z(re());function fZ(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(fZ,"isExportValueEquals");function uZ(e,t){var s;let{element:n,schema:i,parent:r,contextPath:a}=e;if(delete n.attributes[t],((s=i.metadata)==null?void 0:s.type)===qT.MacrosPropertyType.Property&&Object.keys(n.attributes).length===0&&(r!=null&&r.element.elements)){let l=a[a.length-1];l&&r.element.elements.splice(l.index,1)}}o(uZ,"deleteProperty");function x2(e,t,n,i){var f,p;let{contextPath:r,fullSchema:a,element:s}=e,l=!1;if(t.hidden)return!1;if(i in n&&n[i]!==void 0)if(t.isViewNode){s.elements||(s.elements=[]);let d={name:i,type:"element"};return s.elements.push(d),cl({fullSchema:a,schema:t,element:d,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},x2)}else fZ((f=s.attributes)==null?void 0:f[i],n[i])||(s.attributes||(s.attributes={}),s.attributes[i]=n[i],l=!0);else(p=s.attributes)!=null&&p[i]&&(uZ(e,i),l=!0);return l}o(x2,"exportProperty");function YT(e,t,n,i,r,a){let s=wf(e.file,!1,a);if(s){let l=dT(s);if(cl({fullSchema:i,schema:i,element:l,contextPath:[],config:n},x2)){let p=(0,P2.js2xml)(s,{spaces:4}),d={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:qT.ChangeIndicator.Updated};r==="view"?t.views=[d]:r==="fragment"&&t.fragments.push(d)}}}o(YT,"getExtensionExportResult");var C2=o((e,t)=>{let{views:n,manifest:i,jsonSchema:r,page:a,logger:s}=e,l={...t,manifest:i},f;return r&&Object.keys(r).length>0&&(f=Bo(n||[],a.name,i,s)),f&&YT(f,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),I2=o((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:a,pageNameArray:s,logger:l}=e,{manifest:f}=r,p,d="fragment";if(i&&Object.keys(i).length>0){let m=Ic(f,s[0]);p=Oc(a,m,f,d,t)}if(p){let m=Mf(t),E={...i.definitions[m],definitions:i.definitions};YT(p,r,n,E,d,l)}},"exportXMLFragmentConfig");var O2=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],pZ=[...O2,"views","initialLoad","template"],zT=o(e=>{let t=ie.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function dZ(e,t,n){var s,l,f,p;let i=`@${Zd.UIAnnotationTerms.LineItem}`,r=`@${Zd.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[ie.DefinitionName.TableSPV])==null?void 0:s[ie.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let d=(f=t.appSchema.definitions[ie.DefinitionName.ALPTable])==null?void 0:f[ie.SchemaTag.annotationPath];i=r=d&&d.substr(d.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ie.PropertyName.table&&a){let d=a.split("/");i=r=d[d.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(dZ,"determineTargetAnnotationOfTable");function gZ(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ie.DefinitionName.ALPChart])==null?void 0:a[ie.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}o(gZ,"determineTargetAnnotationOfChart");function mZ(e,t,n,i,r){var a;if(e.length===3)t=n=i[ie.SchemaTag.annotationPath]&&i[ie.SchemaTag.annotationPath].substr(i[ie.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split(U)[1],l=s&&r.appSchema.definitions[s],f=(l==null?void 0:l[ie.SchemaTag.annotationPath])&&l[ie.SchemaTag.annotationPath].substr(l[ie.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${f}`:f}return{targetAnnotation:t,targetAnnotationEncoded:n}}o(mZ,"determineTargetAnnotationBasedOnParentView");function hZ(e,t){var a;let n,i,r=(a=e.appSchema.definitions.MultiTableModeV4)==null?void 0:a.properties[t[2]];if(r)({targetAnnotation:n,targetAnnotationEncoded:i}=mZ(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ie.SchemaTag.annotationPath]&&l[ie.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let f=l[ie.SchemaTag.annotationPath].split("/");return n=i=f[f.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ie.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}o(hZ,"determineTargetAnnotationOfView");function yZ(e,t,n){let i,r;return e[2].split(`@${ie.UIVOCABULARY}`)[1]?n&&n.indexOf(ie.FACETTITLEPREFIX)>-1?i=r=n.split(ie.FACETTITLEPREFIX)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(yZ,"determineTargetAnnotationOfHeaderSections");function TZ(e,t){let n=e[1].split(`@${ie.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=QT(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(TZ,"determineTargetAnnotationOfSections");function vZ(e,t,n){let i,r,a=!1;return e[0]===ie.PropertyName.table&&e[1]!==ie.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=dZ(e,t,n):e[0]===ie.PropertyName.chart&&t.templateType===ie.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=gZ(e,t,n):e[0]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=TZ(e,a):e[1]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=yZ(e,a,t.title):e[1]===ie.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=hZ(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(vZ,"determineTargetAnnotation");function bZ(e){return e.includes(yE)}o(bZ,"isGroupingElement");function EZ(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ie.PropertyName.actions,ie.PropertyName.columns,ie.PropertyName.views,ie.PropertyName.visualFilters,ie.PropertyName.selectionFields].includes(ie.PropertyName[r])||bZ(r)){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o(EZ,"determineKeyForSyncRule");function SZ(e){e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):e.manifestSection[e.manifestKey]||(e.manifestSection[e.manifestKey]={})}o(SZ,"createNewObjectInManifest");function R2(e,t,n){var r,a;let i=!1;return t.type!=="array"&&((r=n==null?void 0:n.targetDefinition)==null?void 0:r.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(SZ(e),i=!0):e.syncRule.manifest.export!==!1&&(e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length||!Array.isArray(e.configObject[e.configPropertyKey])&&e.configObject[e.configPropertyKey]===void 0?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey],i=!0),i}o(R2,"transferPropertyToManifest");function AZ(e,t,n,i,r,a,s){var p,d,m;let l=!1,f=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((d=n.config.table)!=null&&d.views)||e[1]==="views"&&((m=n.config.table)!=null&&m.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&O2.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(f!=null&&f.annotationPath)&&!f.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&pZ.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let v=t.syncRule.manifest.delete;typeof v=="function"&&(v(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config),l=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],l=!0);return ls(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(AZ,"deleteFromManifest");function PZ(e,t,n,i){let r=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:l,targetAnnotation:f,custom:p}=vZ(e,n.transferParameters,n.configObject),d=EZ(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,d,f,n.configObject,a),v=ko(n.transferParameters.exportResults.manifest,m,f,p?void 0:l);if(v){let E={syncRule:t,manifestSection:v,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:d};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&kl([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?r=AZ(e,E,n.transferParameters,v,m,f,l):r=R2(E,n.propertyDefinition,i)}return r}o(PZ,"exportManifestChange");function xZ(e,t,n){let i=Mn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);I2(e.transferParameters,r,n.configObject)}else i.manifest&&PZ(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ie.ChangeIndicator.Updated)}o(xZ,"evaluateExportRule");function CZ(e,t,n,i,r){let a=[];e.propertyDefinition.$ref&&t?a.push(t.configObject):e.propertyDefinition.anyOf?a.push(n):e.propertyDefinition.type==="array"?a=n:a.push(n),e.index=0;for(let s of a)e.transferParameters.title=t==null?void 0:t.title,WI(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(CZ,"transferSubObject");function IZ(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=pt(e.pageNameArray)+"/views",a=ko(e.exportResults.manifest,r);return!a.paths||Object.keys(a.paths).length===0?(a.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):a.paths[0].secondary||(a.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}o(IZ,"createALPTableView");function OZ(e){var a,s;let t=!1,n=e.key;if(!e.configObject[n]||Object.keys(e.configObject[n]).length===0)return{newElementCreated:t,stopProcessing:!0};let i=pt(e.transferParameters.pageNameArray)+"/views",r=ko(e.transferParameters.exportResults.manifest,i);return!r.paths||Object.keys(r.paths).length===0?(r.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):r.paths[0].primary||(r.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),r.paths[0].secondary||(r.paths[0].secondary=[{annotationPath:((s=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||Zd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(OZ,"createALPChartView");function RZ(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=pt(e.pageNameArray),r=ko(e.exportResults.manifest,i),a=`@${Zd.UIAnnotationTerms.SelectionFields}`;if(r.controlConfiguration?r.controlConfiguration[a]?r.controlConfiguration[a].filterFields||(r.controlConfiguration[a].filterFields={},n=!0):(r.controlConfiguration[a]={filterFields:{}},n=!0):(r.controlConfiguration={[a]:{filterFields:{}}},n=!0),n){let s=r.controlConfiguration[a].filterFields;Object.keys(t).forEach(l=>{let f=t[l];s[l]={};for(let p in f)p==="visualFilterValueList"?s[l].visualFilter={valueList:f[p]}:s[l][p]=f[p]})}return n}o(RZ,"createVisualFilters");function LZ(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=pt(t.pageNameArray)+"/views",s=ko(t.exportResults.manifest,a),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],r=!0;else{let f=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(f===-1)s.paths.push(l),r=!0;else if(f!==i.index){let p=JSON.parse(JSON.stringify(s.paths[f]));s.paths.splice(f,1),s.paths.splice(e,0,p),r=!0}}return r}o(LZ,"createLRTableView");function NZ(e,t,n){let i=!1,r=!1;if(t&&!n&&!e.transferParameters.deletionRequest)if(t.startsWith(ie.DefinitionName.CustomColumn))i=m2(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ie.DefinitionName.ALPChartView&&e.key===ie.PropertyName.chart&&e.configObject)return OZ(e);if(t===ie.DefinitionName.ALPTableView&&e.key===ie.PropertyName.table&&e.configObject)return IZ(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ie.DefinitionName.LRTableView)||t.startsWith(ie.DefinitionName.LRChartView))?i=LZ(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ie.DefinitionName.VisualFilters)&&(i=RZ(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(NZ,"createNewElement");function FZ(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0||!!e.anyOf}o(FZ,"isDefinitionTraversable");function GI(e,t,n,i=!1){var d;let r=e.configObject[e.key],a=Rm(e.configObject,e.key),s=Uo(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:f}=NZ(e,(d=e.propertyDefinition.$ref)==null?void 0:d.split(U)[1],i),p=a?[...t,a]:[...t,e.key];if(l||xZ(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||FZ(e.propertyDefinition)&&(s!=null&&s.configObject))&&!f){let m=a?[...n,a]:n;CZ(e,s,r,p,m)}}o(GI,"transferSortedListEntry");function DZ(e,t,n,i,r){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((l,f)=>l[1]&&l[1].index-f[1].index),s.forEach(l=>{var f;(f=n.properties)!=null&&f[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],GI(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,GI(e,i,r),a=!0)}),e.index++})}return a}o(DZ,"transferConfigEntriesWithAnyOfDefinitions");function _Z(e,t,n,i){let r=cE(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(_Z,"mergeEntriesForInsert");function VZ(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ie.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ie.SchemaTag.propertyIndex]-r[1][ie.SchemaTag.propertyIndex])),t}o(VZ,"sortProperties");function wZ(e,t,n,i,r,a){var l,f;let s=!1;if(e){let p=e.anyOf;if(!p){let d=(l=e.$ref)==null?void 0:l.split(U)[1];p=d?(f=t.appSchema.definitions[d])==null?void 0:f.anyOf:void 0}s=DZ(n,p,i,r,a)}return s}o(wZ,"checkIfAnyOfDefinition");function WI(e,t,n,i,r,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:r,key:void 0,index:s,configObject:t,propertyDefinition:void 0},f=a.additionalProperties,p=wZ(f,e,l,a,n,i),d=VZ(a.properties);f!=null&&f.$ref&&_Z(e,f,d,t),s=0,d&&d.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!kl(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,GI(l,n,i,p),m[1].$ref&&s++)})}o(WI,"transferManifestEntriesAndFlexChange");function L2(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ie.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(L2,"getClassesForSingleSection");function N2(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],L2(n,i,t),N2(n,t)}}o(N2,"getSubsectionClasses");function MZ(e,t,n){let i;for(let r in e.sections)i=t.sections[r],L2(e,r,n),N2(i,n)}o(MZ,"getExportClassesForSections");function F2(e,t){let n=Lm(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(F2,"calculateBaseId");var D2=o((e,t,n=!1)=>{var l;let i=zT(e.manifest),r=new Qa,a=r.createPageInstance(ie.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ie.PropertyName.sections]&&MZ(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:F2(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ie.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return WI(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),kZ=o((e,t,n,i,r,a,s=!1)=>{var b,I;let l=zT(e.manifest),f=e.jsonSchema,p=(b=n.table)!=null&&b[ie.PropertyName.annotationPath]?ie.DefinitionName.ALPTableView:ie.DefinitionName.Table,d=n.table=t.createInstance(i,p,n.table),m=ie.DefinitionName.LineItems;f.definitions[ie.DefinitionName.TableSPV]&&(m=f.definitions[ie.DefinitionName.TableSPV].properties.columns.$ref.split(U)[1]);let v=f.definitions[`${ie.DefinitionName.Actions}<${m}>`];if((I=d.toolBar)!=null&&I.actions&&v)for(let N in v.properties)d.toolBar.actions[N]=t.createInstance(i,ie.DefinitionName.ToolBarAction,d.toolBar.actions[N]);let E={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:F2(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return WI(E,n,[],[],[],f),l},"exportListPage"),KI=o((e,t,n,i=!1)=>{let r=new Qa,a=r.createPageInstance(ie.PageTypeV2.ListReport,e.page.config);return kZ(e,r,a,ie.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),_2=o((e,t,n=!1)=>KI(e,t,ie.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),jZ=o((e,t,n,i,r,a)=>{let s=ko(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=iE());let f={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];R2(f,p,{}),!l&&Object.keys(s).length&&_0(r,t,s)},"applyExportRule"),UZ=o((e,t,n)=>{var a;let i=zT(t),r=Object.assign(new TT,e);r.settings=Object.assign(new kf,r.settings);for(let s in n.definitions.AppSettings.properties){let l=Mn(r.settings,s);if(l&&l.manifest){let f=l.manifest.path();if(l.manifest.export)jZ(l,f,s,e,i.manifest,n);else{let p=ko(i.manifest,f);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],ls(i.manifest,f,!1))}}}return i.manifest[ie.ManifestSection.ui5].routing=b2(e.home,e.pages,i.manifest),A2(i.manifest[ie.ManifestSection.ui5],e),i},"exportApplicationV4"),V2=o((e,t)=>{if(e[ie.SchemaType.ListReport])return KI(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4);if(e[ie.SchemaType.ObjectPage])return D2(e[ie.SchemaType.ObjectPage],t);if(e[ie.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ie.SchemaType.Application];return UZ(n,i,r)}else{if(e[ie.SchemaType.AnalyticalListPage])return _2(e[ie.SchemaType.AnalyticalListPage],t);if(e[ie.SchemaType.FPMCustomPage])return C2(e[ie.SchemaType.FPMCustomPage],ie.defaultExportResult)}},"exportPageV4"),$Z=o(e=>{let{jsonSchema:t,views:n,page:i,manifest:r,logger:a}=e,s=zT(e.manifest),l;return t&&Object.keys(t).length>0&&(l=Bo(n||[],i.name,r,e.logger)),l&&YT(l,s,i.config,t,"view",a),s},"exportCustomPage"),XI=o((e,t,n=!1)=>{if(e[ie.SchemaType.ListReport])return KI(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4,n);if(e[ie.SchemaType.ObjectPage])return D2(e[ie.SchemaType.ObjectPage],t,n);if(e[ie.SchemaType.AnalyticalListPage])return _2(e[ie.SchemaType.AnalyticalListPage],t,n);if(e[ie.SchemaType.FPMCustomPage])return $Z(e[ie.SchemaType.FPMCustomPage])},"exportConfigEntityByPathV4");var Ut=require("@sap-ux/fe-fpm-writer");var BZ=new Map([[de.CustomExtensionType.CustomPage,Ut.generateCustomPage],[de.CustomExtensionType.CustomColumn,Ut.generateCustomColumn],[de.CustomExtensionType.CustomSection,Ut.generateCustomSection],[de.CustomExtensionType.ObjectPage,Ut.generateObjectPage],[de.CustomExtensionType.ListReport,Ut.generateListReport],[de.CustomExtensionType.CustomAction,Ut.generateCustomAction],[de.CustomExtensionType.CustomView,Ut.generateCustomView],[de.CustomExtensionType.ControllerExtension,Ut.generateControllerExtension],[de.CustomExtensionType.CustomSubSection,Ut.generateCustomSubSection],[de.CustomExtensionType.CustomFilterField,Ut.generateCustomFilter],[de.CustomExtensionType.CustomHeaderSection,Ut.generateCustomHeaderSection]]),HZ={api:Ut.PromptsAPI,types:Ut.PromptsType};function GZ(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];if(n[de.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:f}=n[de.SchemaType.ListReport];t=$I(i,r,a,s,l,f)}else if(n[de.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:f}=n[de.SchemaType.ObjectPage];t=UI(i,r,a,s,l,f)}else if(n[de.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[de.SchemaType.OverviewPage];t=Yd(i,r)}else if(n[de.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:f}=n[de.SchemaType.AnalyticalListPage];t=BI(i,r,a,s,l,f)}}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];if(n[de.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:f}=n[de.SchemaType.ListReport];t=yT(de.TemplateType.ListReportObjectPageV4,i,r,a,s,l,f)}else if(n[de.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,logger:l,fragments:f,contextPath:p,genericMacrosSchema:d}=n[de.SchemaType.ObjectPage];t=Ex(i,r,a,s,l,f,p,d,e.featureToggles)}else if(n[de.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:f}=n[de.SchemaType.AnalyticalListPage];t=yT(de.TemplateType.AnalyticalListPageV4,i,r,a,s,l,f)}else if(n[de.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l}=n[de.SchemaType.FreestylePage];t=Sx(de.TemplateType.FreestylePageV4,i,a,l,r,s)}else if(n[de.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:a,views:s,logger:l,annotations:f}=n[de.SchemaType.FPMCustomPage];t=Ax(i,r,a,s,f,e.featureToggles,l)}}return t}o(GZ,"generateSchema");function WZ(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=zV(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=V2(i,n)}return t}o(WZ,"exportConfig");function KZ(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=oP(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=XI(i,n)}return t}o(KZ,"exportConfigEntityByPath");function XZ(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=oP(i,n,!0)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=XI(i,n,!0)}return t}o(XZ,"deleteConfigEntityByPath");function QZ(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];n[de.SchemaType.ListReport]?t=Ty(n[de.SchemaType.ListReport]):n[de.SchemaType.ObjectPage]?t=ly(n[de.SchemaType.ObjectPage]):n[de.SchemaType.OverviewPage]?t=fy(n[de.SchemaType.OverviewPage]):n[de.SchemaType.AnalyticalListPage]&&(t=uy(n[de.SchemaType.AnalyticalListPage]))}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];n[de.SchemaType.ListReport]?t=gl(n[de.SchemaType.ListReport],de.SchemaType.ListReport):n[de.SchemaType.ObjectPage]?t=WT(n[de.SchemaType.ObjectPage]):n[de.SchemaType.AnalyticalListPage]?t=gl(n[de.SchemaType.AnalyticalListPage],de.SchemaType.AnalyticalListPage):n[de.SchemaType.FPMCustomPage]&&(t=GT(n[de.SchemaType.FPMCustomPage]))}return t}o(QZ,"importConfig");async function qZ(e){return kI(e)}o(qZ,"importProject");async function YZ(e){return MI(e)}o(YZ,"importProjectSchema");function zZ(){return{version:"23",fpmWriter:"33",moduleVersion:M_.version}}o(zZ,"getApiVersion");function HI(e){let t=BZ.get(e.customExtension);if(t&&typeof t=="function")return(0,Ut.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(HI,"generateCustomExtension");var so=require("path"),oc=require("fs");var iu=o(async e=>new Promise((t,n)=>{(0,oc.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),JZ=o(async e=>JSON.parse(await iu(e)),"readJSON"),QI=o(async e=>new Promise((t,n)=>{(0,oc.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),ZZ=o(async e=>new Promise(t=>{(0,oc.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),M2=o(async e=>new Promise(t=>{(0,oc.exists)(e,n=>{t(n)})}),"resourceExists"),eee=o(async e=>JZ((0,so.join)(e,"manifest.json")),"getManifest"),k2=o(async e=>{let t=[],n=(0,so.join)(e,"changes");if(!await M2(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await QI(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await iu((0,so.join)(n,a)));return t},"getChanges"),w2=o(async(e,t="fragments")=>{let n=[],i=(0,so.join)(e,"ext",t);if(!await M2(i))return n;let r=await QI(i);for(let a of r){let s=(0,so.join)(i,a),l=await iu(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),tee=o(async(e,t)=>{var r,a,s,l,f,p,d,m;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let v=(0,so.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:v,fileContent:await iu(v)})}if((f=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&f.annotations){for(let v of i.mainService.settings.annotations)if((d=(p=i[v])==null?void 0:p.settings)!=null&&d.localUri){let E=(0,so.join)(t,i[v].settings.localUri);n.push({dataSourceUri:E,fileContent:await iu(E)})}}if(n.length===0)for(let v in i){let E=i[v];if((E==null?void 0:E.type)==="ODataAnnotation"&&((m=E==null?void 0:E.settings)!=null&&m.localUri)){let b=(0,so.join)(t,E.settings.localUri);n.push({dataSourceUri:b,fileContent:await iu(b)})}}return n},"getAnnotations"),nee=o(async e=>{let t=(0,so.basename)(e),n=(0,so.join)(e,"webapp"),i=await eee(n),r=await tee(i,n),a=await k2(n),s=await w2(n),l=await w2(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");Tc(Fi,Z(re()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
294
+ `}),N1(Q)}o(Xt,"initI18n");var qA={};yc(qA,{AnalyticalListPage:()=>Xr,ListReport:()=>So,ObjectPage:()=>fi,OverviewPage:()=>Zt,exportFilterSettings:()=>V1,importDateSettingsOVP:()=>D1,importFilterSettings:()=>_1});var sy=Z(re());var Xr=class{};o(Xr,"AnalyticalListPage"),h([y({flex:{controlId:Om,controlType:o(()=>sy.ControlType.DynamicPage,"controlType")}})],Xr.prototype,"fitContent",2),h([kt("table")],Xr.prototype,"table",2),h([kt("template::SmartFilterBar")],Xr.prototype,"filterBar",2),h([kt("analyticalListPageChart")],Xr.prototype,"chart",2),h([kt("analyticalListFooter")],Xr.prototype,"footer",2),Xr=h([Zi({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:sy.v2.FE_TEMPLATE_V2_ALP})],Xr);var Ip=Z(re());var So=class{};o(So,"ListReport"),h([y({flex:{controlId:Om,controlType:o(()=>Ip.ControlType.DynamicPage,"controlType")}})],So.prototype,"fitContent",2),h([kt("listReportFilter")],So.prototype,"filterBar",2),h([kt("listReport")],So.prototype,"table",2),h([kt("listReportFooter")],So.prototype,"footer",2),So=h([Zi({id:Ip.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Ip.v2.FE_TEMPLATE_V2_LIST_REPORT})],So);var QA=Z(re());var fi=class{};o(fi,"ObjectPage"),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.52.0"})],fi.prototype,"showConfirmationOnDraftActivate",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.52.1"})],fi.prototype,"hideChevronForUnauthorizedExtNav",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.48.0"})],fi.prototype,"allowDeepLinking",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.52.0"})],fi.prototype,"navToListOnSave",2),h([kt("header")],fi.prototype,"header",2),h([kt("sections")],fi.prototype,"sections",2),h([kt("layout")],fi.prototype,"layout",2),h([y({manifest:{path:o(t=>nh(t),"path")}}),x({since:"1.77.0"})],fi.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([y({manifest:{path:o(t=>Di(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),x({since:"1.78.0"})],fi.prototype,"globalChartSettings",2),h([y({manifest:{path:o(t=>Di(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:Sc}}),x({since:"1.71.0"})],fi.prototype,"globalTableSettings",2),fi=h([Zi({id:QA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:QA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],fi);function l7(e,t){for(let n in e.dateSettings.fields){t.fields[n]=e.dateSettings.fields[n];let i=e.dateSettings.fields[n].selectedValues;typeof i=="string"&&(t.fields[n].selectedValues=i.split(","));for(let r in e.dateSettings.fields[n].filter){let a=e.dateSettings.fields[n].filter[r];t.fields[n].filter[r]=a,a.equals&&typeof a.equals=="string"&&(t.fields[n].filter[r].equals=a.equals.split(","))}}}o(l7,"importDateSettingsFieldsOVP");function D1(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),e.dateSettings.fields&&l7(e,t),t}o(D1,"importDateSettingsOVP");function _1(e){let t={};return t.dateSettings=D1(e.filterSettings),t}o(_1,"importFilterSettings");function f7(e,t,n){for(let i in e.filterSettings[t].fields){let r=e.filterSettings[t].fields[i];if(r.selectedValues&&(n.filterSettings[t].fields[i].selectedValues=r.selectedValues.join()),r.filter)for(let a in r.filter){let s=r.filter[a];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[a].equals=s.equals.join())}}}o(f7,"exportFilterFields");function V1(e,t){e.filterSettings||(e.filterSettings={});let n="dateSettings";t.filterSettings[n]===void 0?delete e.filterSettings[n]:(e.filterSettings[n]=JSON.parse(JSON.stringify(t.filterSettings[n])),t.filterSettings[n].selectedValues&&(e.filterSettings[n].selectedValues=t.filterSettings[n].selectedValues.join()),t.filterSettings[n].fields&&f7(t,n,e))}o(V1,"exportFilterSettings");var Zt=class{};o(Zt,"OverviewPage"),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"globalFilterModel",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"globalFilterEntityType",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"globalFilterEntitySet",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"showBasicSearch",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"disableErrorPage",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"smartVariantRequired",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"bHeaderExpanded",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"containerLayout",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"showDateInRelativeFormat",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"disableTableCardFlexibility",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"enableLiveFilter",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"enableLazyRendering",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"refreshStrategyOnAppRestore",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"considerAnalyticalParameters",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"refreshIntervalInMinutes",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"useDateRangeType",2),h([y({manifest:{path:o(()=>An(),"path"),import:_1,export:V1}}),x({since:"1.80.0"})],Zt.prototype,"filterSettings",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"resizableLayout",2),Zt=h([Zi({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Zt);var YA=class YA{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let a=this.controls[r]?this.controls[r]:this.controls[n];return a||(a=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};o(YA,"MetadataFactory");var hf=YA;var ei=Z(re());var u7={},p7={Table:Mc,ResponsiveTableWithMultiSelect:Mc,ResponsiveTableWithInlineDelete:Mc},d7={[ei.v2.CardSettingsType.listCardSettings]:tf,[ei.v2.CardSettingsType.listCardSettingsv4]:tf,[ei.v2.CardSettingsType.analyticalCardSettings]:nf,[ei.v2.CardSettingsType.analyticalCardSettingsv4]:nf,[ei.v2.CardSettingsType.stackCardSettings]:Qu,[ei.v2.CardSettingsType.linkListCardSettings]:qu,[ei.v2.CardSettingsType.tableCardSettings]:rf,[ei.v2.CardSettingsType.tableCardSettingsv4]:rf},g7={[ei.SAPUI5_VIEW_CLASS]:bp,[ei.SAPUI5_FRAGMENT_CLASS]:vp,Table:Qc,ObjectPageResponsiveTableWithMultiSelect:Qc,ObjectPageResponsiveTableWithInlineDelete:Qc},m7={[ei.PageTypeV2.AnalyticalListPage]:u7,[ei.PageTypeV2.ListReport]:p7,[ei.PageTypeV2.ObjectPage]:g7,[ei.PageTypeV2.OverviewPage]:d7},zA=class zA extends hf{constructor(){super(HA,qA,m7)}};o(zA,"MetadataInstanceFactoryV2");var Vi=zA;function h7(e,t,n,i,r){if(e.filterBar=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar),kn(e.filterBar,n.manifest,i[Qt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(Qt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),kn(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(h7,"importFilterBar");function JA(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,d,m;let l=vr(s),f={controlId:l.controlId,propertyId:(p=l.content)==null?void 0:p.property,newValue:(d=l.content)!=null&&d.newBinding?l.content.newBinding:(m=l.content)==null?void 0:m.newValue,controlType:l.controlType,creation:l.creation};Zh(n.table,f,t)});let i=t.properties.columns.$ref.split("/").pop(),r=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in r)s!=="custom"&&ey(e,n,s)}o(JA,"importFlexChangesOfTableAndColumns");function y7(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[Um]&&t[$m]&&(a=JSON.parse(JSON.stringify(t[Um])),a.properties={...a.properties,...t[$m].properties}),kn(n.table,i.manifest,a,r,i.logger),JA(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&oe(i.logger,{severity:Qt.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}o(y7,"importTable");function T7(e,t,n,i){let r=e.jsonSchema.definitions,a=ny(e.manifest,i);if(t.table=n.createInstance(Qt.PageTypeV2.ListReport,a,t.table),iy(t,n,r),y7(a,r,t,e,i),t.table.toolBar=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ToolBar,{actions:{}}),kn(t.table.toolBar,e.manifest,r[Qt.DefinitionName.ToolBarLR],i,e.logger),r[Qt.DefinitionName.ActionsLR])for(let l in r[Qt.DefinitionName.ActionsLR].properties){let f=Fs(l);t.table.toolBar.actions[f]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.Action),kn(t.table.toolBar.actions[f],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}h7(t,n,e,r,i),t.footer={actions:{}};let s=r[Qt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let f=Fs(l);t.footer.actions[f]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.FooterAction),kn(t.footer.actions[f],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}}o(T7,"addSettings");function w1(e){if(Xt(),!df(e))return;let n=new Vi,i=n.createPageInstance(Qt.PageTypeV2.ListReport),r=[],a=pf(e.manifest[Qt.ManifestSection.generic].pages,r);if(gf(a,e.logger,a==null?void 0:a.entitySet),!!a)return T7(e,i,n,r[0]),e.flex.forEach(s=>{vr(s)&&ty(i,s,e.jsonSchema,e.logger)}),uf(i,e,a,Qt.PageTypeV2.ListReport),ay(i),i}o(w1,"createListReportConfig");var ve=Z(re());var Op=require("@sap-ux/vocabularies-types/vocabularies/UI");var b7=[ve.ControlType.Avatar,ve.ControlType.ObjectPageLayout,ve.ControlType.DynamicPage];function E7(e,t){let n=e[0].split("--"),i=n[n.length-1];if(e[0].indexOf("::action::")>=0||e[0].startsWith("action::"))t=n[0].split("::action::")[0]||n[0].split(`${Op.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${ve.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Op.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let r=i.split("::");r.length>1?t=r[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}o(E7,"getSingleSelectorIdPart");function S7(e){let t,n=e.split(":::");if(n.length===1)t=E7(n,t);else if(e.indexOf("sSmartTableId")>=0){for(let i of n)if(i.startsWith("sSmartTableId")){t=i.split("sSmartTableId::")[1].split("::Table")[0].split("/responsiveTable")[0].replace(`::${Op.UIAnnotationTerms.LineItem}`,`/@${Op.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(S7,"getFacetID");function A7(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,f,p;try{let d=vr(s),m=d&&((l=d.controlId)==null?void 0:l.split("--"))||[];if(d&&((f=m[0])!=null&&f.includes(ve.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let v=m[1].replace(/:3a:3a/g,"::");r.exec(v)!==null&&(v=v.split("template:::TableColumn:::")[1]);let E=S7(v);v=WA(v).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${v}::${d.content.property}`]={controlId:v,propertyId:d.content.property,facetId:E,newValue:d.content.newBinding!==void 0?d.content.newBinding:d.content.newValue,controlType:d.controlType,creation:d.creation}}}catch(d){oe(n,{severity:ve.LogSeverity.Error,message:Q.t("FLEXERROR")},...d)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,f])=>(s[l]=f,s),{})}o(A7,"prepareFlexChanges");var P7=o(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(U,"");if((i=(n=e.properties)==null?void 0:n.subsections)!=null&&i.$ref)return t=e.properties.subsections.$ref,t=t.includes("<")?t.split("<")[0]:t,t.replace(U,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function x7(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&GA(i,t,r)}o(x7,"addFlexChangeToColumns");function M1(e,t,n,i,r,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,ve.VOCWITHSLASH)];for(let f in e){let p=e[f],d=p.propertyId===t,m=t==="columns"&&p.controlType===ve.ControlType.TableColumn;(d||m)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?x7(a,p,r.properties,n):Zh(n,p,r))}}o(M1,"importFlexChangesOfTable");function C7(e,t){return e.facetId==="template"&&t}o(C7,"isStandardActionFlexChange");var k1=o((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),r=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,r);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function I7(e,t,n,i,r,a){var I;let s=!1,l=!1;a?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let f=t.controlId.split("::"),p=t.controlType===ve.ControlType.GroupElement&&l,d=((I=t.facetId)==null?void 0:I.includes(ve.ACTIONTITLEPREFIX))&&!r&&s,m=r&&k1(f,r.split("::"))&&s,v=e.title&&k1(f,e.title.split("::"),!0),E=!t.facetId&&b7.includes(t.controlType),b=C7(t,l);return p||d||m||v||E||b}o(I7,"matchSelector");function O7(e,t,n,i,r,a){var f;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let p in n){let d=n[p];if(d.propertyId!==i||d.controlType!==((f=e.properties[d.propertyId])==null?void 0:f[ve.SchemaTag.controlType]))continue;I7(e,d,s,l,r,a)&&(t[i]=d.newValue)}}o(O7,"importFlexChanges");function R7(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(oe(n.logger,{severity:ve.LogSeverity.Warning,message:Bl(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(R7,"checkDeprecatedProperties");function L7(e,t,n,i,r,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,f,p;s!=null&&s.title?(f=e.manifest.path(t,{},s.title),p=Kn(n.manifest,f),Object.values(p).length===0&&(f=e.manifest.path(t,{},l),p=Kn(n.manifest,f))):(f=e.manifest.path(t,{},l),p=Kn(n.manifest,f));let d=e.manifest.import;if(d&&typeof d=="function"){let m=d(p,s==null?void 0:s.id);m!==void 0&&(i[r]=m)}else{let m=e.manifest.key||r;m in p&&(i[r]=p[m])}return R7(p,a,n,f),p}o(L7,"importManifestSetting");function wi(e,t,n,i,r,a){var f,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let d in n.properties||n){let m=Mn(t,d);if(d==="columns"||m!=null&&m.flex)if((f=r==null?void 0:r.type)!=null&&f.startsWith("ObjectPageSectionTableV2")||(p=r==null?void 0:r.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(d==="columns"){let v=n.properties[d].$ref.split(U)[1],E=e.jsonSchema.definitions[v];M1(i.flexChanges,d,t,r,E,l)}else M1(i.flexChanges,d,t,r,n);else{let v=(r==null?void 0:r.title)||(r==null?void 0:r.id);O7(n,t,i.flexChanges,d,v,a)}else m!=null&&m.manifest&&L7(m,i.pageKeys,e,t,d,s,r)}}o(wi,"transferSettingsAndFlexChanges");function U1(e,t,n,i){let r=Yi(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${m_}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${Bm}${r}`;break}}return r.replace(/@/g,"")}o(U1,"getActionId");function N7(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split(U)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],f=U1(s,a,"","");e.actions[a]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,l,{}),wi(n,e[ve.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},f)}}}o(N7,"fillStandardActions");function cy(e,t,n,i,r,a){var l;n[ve.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let f={};a&&(f.id=a);for(let p in t){let d=Fs(p),m=U1(s,d,r,a);m&&(n[ve.PropertyName.actions][d]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,s),wi(e,n[ve.PropertyName.actions][d],e.jsonSchema.definitions[s],i,f,m)),(l=n[ve.PropertyName.actions])!=null&&l[d]&&Object.keys(n[ve.PropertyName.actions][d]).length===0&&delete n[ve.PropertyName.actions][d]}}N7(n,t,e,i),Object.keys(n[ve.PropertyName.actions]).length===0&&delete n[ve.PropertyName.actions]}o(cy,"fillActions");function F7(e,t,n,i,r){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,"Field");let f=(s=t.title)!=null&&s.includes(ve.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;wi(e,i[t.id].form.fields[l],e.jsonSchema.definitions[ve.DefinitionName.Field],r,{},f),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}o(F7,"fillFields");function D7(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`]&&n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`]&&(i=JSON.parse(JSON.stringify(n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`])),i.properties={...i.properties,...n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`].properties}),i}o(D7,"prepareTableSchema");function _7(e,t,n,i,r){var l,f;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",d=r.factory.createInstance(ve.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][ve.PropertyName.table]=d;let m=e.jsonSchema.definitions,v=D7(p,t,m);wi(e,i[t.id],t.schema,r,{title:t.title}),wi(e,i[t.id][ve.PropertyName.table],v,r,t);let E=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(E!=null&&E.properties){let b=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(f=t==null?void 0:t.id)==null?void 0:f.replace(/@/g,"::").replace(/::com/g,"com");cy(e,E.properties,i[t.id][ve.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",b)}Object.keys(i[t.id][ve.PropertyName.table].toolBar).length===0&&delete i[t.id][ve.PropertyName.table].toolBar}}o(_7,"fillTableInConfig");function V7(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?Dm(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};uf(n[t],e,i,ve.PageTypeV2.ObjectPage,l,r)}}o(V7,"fillCustomColumnsInConfig");function w7(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][ve.PropertyName.chart]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(wi(e,i[t.id],t.schema,r,{title:t.title}),wi(e,i[t.id][ve.PropertyName.chart],e.jsonSchema.definitions[ve.DefinitionName.ObjectPageChart],r,t))}o(w7,"fillChartSection");function M7(e,t,n,i){n[t.id]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&wi(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(M7,"fillHeaderSection");function k7(e,t,n,i){var f;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&wi(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${r}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(f=t==null?void 0:t.id)==null?void 0:f.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&cy(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&F7(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}o(k7,"fillFormSection");function j1(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&wi(e,i[t.id],t.schema,r,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,ZA(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(j1,"fillSubSection");function ZA(e,t,n,i,r){var s;let a=e.jsonSchema.definitions;for(let l in t){let f=l.replace(/\/@/g,"::"),p={id:f,type:P7(t[l]),schema:t[l],title:dE(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],_7(e,p,n,i,r),V7(e,f,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],w7(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],k7(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${l}>`],j1(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],M7(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],j1(e,p,n,i,r))}}o(ZA,"fillSectionsInConfig");function j7(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];wi(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(j7,"fillCustomSectionsInConfig");function U7(e,t){var d,m;let n=t.factory.createPageInstance(ve.PageTypeV2.ObjectPage);wi(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(ve.PageTypeV2.ObjectPage,ve.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;wi(e,n.globalTableSettings,i[ve.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(ve.PageTypeV2.ObjectPage,ve.DefinitionName.ObjectPageHeader);let r=i[ve.DefinitionName.ObjectPageHeader]?i[ve.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];wi(e,n.header,r,t);let a=i[ve.DefinitionName.ObjectPageHeaderActions];a&&cy(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[ve.DefinitionName.FooterActions];s&&cy(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageLayout"),wi(e,n.layout,i[ve.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[ve.DefinitionName.HeaderSections];if(l){let v=(d=t.v2Page.component)==null?void 0:d.settings;ZA(e,l.properties,v,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let f=i[ve.DefinitionName.Sections];if(f){let v=(m=t.v2Page.component)==null?void 0:m.settings;ZA(e,f.properties,v,n.sections,t)}let p=L1(e.manifest,e.entitySet);return j7(p,n,t,i,e),n}o(U7,"fillConfig");function ly(e){Xt();let t=df(e);if(!t)return;let n=e.entitySet,i=[],r=Yc(t,e.entitySet,i);if(gf(r,e.logger,n),!r)return;let a=A7(e.flex,n),s=new Vi;return U7(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(ly,"createObjectPageConfigV2");var Qr=Z(re());var tP=Z(_b());var Rt=Z(re());var $7=["colorPalette","tabs"];function B7(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(B7,"createCard");function $1(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),$1(e,n.join("|"))}return t}o($1,"findAvailableId");function Rp(e,t,n,i,r,a,s){i!=null&&i.properties&&eP(e,t,n,i.properties,r,a,s)}o(Rp,"transferManifestEntriesOVP");function zc(e,t,n,i){return e.createInstance(Rt.PageTypeV2.OverviewPage,i,n,t)}o(zc,"assignReflectMetadataRules");function H7(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split(U),r=e.appSchema.definitions[i[1]];t=zc(e.factory,i[1],t,"CustomCard"),Rp(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(H7,"processAnyOfDefinitionsOfOVP");function G7(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!$7.includes(i)?t[i]=(0,tP.default)(t[i]||{},r||{},{arrayMerge:lE}):t[i]=r}o(G7,"checkSyncRuleForExport");function W7(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=Kn(i.manifest,s);if(n in Rt.v2.CardSettingsType||n==="settings")l.settings=(0,tP.default)(l.settings||{},r||{},{arrayMerge:lE});else if(r!==void 0){let f=e.manifest.export;G7(f,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(W7,"transferToManifest");function K7(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template??"CustomCard",i=[...new Set(Object.keys(Rt.v2.cardTemplateTypeMap))].filter(r=>r!==n);i.push(n);for(let r of i){let a;Object.values(Rt.v2.CardTemplateType).includes(r)?a=Object.keys(e.appSchema.definitions).filter(s=>{var f;let l=(f=e.appSchema.definitions[s].properties)==null?void 0:f.template;if(l!=null&&l.enum)return l.enum.indexOf(r)>-1;if(l!=null&&l.const)return l.const===r}):a=["CustomCard"],e.currentObject[t]=zc(e.factory,a[0],e.currentObject[t],"CustomCard"),B7(t,e.exportResults.manifest[Rt.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated,Rp(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[a[0]],e.factory,["cards",t],e.entityPathArray)}}),Object.keys(e.exportResults.manifest[Rt.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[Rt.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated)})}o(K7,"transferCards");function X7(e,t){if(t==="cards")K7(e);else{let n=Uo(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,Rt.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split(U);e.currentObject=zc(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],Rp(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],eP(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],e.factory,e.pathHierarchy,e.entityPathArray)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],eP(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(X7,"exportOfObject");function eP(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!kl(a,s)&&a[a.length-1]!=="anyOf")continue;let f=e[l],p=Mn(e,l),d={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:f,configObject:e,factory:r,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(d.currentObject=e[a[a.length-2]],f=H7(d)):f&&typeof f=="object"&&i[l]&&X7(d,l),p!=null&&p.manifest&&W7(p,a,l,t,f,e)}}o(eP,"processProperties");function Q7(e,t,n,i,r,a,s){let l;t.length===0?l=["page"]:l=t;let f=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),p=n_(a,n,e.ui5Version,s,f),d=JSON.parse(JSON.stringify(e.exportResults.manifest));d["sap.app"].id=e.appId;let m=Nm(p,d);e.exportResults.flexChanges.find(E=>{let b=!1,I=JSON.parse(E);I={content:I.content,selector:I.selector};let N=JSON.parse(m);return N={content:N.content,selector:N.selector},JSON.stringify(I)===JSON.stringify(N)&&(b=!0),b})||e.exportResults.flexChanges.push(m)}o(Q7,"evaluateFlexRule");function q7(e,t,n,i,r,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,a):s!==!1&&(n[a]=i[r]),e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated}}o(q7,"exportConfigValueToManifest");function Y7(e,t,n,i,r){let a=Kn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)q7(e,n,a,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated,ls(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(Y7,"evaluateManifestRule");function z7(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(Rt.FACETTITLEPREFIX)?r.split(Rt.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(z7,"getManifestPathOfSections");function J7(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}o(J7,"getManifestPathOfTable");function Z7(e,t,n,i,r){let a;return t[0]===Rt.PropertyName.sections?a=z7(t,a,n,e,r):t[0]===Rt.PropertyName.table?a=J7(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}o(Z7,"getManifestPath");function e6(e,t,n,i,r,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)Q7(e,i,t,r,a,n,s);else if(t.manifest){let f=Z7(e,i,t,n,a);Y7(e,f,t,s,n)}}o(e6,"evaluateExportRule");function t6(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(f=>(f.tabKey===a||a===void 0&&f.tabKey===""||a&&t.sectionKey===a)&&f.extensionType===t.extensionType);if((!l||l.length===0)&&(dh(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Rt.ViewTemplateType.ResponsiveTableColumnsExtension))){let f=e.replace(Rt.ViewTemplateType.ResponsiveTableColumnsExtension,Rt.ViewTemplateType.ResponsiveTableCellsExtension);dh(n,f,t.appId,t.exportResults.fragments),delete n[f]}}}o(t6,"deleteObsoleteColumn");function n6(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=U_(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated,t6(r,e,n))}o(n6,"deleteObsoleteColumnsFromFragment");function i6(e,t,n,i,r){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:f}=gh(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:f,columns:[]}),a[l].columns.push(s)}return a}o(i6,"clusterConfigColumnsByPath");function B1(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in Rt.v2.TableColumnExtensionTypeV2){let{path:f}=gh(e.v2Page,s,r,l);if(!f)continue;let p={path:f,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};try{n6(p)}catch(d){e.logger.error(d.message)}}if(t){let l=i6(t,n,e.v2Page,s,r);for(let f in l)RS(e.exportResults,f,l[f].columns,e.appId,l[f].viewTemplateType,e.logger)}}o(B1,"transferColumnExtensions");function r6(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let d=$1(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(d)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(E=>{var b;return(b=E.$ref)==null?void 0:b.includes(t[p].constructor.name)}).$ref.split(U),v=e.appSchema.definitions[m[m.length-1]];Vs(e,t[p],i,[...r,s[p]],v)}let f=Kn(e.exportResults.manifest,eS());for(let p in f)KA(p,l)&&!s.includes(p)&&delete f[p]}o(r6,"transferManifestExtensions");function o6(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Rt.PropertyName.table){n=e[i-1];break}return zn(n,t)}o(o6,"getSectionId");function a6(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let f=Uo(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);Vs(t,f.configObject,r,[...a,i],f.targetDefinition,l)})}o(a6,"transferIndexTable");function s6(e,t,n,i,r,a){let s,l=Dm(e.$ref);l&&(s={target:l,key:o6(t,n)}),B1(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(s6,"transferCustomColumns");function c6(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let f=Uo(t.appSchema,n,i,l,r,t.factory,t.pageType);f&&Vs(t,f.configObject,a,[...s,r],f.targetDefinition,f.title)})}o(c6,"handleAnyOfDefinitions");function l6(e,t,n,i,r,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")r6(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){s6(l,t,s,e,n,a);return}else a?Vs(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&c6(l,e,s,n==null?void 0:n[r],r,i,t)}o(l6,"transferComplexProperty");function Vs(e,t,n,i,r,a){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!kl(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let f=t&&Rm(t,l),p=f?[...n,f]:n,d=Mn(t,l),m=e.propertyDefinition=r.properties[l],v=e.nextDefinition=Uo(e.appSchema,a,s,m,l,e.factory,e.pageType);if(e6(e,d,t,[...i],p,a,l),a6(s,e,a,l,p,i),s===void 0||typeof s=="object")l6(e,i,t,p,l,v,a);else if((m==null?void 0:m.$ref)===U+"TableCustomColumns"){B1(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(Vs,"transferManifestEntriesAndFlexChange");function H1(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=zc(r,i,n[i],s),a.push(i),nP(r,n[i],e,l.properties,a)}o(H1,"transferSettingsOfRef");function f6(e,t,n,i,r,a){if(n[t].$ref){e[t]=e[t]??{};let s=n[t].$ref.split(U);H1(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf&&e.template in Qr.v2.cardTemplateSettingsMap){e[t]=e[t]??{};let l=`${U}${Qr.v2.cardTemplateSettingsMap[e.template]}`.split(U);H1(i,l,e,t,r,a)}}o(f6,"processPropertiesOfObject");function u6(e,t,n,i,r,a){let s=Mn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),f=Kn(i.manifest,l);if(Object.prototype.hasOwnProperty.call(f,t))try{Hl(s,f,t,e)}catch(p){oe(i.logger,{severity:Qr.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:xm(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&f6(e,t,r,i,a,n)}o(u6,"processOvpProperty");function nP(e,t,n,i,r){for(let a in i)u6(t,a,r,n,i,e)}o(nP,"processOvpProperties");function p6(e,t,n){nP(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[Qr.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[Qr.ManifestSection.ovp].cards[i].template,a=Qr.v2.cardTemplateTypeMap[r]??"CustomCard",s=[...new Set(Object.values(Qr.v2.cardTemplateTypeMap))].filter(l=>l!==a);s.push(a);for(let l of s)e.cards[i]=zc(n,l,e.cards[i]??{},"CustomCard"),e.cards=zc(n,l,e.cards,"CustomCard"),nP(n,e.cards[i],t,t.jsonSchema.definitions[l].properties,["cards",i])})}o(p6,"addSettings");function fy(e){let t=new Vi,n=t.createPageInstance(Qr.PageTypeV2.OverviewPage);return e.jsonSchema&&p6(n,e,t),n}o(fy,"createOverviewPageConfig");var xt=Z(re());function d6(e,t,n,i){var p,d;let r=ny(e.manifest,i),a=e.jsonSchema.definitions;iy(t,n,a),t.table=n.createInstance(xt.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(kn(t.table,e.manifest,s,i,e.logger),JA(e,s,t),t.table.toolBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.ToolBar,{actions:{}}),kn(t.table.toolBar,e.manifest,a[xt.DefinitionName.ToolBar],i,e.logger),a[xt.DefinitionName.ActionsLR])for(let m in a[xt.DefinitionName.ActionsLR].properties){let v=Fs(m);t.table.toolBar.actions[v]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.Action),kn(t.table.toolBar.actions[v],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),kn(t.filterBar,e.manifest,a[xt.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[xt.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[xt.DefinitionName.SelectionFields].properties;for(let v in m){let E=v;t.filterBar.selectionFields[E]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),kn(t.filterBar.selectionFields[E],e.manifest,a.SelectionFieldDateSettings,i,e.logger,E)}}t.chart=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),kn(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[xt.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let v=Fs(m);t.footer.actions[v]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.FooterAction),kn(t.footer.actions[v],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let f=(d=(p=e.manifest[xt.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:d.keyPerformanceIndicators;f&&Object.keys(f).forEach(m=>{t.keyPerformanceIndicators[m]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),kn(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o(d6,"addSettings");function uy(e){if(Xt(),!df(e))return;let n=new Vi,i=n.createPageInstance(xt.PageTypeV2.AnalyticalListPage),r=[],a=mf(e.manifest[xt.ManifestSection.generic].pages,r,e.logger);if(gf(a,e.logger,a==null?void 0:a.entitySet),!!a)return d6(e,i,n,r[0]),e.flex.forEach(s=>{vr(s)&&ty(i,s,e.jsonSchema,e.logger)}),uf(i,e,a,xt.PageTypeV2.AnalyticalListPage),ay(i),i}o(uy,"createAnalyticalListPageConfig");var ti=Z(re());var yf=require("@sap-ux/vocabularies-types/vocabularies/UI");var m6=["filterBar","table","footer"],h6=ti.UIVOCABULARYALPHADOT.substring(1);function iP(e,t,n,i){ds(e,n,"QuickVariant"),R_(n,"QuickVariantX",t),L_(i,n,"QuickVariantX")}o(iP,"addEnumForVariantPaths");function y6(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[yf.UIAnnotationTerms.SelectionPresentationVariant,yf.UIAnnotationTerms.SelectionVariant,yf.UIAnnotationTerms.PresentationVariant];Lc(e,r,i)}o(y6,"addEnumForFilterBarAnnotationPath");function T6(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(yf.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(yf.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(h6,""),f=e[l];f?s?i=f:(i=f.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(oe(n,{severity:ti.LogSeverity.Warning,message:Q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(T6,"getPresentationVariantForLineItem");function v6(e,t,n){if(_s(t,"annotationPath",n))return;let i=T6(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=Mu("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||oe(n,{severity:ti.LogSeverity.Warning,message:Q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(v6,"getLineItemAnnotation");function G1(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:U+ti.DefinitionName.LineItems},r=U+ti.DefinitionName.ToolBarLR;GE.forEach((f,p)=>{n.properties.table.anyOf[p.toString()].$ref=U+f;let d=f.replace("<LineItems>",""),m=JSON.parse(JSON.stringify(t.definitions[d]));m.properties.columns=i,m.properties.toolBar.$ref=r,n.definitions[f]=m});let{entityType:a,uIAnnotations:s}=Ql(e);if(s){let f=[],p=pf(e.manifest[ti.ManifestSection.generic].pages,f);Xl(n);let d=v6(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(d){let v=Tr(a.fullyQualifiedName,d.term,d.qualifier);GE.forEach(E=>{n.definitions[E][ti.SchemaTag.annotationPath]=v})}Wl(!1,n,d,a);let m=s.SelectionFields;if(Gm(n,m,a),ql(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],E_(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return oe(e.logger,{severity:ti.LogSeverity.Error,message:Q.t("NOLR"),location:{path:ti.MANIFESTPATH,range:[ti.ManifestSection.generic]}}),n;Kl(n,a,p,e.manifest,e.fragments),iP(a,e.entitySet,n,e.serviceAVT),y6(a,n,ti.DefinitionName.ListReportFilterBar),N_(a,n,ti.DefinitionName.MultiEditV2),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return $o(n,m6),n}o(G1,"generateListReportSchemaV2");var we=Z(re());var Lp=o(e=>({flexChanges:[],manifest:{[we.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:we.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:we.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function W1(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===we.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}o(W1,"getClassesForSingleSection");function K1(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],W1(n,i,t),K1(n,t)}}o(K1,"getSubsectionClasses");function b6(e,t,n){let i;for(let r in e.sections)i=t.sections[r],W1(i,r,n),K1(i,n)}o(b6,"getExportClassesForSections");function E6(e,t){let n=pf(t.manifest[we.ManifestSection.generic].pages,e);if(!n){oe(t.logger,{severity:we.LogSeverity.Error,message:Q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){oe(t.logger,{severity:we.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(E6,"findV2Page");function rP(e,t){let n=Lm(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(rP,"calculateBaseId");function X1(e,t,n=!1){let i=Lp(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let a=[],s=E6(a,e),l=new Vi,f=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:rP(f,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Vs(p,f,[],[],e.jsonSchema)}return i}o(X1,"exportListReportPage");function Q1(e,t,n=!1){let i=e.page.config,r=Lp(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=mf(e.manifest[we.ManifestSection.generic].pages,a,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new Vi,f=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:rP(f,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Vs(p,f,[],[],e.jsonSchema)}return r}o(Q1,"exportAnalyticalListPage");function q1(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=Lp(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=Yc(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return oe(e.logger,{severity:we.LogSeverity.Error,message:Q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let f=new Vi,p=f.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&b6(i,p,f),Object.keys(i).length!==0){let d={v2Page:l,exportResults:a,appId:e.appId,baseId:rP(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:f,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Vs(d,p,[],[],e.jsonSchema)}}return a}o(q1,"exportObjectPage");var Y1=o(e=>{let t=Lp();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new Vi,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Rp(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),S6=o((e,t,n)=>{var s;let i=Lp();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new eh,e);r.settings=Object.assign(new ys,e.settings);for(let l in n.definitions.AppSettings.properties){let f=Mn(r.settings,l);if(f&&f.manifest){let p=f.manifest.path(),d=Kn(i.manifest,p);e.settings&&e.settings[l]!==void 0?d[l]=e.settings[l]:(delete d[l],ls(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&ZE(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function z1(e,t){if(e[we.SchemaType.ListReport])return aP(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return q1(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return Y1(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return S6(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return Q1(e[we.SchemaType.AnalyticalListPage],t)}o(z1,"exportPageV2");function oP(e,t,n=!1){if(e[we.SchemaType.ListReport])return aP(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return q1(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return Y1(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return Q1(e[we.SchemaType.AnalyticalListPage],t,n)}o(oP,"exportConfigEntityByPathV2");var _a=Z(re());function J1(e,t){e.anyOf&&e.anyOf.forEach(function(n){Jc(n,t)})}o(J1,"addAnyOfToReferredTypes");function dy(e){return typeof e.items!="object"||Array.isArray(e.items)?void 0:e.items}o(dy,"getSingleItem");function Jc(e,t){if(typeof e!="object")return;let n=Ea(e);n&&Z1(n,t),J1(e,t),Jc(e.additionalProperties,t),Jc(dy(e),t)}o(Jc,"addReferredTypesFromElement");function Z1(e,t){t.referredTypeNames.add(e);let n=t.types[e];Jc(n,t);let i=n.properties;i?Object.values(i).forEach(r=>Jc(r,t)):Jc(dy(n),t),Jc(n.additionalProperties,t)}o(Z1,"addReferredTypesFromType");function py(e,t,n,i,r){if(typeof t!="object")return;let a=Ea(t);if(a){let s=r.types[a];if(s||(s=e==null?void 0:e.refTypeDefinition,r.types[a]=s),e){let l;if(e.suffix){let p=`${a}<${e.suffix}>`;t.$ref=Pm(p),l=structuredClone(s),r.types[p]=l,r.referredTypeNames.add(p)}else r.referredTypeNames.add(a),l=s;let f={pageInfo:i.pageInfo,specificParams:e.specificParams||i.specificParams};sP(n,f,e.syncRuleProvider,l,r)}else Z1(a,r)}else sP(n,i,e==null?void 0:e.syncRuleProvider,t,r)}o(py,"applyAdaptationInfoToElement");function sP(e,t,n,i,r){var v,E;let a={element:i},s=H0(n);if(s!=null&&s.processingRuleAdapter&&(s.processingRuleAdapter(a,t,e),!a.element))return;py(a.additionalPropertiesAdaptation,i.additionalProperties,e,t,r);let l={pageInfo:t.pageInfo,specificParams:((v=a.referenceAdaptation)==null?void 0:v.specificParams)||t.specificParams},f=i.properties,p;if(f)p=f;else{let b=dy(i);if(b)f={items:b},p=i;else return}let d,m=((E=a.referenceAdaptation)==null?void 0:E.processingRulesAdapter)||function(b,I){d=d||n&&new n;let N=Mn(d,b);N!=null&&N.processingRuleAdapter&&N.processingRuleAdapter(I,l,e)};for(let b in f){let I=f[b];if(typeof I!="object"){p[b]=I;continue}let N={element:{...I}};m(b,N),N.element?(N.controlId?N.element[_a.SchemaTag.controlId]=`${t.pageInfo.controlId}--${N.controlId}`:N.manifestPath&&(N.element[_a.SchemaTag.artifactType]="Manifest",N.element[_a.SchemaTag.manifestPath]=N.manifestPath),J1(N.element,r),py(N.referenceAdaptation,N.element,e,l,r),py(N.additionalPropertiesAdaptation,N.element.additionalProperties,e,l,r),py(N.itemsAdaptation,dy(N.element),e,l,r),p[b]=N.element):delete p[b]}}o(sP,"adjustElement");function A6(e,t,n){let i=t.split("."),r=i[i.length-1],a=t+".view."+(r==="ObjectPage"?"Details":r);return`${e}::${a}::${n}`}o(A6,"getViewId");function eV(e,t,n){var $;Xt();let i=bc(e.manifest,_a.FioriElementsVersion.v2,n);if(!i||i===_a.TemplateType.OverviewPageV2)return;let{parent:r}=Eo(e.manifest,e.pagePath);if(!r)return;let a=r.component;if(_s(r,"entitySet",n,"string",!0)||_s(a,"name",n,"string",!0))return;let s=r.entitySet,l=a.name,f=t(l),p=f==null?void 0:f.genericSchema,d=f==null?void 0:f.syncRuleProvider;if(!d||!p)return p;let m=e.parsedAnnotations||$r(e.annotations,n),v=($=m==null?void 0:m.entitySets)==null?void 0:$.find(se=>se.name===s);if(!v)return p;let E=structuredClone(p),b=A6(e.appId,l,s),N={pageInfo:{appId:e.appId,componentName:l,entitySet:s,controlId:b,pagePath:e.pagePath}},j={templateType:i,manifest:e.manifest,serviceAVT:m,fioriElementsVersion:_a.FioriElementsVersion.v2,entitySet:v,fragments:e.fragments,logger:n,entityType:v.entityType},G={types:E.definitions,referredTypeNames:new Set};sP(j,N,d,E,G);for(let se in E.definitions)G.referredTypeNames.has(se)||delete E.definitions[se];return E}o(eV,"getAdaptedSchema");var Fp=Z(re());var cP=Z(re());var tV=Z(re());var my=class my{};o(my,"Share"),h([y({flex:{controlType:o(()=>tV.ControlType.Button,"controlType")},processingRuleAdapter:o(t=>{t.controlId="template::Share"},"processingRuleAdapter")})],my.prototype,"visible",2);var gy=my;var ws=class{};o(ws,"ListHeaderActions"),h([y({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:gy}}})],ws.prototype,"Share",2),ws=h([y({processingRuleAdapter(e){e.element[cP.SchemaTag.icon]="Export"}})],ws);var Va=class{};o(Va,"ListHeader"),h([y({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:ws}}})],Va.prototype,"actions",2),Va=h([y({processingRuleAdapter(e){e.element[cP.SchemaTag.icon]="Header"}})],Va);var yy=require("@sap-ux/vocabularies-types/vocabularies/UI"),Ma=Z(re());var Ms={since:"1.77.0"},hy={flex:{controlType:o(()=>Ma.ControlType.SmartFilterBar,"controlType")},processingRuleAdapter(e){e.controlId="listReportFilter"}};function lP(e){return R1(e,function(t,n){return{manifestPath:Ds(n.pageInfo.pagePath,["filterSettings","dateSettings"])}})}o(lP,"getSyncRuleForDateRangeProperty");var Tf=class Tf{};o(Tf,"DateRange"),h([y(lP("useDateRange")),x(Ms)],Tf.prototype,"useDateRange",2),h([y(lP("selectedValues")),x(Ms)],Tf.prototype,"selectedValues",2),h([y(lP("exclude")),x(Ms)],Tf.prototype,"exclude",2);var fP=Tf,Np={manifest:{},processingRuleAdapter(e,t){let n=t.specificParams;if(!n.selectionFieldInfo.hasDateRangeOption){delete e.element;return}e.manifestPath=Ds(t.pageInfo.pagePath,["filterSettings","dateSettings","fields",n.accessor])}};var Yr=class{};o(Yr,"FilterField"),h([y(Np),x(Ms)],Yr.prototype,"selectedValues",2),h([y(Np),x(Ms)],Yr.prototype,"exclude",2),h([y(Np),x(Ms)],Yr.prototype,"customDateRangeImplementation",2),h([y(Np),x(Ms)],Yr.prototype,"filter",2),h([y(Np),x({since:"1.90.0"})],Yr.prototype,"defaultValue",2),Yr=h([y({processingRuleAdapter(e,t){let n=t.specificParams,i=n.selectionFieldInfo.field,r=n.entityType,a=i.value,s=i.type==="PropertyPath"?jl(i,r):a;e.element.description=s,e.element[Ma.SchemaTag.dataType]=n.selectionFieldInfo.dataType,e.element[Ma.SchemaTag.keys]=[{name:Ma.SchemaKeyName.value,value:`${a}`}]}})],Yr);var Zc=class{};o(Zc,"FilterFields"),Zc=h([y({processingRuleAdapter(e,t,n){let i=t.specificParams,r=i.fieldDefinitions,a;for(let l in r){let f=r[l],p={$ref:U+"FilterField"};p[Ma.SchemaTag.propertyIndex]=f.position,a=a||{},a[l]=p}e.element.properties=a,delete e.element.additionalProperties;let s=o(function(l,f){let p={accessor:l,selectionFieldInfo:r[l],entityType:i.entityType};f.referenceAdaptation={suffix:at(l),syncRuleProvider:Yr,specificParams:p}},"processingRulesAdapter");e.referenceAdaptation={processingRulesAdapter:s}}})],Zc);var qr=class qr{};o(qr,"CommonFilterBar"),h([y(hy)],qr.prototype,"liveMode",2),h([y(oy),xe("https://ui5.sap.com/sdk/#/topic/094fe8c8d8ac4f0eb4724b1a52d2ad61")],qr.prototype,"smartVariantManagement",2),h([y(oy),xe("https://ui5.sap.com/sdk/#/topic/094fe8c8d8ac4f0eb4724b1a52d2ad61")],qr.prototype,"variantManagementHidden",2),h([y(oy),xe("https://ui5.sap.com/sdk/#/topic/094fe8c8d8ac4f0eb4724b1a52d2ad61")],qr.prototype,"subTitleIfVariantMgmtHidden",2),h([y(hy)],qr.prototype,"showClearOnFB",2),h([y(hy)],qr.prototype,"showFilterConfiguration",2),h([y(hy)],qr.prototype,"showRestoreOnFB",2),h([y({processingRuleAdapter(t,n,i){t.referenceAdaptation={syncRuleProvider:fP}}}),x(Ms)],qr.prototype,"dateSettings",2),h([y({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:Zc}}})],qr.prototype,"selectionFields",2);var uP=qr,wa=class extends uP{};o(wa,"ListReportFilterBar"),h([y({manifest:{},processingRuleAdapter(t,n){let i=[yy.UIAnnotationTerms.SelectionPresentationVariant,yy.UIAnnotationTerms.SelectionVariant,yy.UIAnnotationTerms.PresentationVariant],r=n.specificParams;Lc(r.entityType,i,t.element);let a=Ds(n.pageInfo.pagePath);t.manifestPath=a}}),xe("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),x({since:"1.86.0"})],wa.prototype,"annotationPath",2),wa=h([y({processingRuleAdapter(e,t){var l;e.element[Ma.SchemaTag.icon]="Filter";let n=t.specificParams,i=((l=n.uIAnnotations)==null?void 0:l.SelectionFields)??[],r={},a=!1;i.forEach((f,p)=>{let d=er(f),m=["Date","DateTime","DateTimeOffset"].includes(d);a=a||m,r[f.value]={field:f,dataType:d,hasDateRangeOption:m,position:p}});let s={entityType:n.entityType,fieldDefinitions:r,hasFieldWithDateRangeOption:a};e.referenceAdaptation={specificParams:s}}})],wa);var zr=class{};o(zr,"ListReportNew"),h([y({flex:{controlType:o(()=>Fp.ControlType.DynamicPage,"controlType")},processingRuleAdapter(t){t.controlId="page"}})],zr.prototype,"fitContent",2),h([y({processingRuleAdapter(t){t.element[Fp.SchemaTag.propertyIndex]=0,t.referenceAdaptation={syncRuleProvider:Va}}})],zr.prototype,"header",2),h([y({processingRuleAdapter(t,n){var r;if((r=n.specificParams.settings)!=null&&r.isWorklist){delete t.element;return}t.element[Fp.SchemaTag.propertyIndex]=1,t.referenceAdaptation={syncRuleProvider:wa}}})],zr.prototype,"filterBar",2),zr=h([Zi({id:C1,pageId:Cp}),y({processingRuleAdapter(e,t,n){let i=Ds(t.pageInfo.pagePath),{entityType:r,uIAnnotations:a}=Ql(n),{parent:s}=Eo(n.manifest,i),l={settings:s,entityType:r,uIAnnotations:a};e.referenceAdaptation={specificParams:l}}})],zr);var mP=require("path"),lV=require("fs");var Sr=Z(re());function P6(e){let t={};return e.flex.forEach(function(i){let r=vr(i);if(r){let a=r,s=t[a.controlId]||[];s.push(a),t[a.controlId]=s}}),t}o(P6,"getChangeMapFormImportParameters");function pP(e,t,n,i,r){if(e===void 0)return;let a=Ea(t),s=a?n[a]:void 0;if(t[Sr.SchemaTag.conversionExit]&&(e=ry(!0,r.conversionExitProvider,t,e,i.fragments,void 0,i.logger),!s))return e;if(s)return pP(e,s,n,i,r);if(t.type==="object"&&t.properties&&typeof e=="object"){let l={},f=!1;for(let p in t.properties){let d=t.properties[p],m=pP(e[p],d,n,i,r);m!==void 0&&(f=!0,l[p]=m)}return f?l:void 0}return t.type==="array"&&!Array.isArray(e)?typeof e=="string"&&e!==""?e.split(","):void 0:e}o(pP,"getConfigRep");function nV(e,t,n,i,r,a,s,l){let f=pP(r,a,s,l,t);if(f===void 0)return;let p=e,d=[];n.forEach(function(m){d.push(m);let v=m.propertyName;p[v]=p[v]||t.propertyInstanceProvider(d),p=p[v]}),p[i]=f}o(nV,"transferValueToConfig");function x6(e,t,n,i,r,a,s,l){let f=r[Sr.SchemaTag.controlId],p=l[f];if(!p)return;let d=-1,m=p.find(function(v,E){return v.content.property===i?(d=E,!0):!1});m&&(nV(e,t,n,i,m.type==="propertyBindingChange"?m.content.newBinding:m.content.newValue,r,a,s),p.length===1?delete l[f]:p.splice(d,1))}o(x6,"importFlexChangesToConfigProperty");function C6(e,t,n,i,r,a,s){let l=r[Sr.SchemaTag.manifestPath],f,p;Array.isArray(l)?(p=l,f=!0):(p=l.path,f=l.addTargetPropertyToPath);let{hasPath:d,value:m,parent:v}=Eo(s.manifest,p,f?i:void 0);if(!d)return;nV(e,t,n,i,f?m:v,r,a,s)}o(C6,"importManifestToConfigProperty");function iV(e,t,n,i,r,a,s){if(Da(n.properties))for(let l in n.properties){let f=n.properties[l];if(!Da(f))continue;let p=f[Sr.SchemaTag.artifactType];if(p===Sr.ArtifactType.FlexChange)x6(e,t,i,l,f,r,a,s);else if(p===Sr.ArtifactType.Manifest&&f[Sr.SchemaTag.manifestPath])C6(e,t,i,l,f,r,a);else{let d=Ea(f),m=d?r[d]:void 0;if(Da(m)){let v=i.concat([{propertyName:l,propertyType:d.split("<")[0]}]);iV(e,t,m,v,r,a,s)}}}}o(iV,"importDefinitionIntoConfig");function rV(e,t,n){var m;let i=bc(e.manifest,Sr.FioriElementsVersion.v2,e.logger);if(!i||i===Sr.TemplateType.OverviewPageV2)return;let{parent:r}=Eo(e.manifest,t),a=(m=r==null?void 0:r.component)==null?void 0:m.name,s=typeof a=="string"?n(a):void 0;if(!s)return;let l=P6(e),f=e.jsonSchema,p=f.definitions,d=s.propertyInstanceProvider([]);return iV(d,s,f,[],p,e,l),d}o(rV,"getConfigForPage");var Pi=Z(re());function I6(e,t,n,i){let r=t===void 0?null:t,a=typeof r=="string"&&r.startsWith("{");i.push({controlId:e[Pi.SchemaTag.controlId],controlType:e[Pi.SchemaTag.controlType],propertyName:n,newValue:r,isBinding:a})}o(I6,"addFlexChangeInfoToList");function oV(e,t,n,i){var l;if(n[Pi.SchemaTag.conversionExit])return ry(!1,i.conversionExitProvider,n,e,i.fragments,t);if(n.type==="array"&&((l=n.items)==null?void 0:l.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 r=typeof t=="object"&&t!==null?{...t}:{},a=!1,s=!1;for(let f in n.properties){let p=n.properties[f];if(!Da(p))continue;let d=Ea(p);p=d&&i.globalTypeDefinitions[d]||p;let m=r[f];s=s||m!==void 0;let v=oV(e?e[f]:void 0,m,p,i);v===void 0?delete r[f]:(r[f]=v,a=!0)}return a?r:s?Object.keys(t).every(f=>Da(n.properties[f]))?void 0:r:t}o(oV,"getValueForManifest");function dP(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(r,a){return dP(r,t[a])}):!0;let n=Object.keys(e).filter(r=>e[r]!==void 0),i=Object.keys(t).filter(r=>t[r]!==void 0);return n.length!==i.length||n.some(function(r){return dP(e[r],t[r])})}o(dP,"isDifferent");function O6(e){return!e||!Object.keys(e).some(t=>e[t]!==void 0)}o(O6,"isEmpty");function R6(e,t,n,i,r){let a=n.manifest,s=e.length-1,l=e[s],f=[];e.some(function(m,v){if(v===s)return!0;let E=a[m];if(typeof E!="object"||E===null)return!0;a=E,f.push(a)});let p=f.length===s?a[l]:void 0,d=oV(t,p,i,r);if(dP(d,p))if(d===void 0){n.manifestChangeIndicator=Pi.ChangeIndicator.Deleted;for(let m=s;m>0;m--){let v=f[m];if(!O6(v))break;let E=f[m-1],b=e[m];delete E[b]}}else{for(let m=f.length;m<s;m++){let v={};a[e[m]]=v,a=v}a[l]=d,n.manifestChangeIndicator=p===void 0?Pi.ChangeIndicator.Created:Pi.ChangeIndicator.Updated}}o(R6,"applyManifestChange");function L6(e,t,n,i,r){let a=e==null?void 0:e[n],s=i[Pi.SchemaTag.artifactType];if(s===Pi.ArtifactType.FlexChange)I6(i,a,n,t.flexList);else if(s===Pi.ArtifactType.Manifest&&i[Pi.SchemaTag.manifestPath]){let l,f=i[Pi.SchemaTag.manifestPath];Array.isArray(f)?l=f.concat([n]):(l=f.path,f.addTargetPropertyToPath&&(l=l.concat([n]))),R6(l,a,t,i,r)}else{let l=Ea(i),f=l?r.globalTypeDefinitions[l]:void 0;Da(f)&&aV(a,t,f,r)}}o(L6,"transferConfigPropertyToExportResults");function aV(e,t,n,i){let r=n.properties||{};for(let a in r){let s=n.properties[a];Da(s)&&L6(e,t,a,s,i)}}o(aV,"transferConfigToExportResults");function sV(e){let t=e.config,n=e.jsonSchema.definitions,i=(e.fragments||[]).map(function(s){return{...s,changeIndicator:Pi.ChangeIndicator.NoChange}}),r={globalTypeDefinitions:n,conversionExitProvider:e.conversionExitProvider,fragments:i},a={manifest:structuredClone(e.manifest),manifestChangeIndicator:Pi.ChangeIndicator.NoChange,flexList:[],fragments:i};return aV(t,a,e.jsonSchema,r),a}o(sV,"exportPage");var N6=!1,F6={generateListReportSchemaV2(e,t){return G1(e,t)},createListReportConfig(e){return w1(e)},exportListReportPage(e,t,n){return X1(e,t,n)}},gP;function D6(){let e;if(__dirname.endsWith("dist"))e=__dirname;else{let i=__dirname.lastIndexOf("specification");e=(0,mP.join)(__dirname.substring(0,i+13),"dist")}let t=(0,mP.join)(e,"schemas","v2","ListReportNewConfig.json");return JSON.parse((0,lV.readFileSync)(t,"utf8"))}o(D6,"getPersistentListReportNewSchema");function _6(){let e=D6();return function(t){return t===Cp?{genericSchema:e,syncRuleProvider:zr}:void 0}}o(_6,"createGenericSchemaInfoProvider");function V6(e){return e===Cp?{propertyInstanceProvider:o(function(t){return new zr},"propertyInstanceProvider")}:void 0}o(V6,"getConfigInfo");function cV(e){let{value:t}=Eo(e,[qo.ManifestSection.generic],"pages");return Array.isArray(t)?[qo.ManifestSection.generic,"pages",0]:t&&typeof t=="object"?[qo.ManifestSection.generic,"pages",Object.keys(t)[0]]:void 0}o(cV,"getPathForRootPage");function w6(e,t,n){let i=!e.layer||e.layer===qo.FlexChangeLayer.Customer,r={controlId:n.controlId,controlType:n.controlType,content:{property:n.propertyName},sapui5Version:e.ui5Version,isCustomer:i};return n.isBinding?(r.content.newBinding=n.newValue,r.type="propertyBindingChange"):r.content.newValue=n.newValue,Nm(r,t)}o(w6,"flexInfoToChangeString");function M6(){let e=_6(),t=o(function(n,i,r){let a=structuredClone(i.manifest);return a[qo.ManifestSection.app].id=n,i.flexList.map(w6.bind(null,r,a))},"getFlexChangesAsStrings");return{generateListReportSchemaV2(n){var s;let i=n.manifest,r=cV(i);if(!r)return null;let a={appId:((s=i[qo.ManifestSection.app])==null?void 0:s.id)||"",manifest:i,pagePath:r,annotations:[],parsedAnnotations:n.serviceAVT,fragments:n.fragments};return eV(a,e,n.logger)},createListReportConfig(n){let i=cV(n.manifest);return rV(n,i,V6)},exportListReportPage(n,i,r){let a=n.fragments?n.fragments.map(function(p){return{...p,changeIndicator:qo.ChangeIndicator.NoChange}}):[],s={appId:n.appId,config:n.page.config,manifest:n.manifest,jsonSchema:n.jsonSchema,fragments:a,logger:n.logger},l=sV(s),f=t(n.appId,l,i);return{manifest:l.manifest,fragments:l.fragments,flexChanges:f,manifestChangeIndicator:l.manifestChangeIndicator}}}}o(M6,"createPageHandlerLRGeneric");function hP(){return N6?(gP=gP||M6(),gP):F6}o(hP,"getPageHandlerLR");function Dp(e,t){return hP().generateListReportSchemaV2(e,t)}o(Dp,"generateListReportSchemaV2");function Ty(e){return hP().createListReportConfig(e)}o(Ty,"createListReportConfig");function aP(e,t,n=!1){return hP().exportListReportPage(e,t,n)}o(aP,"exportListReportPage");function by(e,t){var n,i;return(n=e.component)!=null&&n.name?Sm(Ta((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(by,"generateId");function k6(e,t,n,i){e.navigation={};let r=fV(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=by(t.pages[a],a);e.entitySet?e.navigation[s]=r[s].navigationProperty?`${e.entitySet}.${r[s].navigationProperty}`:e.entitySet:e.navigation[s]=r[s].navigationProperty?r[s].navigationProperty:s}}o(k6,"getPageConfigsAndNavigations");function fV(e,t){var i;let n={};for(let r in e){let a=e[r],s=by(a,r);if(!s)continue;let l={pageType:Ta((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let f=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(f)if(l.pageType===jn.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[f],fragments:t.fragments,logger:t.logger};l.config=Ty(p)}else if(l.pageType===jn.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[f],fragments:t.fragments,logger:t.logger};l.config=uy(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[f],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=ly(p)}a.pages&&k6(l,a,t,n)}return n}o(fV,"getPagesAndConfigs");var yP=class yP extends hs{constructor(t){Xt();let n;t.manifest[jn.ManifestSection.generic]?n=t.manifest[jn.ManifestSection.generic].pages:oe(t.logger,{severity:jn.LogSeverity.Error,message:Q.t("NOFE"),location:{path:jn.MANIFESTPATH,range:[jn.ManifestSection.generic]}}),n||oe(t.logger,{severity:jn.LogSeverity.Error,message:Q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:jn.MANIFESTPATH,range:[jn.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&by(n[i],i),a=new ys,s=Dt(jn.SchemaType.Application),l=t.appSchemas[s.filename];kn(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,fV(n,t),a)}};o(yP,"V2AppProvider");var vy=yP;function _p(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||oe(n,{severity:jn.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:jn.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let f=by(l,s);i[f]=l}if(t===jn.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let f=_p(l.pages,t,n);for(let p in f)i[p]=f[p]}}return i}o(_p,"getPages");var el=Z(re());var TP=class TP extends hs{constructor(t){let n={},i=t.manifest[el.ManifestSection.ovp],r=new ys,a=Dt(el.SchemaType.Application);kn(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(d=>d.includes(el.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},f={pageType:el.PageTypeV2.OverviewPage,config:fy(l),entitySet:i.globalFilterEntitySet},p=Sm(f.pageType,f.entitySet);n[p]=f,super(t,p,n,r)}};o(TP,"V2OvpProvider");var Ey=TP;var _=Z(re()),tl=require("@sap-ux/vocabularies-types/vocabularies/UI");var j6=["header","filterBar","chart","table"],vP="@UI.LineItem";function bP(e,t,n,i,r){i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=Tr(e.fullyQualifiedName,tl.UIAnnotationTerms.SelectionFields,r));let a=0;return n==null||n.forEach(s=>{var d,m;let l=s.value,f="SelectionField::"+at(s.value);s.type==="PropertyPath"&&(l=jl(s,e)),i.properties[f]={$ref:U+f},i.properties[f][_.SchemaTag.propertyIndex]=a;let p=er(s);t.definitions[f]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[f][_.SchemaTag.isViewNode]=!0,t.definitions[f][_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:`${s.value}`}],((d=s.$target)==null?void 0:d.fullyQualifiedName.indexOf("@"))>-1?t.definitions[f][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[f][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[f][_.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[f][_.SchemaTag.annotationPath]=`${i[_.SchemaTag.annotationPath]}/${a}`,a++}),i}o(bP,"addSelectionFields");function U6(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${tl.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let a={};return Object.keys(t).forEach(s=>{t[s].template||(a[s]=t[s])}),Object.keys(a).length>0?a:void 0}}o(U6,"getVisualFilters");function $6(e,t){let n=[];return e==null||e.forEach(i=>n.push(i.value)),t&&t.entityProperties.forEach(i=>n.includes(i.name)?void 0:n.push(i.name)),n}o($6,"getPropertiesIndex");function B6(e,t,n,i){var s,l,f,p,d,m;let r=$6(i,e),a=t.definitions[_.DefinitionName.VisualFilters];a.properties={};for(let v in n){let E=n[v];if(!E.template){let b=a.properties[v]={$ref:si(_.DefinitionName.VisualFilter,v)},I=r.indexOf(v);I!==-1&&(b[_.SchemaTag.propertyIndex]=I);let N=vt(_.DefinitionName.VisualFilter,v,t);(s=E.visualFilter)!=null&&s.valueList&&(N[_.SchemaTag.annotationPath]=`${v}/@${E.visualFilter.valueList}`);let j=(m=(d=(p=(f=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(G=>G.name===v))==null?void 0:f.annotations)==null?void 0:p.Common)==null?void 0:d.Label)==null?void 0:m.toString();N.description=j||v,N[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:v}]}}}o(B6,"addVisualFilters");function H6(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},u_(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&us(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}o(H6,"applyCustomFilterFields");function G6(e,t,n,i){var l,f;let r=U6(n),a=i&&((f=(l=e==null?void 0:e.annotations)==null?void 0:l[i])==null?void 0:f.SelectionFields),s;if(r)t.definitions[_.DefinitionName.SelectionFields][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.SelectionFields].properties={},s=t.definitions[_.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},B6(e,t,r,a);else{let p=t.definitions[_.DefinitionName.FilterBar];p.properties.initialLayout[_.SchemaTag.hidden]=!0,p.properties.layout[_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.CompactFilters][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.VisualFilters][_.SchemaTag.hidden]=!0}s=bP(e,t,a,s),H6(t,s,n)}o(G6,"addFilterBar");function uV(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let a=e.definitions[t];a.properties={},a.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${_.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(f=>{let p=at(`${_.DefinitionName.ChartToolBarAction}<${f.Action}>`),d=ci(f,r),m=f.$Type.split(`${_.UIVOCABULARY}.`)[1],v=a.properties[`${m}::${f.Action}`]={$ref:U+p,description:d};v[_.SchemaTag.propertyIndex]=l,v[_.SchemaTag.annotationType]=f.$Type,v[_.SchemaTag.annotationPath]=`/${f.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[_.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][_.SchemaTag.annotationPath]=f.fullyQualifiedName,l++})}}o(uV,"defineActions");function pV(e,t,n,i){var l;let r,a,s;return e&&(n==="primary"?a=e.find(f=>f.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(f=>f.value.indexOf(_.FacetBase.LineItem)>-1):i?a=e.find(f=>f.value.indexOf(i)>-1):a=e[0],r=typeof(a==null?void 0:a.value)=="string"?$l(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",_.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(pV,"findTheRightVisualization");function W6(e,t,n,i){let r="@UI.Chart",a=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:r,targetAnnotation:a,chartTitle:s}}o(W6,"analyzeChartAnnotation");function K6(e,t,n,i,r,a){var f;let{visualization:s,targetAnnotation:l}=pV((f=e.PresentationVariant)==null?void 0:f.Visualizations,t,n,i);return s||(oe(r,{severity:_.LogSeverity.Error,message:Q.t("NOVISUALIZATIONS")}),s=vP,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(K6,"analyzeSPVforView");function vf(e,t,n,i,r,a){let s,l,f=e==null?void 0:e.split(`${_.UIVOCABULARY}.`)[1],p=f&&t[f];if(!p)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=p.Text,s=p.fullyQualifiedName.split(_.UIVOCABULARYALPHADOT)[0],f.startsWith("PresentationVariant")){let{visualization:d,targetAnnotation:m}=pV(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:d,targetAnnotation:m,namespace:s,title:l}}else{if(f.startsWith("SelectionPresentationVariant"))return K6(p,s,i,r,a,l);if(f.startsWith("SelectionVariant")){let d=vP,m=`/${s}/@${tl.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:d,targetAnnotation:m,namespace:s,title:l}}else if(f.startsWith("LineItem")){let d=vP;p.qualifier&&(d+=`#${p.qualifier}`);let m=e.substring(0,1)==="@"?`/${s}/${e}`:`/${s}/@${e}`;return l=l||`Table View (${i})`,{visualization:d,targetAnnotation:m,namespace:s,title:l}}else if(f.startsWith("Chart")){let{visualization:d,targetAnnotation:m,chartTitle:v}=W6(s,e,p,i);return{visualization:d,targetAnnotation:m,namespace:s,title:v}}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}o(vf,"analyzeViewAnnotation");function X6(e,t,n,i){let r=e.definitions[_.DefinitionName.ALPChartView];if(e.definitions[_.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.isViewNode],n&&(e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.annotationPath]=n),e.definitions[_.DefinitionName.ALPChart].properties.annotationPath[_.SchemaTag.hidden]=!0,r.properties.annotationPath[_.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${U}${_.DefinitionName.ALPChart}`,t){let a=t.split(_.UIVOCABULARYDOT)[1];if(i[a]){let s=i[a].fullyQualifiedName.split("@");r[_.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}else Ca(r,Q.t("UNEXISTING_ANNOTATION_PATH"))}r[_.SchemaTag.artifactType]=_.ArtifactType.Manifest,r[_.SchemaTag.key]="primary",r[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"primary"}]}o(X6,"addALPChartView");function Q6(e,t,n,i,r,a){var j,G,$,se,ee,le,Le,D;let s=(j=n.entityType)==null?void 0:j.annotations.UI,l=(se=($=(G=t==null?void 0:t[0])==null?void 0:G.primary)==null?void 0:$[0])==null?void 0:se[_.SchemaTag.annotationPath],{targetAnnotation:f}=vf(l,s,n.serviceAVT,"primary",void 0,n.logger);X6(e,l,f,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=U+p,uV(e,p,s,f,n.entityType);let{visualization:d,targetAnnotation:m}=vf((Le=(le=(ee=t==null?void 0:t[0])==null?void 0:ee.secondary)==null?void 0:le[0])==null?void 0:Le[_.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),v=e.definitions[a];d||i?(v.properties.toolBar.$ref=`${U}${_.DefinitionName.ToolBarLR}`,v.properties.columns={$ref:U+_.DefinitionName.LineItems},v.properties.annotationPath[_.SchemaTag.hidden]=!0):v.properties={};let E=e.definitions[_.DefinitionName.ALPTableView];e.definitions[_.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(E)),delete e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.isViewNode],E.additionalProperties=!1,E.description="Table (key: secondary)",E.title="Table",d?(delete E.properties,E.$ref=`${U}${_.DefinitionName.ALPTable}`):i||(E.properties={}),E[_.SchemaTag.artifactType]=_.ArtifactType.Manifest;let b,I;if(d&&d.indexOf(_.FacetBase.LineItem)>-1?(b=d.split(".")[1],I=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(b=I=i.split(_.UIVOCABULARYDOT)[1]),b){let Ue={isObjectPage:!1,appSchema:e,lineItemAnnotation:(D=n.entityType)==null?void 0:D.annotations.UI[b],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:_.DefinitionName.LineItems};xc(Ue,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let $e=s[I].fullyQualifiedName.split("@");E[_.SchemaTag.annotationPath]=`/${$e[0]}/@${$e[1]}`,E[_.SchemaTag.key]="secondary",E[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}Pc(e,r,n.logger);let N=`${_.DefinitionName.Actions}<${at(_.DefinitionName.LineItems)}>`;Pa(e,r,n.logger,void 0,N),go(e,N,_.DefinitionName.CustomActionPosition)}o(Q6,"addALPViews");function q6(e,t){let n=`${_.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][_.SchemaTag.isViewNode],e.appSchema.definitions[n][_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${_.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${U}${i}`;let r=`${_.DefinitionName.Actions}<${e.viewKey}>`;return uV(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${U}${r}`,n}o(q6,"addViewChartDefinitions");function Y6(e,t,n,i,r,a){let s=q6(e,t);n.definitions[s].properties.annotationPath[_.SchemaTag.hidden]=!0,n.definitions[s].properties.index[_.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[_.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${U}${s}`,description:a||l,title:l}}o(Y6,"addViewChart");function z6(e,t,n,i,r){var m;let a=`${_.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=vt(_.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[_.SchemaTag.isViewNode],l[_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),gs(l.properties.toolBar,_.DefinitionName.ToolBar,s);let f=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${U}${a}`,description:e.title||f,title:f},gs(l.properties.columns,s),l.properties.annotationPath[_.SchemaTag.hidden]=!0,l.properties.index[_.SchemaTag.hidden]=!0,l.properties.entitySet[_.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(_.UIVOCABULARYDOT)[1],d={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s};xc(d,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}o(z6,"addViewLineItems");function J6(e,t,n,i){e.properties[t][_.SchemaTag.isViewNode]=!0,e.properties[t][_.SchemaTag.annotationPath]=n?`/${n}/@${i[_.SchemaTag.annotationPath]}`:void 0,e.properties[t][_.SchemaTag.artifactType]=_.ArtifactType.Manifest,e.properties[t][_.SchemaTag.key]=t,e.properties[t][_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:t}]}o(J6,"addTagsToView");function Z6(e,t,n){var a;let i=n.entityType,r=e;return t.entitySet&&t.entitySet!==e.name&&(r=(a=n.serviceAVT)==null?void 0:a.entitySets.find(s=>s.name===t.entitySet),i=r.entityType),i}o(Z6,"getTargetEntityType");function eq(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${tl.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=vt(_.DefinitionName.ViewCustomColumn,r,e.appSchema);gs(l.properties.position,_.DefinitionName.ViewPosition,r),vt(_.DefinitionName.ViewPosition,r,e.appSchema),Pc(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Cc(e.appSchema,r,i,`${_.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&delete e.appSchema.definitions.Position;let f=`${_.DefinitionName.Actions}<${r}>`,p=`${_.DefinitionName.ViewCustomAction}<${r}>`;Pa(e.appSchema,i,t.logger,p,f,s),vt(_.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let d=`${_.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${U}${d}`,go(e.appSchema,f,d)}o(eq,"addViewCustomExtensions");function tq(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)z6(n,t,e,n.targetAnnotation,i),eq(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)Y6(n,a,n.appSchema,t,n.viewKey,n.title);else if(s.template){let l=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${U}${_.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${U}${_.DefinitionName.LRTableView}`}}}o(tq,"addLRViewParts");function nq(e,t,n,i,r){var l;let a=e.definitions[r];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let f of t){if(!f[_.SchemaTag.key])continue;let p,d=Z6(n.entitySet,f,n),m=d==null?void 0:d.annotations.UI,{visualization:v,targetAnnotation:E,namespace:b,title:I}=vf(f==null?void 0:f[_.SchemaTag.annotationPath],m,n.serviceAVT,f[_.SchemaTag.key],void 0,n.logger);f.entitySet&&(p=(l=n.entityType.navigationProperties.find(G=>G.targetTypeName===b))==null?void 0:l.name);let N=at(f[_.SchemaTag.key]),j={viewKey:N,appSchema:e,targetAnnotation:E,navPropName:p,targetEntityType:d,title:I,entitySet:f.entitySet};tq(v,s,j,n,i,m,f),J6(s,N,b,f)}}o(nq,"addLRViews");function iq(e,t,n,i,r,a){var d,m,v,E,b,I,N,j,G,$,se,ee,le;let s=e.definitions[a],{visualization:l,targetAnnotation:f,namespace:p}=vf(n,(d=t.entityType)==null?void 0:d.annotations.UI,t.serviceAVT,void 0,_.Visualization.LineItem,t.logger);if(l){let Le=l.split(".")[1],D=`${_.DefinitionName.LineItems}OfSPV::${at(Le)}`,Ue=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete Ue[_.SchemaTag.isViewNode],gs(Ue.properties.toolBar,_.DefinitionName.ToolBar,D),Ue[_.SchemaTag.annotationPath]=f,Ue.properties.columns={},gs(Ue.properties.columns,D),delete s.properties,gs(s,`${a}SPV`),s[_.SchemaTag.annotationPath]=`/${p}/@${n}`;let $e=(m=t.entityType)==null?void 0:m.annotations.UI[Le];$e||oe(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOTARGET",{target:Le})});let qe={isObjectPage:!1,appSchema:e,lineItemAnnotation:$e,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D};xc(qe);let nn=(v=Le.split("#"))==null?void 0:v[1],$t=nn?`@${tl.UIAnnotationTerms.LineItem}#${nn}`:`@${tl.UIAnnotationTerms.LineItem}`;Pc(e,i,t.logger,void 0,D,$t),Cc(e,D,i,void 0,$t);let St=`${_.DefinitionName.Actions}<${D}>`,qt=Jm(e,D,_.DefinitionName.CustomTableAction);Pa(e,i,t.logger,zt(qt),St,$t),go(e,St,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${U}${_.DefinitionName.ToolBarLR}`,gs(s.properties.columns,_.DefinitionName.LineItems);let Le=(I=(b=(E=t.entityType)==null?void 0:E.annotations)==null?void 0:b[r])==null?void 0:I.LineItem;!Le&&!((G=(j=(N=i.options)==null?void 0:N.settings)==null?void 0:j.views)!=null&&G.paths)&&oe(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOLINEITEMS")});let D={isObjectPage:!1,appSchema:e,lineItemAnnotation:Le,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_.DefinitionName.LineItems};xc(D),Pc(e,i,t.logger),Cc(e,_.DefinitionName.LineItems,i),Le&&!((ee=(se=($=i.options)==null?void 0:$.settings)==null?void 0:se.views)!=null&&ee.paths)&&(s[_.SchemaTag.annotationPath]=Tr((le=t.entityType)==null?void 0:le.fullyQualifiedName,Le.term,Le.qualifier));let Ue=`${_.DefinitionName.Actions}<${at(_.DefinitionName.LineItems)}>`;Pa(e,i,t.logger,void 0,Ue),go(e,Ue,_.DefinitionName.CustomActionPosition)}}o(iq,"adaptTableDefinition");function rq(e,t,n){var i,r,a,s,l,f,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===_.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===_.TemplateType.ListReportObjectPageV4)return((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((p=(f=t==null?void 0:t.annotations.UI)==null?void 0:f.PresentationVariant)==null?void 0:p.term)}}o(rq,"getDefaultAnnotationPath");function oq(e,t,n,i){var f,p,d,m,v;let r=(d=(p=(f=t.options)==null?void 0:f.settings)==null?void 0:p.views)==null?void 0:d.paths,a=n.entityType,s=rq(t,n.entityType,n.templateType),l=l_(e,n);G6(a,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(iq(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],nq(e,r,n,t,l)):(v=(m=t.options)==null?void 0:m.settings)!=null&&v.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[_.PropertyName.chart][_.SchemaTag.hidden]=!0):n.templateType===_.TemplateType.AnalyticalListPageV4&&(Q6(e,r,n,s,t,l),Cc(e,_.DefinitionName.LineItems,t))}o(oq,"addTableAndViews");function aq(e,t,n){let i=_.DefinitionName.HeaderActions,r=e.definitions[i];r[_.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=_.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[_.SchemaTag.isViewNode]=!0,s.description="Custom Action",Vm(e,t,n,a,i);let l=_.DefinitionName.CustomHeaderActionPosition;vt(l,l,e,!1),s.properties.position.$ref=`${U}${l}`,go(e,i,l)}o(aq,"addHeaderActions");function Vp(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&oi(_.UIVOCABULARY,e.serviceAVT);if(r.properties[_.PropertyName.defaultTemplateAnnotationPath][_.SchemaTag.hidden]=!0,ds(a,r,_.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[_.ManifestSection.ui5].routing.targets;if(!l)return oe(e.logger,{severity:_.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let f=_m(l,n,e.entitySet,i);if(!f)return r;aq(r,f,e.logger),oq(r,f,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,$o(r,j6),r}o(Vp,"generateListReportSchemaV4");var $i=require("@sap-ux/vocabularies-types/vocabularies/UI"),R=Z(re());var rk=Z(vc()),ok=Z(ik()),ak=Z(ix());var sk=Z(re()),ck=Z(re());function F9(e,t){var i;let n=e;for(let r of t){let a=(i=n==null?void 0:n.elements)==null?void 0:i.filter(s=>s.type!=="comment");n=a==null?void 0:a[r.index]}return n}o(F9,"findElementByXMLPath");function lk(e,t){return e[t]?!1:(e[t]={},!0)}o(lk,"ensureObjectExists");function D9(e,t){let n={},i=zt(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(D9,"getPropertiesFromRef");function _9(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:f}=e,{properties:p={}}=r,d=lk(l,i),m=l[i];return cl({fullSchema:f,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||d}o(_9,"traverseDefaultAggregation");function V9(e,t){var n,i,r;return(t==null?void 0:t.defaultAggregation)&&((r=(i=(n=e[t.defaultAggregation])==null?void 0:n.metadata)==null?void 0:i.path)==null?void 0:r.length)===0}o(V9,"isDefaultAggregationAppliable");function cl(e,t){var d,m;let{schema:n,element:i,contextPath:r,config:a={},fullSchema:s}=e,l=!1,{properties:f={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(f=D9(s,n.$ref));for(let v in f){let E=f[v],b=typeof E=="object";if(b&&(p==null?void 0:p.defaultAggregation)===v&&V9(f,p)&&(l=_9(e,t,p)||l,b=!1),!!b)if((m=(d=E.metadata)==null?void 0:d.path)!=null&&m.length){let I=E.metadata.path,N=I.slice(r.length),j=F9(i,N);l=lk(a,v)||l;let G=a[v];l=cl({fullSchema:e.fullSchema,schema:E,element:j,contextPath:I,config:G,parent:e},t)||l}else l=t(e,E,a,v)||l}return l}o(cl,"traverseSchema");function wf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,ak.parse)(e.fileContent),s=(0,ok.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,rk.xml2js)(e.fileContent)}catch(r){oe(n,{severity:ck.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:xm(r)}),location:{path:e.dataSourceUri}})}return i}o(wf,"parseXML");function Mf(e){return`${sk.DefinitionName.CustomExtensionFragment}<${e}>`}o(Mf,"getCustomExtensionFragmentDefinitionKey");function dT(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(dT,"getRootElement");var gx=Z(re()),mx=Z(re());var cd=Z(re());var fk=["Column","Action","FilterField"];function Gs(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(Gs,"getAttribute");function uk(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(uk,"getNodeByName");function lx(e){let t=["id","key","title","text","label","header"],n=e.attributes||[];for(let i of t){let r=n.find(a=>a.key===i);if(r)return r}}o(lx,"getDisplayAttribute");function w9(e){let t=lx(e);if(t)return t.key==="id"?`(#${t.value})`:`(${t.value})`}o(w9,"extractDisplayInfo");function pk(e,t,n){if(!fk.includes(t)){let i=w9(e);n.macroDisplayInfo={name:t,value:i}}}o(pk,"addDisplayInfoForBuildingBlock");function dk(e,t){let n={Table:"Table",FilterBar:"Filter",Chart:"Chart",Page:"Page"},i;if(fk.includes(t)){let a=lx(e);i=a?a.value:t}else{let a=lx(e);if(a){let s=a.key==="id"?"#":"";i=`${t} ${s}${a.value}`}else i=t}let r=n[t];return r?{description:i,icon:r}:{description:i}}o(dk,"getViewNodeDescriptionAndIcon");function M9(e){let t=e.split("/"),n=[],i;for(let r of t)if(r){if(r.startsWith("@")){i=r;break}n.push(r)}return n.length?{path:n.join("/"),term:i}:{term:e}}o(M9,"resolveMetaPath");function fx(e){var b;let{node:t,serviceAVT:n,connectionContext:i}=e,r=Gs(t,"contextPath")||i.contextPath,a=Gs(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let f=r||`/${s}`;if(a){let I=M9(a);I.path&&(f=l?I.path:`${f}/${I.path}`,a=I.term)}let p=n==null?void 0:n.resolvePath(f),d;switch((b=p==null?void 0:p.target)==null?void 0:b._type){case"EntitySet":{d=p.target.entityType;break}case"NavigationProperty":{d=p.target.targetType;break}case"EntityType":{d=p.target;break}}let m,v=a.split("#");v.length&&(m=v[1]);let E;if(a){let I=a.split(".");I.length&&(E=I[I.length-1])}return d?{entityType:d,metaPath:a,qualifier:m,annotationKey:E}:void 0}o(fx,"getEntityTypeResolution");function gk(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(gk,"applyAnnotationPath");function k9(e,t,n){var l,f,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let d=vf(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(d.visualization){let m=d.visualization.split(".")[1];a=(p=(f=r==null?void 0:r.annotations)==null?void 0:f[n])==null?void 0:p[m],a!=null&&a.fullyQualifiedName&&(s=oE(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(k9,"getTableLineItemAnnotationData");var mk={"sap.fe.macros.Chart":o(e=>{let t=fx(e);gk(e.schema,t)},"sap.fe.macros.Chart"),"sap.fe.macros.FilterBar":o(e=>{var s,l,f,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=fx(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let d=oi(cd.UIVOCABULARY,n),m=d&&((p=(f=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:f[d])==null?void 0:p[r.annotationKey]);bP(r.entityType,i,m,a,r.qualifier)}},"sap.fe.macros.FilterBar"),"sap.fe.macros.Table":o(e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=fx(e),a=t.properties.columns,s=t.properties.actions;if(typeof a=="object"&&typeof s=="object"&&r){a.properties||(a.properties={}),s.properties||(s.properties={});let l=oi(cd.UIVOCABULARY,n);if(gk(t,r),t.annotationPath){let f=k9(r,n,l);f!=null&&f.annotationPath&&(t.annotationPath=f.annotationPath);let p={isObjectPage:!1,appSchema:i,lineItemAnnotation:f.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:cd.DefinitionName.LineItems,isMacro:!0};EE(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var hk=Z(re());var j9=new Map([["filterFields","SelectionField::"]]),U9=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),ld={anchor:"anchor",placement:"placement",key:"key"};function $9(e,t){var n;if(typeof(e==null?void 0:e.additionalProperties)=="object"&&(e!=null&&e.additionalProperties.$ref)){let i=(n=t.definitions)==null?void 0:n[zt(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return ld.anchor in r&&ld.placement in r}return!1}o($9,"isCustomExtensionSchema");function yk(e){let t=j9.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=U9.get(e),t&&(n.prefix=t)),n}o(yk,"getAnnotationPrefix");function B9(e,t,n,i){let r=t.properties[n],a=yk(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],f=Gs(l,ld.key)||n,p=Gs(l,ld.anchor),d=Gs(l,ld.placement)||hk.v4.Placement.After,m=a.replace?`${a.prefix}${p}`:p,v={position:{anchor:m in t.properties?m:p,placement:d}};return{key:f,extension:v}}o(B9,"getExtensionData");function H9(e,t,n){let i={},r=[],a={};for(let s in t.properties){let l=t.properties[s];if("metadata"in l){let{extension:f,key:p}=B9(e,t,s,n);i[p]=f,a[p]=s}else r.push([s,l])}Sa(i,r,"","position");for(let s=0;s<r.length;s++){let l=r[s][0],f=t.properties[l];r[s][1].$ref==="#/definitions/"&&l in a&&(f=t.properties[a[l]]),f&&(f.propertyIndex=s)}}o(H9,"updatePropertyIndices");function G9(e,t,n,i){var a;let r=t;if(n.prefix&&r.startsWith(n.prefix))n.replace&&(r=r.replace(n.prefix,""));else if((a=i==null?void 0:i.metadata)!=null&&a.path){let s=i.metadata.path[i.metadata.path.length-1].index;r=Gs(e.subElements[s],"key")||r}return r}o(G9,"getCorrectedAnchorEnumKey");function W9(e,t,n,i){var a,s;let r=yk(i);for(let l in t.properties){let f="anchor",p=t.properties[l];if(!p.metadata)continue;us(n,t,{property:f,schema:p},{excludeKey:l,resolveDefinition:!0});let d=((s=(a=p.properties)==null?void 0:a[f])==null?void 0:s.oneOf)||[];for(let m of d)typeof m=="object"&&typeof m.const=="string"&&(m.const=G9(e,m.const,r,t.properties[m.const]))}}o(W9,"applyEnumsForAnchors");function Tk(e,t,n,i){$9(t,n)&&(i=i||e.name,H9(e,t,i),W9(e,t,n,i))}o(Tk,"handleExtensions");var di=[];for(let e=0;e<256;++e)di.push((e+256).toString(16).slice(1));function vk(e,t=0){return(di[e[t+0]]+di[e[t+1]]+di[e[t+2]]+di[e[t+3]]+"-"+di[e[t+4]]+di[e[t+5]]+"-"+di[e[t+6]]+di[e[t+7]]+"-"+di[e[t+8]]+di[e[t+9]]+"-"+di[e[t+10]]+di[e[t+11]]+di[e[t+12]]+di[e[t+13]]+di[e[t+14]]+di[e[t+15]]).toLowerCase()}o(vk,"unsafeStringify");var bk=require("crypto");var mT=new Uint8Array(256),gT=mT.length;function ux(){return gT>mT.length-16&&((0,bk.randomFillSync)(mT),gT=0),mT.slice(gT,gT+=16)}o(ux,"rng");var Ek=require("crypto"),px={randomUUID:Ek.randomUUID};function K9(e,t,n){var r;if(px.randomUUID&&!t&&!e)return px.randomUUID();e=e||{};let i=e.random??((r=e.rng)==null?void 0:r.call(e))??ux();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[n+a]=i[a];return t}return vk(i)}o(K9,"v4");var dx=K9;var Sk="sap.fe.macros";function Ak(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(Ak,"getElementName");function X9(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(X9,"isElementWithNamespace");function Q9(e){let t={},n=e.attributes||[];for(let i of n){let{key:r,value:a}=i,s="",l="xmlns:";r.startsWith(l)&&(s=r.substring(l.length)),t[a]=s}return t}o(Q9,"getDependencies");function q9(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(q9,"findAvailableName");function Pk(e,t){if(e.properties={},e.$ref){let n=zt(e.$ref),i=t.definitions[n];typeof i=="object"&&i.properties&&(e.type=i.type,e.isViewNode=i.isViewNode,e.properties=JSON.parse(JSON.stringify(i.properties))),delete e.$ref}}o(Pk,"prepareSchemaProperties");function Y9(e,t,n){t.properties||Pk(t,n);let{properties:i={}}=t;for(let r of e.attributes){let a=i[r.key];a&&a.metadata&&(a.metadata.position=r.position)}}o(Y9,"handleAttributes");function z9(e){e.type===mx.MacrosPropertyType.Control&&(e.internalId=dx())}o(z9,"applyIdForMacros");function J9(e,t,n){var i,r;try{(r=(i=mk)[e])==null||r.call(i,t)}catch{oe(n,{severity:gx.LogSeverity.Error,message:Q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(J9,"callAnnotationHandler");function Z9(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===mx.MacrosPropertyType.Control&&(e.controlName=n)}o(Z9,"updateMetadataByReference");function ez(e,t,n){let i=n.schema.metadata.namespaces?[...n.schema.metadata.namespaces]:[],r=n.dependencies,a=[Sk];if(e.ns){for(let s in r)if(e.ns===r[s]){a.push(s);break}}for(let s=n.path.length-1;s>=0;s--){let l=n.path[s].name;if(l.includes(":")&&(l=l.split(":")[1]),/^[A-Z]/.test(l)){let f=`${Sk}.${l.toLowerCase()}`;if(i.includes(f)){a.push(f);break}}}return[...new Set([...a,...i])].map(s=>`${s}.${t}`)}o(ez,"getPosibleRefNames");function tz(e,t,n,i){var v,E,b,I,N;let r=n.schema;t.properties||Pk(t,r);let a=t.properties[i],s=(v=a==null?void 0:a.metadata)==null?void 0:v.type,l=(E=a==null?void 0:a.metadata)==null?void 0:E.defaultAggregation,f={path:n.path,type:s,position:e.position};pk(e,i,f),l&&(f.defaultAggregation=l);let p=(I=(b=a==null?void 0:a.metadata)==null?void 0:b.path)!=null&&I.length?q9(i,t.properties):i,d=[];a!=null&&a.$ref?d.push(zt(a.$ref)):d=ez(e,i,n);let m=!1;for(let j of d){let G=(N=r.definitions)==null?void 0:N[j];if(typeof G!="object")continue;Z9(f,G,j);let{description:$,icon:se}=dk(e,i),ee={$ref:Pm(j),description:$,...se?{icon:se}:{},propertyIndex:n.index,metadata:f};Y9(e,ee,r),t.properties[p]=ee,m=!0,J9(j,{...n,node:e,schema:ee,rootSchema:n.schema},n.logger);break}if(z9(f),!m)if(a!=null&&a.properties)a.metadata=f;else{let j={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:f};t.properties[p]=j}return p}o(tz,"addControlToSchema");function xk(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let a=r.$ref.split(U)[1];a&&t.indexOf(a)===-1&&t.push(a)}xk(r,t)}}o(xk,"populateUsedDefinitionKeys");function nz(e,t){if(typeof t=="object"&&typeof t.additionalProperties=="object"&&t.additionalProperties.$ref){let n=t.additionalProperties.$ref,i=zt(n),r=i.split(".");if(i==="sap.ui.core.Control"||r[r.length-1]===e.name)return!0}return!1}o(nz,"isElementAddableToSchema");function iz(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!uk(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(iz,"getDefaultAggregation");function rz(e,t,n,i){let r={};for(let a=0;a<e.length;a++){let s=e[a],l=!r[s.name];r[s.name]=!0,Ck(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:Ak(s),index:a}]},i)}}o(rz,"handleSubElementsOfXMLNode");function Ck(e,t,n,i){var d,m,v;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(d=n.schema.definitions)==null?void 0:d[zt(t.$ref)]:t;if(X9(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let E=(v=t.metadata)==null?void 0:v.defaultAggregation;E&&nz(e,t.properties[E])&&(t=t.properties[E]);let b=e.name.split(":"),I=tz(e,t,n,b[b.length-1]);if(t.properties[I])t=t.properties[I];else return}let{subElements:l=[]}=e,f=t!=null&&t.metadata?t.metadata.controlName:void 0;i&&f&&n.schema.definitions[f]&&i.indexOf(f)===-1&&(i.push(f),xk(t,i));let p=iz(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),rz(l,t,n,i),r.push({node:e,schema:t});for(let E of r)Tk(E.node,E.schema,n.schema,E.name)}o(Ck,"handleXMLNode");function oz(e,t){var i;let n=[];return(i=e==null?void 0:e.metadata)!=null&&i.namespaces&&e.metadata.namespaces.forEach(r=>{r in t&&n.push(t[r])}),n}o(oz,"getMacrosPrefixes");function ll(e,t,n,i){let r=wf(t.file,!0,i),a=[];if(!r)return;Xt();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){oe(i,{severity:gx.LogSeverity.Error,message:Q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,f=Q9(l),p=oz(e,f);if(p.length){s=JSON.parse(JSON.stringify(e));let d={};for(let m=0;m<l.subElements.length;m++){let v=l.subElements[m],E=!d[v.name];d[v.name]=!0,Ck(v,s,{macrosPrefixes:p,schema:s,dependencies:f,index:m,isUnique:E,path:[{name:Ak(v),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},a)}for(let m in s.definitions)s.definitions[m].metadata&&!a.includes(m)&&delete s.definitions[m]}return s}o(ll,"generateMacrosSchemaDefinition");function Ik(e,t){if(typeof e=="object")for(let n in e){let i=e[n];"template"in i&&i.template&&typeof i.template=="string"&&t.push(i.template),"subSections"in i&&Ik(i.subSections,t)}}o(Ik,"populateTemplates");function Ok(e,t,n,i){var s,l,f;let r=Ic(n.manifest,i),a=[];Ik(((f=(l=(s=r==null?void 0:r.options)==null?void 0:s.settings.content)==null?void 0:l.body)==null?void 0:f.sections)||{},a);for(let p of a){if(!p)continue;let d={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=Mf(p);e.definitions[m]=d;let v=Oc(n.fragments,r,n.manifest,"fragment",p);if(v){d.metadata.filePath=v.relativeFilePath;let{properties:E={},definitions:b={}}=ll(t,v,n.serviceAVT,n.logger)||{};d.properties=E;for(let I in b)e.definitions[I]||(e.definitions[I]=b[I])}}return t}o(Ok,"resolveFragments");var az=["header","layout","sections","footer"],sz=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],yx="Custom Action";function Dk(e,t,n,i,r,a,s){let{actionName:l,namespace:f}=Qm(t.item,e),p=Hr(t.item),m=t.item.$Type===$i.UIAnnotationTypes.DataFieldForActionGroup,v=m?R.DefinitionName.ObjectPageHeaderActionGroup:R.DefinitionName.ObjectPageHeaderAction,E=t.item.fullyQualifiedName.replace(`@${$i.UIAnnotationTerms.Identification}`,`/@${$i.UIAnnotationTerms.Identification}`),b=`${v}<${at(p)}>`,I=i.definitions[b]={type:"object",$ref:`${U}${v}`,description:ci(t.item,r)};if(I[R.SchemaTag.isViewNode]=!0,I[R.SchemaTag.dataType]=er(t.item),I[R.SchemaTag.propertyIndex]=s,m){I.properties={},Ca(I,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let N=(t.item.Actions??[]).map((j,G)=>({item:j,index:G}));hx(N,e,i,r,I,R.ActionType.Annotation)}else I[R.SchemaTag.keys]=[],t.item[R.SchemaKeyName.semanticObject]&&I[R.SchemaTag.keys].push({name:R.SchemaKeyName.semanticObject,value:t.item[R.SchemaKeyName.semanticObject]}),I[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:l});f&&(i.definitions[b][R.SchemaTag.target]=f),I[R.SchemaTag.actionType]=n,I[R.SchemaTag.annotationPath]=`/${E}`,a.properties[p]={$ref:`${U}${b}`},a.properties[p][R.SchemaTag.propertyIndex]=s}o(Dk,"addSingleHeaderActionV4");function Rk(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[R.SchemaTag.isViewNode]=!0,s[R.SchemaTag.propertyIndex]=i,s[R.SchemaTag.keys]=[],s[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:e}),s[R.SchemaTag.actionType]=R.ActionType.Standard,n.properties[r]={$ref:`${U}${a}`},n.properties[r][R.SchemaTag.propertyIndex]=i,s}o(Rk,"addStandardHeaderAction");function Lk(e,t,n,i,r,a){let s=Hr(e.item),l=ci(e.item,n),f=at(`${R.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${$i.UIAnnotationTerms.Identification}`,`/@${$i.UIAnnotationTerms.Identification}`),d=i.definitions[f]={type:"object",$ref:`${U}${R.DefinitionName.FooterActionV4}`,description:l};d[R.SchemaTag.isViewNode]=!0,d[R.SchemaTag.actionType]=t,d[R.SchemaTag.propertyIndex]=a,d[R.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${U}${f}`}}o(Lk,"addSingleFooterAction");function cz(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===$i.UIAnnotationTypes.DataFieldForAction||i.$Type===$i.UIAnnotationTypes.DataFieldForActionGroup||i.$Type===$i.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(sz.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(cz,"groupByCriticality");function lz(e,t,n,i,r,a){let s=e.findIndex(l=>{var f,p;return((p=(f=l.item.annotations)==null?void 0:f.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(Dk(t,e[s],R.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(lz,"addCopyAction");function hx(e,t,n,i,r,a,s=0){let l=s;for(let f of e)Dk(t,f,a,n,i,r,l),l++}o(hx,"addGroupedHeaderActions");function fz(e){let t="RelatedApps",n=e.properties[t]={$ref:`${U}${t}`,description:"Related Apps"};n[R.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[R.SchemaTag.artifactType]=R.ArtifactType.Manifest,n[R.SchemaTag.actionType]=R.ActionType.Standard,n[R.SchemaTag.isViewNode]=!0,n[R.SchemaTag.keys]=[{name:R.SchemaKeyName.action,value:t}]}o(fz,"addRelatedAppsButton");function Nk(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[R.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`:e[R.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`}o(Nk,"setAnnotationPathFromEntitySetOrEntityType");function uz(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?cz(n):{};if(hx(s,r.serviceAVT,t,e,i,R.ActionType.Criticality),r.entitySet){let p=S_(r.entitySet),d=A_(r.entitySet);if(Wm(r.entitySet)&&d){let m=Rk("Edit",t,i,s.length);Nk(m,r.entitySet,e,"UpdateHidden")}if(p){let m=Rk("Delete",t,i,s.length+1);Nk(m,r.entitySet,e,"DeleteHidden")}}let f=s.length+2;lz(l,r.serviceAVT,t,e,i,f),hx(l,r.serviceAVT,t,e,i,R.ActionType.Annotation,f),_k(t,a,R.DefinitionName.CustomHeaderActionOP,r.logger),fz(i)}o(uz,"addHeaderActionCallBackV4");function pz(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===$i.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?r.push({index:l,item:s}):a.push({index:l,item:s}))});for(let s=0;s<r.length;s++){let l=r[s];Lk(l,R.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];Lk(l,R.ActionType.Annotation,e,t,n,r.length+s)}}o(pz,"addFooterActionCallBackV4");function dz(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${$i.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomColumnOP}<${n}>`:R.DefinitionName.CustomColumnOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description="Custom Column";let f=`${R.DefinitionName.CustomColumnOP}<${n}>`;Pc(e,t,r,f,n,i);let p=a?n:R.DefinitionName.PositionOP;vt(R.DefinitionName.PositionOP,p,e,a);let d=a?`${R.DefinitionName.PositionOP}<${n}>`:R.DefinitionName.PositionOP;l.properties.position.$ref=`${U}${d}`,Cc(e,n,t,d,i.replace(/::/g,"/"));let m=e.definitions[n];m&&TE(m,l)}o(dz,"addCustomColumnsOP");function gz(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${$i.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomTableActionOP}<${n}>`:R.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description=yx;let f=`${R.DefinitionName.CustomTableActionOP}<${n}>`,p=`${R.DefinitionName.Actions}<${at(n)}>`;Pa(e,t,r,f,p,i);let d=a?n:R.DefinitionName.CustomActionPositionOP;vt(R.DefinitionName.CustomActionPositionOP,d,e,a);let m=a?`${R.DefinitionName.CustomActionPositionOP}<${n}>`:R.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${U}${m}`,go(e,p,m)}o(gz,"addTableCustomActionsOP");function _k(e,t,n,i){let r=e.definitions[n];r[R.SchemaTag.isViewNode]=!0,r.description=yx;let a=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.ObjectPageHeaderActions:R.DefinitionName.FooterActions;Vm(e,t,i,n,a);let s=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.CustomHeaderActionPositionOP:R.DefinitionName.CustomFooterActionPositionOP;vt(s,s,e,!1),r.properties.position.$ref=`${U}${s}`,go(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${U}${n}`})}o(_k,"addHeaderFooterCustomActionsOP");function mz(e,t,n,i,r){let a=`${R.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[R.SchemaTag.isViewNode]=!0,s.description=yx;let l=`${R.DefinitionName.CustomFormActionOP}<${n}>`,f=`${R.DefinitionName.SectionActions}<${at(n)}>`;Pa(e,t,r,l,f,i),vt(R.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${R.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${U}${p}`,go(e,f,p),e.definitions[f]&&(e.definitions[f].additionalProperties={$ref:`${U}${a}`})}o(mz,"addFormCustomActionsOP");function hz(e,t,n,i,r,a,s){let l=Nc(t),f=t.lastIndexOf("::"),p=f>-1?t.substring(f+2):t,d=vt(R.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(d[R.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),d.properties.columns={$ref:`${U}${l}`},d.properties.toolBar.$ref=si(R.DefinitionName.ObjectPageToolBar,t),d.properties.quickVariantSelection.$ref=si(R.DefinitionName.QuickVariantSelectionV4OP,t);let m=vt(R.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=si(R.DefinitionName.AnnotationPathAsObject,t),vt(R.DefinitionName.AnnotationPathAsObject,t,n),ds(e.entityType,n,`${R.DefinitionName.AnnotationPathAsObject}<${l}>`);let v={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return xc(v,R.DefinitionName.ObjectPageTableColumn,R.DefinitionName.CustomColumnOP,R.DefinitionName.CustomTableActionOP),dz(n,a,l,t,s),gz(n,a,l,t,s),d}o(hz,"handleLineItem");function Vk(e,t,n,i,r,a,s){s&&hT(s,t,R.DefinitionName.ObjectPageSectionTableV4);let l=vt(R.DefinitionName.ObjectPageSectionTableV4,t,n);ba(e,l,Nc(t)),cs(e,l,Nc(t)),l[R.SchemaTag.annotationPath]=e.annotationPath,l[R.SchemaTag.target]=e.namespace,l.properties.table.$ref=si(R.DefinitionName.ObjectPageTable,t);let f=hz(e,t,n,i,r.serviceAVT,a,r.logger);return{sectionTable:l,table:f}}o(Vk,"handleSectionTable");function yz(e,t,n,i,r,a,s){let l;a===R.SectionType.Section?l=R.DefinitionName.ObjectPageSectionForm:a===R.SectionType.HeaderSection&&(l=R.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:si(l,n)};let f=vt(l,n,r);e.ID||(f.properties={}),ba(e,f,n),cs(e,f,n),f[R.SchemaTag.annotationPath]=e.annotationPath,f[R.SchemaTag.target]=e.namespace,f[R.SchemaTag.isViewNode]=!0;let p=Xm(a,e,f,r,R.FioriElementsVersion.v4,n);if(e.base===R.FacetBase.Form){let d=Nc(n);vt(R.DefinitionName.CustomFormActionOP,p,r),mz(r,t,p,d,s)}}o(yz,"handleFormIdentification");function Fk(e,t,n,i,r){n.properties[t]={$ref:`${U}${r}`};let a=vt(R.DefinitionName.CommonHeaderFacetSettings,r,i,!1);Ul(e,a,t),a[R.SchemaTag.annotationPath]=e.annotationPath,a[R.SchemaTag.target]=e.namespace,a[R.SchemaTag.dataType]=Fc(e==null?void 0:e.target),a[R.SchemaTag.isViewNode]=!0}o(Fk,"handleHeaderFacet");function Tz(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,f=ci(l,i),p=l.$Type.split(R.UIVOCABULARYDOT)[1],d=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:si(R.DefinitionName.ObjectPageToolBarAction,d),description:f};m[R.SchemaTag.propertyIndex]=a,m[R.SchemaTag.annotationType]=l.$Type;let v=vt(R.DefinitionName.ObjectPageToolBarAction,at(d),n);v[R.SchemaTag.annotationPath]=Zm(l),v[R.SchemaTag.dataType]=er(l),v.properties={},a++})}return r}o(Tz,"handleChartActions");function vz(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[R.SchemaTag.annotationPath]=Zm(e),r[R.SchemaTag.dataType]=Fc(e.target||e),r[R.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=si(R.DefinitionName.ObjectPageToolBar,t);let a=vt(R.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=si(R.DefinitionName.ObjectPageToolBarActions,t);let s=Tz(e,t,n,i);return{chart:r,chartActions:s}}o(vz,"handleChart");function wk(e,t,n,i,r=e.entityType,a=!1,s){let l=a?R.DefinitionName.CommonHeaderFacetSettings:R.DefinitionName.ObjectPageSectionChart,f=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart;i&&hT(i,t,l);let p=ku(f,t),d=vt(l,p,n,!1);if(Ul(e,d,t),a)return delete d.properties.chart,{parentChartRef:d};d[R.SchemaTag.annotationPath]=Zm(e),d.properties.chart.$ref=si(R.DefinitionName.ObjectPageChart,t);let{chart:m,chartActions:v}=vz(e.target||e,t,n,r);return m[R.SchemaTag.target]=s,{parentChartRef:d,chart:m,chartActions:v}}o(wk,"handleSectionChart");function bz(e,t,n){let r=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${qE(r,n.serviceAVT)}`,l=s.split(R.UIVOCABULARYDOT)[1];return{key:s,type:l}}o(bz,"getVisualizationKeyAndType");function Ez(e,t,n){var r,a;return(a=(r=e.entityType.navigationProperties.find(s=>s.name===t).targetType)==null?void 0:r.annotations)==null?void 0:a.UI[n]}o(Ez,"getTargetFromNavigation");function Sz(e,t,n){let i=e.target[R.FacetBase.PresentationVariant]?e.target[R.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let r=i[0].$target,a=r||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:f}=bz(!!r,a,n),p=r?a:Ez(n,s,f),d=e.target[R.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:f,target:p,namespace:d,navigationPath:s}}o(Sz,"getVisualizationProps");function hT(e,t,n,i){e.properties[t]={$ref:si(n,i||t)}}o(hT,"addPropertyRef");function Mk(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}o(Mk,"getSectionPropertyRef");function Az(e,t,n,i,r,a,s){let{propertyKey:l,navigationKey:f}=Mk(t,r);hT(i,l,R.DefinitionName.ObjectPageSectionTableV4,f);let{sectionTable:p,table:d}=Vk(e,f,n,{target:r.target,entityType:e.entityType},a,s);p[R.SchemaTag.annotationPath]=e.annotationPath,Ul(e,p,t),delete p[R.SchemaTag.isViewNode],d[R.SchemaTag.annotationPath]=`/${r.namespace}/${r.key}`,d[R.SchemaTag.target]=r.namespace}o(Az,"addPVLineItemSection");function Pz(e,t,n,i,r,a=!1){let s=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:f}=Mk(t,r);hT(i,l,s,f);let{parentChartRef:p}=wk(r.target,f,n,void 0,e.entityType,a,r.namespace);p[R.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(ba(e,p,t),w0(e,p)):Ul(e,p,t)}o(Pz,"addPVChartSection");function xz(e,t,n,i,r,a,s){if(!(e!=null&&e.target)){oe(a.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=Sz(e,t,a),f=r===R.SectionType.HeaderSection;l&&(l.type.startsWith(R.Visualization.Chart)?Pz(e,t,n,i,l,f):l.type.startsWith(R.Visualization.LineItem)&&Az(e,t,n,i,l,a,s))}o(xz,"handleSectionPresentationVariant");function Cz(e){let t=e.facets||{};for(let n in t)if(t[n].base===R.FacetBase.CollectionFacet)return!0;return!1}o(Cz,"containsCollectionFacet");function Iz(e,t,n){var a;let i=`${R.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[R.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};Ec(n,R.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(Iz,"createCustomSubSectionReference");function Oz(e,t,n,i){var a,s,l,f;let r=(f=(l=(s=(a=t.options)==null?void 0:a.settings)==null?void 0:s.content)==null?void 0:l.body)==null?void 0:f.sections;if(r)for(let p in r){let d=vt(n,p,e),m=vt(R.DefinitionName.ObjectPageCustomSectionActions,p,e),v=vt(R.DefinitionName.CustomSectionActionOP,p,e),E=`${R.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;d.properties.actions={$ref:`${U}${E}`};let b=`${R.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${U}${b}`},vt(R.DefinitionName.CustomSectionActionPositionOP,p,e);let I=`${R.DefinitionName.CustomSectionActionPositionOP}<${p}>`;v.properties.position.$ref=`${U}${I}`,v[R.SchemaTag.isViewNode]=!0,Pa(e,t,i,b,E,p),go(e,E,I)}}o(Oz,"applyCustomActionsToCustomSections");function Tx(e,t,n,i,r,a,s){var m,v,E,b,I;let l=!1,f;a&&s?(l=!Cz(a),f=Iz(t,s,n.featureToggles)):f=r,e.additionalProperties={$ref:`${U}${f}`},f_(t,e,i,f,l,s,n.logger);let p=t.definitions[f];if(typeof p=="object"&&us(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[R.SchemaKeyName.id,R.SchemaKeyName.key],descriptionAsFallback:!0}),f.includes(R.DefinitionName.ObjectPageCustomSectionFragment)){let N=t.definitions[R.DefinitionName.ObjectPageCustomSectionActions];N.properties={},Oz(t,i,f,n.logger)}let d=p.properties.relatedFacet;if(f!=null&&f.includes(R.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof d=="object"){let N=(I=(b=(E=(v=(m=i.options)==null?void 0:m.settings)==null?void 0:v.content)==null?void 0:E.body)==null?void 0:b.sections)==null?void 0:I[s],j=N&&"subSections"in N?N.subSections:{};for(let G=d.oneOf.length-1;G>=0;G--){let $=d.oneOf[G];j[$.const]||($.hidden=!0)}}}o(Tx,"applyCustomSections");function Rz(e,t,n,i,r,a,s,l){let f=l===0,p=i.properties[t]=jo(n,e,t),d={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:d},d[R.SchemaTag.annotationPath]=e.annotationPath,d[R.SchemaTag.target]=e.namespace,d[R.SchemaTag.keys]=[{name:R.SchemaKeyName.id,value:e.ID}],d[R.SchemaTag.isViewNode]=!0;let m=l+1;for(let v in e.facets)vx(a,e.facets,v,d,n,r,s,m);f&&Tx(d,n,a,s,R.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(Rz,"handleCollection");function vx(e,t,n,i,r,a,s,l=0){let f=t[n],p=`ObjectPage${a}${f.base}<${Nc(n)}>`;switch(f.base){case R.FacetBase.PresentationVariant:case R.FacetBase.SelectionPresentationVariant:{xz(f,n,r,i,a,e,s);break}case R.FacetBase.CollectionFacet:{Rz(f,n,r,i,a,e,s,l);break}case R.FacetBase.LineItem:{if(a===R.SectionType.Section){let d=t[n];Vk(f,n,r,d,e,s,i)}break}case R.FacetBase.Form:case R.FacetBase.Identification:{yz(f,s,n,i,r,a,e.logger);break}case R.FacetBase.DataPoint:{Fk(f,n,i,r,p);break}case R.FacetBase.Chart:{a===R.SectionType.HeaderSection?Fk(f,n,i,r,p):a===R.SectionType.Section&&wk(f,n,r,i);break}case R.FacetBase.Address:case R.FacetBase.Contact:{ju(f,n,i,r,a);break}default:i.properties[n]=jo(r,f,n)}}o(vx,"addSection");function Lz(e,t,n){let i=Em(e.entityType,e.serviceAVT,R.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[R.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[R.DefinitionName.Sections];for(let a in i)vx(e,i,a,r,t,R.SectionType.Section,n);Tx(r,t,e,n,R.DefinitionName.ObjectPageCustomSectionFragment)}o(Lz,"addSections");function Nz(e,t,n,i){let r=bm(n,e.serviceAVT,R.FioriElementsVersion.v4,e.logger),a=t.definitions[R.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)vx(e,r,s,a,t,R.SectionType.HeaderSection,i);Tx(a,t,e,i,R.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionAddress]}}o(Nz,"addHeaderSections");function Fz(e,t,n){let i=e.entityType;zm(t,i),Ym(t,i,e,uz,n),i&&(t.definitions[R.DefinitionName.HeaderSections][R.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${$i.UIAnnotationTerms.HeaderFacets}`),Nz(e,t,i,n)}o(Fz,"addHeader");function fd(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${U}${R.DefinitionName.Sections}`},!e.manifest[R.ManifestSection.ui5].routing||!e.manifest[R.ManifestSection.ui5].routing.targets)return oe(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:R.MANIFESTPATH}}),r;let a=r.definitions[R.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:R.DefinitionName.Sections};if(a[R.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[R.ManifestSection.ui5].routing.targets;if(!s)return oe(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:R.MANIFESTPATH,range:[R.ManifestSection.generic]}}),r;let l=_m(s,R.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(Fz(e,r,l),a[R.SchemaTag.isViewNode]=!0,e.entityType&&(a[R.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${$i.UIAnnotationTerms.Facets}`),Ec(e.featureToggles,R.Features.BuildingBlocks)&&i){r.definitions[R.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{Ok(r,i,e,l.id)}catch(f){oe(e.logger,{severity:R.LogSeverity.Error,message:f})}}Lz(e,r,l),qm(r,e,R.FioriElementsVersion.v4,pz),_k(r,l,R.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[R.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[R.DefinitionName.GenericColumnsOP],delete r.definitions[R.DefinitionName.GenericSections],delete r.definitions[R.DefinitionName.GenericSubSections],delete r.definitions[R.DefinitionName.ObjectPageChart],delete r.definitions[R.DefinitionName.ObjectPageSectionAddress],delete r.definitions[R.DefinitionName.ObjectPageSectionChart],delete r.definitions[R.DefinitionName.ObjectPageSectionContact],delete r.definitions[R.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[R.DefinitionName.ObjectPageSectionForm],delete r.definitions[R.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[R.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[R.DefinitionName.ObjectPageSubSections],delete r.definitions[R.DefinitionName.ObjectPageTable],delete r.definitions[R.DefinitionName.ObjectPageToolBar],delete r.definitions[R.DefinitionName.ObjectPageToolBarAction],delete r.definitions[R.DefinitionName.ObjectPageToolBarActions],delete r.definitions[R.DefinitionName.QuickVariantSelectionV4OP],$o(r,az),r}o(fd,"generateObjectPageSchemaV4");function bx(e,t){return JSON.parse(JSON.stringify(t))}o(bx,"generateFreestyleSchemaV4");var no=Z(re());function Ex(e,t,n,i,r,a,s,l,f){let p=$r(n,r),{entitySet:d,entityType:m}=fl(p,s,t,r),v={templateType:no.TemplateType.ListReportObjectPageV4,fioriElementsVersion:no.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:d,entityType:m,featureToggles:f};return fd(v,e,s,l)}o(Ex,"generateObjectPageInterfaceV4");function yT(e,t,n,i,r,a,s){Xt();let l=$r(i,r),{entitySet:f,entityType:p}=fl(l,s,n,r),d={templateType:e,fioriElementsVersion:no.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:f,entityType:p},m=e===no.TemplateType.ListReportObjectPageV4?no.v4.FE_TEMPLATE_V4_LIST_REPORT:no.v4.FE_TEMPLATE_V4_ALP;return Vp(d,t,m,s)}o(yT,"generateListReportInterfaceV4");function Sx(e,t,n,i,r,a){let s=$r(n,a),l={templateType:e,fioriElementsVersion:no.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return bx(l,t)}o(Sx,"generateFreestyleInterfaceV4");function Ax(e,t,n,i,r,a,s){let l={};if(Ec(a,no.Features.BuildingBlocks)){let f=$r(r,s),p=Bo(i||[],t,n,s);l=p!=null&&p.file.fileContent?ll(e,p,f,s):{}}return l}o(Ax,"generateFPMCustomPageInterfaceV4");var pl=require("@sap-ux/vocabularies-types/vocabularies/UI"),Bk=Z(re());var ul=Z(re());var Uk=new Map([[ul.PageTypeV2.ListReport,ul.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[ul.PageTypeV2.ObjectPage,ul.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),kk=o((e,t)=>{let n=["controllerNames","controllerName"];for(let i of n)i in e?t[i]=e[i]:i in t&&delete t[i]},"applyControllerNameProperties"),jk=o(e=>{var t;for(let[n,i]of Uk)if(e!=null&&e.startsWith(i)){let r=n;if(e.includes("#")){let a=(t=e.split("#")[1])==null?void 0:t.split("::")[1];r+=`#${a}`}return r}},"getExtensionKeyForImport"),Dz=o((e,t)=>{let n="";for(let[r,a]of Uk)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),$k={manifest:{path:o(()=>`sap.ui5/extends/extensions/${ul.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=jk(n);i&&(t[i]={},kk(e[n],t[i]))}return Object.keys(t).length?t:void 0},"import"),export:o((e,t,n)=>{var a;let i=(t==null?void 0:t.id)||"",r=((a=t==null?void 0:t.settings)==null?void 0:a[n])||{};for(let s in r){let l=Dz(s,i);e[l]||(e[l]={}),kk(r[s],e[l])}for(let s in e){let l=jk(s);l&&!r[l]&&delete e[s]}},"export")}};var pt=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),bT=o(e=>pt(e)+"/views/paths","getSettingsPathForLRViewsPaths"),ET=o(e=>pt(e)+"/content/header","getSettingsPathForHeaderOP"),_z=o(e=>pt(e)+"/content/footer","getSettingsPathForFooterOP"),ro=o(e=>pt(e)+"/controlConfiguration","getControlConfigurationPath"),ST=o((e,t,n)=>ro(e)+`/@${pl.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),AT=o(e=>ro(e)+`/@${pl.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Ws=o((e,t,n,i)=>ro(e)+`/@${pl.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),Px=o((e,t,n,i)=>AT(e)+`/filterFields/${i}`,"getFilterFieldPath"),Or=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?ro(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),Vz=o((e,t)=>(e??[]).join("/").startsWith("table/views")&&t===void 0,"isNewlyCreatedView"),rr=o((e,t,n,i,r,a,s)=>r?Or(e,t,n,i,r):Object.keys(a??{}).length===0&&Vz(s,r)?"":ro(e)+`/@${pl.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),PT=o((e,t,n,i,r,a,s)=>{let l=rr(e,t,n,i,r,a,s);return l?l+Bk.QUICKVARPATH:""},"getQuickVariantPath"),or=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?ro(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),Bi=o((e,t,n,i,r)=>r?or(e,t,n,i,r):ro(e)+`/@${pl.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),oo=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?ro(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Rr=o((e,t,n,i,r)=>r?oo(e,t,n,i,r):ro(e)+`/@${pl.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),ar=o((e,t,n,i)=>ro(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),Hn=o((e,t,n,i)=>ro(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),gi=o((e,t,n,i)=>ET(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),xT=o((e,t,n,i)=>pt(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),Co=o((e,t,n,i)=>_z(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),wn=o((e,t,n)=>ro(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),jf=o((e,t,n,i)=>{let r=pt(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),Ks=o((e,t,n,i)=>pt(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Lr=o((e,t,n,i)=>{let r=pt(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),Uf=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let f=pt(e)+`/content/body/sections/${l}`;return i&&(f+="/"+i),f},"getCustomSubSectionPath"),vT=class vT{};o(vT,"ApplicationV4"),h([kt("settings")],vT.prototype,"settings",2);var TT=vT,io=class io{};o(io,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],io.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],io.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],io.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),x({since:"1.78.0"})],io.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"})],io.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}})],io.prototype,"dependencies",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],io.prototype,"viewType",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],io.prototype,"path",2),h([y($k)],io.prototype,"controllerExtensions",2);var kf=io;var he=Z(re());var PI={};yc(PI,{ALPChart:()=>FC,ALPTable:()=>Qf,ActionAfterExecutionConfiguration:()=>nI,ActionAfterExecutionConfigurationFooter:()=>Wx,ActionAfterExecutionConfigurationForm:()=>qx,ActionAfterExecutionConfigurationOP:()=>Nd,ActionAfterExecutionConfigurationObjectPageHeader:()=>sC,ActionAfterExecutionConfigurationToolBarLR:()=>dI,Actions:()=>lI,AdditionalSemanticObject:()=>eI,CommonHeaderFacetSettings:()=>tc,CommonViewSettings:()=>Xf,CustomActionPosition:()=>TI,CustomActionPositionOP:()=>qC,CustomFilterField:()=>Ox,CustomFilterFieldPosition:()=>Ix,CustomFooterActionOP:()=>Qx,CustomFooterActionPositionOP:()=>Xx,CustomFormActionOP:()=>iC,CustomHeaderAction:()=>Dx,CustomHeaderActionOP:()=>uC,CustomHeaderActionPosition:()=>gd,CustomHeaderActionPositionOP:()=>fC,CustomSectionActionOP:()=>Ux,CustomSectionActionPositionOP:()=>jx,CustomTableAction:()=>vI,CustomTableActionOP:()=>YC,FilterBar:()=>xx,FlexSettings:()=>gC,FooterActionV4:()=>Kx,FormAction:()=>Yx,Header:()=>Lx,HeaderActions:()=>Rx,HeaderSections:()=>bC,LRChartView:()=>DC,LRTableView:()=>_C,MultiTableModeV4:()=>wC,ObjectPageCustomHeaderSectionFlexSettings:()=>_x,ObjectPageCustomHeaderSectionFragment:()=>Vx,ObjectPageCustomSectionActions:()=>wx,ObjectPageCustomSectionFragment:()=>Bf,ObjectPageCustomSubSectionFragment:()=>Mx,ObjectPageFooter:()=>Bx,ObjectPageFooterActions:()=>$x,ObjectPageForm:()=>Zx,ObjectPageFormActionGroup:()=>zx,ObjectPageFormActions:()=>Jx,ObjectPageHeader:()=>oC,ObjectPageHeaderAction:()=>cC,ObjectPageHeaderActionGroup:()=>lC,ObjectPageHeaderActions:()=>rC,ObjectPageHeaderSectionAddress:()=>vC,ObjectPageHeaderSectionChart:()=>hC,ObjectPageHeaderSectionContact:()=>TC,ObjectPageHeaderSectionDataPoint:()=>yC,ObjectPageHeaderSectionForm:()=>mC,ObjectPageLayout:()=>IC,ObjectPageTable:()=>Id,ObjectPageTableColumn:()=>Jf,ObjectPageTableColumnAction:()=>HC,ObjectPageToolBarAction:()=>XC,ObjectPageToolBarActionGroup:()=>QC,ObjectPageToolBarActions:()=>zC,PersonalizationType:()=>RC,PersonalizationTypeOP:()=>$C,Position:()=>oI,PositionOP:()=>GC,QuickVariantSelectionV4:()=>NC,QuickVariantSelectionV4OP:()=>BC,RelatedApps:()=>tI,Table:()=>MC,TableColumn:()=>jT,TableColumnAction:()=>iI,TableCreationModeOP:()=>UC,TableCustomColumn:()=>sI,TableCustomColumnOP:()=>WC,TableSettings:()=>FT,TableViewExtension:()=>VC,TableViewSettings:()=>Pd,ToolBar:()=>fI,ToolBarAction:()=>gI,ToolBarActionGroup:()=>mI,ViewCustomActionPosition:()=>bI,ViewPersonalizationType:()=>LC,ViewPosition:()=>aI,ViewTableColumn:()=>UT,ViewTableColumnAction:()=>rI,ViewTableCustomAction:()=>EI,ViewTableCustomColumn:()=>cI,ViewToolBarAction:()=>yI,ViewToolBarActionGroup:()=>hI,VisualFilter:()=>Cx,checkViewOrder:()=>kC,deleteCreationModeProperty:()=>Cd,deletePersonalizationProperty:()=>Ro,exportCreationModeProperty:()=>xd,exportPersonalization:()=>wT,exportPersonalizationProperty:()=>Oo});function wz(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(wz,"exportVisualFilterValueList");var $f=class $f{};o($f,"FilterBar"),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.99.0"}),xe("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],$f.prototype,"hideFilterBar",2),h([y({manifest:{path:AT}}),x({since:"1.93.0"}),xe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],$f.prototype,"initialLayout",2),h([y({manifest:{path:AT}}),x({since:"1.93.0"}),xe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],$f.prototype,"layout",2);var xx=$f,ud=class ud{};o(ud,"VisualFilter"),h([y({manifest:{path:Px}}),x({since:"1.93.0"}),xe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],ud.prototype,"availability",2),h([y({manifest:{path:Px,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:wz,key:"visualFilter"}}),x({since:"1.93.0"})],ud.prototype,"visualFilterValueList",2);var Cx=ud,pd=class pd{};o(pd,"CustomFilterFieldPosition"),h([y({manifest:{path:o((t,n,i,r)=>Ws(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],pd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ws(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],pd.prototype,"placement",2);var Ix=pd,Xs=class Xs{};o(Xs,"CustomFilterField"),h([y({manifest:{path:Ws}}),x({since:"1.77.0"})],Xs.prototype,"label",2),h([y({manifest:{path:Ws}}),x({since:"1.77.0"})],Xs.prototype,"property",2),h([y({manifest:{path:Ws}}),x({since:"1.77.0"})],Xs.prototype,"template",2),h([y({manifest:{path:Ws}}),x({since:"1.77.0"})],Xs.prototype,"required",2),h([y({manifest:{path:Ws}}),x({since:"1.77.0"})],Xs.prototype,"position",2);var Ox=Xs;var Nx=class Nx{};o(Nx,"HeaderActions");var Rx=Nx,Fx=class Fx{};o(Fx,"Header");var Lx=Fx;var dd=class dd{};o(dd,"CustomHeaderActionPosition"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],dd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],dd.prototype,"placement",2);var gd=dd,Qs=class Qs{};o(Qs,"CustomHeaderAction"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Qs.prototype,"text",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Qs.prototype,"position",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Qs.prototype,"press",2),h([y({manifest:{path:gi},generate:Jn}),x({since:"1.84.0"})],Qs.prototype,"visible",2),h([y({manifest:{path:gi},generate:Jn}),x({since:"1.84.0"})],Qs.prototype,"enabled",2);var Dx=Qs;var CT=class CT{};o(CT,"ObjectPageCustomHeaderSectionFlexSettings"),h([y({manifest:{path:o((t,n,i)=>Lr(t,n,i,"flexSettings"),"path")}}),x({since:"1.81.0"})],CT.prototype,"designtime",2);var _x=CT,sr=class sr{};o(sr,"ObjectPageCustomHeaderSectionFragment"),h([y({manifest:{path:o((t,n,i)=>Lr(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],sr.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>Lr(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],sr.prototype,"relativePosition",2),h([y({manifest:{path:Lr},generate:ai}),x({since:"1.84.0"})],sr.prototype,"visible",2),h([y({manifest:{path:Lr}}),x({since:"1.77.0"})],sr.prototype,"title",2),h([y({manifest:{path:Lr}}),x({since:"1.77.0"})],sr.prototype,"subTitle",2),h([y({manifest:{path:Lr,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],sr.prototype,"fragmentName",2),h([y({manifest:{path:Lr,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),x({since:"1.86.0"})],sr.prototype,"templateEdit",2),h([y({manifest:{path:Lr}}),x({since:"1.81.0"})],sr.prototype,"stashed",2),h([y({manifest:{path:Lr}}),x({since:"1.81.0"})],sr.prototype,"flexSettings",2),h([y({manifest:{path:Lr}}),x({since:"1.81.0"})],sr.prototype,"requestGroupId",2),h([y({manifest:{path:Lr,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],sr.prototype,"controls",2);var Vx=sr;var kx=class kx{};o(kx,"ObjectPageCustomSectionActions");var wx=kx,qs=class qs{};o(qs,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:o((t,n,i)=>jf(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],qs.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>jf(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],qs.prototype,"relativePosition",2),h([y({manifest:{path:jf}}),x({since:"1.77.0"})],qs.prototype,"title",2),h([y({manifest:{path:jf,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],qs.prototype,"fragmentName",2),h([y({manifest:{path:jf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],qs.prototype,"controls",2);var Bf=qs,Ys=class Ys extends Bf{};o(Ys,"ObjectPageCustomSubSectionFragment"),h([y({manifest:{path:o((...t)=>`${Uf.apply({},t)}/position`,"path"),key:"anchor"}}),x({since:"1.77.0"})],Ys.prototype,"relatedFacet",2),h([y({manifest:{path:o((...t)=>`${Uf.apply({},t)}/position`,"path"),key:"placement"}}),x({since:"1.77.0"})],Ys.prototype,"relativePosition",2),h([y({manifest:{path:Uf}}),x({since:"1.77.0"})],Ys.prototype,"title",2),h([y({manifest:{path:Uf,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],Ys.prototype,"fragmentName",2),h([y({manifest:{path:Uf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],Ys.prototype,"controls",2);var Mx=Ys;var md=class md{};o(md,"CustomSectionActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Ks(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],md.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ks(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],md.prototype,"placement",2);var jx=md,zs=class zs{};o(zs,"CustomSectionActionOP"),h([y({manifest:{path:Ks}}),x({since:"1.84.0"})],zs.prototype,"text",2),h([y({manifest:{path:Ks}}),x({since:"1.84.0"})],zs.prototype,"position",2),h([y({manifest:{path:Ks}}),x({since:"1.84.0"})],zs.prototype,"press",2),h([y({manifest:{path:Ks},generate:ai}),x({since:"1.84.0"})],zs.prototype,"visible",2),h([y({manifest:{path:Ks},generate:ai}),x({since:"1.84.0"})],zs.prototype,"enabled",2);var Ux=zs;var Hx=class Hx{};o(Hx,"ObjectPageFooterActions");var $x=Hx,Gx=class Gx{};o(Gx,"ObjectPageFooter");var Bx=Gx;var hd=class hd{};o(hd,"ActionAfterExecutionConfigurationFooter"),h([y({manifest:{path:o((t,n,i,r)=>Co(t,n,i,r)+"/afterExecution","path")}}),xe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],hd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Co(t,n,i,r)+"/afterExecution","path")}})],hd.prototype,"enableAutoScroll",2);var Wx=hd,IT=class IT{};o(IT,"FooterActionV4"),h([y({manifest:{path:Co}}),x({since:"1.84.0"})],IT.prototype,"afterExecution",2);var Kx=IT,yd=class yd{};o(yd,"CustomFooterActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Co(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],yd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Co(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],yd.prototype,"placement",2);var Xx=yd,Js=class Js{};o(Js,"CustomFooterActionOP"),h([y({manifest:{path:Co}}),x({since:"1.84.0"})],Js.prototype,"text",2),h([y({manifest:{path:Co}}),x({since:"1.84.0"})],Js.prototype,"position",2),h([y({manifest:{path:Co}}),x({since:"1.84.0"})],Js.prototype,"press",2),h([y({manifest:{path:Co},generate:ai}),x({since:"1.84.0"})],Js.prototype,"visible",2),h([y({manifest:{path:Co},generate:ai}),x({since:"1.84.0"})],Js.prototype,"enabled",2);var Qx=Js;var Td=class Td{};o(Td,"ActionAfterExecutionConfigurationForm"),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/afterExecution","path")}}),xe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Td.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/afterExecution","path")}})],Td.prototype,"enableAutoScroll",2);var qx=Td,OT=class OT{};o(OT,"FormAction"),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],OT.prototype,"afterExecution",2);var Yx=OT,eC=class eC{};o(eC,"ObjectPageFormActionGroup");var zx=eC,tC=class tC{};o(tC,"ObjectPageFormActions");var Jx=tC,nC=class nC{};o(nC,"ObjectPageForm");var Zx=nC;var Zs=class Zs{};o(Zs,"CustomFormActionOP"),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Zs.prototype,"text",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Zs.prototype,"position",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Zs.prototype,"press",2),h([y({manifest:{path:Hn},generate:ai}),x({since:"1.84.0"})],Zs.prototype,"visible",2),h([y({manifest:{path:Hn},generate:ai}),x({since:"1.84.0"})],Zs.prototype,"enabled",2);var iC=Zs;var aC=class aC{};o(aC,"ObjectPageHeaderActions");var rC=aC,Hf=class Hf{};o(Hf,"ObjectPageHeader"),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"})],Hf.prototype,"editableHeaderContent",2),h([y({manifest:{path:ET}}),x({since:"1.84.0"})],Hf.prototype,"visible",2),h([y({manifest:{path:ET}}),x({since:"1.84.0"})],Hf.prototype,"anchorBarVisible",2);var oC=Hf;var vd=class vd{};o(vd,"ActionAfterExecutionConfigurationObjectPageHeader"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}}),xe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],vd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}})],vd.prototype,"enableAutoScroll",2);var sC=vd,RT=class RT{};o(RT,"ObjectPageHeaderAction"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],RT.prototype,"afterExecution",2);var cC=RT,pC=class pC{};o(pC,"ObjectPageHeaderActionGroup");var lC=pC,dC=class dC extends gd{};o(dC,"CustomHeaderActionPositionOP");var fC=dC,ec=class ec{};o(ec,"CustomHeaderActionOP"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],ec.prototype,"text",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],ec.prototype,"position",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],ec.prototype,"press",2),h([y({manifest:{path:gi},generate:ai}),x({since:"1.84.0"})],ec.prototype,"visible",2),h([y({manifest:{path:gi},generate:ai}),x({since:"1.84.0"})],ec.prototype,"enabled",2);var uC=ec;var LT=class LT{};o(LT,"FlexSettings"),h([y({manifest:{path:o((t,n,i)=>ST(t,n,i)+"/flexSettings","path")}}),x({since:"1.81.0"}),xe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],LT.prototype,"designtime",2);var gC=LT,bd=class bd{};o(bd,"CommonHeaderFacetSettings"),h([y({manifest:{path:ST}}),x({since:"1.81.0"})],bd.prototype,"stashed",2),h([y({manifest:{path:ST}}),x({since:"1.81.0"})],bd.prototype,"flexSettings",2);var tc=bd,EC=class EC extends tc{};o(EC,"ObjectPageHeaderSectionForm");var mC=EC,SC=class SC extends tc{};o(SC,"ObjectPageHeaderSectionChart");var hC=SC,AC=class AC extends tc{};o(AC,"ObjectPageHeaderSectionDataPoint");var yC=AC,PC=class PC extends tc{};o(PC,"ObjectPageHeaderSectionContact");var TC=PC,xC=class xC extends tc{};o(xC,"ObjectPageHeaderSectionAddress");var vC=xC,CC=class CC{};o(CC,"HeaderSections");var bC=CC;var NT=class NT{};o(NT,"ObjectPageLayout"),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],NT.prototype,"sectionLayout",2);var IC=NT;var MT=Z(re());var OC=Z(re());var Mz=o((e,t)=>{let n=e;for(let i of t.split("/"))n[i]||(i==="paths"?n[i]=[]:n[i]={}),n=n[i];return n},"getManifestSectionByPathV4");function ea(e,t,n,i,r,a){let s=bT(e),l=Mz(JSON.parse(JSON.stringify(t)),s),f;for(let p=0;p<l.length;p++){let d=l[p];if(d&&(d[OC.SchemaTag.key]===(a==null?void 0:a.key)||d[OC.SchemaTag.key]===i)){f=`${s}/${p}`;break}}return f||(f=`${s}/[]`),f}o(ea,"getSettingsPathForLRViewsPath");function kz(e,t,n,i,r,a){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let f of l){let p=Number(f),d=e[f];t===d.key?s[n]=d:p>=i&&p<=r?s[Math.max(0,p+a)]=d:s[f]=d}return s}o(kz,"fillNewlyOrderedViews");function kC(e,t){let n=t.key,i=e.findIndex(a=>(a==null?void 0:a.key)===n),r=t.index;if(i>-1&&i!==r){let a=r>i?-1:1,s=Math.min(Number(i),r),l=Math.max(Number(i),r),f=kz(e,n,r,s,l,a);for(let p of Object.keys(f))e[p]=f[p]}}o(kC,"checkViewOrder");function wT(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(wT,"exportPersonalization");function Oo(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(Oo,"exportPersonalizationProperty");function Ro(e,t,n,i){typeof e.personalization=="object"&&e.personalization[i]!==void 0?(delete e.personalization[i],Object.keys(e.personalization).length===0&&delete e.personalization):typeof e.personalization=="string"&&e.personalization!==void 0&&delete e.personalization}o(Ro,"deletePersonalizationProperty");function jC(e,t,n,i,r,a){var l;let s;if(!t||Object.keys(t).length===0){let f=e;Object.keys(f).forEach(p=>{f[p]&&f[p].key===r&&(e[Number(p)]={},s=p)})}if(s){let f=(l=a.table)==null?void 0:l.views;for(let p in f)f[p].index>s&&f[p].index--}}o(jC,"deleteView");function xd(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(xd,"exportCreationModeProperty");function Cd(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0?delete e.creationMode[t]:typeof e.creationMode=="string"&&e.creationMode!==void 0&&delete e.creationMode}o(Cd,"deleteCreationModeProperty");function Hk(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(Hk,"importPersonalization");function Gk(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(Gk,"determineIndexOfView");var Gf=class Gf{};o(Gf,"PersonalizationType"),h([y({manifest:{path:rr,export:Oo,delete:Ro}})],Gf.prototype,"column",2),h([y({manifest:{path:rr,export:Oo,delete:Ro}})],Gf.prototype,"sort",2),h([y({manifest:{path:rr,export:Oo,delete:Ro}})],Gf.prototype,"filter",2);var RC=Gf,Wf=class Wf{};o(Wf,"ViewPersonalizationType"),h([y({manifest:{path:Or,export:Oo,delete:Ro}})],Wf.prototype,"column",2),h([y({manifest:{path:Or,export:Oo,delete:Ro}})],Wf.prototype,"sort",2),h([y({manifest:{path:rr,export:Oo,delete:Ro}})],Wf.prototype,"filter",2);var LC=Wf,Kf=class Kf{};o(Kf,"QuickVariantSelectionV4"),h([y({manifest:{path:PT}})],Kf.prototype,"paths",2),h([y({manifest:{path:PT}})],Kf.prototype,"hideTableTitle",2),h([y({manifest:{path:PT}})],Kf.prototype,"showCounts",2);var NC=Kf,Io=class Io{};o(Io,"TableSettings"),h([y({manifest:{path:rr}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Io.prototype,"type",2),h([y({manifest:{path:rr,import:Hk,export:wT}}),x({since:"1.86.0"})],Io.prototype,"personalization",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],Io.prototype,"selectionMode",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"})],Io.prototype,"selectAll",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"})],Io.prototype,"selectionLimit",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Io.prototype,"enableExport",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"})],Io.prototype,"quickVariantSelection",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Io.prototype,"condensedTableLayout",2);var FT=Io,DT=class DT{};o(DT,"ALPChart"),h([y({manifest:{path:o(t=>pt(t)+"/views/paths/0/primary/0","path"),delete:jC}})],DT.prototype,"annotationPath",2);var FC=DT,dl=class dl{};o(dl,"CommonViewSettings"),h([y({manifest:{path:ea,delete:Sc}})],dl.prototype,"key",2),h([y({manifest:{path:bT,import:Gk,export:o((t,n)=>{kC(t,n)},"export"),delete:jC}})],dl.prototype,"index",2),h([y({manifest:{path:ea,delete:Sc}})],dl.prototype,"annotationPath",2),h([y({manifest:{path:ea}})],dl.prototype,"entitySet",2);var Xf=dl,ao=class ao extends Xf{};o(ao,"TableViewSettings"),h([y({manifest:{path:Or}}),x({since:"1.84.0"})],ao.prototype,"type",2),h([y({manifest:{path:Or,import:Hk}}),x({since:"1.86.0"})],ao.prototype,"personalization",2),h([y({manifest:{path:Or}}),x({since:"1.84.0"})],ao.prototype,"selectionMode",2),h([y({manifest:{path:Or}}),x({since:"1.84.0"})],ao.prototype,"selectAll",2),h([y({manifest:{path:Or}}),x({since:"1.84.0"})],ao.prototype,"selectionLimit",2),h([y({manifest:{path:Or}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],ao.prototype,"enableExport",2),h([y({manifest:{path:Or}}),x({since:"1.84.0"})],ao.prototype,"quickVariantSelection",2),h([y({manifest:{path:Or}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],ao.prototype,"condensedTableLayout",2),h([y({manifest:{path:Or}}),x({since:"1.117.0"}),xe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ao.prototype,"hierarchyQualifier",2);var Pd=ao;function jz(e){return Pd}o(jz,"getTableViewSettings");var Ed=class Ed extends Pd{};o(Ed,"ALPTable"),h([y({manifest:{path:o(t=>pt(t)+"/views/paths/0/secondary/0","path"),delete:Sc}})],Ed.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Ed.prototype,"initialLoad",2);var Qf=Ed,_T=class _T extends Xf{};o(_T,"LRChartView"),h([y({manifest:{path:ea},generate:Jn})],_T.prototype,"visible",2);var DC=_T,Sd=class Sd extends jz(Xf){};o(Sd,"LRTableView"),h([y({manifest:{path:ea}})],Sd.prototype,"keepPreviousPersonalization",2),h([y({manifest:{path:ea},generate:Jn})],Sd.prototype,"visible",2);var _C=Sd,nc=class nc{};o(nc,"TableViewExtension"),h([y({manifest:{path:ea}})],nc.prototype,"key",2),h([y({manifest:{path:bT,import:Gk,export:o((t,n)=>{kC(t,n)},"export"),delete:jC}})],nc.prototype,"index",2),h([y({manifest:{path:ea}})],nc.prototype,"label",2),h([y({manifest:{path:ea}})],nc.prototype,"template",2),h([y({manifest:{path:ea},generate:Jn})],nc.prototype,"visible",2);var VC=nc,VT=class VT{};o(VT,"MultiTableModeV4"),h([y({manifest:{path:o(t=>pt(t)+"/views","path")}})],VT.prototype,"showCounts",2);var wC=VT,Ad=class Ad extends FT{};o(Ad,"Table"),h([y({manifest:{path:o(t=>pt(t)+"/views/paths/0/secondary/0","path"),delete:Sc}})],Ad.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Ad.prototype,"initialLoad",2);var MC=Ad;var qf=class qf{};o(qf,"TableCreationModeOP"),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:o((t,n,i)=>{xd(t,n,i)},"export"),delete:o((t,n,i,r)=>{Cd(t,r)},"delete")}})],qf.prototype,"name",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:o((t,n,i)=>{xd(t,n,i)},"export"),delete:o((t,n,i,r)=>{Cd(t,r)},"delete")}})],qf.prototype,"createAtEnd",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:o((t,n,i)=>{xd(t,n,i)},"export"),delete:o((t,n,i,r)=>{Cd(t,r)},"delete")}})],qf.prototype,"inlineCreationRowsHiddenInEditMode",2);var UC=qf,Yf=class Yf{};o(Yf,"PersonalizationTypeOP"),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:Oo,delete:Ro}})],Yf.prototype,"column",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:Oo,delete:Ro}})],Yf.prototype,"sort",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:Oo,delete:Ro}})],Yf.prototype,"filter",2);var $C=Yf,zf=class zf{};o(zf,"QuickVariantSelectionV4OP"),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i)+MT.QUICKVARPATH,"path")}})],zf.prototype,"paths",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i)+MT.QUICKVARPATH,"path")}})],zf.prototype,"hideTableTitle",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i)+MT.QUICKVARPATH,"path")}})],zf.prototype,"showCounts",2);var BC=zf,cr=class cr{};o(cr,"ObjectPageTable"),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],cr.prototype,"type",2),h([y({manifest:{path:wn,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),x({since:"1.84.0"})],cr.prototype,"creationMode",2),h([y({manifest:{path:wn,import:o(t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}},"import"),export:wT}}),x({since:"1.86.0"})],cr.prototype,"personalization",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],cr.prototype,"selectionMode",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],cr.prototype,"selectAll",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],cr.prototype,"selectionLimit",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],cr.prototype,"enableExport",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],cr.prototype,"quickVariantSelection",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],cr.prototype,"condensedTableLayout",2),h([y({manifest:{path:wn}}),x({since:"1.86.0"})],cr.prototype,"enableFullScreen",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],cr.prototype,"enablePaste",2);var Id=cr;var Od=class Od{};o(Od,"ActionAfterExecutionConfigurationOP"),h([y({manifest:{path:o((t,n,i,r)=>ar(t,n,i,r)+"/afterExecution","path")}}),xe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Od.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>ar(t,n,i,r)+"/afterExecution","path")}})],Od.prototype,"enableAutoScroll",2);var Nd=Od,Rd=class Rd{};o(Rd,"ObjectPageTableColumn"),h([y({manifest:{path:ar}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Rd.prototype,"width",2),h([y({manifest:{path:ar}}),x({since:"1.85.0"})],Rd.prototype,"availability",2);var Jf=Rd,KC=class KC extends Jf{};o(KC,"ObjectPageTableColumnAction");var HC=KC,Ld=class Ld{};o(Ld,"PositionOP"),h([y({manifest:{path:o((t,n,i,r)=>ar(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Ld.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>ar(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Ld.prototype,"placement",2);var GC=Ld,ta=class ta{};o(ta,"TableCustomColumnOP"),h([y({manifest:{path:ar}}),x({since:"1.84.0"})],ta.prototype,"position",2),h([y({manifest:{path:ar}}),x({since:"1.84.0"})],ta.prototype,"header",2),h([y({manifest:{path:ar}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ta.prototype,"width",2),h([y({manifest:{path:ar}}),x({since:"1.84.0"})],ta.prototype,"template",2),h([y({manifest:{path:ar}}),x({since:"1.86.0"})],ta.prototype,"horizontalAlign",2),h([y({manifest:{path:ar}}),x({since:"1.84.0"})],ta.prototype,"availability",2),h([y({manifest:{path:ar}}),x({since:"1.85.0"})],ta.prototype,"properties",2);var WC=ta;var kT=class kT{};o(kT,"ObjectPageToolBarAction"),h([y({manifest:{path:Hn}})],kT.prototype,"enableOnSelect",2);var XC=kT,JC=class JC{};o(JC,"ObjectPageToolBarActionGroup");var QC=JC,Fd=class Fd{};o(Fd,"CustomActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Fd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Fd.prototype,"placement",2);var qC=Fd,Wa=class Wa{};o(Wa,"CustomTableActionOP"),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Wa.prototype,"text",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Wa.prototype,"position",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Wa.prototype,"press",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Wa.prototype,"requiresSelection",2),h([y({manifest:{path:Hn},generate:ai}),x({since:"1.84.0"})],Wa.prototype,"visible",2),h([y({manifest:{path:Hn},generate:ai}),x({since:"1.84.0"})],Wa.prototype,"enabled",2);var YC=Wa,ZC=class ZC{};o(ZC,"ObjectPageToolBarActions");var zC=ZC;var Zf=class Zf{};o(Zf,"AdditionalSemanticObject"),h([y({manifest:{path:xT}}),xe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.108.0"})],Zf.prototype,"allowedActions",2),h([y({manifest:{path:xT}}),xe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Zf.prototype,"unavailableActions",2),h([y({manifest:{path:xT}}),xe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Zf.prototype,"mapping",2);var eI=Zf,Dd=class Dd{};o(Dd,"RelatedApps"),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"})],Dd.prototype,"showRelatedApps",2),h([y({manifest:{path:pt}})],Dd.prototype,"additionalSemanticObjects",2);var tI=Dd;var _d=class _d{};o(_d,"ActionAfterExecutionConfiguration"),h([y({manifest:{path:o((t,n,i,r,a)=>Bi(t,n,i,r,a)+"/afterExecution","path")}}),xe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],_d.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>Bi(t,n,i,r,a)+"/afterExecution","path")}})],_d.prototype,"enableAutoScroll",2);var nI=_d,Vd=class Vd{};o(Vd,"TableColumn"),h([y({manifest:{path:Bi}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Vd.prototype,"width",2),h([y({manifest:{path:Bi}}),x({since:"1.85.0"})],Vd.prototype,"availability",2);var jT=Vd,wd=class wd{};o(wd,"ViewTableColumn"),h([y({manifest:{path:or}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],wd.prototype,"width",2),h([y({manifest:{path:or}}),x({since:"1.85.0"})],wd.prototype,"availability",2);var UT=wd,$T=class $T extends jT{};o($T,"TableColumnAction"),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],$T.prototype,"afterExecution",2);var iI=$T,BT=class BT extends UT{};o(BT,"ViewTableColumnAction"),h([y({manifest:{path:or}}),x({since:"1.84.0"})],BT.prototype,"afterExecution",2);var rI=BT,Md=class Md{};o(Md,"Position"),h([y({manifest:{path:o((t,n,i,r,a)=>Bi(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Md.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Bi(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Md.prototype,"placement",2);var oI=Md,kd=class kd{};o(kd,"ViewPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>or(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],kd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>or(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],kd.prototype,"placement",2);var aI=kd,na=class na{};o(na,"TableCustomColumn"),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],na.prototype,"position",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],na.prototype,"header",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],na.prototype,"width",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],na.prototype,"template",2),h([y({manifest:{path:Bi}}),x({since:"1.86.0"})],na.prototype,"horizontalAlign",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],na.prototype,"availability",2),h([y({manifest:{path:Bi}}),x({since:"1.85.0"})],na.prototype,"properties",2);var sI=na,ia=class ia{};o(ia,"ViewTableCustomColumn"),h([y({manifest:{path:or}}),x({since:"1.84.0"})],ia.prototype,"position",2),h([y({manifest:{path:or}}),x({since:"1.84.0"})],ia.prototype,"header",2),h([y({manifest:{path:or}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ia.prototype,"width",2),h([y({manifest:{path:or}}),x({since:"1.84.0"})],ia.prototype,"template",2),h([y({manifest:{path:or}}),x({since:"1.86.0"})],ia.prototype,"horizontalAlign",2),h([y({manifest:{path:or}}),x({since:"1.84.0"})],ia.prototype,"availability",2),h([y({manifest:{path:or}}),x({since:"1.85.0"})],ia.prototype,"properties",2);var cI=ia;var uI=class uI{};o(uI,"Actions");var lI=uI,pI=class pI{};o(pI,"ToolBar");var fI=pI;var jd=class jd{};o(jd,"ActionAfterExecutionConfigurationToolBarLR"),h([y({manifest:{path:o((t,n,i,r,a)=>Rr(t,n,i,r,a)+"/afterExecution","path")}}),xe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],jd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>Rr(t,n,i,r,a)+"/afterExecution","path")}})],jd.prototype,"enableAutoScroll",2);var dI=jd,Ud=class Ud{};o(Ud,"ToolBarAction"),h([y({manifest:{path:Rr}})],Ud.prototype,"enableOnSelect",2),h([y({manifest:{path:Rr}})],Ud.prototype,"afterExecution",2);var gI=Ud,SI=class SI{};o(SI,"ToolBarActionGroup");var mI=SI,AI=class AI{};o(AI,"ViewToolBarActionGroup");var hI=AI,$d=class $d{};o($d,"ViewToolBarAction"),h([y({manifest:{path:oo}})],$d.prototype,"enableOnSelect",2),h([y({manifest:{path:oo}})],$d.prototype,"afterExecution",2);var yI=$d,Bd=class Bd{};o(Bd,"CustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Rr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Bd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Rr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Bd.prototype,"placement",2);var TI=Bd,Ka=class Ka{};o(Ka,"CustomTableAction"),h([y({manifest:{path:Rr}}),x({since:"1.84.0"})],Ka.prototype,"text",2),h([y({manifest:{path:Rr}}),x({since:"1.84.0"})],Ka.prototype,"position",2),h([y({manifest:{path:Rr}}),x({since:"1.84.0"})],Ka.prototype,"press",2),h([y({manifest:{path:Rr}}),x({since:"1.84.0"})],Ka.prototype,"requiresSelection",2),h([y({manifest:{path:Rr},generate:Jn}),x({since:"1.84.0"})],Ka.prototype,"visible",2),h([y({manifest:{path:Rr},generate:Jn}),x({since:"1.84.0"})],Ka.prototype,"enabled",2);var vI=Ka,Hd=class Hd{};o(Hd,"ViewCustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>oo(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Hd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>oo(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Hd.prototype,"placement",2);var bI=Hd,Xa=class Xa{};o(Xa,"ViewTableCustomAction"),h([y({manifest:{path:oo}}),x({since:"1.84.0"})],Xa.prototype,"text",2),h([y({manifest:{path:oo}}),x({since:"1.84.0"})],Xa.prototype,"position",2),h([y({manifest:{path:oo}}),x({since:"1.84.0"})],Xa.prototype,"press",2),h([y({manifest:{path:oo}}),x({since:"1.84.0"})],Xa.prototype,"requiresSelection",2),h([y({manifest:{path:oo},generate:Jn}),x({since:"1.84.0"})],Xa.prototype,"visible",2),h([y({manifest:{path:oo},generate:Jn}),x({since:"1.84.0"})],Xa.prototype,"enabled",2);var EI=Xa;var OI={};yc(OI,{FreestylePage:()=>CI,ListReport:()=>Nr,ObjectPage:()=>Lo});function Uz(e){var t,n,i,r;((n=(t=e.paths)==null?void 0:t[0])!=null&&n.primary||(r=(i=e.paths)==null?void 0:i[0])!=null&&r.secondary)&&Object.keys(e).forEach(a=>delete e[a])}o(Uz,"deleteAllALPViews");function $z(){}o($z,"doNotExport");function Bz(){}o(Bz,"doNotImport");var Nr=class{};o(Nr,"ListReport"),h([y({manifest:{path:o(t=>pt(t)+"/views","path"),import:Bz,export:$z,delete:Uz}})],Nr.prototype,"chart",2),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"})],Nr.prototype,"variantManagement",2),h([y({manifest:{path:o(t=>pt(t)+"/views/paths/[]/0","path")}}),xe("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Nr.prototype,"defaultPath",2),h([y({manifest:{path:o(t=>pt(t),"path")}})],Nr.prototype,"defaultTemplateAnnotationPath",2),h([kt("header")],Nr.prototype,"header",2),h([kt("fe::FilterBar")],Nr.prototype,"filterBar",2),Nr=h([Zi({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Nr);var xI=Z(re());var Lo=class{};o(Lo,"ObjectPage"),h([kt("header")],Lo.prototype,"header",2),h([kt("layout")],Lo.prototype,"layout",2),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"}),xe("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],Lo.prototype,"variantManagement",2),h([kt("sections")],Lo.prototype,"sections",2),Lo=h([Zi({id:`${xI.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:xI.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],Lo);var II=class II{};o(II,"FreestylePage");var CI=II;var HT=Z(re());var Hz={ALPTableView:Qf},Gz={ALPTableView:Qf},Wz={Table:Id,TableColumn:Jf,ObjectPageCustomSectionView:Bf,ActionAfterExecutionConfiguration:Nd},Kz={[HT.PageTypeV4.AnalyticalListPage]:Hz,[HT.PageTypeV4.ListReport]:Gz,[HT.PageTypeV4.ObjectPage]:Wz},RI=class RI extends hf{constructor(){super(PI,OI,Kz)}};o(RI,"MetadataInstanceFactoryV4");var Qa=RI;var LI=require("@sap-ux/vocabularies-types/vocabularies/UI");function NI(e,t,n,i,r,a,s){var d,m,v,E,b,I;let l=t.jsonSchema.definitions,f=a&&a!==`@${LI.UIAnnotationTerms.LineItem}`?a:he.DefinitionName.LineItems,p=l[f];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let N in p.properties){let G=l[f].properties[N].$ref.split(U)[1].split("<")[0];e.columns[N]=n.createInstance(i,G);let $=s||a;Ot(e.columns[N],t.manifest,l[G],r,[N,$],$,t.logger),Br(e.columns,N)}Br(e,"columns")}else{let N=(I=(b=(E=(v=(m=(d=t.manifest["sap.ui5"])==null?void 0:d.routing)==null?void 0:m.targets)==null?void 0:v[r])==null?void 0:E.options)==null?void 0:b.settings)==null?void 0:I.views;(!N||N.paths.length<1)&&oe(t.logger,{severity:he.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}}o(NI,"transferColumns");function Xz(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[he.DefinitionName.VisualFilters];if(t.visualFilters={},typeof s=="object"){for(let l in s.properties){let f=s.properties[l];if(typeof f=="object"&&f.$ref){let p=zt(f.$ref),d=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,d),Ot(t.visualFilters[l],e.manifest,a[p],r,[l])}}Br(t,"visualFilters")}}o(Xz,"importVisualFilters");function Qz(e,t,n,i,r,a=he.DefinitionName.LineItems,s){var d;let l=e.jsonSchema.definitions,f=s;!f&&[he.DefinitionName.LineItems,`${he.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(f=`@${LI.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${he.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let m in p.properties){let v=p.properties[m];if(typeof v=="object"&&v.$ref){let b={actionPropertyDefinition:(d=p==null?void 0:p.properties)==null?void 0:d[m],appSchema:e.jsonSchema,factory:n,actionsInConfig:t.toolBar.actions,actionKey:m,manifest:e.manifest,routingId:r,targetAnnotation:f};Gl(b)}}}o(Qz,"importActions");function FI(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),f;!s&&t&&"table"in t?f=t.table:f=t,f.toolBar=l,Ot(f.toolBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.ToolBarLR],r,[]),Qz(e,f,n,i,r,a,s),Br(f.toolBar,"actions"),Br(f,"toolBar")}o(FI,"transferToolBar");function Wk(e,t,n){var s;let i=(s=e[t])==null?void 0:s[he.SchemaTag.annotationPath],r=n?`/${n}/`:"",a=i==null?void 0:i.substr(i.lastIndexOf("@"));return a=r?`${r}${a}`:a,a}o(Wk,"determineTargetAnnotationOfView");function qz(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,he.DefinitionName.ALPChart);let s=a[he.DefinitionName.ALPChart],l=s[he.SchemaTag.annotationPath];Ot(t.chart,e.manifest,s,r,[s[he.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),Ot(t.chart.toolBar,e.manifest,a[he.DefinitionName.ViewChartToolBar],r,[]);let f=a[he.DefinitionName.ALPTable][he.SchemaTag.annotationPath];if(f){let p=a[he.DefinitionName.ALPTable],d=t.table=n.createInstance(i,he.DefinitionName.ALPTable);FI(e,t,n,i,r);let m=f.substr(f.lastIndexOf("@"));Ot(d,e.manifest,p,r,[p[he.SchemaTag.key],m]),NI(d,e,n,i,r,void 0,m)}}o(qz,"importALPViews");function Yz(e){let t;return e.indexOf(he.DefinitionName.LRTableView)>-1?t=he.DefinitionName.LRTableView:e.indexOf(he.DefinitionName.LRChartView)>-1?t=he.DefinitionName.LRChartView:e===he.DefinitionName.TableViewExtension&&(t=he.DefinitionName.TableViewExtension),t}o(Yz,"getViewTypeByDefinition");function zz(e,t,n,i,r){let a=t.table.views=n.createInstance(i,he.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;Ot(a,e.manifest,s[he.DefinitionName.MultiTableModeV4],r,[]);let l=s[he.DefinitionName.MultiTableModeV4].properties,f=Object.entries(l).sort((p,d)=>p[1][he.SchemaTag.propertyIndex]-d[1][he.SchemaTag.propertyIndex]);for(let p of f)if(p[1].$ref){let d=p[1].$ref.split(U)[1],m=Yz(d),v=a[p[0]]=n.createInstance(i,m),E=s[d].entitySet,b=Wk(s,d,E);if(Ot(v,e.manifest,s[d],r,[p[0],b]),m===he.DefinitionName.LRTableView){let I=`${he.DefinitionName.LineItemsOfView}::${p[0]}`;FI(e,v,n,i,r,I,b),NI(v,e,n,i,r,I,b)}Object.keys(v).length===0&&delete a[p[0]]}Br(t.table,"views")}o(zz,"importLRViews");function Jz(e,t,n,i,r){let a=he.DefinitionName.HeaderActions,s=he.PropertyName.header,l=e.definitions[a];if(typeof l=="object"){t[s].actions={};for(let f in l.properties){let p=l.properties[f];if(typeof p=="object"&&p.$ref){let d=zt(p.$ref),m=e.definitions[d],v=zt(m.$ref||p.$ref);t[s].actions[f]=n.createInstance(he.PageTypeV4.ObjectPage,v),Ot(t[s].actions[f],i,e.definitions[v],r,[f.replace("/","??")]),Br(t.header,"actions"),Br(t,"header")}}}}o(Jz,"transferHeaderActions");function Zz(e,t,n,i){let r=e.jsonSchema.definitions,a={};for(let s of[he.DefinitionName.SelectionFields,he.DefinitionName.CompactFilters]){let l=r[s];typeof l=="object"&&l.properties&&Object.keys(l.properties).length&&(a=l.properties)}for(let s in a){let l=a[s];if(typeof l!="object"||l.$ref!==U+he.DefinitionName.CustomFilterField)continue;let f=n.createInstance(he.PageTypeV4.ListReport,he.DefinitionName.CustomFilterField),p=l.$ref.split(U)[1];Ot(f,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=f}}o(Zz,"importCustomFilterFields");function eJ(e,t,n,i,r,a){if(Ot(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,he.DefinitionName.Header),Ot(t.header,e.manifest,e.jsonSchema.definitions[he.DefinitionName.Header],r,[]),Jz(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,he.DefinitionName.FilterBar),Ot(t.filterBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.FilterBar],r,[]),Xz(e,t.filterBar,n,i,r),Zz(e,t.filterBar,n,r),a===he.SchemaType.ListReport){let s=he.DefinitionName.Table,l=e.jsonSchema.definitions[s],f;l.$ref&&(s=l.$ref.split(U)[1],l=e.jsonSchema.definitions[s],f=l.properties.columns.$ref.split(U)[1]),t.table=n.createInstance(i,he.DefinitionName.Table);let p=Wk(e.jsonSchema.definitions,s);Ot(t.table,e.manifest,l,r,[s,p]),FI(e,t,n,i,r,f),NI(t.table,e,n,i,r,f,p),zz(e,t,n,i,r)}else a===he.SchemaType.AnalyticalListPage&&qz(e,t,n,i,r)}o(eJ,"addSettings");function gl(e,t){if(Xt(),!e.jsonSchema)return;if(!e.manifest[he.ManifestSection.ui5]||!e.manifest[he.ManifestSection.ui5].routing){oe(e.logger,{severity:he.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let n=e.manifest[he.ManifestSection.ui5].routing.targets;if(!n){oe(e.logger,{severity:he.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let i=new Qa,r=i.createPageInstance(he.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=nE(s);if("name"in s&&(l===he.PageTypeV4.ListReport||l===he.PageTypeV4.AnalyticalListPage)){eJ(e,r,i,he.PageTypeV4.ListReport,a,t);break}}return r}o(gl,"createListReportConfig");var be=Z(re()),ic=require("@sap-ux/vocabularies-types/vocabularies/UI");function tJ(e,t){var i;let n="boolean";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?e==="true"||e==="false":!1}o(tJ,"isBoolean");function nJ(e,t){var i;let n="number";return t.type===n||(i=t.anyOf)!=null&&i.find(r=>r.type===n)?!isNaN(parseFloat(e.toString())):!1}o(nJ,"isNumber");function iJ(e,t){let n=e.toString();return tJ(n,t)?n==="true":nJ(n,t)?parseFloat(n):e}o(iJ,"convertValue");function rJ(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=iJ(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(rJ,"importProperty");function Kk(e,t,n){let i,r=wf(e.file,!1,n);if(r){let a=dT(r);i={},cl({fullSchema:t,schema:t,element:a,contextPath:[],config:i},rJ)}return i}o(Kk,"convertXmlFileToConfig");function GT(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=Bo(t||[],r,n,a),l;return s&&(l=Kk(s,i,e.logger)),l}o(GT,"createCustomPageConfig");function Gd(e,t){var v;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=Mf(t),f=(v=r.definitions)==null?void 0:v[l];if(!r||!f)return;let p=Ic(i,a),d=Oc(n||[],p,i,"fragment",t),m;if(d){let E={...f,definitions:r.definitions};m=Kk(d,E,s)}return m}o(Gd,"createCustomFragmentConfig");function DI(e,t=!1,n){var r,a,s;let i=t?(r=e.split("<")[1])==null?void 0:r.slice(0,-1):e;if(n){let l=i.split(`@${n}`);return`${(a=l[0])==null?void 0:a.replace(/::/g,"/")}@${n}${(s=l[1])==null?void 0:s.replace(/::/g,"#")}`}return`${e==null?void 0:e.replace(/::/g,"/").replace(/::/g,"#")}`}o(DI,"getManifestId");function Wd(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(Wd,"getDefinitionId");function oJ(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[Wd(a)];if(l)for(let f in l.properties){l.properties[f].$ref.indexOf(be.DefinitionName.CustomColumnOP)>-1?s=be.DefinitionName.CustomColumnOP:s=be.DefinitionName.ObjectPageTableColumn;let d=r.createInstance(be.PageTypeV4.ObjectPage,s);Ot(d,e.manifest,e.jsonSchema.definitions[s],e.routingId,[f],a),Object.keys(d).length>0&&(n[i].table.columns[f]=d)}}}o(oJ,"fillTableColumnsInConfig");function qk(e,t,n,i,r,a=n){var s;if(typeof t=="object")for(let l in t.properties){let f=t.properties[l];if(typeof f=="object"&&f.$ref){let p=zt(f.$ref),d=(s=t==null?void 0:t.properties)==null?void 0:s[l],m=p.split("<")[0],v;m.includes(be.DefinitionName.CustomSectionActionOP)?v=i.actions:v=i[n].table.toolBar.actions;let E={actionPropertyDefinition:d,appSchema:e.jsonSchema,factory:r,actionsInConfig:v,actionKey:l,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Gl(E)}}}o(qk,"fillSectionActionsInConfig");function aJ(e,t,n,i,r,a=n){if(t.actions){let s=i[n].form.actions={},f=e.jsonSchema.definitions[`${be.DefinitionName.ObjectPageSectionForm}<${Wd(a)}>`].properties.form.$ref.split(U)[1],m=e.jsonSchema.definitions[f].properties.actions.$ref.split(U)[1],v=e.jsonSchema.definitions[m];for(let E in v.properties){let b=v.properties[E],I=zt(b.$ref),N=e.jsonSchema.definitions[I];if(N.annotationType===ic.UIAnnotationTypes.DataFieldForAction||N.annotationType===ic.UIAnnotationTypes.DataFieldForActionGroup||N.description==="Custom Action"){let j={actionPropertyDefinition:b,appSchema:e.jsonSchema,factory:r,actionsInConfig:s,actionKey:E,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Gl(j)}}}}o(aJ,"fillFormActionsInConfig");function Xk(e,t,n,i,r,a){var f;let s=a||DI(i,!1,ic.UIAnnotationTerms.LineItem),l=(f=t.controlConfiguration)==null?void 0:f[s];if(l){n[i]={},n[i].table=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageTable);let p=`${be.DefinitionName.ObjectPageTable}<${a?Wd(a):i.replace("#","::")}>`;Ot(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ToolBar,{actions:{}});let d=e.jsonSchema.definitions[`${be.DefinitionName.Actions}<${Wd(s)}>`];qk(e,d,i,n,r,s),oJ(e,l,n,i,r,s)}}o(Xk,"fillTableInConfig");function sJ(e,t,n,i,r){var l;let a=DI(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageForm,{actions:{}}),aJ(e,s,i,n,r,a))}o(sJ,"fillFormInConfig");function cJ(e,t,n,i,r,a){let s=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split(U)[1];if(Ot(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let f=Gd(e,s.fragmentName);s.controls=f}n[i]=s}o(cJ,"fillCustomSubSectionInConfig");function Yk(e,t,n,i,r,a){var s,l,f,p,d;for(let m in t){let v=t[m],E=m;if(m.includes(ic.UIAnnotationTerms.PresentationVariant)&&((s=v.$ref)!=null&&s.startsWith(U+be.DefinitionName.ObjectPageSectionTableV4))){let b=v.$ref.split(U)[1];E=b?DI(b,!0,ic.UIAnnotationTerms.LineItem):m,Xk(e,n,i,m,r,E)}else(l=v.$ref)!=null&&l.startsWith(U+be.DefinitionName.ObjectPageSectionTableV4)?Xk(e,n,i,m,r):v.properties&&v.properties.subsections?(i[m]={subsections:{}},Yk(e,v.properties.subsections.properties,n,i[m].subsections,r,m)):(f=v.$ref)!=null&&f.startsWith(U+be.DefinitionName.ObjectPageSectionForm)&&((p=v.$ref)!=null&&p.includes(`@${ic.UIAnnotationTerms.FieldGroup}::`))?sJ(e,n,i,m,r):(d=v.$ref)!=null&&d.startsWith(U+be.DefinitionName.ObjectPageCustomSubSectionFragment)&&cJ(e,v,i,m,r,a)}}o(Yk,"fillSectionsInConfig");function lJ(e,t,n,i){var a,s;let r=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(r)for(let l in r){let f=r[l];if("subSections"in f)continue;let p=i.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomSectionFragment);if(Ot(p,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),f.actions){p.actions=i.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${be.DefinitionName.ObjectPageCustomSectionActions}<${Wd(l)}>`];qk(e,m,l,p,i,l)}let d=f.template;if(d){let m=Gd(e,d);p.controls=m}n.sections[l]=p}}o(lJ,"fillCustomSectionsInConfig");function fJ(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,a=r&&"facets"in r?r.facets:void 0;if(a)for(let l in a){let f=a[l],p=i.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomHeaderSectionFragment);Ot(p,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let d=f.template;if(d){let v=Gd(e,d);p.controls=v}let m=f.templateEdit;if(m){let v=Gd(e,m);p.controlsEditMode=v}n.header.sections[l]=p}}o(fJ,"fillCustomHeaderSectionsInConfig");function uJ(e,t,n,i,r){var s,l;let a=e.definitions[be.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let f in a.properties){let p=a.properties[f],d,m=(s=a.properties[f].$ref)==null?void 0:s.split(U)[1];m&&(p=e.definitions[m],d=m.split("<")[0]),(d==null?void 0:d.includes(be.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[f]=d?n.createInstance(be.PageTypeV4.ObjectPage,d):{},Ot(t.header.sections[f],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(be.FACETTITLEPREFIX)[1]))}}}o(uJ,"fillHeaderFacets");function Qk(e,t,n,i,r,a,s){let l=e.definitions[a];if(typeof l=="object"){let f=t[s].actions={};for(let p in l.properties){let d=l.properties[p];typeof d=="object"&&d.$ref&&Gl({actionPropertyDefinition:d,appSchema:e,factory:n,actionsInConfig:f,actionKey:p,manifest:i,routingId:r})}}}o(Qk,"fillHeaderFooterActions");function pJ(e,t,n){var a,s;let i=n.createPageInstance(be.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageHeader),Ot(i.header,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageFooter),Ot(i.footer,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageLayout),Ot(i.layout,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageLayout],e.routingId,[]),Ot(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[be.DefinitionName.Sections]&&(i.sections={},Yk(e,e.jsonSchema.definitions[be.DefinitionName.Sections].properties,r,i.sections,n)),lJ(e,r,i,n),uJ(e.jsonSchema,i,n,e.manifest,e.routingId),fJ(e,r,i,n),Qk(e.jsonSchema,i,n,e.manifest,e.routingId,be.DefinitionName.ObjectPageHeaderActions,be.PropertyName.header),Qk(e.jsonSchema,i,n,e.manifest,e.routingId,be.DefinitionName.FooterActions,be.PropertyName.footer)),i}o(pJ,"fillObjectPageConfig");function WT(e){if(Xt(),!e.manifest[be.ManifestSection.ui5]||!e.manifest[be.ManifestSection.ui5].routing){oe(e.logger,{severity:be.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:be.MANIFESTPATH,range:[be.ManifestSection.ui5]}});return}let t=e.manifest[be.ManifestSection.ui5].routing.targets;if(!t){oe(e.logger,{severity:be.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:be.MANIFESTPATH,range:[be.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){oe(e.logger,{severity:be.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:be.MANIFESTPATH,range:[be.ManifestSection.ui5,"routing"]}});return}let i=new Qa;return pJ(e,n,i)}o(WT,"createObjectPageConfigV4");var Ke=Z(re());var _I=[],KT={};function dJ(e,t){let n=e.target,i=t.target,r=Array.isArray(n),a=Array.isArray(i);return r&&a?n.length-i.length:!r&&!a?0:r?1:-1}o(dJ,"routesSorter");function VI(e,t=[]){if(!Array.isArray(e))return e;let n=e;for(let i of t)n=n.filter(r=>!i.includes(r));return n[0]}o(VI,"resolveTarget");function gJ(e){let t={};e=e.concat().sort(dJ);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=VI(i.target,n),n.push(i.target)):a=i.target;for(let s of r){let l=s.split("(")[0];t[a]=t[a]?`${t[a]}.${l}`:l}}return t}o(gJ,"populateAssociations");function mJ(e,t,n){let i;return e.name?e.name===Ke.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ke.PageTypeV4.FPMCustomPage:e.name.endsWith(Ke.PageTypeV4.ListReport)||e.name.endsWith(Ke.PageTypeV4.AnalyticalListPage)?i=Ke.PageTypeV4.ListReport:e.name.endsWith(Ke.PageTypeV4.ObjectPage)?i=Ke.PageTypeV4.ObjectPage:i=Ke.PageTypeV4.CustomPage:"viewId"in e?i=Ke.PageTypeV4.CustomPage:(oe(t,{severity:Ke.LogSeverity.Error,message:Q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ke.MANIFESTPATH,range:[`${Ke.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ke.ViewTypes&&"viewName"in e&&(i=Ke.PageTypeV4.CustomPage)),i}o(mJ,"determinePageType");function hJ(e){let t=e.target.viewId||e.target.id,n=Dt(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Ke.PageTypeV4.CustomPage)return;let i=Object.keys(e.schemas).find(r=>r.includes(n))||Object.keys(e.schemas).find(r=>r.includes(n.slice(0,-1)))||Object.keys(e.schemas).find(r=>r.includes(e.page.pageType));if(i){if(e.page.pageType===Ke.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=WT(r)}else if(e.page.pageType===Ke.PageTypeV4.FPMCustomPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger,routingId:e.id,fragments:e.extensionFiles.fragments,views:e.extensionFiles.views};e.page.config=GT(r)}else if(e.templateType===Ke.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=gl(r,Ke.SchemaType.ListReport)}else if(e.templateType===Ke.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=gl(r,Ke.SchemaType.AnalyticalListPage)}else if(e.templateType===Ke.TemplateType.FreestylePageV4&&e.page.pageType===Ke.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=_u(e.target)===Ke.TemplateType.AnalyticalListPageV4?Ke.SchemaType.AnalyticalListPage:Ke.SchemaType.ListReport;e.page.config=gl(r,s)}}}o(hJ,"convertSettingsToConfig");function yJ(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");_I.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");_I.push(t[t.length-1])}}o(yJ,"updateUnhandledControllers");function TJ(e,t){if(e.options){e.options.settings.variantManagement&&(t.variantManagement=e.options.settings.variantManagement),t.navigation={};for(let n in e.options.settings.navigation){let i=e.options.settings.navigation[n];t.navigation[n]=i.detail}}}o(TJ,"setVariantManagmentAndNavigation");function vJ(e,t,n){var i,r;if(e.options){t.entitySet=(i=e.options.settings)==null?void 0:i.entitySet,t.contextPath=(r=e.options.settings)==null?void 0:r.contextPath;let{entitySet:a,entityType:s}=fl(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(a==null?void 0:a.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}o(vJ,"setEntitySetEntityTypeContextPath");function bJ(e,t,n){var i,r;if("viewId"in e)t.view={id:e.viewId,name:e.viewName,...e.viewType&&{viewType:e.viewType},...e.viewPath&&{path:e.viewPath},...e.path&&{path:e.path}};else if([Ke.PageTypeV4.CustomPage,Ke.PageTypeV4.FPMCustomPage].includes(n)){let a=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName,s=e.name;!a&&n===Ke.PageTypeV4.CustomPage&&(a=s,s=void 0),t.view={...e.id&&{id:e.id},...a&&{name:a},...s&&{template:s},...e.viewType&&{viewType:e.viewType}}}}o(bJ,"evaluateCustomPageSettings");function EJ(e,t,n,i){var p;let r=e.targets[t],a=mJ(r,i.logger,t),s={pageType:a};if(vJ(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),KT[t]&&KT[t].indexOf(".")!==-1){let d=KT[t].split(".");s.navigationProperty=d[d.length-1]}bJ(r,s,a),TJ(r,s),yJ(r);let l=e.routes.find(d=>(d==null?void 0:d.target)&&d.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),!((p=s.view)!=null&&p.template)&&"name"in r&&r.name&&(s.template=r.name),n[t]=s;let f={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};hJ(f)}o(EJ,"getSinglePageAndConfig");function zk(e){let t={},n=e.manifest[Ke.ManifestSection.ui5].routing;if(!n||!n.routes){let i=Q.t("NOROUTING");return oe(e.logger,{severity:Ke.LogSeverity.Error,message:i,location:{path:Ke.MANIFESTPATH,range:[Ke.ManifestSection.ui5]}}),t}KT=gJ(n.routes||[]);for(let i in n.targets)EJ(n,i,t,e);return t}o(zk,"getPagesAndConfigs");function Jk(e){let t;if(e&&e.routes&&e.routes.length>0){for(let n of e.routes)if(n.pattern.startsWith(":?query:")){t=n;break}else if(n.pattern.indexOf("/")===-1){t=n;continue}return VI(t?t.target:e.routes[0].target)}else return}o(Jk,"getHome");function Zk(e){let t=e==null?void 0:e.config;return t?{...t.flexibleColumnLayout&&{flexibleColumnLayout:t.flexibleColumnLayout},...t.viewType&&{viewType:t.viewType},...t.viewPath&&{path:t.viewPath},...t.path&&{path:t.path}}:{}}o(Zk,"getSettings");function tu(e,t){let n=e[Ke.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];Im(t,a.name)&&(i[r]=a)}return i}o(tu,"getPages");var wI=class wI extends hs{constructor(t){Xt();let n=new kf,i=Dt(Ke.SchemaType.Application),r=t.appSchemas[i.filename];Ot(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,Jk(t.manifest[Ke.ManifestSection.ui5].routing),zk(t),{...Zk(t.manifest[Ke.ManifestSection.ui5].routing),...n}),this.unhandledControllers=_I}};o(wI,"V4AppProvider");var eu=wI;var e2=require("fs"),ml=require("path"),t2=Z(re()),Kd=Z(re());var n2=o((e,t,n=__dirname)=>{let i;switch(t){case Kd.SchemaType.Application:{i=`${Kd.SchemaType.Application}${e.toUpperCase()}.json`;break}case Kd.SchemaType.FPMCustomPage:{i=`${Kd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,ml.join)(n,"schemas",e,i);if(n.endsWith((0,ml.join)("specification","packages","specification")))return(0,ml.join)(n,"dist","schemas",e,i);if(n.endsWith((0,ml.join)("src","specification")))return(0,ml.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,ml.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),SJ=o(async e=>new Promise((t,n)=>{(0,e2.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),XT=o(async(e,t)=>{try{let n=n2(e||t2.FioriElementsVersion.v4,t,__dirname);return await SJ(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function AJ(e,t){let n={},i=[];switch(i=[ue.SchemaType.Application],e){case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.AnalyticalListPageV4:i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,ue.SchemaType.FPMCustomPage);break;case ue.TemplateType.FreestylePageV4:i.push(ue.SchemaType.FreestylePage),t===ue.FioriElementsVersion.v4&&i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,ue.SchemaType.FPMCustomPage);break;case ue.TemplateType.ListReportObjectPageV2:i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage);break;case ue.TemplateType.AnalyticalListPageV2:i.push(ue.SchemaType.AnalyticalListPage,ue.SchemaType.ObjectPage);break;case ue.TemplateType.OverviewPageV2:i.push(ue.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=Dt(r);n[a.filename]=await XT(t,r)}return n}o(AJ,"getGenericSchemas");function r2(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=oi(ue.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(r2,"getAnnotationsForUi");function Xd(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(Xd,"getEntitySetByEntitySetName");function PJ(e,t){var r;let n=e.target.targetType,i=e.objectPath[1];for(let a=2;a<e.objectPath.length;a++){let s=e.objectPath[a];if(i&&s._type==="NavigationProperty"){let l=s.containsTarget?`${s.name}/${s.partner}`:s.name,f=(r=i.navigationPropertyBinding)==null?void 0:r[l];i=t.entitySets.find(p=>p.name===(f==null?void 0:f.name))}}return{entityType:n,entitySet:i}}o(PJ,"resolveNavigationProperty");function fl(e,t,n,i){var l,f,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),a,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(a=(f=r.target)==null?void 0:f.entityType,s=r==null?void 0:r.target):((p=r==null?void 0:r.target)==null?void 0:p._type)==="NavigationProperty"?{entityType:a,entitySet:s}=PJ(r,e):oe(i,{severity:ue.LogSeverity.Error,message:Q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:ue.MANIFESTPATH}}),n&&!a&&oe(i,{severity:ue.LogSeverity.Error,message:Q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(fl,"getEntityTypeEntitySetFromContextPath");function i2(e,t,n){let i=_p(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=Xd(a,e.serviceAVT);s||oe(e.logger,{severity:ue.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Dt(ue.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),f=Dt(ue.SchemaType.ObjectPage);n[l.filename]=Qd(e,t[f.filename])}}o(i2,"generateObjectPageSchemasV2");function xJ(e,t,n){var l,f;let i=tu(e.manifest,ue.v4.FE_TEMPLATE_V4_LIST_REPORT),r=tu(e.manifest,ue.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let d=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(f=a[p].options.settings)==null?void 0:f.contextPath,{entitySet:v,entityType:E}=fl(s,m,d,e.logger);e.entityType=E,e.entitySet=v;let b=Dt(ue.SchemaType.ListReport,p),I=Dt(ue.SchemaType.ListReport);e.templateType===ue.TemplateType.FreestylePageV4&&(e.templateType=_u(a[p])),n[b.filename]=Vp(e,t[I.filename],a[p].name,m)}}o(xJ,"generateListReportSchemasV4");function CJ(e,t,n){var r;let i=_p(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=Xd(s,e.serviceAVT);let l=Dt(ue.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),f=Dt(ue.SchemaType.ListReport);t[l.filename]=Dp(e,n[f.filename])}}o(CJ,"generateAppSchemaV2LR");function IJ(e,t,n){var a,s;let i=tu(e.manifest,ue.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let f=(a=i[l].options.settings)==null?void 0:a.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:d,entitySet:m}=fl(r,p,f);e.entitySet=m,e.entityType=d;let v=Dt(ue.SchemaType.ObjectPage,l),E=Dt(ue.SchemaType.ObjectPage),b=Dt(ue.SchemaType.FPMCustomPage);n[v.filename]=fd(e,t[E.filename],p,t[b.filename])}}o(IJ,"generateObjectPageSchemasV4");function OJ(e,t,n,i){var a;let r={};if(i===ue.TemplateType.ListReportObjectPageV2&&n)CJ(e,r,t),i2(e,t,r);else if(i===ue.TemplateType.AnalyticalListPageV2&&n){let s=_p(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let f=s[l].entitySet;e.entitySet=Xd(f,e.serviceAVT);let p=Dt(ue.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||f),d=Dt(ue.SchemaType.AnalyticalListPage);r[p.filename]=qd(e,t[d.filename])}i2(e,t,r)}else if(i===ue.TemplateType.OverviewPageV2){let s=Dt(ue.SchemaType.OverviewPage),l=Dt(ue.SchemaType.OverviewPage);r[s.filename]=Yd(t[l.filename],e.manifest)}return{...t,...r}}o(OJ,"generateAppSchemasV2");function RJ(e,t,n){if(!Ec(e.featureToggles,ue.Features.BuildingBlocks))return;let i=tu(e.manifest,ue.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=Bo(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let f=Dt(ue.SchemaType.FPMCustomPage,void 0,l),p=Dt(ue.SchemaType.FPMCustomPage);n[f.filename]=ll(t[p.filename],s,e.serviceAVT,e.logger)}}}o(RJ,"generateCustomPageSchemasV4");function LJ(e,t,n){let i={};return n&&(xJ(e,t,i),IJ(e,t,i),RJ(e,t,i)),{...t,...i}}o(LJ,"generateAppSchemasV4");async function o2(e,t,n){let i=await AJ(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===ue.FioriElementsVersion.v4?LJ(e,i,t):OJ(e,i,t,n)}o(o2,"generateAppSchemas");function NJ(e){let t,n=[];switch(e.templateType){case ue.TemplateType.ListReportObjectPageV2:case ue.TemplateType.AnalyticalListPageV2:t=new vy(e);break;case ue.TemplateType.AnalyticalListPageV4:case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.FreestylePageV4:t=new eu(e);break;case ue.TemplateType.OverviewPageV2:t=new Ey(e);break;default:t=new eu(e);break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in r)n.push({dataSourceUri:a,fileContent:JSON.stringify(r[a],null,4)})}return n}o(NJ,"importConfigs");function a2(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===ue.SchemaType.Application?r=`${ue.DirName.Schemas}/${ue.FileName.App[0].toUpperCase()}${ue.FileName.App.slice(1)}`:r=`${ue.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o(a2,"getFileList");async function MI(e){var b,I;Xt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new Uu().doesUi5VersionFitDistTags((I=(b=t["sap.ui5"])==null?void 0:b.dependencies)==null?void 0:I.minUI5Version,i);let f=sE(t),p=$r(n,i),d=r2(p),m=bc(t,f,i),E=await o2({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:f,logger:i,featureToggles:s},d,m);return a2(E)}o(MI,"importProjectSchema");async function kI(e){var G,$;Xt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new Uu().doesUi5VersionFitDistTags(($=(G=t["sap.ui5"])==null?void 0:G.dependencies)==null?void 0:$.minUI5Version,i);let p=sE(t),d=V0(t),m=$r(n,i),v=bc(t,p,i),E={templateType:v,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},b=r2(m),I=await o2(E,b,v),j=NJ({manifest:t,flexChanges:s,appSchemas:I,templateType:v,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:d});return a2(I,j)}o(kI,"importProjectSchemaAndConfig");var FJ=["header","sections","footer"];function DJ(e,t,n,i){t.properties[n][ae.SchemaTag.artifactType]=ae.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=ae.ControlType.Section;break;case"ObjectPageSubSectionV2":r=ae.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=ae.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=ae.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=ae.ControlType.SmartTable;break;case"ObjectPageHeaderSection":case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":r=ae.ControlType.ObjectPageHeaderSection;break}r&&(mt(e,t,n),t.properties[n][ae.SchemaTag.controlType]=r)}o(DJ,"addFlexChangeForSection");function _J(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===No.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:f}=Qm(a,r.serviceAVT);if(!l)return;let p=a.Label||s,d=`ObjectPageHeaderAction<${at(l)}>`;t.definitions[d]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${No.UIAnnotationTerms.Identification}`,`/@${No.UIAnnotationTerms.Identification}`);t.definitions[d][ae.SchemaTag.annotationPath]=`/${m}`,t.definitions[d][ae.SchemaTag.actionType]=ae.ActionType.Annotation,t.definitions[d].description=p,t.definitions[d][ae.SchemaTag.keys]=[{name:ae.SchemaKeyName.action,value:s}],f&&(t.definitions[d][ae.SchemaTag.target]=f),i.properties[l]={$ref:`${U}${d}`}}})}o(_J,"addHeaderActionCallBackV2");function VJ(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===No.UIAnnotationTypes.DataFieldForAction){let a=Hr(r).split("::").splice(1).join("::"),s=ci(r,e),l=at(`${ae.DefinitionName.ObjectPageFooterAction}<${a}>`),f=r.fullyQualifiedName.replace(`@${No.UIAnnotationTerms.Identification}`,`/@${No.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[ae.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${f}`}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${U}${l}`}}})}o(VJ,"addFooterActionCallBackV2");function wJ(e,t,n,i,r,a,s,l){let f,p;if(a.ID&&a.Label?f=a.ID+a.Label.replace(/\s+/g,""):a.ID?f=a.ID:a.Label&&(f=a.Label.replace(/\s+/g,"")),f?p=`${ae.DefinitionName.CustomColumns}<${n}><${s}><${f}>`:p=`${ae.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let d=`${ae.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[d]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let m=[],v=r==null?void 0:r.entityTypes.find(b=>b.name===i),E=Yc(t[ae.ManifestSection.generic].pages,n,m);return Kl(e,v,E,t,l,p,d,a.ID),p}o(wJ,"ensureCustomColumnDefinitionExists");function Jd(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&DJ(e,t,"visible",n)}o(Jd,"addAppSchemaDefinition");function MJ(e,t,n){e.properties[t]={$ref:`${U}${n}`}}o(MJ,"addSectionReference");function zd(e,t,n,i){let r=at(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=U+t,i.definitions[r].properties.toolBar.$ref=`${U}ObjectPageToolBar<${t}>`,i.definitions[r][ae.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=ae.FACETTITLEPREFIX+n.ID,i.definitions[r][ae.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=ae.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${U}QuickVariantSelectionOP<${t}>`,i.definitions[`QuickVariantSelectionOP<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariantSelectionOP)),i.definitions[`QuickVariant<${t}>`]=JSON.parse(JSON.stringify(i.definitions.QuickVariant)),i.definitions[`QuickVariantSelectionOP<${t}>`].properties.variants.patternProperties["^[0-9]+$"].$ref=`${U}QuickVariant<${t}>`,ds(n.entityType,i,`QuickVariant<${t}>`)}o(zd,"addTableDefinition");function kJ(e,t,n,i,r,a){if(i.base!==ae.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=jo(n,i,t);let f=n.definitions[l];Jd(n,f,a,"ObjectPageSectionTableV2"),f.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[ae.PropertyName.table])),f.properties.table.anyOf=[{$ref:`${U}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${U}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${U}ObjectPageAnalyticalTable<${t}>`},{$ref:`${U}ObjectPageGridTable<${t}>`},{$ref:`${U}ObjectPageTreeTable<${t}>`}],f[ae.SchemaTag.annotationPath]=i.annotationPath,ba(i,f,t),cs(i,f,t),zd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),zd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),zd("ObjectPageGridTable",t,i,n),zd("ObjectPageTreeTable",t,i,n),zd("ObjectPageAnalyticalTable",t,i,n);let p,d=I_(i.entityType,e.serviceAVT);d&&(p=wJ(n,e.manifest,d.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let v=r[m];v.base===ae.FacetBase.LineItem&&(v.ID===s||m.includes(s))&&Wl(!0,n,v.target,v.entityType,v.ID||m,p)}}o(kJ,"handleLineItem");function jJ(e,t,n,i,r,a=!1){e.definitions[t]=jo(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";Jd(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[ae.SchemaTag.isViewNode]=!0}o(jJ,"handleSubSection");function UJ(e,t,n,i,r){e.definitions[t]=jo(e,n,i);let a=e.definitions[t];Jd(e,a,r,"ObjectPageSectionChartV2")}o(UJ,"handleSectionChart");function s2(e,t,n,i,r,a){e.definitions[t]=jo(e,n,i);let s=e.definitions[t];Jd(e,s,r,a||"CommonHeaderFacetSettings"),s[ae.SchemaTag.annotationPath]=n.annotationPath,s[ae.SchemaTag.isViewNode]=!0,s[ae.SchemaTag.dataType]=Fc(n==null?void 0:n.target)}o(s2,"handleHeaderFacet");function $J(e,t,n){let i=e.definitions[t],r=i[ae.SchemaTag.dataType]=Fc(n==null?void 0:n.target);r==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:r==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}o($J,"addDataPointHeaderFacetDataType");function BJ(e,t,n,i,r){e.definitions[t]=jo(e,n,i);let a=e.definitions[t];return Jd(e,a,r,"ObjectPageSectionFormV2"),a[ae.SchemaTag.annotationPath]=n.annotationPath,a[ae.SchemaTag.isViewNode]=!0,a}o(BJ,"handleFormSection");function HJ(e,t,n){let i=new Map([[ae.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[ae.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[ae.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[ae.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[ae.FacetBase.Form,"ObjectPageHeaderSectionForm"],[ae.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[ae.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[ae.FacetBase.LineItem,"ObjectPageSectionTableV2"],[ae.FacetBase.Chart,"ObjectPageSectionChartV2"],[ae.FacetBase.Address,"ObjectPageSectionAddressV2"],[ae.FacetBase.Contact,"ObjectPageSectionContactV2"],[ae.FacetBase.Form,"ObjectPageSectionFormV2"],[ae.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[ae.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[ae.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[ae.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[ae.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[ae.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[ae.FacetBase.Form,"ObjectPageSubSectionFormV2"],[ae.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(HJ,"getSectionType");function GJ(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${No.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(GJ,"getReferenceKey");function l2(e,t,n,i,r,a=!1,s=!1){let l=t[n],f=HJ(l.base,a,s),p=GJ(l,n,f),d=`${f}<${p}>`;switch(MJ(i,p,d),f){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,jJ(r,d,l,n,f,s);let m=r.definitions[d].properties.subsections;for(let v in l.facets)l2(e,l.facets,v,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{kJ(e,p,r,l,t,f),ql(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{UJ(r,d,l,p,f);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=BJ(r,d,l,p,f);Xm(ae.SectionType.Section,l,m,r,ae.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{ju(l,p,i,r,ae.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{ju(l,p,i,r,ae.SectionType.Section,ae.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{s2(r,d,l,p,f);break}case"ObjectPageHeaderSectionDataPoint":{s2(r,d,l,p,f),$J(r,d,l);break}default:i.properties[n]=jo(r,l,p)}}o(l2,"addSection");function c2(e,t,n,i,r,a=!1){if(e)for(let s in t)l2(i,t,s,n,r,!1,a)}o(c2,"addSectionsFromFacets");function f2(e,t,n){var d,m,v,E,b,I;let i=t.definitions[ae.DefinitionName.Sections];i[ae.SchemaTag.isViewNode]=!0,(d=e.entitySet)!=null&&d.entityType&&(i[ae.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${No.UIAnnotationTerms.Facets}`);let r=t.definitions[ae.DefinitionName.HeaderSections];if(r[ae.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[ae.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${No.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=Em((v=e.entitySet)==null?void 0:v.entityType,e.serviceAVT,ae.FioriElementsVersion.v2,e.logger),s=bm((E=e.entitySet)==null?void 0:E.entityType,e.serviceAVT,ae.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,f=s&&!!Object.keys(s).length;if(!l&&!f)return;for(let N in n){let j=n[N];(I=(b=e.entitySet)==null?void 0:b.name)!=null&&I.includes(j.entitySet)?(c2(l,a,i,e,t),c2(f,s,r,e,t,!0)):f2(e,t,j.pages)}let p=t.definitions.CustomSections;for(let N in p.properties)i.properties[N]=p.properties[N]}o(f2,"addSections");function WJ(e,t,n){zm(e,n),Ym(e,n,t,_J,void 0,!0)}o(WJ,"addHeader");function KJ(e,t,n,i){let r=M0(t,n,i,void 0,!0);r&&F_(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(KJ,"addRelatedFacetKeysType");function Qd(e,t){var s;Xt();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[ae.PropertyName.sections]={$ref:U+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[ae.ManifestSection.generic].pages;return a?(WJ(n,e,r),n.definitions[ae.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},f2(e,n,a),KJ(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[ae.SchemaTag.isViewNode]=!0):delete n.properties[ae.PropertyName.sections]),qm(n,e,ae.FioriElementsVersion.v2,VJ,a),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.CommonHeaderFacetSettings,delete n.definitions.ObjectPageHeaderSection,delete n.definitions.ObjectPageCustomHeaderSectionFragment,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTableWithMultiSelect,delete n.definitions.ObjectPageResponsiveTableWithInlineDelete,delete n.definitions.ObjectPageAnalyticalTable,delete n.definitions.ObjectPageTreeTable,delete n.definitions.ObjectPageGridTable,delete n.definitions.ObjectPageToolBar,delete n.definitions.ObjectPageToolBarActions,delete n.definitions.ObjectPageForm,delete n.definitions.ObjectPageFormFields,delete n.definitions.ObjectPageFormActions,delete n.definitions.FieldPathOP,$o(n,FJ),n):(oe(e.logger,{severity:ae.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:ae.MANIFESTPATH,range:[ae.ManifestSection.generic]}}),n)}o(Qd,"generateObjectPageSchemaV2");var tn=Z(re());var XJ=["filterBar","keyPerformanceIndicators","chart","table","footer"];function QJ(e,t,n){var b;let i=(b=e==null?void 0:e.component)==null?void 0:b.settings;if(_s(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(I){let N=I+(r?"#"+r:"");return t[N]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let I=r?Q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):Q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return oe(n,{severity:tn.LogSeverity.Error,message:I}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let f=(l==null?void 0:l.Visualizations)||[],p="",d="";f.some(function(I){return p=p||Mu("LineItem",I),d=d||Mu("Chart",I),p&&d}),p=p||"LineItem",d=d||"Chart";let m=t[p],v=t[d],E=(m||i.quickVariantSelectionX?0:1)+(v?0:2);if(E>0){let I=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][E-1],N=Q.t(I);oe(n,{severity:tn.LogSeverity.Warning,message:N})}return{lineItemAnnotation:m,chartAnnotation:v}}o(QJ,"getLineItemAndChartAnnotation");function qJ(e,t){let n=e.definitions[tn.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[tn.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(qJ,"addChart");function qd(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[tn.PropertyName.table].anyOf[0].$ref=U+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${U}${tn.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${U}${tn.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[tn.PropertyName.table].anyOf[1].$ref=`${U}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${U}${tn.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${U}${tn.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[tn.PropertyName.table].anyOf[2].$ref=`${U}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${U}${tn.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${U}${tn.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,b_(n.definitions.TableColumnExtensionTypeV2.enum,[tn.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=Ql(e);if(s){Xl(n);let l=[],f=mf(e.manifest[tn.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:d}=QJ(f,s,e.logger);p&&g_.forEach(v=>{n.definitions[v][tn.SchemaTag.annotationPath]=Tr(a.fullyQualifiedName,p.term,p.qualifier)}),Wl(!1,n,p,a),d&&qJ(n,d);let m=s.SelectionFields;if(Gm(n,m,a),ql(n,a),!f)return oe(e.logger,{severity:tn.LogSeverity.Error,message:Q.t("NOLR"),location:{path:tn.MANIFESTPATH,range:[tn.ManifestSection.generic]}}),n;Kl(n,a,f,e.manifest,e.fragments),iP(a,e.entitySet,n,e.serviceAVT),delete n.definitions.ALPGridTable,delete n.definitions.ALPResponsiveTable,delete n.definitions.ALPAnalyticalTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.GenericFooter,delete n.definitions.Actions,delete n.definitions.FieldPath}return $o(n,XJ),n}o(qd,"generateAnalyticalListReportSchemaV2");var u2=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function YJ(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let r=i.$ref.split("/");return r[r.length-1]})}o(YJ,"getCardDefinitionNames");function zJ(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),r=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(r).filter(f=>i.includes(r[f].dataSource)));let s=e.definitions;s.CardModel={type:"string"},xa(a,s.CardModel);let l=YJ(e);for(let f of l){let p=s[f].properties.model;delete p.type,p.$ref=U+"CardModel"}}o(zJ,"addModelsEnum");function JJ(e,t){let n=e.properties;for(let i in u2){let r=u2[i],a=r.key;n[a]&&(n[a].messages=[{text:Bl(a,{since:r.since,deprecated:{since:r.deprecated.since,text:r.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}o(JJ,"markDeprecatedProperties");function p2(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},JJ(n,t),zJ(n,t),n}o(p2,"generateOverviewPageSchemaV2");var rc=Z(re());function jI(e,t,n,i,r,a){Xt();let s=$r(e,t),l={templateType:a,fioriElementsVersion:rc.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=Xd(r,l.serviceAVT),l.entitySet||oe(l.logger,{severity:rc.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(jI,"prepareGenerationV2");function UI(e,t,n,i,r,a){let s=jI(n,a,i,r,t,rc.TemplateType.ListReportObjectPageV2);return Qd(s,e)}o(UI,"generateObjectPageInterfaceV2");function $I(e,t,n,i,r,a){let s=jI(n,a,i,r,t,rc.TemplateType.ListReportObjectPageV2);return Dp(s,e)}o($I,"generateListReportInterfaceV2");function BI(e,t,n,i,r,a){let s=jI(n,a,i,r,t,rc.TemplateType.AnalyticalListPageV2);return qd(s,e)}o(BI,"generateAnalyticalListPageInterfaceV2");function Yd(e,t){return p2(e,t)}o(Yd,"generateOVPInterfaceV2");var nu=Z(re()),g2=require("@sap-ux/vocabularies-types/vocabularies/UI");function d2(e,t,n=!0){n?(e.dependencies||(e.dependencies={}),e.dependencies.libs||(e.dependencies.libs={}),e.dependencies.libs[t]===void 0&&(e.dependencies.libs[t]={})):e.dependencies&&e.dependencies.libs&&e.dependencies.libs[t]!==void 0&&delete e.dependencies.libs[t]}o(d2,"updateDependencyLib");function QT(e){let t=e;if(e.indexOf("<")>-1){t=e.substring(e.indexOf("<")+1,e.length-1);let n=e.substring(0,e.lastIndexOf("::")).replace(/::/g,"/");n&&(t=`${n}/${t}`)}return t}o(QT,"extractLastIdPart");function m2(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return oe(i,{severity:nu.LogSeverity.Error,message:Q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(nu.PropertyName.sections),s=a>-1?QT(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${g2.UIAnnotationTerms.LineItem}`,f=n.eventHandler===!0?!0:void 0,p={target:t.pageNameArray[0],targetEntity:l,position:n.position,name:e,...n.header&&{header:n.header},...n.width&&{width:n.width},...n.availability&&{availability:n.availability},...f&&{eventHandler:f}},d={customExtension:nu.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return HI(d),!0}o(m2,"createNewCustomColumn");var qa=Z(re());var y2=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),h2=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function ZJ(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(ZJ,"initializeRouting");function eZ(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(eZ,"setTargetOptions");function tZ(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==qa.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(tZ,"calculateQueryPattern");function T2(e,t,n,i,r){if(r){e.push(...r.split("/")),e.shift();return}e.unshift(t);let a;for(let s in n){if(typeof n[s].navigation=="object"){let l=Object.keys(n[s].navigation).find(f=>n[s].navigation[f].route===i);l&&(t=l,a=n[s])}if(a){T2(e,t,n,s);return}}}o(T2,"fillNavigationParts");function nZ(e){let t={},n=e==null?void 0:e.split("/");return n&&n.length>0&&n.forEach(i=>{let r=i.substring(0,i.indexOf("({")),a=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[r]=a}),t}o(nZ,"fillParentKeys");function iZ(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(eZ(n,a,s),s!=null&&s.route&&!i.routes.some(f=>f.name===s.route)){let f=l==null?void 0:l.routePattern;if(!f){let p=[];T2(p,a,t,r,l==null?void 0:l.contextPath);let d=nZ(e.routePattern);f=tZ(p,l,d)}i.routes.push(y2(f,s.route,s.route))}}}o(iZ,"handlePageNavigation");function rZ(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(r=>r.name===n);i!==-1&&e.routes.splice(i,1)}}o(rZ,"removeDeletedPages");function oZ(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=h2({contextPath:e.contextPath},e.variantManagement)),t.options.settings.contextPath=e.contextPath):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.contextPath,e.entitySet?(t.options||(t.options=h2({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(a=(r=t.options)==null?void 0:r.settings)==null||delete a.entitySet}o(oZ,"transferEntitySetandContextPath");function aZ(e,t,n){let i=e.routes.find(r=>r.target&&r.target.indexOf(t)>-1);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}o(aZ,"updateRouteLayout");function sZ(e,t,n){var i;return e.pageType&&![qa.PageTypeV4.CustomPage,qa.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:e.template??`sap.fe.templates.${e.pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(e.pageType!==qa.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||qa.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{...t==null?void 0:t.options,settings:{...(i=t==null?void 0:t.options)==null?void 0:i.settings,viewName:e.view.name}}}),t}o(sZ,"fillTarget");function b2(e,t,n){var r,a;let i=ZJ(n[qa.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(y2(":?query:",e,e));for(let s in t){let l,f=t[s];i.targets[s]&&(l=i.targets[s]),l=sZ(f,l,s),oZ(f,l),l&&!f.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(a=(r=l==null?void 0:l.options)==null?void 0:r.settings)!=null&&a.navigation&&(l.options.settings.navigation={}),iZ(f,t,l,i,s),aZ(i,s,f),i.targets[s]=l}return rZ(i,t),i}o(b2,"transformRoutingV4");var Ii=Z(re());var E2=[Ii.FlexibleColumnLayoutAggregations.BeginColumnPages,Ii.FlexibleColumnLayoutAggregations.MidColumnPages,Ii.FlexibleColumnLayoutAggregations.EndColumnPages],S2=o((e,t,n,i=[],r=0)=>{var p;let a=e.routing.routes.find(d=>d.name===n);if(!a)return;typeof a.target=="string"&&(a.target=r<=2?[...i,a.target]:[a.target]);let s=e.routing.targets[n],l=(p=t.pages)==null?void 0:p[n];if(!l)return;"controlAggregation"in l?s.controlAggregation=l.controlAggregation:E2[r]?s.controlAggregation=E2[r]:s.controlAggregation=Ii.FlexibleColumnLayoutAggregations.EndColumnPages;let f=a.pattern.replace(":?query:","");if(f?s.contextPattern=f.startsWith("/")?f:`/${f}`:s.contextPattern="",l.navigation){r++;for(let d in l.navigation)S2(e,t,l.navigation[d].route,a.target,r)}},"applyFCLRouting"),cZ=o((e,t)=>{e.routing.config.routerClass=Ii.v4.FIORI_FCL_ROUTER_CLASS,S2(e,t,t.home);let n={viewName:Ii.FIORI_FCL_ROOT_VIEW_NAME,type:Ii.ViewTypes.XML,async:!0,id:Ii.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,d2(e,Ii.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),lZ=o(e=>{var t;e.rootView&&e.rootView.viewName===Ii.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Ii.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),A2=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?cZ(e,t):lZ(e)},"updateFcl");var ie=Z(re()),Zd=require("@sap-ux/vocabularies-types/vocabularies/UI");var P2=Z(vc()),qT=Z(re());function fZ(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(fZ,"isExportValueEquals");function uZ(e,t){var s;let{element:n,schema:i,parent:r,contextPath:a}=e;if(delete n.attributes[t],((s=i.metadata)==null?void 0:s.type)===qT.MacrosPropertyType.Property&&Object.keys(n.attributes).length===0&&(r!=null&&r.element.elements)){let l=a[a.length-1];l&&r.element.elements.splice(l.index,1)}}o(uZ,"deleteProperty");function x2(e,t,n,i){var f,p;let{contextPath:r,fullSchema:a,element:s}=e,l=!1;if(t.hidden)return!1;if(i in n&&n[i]!==void 0)if(t.isViewNode){s.elements||(s.elements=[]);let d={name:i,type:"element"};return s.elements.push(d),cl({fullSchema:a,schema:t,element:d,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},x2)}else fZ((f=s.attributes)==null?void 0:f[i],n[i])||(s.attributes||(s.attributes={}),s.attributes[i]=n[i],l=!0);else(p=s.attributes)!=null&&p[i]&&(uZ(e,i),l=!0);return l}o(x2,"exportProperty");function YT(e,t,n,i,r,a){let s=wf(e.file,!1,a);if(s){let l=dT(s);if(cl({fullSchema:i,schema:i,element:l,contextPath:[],config:n},x2)){let p=(0,P2.js2xml)(s,{spaces:4}),d={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:qT.ChangeIndicator.Updated};r==="view"?t.views=[d]:r==="fragment"&&t.fragments.push(d)}}}o(YT,"getExtensionExportResult");var C2=o((e,t)=>{let{views:n,manifest:i,jsonSchema:r,page:a,logger:s}=e,l={...t,manifest:i},f;return r&&Object.keys(r).length>0&&(f=Bo(n||[],a.name,i,s)),f&&YT(f,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),I2=o((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:a,pageNameArray:s,logger:l}=e,{manifest:f}=r,p,d="fragment";if(i&&Object.keys(i).length>0){let m=Ic(f,s[0]);p=Oc(a,m,f,d,t)}if(p){let m=Mf(t),E={...i.definitions[m],definitions:i.definitions};YT(p,r,n,E,d,l)}},"exportXMLFragmentConfig");var O2=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],pZ=[...O2,"views","initialLoad","template"],zT=o(e=>{let t=ie.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function dZ(e,t,n){var s,l,f,p;let i=`@${Zd.UIAnnotationTerms.LineItem}`,r=`@${Zd.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[ie.DefinitionName.TableSPV])==null?void 0:s[ie.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let d=(f=t.appSchema.definitions[ie.DefinitionName.ALPTable])==null?void 0:f[ie.SchemaTag.annotationPath];i=r=d&&d.substr(d.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ie.PropertyName.table&&a){let d=a.split("/");i=r=d[d.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(dZ,"determineTargetAnnotationOfTable");function gZ(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ie.DefinitionName.ALPChart])==null?void 0:a[ie.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}o(gZ,"determineTargetAnnotationOfChart");function mZ(e,t,n,i,r){var a;if(e.length===3)t=n=i[ie.SchemaTag.annotationPath]&&i[ie.SchemaTag.annotationPath].substr(i[ie.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split(U)[1],l=s&&r.appSchema.definitions[s],f=(l==null?void 0:l[ie.SchemaTag.annotationPath])&&l[ie.SchemaTag.annotationPath].substr(l[ie.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${f}`:f}return{targetAnnotation:t,targetAnnotationEncoded:n}}o(mZ,"determineTargetAnnotationBasedOnParentView");function hZ(e,t){var a;let n,i,r=(a=e.appSchema.definitions.MultiTableModeV4)==null?void 0:a.properties[t[2]];if(r)({targetAnnotation:n,targetAnnotationEncoded:i}=mZ(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ie.SchemaTag.annotationPath]&&l[ie.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let f=l[ie.SchemaTag.annotationPath].split("/");return n=i=f[f.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ie.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}o(hZ,"determineTargetAnnotationOfView");function yZ(e,t,n){let i,r;return e[2].split(`@${ie.UIVOCABULARY}`)[1]?n&&n.indexOf(ie.FACETTITLEPREFIX)>-1?i=r=n.split(ie.FACETTITLEPREFIX)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(yZ,"determineTargetAnnotationOfHeaderSections");function TZ(e,t){let n=e[1].split(`@${ie.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=QT(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(TZ,"determineTargetAnnotationOfSections");function vZ(e,t,n){let i,r,a=!1;return e[0]===ie.PropertyName.table&&e[1]!==ie.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=dZ(e,t,n):e[0]===ie.PropertyName.chart&&t.templateType===ie.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=gZ(e,t,n):e[0]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=TZ(e,a):e[1]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=yZ(e,a,t.title):e[1]===ie.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=hZ(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(vZ,"determineTargetAnnotation");function bZ(e){return e.includes(yE)}o(bZ,"isGroupingElement");function EZ(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ie.PropertyName.actions,ie.PropertyName.columns,ie.PropertyName.views,ie.PropertyName.visualFilters,ie.PropertyName.selectionFields].includes(ie.PropertyName[r])||bZ(r)){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o(EZ,"determineKeyForSyncRule");function SZ(e){e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):e.manifestSection[e.manifestKey]||(e.manifestSection[e.manifestKey]={})}o(SZ,"createNewObjectInManifest");function R2(e,t,n){var r,a;let i=!1;return t.type!=="array"&&((r=n==null?void 0:n.targetDefinition)==null?void 0:r.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(SZ(e),i=!0):e.syncRule.manifest.export!==!1&&(e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length||!Array.isArray(e.configObject[e.configPropertyKey])&&e.configObject[e.configPropertyKey]===void 0?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey],i=!0),i}o(R2,"transferPropertyToManifest");function AZ(e,t,n,i,r,a,s){var p,d,m;let l=!1,f=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((d=n.config.table)!=null&&d.views)||e[1]==="views"&&((m=n.config.table)!=null&&m.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&O2.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(f!=null&&f.annotationPath)&&!f.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&pZ.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let v=t.syncRule.manifest.delete;typeof v=="function"&&(v(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config),l=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],l=!0);return ls(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(AZ,"deleteFromManifest");function PZ(e,t,n,i){let r=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:l,targetAnnotation:f,custom:p}=vZ(e,n.transferParameters,n.configObject),d=EZ(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,d,f,n.configObject,a),v=m?ko(n.transferParameters.exportResults.manifest,m,f,p?void 0:l):void 0;if(v){let E={syncRule:t,manifestSection:v,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:d};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&kl([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?r=AZ(e,E,n.transferParameters,v,m,f,l):r=R2(E,n.propertyDefinition,i)}return r}o(PZ,"exportManifestChange");function xZ(e,t,n){let i=Mn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);I2(e.transferParameters,r,n.configObject)}else i.manifest&&PZ(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ie.ChangeIndicator.Updated)}o(xZ,"evaluateExportRule");function CZ(e,t,n,i,r){let a=[];e.propertyDefinition.$ref&&t?a.push(t.configObject):e.propertyDefinition.anyOf?a.push(n):e.propertyDefinition.type==="array"?a=n:a.push(n),e.index=0;for(let s of a)e.transferParameters.title=t==null?void 0:t.title,WI(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(CZ,"transferSubObject");function IZ(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=pt(e.pageNameArray)+"/views",a=ko(e.exportResults.manifest,r);return!a.paths||Object.keys(a.paths).length===0?(a.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):a.paths[0].secondary||(a.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}o(IZ,"createALPTableView");function OZ(e){var a,s;let t=!1,n=e.key;if(!e.configObject[n]||Object.keys(e.configObject[n]).length===0)return{newElementCreated:t,stopProcessing:!0};let i=pt(e.transferParameters.pageNameArray)+"/views",r=ko(e.transferParameters.exportResults.manifest,i);return!r.paths||Object.keys(r.paths).length===0?(r.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):r.paths[0].primary||(r.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),r.paths[0].secondary||(r.paths[0].secondary=[{annotationPath:((s=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||Zd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(OZ,"createALPChartView");function RZ(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=pt(e.pageNameArray),r=ko(e.exportResults.manifest,i),a=`@${Zd.UIAnnotationTerms.SelectionFields}`;if(r.controlConfiguration?r.controlConfiguration[a]?r.controlConfiguration[a].filterFields||(r.controlConfiguration[a].filterFields={},n=!0):(r.controlConfiguration[a]={filterFields:{}},n=!0):(r.controlConfiguration={[a]:{filterFields:{}}},n=!0),n){let s=r.controlConfiguration[a].filterFields;Object.keys(t).forEach(l=>{let f=t[l];s[l]={};for(let p in f)p==="visualFilterValueList"?s[l].visualFilter={valueList:f[p]}:s[l][p]=f[p]})}return n}o(RZ,"createVisualFilters");function LZ(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=pt(t.pageNameArray)+"/views",s=ko(t.exportResults.manifest,a),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],r=!0;else{let f=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(f===-1)s.paths.push(l),r=!0;else if(f!==i.index){let p=JSON.parse(JSON.stringify(s.paths[f]));s.paths.splice(f,1),s.paths.splice(e,0,p),r=!0}}return r}o(LZ,"createLRTableView");function NZ(e,t,n){let i=!1,r=!1;if(t&&!n&&!e.transferParameters.deletionRequest)if(t.startsWith(ie.DefinitionName.CustomColumn))i=m2(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ie.DefinitionName.ALPChartView&&e.key===ie.PropertyName.chart&&e.configObject)return OZ(e);if(t===ie.DefinitionName.ALPTableView&&e.key===ie.PropertyName.table&&e.configObject)return IZ(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ie.DefinitionName.LRTableView)||t.startsWith(ie.DefinitionName.LRChartView))?i=LZ(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ie.DefinitionName.VisualFilters)&&(i=RZ(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(NZ,"createNewElement");function FZ(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0||!!e.anyOf}o(FZ,"isDefinitionTraversable");function GI(e,t,n,i=!1){var d;let r=e.configObject[e.key],a=Rm(e.configObject,e.key),s=Uo(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:f}=NZ(e,(d=e.propertyDefinition.$ref)==null?void 0:d.split(U)[1],i),p=a?[...t,a]:[...t,e.key];if(l||xZ(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||FZ(e.propertyDefinition)&&(s!=null&&s.configObject))&&!f){let m=a?[...n,a]:n;CZ(e,s,r,p,m)}}o(GI,"transferSortedListEntry");function DZ(e,t,n,i,r){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((l,f)=>l[1]&&l[1].index-f[1].index),s.forEach(l=>{var f;(f=n.properties)!=null&&f[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],GI(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,GI(e,i,r),a=!0)}),e.index++})}return a}o(DZ,"transferConfigEntriesWithAnyOfDefinitions");function _Z(e,t,n,i){let r=cE(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(_Z,"mergeEntriesForInsert");function VZ(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ie.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ie.SchemaTag.propertyIndex]-r[1][ie.SchemaTag.propertyIndex])),t}o(VZ,"sortProperties");function wZ(e,t,n,i,r,a){var l,f;let s=!1;if(e){let p=e.anyOf;if(!p){let d=(l=e.$ref)==null?void 0:l.split(U)[1];p=d?(f=t.appSchema.definitions[d])==null?void 0:f.anyOf:void 0}s=DZ(n,p,i,r,a)}return s}o(wZ,"checkIfAnyOfDefinition");function WI(e,t,n,i,r,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:r,key:void 0,index:s,configObject:t,propertyDefinition:void 0},f=a.additionalProperties,p=wZ(f,e,l,a,n,i),d=VZ(a.properties);f!=null&&f.$ref&&_Z(e,f,d,t),s=0,d&&d.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!kl(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,GI(l,n,i,p),m[1].$ref&&s++)})}o(WI,"transferManifestEntriesAndFlexChange");function L2(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ie.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(L2,"getClassesForSingleSection");function N2(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],L2(n,i,t),N2(n,t)}}o(N2,"getSubsectionClasses");function MZ(e,t,n){let i;for(let r in e.sections)i=t.sections[r],L2(e,r,n),N2(i,n)}o(MZ,"getExportClassesForSections");function F2(e,t){let n=Lm(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(F2,"calculateBaseId");var D2=o((e,t,n=!1)=>{var l;let i=zT(e.manifest),r=new Qa,a=r.createPageInstance(ie.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ie.PropertyName.sections]&&MZ(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:F2(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ie.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return WI(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),kZ=o((e,t,n,i,r,a,s=!1)=>{var b,I;let l=zT(e.manifest),f=e.jsonSchema,p=(b=n.table)!=null&&b[ie.PropertyName.annotationPath]?ie.DefinitionName.ALPTableView:ie.DefinitionName.Table,d=n.table=t.createInstance(i,p,n.table),m=ie.DefinitionName.LineItems;f.definitions[ie.DefinitionName.TableSPV]&&(m=f.definitions[ie.DefinitionName.TableSPV].properties.columns.$ref.split(U)[1]);let v=f.definitions[`${ie.DefinitionName.Actions}<${m}>`];if((I=d.toolBar)!=null&&I.actions&&v)for(let N in v.properties)d.toolBar.actions[N]=t.createInstance(i,ie.DefinitionName.ToolBarAction,d.toolBar.actions[N]);let E={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:F2(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return WI(E,n,[],[],[],f),l},"exportListPage"),KI=o((e,t,n,i=!1)=>{let r=new Qa,a=r.createPageInstance(ie.PageTypeV2.ListReport,e.page.config);return kZ(e,r,a,ie.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),_2=o((e,t,n=!1)=>KI(e,t,ie.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),jZ=o((e,t,n,i,r,a)=>{let s=ko(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=iE());let f={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];R2(f,p,{}),!l&&Object.keys(s).length&&_0(r,t,s)},"applyExportRule"),UZ=o((e,t,n)=>{var a;let i=zT(t),r=Object.assign(new TT,e);r.settings=Object.assign(new kf,r.settings);for(let s in n.definitions.AppSettings.properties){let l=Mn(r.settings,s);if(l&&l.manifest){let f=l.manifest.path();if(l.manifest.export)jZ(l,f,s,e,i.manifest,n);else{let p=ko(i.manifest,f);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],ls(i.manifest,f,!1))}}}return i.manifest[ie.ManifestSection.ui5].routing=b2(e.home,e.pages,i.manifest),A2(i.manifest[ie.ManifestSection.ui5],e),i},"exportApplicationV4"),V2=o((e,t)=>{if(e[ie.SchemaType.ListReport])return KI(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4);if(e[ie.SchemaType.ObjectPage])return D2(e[ie.SchemaType.ObjectPage],t);if(e[ie.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ie.SchemaType.Application];return UZ(n,i,r)}else{if(e[ie.SchemaType.AnalyticalListPage])return _2(e[ie.SchemaType.AnalyticalListPage],t);if(e[ie.SchemaType.FPMCustomPage])return C2(e[ie.SchemaType.FPMCustomPage],ie.defaultExportResult)}},"exportPageV4"),$Z=o(e=>{let{jsonSchema:t,views:n,page:i,manifest:r,logger:a}=e,s=zT(e.manifest),l;return t&&Object.keys(t).length>0&&(l=Bo(n||[],i.name,r,e.logger)),l&&YT(l,s,i.config,t,"view",a),s},"exportCustomPage"),XI=o((e,t,n=!1)=>{if(e[ie.SchemaType.ListReport])return KI(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4,n);if(e[ie.SchemaType.ObjectPage])return D2(e[ie.SchemaType.ObjectPage],t,n);if(e[ie.SchemaType.AnalyticalListPage])return _2(e[ie.SchemaType.AnalyticalListPage],t,n);if(e[ie.SchemaType.FPMCustomPage])return $Z(e[ie.SchemaType.FPMCustomPage])},"exportConfigEntityByPathV4");var Ut=require("@sap-ux/fe-fpm-writer");var BZ=new Map([[de.CustomExtensionType.CustomPage,Ut.generateCustomPage],[de.CustomExtensionType.CustomColumn,Ut.generateCustomColumn],[de.CustomExtensionType.CustomSection,Ut.generateCustomSection],[de.CustomExtensionType.ObjectPage,Ut.generateObjectPage],[de.CustomExtensionType.ListReport,Ut.generateListReport],[de.CustomExtensionType.CustomAction,Ut.generateCustomAction],[de.CustomExtensionType.CustomView,Ut.generateCustomView],[de.CustomExtensionType.ControllerExtension,Ut.generateControllerExtension],[de.CustomExtensionType.CustomSubSection,Ut.generateCustomSubSection],[de.CustomExtensionType.CustomFilterField,Ut.generateCustomFilter],[de.CustomExtensionType.CustomHeaderSection,Ut.generateCustomHeaderSection]]),HZ={api:Ut.PromptsAPI,types:Ut.PromptsType};function GZ(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];if(n[de.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:f}=n[de.SchemaType.ListReport];t=$I(i,r,a,s,l,f)}else if(n[de.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:f}=n[de.SchemaType.ObjectPage];t=UI(i,r,a,s,l,f)}else if(n[de.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[de.SchemaType.OverviewPage];t=Yd(i,r)}else if(n[de.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:f}=n[de.SchemaType.AnalyticalListPage];t=BI(i,r,a,s,l,f)}}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];if(n[de.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:f}=n[de.SchemaType.ListReport];t=yT(de.TemplateType.ListReportObjectPageV4,i,r,a,s,l,f)}else if(n[de.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,logger:l,fragments:f,contextPath:p,genericMacrosSchema:d}=n[de.SchemaType.ObjectPage];t=Ex(i,r,a,s,l,f,p,d,e.featureToggles)}else if(n[de.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:f}=n[de.SchemaType.AnalyticalListPage];t=yT(de.TemplateType.AnalyticalListPageV4,i,r,a,s,l,f)}else if(n[de.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l}=n[de.SchemaType.FreestylePage];t=Sx(de.TemplateType.FreestylePageV4,i,a,l,r,s)}else if(n[de.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:a,views:s,logger:l,annotations:f}=n[de.SchemaType.FPMCustomPage];t=Ax(i,r,a,s,f,e.featureToggles,l)}}return t}o(GZ,"generateSchema");function WZ(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=z1(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=V2(i,n)}return t}o(WZ,"exportConfig");function KZ(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=oP(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=XI(i,n)}return t}o(KZ,"exportConfigEntityByPath");function XZ(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=oP(i,n,!0)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=XI(i,n,!0)}return t}o(XZ,"deleteConfigEntityByPath");function QZ(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];n[de.SchemaType.ListReport]?t=Ty(n[de.SchemaType.ListReport]):n[de.SchemaType.ObjectPage]?t=ly(n[de.SchemaType.ObjectPage]):n[de.SchemaType.OverviewPage]?t=fy(n[de.SchemaType.OverviewPage]):n[de.SchemaType.AnalyticalListPage]&&(t=uy(n[de.SchemaType.AnalyticalListPage]))}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];n[de.SchemaType.ListReport]?t=gl(n[de.SchemaType.ListReport],de.SchemaType.ListReport):n[de.SchemaType.ObjectPage]?t=WT(n[de.SchemaType.ObjectPage]):n[de.SchemaType.AnalyticalListPage]?t=gl(n[de.SchemaType.AnalyticalListPage],de.SchemaType.AnalyticalListPage):n[de.SchemaType.FPMCustomPage]&&(t=GT(n[de.SchemaType.FPMCustomPage]))}return t}o(QZ,"importConfig");async function qZ(e){return kI(e)}o(qZ,"importProject");async function YZ(e){return MI(e)}o(YZ,"importProjectSchema");function zZ(){return{version:"23",fpmWriter:"33",moduleVersion:M_.version}}o(zZ,"getApiVersion");function HI(e){let t=BZ.get(e.customExtension);if(t&&typeof t=="function")return(0,Ut.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(HI,"generateCustomExtension");var so=require("path"),oc=require("fs");var iu=o(async e=>new Promise((t,n)=>{(0,oc.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),JZ=o(async e=>JSON.parse(await iu(e)),"readJSON"),QI=o(async e=>new Promise((t,n)=>{(0,oc.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),ZZ=o(async e=>new Promise(t=>{(0,oc.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),M2=o(async e=>new Promise(t=>{(0,oc.exists)(e,n=>{t(n)})}),"resourceExists"),eee=o(async e=>JZ((0,so.join)(e,"manifest.json")),"getManifest"),k2=o(async e=>{let t=[],n=(0,so.join)(e,"changes");if(!await M2(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await QI(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await iu((0,so.join)(n,a)));return t},"getChanges"),w2=o(async(e,t="fragments")=>{let n=[],i=(0,so.join)(e,"ext",t);if(!await M2(i))return n;let r=await QI(i);for(let a of r){let s=(0,so.join)(i,a),l=await iu(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),tee=o(async(e,t)=>{var r,a,s,l,f,p,d,m;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let v=(0,so.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:v,fileContent:await iu(v)})}if((f=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&f.annotations){for(let v of i.mainService.settings.annotations)if((d=(p=i[v])==null?void 0:p.settings)!=null&&d.localUri){let E=(0,so.join)(t,i[v].settings.localUri);n.push({dataSourceUri:E,fileContent:await iu(E)})}}if(n.length===0)for(let v in i){let E=i[v];if((E==null?void 0:E.type)==="ODataAnnotation"&&((m=E==null?void 0:E.settings)!=null&&m.localUri)){let b=(0,so.join)(t,E.settings.localUri);n.push({dataSourceUri:b,fileContent:await iu(b)})}}return n},"getAnnotations"),nee=o(async e=>{let t=(0,so.basename)(e),n=(0,so.join)(e,"webapp"),i=await eee(n),r=await tee(i,n),a=await k2(n),s=await w2(n),l=await w2(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");Tc(Fi,Z(re()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
295
295
  /*! Bundled license information:
296
296
 
297
297
  sax/lib/sax.js: